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/2185
So to answer my initial question, I was just doing something stupid as I was not re-giving the `preprocessing_num_workers` arguments when launching the distributed training (and it was then set to `None`). I initially thought the hash was computed only with the `tokenize_function` but it's all arguments. Thanks @lhoestq for clarifying!
.map() and distributed training
Hi, I have a question regarding distributed training and the `.map` call on a dataset. I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`. `dataset` is then tokenized: ```python datasets = load_from_disk(dataset_path=my_path) [...] def tokenize_function(examples): return tokenizer(examples[text_column_name]) logger.info("Mapping dataset to tokenized dataset.") tokenized_datasets = datasets.map( tokenize_function, batched=True, num_proc=preprocessing_num_workers, remove_columns=column_names, load_from_cache_file=True, ) ``` I am using 31 workers (`preprocessing_num_workers=31`) and thus it creates 31 `cache*.arrow` files in `my_path/train` (there is only a train split). When I relaunch the script, the map is tokenization is skipped in favor of loading the 31 previously cached files, and that's perfect. Everything so far was done by launching a **single process script**. I now launch the same training script in **distributed mode** (`pytorch -m torch.distributed.launch --nproc_per_node 2`). However, once it reaches the map call, it re-does the tokenization... instead of loading the 31 cached files. I tried adding the `cache_file_name` argument: `cache_file_name={"train": my_path/one_of_the_arrow_file}`, but I can't give the 31 cached files, so it probably isn't the right way to do it. **My question: what is the best way to load cached files if they were pre-processed and dumped in multiple arrow files?** It seems automatically handled for single processes but fails on distributed training. - I am following the same structure as the examples of transformers (more specifically [run_clm.py](https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_clm.py) in my case) - I am using 1.5.0 version of datasets if that matters.
51
.map() and distributed training Hi, I have a question regarding distributed training and the `.map` call on a dataset. I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`. `dataset` is then tokenized: ```python datasets = load_from_disk(dataset_path=my_path) [...] def tokenize_function(examples): return tokenizer(examples[text_column_name]) logger.info("Mapping dataset to tokenized dataset.") tokenized_datasets = datasets.map( tokenize_function, batched=True, num_proc=preprocessing_num_workers, remove_columns=column_names, load_from_cache_file=True, ) ``` I am using 31 workers (`preprocessing_num_workers=31`) and thus it creates 31 `cache*.arrow` files in `my_path/train` (there is only a train split). When I relaunch the script, the map is tokenization is skipped in favor of loading the 31 previously cached files, and that's perfect. Everything so far was done by launching a **single process script**. I now launch the same training script in **distributed mode** (`pytorch -m torch.distributed.launch --nproc_per_node 2`). However, once it reaches the map call, it re-does the tokenization... instead of loading the 31 cached files. I tried adding the `cache_file_name` argument: `cache_file_name={"train": my_path/one_of_the_arrow_file}`, but I can't give the 31 cached files, so it probably isn't the right way to do it. **My question: what is the best way to load cached files if they were pre-processed and dumped in multiple arrow files?** It seems automatically handled for single processes but fails on distributed training. - I am following the same structure as the examples of transformers (more specifically [run_clm.py](https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_clm.py) in my case) - I am using 1.5.0 version of datasets if that matters. So to answer my initial question, I was just doing something stupid as I was not re-giving the `preprocessing_num_workers` arguments when launching the distributed training (and it was then set to `None`). I initially thought the hash was computed only with the `tokenize_function` but it's all arguments. Thanks @lhoestq for clarifying!
[ -0.25376176834106445, -0.22071696817874908, 0.11777669191360474, 0.07457458972930908, 0.21161656081676483, -0.10975947976112366, 0.5170727372169495, 0.010205188766121864, 0.280156672000885, 0.023762941360473633, 0.1822473704814911, 0.34344932436943054, -0.22906403243541718, -0.585545003414154, 0.09414291381835938, 0.06153414025902748, 0.1861155927181244, 0.036659229546785355, -0.03773557022213936, -0.20080313086509705, -0.1529332399368286, 0.07591716945171356, -0.15427061915397644, 0.11705104261636734, -0.7540709972381592, -0.1523153930902481, -0.18345318734645844, 0.10273956507444382, 0.22531767189502716, -0.349908709526062, 0.23422735929489136, 0.22133444249629974, 0.40136218070983887, 0.5336912870407104, -0.00012720905942842364, 0.031262412667274475, 0.18786093592643738, -0.19833087921142578, 0.039717912673950195, -0.047676607966423035, 0.16419044137001038, 0.005025044083595276, 0.1936110556125641, -0.29533615708351135, 0.13107280433177948, -0.1476738452911377, 0.3262222409248352, -0.44181621074676514, 0.4140010476112366, -0.10772977769374847, -0.0018773600459098816, 0.09438981115818024, -0.5714961290359497, 0.13987621665000916, -0.22144007682800293, 0.12348023056983948, 0.1711137890815735, 0.21808217465877533, 0.30292627215385437, -0.34165558218955994, -0.3789151906967163, 0.15822768211364746, -0.1466241180896759, 0.13405956327915192, 0.4135626554489136, 0.036601703613996506, -0.0789884626865387, -0.34870073199272156, -0.07575005292892456, -0.1218583881855011, 0.10768762975931168, -0.07430677115917206, -0.18817904591560364, -0.4665384888648987, -0.27339792251586914, -0.0016583725810050964, -0.0024628639221191406, 0.11624374985694885, -0.02337292954325676, -0.11971396207809448, -0.512408971786499, -0.06252485513687134, 0.055294424295425415, 0.13265450298786163, -0.2732611894607544, 0.4564462900161743, -0.025473613291978836, 0.31633931398391724, 0.1419927477836609, 0.05433780327439308, 0.08374625444412231, -0.1719924658536911, 0.12963718175888062, 0.3715827167034149, 0.027552271261811256, 0.014174334704875946, 0.048927173018455505, -0.3223409354686737, -0.023288927972316742, 0.035609569400548935, 0.23210686445236206, 0.2598091959953308, -0.04798553138971329, 0.265766441822052, 0.4007704555988312, 0.09275077283382416, -0.13914090394973755, 0.6415419578552246, 0.0301112812012434, -0.20047174394130707, -0.6418209075927734, -0.17241260409355164, -0.35194501280784607, -0.06273557245731354, 0.33358895778656006, 0.04270974546670914, -0.20984512567520142, 0.07222733646631241, 0.4604041278362274, -0.23941735923290253, -0.006529681384563446, -0.13254347443580627, 0.021212279796600342, 0.2508152723312378, 0.12879346311092377, 0.43703794479370117, -0.05552713945508003, 0.10142688453197479, -0.19016018509864807, 0.1589488983154297, -0.0596042275428772, -0.30298954248428345, -0.3049106001853943, 0.31606847047805786, 0.16187696158885956, 0.1877596080303192, 0.4239693582057953, -0.10011067986488342, 0.28944191336631775, -0.16136939823627472, 0.3981885313987732, -0.11204609274864197, 0.6585769057273865, 0.10445859283208847, -0.25137796998023987, 0.2223658412694931, 0.18622232973575592, 0.37709999084472656, -0.15356311202049255, 0.33541685342788696, -0.5022832751274109, -0.4383482336997986, 0.47987526655197144, -0.07329710572957993, -0.009593617171049118, 0.06920178234577179, -0.17672206461429596, 0.04275944456458092, 0.5391665697097778, -0.25607866048812866, 0.1344241052865982, -0.35754600167274475, -0.20906588435173035, -0.1776280701160431, 0.2568802237510681, 0.4551611542701721, 0.31371501088142395, -0.3418172001838684, 0.12416860461235046, 0.3162252902984619, 0.2081829160451889, 0.2290947139263153, -0.6239326596260071, 0.3898102939128876, -0.21997970342636108, 0.2747523784637451, 0.3872874975204468, -0.3571226894855499, -0.14352288842201233, 0.29459768533706665, -0.09897412359714508, 0.023358918726444244, -0.15709426999092102, -0.024981658905744553, 0.46411606669425964, -0.02523183822631836, 0.1258821189403534, 0.29645511507987976, -0.21626250445842743, 0.2001037299633026, -0.26173603534698486, 0.016919173300266266, 0.08043830096721649, -0.007085345685482025, 0.19472084939479828, 0.003370814025402069, -0.01280159130692482, 0.11961989849805832, 0.20707708597183228, 0.01023012213408947, 0.22837884724140167, 0.025254059582948685, -0.38506752252578735, 0.09240898489952087, 0.16548272967338562, 0.06651951372623444, -0.15049806237220764, 0.18142394721508026, -0.03323526680469513, -0.3959296643733978, -0.1602499932050705, -0.05221174284815788, 0.16287507116794586, -0.20769402384757996, -0.3108922243118286, -0.1402076780796051, -0.11415490508079529, 0.13802897930145264, -0.04079269990324974, -0.2170620858669281, -0.30005383491516113, -0.09362870454788208, 0.14104345440864563, -0.058869317173957825, 0.21776770055294037, 0.1037801131606102, 0.1914525181055069, -0.12039630115032196, -0.431758850812912, -0.14872407913208008, 0.10814207792282104, -0.2924797832965851, -0.10761462152004242, 0.3776342272758484, 0.04557381197810173, 0.20801958441734314, -0.11058452725410461, 0.32164502143859863, 0.2376917004585266, 0.06689944863319397, 0.16100871562957764, 0.12799228727817535, -0.12457168102264404, -0.15120217204093933, -0.1420784890651703, 0.3465421199798584, 0.12898977100849152, 0.14713610708713531, -0.015548519790172577, 0.016348570585250854, 0.041823163628578186, 0.08298283815383911, -0.23968732357025146, -0.08248831331729889, -0.3200373351573944, -0.19217881560325623, 0.26127326488494873, 0.15466293692588806, 0.037914879620075226, 0.0008638948202133179, 0.33124977350234985, 0.026126787066459656, 0.008366388268768787, -0.14848120510578156, -0.18063613772392273, 0.040065035223960876, 0.1552492380142212, 0.15723349153995514, 0.3422777056694031, -0.01425725594162941, 0.3932815194129944, -0.11448167264461517, 0.10341369360685349, 0.062259066849946976, -0.08174183964729309, -0.0038879550993442535, 0.23241227865219116, 0.15785706043243408, -0.043156273663043976, 0.18351779878139496, -0.24711346626281738, -0.10463260114192963, 0.34853434562683105, -0.24596676230430603, 0.08692952990531921, 0.23295335471630096, -0.012332580983638763, 0.1808800846338272, -0.58160799741745, 0.09181609004735947, 0.0024794600903987885, 0.06690406054258347, -0.16199828684329987, 0.2604070007801056, -0.09503889828920364, 0.41812369227409363, -0.06608524173498154, 0.24358433485031128, -0.11927616596221924, -0.2782992720603943, 0.18054983019828796, -0.1531219333410263, -0.012159873731434345, -0.1923268735408783, 0.12843626737594604, -0.2399800717830658, -0.02265058644115925, 0.07756100594997406, -0.05778702348470688, -0.14292964339256287, 0.1827361285686493, 0.11334659904241562, 0.20742738246917725, -0.5552706718444824, -0.29690954089164734, -0.03207344561815262, -0.378795862197876, -0.1486826092004776, 0.168632373213768, -0.4979078471660614, 0.11927083879709244, -0.05513802915811539, 0.24526435136795044, -0.17175665497779846, -0.12457059323787689, -0.3170382082462311, -0.23057080805301666, -0.019363727420568466, 0.13388170301914215, -0.05494309589266777, 0.1418405920267105, 0.00337914377450943, -0.10536552220582962, -0.23937848210334778, -0.17648035287857056, -0.29188114404678345, 0.06517770886421204, -0.5251650214195251, 0.3886309564113617, -0.18672244250774384, -0.047137025743722916, -0.10934789478778839, -0.046108923852443695, -0.06540866196155548, 0.6399703025817871, -0.33489859104156494, 0.01440516859292984, 0.3095327317714691, -0.010113902390003204, -0.0965968519449234, 0.1116473600268364, 0.5424690246582031, 0.1066482737660408, 0.12662509083747864, -0.05499909445643425, 0.24431531131267548, 0.25604161620140076, 0.17105749249458313, 0.05137470364570618, 0.15952739119529724, -0.11939019709825516, 0.1637127697467804, 1.278239369392395, 0.15221916139125824, -0.05189158022403717, 0.026243407279253006, 0.031482115387916565, -0.014047421514987946, 0.06866703927516937, -0.10581302642822266, 0.061383556574583054, -0.3951038122177124, -0.13081243634223938, 0.1793060451745987, 0.18719373643398285, -0.5139591693878174, 0.0521271675825119, 0.19363132119178772, -0.012220598757266998, -0.3019161820411682, 0.33157795667648315, -0.7171850204467773, 0.5827730298042297, 0.059084221720695496, 0.01788891851902008, -0.4254794120788574, 0.04539966583251953, 0.0945204645395279, -0.15131637454032898, 0.7113601565361023, 0.053420983254909515, -0.43602120876312256, 0.08626678586006165, -0.19184209406375885, 0.03940784931182861, 0.2148352414369583, 0.2028767168521881, 0.09527043998241425, -0.17031636834144592, 0.1477956473827362, 0.1729288399219513, 0.4053846299648285, -0.06395312398672104, 0.022406388074159622, 0.11699347198009491, -0.21794043481349945, -0.13278445601463318, -0.15011581778526306, 0.0643642246723175, 0.37004554271698, 0.023649055510759354, 0.43080151081085205, -0.03033667802810669, -0.17746934294700623, -0.4406907558441162, 0.0884210616350174, -0.35156914591789246, -0.043364278972148895, -0.18708664178848267, 0.07596582174301147, -0.2960948646068573, 0.20950928330421448, 0.30479001998901367, -0.17358358204364777, -0.02137116529047489, -0.26223933696746826, -0.015995388850569725, 0.3147197663784027, -0.10367734730243683, 0.03708218038082123, 0.24423377215862274, 0.14812280237674713, 0.01316995918750763, 0.47191327810287476, 0.21375678479671478, 0.21387828886508942, 0.35466599464416504, -0.32741838693618774, -0.1393888145685196, 0.03683220222592354, 0.007355038076639175, 0.2340703010559082, 0.18982289731502533, 0.03064655512571335, -0.23610259592533112, 0.17738699913024902, -0.16774220764636993, -0.2283785343170166, 0.29504162073135376, 0.11787299811840057, 0.06849822402000427, -0.1757792830467224, -0.4709649980068207, 0.09216651320457458, 0.18397808074951172, -0.22207075357437134, 0.4868582785129547, -0.8516539335250854, -0.2616799771785736, 0.4181651473045349, 0.060836829245090485, 0.6925720572471619, -0.26070255041122437, 0.22726447880268097, -0.2504415214061737, 0.4874327480792999, 0.02045464888215065, -0.6066097617149353, 0.420037180185318, -0.2548579275608063, -0.20416483283042908, -0.04122234880924225, -0.17171798646450043, -0.15596319735050201, 0.7070314884185791, 0.08041739463806152, 0.17252381145954132, 0.11653997004032135, 0.326223760843277, -0.064033642411232, 0.09345532208681107, 0.296688973903656, -0.4377836287021637, 0.22902904450893402, -0.06242624297738075, 0.18298941850662231, 0.15696902573108673, -0.08043394982814789, 0.056510183960199356, 0.12404033541679382, -0.25840067863464355, 0.20868965983390808, 0.0717218741774559, -0.3600729703903198, 0.3634983003139496, 0.03981984779238701, 0.05214431881904602, -0.24333369731903076, 0.6011243462562561, 0.010904846712946892, -0.23199580609798431, 0.09407602995634079, 0.04369913786649704, 0.19311724603176117, -0.012696821242570877, -0.2623346745967865, -0.169743150472641, 0.1262996792793274, 0.09679803252220154, -0.1459384262561798, -0.1205744743347168, -0.30009642243385315, -0.4416496157646179, -0.22375448048114777, 0.3600803017616272, 0.6041753888130188, -0.05056383088231087, -0.058848559856414795, 0.20818959176540375, -0.0861714631319046, 0.16688421368598938, -0.006943376734852791, 0.06400163471698761, -0.13817022740840912, 0.3867053687572479, -0.023509351536631584, -0.12429054081439972, 0.20148877799510956, 0.31319659948349, -0.15742981433868408, -0.16826200485229492, 0.2568944990634918, -0.26546716690063477, -0.09693746268749237, -0.05739212781190872, -0.033052146434783936, 0.13893234729766846, -0.36251670122146606, 0.016991805285215378, -0.10655926167964935, 0.016631633043289185, 0.09930630028247833, 0.08376305550336838, 0.1839829683303833, 0.10752752423286438, -0.32399290800094604, -0.18157516419887543, -0.3717832863330841, -0.027891848236322403, -0.13650047779083252, 0.050566621124744415, 0.273404061794281, 0.1305762529373169, 0.10531769692897797, 0.3764920234680176, -0.131726935505867, 0.12283804267644882, 0.08179904520511627, 0.39739254117012024, -0.051867179572582245, 0.0050208657048642635, -0.11582918465137482, -0.029191913083195686, -0.18753819167613983, 0.0908719077706337, -0.14214685559272766, 0.004255477339029312, 0.08487844467163086, 0.22508561611175537, 0.19454500079154968, -0.07184560596942902, -0.07553113996982574, -0.21736054122447968, 0.11622139811515808, -0.45004045963287354, 0.048767514526844025, 0.016033247113227844, -0.18818983435630798, 0.04671231284737587, 0.5341086387634277, 0.16230976581573486, -0.40415704250335693, 0.14515092968940735, -0.08664347231388092, -0.05059658735990524, -0.032024793326854706, 0.1041380763053894, 0.16308027505874634, -0.0049898698925971985, -0.08145372569561005, -0.03455391153693199, 0.3659765422344208, 0.1690807044506073, 0.4754377603530884, -0.22721193730831146, 0.07048198580741882, -0.029281126335263252, 0.1734142303466797, 0.232578307390213, -0.3147431015968323, -0.05992067605257034, 0.34154725074768066, 0.02412264049053192, 0.028265289962291718, -0.19900518655776978, 0.37714865803718567, 0.08671752363443375, -0.1169264018535614, 0.2695806622505188, 0.2913132905960083, -0.39842063188552856, 0.1071692556142807, 0.13878047466278076, 0.5225743651390076, -0.3287661671638489, 0.2685764729976654, 0.026905927807092667, 0.08572269976139069, 0.17605909705162048, 0.2698517441749573, 0.31044960021972656, 0.17821171879768372, -0.07478172332048416, 0.02938060089945793, 0.24966035783290863, 0.39850446581840515, -0.10355211049318314, -0.187476247549057, -0.4894891679286957, -0.07363848388195038, -0.004409722983837128, -0.03696085140109062, 0.1242683082818985, -0.2778053879737854, 0.27289825677871704, -0.28476494550704956, -0.5857909321784973, 0.12542147934436798, 0.3274543881416321, -0.20131340622901917, -0.0886797308921814, 0.09267833828926086, 0.0113811194896698, -0.04623457044363022, 0.09415905177593231, 0.04416855052113533, 0.2097100466489792, 0.5593303442001343, 0.08588612824678421, 0.018109485507011414, 0.15415777266025543, -0.07173851132392883, 0.0019632549956440926, 0.45932692289352417, -0.32611092925071716, 0.19132892787456512, -0.1725732386112213, 0.0807390958070755, 0.020042747259140015, -0.03157058358192444, 0.04985474795103073, 0.5228727459907532, -0.11887215077877045, 0.19383087754249573, 0.04425099492073059, 0.1886543333530426, -0.113199383020401, 0.16675296425819397, -0.12337417900562286, -0.30068424344062805, 0.030774276703596115, -0.08147513121366501, -0.013105040416121483, 0.028823602944612503, -0.06652206182479858, 0.06685850769281387, 0.2088630199432373, 0.28209078311920166, 0.1485457867383957, -0.10384570807218552, 0.10289014130830765, 0.06941021233797073, -0.3599320650100708, 0.12591688334941864, 0.236667200922966, -0.28972718119621277, 0.19593140482902527, 0.05055755749344826, -0.03994075581431389, 0.07085271179676056, 0.25427907705307007, 0.1748005747795105, 0.030376534909009933, -0.2747744917869568, -0.35229766368865967, -0.672818124294281, 0.30238547921180725, 0.01748100481927395, 0.2508774399757385, -0.10238105058670044, 0.011731944978237152, 0.05638007074594498, -0.05312500521540642, -0.2462199628353119, -0.25243034958839417, -0.038777053356170654, 0.3524784743785858, -0.09575046598911285, 0.002470245584845543, -0.28756797313690186, 0.3995726704597473, 0.14586234092712402, -0.19724123179912567, 0.06539063900709152, -0.05977954715490341, -0.08639656752347946, 0.2657533586025238, -0.42360156774520874, -0.1760619729757309, 0.06769098341464996, 0.49641862511634827, 0.06497208774089813, 0.20992296934127808, 0.06007823348045349, 0.18017438054084778, -0.09818641096353531, 0.045112259685993195, -0.018829520791769028, -0.0528835766017437, -0.08372732996940613, 0.2601970434188843, -0.5280182361602783, -0.0028350064530968666, -0.49914681911468506, -0.476399689912796, 0.12461976706981659, -0.015533491969108582, 0.01084434986114502, -0.2105778157711029, -0.29841580986976624, 0.09192676842212677, 0.26457029581069946, 0.4401879906654358, -0.050717681646347046, -0.05989611893892288, -0.21876871585845947, 0.009230688214302063, 0.26662811636924744, -0.6458785533905029, -0.28846991062164307, -0.2124374806880951, 0.1345546692609787, -0.0403621606528759, -0.05963507294654846, -0.40264081954956055, -0.07239671051502228, 0.28345271944999695, -0.07116694748401642, -0.43617531657218933, -0.17188024520874023, -0.050420645624399185, -0.17073172330856323, -0.23805451393127441, 0.4838346242904663, -0.04084920883178711, -0.2001534104347229, -0.09643720090389252, -0.17172004282474518 ]
https://github.com/huggingface/datasets/issues/2185
This cache process isn't really consistent. I just changed `per_device_train_batch_size` of training script and now it rebuilding the dataset cache!!!! Why?
.map() and distributed training
Hi, I have a question regarding distributed training and the `.map` call on a dataset. I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`. `dataset` is then tokenized: ```python datasets = load_from_disk(dataset_path=my_path) [...] def tokenize_function(examples): return tokenizer(examples[text_column_name]) logger.info("Mapping dataset to tokenized dataset.") tokenized_datasets = datasets.map( tokenize_function, batched=True, num_proc=preprocessing_num_workers, remove_columns=column_names, load_from_cache_file=True, ) ``` I am using 31 workers (`preprocessing_num_workers=31`) and thus it creates 31 `cache*.arrow` files in `my_path/train` (there is only a train split). When I relaunch the script, the map is tokenization is skipped in favor of loading the 31 previously cached files, and that's perfect. Everything so far was done by launching a **single process script**. I now launch the same training script in **distributed mode** (`pytorch -m torch.distributed.launch --nproc_per_node 2`). However, once it reaches the map call, it re-does the tokenization... instead of loading the 31 cached files. I tried adding the `cache_file_name` argument: `cache_file_name={"train": my_path/one_of_the_arrow_file}`, but I can't give the 31 cached files, so it probably isn't the right way to do it. **My question: what is the best way to load cached files if they were pre-processed and dumped in multiple arrow files?** It seems automatically handled for single processes but fails on distributed training. - I am following the same structure as the examples of transformers (more specifically [run_clm.py](https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_clm.py) in my case) - I am using 1.5.0 version of datasets if that matters.
21
.map() and distributed training Hi, I have a question regarding distributed training and the `.map` call on a dataset. I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`. `dataset` is then tokenized: ```python datasets = load_from_disk(dataset_path=my_path) [...] def tokenize_function(examples): return tokenizer(examples[text_column_name]) logger.info("Mapping dataset to tokenized dataset.") tokenized_datasets = datasets.map( tokenize_function, batched=True, num_proc=preprocessing_num_workers, remove_columns=column_names, load_from_cache_file=True, ) ``` I am using 31 workers (`preprocessing_num_workers=31`) and thus it creates 31 `cache*.arrow` files in `my_path/train` (there is only a train split). When I relaunch the script, the map is tokenization is skipped in favor of loading the 31 previously cached files, and that's perfect. Everything so far was done by launching a **single process script**. I now launch the same training script in **distributed mode** (`pytorch -m torch.distributed.launch --nproc_per_node 2`). However, once it reaches the map call, it re-does the tokenization... instead of loading the 31 cached files. I tried adding the `cache_file_name` argument: `cache_file_name={"train": my_path/one_of_the_arrow_file}`, but I can't give the 31 cached files, so it probably isn't the right way to do it. **My question: what is the best way to load cached files if they were pre-processed and dumped in multiple arrow files?** It seems automatically handled for single processes but fails on distributed training. - I am following the same structure as the examples of transformers (more specifically [run_clm.py](https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_clm.py) in my case) - I am using 1.5.0 version of datasets if that matters. This cache process isn't really consistent. I just changed `per_device_train_batch_size` of training script and now it rebuilding the dataset cache!!!! Why?
[ -0.25376176834106445, -0.22071696817874908, 0.11777669191360474, 0.07457458972930908, 0.21161656081676483, -0.10975947976112366, 0.5170727372169495, 0.010205188766121864, 0.280156672000885, 0.023762941360473633, 0.1822473704814911, 0.34344932436943054, -0.22906403243541718, -0.585545003414154, 0.09414291381835938, 0.06153414025902748, 0.1861155927181244, 0.036659229546785355, -0.03773557022213936, -0.20080313086509705, -0.1529332399368286, 0.07591716945171356, -0.15427061915397644, 0.11705104261636734, -0.7540709972381592, -0.1523153930902481, -0.18345318734645844, 0.10273956507444382, 0.22531767189502716, -0.349908709526062, 0.23422735929489136, 0.22133444249629974, 0.40136218070983887, 0.5336912870407104, -0.00012720905942842364, 0.031262412667274475, 0.18786093592643738, -0.19833087921142578, 0.039717912673950195, -0.047676607966423035, 0.16419044137001038, 0.005025044083595276, 0.1936110556125641, -0.29533615708351135, 0.13107280433177948, -0.1476738452911377, 0.3262222409248352, -0.44181621074676514, 0.4140010476112366, -0.10772977769374847, -0.0018773600459098816, 0.09438981115818024, -0.5714961290359497, 0.13987621665000916, -0.22144007682800293, 0.12348023056983948, 0.1711137890815735, 0.21808217465877533, 0.30292627215385437, -0.34165558218955994, -0.3789151906967163, 0.15822768211364746, -0.1466241180896759, 0.13405956327915192, 0.4135626554489136, 0.036601703613996506, -0.0789884626865387, -0.34870073199272156, -0.07575005292892456, -0.1218583881855011, 0.10768762975931168, -0.07430677115917206, -0.18817904591560364, -0.4665384888648987, -0.27339792251586914, -0.0016583725810050964, -0.0024628639221191406, 0.11624374985694885, -0.02337292954325676, -0.11971396207809448, -0.512408971786499, -0.06252485513687134, 0.055294424295425415, 0.13265450298786163, -0.2732611894607544, 0.4564462900161743, -0.025473613291978836, 0.31633931398391724, 0.1419927477836609, 0.05433780327439308, 0.08374625444412231, -0.1719924658536911, 0.12963718175888062, 0.3715827167034149, 0.027552271261811256, 0.014174334704875946, 0.048927173018455505, -0.3223409354686737, -0.023288927972316742, 0.035609569400548935, 0.23210686445236206, 0.2598091959953308, -0.04798553138971329, 0.265766441822052, 0.4007704555988312, 0.09275077283382416, -0.13914090394973755, 0.6415419578552246, 0.0301112812012434, -0.20047174394130707, -0.6418209075927734, -0.17241260409355164, -0.35194501280784607, -0.06273557245731354, 0.33358895778656006, 0.04270974546670914, -0.20984512567520142, 0.07222733646631241, 0.4604041278362274, -0.23941735923290253, -0.006529681384563446, -0.13254347443580627, 0.021212279796600342, 0.2508152723312378, 0.12879346311092377, 0.43703794479370117, -0.05552713945508003, 0.10142688453197479, -0.19016018509864807, 0.1589488983154297, -0.0596042275428772, -0.30298954248428345, -0.3049106001853943, 0.31606847047805786, 0.16187696158885956, 0.1877596080303192, 0.4239693582057953, -0.10011067986488342, 0.28944191336631775, -0.16136939823627472, 0.3981885313987732, -0.11204609274864197, 0.6585769057273865, 0.10445859283208847, -0.25137796998023987, 0.2223658412694931, 0.18622232973575592, 0.37709999084472656, -0.15356311202049255, 0.33541685342788696, -0.5022832751274109, -0.4383482336997986, 0.47987526655197144, -0.07329710572957993, -0.009593617171049118, 0.06920178234577179, -0.17672206461429596, 0.04275944456458092, 0.5391665697097778, -0.25607866048812866, 0.1344241052865982, -0.35754600167274475, -0.20906588435173035, -0.1776280701160431, 0.2568802237510681, 0.4551611542701721, 0.31371501088142395, -0.3418172001838684, 0.12416860461235046, 0.3162252902984619, 0.2081829160451889, 0.2290947139263153, -0.6239326596260071, 0.3898102939128876, -0.21997970342636108, 0.2747523784637451, 0.3872874975204468, -0.3571226894855499, -0.14352288842201233, 0.29459768533706665, -0.09897412359714508, 0.023358918726444244, -0.15709426999092102, -0.024981658905744553, 0.46411606669425964, -0.02523183822631836, 0.1258821189403534, 0.29645511507987976, -0.21626250445842743, 0.2001037299633026, -0.26173603534698486, 0.016919173300266266, 0.08043830096721649, -0.007085345685482025, 0.19472084939479828, 0.003370814025402069, -0.01280159130692482, 0.11961989849805832, 0.20707708597183228, 0.01023012213408947, 0.22837884724140167, 0.025254059582948685, -0.38506752252578735, 0.09240898489952087, 0.16548272967338562, 0.06651951372623444, -0.15049806237220764, 0.18142394721508026, -0.03323526680469513, -0.3959296643733978, -0.1602499932050705, -0.05221174284815788, 0.16287507116794586, -0.20769402384757996, -0.3108922243118286, -0.1402076780796051, -0.11415490508079529, 0.13802897930145264, -0.04079269990324974, -0.2170620858669281, -0.30005383491516113, -0.09362870454788208, 0.14104345440864563, -0.058869317173957825, 0.21776770055294037, 0.1037801131606102, 0.1914525181055069, -0.12039630115032196, -0.431758850812912, -0.14872407913208008, 0.10814207792282104, -0.2924797832965851, -0.10761462152004242, 0.3776342272758484, 0.04557381197810173, 0.20801958441734314, -0.11058452725410461, 0.32164502143859863, 0.2376917004585266, 0.06689944863319397, 0.16100871562957764, 0.12799228727817535, -0.12457168102264404, -0.15120217204093933, -0.1420784890651703, 0.3465421199798584, 0.12898977100849152, 0.14713610708713531, -0.015548519790172577, 0.016348570585250854, 0.041823163628578186, 0.08298283815383911, -0.23968732357025146, -0.08248831331729889, -0.3200373351573944, -0.19217881560325623, 0.26127326488494873, 0.15466293692588806, 0.037914879620075226, 0.0008638948202133179, 0.33124977350234985, 0.026126787066459656, 0.008366388268768787, -0.14848120510578156, -0.18063613772392273, 0.040065035223960876, 0.1552492380142212, 0.15723349153995514, 0.3422777056694031, -0.01425725594162941, 0.3932815194129944, -0.11448167264461517, 0.10341369360685349, 0.062259066849946976, -0.08174183964729309, -0.0038879550993442535, 0.23241227865219116, 0.15785706043243408, -0.043156273663043976, 0.18351779878139496, -0.24711346626281738, -0.10463260114192963, 0.34853434562683105, -0.24596676230430603, 0.08692952990531921, 0.23295335471630096, -0.012332580983638763, 0.1808800846338272, -0.58160799741745, 0.09181609004735947, 0.0024794600903987885, 0.06690406054258347, -0.16199828684329987, 0.2604070007801056, -0.09503889828920364, 0.41812369227409363, -0.06608524173498154, 0.24358433485031128, -0.11927616596221924, -0.2782992720603943, 0.18054983019828796, -0.1531219333410263, -0.012159873731434345, -0.1923268735408783, 0.12843626737594604, -0.2399800717830658, -0.02265058644115925, 0.07756100594997406, -0.05778702348470688, -0.14292964339256287, 0.1827361285686493, 0.11334659904241562, 0.20742738246917725, -0.5552706718444824, -0.29690954089164734, -0.03207344561815262, -0.378795862197876, -0.1486826092004776, 0.168632373213768, -0.4979078471660614, 0.11927083879709244, -0.05513802915811539, 0.24526435136795044, -0.17175665497779846, -0.12457059323787689, -0.3170382082462311, -0.23057080805301666, -0.019363727420568466, 0.13388170301914215, -0.05494309589266777, 0.1418405920267105, 0.00337914377450943, -0.10536552220582962, -0.23937848210334778, -0.17648035287857056, -0.29188114404678345, 0.06517770886421204, -0.5251650214195251, 0.3886309564113617, -0.18672244250774384, -0.047137025743722916, -0.10934789478778839, -0.046108923852443695, -0.06540866196155548, 0.6399703025817871, -0.33489859104156494, 0.01440516859292984, 0.3095327317714691, -0.010113902390003204, -0.0965968519449234, 0.1116473600268364, 0.5424690246582031, 0.1066482737660408, 0.12662509083747864, -0.05499909445643425, 0.24431531131267548, 0.25604161620140076, 0.17105749249458313, 0.05137470364570618, 0.15952739119529724, -0.11939019709825516, 0.1637127697467804, 1.278239369392395, 0.15221916139125824, -0.05189158022403717, 0.026243407279253006, 0.031482115387916565, -0.014047421514987946, 0.06866703927516937, -0.10581302642822266, 0.061383556574583054, -0.3951038122177124, -0.13081243634223938, 0.1793060451745987, 0.18719373643398285, -0.5139591693878174, 0.0521271675825119, 0.19363132119178772, -0.012220598757266998, -0.3019161820411682, 0.33157795667648315, -0.7171850204467773, 0.5827730298042297, 0.059084221720695496, 0.01788891851902008, -0.4254794120788574, 0.04539966583251953, 0.0945204645395279, -0.15131637454032898, 0.7113601565361023, 0.053420983254909515, -0.43602120876312256, 0.08626678586006165, -0.19184209406375885, 0.03940784931182861, 0.2148352414369583, 0.2028767168521881, 0.09527043998241425, -0.17031636834144592, 0.1477956473827362, 0.1729288399219513, 0.4053846299648285, -0.06395312398672104, 0.022406388074159622, 0.11699347198009491, -0.21794043481349945, -0.13278445601463318, -0.15011581778526306, 0.0643642246723175, 0.37004554271698, 0.023649055510759354, 0.43080151081085205, -0.03033667802810669, -0.17746934294700623, -0.4406907558441162, 0.0884210616350174, -0.35156914591789246, -0.043364278972148895, -0.18708664178848267, 0.07596582174301147, -0.2960948646068573, 0.20950928330421448, 0.30479001998901367, -0.17358358204364777, -0.02137116529047489, -0.26223933696746826, -0.015995388850569725, 0.3147197663784027, -0.10367734730243683, 0.03708218038082123, 0.24423377215862274, 0.14812280237674713, 0.01316995918750763, 0.47191327810287476, 0.21375678479671478, 0.21387828886508942, 0.35466599464416504, -0.32741838693618774, -0.1393888145685196, 0.03683220222592354, 0.007355038076639175, 0.2340703010559082, 0.18982289731502533, 0.03064655512571335, -0.23610259592533112, 0.17738699913024902, -0.16774220764636993, -0.2283785343170166, 0.29504162073135376, 0.11787299811840057, 0.06849822402000427, -0.1757792830467224, -0.4709649980068207, 0.09216651320457458, 0.18397808074951172, -0.22207075357437134, 0.4868582785129547, -0.8516539335250854, -0.2616799771785736, 0.4181651473045349, 0.060836829245090485, 0.6925720572471619, -0.26070255041122437, 0.22726447880268097, -0.2504415214061737, 0.4874327480792999, 0.02045464888215065, -0.6066097617149353, 0.420037180185318, -0.2548579275608063, -0.20416483283042908, -0.04122234880924225, -0.17171798646450043, -0.15596319735050201, 0.7070314884185791, 0.08041739463806152, 0.17252381145954132, 0.11653997004032135, 0.326223760843277, -0.064033642411232, 0.09345532208681107, 0.296688973903656, -0.4377836287021637, 0.22902904450893402, -0.06242624297738075, 0.18298941850662231, 0.15696902573108673, -0.08043394982814789, 0.056510183960199356, 0.12404033541679382, -0.25840067863464355, 0.20868965983390808, 0.0717218741774559, -0.3600729703903198, 0.3634983003139496, 0.03981984779238701, 0.05214431881904602, -0.24333369731903076, 0.6011243462562561, 0.010904846712946892, -0.23199580609798431, 0.09407602995634079, 0.04369913786649704, 0.19311724603176117, -0.012696821242570877, -0.2623346745967865, -0.169743150472641, 0.1262996792793274, 0.09679803252220154, -0.1459384262561798, -0.1205744743347168, -0.30009642243385315, -0.4416496157646179, -0.22375448048114777, 0.3600803017616272, 0.6041753888130188, -0.05056383088231087, -0.058848559856414795, 0.20818959176540375, -0.0861714631319046, 0.16688421368598938, -0.006943376734852791, 0.06400163471698761, -0.13817022740840912, 0.3867053687572479, -0.023509351536631584, -0.12429054081439972, 0.20148877799510956, 0.31319659948349, -0.15742981433868408, -0.16826200485229492, 0.2568944990634918, -0.26546716690063477, -0.09693746268749237, -0.05739212781190872, -0.033052146434783936, 0.13893234729766846, -0.36251670122146606, 0.016991805285215378, -0.10655926167964935, 0.016631633043289185, 0.09930630028247833, 0.08376305550336838, 0.1839829683303833, 0.10752752423286438, -0.32399290800094604, -0.18157516419887543, -0.3717832863330841, -0.027891848236322403, -0.13650047779083252, 0.050566621124744415, 0.273404061794281, 0.1305762529373169, 0.10531769692897797, 0.3764920234680176, -0.131726935505867, 0.12283804267644882, 0.08179904520511627, 0.39739254117012024, -0.051867179572582245, 0.0050208657048642635, -0.11582918465137482, -0.029191913083195686, -0.18753819167613983, 0.0908719077706337, -0.14214685559272766, 0.004255477339029312, 0.08487844467163086, 0.22508561611175537, 0.19454500079154968, -0.07184560596942902, -0.07553113996982574, -0.21736054122447968, 0.11622139811515808, -0.45004045963287354, 0.048767514526844025, 0.016033247113227844, -0.18818983435630798, 0.04671231284737587, 0.5341086387634277, 0.16230976581573486, -0.40415704250335693, 0.14515092968940735, -0.08664347231388092, -0.05059658735990524, -0.032024793326854706, 0.1041380763053894, 0.16308027505874634, -0.0049898698925971985, -0.08145372569561005, -0.03455391153693199, 0.3659765422344208, 0.1690807044506073, 0.4754377603530884, -0.22721193730831146, 0.07048198580741882, -0.029281126335263252, 0.1734142303466797, 0.232578307390213, -0.3147431015968323, -0.05992067605257034, 0.34154725074768066, 0.02412264049053192, 0.028265289962291718, -0.19900518655776978, 0.37714865803718567, 0.08671752363443375, -0.1169264018535614, 0.2695806622505188, 0.2913132905960083, -0.39842063188552856, 0.1071692556142807, 0.13878047466278076, 0.5225743651390076, -0.3287661671638489, 0.2685764729976654, 0.026905927807092667, 0.08572269976139069, 0.17605909705162048, 0.2698517441749573, 0.31044960021972656, 0.17821171879768372, -0.07478172332048416, 0.02938060089945793, 0.24966035783290863, 0.39850446581840515, -0.10355211049318314, -0.187476247549057, -0.4894891679286957, -0.07363848388195038, -0.004409722983837128, -0.03696085140109062, 0.1242683082818985, -0.2778053879737854, 0.27289825677871704, -0.28476494550704956, -0.5857909321784973, 0.12542147934436798, 0.3274543881416321, -0.20131340622901917, -0.0886797308921814, 0.09267833828926086, 0.0113811194896698, -0.04623457044363022, 0.09415905177593231, 0.04416855052113533, 0.2097100466489792, 0.5593303442001343, 0.08588612824678421, 0.018109485507011414, 0.15415777266025543, -0.07173851132392883, 0.0019632549956440926, 0.45932692289352417, -0.32611092925071716, 0.19132892787456512, -0.1725732386112213, 0.0807390958070755, 0.020042747259140015, -0.03157058358192444, 0.04985474795103073, 0.5228727459907532, -0.11887215077877045, 0.19383087754249573, 0.04425099492073059, 0.1886543333530426, -0.113199383020401, 0.16675296425819397, -0.12337417900562286, -0.30068424344062805, 0.030774276703596115, -0.08147513121366501, -0.013105040416121483, 0.028823602944612503, -0.06652206182479858, 0.06685850769281387, 0.2088630199432373, 0.28209078311920166, 0.1485457867383957, -0.10384570807218552, 0.10289014130830765, 0.06941021233797073, -0.3599320650100708, 0.12591688334941864, 0.236667200922966, -0.28972718119621277, 0.19593140482902527, 0.05055755749344826, -0.03994075581431389, 0.07085271179676056, 0.25427907705307007, 0.1748005747795105, 0.030376534909009933, -0.2747744917869568, -0.35229766368865967, -0.672818124294281, 0.30238547921180725, 0.01748100481927395, 0.2508774399757385, -0.10238105058670044, 0.011731944978237152, 0.05638007074594498, -0.05312500521540642, -0.2462199628353119, -0.25243034958839417, -0.038777053356170654, 0.3524784743785858, -0.09575046598911285, 0.002470245584845543, -0.28756797313690186, 0.3995726704597473, 0.14586234092712402, -0.19724123179912567, 0.06539063900709152, -0.05977954715490341, -0.08639656752347946, 0.2657533586025238, -0.42360156774520874, -0.1760619729757309, 0.06769098341464996, 0.49641862511634827, 0.06497208774089813, 0.20992296934127808, 0.06007823348045349, 0.18017438054084778, -0.09818641096353531, 0.045112259685993195, -0.018829520791769028, -0.0528835766017437, -0.08372732996940613, 0.2601970434188843, -0.5280182361602783, -0.0028350064530968666, -0.49914681911468506, -0.476399689912796, 0.12461976706981659, -0.015533491969108582, 0.01084434986114502, -0.2105778157711029, -0.29841580986976624, 0.09192676842212677, 0.26457029581069946, 0.4401879906654358, -0.050717681646347046, -0.05989611893892288, -0.21876871585845947, 0.009230688214302063, 0.26662811636924744, -0.6458785533905029, -0.28846991062164307, -0.2124374806880951, 0.1345546692609787, -0.0403621606528759, -0.05963507294654846, -0.40264081954956055, -0.07239671051502228, 0.28345271944999695, -0.07116694748401642, -0.43617531657218933, -0.17188024520874023, -0.050420645624399185, -0.17073172330856323, -0.23805451393127441, 0.4838346242904663, -0.04084920883178711, -0.2001534104347229, -0.09643720090389252, -0.17172004282474518 ]
https://github.com/huggingface/datasets/issues/2185
Hi ! A `map` function is recomputed if the code changes or if any of the variables it uses changes. Can you check that your function doesn't use `per_device_train_batch_size` or any variable that contains `per_device_train_batch_size` ?
.map() and distributed training
Hi, I have a question regarding distributed training and the `.map` call on a dataset. I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`. `dataset` is then tokenized: ```python datasets = load_from_disk(dataset_path=my_path) [...] def tokenize_function(examples): return tokenizer(examples[text_column_name]) logger.info("Mapping dataset to tokenized dataset.") tokenized_datasets = datasets.map( tokenize_function, batched=True, num_proc=preprocessing_num_workers, remove_columns=column_names, load_from_cache_file=True, ) ``` I am using 31 workers (`preprocessing_num_workers=31`) and thus it creates 31 `cache*.arrow` files in `my_path/train` (there is only a train split). When I relaunch the script, the map is tokenization is skipped in favor of loading the 31 previously cached files, and that's perfect. Everything so far was done by launching a **single process script**. I now launch the same training script in **distributed mode** (`pytorch -m torch.distributed.launch --nproc_per_node 2`). However, once it reaches the map call, it re-does the tokenization... instead of loading the 31 cached files. I tried adding the `cache_file_name` argument: `cache_file_name={"train": my_path/one_of_the_arrow_file}`, but I can't give the 31 cached files, so it probably isn't the right way to do it. **My question: what is the best way to load cached files if they were pre-processed and dumped in multiple arrow files?** It seems automatically handled for single processes but fails on distributed training. - I am following the same structure as the examples of transformers (more specifically [run_clm.py](https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_clm.py) in my case) - I am using 1.5.0 version of datasets if that matters.
36
.map() and distributed training Hi, I have a question regarding distributed training and the `.map` call on a dataset. I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`. `dataset` is then tokenized: ```python datasets = load_from_disk(dataset_path=my_path) [...] def tokenize_function(examples): return tokenizer(examples[text_column_name]) logger.info("Mapping dataset to tokenized dataset.") tokenized_datasets = datasets.map( tokenize_function, batched=True, num_proc=preprocessing_num_workers, remove_columns=column_names, load_from_cache_file=True, ) ``` I am using 31 workers (`preprocessing_num_workers=31`) and thus it creates 31 `cache*.arrow` files in `my_path/train` (there is only a train split). When I relaunch the script, the map is tokenization is skipped in favor of loading the 31 previously cached files, and that's perfect. Everything so far was done by launching a **single process script**. I now launch the same training script in **distributed mode** (`pytorch -m torch.distributed.launch --nproc_per_node 2`). However, once it reaches the map call, it re-does the tokenization... instead of loading the 31 cached files. I tried adding the `cache_file_name` argument: `cache_file_name={"train": my_path/one_of_the_arrow_file}`, but I can't give the 31 cached files, so it probably isn't the right way to do it. **My question: what is the best way to load cached files if they were pre-processed and dumped in multiple arrow files?** It seems automatically handled for single processes but fails on distributed training. - I am following the same structure as the examples of transformers (more specifically [run_clm.py](https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_clm.py) in my case) - I am using 1.5.0 version of datasets if that matters. Hi ! A `map` function is recomputed if the code changes or if any of the variables it uses changes. Can you check that your function doesn't use `per_device_train_batch_size` or any variable that contains `per_device_train_batch_size` ?
[ -0.25376176834106445, -0.22071696817874908, 0.11777669191360474, 0.07457458972930908, 0.21161656081676483, -0.10975947976112366, 0.5170727372169495, 0.010205188766121864, 0.280156672000885, 0.023762941360473633, 0.1822473704814911, 0.34344932436943054, -0.22906403243541718, -0.585545003414154, 0.09414291381835938, 0.06153414025902748, 0.1861155927181244, 0.036659229546785355, -0.03773557022213936, -0.20080313086509705, -0.1529332399368286, 0.07591716945171356, -0.15427061915397644, 0.11705104261636734, -0.7540709972381592, -0.1523153930902481, -0.18345318734645844, 0.10273956507444382, 0.22531767189502716, -0.349908709526062, 0.23422735929489136, 0.22133444249629974, 0.40136218070983887, 0.5336912870407104, -0.00012720905942842364, 0.031262412667274475, 0.18786093592643738, -0.19833087921142578, 0.039717912673950195, -0.047676607966423035, 0.16419044137001038, 0.005025044083595276, 0.1936110556125641, -0.29533615708351135, 0.13107280433177948, -0.1476738452911377, 0.3262222409248352, -0.44181621074676514, 0.4140010476112366, -0.10772977769374847, -0.0018773600459098816, 0.09438981115818024, -0.5714961290359497, 0.13987621665000916, -0.22144007682800293, 0.12348023056983948, 0.1711137890815735, 0.21808217465877533, 0.30292627215385437, -0.34165558218955994, -0.3789151906967163, 0.15822768211364746, -0.1466241180896759, 0.13405956327915192, 0.4135626554489136, 0.036601703613996506, -0.0789884626865387, -0.34870073199272156, -0.07575005292892456, -0.1218583881855011, 0.10768762975931168, -0.07430677115917206, -0.18817904591560364, -0.4665384888648987, -0.27339792251586914, -0.0016583725810050964, -0.0024628639221191406, 0.11624374985694885, -0.02337292954325676, -0.11971396207809448, -0.512408971786499, -0.06252485513687134, 0.055294424295425415, 0.13265450298786163, -0.2732611894607544, 0.4564462900161743, -0.025473613291978836, 0.31633931398391724, 0.1419927477836609, 0.05433780327439308, 0.08374625444412231, -0.1719924658536911, 0.12963718175888062, 0.3715827167034149, 0.027552271261811256, 0.014174334704875946, 0.048927173018455505, -0.3223409354686737, -0.023288927972316742, 0.035609569400548935, 0.23210686445236206, 0.2598091959953308, -0.04798553138971329, 0.265766441822052, 0.4007704555988312, 0.09275077283382416, -0.13914090394973755, 0.6415419578552246, 0.0301112812012434, -0.20047174394130707, -0.6418209075927734, -0.17241260409355164, -0.35194501280784607, -0.06273557245731354, 0.33358895778656006, 0.04270974546670914, -0.20984512567520142, 0.07222733646631241, 0.4604041278362274, -0.23941735923290253, -0.006529681384563446, -0.13254347443580627, 0.021212279796600342, 0.2508152723312378, 0.12879346311092377, 0.43703794479370117, -0.05552713945508003, 0.10142688453197479, -0.19016018509864807, 0.1589488983154297, -0.0596042275428772, -0.30298954248428345, -0.3049106001853943, 0.31606847047805786, 0.16187696158885956, 0.1877596080303192, 0.4239693582057953, -0.10011067986488342, 0.28944191336631775, -0.16136939823627472, 0.3981885313987732, -0.11204609274864197, 0.6585769057273865, 0.10445859283208847, -0.25137796998023987, 0.2223658412694931, 0.18622232973575592, 0.37709999084472656, -0.15356311202049255, 0.33541685342788696, -0.5022832751274109, -0.4383482336997986, 0.47987526655197144, -0.07329710572957993, -0.009593617171049118, 0.06920178234577179, -0.17672206461429596, 0.04275944456458092, 0.5391665697097778, -0.25607866048812866, 0.1344241052865982, -0.35754600167274475, -0.20906588435173035, -0.1776280701160431, 0.2568802237510681, 0.4551611542701721, 0.31371501088142395, -0.3418172001838684, 0.12416860461235046, 0.3162252902984619, 0.2081829160451889, 0.2290947139263153, -0.6239326596260071, 0.3898102939128876, -0.21997970342636108, 0.2747523784637451, 0.3872874975204468, -0.3571226894855499, -0.14352288842201233, 0.29459768533706665, -0.09897412359714508, 0.023358918726444244, -0.15709426999092102, -0.024981658905744553, 0.46411606669425964, -0.02523183822631836, 0.1258821189403534, 0.29645511507987976, -0.21626250445842743, 0.2001037299633026, -0.26173603534698486, 0.016919173300266266, 0.08043830096721649, -0.007085345685482025, 0.19472084939479828, 0.003370814025402069, -0.01280159130692482, 0.11961989849805832, 0.20707708597183228, 0.01023012213408947, 0.22837884724140167, 0.025254059582948685, -0.38506752252578735, 0.09240898489952087, 0.16548272967338562, 0.06651951372623444, -0.15049806237220764, 0.18142394721508026, -0.03323526680469513, -0.3959296643733978, -0.1602499932050705, -0.05221174284815788, 0.16287507116794586, -0.20769402384757996, -0.3108922243118286, -0.1402076780796051, -0.11415490508079529, 0.13802897930145264, -0.04079269990324974, -0.2170620858669281, -0.30005383491516113, -0.09362870454788208, 0.14104345440864563, -0.058869317173957825, 0.21776770055294037, 0.1037801131606102, 0.1914525181055069, -0.12039630115032196, -0.431758850812912, -0.14872407913208008, 0.10814207792282104, -0.2924797832965851, -0.10761462152004242, 0.3776342272758484, 0.04557381197810173, 0.20801958441734314, -0.11058452725410461, 0.32164502143859863, 0.2376917004585266, 0.06689944863319397, 0.16100871562957764, 0.12799228727817535, -0.12457168102264404, -0.15120217204093933, -0.1420784890651703, 0.3465421199798584, 0.12898977100849152, 0.14713610708713531, -0.015548519790172577, 0.016348570585250854, 0.041823163628578186, 0.08298283815383911, -0.23968732357025146, -0.08248831331729889, -0.3200373351573944, -0.19217881560325623, 0.26127326488494873, 0.15466293692588806, 0.037914879620075226, 0.0008638948202133179, 0.33124977350234985, 0.026126787066459656, 0.008366388268768787, -0.14848120510578156, -0.18063613772392273, 0.040065035223960876, 0.1552492380142212, 0.15723349153995514, 0.3422777056694031, -0.01425725594162941, 0.3932815194129944, -0.11448167264461517, 0.10341369360685349, 0.062259066849946976, -0.08174183964729309, -0.0038879550993442535, 0.23241227865219116, 0.15785706043243408, -0.043156273663043976, 0.18351779878139496, -0.24711346626281738, -0.10463260114192963, 0.34853434562683105, -0.24596676230430603, 0.08692952990531921, 0.23295335471630096, -0.012332580983638763, 0.1808800846338272, -0.58160799741745, 0.09181609004735947, 0.0024794600903987885, 0.06690406054258347, -0.16199828684329987, 0.2604070007801056, -0.09503889828920364, 0.41812369227409363, -0.06608524173498154, 0.24358433485031128, -0.11927616596221924, -0.2782992720603943, 0.18054983019828796, -0.1531219333410263, -0.012159873731434345, -0.1923268735408783, 0.12843626737594604, -0.2399800717830658, -0.02265058644115925, 0.07756100594997406, -0.05778702348470688, -0.14292964339256287, 0.1827361285686493, 0.11334659904241562, 0.20742738246917725, -0.5552706718444824, -0.29690954089164734, -0.03207344561815262, -0.378795862197876, -0.1486826092004776, 0.168632373213768, -0.4979078471660614, 0.11927083879709244, -0.05513802915811539, 0.24526435136795044, -0.17175665497779846, -0.12457059323787689, -0.3170382082462311, -0.23057080805301666, -0.019363727420568466, 0.13388170301914215, -0.05494309589266777, 0.1418405920267105, 0.00337914377450943, -0.10536552220582962, -0.23937848210334778, -0.17648035287857056, -0.29188114404678345, 0.06517770886421204, -0.5251650214195251, 0.3886309564113617, -0.18672244250774384, -0.047137025743722916, -0.10934789478778839, -0.046108923852443695, -0.06540866196155548, 0.6399703025817871, -0.33489859104156494, 0.01440516859292984, 0.3095327317714691, -0.010113902390003204, -0.0965968519449234, 0.1116473600268364, 0.5424690246582031, 0.1066482737660408, 0.12662509083747864, -0.05499909445643425, 0.24431531131267548, 0.25604161620140076, 0.17105749249458313, 0.05137470364570618, 0.15952739119529724, -0.11939019709825516, 0.1637127697467804, 1.278239369392395, 0.15221916139125824, -0.05189158022403717, 0.026243407279253006, 0.031482115387916565, -0.014047421514987946, 0.06866703927516937, -0.10581302642822266, 0.061383556574583054, -0.3951038122177124, -0.13081243634223938, 0.1793060451745987, 0.18719373643398285, -0.5139591693878174, 0.0521271675825119, 0.19363132119178772, -0.012220598757266998, -0.3019161820411682, 0.33157795667648315, -0.7171850204467773, 0.5827730298042297, 0.059084221720695496, 0.01788891851902008, -0.4254794120788574, 0.04539966583251953, 0.0945204645395279, -0.15131637454032898, 0.7113601565361023, 0.053420983254909515, -0.43602120876312256, 0.08626678586006165, -0.19184209406375885, 0.03940784931182861, 0.2148352414369583, 0.2028767168521881, 0.09527043998241425, -0.17031636834144592, 0.1477956473827362, 0.1729288399219513, 0.4053846299648285, -0.06395312398672104, 0.022406388074159622, 0.11699347198009491, -0.21794043481349945, -0.13278445601463318, -0.15011581778526306, 0.0643642246723175, 0.37004554271698, 0.023649055510759354, 0.43080151081085205, -0.03033667802810669, -0.17746934294700623, -0.4406907558441162, 0.0884210616350174, -0.35156914591789246, -0.043364278972148895, -0.18708664178848267, 0.07596582174301147, -0.2960948646068573, 0.20950928330421448, 0.30479001998901367, -0.17358358204364777, -0.02137116529047489, -0.26223933696746826, -0.015995388850569725, 0.3147197663784027, -0.10367734730243683, 0.03708218038082123, 0.24423377215862274, 0.14812280237674713, 0.01316995918750763, 0.47191327810287476, 0.21375678479671478, 0.21387828886508942, 0.35466599464416504, -0.32741838693618774, -0.1393888145685196, 0.03683220222592354, 0.007355038076639175, 0.2340703010559082, 0.18982289731502533, 0.03064655512571335, -0.23610259592533112, 0.17738699913024902, -0.16774220764636993, -0.2283785343170166, 0.29504162073135376, 0.11787299811840057, 0.06849822402000427, -0.1757792830467224, -0.4709649980068207, 0.09216651320457458, 0.18397808074951172, -0.22207075357437134, 0.4868582785129547, -0.8516539335250854, -0.2616799771785736, 0.4181651473045349, 0.060836829245090485, 0.6925720572471619, -0.26070255041122437, 0.22726447880268097, -0.2504415214061737, 0.4874327480792999, 0.02045464888215065, -0.6066097617149353, 0.420037180185318, -0.2548579275608063, -0.20416483283042908, -0.04122234880924225, -0.17171798646450043, -0.15596319735050201, 0.7070314884185791, 0.08041739463806152, 0.17252381145954132, 0.11653997004032135, 0.326223760843277, -0.064033642411232, 0.09345532208681107, 0.296688973903656, -0.4377836287021637, 0.22902904450893402, -0.06242624297738075, 0.18298941850662231, 0.15696902573108673, -0.08043394982814789, 0.056510183960199356, 0.12404033541679382, -0.25840067863464355, 0.20868965983390808, 0.0717218741774559, -0.3600729703903198, 0.3634983003139496, 0.03981984779238701, 0.05214431881904602, -0.24333369731903076, 0.6011243462562561, 0.010904846712946892, -0.23199580609798431, 0.09407602995634079, 0.04369913786649704, 0.19311724603176117, -0.012696821242570877, -0.2623346745967865, -0.169743150472641, 0.1262996792793274, 0.09679803252220154, -0.1459384262561798, -0.1205744743347168, -0.30009642243385315, -0.4416496157646179, -0.22375448048114777, 0.3600803017616272, 0.6041753888130188, -0.05056383088231087, -0.058848559856414795, 0.20818959176540375, -0.0861714631319046, 0.16688421368598938, -0.006943376734852791, 0.06400163471698761, -0.13817022740840912, 0.3867053687572479, -0.023509351536631584, -0.12429054081439972, 0.20148877799510956, 0.31319659948349, -0.15742981433868408, -0.16826200485229492, 0.2568944990634918, -0.26546716690063477, -0.09693746268749237, -0.05739212781190872, -0.033052146434783936, 0.13893234729766846, -0.36251670122146606, 0.016991805285215378, -0.10655926167964935, 0.016631633043289185, 0.09930630028247833, 0.08376305550336838, 0.1839829683303833, 0.10752752423286438, -0.32399290800094604, -0.18157516419887543, -0.3717832863330841, -0.027891848236322403, -0.13650047779083252, 0.050566621124744415, 0.273404061794281, 0.1305762529373169, 0.10531769692897797, 0.3764920234680176, -0.131726935505867, 0.12283804267644882, 0.08179904520511627, 0.39739254117012024, -0.051867179572582245, 0.0050208657048642635, -0.11582918465137482, -0.029191913083195686, -0.18753819167613983, 0.0908719077706337, -0.14214685559272766, 0.004255477339029312, 0.08487844467163086, 0.22508561611175537, 0.19454500079154968, -0.07184560596942902, -0.07553113996982574, -0.21736054122447968, 0.11622139811515808, -0.45004045963287354, 0.048767514526844025, 0.016033247113227844, -0.18818983435630798, 0.04671231284737587, 0.5341086387634277, 0.16230976581573486, -0.40415704250335693, 0.14515092968940735, -0.08664347231388092, -0.05059658735990524, -0.032024793326854706, 0.1041380763053894, 0.16308027505874634, -0.0049898698925971985, -0.08145372569561005, -0.03455391153693199, 0.3659765422344208, 0.1690807044506073, 0.4754377603530884, -0.22721193730831146, 0.07048198580741882, -0.029281126335263252, 0.1734142303466797, 0.232578307390213, -0.3147431015968323, -0.05992067605257034, 0.34154725074768066, 0.02412264049053192, 0.028265289962291718, -0.19900518655776978, 0.37714865803718567, 0.08671752363443375, -0.1169264018535614, 0.2695806622505188, 0.2913132905960083, -0.39842063188552856, 0.1071692556142807, 0.13878047466278076, 0.5225743651390076, -0.3287661671638489, 0.2685764729976654, 0.026905927807092667, 0.08572269976139069, 0.17605909705162048, 0.2698517441749573, 0.31044960021972656, 0.17821171879768372, -0.07478172332048416, 0.02938060089945793, 0.24966035783290863, 0.39850446581840515, -0.10355211049318314, -0.187476247549057, -0.4894891679286957, -0.07363848388195038, -0.004409722983837128, -0.03696085140109062, 0.1242683082818985, -0.2778053879737854, 0.27289825677871704, -0.28476494550704956, -0.5857909321784973, 0.12542147934436798, 0.3274543881416321, -0.20131340622901917, -0.0886797308921814, 0.09267833828926086, 0.0113811194896698, -0.04623457044363022, 0.09415905177593231, 0.04416855052113533, 0.2097100466489792, 0.5593303442001343, 0.08588612824678421, 0.018109485507011414, 0.15415777266025543, -0.07173851132392883, 0.0019632549956440926, 0.45932692289352417, -0.32611092925071716, 0.19132892787456512, -0.1725732386112213, 0.0807390958070755, 0.020042747259140015, -0.03157058358192444, 0.04985474795103073, 0.5228727459907532, -0.11887215077877045, 0.19383087754249573, 0.04425099492073059, 0.1886543333530426, -0.113199383020401, 0.16675296425819397, -0.12337417900562286, -0.30068424344062805, 0.030774276703596115, -0.08147513121366501, -0.013105040416121483, 0.028823602944612503, -0.06652206182479858, 0.06685850769281387, 0.2088630199432373, 0.28209078311920166, 0.1485457867383957, -0.10384570807218552, 0.10289014130830765, 0.06941021233797073, -0.3599320650100708, 0.12591688334941864, 0.236667200922966, -0.28972718119621277, 0.19593140482902527, 0.05055755749344826, -0.03994075581431389, 0.07085271179676056, 0.25427907705307007, 0.1748005747795105, 0.030376534909009933, -0.2747744917869568, -0.35229766368865967, -0.672818124294281, 0.30238547921180725, 0.01748100481927395, 0.2508774399757385, -0.10238105058670044, 0.011731944978237152, 0.05638007074594498, -0.05312500521540642, -0.2462199628353119, -0.25243034958839417, -0.038777053356170654, 0.3524784743785858, -0.09575046598911285, 0.002470245584845543, -0.28756797313690186, 0.3995726704597473, 0.14586234092712402, -0.19724123179912567, 0.06539063900709152, -0.05977954715490341, -0.08639656752347946, 0.2657533586025238, -0.42360156774520874, -0.1760619729757309, 0.06769098341464996, 0.49641862511634827, 0.06497208774089813, 0.20992296934127808, 0.06007823348045349, 0.18017438054084778, -0.09818641096353531, 0.045112259685993195, -0.018829520791769028, -0.0528835766017437, -0.08372732996940613, 0.2601970434188843, -0.5280182361602783, -0.0028350064530968666, -0.49914681911468506, -0.476399689912796, 0.12461976706981659, -0.015533491969108582, 0.01084434986114502, -0.2105778157711029, -0.29841580986976624, 0.09192676842212677, 0.26457029581069946, 0.4401879906654358, -0.050717681646347046, -0.05989611893892288, -0.21876871585845947, 0.009230688214302063, 0.26662811636924744, -0.6458785533905029, -0.28846991062164307, -0.2124374806880951, 0.1345546692609787, -0.0403621606528759, -0.05963507294654846, -0.40264081954956055, -0.07239671051502228, 0.28345271944999695, -0.07116694748401642, -0.43617531657218933, -0.17188024520874023, -0.050420645624399185, -0.17073172330856323, -0.23805451393127441, 0.4838346242904663, -0.04084920883178711, -0.2001534104347229, -0.09643720090389252, -0.17172004282474518 ]
https://github.com/huggingface/datasets/issues/2185
My code is actually a transformer's example for training t5, I modified a bit: https://github.com/puraminy/transformers/blob/4b40877132eedb566043f83de8f1d29a84d71430/examples/flax/language-modeling/run_t5_mlm_flax.py#L614 No, it doesn't use `per_device_train_batch_size`. I remember it worked for several times and then for no reason or various reasons like the above it started to build the cache again, as if it had an expiration date (maybe), or maybe I had changed the code! So, to get rid of these problems I saved cache with a name (was forced to not use multiple_processes, because otherwise it generates multiple files) and then I load it from this cache file.
.map() and distributed training
Hi, I have a question regarding distributed training and the `.map` call on a dataset. I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`. `dataset` is then tokenized: ```python datasets = load_from_disk(dataset_path=my_path) [...] def tokenize_function(examples): return tokenizer(examples[text_column_name]) logger.info("Mapping dataset to tokenized dataset.") tokenized_datasets = datasets.map( tokenize_function, batched=True, num_proc=preprocessing_num_workers, remove_columns=column_names, load_from_cache_file=True, ) ``` I am using 31 workers (`preprocessing_num_workers=31`) and thus it creates 31 `cache*.arrow` files in `my_path/train` (there is only a train split). When I relaunch the script, the map is tokenization is skipped in favor of loading the 31 previously cached files, and that's perfect. Everything so far was done by launching a **single process script**. I now launch the same training script in **distributed mode** (`pytorch -m torch.distributed.launch --nproc_per_node 2`). However, once it reaches the map call, it re-does the tokenization... instead of loading the 31 cached files. I tried adding the `cache_file_name` argument: `cache_file_name={"train": my_path/one_of_the_arrow_file}`, but I can't give the 31 cached files, so it probably isn't the right way to do it. **My question: what is the best way to load cached files if they were pre-processed and dumped in multiple arrow files?** It seems automatically handled for single processes but fails on distributed training. - I am following the same structure as the examples of transformers (more specifically [run_clm.py](https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_clm.py) in my case) - I am using 1.5.0 version of datasets if that matters.
94
.map() and distributed training Hi, I have a question regarding distributed training and the `.map` call on a dataset. I have a local dataset "my_custom_dataset" that I am loading with `datasets = load_from_disk(dataset_path=my_path)`. `dataset` is then tokenized: ```python datasets = load_from_disk(dataset_path=my_path) [...] def tokenize_function(examples): return tokenizer(examples[text_column_name]) logger.info("Mapping dataset to tokenized dataset.") tokenized_datasets = datasets.map( tokenize_function, batched=True, num_proc=preprocessing_num_workers, remove_columns=column_names, load_from_cache_file=True, ) ``` I am using 31 workers (`preprocessing_num_workers=31`) and thus it creates 31 `cache*.arrow` files in `my_path/train` (there is only a train split). When I relaunch the script, the map is tokenization is skipped in favor of loading the 31 previously cached files, and that's perfect. Everything so far was done by launching a **single process script**. I now launch the same training script in **distributed mode** (`pytorch -m torch.distributed.launch --nproc_per_node 2`). However, once it reaches the map call, it re-does the tokenization... instead of loading the 31 cached files. I tried adding the `cache_file_name` argument: `cache_file_name={"train": my_path/one_of_the_arrow_file}`, but I can't give the 31 cached files, so it probably isn't the right way to do it. **My question: what is the best way to load cached files if they were pre-processed and dumped in multiple arrow files?** It seems automatically handled for single processes but fails on distributed training. - I am following the same structure as the examples of transformers (more specifically [run_clm.py](https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_clm.py) in my case) - I am using 1.5.0 version of datasets if that matters. My code is actually a transformer's example for training t5, I modified a bit: https://github.com/puraminy/transformers/blob/4b40877132eedb566043f83de8f1d29a84d71430/examples/flax/language-modeling/run_t5_mlm_flax.py#L614 No, it doesn't use `per_device_train_batch_size`. I remember it worked for several times and then for no reason or various reasons like the above it started to build the cache again, as if it had an expiration date (maybe), or maybe I had changed the code! So, to get rid of these problems I saved cache with a name (was forced to not use multiple_processes, because otherwise it generates multiple files) and then I load it from this cache file.
[ -0.25376176834106445, -0.22071696817874908, 0.11777669191360474, 0.07457458972930908, 0.21161656081676483, -0.10975947976112366, 0.5170727372169495, 0.010205188766121864, 0.280156672000885, 0.023762941360473633, 0.1822473704814911, 0.34344932436943054, -0.22906403243541718, -0.585545003414154, 0.09414291381835938, 0.06153414025902748, 0.1861155927181244, 0.036659229546785355, -0.03773557022213936, -0.20080313086509705, -0.1529332399368286, 0.07591716945171356, -0.15427061915397644, 0.11705104261636734, -0.7540709972381592, -0.1523153930902481, -0.18345318734645844, 0.10273956507444382, 0.22531767189502716, -0.349908709526062, 0.23422735929489136, 0.22133444249629974, 0.40136218070983887, 0.5336912870407104, -0.00012720905942842364, 0.031262412667274475, 0.18786093592643738, -0.19833087921142578, 0.039717912673950195, -0.047676607966423035, 0.16419044137001038, 0.005025044083595276, 0.1936110556125641, -0.29533615708351135, 0.13107280433177948, -0.1476738452911377, 0.3262222409248352, -0.44181621074676514, 0.4140010476112366, -0.10772977769374847, -0.0018773600459098816, 0.09438981115818024, -0.5714961290359497, 0.13987621665000916, -0.22144007682800293, 0.12348023056983948, 0.1711137890815735, 0.21808217465877533, 0.30292627215385437, -0.34165558218955994, -0.3789151906967163, 0.15822768211364746, -0.1466241180896759, 0.13405956327915192, 0.4135626554489136, 0.036601703613996506, -0.0789884626865387, -0.34870073199272156, -0.07575005292892456, -0.1218583881855011, 0.10768762975931168, -0.07430677115917206, -0.18817904591560364, -0.4665384888648987, -0.27339792251586914, -0.0016583725810050964, -0.0024628639221191406, 0.11624374985694885, -0.02337292954325676, -0.11971396207809448, -0.512408971786499, -0.06252485513687134, 0.055294424295425415, 0.13265450298786163, -0.2732611894607544, 0.4564462900161743, -0.025473613291978836, 0.31633931398391724, 0.1419927477836609, 0.05433780327439308, 0.08374625444412231, -0.1719924658536911, 0.12963718175888062, 0.3715827167034149, 0.027552271261811256, 0.014174334704875946, 0.048927173018455505, -0.3223409354686737, -0.023288927972316742, 0.035609569400548935, 0.23210686445236206, 0.2598091959953308, -0.04798553138971329, 0.265766441822052, 0.4007704555988312, 0.09275077283382416, -0.13914090394973755, 0.6415419578552246, 0.0301112812012434, -0.20047174394130707, -0.6418209075927734, -0.17241260409355164, -0.35194501280784607, -0.06273557245731354, 0.33358895778656006, 0.04270974546670914, -0.20984512567520142, 0.07222733646631241, 0.4604041278362274, -0.23941735923290253, -0.006529681384563446, -0.13254347443580627, 0.021212279796600342, 0.2508152723312378, 0.12879346311092377, 0.43703794479370117, -0.05552713945508003, 0.10142688453197479, -0.19016018509864807, 0.1589488983154297, -0.0596042275428772, -0.30298954248428345, -0.3049106001853943, 0.31606847047805786, 0.16187696158885956, 0.1877596080303192, 0.4239693582057953, -0.10011067986488342, 0.28944191336631775, -0.16136939823627472, 0.3981885313987732, -0.11204609274864197, 0.6585769057273865, 0.10445859283208847, -0.25137796998023987, 0.2223658412694931, 0.18622232973575592, 0.37709999084472656, -0.15356311202049255, 0.33541685342788696, -0.5022832751274109, -0.4383482336997986, 0.47987526655197144, -0.07329710572957993, -0.009593617171049118, 0.06920178234577179, -0.17672206461429596, 0.04275944456458092, 0.5391665697097778, -0.25607866048812866, 0.1344241052865982, -0.35754600167274475, -0.20906588435173035, -0.1776280701160431, 0.2568802237510681, 0.4551611542701721, 0.31371501088142395, -0.3418172001838684, 0.12416860461235046, 0.3162252902984619, 0.2081829160451889, 0.2290947139263153, -0.6239326596260071, 0.3898102939128876, -0.21997970342636108, 0.2747523784637451, 0.3872874975204468, -0.3571226894855499, -0.14352288842201233, 0.29459768533706665, -0.09897412359714508, 0.023358918726444244, -0.15709426999092102, -0.024981658905744553, 0.46411606669425964, -0.02523183822631836, 0.1258821189403534, 0.29645511507987976, -0.21626250445842743, 0.2001037299633026, -0.26173603534698486, 0.016919173300266266, 0.08043830096721649, -0.007085345685482025, 0.19472084939479828, 0.003370814025402069, -0.01280159130692482, 0.11961989849805832, 0.20707708597183228, 0.01023012213408947, 0.22837884724140167, 0.025254059582948685, -0.38506752252578735, 0.09240898489952087, 0.16548272967338562, 0.06651951372623444, -0.15049806237220764, 0.18142394721508026, -0.03323526680469513, -0.3959296643733978, -0.1602499932050705, -0.05221174284815788, 0.16287507116794586, -0.20769402384757996, -0.3108922243118286, -0.1402076780796051, -0.11415490508079529, 0.13802897930145264, -0.04079269990324974, -0.2170620858669281, -0.30005383491516113, -0.09362870454788208, 0.14104345440864563, -0.058869317173957825, 0.21776770055294037, 0.1037801131606102, 0.1914525181055069, -0.12039630115032196, -0.431758850812912, -0.14872407913208008, 0.10814207792282104, -0.2924797832965851, -0.10761462152004242, 0.3776342272758484, 0.04557381197810173, 0.20801958441734314, -0.11058452725410461, 0.32164502143859863, 0.2376917004585266, 0.06689944863319397, 0.16100871562957764, 0.12799228727817535, -0.12457168102264404, -0.15120217204093933, -0.1420784890651703, 0.3465421199798584, 0.12898977100849152, 0.14713610708713531, -0.015548519790172577, 0.016348570585250854, 0.041823163628578186, 0.08298283815383911, -0.23968732357025146, -0.08248831331729889, -0.3200373351573944, -0.19217881560325623, 0.26127326488494873, 0.15466293692588806, 0.037914879620075226, 0.0008638948202133179, 0.33124977350234985, 0.026126787066459656, 0.008366388268768787, -0.14848120510578156, -0.18063613772392273, 0.040065035223960876, 0.1552492380142212, 0.15723349153995514, 0.3422777056694031, -0.01425725594162941, 0.3932815194129944, -0.11448167264461517, 0.10341369360685349, 0.062259066849946976, -0.08174183964729309, -0.0038879550993442535, 0.23241227865219116, 0.15785706043243408, -0.043156273663043976, 0.18351779878139496, -0.24711346626281738, -0.10463260114192963, 0.34853434562683105, -0.24596676230430603, 0.08692952990531921, 0.23295335471630096, -0.012332580983638763, 0.1808800846338272, -0.58160799741745, 0.09181609004735947, 0.0024794600903987885, 0.06690406054258347, -0.16199828684329987, 0.2604070007801056, -0.09503889828920364, 0.41812369227409363, -0.06608524173498154, 0.24358433485031128, -0.11927616596221924, -0.2782992720603943, 0.18054983019828796, -0.1531219333410263, -0.012159873731434345, -0.1923268735408783, 0.12843626737594604, -0.2399800717830658, -0.02265058644115925, 0.07756100594997406, -0.05778702348470688, -0.14292964339256287, 0.1827361285686493, 0.11334659904241562, 0.20742738246917725, -0.5552706718444824, -0.29690954089164734, -0.03207344561815262, -0.378795862197876, -0.1486826092004776, 0.168632373213768, -0.4979078471660614, 0.11927083879709244, -0.05513802915811539, 0.24526435136795044, -0.17175665497779846, -0.12457059323787689, -0.3170382082462311, -0.23057080805301666, -0.019363727420568466, 0.13388170301914215, -0.05494309589266777, 0.1418405920267105, 0.00337914377450943, -0.10536552220582962, -0.23937848210334778, -0.17648035287857056, -0.29188114404678345, 0.06517770886421204, -0.5251650214195251, 0.3886309564113617, -0.18672244250774384, -0.047137025743722916, -0.10934789478778839, -0.046108923852443695, -0.06540866196155548, 0.6399703025817871, -0.33489859104156494, 0.01440516859292984, 0.3095327317714691, -0.010113902390003204, -0.0965968519449234, 0.1116473600268364, 0.5424690246582031, 0.1066482737660408, 0.12662509083747864, -0.05499909445643425, 0.24431531131267548, 0.25604161620140076, 0.17105749249458313, 0.05137470364570618, 0.15952739119529724, -0.11939019709825516, 0.1637127697467804, 1.278239369392395, 0.15221916139125824, -0.05189158022403717, 0.026243407279253006, 0.031482115387916565, -0.014047421514987946, 0.06866703927516937, -0.10581302642822266, 0.061383556574583054, -0.3951038122177124, -0.13081243634223938, 0.1793060451745987, 0.18719373643398285, -0.5139591693878174, 0.0521271675825119, 0.19363132119178772, -0.012220598757266998, -0.3019161820411682, 0.33157795667648315, -0.7171850204467773, 0.5827730298042297, 0.059084221720695496, 0.01788891851902008, -0.4254794120788574, 0.04539966583251953, 0.0945204645395279, -0.15131637454032898, 0.7113601565361023, 0.053420983254909515, -0.43602120876312256, 0.08626678586006165, -0.19184209406375885, 0.03940784931182861, 0.2148352414369583, 0.2028767168521881, 0.09527043998241425, -0.17031636834144592, 0.1477956473827362, 0.1729288399219513, 0.4053846299648285, -0.06395312398672104, 0.022406388074159622, 0.11699347198009491, -0.21794043481349945, -0.13278445601463318, -0.15011581778526306, 0.0643642246723175, 0.37004554271698, 0.023649055510759354, 0.43080151081085205, -0.03033667802810669, -0.17746934294700623, -0.4406907558441162, 0.0884210616350174, -0.35156914591789246, -0.043364278972148895, -0.18708664178848267, 0.07596582174301147, -0.2960948646068573, 0.20950928330421448, 0.30479001998901367, -0.17358358204364777, -0.02137116529047489, -0.26223933696746826, -0.015995388850569725, 0.3147197663784027, -0.10367734730243683, 0.03708218038082123, 0.24423377215862274, 0.14812280237674713, 0.01316995918750763, 0.47191327810287476, 0.21375678479671478, 0.21387828886508942, 0.35466599464416504, -0.32741838693618774, -0.1393888145685196, 0.03683220222592354, 0.007355038076639175, 0.2340703010559082, 0.18982289731502533, 0.03064655512571335, -0.23610259592533112, 0.17738699913024902, -0.16774220764636993, -0.2283785343170166, 0.29504162073135376, 0.11787299811840057, 0.06849822402000427, -0.1757792830467224, -0.4709649980068207, 0.09216651320457458, 0.18397808074951172, -0.22207075357437134, 0.4868582785129547, -0.8516539335250854, -0.2616799771785736, 0.4181651473045349, 0.060836829245090485, 0.6925720572471619, -0.26070255041122437, 0.22726447880268097, -0.2504415214061737, 0.4874327480792999, 0.02045464888215065, -0.6066097617149353, 0.420037180185318, -0.2548579275608063, -0.20416483283042908, -0.04122234880924225, -0.17171798646450043, -0.15596319735050201, 0.7070314884185791, 0.08041739463806152, 0.17252381145954132, 0.11653997004032135, 0.326223760843277, -0.064033642411232, 0.09345532208681107, 0.296688973903656, -0.4377836287021637, 0.22902904450893402, -0.06242624297738075, 0.18298941850662231, 0.15696902573108673, -0.08043394982814789, 0.056510183960199356, 0.12404033541679382, -0.25840067863464355, 0.20868965983390808, 0.0717218741774559, -0.3600729703903198, 0.3634983003139496, 0.03981984779238701, 0.05214431881904602, -0.24333369731903076, 0.6011243462562561, 0.010904846712946892, -0.23199580609798431, 0.09407602995634079, 0.04369913786649704, 0.19311724603176117, -0.012696821242570877, -0.2623346745967865, -0.169743150472641, 0.1262996792793274, 0.09679803252220154, -0.1459384262561798, -0.1205744743347168, -0.30009642243385315, -0.4416496157646179, -0.22375448048114777, 0.3600803017616272, 0.6041753888130188, -0.05056383088231087, -0.058848559856414795, 0.20818959176540375, -0.0861714631319046, 0.16688421368598938, -0.006943376734852791, 0.06400163471698761, -0.13817022740840912, 0.3867053687572479, -0.023509351536631584, -0.12429054081439972, 0.20148877799510956, 0.31319659948349, -0.15742981433868408, -0.16826200485229492, 0.2568944990634918, -0.26546716690063477, -0.09693746268749237, -0.05739212781190872, -0.033052146434783936, 0.13893234729766846, -0.36251670122146606, 0.016991805285215378, -0.10655926167964935, 0.016631633043289185, 0.09930630028247833, 0.08376305550336838, 0.1839829683303833, 0.10752752423286438, -0.32399290800094604, -0.18157516419887543, -0.3717832863330841, -0.027891848236322403, -0.13650047779083252, 0.050566621124744415, 0.273404061794281, 0.1305762529373169, 0.10531769692897797, 0.3764920234680176, -0.131726935505867, 0.12283804267644882, 0.08179904520511627, 0.39739254117012024, -0.051867179572582245, 0.0050208657048642635, -0.11582918465137482, -0.029191913083195686, -0.18753819167613983, 0.0908719077706337, -0.14214685559272766, 0.004255477339029312, 0.08487844467163086, 0.22508561611175537, 0.19454500079154968, -0.07184560596942902, -0.07553113996982574, -0.21736054122447968, 0.11622139811515808, -0.45004045963287354, 0.048767514526844025, 0.016033247113227844, -0.18818983435630798, 0.04671231284737587, 0.5341086387634277, 0.16230976581573486, -0.40415704250335693, 0.14515092968940735, -0.08664347231388092, -0.05059658735990524, -0.032024793326854706, 0.1041380763053894, 0.16308027505874634, -0.0049898698925971985, -0.08145372569561005, -0.03455391153693199, 0.3659765422344208, 0.1690807044506073, 0.4754377603530884, -0.22721193730831146, 0.07048198580741882, -0.029281126335263252, 0.1734142303466797, 0.232578307390213, -0.3147431015968323, -0.05992067605257034, 0.34154725074768066, 0.02412264049053192, 0.028265289962291718, -0.19900518655776978, 0.37714865803718567, 0.08671752363443375, -0.1169264018535614, 0.2695806622505188, 0.2913132905960083, -0.39842063188552856, 0.1071692556142807, 0.13878047466278076, 0.5225743651390076, -0.3287661671638489, 0.2685764729976654, 0.026905927807092667, 0.08572269976139069, 0.17605909705162048, 0.2698517441749573, 0.31044960021972656, 0.17821171879768372, -0.07478172332048416, 0.02938060089945793, 0.24966035783290863, 0.39850446581840515, -0.10355211049318314, -0.187476247549057, -0.4894891679286957, -0.07363848388195038, -0.004409722983837128, -0.03696085140109062, 0.1242683082818985, -0.2778053879737854, 0.27289825677871704, -0.28476494550704956, -0.5857909321784973, 0.12542147934436798, 0.3274543881416321, -0.20131340622901917, -0.0886797308921814, 0.09267833828926086, 0.0113811194896698, -0.04623457044363022, 0.09415905177593231, 0.04416855052113533, 0.2097100466489792, 0.5593303442001343, 0.08588612824678421, 0.018109485507011414, 0.15415777266025543, -0.07173851132392883, 0.0019632549956440926, 0.45932692289352417, -0.32611092925071716, 0.19132892787456512, -0.1725732386112213, 0.0807390958070755, 0.020042747259140015, -0.03157058358192444, 0.04985474795103073, 0.5228727459907532, -0.11887215077877045, 0.19383087754249573, 0.04425099492073059, 0.1886543333530426, -0.113199383020401, 0.16675296425819397, -0.12337417900562286, -0.30068424344062805, 0.030774276703596115, -0.08147513121366501, -0.013105040416121483, 0.028823602944612503, -0.06652206182479858, 0.06685850769281387, 0.2088630199432373, 0.28209078311920166, 0.1485457867383957, -0.10384570807218552, 0.10289014130830765, 0.06941021233797073, -0.3599320650100708, 0.12591688334941864, 0.236667200922966, -0.28972718119621277, 0.19593140482902527, 0.05055755749344826, -0.03994075581431389, 0.07085271179676056, 0.25427907705307007, 0.1748005747795105, 0.030376534909009933, -0.2747744917869568, -0.35229766368865967, -0.672818124294281, 0.30238547921180725, 0.01748100481927395, 0.2508774399757385, -0.10238105058670044, 0.011731944978237152, 0.05638007074594498, -0.05312500521540642, -0.2462199628353119, -0.25243034958839417, -0.038777053356170654, 0.3524784743785858, -0.09575046598911285, 0.002470245584845543, -0.28756797313690186, 0.3995726704597473, 0.14586234092712402, -0.19724123179912567, 0.06539063900709152, -0.05977954715490341, -0.08639656752347946, 0.2657533586025238, -0.42360156774520874, -0.1760619729757309, 0.06769098341464996, 0.49641862511634827, 0.06497208774089813, 0.20992296934127808, 0.06007823348045349, 0.18017438054084778, -0.09818641096353531, 0.045112259685993195, -0.018829520791769028, -0.0528835766017437, -0.08372732996940613, 0.2601970434188843, -0.5280182361602783, -0.0028350064530968666, -0.49914681911468506, -0.476399689912796, 0.12461976706981659, -0.015533491969108582, 0.01084434986114502, -0.2105778157711029, -0.29841580986976624, 0.09192676842212677, 0.26457029581069946, 0.4401879906654358, -0.050717681646347046, -0.05989611893892288, -0.21876871585845947, 0.009230688214302063, 0.26662811636924744, -0.6458785533905029, -0.28846991062164307, -0.2124374806880951, 0.1345546692609787, -0.0403621606528759, -0.05963507294654846, -0.40264081954956055, -0.07239671051502228, 0.28345271944999695, -0.07116694748401642, -0.43617531657218933, -0.17188024520874023, -0.050420645624399185, -0.17073172330856323, -0.23805451393127441, 0.4838346242904663, -0.04084920883178711, -0.2001534104347229, -0.09643720090389252, -0.17172004282474518 ]
https://github.com/huggingface/datasets/issues/2181
Hi ! Can you try to increase the block size ? For example ```python block_size_10MB = 10<<20 load_dataset("json", ..., block_size=block_size_10MB) ``` The block size corresponds to how much bytes to process at a time from the input stream. This will determine multi-threading granularity as well as the size of individual chunks in the dataset. You can also try with bigger block sizes if needed
Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries)
Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project. When loading a huge json file of 500GB, pyarrow complains as follows: ``` Traceback (most recent call last): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 531, in incomplete_dir yield tmp_dir File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 1027, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/app/.cache/huggingface/modules/datasets_modules/datasets/json/9498524fd296a6cca99c66d6c5be507d1c0991f5a814e535b507f4a66096a641/json.py", line 83, in _generate_tables parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 247, in pyarrow._json.read_json File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` When using only a small portion of the sample file, say first 100 lines, it works perfectly well.. I see that it is the error from pyarrow, but could you give me a hint or possible solutions? #369 describes the same error and #372 claims to have fixed the issue, but I have no clue why I am still getting this one. Thanks in advance!
64
Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries) Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project. When loading a huge json file of 500GB, pyarrow complains as follows: ``` Traceback (most recent call last): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 531, in incomplete_dir yield tmp_dir File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 1027, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/app/.cache/huggingface/modules/datasets_modules/datasets/json/9498524fd296a6cca99c66d6c5be507d1c0991f5a814e535b507f4a66096a641/json.py", line 83, in _generate_tables parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 247, in pyarrow._json.read_json File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` When using only a small portion of the sample file, say first 100 lines, it works perfectly well.. I see that it is the error from pyarrow, but could you give me a hint or possible solutions? #369 describes the same error and #372 claims to have fixed the issue, but I have no clue why I am still getting this one. Thanks in advance! Hi ! Can you try to increase the block size ? For example ```python block_size_10MB = 10<<20 load_dataset("json", ..., block_size=block_size_10MB) ``` The block size corresponds to how much bytes to process at a time from the input stream. This will determine multi-threading granularity as well as the size of individual chunks in the dataset. You can also try with bigger block sizes if needed
[ 0.016557134687900543, 0.012686491012573242, -0.007510840892791748, 0.340938001871109, 0.16045337915420532, -0.2647136151790619, 0.1936325877904892, 0.585946798324585, -0.1621612310409546, -0.08150680363178253, 0.165473073720932, 0.1441625952720642, -0.015083150938153267, 0.014561839401721954, -0.12952116131782532, -0.19119158387184143, 0.03336812183260918, 0.07827459275722504, -0.08155374228954315, 0.13550716638565063, -0.036886993795633316, 0.23287232220172882, -0.09352752566337585, 0.2323910892009735, -0.08702811598777771, -0.078151173889637, 0.19806386530399323, 0.3374811112880707, -0.3348849415779114, -0.4495867192745209, 0.16122466325759888, -0.2951851189136505, 0.00625833123922348, 0.3340713381767273, -0.00011563083535293117, 0.04710572957992554, 0.2495899200439453, 0.10917901247739792, 0.018743246793746948, -0.21912096440792084, 0.28083518147468567, -0.3987070620059967, 0.22801175713539124, -0.16741758584976196, 0.12958505749702454, -0.4462142884731293, -0.3999216854572296, 0.3737812936306, 0.42772966623306274, -0.1255548894405365, 0.16510146856307983, 0.09121091663837433, 0.2657487690448761, 0.2669147551059723, 0.43684399127960205, -0.06525061279535294, 0.027398288249969482, 0.5041723251342773, 0.3052016496658325, -0.2382044792175293, -0.335480660200119, -0.13703159987926483, -0.24959173798561096, 0.13811476528644562, 0.37793204188346863, -0.1172008365392685, 0.0762815773487091, 0.058968108147382736, -0.0799434632062912, 0.037721555680036545, 0.22632096707820892, -0.40860217809677124, -0.10335905849933624, -0.07818765938282013, -0.08564877510070801, -0.18307429552078247, 0.30791807174682617, 0.38823094964027405, -0.21039502322673798, 0.06983030587434769, -0.19144491851329803, -0.10000123083591461, -0.19912081956863403, 0.17865115404129028, -0.35803136229515076, -0.1259491741657257, -0.0024533364921808243, 0.3322299122810364, 0.23105305433273315, -0.007611139677464962, -0.03557560220360756, 0.03110630065202713, -0.27349409461021423, -0.05659797787666321, -0.20946265757083893, 0.016639187932014465, 0.001514500007033348, -0.31718331575393677, 0.19064874947071075, 0.22608867287635803, 0.1960858255624771, -0.0655946433544159, 0.24631495773792267, 0.2574920058250427, 0.6111612319946289, 0.059475723654031754, -0.35225409269332886, -0.16774725914001465, 0.20540012419223785, 0.23781505227088928, -0.01948721706867218, 0.060987699776887894, -0.05920731648802757, -0.5538620948791504, 0.05948247015476227, -0.27982696890830994, 0.25977540016174316, -0.21602407097816467, -0.21031984686851501, 0.13332229852676392, -0.7950461506843567, 0.05001157149672508, 0.16625311970710754, 0.2496994137763977, 0.027215834707021713, 0.2363472580909729, 0.048551835119724274, 0.15819595754146576, 0.00895940512418747, -0.1194203794002533, -0.007867541164159775, 0.1263681948184967, -0.152511864900589, 0.03859640657901764, 0.15799176692962646, -0.1335815191268921, -0.006415821611881256, 0.1193346232175827, 0.21734745800495148, -0.21163922548294067, 0.18620648980140686, 0.016617346554994583, 0.04777029529213905, 0.32882145047187805, -0.051676537841558456, 0.1116405725479126, -0.05485987663269043, -0.012655116617679596, -0.2687698006629944, 0.4798906147480011, -0.06268774718046188, -0.3448125123977661, -0.17427487671375275, 0.1004122644662857, -0.26061367988586426, 0.2655538320541382, 0.004983406513929367, 0.03751701861619949, 0.15041927993297577, -0.36913180351257324, 0.21616050601005554, -0.13115130364894867, 0.17783097922801971, -0.3457719385623932, 0.1031695008277893, -0.08137425780296326, -0.686922550201416, 0.017364777624607086, 0.2560485303401947, 0.17541708052158356, -0.09443646669387817, 0.5446499586105347, -0.41504523158073425, 0.14476221799850464, -0.045954056084156036, 0.16156601905822754, 0.14491739869117737, 0.16062840819358826, -0.6060853600502014, 0.37282344698905945, -0.2745344638824463, 0.05764264613389969, 0.030735092237591743, -0.01460561528801918, -0.12643839418888092, -0.02412503771483898, -0.030100323259830475, 0.35156863927841187, 0.08327783644199371, 0.230947345495224, -0.3654412627220154, -0.23694975674152374, 0.12336330115795135, 0.36343520879745483, -0.11454498767852783, -0.41169896721839905, -0.04933193325996399, -0.19168895483016968, 0.05531973019242287, -0.11574171483516693, 0.1517811119556427, 0.4218286871910095, 0.13591890037059784, -0.11939302086830139, 0.10268734395503998, 0.11307455599308014, -0.4654294550418854, 0.02145993709564209, 0.07177260518074036, -0.06311038136482239, -0.34618860483169556, -0.08819680660963058, -0.03014976531267166, 0.2487497180700302, 0.09451157599687576, 0.20600953698158264, 0.034039340913295746, -0.17311519384384155, 0.07218873500823975, -0.0024394840002059937, -0.09863868355751038, -0.4135909378528595, 0.1334342360496521, 0.07346150279045105, -0.010110631585121155, 0.3906272351741791, 0.06373294442892075, -0.29337942600250244, 0.06923151016235352, 0.14978158473968506, -0.033689793199300766, -0.14471060037612915, -0.09443895518779755, 0.18455585837364197, -0.08298837393522263, 0.0026108622550964355, -0.24477800726890564, 0.12931999564170837, 0.28015223145484924, -0.3557436168193817, 0.027763979509472847, 0.10325008630752563, 0.07656967639923096, -0.06545478850603104, 0.2241746485233307, 0.41785210371017456, -0.32889431715011597, 0.20321379601955414, 0.09631937742233276, -0.29225975275039673, 0.0688127651810646, -0.07928574830293655, -0.018426917493343353, 0.16511400043964386, 0.2211025208234787, 0.39223387837409973, 0.22438602149486542, 0.13821087777614594, -0.16022241115570068, -0.11941797286272049, 0.3985999822616577, -0.18343088030815125, -0.0815005749464035, 0.15234488248825073, -0.13357822597026825, -0.03313305601477623, 0.09641968458890915, -0.12941595911979675, 0.1355016678571701, 0.247806578874588, -0.14270120859146118, -0.0006219875067472458, 0.027252864092588425, -0.17982809245586395, 0.22227734327316284, 0.1978260725736618, 0.1286401003599167, 0.2018653154373169, 0.5253884196281433, -0.1262487769126892, -0.23405295610427856, -0.22392259538173676, 0.24419988691806793, 0.19612833857536316, -0.29082274436950684, 0.12981024384498596, -0.06877247244119644, 0.024300873279571533, -0.08478270471096039, -0.6795875430107117, -0.3061877489089966, -0.09219739586114883, 0.0006513986736536026, 0.4704108238220215, -0.3309013247489929, 0.07065555453300476, 0.15992720425128937, 0.3159405589103699, 0.07936631888151169, -0.18853281438350677, -0.044373661279678345, -0.34382882714271545, -0.25352972745895386, -0.026064585894346237, 0.4630129635334015, 0.14641384780406952, 0.0704183578491211, 0.3701918423175812, 0.02218712866306305, -0.06104494258761406, -0.42885980010032654, 0.21847772598266602, -0.046798888593912125, 0.07783334702253342, 0.0034067295491695404, 0.12915509939193726, -0.24721172451972961, -0.2504463195800781, 0.3068670630455017, 0.03602494299411774, -0.2057611644268036, 0.3271165192127228, -0.1920834630727768, 0.07442647218704224, -0.17810189723968506, 0.11519238352775574, 0.21282653510570526, -0.5418014526367188, 0.3973288834095001, -0.18551909923553467, 0.003990701399743557, -0.2795965075492859, 0.26352033019065857, 0.09601011872291565, 0.06791480630636215, -0.04049712419509888, 0.05940072610974312, -0.420190691947937, 0.1961018145084381, -0.04033276438713074, -0.18817457556724548, 0.04183948040008545, 0.10971665382385254, 0.15190953016281128, 0.1650312840938568, -0.6058765053749084, -0.012862425297498703, -0.07757609337568283, 0.5512679815292358, -0.3430548310279846, -0.2375439703464508, 0.11498129367828369, 0.18758037686347961, -0.016697581857442856, 0.12442353367805481, -0.1434652954339981, 0.015068236738443375, -0.007390338461846113, 0.20498773455619812, -0.10102507472038269, 0.5279215574264526, 0.13047094643115997, 0.7018246054649353, -0.16545483469963074, -0.14300841093063354, 0.3313238024711609, 0.24199295043945312, 0.07736501097679138, 0.04816427826881409, -0.028412964195013046, -0.11799906194210052, -0.1809873878955841, -0.08216679096221924, -0.006838075816631317, 0.04872722551226616, -0.1101650521159172, -0.027632582932710648, -0.11803238093852997, -0.22682607173919678, -0.15881046652793884, 0.3197794556617737, 0.061006996780633926, -0.11388948559761047, -0.20074138045310974, -0.2847958207130432, -0.017008285969495773, -0.08031131327152252, 0.05849076807498932, 0.03809003904461861, 0.10930879414081573, 0.1145235002040863, -0.015752054750919342, -0.30024394392967224, -0.03336978331208229, 0.07999826222658157, 0.3141288161277771, -0.14442768692970276, 0.05180373787879944, -0.1972084939479828, 0.18430845439434052, -0.477792888879776, 0.754143476486206, 0.4649645686149597, -0.07626231014728546, 0.13590162992477417, -0.06636039912700653, -0.37808120250701904, -0.06195589900016785, 0.0836297869682312, 0.19823554158210754, 0.5710027813911438, 0.10321298241615295, -0.452648401260376, -0.10598324239253998, -0.105292409658432, 0.32241320610046387, 0.014623738825321198, -0.47840365767478943, -0.4063738286495209, -0.49590492248535156, -0.45783278346061707, -0.055918771773576736, 0.09452836960554123, 0.190110445022583, 0.1029646098613739, -0.09873926639556885, 0.27969062328338623, -0.25470149517059326, -0.4795067608356476, 0.09781930595636368, 0.17855167388916016, -0.5503336787223816, 0.14910295605659485, 0.051228247582912445, 0.3193379044532776, 0.5359144806861877, 0.6146833896636963, 0.5909867882728577, -0.21832558512687683, -0.05383621156215668, 0.3960571885108948, 0.17988669872283936, 0.16794729232788086, 0.16721193492412567, 0.20855796337127686, -0.1727023422718048, 0.20228227972984314, 0.22147636115550995, -0.010497953742742538, 0.19086429476737976, -0.12107664346694946, -0.0008764080703258514, 0.29116442799568176, 0.5025100111961365, -0.21722999215126038, 0.15785938501358032, 0.4766679108142853, 0.2834439277648926, -0.046716414391994476, 0.22268667817115784, -0.05963486433029175, 0.9461211562156677, -0.021072767674922943, 0.13255499303340912, 0.5243244171142578, -0.42520174384117126, 0.5806592702865601, -0.31889915466308594, 0.09764829277992249, -0.4774038791656494, 0.34796005487442017, 0.06618040800094604, -0.2101878523826599, -0.08619840443134308, 0.06463319063186646, -0.04271344095468521, -0.19860464334487915, -0.08621233701705933, 0.0907088965177536, -0.11656435579061508, 0.07200548052787781, -0.02068118192255497, 0.00021794810891151428, -0.3245541751384735, -0.0062564946711063385, -0.34523090720176697, -0.1282551884651184, -0.17179197072982788, -0.3250170350074768, 0.04215449094772339, -0.17573438584804535, -0.19179342687129974, 0.2709341049194336, 0.1396908015012741, 0.3771393299102783, 0.27483853697776794, -0.14227493107318878, -0.007455669343471527, -0.44002723693847656, -0.2658153772354126, -0.16497322916984558, -0.038579437881708145, 0.2240043580532074, 0.008436289615929127, -0.12542623281478882, -0.021885355934500694, 0.12433987110853195, 0.14794696867465973, -0.1720810830593109, -0.17584805190563202, 0.14636647701263428, -0.1700340211391449, -0.18596315383911133, -0.14072993397712708, 0.1831437647342682, -0.15189680457115173, -0.031130820512771606, -0.06275986135005951, -0.14789730310440063, 0.08175982534885406, -0.128450408577919, 0.06835408508777618, 0.0026660487055778503, 0.0737185925245285, -0.3161940276622772, 0.08391973376274109, -0.3015912175178528, -0.08405137807130814, 0.26980316638946533, -0.031523898243904114, 0.1463477462530136, 0.453889936208725, 0.4027523100376129, -0.0726219117641449, -0.09563928842544556, -0.056729499250650406, 0.5515410900115967, -0.6051447987556458, 0.29131531715393066, -0.15657973289489746, 0.11268812417984009, 0.09658989310264587, 0.3177768886089325, 0.2544376254081726, 0.0715055763721466, 0.026548020541667938, -0.3478246331214905, -0.2285255789756775, 0.49165666103363037, -0.01851816475391388, 0.012202085927128792, 0.10270688682794571, 0.4117227792739868, -0.07805407792329788, 0.19734099507331848, -0.21987266838550568, 0.3020845651626587, 0.02872294932603836, 0.056454796344041824, -0.46020767092704773, -0.21326866745948792, -0.2015921175479889, 0.25507840514183044, 0.02708866447210312, 0.16798681020736694, -0.07122465968132019, -0.12592589855194092, -0.12761631608009338, 0.10120342671871185, 0.1020171195268631, -0.09683972597122192, -0.06450266391038895, -0.10317181795835495, 0.12111099064350128, 0.12978413701057434, 0.13172724843025208, -0.20999029278755188, -0.053500719368457794, -0.3004149794578552, 0.001518632285296917, -0.18776559829711914, -0.36424314975738525, 0.07901686429977417, -0.0337793305516243, 0.289096474647522, 0.08048452436923981, 0.2754156291484833, -0.023706531152129173, -0.0644058957695961, -0.22985848784446716, 0.10528521239757538, 0.15295793116092682, -0.04675563797354698, 0.4014985263347626, -0.3238120973110199, -0.0387648269534111, -0.26536136865615845, 0.2756448984146118, 0.4593813121318817, -0.22526349127292633, -0.12385664880275726, 0.015261966735124588, 0.16776685416698456, 0.0016633197665214539, -0.21519118547439575, -0.219524085521698, -0.0497763566672802, -0.15386947989463806, -0.07467341423034668, -0.09042417258024216, -0.2073940932750702, -0.17872567474842072, 0.12195633351802826, 0.2947434186935425, 0.2419094741344452, -0.3463655710220337, 0.3792242705821991, -0.27893221378326416, -0.17496024072170258, 0.2887691557407379, 0.1355137974023819, 0.5593863129615784, -0.09074170887470245, -0.07203678041696548, 0.18086543679237366, -0.051142796874046326, 0.08335882425308228, -0.15314646065235138, -0.4281860291957855, -0.17864584922790527, 0.36371302604675293, 0.20608484745025635, -0.24173830449581146, 0.30446845293045044, 0.5248376727104187, 0.4010773003101349, -0.11268854141235352, -0.019808150827884674, 0.22560466825962067, -0.13098521530628204, 0.2223397046327591, -0.509784460067749, -0.1980474591255188, -0.12367966771125793, 0.3870282471179962, -0.12533767521381378, 0.055718131363391876, 0.4912978410720825, 0.17829613387584686, -0.0879884660243988, -0.6212043762207031, -0.11303989589214325, 0.07271526008844376, -0.07147231698036194, -0.23943805694580078, 0.22984164953231812, 0.6816927790641785, -0.4974331557750702, -0.05619513615965843, -0.2158796489238739, 0.488618403673172, 0.27109813690185547, -0.211181640625, -0.4033636748790741, -0.21839219331741333, -0.07209122180938721, -0.09500819444656372, 0.10225372016429901, 0.5172536969184875, 0.3498510420322418, 0.23339632153511047, 0.06629256159067154, -0.14184142649173737, 0.23030202090740204, 0.1463668942451477, 0.13845153152942657, 0.0005853325128555298, -0.23334664106369019, -0.2354167252779007, -0.34432291984558105, -0.18023352324962616, -0.22826533019542694, -0.39212632179260254, -0.3310350179672241, 0.12119007110595703, -0.03121107630431652, -0.1318797618150711, -0.1365348845720291, 0.06309850513935089, -0.07263320684432983, 0.697825014591217, 0.348535418510437, 0.20587176084518433, -0.24650824069976807, -0.2613234221935272, -0.24710185825824738, 0.4796888530254364, -0.4091094136238098, 0.19831618666648865, 0.213055819272995, 0.18338359892368317, 0.10704740881919861, 0.3368978500366211, -0.06520387530326843, 0.5276263356208801, -0.18086348474025726, -0.2147907018661499, -0.38511261343955994, 0.036826085299253464, 0.2935442626476288, -0.16676665842533112, -0.18446195125579834, -0.1514570116996765, 0.33867397904396057, -0.1768074631690979, 0.11256475001573563, -0.11822780966758728, 0.023272216320037842, 0.05392254889011383, 0.08557070791721344, 0.32998400926589966, 0.08187326788902283, 0.3291725516319275, 0.028654277324676514, -0.14292407035827637, -0.10798332840204239, -0.25462934374809265, -0.17260955274105072, 0.38462361693382263, 0.0581517331302166, 0.4116555452346802, -0.07876633107662201, 0.07952147722244263, -0.1733226627111435, 0.10523428022861481, -0.43482983112335205, -0.09791163355112076, 0.12186194211244583, -0.2352115958929062, 0.024975433945655823, 0.10284894704818726, -0.01711175963282585, 0.11467621475458145, 0.08856968581676483, 0.1137048527598381, -0.49449414014816284, -0.14144745469093323, 0.46971988677978516, -0.3657931983470917, -0.2979661226272583, 0.49709993600845337, 0.10345202684402466, 0.3452361226081848, -0.11850852519273758, -0.5068210363388062, 0.0891440212726593, 0.18964678049087524, 0.05866396054625511, -0.3722427785396576, 0.2245829701423645, 0.048214126378297806, -0.06096302345395088, 0.05195152759552002, 0.22357182204723358, 0.18367184698581696, -0.36517152190208435, -0.031713053584098816, -0.12904897332191467 ]
https://github.com/huggingface/datasets/issues/2181
Hi @lhoestq! Thank you for your prompt reply. I have experimented with (10<<20, 10<<28, 10<<30, 10<<33, 10<<34), since my machine has 192G of memory, but it's either the above-mentioned error or processed killed because of OOM. Could you give me a bit of background on why block size needs to be exactly calibrated? To my understanding, small block sized should run just fine despite its slowness..
Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries)
Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project. When loading a huge json file of 500GB, pyarrow complains as follows: ``` Traceback (most recent call last): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 531, in incomplete_dir yield tmp_dir File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 1027, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/app/.cache/huggingface/modules/datasets_modules/datasets/json/9498524fd296a6cca99c66d6c5be507d1c0991f5a814e535b507f4a66096a641/json.py", line 83, in _generate_tables parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 247, in pyarrow._json.read_json File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` When using only a small portion of the sample file, say first 100 lines, it works perfectly well.. I see that it is the error from pyarrow, but could you give me a hint or possible solutions? #369 describes the same error and #372 claims to have fixed the issue, but I have no clue why I am still getting this one. Thanks in advance!
66
Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries) Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project. When loading a huge json file of 500GB, pyarrow complains as follows: ``` Traceback (most recent call last): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 531, in incomplete_dir yield tmp_dir File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 1027, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/app/.cache/huggingface/modules/datasets_modules/datasets/json/9498524fd296a6cca99c66d6c5be507d1c0991f5a814e535b507f4a66096a641/json.py", line 83, in _generate_tables parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 247, in pyarrow._json.read_json File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` When using only a small portion of the sample file, say first 100 lines, it works perfectly well.. I see that it is the error from pyarrow, but could you give me a hint or possible solutions? #369 describes the same error and #372 claims to have fixed the issue, but I have no clue why I am still getting this one. Thanks in advance! Hi @lhoestq! Thank you for your prompt reply. I have experimented with (10<<20, 10<<28, 10<<30, 10<<33, 10<<34), since my machine has 192G of memory, but it's either the above-mentioned error or processed killed because of OOM. Could you give me a bit of background on why block size needs to be exactly calibrated? To my understanding, small block sized should run just fine despite its slowness..
[ 0.016557134687900543, 0.012686491012573242, -0.007510840892791748, 0.340938001871109, 0.16045337915420532, -0.2647136151790619, 0.1936325877904892, 0.585946798324585, -0.1621612310409546, -0.08150680363178253, 0.165473073720932, 0.1441625952720642, -0.015083150938153267, 0.014561839401721954, -0.12952116131782532, -0.19119158387184143, 0.03336812183260918, 0.07827459275722504, -0.08155374228954315, 0.13550716638565063, -0.036886993795633316, 0.23287232220172882, -0.09352752566337585, 0.2323910892009735, -0.08702811598777771, -0.078151173889637, 0.19806386530399323, 0.3374811112880707, -0.3348849415779114, -0.4495867192745209, 0.16122466325759888, -0.2951851189136505, 0.00625833123922348, 0.3340713381767273, -0.00011563083535293117, 0.04710572957992554, 0.2495899200439453, 0.10917901247739792, 0.018743246793746948, -0.21912096440792084, 0.28083518147468567, -0.3987070620059967, 0.22801175713539124, -0.16741758584976196, 0.12958505749702454, -0.4462142884731293, -0.3999216854572296, 0.3737812936306, 0.42772966623306274, -0.1255548894405365, 0.16510146856307983, 0.09121091663837433, 0.2657487690448761, 0.2669147551059723, 0.43684399127960205, -0.06525061279535294, 0.027398288249969482, 0.5041723251342773, 0.3052016496658325, -0.2382044792175293, -0.335480660200119, -0.13703159987926483, -0.24959173798561096, 0.13811476528644562, 0.37793204188346863, -0.1172008365392685, 0.0762815773487091, 0.058968108147382736, -0.0799434632062912, 0.037721555680036545, 0.22632096707820892, -0.40860217809677124, -0.10335905849933624, -0.07818765938282013, -0.08564877510070801, -0.18307429552078247, 0.30791807174682617, 0.38823094964027405, -0.21039502322673798, 0.06983030587434769, -0.19144491851329803, -0.10000123083591461, -0.19912081956863403, 0.17865115404129028, -0.35803136229515076, -0.1259491741657257, -0.0024533364921808243, 0.3322299122810364, 0.23105305433273315, -0.007611139677464962, -0.03557560220360756, 0.03110630065202713, -0.27349409461021423, -0.05659797787666321, -0.20946265757083893, 0.016639187932014465, 0.001514500007033348, -0.31718331575393677, 0.19064874947071075, 0.22608867287635803, 0.1960858255624771, -0.0655946433544159, 0.24631495773792267, 0.2574920058250427, 0.6111612319946289, 0.059475723654031754, -0.35225409269332886, -0.16774725914001465, 0.20540012419223785, 0.23781505227088928, -0.01948721706867218, 0.060987699776887894, -0.05920731648802757, -0.5538620948791504, 0.05948247015476227, -0.27982696890830994, 0.25977540016174316, -0.21602407097816467, -0.21031984686851501, 0.13332229852676392, -0.7950461506843567, 0.05001157149672508, 0.16625311970710754, 0.2496994137763977, 0.027215834707021713, 0.2363472580909729, 0.048551835119724274, 0.15819595754146576, 0.00895940512418747, -0.1194203794002533, -0.007867541164159775, 0.1263681948184967, -0.152511864900589, 0.03859640657901764, 0.15799176692962646, -0.1335815191268921, -0.006415821611881256, 0.1193346232175827, 0.21734745800495148, -0.21163922548294067, 0.18620648980140686, 0.016617346554994583, 0.04777029529213905, 0.32882145047187805, -0.051676537841558456, 0.1116405725479126, -0.05485987663269043, -0.012655116617679596, -0.2687698006629944, 0.4798906147480011, -0.06268774718046188, -0.3448125123977661, -0.17427487671375275, 0.1004122644662857, -0.26061367988586426, 0.2655538320541382, 0.004983406513929367, 0.03751701861619949, 0.15041927993297577, -0.36913180351257324, 0.21616050601005554, -0.13115130364894867, 0.17783097922801971, -0.3457719385623932, 0.1031695008277893, -0.08137425780296326, -0.686922550201416, 0.017364777624607086, 0.2560485303401947, 0.17541708052158356, -0.09443646669387817, 0.5446499586105347, -0.41504523158073425, 0.14476221799850464, -0.045954056084156036, 0.16156601905822754, 0.14491739869117737, 0.16062840819358826, -0.6060853600502014, 0.37282344698905945, -0.2745344638824463, 0.05764264613389969, 0.030735092237591743, -0.01460561528801918, -0.12643839418888092, -0.02412503771483898, -0.030100323259830475, 0.35156863927841187, 0.08327783644199371, 0.230947345495224, -0.3654412627220154, -0.23694975674152374, 0.12336330115795135, 0.36343520879745483, -0.11454498767852783, -0.41169896721839905, -0.04933193325996399, -0.19168895483016968, 0.05531973019242287, -0.11574171483516693, 0.1517811119556427, 0.4218286871910095, 0.13591890037059784, -0.11939302086830139, 0.10268734395503998, 0.11307455599308014, -0.4654294550418854, 0.02145993709564209, 0.07177260518074036, -0.06311038136482239, -0.34618860483169556, -0.08819680660963058, -0.03014976531267166, 0.2487497180700302, 0.09451157599687576, 0.20600953698158264, 0.034039340913295746, -0.17311519384384155, 0.07218873500823975, -0.0024394840002059937, -0.09863868355751038, -0.4135909378528595, 0.1334342360496521, 0.07346150279045105, -0.010110631585121155, 0.3906272351741791, 0.06373294442892075, -0.29337942600250244, 0.06923151016235352, 0.14978158473968506, -0.033689793199300766, -0.14471060037612915, -0.09443895518779755, 0.18455585837364197, -0.08298837393522263, 0.0026108622550964355, -0.24477800726890564, 0.12931999564170837, 0.28015223145484924, -0.3557436168193817, 0.027763979509472847, 0.10325008630752563, 0.07656967639923096, -0.06545478850603104, 0.2241746485233307, 0.41785210371017456, -0.32889431715011597, 0.20321379601955414, 0.09631937742233276, -0.29225975275039673, 0.0688127651810646, -0.07928574830293655, -0.018426917493343353, 0.16511400043964386, 0.2211025208234787, 0.39223387837409973, 0.22438602149486542, 0.13821087777614594, -0.16022241115570068, -0.11941797286272049, 0.3985999822616577, -0.18343088030815125, -0.0815005749464035, 0.15234488248825073, -0.13357822597026825, -0.03313305601477623, 0.09641968458890915, -0.12941595911979675, 0.1355016678571701, 0.247806578874588, -0.14270120859146118, -0.0006219875067472458, 0.027252864092588425, -0.17982809245586395, 0.22227734327316284, 0.1978260725736618, 0.1286401003599167, 0.2018653154373169, 0.5253884196281433, -0.1262487769126892, -0.23405295610427856, -0.22392259538173676, 0.24419988691806793, 0.19612833857536316, -0.29082274436950684, 0.12981024384498596, -0.06877247244119644, 0.024300873279571533, -0.08478270471096039, -0.6795875430107117, -0.3061877489089966, -0.09219739586114883, 0.0006513986736536026, 0.4704108238220215, -0.3309013247489929, 0.07065555453300476, 0.15992720425128937, 0.3159405589103699, 0.07936631888151169, -0.18853281438350677, -0.044373661279678345, -0.34382882714271545, -0.25352972745895386, -0.026064585894346237, 0.4630129635334015, 0.14641384780406952, 0.0704183578491211, 0.3701918423175812, 0.02218712866306305, -0.06104494258761406, -0.42885980010032654, 0.21847772598266602, -0.046798888593912125, 0.07783334702253342, 0.0034067295491695404, 0.12915509939193726, -0.24721172451972961, -0.2504463195800781, 0.3068670630455017, 0.03602494299411774, -0.2057611644268036, 0.3271165192127228, -0.1920834630727768, 0.07442647218704224, -0.17810189723968506, 0.11519238352775574, 0.21282653510570526, -0.5418014526367188, 0.3973288834095001, -0.18551909923553467, 0.003990701399743557, -0.2795965075492859, 0.26352033019065857, 0.09601011872291565, 0.06791480630636215, -0.04049712419509888, 0.05940072610974312, -0.420190691947937, 0.1961018145084381, -0.04033276438713074, -0.18817457556724548, 0.04183948040008545, 0.10971665382385254, 0.15190953016281128, 0.1650312840938568, -0.6058765053749084, -0.012862425297498703, -0.07757609337568283, 0.5512679815292358, -0.3430548310279846, -0.2375439703464508, 0.11498129367828369, 0.18758037686347961, -0.016697581857442856, 0.12442353367805481, -0.1434652954339981, 0.015068236738443375, -0.007390338461846113, 0.20498773455619812, -0.10102507472038269, 0.5279215574264526, 0.13047094643115997, 0.7018246054649353, -0.16545483469963074, -0.14300841093063354, 0.3313238024711609, 0.24199295043945312, 0.07736501097679138, 0.04816427826881409, -0.028412964195013046, -0.11799906194210052, -0.1809873878955841, -0.08216679096221924, -0.006838075816631317, 0.04872722551226616, -0.1101650521159172, -0.027632582932710648, -0.11803238093852997, -0.22682607173919678, -0.15881046652793884, 0.3197794556617737, 0.061006996780633926, -0.11388948559761047, -0.20074138045310974, -0.2847958207130432, -0.017008285969495773, -0.08031131327152252, 0.05849076807498932, 0.03809003904461861, 0.10930879414081573, 0.1145235002040863, -0.015752054750919342, -0.30024394392967224, -0.03336978331208229, 0.07999826222658157, 0.3141288161277771, -0.14442768692970276, 0.05180373787879944, -0.1972084939479828, 0.18430845439434052, -0.477792888879776, 0.754143476486206, 0.4649645686149597, -0.07626231014728546, 0.13590162992477417, -0.06636039912700653, -0.37808120250701904, -0.06195589900016785, 0.0836297869682312, 0.19823554158210754, 0.5710027813911438, 0.10321298241615295, -0.452648401260376, -0.10598324239253998, -0.105292409658432, 0.32241320610046387, 0.014623738825321198, -0.47840365767478943, -0.4063738286495209, -0.49590492248535156, -0.45783278346061707, -0.055918771773576736, 0.09452836960554123, 0.190110445022583, 0.1029646098613739, -0.09873926639556885, 0.27969062328338623, -0.25470149517059326, -0.4795067608356476, 0.09781930595636368, 0.17855167388916016, -0.5503336787223816, 0.14910295605659485, 0.051228247582912445, 0.3193379044532776, 0.5359144806861877, 0.6146833896636963, 0.5909867882728577, -0.21832558512687683, -0.05383621156215668, 0.3960571885108948, 0.17988669872283936, 0.16794729232788086, 0.16721193492412567, 0.20855796337127686, -0.1727023422718048, 0.20228227972984314, 0.22147636115550995, -0.010497953742742538, 0.19086429476737976, -0.12107664346694946, -0.0008764080703258514, 0.29116442799568176, 0.5025100111961365, -0.21722999215126038, 0.15785938501358032, 0.4766679108142853, 0.2834439277648926, -0.046716414391994476, 0.22268667817115784, -0.05963486433029175, 0.9461211562156677, -0.021072767674922943, 0.13255499303340912, 0.5243244171142578, -0.42520174384117126, 0.5806592702865601, -0.31889915466308594, 0.09764829277992249, -0.4774038791656494, 0.34796005487442017, 0.06618040800094604, -0.2101878523826599, -0.08619840443134308, 0.06463319063186646, -0.04271344095468521, -0.19860464334487915, -0.08621233701705933, 0.0907088965177536, -0.11656435579061508, 0.07200548052787781, -0.02068118192255497, 0.00021794810891151428, -0.3245541751384735, -0.0062564946711063385, -0.34523090720176697, -0.1282551884651184, -0.17179197072982788, -0.3250170350074768, 0.04215449094772339, -0.17573438584804535, -0.19179342687129974, 0.2709341049194336, 0.1396908015012741, 0.3771393299102783, 0.27483853697776794, -0.14227493107318878, -0.007455669343471527, -0.44002723693847656, -0.2658153772354126, -0.16497322916984558, -0.038579437881708145, 0.2240043580532074, 0.008436289615929127, -0.12542623281478882, -0.021885355934500694, 0.12433987110853195, 0.14794696867465973, -0.1720810830593109, -0.17584805190563202, 0.14636647701263428, -0.1700340211391449, -0.18596315383911133, -0.14072993397712708, 0.1831437647342682, -0.15189680457115173, -0.031130820512771606, -0.06275986135005951, -0.14789730310440063, 0.08175982534885406, -0.128450408577919, 0.06835408508777618, 0.0026660487055778503, 0.0737185925245285, -0.3161940276622772, 0.08391973376274109, -0.3015912175178528, -0.08405137807130814, 0.26980316638946533, -0.031523898243904114, 0.1463477462530136, 0.453889936208725, 0.4027523100376129, -0.0726219117641449, -0.09563928842544556, -0.056729499250650406, 0.5515410900115967, -0.6051447987556458, 0.29131531715393066, -0.15657973289489746, 0.11268812417984009, 0.09658989310264587, 0.3177768886089325, 0.2544376254081726, 0.0715055763721466, 0.026548020541667938, -0.3478246331214905, -0.2285255789756775, 0.49165666103363037, -0.01851816475391388, 0.012202085927128792, 0.10270688682794571, 0.4117227792739868, -0.07805407792329788, 0.19734099507331848, -0.21987266838550568, 0.3020845651626587, 0.02872294932603836, 0.056454796344041824, -0.46020767092704773, -0.21326866745948792, -0.2015921175479889, 0.25507840514183044, 0.02708866447210312, 0.16798681020736694, -0.07122465968132019, -0.12592589855194092, -0.12761631608009338, 0.10120342671871185, 0.1020171195268631, -0.09683972597122192, -0.06450266391038895, -0.10317181795835495, 0.12111099064350128, 0.12978413701057434, 0.13172724843025208, -0.20999029278755188, -0.053500719368457794, -0.3004149794578552, 0.001518632285296917, -0.18776559829711914, -0.36424314975738525, 0.07901686429977417, -0.0337793305516243, 0.289096474647522, 0.08048452436923981, 0.2754156291484833, -0.023706531152129173, -0.0644058957695961, -0.22985848784446716, 0.10528521239757538, 0.15295793116092682, -0.04675563797354698, 0.4014985263347626, -0.3238120973110199, -0.0387648269534111, -0.26536136865615845, 0.2756448984146118, 0.4593813121318817, -0.22526349127292633, -0.12385664880275726, 0.015261966735124588, 0.16776685416698456, 0.0016633197665214539, -0.21519118547439575, -0.219524085521698, -0.0497763566672802, -0.15386947989463806, -0.07467341423034668, -0.09042417258024216, -0.2073940932750702, -0.17872567474842072, 0.12195633351802826, 0.2947434186935425, 0.2419094741344452, -0.3463655710220337, 0.3792242705821991, -0.27893221378326416, -0.17496024072170258, 0.2887691557407379, 0.1355137974023819, 0.5593863129615784, -0.09074170887470245, -0.07203678041696548, 0.18086543679237366, -0.051142796874046326, 0.08335882425308228, -0.15314646065235138, -0.4281860291957855, -0.17864584922790527, 0.36371302604675293, 0.20608484745025635, -0.24173830449581146, 0.30446845293045044, 0.5248376727104187, 0.4010773003101349, -0.11268854141235352, -0.019808150827884674, 0.22560466825962067, -0.13098521530628204, 0.2223397046327591, -0.509784460067749, -0.1980474591255188, -0.12367966771125793, 0.3870282471179962, -0.12533767521381378, 0.055718131363391876, 0.4912978410720825, 0.17829613387584686, -0.0879884660243988, -0.6212043762207031, -0.11303989589214325, 0.07271526008844376, -0.07147231698036194, -0.23943805694580078, 0.22984164953231812, 0.6816927790641785, -0.4974331557750702, -0.05619513615965843, -0.2158796489238739, 0.488618403673172, 0.27109813690185547, -0.211181640625, -0.4033636748790741, -0.21839219331741333, -0.07209122180938721, -0.09500819444656372, 0.10225372016429901, 0.5172536969184875, 0.3498510420322418, 0.23339632153511047, 0.06629256159067154, -0.14184142649173737, 0.23030202090740204, 0.1463668942451477, 0.13845153152942657, 0.0005853325128555298, -0.23334664106369019, -0.2354167252779007, -0.34432291984558105, -0.18023352324962616, -0.22826533019542694, -0.39212632179260254, -0.3310350179672241, 0.12119007110595703, -0.03121107630431652, -0.1318797618150711, -0.1365348845720291, 0.06309850513935089, -0.07263320684432983, 0.697825014591217, 0.348535418510437, 0.20587176084518433, -0.24650824069976807, -0.2613234221935272, -0.24710185825824738, 0.4796888530254364, -0.4091094136238098, 0.19831618666648865, 0.213055819272995, 0.18338359892368317, 0.10704740881919861, 0.3368978500366211, -0.06520387530326843, 0.5276263356208801, -0.18086348474025726, -0.2147907018661499, -0.38511261343955994, 0.036826085299253464, 0.2935442626476288, -0.16676665842533112, -0.18446195125579834, -0.1514570116996765, 0.33867397904396057, -0.1768074631690979, 0.11256475001573563, -0.11822780966758728, 0.023272216320037842, 0.05392254889011383, 0.08557070791721344, 0.32998400926589966, 0.08187326788902283, 0.3291725516319275, 0.028654277324676514, -0.14292407035827637, -0.10798332840204239, -0.25462934374809265, -0.17260955274105072, 0.38462361693382263, 0.0581517331302166, 0.4116555452346802, -0.07876633107662201, 0.07952147722244263, -0.1733226627111435, 0.10523428022861481, -0.43482983112335205, -0.09791163355112076, 0.12186194211244583, -0.2352115958929062, 0.024975433945655823, 0.10284894704818726, -0.01711175963282585, 0.11467621475458145, 0.08856968581676483, 0.1137048527598381, -0.49449414014816284, -0.14144745469093323, 0.46971988677978516, -0.3657931983470917, -0.2979661226272583, 0.49709993600845337, 0.10345202684402466, 0.3452361226081848, -0.11850852519273758, -0.5068210363388062, 0.0891440212726593, 0.18964678049087524, 0.05866396054625511, -0.3722427785396576, 0.2245829701423645, 0.048214126378297806, -0.06096302345395088, 0.05195152759552002, 0.22357182204723358, 0.18367184698581696, -0.36517152190208435, -0.031713053584098816, -0.12904897332191467 ]
https://github.com/huggingface/datasets/issues/2181
We're using the JSON loader of pyarrow. It parses the file chunk by chunk to load the dataset. This issue happens when there's no delimiter in one chunk of data. For json line, the delimiter is the end of line. So with a big value for chunk_size this should have worked unless you have one extremely long line in your file. Also what version of pyarrow are you using ? FInally I wonder if it could be an issue on pyarrow's side when using big json files. (I haven't tested big json files like yours)
Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries)
Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project. When loading a huge json file of 500GB, pyarrow complains as follows: ``` Traceback (most recent call last): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 531, in incomplete_dir yield tmp_dir File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 1027, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/app/.cache/huggingface/modules/datasets_modules/datasets/json/9498524fd296a6cca99c66d6c5be507d1c0991f5a814e535b507f4a66096a641/json.py", line 83, in _generate_tables parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 247, in pyarrow._json.read_json File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` When using only a small portion of the sample file, say first 100 lines, it works perfectly well.. I see that it is the error from pyarrow, but could you give me a hint or possible solutions? #369 describes the same error and #372 claims to have fixed the issue, but I have no clue why I am still getting this one. Thanks in advance!
95
Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries) Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project. When loading a huge json file of 500GB, pyarrow complains as follows: ``` Traceback (most recent call last): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 531, in incomplete_dir yield tmp_dir File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 1027, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/app/.cache/huggingface/modules/datasets_modules/datasets/json/9498524fd296a6cca99c66d6c5be507d1c0991f5a814e535b507f4a66096a641/json.py", line 83, in _generate_tables parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 247, in pyarrow._json.read_json File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` When using only a small portion of the sample file, say first 100 lines, it works perfectly well.. I see that it is the error from pyarrow, but could you give me a hint or possible solutions? #369 describes the same error and #372 claims to have fixed the issue, but I have no clue why I am still getting this one. Thanks in advance! We're using the JSON loader of pyarrow. It parses the file chunk by chunk to load the dataset. This issue happens when there's no delimiter in one chunk of data. For json line, the delimiter is the end of line. So with a big value for chunk_size this should have worked unless you have one extremely long line in your file. Also what version of pyarrow are you using ? FInally I wonder if it could be an issue on pyarrow's side when using big json files. (I haven't tested big json files like yours)
[ 0.016557134687900543, 0.012686491012573242, -0.007510840892791748, 0.340938001871109, 0.16045337915420532, -0.2647136151790619, 0.1936325877904892, 0.585946798324585, -0.1621612310409546, -0.08150680363178253, 0.165473073720932, 0.1441625952720642, -0.015083150938153267, 0.014561839401721954, -0.12952116131782532, -0.19119158387184143, 0.03336812183260918, 0.07827459275722504, -0.08155374228954315, 0.13550716638565063, -0.036886993795633316, 0.23287232220172882, -0.09352752566337585, 0.2323910892009735, -0.08702811598777771, -0.078151173889637, 0.19806386530399323, 0.3374811112880707, -0.3348849415779114, -0.4495867192745209, 0.16122466325759888, -0.2951851189136505, 0.00625833123922348, 0.3340713381767273, -0.00011563083535293117, 0.04710572957992554, 0.2495899200439453, 0.10917901247739792, 0.018743246793746948, -0.21912096440792084, 0.28083518147468567, -0.3987070620059967, 0.22801175713539124, -0.16741758584976196, 0.12958505749702454, -0.4462142884731293, -0.3999216854572296, 0.3737812936306, 0.42772966623306274, -0.1255548894405365, 0.16510146856307983, 0.09121091663837433, 0.2657487690448761, 0.2669147551059723, 0.43684399127960205, -0.06525061279535294, 0.027398288249969482, 0.5041723251342773, 0.3052016496658325, -0.2382044792175293, -0.335480660200119, -0.13703159987926483, -0.24959173798561096, 0.13811476528644562, 0.37793204188346863, -0.1172008365392685, 0.0762815773487091, 0.058968108147382736, -0.0799434632062912, 0.037721555680036545, 0.22632096707820892, -0.40860217809677124, -0.10335905849933624, -0.07818765938282013, -0.08564877510070801, -0.18307429552078247, 0.30791807174682617, 0.38823094964027405, -0.21039502322673798, 0.06983030587434769, -0.19144491851329803, -0.10000123083591461, -0.19912081956863403, 0.17865115404129028, -0.35803136229515076, -0.1259491741657257, -0.0024533364921808243, 0.3322299122810364, 0.23105305433273315, -0.007611139677464962, -0.03557560220360756, 0.03110630065202713, -0.27349409461021423, -0.05659797787666321, -0.20946265757083893, 0.016639187932014465, 0.001514500007033348, -0.31718331575393677, 0.19064874947071075, 0.22608867287635803, 0.1960858255624771, -0.0655946433544159, 0.24631495773792267, 0.2574920058250427, 0.6111612319946289, 0.059475723654031754, -0.35225409269332886, -0.16774725914001465, 0.20540012419223785, 0.23781505227088928, -0.01948721706867218, 0.060987699776887894, -0.05920731648802757, -0.5538620948791504, 0.05948247015476227, -0.27982696890830994, 0.25977540016174316, -0.21602407097816467, -0.21031984686851501, 0.13332229852676392, -0.7950461506843567, 0.05001157149672508, 0.16625311970710754, 0.2496994137763977, 0.027215834707021713, 0.2363472580909729, 0.048551835119724274, 0.15819595754146576, 0.00895940512418747, -0.1194203794002533, -0.007867541164159775, 0.1263681948184967, -0.152511864900589, 0.03859640657901764, 0.15799176692962646, -0.1335815191268921, -0.006415821611881256, 0.1193346232175827, 0.21734745800495148, -0.21163922548294067, 0.18620648980140686, 0.016617346554994583, 0.04777029529213905, 0.32882145047187805, -0.051676537841558456, 0.1116405725479126, -0.05485987663269043, -0.012655116617679596, -0.2687698006629944, 0.4798906147480011, -0.06268774718046188, -0.3448125123977661, -0.17427487671375275, 0.1004122644662857, -0.26061367988586426, 0.2655538320541382, 0.004983406513929367, 0.03751701861619949, 0.15041927993297577, -0.36913180351257324, 0.21616050601005554, -0.13115130364894867, 0.17783097922801971, -0.3457719385623932, 0.1031695008277893, -0.08137425780296326, -0.686922550201416, 0.017364777624607086, 0.2560485303401947, 0.17541708052158356, -0.09443646669387817, 0.5446499586105347, -0.41504523158073425, 0.14476221799850464, -0.045954056084156036, 0.16156601905822754, 0.14491739869117737, 0.16062840819358826, -0.6060853600502014, 0.37282344698905945, -0.2745344638824463, 0.05764264613389969, 0.030735092237591743, -0.01460561528801918, -0.12643839418888092, -0.02412503771483898, -0.030100323259830475, 0.35156863927841187, 0.08327783644199371, 0.230947345495224, -0.3654412627220154, -0.23694975674152374, 0.12336330115795135, 0.36343520879745483, -0.11454498767852783, -0.41169896721839905, -0.04933193325996399, -0.19168895483016968, 0.05531973019242287, -0.11574171483516693, 0.1517811119556427, 0.4218286871910095, 0.13591890037059784, -0.11939302086830139, 0.10268734395503998, 0.11307455599308014, -0.4654294550418854, 0.02145993709564209, 0.07177260518074036, -0.06311038136482239, -0.34618860483169556, -0.08819680660963058, -0.03014976531267166, 0.2487497180700302, 0.09451157599687576, 0.20600953698158264, 0.034039340913295746, -0.17311519384384155, 0.07218873500823975, -0.0024394840002059937, -0.09863868355751038, -0.4135909378528595, 0.1334342360496521, 0.07346150279045105, -0.010110631585121155, 0.3906272351741791, 0.06373294442892075, -0.29337942600250244, 0.06923151016235352, 0.14978158473968506, -0.033689793199300766, -0.14471060037612915, -0.09443895518779755, 0.18455585837364197, -0.08298837393522263, 0.0026108622550964355, -0.24477800726890564, 0.12931999564170837, 0.28015223145484924, -0.3557436168193817, 0.027763979509472847, 0.10325008630752563, 0.07656967639923096, -0.06545478850603104, 0.2241746485233307, 0.41785210371017456, -0.32889431715011597, 0.20321379601955414, 0.09631937742233276, -0.29225975275039673, 0.0688127651810646, -0.07928574830293655, -0.018426917493343353, 0.16511400043964386, 0.2211025208234787, 0.39223387837409973, 0.22438602149486542, 0.13821087777614594, -0.16022241115570068, -0.11941797286272049, 0.3985999822616577, -0.18343088030815125, -0.0815005749464035, 0.15234488248825073, -0.13357822597026825, -0.03313305601477623, 0.09641968458890915, -0.12941595911979675, 0.1355016678571701, 0.247806578874588, -0.14270120859146118, -0.0006219875067472458, 0.027252864092588425, -0.17982809245586395, 0.22227734327316284, 0.1978260725736618, 0.1286401003599167, 0.2018653154373169, 0.5253884196281433, -0.1262487769126892, -0.23405295610427856, -0.22392259538173676, 0.24419988691806793, 0.19612833857536316, -0.29082274436950684, 0.12981024384498596, -0.06877247244119644, 0.024300873279571533, -0.08478270471096039, -0.6795875430107117, -0.3061877489089966, -0.09219739586114883, 0.0006513986736536026, 0.4704108238220215, -0.3309013247489929, 0.07065555453300476, 0.15992720425128937, 0.3159405589103699, 0.07936631888151169, -0.18853281438350677, -0.044373661279678345, -0.34382882714271545, -0.25352972745895386, -0.026064585894346237, 0.4630129635334015, 0.14641384780406952, 0.0704183578491211, 0.3701918423175812, 0.02218712866306305, -0.06104494258761406, -0.42885980010032654, 0.21847772598266602, -0.046798888593912125, 0.07783334702253342, 0.0034067295491695404, 0.12915509939193726, -0.24721172451972961, -0.2504463195800781, 0.3068670630455017, 0.03602494299411774, -0.2057611644268036, 0.3271165192127228, -0.1920834630727768, 0.07442647218704224, -0.17810189723968506, 0.11519238352775574, 0.21282653510570526, -0.5418014526367188, 0.3973288834095001, -0.18551909923553467, 0.003990701399743557, -0.2795965075492859, 0.26352033019065857, 0.09601011872291565, 0.06791480630636215, -0.04049712419509888, 0.05940072610974312, -0.420190691947937, 0.1961018145084381, -0.04033276438713074, -0.18817457556724548, 0.04183948040008545, 0.10971665382385254, 0.15190953016281128, 0.1650312840938568, -0.6058765053749084, -0.012862425297498703, -0.07757609337568283, 0.5512679815292358, -0.3430548310279846, -0.2375439703464508, 0.11498129367828369, 0.18758037686347961, -0.016697581857442856, 0.12442353367805481, -0.1434652954339981, 0.015068236738443375, -0.007390338461846113, 0.20498773455619812, -0.10102507472038269, 0.5279215574264526, 0.13047094643115997, 0.7018246054649353, -0.16545483469963074, -0.14300841093063354, 0.3313238024711609, 0.24199295043945312, 0.07736501097679138, 0.04816427826881409, -0.028412964195013046, -0.11799906194210052, -0.1809873878955841, -0.08216679096221924, -0.006838075816631317, 0.04872722551226616, -0.1101650521159172, -0.027632582932710648, -0.11803238093852997, -0.22682607173919678, -0.15881046652793884, 0.3197794556617737, 0.061006996780633926, -0.11388948559761047, -0.20074138045310974, -0.2847958207130432, -0.017008285969495773, -0.08031131327152252, 0.05849076807498932, 0.03809003904461861, 0.10930879414081573, 0.1145235002040863, -0.015752054750919342, -0.30024394392967224, -0.03336978331208229, 0.07999826222658157, 0.3141288161277771, -0.14442768692970276, 0.05180373787879944, -0.1972084939479828, 0.18430845439434052, -0.477792888879776, 0.754143476486206, 0.4649645686149597, -0.07626231014728546, 0.13590162992477417, -0.06636039912700653, -0.37808120250701904, -0.06195589900016785, 0.0836297869682312, 0.19823554158210754, 0.5710027813911438, 0.10321298241615295, -0.452648401260376, -0.10598324239253998, -0.105292409658432, 0.32241320610046387, 0.014623738825321198, -0.47840365767478943, -0.4063738286495209, -0.49590492248535156, -0.45783278346061707, -0.055918771773576736, 0.09452836960554123, 0.190110445022583, 0.1029646098613739, -0.09873926639556885, 0.27969062328338623, -0.25470149517059326, -0.4795067608356476, 0.09781930595636368, 0.17855167388916016, -0.5503336787223816, 0.14910295605659485, 0.051228247582912445, 0.3193379044532776, 0.5359144806861877, 0.6146833896636963, 0.5909867882728577, -0.21832558512687683, -0.05383621156215668, 0.3960571885108948, 0.17988669872283936, 0.16794729232788086, 0.16721193492412567, 0.20855796337127686, -0.1727023422718048, 0.20228227972984314, 0.22147636115550995, -0.010497953742742538, 0.19086429476737976, -0.12107664346694946, -0.0008764080703258514, 0.29116442799568176, 0.5025100111961365, -0.21722999215126038, 0.15785938501358032, 0.4766679108142853, 0.2834439277648926, -0.046716414391994476, 0.22268667817115784, -0.05963486433029175, 0.9461211562156677, -0.021072767674922943, 0.13255499303340912, 0.5243244171142578, -0.42520174384117126, 0.5806592702865601, -0.31889915466308594, 0.09764829277992249, -0.4774038791656494, 0.34796005487442017, 0.06618040800094604, -0.2101878523826599, -0.08619840443134308, 0.06463319063186646, -0.04271344095468521, -0.19860464334487915, -0.08621233701705933, 0.0907088965177536, -0.11656435579061508, 0.07200548052787781, -0.02068118192255497, 0.00021794810891151428, -0.3245541751384735, -0.0062564946711063385, -0.34523090720176697, -0.1282551884651184, -0.17179197072982788, -0.3250170350074768, 0.04215449094772339, -0.17573438584804535, -0.19179342687129974, 0.2709341049194336, 0.1396908015012741, 0.3771393299102783, 0.27483853697776794, -0.14227493107318878, -0.007455669343471527, -0.44002723693847656, -0.2658153772354126, -0.16497322916984558, -0.038579437881708145, 0.2240043580532074, 0.008436289615929127, -0.12542623281478882, -0.021885355934500694, 0.12433987110853195, 0.14794696867465973, -0.1720810830593109, -0.17584805190563202, 0.14636647701263428, -0.1700340211391449, -0.18596315383911133, -0.14072993397712708, 0.1831437647342682, -0.15189680457115173, -0.031130820512771606, -0.06275986135005951, -0.14789730310440063, 0.08175982534885406, -0.128450408577919, 0.06835408508777618, 0.0026660487055778503, 0.0737185925245285, -0.3161940276622772, 0.08391973376274109, -0.3015912175178528, -0.08405137807130814, 0.26980316638946533, -0.031523898243904114, 0.1463477462530136, 0.453889936208725, 0.4027523100376129, -0.0726219117641449, -0.09563928842544556, -0.056729499250650406, 0.5515410900115967, -0.6051447987556458, 0.29131531715393066, -0.15657973289489746, 0.11268812417984009, 0.09658989310264587, 0.3177768886089325, 0.2544376254081726, 0.0715055763721466, 0.026548020541667938, -0.3478246331214905, -0.2285255789756775, 0.49165666103363037, -0.01851816475391388, 0.012202085927128792, 0.10270688682794571, 0.4117227792739868, -0.07805407792329788, 0.19734099507331848, -0.21987266838550568, 0.3020845651626587, 0.02872294932603836, 0.056454796344041824, -0.46020767092704773, -0.21326866745948792, -0.2015921175479889, 0.25507840514183044, 0.02708866447210312, 0.16798681020736694, -0.07122465968132019, -0.12592589855194092, -0.12761631608009338, 0.10120342671871185, 0.1020171195268631, -0.09683972597122192, -0.06450266391038895, -0.10317181795835495, 0.12111099064350128, 0.12978413701057434, 0.13172724843025208, -0.20999029278755188, -0.053500719368457794, -0.3004149794578552, 0.001518632285296917, -0.18776559829711914, -0.36424314975738525, 0.07901686429977417, -0.0337793305516243, 0.289096474647522, 0.08048452436923981, 0.2754156291484833, -0.023706531152129173, -0.0644058957695961, -0.22985848784446716, 0.10528521239757538, 0.15295793116092682, -0.04675563797354698, 0.4014985263347626, -0.3238120973110199, -0.0387648269534111, -0.26536136865615845, 0.2756448984146118, 0.4593813121318817, -0.22526349127292633, -0.12385664880275726, 0.015261966735124588, 0.16776685416698456, 0.0016633197665214539, -0.21519118547439575, -0.219524085521698, -0.0497763566672802, -0.15386947989463806, -0.07467341423034668, -0.09042417258024216, -0.2073940932750702, -0.17872567474842072, 0.12195633351802826, 0.2947434186935425, 0.2419094741344452, -0.3463655710220337, 0.3792242705821991, -0.27893221378326416, -0.17496024072170258, 0.2887691557407379, 0.1355137974023819, 0.5593863129615784, -0.09074170887470245, -0.07203678041696548, 0.18086543679237366, -0.051142796874046326, 0.08335882425308228, -0.15314646065235138, -0.4281860291957855, -0.17864584922790527, 0.36371302604675293, 0.20608484745025635, -0.24173830449581146, 0.30446845293045044, 0.5248376727104187, 0.4010773003101349, -0.11268854141235352, -0.019808150827884674, 0.22560466825962067, -0.13098521530628204, 0.2223397046327591, -0.509784460067749, -0.1980474591255188, -0.12367966771125793, 0.3870282471179962, -0.12533767521381378, 0.055718131363391876, 0.4912978410720825, 0.17829613387584686, -0.0879884660243988, -0.6212043762207031, -0.11303989589214325, 0.07271526008844376, -0.07147231698036194, -0.23943805694580078, 0.22984164953231812, 0.6816927790641785, -0.4974331557750702, -0.05619513615965843, -0.2158796489238739, 0.488618403673172, 0.27109813690185547, -0.211181640625, -0.4033636748790741, -0.21839219331741333, -0.07209122180938721, -0.09500819444656372, 0.10225372016429901, 0.5172536969184875, 0.3498510420322418, 0.23339632153511047, 0.06629256159067154, -0.14184142649173737, 0.23030202090740204, 0.1463668942451477, 0.13845153152942657, 0.0005853325128555298, -0.23334664106369019, -0.2354167252779007, -0.34432291984558105, -0.18023352324962616, -0.22826533019542694, -0.39212632179260254, -0.3310350179672241, 0.12119007110595703, -0.03121107630431652, -0.1318797618150711, -0.1365348845720291, 0.06309850513935089, -0.07263320684432983, 0.697825014591217, 0.348535418510437, 0.20587176084518433, -0.24650824069976807, -0.2613234221935272, -0.24710185825824738, 0.4796888530254364, -0.4091094136238098, 0.19831618666648865, 0.213055819272995, 0.18338359892368317, 0.10704740881919861, 0.3368978500366211, -0.06520387530326843, 0.5276263356208801, -0.18086348474025726, -0.2147907018661499, -0.38511261343955994, 0.036826085299253464, 0.2935442626476288, -0.16676665842533112, -0.18446195125579834, -0.1514570116996765, 0.33867397904396057, -0.1768074631690979, 0.11256475001573563, -0.11822780966758728, 0.023272216320037842, 0.05392254889011383, 0.08557070791721344, 0.32998400926589966, 0.08187326788902283, 0.3291725516319275, 0.028654277324676514, -0.14292407035827637, -0.10798332840204239, -0.25462934374809265, -0.17260955274105072, 0.38462361693382263, 0.0581517331302166, 0.4116555452346802, -0.07876633107662201, 0.07952147722244263, -0.1733226627111435, 0.10523428022861481, -0.43482983112335205, -0.09791163355112076, 0.12186194211244583, -0.2352115958929062, 0.024975433945655823, 0.10284894704818726, -0.01711175963282585, 0.11467621475458145, 0.08856968581676483, 0.1137048527598381, -0.49449414014816284, -0.14144745469093323, 0.46971988677978516, -0.3657931983470917, -0.2979661226272583, 0.49709993600845337, 0.10345202684402466, 0.3452361226081848, -0.11850852519273758, -0.5068210363388062, 0.0891440212726593, 0.18964678049087524, 0.05866396054625511, -0.3722427785396576, 0.2245829701423645, 0.048214126378297806, -0.06096302345395088, 0.05195152759552002, 0.22357182204723358, 0.18367184698581696, -0.36517152190208435, -0.031713053584098816, -0.12904897332191467 ]
https://github.com/huggingface/datasets/issues/2181
I'm using `pyarrow==3.0.0` with `datasets==1.5.0`. Your point totally makes sense. I will check if my jsonl file contains an extremely long file and let you know. Here are some different error messages that I got when tweaking `block_size`. I also suspect that this is related to the pyarrow... but I guess it would be wonderful if datasesets could give a clear guide on how to play with large datasets! (I am suddenly experiencing various issue when working with large datasets.. e.g. #1992 ) ```python return paj.ReadOptions(use_threads=self.use_threads, block_size=self.block_size) File "pyarrow/_json.pyx", line 56, in pyarrow._json.ReadOptions.__init__ File "pyarrow/_json.pyx", line 81, in pyarrow._json.ReadOptions.block_size.__set__ OverflowError: value too large to convert to int32_t ``` ```python line 83, in _generate_tables parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 247, in pyarrow._json.read_json File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Exceeded maximum rows ```
Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries)
Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project. When loading a huge json file of 500GB, pyarrow complains as follows: ``` Traceback (most recent call last): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 531, in incomplete_dir yield tmp_dir File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 1027, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/app/.cache/huggingface/modules/datasets_modules/datasets/json/9498524fd296a6cca99c66d6c5be507d1c0991f5a814e535b507f4a66096a641/json.py", line 83, in _generate_tables parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 247, in pyarrow._json.read_json File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` When using only a small portion of the sample file, say first 100 lines, it works perfectly well.. I see that it is the error from pyarrow, but could you give me a hint or possible solutions? #369 describes the same error and #372 claims to have fixed the issue, but I have no clue why I am still getting this one. Thanks in advance!
137
Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries) Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project. When loading a huge json file of 500GB, pyarrow complains as follows: ``` Traceback (most recent call last): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 531, in incomplete_dir yield tmp_dir File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 1027, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/app/.cache/huggingface/modules/datasets_modules/datasets/json/9498524fd296a6cca99c66d6c5be507d1c0991f5a814e535b507f4a66096a641/json.py", line 83, in _generate_tables parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 247, in pyarrow._json.read_json File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` When using only a small portion of the sample file, say first 100 lines, it works perfectly well.. I see that it is the error from pyarrow, but could you give me a hint or possible solutions? #369 describes the same error and #372 claims to have fixed the issue, but I have no clue why I am still getting this one. Thanks in advance! I'm using `pyarrow==3.0.0` with `datasets==1.5.0`. Your point totally makes sense. I will check if my jsonl file contains an extremely long file and let you know. Here are some different error messages that I got when tweaking `block_size`. I also suspect that this is related to the pyarrow... but I guess it would be wonderful if datasesets could give a clear guide on how to play with large datasets! (I am suddenly experiencing various issue when working with large datasets.. e.g. #1992 ) ```python return paj.ReadOptions(use_threads=self.use_threads, block_size=self.block_size) File "pyarrow/_json.pyx", line 56, in pyarrow._json.ReadOptions.__init__ File "pyarrow/_json.pyx", line 81, in pyarrow._json.ReadOptions.block_size.__set__ OverflowError: value too large to convert to int32_t ``` ```python line 83, in _generate_tables parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 247, in pyarrow._json.read_json File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Exceeded maximum rows ```
[ 0.016557134687900543, 0.012686491012573242, -0.007510840892791748, 0.340938001871109, 0.16045337915420532, -0.2647136151790619, 0.1936325877904892, 0.585946798324585, -0.1621612310409546, -0.08150680363178253, 0.165473073720932, 0.1441625952720642, -0.015083150938153267, 0.014561839401721954, -0.12952116131782532, -0.19119158387184143, 0.03336812183260918, 0.07827459275722504, -0.08155374228954315, 0.13550716638565063, -0.036886993795633316, 0.23287232220172882, -0.09352752566337585, 0.2323910892009735, -0.08702811598777771, -0.078151173889637, 0.19806386530399323, 0.3374811112880707, -0.3348849415779114, -0.4495867192745209, 0.16122466325759888, -0.2951851189136505, 0.00625833123922348, 0.3340713381767273, -0.00011563083535293117, 0.04710572957992554, 0.2495899200439453, 0.10917901247739792, 0.018743246793746948, -0.21912096440792084, 0.28083518147468567, -0.3987070620059967, 0.22801175713539124, -0.16741758584976196, 0.12958505749702454, -0.4462142884731293, -0.3999216854572296, 0.3737812936306, 0.42772966623306274, -0.1255548894405365, 0.16510146856307983, 0.09121091663837433, 0.2657487690448761, 0.2669147551059723, 0.43684399127960205, -0.06525061279535294, 0.027398288249969482, 0.5041723251342773, 0.3052016496658325, -0.2382044792175293, -0.335480660200119, -0.13703159987926483, -0.24959173798561096, 0.13811476528644562, 0.37793204188346863, -0.1172008365392685, 0.0762815773487091, 0.058968108147382736, -0.0799434632062912, 0.037721555680036545, 0.22632096707820892, -0.40860217809677124, -0.10335905849933624, -0.07818765938282013, -0.08564877510070801, -0.18307429552078247, 0.30791807174682617, 0.38823094964027405, -0.21039502322673798, 0.06983030587434769, -0.19144491851329803, -0.10000123083591461, -0.19912081956863403, 0.17865115404129028, -0.35803136229515076, -0.1259491741657257, -0.0024533364921808243, 0.3322299122810364, 0.23105305433273315, -0.007611139677464962, -0.03557560220360756, 0.03110630065202713, -0.27349409461021423, -0.05659797787666321, -0.20946265757083893, 0.016639187932014465, 0.001514500007033348, -0.31718331575393677, 0.19064874947071075, 0.22608867287635803, 0.1960858255624771, -0.0655946433544159, 0.24631495773792267, 0.2574920058250427, 0.6111612319946289, 0.059475723654031754, -0.35225409269332886, -0.16774725914001465, 0.20540012419223785, 0.23781505227088928, -0.01948721706867218, 0.060987699776887894, -0.05920731648802757, -0.5538620948791504, 0.05948247015476227, -0.27982696890830994, 0.25977540016174316, -0.21602407097816467, -0.21031984686851501, 0.13332229852676392, -0.7950461506843567, 0.05001157149672508, 0.16625311970710754, 0.2496994137763977, 0.027215834707021713, 0.2363472580909729, 0.048551835119724274, 0.15819595754146576, 0.00895940512418747, -0.1194203794002533, -0.007867541164159775, 0.1263681948184967, -0.152511864900589, 0.03859640657901764, 0.15799176692962646, -0.1335815191268921, -0.006415821611881256, 0.1193346232175827, 0.21734745800495148, -0.21163922548294067, 0.18620648980140686, 0.016617346554994583, 0.04777029529213905, 0.32882145047187805, -0.051676537841558456, 0.1116405725479126, -0.05485987663269043, -0.012655116617679596, -0.2687698006629944, 0.4798906147480011, -0.06268774718046188, -0.3448125123977661, -0.17427487671375275, 0.1004122644662857, -0.26061367988586426, 0.2655538320541382, 0.004983406513929367, 0.03751701861619949, 0.15041927993297577, -0.36913180351257324, 0.21616050601005554, -0.13115130364894867, 0.17783097922801971, -0.3457719385623932, 0.1031695008277893, -0.08137425780296326, -0.686922550201416, 0.017364777624607086, 0.2560485303401947, 0.17541708052158356, -0.09443646669387817, 0.5446499586105347, -0.41504523158073425, 0.14476221799850464, -0.045954056084156036, 0.16156601905822754, 0.14491739869117737, 0.16062840819358826, -0.6060853600502014, 0.37282344698905945, -0.2745344638824463, 0.05764264613389969, 0.030735092237591743, -0.01460561528801918, -0.12643839418888092, -0.02412503771483898, -0.030100323259830475, 0.35156863927841187, 0.08327783644199371, 0.230947345495224, -0.3654412627220154, -0.23694975674152374, 0.12336330115795135, 0.36343520879745483, -0.11454498767852783, -0.41169896721839905, -0.04933193325996399, -0.19168895483016968, 0.05531973019242287, -0.11574171483516693, 0.1517811119556427, 0.4218286871910095, 0.13591890037059784, -0.11939302086830139, 0.10268734395503998, 0.11307455599308014, -0.4654294550418854, 0.02145993709564209, 0.07177260518074036, -0.06311038136482239, -0.34618860483169556, -0.08819680660963058, -0.03014976531267166, 0.2487497180700302, 0.09451157599687576, 0.20600953698158264, 0.034039340913295746, -0.17311519384384155, 0.07218873500823975, -0.0024394840002059937, -0.09863868355751038, -0.4135909378528595, 0.1334342360496521, 0.07346150279045105, -0.010110631585121155, 0.3906272351741791, 0.06373294442892075, -0.29337942600250244, 0.06923151016235352, 0.14978158473968506, -0.033689793199300766, -0.14471060037612915, -0.09443895518779755, 0.18455585837364197, -0.08298837393522263, 0.0026108622550964355, -0.24477800726890564, 0.12931999564170837, 0.28015223145484924, -0.3557436168193817, 0.027763979509472847, 0.10325008630752563, 0.07656967639923096, -0.06545478850603104, 0.2241746485233307, 0.41785210371017456, -0.32889431715011597, 0.20321379601955414, 0.09631937742233276, -0.29225975275039673, 0.0688127651810646, -0.07928574830293655, -0.018426917493343353, 0.16511400043964386, 0.2211025208234787, 0.39223387837409973, 0.22438602149486542, 0.13821087777614594, -0.16022241115570068, -0.11941797286272049, 0.3985999822616577, -0.18343088030815125, -0.0815005749464035, 0.15234488248825073, -0.13357822597026825, -0.03313305601477623, 0.09641968458890915, -0.12941595911979675, 0.1355016678571701, 0.247806578874588, -0.14270120859146118, -0.0006219875067472458, 0.027252864092588425, -0.17982809245586395, 0.22227734327316284, 0.1978260725736618, 0.1286401003599167, 0.2018653154373169, 0.5253884196281433, -0.1262487769126892, -0.23405295610427856, -0.22392259538173676, 0.24419988691806793, 0.19612833857536316, -0.29082274436950684, 0.12981024384498596, -0.06877247244119644, 0.024300873279571533, -0.08478270471096039, -0.6795875430107117, -0.3061877489089966, -0.09219739586114883, 0.0006513986736536026, 0.4704108238220215, -0.3309013247489929, 0.07065555453300476, 0.15992720425128937, 0.3159405589103699, 0.07936631888151169, -0.18853281438350677, -0.044373661279678345, -0.34382882714271545, -0.25352972745895386, -0.026064585894346237, 0.4630129635334015, 0.14641384780406952, 0.0704183578491211, 0.3701918423175812, 0.02218712866306305, -0.06104494258761406, -0.42885980010032654, 0.21847772598266602, -0.046798888593912125, 0.07783334702253342, 0.0034067295491695404, 0.12915509939193726, -0.24721172451972961, -0.2504463195800781, 0.3068670630455017, 0.03602494299411774, -0.2057611644268036, 0.3271165192127228, -0.1920834630727768, 0.07442647218704224, -0.17810189723968506, 0.11519238352775574, 0.21282653510570526, -0.5418014526367188, 0.3973288834095001, -0.18551909923553467, 0.003990701399743557, -0.2795965075492859, 0.26352033019065857, 0.09601011872291565, 0.06791480630636215, -0.04049712419509888, 0.05940072610974312, -0.420190691947937, 0.1961018145084381, -0.04033276438713074, -0.18817457556724548, 0.04183948040008545, 0.10971665382385254, 0.15190953016281128, 0.1650312840938568, -0.6058765053749084, -0.012862425297498703, -0.07757609337568283, 0.5512679815292358, -0.3430548310279846, -0.2375439703464508, 0.11498129367828369, 0.18758037686347961, -0.016697581857442856, 0.12442353367805481, -0.1434652954339981, 0.015068236738443375, -0.007390338461846113, 0.20498773455619812, -0.10102507472038269, 0.5279215574264526, 0.13047094643115997, 0.7018246054649353, -0.16545483469963074, -0.14300841093063354, 0.3313238024711609, 0.24199295043945312, 0.07736501097679138, 0.04816427826881409, -0.028412964195013046, -0.11799906194210052, -0.1809873878955841, -0.08216679096221924, -0.006838075816631317, 0.04872722551226616, -0.1101650521159172, -0.027632582932710648, -0.11803238093852997, -0.22682607173919678, -0.15881046652793884, 0.3197794556617737, 0.061006996780633926, -0.11388948559761047, -0.20074138045310974, -0.2847958207130432, -0.017008285969495773, -0.08031131327152252, 0.05849076807498932, 0.03809003904461861, 0.10930879414081573, 0.1145235002040863, -0.015752054750919342, -0.30024394392967224, -0.03336978331208229, 0.07999826222658157, 0.3141288161277771, -0.14442768692970276, 0.05180373787879944, -0.1972084939479828, 0.18430845439434052, -0.477792888879776, 0.754143476486206, 0.4649645686149597, -0.07626231014728546, 0.13590162992477417, -0.06636039912700653, -0.37808120250701904, -0.06195589900016785, 0.0836297869682312, 0.19823554158210754, 0.5710027813911438, 0.10321298241615295, -0.452648401260376, -0.10598324239253998, -0.105292409658432, 0.32241320610046387, 0.014623738825321198, -0.47840365767478943, -0.4063738286495209, -0.49590492248535156, -0.45783278346061707, -0.055918771773576736, 0.09452836960554123, 0.190110445022583, 0.1029646098613739, -0.09873926639556885, 0.27969062328338623, -0.25470149517059326, -0.4795067608356476, 0.09781930595636368, 0.17855167388916016, -0.5503336787223816, 0.14910295605659485, 0.051228247582912445, 0.3193379044532776, 0.5359144806861877, 0.6146833896636963, 0.5909867882728577, -0.21832558512687683, -0.05383621156215668, 0.3960571885108948, 0.17988669872283936, 0.16794729232788086, 0.16721193492412567, 0.20855796337127686, -0.1727023422718048, 0.20228227972984314, 0.22147636115550995, -0.010497953742742538, 0.19086429476737976, -0.12107664346694946, -0.0008764080703258514, 0.29116442799568176, 0.5025100111961365, -0.21722999215126038, 0.15785938501358032, 0.4766679108142853, 0.2834439277648926, -0.046716414391994476, 0.22268667817115784, -0.05963486433029175, 0.9461211562156677, -0.021072767674922943, 0.13255499303340912, 0.5243244171142578, -0.42520174384117126, 0.5806592702865601, -0.31889915466308594, 0.09764829277992249, -0.4774038791656494, 0.34796005487442017, 0.06618040800094604, -0.2101878523826599, -0.08619840443134308, 0.06463319063186646, -0.04271344095468521, -0.19860464334487915, -0.08621233701705933, 0.0907088965177536, -0.11656435579061508, 0.07200548052787781, -0.02068118192255497, 0.00021794810891151428, -0.3245541751384735, -0.0062564946711063385, -0.34523090720176697, -0.1282551884651184, -0.17179197072982788, -0.3250170350074768, 0.04215449094772339, -0.17573438584804535, -0.19179342687129974, 0.2709341049194336, 0.1396908015012741, 0.3771393299102783, 0.27483853697776794, -0.14227493107318878, -0.007455669343471527, -0.44002723693847656, -0.2658153772354126, -0.16497322916984558, -0.038579437881708145, 0.2240043580532074, 0.008436289615929127, -0.12542623281478882, -0.021885355934500694, 0.12433987110853195, 0.14794696867465973, -0.1720810830593109, -0.17584805190563202, 0.14636647701263428, -0.1700340211391449, -0.18596315383911133, -0.14072993397712708, 0.1831437647342682, -0.15189680457115173, -0.031130820512771606, -0.06275986135005951, -0.14789730310440063, 0.08175982534885406, -0.128450408577919, 0.06835408508777618, 0.0026660487055778503, 0.0737185925245285, -0.3161940276622772, 0.08391973376274109, -0.3015912175178528, -0.08405137807130814, 0.26980316638946533, -0.031523898243904114, 0.1463477462530136, 0.453889936208725, 0.4027523100376129, -0.0726219117641449, -0.09563928842544556, -0.056729499250650406, 0.5515410900115967, -0.6051447987556458, 0.29131531715393066, -0.15657973289489746, 0.11268812417984009, 0.09658989310264587, 0.3177768886089325, 0.2544376254081726, 0.0715055763721466, 0.026548020541667938, -0.3478246331214905, -0.2285255789756775, 0.49165666103363037, -0.01851816475391388, 0.012202085927128792, 0.10270688682794571, 0.4117227792739868, -0.07805407792329788, 0.19734099507331848, -0.21987266838550568, 0.3020845651626587, 0.02872294932603836, 0.056454796344041824, -0.46020767092704773, -0.21326866745948792, -0.2015921175479889, 0.25507840514183044, 0.02708866447210312, 0.16798681020736694, -0.07122465968132019, -0.12592589855194092, -0.12761631608009338, 0.10120342671871185, 0.1020171195268631, -0.09683972597122192, -0.06450266391038895, -0.10317181795835495, 0.12111099064350128, 0.12978413701057434, 0.13172724843025208, -0.20999029278755188, -0.053500719368457794, -0.3004149794578552, 0.001518632285296917, -0.18776559829711914, -0.36424314975738525, 0.07901686429977417, -0.0337793305516243, 0.289096474647522, 0.08048452436923981, 0.2754156291484833, -0.023706531152129173, -0.0644058957695961, -0.22985848784446716, 0.10528521239757538, 0.15295793116092682, -0.04675563797354698, 0.4014985263347626, -0.3238120973110199, -0.0387648269534111, -0.26536136865615845, 0.2756448984146118, 0.4593813121318817, -0.22526349127292633, -0.12385664880275726, 0.015261966735124588, 0.16776685416698456, 0.0016633197665214539, -0.21519118547439575, -0.219524085521698, -0.0497763566672802, -0.15386947989463806, -0.07467341423034668, -0.09042417258024216, -0.2073940932750702, -0.17872567474842072, 0.12195633351802826, 0.2947434186935425, 0.2419094741344452, -0.3463655710220337, 0.3792242705821991, -0.27893221378326416, -0.17496024072170258, 0.2887691557407379, 0.1355137974023819, 0.5593863129615784, -0.09074170887470245, -0.07203678041696548, 0.18086543679237366, -0.051142796874046326, 0.08335882425308228, -0.15314646065235138, -0.4281860291957855, -0.17864584922790527, 0.36371302604675293, 0.20608484745025635, -0.24173830449581146, 0.30446845293045044, 0.5248376727104187, 0.4010773003101349, -0.11268854141235352, -0.019808150827884674, 0.22560466825962067, -0.13098521530628204, 0.2223397046327591, -0.509784460067749, -0.1980474591255188, -0.12367966771125793, 0.3870282471179962, -0.12533767521381378, 0.055718131363391876, 0.4912978410720825, 0.17829613387584686, -0.0879884660243988, -0.6212043762207031, -0.11303989589214325, 0.07271526008844376, -0.07147231698036194, -0.23943805694580078, 0.22984164953231812, 0.6816927790641785, -0.4974331557750702, -0.05619513615965843, -0.2158796489238739, 0.488618403673172, 0.27109813690185547, -0.211181640625, -0.4033636748790741, -0.21839219331741333, -0.07209122180938721, -0.09500819444656372, 0.10225372016429901, 0.5172536969184875, 0.3498510420322418, 0.23339632153511047, 0.06629256159067154, -0.14184142649173737, 0.23030202090740204, 0.1463668942451477, 0.13845153152942657, 0.0005853325128555298, -0.23334664106369019, -0.2354167252779007, -0.34432291984558105, -0.18023352324962616, -0.22826533019542694, -0.39212632179260254, -0.3310350179672241, 0.12119007110595703, -0.03121107630431652, -0.1318797618150711, -0.1365348845720291, 0.06309850513935089, -0.07263320684432983, 0.697825014591217, 0.348535418510437, 0.20587176084518433, -0.24650824069976807, -0.2613234221935272, -0.24710185825824738, 0.4796888530254364, -0.4091094136238098, 0.19831618666648865, 0.213055819272995, 0.18338359892368317, 0.10704740881919861, 0.3368978500366211, -0.06520387530326843, 0.5276263356208801, -0.18086348474025726, -0.2147907018661499, -0.38511261343955994, 0.036826085299253464, 0.2935442626476288, -0.16676665842533112, -0.18446195125579834, -0.1514570116996765, 0.33867397904396057, -0.1768074631690979, 0.11256475001573563, -0.11822780966758728, 0.023272216320037842, 0.05392254889011383, 0.08557070791721344, 0.32998400926589966, 0.08187326788902283, 0.3291725516319275, 0.028654277324676514, -0.14292407035827637, -0.10798332840204239, -0.25462934374809265, -0.17260955274105072, 0.38462361693382263, 0.0581517331302166, 0.4116555452346802, -0.07876633107662201, 0.07952147722244263, -0.1733226627111435, 0.10523428022861481, -0.43482983112335205, -0.09791163355112076, 0.12186194211244583, -0.2352115958929062, 0.024975433945655823, 0.10284894704818726, -0.01711175963282585, 0.11467621475458145, 0.08856968581676483, 0.1137048527598381, -0.49449414014816284, -0.14144745469093323, 0.46971988677978516, -0.3657931983470917, -0.2979661226272583, 0.49709993600845337, 0.10345202684402466, 0.3452361226081848, -0.11850852519273758, -0.5068210363388062, 0.0891440212726593, 0.18964678049087524, 0.05866396054625511, -0.3722427785396576, 0.2245829701423645, 0.048214126378297806, -0.06096302345395088, 0.05195152759552002, 0.22357182204723358, 0.18367184698581696, -0.36517152190208435, -0.031713053584098816, -0.12904897332191467 ]
https://github.com/huggingface/datasets/issues/2181
I am getting the same error. When I tweak the block_size, I also find: `OverflowError: value too large to convert to int32_t` and `pyarrow.lib.ArrowInvalid: Exceeded maximum rows`
Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries)
Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project. When loading a huge json file of 500GB, pyarrow complains as follows: ``` Traceback (most recent call last): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 531, in incomplete_dir yield tmp_dir File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 1027, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/app/.cache/huggingface/modules/datasets_modules/datasets/json/9498524fd296a6cca99c66d6c5be507d1c0991f5a814e535b507f4a66096a641/json.py", line 83, in _generate_tables parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 247, in pyarrow._json.read_json File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` When using only a small portion of the sample file, say first 100 lines, it works perfectly well.. I see that it is the error from pyarrow, but could you give me a hint or possible solutions? #369 describes the same error and #372 claims to have fixed the issue, but I have no clue why I am still getting this one. Thanks in advance!
27
Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries) Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project. When loading a huge json file of 500GB, pyarrow complains as follows: ``` Traceback (most recent call last): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 531, in incomplete_dir yield tmp_dir File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 1027, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/app/.cache/huggingface/modules/datasets_modules/datasets/json/9498524fd296a6cca99c66d6c5be507d1c0991f5a814e535b507f4a66096a641/json.py", line 83, in _generate_tables parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 247, in pyarrow._json.read_json File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` When using only a small portion of the sample file, say first 100 lines, it works perfectly well.. I see that it is the error from pyarrow, but could you give me a hint or possible solutions? #369 describes the same error and #372 claims to have fixed the issue, but I have no clue why I am still getting this one. Thanks in advance! I am getting the same error. When I tweak the block_size, I also find: `OverflowError: value too large to convert to int32_t` and `pyarrow.lib.ArrowInvalid: Exceeded maximum rows`
[ 0.016557134687900543, 0.012686491012573242, -0.007510840892791748, 0.340938001871109, 0.16045337915420532, -0.2647136151790619, 0.1936325877904892, 0.585946798324585, -0.1621612310409546, -0.08150680363178253, 0.165473073720932, 0.1441625952720642, -0.015083150938153267, 0.014561839401721954, -0.12952116131782532, -0.19119158387184143, 0.03336812183260918, 0.07827459275722504, -0.08155374228954315, 0.13550716638565063, -0.036886993795633316, 0.23287232220172882, -0.09352752566337585, 0.2323910892009735, -0.08702811598777771, -0.078151173889637, 0.19806386530399323, 0.3374811112880707, -0.3348849415779114, -0.4495867192745209, 0.16122466325759888, -0.2951851189136505, 0.00625833123922348, 0.3340713381767273, -0.00011563083535293117, 0.04710572957992554, 0.2495899200439453, 0.10917901247739792, 0.018743246793746948, -0.21912096440792084, 0.28083518147468567, -0.3987070620059967, 0.22801175713539124, -0.16741758584976196, 0.12958505749702454, -0.4462142884731293, -0.3999216854572296, 0.3737812936306, 0.42772966623306274, -0.1255548894405365, 0.16510146856307983, 0.09121091663837433, 0.2657487690448761, 0.2669147551059723, 0.43684399127960205, -0.06525061279535294, 0.027398288249969482, 0.5041723251342773, 0.3052016496658325, -0.2382044792175293, -0.335480660200119, -0.13703159987926483, -0.24959173798561096, 0.13811476528644562, 0.37793204188346863, -0.1172008365392685, 0.0762815773487091, 0.058968108147382736, -0.0799434632062912, 0.037721555680036545, 0.22632096707820892, -0.40860217809677124, -0.10335905849933624, -0.07818765938282013, -0.08564877510070801, -0.18307429552078247, 0.30791807174682617, 0.38823094964027405, -0.21039502322673798, 0.06983030587434769, -0.19144491851329803, -0.10000123083591461, -0.19912081956863403, 0.17865115404129028, -0.35803136229515076, -0.1259491741657257, -0.0024533364921808243, 0.3322299122810364, 0.23105305433273315, -0.007611139677464962, -0.03557560220360756, 0.03110630065202713, -0.27349409461021423, -0.05659797787666321, -0.20946265757083893, 0.016639187932014465, 0.001514500007033348, -0.31718331575393677, 0.19064874947071075, 0.22608867287635803, 0.1960858255624771, -0.0655946433544159, 0.24631495773792267, 0.2574920058250427, 0.6111612319946289, 0.059475723654031754, -0.35225409269332886, -0.16774725914001465, 0.20540012419223785, 0.23781505227088928, -0.01948721706867218, 0.060987699776887894, -0.05920731648802757, -0.5538620948791504, 0.05948247015476227, -0.27982696890830994, 0.25977540016174316, -0.21602407097816467, -0.21031984686851501, 0.13332229852676392, -0.7950461506843567, 0.05001157149672508, 0.16625311970710754, 0.2496994137763977, 0.027215834707021713, 0.2363472580909729, 0.048551835119724274, 0.15819595754146576, 0.00895940512418747, -0.1194203794002533, -0.007867541164159775, 0.1263681948184967, -0.152511864900589, 0.03859640657901764, 0.15799176692962646, -0.1335815191268921, -0.006415821611881256, 0.1193346232175827, 0.21734745800495148, -0.21163922548294067, 0.18620648980140686, 0.016617346554994583, 0.04777029529213905, 0.32882145047187805, -0.051676537841558456, 0.1116405725479126, -0.05485987663269043, -0.012655116617679596, -0.2687698006629944, 0.4798906147480011, -0.06268774718046188, -0.3448125123977661, -0.17427487671375275, 0.1004122644662857, -0.26061367988586426, 0.2655538320541382, 0.004983406513929367, 0.03751701861619949, 0.15041927993297577, -0.36913180351257324, 0.21616050601005554, -0.13115130364894867, 0.17783097922801971, -0.3457719385623932, 0.1031695008277893, -0.08137425780296326, -0.686922550201416, 0.017364777624607086, 0.2560485303401947, 0.17541708052158356, -0.09443646669387817, 0.5446499586105347, -0.41504523158073425, 0.14476221799850464, -0.045954056084156036, 0.16156601905822754, 0.14491739869117737, 0.16062840819358826, -0.6060853600502014, 0.37282344698905945, -0.2745344638824463, 0.05764264613389969, 0.030735092237591743, -0.01460561528801918, -0.12643839418888092, -0.02412503771483898, -0.030100323259830475, 0.35156863927841187, 0.08327783644199371, 0.230947345495224, -0.3654412627220154, -0.23694975674152374, 0.12336330115795135, 0.36343520879745483, -0.11454498767852783, -0.41169896721839905, -0.04933193325996399, -0.19168895483016968, 0.05531973019242287, -0.11574171483516693, 0.1517811119556427, 0.4218286871910095, 0.13591890037059784, -0.11939302086830139, 0.10268734395503998, 0.11307455599308014, -0.4654294550418854, 0.02145993709564209, 0.07177260518074036, -0.06311038136482239, -0.34618860483169556, -0.08819680660963058, -0.03014976531267166, 0.2487497180700302, 0.09451157599687576, 0.20600953698158264, 0.034039340913295746, -0.17311519384384155, 0.07218873500823975, -0.0024394840002059937, -0.09863868355751038, -0.4135909378528595, 0.1334342360496521, 0.07346150279045105, -0.010110631585121155, 0.3906272351741791, 0.06373294442892075, -0.29337942600250244, 0.06923151016235352, 0.14978158473968506, -0.033689793199300766, -0.14471060037612915, -0.09443895518779755, 0.18455585837364197, -0.08298837393522263, 0.0026108622550964355, -0.24477800726890564, 0.12931999564170837, 0.28015223145484924, -0.3557436168193817, 0.027763979509472847, 0.10325008630752563, 0.07656967639923096, -0.06545478850603104, 0.2241746485233307, 0.41785210371017456, -0.32889431715011597, 0.20321379601955414, 0.09631937742233276, -0.29225975275039673, 0.0688127651810646, -0.07928574830293655, -0.018426917493343353, 0.16511400043964386, 0.2211025208234787, 0.39223387837409973, 0.22438602149486542, 0.13821087777614594, -0.16022241115570068, -0.11941797286272049, 0.3985999822616577, -0.18343088030815125, -0.0815005749464035, 0.15234488248825073, -0.13357822597026825, -0.03313305601477623, 0.09641968458890915, -0.12941595911979675, 0.1355016678571701, 0.247806578874588, -0.14270120859146118, -0.0006219875067472458, 0.027252864092588425, -0.17982809245586395, 0.22227734327316284, 0.1978260725736618, 0.1286401003599167, 0.2018653154373169, 0.5253884196281433, -0.1262487769126892, -0.23405295610427856, -0.22392259538173676, 0.24419988691806793, 0.19612833857536316, -0.29082274436950684, 0.12981024384498596, -0.06877247244119644, 0.024300873279571533, -0.08478270471096039, -0.6795875430107117, -0.3061877489089966, -0.09219739586114883, 0.0006513986736536026, 0.4704108238220215, -0.3309013247489929, 0.07065555453300476, 0.15992720425128937, 0.3159405589103699, 0.07936631888151169, -0.18853281438350677, -0.044373661279678345, -0.34382882714271545, -0.25352972745895386, -0.026064585894346237, 0.4630129635334015, 0.14641384780406952, 0.0704183578491211, 0.3701918423175812, 0.02218712866306305, -0.06104494258761406, -0.42885980010032654, 0.21847772598266602, -0.046798888593912125, 0.07783334702253342, 0.0034067295491695404, 0.12915509939193726, -0.24721172451972961, -0.2504463195800781, 0.3068670630455017, 0.03602494299411774, -0.2057611644268036, 0.3271165192127228, -0.1920834630727768, 0.07442647218704224, -0.17810189723968506, 0.11519238352775574, 0.21282653510570526, -0.5418014526367188, 0.3973288834095001, -0.18551909923553467, 0.003990701399743557, -0.2795965075492859, 0.26352033019065857, 0.09601011872291565, 0.06791480630636215, -0.04049712419509888, 0.05940072610974312, -0.420190691947937, 0.1961018145084381, -0.04033276438713074, -0.18817457556724548, 0.04183948040008545, 0.10971665382385254, 0.15190953016281128, 0.1650312840938568, -0.6058765053749084, -0.012862425297498703, -0.07757609337568283, 0.5512679815292358, -0.3430548310279846, -0.2375439703464508, 0.11498129367828369, 0.18758037686347961, -0.016697581857442856, 0.12442353367805481, -0.1434652954339981, 0.015068236738443375, -0.007390338461846113, 0.20498773455619812, -0.10102507472038269, 0.5279215574264526, 0.13047094643115997, 0.7018246054649353, -0.16545483469963074, -0.14300841093063354, 0.3313238024711609, 0.24199295043945312, 0.07736501097679138, 0.04816427826881409, -0.028412964195013046, -0.11799906194210052, -0.1809873878955841, -0.08216679096221924, -0.006838075816631317, 0.04872722551226616, -0.1101650521159172, -0.027632582932710648, -0.11803238093852997, -0.22682607173919678, -0.15881046652793884, 0.3197794556617737, 0.061006996780633926, -0.11388948559761047, -0.20074138045310974, -0.2847958207130432, -0.017008285969495773, -0.08031131327152252, 0.05849076807498932, 0.03809003904461861, 0.10930879414081573, 0.1145235002040863, -0.015752054750919342, -0.30024394392967224, -0.03336978331208229, 0.07999826222658157, 0.3141288161277771, -0.14442768692970276, 0.05180373787879944, -0.1972084939479828, 0.18430845439434052, -0.477792888879776, 0.754143476486206, 0.4649645686149597, -0.07626231014728546, 0.13590162992477417, -0.06636039912700653, -0.37808120250701904, -0.06195589900016785, 0.0836297869682312, 0.19823554158210754, 0.5710027813911438, 0.10321298241615295, -0.452648401260376, -0.10598324239253998, -0.105292409658432, 0.32241320610046387, 0.014623738825321198, -0.47840365767478943, -0.4063738286495209, -0.49590492248535156, -0.45783278346061707, -0.055918771773576736, 0.09452836960554123, 0.190110445022583, 0.1029646098613739, -0.09873926639556885, 0.27969062328338623, -0.25470149517059326, -0.4795067608356476, 0.09781930595636368, 0.17855167388916016, -0.5503336787223816, 0.14910295605659485, 0.051228247582912445, 0.3193379044532776, 0.5359144806861877, 0.6146833896636963, 0.5909867882728577, -0.21832558512687683, -0.05383621156215668, 0.3960571885108948, 0.17988669872283936, 0.16794729232788086, 0.16721193492412567, 0.20855796337127686, -0.1727023422718048, 0.20228227972984314, 0.22147636115550995, -0.010497953742742538, 0.19086429476737976, -0.12107664346694946, -0.0008764080703258514, 0.29116442799568176, 0.5025100111961365, -0.21722999215126038, 0.15785938501358032, 0.4766679108142853, 0.2834439277648926, -0.046716414391994476, 0.22268667817115784, -0.05963486433029175, 0.9461211562156677, -0.021072767674922943, 0.13255499303340912, 0.5243244171142578, -0.42520174384117126, 0.5806592702865601, -0.31889915466308594, 0.09764829277992249, -0.4774038791656494, 0.34796005487442017, 0.06618040800094604, -0.2101878523826599, -0.08619840443134308, 0.06463319063186646, -0.04271344095468521, -0.19860464334487915, -0.08621233701705933, 0.0907088965177536, -0.11656435579061508, 0.07200548052787781, -0.02068118192255497, 0.00021794810891151428, -0.3245541751384735, -0.0062564946711063385, -0.34523090720176697, -0.1282551884651184, -0.17179197072982788, -0.3250170350074768, 0.04215449094772339, -0.17573438584804535, -0.19179342687129974, 0.2709341049194336, 0.1396908015012741, 0.3771393299102783, 0.27483853697776794, -0.14227493107318878, -0.007455669343471527, -0.44002723693847656, -0.2658153772354126, -0.16497322916984558, -0.038579437881708145, 0.2240043580532074, 0.008436289615929127, -0.12542623281478882, -0.021885355934500694, 0.12433987110853195, 0.14794696867465973, -0.1720810830593109, -0.17584805190563202, 0.14636647701263428, -0.1700340211391449, -0.18596315383911133, -0.14072993397712708, 0.1831437647342682, -0.15189680457115173, -0.031130820512771606, -0.06275986135005951, -0.14789730310440063, 0.08175982534885406, -0.128450408577919, 0.06835408508777618, 0.0026660487055778503, 0.0737185925245285, -0.3161940276622772, 0.08391973376274109, -0.3015912175178528, -0.08405137807130814, 0.26980316638946533, -0.031523898243904114, 0.1463477462530136, 0.453889936208725, 0.4027523100376129, -0.0726219117641449, -0.09563928842544556, -0.056729499250650406, 0.5515410900115967, -0.6051447987556458, 0.29131531715393066, -0.15657973289489746, 0.11268812417984009, 0.09658989310264587, 0.3177768886089325, 0.2544376254081726, 0.0715055763721466, 0.026548020541667938, -0.3478246331214905, -0.2285255789756775, 0.49165666103363037, -0.01851816475391388, 0.012202085927128792, 0.10270688682794571, 0.4117227792739868, -0.07805407792329788, 0.19734099507331848, -0.21987266838550568, 0.3020845651626587, 0.02872294932603836, 0.056454796344041824, -0.46020767092704773, -0.21326866745948792, -0.2015921175479889, 0.25507840514183044, 0.02708866447210312, 0.16798681020736694, -0.07122465968132019, -0.12592589855194092, -0.12761631608009338, 0.10120342671871185, 0.1020171195268631, -0.09683972597122192, -0.06450266391038895, -0.10317181795835495, 0.12111099064350128, 0.12978413701057434, 0.13172724843025208, -0.20999029278755188, -0.053500719368457794, -0.3004149794578552, 0.001518632285296917, -0.18776559829711914, -0.36424314975738525, 0.07901686429977417, -0.0337793305516243, 0.289096474647522, 0.08048452436923981, 0.2754156291484833, -0.023706531152129173, -0.0644058957695961, -0.22985848784446716, 0.10528521239757538, 0.15295793116092682, -0.04675563797354698, 0.4014985263347626, -0.3238120973110199, -0.0387648269534111, -0.26536136865615845, 0.2756448984146118, 0.4593813121318817, -0.22526349127292633, -0.12385664880275726, 0.015261966735124588, 0.16776685416698456, 0.0016633197665214539, -0.21519118547439575, -0.219524085521698, -0.0497763566672802, -0.15386947989463806, -0.07467341423034668, -0.09042417258024216, -0.2073940932750702, -0.17872567474842072, 0.12195633351802826, 0.2947434186935425, 0.2419094741344452, -0.3463655710220337, 0.3792242705821991, -0.27893221378326416, -0.17496024072170258, 0.2887691557407379, 0.1355137974023819, 0.5593863129615784, -0.09074170887470245, -0.07203678041696548, 0.18086543679237366, -0.051142796874046326, 0.08335882425308228, -0.15314646065235138, -0.4281860291957855, -0.17864584922790527, 0.36371302604675293, 0.20608484745025635, -0.24173830449581146, 0.30446845293045044, 0.5248376727104187, 0.4010773003101349, -0.11268854141235352, -0.019808150827884674, 0.22560466825962067, -0.13098521530628204, 0.2223397046327591, -0.509784460067749, -0.1980474591255188, -0.12367966771125793, 0.3870282471179962, -0.12533767521381378, 0.055718131363391876, 0.4912978410720825, 0.17829613387584686, -0.0879884660243988, -0.6212043762207031, -0.11303989589214325, 0.07271526008844376, -0.07147231698036194, -0.23943805694580078, 0.22984164953231812, 0.6816927790641785, -0.4974331557750702, -0.05619513615965843, -0.2158796489238739, 0.488618403673172, 0.27109813690185547, -0.211181640625, -0.4033636748790741, -0.21839219331741333, -0.07209122180938721, -0.09500819444656372, 0.10225372016429901, 0.5172536969184875, 0.3498510420322418, 0.23339632153511047, 0.06629256159067154, -0.14184142649173737, 0.23030202090740204, 0.1463668942451477, 0.13845153152942657, 0.0005853325128555298, -0.23334664106369019, -0.2354167252779007, -0.34432291984558105, -0.18023352324962616, -0.22826533019542694, -0.39212632179260254, -0.3310350179672241, 0.12119007110595703, -0.03121107630431652, -0.1318797618150711, -0.1365348845720291, 0.06309850513935089, -0.07263320684432983, 0.697825014591217, 0.348535418510437, 0.20587176084518433, -0.24650824069976807, -0.2613234221935272, -0.24710185825824738, 0.4796888530254364, -0.4091094136238098, 0.19831618666648865, 0.213055819272995, 0.18338359892368317, 0.10704740881919861, 0.3368978500366211, -0.06520387530326843, 0.5276263356208801, -0.18086348474025726, -0.2147907018661499, -0.38511261343955994, 0.036826085299253464, 0.2935442626476288, -0.16676665842533112, -0.18446195125579834, -0.1514570116996765, 0.33867397904396057, -0.1768074631690979, 0.11256475001573563, -0.11822780966758728, 0.023272216320037842, 0.05392254889011383, 0.08557070791721344, 0.32998400926589966, 0.08187326788902283, 0.3291725516319275, 0.028654277324676514, -0.14292407035827637, -0.10798332840204239, -0.25462934374809265, -0.17260955274105072, 0.38462361693382263, 0.0581517331302166, 0.4116555452346802, -0.07876633107662201, 0.07952147722244263, -0.1733226627111435, 0.10523428022861481, -0.43482983112335205, -0.09791163355112076, 0.12186194211244583, -0.2352115958929062, 0.024975433945655823, 0.10284894704818726, -0.01711175963282585, 0.11467621475458145, 0.08856968581676483, 0.1137048527598381, -0.49449414014816284, -0.14144745469093323, 0.46971988677978516, -0.3657931983470917, -0.2979661226272583, 0.49709993600845337, 0.10345202684402466, 0.3452361226081848, -0.11850852519273758, -0.5068210363388062, 0.0891440212726593, 0.18964678049087524, 0.05866396054625511, -0.3722427785396576, 0.2245829701423645, 0.048214126378297806, -0.06096302345395088, 0.05195152759552002, 0.22357182204723358, 0.18367184698581696, -0.36517152190208435, -0.031713053584098816, -0.12904897332191467 ]
https://github.com/huggingface/datasets/issues/2181
I made more tests. I used a smaller dataset and I was getting the same error, which means that it was not necessarily linked to the dataset size. To make both my smaller and larger datasets work, I got rid of lists with the json file. I had the following data format: ```python [ {'key': "a", 'value': ['one', 'two', 'three']}, {'key': "b", 'value': ['four', 'five', 'six']} ] ``` I changed to: ```python {'key': "a", 'value': 'one\ntwo\nthree'}, {'key': "b", 'value': 'four\nfive\nsix']} ``` and that worked! I used the following to reformat my json file: ```python with open(file_name, "w", encoding="utf-8") as f: for item in list_: f.write(json.dumps(item) + "\n") ``` This works with `block_size_10MB = 10 << 20` or without specifying `block_size`.
Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries)
Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project. When loading a huge json file of 500GB, pyarrow complains as follows: ``` Traceback (most recent call last): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 531, in incomplete_dir yield tmp_dir File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 1027, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/app/.cache/huggingface/modules/datasets_modules/datasets/json/9498524fd296a6cca99c66d6c5be507d1c0991f5a814e535b507f4a66096a641/json.py", line 83, in _generate_tables parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 247, in pyarrow._json.read_json File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` When using only a small portion of the sample file, say first 100 lines, it works perfectly well.. I see that it is the error from pyarrow, but could you give me a hint or possible solutions? #369 describes the same error and #372 claims to have fixed the issue, but I have no clue why I am still getting this one. Thanks in advance!
120
Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries) Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project. When loading a huge json file of 500GB, pyarrow complains as follows: ``` Traceback (most recent call last): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 531, in incomplete_dir yield tmp_dir File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 1027, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/app/.cache/huggingface/modules/datasets_modules/datasets/json/9498524fd296a6cca99c66d6c5be507d1c0991f5a814e535b507f4a66096a641/json.py", line 83, in _generate_tables parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 247, in pyarrow._json.read_json File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` When using only a small portion of the sample file, say first 100 lines, it works perfectly well.. I see that it is the error from pyarrow, but could you give me a hint or possible solutions? #369 describes the same error and #372 claims to have fixed the issue, but I have no clue why I am still getting this one. Thanks in advance! I made more tests. I used a smaller dataset and I was getting the same error, which means that it was not necessarily linked to the dataset size. To make both my smaller and larger datasets work, I got rid of lists with the json file. I had the following data format: ```python [ {'key': "a", 'value': ['one', 'two', 'three']}, {'key': "b", 'value': ['four', 'five', 'six']} ] ``` I changed to: ```python {'key': "a", 'value': 'one\ntwo\nthree'}, {'key': "b", 'value': 'four\nfive\nsix']} ``` and that worked! I used the following to reformat my json file: ```python with open(file_name, "w", encoding="utf-8") as f: for item in list_: f.write(json.dumps(item) + "\n") ``` This works with `block_size_10MB = 10 << 20` or without specifying `block_size`.
[ 0.016557134687900543, 0.012686491012573242, -0.007510840892791748, 0.340938001871109, 0.16045337915420532, -0.2647136151790619, 0.1936325877904892, 0.585946798324585, -0.1621612310409546, -0.08150680363178253, 0.165473073720932, 0.1441625952720642, -0.015083150938153267, 0.014561839401721954, -0.12952116131782532, -0.19119158387184143, 0.03336812183260918, 0.07827459275722504, -0.08155374228954315, 0.13550716638565063, -0.036886993795633316, 0.23287232220172882, -0.09352752566337585, 0.2323910892009735, -0.08702811598777771, -0.078151173889637, 0.19806386530399323, 0.3374811112880707, -0.3348849415779114, -0.4495867192745209, 0.16122466325759888, -0.2951851189136505, 0.00625833123922348, 0.3340713381767273, -0.00011563083535293117, 0.04710572957992554, 0.2495899200439453, 0.10917901247739792, 0.018743246793746948, -0.21912096440792084, 0.28083518147468567, -0.3987070620059967, 0.22801175713539124, -0.16741758584976196, 0.12958505749702454, -0.4462142884731293, -0.3999216854572296, 0.3737812936306, 0.42772966623306274, -0.1255548894405365, 0.16510146856307983, 0.09121091663837433, 0.2657487690448761, 0.2669147551059723, 0.43684399127960205, -0.06525061279535294, 0.027398288249969482, 0.5041723251342773, 0.3052016496658325, -0.2382044792175293, -0.335480660200119, -0.13703159987926483, -0.24959173798561096, 0.13811476528644562, 0.37793204188346863, -0.1172008365392685, 0.0762815773487091, 0.058968108147382736, -0.0799434632062912, 0.037721555680036545, 0.22632096707820892, -0.40860217809677124, -0.10335905849933624, -0.07818765938282013, -0.08564877510070801, -0.18307429552078247, 0.30791807174682617, 0.38823094964027405, -0.21039502322673798, 0.06983030587434769, -0.19144491851329803, -0.10000123083591461, -0.19912081956863403, 0.17865115404129028, -0.35803136229515076, -0.1259491741657257, -0.0024533364921808243, 0.3322299122810364, 0.23105305433273315, -0.007611139677464962, -0.03557560220360756, 0.03110630065202713, -0.27349409461021423, -0.05659797787666321, -0.20946265757083893, 0.016639187932014465, 0.001514500007033348, -0.31718331575393677, 0.19064874947071075, 0.22608867287635803, 0.1960858255624771, -0.0655946433544159, 0.24631495773792267, 0.2574920058250427, 0.6111612319946289, 0.059475723654031754, -0.35225409269332886, -0.16774725914001465, 0.20540012419223785, 0.23781505227088928, -0.01948721706867218, 0.060987699776887894, -0.05920731648802757, -0.5538620948791504, 0.05948247015476227, -0.27982696890830994, 0.25977540016174316, -0.21602407097816467, -0.21031984686851501, 0.13332229852676392, -0.7950461506843567, 0.05001157149672508, 0.16625311970710754, 0.2496994137763977, 0.027215834707021713, 0.2363472580909729, 0.048551835119724274, 0.15819595754146576, 0.00895940512418747, -0.1194203794002533, -0.007867541164159775, 0.1263681948184967, -0.152511864900589, 0.03859640657901764, 0.15799176692962646, -0.1335815191268921, -0.006415821611881256, 0.1193346232175827, 0.21734745800495148, -0.21163922548294067, 0.18620648980140686, 0.016617346554994583, 0.04777029529213905, 0.32882145047187805, -0.051676537841558456, 0.1116405725479126, -0.05485987663269043, -0.012655116617679596, -0.2687698006629944, 0.4798906147480011, -0.06268774718046188, -0.3448125123977661, -0.17427487671375275, 0.1004122644662857, -0.26061367988586426, 0.2655538320541382, 0.004983406513929367, 0.03751701861619949, 0.15041927993297577, -0.36913180351257324, 0.21616050601005554, -0.13115130364894867, 0.17783097922801971, -0.3457719385623932, 0.1031695008277893, -0.08137425780296326, -0.686922550201416, 0.017364777624607086, 0.2560485303401947, 0.17541708052158356, -0.09443646669387817, 0.5446499586105347, -0.41504523158073425, 0.14476221799850464, -0.045954056084156036, 0.16156601905822754, 0.14491739869117737, 0.16062840819358826, -0.6060853600502014, 0.37282344698905945, -0.2745344638824463, 0.05764264613389969, 0.030735092237591743, -0.01460561528801918, -0.12643839418888092, -0.02412503771483898, -0.030100323259830475, 0.35156863927841187, 0.08327783644199371, 0.230947345495224, -0.3654412627220154, -0.23694975674152374, 0.12336330115795135, 0.36343520879745483, -0.11454498767852783, -0.41169896721839905, -0.04933193325996399, -0.19168895483016968, 0.05531973019242287, -0.11574171483516693, 0.1517811119556427, 0.4218286871910095, 0.13591890037059784, -0.11939302086830139, 0.10268734395503998, 0.11307455599308014, -0.4654294550418854, 0.02145993709564209, 0.07177260518074036, -0.06311038136482239, -0.34618860483169556, -0.08819680660963058, -0.03014976531267166, 0.2487497180700302, 0.09451157599687576, 0.20600953698158264, 0.034039340913295746, -0.17311519384384155, 0.07218873500823975, -0.0024394840002059937, -0.09863868355751038, -0.4135909378528595, 0.1334342360496521, 0.07346150279045105, -0.010110631585121155, 0.3906272351741791, 0.06373294442892075, -0.29337942600250244, 0.06923151016235352, 0.14978158473968506, -0.033689793199300766, -0.14471060037612915, -0.09443895518779755, 0.18455585837364197, -0.08298837393522263, 0.0026108622550964355, -0.24477800726890564, 0.12931999564170837, 0.28015223145484924, -0.3557436168193817, 0.027763979509472847, 0.10325008630752563, 0.07656967639923096, -0.06545478850603104, 0.2241746485233307, 0.41785210371017456, -0.32889431715011597, 0.20321379601955414, 0.09631937742233276, -0.29225975275039673, 0.0688127651810646, -0.07928574830293655, -0.018426917493343353, 0.16511400043964386, 0.2211025208234787, 0.39223387837409973, 0.22438602149486542, 0.13821087777614594, -0.16022241115570068, -0.11941797286272049, 0.3985999822616577, -0.18343088030815125, -0.0815005749464035, 0.15234488248825073, -0.13357822597026825, -0.03313305601477623, 0.09641968458890915, -0.12941595911979675, 0.1355016678571701, 0.247806578874588, -0.14270120859146118, -0.0006219875067472458, 0.027252864092588425, -0.17982809245586395, 0.22227734327316284, 0.1978260725736618, 0.1286401003599167, 0.2018653154373169, 0.5253884196281433, -0.1262487769126892, -0.23405295610427856, -0.22392259538173676, 0.24419988691806793, 0.19612833857536316, -0.29082274436950684, 0.12981024384498596, -0.06877247244119644, 0.024300873279571533, -0.08478270471096039, -0.6795875430107117, -0.3061877489089966, -0.09219739586114883, 0.0006513986736536026, 0.4704108238220215, -0.3309013247489929, 0.07065555453300476, 0.15992720425128937, 0.3159405589103699, 0.07936631888151169, -0.18853281438350677, -0.044373661279678345, -0.34382882714271545, -0.25352972745895386, -0.026064585894346237, 0.4630129635334015, 0.14641384780406952, 0.0704183578491211, 0.3701918423175812, 0.02218712866306305, -0.06104494258761406, -0.42885980010032654, 0.21847772598266602, -0.046798888593912125, 0.07783334702253342, 0.0034067295491695404, 0.12915509939193726, -0.24721172451972961, -0.2504463195800781, 0.3068670630455017, 0.03602494299411774, -0.2057611644268036, 0.3271165192127228, -0.1920834630727768, 0.07442647218704224, -0.17810189723968506, 0.11519238352775574, 0.21282653510570526, -0.5418014526367188, 0.3973288834095001, -0.18551909923553467, 0.003990701399743557, -0.2795965075492859, 0.26352033019065857, 0.09601011872291565, 0.06791480630636215, -0.04049712419509888, 0.05940072610974312, -0.420190691947937, 0.1961018145084381, -0.04033276438713074, -0.18817457556724548, 0.04183948040008545, 0.10971665382385254, 0.15190953016281128, 0.1650312840938568, -0.6058765053749084, -0.012862425297498703, -0.07757609337568283, 0.5512679815292358, -0.3430548310279846, -0.2375439703464508, 0.11498129367828369, 0.18758037686347961, -0.016697581857442856, 0.12442353367805481, -0.1434652954339981, 0.015068236738443375, -0.007390338461846113, 0.20498773455619812, -0.10102507472038269, 0.5279215574264526, 0.13047094643115997, 0.7018246054649353, -0.16545483469963074, -0.14300841093063354, 0.3313238024711609, 0.24199295043945312, 0.07736501097679138, 0.04816427826881409, -0.028412964195013046, -0.11799906194210052, -0.1809873878955841, -0.08216679096221924, -0.006838075816631317, 0.04872722551226616, -0.1101650521159172, -0.027632582932710648, -0.11803238093852997, -0.22682607173919678, -0.15881046652793884, 0.3197794556617737, 0.061006996780633926, -0.11388948559761047, -0.20074138045310974, -0.2847958207130432, -0.017008285969495773, -0.08031131327152252, 0.05849076807498932, 0.03809003904461861, 0.10930879414081573, 0.1145235002040863, -0.015752054750919342, -0.30024394392967224, -0.03336978331208229, 0.07999826222658157, 0.3141288161277771, -0.14442768692970276, 0.05180373787879944, -0.1972084939479828, 0.18430845439434052, -0.477792888879776, 0.754143476486206, 0.4649645686149597, -0.07626231014728546, 0.13590162992477417, -0.06636039912700653, -0.37808120250701904, -0.06195589900016785, 0.0836297869682312, 0.19823554158210754, 0.5710027813911438, 0.10321298241615295, -0.452648401260376, -0.10598324239253998, -0.105292409658432, 0.32241320610046387, 0.014623738825321198, -0.47840365767478943, -0.4063738286495209, -0.49590492248535156, -0.45783278346061707, -0.055918771773576736, 0.09452836960554123, 0.190110445022583, 0.1029646098613739, -0.09873926639556885, 0.27969062328338623, -0.25470149517059326, -0.4795067608356476, 0.09781930595636368, 0.17855167388916016, -0.5503336787223816, 0.14910295605659485, 0.051228247582912445, 0.3193379044532776, 0.5359144806861877, 0.6146833896636963, 0.5909867882728577, -0.21832558512687683, -0.05383621156215668, 0.3960571885108948, 0.17988669872283936, 0.16794729232788086, 0.16721193492412567, 0.20855796337127686, -0.1727023422718048, 0.20228227972984314, 0.22147636115550995, -0.010497953742742538, 0.19086429476737976, -0.12107664346694946, -0.0008764080703258514, 0.29116442799568176, 0.5025100111961365, -0.21722999215126038, 0.15785938501358032, 0.4766679108142853, 0.2834439277648926, -0.046716414391994476, 0.22268667817115784, -0.05963486433029175, 0.9461211562156677, -0.021072767674922943, 0.13255499303340912, 0.5243244171142578, -0.42520174384117126, 0.5806592702865601, -0.31889915466308594, 0.09764829277992249, -0.4774038791656494, 0.34796005487442017, 0.06618040800094604, -0.2101878523826599, -0.08619840443134308, 0.06463319063186646, -0.04271344095468521, -0.19860464334487915, -0.08621233701705933, 0.0907088965177536, -0.11656435579061508, 0.07200548052787781, -0.02068118192255497, 0.00021794810891151428, -0.3245541751384735, -0.0062564946711063385, -0.34523090720176697, -0.1282551884651184, -0.17179197072982788, -0.3250170350074768, 0.04215449094772339, -0.17573438584804535, -0.19179342687129974, 0.2709341049194336, 0.1396908015012741, 0.3771393299102783, 0.27483853697776794, -0.14227493107318878, -0.007455669343471527, -0.44002723693847656, -0.2658153772354126, -0.16497322916984558, -0.038579437881708145, 0.2240043580532074, 0.008436289615929127, -0.12542623281478882, -0.021885355934500694, 0.12433987110853195, 0.14794696867465973, -0.1720810830593109, -0.17584805190563202, 0.14636647701263428, -0.1700340211391449, -0.18596315383911133, -0.14072993397712708, 0.1831437647342682, -0.15189680457115173, -0.031130820512771606, -0.06275986135005951, -0.14789730310440063, 0.08175982534885406, -0.128450408577919, 0.06835408508777618, 0.0026660487055778503, 0.0737185925245285, -0.3161940276622772, 0.08391973376274109, -0.3015912175178528, -0.08405137807130814, 0.26980316638946533, -0.031523898243904114, 0.1463477462530136, 0.453889936208725, 0.4027523100376129, -0.0726219117641449, -0.09563928842544556, -0.056729499250650406, 0.5515410900115967, -0.6051447987556458, 0.29131531715393066, -0.15657973289489746, 0.11268812417984009, 0.09658989310264587, 0.3177768886089325, 0.2544376254081726, 0.0715055763721466, 0.026548020541667938, -0.3478246331214905, -0.2285255789756775, 0.49165666103363037, -0.01851816475391388, 0.012202085927128792, 0.10270688682794571, 0.4117227792739868, -0.07805407792329788, 0.19734099507331848, -0.21987266838550568, 0.3020845651626587, 0.02872294932603836, 0.056454796344041824, -0.46020767092704773, -0.21326866745948792, -0.2015921175479889, 0.25507840514183044, 0.02708866447210312, 0.16798681020736694, -0.07122465968132019, -0.12592589855194092, -0.12761631608009338, 0.10120342671871185, 0.1020171195268631, -0.09683972597122192, -0.06450266391038895, -0.10317181795835495, 0.12111099064350128, 0.12978413701057434, 0.13172724843025208, -0.20999029278755188, -0.053500719368457794, -0.3004149794578552, 0.001518632285296917, -0.18776559829711914, -0.36424314975738525, 0.07901686429977417, -0.0337793305516243, 0.289096474647522, 0.08048452436923981, 0.2754156291484833, -0.023706531152129173, -0.0644058957695961, -0.22985848784446716, 0.10528521239757538, 0.15295793116092682, -0.04675563797354698, 0.4014985263347626, -0.3238120973110199, -0.0387648269534111, -0.26536136865615845, 0.2756448984146118, 0.4593813121318817, -0.22526349127292633, -0.12385664880275726, 0.015261966735124588, 0.16776685416698456, 0.0016633197665214539, -0.21519118547439575, -0.219524085521698, -0.0497763566672802, -0.15386947989463806, -0.07467341423034668, -0.09042417258024216, -0.2073940932750702, -0.17872567474842072, 0.12195633351802826, 0.2947434186935425, 0.2419094741344452, -0.3463655710220337, 0.3792242705821991, -0.27893221378326416, -0.17496024072170258, 0.2887691557407379, 0.1355137974023819, 0.5593863129615784, -0.09074170887470245, -0.07203678041696548, 0.18086543679237366, -0.051142796874046326, 0.08335882425308228, -0.15314646065235138, -0.4281860291957855, -0.17864584922790527, 0.36371302604675293, 0.20608484745025635, -0.24173830449581146, 0.30446845293045044, 0.5248376727104187, 0.4010773003101349, -0.11268854141235352, -0.019808150827884674, 0.22560466825962067, -0.13098521530628204, 0.2223397046327591, -0.509784460067749, -0.1980474591255188, -0.12367966771125793, 0.3870282471179962, -0.12533767521381378, 0.055718131363391876, 0.4912978410720825, 0.17829613387584686, -0.0879884660243988, -0.6212043762207031, -0.11303989589214325, 0.07271526008844376, -0.07147231698036194, -0.23943805694580078, 0.22984164953231812, 0.6816927790641785, -0.4974331557750702, -0.05619513615965843, -0.2158796489238739, 0.488618403673172, 0.27109813690185547, -0.211181640625, -0.4033636748790741, -0.21839219331741333, -0.07209122180938721, -0.09500819444656372, 0.10225372016429901, 0.5172536969184875, 0.3498510420322418, 0.23339632153511047, 0.06629256159067154, -0.14184142649173737, 0.23030202090740204, 0.1463668942451477, 0.13845153152942657, 0.0005853325128555298, -0.23334664106369019, -0.2354167252779007, -0.34432291984558105, -0.18023352324962616, -0.22826533019542694, -0.39212632179260254, -0.3310350179672241, 0.12119007110595703, -0.03121107630431652, -0.1318797618150711, -0.1365348845720291, 0.06309850513935089, -0.07263320684432983, 0.697825014591217, 0.348535418510437, 0.20587176084518433, -0.24650824069976807, -0.2613234221935272, -0.24710185825824738, 0.4796888530254364, -0.4091094136238098, 0.19831618666648865, 0.213055819272995, 0.18338359892368317, 0.10704740881919861, 0.3368978500366211, -0.06520387530326843, 0.5276263356208801, -0.18086348474025726, -0.2147907018661499, -0.38511261343955994, 0.036826085299253464, 0.2935442626476288, -0.16676665842533112, -0.18446195125579834, -0.1514570116996765, 0.33867397904396057, -0.1768074631690979, 0.11256475001573563, -0.11822780966758728, 0.023272216320037842, 0.05392254889011383, 0.08557070791721344, 0.32998400926589966, 0.08187326788902283, 0.3291725516319275, 0.028654277324676514, -0.14292407035827637, -0.10798332840204239, -0.25462934374809265, -0.17260955274105072, 0.38462361693382263, 0.0581517331302166, 0.4116555452346802, -0.07876633107662201, 0.07952147722244263, -0.1733226627111435, 0.10523428022861481, -0.43482983112335205, -0.09791163355112076, 0.12186194211244583, -0.2352115958929062, 0.024975433945655823, 0.10284894704818726, -0.01711175963282585, 0.11467621475458145, 0.08856968581676483, 0.1137048527598381, -0.49449414014816284, -0.14144745469093323, 0.46971988677978516, -0.3657931983470917, -0.2979661226272583, 0.49709993600845337, 0.10345202684402466, 0.3452361226081848, -0.11850852519273758, -0.5068210363388062, 0.0891440212726593, 0.18964678049087524, 0.05866396054625511, -0.3722427785396576, 0.2245829701423645, 0.048214126378297806, -0.06096302345395088, 0.05195152759552002, 0.22357182204723358, 0.18367184698581696, -0.36517152190208435, -0.031713053584098816, -0.12904897332191467 ]
https://github.com/huggingface/datasets/issues/2181
Thanks @hwijeen for reporting and thanks @jpilaul for pointing this out. Indeed, those are different JSON-like formats: - the first one is the **standard JSON** format: all the file content is JSON-valid, thus all content is either a JSON object (between curly brackets `{...}`) or a JSON array (between square brackets `[...]`) - the second one is called **JSON Lines**: the entire file content is not JSON-valid, but only every line (newline-delimited) is JSON-valid Currently PyArrow only supports **JSON Lines** format: - https://arrow.apache.org/docs/python/generated/pyarrow.json.read_json.html > Currently only the line-delimited JSON format is supported. - https://arrow.apache.org/docs/python/json.html > Arrow supports reading columnar data from line-delimited JSON files.
Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries)
Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project. When loading a huge json file of 500GB, pyarrow complains as follows: ``` Traceback (most recent call last): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 531, in incomplete_dir yield tmp_dir File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 1027, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/app/.cache/huggingface/modules/datasets_modules/datasets/json/9498524fd296a6cca99c66d6c5be507d1c0991f5a814e535b507f4a66096a641/json.py", line 83, in _generate_tables parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 247, in pyarrow._json.read_json File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` When using only a small portion of the sample file, say first 100 lines, it works perfectly well.. I see that it is the error from pyarrow, but could you give me a hint or possible solutions? #369 describes the same error and #372 claims to have fixed the issue, but I have no clue why I am still getting this one. Thanks in advance!
104
Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries) Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project. When loading a huge json file of 500GB, pyarrow complains as follows: ``` Traceback (most recent call last): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 531, in incomplete_dir yield tmp_dir File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 1027, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/app/.cache/huggingface/modules/datasets_modules/datasets/json/9498524fd296a6cca99c66d6c5be507d1c0991f5a814e535b507f4a66096a641/json.py", line 83, in _generate_tables parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 247, in pyarrow._json.read_json File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` When using only a small portion of the sample file, say first 100 lines, it works perfectly well.. I see that it is the error from pyarrow, but could you give me a hint or possible solutions? #369 describes the same error and #372 claims to have fixed the issue, but I have no clue why I am still getting this one. Thanks in advance! Thanks @hwijeen for reporting and thanks @jpilaul for pointing this out. Indeed, those are different JSON-like formats: - the first one is the **standard JSON** format: all the file content is JSON-valid, thus all content is either a JSON object (between curly brackets `{...}`) or a JSON array (between square brackets `[...]`) - the second one is called **JSON Lines**: the entire file content is not JSON-valid, but only every line (newline-delimited) is JSON-valid Currently PyArrow only supports **JSON Lines** format: - https://arrow.apache.org/docs/python/generated/pyarrow.json.read_json.html > Currently only the line-delimited JSON format is supported. - https://arrow.apache.org/docs/python/json.html > Arrow supports reading columnar data from line-delimited JSON files.
[ 0.016557134687900543, 0.012686491012573242, -0.007510840892791748, 0.340938001871109, 0.16045337915420532, -0.2647136151790619, 0.1936325877904892, 0.585946798324585, -0.1621612310409546, -0.08150680363178253, 0.165473073720932, 0.1441625952720642, -0.015083150938153267, 0.014561839401721954, -0.12952116131782532, -0.19119158387184143, 0.03336812183260918, 0.07827459275722504, -0.08155374228954315, 0.13550716638565063, -0.036886993795633316, 0.23287232220172882, -0.09352752566337585, 0.2323910892009735, -0.08702811598777771, -0.078151173889637, 0.19806386530399323, 0.3374811112880707, -0.3348849415779114, -0.4495867192745209, 0.16122466325759888, -0.2951851189136505, 0.00625833123922348, 0.3340713381767273, -0.00011563083535293117, 0.04710572957992554, 0.2495899200439453, 0.10917901247739792, 0.018743246793746948, -0.21912096440792084, 0.28083518147468567, -0.3987070620059967, 0.22801175713539124, -0.16741758584976196, 0.12958505749702454, -0.4462142884731293, -0.3999216854572296, 0.3737812936306, 0.42772966623306274, -0.1255548894405365, 0.16510146856307983, 0.09121091663837433, 0.2657487690448761, 0.2669147551059723, 0.43684399127960205, -0.06525061279535294, 0.027398288249969482, 0.5041723251342773, 0.3052016496658325, -0.2382044792175293, -0.335480660200119, -0.13703159987926483, -0.24959173798561096, 0.13811476528644562, 0.37793204188346863, -0.1172008365392685, 0.0762815773487091, 0.058968108147382736, -0.0799434632062912, 0.037721555680036545, 0.22632096707820892, -0.40860217809677124, -0.10335905849933624, -0.07818765938282013, -0.08564877510070801, -0.18307429552078247, 0.30791807174682617, 0.38823094964027405, -0.21039502322673798, 0.06983030587434769, -0.19144491851329803, -0.10000123083591461, -0.19912081956863403, 0.17865115404129028, -0.35803136229515076, -0.1259491741657257, -0.0024533364921808243, 0.3322299122810364, 0.23105305433273315, -0.007611139677464962, -0.03557560220360756, 0.03110630065202713, -0.27349409461021423, -0.05659797787666321, -0.20946265757083893, 0.016639187932014465, 0.001514500007033348, -0.31718331575393677, 0.19064874947071075, 0.22608867287635803, 0.1960858255624771, -0.0655946433544159, 0.24631495773792267, 0.2574920058250427, 0.6111612319946289, 0.059475723654031754, -0.35225409269332886, -0.16774725914001465, 0.20540012419223785, 0.23781505227088928, -0.01948721706867218, 0.060987699776887894, -0.05920731648802757, -0.5538620948791504, 0.05948247015476227, -0.27982696890830994, 0.25977540016174316, -0.21602407097816467, -0.21031984686851501, 0.13332229852676392, -0.7950461506843567, 0.05001157149672508, 0.16625311970710754, 0.2496994137763977, 0.027215834707021713, 0.2363472580909729, 0.048551835119724274, 0.15819595754146576, 0.00895940512418747, -0.1194203794002533, -0.007867541164159775, 0.1263681948184967, -0.152511864900589, 0.03859640657901764, 0.15799176692962646, -0.1335815191268921, -0.006415821611881256, 0.1193346232175827, 0.21734745800495148, -0.21163922548294067, 0.18620648980140686, 0.016617346554994583, 0.04777029529213905, 0.32882145047187805, -0.051676537841558456, 0.1116405725479126, -0.05485987663269043, -0.012655116617679596, -0.2687698006629944, 0.4798906147480011, -0.06268774718046188, -0.3448125123977661, -0.17427487671375275, 0.1004122644662857, -0.26061367988586426, 0.2655538320541382, 0.004983406513929367, 0.03751701861619949, 0.15041927993297577, -0.36913180351257324, 0.21616050601005554, -0.13115130364894867, 0.17783097922801971, -0.3457719385623932, 0.1031695008277893, -0.08137425780296326, -0.686922550201416, 0.017364777624607086, 0.2560485303401947, 0.17541708052158356, -0.09443646669387817, 0.5446499586105347, -0.41504523158073425, 0.14476221799850464, -0.045954056084156036, 0.16156601905822754, 0.14491739869117737, 0.16062840819358826, -0.6060853600502014, 0.37282344698905945, -0.2745344638824463, 0.05764264613389969, 0.030735092237591743, -0.01460561528801918, -0.12643839418888092, -0.02412503771483898, -0.030100323259830475, 0.35156863927841187, 0.08327783644199371, 0.230947345495224, -0.3654412627220154, -0.23694975674152374, 0.12336330115795135, 0.36343520879745483, -0.11454498767852783, -0.41169896721839905, -0.04933193325996399, -0.19168895483016968, 0.05531973019242287, -0.11574171483516693, 0.1517811119556427, 0.4218286871910095, 0.13591890037059784, -0.11939302086830139, 0.10268734395503998, 0.11307455599308014, -0.4654294550418854, 0.02145993709564209, 0.07177260518074036, -0.06311038136482239, -0.34618860483169556, -0.08819680660963058, -0.03014976531267166, 0.2487497180700302, 0.09451157599687576, 0.20600953698158264, 0.034039340913295746, -0.17311519384384155, 0.07218873500823975, -0.0024394840002059937, -0.09863868355751038, -0.4135909378528595, 0.1334342360496521, 0.07346150279045105, -0.010110631585121155, 0.3906272351741791, 0.06373294442892075, -0.29337942600250244, 0.06923151016235352, 0.14978158473968506, -0.033689793199300766, -0.14471060037612915, -0.09443895518779755, 0.18455585837364197, -0.08298837393522263, 0.0026108622550964355, -0.24477800726890564, 0.12931999564170837, 0.28015223145484924, -0.3557436168193817, 0.027763979509472847, 0.10325008630752563, 0.07656967639923096, -0.06545478850603104, 0.2241746485233307, 0.41785210371017456, -0.32889431715011597, 0.20321379601955414, 0.09631937742233276, -0.29225975275039673, 0.0688127651810646, -0.07928574830293655, -0.018426917493343353, 0.16511400043964386, 0.2211025208234787, 0.39223387837409973, 0.22438602149486542, 0.13821087777614594, -0.16022241115570068, -0.11941797286272049, 0.3985999822616577, -0.18343088030815125, -0.0815005749464035, 0.15234488248825073, -0.13357822597026825, -0.03313305601477623, 0.09641968458890915, -0.12941595911979675, 0.1355016678571701, 0.247806578874588, -0.14270120859146118, -0.0006219875067472458, 0.027252864092588425, -0.17982809245586395, 0.22227734327316284, 0.1978260725736618, 0.1286401003599167, 0.2018653154373169, 0.5253884196281433, -0.1262487769126892, -0.23405295610427856, -0.22392259538173676, 0.24419988691806793, 0.19612833857536316, -0.29082274436950684, 0.12981024384498596, -0.06877247244119644, 0.024300873279571533, -0.08478270471096039, -0.6795875430107117, -0.3061877489089966, -0.09219739586114883, 0.0006513986736536026, 0.4704108238220215, -0.3309013247489929, 0.07065555453300476, 0.15992720425128937, 0.3159405589103699, 0.07936631888151169, -0.18853281438350677, -0.044373661279678345, -0.34382882714271545, -0.25352972745895386, -0.026064585894346237, 0.4630129635334015, 0.14641384780406952, 0.0704183578491211, 0.3701918423175812, 0.02218712866306305, -0.06104494258761406, -0.42885980010032654, 0.21847772598266602, -0.046798888593912125, 0.07783334702253342, 0.0034067295491695404, 0.12915509939193726, -0.24721172451972961, -0.2504463195800781, 0.3068670630455017, 0.03602494299411774, -0.2057611644268036, 0.3271165192127228, -0.1920834630727768, 0.07442647218704224, -0.17810189723968506, 0.11519238352775574, 0.21282653510570526, -0.5418014526367188, 0.3973288834095001, -0.18551909923553467, 0.003990701399743557, -0.2795965075492859, 0.26352033019065857, 0.09601011872291565, 0.06791480630636215, -0.04049712419509888, 0.05940072610974312, -0.420190691947937, 0.1961018145084381, -0.04033276438713074, -0.18817457556724548, 0.04183948040008545, 0.10971665382385254, 0.15190953016281128, 0.1650312840938568, -0.6058765053749084, -0.012862425297498703, -0.07757609337568283, 0.5512679815292358, -0.3430548310279846, -0.2375439703464508, 0.11498129367828369, 0.18758037686347961, -0.016697581857442856, 0.12442353367805481, -0.1434652954339981, 0.015068236738443375, -0.007390338461846113, 0.20498773455619812, -0.10102507472038269, 0.5279215574264526, 0.13047094643115997, 0.7018246054649353, -0.16545483469963074, -0.14300841093063354, 0.3313238024711609, 0.24199295043945312, 0.07736501097679138, 0.04816427826881409, -0.028412964195013046, -0.11799906194210052, -0.1809873878955841, -0.08216679096221924, -0.006838075816631317, 0.04872722551226616, -0.1101650521159172, -0.027632582932710648, -0.11803238093852997, -0.22682607173919678, -0.15881046652793884, 0.3197794556617737, 0.061006996780633926, -0.11388948559761047, -0.20074138045310974, -0.2847958207130432, -0.017008285969495773, -0.08031131327152252, 0.05849076807498932, 0.03809003904461861, 0.10930879414081573, 0.1145235002040863, -0.015752054750919342, -0.30024394392967224, -0.03336978331208229, 0.07999826222658157, 0.3141288161277771, -0.14442768692970276, 0.05180373787879944, -0.1972084939479828, 0.18430845439434052, -0.477792888879776, 0.754143476486206, 0.4649645686149597, -0.07626231014728546, 0.13590162992477417, -0.06636039912700653, -0.37808120250701904, -0.06195589900016785, 0.0836297869682312, 0.19823554158210754, 0.5710027813911438, 0.10321298241615295, -0.452648401260376, -0.10598324239253998, -0.105292409658432, 0.32241320610046387, 0.014623738825321198, -0.47840365767478943, -0.4063738286495209, -0.49590492248535156, -0.45783278346061707, -0.055918771773576736, 0.09452836960554123, 0.190110445022583, 0.1029646098613739, -0.09873926639556885, 0.27969062328338623, -0.25470149517059326, -0.4795067608356476, 0.09781930595636368, 0.17855167388916016, -0.5503336787223816, 0.14910295605659485, 0.051228247582912445, 0.3193379044532776, 0.5359144806861877, 0.6146833896636963, 0.5909867882728577, -0.21832558512687683, -0.05383621156215668, 0.3960571885108948, 0.17988669872283936, 0.16794729232788086, 0.16721193492412567, 0.20855796337127686, -0.1727023422718048, 0.20228227972984314, 0.22147636115550995, -0.010497953742742538, 0.19086429476737976, -0.12107664346694946, -0.0008764080703258514, 0.29116442799568176, 0.5025100111961365, -0.21722999215126038, 0.15785938501358032, 0.4766679108142853, 0.2834439277648926, -0.046716414391994476, 0.22268667817115784, -0.05963486433029175, 0.9461211562156677, -0.021072767674922943, 0.13255499303340912, 0.5243244171142578, -0.42520174384117126, 0.5806592702865601, -0.31889915466308594, 0.09764829277992249, -0.4774038791656494, 0.34796005487442017, 0.06618040800094604, -0.2101878523826599, -0.08619840443134308, 0.06463319063186646, -0.04271344095468521, -0.19860464334487915, -0.08621233701705933, 0.0907088965177536, -0.11656435579061508, 0.07200548052787781, -0.02068118192255497, 0.00021794810891151428, -0.3245541751384735, -0.0062564946711063385, -0.34523090720176697, -0.1282551884651184, -0.17179197072982788, -0.3250170350074768, 0.04215449094772339, -0.17573438584804535, -0.19179342687129974, 0.2709341049194336, 0.1396908015012741, 0.3771393299102783, 0.27483853697776794, -0.14227493107318878, -0.007455669343471527, -0.44002723693847656, -0.2658153772354126, -0.16497322916984558, -0.038579437881708145, 0.2240043580532074, 0.008436289615929127, -0.12542623281478882, -0.021885355934500694, 0.12433987110853195, 0.14794696867465973, -0.1720810830593109, -0.17584805190563202, 0.14636647701263428, -0.1700340211391449, -0.18596315383911133, -0.14072993397712708, 0.1831437647342682, -0.15189680457115173, -0.031130820512771606, -0.06275986135005951, -0.14789730310440063, 0.08175982534885406, -0.128450408577919, 0.06835408508777618, 0.0026660487055778503, 0.0737185925245285, -0.3161940276622772, 0.08391973376274109, -0.3015912175178528, -0.08405137807130814, 0.26980316638946533, -0.031523898243904114, 0.1463477462530136, 0.453889936208725, 0.4027523100376129, -0.0726219117641449, -0.09563928842544556, -0.056729499250650406, 0.5515410900115967, -0.6051447987556458, 0.29131531715393066, -0.15657973289489746, 0.11268812417984009, 0.09658989310264587, 0.3177768886089325, 0.2544376254081726, 0.0715055763721466, 0.026548020541667938, -0.3478246331214905, -0.2285255789756775, 0.49165666103363037, -0.01851816475391388, 0.012202085927128792, 0.10270688682794571, 0.4117227792739868, -0.07805407792329788, 0.19734099507331848, -0.21987266838550568, 0.3020845651626587, 0.02872294932603836, 0.056454796344041824, -0.46020767092704773, -0.21326866745948792, -0.2015921175479889, 0.25507840514183044, 0.02708866447210312, 0.16798681020736694, -0.07122465968132019, -0.12592589855194092, -0.12761631608009338, 0.10120342671871185, 0.1020171195268631, -0.09683972597122192, -0.06450266391038895, -0.10317181795835495, 0.12111099064350128, 0.12978413701057434, 0.13172724843025208, -0.20999029278755188, -0.053500719368457794, -0.3004149794578552, 0.001518632285296917, -0.18776559829711914, -0.36424314975738525, 0.07901686429977417, -0.0337793305516243, 0.289096474647522, 0.08048452436923981, 0.2754156291484833, -0.023706531152129173, -0.0644058957695961, -0.22985848784446716, 0.10528521239757538, 0.15295793116092682, -0.04675563797354698, 0.4014985263347626, -0.3238120973110199, -0.0387648269534111, -0.26536136865615845, 0.2756448984146118, 0.4593813121318817, -0.22526349127292633, -0.12385664880275726, 0.015261966735124588, 0.16776685416698456, 0.0016633197665214539, -0.21519118547439575, -0.219524085521698, -0.0497763566672802, -0.15386947989463806, -0.07467341423034668, -0.09042417258024216, -0.2073940932750702, -0.17872567474842072, 0.12195633351802826, 0.2947434186935425, 0.2419094741344452, -0.3463655710220337, 0.3792242705821991, -0.27893221378326416, -0.17496024072170258, 0.2887691557407379, 0.1355137974023819, 0.5593863129615784, -0.09074170887470245, -0.07203678041696548, 0.18086543679237366, -0.051142796874046326, 0.08335882425308228, -0.15314646065235138, -0.4281860291957855, -0.17864584922790527, 0.36371302604675293, 0.20608484745025635, -0.24173830449581146, 0.30446845293045044, 0.5248376727104187, 0.4010773003101349, -0.11268854141235352, -0.019808150827884674, 0.22560466825962067, -0.13098521530628204, 0.2223397046327591, -0.509784460067749, -0.1980474591255188, -0.12367966771125793, 0.3870282471179962, -0.12533767521381378, 0.055718131363391876, 0.4912978410720825, 0.17829613387584686, -0.0879884660243988, -0.6212043762207031, -0.11303989589214325, 0.07271526008844376, -0.07147231698036194, -0.23943805694580078, 0.22984164953231812, 0.6816927790641785, -0.4974331557750702, -0.05619513615965843, -0.2158796489238739, 0.488618403673172, 0.27109813690185547, -0.211181640625, -0.4033636748790741, -0.21839219331741333, -0.07209122180938721, -0.09500819444656372, 0.10225372016429901, 0.5172536969184875, 0.3498510420322418, 0.23339632153511047, 0.06629256159067154, -0.14184142649173737, 0.23030202090740204, 0.1463668942451477, 0.13845153152942657, 0.0005853325128555298, -0.23334664106369019, -0.2354167252779007, -0.34432291984558105, -0.18023352324962616, -0.22826533019542694, -0.39212632179260254, -0.3310350179672241, 0.12119007110595703, -0.03121107630431652, -0.1318797618150711, -0.1365348845720291, 0.06309850513935089, -0.07263320684432983, 0.697825014591217, 0.348535418510437, 0.20587176084518433, -0.24650824069976807, -0.2613234221935272, -0.24710185825824738, 0.4796888530254364, -0.4091094136238098, 0.19831618666648865, 0.213055819272995, 0.18338359892368317, 0.10704740881919861, 0.3368978500366211, -0.06520387530326843, 0.5276263356208801, -0.18086348474025726, -0.2147907018661499, -0.38511261343955994, 0.036826085299253464, 0.2935442626476288, -0.16676665842533112, -0.18446195125579834, -0.1514570116996765, 0.33867397904396057, -0.1768074631690979, 0.11256475001573563, -0.11822780966758728, 0.023272216320037842, 0.05392254889011383, 0.08557070791721344, 0.32998400926589966, 0.08187326788902283, 0.3291725516319275, 0.028654277324676514, -0.14292407035827637, -0.10798332840204239, -0.25462934374809265, -0.17260955274105072, 0.38462361693382263, 0.0581517331302166, 0.4116555452346802, -0.07876633107662201, 0.07952147722244263, -0.1733226627111435, 0.10523428022861481, -0.43482983112335205, -0.09791163355112076, 0.12186194211244583, -0.2352115958929062, 0.024975433945655823, 0.10284894704818726, -0.01711175963282585, 0.11467621475458145, 0.08856968581676483, 0.1137048527598381, -0.49449414014816284, -0.14144745469093323, 0.46971988677978516, -0.3657931983470917, -0.2979661226272583, 0.49709993600845337, 0.10345202684402466, 0.3452361226081848, -0.11850852519273758, -0.5068210363388062, 0.0891440212726593, 0.18964678049087524, 0.05866396054625511, -0.3722427785396576, 0.2245829701423645, 0.048214126378297806, -0.06096302345395088, 0.05195152759552002, 0.22357182204723358, 0.18367184698581696, -0.36517152190208435, -0.031713053584098816, -0.12904897332191467 ]
https://github.com/huggingface/datasets/issues/2181
Thanks @albertvillanova for your explanation, it is helpful to know (maybe add to docs?)! However, the problem I described above happened when I was dealing with jsonl files 😿 Although I did not thoroughly inspect, I suspect the cause was the one extremely long document in my case.
Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries)
Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project. When loading a huge json file of 500GB, pyarrow complains as follows: ``` Traceback (most recent call last): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 531, in incomplete_dir yield tmp_dir File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 1027, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/app/.cache/huggingface/modules/datasets_modules/datasets/json/9498524fd296a6cca99c66d6c5be507d1c0991f5a814e535b507f4a66096a641/json.py", line 83, in _generate_tables parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 247, in pyarrow._json.read_json File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` When using only a small portion of the sample file, say first 100 lines, it works perfectly well.. I see that it is the error from pyarrow, but could you give me a hint or possible solutions? #369 describes the same error and #372 claims to have fixed the issue, but I have no clue why I am still getting this one. Thanks in advance!
48
Error when loading a HUGE json file (pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries) Hi, thanks for the great library. I have used the brilliant library for a couple of small projects, and now using it for a fairly big project. When loading a huge json file of 500GB, pyarrow complains as follows: ``` Traceback (most recent call last): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 531, in incomplete_dir yield tmp_dir File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 573, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 650, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/datasets/builder.py", line 1027, in _prepare_split for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose): File "/home/user/.pyenv/versions/3.7.9/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/app/.cache/huggingface/modules/datasets_modules/datasets/json/9498524fd296a6cca99c66d6c5be507d1c0991f5a814e535b507f4a66096a641/json.py", line 83, in _generate_tables parse_options=self.config.pa_parse_options, File "pyarrow/_json.pyx", line 247, in pyarrow._json.read_json File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?) ``` When using only a small portion of the sample file, say first 100 lines, it works perfectly well.. I see that it is the error from pyarrow, but could you give me a hint or possible solutions? #369 describes the same error and #372 claims to have fixed the issue, but I have no clue why I am still getting this one. Thanks in advance! Thanks @albertvillanova for your explanation, it is helpful to know (maybe add to docs?)! However, the problem I described above happened when I was dealing with jsonl files 😿 Although I did not thoroughly inspect, I suspect the cause was the one extremely long document in my case.
[ 0.016557134687900543, 0.012686491012573242, -0.007510840892791748, 0.340938001871109, 0.16045337915420532, -0.2647136151790619, 0.1936325877904892, 0.585946798324585, -0.1621612310409546, -0.08150680363178253, 0.165473073720932, 0.1441625952720642, -0.015083150938153267, 0.014561839401721954, -0.12952116131782532, -0.19119158387184143, 0.03336812183260918, 0.07827459275722504, -0.08155374228954315, 0.13550716638565063, -0.036886993795633316, 0.23287232220172882, -0.09352752566337585, 0.2323910892009735, -0.08702811598777771, -0.078151173889637, 0.19806386530399323, 0.3374811112880707, -0.3348849415779114, -0.4495867192745209, 0.16122466325759888, -0.2951851189136505, 0.00625833123922348, 0.3340713381767273, -0.00011563083535293117, 0.04710572957992554, 0.2495899200439453, 0.10917901247739792, 0.018743246793746948, -0.21912096440792084, 0.28083518147468567, -0.3987070620059967, 0.22801175713539124, -0.16741758584976196, 0.12958505749702454, -0.4462142884731293, -0.3999216854572296, 0.3737812936306, 0.42772966623306274, -0.1255548894405365, 0.16510146856307983, 0.09121091663837433, 0.2657487690448761, 0.2669147551059723, 0.43684399127960205, -0.06525061279535294, 0.027398288249969482, 0.5041723251342773, 0.3052016496658325, -0.2382044792175293, -0.335480660200119, -0.13703159987926483, -0.24959173798561096, 0.13811476528644562, 0.37793204188346863, -0.1172008365392685, 0.0762815773487091, 0.058968108147382736, -0.0799434632062912, 0.037721555680036545, 0.22632096707820892, -0.40860217809677124, -0.10335905849933624, -0.07818765938282013, -0.08564877510070801, -0.18307429552078247, 0.30791807174682617, 0.38823094964027405, -0.21039502322673798, 0.06983030587434769, -0.19144491851329803, -0.10000123083591461, -0.19912081956863403, 0.17865115404129028, -0.35803136229515076, -0.1259491741657257, -0.0024533364921808243, 0.3322299122810364, 0.23105305433273315, -0.007611139677464962, -0.03557560220360756, 0.03110630065202713, -0.27349409461021423, -0.05659797787666321, -0.20946265757083893, 0.016639187932014465, 0.001514500007033348, -0.31718331575393677, 0.19064874947071075, 0.22608867287635803, 0.1960858255624771, -0.0655946433544159, 0.24631495773792267, 0.2574920058250427, 0.6111612319946289, 0.059475723654031754, -0.35225409269332886, -0.16774725914001465, 0.20540012419223785, 0.23781505227088928, -0.01948721706867218, 0.060987699776887894, -0.05920731648802757, -0.5538620948791504, 0.05948247015476227, -0.27982696890830994, 0.25977540016174316, -0.21602407097816467, -0.21031984686851501, 0.13332229852676392, -0.7950461506843567, 0.05001157149672508, 0.16625311970710754, 0.2496994137763977, 0.027215834707021713, 0.2363472580909729, 0.048551835119724274, 0.15819595754146576, 0.00895940512418747, -0.1194203794002533, -0.007867541164159775, 0.1263681948184967, -0.152511864900589, 0.03859640657901764, 0.15799176692962646, -0.1335815191268921, -0.006415821611881256, 0.1193346232175827, 0.21734745800495148, -0.21163922548294067, 0.18620648980140686, 0.016617346554994583, 0.04777029529213905, 0.32882145047187805, -0.051676537841558456, 0.1116405725479126, -0.05485987663269043, -0.012655116617679596, -0.2687698006629944, 0.4798906147480011, -0.06268774718046188, -0.3448125123977661, -0.17427487671375275, 0.1004122644662857, -0.26061367988586426, 0.2655538320541382, 0.004983406513929367, 0.03751701861619949, 0.15041927993297577, -0.36913180351257324, 0.21616050601005554, -0.13115130364894867, 0.17783097922801971, -0.3457719385623932, 0.1031695008277893, -0.08137425780296326, -0.686922550201416, 0.017364777624607086, 0.2560485303401947, 0.17541708052158356, -0.09443646669387817, 0.5446499586105347, -0.41504523158073425, 0.14476221799850464, -0.045954056084156036, 0.16156601905822754, 0.14491739869117737, 0.16062840819358826, -0.6060853600502014, 0.37282344698905945, -0.2745344638824463, 0.05764264613389969, 0.030735092237591743, -0.01460561528801918, -0.12643839418888092, -0.02412503771483898, -0.030100323259830475, 0.35156863927841187, 0.08327783644199371, 0.230947345495224, -0.3654412627220154, -0.23694975674152374, 0.12336330115795135, 0.36343520879745483, -0.11454498767852783, -0.41169896721839905, -0.04933193325996399, -0.19168895483016968, 0.05531973019242287, -0.11574171483516693, 0.1517811119556427, 0.4218286871910095, 0.13591890037059784, -0.11939302086830139, 0.10268734395503998, 0.11307455599308014, -0.4654294550418854, 0.02145993709564209, 0.07177260518074036, -0.06311038136482239, -0.34618860483169556, -0.08819680660963058, -0.03014976531267166, 0.2487497180700302, 0.09451157599687576, 0.20600953698158264, 0.034039340913295746, -0.17311519384384155, 0.07218873500823975, -0.0024394840002059937, -0.09863868355751038, -0.4135909378528595, 0.1334342360496521, 0.07346150279045105, -0.010110631585121155, 0.3906272351741791, 0.06373294442892075, -0.29337942600250244, 0.06923151016235352, 0.14978158473968506, -0.033689793199300766, -0.14471060037612915, -0.09443895518779755, 0.18455585837364197, -0.08298837393522263, 0.0026108622550964355, -0.24477800726890564, 0.12931999564170837, 0.28015223145484924, -0.3557436168193817, 0.027763979509472847, 0.10325008630752563, 0.07656967639923096, -0.06545478850603104, 0.2241746485233307, 0.41785210371017456, -0.32889431715011597, 0.20321379601955414, 0.09631937742233276, -0.29225975275039673, 0.0688127651810646, -0.07928574830293655, -0.018426917493343353, 0.16511400043964386, 0.2211025208234787, 0.39223387837409973, 0.22438602149486542, 0.13821087777614594, -0.16022241115570068, -0.11941797286272049, 0.3985999822616577, -0.18343088030815125, -0.0815005749464035, 0.15234488248825073, -0.13357822597026825, -0.03313305601477623, 0.09641968458890915, -0.12941595911979675, 0.1355016678571701, 0.247806578874588, -0.14270120859146118, -0.0006219875067472458, 0.027252864092588425, -0.17982809245586395, 0.22227734327316284, 0.1978260725736618, 0.1286401003599167, 0.2018653154373169, 0.5253884196281433, -0.1262487769126892, -0.23405295610427856, -0.22392259538173676, 0.24419988691806793, 0.19612833857536316, -0.29082274436950684, 0.12981024384498596, -0.06877247244119644, 0.024300873279571533, -0.08478270471096039, -0.6795875430107117, -0.3061877489089966, -0.09219739586114883, 0.0006513986736536026, 0.4704108238220215, -0.3309013247489929, 0.07065555453300476, 0.15992720425128937, 0.3159405589103699, 0.07936631888151169, -0.18853281438350677, -0.044373661279678345, -0.34382882714271545, -0.25352972745895386, -0.026064585894346237, 0.4630129635334015, 0.14641384780406952, 0.0704183578491211, 0.3701918423175812, 0.02218712866306305, -0.06104494258761406, -0.42885980010032654, 0.21847772598266602, -0.046798888593912125, 0.07783334702253342, 0.0034067295491695404, 0.12915509939193726, -0.24721172451972961, -0.2504463195800781, 0.3068670630455017, 0.03602494299411774, -0.2057611644268036, 0.3271165192127228, -0.1920834630727768, 0.07442647218704224, -0.17810189723968506, 0.11519238352775574, 0.21282653510570526, -0.5418014526367188, 0.3973288834095001, -0.18551909923553467, 0.003990701399743557, -0.2795965075492859, 0.26352033019065857, 0.09601011872291565, 0.06791480630636215, -0.04049712419509888, 0.05940072610974312, -0.420190691947937, 0.1961018145084381, -0.04033276438713074, -0.18817457556724548, 0.04183948040008545, 0.10971665382385254, 0.15190953016281128, 0.1650312840938568, -0.6058765053749084, -0.012862425297498703, -0.07757609337568283, 0.5512679815292358, -0.3430548310279846, -0.2375439703464508, 0.11498129367828369, 0.18758037686347961, -0.016697581857442856, 0.12442353367805481, -0.1434652954339981, 0.015068236738443375, -0.007390338461846113, 0.20498773455619812, -0.10102507472038269, 0.5279215574264526, 0.13047094643115997, 0.7018246054649353, -0.16545483469963074, -0.14300841093063354, 0.3313238024711609, 0.24199295043945312, 0.07736501097679138, 0.04816427826881409, -0.028412964195013046, -0.11799906194210052, -0.1809873878955841, -0.08216679096221924, -0.006838075816631317, 0.04872722551226616, -0.1101650521159172, -0.027632582932710648, -0.11803238093852997, -0.22682607173919678, -0.15881046652793884, 0.3197794556617737, 0.061006996780633926, -0.11388948559761047, -0.20074138045310974, -0.2847958207130432, -0.017008285969495773, -0.08031131327152252, 0.05849076807498932, 0.03809003904461861, 0.10930879414081573, 0.1145235002040863, -0.015752054750919342, -0.30024394392967224, -0.03336978331208229, 0.07999826222658157, 0.3141288161277771, -0.14442768692970276, 0.05180373787879944, -0.1972084939479828, 0.18430845439434052, -0.477792888879776, 0.754143476486206, 0.4649645686149597, -0.07626231014728546, 0.13590162992477417, -0.06636039912700653, -0.37808120250701904, -0.06195589900016785, 0.0836297869682312, 0.19823554158210754, 0.5710027813911438, 0.10321298241615295, -0.452648401260376, -0.10598324239253998, -0.105292409658432, 0.32241320610046387, 0.014623738825321198, -0.47840365767478943, -0.4063738286495209, -0.49590492248535156, -0.45783278346061707, -0.055918771773576736, 0.09452836960554123, 0.190110445022583, 0.1029646098613739, -0.09873926639556885, 0.27969062328338623, -0.25470149517059326, -0.4795067608356476, 0.09781930595636368, 0.17855167388916016, -0.5503336787223816, 0.14910295605659485, 0.051228247582912445, 0.3193379044532776, 0.5359144806861877, 0.6146833896636963, 0.5909867882728577, -0.21832558512687683, -0.05383621156215668, 0.3960571885108948, 0.17988669872283936, 0.16794729232788086, 0.16721193492412567, 0.20855796337127686, -0.1727023422718048, 0.20228227972984314, 0.22147636115550995, -0.010497953742742538, 0.19086429476737976, -0.12107664346694946, -0.0008764080703258514, 0.29116442799568176, 0.5025100111961365, -0.21722999215126038, 0.15785938501358032, 0.4766679108142853, 0.2834439277648926, -0.046716414391994476, 0.22268667817115784, -0.05963486433029175, 0.9461211562156677, -0.021072767674922943, 0.13255499303340912, 0.5243244171142578, -0.42520174384117126, 0.5806592702865601, -0.31889915466308594, 0.09764829277992249, -0.4774038791656494, 0.34796005487442017, 0.06618040800094604, -0.2101878523826599, -0.08619840443134308, 0.06463319063186646, -0.04271344095468521, -0.19860464334487915, -0.08621233701705933, 0.0907088965177536, -0.11656435579061508, 0.07200548052787781, -0.02068118192255497, 0.00021794810891151428, -0.3245541751384735, -0.0062564946711063385, -0.34523090720176697, -0.1282551884651184, -0.17179197072982788, -0.3250170350074768, 0.04215449094772339, -0.17573438584804535, -0.19179342687129974, 0.2709341049194336, 0.1396908015012741, 0.3771393299102783, 0.27483853697776794, -0.14227493107318878, -0.007455669343471527, -0.44002723693847656, -0.2658153772354126, -0.16497322916984558, -0.038579437881708145, 0.2240043580532074, 0.008436289615929127, -0.12542623281478882, -0.021885355934500694, 0.12433987110853195, 0.14794696867465973, -0.1720810830593109, -0.17584805190563202, 0.14636647701263428, -0.1700340211391449, -0.18596315383911133, -0.14072993397712708, 0.1831437647342682, -0.15189680457115173, -0.031130820512771606, -0.06275986135005951, -0.14789730310440063, 0.08175982534885406, -0.128450408577919, 0.06835408508777618, 0.0026660487055778503, 0.0737185925245285, -0.3161940276622772, 0.08391973376274109, -0.3015912175178528, -0.08405137807130814, 0.26980316638946533, -0.031523898243904114, 0.1463477462530136, 0.453889936208725, 0.4027523100376129, -0.0726219117641449, -0.09563928842544556, -0.056729499250650406, 0.5515410900115967, -0.6051447987556458, 0.29131531715393066, -0.15657973289489746, 0.11268812417984009, 0.09658989310264587, 0.3177768886089325, 0.2544376254081726, 0.0715055763721466, 0.026548020541667938, -0.3478246331214905, -0.2285255789756775, 0.49165666103363037, -0.01851816475391388, 0.012202085927128792, 0.10270688682794571, 0.4117227792739868, -0.07805407792329788, 0.19734099507331848, -0.21987266838550568, 0.3020845651626587, 0.02872294932603836, 0.056454796344041824, -0.46020767092704773, -0.21326866745948792, -0.2015921175479889, 0.25507840514183044, 0.02708866447210312, 0.16798681020736694, -0.07122465968132019, -0.12592589855194092, -0.12761631608009338, 0.10120342671871185, 0.1020171195268631, -0.09683972597122192, -0.06450266391038895, -0.10317181795835495, 0.12111099064350128, 0.12978413701057434, 0.13172724843025208, -0.20999029278755188, -0.053500719368457794, -0.3004149794578552, 0.001518632285296917, -0.18776559829711914, -0.36424314975738525, 0.07901686429977417, -0.0337793305516243, 0.289096474647522, 0.08048452436923981, 0.2754156291484833, -0.023706531152129173, -0.0644058957695961, -0.22985848784446716, 0.10528521239757538, 0.15295793116092682, -0.04675563797354698, 0.4014985263347626, -0.3238120973110199, -0.0387648269534111, -0.26536136865615845, 0.2756448984146118, 0.4593813121318817, -0.22526349127292633, -0.12385664880275726, 0.015261966735124588, 0.16776685416698456, 0.0016633197665214539, -0.21519118547439575, -0.219524085521698, -0.0497763566672802, -0.15386947989463806, -0.07467341423034668, -0.09042417258024216, -0.2073940932750702, -0.17872567474842072, 0.12195633351802826, 0.2947434186935425, 0.2419094741344452, -0.3463655710220337, 0.3792242705821991, -0.27893221378326416, -0.17496024072170258, 0.2887691557407379, 0.1355137974023819, 0.5593863129615784, -0.09074170887470245, -0.07203678041696548, 0.18086543679237366, -0.051142796874046326, 0.08335882425308228, -0.15314646065235138, -0.4281860291957855, -0.17864584922790527, 0.36371302604675293, 0.20608484745025635, -0.24173830449581146, 0.30446845293045044, 0.5248376727104187, 0.4010773003101349, -0.11268854141235352, -0.019808150827884674, 0.22560466825962067, -0.13098521530628204, 0.2223397046327591, -0.509784460067749, -0.1980474591255188, -0.12367966771125793, 0.3870282471179962, -0.12533767521381378, 0.055718131363391876, 0.4912978410720825, 0.17829613387584686, -0.0879884660243988, -0.6212043762207031, -0.11303989589214325, 0.07271526008844376, -0.07147231698036194, -0.23943805694580078, 0.22984164953231812, 0.6816927790641785, -0.4974331557750702, -0.05619513615965843, -0.2158796489238739, 0.488618403673172, 0.27109813690185547, -0.211181640625, -0.4033636748790741, -0.21839219331741333, -0.07209122180938721, -0.09500819444656372, 0.10225372016429901, 0.5172536969184875, 0.3498510420322418, 0.23339632153511047, 0.06629256159067154, -0.14184142649173737, 0.23030202090740204, 0.1463668942451477, 0.13845153152942657, 0.0005853325128555298, -0.23334664106369019, -0.2354167252779007, -0.34432291984558105, -0.18023352324962616, -0.22826533019542694, -0.39212632179260254, -0.3310350179672241, 0.12119007110595703, -0.03121107630431652, -0.1318797618150711, -0.1365348845720291, 0.06309850513935089, -0.07263320684432983, 0.697825014591217, 0.348535418510437, 0.20587176084518433, -0.24650824069976807, -0.2613234221935272, -0.24710185825824738, 0.4796888530254364, -0.4091094136238098, 0.19831618666648865, 0.213055819272995, 0.18338359892368317, 0.10704740881919861, 0.3368978500366211, -0.06520387530326843, 0.5276263356208801, -0.18086348474025726, -0.2147907018661499, -0.38511261343955994, 0.036826085299253464, 0.2935442626476288, -0.16676665842533112, -0.18446195125579834, -0.1514570116996765, 0.33867397904396057, -0.1768074631690979, 0.11256475001573563, -0.11822780966758728, 0.023272216320037842, 0.05392254889011383, 0.08557070791721344, 0.32998400926589966, 0.08187326788902283, 0.3291725516319275, 0.028654277324676514, -0.14292407035827637, -0.10798332840204239, -0.25462934374809265, -0.17260955274105072, 0.38462361693382263, 0.0581517331302166, 0.4116555452346802, -0.07876633107662201, 0.07952147722244263, -0.1733226627111435, 0.10523428022861481, -0.43482983112335205, -0.09791163355112076, 0.12186194211244583, -0.2352115958929062, 0.024975433945655823, 0.10284894704818726, -0.01711175963282585, 0.11467621475458145, 0.08856968581676483, 0.1137048527598381, -0.49449414014816284, -0.14144745469093323, 0.46971988677978516, -0.3657931983470917, -0.2979661226272583, 0.49709993600845337, 0.10345202684402466, 0.3452361226081848, -0.11850852519273758, -0.5068210363388062, 0.0891440212726593, 0.18964678049087524, 0.05866396054625511, -0.3722427785396576, 0.2245829701423645, 0.048214126378297806, -0.06096302345395088, 0.05195152759552002, 0.22357182204723358, 0.18367184698581696, -0.36517152190208435, -0.031713053584098816, -0.12904897332191467 ]
https://github.com/huggingface/datasets/issues/2176
Hi @nelson-liu! Here is what I do to convert a string to class label: ```python from datasets import load_dataset, features dset = load_dataset(...) col_name = "the string column name" class_names = dset.unique(col_name) class_feature = features.ClassLabel(names=sorted(class_names)) dset = dset.map(lambda str_value: {col_name: class_feature.str2int(str_value)}, input_columns=col_name) dset = dset.cast(features.Features({ ... col_name: class_feature }) ```
Converting a Value to a ClassLabel
Hi! In the docs for `cast`, it's noted that `For non-trivial conversion, e.g. string <-> ClassLabel you should use map() to update the Dataset.` Would it be possible to have an example that demonstrates such a string <-> ClassLabel conversion using `map`? Thanks!
50
Converting a Value to a ClassLabel Hi! In the docs for `cast`, it's noted that `For non-trivial conversion, e.g. string <-> ClassLabel you should use map() to update the Dataset.` Would it be possible to have an example that demonstrates such a string <-> ClassLabel conversion using `map`? Thanks! Hi @nelson-liu! Here is what I do to convert a string to class label: ```python from datasets import load_dataset, features dset = load_dataset(...) col_name = "the string column name" class_names = dset.unique(col_name) class_feature = features.ClassLabel(names=sorted(class_names)) dset = dset.map(lambda str_value: {col_name: class_feature.str2int(str_value)}, input_columns=col_name) dset = dset.cast(features.Features({ ... col_name: class_feature }) ```
[ -0.025565512478351593, -0.1936044991016388, 0.05003340542316437, 0.059382788836956024, 0.6273636817932129, 0.21152476966381073, 0.28297609090805054, 0.0898774266242981, 0.07599520683288574, -0.0568673238158226, 0.10290469974279404, 0.6814893484115601, -0.033919401466846466, 0.11583302170038223, -0.0638299360871315, -0.20428064465522766, 0.17508795857429504, 0.1827312707901001, -0.10028733313083649, -0.05688801035284996, -0.31992989778518677, -0.022135592997074127, -0.47538214921951294, 0.11780412495136261, -0.018353290855884552, -0.013162331655621529, -0.05213917791843414, -0.1745004504919052, -0.009514808654785156, -0.26160728931427, -0.0025989413261413574, -0.22669115662574768, -0.023528825491666794, 0.4040016233921051, -0.00012303743278607726, -0.32528406381607056, 0.17134888470172882, 0.1276387870311737, -0.10272818058729172, -0.0012638717889785767, -0.54469895362854, 0.15091119706630707, -0.04939442500472069, -0.3124808073043823, -0.06794879585504532, 0.45851919054985046, 0.010206639766693115, -0.35181915760040283, -0.07972364127635956, -0.0385744646191597, 0.06439641863107681, -0.2685541808605194, 0.043348804116249084, 0.15026184916496277, 0.11731263995170593, -0.0639190524816513, 0.19799429178237915, 0.1961917132139206, 0.5107662081718445, 0.38127419352531433, -0.02331859990954399, 0.23102149367332458, -0.24206487834453583, -0.44797325134277344, 0.27097225189208984, 0.14096222817897797, 0.014754559844732285, -0.34414491057395935, 0.21418902277946472, 0.0697050392627716, 0.5089136958122253, -0.2787735164165497, -0.24061860144138336, -0.028924748301506042, 0.2034195512533188, -0.19264942407608032, -0.13298173248767853, 0.04531519114971161, 0.15560269355773926, 0.05250953882932663, -0.5872041583061218, -0.09474506974220276, 0.009668916463851929, 0.006449215114116669, -0.04198313504457474, 0.35773706436157227, -0.0681060403585434, 0.20421729981899261, -0.18360276520252228, -0.33018171787261963, -0.06566909700632095, -0.1423177868127823, 0.05342540517449379, 0.45116865634918213, 0.028500176966190338, -0.16225728392601013, -0.18035587668418884, 0.3080085813999176, -0.39234688878059387, -0.46232870221138, -0.08256177604198456, 0.20446094870567322, -0.15352988243103027, 0.23604997992515564, 0.130484476685524, -0.07188821583986282, 0.6325415372848511, 0.2619616985321045, -0.03778748959302902, -0.3972044587135315, -0.3506869673728943, 0.047099098563194275, -0.19645988941192627, -0.09705153107643127, 0.3145187497138977, 0.2756206691265106, -0.08591786026954651, -0.20861370861530304, 0.06032869964838028, -0.06295634061098099, -0.6144177913665771, 0.16920064389705658, 0.05773511528968811, 0.10276829451322556, 0.15967577695846558, 0.15300899744033813, 0.3831624388694763, 0.012739770114421844, 0.33728763461112976, -0.515131950378418, 0.025672391057014465, 0.16876249015331268, -0.05947832390666008, -0.25461816787719727, -0.20466862618923187, 0.13036829233169556, -0.16579470038414001, 0.11046597361564636, -0.13947203755378723, -0.2411889284849167, -0.19137009978294373, 0.3533143103122711, 0.1423947662115097, 0.009194058366119862, -0.389941543340683, 0.09196250140666962, 0.3621698319911957, -0.3446407914161682, -0.36185121536254883, 0.4646987020969391, -0.3172388970851898, 0.10521974414587021, 0.24306218326091766, 0.06260780990123749, 0.3431929647922516, -0.23441140353679657, -0.015706930309534073, 0.12147191166877747, 0.22058431804180145, -0.3232608437538147, 0.23051559925079346, -0.3888460397720337, -0.2717776894569397, -0.1573466956615448, 0.10969267785549164, 0.14669886231422424, -0.5220817923545837, -0.17227813601493835, 0.22047632932662964, 0.14506027102470398, -0.22466778755187988, -0.3032838702201843, -0.08442158997058868, 0.4340302050113678, 0.17556925117969513, 0.06797264516353607, 0.7431443929672241, -0.404096782207489, -0.11803186684846878, 0.28166306018829346, -0.04422491788864136, -0.5518221855163574, -0.18325889110565186, 0.43644991517066956, 0.1886938065290451, -0.17592522501945496, 0.12854993343353271, 0.18448999524116516, -0.2581251561641693, 0.12203529477119446, 0.08490343391895294, 0.03747532516717911, 0.11888715624809265, -0.11323259770870209, -0.2043042778968811, 0.42077070474624634, 0.12273639440536499, 0.4091437757015228, -0.028112392872571945, -0.28784677386283875, 0.34989914298057556, 0.07334364950656891, -0.033109042793512344, 0.05564487352967262, -0.1548641324043274, -0.23348423838615417, 0.1583823710680008, 0.04183070361614227, 0.33167192339897156, -0.03884735330939293, 0.24973703920841217, -0.29512447118759155, -0.03208452835679054, -0.025787122547626495, 0.23774296045303345, 0.27432841062545776, 0.045092616230249405, -0.2332090437412262, 0.05765707790851593, -0.3211953639984131, 0.04450877010822296, -0.2223040759563446, -0.14090125262737274, 0.22882983088493347, -0.044354476034641266, -0.28131282329559326, 0.1206277534365654, -0.13390898704528809, -0.5128309726715088, -0.11441946029663086, 0.22410976886749268, 0.01260165125131607, -0.1962089240550995, 0.33646705746650696, 0.02323232591152191, -0.1875057816505432, -0.18457207083702087, 0.24070313572883606, 0.1928691864013672, -0.23624612390995026, 0.2976701259613037, 0.1409195065498352, 0.1962011754512787, -0.28536075353622437, -0.30964434146881104, 0.24767690896987915, -0.056009139865636826, 0.29048606753349304, -0.09881052374839783, 0.2705560326576233, -0.028501760214567184, 0.011213131248950958, -0.09030725061893463, 0.1164749264717102, -0.4181661009788513, -0.2635626494884491, 0.17995287477970123, 0.02611577697098255, -0.24781398475170135, 0.23600764572620392, 0.12819883227348328, -0.5026359558105469, 0.2705971300601959, 0.11627344787120819, -0.2514474391937256, 0.31458473205566406, -0.0029369425028562546, 0.15607839822769165, 0.12078801542520523, -0.045590054243803024, 0.18692618608474731, 0.11836087703704834, -0.01625519059598446, 0.14889663457870483, 0.30972999334335327, 0.08467795699834824, 0.15365296602249146, -0.38009199500083923, 0.002405792474746704, 0.18142859637737274, 0.2393164038658142, -0.06281045079231262, 0.1377517282962799, 0.013924697414040565, -0.3364921808242798, 0.03622257709503174, 0.017507784068584442, 0.225125253200531, -0.18677063286304474, -0.10591547191143036, 0.16858045756816864, -0.364071249961853, -0.18759603798389435, -0.014083023183047771, 0.06448730081319809, 0.12669983506202698, -0.20370228588581085, -0.08952030539512634, 0.1548200249671936, -0.449660062789917, 0.09892494976520538, -0.26491183042526245, -0.14202311635017395, -0.07256167382001877, -0.007744461297988892, -0.07150445878505707, 0.06439202278852463, -0.14256100356578827, 0.18503186106681824, -0.10481531172990799, -0.5802627801895142, -0.0710165724158287, -0.283905565738678, -0.1934555470943451, 0.3171656131744385, -0.21484427154064178, -0.4116515815258026, 0.1804639846086502, 0.14382965862751007, -0.3101681172847748, -0.06120283529162407, 0.1244388222694397, 0.055994682013988495, -0.15478257834911346, -0.16529740393161774, -0.06110483035445213, -0.000622948631644249, -0.013155166059732437, 0.1271001100540161, -0.14389283955097198, -0.11166659742593765, -0.2295336127281189, 0.13734517991542816, 0.48097118735313416, 0.28634199500083923, 0.1686646044254303, 0.10298074781894684, -0.11499051004648209, 0.07882361859083176, 0.0629110261797905, 0.018894806504249573, 0.09586198627948761, -0.05023227632045746, -0.12774956226348877, -0.04057322442531586, 0.009583510458469391, -0.04689827188849449, -0.09863747656345367, 0.294281542301178, 0.02593645080924034, 0.1530187427997589, 0.2664951980113983, 0.39721089601516724, 0.01809653267264366, -0.047827932983636856, -0.3397720158100128, -0.08467502146959305, 0.0018228758126497269, -0.0003132671117782593, 0.2170872539281845, 0.41922837495803833, 0.0019847452640533447, 0.11878448724746704, -0.12663277983665466, -0.3776562809944153, -0.20866771042346954, -0.21027405560016632, -0.10635209083557129, -0.007130235433578491, -0.02265755832195282, -0.10157867521047592, -0.18954375386238098, -0.3195207417011261, -0.08826257288455963, 0.0029035769402980804, -0.16536790132522583, 0.1434972733259201, 0.10684032738208771, -0.4341829717159271, -0.19111202657222748, 0.14270488917827606, -0.27883246541023254, -0.0014223270118236542, -0.2721329629421234, -0.12277866899967194, -0.19914951920509338, -0.11615348607301712, 0.003639906644821167, -0.3099350333213806, -0.029405903071165085, -0.11333777755498886, -0.26002785563468933, -0.19792792201042175, 0.1056283712387085, 0.31413066387176514, 0.24742120504379272, -0.012400709092617035, -0.10050873458385468, -0.025974314659833908, 0.12257726490497589, 0.07892145216464996, 0.5989871025085449, -0.37497833371162415, 0.5384547710418701, 0.3970617651939392, 0.10231004655361176, 0.022093817591667175, 0.09630578756332397, -0.5713663101196289, 0.22167198359966278, 0.5073208212852478, 0.20087599754333496, -0.046851277351379395, -0.022867560386657715, 0.2609042823314667, 0.14103427529335022, -0.07251857966184616, 0.2324441373348236, 0.11651428043842316, 0.009354852139949799, -0.16062641143798828, 0.10019561648368835, 0.3373537063598633, 0.11288059502840042, 0.2035350799560547, 0.1686590015888214, -0.22969754040241241, 0.2530898451805115, 0.2245434820652008, -0.07821890711784363, -0.024543652310967445, 0.2291565090417862, 0.054890766739845276, -0.2350262850522995, -0.02526678517460823, -0.537361204624176, 0.402756929397583, -0.13612227141857147, -0.30112290382385254, 0.02737230435013771, 0.22378869354724884, 0.6616909503936768, 0.08045677840709686, 0.22983160614967346, -0.21397975087165833, 0.004138913005590439, 0.047727927565574646, -0.25155189633369446, -0.02596452087163925, 0.1131284236907959, 0.22703203558921814, -0.41780635714530945, -0.26657217741012573, 0.7585986256599426, -0.02919018641114235, -0.38578665256500244, 0.17732292413711548, 0.3100292980670929, -0.5557981729507446, 0.3557276725769043, 0.5645317435264587, 1.0125460624694824, -0.34312936663627625, 0.1454717516899109, -0.24841168522834778, -0.1621374785900116, 0.567970871925354, 0.2519029974937439, 0.08802762627601624, -0.5652979612350464, 0.09169851243495941, -0.17936335504055023, -0.09060676395893097, -0.008955273777246475, 0.5965068936347961, -0.6097903251647949, 0.21075387299060822, -0.2679898142814636, 0.19739431142807007, 0.21966198086738586, -0.22790402173995972, 0.18472252786159515, -0.24315355718135834, 0.02568507194519043, 0.19456888735294342, 0.07894493639469147, -0.2898961901664734, 0.010671857744455338, 0.14115776121616364, -0.23791176080703735, -0.05334412306547165, -0.20617686212062836, 0.06508877873420715, -0.04821188747882843, -0.08135805279016495, 0.23299391567707062, 0.04852142930030823, 0.37476810812950134, 0.6419817209243774, 0.16099324822425842, 0.1660032570362091, -0.0272732675075531, 0.04876963794231415, 0.027218012139201164, 0.2853083908557892, 0.2338417023420334, 0.17865566909313202, 0.27279093861579895, 0.40908873081207275, -0.038571566343307495, 0.36949193477630615, -0.20364901423454285, -0.052925433963537216, -0.189977765083313, 0.016820687800645828, 0.0808301642537117, -0.53545081615448, -0.2883882522583008, 0.16591964662075043, -0.03949348255991936, -0.033710043877363205, 0.02462628111243248, -0.17963746190071106, -0.16750986874103546, 0.13863921165466309, 0.04475928470492363, -0.31766027212142944, 0.3458249568939209, 0.36151063442230225, -0.1783430278301239, 0.10188782215118408, 0.17028369009494781, -0.044767122715711594, 0.09220734238624573, -0.07734924554824829, 0.4468332529067993, 0.08180776238441467, -0.09765326976776123, 0.04167895019054413, -0.09954378008842468, -0.2006271332502365, 0.16193971037864685, 0.15827178955078125, 0.07870012521743774, 0.3553594946861267, -0.26564252376556396, -0.12286993861198425, -0.28672564029693604, -0.05272133648395538, 0.42716020345687866, 0.01772242784500122, -0.21631845831871033, 0.02495446801185608, 0.0018834024667739868, -0.09715424478054047, -0.16487056016921997, 0.11446231603622437, 0.04440334439277649, 0.3307688534259796, 0.2599432170391083, 0.5231441259384155, -0.24343439936637878, -0.03489215672016144, 0.02683395892381668, 0.07516548782587051, 0.32604217529296875, -0.0992770567536354, -0.018600139766931534, 0.15960203111171722, 0.2455035001039505, 0.15229012072086334, -0.16518345475196838, 0.10698200762271881, -0.04868844151496887, -0.3041030168533325, -0.16378644108772278, 0.0876576155424118, -0.06367865204811096, 0.27737435698509216, 0.077610544860363, 0.2589269280433655, -0.03970464691519737, -0.08286253362894058, 0.05898658186197281, 0.2501305043697357, -0.1656116098165512, 0.22564664483070374, 0.39109691977500916, 0.024366572499275208, 0.09737268090248108, 0.2583622932434082, 0.10757265985012054, -0.43332380056381226, 0.3887709081172943, -0.23621228337287903, 0.47850295901298523, 0.16185589134693146, 0.14504745602607727, -0.13028192520141602, -0.1566515415906906, 0.1163126677274704, 0.16002331674098969, 0.03879806399345398, 0.00557360053062439, -0.05678838491439819, 0.40631651878356934, -0.0777646005153656, -0.1374931037425995, 0.08813647925853729, -0.4882022738456726, 0.18370255827903748, -0.29280006885528564, -0.19534271955490112, 0.6786150336265564, -0.45542752742767334, -0.0774899423122406, 0.5122254490852356, -0.00903213769197464, 0.0824035033583641, 0.39329978823661804, 0.2641245126724243, -0.01768430322408676, 0.16885581612586975, 0.15424303710460663, 0.19138523936271667, -0.06634019315242767, 0.2061370611190796, 0.13634562492370605, 0.150913268327713, 0.47150716185569763, 0.4203932583332062, -0.05472899600863457, 0.2940470278263092, 0.010015275329351425, -0.1320379674434662, -0.6468143463134766, -0.38695722818374634, 0.06248127669095993, 0.265310674905777, -0.1460636705160141, -0.20553921163082123, -0.17031002044677734, 0.056707412004470825, 0.08267149329185486, 0.024415679275989532, -0.20618878304958344, -0.1274564266204834, 0.74915611743927, 0.03767407685518265, 0.4000741243362427, -0.15113143622875214, -0.48421284556388855, -0.21260979771614075, 0.2543245851993561, -0.24701951444149017, -0.06630024313926697, -0.18996913731098175, 0.149168461561203, 0.3778539001941681, 0.1601913571357727, 0.2957722842693329, 0.35906344652175903, -0.3054678738117218, 0.26645150780677795, -0.0995980054140091, -0.16220790147781372, 0.24652957916259766, 0.028770241886377335, -0.04331469535827637, -0.17286570370197296, -0.13320279121398926, 0.0702795535326004, 0.010469049215316772, 0.17412680387496948, 0.08830133080482483, 0.3612297773361206, 0.1379593312740326, 0.36928316950798035, 0.1229497566819191, -0.37442609667778015, 0.068361796438694, 0.059638429433107376, -0.15126974880695343, 0.025093596428632736, 0.3476613759994507, -0.3015751242637634, 0.1799568384885788, 0.2458890974521637, 0.01890520006418228, 0.5963378548622131, 0.11286646127700806, 0.24058908224105835, -0.1761271059513092, -0.10122614353895187, 0.1970667988061905, -0.33640384674072266, -0.21549305319786072, 0.18982909619808197, -0.34424659609794617, -0.01792856864631176, -0.15528586506843567, 0.19086289405822754, 0.08335265517234802, 0.1257825493812561, -0.4912690818309784, -0.10254700481891632, 0.16211898624897003, 0.36293184757232666, -0.39806604385375977, 0.2992558181285858, 0.18167521059513092, -0.05222999304533005, -0.25833743810653687, 0.14318621158599854, -0.03706713765859604, 0.0055399686098098755, -0.17364338040351868, 0.07445929944515228, 0.015273720026016235, -0.27342677116394043, -0.016370587050914764, -0.00038519687950611115, 0.39279699325561523, -0.0876835435628891, 0.10934075713157654, 0.41711941361427307, -0.11960362643003464, -0.20286652445793152, 0.3020246624946594, -0.5358946919441223, 0.018886536359786987, -0.034390948712825775, 0.06797962635755539, -0.022097356617450714, -0.4184683561325073, -0.011409789323806763, -0.11289263516664505, -0.6668358445167542, 0.14939086139202118, -0.4806387722492218, 0.05909305065870285, 0.11798325926065445, 0.15656371414661407, -0.0001420155167579651, 0.4983157515525818, 0.03987434506416321, -0.2799829840660095, 0.20417478680610657, -0.6204323768615723, -0.40091294050216675, 0.15426072478294373, 0.03699510172009468, -0.16455978155136108, 0.03003375418484211, -0.35419344902038574, -0.08121646195650101, 0.3870239555835724, -0.024235835298895836, -0.378928542137146, 0.14728692173957825, -0.11237548291683197, -0.20489361882209778, -0.2524279057979584, 0.14578990638256073, -0.11811970174312592, 0.1565181463956833, -0.17770522832870483, -0.25372380018234253 ]
https://github.com/huggingface/datasets/issues/2176
Hi! You can use `Dataset.class_encode_column` for this. And in the next release of `datasets` (this feature is only available on `master`), you'll also be able to use `cast` to do the conversion. An example of conversion via `cast`: ```python from datasets import Dataset, Features, ClassLabel d = Dataset.from_dict({"a": ["no", "yes", "no"]}) d = d.cast(Features({"a": ClassLabel(names=["yes", "no"])})) ```
Converting a Value to a ClassLabel
Hi! In the docs for `cast`, it's noted that `For non-trivial conversion, e.g. string <-> ClassLabel you should use map() to update the Dataset.` Would it be possible to have an example that demonstrates such a string <-> ClassLabel conversion using `map`? Thanks!
57
Converting a Value to a ClassLabel Hi! In the docs for `cast`, it's noted that `For non-trivial conversion, e.g. string <-> ClassLabel you should use map() to update the Dataset.` Would it be possible to have an example that demonstrates such a string <-> ClassLabel conversion using `map`? Thanks! Hi! You can use `Dataset.class_encode_column` for this. And in the next release of `datasets` (this feature is only available on `master`), you'll also be able to use `cast` to do the conversion. An example of conversion via `cast`: ```python from datasets import Dataset, Features, ClassLabel d = Dataset.from_dict({"a": ["no", "yes", "no"]}) d = d.cast(Features({"a": ClassLabel(names=["yes", "no"])})) ```
[ -0.10248276591300964, -0.013445153832435608, 0.05103107914328575, 0.030189117416739464, 0.5588472485542297, 0.22223274409770966, 0.3362889885902405, 0.14872369170188904, 0.0411529541015625, 0.03893574699759483, 0.09335137903690338, 0.755332887172699, -0.06846639513969421, 0.21300606429576874, -0.010682620108127594, -0.14741727709770203, 0.22253306210041046, 0.16914424300193787, -0.16061191260814667, -0.006083928048610687, -0.2696380913257599, -0.06020749360322952, -0.39108142256736755, 0.11803857237100601, -0.029836812987923622, 0.016493288800120354, -0.09795603901147842, -0.22344008088111877, -0.026211470365524292, -0.2909315824508667, 0.10387511551380157, -0.1399301439523697, -0.0069101229310035706, 0.42702117562294006, -0.00012278040230739862, -0.31810903549194336, 0.14416825771331787, 0.11843056976795197, -0.24726437032222748, -0.16858449578285217, -0.6494753360748291, 0.030650362372398376, -0.03852064907550812, -0.37421923875808716, -0.1273321807384491, 0.288700133562088, -0.004064192995429039, -0.4182077646255493, -0.0429939329624176, -0.002032700926065445, 0.07316325604915619, -0.3639976680278778, -0.06450524181127548, 0.04850909858942032, 0.08839097619056702, 0.056381091475486755, 0.12485513836145401, 0.1842336356639862, 0.3715246021747589, 0.273504376411438, 0.05746573209762573, 0.2819778025150299, -0.15521255135536194, -0.4219329059123993, 0.38550955057144165, 0.19572417438030243, -0.03751225024461746, -0.25254955887794495, 0.2741251587867737, 0.18761475384235382, 0.6043146252632141, -0.33001232147216797, -0.364909291267395, -0.08970072120428085, 0.2311217039823532, -0.1525246798992157, -0.11513354629278183, 0.03140253573656082, 0.20504973828792572, 0.11875349283218384, -0.5829436779022217, -0.11909418553113937, -0.02491948753595352, 0.05860006436705589, -0.164384663105011, 0.2942825257778168, -0.1283516138792038, 0.1587117314338684, -0.0766691118478775, -0.39720794558525085, -0.029525166377425194, -0.13044466078281403, 0.03580284118652344, 0.45829856395721436, 0.027471989393234253, -0.24166466295719147, -0.16732658445835114, 0.35672491788864136, -0.32611456513404846, -0.4851328432559967, -0.2029372900724411, 0.15663841366767883, -0.22391194105148315, 0.2760213613510132, 0.19283053278923035, -0.14070186018943787, 0.6936356425285339, 0.38613516092300415, -0.028170719742774963, -0.374663382768631, -0.2589682936668396, 0.020413033664226532, -0.3100877106189728, -0.06914488971233368, 0.24884091317653656, 0.23960675299167633, -0.17127293348312378, -0.27649906277656555, 0.05164024233818054, -0.08611226081848145, -0.4965805113315582, 0.18851682543754578, -0.016171419993042946, 0.12959802150726318, 0.13721421360969543, 0.19770316779613495, 0.3271283805370331, 0.080992192029953, 0.33483773469924927, -0.4267401695251465, 0.052931271493434906, 0.18498587608337402, -0.14015716314315796, -0.2080274075269699, -0.1741303652524948, 0.15342296659946442, -0.2116180807352066, 0.16503788530826569, -0.0744081512093544, -0.20595714449882507, -0.20872393250465393, 0.3313204348087311, 0.195923313498497, -0.006934989243745804, -0.3483068346977234, 0.08369576930999756, 0.33685165643692017, -0.36791563034057617, -0.3858841061592102, 0.4462231397628784, -0.18341583013534546, 0.11833873391151428, 0.15677647292613983, 0.07043131440877914, 0.2370605319738388, -0.24707484245300293, -0.06172424927353859, 0.25871261954307556, 0.17844678461551666, -0.33414798974990845, 0.22382743656635284, -0.43299925327301025, -0.31343966722488403, -0.13539674878120422, 0.19605892896652222, 0.1952933371067047, -0.6228525042533875, -0.2536250650882721, 0.14771728217601776, 0.16686031222343445, -0.3579140901565552, -0.3080299496650696, -0.08428435027599335, 0.3581543266773224, 0.22856228053569794, 0.01900942623615265, 0.6234227418899536, -0.36067700386047363, -0.14292952418327332, 0.22245383262634277, -0.017347022891044617, -0.48566770553588867, -0.2294943481683731, 0.4254443049430847, 0.2301720529794693, -0.1285955160856247, 0.15452823042869568, 0.23049616813659668, -0.24780456721782684, 0.053480520844459534, 0.20614638924598694, -0.04083314538002014, 0.07216803729534149, -0.02456039935350418, -0.23267655074596405, 0.33806365728378296, 0.024282116442918777, 0.32013678550720215, -0.010719213634729385, -0.36829236149787903, 0.3121242821216583, 0.05358133092522621, 0.03428175300359726, 0.13071700930595398, -0.17174546420574188, -0.3013278543949127, 0.10346148163080215, 0.10059240460395813, 0.33552631735801697, -0.10868273675441742, 0.13930147886276245, -0.3975902199745178, -0.03800557553768158, -0.04830925911664963, 0.22837156057357788, 0.2279663383960724, 0.029311619699001312, -0.21072494983673096, 0.07376992702484131, -0.24310460686683655, -0.05983621999621391, -0.18500345945358276, -0.04577871412038803, 0.19048026204109192, -0.09053520858287811, -0.23245292901992798, 0.1995144784450531, -0.0756283849477768, -0.4943341314792633, 0.03462425246834755, 0.21366280317306519, -0.013898301869630814, -0.1409999132156372, 0.31926828622817993, 0.05102965980768204, -0.10877032577991486, -0.1779666692018509, 0.20957890152931213, 0.1457182765007019, -0.1674657166004181, 0.2967560589313507, 0.05927630141377449, 0.16414226591587067, -0.20356878638267517, -0.4817541539669037, 0.33199742436408997, -0.0331772044301033, 0.32892853021621704, -0.13999880850315094, 0.2973639965057373, 0.004369519650936127, -0.018421843647956848, -0.10813106596469879, 0.01767982542514801, -0.3648093342781067, -0.2516869008541107, 0.065142422914505, -0.005718542262911797, -0.18638813495635986, 0.2713075280189514, 0.15862035751342773, -0.4871121644973755, 0.27118393778800964, 0.12842293083667755, -0.28860345482826233, 0.2974434196949005, 0.0447351410984993, 0.3024980127811432, 0.14729875326156616, -0.0022712387144565582, 0.17289501428604126, 0.15158605575561523, -0.024782290682196617, 0.18187497556209564, 0.31610411405563354, -0.00020725838840007782, 0.1169598251581192, -0.40137535333633423, 0.01797208935022354, 0.20749816298484802, 0.245994433760643, -0.0414651557803154, 0.13288986682891846, 0.03155776858329773, -0.3230609893798828, 0.08636082708835602, -0.16586744785308838, 0.17639869451522827, -0.09595242887735367, -0.1394142210483551, 0.17628052830696106, -0.3923572301864624, -0.12645550072193146, -0.016843952238559723, -0.005572184920310974, 0.14386886358261108, -0.18978559970855713, -0.02412642538547516, 0.023453310132026672, -0.37051141262054443, 0.1385040283203125, -0.3754851222038269, -0.20039168000221252, -0.03847067058086395, 0.0011810287833213806, -0.028776653110980988, 0.1351047158241272, -0.16883695125579834, 0.12654656171798706, -0.17100706696510315, -0.49377691745758057, -0.07752224802970886, -0.25719863176345825, -0.07438258081674576, 0.28430816531181335, -0.15129417181015015, -0.4942760169506073, 0.27916285395622253, 0.19919654726982117, -0.22477951645851135, 0.045503467321395874, 0.07202077656984329, 0.0723913162946701, -0.11349901556968689, -0.1702321171760559, -0.09492304921150208, -0.08586966246366501, -0.03297065198421478, 0.1111658364534378, -0.18444165587425232, -0.06614276766777039, -0.2729354202747345, 0.17842724919319153, 0.4168481230735779, 0.20805297791957855, 0.042093031108379364, 0.07435966283082962, -0.1265314817428589, 0.16472500562667847, -0.03441588208079338, -0.1141384020447731, 0.0852832943201065, 0.0050821453332901, -0.15585894882678986, -0.006620731204748154, -0.012984953820705414, -0.04322311282157898, -0.05386769771575928, 0.21984829008579254, -0.01040167547762394, 0.1352696418762207, 0.1472678780555725, 0.41499459743499756, 0.0011196732521057129, -0.14115223288536072, -0.2910729944705963, -0.059573642909526825, -0.005349115468561649, -0.04191451147198677, 0.23512765765190125, 0.44297781586647034, 0.0718906968832016, 0.10202295333147049, 0.004537723958492279, -0.41097065806388855, -0.23340901732444763, -0.29109030961990356, 0.025041501969099045, 0.07863672077655792, -0.043700508773326874, -0.11075900495052338, -0.17855753004550934, -0.20439989864826202, -0.05298484489321709, 0.05133087933063507, -0.04510762542486191, 0.20477823913097382, 0.18394313752651215, -0.35897713899612427, -0.22516997158527374, 0.15725690126419067, -0.47435951232910156, 0.025728484615683556, -0.20556224882602692, -0.06235666573047638, -0.27056020498275757, -0.003091428428888321, 0.03444208204746246, -0.3095096945762634, 0.004036303609609604, -0.09217683970928192, -0.3471605181694031, -0.2304237335920334, 0.035934530198574066, 0.23547884821891785, 0.21794871985912323, 0.025444984436035156, -0.18965481221675873, 0.072017602622509, 0.06756922602653503, 0.023019786924123764, 0.6679220795631409, -0.4273223578929901, 0.5020024180412292, 0.4154176115989685, 0.08224473893642426, -0.11175113171339035, 0.13502541184425354, -0.573794960975647, 0.16521404683589935, 0.3380012512207031, 0.15015959739685059, -0.11607357114553452, 0.00514988973736763, 0.3171364963054657, 0.1102580577135086, -0.0761953592300415, 0.15961980819702148, 0.1660947948694229, 0.010899953544139862, -0.1522291600704193, 0.038218967616558075, 0.31567949056625366, 0.13506564497947693, 0.18761202692985535, 0.08806176483631134, -0.16440802812576294, 0.3205752968788147, 0.2690271735191345, -0.050371162593364716, -0.014601685106754303, 0.16068881750106812, 0.06045558303594589, -0.05165163427591324, -0.048061005771160126, -0.29410234093666077, 0.4335419535636902, -0.183383509516716, -0.34038442373275757, -0.04489628225564957, 0.1974194198846817, 0.6572780013084412, 0.08161657303571701, 0.23055791854858398, -0.1766713559627533, 0.05365047976374626, 0.04716738313436508, -0.2915306091308594, -0.08290800452232361, 0.16201362013816833, 0.2797728478908539, -0.4657008945941925, -0.4254917502403259, 0.8420621156692505, 0.13203294575214386, -0.32766035199165344, 0.1725168526172638, 0.3686712682247162, -0.5233215093612671, 0.2779051661491394, 0.5043386816978455, 0.9473283886909485, -0.30479007959365845, 0.1653294563293457, -0.23632174730300903, -0.24427492916584015, 0.7182286381721497, 0.1792815923690796, -0.016993414610624313, -0.5378985404968262, 0.14262348413467407, -0.21089309453964233, -0.08545760810375214, 0.09020278602838516, 0.6362766623497009, -0.6303167343139648, 0.26427748799324036, -0.33958637714385986, 0.25040605664253235, 0.19839918613433838, -0.26422688364982605, 0.03844306617975235, -0.2021801769733429, -0.027945371344685555, 0.21146920323371887, 0.19013097882270813, -0.2990711033344269, -0.029457665979862213, 0.10876277089118958, -0.28006771206855774, 0.030628398060798645, -0.31322354078292847, 0.040918804705142975, -0.018424537032842636, -0.059331439435482025, 0.22266703844070435, -0.06620199233293533, 0.4619860053062439, 0.6122444272041321, 0.2149764746427536, 0.22927325963974, -0.10289247334003448, 0.11594592034816742, -0.14249511063098907, 0.34580543637275696, 0.22437621653079987, 0.13318896293640137, 0.2634448707103729, 0.4322385787963867, -0.12844520807266235, 0.29676735401153564, -0.09750290215015411, 0.014192849397659302, -0.05470837652683258, -0.01777888834476471, 0.15873444080352783, -0.4930071532726288, -0.26919978857040405, 0.06797125935554504, 0.08910833299160004, -0.03507579118013382, 0.04177139326930046, -0.10126291215419769, -0.12551292777061462, 0.139048233628273, 0.07622908800840378, -0.24249881505966187, 0.34493258595466614, 0.34391945600509644, -0.18215203285217285, 0.06524225324392319, 0.2053791582584381, 0.006416104733943939, 0.06358540803194046, -0.09970981627702713, 0.45825308561325073, 0.21262821555137634, -0.02883297950029373, 0.027979739010334015, -0.021515507251024246, -0.14722642302513123, 0.10807938873767853, 0.013042989186942577, 0.06211431324481964, 0.3006601333618164, -0.26575717329978943, -0.2255653589963913, -0.21092496812343597, 0.030763814225792885, 0.38102105259895325, 0.11626584082841873, -0.16429071128368378, -0.045202113687992096, -0.08503803610801697, -0.05295191705226898, -0.1775786429643631, 0.16569013893604279, 0.019228875637054443, 0.31301769614219666, 0.29203495383262634, 0.5760578513145447, -0.226182758808136, -0.09971209615468979, 0.010492905974388123, 0.044056184589862823, 0.24971644580364227, -0.10571547597646713, -0.06561560183763504, 0.1537500023841858, 0.24958676099777222, 0.10030296444892883, -0.12724900245666504, 0.04871179163455963, -0.0900331661105156, -0.3458009660243988, -0.0781141072511673, 0.12192125618457794, -0.071642205119133, 0.34157291054725647, 0.08885455131530762, 0.22140508890151978, -0.07470747828483582, -0.06644067168235779, 0.11523380875587463, 0.16729064285755157, -0.22956350445747375, 0.2438090443611145, 0.35260725021362305, 0.02397860586643219, 0.09339510649442673, 0.3000405728816986, 0.12544827163219452, -0.4152522087097168, 0.3530810475349426, -0.1596018522977829, 0.5225883722305298, 0.19358055293560028, 0.22272583842277527, -0.07444676011800766, -0.1496376395225525, 0.20883187651634216, 0.2787076234817505, 0.05065479874610901, -0.06901867687702179, -0.0404861718416214, 0.35986214876174927, -0.0689210519194603, -0.09682676941156387, 0.07986318320035934, -0.42864733934402466, 0.17773407697677612, -0.2395690232515335, -0.2796948552131653, 0.5715367197990417, -0.4443780183792114, 0.02600574493408203, 0.7281093597412109, 0.0015255063772201538, 0.09824620187282562, 0.3675134778022766, 0.26855576038360596, 0.05110274255275726, 0.3148230016231537, 0.14142495393753052, 0.2093433439731598, 0.12513267993927002, 0.10158707201480865, 0.17279981076717377, 0.06925661861896515, 0.4920232892036438, 0.4458855986595154, 0.04979891702532768, 0.22183112800121307, 0.005743797868490219, -0.1738162785768509, -0.6697047352790833, -0.3108389973640442, 0.06462032347917557, 0.24704299867153168, -0.08171840012073517, -0.25358861684799194, -0.13042393326759338, 0.01641155779361725, 0.0764271467924118, -0.006349802017211914, -0.24973323941230774, -0.27016377449035645, 0.6889973878860474, 0.020406784489750862, 0.356794536113739, -0.2406819611787796, -0.37134110927581787, -0.19185641407966614, 0.2836271822452545, -0.21856003999710083, -0.16446788609027863, -0.20433834195137024, 0.1616106927394867, 0.4128427505493164, 0.25347474217414856, 0.3289758861064911, 0.29609793424606323, -0.2525593340396881, 0.2866922616958618, -0.22652122378349304, -0.12287632375955582, 0.26277950406074524, 0.03749500587582588, -0.07519770413637161, -0.1771165430545807, -0.09288685023784637, 0.08702968060970306, 0.008725941181182861, 0.0993809625506401, 0.0806712657213211, 0.41342517733573914, -0.0030876658856868744, 0.42342090606689453, 0.08701515197753906, -0.3535324037075043, 0.057624321430921555, 0.04380299150943756, -0.11436649411916733, -0.058707982301712036, 0.38796669244766235, -0.20545315742492676, 0.18640150129795074, 0.16716448962688446, 0.020393580198287964, 0.5367485880851746, 0.13846901059150696, 0.2585233747959137, -0.1671968549489975, -0.04723552241921425, 0.12768135964870453, -0.35073429346084595, -0.23939712345600128, 0.11514736711978912, -0.37692326307296753, 0.030452657490968704, -0.27238744497299194, 0.22751499712467194, 0.12625987827777863, 0.1536000669002533, -0.31032121181488037, -0.1367417424917221, 0.17277561128139496, 0.2492954432964325, -0.4376140832901001, 0.3154350817203522, 0.23448015749454498, -0.06646516174077988, -0.27599942684173584, 0.12713053822517395, -0.01668359339237213, -0.028118226677179337, -0.1941504180431366, 0.10707356035709381, -0.013260148465633392, -0.42309534549713135, 0.10914532840251923, 0.015333874151110649, 0.43355318903923035, -0.03230120614171028, 0.11691824346780777, 0.3666043281555176, -0.051701340824365616, -0.20281845331192017, 0.33942416310310364, -0.5303568243980408, 0.051973700523376465, -0.10597046464681625, -0.007552557624876499, 0.02996904030442238, -0.4238434433937073, -0.10567876696586609, -0.013515103608369827, -0.5903430581092834, 0.14914661645889282, -0.3753781318664551, -0.051026083528995514, 0.05612070858478546, 0.15429578721523285, -0.09105154126882553, 0.4783250093460083, 0.037296801805496216, -0.19491857290267944, 0.21412932872772217, -0.6025657653808594, -0.4280562102794647, 0.1357984095811844, 0.043888576328754425, -0.21619465947151184, -0.07200099527835846, -0.30864930152893066, -0.054970480501651764, 0.35213398933410645, -0.031232871115207672, -0.31924116611480713, 0.1683606505393982, -0.09996967017650604, -0.1324024796485901, -0.28431230783462524, 0.293454110622406, -0.1904861479997635, 0.1755782663822174, -0.1904028356075287, -0.30064529180526733 ]
https://github.com/huggingface/datasets/issues/2175
Actually, I found the answer [here](https://github.com/facebookresearch/faiss/wiki/FAQ#what-does-it-mean-when-a-search-returns--1-ids). So we have to do some modifications to the code for instances where the index doesn't retrieve any IDs.
dataset.search_batch() function outputs all -1 indices sometime.
I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**. During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_rag.py#L231) an error issue when all retrieved indices are -1. Please refer to the screenshot of a PID worker. ![image](https://user-images.githubusercontent.com/16892570/113782387-37a67600-9786-11eb-9c29-acad661a9648.png) Here, my retrieve batch size is 2 and n_docs is 5. I can solve this by working around np. stack, but I want to ask, why we get an output index of -1. Do you have any idea :) ? Is this a problem of the index, where the faiss can't find any similar vector? Is there documentation on the output index being -1? @lhoestq
25
dataset.search_batch() function outputs all -1 indices sometime. I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**. During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_rag.py#L231) an error issue when all retrieved indices are -1. Please refer to the screenshot of a PID worker. ![image](https://user-images.githubusercontent.com/16892570/113782387-37a67600-9786-11eb-9c29-acad661a9648.png) Here, my retrieve batch size is 2 and n_docs is 5. I can solve this by working around np. stack, but I want to ask, why we get an output index of -1. Do you have any idea :) ? Is this a problem of the index, where the faiss can't find any similar vector? Is there documentation on the output index being -1? @lhoestq Actually, I found the answer [here](https://github.com/facebookresearch/faiss/wiki/FAQ#what-does-it-mean-when-a-search-returns--1-ids). So we have to do some modifications to the code for instances where the index doesn't retrieve any IDs.
[ 0.011297456920146942, -0.3721056878566742, -0.10199876129627228, 0.019268635660409927, 0.2021874636411667, -0.09668777883052826, 0.2803097367286682, 0.2968437671661377, 0.13914161920547485, 0.42091265320777893, -0.23242929577827454, -0.24345383048057556, 0.10583297908306122, -0.03389798104763031, -0.16217449307441711, 0.10814547538757324, 0.2741160988807678, 0.38129913806915283, -0.05255748704075813, -0.5196728706359863, -0.3187377452850342, 0.11910887062549591, -0.028468593955039978, 0.3729506731033325, -0.2878589928150177, 0.2902805805206299, -0.02752484753727913, -0.08939885348081589, -0.2744062840938568, -0.4506151080131531, 0.5258824825286865, -0.30384722352027893, 0.4114503860473633, 0.22609329223632812, -0.00013125638361088932, 0.12229929864406586, 0.3880341649055481, -0.033038411289453506, -0.09780716896057129, -0.1585949808359146, -0.056862764060497284, 0.15356497466564178, 0.08321736007928848, -0.04967360943555832, 0.05296976864337921, -0.29350727796554565, 0.25834906101226807, -0.07600070536136627, -0.039287738502025604, 0.2710104286670685, 0.016587605699896812, -0.10019035637378693, -0.21663737297058105, -0.04404716566205025, 0.6340444087982178, -0.3164770007133484, 0.08086209744215012, -0.1430778056383133, 0.43597158789634705, -0.02892065979540348, 0.1490153819322586, 0.12515254318714142, 0.05378613620996475, -0.026343071833252907, -0.264072984457016, 0.15199154615402222, 0.65093594789505, -0.3470194339752197, 0.19483906030654907, 0.24291777610778809, 0.21324482560157776, -0.016517994925379753, -0.34254059195518494, 0.10109104961156845, 0.16157713532447815, 0.06438194215297699, -0.049350496381521225, 0.1699865162372589, -0.10237295925617218, 0.24921731650829315, -0.07359679788351059, 0.3226187229156494, -0.2642555236816406, 0.12838932871818542, 0.09210090339183807, 0.30480340123176575, 0.05206725746393204, 0.13653720915317535, 0.1266661137342453, 0.17937421798706055, 0.2614559233188629, 0.1650858074426651, 0.14242056012153625, 0.2667563557624817, -0.5452938675880432, -0.03965391963720322, 0.30132001638412476, -0.2635916471481323, 0.15998166799545288, -0.33412283658981323, -0.29588258266448975, 0.012205440551042557, -0.19061590731143951, -0.08114560693502426, 0.13480958342552185, 0.03003969043493271, -0.04095711559057236, 0.08792520314455032, 0.2758272588253021, -0.44348588585853577, 0.022571489214897156, 0.05646384507417679, 0.14051266014575958, 0.01728009060025215, -0.06840784102678299, 0.12267637252807617, 0.07078194618225098, -0.29247406125068665, -0.3751615881919861, -0.09220875054597855, -0.28518304228782654, 0.228797048330307, -0.21177397668361664, 0.18732264637947083, 0.3979746103286743, 0.08088279515504837, -0.043456993997097015, 0.09656862914562225, -0.19204862415790558, -0.07218251377344131, -0.14901626110076904, -0.16843609511852264, -0.12902438640594482, 0.025708235800266266, 0.15129454433918, -0.4258546233177185, -0.1803210973739624, 0.061347443610429764, -0.14172175526618958, 0.194315567612648, 0.12238369882106781, -0.17329171299934387, 0.4533528983592987, 0.5615364909172058, -0.11662004888057709, 0.33237937092781067, 0.13577184081077576, 0.04667048156261444, -0.024434171617031097, 0.00829918310046196, 0.06020176410675049, -0.589442253112793, 0.17873845994472504, 0.06596788018941879, 0.015801772475242615, 0.3439200520515442, 0.32026007771492004, 0.33343419432640076, -0.29571157693862915, 0.3365437686443329, -0.015902727842330933, -0.40668803453445435, 0.03136076778173447, -0.02631901204586029, 0.2536780834197998, 0.17408645153045654, -0.053525760769844055, 0.14472728967666626, 0.018801957368850708, -0.2671523988246918, 0.10422967374324799, 0.30470141768455505, 0.07768188416957855, 0.2836076617240906, -0.48791980743408203, 0.19914233684539795, 0.13167507946491241, -0.28216367959976196, -0.3218090534210205, 0.05694519355893135, -0.24496930837631226, -0.604391872882843, 0.01685861498117447, 0.2755219340324402, 0.26235586404800415, 0.2028292864561081, 0.28601208329200745, 0.199192613363266, -0.02237686887383461, -0.1068088710308075, -0.41901499032974243, -0.07491651922464371, 0.2629503607749939, -0.08064980059862137, 0.2959194481372833, 0.26077836751937866, 0.08971220254898071, -0.7707070112228394, 0.3443847894668579, 0.07830999046564102, 0.0974857285618782, -0.0759548470377922, 0.36005452275276184, 0.003918612375855446, 0.7175315022468567, -0.06479039043188095, -0.08750531077384949, 0.11427079141139984, -0.35572272539138794, 0.06443115323781967, 0.020077895373106003, -0.20870347321033478, -0.014546435326337814, -0.03296191617846489, 0.060866907238960266, 0.2663135230541229, -0.0613429993391037, -0.14425316452980042, 0.285241037607193, -0.1506958156824112, -0.21669065952301025, 0.027904344722628593, -0.18928992748260498, -0.1727767288684845, -0.4619542360305786, 0.2869722843170166, -0.004456464666873217, -0.21530842781066895, 0.00803472101688385, -0.023506712168455124, 0.31085526943206787, -0.0657239556312561, 0.008328381925821304, 0.16634663939476013, -0.20152178406715393, -0.27789920568466187, 0.7204378843307495, 0.10576515644788742, -0.22752967476844788, -0.4191123843193054, 0.1112755686044693, 0.4744250774383545, 0.1263321340084076, -0.19799506664276123, 0.15499693155288696, 0.22418946027755737, -0.24688956141471863, 0.47351476550102234, -0.1225573942065239, -0.001431494951248169, 0.07492665946483612, 0.14218130707740784, -0.11487765610218048, -0.2041204422712326, 0.10195299237966537, -0.14532090723514557, -0.11486391723155975, 0.03656487911939621, -0.2517423927783966, 0.18073680996894836, -0.15669755637645721, -0.4020548462867737, 0.037372127175331116, 0.2453039288520813, 0.04684808850288391, -0.01222435012459755, 0.12389872968196869, -0.24073104560375214, 0.38526469469070435, 0.14659550786018372, -0.18584638833999634, -0.23879903554916382, -0.18864834308624268, -0.14946550130844116, 0.0910927802324295, 0.15435592830181122, -0.24721521139144897, 0.14349710941314697, 0.31178048253059387, -0.07424162328243256, -0.329437792301178, -0.22531917691230774, -0.3847641050815582, 0.2618561089038849, -0.2814091742038727, -0.0455772802233696, 0.050493836402893066, -0.02714639902114868, -0.33961454033851624, -0.09365127980709076, -0.03626907244324684, -0.07649344205856323, 0.20386913418769836, -0.32892197370529175, -0.0500362254679203, 0.007331054657697678, -0.12287893891334534, 0.23368686437606812, 0.05649261921644211, 0.31491658091545105, -0.6124584078788757, 0.06110817939043045, -0.3827648162841797, -0.22788012027740479, -0.5138925909996033, 0.3062330484390259, -0.060402169823646545, -0.038124315440654755, -0.5279855728149414, -0.5108692049980164, 0.1429801881313324, 0.028672942891716957, -0.1098233014345169, -0.03501109406352043, 0.32341107726097107, 0.018820745870471, -0.21423403918743134, 0.3020824193954468, -0.002286963164806366, -0.083116814494133, -0.17913410067558289, 0.17307068407535553, -0.2697460651397705, 0.37669408321380615, -0.2327560931444168, -0.26791346073150635, -0.03134898096323013, -0.03881998732686043, 0.1331947147846222, -0.22064241766929626, 0.12472714483737946, 0.027666423469781876, 0.12375771254301071, -0.12229377031326294, -0.01603149250149727, -0.03372825309634209, -0.2221769094467163, -0.20211373269557953, 0.2577734887599945, 0.3072981834411621, -0.36489337682724, -0.24108722805976868, -0.15819138288497925, -0.561920166015625, 0.45069825649261475, -0.13599956035614014, -0.13750678300857544, 0.07019275426864624, 0.0001694709062576294, 0.0629061609506607, 0.44138583540916443, 0.1164395660161972, -0.06912373751401901, -0.052051570266485214, -0.24591034650802612, -0.0521869957447052, 0.3002718985080719, -0.02512022666633129, 0.2634773850440979, 0.024230215698480606, -0.09367779642343521, -0.27162355184555054, 0.7259997725486755, 0.15398074686527252, -0.07144220918416977, -0.012289382517337799, 0.1312197595834732, 0.1544191688299179, 0.1646026074886322, 0.02832503616809845, 0.25175046920776367, 0.20880717039108276, -0.3656688630580902, -0.08243033289909363, -0.0206990335136652, 0.13677993416786194, 0.2797054052352905, 0.13236095011234283, -0.14345033466815948, -0.12019679695367813, -0.0569843053817749, 0.29258206486701965, 0.21898232400417328, 0.024662300944328308, 0.15094000101089478, -0.09400121122598648, 0.10884259641170502, 0.18913935124874115, 0.06882382184267044, 0.09593600779771805, 0.2566945552825928, 0.3786236643791199, -0.49722763895988464, -0.4568195044994354, 0.22427800297737122, -0.08083681017160416, 0.3757856786251068, 0.2393743097782135, 0.10278208553791046, 0.47887304425239563, 0.2590559422969818, 1.2568013668060303, -0.17597056925296783, 0.2236911803483963, 0.22330453991889954, 0.11469051241874695, -0.2094757854938507, -0.42774033546447754, -0.3497859835624695, 0.14567047357559204, 0.28166741132736206, 0.30426329374313354, -0.1345706433057785, -0.28299006819725037, 0.3241882026195526, -0.08312477171421051, -0.02470547705888748, -0.48405227065086365, -0.4144078195095062, -0.3878675699234009, 0.3596351444721222, 0.1768425852060318, 0.07040809839963913, -0.02576265297830105, -0.12870270013809204, -0.31837108731269836, -0.28865811228752136, 0.08421409130096436, -0.020928222686052322, 0.013678457587957382, 0.10889936983585358, -0.010078195482492447, 0.05402139574289322, 0.5879080891609192, -0.03529845550656319, 0.028829315677285194, 0.006331405136734247, -0.2897152304649353, 0.1097690761089325, 0.13167521357536316, -0.21490836143493652, 0.13006091117858887, 0.40254151821136475, -0.037895772606134415, -0.03797311335802078, -0.06998781859874725, 0.1739649772644043, 0.02517528459429741, -0.1724170297384262, 0.33424317836761475, 0.0776081457734108, -0.21639494597911835, -0.25675728917121887, 0.6706350445747375, -0.18972623348236084, -0.24434727430343628, -0.04558945447206497, 0.3609125316143036, -0.12717723846435547, 0.8627618551254272, 0.20363548398017883, 1.0294398069381714, -0.15938642621040344, 0.04494933784008026, -0.033066049218177795, -0.05769379064440727, 0.38871586322784424, -0.13688340783119202, 0.2788417935371399, -0.33232223987579346, -0.038817860186100006, -0.1417318880558014, -0.10174915194511414, -0.38785022497177124, 0.4730280637741089, 0.02225039154291153, 0.31065934896469116, -0.043605148792266846, -0.2067582905292511, 0.14250868558883667, 0.04207853972911835, 0.42159512639045715, -0.09972074627876282, -0.2761310935020447, -0.026813728734850883, 0.21045535802841187, 0.35123956203460693, -0.1016683280467987, -0.02068101428449154, 0.08608438074588776, -0.01665576547384262, -0.226344034075737, -0.21108685433864594, 0.06519562005996704, 0.29440152645111084, 0.6096581816673279, -0.2668306231498718, -0.19427788257598877, -0.15850739181041718, 0.527330219745636, -0.31097596883773804, -0.06495116651058197, -0.06323978304862976, 0.42607852816581726, 0.06473813951015472, 0.06599447131156921, -0.2863043248653412, 0.3530515134334564, 0.16696003079414368, -0.406624436378479, -0.028687819838523865, 0.04662330448627472, 0.18258386850357056, -0.2095659077167511, 0.0837351381778717, -0.35315456986427307, -0.11283022165298462, 0.13546572625637054, 0.07352989912033081, 0.1463966965675354, -0.10966560244560242, -0.03297456353902817, 0.34436339139938354, -0.24888165295124054, 0.5228222012519836, 0.03792243078351021, -0.5396445989608765, 0.0018793242052197456, 0.06877893954515457, 0.3131366968154907, 0.10262811928987503, 0.028428208082914352, -0.09100130945444107, -0.10678821057081223, 0.004764452576637268, -0.39827966690063477, 0.2628669738769531, -0.06571927666664124, 0.3646070063114166, 0.006646387279033661, -0.05245769023895264, 0.014926586300134659, -0.065123051404953, -0.05351237580180168, -0.03938761726021767, -0.6319125890731812, -0.11182757467031479, -0.06747862696647644, 0.0020823106169700623, 0.042668417096138, 0.28274309635162354, 0.04362905025482178, -0.22248154878616333, 0.0494106188416481, -0.43606817722320557, -0.15175962448120117, -0.30702102184295654, -0.3297474682331085, 0.3338544964790344, -0.4554992616176605, 0.02338983304798603, -0.17270290851593018, -0.09453925490379333, -0.04044802486896515, -0.01343564037233591, -0.14613059163093567, -0.025727763772010803, 0.09948162734508514, 0.2227834165096283, 0.17635071277618408, 0.259028822183609, -0.25269198417663574, -0.030191093683242798, -0.1449386030435562, 0.03893740847706795, 0.0625406801700592, 0.6113519668579102, 0.06643569469451904, 0.2071976512670517, 0.18148097395896912, -0.1188339814543724, 0.067420594394207, 0.16037112474441528, 0.22018137574195862, 0.209212526679039, 0.009827017784118652, 0.3986610472202301, -0.2479160726070404, -0.004565991461277008, -0.0807427316904068, 0.10797511041164398, -0.0862932801246643, 0.12453530728816986, 0.0638478696346283, -0.1448546051979065, -0.11574920266866684, 0.080288827419281, 0.0730736255645752, 0.287204772233963, -0.36820441484451294, -0.28899645805358887, 0.08760090172290802, 0.08784753084182739, -0.0736151710152626, 0.03109445795416832, 0.18915270268917084, -0.00966566801071167, -0.08576174825429916, 0.15766140818595886, -0.08571088314056396, -0.27707958221435547, -0.0829848200082779, 0.1212405264377594, 0.3878119885921478, 0.08452658355236053, -0.4620715081691742, -0.4683162271976471, 0.2818697988986969, 0.1255485862493515, 0.21829138696193695, -0.08882034569978714, 0.18671253323554993, 0.5988234877586365, 0.10669964551925659, 0.11634434759616852, 0.007810292765498161, 0.19310948252677917, -0.31579533219337463, -0.10069458186626434, 0.35794597864151, 0.4545295834541321, -0.3513319194316864, 0.044638536870479584, 0.23468203842639923, 0.13337336480617523, -0.11314187943935394, 0.04051731526851654, 0.1585414707660675, -0.22601264715194702, 0.05375191569328308, 0.07839325070381165, -0.167315274477005, 0.27908849716186523, 0.012853443622589111, 0.1342288702726364, 0.015872618183493614, 0.05450150743126869, 0.06463593244552612, 0.20167452096939087, -0.09540651738643646, -0.06597188115119934, -0.12333130836486816, 0.42438215017318726, 0.2690964937210083, 0.02569645643234253, -0.13491694629192352, -0.18397198617458344, 0.06241267919540405, 0.32323411107063293, 0.3626466989517212, 0.25444647669792175, 0.40505972504615784, -0.21830889582633972, 0.19436758756637573, -0.08964353054761887, -0.17157752811908722, -0.15433408319950104, -0.15757031738758087, -0.22219227254390717, -0.07097988575696945, -0.049828819930553436, 0.024919502437114716, 0.025774382054805756, -0.20981591939926147, -0.054816827178001404, 0.39151549339294434, -0.1408577412366867, -0.0055024512112140656, 0.09871019423007965, -0.06448008120059967, -0.21788732707500458, 0.12577369809150696, -0.19870254397392273, 0.23337168991565704, 0.15545451641082764, -0.09734931588172913, 0.14920146763324738, 0.06340508162975311, -0.019218824803829193, -0.2836739122867584, 0.16907766461372375, 0.39737871289253235, 0.32104843854904175, -0.1404416561126709, 0.18252505362033844, -0.11473716795444489, 0.053404998034238815, -0.08133327960968018, 0.2980788052082062, 0.400099515914917, 0.37927383184432983, -0.3778191804885864, -0.20696642994880676, 0.4430241584777832, 0.55437833070755, -0.01695837453007698, 0.5559702515602112, 0.13202287256717682, -0.005780981387943029, -0.4808116555213928, -0.016314402222633362, 0.024672381579875946, -0.215902641415596, 0.35072144865989685, 0.07731950283050537, -0.04026157408952713, 0.11470174789428711, 0.008525252342224121, 0.16125334799289703, -0.2590678334236145, 0.34245750308036804, 0.21824443340301514, -0.14502203464508057, 0.00046325474977493286, 0.17467500269412994, -0.3607173562049866, -0.10428369790315628, -0.46275824308395386, -0.12360318005084991, -0.24728308618068695, -0.18842574954032898, -0.20967859029769897, -0.2898917496204376, 0.0043421462178230286, 0.2782426178455353, 0.2054183930158615, 0.026144370436668396, -0.14345206320285797, 0.31183087825775146, -0.502642035484314, 0.04356808587908745, -0.11256630718708038, -0.0771074891090393, 0.25080931186676025, -0.020079784095287323, -0.34636205434799194, -0.30606287717819214, 0.47884488105773926, -0.33452659845352173, -0.21703112125396729, -0.4942219853401184, 0.44171667098999023, 0.3645997941493988, 0.18807101249694824, -0.6248782277107239, -0.248143270611763, 0.17859084904193878, 0.07566829025745392, -0.39990076422691345, -0.5030995607376099, 0.11679702997207642, 0.1236271932721138, -0.13330158591270447, -0.374296635389328, 0.43909743428230286, 0.0781257227063179, 0.2793934941291809, -0.31120073795318604 ]
https://github.com/huggingface/datasets/issues/2175
@lhoestq @patrickvonplaten I also found another short bug in the retrieval part. Especially, when retrieving documents. If Faiss returns the -1 as the index, the retriever will always use the last element in the dataset. please check [def get_doc_dicts function](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_rag.py#L222) Does the use of the HNSW guarantee to retrieve valid indexes always?
dataset.search_batch() function outputs all -1 indices sometime.
I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**. During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_rag.py#L231) an error issue when all retrieved indices are -1. Please refer to the screenshot of a PID worker. ![image](https://user-images.githubusercontent.com/16892570/113782387-37a67600-9786-11eb-9c29-acad661a9648.png) Here, my retrieve batch size is 2 and n_docs is 5. I can solve this by working around np. stack, but I want to ask, why we get an output index of -1. Do you have any idea :) ? Is this a problem of the index, where the faiss can't find any similar vector? Is there documentation on the output index being -1? @lhoestq
52
dataset.search_batch() function outputs all -1 indices sometime. I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**. During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_rag.py#L231) an error issue when all retrieved indices are -1. Please refer to the screenshot of a PID worker. ![image](https://user-images.githubusercontent.com/16892570/113782387-37a67600-9786-11eb-9c29-acad661a9648.png) Here, my retrieve batch size is 2 and n_docs is 5. I can solve this by working around np. stack, but I want to ask, why we get an output index of -1. Do you have any idea :) ? Is this a problem of the index, where the faiss can't find any similar vector? Is there documentation on the output index being -1? @lhoestq @lhoestq @patrickvonplaten I also found another short bug in the retrieval part. Especially, when retrieving documents. If Faiss returns the -1 as the index, the retriever will always use the last element in the dataset. please check [def get_doc_dicts function](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_rag.py#L222) Does the use of the HNSW guarantee to retrieve valid indexes always?
[ 0.015852071344852448, -0.28069156408309937, -0.06329288333654404, 0.08496485650539398, 0.08535462617874146, -0.10384604334831238, 0.2369082272052765, 0.3023102283477783, 0.10523360967636108, 0.34376060962677, -0.25177356600761414, -0.21534359455108643, 0.16499078273773193, -0.2617834210395813, -0.11690850555896759, 0.057884812355041504, 0.2875570058822632, 0.3696742057800293, -0.01357290893793106, -0.5771782994270325, -0.4364786148071289, 0.04540096968412399, -0.10874377936124802, 0.35991400480270386, -0.2922555208206177, 0.17140980064868927, -0.09354137629270554, -0.04322303459048271, -0.27996835112571716, -0.44632601737976074, 0.5693718194961548, -0.20512139797210693, 0.49980783462524414, 0.1934943050146103, -0.00013102441153023392, 0.06073218584060669, 0.39898788928985596, -0.06738808751106262, -0.117808036506176, -0.10647625476121902, -0.14195600152015686, 0.08308734744787216, 0.001890186220407486, -0.05884707719087601, 0.033088572323322296, -0.2911158800125122, 0.22276301681995392, -0.1077730804681778, -0.004329133778810501, 0.33186107873916626, 0.021613407880067825, 0.056921012699604034, -0.17382660508155823, 0.00232648104429245, 0.7081761956214905, -0.3659304082393646, 0.0985160619020462, -0.0367787703871727, 0.4812431037425995, -0.0528162382543087, 0.15266640484333038, 0.1807490885257721, 0.001985691487789154, 0.0009160693734884262, -0.3093777894973755, 0.25619208812713623, 0.6104996204376221, -0.270027756690979, 0.15266694128513336, 0.3558496832847595, 0.361895889043808, 0.05238468945026398, -0.40644189715385437, 0.05025938153266907, 0.16378971934318542, 0.04326242953538895, -0.034001488238573074, 0.2212759107351303, -0.07148942351341248, 0.2482028603553772, 0.016666769981384277, 0.3187108635902405, -0.30733656883239746, 0.2191096544265747, 0.09849841892719269, 0.2952781617641449, 0.04562811926007271, 0.08735261857509613, 0.15930059552192688, 0.24459969997406006, 0.3256032168865204, 0.011704713106155396, 0.06403598189353943, 0.2494964301586151, -0.43956711888313293, 0.0244554802775383, 0.25596827268600464, -0.15714965760707855, 0.13260796666145325, -0.36598557233810425, -0.26436901092529297, -0.04381697624921799, -0.16861066222190857, -0.03824780508875847, 0.2108127772808075, 0.09811793267726898, -0.15004336833953857, 0.1708923876285553, 0.3238216042518616, -0.3653722107410431, 0.02072986215353012, 0.03798484057188034, 0.14822953939437866, 0.04027591273188591, -0.061023980379104614, 0.08174912631511688, 0.03789162635803223, -0.3919435441493988, -0.31663987040519714, -0.07471081614494324, -0.20712906122207642, 0.1259293407201767, -0.3126271367073059, 0.1812497079372406, 0.3250615894794464, 0.19524133205413818, -0.06457225233316422, 0.19334307312965393, -0.20173321664333344, 0.010371889919042587, -0.19673952460289001, -0.19624756276607513, -0.1573488414287567, 0.08271680027246475, 0.08142384886741638, -0.3686147928237915, -0.1698285937309265, 0.08121399581432343, -0.08155828714370728, 0.16014894843101501, 0.04422793537378311, -0.20155179500579834, 0.4831167161464691, 0.47338244318962097, -0.19336678087711334, 0.26015743613243103, 0.07692446559667587, 0.027760066092014313, -0.07027285546064377, 0.006818799301981926, 0.016230598092079163, -0.5032624006271362, 0.16615809500217438, 0.06403554975986481, 0.1187809482216835, 0.32643336057662964, 0.31285735964775085, 0.25196319818496704, -0.14434480667114258, 0.39161819219589233, 0.03852814808487892, -0.5134455561637878, 0.038776665925979614, -0.07685710489749908, 0.1956459879875183, 0.16601413488388062, 0.009801872074604034, 0.16630138456821442, 0.0855412632226944, -0.1749095767736435, 0.07669131457805634, 0.3393225371837616, 0.031890954822301865, 0.30728960037231445, -0.5202447175979614, 0.23227839171886444, 0.1017867848277092, -0.4268249273300171, -0.43707385659217834, 0.021766841411590576, -0.09341049194335938, -0.4778691232204437, 0.048912547528743744, 0.23617365956306458, 0.4215184450149536, 0.09481438249349594, 0.1668856292963028, 0.21422532200813293, -0.03002777509391308, -0.16945219039916992, -0.5196027159690857, -0.060897096991539, 0.1508563607931137, -0.10746580362319946, 0.40809571743011475, 0.3055160939693451, 0.05424899607896805, -0.6813325881958008, 0.4600910544395447, 0.04163876920938492, 0.07624205201864243, -0.049139637500047684, 0.3157005310058594, 0.05170276388525963, 0.6557030081748962, -0.009954996407032013, -0.09525518119335175, 0.1157820075750351, -0.34268561005592346, 0.09910140931606293, 0.07025828957557678, -0.1577310860157013, 0.02237040176987648, -0.04167982190847397, -0.04419785737991333, 0.20164088904857635, -0.06833446025848389, -0.057170379906892776, 0.23744997382164001, -0.04881388694047928, -0.14064541459083557, 0.03893117606639862, -0.20222149789333344, -0.13887260854244232, -0.5094870924949646, 0.3016096353530884, 0.02816501073539257, -0.1289515197277069, 0.005840510129928589, 0.029282722622156143, 0.28074467182159424, -0.050127990543842316, -0.049834877252578735, 0.08349394798278809, -0.11358548700809479, -0.28075671195983887, 0.5495069622993469, 0.16660191118717194, -0.15285176038742065, -0.5171636939048767, 0.2230282723903656, 0.5155272483825684, 0.1301402449607849, -0.24273225665092468, 0.11564567685127258, 0.2706036865711212, -0.2726708650588989, 0.38280490040779114, -0.10834281891584396, -0.05496034771203995, 0.06671727448701859, 0.06635137647390366, -0.14988814294338226, -0.20306715369224548, 0.0003469795919954777, -0.2384689450263977, -0.061184898018836975, -0.06357903778553009, -0.22463548183441162, 0.08345519006252289, -0.009310124441981316, -0.3920828402042389, 0.002927703782916069, 0.29732459783554077, 0.03695311024785042, -0.0580255426466465, 0.06723443418741226, -0.20135262608528137, 0.3888041079044342, 0.16049687564373016, -0.12817636132240295, -0.20559431612491608, -0.22001686692237854, -0.18353131413459778, 0.09344787150621414, 0.14137230813503265, -0.26002150774002075, 0.24912308156490326, 0.1945119947195053, -0.08415602147579193, -0.2929004430770874, -0.11002734303474426, -0.4757438600063324, 0.19578692317008972, -0.25644463300704956, -0.016351576894521713, 0.01488649845123291, -0.025346927344799042, -0.4278123676776886, -0.10202938318252563, 0.034313030540943146, -0.11448772251605988, 0.14152510464191437, -0.2802918553352356, -0.03287755325436592, 0.05129110813140869, -0.28476494550704956, 0.1777866929769516, -0.03999808058142662, 0.3042398691177368, -0.5487368106842041, 0.06670421361923218, -0.4623081684112549, -0.22744983434677124, -0.4807327687740326, 0.2997173070907593, 0.05942458659410477, -0.025593463331460953, -0.5072208642959595, -0.4166645407676697, 0.13378819823265076, 0.10726238787174225, -0.06639411300420761, 0.0001825764775276184, 0.27998796105384827, 0.027646709233522415, -0.16416996717453003, 0.32966750860214233, 0.03420746326446533, -0.1100214421749115, -0.09855269640684128, 0.14596790075302124, -0.2561156451702118, 0.2692086398601532, -0.1441015601158142, -0.324490487575531, -0.07670086622238159, -0.023815937340259552, 0.023135319352149963, -0.22854918241500854, 0.03472985699772835, 0.0748741626739502, 0.09231989085674286, -0.10488826036453247, -0.07135270535945892, 0.039576925337314606, -0.20441128313541412, -0.19532886147499084, 0.3142090439796448, 0.33528566360473633, -0.40025484561920166, -0.35196802020072937, -0.27292823791503906, -0.5548421144485474, 0.481803297996521, -0.14903049170970917, -0.09240955114364624, 0.0499773845076561, 0.047027572989463806, 0.10559675097465515, 0.49301156401634216, 0.15706059336662292, -0.18238916993141174, -0.03774431347846985, -0.3242684602737427, 0.04887298494577408, 0.3383648991584778, 0.01898859441280365, 0.3005690574645996, 0.13813060522079468, -0.15769179165363312, -0.30237483978271484, 0.7045296430587769, 0.22326432168483734, -0.035944245755672455, 0.034788828343153, 0.22129201889038086, 0.2890366017818451, 0.1963260918855667, -0.005157455801963806, 0.17919769883155823, 0.15805861353874207, -0.34944331645965576, 0.03927236050367355, -0.022123925387859344, 0.1128416657447815, 0.27415454387664795, 0.019925139844417572, -0.1492033153772354, -0.1857706606388092, -0.005158951506018639, 0.20518971979618073, 0.21684736013412476, 0.06965729594230652, 0.2705717384815216, 0.015457220375537872, 0.014752868562936783, 0.1499035358428955, 0.08689148724079132, 0.18832378089427948, 0.27079465985298157, 0.4090043306350708, -0.3244125545024872, -0.4757455289363861, 0.14636275172233582, -0.0082477405667305, 0.4967695474624634, 0.312447726726532, 0.11925897002220154, 0.411200612783432, 0.26380619406700134, 1.1679073572158813, -0.2185724526643753, 0.21660920977592468, 0.24698707461357117, 0.08770228922367096, -0.19986432790756226, -0.4820184111595154, -0.4562116861343384, -0.08378460258245468, 0.2651090621948242, 0.2621898651123047, -0.18086062371730804, -0.1812044233083725, 0.2296389937400818, -0.0946376770734787, -0.1061575710773468, -0.47465193271636963, -0.3367077708244324, -0.39553302526474, 0.3641495108604431, 0.17856621742248535, 0.028331980109214783, -0.020621582865715027, -0.20301419496536255, -0.27186787128448486, -0.25575265288352966, 0.09807902574539185, -0.02987944707274437, -0.005738265812397003, 0.1531221568584442, -0.16163530945777893, 0.06157141923904419, 0.6109384894371033, 0.06423230469226837, 0.25196048617362976, 0.06420286744832993, -0.5061050653457642, 0.19540312886238098, -0.04093637317419052, -0.3315083980560303, 0.1486862599849701, 0.46754342317581177, -0.04355597123503685, -0.023148290812969208, -0.033359095454216, 0.14088550209999084, -0.003741096705198288, -0.24205201864242554, 0.3689683973789215, 0.005533594638109207, -0.29179346561431885, -0.2453863024711609, 0.6936018466949463, -0.18499991297721863, -0.3081681728363037, -0.004312250297516584, 0.3812157213687897, -0.2878372073173523, 0.8606345653533936, 0.24845321476459503, 1.087850570678711, -0.06843385100364685, 0.1362704187631607, -0.007668438367545605, -0.1831633299589157, 0.4024515748023987, -0.20859508216381073, 0.23472680151462555, -0.4163205623626709, -0.09984403103590012, -0.17376767098903656, -0.13505804538726807, -0.35752177238464355, 0.5084702968597412, -0.05026603490114212, 0.35322827100753784, -0.08855967223644257, -0.028010573238134384, 0.11356573551893234, 0.09163612872362137, 0.44542813301086426, -0.10156042873859406, -0.23628771305084229, -0.03838495910167694, 0.27324873208999634, 0.3471783399581909, -0.1548328697681427, -0.05955991894006729, 0.11473114788532257, -0.0937659740447998, -0.305617094039917, -0.12309882044792175, 0.13502025604248047, 0.237748920917511, 0.5968583226203918, -0.22700783610343933, -0.166797935962677, -0.1047327071428299, 0.5608092546463013, -0.3332357108592987, -0.11651288717985153, -0.051168251782655716, 0.40987858176231384, 0.054822348058223724, 0.0997840166091919, -0.24003486335277557, 0.41379567980766296, 0.1398812234401703, -0.39058610796928406, -0.16484999656677246, 0.002467688173055649, 0.1172022670507431, -0.29334381222724915, 0.0426698699593544, -0.3670490086078644, -0.11942663788795471, 0.12697619199752808, 0.05428268760442734, 0.1731959581375122, -0.10759076476097107, -0.015258174389600754, 0.2759132385253906, -0.24650120735168457, 0.6874191164970398, 0.05325667932629585, -0.5199983716011047, -0.029649578034877777, 0.07240366190671921, 0.3525431156158447, 0.13330517709255219, 0.024221379309892654, -0.07230846583843231, -0.21900279819965363, -0.03324855864048004, -0.41199958324432373, 0.211960569024086, -0.08369894325733185, 0.39596518874168396, 0.012727811932563782, 0.01448124647140503, -0.011426262557506561, -0.12745563685894012, 0.060047708451747894, -0.1624426543712616, -0.5828803777694702, -0.1820284128189087, 0.021395206451416016, -0.01756880432367325, 0.08569032698869705, 0.3645201325416565, -0.018709182739257812, -0.22935429215431213, 0.03901612013578415, -0.3160559833049774, -0.1595783233642578, -0.32168909907341003, -0.28930744528770447, 0.2833941578865051, -0.32288169860839844, 0.17565704882144928, -0.12267790734767914, -0.055429600179195404, -0.05471516400575638, 0.04610085487365723, -0.10909289121627808, -0.004122775048017502, 0.00841427594423294, 0.22105467319488525, 0.182968407869339, 0.1836368441581726, -0.16993892192840576, -0.043801553547382355, -0.1710020899772644, -0.023758964613080025, -0.028747383505105972, 0.581843912601471, 0.07387269288301468, 0.3687913715839386, 0.22461681067943573, -0.04566744342446327, 0.10852590948343277, 0.25802963972091675, 0.12599630653858185, 0.30410292744636536, 0.0026268139481544495, 0.4426373541355133, -0.18268322944641113, -0.03500285744667053, -0.10584206879138947, 0.12779124081134796, -0.027740437537431717, 0.1321176290512085, 0.1057635247707367, -0.1753787100315094, -0.09495079517364502, -0.005263391882181168, 0.10875387489795685, 0.36647820472717285, -0.34252721071243286, -0.3485372066497803, 0.1282232701778412, 0.0778544694185257, -0.09816189855337143, -0.07877252250909805, 0.18227198719978333, -0.035382773727178574, -0.1590311974287033, 0.16783608496189117, 0.03533616662025452, -0.3870275616645813, -0.1926216334104538, 0.028244704008102417, 0.3948740065097809, 0.031269315630197525, -0.4899245798587799, -0.22377249598503113, 0.2902979850769043, 0.15630532801151276, 0.15863439440727234, -0.12499360740184784, 0.17111718654632568, 0.5818682909011841, 0.16244114935398102, 0.13913102447986603, -0.036026015877723694, 0.24977460503578186, -0.2962174117565155, -0.1385936439037323, 0.3591984510421753, 0.4962323009967804, -0.31779274344444275, 0.07012346386909485, 0.19647924602031708, 0.07366609573364258, 0.08655589818954468, 0.07353770732879639, 0.020659327507019043, -0.22921231389045715, 0.03702192008495331, 0.022314999252557755, -0.15084867179393768, 0.16821753978729248, 0.10523316264152527, 0.13281765580177307, 0.0021785651333630085, 0.1194751113653183, -0.027792703360319138, 0.17321261763572693, -0.045062948018312454, -0.07098805159330368, -0.027377039194107056, 0.29305610060691833, 0.20302562415599823, -0.01839551329612732, -0.14309120178222656, -0.19801750779151917, 0.15770955383777618, 0.33881980180740356, 0.27203068137168884, 0.26208338141441345, 0.43587157130241394, -0.16782578825950623, 0.052726637572050095, -0.09101817011833191, -0.12902149558067322, -0.15407651662826538, 0.015737265348434448, -0.2296798974275589, -0.18824279308319092, 0.06093810498714447, 0.0027874745428562164, 0.041708651930093765, -0.1089114397764206, -0.12026935815811157, 0.237807959318161, -0.10233107209205627, 0.0736854150891304, 0.17582646012306213, -0.1136447861790657, -0.19252647459506989, 0.18887542188167572, -0.05332902818918228, 0.3200596272945404, 0.3009602427482605, -0.0698477178812027, 0.2412291169166565, 0.1271769404411316, -0.02452562376856804, -0.25535231828689575, 0.21518449485301971, 0.4262211322784424, 0.34797999262809753, -0.13115587830543518, 0.16950036585330963, -0.19883905351161957, 0.053128063678741455, -0.16448381543159485, 0.22720038890838623, 0.33821263909339905, 0.3163147568702698, -0.3079968988895416, -0.20952579379081726, 0.46140825748443604, 0.556914210319519, 0.03215031325817108, 0.5386590957641602, 0.1523461490869522, -0.1554844230413437, -0.46303990483283997, 0.007362401112914085, -0.003043457865715027, -0.337390661239624, 0.22706688940525055, 0.09241074323654175, -0.03562593460083008, -0.010150622576475143, 0.1722426861524582, 0.1312750279903412, -0.27415937185287476, 0.3313334286212921, 0.33382588624954224, -0.07329205423593521, -0.048117682337760925, 0.15692736208438873, -0.3059234619140625, -0.039972104132175446, -0.5270506143569946, -0.1893174946308136, -0.28579768538475037, -0.10782316327095032, -0.26140353083610535, -0.33457881212234497, -0.10157245397567749, 0.2463643103837967, 0.2668549120426178, 0.04169119521975517, -0.21556082367897034, 0.28002801537513733, -0.43845126032829285, 0.00029780715703964233, -0.018995068967342377, -0.08943065255880356, 0.17921264469623566, 0.02368747442960739, -0.2966304421424866, -0.2883656620979309, 0.5323400497436523, -0.3443337380886078, -0.19250881671905518, -0.504287838935852, 0.3939204514026642, 0.2632346451282501, 0.12758798897266388, -0.6056139469146729, -0.20959901809692383, 0.26968255639076233, 0.05223279446363449, -0.45148947834968567, -0.4445723593235016, 0.23028159141540527, 0.1378471702337265, -0.1336260437965393, -0.389281302690506, 0.4234299063682556, -0.013580504804849625, 0.15841737389564514, -0.2815929651260376 ]
https://github.com/huggingface/datasets/issues/2175
Hi ! No it happens sometimes to return -1, especially if your dataset is small. If your dataset is big enough it shouldn't happen in my experience. Ideally we should ignore all the -1 that are returned. It should be possible to change that in RAG's code
dataset.search_batch() function outputs all -1 indices sometime.
I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**. During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_rag.py#L231) an error issue when all retrieved indices are -1. Please refer to the screenshot of a PID worker. ![image](https://user-images.githubusercontent.com/16892570/113782387-37a67600-9786-11eb-9c29-acad661a9648.png) Here, my retrieve batch size is 2 and n_docs is 5. I can solve this by working around np. stack, but I want to ask, why we get an output index of -1. Do you have any idea :) ? Is this a problem of the index, where the faiss can't find any similar vector? Is there documentation on the output index being -1? @lhoestq
47
dataset.search_batch() function outputs all -1 indices sometime. I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**. During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_rag.py#L231) an error issue when all retrieved indices are -1. Please refer to the screenshot of a PID worker. ![image](https://user-images.githubusercontent.com/16892570/113782387-37a67600-9786-11eb-9c29-acad661a9648.png) Here, my retrieve batch size is 2 and n_docs is 5. I can solve this by working around np. stack, but I want to ask, why we get an output index of -1. Do you have any idea :) ? Is this a problem of the index, where the faiss can't find any similar vector? Is there documentation on the output index being -1? @lhoestq Hi ! No it happens sometimes to return -1, especially if your dataset is small. If your dataset is big enough it shouldn't happen in my experience. Ideally we should ignore all the -1 that are returned. It should be possible to change that in RAG's code
[ -0.019722647964954376, -0.4322834014892578, -0.08124154806137085, 0.04783058166503906, 0.21979759633541107, -0.09081800282001495, 0.31157323718070984, 0.2803555428981781, 0.13101203739643097, 0.4431150555610657, -0.25051605701446533, -0.15310955047607422, 0.09101849049329758, -0.07913516461849213, -0.1357802301645279, 0.05326589569449425, 0.2860962152481079, 0.3947463631629944, -0.10848383605480194, -0.5481681823730469, -0.34254586696624756, 0.06544597446918488, -0.08873287588357925, 0.39155784249305725, -0.2586424946784973, 0.23409444093704224, 0.011209651827812195, -0.11451126635074615, -0.2590104639530182, -0.4190976619720459, 0.5721327662467957, -0.3347858488559723, 0.5025038719177246, 0.15035401284694672, -0.00013128004502505064, 0.0766310840845108, 0.3688724935054779, -0.0625467374920845, -0.11172081530094147, -0.1611778289079666, -0.07398399710655212, 0.17447581887245178, 0.07250180095434189, -0.03858378529548645, 0.05625523626804352, -0.22734153270721436, 0.2482055425643921, -0.11484143882989883, -0.006282981485128403, 0.22856870293617249, 0.02204369567334652, 0.02275177836418152, -0.23561109602451324, 0.005363587290048599, 0.6570578813552856, -0.3688429296016693, 0.0722842812538147, -0.07498133182525635, 0.4281030595302582, 0.0015935078263282776, 0.09914645552635193, 0.1038108691573143, 0.02107851952314377, -0.0032234862446784973, -0.28519362211227417, 0.2080058455467224, 0.6046994924545288, -0.32063260674476624, 0.16414959728717804, 0.26899951696395874, 0.34006085991859436, -0.05086123198270798, -0.36053210496902466, 0.1214827299118042, 0.17933182418346405, -0.03783459588885307, -0.06862140446901321, 0.17956054210662842, -0.09935875982046127, 0.2582893967628479, -0.035082362592220306, 0.34495142102241516, -0.2938513457775116, 0.11868816614151001, 0.05710717290639877, 0.3514520525932312, 0.061433255672454834, 0.1458185464143753, 0.17006468772888184, 0.2510415315628052, 0.24811704456806183, 0.1212700605392456, 0.11079342663288116, 0.23530583083629608, -0.5594882369041443, -0.0144382044672966, 0.23808979988098145, -0.226846843957901, 0.12218096852302551, -0.3115229308605194, -0.2844862937927246, -0.01634969934821129, -0.15681883692741394, -0.06942771375179291, 0.14001327753067017, 0.04118473827838898, -0.09607529640197754, 0.12363076210021973, 0.30228251218795776, -0.4449906051158905, 0.02966972440481186, 0.06452032923698425, 0.14237913489341736, 0.02332386001944542, -0.04709253087639809, 0.13700944185256958, 0.047197505831718445, -0.3374825119972229, -0.36235567927360535, -0.14188304543495178, -0.303247332572937, 0.1603071391582489, -0.26242148876190186, 0.09670363366603851, 0.3457147181034088, 0.08321759104728699, -0.1061626747250557, 0.1414313167333603, -0.1822335124015808, -0.032825857400894165, -0.1593857854604721, -0.16367077827453613, -0.18205994367599487, 0.07225875556468964, 0.08879639208316803, -0.4495784044265747, -0.2080673724412918, 0.10577614605426788, -0.10523118078708649, 0.18181559443473816, 0.09216954559087753, -0.15590547025203705, 0.38552501797676086, 0.523918628692627, -0.14505866169929504, 0.3324653208255768, 0.11637341976165771, 0.08802032470703125, -0.03293062001466751, 0.0009646210819482803, 0.036685675382614136, -0.5844783782958984, 0.21380095183849335, 0.06069548800587654, 0.017486542463302612, 0.3481495678424835, 0.269848108291626, 0.21742576360702515, -0.24866054952144623, 0.3894500732421875, -0.04299566149711609, -0.4340241551399231, 0.044299811124801636, -0.05621909350156784, 0.253974050283432, 0.13598737120628357, -0.03872910887002945, 0.23696841299533844, 0.04199943318963051, -0.23903490602970123, 0.16744598746299744, 0.29648709297180176, 0.050646305084228516, 0.2838558554649353, -0.4702189564704895, 0.17726688086986542, 0.08938740938901901, -0.3046458661556244, -0.3688872754573822, 0.006100483238697052, -0.24538381397724152, -0.5936502814292908, 0.05169554799795151, 0.2751006484031677, 0.32440999150276184, 0.17002364993095398, 0.26763275265693665, 0.2598533034324646, -0.012802082113921642, -0.12085635215044022, -0.44102662801742554, -0.002312391996383667, 0.2443331778049469, -0.06594683229923248, 0.30607104301452637, 0.29459166526794434, 0.06563884019851685, -0.7135813236236572, 0.4023997485637665, 0.02805459499359131, 0.08393038809299469, -0.12379257380962372, 0.3473556935787201, 0.002705587074160576, 0.6791750192642212, -0.03884507715702057, -0.09127210080623627, 0.09931033849716187, -0.36151522397994995, 0.08211854845285416, 0.045140378177165985, -0.1641353815793991, -0.013160951435565948, -0.056607574224472046, 0.03501732647418976, 0.3031966984272003, -0.07960225641727448, -0.09478582441806793, 0.2517353296279907, -0.11568708717823029, -0.2033240795135498, 0.1115545928478241, -0.16136229038238525, -0.1303512305021286, -0.5231322646141052, 0.2891618013381958, 0.04983174800872803, -0.18920058012008667, 0.01715998351573944, 0.010507354512810707, 0.25658267736434937, -0.08577562868595123, -0.01810602843761444, 0.08277679979801178, -0.2165866196155548, -0.2311835139989853, 0.615242063999176, 0.02452298253774643, -0.20530052483081818, -0.43799322843551636, 0.13902346789836884, 0.4631357192993164, 0.14799398183822632, -0.19948863983154297, 0.2235160917043686, 0.28334373235702515, -0.2941744327545166, 0.42831212282180786, -0.18306803703308105, 0.004276804625988007, 0.06521100550889969, 0.12076246738433838, -0.13618063926696777, -0.1715678572654724, 0.08418502658605576, -0.18067315220832825, -0.07897529006004333, 0.034360967576503754, -0.23600870370864868, 0.05758204311132431, -0.0935293436050415, -0.39330703020095825, 0.006413505412638187, 0.26766476035118103, 0.037496209144592285, -0.0007018521428108215, 0.13162897527217865, -0.20414958894252777, 0.35023510456085205, 0.1771639883518219, -0.1632460653781891, -0.22393949329853058, -0.2237662374973297, -0.14917773008346558, 0.07400523126125336, 0.13702133297920227, -0.1925208866596222, 0.164424329996109, 0.2711193561553955, -0.10441610217094421, -0.3035339117050171, -0.20416781306266785, -0.4468979239463806, 0.28020498156547546, -0.2310410439968109, -0.021375145763158798, -0.015734154731035233, 0.05365678668022156, -0.3988627791404724, -0.0704352855682373, 0.018925033509731293, -0.048669569194316864, 0.15977153182029724, -0.3013109862804413, -0.014757916331291199, 0.00040110573172569275, -0.12528488039970398, 0.20681175589561462, -0.020749181509017944, 0.3305431306362152, -0.5354224443435669, 0.0539761483669281, -0.4510931968688965, -0.2239985466003418, -0.5155102610588074, 0.2345588505268097, 0.0440516397356987, -0.044537756592035294, -0.4874235987663269, -0.405134379863739, 0.16485688090324402, 0.03894416615366936, -0.11756061017513275, -0.08932424336671829, 0.2565193176269531, 0.019446277990937233, -0.17565450072288513, 0.2952638268470764, -0.004065237939357758, 0.023181967437267303, -0.13105571269989014, 0.21287333965301514, -0.2988217771053314, 0.32438719272613525, -0.22685877978801727, -0.3331539034843445, -0.0371430329978466, -0.04388778656721115, 0.08109840750694275, -0.3079705238342285, 0.06397324055433273, 0.016299329698085785, 0.09800232201814651, -0.14629364013671875, -0.0720573142170906, -0.029819145798683167, -0.16228313744068146, -0.20979934930801392, 0.2825421988964081, 0.36569905281066895, -0.3144032955169678, -0.30579593777656555, -0.21151699125766754, -0.5170465707778931, 0.5374630689620972, -0.13174642622470856, -0.12139744311571121, 0.0975358784198761, -0.01995139569044113, 0.08722136914730072, 0.4435061812400818, 0.09762206673622131, -0.09278014302253723, -0.03234796226024628, -0.22072851657867432, -0.0921771228313446, 0.30346763134002686, 0.03617998957633972, 0.32366514205932617, 0.07134360074996948, -0.04286230355501175, -0.2759239077568054, 0.6984179019927979, 0.15451303124427795, -0.11293900012969971, -0.036844272166490555, 0.18659527599811554, 0.13471783697605133, 0.15373574197292328, 0.039546653628349304, 0.21002164483070374, 0.1850566565990448, -0.41417574882507324, -0.05946510285139084, -0.06316486746072769, 0.11154831945896149, 0.2609257102012634, 0.1311182677745819, -0.08007622510194778, -0.1254226565361023, -0.02584865316748619, 0.2546733319759369, 0.22248965501785278, 0.04654184728860855, 0.17556408047676086, -0.04448803514242172, 0.06487250328063965, 0.1899704486131668, 0.06018160656094551, 0.1394728720188141, 0.25213494896888733, 0.35751593112945557, -0.5147717595100403, -0.43273958563804626, 0.19615846872329712, -0.037975240498781204, 0.38393181562423706, 0.29271188378334045, 0.14129863679409027, 0.480246901512146, 0.26874589920043945, 1.2012717723846436, -0.19943198561668396, 0.1968933343887329, 0.209041565656662, 0.12120853364467621, -0.21117493510246277, -0.4662037193775177, -0.37621912360191345, 0.117950439453125, 0.26258668303489685, 0.31409627199172974, -0.12139839679002762, -0.22037702798843384, 0.32503068447113037, 0.004449080675840378, -0.03416318818926811, -0.5240986943244934, -0.3997715711593628, -0.3855201005935669, 0.40100425481796265, 0.21553871035575867, -0.003957830369472504, -0.00786084309220314, -0.10930820554494858, -0.348036527633667, -0.26817774772644043, 0.09217705577611923, 0.009328965097665787, 0.021095652133226395, 0.1582898497581482, -0.09854862838983536, 0.07326222956180573, 0.5732539892196655, 0.01434409525245428, 0.02522081322968006, 0.006419253535568714, -0.3854685425758362, 0.1318615972995758, 0.05194053798913956, -0.2821502089500427, 0.1654086709022522, 0.3774559497833252, -0.07210256159305573, -0.04765588790178299, -0.11101141571998596, 0.15195921063423157, -0.03526503965258598, -0.23692506551742554, 0.3207530975341797, 0.104084312915802, -0.2557939291000366, -0.2596054673194885, 0.6877690553665161, -0.21667537093162537, -0.28210532665252686, 0.0394139401614666, 0.28320616483688354, -0.1812400072813034, 0.8766029477119446, 0.2455628365278244, 1.0091710090637207, -0.18436844646930695, 0.0763750746846199, 0.004868540912866592, -0.07803089171648026, 0.3902861177921295, -0.16102111339569092, 0.32907500863075256, -0.3745317757129669, 0.01789853721857071, -0.1573522984981537, -0.14096158742904663, -0.4308478534221649, 0.46915173530578613, 0.010176792740821838, 0.33173516392707825, -0.049672454595565796, -0.14180567860603333, 0.11411556601524353, 0.014996454119682312, 0.4707395136356354, -0.14380212128162384, -0.26501142978668213, -0.04568595811724663, 0.21879874169826508, 0.3855184018611908, -0.12496975064277649, -0.06349041312932968, 0.13405928015708923, 0.012397542595863342, -0.2642599642276764, -0.20530806481838226, 0.17482209205627441, 0.247835174202919, 0.6476365923881531, -0.29191654920578003, -0.1821456253528595, -0.10853730887174606, 0.5909501910209656, -0.28572919964790344, -0.028766632080078125, -0.14085635542869568, 0.3821341395378113, 0.06094162166118622, 0.06090794876217842, -0.21606135368347168, 0.30163106322288513, 0.1459929645061493, -0.41380730271339417, -0.062054794281721115, 0.052966680377721786, 0.14210325479507446, -0.21849632263183594, 0.12493205070495605, -0.2946154773235321, -0.058899715542793274, 0.1669800579547882, 0.12281361222267151, 0.20056626200675964, -0.11209269613027573, -0.028054336085915565, 0.29764997959136963, -0.2442922741174698, 0.6148092746734619, 0.025306889787316322, -0.5982123017311096, 0.001728082075715065, 0.005856722593307495, 0.3548899292945862, 0.11540636420249939, -0.000014293007552623749, -0.07473877817392349, -0.13682526350021362, -0.018842652440071106, -0.42535990476608276, 0.200556218624115, -0.11144158989191055, 0.38634517788887024, 0.01714359223842621, -0.03142443299293518, -0.030569540336728096, -0.17840337753295898, 0.007511677220463753, -0.12055995315313339, -0.6033826470375061, -0.12589620053768158, -0.07300711423158646, -0.04149475693702698, 0.05075793340802193, 0.28739768266677856, 0.03487198054790497, -0.21759946644306183, 0.054243192076683044, -0.42366665601730347, -0.14109469950199127, -0.3288079500198364, -0.27300751209259033, 0.33940356969833374, -0.3267074227333069, 0.07064369320869446, -0.2071160078048706, -0.014403410255908966, -0.025937488302588463, 0.017540503293275833, -0.17183087766170502, -0.0019627250730991364, 0.06337399780750275, 0.2224036455154419, 0.14067167043685913, 0.2365950345993042, -0.21387676894664764, -0.015044022351503372, -0.131072998046875, 0.02328646183013916, 0.0718831866979599, 0.6227107644081116, 0.10438807308673859, 0.22323134541511536, 0.17872516810894012, -0.11642006039619446, 0.07089759409427643, 0.15966956317424774, 0.1794397085905075, 0.1937539428472519, 0.019263412803411484, 0.4420149326324463, -0.1910337209701538, -0.03974863141775131, -0.1664542406797409, 0.04113658890128136, -0.10196676105260849, 0.10387852787971497, 0.0475216768682003, -0.1832730770111084, -0.09662337601184845, 0.05506310984492302, 0.05867937207221985, 0.2841099202632904, -0.32652923464775085, -0.325260192155838, 0.11672680079936981, 0.07482118904590607, -0.07464037835597992, 0.022998709231615067, 0.11928492784500122, 0.047948021441698074, -0.16777031123638153, 0.18031883239746094, -0.09069909900426865, -0.3160066604614258, -0.13559192419052124, 0.07825205475091934, 0.4261505603790283, 0.0611954927444458, -0.45276474952697754, -0.38258790969848633, 0.29015177488327026, 0.1490912288427353, 0.19673599302768707, -0.05913262069225311, 0.14515163004398346, 0.6113202571868896, 0.12175166606903076, 0.11075389385223389, -0.011349578388035297, 0.19959597289562225, -0.37152209877967834, -0.13446077704429626, 0.33947470784187317, 0.5218441486358643, -0.349031537771225, 0.05087433010339737, 0.29304832220077515, 0.1431475430727005, -0.0056759268045425415, 0.07803180068731308, 0.08070522546768188, -0.2815238833427429, 0.01903369463980198, 0.02919374778866768, -0.1254895180463791, 0.25481870770454407, 0.1008758544921875, 0.21515601873397827, 0.017000019550323486, 0.12448126077651978, 0.09943294525146484, 0.19514314830303192, -0.059592898935079575, -0.01925574615597725, -0.1417934000492096, 0.43726804852485657, 0.15374168753623962, 0.04268617182970047, -0.14261537790298462, -0.23691286146640778, 0.09180578589439392, 0.33380943536758423, 0.24615594744682312, 0.24343052506446838, 0.43061986565589905, -0.19360245764255524, 0.15575191378593445, -0.14357337355613708, -0.12131798267364502, -0.16254904866218567, -0.10959519445896149, -0.229134202003479, -0.0706922635436058, -0.025798622518777847, 0.016409270465373993, 0.040995948016643524, -0.08405975252389908, -0.09742365777492523, 0.34909531474113464, -0.1354081630706787, 0.034718144685029984, 0.1858806610107422, -0.045569904148578644, -0.23632143437862396, 0.15765072405338287, -0.11875467747449875, 0.3110812306404114, 0.2012789249420166, -0.09697285294532776, 0.12268178164958954, 0.09820257872343063, -0.026250919327139854, -0.29524821043014526, 0.1485583633184433, 0.40279731154441833, 0.3613176941871643, -0.15471991896629333, 0.22386883199214935, -0.1267789602279663, 0.09003449231386185, -0.14114409685134888, 0.2908811569213867, 0.3600699007511139, 0.3362486660480499, -0.3147237002849579, -0.16186386346817017, 0.452650249004364, 0.572144091129303, -0.02336837351322174, 0.5273841023445129, 0.13731461763381958, -0.06444980204105377, -0.4178002178668976, -0.02030165120959282, -0.006660964339971542, -0.2597430944442749, 0.32394325733184814, 0.10098522901535034, -0.018607333302497864, 0.045934196561574936, 0.09465353190898895, 0.17544908821582794, -0.2559637129306793, 0.35420161485671997, 0.22559450566768646, -0.10320115834474564, 0.04055948555469513, 0.18071159720420837, -0.3297010660171509, -0.07462632656097412, -0.46741631627082825, -0.23278646171092987, -0.25862377882003784, -0.11156819015741348, -0.2286156713962555, -0.2888633906841278, -0.08950608968734741, 0.3101375997066498, 0.2296525537967682, 0.07008317112922668, -0.1351109892129898, 0.2806587219238281, -0.4428519606590271, -0.0036484934389591217, -0.020424462854862213, -0.07586567103862762, 0.260893315076828, -0.031624820083379745, -0.3340320289134979, -0.2992795705795288, 0.48455625772476196, -0.33526289463043213, -0.25522586703300476, -0.45491477847099304, 0.456624835729599, 0.3513975739479065, 0.18305706977844238, -0.6376386880874634, -0.2375076413154602, 0.18059852719306946, 0.03408040106296539, -0.38833752274513245, -0.45419201254844666, 0.2193974107503891, 0.13353782892227173, -0.14331093430519104, -0.41495513916015625, 0.4335046708583832, 0.03496972471475601, 0.23822417855262756, -0.3442324995994568 ]
https://github.com/huggingface/datasets/issues/2175
I also checked with some indexes it returns more -1s. Specially with IVF when nprobr is very low. It doesn't happen when using HNSW though. But at the moment if it happens, dataset will always return the last element. Maybe we should change it to repeat the most last valid retrieved doc id. What do you think? On Wed, Apr 7, 2021, 21:09 Quentin Lhoest ***@***.***> wrote: > Hi ! > No it happens sometimes to return -1, especially if your dataset is small. > If your dataset is big enough it shouldn't happen. > > Ideally we should ignore all the -1 that are returned. It should be > possible to change that in RAG's code > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2175#issuecomment-814746509>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AEA4FGTENOTLBEZTXEO2RS3THQOMPANCNFSM42PRVYDA> > . >
dataset.search_batch() function outputs all -1 indices sometime.
I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**. During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_rag.py#L231) an error issue when all retrieved indices are -1. Please refer to the screenshot of a PID worker. ![image](https://user-images.githubusercontent.com/16892570/113782387-37a67600-9786-11eb-9c29-acad661a9648.png) Here, my retrieve batch size is 2 and n_docs is 5. I can solve this by working around np. stack, but I want to ask, why we get an output index of -1. Do you have any idea :) ? Is this a problem of the index, where the faiss can't find any similar vector? Is there documentation on the output index being -1? @lhoestq
150
dataset.search_batch() function outputs all -1 indices sometime. I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**. During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_rag.py#L231) an error issue when all retrieved indices are -1. Please refer to the screenshot of a PID worker. ![image](https://user-images.githubusercontent.com/16892570/113782387-37a67600-9786-11eb-9c29-acad661a9648.png) Here, my retrieve batch size is 2 and n_docs is 5. I can solve this by working around np. stack, but I want to ask, why we get an output index of -1. Do you have any idea :) ? Is this a problem of the index, where the faiss can't find any similar vector? Is there documentation on the output index being -1? @lhoestq I also checked with some indexes it returns more -1s. Specially with IVF when nprobr is very low. It doesn't happen when using HNSW though. But at the moment if it happens, dataset will always return the last element. Maybe we should change it to repeat the most last valid retrieved doc id. What do you think? On Wed, Apr 7, 2021, 21:09 Quentin Lhoest ***@***.***> wrote: > Hi ! > No it happens sometimes to return -1, especially if your dataset is small. > If your dataset is big enough it shouldn't happen. > > Ideally we should ignore all the -1 that are returned. It should be > possible to change that in RAG's code > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2175#issuecomment-814746509>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AEA4FGTENOTLBEZTXEO2RS3THQOMPANCNFSM42PRVYDA> > . >
[ -0.03521934151649475, -0.3799372613430023, -0.047816477715969086, 0.042572420090436935, 0.15346068143844604, -0.08229726552963257, 0.29746100306510925, 0.35949432849884033, 0.15454953908920288, 0.40005624294281006, -0.2719641923904419, -0.13553066551685333, 0.18018467724323273, -0.11624775826931, -0.10425309091806412, 0.017687328159809113, 0.2510518729686737, 0.41170087456703186, -0.023893505334854126, -0.5655052661895752, -0.347292959690094, 0.0554175078868866, -0.16217005252838135, 0.35666152834892273, -0.2797410190105438, 0.20795637369155884, -0.026015207171440125, -0.11031030118465424, -0.2564625144004822, -0.4766809046268463, 0.594305157661438, -0.2659980058670044, 0.48454397916793823, 0.155832901597023, -0.000131539796711877, 0.044687628746032715, 0.3873680830001831, -0.008837930858135223, -0.14380887150764465, -0.18188771605491638, -0.1090586706995964, 0.14462384581565857, 0.04323536157608032, -0.055454038083553314, 0.023652248084545135, -0.24602867662906647, 0.2300867736339569, -0.14839601516723633, -0.023396681994199753, 0.26029083132743835, 0.004412207752466202, 0.10530557483434677, -0.16525426506996155, 0.041458360850811005, 0.6535947918891907, -0.29395970702171326, 0.08501963317394257, -0.05077746883034706, 0.4610896408557892, -0.034609124064445496, 0.0753294825553894, 0.18815094232559204, -0.0013296529650688171, 0.016123436391353607, -0.238020122051239, 0.29589664936065674, 0.5326975584030151, -0.29213955998420715, 0.20759525895118713, 0.3135940730571747, 0.46420931816101074, -0.05972125381231308, -0.3771156072616577, 0.041651904582977295, 0.1993483304977417, -0.04070448875427246, -0.01110190898180008, 0.1670992225408554, -0.09562990069389343, 0.27094823122024536, -0.042373668402433395, 0.35210034251213074, -0.3264372646808624, 0.219214528799057, 0.05221342295408249, 0.2759842276573181, 0.009275034070014954, 0.10889361798763275, 0.20604544878005981, 0.2290038764476776, 0.24746942520141602, 0.06325878202915192, 0.07850560545921326, 0.2596686780452728, -0.5432364344596863, -0.044799014925956726, 0.231113463640213, -0.14917589724063873, 0.16837358474731445, -0.33056437969207764, -0.27833548188209534, -0.045158304274082184, -0.17756377160549164, -0.10954170674085617, 0.22848765552043915, 0.06025153398513794, -0.06607985496520996, 0.18123984336853027, 0.295442134141922, -0.42745304107666016, 0.01216965913772583, 0.03891383484005928, 0.1758260279893875, 0.008305229246616364, -0.035868167877197266, 0.08133645355701447, 0.06190811097621918, -0.36790159344673157, -0.33161357045173645, -0.10074025392532349, -0.28081849217414856, 0.1629868894815445, -0.27309587597846985, 0.13170360028743744, 0.3634672462940216, 0.14635974168777466, -0.08048443496227264, 0.1096704751253128, -0.2068977952003479, -0.06222163885831833, -0.11175396293401718, -0.17695695161819458, -0.22721631824970245, 0.0936458483338356, 0.10303719341754913, -0.4674133360385895, -0.21224446594715118, 0.11815626919269562, -0.10834045708179474, 0.16801723837852478, 0.06290300190448761, -0.159971222281456, 0.4342665374279022, 0.5060640573501587, -0.16512379050254822, 0.3369479179382324, 0.10495762526988983, 0.02152959257364273, -0.07375285029411316, -0.015576940029859543, 0.004088422283530235, -0.5431575179100037, 0.14118875563144684, 0.042284246534109116, 0.08652614057064056, 0.27345964312553406, 0.2544468641281128, 0.23921184241771698, -0.19346001744270325, 0.3121079206466675, 0.0012691430747509003, -0.4304850995540619, -0.029275186359882355, -0.018434442579746246, 0.21376371383666992, 0.24217355251312256, -0.06267374008893967, 0.2080487310886383, -0.00028592348098754883, -0.12124836444854736, 0.11994326114654541, 0.35335323214530945, 0.03388335928320885, 0.30210721492767334, -0.5125041007995605, 0.21156391501426697, 0.0529591403901577, -0.41023266315460205, -0.4800128936767578, 0.0852879136800766, -0.2135838270187378, -0.4950403571128845, 0.04508201405405998, 0.2997730076313019, 0.3912864029407501, 0.15242019295692444, 0.17989365756511688, 0.21902547776699066, -0.009427433833479881, -0.12385129928588867, -0.4738117754459381, -0.020302828401327133, 0.16596367955207825, -0.06414414197206497, 0.29357752203941345, 0.29891037940979004, 0.05911216884851456, -0.665115475654602, 0.5013082027435303, 0.04303359612822533, 0.06599616259336472, -0.1130269318819046, 0.3581509292125702, 0.007445359602570534, 0.6426559686660767, -0.05027438700199127, -0.17802995443344116, 0.09409986436367035, -0.21645745635032654, 0.09103678166866302, 0.03036375716328621, -0.19744735956192017, -0.006567761301994324, -0.07601835578680038, -0.013374920934438705, 0.2669552266597748, -0.10852047801017761, -0.08451332896947861, 0.23474469780921936, -0.11799748241901398, -0.2005397379398346, 0.13963544368743896, -0.19236469268798828, -0.11655039340257645, -0.5885258913040161, 0.29177460074424744, 0.04714147001504898, -0.12169724702835083, 0.012312591075897217, -0.025952018797397614, 0.24526861310005188, -0.06732387840747833, -0.014078030362725258, 0.07870696485042572, -0.16227374970912933, -0.2337721586227417, 0.6361715197563171, 0.08797527849674225, -0.14302799105644226, -0.4997430443763733, 0.16861015558242798, 0.42232388257980347, 0.10806182026863098, -0.16740816831588745, 0.08559578657150269, 0.28180980682373047, -0.24994561076164246, 0.3955378532409668, -0.17104077339172363, 0.00013925135135650635, 0.0027462616562843323, 0.10905669629573822, -0.16799959540367126, -0.2835785448551178, 0.09631292521953583, -0.16645154356956482, 0.027606435120105743, 0.00021683424711227417, -0.2364962100982666, 0.1579594612121582, 0.04165245592594147, -0.4263932406902313, -0.03534846752882004, 0.31832584738731384, 0.04576614126563072, -0.0429297611117363, 0.08152280747890472, -0.18165864050388336, 0.3200334310531616, 0.2101314514875412, -0.11901385337114334, -0.19370035827159882, -0.21151264011859894, -0.1423909068107605, 0.14881053566932678, 0.13081485033035278, -0.2229638397693634, 0.21952398121356964, 0.23868636786937714, -0.06704088300466537, -0.3496907949447632, -0.17298442125320435, -0.44608139991760254, 0.2864307761192322, -0.2928531765937805, -0.025886204093694687, -0.017516106367111206, 0.007254615426063538, -0.3990919888019562, -0.17141315340995789, 0.012936294078826904, -0.09544640779495239, 0.15562032163143158, -0.2962566316127777, 0.0372464656829834, 0.028577685356140137, -0.1710749864578247, 0.2711132764816284, -0.001182645559310913, 0.31992998719215393, -0.5916767716407776, 0.0757884830236435, -0.45366203784942627, -0.2365647852420807, -0.4173087775707245, 0.24272578954696655, 0.09158435463905334, -0.053446680307388306, -0.4779874086380005, -0.47582417726516724, 0.06254890561103821, 0.08820310235023499, -0.08284474909305573, -0.0033015944063663483, 0.28535351157188416, 0.024389224126935005, -0.17910180985927582, 0.2776325047016144, -0.040696024894714355, -0.0596281960606575, -0.13434402644634247, 0.1894850730895996, -0.284275084733963, 0.3387926518917084, -0.14258962869644165, -0.3792661726474762, -0.03558925911784172, -0.048461511731147766, 0.0492442362010479, -0.30148911476135254, 0.08412942290306091, 0.13592886924743652, 0.09262032806873322, -0.12237648665904999, -0.05795698240399361, -0.058988429605960846, -0.1991790235042572, -0.26595842838287354, 0.2765994668006897, 0.3525116443634033, -0.32704290747642517, -0.3649880886077881, -0.20875561237335205, -0.49851202964782715, 0.4951011538505554, -0.21425041556358337, -0.0898168683052063, 0.049526460468769073, 0.07541613280773163, 0.09162382781505585, 0.45821696519851685, 0.09855008125305176, -0.12850752472877502, -0.03322089463472366, -0.2222563475370407, -0.0068692490458488464, 0.2888505160808563, 0.005780352279543877, 0.2680352032184601, 0.11827509105205536, -0.008581097237765789, -0.28065744042396545, 0.6924844980239868, 0.24542441964149475, -0.10943357646465302, 0.0033002905547618866, 0.17484642565250397, 0.18346568942070007, 0.08504290878772736, -0.05111471563577652, 0.18429183959960938, 0.12421351671218872, -0.3602144718170166, -0.0015489943325519562, -0.022711848840117455, 0.12544724345207214, 0.26214197278022766, 0.06514764577150345, -0.1408730149269104, -0.19068148732185364, 0.016057739034295082, 0.2723435163497925, 0.19031427800655365, 0.06449344754219055, 0.20085932314395905, -0.07139657437801361, 0.06262348592281342, 0.1590748280286789, 0.13085204362869263, 0.1889721155166626, 0.2279016077518463, 0.37488558888435364, -0.3430370092391968, -0.4709906280040741, 0.21466341614723206, -0.03796751797199249, 0.3748730719089508, 0.2928197383880615, 0.1698247492313385, 0.47619810700416565, 0.26784980297088623, 1.2380460500717163, -0.22073277831077576, 0.23977378010749817, 0.21093589067459106, 0.06847058236598969, -0.13333401083946228, -0.393383264541626, -0.38353854417800903, 0.053918566554784775, 0.2844850420951843, 0.29519325494766235, -0.1307266652584076, -0.24515821039676666, 0.3851926922798157, -0.04329364746809006, -0.022520408034324646, -0.5602549314498901, -0.34472203254699707, -0.33036330342292786, 0.36079511046409607, 0.21422144770622253, -0.01675352454185486, -0.03567175567150116, -0.08632475137710571, -0.3638095259666443, -0.2606257498264313, 0.03192773461341858, -0.004061225801706314, -0.0172438807785511, 0.1569555103778839, -0.03519906848669052, 0.1268288940191269, 0.5927979350090027, 0.05632396414875984, 0.13548001646995544, 0.04660152643918991, -0.4220656752586365, 0.11499352753162384, 0.0003928057849407196, -0.3203994035720825, 0.14399778842926025, 0.4571458399295807, -0.05280866473913193, -0.04790913313627243, -0.02344193123281002, 0.18166370689868927, -0.04258711636066437, -0.24622520804405212, 0.34281179308891296, 0.1262637823820114, -0.30597561597824097, -0.30641496181488037, 0.7411090731620789, -0.18553510308265686, -0.26720669865608215, 0.10693497955799103, 0.410917192697525, -0.22649717330932617, 0.7764759063720703, 0.235763818025589, 1.0908923149108887, -0.1659916639328003, 0.09715691953897476, 0.030479498207569122, -0.11512438952922821, 0.445453405380249, -0.18034198880195618, 0.2873796224594116, -0.4076923429965973, -0.05889400094747543, -0.16097161173820496, -0.12203176319599152, -0.38679075241088867, 0.4929744303226471, -0.01342877745628357, 0.2915371060371399, -0.032784782350063324, -0.13029155135154724, 0.11764917522668839, 0.13523739576339722, 0.426361083984375, -0.17747241258621216, -0.3494230806827545, -0.06464514136314392, 0.19640988111495972, 0.3611923158168793, -0.08172585070133209, -0.05561939626932144, 0.1696477234363556, -0.06552043557167053, -0.30799776315689087, -0.19578348100185394, 0.16684463620185852, 0.24838149547576904, 0.6050920486450195, -0.2735132575035095, -0.09261543303728104, -0.11077551543712616, 0.5516931414604187, -0.2731858193874359, -0.08252939581871033, -0.10574305057525635, 0.3689369559288025, 0.08189555257558823, 0.10001415014266968, -0.26339951157569885, 0.4028351604938507, 0.1485239714384079, -0.41835227608680725, -0.12641456723213196, 0.09185367822647095, 0.10447417199611664, -0.19905202090740204, 0.03998393565416336, -0.2782662510871887, -0.12740400433540344, 0.14786368608474731, 0.11528846621513367, 0.17040129005908966, -0.12565256655216217, -0.04173346236348152, 0.25702178478240967, -0.228367418050766, 0.600951611995697, 0.02297789603471756, -0.552016019821167, -0.025827527046203613, 0.07556290924549103, 0.338990181684494, 0.09003157913684845, 0.024029593914747238, -0.0063299089670181274, -0.1868756115436554, -0.03732966631650925, -0.37339064478874207, 0.271714448928833, -0.19180260598659515, 0.3643742501735687, 0.03097805380821228, 0.014221101999282837, -0.002592165023088455, -0.16661575436592102, -0.006824259180575609, -0.13688461482524872, -0.6075828075408936, -0.15454480051994324, -0.09805198758840561, 0.00545002706348896, 0.05850835144519806, 0.33798453211784363, 0.05259694159030914, -0.17130514979362488, 0.024596333503723145, -0.36618608236312866, -0.14175759255886078, -0.30393725633621216, -0.2061251401901245, 0.30664747953414917, -0.28347453474998474, 0.07533152401447296, -0.14920996129512787, -0.07444734871387482, -0.038226351141929626, 0.012811288237571716, -0.15304166078567505, 0.005913011729717255, 0.028461888432502747, 0.23105069994926453, 0.12683391571044922, 0.16787779331207275, -0.1572222113609314, -0.04145241156220436, -0.18512293696403503, -0.051141805946826935, 0.09290428459644318, 0.6247395277023315, 0.1384485810995102, 0.2274683117866516, 0.17121699452400208, -0.14969515800476074, 0.09279942512512207, 0.17316076159477234, 0.17579488456249237, 0.19084486365318298, 0.03369176760315895, 0.4374406337738037, -0.2129030078649521, -0.011223562061786652, -0.1696377396583557, 0.1339259147644043, -0.051263317465782166, 0.08515173196792603, 0.08768129348754883, -0.19784006476402283, -0.12832573056221008, 0.05891125649213791, 0.11641612648963928, 0.31777772307395935, -0.3164217472076416, -0.3802133798599243, 0.06903447210788727, 0.05892517790198326, -0.11550144851207733, -0.054094359278678894, 0.12888029217720032, 0.008974455296993256, -0.1514481157064438, 0.1617998480796814, -0.08156374096870422, -0.3397395610809326, -0.1452523022890091, 0.031104810535907745, 0.4814716577529907, 0.016914300620555878, -0.4494761824607849, -0.2749433219432831, 0.2550407648086548, 0.1599332094192505, 0.14523418247699738, -0.05679817125201225, 0.14409540593624115, 0.6504954695701599, 0.06116833537817001, 0.09515538811683655, -0.004495090339332819, 0.25468581914901733, -0.35079145431518555, -0.12052637338638306, 0.3938991129398346, 0.5549640655517578, -0.365835964679718, 0.11447493731975555, 0.30323854088783264, 0.059079237282276154, 0.04981385916471481, 0.034751083701848984, 0.025807760655879974, -0.26543399691581726, 0.05352700501680374, 0.04506104439496994, -0.1681104153394699, 0.24216392636299133, 0.07187654078006744, 0.22194211184978485, -0.06125827133655548, 0.13216882944107056, 0.05729776620864868, 0.19272825121879578, -0.05937236174941063, -0.09587151557207108, -0.10272711515426636, 0.3466026484966278, 0.24140360951423645, -0.02031020075082779, -0.0924159437417984, -0.22608284652233124, 0.1413005143404007, 0.2834901213645935, 0.2858726680278778, 0.2577604353427887, 0.4385696351528168, -0.10071463882923126, 0.13427215814590454, -0.14036190509796143, -0.11256934702396393, -0.1482645571231842, -0.07069350779056549, -0.25386935472488403, -0.12016069889068604, 0.006401397287845612, -0.00043781474232673645, 0.06681165099143982, -0.11400357633829117, -0.0617009662091732, 0.3319975435733795, -0.2130601704120636, -0.04383204132318497, 0.17632004618644714, -0.07996433973312378, -0.20921051502227783, 0.1814577877521515, -0.08621849864721298, 0.3858226537704468, 0.23779410123825073, -0.07247940450906754, 0.13833139836788177, 0.10767775774002075, -0.022873226553201675, -0.2899656891822815, 0.16098041832447052, 0.4326782822608948, 0.3409770429134369, -0.18194244801998138, 0.19366146624088287, -0.19423595070838928, 0.06957606971263885, -0.12000701576471329, 0.19690212607383728, 0.3757031261920929, 0.2980356514453888, -0.2654167413711548, -0.18848253786563873, 0.456973671913147, 0.5234506130218506, -0.03456275537610054, 0.5137479901313782, 0.1578453779220581, -0.08581173419952393, -0.44820594787597656, 0.0031460728496313095, -0.042922183871269226, -0.32786235213279724, 0.3053080439567566, 0.13650310039520264, -0.06282752752304077, 0.004430366680026054, 0.21339401602745056, 0.16147315502166748, -0.2566324472427368, 0.30235645174980164, 0.2806190252304077, -0.08122287690639496, -0.004102848470211029, 0.1284438818693161, -0.3599645495414734, -0.07007917016744614, -0.5363731980323792, -0.12719430029392242, -0.1923542618751526, -0.062367942184209824, -0.20787420868873596, -0.35852327942848206, -0.10561662912368774, 0.23349186778068542, 0.2771332263946533, 0.12714576721191406, -0.18196061253547668, 0.27905720472335815, -0.439017653465271, 0.015822619199752808, -0.06368967145681381, -0.01780064031481743, 0.24501532316207886, 0.017568908631801605, -0.34336018562316895, -0.33176088333129883, 0.4912694990634918, -0.4107954800128937, -0.23063141107559204, -0.4675193428993225, 0.4894466996192932, 0.36039453744888306, 0.12441778928041458, -0.6537604331970215, -0.26109588146209717, 0.23949767649173737, 0.02265295386314392, -0.4419298470020294, -0.3901980519294739, 0.24655991792678833, 0.151291623711586, -0.140343576669693, -0.3127257227897644, 0.4764631390571594, -0.029866185039281845, 0.22197791934013367, -0.3673062026500702 ]
https://github.com/huggingface/datasets/issues/2175
That would be an easy way to workaround this issue. Feel free to open a PR on `transformers` and ping me ! :)
dataset.search_batch() function outputs all -1 indices sometime.
I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**. During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_rag.py#L231) an error issue when all retrieved indices are -1. Please refer to the screenshot of a PID worker. ![image](https://user-images.githubusercontent.com/16892570/113782387-37a67600-9786-11eb-9c29-acad661a9648.png) Here, my retrieve batch size is 2 and n_docs is 5. I can solve this by working around np. stack, but I want to ask, why we get an output index of -1. Do you have any idea :) ? Is this a problem of the index, where the faiss can't find any similar vector? Is there documentation on the output index being -1? @lhoestq
23
dataset.search_batch() function outputs all -1 indices sometime. I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**. During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_rag.py#L231) an error issue when all retrieved indices are -1. Please refer to the screenshot of a PID worker. ![image](https://user-images.githubusercontent.com/16892570/113782387-37a67600-9786-11eb-9c29-acad661a9648.png) Here, my retrieve batch size is 2 and n_docs is 5. I can solve this by working around np. stack, but I want to ask, why we get an output index of -1. Do you have any idea :) ? Is this a problem of the index, where the faiss can't find any similar vector? Is there documentation on the output index being -1? @lhoestq That would be an easy way to workaround this issue. Feel free to open a PR on `transformers` and ping me ! :)
[ -0.02550823986530304, -0.43428853154182434, -0.06778895854949951, 0.07370935380458832, 0.2557210922241211, -0.0868850126862526, 0.3684980273246765, 0.2831260859966278, 0.07728279381990433, 0.4528712034225464, -0.2223183810710907, -0.19843067228794098, 0.044837672263383865, -0.06366045773029327, -0.1257002055644989, -0.006847062148153782, 0.28163424134254456, 0.41386914253234863, -0.15383607149124146, -0.506052553653717, -0.28466856479644775, 0.09192310273647308, -0.09964659810066223, 0.33833593130111694, -0.28174883127212524, 0.24580234289169312, 0.019947096705436707, -0.1887715607881546, -0.22535929083824158, -0.4320184588432312, 0.584690272808075, -0.3023686408996582, 0.48349499702453613, 0.2854871451854706, -0.00013205327559262514, 0.13871419429779053, 0.4092569947242737, -0.06083274260163307, -0.09312902390956879, -0.13439741730690002, -0.11204692721366882, 0.1853378564119339, 0.07721135765314102, -0.06904149800539017, 0.04724838584661484, -0.21811611950397491, 0.25363829731941223, -0.095730260014534, 0.03744959831237793, 0.20918302237987518, 0.022284261882305145, 0.029793329536914825, -0.2128659188747406, -0.014026729390025139, 0.6179971694946289, -0.28048717975616455, 0.028513304889202118, -0.1167522668838501, 0.45197126269340515, -0.01179136335849762, 0.10720080137252808, 0.11908920854330063, 0.026177942752838135, -0.02737824060022831, -0.2742781937122345, 0.17519588768482208, 0.6338200569152832, -0.3051930069923401, 0.14543983340263367, 0.2770223915576935, 0.34617817401885986, -0.06269177794456482, -0.38989201188087463, 0.11321109533309937, 0.12920737266540527, 0.05412597954273224, -0.05499342828989029, 0.13941124081611633, -0.10221678018569946, 0.23073315620422363, -0.063199482858181, 0.33161431550979614, -0.32487404346466064, 0.09697489440441132, 0.06602947413921356, 0.407865434885025, 0.07288111001253128, 0.11874642968177795, 0.15528202056884766, 0.22170840203762054, 0.3452390432357788, 0.1692686676979065, 0.13844457268714905, 0.25644081830978394, -0.5704568028450012, -0.03286802023649216, 0.24766814708709717, -0.30400002002716064, 0.09140431880950928, -0.36675137281417847, -0.29848089814186096, -0.0011983811855316162, -0.13106948137283325, -0.07309798896312714, 0.1572885513305664, 0.09580857306718826, -0.15557430684566498, 0.19059628248214722, 0.28992772102355957, -0.40255099534988403, 0.04731537401676178, 0.05716811120510101, 0.1330018788576126, -0.03414757922291756, -0.05523545295000076, 0.16393625736236572, 0.05718033015727997, -0.3014552593231201, -0.3065541684627533, -0.18735310435295105, -0.22941374778747559, 0.17788389325141907, -0.23364387452602386, 0.11993935704231262, 0.36312195658683777, 0.10389101505279541, -0.1139712706208229, 0.12860868871212006, -0.2179737687110901, 0.008041631430387497, -0.15135197341442108, -0.17660647630691528, -0.16284781694412231, 0.026883114129304886, 0.12775519490242004, -0.38453447818756104, -0.22268101572990417, 0.07982724905014038, -0.049984898418188095, 0.18834373354911804, 0.09104400873184204, -0.12834689021110535, 0.3764999508857727, 0.5422124862670898, -0.18059174716472626, 0.34571006894111633, 0.14732086658477783, 0.06484021246433258, -0.0523051843047142, 0.05693062022328377, 0.06233111768960953, -0.5635715126991272, 0.21310150623321533, 0.04297931492328644, -0.009919561445713043, 0.3326794505119324, 0.24447348713874817, 0.24082575738430023, -0.22675219178199768, 0.3575468957424164, -0.06467790901660919, -0.4154817461967468, 0.07505639642477036, -0.048254452645778656, 0.27193745970726013, 0.1570000797510147, -0.07592097669839859, 0.19874203205108643, 0.0016796216368675232, -0.20543265342712402, 0.14765490591526031, 0.3099029064178467, 0.03141401335597038, 0.2916761338710785, -0.45812684297561646, 0.13962304592132568, 0.09801766276359558, -0.3492687940597534, -0.40214788913726807, -0.013870980590581894, -0.24244585633277893, -0.6214392185211182, 0.05720685049891472, 0.2899436950683594, 0.3333921730518341, 0.2120533585548401, 0.1955873668193817, 0.23025788366794586, -0.001929059624671936, -0.05027510225772858, -0.43435388803482056, -0.0875270813703537, 0.24553658068180084, -0.06732860207557678, 0.338417112827301, 0.332771897315979, 0.054219987243413925, -0.6487194895744324, 0.3746263086795807, 0.027714120224118233, 0.11224266141653061, -0.04254602640867233, 0.3574845790863037, -0.04908163100481033, 0.6802943348884583, -0.056976642459630966, -0.09947015345096588, 0.1098421961069107, -0.40440499782562256, 0.11555697023868561, -0.0753011405467987, -0.16746163368225098, -0.04436228424310684, -0.028872627764940262, 0.05160153657197952, 0.25742393732070923, -0.08350317180156708, -0.13589003682136536, 0.2232372760772705, -0.17380401492118835, -0.20038872957229614, 0.08077320456504822, -0.05301607772707939, -0.18518893420696259, -0.5225934386253357, 0.2937069535255432, 0.004301849752664566, -0.20401017367839813, -0.002849481999874115, -0.011327706277370453, 0.2704210877418518, -0.10439740866422653, -0.04702885076403618, 0.11628970503807068, -0.2604334354400635, -0.18677552044391632, 0.6034042835235596, 0.09498235583305359, -0.21191522479057312, -0.5101865530014038, 0.13084232807159424, 0.5453125834465027, 0.1332518458366394, -0.19132596254348755, 0.1168150082230568, 0.28060874342918396, -0.29843488335609436, 0.4549024701118469, -0.12230825424194336, 0.03253055363893509, 0.0806698352098465, 0.09504494071006775, -0.12913376092910767, -0.16987930238246918, 0.058539845049381256, -0.15386149287223816, -0.10189901292324066, 0.05761514604091644, -0.18095286190509796, 0.07244584709405899, -0.07085572928190231, -0.37152227759361267, 0.028823301196098328, 0.23722989857196808, 0.021353499963879585, 0.0044947341084480286, 0.10276289284229279, -0.17429929971694946, 0.3418671786785126, 0.15918059647083282, -0.16360262036323547, -0.23215219378471375, -0.1992490440607071, -0.1335533857345581, 0.06522361189126968, 0.1495562195777893, -0.22635410726070404, 0.16030269861221313, 0.2735203504562378, -0.1297738254070282, -0.2528555393218994, -0.2256876826286316, -0.377807080745697, 0.29277393221855164, -0.2615426480770111, 0.006166644394397736, -0.0009526163339614868, 0.08383551239967346, -0.435886949300766, -0.08726811408996582, -0.03723832964897156, -0.041308678686618805, 0.14977116882801056, -0.26325491070747375, -0.030502159148454666, 0.03766229748725891, -0.14379248023033142, 0.20316463708877563, 0.03347494453191757, 0.256278932094574, -0.5662103891372681, 0.04060029610991478, -0.40128985047340393, -0.22675582766532898, -0.5071383118629456, 0.2500789761543274, -0.042826637625694275, -0.0016556009650230408, -0.4777207374572754, -0.39371854066848755, 0.15535545349121094, 0.037076063454151154, -0.09917359054088593, -0.04532322287559509, 0.2388150840997696, 0.03617174178361893, -0.17806044220924377, 0.2443041354417801, -0.0010671541094779968, -0.054996199905872345, -0.12762852013111115, 0.2173931896686554, -0.30140015482902527, 0.32821983098983765, -0.21054451167583466, -0.32428818941116333, -0.04264673590660095, -0.09069622308015823, 0.07543113082647324, -0.2990780472755432, 0.0941387414932251, 0.07478629797697067, 0.12886178493499756, -0.16662172973155975, -0.009845152497291565, -0.01911110430955887, -0.10456196963787079, -0.17942377924919128, 0.33828580379486084, 0.33331114053726196, -0.32823657989501953, -0.3087780773639679, -0.2162129133939743, -0.4937133491039276, 0.5283083915710449, -0.09281852841377258, -0.0157318115234375, 0.0018389932811260223, -0.06919392943382263, 0.09960757941007614, 0.46002426743507385, 0.19968338310718536, -0.0514192059636116, -0.03854525461792946, -0.22585251927375793, -0.08312036842107773, 0.3009175956249237, 0.0581527054309845, 0.3111124634742737, 0.04828885942697525, -0.059264570474624634, -0.2736325263977051, 0.7122138142585754, 0.13612884283065796, -0.0920715183019638, -0.034432120621204376, 0.14910301566123962, 0.11367031931877136, 0.15927627682685852, 0.0019226893782615662, 0.1652657389640808, 0.2288830578327179, -0.4103991687297821, -0.06568200886249542, -0.013313954696059227, 0.07730758190155029, 0.26620277762413025, 0.14297924935817719, -0.1251467913389206, -0.1810501217842102, -0.015998896211385727, 0.25155261158943176, 0.2669732868671417, 0.014395363628864288, 0.14633728563785553, -0.10241717100143433, 0.05649527907371521, 0.16410088539123535, 0.030996236950159073, 0.09247695654630661, 0.2320387363433838, 0.39052653312683105, -0.4612027406692505, -0.43913447856903076, 0.18567344546318054, -0.04072532057762146, 0.43829432129859924, 0.26525264978408813, 0.1048692911863327, 0.462036669254303, 0.2753230035305023, 1.253345251083374, -0.1682036817073822, 0.2443881779909134, 0.22858475148677826, 0.1121661365032196, -0.2479841709136963, -0.45340481400489807, -0.36431676149368286, 0.09915351867675781, 0.24333694577217102, 0.2862575650215149, -0.10096322000026703, -0.27105724811553955, 0.34115663170814514, -0.04176419973373413, -0.0770752876996994, -0.5282347202301025, -0.3852578401565552, -0.3984294831752777, 0.4009665250778198, 0.19334806501865387, 0.10027624666690826, -0.0016863122582435608, -0.0981549620628357, -0.35185301303863525, -0.2977440357208252, 0.05878555774688721, -0.02353684976696968, 0.014629501849412918, 0.18035583198070526, -0.08447792381048203, 0.055796340107917786, 0.6131928563117981, -0.06639920175075531, -0.005568072199821472, -0.028414949774742126, -0.3356001079082489, 0.12289511412382126, 0.10987358540296555, -0.2699325382709503, 0.12300857901573181, 0.39072784781455994, -0.0632375180721283, -0.034764084964990616, -0.032439157366752625, 0.13707423210144043, -0.0038244128227233887, -0.24973748624324799, 0.3184869587421417, 0.1094292402267456, -0.2624950408935547, -0.2656925320625305, 0.6580673456192017, -0.1930513083934784, -0.2695929706096649, -0.02071906067430973, 0.26560306549072266, -0.19948723912239075, 0.9289186000823975, 0.2211868017911911, 1.0775783061981201, -0.2336358278989792, 0.12435342371463776, -0.040222492069005966, -0.03850216418504715, 0.3738062381744385, -0.14778707921504974, 0.38859570026397705, -0.40053611993789673, -0.05798149108886719, -0.15684638917446136, -0.1692635864019394, -0.4292781949043274, 0.47057250142097473, -0.0453677661716938, 0.3410060405731201, -0.09359301626682281, -0.09927903115749359, 0.11523416638374329, -0.018662109971046448, 0.504687488079071, -0.14514079689979553, -0.23618166148662567, -0.04532153531908989, 0.2728789150714874, 0.3918406665325165, -0.13521204888820648, -0.08271536231040955, 0.09072832763195038, -0.018759652972221375, -0.2966328561306, -0.15877169370651245, 0.21263259649276733, 0.33339059352874756, 0.6535942554473877, -0.2758546769618988, -0.12972255051136017, -0.09503485262393951, 0.5668450593948364, -0.2924177646636963, -0.07119486480951309, -0.09273414313793182, 0.34237703680992126, 0.058561135083436966, 0.0793098509311676, -0.20693787932395935, 0.2932894229888916, 0.17302799224853516, -0.44134432077407837, -0.0749933049082756, 0.08138254284858704, 0.09703505039215088, -0.21281017363071442, 0.07194339483976364, -0.3438454270362854, -0.10620256513357162, 0.17611294984817505, 0.08012664318084717, 0.14855781197547913, -0.13927395641803741, -0.0243771281093359, 0.29960423707962036, -0.254024475812912, 0.6346091032028198, 0.014460453763604164, -0.5885606408119202, 0.061455316841602325, 0.05541355162858963, 0.386268675327301, 0.09279181063175201, 0.023198172450065613, -0.0478762611746788, -0.1428459882736206, -0.022815432399511337, -0.43270230293273926, 0.16474705934524536, -0.18253542482852936, 0.40086671710014343, -0.033853679895401, -0.0717814713716507, -0.013197198510169983, -0.1236334890127182, 0.017766669392585754, -0.06297757476568222, -0.6734099388122559, -0.11474262923002243, -0.1720389425754547, -0.03266509622335434, 0.03968260437250137, 0.32491448521614075, -0.004447519779205322, -0.21031726896762848, 0.05494701862335205, -0.3948971629142761, -0.14776964485645294, -0.33736395835876465, -0.3186057209968567, 0.32245710492134094, -0.31860777735710144, 0.01025377120822668, -0.14541208744049072, -0.06669614464044571, -0.05232374370098114, 0.0033244136720895767, -0.14563946425914764, -0.0006993860006332397, 0.0434131994843483, 0.23361173272132874, 0.13692432641983032, 0.2370671033859253, -0.24679754674434662, -0.014883540570735931, -0.11997359991073608, 0.01323750615119934, 0.03944016247987747, 0.6291813850402832, 0.11466144025325775, 0.26919442415237427, 0.1905389428138733, -0.09737683087587357, 0.007606707513332367, 0.18058857321739197, 0.21116091310977936, 0.16757921874523163, 0.05017245560884476, 0.4540923237800598, -0.20531493425369263, -0.028608113527297974, -0.17177006602287292, 0.07968568056821823, -0.054710593074560165, 0.14961791038513184, 0.0422053337097168, -0.17463037371635437, -0.11316169798374176, 0.0815504938364029, 0.08655732125043869, 0.27043238282203674, -0.3065717816352844, -0.3265143632888794, 0.12690287828445435, 0.07523111253976822, -0.12259085476398468, -0.03936579078435898, 0.14163252711296082, 0.03663579747080803, -0.1312532126903534, 0.16921284794807434, -0.0751829594373703, -0.3183494210243225, -0.04082232713699341, 0.11970263719558716, 0.4419667720794678, 0.029792167246341705, -0.4090227782726288, -0.3178195357322693, 0.29363229870796204, 0.1212727427482605, 0.23218172788619995, -0.10558740794658661, 0.18870247900485992, 0.6046786308288574, 0.09929530322551727, 0.059304751455783844, -0.07571808993816376, 0.2035539746284485, -0.3737030029296875, -0.07051923871040344, 0.31964150071144104, 0.4683902859687805, -0.26693958044052124, 0.03698652237653732, 0.2698325216770172, 0.11025622487068176, 0.004941049963235855, 0.12369288504123688, 0.102918341755867, -0.26150140166282654, 0.034631602466106415, -0.0050764791667461395, -0.07167434692382812, 0.23957563936710358, 0.04336388409137726, 0.15159590542316437, 0.026462752372026443, 0.1367265284061432, 0.10296054929494858, 0.20318250358104706, -0.051941968500614166, -0.016779936850070953, -0.08750063180923462, 0.4751596748828888, 0.1755361557006836, 0.031965941190719604, -0.1565064936876297, -0.20821063220500946, 0.12349402904510498, 0.2431228905916214, 0.3446096181869507, 0.2604812979698181, 0.41346263885498047, -0.23965908586978912, 0.21421287953853607, -0.1261845827102661, -0.14102721214294434, -0.1568869799375534, -0.11099085956811905, -0.24647390842437744, -0.04859858751296997, -0.08990706503391266, 0.01613977923989296, 0.040524955838918686, -0.09710338711738586, -0.11917684972286224, 0.3489649295806885, -0.08877032995223999, 0.08387663215398788, 0.193405881524086, -0.10727857798337936, -0.19467251002788544, 0.11105038970708847, -0.14093905687332153, 0.24841594696044922, 0.2611742615699768, -0.12993179261684418, 0.16210004687309265, 0.11495999991893768, -0.031718846410512924, -0.24458643794059753, 0.19481946527957916, 0.38263818621635437, 0.43840909004211426, -0.14142552018165588, 0.2510775327682495, -0.17164427042007446, 0.07840033620595932, -0.09575247764587402, 0.32633912563323975, 0.3865192234516144, 0.33343133330345154, -0.3761415481567383, -0.1912061870098114, 0.4479919672012329, 0.5177019834518433, -0.04603378102183342, 0.5572065711021423, 0.1300535798072815, -0.030659934505820274, -0.37181001901626587, -0.029230032116174698, 0.02062857896089554, -0.2748633921146393, 0.3173438608646393, 0.17464527487754822, -0.027472298592329025, 0.018897276371717453, 0.06326126307249069, 0.18542565405368805, -0.2322801947593689, 0.29862770438194275, 0.23765255510807037, -0.06910273432731628, 0.01262357085943222, 0.17466029524803162, -0.40023091435432434, -0.11948437243700027, -0.4669223427772522, -0.25813138484954834, -0.21268542110919952, -0.10615560412406921, -0.2768251895904541, -0.29554328322410583, -0.1151280403137207, 0.2654779255390167, 0.20900747179985046, 0.032196398824453354, -0.18186157941818237, 0.29712119698524475, -0.46284914016723633, 0.03978407010436058, -0.0534091517329216, -0.07800324261188507, 0.25563082098960876, -0.028874047100543976, -0.340783953666687, -0.3159103989601135, 0.4795510768890381, -0.32445910573005676, -0.3055865466594696, -0.4587938189506531, 0.3932490646839142, 0.29714083671569824, 0.19501420855522156, -0.6422241926193237, -0.20947463810443878, 0.15843255817890167, 0.04962307959794998, -0.35883885622024536, -0.4520339369773865, 0.23274695873260498, 0.1298265904188156, -0.14569643139839172, -0.3039952516555786, 0.4553861916065216, 0.03205965459346771, 0.14750012755393982, -0.3409578204154968 ]
https://github.com/huggingface/datasets/issues/2175
Sure. Will push everything together with RAG end to end. :) thanks a lot. On Wed, Apr 7, 2021, 21:16 Quentin Lhoest ***@***.***> wrote: > That would be an easy way to workaround this issue. Feel free to open a PR > on transformers and ping me ! :) > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2175#issuecomment-814752589>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AEA4FGWLROCGARKN7WOJYSTTHQPH5ANCNFSM42PRVYDA> > . >
dataset.search_batch() function outputs all -1 indices sometime.
I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**. During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_rag.py#L231) an error issue when all retrieved indices are -1. Please refer to the screenshot of a PID worker. ![image](https://user-images.githubusercontent.com/16892570/113782387-37a67600-9786-11eb-9c29-acad661a9648.png) Here, my retrieve batch size is 2 and n_docs is 5. I can solve this by working around np. stack, but I want to ask, why we get an output index of -1. Do you have any idea :) ? Is this a problem of the index, where the faiss can't find any similar vector? Is there documentation on the output index being -1? @lhoestq
82
dataset.search_batch() function outputs all -1 indices sometime. I am working with RAG and playing around with different faiss indexes. At the moment I use **index = faiss.index_factory(768, "IVF65536_HNSW32,Flat")**. During the retrieval phase exactly in [this line of retrieval_rag.py](https://github.com/huggingface/transformers/blob/master/src/transformers/models/rag/retrieval_rag.py#L231) an error issue when all retrieved indices are -1. Please refer to the screenshot of a PID worker. ![image](https://user-images.githubusercontent.com/16892570/113782387-37a67600-9786-11eb-9c29-acad661a9648.png) Here, my retrieve batch size is 2 and n_docs is 5. I can solve this by working around np. stack, but I want to ask, why we get an output index of -1. Do you have any idea :) ? Is this a problem of the index, where the faiss can't find any similar vector? Is there documentation on the output index being -1? @lhoestq Sure. Will push everything together with RAG end to end. :) thanks a lot. On Wed, Apr 7, 2021, 21:16 Quentin Lhoest ***@***.***> wrote: > That would be an easy way to workaround this issue. Feel free to open a PR > on transformers and ping me ! :) > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2175#issuecomment-814752589>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AEA4FGWLROCGARKN7WOJYSTTHQPH5ANCNFSM42PRVYDA> > . >
[ -0.028313197195529938, -0.4459782540798187, -0.062118321657180786, 0.10841438174247742, 0.29210591316223145, -0.07177896797657013, 0.3549715578556061, 0.30725154280662537, 0.09947578608989716, 0.4373636841773987, -0.2883692979812622, -0.1778714507818222, 0.04758746549487114, -0.04054675251245499, -0.11869144439697266, 0.009807676076889038, 0.24705971777439117, 0.40639162063598633, -0.15651258826255798, -0.5071401000022888, -0.28627797961235046, 0.12934009730815887, -0.08135852217674255, 0.32808393239974976, -0.35172778367996216, 0.22738423943519592, 0.028168506920337677, -0.13982023298740387, -0.28620466589927673, -0.44988900423049927, 0.6027761101722717, -0.2830126881599426, 0.45304638147354126, 0.2541903853416443, -0.00013016471348237246, 0.1176813393831253, 0.4395867586135864, -0.06513912230730057, -0.15178938210010529, -0.1811903864145279, -0.08122215420007706, 0.21384494006633759, 0.07269340753555298, -0.03717777132987976, 0.006092093884944916, -0.21771247684955597, 0.2247648388147354, -0.16634345054626465, 0.041886549443006516, 0.18656791746616364, 0.02338831126689911, 0.10176807641983032, -0.18069565296173096, -0.07725061476230621, 0.5992839932441711, -0.2709939777851105, 0.04867224395275116, -0.05235019326210022, 0.4569098949432373, 0.0019481554627418518, 0.0925162211060524, 0.13979969918727875, 0.04614142328500748, -0.03420698642730713, -0.20732897520065308, 0.1863568127155304, 0.5528729557991028, -0.2722928822040558, 0.17107927799224854, 0.2689875662326813, 0.3746108412742615, -0.09047947824001312, -0.4090768098831177, 0.07361622154712677, 0.13621565699577332, 0.05647881329059601, -0.015263978391885757, 0.14179392158985138, -0.11472143977880478, 0.2588493227958679, -0.10165099799633026, 0.3451104462146759, -0.3150438666343689, 0.10878056287765503, 0.07939541339874268, 0.3879110813140869, -0.00397086888551712, 0.11477753520011902, 0.17750823497772217, 0.23199337720870972, 0.21899566054344177, 0.15652166306972504, 0.14337672293186188, 0.25089314579963684, -0.5799223184585571, -0.026885710656642914, 0.24907054007053375, -0.2496400773525238, 0.15633763372898102, -0.2913856506347656, -0.31634843349456787, 0.005351375788450241, -0.14513009786605835, -0.11744987219572067, 0.16910822689533234, 0.13860125839710236, -0.09160955250263214, 0.12302251160144806, 0.26012754440307617, -0.3778173327445984, 0.046400025486946106, 0.016574086621403694, 0.14789173007011414, -0.02511773630976677, -0.13372403383255005, 0.1508805751800537, 0.06990957260131836, -0.3211226165294647, -0.33623915910720825, -0.18229684233665466, -0.23845314979553223, 0.1561426818370819, -0.18566350638866425, 0.19563697278499603, 0.37017250061035156, 0.0615760013461113, -0.12584085762500763, 0.13417702913284302, -0.18845807015895844, -0.008369117975234985, -0.1735411137342453, -0.19354480504989624, -0.21002456545829773, 0.024855252355337143, 0.1446506232023239, -0.4088214635848999, -0.1844089776277542, 0.10284827649593353, -0.04036689177155495, 0.20424383878707886, 0.024063177406787872, -0.12931254506111145, 0.3815370202064514, 0.5448855757713318, -0.19576340913772583, 0.34353217482566833, 0.17522522807121277, 0.04626165330410004, -0.08072275668382645, 0.010463885962963104, 0.05614084750413895, -0.5754232406616211, 0.1869511902332306, 0.03655720502138138, -0.02471845969557762, 0.2832261621952057, 0.2651231288909912, 0.27368998527526855, -0.22753548622131348, 0.3701696991920471, -0.07081913948059082, -0.37117767333984375, 0.04962005466222763, -0.03107258677482605, 0.2711125910282135, 0.1841754913330078, -0.10324952751398087, 0.17016884684562683, -0.0015588775277137756, -0.2113308608531952, 0.1576530784368515, 0.35587501525878906, 0.03963656350970268, 0.24296866357326508, -0.4880301356315613, 0.21157923340797424, 0.04133302718400955, -0.3464723527431488, -0.4149973690509796, 0.03475269302725792, -0.287471741437912, -0.550621509552002, 0.09436734020709991, 0.25393787026405334, 0.2913825809955597, 0.21679283678531647, 0.22111597657203674, 0.17621909081935883, -0.018413836136460304, -0.08223800361156464, -0.4449310898780823, -0.10949306190013885, 0.1820259690284729, -0.06683504581451416, 0.28149035573005676, 0.30153903365135193, 0.056756678968667984, -0.6469043493270874, 0.41628649830818176, -0.015419641509652138, 0.13331100344657898, -0.04142797365784645, 0.39249005913734436, 0.008921157568693161, 0.6352487206459045, -0.06700608134269714, -0.19974154233932495, 0.11731746792793274, -0.37232616543769836, 0.15166696906089783, -0.10417810082435608, -0.2065371572971344, -0.07883931696414948, -0.031902000308036804, 0.04320472478866577, 0.2024582326412201, -0.09090364724397659, -0.13432511687278748, 0.2712656557559967, -0.18457505106925964, -0.2099105417728424, 0.142568439245224, -0.07756952196359634, -0.16261546313762665, -0.579948365688324, 0.3026264011859894, 0.019717179238796234, -0.18993455171585083, 0.034484222531318665, 0.03798585385084152, 0.25337424874305725, -0.11794748902320862, -0.03772394359111786, 0.12159021198749542, -0.2508455216884613, -0.19281594455242157, 0.6424356698989868, 0.07208031415939331, -0.1853332370519638, -0.5010786056518555, 0.16359376907348633, 0.4550585448741913, 0.13746267557144165, -0.15939760208129883, 0.04226530343294144, 0.3477858304977417, -0.3275405466556549, 0.4250102639198303, -0.1345338374376297, 0.03599381446838379, 0.059640176594257355, 0.08462657779455185, -0.15955623984336853, -0.20889130234718323, 0.07915666699409485, -0.14591580629348755, -0.03215062990784645, 0.07211682945489883, -0.18101000785827637, 0.11498750746250153, -0.00655505433678627, -0.3482499420642853, -0.004655772820115089, 0.24048826098442078, -0.030782539397478104, 0.010029278695583344, 0.07758856564760208, -0.15302741527557373, 0.36847490072250366, 0.199684739112854, -0.15380515158176422, -0.22962678968906403, -0.17058591544628143, -0.1761598289012909, 0.10389196872711182, 0.13131269812583923, -0.22401848435401917, 0.15745601058006287, 0.2851549983024597, -0.11165700852870941, -0.29774701595306396, -0.1965698003768921, -0.4191928207874298, 0.2730152904987335, -0.2794301211833954, -0.011735212057828903, -0.01679161936044693, 0.05615811049938202, -0.45195472240448, -0.11897535622119904, -0.0843057781457901, -0.07987042516469955, 0.14326834678649902, -0.28322169184684753, -0.02624545618891716, 0.06330061703920364, -0.11499282717704773, 0.21003538370132446, 0.06240798532962799, 0.23340848088264465, -0.6038302779197693, 0.038408730179071426, -0.40867993235588074, -0.21583537757396698, -0.4646940529346466, 0.2507137358188629, 0.01666766218841076, 0.031537771224975586, -0.4577505588531494, -0.42188704013824463, 0.0902840793132782, 0.05866226553916931, -0.13873690366744995, -0.01814405433833599, 0.2579154074192047, 0.020082471892237663, -0.2282145470380783, 0.2372671365737915, 0.05287257581949234, -0.09174080193042755, -0.16541317105293274, 0.19085030257701874, -0.24201208353042603, 0.34249672293663025, -0.19774314761161804, -0.36896008253097534, -0.01219986379146576, -0.12399285286664963, 0.15599551796913147, -0.3126057982444763, 0.06533084809780121, 0.1334223747253418, 0.10339897871017456, -0.1387469321489334, -0.0690942257642746, -0.037608031183481216, -0.1779903918504715, -0.18651363253593445, 0.31426453590393066, 0.33718568086624146, -0.35459578037261963, -0.3330664038658142, -0.18315845727920532, -0.49075281620025635, 0.5181809067726135, -0.10641353577375412, -0.06496656686067581, -0.021928686648607254, -0.0372573547065258, 0.13504911959171295, 0.4749002158641815, 0.19578295946121216, -0.08611184358596802, -0.0533938854932785, -0.2279219776391983, -0.10956795513629913, 0.3319779336452484, 0.010725516825914383, 0.27291426062583923, 0.06094113364815712, -0.04086840897798538, -0.25837579369544983, 0.7406023740768433, 0.24938714504241943, -0.07727041840553284, -0.0038318317383527756, 0.1467563658952713, 0.16960279643535614, 0.10521898418664932, -0.03487646207213402, 0.20001782476902008, 0.1997404843568802, -0.3633255958557129, -0.023181863129138947, -0.018191561102867126, 0.13791322708129883, 0.25258564949035645, 0.13319998979568481, -0.12050335854291916, -0.20605218410491943, 0.013361087068915367, 0.26513636112213135, 0.23669126629829407, 0.05542762577533722, 0.12936769425868988, -0.1069730818271637, 0.08634661138057709, 0.1686653196811676, 0.060295261442661285, 0.11767616868019104, 0.21969954669475555, 0.38787660002708435, -0.3853278160095215, -0.5046995878219604, 0.20424425601959229, -0.02528807334601879, 0.3977499008178711, 0.23020166158676147, 0.09101998805999756, 0.4760735034942627, 0.2946365177631378, 1.2821094989776611, -0.1257203370332718, 0.21006560325622559, 0.20244179666042328, 0.052193738520145416, -0.25690096616744995, -0.3845192790031433, -0.3927997648715973, 0.10717875510454178, 0.24384500086307526, 0.3198534846305847, -0.14488975703716278, -0.3078739643096924, 0.3683769106864929, -0.03936130180954933, -0.03779054060578346, -0.5277112126350403, -0.3560357391834259, -0.36415335536003113, 0.33092471957206726, 0.21160320937633514, 0.1023002490401268, 0.03735516965389252, -0.07243666052818298, -0.34579670429229736, -0.26578837633132935, 0.043062567710876465, 0.02851393073797226, -0.007631532847881317, 0.18177512288093567, -0.05452597141265869, 0.07539505511522293, 0.6259132623672485, 0.004058928694576025, 0.03515305370092392, 0.040727801620960236, -0.3378148078918457, 0.10587318241596222, 0.08306559920310974, -0.2505226135253906, 0.15620940923690796, 0.4710434377193451, -0.07780736684799194, -0.06823843717575073, -0.0047487784177064896, 0.18300014734268188, -0.019018175080418587, -0.28358063101768494, 0.2942578196525574, 0.12624388933181763, -0.2307732254266739, -0.26125290989875793, 0.7115757465362549, -0.19992947578430176, -0.2380957454442978, -0.03384121134877205, 0.3728460371494293, -0.19449257850646973, 0.8509474992752075, 0.1994219273328781, 1.1119370460510254, -0.23067843914031982, 0.12413326650857925, 0.01366085559129715, -0.022949866950511932, 0.42332515120506287, -0.1478208601474762, 0.3599695563316345, -0.4168889820575714, -0.07452318072319031, -0.12676571309566498, -0.16255339980125427, -0.39656880497932434, 0.5001983642578125, -0.04858562350273132, 0.30752506852149963, -0.05099819600582123, -0.09953474253416061, 0.11226458847522736, 0.032275691628456116, 0.43194177746772766, -0.19584901630878448, -0.3082026541233063, -0.04940131679177284, 0.28950023651123047, 0.4239197373390198, -0.11448756605386734, -0.13066373765468597, 0.06094104051589966, -0.04343879222869873, -0.32669076323509216, -0.17064157128334045, 0.14958776533603668, 0.31323111057281494, 0.6839635372161865, -0.281319260597229, -0.05974752455949783, -0.12923522293567657, 0.5940534472465515, -0.29492056369781494, -0.09750828891992569, -0.09328057616949081, 0.29681921005249023, 0.044855084270238876, 0.08781743049621582, -0.20854420959949493, 0.32640817761421204, 0.16587506234645844, -0.40872257947921753, -0.11813430488109589, 0.0887145847082138, 0.10041084885597229, -0.19457325339317322, 0.039905205368995667, -0.37297308444976807, -0.16587376594543457, 0.13465166091918945, 0.066773921251297, 0.14196403324604034, -0.12792961299419403, -0.028545143082737923, 0.295392245054245, -0.25025635957717896, 0.56406170129776, 0.05659133568406105, -0.5724164247512817, 0.021269699558615685, 0.09878155589103699, 0.32911989092826843, 0.07245007157325745, 0.050131428986787796, 0.0008483603596687317, -0.1735292375087738, -0.033175624907016754, -0.45811572670936584, 0.20368078351020813, -0.22134995460510254, 0.41144391894340515, 0.01109137013554573, -0.04994329810142517, 0.011612929403781891, -0.12677912414073944, 0.047203101217746735, -0.08723914623260498, -0.6709453463554382, -0.13525491952896118, -0.2030443549156189, -0.0041329525411129, 0.039614107459783554, 0.3588503301143646, -0.013322331011295319, -0.12809482216835022, 0.06523552536964417, -0.3754580318927765, -0.1663905829191208, -0.3348734378814697, -0.288895845413208, 0.29043447971343994, -0.241418719291687, -0.027827516198158264, -0.10078002512454987, -0.05193601921200752, -0.0417562797665596, -0.0030184080824255943, -0.20367422699928284, -0.005222480744123459, 0.049106091260910034, 0.23047766089439392, 0.126470685005188, 0.23354776203632355, -0.21581700444221497, 0.02479112148284912, -0.15767759084701538, -0.044103190302848816, 0.11891300976276398, 0.6434119343757629, 0.11680764704942703, 0.26234906911849976, 0.21242794394493103, -0.14900201559066772, 0.0374210923910141, 0.17797791957855225, 0.2131088376045227, 0.15920063853263855, 0.047037143260240555, 0.3956908583641052, -0.2537582814693451, -0.030007049441337585, -0.1442238688468933, 0.10316365957260132, -0.01787308230996132, 0.17292284965515137, 0.013256072998046875, -0.17394424974918365, -0.16851182281970978, 0.12555626034736633, 0.14056839048862457, 0.2671736776828766, -0.2686232030391693, -0.33064720034599304, 0.10078953951597214, 0.07509038597345352, -0.13326622545719147, -0.0001479014754295349, 0.14615365862846375, 0.029516465961933136, -0.10041570663452148, 0.1746884137392044, -0.0606294646859169, -0.27948978543281555, -0.009492792189121246, 0.11396962404251099, 0.4691476821899414, 0.04925299435853958, -0.4048435091972351, -0.2828209698200226, 0.3373284935951233, 0.13469593226909637, 0.27483198046684265, -0.0744079127907753, 0.23767141997814178, 0.623999297618866, 0.015893304720520973, 0.05428609251976013, -0.13141858577728271, 0.24841171503067017, -0.3704628348350525, -0.10585324466228485, 0.3135046660900116, 0.5167595148086548, -0.302783340215683, 0.021801238879561424, 0.24164582788944244, 0.201186865568161, -0.020430942997336388, 0.11600188910961151, 0.07082903385162354, -0.21497251093387604, 0.019119342789053917, -0.03791750967502594, -0.0710587128996849, 0.2143709659576416, 0.016496583819389343, 0.15252181887626648, -0.021142402663826942, 0.14463159441947937, 0.14643129706382751, 0.1926601231098175, -0.022227101027965546, -0.10955192148685455, -0.1289515346288681, 0.441950261592865, 0.213203564286232, 0.039216093719005585, -0.12580619752407074, -0.211378812789917, 0.1281358003616333, 0.24144719541072845, 0.35759276151657104, 0.3136424124240875, 0.39529019594192505, -0.14623679220676422, 0.20816873013973236, -0.14725269377231598, -0.13773968815803528, -0.1769450306892395, -0.08194874227046967, -0.23185580968856812, -0.09109599888324738, -0.04671543091535568, 0.026888292282819748, 0.0375409796833992, -0.15904219448566437, -0.10367049276828766, 0.34956610202789307, -0.10567949712276459, 0.05482376366853714, 0.1510557234287262, -0.08517030626535416, -0.19247521460056305, 0.12483558058738708, -0.17752563953399658, 0.2826812267303467, 0.23295250535011292, -0.119428351521492, 0.1866091787815094, 0.11754166334867477, -0.012552458792924881, -0.26263901591300964, 0.19836874306201935, 0.36874115467071533, 0.38094842433929443, -0.16082745790481567, 0.2081640362739563, -0.2221243977546692, 0.05552717298269272, -0.046601176261901855, 0.28733691573143005, 0.3420759439468384, 0.3129171133041382, -0.318891316652298, -0.17574916779994965, 0.43658003211021423, 0.48736071586608887, -0.04042923450469971, 0.5094994306564331, 0.1159963458776474, -0.01099863275885582, -0.3908464312553406, -0.04884453862905502, 0.03906980901956558, -0.2555009126663208, 0.3060806691646576, 0.20374849438667297, -0.04640777036547661, -0.0006295666098594666, 0.171725332736969, 0.16630259156227112, -0.2835231423377991, 0.27163979411125183, 0.26514437794685364, -0.06830266118049622, -0.0019565969705581665, 0.1600392460823059, -0.44104114174842834, -0.12771882116794586, -0.4847533404827118, -0.18739384412765503, -0.19833287596702576, -0.05941122770309448, -0.2815759479999542, -0.32655254006385803, -0.11159816384315491, 0.28393232822418213, 0.2401634305715561, 0.03927639499306679, -0.19365224242210388, 0.3200107514858246, -0.4926873445510864, 0.041474394500255585, -0.06162054464221001, -0.001981685869395733, 0.2617308497428894, -0.01376732811331749, -0.35904037952423096, -0.3816453516483307, 0.5597445368766785, -0.3355349004268646, -0.31491029262542725, -0.4205092489719391, 0.40176141262054443, 0.3072034418582916, 0.12811784446239471, -0.661791205406189, -0.17463690042495728, 0.1516132354736328, 0.05701443925499916, -0.38950037956237793, -0.4049232006072998, 0.22104811668395996, 0.08723459392786026, -0.1423766016960144, -0.3343048691749573, 0.4810691773891449, 0.011339761316776276, 0.17175599932670593, -0.34873610734939575 ]
https://github.com/huggingface/datasets/issues/2170
It seems that this can be fixed from user's end by including a `date` argument, like this: `dataset = datasets.load_dataset('wikipedia', '20200501.en', date='20210420')` You can get available dates from [here](https://dumps.wikimedia.org/enwiki/). This is not a proper fix however as all the files will still have '20200501' in their file names.
Wikipedia historic dumps are deleted but hf/datasets hardcodes dump date
Wikimedia does not keep all historical dumps. For example, as of today https://dumps.wikimedia.org/kowiki/ only provides ``` 20201220/ 02-Feb-2021 01:36 - 20210101/ 21-Feb-2021 01:26 - 20210120/ 02-Mar-2021 01:25 - 20210201/ 21-Mar-2021 01:26 - 20210220/ 02-Apr-2021 01:26 - 20210301/ 03-Mar-2021 08:10 - 20210320/ 21-Mar-2021 18:13 - 20210401/ 03-Apr-2021 10:08 - latest/ 03-Apr-2021 10:08 - ``` However, the wikipedia dataset provided in the library, only supports the following configs, none of which are applicable anymore when disregarding the cached datasets: ``` ValueError: BuilderConfig 20210401.ko not found. Available: ['20200501.aa', '20200501.ab', '20200501.ace', '20200501.ady', '20200501.af', '20200501.ak', '20200501.als', '20200501.am', '20200501.an', '20200501.ang', '20200501.ar', '20200501.arc', '20200501.arz', '20200501.as', '20200501.ast', '20200501.atj', '20200501.av', '20200501.ay', '20200501.az', '20200501.azb', '20200501.ba', '20200501.bar', '20200501.bat-smg', '20200501.bcl', '20200501.be', '20200501.be-x-old', '20200501.bg', '20200501.bh', '20200501.bi', '20200501.bjn', '20200501.bm', '20200501.bn', '20200501.bo', '20200501.bpy', '20200501.br', '20200501.bs', '20200501.bug', '20200501.bxr', '20200501.ca', '20200501.cbk-zam', '20200501.cdo', '20200501.ce', '20200501.ceb', '20200501.ch', '20200501.cho', '20200501.chr', '20200501.chy', '20200501.ckb', '20200501.co', '20200501.cr', '20200501.crh', '20200501.cs', '20200501.csb', '20200501.cu', '20200501.cv', '20200501.cy', '20200501.da', '20200501.de', '20200501.din', '20200501.diq', '20200501.dsb', '20200501.dty', '20200501.dv', '20200501.dz', '20200501.ee', '20200501.el', '20200501.eml', '20200501.en', '20200501.eo', '20200501.es', '20200501.et', '20200501.eu', '20200501.ext', '20200501.fa', '20200501.ff', '20200501.fi', '20200501.fiu-vro', '20200501.fj', '20200501.fo', '20200501.fr', '20200501.frp', '20200501.frr', '20200501.fur', '20200501.fy', '20200501.ga', '20200501.gag', '20200501.gan', '20200501.gd', '20200501.gl', '20200501.glk', '20200501.gn', '20200501.gom', '20200501.gor', '20200501.got', '20200501.gu', '20200501.gv', '20200501.ha', '20200501.hak', '20200501.haw', '20200501.he', '20200501.hi', '20200501.hif', '20200501.ho', '20200501.hr', '20200501.hsb', '20200501.ht', '20200501.hu', '20200501.hy', '20200501.ia', '20200501.id', '20200501.ie', '20200501.ig', '20200501.ii', '20200501.ik', '20200501.ilo', '20200501.inh', '20200501.io', '20200501.is', '20200501.it', '20200501.iu', '20200501.ja', '20200501.jam', '20200501.jbo', '20200501.jv', '20200501.ka', '20200501.kaa', '20200501.kab', '20200501.kbd', '20200501.kbp', '20200501.kg', '20200501.ki', '20200501.kj', '20200501.kk', '20200501.kl', '20200501.km', '20200501.kn', '20200501.ko', '20200501.koi', '20200501.krc', '20200501.ks', '20200501.ksh', '20200501.ku', '20200501.kv', '20200501.kw', '20200501.ky', '20200501.la', '20200501.lad', '20200501.lb', '20200501.lbe', '20200501.lez', '20200501.lfn', '20200501.lg', '20200501.li', '20200501.lij', '20200501.lmo', '20200501.ln', '20200501.lo', '20200501.lrc', '20200501.lt', '20200501.ltg', '20200501.lv', '20200501.mai', '20200501.map-bms', '20200501.mdf', '20200501.mg', '20200501.mh', '20200501.mhr', '20200501.mi', '20200501.min', '20200501.mk', '20200501.ml', '20200501.mn', '20200501.mr', '20200501.mrj', '20200501.ms', '20200501.mt', '20200501.mus', '20200501.mwl', '20200501.my', '20200501.myv', '20200501.mzn', '20200501.na', '20200501.nah', '20200501.nap', '20200501.nds', '20200501.nds-nl', '20200501.ne', '20200501.new', '20200501.ng', '20200501.nl', '20200501.nn', '20200501.no', '20200501.nov', '20200501.nrm', '20200501.nso', '20200501.nv', '20200501.ny', '20200501.oc', '20200501.olo', '20200501.om', '20200501.or', '20200501.os', '20200501.pa', '20200501.pag', '20200501.pam', '20200501.pap', '20200501.pcd', '20200501.pdc', '20200501.pfl', '20200501.pi', '20200501.pih', '20200501.pl', '20200501.pms', '20200501.pnb', '20200501.pnt', '20200501.ps', '20200501.pt', '20200501.qu', '20200501.rm', '20200501.rmy', '20200501.rn', '20200501.ro', '20200501.roa-rup', '20200501.roa-tara', '20200501.ru', '20200501.rue', '20200501.rw', '20200501.sa', '20200501.sah', '20200501.sat', '20200501.sc', '20200501.scn', '20200501.sco', '20200501.sd', '20200501.se', '20200501.sg', '20200501.sh', '20200501.si', '20200501.simple', '20200501.sk', '20200501.sl', '20200501.sm', '20200501.sn', '20200501.so', '20200501.sq', '20200501.sr', '20200501.srn', '20200501.ss', '20200501.st', '20200501.stq', '20200501.su', '20200501.sv', '20200501.sw', '20200501.szl', '20200501.ta', '20200501.tcy', '20200501.te', '20200501.tet', '20200501.tg', '20200501.th', '20200501.ti', '20200501.tk', '20200501.tl', '20200501.tn', '20200501.to', '20200501.tpi', '20200501.tr', '20200501.ts', '20200501.tt', '20200501.tum', '20200501.tw', '20200501.ty', '20200501.tyv', '20200501.udm', '20200501.ug', '20200501.uk', '20200501.ur', '20200501.uz', '20200501.ve', '20200501.vec', '20200501.vep', '20200501.vi', '20200501.vls', '20200501.vo', '20200501.wa', '20200501.war', '20200501.wo', '20200501.wuu', '20200501.xal', '20200501.xh', '20200501.xmf', '20200501.yi', '20200501.yo', '20200501.za', '20200501.zea', '20200501.zh', '20200501.zh-classical', '20200501.zh-min-nan', '20200501.zh-yue', '20200501.zu'] ``` The cached datasets: ``` % aws s3 --no-sign-request --endpoint-url https://storage.googleapis.com ls s3://huggingface-nlp/cache/datasets/wikipedia/ PRE 20200501.de/ PRE 20200501.en/ PRE 20200501.fr/ PRE 20200501.frr/ PRE 20200501.it/ PRE 20200501.simple/ ```
48
Wikipedia historic dumps are deleted but hf/datasets hardcodes dump date Wikimedia does not keep all historical dumps. For example, as of today https://dumps.wikimedia.org/kowiki/ only provides ``` 20201220/ 02-Feb-2021 01:36 - 20210101/ 21-Feb-2021 01:26 - 20210120/ 02-Mar-2021 01:25 - 20210201/ 21-Mar-2021 01:26 - 20210220/ 02-Apr-2021 01:26 - 20210301/ 03-Mar-2021 08:10 - 20210320/ 21-Mar-2021 18:13 - 20210401/ 03-Apr-2021 10:08 - latest/ 03-Apr-2021 10:08 - ``` However, the wikipedia dataset provided in the library, only supports the following configs, none of which are applicable anymore when disregarding the cached datasets: ``` ValueError: BuilderConfig 20210401.ko not found. Available: ['20200501.aa', '20200501.ab', '20200501.ace', '20200501.ady', '20200501.af', '20200501.ak', '20200501.als', '20200501.am', '20200501.an', '20200501.ang', '20200501.ar', '20200501.arc', '20200501.arz', '20200501.as', '20200501.ast', '20200501.atj', '20200501.av', '20200501.ay', '20200501.az', '20200501.azb', '20200501.ba', '20200501.bar', '20200501.bat-smg', '20200501.bcl', '20200501.be', '20200501.be-x-old', '20200501.bg', '20200501.bh', '20200501.bi', '20200501.bjn', '20200501.bm', '20200501.bn', '20200501.bo', '20200501.bpy', '20200501.br', '20200501.bs', '20200501.bug', '20200501.bxr', '20200501.ca', '20200501.cbk-zam', '20200501.cdo', '20200501.ce', '20200501.ceb', '20200501.ch', '20200501.cho', '20200501.chr', '20200501.chy', '20200501.ckb', '20200501.co', '20200501.cr', '20200501.crh', '20200501.cs', '20200501.csb', '20200501.cu', '20200501.cv', '20200501.cy', '20200501.da', '20200501.de', '20200501.din', '20200501.diq', '20200501.dsb', '20200501.dty', '20200501.dv', '20200501.dz', '20200501.ee', '20200501.el', '20200501.eml', '20200501.en', '20200501.eo', '20200501.es', '20200501.et', '20200501.eu', '20200501.ext', '20200501.fa', '20200501.ff', '20200501.fi', '20200501.fiu-vro', '20200501.fj', '20200501.fo', '20200501.fr', '20200501.frp', '20200501.frr', '20200501.fur', '20200501.fy', '20200501.ga', '20200501.gag', '20200501.gan', '20200501.gd', '20200501.gl', '20200501.glk', '20200501.gn', '20200501.gom', '20200501.gor', '20200501.got', '20200501.gu', '20200501.gv', '20200501.ha', '20200501.hak', '20200501.haw', '20200501.he', '20200501.hi', '20200501.hif', '20200501.ho', '20200501.hr', '20200501.hsb', '20200501.ht', '20200501.hu', '20200501.hy', '20200501.ia', '20200501.id', '20200501.ie', '20200501.ig', '20200501.ii', '20200501.ik', '20200501.ilo', '20200501.inh', '20200501.io', '20200501.is', '20200501.it', '20200501.iu', '20200501.ja', '20200501.jam', '20200501.jbo', '20200501.jv', '20200501.ka', '20200501.kaa', '20200501.kab', '20200501.kbd', '20200501.kbp', '20200501.kg', '20200501.ki', '20200501.kj', '20200501.kk', '20200501.kl', '20200501.km', '20200501.kn', '20200501.ko', '20200501.koi', '20200501.krc', '20200501.ks', '20200501.ksh', '20200501.ku', '20200501.kv', '20200501.kw', '20200501.ky', '20200501.la', '20200501.lad', '20200501.lb', '20200501.lbe', '20200501.lez', '20200501.lfn', '20200501.lg', '20200501.li', '20200501.lij', '20200501.lmo', '20200501.ln', '20200501.lo', '20200501.lrc', '20200501.lt', '20200501.ltg', '20200501.lv', '20200501.mai', '20200501.map-bms', '20200501.mdf', '20200501.mg', '20200501.mh', '20200501.mhr', '20200501.mi', '20200501.min', '20200501.mk', '20200501.ml', '20200501.mn', '20200501.mr', '20200501.mrj', '20200501.ms', '20200501.mt', '20200501.mus', '20200501.mwl', '20200501.my', '20200501.myv', '20200501.mzn', '20200501.na', '20200501.nah', '20200501.nap', '20200501.nds', '20200501.nds-nl', '20200501.ne', '20200501.new', '20200501.ng', '20200501.nl', '20200501.nn', '20200501.no', '20200501.nov', '20200501.nrm', '20200501.nso', '20200501.nv', '20200501.ny', '20200501.oc', '20200501.olo', '20200501.om', '20200501.or', '20200501.os', '20200501.pa', '20200501.pag', '20200501.pam', '20200501.pap', '20200501.pcd', '20200501.pdc', '20200501.pfl', '20200501.pi', '20200501.pih', '20200501.pl', '20200501.pms', '20200501.pnb', '20200501.pnt', '20200501.ps', '20200501.pt', '20200501.qu', '20200501.rm', '20200501.rmy', '20200501.rn', '20200501.ro', '20200501.roa-rup', '20200501.roa-tara', '20200501.ru', '20200501.rue', '20200501.rw', '20200501.sa', '20200501.sah', '20200501.sat', '20200501.sc', '20200501.scn', '20200501.sco', '20200501.sd', '20200501.se', '20200501.sg', '20200501.sh', '20200501.si', '20200501.simple', '20200501.sk', '20200501.sl', '20200501.sm', '20200501.sn', '20200501.so', '20200501.sq', '20200501.sr', '20200501.srn', '20200501.ss', '20200501.st', '20200501.stq', '20200501.su', '20200501.sv', '20200501.sw', '20200501.szl', '20200501.ta', '20200501.tcy', '20200501.te', '20200501.tet', '20200501.tg', '20200501.th', '20200501.ti', '20200501.tk', '20200501.tl', '20200501.tn', '20200501.to', '20200501.tpi', '20200501.tr', '20200501.ts', '20200501.tt', '20200501.tum', '20200501.tw', '20200501.ty', '20200501.tyv', '20200501.udm', '20200501.ug', '20200501.uk', '20200501.ur', '20200501.uz', '20200501.ve', '20200501.vec', '20200501.vep', '20200501.vi', '20200501.vls', '20200501.vo', '20200501.wa', '20200501.war', '20200501.wo', '20200501.wuu', '20200501.xal', '20200501.xh', '20200501.xmf', '20200501.yi', '20200501.yo', '20200501.za', '20200501.zea', '20200501.zh', '20200501.zh-classical', '20200501.zh-min-nan', '20200501.zh-yue', '20200501.zu'] ``` The cached datasets: ``` % aws s3 --no-sign-request --endpoint-url https://storage.googleapis.com ls s3://huggingface-nlp/cache/datasets/wikipedia/ PRE 20200501.de/ PRE 20200501.en/ PRE 20200501.fr/ PRE 20200501.frr/ PRE 20200501.it/ PRE 20200501.simple/ ``` It seems that this can be fixed from user's end by including a `date` argument, like this: `dataset = datasets.load_dataset('wikipedia', '20200501.en', date='20210420')` You can get available dates from [here](https://dumps.wikimedia.org/enwiki/). This is not a proper fix however as all the files will still have '20200501' in their file names.
[ -0.0480472594499588, 0.3399820327758789, -0.02219211496412754, 0.03158023953437805, -0.319379061460495, 0.15651266276836395, 0.3078281581401825, 0.5392643213272095, 0.17642201483249664, 0.1010853499174118, -0.07535645365715027, 0.07239808142185211, 0.20245154201984406, -0.2449927181005478, -0.11136997491121292, -0.18283337354660034, 0.030912091955542564, 0.07726695388555527, -0.11007626354694366, -0.2934592366218567, -0.19434794783592224, 0.14166325330734253, -0.29754000902175903, -0.10013347864151001, -0.13519233465194702, 0.12826822698116302, -0.12122661620378494, -0.17317721247673035, -0.2367631196975708, -0.2825135886669159, 0.227929025888443, 0.2149960994720459, 0.21509504318237305, 0.24454069137573242, -0.00011261003965046257, -0.022417202591896057, 0.43967893719673157, -0.07291537523269653, -0.6998183727264404, 0.33756738901138306, -0.4934145212173462, -0.20816461741924286, -0.2113407403230667, -0.2803381681442261, 0.02496226876974106, 0.059901244938373566, 0.15230558812618256, -0.0141654834151268, 0.2861969470977783, 0.144876167178154, 0.2360972762107849, -0.022791698575019836, 0.22547540068626404, -0.16852952539920807, 0.3714104890823364, 0.3139842748641968, -0.1705525815486908, -0.14583836495876312, -0.33660805225372314, -0.014552589505910873, -0.08039738237857819, 0.5216310024261475, -0.04834998399019241, -0.23899805545806885, 0.10126577317714691, -0.18348468840122223, -0.16643093526363373, -0.16723662614822388, 0.44765567779541016, 0.35671260952949524, 0.5580339431762695, -0.1420493721961975, -0.17361381649971008, 0.047703295946121216, -0.2691885232925415, -0.31199419498443604, 0.3322288990020752, 0.18795835971832275, -0.07432009279727936, 0.0867362767457962, 0.04343773052096367, -0.18673935532569885, -0.12355589866638184, 0.4326099157333374, -0.29457125067710876, 0.6903672218322754, 0.04759412631392479, -0.020051367580890656, -0.2650397717952728, -0.08622047305107117, -0.012931257486343384, -0.31656748056411743, 0.03356189653277397, 0.3412550687789917, 0.104611337184906, -0.19927483797073364, -0.034066203981637955, 0.17065925896167755, 0.195296049118042, -0.22985079884529114, -0.1247057169675827, 0.17287102341651917, 0.14369994401931763, -0.08445572853088379, 0.28355127573013306, -0.2561606764793396, 0.2181190848350525, 0.14792856574058533, 0.4882200360298157, 0.35134658217430115, -0.19925564527511597, -0.02348421886563301, 0.34284889698028564, 0.05293726176023483, -0.07476744800806046, -0.12167403101921082, 0.17432330548763275, -0.33965951204299927, 0.19490490853786469, 0.15059174597263336, 0.10672147572040558, -0.3127461075782776, -0.31354600191116333, 0.32758504152297974, -0.1723531186580658, 0.055000513792037964, -0.003067106008529663, -0.18209263682365417, -0.12463002651929855, -0.1386277973651886, -0.1526300460100174, -0.005744332447648048, 0.11833005398511887, 0.1284083127975464, 0.28854528069496155, -0.13581331074237823, 0.3161967396736145, 0.2317124903202057, -0.09913258254528046, 0.11458286643028259, -0.17414723336696625, 0.015274282544851303, 0.2022372931241989, 0.37970176339149475, 0.03826729208230972, 0.16784808039665222, -0.15361034870147705, -0.24505816400051117, -0.30760860443115234, -0.09090317785739899, -0.269233375787735, 0.0034935250878334045, -0.31598803400993347, 0.20366434752941132, 0.13090136647224426, 0.023592974990606308, 0.03760997951030731, 0.14190225303173065, 0.19539488852024078, -0.20023661851882935, 0.009289361536502838, -0.03186545521020889, -0.02956295758485794, -0.12040916085243225, 0.2662155330181122, 0.15273608267307281, -0.17830327153205872, -0.11484269797801971, -0.07417891919612885, 0.37058451771736145, 0.1859222948551178, 0.11072742938995361, -0.09837329387664795, 0.09297370910644531, -0.11227085441350937, -0.2385081797838211, 0.2569866478443146, -0.04885184019804001, -0.24772995710372925, -0.14228776097297668, 0.518517255783081, 0.12925763428211212, -0.035100530833005905, -0.18898428976535797, 0.5140386819839478, -0.2660747468471527, 0.005417665466666222, 0.13629575073719025, 0.15007537603378296, -0.096695177257061, -0.10108328610658646, -0.3323807120323181, 0.09408297389745712, -0.13490206003189087, 0.5809418559074402, -0.0463305339217186, 0.3364216983318329, 0.6471559405326843, 0.377738893032074, 0.06752849370241165, 0.20765146613121033, 0.3722667098045349, -0.1182641088962555, -0.08959417045116425, 0.28403931856155396, -0.21952001750469208, -0.33845651149749756, 0.21574753522872925, -0.11195360124111176, 0.14230287075042725, 0.057279396802186966, -0.29916635155677795, -0.22909137606620789, 0.0036071836948394775, -0.15781541168689728, -0.19220609962940216, 0.2709794044494629, 0.11604569852352142, 0.2696572542190552, 0.3821340799331665, 0.07074830681085587, -0.29116764664649963, -0.08037474006414413, 0.02244362235069275, -0.17430463433265686, 0.24834087491035461, -0.31439098715782166, 0.09481412172317505, 0.010476179420948029, 0.16299748420715332, 0.26247596740722656, 0.04679596424102783, 0.13765470683574677, -0.11328783631324768, 0.10754786431789398, 0.12485663592815399, -0.034347135573625565, 0.022877320647239685, 0.25712254643440247, -0.23771663010120392, 0.10162770003080368, 0.3862403333187103, -0.06603308022022247, -0.10896597057580948, -0.33488327264785767, 0.20103712379932404, 0.3396969437599182, -0.008181720972061157, -0.09627370536327362, -0.00026223063468933105, 0.2850741744041443, -0.07284826785326004, 0.1175117939710617, -0.4912267327308655, -0.18529725074768066, 0.2930182218551636, -0.19068744778633118, 0.0877467691898346, -0.094601109623909, 0.2002781331539154, 0.636134922504425, -0.02835792303085327, 0.03606824204325676, 0.30354756116867065, -0.3020724654197693, -0.38531729578971863, 0.3101591169834137, -0.18743054568767548, -0.37067198753356934, 0.17906518280506134, 0.29850348830223083, -0.1842729151248932, -0.19115935266017914, -0.10086247324943542, 0.3368108868598938, 0.05468037724494934, 0.20218807458877563, 0.05540300905704498, 0.3110336661338806, 0.294401615858078, -0.3105645775794983, 0.18805178999900818, -0.16997304558753967, 0.08562569320201874, -0.0013887733221054077, -0.011257003992795944, -0.5644826292991638, 0.07846050709486008, 0.1482224464416504, -0.09705393016338348, -0.5503885746002197, -0.6236143708229065, 0.25781363248825073, 0.07974670827388763, -0.12178079783916473, 0.18368308246135712, -0.29914459586143494, 0.22596096992492676, 0.11158328503370285, 0.2293129712343216, -0.3595903217792511, -0.36634039878845215, -0.15805938839912415, 0.07998085021972656, 0.026751521974802017, -0.16274461150169373, 0.2104150354862213, -0.14022976160049438, -0.5127972960472107, -0.4433470368385315, -0.6245267987251282, 0.3214212954044342, -0.07787105441093445, -0.05956796556711197, 0.14824701845645905, 0.2876191735267639, 0.04461756348609924, -0.359825998544693, -0.04456257075071335, -0.08452042192220688, -0.09611773490905762, -0.10448306798934937, -0.34067779779434204, 0.24044571816921234, -0.059571828693151474, 0.16707615554332733, -0.1340949535369873, -0.19534698128700256, -0.15557509660720825, 0.4140327572822571, 0.07721716165542603, 0.21951667964458466, -0.08506730198860168, -0.32200223207473755, 0.005580805242061615, 0.2085999846458435, -0.41265547275543213, -0.3447985351085663, 0.5001903176307678, -0.32947245240211487, -0.34194985032081604, 0.16938664019107819, -0.07016904652118683, -0.07873204350471497, 0.01638084650039673, -0.4505990147590637, 0.1796373873949051, 0.027193760499358177, 0.37884947657585144, 0.38918358087539673, -0.02603466808795929, 0.27557557821273804, 0.03485839068889618, -0.04465462267398834, -0.08652868121862411, 0.007620587944984436, -0.11138663440942764, -0.05806458368897438, 0.36126595735549927, 0.15321001410484314, 0.09827834367752075, 0.04668496549129486, 0.9649457931518555, 0.1296076774597168, 0.17526084184646606, 0.2703441381454468, 0.09337016940116882, 0.4229116439819336, -0.2968418598175049, 0.03134777396917343, 0.0888594537973404, 0.05067792534828186, 0.14417463541030884, 0.26687559485435486, 0.11429199576377869, -0.3368983268737793, 0.04014735668897629, -0.05618662014603615, -0.14041142165660858, -0.45073461532592773, -0.21839581429958344, 0.1395622193813324, 0.173977792263031, 0.22082598507404327, 0.16417841613292694, -0.3181212246417999, -0.4052610695362091, 0.30400753021240234, 0.16441842913627625, 0.04708581045269966, 0.14401088654994965, -0.20753856003284454, 0.12678109109401703, -0.5879550576210022, 0.1699390560388565, -0.04509124159812927, 0.06303060054779053, -0.127424955368042, 0.02177361398935318, -0.09628255665302277, 0.05952877178788185, -0.042055029422044754, -0.2388562709093094, 0.27186277508735657, 0.26917392015457153, 0.023977234959602356, -0.14056982100009918, 0.02056940644979477, -0.04792876914143562, 0.10306297242641449, 0.2742249071598053, 0.29272717237472534, -0.3884565830230713, -0.13394728302955627, 0.45206916332244873, 0.31494593620300293, -0.13134624063968658, 0.032004501670598984, 0.11038706451654434, -0.1165560930967331, -0.19302736222743988, -0.3179683983325958, 0.04285706579685211, 0.1488126516342163, -0.2054591178894043, 0.10105960071086884, -0.2121364176273346, 0.09568558633327484, -0.000583212822675705, -0.034755583852529526, 0.11804462224245071, 0.34389203786849976, -0.07562238723039627, -0.024357503280043602, 0.22250734269618988, 0.13636478781700134, -0.007209944538772106, 0.02310262620449066, -0.0037990324199199677, -0.12155687808990479, -0.20377635955810547, -0.0587100014090538, 0.19973346590995789, -0.05201618745923042, 0.016581926494836807, -0.04439006745815277, 0.05224978178739548, -0.10275591164827347, -0.20347973704338074, -0.1904219388961792, -0.08530314266681671, -0.3912639021873474, 0.03386125713586807, 0.4699326157569885, -0.03433476760983467, 0.05136273801326752, 0.37078148126602173, 0.21550434827804565, -0.4664892852306366, 0.38545480370521545, 0.2939129173755646, 0.8347734212875366, 0.1898764669895172, 0.18815939128398895, 0.18202398717403412, 0.11017841845750809, 0.3675719201564789, 0.052726343274116516, 0.05215412378311157, -0.11553185433149338, 0.07539936900138855, -0.022881250828504562, 0.31587323546409607, -0.04706115648150444, -0.21191748976707458, -0.1470107138156891, 0.36884576082229614, -0.1156376525759697, 0.4955008924007416, -0.02953144535422325, 0.1209016963839531, 0.06728065013885498, -0.10791874676942825, -0.23097187280654907, 0.15451957285404205, 0.11463207006454468, 0.2068966031074524, -0.11539638042449951, -0.0914430022239685, 0.28958630561828613, -0.17510384321212769, -0.40622958540916443, -0.0956728458404541, 0.026174109429121017, 0.342623770236969, -0.03904213756322861, -0.28347864747047424, -0.22383609414100647, 0.3323225677013397, 0.2916027307510376, 0.09758453071117401, -0.060243040323257446, 0.1861875355243683, -0.2744442820549011, -0.2148987501859665, -0.10298380255699158, 0.1444682478904724, 0.047904953360557556, -0.19173137843608856, -0.09402236342430115, 0.23433923721313477, -0.2672805190086365, -0.38929036259651184, -0.10912758857011795, -0.09151037782430649, -0.1745406985282898, 0.3141993284225464, -0.05611858144402504, -0.07803168892860413, -0.16036394238471985, -0.4524393081665039, 0.15827488899230957, -0.15624958276748657, 0.2698264420032501, 0.05582886189222336, -0.029671283438801765, -0.1778581142425537, -0.21636684238910675, 0.3298386037349701, 0.046684712171554565, 0.17151686549186707, 0.6110987663269043, 0.2423768788576126, -0.33137911558151245, -0.15855154395103455, -0.1488046795129776, -0.3503170907497406, -0.1226206123828888, 0.002759817987680435, -0.4130462110042572, 0.011888697743415833, -0.17973127961158752, 0.37675607204437256, 0.017758280038833618, -0.29518717527389526, -0.12636037170886993, -0.3745443820953369, -0.028724968433380127, 0.27257633209228516, -0.1091432124376297, 0.051079414784908295, 0.16479021310806274, -0.017025381326675415, -0.10537949204444885, 0.13817837834358215, -0.30561399459838867, 0.0877613052725792, 0.029214605689048767, 0.11465878784656525, -0.2499314695596695, -0.037622444331645966, -0.17587655782699585, -0.06790497153997421, 0.1059219241142273, -0.19511207938194275, 0.008463498204946518, -0.21144624054431915, -0.20958642661571503, 0.13488829135894775, -0.023481763899326324, -0.04720166325569153, -0.029244830831885338, -0.14378571510314941, -0.09965336322784424, -0.25858932733535767, 0.020112402737140656, 0.06723500043153763, 0.07666977494955063, 0.2918258011341095, 0.3037973642349243, 0.0459490604698658, 0.05381119251251221, 0.09720106422901154, 0.17595447599887848, 0.5515087842941284, 0.03191348537802696, 0.3699147403240204, -0.04558282345533371, -0.10206326842308044, -0.10024459660053253, 0.23227520287036896, -0.5310226678848267, -0.13320335745811462, 0.6618322730064392, -0.019181959331035614, -0.17777088284492493, 0.5489699840545654, 0.07900431007146835, -0.08906836807727814, -0.0443037711083889, -0.12419737875461578, -0.06725967675447464, 0.21554815769195557, -0.4151812195777893, -0.171060711145401, 0.33530572056770325, 0.04698719456791878, 0.13765299320220947, 0.09362393617630005, 0.25125402212142944, -0.43990352749824524, 0.21326729655265808, 0.2694573700428009, 0.08805245161056519, -0.22219088673591614, 0.3708512485027313, 0.21730798482894897, 0.11693057417869568, 0.2881013751029968, -0.056047990918159485, 0.17150944471359253, -0.018421124666929245, -0.03547677770256996, 0.2547606825828552, 0.10022693872451782, 0.36192625761032104, 0.014144414104521275, 0.20708364248275757, -0.2588256001472473, 0.360100120306015, 0.2614315152168274, -0.07489077746868134, 0.18059545755386353, 0.20450307428836823, -0.4046831727027893, 0.3852645754814148, 0.029120363295078278, -0.37388691306114197, 0.27469557523727417, -0.1384233832359314, -0.22399038076400757, -0.2610630989074707, -0.2730078101158142, 0.25448599457740784, 0.09049057215452194, 0.13105088472366333, -0.3175446391105652, 0.2628818452358246, 0.014609561301767826, -0.14536145329475403, -0.268710732460022, 0.640450656414032, -0.1838212013244629, 0.38397490978240967, -0.1375795304775238, 0.03410523384809494, -0.06871043890714645, -0.06162623316049576, 0.035962022840976715, 0.08602505177259445, 0.22028496861457825, -0.14114487171173096, -0.14874890446662903, 0.04844076931476593, -0.028618061915040016, -0.19278651475906372, -0.16969934105873108, 0.036255817860364914, 0.08993928134441376, -0.2654728889465332, 0.3961620628833771, 0.15181952714920044, -0.11176539212465286, -0.5383559465408325, 0.2200966775417328, 0.13985784351825714, 0.024610374122858047, -0.22565782070159912, 0.029410678893327713, -0.19245082139968872, 0.3682514429092407, 0.02519211918115616, -0.0331524983048439, -0.018604116514325142, 0.17549362778663635, 0.08182849735021591, 0.3540491461753845, -0.13482651114463806, 0.11125538498163223, 0.001408156007528305, 0.21957820653915405, 0.32955124974250793, -0.302410751581192, 0.02465623989701271, -0.358580082654953, -0.2694026827812195, -0.11629647016525269, -0.4224759042263031, -0.13058467209339142, 0.3918169140815735, 0.35652822256088257, 0.18638619780540466, -0.0947759747505188, 0.27890002727508545, -0.207587331533432, 0.0550675168633461, -0.0140285175293684, -0.3055955469608307, 0.03595142811536789, 0.1721835881471634, 0.1491939127445221, -0.26956287026405334, -0.4008757472038269, 0.36344319581985474, -0.17326119542121887, 0.08566099405288696, -0.07782916724681854, 0.07113368809223175, 0.20796355605125427, 0.04335842654109001, -0.02639394998550415, 0.21284322440624237, -0.07169404625892639, -0.2881034016609192, -0.322716623544693, -0.1422346830368042, 0.16424497961997986, 0.036643024533987045, 0.15612302720546722, -0.348583459854126, 0.2843594551086426, -0.042389366775751114, -0.18279948830604553, -0.046338342130184174, 0.7152363061904907, -0.0573212206363678, 0.1616109162569046, -0.22370758652687073, 0.08776569366455078, -0.09716179966926575, 0.10194545984268188, 0.27238455414772034, 0.16900894045829773, -0.18906009197235107, 0.11294884979724884, -0.09423725306987762, -0.5099195837974548, 0.09744522720575333, -0.4027145504951477, -0.45803046226501465, -0.3972793221473694, -0.06402237713336945, 0.07657914608716965, 0.17583954334259033, -0.24689975380897522, 0.04945702850818634, 0.37980765104293823, -0.24478456377983093, 0.039964184165000916, 0.0038362182676792145, -0.013142857700586319, 0.17203249037265778, -0.08839389681816101, 0.20155876874923706, 0.08908232301473618, -0.4260408580303192, -0.5251038670539856, -0.2948702275753021 ]
https://github.com/huggingface/datasets/issues/2166
Hi @vyraun ! The test references for CommonGen are not publicly available: you can reach out to the original dataset authors if you would like to ask for them, but we will not be releasing them as part of GEM (March 31st was the release date for the test set inputs, references are incidentally released for some of the test sets but shouldn't really be used for benchmark submissions) cc @sebastiangehrmann
Regarding Test Sets for the GEM datasets
@yjernite Hi, are the test sets for the GEM datasets scheduled to be [added soon](https://gem-benchmark.com/shared_task)? e.g. ``` from datasets import load_dataset DATASET_NAME="common_gen" data = load_dataset("gem", DATASET_NAME) ``` The test set doesn't have the target or references. ``` data['test'][0] {'concept_set_id': 0, 'concepts': ['drill', 'field', 'run', 'team'], 'gem_id': 'common_gen-test-0', 'gem_parent_id': 'common_gen-test-0', 'references': [], 'target': ''} ```
71
Regarding Test Sets for the GEM datasets @yjernite Hi, are the test sets for the GEM datasets scheduled to be [added soon](https://gem-benchmark.com/shared_task)? e.g. ``` from datasets import load_dataset DATASET_NAME="common_gen" data = load_dataset("gem", DATASET_NAME) ``` The test set doesn't have the target or references. ``` data['test'][0] {'concept_set_id': 0, 'concepts': ['drill', 'field', 'run', 'team'], 'gem_id': 'common_gen-test-0', 'gem_parent_id': 'common_gen-test-0', 'references': [], 'target': ''} ``` Hi @vyraun ! The test references for CommonGen are not publicly available: you can reach out to the original dataset authors if you would like to ask for them, but we will not be releasing them as part of GEM (March 31st was the release date for the test set inputs, references are incidentally released for some of the test sets but shouldn't really be used for benchmark submissions) cc @sebastiangehrmann
[ -0.3199136555194855, -0.096124567091465, -0.19731591641902924, 0.184435173869133, -0.09196016192436218, 0.11846625804901123, 0.28373169898986816, 0.39402616024017334, -0.10528621077537537, -0.01612532138824463, 0.1892586052417755, 0.2699717879295349, -0.3344813287258148, 0.12940244376659393, -0.004284381866455078, 0.20620723068714142, 0.013771358877420425, 0.05326499044895172, -0.13668081164360046, -0.18278512358665466, -0.0030422434210777283, 0.2782807946205139, -0.10434938967227936, 0.06742177158594131, -0.45645028352737427, -0.21059831976890564, -0.14919662475585938, 0.1274922788143158, -0.029293587431311607, -0.27021533250808716, 0.30684757232666016, 0.1725851595401764, -0.1328514963388443, 0.4753214120864868, -0.00010484537051524967, -0.0924757644534111, 0.2723983824253082, -0.13548575341701508, -0.26515665650367737, -0.3887260854244232, -0.36886096000671387, -0.09957312047481537, -0.03750891238451004, -0.10745550692081451, -0.10798239707946777, -0.04699065908789635, -0.10611540824174881, -0.48383015394210815, 0.035425715148448944, 0.24017322063446045, 0.2840695083141327, 0.32824641466140747, -0.07391544431447983, -0.22568511962890625, 0.1541748046875, -0.28875118494033813, -0.25770303606987, 0.23720863461494446, 0.0459524542093277, 0.030473247170448303, 0.2049219310283661, 0.10843095183372498, 0.06876637786626816, 0.1535714715719223, 0.13781365752220154, 0.1191931962966919, -0.013843748718500137, -0.37324947118759155, -0.14427798986434937, 0.24804438650608063, 0.6280162930488586, -0.35022836923599243, -0.4814596176147461, -0.15630650520324707, -0.2806762456893921, -0.05166277289390564, 0.02321137860417366, 0.23640286922454834, -0.12039165198802948, 0.17197439074516296, -0.3285423219203949, -0.3881804347038269, 0.0009277984499931335, -0.2865283191204071, 0.12069076299667358, 0.05896786227822304, -0.07000230252742767, -0.11940684914588928, -0.05996650829911232, -0.007177075371146202, -0.12041287124156952, -0.10250115394592285, -0.19176706671714783, 0.03836904466152191, -0.3621032238006592, -0.4651756286621094, -0.17595696449279785, -0.11255103349685669, 0.33325546979904175, 0.42924919724464417, 0.5199065208435059, 0.15888024866580963, -0.1818338930606842, 0.1502230167388916, 0.3433416485786438, 0.18931296467781067, 0.3401161730289459, -0.11886776238679886, 0.1506563425064087, -0.09514389932155609, -0.15574043989181519, 0.290640264749527, -0.08177897334098816, -0.15658025443553925, -0.008931085467338562, 0.10216900706291199, 0.08562865853309631, -0.16822800040245056, -0.20937716960906982, 0.1630990356206894, 0.20569783449172974, -0.26037120819091797, -0.15411147475242615, 0.12183023989200592, -0.056911684572696686, -0.1605733335018158, -0.39580070972442627, 0.10403241217136383, -0.11886255443096161, -0.3285262882709503, -0.19781991839408875, 0.05627640709280968, 0.005447842180728912, 0.06755393743515015, 0.14926010370254517, -0.2012849748134613, 0.4375043511390686, -0.07457802444696426, 0.23167917132377625, -0.05670570582151413, 0.32547450065612793, -0.018985293805599213, 0.06892859190702438, 0.22510500252246857, -0.06935256719589233, 0.21788278222084045, -0.03238183259963989, -0.11074597388505936, -0.3100338578224182, 0.3561430871486664, -0.12946712970733643, -0.16466395556926727, 0.31786295771598816, 0.24247510731220245, -0.6210732460021973, -0.24334248900413513, -0.3021160364151001, 0.4153851866722107, -0.09818689525127411, -0.20410731434822083, -0.020338837057352066, -0.11939922720193863, 0.06823554635047913, -0.21436280012130737, 0.3045637607574463, 0.11031733453273773, -0.1111430674791336, -0.08007226139307022, 0.22170671820640564, -0.040788695216178894, 0.051782336086034775, 0.05405433475971222, -0.04276511073112488, -0.2430049031972885, -0.057233911007642746, 0.1736021339893341, 0.3769558072090149, -0.15897926688194275, -0.1349399983882904, -0.03315695375204086, -0.2171141803264618, -0.10066324472427368, 0.14981709420681, -0.08050356805324554, 0.16729314625263214, -0.13743990659713745, -0.1856817603111267, 0.12184497714042664, -0.20289139449596405, 0.01845432072877884, -0.42381012439727783, -0.2053615152835846, 0.3437219262123108, -0.06821444630622864, 0.010360447689890862, -0.2939474284648895, 0.007806591689586639, 0.015528224408626556, 0.1362079381942749, 0.13020195066928864, -0.12279614061117172, 0.21045906841754913, 0.18684783577919006, -0.32768380641937256, 0.0944226086139679, -0.09630120545625687, -0.19950230419635773, 0.33988991379737854, 0.3615366816520691, 0.1620858907699585, 0.6675428152084351, -0.13090260326862335, -0.39886587858200073, 0.10484832525253296, -0.11675378680229187, -0.2448289394378662, 0.12769903242588043, 0.022481221705675125, 0.06401152908802032, -0.040948886424303055, -0.26487264037132263, -0.12056734412908554, -0.2782312035560608, -0.058895476162433624, 0.10766826570034027, 0.45149874687194824, -0.10033414512872696, -0.09285039454698563, 0.15377166867256165, 0.0597488135099411, -0.05923071131110191, -0.1679748296737671, -0.044983405619859695, 0.2149650752544403, 0.23450243473052979, 0.3967010974884033, 0.5926069617271423, 0.48322656750679016, 0.130234032869339, -0.40084800124168396, 0.00545567087829113, -0.14215204119682312, -0.012101754546165466, 0.07825542986392975, -0.0040946584194898605, 0.5423491597175598, -0.0047590951435267925, -0.024400614202022552, 0.1844100058078766, -0.040017224848270416, 0.01601210981607437, 0.022838957607746124, -0.14251083135604858, 0.07880158722400665, 0.006102929823100567, -0.29629382491111755, -0.17349360883235931, 0.07475854456424713, -0.14550526440143585, 0.10939747095108032, 0.32034701108932495, 0.016372598707675934, -0.042118094861507416, 0.06585848331451416, -0.06695912778377533, -0.3520912826061249, -0.0452132374048233, 0.2316674441099167, 0.27184075117111206, 0.27483874559402466, 0.5183139443397522, -0.16752488911151886, 0.07181139290332794, 0.11772056668996811, 0.2747020125389099, 0.16202595829963684, 0.3612320125102997, 0.06413857638835907, 0.013986404985189438, -0.030353356152772903, 0.0787399560213089, 0.0004979968070983887, 0.2543187141418457, -0.012608179822564125, -0.26553529500961304, -0.1824519783258438, -0.05299235135316849, 0.4955040216445923, -0.14873400330543518, -0.2569100558757782, -0.2974274158477783, -0.18176642060279846, 0.1917513757944107, -0.20663544535636902, 0.11845313012599945, 0.14405369758605957, -0.10227460414171219, 0.16838768124580383, -0.36012375354766846, -0.010455709882080555, -0.36288362741470337, -0.29072949290275574, -0.0691317617893219, 0.2497561275959015, 0.020223207771778107, -0.19439642131328583, 0.5272138714790344, -0.02493201196193695, -0.03336871787905693, 0.025106919929385185, -0.33808720111846924, -0.020646601915359497, -0.23342321813106537, 0.6151624321937561, -0.021352052688598633, 0.11149289458990097, -0.12273387610912323, -0.050487030297517776, 0.15101632475852966, -0.36709466576576233, -0.20250540971755981, -0.43892428278923035, 0.039420489221811295, 0.16747114062309265, 0.01418381929397583, -0.7287329435348511, -0.31397098302841187, -0.13643303513526917, 0.02778846211731434, 0.07813358306884766, 0.02079484984278679, 0.09374372661113739, -0.07628429681062698, -0.013616040349006653, 0.2463953197002411, 0.12306312471628189, -0.11124847829341888, -0.2469576746225357, 0.07096584141254425, -0.2565820813179016, -0.28343653678894043, 0.008268333971500397, -0.23424866795539856, 0.5369319915771484, -0.2553294897079468, -0.4300385117530823, 0.1072039008140564, 0.1385032832622528, 0.17006874084472656, 0.3131312131881714, -0.32081618905067444, -0.000407930463552475, 0.0782381221652031, -0.26346278190612793, -0.22183318436145782, -0.2145446538925171, 0.01922251284122467, 0.13012653589248657, 0.00014144927263259888, 0.22009509801864624, -0.05047135800123215, 0.11294111609458923, 1.2106736898422241, 0.32735931873321533, -0.2195054292678833, 0.0636020228266716, -0.19271554052829742, 0.07518045604228973, -0.022197820246219635, -0.1251811385154724, -0.1512245237827301, 0.08742103725671768, -0.18557679653167725, 0.17364105582237244, 0.2079458236694336, -0.04672747850418091, -0.12022720277309418, 0.09990138560533524, -0.27889519929885864, -0.07511799782514572, -0.21398454904556274, -0.31329506635665894, 0.1975211501121521, 0.11571566760540009, -0.11541254073381424, -0.04772261157631874, -0.10135319828987122, -0.03833657503128052, 0.18066877126693726, 0.013311021029949188, -0.18006360530853271, -0.5068634748458862, -0.011304229497909546, -0.043113842606544495, 0.27942538261413574, 0.07951626181602478, 0.16193774342536926, -0.16195881366729736, -0.05352901667356491, -0.03298032656311989, -0.13304850459098816, -0.03554920852184296, -0.3102974593639374, 0.0261688232421875, 0.16304446756839752, -0.21689260005950928, -0.008114270865917206, 0.08660620450973511, 0.01153557002544403, 0.056601010262966156, 0.48076191544532776, -0.048989854753017426, 0.04975900053977966, -0.37071913480758667, 0.02352343127131462, 0.042522039264440536, -0.1889980584383011, 0.2285551130771637, -0.1610235571861267, -0.10480543971061707, -0.16232824325561523, 0.03505581244826317, 0.017996184527873993, -0.07483185827732086, -0.5981101989746094, -0.1424153596162796, 0.10414961725473404, 0.04430292546749115, 0.4162411093711853, -0.02202744409441948, 0.2759789824485779, 0.20454266667366028, 0.45969969034194946, 0.44855165481567383, -0.185881108045578, 0.08234576880931854, 0.3713403046131134, -0.07989339530467987, 0.3677320182323456, 0.07147154211997986, -0.14609681069850922, 0.577468991279602, 0.26198744773864746, 0.028113950043916702, -0.18518339097499847, -0.10397465527057648, -0.2885441184043884, -0.30334749817848206, 0.14778278768062592, 0.1347530633211136, 0.0864683985710144, -0.20019593834877014, -0.6305392384529114, 0.19750097393989563, 0.2010250985622406, -0.3536800146102905, 0.35937586426734924, -0.07897503674030304, 0.04088863730430603, 0.07144169509410858, 0.016113942489027977, 0.718524694442749, 0.031129777431488037, 0.040837306529283524, -0.06336790323257446, -0.0831397995352745, -0.05829539895057678, -0.19690991938114166, -0.0650123879313469, -0.45128685235977173, -0.3052608370780945, 0.0646354928612709, -0.23999878764152527, 0.09653684496879578, 0.04617345333099365, 0.053352952003479004, 0.21372511982917786, 0.07489962875843048, -0.09268775582313538, -0.02791387215256691, 0.11692467331886292, 0.19150139391422272, 0.25687193870544434, 0.07795537263154984, 0.19293081760406494, 0.06917031109333038, 0.17677250504493713, 0.148931622505188, -0.08961614966392517, -0.20122718811035156, -0.37081897258758545, -0.517616868019104, -0.03161252662539482, -0.051012441515922546, -0.112678162753582, 0.025629065930843353, -0.40537917613983154, 0.21617820858955383, 0.5042462348937988, 0.1690024882555008, -0.02111021615564823, -0.09405405819416046, 0.23469848930835724, -0.20692606270313263, 0.17750686407089233, 0.26853683590888977, 0.26439881324768066, 0.2987043857574463, -0.17362511157989502, -0.2950647473335266, 0.22390824556350708, -0.2379509061574936, 0.12177792936563492, -0.2031574547290802, -0.0356721393764019, 0.2882804870605469, -0.2387649118900299, 0.17265446484088898, 0.04296668618917465, -0.05366360396146774, -0.22305689752101898, 0.22152838110923767, 0.18275868892669678, -0.05918356031179428, 0.1484227031469345, 0.27330973744392395, -0.16222989559173584, -0.03313913196325302, 0.32019519805908203, 0.1813633143901825, -0.09814414381980896, 0.4658166766166687, -0.0653996616601944, -0.03768562152981758, -0.3925321102142334, 0.3945836126804352, 0.319717139005661, -0.1613171100616455, 0.13431626558303833, -0.082792267203331, 0.08195637166500092, 0.1526438146829605, 0.5572661757469177, 0.31547659635543823, 0.009116802364587784, -0.15291589498519897, -0.12012641876935959, -0.0160592682659626, 0.07212375104427338, -0.3067626953125, 0.4167077839374542, -0.188461035490036, -0.597259521484375, 0.0360754057765007, 0.2838349938392639, -0.4220008850097656, 0.09865397214889526, -0.18594220280647278, 0.10166093707084656, 0.11570815742015839, 0.042625173926353455, 0.31079232692718506, 0.02131650596857071, 0.21265050768852234, -0.29343143105506897, -0.17010751366615295, -0.30002379417419434, -0.08177080750465393, 0.10477863252162933, -0.12810018658638, 0.04129369556903839, -0.3866679072380066, 0.0008957237005233765, -0.05657178908586502, -0.023537594825029373, 0.07731068134307861, -0.1803404688835144, 0.04967961460351944, 0.4335501790046692, 0.13282224535942078, 0.11399288475513458, -0.03134067356586456, 0.09870381653308868, 0.059046387672424316, 0.6497111916542053, 0.05407191812992096, 0.10726193338632584, 0.2401762306690216, -0.1176835298538208, -0.09703471511602402, 0.10327738523483276, 0.09827329218387604, -0.15665946900844574, 0.2506430745124817, -0.1824530065059662, 0.18130572140216827, 0.15215745568275452, 0.3487759232521057, -0.07823915779590607, -0.21794068813323975, 0.18713034689426422, 0.01577427238225937, 0.25663235783576965, -0.07911860942840576, -0.10024659335613251, 0.15079353749752045, 0.05538908392190933, 0.11269815266132355, 0.17592546343803406, 0.511807918548584, -0.012166544795036316, 0.1419253945350647, 0.16052061319351196, 0.22851763665676117, -0.22836965322494507, 0.35044270753860474, -0.1774766743183136, -0.07844699174165726, 0.039711687713861465, 0.1137496680021286, 0.03384917601943016, 0.13017210364341736, -0.14714616537094116, 0.11981671303510666, 0.6880674362182617, 0.3455752730369568, -0.021868128329515457, 0.002970907837152481, -0.19395962357521057, 0.2410515993833542, -0.13619275391101837, 0.10806406289339066, 0.04136580601334572, 0.09500770270824432, 0.683995246887207, -0.006986599415540695, 0.1802155077457428, -0.2407151609659195, -0.2542263865470886, 0.04743366315960884, -0.04683971032500267, 0.18620726466178894, -0.3324164152145386, -0.24058762192726135, -0.0999501645565033, -0.04670792073011398, 0.11155430972576141, 0.2917163074016571, -0.05828317254781723, 0.18531836569309235, -0.14132946729660034, 0.32380205392837524, 0.23308715224266052, -0.046406716108322144, -0.29486554861068726, 0.22502270340919495, -0.01632416620850563, -0.08544403314590454, 0.14058683812618256, 0.393452912569046, 0.37107354402542114, -0.10666687786579132, -0.37427809834480286, -0.20255228877067566, 0.04032488167285919, -0.16683459281921387, -0.022620219737291336, 0.3400898277759552, -0.11548956483602524, -0.37487706542015076, 0.3489947021007538, 0.277054101228714, -0.06061598286032677, -0.0007213909411802888, 0.17012181878089905, -0.12067997455596924, -0.20290592312812805, 0.5408695936203003, 0.017191780731081963, -0.06404121220111847, -0.015045768581330776, 0.02138395421206951, -0.32217520475387573, -0.26379457116127014, 0.381533682346344, -0.029941406100988388, -0.07206100225448608, -0.06755484640598297, 0.13555335998535156, -0.05337972939014435, 0.4942825138568878, -0.01911592110991478, 0.36561211943626404, -0.29197072982788086, -0.16072358191013336, -0.22648847103118896, 0.07165130227804184, 0.5041436553001404, 0.13392296433448792, 0.12251177430152893, 0.09575570374727249, 0.1908082365989685, 0.1724906861782074, 0.1969130039215088, -0.22080186009407043, -0.0869123637676239, 0.3794536888599396, -0.42135089635849, -0.01967228390276432, -0.3491998016834259, 0.12962953746318817, 0.019106239080429077, 0.02506735920906067, -0.11469897627830505, -0.2825492322444916, -0.012156493961811066, -0.29558730125427246, -0.24376565217971802, 0.40591782331466675, 0.05619329959154129, 0.40257325768470764, -0.14560188353061676, 0.8773338794708252, 0.013224899768829346, -0.1577972173690796, -0.00529426708817482, -0.46946075558662415, 0.17087587714195251, -0.02600846067070961, -0.269988089799881, 0.061311274766922, -0.0630878359079361, -0.06511989235877991, -0.09582138061523438, -0.2657928466796875, 0.05011719465255737, 0.03948088735342026, -0.018856216222047806, -0.2808690071105957, -0.19673556089401245, -0.011931847780942917, 0.2182396501302719, 0.2776322066783905, -0.0598590113222599, 0.12448979169130325, -0.15242215991020203, 0.022665806114673615, 0.47597038745880127, 0.07156538963317871, 0.03383833169937134, -0.43231305480003357, 0.22096385061740875, 0.22726435959339142, -0.01785856857895851, -0.4435826539993286, -0.10766059160232544, 0.5402591228485107, 0.1289527416229248, -0.07591372728347778, 0.19785583019256592, 0.32135385274887085, 0.12043635547161102, -0.015420220792293549, 0.1594599187374115, -0.3088412582874298, 0.07376950234174728, -0.11962205916643143, -0.05943501368165016 ]
https://github.com/huggingface/datasets/issues/2165
Hi, a HF dataset can be converted to a Torch Dataset with a simple wrapper as follows: ```python from torch.utils.data import Dataset class HFDataset(Dataset): def __init__(self, dset): self.dset = dset def __getitem__(self, idx): return self.dset[idx] def __len__(self): return len(self.dset) train_ds = HFDataset(train_ds) ``` @lhoestq Since the Arrow Dataset already provides `__getitem__` and `__len__`, I think we could use the [virtual subclass](https://docs.python.org/3/library/abc.html#abc.ABCMeta.register) mechanism from the `abc` module to elegantly solve this issue. This mechanism would allow the Arrow Dataset to be used in place of the Torch Dataset because the `isinstance(instance of Arrow Dataset, TorchDataset)` check would return True (DeepSpeed has this check [here](https://github.com/microsoft/DeepSpeed/blob/ab5534fc4c0f8ca21ada321f9730d723aa31288b/deepspeed/runtime/engine.py#L823)). And it requires a minimal change in the `arrow_dataset.py` file: ```python if config.TORCH_AVAILABLE: from torch.utils.data import Dataset as TorchDataset TorchDataset.register(Dataset) ```
How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi, I'm trying to pretraine deep-speed model using HF arxiv dataset like: ``` train_ds = nlp.load_dataset('scientific_papers', 'arxiv') train_ds.set_format( type="torch", columns=["input_ids", "attention_mask", "global_attention_mask", "labels"], ) engine, _, _, _ = deepspeed.initialize( args=args, model=model, model_parameters=[p for p in model.parameters() if p.requires_grad], training_data=train_ds) ``` but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
124
How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset Hi, I'm trying to pretraine deep-speed model using HF arxiv dataset like: ``` train_ds = nlp.load_dataset('scientific_papers', 'arxiv') train_ds.set_format( type="torch", columns=["input_ids", "attention_mask", "global_attention_mask", "labels"], ) engine, _, _, _ = deepspeed.initialize( args=args, model=model, model_parameters=[p for p in model.parameters() if p.requires_grad], training_data=train_ds) ``` but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset? Hi, a HF dataset can be converted to a Torch Dataset with a simple wrapper as follows: ```python from torch.utils.data import Dataset class HFDataset(Dataset): def __init__(self, dset): self.dset = dset def __getitem__(self, idx): return self.dset[idx] def __len__(self): return len(self.dset) train_ds = HFDataset(train_ds) ``` @lhoestq Since the Arrow Dataset already provides `__getitem__` and `__len__`, I think we could use the [virtual subclass](https://docs.python.org/3/library/abc.html#abc.ABCMeta.register) mechanism from the `abc` module to elegantly solve this issue. This mechanism would allow the Arrow Dataset to be used in place of the Torch Dataset because the `isinstance(instance of Arrow Dataset, TorchDataset)` check would return True (DeepSpeed has this check [here](https://github.com/microsoft/DeepSpeed/blob/ab5534fc4c0f8ca21ada321f9730d723aa31288b/deepspeed/runtime/engine.py#L823)). And it requires a minimal change in the `arrow_dataset.py` file: ```python if config.TORCH_AVAILABLE: from torch.utils.data import Dataset as TorchDataset TorchDataset.register(Dataset) ```
[ -0.2578478157520294, -0.265220582485199, 0.09229046106338501, 0.33822372555732727, 0.19224417209625244, 0.22271470725536346, -0.030272886157035828, 0.3457019031047821, -0.15135788917541504, -0.1886630654335022, -0.34864747524261475, 0.32489922642707825, -0.19426943361759186, -0.14205345511436462, 0.18684080243110657, -0.2680392563343048, 0.16732744872570038, -0.07738552242517471, -0.2466958910226822, -0.15441057085990906, -0.13866554200649261, -0.12028927356004715, 0.07646404206752777, 0.07471297681331635, 0.06710031628608704, 0.09340372681617737, 0.09477844834327698, 0.169215127825737, -0.023705877363681793, -0.3378911316394806, 0.29773572087287903, 0.0648861676454544, 0.5751038789749146, 0.2561475336551666, -0.00012732316099572927, 0.2760317921638489, 0.09355804324150085, -0.07557743042707443, 0.03128000348806381, -0.06703105568885803, -0.0523286834359169, -0.03477595001459122, 0.19301757216453552, -0.10164764523506165, -0.3808216154575348, -0.5978335738182068, -0.17272260785102844, -0.5317305326461792, 0.04688519611954689, 0.4796397089958191, 0.05220285430550575, 0.23595242202281952, -0.015918254852294922, 0.07264131307601929, 0.2887391448020935, -0.09783407300710678, -0.18215152621269226, 0.14891526103019714, 0.0003683120012283325, 0.11054398864507675, -0.14407217502593994, 0.18996664881706238, -0.16283850371837616, -0.0048650894314050674, 0.462242990732193, -0.19837729632854462, -0.3828520178794861, -0.14058780670166016, -0.11103738099336624, 0.4482492506504059, 0.1785311996936798, -0.3304383158683777, -0.16223379969596863, 0.09137822687625885, -0.040227681398391724, -0.1471044421195984, -0.3329949975013733, 0.159129798412323, 0.01332629844546318, 0.14572083950042725, 0.03419317677617073, -0.03485419601202011, -0.17204022407531738, 0.05667770653963089, 0.1703048050403595, 0.2567845284938812, 0.11480672657489777, 0.2005094438791275, 0.11223499476909637, -0.30056047439575195, 0.4763328731060028, -0.28863462805747986, 0.019953297451138496, -0.12535063922405243, -0.10233132541179657, -0.0023471787571907043, -0.3257408142089844, -0.07702792435884476, 0.4265947937965393, 0.10552434623241425, 0.3500559329986572, 0.31157878041267395, -0.15083163976669312, 0.04885868728160858, -0.07834108918905258, -0.10557235777378082, 0.10026838630437851, 0.258419930934906, -0.006784684956073761, -0.24173003435134888, 0.012630358338356018, 0.2741794288158417, -0.05502236261963844, -0.3046228289604187, 0.09896572679281235, -0.00022277049720287323, -0.1225695013999939, -0.14708340167999268, -0.29468274116516113, -0.09638164937496185, -0.3344506025314331, 0.004502281546592712, 0.16580314934253693, 0.195096954703331, -0.006916601210832596, 0.155990868806839, 0.41600364446640015, 0.5736426711082458, -0.27327466011047363, -0.04428336024284363, 0.03926260396838188, 0.10375610738992691, -0.02040771394968033, -0.2133427858352661, -0.06195082142949104, -0.18951517343521118, 0.058985210955142975, -0.027274414896965027, -0.13819967210292816, 0.20872515439987183, 0.43736791610717773, -0.13682329654693604, 0.26777684688568115, 0.03418639674782753, 0.04378480464220047, 0.010727651417255402, 0.3737199306488037, 0.4464448094367981, -0.29628005623817444, 0.25207263231277466, -0.35425886511802673, -0.22941282391548157, -0.02999359741806984, 0.029109802097082138, 0.1518910974264145, -0.33810654282569885, -0.25967833399772644, 0.34412986040115356, -0.04719242453575134, 0.05709665268659592, 0.04228844493627548, -0.45226985216140747, -0.392098605632782, -0.16319529712200165, 0.28663650155067444, 0.2642969489097595, -0.4543378949165344, -0.10825921595096588, 0.06696485728025436, -0.13491825759410858, 0.11498172581195831, 0.22266453504562378, -0.2385527789592743, -0.021237514913082123, -0.37991079688072205, -0.11902966350317001, 0.5021679401397705, -0.39531832933425903, 0.05041084438562393, 0.0612168163061142, 0.1370858997106552, -0.08835868537425995, 0.061323340982198715, 0.06083186715841293, -0.12937474250793457, -0.12115725874900818, 0.1777420938014984, 0.19317156076431274, -0.15149737894535065, -0.22783276438713074, -0.12857221066951752, -0.19819024205207825, 0.3369711637496948, -0.04894326627254486, 0.20178547501564026, 0.2132304608821869, -0.14835096895694733, -0.3161420226097107, 0.27122798562049866, -0.018926378339529037, 0.16279640793800354, 0.2168647050857544, -0.29543963074684143, 0.17372815310955048, -0.051365941762924194, 0.11182351410388947, 0.07116343080997467, 0.1300416886806488, 0.0647762268781662, 0.07387467473745346, 0.1080077514052391, 0.03627493232488632, -0.19979780912399292, 0.1803223043680191, -0.11324744671583176, 0.017049487680196762, -0.0658319741487503, -0.08469827473163605, -0.14952081441879272, -0.24796205759048462, -0.04766521230340004, 0.2230953723192215, -0.40512675046920776, 0.15768907964229584, -0.537521243095398, 0.26423487067222595, 0.13517262041568756, 0.15161466598510742, -0.04619009047746658, 0.265203058719635, 0.08879882097244263, 0.030628465116024017, -0.1722034066915512, 0.21927610039710999, 0.0369969867169857, -0.07043056190013885, 0.2098778486251831, 0.2918400168418884, 0.10836895555257797, -0.976020336151123, 0.4055997431278229, 0.43917256593704224, 0.16165217757225037, -0.02631976455450058, -0.06549425423145294, 0.7372550368309021, 0.277462899684906, 0.30002713203430176, -0.0249517560005188, 0.013337142765522003, 0.020308159291744232, 0.179612934589386, -0.24657687544822693, 0.04844290018081665, -0.15903198719024658, 0.06465747952461243, 0.33503568172454834, -0.06736672669649124, -0.2600281834602356, 0.07208380103111267, -0.0637841522693634, -0.06975504755973816, 0.08923907577991486, 0.2696090042591095, -0.5429382920265198, -0.020052485167980194, 0.2840876877307892, -0.1175016388297081, 0.24781537055969238, 0.1257990151643753, 0.24532894790172577, 0.019236018881201744, -0.15483544766902924, 0.11667729914188385, 0.3136957287788391, 0.10292430222034454, 0.37336570024490356, -0.07123775780200958, 0.026252444833517075, -0.06058955192565918, -0.27551746368408203, -0.027427397668361664, -0.12872092425823212, -0.10861898213624954, -0.49037832021713257, 0.23093733191490173, -0.35182255506515503, 0.0477069616317749, -0.31231656670570374, -0.12596720457077026, 0.06941307336091995, -0.17676618695259094, -0.10421589016914368, -0.02950396202504635, 0.14080509543418884, 0.11300390213727951, -0.4155536890029907, -0.29490089416503906, 0.1695125699043274, -0.4143008589744568, 0.05176614224910736, -0.1680518388748169, -0.18295973539352417, -0.08210895955562592, 0.10179250687360764, -0.014124847948551178, 0.3234536051750183, 0.2352629452943802, -0.03647296875715256, -0.4555363655090332, -0.12376676499843597, 0.08573200553655624, -0.16822591423988342, 0.11825590580701828, 0.16633106768131256, 0.045998554676771164, 0.24556997418403625, 0.0315161757171154, 0.0844992846250534, 0.06413694471120834, -0.03130228817462921, 0.09451142698526382, -0.40601611137390137, 0.17351877689361572, 0.38605552911758423, -0.17540448904037476, -0.32252755761146545, -0.2034178525209427, -0.40239620208740234, 0.05764159560203552, 0.053606677800416946, -0.017600610852241516, 0.3570224940776825, 0.16868054866790771, 0.2799851894378662, -0.004859264940023422, -0.12544512748718262, -0.07013524323701859, 0.3763882517814636, -0.0555458627641201, -0.2689591646194458, -0.14321376383304596, -0.32283657789230347, 0.20733290910720825, 0.30741000175476074, -0.316161572933197, 0.06216420978307724, -0.23116527497768402, 0.3600257635116577, 0.013611914590001106, -0.025063082575798035, 0.3019004762172699, -0.170378640294075, 0.10239604115486145, -0.19098737835884094, -0.2149832546710968, -0.023028098046779633, -0.27904656529426575, 0.29522648453712463, 0.354419469833374, 0.4846101403236389, -0.15068304538726807, 1.041296362876892, -0.046568069607019424, -0.3697221875190735, 0.39737629890441895, -0.12642523646354675, 0.14981773495674133, -0.18332695960998535, -0.22638404369354248, -0.11054830253124237, -0.2265172153711319, 0.28025150299072266, 0.07997938990592957, -0.1003461629152298, -0.17052234709262848, 0.06933616101741791, 0.12144823372364044, -0.03063923865556717, -0.16608601808547974, 0.23295535147190094, -0.8961449861526489, 0.017686735838651657, 0.0021339058876037598, 0.13004760444164276, -0.3229353725910187, 0.02317926287651062, 0.0732281357049942, 0.21521735191345215, 0.14831402897834778, 0.18051008880138397, -0.38622355461120605, 0.20531108975410461, -0.2371467798948288, 0.4286137819290161, 0.056274522095918655, 0.4741935729980469, 0.1464482843875885, -0.1573111116886139, -0.02516140416264534, -0.014780882745981216, 0.24043822288513184, -0.12795817852020264, -0.09472660720348358, 0.07710248231887817, -0.09215188026428223, -0.5414336323738098, -0.024600893259048462, 0.08466947078704834, -0.11949135363101959, -0.14289700984954834, -0.06924301385879517, -0.1483658403158188, -0.3878343105316162, 0.04759112372994423, -0.057772889733314514, -0.09820108860731125, 0.3453832268714905, -0.007009007036685944, -0.2675893008708954, 0.00008549541234970093, -0.004848018288612366, 0.1122530847787857, -0.06894457340240479, -0.10972621291875839, -0.2179272174835205, -0.4557946026325226, -0.009741999208927155, 0.2941734790802002, -0.20024318993091583, 0.2585794925689697, -0.13883303105831146, 0.07534153759479523, -0.15273448824882507, 0.28499266505241394, 0.24380294978618622, 0.43799424171447754, -0.19707483053207397, -0.2902013659477234, 0.009669419378042221, 0.39527133107185364, 0.32975301146507263, 0.1525488942861557, -0.12252186983823776, 0.23076453804969788, 0.07327225804328918, -0.2015487104654312, -0.359308123588562, 0.09722569584846497, 0.22850358486175537, 0.04365289956331253, -0.3781016767024994, -0.5780887007713318, 0.7419283986091614, 0.2688182294368744, 0.14544108510017395, 0.19537760317325592, 0.3553936779499054, -0.30111151933670044, 0.6170403957366943, 0.3395325243473053, 0.9867902994155884, -0.06910749524831772, 0.32587817311286926, 0.05420662835240364, -0.2959991991519928, 0.07210459560155869, -0.050434187054634094, -0.05822787061333656, -0.41268905997276306, -0.1477099508047104, -0.1338687390089035, -0.16220881044864655, 0.005724436603486538, 0.06891439855098724, 0.31536364555358887, 0.17802833020687103, -0.07445822656154633, -0.03839128464460373, 0.09624036401510239, 0.07236897945404053, -0.17905652523040771, -0.2455156296491623, 0.04996213689446449, 0.13404609262943268, -0.1460224688053131, 0.034926608204841614, 0.026711102575063705, -0.2325412929058075, -0.21484729647636414, -0.04748748242855072, -0.09264585375785828, 0.09688594937324524, -0.46611878275871277, 0.17137360572814941, -0.10452266782522202, -0.7122539281845093, 0.3375082015991211, 0.2854370176792145, 0.35119661688804626, -0.1926305890083313, -0.1350197196006775, 0.15177838504314423, 0.39610543847084045, -0.0373029001057148, 0.026766501367092133, -0.22335310280323029, 0.4106800854206085, 0.10689160972833633, 0.035352662205696106, 0.017552928999066353, -0.007100369781255722, -0.3052245080471039, -0.31450995802879333, -0.12452360987663269, 0.5930759310722351, -0.28199973702430725, -0.3719061613082886, 0.23803049325942993, -0.09270916879177094, -0.06759296357631683, 0.009043654426932335, 0.0696062445640564, -0.1106252670288086, -0.0107090063393116, 0.13454832136631012, -0.3021261692047119, 0.060013849288225174, 0.3590588867664337, 0.2400667816400528, 0.31625327467918396, 0.3917657136917114, 0.16924650967121124, -0.05569589138031006, -0.006532132625579834, 0.2975602149963379, 1.007791519165039, -0.24587488174438477, -0.009941233322024345, -0.117047980427742, -0.16097094118595123, 0.10379766672849655, -0.16342857480049133, 0.008103413507342339, -0.05537460371851921, -0.1087673157453537, -0.11851142346858978, -0.4555996060371399, 0.07485656440258026, -0.4061068892478943, 0.24913272261619568, -0.12255331873893738, 0.017226096242666245, -0.3211314380168915, 0.015515318140387535, -0.1448335200548172, 0.11273051053285599, 0.26514145731925964, 0.13708370923995972, -0.11976519227027893, 0.12661051750183105, 0.006929077208042145, 0.17730623483657837, 0.0005028769373893738, 0.07910504937171936, -0.18282219767570496, -0.10518993437290192, -0.27314597368240356, 0.1961016058921814, 0.06831344962120056, -0.1551603376865387, 0.09948605298995972, -0.28535008430480957, -0.22290684282779694, -0.03649510443210602, 0.16837309300899506, 0.20674902200698853, 0.005914144217967987, 0.22947391867637634, 0.30349934101104736, -0.025920573621988297, -0.21059077978134155, 0.03834911808371544, 0.3125869929790497, 0.3946986496448517, -0.0605471096932888, 0.09654761850833893, -0.17579875886440277, -0.2931244671344757, -0.38735300302505493, 0.17521820962429047, 0.47208163142204285, 0.027349840849637985, 0.2311715930700302, -0.03988289833068848, 0.10248090326786041, -0.2299894094467163, 0.22984245419502258, 0.37920328974723816, -0.06111428141593933, 0.04719384014606476, 0.023111999034881592, -0.0648275837302208, -0.307517945766449, -0.05686493217945099, -0.359482079744339, -0.4126644730567932, 0.0003112107515335083, 0.11422590911388397, 0.08261542022228241, 0.61050945520401, -0.16187454760074615, -0.24634146690368652, 0.008111737668514252, -0.2925339341163635, -0.0741097629070282, 0.4579825699329376, 0.21067248284816742, 0.032575879245996475, 0.3636946380138397, 0.0911528691649437, 0.3156629204750061, 0.2562747895717621, 0.3217664062976837, 0.9033665060997009, 0.5328702926635742, 0.051999449729919434, 0.4340226948261261, -0.3633098006248474, -0.26598888635635376, 0.23427601158618927, 0.14085324108600616, 0.20214182138442993, 0.11766700446605682, 0.4040748178958893, -0.005170777440071106, -0.47133302688598633, 0.06427715718746185, 0.051475655287504196, 0.045438483357429504, -0.38156312704086304, -0.17365947365760803, 0.011679261922836304, -0.3381463289260864, -0.15981526672840118, -0.3009895980358124, -0.20254194736480713, -0.027390699833631516, 0.17431838810443878, -0.013438008725643158, -0.10402164608240128, 0.05471793934702873, 0.23190340399742126, -0.1501418501138687, -0.042955201119184494, 0.07670433074235916, -0.09779539704322815, -0.09068858623504639, 0.05011025071144104, 0.2382848709821701, 0.17931309342384338, 0.03874494135379791, -0.31017374992370605, -0.030236776918172836, 0.5008476972579956, -0.15785016119480133, 0.26336705684661865, -0.11670450866222382, 0.03303147852420807, -0.08956371247768402, 0.3350350856781006, -0.004501596093177795, 0.045666202902793884, -0.0018748196307569742, -0.03608235716819763, -0.011833027005195618, -0.08065402507781982, 0.46867701411247253, 0.03810013458132744, 0.013976417481899261, -0.17364510893821716, 0.08243544399738312, -0.2970452904701233, -0.14477166533470154, 0.6065621972084045, -0.19594234228134155, 0.1275310218334198, 0.03945661336183548, -0.015610957518219948, -0.05599752813577652, 0.27121707797050476, 0.2909681797027588, 0.012856656685471535, -0.41781824827194214, 0.056423962116241455, -0.2842061221599579, -0.06004803255200386, -0.08164043724536896, 0.06322425603866577, -0.016659611836075783, 0.005641505122184753, 0.3884035348892212, 0.01998179964721203, -0.004637487232685089, -0.037249766290187836, 0.21836557984352112, 0.4570043087005615, 0.024327486753463745, -0.23599356412887573, -0.15820664167404175, 0.3439807891845703, -0.047092750668525696, -0.3401724100112915, -0.18343785405158997, 0.26652199029922485, -0.09882950037717819, 0.041692089289426804, -0.2853511571884155, 0.5871299505233765, -0.055839601904153824, 0.3612969219684601, 0.013453694060444832, 0.44256311655044556, -0.19351285696029663, 0.05624733865261078, 0.05606159567832947, -0.051419295370578766, -0.4351491928100586, 0.18677417933940887, -0.16839483380317688, 0.3249022364616394, -0.017973393201828003, -0.21465802192687988, -0.05552347004413605, 0.11308182775974274, -0.01921267807483673, -0.48316916823387146, -0.3689866065979004, 0.5198543071746826, -0.3363097012042999, 0.05452211946249008, 0.21587398648262024, 0.5405632257461548, 0.15996196866035461, 0.2815883457660675, -0.24932239949703217, -0.19778871536254883, 0.5602647066116333, 0.08794692158699036, -0.012767471373081207, 0.10009288787841797, -0.09095507860183716, 0.2509337067604065, 0.08420775085687637, -0.3041747808456421, -0.10447505116462708, 0.13969016075134277, -0.22591039538383484, 0.08175384253263474, 0.1331896185874939, 0.29299110174179077, 0.23630595207214355, -0.3110002875328064, 0.4001898467540741, 0.15462854504585266, 0.07438940554857254, -0.13391532003879547, -0.2898063659667969 ]
https://github.com/huggingface/datasets/issues/2165
Interesting ! Thanks for sharing this @mariosasko . I like the idea This looks like something we should add IMO
How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi, I'm trying to pretraine deep-speed model using HF arxiv dataset like: ``` train_ds = nlp.load_dataset('scientific_papers', 'arxiv') train_ds.set_format( type="torch", columns=["input_ids", "attention_mask", "global_attention_mask", "labels"], ) engine, _, _, _ = deepspeed.initialize( args=args, model=model, model_parameters=[p for p in model.parameters() if p.requires_grad], training_data=train_ds) ``` but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
20
How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset Hi, I'm trying to pretraine deep-speed model using HF arxiv dataset like: ``` train_ds = nlp.load_dataset('scientific_papers', 'arxiv') train_ds.set_format( type="torch", columns=["input_ids", "attention_mask", "global_attention_mask", "labels"], ) engine, _, _, _ = deepspeed.initialize( args=args, model=model, model_parameters=[p for p in model.parameters() if p.requires_grad], training_data=train_ds) ``` but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset? Interesting ! Thanks for sharing this @mariosasko . I like the idea This looks like something we should add IMO
[ -0.2704313397407532, -0.3552313446998596, 0.05783388763666153, 0.32740268111228943, 0.13080231845378876, 0.2287474125623703, -0.07467102259397507, 0.3752877414226532, -0.15198197960853577, -0.24214082956314087, -0.3885171413421631, 0.3905748724937439, -0.24195587635040283, 0.015906915068626404, 0.17494691908359528, -0.3065539300441742, 0.22153852880001068, 0.08797597885131836, -0.26048851013183594, -0.18444961309432983, -0.11503679305315018, -0.0907217413187027, 0.06238606572151184, 0.10662414133548737, 0.07540823519229889, 0.021876780316233635, 0.06037001311779022, 0.13616979122161865, -0.09120971709489822, -0.372733473777771, 0.16201910376548767, 0.08058129251003265, 0.6023117303848267, 0.25422292947769165, -0.00012946497008670121, 0.12140975892543793, 0.047135960310697556, -0.13531464338302612, 0.1333482414484024, -0.06488452106714249, -0.19094796478748322, -0.016052767634391785, 0.19828256964683533, -0.14454060792922974, -0.3125002682209015, -0.5852586030960083, -0.0864550992846489, -0.3302888572216034, 0.13179746270179749, 0.5674698948860168, 0.04482126981019974, 0.2532971501350403, 0.04113037884235382, 0.04136884957551956, 0.27099162340164185, -0.13406166434288025, -0.189419686794281, 0.05144725367426872, -0.04495827481150627, 0.15641920268535614, -0.18687760829925537, 0.17607524991035461, -0.13300028443336487, 0.026119526475667953, 0.35553839802742004, -0.30807754397392273, -0.36377134919166565, -0.18336962163448334, -0.053596291691064835, 0.543658971786499, 0.2123098224401474, -0.24707433581352234, -0.05360506474971771, 0.1764545887708664, -0.04064774513244629, -0.18321934342384338, -0.4047420620918274, 0.24381205439567566, -0.03447917848825455, 0.13898319005966187, -0.0193721204996109, -0.22091874480247498, -0.1599254161119461, 0.04965841770172119, 0.23374482989311218, 0.3325101435184479, 0.08632518351078033, 0.17209762334823608, 0.21955719590187073, -0.31765276193618774, 0.43504801392555237, -0.23008811473846436, 0.013685349375009537, -0.19053471088409424, -0.08447986096143723, -0.05360027402639389, -0.3678520917892456, -0.08700040727853775, 0.44508305191993713, 0.09142979979515076, 0.19405502080917358, 0.3110406994819641, -0.18772698938846588, 0.08765357732772827, -0.1655004769563675, -0.2114875316619873, 0.13208451867103577, 0.23687875270843506, 0.015188518911600113, -0.26386553049087524, -0.035054273903369904, 0.26853781938552856, -0.10659189522266388, -0.40338295698165894, 0.026864036917686462, 0.013290487229824066, -0.1553603559732437, -0.1946212351322174, -0.17890730500221252, -0.2201949805021286, -0.27442601323127747, -0.041535429656505585, 0.025533996522426605, 0.2432049959897995, -0.01978611759841442, 0.03248272463679314, 0.2451164275407791, 0.6499626636505127, -0.1770288646221161, -0.1200619637966156, 0.023189343512058258, 0.11862115561962128, -0.010444976389408112, -0.1782735288143158, -0.09017695486545563, -0.1836852729320526, 0.0831102505326271, -0.03119778446853161, -0.28378769755363464, 0.1042148619890213, 0.3755454421043396, -0.10940387845039368, 0.28867307305336, 0.03508901596069336, 0.11428996175527573, 0.007826291024684906, 0.2785113453865051, 0.41194772720336914, -0.33100348711013794, 0.27175214886665344, -0.5120925903320312, -0.19234761595726013, -0.16789264976978302, 0.0259818397462368, 0.176634281873703, -0.33908188343048096, -0.417864590883255, 0.33622410893440247, 0.0006455890834331512, 0.1393367499113083, 0.01118653267621994, -0.4340932369232178, -0.3783959746360779, -0.19090574979782104, 0.19558236002922058, 0.26190558075904846, -0.3799598813056946, -0.14375589787960052, 0.1453680396080017, -0.17730464041233063, 0.21097669005393982, 0.3144457936286926, -0.2082759141921997, 0.06457343697547913, -0.4396533668041229, -0.04549005627632141, 0.6284149289131165, -0.3011910319328308, 0.14949722588062286, 0.11732380092144012, 0.13222196698188782, -0.27067112922668457, 0.11664731800556183, -0.018161440268158913, -0.07844534516334534, -0.04470876231789589, 0.1449573040008545, 0.22853779792785645, -0.13093727827072144, -0.15714848041534424, -0.12416152656078339, -0.3072411119937897, 0.4866386353969574, -0.05572229623794556, 0.21740595996379852, 0.2946624457836151, -0.11261779814958572, -0.2794392704963684, 0.3269389271736145, -0.06871722638607025, 0.13835471868515015, 0.24323982000350952, -0.30349302291870117, 0.026178985834121704, -0.07940490543842316, 0.10948307812213898, 0.16473369300365448, -0.04270116239786148, 0.01624637097120285, 0.003379857400432229, 0.07950350642204285, 0.08111464977264404, -0.22494837641716003, 0.16495519876480103, -0.11564753949642181, 0.07490720599889755, -0.08182215690612793, -0.07527369260787964, -0.1724802553653717, -0.15606436133384705, -0.042329806834459305, 0.20441921055316925, -0.37093091011047363, 0.11213475465774536, -0.535800576210022, 0.2550238072872162, 0.09915996342897415, 0.11605989933013916, 0.08696262538433075, 0.2077861875295639, 0.09993116557598114, 0.0034459345042705536, -0.13132517039775848, 0.18196216225624084, 0.0038001947104930878, 0.05477123707532883, 0.39072179794311523, 0.3828902244567871, 0.07894142717123032, -1.0408313274383545, 0.3747023046016693, 0.42308932542800903, 0.11251918971538544, -0.11400415748357773, -0.08389412611722946, 0.7048977613449097, 0.1983753740787506, 0.20451141893863678, -0.023392125964164734, -0.08078977465629578, 0.08933891355991364, 0.12758737802505493, -0.20397354662418365, 0.04505419731140137, -0.09581510722637177, -0.032464586198329926, 0.2899931073188782, -0.02984907478094101, -0.39106321334838867, -0.026577860116958618, 0.06116338074207306, 0.008654609322547913, 0.09781019389629364, 0.35652047395706177, -0.5009668469429016, -0.1333935260772705, 0.25982820987701416, -0.3266511559486389, 0.12455635517835617, 0.14961686730384827, 0.16681258380413055, 0.031500108540058136, -0.051946960389614105, 0.035763081163167953, 0.26762884855270386, -0.024504955857992172, 0.45647794008255005, 0.03834770247340202, 0.09882281720638275, -0.0827442929148674, -0.3403327465057373, 0.013574428856372833, -0.14815521240234375, -0.0426875576376915, -0.47708484530448914, 0.12968623638153076, -0.3740547299385071, -0.10771342366933823, -0.323243111371994, 0.016060110181570053, 0.09229472279548645, -0.06350738555192947, -0.15852129459381104, -0.03738383203744888, 0.2656472325325012, 0.12645116448402405, -0.41923514008522034, -0.23996591567993164, 0.21902987360954285, -0.2623652517795563, -0.04594535380601883, -0.18874262273311615, -0.07974712550640106, -0.08202515542507172, 0.0914015993475914, 0.016128450632095337, 0.2941831648349762, 0.14126980304718018, 0.14447996020317078, -0.42426949739456177, -0.14204709231853485, 0.00258421478793025, -0.09934261441230774, 0.06977920979261398, 0.15950638055801392, 0.14119534194469452, 0.22449487447738647, 0.056741226464509964, 0.043184150010347366, 0.041101545095443726, -0.040709033608436584, 0.10775834321975708, -0.4161679148674011, 0.14138413965702057, 0.495577871799469, -0.13010697066783905, -0.32753416895866394, -0.2123827040195465, -0.36850613355636597, 0.04933694005012512, 0.14444181323051453, -0.16093233227729797, 0.360703706741333, 0.10277202725410461, 0.17351888120174408, -0.024891208857297897, -0.06947239488363266, -0.09421823918819427, 0.34644991159439087, -0.07779821753501892, -0.2930302321910858, -0.17459487915039062, -0.26639506220817566, 0.1151687502861023, 0.19905322790145874, -0.3448435366153717, 0.17936651408672333, -0.15670983493328094, 0.31035399436950684, -0.0029996326193213463, -0.05152915418148041, 0.3110347092151642, -0.14729593694210052, 0.1452459990978241, -0.1825830340385437, -0.2098718136548996, -0.0008983761072158813, -0.1738933026790619, 0.33575528860092163, 0.43629100918769836, 0.45673537254333496, -0.21104134619235992, 0.9687736630439758, -0.01488540694117546, -0.3842709958553314, 0.5177220106124878, -0.16331414878368378, 0.10342080891132355, -0.1918206512928009, -0.25348755717277527, -0.038690242916345596, -0.080229252576828, 0.36677324771881104, 0.09741666913032532, -0.12482395768165588, -0.18079543113708496, 0.08650107681751251, 0.10670287907123566, -0.10537315905094147, -0.059336885809898376, 0.23457054793834686, -0.8194180727005005, -0.07268232107162476, 0.0025317370891571045, -0.00683671236038208, -0.24372830986976624, -0.05567749962210655, 0.07772444933652878, 0.31362035870552063, 0.2601484954357147, 0.2205914855003357, -0.37070658802986145, 0.18370822072029114, -0.21205727756023407, 0.3850880563259125, -0.05284419283270836, 0.48410719633102417, 0.1041785329580307, -0.06411296129226685, 0.03185172751545906, -0.030621875077486038, 0.38669437170028687, -0.18755856156349182, -0.09140165150165558, 0.01941543072462082, -0.025963149964809418, -0.4439345598220825, -0.005725502967834473, 0.04131636023521423, -0.04336186870932579, -0.11644811928272247, 0.18311390280723572, -0.15467563271522522, -0.3596234619617462, -0.0006945431232452393, 0.0029349103569984436, -0.11380933970212936, 0.2737461030483246, 0.07681606709957123, -0.20456819236278534, 0.0357518196105957, 0.0536898672580719, -0.016444005072116852, -0.09900009632110596, -0.11606665700674057, -0.22331437468528748, -0.47662392258644104, 0.0645197257399559, 0.24873797595500946, -0.2038893699645996, 0.1920405626296997, -0.07865890115499496, -0.0404600128531456, -0.2650974690914154, 0.2962011694908142, 0.26158642768859863, 0.2747354805469513, -0.26952892541885376, -0.17951610684394836, -0.012042338959872723, 0.30114758014678955, 0.3822055160999298, 0.0853855162858963, -0.06862527132034302, 0.28153106570243835, 0.06289322674274445, -0.09583132714033127, -0.3378951847553253, 0.14919905364513397, 0.29030266404151917, -0.0034238435328006744, -0.5377704501152039, -0.4617137908935547, 0.7115880846977234, 0.24235518276691437, 0.11238735914230347, 0.21737882494926453, 0.22698670625686646, -0.2727288007736206, 0.7211725115776062, 0.22165650129318237, 1.1427090167999268, -0.16345861554145813, 0.3277300000190735, -0.06890276074409485, -0.3151948153972626, 0.14408162236213684, -0.136624276638031, -0.043857328593730927, -0.5092169046401978, -0.13374541699886322, -0.17242035269737244, -0.21025536954402924, 0.0005086064338684082, 0.11151409149169922, 0.30663275718688965, 0.17367985844612122, -0.0907343327999115, -0.04309876263141632, 0.07390592992305756, 0.1339905858039856, -0.012721757404506207, -0.2152225375175476, -0.049679193645715714, 0.08126132190227509, -0.24550074338912964, 0.04285164549946785, 0.022638089954853058, -0.3167787492275238, -0.08576548099517822, -0.012804858386516571, -0.06291373819112778, 0.1333412379026413, -0.39161574840545654, 0.20868134498596191, -0.10200750082731247, -0.7172006964683533, 0.24800729751586914, 0.3210873305797577, 0.3370935022830963, -0.13277524709701538, -0.14620321989059448, 0.16360661387443542, 0.4743587076663971, -0.17358994483947754, -0.012284558266401291, -0.0925387442111969, 0.2693699300289154, 0.006993792951107025, -0.005126982927322388, 0.05924687907099724, 0.04368802160024643, -0.3624275028705597, -0.3166554570198059, -0.16381984949111938, 0.4906708896160126, -0.24663430452346802, -0.5456699728965759, 0.20049041509628296, -0.06260418891906738, -0.049250584095716476, -0.007877056486904621, 0.09405004978179932, -0.08011449873447418, 0.0802997350692749, 0.2769869565963745, -0.3589981198310852, 0.06917314231395721, 0.3846993148326874, 0.1874384582042694, 0.3788057863712311, 0.3787676990032196, 0.1662435531616211, -0.08434592187404633, -0.058162592351436615, 0.2729896605014801, 0.8475379943847656, -0.21127763390541077, -0.05503685772418976, -0.10177990049123764, -0.06672424077987671, 0.17647932469844818, -0.15383654832839966, -0.024277107790112495, -0.010791782289743423, -0.0010593384504318237, -0.1684328317642212, -0.37766313552856445, -0.009420551359653473, -0.5037516951560974, 0.2098776400089264, 0.032290153205394745, -0.06550012528896332, -0.36499348282814026, 0.07162085175514221, -0.13086065649986267, 0.18925362825393677, 0.23059099912643433, 0.13269983232021332, -0.11989644169807434, 0.15194880962371826, -0.030875619500875473, 0.14198371767997742, -0.0059039779007434845, 0.021319910883903503, -0.19806379079818726, -0.12422332912683487, -0.23404574394226074, 0.21405579149723053, 0.10165117681026459, -0.12332324683666229, 0.10855120420455933, -0.2530791461467743, -0.26543018221855164, 0.03491383418440819, 0.1609393209218979, 0.20661590993404388, 0.0862390473484993, 0.29733121395111084, 0.34024471044540405, -0.10258647054433823, -0.2123933732509613, 0.07548388838768005, 0.3458486497402191, 0.3790521025657654, -0.1384807974100113, 0.11079711467027664, -0.1813204437494278, -0.2900879979133606, -0.366178959608078, 0.17222167551517487, 0.5551644563674927, 0.01766328513622284, 0.23928266763687134, -0.07881180942058563, 0.14251655340194702, -0.2420075386762619, 0.2221851944923401, 0.37902817130088806, -0.10635963827371597, 0.06773992627859116, 0.059403564780950546, -0.07549623399972916, -0.29942792654037476, -0.038503944873809814, -0.21731621026992798, -0.3141106963157654, -0.07237609475851059, 0.027217745780944824, 0.12553763389587402, 0.5410740375518799, -0.1436741203069687, -0.29654693603515625, 0.044799380004405975, -0.345157265663147, -0.13957898318767548, 0.38163018226623535, 0.2292928695678711, 0.00808170810341835, 0.3678339123725891, 0.23509158194065094, 0.3199833631515503, 0.1539040505886078, 0.4099697768688202, 0.849285900592804, 0.641772449016571, 0.0754530131816864, 0.4385547637939453, -0.4119921624660492, -0.32950150966644287, 0.2571870684623718, 0.14325255155563354, 0.12585054337978363, 0.15022382140159607, 0.49332910776138306, 0.1703614890575409, -0.5665959119796753, 0.07169616222381592, 0.19140346348285675, 0.034636493772268295, -0.45139700174331665, -0.13021491467952728, 0.04139229655265808, -0.30980581045150757, -0.12442716956138611, -0.31043747067451477, -0.1233871579170227, -0.05510607734322548, 0.22585180401802063, 0.056627728044986725, -0.07244280725717545, 0.1049894317984581, 0.2062298059463501, -0.11392365396022797, -0.07132766395807266, 0.15494121611118317, -0.13506731390953064, -0.05420679226517677, 0.05789804086089134, 0.1662692427635193, 0.24391569197177887, -0.008227778598666191, -0.30188363790512085, -0.045433759689331055, 0.4646238386631012, -0.16452044248580933, 0.340302050113678, -0.073619544506073, 0.208126038312912, -0.10074253380298615, 0.3429596722126007, -0.005963116884231567, 0.06265466660261154, 0.13542954623699188, 0.02871595323085785, -0.0066623929888010025, 0.018063686788082123, 0.24813148379325867, 0.11463654041290283, 0.029434114694595337, -0.17421923577785492, -0.011242944747209549, -0.3586733341217041, -0.04960087686777115, 0.6691648960113525, -0.23963570594787598, 0.11439896374940872, 0.08044139295816422, -0.006269089877605438, -0.06502780318260193, 0.1841633915901184, 0.37146398425102234, 0.10799240320920944, -0.394897997379303, 0.02238018810749054, -0.19569236040115356, 0.039269641041755676, 0.026424597948789597, 0.10666238516569138, -0.08346899598836899, -0.0030417554080486298, 0.3395580053329468, 0.0002311253920197487, -0.0614798367023468, -0.033435530960559845, 0.20423811674118042, 0.5422482490539551, 0.019290335476398468, -0.10772764682769775, -0.2591680586338043, 0.36382466554641724, -0.14410816133022308, -0.3204353153705597, -0.09034259617328644, 0.2091025561094284, -0.08477207273244858, -0.001074075698852539, -0.23355576395988464, 0.5360317826271057, -0.0856616348028183, 0.3362801969051361, -0.07337837666273117, 0.4900248348712921, -0.29592806100845337, 0.11958246678113937, 0.17392097413539886, -0.08419724553823471, -0.4016541540622711, 0.2119206190109253, -0.09272284805774689, 0.26051804423332214, -0.0029800385236740112, -0.1320885568857193, -0.04409826546907425, 0.12067636102437973, -0.12072819471359253, -0.44787442684173584, -0.23860397934913635, 0.4975053071975708, -0.2389291524887085, -0.09641870856285095, 0.28458815813064575, 0.4631788730621338, 0.1880175918340683, 0.20129357278347015, -0.16083572804927826, -0.14966237545013428, 0.5671271681785583, 0.15856342017650604, -0.047942906618118286, 0.08319692313671112, -0.10939157009124756, 0.26542696356773376, 0.060367651283741, -0.36336949467658997, -0.10270785540342331, 0.15576717257499695, -0.27133479714393616, 0.11845304071903229, 0.21746058762073517, 0.23409175872802734, 0.2719828486442566, -0.3003630042076111, 0.40938955545425415, 0.21303614974021912, 0.0507342666387558, -0.2739741802215576, -0.3515224754810333 ]
https://github.com/huggingface/datasets/issues/2165
@mariosasko Thx for your code! It perfectly works with a small modification for HF NLP dataset: ``` original_ds = nlp.load_dataset('scientific_papers', 'arxiv') train_ds = HFDataset(train_ds['train']) # needs splitting ```
How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi, I'm trying to pretraine deep-speed model using HF arxiv dataset like: ``` train_ds = nlp.load_dataset('scientific_papers', 'arxiv') train_ds.set_format( type="torch", columns=["input_ids", "attention_mask", "global_attention_mask", "labels"], ) engine, _, _, _ = deepspeed.initialize( args=args, model=model, model_parameters=[p for p in model.parameters() if p.requires_grad], training_data=train_ds) ``` but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
28
How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset Hi, I'm trying to pretraine deep-speed model using HF arxiv dataset like: ``` train_ds = nlp.load_dataset('scientific_papers', 'arxiv') train_ds.set_format( type="torch", columns=["input_ids", "attention_mask", "global_attention_mask", "labels"], ) engine, _, _, _ = deepspeed.initialize( args=args, model=model, model_parameters=[p for p in model.parameters() if p.requires_grad], training_data=train_ds) ``` but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset? @mariosasko Thx for your code! It perfectly works with a small modification for HF NLP dataset: ``` original_ds = nlp.load_dataset('scientific_papers', 'arxiv') train_ds = HFDataset(train_ds['train']) # needs splitting ```
[ -0.22635605931282043, -0.3335737884044647, 0.07031472772359848, 0.3271583914756775, 0.13317592442035675, 0.19714421033859253, -0.06429543346166611, 0.373365193605423, -0.1391187161207199, -0.26625722646713257, -0.3984829783439636, 0.3849843442440033, -0.1794499009847641, -0.009580746293067932, 0.15543606877326965, -0.30089718103408813, 0.1781211942434311, 0.07672923058271408, -0.2033020257949829, -0.2192833572626114, -0.09847340732812881, -0.04963783919811249, 0.021121665835380554, 0.1258828043937683, 0.006091069430112839, 0.05968937277793884, 0.04682313650846481, 0.20683811604976654, -0.04797205328941345, -0.32900625467300415, 0.1856229305267334, 0.03522295132279396, 0.5887830257415771, 0.25462231040000916, -0.00013067442341707647, 0.12323346734046936, 0.04751382768154144, -0.153901144862175, 0.11026088893413544, -0.10599464178085327, -0.12513810396194458, -0.037439681589603424, 0.19238649308681488, -0.12359672784805298, -0.35272449254989624, -0.5381258726119995, -0.09823556989431381, -0.29003506898880005, 0.18213166296482086, 0.5682998895645142, 0.04398352652788162, 0.2380838394165039, -0.00017420202493667603, 0.05021399259567261, 0.26545998454093933, -0.11581864953041077, -0.1378011405467987, 0.07706229388713837, -0.0951838493347168, 0.11447335034608841, -0.2686014473438263, 0.142805278301239, -0.15033087134361267, 0.07208319008350372, 0.3074946701526642, -0.3364240527153015, -0.41876912117004395, -0.190743088722229, -0.0029427488334476948, 0.5164998769760132, 0.19757643342018127, -0.2164665162563324, -0.04860036447644234, 0.14610165357589722, -0.10835061967372894, -0.1705802083015442, -0.36707428097724915, 0.23056943714618683, -0.03364570438861847, 0.13316155970096588, 0.03742951154708862, -0.1993558257818222, -0.15867756307125092, 0.09753311425447464, 0.20563477277755737, 0.3252079486846924, 0.07350008934736252, 0.1826857477426529, 0.21810729801654816, -0.3050099313259125, 0.39311134815216064, -0.20962998270988464, -0.032205503433942795, -0.17842046916484833, -0.1522562950849533, -0.022695131599903107, -0.389527291059494, -0.058179304003715515, 0.4548138380050659, 0.08933192491531372, 0.13798093795776367, 0.3401527404785156, -0.15598678588867188, 0.03588125854730606, -0.11799032986164093, -0.19611336290836334, 0.13755497336387634, 0.27985891699790955, -0.016792841255664825, -0.30202943086624146, -0.07872376590967178, 0.2333449423313141, -0.08404158055782318, -0.41213861107826233, 0.0535193532705307, 0.017904318869113922, -0.17749843001365662, -0.21506480872631073, -0.20469114184379578, -0.2606697678565979, -0.294422447681427, -0.05633368715643883, 0.038238245993852615, 0.2656325101852417, 0.040187809616327286, 0.0500870943069458, 0.19525457918643951, 0.6915661692619324, -0.25029993057250977, -0.17510510981082916, 0.011274095624685287, 0.1056319922208786, -0.02203192561864853, -0.18287596106529236, -0.10407982021570206, -0.214739128947258, 0.15932956337928772, -0.005780279636383057, -0.2855863571166992, 0.10354503989219666, 0.3521380126476288, -0.17353250086307526, 0.28458091616630554, 0.05537281930446625, 0.12028442323207855, 0.07898819446563721, 0.33188050985336304, 0.39525896310806274, -0.3046818971633911, 0.26006391644477844, -0.5100749135017395, -0.20107519626617432, -0.1981966197490692, 0.01065079029649496, 0.15031780302524567, -0.27481311559677124, -0.42428481578826904, 0.3067435324192047, 0.02717130444943905, 0.1364004760980606, 0.01671219989657402, -0.4317054748535156, -0.3108106851577759, -0.18709176778793335, 0.2145443558692932, 0.22372668981552124, -0.324592649936676, -0.11323248594999313, 0.12279663980007172, -0.16304239630699158, 0.23242318630218506, 0.3118993937969208, -0.22707799077033997, 0.09367974102497101, -0.4663160741329193, 0.008099302649497986, 0.6656394600868225, -0.3257717490196228, 0.10225874185562134, 0.1635376214981079, 0.0983477383852005, -0.23118722438812256, 0.10865926742553711, -0.055393218994140625, -0.07971057295799255, -0.03858589008450508, 0.13035432994365692, 0.23086318373680115, -0.09462174773216248, -0.16227859258651733, -0.1658530831336975, -0.2639197111129761, 0.5142812728881836, -0.08722907304763794, 0.23487593233585358, 0.3476693034172058, -0.09089018404483795, -0.2052479386329651, 0.37168368697166443, -0.0414164699614048, 0.10369189083576202, 0.21421746909618378, -0.3256300687789917, 0.053545646369457245, -0.07302259653806686, 0.09211495518684387, 0.1350722312927246, -0.02525380626320839, 0.049859605729579926, -0.033963415771722794, 0.08811311423778534, 0.10634587705135345, -0.2813717722892761, 0.14845487475395203, -0.14867106080055237, 0.01767292618751526, -0.11032126098871231, -0.06775455176830292, -0.20253658294677734, -0.17613539099693298, -0.023141488432884216, 0.2861526608467102, -0.3305151164531708, 0.1278512328863144, -0.49232178926467896, 0.25358879566192627, 0.06751340627670288, 0.10563132911920547, 0.13625919818878174, 0.19692152738571167, 0.1536071002483368, -0.030504845082759857, -0.15659067034721375, 0.20117095112800598, 0.04904438555240631, 0.009148843586444855, 0.359028697013855, 0.23267817497253418, 0.09661868214607239, -1.0042271614074707, 0.3522101640701294, 0.4355176091194153, 0.15501977503299713, -0.1452268362045288, -0.0021778736263513565, 0.6890767216682434, 0.20101329684257507, 0.23653452098369598, -0.06106182932853699, -0.05086909234523773, 0.09425502270460129, 0.10493248701095581, -0.12516151368618011, 0.039653122425079346, -0.08508407324552536, -0.04660932719707489, 0.27584517002105713, -0.06392917782068253, -0.3997494876384735, -0.014944564551115036, 0.15474888682365417, -0.009732194244861603, 0.07510020583868027, 0.35637331008911133, -0.5196491479873657, -0.12478423118591309, 0.32444527745246887, -0.35470160841941833, 0.14247988164424896, 0.1628667414188385, 0.17630526423454285, 0.001070396974682808, -0.04386139661073685, 0.019941717386245728, 0.26277682185173035, 0.031221363693475723, 0.47626471519470215, 0.03280322626233101, 0.12532219290733337, -0.0937410220503807, -0.3203771710395813, 0.05786892771720886, -0.1390548050403595, -0.03529857099056244, -0.49708110094070435, 0.180790513753891, -0.4068141579627991, -0.12398304045200348, -0.29877811670303345, -0.02244228683412075, 0.03968061879277229, -0.10913178324699402, -0.2386261224746704, 0.03025854378938675, 0.30403995513916016, 0.09530901908874512, -0.41735631227493286, -0.33438193798065186, 0.21978366374969482, -0.2575620114803314, -0.04908539354801178, -0.1521480530500412, -0.14229580760002136, -0.07925017923116684, 0.08743373304605484, 0.06422604620456696, 0.29673483967781067, 0.1606132537126541, 0.11777155101299286, -0.38945677876472473, -0.11650633066892624, 0.010481060482561588, -0.13329756259918213, 0.09989217668771744, 0.17260399460792542, 0.13349120318889618, 0.17225557565689087, 0.07611189782619476, 0.05922872945666313, 0.034676291048526764, -0.03209516778588295, 0.14893387258052826, -0.3590315580368042, 0.1663268804550171, 0.43728604912757874, -0.10952291637659073, -0.27836987376213074, -0.21676015853881836, -0.38262590765953064, 0.04754374921321869, 0.17328722774982452, -0.1151544377207756, 0.3042677640914917, 0.1316339373588562, 0.21176408231258392, -0.0758674368262291, -0.121580109000206, -0.05383317545056343, 0.3606458008289337, -0.07762560248374939, -0.3281579613685608, -0.15597212314605713, -0.2494734525680542, 0.08842096477746964, 0.21799728274345398, -0.35214143991470337, 0.15934190154075623, -0.15641947090625763, 0.34165459871292114, -0.055348265916109085, -0.03492652624845505, 0.3035982847213745, -0.1843934953212738, 0.1471060961484909, -0.21142637729644775, -0.2488057166337967, 0.061329927295446396, -0.14836451411247253, 0.3629368245601654, 0.3649740219116211, 0.451715886592865, -0.16081131994724274, 0.983878493309021, -0.03031456097960472, -0.3359045684337616, 0.5201302170753479, -0.1261214166879654, 0.08623930811882019, -0.20307937264442444, -0.26722651720046997, -0.029865985736250877, -0.07996173202991486, 0.44893795251846313, 0.1056022047996521, -0.13562244176864624, -0.1475101113319397, 0.08222384750843048, 0.04557754099369049, -0.13061785697937012, -0.06609988957643509, 0.2251465767621994, -0.8449304699897766, -0.10567609965801239, 0.07272215932607651, 0.05697481334209442, -0.24497023224830627, -0.07267162203788757, 0.056468673050403595, 0.32546985149383545, 0.21426764130592346, 0.2519318163394928, -0.37840718030929565, 0.17345355451107025, -0.2046070247888565, 0.4338723421096802, -0.04599585011601448, 0.5219184160232544, 0.12480132281780243, -0.068313367664814, 0.09064435958862305, -0.03238409012556076, 0.4775119721889496, -0.1738085001707077, -0.07067562639713287, 0.035921238362789154, -0.025580886751413345, -0.4465418756008148, 0.017257116734981537, 0.05622401833534241, 0.06975340843200684, -0.08930301666259766, 0.14197586476802826, -0.13958707451820374, -0.4577147960662842, -0.05268396437168121, 0.015732917934656143, -0.07819680124521255, 0.2679591178894043, 0.027543336153030396, -0.24180194735527039, 0.03019871562719345, 0.0325046181678772, 0.01504795253276825, -0.048100218176841736, -0.14406225085258484, -0.2042284458875656, -0.4858335554599762, 0.0070131197571754456, 0.28831255435943604, -0.19571098685264587, 0.23733113706111908, -0.08844872564077377, -0.07364404946565628, -0.2873157560825348, 0.33681175112724304, 0.20560996234416962, 0.2770308256149292, -0.18541935086250305, -0.17130914330482483, 0.013295676559209824, 0.23249435424804688, 0.3811323344707489, 0.09956090152263641, -0.0634261891245842, 0.2771746814250946, 0.022714629769325256, -0.05968363583087921, -0.3146490752696991, 0.1943284273147583, 0.3171253800392151, -0.014081083238124847, -0.521767258644104, -0.442794531583786, 0.6736052632331848, 0.15179674327373505, 0.10310211777687073, 0.18249937891960144, 0.2905760705471039, -0.28872478008270264, 0.6902831196784973, 0.19230595231056213, 1.049164891242981, -0.14960415661334991, 0.30914342403411865, -0.01924823969602585, -0.3549841046333313, 0.19148175418376923, -0.0620066300034523, -0.012719497084617615, -0.5064070820808411, -0.09888775646686554, -0.16967755556106567, -0.18908023834228516, 0.045667801052331924, 0.10843383520841599, 0.3459698557853699, 0.21184146404266357, -0.10811318457126617, -0.03563050180673599, 0.09321443736553192, 0.16109342873096466, 0.024600235745310783, -0.2186433970928192, -0.04765811562538147, 0.08670533448457718, -0.2787376940250397, 0.14098623394966125, 0.04541832208633423, -0.3511815667152405, -0.1316143274307251, -0.06538372486829758, -0.0387333482503891, 0.1358405202627182, -0.3878108263015747, 0.19128042459487915, -0.09557509422302246, -0.722196102142334, 0.3027080297470093, 0.2570643723011017, 0.3729010820388794, -0.15253441035747528, -0.07597224414348602, 0.1517224907875061, 0.4544079303741455, -0.12207911163568497, -0.016547251492738724, -0.10290074348449707, 0.2754592299461365, 0.002133294939994812, -0.012141868472099304, 0.014478180557489395, 0.04960263893008232, -0.35404911637306213, -0.30751898884773254, -0.10082963109016418, 0.49273693561553955, -0.2824709415435791, -0.5382114052772522, 0.18094147741794586, -0.028042364865541458, -0.0404096394777298, -0.031169377267360687, 0.07601645588874817, -0.10065639019012451, 0.02317669801414013, 0.21960996091365814, -0.3577342629432678, 0.04794890061020851, 0.3908989131450653, 0.24446184933185577, 0.35455283522605896, 0.42605146765708923, 0.12838131189346313, -0.07475650310516357, -0.055173374712467194, 0.24275760352611542, 0.7975457906723022, -0.24312402307987213, -0.09559349715709686, -0.08284909278154373, -0.0964285135269165, 0.17596684396266937, -0.12295907735824585, -0.10006138682365417, 0.018757034093141556, -0.003702402114868164, -0.22400963306427002, -0.38726523518562317, -0.05016673356294632, -0.5921087265014648, 0.12927868962287903, 0.04459559917449951, 0.009589772671461105, -0.3298640251159668, 0.11907924711704254, -0.11903463304042816, 0.1844639778137207, 0.25473660230636597, 0.15834863483905792, -0.16658827662467957, 0.11880578100681305, -0.0005614794790744781, 0.11660078167915344, -0.007235489785671234, 0.07704387605190277, -0.18513740599155426, -0.12359818071126938, -0.24329981207847595, 0.22950637340545654, 0.09409672766923904, -0.13066865503787994, 0.07513412833213806, -0.2411133050918579, -0.24452979862689972, 0.07273665815591812, 0.18539506196975708, 0.17553642392158508, 0.11176946759223938, 0.3480853736400604, 0.36418765783309937, -0.0677337795495987, -0.22775602340698242, 0.04972289875149727, 0.3066648542881012, 0.34254443645477295, -0.16063940525054932, 0.11043812334537506, -0.16177703440189362, -0.21476516127586365, -0.42479315400123596, 0.1144336611032486, 0.5022955536842346, -0.002891780808568001, 0.18572720885276794, -0.1026441752910614, 0.1288241147994995, -0.25578516721725464, 0.1771664172410965, 0.3922427296638489, -0.06526950001716614, -0.009279590100049973, 0.0954938754439354, -0.09238251298666, -0.3175992965698242, -0.0011592693626880646, -0.20002293586730957, -0.3673344850540161, -0.10381960868835449, 0.06875896453857422, 0.13706673681735992, 0.5545264482498169, -0.12598201632499695, -0.3066506087779999, 0.05448850989341736, -0.3451066315174103, -0.10118967294692993, 0.4092555344104767, 0.19761818647384644, 0.021436821669340134, 0.3924001157283783, 0.21957054734230042, 0.24280431866645813, 0.22844910621643066, 0.3846333920955658, 0.8282759189605713, 0.6093143820762634, 0.06936316192150116, 0.4093188941478729, -0.43928617238998413, -0.3943212330341339, 0.2902410924434662, 0.16126427054405212, 0.09551279246807098, 0.09093867987394333, 0.5308845639228821, 0.13459108769893646, -0.6116361021995544, 0.12439485639333725, 0.1417170614004135, 0.039436787366867065, -0.3871908187866211, -0.07206637412309647, 0.09424115717411041, -0.33602991700172424, -0.16893908381462097, -0.3047466576099396, -0.1319284737110138, -0.02577298879623413, 0.23667408525943756, 0.03769439831376076, -0.07704801857471466, 0.04558879882097244, 0.18577545881271362, -0.13839590549468994, -0.0701647698879242, 0.17031604051589966, -0.16934722661972046, -0.016369622200727463, 0.10898655652999878, 0.1222430169582367, 0.22067779302597046, -0.023698780685663223, -0.30864259600639343, -0.10270079225301743, 0.4592531621456146, -0.1692235767841339, 0.3425978124141693, -0.03660742938518524, 0.20299524068832397, -0.05997062474489212, 0.3750297427177429, -0.03271312266588211, 0.06789181381464005, 0.12414970248937607, 0.04058273881673813, 0.006633374840021133, -0.024257566779851913, 0.3539988696575165, 0.06748520582914352, 0.02284868061542511, -0.17101816833019257, -0.05099213868379593, -0.3561060130596161, -0.042615748941898346, 0.5597943067550659, -0.25570324063301086, 0.13592803478240967, 0.052556753158569336, -0.010677061975002289, -0.10172130167484283, 0.159145787358284, 0.3113596439361572, 0.11355859041213989, -0.3916857838630676, 0.012819632887840271, -0.20288583636283875, 0.019314635545015335, -0.014397396706044674, 0.07285609096288681, -0.05212832987308502, -0.0008849874138832092, 0.323684424161911, -0.05291363224387169, -0.08827584981918335, -0.03213758021593094, 0.23488302528858185, 0.49951016902923584, 0.04541592299938202, -0.10065968334674835, -0.3244434595108032, 0.36831897497177124, -0.15438082814216614, -0.3648245930671692, -0.05249743536114693, 0.22089804708957672, -0.10171809792518616, 0.030808091163635254, -0.21376270055770874, 0.5447205901145935, -0.058135293424129486, 0.2709105908870697, -0.034484438598155975, 0.4849645793437958, -0.2545778751373291, 0.12766724824905396, 0.16713711619377136, -0.0664452612400055, -0.417310506105423, 0.1933075189590454, -0.10383456200361252, 0.3298133611679077, -0.018029365688562393, -0.05237403139472008, -0.04869993031024933, 0.16135407984256744, -0.10318293422460556, -0.3979179561138153, -0.21048545837402344, 0.5480270981788635, -0.2608938217163086, -0.0680660754442215, 0.33638083934783936, 0.5139486789703369, 0.1706794798374176, 0.20593717694282532, -0.22714847326278687, -0.15671372413635254, 0.585446298122406, 0.10267920792102814, -0.09934362769126892, 0.11654481291770935, -0.04906320571899414, 0.3045932650566101, 0.01718595065176487, -0.3708271384239197, -0.1677885502576828, 0.18898147344589233, -0.2670779526233673, 0.11751031875610352, 0.24228255450725555, 0.20492000877857208, 0.2456115186214447, -0.28228628635406494, 0.3716868758201599, 0.21653936803340912, 0.00906112790107727, -0.18761686980724335, -0.33824461698532104 ]
https://github.com/huggingface/datasets/issues/2165
@lhoestq Sadly, from Python 3.7 onwards `torch.utils.data.Dataset` doesn't support the virtual subclass mechanism due to `typing.Generic` type no longer having `abc.ABCMeta` as its metaclass. With that in mind, another option is to remove a direct type check (`isinstance(dataset, torch.utils.data.Dataset)`) in `deepspeed.initalize` and to rewrite the checks in a manner similar to `torch.utils.data.DataLoader` ([link](https://github.com/pytorch/pytorch/blob/b80c6f863f2327c712c478f67c248b94d66b65ac/torch/utils/data/dataloader.py#L197-L239)). This is exactly why the `DataLoader` works with arbitrary objects that provide `__getitem__` and `__len__` (and in our case, the `ArrowDataset`). By doing so, their code wouldn't be any stricter in comparison to the `DataLoader`. So if you agree, I can open an issue in their repo and fix this if they like the idea.
How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi, I'm trying to pretraine deep-speed model using HF arxiv dataset like: ``` train_ds = nlp.load_dataset('scientific_papers', 'arxiv') train_ds.set_format( type="torch", columns=["input_ids", "attention_mask", "global_attention_mask", "labels"], ) engine, _, _, _ = deepspeed.initialize( args=args, model=model, model_parameters=[p for p in model.parameters() if p.requires_grad], training_data=train_ds) ``` but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
108
How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset Hi, I'm trying to pretraine deep-speed model using HF arxiv dataset like: ``` train_ds = nlp.load_dataset('scientific_papers', 'arxiv') train_ds.set_format( type="torch", columns=["input_ids", "attention_mask", "global_attention_mask", "labels"], ) engine, _, _, _ = deepspeed.initialize( args=args, model=model, model_parameters=[p for p in model.parameters() if p.requires_grad], training_data=train_ds) ``` but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset? @lhoestq Sadly, from Python 3.7 onwards `torch.utils.data.Dataset` doesn't support the virtual subclass mechanism due to `typing.Generic` type no longer having `abc.ABCMeta` as its metaclass. With that in mind, another option is to remove a direct type check (`isinstance(dataset, torch.utils.data.Dataset)`) in `deepspeed.initalize` and to rewrite the checks in a manner similar to `torch.utils.data.DataLoader` ([link](https://github.com/pytorch/pytorch/blob/b80c6f863f2327c712c478f67c248b94d66b65ac/torch/utils/data/dataloader.py#L197-L239)). This is exactly why the `DataLoader` works with arbitrary objects that provide `__getitem__` and `__len__` (and in our case, the `ArrowDataset`). By doing so, their code wouldn't be any stricter in comparison to the `DataLoader`. So if you agree, I can open an issue in their repo and fix this if they like the idea.
[ -0.19205765426158905, -0.2704026997089386, 0.09888152033090591, 0.32321783900260925, 0.2382788211107254, 0.18831759691238403, -0.045659858733415604, 0.3633684515953064, -0.1526026874780655, -0.22917599976062775, -0.2917281985282898, 0.39241936802864075, -0.2503361105918884, -0.15377527475357056, 0.1516401618719101, -0.24070654809474945, 0.18115903437137604, 0.0032428279519081116, -0.2698729336261749, -0.19916489720344543, -0.1094513013958931, -0.10299225896596909, 0.029085010290145874, 0.0508621409535408, 0.09440867602825165, 0.10401754826307297, 0.08164329826831818, 0.18081599473953247, -0.11283411830663681, -0.363200843334198, 0.3348354399204254, 0.06315179914236069, 0.5683202147483826, 0.33808502554893494, -0.00012859245180152357, 0.24953815340995789, 0.15160906314849854, -0.09541238844394684, -0.048618000000715256, 0.005868285894393921, -0.0310991033911705, -0.10788010060787201, 0.2537957727909088, -0.07936906069517136, -0.2585177421569824, -0.6241517663002014, -0.12276991456747055, -0.5026618838310242, 0.06640201061964035, 0.42837071418762207, 0.046351104974746704, 0.32824307680130005, 0.012055784463882446, 0.09522226452827454, 0.2861972749233246, -0.03775714337825775, -0.1647089570760727, 0.1939547061920166, 0.05861322581768036, 0.16335734724998474, -0.18330612778663635, 0.08652310818433762, -0.14907832443714142, 0.02365652471780777, 0.4681110978126526, -0.25377708673477173, -0.39349523186683655, -0.19791612029075623, -0.16129609942436218, 0.5067216753959656, 0.2559033930301666, -0.3469008505344391, -0.22401243448257446, 0.0779632180929184, -0.06182628124952316, -0.1476535201072693, -0.21785971522331238, 0.1044941321015358, -0.07631353288888931, 0.0751044750213623, 0.07574650645256042, 0.01652882993221283, -0.18769577145576477, 0.10106596350669861, 0.14766128361225128, 0.16803832352161407, 0.11178240180015564, 0.168878972530365, 0.19945400953292847, -0.34366127848625183, 0.37805837392807007, -0.21718239784240723, 0.0021822238340973854, -0.14520496129989624, -0.10317806899547577, -0.10812516510486603, -0.35317057371139526, -0.1528613567352295, 0.3830360174179077, 0.13010485470294952, 0.345395028591156, 0.33181649446487427, -0.2277631312608719, 0.08149878680706024, -0.024989942088723183, -0.11775651574134827, 0.16235581040382385, 0.27240973711013794, 0.015454506501555443, -0.19622637331485748, 0.0820426270365715, 0.29257550835609436, -0.14236435294151306, -0.3170526623725891, 0.11862817406654358, 0.06235062703490257, -0.12326735258102417, -0.1359723061323166, -0.18130898475646973, -0.15048502385616302, -0.2349577695131302, 0.021467868238687515, 0.11573165655136108, 0.1644117683172226, -0.0010169371962547302, 0.21844267845153809, 0.36916595697402954, 0.5446550250053406, -0.2553103566169739, -0.17709141969680786, 0.07802441716194153, 0.11073589324951172, -0.07501146197319031, -0.22175860404968262, 0.021519601345062256, -0.17923589050769806, 0.01702798902988434, -0.06731375306844711, -0.13049642741680145, 0.3081122636795044, 0.28496599197387695, -0.1399291306734085, 0.2640923857688904, 0.06629368662834167, -0.08420421928167343, 0.04116060584783554, 0.36408424377441406, 0.429080605506897, -0.32530146837234497, 0.2448958456516266, -0.33672040700912476, -0.1767987459897995, -0.16088144481182098, 0.004170597530901432, 0.13244177401065826, -0.3356073796749115, -0.39408162236213684, 0.1987404227256775, 0.0049034059047698975, 0.011957027018070221, 0.08231468498706818, -0.5586114525794983, -0.23679275810718536, -0.19539542496204376, 0.21414023637771606, 0.2105925977230072, -0.4652600884437561, -0.11483047157526016, -0.03234843909740448, -0.11100047826766968, 0.1935071051120758, 0.3073974549770355, -0.21783943474292755, -0.02567882463335991, -0.3970094919204712, -0.020456552505493164, 0.508679211139679, -0.28675001859664917, 0.024785716086626053, 0.15314354002475739, 0.10481272637844086, -0.0957694798707962, 0.12150496989488602, 0.04646434262394905, -0.05267225205898285, -0.13972881436347961, 0.1875387728214264, 0.16787639260292053, -0.1229541227221489, -0.2729191482067108, -0.10683851689100266, -0.25772908329963684, 0.36197489500045776, -0.03710507974028587, 0.13005119562149048, 0.21104295551776886, -0.12136691063642502, -0.2831220030784607, 0.28624677658081055, -0.02428508549928665, 0.10684652626514435, 0.15027399361133575, -0.2012929916381836, 0.17831088602542877, 0.01839013770222664, 0.023305542767047882, 0.005224280990660191, 0.15415596961975098, 0.009973719716072083, 0.02970697171986103, -0.03486422821879387, 0.037525951862335205, -0.12549738585948944, 0.16465845704078674, -0.035510119050741196, 0.057101596146821976, -0.07780351489782333, -0.06947699189186096, -0.23638427257537842, -0.27424418926239014, -0.12255706638097763, 0.07876446843147278, -0.4409390091896057, 0.1783936619758606, -0.5549845695495605, 0.1552928388118744, 0.17125216126441956, 0.11830641329288483, -0.05334491655230522, 0.24899131059646606, 0.05491352826356888, -0.02934184856712818, -0.1652684509754181, 0.17964135110378265, 0.1238950714468956, -0.06341631710529327, 0.22381842136383057, 0.2895553708076477, 0.06665091216564178, -0.8759517073631287, 0.3386189043521881, 0.47764068841934204, 0.17583416402339935, -0.06062879413366318, -0.030687741935253143, 0.6746481657028198, 0.26992422342300415, 0.28555378317832947, -0.03299214690923691, -0.009947862476110458, 0.06263380497694016, 0.21085892617702484, -0.2279219925403595, 0.01157396286725998, -0.1417209506034851, 0.17833758890628815, 0.25374335050582886, 0.03832491487264633, -0.2435818910598755, 0.023118972778320312, 0.028600618243217468, -0.10752949118614197, 0.11853638291358948, 0.35671526193618774, -0.5336503386497498, -0.017126917839050293, 0.22578644752502441, -0.1542958766222, 0.22039610147476196, 0.07978281378746033, 0.2486361861228943, -0.057324618101119995, -0.10599932074546814, 0.05149322375655174, 0.30889588594436646, 0.07816240191459656, 0.35873687267303467, -0.03234189748764038, 0.05594535171985626, -0.0559258908033371, -0.35729923844337463, 0.04823629558086395, -0.10549381375312805, -0.09156409651041031, -0.5114281177520752, 0.20865850150585175, -0.4489864706993103, 0.055884674191474915, -0.317832350730896, -0.11460888385772705, -0.013847876340150833, -0.16889789700508118, -0.1546974778175354, 0.019715962931513786, 0.12071272730827332, 0.1362331211566925, -0.40019288659095764, -0.1381533443927765, 0.20740053057670593, -0.46704569458961487, 0.04833827167749405, -0.12860579788684845, -0.23921845853328705, -0.11042021214962006, 0.14449483156204224, -0.13274385035037994, 0.26130688190460205, 0.20397190749645233, 0.02114550769329071, -0.44114282727241516, -0.16532152891159058, 0.08430425822734833, -0.16550388932228088, 0.07243833690881729, 0.2261064201593399, 0.0766591876745224, 0.3106868267059326, -0.00763963907957077, 0.06992162764072418, -0.037984851747751236, -0.09564890712499619, 0.1708255410194397, -0.37935352325439453, 0.22293910384178162, 0.37111467123031616, -0.13600102066993713, -0.31640514731407166, -0.23796972632408142, -0.3310388922691345, 0.04638434946537018, 0.12178143858909607, -0.008948681876063347, 0.3633454442024231, 0.13981133699417114, 0.2525961399078369, 0.07530936598777771, -0.074652299284935, -0.039473988115787506, 0.43061918020248413, 0.0210849829018116, -0.309174507856369, -0.17760585248470306, -0.35414233803749084, 0.16679368913173676, 0.33706703782081604, -0.3112229108810425, 0.07426441460847855, -0.25074470043182373, 0.3438509404659271, 0.04757026955485344, -0.030472762882709503, 0.309901624917984, -0.14629414677619934, 0.07252221554517746, -0.20306400954723358, -0.17825454473495483, -0.018077723681926727, -0.2516229450702667, 0.31216463446617126, 0.3920452296733856, 0.4929164946079254, -0.11538644880056381, 1.0432757139205933, -0.12204233556985855, -0.5147119760513306, 0.4142385721206665, -0.11474394053220749, 0.14295783638954163, -0.1226009801030159, -0.2998678982257843, -0.08536595851182938, -0.29016539454460144, 0.2939035892486572, 0.03131868690252304, -0.1601833999156952, -0.2480981945991516, 0.14130324125289917, 0.18543067574501038, -0.06073785200715065, -0.1736498326063156, 0.37949416041374207, -0.860857367515564, -0.08093777298927307, -0.05474045127630234, 0.14585460722446442, -0.35030806064605713, -0.044295404106378555, 0.07883155345916748, 0.28060534596443176, 0.12999743223190308, 0.14428719878196716, -0.2763811945915222, 0.12738919258117676, -0.19226568937301636, 0.4928196966648102, 0.02623375877737999, 0.6061595678329468, 0.1682634800672531, -0.24154849350452423, -0.02660883218050003, -0.04798082262277603, 0.3368051052093506, -0.12013895064592361, -0.02848636545240879, 0.10707253962755203, -0.1537742018699646, -0.5539864897727966, -0.041631512343883514, -0.009198687970638275, 0.0008517391979694366, -0.08809368312358856, -0.0115806944668293, -0.2062879502773285, -0.34950700402259827, -0.004224052652716637, -0.020443160086870193, -0.07428412139415741, 0.2395642250776291, -0.06189165264368057, -0.1756766140460968, 0.015379838645458221, -0.008525393903255463, 0.12514728307724, -0.0059991516172885895, -0.184931680560112, -0.18442407250404358, -0.4665318429470062, -0.07280224561691284, 0.31931987404823303, -0.195409893989563, 0.20666098594665527, -0.09137721359729767, -0.027060773223638535, -0.19933262467384338, 0.3776909112930298, 0.31887662410736084, 0.4460640549659729, -0.19585788249969482, -0.3145861029624939, 0.10877437889575958, 0.3574345111846924, 0.3197106122970581, 0.17729949951171875, -0.16952233016490936, 0.2552005350589752, 0.1032041683793068, -0.16563984751701355, -0.3990429937839508, 0.1485094279050827, 0.33377155661582947, -0.013987421989440918, -0.38497382402420044, -0.5564724802970886, 0.753857433795929, 0.3035254180431366, 0.15606242418289185, 0.338297963142395, 0.26686322689056396, -0.27948421239852905, 0.5248178243637085, 0.40792739391326904, 1.0512198209762573, -0.05097867175936699, 0.3578878939151764, 0.05956551432609558, -0.19120445847511292, 0.17383134365081787, -0.03421352431178093, 0.010781839489936829, -0.4742809236049652, -0.15919578075408936, -0.17777025699615479, -0.19905808568000793, 0.08075107634067535, 0.06776413321495056, 0.30017030239105225, 0.14689868688583374, -0.1568984091281891, 0.12336084246635437, 0.14438475668430328, 0.1370033323764801, -0.2108582705259323, -0.2943646311759949, 0.038703545928001404, 0.08077159523963928, -0.1526232212781906, 0.032370563596487045, 0.08394119143486023, -0.24761386215686798, -0.17760662734508514, -0.06239946186542511, -0.1743372082710266, 0.0983656495809555, -0.38620448112487793, 0.20854496955871582, -0.04305080324411392, -0.621380627155304, 0.3718842566013336, 0.208966925740242, 0.33464697003364563, -0.207217276096344, -0.11452532559633255, 0.08988723158836365, 0.429341197013855, -0.06048890948295593, -0.018837103620171547, -0.19887079298496246, 0.4383513927459717, 0.11583799868822098, 0.10285638272762299, -0.004147849977016449, 0.004006803035736084, -0.3716760277748108, -0.17884522676467896, -0.141866996884346, 0.48844319581985474, -0.3600062131881714, -0.3033033609390259, 0.07324162125587463, -0.10577242076396942, -0.02695455029606819, -0.01353350467979908, 0.06605726480484009, -0.07945287972688675, -0.029824640601873398, 0.2205512523651123, -0.30704033374786377, 0.10492251813411713, 0.3794660270214081, 0.25927630066871643, 0.27610719203948975, 0.450920045375824, 0.16587337851524353, -0.08420583605766296, -0.08403141051530838, 0.27527937293052673, 0.9381096363067627, -0.24178838729858398, 0.11314982175827026, -0.07072317600250244, -0.18239502608776093, 0.10092572867870331, -0.1334839016199112, 0.10555312037467957, 0.011717842891812325, -0.17845454812049866, -0.20079967379570007, -0.4730125665664673, 0.10668488591909409, -0.4885847866535187, 0.25222232937812805, -0.112775057554245, -0.00038330256938934326, -0.24782925844192505, 0.00508587621152401, -0.12946385145187378, 0.11282206326723099, 0.20816254615783691, 0.07669239491224289, -0.1583956480026245, 0.1341681033372879, -0.0013008750975131989, 0.1834421455860138, -0.03731841221451759, 0.10088711231946945, -0.22497940063476562, -0.0719660222530365, -0.20948059856891632, 0.21160101890563965, 0.07883448898792267, -0.04870469868183136, 0.10032236576080322, -0.2600993514060974, -0.2248566448688507, -0.04550354927778244, 0.10098864138126373, 0.07689712196588516, -0.025003094226121902, 0.3361886441707611, 0.397479772567749, -0.017614003270864487, -0.20656192302703857, 0.08564362674951553, 0.24875743687152863, 0.4111219048500061, -0.028435731306672096, 0.09199556708335876, -0.16868555545806885, -0.2521200180053711, -0.31871262192726135, 0.24635076522827148, 0.4437054991722107, 0.04741043224930763, 0.21995051205158234, -0.07451418042182922, 0.06952285766601562, -0.320649653673172, 0.2149880826473236, 0.48665496706962585, -0.05781882256269455, -0.05455898493528366, -0.011421384289860725, -0.07570680975914001, -0.27054744958877563, -0.04550345987081528, -0.2741253674030304, -0.3820185661315918, 0.009301699697971344, 0.09254318475723267, 0.11222580075263977, 0.5620801448822021, -0.08930478990077972, -0.25668540596961975, 0.07064062356948853, -0.29548144340515137, -0.028384506702423096, 0.4573877453804016, 0.15717986226081848, 0.017832688987255096, 0.4557400345802307, 0.15624193847179413, 0.30696871876716614, 0.21311795711517334, 0.323509156703949, 0.8402159810066223, 0.5083609223365784, 0.024186324328184128, 0.41632893681526184, -0.44682812690734863, -0.1702665090560913, 0.3761991262435913, 0.2840806245803833, 0.11533792316913605, 0.13816040754318237, 0.4704507291316986, -0.041248466819524765, -0.48365169763565063, 0.016468122601509094, -0.014305036514997482, 0.04095295071601868, -0.33812493085861206, -0.34274888038635254, -0.01420661062002182, -0.4155675768852234, -0.21365034580230713, -0.32846182584762573, -0.18406549096107483, -0.031049899756908417, 0.15358179807662964, -0.05736435949802399, -0.20482191443443298, 0.016240138560533524, 0.18458612263202667, -0.14904768764972687, -0.08617295324802399, 0.0984741598367691, -0.06194698065519333, -0.05333451181650162, 0.08440159261226654, 0.18122334778308868, 0.23018187284469604, 0.15608511865139008, -0.34434133768081665, -0.07960052788257599, 0.39750105142593384, -0.1332998424768448, 0.28581613302230835, -0.006614575162529945, 0.03292875364422798, -0.05048375576734543, 0.31877729296684265, -0.004030544310808182, 0.06548009812831879, 0.021026398986577988, -0.007260726764798164, 0.0509195476770401, -0.06896419078111649, 0.532698392868042, 0.13243041932582855, 0.03254508972167969, -0.14822734892368317, 0.054076723754405975, -0.3688843548297882, -0.1557072550058365, 0.6477059721946716, -0.16623102128505707, 0.11106641590595245, 0.05026010423898697, -0.014434205368161201, -0.023309113457798958, 0.36885127425193787, 0.36470288038253784, 0.018968116492033005, -0.34663310647010803, 0.07383236289024353, -0.3001280725002289, 0.022969160228967667, -0.021043192595243454, 0.004511713981628418, 0.0339844711124897, 0.06137740612030029, 0.5213209986686707, 0.0317593552172184, -0.047465503215789795, 0.06047474965453148, 0.11810703575611115, 0.387195885181427, -0.03129817172884941, -0.24243801832199097, -0.1258310079574585, 0.343036949634552, -0.12228366732597351, -0.3957667052745819, -0.09551378339529037, 0.17921876907348633, -0.08824314177036285, 0.07778458297252655, -0.334872841835022, 0.6279919743537903, 0.0028238282538950443, 0.39651304483413696, 0.0139711182564497, 0.47735363245010376, -0.1456066370010376, -0.03472539409995079, 0.0490616075694561, -0.07068012654781342, -0.4631291329860687, 0.21105526387691498, -0.14996491372585297, 0.32797926664352417, -0.03599746897816658, -0.14421989023685455, -0.11814078688621521, 0.15517550706863403, -0.11199009418487549, -0.44634515047073364, -0.38444292545318604, 0.5214521884918213, -0.32299789786338806, -0.04727456346154213, 0.16727983951568604, 0.47119709849357605, 0.16613900661468506, 0.24362362921237946, -0.2501741349697113, -0.21619325876235962, 0.5785569548606873, -0.03633946552872658, -0.10522467643022537, 0.02364588901400566, -0.047342926263809204, 0.2287595570087433, 0.19119034707546234, -0.3108552098274231, -0.11464987695217133, 0.13731145858764648, -0.20192401111125946, 0.11909070611000061, 0.17113226652145386, 0.21461158990859985, 0.20685836672782898, -0.3751349151134491, 0.4397038519382477, 0.12387432157993317, 0.08258581161499023, -0.2764618396759033, -0.33104032278060913 ]
https://github.com/huggingface/datasets/issues/2165
That makes sense ! Feel free to open an issue on their repo and discuss this idea
How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi, I'm trying to pretraine deep-speed model using HF arxiv dataset like: ``` train_ds = nlp.load_dataset('scientific_papers', 'arxiv') train_ds.set_format( type="torch", columns=["input_ids", "attention_mask", "global_attention_mask", "labels"], ) engine, _, _, _ = deepspeed.initialize( args=args, model=model, model_parameters=[p for p in model.parameters() if p.requires_grad], training_data=train_ds) ``` but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
17
How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset Hi, I'm trying to pretraine deep-speed model using HF arxiv dataset like: ``` train_ds = nlp.load_dataset('scientific_papers', 'arxiv') train_ds.set_format( type="torch", columns=["input_ids", "attention_mask", "global_attention_mask", "labels"], ) engine, _, _, _ = deepspeed.initialize( args=args, model=model, model_parameters=[p for p in model.parameters() if p.requires_grad], training_data=train_ds) ``` but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset? That makes sense ! Feel free to open an issue on their repo and discuss this idea
[ -0.2620018422603607, -0.30597782135009766, 0.04827328026294708, 0.33868923783302307, 0.11748895794153214, 0.22666683793067932, -0.09718681871891022, 0.3648380935192108, -0.16626563668251038, -0.21851928532123566, -0.34978699684143066, 0.3944832682609558, -0.25215867161750793, -0.0014386177062988281, 0.1679956018924713, -0.29346340894699097, 0.20710989832878113, 0.07876934111118317, -0.2426629662513733, -0.21805229783058167, -0.1317133605480194, -0.07211742550134659, 0.05615071952342987, 0.10990162938833237, 0.04537607729434967, 0.03876964747905731, 0.06313421577215195, 0.13536463677883148, -0.11498034000396729, -0.35633572936058044, 0.21669676899909973, 0.03833482041954994, 0.5877935886383057, 0.2521918714046478, -0.00012786306615453213, 0.11648832261562347, 0.05868131294846535, -0.11476677656173706, 0.10686681419610977, -0.09299051761627197, -0.17437419295310974, -0.02082117274403572, 0.2010277807712555, -0.1319158375263214, -0.30754196643829346, -0.576423168182373, -0.06901851296424866, -0.32661256194114685, 0.10394857078790665, 0.5637232661247253, 0.05821395292878151, 0.2589320242404938, 0.055524349212646484, 0.026206444948911667, 0.31658560037612915, -0.14755776524543762, -0.1901795119047165, 0.06910549104213715, -0.07129104435443878, 0.12841111421585083, -0.19003166258335114, 0.17560146749019623, -0.1578797996044159, 0.04482021555304527, 0.35967910289764404, -0.32863134145736694, -0.35917267203330994, -0.19280606508255005, -0.06823074817657471, 0.5270513296127319, 0.22033923864364624, -0.21351337432861328, -0.03895533084869385, 0.18023626506328583, -0.07327546179294586, -0.19672197103500366, -0.37875327467918396, 0.19826388359069824, -0.0162513330578804, 0.1270778924226761, -0.03450828045606613, -0.20569808781147003, -0.14234943687915802, 0.0715838298201561, 0.17240959405899048, 0.37339240312576294, 0.07660087943077087, 0.1745886504650116, 0.22336193919181824, -0.3262201249599457, 0.4041500687599182, -0.20092812180519104, 0.0032964488491415977, -0.19297188520431519, -0.12471377104520798, -0.03281518071889877, -0.3565467298030853, -0.06986558437347412, 0.45705729722976685, 0.1322317123413086, 0.2172507494688034, 0.3089168965816498, -0.1965113878250122, 0.08499772846698761, -0.1674623340368271, -0.2068856656551361, 0.13137927651405334, 0.24106334149837494, 0.017128080129623413, -0.2703809142112732, -0.016132228076457977, 0.27120012044906616, -0.10410594195127487, -0.3959650695323944, 0.003996081650257111, 0.00038537755608558655, -0.10911889374256134, -0.2102985978126526, -0.1964523047208786, -0.20792585611343384, -0.26846301555633545, -0.050248898565769196, 0.0188777893781662, 0.2163884937763214, -0.012028839439153671, 0.050680652260780334, 0.2428291290998459, 0.6414878368377686, -0.20446151494979858, -0.09720060229301453, 0.0029476359486579895, 0.0924844741821289, -0.010186925530433655, -0.17690114676952362, -0.08996886759996414, -0.14998692274093628, 0.10728727281093597, -0.031997617334127426, -0.28312790393829346, 0.1549772322177887, 0.35882091522216797, -0.09773460030555725, 0.259713351726532, 0.05837475135922432, 0.07690417021512985, 0.03618573397397995, 0.29017695784568787, 0.42650458216667175, -0.33591824769973755, 0.26602837443351746, -0.510051965713501, -0.1835343837738037, -0.16846247017383575, 0.042455002665519714, 0.15794114768505096, -0.3772472143173218, -0.405971884727478, 0.3280164897441864, -0.017332009971141815, 0.11695564538240433, 0.06178101897239685, -0.4518921375274658, -0.33730804920196533, -0.19283033907413483, 0.19110658764839172, 0.22454681992530823, -0.39251527190208435, -0.12916161119937897, 0.12343348562717438, -0.16844508051872253, 0.21708786487579346, 0.33017265796661377, -0.21599720418453217, 0.03130524605512619, -0.41440677642822266, -0.011134706437587738, 0.6295608878135681, -0.2943704128265381, 0.1210273802280426, 0.0977078527212143, 0.10296684503555298, -0.28215450048446655, 0.12509866058826447, -0.019588280469179153, -0.10651765763759613, -0.03708842396736145, 0.1584388017654419, 0.22694726288318634, -0.1056133434176445, -0.17474183440208435, -0.11870124936103821, -0.3208872079849243, 0.477276474237442, -0.06656156480312347, 0.20130237936973572, 0.2817780673503876, -0.10686301440000534, -0.24522489309310913, 0.3179292380809784, -0.07251818478107452, 0.11543069779872894, 0.24616475403308868, -0.2807469367980957, 0.02529633417725563, -0.07725869119167328, 0.10723703354597092, 0.13061197102069855, -0.030407167971134186, 0.03517816215753555, 0.0028215134516358376, 0.09033043682575226, 0.06970097869634628, -0.22876477241516113, 0.17787393927574158, -0.10922713577747345, 0.04474250227212906, -0.06740269809961319, -0.0622883178293705, -0.16022706031799316, -0.17943596839904785, -0.06043194606900215, 0.18312545120716095, -0.38729357719421387, 0.12126019597053528, -0.5793861746788025, 0.21930591762065887, 0.09257397055625916, 0.12128150463104248, 0.07030615210533142, 0.20917201042175293, 0.12791255116462708, -0.004675701260566711, -0.13033297657966614, 0.1874116063117981, -0.022134272381663322, 0.07341396808624268, 0.39588090777397156, 0.3856077492237091, 0.0828464925289154, -1.0582396984100342, 0.39520058035850525, 0.44713354110717773, 0.11199643462896347, -0.09612462669610977, -0.06956561654806137, 0.6733711957931519, 0.19186723232269287, 0.20597593486309052, -0.028874702751636505, -0.0767916589975357, 0.1104535385966301, 0.12756851315498352, -0.20365716516971588, 0.0659690722823143, -0.08608602732419968, -0.016657985746860504, 0.300836443901062, -0.01849747821688652, -0.39024171233177185, -0.02553589642047882, 0.10848649591207504, 0.009615525603294373, 0.07516109943389893, 0.34509435296058655, -0.5225221514701843, -0.1504497230052948, 0.28173384070396423, -0.31423884630203247, 0.12008827924728394, 0.16771700978279114, 0.23514631390571594, 0.019872328266501427, -0.0947345495223999, -0.001371588557958603, 0.27855807542800903, -0.002933017909526825, 0.45717644691467285, 0.01407529879361391, 0.08454778790473938, -0.06850964576005936, -0.3553753197193146, 0.01359163224697113, -0.1594935804605484, -0.02830245904624462, -0.4566037952899933, 0.1471642553806305, -0.4094288945198059, -0.1325121372938156, -0.29634615778923035, -0.016524044796824455, 0.08006182312965393, -0.09482954442501068, -0.15250694751739502, -0.04119369387626648, 0.2538253366947174, 0.08885296434164047, -0.4279690980911255, -0.25914818048477173, 0.22842097282409668, -0.25011321902275085, -0.07652716338634491, -0.17940540611743927, -0.1035003662109375, -0.06247097998857498, 0.0933520495891571, 0.012155596166849136, 0.29568567872047424, 0.12029223144054413, 0.1410050392150879, -0.4283612072467804, -0.11820489168167114, 0.005405883304774761, -0.13147273659706116, 0.04464375972747803, 0.19537730515003204, 0.153525710105896, 0.19182902574539185, 0.053956665098667145, 0.057483188807964325, 0.009291477501392365, -0.03669638931751251, 0.11312104016542435, -0.43220359086990356, 0.16734689474105835, 0.47262439131736755, -0.15728478133678436, -0.31365150213241577, -0.21829816699028015, -0.3373822271823883, 0.08252141624689102, 0.1418904960155487, -0.12498030066490173, 0.36993885040283203, 0.14988750219345093, 0.18453651666641235, -0.01778372935950756, -0.09114181995391846, -0.07601171731948853, 0.3449489176273346, -0.06367295235395432, -0.2971723973751068, -0.13097712397575378, -0.23795455694198608, 0.1214393824338913, 0.22877970337867737, -0.3549240827560425, 0.1684112697839737, -0.1870066076517105, 0.3227965831756592, 0.033006440848112106, -0.017031481489539146, 0.3250389099121094, -0.17848029732704163, 0.11343035101890564, -0.182891845703125, -0.23213744163513184, -0.010938167572021484, -0.15938900411128998, 0.386518269777298, 0.41344785690307617, 0.46595457196235657, -0.20013047754764557, 0.9793558120727539, -0.014102917164564133, -0.3777911365032196, 0.5141608715057373, -0.13816870748996735, 0.10836914926767349, -0.19418944418430328, -0.2245258390903473, -0.03680742532014847, -0.10049466788768768, 0.3606392443180084, 0.09456110000610352, -0.12775057554244995, -0.1838701367378235, 0.10196328163146973, 0.1188521534204483, -0.13415899872779846, -0.046394381672143936, 0.2515120506286621, -0.8417854905128479, -0.10521702468395233, 0.01552271842956543, -0.015248052775859833, -0.2573596239089966, -0.0736728236079216, 0.050803180783987045, 0.2974076271057129, 0.22277890145778656, 0.211764395236969, -0.40289372205734253, 0.19661931693553925, -0.22936969995498657, 0.4388888478279114, -0.08127300441265106, 0.4864448308944702, 0.09754074364900589, -0.07950109988451004, 0.051580093801021576, -0.06457565724849701, 0.3845900297164917, -0.17647787928581238, -0.12001962214708328, 0.04449862241744995, -0.010380566120147705, -0.43254154920578003, 0.003133147954940796, 0.01121288537979126, -0.019956421107053757, -0.09841447323560715, 0.16896790266036987, -0.15141883492469788, -0.36561471223831177, 0.005857279524207115, 0.005432073026895523, -0.0978403240442276, 0.336462140083313, 0.06046397238969803, -0.26071786880493164, 0.046172089874744415, 0.04320536181330681, -0.022343195974826813, -0.08556138724088669, -0.13297131657600403, -0.22636288404464722, -0.45941242575645447, 0.05770540237426758, 0.2551599144935608, -0.20105287432670593, 0.2151525765657425, -0.10252629220485687, -0.09147535264492035, -0.2516607940196991, 0.33071959018707275, 0.24347375333309174, 0.3105362057685852, -0.23246847093105316, -0.17770829796791077, 0.011596184223890305, 0.3291947543621063, 0.3991321325302124, 0.116121806204319, -0.04860348626971245, 0.279842346906662, 0.07269027084112167, -0.10825139284133911, -0.3122853636741638, 0.15562784671783447, 0.3349766731262207, -0.006093472242355347, -0.539188802242279, -0.4697951674461365, 0.7293047308921814, 0.25885459780693054, 0.11643509566783905, 0.18404582142829895, 0.2263995110988617, -0.25939953327178955, 0.6836548447608948, 0.24760697782039642, 1.1105141639709473, -0.15059597790241241, 0.3254760801792145, -0.0553833432495594, -0.3049466013908386, 0.1974310725927353, -0.13907736539840698, -0.03728456050157547, -0.48602187633514404, -0.1130751371383667, -0.17401117086410522, -0.20288625359535217, 0.021246176213026047, 0.12517322599887848, 0.3290603458881378, 0.18445400893688202, -0.0773126631975174, -0.03898976370692253, 0.0793219730257988, 0.1365744173526764, -0.019959086552262306, -0.1847096085548401, -0.06526114046573639, 0.10121667385101318, -0.2433088719844818, 0.05941419675946236, 0.016227345913648605, -0.3013004958629608, -0.10524291545152664, -0.050849199295043945, -0.06330636888742447, 0.1296350210905075, -0.39919987320899963, 0.1822526454925537, -0.09628085792064667, -0.750937283039093, 0.21395207941532135, 0.2963108718395233, 0.3420209288597107, -0.15960083901882172, -0.14808379113674164, 0.16836680471897125, 0.45767003297805786, -0.16132371127605438, -0.001321505755186081, -0.09381681680679321, 0.27854660153388977, 0.0020789653062820435, 0.021858900785446167, 0.061920177191495895, 0.04779890552163124, -0.39859503507614136, -0.3425137400627136, -0.15302777290344238, 0.47119206190109253, -0.2364472597837448, -0.5164053440093994, 0.2092849314212799, -0.052644819021224976, -0.0617271289229393, 0.007555175106972456, 0.1004684716463089, -0.07162633538246155, 0.07385526597499847, 0.28974875807762146, -0.3646854758262634, 0.043640099465847015, 0.3805159032344818, 0.20729267597198486, 0.3583511412143707, 0.37871408462524414, 0.16046497225761414, -0.08770132064819336, -0.07133278995752335, 0.24884597957134247, 0.8871482014656067, -0.24459956586360931, -0.07498426735401154, -0.09945150464773178, -0.07879577577114105, 0.21010471880435944, -0.14473789930343628, 0.007223797962069511, 0.0007947683334350586, -0.047040149569511414, -0.16083917021751404, -0.37137556076049805, 0.03235848620533943, -0.5008920431137085, 0.21499192714691162, 0.025055117905139923, -0.08578245341777802, -0.34939631819725037, 0.05496201664209366, -0.14309030771255493, 0.18654322624206543, 0.21903550624847412, 0.12052224576473236, -0.1012578159570694, 0.1273956000804901, -0.013158489018678665, 0.1512589156627655, 0.003207821398973465, 0.019438453018665314, -0.19980880618095398, -0.14107125997543335, -0.230772465467453, 0.20485249161720276, 0.10360150039196014, -0.1494743824005127, 0.08143745362758636, -0.2535155713558197, -0.24879762530326843, 0.039264094084501266, 0.13886676728725433, 0.18485206365585327, 0.10143127292394638, 0.29503512382507324, 0.3234405815601349, -0.06259208917617798, -0.18498773872852325, 0.056165192276239395, 0.3580036759376526, 0.3486049771308899, -0.159319207072258, 0.11673344671726227, -0.17488175630569458, -0.29425597190856934, -0.35239994525909424, 0.14729535579681396, 0.5240924954414368, 0.027755916118621826, 0.20107035338878632, -0.06555787473917007, 0.13213296234607697, -0.24863292276859283, 0.2128683626651764, 0.4067135751247406, -0.09343717992305756, 0.05603637546300888, 0.07849112898111343, -0.06210113316774368, -0.3087407946586609, -0.05842512845993042, -0.20660410821437836, -0.3107796311378479, -0.09112049639225006, 0.0011048242449760437, 0.139241561293602, 0.564200758934021, -0.11395275592803955, -0.2999233603477478, 0.05018945038318634, -0.36122506856918335, -0.11782854795455933, 0.4179738461971283, 0.19008639454841614, 0.016500277444720268, 0.38722383975982666, 0.24784322082996368, 0.3203354775905609, 0.1747993677854538, 0.39794573187828064, 0.8507423400878906, 0.6488268375396729, 0.065912626683712, 0.4314877986907959, -0.3954394459724426, -0.3699275851249695, 0.25332319736480713, 0.1470920592546463, 0.1307244747877121, 0.1713157743215561, 0.5190114974975586, 0.13686735928058624, -0.5436133146286011, 0.06449531018733978, 0.1760169416666031, 0.021530600264668465, -0.4329630434513092, -0.16276565194129944, 0.04467344284057617, -0.31344813108444214, -0.14613625407218933, -0.36262694001197815, -0.11905043572187424, -0.02269413322210312, 0.19189849495887756, 0.015150737017393112, -0.08941671252250671, 0.10094628483057022, 0.16291341185569763, -0.1449505239725113, -0.05836683139204979, 0.16317763924598694, -0.16065916419029236, -0.04565340653061867, 0.050352178514003754, 0.18547406792640686, 0.24727830290794373, -0.01906958781182766, -0.29486969113349915, -0.07160072028636932, 0.4638657867908478, -0.18514606356620789, 0.31303274631500244, -0.04947047680616379, 0.18719500303268433, -0.11256753653287888, 0.3059995472431183, 0.012617591768503189, 0.05036793649196625, 0.15028077363967896, 0.007372678257524967, 0.00018559396266937256, -0.0016838982701301575, 0.28256163001060486, 0.08210283517837524, 0.009857237339019775, -0.16401351988315582, -0.010839719325304031, -0.3895701467990875, -0.06287813186645508, 0.6542883515357971, -0.21250152587890625, 0.12707793712615967, 0.06971371173858643, 0.0010598190128803253, -0.0440516397356987, 0.18331922590732574, 0.36985161900520325, 0.10648907721042633, -0.360869824886322, 0.02909281849861145, -0.23467186093330383, 0.03965393453836441, 0.023565268144011497, 0.10588749498128891, -0.08424653112888336, -0.009763047099113464, 0.36543917655944824, 0.008063120767474174, -0.06159140169620514, -0.0478135384619236, 0.19488364458084106, 0.5103927254676819, 0.02516094595193863, -0.10594981163740158, -0.25767919421195984, 0.35047653317451477, -0.14830975234508514, -0.3171122968196869, -0.05636768415570259, 0.24027276039123535, -0.07938970625400543, -0.030105095356702805, -0.2307637333869934, 0.545113205909729, -0.058686982840299606, 0.32271963357925415, -0.054405927658081055, 0.5014358162879944, -0.2844735383987427, 0.10690422356128693, 0.12471657991409302, -0.08370678126811981, -0.40175896883010864, 0.21891391277313232, -0.12643548846244812, 0.27326568961143494, 0.010722137987613678, -0.10017045587301254, -0.025706691667437553, 0.13738885521888733, -0.13209150731563568, -0.46874311566352844, -0.23036721348762512, 0.48135337233543396, -0.2396201193332672, -0.14004375040531158, 0.29078423976898193, 0.46937626600265503, 0.20530323684215546, 0.16072046756744385, -0.16765567660331726, -0.15600544214248657, 0.5634090900421143, 0.15379750728607178, -0.041072018444538116, 0.08228105306625366, -0.11214645951986313, 0.31605884432792664, 0.06591857224702835, -0.3561655879020691, -0.1133614033460617, 0.14870478212833405, -0.2926996648311615, 0.12811174988746643, 0.22719836235046387, 0.2410164773464203, 0.262063205242157, -0.31641247868537903, 0.42510291934013367, 0.21945789456367493, 0.05163852125406265, -0.24757669866085052, -0.349640429019928 ]
https://github.com/huggingface/datasets/issues/2165
@y-rokutan Hi, now if you install `deepspeed` from master (this feature will be available in the next official release), the code should work without subclassing. Let us know if you still have any issues.
How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi, I'm trying to pretraine deep-speed model using HF arxiv dataset like: ``` train_ds = nlp.load_dataset('scientific_papers', 'arxiv') train_ds.set_format( type="torch", columns=["input_ids", "attention_mask", "global_attention_mask", "labels"], ) engine, _, _, _ = deepspeed.initialize( args=args, model=model, model_parameters=[p for p in model.parameters() if p.requires_grad], training_data=train_ds) ``` but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
34
How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset Hi, I'm trying to pretraine deep-speed model using HF arxiv dataset like: ``` train_ds = nlp.load_dataset('scientific_papers', 'arxiv') train_ds.set_format( type="torch", columns=["input_ids", "attention_mask", "global_attention_mask", "labels"], ) engine, _, _, _ = deepspeed.initialize( args=args, model=model, model_parameters=[p for p in model.parameters() if p.requires_grad], training_data=train_ds) ``` but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset? @y-rokutan Hi, now if you install `deepspeed` from master (this feature will be available in the next official release), the code should work without subclassing. Let us know if you still have any issues.
[ -0.2635490596294403, -0.3762310743331909, 0.0858725979924202, 0.3691847324371338, 0.18167556822299957, 0.3435538411140442, -0.05182437598705292, 0.4010276794433594, -0.1650426983833313, -0.2584496736526489, -0.35081374645233154, 0.32045674324035645, -0.24456435441970825, 0.014272965490818024, 0.19667524099349976, -0.3255871534347534, 0.2107609510421753, 0.02824496477842331, -0.21179528534412384, -0.2563452124595642, -0.21837502717971802, -0.06600562483072281, 0.009197220206260681, 0.1386982947587967, -0.0008856579661369324, 0.03126966208219528, 0.09245172888040543, 0.1584642380475998, -0.11161451786756516, -0.3660576045513153, 0.29415977001190186, 0.06597843766212463, 0.660908043384552, 0.24739937484264374, -0.00013030196714680642, 0.15169958770275116, 0.04855797812342644, -0.09975512325763702, 0.15978051722049713, -0.08682827651500702, -0.2239149510860443, 0.027899987995624542, 0.20707760751247406, -0.12897346913814545, -0.41461312770843506, -0.6126391291618347, -0.03471894562244415, -0.3231692910194397, 0.1267075091600418, 0.45202940702438354, 0.03574366867542267, 0.14419054985046387, 0.0045099928975105286, 0.04395905137062073, 0.247765451669693, -0.19347016513347626, -0.1854255199432373, 0.09366065263748169, -0.07437027245759964, 0.1410137563943863, -0.22509658336639404, 0.08562778681516647, -0.15295743942260742, 0.025686118751764297, 0.4744635224342346, -0.3056497275829315, -0.3226054310798645, -0.26473262906074524, -0.0733930915594101, 0.5432499051094055, 0.21579505503177643, -0.22982093691825867, -0.10460373759269714, 0.18222187459468842, -0.05505840480327606, -0.23111021518707275, -0.35966840386390686, 0.2333775758743286, 0.017058636993169785, 0.1305229663848877, 0.011207208037376404, -0.12991459667682648, -0.18630799651145935, 0.08755958080291748, 0.28060978651046753, 0.3632270395755768, 0.0851096659898758, 0.15120358765125275, 0.21552056074142456, -0.24191224575042725, 0.3436708152294159, -0.22627916932106018, 0.007046538405120373, -0.18125373125076294, -0.1346873939037323, -0.0533129945397377, -0.31489989161491394, -0.08490650355815887, 0.37813079357147217, 0.1288091242313385, 0.1740027219057083, 0.3770183324813843, -0.127242311835289, 0.07303182035684586, -0.1347576528787613, -0.12469275295734406, 0.21712779998779297, 0.2373773157596588, 0.03854179009795189, -0.25057274103164673, -0.02053842693567276, 0.271517276763916, -0.15027359127998352, -0.2897736728191376, -0.046876210719347, 0.051492247730493546, -0.1515410840511322, -0.17653676867485046, -0.16655440628528595, -0.1864987164735794, -0.3177586495876312, -0.05143216252326965, 0.04750886186957359, 0.23430585861206055, 0.05501066520810127, 0.04739030450582504, 0.26831358671188354, 0.6924923062324524, -0.20338720083236694, -0.1185874193906784, 0.03223340958356857, 0.11748310923576355, -0.09596782177686691, -0.19801023602485657, -0.08002515882253647, -0.15646319091320038, 0.01905505359172821, 0.026322823017835617, -0.30155444145202637, 0.13010910153388977, 0.3758249878883362, -0.09967537969350815, 0.22881361842155457, 0.04590393975377083, 0.03180074691772461, 0.07376403361558914, 0.37899643182754517, 0.4413588047027588, -0.3008756637573242, 0.27150461077690125, -0.43282321095466614, -0.24264302849769592, -0.11569026857614517, -0.01309856865555048, 0.18897131085395813, -0.2756025493144989, -0.41656267642974854, 0.37203624844551086, 0.01635129749774933, 0.13438548147678375, 0.010878972709178925, -0.4601104259490967, -0.42957228422164917, -0.17029844224452972, 0.22511494159698486, 0.18358075618743896, -0.40520429611206055, -0.14380913972854614, 0.06200385093688965, -0.1478809267282486, 0.2841460704803467, 0.29748430848121643, -0.17687971889972687, 0.01651294156908989, -0.3843536078929901, -0.017885662615299225, 0.5604596138000488, -0.2282063364982605, 0.1074005737900734, 0.11666355282068253, 0.10414671897888184, -0.2193724662065506, 0.17307254672050476, 0.040826521813869476, -0.042962513864040375, -0.06212051585316658, 0.12277650833129883, 0.22298407554626465, -0.12181984633207321, -0.21116819977760315, -0.10403849184513092, -0.22912661731243134, 0.4387816786766052, -0.06033136323094368, 0.21656471490859985, 0.34181374311447144, -0.15439769625663757, -0.2581009864807129, 0.375007688999176, -0.0382850356400013, 0.1416977494955063, 0.21982461214065552, -0.2698797881603241, 0.12131568789482117, -0.06756610423326492, 0.08898839354515076, 0.2008630484342575, 0.05101132392883301, 0.060785844922065735, 0.06598155200481415, 0.1656823456287384, 0.05065435171127319, -0.16641606390476227, 0.10742916166782379, -0.13527661561965942, 0.002114599570631981, -0.10622324049472809, -0.07972152531147003, -0.27418237924575806, -0.26910412311553955, -0.09040305018424988, 0.23402781784534454, -0.45002222061157227, 0.14283889532089233, -0.5754762291908264, 0.16122093796730042, 0.13053911924362183, 0.1429702341556549, 0.05620315670967102, 0.18025580048561096, 0.09345092624425888, -0.06460309028625488, -0.14355255663394928, 0.20073360204696655, 0.04850121587514877, -0.09766612201929092, 0.37837880849838257, 0.2502428889274597, 0.06993671506643295, -1.0497535467147827, 0.3431999981403351, 0.453209787607193, 0.0923512876033783, -0.13175493478775024, -0.03819787874817848, 0.6848374605178833, 0.2695319950580597, 0.22144240140914917, -0.03695414587855339, -0.04385378211736679, 0.004383765161037445, 0.13373154401779175, -0.20013540983200073, 0.0169999822974205, -0.12307760119438171, -0.07098200917243958, 0.26629433035850525, -0.014630534686148167, -0.36104685068130493, -0.036543332040309906, 0.04661646485328674, -0.03579771891236305, 0.13591909408569336, 0.3326890170574188, -0.5043029189109802, -0.05831601470708847, 0.24919140338897705, -0.16095976531505585, 0.12412835657596588, 0.1438814103603363, 0.20885002613067627, 0.007288645952939987, -0.10114022344350815, 0.028205376118421555, 0.2873184084892273, 0.023692823946475983, 0.3778466582298279, -0.06375375390052795, -0.01888844557106495, -0.07088294625282288, -0.37462636828422546, 0.098584845662117, -0.14491146802902222, -0.06933034211397171, -0.48958951234817505, 0.13096299767494202, -0.44845297932624817, -0.07114703208208084, -0.22241328656673431, -0.017748160287737846, 0.044177278876304626, -0.04951237142086029, -0.17791396379470825, -0.021045248955488205, 0.2825015187263489, 0.1720360517501831, -0.4338250458240509, -0.2607573866844177, 0.20051315426826477, -0.29891473054885864, 0.021510690450668335, -0.14392009377479553, -0.11556024104356766, -0.0867559090256691, 0.1291494071483612, -0.003898441791534424, 0.2609843313694, 0.15940618515014648, 0.056651681661605835, -0.2899436354637146, -0.1649593710899353, -0.027435123920440674, -0.21374063193798065, 0.10000615566968918, 0.15568657219409943, 0.17255401611328125, 0.15562832355499268, 0.02780713513493538, 0.10508397221565247, 0.016012147068977356, -0.039034053683280945, 0.09904240071773529, -0.3585253953933716, 0.1676234006881714, 0.4255625903606415, -0.16893616318702698, -0.2158079296350479, -0.23541347682476044, -0.3735867440700531, 0.03082432597875595, 0.12545345723628998, -0.13268667459487915, 0.29240190982818604, 0.06981755048036575, 0.2185606211423874, 0.0046675726771354675, -0.07644772529602051, -0.07432794570922852, 0.383773535490036, -0.021269386634230614, -0.3230697810649872, -0.1505279242992401, -0.2576107978820801, 0.10674776136875153, 0.15449659526348114, -0.31515902280807495, 0.19527196884155273, -0.2176484912633896, 0.24807938933372498, 0.07064297795295715, -0.10142449289560318, 0.3441767394542694, -0.15428005158901215, 0.14131851494312286, -0.17260199785232544, -0.2886226177215576, 0.0019520819187164307, -0.18911688029766083, 0.3890928328037262, 0.3815203905105591, 0.569966197013855, -0.1861284375190735, 0.9883285164833069, -0.03730884939432144, -0.33128389716148376, 0.5028914213180542, -0.08491551876068115, 0.09293052554130554, -0.16949672996997833, -0.3107755184173584, -0.032768867909908295, -0.12090551853179932, 0.31070801615715027, 0.11394055932760239, -0.12508997321128845, -0.19880172610282898, 0.11345908045768738, 0.16787707805633545, -0.018129847943782806, -0.051773618906736374, 0.23306983709335327, -0.8297379016876221, -0.0912514254450798, -0.02160247042775154, 0.12280532717704773, -0.2273716777563095, -0.0501350536942482, 0.012153062969446182, 0.32785481214523315, 0.19790777564048767, 0.21633192896842957, -0.38068851828575134, 0.1577455848455429, -0.21932920813560486, 0.4085029065608978, -0.0704607218503952, 0.4912366271018982, 0.09337422251701355, -0.09499719738960266, 0.08615796267986298, 0.02206907793879509, 0.36333683133125305, -0.1793452501296997, -0.030841853469610214, 0.11176154017448425, -0.12612149119377136, -0.47556257247924805, -0.05588098242878914, 0.029604561626911163, -0.046232614666223526, -0.0690714418888092, 0.046701498329639435, -0.14274920523166656, -0.4097144603729248, 0.06514282524585724, -0.1442105919122696, -0.08700905740261078, 0.2494538128376007, -0.04123743996024132, -0.21789631247520447, 0.03690933436155319, 0.07786455750465393, 0.02834087610244751, -0.055621519684791565, -0.1522573083639145, -0.23645949363708496, -0.42424339056015015, -0.03663650155067444, 0.3029748201370239, -0.23551000654697418, 0.21332502365112305, -0.04166311025619507, -0.04845514893531799, -0.2323371171951294, 0.30774208903312683, 0.27004382014274597, 0.2854975163936615, -0.20154359936714172, -0.17155006527900696, 0.08808054029941559, 0.32639822363853455, 0.41926175355911255, 0.12284578382968903, -0.12598304450511932, 0.2496308982372284, 0.08540648967027664, -0.16993850469589233, -0.3876943588256836, 0.12045757472515106, 0.39084574580192566, 0.0005143210291862488, -0.5109207034111023, -0.5484148859977722, 0.7228651642799377, 0.21016043424606323, 0.10959357023239136, 0.18107405304908752, 0.17940384149551392, -0.2531597912311554, 0.6627232432365417, 0.22559088468551636, 1.1227079629898071, -0.1567256897687912, 0.30880340933799744, -0.0989401713013649, -0.22540801763534546, 0.13811033964157104, -0.09557632356882095, 0.08039667457342148, -0.4583060145378113, -0.22319728136062622, -0.21680983901023865, -0.17977291345596313, 0.07529787719249725, 0.17015758156776428, 0.3530695140361786, 0.17555099725723267, -0.1129944697022438, 0.02495567500591278, 0.13064786791801453, 0.10074593126773834, -0.012815713882446289, -0.21094727516174316, -0.045824624598026276, 0.07141287624835968, -0.18207499384880066, 0.04819498211145401, 0.02355441078543663, -0.32560428977012634, -0.09105845540761948, -0.04902333766222, -0.09715496003627777, 0.14397025108337402, -0.3985096514225006, 0.2058292031288147, -0.1375063955783844, -0.7237472534179688, 0.3812146782875061, 0.32801511883735657, 0.3723198175430298, -0.16270235180854797, -0.09402776509523392, 0.13561703264713287, 0.3901248872280121, -0.15751148760318756, -0.0386420413851738, -0.11927728354930878, 0.2890608012676239, 0.04284510016441345, 0.010075956583023071, -0.01114974357187748, 0.032005779445171356, -0.4106139540672302, -0.302283376455307, -0.15439888834953308, 0.49883460998535156, -0.272061288356781, -0.48074671626091003, 0.14920386672019958, -0.03856653720140457, -0.08650366216897964, -0.00849864911288023, 0.040865473449230194, -0.13144196569919586, 0.06050402671098709, 0.27166879177093506, -0.3586282730102539, 0.03402368351817131, 0.42360228300094604, 0.2787995934486389, 0.4550120234489441, 0.38252347707748413, 0.21734090149402618, -0.031176581978797913, -0.07441895455121994, 0.31338006258010864, 0.9300652742385864, -0.10525095462799072, -0.038236867636442184, -0.03907610476016998, -0.11283829808235168, 0.21142306923866272, -0.17192837595939636, 0.05874806270003319, 0.018319597467780113, -0.06462027132511139, -0.1465444415807724, -0.3974840044975281, 0.03509979695081711, -0.5616655945777893, 0.23711784183979034, -0.013126015663146973, -0.044371720403432846, -0.2860124707221985, 0.1106179803609848, -0.11059334129095078, 0.10458922386169434, 0.16528421640396118, 0.10901200026273727, -0.05357640981674194, 0.1778022199869156, 0.039517272263765335, 0.16979336738586426, -0.028861545026302338, 0.02142862230539322, -0.24378573894500732, -0.08562133461236954, -0.20437787473201752, 0.2034529149532318, 0.10920841991901398, -0.0705147534608841, 0.10990703850984573, -0.22085896134376526, -0.32137712836265564, 0.035378530621528625, 0.16736502945423126, 0.129081130027771, 0.06027727201581001, 0.338820219039917, 0.33204591274261475, -0.09922072291374207, -0.2505177855491638, 0.011736977845430374, 0.24766886234283447, 0.39774879813194275, -0.10526532679796219, 0.04790704324841499, -0.1343841254711151, -0.2938902676105499, -0.35981106758117676, 0.12823675572872162, 0.43912938237190247, 0.013845670968294144, 0.24018198251724243, -0.11846762150526047, 0.13398803770542145, -0.20980942249298096, 0.20711922645568848, 0.37257546186447144, 0.001870233565568924, 0.03300512582063675, -0.06098329275846481, -0.09308601170778275, -0.3016679584980011, -0.0422552116215229, -0.18008676171302795, -0.3002391755580902, -0.09028840065002441, 0.028997570276260376, 0.10322451591491699, 0.5535039901733398, -0.13857117295265198, -0.2539670169353485, 0.06027670204639435, -0.32150083780288696, -0.0014769285917282104, 0.42465391755104065, 0.19858723878860474, 0.04896804690361023, 0.43452683091163635, 0.24018698930740356, 0.30802053213119507, 0.2676520049571991, 0.4743523895740509, 0.8348220586776733, 0.588438093662262, 0.07747247070074081, 0.3680681884288788, -0.4591238498687744, -0.2820627987384796, 0.38823023438453674, 0.15682610869407654, 0.07903891801834106, 0.06880120933055878, 0.5054256319999695, 0.00013992562890052795, -0.6188645362854004, 0.015946879982948303, 0.06850224733352661, 0.014383949339389801, -0.3718111217021942, -0.2234373241662979, 0.09958864748477936, -0.2777837812900543, -0.17214573919773102, -0.3405424654483795, -0.10368724167346954, -0.06774061918258667, 0.17961131036281586, -0.0009893327951431274, -0.07814104110002518, -0.04166965186595917, 0.1533585637807846, -0.1269318014383316, -0.06148982793092728, 0.18459002673625946, -0.22943270206451416, -0.03308633714914322, 0.09507106244564056, 0.18652136623859406, 0.17739368975162506, 0.03411779925227165, -0.26392191648483276, -0.0837152898311615, 0.4728595018386841, -0.14625485241413116, 0.3952941298484802, -0.057339295744895935, 0.22481603920459747, -0.03145284205675125, 0.320048063993454, -0.034909527748823166, 0.08015325665473938, 0.0922418013215065, 0.02297297492623329, 0.04397416114807129, -0.022646881639957428, 0.3486645221710205, 0.0821729302406311, 0.006817325949668884, -0.1428258866071701, 0.007871106266975403, -0.3138805031776428, -0.017993127927184105, 0.684899091720581, -0.24694153666496277, 0.07724813371896744, 0.05367203429341316, -0.027470728382468224, -0.05733463168144226, 0.27777689695358276, 0.31006985902786255, -0.060111939907073975, -0.38683101534843445, -0.008844256401062012, -0.24154731631278992, 0.03322301059961319, 0.003374415449798107, 0.1420803815126419, -0.04314082860946655, -0.03739508241415024, 0.40609443187713623, -0.028631214052438736, -0.01177918165922165, -0.032829586416482925, 0.12358561903238297, 0.5267845392227173, 0.057788148522377014, -0.06984584033489227, -0.21287494897842407, 0.3947785794734955, -0.1954040825366974, -0.28329455852508545, -0.08279168605804443, 0.18952596187591553, -0.12775416672229767, 0.10083237290382385, -0.21376582980155945, 0.5065090656280518, -0.10213818401098251, 0.35095152258872986, -0.03591753542423248, 0.5236027836799622, -0.2578081488609314, 0.11954659968614578, 0.16061818599700928, -0.07642907649278641, -0.42287710309028625, 0.23571226000785828, -0.13276143372058868, 0.3454509973526001, -0.05227532610297203, -0.15111610293388367, -0.033335454761981964, 0.17698481678962708, -0.08932018280029297, -0.4472344219684601, -0.2921125292778015, 0.5438433289527893, -0.3005521893501282, -0.0901237204670906, 0.32355260848999023, 0.4553421437740326, 0.19366015493869781, 0.1463959515094757, -0.17930597066879272, -0.1881176233291626, 0.530423104763031, 0.08597369492053986, -0.0885763019323349, 0.0214538536965847, -0.09126085042953491, 0.23739226162433624, 0.10986127704381943, -0.2435685396194458, -0.14499500393867493, 0.09512484818696976, -0.19035854935646057, 0.04698331654071808, 0.2565315067768097, 0.24106109142303467, 0.21349073946475983, -0.2993459701538086, 0.33018872141838074, 0.16737517714500427, 0.017164967954158783, -0.20329874753952026, -0.37164968252182007 ]
https://github.com/huggingface/datasets/issues/2165
Worth mentioning that any function that expects a `torch..Dataset` (like `torch..DataLoader`) will fail a mypy-esque typecheck if a `datasets.Dataset` is passed, even though it implements the interface correctly (I think). The virtual subclass idea was a good one- I wonder if there's another workaround given the Generic issue. What we're really talking about is something similar to the structural subtyping semantics that `typing.Protocol` defines. If `torch..DataLoader` accepted anything that supports `__getitem__` and `__len__` methods this would be much easier. Not sure if there's a way to do this without the wrapper from the perspective of `datasets`.
How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset
Hi, I'm trying to pretraine deep-speed model using HF arxiv dataset like: ``` train_ds = nlp.load_dataset('scientific_papers', 'arxiv') train_ds.set_format( type="torch", columns=["input_ids", "attention_mask", "global_attention_mask", "labels"], ) engine, _, _, _ = deepspeed.initialize( args=args, model=model, model_parameters=[p for p in model.parameters() if p.requires_grad], training_data=train_ds) ``` but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset?
96
How to convert datasets.arrow_dataset.Dataset to torch.utils.data.Dataset Hi, I'm trying to pretraine deep-speed model using HF arxiv dataset like: ``` train_ds = nlp.load_dataset('scientific_papers', 'arxiv') train_ds.set_format( type="torch", columns=["input_ids", "attention_mask", "global_attention_mask", "labels"], ) engine, _, _, _ = deepspeed.initialize( args=args, model=model, model_parameters=[p for p in model.parameters() if p.requires_grad], training_data=train_ds) ``` but deepspeed.initialize accepts torch.utils.data.Dataset only. How can I convert HF-style dataset to torch-style dataset? Worth mentioning that any function that expects a `torch..Dataset` (like `torch..DataLoader`) will fail a mypy-esque typecheck if a `datasets.Dataset` is passed, even though it implements the interface correctly (I think). The virtual subclass idea was a good one- I wonder if there's another workaround given the Generic issue. What we're really talking about is something similar to the structural subtyping semantics that `typing.Protocol` defines. If `torch..DataLoader` accepted anything that supports `__getitem__` and `__len__` methods this would be much easier. Not sure if there's a way to do this without the wrapper from the perspective of `datasets`.
[ -0.2078215479850769, -0.23314878344535828, 0.13846804201602936, 0.27257946133613586, 0.26682642102241516, 0.1537621021270752, -0.003108251839876175, 0.324068158864975, -0.07489662617444992, -0.22039930522441864, -0.35762113332748413, 0.3906596302986145, -0.2636040151119232, 0.10520819574594498, 0.27979961037635803, -0.21135872602462769, 0.17726367712020874, -0.05013131722807884, -0.16595150530338287, -0.15954795479774475, -0.17714789509773254, -0.11840199679136276, 0.05477096140384674, 0.0935722142457962, 0.14250652492046356, 0.06500501930713654, 0.07860161364078522, 0.23799574375152588, -0.17920371890068054, -0.2768821120262146, 0.37607723474502563, 0.19686955213546753, 0.4361507296562195, 0.19047538936138153, -0.00012953243276569992, 0.25560954213142395, 0.13308119773864746, -0.15143395960330963, -0.03501211851835251, 0.023135922849178314, -0.09568456560373306, -0.005804099142551422, 0.166096493601799, -0.06087733060121536, -0.2630535960197449, -0.6010503172874451, -0.08138053119182587, -0.3644053041934967, -0.012869808822870255, 0.3584636449813843, 0.02062157914042473, 0.3547849655151367, 0.0011112391948699951, 0.05597591772675514, 0.29982078075408936, 0.00631336122751236, -0.15172144770622253, 0.08913297206163406, -0.11015543341636658, 0.15644708275794983, -0.20031625032424927, 0.01714431121945381, -0.18288648128509521, -0.05045011639595032, 0.4789532423019409, -0.25698497891426086, -0.4116528034210205, -0.11101995408535004, -0.11488796770572662, 0.5390317440032959, 0.1896054744720459, -0.3263985812664032, -0.29528170824050903, 0.06471793353557587, -0.11267247796058655, -0.1941777765750885, -0.23951314389705658, 0.037442661821842194, 0.01680193468928337, 0.14774595201015472, 0.11890922486782074, -0.08220545947551727, -0.14843396842479706, 0.15078100562095642, 0.1586574912071228, 0.18972763419151306, 0.05543031916022301, 0.20076757669448853, 0.19819995760917664, -0.36640483140945435, 0.3242424726486206, -0.23283502459526062, -0.00553774181753397, -0.125376895070076, -0.018496159464120865, -0.11477203667163849, -0.2362644225358963, 0.06874653697013855, 0.46413493156433105, 0.07203605771064758, 0.19629676640033722, 0.4362741708755493, -0.36574068665504456, 0.16526474058628082, -0.003539908677339554, -0.18844249844551086, 0.12687696516513824, 0.3190459907054901, 0.013615204021334648, -0.1865619421005249, 0.11714337021112442, 0.250377893447876, -0.06322621554136276, -0.14249426126480103, -0.02140098810195923, 0.06877216696739197, -0.009540706872940063, -0.13767555356025696, -0.15441745519638062, -0.21739864349365234, -0.24259202182292938, 0.007189325988292694, 0.17316298186779022, 0.19891823828220367, 0.04642880707979202, 0.20168910920619965, 0.3246085047721863, 0.5662383437156677, -0.2975245714187622, -0.1407993882894516, 0.038650114089250565, 0.08529472351074219, -0.09981699287891388, -0.20872530341148376, -0.03678519278764725, -0.1110672727227211, -0.1289438009262085, 0.008311420679092407, -0.07742778956890106, 0.2705901265144348, 0.2934509813785553, 0.011203046888113022, 0.29239994287490845, -0.008866120129823685, -0.05064237490296364, 0.033993326127529144, 0.35929813981056213, 0.3019105792045593, -0.37595897912979126, 0.13564439117908478, -0.4547365605831146, -0.19878409802913666, -0.08288049697875977, -0.018760070204734802, 0.04015008360147476, -0.2016352266073227, -0.3906702697277069, 0.25858429074287415, -0.018317922949790955, -0.02445528656244278, 0.018487844616174698, -0.48663130402565, -0.3768114447593689, -0.2238229513168335, 0.21635043621063232, 0.1883438229560852, -0.4176254868507385, -0.1818932592868805, 0.04400709643959999, -0.19816914200782776, 0.1914088875055313, 0.2892555594444275, -0.22263070940971375, -0.05213068798184395, -0.3271152377128601, 0.059764936566352844, 0.5643672943115234, -0.19064316153526306, -0.030381709337234497, 0.12912613153457642, 0.12000617384910583, -0.003957971930503845, 0.06228754296898842, 0.005282234400510788, -0.09187346696853638, -0.1014150083065033, 0.21989426016807556, 0.20004013180732727, -0.17933274805545807, -0.29748839139938354, -0.13093578815460205, -0.24009503424167633, 0.2908288836479187, -0.14764779806137085, 0.14566528797149658, 0.2855873703956604, -0.1942010521888733, -0.273414671421051, 0.3236294686794281, -0.07212799787521362, 0.14527729153633118, 0.0780830904841423, -0.2897861897945404, 0.30682727694511414, 0.028097856789827347, -0.003913216292858124, 0.11661196500062943, 0.11883619427680969, 0.04604180157184601, 0.08011883497238159, 0.015689577907323837, -0.10313008725643158, -0.12848404049873352, 0.1592291295528412, -0.008431416004896164, 0.12845554947853088, -0.09957946091890335, 0.04320311173796654, -0.39557015895843506, -0.24824140965938568, -0.112576425075531, 0.08000059425830841, -0.3220633566379547, 0.19854232668876648, -0.6167339086532593, 0.11333456635475159, 0.1474820226430893, 0.15288145840168, -0.08258455991744995, 0.2855969965457916, 0.01349758729338646, -0.02054419554769993, -0.05652567744255066, 0.20217719674110413, 0.21151000261306763, -0.06188076362013817, 0.19039715826511383, 0.3349083662033081, 0.007228566333651543, -0.8401788473129272, 0.3379893898963928, 0.415142297744751, 0.1432088017463684, -0.1016324907541275, -0.05483349785208702, 0.7059510350227356, 0.26062366366386414, 0.2426980882883072, -0.08179634064435959, -0.01205834373831749, 0.06490067392587662, 0.1966552734375, -0.3872090280056, -0.04615788161754608, -0.21019786596298218, 0.057300128042697906, 0.236350417137146, 0.13347673416137695, -0.3134966492652893, 0.02635243535041809, 0.10327110439538956, -0.1176702082157135, 0.21390658617019653, 0.3229411840438843, -0.38956180214881897, 0.004324018955230713, 0.223734512925148, -0.15597853064537048, 0.1782517433166504, 0.12813732028007507, 0.23651845753192902, -0.014614501036703587, -0.18256115913391113, 0.09602709114551544, 0.26787710189819336, 0.10799627006053925, 0.20844073593616486, -0.13480128347873688, -0.010652054101228714, -0.03304775431752205, -0.31678855419158936, 0.11502954363822937, -0.21002592146396637, -0.20247386395931244, -0.6494215726852417, 0.24548795819282532, -0.6444998383522034, -0.16794663667678833, -0.21179848909378052, -0.12838076055049896, 0.07380449771881104, -0.13254055380821228, -0.18382003903388977, -0.1610392928123474, 0.15742269158363342, 0.18043074011802673, -0.4207697808742523, -0.08761991560459137, 0.14539143443107605, -0.3617410659790039, 0.16350123286247253, -0.17362192273139954, -0.1349201798439026, -0.14027582108974457, 0.16722477972507477, -0.011636875569820404, 0.3143470585346222, 0.2745063006877899, -0.07496488839387894, -0.28947713971138, -0.23045344650745392, 0.15698853135108948, -0.16822317242622375, 0.10512059181928635, 0.41799482703208923, 0.10870981961488724, 0.25765079259872437, -0.01165858656167984, 0.13554051518440247, 0.09528232365846634, -0.11420394480228424, 0.17117588222026825, -0.3422292172908783, 0.1466587632894516, 0.285668283700943, -0.0005157552659511566, -0.27113524079322815, -0.24741829931735992, -0.13157564401626587, -0.10560856014490128, 0.10403430461883545, 0.10522326827049255, 0.2524413764476776, 0.07727068662643433, 0.15990987420082092, 0.0024248771369457245, -0.11607666313648224, -0.14524120092391968, 0.2762696444988251, 0.044974785298109055, -0.19614958763122559, -0.2027566283941269, -0.3262171149253845, 0.12032689154148102, 0.348385751247406, -0.19953972101211548, 0.12154570966959, -0.0880671814084053, 0.2964405119419098, 0.14062179625034332, -0.03281387686729431, 0.27014654874801636, -0.028177041560411453, 0.11905861645936966, -0.2390899509191513, -0.2776740789413452, -0.047040849924087524, -0.33748728036880493, 0.28476250171661377, 0.5173730254173279, 0.4786027669906616, -0.15772011876106262, 0.8596716523170471, -0.08790818601846695, -0.40889856219291687, 0.4252449572086334, -0.12490995973348618, 0.18478557467460632, -0.11037790775299072, -0.40131905674934387, -0.09691667556762695, -0.26688870787620544, 0.23963306844234467, 0.09140840172767639, -0.15379711985588074, -0.20682743191719055, 0.16393643617630005, 0.15237662196159363, -0.02642977237701416, -0.26131531596183777, 0.4399176836013794, -0.8675210475921631, -0.10504019260406494, -0.05782041326165199, 0.0795484185218811, -0.38120055198669434, 0.001120351254940033, 0.06862065196037292, 0.28585222363471985, 0.11661530286073685, 0.15811656415462494, -0.3939725160598755, 0.10594005882740021, -0.18829314410686493, 0.4757518768310547, 0.019163966178894043, 0.5118652582168579, 0.08791230618953705, -0.17265906929969788, -0.06965827941894531, 0.026816770434379578, 0.2896450161933899, -0.2780471742153168, -0.0805944949388504, 0.16413240134716034, -0.03904027119278908, -0.5347520709037781, 0.006622612476348877, -0.04393179714679718, 0.10038186609745026, -0.04514284431934357, 0.11031393706798553, -0.23950567841529846, -0.33788812160491943, 0.029497403651475906, -0.0553753599524498, -0.032687894999980927, 0.23068225383758545, -0.1315285861492157, -0.20918096601963043, 0.04844169318675995, -0.0030785351991653442, 0.11653221398591995, -0.10950581729412079, -0.10238450765609741, -0.25057896971702576, -0.41389548778533936, -0.04362419247627258, 0.3718596398830414, -0.22878921031951904, 0.2082284688949585, -0.058698803186416626, -0.05372244492173195, -0.24063481390476227, 0.4764309525489807, 0.28513333201408386, 0.37947675585746765, -0.3600587844848633, -0.30472174286842346, 0.03565721586346626, 0.31386977434158325, 0.4174481928348541, 0.18769782781600952, -0.14442048966884613, 0.3934049606323242, 0.1332855522632599, -0.21150696277618408, -0.5201491713523865, 0.18429122865200043, 0.33284759521484375, -0.013912394642829895, -0.49283668398857117, -0.6445834040641785, 0.768905758857727, 0.22181254625320435, 0.054425060749053955, 0.3121080994606018, 0.33775022625923157, -0.33398279547691345, 0.679401695728302, 0.2577802836894989, 1.0996050834655762, -0.03466801717877388, 0.32743382453918457, -0.031878288835287094, -0.12322332710027695, 0.29905980825424194, -0.05143638700246811, 0.03741910681128502, -0.36267951130867004, -0.1920158714056015, -0.23107227683067322, -0.18701696395874023, -0.006635352969169617, 0.11296017467975616, 0.18871641159057617, 0.15788371860980988, -0.20652645826339722, 0.08652059733867645, 0.18635784089565277, 0.1434389054775238, -0.14305272698402405, -0.3133465051651001, -0.07257393002510071, 0.0737975612282753, -0.20184682309627533, -0.024766480550169945, 0.06961360573768616, -0.2688635289669037, -0.1569671332836151, -0.09392480552196503, -0.1439604014158249, 0.04029948264360428, -0.46788546442985535, 0.17005057632923126, 0.00672544538974762, -0.4388860762119293, 0.37731534242630005, 0.2177988588809967, 0.32102909684181213, -0.08406300842761993, -0.106215700507164, 0.054959218949079514, 0.3936532437801361, -0.08699947595596313, -0.06475374102592468, -0.18847091495990753, 0.43130096793174744, 0.18979467451572418, 0.0387759655714035, -0.12237471342086792, 0.013479553163051605, -0.2651401162147522, -0.3395312428474426, -0.1420838087797165, 0.550843358039856, -0.44965532422065735, -0.3465372323989868, 0.030271774157881737, 0.000845685601234436, -0.01141558587551117, -0.034391772001981735, 0.08813555538654327, -0.014705438166856766, 0.09364785999059677, 0.260914146900177, -0.30397406220436096, 0.07500201463699341, 0.38154780864715576, 0.14409522712230682, 0.3418428897857666, 0.33463817834854126, 0.1366577446460724, -0.08587219566106796, -0.03548090532422066, 0.3121764659881592, 0.9939118027687073, -0.10617178678512573, 0.019671354442834854, -0.13178704679012299, -0.21800898015499115, 0.08514881879091263, -0.20701462030410767, 0.150761216878891, 0.049124423414468765, -0.18729117512702942, -0.17220653593540192, -0.3375902771949768, 0.25502002239227295, -0.3870530128479004, 0.2985136806964874, -0.07947413623332977, 0.2165444791316986, -0.3035983145236969, 0.031146632507443428, -0.13466741144657135, 0.034231677651405334, 0.1797301322221756, 0.07051174342632294, -0.029118213802576065, 0.2059078961610794, 0.05743000656366348, 0.06964877992868423, -0.03490520268678665, 0.06241636350750923, -0.18847881257534027, -0.04580888897180557, -0.29141563177108765, 0.22479459643363953, 0.0019301455467939377, 0.006970811635255814, 0.2205761969089508, -0.17550913989543915, -0.20887117087841034, -0.10034598410129547, 0.0976727157831192, 0.09968419373035431, 0.0047064777463674545, 0.3070245385169983, 0.3442029356956482, 0.0926196426153183, -0.14280062913894653, 0.09784683585166931, 0.3370380997657776, 0.42642155289649963, -0.08940374106168747, 0.043805938214063644, -0.20299366116523743, -0.2533399760723114, -0.18702642619609833, 0.30832791328430176, 0.5461506843566895, 0.03025076538324356, 0.18831247091293335, 0.019639557227492332, 0.023720085620880127, -0.22994568943977356, 0.24870458245277405, 0.5658828020095825, -0.0058657266199588776, 0.05096249282360077, -0.06751219928264618, -0.10535290092229843, -0.2270376980304718, -0.03212122991681099, -0.0863209217786789, -0.32708749175071716, -0.013116151094436646, 0.1574244648218155, 0.01619451493024826, 0.5776230096817017, -0.13464440405368805, -0.3196706175804138, 0.006696857511997223, -0.2881910502910614, -0.02203182317316532, 0.5073307156562805, 0.09647180140018463, 0.07377878576517105, 0.3497418761253357, 0.16504138708114624, 0.3461246192455292, 0.22993215918540955, 0.43685534596443176, 0.7877066135406494, 0.46160921454429626, 0.14016872644424438, 0.43827080726623535, -0.5139474272727966, -0.19590187072753906, 0.4214670658111572, 0.2564809024333954, 0.20172813534736633, 0.07505038380622864, 0.6161076426506042, -0.060015302151441574, -0.48128175735473633, 0.1460748016834259, 0.12530040740966797, 0.0005471678450703621, -0.46329185366630554, -0.3377987742424011, -0.02959631383419037, -0.4231979548931122, -0.2846583127975464, -0.30856436491012573, -0.1266380250453949, -0.02419302985072136, 0.07431946694850922, 0.07718056440353394, -0.13943621516227722, -0.07294172048568726, 0.07467229664325714, -0.08491922169923782, -0.11246082931756973, 0.11328975111246109, -0.11183253675699234, -0.021453190594911575, 0.10889466106891632, 0.13552409410476685, 0.2491075098514557, 0.09237544238567352, -0.27361786365509033, -0.08086177706718445, 0.3471686542034149, -0.15426984429359436, 0.24593372642993927, -0.15304744243621826, 0.05725980922579765, -0.07288595288991928, 0.34272661805152893, -0.06301052123308182, 0.08211857080459595, -0.01552741602063179, -0.05368681252002716, 0.05727723240852356, -0.06250225007534027, 0.554709792137146, 0.1199890598654747, 0.0866110697388649, -0.12351270765066147, 0.059317540377378464, -0.40339934825897217, -0.10100962221622467, 0.69183748960495, -0.0552564412355423, 0.15585394203662872, 0.08799315243959427, -0.02388634905219078, 0.035696808248758316, 0.35713908076286316, 0.2786395847797394, -0.00120626762509346, -0.3143785297870636, 0.08697730302810669, -0.28241878747940063, 0.019121680408716202, -0.05386752262711525, 0.013389542698860168, 0.047250259667634964, 0.019426077604293823, 0.5246514678001404, -0.03390580043196678, -0.0880303680896759, -0.05128966644406319, 0.17099153995513916, 0.33185240626335144, 0.0924045592546463, -0.2448704093694687, -0.1740092933177948, 0.24480746686458588, -0.07572579383850098, -0.34582439064979553, -0.16140009462833405, 0.3107137978076935, -0.11985008418560028, 0.0009034182876348495, -0.272207111120224, 0.4618014097213745, -0.17199036478996277, 0.30244383215904236, 0.0348050594329834, 0.5514164566993713, -0.24094989895820618, -0.04860914871096611, 0.11555705964565277, -0.08890500664710999, -0.4955529570579529, 0.2672632336616516, -0.16801849007606506, 0.2821677327156067, -0.09521128237247467, -0.16338755190372467, -0.15327772498130798, 0.10780417919158936, -0.04388311877846718, -0.4155343770980835, -0.39304274320602417, 0.5580592155456543, -0.38654497265815735, -0.15107332170009613, 0.18413498997688293, 0.5083804130554199, 0.14094917476177216, 0.27374133467674255, -0.1228884682059288, -0.20942237973213196, 0.5849864482879639, 0.0536794550716877, 0.0076913982629776, -0.011905312538146973, -0.10610619187355042, 0.13650332391262054, 0.1702827364206314, -0.36201298236846924, -0.14436110854148865, 0.143976628780365, -0.2070523351430893, 0.04954887181520462, 0.18111485242843628, 0.22890186309814453, 0.19709697365760803, -0.4207519292831421, 0.4470784068107605, 0.19648577272891998, 0.04160769283771515, -0.10218556970357895, -0.3120924234390259 ]
https://github.com/huggingface/datasets/issues/2162
This looks like an issue with the cc100 dataset itself but not sure Did you try loading cc100 on your machine ?
visualization for cc100 is broken
Hi visualization through dataset viewer for cc100 is broken https://huggingface.co/datasets/viewer/ thanks a lot
22
visualization for cc100 is broken Hi visualization through dataset viewer for cc100 is broken https://huggingface.co/datasets/viewer/ thanks a lot This looks like an issue with the cc100 dataset itself but not sure Did you try loading cc100 on your machine ?
[ -0.5656793117523193, -0.20044399797916412, -0.0850355252623558, 0.12931983172893524, 0.2095070779323578, -0.001330740749835968, 0.16415388882160187, 0.1368134468793869, -0.06592350453138351, 0.42319005727767944, -0.05236532539129257, 0.23769980669021606, 0.1289268434047699, 0.4269976019859314, -0.017610017210245132, -0.24116858839988708, 0.05329019948840141, 0.40604203939437866, -0.39859068393707275, 0.021252408623695374, 0.04341202974319458, 0.052333615720272064, -0.17398031055927277, -0.06936068832874298, -0.18125860393047333, -0.29199668765068054, -0.09574414789676666, 0.14888477325439453, -0.2506377398967743, -0.4322844445705414, 0.06099691241979599, 0.18072253465652466, 0.11141951382160187, 0.36142128705978394, -0.0000948288434301503, 0.05208249390125275, 0.32732993364334106, 0.1721239984035492, -0.17503511905670166, 0.16179236769676208, -0.34361234307289124, -0.08732236921787262, 0.2742394804954529, -0.054834723472595215, -0.17835286259651184, 0.19110769033432007, -0.020406581461429596, -0.030797161161899567, 0.32754528522491455, -0.24726350605487823, 0.4222187399864197, 0.23498648405075073, 0.039890557527542114, -0.3050335645675659, -0.1605333685874939, 0.19317826628684998, -0.11319229006767273, 0.1625884473323822, 0.16078609228134155, -0.015756987035274506, -0.08940830826759338, 0.291095495223999, 0.1937403529882431, -0.006556598469614983, 0.03407854959368706, -0.11066943407058716, -0.036766212433576584, -0.23604479432106018, 0.24742038547992706, 0.04748455807566643, 0.42104122042655945, 0.0793648287653923, 0.14864712953567505, 0.18156060576438904, -0.0695403665304184, -0.6380500197410583, 0.1570042073726654, 0.1009480208158493, 0.09640758484601974, 0.24300512671470642, -0.3762998878955841, -0.06776882708072662, -0.2017345130443573, -0.013839848339557648, -0.2421448826789856, -0.12515145540237427, -0.21394366025924683, 0.006143895909190178, 0.07153499126434326, 0.03467293083667755, -0.07874083518981934, 0.23790693283081055, -0.30313265323638916, -0.09224122762680054, -0.2987855076789856, -0.015961691737174988, 0.13022541999816895, 0.4907621741294861, 0.05839136242866516, 0.11888451874256134, 0.31250032782554626, 0.19560584425926208, 0.21199201047420502, 0.2065151333808899, 0.10312271118164062, 0.0831063985824585, -0.2976171374320984, 0.10052558779716492, 0.47916343808174133, 0.35100704431533813, -0.07939132302999496, -0.2592623829841614, -0.1165815144777298, -0.24941638112068176, -0.11205995827913284, -0.0014788899570703506, 0.06833984702825546, -0.1943027377128601, -0.2914254665374756, 0.0996229499578476, 0.06284058839082718, 0.18320736289024353, 0.09657382220029831, 0.44115543365478516, 0.00866476446390152, 0.13574358820915222, 0.02157418429851532, 0.1259840577840805, -0.15456268191337585, -0.26537224650382996, -0.253561794757843, -0.09377431869506836, -0.2249135971069336, -0.04527870565652847, 0.13925623893737793, -0.35116443037986755, 0.1486140489578247, 0.2843305468559265, 0.24389071762561798, -0.09970525652170181, -0.07865080237388611, 0.023130200803279877, -0.08411793410778046, 0.22237685322761536, 0.09201441705226898, -0.03715302050113678, 0.13593250513076782, -0.06631846725940704, 0.3401286005973816, -0.1389590948820114, -0.10465236008167267, -0.1058119460940361, -0.30979499220848083, 0.31115639209747314, -0.03933274745941162, 0.031880635768175125, -0.13481485843658447, 0.041536133736371994, 0.005444701761007309, -0.006371244788169861, -0.1271550953388214, 0.0690329521894455, -0.048579055815935135, -0.106533482670784, 0.21769849956035614, 0.21769534051418304, -0.5703332424163818, 0.027573317289352417, -0.1413707286119461, -0.1999802142381668, 0.004348225891590118, 0.18735799193382263, -0.18150284886360168, -0.08763391524553299, -0.1811661720275879, -0.09831594675779343, -0.1626346856355667, -0.28282684087753296, -0.38762807846069336, 0.18664546310901642, -0.0017750561237335205, -0.07989487797021866, -0.11609283089637756, -0.23759260773658752, 0.2893234193325043, -0.015316436067223549, -0.3430396616458893, -0.21109351515769958, 0.017612677067518234, -0.012784585356712341, -0.24090833961963654, -0.21671707928180695, 0.0838879868388176, -0.0764976441860199, 0.14790210127830505, 0.11055422574281693, 0.17253507673740387, -0.29357510805130005, 0.2661367356777191, -0.1485099345445633, 0.1161038726568222, 0.09127473831176758, 0.270418643951416, -0.1600845605134964, -0.11287707835435867, -0.04161074012517929, -0.06741032004356384, 0.02047792822122574, 0.06061355769634247, 0.2716895043849945, 0.03963228315114975, -0.008867219090461731, -0.2549172639846802, -0.03351042419672012, -0.3341200351715088, -0.16765038669109344, 0.38037222623825073, 0.0921688824892044, -0.2315763384103775, 0.0005185827612876892, -0.0421157032251358, 0.17583481967449188, 0.012630634009838104, 0.048375386744737625, 0.17617392539978027, 0.34336498379707336, -0.2752549350261688, -0.06377173960208893, 0.16732420027256012, -0.07196004688739777, 0.24556729197502136, -0.10132801532745361, -0.16431593894958496, 0.4407144784927368, -0.1486031711101532, 0.4009416699409485, 0.10418887436389923, -0.16290909051895142, 0.36133813858032227, -0.6228359937667847, 0.11093464493751526, -0.08702174574136734, 0.07603767514228821, 0.15922804176807404, -0.08455793559551239, -0.09613290429115295, 0.07731444388628006, -0.07383325695991516, -0.00456574559211731, 0.19051170349121094, 0.22807884216308594, 0.0030774474143981934, -0.019435860216617584, -0.24216261506080627, 0.1882215440273285, 0.21593372523784637, 0.3058047592639923, -0.18307405710220337, -0.36810415983200073, 0.1584586352109909, 0.14306677877902985, 0.1536124050617218, 0.010932110249996185, -0.07282695174217224, -0.34986063838005066, 0.02133455127477646, 0.3850712180137634, 0.008043475449085236, -0.1321379840373993, 0.1849578619003296, -0.07704414427280426, 0.08161331713199615, -0.1488431990146637, -0.027676492929458618, 0.029779504984617233, -0.05754539370536804, 0.31873324513435364, 0.04017069935798645, 0.017340190708637238, -0.15413473546504974, -0.5369297862052917, 0.039591580629348755, 0.005850113928318024, 0.20605650544166565, -0.2513284981250763, -0.08868163824081421, -0.32336753606796265, -0.11304154247045517, 0.23107533156871796, 0.03949473798274994, 0.09228435158729553, -0.23775705695152283, 0.013997981324791908, 0.19692105054855347, -0.1181679368019104, 0.2624605596065521, 0.001200065016746521, 0.2136726677417755, 0.028176777064800262, 0.5410405993461609, -0.2618633210659027, -0.1442384421825409, -0.18406610190868378, 0.2897135615348816, 0.08712798357009888, -0.07906119525432587, 0.18421898782253265, -0.08101516962051392, 0.2908610701560974, -0.17307448387145996, -0.3851378262042999, 0.2910664677619934, -0.128341943025589, 0.1904560923576355, -0.002675030380487442, 0.266526460647583, -0.38708630204200745, -0.020362820476293564, 0.18809041380882263, -0.0413360670208931, -0.06068400293588638, -0.0031812675297260284, -0.015959229320287704, -0.30201324820518494, -0.22410568594932556, 0.07514261454343796, -0.17356820404529572, -0.3436996340751648, 0.03845076262950897, 0.1464443802833557, 0.06400924921035767, 0.17470818758010864, 0.22892580926418304, -0.09797658026218414, 0.14812752604484558, -0.05952771008014679, -0.3003806471824646, -0.5974053144454956, 0.1632576286792755, -0.5660867691040039, -0.46307751536369324, 0.14092028141021729, 0.12434259057044983, 0.40929514169692993, 0.04191143438220024, -0.37499499320983887, 0.1733652651309967, -0.08018886297941208, -0.03436056524515152, 0.17117220163345337, -0.1160888820886612, 0.10288223624229431, 0.1523435115814209, -0.22729255259037018, -0.1422840654850006, -0.27349281311035156, -0.09797784686088562, -0.10626426339149475, 0.11594053357839584, -0.2867875397205353, 0.08071896433830261, 0.10476882755756378, 0.44194814562797546, 0.11231908202171326, -0.07413192093372345, 0.42392697930336, -0.08622364699840546, 0.5601349472999573, -0.16112825274467468, -0.3377252221107483, 0.1469469666481018, -0.15075647830963135, -0.09886263310909271, 0.21959060430526733, 0.059134017676115036, -0.35339024662971497, -0.3039925694465637, 0.03548658639192581, -0.2814314663410187, -0.22383686900138855, -0.353810578584671, 0.08351690322160721, 0.25177380442619324, 0.06457719206809998, 0.28208833932876587, 0.10811406373977661, -0.16223877668380737, 0.12948814034461975, 0.12009164690971375, 0.03532777354121208, -0.14148777723312378, -0.4134143590927124, -0.20497390627861023, -0.37346866726875305, 0.1895396113395691, -0.10998252779245377, -0.050212323665618896, -0.19965285062789917, -0.08420445770025253, 0.05140959843993187, -0.1056896448135376, 0.34230971336364746, -0.06834978610277176, -0.0004603858105838299, 0.0954742431640625, -0.17320401966571808, 0.06567405164241791, 0.02951248735189438, -0.10480848699808121, 0.14322543144226074, -0.15826129913330078, -0.10509631037712097, 0.003760293126106262, 0.07841883599758148, 0.18479619920253754, 0.009939547628164291, -0.16996270418167114, -0.020420504733920097, -0.09388493001461029, 0.09788969904184341, -0.2449437379837036, -0.2076079547405243, -0.22072921693325043, -0.01009531319141388, -0.22726503014564514, -0.26618731021881104, -0.138092041015625, -0.32448211312294006, 0.018524151295423508, 0.49389541149139404, 0.3863053023815155, -0.0652046799659729, 0.08601202070713043, 0.29245954751968384, 0.33743759989738464, 0.33037516474723816, 0.3128894865512848, 0.13700038194656372, -0.20719227194786072, 0.29080021381378174, -0.13133153319358826, 0.09286502003669739, 0.2617785930633545, 0.04302690178155899, -0.015297278761863708, 0.2100190669298172, 0.22257839143276215, -0.3074875473976135, 0.19807136058807373, 0.25295940041542053, 0.1679593324661255, -0.48257923126220703, 0.058045029640197754, 0.36932918429374695, 0.01417117565870285, -0.05972442030906677, 0.1262942999601364, 0.21007169783115387, -0.08132216334342957, -0.13512839376926422, 0.12558794021606445, 0.7209935188293457, 0.00010499358177185059, -0.2122114598751068, 0.11303573846817017, -0.10086751729249954, 0.3043751120567322, 0.04243910312652588, 0.01946282759308815, -0.2817111015319824, -0.26671087741851807, -0.07361006736755371, 0.03702113777399063, 0.22094964981079102, -0.06855588406324387, -0.25385093688964844, 0.05544152855873108, -0.18386594951152802, 0.3419276177883148, -0.045650873333215714, -0.049699265509843826, 0.057432621717453, -0.06690792739391327, 0.05411370471119881, 0.36302056908607483, -0.07970830798149109, 0.09391140937805176, -0.2961656451225281, 0.013389281928539276, 0.0031089112162590027, 0.06705617904663086, -0.24290522933006287, 0.09201981127262115, -0.22764918208122253, 0.16868218779563904, -0.19230204820632935, -0.5009311437606812, 0.16038280725479126, 0.06378214806318283, 0.09756328165531158, 0.3254847824573517, -0.3234696686267853, 0.4022994637489319, -0.04578156769275665, -0.1814330518245697, -0.1833239495754242, 0.30551818013191223, 0.010198051109910011, -0.15017303824424744, -0.17796030640602112, 0.17418578267097473, 0.1115858405828476, -0.019432075321674347, 0.04753084480762482, 0.11790883541107178, 0.19312816858291626, -0.022288061678409576, 0.19266755878925323, 0.007136430591344833, 0.003313995897769928, -0.3757094144821167, 0.27850833535194397, -0.05118073523044586, 0.06664587557315826, -0.03609975427389145, 0.4344741404056549, 0.06692229211330414, -0.11596786975860596, 0.06375660002231598, -0.13678637146949768, -0.1317862570285797, 0.1777620017528534, 0.260183721780777, -0.2765628695487976, -0.3988588750362396, -0.06568467617034912, 0.1571889966726303, -0.28176429867744446, 0.07230209559202194, 0.08054792135953903, 0.00774797797203064, 0.014063607901334763, 0.35135579109191895, 0.13929542899131775, -0.16858284175395966, -0.07230914384126663, -0.2136256843805313, -0.4982855021953583, -0.07734666764736176, -0.2293805181980133, 0.2354176789522171, 0.1222248375415802, 0.2731162905693054, 0.06964439153671265, 0.021916238591074944, -0.4724562466144562, -0.043790269643068314, -0.1993093192577362, -0.09296921640634537, 0.17796175181865692, -0.027719754725694656, 0.012217532843351364, -0.1333378106355667, 0.2816726565361023, 0.24275757372379303, -0.17529615759849548, -0.38539162278175354, -0.015346910804510117, 0.02148313820362091, 0.09503702819347382, -0.39266204833984375, 0.17593428492546082, 0.2973404824733734, -0.033329255878925323, -0.05784672498703003, 0.07390815019607544, -0.16475769877433777, 0.0900411456823349, 0.01863143965601921, -0.23373565077781677, -0.047462914139032364, 0.023973427712917328, -0.17954838275909424, 0.2719550132751465, 0.2520774006843567, -0.0699140876531601, -0.09980370104312897, 0.12868931889533997, -0.12205317616462708, 0.11650422215461731, 0.16644582152366638, -0.036591414362192154, 0.19587786495685577, 0.40979060530662537, -0.2700434625148773, 0.26723650097846985, 0.010401546955108643, 0.3953762948513031, 0.012308957055211067, 0.03975656256079674, 0.022672228515148163, 0.18922440707683563, 0.4355754852294922, -0.2832295894622803, 0.13622960448265076, 0.0024189092218875885, 0.006533239036798477, 0.2610805928707123, -0.10329563915729523, 0.270855575799942, -0.12546448409557343, -0.061753276735544205, 0.08123220503330231, 0.35032692551612854, -0.1907883733510971, 0.3412298858165741, 0.40167567133903503, -0.052833326160907745, 0.1506221741437912, 0.06422566622495651, 0.23557640612125397, -0.018195807933807373, 0.43459126353263855, -0.1618884801864624, -0.017899902537465096, 0.14880892634391785, 0.1640520989894867, 0.22024744749069214, -0.17205503582954407, 0.05623830854892731, 0.1335780918598175, -0.14760811626911163, -0.011550191789865494, 0.16212372481822968, 0.4196670353412628, 0.02232525125145912, -0.33061787486076355, -0.31007489562034607, 0.16649597883224487, -0.17593435943126678, 0.11144737899303436, -0.48765823245048523, -0.19298748672008514, -0.016059592366218567, 0.17834579944610596, 0.003438713261857629, 0.013933167792856693, 0.3328842520713806, -0.034872088581323624, -0.048720501363277435, -0.5029995441436768, 0.08374346792697906, 0.21778887510299683, 0.2639811038970947, 0.0242694690823555, 0.20617389678955078, 0.22655847668647766, -0.00029950961470603943, 0.15322427451610565, 0.4285946488380432, 0.3149452209472656, 0.067711740732193, 0.035915061831474304, -0.05326688289642334, 0.10896022617816925, -0.20519042015075684, 0.027342483401298523, -0.11499263346195221, 0.21296414732933044, 0.09507136046886444, 0.18850645422935486, 0.2647567391395569, -0.28276240825653076, 0.0825788676738739, -0.021689802408218384, 0.21637952327728271, -0.10220835357904434, -0.38749513030052185, -0.29823973774909973, -0.09773316979408264, -0.08610799163579941, -0.38908523321151733, -0.3332911729812622, 0.13233818113803864, 0.20152924954891205, -0.298650860786438, 0.07817915081977844, -0.35215532779693604, 0.16486763954162598, 0.06405092775821686, 0.40232139825820923, 0.24316850304603577, 0.20078936219215393, -0.12501810491085052, -0.4483351707458496, -0.35040944814682007, 0.15265142917633057, 0.1033010482788086, -0.03988577052950859, -0.3057732880115509, 0.051186174154281616, 0.09183242917060852, 0.12358519434928894, 0.49529528617858887, 0.00017907842993736267, 0.19445155560970306, -0.05941947177052498, -0.27529221773147583, 0.17997638881206512, 0.009461835026741028, 0.019516268745064735, -0.12728048861026764, -0.0661201924085617, 0.25827938318252563, -0.002193104475736618, 0.22108635306358337, -0.14908039569854736, 0.20312917232513428, -0.4349629282951355, -0.2029472291469574, 0.32085150480270386, 0.1792406439781189, 0.3766888976097107, -0.11007838696241379, -0.0005273222923278809, -0.08581186830997467, -0.22894549369812012, -0.09352031350135803, 0.24924404919147491, 0.2223966121673584, 0.3229876160621643, 0.13187900185585022, -0.12634339928627014, -0.029087044298648834, 0.04932212457060814, 0.2770048677921295, 0.34051308035850525, -0.2955279052257538, 0.10763537138700485, 0.07874235510826111, -0.22788311541080475, 0.25947296619415283, 0.10596471279859543, -0.040970005095005035, -0.075564906001091, -0.19219693541526794, -0.36571183800697327, 0.18924251198768616, -0.2603742182254791, -0.3046207129955292, -0.08421389758586884, -0.07460451126098633, 0.3660804033279419, -0.08510839939117432, -0.2530287206172943, 0.06960198283195496, 0.07327018678188324, -0.11211657524108887, -0.0957399308681488, 0.3657014071941376, -0.08921806514263153, -0.06521379947662354, 0.12434747815132141, 0.5360302329063416, 0.3529990315437317, -0.18800225853919983, 0.04736483097076416, -0.09686355292797089 ]
https://github.com/huggingface/datasets/issues/2162
Hi loading works fine, but the viewer only is broken thanks On Wed, Apr 7, 2021 at 12:17 PM Quentin Lhoest ***@***.***> wrote: > This looks like an issue with the cc100 dataset itself but not sure > Did you try loading cc100 on your machine ? > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2162#issuecomment-814793809>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMRUO33JSOYGT6RETWLTHQWNLANCNFSM42IUOR6Q> > . >
visualization for cc100 is broken
Hi visualization through dataset viewer for cc100 is broken https://huggingface.co/datasets/viewer/ thanks a lot
80
visualization for cc100 is broken Hi visualization through dataset viewer for cc100 is broken https://huggingface.co/datasets/viewer/ thanks a lot Hi loading works fine, but the viewer only is broken thanks On Wed, Apr 7, 2021 at 12:17 PM Quentin Lhoest ***@***.***> wrote: > This looks like an issue with the cc100 dataset itself but not sure > Did you try loading cc100 on your machine ? > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2162#issuecomment-814793809>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMRUO33JSOYGT6RETWLTHQWNLANCNFSM42IUOR6Q> > . >
[ -0.4892333745956421, -0.257188081741333, -0.01544002816081047, 0.16780707240104675, 0.22792302072048187, 0.036741748452186584, 0.14369556307792664, 0.0804586112499237, -0.03847810626029968, 0.318007230758667, -0.14256533980369568, 0.24562811851501465, 0.1419418752193451, 0.4538699686527252, 0.09490726888179779, -0.3206592798233032, 0.13591282069683075, 0.3763967454433441, -0.44169503450393677, 0.08689261972904205, 0.0558289960026741, 0.10354508459568024, -0.10633206367492676, -0.10491999983787537, -0.16526027023792267, -0.24349726736545563, -0.19587847590446472, 0.2551199495792389, -0.21488706767559052, -0.49344494938850403, 0.0909603089094162, 0.2749294638633728, 0.10347327589988708, 0.39867401123046875, -0.00010222050332231447, 0.04995548725128174, 0.39712104201316833, 0.17688629031181335, -0.2313634604215622, -0.015535734593868256, -0.33410200476646423, -0.08573402464389801, 0.30564436316490173, 0.0706031322479248, -0.0899704098701477, 0.18968114256858826, -0.046114131808280945, -0.07809058576822281, 0.4632001221179962, -0.32634544372558594, 0.3314780592918396, 0.18981926143169403, 0.21639041602611542, -0.23562443256378174, -0.23179364204406738, 0.3152168095111847, -0.11301492154598236, 0.32447636127471924, 0.13396649062633514, 0.018840990960597992, -0.1388455331325531, 0.2810083329677582, 0.14350032806396484, -0.058177649974823, 0.23583637177944183, -0.14434026181697845, -0.13057257235050201, -0.20755451917648315, 0.1319209486246109, 0.136786550283432, 0.449175626039505, -0.025794755667448044, 0.0039736926555633545, 0.15259407460689545, -0.13340112566947937, -0.7048448920249939, 0.25100189447402954, 0.07593683153390884, 0.1342732161283493, 0.2552892863750458, -0.4646976590156555, -0.09145870059728622, -0.18061093986034393, -0.00531449168920517, -0.2083682417869568, -0.27318817377090454, -0.27043986320495605, 0.04974623769521713, 0.08473740518093109, 0.03784418851137161, -0.13175365328788757, 0.28292158246040344, -0.30702757835388184, -0.030471786856651306, -0.33267322182655334, -0.02333790808916092, 0.05956519395112991, 0.6086739897727966, 0.16614840924739838, 0.14318159222602844, 0.2620120048522949, 0.17863698303699493, 0.162532776594162, 0.16373731195926666, 0.1870715618133545, 0.1150900200009346, -0.2575579583644867, 0.004104036837816238, 0.3975897431373596, 0.3946674168109894, -0.024919956922531128, -0.23778510093688965, -0.10149206221103668, -0.18847358226776123, -0.27395302057266235, -0.0525202751159668, 0.05030122399330139, -0.2563166320323944, -0.28351688385009766, 0.09522558003664017, -0.02985405921936035, 0.21551057696342468, 0.10240717232227325, 0.46679797768592834, -0.022232089191675186, 0.16679905354976654, -0.05651134252548218, 0.08948656916618347, -0.11223328113555908, -0.2835862636566162, -0.1714644730091095, -0.10277122259140015, -0.26459935307502747, 0.09699081629514694, 0.10568012297153473, -0.5895857810974121, 0.10902033746242523, 0.3119138181209564, 0.28937017917633057, -0.15087661147117615, -0.25203919410705566, 0.03491216525435448, -0.15314851701259613, 0.2180146425962448, -0.0182139053940773, -0.013319898396730423, 0.13822072744369507, -0.05765961483120918, 0.2959640622138977, -0.12414532154798508, -0.179052472114563, -0.13239043951034546, -0.2980607748031616, 0.1988736093044281, -0.2029176503419876, 0.030147694051265717, -0.21072356402873993, 0.12860411405563354, -0.08018000423908234, -0.06552722305059433, -0.15454337000846863, 0.18276482820510864, -0.09192910045385361, -0.06996860355138779, 0.2726302444934845, 0.3414157032966614, -0.6863188147544861, 0.011349119246006012, -0.21062135696411133, -0.21426407992839813, -0.13147272169589996, 0.2222074568271637, -0.15358783304691315, -0.21641065180301666, -0.18732169270515442, -0.10396295040845871, -0.37951183319091797, -0.33862394094467163, -0.39931708574295044, 0.2244599461555481, 0.014725729823112488, 0.10207275301218033, -0.16245684027671814, -0.34657737612724304, 0.21973760426044464, -0.10736125707626343, -0.4080572724342346, -0.3395632207393646, 0.04833068698644638, -0.09069743752479553, -0.22022885084152222, -0.22078382968902588, -0.024832719936966896, -0.15676671266555786, 0.03270509093999863, 0.05242156237363815, 0.23983122408390045, -0.2631928622722626, 0.25129762291908264, -0.10580888390541077, 0.0842958465218544, 0.12037280201911926, 0.2442515641450882, -0.03528999909758568, -0.038981132209300995, -0.0316406711935997, -0.16325944662094116, 0.09352798759937286, 0.11004549264907837, 0.16500751674175262, 0.07949066162109375, 0.017772279679775238, -0.28715354204177856, 0.07847391813993454, -0.2831760346889496, -0.2864534556865692, 0.2292664647102356, -0.00785059854388237, -0.22048673033714294, -0.056829795241355896, -0.12918013334274292, 0.28294429183006287, -0.0350259393453598, 0.04034683108329773, 0.08128862082958221, 0.36085790395736694, -0.21177098155021667, 0.06639573723077774, 0.11696171760559082, 0.015976503491401672, 0.23513083159923553, -0.14773546159267426, -0.1826762855052948, 0.48655691742897034, -0.13533154129981995, 0.4932321608066559, 0.06395898014307022, -0.18066543340682983, 0.44457027316093445, -0.686383843421936, 0.10425879806280136, -0.1436600238084793, 0.0319807231426239, 0.11435538530349731, -0.19964703917503357, -0.09510071575641632, -0.025860793888568878, -0.06026602163910866, -0.004764631390571594, 0.30026328563690186, 0.17524906992912292, 0.02087489515542984, -0.11294329166412354, -0.2815243601799011, 0.3239426016807556, 0.10328266024589539, 0.37466752529144287, -0.11043375730514526, -0.3645002245903015, 0.09445036202669144, 0.058941800147295, 0.06639303267002106, -0.15056100487709045, -0.021241599693894386, -0.42463913559913635, 0.058792755007743835, 0.4740258753299713, 0.020239785313606262, -0.13440635800361633, 0.10915882140398026, -0.17847788333892822, 0.16406358778476715, -0.1147889718413353, -0.005476783961057663, 0.056266121566295624, 0.015374002046883106, 0.3779700994491577, -0.059474386274814606, -0.009043917059898376, -0.041255924850702286, -0.48896461725234985, -0.006591036915779114, -0.03604058548808098, 0.18843577802181244, -0.3148462772369385, -0.05446368083357811, -0.2563505172729492, -0.1135907769203186, 0.16149958968162537, -0.06644727289676666, -0.029405929148197174, -0.22484596073627472, -0.10753914713859558, 0.24433591961860657, -0.08825139701366425, 0.20959196984767914, 0.037377700209617615, 0.2259051501750946, -0.07693669945001602, 0.5092434883117676, -0.38308680057525635, -0.08804897218942642, -0.18970376253128052, 0.2072615623474121, 0.15183597803115845, -0.1588681936264038, 0.13161401450634003, -0.054111696779727936, 0.22304031252861023, -0.13549238443374634, -0.42292681336402893, 0.35130345821380615, -0.27893269062042236, 0.2825937271118164, 0.01803223043680191, 0.1744452565908432, -0.5256007313728333, 0.014982655644416809, 0.20190560817718506, -0.0165838822722435, -0.025955047458410263, -0.0310119166970253, 0.0307590551674366, -0.21493715047836304, -0.17705568671226501, 0.13573157787322998, -0.09729538857936859, -0.28722065687179565, 0.24487335979938507, 0.11409705132246017, 0.06956076622009277, 0.29953092336654663, 0.19814185798168182, -0.005370553582906723, 0.08947322517633438, -0.1570621132850647, -0.2617684602737427, -0.6501930356025696, 0.1145758405327797, -0.5803601145744324, -0.45228394865989685, 0.1640462726354599, 0.18337610363960266, 0.40956568717956543, 0.02230897918343544, -0.4418850839138031, 0.20043274760246277, -0.04923874884843826, -0.07743977010250092, 0.16949421167373657, -0.23716706037521362, -0.05207378417253494, 0.12745319306850433, -0.1467648297548294, -0.12210109829902649, -0.2460593283176422, -0.2049298733472824, -0.18489079177379608, 0.11141163110733032, -0.20839154720306396, 0.13523784279823303, 0.18872377276420593, 0.46922609210014343, 0.31779101490974426, 0.017901021987199783, 0.3638767898082733, -0.025651508942246437, 0.6060580015182495, -0.09403848648071289, -0.3954618573188782, 0.1610117107629776, -0.26352667808532715, -0.11060881614685059, 0.22454506158828735, 0.16382326185703278, -0.2813156247138977, -0.332994282245636, -0.021393898874521255, -0.1901983618736267, -0.2044192999601364, -0.4022081792354584, -0.09520691633224487, 0.2365482598543167, 0.09455564618110657, 0.30120158195495605, 0.18729321658611298, -0.23817779123783112, 0.12189159542322159, 0.22283843159675598, 0.13787564635276794, -0.056340157985687256, -0.3333059549331665, -0.15502503514289856, -0.4598309397697449, 0.1912708580493927, -0.11920562386512756, -0.02459745854139328, -0.16214780509471893, 0.08971855789422989, 0.04313494637608528, -0.1166873574256897, 0.43235495686531067, 0.08344202488660812, -0.06579665094614029, 0.020660363137722015, -0.27935361862182617, 0.027451030910015106, 0.13447725772857666, 0.003659948706626892, 0.19154193997383118, -0.17581993341445923, 0.007738035172224045, 0.03325870633125305, -0.022678351029753685, 0.244191974401474, 0.10924264788627625, -0.1373887062072754, -0.12335623800754547, -0.0592082180082798, 0.08763690292835236, -0.2600354850292206, -0.2787795066833496, -0.18682436645030975, -0.00904867798089981, -0.27682721614837646, -0.24536548554897308, -0.030976874753832817, -0.27059561014175415, 0.13441051542758942, 0.40639662742614746, 0.37717917561531067, -0.056455232203006744, 0.1148967370390892, 0.4774947464466095, 0.324374794960022, 0.35286954045295715, 0.3981163203716278, 0.17902949452400208, -0.2628016769886017, 0.19749239087104797, -0.01775519549846649, 0.14508597552776337, 0.2858125865459442, -0.032528504729270935, -0.06537708640098572, 0.3229689598083496, 0.15607137978076935, -0.40143877267837524, 0.021819356828927994, 0.28145790100097656, 0.21070989966392517, -0.5869055986404419, -0.03201120346784592, 0.4865456223487854, 0.04252251237630844, 0.024437084794044495, 0.14292292296886444, 0.4273277521133423, -0.0154761653393507, -0.17933043837547302, 0.2195117175579071, 0.7822973132133484, -0.08522067964076996, -0.2441665530204773, 0.16090719401836395, -0.07244899868965149, 0.5282042622566223, 0.09206584841012955, -0.00520157627761364, -0.23924435675144196, -0.2635156512260437, -0.10815168172121048, 0.019267290830612183, 0.3487836718559265, -0.034712277352809906, -0.1978699266910553, 0.0767209604382515, -0.11546537280082703, 0.363323837518692, 0.027488145977258682, -0.02095792442560196, -0.03176230564713478, -0.12437184154987335, 0.05240659415721893, 0.2741873264312744, -0.0710231363773346, 0.1198071539402008, -0.32075321674346924, 0.01899684965610504, -0.039503686130046844, 0.07270818203687668, -0.41341084241867065, 0.06681698560714722, -0.21398285031318665, 0.09724951535463333, -0.15454401075839996, -0.5218374729156494, 0.336089551448822, 0.12673215568065643, 0.05281528830528259, 0.30627310276031494, -0.40491554141044617, 0.36054176092147827, -0.1570577323436737, -0.20652693510055542, -0.11925842612981796, 0.3092532753944397, 0.0769667848944664, -0.11473506689071655, -0.11591354757547379, 0.1432216465473175, 0.07446770370006561, 0.052813172340393066, -0.004548594355583191, 0.13906818628311157, 0.12044188380241394, -0.019872859120368958, 0.19864434003829956, -0.0818977877497673, 0.04480047523975372, -0.3537905812263489, 0.182572141289711, -0.023615911602973938, 0.09822408109903336, -0.04612680897116661, 0.3708561062812805, 0.04408466815948486, -0.10256275534629822, 0.0899796187877655, -0.22720925509929657, -0.23614501953125, 0.25920310616493225, 0.3711193799972534, -0.2947305738925934, -0.2603665888309479, -0.03732568025588989, 0.16205979883670807, -0.4218551516532898, 0.07103994488716125, 0.08793199062347412, 0.1964738667011261, -0.04136396571993828, 0.3043953776359558, 0.1934485137462616, -0.21461912989616394, 0.047755107283592224, -0.24648267030715942, -0.5051091313362122, 0.009553026407957077, -0.2503125071525574, 0.2647610902786255, 0.2067701816558838, 0.3871721625328064, 0.055886998772621155, 0.1240466982126236, -0.3818436861038208, -0.01574878767132759, -0.10784488916397095, -0.16502803564071655, 0.2736261487007141, 0.06803932785987854, 0.09080395847558975, -0.1712992787361145, 0.19918455183506012, 0.3404521644115448, -0.1769588440656662, -0.2423434853553772, -0.08687646687030792, 0.06640846282243729, 0.08107490837574005, -0.44293320178985596, 0.18422868847846985, 0.2947711944580078, 0.016844671219587326, -0.10070911049842834, 0.11716100573539734, -0.05225967988371849, 0.14383873343467712, -0.033377282321453094, -0.2583412826061249, -0.03542770445346832, -0.09010069817304611, -0.1844911128282547, 0.38270410895347595, 0.30778467655181885, -0.12130602449178696, -0.0769074559211731, 0.08126755058765411, -0.11508487164974213, 0.08315348625183105, 0.20454806089401245, -0.0781325101852417, 0.10853329300880432, 0.5183011889457703, -0.2559981942176819, 0.2800973355770111, -0.03504342585802078, 0.4954102635383606, 0.059320516884326935, 0.05017895624041557, 0.08271800726652145, 0.22209276258945465, 0.296346515417099, -0.2159973531961441, 0.22253556549549103, 0.029618307948112488, 0.07776675373315811, 0.12358677387237549, -0.09785553067922592, 0.2934838533401489, -0.12487364560365677, -0.023082837462425232, -0.012956064194440842, 0.4266715943813324, -0.1393713504076004, 0.4329894781112671, 0.46494898200035095, -0.09626302123069763, 0.18184974789619446, 0.06755498796701431, 0.2581515610218048, -0.00893295556306839, 0.4877113997936249, -0.19898343086242676, -0.13946083188056946, -0.007765932008624077, 0.3162933886051178, 0.19672860205173492, -0.26868513226509094, -0.007373797241598368, 0.13343751430511475, -0.13987305760383606, 0.034494683146476746, 0.1266101896762848, 0.5635014772415161, -0.04012779891490936, -0.33920469880104065, -0.23085491359233856, 0.194071963429451, -0.05629536509513855, 0.06960782408714294, -0.4285205006599426, -0.19247213006019592, -0.032732680439949036, 0.2030670940876007, -0.035854779183864594, -0.07697845995426178, 0.329237699508667, 0.04258657991886139, -0.06008167564868927, -0.596703827381134, 0.00471804104745388, 0.2601431608200073, 0.31364157795906067, 0.029153354465961456, 0.1982823759317398, 0.22660502791404724, 0.04346000403165817, 0.09612494707107544, 0.40731731057167053, 0.3040819466114044, 0.023355338722467422, 0.16395574808120728, -0.03635154291987419, 0.07340330630540848, -0.1477893590927124, 0.1805892288684845, -0.000424092635512352, 0.19012051820755005, 0.05772208049893379, 0.22343185544013977, 0.16607405245304108, -0.19326433539390564, 0.056862689554691315, -0.04040984809398651, 0.3502349257469177, -0.23004581034183502, -0.29445695877075195, -0.3778139054775238, -0.052123431116342545, -0.042773857712745667, -0.3764002025127411, -0.3126108944416046, 0.19541481137275696, 0.20652787387371063, -0.30356383323669434, 0.00598660483956337, -0.3602222502231598, 0.10302181541919708, 0.16525490581989288, 0.3752546012401581, 0.3739389181137085, 0.2587442100048065, -0.18403446674346924, -0.4179103374481201, -0.37632498145103455, 0.1055430918931961, 0.12155433744192123, 0.16093981266021729, -0.22280634939670563, -0.06358799338340759, 0.10661998391151428, 0.15463823080062866, 0.40494614839553833, -0.053176216781139374, 0.21474960446357727, -0.05186320096254349, -0.12926720082759857, 0.19121041893959045, -0.02551807463169098, 0.0425749346613884, -0.13272538781166077, 0.07175487279891968, 0.3197351098060608, 0.0825481042265892, 0.07009866833686829, -0.20583756268024445, 0.2681625485420227, -0.4323089122772217, -0.3078068196773529, 0.21391898393630981, 0.21493834257125854, 0.37019240856170654, -0.029863595962524414, -0.13194353878498077, -0.2877647876739502, -0.25841861963272095, -0.1755838692188263, 0.28798049688339233, 0.1683015078306198, 0.37120503187179565, 0.09346826374530792, -0.2876017689704895, -0.04175116866827011, 0.09864364564418793, 0.20294027030467987, 0.3742453455924988, -0.4230099618434906, 0.0980166643857956, -0.04673102870583534, -0.211728036403656, 0.316083163022995, 0.2755284011363983, -0.03861023113131523, 0.06741336733102798, -0.240177184343338, -0.3253990113735199, 0.28844571113586426, -0.41044026613235474, -0.17380061745643616, 0.015976086258888245, -0.06220332533121109, 0.46381041407585144, -0.24784676730632782, -0.34570425748825073, 0.02196313440799713, 0.06501427292823792, -0.05132221058011055, -0.019708871841430664, 0.3315579295158386, -0.10982044041156769, -0.06183268502354622, 0.0984673947095871, 0.6605510711669922, 0.33900994062423706, -0.2001924216747284, 0.18688103556632996, -0.029875047504901886 ]
https://github.com/huggingface/datasets/issues/2162
Hi! This visualization tool is deprecated now. The viewer at https://huggingface.co/datasets/cc100 works fine, so I'm closing this issue.
visualization for cc100 is broken
Hi visualization through dataset viewer for cc100 is broken https://huggingface.co/datasets/viewer/ thanks a lot
18
visualization for cc100 is broken Hi visualization through dataset viewer for cc100 is broken https://huggingface.co/datasets/viewer/ thanks a lot Hi! This visualization tool is deprecated now. The viewer at https://huggingface.co/datasets/cc100 works fine, so I'm closing this issue.
[ -0.5799180269241333, -0.22593578696250916, -0.09621952474117279, 0.06830732524394989, 0.1526748389005661, 0.02734515070915222, 0.1927942931652069, 0.1392858624458313, -0.14177259802818298, 0.37907084822654724, -0.13473965227603912, 0.3697822690010071, 0.07837793231010437, 0.38023489713668823, 0.041221983730793, -0.26705512404441833, 0.19380484521389008, 0.3202068507671356, -0.43149295449256897, 0.13277551531791687, 0.0071325525641441345, 0.1851709932088852, -0.2939572334289551, -0.08966274559497833, -0.12493403255939484, -0.20080937445163727, -0.1819150447845459, 0.04788072779774666, -0.25047218799591064, -0.5551695823669434, 0.11750046908855438, 0.2697766423225403, 0.1763661801815033, 0.4271422028541565, -0.00010037266474682838, 0.012479811906814575, 0.43841710686683655, 0.2533535063266754, -0.26222243905067444, 0.022352546453475952, -0.3162318468093872, -0.11982956528663635, 0.3363646864891052, 0.037478968501091, -0.1934163123369217, 0.09074521064758301, -0.032988183200359344, -0.06989768147468567, 0.3716410994529724, -0.31049880385398865, 0.3448149859905243, 0.1703679859638214, 0.15049432218074799, -0.2938110828399658, -0.2030593603849411, 0.3693823516368866, -0.21200555562973022, 0.19122478365898132, 0.32346177101135254, -0.021314095705747604, -0.08136704564094543, 0.29409050941467285, 0.11205581575632095, -0.12223981320858002, 0.20797812938690186, -0.14176568388938904, -0.09015083312988281, -0.226103276014328, 0.20824018120765686, 0.0764642059803009, 0.5534949898719788, -0.032813820987939835, 0.05821000039577484, 0.16024437546730042, -0.14566779136657715, -0.6137789487838745, 0.09802104532718658, 0.07811181247234344, 0.1195315569639206, 0.28090307116508484, -0.46462029218673706, -0.1616208702325821, -0.24031338095664978, -0.005726046860218048, -0.2513159215450287, -0.1276530921459198, -0.3383163809776306, 0.037956371903419495, 0.17547303438186646, 0.028057590126991272, -0.019772730767726898, 0.21689485013484955, -0.28299713134765625, -0.0369594469666481, -0.3386503756046295, -0.12089845538139343, 0.1596132516860962, 0.5478039979934692, 0.14866064488887787, 0.18638770282268524, 0.28264275193214417, 0.21158142387866974, 0.19192394614219666, 0.2048940360546112, 0.16536614298820496, 0.06271472573280334, -0.09091635048389435, 0.07996681332588196, 0.496842622756958, 0.4074418246746063, 0.04444409906864166, -0.21637985110282898, -0.113455630838871, -0.302893728017807, -0.14933641254901886, -0.04951708763837814, 0.10832773149013519, -0.1323486566543579, -0.34252578020095825, 0.008079975843429565, 0.04404272139072418, 0.17382420599460602, 0.15785163640975952, 0.4170842170715332, -0.04296266660094261, 0.1070183739066124, -0.07868023961782455, 0.1431303173303604, -0.11867000162601471, -0.35048186779022217, -0.18038295209407806, -0.029846739023923874, -0.2489951252937317, -0.09479229897260666, 0.06709419935941696, -0.5508504509925842, 0.05720001459121704, 0.24088090658187866, 0.2407681792974472, -0.08909489214420319, -0.17585164308547974, 0.030346032232046127, -0.1273130178451538, 0.11162623763084412, -0.07535985857248306, -0.13674259185791016, 0.08084110915660858, -0.092246413230896, 0.29399240016937256, -0.10802458971738815, -0.20964588224887848, -0.10861741006374359, -0.45888254046440125, 0.19870120286941528, -0.027053218334913254, 0.08261928707361221, -0.16561074554920197, 0.2367863655090332, -0.13983836770057678, -0.03907134756445885, -0.16499704122543335, 0.16838400065898895, -0.1704835295677185, -0.1477946937084198, 0.2084110677242279, 0.27681857347488403, -0.6871247887611389, -0.019505351781845093, -0.24173958599567413, -0.3243067264556885, -0.17586363852024078, 0.05575944855809212, -0.19525004923343658, -0.17058466374874115, -0.2118675708770752, -0.19425323605537415, -0.15913885831832886, -0.341666579246521, -0.3539659082889557, 0.1938725858926773, 0.03805278241634369, -0.05471402406692505, -0.20231066644191742, -0.2536519765853882, 0.2829444408416748, -0.1671246439218521, -0.40513578057289124, -0.26391828060150146, 0.09417504072189331, -0.08350586146116257, -0.12917131185531616, -0.22076711058616638, 0.07168176770210266, -0.10521994531154633, 0.04095502942800522, 0.07336504757404327, 0.284137099981308, -0.28792136907577515, 0.2708404064178467, -0.05038808658719063, 0.07148826122283936, 0.13198116421699524, 0.3068798780441284, -0.12231067568063736, -0.04371795430779457, -0.1217636913061142, -0.22501812875270844, 0.016659505665302277, 0.1743316948413849, 0.13025321066379547, -0.06645544618368149, -0.07418529689311981, -0.29497474431991577, 0.13053250312805176, -0.28349828720092773, -0.16417884826660156, 0.29696062207221985, -0.04862597957253456, -0.1323884129524231, 0.014148123562335968, -0.08968000113964081, 0.1409282237291336, -0.035157039761543274, 0.042704302817583084, 0.14801302552223206, 0.34870845079421997, -0.18261373043060303, 0.11424334347248077, 0.2208857238292694, 0.02336817979812622, 0.21302057802677155, -0.1172703355550766, -0.13590987026691437, 0.49647918343544006, -0.11365733295679092, 0.5002667903900146, 0.12706607580184937, -0.1558941900730133, 0.38075828552246094, -0.6567318439483643, 0.14131835103034973, -0.12585295736789703, 0.010147377848625183, 0.17122875154018402, -0.15777826309204102, -0.12171026319265366, 0.038152169436216354, -0.04494212195277214, -0.0457935594022274, 0.21908915042877197, 0.16224250197410583, 0.049645453691482544, -0.12759965658187866, -0.2703619599342346, 0.15918107330799103, 0.18140019476413727, 0.35885488986968994, -0.17888221144676208, -0.30972856283187866, 0.1272755265235901, 0.06862081587314606, 0.03674253076314926, -0.07756419479846954, 0.03029519133269787, -0.4117036461830139, 0.05883049964904785, 0.5316950678825378, -0.050535574555397034, -0.10876776278018951, 0.11836062371730804, -0.07503905147314072, 0.13820737600326538, -0.05010191723704338, 0.013370729982852936, 0.1133195161819458, -0.0024883337318897247, 0.2653510570526123, -0.1098199337720871, -0.012418191879987717, -0.13207215070724487, -0.4606080651283264, 0.020345136523246765, -0.10622818768024445, 0.16245071589946747, -0.17622268199920654, -0.08232128620147705, -0.3969385027885437, -0.20003405213356018, 0.2208264172077179, 0.07559831440448761, 0.039600152522325516, -0.24751338362693787, -0.036097340285778046, 0.250396192073822, -0.1168004721403122, 0.21594861149787903, -0.045507654547691345, 0.345698744058609, -0.07198259234428406, 0.5188420414924622, -0.32517844438552856, -0.08087766170501709, -0.1994514763355255, 0.24351198971271515, 0.13335023820400238, -0.12532614171504974, 0.20207376778125763, -0.0771280825138092, 0.3216220736503601, -0.3407817482948303, -0.4639957845211029, 0.4149681031703949, -0.08119145035743713, 0.17731815576553345, 0.1177222728729248, 0.1305883377790451, -0.4553820788860321, 0.040726300328969955, 0.11130215227603912, -0.0969199687242508, -0.014420885592699051, -0.038788072764873505, 0.015636738389730453, -0.20320484042167664, -0.1627204418182373, 0.2247186005115509, -0.23239915072917938, -0.2648937702178955, 0.1667088270187378, 0.09176383167505264, 0.08706971257925034, 0.2250424325466156, 0.2553861737251282, -0.041359271854162216, 0.07838393747806549, -0.09120738506317139, -0.2272372543811798, -0.6518673896789551, 0.08201366662979126, -0.5548163056373596, -0.37956956028938293, 0.21412356197834015, 0.1670549213886261, 0.39087262749671936, 0.045108549296855927, -0.34473568201065063, 0.19704259932041168, -0.032800495624542236, 0.01598045974969864, 0.2144756317138672, -0.08546418696641922, -0.012450780719518661, 0.2116590291261673, -0.17391446232795715, -0.13127940893173218, -0.1802157312631607, -0.24378305673599243, -0.20399296283721924, 0.13283219933509827, -0.00867544487118721, 0.08359390497207642, 0.2371762990951538, 0.44600710272789, 0.24717983603477478, -0.11822064220905304, 0.36635178327560425, -0.07161156088113785, 0.6755083203315735, -0.09393677115440369, -0.34374746680259705, 0.12574462592601776, -0.20657774806022644, -0.005916588008403778, 0.2081194669008255, 0.15654459595680237, -0.3093111217021942, -0.35361799597740173, -0.015353977680206299, -0.2457628846168518, -0.16939374804496765, -0.42835527658462524, -0.094244584441185, 0.2520381808280945, -0.0013782307505607605, 0.3019787669181824, 0.1110081747174263, -0.2525753378868103, 0.20257899165153503, 0.10991300642490387, 0.12600071728229523, -0.12911754846572876, -0.2820802927017212, -0.16998788714408875, -0.49664562940597534, 0.2854278087615967, -0.08630642294883728, -0.06686615943908691, -0.08081293851137161, 0.07232477515935898, -0.035469893366098404, -0.06909669190645218, 0.3494235873222351, -0.05730397254228592, -0.0344303734600544, 0.08908068388700485, -0.15553246438503265, 0.09360157698392868, 0.09737288951873779, -0.0007203370332717896, 0.24388112127780914, -0.2357865869998932, 0.04705018550157547, 0.02189190685749054, -0.06924135982990265, 0.3212326169013977, 0.057683639228343964, -0.097866490483284, -0.060446660965681076, -0.030448317527770996, 0.14219652116298676, -0.16040274500846863, -0.295762836933136, -0.16897112131118774, -0.019059285521507263, -0.2879061698913574, -0.28070178627967834, -0.09292735904455185, -0.3848232626914978, -0.008705351501703262, 0.42406558990478516, 0.3924408555030823, -0.05890077352523804, 0.03269581496715546, 0.3731490671634674, 0.3270764946937561, 0.41289404034614563, 0.2791734039783478, 0.13890893757343292, -0.35706645250320435, 0.27359458804130554, 0.01336541399359703, 0.2870481312274933, 0.24479138851165771, -0.11921721696853638, -0.017529767006635666, 0.16656289994716644, 0.19380046427249908, -0.34304070472717285, 0.03378237038850784, 0.3146297335624695, 0.26445284485816956, -0.5136508941650391, -0.015515182167291641, 0.427959680557251, 0.1127687394618988, -0.0007709413766860962, 0.18083301186561584, 0.30862995982170105, -0.03942272067070007, -0.2692624032497406, 0.2484963983297348, 0.8201929330825806, 0.06174612417817116, -0.3384525179862976, 0.06413723528385162, -0.22229379415512085, 0.4861656725406647, 0.03228624165058136, 0.006810631603002548, -0.2896862030029297, -0.25433626770973206, -0.07933678478002548, -0.004338286817073822, 0.3793320953845978, -0.046222541481256485, -0.19929927587509155, 0.0988127663731575, -0.17861109972000122, 0.4561843276023865, 0.05318908393383026, 0.004496283829212189, -0.04218015447258949, -0.04791654646396637, 0.12003134191036224, 0.2820037305355072, -0.08493298292160034, 0.04735065624117851, -0.31501153111457825, 0.0016422271728515625, 0.08487425744533539, 0.10635443031787872, -0.30130550265312195, 0.07259766012430191, -0.18019706010818481, 0.2358827292919159, -0.13260404765605927, -0.5778411030769348, 0.3679649829864502, 0.1579367220401764, 0.03292638063430786, 0.29241660237312317, -0.3519313335418701, 0.31978631019592285, -0.10592089593410492, -0.16510561108589172, -0.17857706546783447, 0.3667144477367401, 0.09009109437465668, -0.13617002964019775, -0.1401391327381134, 0.21283121407032013, 0.11252222955226898, -0.06716662645339966, -0.04236547648906708, 0.17387090623378754, 0.22414284944534302, 0.028338760137557983, 0.25732094049453735, -0.06006015092134476, 0.009402237832546234, -0.32265704870224, 0.21171782910823822, 0.01312947180122137, 0.09284216165542603, -0.029171094298362732, 0.33013877272605896, 0.07612752914428711, -0.059338510036468506, 0.027904167771339417, -0.17231738567352295, -0.31111130118370056, 0.13958071172237396, 0.26320332288742065, -0.32620590925216675, -0.28280505537986755, 0.037651367485523224, 0.16632142663002014, -0.27007341384887695, 0.16198232769966125, 0.06362996995449066, 0.1290997862815857, -0.04311593621969223, 0.3094622790813446, 0.04560576006770134, -0.18039636313915253, -0.05479907616972923, -0.19817940890789032, -0.5061773061752319, -0.04281920567154884, -0.28098568320274353, 0.24919790029525757, 0.10944931209087372, 0.2501014769077301, 0.06621722877025604, -0.0917992815375328, -0.41287583112716675, -0.038590095937252045, -0.03838835656642914, -0.24691802263259888, 0.1787264347076416, 0.0590195395052433, -0.13103385269641876, -0.12198416143655777, 0.1900174468755722, 0.33040517568588257, -0.22606709599494934, -0.2517739534378052, -0.06123853474855423, 0.07643622159957886, 0.06955112516880035, -0.4013771116733551, 0.2190125584602356, 0.2562750577926636, -0.044559188187122345, -0.06795112043619156, 0.06522640585899353, -0.06563109159469604, 0.12340791523456573, -0.02689206972718239, -0.29608026146888733, 0.03819672018289566, 0.08849292993545532, -0.18698154389858246, 0.4140799343585968, 0.3657127022743225, -0.10273689031600952, -0.03626730293035507, 0.1366702914237976, -0.13047349452972412, 0.13153031468391418, 0.2529381215572357, -0.016201317310333252, 0.10304535925388336, 0.4469464123249054, -0.25665420293807983, 0.25106024742126465, -0.034739039838314056, 0.49189385771751404, 0.06686660647392273, 0.07440100610256195, 0.03436245769262314, 0.3039691746234894, 0.31516504287719727, -0.2186519205570221, 0.04909822344779968, 0.030226223170757294, 0.12201564759016037, 0.1913180947303772, -0.1667565405368805, 0.2666797637939453, -0.051240526139736176, -0.005105476826429367, -0.01621400937438011, 0.3933089077472687, -0.20962953567504883, 0.4545918405056, 0.5419142246246338, -0.0013176053762435913, 0.21192270517349243, 0.10369694977998734, 0.33055946230888367, 0.03155995532870293, 0.4755389094352722, -0.18736480176448822, -0.009060920216143131, 0.05887308716773987, 0.204068124294281, 0.2842158377170563, -0.1586359143257141, 0.02779354341328144, 0.1412138044834137, -0.24504896998405457, -0.0009234417229890823, 0.1337083876132965, 0.4955933690071106, -0.011056778952479362, -0.3000226616859436, -0.2754605710506439, 0.23708117008209229, -0.10922002792358398, 0.07769416272640228, -0.4286314845085144, -0.18987782299518585, -0.03857138752937317, 0.1642904132604599, -0.025651462376117706, -0.08433330059051514, 0.2695963680744171, -0.09353916347026825, -0.02744118496775627, -0.5097653865814209, 0.1196904107928276, 0.2806996703147888, 0.37959662079811096, 0.06868310272693634, 0.0312703400850296, 0.15981486439704895, 0.10549838095903397, 0.05850227549672127, 0.4559756815433502, 0.3109787404537201, 0.027913913130760193, 0.08264482021331787, -0.23128479719161987, 0.005439240485429764, -0.20627236366271973, 0.17111662030220032, -0.01664718985557556, 0.1484127640724182, 0.0691375583410263, 0.20171144604682922, 0.1581348478794098, -0.19452857971191406, 0.0691889151930809, 0.05469311773777008, 0.2825568616390228, -0.27337726950645447, -0.4011451005935669, -0.414954274892807, -0.1887775957584381, 0.006925158202648163, -0.33726632595062256, -0.2570350766181946, 0.10711979866027832, 0.2551540732383728, -0.2477194368839264, -0.008904390037059784, -0.388201504945755, 0.1306820511817932, 0.1875019371509552, 0.295063853263855, 0.2856805622577667, 0.25648173689842224, -0.08138269186019897, -0.529793381690979, -0.3931703567504883, 0.07725760340690613, 0.19633039832115173, 0.11264502257108688, -0.21912944316864014, -0.008710354566574097, 0.09932120889425278, 0.2437121868133545, 0.44088035821914673, -0.007599610835313797, 0.2286142110824585, -0.11738082021474838, -0.17789945006370544, 0.13688267767429352, 0.05502123013138771, 0.05659361183643341, -0.105545274913311, 0.006633460521697998, 0.17141398787498474, -0.013207849115133286, 0.10960104316473007, -0.19284051656723022, 0.3368246555328369, -0.3960680663585663, -0.29354625940322876, 0.29422613978385925, 0.13797757029533386, 0.30031391978263855, -0.09085455536842346, 0.0004351884126663208, -0.1624983549118042, -0.12040575593709946, -0.11298862099647522, 0.32482343912124634, 0.1975574791431427, 0.24095070362091064, 0.07947652786970139, -0.25060704350471497, 0.0012279637157917023, 0.06027054041624069, 0.28718000650405884, 0.3397214710712433, -0.3618483543395996, 0.011393949389457703, 0.07210418581962585, -0.18088123202323914, 0.2752933204174042, 0.15657253563404083, -0.09822587668895721, -0.04835980013012886, -0.15514221787452698, -0.39527595043182373, 0.10758522152900696, -0.37969595193862915, -0.2953093647956848, -0.077704057097435, -0.14949209988117218, 0.43729934096336365, -0.2269807904958725, -0.21816466748714447, 0.03263680636882782, 0.06097613647580147, -0.02484961226582527, 0.07477869093418121, 0.40751153230667114, -0.02973835915327072, 0.027100875973701477, 0.10965123772621155, 0.6535194516181946, 0.36172881722450256, -0.12328776717185974, 0.12118178606033325, -0.15768194198608398 ]
https://github.com/huggingface/datasets/issues/2161
oh, great, really awesome feature to have, thank you very much for the great, fabulous work
any possibility to download part of large datasets only?
Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks
16
any possibility to download part of large datasets only? Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks oh, great, really awesome feature to have, thank you very much for the great, fabulous work
[ -0.45692288875579834, -0.4417871832847595, -0.18960900604724884, 0.14840754866600037, 0.10389962792396545, 0.18816086649894714, -0.2670147120952606, 0.36616986989974976, 0.06326061487197876, 0.4351860284805298, -0.44700971245765686, -0.12800249457359314, -0.10398069769144058, 0.363865464925766, 0.19023674726486206, -0.00357216689735651, -0.14738276600837708, 0.2523772418498993, -0.28921908140182495, -0.19196124374866486, -0.060063622891902924, -0.1989707499742508, -0.23220407962799072, -0.2747713327407837, 0.1167173832654953, 0.08972054719924927, -0.04337947443127632, -0.17577588558197021, -0.5081449747085571, 0.0985448807477951, 0.14121100306510925, 0.24924799799919128, 0.10271813720464706, 0.09501055628061295, -0.00011070310574723408, -0.4209388792514801, 0.26686280965805054, -0.06257825344800949, -0.08437971770763397, -0.051962897181510925, -0.22100025415420532, 0.12849299609661102, -0.2507515847682953, -0.3328809142112732, -0.019608620554208755, 0.23395231366157532, 0.19929786026477814, 0.052537232637405396, 0.12392174452543259, 0.10562780499458313, 0.1930297166109085, 0.15194857120513916, -0.07237063348293304, -0.19024501740932465, 0.44254356622695923, 0.07756875455379486, -0.08182431012392044, 0.045974839478731155, 0.5918858051300049, 0.2943480312824249, 0.16676470637321472, 0.08494355529546738, 0.10341715812683105, 0.24734871089458466, -0.1054592877626419, -0.20397087931632996, -0.09843067824840546, -0.6417447924613953, 0.233723983168602, 0.6659568548202515, 0.6920171976089478, 0.05562814697623253, -0.15061645209789276, -0.120296411216259, 0.02365894615650177, -0.17436562478542328, -0.20180562138557434, 0.6123732924461365, -0.38712257146835327, 0.23489832878112793, -0.43875283002853394, -0.2116994708776474, -0.12346456199884415, 0.2909560203552246, -0.3018236458301544, 0.20004090666770935, -0.12995290756225586, -0.10543039441108704, 0.4078008234500885, 0.059690702706575394, 0.17354297637939453, 0.1433304101228714, -0.19636227190494537, 0.34200170636177063, -0.1567712426185608, -0.5366547703742981, -0.18377910554409027, 0.28871843218803406, 0.510174036026001, 0.20400846004486084, 0.1140417531132698, 0.18945330381393433, -0.01849488914012909, -0.10158529132604599, 0.5733484029769897, -0.11297723650932312, -0.39236658811569214, 0.08092997968196869, 0.31715700030326843, -0.07522927969694138, -0.0010932832956314087, -0.06702543050050735, 0.04635581746697426, 0.16513186693191528, -0.5736998319625854, 0.021523162722587585, -0.13624952733516693, -0.44925457239151, 0.09480170905590057, -0.2819656431674957, 0.34717077016830444, 0.03446684777736664, -0.0805370956659317, 0.19075623154640198, -0.02057899907231331, 0.04237964376807213, -0.4645513892173767, -0.16819924116134644, -0.016299419105052948, -0.19745305180549622, -0.09181824326515198, 0.022435680031776428, 0.04162859916687012, -0.08808156847953796, 0.3229658603668213, -0.18774671852588654, 0.29573315382003784, -0.19810636341571808, 0.3834773600101471, 0.2267550826072693, -0.1125747412443161, -0.24753569066524506, -0.0029424019157886505, 0.19854050874710083, 0.07005884498357773, 0.15785501897335052, -0.293451189994812, 0.502081573009491, -0.13492466509342194, 0.32605740427970886, -0.25353479385375977, -0.22017645835876465, -0.058302149176597595, 0.151571586728096, -0.2562198042869568, -0.13334313035011292, -0.22880733013153076, 0.15761926770210266, -0.1931796371936798, 0.09394325315952301, 0.07991182059049606, 0.1832101196050644, -0.057935312390327454, -0.04381413757801056, 0.0031955838203430176, -0.011294633150100708, -0.15132565796375275, -0.07085835188627243, -0.15508271753787994, -0.29796043038368225, 0.35928595066070557, 0.19995775818824768, -0.1971529871225357, -0.2521311938762665, -0.1948242485523224, -0.10178069025278091, 0.26134854555130005, 0.07872562855482101, -0.5193735361099243, 0.23326903581619263, 0.08850394189357758, -0.2687840461730957, 0.029588913545012474, 0.15563645958900452, 0.5315996408462524, -0.02019941434264183, -0.26233434677124023, 0.5017802715301514, 0.0501079335808754, 0.09132049232721329, -0.09166480600833893, -0.22543126344680786, -0.19611838459968567, 0.2768276631832123, 0.26382482051849365, 0.34798622131347656, 0.4208672046661377, -0.012344423681497574, 0.5024279356002808, -0.18517500162124634, 0.23582753539085388, 0.058407001197338104, 0.2728780508041382, -0.17559775710105896, -0.014329295605421066, -0.43935567140579224, -0.12069887667894363, 0.16151955723762512, -0.09660249203443527, -0.25843268632888794, 0.35964804887771606, -0.14868879318237305, 0.04472953453660011, -0.3190501928329468, 0.2947392165660858, -0.04194091260433197, -0.028770696371793747, -0.29654058814048767, 0.4093738794326782, -0.06764274835586548, -0.339335560798645, -0.21348339319229126, -0.07331568002700806, 0.0736941546201706, 0.1995433121919632, -0.011014528572559357, 0.35008367896080017, 0.2485637366771698, 0.2441173791885376, -0.18143942952156067, 0.005632379092276096, -0.08230967819690704, 0.02181365340948105, 0.130965918302536, 0.0395604707300663, 0.11802143603563309, 0.019910575821995735, -0.02704794704914093, 0.3809482753276825, -0.11380709707736969, 0.06397223472595215, 0.11266433447599411, 0.13334515690803528, 0.01939345896244049, -0.45958828926086426, 0.34548473358154297, -0.2954246997833252, 0.02641337551176548, 0.16872580349445343, -0.04912463203072548, 0.38970649242401123, -0.23405176401138306, 0.1279970407485962, 0.05504444241523743, 0.36044391989707947, 0.1630963236093521, 0.06754013895988464, -0.01706802286207676, -0.2695912718772888, -0.15037362277507782, 0.0879044160246849, -0.08909154683351517, -0.18370148539543152, 0.23623067140579224, -0.2942357063293457, 0.12833106517791748, 0.10566055029630661, 0.13321122527122498, 0.23846271634101868, 0.2614439129829407, 0.4191229045391083, -0.05969870835542679, 0.5338895320892334, -0.07989157736301422, 0.03449952229857445, -0.1112046092748642, -0.21858684718608856, 0.027136845514178276, 0.11925715208053589, -0.2720867395401001, -0.196096733212471, 0.11855106055736542, 0.15994051098823547, 0.13137656450271606, 0.1610587239265442, -0.5328857898712158, -0.16141679883003235, -0.5867484211921692, 0.20143067836761475, 0.17655739188194275, 0.0589456744492054, -0.010274842381477356, 0.13664259016513824, 0.37286800146102905, -0.14437153935432434, -0.1607406735420227, -0.008977927267551422, 0.48629653453826904, -0.10677187144756317, 0.35692793130874634, -0.1209159642457962, 0.05338072031736374, 0.25838467478752136, 0.2524823844432831, 0.041092291474342346, 0.08167044073343277, 0.2867901921272278, 0.1602698266506195, -0.13032454252243042, -0.41614866256713867, -0.007179073989391327, 0.08936835825443268, 0.31478115916252136, -0.1491582840681076, -0.09327620267868042, 0.2668730616569519, -0.028522808104753494, 0.10353273153305054, -0.20542828738689423, -0.1214773952960968, -0.2091580331325531, -0.14412808418273926, 0.09736732393503189, 0.06497211009263992, -0.22813956439495087, 0.005154453217983246, -0.5068328976631165, -0.3248071074485779, 0.5314700603485107, 0.39468371868133545, 0.2537352740764618, -0.14947517216205597, -0.12426020950078964, -0.25178900361061096, -0.35731205344200134, -0.42327842116355896, -0.14918848872184753, -0.7825843095779419, 0.4113960564136505, -0.2570541799068451, -0.3438841998577118, -0.07557196915149689, 0.15069900453090668, -0.16085933148860931, 0.408825546503067, -0.24741590023040771, 0.06212768703699112, -0.23876166343688965, 0.025750569999217987, 0.15547515451908112, 0.1434171348810196, -0.12403900921344757, -0.7096168398857117, -0.10048094391822815, 0.10144030302762985, 0.31396186351776123, -0.26145225763320923, 0.2509830594062805, 0.3713077902793884, -0.09021813422441483, -0.19036470353603363, 0.03995425999164581, 0.5214747786521912, -0.02683476358652115, 0.25385862588882446, 0.13070344924926758, -0.02902795746922493, 0.05048026144504547, -0.08628416806459427, 0.04955192655324936, 0.35660749673843384, -0.06476590037345886, -0.23686301708221436, 0.2402046173810959, 0.0547216571867466, -0.416104793548584, -0.3159686326980591, 0.02951250970363617, 0.024501189589500427, -0.08424388617277145, -0.125543013215065, 0.05925356224179268, -0.1105322539806366, 0.1262478530406952, -0.08902615308761597, 0.09321717917919159, -0.24664022028446198, 0.14556294679641724, -0.043663229793310165, 0.2179505079984665, -0.191868394613266, -0.5488737225532532, -0.0880175232887268, -0.37328678369522095, 0.027545619755983353, -0.08879105746746063, -0.2204168438911438, 0.15404699742794037, 0.011821717023849487, 0.20025771856307983, 0.10467837750911713, 0.549565315246582, 0.19242149591445923, 0.04418858885765076, -0.18740662932395935, -0.17722618579864502, 0.06663627922534943, 0.0763559341430664, -0.05161295086145401, -0.029691584408283234, 0.16165843605995178, -0.11882976442575455, -0.3217065930366516, 0.21235714852809906, 0.11854150891304016, 0.3280703127384186, -0.17735041677951813, -0.16712665557861328, 0.2144455462694168, -0.11915484070777893, -0.2957462668418884, 0.21187789738178253, -0.09488725662231445, -0.13336734473705292, -0.09568203240633011, -0.2035370171070099, -0.09766920655965805, 0.04788091033697128, -0.056466907262802124, -0.0978597104549408, 0.040167972445487976, 0.11362667381763458, 0.44266700744628906, 0.035357765853405, 0.014989160001277924, 0.16440732777118683, 0.5174335837364197, 0.2307385802268982, 0.043797265738248825, 0.046336352825164795, -0.2539513111114502, 0.03780405968427658, 0.1980092078447342, 0.098502978682518, 0.23013556003570557, 0.014450941234827042, 0.321595162153244, -0.1256864219903946, 0.07758601754903793, -0.42514070868492126, -0.16877397894859314, -0.45187175273895264, -0.36954429745674133, 0.42149069905281067, 0.07016663998365402, 0.033363476395606995, 0.3626655042171478, -0.12929774820804596, 0.11649622023105621, -0.10966457426548004, -0.05191418528556824, 0.9109150171279907, 0.0007667643949389458, 0.07578308135271072, -0.4442182779312134, 0.0725763738155365, 0.5207018852233887, -0.0016885027289390564, 0.06033823639154434, -0.25134041905403137, -0.40707510709762573, -0.16071215271949768, -0.04405514895915985, -0.12691360712051392, 0.12758177518844604, -0.030644938349723816, 0.21523359417915344, 0.03304663300514221, 0.06875956058502197, -0.10618913918733597, 0.01321403682231903, -0.2566157579421997, -0.20522841811180115, 0.29996511340141296, 0.11743243038654327, 0.009995745494961739, 0.4072091579437256, -0.008924633264541626, -0.02221033163368702, 0.05641292780637741, 0.08116242289543152, -0.1732974350452423, 0.07821287214756012, -0.24024058878421783, -0.12711797654628754, -0.2153342068195343, -0.14906325936317444, 0.011920511722564697, -0.21158067882061005, -0.09113452583551407, 0.28562143445014954, -0.4071880280971527, 0.2673163414001465, 0.23497071862220764, 0.14152994751930237, -0.045512039214372635, 0.17029894888401031, -0.24516533315181732, -0.13858219981193542, -0.06366747617721558, 0.13047921657562256, 0.06751501560211182, -0.22385632991790771, -0.1592644602060318, 0.16303229331970215, -0.0017764139920473099, 0.07288496196269989, -0.14806562662124634, 0.1476820558309555, -0.01074245572090149, -0.11843393743038177, 0.11711312085390091, 0.21892249584197998, -0.2218291163444519, 0.4116455316543579, 0.2776651382446289, -0.1695401966571808, -0.33473196625709534, 0.62993323802948, 0.20157568156719208, -0.2579893469810486, -0.05889496952295303, -0.09497365355491638, -0.24125158786773682, -0.20293259620666504, 0.025439396500587463, -0.36191582679748535, -0.2489604949951172, 0.06841494888067245, -0.24310040473937988, 0.24828846752643585, -0.1463271528482437, 0.09542769193649292, 0.07262681424617767, 0.006588565185666084, -0.16420027613639832, -0.20063574612140656, -0.4192201793193817, 0.015394531190395355, -0.0635220855474472, 0.25176361203193665, -0.2178005576133728, 0.009326756000518799, -0.007247861474752426, 0.19593696296215057, -0.27959156036376953, 0.323508620262146, 0.10093546658754349, 0.1888236254453659, 0.4417487382888794, 0.28526026010513306, -0.2603088915348053, -0.09101106971502304, 0.02270658314228058, 0.37706926465034485, -0.01105290837585926, -0.22719106078147888, 0.02128634601831436, 0.1728379875421524, 0.07465390115976334, -0.24430212378501892, 0.24911737442016602, 0.008131913840770721, -0.12544526159763336, 0.09373418986797333, 0.17062771320343018, 0.06798262894153595, 0.25181207060813904, -0.30360597372055054, 0.5130078196525574, -0.35236769914627075, -0.4174027144908905, 0.5407013893127441, 0.012526622042059898, 0.08388222754001617, -0.0037676356732845306, 0.4048580229282379, 0.12924912571907043, -0.09923934191465378, -0.12005677819252014, -0.25279271602630615, 0.14530320465564728, -0.18953077495098114, 0.30022019147872925, 0.3162287473678589, 0.16491766273975372, 0.30233508348464966, 0.24577724933624268, 0.5084359645843506, -0.01528298668563366, 0.10851134359836578, 0.4348975121974945, 0.23777896165847778, -0.23178082704544067, -0.14985527098178864, -0.20366576313972473, -0.04850846529006958, 0.015582911670207977, 0.02732672542333603, -0.0010941475629806519, -0.24784892797470093, -0.0696709156036377, -0.29854637384414673, 0.11787788569927216, 0.23883363604545593, 0.02605103701353073, 0.7074033617973328, 0.15000389516353607, -0.3291204273700714, -0.042469821870326996, 0.1737629771232605, 0.20747549831867218, 0.46427157521247864, -0.1255783587694168, 0.26950517296791077, 0.25167155265808105, -0.06569823622703552, 0.027262983843684196, -0.6322484016418457, 0.04903435707092285, 0.474278062582016, -0.1550251543521881, 0.1333584487438202, 0.02812543511390686, 0.05831100046634674, 0.12929119169712067, -0.06161182001233101, -0.24365384876728058, 0.37225061655044556, 0.216962531208992, -0.03862947225570679, -0.061189621686935425, -0.3569634258747101, 0.029832452535629272, 0.43230658769607544, -0.032957181334495544, -0.31655290722846985, 0.41216257214546204, 0.06042429432272911, 0.00550142303109169, -0.13918346166610718, 0.040139131247997284, 0.019607944414019585, 0.17642518877983093, -0.4152516722679138, -0.1744777262210846, -0.061294395476579666, -0.008106064051389694, 0.29788652062416077, 0.11602767556905746, -0.1798856109380722, 0.10045278817415237, 0.22514882683753967, -0.04064159467816353, 0.11013539135456085, 0.04050491005182266, -0.2707309424877167, 0.06447404623031616, 0.30293020606040955, 0.03131130710244179, 0.4102821946144104, 0.0723474770784378, -0.11756467819213867, 0.2593788802623749, -0.06507036089897156, -0.1717311590909958, -0.3983200192451477, -0.2220228612422943, 0.2776275873184204, -0.016454316675662994, 0.008640198037028313, -0.1884789764881134, -0.09860844910144806, 0.029451854526996613, -0.3627735674381256, -0.45934808254241943, 0.24721795320510864, 0.30251407623291016, 0.05539954453706741, -0.3028545379638672, 0.4305761456489563, 0.23268833756446838, 0.030453111976385117, -0.10312582552433014, -0.4151989221572876, -0.2457064986228943, 0.0794980451464653, -0.16264648735523224, 0.2742978036403656, -0.0632452517747879, 0.37348055839538574, 0.06517940014600754, 0.3338823616504669, -0.12835675477981567, 0.035249173641204834, 0.06767025589942932, 0.4144803583621979, -0.18571697175502777, -0.06400439888238907, 0.02846071682870388, 0.5671870708465576, -0.07031913101673126, -0.4127237796783447, 0.37535810470581055, -0.11110382527112961, 0.0034157484769821167, 0.23190414905548096, 0.12657734751701355, 0.0676538348197937, -0.21158282458782196, 0.2716361880302429, -0.21877814829349518, 0.15331220626831055, -0.1447095274925232, 0.12117364257574081, 0.02877768501639366, -0.09597378969192505, -0.19971796870231628, -0.19628849625587463, 0.3393838405609131, -0.13018694519996643, 0.22962617874145508, 0.1153038889169693, 0.08237656950950623, 0.10410261154174805, -0.055495455861091614, 0.2501112222671509, 0.036159880459308624, -0.46841803193092346, -0.05685988441109657, 0.00016457587480545044, 0.1268477439880371, -0.0011092363856732845, -0.27920103073120117, -0.3743989169597626, -0.19566239416599274, -0.12798264622688293, 0.5047436952590942, 0.023420866578817368, 0.1405041366815567, -0.43658646941185, 0.2666722536087036, 0.19135786592960358, 0.020943785086274147, -0.23519322276115417, 0.1179644912481308, 0.4022262692451477, -0.317434698343277, 0.23477843403816223, 0.2826932668685913, 0.1425820291042328, -0.22836634516716003, -0.14817851781845093, 0.2692001461982727, 0.328965961933136, -0.39236605167388916, -0.2372133433818817, -0.2452917844057083 ]
https://github.com/huggingface/datasets/issues/2161
We'll work on dataset streaming soon. This should allow you to only load the examples you need ;)
any possibility to download part of large datasets only?
Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks
18
any possibility to download part of large datasets only? Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks We'll work on dataset streaming soon. This should allow you to only load the examples you need ;)
[ -0.4160081148147583, -0.42279955744743347, -0.09121212363243103, 0.2210889458656311, 0.11789171397686005, 0.2086140215396881, -0.21589188277721405, 0.37463781237602234, 0.10753156244754791, 0.31373339891433716, -0.27787429094314575, -0.22648471593856812, -0.09712019562721252, 0.36238446831703186, 0.2786152958869934, -0.1379796862602234, -0.13105586171150208, 0.24092581868171692, -0.19593432545661926, -0.13605868816375732, 0.03519520163536072, -0.3711944818496704, -0.15575151145458221, -0.2762488126754761, 0.10728242993354797, 0.006538171321153641, -0.0016223341226577759, -0.15280194580554962, -0.32164567708969116, 0.17493519186973572, 0.12868300080299377, 0.09494262933731079, 0.2968362271785736, 0.022531602531671524, -0.00011449410521890968, -0.301268994808197, 0.3300117254257202, -0.20182788372039795, -0.20408017933368683, -0.06299808621406555, -0.32631734013557434, 0.16331705451011658, -0.2283705472946167, -0.2755314111709595, 0.05554895102977753, 0.15588968992233276, 0.15598225593566895, -0.021303534507751465, 0.32706326246261597, 0.12922093272209167, 0.14753474295139313, 0.052723586559295654, -0.1914350986480713, -0.07623811066150665, 0.28071415424346924, 0.14022226631641388, 0.01944083720445633, 0.056695930659770966, 0.6661748886108398, 0.30042165517807007, 0.10561983287334442, 0.08313050866127014, 0.011872880160808563, 0.19130226969718933, -0.09425293654203415, -0.33074966073036194, -0.19417929649353027, -0.6230315566062927, 0.2782779932022095, 0.8252425789833069, 0.6387518644332886, 0.09393470734357834, -0.17607711255550385, -0.2948755621910095, 0.1539803147315979, -0.1587243378162384, -0.24630755186080933, 0.6292652487754822, -0.32679393887519836, 0.17287692427635193, -0.5402045249938965, -0.23258845508098602, -0.18659107387065887, 0.2556459307670593, -0.21712839603424072, 0.08822651207447052, -0.07901552319526672, -0.03919127956032753, 0.3143949508666992, -0.03773905336856842, 0.31118062138557434, -0.09386315941810608, -0.2239779829978943, 0.18005797266960144, -0.23691079020500183, -0.3743756115436554, -0.3241962492465973, 0.3473263680934906, 0.3826080560684204, 0.1467505544424057, 0.2207316756248474, 0.19609135389328003, 0.06985940039157867, 0.026721764355897903, 0.4240182638168335, -0.17316389083862305, -0.2814110815525055, 0.20351389050483704, 0.25316905975341797, 0.03719893842935562, 0.04587683081626892, -0.0351087749004364, -0.19920006394386292, 0.2605748772621155, -0.5001295804977417, -0.020025715231895447, -0.3018491864204407, -0.4213239252567291, -0.014968827366828918, -0.2645728290081024, 0.11187563836574554, 0.10286843776702881, -0.07452192157506943, 0.17718639969825745, -0.006078340113162994, 0.20282453298568726, -0.3606563210487366, 0.03113897144794464, 0.07468011230230331, -0.5046661496162415, -0.09341901540756226, -0.006317982450127602, 0.04336822032928467, 0.04934374988079071, 0.37721219658851624, -0.2916140854358673, 0.379822313785553, -0.1353835016489029, 0.28609853982925415, 0.12165440618991852, -0.02313944324851036, -0.16521364450454712, -0.05646244063973427, 0.13201625645160675, 0.11936472356319427, 0.1957208514213562, -0.07567279785871506, 0.42381829023361206, -0.10837534815073013, 0.33434081077575684, -0.12002190947532654, -0.2665342092514038, 0.14576663076877594, 0.11892309784889221, -0.38603347539901733, -0.08082528412342072, -0.5248143076896667, 0.24879197776317596, -0.1913018524646759, -0.030138514935970306, 0.010198883712291718, 0.06028958037495613, -0.06744102388620377, -0.06655004620552063, 0.2375759780406952, 0.0933561697602272, -0.22845777869224548, -0.07916156202554703, -0.15456488728523254, -0.12236839532852173, 0.3714396357536316, 0.2702901363372803, -0.2721642255783081, -0.2225673496723175, -0.1437159776687622, -0.20536543428897858, 0.24524709582328796, 0.05322324484586716, -0.44163793325424194, 0.44374337792396545, 0.07188691943883896, -0.07789231836795807, 0.009583473205566406, 0.18845216929912567, 0.6336511969566345, 0.07954785227775574, -0.2656627893447876, 0.6198098063468933, -0.1294938027858734, 0.10185540467500687, -0.04974944517016411, -0.29075172543525696, -0.1316678822040558, 0.2972227931022644, 0.24757449328899384, 0.3914233148097992, 0.19081096351146698, 0.01409212127327919, 0.3742015063762665, -0.20352134108543396, 0.2755432724952698, 0.14888973534107208, 0.10480432212352753, -0.12195497006177902, -0.10441936552524567, -0.33297085762023926, -0.24559643864631653, 0.20191572606563568, 0.16703850030899048, -0.5572572946548462, 0.36599311232566833, -0.1457131803035736, 0.03629555553197861, -0.33274421095848083, 0.3766084909439087, 0.014064216986298561, -0.10433511435985565, -0.3237963914871216, 0.30236971378326416, -0.24434170126914978, -0.31781333684921265, -0.06961654871702194, -0.1488310694694519, 0.07942706346511841, 0.07924143970012665, 0.11608195304870605, 0.4168471395969391, 0.17950651049613953, 0.2777092456817627, -0.3217896521091461, -0.012097036466002464, -0.06773202866315842, 0.018138159066438675, 0.17624559998512268, 0.001372791826725006, 0.22478139400482178, 0.11530984193086624, -0.013718023896217346, 0.278359979391098, -0.1971491575241089, 0.04573420435190201, 0.2255697399377823, 0.14722441136837006, -0.06835175305604935, -0.44501081109046936, 0.3316788077354431, -0.2376503348350525, 0.17825014889240265, 0.12209004908800125, 0.01741711050271988, 0.2728703022003174, -0.13688385486602783, 0.07630138099193573, 0.13500948250293732, 0.4504813849925995, 0.07661425322294235, 0.21617068350315094, -0.024760786443948746, -0.4326865077018738, -0.23012584447860718, -0.02112645097076893, -0.2638639807701111, -0.2799149751663208, 0.21159598231315613, -0.413223534822464, 0.08179564774036407, 0.18872401118278503, 0.2074567675590515, 0.0813944935798645, 0.23288412392139435, 0.34954914450645447, -0.08283191919326782, 0.6517191529273987, -0.16662880778312683, -0.0071179792284965515, -0.0003748014569282532, -0.19143608212471008, -0.114366814494133, 0.05064581334590912, -0.27676457166671753, -0.07606140524148941, 0.14374153316020966, 0.20275896787643433, 0.07625820487737656, -0.008608728647232056, -0.3400784134864807, -0.24412453174591064, -0.6714409589767456, 0.07629583775997162, 0.15191926062107086, 0.057785987854003906, 0.002921000123023987, 0.019378820434212685, 0.4107503294944763, -0.026435978710651398, -0.08683151751756668, -0.03150639310479164, 0.5220622420310974, -0.09510642290115356, 0.24939055740833282, -0.10788001865148544, -0.03658386692404747, 0.08660070598125458, 0.22529712319374084, 0.11216476559638977, 0.17875760793685913, 0.24417544901371002, -0.023283421993255615, -0.08037979155778885, -0.39618468284606934, 0.011881977319717407, -0.03684644028544426, 0.3093239367008209, -0.09593378752470016, -0.1772041618824005, 0.42339882254600525, -0.16103965044021606, -0.017416685819625854, -0.2303728312253952, -0.1522226631641388, -0.034177474677562714, 0.02247893065214157, 0.06358587741851807, 0.2688588500022888, -0.16999551653862, 0.15253064036369324, -0.4189006984233856, -0.34680646657943726, 0.3461506962776184, 0.1341477930545807, 0.16333600878715515, -0.24186250567436218, -0.09211336076259613, -0.23228855431079865, -0.2644004225730896, -0.32776787877082825, 0.09475260972976685, -0.848811149597168, 0.413009911775589, -0.14862766861915588, -0.35363689064979553, -0.030391640961170197, 0.06459061801433563, -0.22825835645198822, 0.5403366684913635, -0.35212820768356323, 0.1787140965461731, -0.2025311440229416, -0.1195928156375885, 0.1085028126835823, 0.03184094280004501, -0.2324284315109253, -0.7003277540206909, 0.00024236738681793213, 0.006947703659534454, 0.21227672696113586, -0.1871308833360672, 0.1414143592119217, 0.3855125606060028, -0.061212047934532166, 0.04523054137825966, 0.11331652104854584, 0.6742672324180603, 0.12444137036800385, 0.17875736951828003, 0.029651759192347527, 0.09310165047645569, -0.017045054584741592, 0.039760105311870575, 0.0937466099858284, 0.3169902563095093, -0.07642588019371033, -0.1842021942138672, 0.17324528098106384, 0.07695546746253967, -0.2560743987560272, -0.33009159564971924, 0.051858365535736084, -0.11992323398590088, -0.12671807408332825, -0.053718842566013336, -0.15822382271289825, -0.004713606089353561, 0.14840607345104218, -0.020493321120738983, 0.062115997076034546, -0.24874606728553772, 0.04925920441746712, 0.028783926740288734, 0.39282912015914917, -0.016277670860290527, -0.4690263867378235, -0.0255297664552927, -0.30792051553726196, 0.0758051872253418, -0.09531449526548386, -0.10002603381872177, 0.0522104948759079, 0.10066363215446472, 0.07335469126701355, 0.26408645510673523, 0.3989117443561554, 0.015619711950421333, 0.1200767457485199, -0.1917632520198822, -0.19500324130058289, -0.19734841585159302, 0.035856835544109344, -0.03273136168718338, -0.013456497341394424, 0.24295838177204132, -0.1197204738855362, -0.3848586082458496, 0.290009081363678, -0.017188992351293564, 0.4906187057495117, -0.06990836560726166, -0.132218137383461, 0.1803017258644104, -0.04938007518649101, -0.20611755549907684, 0.2111075222492218, -0.08405402302742004, -0.21461248397827148, -0.2539413571357727, -0.07844042778015137, -0.12511926889419556, 0.1815260648727417, 0.05609782785177231, -0.12423013150691986, 0.05188645422458649, 0.13461914658546448, 0.3988800346851349, 0.14095650613307953, 0.11785876750946045, 0.23780396580696106, 0.42540666460990906, 0.29918646812438965, -0.11554879695177078, 0.04551652818918228, -0.08364700525999069, -0.04756338149309158, 0.1642216593027115, 0.029494132846593857, 0.24766309559345245, 0.3052615523338318, 0.2623022198677063, -0.1150100827217102, 0.11118073761463165, -0.4343549311161041, -0.11983289569616318, -0.49448221921920776, -0.6160655617713928, 0.44473594427108765, 0.16579127311706543, 0.04231782257556915, 0.426591694355011, -0.2824220061302185, 0.1392945647239685, -0.13797658681869507, -0.1551315188407898, 0.7866643667221069, -0.044668350368738174, 0.05662466213107109, -0.44204163551330566, 0.08234501630067825, 0.4862217605113983, 0.08888061344623566, -0.01560937613248825, -0.18645420670509338, -0.5498303771018982, -0.1266833394765854, -0.14243744313716888, -0.13486012816429138, 0.1910957396030426, -0.05130487680435181, 0.3555556535720825, -0.10166558623313904, 0.2523551285266876, 0.09638889133930206, -0.0012905970215797424, -0.3779740035533905, -0.22042860090732574, 0.09481675922870636, 0.07605620473623276, -0.12148356437683105, 0.30610743165016174, -0.0015228427946567535, -0.007502669468522072, -0.048564448952674866, 0.0961139053106308, -0.19559192657470703, 0.20648804306983948, -0.30520376563072205, -0.14306257665157318, -0.30391544103622437, -0.14054517447948456, 0.11907847970724106, -0.010974520817399025, -0.17447501420974731, 0.17680838704109192, -0.3655034303665161, 0.2938462197780609, 0.21100763976573944, 0.10514754056930542, -0.019023828208446503, 0.19186553359031677, -0.27700260281562805, -0.02214730903506279, -0.05500365048646927, 0.3291870951652527, 0.04091780260205269, -0.11036910861730576, -0.11555753648281097, -0.0003946349024772644, 0.10254453122615814, 0.08636537194252014, -0.19629009068012238, 0.03159027919173241, 0.07390916347503662, -0.13510996103286743, 0.0788361206650734, 0.1967618763446808, -0.1610274463891983, 0.32218754291534424, 0.28442561626434326, -0.12053439021110535, -0.24114172160625458, 0.5982013940811157, 0.11750379204750061, -0.19304682314395905, 0.05672236159443855, -0.024209044873714447, -0.21093395352363586, -0.14595922827720642, 0.12434959411621094, -0.23600566387176514, -0.12719720602035522, -0.05546855926513672, -0.29374629259109497, 0.31602832674980164, -0.09124564379453659, -0.05329708755016327, 0.1353043019771576, -0.056268878281116486, -0.022964276373386383, -0.2877103090286255, -0.37252557277679443, 0.2079891562461853, -0.005392436869442463, 0.17508679628372192, -0.14305603504180908, -0.03720627725124359, -0.0696326196193695, 0.2916402816772461, -0.20892097055912018, 0.3644315004348755, 0.13040955364704132, 0.28312069177627563, 0.2882480323314667, 0.3495227098464966, -0.24434801936149597, -0.06333497911691666, -0.03298317641019821, 0.21730969846248627, -0.028455011546611786, -0.1330004334449768, 0.0020385384559631348, 0.19847145676612854, 0.10894705355167389, -0.333796888589859, 0.17632359266281128, -0.19005268812179565, -0.09902048110961914, 0.04334509000182152, 0.1389492303133011, -0.015924088656902313, 0.2052643895149231, -0.3531026840209961, 0.5082846283912659, -0.17980952560901642, -0.5356281399726868, 0.4620232582092285, -0.11716286838054657, 0.1306311935186386, -0.07615192234516144, 0.3220211863517761, 0.32108795642852783, -0.12241561710834503, -0.21003863215446472, -0.22300642728805542, 0.21277111768722534, -0.13889652490615845, 0.3544563055038452, 0.1668492704629898, 0.3332604169845581, 0.24613693356513977, 0.24451787769794464, 0.5342572927474976, -0.043364983052015305, 0.21968066692352295, 0.4412214159965515, 0.21130682528018951, -0.09479184448719025, 0.013152197003364563, -0.07139275968074799, 0.0731758177280426, -0.004221305251121521, 0.06840169429779053, -0.09282876551151276, -0.33672022819519043, -0.18046963214874268, -0.3591631054878235, 0.1765955090522766, 0.24966062605381012, 0.22800196707248688, 0.7436216473579407, 0.20740410685539246, -0.2657697796821594, -0.3291832208633423, 0.25488603115081787, 0.18269385397434235, 0.2631571888923645, -0.04238695278763771, 0.3229687213897705, 0.17796911299228668, -0.00021909642964601517, 0.00750904344022274, -0.7347239851951599, -0.12779977917671204, 0.5495401620864868, -0.08632846176624298, 0.16957871615886688, -0.07509896159172058, 0.02668525092303753, 0.12947790324687958, -0.1292867809534073, -0.16577543318271637, 0.2464839220046997, 0.2347249984741211, 0.044692255556583405, -0.09856724739074707, -0.28845253586769104, -0.010883398354053497, 0.4674576222896576, 0.02649766393005848, -0.3120700716972351, 0.2790999710559845, 0.24821369349956512, 0.03834334760904312, -0.2654880881309509, -0.0185954999178648, 0.1521429717540741, 0.1460033506155014, -0.4191281795501709, -0.1224379613995552, -0.03345511481165886, 0.0014859102666378021, 0.4145696759223938, 0.07359693199396133, -0.17405343055725098, 0.06901335716247559, 0.21847061812877655, 0.05765322595834732, 0.20664969086647034, 0.07223530113697052, -0.10619761794805527, 0.005466878414154053, 0.3811667561531067, -0.017998207360506058, 0.382294237613678, 0.06616582721471786, -0.11204610764980316, 0.2347366064786911, -0.15278804302215576, -0.18837200105190277, -0.4321075677871704, -0.2551419138908386, 0.14603804051876068, 0.05448146164417267, -0.07767026126384735, -0.15922558307647705, -0.0845687985420227, 0.19610850512981415, -0.2716817259788513, -0.3965243399143219, 0.16756843030452728, 0.3351817727088928, 0.027568645775318146, -0.29278039932250977, 0.3786400556564331, 0.28642672300338745, 0.15047243237495422, -0.23016655445098877, -0.5346699357032776, -0.14993324875831604, 0.01947404071688652, -0.28911787271499634, 0.3038637042045593, 0.05465012788772583, 0.18949098885059357, 0.01816939003765583, 0.2077966034412384, -0.23922023177146912, 0.19314086437225342, -0.11284780502319336, 0.45489442348480225, -0.14576853811740875, -0.17258717119693756, -0.04973451793193817, 0.5787011384963989, -0.12782883644104004, -0.4009837508201599, 0.3574502766132355, -0.04561895877122879, -0.023870453238487244, 0.27803266048431396, 0.04568561911582947, 0.07404123246669769, -0.22558258473873138, 0.12810947000980377, -0.18695653975009918, 0.29947054386138916, -0.0536469891667366, 0.12349507212638855, 0.03354182839393616, -0.17415519058704376, -0.1832648515701294, -0.031552933156490326, 0.19471171498298645, -0.050250329077243805, 0.10122621804475784, 0.1653437465429306, 0.04384922236204147, 0.007373154163360596, -0.10482755303382874, 0.23652683198451996, -0.13007774949073792, -0.48232007026672363, -0.18680667877197266, 0.18125313520431519, 0.18287673592567444, -0.04846475273370743, -0.38405343890190125, -0.35021480917930603, -0.1270207315683365, -0.052652593702077866, 0.5525505542755127, -0.13134033977985382, 0.16209569573402405, -0.4143199622631073, 0.32364094257354736, 0.23187637329101562, 0.16698406636714935, -0.1339511275291443, 0.16102300584316254, 0.4107992947101593, -0.3414475917816162, 0.2553165853023529, 0.16873246431350708, 0.20224623382091522, -0.18332883715629578, -0.1224539577960968, 0.1712694615125656, 0.25161653757095337, -0.44053658843040466, -0.23495638370513916, -0.33145424723625183 ]
https://github.com/huggingface/datasets/issues/2161
thanks a lot Quentin, this would be really really a great feature to have On Wed, Apr 7, 2021 at 12:14 PM Quentin Lhoest ***@***.***> wrote: > We'll work on dataset streaming soon. This should allow you to only load > the examples you need ;) > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2161#issuecomment-814791922>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMROD62QAKIJMAKWISTTHQWBVANCNFSM42IUI5JQ> > . >
any possibility to download part of large datasets only?
Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks
79
any possibility to download part of large datasets only? Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks thanks a lot Quentin, this would be really really a great feature to have On Wed, Apr 7, 2021 at 12:14 PM Quentin Lhoest ***@***.***> wrote: > We'll work on dataset streaming soon. This should allow you to only load > the examples you need ;) > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2161#issuecomment-814791922>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMROD62QAKIJMAKWISTTHQWBVANCNFSM42IUI5JQ> > . >
[ -0.43335700035095215, -0.4534875750541687, -0.048732347786426544, 0.2667762041091919, 0.10812917351722717, 0.2431802749633789, -0.1623350828886032, 0.4673765003681183, 0.07347500324249268, 0.373820960521698, -0.36424610018730164, -0.20177599787712097, -0.09591162949800491, 0.457791805267334, 0.31955692172050476, -0.14727246761322021, -0.13571913540363312, 0.2194821536540985, -0.22383682429790497, -0.1688050776720047, 0.017404481768608093, -0.25931718945503235, -0.11237693578004837, -0.2532625198364258, 0.03506452962756157, 0.08985371142625809, -0.061715222895145416, -0.08445007354021072, -0.3761277198791504, 0.17010320723056793, 0.19839562475681305, 0.21408523619174957, 0.23669636249542236, -0.004821699112653732, -0.00011845343396998942, -0.28895726799964905, 0.2554897367954254, -0.14321252703666687, -0.18646898865699768, -0.057748474180698395, -0.1817249208688736, 0.10636816918849945, -0.23725394904613495, -0.2628685534000397, -0.009160898625850677, 0.1348174661397934, 0.06906677037477493, -0.021883130073547363, 0.35799023509025574, 0.03455135226249695, 0.11371423304080963, 0.1012045368552208, -0.14992141723632812, -0.10758097469806671, 0.2725988030433655, 0.16500110924243927, -0.02922770008444786, 0.06007721647620201, 0.5326680541038513, 0.2669932246208191, 0.1294609010219574, 0.11736702173948288, -0.002775438129901886, 0.2834874391555786, -0.09073434770107269, -0.18941205739974976, -0.26409390568733215, -0.6127957701683044, 0.21040381491184235, 0.8935747742652893, 0.5572633743286133, 0.0032652788795530796, -0.23654867708683014, -0.401639461517334, 0.13027897477149963, -0.34265726804733276, -0.1672671139240265, 0.5966562032699585, -0.3093201220035553, 0.19207650423049927, -0.5190604329109192, -0.15758006274700165, -0.1254056692123413, 0.27230972051620483, -0.22454345226287842, -0.013927917927503586, -0.17685028910636902, -0.04589007794857025, 0.4784286320209503, -0.0008330298587679863, 0.1448497623205185, -0.04732810705900192, -0.18770496547222137, 0.23026840388774872, -0.21431395411491394, -0.4565865099430084, -0.21577037870883942, 0.2906162440776825, 0.5468568801879883, 0.24758701026439667, 0.08481854200363159, 0.1489575356245041, -0.01710158959031105, -0.06353924423456192, 0.49155372381210327, -0.21489065885543823, -0.2800326347351074, 0.18189311027526855, 0.3234027028083801, 0.0830504447221756, 0.11061331629753113, -0.037657879292964935, -0.08445461094379425, 0.24532616138458252, -0.5971101522445679, -0.012254348956048489, -0.22035688161849976, -0.4416051208972931, 0.032508864998817444, -0.2539960741996765, 0.1385338008403778, 0.11375582218170166, -0.06862547993659973, 0.16529910266399384, 0.022753722965717316, 0.1592402160167694, -0.34008875489234924, 0.07052339613437653, -0.003873772919178009, -0.4409325420856476, -0.13291291892528534, -0.043223630636930466, 0.07125620543956757, 0.12385319173336029, 0.40136945247650146, -0.3420197665691376, 0.31700584292411804, -0.10577712953090668, 0.33919060230255127, 0.13961678743362427, -0.1107201874256134, -0.15961363911628723, -0.08811260759830475, 0.15613169968128204, 0.016900621354579926, 0.29201212525367737, -0.055125318467617035, 0.48356959223747253, -0.16436593234539032, 0.28219494223594666, -0.16101503372192383, -0.24017053842544556, 0.14690431952476501, 0.04072374105453491, -0.3738725185394287, -0.06187055632472038, -0.5082566142082214, 0.35867151618003845, -0.16991837322711945, 0.018191419541835785, -0.01898987963795662, 0.16380800306797028, -0.21602198481559753, -0.0025571510195732117, 0.23222476243972778, 0.25762689113616943, -0.21184709668159485, -0.1752520203590393, -0.13129094243049622, -0.13958631455898285, 0.31250154972076416, 0.37739288806915283, -0.2835654318332672, -0.22011533379554749, -0.22155585885047913, -0.06069130450487137, 0.19191545248031616, 0.04548296332359314, -0.47244322299957275, 0.3615726828575134, 0.009988933801651001, -0.030708882957696915, 0.04785684123635292, 0.14773818850517273, 0.6136126518249512, 0.03019680455327034, -0.16792087256908417, 0.5325429439544678, -0.08927097171545029, 0.0808938518166542, -0.049649372696876526, -0.36785316467285156, -0.15795616805553436, 0.27551230788230896, 0.1951165795326233, 0.41642293334007263, 0.17270642518997192, -0.040259409695863724, 0.44300222396850586, -0.22019264101982117, 0.3368229866027832, 0.18188127875328064, 0.16134223341941833, -0.08471815288066864, -0.15519684553146362, -0.4076608419418335, -0.2964690625667572, 0.2118472456932068, 0.13212159276008606, -0.49982142448425293, 0.3217771053314209, -0.21481162309646606, 0.03953064605593681, -0.3210994601249695, 0.4084581732749939, 0.005683461204171181, -0.1502961367368698, -0.3171796202659607, 0.35487255454063416, -0.1546444147825241, -0.3655127286911011, -0.07561531662940979, -0.11117339134216309, 0.1478281021118164, 0.00361468642950058, 0.13950654864311218, 0.4277283549308777, 0.18419408798217773, 0.2695961892604828, -0.20783758163452148, 0.012256055139005184, -0.13314637541770935, 0.04298574477434158, 0.14402273297309875, -0.02451847866177559, 0.13656219840049744, 0.09352842718362808, 0.08263511210680008, 0.3256613612174988, -0.07348495721817017, 0.010441238060593605, 0.08947721868753433, 0.10807862877845764, -0.04582203924655914, -0.4931144118309021, 0.4346592128276825, -0.20440182089805603, 0.10760042071342468, 0.05495135486125946, 0.04696499556303024, 0.27665385603904724, -0.17620548605918884, 0.05486248433589935, 0.051298558712005615, 0.47075676918029785, 0.008686602115631104, 0.1812572181224823, -0.049871787428855896, -0.47791361808776855, -0.15231706202030182, 0.09505414962768555, -0.18972960114479065, -0.2867538034915924, 0.2613026201725006, -0.3662058115005493, 0.16682474315166473, 0.13731005787849426, 0.14990031719207764, 0.16335788369178772, 0.19199742376804352, 0.3767036199569702, -0.0624542161822319, 0.6231997609138489, -0.11873938888311386, -0.05564345419406891, -0.04441845789551735, -0.24902305006980896, -0.020435426384210587, 0.06498987227678299, -0.19890058040618896, -0.13387206196784973, 0.17656150460243225, 0.19892635941505432, 0.1194390207529068, -0.03032878041267395, -0.3401845097541809, -0.3156103491783142, -0.566464364528656, 0.0017025396227836609, 0.1305924504995346, -0.030944067984819412, 0.008128412067890167, 0.07660109549760818, 0.4942077398300171, -0.08506254851818085, -0.12241151928901672, 0.019258998334407806, 0.5008319616317749, -0.112108014523983, 0.21830086410045624, -0.13506801426410675, 0.026211734861135483, 0.17692746222019196, 0.17613498866558075, 0.09954121708869934, 0.15481454133987427, 0.2831912040710449, 0.009690731763839722, -0.19144386053085327, -0.4029516875743866, -0.0166047140955925, 0.045612532645463943, 0.1962955892086029, -0.044983331114053726, -0.09822122752666473, 0.392892986536026, -0.12757854163646698, 0.05372229963541031, -0.1555531620979309, -0.1446162462234497, -0.13668912649154663, -0.01643425226211548, 0.05684991180896759, 0.30714088678359985, -0.2456604540348053, 0.12281870096921921, -0.39544546604156494, -0.33618658781051636, 0.5191755890846252, 0.20374974608421326, 0.13332585990428925, -0.15531378984451294, -0.1250762939453125, -0.19316022098064423, -0.37794020771980286, -0.35205668210983276, -0.00673661008477211, -0.8144294023513794, 0.360750675201416, -0.12280706316232681, -0.34299924969673157, -0.09613218903541565, 0.040607750415802, -0.2655552327632904, 0.4734801650047302, -0.4235665202140808, -0.007928196340799332, -0.2472912073135376, 0.02603587508201599, 0.13074272871017456, 0.06013356149196625, -0.09148292243480682, -0.7272816896438599, 0.013625167310237885, 0.04739274084568024, 0.09974095225334167, -0.16940268874168396, 0.18865202367305756, 0.31978151202201843, -0.0790272206068039, 0.09556469321250916, 0.06002773344516754, 0.7942327260971069, 0.20017015933990479, 0.2377907931804657, 0.025389578193426132, 0.009483657777309418, 0.10832135379314423, -0.08966917544603348, 0.022087402641773224, 0.31233081221580505, -0.08652933686971664, -0.12792904675006866, 0.17111408710479736, 0.09050104767084122, -0.17659008502960205, -0.28944292664527893, 0.11262048035860062, -0.0648023784160614, -0.22976890206336975, -0.08533016592264175, -0.0360884964466095, -0.04867061600089073, 0.17731818556785583, -0.04504302144050598, 0.10113798081874847, -0.2055664360523224, 0.0768798440694809, 0.10304513573646545, 0.42612260580062866, -0.0032627657055854797, -0.5111985206604004, 0.02560136839747429, -0.41514021158218384, 0.029855109751224518, -0.10081655532121658, -0.17545866966247559, 0.046176597476005554, 0.1045520156621933, 0.1455366015434265, 0.27493715286254883, 0.6094441413879395, 0.1287354975938797, 0.0785776823759079, -0.19022993743419647, -0.31725284457206726, -0.18194139003753662, 0.07371234148740768, -0.00690586119890213, -0.05384880676865578, 0.2234915792942047, -0.03622456267476082, -0.498929888010025, 0.21833094954490662, 0.11016678810119629, 0.4760246276855469, -0.08095961809158325, -0.12449619919061661, 0.1341005265712738, -0.0801888182759285, -0.34762728214263916, 0.27030232548713684, -0.0027732476592063904, -0.1474340260028839, -0.22242793440818787, -0.10434766113758087, -0.07866380363702774, 0.13698852062225342, -0.04334741830825806, -0.13676717877388, 0.06292050331830978, 0.1720430850982666, 0.5014215111732483, 0.24240361154079437, 0.05274359509348869, 0.19367173314094543, 0.5433931946754456, 0.29503223299980164, -0.18286025524139404, -0.03814326226711273, -0.04846425727009773, -0.06363305449485779, 0.2625676095485687, -0.0025892071425914764, 0.32133352756500244, 0.30597439408302307, 0.2316221296787262, -0.19258058071136475, 0.0793701633810997, -0.37399476766586304, -0.08208964765071869, -0.4709223508834839, -0.5614633560180664, 0.44754502177238464, 0.20287907123565674, 0.1062164306640625, 0.43466606736183167, -0.17954875528812408, 0.19824156165122986, -0.18832962214946747, -0.21632352471351624, 0.899852991104126, -0.09033385664224625, 0.1644763946533203, -0.40761056542396545, 0.1434992551803589, 0.527906596660614, 0.0885767936706543, 0.03772251307964325, -0.28369247913360596, -0.48371657729148865, -0.10545997321605682, -0.11520419269800186, -0.130611389875412, 0.1632205992937088, 0.014483563601970673, 0.30809399485588074, -0.013622716069221497, 0.2355787754058838, -0.10818396508693695, -0.05060397461056709, -0.324015736579895, -0.29658493399620056, 0.03360471874475479, 0.043238140642642975, -0.05380751192569733, 0.4086195230484009, 0.04873869568109512, -0.009885059669613838, -0.03677169978618622, -0.002393849194049835, -0.26056236028671265, 0.11736811697483063, -0.3374471664428711, -0.16537880897521973, -0.1736392378807068, -0.14034555852413177, 0.08178192377090454, -0.0643986389040947, -0.06800872087478638, 0.22430284321308136, -0.41721972823143005, 0.1950128972530365, 0.08757936209440231, 0.04868020862340927, -0.02898780256509781, 0.129509836435318, -0.23840932548046112, -0.016544096171855927, -0.027200251817703247, 0.2514556348323822, 0.08220133185386658, -0.18096274137496948, -0.05130477249622345, 0.02726609818637371, 0.0684538185596466, 0.0034612081944942474, -0.1599869728088379, 0.09558038413524628, 0.1455601155757904, -0.17361174523830414, 0.029726557433605194, 0.23404917120933533, -0.20631000399589539, 0.2809706926345825, 0.20660816133022308, -0.08707568049430847, -0.23320405185222626, 0.6446018218994141, 0.05929040163755417, -0.11786159873008728, 0.05742861330509186, 0.033147938549518585, -0.19507837295532227, -0.1573963463306427, 0.03826253116130829, -0.26703155040740967, -0.2920296788215637, 0.08269438147544861, -0.15291066467761993, 0.3014316260814667, -0.16644474864006042, 0.08020871877670288, 0.12900656461715698, -0.08194482326507568, -0.012851819396018982, -0.2683205008506775, -0.3731097877025604, 0.1780235469341278, -0.06947198510169983, 0.2584633231163025, -0.06438442319631577, 0.08845256268978119, -0.15602979063987732, 0.27333229780197144, -0.1831398904323578, 0.37516888976097107, 0.06500613689422607, 0.21674129366874695, 0.40756866335868835, 0.2854743003845215, -0.1137748584151268, -0.056487180292606354, -0.07383755594491959, 0.3291238248348236, -0.10990597307682037, -0.1135169118642807, -0.06403201073408127, 0.19949564337730408, 0.07892486453056335, -0.31845998764038086, 0.30139440298080444, -0.07497746497392654, -0.1752389669418335, -0.01621153950691223, 0.2714848816394806, 0.07364419102668762, 0.2812749743461609, -0.3258119225502014, 0.4892233610153198, -0.15731392800807953, -0.5090849995613098, 0.5505744218826294, -0.0986977070569992, 0.10004788637161255, -0.049487289041280746, 0.3082483112812042, 0.13025915622711182, -0.07716825604438782, -0.18665996193885803, -0.21836839616298676, 0.22845616936683655, -0.182815819978714, 0.3463939130306244, 0.16962853074073792, 0.2244618833065033, 0.37158024311065674, 0.32639288902282715, 0.4821101427078247, -0.06765519827604294, 0.2630613446235657, 0.4612113833427429, 0.1509508192539215, -0.1444547176361084, 0.006238244473934174, -0.02438942715525627, 0.05592351034283638, 0.03690546751022339, 0.09735558927059174, -0.027019649744033813, -0.27635613083839417, -0.11155462265014648, -0.388642817735672, 0.13203422725200653, 0.2663978934288025, 0.23233217000961304, 0.7065256834030151, 0.16356098651885986, -0.2393028736114502, -0.1509810984134674, 0.2523435056209564, 0.1701168715953827, 0.2535543143749237, -0.10033176839351654, 0.16286039352416992, 0.03097870945930481, -0.03164929896593094, -0.05845571681857109, -0.8065459132194519, -0.01915200613439083, 0.5419052839279175, -0.03797381371259689, 0.17814457416534424, -0.15306325256824493, 0.18853497505187988, 0.025043044239282608, -0.10179021954536438, -0.20430362224578857, 0.3760121464729309, 0.2479344606399536, -0.05192634090781212, 0.024659760296344757, -0.2595551013946533, 0.020593151450157166, 0.5150589942932129, 0.0020622373558580875, -0.3844747841358185, 0.3281678855419159, 0.17264075577259064, 0.02082923799753189, -0.3904666006565094, -0.09018975496292114, 0.1719793826341629, 0.1882949322462082, -0.36964306235313416, -0.13277268409729004, -0.07433028519153595, 0.004708833992481232, 0.40833377838134766, 0.12214604765176773, -0.1973831206560135, -0.08008928596973419, 0.31716859340667725, 0.07335023581981659, 0.11802978813648224, 0.10582257062196732, -0.11256629228591919, 0.05900755524635315, 0.25828495621681213, 0.029444843530654907, 0.4560610353946686, 0.0057618096470832825, -0.09179148077964783, 0.13436859846115112, -0.17613902688026428, -0.12729492783546448, -0.5407748222351074, -0.20457248389720917, 0.12287455052137375, 0.057800449430942535, -0.16242757439613342, -0.160659521818161, 0.011819429695606232, 0.09229736030101776, -0.2890815734863281, -0.3772733807563782, 0.187264546751976, 0.30176475644111633, 0.00849141925573349, -0.2976926863193512, 0.32890060544013977, 0.33524608612060547, 0.04068339616060257, -0.23484833538532257, -0.4091711640357971, -0.1602899730205536, 0.004114262759685516, -0.296725332736969, 0.3039312958717346, 0.012066733092069626, 0.234277606010437, 0.06127025932073593, 0.21363243460655212, -0.24685755372047424, 0.11883029341697693, 0.02625468373298645, 0.4117543697357178, -0.11587505042552948, -0.17258909344673157, -0.11437000334262848, 0.49098870158195496, -0.08078592270612717, -0.37513214349746704, 0.3062751889228821, 0.04049871489405632, -0.09828713536262512, 0.2537681460380554, 0.1508227437734604, -0.032650820910930634, -0.2881294786930084, 0.1547316461801529, -0.1046457439661026, 0.20126232504844666, -0.029606297612190247, 0.032739803194999695, -0.06946906447410583, -0.18015673756599426, -0.3215426504611969, -0.08716500550508499, 0.12650075554847717, 0.023267485201358795, 0.08513074368238449, 0.10311999917030334, -0.01838507503271103, 0.07649096101522446, -0.006339870393276215, 0.21281401813030243, -0.09353625774383545, -0.33864861726760864, -0.1426963061094284, 0.16227184236049652, 0.1784217357635498, 0.043668560683727264, -0.3368488550186157, -0.2921513319015503, -0.08951141685247421, -0.13959012925624847, 0.6184889078140259, -0.1524665504693985, 0.19478309154510498, -0.3990025520324707, 0.35057491064071655, 0.25272107124328613, 0.012110410258173943, -0.2960343360900879, 0.14545173943042755, 0.34030118584632874, -0.3048079311847687, 0.2326018512248993, 0.26218381524086, 0.07207562029361725, -0.23932352662086487, -0.11054696887731552, 0.30029305815696716, 0.3226248621940613, -0.4334450960159302, -0.10088656842708588, -0.3000037968158722 ]
https://github.com/huggingface/datasets/issues/2161
Is streaming completed? On the 1.8.0 docs it is mentioned (https://huggingface.co/docs/datasets/dataset_streaming.html), but when following the example I get the following error: ``` >>> dataset2 = load_dataset("amazon_us_reviews", "Pet_Products_v1_00", split='train', streaming=True) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-21-1eedab26cff1> in <module>() ----> 1 en_dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True) 3 frames /usr/local/lib/python3.7/dist-packages/datasets/builder.py in _create_builder_config(self, name, custom_features, **config_kwargs) 339 if value is not None: 340 if not hasattr(builder_config, key): --> 341 raise ValueError(f"BuilderConfig {builder_config} doesn't have a '{key}' key.") 342 setattr(builder_config, key, value) 343 ValueError: BuilderConfig OscarConfig(name='unshuffled_deduplicated_en', version=1.0.0, data_dir=None, data_files=None, description='Unshuffled and deduplicated, English OSCAR dataset') doesn't have a 'streaming' key. ``` UPDATE: Managed to get streaming working by building from source and installing the additional `datasets[streaming]` package: ``` !pip install git+https://github.com/huggingface/datasets.git !pip install datasets[streaming] ```
any possibility to download part of large datasets only?
Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks
123
any possibility to download part of large datasets only? Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks Is streaming completed? On the 1.8.0 docs it is mentioned (https://huggingface.co/docs/datasets/dataset_streaming.html), but when following the example I get the following error: ``` >>> dataset2 = load_dataset("amazon_us_reviews", "Pet_Products_v1_00", split='train', streaming=True) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-21-1eedab26cff1> in <module>() ----> 1 en_dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True) 3 frames /usr/local/lib/python3.7/dist-packages/datasets/builder.py in _create_builder_config(self, name, custom_features, **config_kwargs) 339 if value is not None: 340 if not hasattr(builder_config, key): --> 341 raise ValueError(f"BuilderConfig {builder_config} doesn't have a '{key}' key.") 342 setattr(builder_config, key, value) 343 ValueError: BuilderConfig OscarConfig(name='unshuffled_deduplicated_en', version=1.0.0, data_dir=None, data_files=None, description='Unshuffled and deduplicated, English OSCAR dataset') doesn't have a 'streaming' key. ``` UPDATE: Managed to get streaming working by building from source and installing the additional `datasets[streaming]` package: ``` !pip install git+https://github.com/huggingface/datasets.git !pip install datasets[streaming] ```
[ -0.4476090967655182, -0.38850757479667664, 0.009524676948785782, 0.3701239228248596, 0.10674449056386948, 0.19297009706497192, -0.03403514623641968, 0.5148774981498718, 0.08198730647563934, 0.23246882855892181, -0.4534539580345154, -0.1990632712841034, -0.17841632664203644, 0.40002280473709106, 0.32543113827705383, -0.1704496443271637, -0.11519579589366913, 0.18787458539009094, -0.08839751780033112, -0.17645560204982758, -0.06599108874797821, -0.06619966775178909, -0.16015450656414032, -0.1373347043991089, 0.087867870926857, -0.012793399393558502, -0.00026019662618637085, -0.06068923696875572, -0.395277738571167, -0.04828987270593643, 0.27919021248817444, 0.18990696966648102, 0.11140252649784088, 0.13634514808654785, -0.0001268418418476358, -0.16900494694709778, 0.36333897709846497, -0.16904519498348236, -0.3607494533061981, -0.18974846601486206, -0.17678865790367126, 0.0864565372467041, -0.025888899341225624, -0.1968064308166504, 0.06428682059049606, 0.053665176033973694, 0.019607139751315117, -0.020211927592754364, 0.42065101861953735, 0.07902717590332031, 0.07566116005182266, 0.2862711548805237, 0.10644286870956421, 0.10840727388858795, 0.18967115879058838, 0.18961644172668457, 0.04242192208766937, 0.17440123856067657, 0.26369982957839966, 0.2539016306400299, 0.054478175938129425, 0.26743215322494507, 0.025896601378917694, 0.31221115589141846, 0.049410320818424225, -0.18324971199035645, -0.1826818585395813, -0.6686460375785828, 0.15874072909355164, 0.6345415711402893, 0.28205960988998413, -0.017611199989914894, -0.50977623462677, -0.48166561126708984, 0.1284908652305603, -0.6643291711807251, -0.0680876225233078, 0.6299393177032471, -0.436210036277771, 0.05158650875091553, -0.6224968433380127, -0.25770530104637146, -0.208242729306221, 0.30439624190330505, -0.1951347291469574, 0.16371528804302216, -0.2123505026102066, 0.13191910088062286, 0.26448768377304077, -0.010098695755004883, 0.09591950476169586, -0.23199966549873352, -0.048996541649103165, 0.36511820554733276, -0.17213818430900574, -0.3230680525302887, -0.13007666170597076, 0.28234779834747314, 0.3912600576877594, 0.2919590175151825, -0.017113789916038513, 0.1264040172100067, 0.1318630427122116, -0.08209560811519623, 0.5853521823883057, -0.107489213347435, -0.3332638144493103, 0.2814316749572754, 0.31892484426498413, 0.3265119791030884, 0.13559135794639587, -0.08955101668834686, -0.12136130779981613, 0.2551879584789276, -0.36150211095809937, -0.06698964536190033, 0.06411509215831757, -0.34080779552459717, -0.045938845723867416, -0.12804917991161346, 0.03052801638841629, -0.08644656836986542, 0.00002553686499595642, 0.226681649684906, -0.09998191893100739, 0.2417338788509369, -0.22761917114257812, 0.06287777423858643, -0.08239921927452087, -0.2827228903770447, -0.0952996164560318, 0.001926124095916748, 0.10599003732204437, 0.12427063286304474, 0.26759880781173706, -0.5731205344200134, 0.38853347301483154, -0.11377266049385071, 0.5026562213897705, 0.09646899253129959, -0.1554781198501587, -0.1604899764060974, 0.03891906514763832, 0.3139612078666687, 0.06505174934864044, 0.4057742953300476, 0.012490417808294296, 0.25475120544433594, -0.2002495527267456, 0.22391405701637268, -0.10989506542682648, -0.4199581444263458, 0.012407610192894936, 0.005358763039112091, -0.376522958278656, -0.040493085980415344, -0.39703842997550964, 0.2838449478149414, 0.028533367440104485, 0.10679545998573303, -0.06249311566352844, 0.11745256930589676, -0.09114378690719604, -0.026389634236693382, 0.3707154095172882, 0.34943389892578125, -0.09239158779382706, -0.205437570810318, -0.15739941596984863, -0.07376615703105927, 0.2902519404888153, 0.442282497882843, -0.30341747403144836, -0.12680119276046753, -0.21154741942882538, -0.25985509157180786, 0.35513606667518616, -0.08563461154699326, -0.3528122007846832, 0.38336503505706787, 0.1783616542816162, 0.15542781352996826, 0.1417039930820465, -0.010490775108337402, 0.6427507400512695, 0.07842691987752914, 0.01671915128827095, 0.49661165475845337, -0.17280404269695282, -0.04365666210651398, -0.08874460309743881, -0.31991612911224365, -0.19306504726409912, 0.32922011613845825, 0.16751064360141754, 0.3437733054161072, -0.06550963222980499, 0.015856895595788956, 0.430468887090683, -0.09275200963020325, 0.44229215383529663, 0.13392551243305206, 0.2232973873615265, 0.05173511803150177, -0.2251434624195099, -0.4198054075241089, -0.39002397656440735, 0.20230057835578918, 0.23021063208580017, -0.3973639905452728, 0.13226589560508728, -0.19382178783416748, -0.0703587755560875, -0.25236597657203674, 0.1331312656402588, -0.13788196444511414, -0.15565933287143707, -0.13282117247581482, 0.3140978217124939, -0.13433539867401123, -0.5509428977966309, -0.024498261511325836, -0.04209455847740173, 0.26126226782798767, -0.11010077595710754, 0.2821856141090393, 0.17815515398979187, -0.010213349014520645, 0.27287667989730835, -0.15922170877456665, -0.05083279311656952, -0.1912720799446106, -0.048192013055086136, 0.2164038121700287, -0.03732839226722717, 0.021638542413711548, -0.16553345322608948, 0.09648314118385315, 0.39407509565353394, -0.0028953030705451965, -0.028051361441612244, 0.15977007150650024, 0.09470181912183762, -0.05281627178192139, -0.2889880836009979, 0.5896886587142944, -0.0793757513165474, 0.15611174702644348, 0.27975767850875854, 0.06299358606338501, 0.2583141028881073, 0.024599671363830566, -0.11242441833019257, -0.011121302843093872, 0.3463191092014313, -0.12931424379348755, 0.3581709861755371, -0.13276329636573792, -0.5335000157356262, -0.23083871603012085, 0.3453400731086731, -0.17338579893112183, -0.3991057872772217, 0.2580745220184326, -0.2973136305809021, 0.12247277796268463, 0.1615038961172104, 0.010375484824180603, 0.08037684112787247, 0.11099128425121307, 0.32998111844062805, 0.055658288300037384, 0.4505045711994171, -0.03249698132276535, 0.09743572026491165, 0.10505366325378418, -0.2600085139274597, 0.05057951435446739, 0.05766972526907921, -0.13390380144119263, -0.32360324263572693, -0.029412753880023956, 0.1493062674999237, 0.23425845801830292, -0.17115235328674316, -0.18212619423866272, -0.23602083325386047, -0.4625363349914551, -0.15647178888320923, -0.11586149036884308, -0.13088196516036987, -0.09925461560487747, -0.08404487371444702, 0.6108603477478027, 0.018610499799251556, 0.010747566819190979, -0.02535378560423851, 0.1656917929649353, 0.025436043739318848, 0.22909194231033325, -0.22433830797672272, 0.010529577732086182, 0.15500688552856445, 0.05687311664223671, 0.1393430233001709, -0.03750137239694595, 0.30748119950294495, -0.05997581034898758, -0.2525288462638855, -0.25691497325897217, -0.09061504155397415, 0.08302593231201172, 0.015033196657896042, -0.04398384690284729, 0.04171031340956688, 0.5142202377319336, -0.18079182505607605, -0.12340927124023438, 0.014885880053043365, -0.07610691338777542, -0.17660918831825256, -0.010460074990987778, -0.06917833536863327, 0.2297690212726593, -0.09461628645658493, 0.04198602959513664, -0.4150296747684479, -0.31445664167404175, 0.5148342251777649, 0.3765215575695038, 0.24716895818710327, 0.04150637239217758, -0.10720012336969376, -0.19119252264499664, -0.45650240778923035, -0.19222232699394226, 0.017525967210531235, -0.8641304969787598, 0.370621919631958, -0.04801236838102341, -0.2978562116622925, 0.016930244863033295, 0.012265346944332123, -0.1107025146484375, 0.3640223741531372, -0.3850353956222534, 0.11719959229230881, -0.22120217978954315, 0.20640014111995697, 0.08811616897583008, 0.17451059818267822, 0.0010338053107261658, -0.5461445450782776, 0.10233306139707565, 0.0984678715467453, 0.018748417496681213, -0.2533029615879059, 0.25855228304862976, 0.28782105445861816, -0.11345423758029938, 0.30379682779312134, 0.010864876210689545, 1.0486695766448975, 0.3577299416065216, 0.1942342072725296, 0.1153859794139862, -0.014585616998374462, 0.1851331889629364, -0.19119197130203247, -0.14586172997951508, 0.34573838114738464, -0.0789470225572586, -0.06684507429599762, 0.1051468551158905, 0.041511744260787964, -0.138857901096344, -0.3954808712005615, 0.24840319156646729, -0.04389122873544693, -0.25282877683639526, -0.11722704023122787, -0.2193700671195984, 0.09959566593170166, 0.09064999967813492, 0.05423690378665924, 0.12590457499027252, -0.17675723135471344, -0.1605110764503479, 0.21121294796466827, 0.4497785270214081, 0.07694314420223236, -0.2806779742240906, -0.0941864475607872, -0.5484694242477417, -0.01838143914937973, -0.09681138396263123, 0.020768657326698303, 0.0716719776391983, 0.13695842027664185, 0.17761322855949402, 0.19995303452014923, 0.42516088485717773, 0.01505204476416111, -0.08514133095741272, -0.10038632899522781, -0.39122381806373596, -0.37929651141166687, -0.05833697319030762, -0.06164001673460007, 0.03257736191153526, 0.22906169295310974, 0.21590310335159302, -0.5989774465560913, 0.12835875153541565, 0.21327030658721924, 0.4295917749404907, -0.08556148409843445, -0.035984743386507034, -0.1612870991230011, -0.25177139043807983, -0.47689181566238403, 0.33928966522216797, -0.001853950321674347, -0.008567515760660172, -0.13740353286266327, -0.11143490672111511, 0.06964979320764542, 0.20641359686851501, -0.03328285366296768, -0.07653750479221344, -0.05475328117609024, 0.1620873659849167, 0.5258147716522217, 0.20968934893608093, 0.12317170202732086, 0.15520821511745453, 0.5412436723709106, 0.29212066531181335, -0.328769326210022, -0.12306802719831467, 0.13140234351158142, 0.03376340866088867, 0.26639795303344727, -0.07076290249824524, 0.2665625512599945, 0.45619997382164, 0.2169492095708847, -0.056978337466716766, 0.04307366535067558, -0.11177940666675568, -0.03144233301281929, -0.43663954734802246, -0.6649060845375061, 0.18338607251644135, 0.028956376016139984, 0.17199911177158356, 0.5021622180938721, -0.08935199677944183, 0.08722297847270966, -0.12498694658279419, -0.3470999300479889, 0.8403228521347046, 0.023059159517288208, 0.2463889718055725, -0.08385156095027924, -0.09157886356115341, 0.43627291917800903, 0.3076655864715576, 0.030249405652284622, -0.30094078183174133, -0.27916771173477173, -0.054498109966516495, -0.08971801400184631, 0.047579340636730194, 0.0608515627682209, 0.004792958498001099, 0.456930011510849, 0.023494362831115723, 0.44313380122184753, -0.15066120028495789, 0.09437903761863708, -0.37895044684410095, -0.2833106517791748, -0.19512955844402313, -0.04395921528339386, -0.2036375105381012, 0.5190585255622864, -0.02767873927950859, -0.052973855286836624, 0.09001411497592926, -0.10410155355930328, -0.2623254060745239, -0.03052828088402748, -0.3110882043838501, -0.07734048366546631, -0.18209895491600037, -0.3320746421813965, 0.044980257749557495, -0.2058795690536499, -0.18799155950546265, 0.059703510254621506, -0.2648639678955078, 0.1744455099105835, 0.07886055111885071, 0.05306851863861084, -0.08421437442302704, 0.166314035654068, -0.15949589014053345, -0.09513384848833084, -0.07962708175182343, 0.28967708349227905, 0.026067186146974564, -0.12592706084251404, 0.013498172163963318, -0.04320588707923889, 0.22840569913387299, 0.04985959455370903, -0.07769658416509628, 0.011871017515659332, -0.0022435560822486877, -0.24759912490844727, -0.012500234879553318, 0.06004560366272926, -0.28257060050964355, 0.2127387672662735, 0.1388469934463501, -0.026846162974834442, -0.23507243394851685, 0.714500904083252, 0.09066611528396606, 0.02341017872095108, 0.24106305837631226, -0.06896603107452393, -0.23823454976081848, -0.06989743560552597, 0.06501902639865875, -0.1627768874168396, -0.3265152871608734, 0.1060190349817276, -0.08222507685422897, 0.4988994002342224, -0.33905768394470215, 0.08034931123256683, 0.15330512821674347, -0.04551926627755165, -0.05211712047457695, -0.285950243473053, -0.4637410044670105, 0.233949676156044, -0.03108936920762062, 0.14471811056137085, -0.20976638793945312, 0.21932625770568848, -0.014475949108600616, 0.20213980972766876, -0.14645853638648987, 0.1956728845834732, 0.009067319333553314, 0.22114187479019165, 0.3122570812702179, 0.17343173921108246, 0.041219186037778854, 0.03694227337837219, -0.0457015261054039, 0.1359824389219284, -0.10843899846076965, -0.0496177077293396, -0.03139568492770195, 0.23141302168369293, 0.1327962577342987, -0.5099079608917236, 0.31592491269111633, 0.006871432065963745, -0.30465784668922424, 0.021336447447538376, 0.3179294466972351, 0.05784820020198822, 0.20316177606582642, -0.1624804586172104, 0.44049742817878723, -0.09216484427452087, -0.4527812600135803, 0.27823692560195923, -0.11947961151599884, 0.28838181495666504, -0.06766903400421143, 0.26285141706466675, 0.20848506689071655, -0.11201079934835434, -0.25170907378196716, -0.2253289520740509, 0.08569900691509247, -0.11282213777303696, 0.48099157214164734, -0.027779728174209595, 0.18761847913265228, 0.2091197520494461, 0.5395691990852356, 0.669428825378418, -0.05301634594798088, 0.26180511713027954, 0.4446730315685272, 0.08094745874404907, -0.18986588716506958, 0.11107760667800903, -0.00033221766352653503, -0.023184597492218018, 0.041207388043403625, 0.09320538491010666, -0.10434543341398239, -0.2828887104988098, -0.20340308547019958, -0.28177228569984436, 0.13389122486114502, 0.2542670965194702, 0.2420218288898468, 0.7089775800704956, 0.17163152992725372, -0.12100350856781006, 0.04190489649772644, 0.26155486702919006, 0.13529622554779053, 0.23262563347816467, -0.22850684821605682, 0.14355406165122986, 0.049317680299282074, 0.01025343593209982, 0.028356026858091354, -0.6977859735488892, -0.12622565031051636, 0.3491155803203583, 0.07340751588344574, 0.17991864681243896, -0.15200583636760712, 0.22286348044872284, -0.0722617357969284, -0.08456160128116608, -0.25147199630737305, 0.48075807094573975, 0.20588627457618713, -0.12140810489654541, -0.0505666621029377, -0.22089122235774994, -0.0029637739062309265, 0.49859535694122314, -0.0006191761931404471, -0.385256290435791, 0.3646083176136017, 0.23823317885398865, -0.00540393590927124, -0.5793506503105164, -0.07963038235902786, 0.11951784789562225, 0.26729053258895874, -0.3746908903121948, 0.1289028376340866, 0.16699251532554626, 0.023402469232678413, 0.20074783265590668, 0.2626672089099884, 0.005499876104295254, 0.0036872942000627518, 0.1897207498550415, 0.18321065604686737, 0.24778226017951965, 0.015730232000350952, -0.05119779333472252, 0.07284153997898102, 0.24607613682746887, 0.1826985627412796, 0.4314572215080261, -0.07487224042415619, -0.06866831332445145, 0.07530276477336884, -0.14665207266807556, -0.22830332815647125, -0.5099496245384216, 0.04235140606760979, -0.1217954233288765, -0.009737826883792877, -0.13894595205783844, -0.10625651478767395, -0.16948160529136658, 0.053489185869693756, -0.17334774136543274, -0.17761921882629395, 0.08983816206455231, 0.15357589721679688, -0.04052962362766266, -0.28150230646133423, 0.4673684239387512, 0.30161815881729126, 0.026628104969859123, -0.2878841161727905, -0.4712391495704651, -0.2998329997062683, -0.0577356182038784, -0.2856626808643341, 0.17771273851394653, 0.04572371765971184, 0.32719510793685913, -0.14263051748275757, 0.1498183310031891, -0.18285155296325684, 0.02416110783815384, 0.030470699071884155, 0.43487703800201416, -0.08607593923807144, -0.18516874313354492, -0.05834416300058365, 0.42656564712524414, -0.12826475501060486, -0.2810758650302887, 0.3487749695777893, -0.021672550588846207, -0.16899974644184113, 0.21715274453163147, 0.10065829008817673, 0.036466084420681, -0.20010031759738922, 0.08565674722194672, -0.02344234101474285, 0.331154465675354, -0.0020100176334381104, -0.07884159684181213, 0.0014260262250900269, -0.1774407923221588, -0.33675485849380493, 0.13562174141407013, 0.013405472040176392, 0.27511730790138245, 0.20301488041877747, -0.09706546366214752, -0.24720844626426697, 0.23576149344444275, -0.09300818294286728, -0.19594962894916534, -0.024399232119321823, -0.25969356298446655, -0.12722426652908325, 0.24606254696846008, 0.12971261143684387, 0.1128147765994072, -0.37088748812675476, -0.29481837153434753, -0.26482367515563965, -0.200414776802063, 0.7916324734687805, -0.2839851379394531, -0.009040392935276031, -0.38637855648994446, 0.29183149337768555, 0.24596668779850006, -0.0674036368727684, -0.35439497232437134, 0.2752072811126709, 0.41306838393211365, -0.3291517198085785, -0.001619100570678711, 0.2715640962123871, -0.07412973046302795, -0.06618700176477432, -0.06462966650724411, 0.391355961561203, 0.2036435753107071, -0.459603488445282, -0.10897649824619293, -0.23078666627407074 ]
https://github.com/huggingface/datasets/issues/2161
Hi ! Streaming is available on `master` only right now. We'll make a new release 1.9.0 on Monday :)
any possibility to download part of large datasets only?
Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks
19
any possibility to download part of large datasets only? Hi Some of the datasets I need like cc100 are very large, and then I wonder if I can download first X samples of the shuffled/unshuffled data without going through first downloading the whole data then sampling? thanks Hi ! Streaming is available on `master` only right now. We'll make a new release 1.9.0 on Monday :)
[ -0.4722629189491272, -0.42555660009384155, -0.11318694800138474, 0.1344197392463684, 0.08804640918970108, 0.1738647073507309, -0.35428911447525024, 0.3757149577140808, -0.05025853216648102, 0.32865628600120544, -0.4129244089126587, -0.22793138027191162, -0.14858108758926392, 0.37937071919441223, 0.20087580382823944, -0.06608588993549347, -0.10954242944717407, 0.2192227691411972, -0.1483975052833557, -0.11359628289937973, 0.016390256583690643, -0.2493554949760437, -0.23752515017986298, -0.3178962767124176, 0.20180049538612366, 0.027764352038502693, -0.04851274937391281, -0.29042232036590576, -0.5257319211959839, 0.07570073753595352, 0.10521890223026276, 0.1233389675617218, 0.21342600882053375, 0.10938827693462372, -0.00011517097300384194, -0.3466498851776123, 0.4168190062046051, -0.1254797726869583, -0.04906598851084709, -0.12480123341083527, -0.3066554665565491, 0.13042142987251282, -0.19112463295459747, -0.16259047389030457, 0.05359296500682831, 0.15013697743415833, 0.20089362561702728, 0.06956461071968079, 0.18056288361549377, 0.13092786073684692, 0.1482645571231842, 0.06354402750730515, -0.11458589136600494, -0.024538816884160042, 0.28957056999206543, 0.06781235337257385, -0.02971828728914261, 0.006540238857269287, 0.5009748339653015, 0.3647522032260895, 0.11643412709236145, 0.043658316135406494, 0.052416056394577026, 0.12260475754737854, 0.010125573724508286, -0.3156891167163849, -0.1707392930984497, -0.6554219126701355, 0.352636456489563, 0.7226453423500061, 0.6469687223434448, 0.10122235119342804, -0.2085971236228943, -0.04357629269361496, 0.17564235627651215, -0.2512716054916382, -0.14274320006370544, 0.6370518207550049, -0.32587873935699463, 0.1487773358821869, -0.5430158972740173, -0.31550198793411255, -0.168767049908638, 0.3041640520095825, -0.2599722743034363, 0.3214053511619568, -0.00019901245832443237, -0.049997638911008835, 0.3603450059890747, -0.002015603706240654, 0.22640876471996307, 0.02280205488204956, -0.3124682307243347, 0.2853652536869049, -0.2960832715034485, -0.3794878125190735, -0.34367799758911133, 0.25945258140563965, 0.29984283447265625, 0.08919915556907654, 0.18238717317581177, 0.2357153445482254, 0.08006614446640015, 0.015136267989873886, 0.5451427102088928, -0.10761742293834686, -0.32332533597946167, 0.07301320880651474, 0.3837719261646271, 0.010113436728715897, 0.16880466043949127, -0.024871252477169037, -0.0028992630541324615, 0.25877130031585693, -0.5076771974563599, -0.00036334432661533356, -0.2615728974342346, -0.4713280498981476, 0.15599802136421204, -0.27774763107299805, 0.13626371324062347, 0.07075919210910797, -0.08103185892105103, 0.10706602036952972, -0.09066994488239288, 0.24105405807495117, -0.4281465411186218, -0.07361094653606415, 0.09756920486688614, -0.32209041714668274, -0.10914395749568939, -0.010577096603810787, 0.02805272489786148, -0.07879247516393661, 0.26437896490097046, -0.5082529187202454, 0.33718031644821167, -0.07951782643795013, 0.33613499999046326, 0.18067723512649536, -0.18926966190338135, -0.14881747961044312, -0.08880899846553802, 0.2145671248435974, 0.10499471426010132, 0.24177569150924683, -0.20716151595115662, 0.5045180916786194, -0.036806151270866394, 0.29933443665504456, -0.12071625888347626, -0.28353479504585266, 0.1389859914779663, 0.13096006214618683, -0.2674582004547119, -0.06298570334911346, -0.38696956634521484, 0.285452276468277, -0.17792649567127228, 0.000047229230403900146, -0.01426972821354866, 0.07765742391347885, -0.04353667050600052, -0.11507788300514221, 0.2379496991634369, -0.13078495860099792, -0.23731529712677002, 0.006890282034873962, -0.16206224262714386, -0.1715000867843628, 0.4258079528808594, 0.35340219736099243, -0.17072875797748566, -0.39605316519737244, -0.06739979237318039, -0.15462595224380493, 0.21486368775367737, 0.04374915361404419, -0.5386933088302612, 0.3985547423362732, 0.13178564608097076, -0.2564820945262909, 0.08212979882955551, 0.15255257487297058, 0.634428083896637, 0.11936815083026886, -0.2234908789396286, 0.550154983997345, -0.058909326791763306, 0.05750102549791336, -0.09514034539461136, -0.32143211364746094, -0.21857915818691254, 0.16350029408931732, 0.34249556064605713, 0.43175095319747925, 0.2950880527496338, 0.09507770836353302, 0.41951650381088257, -0.08960893750190735, 0.285612553358078, 0.1713017374277115, 0.18273472785949707, -0.13418841361999512, -0.0874413251876831, -0.30885353684425354, -0.0879281610250473, 0.1430225968360901, 0.123908132314682, -0.3638294041156769, 0.40670961141586304, -0.19225789606571198, 0.0884808823466301, -0.29141056537628174, 0.4060342609882355, -0.06551791727542877, -0.06968774646520615, -0.1784232258796692, 0.2960863709449768, -0.22086745500564575, -0.37305721640586853, -0.20067700743675232, -0.08022363483905792, 0.08894119411706924, 0.07609519362449646, 0.04536760598421097, 0.22785282135009766, 0.1880149245262146, 0.30125486850738525, -0.3396293520927429, 0.01828252524137497, -0.07574104517698288, 0.03271787613630295, 0.248290553689003, -0.07515759766101837, 0.14017917215824127, 0.05564112216234207, 0.04823276400566101, 0.40314781665802, -0.14971178770065308, -0.02832697331905365, 0.3423367440700531, 0.12930269539356232, -0.03660997003316879, -0.35197538137435913, 0.277118980884552, -0.21772515773773193, 0.12332785129547119, 0.16993482410907745, -0.002215273678302765, 0.3464895486831665, -0.07572908699512482, 0.07701323181390762, 0.12729647755622864, 0.3411633372306824, 0.037285108119249344, 0.07226698845624924, -0.15664085745811462, -0.3699498176574707, -0.2574920952320099, 0.06308533251285553, -0.1521056592464447, -0.26229628920555115, 0.17612986266613007, -0.35420796275138855, 0.037774890661239624, 0.1432311087846756, 0.15736675262451172, 0.04348473250865936, 0.18283239006996155, 0.5009163022041321, -0.018932489678263664, 0.5529601573944092, -0.19130386412143707, 0.03230607509613037, 0.013521192595362663, -0.36775192618370056, 0.010849324986338615, 0.0776749849319458, -0.32396361231803894, -0.11856955289840698, 0.24153925478458405, 0.22910088300704956, 0.15484286844730377, 0.1494724452495575, -0.4640163779258728, -0.31058594584465027, -0.5512290000915527, 0.15153153240680695, 0.0502728708088398, -0.024674704298377037, -0.011874817311763763, 0.08195358514785767, 0.4645320177078247, 0.034257546067237854, -0.12360935658216476, 0.028705410659313202, 0.37852251529693604, -0.13204951584339142, 0.4409329891204834, -0.1768299639225006, -0.04130013287067413, 0.23562827706336975, 0.22115390002727509, 0.021822653710842133, 0.027051426470279694, 0.1783609837293625, 0.07616356015205383, -0.0646817535161972, -0.3325958251953125, -0.06394873559474945, -0.009442964568734169, 0.2617274820804596, -0.19629783928394318, -0.13347284495830536, 0.3212757706642151, -0.0662328451871872, 0.028873659670352936, -0.21674807369709015, -0.31177014112472534, -0.14007166028022766, -0.06692107766866684, -0.005110226571559906, 0.15075179934501648, -0.18149390816688538, 0.14281386137008667, -0.4396058917045593, -0.37904268503189087, 0.37848201394081116, 0.221427321434021, 0.16002468764781952, -0.3005804419517517, -0.12108799815177917, -0.18777741491794586, -0.2930063009262085, -0.43803924322128296, 0.046203259378671646, -0.8105818629264832, 0.3229450583457947, -0.16863040626049042, -0.3520539402961731, 0.1457243263721466, 0.20764286816120148, -0.12111596018075943, 0.47950172424316406, -0.4310852885246277, 0.2508367896080017, -0.11923284828662872, -0.1019100770354271, 0.18766851723194122, -0.03282730653882027, -0.21471479535102844, -0.655967652797699, -0.03969563543796539, 0.030842691659927368, 0.2113589197397232, -0.32045048475265503, 0.32150641083717346, 0.38772374391555786, -0.07771903276443481, 0.002718033269047737, 0.12302090227603912, 0.6648046374320984, 0.061028823256492615, 0.323686808347702, 0.03483361005783081, 0.17357666790485382, 0.03902248293161392, -0.06267261505126953, 0.08752448856830597, 0.3505370616912842, -0.07656276226043701, -0.1801753044128418, 0.2538129985332489, 0.09234577417373657, -0.3871079981327057, -0.404689222574234, -0.04929443821310997, 0.05568966269493103, -0.043590594083070755, -0.10425011068582535, 0.030758272856473923, -0.02793658897280693, 0.1188506931066513, 0.059945136308670044, 0.1685609072446823, -0.31203576922416687, 0.08691856265068054, 0.07484383136034012, 0.3088529109954834, 0.007437996566295624, -0.38632920384407043, -0.14855894446372986, -0.36135169863700867, 0.06316252052783966, -0.10047326982021332, 0.08255725353956223, 0.0680253803730011, 0.16436277329921722, 0.2066696286201477, 0.14466024935245514, 0.3816036880016327, -0.03746604919433594, 0.05002222955226898, -0.18974748253822327, -0.22011195123195648, -0.0895114317536354, 0.026840515434741974, -0.04170531779527664, -0.09655206650495529, 0.3259876072406769, -0.1407381296157837, -0.35434043407440186, 0.28895723819732666, 0.0056224483996629715, 0.3419514000415802, -0.09034911543130875, -0.04512723907828331, 0.11832858622074127, -0.042790915817022324, -0.18472246825695038, 0.2522399425506592, -0.20721496641635895, -0.16322648525238037, -0.15601129829883575, -0.1090736836194992, -0.03185480087995529, 0.02163221687078476, -0.08288870751857758, -0.10005168616771698, 0.030827350914478302, 0.04532917961478233, 0.3428441882133484, 0.17782893776893616, 0.08197095990180969, 0.128407821059227, 0.4695057272911072, 0.3658314049243927, -0.11564629524946213, 0.08671104162931442, -0.13060608506202698, -0.1015806496143341, 0.20938223600387573, 0.043739911168813705, 0.2808159291744232, 0.4085552990436554, 0.21244961023330688, -0.03126263990998268, 0.06222967430949211, -0.29497337341308594, -0.09415120631456375, -0.5202360153198242, -0.5601614713668823, 0.31089797616004944, 0.09657999873161316, 0.08670821785926819, 0.4958631694316864, -0.309611439704895, 0.16381379961967468, -0.09905454516410828, -0.15063117444515228, 0.8891245126724243, 0.07540920376777649, -0.006490587256848812, -0.5325064659118652, -0.028491705656051636, 0.420016884803772, 0.027640968561172485, 0.13561758399009705, -0.197504460811615, -0.46142858266830444, -0.14234060049057007, -0.016706816852092743, -0.09320586919784546, 0.07164864242076874, -0.0662965327501297, 0.345225065946579, 0.07348272204399109, 0.4262354373931885, 0.004112400114536285, 0.03176458179950714, -0.30031144618988037, -0.11157930642366409, 0.2346547394990921, 0.06934376806020737, -0.14333036541938782, 0.32730206847190857, -0.05579233914613724, -0.03270820528268814, 0.09005215764045715, 0.1534622311592102, -0.1626335084438324, 0.12209033966064453, -0.29196661710739136, -0.1220974326133728, -0.4284983277320862, -0.20952269434928894, -0.09000968188047409, -0.15981976687908173, -0.17676611244678497, 0.224577859044075, -0.3927688002586365, 0.2770690619945526, 0.22089523077011108, 0.06146017834544182, -0.009739819914102554, 0.2679327130317688, -0.30074018239974976, -0.15300264954566956, -0.12181545794010162, 0.3161701560020447, 0.016243290156126022, -0.2604295015335083, -0.11980735510587692, 0.009550247341394424, 0.04727525636553764, 0.20625872910022736, -0.07873611897230148, 0.06089527904987335, -0.06785771995782852, -0.1324036419391632, 0.0844365581870079, 0.14058636128902435, -0.2451874315738678, 0.29264748096466064, 0.28065311908721924, -0.20300769805908203, -0.312792032957077, 0.7061343789100647, 0.22174176573753357, -0.1477392017841339, -0.030907737091183662, -0.03484438359737396, -0.2691619396209717, -0.10946132987737656, 0.03441004455089569, -0.28474533557891846, -0.09704206883907318, -0.043613169342279434, -0.3754638433456421, 0.24511995911598206, -0.036651238799095154, 0.03636852651834488, 0.08636946231126785, -0.009860515594482422, -0.2653489112854004, -0.309307336807251, -0.34737205505371094, 0.1356409192085266, -0.030889544636011124, 0.13359302282333374, -0.17477676272392273, -0.013115189969539642, 0.00016885995864868164, 0.26955315470695496, -0.2037924826145172, 0.2694520652294159, 0.19992008805274963, 0.23872323334217072, 0.21729974448680878, 0.3061387836933136, -0.1917399764060974, -0.019399024546146393, -0.04670928418636322, 0.21475881338119507, -0.0651555135846138, -0.1116473600268364, 0.07715959846973419, 0.1865224540233612, 0.19707953929901123, -0.3018147945404053, 0.10859105736017227, -0.1156172901391983, -0.21137872338294983, 0.10276774317026138, 0.1767238974571228, -0.03823898360133171, 0.2515650689601898, -0.3463003635406494, 0.5911298990249634, -0.23286223411560059, -0.46939969062805176, 0.4542545974254608, 0.016507605090737343, 0.09747644513845444, -0.07872003316879272, 0.31400957703590393, 0.29154306650161743, -0.1683989316225052, -0.17227965593338013, -0.2812141478061676, 0.08527730405330658, -0.10301429033279419, 0.3749880790710449, 0.20427855849266052, 0.32147184014320374, 0.2236580103635788, 0.34701406955718994, 0.5542969703674316, 0.14615416526794434, 0.18567508459091187, 0.41677334904670715, 0.18807277083396912, -0.149730384349823, -0.10003234446048737, -0.11438530683517456, 0.14407184720039368, -0.02574790269136429, 0.0018492266535758972, -0.022577568888664246, -0.32636499404907227, -0.051548782736063004, -0.27044329047203064, 0.08884896337985992, 0.1532999575138092, 0.1793411672115326, 0.8333563804626465, 0.15310440957546234, -0.2371094524860382, -0.1882932335138321, 0.20687705278396606, 0.15924762189388275, 0.37303727865219116, -0.047956641763448715, 0.30596259236335754, 0.30635225772857666, -0.031264156103134155, 0.0032448433339595795, -0.5970544815063477, -0.2141679972410202, 0.4046420454978943, -0.014237146824598312, 0.20925424993038177, 0.034460946917533875, -0.04815904423594475, -0.010661911219358444, -0.0931052416563034, -0.18164712190628052, 0.2660163938999176, 0.21271060407161713, -0.003987345844507217, -0.11504092812538147, -0.278525173664093, 0.10949742794036865, 0.5113763809204102, 0.13223181664943695, -0.19804444909095764, 0.26082754135131836, 0.24900740385055542, 0.030873816460371017, -0.2651609778404236, -0.13597993552684784, 0.033269379287958145, 0.1771012395620346, -0.39871084690093994, -0.14821726083755493, 0.023441290482878685, 0.06288610398769379, 0.43942636251449585, 0.06442006677389145, -0.16142871975898743, 0.05876504257321358, 0.21055419743061066, 0.05680359527468681, 0.16347888112068176, 0.03555630147457123, -0.13017182052135468, 0.0776372104883194, 0.4430593252182007, -0.009220320731401443, 0.2910926342010498, 0.058515630662441254, -0.09595347940921783, 0.3714146018028259, -0.2060943841934204, -0.06720656156539917, -0.3228956162929535, -0.1336224377155304, 0.1930326223373413, -0.039132870733737946, -0.009422501549124718, -0.18115733563899994, -0.16062921285629272, 0.18332797288894653, -0.3444311320781708, -0.46966221928596497, 0.16435474157333374, 0.1820179671049118, 0.01930057257413864, -0.23343795537948608, 0.44817930459976196, 0.15795710682868958, 0.01055467315018177, -0.09909766912460327, -0.48646777868270874, -0.25038719177246094, 0.09596402943134308, -0.13517996668815613, 0.35147368907928467, -0.0042079538106918335, 0.24308016896247864, 0.016355451196432114, 0.26706063747406006, -0.12352083623409271, -0.013192418962717056, -0.04541705176234245, 0.4119947552680969, -0.16007688641548157, -0.08166182786226273, -0.014287136495113373, 0.5789082050323486, -0.15454864501953125, -0.279096394777298, 0.44369471073150635, -0.13085024058818817, -0.009698942303657532, 0.3190697133541107, -0.05066441744565964, 0.13811592757701874, -0.19561591744422913, 0.10839308798313141, -0.22875064611434937, 0.16347894072532654, -0.12174117565155029, 0.09674565494060516, -0.004798600450158119, -0.13235540688037872, -0.2796778678894043, -0.04935276880860329, 0.22815242409706116, 0.08087412267923355, 0.1648787260055542, 0.07417692244052887, 0.016876529902219772, 0.1159248948097229, -0.19046036899089813, 0.15389421582221985, -0.01674499735236168, -0.5041576623916626, -0.2152559906244278, 0.09473861753940582, 0.15374577045440674, -0.0536784753203392, -0.2692042291164398, -0.5225881934165955, -0.1821424663066864, -0.07931678742170334, 0.5730478167533875, -0.09710345417261124, 0.24021178483963013, -0.4517632722854614, 0.12121383845806122, 0.3278098702430725, 0.1860436201095581, -0.1825706511735916, 0.13677749037742615, 0.2774828374385834, -0.24974194169044495, 0.21364034712314606, 0.13517072796821594, 0.061291344463825226, -0.11358059197664261, -0.17278438806533813, 0.09571145474910736, 0.3469178378582001, -0.47552984952926636, -0.25745779275894165, -0.2557220458984375 ]
https://github.com/huggingface/datasets/issues/2160
Hi. I cannot always reproduce this issue, and on later runs I did not see it so far. Sometimes also I set 8 processes but I see less being showed, is this normal, here only 5 are shown for 8 being set, thanks ``` #3: 11%|███████████████▊ | 172/1583 [00:46<06:21, 3.70ba/s] #4: 9%|█████████████▏ | 143/1583 [00:46<07:46, 3.09ba/s] #7: 6%|█████████ | 98/1583 [00:45<11:34, 2.14ba/s] #5: 8%|███████████▍ | 124/1583 [00:46<09:03, 2.68ba/s] #6: 7%|██████████▏ ```
data_args.preprocessing_num_workers almost freezes
Hi @lhoestq I am running this code from huggingface transformers https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py to speed up tokenization, since I am running on multiple datasets, I am using data_args.preprocessing_num_workers = 4 with opus100 corpus but this moves on till a point and then this freezes almost for sometime during tokenization steps and then this is back again, overall to me taking more time than normal case, I appreciate your advice on how I can use this option properly to speed up. thanks
71
data_args.preprocessing_num_workers almost freezes Hi @lhoestq I am running this code from huggingface transformers https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py to speed up tokenization, since I am running on multiple datasets, I am using data_args.preprocessing_num_workers = 4 with opus100 corpus but this moves on till a point and then this freezes almost for sometime during tokenization steps and then this is back again, overall to me taking more time than normal case, I appreciate your advice on how I can use this option properly to speed up. thanks Hi. I cannot always reproduce this issue, and on later runs I did not see it so far. Sometimes also I set 8 processes but I see less being showed, is this normal, here only 5 are shown for 8 being set, thanks ``` #3: 11%|███████████████▊ | 172/1583 [00:46<06:21, 3.70ba/s] #4: 9%|█████████████▏ | 143/1583 [00:46<07:46, 3.09ba/s] #7: 6%|█████████ | 98/1583 [00:45<11:34, 2.14ba/s] #5: 8%|███████████▍ | 124/1583 [00:46<09:03, 2.68ba/s] #6: 7%|██████████▏ ```
[ -0.2514107823371887, -0.24791930615901947, -0.16687631607055664, 0.06956711411476135, 0.12973305583000183, -0.1807379573583603, 0.4334706664085388, 0.0990598201751709, -0.3538163900375366, 0.244042307138443, 0.06387810409069061, 0.2399454414844513, 0.09411627054214478, -0.13301880657672882, -0.047090739011764526, 0.1516227126121521, 0.15839454531669617, 0.01122346892952919, -0.10869941115379333, 0.1517173796892166, -0.3039165437221527, 0.2973913252353668, -0.18187159299850464, -0.14950019121170044, -0.3720231354236603, 0.07120047509670258, 0.1070433184504509, -0.0386771559715271, 0.12662643194198608, -0.3786485493183136, -0.3722391724586487, 0.26217371225357056, -0.17171502113342285, 0.39772650599479675, -0.00012823344150092453, 0.05515650659799576, 0.33100202679634094, 0.3341307044029236, -0.09938351809978485, 0.1854705512523651, 0.5246144533157349, -0.36839476227760315, 0.08927946537733078, 0.06015336513519287, -0.012781396508216858, 0.04051879793405533, -0.05778573453426361, -0.10246416926383972, 0.4945961833000183, -0.023532964289188385, 0.010640401393175125, 0.5192908644676208, -0.12196007370948792, 0.23355938494205475, -0.3205536901950836, 0.1153101772069931, -0.07880301028490067, 0.11737042665481567, 0.40103399753570557, 0.19734811782836914, 0.3235229253768921, 0.1297675222158432, -0.11783312261104584, -0.04554910585284233, -0.06722535938024521, 0.21811985969543457, 0.46640801429748535, -0.6463080048561096, 0.25403252243995667, 0.11692167073488235, -0.0574614591896534, 0.12873710691928864, -0.06596211344003677, -0.28026852011680603, -0.11096259951591492, -0.5052869915962219, 0.04789715260267258, -0.286601185798645, -0.003585830330848694, -0.08456330001354218, -0.1638437807559967, -0.03434527665376663, 0.03805582970380783, 0.07459099590778351, 0.2919779419898987, 0.4023820161819458, -0.2579994201660156, 0.1412988305091858, 0.48592236638069153, 0.05207700654864311, -0.14399001002311707, -0.2433382272720337, 0.17482921481132507, 0.17393019795417786, -0.3967978358268738, 0.09487991034984589, -0.23608167469501495, 0.16596804559230804, -0.12084673345088959, 0.09117257595062256, -0.11026779562234879, 0.5134538412094116, 0.4665883481502533, -0.2004278600215912, -0.13143330812454224, -0.16845092177391052, 0.023127371445298195, -0.39389634132385254, 0.5149441957473755, 0.07730604708194733, 0.012577645480632782, 0.06597746908664703, -0.24289897084236145, -0.5354478359222412, 0.1613682359457016, 0.14075136184692383, 0.04159393906593323, -0.1196804791688919, 0.2090463638305664, 0.08007171750068665, 0.19078631699085236, -0.22903959453105927, 0.34542375802993774, 0.37522003054618835, -0.2789570689201355, 0.1992184966802597, -0.25752007961273193, 0.04506402462720871, -0.5872559547424316, -0.05578295886516571, 0.0518546923995018, -0.2311391830444336, -0.015339173376560211, 0.18878388404846191, 0.20719048380851746, -0.2020411342382431, 0.1966591328382492, 0.21440762281417847, 0.6740501523017883, -0.42260077595710754, 0.36319249868392944, -0.16366496682167053, -0.009649548679590225, 0.24473656713962555, -0.07275526970624924, 0.36243152618408203, 0.03528733178973198, 0.35869884490966797, -0.3110884130001068, 0.015067043714225292, 0.007411076687276363, -0.2275884747505188, 0.16345946490764618, -0.04803527891635895, -0.03236553445458412, 0.24336817860603333, 0.005601290613412857, 0.1432509571313858, 0.5009926557540894, 0.38757073879241943, 0.030053582042455673, -0.11953552812337875, -0.4238315522670746, 0.025399643927812576, 0.2834199368953705, 0.4679890275001526, 0.523302435874939, -0.04024777561426163, -0.036437585949897766, -0.022538235411047935, 0.7288458943367004, 0.2094699591398239, -0.024338804185390472, -0.022109031677246094, -0.0677255317568779, 0.14436393976211548, -0.08108316361904144, 0.07232636213302612, 0.05671376734972, 0.22704117000102997, -0.22406497597694397, -0.08603647351264954, 0.2414156049489975, 0.07262939214706421, 0.13470962643623352, -0.08777010440826416, 0.17004725337028503, 0.17612549662590027, 0.2823867201805115, 0.17342330515384674, -0.23523128032684326, 0.014629162847995758, -0.01283346302807331, 0.01717059314250946, -0.3240710496902466, -0.06738214194774628, -0.5180615782737732, -0.04161674901843071, 0.07033634185791016, 0.005442761816084385, 0.11184200644493103, 0.1537817418575287, -0.08346768468618393, 0.05608459562063217, 0.3274906277656555, 0.017531603574752808, -0.12218019366264343, -0.03794047608971596, -0.3193320631980896, 0.26696857810020447, 0.07846372574567795, -0.0842260792851448, 0.03206547349691391, 0.09097088873386383, -0.18675416707992554, -0.0062118228524923325, -0.1380515694618225, -0.034719496965408325, 0.19205909967422485, -0.06700481474399567, 0.003446020185947418, -0.08312857151031494, 0.04758510738611221, 0.26880910992622375, -0.2574957311153412, 0.004419393837451935, 0.08328799158334732, -0.14555932581424713, -0.11000828444957733, 0.09419487416744232, 0.061434291303157806, -0.3610614240169525, 0.016560237854719162, 0.2966274619102478, 0.14660589396953583, 0.3110170364379883, -0.44795581698417664, 0.5583020448684692, 0.2145089954137802, 0.12905824184417725, 0.0892316922545433, 0.009278997778892517, 0.02177327871322632, -0.14510418474674225, 0.4335663914680481, 0.42997610569000244, -0.2997782826423645, 0.390612930059433, 0.10706082731485367, -0.18210497498512268, -0.05600440502166748, 0.24892687797546387, -0.2439725697040558, -0.02617540955543518, 0.45408767461776733, -0.04775170981884003, 0.23011571168899536, 0.22236429154872894, -0.18363234400749207, 0.2125941514968872, 0.12373490631580353, 0.011178813874721527, -0.17037247121334076, 0.04037664830684662, -0.07345665246248245, -0.13347899913787842, -0.2499895989894867, -0.6115142107009888, 0.17777825891971588, -0.006928861141204834, -0.03656022250652313, -0.04786008596420288, 0.004238437861204147, -0.2061079442501068, 0.2798289656639099, 0.4372166097164154, 0.18675941228866577, 0.17119650542736053, -0.19493015110492706, -0.07323575764894485, -0.18251971900463104, -0.12971177697181702, 0.1186935231089592, 0.16722653806209564, -0.18958057463169098, 0.13663631677627563, -0.2387169599533081, 0.293896347284317, -0.16629913449287415, -0.18490874767303467, -0.43972352147102356, -0.025722745805978775, -0.1499883085489273, 0.0983167365193367, 0.010331913828849792, 0.1029525175690651, 0.024233415722846985, 0.08819844573736191, -0.1002233624458313, 0.062253475189208984, -0.16127589344978333, 0.03716089203953743, -0.04911845177412033, -0.24530377984046936, 0.2989143133163452, 0.1687110811471939, -0.008034204132854939, 0.13532908260822296, -0.3070056140422821, -0.011072810739278793, -0.274990975856781, 0.14004667103290558, 0.17085586488246918, 0.3440091907978058, -0.07351697981357574, 0.18973040580749512, 0.0009129196405410767, 0.027605071663856506, 0.10068599134683609, -0.15946930646896362, -0.06420637667179108, 0.02152101695537567, -0.15029852092266083, -0.12482890486717224, -0.13208407163619995, 0.015224490314722061, -0.24380744993686676, -0.18981808423995972, 0.15899141132831573, -0.07821744680404663, -0.04243313893675804, 0.13178753852844238, -0.013868026435375214, 0.13393330574035645, 0.25902101397514343, 0.14529134333133698, -0.16621387004852295, -0.0018489733338356018, 0.318667471408844, -0.10285074263811111, -0.1215234100818634, -0.3235511779785156, -0.10727063566446304, 0.13146111369132996, -0.2445206344127655, -0.06091195344924927, -0.01519257202744484, -0.5067571401596069, -0.24232438206672668, -0.17239268124103546, 0.09723877906799316, 0.42484378814697266, -0.006683070212602615, -0.00994132086634636, 0.1922747790813446, -0.22691017389297485, 0.2570296823978424, -0.06192408502101898, -0.3097361922264099, 0.13963976502418518, 0.470805287361145, -0.29675495624542236, 0.6741127967834473, 0.07496549189090729, -0.19546116888523102, 0.050569094717502594, 0.03686921298503876, -0.15079283714294434, -0.05533483251929283, -0.08528514206409454, 0.1318521350622177, 0.2249402105808258, -0.05527140945196152, 0.3454122841358185, -0.10595874488353729, 0.08141537755727768, 0.12672968208789825, -0.08241714537143707, 0.017004258930683136, -0.3068864643573761, 0.3244256377220154, 0.1441502869129181, 0.40296515822410583, -0.023412924259901047, 0.11085887253284454, -0.08627299964427948, -0.4016607403755188, -0.09623660147190094, 0.11966744065284729, 0.24145174026489258, -0.16954705119132996, -0.6161898374557495, 0.01372203603386879, -0.7858521342277527, 0.3828301429748535, -0.04589075967669487, 0.5199116468429565, 0.10822793841362, 0.00566236674785614, 0.3145134449005127, -0.34670525789260864, 0.767084002494812, 0.18229064345359802, -0.12790364027023315, 0.09623683989048004, -0.7098243832588196, -0.05824654549360275, 0.007529899477958679, -0.0926193967461586, 0.27249664068222046, 0.356678307056427, 0.7060551047325134, -0.3017212748527527, -0.37767839431762695, -0.07670886814594269, 0.056351423263549805, 0.0015053153038024902, -0.4166153073310852, -0.4019542634487152, 0.050190240144729614, -0.2863698899745941, 0.5134524703025818, 0.09065842628479004, 0.14054769277572632, -0.210941344499588, -0.03323725610971451, 0.12022186815738678, -0.2873508930206299, 0.4236607253551483, 0.20795370638370514, -0.09130946546792984, -0.023702338337898254, 0.38068222999572754, 0.47868549823760986, -0.22901958227157593, 0.1489967703819275, -0.17072150111198425, -0.07795540243387222, -0.2364802062511444, 0.38106054067611694, -0.0867980569601059, 0.5450716018676758, 0.5472584962844849, 0.13629397749900818, 0.40631502866744995, 0.3780593276023865, 0.43740609288215637, -0.2749786376953125, 0.12596333026885986, 0.15476836264133453, 0.5308869481086731, -0.4130479097366333, -0.08188081532716751, 0.14028730988502502, 0.20813822746276855, -0.022931300103664398, 0.05615106225013733, -0.17624475061893463, -0.06340791285037994, 0.20713180303573608, 0.39168837666511536, 1.1319561004638672, -0.3283148407936096, 0.18569602072238922, -0.4327249228954315, -0.060308054089546204, 0.5704901814460754, -0.332420289516449, 0.23799622058868408, -0.36569058895111084, -0.27178627252578735, 0.1850219964981079, -0.3282357454299927, 0.3038598895072937, 0.11890417337417603, -0.26281917095184326, 0.15213951468467712, -0.330632746219635, 0.043228112161159515, -0.41425415873527527, 0.31918054819107056, 0.04041347652673721, -0.6195263862609863, -0.04950981214642525, -0.028282420709729195, 0.0733608603477478, 0.29552921652793884, -0.10565398633480072, 0.08358749747276306, 0.01094382256269455, 0.04976595938205719, 0.0896117240190506, -0.13606618344783783, -0.16936463117599487, -0.038821399211883545, 0.5821493864059448, 0.032406553626060486, 0.318007230758667, -0.07773567736148834, 0.559885561466217, 0.2434161901473999, 0.07809261977672577, -0.03411180526018143, -0.15887658298015594, -0.14680658280849457, -0.05158853530883789, -0.0682881623506546, 0.012342965230345726, -0.21246783435344696, 0.051139816641807556, -0.23811575770378113, 0.08215406537055969, 0.00588439404964447, -0.1636519730091095, 0.016618166118860245, 0.023244012147188187, 0.04675760865211487, -0.1821015477180481, 0.3080945312976837, -0.32144594192504883, -0.11671313643455505, -0.042315077036619186, 0.24041032791137695, -0.44038939476013184, 0.3303351104259491, -0.02884000912308693, -0.17389385402202606, -0.11710505187511444, 0.0892917662858963, -0.02649581804871559, -0.4030739367008209, 0.6092648506164551, 0.2181994915008545, -0.26661354303359985, -0.08541584759950638, -0.29377588629722595, -0.10686688125133514, -0.3492940068244934, 0.37411561608314514, 0.3237864375114441, -0.2295299619436264, -0.07805856317281723, -0.19870011508464813, -0.35089200735092163, -0.11822471767663956, -0.3102805018424988, -0.2950769066810608, -0.4665009379386902, -0.38010331988334656, 0.041147295385599136, 0.12332342565059662, -0.047160472720861435, 0.264437198638916, -0.3896647095680237, 0.06245504319667816, -0.07857926189899445, -0.1725253164768219, -0.4062478840351105, 0.08998154103755951, -0.1120753213763237, -0.5190095901489258, -0.028190577402710915, 0.11428852379322052, -0.0714789628982544, 0.4420267939567566, -0.15874017775058746, -0.06389815360307693, -0.227193683385849, 0.23498158156871796, -0.28009313344955444, -0.44364234805107117, 0.3615058958530426, 0.30015939474105835, -0.23314662277698517, -0.27035659551620483, -0.15953968465328217, -0.16437682509422302, -0.19939860701560974, -0.5072798132896423, 0.3599966764450073, 0.11985645443201065, 0.019919216632843018, 0.19143447279930115, -0.06745274364948273, -0.0008586384356021881, 0.18648648262023926, 0.3077498972415924, 0.02940479665994644, -0.05588887631893158, -0.008452281355857849, 0.07327932119369507, 0.6394948363304138, -0.3363308310508728, 0.01888561248779297, 0.043363410979509354, -0.17313380539417267, 0.14656829833984375, -0.0477740615606308, 0.5118208527565002, 0.18133197724819183, -0.2633015811443329, 0.3250023126602173, -0.021707259118556976, 0.018075406551361084, -0.07004044204950333, 0.18655075132846832, -0.02274215593934059, -0.02385707199573517, 0.4588424563407898, 0.3922019898891449, 0.2405368685722351, 0.15288162231445312, 0.2555946409702301, 0.16364039480686188, -0.38295426964759827, -0.10786428302526474, -0.18121382594108582, -0.015402562916278839, 0.24504224956035614, 0.43654078245162964, 0.03753508999943733, 0.1505812108516693, -0.17976988852024078, 0.13358743488788605, 0.2507675290107727, 0.2416340708732605, 0.4925801455974579, -0.1382799744606018, -0.225493922829628, -0.41745513677597046, 0.5522568225860596, -0.0057643987238407135, 0.37909311056137085, -0.0028129853308200836, 0.33594635128974915, -0.055462513118982315, -0.009885739535093307, -0.174577534198761, 0.5061414241790771, -0.12616011500358582, -0.4475288987159729, 0.14269763231277466, 0.1112099140882492, -0.2979698181152344, 0.07718502730131149, 0.1318657100200653, 0.025680560618638992, -0.04230335354804993, 0.10804116725921631, 0.01195334643125534, -0.18286730349063873, -0.2537565231323242, -0.1672244817018509, 0.2278694212436676, -0.09834672510623932, 0.01251218281686306, 0.04525982216000557, 0.009741907939314842, -0.01993553340435028, -0.024796130135655403, 0.5128125548362732, 0.20044289529323578, -0.15374833345413208, 0.08116418123245239, -0.10682475566864014, 0.3018485903739929, -0.15130901336669922, 0.42706751823425293, 0.04190041124820709, 0.3001245856285095, -0.1047821044921875, -0.2305850386619568, -0.15402831137180328, -0.5271898508071899, -0.04196833446621895, -0.043149035423994064, 0.03327929228544235, 0.2451082468032837, 0.14595279097557068, -0.17569755017757416, -0.22532512247562408, 0.1532505303621292, -0.2153148651123047, -0.06143710017204285, 0.3286035358905792, -0.3338751196861267, -0.1148734986782074, -0.006767932325601578, -0.020161498337984085, -0.11261085420846939, 0.6130871176719666, -0.05898521468043327, 0.3415980339050293, -0.1647949516773224, -0.14364372193813324, -0.3964851498603821, -0.186051145195961, 0.23747864365577698, 0.35873547196388245, 0.16471326351165771, -0.10602475702762604, 0.08674847334623337, 0.06717735528945923, -0.07128673791885376, -0.3454672694206238, -0.011450745165348053, 0.30947786569595337, -0.3384152054786682, 0.35388410091400146, -0.43424755334854126, 0.02720952220261097, 0.1970861554145813, -0.11753786355257034, 0.28732314705848694, 0.16830122470855713, -0.19996300339698792, -0.32453328371047974, 0.0758446604013443, -0.24537059664726257, 0.2596360445022583, 0.09639030694961548, 0.31846004724502563, 0.14641599357128143, -0.015788830816745758, -0.010973475873470306, 0.0959523618221283, 0.2608543932437897, -0.06974376738071442, 0.0721195638179779, 0.10495023429393768, -0.16480359435081482, -0.14674580097198486, -0.1313745677471161, -0.24522456526756287, 0.05675054341554642, -0.011805474758148193, -0.17454847693443298, -0.056841351091861725, 0.04691312462091446, -0.0768703818321228, 0.2094801813364029, 0.159263014793396, 0.4812909960746765, 0.26519784331321716, -0.05060868337750435, -0.32238295674324036, -0.08048861473798752, 0.4254728853702545, -0.2499648630619049, -0.3929425776004791, -0.620663046836853, 0.17666584253311157, 0.0027144737541675568, 0.11211887001991272, -0.23807039856910706, -0.11829835176467896, 0.015710905194282532, -0.13038286566734314, -0.28406447172164917, 0.4506077170372009, -0.11157740652561188, -0.252927303314209, -0.24487045407295227, 0.15942661464214325, 0.14530199766159058, 0.17562636733055115, -0.1135019063949585, -0.2562187910079956 ]
https://github.com/huggingface/datasets/issues/2158
Thanks for reporting ! The viewer doesn't have all the dependencies of the datasets. We may add openpyxl to be able to show this dataset properly
viewer "fake_news_english" error
When I visit the [Huggingface - viewer](https://huggingface.co/datasets/viewer/) web site, under the dataset "fake_news_english" I've got this error: > ImportError: To be able to use this dataset, you need to install the following dependencies['openpyxl'] using 'pip install # noqa: requires this pandas optional dependency for reading xlsx files' for instance' as well as the error Traceback.
26
viewer "fake_news_english" error When I visit the [Huggingface - viewer](https://huggingface.co/datasets/viewer/) web site, under the dataset "fake_news_english" I've got this error: > ImportError: To be able to use this dataset, you need to install the following dependencies['openpyxl'] using 'pip install # noqa: requires this pandas optional dependency for reading xlsx files' for instance' as well as the error Traceback. Thanks for reporting ! The viewer doesn't have all the dependencies of the datasets. We may add openpyxl to be able to show this dataset properly
[ -0.1493435651063919, -0.18128108978271484, 0.033643342554569244, 0.34163257479667664, 0.2343088686466217, 0.286343514919281, -0.015794996172189713, 0.22440749406814575, 0.16542795300483704, 0.07346713542938232, -0.22257071733474731, -0.12595105171203613, -0.0306419488042593, 0.32860949635505676, -0.08070305734872818, -0.20974430441856384, 0.2249317616224289, 0.1918754130601883, -0.038319967687129974, -0.2154148668050766, -0.17521560192108154, 0.24970711767673492, -0.23275956511497498, 0.03329979628324509, -0.16578175127506256, -0.0056502241641283035, 0.04855579137802124, -0.10950972139835358, -0.24810601770877838, -0.22445356845855713, 0.25734826922416687, -0.07577228546142578, 0.007895037531852722, 0.4936807155609131, -0.00011687555524986237, 0.01128549873828888, 0.2621288299560547, 0.0009631514549255371, -0.07589762657880783, -0.1726917326450348, 0.15803730487823486, -0.5534412860870361, 0.259231299161911, 0.0051353126764297485, -0.12630346417427063, -0.6198992729187012, 0.13443034887313843, -0.044312983751297, 0.4444804787635803, 0.41185638308525085, 0.21161821484565735, 0.4163540005683899, 0.42144307494163513, 0.05975339934229851, -0.17071658372879028, 0.07740074396133423, -0.03336917236447334, 0.2485255002975464, -0.11204036325216293, 0.25064617395401, 0.04643886536359787, 0.3587523400783539, -0.07225607335567474, -0.16721396148204803, -0.11821562796831131, -0.20606626570224762, -0.06682335585355759, -0.38775765895843506, 0.06501860916614532, 0.2956513464450836, 0.23388420045375824, -0.16021548211574554, -0.19421881437301636, -0.17102070152759552, -0.0075111836194992065, 0.1529848724603653, 0.2340552806854248, 0.3493385910987854, 0.031077399849891663, 0.24441419541835785, 0.0891730859875679, -0.3955398499965668, -0.02073148638010025, 0.15180125832557678, -0.2865379750728607, 0.2711386978626251, -0.21618616580963135, 0.14630523324012756, 0.2850152850151062, -0.12319277226924896, 0.1981232464313507, -0.008001899346709251, -0.00661749392747879, 0.16877932846546173, -0.15421850979328156, 0.012571074068546295, 0.06832773983478546, 0.4823489487171173, -0.12096172571182251, -0.40736082196235657, -0.4050123989582062, 0.008704232051968575, -0.22417320311069489, 0.23805451393127441, 0.08416476845741272, 0.021071895956993103, -0.0141957588493824, 0.20330306887626648, 0.17958137392997742, 0.32110917568206787, 0.15277042984962463, 0.06792375445365906, 0.008303143084049225, -0.2380100041627884, -0.4805678129196167, -0.33202341198921204, 0.3121837377548218, -0.2570631504058838, -0.30298784375190735, 0.2578764855861664, -0.06710213422775269, -0.024917395785450935, 0.01118481159210205, 0.1829611361026764, -0.15538230538368225, 0.49509647488594055, 0.2343166023492813, 0.11266025900840759, -0.22111134231090546, -0.40791475772857666, -0.1736009418964386, 0.2763749659061432, 0.05109183490276337, -0.16206075251102448, -0.032807789742946625, -0.6860466003417969, 0.2591978907585144, 0.195740208029747, 0.1480439454317093, 0.04765710234642029, -0.18887823820114136, -0.09195199608802795, -0.22005552053451538, 0.30476152896881104, 0.17867757380008698, 0.13181406259536743, 0.5532687902450562, -0.3143089711666107, -0.15883758664131165, 0.025560546666383743, -0.024713430553674698, -0.11938167363405228, -0.39074957370758057, 0.1378650963306427, -0.36982667446136475, -0.09511663764715195, 0.13832879066467285, 0.19524869322776794, -0.29211190342903137, -0.22342589497566223, -0.11635635048151016, 0.013262918218970299, -0.020220421254634857, 0.05338771641254425, 0.050415925681591034, 0.5927079916000366, -0.45454633235931396, -0.3469182848930359, 0.09440040588378906, -0.2169102430343628, 0.09354017674922943, 0.10100941359996796, -0.012033402919769287, -0.06689915060997009, -0.16731563210487366, -0.3382660746574402, 0.2603875994682312, -0.46532589197158813, -0.26593369245529175, 0.34731560945510864, 0.06691588461399078, 0.29507356882095337, 0.135910764336586, -0.11641693115234375, -0.27455103397369385, 0.23451262712478638, -0.45408597588539124, 0.05521136522293091, 0.05204014480113983, -0.07514765113592148, -0.22160246968269348, -0.28084325790405273, 0.2575276494026184, 0.31789273023605347, 0.1873326301574707, 0.06929609924554825, -0.05435089394450188, -0.1554219275712967, 0.2374705821275711, 0.11475710570812225, 0.0038580112159252167, 0.10385636985301971, 0.10404214262962341, 0.35436639189720154, 0.05403421074151993, 0.0027965381741523743, 0.07325872778892517, -0.07160191237926483, -0.006470762193202972, 0.29058146476745605, -0.10620610415935516, -0.2331240177154541, -0.34943440556526184, 0.07605378329753876, -0.12885114550590515, -0.31328707933425903, 0.06324118375778198, 0.14119213819503784, -0.01407516747713089, 0.5048756003379822, -0.1575290858745575, 0.27174606919288635, -0.1571381688117981, 0.12404204159975052, -0.5752686262130737, 0.10611528903245926, -0.2694675624370575, 0.14001423120498657, 0.17474332451820374, 0.09701697528362274, -0.034679021686315536, -0.011221423745155334, 0.009168017655611038, 0.1916552186012268, -0.1517486870288849, 0.2544417083263397, 0.10074979066848755, 0.08725333213806152, 0.25027722120285034, -0.46322786808013916, 0.19770577549934387, 0.1617233008146286, 0.10718207061290741, 0.14657855033874512, -0.041756521910429, 0.14848682284355164, 0.05354755371809006, 0.07592272758483887, -0.0791272521018982, 0.40164342522621155, 0.3749583065509796, 0.25919389724731445, -0.08777585625648499, -0.3721303939819336, 0.49744775891304016, -0.14686137437820435, 0.377592533826828, -0.14147189259529114, -0.28332021832466125, -0.07372115552425385, 0.12075674533843994, 0.05121733993291855, 0.1060100644826889, 0.29260823130607605, -0.23280447721481323, 0.12531685829162598, 0.25615009665489197, -0.017586156725883484, 0.18186360597610474, 0.09544072300195694, -0.1969888061285019, 0.27252116799354553, 0.0246930792927742, -0.23986470699310303, 0.11882100999355316, 0.04078070819377899, -0.12911421060562134, -0.017960075289011, -0.15010076761245728, -0.04856117069721222, -0.5117400884628296, 0.12478745728731155, 0.008885852992534637, 0.24971860647201538, -0.3337167501449585, 0.0810152143239975, -0.1943715214729309, -0.38116902112960815, -0.20976629853248596, -0.40996140241622925, -0.27095523476600647, -0.42241477966308594, -0.011939525604248047, 0.10517805814743042, -0.028001509606838226, 0.3039635419845581, -0.018855992704629898, 0.10065895318984985, -0.049809809774160385, 0.07856842130422592, -0.2276710569858551, -0.16529300808906555, -0.07615101337432861, 0.11637310683727264, 0.16727277636528015, 0.07460801303386688, 0.13459978997707367, -0.5980011820793152, 0.17748142778873444, -0.40213435888290405, -0.39510777592658997, 0.16378666460514069, -0.32343190908432007, 0.4101300537586212, 0.29410552978515625, 0.12349490821361542, -0.0674271434545517, -0.0877375602722168, 0.25026488304138184, -0.1842280775308609, 0.1840975433588028, 0.0396198034286499, -0.14323222637176514, -0.16869820654392242, 0.08733150362968445, -0.14143872261047363, -0.2506597340106964, -0.3166326880455017, 0.2217579483985901, 0.10171836614608765, 0.1098298728466034, -0.04139416292309761, 0.1959974765777588, 0.24569779634475708, -0.09875205904245377, 0.23614093661308289, -0.28635281324386597, -0.524705171585083, 0.3783111870288849, -0.15680119395256042, -0.3085818588733673, 0.2651652693748474, 0.08600805699825287, 0.19515249133110046, -0.40931880474090576, -0.7332422733306885, -0.23081202805042267, -0.19231435656547546, -0.0415654331445694, 0.03348268195986748, 0.1754431575536728, 0.1946001648902893, 0.035805609077215195, 0.08474856615066528, -0.06240241974592209, -0.05084431916475296, -0.28672948479652405, -0.32710960507392883, 0.016310568898916245, -0.00009136460721492767, 0.5346376895904541, -0.05643317103385925, 0.25968849658966064, 0.46612516045570374, 0.18040591478347778, 0.3968825340270996, 0.1061624214053154, 0.788567304611206, 0.0033064130693674088, -0.4935970902442932, -0.02318970300257206, 0.15832436084747314, 0.2208785116672516, 0.30414047837257385, -0.07541852444410324, 0.24685898423194885, -0.5103858709335327, -0.3159966468811035, -0.3276478350162506, -0.17066748440265656, -0.23633767664432526, -0.10833447426557541, 0.2060176581144333, 0.012944996356964111, 0.046730756759643555, 0.07876315712928772, -0.13665564358234406, 0.10777048766613007, 0.34799110889434814, 0.07709396630525589, 0.03654537722468376, -0.07380664348602295, -0.09121374785900116, -0.4185931384563446, 0.32425302267074585, -0.23333340883255005, 0.20124372839927673, -0.0008867084980010986, 0.12144545465707779, 0.1684388667345047, 0.03691469132900238, 0.7025110125541687, 0.030296744778752327, -0.32580748200416565, -0.05254002660512924, -0.12235067784786224, -0.661113977432251, 0.10793730616569519, -0.2527155578136444, -0.18810413777828217, 0.024710815399885178, 0.0034360866993665695, -0.2656266391277313, -0.12438710033893585, 0.4412814974784851, 0.08046790212392807, -0.20958329737186432, -0.23858270049095154, -0.2916269302368164, -0.22143061459064484, -0.3525424599647522, -0.0845474898815155, -0.009030617773532867, 0.08042696863412857, -0.0301805566996336, 0.4483974575996399, -0.09712660312652588, -0.023603394627571106, 0.30170029401779175, 0.05082005262374878, 0.008144043385982513, 0.020643308758735657, 0.00024718791246414185, 0.47547316551208496, 0.15005066990852356, -0.05323035269975662, 0.7757799029350281, -0.06311585754156113, -0.7709521651268005, -0.07538293302059174, 0.053632952272892, 0.05313262715935707, 0.30701038241386414, -0.12658235430717468, 0.02749357558786869, 0.24377866089344025, 0.10178248584270477, -0.21099211275577545, 0.1763732135295868, 0.3813943862915039, 0.2676437497138977, -0.18150895833969116, -0.21407872438430786, 0.3380759656429291, 0.1158890426158905, 0.146309956908226, 0.1849011927843094, 0.52833092212677, -0.08419095724821091, 0.2648407220840454, -0.09699559211730957, 0.9988303184509277, 0.19611185789108276, 0.24821847677230835, 0.4241090714931488, -0.24557632207870483, 0.4833488166332245, -0.07002643495798111, -0.029295586049556732, -0.14441318809986115, -0.30555811524391174, -0.24495616555213928, 0.05165533721446991, 0.4823300540447235, -0.24624162912368774, -0.30963271856307983, 0.33891427516937256, -0.12090416252613068, -0.07008811086416245, 0.12296728789806366, 0.15743255615234375, -0.3809259533882141, -0.07090544700622559, -0.3266379237174988, 0.1354924887418747, 0.03779581934213638, 0.3158828318119049, -0.16928985714912415, 0.11983221769332886, 0.018771126866340637, -0.15059329569339752, -0.2882559895515442, 0.051995664834976196, 0.0278497114777565, 0.018097154796123505, 0.06840530037879944, -0.09668061137199402, 0.24726128578186035, 0.5656708478927612, 0.3669228255748749, 0.18652814626693726, -0.48581814765930176, 0.16716545820236206, -0.04591550678014755, -0.44415271282196045, 0.17707392573356628, 0.20460814237594604, 0.31373947858810425, -0.011479474604129791, -0.2831754684448242, 0.3268387019634247, -0.12064500153064728, 0.23238961398601532, -0.19773359596729279, -0.011109467595815659, -0.0575113371014595, -0.3667597472667694, -0.33338719606399536, -0.17712482810020447, 0.0570143386721611, -0.18365225195884705, 0.11105774343013763, 0.010343738831579685, -0.12011921405792236, -0.02328430488705635, -0.05622301995754242, -0.14177221059799194, -0.24314510822296143, 0.19593143463134766, 0.03232529014348984, 0.014401771128177643, 0.2819172143936157, 0.27886784076690674, -0.36652711033821106, -0.11690475046634674, 0.187742218375206, 0.0454842783510685, -0.3456627428531647, -0.17015628516674042, 0.2914135456085205, -0.16068696975708008, -0.23839934170246124, 0.002734897658228874, 0.1746843308210373, -0.04112302139401436, 0.012688390910625458, -0.3946435749530792, -0.007674507796764374, 0.19257955253124237, 0.10380730032920837, -0.12453395128250122, 0.17174679040908813, 0.27761662006378174, 0.13371586799621582, 0.18783187866210938, -0.2733457088470459, 0.3751012980937958, -0.16457873582839966, -0.030896708369255066, 0.13045871257781982, 0.23123249411582947, 0.3228493928909302, -0.11815212666988373, 0.037316225469112396, 0.11879850178956985, -0.11672234535217285, -0.12873445451259613, -0.15021997690200806, 0.12503397464752197, 0.27129992842674255, -0.40527307987213135, 0.25485801696777344, 0.08487293869256973, -0.20702016353607178, -0.03136032074689865, -0.19526633620262146, 0.3474891781806946, -0.0754379853606224, 0.1337977945804596, 0.029004346579313278, 0.048504069447517395, -0.09160203486680984, -0.07548170536756516, -0.046301454305648804, 0.19081415235996246, 0.042923618108034134, -0.06224078685045242, 0.03164394944906235, 0.009368255734443665, 0.08896275609731674, 0.21499671041965485, 0.20689938962459564, 0.0593179352581501, 0.31375232338905334, -0.13712716102600098, 0.12561951577663422, 0.16117291152477264, 0.4621787667274475, 0.28917446732521057, -0.4220871031284332, 0.14949491620063782, 0.49474966526031494, 0.04277874529361725, -0.5449192523956299, 0.013734068721532822, 0.29641544818878174, -0.03596765547990799, 0.09663380682468414, 0.014332294464111328, 0.1898614466190338, 0.03883734345436096, 0.1929151564836502, 0.10152371972799301, 0.13296133279800415, -0.032630082219839096, 0.3157617151737213, 0.28180408477783203, -0.1478826403617859, 0.11040323972702026, 0.2457275390625, 0.16646891832351685, -0.016765370965003967, 0.20519596338272095, -0.35254424810409546, 0.027904273942112923, -0.2922762334346771, 0.08252427726984024, -0.03555252403020859, -0.14817556738853455, 0.2657368779182434, 0.06498321890830994, -0.14963749051094055, -0.04042801260948181, -0.1202603206038475, 0.4565221667289734, -0.20543886721134186, 0.07489095628261566, -0.24446359276771545, 0.34387436509132385, 0.0049217017367482185, 0.02589094638824463, 0.25239917635917664, -0.1254977285861969, -0.2077857106924057, 0.012595824897289276, 0.1929333657026291, -0.5256755352020264, -0.06269346177577972, 0.08379320800304413, -0.17488890886306763, -0.4093303382396698, -0.026210781186819077, 0.0982758030295372, 0.16244912147521973, -0.07063460350036621, 0.16526411473751068, 0.3033759891986847, 0.008477914147078991, 0.14736241102218628, 0.6045826077461243, 0.4527468979358673, 0.07021132856607437, 0.11585022509098053, 0.15780577063560486, -0.1719760149717331, -0.04609934240579605, 0.07828912138938904, 0.2830422818660736, -0.035197652876377106, 0.29454928636550903, 0.3073827028274536, 0.11828311532735825, -0.23520120978355408, -0.11926094442605972, -0.00335836224257946, 0.2711735665798187, -0.5004979968070984, 0.18157824873924255, -0.47644534707069397, 0.10206899046897888, -0.3031996488571167, -0.15039831399917603, -0.5871675610542297, 0.28470224142074585, 0.20141561329364777, -0.1557386964559555, -0.07610782980918884, -0.32925519347190857, 0.034997113049030304, 0.1634238064289093, 0.4378175437450409, 0.4837254583835602, 0.35636013746261597, -0.21458597481250763, -0.3759630024433136, -0.6806298494338989, 0.2766784429550171, -0.035932593047618866, -0.18284714221954346, -0.08770208060741425, -0.24235230684280396, 0.07954296469688416, 0.29018115997314453, -0.16498176753520966, 0.2002100646495819, -0.12998700141906738, -0.18706092238426208, -0.13121004402637482, -0.08867111057043076, -0.019062425941228867, 0.1277429312467575, -0.05019257217645645, 0.020972110331058502, 0.28315022587776184, -0.08129102736711502, 0.01037849485874176, 0.06500697135925293, 0.10381808876991272, -0.3491300940513611, -0.2601622939109802, 0.1418423056602478, 0.3700289726257324, 0.3323681056499481, -0.11829625070095062, -0.0788227990269661, 0.06222056597471237, -0.2541966736316681, -0.40524426102638245, 0.45649632811546326, 0.030064892023801804, 0.15833806991577148, -0.30104848742485046, -0.5846758484840393, -0.04358838126063347, 0.39000365138053894, 0.13141277432441711, 0.11658225208520889, -0.4264739155769348, 0.13343678414821625, -0.06662344932556152, 0.0021296367049217224, 0.19740843772888184, 0.2926415205001831, -0.08006827533245087, 0.20344871282577515, -0.10255387425422668, -0.17170998454093933, 0.47586140036582947, -0.25899046659469604, 0.03506305813789368, 0.0025697462260723114, -0.04803777486085892, 0.23775964975357056, -0.42230933904647827, -0.600999653339386, 0.22710645198822021, 0.12511040270328522, 0.10895717144012451, -0.0012155324220657349, 0.1362532675266266, -0.21369774639606476, -0.03758786618709564, -0.027938783168792725, 0.32520925998687744, 0.37175580859184265, -0.15754377841949463, 0.34251242876052856, -0.016705114394426346 ]
https://github.com/huggingface/datasets/issues/2158
This viewer tool is deprecated now and the new viewer at https://huggingface.co/datasets/fake_news_english works fine, so I'm closing this issue
viewer "fake_news_english" error
When I visit the [Huggingface - viewer](https://huggingface.co/datasets/viewer/) web site, under the dataset "fake_news_english" I've got this error: > ImportError: To be able to use this dataset, you need to install the following dependencies['openpyxl'] using 'pip install # noqa: requires this pandas optional dependency for reading xlsx files' for instance' as well as the error Traceback.
19
viewer "fake_news_english" error When I visit the [Huggingface - viewer](https://huggingface.co/datasets/viewer/) web site, under the dataset "fake_news_english" I've got this error: > ImportError: To be able to use this dataset, you need to install the following dependencies['openpyxl'] using 'pip install # noqa: requires this pandas optional dependency for reading xlsx files' for instance' as well as the error Traceback. This viewer tool is deprecated now and the new viewer at https://huggingface.co/datasets/fake_news_english works fine, so I'm closing this issue
[ -0.16355252265930176, -0.12276989966630936, 0.05639158934354782, 0.27710992097854614, 0.24810928106307983, 0.2900732159614563, 0.029497873038053513, 0.24294915795326233, 0.13204830884933472, 0.10402482748031616, -0.2412911057472229, -0.1428900957107544, 0.035482048988342285, 0.29994457960128784, -0.03929506614804268, -0.18866518139839172, 0.24474287033081055, 0.11973364651203156, 0.02563604898750782, -0.17683365941047668, -0.2079438865184784, 0.2248854786157608, -0.25244957208633423, 0.07309122383594513, -0.1560632735490799, 0.06915619969367981, 0.046757809817790985, -0.11965346336364746, -0.2056165337562561, -0.27196067571640015, 0.2912880778312683, -0.13751766085624695, -0.010867159813642502, 0.5590502619743347, -0.00011585977335926145, 0.0036408305168151855, 0.3255036175251007, 0.04013132303953171, -0.17971916496753693, -0.18945439159870148, 0.10706312954425812, -0.5205988883972168, 0.17603296041488647, 0.04460453987121582, -0.1580202281475067, -0.6794715523719788, 0.14610537886619568, -0.05002080649137497, 0.3737100064754486, 0.4486624598503113, 0.23427653312683105, 0.4214346706867218, 0.461620569229126, -0.005293410271406174, -0.15883082151412964, 0.05490541458129883, -0.05967014282941818, 0.2696303725242615, -0.11549421399831772, 0.2566848397254944, 0.04706701636314392, 0.32057255506515503, -0.07393097132444382, -0.18660590052604675, -0.11829730868339539, -0.2092849612236023, -0.010145874693989754, -0.3348507285118103, 0.08648191392421722, 0.3068980276584625, 0.20522013306617737, -0.1331196427345276, -0.25123950839042664, -0.18504035472869873, -0.004143215715885162, 0.10770942270755768, 0.23376919329166412, 0.3386039733886719, 0.023429937660694122, 0.2573798596858978, 0.15467016398906708, -0.41505753993988037, -0.03353697061538696, 0.18309752643108368, -0.26860320568084717, 0.28426045179367065, -0.18821759521961212, 0.14534156024456024, 0.2837334871292114, -0.17313918471336365, 0.2052943855524063, 0.05311023071408272, -0.03011847846210003, 0.17470604181289673, -0.1735111027956009, 0.009134672582149506, 0.0643499493598938, 0.455788254737854, -0.1189219206571579, -0.4141569137573242, -0.3783574402332306, 0.033651258796453476, -0.1794976443052292, 0.2599344551563263, 0.12344394624233246, 0.045677345246076584, 0.011557827703654766, 0.19706204533576965, 0.2557176947593689, 0.3116448223590851, 0.18690288066864014, 0.08934324979782104, 0.07767373323440552, -0.2535953223705292, -0.5057613253593445, -0.3236004114151001, 0.33550259470939636, -0.250176340341568, -0.3608875870704651, 0.27399513125419617, -0.04281877353787422, -0.007980380207300186, 0.0037249773740768433, 0.18614929914474487, -0.11505058407783508, 0.5073222517967224, 0.21585673093795776, 0.10257740318775177, -0.266260027885437, -0.4114833176136017, -0.14583563804626465, 0.30479952692985535, 0.023338869214057922, -0.15831036865711212, -0.027847103774547577, -0.6804260611534119, 0.21131014823913574, 0.1803288757801056, 0.1267624795436859, 0.005157627165317535, -0.22641515731811523, -0.07550149410963058, -0.19795791804790497, 0.2761276662349701, 0.14470985531806946, 0.08098261803388596, 0.44832175970077515, -0.3236757516860962, -0.09756416082382202, 0.042626067996025085, -0.033596962690353394, -0.1771000176668167, -0.44051697850227356, 0.1469397097826004, -0.2977006137371063, -0.11039285361766815, 0.17220363020896912, 0.24528995156288147, -0.3447066843509674, -0.27845922112464905, -0.11485520005226135, 0.045149508863687515, -0.011503621935844421, 0.07775237411260605, 0.013183839619159698, 0.5630924105644226, -0.4350288510322571, -0.2674606442451477, 0.07234914600849152, -0.20525605976581573, 0.03836524859070778, 0.08391118794679642, -0.037441905587911606, -0.12498480081558228, -0.1610775589942932, -0.33377352356910706, 0.2321513593196869, -0.48599082231521606, -0.27011436223983765, 0.3364402651786804, 0.0956428050994873, 0.2249142974615097, 0.055030375719070435, -0.1224287748336792, -0.27146849036216736, 0.18987536430358887, -0.4750186800956726, 0.02342674508690834, 0.05849912017583847, -0.06275299936532974, -0.23198100924491882, -0.289652943611145, 0.27692076563835144, 0.2530841827392578, 0.18086612224578857, 0.06548753380775452, -0.01640411466360092, -0.08096863329410553, 0.21493856608867645, 0.09861098229885101, -0.014337444677948952, 0.0819428563117981, 0.07242962718009949, 0.29009130597114563, 0.060739580541849136, -0.06032848358154297, 0.016119366511702538, -0.07825393974781036, -0.025728482753038406, 0.32055801153182983, -0.06855897605419159, -0.25534653663635254, -0.35265618562698364, 0.08571428060531616, -0.09999842941761017, -0.3370548486709595, 0.060647569596767426, 0.07523857057094574, 0.0590321347117424, 0.5546749830245972, -0.16265280544757843, 0.21373805403709412, -0.14463111758232117, 0.11508549749851227, -0.599226176738739, 0.015415407717227936, -0.26591718196868896, 0.1488262563943863, 0.14721937477588654, 0.13588795065879822, -0.01488959975540638, -0.0027373768389225006, -0.017626561224460602, 0.2585639953613281, -0.14808708429336548, 0.28225627541542053, 0.1030053198337555, 0.05125180631875992, 0.311972975730896, -0.45785611867904663, 0.1762685626745224, 0.19585871696472168, 0.12247443944215775, 0.15594929456710815, -0.04626009985804558, 0.14553046226501465, 0.08536003530025482, 0.02333008125424385, -0.0621049702167511, 0.3918394446372986, 0.4027790427207947, 0.24136173725128174, -0.0683542937040329, -0.38675302267074585, 0.4504610598087311, -0.09720747172832489, 0.3257681727409363, -0.19295662641525269, -0.269819051027298, -0.11736410856246948, 0.10538358986377716, 0.021182216703891754, 0.10643842071294785, 0.3420252799987793, -0.16640543937683105, 0.07167570292949677, 0.26477229595184326, 0.017147958278656006, 0.15143969655036926, 0.07658163458108902, -0.16109859943389893, 0.34576597809791565, -0.0028024055063724518, -0.23328442871570587, 0.1999584585428238, 0.04761325567960739, -0.17780159413814545, -0.00030689965933561325, -0.09724636375904083, -0.06162429600954056, -0.5349727869033813, 0.18375423550605774, -0.02378513291478157, 0.2637846767902374, -0.29437416791915894, 0.09584750980138779, -0.23314505815505981, -0.4145902395248413, -0.21205691993236542, -0.3924638628959656, -0.2353297472000122, -0.42967113852500916, -0.04221534729003906, 0.1546420454978943, -0.12409745156764984, 0.29078033566474915, -0.05174035206437111, 0.11482051014900208, -0.08468839526176453, 0.09635749459266663, -0.27280086278915405, -0.1340864598751068, -0.1164741963148117, 0.10177969187498093, 0.18262575566768646, 0.037036485970020294, 0.18092139065265656, -0.5203339457511902, 0.1546468287706375, -0.4910324215888977, -0.4098106026649475, 0.1747221052646637, -0.27437451481819153, 0.411276638507843, 0.2761143445968628, 0.07661177217960358, -0.08098016679286957, -0.07693703472614288, 0.25797367095947266, -0.25502151250839233, 0.18471652269363403, 0.08458471298217773, -0.08047124743461609, -0.12118086963891983, 0.07187316566705704, -0.14647147059440613, -0.22154101729393005, -0.33585792779922485, 0.19693244993686676, 0.056756384670734406, 0.0887516438961029, -0.03115398809313774, 0.16896650195121765, 0.2419009804725647, -0.04848956689238548, 0.17562729120254517, -0.3164857029914856, -0.4714066982269287, 0.3737937808036804, -0.18569278717041016, -0.3114400804042816, 0.30227112770080566, 0.15155655145645142, 0.1774071305990219, -0.38276147842407227, -0.6841475963592529, -0.1947912871837616, -0.18055874109268188, -0.03697792440652847, 0.0897497683763504, 0.16725429892539978, 0.18504886329174042, 0.012053050100803375, 0.0460173673927784, -0.01471748948097229, -0.053786590695381165, -0.3322054445743561, -0.34289097785949707, 0.06789512187242508, 0.05186536908149719, 0.525776743888855, -0.02427864819765091, 0.17804981768131256, 0.4782784581184387, 0.21164771914482117, 0.4494054913520813, 0.08897493779659271, 0.806833803653717, -0.04405422881245613, -0.46408286690711975, -0.0677371546626091, 0.08121133595705032, 0.23466980457305908, 0.3062191903591156, -0.03988943248987198, 0.20543783903121948, -0.560774564743042, -0.2908768653869629, -0.30054596066474915, -0.18040448427200317, -0.26679155230522156, -0.17595359683036804, 0.23044446110725403, 0.03487721085548401, 0.11608769744634628, 0.07259087264537811, -0.20666050910949707, 0.15326088666915894, 0.29471394419670105, 0.03448409587144852, 0.03139738738536835, 0.0065893009305000305, -0.09321901202201843, -0.4849919080734253, 0.38627591729164124, -0.2075069397687912, 0.23511987924575806, -0.017732515931129456, 0.11791311949491501, 0.17497920989990234, 0.016671042889356613, 0.6513712406158447, 0.009884538128972054, -0.3371896743774414, -0.06444953382015228, -0.0536017045378685, -0.6661548018455505, 0.11352851241827011, -0.18603721261024475, -0.1907091736793518, 0.009113861247897148, 0.006118049845099449, -0.2991393506526947, -0.1402266025543213, 0.47570738196372986, 0.07910753786563873, -0.18611976504325867, -0.16274318099021912, -0.2334451973438263, -0.2254675030708313, -0.32011154294013977, -0.10674616694450378, 0.01899363100528717, 0.0837177112698555, -0.03578411787748337, 0.4514302611351013, -0.07904574275016785, -0.029435310512781143, 0.34365683794021606, 0.08142895996570587, 0.022531162947416306, 0.0006033964455127716, -0.02699274942278862, 0.48955100774765015, 0.1364373117685318, -0.073714978992939, 0.7586205005645752, -0.03316539525985718, -0.711970865726471, -0.11355160921812057, 0.04880862683057785, 0.05911324918270111, 0.332857608795166, -0.09949015825986862, 0.01634126901626587, 0.20597675442695618, 0.019499797374010086, -0.2263583391904831, 0.05732237920165062, 0.36741262674331665, 0.27724215388298035, -0.15690895915031433, -0.19609805941581726, 0.3416590094566345, 0.05209548771381378, 0.1707327663898468, 0.16326062381267548, 0.5112336277961731, -0.07298804819583893, 0.26626503467559814, -0.10540492832660675, 0.983231246471405, 0.2516171634197235, 0.22985568642616272, 0.39686131477355957, -0.2311767041683197, 0.4570743441581726, -0.010718189179897308, 0.010639075189828873, -0.1898505836725235, -0.21545274555683136, -0.22430990636348724, 0.08140480518341064, 0.4503318965435028, -0.2508566975593567, -0.2732778787612915, 0.32671862840652466, -0.152243971824646, -0.020919574424624443, 0.11415428668260574, 0.19515672326087952, -0.43585631251335144, -0.04338069260120392, -0.35060030221939087, 0.16649195551872253, 0.030317973345518112, 0.26906606554985046, -0.18683479726314545, 0.13154752552509308, 0.03124336153268814, -0.16035011410713196, -0.32408401370048523, 0.09188209474086761, 0.09538047015666962, 0.11462106555700302, 0.032841697335243225, -0.14555953443050385, 0.22871948778629303, 0.5416388511657715, 0.3785090148448944, 0.12631848454475403, -0.49171942472457886, 0.13699358701705933, -0.07878702878952026, -0.39293405413627625, 0.17248214781284332, 0.16712632775306702, 0.32352837920188904, -0.021594207733869553, -0.3176482319831848, 0.32614371180534363, -0.09120228886604309, 0.172415629029274, -0.22515800595283508, -0.004194455221295357, -0.04730949550867081, -0.31937018036842346, -0.3271092176437378, -0.2224576771259308, 0.06092877686023712, -0.19864729046821594, 0.1218852698802948, -0.04477192834019661, -0.09285067021846771, -0.052515238523483276, -0.03744577616453171, -0.1282253861427307, -0.21535906195640564, 0.22419923543930054, 0.007836205884814262, 0.05706372857093811, 0.2763720452785492, 0.2924657464027405, -0.3812364339828491, -0.1234411895275116, 0.17018166184425354, -0.04027428478002548, -0.3180018663406372, -0.07078142464160919, 0.23689350485801697, -0.15640665590763092, -0.20840416848659515, -0.06692437827587128, 0.15073658525943756, -0.050281867384910583, -0.0017886832356452942, -0.3668983578681946, 0.02383575588464737, 0.14813141524791718, 0.14592918753623962, -0.05824924632906914, 0.12611281871795654, 0.30027809739112854, 0.12913118302822113, 0.09116653352975845, -0.27574387192726135, 0.3701104521751404, -0.14669132232666016, -0.05677509307861328, 0.11666017025709152, 0.2587568759918213, 0.3166126608848572, -0.11278654634952545, 0.01757965236902237, 0.17152246832847595, -0.1366647183895111, -0.11767685413360596, -0.19085854291915894, 0.11718776822090149, 0.2875848114490509, -0.4496879279613495, 0.2648274302482605, 0.06352566182613373, -0.2026200294494629, -0.0034403428435325623, -0.19847069680690765, 0.35216787457466125, -0.05807257816195488, 0.1578090637922287, 0.0009593144059181213, 0.054818086326122284, 0.04743261635303497, -0.03198366239666939, -0.012402012944221497, 0.3044794797897339, 0.03363843262195587, -0.056543149054050446, 0.03100704401731491, 0.012027457356452942, 0.026912372559309006, 0.19617696106433868, 0.15993690490722656, 0.03192437067627907, 0.2915083169937134, -0.12252132594585419, 0.10605711489915848, 0.1695423424243927, 0.4382260739803314, 0.31907224655151367, -0.4295736253261566, 0.145226389169693, 0.48608431220054626, 0.053494252264499664, -0.5471571683883667, 0.028029493987560272, 0.2453281581401825, -0.014816364273428917, 0.08115062117576599, -0.05115179717540741, 0.2155589908361435, 0.04873599112033844, 0.18181130290031433, 0.10178922861814499, 0.0818105936050415, -0.1218961775302887, 0.3273099660873413, 0.2901933789253235, -0.12713293731212616, 0.0741046667098999, 0.2317795306444168, 0.12021151185035706, 0.03146791085600853, 0.2538405656814575, -0.3533315360546112, 0.033074893057346344, -0.24193547666072845, 0.14183613657951355, -0.028957117348909378, -0.13946007192134857, 0.2800757884979248, 0.03642530366778374, -0.19480295479297638, -0.04226422309875488, -0.04317362233996391, 0.4482727646827698, -0.2932434380054474, 0.10750073194503784, -0.2866114377975464, 0.38523271679878235, -0.04452572762966156, -0.011722199618816376, 0.2265036404132843, -0.12675943970680237, -0.1542251706123352, 0.03703297674655914, 0.1774764358997345, -0.49007245898246765, -0.05831924080848694, 0.056353166699409485, -0.17552535235881805, -0.4010334610939026, 0.023524392396211624, 0.04471418261528015, 0.22206752002239227, -0.037506528198719025, 0.11896967887878418, 0.3124626874923706, 0.030946139246225357, 0.1443546563386917, 0.6508994698524475, 0.4734145700931549, 0.10077449679374695, 0.01765470579266548, 0.15891192853450775, -0.24631604552268982, -0.023738112300634384, 0.07314695417881012, 0.34353065490722656, -0.05156737193465233, 0.2634566128253937, 0.3643132448196411, 0.10117504000663757, -0.2227342426776886, -0.12654554843902588, 0.016428213566541672, 0.29777392745018005, -0.4804181754589081, 0.16828316450119019, -0.4390524625778198, 0.13509859144687653, -0.3347826898097992, -0.1160941794514656, -0.543415367603302, 0.24600352346897125, 0.23720696568489075, -0.192905992269516, -0.06871587038040161, -0.3355977535247803, 0.041612450033426285, 0.16733483970165253, 0.47019293904304504, 0.4800572991371155, 0.31648847460746765, -0.1891912966966629, -0.3306337296962738, -0.6855559349060059, 0.270855575799942, -0.029989387840032578, -0.1016472652554512, -0.11065265536308289, -0.23438669741153717, -0.019593730568885803, 0.2793693244457245, -0.08792556077241898, 0.1944098174571991, -0.1419212520122528, -0.18638677895069122, -0.09975634515285492, -0.056773725897073746, -0.0724378228187561, 0.1125015988945961, -0.05087248980998993, -0.0049394890666007996, 0.28889554738998413, -0.06528550386428833, -0.011444050818681717, 0.0847165510058403, 0.09022408723831177, -0.33239349722862244, -0.23239538073539734, 0.1822606325149536, 0.42635202407836914, 0.2800641357898712, -0.09520898759365082, -0.11448284983634949, -0.016610994935035706, -0.2418292760848999, -0.3689956068992615, 0.457331120967865, 0.04526882618665695, 0.11664825677871704, -0.23740606009960175, -0.61588454246521, -0.01719813048839569, 0.44752800464630127, 0.0801365077495575, 0.10018101334571838, -0.4567299485206604, 0.16454020142555237, -0.05212976783514023, -0.027649015188217163, 0.18074148893356323, 0.27093037962913513, -0.08419139683246613, 0.1902311146259308, -0.05019885301589966, -0.17095372080802917, 0.46717241406440735, -0.27226245403289795, 0.011670991778373718, -0.004362728446722031, -0.02215532958507538, 0.21764633059501648, -0.45946335792541504, -0.5640109181404114, 0.1992279589176178, 0.07435471564531326, 0.15704023838043213, 0.0017536357045173645, 0.11141175031661987, -0.2865312993526459, -0.04438772425055504, -0.04351675510406494, 0.31776121258735657, 0.36073362827301025, -0.13863497972488403, 0.4103710651397705, 0.004019245505332947 ]
https://github.com/huggingface/datasets/issues/2153
Nice question which helped me a lot! I have wasted a lot of time to the `DatasetDict` creation from a csv file. Hope the document of this module add some simple examples.
load_dataset ignoring features
First of all, I'm sorry if it is a repeated issue or the changes are already in master, I searched and I didn't find anything. I'm using datasets 1.5.0 ![image](https://user-images.githubusercontent.com/37592763/113114369-8f376580-920b-11eb-900d-94365b59f04b.png) As you can see, when I load the dataset, the ClassLabels are ignored, I have to cast the dataset in order to make it work. Code to reproduce: ```python import datasets data_location = "/data/prueba_multiclase" features = datasets.Features( {"texto": datasets.Value("string"), "label": datasets.features.ClassLabel(names=["false", "true"])} ) dataset = datasets.load_dataset( "csv", data_files=data_location, delimiter="\t", features=features ) ``` Dataset I used: [prueba_multiclase.zip](https://github.com/huggingface/datasets/files/6235022/prueba_multiclase.zip) (it has to be unzipped) Thank you! ❤️
32
load_dataset ignoring features First of all, I'm sorry if it is a repeated issue or the changes are already in master, I searched and I didn't find anything. I'm using datasets 1.5.0 ![image](https://user-images.githubusercontent.com/37592763/113114369-8f376580-920b-11eb-900d-94365b59f04b.png) As you can see, when I load the dataset, the ClassLabels are ignored, I have to cast the dataset in order to make it work. Code to reproduce: ```python import datasets data_location = "/data/prueba_multiclase" features = datasets.Features( {"texto": datasets.Value("string"), "label": datasets.features.ClassLabel(names=["false", "true"])} ) dataset = datasets.load_dataset( "csv", data_files=data_location, delimiter="\t", features=features ) ``` Dataset I used: [prueba_multiclase.zip](https://github.com/huggingface/datasets/files/6235022/prueba_multiclase.zip) (it has to be unzipped) Thank you! ❤️ Nice question which helped me a lot! I have wasted a lot of time to the `DatasetDict` creation from a csv file. Hope the document of this module add some simple examples.
[ -0.08561435341835022, -0.030492186546325684, 0.012940295040607452, 0.2842152714729309, 0.4256819486618042, 0.25316500663757324, 0.6406396627426147, -0.053947705775499344, 0.223464235663414, 0.05332423746585846, 0.15431979298591614, 0.3363249897956848, -0.11442296206951141, 0.45993509888648987, -0.1519141048192978, -0.031221628189086914, 0.06328392028808594, 0.13891950249671936, 0.086808942258358, -0.14162184298038483, -0.3790287971496582, 0.06614182889461517, -0.38107967376708984, -0.07480432093143463, -0.19952166080474854, 0.2117880880832672, 0.02345544844865799, 0.07192018628120422, -0.02975846268236637, -0.5245154500007629, 0.41339021921157837, 0.2789028584957123, 0.3400852680206299, 0.2516966164112091, -0.00011324464867357165, -0.09074217826128006, 0.04399304464459419, -0.13357946276664734, -0.19307368993759155, -0.12581737339496613, -0.4377945065498352, -0.30494803190231323, 0.29355448484420776, -0.30183613300323486, -0.3062900900840759, 0.17070597410202026, -0.2648935914039612, -0.213449627161026, -0.05292859673500061, 0.12106793373823166, 0.19233271479606628, 0.009252980351448059, -0.08710362017154694, 0.1758139729499817, 0.014390166848897934, -0.0617421492934227, -0.32583120465278625, 0.2043391764163971, 0.18565669655799866, 0.25509950518608093, -0.015344932675361633, 0.2552686929702759, -0.21436342597007751, 0.036350131034851074, 0.5101963877677917, -0.12772893905639648, -0.014543775469064713, -0.32829049229621887, 0.02382439747452736, 0.1738419383764267, 0.7974796295166016, -0.25520679354667664, -0.48452216386795044, -0.27415335178375244, 0.1363135725259781, -0.4022523760795593, 0.16474121809005737, 0.09066358208656311, 0.26784127950668335, 0.18019120395183563, -0.40225258469581604, -0.06932149827480316, -0.1144452914595604, 0.04224253445863724, 0.031348563730716705, -0.023745030164718628, -0.1550961434841156, 0.13908740878105164, -0.1776062250137329, -0.016739100217819214, 0.3612681031227112, -0.2586156129837036, -0.07537315785884857, 0.23561137914657593, -0.284107506275177, 0.16936349868774414, 0.0916745513677597, 0.13575449585914612, 0.07428811490535736, 0.13465769588947296, 0.019579734653234482, 0.2739373445510864, -0.3180241286754608, 0.1293332278728485, 0.14217935502529144, -0.002036798745393753, 0.5196121335029602, 0.15705832839012146, 0.1980423629283905, 0.04850617051124573, -0.27418553829193115, 0.06496088206768036, -0.15629220008850098, -0.06747077405452728, 0.2910912036895752, 0.04481058940291405, 0.13636431097984314, -0.37234145402908325, -0.13899728655815125, 0.03186507150530815, -0.14005887508392334, -0.01624903827905655, 0.11773566901683807, 0.2474849671125412, 0.024712204933166504, 0.4246521592140198, 0.23545488715171814, 0.24007898569107056, -0.2873143255710602, -0.32805177569389343, -0.2301763892173767, -0.1649014949798584, -0.05160423740744591, 0.053699642419815063, 0.40241917967796326, 0.1722325086593628, 0.18890750408172607, -0.09355392307043076, -0.1197243183851242, -0.15031808614730835, -0.1773233562707901, 0.0644034668803215, -0.01260070875287056, 0.2159593105316162, -0.1039225310087204, 0.15995517373085022, 0.1865861862897873, -0.20999401807785034, 0.02027095854282379, 0.18710273504257202, -0.20529116690158844, -0.09124872088432312, 0.19304484128952026, 0.16929151117801666, -0.3488236963748932, -0.09921994805335999, -0.4686617851257324, 0.17088016867637634, -0.038303833454847336, -0.05855894088745117, -0.0010501593351364136, -0.4762667119503021, -0.07439202070236206, -0.23392222821712494, 0.3303196132183075, 0.4801041781902313, -0.49562934041023254, -0.12520736455917358, 0.30333396792411804, -0.1631097048521042, -0.04238187521696091, -0.12867534160614014, -0.08791664242744446, 0.17195488512516022, -0.09555543214082718, -0.3004544973373413, 0.22739671170711517, -0.18823334574699402, -0.3485090136528015, -0.19453394412994385, 0.09810557216405869, 0.005866989493370056, 0.16472956538200378, 0.30721914768218994, -0.013754123821854591, 0.0016859620809555054, -0.0981525406241417, 0.41301262378692627, 0.0815085843205452, -0.01618930697441101, -0.16480764746665955, -0.003902629017829895, 0.015304269269108772, 0.3275218605995178, -0.012815024703741074, 0.223601832985878, 0.1535404622554779, 0.007014308124780655, 0.12344814836978912, -0.26577478647232056, 0.24171017110347748, 0.37342992424964905, 0.02625270001590252, 0.20919416844844818, 0.08030092716217041, -0.0996134877204895, -0.4244220554828644, 0.333611398935318, 0.19694684445858002, -0.03013673797249794, 0.01432706043124199, -0.13352340459823608, 0.016488835215568542, -0.04204702377319336, -0.5998297929763794, -0.04443839192390442, 0.004373922944068909, 0.10814379155635834, -0.12825611233711243, -0.056145310401916504, -0.021124251186847687, 0.2936032712459564, -0.23297488689422607, 0.2568298578262329, -0.3175531327724457, 0.09847442060709, 0.11043999344110489, -0.09336860477924347, -0.10498484969139099, 0.2762145400047302, 0.3593248724937439, -0.21348366141319275, -0.13957072794437408, 0.25205323100090027, 0.27947357296943665, -0.23957401514053345, -0.0033481670543551445, 0.05038876086473465, 0.15362104773521423, -0.386543869972229, 0.030378201976418495, 0.06518751382827759, 0.2595444619655609, -0.13913699984550476, -0.414983332157135, 0.42540645599365234, -0.16290681064128876, 0.14361244440078735, 0.07091302424669266, -0.07598400861024857, 0.39866718649864197, -0.051584575325250626, -0.12490340322256088, -0.08754873275756836, 0.01205392088741064, -0.006501464173197746, 0.2523196339607239, 0.2596164345741272, -0.42978155612945557, 0.17780166864395142, 0.3382618725299835, 0.023080825805664062, -0.06864403188228607, -0.05024602264165878, -0.1778649538755417, 0.0848933756351471, 0.215661883354187, 0.06096743047237396, 0.2490086555480957, 0.2434665709733963, -0.06819024682044983, 0.0026712939143180847, -0.053920678794384, -0.08836304396390915, 0.26464545726776123, -0.027272354811429977, -0.05859271436929703, -0.04592154920101166, 0.12818801403045654, 0.07314132153987885, -0.2991209328174591, -0.15692824125289917, 0.08643267303705215, -0.0542883425951004, -0.5587559342384338, -0.016246557235717773, -0.18954089283943176, 0.04460838437080383, -0.18004456162452698, -0.11814677715301514, -0.21307165920734406, -0.27180370688438416, -0.17323169112205505, 0.3825279474258423, 0.030541889369487762, 0.06273670494556427, -0.41938409209251404, 0.10776583105325699, 0.08943738788366318, -0.5412774085998535, 0.22050443291664124, 0.13555382192134857, -0.4152527153491974, -0.02987286075949669, -0.10848011076450348, 0.23680086433887482, 0.2161877602338791, -0.13246363401412964, 0.10838723182678223, -0.21846157312393188, -0.26536649465560913, 0.03878610581159592, -0.24682015180587769, 0.04594951122999191, 0.00891563668847084, -0.06799061596393585, -0.055145081132650375, 0.14206837117671967, 0.37854525446891785, 0.07632365077733994, 0.05981248617172241, 0.24378934502601624, 0.20707230269908905, -0.23850585520267487, -0.2769641876220703, -0.5045168399810791, -0.16148868203163147, -0.39608484506607056, 0.04137555509805679, 0.09468743205070496, -0.25164496898651123, 0.13890665769577026, 0.05736730992794037, 0.1830511838197708, 0.28097832202911377, 0.1540105640888214, -0.031025102362036705, -0.23558223247528076, 0.3494183421134949, -0.1501152217388153, -0.28691279888153076, 0.11171568185091019, -0.05878793075680733, -0.05398981645703316, 0.001002199947834015, -0.3663874864578247, 0.08897541463375092, -0.08960484713315964, 0.3901561200618744, 0.2198275625705719, 0.16054756939411163, 0.328578919172287, 0.2460651397705078, 0.10373629629611969, -0.23899969458580017, -0.3663346767425537, 0.08325900882482529, -0.0620274618268013, 0.19144204258918762, -0.07775314152240753, 0.11068095266819, -0.24501022696495056, 0.3476117253303528, -0.013887118548154831, 0.0028705827426165342, 0.4750259518623352, -0.06420984119176865, 0.27767595648765564, -0.15576806664466858, -0.2877365052700043, 0.05075410380959511, -0.23032604157924652, 0.011908084154129028, 0.2468533217906952, 0.16118201613426208, 0.05019219219684601, -0.2115146815776825, 0.26370227336883545, -0.2098141312599182, -0.15819469094276428, -0.145128533244133, -0.12167669087648392, 0.1039789542555809, 0.08378110080957413, 0.21707087755203247, -0.16753199696540833, -0.1631675660610199, -0.2661851644515991, 0.22136884927749634, -0.004587091505527496, 0.01022636890411377, -0.5514548420906067, -0.18288972973823547, -0.05533868074417114, 0.09381373226642609, -0.058031417429447174, 0.18722397089004517, 0.02611948549747467, 0.056086465716362, 0.09337681531906128, 0.1057458221912384, 0.5734021067619324, -0.3399970829486847, 0.29285329580307007, 0.39230775833129883, 0.11418066918849945, -0.22911657392978668, -0.21485352516174316, -0.1900700032711029, -0.10290344804525375, -0.0881073921918869, 0.09207427501678467, -0.10492848604917526, -0.26057934761047363, 0.13149189949035645, 0.49264097213745117, -0.20596161484718323, -0.06153465434908867, -0.27212730050086975, -0.16462568938732147, -0.2355959713459015, -0.20330877602100372, 0.03965241461992264, 0.37048983573913574, -0.43246152997016907, -0.009145423769950867, -0.10534011572599411, -0.052302196621894836, 0.13039830327033997, 0.23260405659675598, 0.222434401512146, 0.12913097441196442, 0.40589600801467896, -0.022981984540820122, 0.08526158332824707, 0.2154712826013565, 0.7898675799369812, -0.07791619002819061, -0.9518972635269165, 0.06846259534358978, -0.4182259440422058, 0.5247336626052856, -0.0762837752699852, -0.020366225391626358, -0.22598035633563995, -0.09069229662418365, -0.07321378588676453, -0.23625464737415314, 0.11951613426208496, 0.1982821822166443, 0.10512658953666687, -0.436296284198761, -0.5934207439422607, 0.42232275009155273, -0.1847919523715973, -0.08754283934831619, 0.027515338733792305, 0.006517462432384491, -0.5263800621032715, 0.3839455544948578, 0.004308126866817474, 0.5469959378242493, -0.06523403525352478, 0.2061707228422165, 0.16424399614334106, 0.1326800286769867, 0.5669627785682678, 0.1644977331161499, 0.12493147701025009, -0.30969977378845215, -0.27290475368499756, -0.08011684566736221, -0.046264685690402985, 0.20104488730430603, 0.5373553037643433, -0.12475070357322693, 0.39569544792175293, -0.2290387600660324, -0.22708170115947723, -0.003567660227417946, 0.21816259622573853, 0.3714715242385864, -0.3578478693962097, -0.1528424769639969, 0.1190253272652626, -0.08800472319126129, 0.01928364671766758, 0.08275198191404343, 0.10176503658294678, -0.07919265329837799, -0.06933937966823578, -0.07847833633422852, 0.25885117053985596, 0.0013761669397354126, 0.08041908591985703, -0.006196850910782814, -0.09923339635133743, 0.3302913308143616, 0.448683500289917, 0.35060983896255493, 0.1147860586643219, -0.16483132541179657, 0.11788370460271835, 0.060445308685302734, 0.1746528148651123, -0.01248716190457344, 0.09167496114969254, 0.45824486017227173, 0.14422787725925446, -0.2612520456314087, -0.08616069704294205, -0.18981193006038666, -0.16286496818065643, -0.02528347074985504, -0.08302857726812363, 0.20349887013435364, -0.5895341038703918, -0.20815855264663696, -0.14799901843070984, 0.26615044474601746, -0.3238861858844757, 0.1126798763871193, 0.09572647511959076, -0.020556174218654633, 0.16441373527050018, -0.011525682173669338, -0.316531777381897, -0.19293218851089478, 0.25158771872520447, -0.04500991851091385, 0.034744441509246826, 0.5573700666427612, 0.3530450463294983, -0.031989578157663345, -0.14566074311733246, 0.2625563144683838, 0.3961198627948761, -0.3901972472667694, -0.10408514738082886, 0.40958812832832336, -0.10706950724124908, 0.22391049563884735, 0.5827171206474304, -0.19661884009838104, -0.18789583444595337, -0.01460951566696167, -0.4081915318965912, -0.19601309299468994, 0.005468504503369331, -0.08461689949035645, 0.16809438169002533, 0.22362464666366577, 0.16632294654846191, 0.27816492319107056, -0.20663300156593323, -0.21282748878002167, -0.1660309135913849, -0.28618159890174866, 0.01904233545064926, 0.35138386487960815, 0.34765854477882385, -0.1403682678937912, -0.008921399712562561, 0.15203052759170532, -0.2583584785461426, -0.08689767122268677, -0.14228880405426025, -0.19358202815055847, 0.1273213028907776, 0.14298468828201294, 0.28572940826416016, -0.26401039958000183, -0.3534659445285797, -0.14895589649677277, -0.25764143466949463, 0.1526484340429306, 0.13860884308815002, 0.10964435338973999, 0.4580557644367218, -0.34826695919036865, 0.4155035614967346, -0.20809289813041687, 0.006549233570694923, -0.1936618536710739, -0.07992780208587646, 0.2459099143743515, 0.006764078512787819, 0.14440225064754486, 0.06321508437395096, -0.38046449422836304, -0.038401488214731216, -0.23319004476070404, 0.046141624450683594, 0.284654438495636, -0.39492860436439514, 0.4182243347167969, 0.3276239335536957, 0.17505909502506256, 0.197166308760643, -0.062329113483428955, -0.06640452891588211, 0.1412874460220337, 0.22402693331241608, -0.45843103528022766, -0.3629930913448334, 0.16075798869132996, -0.007813813164830208, 0.038210876286029816, 0.3136924207210541, -0.11719515919685364, 0.10666324198246002, -0.06513337045907974, 0.03404109179973602, 0.6418436169624329, -0.041593484580516815, 0.21165528893470764, 0.35958975553512573, -0.04253111407160759, 0.17777206003665924, 0.3617371618747711, 0.3674902021884918, -0.048148173838853836, 0.4969026446342468, 0.06964689493179321, 0.11435620486736298, 0.14963185787200928, 0.3424574136734009, -0.12399105727672577, -0.4713841378688812, 0.2929891049861908, -0.16534793376922607, -0.26407864689826965, 0.14711438119411469, -0.29104137420654297, 0.05639674514532089, -0.7303274869918823, -0.3448590636253357, -0.029198266565799713, -0.08535346388816833, -0.06686106324195862, -0.07544132322072983, -0.14015069603919983, -0.06523679196834564, 0.20030036568641663, -0.10637001693248749, -0.07921083271503448, -0.11534018069505692, 0.34156376123428345, -0.13856762647628784, -0.018449898809194565, -0.5109074711799622, -0.08918550610542297, -0.04305944964289665, 0.13367682695388794, -0.029396697878837585, 0.23400001227855682, -0.17499886453151703, -0.09568143635988235, 0.2588127553462982, 0.009280156344175339, 0.1054125428199768, 0.23173320293426514, 0.19319480657577515, -0.15063056349754333, -0.309705913066864, -0.07959725707769394, -0.1394522786140442, 0.23788361251354218, 0.05474584549665451, 0.23465225100517273, 0.09779249131679535, 0.09976837784051895, -0.0947733148932457, 0.15362969040870667, 0.18206752836704254, 0.15230263769626617, -0.3820309638977051, 0.5445272326469421, 0.20701082050800323, -0.34169161319732666, -0.05597793310880661, -0.029506865888834, -0.1854066401720047, -0.0874871164560318, 0.48241961002349854, 0.09963622689247131, 0.11882808059453964, -0.004925530403852463, 0.0616283193230629, 0.20649372041225433, 0.24762791395187378, 0.27706313133239746, 0.005552974529564381, -0.1593337059020996, 0.3928474187850952, -0.7810738682746887, 0.06166660040616989, 0.29188138246536255, -0.2907620668411255, 0.3185736835002899, 0.04182680696249008, 0.33774012327194214, -0.026826757937669754, -0.087908536195755, 0.0872555822134018, 0.3598933815956116, -0.052029773592948914, -0.18595610558986664, -0.12714533507823944, 0.04639410600066185, 0.34353211522102356, -0.2045232355594635, -0.4161461293697357, 0.21036875247955322, -0.032718971371650696, -0.038015566766262054, 0.016593914479017258, 0.04120613634586334, 0.293100506067276, -0.09279707819223404, 0.18879783153533936, -0.13015110790729523, 0.5564450621604919, 0.0033662617206573486, 0.08939941227436066, -0.11958062648773193, -0.15187901258468628, -0.08515337109565735, 0.30022329092025757, -0.10612290352582932, 0.5048049688339233, -0.21357828378677368, 0.15928621590137482, -0.16078245639801025, 0.19988438487052917, 0.34648051857948303, 0.012696262449026108, -0.3018129765987396, 0.37847477197647095, -0.27027660608291626, 0.12058282643556595, 0.2680618464946747, 0.11732569336891174, -0.10001771152019501, 0.04063400626182556, 0.04586564004421234, -0.34247589111328125, 0.29596585035324097, -0.4661600887775421, -0.310043603181839, -0.10481145232915878, 0.24681589007377625, -0.11407370865345001, -0.05445118620991707, -0.6054846048355103, 0.052915558218955994, 0.4427361786365509, -0.03875613957643509, -0.5960947275161743, 0.3080437183380127, -0.17715875804424286, 0.009686224162578583, -0.06621286273002625, 0.21586865186691284, -0.051997583359479904, -0.03486751392483711, 0.09660683572292328, -0.06496093422174454 ]
https://github.com/huggingface/datasets/issues/2148
Hi @marrodion. Thanks for pointing this out. It would be great to incorporate this metric-specific enhancement. Another possibility would be to require the user to input the scheme as a string `mode="strict", scheme="IOB2"` and then dynamically import the corresponding module using Python `importlib`: ```python if scheme: scheme = importlib.import_module(f"seqeval.scheme.{scheme}") ``` Feel free to create a Pull Request to make this contribution.
Add configurable options to `seqeval` metric
Right now `load_metric("seqeval")` only works in the default mode of evaluation (equivalent to conll evaluation). However, seqeval library [supports](https://github.com/chakki-works/seqeval#support-features) different evaluation schemes (IOB1, IOB2, etc.), which can be plugged in just by supporting additional kwargs in `Seqeval._compute` https://github.com/huggingface/datasets/blob/85cf7ff920c90ca2e12bedca12b36d2a043c3da2/metrics/seqeval/seqeval.py#L109 Things that would be relevant are, for example, supporting `mode="strict", scheme=IOB2` to count only full entity match as a true positive and omit partial matches. The only problem I see is that the spirit of `metrics` seems to not require additional imports from user. `seqeval` only supports schemes as objects, without any string aliases. It can be solved naively with mapping like `{"IOB2": seqeval.scheme.IOB2}`. Or just left as is and require user to explicitly import scheme from `seqeval` if he wants to configure it past the default implementation. If that makes sense, I am happy to implement the change.
61
Add configurable options to `seqeval` metric Right now `load_metric("seqeval")` only works in the default mode of evaluation (equivalent to conll evaluation). However, seqeval library [supports](https://github.com/chakki-works/seqeval#support-features) different evaluation schemes (IOB1, IOB2, etc.), which can be plugged in just by supporting additional kwargs in `Seqeval._compute` https://github.com/huggingface/datasets/blob/85cf7ff920c90ca2e12bedca12b36d2a043c3da2/metrics/seqeval/seqeval.py#L109 Things that would be relevant are, for example, supporting `mode="strict", scheme=IOB2` to count only full entity match as a true positive and omit partial matches. The only problem I see is that the spirit of `metrics` seems to not require additional imports from user. `seqeval` only supports schemes as objects, without any string aliases. It can be solved naively with mapping like `{"IOB2": seqeval.scheme.IOB2}`. Or just left as is and require user to explicitly import scheme from `seqeval` if he wants to configure it past the default implementation. If that makes sense, I am happy to implement the change. Hi @marrodion. Thanks for pointing this out. It would be great to incorporate this metric-specific enhancement. Another possibility would be to require the user to input the scheme as a string `mode="strict", scheme="IOB2"` and then dynamically import the corresponding module using Python `importlib`: ```python if scheme: scheme = importlib.import_module(f"seqeval.scheme.{scheme}") ``` Feel free to create a Pull Request to make this contribution.
[ -0.44041430950164795, 0.1902090609073639, -0.0845155119895935, -0.1625579297542572, 0.07494725286960602, -0.16458258032798767, 0.14902152121067047, 0.2498323619365692, -0.08360826224088669, 0.3530941605567932, -0.4670090079307556, 0.24865524470806122, -0.032320279628038406, 0.2693849802017212, 0.07189244031906128, 0.31659403443336487, -0.2818849980831146, -0.042625103145837784, 0.0006643682718276978, 0.10873008519411087, -0.5529809594154358, -0.011778515763580799, -0.10303077101707458, -0.15207307040691376, 0.06098231300711632, 0.29063835740089417, 0.05605193227529526, -0.022627443075180054, -0.12544184923171997, -0.5280550718307495, 0.01759205013513565, 0.44602978229522705, -0.22122088074684143, -0.060156915336847305, -0.00010788366489578038, -0.15811310708522797, 0.16893570125102997, -0.22602081298828125, -0.2090338170528412, -0.08443392813205719, -0.36332952976226807, -0.29116731882095337, 0.30622467398643494, -0.2748050093650818, 0.038880981504917145, 0.2660090923309326, -0.01655706577003002, -0.116165891289711, 0.037027303129434586, 0.1991535872220993, 0.18335646390914917, 0.11829549074172974, -0.12182091176509857, -0.062190860509872437, -0.20977485179901123, -0.0393512062728405, -0.1454712450504303, 0.3663661479949951, 0.08257582783699036, 0.22606216371059418, -0.14750820398330688, 0.05481232702732086, -0.08253465592861176, -0.24244610965251923, 0.2761703133583069, -0.11937282979488373, 0.6835111975669861, -0.0490722618997097, -0.010148204863071442, 0.3530784547328949, 0.2921999394893646, -0.13816945254802704, -0.30305975675582886, -0.13828045129776, 0.09934644401073456, -0.675946831703186, 0.14662806689739227, -0.09608589857816696, -0.10308708250522614, -0.08269613236188889, -0.14796531200408936, -0.03345923125743866, -0.30226510763168335, 0.07470265030860901, -0.25745218992233276, 0.39391690492630005, 0.10316227376461029, -0.06494982540607452, 0.35413599014282227, -0.08736615628004074, -0.2809016704559326, 0.1270287036895752, -0.0665888860821724, 0.16565459966659546, -0.740868866443634, -0.14774355292320251, -0.01834831014275551, -0.1815032958984375, 0.28837665915489197, 0.16825483739376068, 0.17247512936592102, 0.4368011951446533, 0.25173982977867126, 0.35413068532943726, -0.021023357287049294, 0.3432517349720001, 0.31318604946136475, -0.011234678328037262, 0.24745795130729675, 0.02483716979622841, 0.37149035930633545, -0.00041268859058618546, 0.009016167372465134, -0.6599242687225342, 0.06792126595973969, 0.11593937873840332, -0.14856335520744324, -0.239864319562912, -0.4179401099681854, -0.15822263062000275, -0.05863480642437935, -0.11130106449127197, 0.5018104314804077, 0.12350969016551971, -0.1155993714928627, -0.08950798213481903, 0.019227221608161926, 0.43787941336631775, -0.14587059617042542, -0.0979548916220665, 0.01635275036096573, 0.04116706922650337, 0.20457714796066284, 0.0621870756149292, 0.24875208735466003, -0.3678162395954132, 0.13031776249408722, -0.04906850308179855, 0.4444539546966553, -0.16599112749099731, 0.1460125744342804, 0.1006268560886383, -0.20697380602359772, 0.07889687269926071, -0.133262500166893, -0.42185497283935547, 0.09162858128547668, -0.2899060845375061, -0.4019010066986084, -0.07141900807619095, -0.1759270429611206, -0.47689181566238403, 0.061653219163417816, 0.22529520094394684, -0.5246814489364624, -0.013011477887630463, -0.008132614195346832, 0.8326740264892578, -0.32212650775909424, 0.01414414495229721, -0.04762144014239311, 0.1276528686285019, -0.4847738742828369, -0.08895392715930939, 0.5480528473854065, 0.3216399550437927, -0.22203120589256287, -0.23983140289783478, -0.25511401891708374, -0.07941378653049469, -0.2599945664405823, -0.20220474898815155, -0.06023894622921944, 0.08373391628265381, 0.031189724802970886, -0.028474517166614532, 0.7662087082862854, -0.4222576916217804, -0.021045450121164322, -0.08032423257827759, 0.11194588243961334, -0.2272857427597046, 0.1323760747909546, -0.03731151670217514, 0.3576788306236267, 0.004909612238407135, 0.08430778980255127, 0.22053372859954834, 0.16161443293094635, -0.26138991117477417, -0.26687753200531006, -0.271186888217926, -0.23167437314987183, 0.1784905642271042, 0.3956593871116638, -0.03511662036180496, 0.3203670382499695, -0.006506338715553284, -0.21609170734882355, -0.035771001130342484, 0.11517618596553802, 0.06184737756848335, 0.20124873518943787, -0.11309079825878143, 0.09187793731689453, -0.1234123557806015, 0.06004924327135086, 0.2182963788509369, -0.09041980654001236, 0.048032067716121674, 0.1216682493686676, -0.11279596388339996, -0.4679355323314667, 0.055917590856552124, -0.18985097110271454, 0.055530209094285965, 0.2089473009109497, -0.3269340693950653, -0.034249722957611084, 0.1159048080444336, 0.0020938143134117126, 0.09133855998516083, 0.2793196141719818, 0.08629868924617767, -0.01398889534175396, -0.0003468543291091919, 0.2114747017621994, 0.05678657069802284, 0.20875123143196106, 0.4165765047073364, 0.19133341312408447, 0.25936368107795715, -0.10916434228420258, 0.41100555658340454, -0.0502912811934948, 0.18412797152996063, -0.015086140483617783, 0.5559142827987671, 0.06837724149227142, 0.00658956915140152, 0.051929034292697906, -0.0516524612903595, 0.06118706241250038, -0.06415192037820816, -0.23679855465888977, 0.5868173241615295, -0.07947559654712677, 0.23561601340770721, -0.34249570965766907, 0.06488300859928131, 0.13193747401237488, -0.09533137083053589, -0.5527422428131104, -0.30628082156181335, 0.10044777393341064, -0.013267040252685547, 0.2669741213321686, 0.05665627121925354, 0.05823737382888794, -0.37723374366760254, -0.15560930967330933, 0.1259266436100006, 0.14135879278182983, 0.1581711769104004, 0.06610210984945297, -0.20525109767913818, 0.03822018951177597, -0.46629253029823303, 0.29030632972717285, 0.21502311527729034, 0.015453142113983631, -0.047034285962581635, -0.23438772559165955, -0.07949616014957428, 0.33403122425079346, 0.1572771817445755, 0.01582208275794983, 0.21306365728378296, 0.3205012083053589, -0.21908153593540192, -0.3135817050933838, -0.08005731552839279, 0.04091224819421768, -0.042243342846632004, -0.3572460114955902, -0.09431986510753632, -0.197891503572464, 0.24500057101249695, 0.17177031934261322, 0.04603540897369385, -0.20257505774497986, -0.41226381063461304, 0.5190325975418091, 0.20285478234291077, -0.17206257581710815, 0.1802852600812912, -0.11512795090675354, 0.3317412734031677, -0.0443057157099247, -0.43569710850715637, -0.14095832407474518, -0.18177182972431183, 0.09405183792114258, 0.09569575637578964, 0.005735360085964203, 0.10297520458698273, 0.3749665915966034, -0.06758923083543777, 0.2991306781768799, 0.03555566072463989, -0.6364480257034302, -0.023980762809515, 0.22682616114616394, 0.5722036361694336, 0.15523837506771088, -0.40561309456825256, -0.06925404071807861, -0.05090424418449402, 0.22313806414604187, 0.20376074314117432, -0.006117973476648331, 0.4136137068271637, -0.060964204370975494, 0.25029897689819336, -0.22197791934013367, 0.01780131831765175, 0.10002405941486359, -0.5327188968658447, 0.245356947183609, 0.05943907052278519, -0.00788574106991291, 0.06862227618694305, 0.1769716888666153, 0.05620793625712395, 0.11124151200056076, 0.17716172337532043, -0.1424994021654129, 0.19277390837669373, 0.4930688142776489, -0.20485982298851013, -0.03413919731974602, 0.07726143300533295, -0.2785190939903259, 0.45517921447753906, 0.07987502217292786, -0.1620340794324875, -0.5353202819824219, 0.32367080450057983, 0.2179785966873169, -0.06053005903959274, -0.41714996099472046, 0.031184187158942223, 0.1809617578983307, 0.023363329470157623, -0.055509019643068314, -0.18140186369419098, 0.29893019795417786, 0.15835018455982208, 0.13387292623519897, -0.011518663726747036, 0.21644087135791779, 0.1655125766992569, 0.056213244795799255, -0.0208812914788723, 0.2980601191520691, 0.0986940860748291, 0.03524649143218994, 0.22599363327026367, 0.15113085508346558, -0.08410554379224777, 0.1994827389717102, 0.3487311005592346, -0.16577821969985962, 0.3828112781047821, 0.26789382100105286, 0.16506604850292206, -0.2781142294406891, -0.12243601679801941, 0.12283242493867874, -0.29812878370285034, 0.1224508136510849, -0.249365895986557, 0.24791476130485535, -0.13628442585468292, -0.07326315343379974, -0.32058185338974, -0.05068060755729675, 0.1360854208469391, 0.36597973108291626, -0.021237507462501526, 0.04806417599320412, 0.12034686654806137, 0.22674515843391418, -0.18174073100090027, 0.24492770433425903, -0.28223562240600586, -0.1319662481546402, 0.1585785448551178, 0.002596721053123474, 0.14854690432548523, 0.09062843769788742, 0.4362582564353943, -0.16548903286457062, -0.20845286548137665, 0.18889972567558289, -0.0821000263094902, -0.5329558849334717, 0.03566192835569382, -0.034951675683259964, -0.4825756549835205, 0.23730230331420898, 0.23422712087631226, -0.6754449009895325, -0.05953356623649597, 0.12159384787082672, 0.14881432056427002, -0.24912598729133606, -0.3720698058605194, -0.24919478595256805, -0.1661500334739685, -0.1850426197052002, 0.17674520611763, -0.04123383015394211, 0.20862062275409698, 0.058240875601768494, 0.02782149612903595, -0.2370106279850006, -0.2062326967716217, 0.2350771278142929, 0.2506455183029175, 0.17963147163391113, -0.21918576955795288, 0.2529244124889374, 0.1343902200460434, -0.2753550410270691, -0.03824100270867348, 0.056091856211423874, 0.11884976923465729, -0.5144648551940918, 0.11945266276597977, -0.09954848885536194, 0.427116334438324, -0.014253556728363037, -0.08422715961933136, 0.10472570359706879, -0.41693541407585144, 0.04661599174141884, -0.24163375794887543, 0.2342703640460968, 0.10228460282087326, 0.1387830376625061, 0.07183993607759476, -0.23001158237457275, 0.7161651849746704, 0.03345682471990585, -0.3667720556259155, -0.3400568664073944, -0.1941259503364563, -0.27625998854637146, 0.12698446214199066, 0.5371963977813721, 0.6189171075820923, -0.22975854575634003, -0.4230228364467621, 0.19059525430202484, -0.15760283172130585, 0.17870847880840302, -0.2520562410354614, 0.06491073220968246, -0.16930639743804932, 0.3038465976715088, 0.11483976244926453, 0.09615777432918549, 0.12135578691959381, 0.028585853055119514, -0.32295525074005127, 0.26230138540267944, -0.08764543384313583, -0.12668174505233765, 0.07312851399183273, 0.13385798037052155, -0.1751510202884674, -0.35738056898117065, -0.18636934459209442, 0.15569761395454407, -0.06010535731911659, -0.15177494287490845, 0.0936812087893486, -0.11704839766025543, 0.13345882296562195, 0.05236612260341644, 0.07798147201538086, -0.33012741804122925, -0.148598313331604, 0.07181105017662048, -0.12275059521198273, -0.13408182561397552, 0.15386518836021423, 0.36779460310935974, 0.31590643525123596, 0.2506951689720154, -0.21920767426490784, 0.06880055367946625, -0.12068431079387665, 0.4233388304710388, 0.12890471518039703, 0.020571276545524597, 0.06752476841211319, -0.17250147461891174, -0.025088340044021606, 0.14015169441699982, 0.00981833040714264, -0.26619595289230347, 0.14127278327941895, 0.060811612755060196, 0.2566731572151184, 0.0033593326807022095, 0.2854258418083191, -0.22577151656150818, 0.2838928699493408, -0.15380150079727173, 0.15299399197101593, 0.2556662857532501, 0.02788180485367775, 0.27982988953590393, -0.029474876821041107, -0.2504780888557434, -0.022610289976000786, 0.035968974232673645, -0.11927686631679535, -0.003410831093788147, 0.11091950535774231, -0.5640184879302979, -0.02699243649840355, -0.07855083048343658, -0.21523261070251465, -0.3589274287223816, -0.24812476336956024, 0.19378340244293213, 0.2345779538154602, -0.23137672245502472, 0.07457052171230316, 0.3725794553756714, 0.16769054532051086, -0.09971021115779877, 0.08976972103118896, -0.1951112151145935, -0.05834854394197464, 0.22835643589496613, -0.05347875878214836, 0.1799023598432541, -0.31278079748153687, 0.1394997090101242, -0.39117515087127686, 0.12892937660217285, -0.369701623916626, -0.2773507237434387, -0.08781681209802628, 0.16679483652114868, -0.180775985121727, 0.1421959102153778, -0.03884696215391159, 0.23742297291755676, 0.12205968797206879, 0.038196664303541183, -0.40782102942466736, -0.15035410225391388, -0.41578203439712524, 0.11823168396949768, -0.22598104178905487, 0.28529807925224304, 0.054787490516901016, 0.1516318917274475, -0.18489262461662292, -0.33551904559135437, -0.11514315009117126, 0.15122443437576294, -0.2504039406776428, 0.032773591578006744, -0.012063460424542427, 0.2532397508621216, 0.04268006980419159, 0.08846699446439743, 0.07615277171134949, 0.06910998374223709, -0.2445204257965088, 0.4089042544364929, -0.4262244999408722, 0.001344628632068634, 0.3232171833515167, 0.23789027333259583, 0.14437955617904663, -0.2653341591358185, 0.07359592616558075, 0.40129590034484863, -0.07278401404619217, 0.054896995425224304, 0.1699570268392563, 0.2629702091217041, 0.08510730415582657, -0.032425038516521454, 0.005832113325595856, 0.21335522830486298, -0.20159223675727844, 0.11526468396186829, -0.37768256664276123, -0.13561032712459564, 0.3888043463230133, 0.40750688314437866, 0.49923601746559143, -0.23985522985458374, 0.6050271987915039, -0.06922288239002228, 0.027040164917707443, 0.01791422814130783, 0.08923296630382538, 0.10727095603942871, -0.18238970637321472, 0.12619104981422424, 0.6123809814453125, -0.029622338712215424, 0.33059415221214294, -0.2045365869998932, -0.28995823860168457, 0.03316511958837509, -0.06816290318965912, 0.25785771012306213, 0.015705477446317673, 0.017408370971679688, 0.28668710589408875, 0.03685992956161499, -0.23323975503444672, 0.0928659439086914, 0.005093909800052643, 0.3247486650943756, -0.1984855830669403, 0.08082856237888336, -0.3066543936729431, 0.02904832735657692, 0.15744924545288086, -0.19035421311855316, -0.1305321902036667, -0.43495744466781616, -0.22365990281105042, -0.11163246631622314, 0.12099342048168182, -0.2770494222640991, -0.06106499210000038, 0.0820431262254715, 0.4553855061531067, -0.13701941072940826, -0.07929763197898865, 0.3357093036174774, 0.21506932377815247, -0.3242679536342621, -0.0028114160522818565, 0.12782388925552368, 0.03350731357932091, 0.46833348274230957, 0.3301253616809845, 0.08626750111579895, -0.02771884948015213, 0.09599334001541138, -0.26478275656700134, -0.1995585560798645, 0.054661400616168976, -0.25626498460769653, 0.07924135029315948, 0.2268075793981552, -0.22331778705120087, 0.3783639967441559, 0.16491460800170898, -0.1877298653125763, 0.21483367681503296, -0.3457733690738678, 0.023863304406404495, -0.6392331123352051, 0.08739322423934937, 0.49237123131752014, 0.012428991496562958, 0.029333092272281647, -0.42526480555534363, 0.029337376356124878, -0.3556756377220154, -0.133848637342453, -0.005188107490539551, 0.09812434017658234, -0.08434528112411499, 0.12542101740837097, 0.11431114375591278, -0.053897175937891006, -0.18149010837078094, -0.3265305161476135, -0.15672948956489563, 0.17096102237701416, -0.6458706855773926, 0.005264889448881149, 0.3642019033432007, 0.03217722475528717, 0.19042685627937317, 0.05645609647035599, -0.1080871969461441, 0.4374265968799591, -0.21797457337379456, -0.30415934324264526, 0.27445709705352783, -0.11279285699129105, -0.338661253452301, -0.024566063657402992, 0.14906874299049377, -0.08366578817367554, 0.0014884471893310547, 0.02830968052148819, -0.00020302366465330124, -0.3106567859649658, 0.13917621970176697, -0.06634081155061722, -0.08546259254217148, 0.30350613594055176, 0.29354429244995117, 0.17968297004699707, 0.15820348262786865, 0.31545859575271606, -0.13807420432567596, 0.306892991065979, -0.032209280878305435, 0.09930288791656494, -0.17246803641319275, -0.050414908677339554, -0.12013091146945953, 0.12117956578731537, -0.025784555822610855, -0.1413269340991974, 0.04385530948638916, 0.5314905643463135, 0.0005544722080230713, -0.6094728708267212, -0.007051490247249603, 0.05451046675443649, 0.18061034381389618, 0.0297052264213562, -0.25948384404182434, 0.27967965602874756, 0.21022580564022064, 0.1567271500825882, 0.0636734813451767, -0.18608084321022034, 0.2762584984302521, -0.17379507422447205, -0.03883279487490654, -0.05622350051999092, 0.3350418210029602, 0.43953192234039307, 0.1541653424501419, -0.14884357154369354, -0.030366189777851105, 0.4258217513561249, 0.24231712520122528, 0.13917581737041473, 0.4387211799621582, 0.03533519431948662, -0.022817745804786682, -0.24922816455364227, -0.3756602704524994, 0.13600504398345947, 0.2666221559047699, -0.028733257204294205, -0.21729525923728943 ]
https://github.com/huggingface/datasets/issues/2146
Hi ! In the arrow file we store all the integers as uint8. So your arrow file should weigh around `height x width x n_channels x n_images` bytes. What feature type do your TFDS dataset have ? If it uses a `tfds.features.Image` type, then what is stored is the encoded data (as png or jpg for example). Since these encodings are made for compression, the resulting tfrecord is smaller that the arrow file. We are working on adding a similar feature in `datasets`: the ability to store the encoded data instead of the raw integers for images, but also for audio data. This way, arrow files will have similar sizes as tfrecords for images.
Dataset file size on disk is very large with 3D Array
Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help.
114
Dataset file size on disk is very large with 3D Array Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help. Hi ! In the arrow file we store all the integers as uint8. So your arrow file should weigh around `height x width x n_channels x n_images` bytes. What feature type do your TFDS dataset have ? If it uses a `tfds.features.Image` type, then what is stored is the encoded data (as png or jpg for example). Since these encodings are made for compression, the resulting tfrecord is smaller that the arrow file. We are working on adding a similar feature in `datasets`: the ability to store the encoded data instead of the raw integers for images, but also for audio data. This way, arrow files will have similar sizes as tfrecords for images.
[ -0.14527370035648346, -0.11326291412115097, -0.15441793203353882, 0.4201558828353882, 0.21356363594532013, 0.11391296982765198, 0.5066811442375183, 0.2730788290500641, 0.020523034036159515, 0.035847704857587814, -0.19370460510253906, 0.08741555362939835, -0.16945859789848328, 0.31504392623901367, 0.06775017827749252, 0.10068821907043457, -0.07451768219470978, 0.2513984143733978, -0.1334787905216217, -0.08572042733430862, -0.009700722992420197, 0.019117580726742744, -0.01790957897901535, -0.18380630016326904, -0.061561763286590576, -0.16138316690921783, 0.0913488119840622, -0.024184774607419968, -0.08309878408908844, 0.07972719520330429, 0.2449779510498047, -0.08801180124282837, 0.17819984257221222, 0.5363872647285461, -0.00011738437024177983, 0.05027659237384796, 0.10829425603151321, -0.16553209722042084, 0.07918700575828552, 0.2893508970737457, -0.09255556017160416, -0.4095061421394348, -0.07466690242290497, -0.35760876536369324, 0.07695846259593964, -0.32495516538619995, -0.15211746096611023, -0.153545543551445, 0.18488997220993042, 0.07910023629665375, 0.21104568243026733, 0.15330511331558228, -0.0271134153008461, 0.4150457978248596, 0.09937799721956253, 0.5338882207870483, -0.1533459573984146, 0.12685559689998627, -0.14353850483894348, 0.43720173835754395, 0.08429765701293945, 0.07955040037631989, 0.1613585501909256, 0.28772538900375366, 0.5040502548217773, -0.055517882108688354, 0.23921160399913788, -0.2461923062801361, 0.12989376485347748, 0.40011295676231384, 0.8583651781082153, -0.2007376253604889, -0.18428048491477966, -0.3255719244480133, -0.10833004117012024, -0.03233903646469116, 0.022540954872965813, 0.38006332516670227, -0.04988998547196388, 0.021930869668722153, -0.6522024273872375, -0.13922451436519623, -0.22694185376167297, 0.14550183713436127, -0.21365347504615784, -0.48096752166748047, -0.13809017837047577, 0.1503390669822693, -0.18900084495544434, -0.26583653688430786, 0.2607785761356354, -0.39559224247932434, 0.0734373927116394, -0.09971439093351364, -0.26596593856811523, -0.2101806402206421, -0.29051390290260315, -0.3803427815437317, 0.35302722454071045, -0.15380622446537018, -0.010828046128153801, -0.15199336409568787, -0.36489319801330566, -0.14774228632450104, 0.10398486256599426, 0.38603758811950684, -0.4768473505973816, -0.13859772682189941, -0.14186814427375793, -0.29509052634239197, -0.04088149219751358, -0.05229458957910538, -0.2465379685163498, -0.09075766056776047, 0.19863322377204895, -0.4835401177406311, 0.0639367327094078, -0.06186699494719505, 0.044680774211883545, 0.023807372897863388, 0.08648133277893066, -0.09525518119335175, -0.07516278326511383, 0.13165301084518433, 0.14105086028575897, 0.13527610898017883, -0.140061616897583, -0.039203815162181854, -0.18591542541980743, 0.04163796454668045, -0.1229669451713562, -0.10461083054542542, 0.06263116002082825, -0.08175508677959442, 0.1144736260175705, 0.15056857466697693, 0.052291400730609894, -0.1904568076133728, 0.09038839489221573, 0.20010031759738922, 0.26247406005859375, -0.34731975197792053, 0.4073760509490967, 0.3550085723400116, 0.15890651941299438, 0.19831866025924683, -0.28542035818099976, 0.13986484706401825, -0.19970829784870148, 0.49449458718299866, -0.5467606782913208, -0.045360419899225235, -0.417341411113739, 0.09062186628580093, -0.22343438863754272, -0.054319847375154495, -0.572836697101593, 0.00974305346608162, 0.33955323696136475, -0.11862163990736008, 0.06782431900501251, -0.2173456996679306, -0.3785403072834015, -0.2943599820137024, -0.03715429827570915, 0.03126586973667145, -0.75631183385849, 0.26123136281967163, -0.1514396071434021, 0.08173613995313644, 0.19522051513195038, 0.5952158570289612, -0.08995175361633301, 0.4252850115299225, -0.4255610704421997, -0.048471175134181976, 0.04300415515899658, -0.038400035351514816, -0.661108136177063, 0.4873417615890503, 0.07067178189754486, 0.04850286990404129, 0.11241471767425537, 0.32018202543258667, 0.16368640959262848, -0.01637512631714344, -0.22282914817333221, 0.326605886220932, 0.09104804694652557, 0.042669348418712616, -0.19083285331726074, -0.38112324476242065, 0.08823920786380768, 0.045980677008628845, -0.13749533891677856, -0.14053548872470856, 0.1314450353384018, 0.08348657190799713, 0.2107226848602295, -0.1292203813791275, 0.03606019169092178, 0.37058576941490173, 0.20966362953186035, -0.2556735873222351, -0.021588971838355064, 0.1423659473657608, -0.6317533254623413, 0.18338093161582947, 0.24726170301437378, -0.4363887906074524, 0.15575344860553741, -0.10444342344999313, 0.03820660710334778, -0.22964641451835632, -0.08958980441093445, 0.20130100846290588, 0.023702502250671387, -0.0005766116082668304, -0.009196512401103973, -0.010455846786499023, -0.008591234683990479, -0.14775271713733673, 0.11488465219736099, -0.18818452954292297, -0.4114224314689636, 0.3561537265777588, 0.21356521546840668, -0.035041693598032, -0.10568654537200928, -0.07886134088039398, -0.3569895029067993, -0.3410830497741699, -0.18653513491153717, 0.0800962895154953, 0.2511081099510193, 0.1212475597858429, -0.07733041793107986, 0.48373788595199585, 0.22343087196350098, 0.07611685991287231, 0.3378685414791107, -0.12107348442077637, 0.09457802772521973, -0.22061552107334137, -0.20205232501029968, 0.21652069687843323, -0.19182473421096802, 0.06590235978364944, 0.02028799057006836, -0.359314501285553, 0.28578120470046997, 0.13330534100532532, 0.10505349189043045, -0.25766873359680176, -0.07694397866725922, 0.19290252029895782, 0.34674203395843506, 0.20294231176376343, 0.10765628516674042, 0.046753671020269394, 0.6398188471794128, -0.16672179102897644, 0.10701832920312881, 0.36452120542526245, -0.1265421211719513, -0.07832760363817215, 0.1058710366487503, 0.24525155127048492, 0.5257763266563416, 0.21703112125396729, 0.04596449062228203, -0.04137374460697174, 0.4925529658794403, -0.14437991380691528, 0.08119146525859833, 0.06789639592170715, 0.5235673189163208, 0.2810913324356079, 0.16023829579353333, 0.002756677567958832, -0.28445547819137573, -0.11330655962228775, 0.20439442992210388, 0.24656634032726288, -0.30335286259651184, 0.19992609322071075, -0.16313505172729492, -0.2681357264518738, -0.09480015188455582, 0.19029881060123444, -0.06011192500591278, 0.12484181672334671, -0.32770606875419617, -0.1944482922554016, 0.025102123618125916, -0.07976751029491425, 0.14392176270484924, 0.08479732275009155, 0.2937847077846527, -0.06793172657489777, 0.2701689600944519, 0.34331804513931274, -0.08782494068145752, 0.03548785299062729, 0.4142909646034241, -0.14856114983558655, 0.3000026345252991, -0.16350224614143372, 0.20966587960720062, -0.1380714774131775, -0.25168097019195557, 0.12045302987098694, 0.060555510222911835, 0.07064516097307205, -0.10957366228103638, 0.2740660309791565, -0.19955989718437195, 0.20189103484153748, 0.028606534004211426, 0.04939958453178406, -0.2603568732738495, 0.0002534016966819763, -0.04818806052207947, -0.12865231931209564, -0.21747037768363953, 0.09344645589590073, -0.28394588828086853, -0.05099092796444893, 0.2078641802072525, 0.18169014155864716, 0.2575589418411255, 0.370563268661499, 0.17234350740909576, 0.04122808948159218, 0.14932793378829956, -0.024331260472536087, -0.19408050179481506, -0.4591633081436157, 0.14596116542816162, -0.028291476890444756, -0.37252455949783325, 0.14329096674919128, 0.011465869843959808, 0.19203658401966095, 0.20455169677734375, -0.6480359435081482, -0.03949148952960968, -0.29309457540512085, 0.03786654770374298, -0.1762448102235794, 0.12188360095024109, 0.020079728215932846, -0.21597300469875336, 0.08265318721532822, -0.0400288924574852, -0.12273233383893967, -0.0801263079047203, 0.15147334337234497, 0.1209954023361206, 0.12774190306663513, 0.5383257269859314, 0.2677575349807739, 0.4104941487312317, 0.12948647141456604, -0.30160579085350037, 0.12483590096235275, -0.12099259346723557, 0.37001118063926697, -0.24813170731067657, 0.05178864300251007, 0.34236636757850647, 0.17940786480903625, -0.2017466127872467, 0.2401464730501175, -0.0048977043479681015, -0.07058320194482803, 0.3367037773132324, 0.02878984808921814, -0.1383410394191742, 0.023906394839286804, 0.19354937970638275, -0.06046883389353752, 0.010493495501577854, -0.07026968896389008, -0.09877220541238785, -0.15903791785240173, -0.3050755262374878, -0.08737380802631378, 0.19044609367847443, 0.21983367204666138, 0.033971015363931656, -0.37733936309814453, -0.11484984308481216, -0.34796467423439026, 0.18864338099956512, -0.16870802640914917, 0.3023189604282379, 0.032284125685691833, 0.2741393744945526, 0.24751821160316467, 0.1615711748600006, 0.9262685775756836, -0.09160738438367844, 0.07147279381752014, -0.19727389514446259, -0.04356765002012253, -0.589411199092865, -0.15428125858306885, -0.07896407693624496, 0.027080446481704712, -0.059039417654275894, 0.5538508892059326, -0.06310946494340897, -0.06860674917697906, -0.2617592215538025, 0.2991938889026642, -0.316880464553833, -0.38776540756225586, -0.275534451007843, -0.2933424115180969, -0.13568785786628723, -0.3935815989971161, 0.01999439299106598, -0.08695605397224426, 0.07559973746538162, -0.3193263113498688, -0.2675706446170807, -0.1990124136209488, 0.0541379451751709, 0.014546118676662445, 0.3740360140800476, 0.34350812435150146, 0.20867516100406647, -0.0869256854057312, 0.328469842672348, 0.36619991064071655, 0.25957685708999634, 0.07187537103891373, 0.05686696991324425, 0.20528654754161835, -0.2168000042438507, 0.08616216480731964, 0.10835614055395126, -0.02505907416343689, -0.28772249817848206, -0.0670187920331955, 0.11199008673429489, -0.28302785754203796, 0.1024947240948677, 0.37182679772377014, -0.15860804915428162, -0.0864219218492508, -0.3929764926433563, 0.3548666536808014, 0.012159965932369232, 0.09401427209377289, 0.03600576892495155, -0.05195235088467598, -0.14947345852851868, 0.14809547364711761, 0.2831670343875885, 0.5525878667831421, -0.3548775613307953, 0.30332136154174805, 0.2974138557910919, 0.0017681047320365906, 0.011402871459722519, -0.026530422270298004, -0.16806527972221375, -0.14450696110725403, -0.3122716248035431, 0.003084540367126465, -0.1878085434436798, -0.025493528693914413, 0.4849463999271393, 0.17509660124778748, 0.04391273111104965, 0.206707164645195, 0.0071274638175964355, -0.11497586220502853, 0.5293207764625549, 0.2995489835739136, -0.22830042243003845, 0.03250184282660484, 0.06393478065729141, -0.2548326849937439, -0.19034942984580994, -0.0622592493891716, -0.08637944608926773, -0.09849429130554199, 0.2215803563594818, -0.04033968597650528, -0.21266697347164154, -0.12389595806598663, 0.36795148253440857, -0.10822103917598724, -0.23162196576595306, 0.18157267570495605, 0.08386661857366562, -0.20102059841156006, 0.1966233104467392, -0.15731891989707947, 0.12797008454799652, 0.0030061043798923492, 0.3249218761920929, 0.14139865338802338, -0.1144990622997284, -0.031045502051711082, -0.09132468700408936, 0.02342715859413147, -0.19438661634922028, 0.1888037770986557, -0.14826920628547668, -0.06292609870433807, 0.0454888716340065, 0.029789678752422333, -0.09611004590988159, -0.6530036330223083, -0.34319213032722473, -0.20482397079467773, 0.40102970600128174, 0.0805630013346672, 0.13096117973327637, 0.21248318254947662, 0.4965970516204834, 0.024388903751969337, -0.37303584814071655, -0.14032651484012604, 0.1895272582769394, 0.2858308255672455, 0.17994695901870728, 0.38669201731681824, -0.13410884141921997, -0.1365937739610672, -0.07098973542451859, 0.6510818004608154, 0.10127302259206772, -0.19125421345233917, -0.05776600539684296, -0.04039059579372406, 0.3169392943382263, 0.020815029740333557, -0.3343828320503235, 0.18835803866386414, -0.0939159169793129, -0.359913170337677, -0.20773467421531677, -0.1373049020767212, 0.12147100269794464, -0.1601492166519165, 0.29431942105293274, 0.0504378080368042, -0.18645305931568146, 0.0016887038946151733, -0.07643132656812668, -0.20493295788764954, 0.19694584608078003, 0.2957784831523895, 0.00608423724770546, -0.332867830991745, 0.06457117944955826, -0.0876779556274414, -0.26825714111328125, -0.06693807989358902, -0.14714351296424866, -0.1714790314435959, -0.1753692775964737, 0.09678087383508682, 0.11153759062290192, 0.1287064105272293, -0.2801166772842407, 0.10161857306957245, -0.37504392862319946, -0.47884705662727356, -0.13488060235977173, 0.13195562362670898, -0.06796912848949432, -0.09098754078149796, 0.10331321507692337, 0.022080618888139725, -0.2510060966014862, 0.007965713739395142, 0.14160768687725067, 0.035423193126916885, 0.29884904623031616, 0.1892450451850891, 0.1612936556339264, 0.1742735058069229, 0.04252859950065613, -0.47614413499832153, 0.01756303571164608, -0.05883922427892685, 0.09957308322191238, 0.18741725385189056, -0.19626381993293762, 0.25034740567207336, 0.25902059674263, 0.3225478529930115, 0.10736009478569031, -0.43837645649909973, -0.22731029987335205, -0.07985447347164154, 0.12250016629695892, 0.051014192402362823, -0.18315842747688293, 0.19453534483909607, 0.2868766784667969, -0.06883242726325989, 0.318470299243927, 0.235200434923172, 0.34769535064697266, -0.42014819383621216, 0.046827591955661774, 0.411074161529541, 0.06719355285167694, -0.12977394461631775, 0.47173169255256653, -0.20362508296966553, 0.05236390233039856, 0.0846017599105835, 0.29466453194618225, 0.12019599974155426, 0.8587026000022888, 0.12909138202667236, 0.1891804188489914, 0.4139888882637024, -0.03033757209777832, 0.00684501975774765, -0.4966720938682556, -0.09523242712020874, 0.19847510755062103, -0.1680757999420166, 0.2741124629974365, 0.17021197080612183, -0.35905295610427856, 0.1909862607717514, -0.3852771520614624, -0.2336919605731964, -0.062026623636484146, -0.26225313544273376, 0.13358169794082642, -0.0030270814895629883, 0.027324959635734558, 0.16201022267341614, 0.23714080452919006, -0.3845197856426239, -0.30147701501846313, -0.2461310476064682, 0.1889079064130783, -0.20237627625465393, 0.2124776840209961, 0.4214305877685547, 0.04444253072142601, -0.03152453526854515, -0.03910906985402107, 0.36462754011154175, 0.09868396073579788, 0.10106852650642395, -0.0881534218788147, 0.07781046628952026, 0.13030865788459778, 0.19422197341918945, 0.18647180497646332, -0.024569397792220116, 0.2299172282218933, -0.012341786175966263, -0.06380588561296463, 0.02308013290166855, -0.10071124136447906, -0.015063393861055374, 0.13520467281341553, 0.07699869573116302, -0.019525207579135895, -0.10237172991037369, 0.42258957028388977, -0.005134787410497665, -0.4865999221801758, -0.03334219381213188, -0.4977216124534607, -0.0050531476736068726, -0.05147738382220268, 0.02874577045440674, -0.4116465449333191, -0.23537702858448029, 0.5690826177597046, -0.20133623480796814, 0.2559472322463989, 0.07746585458517075, 0.04566159099340439, -0.6079736351966858, 0.6227491497993469, 0.16278252005577087, 0.09330418705940247, -0.06854063272476196, 0.1594237983226776, -0.5500159859657288, 0.03038598597049713, -0.21666309237480164, -0.10156536847352982, 0.23399724066257477, 0.41403788328170776, -0.03086341917514801, -0.048686832189559937, 0.16508516669273376, 0.0038427822291851044, -0.19164395332336426, 0.08944250643253326, -0.28410011529922485, -0.13909047842025757, -0.14434100687503815, 0.11855516582727432, -0.17532464861869812, -0.4083873927593231, 0.3195691704750061, -0.009301763027906418, -0.07678791135549545, -0.10664623230695724, 0.21733947098255157, -0.14158321917057037, 0.4878293573856354, 0.4013834297657013, -0.04832281172275543, 0.3463922142982483, 0.00043395906686782837, 0.017502613365650177, 0.045189034193754196, 0.12413088232278824, -0.027961820363998413, 0.7077243328094482, 0.0045388005673885345, 0.14011898636817932, -0.08763235807418823, 0.09331710636615753, 0.11833608150482178, 0.09128641337156296, -0.001389913260936737, -0.1583743393421173, -0.1358548104763031, 0.05082041770219803, -0.15274114906787872, 0.026536982506513596, 0.15408597886562347, 0.12320545315742493, 0.031591303646564484, -0.08149202913045883, -0.02852344512939453, -0.07005322724580765, 0.31889021396636963, 0.025711454451084137, -0.08472763746976852, 0.05338446423411369, -0.015611246228218079, -0.021056048572063446, -0.018730521202087402, -0.29669904708862305, 0.20120975375175476, 0.4706380367279053, -0.24818527698516846, -0.009380698204040527, 0.39479920268058777, -0.2101588398218155, 0.005891568958759308, -0.07563058286905289, 0.7668734788894653, -0.1517631858587265, -0.35789984464645386, -0.12586219608783722, -0.041812650859355927 ]
https://github.com/huggingface/datasets/issues/2146
Thanks for the prompt response. You're right about the encoding, I have the `tfds.features.Image` feature type you mentioned. However, as described in the `dataset_info.json`, my dataset is made of 1479 (224x224x3) images. 1479 x 224 x 224 x 3 = 222630912 bytes which is far from the actual size 520803408 bytes. Anyway I look forward to the Image feature type in `datasets`.
Dataset file size on disk is very large with 3D Array
Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help.
62
Dataset file size on disk is very large with 3D Array Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help. Thanks for the prompt response. You're right about the encoding, I have the `tfds.features.Image` feature type you mentioned. However, as described in the `dataset_info.json`, my dataset is made of 1479 (224x224x3) images. 1479 x 224 x 224 x 3 = 222630912 bytes which is far from the actual size 520803408 bytes. Anyway I look forward to the Image feature type in `datasets`.
[ -0.14527370035648346, -0.11326291412115097, -0.15441793203353882, 0.4201558828353882, 0.21356363594532013, 0.11391296982765198, 0.5066811442375183, 0.2730788290500641, 0.020523034036159515, 0.035847704857587814, -0.19370460510253906, 0.08741555362939835, -0.16945859789848328, 0.31504392623901367, 0.06775017827749252, 0.10068821907043457, -0.07451768219470978, 0.2513984143733978, -0.1334787905216217, -0.08572042733430862, -0.009700722992420197, 0.019117580726742744, -0.01790957897901535, -0.18380630016326904, -0.061561763286590576, -0.16138316690921783, 0.0913488119840622, -0.024184774607419968, -0.08309878408908844, 0.07972719520330429, 0.2449779510498047, -0.08801180124282837, 0.17819984257221222, 0.5363872647285461, -0.00011738437024177983, 0.05027659237384796, 0.10829425603151321, -0.16553209722042084, 0.07918700575828552, 0.2893508970737457, -0.09255556017160416, -0.4095061421394348, -0.07466690242290497, -0.35760876536369324, 0.07695846259593964, -0.32495516538619995, -0.15211746096611023, -0.153545543551445, 0.18488997220993042, 0.07910023629665375, 0.21104568243026733, 0.15330511331558228, -0.0271134153008461, 0.4150457978248596, 0.09937799721956253, 0.5338882207870483, -0.1533459573984146, 0.12685559689998627, -0.14353850483894348, 0.43720173835754395, 0.08429765701293945, 0.07955040037631989, 0.1613585501909256, 0.28772538900375366, 0.5040502548217773, -0.055517882108688354, 0.23921160399913788, -0.2461923062801361, 0.12989376485347748, 0.40011295676231384, 0.8583651781082153, -0.2007376253604889, -0.18428048491477966, -0.3255719244480133, -0.10833004117012024, -0.03233903646469116, 0.022540954872965813, 0.38006332516670227, -0.04988998547196388, 0.021930869668722153, -0.6522024273872375, -0.13922451436519623, -0.22694185376167297, 0.14550183713436127, -0.21365347504615784, -0.48096752166748047, -0.13809017837047577, 0.1503390669822693, -0.18900084495544434, -0.26583653688430786, 0.2607785761356354, -0.39559224247932434, 0.0734373927116394, -0.09971439093351364, -0.26596593856811523, -0.2101806402206421, -0.29051390290260315, -0.3803427815437317, 0.35302722454071045, -0.15380622446537018, -0.010828046128153801, -0.15199336409568787, -0.36489319801330566, -0.14774228632450104, 0.10398486256599426, 0.38603758811950684, -0.4768473505973816, -0.13859772682189941, -0.14186814427375793, -0.29509052634239197, -0.04088149219751358, -0.05229458957910538, -0.2465379685163498, -0.09075766056776047, 0.19863322377204895, -0.4835401177406311, 0.0639367327094078, -0.06186699494719505, 0.044680774211883545, 0.023807372897863388, 0.08648133277893066, -0.09525518119335175, -0.07516278326511383, 0.13165301084518433, 0.14105086028575897, 0.13527610898017883, -0.140061616897583, -0.039203815162181854, -0.18591542541980743, 0.04163796454668045, -0.1229669451713562, -0.10461083054542542, 0.06263116002082825, -0.08175508677959442, 0.1144736260175705, 0.15056857466697693, 0.052291400730609894, -0.1904568076133728, 0.09038839489221573, 0.20010031759738922, 0.26247406005859375, -0.34731975197792053, 0.4073760509490967, 0.3550085723400116, 0.15890651941299438, 0.19831866025924683, -0.28542035818099976, 0.13986484706401825, -0.19970829784870148, 0.49449458718299866, -0.5467606782913208, -0.045360419899225235, -0.417341411113739, 0.09062186628580093, -0.22343438863754272, -0.054319847375154495, -0.572836697101593, 0.00974305346608162, 0.33955323696136475, -0.11862163990736008, 0.06782431900501251, -0.2173456996679306, -0.3785403072834015, -0.2943599820137024, -0.03715429827570915, 0.03126586973667145, -0.75631183385849, 0.26123136281967163, -0.1514396071434021, 0.08173613995313644, 0.19522051513195038, 0.5952158570289612, -0.08995175361633301, 0.4252850115299225, -0.4255610704421997, -0.048471175134181976, 0.04300415515899658, -0.038400035351514816, -0.661108136177063, 0.4873417615890503, 0.07067178189754486, 0.04850286990404129, 0.11241471767425537, 0.32018202543258667, 0.16368640959262848, -0.01637512631714344, -0.22282914817333221, 0.326605886220932, 0.09104804694652557, 0.042669348418712616, -0.19083285331726074, -0.38112324476242065, 0.08823920786380768, 0.045980677008628845, -0.13749533891677856, -0.14053548872470856, 0.1314450353384018, 0.08348657190799713, 0.2107226848602295, -0.1292203813791275, 0.03606019169092178, 0.37058576941490173, 0.20966362953186035, -0.2556735873222351, -0.021588971838355064, 0.1423659473657608, -0.6317533254623413, 0.18338093161582947, 0.24726170301437378, -0.4363887906074524, 0.15575344860553741, -0.10444342344999313, 0.03820660710334778, -0.22964641451835632, -0.08958980441093445, 0.20130100846290588, 0.023702502250671387, -0.0005766116082668304, -0.009196512401103973, -0.010455846786499023, -0.008591234683990479, -0.14775271713733673, 0.11488465219736099, -0.18818452954292297, -0.4114224314689636, 0.3561537265777588, 0.21356521546840668, -0.035041693598032, -0.10568654537200928, -0.07886134088039398, -0.3569895029067993, -0.3410830497741699, -0.18653513491153717, 0.0800962895154953, 0.2511081099510193, 0.1212475597858429, -0.07733041793107986, 0.48373788595199585, 0.22343087196350098, 0.07611685991287231, 0.3378685414791107, -0.12107348442077637, 0.09457802772521973, -0.22061552107334137, -0.20205232501029968, 0.21652069687843323, -0.19182473421096802, 0.06590235978364944, 0.02028799057006836, -0.359314501285553, 0.28578120470046997, 0.13330534100532532, 0.10505349189043045, -0.25766873359680176, -0.07694397866725922, 0.19290252029895782, 0.34674203395843506, 0.20294231176376343, 0.10765628516674042, 0.046753671020269394, 0.6398188471794128, -0.16672179102897644, 0.10701832920312881, 0.36452120542526245, -0.1265421211719513, -0.07832760363817215, 0.1058710366487503, 0.24525155127048492, 0.5257763266563416, 0.21703112125396729, 0.04596449062228203, -0.04137374460697174, 0.4925529658794403, -0.14437991380691528, 0.08119146525859833, 0.06789639592170715, 0.5235673189163208, 0.2810913324356079, 0.16023829579353333, 0.002756677567958832, -0.28445547819137573, -0.11330655962228775, 0.20439442992210388, 0.24656634032726288, -0.30335286259651184, 0.19992609322071075, -0.16313505172729492, -0.2681357264518738, -0.09480015188455582, 0.19029881060123444, -0.06011192500591278, 0.12484181672334671, -0.32770606875419617, -0.1944482922554016, 0.025102123618125916, -0.07976751029491425, 0.14392176270484924, 0.08479732275009155, 0.2937847077846527, -0.06793172657489777, 0.2701689600944519, 0.34331804513931274, -0.08782494068145752, 0.03548785299062729, 0.4142909646034241, -0.14856114983558655, 0.3000026345252991, -0.16350224614143372, 0.20966587960720062, -0.1380714774131775, -0.25168097019195557, 0.12045302987098694, 0.060555510222911835, 0.07064516097307205, -0.10957366228103638, 0.2740660309791565, -0.19955989718437195, 0.20189103484153748, 0.028606534004211426, 0.04939958453178406, -0.2603568732738495, 0.0002534016966819763, -0.04818806052207947, -0.12865231931209564, -0.21747037768363953, 0.09344645589590073, -0.28394588828086853, -0.05099092796444893, 0.2078641802072525, 0.18169014155864716, 0.2575589418411255, 0.370563268661499, 0.17234350740909576, 0.04122808948159218, 0.14932793378829956, -0.024331260472536087, -0.19408050179481506, -0.4591633081436157, 0.14596116542816162, -0.028291476890444756, -0.37252455949783325, 0.14329096674919128, 0.011465869843959808, 0.19203658401966095, 0.20455169677734375, -0.6480359435081482, -0.03949148952960968, -0.29309457540512085, 0.03786654770374298, -0.1762448102235794, 0.12188360095024109, 0.020079728215932846, -0.21597300469875336, 0.08265318721532822, -0.0400288924574852, -0.12273233383893967, -0.0801263079047203, 0.15147334337234497, 0.1209954023361206, 0.12774190306663513, 0.5383257269859314, 0.2677575349807739, 0.4104941487312317, 0.12948647141456604, -0.30160579085350037, 0.12483590096235275, -0.12099259346723557, 0.37001118063926697, -0.24813170731067657, 0.05178864300251007, 0.34236636757850647, 0.17940786480903625, -0.2017466127872467, 0.2401464730501175, -0.0048977043479681015, -0.07058320194482803, 0.3367037773132324, 0.02878984808921814, -0.1383410394191742, 0.023906394839286804, 0.19354937970638275, -0.06046883389353752, 0.010493495501577854, -0.07026968896389008, -0.09877220541238785, -0.15903791785240173, -0.3050755262374878, -0.08737380802631378, 0.19044609367847443, 0.21983367204666138, 0.033971015363931656, -0.37733936309814453, -0.11484984308481216, -0.34796467423439026, 0.18864338099956512, -0.16870802640914917, 0.3023189604282379, 0.032284125685691833, 0.2741393744945526, 0.24751821160316467, 0.1615711748600006, 0.9262685775756836, -0.09160738438367844, 0.07147279381752014, -0.19727389514446259, -0.04356765002012253, -0.589411199092865, -0.15428125858306885, -0.07896407693624496, 0.027080446481704712, -0.059039417654275894, 0.5538508892059326, -0.06310946494340897, -0.06860674917697906, -0.2617592215538025, 0.2991938889026642, -0.316880464553833, -0.38776540756225586, -0.275534451007843, -0.2933424115180969, -0.13568785786628723, -0.3935815989971161, 0.01999439299106598, -0.08695605397224426, 0.07559973746538162, -0.3193263113498688, -0.2675706446170807, -0.1990124136209488, 0.0541379451751709, 0.014546118676662445, 0.3740360140800476, 0.34350812435150146, 0.20867516100406647, -0.0869256854057312, 0.328469842672348, 0.36619991064071655, 0.25957685708999634, 0.07187537103891373, 0.05686696991324425, 0.20528654754161835, -0.2168000042438507, 0.08616216480731964, 0.10835614055395126, -0.02505907416343689, -0.28772249817848206, -0.0670187920331955, 0.11199008673429489, -0.28302785754203796, 0.1024947240948677, 0.37182679772377014, -0.15860804915428162, -0.0864219218492508, -0.3929764926433563, 0.3548666536808014, 0.012159965932369232, 0.09401427209377289, 0.03600576892495155, -0.05195235088467598, -0.14947345852851868, 0.14809547364711761, 0.2831670343875885, 0.5525878667831421, -0.3548775613307953, 0.30332136154174805, 0.2974138557910919, 0.0017681047320365906, 0.011402871459722519, -0.026530422270298004, -0.16806527972221375, -0.14450696110725403, -0.3122716248035431, 0.003084540367126465, -0.1878085434436798, -0.025493528693914413, 0.4849463999271393, 0.17509660124778748, 0.04391273111104965, 0.206707164645195, 0.0071274638175964355, -0.11497586220502853, 0.5293207764625549, 0.2995489835739136, -0.22830042243003845, 0.03250184282660484, 0.06393478065729141, -0.2548326849937439, -0.19034942984580994, -0.0622592493891716, -0.08637944608926773, -0.09849429130554199, 0.2215803563594818, -0.04033968597650528, -0.21266697347164154, -0.12389595806598663, 0.36795148253440857, -0.10822103917598724, -0.23162196576595306, 0.18157267570495605, 0.08386661857366562, -0.20102059841156006, 0.1966233104467392, -0.15731891989707947, 0.12797008454799652, 0.0030061043798923492, 0.3249218761920929, 0.14139865338802338, -0.1144990622997284, -0.031045502051711082, -0.09132468700408936, 0.02342715859413147, -0.19438661634922028, 0.1888037770986557, -0.14826920628547668, -0.06292609870433807, 0.0454888716340065, 0.029789678752422333, -0.09611004590988159, -0.6530036330223083, -0.34319213032722473, -0.20482397079467773, 0.40102970600128174, 0.0805630013346672, 0.13096117973327637, 0.21248318254947662, 0.4965970516204834, 0.024388903751969337, -0.37303584814071655, -0.14032651484012604, 0.1895272582769394, 0.2858308255672455, 0.17994695901870728, 0.38669201731681824, -0.13410884141921997, -0.1365937739610672, -0.07098973542451859, 0.6510818004608154, 0.10127302259206772, -0.19125421345233917, -0.05776600539684296, -0.04039059579372406, 0.3169392943382263, 0.020815029740333557, -0.3343828320503235, 0.18835803866386414, -0.0939159169793129, -0.359913170337677, -0.20773467421531677, -0.1373049020767212, 0.12147100269794464, -0.1601492166519165, 0.29431942105293274, 0.0504378080368042, -0.18645305931568146, 0.0016887038946151733, -0.07643132656812668, -0.20493295788764954, 0.19694584608078003, 0.2957784831523895, 0.00608423724770546, -0.332867830991745, 0.06457117944955826, -0.0876779556274414, -0.26825714111328125, -0.06693807989358902, -0.14714351296424866, -0.1714790314435959, -0.1753692775964737, 0.09678087383508682, 0.11153759062290192, 0.1287064105272293, -0.2801166772842407, 0.10161857306957245, -0.37504392862319946, -0.47884705662727356, -0.13488060235977173, 0.13195562362670898, -0.06796912848949432, -0.09098754078149796, 0.10331321507692337, 0.022080618888139725, -0.2510060966014862, 0.007965713739395142, 0.14160768687725067, 0.035423193126916885, 0.29884904623031616, 0.1892450451850891, 0.1612936556339264, 0.1742735058069229, 0.04252859950065613, -0.47614413499832153, 0.01756303571164608, -0.05883922427892685, 0.09957308322191238, 0.18741725385189056, -0.19626381993293762, 0.25034740567207336, 0.25902059674263, 0.3225478529930115, 0.10736009478569031, -0.43837645649909973, -0.22731029987335205, -0.07985447347164154, 0.12250016629695892, 0.051014192402362823, -0.18315842747688293, 0.19453534483909607, 0.2868766784667969, -0.06883242726325989, 0.318470299243927, 0.235200434923172, 0.34769535064697266, -0.42014819383621216, 0.046827591955661774, 0.411074161529541, 0.06719355285167694, -0.12977394461631775, 0.47173169255256653, -0.20362508296966553, 0.05236390233039856, 0.0846017599105835, 0.29466453194618225, 0.12019599974155426, 0.8587026000022888, 0.12909138202667236, 0.1891804188489914, 0.4139888882637024, -0.03033757209777832, 0.00684501975774765, -0.4966720938682556, -0.09523242712020874, 0.19847510755062103, -0.1680757999420166, 0.2741124629974365, 0.17021197080612183, -0.35905295610427856, 0.1909862607717514, -0.3852771520614624, -0.2336919605731964, -0.062026623636484146, -0.26225313544273376, 0.13358169794082642, -0.0030270814895629883, 0.027324959635734558, 0.16201022267341614, 0.23714080452919006, -0.3845197856426239, -0.30147701501846313, -0.2461310476064682, 0.1889079064130783, -0.20237627625465393, 0.2124776840209961, 0.4214305877685547, 0.04444253072142601, -0.03152453526854515, -0.03910906985402107, 0.36462754011154175, 0.09868396073579788, 0.10106852650642395, -0.0881534218788147, 0.07781046628952026, 0.13030865788459778, 0.19422197341918945, 0.18647180497646332, -0.024569397792220116, 0.2299172282218933, -0.012341786175966263, -0.06380588561296463, 0.02308013290166855, -0.10071124136447906, -0.015063393861055374, 0.13520467281341553, 0.07699869573116302, -0.019525207579135895, -0.10237172991037369, 0.42258957028388977, -0.005134787410497665, -0.4865999221801758, -0.03334219381213188, -0.4977216124534607, -0.0050531476736068726, -0.05147738382220268, 0.02874577045440674, -0.4116465449333191, -0.23537702858448029, 0.5690826177597046, -0.20133623480796814, 0.2559472322463989, 0.07746585458517075, 0.04566159099340439, -0.6079736351966858, 0.6227491497993469, 0.16278252005577087, 0.09330418705940247, -0.06854063272476196, 0.1594237983226776, -0.5500159859657288, 0.03038598597049713, -0.21666309237480164, -0.10156536847352982, 0.23399724066257477, 0.41403788328170776, -0.03086341917514801, -0.048686832189559937, 0.16508516669273376, 0.0038427822291851044, -0.19164395332336426, 0.08944250643253326, -0.28410011529922485, -0.13909047842025757, -0.14434100687503815, 0.11855516582727432, -0.17532464861869812, -0.4083873927593231, 0.3195691704750061, -0.009301763027906418, -0.07678791135549545, -0.10664623230695724, 0.21733947098255157, -0.14158321917057037, 0.4878293573856354, 0.4013834297657013, -0.04832281172275543, 0.3463922142982483, 0.00043395906686782837, 0.017502613365650177, 0.045189034193754196, 0.12413088232278824, -0.027961820363998413, 0.7077243328094482, 0.0045388005673885345, 0.14011898636817932, -0.08763235807418823, 0.09331710636615753, 0.11833608150482178, 0.09128641337156296, -0.001389913260936737, -0.1583743393421173, -0.1358548104763031, 0.05082041770219803, -0.15274114906787872, 0.026536982506513596, 0.15408597886562347, 0.12320545315742493, 0.031591303646564484, -0.08149202913045883, -0.02852344512939453, -0.07005322724580765, 0.31889021396636963, 0.025711454451084137, -0.08472763746976852, 0.05338446423411369, -0.015611246228218079, -0.021056048572063446, -0.018730521202087402, -0.29669904708862305, 0.20120975375175476, 0.4706380367279053, -0.24818527698516846, -0.009380698204040527, 0.39479920268058777, -0.2101588398218155, 0.005891568958759308, -0.07563058286905289, 0.7668734788894653, -0.1517631858587265, -0.35789984464645386, -0.12586219608783722, -0.041812650859355927 ]
https://github.com/huggingface/datasets/issues/2146
@lhoestq I changed the data structure so I have a 2D Array feature type instead of a 3D Array by grouping the two last dimensions ( a 224x672 2D Array instead of a 224x224x3 3D Array). The file size is now 223973964 bytes, nearly half the previous size! Which is around of what I would expect. I found similar behavior in existing `datasets` collection, when comparing black and white vs color image, for example MNIST vs CIFAR.
Dataset file size on disk is very large with 3D Array
Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help.
77
Dataset file size on disk is very large with 3D Array Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help. @lhoestq I changed the data structure so I have a 2D Array feature type instead of a 3D Array by grouping the two last dimensions ( a 224x672 2D Array instead of a 224x224x3 3D Array). The file size is now 223973964 bytes, nearly half the previous size! Which is around of what I would expect. I found similar behavior in existing `datasets` collection, when comparing black and white vs color image, for example MNIST vs CIFAR.
[ -0.14527370035648346, -0.11326291412115097, -0.15441793203353882, 0.4201558828353882, 0.21356363594532013, 0.11391296982765198, 0.5066811442375183, 0.2730788290500641, 0.020523034036159515, 0.035847704857587814, -0.19370460510253906, 0.08741555362939835, -0.16945859789848328, 0.31504392623901367, 0.06775017827749252, 0.10068821907043457, -0.07451768219470978, 0.2513984143733978, -0.1334787905216217, -0.08572042733430862, -0.009700722992420197, 0.019117580726742744, -0.01790957897901535, -0.18380630016326904, -0.061561763286590576, -0.16138316690921783, 0.0913488119840622, -0.024184774607419968, -0.08309878408908844, 0.07972719520330429, 0.2449779510498047, -0.08801180124282837, 0.17819984257221222, 0.5363872647285461, -0.00011738437024177983, 0.05027659237384796, 0.10829425603151321, -0.16553209722042084, 0.07918700575828552, 0.2893508970737457, -0.09255556017160416, -0.4095061421394348, -0.07466690242290497, -0.35760876536369324, 0.07695846259593964, -0.32495516538619995, -0.15211746096611023, -0.153545543551445, 0.18488997220993042, 0.07910023629665375, 0.21104568243026733, 0.15330511331558228, -0.0271134153008461, 0.4150457978248596, 0.09937799721956253, 0.5338882207870483, -0.1533459573984146, 0.12685559689998627, -0.14353850483894348, 0.43720173835754395, 0.08429765701293945, 0.07955040037631989, 0.1613585501909256, 0.28772538900375366, 0.5040502548217773, -0.055517882108688354, 0.23921160399913788, -0.2461923062801361, 0.12989376485347748, 0.40011295676231384, 0.8583651781082153, -0.2007376253604889, -0.18428048491477966, -0.3255719244480133, -0.10833004117012024, -0.03233903646469116, 0.022540954872965813, 0.38006332516670227, -0.04988998547196388, 0.021930869668722153, -0.6522024273872375, -0.13922451436519623, -0.22694185376167297, 0.14550183713436127, -0.21365347504615784, -0.48096752166748047, -0.13809017837047577, 0.1503390669822693, -0.18900084495544434, -0.26583653688430786, 0.2607785761356354, -0.39559224247932434, 0.0734373927116394, -0.09971439093351364, -0.26596593856811523, -0.2101806402206421, -0.29051390290260315, -0.3803427815437317, 0.35302722454071045, -0.15380622446537018, -0.010828046128153801, -0.15199336409568787, -0.36489319801330566, -0.14774228632450104, 0.10398486256599426, 0.38603758811950684, -0.4768473505973816, -0.13859772682189941, -0.14186814427375793, -0.29509052634239197, -0.04088149219751358, -0.05229458957910538, -0.2465379685163498, -0.09075766056776047, 0.19863322377204895, -0.4835401177406311, 0.0639367327094078, -0.06186699494719505, 0.044680774211883545, 0.023807372897863388, 0.08648133277893066, -0.09525518119335175, -0.07516278326511383, 0.13165301084518433, 0.14105086028575897, 0.13527610898017883, -0.140061616897583, -0.039203815162181854, -0.18591542541980743, 0.04163796454668045, -0.1229669451713562, -0.10461083054542542, 0.06263116002082825, -0.08175508677959442, 0.1144736260175705, 0.15056857466697693, 0.052291400730609894, -0.1904568076133728, 0.09038839489221573, 0.20010031759738922, 0.26247406005859375, -0.34731975197792053, 0.4073760509490967, 0.3550085723400116, 0.15890651941299438, 0.19831866025924683, -0.28542035818099976, 0.13986484706401825, -0.19970829784870148, 0.49449458718299866, -0.5467606782913208, -0.045360419899225235, -0.417341411113739, 0.09062186628580093, -0.22343438863754272, -0.054319847375154495, -0.572836697101593, 0.00974305346608162, 0.33955323696136475, -0.11862163990736008, 0.06782431900501251, -0.2173456996679306, -0.3785403072834015, -0.2943599820137024, -0.03715429827570915, 0.03126586973667145, -0.75631183385849, 0.26123136281967163, -0.1514396071434021, 0.08173613995313644, 0.19522051513195038, 0.5952158570289612, -0.08995175361633301, 0.4252850115299225, -0.4255610704421997, -0.048471175134181976, 0.04300415515899658, -0.038400035351514816, -0.661108136177063, 0.4873417615890503, 0.07067178189754486, 0.04850286990404129, 0.11241471767425537, 0.32018202543258667, 0.16368640959262848, -0.01637512631714344, -0.22282914817333221, 0.326605886220932, 0.09104804694652557, 0.042669348418712616, -0.19083285331726074, -0.38112324476242065, 0.08823920786380768, 0.045980677008628845, -0.13749533891677856, -0.14053548872470856, 0.1314450353384018, 0.08348657190799713, 0.2107226848602295, -0.1292203813791275, 0.03606019169092178, 0.37058576941490173, 0.20966362953186035, -0.2556735873222351, -0.021588971838355064, 0.1423659473657608, -0.6317533254623413, 0.18338093161582947, 0.24726170301437378, -0.4363887906074524, 0.15575344860553741, -0.10444342344999313, 0.03820660710334778, -0.22964641451835632, -0.08958980441093445, 0.20130100846290588, 0.023702502250671387, -0.0005766116082668304, -0.009196512401103973, -0.010455846786499023, -0.008591234683990479, -0.14775271713733673, 0.11488465219736099, -0.18818452954292297, -0.4114224314689636, 0.3561537265777588, 0.21356521546840668, -0.035041693598032, -0.10568654537200928, -0.07886134088039398, -0.3569895029067993, -0.3410830497741699, -0.18653513491153717, 0.0800962895154953, 0.2511081099510193, 0.1212475597858429, -0.07733041793107986, 0.48373788595199585, 0.22343087196350098, 0.07611685991287231, 0.3378685414791107, -0.12107348442077637, 0.09457802772521973, -0.22061552107334137, -0.20205232501029968, 0.21652069687843323, -0.19182473421096802, 0.06590235978364944, 0.02028799057006836, -0.359314501285553, 0.28578120470046997, 0.13330534100532532, 0.10505349189043045, -0.25766873359680176, -0.07694397866725922, 0.19290252029895782, 0.34674203395843506, 0.20294231176376343, 0.10765628516674042, 0.046753671020269394, 0.6398188471794128, -0.16672179102897644, 0.10701832920312881, 0.36452120542526245, -0.1265421211719513, -0.07832760363817215, 0.1058710366487503, 0.24525155127048492, 0.5257763266563416, 0.21703112125396729, 0.04596449062228203, -0.04137374460697174, 0.4925529658794403, -0.14437991380691528, 0.08119146525859833, 0.06789639592170715, 0.5235673189163208, 0.2810913324356079, 0.16023829579353333, 0.002756677567958832, -0.28445547819137573, -0.11330655962228775, 0.20439442992210388, 0.24656634032726288, -0.30335286259651184, 0.19992609322071075, -0.16313505172729492, -0.2681357264518738, -0.09480015188455582, 0.19029881060123444, -0.06011192500591278, 0.12484181672334671, -0.32770606875419617, -0.1944482922554016, 0.025102123618125916, -0.07976751029491425, 0.14392176270484924, 0.08479732275009155, 0.2937847077846527, -0.06793172657489777, 0.2701689600944519, 0.34331804513931274, -0.08782494068145752, 0.03548785299062729, 0.4142909646034241, -0.14856114983558655, 0.3000026345252991, -0.16350224614143372, 0.20966587960720062, -0.1380714774131775, -0.25168097019195557, 0.12045302987098694, 0.060555510222911835, 0.07064516097307205, -0.10957366228103638, 0.2740660309791565, -0.19955989718437195, 0.20189103484153748, 0.028606534004211426, 0.04939958453178406, -0.2603568732738495, 0.0002534016966819763, -0.04818806052207947, -0.12865231931209564, -0.21747037768363953, 0.09344645589590073, -0.28394588828086853, -0.05099092796444893, 0.2078641802072525, 0.18169014155864716, 0.2575589418411255, 0.370563268661499, 0.17234350740909576, 0.04122808948159218, 0.14932793378829956, -0.024331260472536087, -0.19408050179481506, -0.4591633081436157, 0.14596116542816162, -0.028291476890444756, -0.37252455949783325, 0.14329096674919128, 0.011465869843959808, 0.19203658401966095, 0.20455169677734375, -0.6480359435081482, -0.03949148952960968, -0.29309457540512085, 0.03786654770374298, -0.1762448102235794, 0.12188360095024109, 0.020079728215932846, -0.21597300469875336, 0.08265318721532822, -0.0400288924574852, -0.12273233383893967, -0.0801263079047203, 0.15147334337234497, 0.1209954023361206, 0.12774190306663513, 0.5383257269859314, 0.2677575349807739, 0.4104941487312317, 0.12948647141456604, -0.30160579085350037, 0.12483590096235275, -0.12099259346723557, 0.37001118063926697, -0.24813170731067657, 0.05178864300251007, 0.34236636757850647, 0.17940786480903625, -0.2017466127872467, 0.2401464730501175, -0.0048977043479681015, -0.07058320194482803, 0.3367037773132324, 0.02878984808921814, -0.1383410394191742, 0.023906394839286804, 0.19354937970638275, -0.06046883389353752, 0.010493495501577854, -0.07026968896389008, -0.09877220541238785, -0.15903791785240173, -0.3050755262374878, -0.08737380802631378, 0.19044609367847443, 0.21983367204666138, 0.033971015363931656, -0.37733936309814453, -0.11484984308481216, -0.34796467423439026, 0.18864338099956512, -0.16870802640914917, 0.3023189604282379, 0.032284125685691833, 0.2741393744945526, 0.24751821160316467, 0.1615711748600006, 0.9262685775756836, -0.09160738438367844, 0.07147279381752014, -0.19727389514446259, -0.04356765002012253, -0.589411199092865, -0.15428125858306885, -0.07896407693624496, 0.027080446481704712, -0.059039417654275894, 0.5538508892059326, -0.06310946494340897, -0.06860674917697906, -0.2617592215538025, 0.2991938889026642, -0.316880464553833, -0.38776540756225586, -0.275534451007843, -0.2933424115180969, -0.13568785786628723, -0.3935815989971161, 0.01999439299106598, -0.08695605397224426, 0.07559973746538162, -0.3193263113498688, -0.2675706446170807, -0.1990124136209488, 0.0541379451751709, 0.014546118676662445, 0.3740360140800476, 0.34350812435150146, 0.20867516100406647, -0.0869256854057312, 0.328469842672348, 0.36619991064071655, 0.25957685708999634, 0.07187537103891373, 0.05686696991324425, 0.20528654754161835, -0.2168000042438507, 0.08616216480731964, 0.10835614055395126, -0.02505907416343689, -0.28772249817848206, -0.0670187920331955, 0.11199008673429489, -0.28302785754203796, 0.1024947240948677, 0.37182679772377014, -0.15860804915428162, -0.0864219218492508, -0.3929764926433563, 0.3548666536808014, 0.012159965932369232, 0.09401427209377289, 0.03600576892495155, -0.05195235088467598, -0.14947345852851868, 0.14809547364711761, 0.2831670343875885, 0.5525878667831421, -0.3548775613307953, 0.30332136154174805, 0.2974138557910919, 0.0017681047320365906, 0.011402871459722519, -0.026530422270298004, -0.16806527972221375, -0.14450696110725403, -0.3122716248035431, 0.003084540367126465, -0.1878085434436798, -0.025493528693914413, 0.4849463999271393, 0.17509660124778748, 0.04391273111104965, 0.206707164645195, 0.0071274638175964355, -0.11497586220502853, 0.5293207764625549, 0.2995489835739136, -0.22830042243003845, 0.03250184282660484, 0.06393478065729141, -0.2548326849937439, -0.19034942984580994, -0.0622592493891716, -0.08637944608926773, -0.09849429130554199, 0.2215803563594818, -0.04033968597650528, -0.21266697347164154, -0.12389595806598663, 0.36795148253440857, -0.10822103917598724, -0.23162196576595306, 0.18157267570495605, 0.08386661857366562, -0.20102059841156006, 0.1966233104467392, -0.15731891989707947, 0.12797008454799652, 0.0030061043798923492, 0.3249218761920929, 0.14139865338802338, -0.1144990622997284, -0.031045502051711082, -0.09132468700408936, 0.02342715859413147, -0.19438661634922028, 0.1888037770986557, -0.14826920628547668, -0.06292609870433807, 0.0454888716340065, 0.029789678752422333, -0.09611004590988159, -0.6530036330223083, -0.34319213032722473, -0.20482397079467773, 0.40102970600128174, 0.0805630013346672, 0.13096117973327637, 0.21248318254947662, 0.4965970516204834, 0.024388903751969337, -0.37303584814071655, -0.14032651484012604, 0.1895272582769394, 0.2858308255672455, 0.17994695901870728, 0.38669201731681824, -0.13410884141921997, -0.1365937739610672, -0.07098973542451859, 0.6510818004608154, 0.10127302259206772, -0.19125421345233917, -0.05776600539684296, -0.04039059579372406, 0.3169392943382263, 0.020815029740333557, -0.3343828320503235, 0.18835803866386414, -0.0939159169793129, -0.359913170337677, -0.20773467421531677, -0.1373049020767212, 0.12147100269794464, -0.1601492166519165, 0.29431942105293274, 0.0504378080368042, -0.18645305931568146, 0.0016887038946151733, -0.07643132656812668, -0.20493295788764954, 0.19694584608078003, 0.2957784831523895, 0.00608423724770546, -0.332867830991745, 0.06457117944955826, -0.0876779556274414, -0.26825714111328125, -0.06693807989358902, -0.14714351296424866, -0.1714790314435959, -0.1753692775964737, 0.09678087383508682, 0.11153759062290192, 0.1287064105272293, -0.2801166772842407, 0.10161857306957245, -0.37504392862319946, -0.47884705662727356, -0.13488060235977173, 0.13195562362670898, -0.06796912848949432, -0.09098754078149796, 0.10331321507692337, 0.022080618888139725, -0.2510060966014862, 0.007965713739395142, 0.14160768687725067, 0.035423193126916885, 0.29884904623031616, 0.1892450451850891, 0.1612936556339264, 0.1742735058069229, 0.04252859950065613, -0.47614413499832153, 0.01756303571164608, -0.05883922427892685, 0.09957308322191238, 0.18741725385189056, -0.19626381993293762, 0.25034740567207336, 0.25902059674263, 0.3225478529930115, 0.10736009478569031, -0.43837645649909973, -0.22731029987335205, -0.07985447347164154, 0.12250016629695892, 0.051014192402362823, -0.18315842747688293, 0.19453534483909607, 0.2868766784667969, -0.06883242726325989, 0.318470299243927, 0.235200434923172, 0.34769535064697266, -0.42014819383621216, 0.046827591955661774, 0.411074161529541, 0.06719355285167694, -0.12977394461631775, 0.47173169255256653, -0.20362508296966553, 0.05236390233039856, 0.0846017599105835, 0.29466453194618225, 0.12019599974155426, 0.8587026000022888, 0.12909138202667236, 0.1891804188489914, 0.4139888882637024, -0.03033757209777832, 0.00684501975774765, -0.4966720938682556, -0.09523242712020874, 0.19847510755062103, -0.1680757999420166, 0.2741124629974365, 0.17021197080612183, -0.35905295610427856, 0.1909862607717514, -0.3852771520614624, -0.2336919605731964, -0.062026623636484146, -0.26225313544273376, 0.13358169794082642, -0.0030270814895629883, 0.027324959635734558, 0.16201022267341614, 0.23714080452919006, -0.3845197856426239, -0.30147701501846313, -0.2461310476064682, 0.1889079064130783, -0.20237627625465393, 0.2124776840209961, 0.4214305877685547, 0.04444253072142601, -0.03152453526854515, -0.03910906985402107, 0.36462754011154175, 0.09868396073579788, 0.10106852650642395, -0.0881534218788147, 0.07781046628952026, 0.13030865788459778, 0.19422197341918945, 0.18647180497646332, -0.024569397792220116, 0.2299172282218933, -0.012341786175966263, -0.06380588561296463, 0.02308013290166855, -0.10071124136447906, -0.015063393861055374, 0.13520467281341553, 0.07699869573116302, -0.019525207579135895, -0.10237172991037369, 0.42258957028388977, -0.005134787410497665, -0.4865999221801758, -0.03334219381213188, -0.4977216124534607, -0.0050531476736068726, -0.05147738382220268, 0.02874577045440674, -0.4116465449333191, -0.23537702858448029, 0.5690826177597046, -0.20133623480796814, 0.2559472322463989, 0.07746585458517075, 0.04566159099340439, -0.6079736351966858, 0.6227491497993469, 0.16278252005577087, 0.09330418705940247, -0.06854063272476196, 0.1594237983226776, -0.5500159859657288, 0.03038598597049713, -0.21666309237480164, -0.10156536847352982, 0.23399724066257477, 0.41403788328170776, -0.03086341917514801, -0.048686832189559937, 0.16508516669273376, 0.0038427822291851044, -0.19164395332336426, 0.08944250643253326, -0.28410011529922485, -0.13909047842025757, -0.14434100687503815, 0.11855516582727432, -0.17532464861869812, -0.4083873927593231, 0.3195691704750061, -0.009301763027906418, -0.07678791135549545, -0.10664623230695724, 0.21733947098255157, -0.14158321917057037, 0.4878293573856354, 0.4013834297657013, -0.04832281172275543, 0.3463922142982483, 0.00043395906686782837, 0.017502613365650177, 0.045189034193754196, 0.12413088232278824, -0.027961820363998413, 0.7077243328094482, 0.0045388005673885345, 0.14011898636817932, -0.08763235807418823, 0.09331710636615753, 0.11833608150482178, 0.09128641337156296, -0.001389913260936737, -0.1583743393421173, -0.1358548104763031, 0.05082041770219803, -0.15274114906787872, 0.026536982506513596, 0.15408597886562347, 0.12320545315742493, 0.031591303646564484, -0.08149202913045883, -0.02852344512939453, -0.07005322724580765, 0.31889021396636963, 0.025711454451084137, -0.08472763746976852, 0.05338446423411369, -0.015611246228218079, -0.021056048572063446, -0.018730521202087402, -0.29669904708862305, 0.20120975375175476, 0.4706380367279053, -0.24818527698516846, -0.009380698204040527, 0.39479920268058777, -0.2101588398218155, 0.005891568958759308, -0.07563058286905289, 0.7668734788894653, -0.1517631858587265, -0.35789984464645386, -0.12586219608783722, -0.041812650859355927 ]
https://github.com/huggingface/datasets/issues/2146
Interesting ! This may be because of the offsets that are stored with the array data. Currently the offsets are stored even if the `shape` of the arrays is fixed. This was needed because of some issues with pyarrow a few months ago. I think these issues have been addressed now, so we can probably try to remove them to make the file lighter. Ideally in your case the floats data should be 220 MB for both Array2D and Array3D
Dataset file size on disk is very large with 3D Array
Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help.
80
Dataset file size on disk is very large with 3D Array Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help. Interesting ! This may be because of the offsets that are stored with the array data. Currently the offsets are stored even if the `shape` of the arrays is fixed. This was needed because of some issues with pyarrow a few months ago. I think these issues have been addressed now, so we can probably try to remove them to make the file lighter. Ideally in your case the floats data should be 220 MB for both Array2D and Array3D
[ -0.14527370035648346, -0.11326291412115097, -0.15441793203353882, 0.4201558828353882, 0.21356363594532013, 0.11391296982765198, 0.5066811442375183, 0.2730788290500641, 0.020523034036159515, 0.035847704857587814, -0.19370460510253906, 0.08741555362939835, -0.16945859789848328, 0.31504392623901367, 0.06775017827749252, 0.10068821907043457, -0.07451768219470978, 0.2513984143733978, -0.1334787905216217, -0.08572042733430862, -0.009700722992420197, 0.019117580726742744, -0.01790957897901535, -0.18380630016326904, -0.061561763286590576, -0.16138316690921783, 0.0913488119840622, -0.024184774607419968, -0.08309878408908844, 0.07972719520330429, 0.2449779510498047, -0.08801180124282837, 0.17819984257221222, 0.5363872647285461, -0.00011738437024177983, 0.05027659237384796, 0.10829425603151321, -0.16553209722042084, 0.07918700575828552, 0.2893508970737457, -0.09255556017160416, -0.4095061421394348, -0.07466690242290497, -0.35760876536369324, 0.07695846259593964, -0.32495516538619995, -0.15211746096611023, -0.153545543551445, 0.18488997220993042, 0.07910023629665375, 0.21104568243026733, 0.15330511331558228, -0.0271134153008461, 0.4150457978248596, 0.09937799721956253, 0.5338882207870483, -0.1533459573984146, 0.12685559689998627, -0.14353850483894348, 0.43720173835754395, 0.08429765701293945, 0.07955040037631989, 0.1613585501909256, 0.28772538900375366, 0.5040502548217773, -0.055517882108688354, 0.23921160399913788, -0.2461923062801361, 0.12989376485347748, 0.40011295676231384, 0.8583651781082153, -0.2007376253604889, -0.18428048491477966, -0.3255719244480133, -0.10833004117012024, -0.03233903646469116, 0.022540954872965813, 0.38006332516670227, -0.04988998547196388, 0.021930869668722153, -0.6522024273872375, -0.13922451436519623, -0.22694185376167297, 0.14550183713436127, -0.21365347504615784, -0.48096752166748047, -0.13809017837047577, 0.1503390669822693, -0.18900084495544434, -0.26583653688430786, 0.2607785761356354, -0.39559224247932434, 0.0734373927116394, -0.09971439093351364, -0.26596593856811523, -0.2101806402206421, -0.29051390290260315, -0.3803427815437317, 0.35302722454071045, -0.15380622446537018, -0.010828046128153801, -0.15199336409568787, -0.36489319801330566, -0.14774228632450104, 0.10398486256599426, 0.38603758811950684, -0.4768473505973816, -0.13859772682189941, -0.14186814427375793, -0.29509052634239197, -0.04088149219751358, -0.05229458957910538, -0.2465379685163498, -0.09075766056776047, 0.19863322377204895, -0.4835401177406311, 0.0639367327094078, -0.06186699494719505, 0.044680774211883545, 0.023807372897863388, 0.08648133277893066, -0.09525518119335175, -0.07516278326511383, 0.13165301084518433, 0.14105086028575897, 0.13527610898017883, -0.140061616897583, -0.039203815162181854, -0.18591542541980743, 0.04163796454668045, -0.1229669451713562, -0.10461083054542542, 0.06263116002082825, -0.08175508677959442, 0.1144736260175705, 0.15056857466697693, 0.052291400730609894, -0.1904568076133728, 0.09038839489221573, 0.20010031759738922, 0.26247406005859375, -0.34731975197792053, 0.4073760509490967, 0.3550085723400116, 0.15890651941299438, 0.19831866025924683, -0.28542035818099976, 0.13986484706401825, -0.19970829784870148, 0.49449458718299866, -0.5467606782913208, -0.045360419899225235, -0.417341411113739, 0.09062186628580093, -0.22343438863754272, -0.054319847375154495, -0.572836697101593, 0.00974305346608162, 0.33955323696136475, -0.11862163990736008, 0.06782431900501251, -0.2173456996679306, -0.3785403072834015, -0.2943599820137024, -0.03715429827570915, 0.03126586973667145, -0.75631183385849, 0.26123136281967163, -0.1514396071434021, 0.08173613995313644, 0.19522051513195038, 0.5952158570289612, -0.08995175361633301, 0.4252850115299225, -0.4255610704421997, -0.048471175134181976, 0.04300415515899658, -0.038400035351514816, -0.661108136177063, 0.4873417615890503, 0.07067178189754486, 0.04850286990404129, 0.11241471767425537, 0.32018202543258667, 0.16368640959262848, -0.01637512631714344, -0.22282914817333221, 0.326605886220932, 0.09104804694652557, 0.042669348418712616, -0.19083285331726074, -0.38112324476242065, 0.08823920786380768, 0.045980677008628845, -0.13749533891677856, -0.14053548872470856, 0.1314450353384018, 0.08348657190799713, 0.2107226848602295, -0.1292203813791275, 0.03606019169092178, 0.37058576941490173, 0.20966362953186035, -0.2556735873222351, -0.021588971838355064, 0.1423659473657608, -0.6317533254623413, 0.18338093161582947, 0.24726170301437378, -0.4363887906074524, 0.15575344860553741, -0.10444342344999313, 0.03820660710334778, -0.22964641451835632, -0.08958980441093445, 0.20130100846290588, 0.023702502250671387, -0.0005766116082668304, -0.009196512401103973, -0.010455846786499023, -0.008591234683990479, -0.14775271713733673, 0.11488465219736099, -0.18818452954292297, -0.4114224314689636, 0.3561537265777588, 0.21356521546840668, -0.035041693598032, -0.10568654537200928, -0.07886134088039398, -0.3569895029067993, -0.3410830497741699, -0.18653513491153717, 0.0800962895154953, 0.2511081099510193, 0.1212475597858429, -0.07733041793107986, 0.48373788595199585, 0.22343087196350098, 0.07611685991287231, 0.3378685414791107, -0.12107348442077637, 0.09457802772521973, -0.22061552107334137, -0.20205232501029968, 0.21652069687843323, -0.19182473421096802, 0.06590235978364944, 0.02028799057006836, -0.359314501285553, 0.28578120470046997, 0.13330534100532532, 0.10505349189043045, -0.25766873359680176, -0.07694397866725922, 0.19290252029895782, 0.34674203395843506, 0.20294231176376343, 0.10765628516674042, 0.046753671020269394, 0.6398188471794128, -0.16672179102897644, 0.10701832920312881, 0.36452120542526245, -0.1265421211719513, -0.07832760363817215, 0.1058710366487503, 0.24525155127048492, 0.5257763266563416, 0.21703112125396729, 0.04596449062228203, -0.04137374460697174, 0.4925529658794403, -0.14437991380691528, 0.08119146525859833, 0.06789639592170715, 0.5235673189163208, 0.2810913324356079, 0.16023829579353333, 0.002756677567958832, -0.28445547819137573, -0.11330655962228775, 0.20439442992210388, 0.24656634032726288, -0.30335286259651184, 0.19992609322071075, -0.16313505172729492, -0.2681357264518738, -0.09480015188455582, 0.19029881060123444, -0.06011192500591278, 0.12484181672334671, -0.32770606875419617, -0.1944482922554016, 0.025102123618125916, -0.07976751029491425, 0.14392176270484924, 0.08479732275009155, 0.2937847077846527, -0.06793172657489777, 0.2701689600944519, 0.34331804513931274, -0.08782494068145752, 0.03548785299062729, 0.4142909646034241, -0.14856114983558655, 0.3000026345252991, -0.16350224614143372, 0.20966587960720062, -0.1380714774131775, -0.25168097019195557, 0.12045302987098694, 0.060555510222911835, 0.07064516097307205, -0.10957366228103638, 0.2740660309791565, -0.19955989718437195, 0.20189103484153748, 0.028606534004211426, 0.04939958453178406, -0.2603568732738495, 0.0002534016966819763, -0.04818806052207947, -0.12865231931209564, -0.21747037768363953, 0.09344645589590073, -0.28394588828086853, -0.05099092796444893, 0.2078641802072525, 0.18169014155864716, 0.2575589418411255, 0.370563268661499, 0.17234350740909576, 0.04122808948159218, 0.14932793378829956, -0.024331260472536087, -0.19408050179481506, -0.4591633081436157, 0.14596116542816162, -0.028291476890444756, -0.37252455949783325, 0.14329096674919128, 0.011465869843959808, 0.19203658401966095, 0.20455169677734375, -0.6480359435081482, -0.03949148952960968, -0.29309457540512085, 0.03786654770374298, -0.1762448102235794, 0.12188360095024109, 0.020079728215932846, -0.21597300469875336, 0.08265318721532822, -0.0400288924574852, -0.12273233383893967, -0.0801263079047203, 0.15147334337234497, 0.1209954023361206, 0.12774190306663513, 0.5383257269859314, 0.2677575349807739, 0.4104941487312317, 0.12948647141456604, -0.30160579085350037, 0.12483590096235275, -0.12099259346723557, 0.37001118063926697, -0.24813170731067657, 0.05178864300251007, 0.34236636757850647, 0.17940786480903625, -0.2017466127872467, 0.2401464730501175, -0.0048977043479681015, -0.07058320194482803, 0.3367037773132324, 0.02878984808921814, -0.1383410394191742, 0.023906394839286804, 0.19354937970638275, -0.06046883389353752, 0.010493495501577854, -0.07026968896389008, -0.09877220541238785, -0.15903791785240173, -0.3050755262374878, -0.08737380802631378, 0.19044609367847443, 0.21983367204666138, 0.033971015363931656, -0.37733936309814453, -0.11484984308481216, -0.34796467423439026, 0.18864338099956512, -0.16870802640914917, 0.3023189604282379, 0.032284125685691833, 0.2741393744945526, 0.24751821160316467, 0.1615711748600006, 0.9262685775756836, -0.09160738438367844, 0.07147279381752014, -0.19727389514446259, -0.04356765002012253, -0.589411199092865, -0.15428125858306885, -0.07896407693624496, 0.027080446481704712, -0.059039417654275894, 0.5538508892059326, -0.06310946494340897, -0.06860674917697906, -0.2617592215538025, 0.2991938889026642, -0.316880464553833, -0.38776540756225586, -0.275534451007843, -0.2933424115180969, -0.13568785786628723, -0.3935815989971161, 0.01999439299106598, -0.08695605397224426, 0.07559973746538162, -0.3193263113498688, -0.2675706446170807, -0.1990124136209488, 0.0541379451751709, 0.014546118676662445, 0.3740360140800476, 0.34350812435150146, 0.20867516100406647, -0.0869256854057312, 0.328469842672348, 0.36619991064071655, 0.25957685708999634, 0.07187537103891373, 0.05686696991324425, 0.20528654754161835, -0.2168000042438507, 0.08616216480731964, 0.10835614055395126, -0.02505907416343689, -0.28772249817848206, -0.0670187920331955, 0.11199008673429489, -0.28302785754203796, 0.1024947240948677, 0.37182679772377014, -0.15860804915428162, -0.0864219218492508, -0.3929764926433563, 0.3548666536808014, 0.012159965932369232, 0.09401427209377289, 0.03600576892495155, -0.05195235088467598, -0.14947345852851868, 0.14809547364711761, 0.2831670343875885, 0.5525878667831421, -0.3548775613307953, 0.30332136154174805, 0.2974138557910919, 0.0017681047320365906, 0.011402871459722519, -0.026530422270298004, -0.16806527972221375, -0.14450696110725403, -0.3122716248035431, 0.003084540367126465, -0.1878085434436798, -0.025493528693914413, 0.4849463999271393, 0.17509660124778748, 0.04391273111104965, 0.206707164645195, 0.0071274638175964355, -0.11497586220502853, 0.5293207764625549, 0.2995489835739136, -0.22830042243003845, 0.03250184282660484, 0.06393478065729141, -0.2548326849937439, -0.19034942984580994, -0.0622592493891716, -0.08637944608926773, -0.09849429130554199, 0.2215803563594818, -0.04033968597650528, -0.21266697347164154, -0.12389595806598663, 0.36795148253440857, -0.10822103917598724, -0.23162196576595306, 0.18157267570495605, 0.08386661857366562, -0.20102059841156006, 0.1966233104467392, -0.15731891989707947, 0.12797008454799652, 0.0030061043798923492, 0.3249218761920929, 0.14139865338802338, -0.1144990622997284, -0.031045502051711082, -0.09132468700408936, 0.02342715859413147, -0.19438661634922028, 0.1888037770986557, -0.14826920628547668, -0.06292609870433807, 0.0454888716340065, 0.029789678752422333, -0.09611004590988159, -0.6530036330223083, -0.34319213032722473, -0.20482397079467773, 0.40102970600128174, 0.0805630013346672, 0.13096117973327637, 0.21248318254947662, 0.4965970516204834, 0.024388903751969337, -0.37303584814071655, -0.14032651484012604, 0.1895272582769394, 0.2858308255672455, 0.17994695901870728, 0.38669201731681824, -0.13410884141921997, -0.1365937739610672, -0.07098973542451859, 0.6510818004608154, 0.10127302259206772, -0.19125421345233917, -0.05776600539684296, -0.04039059579372406, 0.3169392943382263, 0.020815029740333557, -0.3343828320503235, 0.18835803866386414, -0.0939159169793129, -0.359913170337677, -0.20773467421531677, -0.1373049020767212, 0.12147100269794464, -0.1601492166519165, 0.29431942105293274, 0.0504378080368042, -0.18645305931568146, 0.0016887038946151733, -0.07643132656812668, -0.20493295788764954, 0.19694584608078003, 0.2957784831523895, 0.00608423724770546, -0.332867830991745, 0.06457117944955826, -0.0876779556274414, -0.26825714111328125, -0.06693807989358902, -0.14714351296424866, -0.1714790314435959, -0.1753692775964737, 0.09678087383508682, 0.11153759062290192, 0.1287064105272293, -0.2801166772842407, 0.10161857306957245, -0.37504392862319946, -0.47884705662727356, -0.13488060235977173, 0.13195562362670898, -0.06796912848949432, -0.09098754078149796, 0.10331321507692337, 0.022080618888139725, -0.2510060966014862, 0.007965713739395142, 0.14160768687725067, 0.035423193126916885, 0.29884904623031616, 0.1892450451850891, 0.1612936556339264, 0.1742735058069229, 0.04252859950065613, -0.47614413499832153, 0.01756303571164608, -0.05883922427892685, 0.09957308322191238, 0.18741725385189056, -0.19626381993293762, 0.25034740567207336, 0.25902059674263, 0.3225478529930115, 0.10736009478569031, -0.43837645649909973, -0.22731029987335205, -0.07985447347164154, 0.12250016629695892, 0.051014192402362823, -0.18315842747688293, 0.19453534483909607, 0.2868766784667969, -0.06883242726325989, 0.318470299243927, 0.235200434923172, 0.34769535064697266, -0.42014819383621216, 0.046827591955661774, 0.411074161529541, 0.06719355285167694, -0.12977394461631775, 0.47173169255256653, -0.20362508296966553, 0.05236390233039856, 0.0846017599105835, 0.29466453194618225, 0.12019599974155426, 0.8587026000022888, 0.12909138202667236, 0.1891804188489914, 0.4139888882637024, -0.03033757209777832, 0.00684501975774765, -0.4966720938682556, -0.09523242712020874, 0.19847510755062103, -0.1680757999420166, 0.2741124629974365, 0.17021197080612183, -0.35905295610427856, 0.1909862607717514, -0.3852771520614624, -0.2336919605731964, -0.062026623636484146, -0.26225313544273376, 0.13358169794082642, -0.0030270814895629883, 0.027324959635734558, 0.16201022267341614, 0.23714080452919006, -0.3845197856426239, -0.30147701501846313, -0.2461310476064682, 0.1889079064130783, -0.20237627625465393, 0.2124776840209961, 0.4214305877685547, 0.04444253072142601, -0.03152453526854515, -0.03910906985402107, 0.36462754011154175, 0.09868396073579788, 0.10106852650642395, -0.0881534218788147, 0.07781046628952026, 0.13030865788459778, 0.19422197341918945, 0.18647180497646332, -0.024569397792220116, 0.2299172282218933, -0.012341786175966263, -0.06380588561296463, 0.02308013290166855, -0.10071124136447906, -0.015063393861055374, 0.13520467281341553, 0.07699869573116302, -0.019525207579135895, -0.10237172991037369, 0.42258957028388977, -0.005134787410497665, -0.4865999221801758, -0.03334219381213188, -0.4977216124534607, -0.0050531476736068726, -0.05147738382220268, 0.02874577045440674, -0.4116465449333191, -0.23537702858448029, 0.5690826177597046, -0.20133623480796814, 0.2559472322463989, 0.07746585458517075, 0.04566159099340439, -0.6079736351966858, 0.6227491497993469, 0.16278252005577087, 0.09330418705940247, -0.06854063272476196, 0.1594237983226776, -0.5500159859657288, 0.03038598597049713, -0.21666309237480164, -0.10156536847352982, 0.23399724066257477, 0.41403788328170776, -0.03086341917514801, -0.048686832189559937, 0.16508516669273376, 0.0038427822291851044, -0.19164395332336426, 0.08944250643253326, -0.28410011529922485, -0.13909047842025757, -0.14434100687503815, 0.11855516582727432, -0.17532464861869812, -0.4083873927593231, 0.3195691704750061, -0.009301763027906418, -0.07678791135549545, -0.10664623230695724, 0.21733947098255157, -0.14158321917057037, 0.4878293573856354, 0.4013834297657013, -0.04832281172275543, 0.3463922142982483, 0.00043395906686782837, 0.017502613365650177, 0.045189034193754196, 0.12413088232278824, -0.027961820363998413, 0.7077243328094482, 0.0045388005673885345, 0.14011898636817932, -0.08763235807418823, 0.09331710636615753, 0.11833608150482178, 0.09128641337156296, -0.001389913260936737, -0.1583743393421173, -0.1358548104763031, 0.05082041770219803, -0.15274114906787872, 0.026536982506513596, 0.15408597886562347, 0.12320545315742493, 0.031591303646564484, -0.08149202913045883, -0.02852344512939453, -0.07005322724580765, 0.31889021396636963, 0.025711454451084137, -0.08472763746976852, 0.05338446423411369, -0.015611246228218079, -0.021056048572063446, -0.018730521202087402, -0.29669904708862305, 0.20120975375175476, 0.4706380367279053, -0.24818527698516846, -0.009380698204040527, 0.39479920268058777, -0.2101588398218155, 0.005891568958759308, -0.07563058286905289, 0.7668734788894653, -0.1517631858587265, -0.35789984464645386, -0.12586219608783722, -0.041812650859355927 ]
https://github.com/huggingface/datasets/issues/2146
Yeah for sure, can you be a bit more specific about where the offset is stored in the code base ? And any reference to pyarrow issues if you have some. I would be very interested in contributing to `datasets` by trying to fix this issue.
Dataset file size on disk is very large with 3D Array
Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help.
46
Dataset file size on disk is very large with 3D Array Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help. Yeah for sure, can you be a bit more specific about where the offset is stored in the code base ? And any reference to pyarrow issues if you have some. I would be very interested in contributing to `datasets` by trying to fix this issue.
[ -0.14527370035648346, -0.11326291412115097, -0.15441793203353882, 0.4201558828353882, 0.21356363594532013, 0.11391296982765198, 0.5066811442375183, 0.2730788290500641, 0.020523034036159515, 0.035847704857587814, -0.19370460510253906, 0.08741555362939835, -0.16945859789848328, 0.31504392623901367, 0.06775017827749252, 0.10068821907043457, -0.07451768219470978, 0.2513984143733978, -0.1334787905216217, -0.08572042733430862, -0.009700722992420197, 0.019117580726742744, -0.01790957897901535, -0.18380630016326904, -0.061561763286590576, -0.16138316690921783, 0.0913488119840622, -0.024184774607419968, -0.08309878408908844, 0.07972719520330429, 0.2449779510498047, -0.08801180124282837, 0.17819984257221222, 0.5363872647285461, -0.00011738437024177983, 0.05027659237384796, 0.10829425603151321, -0.16553209722042084, 0.07918700575828552, 0.2893508970737457, -0.09255556017160416, -0.4095061421394348, -0.07466690242290497, -0.35760876536369324, 0.07695846259593964, -0.32495516538619995, -0.15211746096611023, -0.153545543551445, 0.18488997220993042, 0.07910023629665375, 0.21104568243026733, 0.15330511331558228, -0.0271134153008461, 0.4150457978248596, 0.09937799721956253, 0.5338882207870483, -0.1533459573984146, 0.12685559689998627, -0.14353850483894348, 0.43720173835754395, 0.08429765701293945, 0.07955040037631989, 0.1613585501909256, 0.28772538900375366, 0.5040502548217773, -0.055517882108688354, 0.23921160399913788, -0.2461923062801361, 0.12989376485347748, 0.40011295676231384, 0.8583651781082153, -0.2007376253604889, -0.18428048491477966, -0.3255719244480133, -0.10833004117012024, -0.03233903646469116, 0.022540954872965813, 0.38006332516670227, -0.04988998547196388, 0.021930869668722153, -0.6522024273872375, -0.13922451436519623, -0.22694185376167297, 0.14550183713436127, -0.21365347504615784, -0.48096752166748047, -0.13809017837047577, 0.1503390669822693, -0.18900084495544434, -0.26583653688430786, 0.2607785761356354, -0.39559224247932434, 0.0734373927116394, -0.09971439093351364, -0.26596593856811523, -0.2101806402206421, -0.29051390290260315, -0.3803427815437317, 0.35302722454071045, -0.15380622446537018, -0.010828046128153801, -0.15199336409568787, -0.36489319801330566, -0.14774228632450104, 0.10398486256599426, 0.38603758811950684, -0.4768473505973816, -0.13859772682189941, -0.14186814427375793, -0.29509052634239197, -0.04088149219751358, -0.05229458957910538, -0.2465379685163498, -0.09075766056776047, 0.19863322377204895, -0.4835401177406311, 0.0639367327094078, -0.06186699494719505, 0.044680774211883545, 0.023807372897863388, 0.08648133277893066, -0.09525518119335175, -0.07516278326511383, 0.13165301084518433, 0.14105086028575897, 0.13527610898017883, -0.140061616897583, -0.039203815162181854, -0.18591542541980743, 0.04163796454668045, -0.1229669451713562, -0.10461083054542542, 0.06263116002082825, -0.08175508677959442, 0.1144736260175705, 0.15056857466697693, 0.052291400730609894, -0.1904568076133728, 0.09038839489221573, 0.20010031759738922, 0.26247406005859375, -0.34731975197792053, 0.4073760509490967, 0.3550085723400116, 0.15890651941299438, 0.19831866025924683, -0.28542035818099976, 0.13986484706401825, -0.19970829784870148, 0.49449458718299866, -0.5467606782913208, -0.045360419899225235, -0.417341411113739, 0.09062186628580093, -0.22343438863754272, -0.054319847375154495, -0.572836697101593, 0.00974305346608162, 0.33955323696136475, -0.11862163990736008, 0.06782431900501251, -0.2173456996679306, -0.3785403072834015, -0.2943599820137024, -0.03715429827570915, 0.03126586973667145, -0.75631183385849, 0.26123136281967163, -0.1514396071434021, 0.08173613995313644, 0.19522051513195038, 0.5952158570289612, -0.08995175361633301, 0.4252850115299225, -0.4255610704421997, -0.048471175134181976, 0.04300415515899658, -0.038400035351514816, -0.661108136177063, 0.4873417615890503, 0.07067178189754486, 0.04850286990404129, 0.11241471767425537, 0.32018202543258667, 0.16368640959262848, -0.01637512631714344, -0.22282914817333221, 0.326605886220932, 0.09104804694652557, 0.042669348418712616, -0.19083285331726074, -0.38112324476242065, 0.08823920786380768, 0.045980677008628845, -0.13749533891677856, -0.14053548872470856, 0.1314450353384018, 0.08348657190799713, 0.2107226848602295, -0.1292203813791275, 0.03606019169092178, 0.37058576941490173, 0.20966362953186035, -0.2556735873222351, -0.021588971838355064, 0.1423659473657608, -0.6317533254623413, 0.18338093161582947, 0.24726170301437378, -0.4363887906074524, 0.15575344860553741, -0.10444342344999313, 0.03820660710334778, -0.22964641451835632, -0.08958980441093445, 0.20130100846290588, 0.023702502250671387, -0.0005766116082668304, -0.009196512401103973, -0.010455846786499023, -0.008591234683990479, -0.14775271713733673, 0.11488465219736099, -0.18818452954292297, -0.4114224314689636, 0.3561537265777588, 0.21356521546840668, -0.035041693598032, -0.10568654537200928, -0.07886134088039398, -0.3569895029067993, -0.3410830497741699, -0.18653513491153717, 0.0800962895154953, 0.2511081099510193, 0.1212475597858429, -0.07733041793107986, 0.48373788595199585, 0.22343087196350098, 0.07611685991287231, 0.3378685414791107, -0.12107348442077637, 0.09457802772521973, -0.22061552107334137, -0.20205232501029968, 0.21652069687843323, -0.19182473421096802, 0.06590235978364944, 0.02028799057006836, -0.359314501285553, 0.28578120470046997, 0.13330534100532532, 0.10505349189043045, -0.25766873359680176, -0.07694397866725922, 0.19290252029895782, 0.34674203395843506, 0.20294231176376343, 0.10765628516674042, 0.046753671020269394, 0.6398188471794128, -0.16672179102897644, 0.10701832920312881, 0.36452120542526245, -0.1265421211719513, -0.07832760363817215, 0.1058710366487503, 0.24525155127048492, 0.5257763266563416, 0.21703112125396729, 0.04596449062228203, -0.04137374460697174, 0.4925529658794403, -0.14437991380691528, 0.08119146525859833, 0.06789639592170715, 0.5235673189163208, 0.2810913324356079, 0.16023829579353333, 0.002756677567958832, -0.28445547819137573, -0.11330655962228775, 0.20439442992210388, 0.24656634032726288, -0.30335286259651184, 0.19992609322071075, -0.16313505172729492, -0.2681357264518738, -0.09480015188455582, 0.19029881060123444, -0.06011192500591278, 0.12484181672334671, -0.32770606875419617, -0.1944482922554016, 0.025102123618125916, -0.07976751029491425, 0.14392176270484924, 0.08479732275009155, 0.2937847077846527, -0.06793172657489777, 0.2701689600944519, 0.34331804513931274, -0.08782494068145752, 0.03548785299062729, 0.4142909646034241, -0.14856114983558655, 0.3000026345252991, -0.16350224614143372, 0.20966587960720062, -0.1380714774131775, -0.25168097019195557, 0.12045302987098694, 0.060555510222911835, 0.07064516097307205, -0.10957366228103638, 0.2740660309791565, -0.19955989718437195, 0.20189103484153748, 0.028606534004211426, 0.04939958453178406, -0.2603568732738495, 0.0002534016966819763, -0.04818806052207947, -0.12865231931209564, -0.21747037768363953, 0.09344645589590073, -0.28394588828086853, -0.05099092796444893, 0.2078641802072525, 0.18169014155864716, 0.2575589418411255, 0.370563268661499, 0.17234350740909576, 0.04122808948159218, 0.14932793378829956, -0.024331260472536087, -0.19408050179481506, -0.4591633081436157, 0.14596116542816162, -0.028291476890444756, -0.37252455949783325, 0.14329096674919128, 0.011465869843959808, 0.19203658401966095, 0.20455169677734375, -0.6480359435081482, -0.03949148952960968, -0.29309457540512085, 0.03786654770374298, -0.1762448102235794, 0.12188360095024109, 0.020079728215932846, -0.21597300469875336, 0.08265318721532822, -0.0400288924574852, -0.12273233383893967, -0.0801263079047203, 0.15147334337234497, 0.1209954023361206, 0.12774190306663513, 0.5383257269859314, 0.2677575349807739, 0.4104941487312317, 0.12948647141456604, -0.30160579085350037, 0.12483590096235275, -0.12099259346723557, 0.37001118063926697, -0.24813170731067657, 0.05178864300251007, 0.34236636757850647, 0.17940786480903625, -0.2017466127872467, 0.2401464730501175, -0.0048977043479681015, -0.07058320194482803, 0.3367037773132324, 0.02878984808921814, -0.1383410394191742, 0.023906394839286804, 0.19354937970638275, -0.06046883389353752, 0.010493495501577854, -0.07026968896389008, -0.09877220541238785, -0.15903791785240173, -0.3050755262374878, -0.08737380802631378, 0.19044609367847443, 0.21983367204666138, 0.033971015363931656, -0.37733936309814453, -0.11484984308481216, -0.34796467423439026, 0.18864338099956512, -0.16870802640914917, 0.3023189604282379, 0.032284125685691833, 0.2741393744945526, 0.24751821160316467, 0.1615711748600006, 0.9262685775756836, -0.09160738438367844, 0.07147279381752014, -0.19727389514446259, -0.04356765002012253, -0.589411199092865, -0.15428125858306885, -0.07896407693624496, 0.027080446481704712, -0.059039417654275894, 0.5538508892059326, -0.06310946494340897, -0.06860674917697906, -0.2617592215538025, 0.2991938889026642, -0.316880464553833, -0.38776540756225586, -0.275534451007843, -0.2933424115180969, -0.13568785786628723, -0.3935815989971161, 0.01999439299106598, -0.08695605397224426, 0.07559973746538162, -0.3193263113498688, -0.2675706446170807, -0.1990124136209488, 0.0541379451751709, 0.014546118676662445, 0.3740360140800476, 0.34350812435150146, 0.20867516100406647, -0.0869256854057312, 0.328469842672348, 0.36619991064071655, 0.25957685708999634, 0.07187537103891373, 0.05686696991324425, 0.20528654754161835, -0.2168000042438507, 0.08616216480731964, 0.10835614055395126, -0.02505907416343689, -0.28772249817848206, -0.0670187920331955, 0.11199008673429489, -0.28302785754203796, 0.1024947240948677, 0.37182679772377014, -0.15860804915428162, -0.0864219218492508, -0.3929764926433563, 0.3548666536808014, 0.012159965932369232, 0.09401427209377289, 0.03600576892495155, -0.05195235088467598, -0.14947345852851868, 0.14809547364711761, 0.2831670343875885, 0.5525878667831421, -0.3548775613307953, 0.30332136154174805, 0.2974138557910919, 0.0017681047320365906, 0.011402871459722519, -0.026530422270298004, -0.16806527972221375, -0.14450696110725403, -0.3122716248035431, 0.003084540367126465, -0.1878085434436798, -0.025493528693914413, 0.4849463999271393, 0.17509660124778748, 0.04391273111104965, 0.206707164645195, 0.0071274638175964355, -0.11497586220502853, 0.5293207764625549, 0.2995489835739136, -0.22830042243003845, 0.03250184282660484, 0.06393478065729141, -0.2548326849937439, -0.19034942984580994, -0.0622592493891716, -0.08637944608926773, -0.09849429130554199, 0.2215803563594818, -0.04033968597650528, -0.21266697347164154, -0.12389595806598663, 0.36795148253440857, -0.10822103917598724, -0.23162196576595306, 0.18157267570495605, 0.08386661857366562, -0.20102059841156006, 0.1966233104467392, -0.15731891989707947, 0.12797008454799652, 0.0030061043798923492, 0.3249218761920929, 0.14139865338802338, -0.1144990622997284, -0.031045502051711082, -0.09132468700408936, 0.02342715859413147, -0.19438661634922028, 0.1888037770986557, -0.14826920628547668, -0.06292609870433807, 0.0454888716340065, 0.029789678752422333, -0.09611004590988159, -0.6530036330223083, -0.34319213032722473, -0.20482397079467773, 0.40102970600128174, 0.0805630013346672, 0.13096117973327637, 0.21248318254947662, 0.4965970516204834, 0.024388903751969337, -0.37303584814071655, -0.14032651484012604, 0.1895272582769394, 0.2858308255672455, 0.17994695901870728, 0.38669201731681824, -0.13410884141921997, -0.1365937739610672, -0.07098973542451859, 0.6510818004608154, 0.10127302259206772, -0.19125421345233917, -0.05776600539684296, -0.04039059579372406, 0.3169392943382263, 0.020815029740333557, -0.3343828320503235, 0.18835803866386414, -0.0939159169793129, -0.359913170337677, -0.20773467421531677, -0.1373049020767212, 0.12147100269794464, -0.1601492166519165, 0.29431942105293274, 0.0504378080368042, -0.18645305931568146, 0.0016887038946151733, -0.07643132656812668, -0.20493295788764954, 0.19694584608078003, 0.2957784831523895, 0.00608423724770546, -0.332867830991745, 0.06457117944955826, -0.0876779556274414, -0.26825714111328125, -0.06693807989358902, -0.14714351296424866, -0.1714790314435959, -0.1753692775964737, 0.09678087383508682, 0.11153759062290192, 0.1287064105272293, -0.2801166772842407, 0.10161857306957245, -0.37504392862319946, -0.47884705662727356, -0.13488060235977173, 0.13195562362670898, -0.06796912848949432, -0.09098754078149796, 0.10331321507692337, 0.022080618888139725, -0.2510060966014862, 0.007965713739395142, 0.14160768687725067, 0.035423193126916885, 0.29884904623031616, 0.1892450451850891, 0.1612936556339264, 0.1742735058069229, 0.04252859950065613, -0.47614413499832153, 0.01756303571164608, -0.05883922427892685, 0.09957308322191238, 0.18741725385189056, -0.19626381993293762, 0.25034740567207336, 0.25902059674263, 0.3225478529930115, 0.10736009478569031, -0.43837645649909973, -0.22731029987335205, -0.07985447347164154, 0.12250016629695892, 0.051014192402362823, -0.18315842747688293, 0.19453534483909607, 0.2868766784667969, -0.06883242726325989, 0.318470299243927, 0.235200434923172, 0.34769535064697266, -0.42014819383621216, 0.046827591955661774, 0.411074161529541, 0.06719355285167694, -0.12977394461631775, 0.47173169255256653, -0.20362508296966553, 0.05236390233039856, 0.0846017599105835, 0.29466453194618225, 0.12019599974155426, 0.8587026000022888, 0.12909138202667236, 0.1891804188489914, 0.4139888882637024, -0.03033757209777832, 0.00684501975774765, -0.4966720938682556, -0.09523242712020874, 0.19847510755062103, -0.1680757999420166, 0.2741124629974365, 0.17021197080612183, -0.35905295610427856, 0.1909862607717514, -0.3852771520614624, -0.2336919605731964, -0.062026623636484146, -0.26225313544273376, 0.13358169794082642, -0.0030270814895629883, 0.027324959635734558, 0.16201022267341614, 0.23714080452919006, -0.3845197856426239, -0.30147701501846313, -0.2461310476064682, 0.1889079064130783, -0.20237627625465393, 0.2124776840209961, 0.4214305877685547, 0.04444253072142601, -0.03152453526854515, -0.03910906985402107, 0.36462754011154175, 0.09868396073579788, 0.10106852650642395, -0.0881534218788147, 0.07781046628952026, 0.13030865788459778, 0.19422197341918945, 0.18647180497646332, -0.024569397792220116, 0.2299172282218933, -0.012341786175966263, -0.06380588561296463, 0.02308013290166855, -0.10071124136447906, -0.015063393861055374, 0.13520467281341553, 0.07699869573116302, -0.019525207579135895, -0.10237172991037369, 0.42258957028388977, -0.005134787410497665, -0.4865999221801758, -0.03334219381213188, -0.4977216124534607, -0.0050531476736068726, -0.05147738382220268, 0.02874577045440674, -0.4116465449333191, -0.23537702858448029, 0.5690826177597046, -0.20133623480796814, 0.2559472322463989, 0.07746585458517075, 0.04566159099340439, -0.6079736351966858, 0.6227491497993469, 0.16278252005577087, 0.09330418705940247, -0.06854063272476196, 0.1594237983226776, -0.5500159859657288, 0.03038598597049713, -0.21666309237480164, -0.10156536847352982, 0.23399724066257477, 0.41403788328170776, -0.03086341917514801, -0.048686832189559937, 0.16508516669273376, 0.0038427822291851044, -0.19164395332336426, 0.08944250643253326, -0.28410011529922485, -0.13909047842025757, -0.14434100687503815, 0.11855516582727432, -0.17532464861869812, -0.4083873927593231, 0.3195691704750061, -0.009301763027906418, -0.07678791135549545, -0.10664623230695724, 0.21733947098255157, -0.14158321917057037, 0.4878293573856354, 0.4013834297657013, -0.04832281172275543, 0.3463922142982483, 0.00043395906686782837, 0.017502613365650177, 0.045189034193754196, 0.12413088232278824, -0.027961820363998413, 0.7077243328094482, 0.0045388005673885345, 0.14011898636817932, -0.08763235807418823, 0.09331710636615753, 0.11833608150482178, 0.09128641337156296, -0.001389913260936737, -0.1583743393421173, -0.1358548104763031, 0.05082041770219803, -0.15274114906787872, 0.026536982506513596, 0.15408597886562347, 0.12320545315742493, 0.031591303646564484, -0.08149202913045883, -0.02852344512939453, -0.07005322724580765, 0.31889021396636963, 0.025711454451084137, -0.08472763746976852, 0.05338446423411369, -0.015611246228218079, -0.021056048572063446, -0.018730521202087402, -0.29669904708862305, 0.20120975375175476, 0.4706380367279053, -0.24818527698516846, -0.009380698204040527, 0.39479920268058777, -0.2101588398218155, 0.005891568958759308, -0.07563058286905289, 0.7668734788894653, -0.1517631858587265, -0.35789984464645386, -0.12586219608783722, -0.041812650859355927 ]
https://github.com/huggingface/datasets/issues/2146
Pyarrow has two types of lists: variable length lists and fixed size lists. Currently we store the ArrayXD data as variable length lists. They take more disk space because they must store both actual data and offsets. In the `datasets` code this is done here: https://github.com/huggingface/nlp/blob/dbac87c8a083f806467f5afc4ec9b401a7e4c15c/src/datasets/features.py#L346-L352 To use a fixed length list, one should use the `list_size` argument of `pyarrow.list_()`. I believe this would work directly modulo some changes in the numpy conversion here: https://github.com/huggingface/nlp/blob/dbac87c8a083f806467f5afc4ec9b401a7e4c15c/src/datasets/features.py#L381-L395
Dataset file size on disk is very large with 3D Array
Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help.
75
Dataset file size on disk is very large with 3D Array Hi, I have created my own dataset using the provided dataset loading script. It is an image dataset where images are stored as 3D Array with dtype=uint8. The actual size on disk is surprisingly large. It takes 520 MB. Here is some info from `dataset_info.json`. `{ "description": "", "citation": "", "homepage": "", "license": "", "features": { "image": { "shape": [224, 224, 3], "dtype": "uint8", "id": null, "_type": "Array3D", } }, "post_processed": null, "supervised_keys": null, "builder_name": "shot_type_image_dataset", "config_name": "default", "version": { "version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0, }, "splits": { "train": { "name": "train", "num_bytes": 520803408, "num_examples": 1479, "dataset_name": "shot_type_image_dataset", } }, "download_checksums": { "": { "num_bytes": 16940447118, "checksum": "5854035705efe08b0ed8f3cf3da7b4d29cba9055c2d2d702c79785350d72ee03", } }, "download_size": 16940447118, "post_processing_size": null, "dataset_size": 520803408, "size_in_bytes": 17461250526, }` I have created the same dataset with tensorflow_dataset and it takes only 125MB on disk. I am wondering, is it normal behavior ? I understand `Datasets` uses Arrow for serialization wheres tf uses TF Records. This might be a problem for large dataset. Thanks for your help. Pyarrow has two types of lists: variable length lists and fixed size lists. Currently we store the ArrayXD data as variable length lists. They take more disk space because they must store both actual data and offsets. In the `datasets` code this is done here: https://github.com/huggingface/nlp/blob/dbac87c8a083f806467f5afc4ec9b401a7e4c15c/src/datasets/features.py#L346-L352 To use a fixed length list, one should use the `list_size` argument of `pyarrow.list_()`. I believe this would work directly modulo some changes in the numpy conversion here: https://github.com/huggingface/nlp/blob/dbac87c8a083f806467f5afc4ec9b401a7e4c15c/src/datasets/features.py#L381-L395
[ -0.14527370035648346, -0.11326291412115097, -0.15441793203353882, 0.4201558828353882, 0.21356363594532013, 0.11391296982765198, 0.5066811442375183, 0.2730788290500641, 0.020523034036159515, 0.035847704857587814, -0.19370460510253906, 0.08741555362939835, -0.16945859789848328, 0.31504392623901367, 0.06775017827749252, 0.10068821907043457, -0.07451768219470978, 0.2513984143733978, -0.1334787905216217, -0.08572042733430862, -0.009700722992420197, 0.019117580726742744, -0.01790957897901535, -0.18380630016326904, -0.061561763286590576, -0.16138316690921783, 0.0913488119840622, -0.024184774607419968, -0.08309878408908844, 0.07972719520330429, 0.2449779510498047, -0.08801180124282837, 0.17819984257221222, 0.5363872647285461, -0.00011738437024177983, 0.05027659237384796, 0.10829425603151321, -0.16553209722042084, 0.07918700575828552, 0.2893508970737457, -0.09255556017160416, -0.4095061421394348, -0.07466690242290497, -0.35760876536369324, 0.07695846259593964, -0.32495516538619995, -0.15211746096611023, -0.153545543551445, 0.18488997220993042, 0.07910023629665375, 0.21104568243026733, 0.15330511331558228, -0.0271134153008461, 0.4150457978248596, 0.09937799721956253, 0.5338882207870483, -0.1533459573984146, 0.12685559689998627, -0.14353850483894348, 0.43720173835754395, 0.08429765701293945, 0.07955040037631989, 0.1613585501909256, 0.28772538900375366, 0.5040502548217773, -0.055517882108688354, 0.23921160399913788, -0.2461923062801361, 0.12989376485347748, 0.40011295676231384, 0.8583651781082153, -0.2007376253604889, -0.18428048491477966, -0.3255719244480133, -0.10833004117012024, -0.03233903646469116, 0.022540954872965813, 0.38006332516670227, -0.04988998547196388, 0.021930869668722153, -0.6522024273872375, -0.13922451436519623, -0.22694185376167297, 0.14550183713436127, -0.21365347504615784, -0.48096752166748047, -0.13809017837047577, 0.1503390669822693, -0.18900084495544434, -0.26583653688430786, 0.2607785761356354, -0.39559224247932434, 0.0734373927116394, -0.09971439093351364, -0.26596593856811523, -0.2101806402206421, -0.29051390290260315, -0.3803427815437317, 0.35302722454071045, -0.15380622446537018, -0.010828046128153801, -0.15199336409568787, -0.36489319801330566, -0.14774228632450104, 0.10398486256599426, 0.38603758811950684, -0.4768473505973816, -0.13859772682189941, -0.14186814427375793, -0.29509052634239197, -0.04088149219751358, -0.05229458957910538, -0.2465379685163498, -0.09075766056776047, 0.19863322377204895, -0.4835401177406311, 0.0639367327094078, -0.06186699494719505, 0.044680774211883545, 0.023807372897863388, 0.08648133277893066, -0.09525518119335175, -0.07516278326511383, 0.13165301084518433, 0.14105086028575897, 0.13527610898017883, -0.140061616897583, -0.039203815162181854, -0.18591542541980743, 0.04163796454668045, -0.1229669451713562, -0.10461083054542542, 0.06263116002082825, -0.08175508677959442, 0.1144736260175705, 0.15056857466697693, 0.052291400730609894, -0.1904568076133728, 0.09038839489221573, 0.20010031759738922, 0.26247406005859375, -0.34731975197792053, 0.4073760509490967, 0.3550085723400116, 0.15890651941299438, 0.19831866025924683, -0.28542035818099976, 0.13986484706401825, -0.19970829784870148, 0.49449458718299866, -0.5467606782913208, -0.045360419899225235, -0.417341411113739, 0.09062186628580093, -0.22343438863754272, -0.054319847375154495, -0.572836697101593, 0.00974305346608162, 0.33955323696136475, -0.11862163990736008, 0.06782431900501251, -0.2173456996679306, -0.3785403072834015, -0.2943599820137024, -0.03715429827570915, 0.03126586973667145, -0.75631183385849, 0.26123136281967163, -0.1514396071434021, 0.08173613995313644, 0.19522051513195038, 0.5952158570289612, -0.08995175361633301, 0.4252850115299225, -0.4255610704421997, -0.048471175134181976, 0.04300415515899658, -0.038400035351514816, -0.661108136177063, 0.4873417615890503, 0.07067178189754486, 0.04850286990404129, 0.11241471767425537, 0.32018202543258667, 0.16368640959262848, -0.01637512631714344, -0.22282914817333221, 0.326605886220932, 0.09104804694652557, 0.042669348418712616, -0.19083285331726074, -0.38112324476242065, 0.08823920786380768, 0.045980677008628845, -0.13749533891677856, -0.14053548872470856, 0.1314450353384018, 0.08348657190799713, 0.2107226848602295, -0.1292203813791275, 0.03606019169092178, 0.37058576941490173, 0.20966362953186035, -0.2556735873222351, -0.021588971838355064, 0.1423659473657608, -0.6317533254623413, 0.18338093161582947, 0.24726170301437378, -0.4363887906074524, 0.15575344860553741, -0.10444342344999313, 0.03820660710334778, -0.22964641451835632, -0.08958980441093445, 0.20130100846290588, 0.023702502250671387, -0.0005766116082668304, -0.009196512401103973, -0.010455846786499023, -0.008591234683990479, -0.14775271713733673, 0.11488465219736099, -0.18818452954292297, -0.4114224314689636, 0.3561537265777588, 0.21356521546840668, -0.035041693598032, -0.10568654537200928, -0.07886134088039398, -0.3569895029067993, -0.3410830497741699, -0.18653513491153717, 0.0800962895154953, 0.2511081099510193, 0.1212475597858429, -0.07733041793107986, 0.48373788595199585, 0.22343087196350098, 0.07611685991287231, 0.3378685414791107, -0.12107348442077637, 0.09457802772521973, -0.22061552107334137, -0.20205232501029968, 0.21652069687843323, -0.19182473421096802, 0.06590235978364944, 0.02028799057006836, -0.359314501285553, 0.28578120470046997, 0.13330534100532532, 0.10505349189043045, -0.25766873359680176, -0.07694397866725922, 0.19290252029895782, 0.34674203395843506, 0.20294231176376343, 0.10765628516674042, 0.046753671020269394, 0.6398188471794128, -0.16672179102897644, 0.10701832920312881, 0.36452120542526245, -0.1265421211719513, -0.07832760363817215, 0.1058710366487503, 0.24525155127048492, 0.5257763266563416, 0.21703112125396729, 0.04596449062228203, -0.04137374460697174, 0.4925529658794403, -0.14437991380691528, 0.08119146525859833, 0.06789639592170715, 0.5235673189163208, 0.2810913324356079, 0.16023829579353333, 0.002756677567958832, -0.28445547819137573, -0.11330655962228775, 0.20439442992210388, 0.24656634032726288, -0.30335286259651184, 0.19992609322071075, -0.16313505172729492, -0.2681357264518738, -0.09480015188455582, 0.19029881060123444, -0.06011192500591278, 0.12484181672334671, -0.32770606875419617, -0.1944482922554016, 0.025102123618125916, -0.07976751029491425, 0.14392176270484924, 0.08479732275009155, 0.2937847077846527, -0.06793172657489777, 0.2701689600944519, 0.34331804513931274, -0.08782494068145752, 0.03548785299062729, 0.4142909646034241, -0.14856114983558655, 0.3000026345252991, -0.16350224614143372, 0.20966587960720062, -0.1380714774131775, -0.25168097019195557, 0.12045302987098694, 0.060555510222911835, 0.07064516097307205, -0.10957366228103638, 0.2740660309791565, -0.19955989718437195, 0.20189103484153748, 0.028606534004211426, 0.04939958453178406, -0.2603568732738495, 0.0002534016966819763, -0.04818806052207947, -0.12865231931209564, -0.21747037768363953, 0.09344645589590073, -0.28394588828086853, -0.05099092796444893, 0.2078641802072525, 0.18169014155864716, 0.2575589418411255, 0.370563268661499, 0.17234350740909576, 0.04122808948159218, 0.14932793378829956, -0.024331260472536087, -0.19408050179481506, -0.4591633081436157, 0.14596116542816162, -0.028291476890444756, -0.37252455949783325, 0.14329096674919128, 0.011465869843959808, 0.19203658401966095, 0.20455169677734375, -0.6480359435081482, -0.03949148952960968, -0.29309457540512085, 0.03786654770374298, -0.1762448102235794, 0.12188360095024109, 0.020079728215932846, -0.21597300469875336, 0.08265318721532822, -0.0400288924574852, -0.12273233383893967, -0.0801263079047203, 0.15147334337234497, 0.1209954023361206, 0.12774190306663513, 0.5383257269859314, 0.2677575349807739, 0.4104941487312317, 0.12948647141456604, -0.30160579085350037, 0.12483590096235275, -0.12099259346723557, 0.37001118063926697, -0.24813170731067657, 0.05178864300251007, 0.34236636757850647, 0.17940786480903625, -0.2017466127872467, 0.2401464730501175, -0.0048977043479681015, -0.07058320194482803, 0.3367037773132324, 0.02878984808921814, -0.1383410394191742, 0.023906394839286804, 0.19354937970638275, -0.06046883389353752, 0.010493495501577854, -0.07026968896389008, -0.09877220541238785, -0.15903791785240173, -0.3050755262374878, -0.08737380802631378, 0.19044609367847443, 0.21983367204666138, 0.033971015363931656, -0.37733936309814453, -0.11484984308481216, -0.34796467423439026, 0.18864338099956512, -0.16870802640914917, 0.3023189604282379, 0.032284125685691833, 0.2741393744945526, 0.24751821160316467, 0.1615711748600006, 0.9262685775756836, -0.09160738438367844, 0.07147279381752014, -0.19727389514446259, -0.04356765002012253, -0.589411199092865, -0.15428125858306885, -0.07896407693624496, 0.027080446481704712, -0.059039417654275894, 0.5538508892059326, -0.06310946494340897, -0.06860674917697906, -0.2617592215538025, 0.2991938889026642, -0.316880464553833, -0.38776540756225586, -0.275534451007843, -0.2933424115180969, -0.13568785786628723, -0.3935815989971161, 0.01999439299106598, -0.08695605397224426, 0.07559973746538162, -0.3193263113498688, -0.2675706446170807, -0.1990124136209488, 0.0541379451751709, 0.014546118676662445, 0.3740360140800476, 0.34350812435150146, 0.20867516100406647, -0.0869256854057312, 0.328469842672348, 0.36619991064071655, 0.25957685708999634, 0.07187537103891373, 0.05686696991324425, 0.20528654754161835, -0.2168000042438507, 0.08616216480731964, 0.10835614055395126, -0.02505907416343689, -0.28772249817848206, -0.0670187920331955, 0.11199008673429489, -0.28302785754203796, 0.1024947240948677, 0.37182679772377014, -0.15860804915428162, -0.0864219218492508, -0.3929764926433563, 0.3548666536808014, 0.012159965932369232, 0.09401427209377289, 0.03600576892495155, -0.05195235088467598, -0.14947345852851868, 0.14809547364711761, 0.2831670343875885, 0.5525878667831421, -0.3548775613307953, 0.30332136154174805, 0.2974138557910919, 0.0017681047320365906, 0.011402871459722519, -0.026530422270298004, -0.16806527972221375, -0.14450696110725403, -0.3122716248035431, 0.003084540367126465, -0.1878085434436798, -0.025493528693914413, 0.4849463999271393, 0.17509660124778748, 0.04391273111104965, 0.206707164645195, 0.0071274638175964355, -0.11497586220502853, 0.5293207764625549, 0.2995489835739136, -0.22830042243003845, 0.03250184282660484, 0.06393478065729141, -0.2548326849937439, -0.19034942984580994, -0.0622592493891716, -0.08637944608926773, -0.09849429130554199, 0.2215803563594818, -0.04033968597650528, -0.21266697347164154, -0.12389595806598663, 0.36795148253440857, -0.10822103917598724, -0.23162196576595306, 0.18157267570495605, 0.08386661857366562, -0.20102059841156006, 0.1966233104467392, -0.15731891989707947, 0.12797008454799652, 0.0030061043798923492, 0.3249218761920929, 0.14139865338802338, -0.1144990622997284, -0.031045502051711082, -0.09132468700408936, 0.02342715859413147, -0.19438661634922028, 0.1888037770986557, -0.14826920628547668, -0.06292609870433807, 0.0454888716340065, 0.029789678752422333, -0.09611004590988159, -0.6530036330223083, -0.34319213032722473, -0.20482397079467773, 0.40102970600128174, 0.0805630013346672, 0.13096117973327637, 0.21248318254947662, 0.4965970516204834, 0.024388903751969337, -0.37303584814071655, -0.14032651484012604, 0.1895272582769394, 0.2858308255672455, 0.17994695901870728, 0.38669201731681824, -0.13410884141921997, -0.1365937739610672, -0.07098973542451859, 0.6510818004608154, 0.10127302259206772, -0.19125421345233917, -0.05776600539684296, -0.04039059579372406, 0.3169392943382263, 0.020815029740333557, -0.3343828320503235, 0.18835803866386414, -0.0939159169793129, -0.359913170337677, -0.20773467421531677, -0.1373049020767212, 0.12147100269794464, -0.1601492166519165, 0.29431942105293274, 0.0504378080368042, -0.18645305931568146, 0.0016887038946151733, -0.07643132656812668, -0.20493295788764954, 0.19694584608078003, 0.2957784831523895, 0.00608423724770546, -0.332867830991745, 0.06457117944955826, -0.0876779556274414, -0.26825714111328125, -0.06693807989358902, -0.14714351296424866, -0.1714790314435959, -0.1753692775964737, 0.09678087383508682, 0.11153759062290192, 0.1287064105272293, -0.2801166772842407, 0.10161857306957245, -0.37504392862319946, -0.47884705662727356, -0.13488060235977173, 0.13195562362670898, -0.06796912848949432, -0.09098754078149796, 0.10331321507692337, 0.022080618888139725, -0.2510060966014862, 0.007965713739395142, 0.14160768687725067, 0.035423193126916885, 0.29884904623031616, 0.1892450451850891, 0.1612936556339264, 0.1742735058069229, 0.04252859950065613, -0.47614413499832153, 0.01756303571164608, -0.05883922427892685, 0.09957308322191238, 0.18741725385189056, -0.19626381993293762, 0.25034740567207336, 0.25902059674263, 0.3225478529930115, 0.10736009478569031, -0.43837645649909973, -0.22731029987335205, -0.07985447347164154, 0.12250016629695892, 0.051014192402362823, -0.18315842747688293, 0.19453534483909607, 0.2868766784667969, -0.06883242726325989, 0.318470299243927, 0.235200434923172, 0.34769535064697266, -0.42014819383621216, 0.046827591955661774, 0.411074161529541, 0.06719355285167694, -0.12977394461631775, 0.47173169255256653, -0.20362508296966553, 0.05236390233039856, 0.0846017599105835, 0.29466453194618225, 0.12019599974155426, 0.8587026000022888, 0.12909138202667236, 0.1891804188489914, 0.4139888882637024, -0.03033757209777832, 0.00684501975774765, -0.4966720938682556, -0.09523242712020874, 0.19847510755062103, -0.1680757999420166, 0.2741124629974365, 0.17021197080612183, -0.35905295610427856, 0.1909862607717514, -0.3852771520614624, -0.2336919605731964, -0.062026623636484146, -0.26225313544273376, 0.13358169794082642, -0.0030270814895629883, 0.027324959635734558, 0.16201022267341614, 0.23714080452919006, -0.3845197856426239, -0.30147701501846313, -0.2461310476064682, 0.1889079064130783, -0.20237627625465393, 0.2124776840209961, 0.4214305877685547, 0.04444253072142601, -0.03152453526854515, -0.03910906985402107, 0.36462754011154175, 0.09868396073579788, 0.10106852650642395, -0.0881534218788147, 0.07781046628952026, 0.13030865788459778, 0.19422197341918945, 0.18647180497646332, -0.024569397792220116, 0.2299172282218933, -0.012341786175966263, -0.06380588561296463, 0.02308013290166855, -0.10071124136447906, -0.015063393861055374, 0.13520467281341553, 0.07699869573116302, -0.019525207579135895, -0.10237172991037369, 0.42258957028388977, -0.005134787410497665, -0.4865999221801758, -0.03334219381213188, -0.4977216124534607, -0.0050531476736068726, -0.05147738382220268, 0.02874577045440674, -0.4116465449333191, -0.23537702858448029, 0.5690826177597046, -0.20133623480796814, 0.2559472322463989, 0.07746585458517075, 0.04566159099340439, -0.6079736351966858, 0.6227491497993469, 0.16278252005577087, 0.09330418705940247, -0.06854063272476196, 0.1594237983226776, -0.5500159859657288, 0.03038598597049713, -0.21666309237480164, -0.10156536847352982, 0.23399724066257477, 0.41403788328170776, -0.03086341917514801, -0.048686832189559937, 0.16508516669273376, 0.0038427822291851044, -0.19164395332336426, 0.08944250643253326, -0.28410011529922485, -0.13909047842025757, -0.14434100687503815, 0.11855516582727432, -0.17532464861869812, -0.4083873927593231, 0.3195691704750061, -0.009301763027906418, -0.07678791135549545, -0.10664623230695724, 0.21733947098255157, -0.14158321917057037, 0.4878293573856354, 0.4013834297657013, -0.04832281172275543, 0.3463922142982483, 0.00043395906686782837, 0.017502613365650177, 0.045189034193754196, 0.12413088232278824, -0.027961820363998413, 0.7077243328094482, 0.0045388005673885345, 0.14011898636817932, -0.08763235807418823, 0.09331710636615753, 0.11833608150482178, 0.09128641337156296, -0.001389913260936737, -0.1583743393421173, -0.1358548104763031, 0.05082041770219803, -0.15274114906787872, 0.026536982506513596, 0.15408597886562347, 0.12320545315742493, 0.031591303646564484, -0.08149202913045883, -0.02852344512939453, -0.07005322724580765, 0.31889021396636963, 0.025711454451084137, -0.08472763746976852, 0.05338446423411369, -0.015611246228218079, -0.021056048572063446, -0.018730521202087402, -0.29669904708862305, 0.20120975375175476, 0.4706380367279053, -0.24818527698516846, -0.009380698204040527, 0.39479920268058777, -0.2101588398218155, 0.005891568958759308, -0.07563058286905289, 0.7668734788894653, -0.1517631858587265, -0.35789984464645386, -0.12586219608783722, -0.041812650859355927 ]
https://github.com/huggingface/datasets/issues/2144
That's how I loaded the dataset ```python from datasets import load_dataset ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') ```
Loading wikipedia 20200501.en throws pyarrow related error
**Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0]
17
Loading wikipedia 20200501.en throws pyarrow related error **Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0] That's how I loaded the dataset ```python from datasets import load_dataset ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') ```
[ -0.10415421426296234, 0.35264623165130615, 0.03405791521072388, 0.3633102476596832, 0.27457743883132935, 0.180207759141922, 0.2762240171432495, 0.4623250365257263, -0.04348841309547424, -0.11378446221351624, 0.024737529456615448, 0.23602193593978882, 0.1520678699016571, -0.11780165880918503, 0.18410861492156982, -0.16831380128860474, 0.003877118229866028, 0.006880391389131546, 0.08479204773902893, 0.13284464180469513, -0.20012028515338898, 0.11467418819665909, -0.18248629570007324, 0.15551765263080597, -0.5857800245285034, 0.08811640739440918, -0.06601789593696594, 0.05404168367385864, 0.08332427591085434, -0.6138044595718384, 0.3904816806316376, -0.050053659826517105, 0.201091006398201, 0.21213088929653168, -0.00012045968469465151, 0.0749957412481308, 0.4643649458885193, -0.004133157432079315, -0.2960132956504822, -0.0811442956328392, 0.18658001720905304, -0.020505622029304504, 0.31808823347091675, -0.36076971888542175, 0.10087853670120239, -0.28033915162086487, 0.22425945103168488, 0.04719966650009155, 0.18321819603443146, 0.008632726967334747, 0.16828575730323792, -0.1830531656742096, 0.337539404630661, 0.030644133687019348, 0.7112435102462769, -0.13746881484985352, 0.08150562644004822, 0.44246038794517517, 0.12259725481271744, -0.16071557998657227, -0.18643520772457123, 0.23629778623580933, -0.25025784969329834, 0.12030933797359467, 0.26718348264694214, -0.07704312354326248, 0.3848762810230255, -0.20049569010734558, 0.39215338230133057, 0.26795780658721924, 0.7762548327445984, -0.409220427274704, 0.17303316295146942, -0.23131224513053894, -0.03287123143672943, -0.022959358990192413, 0.09382513165473938, 0.2307371199131012, -0.27676916122436523, 0.05453048646450043, 0.15718597173690796, -0.11887119710445404, -0.2609158456325531, 0.30131542682647705, -0.064247727394104, 0.1997208297252655, 0.13993796706199646, 0.39106860756874084, 0.01633521541953087, -0.22688396275043488, 0.0019351840019226074, 0.06326441466808319, 0.1672583818435669, 0.22086429595947266, -0.39311423897743225, 0.10725818574428558, -0.06830291450023651, 0.11390469968318939, 0.37786197662353516, -0.16936174035072327, -0.02159642055630684, 0.0659419447183609, 0.2391711175441742, 0.20646503567695618, 0.4192267060279846, 0.12418514490127563, -0.3237411677837372, -0.2987220883369446, 0.2721664011478424, 0.1988997757434845, -0.25421416759490967, -0.03644156455993652, -0.06121234595775604, -0.11379531770944595, 0.13857287168502808, -0.17098405957221985, 0.42917394638061523, -0.26999130845069885, -0.2205793261528015, 0.11957649886608124, -0.14467929303646088, -0.07156749814748764, -0.1552301049232483, 0.3867202401161194, -0.09167879819869995, 0.2424997091293335, 0.06721031665802002, 0.06223788112401962, -0.18214350938796997, -0.18781429529190063, 0.005754292011260986, 0.11867789924144745, -0.212467223405838, 0.17979350686073303, 0.2939302921295166, -0.1538042575120926, 0.2583543360233307, 0.14352194964885712, -0.15061059594154358, -0.12067631632089615, 0.1700643002986908, 0.013038169592618942, -0.23267275094985962, 0.3098335862159729, 0.007501371204853058, 0.2468719184398651, -0.03289543464779854, -0.14496909081935883, -0.17903411388397217, 0.3182583451271057, -0.2848285436630249, -0.5152555704116821, -0.26225027441978455, 0.12090497463941574, -0.011663194745779037, 0.08445131778717041, 0.1616869568824768, 0.05765434354543686, 0.44134941697120667, -0.5136591792106628, -0.10032309591770172, -0.1257847100496292, -0.18552851676940918, -0.4527531862258911, 0.17063742876052856, 0.336312860250473, -0.5569392442703247, 0.07983218133449554, -0.0507645308971405, 0.08240373432636261, 0.21736714243888855, 0.44500213861465454, -0.22985588014125824, 0.17576611042022705, -0.1654864400625229, 0.19240128993988037, 0.10959122329950333, -0.31215766072273254, -0.5411025285720825, 0.21401339769363403, -0.061286844313144684, 0.19590391218662262, 0.025957845151424408, 0.2906032204627991, 0.009337250143289566, 0.1717621386051178, 0.4052644371986389, 0.24925102293491364, -0.04676474630832672, 0.07879223674535751, -0.408526748418808, -0.3879697024822235, 0.33856332302093506, 0.20166607201099396, -0.004745012149214745, -0.1988982856273651, 0.19682489335536957, 0.3221474885940552, 0.25847968459129333, -0.2035796046257019, 0.12879636883735657, 0.021839313209056854, 0.07051779329776764, -0.01294698566198349, 0.23276646435260773, -0.22382982075214386, -0.4262203276157379, 0.11144572496414185, -0.34314051270484924, -0.02358955517411232, -0.30438679456710815, -0.3612285256385803, -0.5231873393058777, 0.06636932492256165, -0.1714644432067871, -0.2400972992181778, 0.11505021899938583, -0.061333928257226944, 0.09535001218318939, 0.2569481134414673, 0.10278594493865967, -0.0896758884191513, -0.20426636934280396, -0.017557580024003983, -0.40308985114097595, 0.24051633477210999, -0.3087987005710602, -0.17864957451820374, -0.0221906378865242, 0.2451286017894745, 0.324608713388443, 0.10029381513595581, 0.04317522794008255, 0.15584322810173035, 0.14677703380584717, 0.09318707138299942, -0.13243627548217773, -0.017700359225273132, 0.22722642123699188, -0.2668780982494354, 0.2040078043937683, 0.12404444068670273, 0.1868998110294342, -0.22101745009422302, 0.05095268785953522, 0.1322418749332428, -0.0019995267502963543, 0.17187605798244476, -0.08223811537027359, -0.07122443616390228, 0.157029390335083, -0.0034191161394119263, 0.39678436517715454, -0.1355210244655609, 0.25990328192710876, 0.47115999460220337, 0.04300195723772049, 0.10370759665966034, -0.00577487051486969, 0.010361067950725555, 0.11434586346149445, -0.0471607968211174, 0.15312211215496063, 0.1461278349161148, -0.34166181087493896, -0.2851566672325134, 0.2188829481601715, -0.144235759973526, 0.07827391475439072, 0.09371292591094971, 0.02806950733065605, 0.13984842598438263, -0.06898078322410583, -0.19510307908058167, 0.1316024363040924, -0.11788006126880646, 0.45907241106033325, 0.3100675642490387, 0.30289003252983093, -0.029343929141759872, -0.37656670808792114, 0.059394754469394684, 0.08311399817466736, 0.3793654143810272, -0.3040895462036133, 0.07948898524045944, -0.17133212089538574, -0.24345973134040833, -0.07726651430130005, -0.013045009225606918, -0.2915111482143402, -0.3173149824142456, 0.08157074451446533, 0.5144318342208862, 0.03286819905042648, 0.009986113756895065, -0.05400306358933449, -0.04803508520126343, 0.07968860119581223, -0.13089101016521454, -0.050506342202425, -0.7057314515113831, -0.38591158390045166, 0.005147457122802734, 0.2574864327907562, -0.13397957384586334, 0.2502463161945343, -0.025403745472431183, -0.19274702668190002, -0.3766914904117584, -0.551348090171814, -0.0036724358797073364, -0.11040541529655457, 0.3178441524505615, 0.01763313077390194, 0.3957710862159729, 0.0727890357375145, -0.2152879536151886, 0.21038679778575897, 0.013058125972747803, -0.024865277111530304, 0.2813796401023865, -0.3631693124771118, 0.08441439270973206, -0.00892803817987442, -0.2284812033176422, -0.2832895517349243, -0.14893361926078796, 0.19939668476581573, 0.06301631778478622, 0.18703149259090424, 0.2383003532886505, 0.06289254128932953, 0.10123831033706665, 0.27589476108551025, 0.06764618307352066, -0.3717181384563446, -0.16083331406116486, 0.30609747767448425, -0.21843163669109344, -0.27730661630630493, 0.19123058021068573, 0.00272291898727417, 0.12418641149997711, 0.22165077924728394, -0.5899145007133484, 0.007206093519926071, 0.08572201430797577, 0.3271365165710449, 0.03196396678686142, -0.14620955288410187, 0.23672053217887878, 0.021127264946699142, 0.0012416951358318329, 0.06205946207046509, 0.005653418600559235, -0.12062374502420425, -0.153707355260849, 0.16624169051647186, 0.11402775347232819, 0.20946800708770752, 0.1647176742553711, 0.7836134433746338, 0.08677217364311218, 0.04249592497944832, 0.4263213276863098, -0.18830712139606476, 0.06352774053812027, -0.1462806910276413, -0.09664628654718399, 0.03148466348648071, -0.3452988266944885, -0.2316504716873169, 0.12315410375595093, -0.12100277096033096, -0.3868952989578247, -0.05445395037531853, -0.24508626759052277, -0.25448817014694214, -0.23949283361434937, 0.04457419365644455, -0.03828366473317146, 0.37937307357788086, 0.10441620647907257, -0.16851913928985596, -0.1514849066734314, -0.4425000846385956, -0.02878609672188759, 0.14633110165596008, -0.029247958213090897, -0.036780983209609985, -0.10056650638580322, -0.20292846858501434, -0.5161777138710022, 0.41559311747550964, 0.2859545052051544, 0.11058646440505981, -0.17187534272670746, 0.08782340586185455, 0.4478866755962372, -0.18531793355941772, 0.6596498489379883, -0.17085309326648712, 0.04381224885582924, 0.09848181903362274, 0.18375039100646973, -0.7251461744308472, -0.01941407471895218, 0.14754459261894226, 0.1342766135931015, 0.21531327068805695, -0.11666566878557205, -0.513933002948761, 0.09796446561813354, 0.34409981966018677, 0.3732794225215912, -0.08862792700529099, -0.1792949140071869, -0.1912723183631897, -0.37672728300094604, -0.5138628482818604, -0.16492372751235962, -0.21110114455223083, 0.26830652356147766, -0.02556086890399456, 0.031048789620399475, 0.05038486421108246, 0.20147807896137238, -0.014732185751199722, 0.2821473181247711, 0.28590548038482666, 0.016502059996128082, 0.023509792983531952, 0.09593048691749573, 0.09910349547863007, 0.3470713496208191, 0.3539324402809143, 0.2881975769996643, -0.04237300902605057, -0.08899851143360138, 0.08530094474554062, -0.06381995975971222, 0.18121030926704407, -0.15028707683086395, 0.06661627441644669, -0.0016663353890180588, -0.19786915183067322, -0.07344701886177063, -0.1572471708059311, 0.3747442364692688, -0.22128501534461975, -0.2982095181941986, -0.23898179829120636, 0.7085092663764954, 0.15899038314819336, -0.09604375064373016, 0.12311066687107086, -0.10886916518211365, -0.1373424232006073, 0.3652404844760895, 0.11770637333393097, 0.9276628494262695, -0.1522066593170166, 0.3289300203323364, 0.3286549746990204, -0.039698705077171326, 0.5044326186180115, -0.2825063467025757, 0.1339879333972931, -0.48441076278686523, 0.28564536571502686, -0.010888729244470596, -0.09808209538459778, -0.15467214584350586, 0.031081486493349075, -0.18278290331363678, 0.07330641150474548, -0.22070491313934326, 0.08858859539031982, 0.010632630437612534, 0.3567408323287964, -0.008350832387804985, 0.11068599671125412, -0.08427448570728302, 0.056263770908117294, -0.31955423951148987, 0.25711339712142944, -0.2615232467651367, -0.000958707183599472, 0.09796174615621567, -0.1563696265220642, -0.454454630613327, 0.07854823768138885, -0.18750420212745667, 0.4533359408378601, -0.3069444000720978, -0.318878710269928, 0.017606548964977264, 0.05982537567615509, -0.04116494208574295, -0.09378375858068466, -0.3611283600330353, 0.18094293773174286, -0.2230478674173355, -0.16474027931690216, -0.1060880720615387, 0.07032909244298935, 0.22642487287521362, -0.07054513692855835, -0.4650469124317169, 0.31040695309638977, -0.033190518617630005, -0.26906582713127136, -0.19516633450984955, 0.005617484450340271, 0.07666368782520294, -0.19385090470314026, -0.15716612339019775, -0.25301393866539, -0.11918769776821136, -0.13580845296382904, 0.0734141394495964, -0.12955999374389648, 0.008491843938827515, 0.06465917080640793, 0.06856434047222137, -0.3869737386703491, 0.11556006968021393, 0.47190552949905396, 0.3767467737197876, 0.16866394877433777, 0.6754418015480042, 0.26835209131240845, -0.2663927972316742, -0.013630013912916183, -0.35047274827957153, -0.36113375425338745, -0.39338117837905884, -0.07509686797857285, 0.13296635448932648, 0.46066465973854065, -0.2361183911561966, 0.10578681528568268, 0.15651267766952515, -0.10045499354600906, 0.1289461851119995, -0.46690577268600464, -0.28564801812171936, 0.3458828032016754, -0.15585240721702576, 0.21506556868553162, 0.3333626389503479, 0.1371675431728363, 0.09419381618499756, 0.2817740738391876, -0.20745444297790527, 0.4754825532436371, -0.08086162805557251, 0.36914730072021484, 0.10227310657501221, -0.10451777279376984, -0.16643264889717102, 0.004366666078567505, 0.027808580547571182, 0.07330779731273651, -0.0842074304819107, -0.18736860156059265, -0.059740398079156876, 0.17696475982666016, 0.05953674390912056, -0.2068474143743515, -0.12213313579559326, -0.4088258147239685, 0.0580773763358593, -0.010986685752868652, 0.3590632379055023, 0.10428385436534882, -0.07778845727443695, 0.17337360978126526, 0.18054388463497162, 0.14271610975265503, -0.22898808121681213, 0.3619517683982849, -0.13345079123973846, 0.39572978019714355, 0.26695549488067627, 0.23853811621665955, -0.09472377598285675, -0.012623555958271027, -0.24493762850761414, 0.08050328493118286, 0.11544163525104523, -0.18867862224578857, 0.18522794544696808, -0.2776903510093689, -0.20308861136436462, -0.021379396319389343, 0.01640395075082779, 0.3396818935871124, -0.14176136255264282, -0.05486714467406273, -0.06082100421190262, 0.1005866676568985, -0.2835875451564789, 0.046061836183071136, 0.48524209856987, -0.1776813268661499, -0.2785930335521698, 0.06876280158758163, 0.5847010612487793, -0.04389316588640213, 0.16632290184497833, 0.04665294289588928, 0.2393532693386078, 0.011582231149077415, 0.08544604480266571, 0.22191594541072845, 0.10981959104537964, -0.13774016499519348, 0.05679167062044144, 0.27208513021469116, 0.18669648468494415, 0.45359236001968384, -0.16573765873908997, 0.09753961116075516, -0.19270595908164978, 0.047214653342962265, -0.14114567637443542, -0.3601847290992737, 0.1597554236650467, 0.41208043694496155, 0.13187351822853088, 0.006587602198123932, 0.09148994088172913, 0.3713226914405823, 0.6368663311004639, 0.010278351604938507, -0.048384733498096466, 0.36225590109825134, -0.148677796125412, -0.18041649460792542, -0.29789501428604126, -0.37072187662124634, 0.02853304147720337, 0.15082108974456787, -0.24044977128505707, -0.22331030666828156, 0.2616768181324005, 0.1858803629875183, -0.32082319259643555, -0.6472077965736389, 0.518828272819519, 0.28316423296928406, 0.13512662053108215, -0.22257715463638306, 0.2115808129310608, 0.12484012544155121, -0.07370375841856003, 0.10121610760688782, 0.2894662618637085, 0.65751051902771, 0.32112160325050354, -0.7122470736503601, 0.02416887879371643, -0.15878480672836304, 0.09642946720123291, -0.0956944152712822, -0.025560546666383743, 0.1547430455684662, -0.07263566553592682, 0.21759678423404694, 0.05578363686800003, -0.031337838619947433, -0.1637457013130188, 0.44011086225509644, 0.04797070100903511, -0.2145298719406128, -0.26020336151123047, -0.18675431609153748, -0.21168455481529236, 0.0047944076359272, 0.0889466404914856, -0.37207940220832825, 0.22484806180000305, 0.4339293837547302, 0.00749654695391655, 0.14166763424873352, -0.08619111776351929, 0.03826562315225601, -0.2804441452026367, 0.4323859214782715, 0.24221284687519073, 0.10944598913192749, -0.44534415006637573, -0.2630244493484497, -0.6950755715370178, 0.36192193627357483, -0.42756813764572144, -0.004695989191532135, 0.32819896936416626, 0.18192559480667114, -0.20074667036533356, 0.16651374101638794, 0.07209683954715729, -0.14359617233276367, -0.18510279059410095, 0.3347553014755249, -0.22432321310043335, -0.10521984100341797, -0.12880352139472961, -0.29364854097366333, -0.25168830156326294, -0.3236355483531952, 0.21473664045333862, -0.19497990608215332, -0.04772332310676575, -0.2938644289970398, -0.1443580538034439, 0.13637331128120422, 0.1835707277059555, 0.5083594918251038, 0.08552880585193634, 0.609076201915741, 0.07915744930505753, -0.03096996620297432, -0.20012561976909637, -0.1561918705701828, 0.1780346781015396, 0.29613304138183594, 0.042609717696905136, 0.11947683990001678, -0.09500992298126221, -0.16400611400604248, -0.1698608100414276, 0.5059779286384583, -0.018787287175655365, 0.07610093802213669, -0.0015457496047019958, -0.22567516565322876, 0.012630313634872437, 0.30374372005462646, -0.14142799377441406, 0.18183530867099762, -0.06938503682613373, 0.3124791979789734, -0.2922700047492981, -0.44563695788383484, 0.4373096227645874, -0.42842966318130493, -0.3710169792175293, 0.044043973088264465, 0.12372687458992004, -0.1983819603919983, -0.10032075643539429, -0.3580922484397888, 0.14545664191246033, 0.4109821319580078, -0.016089756041765213, -0.1379518210887909, -0.11225633323192596, -0.08490253984928131, -0.10420822352170944, -0.2067105621099472, 0.031553156673908234, 0.042001936584711075, -0.15446506440639496, -0.3315710127353668, -0.523495614528656 ]
https://github.com/huggingface/datasets/issues/2144
Hi ! It looks like the arrow file in the folder `/usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931` is corrupted. Can you take a look and check that it's 18.3GB ? If not, then maybe you need to redownload it: ```python from datasets import load_dataset ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache', download_mode="force_redownload") ```
Loading wikipedia 20200501.en throws pyarrow related error
**Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0]
46
Loading wikipedia 20200501.en throws pyarrow related error **Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0] Hi ! It looks like the arrow file in the folder `/usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931` is corrupted. Can you take a look and check that it's 18.3GB ? If not, then maybe you need to redownload it: ```python from datasets import load_dataset ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache', download_mode="force_redownload") ```
[ -0.10415421426296234, 0.35264623165130615, 0.03405791521072388, 0.3633102476596832, 0.27457743883132935, 0.180207759141922, 0.2762240171432495, 0.4623250365257263, -0.04348841309547424, -0.11378446221351624, 0.024737529456615448, 0.23602193593978882, 0.1520678699016571, -0.11780165880918503, 0.18410861492156982, -0.16831380128860474, 0.003877118229866028, 0.006880391389131546, 0.08479204773902893, 0.13284464180469513, -0.20012028515338898, 0.11467418819665909, -0.18248629570007324, 0.15551765263080597, -0.5857800245285034, 0.08811640739440918, -0.06601789593696594, 0.05404168367385864, 0.08332427591085434, -0.6138044595718384, 0.3904816806316376, -0.050053659826517105, 0.201091006398201, 0.21213088929653168, -0.00012045968469465151, 0.0749957412481308, 0.4643649458885193, -0.004133157432079315, -0.2960132956504822, -0.0811442956328392, 0.18658001720905304, -0.020505622029304504, 0.31808823347091675, -0.36076971888542175, 0.10087853670120239, -0.28033915162086487, 0.22425945103168488, 0.04719966650009155, 0.18321819603443146, 0.008632726967334747, 0.16828575730323792, -0.1830531656742096, 0.337539404630661, 0.030644133687019348, 0.7112435102462769, -0.13746881484985352, 0.08150562644004822, 0.44246038794517517, 0.12259725481271744, -0.16071557998657227, -0.18643520772457123, 0.23629778623580933, -0.25025784969329834, 0.12030933797359467, 0.26718348264694214, -0.07704312354326248, 0.3848762810230255, -0.20049569010734558, 0.39215338230133057, 0.26795780658721924, 0.7762548327445984, -0.409220427274704, 0.17303316295146942, -0.23131224513053894, -0.03287123143672943, -0.022959358990192413, 0.09382513165473938, 0.2307371199131012, -0.27676916122436523, 0.05453048646450043, 0.15718597173690796, -0.11887119710445404, -0.2609158456325531, 0.30131542682647705, -0.064247727394104, 0.1997208297252655, 0.13993796706199646, 0.39106860756874084, 0.01633521541953087, -0.22688396275043488, 0.0019351840019226074, 0.06326441466808319, 0.1672583818435669, 0.22086429595947266, -0.39311423897743225, 0.10725818574428558, -0.06830291450023651, 0.11390469968318939, 0.37786197662353516, -0.16936174035072327, -0.02159642055630684, 0.0659419447183609, 0.2391711175441742, 0.20646503567695618, 0.4192267060279846, 0.12418514490127563, -0.3237411677837372, -0.2987220883369446, 0.2721664011478424, 0.1988997757434845, -0.25421416759490967, -0.03644156455993652, -0.06121234595775604, -0.11379531770944595, 0.13857287168502808, -0.17098405957221985, 0.42917394638061523, -0.26999130845069885, -0.2205793261528015, 0.11957649886608124, -0.14467929303646088, -0.07156749814748764, -0.1552301049232483, 0.3867202401161194, -0.09167879819869995, 0.2424997091293335, 0.06721031665802002, 0.06223788112401962, -0.18214350938796997, -0.18781429529190063, 0.005754292011260986, 0.11867789924144745, -0.212467223405838, 0.17979350686073303, 0.2939302921295166, -0.1538042575120926, 0.2583543360233307, 0.14352194964885712, -0.15061059594154358, -0.12067631632089615, 0.1700643002986908, 0.013038169592618942, -0.23267275094985962, 0.3098335862159729, 0.007501371204853058, 0.2468719184398651, -0.03289543464779854, -0.14496909081935883, -0.17903411388397217, 0.3182583451271057, -0.2848285436630249, -0.5152555704116821, -0.26225027441978455, 0.12090497463941574, -0.011663194745779037, 0.08445131778717041, 0.1616869568824768, 0.05765434354543686, 0.44134941697120667, -0.5136591792106628, -0.10032309591770172, -0.1257847100496292, -0.18552851676940918, -0.4527531862258911, 0.17063742876052856, 0.336312860250473, -0.5569392442703247, 0.07983218133449554, -0.0507645308971405, 0.08240373432636261, 0.21736714243888855, 0.44500213861465454, -0.22985588014125824, 0.17576611042022705, -0.1654864400625229, 0.19240128993988037, 0.10959122329950333, -0.31215766072273254, -0.5411025285720825, 0.21401339769363403, -0.061286844313144684, 0.19590391218662262, 0.025957845151424408, 0.2906032204627991, 0.009337250143289566, 0.1717621386051178, 0.4052644371986389, 0.24925102293491364, -0.04676474630832672, 0.07879223674535751, -0.408526748418808, -0.3879697024822235, 0.33856332302093506, 0.20166607201099396, -0.004745012149214745, -0.1988982856273651, 0.19682489335536957, 0.3221474885940552, 0.25847968459129333, -0.2035796046257019, 0.12879636883735657, 0.021839313209056854, 0.07051779329776764, -0.01294698566198349, 0.23276646435260773, -0.22382982075214386, -0.4262203276157379, 0.11144572496414185, -0.34314051270484924, -0.02358955517411232, -0.30438679456710815, -0.3612285256385803, -0.5231873393058777, 0.06636932492256165, -0.1714644432067871, -0.2400972992181778, 0.11505021899938583, -0.061333928257226944, 0.09535001218318939, 0.2569481134414673, 0.10278594493865967, -0.0896758884191513, -0.20426636934280396, -0.017557580024003983, -0.40308985114097595, 0.24051633477210999, -0.3087987005710602, -0.17864957451820374, -0.0221906378865242, 0.2451286017894745, 0.324608713388443, 0.10029381513595581, 0.04317522794008255, 0.15584322810173035, 0.14677703380584717, 0.09318707138299942, -0.13243627548217773, -0.017700359225273132, 0.22722642123699188, -0.2668780982494354, 0.2040078043937683, 0.12404444068670273, 0.1868998110294342, -0.22101745009422302, 0.05095268785953522, 0.1322418749332428, -0.0019995267502963543, 0.17187605798244476, -0.08223811537027359, -0.07122443616390228, 0.157029390335083, -0.0034191161394119263, 0.39678436517715454, -0.1355210244655609, 0.25990328192710876, 0.47115999460220337, 0.04300195723772049, 0.10370759665966034, -0.00577487051486969, 0.010361067950725555, 0.11434586346149445, -0.0471607968211174, 0.15312211215496063, 0.1461278349161148, -0.34166181087493896, -0.2851566672325134, 0.2188829481601715, -0.144235759973526, 0.07827391475439072, 0.09371292591094971, 0.02806950733065605, 0.13984842598438263, -0.06898078322410583, -0.19510307908058167, 0.1316024363040924, -0.11788006126880646, 0.45907241106033325, 0.3100675642490387, 0.30289003252983093, -0.029343929141759872, -0.37656670808792114, 0.059394754469394684, 0.08311399817466736, 0.3793654143810272, -0.3040895462036133, 0.07948898524045944, -0.17133212089538574, -0.24345973134040833, -0.07726651430130005, -0.013045009225606918, -0.2915111482143402, -0.3173149824142456, 0.08157074451446533, 0.5144318342208862, 0.03286819905042648, 0.009986113756895065, -0.05400306358933449, -0.04803508520126343, 0.07968860119581223, -0.13089101016521454, -0.050506342202425, -0.7057314515113831, -0.38591158390045166, 0.005147457122802734, 0.2574864327907562, -0.13397957384586334, 0.2502463161945343, -0.025403745472431183, -0.19274702668190002, -0.3766914904117584, -0.551348090171814, -0.0036724358797073364, -0.11040541529655457, 0.3178441524505615, 0.01763313077390194, 0.3957710862159729, 0.0727890357375145, -0.2152879536151886, 0.21038679778575897, 0.013058125972747803, -0.024865277111530304, 0.2813796401023865, -0.3631693124771118, 0.08441439270973206, -0.00892803817987442, -0.2284812033176422, -0.2832895517349243, -0.14893361926078796, 0.19939668476581573, 0.06301631778478622, 0.18703149259090424, 0.2383003532886505, 0.06289254128932953, 0.10123831033706665, 0.27589476108551025, 0.06764618307352066, -0.3717181384563446, -0.16083331406116486, 0.30609747767448425, -0.21843163669109344, -0.27730661630630493, 0.19123058021068573, 0.00272291898727417, 0.12418641149997711, 0.22165077924728394, -0.5899145007133484, 0.007206093519926071, 0.08572201430797577, 0.3271365165710449, 0.03196396678686142, -0.14620955288410187, 0.23672053217887878, 0.021127264946699142, 0.0012416951358318329, 0.06205946207046509, 0.005653418600559235, -0.12062374502420425, -0.153707355260849, 0.16624169051647186, 0.11402775347232819, 0.20946800708770752, 0.1647176742553711, 0.7836134433746338, 0.08677217364311218, 0.04249592497944832, 0.4263213276863098, -0.18830712139606476, 0.06352774053812027, -0.1462806910276413, -0.09664628654718399, 0.03148466348648071, -0.3452988266944885, -0.2316504716873169, 0.12315410375595093, -0.12100277096033096, -0.3868952989578247, -0.05445395037531853, -0.24508626759052277, -0.25448817014694214, -0.23949283361434937, 0.04457419365644455, -0.03828366473317146, 0.37937307357788086, 0.10441620647907257, -0.16851913928985596, -0.1514849066734314, -0.4425000846385956, -0.02878609672188759, 0.14633110165596008, -0.029247958213090897, -0.036780983209609985, -0.10056650638580322, -0.20292846858501434, -0.5161777138710022, 0.41559311747550964, 0.2859545052051544, 0.11058646440505981, -0.17187534272670746, 0.08782340586185455, 0.4478866755962372, -0.18531793355941772, 0.6596498489379883, -0.17085309326648712, 0.04381224885582924, 0.09848181903362274, 0.18375039100646973, -0.7251461744308472, -0.01941407471895218, 0.14754459261894226, 0.1342766135931015, 0.21531327068805695, -0.11666566878557205, -0.513933002948761, 0.09796446561813354, 0.34409981966018677, 0.3732794225215912, -0.08862792700529099, -0.1792949140071869, -0.1912723183631897, -0.37672728300094604, -0.5138628482818604, -0.16492372751235962, -0.21110114455223083, 0.26830652356147766, -0.02556086890399456, 0.031048789620399475, 0.05038486421108246, 0.20147807896137238, -0.014732185751199722, 0.2821473181247711, 0.28590548038482666, 0.016502059996128082, 0.023509792983531952, 0.09593048691749573, 0.09910349547863007, 0.3470713496208191, 0.3539324402809143, 0.2881975769996643, -0.04237300902605057, -0.08899851143360138, 0.08530094474554062, -0.06381995975971222, 0.18121030926704407, -0.15028707683086395, 0.06661627441644669, -0.0016663353890180588, -0.19786915183067322, -0.07344701886177063, -0.1572471708059311, 0.3747442364692688, -0.22128501534461975, -0.2982095181941986, -0.23898179829120636, 0.7085092663764954, 0.15899038314819336, -0.09604375064373016, 0.12311066687107086, -0.10886916518211365, -0.1373424232006073, 0.3652404844760895, 0.11770637333393097, 0.9276628494262695, -0.1522066593170166, 0.3289300203323364, 0.3286549746990204, -0.039698705077171326, 0.5044326186180115, -0.2825063467025757, 0.1339879333972931, -0.48441076278686523, 0.28564536571502686, -0.010888729244470596, -0.09808209538459778, -0.15467214584350586, 0.031081486493349075, -0.18278290331363678, 0.07330641150474548, -0.22070491313934326, 0.08858859539031982, 0.010632630437612534, 0.3567408323287964, -0.008350832387804985, 0.11068599671125412, -0.08427448570728302, 0.056263770908117294, -0.31955423951148987, 0.25711339712142944, -0.2615232467651367, -0.000958707183599472, 0.09796174615621567, -0.1563696265220642, -0.454454630613327, 0.07854823768138885, -0.18750420212745667, 0.4533359408378601, -0.3069444000720978, -0.318878710269928, 0.017606548964977264, 0.05982537567615509, -0.04116494208574295, -0.09378375858068466, -0.3611283600330353, 0.18094293773174286, -0.2230478674173355, -0.16474027931690216, -0.1060880720615387, 0.07032909244298935, 0.22642487287521362, -0.07054513692855835, -0.4650469124317169, 0.31040695309638977, -0.033190518617630005, -0.26906582713127136, -0.19516633450984955, 0.005617484450340271, 0.07666368782520294, -0.19385090470314026, -0.15716612339019775, -0.25301393866539, -0.11918769776821136, -0.13580845296382904, 0.0734141394495964, -0.12955999374389648, 0.008491843938827515, 0.06465917080640793, 0.06856434047222137, -0.3869737386703491, 0.11556006968021393, 0.47190552949905396, 0.3767467737197876, 0.16866394877433777, 0.6754418015480042, 0.26835209131240845, -0.2663927972316742, -0.013630013912916183, -0.35047274827957153, -0.36113375425338745, -0.39338117837905884, -0.07509686797857285, 0.13296635448932648, 0.46066465973854065, -0.2361183911561966, 0.10578681528568268, 0.15651267766952515, -0.10045499354600906, 0.1289461851119995, -0.46690577268600464, -0.28564801812171936, 0.3458828032016754, -0.15585240721702576, 0.21506556868553162, 0.3333626389503479, 0.1371675431728363, 0.09419381618499756, 0.2817740738391876, -0.20745444297790527, 0.4754825532436371, -0.08086162805557251, 0.36914730072021484, 0.10227310657501221, -0.10451777279376984, -0.16643264889717102, 0.004366666078567505, 0.027808580547571182, 0.07330779731273651, -0.0842074304819107, -0.18736860156059265, -0.059740398079156876, 0.17696475982666016, 0.05953674390912056, -0.2068474143743515, -0.12213313579559326, -0.4088258147239685, 0.0580773763358593, -0.010986685752868652, 0.3590632379055023, 0.10428385436534882, -0.07778845727443695, 0.17337360978126526, 0.18054388463497162, 0.14271610975265503, -0.22898808121681213, 0.3619517683982849, -0.13345079123973846, 0.39572978019714355, 0.26695549488067627, 0.23853811621665955, -0.09472377598285675, -0.012623555958271027, -0.24493762850761414, 0.08050328493118286, 0.11544163525104523, -0.18867862224578857, 0.18522794544696808, -0.2776903510093689, -0.20308861136436462, -0.021379396319389343, 0.01640395075082779, 0.3396818935871124, -0.14176136255264282, -0.05486714467406273, -0.06082100421190262, 0.1005866676568985, -0.2835875451564789, 0.046061836183071136, 0.48524209856987, -0.1776813268661499, -0.2785930335521698, 0.06876280158758163, 0.5847010612487793, -0.04389316588640213, 0.16632290184497833, 0.04665294289588928, 0.2393532693386078, 0.011582231149077415, 0.08544604480266571, 0.22191594541072845, 0.10981959104537964, -0.13774016499519348, 0.05679167062044144, 0.27208513021469116, 0.18669648468494415, 0.45359236001968384, -0.16573765873908997, 0.09753961116075516, -0.19270595908164978, 0.047214653342962265, -0.14114567637443542, -0.3601847290992737, 0.1597554236650467, 0.41208043694496155, 0.13187351822853088, 0.006587602198123932, 0.09148994088172913, 0.3713226914405823, 0.6368663311004639, 0.010278351604938507, -0.048384733498096466, 0.36225590109825134, -0.148677796125412, -0.18041649460792542, -0.29789501428604126, -0.37072187662124634, 0.02853304147720337, 0.15082108974456787, -0.24044977128505707, -0.22331030666828156, 0.2616768181324005, 0.1858803629875183, -0.32082319259643555, -0.6472077965736389, 0.518828272819519, 0.28316423296928406, 0.13512662053108215, -0.22257715463638306, 0.2115808129310608, 0.12484012544155121, -0.07370375841856003, 0.10121610760688782, 0.2894662618637085, 0.65751051902771, 0.32112160325050354, -0.7122470736503601, 0.02416887879371643, -0.15878480672836304, 0.09642946720123291, -0.0956944152712822, -0.025560546666383743, 0.1547430455684662, -0.07263566553592682, 0.21759678423404694, 0.05578363686800003, -0.031337838619947433, -0.1637457013130188, 0.44011086225509644, 0.04797070100903511, -0.2145298719406128, -0.26020336151123047, -0.18675431609153748, -0.21168455481529236, 0.0047944076359272, 0.0889466404914856, -0.37207940220832825, 0.22484806180000305, 0.4339293837547302, 0.00749654695391655, 0.14166763424873352, -0.08619111776351929, 0.03826562315225601, -0.2804441452026367, 0.4323859214782715, 0.24221284687519073, 0.10944598913192749, -0.44534415006637573, -0.2630244493484497, -0.6950755715370178, 0.36192193627357483, -0.42756813764572144, -0.004695989191532135, 0.32819896936416626, 0.18192559480667114, -0.20074667036533356, 0.16651374101638794, 0.07209683954715729, -0.14359617233276367, -0.18510279059410095, 0.3347553014755249, -0.22432321310043335, -0.10521984100341797, -0.12880352139472961, -0.29364854097366333, -0.25168830156326294, -0.3236355483531952, 0.21473664045333862, -0.19497990608215332, -0.04772332310676575, -0.2938644289970398, -0.1443580538034439, 0.13637331128120422, 0.1835707277059555, 0.5083594918251038, 0.08552880585193634, 0.609076201915741, 0.07915744930505753, -0.03096996620297432, -0.20012561976909637, -0.1561918705701828, 0.1780346781015396, 0.29613304138183594, 0.042609717696905136, 0.11947683990001678, -0.09500992298126221, -0.16400611400604248, -0.1698608100414276, 0.5059779286384583, -0.018787287175655365, 0.07610093802213669, -0.0015457496047019958, -0.22567516565322876, 0.012630313634872437, 0.30374372005462646, -0.14142799377441406, 0.18183530867099762, -0.06938503682613373, 0.3124791979789734, -0.2922700047492981, -0.44563695788383484, 0.4373096227645874, -0.42842966318130493, -0.3710169792175293, 0.044043973088264465, 0.12372687458992004, -0.1983819603919983, -0.10032075643539429, -0.3580922484397888, 0.14545664191246033, 0.4109821319580078, -0.016089756041765213, -0.1379518210887909, -0.11225633323192596, -0.08490253984928131, -0.10420822352170944, -0.2067105621099472, 0.031553156673908234, 0.042001936584711075, -0.15446506440639496, -0.3315710127353668, -0.523495614528656 ]
https://github.com/huggingface/datasets/issues/2144
> Hi ! It looks like the arrow file in the folder > `/usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931` is corrupted. > > Can you take a look and check that it's 18.3GB ? > > If not, then maybe you need to redownload it: > > ```python > from datasets import load_dataset > ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache', download_mode="force_redownload") > ``` Hi Ihoestq, thanks for the reply! Actually i think my issue is i couldn't download the dataset beyond 10.7G. It feels like the whole dataset is split into different volumes and after the first one was downloaded it crashed before proceeding to the next one. I did try 'force_redownload' mode but still got the same issue.
Loading wikipedia 20200501.en throws pyarrow related error
**Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0]
113
Loading wikipedia 20200501.en throws pyarrow related error **Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0] > Hi ! It looks like the arrow file in the folder > `/usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931` is corrupted. > > Can you take a look and check that it's 18.3GB ? > > If not, then maybe you need to redownload it: > > ```python > from datasets import load_dataset > ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache', download_mode="force_redownload") > ``` Hi Ihoestq, thanks for the reply! Actually i think my issue is i couldn't download the dataset beyond 10.7G. It feels like the whole dataset is split into different volumes and after the first one was downloaded it crashed before proceeding to the next one. I did try 'force_redownload' mode but still got the same issue.
[ -0.10415421426296234, 0.35264623165130615, 0.03405791521072388, 0.3633102476596832, 0.27457743883132935, 0.180207759141922, 0.2762240171432495, 0.4623250365257263, -0.04348841309547424, -0.11378446221351624, 0.024737529456615448, 0.23602193593978882, 0.1520678699016571, -0.11780165880918503, 0.18410861492156982, -0.16831380128860474, 0.003877118229866028, 0.006880391389131546, 0.08479204773902893, 0.13284464180469513, -0.20012028515338898, 0.11467418819665909, -0.18248629570007324, 0.15551765263080597, -0.5857800245285034, 0.08811640739440918, -0.06601789593696594, 0.05404168367385864, 0.08332427591085434, -0.6138044595718384, 0.3904816806316376, -0.050053659826517105, 0.201091006398201, 0.21213088929653168, -0.00012045968469465151, 0.0749957412481308, 0.4643649458885193, -0.004133157432079315, -0.2960132956504822, -0.0811442956328392, 0.18658001720905304, -0.020505622029304504, 0.31808823347091675, -0.36076971888542175, 0.10087853670120239, -0.28033915162086487, 0.22425945103168488, 0.04719966650009155, 0.18321819603443146, 0.008632726967334747, 0.16828575730323792, -0.1830531656742096, 0.337539404630661, 0.030644133687019348, 0.7112435102462769, -0.13746881484985352, 0.08150562644004822, 0.44246038794517517, 0.12259725481271744, -0.16071557998657227, -0.18643520772457123, 0.23629778623580933, -0.25025784969329834, 0.12030933797359467, 0.26718348264694214, -0.07704312354326248, 0.3848762810230255, -0.20049569010734558, 0.39215338230133057, 0.26795780658721924, 0.7762548327445984, -0.409220427274704, 0.17303316295146942, -0.23131224513053894, -0.03287123143672943, -0.022959358990192413, 0.09382513165473938, 0.2307371199131012, -0.27676916122436523, 0.05453048646450043, 0.15718597173690796, -0.11887119710445404, -0.2609158456325531, 0.30131542682647705, -0.064247727394104, 0.1997208297252655, 0.13993796706199646, 0.39106860756874084, 0.01633521541953087, -0.22688396275043488, 0.0019351840019226074, 0.06326441466808319, 0.1672583818435669, 0.22086429595947266, -0.39311423897743225, 0.10725818574428558, -0.06830291450023651, 0.11390469968318939, 0.37786197662353516, -0.16936174035072327, -0.02159642055630684, 0.0659419447183609, 0.2391711175441742, 0.20646503567695618, 0.4192267060279846, 0.12418514490127563, -0.3237411677837372, -0.2987220883369446, 0.2721664011478424, 0.1988997757434845, -0.25421416759490967, -0.03644156455993652, -0.06121234595775604, -0.11379531770944595, 0.13857287168502808, -0.17098405957221985, 0.42917394638061523, -0.26999130845069885, -0.2205793261528015, 0.11957649886608124, -0.14467929303646088, -0.07156749814748764, -0.1552301049232483, 0.3867202401161194, -0.09167879819869995, 0.2424997091293335, 0.06721031665802002, 0.06223788112401962, -0.18214350938796997, -0.18781429529190063, 0.005754292011260986, 0.11867789924144745, -0.212467223405838, 0.17979350686073303, 0.2939302921295166, -0.1538042575120926, 0.2583543360233307, 0.14352194964885712, -0.15061059594154358, -0.12067631632089615, 0.1700643002986908, 0.013038169592618942, -0.23267275094985962, 0.3098335862159729, 0.007501371204853058, 0.2468719184398651, -0.03289543464779854, -0.14496909081935883, -0.17903411388397217, 0.3182583451271057, -0.2848285436630249, -0.5152555704116821, -0.26225027441978455, 0.12090497463941574, -0.011663194745779037, 0.08445131778717041, 0.1616869568824768, 0.05765434354543686, 0.44134941697120667, -0.5136591792106628, -0.10032309591770172, -0.1257847100496292, -0.18552851676940918, -0.4527531862258911, 0.17063742876052856, 0.336312860250473, -0.5569392442703247, 0.07983218133449554, -0.0507645308971405, 0.08240373432636261, 0.21736714243888855, 0.44500213861465454, -0.22985588014125824, 0.17576611042022705, -0.1654864400625229, 0.19240128993988037, 0.10959122329950333, -0.31215766072273254, -0.5411025285720825, 0.21401339769363403, -0.061286844313144684, 0.19590391218662262, 0.025957845151424408, 0.2906032204627991, 0.009337250143289566, 0.1717621386051178, 0.4052644371986389, 0.24925102293491364, -0.04676474630832672, 0.07879223674535751, -0.408526748418808, -0.3879697024822235, 0.33856332302093506, 0.20166607201099396, -0.004745012149214745, -0.1988982856273651, 0.19682489335536957, 0.3221474885940552, 0.25847968459129333, -0.2035796046257019, 0.12879636883735657, 0.021839313209056854, 0.07051779329776764, -0.01294698566198349, 0.23276646435260773, -0.22382982075214386, -0.4262203276157379, 0.11144572496414185, -0.34314051270484924, -0.02358955517411232, -0.30438679456710815, -0.3612285256385803, -0.5231873393058777, 0.06636932492256165, -0.1714644432067871, -0.2400972992181778, 0.11505021899938583, -0.061333928257226944, 0.09535001218318939, 0.2569481134414673, 0.10278594493865967, -0.0896758884191513, -0.20426636934280396, -0.017557580024003983, -0.40308985114097595, 0.24051633477210999, -0.3087987005710602, -0.17864957451820374, -0.0221906378865242, 0.2451286017894745, 0.324608713388443, 0.10029381513595581, 0.04317522794008255, 0.15584322810173035, 0.14677703380584717, 0.09318707138299942, -0.13243627548217773, -0.017700359225273132, 0.22722642123699188, -0.2668780982494354, 0.2040078043937683, 0.12404444068670273, 0.1868998110294342, -0.22101745009422302, 0.05095268785953522, 0.1322418749332428, -0.0019995267502963543, 0.17187605798244476, -0.08223811537027359, -0.07122443616390228, 0.157029390335083, -0.0034191161394119263, 0.39678436517715454, -0.1355210244655609, 0.25990328192710876, 0.47115999460220337, 0.04300195723772049, 0.10370759665966034, -0.00577487051486969, 0.010361067950725555, 0.11434586346149445, -0.0471607968211174, 0.15312211215496063, 0.1461278349161148, -0.34166181087493896, -0.2851566672325134, 0.2188829481601715, -0.144235759973526, 0.07827391475439072, 0.09371292591094971, 0.02806950733065605, 0.13984842598438263, -0.06898078322410583, -0.19510307908058167, 0.1316024363040924, -0.11788006126880646, 0.45907241106033325, 0.3100675642490387, 0.30289003252983093, -0.029343929141759872, -0.37656670808792114, 0.059394754469394684, 0.08311399817466736, 0.3793654143810272, -0.3040895462036133, 0.07948898524045944, -0.17133212089538574, -0.24345973134040833, -0.07726651430130005, -0.013045009225606918, -0.2915111482143402, -0.3173149824142456, 0.08157074451446533, 0.5144318342208862, 0.03286819905042648, 0.009986113756895065, -0.05400306358933449, -0.04803508520126343, 0.07968860119581223, -0.13089101016521454, -0.050506342202425, -0.7057314515113831, -0.38591158390045166, 0.005147457122802734, 0.2574864327907562, -0.13397957384586334, 0.2502463161945343, -0.025403745472431183, -0.19274702668190002, -0.3766914904117584, -0.551348090171814, -0.0036724358797073364, -0.11040541529655457, 0.3178441524505615, 0.01763313077390194, 0.3957710862159729, 0.0727890357375145, -0.2152879536151886, 0.21038679778575897, 0.013058125972747803, -0.024865277111530304, 0.2813796401023865, -0.3631693124771118, 0.08441439270973206, -0.00892803817987442, -0.2284812033176422, -0.2832895517349243, -0.14893361926078796, 0.19939668476581573, 0.06301631778478622, 0.18703149259090424, 0.2383003532886505, 0.06289254128932953, 0.10123831033706665, 0.27589476108551025, 0.06764618307352066, -0.3717181384563446, -0.16083331406116486, 0.30609747767448425, -0.21843163669109344, -0.27730661630630493, 0.19123058021068573, 0.00272291898727417, 0.12418641149997711, 0.22165077924728394, -0.5899145007133484, 0.007206093519926071, 0.08572201430797577, 0.3271365165710449, 0.03196396678686142, -0.14620955288410187, 0.23672053217887878, 0.021127264946699142, 0.0012416951358318329, 0.06205946207046509, 0.005653418600559235, -0.12062374502420425, -0.153707355260849, 0.16624169051647186, 0.11402775347232819, 0.20946800708770752, 0.1647176742553711, 0.7836134433746338, 0.08677217364311218, 0.04249592497944832, 0.4263213276863098, -0.18830712139606476, 0.06352774053812027, -0.1462806910276413, -0.09664628654718399, 0.03148466348648071, -0.3452988266944885, -0.2316504716873169, 0.12315410375595093, -0.12100277096033096, -0.3868952989578247, -0.05445395037531853, -0.24508626759052277, -0.25448817014694214, -0.23949283361434937, 0.04457419365644455, -0.03828366473317146, 0.37937307357788086, 0.10441620647907257, -0.16851913928985596, -0.1514849066734314, -0.4425000846385956, -0.02878609672188759, 0.14633110165596008, -0.029247958213090897, -0.036780983209609985, -0.10056650638580322, -0.20292846858501434, -0.5161777138710022, 0.41559311747550964, 0.2859545052051544, 0.11058646440505981, -0.17187534272670746, 0.08782340586185455, 0.4478866755962372, -0.18531793355941772, 0.6596498489379883, -0.17085309326648712, 0.04381224885582924, 0.09848181903362274, 0.18375039100646973, -0.7251461744308472, -0.01941407471895218, 0.14754459261894226, 0.1342766135931015, 0.21531327068805695, -0.11666566878557205, -0.513933002948761, 0.09796446561813354, 0.34409981966018677, 0.3732794225215912, -0.08862792700529099, -0.1792949140071869, -0.1912723183631897, -0.37672728300094604, -0.5138628482818604, -0.16492372751235962, -0.21110114455223083, 0.26830652356147766, -0.02556086890399456, 0.031048789620399475, 0.05038486421108246, 0.20147807896137238, -0.014732185751199722, 0.2821473181247711, 0.28590548038482666, 0.016502059996128082, 0.023509792983531952, 0.09593048691749573, 0.09910349547863007, 0.3470713496208191, 0.3539324402809143, 0.2881975769996643, -0.04237300902605057, -0.08899851143360138, 0.08530094474554062, -0.06381995975971222, 0.18121030926704407, -0.15028707683086395, 0.06661627441644669, -0.0016663353890180588, -0.19786915183067322, -0.07344701886177063, -0.1572471708059311, 0.3747442364692688, -0.22128501534461975, -0.2982095181941986, -0.23898179829120636, 0.7085092663764954, 0.15899038314819336, -0.09604375064373016, 0.12311066687107086, -0.10886916518211365, -0.1373424232006073, 0.3652404844760895, 0.11770637333393097, 0.9276628494262695, -0.1522066593170166, 0.3289300203323364, 0.3286549746990204, -0.039698705077171326, 0.5044326186180115, -0.2825063467025757, 0.1339879333972931, -0.48441076278686523, 0.28564536571502686, -0.010888729244470596, -0.09808209538459778, -0.15467214584350586, 0.031081486493349075, -0.18278290331363678, 0.07330641150474548, -0.22070491313934326, 0.08858859539031982, 0.010632630437612534, 0.3567408323287964, -0.008350832387804985, 0.11068599671125412, -0.08427448570728302, 0.056263770908117294, -0.31955423951148987, 0.25711339712142944, -0.2615232467651367, -0.000958707183599472, 0.09796174615621567, -0.1563696265220642, -0.454454630613327, 0.07854823768138885, -0.18750420212745667, 0.4533359408378601, -0.3069444000720978, -0.318878710269928, 0.017606548964977264, 0.05982537567615509, -0.04116494208574295, -0.09378375858068466, -0.3611283600330353, 0.18094293773174286, -0.2230478674173355, -0.16474027931690216, -0.1060880720615387, 0.07032909244298935, 0.22642487287521362, -0.07054513692855835, -0.4650469124317169, 0.31040695309638977, -0.033190518617630005, -0.26906582713127136, -0.19516633450984955, 0.005617484450340271, 0.07666368782520294, -0.19385090470314026, -0.15716612339019775, -0.25301393866539, -0.11918769776821136, -0.13580845296382904, 0.0734141394495964, -0.12955999374389648, 0.008491843938827515, 0.06465917080640793, 0.06856434047222137, -0.3869737386703491, 0.11556006968021393, 0.47190552949905396, 0.3767467737197876, 0.16866394877433777, 0.6754418015480042, 0.26835209131240845, -0.2663927972316742, -0.013630013912916183, -0.35047274827957153, -0.36113375425338745, -0.39338117837905884, -0.07509686797857285, 0.13296635448932648, 0.46066465973854065, -0.2361183911561966, 0.10578681528568268, 0.15651267766952515, -0.10045499354600906, 0.1289461851119995, -0.46690577268600464, -0.28564801812171936, 0.3458828032016754, -0.15585240721702576, 0.21506556868553162, 0.3333626389503479, 0.1371675431728363, 0.09419381618499756, 0.2817740738391876, -0.20745444297790527, 0.4754825532436371, -0.08086162805557251, 0.36914730072021484, 0.10227310657501221, -0.10451777279376984, -0.16643264889717102, 0.004366666078567505, 0.027808580547571182, 0.07330779731273651, -0.0842074304819107, -0.18736860156059265, -0.059740398079156876, 0.17696475982666016, 0.05953674390912056, -0.2068474143743515, -0.12213313579559326, -0.4088258147239685, 0.0580773763358593, -0.010986685752868652, 0.3590632379055023, 0.10428385436534882, -0.07778845727443695, 0.17337360978126526, 0.18054388463497162, 0.14271610975265503, -0.22898808121681213, 0.3619517683982849, -0.13345079123973846, 0.39572978019714355, 0.26695549488067627, 0.23853811621665955, -0.09472377598285675, -0.012623555958271027, -0.24493762850761414, 0.08050328493118286, 0.11544163525104523, -0.18867862224578857, 0.18522794544696808, -0.2776903510093689, -0.20308861136436462, -0.021379396319389343, 0.01640395075082779, 0.3396818935871124, -0.14176136255264282, -0.05486714467406273, -0.06082100421190262, 0.1005866676568985, -0.2835875451564789, 0.046061836183071136, 0.48524209856987, -0.1776813268661499, -0.2785930335521698, 0.06876280158758163, 0.5847010612487793, -0.04389316588640213, 0.16632290184497833, 0.04665294289588928, 0.2393532693386078, 0.011582231149077415, 0.08544604480266571, 0.22191594541072845, 0.10981959104537964, -0.13774016499519348, 0.05679167062044144, 0.27208513021469116, 0.18669648468494415, 0.45359236001968384, -0.16573765873908997, 0.09753961116075516, -0.19270595908164978, 0.047214653342962265, -0.14114567637443542, -0.3601847290992737, 0.1597554236650467, 0.41208043694496155, 0.13187351822853088, 0.006587602198123932, 0.09148994088172913, 0.3713226914405823, 0.6368663311004639, 0.010278351604938507, -0.048384733498096466, 0.36225590109825134, -0.148677796125412, -0.18041649460792542, -0.29789501428604126, -0.37072187662124634, 0.02853304147720337, 0.15082108974456787, -0.24044977128505707, -0.22331030666828156, 0.2616768181324005, 0.1858803629875183, -0.32082319259643555, -0.6472077965736389, 0.518828272819519, 0.28316423296928406, 0.13512662053108215, -0.22257715463638306, 0.2115808129310608, 0.12484012544155121, -0.07370375841856003, 0.10121610760688782, 0.2894662618637085, 0.65751051902771, 0.32112160325050354, -0.7122470736503601, 0.02416887879371643, -0.15878480672836304, 0.09642946720123291, -0.0956944152712822, -0.025560546666383743, 0.1547430455684662, -0.07263566553592682, 0.21759678423404694, 0.05578363686800003, -0.031337838619947433, -0.1637457013130188, 0.44011086225509644, 0.04797070100903511, -0.2145298719406128, -0.26020336151123047, -0.18675431609153748, -0.21168455481529236, 0.0047944076359272, 0.0889466404914856, -0.37207940220832825, 0.22484806180000305, 0.4339293837547302, 0.00749654695391655, 0.14166763424873352, -0.08619111776351929, 0.03826562315225601, -0.2804441452026367, 0.4323859214782715, 0.24221284687519073, 0.10944598913192749, -0.44534415006637573, -0.2630244493484497, -0.6950755715370178, 0.36192193627357483, -0.42756813764572144, -0.004695989191532135, 0.32819896936416626, 0.18192559480667114, -0.20074667036533356, 0.16651374101638794, 0.07209683954715729, -0.14359617233276367, -0.18510279059410095, 0.3347553014755249, -0.22432321310043335, -0.10521984100341797, -0.12880352139472961, -0.29364854097366333, -0.25168830156326294, -0.3236355483531952, 0.21473664045333862, -0.19497990608215332, -0.04772332310676575, -0.2938644289970398, -0.1443580538034439, 0.13637331128120422, 0.1835707277059555, 0.5083594918251038, 0.08552880585193634, 0.609076201915741, 0.07915744930505753, -0.03096996620297432, -0.20012561976909637, -0.1561918705701828, 0.1780346781015396, 0.29613304138183594, 0.042609717696905136, 0.11947683990001678, -0.09500992298126221, -0.16400611400604248, -0.1698608100414276, 0.5059779286384583, -0.018787287175655365, 0.07610093802213669, -0.0015457496047019958, -0.22567516565322876, 0.012630313634872437, 0.30374372005462646, -0.14142799377441406, 0.18183530867099762, -0.06938503682613373, 0.3124791979789734, -0.2922700047492981, -0.44563695788383484, 0.4373096227645874, -0.42842966318130493, -0.3710169792175293, 0.044043973088264465, 0.12372687458992004, -0.1983819603919983, -0.10032075643539429, -0.3580922484397888, 0.14545664191246033, 0.4109821319580078, -0.016089756041765213, -0.1379518210887909, -0.11225633323192596, -0.08490253984928131, -0.10420822352170944, -0.2067105621099472, 0.031553156673908234, 0.042001936584711075, -0.15446506440639496, -0.3315710127353668, -0.523495614528656 ]
https://github.com/huggingface/datasets/issues/2144
I just tried on my side and got no issues. When downloading the dataset again, did it crash at 10.7GB as well ?
Loading wikipedia 20200501.en throws pyarrow related error
**Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0]
23
Loading wikipedia 20200501.en throws pyarrow related error **Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0] I just tried on my side and got no issues. When downloading the dataset again, did it crash at 10.7GB as well ?
[ -0.10415421426296234, 0.35264623165130615, 0.03405791521072388, 0.3633102476596832, 0.27457743883132935, 0.180207759141922, 0.2762240171432495, 0.4623250365257263, -0.04348841309547424, -0.11378446221351624, 0.024737529456615448, 0.23602193593978882, 0.1520678699016571, -0.11780165880918503, 0.18410861492156982, -0.16831380128860474, 0.003877118229866028, 0.006880391389131546, 0.08479204773902893, 0.13284464180469513, -0.20012028515338898, 0.11467418819665909, -0.18248629570007324, 0.15551765263080597, -0.5857800245285034, 0.08811640739440918, -0.06601789593696594, 0.05404168367385864, 0.08332427591085434, -0.6138044595718384, 0.3904816806316376, -0.050053659826517105, 0.201091006398201, 0.21213088929653168, -0.00012045968469465151, 0.0749957412481308, 0.4643649458885193, -0.004133157432079315, -0.2960132956504822, -0.0811442956328392, 0.18658001720905304, -0.020505622029304504, 0.31808823347091675, -0.36076971888542175, 0.10087853670120239, -0.28033915162086487, 0.22425945103168488, 0.04719966650009155, 0.18321819603443146, 0.008632726967334747, 0.16828575730323792, -0.1830531656742096, 0.337539404630661, 0.030644133687019348, 0.7112435102462769, -0.13746881484985352, 0.08150562644004822, 0.44246038794517517, 0.12259725481271744, -0.16071557998657227, -0.18643520772457123, 0.23629778623580933, -0.25025784969329834, 0.12030933797359467, 0.26718348264694214, -0.07704312354326248, 0.3848762810230255, -0.20049569010734558, 0.39215338230133057, 0.26795780658721924, 0.7762548327445984, -0.409220427274704, 0.17303316295146942, -0.23131224513053894, -0.03287123143672943, -0.022959358990192413, 0.09382513165473938, 0.2307371199131012, -0.27676916122436523, 0.05453048646450043, 0.15718597173690796, -0.11887119710445404, -0.2609158456325531, 0.30131542682647705, -0.064247727394104, 0.1997208297252655, 0.13993796706199646, 0.39106860756874084, 0.01633521541953087, -0.22688396275043488, 0.0019351840019226074, 0.06326441466808319, 0.1672583818435669, 0.22086429595947266, -0.39311423897743225, 0.10725818574428558, -0.06830291450023651, 0.11390469968318939, 0.37786197662353516, -0.16936174035072327, -0.02159642055630684, 0.0659419447183609, 0.2391711175441742, 0.20646503567695618, 0.4192267060279846, 0.12418514490127563, -0.3237411677837372, -0.2987220883369446, 0.2721664011478424, 0.1988997757434845, -0.25421416759490967, -0.03644156455993652, -0.06121234595775604, -0.11379531770944595, 0.13857287168502808, -0.17098405957221985, 0.42917394638061523, -0.26999130845069885, -0.2205793261528015, 0.11957649886608124, -0.14467929303646088, -0.07156749814748764, -0.1552301049232483, 0.3867202401161194, -0.09167879819869995, 0.2424997091293335, 0.06721031665802002, 0.06223788112401962, -0.18214350938796997, -0.18781429529190063, 0.005754292011260986, 0.11867789924144745, -0.212467223405838, 0.17979350686073303, 0.2939302921295166, -0.1538042575120926, 0.2583543360233307, 0.14352194964885712, -0.15061059594154358, -0.12067631632089615, 0.1700643002986908, 0.013038169592618942, -0.23267275094985962, 0.3098335862159729, 0.007501371204853058, 0.2468719184398651, -0.03289543464779854, -0.14496909081935883, -0.17903411388397217, 0.3182583451271057, -0.2848285436630249, -0.5152555704116821, -0.26225027441978455, 0.12090497463941574, -0.011663194745779037, 0.08445131778717041, 0.1616869568824768, 0.05765434354543686, 0.44134941697120667, -0.5136591792106628, -0.10032309591770172, -0.1257847100496292, -0.18552851676940918, -0.4527531862258911, 0.17063742876052856, 0.336312860250473, -0.5569392442703247, 0.07983218133449554, -0.0507645308971405, 0.08240373432636261, 0.21736714243888855, 0.44500213861465454, -0.22985588014125824, 0.17576611042022705, -0.1654864400625229, 0.19240128993988037, 0.10959122329950333, -0.31215766072273254, -0.5411025285720825, 0.21401339769363403, -0.061286844313144684, 0.19590391218662262, 0.025957845151424408, 0.2906032204627991, 0.009337250143289566, 0.1717621386051178, 0.4052644371986389, 0.24925102293491364, -0.04676474630832672, 0.07879223674535751, -0.408526748418808, -0.3879697024822235, 0.33856332302093506, 0.20166607201099396, -0.004745012149214745, -0.1988982856273651, 0.19682489335536957, 0.3221474885940552, 0.25847968459129333, -0.2035796046257019, 0.12879636883735657, 0.021839313209056854, 0.07051779329776764, -0.01294698566198349, 0.23276646435260773, -0.22382982075214386, -0.4262203276157379, 0.11144572496414185, -0.34314051270484924, -0.02358955517411232, -0.30438679456710815, -0.3612285256385803, -0.5231873393058777, 0.06636932492256165, -0.1714644432067871, -0.2400972992181778, 0.11505021899938583, -0.061333928257226944, 0.09535001218318939, 0.2569481134414673, 0.10278594493865967, -0.0896758884191513, -0.20426636934280396, -0.017557580024003983, -0.40308985114097595, 0.24051633477210999, -0.3087987005710602, -0.17864957451820374, -0.0221906378865242, 0.2451286017894745, 0.324608713388443, 0.10029381513595581, 0.04317522794008255, 0.15584322810173035, 0.14677703380584717, 0.09318707138299942, -0.13243627548217773, -0.017700359225273132, 0.22722642123699188, -0.2668780982494354, 0.2040078043937683, 0.12404444068670273, 0.1868998110294342, -0.22101745009422302, 0.05095268785953522, 0.1322418749332428, -0.0019995267502963543, 0.17187605798244476, -0.08223811537027359, -0.07122443616390228, 0.157029390335083, -0.0034191161394119263, 0.39678436517715454, -0.1355210244655609, 0.25990328192710876, 0.47115999460220337, 0.04300195723772049, 0.10370759665966034, -0.00577487051486969, 0.010361067950725555, 0.11434586346149445, -0.0471607968211174, 0.15312211215496063, 0.1461278349161148, -0.34166181087493896, -0.2851566672325134, 0.2188829481601715, -0.144235759973526, 0.07827391475439072, 0.09371292591094971, 0.02806950733065605, 0.13984842598438263, -0.06898078322410583, -0.19510307908058167, 0.1316024363040924, -0.11788006126880646, 0.45907241106033325, 0.3100675642490387, 0.30289003252983093, -0.029343929141759872, -0.37656670808792114, 0.059394754469394684, 0.08311399817466736, 0.3793654143810272, -0.3040895462036133, 0.07948898524045944, -0.17133212089538574, -0.24345973134040833, -0.07726651430130005, -0.013045009225606918, -0.2915111482143402, -0.3173149824142456, 0.08157074451446533, 0.5144318342208862, 0.03286819905042648, 0.009986113756895065, -0.05400306358933449, -0.04803508520126343, 0.07968860119581223, -0.13089101016521454, -0.050506342202425, -0.7057314515113831, -0.38591158390045166, 0.005147457122802734, 0.2574864327907562, -0.13397957384586334, 0.2502463161945343, -0.025403745472431183, -0.19274702668190002, -0.3766914904117584, -0.551348090171814, -0.0036724358797073364, -0.11040541529655457, 0.3178441524505615, 0.01763313077390194, 0.3957710862159729, 0.0727890357375145, -0.2152879536151886, 0.21038679778575897, 0.013058125972747803, -0.024865277111530304, 0.2813796401023865, -0.3631693124771118, 0.08441439270973206, -0.00892803817987442, -0.2284812033176422, -0.2832895517349243, -0.14893361926078796, 0.19939668476581573, 0.06301631778478622, 0.18703149259090424, 0.2383003532886505, 0.06289254128932953, 0.10123831033706665, 0.27589476108551025, 0.06764618307352066, -0.3717181384563446, -0.16083331406116486, 0.30609747767448425, -0.21843163669109344, -0.27730661630630493, 0.19123058021068573, 0.00272291898727417, 0.12418641149997711, 0.22165077924728394, -0.5899145007133484, 0.007206093519926071, 0.08572201430797577, 0.3271365165710449, 0.03196396678686142, -0.14620955288410187, 0.23672053217887878, 0.021127264946699142, 0.0012416951358318329, 0.06205946207046509, 0.005653418600559235, -0.12062374502420425, -0.153707355260849, 0.16624169051647186, 0.11402775347232819, 0.20946800708770752, 0.1647176742553711, 0.7836134433746338, 0.08677217364311218, 0.04249592497944832, 0.4263213276863098, -0.18830712139606476, 0.06352774053812027, -0.1462806910276413, -0.09664628654718399, 0.03148466348648071, -0.3452988266944885, -0.2316504716873169, 0.12315410375595093, -0.12100277096033096, -0.3868952989578247, -0.05445395037531853, -0.24508626759052277, -0.25448817014694214, -0.23949283361434937, 0.04457419365644455, -0.03828366473317146, 0.37937307357788086, 0.10441620647907257, -0.16851913928985596, -0.1514849066734314, -0.4425000846385956, -0.02878609672188759, 0.14633110165596008, -0.029247958213090897, -0.036780983209609985, -0.10056650638580322, -0.20292846858501434, -0.5161777138710022, 0.41559311747550964, 0.2859545052051544, 0.11058646440505981, -0.17187534272670746, 0.08782340586185455, 0.4478866755962372, -0.18531793355941772, 0.6596498489379883, -0.17085309326648712, 0.04381224885582924, 0.09848181903362274, 0.18375039100646973, -0.7251461744308472, -0.01941407471895218, 0.14754459261894226, 0.1342766135931015, 0.21531327068805695, -0.11666566878557205, -0.513933002948761, 0.09796446561813354, 0.34409981966018677, 0.3732794225215912, -0.08862792700529099, -0.1792949140071869, -0.1912723183631897, -0.37672728300094604, -0.5138628482818604, -0.16492372751235962, -0.21110114455223083, 0.26830652356147766, -0.02556086890399456, 0.031048789620399475, 0.05038486421108246, 0.20147807896137238, -0.014732185751199722, 0.2821473181247711, 0.28590548038482666, 0.016502059996128082, 0.023509792983531952, 0.09593048691749573, 0.09910349547863007, 0.3470713496208191, 0.3539324402809143, 0.2881975769996643, -0.04237300902605057, -0.08899851143360138, 0.08530094474554062, -0.06381995975971222, 0.18121030926704407, -0.15028707683086395, 0.06661627441644669, -0.0016663353890180588, -0.19786915183067322, -0.07344701886177063, -0.1572471708059311, 0.3747442364692688, -0.22128501534461975, -0.2982095181941986, -0.23898179829120636, 0.7085092663764954, 0.15899038314819336, -0.09604375064373016, 0.12311066687107086, -0.10886916518211365, -0.1373424232006073, 0.3652404844760895, 0.11770637333393097, 0.9276628494262695, -0.1522066593170166, 0.3289300203323364, 0.3286549746990204, -0.039698705077171326, 0.5044326186180115, -0.2825063467025757, 0.1339879333972931, -0.48441076278686523, 0.28564536571502686, -0.010888729244470596, -0.09808209538459778, -0.15467214584350586, 0.031081486493349075, -0.18278290331363678, 0.07330641150474548, -0.22070491313934326, 0.08858859539031982, 0.010632630437612534, 0.3567408323287964, -0.008350832387804985, 0.11068599671125412, -0.08427448570728302, 0.056263770908117294, -0.31955423951148987, 0.25711339712142944, -0.2615232467651367, -0.000958707183599472, 0.09796174615621567, -0.1563696265220642, -0.454454630613327, 0.07854823768138885, -0.18750420212745667, 0.4533359408378601, -0.3069444000720978, -0.318878710269928, 0.017606548964977264, 0.05982537567615509, -0.04116494208574295, -0.09378375858068466, -0.3611283600330353, 0.18094293773174286, -0.2230478674173355, -0.16474027931690216, -0.1060880720615387, 0.07032909244298935, 0.22642487287521362, -0.07054513692855835, -0.4650469124317169, 0.31040695309638977, -0.033190518617630005, -0.26906582713127136, -0.19516633450984955, 0.005617484450340271, 0.07666368782520294, -0.19385090470314026, -0.15716612339019775, -0.25301393866539, -0.11918769776821136, -0.13580845296382904, 0.0734141394495964, -0.12955999374389648, 0.008491843938827515, 0.06465917080640793, 0.06856434047222137, -0.3869737386703491, 0.11556006968021393, 0.47190552949905396, 0.3767467737197876, 0.16866394877433777, 0.6754418015480042, 0.26835209131240845, -0.2663927972316742, -0.013630013912916183, -0.35047274827957153, -0.36113375425338745, -0.39338117837905884, -0.07509686797857285, 0.13296635448932648, 0.46066465973854065, -0.2361183911561966, 0.10578681528568268, 0.15651267766952515, -0.10045499354600906, 0.1289461851119995, -0.46690577268600464, -0.28564801812171936, 0.3458828032016754, -0.15585240721702576, 0.21506556868553162, 0.3333626389503479, 0.1371675431728363, 0.09419381618499756, 0.2817740738391876, -0.20745444297790527, 0.4754825532436371, -0.08086162805557251, 0.36914730072021484, 0.10227310657501221, -0.10451777279376984, -0.16643264889717102, 0.004366666078567505, 0.027808580547571182, 0.07330779731273651, -0.0842074304819107, -0.18736860156059265, -0.059740398079156876, 0.17696475982666016, 0.05953674390912056, -0.2068474143743515, -0.12213313579559326, -0.4088258147239685, 0.0580773763358593, -0.010986685752868652, 0.3590632379055023, 0.10428385436534882, -0.07778845727443695, 0.17337360978126526, 0.18054388463497162, 0.14271610975265503, -0.22898808121681213, 0.3619517683982849, -0.13345079123973846, 0.39572978019714355, 0.26695549488067627, 0.23853811621665955, -0.09472377598285675, -0.012623555958271027, -0.24493762850761414, 0.08050328493118286, 0.11544163525104523, -0.18867862224578857, 0.18522794544696808, -0.2776903510093689, -0.20308861136436462, -0.021379396319389343, 0.01640395075082779, 0.3396818935871124, -0.14176136255264282, -0.05486714467406273, -0.06082100421190262, 0.1005866676568985, -0.2835875451564789, 0.046061836183071136, 0.48524209856987, -0.1776813268661499, -0.2785930335521698, 0.06876280158758163, 0.5847010612487793, -0.04389316588640213, 0.16632290184497833, 0.04665294289588928, 0.2393532693386078, 0.011582231149077415, 0.08544604480266571, 0.22191594541072845, 0.10981959104537964, -0.13774016499519348, 0.05679167062044144, 0.27208513021469116, 0.18669648468494415, 0.45359236001968384, -0.16573765873908997, 0.09753961116075516, -0.19270595908164978, 0.047214653342962265, -0.14114567637443542, -0.3601847290992737, 0.1597554236650467, 0.41208043694496155, 0.13187351822853088, 0.006587602198123932, 0.09148994088172913, 0.3713226914405823, 0.6368663311004639, 0.010278351604938507, -0.048384733498096466, 0.36225590109825134, -0.148677796125412, -0.18041649460792542, -0.29789501428604126, -0.37072187662124634, 0.02853304147720337, 0.15082108974456787, -0.24044977128505707, -0.22331030666828156, 0.2616768181324005, 0.1858803629875183, -0.32082319259643555, -0.6472077965736389, 0.518828272819519, 0.28316423296928406, 0.13512662053108215, -0.22257715463638306, 0.2115808129310608, 0.12484012544155121, -0.07370375841856003, 0.10121610760688782, 0.2894662618637085, 0.65751051902771, 0.32112160325050354, -0.7122470736503601, 0.02416887879371643, -0.15878480672836304, 0.09642946720123291, -0.0956944152712822, -0.025560546666383743, 0.1547430455684662, -0.07263566553592682, 0.21759678423404694, 0.05578363686800003, -0.031337838619947433, -0.1637457013130188, 0.44011086225509644, 0.04797070100903511, -0.2145298719406128, -0.26020336151123047, -0.18675431609153748, -0.21168455481529236, 0.0047944076359272, 0.0889466404914856, -0.37207940220832825, 0.22484806180000305, 0.4339293837547302, 0.00749654695391655, 0.14166763424873352, -0.08619111776351929, 0.03826562315225601, -0.2804441452026367, 0.4323859214782715, 0.24221284687519073, 0.10944598913192749, -0.44534415006637573, -0.2630244493484497, -0.6950755715370178, 0.36192193627357483, -0.42756813764572144, -0.004695989191532135, 0.32819896936416626, 0.18192559480667114, -0.20074667036533356, 0.16651374101638794, 0.07209683954715729, -0.14359617233276367, -0.18510279059410095, 0.3347553014755249, -0.22432321310043335, -0.10521984100341797, -0.12880352139472961, -0.29364854097366333, -0.25168830156326294, -0.3236355483531952, 0.21473664045333862, -0.19497990608215332, -0.04772332310676575, -0.2938644289970398, -0.1443580538034439, 0.13637331128120422, 0.1835707277059555, 0.5083594918251038, 0.08552880585193634, 0.609076201915741, 0.07915744930505753, -0.03096996620297432, -0.20012561976909637, -0.1561918705701828, 0.1780346781015396, 0.29613304138183594, 0.042609717696905136, 0.11947683990001678, -0.09500992298126221, -0.16400611400604248, -0.1698608100414276, 0.5059779286384583, -0.018787287175655365, 0.07610093802213669, -0.0015457496047019958, -0.22567516565322876, 0.012630313634872437, 0.30374372005462646, -0.14142799377441406, 0.18183530867099762, -0.06938503682613373, 0.3124791979789734, -0.2922700047492981, -0.44563695788383484, 0.4373096227645874, -0.42842966318130493, -0.3710169792175293, 0.044043973088264465, 0.12372687458992004, -0.1983819603919983, -0.10032075643539429, -0.3580922484397888, 0.14545664191246033, 0.4109821319580078, -0.016089756041765213, -0.1379518210887909, -0.11225633323192596, -0.08490253984928131, -0.10420822352170944, -0.2067105621099472, 0.031553156673908234, 0.042001936584711075, -0.15446506440639496, -0.3315710127353668, -0.523495614528656 ]
https://github.com/huggingface/datasets/issues/2144
> I just tried on my side and got no issues. > When downloading the dataset again, did it crash at 10.7GB as well ? Yes i have tried it multiple times on different machines. I am wondering if you could share the screenshot of your dependency versions and i will try to make them the same as yours?
Loading wikipedia 20200501.en throws pyarrow related error
**Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0]
59
Loading wikipedia 20200501.en throws pyarrow related error **Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0] > I just tried on my side and got no issues. > When downloading the dataset again, did it crash at 10.7GB as well ? Yes i have tried it multiple times on different machines. I am wondering if you could share the screenshot of your dependency versions and i will try to make them the same as yours?
[ -0.10415421426296234, 0.35264623165130615, 0.03405791521072388, 0.3633102476596832, 0.27457743883132935, 0.180207759141922, 0.2762240171432495, 0.4623250365257263, -0.04348841309547424, -0.11378446221351624, 0.024737529456615448, 0.23602193593978882, 0.1520678699016571, -0.11780165880918503, 0.18410861492156982, -0.16831380128860474, 0.003877118229866028, 0.006880391389131546, 0.08479204773902893, 0.13284464180469513, -0.20012028515338898, 0.11467418819665909, -0.18248629570007324, 0.15551765263080597, -0.5857800245285034, 0.08811640739440918, -0.06601789593696594, 0.05404168367385864, 0.08332427591085434, -0.6138044595718384, 0.3904816806316376, -0.050053659826517105, 0.201091006398201, 0.21213088929653168, -0.00012045968469465151, 0.0749957412481308, 0.4643649458885193, -0.004133157432079315, -0.2960132956504822, -0.0811442956328392, 0.18658001720905304, -0.020505622029304504, 0.31808823347091675, -0.36076971888542175, 0.10087853670120239, -0.28033915162086487, 0.22425945103168488, 0.04719966650009155, 0.18321819603443146, 0.008632726967334747, 0.16828575730323792, -0.1830531656742096, 0.337539404630661, 0.030644133687019348, 0.7112435102462769, -0.13746881484985352, 0.08150562644004822, 0.44246038794517517, 0.12259725481271744, -0.16071557998657227, -0.18643520772457123, 0.23629778623580933, -0.25025784969329834, 0.12030933797359467, 0.26718348264694214, -0.07704312354326248, 0.3848762810230255, -0.20049569010734558, 0.39215338230133057, 0.26795780658721924, 0.7762548327445984, -0.409220427274704, 0.17303316295146942, -0.23131224513053894, -0.03287123143672943, -0.022959358990192413, 0.09382513165473938, 0.2307371199131012, -0.27676916122436523, 0.05453048646450043, 0.15718597173690796, -0.11887119710445404, -0.2609158456325531, 0.30131542682647705, -0.064247727394104, 0.1997208297252655, 0.13993796706199646, 0.39106860756874084, 0.01633521541953087, -0.22688396275043488, 0.0019351840019226074, 0.06326441466808319, 0.1672583818435669, 0.22086429595947266, -0.39311423897743225, 0.10725818574428558, -0.06830291450023651, 0.11390469968318939, 0.37786197662353516, -0.16936174035072327, -0.02159642055630684, 0.0659419447183609, 0.2391711175441742, 0.20646503567695618, 0.4192267060279846, 0.12418514490127563, -0.3237411677837372, -0.2987220883369446, 0.2721664011478424, 0.1988997757434845, -0.25421416759490967, -0.03644156455993652, -0.06121234595775604, -0.11379531770944595, 0.13857287168502808, -0.17098405957221985, 0.42917394638061523, -0.26999130845069885, -0.2205793261528015, 0.11957649886608124, -0.14467929303646088, -0.07156749814748764, -0.1552301049232483, 0.3867202401161194, -0.09167879819869995, 0.2424997091293335, 0.06721031665802002, 0.06223788112401962, -0.18214350938796997, -0.18781429529190063, 0.005754292011260986, 0.11867789924144745, -0.212467223405838, 0.17979350686073303, 0.2939302921295166, -0.1538042575120926, 0.2583543360233307, 0.14352194964885712, -0.15061059594154358, -0.12067631632089615, 0.1700643002986908, 0.013038169592618942, -0.23267275094985962, 0.3098335862159729, 0.007501371204853058, 0.2468719184398651, -0.03289543464779854, -0.14496909081935883, -0.17903411388397217, 0.3182583451271057, -0.2848285436630249, -0.5152555704116821, -0.26225027441978455, 0.12090497463941574, -0.011663194745779037, 0.08445131778717041, 0.1616869568824768, 0.05765434354543686, 0.44134941697120667, -0.5136591792106628, -0.10032309591770172, -0.1257847100496292, -0.18552851676940918, -0.4527531862258911, 0.17063742876052856, 0.336312860250473, -0.5569392442703247, 0.07983218133449554, -0.0507645308971405, 0.08240373432636261, 0.21736714243888855, 0.44500213861465454, -0.22985588014125824, 0.17576611042022705, -0.1654864400625229, 0.19240128993988037, 0.10959122329950333, -0.31215766072273254, -0.5411025285720825, 0.21401339769363403, -0.061286844313144684, 0.19590391218662262, 0.025957845151424408, 0.2906032204627991, 0.009337250143289566, 0.1717621386051178, 0.4052644371986389, 0.24925102293491364, -0.04676474630832672, 0.07879223674535751, -0.408526748418808, -0.3879697024822235, 0.33856332302093506, 0.20166607201099396, -0.004745012149214745, -0.1988982856273651, 0.19682489335536957, 0.3221474885940552, 0.25847968459129333, -0.2035796046257019, 0.12879636883735657, 0.021839313209056854, 0.07051779329776764, -0.01294698566198349, 0.23276646435260773, -0.22382982075214386, -0.4262203276157379, 0.11144572496414185, -0.34314051270484924, -0.02358955517411232, -0.30438679456710815, -0.3612285256385803, -0.5231873393058777, 0.06636932492256165, -0.1714644432067871, -0.2400972992181778, 0.11505021899938583, -0.061333928257226944, 0.09535001218318939, 0.2569481134414673, 0.10278594493865967, -0.0896758884191513, -0.20426636934280396, -0.017557580024003983, -0.40308985114097595, 0.24051633477210999, -0.3087987005710602, -0.17864957451820374, -0.0221906378865242, 0.2451286017894745, 0.324608713388443, 0.10029381513595581, 0.04317522794008255, 0.15584322810173035, 0.14677703380584717, 0.09318707138299942, -0.13243627548217773, -0.017700359225273132, 0.22722642123699188, -0.2668780982494354, 0.2040078043937683, 0.12404444068670273, 0.1868998110294342, -0.22101745009422302, 0.05095268785953522, 0.1322418749332428, -0.0019995267502963543, 0.17187605798244476, -0.08223811537027359, -0.07122443616390228, 0.157029390335083, -0.0034191161394119263, 0.39678436517715454, -0.1355210244655609, 0.25990328192710876, 0.47115999460220337, 0.04300195723772049, 0.10370759665966034, -0.00577487051486969, 0.010361067950725555, 0.11434586346149445, -0.0471607968211174, 0.15312211215496063, 0.1461278349161148, -0.34166181087493896, -0.2851566672325134, 0.2188829481601715, -0.144235759973526, 0.07827391475439072, 0.09371292591094971, 0.02806950733065605, 0.13984842598438263, -0.06898078322410583, -0.19510307908058167, 0.1316024363040924, -0.11788006126880646, 0.45907241106033325, 0.3100675642490387, 0.30289003252983093, -0.029343929141759872, -0.37656670808792114, 0.059394754469394684, 0.08311399817466736, 0.3793654143810272, -0.3040895462036133, 0.07948898524045944, -0.17133212089538574, -0.24345973134040833, -0.07726651430130005, -0.013045009225606918, -0.2915111482143402, -0.3173149824142456, 0.08157074451446533, 0.5144318342208862, 0.03286819905042648, 0.009986113756895065, -0.05400306358933449, -0.04803508520126343, 0.07968860119581223, -0.13089101016521454, -0.050506342202425, -0.7057314515113831, -0.38591158390045166, 0.005147457122802734, 0.2574864327907562, -0.13397957384586334, 0.2502463161945343, -0.025403745472431183, -0.19274702668190002, -0.3766914904117584, -0.551348090171814, -0.0036724358797073364, -0.11040541529655457, 0.3178441524505615, 0.01763313077390194, 0.3957710862159729, 0.0727890357375145, -0.2152879536151886, 0.21038679778575897, 0.013058125972747803, -0.024865277111530304, 0.2813796401023865, -0.3631693124771118, 0.08441439270973206, -0.00892803817987442, -0.2284812033176422, -0.2832895517349243, -0.14893361926078796, 0.19939668476581573, 0.06301631778478622, 0.18703149259090424, 0.2383003532886505, 0.06289254128932953, 0.10123831033706665, 0.27589476108551025, 0.06764618307352066, -0.3717181384563446, -0.16083331406116486, 0.30609747767448425, -0.21843163669109344, -0.27730661630630493, 0.19123058021068573, 0.00272291898727417, 0.12418641149997711, 0.22165077924728394, -0.5899145007133484, 0.007206093519926071, 0.08572201430797577, 0.3271365165710449, 0.03196396678686142, -0.14620955288410187, 0.23672053217887878, 0.021127264946699142, 0.0012416951358318329, 0.06205946207046509, 0.005653418600559235, -0.12062374502420425, -0.153707355260849, 0.16624169051647186, 0.11402775347232819, 0.20946800708770752, 0.1647176742553711, 0.7836134433746338, 0.08677217364311218, 0.04249592497944832, 0.4263213276863098, -0.18830712139606476, 0.06352774053812027, -0.1462806910276413, -0.09664628654718399, 0.03148466348648071, -0.3452988266944885, -0.2316504716873169, 0.12315410375595093, -0.12100277096033096, -0.3868952989578247, -0.05445395037531853, -0.24508626759052277, -0.25448817014694214, -0.23949283361434937, 0.04457419365644455, -0.03828366473317146, 0.37937307357788086, 0.10441620647907257, -0.16851913928985596, -0.1514849066734314, -0.4425000846385956, -0.02878609672188759, 0.14633110165596008, -0.029247958213090897, -0.036780983209609985, -0.10056650638580322, -0.20292846858501434, -0.5161777138710022, 0.41559311747550964, 0.2859545052051544, 0.11058646440505981, -0.17187534272670746, 0.08782340586185455, 0.4478866755962372, -0.18531793355941772, 0.6596498489379883, -0.17085309326648712, 0.04381224885582924, 0.09848181903362274, 0.18375039100646973, -0.7251461744308472, -0.01941407471895218, 0.14754459261894226, 0.1342766135931015, 0.21531327068805695, -0.11666566878557205, -0.513933002948761, 0.09796446561813354, 0.34409981966018677, 0.3732794225215912, -0.08862792700529099, -0.1792949140071869, -0.1912723183631897, -0.37672728300094604, -0.5138628482818604, -0.16492372751235962, -0.21110114455223083, 0.26830652356147766, -0.02556086890399456, 0.031048789620399475, 0.05038486421108246, 0.20147807896137238, -0.014732185751199722, 0.2821473181247711, 0.28590548038482666, 0.016502059996128082, 0.023509792983531952, 0.09593048691749573, 0.09910349547863007, 0.3470713496208191, 0.3539324402809143, 0.2881975769996643, -0.04237300902605057, -0.08899851143360138, 0.08530094474554062, -0.06381995975971222, 0.18121030926704407, -0.15028707683086395, 0.06661627441644669, -0.0016663353890180588, -0.19786915183067322, -0.07344701886177063, -0.1572471708059311, 0.3747442364692688, -0.22128501534461975, -0.2982095181941986, -0.23898179829120636, 0.7085092663764954, 0.15899038314819336, -0.09604375064373016, 0.12311066687107086, -0.10886916518211365, -0.1373424232006073, 0.3652404844760895, 0.11770637333393097, 0.9276628494262695, -0.1522066593170166, 0.3289300203323364, 0.3286549746990204, -0.039698705077171326, 0.5044326186180115, -0.2825063467025757, 0.1339879333972931, -0.48441076278686523, 0.28564536571502686, -0.010888729244470596, -0.09808209538459778, -0.15467214584350586, 0.031081486493349075, -0.18278290331363678, 0.07330641150474548, -0.22070491313934326, 0.08858859539031982, 0.010632630437612534, 0.3567408323287964, -0.008350832387804985, 0.11068599671125412, -0.08427448570728302, 0.056263770908117294, -0.31955423951148987, 0.25711339712142944, -0.2615232467651367, -0.000958707183599472, 0.09796174615621567, -0.1563696265220642, -0.454454630613327, 0.07854823768138885, -0.18750420212745667, 0.4533359408378601, -0.3069444000720978, -0.318878710269928, 0.017606548964977264, 0.05982537567615509, -0.04116494208574295, -0.09378375858068466, -0.3611283600330353, 0.18094293773174286, -0.2230478674173355, -0.16474027931690216, -0.1060880720615387, 0.07032909244298935, 0.22642487287521362, -0.07054513692855835, -0.4650469124317169, 0.31040695309638977, -0.033190518617630005, -0.26906582713127136, -0.19516633450984955, 0.005617484450340271, 0.07666368782520294, -0.19385090470314026, -0.15716612339019775, -0.25301393866539, -0.11918769776821136, -0.13580845296382904, 0.0734141394495964, -0.12955999374389648, 0.008491843938827515, 0.06465917080640793, 0.06856434047222137, -0.3869737386703491, 0.11556006968021393, 0.47190552949905396, 0.3767467737197876, 0.16866394877433777, 0.6754418015480042, 0.26835209131240845, -0.2663927972316742, -0.013630013912916183, -0.35047274827957153, -0.36113375425338745, -0.39338117837905884, -0.07509686797857285, 0.13296635448932648, 0.46066465973854065, -0.2361183911561966, 0.10578681528568268, 0.15651267766952515, -0.10045499354600906, 0.1289461851119995, -0.46690577268600464, -0.28564801812171936, 0.3458828032016754, -0.15585240721702576, 0.21506556868553162, 0.3333626389503479, 0.1371675431728363, 0.09419381618499756, 0.2817740738391876, -0.20745444297790527, 0.4754825532436371, -0.08086162805557251, 0.36914730072021484, 0.10227310657501221, -0.10451777279376984, -0.16643264889717102, 0.004366666078567505, 0.027808580547571182, 0.07330779731273651, -0.0842074304819107, -0.18736860156059265, -0.059740398079156876, 0.17696475982666016, 0.05953674390912056, -0.2068474143743515, -0.12213313579559326, -0.4088258147239685, 0.0580773763358593, -0.010986685752868652, 0.3590632379055023, 0.10428385436534882, -0.07778845727443695, 0.17337360978126526, 0.18054388463497162, 0.14271610975265503, -0.22898808121681213, 0.3619517683982849, -0.13345079123973846, 0.39572978019714355, 0.26695549488067627, 0.23853811621665955, -0.09472377598285675, -0.012623555958271027, -0.24493762850761414, 0.08050328493118286, 0.11544163525104523, -0.18867862224578857, 0.18522794544696808, -0.2776903510093689, -0.20308861136436462, -0.021379396319389343, 0.01640395075082779, 0.3396818935871124, -0.14176136255264282, -0.05486714467406273, -0.06082100421190262, 0.1005866676568985, -0.2835875451564789, 0.046061836183071136, 0.48524209856987, -0.1776813268661499, -0.2785930335521698, 0.06876280158758163, 0.5847010612487793, -0.04389316588640213, 0.16632290184497833, 0.04665294289588928, 0.2393532693386078, 0.011582231149077415, 0.08544604480266571, 0.22191594541072845, 0.10981959104537964, -0.13774016499519348, 0.05679167062044144, 0.27208513021469116, 0.18669648468494415, 0.45359236001968384, -0.16573765873908997, 0.09753961116075516, -0.19270595908164978, 0.047214653342962265, -0.14114567637443542, -0.3601847290992737, 0.1597554236650467, 0.41208043694496155, 0.13187351822853088, 0.006587602198123932, 0.09148994088172913, 0.3713226914405823, 0.6368663311004639, 0.010278351604938507, -0.048384733498096466, 0.36225590109825134, -0.148677796125412, -0.18041649460792542, -0.29789501428604126, -0.37072187662124634, 0.02853304147720337, 0.15082108974456787, -0.24044977128505707, -0.22331030666828156, 0.2616768181324005, 0.1858803629875183, -0.32082319259643555, -0.6472077965736389, 0.518828272819519, 0.28316423296928406, 0.13512662053108215, -0.22257715463638306, 0.2115808129310608, 0.12484012544155121, -0.07370375841856003, 0.10121610760688782, 0.2894662618637085, 0.65751051902771, 0.32112160325050354, -0.7122470736503601, 0.02416887879371643, -0.15878480672836304, 0.09642946720123291, -0.0956944152712822, -0.025560546666383743, 0.1547430455684662, -0.07263566553592682, 0.21759678423404694, 0.05578363686800003, -0.031337838619947433, -0.1637457013130188, 0.44011086225509644, 0.04797070100903511, -0.2145298719406128, -0.26020336151123047, -0.18675431609153748, -0.21168455481529236, 0.0047944076359272, 0.0889466404914856, -0.37207940220832825, 0.22484806180000305, 0.4339293837547302, 0.00749654695391655, 0.14166763424873352, -0.08619111776351929, 0.03826562315225601, -0.2804441452026367, 0.4323859214782715, 0.24221284687519073, 0.10944598913192749, -0.44534415006637573, -0.2630244493484497, -0.6950755715370178, 0.36192193627357483, -0.42756813764572144, -0.004695989191532135, 0.32819896936416626, 0.18192559480667114, -0.20074667036533356, 0.16651374101638794, 0.07209683954715729, -0.14359617233276367, -0.18510279059410095, 0.3347553014755249, -0.22432321310043335, -0.10521984100341797, -0.12880352139472961, -0.29364854097366333, -0.25168830156326294, -0.3236355483531952, 0.21473664045333862, -0.19497990608215332, -0.04772332310676575, -0.2938644289970398, -0.1443580538034439, 0.13637331128120422, 0.1835707277059555, 0.5083594918251038, 0.08552880585193634, 0.609076201915741, 0.07915744930505753, -0.03096996620297432, -0.20012561976909637, -0.1561918705701828, 0.1780346781015396, 0.29613304138183594, 0.042609717696905136, 0.11947683990001678, -0.09500992298126221, -0.16400611400604248, -0.1698608100414276, 0.5059779286384583, -0.018787287175655365, 0.07610093802213669, -0.0015457496047019958, -0.22567516565322876, 0.012630313634872437, 0.30374372005462646, -0.14142799377441406, 0.18183530867099762, -0.06938503682613373, 0.3124791979789734, -0.2922700047492981, -0.44563695788383484, 0.4373096227645874, -0.42842966318130493, -0.3710169792175293, 0.044043973088264465, 0.12372687458992004, -0.1983819603919983, -0.10032075643539429, -0.3580922484397888, 0.14545664191246033, 0.4109821319580078, -0.016089756041765213, -0.1379518210887909, -0.11225633323192596, -0.08490253984928131, -0.10420822352170944, -0.2067105621099472, 0.031553156673908234, 0.042001936584711075, -0.15446506440639496, -0.3315710127353668, -0.523495614528656 ]
https://github.com/huggingface/datasets/issues/2144
I tried using `datasets` from `master` on macos with python 3.7.2 I also have `requests==2.23.0` and `tqdm==4.45.0`.
Loading wikipedia 20200501.en throws pyarrow related error
**Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0]
17
Loading wikipedia 20200501.en throws pyarrow related error **Problem description** I am getting the following error when trying to load wikipedia/20200501.en dataset. **Error log** Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, post-processed: Unknown size, total: 34.06 GiB) to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931... Downloading: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 14.6k/14.6k [00:00<00:00, 5.41MB/s] Downloading: 59%|███████████████████████████████████████████████████████████████████████████████████████▊ | 10.7G/18.3G [11:30<08:08, 15.5MB/s] Dataset wikipedia downloaded and prepared to /usr/local/workspace/NAS_NLP/cache/wikipedia/20200501.en/1.0.0/50aa706aa417bb77d910ad61211cc672c0ef3e0f224225a5e0a18277ade8b931. Subsequent calls will reuse this data. Traceback (most recent call last): File "load_wiki.py", line 2, in <module> ds = load_dataset('wikipedia', '20200501.en', cache_dir='/usr/local/workspace/NAS_NLP/cache') File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 751, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 746, in as_dataset map_tuple=True, File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in map_nested _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 763, in _build_single_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/builder.py", line 835, in _as_dataset in_memory=in_memory, File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 215, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 236, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 171, in _read_files pa_table: pa.Table = self._get_dataset_from_filename(f_dict, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 302, in _get_dataset_from_filename pa_table = ArrowReader.read_table(filename, in_memory=in_memory) File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 324, in read_table pa_table = f.read_all() File "pyarrow/ipc.pxi", line 544, in pyarrow.lib.RecordBatchReader.read_all File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Expected to be able to read 9176784 bytes for message body, got 4918712 **Detailed version info** datasets==1.5.0 - dataclasses [required: Any, installed: 0.8] - dill [required: Any, installed: 0.3.3] - fsspec [required: Any, installed: 0.8.7] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - huggingface-hub [required: <0.1.0, installed: 0.0.7] - filelock [required: Any, installed: 3.0.12] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - requests [required: Any, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: Any, installed: 4.49.0] - importlib-metadata [required: Any, installed: 1.7.0] - zipp [required: >=0.5, installed: 3.1.0] - multiprocess [required: Any, installed: 0.70.11.1] - dill [required: >=0.3.3, installed: 0.3.3] - numpy [required: >=1.17, installed: 1.17.0] - pandas [required: Any, installed: 1.1.5] - numpy [required: >=1.15.4, installed: 1.17.0] - python-dateutil [required: >=2.7.3, installed: 2.8.0] - six [required: >=1.5, installed: 1.15.0] - pytz [required: >=2017.2, installed: 2020.1] - pyarrow [required: >=0.17.1, installed: 3.0.0] - numpy [required: >=1.16.6, installed: 1.17.0] - requests [required: >=2.19.0, installed: 2.24.0] - certifi [required: >=2017.4.17, installed: 2020.6.20] - chardet [required: >=3.0.2,<4, installed: 3.0.4] - idna [required: >=2.5,<3, installed: 2.6] - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.10] - tqdm [required: >=4.27,<4.50.0, installed: 4.49.0] - xxhash [required: Any, installed: 2.0.0] I tried using `datasets` from `master` on macos with python 3.7.2 I also have `requests==2.23.0` and `tqdm==4.45.0`.
[ -0.10415421426296234, 0.35264623165130615, 0.03405791521072388, 0.3633102476596832, 0.27457743883132935, 0.180207759141922, 0.2762240171432495, 0.4623250365257263, -0.04348841309547424, -0.11378446221351624, 0.024737529456615448, 0.23602193593978882, 0.1520678699016571, -0.11780165880918503, 0.18410861492156982, -0.16831380128860474, 0.003877118229866028, 0.006880391389131546, 0.08479204773902893, 0.13284464180469513, -0.20012028515338898, 0.11467418819665909, -0.18248629570007324, 0.15551765263080597, -0.5857800245285034, 0.08811640739440918, -0.06601789593696594, 0.05404168367385864, 0.08332427591085434, -0.6138044595718384, 0.3904816806316376, -0.050053659826517105, 0.201091006398201, 0.21213088929653168, -0.00012045968469465151, 0.0749957412481308, 0.4643649458885193, -0.004133157432079315, -0.2960132956504822, -0.0811442956328392, 0.18658001720905304, -0.020505622029304504, 0.31808823347091675, -0.36076971888542175, 0.10087853670120239, -0.28033915162086487, 0.22425945103168488, 0.04719966650009155, 0.18321819603443146, 0.008632726967334747, 0.16828575730323792, -0.1830531656742096, 0.337539404630661, 0.030644133687019348, 0.7112435102462769, -0.13746881484985352, 0.08150562644004822, 0.44246038794517517, 0.12259725481271744, -0.16071557998657227, -0.18643520772457123, 0.23629778623580933, -0.25025784969329834, 0.12030933797359467, 0.26718348264694214, -0.07704312354326248, 0.3848762810230255, -0.20049569010734558, 0.39215338230133057, 0.26795780658721924, 0.7762548327445984, -0.409220427274704, 0.17303316295146942, -0.23131224513053894, -0.03287123143672943, -0.022959358990192413, 0.09382513165473938, 0.2307371199131012, -0.27676916122436523, 0.05453048646450043, 0.15718597173690796, -0.11887119710445404, -0.2609158456325531, 0.30131542682647705, -0.064247727394104, 0.1997208297252655, 0.13993796706199646, 0.39106860756874084, 0.01633521541953087, -0.22688396275043488, 0.0019351840019226074, 0.06326441466808319, 0.1672583818435669, 0.22086429595947266, -0.39311423897743225, 0.10725818574428558, -0.06830291450023651, 0.11390469968318939, 0.37786197662353516, -0.16936174035072327, -0.02159642055630684, 0.0659419447183609, 0.2391711175441742, 0.20646503567695618, 0.4192267060279846, 0.12418514490127563, -0.3237411677837372, -0.2987220883369446, 0.2721664011478424, 0.1988997757434845, -0.25421416759490967, -0.03644156455993652, -0.06121234595775604, -0.11379531770944595, 0.13857287168502808, -0.17098405957221985, 0.42917394638061523, -0.26999130845069885, -0.2205793261528015, 0.11957649886608124, -0.14467929303646088, -0.07156749814748764, -0.1552301049232483, 0.3867202401161194, -0.09167879819869995, 0.2424997091293335, 0.06721031665802002, 0.06223788112401962, -0.18214350938796997, -0.18781429529190063, 0.005754292011260986, 0.11867789924144745, -0.212467223405838, 0.17979350686073303, 0.2939302921295166, -0.1538042575120926, 0.2583543360233307, 0.14352194964885712, -0.15061059594154358, -0.12067631632089615, 0.1700643002986908, 0.013038169592618942, -0.23267275094985962, 0.3098335862159729, 0.007501371204853058, 0.2468719184398651, -0.03289543464779854, -0.14496909081935883, -0.17903411388397217, 0.3182583451271057, -0.2848285436630249, -0.5152555704116821, -0.26225027441978455, 0.12090497463941574, -0.011663194745779037, 0.08445131778717041, 0.1616869568824768, 0.05765434354543686, 0.44134941697120667, -0.5136591792106628, -0.10032309591770172, -0.1257847100496292, -0.18552851676940918, -0.4527531862258911, 0.17063742876052856, 0.336312860250473, -0.5569392442703247, 0.07983218133449554, -0.0507645308971405, 0.08240373432636261, 0.21736714243888855, 0.44500213861465454, -0.22985588014125824, 0.17576611042022705, -0.1654864400625229, 0.19240128993988037, 0.10959122329950333, -0.31215766072273254, -0.5411025285720825, 0.21401339769363403, -0.061286844313144684, 0.19590391218662262, 0.025957845151424408, 0.2906032204627991, 0.009337250143289566, 0.1717621386051178, 0.4052644371986389, 0.24925102293491364, -0.04676474630832672, 0.07879223674535751, -0.408526748418808, -0.3879697024822235, 0.33856332302093506, 0.20166607201099396, -0.004745012149214745, -0.1988982856273651, 0.19682489335536957, 0.3221474885940552, 0.25847968459129333, -0.2035796046257019, 0.12879636883735657, 0.021839313209056854, 0.07051779329776764, -0.01294698566198349, 0.23276646435260773, -0.22382982075214386, -0.4262203276157379, 0.11144572496414185, -0.34314051270484924, -0.02358955517411232, -0.30438679456710815, -0.3612285256385803, -0.5231873393058777, 0.06636932492256165, -0.1714644432067871, -0.2400972992181778, 0.11505021899938583, -0.061333928257226944, 0.09535001218318939, 0.2569481134414673, 0.10278594493865967, -0.0896758884191513, -0.20426636934280396, -0.017557580024003983, -0.40308985114097595, 0.24051633477210999, -0.3087987005710602, -0.17864957451820374, -0.0221906378865242, 0.2451286017894745, 0.324608713388443, 0.10029381513595581, 0.04317522794008255, 0.15584322810173035, 0.14677703380584717, 0.09318707138299942, -0.13243627548217773, -0.017700359225273132, 0.22722642123699188, -0.2668780982494354, 0.2040078043937683, 0.12404444068670273, 0.1868998110294342, -0.22101745009422302, 0.05095268785953522, 0.1322418749332428, -0.0019995267502963543, 0.17187605798244476, -0.08223811537027359, -0.07122443616390228, 0.157029390335083, -0.0034191161394119263, 0.39678436517715454, -0.1355210244655609, 0.25990328192710876, 0.47115999460220337, 0.04300195723772049, 0.10370759665966034, -0.00577487051486969, 0.010361067950725555, 0.11434586346149445, -0.0471607968211174, 0.15312211215496063, 0.1461278349161148, -0.34166181087493896, -0.2851566672325134, 0.2188829481601715, -0.144235759973526, 0.07827391475439072, 0.09371292591094971, 0.02806950733065605, 0.13984842598438263, -0.06898078322410583, -0.19510307908058167, 0.1316024363040924, -0.11788006126880646, 0.45907241106033325, 0.3100675642490387, 0.30289003252983093, -0.029343929141759872, -0.37656670808792114, 0.059394754469394684, 0.08311399817466736, 0.3793654143810272, -0.3040895462036133, 0.07948898524045944, -0.17133212089538574, -0.24345973134040833, -0.07726651430130005, -0.013045009225606918, -0.2915111482143402, -0.3173149824142456, 0.08157074451446533, 0.5144318342208862, 0.03286819905042648, 0.009986113756895065, -0.05400306358933449, -0.04803508520126343, 0.07968860119581223, -0.13089101016521454, -0.050506342202425, -0.7057314515113831, -0.38591158390045166, 0.005147457122802734, 0.2574864327907562, -0.13397957384586334, 0.2502463161945343, -0.025403745472431183, -0.19274702668190002, -0.3766914904117584, -0.551348090171814, -0.0036724358797073364, -0.11040541529655457, 0.3178441524505615, 0.01763313077390194, 0.3957710862159729, 0.0727890357375145, -0.2152879536151886, 0.21038679778575897, 0.013058125972747803, -0.024865277111530304, 0.2813796401023865, -0.3631693124771118, 0.08441439270973206, -0.00892803817987442, -0.2284812033176422, -0.2832895517349243, -0.14893361926078796, 0.19939668476581573, 0.06301631778478622, 0.18703149259090424, 0.2383003532886505, 0.06289254128932953, 0.10123831033706665, 0.27589476108551025, 0.06764618307352066, -0.3717181384563446, -0.16083331406116486, 0.30609747767448425, -0.21843163669109344, -0.27730661630630493, 0.19123058021068573, 0.00272291898727417, 0.12418641149997711, 0.22165077924728394, -0.5899145007133484, 0.007206093519926071, 0.08572201430797577, 0.3271365165710449, 0.03196396678686142, -0.14620955288410187, 0.23672053217887878, 0.021127264946699142, 0.0012416951358318329, 0.06205946207046509, 0.005653418600559235, -0.12062374502420425, -0.153707355260849, 0.16624169051647186, 0.11402775347232819, 0.20946800708770752, 0.1647176742553711, 0.7836134433746338, 0.08677217364311218, 0.04249592497944832, 0.4263213276863098, -0.18830712139606476, 0.06352774053812027, -0.1462806910276413, -0.09664628654718399, 0.03148466348648071, -0.3452988266944885, -0.2316504716873169, 0.12315410375595093, -0.12100277096033096, -0.3868952989578247, -0.05445395037531853, -0.24508626759052277, -0.25448817014694214, -0.23949283361434937, 0.04457419365644455, -0.03828366473317146, 0.37937307357788086, 0.10441620647907257, -0.16851913928985596, -0.1514849066734314, -0.4425000846385956, -0.02878609672188759, 0.14633110165596008, -0.029247958213090897, -0.036780983209609985, -0.10056650638580322, -0.20292846858501434, -0.5161777138710022, 0.41559311747550964, 0.2859545052051544, 0.11058646440505981, -0.17187534272670746, 0.08782340586185455, 0.4478866755962372, -0.18531793355941772, 0.6596498489379883, -0.17085309326648712, 0.04381224885582924, 0.09848181903362274, 0.18375039100646973, -0.7251461744308472, -0.01941407471895218, 0.14754459261894226, 0.1342766135931015, 0.21531327068805695, -0.11666566878557205, -0.513933002948761, 0.09796446561813354, 0.34409981966018677, 0.3732794225215912, -0.08862792700529099, -0.1792949140071869, -0.1912723183631897, -0.37672728300094604, -0.5138628482818604, -0.16492372751235962, -0.21110114455223083, 0.26830652356147766, -0.02556086890399456, 0.031048789620399475, 0.05038486421108246, 0.20147807896137238, -0.014732185751199722, 0.2821473181247711, 0.28590548038482666, 0.016502059996128082, 0.023509792983531952, 0.09593048691749573, 0.09910349547863007, 0.3470713496208191, 0.3539324402809143, 0.2881975769996643, -0.04237300902605057, -0.08899851143360138, 0.08530094474554062, -0.06381995975971222, 0.18121030926704407, -0.15028707683086395, 0.06661627441644669, -0.0016663353890180588, -0.19786915183067322, -0.07344701886177063, -0.1572471708059311, 0.3747442364692688, -0.22128501534461975, -0.2982095181941986, -0.23898179829120636, 0.7085092663764954, 0.15899038314819336, -0.09604375064373016, 0.12311066687107086, -0.10886916518211365, -0.1373424232006073, 0.3652404844760895, 0.11770637333393097, 0.9276628494262695, -0.1522066593170166, 0.3289300203323364, 0.3286549746990204, -0.039698705077171326, 0.5044326186180115, -0.2825063467025757, 0.1339879333972931, -0.48441076278686523, 0.28564536571502686, -0.010888729244470596, -0.09808209538459778, -0.15467214584350586, 0.031081486493349075, -0.18278290331363678, 0.07330641150474548, -0.22070491313934326, 0.08858859539031982, 0.010632630437612534, 0.3567408323287964, -0.008350832387804985, 0.11068599671125412, -0.08427448570728302, 0.056263770908117294, -0.31955423951148987, 0.25711339712142944, -0.2615232467651367, -0.000958707183599472, 0.09796174615621567, -0.1563696265220642, -0.454454630613327, 0.07854823768138885, -0.18750420212745667, 0.4533359408378601, -0.3069444000720978, -0.318878710269928, 0.017606548964977264, 0.05982537567615509, -0.04116494208574295, -0.09378375858068466, -0.3611283600330353, 0.18094293773174286, -0.2230478674173355, -0.16474027931690216, -0.1060880720615387, 0.07032909244298935, 0.22642487287521362, -0.07054513692855835, -0.4650469124317169, 0.31040695309638977, -0.033190518617630005, -0.26906582713127136, -0.19516633450984955, 0.005617484450340271, 0.07666368782520294, -0.19385090470314026, -0.15716612339019775, -0.25301393866539, -0.11918769776821136, -0.13580845296382904, 0.0734141394495964, -0.12955999374389648, 0.008491843938827515, 0.06465917080640793, 0.06856434047222137, -0.3869737386703491, 0.11556006968021393, 0.47190552949905396, 0.3767467737197876, 0.16866394877433777, 0.6754418015480042, 0.26835209131240845, -0.2663927972316742, -0.013630013912916183, -0.35047274827957153, -0.36113375425338745, -0.39338117837905884, -0.07509686797857285, 0.13296635448932648, 0.46066465973854065, -0.2361183911561966, 0.10578681528568268, 0.15651267766952515, -0.10045499354600906, 0.1289461851119995, -0.46690577268600464, -0.28564801812171936, 0.3458828032016754, -0.15585240721702576, 0.21506556868553162, 0.3333626389503479, 0.1371675431728363, 0.09419381618499756, 0.2817740738391876, -0.20745444297790527, 0.4754825532436371, -0.08086162805557251, 0.36914730072021484, 0.10227310657501221, -0.10451777279376984, -0.16643264889717102, 0.004366666078567505, 0.027808580547571182, 0.07330779731273651, -0.0842074304819107, -0.18736860156059265, -0.059740398079156876, 0.17696475982666016, 0.05953674390912056, -0.2068474143743515, -0.12213313579559326, -0.4088258147239685, 0.0580773763358593, -0.010986685752868652, 0.3590632379055023, 0.10428385436534882, -0.07778845727443695, 0.17337360978126526, 0.18054388463497162, 0.14271610975265503, -0.22898808121681213, 0.3619517683982849, -0.13345079123973846, 0.39572978019714355, 0.26695549488067627, 0.23853811621665955, -0.09472377598285675, -0.012623555958271027, -0.24493762850761414, 0.08050328493118286, 0.11544163525104523, -0.18867862224578857, 0.18522794544696808, -0.2776903510093689, -0.20308861136436462, -0.021379396319389343, 0.01640395075082779, 0.3396818935871124, -0.14176136255264282, -0.05486714467406273, -0.06082100421190262, 0.1005866676568985, -0.2835875451564789, 0.046061836183071136, 0.48524209856987, -0.1776813268661499, -0.2785930335521698, 0.06876280158758163, 0.5847010612487793, -0.04389316588640213, 0.16632290184497833, 0.04665294289588928, 0.2393532693386078, 0.011582231149077415, 0.08544604480266571, 0.22191594541072845, 0.10981959104537964, -0.13774016499519348, 0.05679167062044144, 0.27208513021469116, 0.18669648468494415, 0.45359236001968384, -0.16573765873908997, 0.09753961116075516, -0.19270595908164978, 0.047214653342962265, -0.14114567637443542, -0.3601847290992737, 0.1597554236650467, 0.41208043694496155, 0.13187351822853088, 0.006587602198123932, 0.09148994088172913, 0.3713226914405823, 0.6368663311004639, 0.010278351604938507, -0.048384733498096466, 0.36225590109825134, -0.148677796125412, -0.18041649460792542, -0.29789501428604126, -0.37072187662124634, 0.02853304147720337, 0.15082108974456787, -0.24044977128505707, -0.22331030666828156, 0.2616768181324005, 0.1858803629875183, -0.32082319259643555, -0.6472077965736389, 0.518828272819519, 0.28316423296928406, 0.13512662053108215, -0.22257715463638306, 0.2115808129310608, 0.12484012544155121, -0.07370375841856003, 0.10121610760688782, 0.2894662618637085, 0.65751051902771, 0.32112160325050354, -0.7122470736503601, 0.02416887879371643, -0.15878480672836304, 0.09642946720123291, -0.0956944152712822, -0.025560546666383743, 0.1547430455684662, -0.07263566553592682, 0.21759678423404694, 0.05578363686800003, -0.031337838619947433, -0.1637457013130188, 0.44011086225509644, 0.04797070100903511, -0.2145298719406128, -0.26020336151123047, -0.18675431609153748, -0.21168455481529236, 0.0047944076359272, 0.0889466404914856, -0.37207940220832825, 0.22484806180000305, 0.4339293837547302, 0.00749654695391655, 0.14166763424873352, -0.08619111776351929, 0.03826562315225601, -0.2804441452026367, 0.4323859214782715, 0.24221284687519073, 0.10944598913192749, -0.44534415006637573, -0.2630244493484497, -0.6950755715370178, 0.36192193627357483, -0.42756813764572144, -0.004695989191532135, 0.32819896936416626, 0.18192559480667114, -0.20074667036533356, 0.16651374101638794, 0.07209683954715729, -0.14359617233276367, -0.18510279059410095, 0.3347553014755249, -0.22432321310043335, -0.10521984100341797, -0.12880352139472961, -0.29364854097366333, -0.25168830156326294, -0.3236355483531952, 0.21473664045333862, -0.19497990608215332, -0.04772332310676575, -0.2938644289970398, -0.1443580538034439, 0.13637331128120422, 0.1835707277059555, 0.5083594918251038, 0.08552880585193634, 0.609076201915741, 0.07915744930505753, -0.03096996620297432, -0.20012561976909637, -0.1561918705701828, 0.1780346781015396, 0.29613304138183594, 0.042609717696905136, 0.11947683990001678, -0.09500992298126221, -0.16400611400604248, -0.1698608100414276, 0.5059779286384583, -0.018787287175655365, 0.07610093802213669, -0.0015457496047019958, -0.22567516565322876, 0.012630313634872437, 0.30374372005462646, -0.14142799377441406, 0.18183530867099762, -0.06938503682613373, 0.3124791979789734, -0.2922700047492981, -0.44563695788383484, 0.4373096227645874, -0.42842966318130493, -0.3710169792175293, 0.044043973088264465, 0.12372687458992004, -0.1983819603919983, -0.10032075643539429, -0.3580922484397888, 0.14545664191246033, 0.4109821319580078, -0.016089756041765213, -0.1379518210887909, -0.11225633323192596, -0.08490253984928131, -0.10420822352170944, -0.2067105621099472, 0.031553156673908234, 0.042001936584711075, -0.15446506440639496, -0.3315710127353668, -0.523495614528656 ]
https://github.com/huggingface/datasets/issues/2139
Hi ! I think this has been fixed recently on `master`. Can you try again by installing `datasets` from `master` ? ``` pip install git+https://github.com/huggingface/datasets.git ```
TypeError when using save_to_disk in a dataset loaded with ReadInstruction split
Hi, Loading a dataset with `load_dataset` using a split defined via `ReadInstruction` and then saving it to disk results in the following error: `TypeError: Object of type ReadInstruction is not JSON serializable`. Here is the minimal reproducible example: ```python from datasets import load_dataset from datasets import ReadInstruction data_1 = load_dataset( "wikiann", "en", split="validation", ) data_1.save_to_disk("temporary_path_1") print("Save with regular split works.") data_2 = load_dataset( "wikiann", "en", split=ReadInstruction("validation", to=50, unit="%"), ) data_2.save_to_disk("temporary_path_2") ``` and the corresponding output: ``` Reusing dataset wikiann (/xxxxx/.cache/huggingface/datasets/wikiann/en/1.1.0/0b11a6fb31eea02f38ca17610657bfba3206100685283014daceb8da291c3be9) Save with regular split works. Reusing dataset wikiann (/xxxxx/.cache/huggingface/datasets/wikiann/en/1.1.0/0b11a6fb31eea02f38ca17610657bfba3206100685283014daceb8da291c3be9) Traceback (most recent call last): File "bug.py", line 20, in <module> data_2.save_to_disk("temporary_path_2") File "/xxxxx/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 645, in save_to_disk json.dump(state, state_file, indent=2, sort_keys=True) File "/usr/lib/python3.7/json/__init__.py", line 179, in dump for chunk in iterable: File "/usr/lib/python3.7/json/encoder.py", line 431, in _iterencode yield from _iterencode_dict(o, _current_indent_level) File "/usr/lib/python3.7/json/encoder.py", line 405, in _iterencode_dict yield from chunks File "/usr/lib/python3.7/json/encoder.py", line 438, in _iterencode o = _default(o) File "/usr/lib/python3.7/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type ReadInstruction is not JSON serializable ``` Let me know if there is some misuse from my end. Thanks in advance.
26
TypeError when using save_to_disk in a dataset loaded with ReadInstruction split Hi, Loading a dataset with `load_dataset` using a split defined via `ReadInstruction` and then saving it to disk results in the following error: `TypeError: Object of type ReadInstruction is not JSON serializable`. Here is the minimal reproducible example: ```python from datasets import load_dataset from datasets import ReadInstruction data_1 = load_dataset( "wikiann", "en", split="validation", ) data_1.save_to_disk("temporary_path_1") print("Save with regular split works.") data_2 = load_dataset( "wikiann", "en", split=ReadInstruction("validation", to=50, unit="%"), ) data_2.save_to_disk("temporary_path_2") ``` and the corresponding output: ``` Reusing dataset wikiann (/xxxxx/.cache/huggingface/datasets/wikiann/en/1.1.0/0b11a6fb31eea02f38ca17610657bfba3206100685283014daceb8da291c3be9) Save with regular split works. Reusing dataset wikiann (/xxxxx/.cache/huggingface/datasets/wikiann/en/1.1.0/0b11a6fb31eea02f38ca17610657bfba3206100685283014daceb8da291c3be9) Traceback (most recent call last): File "bug.py", line 20, in <module> data_2.save_to_disk("temporary_path_2") File "/xxxxx/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 645, in save_to_disk json.dump(state, state_file, indent=2, sort_keys=True) File "/usr/lib/python3.7/json/__init__.py", line 179, in dump for chunk in iterable: File "/usr/lib/python3.7/json/encoder.py", line 431, in _iterencode yield from _iterencode_dict(o, _current_indent_level) File "/usr/lib/python3.7/json/encoder.py", line 405, in _iterencode_dict yield from chunks File "/usr/lib/python3.7/json/encoder.py", line 438, in _iterencode o = _default(o) File "/usr/lib/python3.7/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type ReadInstruction is not JSON serializable ``` Let me know if there is some misuse from my end. Thanks in advance. Hi ! I think this has been fixed recently on `master`. Can you try again by installing `datasets` from `master` ? ``` pip install git+https://github.com/huggingface/datasets.git ```
[ -0.13170656561851501, 0.21055968105793, 0.04380504786968231, 0.3900923728942871, 0.3082844913005829, 0.2542073726654053, 0.4115677773952484, 0.2183053195476532, 0.15596655011177063, 0.0927034467458725, -0.18100298941135406, 0.38218191266059875, -0.1831883192062378, 0.4692060947418213, -0.33438366651535034, -0.22618468105793, 0.13148152828216553, 0.032493554055690765, 0.024783886969089508, 0.15165357291698456, -0.2917746305465698, 0.24015386402606964, -0.2096993625164032, -0.07223167270421982, -0.10239820927381516, -0.22373275458812714, -0.09009362757205963, 0.17841613292694092, -0.04790181294083595, -0.2700754702091217, 0.49815696477890015, -0.08637204766273499, 0.2484550029039383, 0.4595010578632355, -0.00011933251516893506, 0.2449737787246704, 0.27526286244392395, -0.12175527215003967, -0.48691093921661377, -0.1442822813987732, -0.1124068945646286, -0.33077117800712585, 0.22896014153957367, -0.28490033745765686, 0.256334125995636, 0.03243114799261093, -0.09672065079212189, -0.2834962010383606, 0.5513249039649963, -0.14047637581825256, 0.13109979033470154, 0.2201007902622223, 0.21167077124118805, -0.07647744566202164, -0.019652266055345535, 0.8181024789810181, -0.31167155504226685, 0.12087628245353699, -0.16819310188293457, 0.15948009490966797, 0.18606045842170715, 0.13977469503879547, 0.07755115628242493, -0.12890952825546265, 0.10891035944223404, -0.08395659923553467, 0.041406191885471344, -0.1637934148311615, -0.07210934907197952, 0.03595962002873421, 0.6240743398666382, -0.23255930840969086, -0.5413183569908142, -0.5269165635108948, -0.09889280050992966, 0.10373184829950333, 0.18832193315029144, 0.051577724516391754, 0.10239352285861969, 0.11593963950872421, -0.07491341233253479, -0.18885362148284912, -0.14527791738510132, -0.0556887611746788, -0.0028694123029708862, -0.32649657130241394, -0.22336429357528687, 0.3309183716773987, 0.20391634106636047, -0.09455129504203796, 0.15492570400238037, -0.20395328104496002, -0.09271034598350525, -0.009542921558022499, -0.25912871956825256, -0.25829097628593445, -0.46302592754364014, -0.11825881898403168, 0.058877259492874146, 0.23369823396205902, 0.10811269283294678, -0.1332111656665802, -0.2215164750814438, 0.11718405783176422, 0.6883971691131592, 0.1997385323047638, 0.14895007014274597, 0.4022565484046936, 0.029157837852835655, 0.13949349522590637, 0.005476951599121094, -0.08564868569374084, 0.166863813996315, -0.07627325505018234, 0.39580774307250977, 0.0007775817066431046, 0.28634557127952576, -0.11036009341478348, -0.5084638595581055, -0.02364150620996952, -0.3658464848995209, -0.20452716946601868, -0.09957657754421234, 0.11259176582098007, 0.2994082570075989, 0.28196966648101807, 0.17369334399700165, 0.4408882260322571, -0.0008400417864322662, -0.09512130916118622, -0.0727199837565422, -0.02925419993698597, 0.05498122423887253, 0.2533734142780304, 0.019507452845573425, -0.027344083413481712, 0.05280527472496033, 0.006748579442501068, -0.47141867876052856, -0.21508681774139404, 0.19131600856781006, -0.26463866233825684, 0.06381865590810776, 0.2851466238498688, 0.28038448095321655, 0.15334737300872803, 0.17737773060798645, -0.3570283055305481, -0.31067371368408203, 0.1204814612865448, -0.09650062024593353, -0.04888578876852989, -0.0437004417181015, 0.09476525336503983, -0.126796692609787, 0.06591345369815826, -0.5947529673576355, -0.018763432279229164, 0.44360312819480896, -0.2635985016822815, -0.07191668450832367, -0.22885112464427948, -0.011602923274040222, -0.3403199315071106, 0.013840846717357635, 0.4004659354686737, -0.33790403604507446, -0.0681682676076889, -0.216962531208992, -0.2334204614162445, 0.1664642095565796, 0.49366289377212524, -0.08353354036808014, 0.5169411897659302, -0.19559429585933685, 0.39820706844329834, 0.1584654450416565, -0.23795539140701294, -0.20002451539039612, 0.5022698640823364, -0.10377708077430725, 0.17348885536193848, -0.09525565803050995, -0.024152129888534546, 0.4080352485179901, -0.1735256016254425, 0.1406644880771637, 0.08123492449522018, -0.0405479297041893, -0.07774773985147476, -0.1940614879131317, -0.2555301785469055, 0.12964029610157013, 0.012643642723560333, -0.10063256323337555, 0.13426275551319122, 0.12605701386928558, 0.18807552754878998, 0.31118273735046387, -0.054151542484760284, 0.24933409690856934, 0.3054504096508026, 0.11779807507991791, -0.13528840243816376, -0.10753725469112396, -0.02212851494550705, -0.3029610514640808, -0.004442654550075531, 0.27809464931488037, -0.21127359569072723, -0.09349080920219421, -0.1717112958431244, -0.2598273456096649, 0.23033511638641357, -0.27634188532829285, 0.29112762212753296, 0.052979737520217896, 0.12080555409193039, -0.02483212947845459, 0.24894903600215912, -0.09195709228515625, 0.18968603014945984, -0.0352422259747982, 0.12810677289962769, -0.4389441907405853, 0.42382773756980896, -0.040911994874477386, -0.34513700008392334, 0.03026142716407776, 0.05698808655142784, 0.26877206563949585, -0.13443394005298615, -0.004309928044676781, 0.3361165523529053, 0.23677906394004822, 0.13005313277244568, -0.22046908736228943, -0.05988237261772156, 0.21615581214427948, -0.07198894023895264, -0.11923368275165558, 0.2150162309408188, 0.3863372802734375, -0.17848938703536987, -0.188680037856102, 0.30417877435684204, -0.07058688998222351, 0.18731579184532166, 0.006308369338512421, 0.11262315511703491, 0.024100661277770996, -0.0023697838187217712, -0.09407556056976318, -0.408125638961792, 0.014750415459275246, 0.02371547371149063, -0.11326893419027328, -0.25519779324531555, -0.09951238334178925, 0.11171045899391174, 0.4493328630924225, -0.26756107807159424, 0.2195766419172287, 0.01826850324869156, -0.15710540115833282, -0.002931535243988037, -0.054379142820835114, 0.4611753821372986, 0.518876314163208, -0.07285197079181671, 0.21655458211898804, -0.166392520070076, 0.05609569326043129, -0.040907908231019974, 0.13193175196647644, 0.15092307329177856, 0.315116286277771, 0.2516278326511383, 0.054950833320617676, 0.05885830149054527, -0.08039748668670654, 0.14993402361869812, -0.005581606179475784, 0.1412249654531479, -0.404068261384964, 0.1511809229850769, -0.21296869218349457, 0.33317941427230835, -0.1819792240858078, -0.22574996948242188, 0.09593668580055237, -0.6485622525215149, -0.4150826930999756, 0.48973700404167175, -0.1861347258090973, -0.039807211607694626, 0.006707221269607544, -0.04270052909851074, -0.016535695642232895, -0.06747777760028839, -0.1246943473815918, 0.11294185370206833, -0.2868053615093231, -0.07292404770851135, 0.24631808698177338, -0.20354217290878296, 0.22068427503108978, -0.1972498744726181, 0.012617506086826324, -0.20525680482387543, 0.03682506084442139, 0.11741767823696136, -0.15627717971801758, 0.17732185125350952, 0.1652362048625946, 0.28205743432044983, 0.024290353059768677, -0.2725777328014374, 0.09645077586174011, 0.14777930080890656, -0.18117621541023254, 0.11335709691047668, -0.00252455472946167, -0.0518951490521431, -0.1257265955209732, -0.15894638001918793, -0.3489081859588623, -0.18714281916618347, 0.5054353475570679, -0.12415774166584015, -0.25548380613327026, -0.14156153798103333, 0.11808238923549652, 0.13911795616149902, 0.2809078097343445, -0.29978999495506287, -0.18714208900928497, -0.12920227646827698, 0.3373071849346161, -0.07422064244747162, -0.14974364638328552, 0.13761815428733826, 0.047386862337589264, -0.21087446808815002, -0.02565268613398075, -0.433817982673645, 0.22356165945529938, -0.10679319500923157, 0.04171589016914368, -0.18587860465049744, 0.007210033014416695, 0.21493011713027954, 0.16702207922935486, 0.11950260400772095, -0.020179763436317444, -0.40664058923721313, 0.2743180990219116, -0.10291749238967896, 0.2617075443267822, -0.3179401159286499, 0.3655719459056854, 0.2267262488603592, -0.09362758696079254, 0.10426760464906693, 0.10525885224342346, 0.4074464440345764, 0.40231382846832275, 0.22925236821174622, -0.27959078550338745, -0.04656826704740524, -0.030543282628059387, -0.46515095233917236, -0.30559465289115906, -0.07882757484912872, 0.005860071629285812, -0.4329887926578522, 0.09541700780391693, -0.4169626235961914, -0.0798511877655983, -0.4240087866783142, -0.0649455264210701, 0.041141901165246964, 0.26448750495910645, -0.1293402761220932, 0.3300025463104248, 0.12131509929895401, 0.26865100860595703, 0.08541713654994965, 0.4426594078540802, 0.3040846884250641, -0.022594081237912178, -0.6052622199058533, -0.39878982305526733, -0.14947764575481415, 0.08517111837863922, -0.003024265170097351, 0.33076101541519165, -0.11282017827033997, -0.1580197811126709, -0.06857305020093918, -0.03893977776169777, 0.5201876759529114, -0.05124030262231827, 0.0012257987400516868, 0.19162359833717346, 0.042635709047317505, -0.37068629264831543, -0.0845857486128807, 0.12764570116996765, 0.2611563801765442, 0.09962962567806244, 0.7260841727256775, -0.28696751594543457, 0.08483362197875977, 0.09860104322433472, 0.3608522415161133, -0.26860183477401733, -0.2606608271598816, 0.07621745020151138, -0.6618024706840515, -0.47345423698425293, -0.06540440022945404, 0.0891382172703743, 0.08402593433856964, 0.044567689299583435, 0.06137964874505997, -0.2863176763057709, -0.19745606184005737, -0.03096412867307663, 0.009402278810739517, 0.2691716253757477, -0.19097715616226196, 0.17440855503082275, 0.27347081899642944, 0.07857295125722885, 0.4405234158039093, 0.4388536214828491, -0.014715823344886303, -0.35255497694015503, 0.15238726139068604, -0.07161601632833481, 0.018762759864330292, 0.1555837243795395, 0.05087782442569733, -0.08212634921073914, 0.08837345242500305, -0.23655444383621216, -0.463346004486084, -0.14884567260742188, 0.09042501449584961, -0.33749380707740784, -0.6183340549468994, -0.22286269068717957, 0.38307079672813416, 0.000432334840297699, 0.09133599698543549, -0.05589443817734718, 0.27126404643058777, -0.2566218376159668, 0.44746631383895874, 0.12231241166591644, 0.6830674409866333, 0.0007450124248862267, 0.08545683324337006, 0.4916388690471649, -0.6043202877044678, -0.006088651716709137, 0.1641177386045456, -0.06000366434454918, -0.42656001448631287, 0.19307196140289307, -0.08067947626113892, -0.06819804012775421, 0.13942991197109222, -0.023450635373592377, -0.3511238992214203, -0.11519266664981842, -0.3808244466781616, -0.20524747669696808, -0.16496986150741577, 0.13929684460163116, -0.4981330633163452, -0.35323941707611084, -0.12834532558918, 0.14407777786254883, 0.00938710942864418, -0.0194944366812706, 0.14073997735977173, -0.3155275881290436, -0.023452915251255035, -0.09665704518556595, -0.39058372378349304, 0.024711892008781433, -0.07572904229164124, 0.34666261076927185, -0.17781981825828552, -0.17017631232738495, 0.28363537788391113, 0.25739309191703796, 0.5144729018211365, 0.0030208169482648373, -0.020117223262786865, -0.1384013444185257, -0.27941471338272095, 0.07278930395841599, -0.017847662791609764, -0.2357199341058731, 0.4342164397239685, 0.17023669183254242, 0.019597947597503662, -0.21341845393180847, -0.14934289455413818, -0.12921005487442017, -0.13253280520439148, 0.05473862588405609, -0.22435779869556427, -0.514013946056366, -0.21099115908145905, -0.11336977779865265, 0.03893660008907318, -0.3093291223049164, 0.012805750593543053, 0.12010607123374939, -0.027482278645038605, 0.1266258805990219, -0.3678087890148163, -0.04749436676502228, 0.00452666450291872, 0.3145177662372589, 0.20624804496765137, 0.2634674906730652, 0.6696698665618896, -0.05840005725622177, -0.12124226987361908, -0.23911572992801666, 0.7491883039474487, 0.26704880595207214, -0.03320036828517914, 0.3828858733177185, -0.3566771447658539, 0.07910843193531036, -0.17618781328201294, 0.27472391724586487, 0.2144107222557068, -0.3028135597705841, -0.04599183052778244, -0.4061582684516907, -0.3587568402290344, 0.20315761864185333, 0.09739093482494354, 0.22660169005393982, 0.16823416948318481, 0.16134092211723328, -0.2150634080171585, -0.08410368859767914, -0.14870497584342957, -0.005113415420055389, -0.23405402898788452, -0.013823435641825199, -0.007967217825353146, -0.06169966980814934, 0.20666348934173584, -0.1218833476305008, 0.05263780802488327, 0.20264168083667755, 0.07015682756900787, -0.046121638268232346, -0.17655827105045319, 0.13287343084812164, 0.11065784096717834, 0.09283169358968735, -0.1284501552581787, -0.2062305361032486, 0.07308372855186462, -0.13890519738197327, -0.12026564031839371, 0.2732171416282654, -0.0864553153514862, 0.11017113924026489, -0.01136094145476818, 0.39067620038986206, -0.14003396034240723, 0.115681491792202, -0.018472425639629364, 0.19074752926826477, -0.025106310844421387, 0.23763766884803772, 0.05829829350113869, 0.030797123908996582, -0.3982854187488556, 0.015723200514912605, 0.3234844207763672, 0.3239729404449463, 0.27356216311454773, -0.5291039347648621, 0.013645373284816742, -0.12793302536010742, 0.19952282309532166, 0.3046543300151825, -0.23593348264694214, -0.03232917562127113, -0.08421964943408966, 0.0597507506608963, 0.23790819942951202, -0.12449745833873749, 0.3456410765647888, -0.3701762557029724, -0.2507578432559967, 0.1945924609899521, -0.0075366199016571045, 0.22630444169044495, -0.5040645003318787, 0.04901780188083649, 0.5733004808425903, 0.0245196670293808, 0.2739390730857849, 0.5586562156677246, -0.29723790287971497, 0.20620155334472656, -0.055129364132881165, -0.030328979715704918, 0.29929906129837036, 0.1485150158405304, -0.07369353622198105, 0.3769679069519043, 0.20461001992225647, 0.12150951474905014, 0.05308156460523605, -0.19145308434963226, -0.0007974631153047085, -0.05453535169363022, 0.10007552802562714, 0.38280540704727173, 0.15550705790519714, -0.0381457693874836, -0.6030410528182983, -0.10788977146148682, -0.17496374249458313, 0.07330961525440216, -0.22036555409431458, -0.09368515014648438, -0.08036340773105621, -0.2421417534351349, -0.05031297355890274, -0.017262034118175507, -0.17939822375774384, -0.14673671126365662, 0.24494421482086182, -0.052129115909338, 0.0955897644162178, -0.11967968195676804, 0.05447908118367195, 0.15699994564056396, 0.07200240343809128, -0.33945274353027344, -0.1150502860546112, 0.07633808255195618, -0.023155633360147476, -0.05158183351159096, 0.026263652369379997, 0.4611828923225403, 0.22309662401676178, -0.2993927299976349, -0.16877974569797516, -0.0456726998090744, -0.08938723802566528, 0.194780170917511, 0.16581133008003235, -0.21695637702941895, 0.15622735023498535, 0.5898364186286926, 0.05468912050127983, 0.03355749696493149, 0.21260501444339752, 0.20618689060211182, 0.16795799136161804, -0.1390761137008667, 0.37391671538352966, -0.45255047082901, -0.10579554736614227, 0.08173222839832306, -0.023393429815769196, -0.19237250089645386, -0.06865803897380829, 0.2831573188304901, -0.088956817984581, 0.26774439215660095, 0.10796843469142914, 0.030073147267103195, 0.006313014775514603, 0.44166266918182373, 0.20649874210357666, -0.3510465621948242, -0.16223637759685516, 0.17280419170856476, -0.14548806846141815, -0.12262783199548721, -0.018130797892808914, 0.010647498071193695, -0.007123541086912155, 0.17390967905521393, 0.1665394902229309, 0.14285562932491302, 0.02654232829809189, 0.01555141806602478, 0.14114037156105042, 0.44244134426116943, 0.017794169485569, -0.337584525346756, 0.5128380060195923, -0.10918792337179184, -0.013015646487474442, -0.4200242757797241, 0.23378334939479828, 0.3612351715564728, -0.004031285643577576, 0.019701216369867325, -0.036573007702827454, -0.033117298036813736, 0.006480024196207523, 0.16038799285888672, 0.44096747040748596, 0.23135539889335632, -0.004869252443313599, -0.3268093466758728, 0.0847199559211731, -0.12124510109424591, -0.10910570621490479, 0.17395466566085815, -0.1156606376171112, 0.7781215906143188, -0.3791898488998413, 0.414593905210495, -0.29270532727241516, -0.2153361439704895, -0.04633674398064613, 0.17837689816951752, -0.496235191822052, 0.2853754162788391, -0.07748263329267502, 0.043246421962976456, 0.3445822596549988, 0.17972856760025024, 0.08497914671897888, 0.37743252515792847, -0.17558103799819946, -0.07922926545143127, 0.34786415100097656, -0.07150252908468246, -0.3467019498348236, 0.41059017181396484, -0.15642350912094116, 0.3496382534503937, 0.24994473159313202, -0.6930733919143677, -0.06690364331007004, 0.38437706232070923, -0.26547279953956604, -0.10024983435869217, 0.06281337887048721, 0.2828066945075989, -0.18782636523246765, 0.08147923648357391, 0.4868474304676056, 0.06446157395839691, -0.25650984048843384, 0.3085877299308777, -0.09355837106704712 ]
https://github.com/huggingface/datasets/issues/2135
Hi ! Indeed only the languages of the `translate-train` data are included... I can't find a link to download the english train set on https://github.com/facebookresearch/MLQA though, do you know where we can download it ?
en language data from MLQA dataset is missing
Hi I need mlqa-translate-train.en dataset, but it is missing from the MLQA dataset. could you have a look please? @lhoestq thank you for your help to fix this issue.
35
en language data from MLQA dataset is missing Hi I need mlqa-translate-train.en dataset, but it is missing from the MLQA dataset. could you have a look please? @lhoestq thank you for your help to fix this issue. Hi ! Indeed only the languages of the `translate-train` data are included... I can't find a link to download the english train set on https://github.com/facebookresearch/MLQA though, do you know where we can download it ?
[ -0.0344623401761055, 0.20468354225158691, -0.22718721628189087, 0.2308054268360138, 0.05782332643866539, 0.29979294538497925, -0.03953365236520767, -0.04611634463071823, -0.1498139649629593, 0.1264658272266388, 0.19589266180992126, -0.1498143970966339, 0.06739096343517303, 0.4813951253890991, 0.22510379552841187, -0.2650108337402344, -0.00978625938296318, -0.07944219559431076, -0.1342737078666687, -0.46653711795806885, 0.01981406658887863, 0.5020959973335266, -0.09568044543266296, -0.03146814927458763, -0.17396758496761322, 0.1743476688861847, -0.3577694892883301, 0.09119860082864761, -0.14589431881904602, 0.05717802047729492, 0.16099941730499268, -0.3259172737598419, 0.2097354531288147, -0.16472923755645752, -0.00010912838479271159, 0.048884317278862, 0.021431773900985718, -0.2748507857322693, -0.08664127439260483, -0.36556190252304077, -0.11914309859275818, -0.2956377863883972, -0.17696690559387207, -0.1298704743385315, -0.18384996056556702, -0.07363429665565491, 0.155999556183815, -0.2765037715435028, 0.1190437376499176, 0.3667835295200348, 0.1788884699344635, -0.12546224892139435, 0.132767915725708, -0.22150203585624695, 0.09606315940618515, -0.0015862565487623215, 0.12209927290678024, 0.08061090111732483, 0.3105129301548004, 0.04263562709093094, 0.16545817255973816, 0.5170339345932007, 0.36576053500175476, -0.19518131017684937, -0.2743357717990875, 0.09185503423213959, 0.4387053847312927, -0.6130285859107971, 0.24591076374053955, 0.2323862910270691, 0.39630255103111267, 0.0642603188753128, -0.22042815387248993, -0.004943780601024628, 0.23528890311717987, 0.17124827206134796, 0.0973937064409256, 0.4704558253288269, -0.3319164514541626, 0.2780916690826416, -0.1069711446762085, -0.5191502571105957, -0.09311587363481522, 0.2702252268791199, -0.17118076980113983, 0.26140186190605164, 0.04094723239541054, -0.06822764873504639, -0.09803159534931183, 0.05510363355278969, 0.16833040118217468, 0.11328653991222382, -0.20436467230319977, 0.20741082727909088, -0.059628553688526154, -0.0694437026977539, -0.10718155652284622, -0.06284789741039276, 0.04422197490930557, -0.30175453424453735, -0.4466921091079712, 0.11759548634290695, -0.09825467318296432, 0.07661153376102448, 0.2756771147251129, -0.004286300390958786, 0.04518720507621765, -0.1117992177605629, -0.018272535875439644, -0.42218977212905884, -0.016721539199352264, -0.11264418810606003, -0.21817901730537415, 0.05490625277161598, -0.6116181015968323, 0.20762622356414795, -0.18562453985214233, -0.371759295463562, -0.22710177302360535, -0.01784704253077507, -0.5481886863708496, -0.1329701542854309, -0.08423275500535965, 0.17080692946910858, 0.13912594318389893, 0.1097305566072464, 0.03871914744377136, 0.0876053050160408, -0.21270844340324402, -0.5654235482215881, -0.1886693835258484, 0.2166593223810196, -0.2004494071006775, -0.20256245136260986, -0.006059333682060242, 0.23429159820079803, 0.4591827392578125, -0.1983034908771515, 0.036798782646656036, 0.008918434381484985, 0.14237894117832184, -0.15212969481945038, 0.16307103633880615, 0.12730783224105835, 0.2819874882698059, 0.18407711386680603, -0.0005701631307601929, -0.21149207651615143, 0.014719903469085693, 0.2187460958957672, -0.3707553744316101, -0.1261291652917862, -0.34166502952575684, 0.20810267329216003, -0.015713371336460114, -0.2832199037075043, 0.22687208652496338, 0.7006773352622986, -0.05155888944864273, 0.01730445772409439, 0.20353779196739197, 0.03130028396844864, -0.0789010226726532, 0.08567724376916885, 0.20003509521484375, 0.20121192932128906, -0.6012539863586426, -0.4723477065563202, 0.1324431300163269, -0.149626225233078, 0.2162727266550064, 0.3347107470035553, -0.3081376552581787, -0.005615808069705963, -0.2851572334766388, 0.14734521508216858, 0.312313973903656, -0.09088382124900818, -0.3621456027030945, 0.07116235047578812, 0.03785116225481033, -0.18754467368125916, -0.1637815237045288, 0.2593783438205719, -0.011839834973216057, 0.11177860200405121, 0.26107555627822876, 0.4686018228530884, -0.12230323255062103, -0.18983034789562225, -0.10539279133081436, -0.22794122993946075, 0.6223259568214417, 0.22687943279743195, 0.21264037489891052, -0.12301892042160034, 0.10400736331939697, 0.1111714243888855, 0.2606935203075409, -0.07950621843338013, 0.1433200240135193, 0.5985338091850281, -0.10206261277198792, 0.02159060724079609, 0.2536548674106598, -0.0001964271068572998, 0.018805120140314102, -0.01327630877494812, -0.6309731006622314, 0.2035331130027771, 0.009584877640008926, 0.021998964250087738, -0.043227970600128174, -0.10585282742977142, -0.19667693972587585, -0.26172932982444763, 0.1333911120891571, -0.2965783178806305, -0.07846323400735855, 0.4289410710334778, 0.049519479274749756, -0.008837820962071419, -0.24005767703056335, -0.1317603588104248, -0.059211283922195435, 0.403695285320282, -0.2992993891239166, 0.049251701682806015, 0.22097553312778473, 0.48276200890541077, 0.06915769726037979, -0.0927276462316513, -0.054209571331739426, -0.09003593772649765, -0.018684104084968567, 0.07580452412366867, 0.2721097469329834, 0.1493702083826065, 0.5323989987373352, -0.26136118173599243, 0.2088601440191269, 0.13653191924095154, -0.04005121439695358, 0.023165158927440643, -0.09725405275821686, 0.24659067392349243, 0.3171752095222473, -0.021942198276519775, 0.05350852757692337, 0.3447537422180176, 0.3326193690299988, -0.006258867681026459, -0.012357242405414581, -0.3073706328868866, 0.3201683759689331, -0.07266488671302795, 0.1365261971950531, -0.07575957477092743, -0.14694030582904816, 0.2850210964679718, 0.7387044429779053, 0.12406554818153381, 0.20985624194145203, 0.08495745062828064, -0.42183971405029297, -0.2090279906988144, 0.29715442657470703, 0.0460440069437027, 0.07493006438016891, 0.18774853646755219, 0.3617951273918152, -0.0734827071428299, 0.4398925006389618, -0.1401205062866211, 0.20000776648521423, 0.15945419669151306, 0.13630203902721405, -0.25693443417549133, 0.06589311361312866, -0.005434839054942131, -0.4006046950817108, 0.15304717421531677, 0.2428845465183258, -0.018193313851952553, 0.123967245221138, 0.137114018201828, -0.3840939998626709, -0.8181413412094116, -0.1210193783044815, -0.32854223251342773, -0.2786877453327179, -0.1606534719467163, 0.17093700170516968, -0.7855651378631592, 0.004288606345653534, 0.24373316764831543, 0.3373643755912781, -0.014211148023605347, -0.11619505286216736, 0.11688344180583954, -0.07560397684574127, -0.12454681098461151, -0.482512503862381, 0.1762278974056244, -0.028932223096489906, 0.1055140569806099, 0.00670708529651165, -0.16091206669807434, 0.06973499059677124, -0.23605874180793762, -0.48951295018196106, 0.16275663673877716, -0.03367481380701065, 0.14492912590503693, -0.07222730666399002, -0.002054758369922638, -0.4595686197280884, 0.05614851415157318, 0.08698883652687073, 0.1313927173614502, -0.35895299911499023, -0.026495806872844696, -0.13337615132331848, -0.053958408534526825, -0.029647044837474823, -0.44815582036972046, -0.7942325472831726, 0.047099918127059937, -0.025444816797971725, 0.02357642352581024, 0.04552243649959564, -0.09602148085832596, -0.18118204176425934, -0.001222994178533554, -0.08625023066997528, -0.05885447561740875, -0.4134363830089569, -0.18089893460273743, 0.19291391968727112, -0.08928919583559036, -0.42409011721611023, 0.33339783549308777, 0.057513996958732605, 0.1615895926952362, -0.22903360426425934, -0.49556756019592285, -0.25011277198791504, 0.10384964197874069, 0.07569988816976547, -0.27342140674591064, -0.04913000762462616, 0.31737011671066284, -0.14974665641784668, -0.012167219072580338, -0.025746285915374756, -0.05962422490119934, 0.02757289633154869, 0.2583021819591522, 0.43778955936431885, -0.48496365547180176, 0.3810782730579376, 0.2894517183303833, 0.33497583866119385, 0.3354424834251404, 0.19287821650505066, 0.1851140558719635, 0.004976419731974602, 0.20483313500881195, 0.07758808135986328, -0.09396248310804367, 0.4627106785774231, 0.015350110828876495, 0.06789635866880417, 0.24502578377723694, -0.03108244203031063, -0.259521484375, -0.128204807639122, -0.14487384259700775, -0.15777488052845, -0.11850420385599136, 0.0035323668271303177, -0.37053778767585754, 0.4462805688381195, 0.2788819670677185, 0.28355395793914795, 0.2334592640399933, -0.004040684551000595, 0.3108600974082947, 0.05819367989897728, 0.10923276841640472, 0.14898450672626495, -0.5356491804122925, -0.6774755716323853, -0.4137744605541229, 0.017814848572015762, -0.046020250767469406, 0.349256306886673, -0.20226866006851196, 0.3159271776676178, 0.12829840183258057, 0.06922405958175659, 0.6536630392074585, -0.17816095054149628, -0.3705919682979584, -0.06758557260036469, 0.03206190466880798, 0.025908514857292175, 0.021063804626464844, -0.06735110282897949, 0.31735074520111084, 0.5049276351928711, -0.12715277075767517, -0.07509516924619675, -0.12993142008781433, 0.18972894549369812, 0.2722419202327728, -0.30189016461372375, 0.21107251942157745, -0.05285084247589111, -0.24360623955726624, -0.19801181554794312, -0.006902698427438736, 0.10674108564853668, -0.007972866296768188, 0.06402356177568436, -0.008700951933860779, 0.24983012676239014, 0.23997971415519714, -0.09099411219358444, 0.02967221289873123, 0.24140852689743042, 0.2405935525894165, -0.006944805383682251, 0.11012004315853119, 0.16755062341690063, -0.04034973680973053, 0.36287540197372437, 0.11350102722644806, -0.3394521176815033, 0.27006497979164124, -0.2651731073856354, 0.3873058557510376, 0.14735010266304016, 0.0750737339258194, -0.020373355597257614, 0.5720806121826172, -0.3262433111667633, 0.035692647099494934, 0.0072491355240345, 0.18779323995113373, 0.11633120477199554, -0.19719040393829346, -0.3613518476486206, 0.10511079430580139, -0.16185703873634338, 0.11211882531642914, -0.2287817895412445, -0.015963401645421982, -0.19224034249782562, 0.47232764959335327, 0.11499905586242676, 0.813111424446106, 0.17291784286499023, 0.26536741852760315, -0.21287910640239716, -0.14446333050727844, 0.1843685507774353, -0.23639994859695435, 0.12010439485311508, -0.07905896753072739, 0.008877307176589966, -0.20423559844493866, 0.0908280611038208, -0.04666726663708687, 0.20554308593273163, -0.05216244235634804, 0.3298267722129822, 0.3807365298271179, -0.326946884393692, 0.18668228387832642, 0.06817951798439026, 0.04906776547431946, -0.1569550484418869, -0.13940204679965973, 0.12333650141954422, 0.10789269953966141, 0.4474699795246124, -0.1518152356147766, -0.19503262639045715, 0.047446854412555695, -0.010123096406459808, -0.43582791090011597, 0.03424013406038284, -0.6181281805038452, 0.26513293385505676, -0.2025088220834732, -0.45142316818237305, 0.19854618608951569, 0.28202831745147705, 0.36244386434555054, 0.20475360751152039, -0.3248586356639862, 0.5658940672874451, 0.2798187732696533, -0.08650119602680206, 0.3733978271484375, -0.0790589302778244, 0.1902603656053543, -0.26977866888046265, -0.24345429241657257, 0.23967060446739197, -0.2098742425441742, 0.11433237791061401, -0.6147165894508362, 0.0983329564332962, 0.0974825918674469, 0.20140084624290466, -0.06436111032962799, 0.3105178475379944, 0.014070920646190643, -0.21110130846500397, 0.11878268420696259, 0.30339157581329346, -0.04536854475736618, 0.09301207959651947, 0.04807252064347267, -0.06742163747549057, -0.2774437367916107, 0.3492662310600281, 0.21167045831680298, -0.15945464372634888, 0.5841690897941589, 0.16498981416225433, 0.013045161962509155, -0.17733356356620789, 0.10236172378063202, 0.06914156675338745, -0.18566817045211792, -0.23988527059555054, 0.0521867573261261, 0.18779802322387695, -0.1963648498058319, 0.1287596970796585, -0.009637705981731415, -0.27688106894493103, -0.13185487687587738, -0.48830345273017883, -0.03309539705514908, 0.22310665249824524, 0.011503379791975021, -0.2465585470199585, 0.2071942687034607, 0.11461862921714783, 0.17379678785800934, -0.017727795988321304, -0.28265801072120667, 0.09901786595582962, -0.34079012274742126, 0.11709070205688477, -0.31098634004592896, -0.027356846258044243, 0.2107982039451599, 0.009888295084238052, 0.04110012203454971, -0.1670539528131485, 0.055656153708696365, -0.16591393947601318, 0.0944288820028305, 0.04423365741968155, 0.1019379198551178, 0.2109968066215515, 0.053239110857248306, -0.2525966167449951, -0.19040308892726898, 0.26199784874916077, -0.06741666048765182, -0.027933258563280106, 0.03716839849948883, 0.28880035877227783, -0.0973701998591423, -0.0009415075182914734, -0.2473878115415573, 0.06614150106906891, 0.23500294983386993, 0.1454191654920578, 0.2674194574356079, 0.2663162648677826, 0.35703417658805847, 0.04464976489543915, -0.11123744398355484, -0.13418474793434143, -0.1661473661661148, 0.0003795456141233444, 0.10762426257133484, -0.17786940932273865, 0.12298461049795151, 0.12103820592164993, -0.15322569012641907, 0.004413217306137085, -0.3717907965183258, 0.28395867347717285, 0.4176316261291504, 0.2205514758825302, -0.4797024726867676, -0.06641644984483719, 0.07751967012882233, -0.2523564100265503, -0.020406968891620636, -0.018194466829299927, 0.4070231020450592, 0.3347914218902588, 0.5049912929534912, 0.10841761529445648, -0.08666294813156128, -0.13226158916950226, 0.08333049714565277, -0.1251881718635559, 0.0438099130988121, 0.11713773012161255, 0.11536981910467148, 0.15274910628795624, 0.012164093554019928, 0.4706030786037445, 0.17945469915866852, 0.24139170348644257, 0.32413554191589355, 0.13578784465789795, 0.045819565653800964, -0.11999103426933289, -0.14567658305168152, -0.004932239651679993, -0.10802148282527924, 0.10959894955158234, 0.013899583369493484, 0.14216981828212738, -0.004658937454223633, -0.30378198623657227, -0.1372007429599762, 0.24619200825691223, -0.25553175806999207, 0.10961121320724487, 0.05717797577381134, -0.1166890561580658, -0.06666421890258789, 0.06466294080018997, 0.056155961006879807, -0.20389002561569214, -0.2721969485282898, 0.266377717256546, -0.2021350860595703, -0.06400515139102936, -0.06555259227752686, 0.21396876871585846, -0.25334006547927856, -0.09135416150093079, 0.4351052939891815, 0.09192511439323425, -0.14985637366771698, 0.10680142045021057, 0.11849494278430939, -0.11015087366104126, -0.1591196060180664, -0.30912715196609497, 0.06440363824367523, 0.2533024549484253, -0.18153220415115356, -0.1403745859861374, 0.28057578206062317, 0.5617469549179077, 0.20893213152885437, 0.2611389458179474, 0.11852751672267914, -0.09660185873508453, 0.02508872002363205, 0.2744984030723572, 0.02626999095082283, -0.17153386771678925, 0.17271296679973602, -0.1618005782365799, 0.07897058129310608, -0.43730127811431885, -0.11651702225208282, -0.44307851791381836, -0.03607647120952606, -0.09945511817932129, -0.16016177833080292, -0.10824979841709137, -0.1452096700668335, 0.0955013632774353, -0.1738530546426773, 0.2952965795993805, 0.4899110496044159, 0.28075993061065674, -0.21859857439994812, -0.4658299684524536, -0.24787524342536926, -0.08615098893642426, -0.006959191989153624, 0.2598722577095032, 0.04676896333694458, 0.3083919286727905, 0.33729252219200134, 0.21347127854824066, 0.10283807665109634, 0.35061541199684143, -0.23405247926712036, -0.042821310460567474, -0.49537378549575806, -0.21086819469928741, -0.031165651977062225, 0.4508550465106964, -0.0775640532374382, 0.06452257931232452, 0.1477777361869812, 0.18143564462661743, -0.030583366751670837, -0.2744167447090149, -0.3053382933139801, -0.07245504856109619, 0.018419189378619194, 0.5293850898742676, 0.1815386265516281, 0.08556152880191803, -0.13950107991695404, 0.019793108105659485, 0.16578464210033417, -0.38206011056900024, -0.014118332415819168, 0.26947447657585144, 0.022281378507614136, 0.03346237540245056, -0.06019597128033638, -0.1295228898525238, 0.03925250843167305, 0.17523875832557678, 0.03194836527109146, -0.17242923378944397, -0.32609233260154724, 0.23492059111595154, 0.019138015806674957, 0.10853608697652817, 0.010862335562705994, 0.3288312256336212, -0.02696019411087036, -0.2470645010471344, -0.22329863905906677, 0.1386553794145584, 0.07274898141622543, -0.2553524672985077, 0.03240175545215607, -0.22190749645233154, -0.019335277378559113, 0.020509758964180946, -0.042711034417152405, -0.270452082157135, -0.004465177655220032, 0.37684911489486694, 0.13952814042568207, 0.028606370091438293, 0.24391645193099976, 0.06680670380592346, 0.18476015329360962, -0.13730007410049438, 0.3015003502368927, 0.2160293608903885, -0.2874203622341156, 0.05568039417266846, -0.10761824250221252 ]
https://github.com/huggingface/datasets/issues/2135
Hi @lhoestq thank you very much for coming back to me, now I see, you are right, in the link you sent I see split of {split}-context-{context_language}-question-{question_language}.json with context_language=question_language=en, TFDS most probably has extracted english ones from these files as en language files, but translate-train/test do not have en indeed. thanks a lot for the great explanations
en language data from MLQA dataset is missing
Hi I need mlqa-translate-train.en dataset, but it is missing from the MLQA dataset. could you have a look please? @lhoestq thank you for your help to fix this issue.
57
en language data from MLQA dataset is missing Hi I need mlqa-translate-train.en dataset, but it is missing from the MLQA dataset. could you have a look please? @lhoestq thank you for your help to fix this issue. Hi @lhoestq thank you very much for coming back to me, now I see, you are right, in the link you sent I see split of {split}-context-{context_language}-question-{question_language}.json with context_language=question_language=en, TFDS most probably has extracted english ones from these files as en language files, but translate-train/test do not have en indeed. thanks a lot for the great explanations
[ -0.04081963747739792, -0.0362207293510437, -0.17737697064876556, 0.3228131830692291, 0.1323034167289734, 0.2861718535423279, 0.09528365731239319, 0.10732778161764145, -0.23436030745506287, 0.11953598260879517, 0.09481590241193771, 0.051393039524555206, 0.16803935170173645, 0.5239027142524719, 0.20629674196243286, -0.4014206826686859, -0.07165984809398651, 0.0019193552434444427, -0.1759999394416809, -0.3533484935760498, 0.0575278103351593, 0.454635351896286, -0.13368073105812073, 0.09774327278137207, -0.2835980951786041, 0.09724924713373184, -0.40787237882614136, 0.20861567556858063, 0.10868516564369202, 0.060702480375766754, 0.20697364211082458, -0.3061187267303467, 0.1648242473602295, 0.0024820715188980103, -0.00010264413140248507, 0.0339445099234581, 0.056222256273031235, -0.33168095350265503, -0.12457118928432465, -0.3011200726032257, -0.29367297887802124, -0.11660315096378326, -0.19136744737625122, -0.2669696807861328, -0.21002915501594543, -0.16008661687374115, 0.010259643197059631, -0.40254223346710205, 0.29452192783355713, 0.39692223072052, 0.22444027662277222, 0.05971004068851471, 0.11150819063186646, -0.07509608566761017, 0.14726237952709198, 0.01795867085456848, 0.15389493107795715, 0.09096100926399231, 0.1666128933429718, 0.034272320568561554, 0.1306973546743393, 0.5047556161880493, 0.20613840222358704, -0.1100769191980362, -0.2966980040073395, 0.13190096616744995, 0.24869509041309357, -0.6032837629318237, 0.24110384285449982, 0.37631312012672424, 0.5104178190231323, -0.04047756269574165, -0.2418508529663086, -0.14482557773590088, -0.01362559199333191, 0.09937164932489395, 0.1884402632713318, 0.2149868607521057, -0.12089954316616058, 0.2852536737918854, -0.018518902361392975, -0.3122231960296631, -0.056425970047712326, 0.15630175173282623, -0.4507119655609131, 0.2781146168708801, 0.059866052120923996, -0.027246221899986267, -0.20763543248176575, 0.07203392684459686, 0.21417024731636047, 0.0857238844037056, -0.2254953682422638, 0.17900189757347107, -0.22127307951450348, -0.21234503388404846, 0.001337144523859024, -0.20442593097686768, -0.078794926404953, -0.17167221009731293, -0.500216007232666, 0.0687912255525589, -0.07584019005298615, 0.055339980870485306, 0.15065796673297882, 0.14257869124412537, 0.07421155273914337, -0.00004089623689651489, -0.034567493945360184, -0.5035305023193359, -0.12696042656898499, -0.10954733937978745, -0.05714549869298935, -0.0474245660007, -0.5842801332473755, 0.2645854651927948, -0.048934243619441986, -0.2018539309501648, -0.2747575640678406, -0.05573612079024315, -0.6679559946060181, -0.26369789242744446, -0.16300687193870544, 0.05845474451780319, 0.20757953822612762, 0.14288130402565002, 0.0831872820854187, 0.13119861483573914, -0.3226512670516968, -0.4529734253883362, -0.2833186984062195, 0.2836950421333313, -0.045245375484228134, -0.16501659154891968, -0.06615681946277618, 0.2656957507133484, 0.5278737545013428, -0.25568822026252747, -0.0366104319691658, -0.01100069284439087, 0.0745299905538559, -0.1067349910736084, 0.07691341638565063, 0.08895949274301529, 0.19627483189105988, 0.07636857777833939, 0.08432766050100327, -0.18464073538780212, 0.015257611870765686, 0.2290402054786682, -0.4823005199432373, -0.03964066505432129, -0.18211393058300018, 0.26901984214782715, -0.10232285410165787, -0.2360185980796814, 0.15030330419540405, 0.6440030932426453, 0.11932221055030823, -0.01797148585319519, 0.13290557265281677, -0.04034346342086792, -0.19531509280204773, 0.08681952953338623, 0.2072446644306183, 0.22321173548698425, -0.7090597152709961, -0.2352011501789093, 0.23119668662548065, -0.1255781650543213, 0.06491968035697937, 0.2192750722169876, -0.18164867162704468, 0.2974400520324707, -0.2996007204055786, 0.36316606402397156, 0.12459242343902588, -0.3740583062171936, -0.11854732036590576, 0.26198282837867737, 0.01066194474697113, -0.16342654824256897, -0.1058034598827362, -0.1710815578699112, 0.16010814905166626, 0.031851477921009064, 0.029290087521076202, 0.3716142475605011, -0.21976768970489502, -0.12560006976127625, -0.1732640564441681, -0.1923580765724182, 0.5057455897331238, 0.19416974484920502, 0.16414359211921692, -0.18534845113754272, 0.04511910304427147, 0.11443039029836655, 0.2556924521923065, -0.23230645060539246, 0.08955428004264832, 0.4553658068180084, -0.12928900122642517, -0.06700725853443146, 0.23148393630981445, -0.11672592163085938, -0.2401203215122223, 0.030954480171203613, -0.5036658048629761, 0.20670004189014435, -0.06759490072727203, 0.04711329936981201, -0.11410371959209442, -0.16908925771713257, -0.15019026398658752, -0.26637694239616394, 0.21856674551963806, -0.12827017903327942, -0.15012916922569275, 0.5255808234214783, 0.12108069658279419, -0.032345227897167206, 0.036235325038433075, -0.10842369496822357, -0.1963132619857788, 0.48804616928100586, -0.1885196715593338, 0.03128759190440178, 0.14493170380592346, 0.39600834250450134, 0.10079516470432281, -0.23719385266304016, -0.19935697317123413, 0.03582678735256195, 0.010408323258161545, 0.23049214482307434, 0.012462317943572998, -0.05731184035539627, 0.4358994960784912, -0.2884271740913391, -0.039366595447063446, 0.12499046325683594, 0.05712568759918213, -0.010062552988529205, -0.1664895862340927, 0.3173392415046692, 0.14178875088691711, -0.015454467386007309, 0.08205743134021759, 0.156001016497612, 0.27449196577072144, -0.2671563923358917, 0.15162116289138794, -0.24897758662700653, 0.13652768731117249, -0.10086990892887115, -0.026379860937595367, -0.015285629779100418, -0.05003191530704498, 0.3457326889038086, 0.9597111940383911, -0.03877685219049454, 0.032434798777103424, 0.10888145864009857, -0.243854820728302, -0.24859508872032166, 0.33271458745002747, 0.2219969481229782, 0.36813658475875854, 0.2550664246082306, 0.278622031211853, -0.059629619121551514, 0.3849780261516571, -0.21708230674266815, 0.24788209795951843, 0.1016416847705841, 0.1226855143904686, -0.060264766216278076, 0.011121328920125961, -0.11781011521816254, -0.3725440502166748, 0.23367342352867126, 0.2865144610404968, 0.20049604773521423, -0.029794402420520782, 0.2682926654815674, -0.531076192855835, -0.6335398554801941, -0.04197866469621658, -0.2432369738817215, -0.142795130610466, -0.24815872311592102, 0.27258235216140747, -0.5574782490730286, -0.10854712128639221, 0.2909506559371948, 0.44108712673187256, -0.09191188216209412, -0.17882318794727325, 0.13530199229717255, -0.23543289303779602, -0.2749876081943512, -0.5670453906059265, 0.20507508516311646, 0.09319247305393219, 0.17030839622020721, 0.12062542140483856, -0.24402394890785217, 0.0810176283121109, -0.04373474419116974, -0.49811720848083496, 0.17005878686904907, -0.20027220249176025, 0.2816326916217804, -0.06352916359901428, 0.0004733279347419739, -0.45952877402305603, -0.04408024996519089, 0.07052536308765411, 0.17099478840827942, -0.3872295022010803, 0.009374067187309265, -0.02627282403409481, -0.052198152989149094, -0.15762875974178314, -0.7814692854881287, -0.548257052898407, -0.06360839307308197, -0.13230694830417633, -0.12322547286748886, 0.03070097044110298, -0.02213289961218834, -0.13140785694122314, 0.04219776764512062, 0.04728265851736069, -0.10798682272434235, -0.3893263041973114, -0.12678730487823486, 0.14312230050563812, -0.15544256567955017, -0.3047044575214386, 0.23665739595890045, 0.048176273703575134, 0.42256659269332886, -0.2196069210767746, -0.34729695320129395, -0.12046539038419724, 0.056391641497612, 0.10773470997810364, -0.3534255027770996, -0.1191999539732933, 0.5090577006340027, -0.017927754670381546, -0.008925814181566238, -0.15156807005405426, 0.03823511302471161, 0.12335643172264099, 0.27825844287872314, 0.3899998366832733, -0.4099953770637512, 0.5990191698074341, 0.3242694139480591, 0.2691345810890198, 0.12650439143180847, 0.14265181124210358, 0.14329326152801514, -0.06588266789913177, 0.1140458732843399, -0.08234483748674393, -0.06945967674255371, 0.4828377664089203, 0.0637093335390091, 0.02725483477115631, 0.4788176119327545, -0.024516992270946503, -0.1713118851184845, -0.1844298243522644, -0.1877020299434662, -0.16594049334526062, -0.20197893679141998, -0.06228230148553848, -0.43255987763404846, 0.3646170198917389, 0.2551710307598114, 0.2961046099662781, 0.15276290476322174, 0.015542231500148773, 0.21429669857025146, 0.08512057363986969, 0.28498977422714233, 0.1448104828596115, -0.65915447473526, -0.45038530230522156, -0.1865547001361847, 0.12342618405818939, 0.08550818264484406, 0.23876406252384186, -0.27296024560928345, 0.17748449742794037, 0.23632745444774628, 0.03627348691225052, 0.6784835457801819, -0.25640860199928284, -0.2933887243270874, 0.09358103573322296, 0.11324511468410492, 0.05369687080383301, 0.006119072437286377, -0.08518551290035248, 0.30441024899482727, 0.33563941717147827, -0.0737801343202591, -0.20370227098464966, -0.2334936261177063, 0.07253510504961014, 0.2756064236164093, -0.36228713393211365, 0.0017337389290332794, 0.018309809267520905, -0.31846556067466736, -0.20575614273548126, -0.11923599243164062, 0.24984177947044373, -0.0027278363704681396, 0.055480822920799255, -0.08686591684818268, 0.2147667109966278, 0.03213389217853546, -0.026100873947143555, 0.12678295373916626, 0.2505825161933899, 0.022689908742904663, -0.049306124448776245, -0.006811307743191719, 0.13306082785129547, 0.013335919007658958, 0.19027811288833618, -0.04477972537279129, -0.18398991227149963, 0.11420159041881561, -0.38864797353744507, 0.48011642694473267, 0.13025768101215363, -0.02237415686249733, 0.021154113113880157, 0.2246543914079666, -0.16372531652450562, -0.061212651431560516, -0.056425489485263824, 0.31833744049072266, 0.0541258342564106, -0.08471253514289856, -0.25314587354660034, 0.01576676219701767, -0.19687263667583466, 0.07394123077392578, -0.13694587349891663, -0.07912012189626694, -0.3975171744823456, 0.4556831419467926, 0.12128046154975891, 0.7878768444061279, 0.13909953832626343, 0.1330154687166214, 0.14845703542232513, -0.2146419882774353, 0.34691137075424194, -0.19967544078826904, 0.05097556114196777, -0.0857914462685585, 0.08085568994283676, -0.16842040419578552, 0.21171081066131592, -0.01766142062842846, 0.3485622704029083, -0.15590478479862213, 0.3202444911003113, 0.34865909814834595, -0.2753967046737671, 0.3074084520339966, 0.06920060515403748, 0.22059257328510284, -0.0945587009191513, -0.057392798364162445, 0.1753157079219818, 0.1122533455491066, 0.2840488851070404, -0.042105190455913544, -0.2589121460914612, 0.08538967370986938, -0.0583689846098423, -0.22405970096588135, 0.0409725159406662, -0.35534071922302246, 0.21020546555519104, -0.11733092367649078, -0.4628448784351349, 0.31209248304367065, 0.2903686761856079, 0.3461304306983948, 0.14907798171043396, -0.28013816475868225, 0.48505645990371704, 0.09236987680196762, 0.18337808549404144, 0.3302989900112152, -0.06014759838581085, 0.417502760887146, -0.21935950219631195, -0.24750573933124542, 0.1360425353050232, -0.22737793624401093, 0.1020636260509491, -0.6504194736480713, 0.08046317845582962, 0.008220567367970943, 0.11275053024291992, -0.106050044298172, 0.10847698152065277, 0.06698840111494064, -0.2709408402442932, 0.16266347467899323, 0.15678463876247406, -0.10533517599105835, 0.22857238352298737, -0.16228649020195007, -0.07243192940950394, -0.18190425634384155, 0.20746630430221558, 0.22942529618740082, 0.03506730496883392, 0.6080000996589661, 0.17757286131381989, -0.014187872409820557, -0.25412851572036743, 0.1796359270811081, -0.06657803058624268, -0.3251992166042328, -0.047948967665433884, 0.21892759203910828, 0.20516647398471832, -0.08501452207565308, 0.09719796478748322, -0.13671942055225372, -0.27690771222114563, -0.04898769408464432, -0.40963661670684814, -0.09449407458305359, 0.21288026869297028, -0.033742599189281464, -0.2400589883327484, 0.11490639299154282, 0.3987498879432678, 0.10661443322896957, 0.1629970222711563, -0.3291783928871155, 0.215585395693779, -0.21831604838371277, 0.1608196496963501, -0.12145756930112839, -0.07087627053260803, 0.2643532454967499, -0.011117085814476013, 0.08178120106458664, -0.12842267751693726, 0.061726707965135574, -0.21299001574516296, -0.0690183937549591, 0.03854849934577942, 0.10842247307300568, 0.15459531545639038, 0.09858427941799164, -0.17699140310287476, -0.09058218449354172, 0.222905695438385, -0.03251903876662254, -0.085741326212883, 0.0031746160238981247, 0.38124918937683105, -0.056338317692279816, 0.003446349874138832, -0.2623739242553711, 0.01918964833021164, 0.24125191569328308, -0.0005893409252166748, 0.12440444529056549, 0.1977640688419342, 0.27566203474998474, 0.00102253258228302, -0.20143160223960876, -0.22187267243862152, -0.17087620496749878, 0.024308741092681885, 0.26979905366897583, -0.2374148666858673, 0.05731162428855896, 0.05470260977745056, -0.06519543379545212, -0.060750074684619904, -0.2839908301830292, 0.22370153665542603, 0.3925495743751526, 0.2249377816915512, -0.43443000316619873, 0.03775699436664581, 0.08203776180744171, -0.2965414822101593, -0.009194664657115936, -0.0663658156991005, 0.27313804626464844, 0.2848382890224457, 0.474773108959198, 0.08647456765174866, 0.17846481502056122, -0.2362237572669983, 0.006864640861749649, 0.14353546500205994, -0.1436453014612198, 0.17661984264850616, 0.1010347455739975, -0.1597585380077362, 0.026766283437609673, 0.3241797089576721, 0.20220765471458435, 0.2690441608428955, 0.11702921986579895, 0.27101173996925354, 0.06894463300704956, -0.19395405054092407, -0.18261027336120605, -0.04390259087085724, 0.00420558825135231, 0.008567588403820992, 0.10694347321987152, 0.2234368622303009, 0.027610529214143753, -0.2771238684654236, -0.12739382684230804, 0.3374984860420227, -0.2935267984867096, -0.022501394152641296, 0.12566277384757996, -0.045394159853458405, -0.016680903732776642, -0.0035409554839134216, -0.1144258975982666, -0.09687751531600952, -0.22487881779670715, 0.2747928500175476, -0.2744383215904236, 0.0866866335272789, -0.23340663313865662, 0.010131683200597763, -0.24661079049110413, -0.022603772580623627, 0.5441876649856567, 0.11209678649902344, -0.07895135134458542, 0.04018557816743851, -0.006309380754828453, 0.004629670642316341, -0.17317692935466766, -0.3625848889350891, -0.036551833152770996, 0.04425191506743431, -0.14448226988315582, 0.0325331836938858, 0.4947677254676819, 0.26125550270080566, 0.1904449164867401, 0.2604638636112213, 0.17381496727466583, -0.14750011265277863, 0.1729813814163208, 0.300262451171875, -0.07970862090587616, -0.2932744026184082, 0.16766119003295898, -0.08615820109844208, 0.07681833207607269, -0.32405394315719604, -0.25296691060066223, -0.4617141783237457, 0.06575141847133636, -0.1046210527420044, -0.1675475537776947, -0.09575429558753967, -0.09881871938705444, 0.11945518106222153, -0.14261704683303833, 0.3566008508205414, 0.34047234058380127, 0.13411486148834229, -0.10071435570716858, -0.25546813011169434, -0.3600754737854004, -0.07836951315402985, 0.06680360436439514, 0.15858083963394165, -0.1292598694562912, 0.17155320942401886, 0.476270467042923, 0.046480387449264526, 0.04918758571147919, 0.1647154837846756, -0.07087011635303497, -0.057592038065195084, -0.4569232165813446, -0.2759057879447937, -0.19507825374603271, 0.3763602375984192, -0.13804465532302856, -0.007304593920707703, 0.14547371864318848, 0.4115009307861328, -0.0047127604484558105, -0.33504965901374817, -0.05863240733742714, 0.11860795319080353, -0.02554495632648468, 0.3235163390636444, 0.3283950984477997, 0.29397207498550415, -0.19256865978240967, 0.2201743870973587, 0.1869620680809021, -0.24653907120227814, -0.09619945287704468, 0.2874067425727844, 0.08645143359899521, 0.18414929509162903, 0.006916597485542297, -0.20390617847442627, -0.054304350167512894, 0.2042928785085678, 0.014712154865264893, -0.12213797122240067, -0.3691651225090027, 0.23346620798110962, 0.027979359030723572, -0.02481848932802677, 0.27510780096054077, 0.4426380395889282, -0.059726111590862274, -0.18239596486091614, -0.31702476739883423, -0.00016867369413375854, 0.1756589412689209, -0.21049241721630096, -0.1348283886909485, 0.04751738905906677, 0.005232568830251694, -0.008462391793727875, -0.10495831817388535, -0.2532361149787903, -0.038987450301647186, 0.4291750192642212, 0.11308032274246216, 0.13068780303001404, 0.4553573429584503, 0.3467690646648407, 0.14563241600990295, -0.05244847387075424, 0.12529423832893372, 0.2982238829135895, -0.22897693514823914, 0.16356781125068665, -0.12159039080142975 ]
https://github.com/huggingface/datasets/issues/2135
I close the ticket, since I do not see any en existing, they have trained on "SQuAD V1.1" instead. Thanks.
en language data from MLQA dataset is missing
Hi I need mlqa-translate-train.en dataset, but it is missing from the MLQA dataset. could you have a look please? @lhoestq thank you for your help to fix this issue.
20
en language data from MLQA dataset is missing Hi I need mlqa-translate-train.en dataset, but it is missing from the MLQA dataset. could you have a look please? @lhoestq thank you for your help to fix this issue. I close the ticket, since I do not see any en existing, they have trained on "SQuAD V1.1" instead. Thanks.
[ -0.06140514090657234, -0.055039435625076294, -0.1854836791753769, 0.08395898342132568, 0.1434617042541504, 0.2676544487476349, 0.1858891248703003, -0.041590720415115356, -0.18070101737976074, 0.14829465746879578, 0.22839897871017456, 0.19727559387683868, 0.1776249259710312, 0.33834463357925415, 0.3166698217391968, -0.24786972999572754, -0.04849085584282875, -0.017990287393331528, -0.04847918078303337, -0.4285932779312134, 0.054155051708221436, 0.23525965213775635, -0.357439786195755, 0.0050520747900009155, -0.21835501492023468, 0.15665459632873535, -0.3980647623538971, 0.18773725628852844, 0.059865355491638184, -0.13596509397029877, 0.2692224681377411, -0.3328850567340851, 0.3129376769065857, -0.254080593585968, -0.00010567742720013484, 0.012220509350299835, 0.08119827508926392, -0.4159364700317383, -0.19932840764522552, -0.1626034379005432, -0.28806233406066895, -0.2823454439640045, -0.2393745630979538, -0.26480546593666077, -0.21933424472808838, 0.22012042999267578, 0.3443271517753601, -0.5083242058753967, 0.33208519220352173, 0.38189390301704407, 0.19688880443572998, 0.03956497460603714, 0.09266030788421631, -0.15240740776062012, -0.009336717426776886, -0.07299871742725372, 0.14974460005760193, -0.0014475807547569275, 0.27381178736686707, -0.06781985610723495, 0.1563994139432907, 0.4081830382347107, 0.2631129026412964, -0.21740463376045227, -0.09668230265378952, 0.1399405151605606, 0.408986359834671, -0.5473687052726746, 0.13749007880687714, 0.09931984543800354, 0.3717149794101715, -0.1057601198554039, -0.37589335441589355, -0.019403576850891113, 0.26594406366348267, -0.015093855559825897, 0.181255042552948, 0.3444666862487793, -0.1382594108581543, 0.20900993049144745, -0.027123471722006798, -0.3029954135417938, -0.1229962408542633, 0.14390629529953003, -0.32190561294555664, 0.277784526348114, 0.1805320531129837, -0.060595426708459854, -0.15985921025276184, 0.12926363945007324, 0.2392047494649887, 0.20684729516506195, -0.12836068868637085, 0.28119462728500366, -0.33185094594955444, -0.2662266790866852, -0.06947683542966843, -0.17091301083564758, -0.09412894397974014, -0.3655151128768921, -0.34248536825180054, 0.11826714128255844, 0.1825283169746399, 0.08521974086761475, 0.16514244675636292, 0.004416000097990036, 0.2554106116294861, 0.07121489942073822, -0.06916647404432297, -0.42495790123939514, -0.040589600801467896, -0.031613726168870926, -0.11650624871253967, -0.05573821812868118, -0.46606919169425964, 0.3323320150375366, -0.060732342302799225, -0.23914042115211487, -0.39663586020469666, 0.07304622232913971, -0.6150509119033813, -0.09287133067846298, -0.04603865370154381, 0.08604796230792999, 0.06892307847738266, -0.0985741913318634, -0.03076537325978279, 0.09246405959129333, -0.227439284324646, -0.48222753405570984, -0.23625458776950836, 0.26265454292297363, -0.14905282855033875, -0.15552881360054016, -0.051212377846241, 0.10217773914337158, 0.42116042971611023, -0.1078578382730484, -0.03330381587147713, 0.08050811290740967, 0.1542166918516159, -0.07778492569923401, 0.09426441788673401, -0.06500502675771713, 0.18209829926490784, 0.020961113274097443, -0.005597557406872511, -0.36662060022354126, 0.11885938048362732, 0.22239339351654053, -0.5026969909667969, -0.08695186674594879, -0.34096166491508484, 0.22059494256973267, -0.06341344863176346, -0.29100000858306885, 0.40008407831192017, 0.4645345211029053, -0.029091790318489075, -0.011688344180583954, 0.19162705540657043, 0.015274619683623314, -0.16553348302841187, 0.05871712788939476, 0.18392568826675415, 0.24792927503585815, -0.6743544936180115, -0.31533798575401306, 0.203463613986969, -0.035210009664297104, 0.19682949781417847, 0.23015102744102478, -0.2615666687488556, 0.0696142390370369, -0.19408029317855835, 0.11215896904468536, 0.1704314649105072, -0.6116737723350525, -0.36770394444465637, 0.02228844165802002, -0.07799816131591797, -0.377644419670105, -0.14486926794052124, 0.0998806357383728, 0.26107075810432434, -0.0236979853361845, 0.25798365473747253, 0.3530295789241791, -0.17831626534461975, -0.1971263885498047, -0.1738872230052948, -0.05279100686311722, 0.26277294754981995, 0.36545273661613464, 0.14844609797000885, -0.26311835646629333, 0.048510342836380005, 0.14260542392730713, 0.1779533326625824, -0.23172463476657867, 0.17254021763801575, 0.5178678631782532, -0.08054424822330475, -0.06350406259298325, 0.058481503278017044, 0.19553135335445404, -0.2065802812576294, 0.016348853707313538, -0.780002236366272, 0.21386243402957916, -0.013261500746011734, -0.1210639625787735, -0.061270177364349365, -0.04537934437394142, -0.22606055438518524, -0.2495139241218567, 0.18184782564640045, -0.3295173943042755, -0.16325482726097107, 0.3572048842906952, 0.10284512490034103, 0.11054366081953049, -0.13550470769405365, 0.03496623784303665, -0.19377316534519196, 0.44841641187667847, -0.33516958355903625, 0.00821579247713089, 0.1537078320980072, 0.4459814131259918, 0.12352408468723297, -0.034422989934682846, -0.005125449970364571, -0.049726370722055435, -0.03725958988070488, 0.0708751380443573, 0.26490917801856995, -0.2318829447031021, 0.5788725018501282, -0.3073805570602417, 0.19093908369541168, 0.126710906624794, 0.01650088280439377, 0.03563253581523895, -0.36852511763572693, 0.32606494426727295, 0.24988815188407898, -0.28397682309150696, 0.0070401206612586975, 0.3589637577533722, 0.137534499168396, -0.14519089460372925, -0.0582830049097538, -0.11054305732250214, 0.1184333860874176, 0.011899113655090332, 0.004400596022605896, 0.07758241891860962, -0.11258233338594437, 0.11532481759786606, 0.75965815782547, 0.2361644208431244, 0.24543774127960205, 0.05136262625455856, -0.2074974626302719, -0.17958076298236847, 0.3047199249267578, 0.08398701250553131, 0.23999018967151642, 0.16670754551887512, 0.09103129804134369, -0.06724575906991959, 0.2820442318916321, -0.09702683985233307, 0.2189871072769165, 0.022077392786741257, 0.1279478818178177, -0.21761812269687653, 0.06402134150266647, -0.04492295905947685, -0.35685431957244873, 0.06357816606760025, 0.23875148594379425, 0.14985136687755585, 0.02127832919359207, 0.07853098213672638, -0.37089672684669495, -0.5073182582855225, -0.13643039762973785, -0.2138952910900116, -0.25165465474128723, -0.11846578121185303, 0.20095336437225342, -0.7401013970375061, 0.12313786149024963, 0.33317679166793823, 0.335840106010437, -0.04235506057739258, 0.028085723519325256, 0.08196056634187698, 0.009855158627033234, -0.1406044214963913, -0.34906744956970215, 0.12823835015296936, -0.04012233763933182, -0.003006700426340103, -0.046261295676231384, 0.005860812962055206, 0.17686164379119873, -0.24862514436244965, -0.4871397614479065, 0.07775858044624329, 0.00579465925693512, 0.2682497501373291, -0.008644688874483109, 0.01888064667582512, -0.7526344060897827, 0.009931974112987518, 0.11845964938402176, 0.22367528080940247, -0.34055787324905396, -0.1409541666507721, -0.1712237000465393, -0.10472702980041504, -0.02484748512506485, -0.646824836730957, -0.7372848987579346, 0.03053094446659088, -0.14590370655059814, -0.009517580270767212, 0.007613743655383587, 0.04576229676604271, -0.07727624475955963, 0.07280758023262024, -0.0398348867893219, -0.21962100267410278, -0.42903226613998413, -0.24558737874031067, 0.29605889320373535, -0.03117106668651104, -0.361607164144516, 0.1702854186296463, -0.010329365730285645, 0.45336589217185974, -0.19001489877700806, -0.3280901312828064, -0.17655175924301147, 0.32186129689216614, -0.020632095634937286, -0.36686432361602783, -0.053115956485271454, 0.503251314163208, -0.03597327694296837, 0.007629722356796265, -0.11054223030805588, -0.23250867426395416, 0.07137252390384674, 0.34017133712768555, 0.5897237658500671, -0.5921169519424438, 0.4528934359550476, 0.27506664395332336, 0.2953698933124542, 0.1158093810081482, 0.1370682418346405, 0.1581319123506546, -0.02874598652124405, 0.13987907767295837, 0.16147293150424957, -0.1506820172071457, 0.5780957937240601, 0.07133407145738602, 0.05263689160346985, 0.3350735008716583, -0.027941808104515076, -0.39294618368148804, -0.16919076442718506, -0.12853717803955078, -0.07869435101747513, -0.11819158494472504, -0.0027434956282377243, -0.18994790315628052, 0.3600899279117584, 0.2566945254802704, 0.4055577516555786, -0.01710505038499832, -0.07360108941793442, -0.028591075912117958, 0.04004830867052078, 0.3247719407081604, 0.1903122514486313, -0.6184050440788269, -0.578843355178833, -0.11884327977895737, 0.12252452969551086, -0.02855760231614113, 0.5415171980857849, -0.10554062575101852, 0.20246632397174835, 0.26169681549072266, 0.1445034146308899, 0.5555586814880371, -0.24306850135326385, -0.3454244136810303, -0.13149002194404602, 0.28811195492744446, -0.19186235964298248, 0.00038808584213256836, 0.029463745653629303, 0.3925947844982147, 0.4314257502555847, -0.2314029335975647, -0.008748441934585571, -0.08132973313331604, 0.380135178565979, -0.034382037818431854, -0.2577846348285675, 0.038674794137477875, -0.23408672213554382, -0.19544626772403717, -0.22077101469039917, 0.19568651914596558, 0.09672091901302338, -0.12456153333187103, 0.2882356345653534, -0.1875130534172058, 0.2321537435054779, 0.15947318077087402, -0.006761863827705383, 0.11883030086755753, 0.28442808985710144, 0.09320183098316193, -0.05744731426239014, 0.1403883695602417, 0.2352665364742279, -0.0003657285124063492, 0.1646571308374405, -0.028707223013043404, -0.26870444416999817, 0.3077232837677002, -0.3710044026374817, 0.6595484018325806, 0.22516267001628876, 0.09235649555921555, 0.11564663052558899, 0.30280354619026184, -0.2651195526123047, 0.07417640089988708, -0.23050791025161743, 0.2964478135108948, 0.25822916626930237, -0.2570075988769531, -0.23141203820705414, -0.0073867067694664, -0.07778117060661316, 0.1871107667684555, -0.22830204665660858, -0.06875532120466232, -0.16710761189460754, 0.4020504951477051, 0.18256743252277374, 0.8222818970680237, 0.04118594527244568, 0.10292179882526398, -0.12513305246829987, -0.10520893335342407, 0.26316016912460327, -0.1953304260969162, 0.2854101359844208, -0.22736823558807373, -0.05762232095003128, -0.16828101873397827, 0.017270147800445557, 0.19193106889724731, 0.4000086784362793, -0.33386093378067017, 0.29941797256469727, 0.30046090483665466, -0.17761161923408508, 0.21759767830371857, 0.06084953248500824, 0.06376094371080399, -0.21009239554405212, -0.33789917826652527, 0.1408400684595108, 0.08053375780582428, 0.36424943804740906, -0.24495083093643188, -0.14196808636188507, 0.10688620805740356, -0.07848571240901947, -0.13260377943515778, 0.014489129185676575, -0.3802136778831482, 0.18749524652957916, -0.011334093287587166, -0.49106118083000183, 0.287021279335022, 0.47739744186401367, 0.36431729793548584, 0.3550557494163513, -0.217139333486557, 0.5245863795280457, 0.1262669712305069, 0.014423836022615433, 0.3423660695552826, 0.004778601229190826, 0.20609302818775177, -0.22442099452018738, -0.3705041706562042, 0.2566949427127838, -0.09615962207317352, -0.03234797716140747, -0.5521186590194702, 0.29688355326652527, 0.16793794929981232, 0.19473713636398315, 0.01816391572356224, 0.09703318774700165, 0.07224714756011963, -0.22226640582084656, 0.13372978568077087, 0.22411774098873138, -0.037812985479831696, 0.25647056102752686, 0.16618874669075012, -0.10437122732400894, -0.12689131498336792, 0.36877986788749695, 0.21474583446979523, -0.05326884984970093, 0.5588970184326172, 0.059247344732284546, 0.03426135331392288, -0.25406888127326965, 0.12393416464328766, -0.07396846264600754, -0.13756880164146423, -0.26239150762557983, 0.14522503316402435, 0.1997596174478531, -0.029299350455403328, -0.20722346007823944, -0.06446292251348495, -0.388312965631485, -0.06224293261766434, -0.3872435688972473, -0.27528834342956543, 0.07541000843048096, -0.11338939517736435, -0.1229308545589447, 0.21240462362766266, 0.16497039794921875, 0.24959897994995117, 0.07818257808685303, -0.32275649905204773, 0.16795149445533752, -0.3973314166069031, 0.2239513248205185, -0.015678349882364273, -0.22132715582847595, 0.11067336797714233, -0.10903141647577286, 0.11548852175474167, -0.0890561118721962, -0.044408395886421204, -0.1464460790157318, 0.2121853232383728, 0.055163443088531494, -0.06510912626981735, 0.26404306292533875, 0.013386454433202744, -0.1056007519364357, -0.22856733202934265, 0.2656399607658386, -0.1158115565776825, -0.0032506734132766724, 0.09551696479320526, 0.32604748010635376, -0.11002570390701294, 0.03831706941127777, -0.08060240745544434, -0.14500458538532257, 0.31471431255340576, -0.046280018985271454, 0.13287657499313354, 0.3403071165084839, 0.2551242411136627, -0.03659399598836899, -0.1440807282924652, -0.04597941040992737, -0.022745735943317413, 0.228186696767807, 0.16985639929771423, -0.35228806734085083, 0.01590663194656372, 0.18607838451862335, -0.22501906752586365, -0.056457675993442535, -0.30327108502388, 0.2272312343120575, 0.36371544003486633, 0.2269958257675171, -0.5343983173370361, 0.0066710300743579865, 0.23716235160827637, -0.17295090854167938, -0.013654470443725586, 0.0114741250872612, 0.32773780822753906, 0.26388123631477356, 0.40617865324020386, 0.264531672000885, 0.15140275657176971, -0.3466751277446747, 0.030294809490442276, -0.027523893862962723, 0.010751955211162567, -0.01510528288781643, 0.22585423290729523, -0.12222100794315338, -0.0129910409450531, 0.4565231204032898, 0.08381234854459763, 0.2531339228153229, 0.3350505828857422, 0.19937843084335327, 0.15436911582946777, -0.19667112827301025, -0.233961284160614, 0.16652214527130127, -0.05432092770934105, -0.010510772466659546, 0.12048875540494919, 0.40635576844215393, 0.0876699686050415, -0.42919883131980896, -0.2303832471370697, 0.14840281009674072, -0.4381045401096344, 0.042876407504081726, 0.09610620141029358, -0.05719878524541855, 0.12846821546554565, -0.08542179316282272, 0.06446246057748795, -0.06120903789997101, -0.23367156088352203, 0.19066475331783295, -0.18222588300704956, 0.10389932245016098, 0.021874111145734787, 0.25579580664634705, -0.20545323193073273, -0.10981065034866333, 0.3854256272315979, -0.13900277018547058, -0.12746374309062958, 0.062337473034858704, -0.05195844918489456, -0.015572791919112206, -0.17017224431037903, -0.16379094123840332, 0.15741804242134094, 0.11039639264345169, -0.16937905550003052, 0.005902834236621857, 0.30016645789146423, 0.4074699878692627, 0.057310350239276886, 0.1915334314107895, 0.1729011833667755, -0.0654352530837059, 0.059361688792705536, 0.2738456428050995, -0.07847092300653458, -0.12627306580543518, -0.023539796471595764, 0.062257204204797745, 0.02108122408390045, -0.3662448823451996, -0.16749615967273712, -0.38067758083343506, -0.08891908824443817, 0.038485798984766006, -0.041764095425605774, -0.0341716893017292, -0.19982939958572388, 0.1103360652923584, -0.14576312899589539, 0.265999436378479, 0.3386378288269043, 0.09572836756706238, -0.15068408846855164, -0.20722514390945435, -0.48050257563591003, -0.0058463141322135925, 0.06076575443148613, 0.19426102936267853, -0.057673417031764984, 0.3267645835876465, 0.31329450011253357, 0.16762717068195343, 0.269252210855484, 0.015854764729738235, -0.009658370167016983, -0.10150538384914398, -0.5356664657592773, -0.14283791184425354, 0.06025383621454239, 0.3365086019039154, -0.030146777629852295, -0.027646787464618683, 0.16689568758010864, 0.2043226957321167, 0.009736895561218262, -0.35361719131469727, -0.15985867381095886, -0.07633576542139053, -0.009776931256055832, 0.3959161639213562, 0.08369511365890503, 0.33920422196388245, -0.06689918041229248, 0.17129385471343994, 0.15899226069450378, -0.19782620668411255, -0.02064742147922516, 0.24781155586242676, 0.18920278549194336, 0.11124475300312042, -0.06997782737016678, -0.2354995310306549, 0.018929999321699142, 0.3167833089828491, 0.16631971299648285, -0.17131537199020386, -0.4148258864879608, 0.3683251142501831, 0.06566707789897919, 0.12319161742925644, -0.10911191999912262, 0.23247644305229187, 0.01586102694272995, -0.06531815975904465, -0.21014663577079773, 0.00550437718629837, 0.3044303059577942, -0.156605526804924, 0.013765260577201843, -0.30627912282943726, 0.08109773695468903, -0.10506000369787216, 0.041187673807144165, -0.27892905473709106, -0.08960529416799545, 0.39446625113487244, 0.05177871510386467, 0.051935985684394836, 0.29994845390319824, 0.041810404509305954, 0.18555408716201782, -0.1216881051659584, 0.15291643142700195, 0.09193652868270874, -0.15533781051635742, 0.178364098072052, -0.19173559546470642 ]
https://github.com/huggingface/datasets/issues/2134
Hi ! Indeed `save_to_disk` doesn't call pickle anymore. Though the `OverflowError` can still appear for in-memory datasets bigger than 4GB. This happens when doing this for example: ```python import pyarrow as pa import pickle arr = pa.array([0] * ((4 * 8 << 30) // 64)) table = pa.Table.from_arrays([a], names=["foo"]) pickle.dumps(table) # fails with an OverflowError pickle.dumps(table, 4) # works ! ``` We'll do the change to use `protocol=4`. Moreover I've also seen other users complain about this error ``` struct.error: 'I' format requires 0 <= number <= 4294967295 ``` It looks like something related to the 4GB limit as well but I'm not able to reproduce on my side. Do you think you can provide a script that reproduces the issue ? How big is your dataset ? (number of bytes, number of rows)
Saving large in-memory datasets with save_to_disk crashes because of pickling
Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ```
134
Saving large in-memory datasets with save_to_disk crashes because of pickling Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ``` Hi ! Indeed `save_to_disk` doesn't call pickle anymore. Though the `OverflowError` can still appear for in-memory datasets bigger than 4GB. This happens when doing this for example: ```python import pyarrow as pa import pickle arr = pa.array([0] * ((4 * 8 << 30) // 64)) table = pa.Table.from_arrays([a], names=["foo"]) pickle.dumps(table) # fails with an OverflowError pickle.dumps(table, 4) # works ! ``` We'll do the change to use `protocol=4`. Moreover I've also seen other users complain about this error ``` struct.error: 'I' format requires 0 <= number <= 4294967295 ``` It looks like something related to the 4GB limit as well but I'm not able to reproduce on my side. Do you think you can provide a script that reproduces the issue ? How big is your dataset ? (number of bytes, number of rows)
[ -0.31688857078552246, 0.09959536790847778, 0.11977994441986084, 0.3708880543708801, 0.25212326645851135, 0.0021296292543411255, -0.28349757194519043, 0.46396830677986145, 0.19055691361427307, 0.09646549820899963, 0.08088315278291702, 0.5146647691726685, -0.39890947937965393, 0.2905988097190857, -0.15748031437397003, -0.08337213844060898, 0.22001715004444122, -0.10456167161464691, -0.261580228805542, 0.171036958694458, -0.2519758343696594, -0.1009904071688652, 0.02054096758365631, -0.16596442461013794, -0.1712374985218048, -0.3141445517539978, -0.027155417948961258, 0.39561063051223755, -0.31936803460121155, -0.34529614448547363, -0.1409764289855957, -0.22311559319496155, 0.22814995050430298, 0.3274106979370117, -0.00012185026571387425, 0.038792580366134644, 0.13747429847717285, -0.14756688475608826, -0.49627625942230225, 0.004615187644958496, 0.025355055928230286, -0.5504592061042786, -0.1945045292377472, -0.25041115283966064, 0.33382755517959595, -0.09105396270751953, 0.11852903664112091, -0.3753316402435303, 0.2385227531194687, 0.20618116855621338, 0.14069926738739014, 0.3183521628379822, 0.28841492533683777, -0.023626131936907768, 0.08107921481132507, 0.2532387971878052, -0.23716290295124054, 0.21044446527957916, 0.2143959403038025, 0.09401028603315353, -0.06970535963773727, -0.10630874335765839, -0.048908837139606476, -0.2752484977245331, 0.009119958616793156, -0.07152271270751953, -0.3575342297554016, -0.23529286682605743, 0.11313256621360779, 0.13597248494625092, 0.20585568249225616, -0.47165191173553467, -0.6115642786026001, -0.44403308629989624, -0.09781718254089355, -0.2725954055786133, 0.06730228662490845, 0.25600874423980713, -0.08566600829362869, -0.009138038381934166, -0.14870908856391907, -0.5428617000579834, 0.06505190581083298, 0.09354281425476074, 0.31283390522003174, -0.26405733823776245, -0.2599281072616577, 0.2104804962873459, 0.4827488660812378, -0.28325802087783813, -0.24927003681659698, -0.19898642599582672, 0.024947069585323334, -0.0148133784532547, -0.010005656629800797, -0.16365806758403778, -0.06672870367765427, -0.053158100694417953, 0.2876330614089966, 0.12881962954998016, -0.026449313387274742, 0.16995078325271606, -0.31842848658561707, -0.010200399905443192, 0.3466801345348358, -0.05428536981344223, -0.2104746699333191, 0.3277970254421234, 0.3184901773929596, 0.051162239164114, 0.11517045646905899, 0.08625645935535431, -0.024431569501757622, -0.19468627870082855, 0.04683792591094971, -0.13934488594532013, 0.14263740181922913, -0.1221712976694107, -0.029800064861774445, 0.17173141241073608, -0.1409706473350525, 0.20416676998138428, -0.032762523740530014, 0.21958214044570923, -0.02597752772271633, 0.062077220529317856, -0.286443293094635, 0.07942962646484375, -0.15836897492408752, 0.07512958347797394, -0.11702454090118408, 0.19870269298553467, 0.024092048406600952, 0.23534463346004486, 0.13214869797229767, 0.024792354553937912, 0.20726549625396729, -0.01517866924405098, -0.2567569613456726, 0.10972058773040771, 0.0652008056640625, -0.4047945439815521, 0.12669503688812256, 0.2791752219200134, -0.04303225502371788, 0.11162251979112625, 0.08678222447633743, 0.04227373003959656, -0.24079325795173645, 0.14126819372177124, 0.009191583842039108, -0.21043114364147186, -0.045482173562049866, 0.008162231184542179, -0.19343863427639008, -0.12591469287872314, -0.5878510475158691, 0.07390902191400528, 0.35539278388023376, -0.17664095759391785, -0.1262134611606598, -0.2640073895454407, -0.17013603448867798, -0.344127893447876, 0.002665281295776367, 0.3127557635307312, -0.34855061769485474, 0.14305400848388672, -0.018117081373929977, 0.1768348067998886, 0.5048039555549622, 0.4281790256500244, 0.017092574387788773, -0.09400945156812668, -0.25844618678092957, 0.4258441627025604, 0.20392416417598724, -0.03459272161126137, -0.48217105865478516, 0.1800987422466278, 0.005572602152824402, -0.0328231118619442, -0.1284404844045639, 0.13741089403629303, 0.027890190482139587, -0.020142950117588043, -0.08649420738220215, 0.17512235045433044, 0.02064666710793972, 0.1888284534215927, -0.3232865631580353, -0.4281209707260132, -0.05699479952454567, 0.022981926798820496, -0.06873853504657745, -0.0665229931473732, 0.04380687698721886, -0.2526402473449707, 0.15861569344997406, -0.16420648992061615, 0.22679676115512848, 0.36928310990333557, 0.3107089400291443, -0.14134125411510468, -0.24104318022727966, -0.2540671229362488, -0.32099470496177673, 0.2904055714607239, 0.13462357223033905, -0.21288427710533142, -0.2942923605442047, 0.02481575310230255, -0.016008146107196808, 0.034478992223739624, -0.04616587236523628, 0.39299577474594116, -0.05612298846244812, -0.04324129968881607, 0.20988833904266357, 0.19749049842357635, -0.09711012244224548, -0.16691944003105164, -0.21900230646133423, 0.12281878292560577, -0.2471027374267578, 0.1366460770368576, -0.05822242051362991, -0.44691401720046997, 0.05689467489719391, -0.025214701890945435, 0.011301233433187008, -0.1903938502073288, -0.05679688602685928, 0.11310438066720963, 0.2439710646867752, -0.03615323081612587, -0.08444564044475555, 0.16410130262374878, 0.04777407646179199, 0.052743636071681976, 0.18249978125095367, -0.017229706048965454, 0.2800438702106476, 0.01963699609041214, -0.188722625374794, 0.3480973541736603, 0.09262268990278244, 0.1415984034538269, 0.3416217565536499, -0.11529779434204102, 0.051553964614868164, 0.07298286259174347, 0.21041223406791687, -0.17212316393852234, -0.1512313187122345, 0.16885153949260712, 0.35535314679145813, -0.03581862896680832, -0.3565799295902252, 0.041628725826740265, 0.5232876539230347, 0.007155917584896088, 0.41391849517822266, 0.28889548778533936, -0.030079029500484467, -0.17960311472415924, 0.049537427723407745, 0.14898227155208588, 0.4825509190559387, 0.0719781368970871, 0.2031986266374588, -0.04973386228084564, 0.09849520027637482, -0.09272296726703644, 0.049024589359760284, 0.18937429785728455, 0.2143327295780182, 0.26531848311424255, 0.186236172914505, -0.02254515141248703, -0.3985636234283447, 0.006851077079772949, -0.010327983647584915, 0.24902795255184174, -0.14075492322444916, 0.12291154265403748, -0.34889131784439087, -0.0930570662021637, -0.1756005734205246, 0.06900526583194733, -0.08246465772390366, -0.3389725685119629, -0.29778018593788147, 0.398057758808136, -0.379189133644104, 0.09527384489774704, -0.08240611851215363, 0.23964524269104004, 0.15884505212306976, 0.019331837072968483, 0.0811566561460495, 0.10533703863620758, -0.1719750612974167, -0.07530060410499573, 0.3932114541530609, -0.17836159467697144, 0.44499480724334717, 0.29425713419914246, -0.251566618680954, -0.5642054080963135, -0.009631127119064331, 0.09723247587680817, -0.044640857726335526, 0.29137298464775085, 0.15691091120243073, 0.2594358026981354, -0.06370715796947479, 0.16749997437000275, 0.02858997881412506, 0.16790539026260376, -0.2048673927783966, -0.09654843807220459, 0.12497122585773468, 0.11484111100435257, 0.012095168232917786, -0.12148120254278183, -0.3409329056739807, -0.3965243399143219, 0.4174039959907532, -0.03257230296730995, 0.10873493552207947, 0.25556349754333496, 0.3698805272579193, 0.3338322043418884, 0.1646704524755478, 0.013167332857847214, -0.07955894619226456, -0.20069000124931335, 0.269292414188385, 0.07351703941822052, -0.2851143479347229, -0.16854090988636017, 0.11639489233493805, -0.17618902027606964, 0.1963486671447754, -0.2961611747741699, 0.21460872888565063, -0.5010899901390076, 0.17509104311466217, -0.07386919111013412, 0.19846226274967194, 0.3098811209201813, 0.06706615537405014, -0.023270785808563232, 0.09268348664045334, -0.06223037466406822, -0.024927008897066116, 0.31868863105773926, 0.2138705849647522, 0.0005782973021268845, 0.29532667994499207, 0.29871866106987, 0.6582240462303162, 0.18573595583438873, -0.22996512055397034, 0.5270455479621887, 0.1381634622812271, 0.23228710889816284, -0.28675729036331177, -0.13933849334716797, 0.008317887783050537, -0.3838779926300049, -0.15290096402168274, -0.11361585557460785, -0.07684990018606186, -0.004623657092452049, 0.24871127307415009, -0.019594021141529083, 0.19590544700622559, -0.24337229132652283, 0.2963944971561432, -0.1548440158367157, 0.03545708209276199, -0.047251492738723755, 0.09713897109031677, -0.06895819306373596, 0.04044702276587486, 0.026408232748508453, -0.031232159584760666, 0.4733627140522003, 0.021388385444879532, -0.2703007459640503, -0.08479918539524078, -0.6920444369316101, 0.1975386142730713, 0.16491134464740753, 0.41105127334594727, -0.04303203895688057, -0.3325485587120056, -0.1942017674446106, -0.0915498360991478, 0.4273242652416229, -0.08387734740972519, -0.18161579966545105, 0.122612863779068, -0.06614144146442413, -0.3708956241607666, 0.01402679830789566, 0.04547402262687683, 0.5089049935340881, -0.07496462762355804, 0.618058979511261, -0.2792036533355713, 0.03599928319454193, -0.06251145154237747, 0.5453646183013916, -0.07982055842876434, 0.06740523874759674, -0.17307192087173462, -0.36235833168029785, -0.4296315908432007, 0.047850027680397034, 0.08238401263952255, -0.026880327612161636, -0.18008999526500702, -0.023699983954429626, -0.1829957365989685, -0.19463826715946198, -0.03070645034313202, -0.25555646419525146, 0.1911633312702179, -0.23267070949077606, 0.2806384563446045, -0.08001284301280975, 0.18963205814361572, 0.6002490520477295, 0.4785457253456116, -0.06648995727300644, -0.10001758486032486, 0.05312158167362213, 0.2909657955169678, 0.3145468831062317, 0.2713969945907593, -0.02655656449496746, 0.12825560569763184, 0.1029752641916275, 0.08966297656297684, -0.4230405390262604, 0.2618330717086792, 0.03760524094104767, -0.15944094955921173, -0.41241130232810974, -0.20015349984169006, 0.5952422618865967, 0.2829306423664093, 0.17781135439872742, 0.162955641746521, 0.03274528309702873, -0.11134319752454758, 0.3195311427116394, 0.04688229784369469, 0.7377009391784668, -0.049273062497377396, 0.3859347999095917, 0.1443641036748886, -0.13294187188148499, 0.3299088478088379, 0.2714165449142456, -0.018504083156585693, -0.45349323749542236, 0.008082710206508636, 0.06999429315328598, -0.11607376486063004, 0.2320919930934906, -0.07742028683423996, -0.22934333980083466, 0.2342054396867752, -0.2464665174484253, -0.3401261270046234, -0.20115414261817932, 0.29748696088790894, -0.4525097608566284, -0.32282590866088867, -0.03184840455651283, 0.08205001801252365, -0.18902795016765594, -0.0520339272916317, 0.03821638226509094, -0.026001665741205215, -0.1816880702972412, 0.08758105337619781, -0.3797725439071655, 0.07526222616434097, 0.018065836280584335, 0.4964677095413208, -0.20786462724208832, -0.09435875713825226, 0.13735760748386383, 0.03330131620168686, -0.019860338419675827, 0.1730111986398697, -0.12357588112354279, -0.12254664301872253, -0.19234393537044525, -0.025939809158444405, 0.15870888531208038, -0.17497198283672333, 0.3594849109649658, 0.11308827251195908, 0.05937276780605316, -0.018511924892663956, -0.20203372836112976, -0.0545756071805954, -0.17690277099609375, -0.1465854048728943, 0.057787105441093445, -0.28776025772094727, -0.6232828497886658, -0.11155462265014648, -0.21771231293678284, -0.3020790219306946, -0.008435534313321114, 0.24675795435905457, 0.15249046683311462, 0.3774370849132538, -0.16627861559391022, -0.013862550258636475, -0.0960465520620346, 0.5426027774810791, -0.2170470654964447, 0.36480262875556946, 0.5068680047988892, 0.17999717593193054, -0.20642757415771484, -0.15997062623500824, 0.3782239854335785, 0.005458533763885498, 0.1507755070924759, 0.5503350496292114, -0.0991172045469284, 0.01693713665008545, -0.18890483677387238, 0.2538345158100128, 0.15056520700454712, -0.3707577884197235, -0.16091570258140564, -0.10646367073059082, -0.559167206287384, 0.2067393660545349, 0.09277249872684479, 0.3967388868331909, -0.17637377977371216, -0.1226247102022171, -0.29035431146621704, -0.02800748683512211, -0.13918820023536682, 0.15781766176223755, -0.26768699288368225, 0.001669555902481079, 0.1658400446176529, -0.013793645426630974, -0.05258882790803909, -0.1007535308599472, -0.05952998250722885, 0.18422122299671173, -0.04861823841929436, -0.07482589781284332, -0.08302915841341019, 0.1172453910112381, 0.2271108478307724, -0.1736915111541748, -0.02661641128361225, -0.3926926851272583, -0.011301500722765923, -0.19078603386878967, 0.027992121875286102, 0.25192421674728394, -0.08854285627603531, 0.11281000077724457, 0.1268065869808197, 0.07773042470216751, 0.21721643209457397, 0.23223662376403809, 0.007179770618677139, 0.2455635666847229, 0.02331600710749626, 0.35431399941444397, 0.23113778233528137, -0.20541924238204956, -0.2343902885913849, 0.01848359778523445, 0.29073366522789, 0.0028008949011564255, 0.3051241636276245, -0.25820329785346985, -0.14234277606010437, 0.2555766701698303, 0.15252569317817688, 0.620274543762207, -0.13046802580356598, -0.2227960079908371, 0.29988935589790344, 0.08978148549795151, 0.06381414085626602, -0.3358575403690338, 0.09400138258934021, -0.1985318958759308, -0.07038427889347076, 0.034996647387742996, -0.12451334297657013, 0.16479431092739105, -0.8366093039512634, 0.06960032880306244, 0.290701687335968, 0.08233870565891266, -0.015476368367671967, 0.1485920250415802, 0.025813370943069458, -0.016961369663476944, 0.18717969954013824, 0.06379799544811249, 0.5537103414535522, 0.5625144243240356, -0.08183269202709198, 0.6099123954772949, 0.029685739427804947, 0.24464626610279083, -0.01658884808421135, -0.7433122992515564, 0.1946713626384735, 0.40496063232421875, 0.036110036075115204, 0.21617944538593292, 0.00826616957783699, 0.3752157390117645, -0.3950865566730499, -0.319102942943573, -0.050671759992837906, 0.2922397553920746, -0.37021544575691223, -0.26988086104393005, 0.06887544691562653, -0.10359768569469452, 0.10867531597614288, 0.36684450507164, -0.2612329423427582, -0.09778393059968948, 0.3455851376056671, -0.024921566247940063, 0.017914263531565666, -0.10972131043672562, 0.09591151773929596, -0.04204605147242546, 0.28909096121788025, -0.30971819162368774, 0.030630851164460182, 0.017491109669208527, -0.17209208011627197, -0.6128517389297485, -0.010683654807507992, 0.5050380825996399, 0.2819989323616028, -0.19612102210521698, -0.06606392562389374, 0.06855210661888123, 0.03033747524023056, -0.12914076447486877, 0.09921498596668243, -0.12384726107120514, 0.19700084626674652, 0.4543986916542053, -0.050410185009241104, -0.03480293229222298, -0.023467203602194786, 0.08829125016927719, 0.29303330183029175, -0.103910893201828, -0.03219874948263168, -0.07016339898109436, -0.32223352789878845, 0.10691802203655243, 0.12194761633872986, -0.1603209376335144, 0.18983379006385803, 0.5680359601974487, -0.14743483066558838, 0.22582244873046875, 0.08844888210296631, 0.04049377143383026, -0.05267811566591263, 0.7015368342399597, 0.40678757429122925, -0.25606587529182434, -0.46361374855041504, 0.13850580155849457, -0.06901499629020691, -0.002116583287715912, -0.2306670993566513, 0.05363161116838455, -0.18550288677215576, 0.13727712631225586, 0.15321558713912964, 0.023697946220636368, -0.24603958427906036, 0.2859383821487427, -0.014923237264156342, 0.1722000539302826, -0.065121129155159, -0.31668102741241455, -0.053701527416706085, -0.13756220042705536, 0.09100612998008728, -0.6348481774330139, 0.35380613803863525, 0.007176246494054794, -0.041339289397001266, -0.16188430786132812, -0.1475742906332016, -0.018050476908683777, 0.07290349900722504, 0.5200448036193848, 0.21683672070503235, 0.2093251496553421, -0.20436786115169525, -0.4473116099834442, 0.06675855815410614, -0.06124046444892883, -0.01721814274787903, 0.14868277311325073, -0.19696563482284546, 0.5546961426734924, -0.18386110663414001, 0.6516258716583252, -0.37281349301338196, 0.0651056244969368, -0.07924242317676544, 0.019686076790094376, 0.020976684987545013, -0.05939822643995285, -0.002804771065711975, -0.03364512324333191, 0.1575343906879425, 0.2505611181259155, -0.05955273658037186, 0.1921725571155548, -0.3644734025001526, -0.2029285430908203, 0.4465304911136627, 0.11696621775627136, -0.1790778487920761, -0.09378277510404587, -0.034523651003837585, 0.22494563460350037, -0.05343843996524811, -0.5481231808662415, -0.02748855948448181, 0.2250312864780426, 0.006644176319241524, -0.29158255457878113, 0.2220803201198578, -0.019137166440486908, -0.13194437325000763, -0.06748277693986893, 1.1606016159057617, -0.2642905116081238, -0.22525131702423096, 0.2253783792257309, -0.03510907664895058 ]
https://github.com/huggingface/datasets/issues/2134
Hi! So I've managed to created a minimum working (well technically crashing) example for the multiprocessing case, I create a huge list of zeros, like in your example, and then I try to .map(None, num_proc=2) over it, which then crashes, here's the code: ```python from datasets import Dataset if __name__ == '__main__': ton_of_zeroes = [0] * ((12 * 8 << 30) // 64) large_dataset = Dataset.from_dict({'col': ton_of_zeroes}) print("Start") large_dataset.map(function=None, num_proc=2) print("Done - should not print") ``` The amount of zeros could probably be reduced, I haven't tried to minimize it to find the breaking point, I just increased it from your code (which by quick glance I assumed tried to allocate over 4 GiB) Running this results in the following traceback: ``` Parameter 'indices'=[ 0 1 2 ... 805306365 805306366 805306367] of the transform datasets.arrow_dataset.Dataset.select couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed. Traceback (most recent call last): File "./crash_multiproc_pickle.py", line 7, in <module> large_dataset.map(function=None, num_proc=2) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ``` My datasets usually have hundreds of thousands to low millions of rows, with each row containing a list of 10 strings and list of vectors of different length (the strings tokenized), which in the worst case have 10\*512\*8 = 40960 bytes (but usually it is much smaller, as the vectors tend to be shorter. I need these groups of text lines to create training data for the Inverse Cloze Task. Anyway I don't think my particular dataset is relevant, as the tiny script I created also manages to crash. But I think the issue is the same as the save_to_disk, from the traceback it seems that in multiprocessing, it tries to use dill to return the result of the map workers, which tries to pickle the data and can't do it, probably because it's again using the older pickle protocol. That's my guess anyway.
Saving large in-memory datasets with save_to_disk crashes because of pickling
Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ```
832
Saving large in-memory datasets with save_to_disk crashes because of pickling Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ``` Hi! So I've managed to created a minimum working (well technically crashing) example for the multiprocessing case, I create a huge list of zeros, like in your example, and then I try to .map(None, num_proc=2) over it, which then crashes, here's the code: ```python from datasets import Dataset if __name__ == '__main__': ton_of_zeroes = [0] * ((12 * 8 << 30) // 64) large_dataset = Dataset.from_dict({'col': ton_of_zeroes}) print("Start") large_dataset.map(function=None, num_proc=2) print("Done - should not print") ``` The amount of zeros could probably be reduced, I haven't tried to minimize it to find the breaking point, I just increased it from your code (which by quick glance I assumed tried to allocate over 4 GiB) Running this results in the following traceback: ``` Parameter 'indices'=[ 0 1 2 ... 805306365 805306366 805306367] of the transform datasets.arrow_dataset.Dataset.select couldn't be hashed properly, a random hash was used instead. Make sure your transforms and parameters are serializable with pickle or dill for the dataset fingerprinting and caching to work. If you reuse this transform, the caching mechanism will consider it to be different from the previous calls and recompute everything. This warning is only showed once. Subsequent hashing failures won't be showed. Traceback (most recent call last): File "./crash_multiproc_pickle.py", line 7, in <module> large_dataset.map(function=None, num_proc=2) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ``` My datasets usually have hundreds of thousands to low millions of rows, with each row containing a list of 10 strings and list of vectors of different length (the strings tokenized), which in the worst case have 10\*512\*8 = 40960 bytes (but usually it is much smaller, as the vectors tend to be shorter. I need these groups of text lines to create training data for the Inverse Cloze Task. Anyway I don't think my particular dataset is relevant, as the tiny script I created also manages to crash. But I think the issue is the same as the save_to_disk, from the traceback it seems that in multiprocessing, it tries to use dill to return the result of the map workers, which tries to pickle the data and can't do it, probably because it's again using the older pickle protocol. That's my guess anyway.
[ -0.31688857078552246, 0.09959536790847778, 0.11977994441986084, 0.3708880543708801, 0.25212326645851135, 0.0021296292543411255, -0.28349757194519043, 0.46396830677986145, 0.19055691361427307, 0.09646549820899963, 0.08088315278291702, 0.5146647691726685, -0.39890947937965393, 0.2905988097190857, -0.15748031437397003, -0.08337213844060898, 0.22001715004444122, -0.10456167161464691, -0.261580228805542, 0.171036958694458, -0.2519758343696594, -0.1009904071688652, 0.02054096758365631, -0.16596442461013794, -0.1712374985218048, -0.3141445517539978, -0.027155417948961258, 0.39561063051223755, -0.31936803460121155, -0.34529614448547363, -0.1409764289855957, -0.22311559319496155, 0.22814995050430298, 0.3274106979370117, -0.00012185026571387425, 0.038792580366134644, 0.13747429847717285, -0.14756688475608826, -0.49627625942230225, 0.004615187644958496, 0.025355055928230286, -0.5504592061042786, -0.1945045292377472, -0.25041115283966064, 0.33382755517959595, -0.09105396270751953, 0.11852903664112091, -0.3753316402435303, 0.2385227531194687, 0.20618116855621338, 0.14069926738739014, 0.3183521628379822, 0.28841492533683777, -0.023626131936907768, 0.08107921481132507, 0.2532387971878052, -0.23716290295124054, 0.21044446527957916, 0.2143959403038025, 0.09401028603315353, -0.06970535963773727, -0.10630874335765839, -0.048908837139606476, -0.2752484977245331, 0.009119958616793156, -0.07152271270751953, -0.3575342297554016, -0.23529286682605743, 0.11313256621360779, 0.13597248494625092, 0.20585568249225616, -0.47165191173553467, -0.6115642786026001, -0.44403308629989624, -0.09781718254089355, -0.2725954055786133, 0.06730228662490845, 0.25600874423980713, -0.08566600829362869, -0.009138038381934166, -0.14870908856391907, -0.5428617000579834, 0.06505190581083298, 0.09354281425476074, 0.31283390522003174, -0.26405733823776245, -0.2599281072616577, 0.2104804962873459, 0.4827488660812378, -0.28325802087783813, -0.24927003681659698, -0.19898642599582672, 0.024947069585323334, -0.0148133784532547, -0.010005656629800797, -0.16365806758403778, -0.06672870367765427, -0.053158100694417953, 0.2876330614089966, 0.12881962954998016, -0.026449313387274742, 0.16995078325271606, -0.31842848658561707, -0.010200399905443192, 0.3466801345348358, -0.05428536981344223, -0.2104746699333191, 0.3277970254421234, 0.3184901773929596, 0.051162239164114, 0.11517045646905899, 0.08625645935535431, -0.024431569501757622, -0.19468627870082855, 0.04683792591094971, -0.13934488594532013, 0.14263740181922913, -0.1221712976694107, -0.029800064861774445, 0.17173141241073608, -0.1409706473350525, 0.20416676998138428, -0.032762523740530014, 0.21958214044570923, -0.02597752772271633, 0.062077220529317856, -0.286443293094635, 0.07942962646484375, -0.15836897492408752, 0.07512958347797394, -0.11702454090118408, 0.19870269298553467, 0.024092048406600952, 0.23534463346004486, 0.13214869797229767, 0.024792354553937912, 0.20726549625396729, -0.01517866924405098, -0.2567569613456726, 0.10972058773040771, 0.0652008056640625, -0.4047945439815521, 0.12669503688812256, 0.2791752219200134, -0.04303225502371788, 0.11162251979112625, 0.08678222447633743, 0.04227373003959656, -0.24079325795173645, 0.14126819372177124, 0.009191583842039108, -0.21043114364147186, -0.045482173562049866, 0.008162231184542179, -0.19343863427639008, -0.12591469287872314, -0.5878510475158691, 0.07390902191400528, 0.35539278388023376, -0.17664095759391785, -0.1262134611606598, -0.2640073895454407, -0.17013603448867798, -0.344127893447876, 0.002665281295776367, 0.3127557635307312, -0.34855061769485474, 0.14305400848388672, -0.018117081373929977, 0.1768348067998886, 0.5048039555549622, 0.4281790256500244, 0.017092574387788773, -0.09400945156812668, -0.25844618678092957, 0.4258441627025604, 0.20392416417598724, -0.03459272161126137, -0.48217105865478516, 0.1800987422466278, 0.005572602152824402, -0.0328231118619442, -0.1284404844045639, 0.13741089403629303, 0.027890190482139587, -0.020142950117588043, -0.08649420738220215, 0.17512235045433044, 0.02064666710793972, 0.1888284534215927, -0.3232865631580353, -0.4281209707260132, -0.05699479952454567, 0.022981926798820496, -0.06873853504657745, -0.0665229931473732, 0.04380687698721886, -0.2526402473449707, 0.15861569344997406, -0.16420648992061615, 0.22679676115512848, 0.36928310990333557, 0.3107089400291443, -0.14134125411510468, -0.24104318022727966, -0.2540671229362488, -0.32099470496177673, 0.2904055714607239, 0.13462357223033905, -0.21288427710533142, -0.2942923605442047, 0.02481575310230255, -0.016008146107196808, 0.034478992223739624, -0.04616587236523628, 0.39299577474594116, -0.05612298846244812, -0.04324129968881607, 0.20988833904266357, 0.19749049842357635, -0.09711012244224548, -0.16691944003105164, -0.21900230646133423, 0.12281878292560577, -0.2471027374267578, 0.1366460770368576, -0.05822242051362991, -0.44691401720046997, 0.05689467489719391, -0.025214701890945435, 0.011301233433187008, -0.1903938502073288, -0.05679688602685928, 0.11310438066720963, 0.2439710646867752, -0.03615323081612587, -0.08444564044475555, 0.16410130262374878, 0.04777407646179199, 0.052743636071681976, 0.18249978125095367, -0.017229706048965454, 0.2800438702106476, 0.01963699609041214, -0.188722625374794, 0.3480973541736603, 0.09262268990278244, 0.1415984034538269, 0.3416217565536499, -0.11529779434204102, 0.051553964614868164, 0.07298286259174347, 0.21041223406791687, -0.17212316393852234, -0.1512313187122345, 0.16885153949260712, 0.35535314679145813, -0.03581862896680832, -0.3565799295902252, 0.041628725826740265, 0.5232876539230347, 0.007155917584896088, 0.41391849517822266, 0.28889548778533936, -0.030079029500484467, -0.17960311472415924, 0.049537427723407745, 0.14898227155208588, 0.4825509190559387, 0.0719781368970871, 0.2031986266374588, -0.04973386228084564, 0.09849520027637482, -0.09272296726703644, 0.049024589359760284, 0.18937429785728455, 0.2143327295780182, 0.26531848311424255, 0.186236172914505, -0.02254515141248703, -0.3985636234283447, 0.006851077079772949, -0.010327983647584915, 0.24902795255184174, -0.14075492322444916, 0.12291154265403748, -0.34889131784439087, -0.0930570662021637, -0.1756005734205246, 0.06900526583194733, -0.08246465772390366, -0.3389725685119629, -0.29778018593788147, 0.398057758808136, -0.379189133644104, 0.09527384489774704, -0.08240611851215363, 0.23964524269104004, 0.15884505212306976, 0.019331837072968483, 0.0811566561460495, 0.10533703863620758, -0.1719750612974167, -0.07530060410499573, 0.3932114541530609, -0.17836159467697144, 0.44499480724334717, 0.29425713419914246, -0.251566618680954, -0.5642054080963135, -0.009631127119064331, 0.09723247587680817, -0.044640857726335526, 0.29137298464775085, 0.15691091120243073, 0.2594358026981354, -0.06370715796947479, 0.16749997437000275, 0.02858997881412506, 0.16790539026260376, -0.2048673927783966, -0.09654843807220459, 0.12497122585773468, 0.11484111100435257, 0.012095168232917786, -0.12148120254278183, -0.3409329056739807, -0.3965243399143219, 0.4174039959907532, -0.03257230296730995, 0.10873493552207947, 0.25556349754333496, 0.3698805272579193, 0.3338322043418884, 0.1646704524755478, 0.013167332857847214, -0.07955894619226456, -0.20069000124931335, 0.269292414188385, 0.07351703941822052, -0.2851143479347229, -0.16854090988636017, 0.11639489233493805, -0.17618902027606964, 0.1963486671447754, -0.2961611747741699, 0.21460872888565063, -0.5010899901390076, 0.17509104311466217, -0.07386919111013412, 0.19846226274967194, 0.3098811209201813, 0.06706615537405014, -0.023270785808563232, 0.09268348664045334, -0.06223037466406822, -0.024927008897066116, 0.31868863105773926, 0.2138705849647522, 0.0005782973021268845, 0.29532667994499207, 0.29871866106987, 0.6582240462303162, 0.18573595583438873, -0.22996512055397034, 0.5270455479621887, 0.1381634622812271, 0.23228710889816284, -0.28675729036331177, -0.13933849334716797, 0.008317887783050537, -0.3838779926300049, -0.15290096402168274, -0.11361585557460785, -0.07684990018606186, -0.004623657092452049, 0.24871127307415009, -0.019594021141529083, 0.19590544700622559, -0.24337229132652283, 0.2963944971561432, -0.1548440158367157, 0.03545708209276199, -0.047251492738723755, 0.09713897109031677, -0.06895819306373596, 0.04044702276587486, 0.026408232748508453, -0.031232159584760666, 0.4733627140522003, 0.021388385444879532, -0.2703007459640503, -0.08479918539524078, -0.6920444369316101, 0.1975386142730713, 0.16491134464740753, 0.41105127334594727, -0.04303203895688057, -0.3325485587120056, -0.1942017674446106, -0.0915498360991478, 0.4273242652416229, -0.08387734740972519, -0.18161579966545105, 0.122612863779068, -0.06614144146442413, -0.3708956241607666, 0.01402679830789566, 0.04547402262687683, 0.5089049935340881, -0.07496462762355804, 0.618058979511261, -0.2792036533355713, 0.03599928319454193, -0.06251145154237747, 0.5453646183013916, -0.07982055842876434, 0.06740523874759674, -0.17307192087173462, -0.36235833168029785, -0.4296315908432007, 0.047850027680397034, 0.08238401263952255, -0.026880327612161636, -0.18008999526500702, -0.023699983954429626, -0.1829957365989685, -0.19463826715946198, -0.03070645034313202, -0.25555646419525146, 0.1911633312702179, -0.23267070949077606, 0.2806384563446045, -0.08001284301280975, 0.18963205814361572, 0.6002490520477295, 0.4785457253456116, -0.06648995727300644, -0.10001758486032486, 0.05312158167362213, 0.2909657955169678, 0.3145468831062317, 0.2713969945907593, -0.02655656449496746, 0.12825560569763184, 0.1029752641916275, 0.08966297656297684, -0.4230405390262604, 0.2618330717086792, 0.03760524094104767, -0.15944094955921173, -0.41241130232810974, -0.20015349984169006, 0.5952422618865967, 0.2829306423664093, 0.17781135439872742, 0.162955641746521, 0.03274528309702873, -0.11134319752454758, 0.3195311427116394, 0.04688229784369469, 0.7377009391784668, -0.049273062497377396, 0.3859347999095917, 0.1443641036748886, -0.13294187188148499, 0.3299088478088379, 0.2714165449142456, -0.018504083156585693, -0.45349323749542236, 0.008082710206508636, 0.06999429315328598, -0.11607376486063004, 0.2320919930934906, -0.07742028683423996, -0.22934333980083466, 0.2342054396867752, -0.2464665174484253, -0.3401261270046234, -0.20115414261817932, 0.29748696088790894, -0.4525097608566284, -0.32282590866088867, -0.03184840455651283, 0.08205001801252365, -0.18902795016765594, -0.0520339272916317, 0.03821638226509094, -0.026001665741205215, -0.1816880702972412, 0.08758105337619781, -0.3797725439071655, 0.07526222616434097, 0.018065836280584335, 0.4964677095413208, -0.20786462724208832, -0.09435875713825226, 0.13735760748386383, 0.03330131620168686, -0.019860338419675827, 0.1730111986398697, -0.12357588112354279, -0.12254664301872253, -0.19234393537044525, -0.025939809158444405, 0.15870888531208038, -0.17497198283672333, 0.3594849109649658, 0.11308827251195908, 0.05937276780605316, -0.018511924892663956, -0.20203372836112976, -0.0545756071805954, -0.17690277099609375, -0.1465854048728943, 0.057787105441093445, -0.28776025772094727, -0.6232828497886658, -0.11155462265014648, -0.21771231293678284, -0.3020790219306946, -0.008435534313321114, 0.24675795435905457, 0.15249046683311462, 0.3774370849132538, -0.16627861559391022, -0.013862550258636475, -0.0960465520620346, 0.5426027774810791, -0.2170470654964447, 0.36480262875556946, 0.5068680047988892, 0.17999717593193054, -0.20642757415771484, -0.15997062623500824, 0.3782239854335785, 0.005458533763885498, 0.1507755070924759, 0.5503350496292114, -0.0991172045469284, 0.01693713665008545, -0.18890483677387238, 0.2538345158100128, 0.15056520700454712, -0.3707577884197235, -0.16091570258140564, -0.10646367073059082, -0.559167206287384, 0.2067393660545349, 0.09277249872684479, 0.3967388868331909, -0.17637377977371216, -0.1226247102022171, -0.29035431146621704, -0.02800748683512211, -0.13918820023536682, 0.15781766176223755, -0.26768699288368225, 0.001669555902481079, 0.1658400446176529, -0.013793645426630974, -0.05258882790803909, -0.1007535308599472, -0.05952998250722885, 0.18422122299671173, -0.04861823841929436, -0.07482589781284332, -0.08302915841341019, 0.1172453910112381, 0.2271108478307724, -0.1736915111541748, -0.02661641128361225, -0.3926926851272583, -0.011301500722765923, -0.19078603386878967, 0.027992121875286102, 0.25192421674728394, -0.08854285627603531, 0.11281000077724457, 0.1268065869808197, 0.07773042470216751, 0.21721643209457397, 0.23223662376403809, 0.007179770618677139, 0.2455635666847229, 0.02331600710749626, 0.35431399941444397, 0.23113778233528137, -0.20541924238204956, -0.2343902885913849, 0.01848359778523445, 0.29073366522789, 0.0028008949011564255, 0.3051241636276245, -0.25820329785346985, -0.14234277606010437, 0.2555766701698303, 0.15252569317817688, 0.620274543762207, -0.13046802580356598, -0.2227960079908371, 0.29988935589790344, 0.08978148549795151, 0.06381414085626602, -0.3358575403690338, 0.09400138258934021, -0.1985318958759308, -0.07038427889347076, 0.034996647387742996, -0.12451334297657013, 0.16479431092739105, -0.8366093039512634, 0.06960032880306244, 0.290701687335968, 0.08233870565891266, -0.015476368367671967, 0.1485920250415802, 0.025813370943069458, -0.016961369663476944, 0.18717969954013824, 0.06379799544811249, 0.5537103414535522, 0.5625144243240356, -0.08183269202709198, 0.6099123954772949, 0.029685739427804947, 0.24464626610279083, -0.01658884808421135, -0.7433122992515564, 0.1946713626384735, 0.40496063232421875, 0.036110036075115204, 0.21617944538593292, 0.00826616957783699, 0.3752157390117645, -0.3950865566730499, -0.319102942943573, -0.050671759992837906, 0.2922397553920746, -0.37021544575691223, -0.26988086104393005, 0.06887544691562653, -0.10359768569469452, 0.10867531597614288, 0.36684450507164, -0.2612329423427582, -0.09778393059968948, 0.3455851376056671, -0.024921566247940063, 0.017914263531565666, -0.10972131043672562, 0.09591151773929596, -0.04204605147242546, 0.28909096121788025, -0.30971819162368774, 0.030630851164460182, 0.017491109669208527, -0.17209208011627197, -0.6128517389297485, -0.010683654807507992, 0.5050380825996399, 0.2819989323616028, -0.19612102210521698, -0.06606392562389374, 0.06855210661888123, 0.03033747524023056, -0.12914076447486877, 0.09921498596668243, -0.12384726107120514, 0.19700084626674652, 0.4543986916542053, -0.050410185009241104, -0.03480293229222298, -0.023467203602194786, 0.08829125016927719, 0.29303330183029175, -0.103910893201828, -0.03219874948263168, -0.07016339898109436, -0.32223352789878845, 0.10691802203655243, 0.12194761633872986, -0.1603209376335144, 0.18983379006385803, 0.5680359601974487, -0.14743483066558838, 0.22582244873046875, 0.08844888210296631, 0.04049377143383026, -0.05267811566591263, 0.7015368342399597, 0.40678757429122925, -0.25606587529182434, -0.46361374855041504, 0.13850580155849457, -0.06901499629020691, -0.002116583287715912, -0.2306670993566513, 0.05363161116838455, -0.18550288677215576, 0.13727712631225586, 0.15321558713912964, 0.023697946220636368, -0.24603958427906036, 0.2859383821487427, -0.014923237264156342, 0.1722000539302826, -0.065121129155159, -0.31668102741241455, -0.053701527416706085, -0.13756220042705536, 0.09100612998008728, -0.6348481774330139, 0.35380613803863525, 0.007176246494054794, -0.041339289397001266, -0.16188430786132812, -0.1475742906332016, -0.018050476908683777, 0.07290349900722504, 0.5200448036193848, 0.21683672070503235, 0.2093251496553421, -0.20436786115169525, -0.4473116099834442, 0.06675855815410614, -0.06124046444892883, -0.01721814274787903, 0.14868277311325073, -0.19696563482284546, 0.5546961426734924, -0.18386110663414001, 0.6516258716583252, -0.37281349301338196, 0.0651056244969368, -0.07924242317676544, 0.019686076790094376, 0.020976684987545013, -0.05939822643995285, -0.002804771065711975, -0.03364512324333191, 0.1575343906879425, 0.2505611181259155, -0.05955273658037186, 0.1921725571155548, -0.3644734025001526, -0.2029285430908203, 0.4465304911136627, 0.11696621775627136, -0.1790778487920761, -0.09378277510404587, -0.034523651003837585, 0.22494563460350037, -0.05343843996524811, -0.5481231808662415, -0.02748855948448181, 0.2250312864780426, 0.006644176319241524, -0.29158255457878113, 0.2220803201198578, -0.019137166440486908, -0.13194437325000763, -0.06748277693986893, 1.1606016159057617, -0.2642905116081238, -0.22525131702423096, 0.2253783792257309, -0.03510907664895058 ]
https://github.com/huggingface/datasets/issues/2134
I just merged a fix #2150 that allows to pickle tables bigger than 4GiB Feel free to try it on the `master` branch !
Saving large in-memory datasets with save_to_disk crashes because of pickling
Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ```
24
Saving large in-memory datasets with save_to_disk crashes because of pickling Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ``` I just merged a fix #2150 that allows to pickle tables bigger than 4GiB Feel free to try it on the `master` branch !
[ -0.31688857078552246, 0.09959536790847778, 0.11977994441986084, 0.3708880543708801, 0.25212326645851135, 0.0021296292543411255, -0.28349757194519043, 0.46396830677986145, 0.19055691361427307, 0.09646549820899963, 0.08088315278291702, 0.5146647691726685, -0.39890947937965393, 0.2905988097190857, -0.15748031437397003, -0.08337213844060898, 0.22001715004444122, -0.10456167161464691, -0.261580228805542, 0.171036958694458, -0.2519758343696594, -0.1009904071688652, 0.02054096758365631, -0.16596442461013794, -0.1712374985218048, -0.3141445517539978, -0.027155417948961258, 0.39561063051223755, -0.31936803460121155, -0.34529614448547363, -0.1409764289855957, -0.22311559319496155, 0.22814995050430298, 0.3274106979370117, -0.00012185026571387425, 0.038792580366134644, 0.13747429847717285, -0.14756688475608826, -0.49627625942230225, 0.004615187644958496, 0.025355055928230286, -0.5504592061042786, -0.1945045292377472, -0.25041115283966064, 0.33382755517959595, -0.09105396270751953, 0.11852903664112091, -0.3753316402435303, 0.2385227531194687, 0.20618116855621338, 0.14069926738739014, 0.3183521628379822, 0.28841492533683777, -0.023626131936907768, 0.08107921481132507, 0.2532387971878052, -0.23716290295124054, 0.21044446527957916, 0.2143959403038025, 0.09401028603315353, -0.06970535963773727, -0.10630874335765839, -0.048908837139606476, -0.2752484977245331, 0.009119958616793156, -0.07152271270751953, -0.3575342297554016, -0.23529286682605743, 0.11313256621360779, 0.13597248494625092, 0.20585568249225616, -0.47165191173553467, -0.6115642786026001, -0.44403308629989624, -0.09781718254089355, -0.2725954055786133, 0.06730228662490845, 0.25600874423980713, -0.08566600829362869, -0.009138038381934166, -0.14870908856391907, -0.5428617000579834, 0.06505190581083298, 0.09354281425476074, 0.31283390522003174, -0.26405733823776245, -0.2599281072616577, 0.2104804962873459, 0.4827488660812378, -0.28325802087783813, -0.24927003681659698, -0.19898642599582672, 0.024947069585323334, -0.0148133784532547, -0.010005656629800797, -0.16365806758403778, -0.06672870367765427, -0.053158100694417953, 0.2876330614089966, 0.12881962954998016, -0.026449313387274742, 0.16995078325271606, -0.31842848658561707, -0.010200399905443192, 0.3466801345348358, -0.05428536981344223, -0.2104746699333191, 0.3277970254421234, 0.3184901773929596, 0.051162239164114, 0.11517045646905899, 0.08625645935535431, -0.024431569501757622, -0.19468627870082855, 0.04683792591094971, -0.13934488594532013, 0.14263740181922913, -0.1221712976694107, -0.029800064861774445, 0.17173141241073608, -0.1409706473350525, 0.20416676998138428, -0.032762523740530014, 0.21958214044570923, -0.02597752772271633, 0.062077220529317856, -0.286443293094635, 0.07942962646484375, -0.15836897492408752, 0.07512958347797394, -0.11702454090118408, 0.19870269298553467, 0.024092048406600952, 0.23534463346004486, 0.13214869797229767, 0.024792354553937912, 0.20726549625396729, -0.01517866924405098, -0.2567569613456726, 0.10972058773040771, 0.0652008056640625, -0.4047945439815521, 0.12669503688812256, 0.2791752219200134, -0.04303225502371788, 0.11162251979112625, 0.08678222447633743, 0.04227373003959656, -0.24079325795173645, 0.14126819372177124, 0.009191583842039108, -0.21043114364147186, -0.045482173562049866, 0.008162231184542179, -0.19343863427639008, -0.12591469287872314, -0.5878510475158691, 0.07390902191400528, 0.35539278388023376, -0.17664095759391785, -0.1262134611606598, -0.2640073895454407, -0.17013603448867798, -0.344127893447876, 0.002665281295776367, 0.3127557635307312, -0.34855061769485474, 0.14305400848388672, -0.018117081373929977, 0.1768348067998886, 0.5048039555549622, 0.4281790256500244, 0.017092574387788773, -0.09400945156812668, -0.25844618678092957, 0.4258441627025604, 0.20392416417598724, -0.03459272161126137, -0.48217105865478516, 0.1800987422466278, 0.005572602152824402, -0.0328231118619442, -0.1284404844045639, 0.13741089403629303, 0.027890190482139587, -0.020142950117588043, -0.08649420738220215, 0.17512235045433044, 0.02064666710793972, 0.1888284534215927, -0.3232865631580353, -0.4281209707260132, -0.05699479952454567, 0.022981926798820496, -0.06873853504657745, -0.0665229931473732, 0.04380687698721886, -0.2526402473449707, 0.15861569344997406, -0.16420648992061615, 0.22679676115512848, 0.36928310990333557, 0.3107089400291443, -0.14134125411510468, -0.24104318022727966, -0.2540671229362488, -0.32099470496177673, 0.2904055714607239, 0.13462357223033905, -0.21288427710533142, -0.2942923605442047, 0.02481575310230255, -0.016008146107196808, 0.034478992223739624, -0.04616587236523628, 0.39299577474594116, -0.05612298846244812, -0.04324129968881607, 0.20988833904266357, 0.19749049842357635, -0.09711012244224548, -0.16691944003105164, -0.21900230646133423, 0.12281878292560577, -0.2471027374267578, 0.1366460770368576, -0.05822242051362991, -0.44691401720046997, 0.05689467489719391, -0.025214701890945435, 0.011301233433187008, -0.1903938502073288, -0.05679688602685928, 0.11310438066720963, 0.2439710646867752, -0.03615323081612587, -0.08444564044475555, 0.16410130262374878, 0.04777407646179199, 0.052743636071681976, 0.18249978125095367, -0.017229706048965454, 0.2800438702106476, 0.01963699609041214, -0.188722625374794, 0.3480973541736603, 0.09262268990278244, 0.1415984034538269, 0.3416217565536499, -0.11529779434204102, 0.051553964614868164, 0.07298286259174347, 0.21041223406791687, -0.17212316393852234, -0.1512313187122345, 0.16885153949260712, 0.35535314679145813, -0.03581862896680832, -0.3565799295902252, 0.041628725826740265, 0.5232876539230347, 0.007155917584896088, 0.41391849517822266, 0.28889548778533936, -0.030079029500484467, -0.17960311472415924, 0.049537427723407745, 0.14898227155208588, 0.4825509190559387, 0.0719781368970871, 0.2031986266374588, -0.04973386228084564, 0.09849520027637482, -0.09272296726703644, 0.049024589359760284, 0.18937429785728455, 0.2143327295780182, 0.26531848311424255, 0.186236172914505, -0.02254515141248703, -0.3985636234283447, 0.006851077079772949, -0.010327983647584915, 0.24902795255184174, -0.14075492322444916, 0.12291154265403748, -0.34889131784439087, -0.0930570662021637, -0.1756005734205246, 0.06900526583194733, -0.08246465772390366, -0.3389725685119629, -0.29778018593788147, 0.398057758808136, -0.379189133644104, 0.09527384489774704, -0.08240611851215363, 0.23964524269104004, 0.15884505212306976, 0.019331837072968483, 0.0811566561460495, 0.10533703863620758, -0.1719750612974167, -0.07530060410499573, 0.3932114541530609, -0.17836159467697144, 0.44499480724334717, 0.29425713419914246, -0.251566618680954, -0.5642054080963135, -0.009631127119064331, 0.09723247587680817, -0.044640857726335526, 0.29137298464775085, 0.15691091120243073, 0.2594358026981354, -0.06370715796947479, 0.16749997437000275, 0.02858997881412506, 0.16790539026260376, -0.2048673927783966, -0.09654843807220459, 0.12497122585773468, 0.11484111100435257, 0.012095168232917786, -0.12148120254278183, -0.3409329056739807, -0.3965243399143219, 0.4174039959907532, -0.03257230296730995, 0.10873493552207947, 0.25556349754333496, 0.3698805272579193, 0.3338322043418884, 0.1646704524755478, 0.013167332857847214, -0.07955894619226456, -0.20069000124931335, 0.269292414188385, 0.07351703941822052, -0.2851143479347229, -0.16854090988636017, 0.11639489233493805, -0.17618902027606964, 0.1963486671447754, -0.2961611747741699, 0.21460872888565063, -0.5010899901390076, 0.17509104311466217, -0.07386919111013412, 0.19846226274967194, 0.3098811209201813, 0.06706615537405014, -0.023270785808563232, 0.09268348664045334, -0.06223037466406822, -0.024927008897066116, 0.31868863105773926, 0.2138705849647522, 0.0005782973021268845, 0.29532667994499207, 0.29871866106987, 0.6582240462303162, 0.18573595583438873, -0.22996512055397034, 0.5270455479621887, 0.1381634622812271, 0.23228710889816284, -0.28675729036331177, -0.13933849334716797, 0.008317887783050537, -0.3838779926300049, -0.15290096402168274, -0.11361585557460785, -0.07684990018606186, -0.004623657092452049, 0.24871127307415009, -0.019594021141529083, 0.19590544700622559, -0.24337229132652283, 0.2963944971561432, -0.1548440158367157, 0.03545708209276199, -0.047251492738723755, 0.09713897109031677, -0.06895819306373596, 0.04044702276587486, 0.026408232748508453, -0.031232159584760666, 0.4733627140522003, 0.021388385444879532, -0.2703007459640503, -0.08479918539524078, -0.6920444369316101, 0.1975386142730713, 0.16491134464740753, 0.41105127334594727, -0.04303203895688057, -0.3325485587120056, -0.1942017674446106, -0.0915498360991478, 0.4273242652416229, -0.08387734740972519, -0.18161579966545105, 0.122612863779068, -0.06614144146442413, -0.3708956241607666, 0.01402679830789566, 0.04547402262687683, 0.5089049935340881, -0.07496462762355804, 0.618058979511261, -0.2792036533355713, 0.03599928319454193, -0.06251145154237747, 0.5453646183013916, -0.07982055842876434, 0.06740523874759674, -0.17307192087173462, -0.36235833168029785, -0.4296315908432007, 0.047850027680397034, 0.08238401263952255, -0.026880327612161636, -0.18008999526500702, -0.023699983954429626, -0.1829957365989685, -0.19463826715946198, -0.03070645034313202, -0.25555646419525146, 0.1911633312702179, -0.23267070949077606, 0.2806384563446045, -0.08001284301280975, 0.18963205814361572, 0.6002490520477295, 0.4785457253456116, -0.06648995727300644, -0.10001758486032486, 0.05312158167362213, 0.2909657955169678, 0.3145468831062317, 0.2713969945907593, -0.02655656449496746, 0.12825560569763184, 0.1029752641916275, 0.08966297656297684, -0.4230405390262604, 0.2618330717086792, 0.03760524094104767, -0.15944094955921173, -0.41241130232810974, -0.20015349984169006, 0.5952422618865967, 0.2829306423664093, 0.17781135439872742, 0.162955641746521, 0.03274528309702873, -0.11134319752454758, 0.3195311427116394, 0.04688229784369469, 0.7377009391784668, -0.049273062497377396, 0.3859347999095917, 0.1443641036748886, -0.13294187188148499, 0.3299088478088379, 0.2714165449142456, -0.018504083156585693, -0.45349323749542236, 0.008082710206508636, 0.06999429315328598, -0.11607376486063004, 0.2320919930934906, -0.07742028683423996, -0.22934333980083466, 0.2342054396867752, -0.2464665174484253, -0.3401261270046234, -0.20115414261817932, 0.29748696088790894, -0.4525097608566284, -0.32282590866088867, -0.03184840455651283, 0.08205001801252365, -0.18902795016765594, -0.0520339272916317, 0.03821638226509094, -0.026001665741205215, -0.1816880702972412, 0.08758105337619781, -0.3797725439071655, 0.07526222616434097, 0.018065836280584335, 0.4964677095413208, -0.20786462724208832, -0.09435875713825226, 0.13735760748386383, 0.03330131620168686, -0.019860338419675827, 0.1730111986398697, -0.12357588112354279, -0.12254664301872253, -0.19234393537044525, -0.025939809158444405, 0.15870888531208038, -0.17497198283672333, 0.3594849109649658, 0.11308827251195908, 0.05937276780605316, -0.018511924892663956, -0.20203372836112976, -0.0545756071805954, -0.17690277099609375, -0.1465854048728943, 0.057787105441093445, -0.28776025772094727, -0.6232828497886658, -0.11155462265014648, -0.21771231293678284, -0.3020790219306946, -0.008435534313321114, 0.24675795435905457, 0.15249046683311462, 0.3774370849132538, -0.16627861559391022, -0.013862550258636475, -0.0960465520620346, 0.5426027774810791, -0.2170470654964447, 0.36480262875556946, 0.5068680047988892, 0.17999717593193054, -0.20642757415771484, -0.15997062623500824, 0.3782239854335785, 0.005458533763885498, 0.1507755070924759, 0.5503350496292114, -0.0991172045469284, 0.01693713665008545, -0.18890483677387238, 0.2538345158100128, 0.15056520700454712, -0.3707577884197235, -0.16091570258140564, -0.10646367073059082, -0.559167206287384, 0.2067393660545349, 0.09277249872684479, 0.3967388868331909, -0.17637377977371216, -0.1226247102022171, -0.29035431146621704, -0.02800748683512211, -0.13918820023536682, 0.15781766176223755, -0.26768699288368225, 0.001669555902481079, 0.1658400446176529, -0.013793645426630974, -0.05258882790803909, -0.1007535308599472, -0.05952998250722885, 0.18422122299671173, -0.04861823841929436, -0.07482589781284332, -0.08302915841341019, 0.1172453910112381, 0.2271108478307724, -0.1736915111541748, -0.02661641128361225, -0.3926926851272583, -0.011301500722765923, -0.19078603386878967, 0.027992121875286102, 0.25192421674728394, -0.08854285627603531, 0.11281000077724457, 0.1268065869808197, 0.07773042470216751, 0.21721643209457397, 0.23223662376403809, 0.007179770618677139, 0.2455635666847229, 0.02331600710749626, 0.35431399941444397, 0.23113778233528137, -0.20541924238204956, -0.2343902885913849, 0.01848359778523445, 0.29073366522789, 0.0028008949011564255, 0.3051241636276245, -0.25820329785346985, -0.14234277606010437, 0.2555766701698303, 0.15252569317817688, 0.620274543762207, -0.13046802580356598, -0.2227960079908371, 0.29988935589790344, 0.08978148549795151, 0.06381414085626602, -0.3358575403690338, 0.09400138258934021, -0.1985318958759308, -0.07038427889347076, 0.034996647387742996, -0.12451334297657013, 0.16479431092739105, -0.8366093039512634, 0.06960032880306244, 0.290701687335968, 0.08233870565891266, -0.015476368367671967, 0.1485920250415802, 0.025813370943069458, -0.016961369663476944, 0.18717969954013824, 0.06379799544811249, 0.5537103414535522, 0.5625144243240356, -0.08183269202709198, 0.6099123954772949, 0.029685739427804947, 0.24464626610279083, -0.01658884808421135, -0.7433122992515564, 0.1946713626384735, 0.40496063232421875, 0.036110036075115204, 0.21617944538593292, 0.00826616957783699, 0.3752157390117645, -0.3950865566730499, -0.319102942943573, -0.050671759992837906, 0.2922397553920746, -0.37021544575691223, -0.26988086104393005, 0.06887544691562653, -0.10359768569469452, 0.10867531597614288, 0.36684450507164, -0.2612329423427582, -0.09778393059968948, 0.3455851376056671, -0.024921566247940063, 0.017914263531565666, -0.10972131043672562, 0.09591151773929596, -0.04204605147242546, 0.28909096121788025, -0.30971819162368774, 0.030630851164460182, 0.017491109669208527, -0.17209208011627197, -0.6128517389297485, -0.010683654807507992, 0.5050380825996399, 0.2819989323616028, -0.19612102210521698, -0.06606392562389374, 0.06855210661888123, 0.03033747524023056, -0.12914076447486877, 0.09921498596668243, -0.12384726107120514, 0.19700084626674652, 0.4543986916542053, -0.050410185009241104, -0.03480293229222298, -0.023467203602194786, 0.08829125016927719, 0.29303330183029175, -0.103910893201828, -0.03219874948263168, -0.07016339898109436, -0.32223352789878845, 0.10691802203655243, 0.12194761633872986, -0.1603209376335144, 0.18983379006385803, 0.5680359601974487, -0.14743483066558838, 0.22582244873046875, 0.08844888210296631, 0.04049377143383026, -0.05267811566591263, 0.7015368342399597, 0.40678757429122925, -0.25606587529182434, -0.46361374855041504, 0.13850580155849457, -0.06901499629020691, -0.002116583287715912, -0.2306670993566513, 0.05363161116838455, -0.18550288677215576, 0.13727712631225586, 0.15321558713912964, 0.023697946220636368, -0.24603958427906036, 0.2859383821487427, -0.014923237264156342, 0.1722000539302826, -0.065121129155159, -0.31668102741241455, -0.053701527416706085, -0.13756220042705536, 0.09100612998008728, -0.6348481774330139, 0.35380613803863525, 0.007176246494054794, -0.041339289397001266, -0.16188430786132812, -0.1475742906332016, -0.018050476908683777, 0.07290349900722504, 0.5200448036193848, 0.21683672070503235, 0.2093251496553421, -0.20436786115169525, -0.4473116099834442, 0.06675855815410614, -0.06124046444892883, -0.01721814274787903, 0.14868277311325073, -0.19696563482284546, 0.5546961426734924, -0.18386110663414001, 0.6516258716583252, -0.37281349301338196, 0.0651056244969368, -0.07924242317676544, 0.019686076790094376, 0.020976684987545013, -0.05939822643995285, -0.002804771065711975, -0.03364512324333191, 0.1575343906879425, 0.2505611181259155, -0.05955273658037186, 0.1921725571155548, -0.3644734025001526, -0.2029285430908203, 0.4465304911136627, 0.11696621775627136, -0.1790778487920761, -0.09378277510404587, -0.034523651003837585, 0.22494563460350037, -0.05343843996524811, -0.5481231808662415, -0.02748855948448181, 0.2250312864780426, 0.006644176319241524, -0.29158255457878113, 0.2220803201198578, -0.019137166440486908, -0.13194437325000763, -0.06748277693986893, 1.1606016159057617, -0.2642905116081238, -0.22525131702423096, 0.2253783792257309, -0.03510907664895058 ]
https://github.com/huggingface/datasets/issues/2134
awesome! I started getting this error as well when I tried to tokenize with a longer sequence length
Saving large in-memory datasets with save_to_disk crashes because of pickling
Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ```
18
Saving large in-memory datasets with save_to_disk crashes because of pickling Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ``` awesome! I started getting this error as well when I tried to tokenize with a longer sequence length
[ -0.31688857078552246, 0.09959536790847778, 0.11977994441986084, 0.3708880543708801, 0.25212326645851135, 0.0021296292543411255, -0.28349757194519043, 0.46396830677986145, 0.19055691361427307, 0.09646549820899963, 0.08088315278291702, 0.5146647691726685, -0.39890947937965393, 0.2905988097190857, -0.15748031437397003, -0.08337213844060898, 0.22001715004444122, -0.10456167161464691, -0.261580228805542, 0.171036958694458, -0.2519758343696594, -0.1009904071688652, 0.02054096758365631, -0.16596442461013794, -0.1712374985218048, -0.3141445517539978, -0.027155417948961258, 0.39561063051223755, -0.31936803460121155, -0.34529614448547363, -0.1409764289855957, -0.22311559319496155, 0.22814995050430298, 0.3274106979370117, -0.00012185026571387425, 0.038792580366134644, 0.13747429847717285, -0.14756688475608826, -0.49627625942230225, 0.004615187644958496, 0.025355055928230286, -0.5504592061042786, -0.1945045292377472, -0.25041115283966064, 0.33382755517959595, -0.09105396270751953, 0.11852903664112091, -0.3753316402435303, 0.2385227531194687, 0.20618116855621338, 0.14069926738739014, 0.3183521628379822, 0.28841492533683777, -0.023626131936907768, 0.08107921481132507, 0.2532387971878052, -0.23716290295124054, 0.21044446527957916, 0.2143959403038025, 0.09401028603315353, -0.06970535963773727, -0.10630874335765839, -0.048908837139606476, -0.2752484977245331, 0.009119958616793156, -0.07152271270751953, -0.3575342297554016, -0.23529286682605743, 0.11313256621360779, 0.13597248494625092, 0.20585568249225616, -0.47165191173553467, -0.6115642786026001, -0.44403308629989624, -0.09781718254089355, -0.2725954055786133, 0.06730228662490845, 0.25600874423980713, -0.08566600829362869, -0.009138038381934166, -0.14870908856391907, -0.5428617000579834, 0.06505190581083298, 0.09354281425476074, 0.31283390522003174, -0.26405733823776245, -0.2599281072616577, 0.2104804962873459, 0.4827488660812378, -0.28325802087783813, -0.24927003681659698, -0.19898642599582672, 0.024947069585323334, -0.0148133784532547, -0.010005656629800797, -0.16365806758403778, -0.06672870367765427, -0.053158100694417953, 0.2876330614089966, 0.12881962954998016, -0.026449313387274742, 0.16995078325271606, -0.31842848658561707, -0.010200399905443192, 0.3466801345348358, -0.05428536981344223, -0.2104746699333191, 0.3277970254421234, 0.3184901773929596, 0.051162239164114, 0.11517045646905899, 0.08625645935535431, -0.024431569501757622, -0.19468627870082855, 0.04683792591094971, -0.13934488594532013, 0.14263740181922913, -0.1221712976694107, -0.029800064861774445, 0.17173141241073608, -0.1409706473350525, 0.20416676998138428, -0.032762523740530014, 0.21958214044570923, -0.02597752772271633, 0.062077220529317856, -0.286443293094635, 0.07942962646484375, -0.15836897492408752, 0.07512958347797394, -0.11702454090118408, 0.19870269298553467, 0.024092048406600952, 0.23534463346004486, 0.13214869797229767, 0.024792354553937912, 0.20726549625396729, -0.01517866924405098, -0.2567569613456726, 0.10972058773040771, 0.0652008056640625, -0.4047945439815521, 0.12669503688812256, 0.2791752219200134, -0.04303225502371788, 0.11162251979112625, 0.08678222447633743, 0.04227373003959656, -0.24079325795173645, 0.14126819372177124, 0.009191583842039108, -0.21043114364147186, -0.045482173562049866, 0.008162231184542179, -0.19343863427639008, -0.12591469287872314, -0.5878510475158691, 0.07390902191400528, 0.35539278388023376, -0.17664095759391785, -0.1262134611606598, -0.2640073895454407, -0.17013603448867798, -0.344127893447876, 0.002665281295776367, 0.3127557635307312, -0.34855061769485474, 0.14305400848388672, -0.018117081373929977, 0.1768348067998886, 0.5048039555549622, 0.4281790256500244, 0.017092574387788773, -0.09400945156812668, -0.25844618678092957, 0.4258441627025604, 0.20392416417598724, -0.03459272161126137, -0.48217105865478516, 0.1800987422466278, 0.005572602152824402, -0.0328231118619442, -0.1284404844045639, 0.13741089403629303, 0.027890190482139587, -0.020142950117588043, -0.08649420738220215, 0.17512235045433044, 0.02064666710793972, 0.1888284534215927, -0.3232865631580353, -0.4281209707260132, -0.05699479952454567, 0.022981926798820496, -0.06873853504657745, -0.0665229931473732, 0.04380687698721886, -0.2526402473449707, 0.15861569344997406, -0.16420648992061615, 0.22679676115512848, 0.36928310990333557, 0.3107089400291443, -0.14134125411510468, -0.24104318022727966, -0.2540671229362488, -0.32099470496177673, 0.2904055714607239, 0.13462357223033905, -0.21288427710533142, -0.2942923605442047, 0.02481575310230255, -0.016008146107196808, 0.034478992223739624, -0.04616587236523628, 0.39299577474594116, -0.05612298846244812, -0.04324129968881607, 0.20988833904266357, 0.19749049842357635, -0.09711012244224548, -0.16691944003105164, -0.21900230646133423, 0.12281878292560577, -0.2471027374267578, 0.1366460770368576, -0.05822242051362991, -0.44691401720046997, 0.05689467489719391, -0.025214701890945435, 0.011301233433187008, -0.1903938502073288, -0.05679688602685928, 0.11310438066720963, 0.2439710646867752, -0.03615323081612587, -0.08444564044475555, 0.16410130262374878, 0.04777407646179199, 0.052743636071681976, 0.18249978125095367, -0.017229706048965454, 0.2800438702106476, 0.01963699609041214, -0.188722625374794, 0.3480973541736603, 0.09262268990278244, 0.1415984034538269, 0.3416217565536499, -0.11529779434204102, 0.051553964614868164, 0.07298286259174347, 0.21041223406791687, -0.17212316393852234, -0.1512313187122345, 0.16885153949260712, 0.35535314679145813, -0.03581862896680832, -0.3565799295902252, 0.041628725826740265, 0.5232876539230347, 0.007155917584896088, 0.41391849517822266, 0.28889548778533936, -0.030079029500484467, -0.17960311472415924, 0.049537427723407745, 0.14898227155208588, 0.4825509190559387, 0.0719781368970871, 0.2031986266374588, -0.04973386228084564, 0.09849520027637482, -0.09272296726703644, 0.049024589359760284, 0.18937429785728455, 0.2143327295780182, 0.26531848311424255, 0.186236172914505, -0.02254515141248703, -0.3985636234283447, 0.006851077079772949, -0.010327983647584915, 0.24902795255184174, -0.14075492322444916, 0.12291154265403748, -0.34889131784439087, -0.0930570662021637, -0.1756005734205246, 0.06900526583194733, -0.08246465772390366, -0.3389725685119629, -0.29778018593788147, 0.398057758808136, -0.379189133644104, 0.09527384489774704, -0.08240611851215363, 0.23964524269104004, 0.15884505212306976, 0.019331837072968483, 0.0811566561460495, 0.10533703863620758, -0.1719750612974167, -0.07530060410499573, 0.3932114541530609, -0.17836159467697144, 0.44499480724334717, 0.29425713419914246, -0.251566618680954, -0.5642054080963135, -0.009631127119064331, 0.09723247587680817, -0.044640857726335526, 0.29137298464775085, 0.15691091120243073, 0.2594358026981354, -0.06370715796947479, 0.16749997437000275, 0.02858997881412506, 0.16790539026260376, -0.2048673927783966, -0.09654843807220459, 0.12497122585773468, 0.11484111100435257, 0.012095168232917786, -0.12148120254278183, -0.3409329056739807, -0.3965243399143219, 0.4174039959907532, -0.03257230296730995, 0.10873493552207947, 0.25556349754333496, 0.3698805272579193, 0.3338322043418884, 0.1646704524755478, 0.013167332857847214, -0.07955894619226456, -0.20069000124931335, 0.269292414188385, 0.07351703941822052, -0.2851143479347229, -0.16854090988636017, 0.11639489233493805, -0.17618902027606964, 0.1963486671447754, -0.2961611747741699, 0.21460872888565063, -0.5010899901390076, 0.17509104311466217, -0.07386919111013412, 0.19846226274967194, 0.3098811209201813, 0.06706615537405014, -0.023270785808563232, 0.09268348664045334, -0.06223037466406822, -0.024927008897066116, 0.31868863105773926, 0.2138705849647522, 0.0005782973021268845, 0.29532667994499207, 0.29871866106987, 0.6582240462303162, 0.18573595583438873, -0.22996512055397034, 0.5270455479621887, 0.1381634622812271, 0.23228710889816284, -0.28675729036331177, -0.13933849334716797, 0.008317887783050537, -0.3838779926300049, -0.15290096402168274, -0.11361585557460785, -0.07684990018606186, -0.004623657092452049, 0.24871127307415009, -0.019594021141529083, 0.19590544700622559, -0.24337229132652283, 0.2963944971561432, -0.1548440158367157, 0.03545708209276199, -0.047251492738723755, 0.09713897109031677, -0.06895819306373596, 0.04044702276587486, 0.026408232748508453, -0.031232159584760666, 0.4733627140522003, 0.021388385444879532, -0.2703007459640503, -0.08479918539524078, -0.6920444369316101, 0.1975386142730713, 0.16491134464740753, 0.41105127334594727, -0.04303203895688057, -0.3325485587120056, -0.1942017674446106, -0.0915498360991478, 0.4273242652416229, -0.08387734740972519, -0.18161579966545105, 0.122612863779068, -0.06614144146442413, -0.3708956241607666, 0.01402679830789566, 0.04547402262687683, 0.5089049935340881, -0.07496462762355804, 0.618058979511261, -0.2792036533355713, 0.03599928319454193, -0.06251145154237747, 0.5453646183013916, -0.07982055842876434, 0.06740523874759674, -0.17307192087173462, -0.36235833168029785, -0.4296315908432007, 0.047850027680397034, 0.08238401263952255, -0.026880327612161636, -0.18008999526500702, -0.023699983954429626, -0.1829957365989685, -0.19463826715946198, -0.03070645034313202, -0.25555646419525146, 0.1911633312702179, -0.23267070949077606, 0.2806384563446045, -0.08001284301280975, 0.18963205814361572, 0.6002490520477295, 0.4785457253456116, -0.06648995727300644, -0.10001758486032486, 0.05312158167362213, 0.2909657955169678, 0.3145468831062317, 0.2713969945907593, -0.02655656449496746, 0.12825560569763184, 0.1029752641916275, 0.08966297656297684, -0.4230405390262604, 0.2618330717086792, 0.03760524094104767, -0.15944094955921173, -0.41241130232810974, -0.20015349984169006, 0.5952422618865967, 0.2829306423664093, 0.17781135439872742, 0.162955641746521, 0.03274528309702873, -0.11134319752454758, 0.3195311427116394, 0.04688229784369469, 0.7377009391784668, -0.049273062497377396, 0.3859347999095917, 0.1443641036748886, -0.13294187188148499, 0.3299088478088379, 0.2714165449142456, -0.018504083156585693, -0.45349323749542236, 0.008082710206508636, 0.06999429315328598, -0.11607376486063004, 0.2320919930934906, -0.07742028683423996, -0.22934333980083466, 0.2342054396867752, -0.2464665174484253, -0.3401261270046234, -0.20115414261817932, 0.29748696088790894, -0.4525097608566284, -0.32282590866088867, -0.03184840455651283, 0.08205001801252365, -0.18902795016765594, -0.0520339272916317, 0.03821638226509094, -0.026001665741205215, -0.1816880702972412, 0.08758105337619781, -0.3797725439071655, 0.07526222616434097, 0.018065836280584335, 0.4964677095413208, -0.20786462724208832, -0.09435875713825226, 0.13735760748386383, 0.03330131620168686, -0.019860338419675827, 0.1730111986398697, -0.12357588112354279, -0.12254664301872253, -0.19234393537044525, -0.025939809158444405, 0.15870888531208038, -0.17497198283672333, 0.3594849109649658, 0.11308827251195908, 0.05937276780605316, -0.018511924892663956, -0.20203372836112976, -0.0545756071805954, -0.17690277099609375, -0.1465854048728943, 0.057787105441093445, -0.28776025772094727, -0.6232828497886658, -0.11155462265014648, -0.21771231293678284, -0.3020790219306946, -0.008435534313321114, 0.24675795435905457, 0.15249046683311462, 0.3774370849132538, -0.16627861559391022, -0.013862550258636475, -0.0960465520620346, 0.5426027774810791, -0.2170470654964447, 0.36480262875556946, 0.5068680047988892, 0.17999717593193054, -0.20642757415771484, -0.15997062623500824, 0.3782239854335785, 0.005458533763885498, 0.1507755070924759, 0.5503350496292114, -0.0991172045469284, 0.01693713665008545, -0.18890483677387238, 0.2538345158100128, 0.15056520700454712, -0.3707577884197235, -0.16091570258140564, -0.10646367073059082, -0.559167206287384, 0.2067393660545349, 0.09277249872684479, 0.3967388868331909, -0.17637377977371216, -0.1226247102022171, -0.29035431146621704, -0.02800748683512211, -0.13918820023536682, 0.15781766176223755, -0.26768699288368225, 0.001669555902481079, 0.1658400446176529, -0.013793645426630974, -0.05258882790803909, -0.1007535308599472, -0.05952998250722885, 0.18422122299671173, -0.04861823841929436, -0.07482589781284332, -0.08302915841341019, 0.1172453910112381, 0.2271108478307724, -0.1736915111541748, -0.02661641128361225, -0.3926926851272583, -0.011301500722765923, -0.19078603386878967, 0.027992121875286102, 0.25192421674728394, -0.08854285627603531, 0.11281000077724457, 0.1268065869808197, 0.07773042470216751, 0.21721643209457397, 0.23223662376403809, 0.007179770618677139, 0.2455635666847229, 0.02331600710749626, 0.35431399941444397, 0.23113778233528137, -0.20541924238204956, -0.2343902885913849, 0.01848359778523445, 0.29073366522789, 0.0028008949011564255, 0.3051241636276245, -0.25820329785346985, -0.14234277606010437, 0.2555766701698303, 0.15252569317817688, 0.620274543762207, -0.13046802580356598, -0.2227960079908371, 0.29988935589790344, 0.08978148549795151, 0.06381414085626602, -0.3358575403690338, 0.09400138258934021, -0.1985318958759308, -0.07038427889347076, 0.034996647387742996, -0.12451334297657013, 0.16479431092739105, -0.8366093039512634, 0.06960032880306244, 0.290701687335968, 0.08233870565891266, -0.015476368367671967, 0.1485920250415802, 0.025813370943069458, -0.016961369663476944, 0.18717969954013824, 0.06379799544811249, 0.5537103414535522, 0.5625144243240356, -0.08183269202709198, 0.6099123954772949, 0.029685739427804947, 0.24464626610279083, -0.01658884808421135, -0.7433122992515564, 0.1946713626384735, 0.40496063232421875, 0.036110036075115204, 0.21617944538593292, 0.00826616957783699, 0.3752157390117645, -0.3950865566730499, -0.319102942943573, -0.050671759992837906, 0.2922397553920746, -0.37021544575691223, -0.26988086104393005, 0.06887544691562653, -0.10359768569469452, 0.10867531597614288, 0.36684450507164, -0.2612329423427582, -0.09778393059968948, 0.3455851376056671, -0.024921566247940063, 0.017914263531565666, -0.10972131043672562, 0.09591151773929596, -0.04204605147242546, 0.28909096121788025, -0.30971819162368774, 0.030630851164460182, 0.017491109669208527, -0.17209208011627197, -0.6128517389297485, -0.010683654807507992, 0.5050380825996399, 0.2819989323616028, -0.19612102210521698, -0.06606392562389374, 0.06855210661888123, 0.03033747524023056, -0.12914076447486877, 0.09921498596668243, -0.12384726107120514, 0.19700084626674652, 0.4543986916542053, -0.050410185009241104, -0.03480293229222298, -0.023467203602194786, 0.08829125016927719, 0.29303330183029175, -0.103910893201828, -0.03219874948263168, -0.07016339898109436, -0.32223352789878845, 0.10691802203655243, 0.12194761633872986, -0.1603209376335144, 0.18983379006385803, 0.5680359601974487, -0.14743483066558838, 0.22582244873046875, 0.08844888210296631, 0.04049377143383026, -0.05267811566591263, 0.7015368342399597, 0.40678757429122925, -0.25606587529182434, -0.46361374855041504, 0.13850580155849457, -0.06901499629020691, -0.002116583287715912, -0.2306670993566513, 0.05363161116838455, -0.18550288677215576, 0.13727712631225586, 0.15321558713912964, 0.023697946220636368, -0.24603958427906036, 0.2859383821487427, -0.014923237264156342, 0.1722000539302826, -0.065121129155159, -0.31668102741241455, -0.053701527416706085, -0.13756220042705536, 0.09100612998008728, -0.6348481774330139, 0.35380613803863525, 0.007176246494054794, -0.041339289397001266, -0.16188430786132812, -0.1475742906332016, -0.018050476908683777, 0.07290349900722504, 0.5200448036193848, 0.21683672070503235, 0.2093251496553421, -0.20436786115169525, -0.4473116099834442, 0.06675855815410614, -0.06124046444892883, -0.01721814274787903, 0.14868277311325073, -0.19696563482284546, 0.5546961426734924, -0.18386110663414001, 0.6516258716583252, -0.37281349301338196, 0.0651056244969368, -0.07924242317676544, 0.019686076790094376, 0.020976684987545013, -0.05939822643995285, -0.002804771065711975, -0.03364512324333191, 0.1575343906879425, 0.2505611181259155, -0.05955273658037186, 0.1921725571155548, -0.3644734025001526, -0.2029285430908203, 0.4465304911136627, 0.11696621775627136, -0.1790778487920761, -0.09378277510404587, -0.034523651003837585, 0.22494563460350037, -0.05343843996524811, -0.5481231808662415, -0.02748855948448181, 0.2250312864780426, 0.006644176319241524, -0.29158255457878113, 0.2220803201198578, -0.019137166440486908, -0.13194437325000763, -0.06748277693986893, 1.1606016159057617, -0.2642905116081238, -0.22525131702423096, 0.2253783792257309, -0.03510907664895058 ]
https://github.com/huggingface/datasets/issues/2134
@prokopCerny does this fix work for you? I found that with the latest master, my container with 500GB RAM starts crashing when I try to map a large dataset using `num_proc`. @lhoestq would it be possible to implement some logic to keep the individual cache files small (say below 100mb)? I find this helps with loading large datasets, but the "hack" I was using (increasing `num_proc` to a large number) doesn't work anymore with the latest master; my container crashes even with `num_proc=200` now
Saving large in-memory datasets with save_to_disk crashes because of pickling
Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ```
84
Saving large in-memory datasets with save_to_disk crashes because of pickling Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ``` @prokopCerny does this fix work for you? I found that with the latest master, my container with 500GB RAM starts crashing when I try to map a large dataset using `num_proc`. @lhoestq would it be possible to implement some logic to keep the individual cache files small (say below 100mb)? I find this helps with loading large datasets, but the "hack" I was using (increasing `num_proc` to a large number) doesn't work anymore with the latest master; my container crashes even with `num_proc=200` now
[ -0.31688857078552246, 0.09959536790847778, 0.11977994441986084, 0.3708880543708801, 0.25212326645851135, 0.0021296292543411255, -0.28349757194519043, 0.46396830677986145, 0.19055691361427307, 0.09646549820899963, 0.08088315278291702, 0.5146647691726685, -0.39890947937965393, 0.2905988097190857, -0.15748031437397003, -0.08337213844060898, 0.22001715004444122, -0.10456167161464691, -0.261580228805542, 0.171036958694458, -0.2519758343696594, -0.1009904071688652, 0.02054096758365631, -0.16596442461013794, -0.1712374985218048, -0.3141445517539978, -0.027155417948961258, 0.39561063051223755, -0.31936803460121155, -0.34529614448547363, -0.1409764289855957, -0.22311559319496155, 0.22814995050430298, 0.3274106979370117, -0.00012185026571387425, 0.038792580366134644, 0.13747429847717285, -0.14756688475608826, -0.49627625942230225, 0.004615187644958496, 0.025355055928230286, -0.5504592061042786, -0.1945045292377472, -0.25041115283966064, 0.33382755517959595, -0.09105396270751953, 0.11852903664112091, -0.3753316402435303, 0.2385227531194687, 0.20618116855621338, 0.14069926738739014, 0.3183521628379822, 0.28841492533683777, -0.023626131936907768, 0.08107921481132507, 0.2532387971878052, -0.23716290295124054, 0.21044446527957916, 0.2143959403038025, 0.09401028603315353, -0.06970535963773727, -0.10630874335765839, -0.048908837139606476, -0.2752484977245331, 0.009119958616793156, -0.07152271270751953, -0.3575342297554016, -0.23529286682605743, 0.11313256621360779, 0.13597248494625092, 0.20585568249225616, -0.47165191173553467, -0.6115642786026001, -0.44403308629989624, -0.09781718254089355, -0.2725954055786133, 0.06730228662490845, 0.25600874423980713, -0.08566600829362869, -0.009138038381934166, -0.14870908856391907, -0.5428617000579834, 0.06505190581083298, 0.09354281425476074, 0.31283390522003174, -0.26405733823776245, -0.2599281072616577, 0.2104804962873459, 0.4827488660812378, -0.28325802087783813, -0.24927003681659698, -0.19898642599582672, 0.024947069585323334, -0.0148133784532547, -0.010005656629800797, -0.16365806758403778, -0.06672870367765427, -0.053158100694417953, 0.2876330614089966, 0.12881962954998016, -0.026449313387274742, 0.16995078325271606, -0.31842848658561707, -0.010200399905443192, 0.3466801345348358, -0.05428536981344223, -0.2104746699333191, 0.3277970254421234, 0.3184901773929596, 0.051162239164114, 0.11517045646905899, 0.08625645935535431, -0.024431569501757622, -0.19468627870082855, 0.04683792591094971, -0.13934488594532013, 0.14263740181922913, -0.1221712976694107, -0.029800064861774445, 0.17173141241073608, -0.1409706473350525, 0.20416676998138428, -0.032762523740530014, 0.21958214044570923, -0.02597752772271633, 0.062077220529317856, -0.286443293094635, 0.07942962646484375, -0.15836897492408752, 0.07512958347797394, -0.11702454090118408, 0.19870269298553467, 0.024092048406600952, 0.23534463346004486, 0.13214869797229767, 0.024792354553937912, 0.20726549625396729, -0.01517866924405098, -0.2567569613456726, 0.10972058773040771, 0.0652008056640625, -0.4047945439815521, 0.12669503688812256, 0.2791752219200134, -0.04303225502371788, 0.11162251979112625, 0.08678222447633743, 0.04227373003959656, -0.24079325795173645, 0.14126819372177124, 0.009191583842039108, -0.21043114364147186, -0.045482173562049866, 0.008162231184542179, -0.19343863427639008, -0.12591469287872314, -0.5878510475158691, 0.07390902191400528, 0.35539278388023376, -0.17664095759391785, -0.1262134611606598, -0.2640073895454407, -0.17013603448867798, -0.344127893447876, 0.002665281295776367, 0.3127557635307312, -0.34855061769485474, 0.14305400848388672, -0.018117081373929977, 0.1768348067998886, 0.5048039555549622, 0.4281790256500244, 0.017092574387788773, -0.09400945156812668, -0.25844618678092957, 0.4258441627025604, 0.20392416417598724, -0.03459272161126137, -0.48217105865478516, 0.1800987422466278, 0.005572602152824402, -0.0328231118619442, -0.1284404844045639, 0.13741089403629303, 0.027890190482139587, -0.020142950117588043, -0.08649420738220215, 0.17512235045433044, 0.02064666710793972, 0.1888284534215927, -0.3232865631580353, -0.4281209707260132, -0.05699479952454567, 0.022981926798820496, -0.06873853504657745, -0.0665229931473732, 0.04380687698721886, -0.2526402473449707, 0.15861569344997406, -0.16420648992061615, 0.22679676115512848, 0.36928310990333557, 0.3107089400291443, -0.14134125411510468, -0.24104318022727966, -0.2540671229362488, -0.32099470496177673, 0.2904055714607239, 0.13462357223033905, -0.21288427710533142, -0.2942923605442047, 0.02481575310230255, -0.016008146107196808, 0.034478992223739624, -0.04616587236523628, 0.39299577474594116, -0.05612298846244812, -0.04324129968881607, 0.20988833904266357, 0.19749049842357635, -0.09711012244224548, -0.16691944003105164, -0.21900230646133423, 0.12281878292560577, -0.2471027374267578, 0.1366460770368576, -0.05822242051362991, -0.44691401720046997, 0.05689467489719391, -0.025214701890945435, 0.011301233433187008, -0.1903938502073288, -0.05679688602685928, 0.11310438066720963, 0.2439710646867752, -0.03615323081612587, -0.08444564044475555, 0.16410130262374878, 0.04777407646179199, 0.052743636071681976, 0.18249978125095367, -0.017229706048965454, 0.2800438702106476, 0.01963699609041214, -0.188722625374794, 0.3480973541736603, 0.09262268990278244, 0.1415984034538269, 0.3416217565536499, -0.11529779434204102, 0.051553964614868164, 0.07298286259174347, 0.21041223406791687, -0.17212316393852234, -0.1512313187122345, 0.16885153949260712, 0.35535314679145813, -0.03581862896680832, -0.3565799295902252, 0.041628725826740265, 0.5232876539230347, 0.007155917584896088, 0.41391849517822266, 0.28889548778533936, -0.030079029500484467, -0.17960311472415924, 0.049537427723407745, 0.14898227155208588, 0.4825509190559387, 0.0719781368970871, 0.2031986266374588, -0.04973386228084564, 0.09849520027637482, -0.09272296726703644, 0.049024589359760284, 0.18937429785728455, 0.2143327295780182, 0.26531848311424255, 0.186236172914505, -0.02254515141248703, -0.3985636234283447, 0.006851077079772949, -0.010327983647584915, 0.24902795255184174, -0.14075492322444916, 0.12291154265403748, -0.34889131784439087, -0.0930570662021637, -0.1756005734205246, 0.06900526583194733, -0.08246465772390366, -0.3389725685119629, -0.29778018593788147, 0.398057758808136, -0.379189133644104, 0.09527384489774704, -0.08240611851215363, 0.23964524269104004, 0.15884505212306976, 0.019331837072968483, 0.0811566561460495, 0.10533703863620758, -0.1719750612974167, -0.07530060410499573, 0.3932114541530609, -0.17836159467697144, 0.44499480724334717, 0.29425713419914246, -0.251566618680954, -0.5642054080963135, -0.009631127119064331, 0.09723247587680817, -0.044640857726335526, 0.29137298464775085, 0.15691091120243073, 0.2594358026981354, -0.06370715796947479, 0.16749997437000275, 0.02858997881412506, 0.16790539026260376, -0.2048673927783966, -0.09654843807220459, 0.12497122585773468, 0.11484111100435257, 0.012095168232917786, -0.12148120254278183, -0.3409329056739807, -0.3965243399143219, 0.4174039959907532, -0.03257230296730995, 0.10873493552207947, 0.25556349754333496, 0.3698805272579193, 0.3338322043418884, 0.1646704524755478, 0.013167332857847214, -0.07955894619226456, -0.20069000124931335, 0.269292414188385, 0.07351703941822052, -0.2851143479347229, -0.16854090988636017, 0.11639489233493805, -0.17618902027606964, 0.1963486671447754, -0.2961611747741699, 0.21460872888565063, -0.5010899901390076, 0.17509104311466217, -0.07386919111013412, 0.19846226274967194, 0.3098811209201813, 0.06706615537405014, -0.023270785808563232, 0.09268348664045334, -0.06223037466406822, -0.024927008897066116, 0.31868863105773926, 0.2138705849647522, 0.0005782973021268845, 0.29532667994499207, 0.29871866106987, 0.6582240462303162, 0.18573595583438873, -0.22996512055397034, 0.5270455479621887, 0.1381634622812271, 0.23228710889816284, -0.28675729036331177, -0.13933849334716797, 0.008317887783050537, -0.3838779926300049, -0.15290096402168274, -0.11361585557460785, -0.07684990018606186, -0.004623657092452049, 0.24871127307415009, -0.019594021141529083, 0.19590544700622559, -0.24337229132652283, 0.2963944971561432, -0.1548440158367157, 0.03545708209276199, -0.047251492738723755, 0.09713897109031677, -0.06895819306373596, 0.04044702276587486, 0.026408232748508453, -0.031232159584760666, 0.4733627140522003, 0.021388385444879532, -0.2703007459640503, -0.08479918539524078, -0.6920444369316101, 0.1975386142730713, 0.16491134464740753, 0.41105127334594727, -0.04303203895688057, -0.3325485587120056, -0.1942017674446106, -0.0915498360991478, 0.4273242652416229, -0.08387734740972519, -0.18161579966545105, 0.122612863779068, -0.06614144146442413, -0.3708956241607666, 0.01402679830789566, 0.04547402262687683, 0.5089049935340881, -0.07496462762355804, 0.618058979511261, -0.2792036533355713, 0.03599928319454193, -0.06251145154237747, 0.5453646183013916, -0.07982055842876434, 0.06740523874759674, -0.17307192087173462, -0.36235833168029785, -0.4296315908432007, 0.047850027680397034, 0.08238401263952255, -0.026880327612161636, -0.18008999526500702, -0.023699983954429626, -0.1829957365989685, -0.19463826715946198, -0.03070645034313202, -0.25555646419525146, 0.1911633312702179, -0.23267070949077606, 0.2806384563446045, -0.08001284301280975, 0.18963205814361572, 0.6002490520477295, 0.4785457253456116, -0.06648995727300644, -0.10001758486032486, 0.05312158167362213, 0.2909657955169678, 0.3145468831062317, 0.2713969945907593, -0.02655656449496746, 0.12825560569763184, 0.1029752641916275, 0.08966297656297684, -0.4230405390262604, 0.2618330717086792, 0.03760524094104767, -0.15944094955921173, -0.41241130232810974, -0.20015349984169006, 0.5952422618865967, 0.2829306423664093, 0.17781135439872742, 0.162955641746521, 0.03274528309702873, -0.11134319752454758, 0.3195311427116394, 0.04688229784369469, 0.7377009391784668, -0.049273062497377396, 0.3859347999095917, 0.1443641036748886, -0.13294187188148499, 0.3299088478088379, 0.2714165449142456, -0.018504083156585693, -0.45349323749542236, 0.008082710206508636, 0.06999429315328598, -0.11607376486063004, 0.2320919930934906, -0.07742028683423996, -0.22934333980083466, 0.2342054396867752, -0.2464665174484253, -0.3401261270046234, -0.20115414261817932, 0.29748696088790894, -0.4525097608566284, -0.32282590866088867, -0.03184840455651283, 0.08205001801252365, -0.18902795016765594, -0.0520339272916317, 0.03821638226509094, -0.026001665741205215, -0.1816880702972412, 0.08758105337619781, -0.3797725439071655, 0.07526222616434097, 0.018065836280584335, 0.4964677095413208, -0.20786462724208832, -0.09435875713825226, 0.13735760748386383, 0.03330131620168686, -0.019860338419675827, 0.1730111986398697, -0.12357588112354279, -0.12254664301872253, -0.19234393537044525, -0.025939809158444405, 0.15870888531208038, -0.17497198283672333, 0.3594849109649658, 0.11308827251195908, 0.05937276780605316, -0.018511924892663956, -0.20203372836112976, -0.0545756071805954, -0.17690277099609375, -0.1465854048728943, 0.057787105441093445, -0.28776025772094727, -0.6232828497886658, -0.11155462265014648, -0.21771231293678284, -0.3020790219306946, -0.008435534313321114, 0.24675795435905457, 0.15249046683311462, 0.3774370849132538, -0.16627861559391022, -0.013862550258636475, -0.0960465520620346, 0.5426027774810791, -0.2170470654964447, 0.36480262875556946, 0.5068680047988892, 0.17999717593193054, -0.20642757415771484, -0.15997062623500824, 0.3782239854335785, 0.005458533763885498, 0.1507755070924759, 0.5503350496292114, -0.0991172045469284, 0.01693713665008545, -0.18890483677387238, 0.2538345158100128, 0.15056520700454712, -0.3707577884197235, -0.16091570258140564, -0.10646367073059082, -0.559167206287384, 0.2067393660545349, 0.09277249872684479, 0.3967388868331909, -0.17637377977371216, -0.1226247102022171, -0.29035431146621704, -0.02800748683512211, -0.13918820023536682, 0.15781766176223755, -0.26768699288368225, 0.001669555902481079, 0.1658400446176529, -0.013793645426630974, -0.05258882790803909, -0.1007535308599472, -0.05952998250722885, 0.18422122299671173, -0.04861823841929436, -0.07482589781284332, -0.08302915841341019, 0.1172453910112381, 0.2271108478307724, -0.1736915111541748, -0.02661641128361225, -0.3926926851272583, -0.011301500722765923, -0.19078603386878967, 0.027992121875286102, 0.25192421674728394, -0.08854285627603531, 0.11281000077724457, 0.1268065869808197, 0.07773042470216751, 0.21721643209457397, 0.23223662376403809, 0.007179770618677139, 0.2455635666847229, 0.02331600710749626, 0.35431399941444397, 0.23113778233528137, -0.20541924238204956, -0.2343902885913849, 0.01848359778523445, 0.29073366522789, 0.0028008949011564255, 0.3051241636276245, -0.25820329785346985, -0.14234277606010437, 0.2555766701698303, 0.15252569317817688, 0.620274543762207, -0.13046802580356598, -0.2227960079908371, 0.29988935589790344, 0.08978148549795151, 0.06381414085626602, -0.3358575403690338, 0.09400138258934021, -0.1985318958759308, -0.07038427889347076, 0.034996647387742996, -0.12451334297657013, 0.16479431092739105, -0.8366093039512634, 0.06960032880306244, 0.290701687335968, 0.08233870565891266, -0.015476368367671967, 0.1485920250415802, 0.025813370943069458, -0.016961369663476944, 0.18717969954013824, 0.06379799544811249, 0.5537103414535522, 0.5625144243240356, -0.08183269202709198, 0.6099123954772949, 0.029685739427804947, 0.24464626610279083, -0.01658884808421135, -0.7433122992515564, 0.1946713626384735, 0.40496063232421875, 0.036110036075115204, 0.21617944538593292, 0.00826616957783699, 0.3752157390117645, -0.3950865566730499, -0.319102942943573, -0.050671759992837906, 0.2922397553920746, -0.37021544575691223, -0.26988086104393005, 0.06887544691562653, -0.10359768569469452, 0.10867531597614288, 0.36684450507164, -0.2612329423427582, -0.09778393059968948, 0.3455851376056671, -0.024921566247940063, 0.017914263531565666, -0.10972131043672562, 0.09591151773929596, -0.04204605147242546, 0.28909096121788025, -0.30971819162368774, 0.030630851164460182, 0.017491109669208527, -0.17209208011627197, -0.6128517389297485, -0.010683654807507992, 0.5050380825996399, 0.2819989323616028, -0.19612102210521698, -0.06606392562389374, 0.06855210661888123, 0.03033747524023056, -0.12914076447486877, 0.09921498596668243, -0.12384726107120514, 0.19700084626674652, 0.4543986916542053, -0.050410185009241104, -0.03480293229222298, -0.023467203602194786, 0.08829125016927719, 0.29303330183029175, -0.103910893201828, -0.03219874948263168, -0.07016339898109436, -0.32223352789878845, 0.10691802203655243, 0.12194761633872986, -0.1603209376335144, 0.18983379006385803, 0.5680359601974487, -0.14743483066558838, 0.22582244873046875, 0.08844888210296631, 0.04049377143383026, -0.05267811566591263, 0.7015368342399597, 0.40678757429122925, -0.25606587529182434, -0.46361374855041504, 0.13850580155849457, -0.06901499629020691, -0.002116583287715912, -0.2306670993566513, 0.05363161116838455, -0.18550288677215576, 0.13727712631225586, 0.15321558713912964, 0.023697946220636368, -0.24603958427906036, 0.2859383821487427, -0.014923237264156342, 0.1722000539302826, -0.065121129155159, -0.31668102741241455, -0.053701527416706085, -0.13756220042705536, 0.09100612998008728, -0.6348481774330139, 0.35380613803863525, 0.007176246494054794, -0.041339289397001266, -0.16188430786132812, -0.1475742906332016, -0.018050476908683777, 0.07290349900722504, 0.5200448036193848, 0.21683672070503235, 0.2093251496553421, -0.20436786115169525, -0.4473116099834442, 0.06675855815410614, -0.06124046444892883, -0.01721814274787903, 0.14868277311325073, -0.19696563482284546, 0.5546961426734924, -0.18386110663414001, 0.6516258716583252, -0.37281349301338196, 0.0651056244969368, -0.07924242317676544, 0.019686076790094376, 0.020976684987545013, -0.05939822643995285, -0.002804771065711975, -0.03364512324333191, 0.1575343906879425, 0.2505611181259155, -0.05955273658037186, 0.1921725571155548, -0.3644734025001526, -0.2029285430908203, 0.4465304911136627, 0.11696621775627136, -0.1790778487920761, -0.09378277510404587, -0.034523651003837585, 0.22494563460350037, -0.05343843996524811, -0.5481231808662415, -0.02748855948448181, 0.2250312864780426, 0.006644176319241524, -0.29158255457878113, 0.2220803201198578, -0.019137166440486908, -0.13194437325000763, -0.06748277693986893, 1.1606016159057617, -0.2642905116081238, -0.22525131702423096, 0.2253783792257309, -0.03510907664895058 ]
https://github.com/huggingface/datasets/issues/2134
Closing since the original issue was fixed in #2150 Feel free to reopen if you are still experiencing it. For the other problems, please open separate issues
Saving large in-memory datasets with save_to_disk crashes because of pickling
Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ```
27
Saving large in-memory datasets with save_to_disk crashes because of pickling Using Datasets 1.5.0 on Python 3.7. Recently I've been working on medium to large size datasets (pretokenized raw text sizes from few gigabytes to low tens of gigabytes), and have found out that several preprocessing steps are massively faster when done in memory, and I have the ability to requisition a lot of RAM, so I decided to do these steps completely out of the datasets library. So my workflow is to do several .map() on datasets object, then for the operation which is faster in memory to extract the necessary columns from the dataset and then drop it whole, do the transformation in memory, and then create a fresh Dataset object using .from_dict() or other method. When I then try to call save_to_disk(path) on the dataset, it crashes because of pickling, which appears to be because of using old pickle protocol which doesn't support large files (over 4 GiB). ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 80, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 75, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 60, in tokenize_and_chunkify contexts_dataset.save_to_disk(chunked_path) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 457, in save_to_disk self = pickle.loads(pickle.dumps(self)) OverflowError: cannot serialize a bytes object larger than 4 GiB ``` From what I've seen this issue may be possibly fixed, as the line `self = pickle.loads(pickle.dumps(self))` does not appear to be present in the current state of the repository. To save these datasets to disk, I've resorted to calling .map() over them with `function=None` and specifying the .arrow cache file, and then creating a new dataset using the .from_file() method, which I can then safely save to disk. Additional issue when working with these large in-memory datasets is when using multiprocessing, is again to do with pickling. I've tried to speed up the mapping with function=None by specifying num_proc to the available cpu count, and I again get issues with transferring the dataset, with the following traceback. I am not sure if I should open a separate issue for that. ``` Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295Traceback (most recent call last): File "./tokenize_and_chunkify_in_memory.py", line 94, in <module> main() File "./tokenize_and_chunkify_in_memory.py", line 89, in main tokenize_and_chunkify(config) File "./tokenize_and_chunkify_in_memory.py", line 67, in tokenize_and_chunkify contexts_dataset.map(function=None, cache_file_name=str(output_dir_path / "tmp.arrow"), writer_batch_size=50000, num_proc=config.threads) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in map transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1485, in <listcomp> transformed_shards = [r.get() for r in results] File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 657, in get raise self._value File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/pool.py", line 431, in _handle_tasks put(task) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/connection.py", line 209, in send self._send_bytes(_ForkingPickler.dumps(obj)) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/multiprocess/reduction.py", line 54, in dumps cls(buf, protocol, *args, **kwds).dump(obj) File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 437, in dump self.save(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 662, in save_reduce save(state) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/home/cernypro/dev/envs/huggingface_gpu/lib/python3.7/site-packages/dill/_dill.py", line 941, in save_module_dict StockPickler.save_dict(pickler, obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 859, in save_dict self._batch_setitems(obj.items()) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 885, in _batch_setitems save(v) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 846, in _batch_appends save(tmp[0]) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 789, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 819, in save_list self._batch_appends(obj) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 843, in _batch_appends save(x) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 549, in save self.save_reduce(obj=obj, *rv) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 638, in save_reduce save(args) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 774, in save_tuple save(element) File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 504, in save f(self, obj) # Call unbound method with explicit self File "/mnt/appl/software/Python/3.7.4-GCCcore-8.3.0/lib/python3.7/pickle.py", line 732, in save_bytes self._write_large_bytes(BINBYTES + pack("<I", n), obj) struct.error: 'I' format requires 0 <= number <= 4294967295 ``` Closing since the original issue was fixed in #2150 Feel free to reopen if you are still experiencing it. For the other problems, please open separate issues
[ -0.31688857078552246, 0.09959536790847778, 0.11977994441986084, 0.3708880543708801, 0.25212326645851135, 0.0021296292543411255, -0.28349757194519043, 0.46396830677986145, 0.19055691361427307, 0.09646549820899963, 0.08088315278291702, 0.5146647691726685, -0.39890947937965393, 0.2905988097190857, -0.15748031437397003, -0.08337213844060898, 0.22001715004444122, -0.10456167161464691, -0.261580228805542, 0.171036958694458, -0.2519758343696594, -0.1009904071688652, 0.02054096758365631, -0.16596442461013794, -0.1712374985218048, -0.3141445517539978, -0.027155417948961258, 0.39561063051223755, -0.31936803460121155, -0.34529614448547363, -0.1409764289855957, -0.22311559319496155, 0.22814995050430298, 0.3274106979370117, -0.00012185026571387425, 0.038792580366134644, 0.13747429847717285, -0.14756688475608826, -0.49627625942230225, 0.004615187644958496, 0.025355055928230286, -0.5504592061042786, -0.1945045292377472, -0.25041115283966064, 0.33382755517959595, -0.09105396270751953, 0.11852903664112091, -0.3753316402435303, 0.2385227531194687, 0.20618116855621338, 0.14069926738739014, 0.3183521628379822, 0.28841492533683777, -0.023626131936907768, 0.08107921481132507, 0.2532387971878052, -0.23716290295124054, 0.21044446527957916, 0.2143959403038025, 0.09401028603315353, -0.06970535963773727, -0.10630874335765839, -0.048908837139606476, -0.2752484977245331, 0.009119958616793156, -0.07152271270751953, -0.3575342297554016, -0.23529286682605743, 0.11313256621360779, 0.13597248494625092, 0.20585568249225616, -0.47165191173553467, -0.6115642786026001, -0.44403308629989624, -0.09781718254089355, -0.2725954055786133, 0.06730228662490845, 0.25600874423980713, -0.08566600829362869, -0.009138038381934166, -0.14870908856391907, -0.5428617000579834, 0.06505190581083298, 0.09354281425476074, 0.31283390522003174, -0.26405733823776245, -0.2599281072616577, 0.2104804962873459, 0.4827488660812378, -0.28325802087783813, -0.24927003681659698, -0.19898642599582672, 0.024947069585323334, -0.0148133784532547, -0.010005656629800797, -0.16365806758403778, -0.06672870367765427, -0.053158100694417953, 0.2876330614089966, 0.12881962954998016, -0.026449313387274742, 0.16995078325271606, -0.31842848658561707, -0.010200399905443192, 0.3466801345348358, -0.05428536981344223, -0.2104746699333191, 0.3277970254421234, 0.3184901773929596, 0.051162239164114, 0.11517045646905899, 0.08625645935535431, -0.024431569501757622, -0.19468627870082855, 0.04683792591094971, -0.13934488594532013, 0.14263740181922913, -0.1221712976694107, -0.029800064861774445, 0.17173141241073608, -0.1409706473350525, 0.20416676998138428, -0.032762523740530014, 0.21958214044570923, -0.02597752772271633, 0.062077220529317856, -0.286443293094635, 0.07942962646484375, -0.15836897492408752, 0.07512958347797394, -0.11702454090118408, 0.19870269298553467, 0.024092048406600952, 0.23534463346004486, 0.13214869797229767, 0.024792354553937912, 0.20726549625396729, -0.01517866924405098, -0.2567569613456726, 0.10972058773040771, 0.0652008056640625, -0.4047945439815521, 0.12669503688812256, 0.2791752219200134, -0.04303225502371788, 0.11162251979112625, 0.08678222447633743, 0.04227373003959656, -0.24079325795173645, 0.14126819372177124, 0.009191583842039108, -0.21043114364147186, -0.045482173562049866, 0.008162231184542179, -0.19343863427639008, -0.12591469287872314, -0.5878510475158691, 0.07390902191400528, 0.35539278388023376, -0.17664095759391785, -0.1262134611606598, -0.2640073895454407, -0.17013603448867798, -0.344127893447876, 0.002665281295776367, 0.3127557635307312, -0.34855061769485474, 0.14305400848388672, -0.018117081373929977, 0.1768348067998886, 0.5048039555549622, 0.4281790256500244, 0.017092574387788773, -0.09400945156812668, -0.25844618678092957, 0.4258441627025604, 0.20392416417598724, -0.03459272161126137, -0.48217105865478516, 0.1800987422466278, 0.005572602152824402, -0.0328231118619442, -0.1284404844045639, 0.13741089403629303, 0.027890190482139587, -0.020142950117588043, -0.08649420738220215, 0.17512235045433044, 0.02064666710793972, 0.1888284534215927, -0.3232865631580353, -0.4281209707260132, -0.05699479952454567, 0.022981926798820496, -0.06873853504657745, -0.0665229931473732, 0.04380687698721886, -0.2526402473449707, 0.15861569344997406, -0.16420648992061615, 0.22679676115512848, 0.36928310990333557, 0.3107089400291443, -0.14134125411510468, -0.24104318022727966, -0.2540671229362488, -0.32099470496177673, 0.2904055714607239, 0.13462357223033905, -0.21288427710533142, -0.2942923605442047, 0.02481575310230255, -0.016008146107196808, 0.034478992223739624, -0.04616587236523628, 0.39299577474594116, -0.05612298846244812, -0.04324129968881607, 0.20988833904266357, 0.19749049842357635, -0.09711012244224548, -0.16691944003105164, -0.21900230646133423, 0.12281878292560577, -0.2471027374267578, 0.1366460770368576, -0.05822242051362991, -0.44691401720046997, 0.05689467489719391, -0.025214701890945435, 0.011301233433187008, -0.1903938502073288, -0.05679688602685928, 0.11310438066720963, 0.2439710646867752, -0.03615323081612587, -0.08444564044475555, 0.16410130262374878, 0.04777407646179199, 0.052743636071681976, 0.18249978125095367, -0.017229706048965454, 0.2800438702106476, 0.01963699609041214, -0.188722625374794, 0.3480973541736603, 0.09262268990278244, 0.1415984034538269, 0.3416217565536499, -0.11529779434204102, 0.051553964614868164, 0.07298286259174347, 0.21041223406791687, -0.17212316393852234, -0.1512313187122345, 0.16885153949260712, 0.35535314679145813, -0.03581862896680832, -0.3565799295902252, 0.041628725826740265, 0.5232876539230347, 0.007155917584896088, 0.41391849517822266, 0.28889548778533936, -0.030079029500484467, -0.17960311472415924, 0.049537427723407745, 0.14898227155208588, 0.4825509190559387, 0.0719781368970871, 0.2031986266374588, -0.04973386228084564, 0.09849520027637482, -0.09272296726703644, 0.049024589359760284, 0.18937429785728455, 0.2143327295780182, 0.26531848311424255, 0.186236172914505, -0.02254515141248703, -0.3985636234283447, 0.006851077079772949, -0.010327983647584915, 0.24902795255184174, -0.14075492322444916, 0.12291154265403748, -0.34889131784439087, -0.0930570662021637, -0.1756005734205246, 0.06900526583194733, -0.08246465772390366, -0.3389725685119629, -0.29778018593788147, 0.398057758808136, -0.379189133644104, 0.09527384489774704, -0.08240611851215363, 0.23964524269104004, 0.15884505212306976, 0.019331837072968483, 0.0811566561460495, 0.10533703863620758, -0.1719750612974167, -0.07530060410499573, 0.3932114541530609, -0.17836159467697144, 0.44499480724334717, 0.29425713419914246, -0.251566618680954, -0.5642054080963135, -0.009631127119064331, 0.09723247587680817, -0.044640857726335526, 0.29137298464775085, 0.15691091120243073, 0.2594358026981354, -0.06370715796947479, 0.16749997437000275, 0.02858997881412506, 0.16790539026260376, -0.2048673927783966, -0.09654843807220459, 0.12497122585773468, 0.11484111100435257, 0.012095168232917786, -0.12148120254278183, -0.3409329056739807, -0.3965243399143219, 0.4174039959907532, -0.03257230296730995, 0.10873493552207947, 0.25556349754333496, 0.3698805272579193, 0.3338322043418884, 0.1646704524755478, 0.013167332857847214, -0.07955894619226456, -0.20069000124931335, 0.269292414188385, 0.07351703941822052, -0.2851143479347229, -0.16854090988636017, 0.11639489233493805, -0.17618902027606964, 0.1963486671447754, -0.2961611747741699, 0.21460872888565063, -0.5010899901390076, 0.17509104311466217, -0.07386919111013412, 0.19846226274967194, 0.3098811209201813, 0.06706615537405014, -0.023270785808563232, 0.09268348664045334, -0.06223037466406822, -0.024927008897066116, 0.31868863105773926, 0.2138705849647522, 0.0005782973021268845, 0.29532667994499207, 0.29871866106987, 0.6582240462303162, 0.18573595583438873, -0.22996512055397034, 0.5270455479621887, 0.1381634622812271, 0.23228710889816284, -0.28675729036331177, -0.13933849334716797, 0.008317887783050537, -0.3838779926300049, -0.15290096402168274, -0.11361585557460785, -0.07684990018606186, -0.004623657092452049, 0.24871127307415009, -0.019594021141529083, 0.19590544700622559, -0.24337229132652283, 0.2963944971561432, -0.1548440158367157, 0.03545708209276199, -0.047251492738723755, 0.09713897109031677, -0.06895819306373596, 0.04044702276587486, 0.026408232748508453, -0.031232159584760666, 0.4733627140522003, 0.021388385444879532, -0.2703007459640503, -0.08479918539524078, -0.6920444369316101, 0.1975386142730713, 0.16491134464740753, 0.41105127334594727, -0.04303203895688057, -0.3325485587120056, -0.1942017674446106, -0.0915498360991478, 0.4273242652416229, -0.08387734740972519, -0.18161579966545105, 0.122612863779068, -0.06614144146442413, -0.3708956241607666, 0.01402679830789566, 0.04547402262687683, 0.5089049935340881, -0.07496462762355804, 0.618058979511261, -0.2792036533355713, 0.03599928319454193, -0.06251145154237747, 0.5453646183013916, -0.07982055842876434, 0.06740523874759674, -0.17307192087173462, -0.36235833168029785, -0.4296315908432007, 0.047850027680397034, 0.08238401263952255, -0.026880327612161636, -0.18008999526500702, -0.023699983954429626, -0.1829957365989685, -0.19463826715946198, -0.03070645034313202, -0.25555646419525146, 0.1911633312702179, -0.23267070949077606, 0.2806384563446045, -0.08001284301280975, 0.18963205814361572, 0.6002490520477295, 0.4785457253456116, -0.06648995727300644, -0.10001758486032486, 0.05312158167362213, 0.2909657955169678, 0.3145468831062317, 0.2713969945907593, -0.02655656449496746, 0.12825560569763184, 0.1029752641916275, 0.08966297656297684, -0.4230405390262604, 0.2618330717086792, 0.03760524094104767, -0.15944094955921173, -0.41241130232810974, -0.20015349984169006, 0.5952422618865967, 0.2829306423664093, 0.17781135439872742, 0.162955641746521, 0.03274528309702873, -0.11134319752454758, 0.3195311427116394, 0.04688229784369469, 0.7377009391784668, -0.049273062497377396, 0.3859347999095917, 0.1443641036748886, -0.13294187188148499, 0.3299088478088379, 0.2714165449142456, -0.018504083156585693, -0.45349323749542236, 0.008082710206508636, 0.06999429315328598, -0.11607376486063004, 0.2320919930934906, -0.07742028683423996, -0.22934333980083466, 0.2342054396867752, -0.2464665174484253, -0.3401261270046234, -0.20115414261817932, 0.29748696088790894, -0.4525097608566284, -0.32282590866088867, -0.03184840455651283, 0.08205001801252365, -0.18902795016765594, -0.0520339272916317, 0.03821638226509094, -0.026001665741205215, -0.1816880702972412, 0.08758105337619781, -0.3797725439071655, 0.07526222616434097, 0.018065836280584335, 0.4964677095413208, -0.20786462724208832, -0.09435875713825226, 0.13735760748386383, 0.03330131620168686, -0.019860338419675827, 0.1730111986398697, -0.12357588112354279, -0.12254664301872253, -0.19234393537044525, -0.025939809158444405, 0.15870888531208038, -0.17497198283672333, 0.3594849109649658, 0.11308827251195908, 0.05937276780605316, -0.018511924892663956, -0.20203372836112976, -0.0545756071805954, -0.17690277099609375, -0.1465854048728943, 0.057787105441093445, -0.28776025772094727, -0.6232828497886658, -0.11155462265014648, -0.21771231293678284, -0.3020790219306946, -0.008435534313321114, 0.24675795435905457, 0.15249046683311462, 0.3774370849132538, -0.16627861559391022, -0.013862550258636475, -0.0960465520620346, 0.5426027774810791, -0.2170470654964447, 0.36480262875556946, 0.5068680047988892, 0.17999717593193054, -0.20642757415771484, -0.15997062623500824, 0.3782239854335785, 0.005458533763885498, 0.1507755070924759, 0.5503350496292114, -0.0991172045469284, 0.01693713665008545, -0.18890483677387238, 0.2538345158100128, 0.15056520700454712, -0.3707577884197235, -0.16091570258140564, -0.10646367073059082, -0.559167206287384, 0.2067393660545349, 0.09277249872684479, 0.3967388868331909, -0.17637377977371216, -0.1226247102022171, -0.29035431146621704, -0.02800748683512211, -0.13918820023536682, 0.15781766176223755, -0.26768699288368225, 0.001669555902481079, 0.1658400446176529, -0.013793645426630974, -0.05258882790803909, -0.1007535308599472, -0.05952998250722885, 0.18422122299671173, -0.04861823841929436, -0.07482589781284332, -0.08302915841341019, 0.1172453910112381, 0.2271108478307724, -0.1736915111541748, -0.02661641128361225, -0.3926926851272583, -0.011301500722765923, -0.19078603386878967, 0.027992121875286102, 0.25192421674728394, -0.08854285627603531, 0.11281000077724457, 0.1268065869808197, 0.07773042470216751, 0.21721643209457397, 0.23223662376403809, 0.007179770618677139, 0.2455635666847229, 0.02331600710749626, 0.35431399941444397, 0.23113778233528137, -0.20541924238204956, -0.2343902885913849, 0.01848359778523445, 0.29073366522789, 0.0028008949011564255, 0.3051241636276245, -0.25820329785346985, -0.14234277606010437, 0.2555766701698303, 0.15252569317817688, 0.620274543762207, -0.13046802580356598, -0.2227960079908371, 0.29988935589790344, 0.08978148549795151, 0.06381414085626602, -0.3358575403690338, 0.09400138258934021, -0.1985318958759308, -0.07038427889347076, 0.034996647387742996, -0.12451334297657013, 0.16479431092739105, -0.8366093039512634, 0.06960032880306244, 0.290701687335968, 0.08233870565891266, -0.015476368367671967, 0.1485920250415802, 0.025813370943069458, -0.016961369663476944, 0.18717969954013824, 0.06379799544811249, 0.5537103414535522, 0.5625144243240356, -0.08183269202709198, 0.6099123954772949, 0.029685739427804947, 0.24464626610279083, -0.01658884808421135, -0.7433122992515564, 0.1946713626384735, 0.40496063232421875, 0.036110036075115204, 0.21617944538593292, 0.00826616957783699, 0.3752157390117645, -0.3950865566730499, -0.319102942943573, -0.050671759992837906, 0.2922397553920746, -0.37021544575691223, -0.26988086104393005, 0.06887544691562653, -0.10359768569469452, 0.10867531597614288, 0.36684450507164, -0.2612329423427582, -0.09778393059968948, 0.3455851376056671, -0.024921566247940063, 0.017914263531565666, -0.10972131043672562, 0.09591151773929596, -0.04204605147242546, 0.28909096121788025, -0.30971819162368774, 0.030630851164460182, 0.017491109669208527, -0.17209208011627197, -0.6128517389297485, -0.010683654807507992, 0.5050380825996399, 0.2819989323616028, -0.19612102210521698, -0.06606392562389374, 0.06855210661888123, 0.03033747524023056, -0.12914076447486877, 0.09921498596668243, -0.12384726107120514, 0.19700084626674652, 0.4543986916542053, -0.050410185009241104, -0.03480293229222298, -0.023467203602194786, 0.08829125016927719, 0.29303330183029175, -0.103910893201828, -0.03219874948263168, -0.07016339898109436, -0.32223352789878845, 0.10691802203655243, 0.12194761633872986, -0.1603209376335144, 0.18983379006385803, 0.5680359601974487, -0.14743483066558838, 0.22582244873046875, 0.08844888210296631, 0.04049377143383026, -0.05267811566591263, 0.7015368342399597, 0.40678757429122925, -0.25606587529182434, -0.46361374855041504, 0.13850580155849457, -0.06901499629020691, -0.002116583287715912, -0.2306670993566513, 0.05363161116838455, -0.18550288677215576, 0.13727712631225586, 0.15321558713912964, 0.023697946220636368, -0.24603958427906036, 0.2859383821487427, -0.014923237264156342, 0.1722000539302826, -0.065121129155159, -0.31668102741241455, -0.053701527416706085, -0.13756220042705536, 0.09100612998008728, -0.6348481774330139, 0.35380613803863525, 0.007176246494054794, -0.041339289397001266, -0.16188430786132812, -0.1475742906332016, -0.018050476908683777, 0.07290349900722504, 0.5200448036193848, 0.21683672070503235, 0.2093251496553421, -0.20436786115169525, -0.4473116099834442, 0.06675855815410614, -0.06124046444892883, -0.01721814274787903, 0.14868277311325073, -0.19696563482284546, 0.5546961426734924, -0.18386110663414001, 0.6516258716583252, -0.37281349301338196, 0.0651056244969368, -0.07924242317676544, 0.019686076790094376, 0.020976684987545013, -0.05939822643995285, -0.002804771065711975, -0.03364512324333191, 0.1575343906879425, 0.2505611181259155, -0.05955273658037186, 0.1921725571155548, -0.3644734025001526, -0.2029285430908203, 0.4465304911136627, 0.11696621775627136, -0.1790778487920761, -0.09378277510404587, -0.034523651003837585, 0.22494563460350037, -0.05343843996524811, -0.5481231808662415, -0.02748855948448181, 0.2250312864780426, 0.006644176319241524, -0.29158255457878113, 0.2220803201198578, -0.019137166440486908, -0.13194437325000763, -0.06748277693986893, 1.1606016159057617, -0.2642905116081238, -0.22525131702423096, 0.2253783792257309, -0.03510907664895058 ]
https://github.com/huggingface/datasets/issues/2133
If you print those questions, you get readable texts: ```python >>> questions = [ ... "\u0645\u062a\u0649 \u0628\u062f\u0627\u062a \u0627\u0644\u0645\u062c\u0644\u0629 \u0627\u0644\u0645\u062f\u0631\u0633\u064a\u0629 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645 \u0628\u0627\u0644\u0646\u0634\u0631?", ... "\u0643\u0645 \u0645\u0631\u0629 \u064a\u062a\u0645 \u0646\u0634\u0631\u0647\u0627 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", ... "\u0645\u0627 \u0647\u064a \u0627\u0644\u0648\u0631\u0642\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", ... "\u0643\u0645 \u0639\u062f\u062f \u0627\u0644\u0627\u0648\u0631\u0627\u0642 \u0627\u0644\u0627\u062e\u0628\u0627\u0631\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0627\u0644\u062a\u064a \u0648\u062c\u062f\u062a \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", ... "\u0641\u064a \u0627\u064a \u0633\u0646\u0629 \u0628\u062f\u0627\u062a \u0648\u0631\u0642\u0629 \u0627\u0644\u0637\u0627\u0644\u0628 \u0627\u0644\u062d\u0633 \u0627\u0644\u0633\u0644\u064a\u0645 \u0628\u0627\u0644\u0646\u0634\u0631 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?" ... ] >>> print(questions) ['متى بدات المجلة المدرسية في نوتردام بالنشر?', 'كم مرة يتم نشرها في نوتردام?', 'ما هي الورقة اليومية للطلاب في نوتردام?', 'كم عدد الاوراق الاخبارية للطلاب التي وجدت في نوتردام?', 'في اي سنة بدات ورقة الطالب الحس السليم بالنشر في نوتردام?'] ``` I don't think we can change this
bug in mlqa dataset
Hi Looking into MLQA dataset for langauge "ar": ``` "question": [ "\u0645\u062a\u0649 \u0628\u062f\u0627\u062a \u0627\u0644\u0645\u062c\u0644\u0629 \u0627\u0644\u0645\u062f\u0631\u0633\u064a\u0629 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645 \u0628\u0627\u0644\u0646\u0634\u0631?", "\u0643\u0645 \u0645\u0631\u0629 \u064a\u062a\u0645 \u0646\u0634\u0631\u0647\u0627 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0645\u0627 \u0647\u064a \u0627\u0644\u0648\u0631\u0642\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0643\u0645 \u0639\u062f\u062f \u0627\u0644\u0627\u0648\u0631\u0627\u0642 \u0627\u0644\u0627\u062e\u0628\u0627\u0631\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0627\u0644\u062a\u064a \u0648\u062c\u062f\u062a \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0641\u064a \u0627\u064a \u0633\u0646\u0629 \u0628\u062f\u0627\u062a \u0648\u0631\u0642\u0629 \u0627\u0644\u0637\u0627\u0644\u0628 \u0627\u0644\u062d\u0633 \u0627\u0644\u0633\u0644\u064a\u0645 \u0628\u0627\u0644\u0646\u0634\u0631 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?" ] ``` the questions are in the wrong format, and not readable, could you please have a look? thanks @lhoestq
111
bug in mlqa dataset Hi Looking into MLQA dataset for langauge "ar": ``` "question": [ "\u0645\u062a\u0649 \u0628\u062f\u0627\u062a \u0627\u0644\u0645\u062c\u0644\u0629 \u0627\u0644\u0645\u062f\u0631\u0633\u064a\u0629 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645 \u0628\u0627\u0644\u0646\u0634\u0631?", "\u0643\u0645 \u0645\u0631\u0629 \u064a\u062a\u0645 \u0646\u0634\u0631\u0647\u0627 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0645\u0627 \u0647\u064a \u0627\u0644\u0648\u0631\u0642\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0643\u0645 \u0639\u062f\u062f \u0627\u0644\u0627\u0648\u0631\u0627\u0642 \u0627\u0644\u0627\u062e\u0628\u0627\u0631\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0627\u0644\u062a\u064a \u0648\u062c\u062f\u062a \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0641\u064a \u0627\u064a \u0633\u0646\u0629 \u0628\u062f\u0627\u062a \u0648\u0631\u0642\u0629 \u0627\u0644\u0637\u0627\u0644\u0628 \u0627\u0644\u062d\u0633 \u0627\u0644\u0633\u0644\u064a\u0645 \u0628\u0627\u0644\u0646\u0634\u0631 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?" ] ``` the questions are in the wrong format, and not readable, could you please have a look? thanks @lhoestq If you print those questions, you get readable texts: ```python >>> questions = [ ... "\u0645\u062a\u0649 \u0628\u062f\u0627\u062a \u0627\u0644\u0645\u062c\u0644\u0629 \u0627\u0644\u0645\u062f\u0631\u0633\u064a\u0629 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645 \u0628\u0627\u0644\u0646\u0634\u0631?", ... "\u0643\u0645 \u0645\u0631\u0629 \u064a\u062a\u0645 \u0646\u0634\u0631\u0647\u0627 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", ... "\u0645\u0627 \u0647\u064a \u0627\u0644\u0648\u0631\u0642\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", ... "\u0643\u0645 \u0639\u062f\u062f \u0627\u0644\u0627\u0648\u0631\u0627\u0642 \u0627\u0644\u0627\u062e\u0628\u0627\u0631\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0627\u0644\u062a\u064a \u0648\u062c\u062f\u062a \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", ... "\u0641\u064a \u0627\u064a \u0633\u0646\u0629 \u0628\u062f\u0627\u062a \u0648\u0631\u0642\u0629 \u0627\u0644\u0637\u0627\u0644\u0628 \u0627\u0644\u062d\u0633 \u0627\u0644\u0633\u0644\u064a\u0645 \u0628\u0627\u0644\u0646\u0634\u0631 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?" ... ] >>> print(questions) ['متى بدات المجلة المدرسية في نوتردام بالنشر?', 'كم مرة يتم نشرها في نوتردام?', 'ما هي الورقة اليومية للطلاب في نوتردام?', 'كم عدد الاوراق الاخبارية للطلاب التي وجدت في نوتردام?', 'في اي سنة بدات ورقة الطالب الحس السليم بالنشر في نوتردام?'] ``` I don't think we can change this
[ -0.11585284769535065, -0.23156818747520447, -0.2734040319919586, 0.21121220290660858, 0.3321489989757538, 0.07119500637054443, 0.35246899724006653, 0.12133811414241791, -0.32277214527130127, 0.22545401751995087, 0.06188713014125824, 0.2817643880844116, 0.25186243653297424, 0.256120890378952, 0.11667608469724655, -0.04778575152158737, 0.12920843064785004, 0.17945654690265656, 0.06008708104491234, -0.1977047622203827, -0.1964729130268097, 0.24537402391433716, -0.13372205197811127, 0.05398000776767731, -0.06799174845218658, -0.03350953757762909, -0.020740341395139694, 0.22089378535747528, -0.04253986477851868, 0.08301647752523422, -0.14338284730911255, -0.24923701584339142, -0.16391576826572418, 0.005175158381462097, -0.00010212912457063794, -0.10838425159454346, 0.17972104251384735, -0.05300573259592056, -0.25482890009880066, 0.33034831285476685, -0.4433494806289673, 0.05421437323093414, -0.31976377964019775, -0.3245650827884674, -0.1831696331501007, -0.19048826396465302, -0.055275872349739075, -0.5454845428466797, 0.31588539481163025, 0.39314454793930054, 0.3555620610713959, 0.11692878603935242, -0.009352922439575195, -0.0591307133436203, 0.23379294574260712, -0.007534462958574295, 0.053288355469703674, -0.012540226802229881, 0.009939802810549736, -0.015706747770309448, 0.06449946016073227, 0.5903980135917664, 0.15289661288261414, -0.07444147765636444, -0.28415513038635254, 0.09476885199546814, 0.22821855545043945, -0.14105699956417084, 0.3744462728500366, 0.2255227118730545, 0.20684587955474854, -0.23945188522338867, -0.11138620227575302, 0.07011034339666367, 0.03870100900530815, -0.19025176763534546, -0.05111357197165489, 0.26831454038619995, 0.04879985749721527, 0.08807027339935303, 0.14753186702728271, 0.17845965921878815, -0.1978728473186493, 0.027354929596185684, -0.43089574575424194, 0.4159488081932068, -0.1553923785686493, -0.03348652645945549, -0.114485003054142, -0.24384644627571106, -0.1090199202299118, 0.11609071493148804, -0.14310990273952484, 0.10300913453102112, -0.1794523000717163, -0.18822364509105682, -0.12477311491966248, 0.2676883935928345, 0.013105973601341248, -0.03191916644573212, 0.13730871677398682, 0.14526429772377014, 0.2267722189426422, -0.055248916149139404, -0.12740609049797058, -0.010375063866376877, -0.10023166239261627, -0.11504625529050827, 0.22452262043952942, -0.12932738661766052, -0.0769750252366066, 0.015334181487560272, 0.0609564334154129, -0.2191798985004425, -0.14878234267234802, 0.22856217622756958, 0.13453735411167145, -0.1409999281167984, -0.32420051097869873, 0.05612330511212349, -0.3493773341178894, 0.05480697378516197, -0.16770023107528687, 0.39126095175743103, 0.22888296842575073, -0.024096239358186722, -0.13995158672332764, -0.07534503936767578, -0.19171226024627686, -0.3327355980873108, -0.38982734084129333, 0.12557196617126465, 0.12487200647592545, -0.2768227159976959, -0.015933461487293243, 0.32141244411468506, 0.21553927659988403, -0.024443060159683228, 0.126024067401886, 0.0829230472445488, 0.09497130662202835, -0.19128088653087616, 0.23128211498260498, 0.29300612211227417, -0.10158340632915497, -0.04933812469244003, -0.032868530601263046, -0.05642978474497795, 0.009526684880256653, 0.14525701105594635, 0.07621386647224426, 0.007934249937534332, -0.39330872893333435, 0.3797929584980011, 0.39527541399002075, -0.0949569046497345, 0.17546409368515015, 0.23353660106658936, 0.21874791383743286, 0.04963967204093933, 0.1180230975151062, -0.1062784492969513, -0.021899856626987457, -0.15187634527683258, 0.06346061080694199, 0.08983919769525528, -0.5268482565879822, 0.028402768075466156, -0.36895817518234253, -0.0933341383934021, 0.30244362354278564, 0.3060186505317688, 0.09913164377212524, -0.0708540603518486, -0.17006176710128784, 0.30255943536758423, 0.16948235034942627, -0.07799128443002701, -0.3400379717350006, 0.20427840948104858, -0.15999940037727356, -0.18757396936416626, 0.2839227318763733, 0.20888954401016235, -0.10377528518438339, -0.022784961387515068, 0.10188359767198563, 0.1511971652507782, -0.10554368048906326, 0.02768506109714508, -0.12312348932027817, -0.14238017797470093, 0.1725800633430481, 0.06851323693990707, -0.25836697220802307, -0.11377789825201035, 0.2595123052597046, 0.02417740970849991, 0.3915385603904724, -0.014794131740927696, -0.07495914399623871, 0.01351836882531643, 0.35833123326301575, -0.43176835775375366, 0.1625475436449051, -0.07220437377691269, -0.3222060203552246, -0.21903420984745026, -0.6098544597625732, 0.0809968113899231, -0.2334303855895996, -0.1778639703989029, -0.17609967291355133, -0.10318459570407867, 0.03565077483654022, 0.09664496779441833, 0.325093150138855, 0.19809524714946747, -0.08059950917959213, 0.24291715025901794, 0.024463452398777008, -0.03355105593800545, -0.03823675960302353, -0.14749684929847717, -0.31759968400001526, 0.2270219624042511, -0.19531339406967163, 0.07061104476451874, 0.1879197657108307, 0.34343063831329346, 0.1390685737133026, -0.09449724853038788, 0.14143864810466766, 0.013697999529540539, 0.0952923446893692, 0.2897176444530487, -0.17475625872612, 0.18833594024181366, 0.29454004764556885, -0.25852853059768677, 0.02141893468797207, 0.30339765548706055, 0.31039977073669434, 0.004276901483535767, -0.11956919729709625, 0.3716928958892822, 0.06151293218135834, -0.04083092510700226, 0.09714482724666595, 0.02944786101579666, 0.42416688799858093, -0.09361016750335693, 0.10243610292673111, -0.5371356010437012, 0.16895678639411926, 0.13466793298721313, 0.20950299501419067, 0.06240832805633545, -0.5084818601608276, 0.43977901339530945, 0.42080166935920715, -0.09660714119672775, 0.0676751360297203, -0.1444755643606186, -0.1639985740184784, 0.02939874678850174, 0.0471220389008522, 0.19109079241752625, 0.2587709426879883, 0.2780265808105469, 0.07478705793619156, 0.002471214160323143, -0.005004972219467163, -0.4039025604724884, 0.3473234474658966, -0.0582331046462059, 0.04972226172685623, 0.2490379959344864, 0.1140514686703682, -0.07669045031070709, -0.38423097133636475, 0.12085925042629242, -0.07017984986305237, 0.08666011691093445, -0.2455856055021286, 0.19625529646873474, -0.3665638864040375, -0.5910027027130127, -0.3121284544467926, -0.22074463963508606, 0.16497784852981567, -0.2732044458389282, 0.2837463915348053, -0.13191969692707062, -0.2716563940048218, 0.2348252385854721, 0.1886444091796875, 0.3562224507331848, 0.2386365532875061, 0.2746744155883789, -0.3108389973640442, -0.017715152353048325, -0.1842348873615265, 0.3107547461986542, 0.12670870125293732, 0.24907493591308594, 0.178677499294281, -0.2989785671234131, -0.17302948236465454, -0.24677325785160065, -0.481738418340683, 0.08929687738418579, -0.03291419520974159, 0.3612639904022217, 0.03691445291042328, -0.006159976124763489, -0.10153495520353317, -0.05938467010855675, -0.047592148184776306, 0.1554069221019745, -0.32171666622161865, -0.09997418522834778, -0.10669407248497009, -0.05647766590118408, -0.25866228342056274, -0.5629889369010925, -0.27105480432510376, -0.19098079204559326, -0.08500092476606369, -0.011803552508354187, 0.2423168420791626, -0.1813124716281891, -0.03548159822821617, 0.11972394585609436, 0.0902567207813263, -0.08014574646949768, -0.36146095395088196, 0.2991603910923004, 0.3615007698535919, -0.1537981480360031, -0.44409364461898804, -0.13835136592388153, -0.10572054237127304, 0.2217351645231247, -0.301000714302063, -0.39946112036705017, -0.08695916831493378, -0.14010946452617645, -0.22309806942939758, -0.017484353855252266, -0.07376959174871445, 0.21642397344112396, -0.11308884620666504, -0.23288704454898834, -0.017280802130699158, -0.19851166009902954, 0.11546365171670914, 0.1303710639476776, 0.169789656996727, -0.17223086953163147, 0.5826887488365173, 0.05208077281713486, 0.14833009243011475, 0.15844154357910156, -0.12997670471668243, 0.1711341291666031, -0.16823673248291016, 0.12682905793190002, -0.048032552003860474, -0.04532517492771149, 0.3635537326335907, 0.1533103883266449, -0.01885790377855301, 0.36900848150253296, -0.057263489812612534, -0.2640041410923004, 0.1094784289598465, 0.006349503993988037, -0.06532211601734161, -0.10791949927806854, 0.02923833765089512, -0.2916395664215088, -0.01981877163052559, 0.08335857838392258, 0.095973901450634, 0.19442902505397797, -0.1557239592075348, 0.11362289637327194, 0.015441175550222397, 0.02691945806145668, -0.13218046724796295, -0.5314317345619202, -0.2443503737449646, -0.29261234402656555, 0.32580846548080444, 0.07287631928920746, 0.37929269671440125, -0.26151561737060547, -0.1328955441713333, 0.186834916472435, -0.11858333647251129, 0.581946849822998, 0.13042064011096954, 0.19356226921081543, 0.21385295689105988, 0.1884208619594574, 0.07906503975391388, 0.1521460860967636, -0.46658197045326233, 0.30411678552627563, 0.1202673465013504, 0.2619283199310303, -0.18607604503631592, 0.010463427752256393, 0.1320601850748062, 0.2706116735935211, -0.4115586280822754, 0.03130590170621872, -0.3207560181617737, -0.29582303762435913, -0.03298868611454964, 0.14872507750988007, 0.12339045107364655, 0.31504663825035095, -0.08718997240066528, -0.06362273544073105, -0.11728819459676743, -0.46364688873291016, 0.045735057443380356, 0.20882466435432434, 0.30364182591438293, -0.0808655172586441, -0.07179877907037735, -0.10679179430007935, 0.31839463114738464, -0.11046908050775528, 0.3308580219745636, 0.13010673224925995, -0.09693699330091476, 0.009802702814340591, -0.41121822595596313, 0.29513925313949585, 0.03673138469457626, -0.17862586677074432, -0.009143825620412827, 0.4109274744987488, 0.07531075179576874, -0.12158329039812088, -0.1314014494419098, 0.07822882384061813, 0.15482866764068604, -0.10192903876304626, -0.06637123972177505, 0.21007275581359863, -0.23708507418632507, -0.10199809074401855, -0.02667761780321598, 0.3568890392780304, -0.3343981206417084, 0.4691637456417084, 0.2304181158542633, 0.9524290561676025, 0.23008790612220764, 0.004815785214304924, 0.20266588032245636, -0.27246934175491333, 0.04958958178758621, 0.24696208536624908, 0.31258001923561096, -0.3602144122123718, 0.08081013709306717, -0.1237330511212349, -0.025900736451148987, 0.14568383991718292, 0.26866135001182556, -0.23914431035518646, 0.03682681918144226, -0.09913907945156097, 0.018714791163802147, 0.0578458309173584, -0.042007818818092346, 0.012353675439953804, 0.06677651405334473, -0.3098328113555908, 0.24077707529067993, 0.16044744849205017, -0.12622277438640594, -0.10367408394813538, -0.15535877645015717, 0.022990882396697998, -0.19152653217315674, -0.08918562531471252, 0.03449588268995285, -0.40540727972984314, 0.004430219531059265, 0.12543463706970215, -0.3809593915939331, -0.11014018952846527, 0.12471041828393936, 0.2879432737827301, 0.11208337545394897, 0.03557014465332031, 0.17542487382888794, 0.27986636757850647, 0.33312997221946716, 0.27547723054885864, 0.030089061707258224, 0.2048371583223343, -0.30417749285697937, -0.1624443382024765, 0.20475411415100098, 0.11769156903028488, -0.1924745738506317, -0.2655920088291168, 0.2533446252346039, 0.0037149228155612946, 0.02014673501253128, -0.12616108357906342, -0.041527412831783295, -0.048604805022478104, -0.25395095348358154, 0.26016268134117126, -0.12331167608499527, -0.12186355143785477, 0.3450838327407837, -0.015102262608706951, -0.22324055433273315, -0.18705710768699646, 0.26319101452827454, 0.09154003113508224, 0.27494046092033386, 0.46041274070739746, 0.07359899580478668, -0.27011042833328247, -0.4670407176017761, -0.1441357433795929, -0.07376914471387863, -0.22798031568527222, 0.1191658228635788, -0.12238486111164093, -0.22545811533927917, -0.08951108157634735, 0.08051030337810516, -0.05820521339774132, 0.12743224203586578, -0.14900799095630646, -0.6126042008399963, -0.28258270025253296, -0.07354138046503067, 0.05438032001256943, 0.16072960197925568, 0.11719748377799988, 0.02265479415655136, -0.1883123219013214, 0.047535963356494904, -0.4655612111091614, 0.12057159096002579, -0.15251322090625763, 0.06824134290218353, -0.3576038181781769, 0.05175696685910225, -0.05623547360301018, 0.19456803798675537, 0.4125516712665558, -0.06486287713050842, -0.2503979206085205, -0.40531325340270996, -0.08304405212402344, 0.06755859404802322, -0.1761307269334793, -0.12990403175354004, 0.03537829592823982, -0.04161395877599716, -0.23317597806453705, 0.1856706291437149, 0.09967241436243057, -0.11406004428863525, 0.0705627053976059, 0.03623666241765022, 0.1259874403476715, -0.07547122240066528, -0.07761610299348831, -0.04893225431442261, 0.11213633418083191, -0.16207803785800934, 0.17345821857452393, 0.2188940793275833, -0.023411663249135017, -0.047646746039390564, 0.3097185492515564, -0.13098347187042236, -0.05075352266430855, 0.03577074408531189, 0.3090589940547943, -0.13891230523586273, -0.18234091997146606, 0.22131653130054474, 0.0059366002678871155, 0.09234514832496643, -0.3267614245414734, -0.1344146877527237, 0.045051950961351395, 0.40979623794555664, -0.5532664060592651, -0.07939781248569489, 0.0638042539358139, -0.008464500308036804, 0.15092571079730988, 0.14217515289783478, 0.26158374547958374, -0.1343318521976471, 0.12694188952445984, 0.22092919051647186, 0.32586029171943665, -0.22477394342422485, -0.17285309731960297, 0.05075816065073013, -0.12180959433317184, 0.16926637291908264, 0.11253197491168976, 0.09996446967124939, 0.1192643791437149, 0.6916359663009644, -0.043744396418333054, 0.29239651560783386, 0.1101410984992981, 0.06798243522644043, 0.08152244985103607, 0.1393965482711792, 0.14518918097019196, 0.44567906856536865, -0.2920975387096405, 0.15686380863189697, 0.5386684536933899, -0.11654135584831238, 0.20515577495098114, 0.024680964648723602, -0.28842806816101074, -0.1483178585767746, -0.2918517589569092, -0.25226855278015137, -0.02869904413819313, -0.161662757396698, -0.02949364483356476, -0.11111894249916077, 0.0027755724731832743, 0.04211719334125519, 0.5325811505317688, -0.007183056324720383, -0.044324841350317, -0.18299026787281036, -0.05253881961107254, -0.07526320219039917, -0.04564160481095314, -0.1999218761920929, 0.3746514916419983, 0.39403215050697327, -0.005907174199819565, 0.250549852848053, -0.020258186385035515, 0.18695136904716492, 0.07372859120368958, -0.09906617552042007, 0.015818610787391663, -0.19970445334911346, -0.2816881239414215, -0.18426312506198883, 0.2646847367286682, 0.14951691031455994, 0.3046127259731293, 0.214852437376976, 0.3038095533847809, -0.21715572476387024, 0.1580086648464203, 0.5882331728935242, 0.15173879265785217, -0.06937936693429947, 0.0392126590013504, -0.42374300956726074, -0.025700978934764862, -0.32096144556999207, 0.04784724488854408, -0.24645009636878967, 0.07781630009412766, 0.0034494828432798386, -0.286747008562088, 0.15949219465255737, 0.12016120553016663, 0.15035702288150787, 0.06048428639769554, 0.6015750765800476, 0.11335553973913193, -0.0661051943898201, -0.13377071917057037, -0.2346678525209427, -0.5674972534179688, 0.19583386182785034, 0.23631125688552856, -0.051949404180049896, -0.17133206129074097, 0.3429601490497589, 0.15972797572612762, -0.07105614244937897, 0.09020989388227463, 0.0962437093257904, -0.08218792080879211, -0.016222234815359116, -0.41235101222991943, -0.10679464042186737, 0.12349003553390503, 0.23283497989177704, -0.12816455960273743, -0.37087544798851013, 0.3792412579059601, 0.08884918689727783, 0.1948825865983963, -0.2314058542251587, -0.21588915586471558, -0.18241681158542633, 0.24668174982070923, 0.03180350363254547, 0.3799421787261963, 0.15268844366073608, -0.34982046484947205, 0.036198876798152924, 0.11207768321037292, 0.014767654240131378, -0.11144627630710602, 0.21886445581912994, 0.24352772533893585, 0.2173156887292862, 0.14159449934959412, 0.04350978136062622, 0.15227234363555908, 0.42974770069122314, 0.046358875930309296, -0.11742241680622101, -0.26356041431427, 0.554700493812561, -0.10080193728208542, -0.052082035690546036, -0.11782748997211456, 0.13969291746616364, 0.008518405258655548, -0.05329067260026932, -0.01574675738811493, -0.45435768365859985, 0.3082258105278015, -0.5355832576751709, -0.2539765238761902, -0.05916788429021835, 0.11821520328521729, 0.12313096225261688, -0.018041040748357773, -0.28144571185112, 0.09236361086368561, 0.35001668334007263, -0.29091018438339233, 0.11027674376964569, 0.42041370272636414, 0.1702205091714859, -0.014279909431934357, -0.20484454929828644, 0.15361009538173676, 0.444644570350647, -0.1842169463634491, -0.04859813675284386, -0.47587963938713074 ]
https://github.com/huggingface/datasets/issues/2133
Hi @dorost1234. In Python 3, strings are sequences of Unicode _code points_. Unicode is a specification that maps all characters (and emoji symbols) with its unique representation in terms of code points. That is what you see: Unicode code points (represented by a \u escaped sequence of 16-bit hex values). Characters are usually represented (on screen and papers) with a graphical element called _glyph_. That is what you would like to see: glyphs. But Python does not care about glyphs: that is the job of the GUI or the terminal; glyphs are what you get with the `print` function (if your terminal is properly configured to display those glyphs). You have more detailed information about Unicode in the Python documentation: https://docs.python.org/3/howto/unicode.html
bug in mlqa dataset
Hi Looking into MLQA dataset for langauge "ar": ``` "question": [ "\u0645\u062a\u0649 \u0628\u062f\u0627\u062a \u0627\u0644\u0645\u062c\u0644\u0629 \u0627\u0644\u0645\u062f\u0631\u0633\u064a\u0629 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645 \u0628\u0627\u0644\u0646\u0634\u0631?", "\u0643\u0645 \u0645\u0631\u0629 \u064a\u062a\u0645 \u0646\u0634\u0631\u0647\u0627 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0645\u0627 \u0647\u064a \u0627\u0644\u0648\u0631\u0642\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0643\u0645 \u0639\u062f\u062f \u0627\u0644\u0627\u0648\u0631\u0627\u0642 \u0627\u0644\u0627\u062e\u0628\u0627\u0631\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0627\u0644\u062a\u064a \u0648\u062c\u062f\u062a \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0641\u064a \u0627\u064a \u0633\u0646\u0629 \u0628\u062f\u0627\u062a \u0648\u0631\u0642\u0629 \u0627\u0644\u0637\u0627\u0644\u0628 \u0627\u0644\u062d\u0633 \u0627\u0644\u0633\u0644\u064a\u0645 \u0628\u0627\u0644\u0646\u0634\u0631 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?" ] ``` the questions are in the wrong format, and not readable, could you please have a look? thanks @lhoestq
121
bug in mlqa dataset Hi Looking into MLQA dataset for langauge "ar": ``` "question": [ "\u0645\u062a\u0649 \u0628\u062f\u0627\u062a \u0627\u0644\u0645\u062c\u0644\u0629 \u0627\u0644\u0645\u062f\u0631\u0633\u064a\u0629 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645 \u0628\u0627\u0644\u0646\u0634\u0631?", "\u0643\u0645 \u0645\u0631\u0629 \u064a\u062a\u0645 \u0646\u0634\u0631\u0647\u0627 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0645\u0627 \u0647\u064a \u0627\u0644\u0648\u0631\u0642\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0643\u0645 \u0639\u062f\u062f \u0627\u0644\u0627\u0648\u0631\u0627\u0642 \u0627\u0644\u0627\u062e\u0628\u0627\u0631\u064a\u0629 \u0644\u0644\u0637\u0644\u0627\u0628 \u0627\u0644\u062a\u064a \u0648\u062c\u062f\u062a \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?", "\u0641\u064a \u0627\u064a \u0633\u0646\u0629 \u0628\u062f\u0627\u062a \u0648\u0631\u0642\u0629 \u0627\u0644\u0637\u0627\u0644\u0628 \u0627\u0644\u062d\u0633 \u0627\u0644\u0633\u0644\u064a\u0645 \u0628\u0627\u0644\u0646\u0634\u0631 \u0641\u064a \u0646\u0648\u062a\u0631\u062f\u0627\u0645?" ] ``` the questions are in the wrong format, and not readable, could you please have a look? thanks @lhoestq Hi @dorost1234. In Python 3, strings are sequences of Unicode _code points_. Unicode is a specification that maps all characters (and emoji symbols) with its unique representation in terms of code points. That is what you see: Unicode code points (represented by a \u escaped sequence of 16-bit hex values). Characters are usually represented (on screen and papers) with a graphical element called _glyph_. That is what you would like to see: glyphs. But Python does not care about glyphs: that is the job of the GUI or the terminal; glyphs are what you get with the `print` function (if your terminal is properly configured to display those glyphs). You have more detailed information about Unicode in the Python documentation: https://docs.python.org/3/howto/unicode.html
[ -0.11585284769535065, -0.23156818747520447, -0.2734040319919586, 0.21121220290660858, 0.3321489989757538, 0.07119500637054443, 0.35246899724006653, 0.12133811414241791, -0.32277214527130127, 0.22545401751995087, 0.06188713014125824, 0.2817643880844116, 0.25186243653297424, 0.256120890378952, 0.11667608469724655, -0.04778575152158737, 0.12920843064785004, 0.17945654690265656, 0.06008708104491234, -0.1977047622203827, -0.1964729130268097, 0.24537402391433716, -0.13372205197811127, 0.05398000776767731, -0.06799174845218658, -0.03350953757762909, -0.020740341395139694, 0.22089378535747528, -0.04253986477851868, 0.08301647752523422, -0.14338284730911255, -0.24923701584339142, -0.16391576826572418, 0.005175158381462097, -0.00010212912457063794, -0.10838425159454346, 0.17972104251384735, -0.05300573259592056, -0.25482890009880066, 0.33034831285476685, -0.4433494806289673, 0.05421437323093414, -0.31976377964019775, -0.3245650827884674, -0.1831696331501007, -0.19048826396465302, -0.055275872349739075, -0.5454845428466797, 0.31588539481163025, 0.39314454793930054, 0.3555620610713959, 0.11692878603935242, -0.009352922439575195, -0.0591307133436203, 0.23379294574260712, -0.007534462958574295, 0.053288355469703674, -0.012540226802229881, 0.009939802810549736, -0.015706747770309448, 0.06449946016073227, 0.5903980135917664, 0.15289661288261414, -0.07444147765636444, -0.28415513038635254, 0.09476885199546814, 0.22821855545043945, -0.14105699956417084, 0.3744462728500366, 0.2255227118730545, 0.20684587955474854, -0.23945188522338867, -0.11138620227575302, 0.07011034339666367, 0.03870100900530815, -0.19025176763534546, -0.05111357197165489, 0.26831454038619995, 0.04879985749721527, 0.08807027339935303, 0.14753186702728271, 0.17845965921878815, -0.1978728473186493, 0.027354929596185684, -0.43089574575424194, 0.4159488081932068, -0.1553923785686493, -0.03348652645945549, -0.114485003054142, -0.24384644627571106, -0.1090199202299118, 0.11609071493148804, -0.14310990273952484, 0.10300913453102112, -0.1794523000717163, -0.18822364509105682, -0.12477311491966248, 0.2676883935928345, 0.013105973601341248, -0.03191916644573212, 0.13730871677398682, 0.14526429772377014, 0.2267722189426422, -0.055248916149139404, -0.12740609049797058, -0.010375063866376877, -0.10023166239261627, -0.11504625529050827, 0.22452262043952942, -0.12932738661766052, -0.0769750252366066, 0.015334181487560272, 0.0609564334154129, -0.2191798985004425, -0.14878234267234802, 0.22856217622756958, 0.13453735411167145, -0.1409999281167984, -0.32420051097869873, 0.05612330511212349, -0.3493773341178894, 0.05480697378516197, -0.16770023107528687, 0.39126095175743103, 0.22888296842575073, -0.024096239358186722, -0.13995158672332764, -0.07534503936767578, -0.19171226024627686, -0.3327355980873108, -0.38982734084129333, 0.12557196617126465, 0.12487200647592545, -0.2768227159976959, -0.015933461487293243, 0.32141244411468506, 0.21553927659988403, -0.024443060159683228, 0.126024067401886, 0.0829230472445488, 0.09497130662202835, -0.19128088653087616, 0.23128211498260498, 0.29300612211227417, -0.10158340632915497, -0.04933812469244003, -0.032868530601263046, -0.05642978474497795, 0.009526684880256653, 0.14525701105594635, 0.07621386647224426, 0.007934249937534332, -0.39330872893333435, 0.3797929584980011, 0.39527541399002075, -0.0949569046497345, 0.17546409368515015, 0.23353660106658936, 0.21874791383743286, 0.04963967204093933, 0.1180230975151062, -0.1062784492969513, -0.021899856626987457, -0.15187634527683258, 0.06346061080694199, 0.08983919769525528, -0.5268482565879822, 0.028402768075466156, -0.36895817518234253, -0.0933341383934021, 0.30244362354278564, 0.3060186505317688, 0.09913164377212524, -0.0708540603518486, -0.17006176710128784, 0.30255943536758423, 0.16948235034942627, -0.07799128443002701, -0.3400379717350006, 0.20427840948104858, -0.15999940037727356, -0.18757396936416626, 0.2839227318763733, 0.20888954401016235, -0.10377528518438339, -0.022784961387515068, 0.10188359767198563, 0.1511971652507782, -0.10554368048906326, 0.02768506109714508, -0.12312348932027817, -0.14238017797470093, 0.1725800633430481, 0.06851323693990707, -0.25836697220802307, -0.11377789825201035, 0.2595123052597046, 0.02417740970849991, 0.3915385603904724, -0.014794131740927696, -0.07495914399623871, 0.01351836882531643, 0.35833123326301575, -0.43176835775375366, 0.1625475436449051, -0.07220437377691269, -0.3222060203552246, -0.21903420984745026, -0.6098544597625732, 0.0809968113899231, -0.2334303855895996, -0.1778639703989029, -0.17609967291355133, -0.10318459570407867, 0.03565077483654022, 0.09664496779441833, 0.325093150138855, 0.19809524714946747, -0.08059950917959213, 0.24291715025901794, 0.024463452398777008, -0.03355105593800545, -0.03823675960302353, -0.14749684929847717, -0.31759968400001526, 0.2270219624042511, -0.19531339406967163, 0.07061104476451874, 0.1879197657108307, 0.34343063831329346, 0.1390685737133026, -0.09449724853038788, 0.14143864810466766, 0.013697999529540539, 0.0952923446893692, 0.2897176444530487, -0.17475625872612, 0.18833594024181366, 0.29454004764556885, -0.25852853059768677, 0.02141893468797207, 0.30339765548706055, 0.31039977073669434, 0.004276901483535767, -0.11956919729709625, 0.3716928958892822, 0.06151293218135834, -0.04083092510700226, 0.09714482724666595, 0.02944786101579666, 0.42416688799858093, -0.09361016750335693, 0.10243610292673111, -0.5371356010437012, 0.16895678639411926, 0.13466793298721313, 0.20950299501419067, 0.06240832805633545, -0.5084818601608276, 0.43977901339530945, 0.42080166935920715, -0.09660714119672775, 0.0676751360297203, -0.1444755643606186, -0.1639985740184784, 0.02939874678850174, 0.0471220389008522, 0.19109079241752625, 0.2587709426879883, 0.2780265808105469, 0.07478705793619156, 0.002471214160323143, -0.005004972219467163, -0.4039025604724884, 0.3473234474658966, -0.0582331046462059, 0.04972226172685623, 0.2490379959344864, 0.1140514686703682, -0.07669045031070709, -0.38423097133636475, 0.12085925042629242, -0.07017984986305237, 0.08666011691093445, -0.2455856055021286, 0.19625529646873474, -0.3665638864040375, -0.5910027027130127, -0.3121284544467926, -0.22074463963508606, 0.16497784852981567, -0.2732044458389282, 0.2837463915348053, -0.13191969692707062, -0.2716563940048218, 0.2348252385854721, 0.1886444091796875, 0.3562224507331848, 0.2386365532875061, 0.2746744155883789, -0.3108389973640442, -0.017715152353048325, -0.1842348873615265, 0.3107547461986542, 0.12670870125293732, 0.24907493591308594, 0.178677499294281, -0.2989785671234131, -0.17302948236465454, -0.24677325785160065, -0.481738418340683, 0.08929687738418579, -0.03291419520974159, 0.3612639904022217, 0.03691445291042328, -0.006159976124763489, -0.10153495520353317, -0.05938467010855675, -0.047592148184776306, 0.1554069221019745, -0.32171666622161865, -0.09997418522834778, -0.10669407248497009, -0.05647766590118408, -0.25866228342056274, -0.5629889369010925, -0.27105480432510376, -0.19098079204559326, -0.08500092476606369, -0.011803552508354187, 0.2423168420791626, -0.1813124716281891, -0.03548159822821617, 0.11972394585609436, 0.0902567207813263, -0.08014574646949768, -0.36146095395088196, 0.2991603910923004, 0.3615007698535919, -0.1537981480360031, -0.44409364461898804, -0.13835136592388153, -0.10572054237127304, 0.2217351645231247, -0.301000714302063, -0.39946112036705017, -0.08695916831493378, -0.14010946452617645, -0.22309806942939758, -0.017484353855252266, -0.07376959174871445, 0.21642397344112396, -0.11308884620666504, -0.23288704454898834, -0.017280802130699158, -0.19851166009902954, 0.11546365171670914, 0.1303710639476776, 0.169789656996727, -0.17223086953163147, 0.5826887488365173, 0.05208077281713486, 0.14833009243011475, 0.15844154357910156, -0.12997670471668243, 0.1711341291666031, -0.16823673248291016, 0.12682905793190002, -0.048032552003860474, -0.04532517492771149, 0.3635537326335907, 0.1533103883266449, -0.01885790377855301, 0.36900848150253296, -0.057263489812612534, -0.2640041410923004, 0.1094784289598465, 0.006349503993988037, -0.06532211601734161, -0.10791949927806854, 0.02923833765089512, -0.2916395664215088, -0.01981877163052559, 0.08335857838392258, 0.095973901450634, 0.19442902505397797, -0.1557239592075348, 0.11362289637327194, 0.015441175550222397, 0.02691945806145668, -0.13218046724796295, -0.5314317345619202, -0.2443503737449646, -0.29261234402656555, 0.32580846548080444, 0.07287631928920746, 0.37929269671440125, -0.26151561737060547, -0.1328955441713333, 0.186834916472435, -0.11858333647251129, 0.581946849822998, 0.13042064011096954, 0.19356226921081543, 0.21385295689105988, 0.1884208619594574, 0.07906503975391388, 0.1521460860967636, -0.46658197045326233, 0.30411678552627563, 0.1202673465013504, 0.2619283199310303, -0.18607604503631592, 0.010463427752256393, 0.1320601850748062, 0.2706116735935211, -0.4115586280822754, 0.03130590170621872, -0.3207560181617737, -0.29582303762435913, -0.03298868611454964, 0.14872507750988007, 0.12339045107364655, 0.31504663825035095, -0.08718997240066528, -0.06362273544073105, -0.11728819459676743, -0.46364688873291016, 0.045735057443380356, 0.20882466435432434, 0.30364182591438293, -0.0808655172586441, -0.07179877907037735, -0.10679179430007935, 0.31839463114738464, -0.11046908050775528, 0.3308580219745636, 0.13010673224925995, -0.09693699330091476, 0.009802702814340591, -0.41121822595596313, 0.29513925313949585, 0.03673138469457626, -0.17862586677074432, -0.009143825620412827, 0.4109274744987488, 0.07531075179576874, -0.12158329039812088, -0.1314014494419098, 0.07822882384061813, 0.15482866764068604, -0.10192903876304626, -0.06637123972177505, 0.21007275581359863, -0.23708507418632507, -0.10199809074401855, -0.02667761780321598, 0.3568890392780304, -0.3343981206417084, 0.4691637456417084, 0.2304181158542633, 0.9524290561676025, 0.23008790612220764, 0.004815785214304924, 0.20266588032245636, -0.27246934175491333, 0.04958958178758621, 0.24696208536624908, 0.31258001923561096, -0.3602144122123718, 0.08081013709306717, -0.1237330511212349, -0.025900736451148987, 0.14568383991718292, 0.26866135001182556, -0.23914431035518646, 0.03682681918144226, -0.09913907945156097, 0.018714791163802147, 0.0578458309173584, -0.042007818818092346, 0.012353675439953804, 0.06677651405334473, -0.3098328113555908, 0.24077707529067993, 0.16044744849205017, -0.12622277438640594, -0.10367408394813538, -0.15535877645015717, 0.022990882396697998, -0.19152653217315674, -0.08918562531471252, 0.03449588268995285, -0.40540727972984314, 0.004430219531059265, 0.12543463706970215, -0.3809593915939331, -0.11014018952846527, 0.12471041828393936, 0.2879432737827301, 0.11208337545394897, 0.03557014465332031, 0.17542487382888794, 0.27986636757850647, 0.33312997221946716, 0.27547723054885864, 0.030089061707258224, 0.2048371583223343, -0.30417749285697937, -0.1624443382024765, 0.20475411415100098, 0.11769156903028488, -0.1924745738506317, -0.2655920088291168, 0.2533446252346039, 0.0037149228155612946, 0.02014673501253128, -0.12616108357906342, -0.041527412831783295, -0.048604805022478104, -0.25395095348358154, 0.26016268134117126, -0.12331167608499527, -0.12186355143785477, 0.3450838327407837, -0.015102262608706951, -0.22324055433273315, -0.18705710768699646, 0.26319101452827454, 0.09154003113508224, 0.27494046092033386, 0.46041274070739746, 0.07359899580478668, -0.27011042833328247, -0.4670407176017761, -0.1441357433795929, -0.07376914471387863, -0.22798031568527222, 0.1191658228635788, -0.12238486111164093, -0.22545811533927917, -0.08951108157634735, 0.08051030337810516, -0.05820521339774132, 0.12743224203586578, -0.14900799095630646, -0.6126042008399963, -0.28258270025253296, -0.07354138046503067, 0.05438032001256943, 0.16072960197925568, 0.11719748377799988, 0.02265479415655136, -0.1883123219013214, 0.047535963356494904, -0.4655612111091614, 0.12057159096002579, -0.15251322090625763, 0.06824134290218353, -0.3576038181781769, 0.05175696685910225, -0.05623547360301018, 0.19456803798675537, 0.4125516712665558, -0.06486287713050842, -0.2503979206085205, -0.40531325340270996, -0.08304405212402344, 0.06755859404802322, -0.1761307269334793, -0.12990403175354004, 0.03537829592823982, -0.04161395877599716, -0.23317597806453705, 0.1856706291437149, 0.09967241436243057, -0.11406004428863525, 0.0705627053976059, 0.03623666241765022, 0.1259874403476715, -0.07547122240066528, -0.07761610299348831, -0.04893225431442261, 0.11213633418083191, -0.16207803785800934, 0.17345821857452393, 0.2188940793275833, -0.023411663249135017, -0.047646746039390564, 0.3097185492515564, -0.13098347187042236, -0.05075352266430855, 0.03577074408531189, 0.3090589940547943, -0.13891230523586273, -0.18234091997146606, 0.22131653130054474, 0.0059366002678871155, 0.09234514832496643, -0.3267614245414734, -0.1344146877527237, 0.045051950961351395, 0.40979623794555664, -0.5532664060592651, -0.07939781248569489, 0.0638042539358139, -0.008464500308036804, 0.15092571079730988, 0.14217515289783478, 0.26158374547958374, -0.1343318521976471, 0.12694188952445984, 0.22092919051647186, 0.32586029171943665, -0.22477394342422485, -0.17285309731960297, 0.05075816065073013, -0.12180959433317184, 0.16926637291908264, 0.11253197491168976, 0.09996446967124939, 0.1192643791437149, 0.6916359663009644, -0.043744396418333054, 0.29239651560783386, 0.1101410984992981, 0.06798243522644043, 0.08152244985103607, 0.1393965482711792, 0.14518918097019196, 0.44567906856536865, -0.2920975387096405, 0.15686380863189697, 0.5386684536933899, -0.11654135584831238, 0.20515577495098114, 0.024680964648723602, -0.28842806816101074, -0.1483178585767746, -0.2918517589569092, -0.25226855278015137, -0.02869904413819313, -0.161662757396698, -0.02949364483356476, -0.11111894249916077, 0.0027755724731832743, 0.04211719334125519, 0.5325811505317688, -0.007183056324720383, -0.044324841350317, -0.18299026787281036, -0.05253881961107254, -0.07526320219039917, -0.04564160481095314, -0.1999218761920929, 0.3746514916419983, 0.39403215050697327, -0.005907174199819565, 0.250549852848053, -0.020258186385035515, 0.18695136904716492, 0.07372859120368958, -0.09906617552042007, 0.015818610787391663, -0.19970445334911346, -0.2816881239414215, -0.18426312506198883, 0.2646847367286682, 0.14951691031455994, 0.3046127259731293, 0.214852437376976, 0.3038095533847809, -0.21715572476387024, 0.1580086648464203, 0.5882331728935242, 0.15173879265785217, -0.06937936693429947, 0.0392126590013504, -0.42374300956726074, -0.025700978934764862, -0.32096144556999207, 0.04784724488854408, -0.24645009636878967, 0.07781630009412766, 0.0034494828432798386, -0.286747008562088, 0.15949219465255737, 0.12016120553016663, 0.15035702288150787, 0.06048428639769554, 0.6015750765800476, 0.11335553973913193, -0.0661051943898201, -0.13377071917057037, -0.2346678525209427, -0.5674972534179688, 0.19583386182785034, 0.23631125688552856, -0.051949404180049896, -0.17133206129074097, 0.3429601490497589, 0.15972797572612762, -0.07105614244937897, 0.09020989388227463, 0.0962437093257904, -0.08218792080879211, -0.016222234815359116, -0.41235101222991943, -0.10679464042186737, 0.12349003553390503, 0.23283497989177704, -0.12816455960273743, -0.37087544798851013, 0.3792412579059601, 0.08884918689727783, 0.1948825865983963, -0.2314058542251587, -0.21588915586471558, -0.18241681158542633, 0.24668174982070923, 0.03180350363254547, 0.3799421787261963, 0.15268844366073608, -0.34982046484947205, 0.036198876798152924, 0.11207768321037292, 0.014767654240131378, -0.11144627630710602, 0.21886445581912994, 0.24352772533893585, 0.2173156887292862, 0.14159449934959412, 0.04350978136062622, 0.15227234363555908, 0.42974770069122314, 0.046358875930309296, -0.11742241680622101, -0.26356041431427, 0.554700493812561, -0.10080193728208542, -0.052082035690546036, -0.11782748997211456, 0.13969291746616364, 0.008518405258655548, -0.05329067260026932, -0.01574675738811493, -0.45435768365859985, 0.3082258105278015, -0.5355832576751709, -0.2539765238761902, -0.05916788429021835, 0.11821520328521729, 0.12313096225261688, -0.018041040748357773, -0.28144571185112, 0.09236361086368561, 0.35001668334007263, -0.29091018438339233, 0.11027674376964569, 0.42041370272636414, 0.1702205091714859, -0.014279909431934357, -0.20484454929828644, 0.15361009538173676, 0.444644570350647, -0.1842169463634491, -0.04859813675284386, -0.47587963938713074 ]
https://github.com/huggingface/datasets/issues/2132
You can filter the languages this way: ```python tydiqa_en = tydiqa_dataset.filter(lambda x: x["language"] == "english") ``` Otherwise maybe we can have one configuration per language ? What do you think of this for example ? ```python load_dataset("tydiqa", "primary_task.en") ```
TydiQA dataset is mixed and is not split per language
Hi @lhoestq Currently TydiQA is mixed and user can only access the whole training set of all languages: https://www.tensorflow.org/datasets/catalog/tydi_qa for using this dataset, one need to train/evaluate in each separate language, and having them mixed, makes it hard to use this dataset. This is much convenient for user to have them split and I appreciate your help on this. Meanwhile, till hopefully this is split per language, I greatly appreciate telling me how I can preprocess and get data per language. thanks a lot
39
TydiQA dataset is mixed and is not split per language Hi @lhoestq Currently TydiQA is mixed and user can only access the whole training set of all languages: https://www.tensorflow.org/datasets/catalog/tydi_qa for using this dataset, one need to train/evaluate in each separate language, and having them mixed, makes it hard to use this dataset. This is much convenient for user to have them split and I appreciate your help on this. Meanwhile, till hopefully this is split per language, I greatly appreciate telling me how I can preprocess and get data per language. thanks a lot You can filter the languages this way: ```python tydiqa_en = tydiqa_dataset.filter(lambda x: x["language"] == "english") ``` Otherwise maybe we can have one configuration per language ? What do you think of this for example ? ```python load_dataset("tydiqa", "primary_task.en") ```
[ -0.2592064440250397, -0.23528867959976196, -0.2044115662574768, 0.26654568314552307, 0.2771569490432739, -0.025829121470451355, 0.34125906229019165, 0.3332076072692871, -0.15149827301502228, 0.07768166810274124, -0.3343154788017273, -0.046271685510873795, -0.016753308475017548, 0.4214194118976593, 0.04191818833351135, -0.3201328217983246, -0.11053749918937683, 0.058146536350250244, -0.1372380256652832, -0.00982280820608139, 0.023834824562072754, 0.1549573689699173, -0.18172234296798706, 0.13163919746875763, 0.09155188500881195, -0.17362096905708313, -0.08096549659967422, -0.045580483973026276, 0.05903354287147522, -0.058578215539455414, 0.44642069935798645, 0.1073090061545372, 0.26703155040740967, 0.33416610956192017, -0.00010846377699635923, 0.19222822785377502, -0.04156416654586792, -0.3396551012992859, 0.11100202798843384, -0.23603537678718567, -0.11226309835910797, -0.3174518346786499, -0.09241600334644318, -0.20431658625602722, -0.5365702509880066, -0.18278250098228455, 0.029553396627306938, -0.3825770914554596, 0.3870956003665924, 0.29818275570869446, 0.14658352732658386, 0.16632676124572754, -0.1849587857723236, 0.2282589077949524, -0.05725735425949097, 0.05465184152126312, -0.10570873320102692, -0.05304255336523056, 0.5951899886131287, -0.07747448235750198, 0.33070236444473267, 0.27772390842437744, 0.1899046003818512, 0.07496929913759232, -0.4010952413082123, 0.11169751733541489, 0.04309890419244766, -0.5291085243225098, 0.0033929748460650444, 0.5172390937805176, 0.45014771819114685, 0.05415802076458931, -0.32805323600769043, -0.1335924118757248, -0.03031845949590206, -0.26407086849212646, 0.1254834532737732, 0.381442129611969, -0.1881922334432602, 0.2486719936132431, 0.3558286130428314, 0.08506856858730316, -0.2625575065612793, 0.14917534589767456, -0.2938212752342224, 0.30375799536705017, -0.03135449439287186, 0.06039400398731232, -0.054803673177957535, -0.14239513874053955, 0.23616400361061096, 0.24352693557739258, 0.06895268708467484, 0.25649115443229675, -0.47336095571517944, -0.25447162985801697, -0.14349886775016785, -0.37531986832618713, -0.11927410960197449, -0.3847775161266327, 0.1379220187664032, 0.33406585454940796, -0.1463014930486679, -0.0021056849509477615, 0.27695679664611816, -0.0824466124176979, 0.23409126698970795, 0.36569008231163025, 0.2035246193408966, -0.10679514706134796, 0.01057712733745575, 0.07570997625589371, -0.1920623928308487, -0.33060309290885925, -0.428764283657074, 0.2712707221508026, 0.17406746745109558, 0.03941810131072998, -0.31594473123550415, -0.18791373074054718, -0.12631765007972717, -0.22168681025505066, 0.10888057947158813, 0.3437947928905487, -0.027560347691178322, -0.009170599281787872, 0.0795595794916153, 0.45424890518188477, -0.3114555776119232, -0.3753986060619354, -0.14213106036186218, -0.053627196699380875, -0.10738668590784073, -0.16816315054893494, 0.08420123904943466, 0.2148737758398056, -0.024849077686667442, 0.06672559678554535, -0.0025114063173532486, -0.15741777420043945, 0.3517778813838959, -0.20138268172740936, 0.11753717064857483, 0.073188915848732, 0.19003096222877502, 0.022777020931243896, 0.2191590666770935, -0.2975350022315979, -0.34872567653656006, 0.05808420106768608, -0.27835720777511597, -0.24063831567764282, 0.0743742510676384, 0.16744907200336456, 0.3175935447216034, 0.14450117945671082, 0.026959041133522987, 0.722922146320343, 0.3423040807247162, 0.041344255208969116, -0.02893606200814247, 0.04860316589474678, -0.284891813993454, -0.055512793362140656, 0.28817763924598694, 0.16288334131240845, -0.5802621245384216, -0.12817949056625366, 0.21301503479480743, -0.3220680058002472, 0.21556708216667175, 0.21496695280075073, -0.1866120994091034, 0.37189051508903503, 0.09743242710828781, -0.20318153500556946, 0.7471085786819458, -0.20076054334640503, -0.3531039357185364, 0.039042409509420395, 0.12033836543560028, 0.1161096915602684, 0.03310450166463852, 0.06930722296237946, 0.1348559409379959, -0.02578948810696602, 0.20530609786510468, 0.5336027145385742, -0.23651619255542755, 0.02973700314760208, 0.04473555088043213, -0.06271624565124512, 0.37335413694381714, 0.4188770055770874, -0.05723324418067932, -0.23788554966449738, -0.012654751539230347, 0.23492705821990967, 0.3820688724517822, -0.15487359464168549, 0.094242163002491, 0.061684079468250275, -0.3036395311355591, 0.15359467267990112, 0.030717633664608, -0.21573084592819214, -0.25349706411361694, 0.22573530673980713, -0.39848268032073975, 0.21907010674476624, 0.01712665520608425, -0.18062174320220947, 0.13565002381801605, -0.19849401712417603, -0.30501696467399597, -0.2456897497177124, 0.1831279695034027, -0.11104671657085419, 0.020742952823638916, 0.1629614233970642, -0.10324988514184952, 0.09851300716400146, -0.1514897644519806, -0.08001282066106796, -0.1922067254781723, 0.020656824111938477, 0.02129802666604519, -0.07169947028160095, 0.005819283425807953, 0.24501176178455353, -0.11347100138664246, -0.20138490200042725, -0.0574636310338974, -0.09355583041906357, 0.16421836614608765, 0.11596255004405975, -0.1913137584924698, -0.2085590660572052, 0.35578489303588867, -0.073312908411026, -0.07679301500320435, 0.0469788983464241, 0.004005935043096542, -0.15767930448055267, 0.05841828137636185, 0.5854185223579407, -0.023630863055586815, 0.2771928310394287, 0.069968581199646, -0.0590590201318264, 0.3816143274307251, -0.19843831658363342, -0.021212168037891388, -0.21913306415081024, 0.27699950337409973, -0.19637230038642883, 0.0008179694414138794, -0.04191946983337402, -0.4412223696708679, 0.16707979142665863, 0.47896715998649597, 0.1411518007516861, 0.2277945876121521, 0.0006077607977204025, 0.3051134943962097, 0.189208984375, -0.0941263809800148, 0.21894827485084534, 0.19076845049858093, 0.04797893390059471, 0.27506667375564575, -0.1851740926504135, 0.3741772770881653, -0.13624227046966553, 0.03206069767475128, -0.15833596885204315, 0.015897300094366074, 0.01882900670170784, -0.03132214397192001, -0.10628359764814377, -0.013290882110595703, 0.19758939743041992, 0.15034225583076477, 0.12886182963848114, -0.022720344364643097, 0.2100905478000641, -0.476842999458313, -0.32736825942993164, -0.2023431360721588, -0.30725690722465515, 0.07339373230934143, 0.20878873765468597, 0.20617640018463135, -0.40349817276000977, -0.13597677648067474, 0.26623448729515076, 0.29842329025268555, -0.025098606944084167, -0.1683412790298462, -0.17582978308200836, 0.016953259706497192, -0.27631327509880066, -0.21650879085063934, 0.17927342653274536, 0.29203376173973083, -0.09062463045120239, 0.29813098907470703, -0.3847176432609558, -0.23443137109279633, 0.07064216583967209, -0.27073919773101807, 0.09347210079431534, -0.22139273583889008, 0.05472031235694885, -0.15958932042121887, 0.17464947700500488, 0.02803570032119751, -0.1556292474269867, 0.3326018154621124, 0.25981077551841736, -0.11413631588220596, 0.15190230309963226, -0.005475752055644989, 0.1311878263950348, 0.03711435943841934, -0.6562102437019348, -0.7368296384811401, -0.19581660628318787, -0.25453686714172363, -0.1273788958787918, 0.38446447253227234, -0.41014766693115234, 0.055329665541648865, -0.12209517508745193, 0.05139565095305443, 0.1855766624212265, -0.01827518455684185, -0.1578797549009323, 0.1308661848306656, -0.3448564410209656, -0.35131439566612244, -0.07992136478424072, -0.058439500629901886, 0.6852425932884216, 0.04311332851648331, -0.12991081178188324, 0.3011077046394348, -0.17434273660182953, 0.05552385747432709, -0.13166753947734833, -0.01697015017271042, 0.29862502217292786, -0.09415677189826965, 0.12439582496881485, -0.02487899363040924, 0.2955363392829895, 0.1937161535024643, -0.25472772121429443, 0.2401014268398285, 0.013467993587255478, 0.3823544681072235, 0.1917833685874939, 0.7117959260940552, 0.2415475845336914, -0.009493391029536724, 0.2683728039264679, 0.06047455221414566, -0.20612341165542603, -0.0968327671289444, -0.39488038420677185, 0.01267997920513153, 0.2939456105232239, 0.16476905345916748, 0.2630431056022644, 0.05251440405845642, -0.4610903263092041, -0.38192981481552124, -0.21043804287910461, -0.3223954737186432, -0.4282875657081604, 0.31081530451774597, -0.23344245553016663, 0.3259696364402771, -0.11034023761749268, -0.10934793204069138, 0.041519373655319214, 0.01976855844259262, -0.20855997502803802, 0.26970675587654114, -0.2869633734226227, 0.12132503092288971, -0.15408796072006226, -0.38148316740989685, -0.19567087292671204, 0.26036638021469116, 0.027312055230140686, 0.25986501574516296, -0.32716649770736694, -0.06677662581205368, 0.25777122378349304, 0.012968592345714569, 0.4652480185031891, -0.0030339956283569336, -0.03461454063653946, -0.10496102273464203, -0.20775744318962097, -0.05478554964065552, 0.0457562655210495, -0.18515285849571228, -0.05774332955479622, 0.2859671711921692, 0.03545278310775757, -0.3558894991874695, -0.3494700491428375, -0.1935214400291443, 0.2499515414237976, -0.4031064510345459, 0.11497079581022263, -0.2828822135925293, -0.41815054416656494, -0.16014325618743896, 0.3174802362918854, 0.042938925325870514, 0.04263143241405487, 0.09489024430513382, -0.3793864846229553, -0.20593902468681335, 0.18768522143363953, 0.08740755915641785, 0.386520117521286, 0.05014912411570549, -0.14241686463356018, 0.22289800643920898, -0.0953623428940773, -0.25375646352767944, 0.36691564321517944, 0.5436351895332336, -0.11358077824115753, -0.5056568384170532, 0.004432866349816322, -0.26939114928245544, 0.4042414426803589, 0.1753694713115692, -0.06476401537656784, 0.0708351880311966, -0.14065004885196686, -0.03175068646669388, -0.22240856289863586, 0.2009250819683075, 0.45449551939964294, 0.2071082890033722, -0.6362084150314331, -0.5407914519309998, 0.168966144323349, -0.09180344641208649, -0.034085020422935486, 0.41791582107543945, 0.10669952630996704, -0.3516063690185547, 0.4943617880344391, 0.13783955574035645, 0.8109488487243652, -0.2904719412326813, 0.19127130508422852, 0.09463377296924591, 0.13528332114219666, 0.15100213885307312, -0.20281656086444855, -0.08937200158834457, -0.06997997313737869, -0.003659578040242195, -0.12877142429351807, 0.0796496719121933, 0.20450888574123383, 0.3761952519416809, -0.32966604828834534, 0.04176201671361923, -0.1871778666973114, -0.5379316210746765, 0.016105815768241882, 0.21271084249019623, -0.20937760174274445, -0.17057734727859497, -0.2777921259403229, 0.08502930402755737, -0.1662086695432663, 0.14483565092086792, -0.07258903980255127, -0.07307638227939606, -0.08070371299982071, 0.06003110110759735, -0.12829065322875977, -0.029032539576292038, -0.34986037015914917, -0.14064158499240875, -0.16321468353271484, -0.5811941623687744, 0.41243720054626465, 0.5101851224899292, 0.3279881477355957, 0.2206023931503296, -0.041241034865379333, 0.26687437295913696, 0.15071451663970947, 0.05293000116944313, 0.04140513762831688, -0.21504788100719452, 0.1918550580739975, -0.06832894682884216, -0.33927708864212036, 0.06168966740369797, 0.1848706156015396, 0.20144909620285034, -0.15834324061870575, 0.2512345612049103, 0.20510722696781158, -0.19458316266536713, -0.14195960760116577, 0.14696580171585083, 0.171534925699234, -0.024131901562213898, 0.17228880524635315, 0.27021169662475586, -0.2065199464559555, 0.13380636274814606, -0.21210423111915588, -0.27604466676712036, -0.10112692415714264, -0.3500292897224426, 0.43224039673805237, 0.27984941005706787, 0.4518117606639862, 0.20380964875221252, -0.02895529940724373, -0.14223608374595642, 0.3866252303123474, 0.0002728886902332306, -0.18477565050125122, -0.10289695858955383, 0.3043476939201355, 0.05009166896343231, -0.05551936849951744, 0.2425951212644577, -0.26804476976394653, -0.1343911737203598, -0.052504755556583405, -0.37138161063194275, -0.014793936163187027, 0.028418872505426407, -0.002385377185419202, 0.021801630035042763, 0.25378137826919556, 0.22982418537139893, -0.0625414103269577, 0.6077544689178467, -0.2886664569377899, -0.013999894261360168, -0.08606461435556412, 0.3429329991340637, -0.20482386648654938, 0.1122022494673729, 0.1519574373960495, 0.17970521748065948, 0.03785480558872223, -0.1501203179359436, 0.05802474915981293, -0.30184048414230347, -0.1762668490409851, 0.13871754705905914, 0.019433986395597458, 0.15572673082351685, 0.06839385628700256, -0.2810460925102234, 0.03483837842941284, -0.12548816204071045, 0.1631980836391449, 0.06185710430145264, 0.1895332634449005, 0.46502062678337097, 0.24401190876960754, 0.18472720682621002, -0.24615181982517242, 0.13803239166736603, -0.19169054925441742, -0.034915171563625336, -0.018846746534109116, 0.04934774711728096, -0.1243448480963707, -0.20263242721557617, -0.11697906255722046, -0.005263306200504303, 0.1201917976140976, -0.13953717052936554, -0.10642380267381668, 0.10432490706443787, 0.4723399877548218, -0.2647073566913605, -0.06821823865175247, 0.23735743761062622, -0.05189379304647446, 0.24954485893249512, 0.44820985198020935, 0.17848840355873108, -0.10834759473800659, 0.12395539879798889, -0.222642719745636, -0.19071221351623535, 0.17146089673042297, 0.43202710151672363, -0.1884320080280304, 0.2997785210609436, 0.4383261799812317, -0.2500913739204407, 0.025366436690092087, -0.5639303922653198, 0.17258000373840332, 0.37538594007492065, -0.15605045855045319, 0.029416712000966072, 0.20556773245334625, -0.1107947826385498, -0.038242731243371964, -0.0020994883961975574, -0.282362163066864, 0.10478834062814713, -0.05461627617478371, -0.12410259991884232, 0.05818586051464081, -0.2883283197879791, -0.34894418716430664, -0.07009141147136688, -0.07387776672840118, -0.030188601464033127, 0.04738932102918625, 0.3643288016319275, -0.038686253130435944, -0.15703848004341125, 0.042186886072158813, 0.1285610795021057, 0.05724040046334267, -0.19228780269622803, -0.20620201528072357, 0.0678524523973465, -0.050170160830020905, -0.16085606813430786, 0.013661596924066544, -0.17357578873634338, -0.12098817527294159, 0.3514299690723419, 0.03437606990337372, -0.09366896748542786, 0.15172860026359558, 0.002456244081258774, -0.1705126166343689, -0.035627417266368866, 0.37250816822052, 0.1863263100385666, -0.045480821281671524, 0.0694923847913742, 0.14360001683235168, 0.02035791054368019, 0.010944409295916557, -0.3813974857330322, 0.37552204728126526, -0.14067767560482025, -0.14012466371059418, -0.10147503018379211, 0.39699774980545044, 0.18228231370449066, 0.38128697872161865, 0.2599552273750305, 0.13579930365085602, -0.12002873420715332, -0.17286249995231628, 0.2138911485671997, 0.005150560289621353, -0.224354088306427, 0.5801812410354614, -0.105380117893219, 0.17879891395568848, -0.1761501133441925, -0.0352078415453434, -0.5936293005943298, 0.08163876831531525, 0.17425137758255005, -0.25962889194488525, 0.13417775928974152, -0.20410025119781494, 0.051987916231155396, 0.18763971328735352, 0.36664819717407227, -0.1925257295370102, 0.5568442344665527, -0.2496999055147171, -0.03549391031265259, -0.23862428963184357, 0.09942899644374847, -0.1303420066833496, 0.0004954636096954346, -0.2024938464164734, 0.20770765841007233, 0.3562859892845154, 0.3590289056301117, 0.19073545932769775, -0.2272047996520996, 0.041161127388477325, 0.34139129519462585, -0.2184962034225464, -0.06899061053991318, -0.41918572783470154, 0.5319706797599792, -0.11822309345006943, -0.2942884862422943, 0.24604585766792297, -0.04942852258682251, -0.0780365839600563, -0.0757017657160759, -0.07916432619094849, 0.3901768624782562, 0.25218117237091064, 0.14529716968536377, 0.24449393153190613, 0.17702606320381165, -0.21142029762268066, 0.376708984375, -0.07978900521993637, 0.021725572645664215, -0.40297967195510864, 0.2660866379737854, 0.2743576765060425, 0.05992257595062256, -0.41116583347320557, -0.29192179441452026, -0.12452065944671631, 0.3216745853424072, 0.014834925532341003, -0.14715443551540375, 0.19952383637428284, 0.03526804596185684, 0.49381738901138306, -0.09774545580148697, 0.3207584321498871, 0.5601397156715393, 0.04720740020275116, -0.1317710280418396, -0.3974682688713074, -0.0904373899102211, 0.10119836032390594, -0.12744848430156708, -0.24604010581970215, 0.1740921586751938, -0.040329620242118835, 0.0771200880408287, 0.2812562882900238, -0.3595994710922241, 0.08377325534820557, 0.3247872292995453, -0.10620415210723877, 0.02070799469947815, 0.2874739468097687, 0.38937902450561523, -0.10313335061073303, -0.28751498460769653, 0.3336116373538971, 0.16764326393604279, -0.04216986894607544, -0.2051713466644287, -0.22139035165309906 ]
https://github.com/huggingface/datasets/issues/2132
Hi thank you very much for the great response, this will be really wonderful to have one configuration per language, as one need the dataset in majority of case per language for cross-lingual evaluations. This becomes also then more close to TFDS format, which is separated per language https://www.tensorflow.org/datasets/catalog/tydi_qa which will be really awesome to have. thanks On Mon, Mar 29, 2021 at 6:17 PM Quentin Lhoest ***@***.***> wrote: > You can filter the languages this way: > > tydiqa_en = tydiqa_dataset.filter(lambda x: x["language"] == "english") > > Otherwise maybe we can have one configuration per language ? > What do you think of this for example ? > > load_dataset("tydiqa", "primary_task.en") > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2132#issuecomment-809516799>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMXPW2PWSQ2RHG73O7TTGCY4LANCNFSM4Z7ER7IA> > . >
TydiQA dataset is mixed and is not split per language
Hi @lhoestq Currently TydiQA is mixed and user can only access the whole training set of all languages: https://www.tensorflow.org/datasets/catalog/tydi_qa for using this dataset, one need to train/evaluate in each separate language, and having them mixed, makes it hard to use this dataset. This is much convenient for user to have them split and I appreciate your help on this. Meanwhile, till hopefully this is split per language, I greatly appreciate telling me how I can preprocess and get data per language. thanks a lot
145
TydiQA dataset is mixed and is not split per language Hi @lhoestq Currently TydiQA is mixed and user can only access the whole training set of all languages: https://www.tensorflow.org/datasets/catalog/tydi_qa for using this dataset, one need to train/evaluate in each separate language, and having them mixed, makes it hard to use this dataset. This is much convenient for user to have them split and I appreciate your help on this. Meanwhile, till hopefully this is split per language, I greatly appreciate telling me how I can preprocess and get data per language. thanks a lot Hi thank you very much for the great response, this will be really wonderful to have one configuration per language, as one need the dataset in majority of case per language for cross-lingual evaluations. This becomes also then more close to TFDS format, which is separated per language https://www.tensorflow.org/datasets/catalog/tydi_qa which will be really awesome to have. thanks On Mon, Mar 29, 2021 at 6:17 PM Quentin Lhoest ***@***.***> wrote: > You can filter the languages this way: > > tydiqa_en = tydiqa_dataset.filter(lambda x: x["language"] == "english") > > Otherwise maybe we can have one configuration per language ? > What do you think of this for example ? > > load_dataset("tydiqa", "primary_task.en") > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2132#issuecomment-809516799>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMXPW2PWSQ2RHG73O7TTGCY4LANCNFSM4Z7ER7IA> > . >
[ -0.3552144765853882, -0.23230423033237457, -0.18655997514724731, 0.24706220626831055, 0.30515509843826294, -0.0820615217089653, 0.38258427381515503, 0.3362084627151489, -0.1914513260126114, 0.13157783448696136, -0.46057143807411194, -0.0628385841846466, 0.06377007067203522, 0.45318835973739624, 0.03516598790884018, -0.2893121838569641, -0.1692790538072586, 0.09851308166980743, -0.24431046843528748, 0.0038085877895355225, 0.14678344130516052, 0.23758390545845032, -0.10567748546600342, 0.08579300343990326, 0.05353662744164467, -0.2327953279018402, -0.08000384271144867, -0.057041265070438385, 0.040780529379844666, -0.08677531778812408, 0.4129011034965515, 0.22020547091960907, 0.23826077580451965, 0.3516656160354614, -0.00010266395111102611, 0.221454918384552, -0.09191794693470001, -0.2966124415397644, 0.08622978627681732, -0.18340367078781128, -0.10130101442337036, -0.22732923924922943, -0.13100221753120422, -0.1961812824010849, -0.5325120687484741, -0.19058215618133545, -0.004492513835430145, -0.345968097448349, 0.33969646692276, 0.2731974422931671, 0.1980176568031311, 0.2754567265510559, -0.10900134593248367, 0.15922655165195465, -0.07580018788576126, 0.05415279045701027, -0.15060260891914368, -0.07468998432159424, 0.4563407301902771, -0.05222797021269798, 0.1966007500886917, 0.27345091104507446, 0.24798136949539185, 0.0726511999964714, -0.3480713367462158, 0.08708227425813675, -0.018537908792495728, -0.49296969175338745, 0.030890095978975296, 0.6588572859764099, 0.4845637083053589, -0.02756904624402523, -0.36504775285720825, -0.10434319078922272, -0.11765827983617783, -0.24585703015327454, 0.12165729701519012, 0.28024736046791077, -0.13964101672172546, 0.3281911313533783, 0.3242916166782379, 0.18327181041240692, -0.22965306043624878, 0.15598762035369873, -0.3659546375274658, 0.20083604753017426, -0.09079952538013458, -0.004171159118413925, 0.09950292110443115, -0.17709001898765564, 0.07828967273235321, 0.20084571838378906, 0.0825701355934143, 0.19470489025115967, -0.5239599943161011, -0.3435080051422119, 0.003007078543305397, -0.4299470782279968, 0.02163349837064743, -0.3731372654438019, 0.1823279708623886, 0.3100452423095703, -0.22388574481010437, -0.02055322751402855, 0.16949701309204102, 0.04322904720902443, 0.3170820474624634, 0.296672523021698, 0.168304443359375, -0.0715256929397583, 0.11601923406124115, 0.0968121737241745, -0.10791690647602081, -0.24698323011398315, -0.5589662194252014, 0.19969961047172546, 0.08610911667346954, 0.06172548979520798, -0.29499244689941406, -0.2625298798084259, -0.07207042723894119, -0.19452905654907227, 0.14629040658473969, 0.31525129079818726, -0.011746659874916077, -0.05167273432016373, 0.041145339608192444, 0.3388170897960663, -0.3357953429222107, -0.37608087062835693, -0.20256906747817993, 0.015427153557538986, -0.078245609998703, -0.1298016905784607, 0.07228228449821472, 0.15359359979629517, -0.0297242421656847, 0.09806063771247864, -0.013270337134599686, -0.03535977378487587, 0.23442807793617249, -0.1937999725341797, 0.12766100466251373, 0.08037789911031723, 0.18634197115898132, 0.006922036409378052, 0.16990379989147186, -0.3082534372806549, -0.28290945291519165, -0.014955978840589523, -0.13933396339416504, -0.1989014446735382, -0.008901268243789673, 0.2219691425561905, 0.17825627326965332, 0.11211700737476349, 0.04671209305524826, 0.8153548240661621, 0.290457546710968, 0.011643677949905396, -0.03010561317205429, 0.030306797474622726, -0.3385447859764099, -0.014115674421191216, 0.3378118872642517, 0.17408238351345062, -0.6436671018600464, -0.07704436033964157, 0.31620192527770996, -0.3413241505622864, 0.16437436640262604, 0.2579719126224518, -0.18453514575958252, 0.2711560130119324, 0.03886083513498306, 0.03419919312000275, 0.5991299748420715, -0.18697136640548706, -0.31146004796028137, 0.06830934435129166, 0.06771025061607361, 0.012374483048915863, 0.02926785685122013, -0.061726272106170654, 0.2344321310520172, -0.0872584730386734, 0.09912346303462982, 0.43483486771583557, -0.24046826362609863, 0.02949417382478714, -0.009855173528194427, -0.12067494541406631, 0.29519426822662354, 0.3530768156051636, -0.18554247915744781, -0.2928943634033203, 0.06247558072209358, 0.26716917753219604, 0.3282124698162079, -0.2255355417728424, 0.07368389517068863, 0.1006433442234993, -0.26723456382751465, 0.08921945840120316, 0.07311893999576569, -0.23355355858802795, -0.39952948689460754, 0.26649755239486694, -0.3235737085342407, 0.2553369998931885, 0.09278419613838196, -0.2169157862663269, 0.12565815448760986, -0.2714999318122864, -0.18847587704658508, -0.22574403882026672, 0.2386910766363144, -0.015327822417020798, 0.09809695184230804, 0.1489166021347046, -0.10532747209072113, -0.03315463289618492, -0.21751923859119415, -0.12769152224063873, -0.23525142669677734, -0.004218138754367828, 0.011516157537698746, -0.024570241570472717, 0.03362719714641571, 0.2056085467338562, -0.19452634453773499, -0.27736860513687134, -0.06866948306560516, -0.055468570441007614, 0.08433592319488525, 0.17624644935131073, -0.18674978613853455, -0.05570501089096069, 0.36075547337532043, -0.07967950403690338, -0.16045598685741425, 0.006556611508131027, -0.043949536979198456, -0.13471263647079468, -0.014206185936927795, 0.571395993232727, -0.008273008279502392, 0.15343359112739563, 0.13843770325183868, -0.1114000529050827, 0.43904197216033936, -0.21189838647842407, -0.06690831482410431, -0.30668336153030396, 0.3075169622898102, -0.24053916335105896, -0.025052569806575775, -0.020658213645219803, -0.4667215347290039, 0.2938874065876007, 0.5241797566413879, 0.11954175680875778, 0.2275015115737915, 0.02604595385491848, 0.3398806154727936, 0.1909877210855484, -0.06138864904642105, 0.23514752089977264, 0.1668776571750641, 0.1093577891588211, 0.3604391813278198, -0.2116723358631134, 0.3253706991672516, -0.17272211611270905, 0.04187353327870369, -0.2282513976097107, -0.0006561912596225739, 0.14246481657028198, 0.01218508929014206, -0.09229716658592224, -0.1998012512922287, 0.18163616955280304, 0.15314826369285583, 0.1381651610136032, 0.013818658888339996, 0.15291227400302887, -0.5816358327865601, -0.3761357069015503, -0.21043875813484192, -0.2378634661436081, 0.0063174329698085785, 0.24828054010868073, 0.29646605253219604, -0.30511730909347534, -0.16779282689094543, 0.3162819743156433, 0.3392688035964966, 0.07441122084856033, -0.17506049573421478, -0.053864412009716034, -0.07185445725917816, -0.17943188548088074, -0.244406595826149, 0.23883989453315735, 0.3472925126552582, -0.013521596789360046, 0.31456732749938965, -0.3366048038005829, -0.24142992496490479, 0.036231234669685364, -0.3904021084308624, 0.18104825913906097, -0.272042453289032, 0.002211332321166992, -0.1468355506658554, 0.1355133354663849, -0.016885094344615936, -0.13808971643447876, 0.27350184321403503, 0.17139321565628052, -0.22110965847969055, 0.06858386099338531, -0.00557936355471611, 0.10132250934839249, -0.12646307051181793, -0.6710655689239502, -0.5951107144355774, -0.25121304392814636, -0.1333300918340683, -0.24518513679504395, 0.3593440651893616, -0.21963927149772644, 0.05702405050396919, -0.008357681334018707, 0.016469258815050125, 0.1544209122657776, -0.08931979537010193, -0.1075412854552269, 0.15583571791648865, -0.3837586045265198, -0.38260188698768616, -0.1815674602985382, -0.07940270006656647, 0.6028255224227905, -0.010930594056844711, -0.16396081447601318, 0.14442014694213867, -0.21796776354312897, 0.031302012503147125, -0.13599328696727753, -0.04640883952379227, 0.38869091868400574, -0.15235091745853424, 0.07002624869346619, -0.0642266795039177, 0.2101171314716339, 0.24662381410598755, -0.1676120162010193, 0.19260555505752563, 0.021330419927835464, 0.35070762038230896, 0.28531891107559204, 0.687027096748352, 0.222536101937294, -0.01870013028383255, 0.26119107007980347, 0.037618473172187805, -0.09730694442987442, -0.1640944480895996, -0.33055350184440613, 0.10457774996757507, 0.27906695008277893, 0.24949155747890472, 0.3200261890888214, 0.0075696855783462524, -0.41947340965270996, -0.30468225479125977, -0.06820186972618103, -0.2497384250164032, -0.4224901795387268, 0.27975994348526, -0.1485925316810608, 0.25896215438842773, -0.08078636229038239, -0.12018048018217087, 0.06585294008255005, 0.06112458184361458, -0.12720899283885956, 0.27536481618881226, -0.23563559353351593, 0.13666808605194092, -0.16383713483810425, -0.2549639642238617, -0.257746160030365, 0.24321061372756958, 0.13932135701179504, 0.1295706033706665, -0.4074019193649292, -0.03480539843440056, 0.2553427815437317, 0.010197494179010391, 0.47926604747772217, -0.011642809957265854, 0.03342316672205925, -0.05681053549051285, -0.24978485703468323, -0.0475507415831089, 0.0518026128411293, -0.24375282227993011, -0.21107661724090576, 0.27869707345962524, 0.04833050072193146, -0.4830057621002197, -0.4004105031490326, -0.18962673842906952, 0.22105072438716888, -0.3180152177810669, 0.10457213222980499, -0.15023767948150635, -0.49367186427116394, -0.18559280037879944, 0.24972864985466003, 0.13807129859924316, 0.07379494607448578, 0.11409011483192444, -0.3469451665878296, -0.09484244138002396, 0.027149304747581482, 0.07464995980262756, 0.3943493962287903, 0.03877852484583855, 0.00038966909050941467, 0.14791014790534973, -0.024257851764559746, -0.31040531396865845, 0.33756670355796814, 0.44414350390434265, -0.07141294330358505, -0.47759076952934265, 0.06897354871034622, -0.26353341341018677, 0.22579705715179443, 0.20283643901348114, -0.07878392934799194, 0.05084501951932907, -0.13943424820899963, -0.016405094414949417, -0.2262815684080124, 0.26643285155296326, 0.42545947432518005, 0.23974767327308655, -0.4981902241706848, -0.3799901604652405, 0.1270401030778885, -0.16619773209095, -0.018815062940120697, 0.436490923166275, 0.2236265242099762, -0.34341275691986084, 0.3876726031303406, 0.14852237701416016, 0.7250760793685913, -0.24464713037014008, 0.1286919116973877, 0.18994808197021484, 0.1315005123615265, 0.2746503949165344, -0.13464383780956268, -0.05114690214395523, -0.07278156280517578, -0.037135735154151917, -0.08804921805858612, 0.1354050189256668, 0.18416833877563477, 0.3696352243423462, -0.24192963540554047, -0.019766313955187798, -0.0026527047157287598, -0.36829423904418945, 0.07598056644201279, 0.236465722322464, -0.15469957888126373, -0.24060426652431488, -0.2274138182401657, 0.1521267592906952, -0.13779956102371216, 0.14219489693641663, -0.02449987456202507, -0.1441592425107956, 0.023224078118801117, 0.06372272968292236, -0.1509368121623993, -0.048602018505334854, -0.44815999269485474, -0.06789436936378479, -0.09774995595216751, -0.5241672992706299, 0.42616796493530273, 0.4877758324146271, 0.35392284393310547, 0.14107942581176758, -0.05832815170288086, 0.21231168508529663, 0.04951092228293419, 0.10840833187103271, -0.011424742639064789, -0.27227312326431274, 0.28642508387565613, -0.12151862680912018, -0.24562951922416687, -0.07009504735469818, 0.22727027535438538, 0.16992740333080292, -0.05879576504230499, 0.14548274874687195, 0.08730579167604446, -0.141028493642807, -0.004675433039665222, 0.10796254873275757, 0.14134091138839722, -0.018747813999652863, 0.21283838152885437, 0.13455568253993988, -0.193118616938591, 0.0653739869594574, -0.12841594219207764, -0.185083270072937, -0.07855568826198578, -0.2814273536205292, 0.3756263256072998, 0.23225441575050354, 0.33842733502388, 0.3050633668899536, -0.0658048540353775, -0.1704980432987213, 0.30180731415748596, 0.02185903862118721, -0.2949540615081787, -0.03650049865245819, 0.2810056507587433, 0.022746235132217407, -0.02407495677471161, 0.3036062717437744, -0.28416553139686584, -0.06993886828422546, -0.08454572409391403, -0.29268425703048706, 0.009982585906982422, 0.042036883533000946, -0.1245800331234932, 0.10540346056222916, 0.27710777521133423, 0.3390999436378479, -0.13117462396621704, 0.5737301707267761, -0.3698701858520508, 0.005886103957891464, -0.05654996633529663, 0.2760065793991089, -0.10364878177642822, 0.049920812249183655, 0.24134370684623718, 0.16799437999725342, 0.06675305962562561, -0.0381922647356987, -0.03510483726859093, -0.3488069474697113, -0.18297918140888214, 0.10075371712446213, 0.007105536758899689, 0.1759008765220642, 0.1313995122909546, -0.1661437600851059, -0.09255106747150421, -0.1509748250246048, 0.28554677963256836, -0.010573171079158783, 0.1109222024679184, 0.4425671398639679, 0.17389817535877228, 0.19732722640037537, -0.13705478608608246, 0.063075952231884, -0.037074245512485504, -0.011081866919994354, -0.014212723821401596, 0.08215023577213287, -0.17569832503795624, -0.22096842527389526, -0.06530308723449707, 0.09669475257396698, 0.1255740225315094, -0.19687125086784363, -0.14599770307540894, 0.11833710968494415, 0.38068675994873047, -0.18648883700370789, 0.07303164899349213, 0.019579576328396797, -0.07360965013504028, 0.1659243106842041, 0.3901277482509613, 0.23546330630779266, -0.09509249031543732, 0.0966482013463974, -0.1705893725156784, -0.13902127742767334, 0.23273129761219025, 0.4411734342575073, -0.13917867839336395, 0.297532856464386, 0.5234048366546631, -0.20160073041915894, 0.02354460209608078, -0.5701324939727783, 0.1358402818441391, 0.3579995632171631, -0.24829250574111938, 0.014758378267288208, 0.25655776262283325, -0.15802216529846191, 0.04891783744096756, -0.07461728155612946, -0.3017634451389313, 0.09023739397525787, -0.1508256494998932, -0.003172011114656925, 0.1290086805820465, -0.40520575642585754, -0.33481723070144653, -0.08263615518808365, -0.11716341972351074, -0.05090968683362007, 0.02962067350745201, 0.3479803800582886, -0.07099664956331253, -0.13156700134277344, 0.03493010997772217, 0.19968566298484802, -0.008486579172313213, -0.17564746737480164, -0.22199536859989166, 0.06939484179019928, -0.023941799998283386, -0.07409939169883728, -0.04128757491707802, -0.1026528999209404, -0.07205402851104736, 0.22071677446365356, -0.04756677895784378, -0.10422571748495102, 0.04588891938328743, -0.05115106701850891, -0.13569945096969604, 0.0019163340330123901, 0.48354074358940125, 0.20260782539844513, -0.08615680038928986, -0.01925642415881157, 0.29334089159965515, 0.032877370715141296, -0.10852089524269104, -0.21728971600532532, 0.3303784430027008, -0.2242424041032791, -0.079775370657444, -0.05269341170787811, 0.4048779606819153, 0.1722879856824875, 0.26075389981269836, 0.23728786408901215, 0.1530282348394394, -0.15549910068511963, -0.18589290976524353, 0.16080181300640106, 0.023932412266731262, -0.1835128217935562, 0.4393492639064789, -0.0966397374868393, 0.3170117735862732, -0.20668411254882812, -0.055437736213207245, -0.5749286413192749, 0.10271312296390533, 0.19623085856437683, -0.2680196464061737, 0.13724875450134277, -0.18100868165493011, 0.10221883654594421, 0.09094521403312683, 0.418143093585968, -0.18866148591041565, 0.3962571322917938, -0.11882752180099487, -0.0018161535263061523, -0.192428857088089, 0.10124482214450836, -0.0004212944768369198, 0.1354101598262787, -0.229012131690979, 0.29736027121543884, 0.40499892830848694, 0.35526058077812195, 0.17296935617923737, -0.2654716968536377, 0.09301885217428207, 0.21754787862300873, -0.20792165398597717, 0.04695158451795578, -0.4969526529312134, 0.43093907833099365, -0.09627525508403778, -0.21553201973438263, 0.25673431158065796, -0.038261447101831436, -0.04080028086900711, -0.07682539522647858, 0.04074279963970184, 0.36103349924087524, 0.0791589766740799, 0.009105253964662552, 0.2970998287200928, 0.15250912308692932, -0.17994867265224457, 0.31899967789649963, -0.06942883133888245, -0.026643086224794388, -0.5007226467132568, 0.25097548961639404, 0.2622113823890686, 0.13167467713356018, -0.35718393325805664, -0.3711140751838684, -0.12617744505405426, 0.3362703025341034, 0.04094414412975311, -0.11612309515476227, 0.22252503037452698, 0.07589787989854813, 0.4533268213272095, -0.15629038214683533, 0.36273956298828125, 0.6081723570823669, 0.06362559646368027, -0.1379098743200302, -0.3992080092430115, -0.23140022158622742, 0.1343284249305725, -0.1640169322490692, -0.18331840634346008, 0.2519247233867645, -0.035795845091342926, 0.17292554676532745, 0.18606695532798767, -0.4305513799190521, 0.10407300293445587, 0.237361878156662, -0.11214810609817505, -0.018777068704366684, 0.31544777750968933, 0.28852108120918274, -0.07826733589172363, -0.2783443331718445, 0.2762378454208374, 0.26436156034469604, -0.08760607242584229, -0.17605774104595184, -0.22791460156440735 ]
https://github.com/huggingface/datasets/issues/2131
Hi ! Thanks for reporting I was able to reproduce this issue. This was caused by missing split infos if a worker reloads the cache of the other worker. I just opened https://github.com/huggingface/datasets/pull/2137 to fix this issue
When training with Multi-Node Multi-GPU the worker 2 has TypeError: 'NoneType' object
version: 1.5.0 met a very strange error, I am training large scale language model, and need train on 2 machines(workers). And sometimes I will get this error `TypeError: 'NoneType' object is not iterable` This is traceback ``` 71 |   | Traceback (most recent call last): -- | -- | -- 72 |   | File "run_gpt.py", line 316, in <module> 73 |   | main() 74 |   | File "run_gpt.py", line 222, in main 75 |   | delimiter="\t", column_names=["input_ids", "attention_mask", "chinese_ref"]) 76 |   | File "/data/miniconda3/lib/python3.7/site-packages/datasets/load.py", line 747, in load_dataset 77 |   | use_auth_token=use_auth_token, 78 |   | File "/data/miniconda3/lib/python3.7/site-packages/datasets/builder.py", line 513, in download_and_prepare 79 |   | self.download_post_processing_resources(dl_manager) 80 |   | File "/data/miniconda3/lib/python3.7/site-packages/datasets/builder.py", line 673, in download_post_processing_resources 81 |   | for split in self.info.splits: 82 |   | TypeError: 'NoneType' object is not iterable 83 |   | WARNING:datasets.builder:Reusing dataset csv (/usr/local/app/.cache/huggingface/datasets/csv/default-1c257ebd48e225e7/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2) 84 |   | Traceback (most recent call last): 85 |   | File "/data/miniconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main 86 |   | "__main__", mod_spec) 87 |   | File "/data/miniconda3/lib/python3.7/runpy.py", line 85, in _run_code 88 |   | exec(code, run_globals) 89 |   | File "/data/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 340, in <module> 90 |   | main() 91 |   | File "/data/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 326, in main 92 |   | sigkill_handler(signal.SIGTERM, None) # not coming back 93 |   | File "/data/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 301, in sigkill_handler 94 |   | raise subprocess.CalledProcessError(returncode=last_return_code, cmd=cmd) ``` On worker 1 it loads the dataset well, however on worker 2 will get this error. And I will meet this error from time to time, sometimes it just goes well.
37
When training with Multi-Node Multi-GPU the worker 2 has TypeError: 'NoneType' object version: 1.5.0 met a very strange error, I am training large scale language model, and need train on 2 machines(workers). And sometimes I will get this error `TypeError: 'NoneType' object is not iterable` This is traceback ``` 71 |   | Traceback (most recent call last): -- | -- | -- 72 |   | File "run_gpt.py", line 316, in <module> 73 |   | main() 74 |   | File "run_gpt.py", line 222, in main 75 |   | delimiter="\t", column_names=["input_ids", "attention_mask", "chinese_ref"]) 76 |   | File "/data/miniconda3/lib/python3.7/site-packages/datasets/load.py", line 747, in load_dataset 77 |   | use_auth_token=use_auth_token, 78 |   | File "/data/miniconda3/lib/python3.7/site-packages/datasets/builder.py", line 513, in download_and_prepare 79 |   | self.download_post_processing_resources(dl_manager) 80 |   | File "/data/miniconda3/lib/python3.7/site-packages/datasets/builder.py", line 673, in download_post_processing_resources 81 |   | for split in self.info.splits: 82 |   | TypeError: 'NoneType' object is not iterable 83 |   | WARNING:datasets.builder:Reusing dataset csv (/usr/local/app/.cache/huggingface/datasets/csv/default-1c257ebd48e225e7/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2) 84 |   | Traceback (most recent call last): 85 |   | File "/data/miniconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main 86 |   | "__main__", mod_spec) 87 |   | File "/data/miniconda3/lib/python3.7/runpy.py", line 85, in _run_code 88 |   | exec(code, run_globals) 89 |   | File "/data/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 340, in <module> 90 |   | main() 91 |   | File "/data/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 326, in main 92 |   | sigkill_handler(signal.SIGTERM, None) # not coming back 93 |   | File "/data/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 301, in sigkill_handler 94 |   | raise subprocess.CalledProcessError(returncode=last_return_code, cmd=cmd) ``` On worker 1 it loads the dataset well, however on worker 2 will get this error. And I will meet this error from time to time, sometimes it just goes well. Hi ! Thanks for reporting I was able to reproduce this issue. This was caused by missing split infos if a worker reloads the cache of the other worker. I just opened https://github.com/huggingface/datasets/pull/2137 to fix this issue
[ -0.18060989677906036, -0.44680917263031006, 0.01292361319065094, 0.549514651298523, 0.11248518526554108, -0.00913412868976593, 0.5815144777297974, 0.29670143127441406, 0.11292458325624466, 0.23671123385429382, 0.33802881836891174, 0.01737622544169426, -0.11621546745300293, 0.16757316887378693, -0.0424104668200016, -0.28215906023979187, -0.17642176151275635, 0.043467793613672256, -0.22780576348304749, -0.21459253132343292, -0.34337282180786133, 0.1396663933992386, -0.13131718337535858, 0.18899187445640564, -0.506335973739624, -0.42345431447029114, -0.10638236999511719, -0.03272606059908867, 0.2665306031703949, -0.21522238850593567, 0.2046152949333191, -0.3352000117301941, 0.18561649322509766, 0.8994958996772766, -0.00011864017142215744, 0.14836055040359497, 0.12082323431968689, 0.06245388090610504, -0.1442175656557083, -0.4792484641075134, 0.08363457024097443, -0.37933650612831116, 0.043894849717617035, -0.3725201487541199, -0.16402316093444824, -0.11530901491641998, 0.25082793831825256, 0.06836916506290436, 0.038129132241010666, 0.20970550179481506, 0.16525694727897644, 0.3379758298397064, 0.11852911114692688, -0.09108668565750122, -0.1230919361114502, -0.07817527651786804, -0.12458111345767975, -0.0570695586502552, -0.14633244276046753, 0.21519845724105835, 0.140852689743042, 0.30015188455581665, 0.060043804347515106, 0.052212342619895935, -0.09474042803049088, -0.042964547872543335, 0.5682384371757507, -0.440009742975235, 0.04038936644792557, 0.3434169292449951, 0.0855882465839386, 0.007864890620112419, -0.20140478014945984, -0.13235989212989807, 0.15427419543266296, -0.1182241141796112, 0.18473683297634125, 0.3629117012023926, -0.05310506001114845, 0.15006038546562195, -0.1300465613603592, -0.06762704998254776, -0.2308022826910019, 0.05340021476149559, -0.11150959134101868, 0.09015604853630066, -0.13164982199668884, 0.40468788146972656, 0.15697386860847473, 0.04253749921917915, 0.144668310880661, -0.11518137156963348, 0.15617619454860687, 0.03730519860982895, -0.47684094309806824, -0.2667487859725952, 0.08416635543107986, -0.1505969613790512, -0.15459319949150085, -0.12079499661922455, 0.12118645012378693, -0.17925146222114563, -0.13282927870750427, 0.3402725160121918, 0.22153249382972717, -0.20896859467029572, -0.02803722769021988, 0.06677782535552979, 0.15727314352989197, -0.1440432220697403, -0.34489789605140686, 0.06565914303064346, -0.12342352420091629, -0.39756086468696594, 0.06721603870391846, 0.3313921391963959, 0.5509837865829468, 0.08143356442451477, -0.25580736994743347, -0.3254730701446533, -0.4844892621040344, 0.0634806677699089, 0.1591976135969162, 0.07159985601902008, -0.021561812609434128, 0.7668600678443909, -0.13800421357154846, 0.14253345131874084, -0.2015484869480133, -0.44330352544784546, -0.15091055631637573, 0.21171802282333374, -0.23164841532707214, 0.09888114780187607, -0.06088144704699516, 0.020904529839754105, -0.05376744642853737, 0.06692980229854584, 0.0066235968843102455, -0.06754758208990097, 0.25499770045280457, -0.6412527561187744, 0.026508837938308716, 0.20477890968322754, 0.1866108775138855, 0.12111889570951462, 0.19117604196071625, -0.08484867215156555, -0.1786593794822693, 0.05700187757611275, -0.49905961751937866, -0.2644452154636383, -0.043509215116500854, 0.07131531834602356, 0.13899439573287964, 0.22189639508724213, 0.06353171169757843, 0.1517142504453659, 0.5338411927223206, -0.04460696876049042, 0.041408538818359375, -0.3242381811141968, -0.3369706869125366, -0.30631959438323975, -0.3215332627296448, 0.4540398418903351, 0.08536078035831451, -0.06517326831817627, 0.2063797116279602, -0.05806621536612511, 0.3713685870170593, 0.45452046394348145, 0.0005991458892822266, 0.08373891562223434, -0.12341110408306122, 0.013895496726036072, 0.26605209708213806, -0.2399117648601532, 0.021565433591604233, 0.4763100743293762, -0.40287917852401733, 0.07887115329504013, 0.3922179341316223, -0.04965544492006302, -0.27715030312538147, -0.037272609770298004, 0.18951699137687683, 0.34239479899406433, -0.0628310889005661, 0.009341202676296234, -0.2271394282579422, -0.07927513867616653, 0.4815942943096161, -0.15692903101444244, 0.3270476758480072, 0.07039641588926315, -0.027675356715917587, -0.11343753337860107, 0.22753266990184784, -0.3470684289932251, -0.06313280761241913, 0.10201364755630493, 0.2154044210910797, -0.14629428088665009, 0.06869456171989441, -0.16872060298919678, -0.24634593725204468, 0.05420708656311035, -0.13647520542144775, 0.1516544073820114, 0.22258520126342773, -0.08034852147102356, 0.23498325049877167, -0.22664996981620789, -0.22339172661304474, 0.055360596626996994, 0.07523032277822495, 0.3720038831233978, -0.2636728584766388, 0.16320210695266724, 0.024580486118793488, 0.002145584672689438, -0.39044851064682007, -0.2759418487548828, -0.10103419423103333, 0.20784947276115417, -0.02916582301259041, -0.10703682154417038, -0.08391108363866806, 0.2642501890659332, 0.44165652990341187, -0.21290914714336395, 0.240653395652771, 0.14041006565093994, -0.10809048265218735, 0.04944460093975067, -0.05240454152226448, 0.18030838668346405, 0.35804811120033264, -0.18726177513599396, -0.14094164967536926, 0.2008782923221588, 0.13469886779785156, -0.1484244167804718, 0.36990904808044434, 0.4953470826148987, 0.09052126109600067, 0.2097524255514145, 0.044927358627319336, 0.07861214876174927, 0.12152305990457535, 0.02404741197824478, -0.016427863389253616, 0.08279405534267426, 0.0056439912877976894, 0.12759524583816528, -0.11251746863126755, 0.0920487716794014, -0.6476395726203918, 0.09566253423690796, 0.8060959577560425, 0.11738064140081406, 0.4062264859676361, 0.00864435825496912, 0.1291956901550293, 0.027758866548538208, -0.15448105335235596, -0.028517231345176697, 0.42291539907455444, -0.04228590801358223, 0.2465563863515854, -0.03929724916815758, -0.06261935830116272, -0.1413777619600296, 0.052228160202503204, -0.18255218863487244, 0.7166274785995483, 0.2830471694469452, 0.13272050023078918, -0.0022642556577920914, -0.005648277699947357, -0.2538817524909973, 0.27362966537475586, 0.45052751898765564, -0.3334290385246277, 0.35020220279693604, -0.3673315942287445, -0.015990450978279114, -0.25819385051727295, 0.26614809036254883, -0.09382940828800201, -0.024577397853136063, -0.2472630739212036, 0.18640367686748505, 0.15038342773914337, 0.12232137471437454, 0.35891759395599365, 0.1457657665014267, 0.1071993038058281, 0.23171788454055786, 0.22993239760398865, 0.011164650321006775, -0.21773362159729004, -0.07255332171916962, 0.2922358810901642, -0.33589422702789307, 0.009065018966794014, -0.12265989184379578, -0.5176735520362854, -0.35142824053764343, -0.06382524967193604, 0.06567476689815521, 0.013568319380283356, 0.0029363520443439484, 0.28642532229423523, 0.07852575182914734, -0.012096874415874481, -0.06199903041124344, 0.15520581603050232, -0.45533284544944763, -0.11282839626073837, 0.24765469133853912, -0.38556504249572754, 0.10963684320449829, -0.12863828241825104, -0.28459998965263367, -0.2985159456729889, -0.16824360191822052, 0.6335545778274536, 0.03610160946846008, 0.432666540145874, 0.16279791295528412, 0.11403213441371918, 0.16086077690124512, 0.13671648502349854, 0.09560663253068924, -0.15633046627044678, -0.4536632299423218, 0.14690837264060974, 0.04631878063082695, -0.2639671564102173, -0.08131293207406998, 0.07793895900249481, 0.325936496257782, 0.19401578605175018, -0.30164414644241333, -0.24737678468227386, 0.06989080458879471, -0.007389046251773834, -0.0802941545844078, 0.043605878949165344, 0.31068477034568787, -0.08174750208854675, -0.07956509292125702, 0.10493680089712143, 0.16634738445281982, 0.1308562010526657, 0.2061452567577362, 0.2597743570804596, 0.215860053896904, 0.2530965805053711, 0.25402942299842834, 0.5351132750511169, 0.22063198685646057, -0.06744623184204102, 0.22588206827640533, -0.15229569375514984, -0.004480114206671715, 0.15644417703151703, -0.35946133732795715, 0.1473369151353836, -0.23302707076072693, -0.1332297921180725, -0.046654265373945236, -0.44171732664108276, -0.5093242526054382, -0.1664876788854599, -0.17383098602294922, -0.3591649532318115, -0.17151671648025513, 0.22901111841201782, -0.20580720901489258, 0.3189738690853119, -0.20082545280456543, -0.06633161753416061, -0.2482413351535797, 0.020823407918214798, -0.04612534120678902, 0.23272672295570374, -0.02023906260728836, -0.08025190234184265, -0.4130919873714447, -0.5657932758331299, -0.044171255081892014, 0.2615535259246826, 0.011374611407518387, 0.44019025564193726, -0.10604767501354218, 0.019314460456371307, 0.17485985159873962, -0.0069009289145469666, 0.8240170478820801, -0.2342892438173294, 0.02431710995733738, 0.28990262746810913, -0.575290858745575, -0.08479800075292587, -0.039957478642463684, -0.27600201964378357, 0.42164379358291626, 0.5022408366203308, 0.30497628450393677, -0.1920865923166275, -0.317082017660141, 0.23276455700397491, -0.17302021384239197, -0.15133525431156158, -0.09945642203092575, -0.26819926500320435, -0.1267525553703308, 0.003130383789539337, 0.09917475283145905, 0.042363643646240234, 0.4196647107601166, -0.42231348156929016, -0.011067017912864685, -0.35940074920654297, 0.10356028378009796, 0.09924312680959702, 0.0183778777718544, -0.022020362317562103, -0.015782982110977173, -0.2933521866798401, 0.06660658121109009, 0.4181608259677887, 0.34560656547546387, 0.13525396585464478, 0.12379302084445953, -0.22204990684986115, 0.38663583993911743, -0.2193983495235443, 0.3998537063598633, 0.44144660234451294, -0.068904347717762, 0.259398877620697, 0.046429380774497986, 0.3088768720626831, 0.009954340755939484, -0.21341344714164734, 0.5013942718505859, 0.09648263454437256, -0.35672688484191895, -0.4405711591243744, 0.2417842447757721, 0.2308719903230667, 0.14432936906814575, 0.07531607896089554, -0.31316471099853516, -0.09207876771688461, -0.03643149137496948, -0.03488681837916374, 0.8628456592559814, 0.13031929731369019, 0.13191121816635132, 0.26374512910842896, 0.06481201201677322, 0.7199363112449646, -0.4422345757484436, 0.3917689919471741, -0.25687849521636963, -0.16638202965259552, -0.1640912890434265, -0.08176591992378235, 0.39144158363342285, 0.2064571976661682, -0.2381402552127838, 0.36587125062942505, -0.10307770222425461, -0.16163916885852814, -0.15807706117630005, 0.1148330494761467, -0.25051212310791016, -0.06138881295919418, -0.149653360247612, -0.04961450397968292, 0.05776761844754219, 0.17044390738010406, -0.14700599014759064, -0.372534841299057, 0.3594643771648407, -0.005059361457824707, -0.21959468722343445, -0.08866827934980392, -0.3248027265071869, 0.2875601649284363, 0.41249677538871765, -0.42935875058174133, 0.2377709299325943, 0.20760288834571838, 0.30870378017425537, -0.2606232762336731, -0.12209872156381607, -0.20714063942432404, -0.20247727632522583, -0.007219571620225906, -0.2808030843734741, -0.19268949329853058, 0.5347769856452942, -0.10140881687402725, -0.528734564781189, 0.2500188648700714, -0.0031345486640930176, -0.004328154027462006, 0.02415795624256134, 0.0992155447602272, -0.49704620242118835, 0.25181615352630615, -0.04583429917693138, 0.1943410038948059, -0.16788555681705475, -0.21789848804473877, 0.07154524326324463, -0.08303079754114151, -0.6331081986427307, -0.005031712353229523, -0.015976663678884506, -0.40665021538734436, 0.1884666085243225, 0.35626330971717834, 0.5661857724189758, 0.4459781348705292, 0.462250292301178, 0.36455798149108887, -0.08354746550321579, -0.35338371992111206, 0.21551525592803955, 0.3437522351741791, -0.3580479621887207, 0.22692328691482544, -0.01345861330628395, 0.05459858477115631, 0.03331291675567627, 0.10383731126785278, 0.04384389519691467, 0.594175398349762, -0.1677766740322113, -0.28886139392852783, 0.11383619904518127, -0.1244141161441803, -0.22115308046340942, -0.19147248566150665, 0.03181127458810806, 0.46785953640937805, 0.3696144223213196, 0.15604327619075775, -0.22561070322990417, 0.18321159482002258, -0.6862770318984985, 0.1564277559518814, -0.2976359724998474, -0.18752874433994293, 0.03517316281795502, 0.2281864434480667, 0.011276014149188995, 0.03110392764210701, -0.015120647847652435, -0.11357148736715317, -0.10845521092414856, 0.19145870208740234, 0.07627373188734055, 0.20772403478622437, 0.21914246678352356, 0.0013007521629333496, -0.2629857659339905, 0.08612477779388428, 0.1031460240483284, 0.026384010910987854, -0.012782406061887741, 0.33478227257728577, -0.13184943795204163, 0.1470618098974228, -0.05168905481696129, 0.016081683337688446, -0.16635508835315704, -0.026443365961313248, 0.06842055916786194, 0.25990772247314453, 0.2681328356266022, 0.10510055720806122, -0.2012486457824707, -0.0905272513628006, -0.1690199077129364, 0.1310451328754425, -0.0031565604731440544, -0.33795425295829773, -0.1537524312734604, -0.061039797961711884, -0.12874698638916016, 0.07865192741155624, -0.20810666680335999, 0.16428473591804504, -0.008276227861642838, 0.07519056648015976, -0.17203682661056519, 0.01604992151260376, 0.39848026633262634, 0.040143199265003204, -0.054523296654224396, 0.31295812129974365, 0.19645829498767853, -0.014788292348384857, -0.22554874420166016, 0.09894166141748428, -0.17985625565052032, -0.5493917465209961, 0.19873081147670746, 0.07899940013885498, -0.17255495488643646, 0.16924571990966797, 0.23402366042137146, 0.19412830471992493, -0.010798569768667221, 0.19863218069076538, 0.15539799630641937, 0.25056686997413635, 0.011446375399827957, 0.06475001573562622, 0.1874617636203766, -0.34194526076316833, -0.18517698347568512, 0.10272453725337982, -0.1878153383731842, -0.0758214145898819, -0.24397073686122894, 0.10619454085826874, -0.342697411775589, -0.2329876571893692, -0.13440707325935364, 0.10679323971271515, -0.37161049246788025, -0.07589643448591232, -0.48229387402534485, -0.03382524847984314, -0.22222229838371277, -0.0620703250169754, 0.11318842321634293, 0.07849553227424622, 0.3637966215610504, 0.2248346209526062, -0.15492011606693268, -0.3011438548564911, 0.09746382385492325, 0.16356153786182404, 0.2713884711265564, -0.22273603081703186, 0.011884691193699837, 0.10448786616325378, -0.019257940351963043, -0.29714298248291016, 0.45427757501602173, 0.33165791630744934, 0.3410499095916748, -0.2278934121131897, -0.15210646390914917, 0.12080906331539154, -0.1401270627975464, 0.016908980906009674, -0.08650852739810944, 0.12327955663204193, 0.24241220951080322, 0.2065563201904297, 0.0007888823747634888, -0.05082538351416588, 0.3772299885749817, 0.1411719173192978, 0.01528012752532959, -0.3947427272796631, 0.49977415800094604, -0.3795514702796936, 0.040479063987731934, -0.09759682416915894, 0.3181051015853882, -0.5076956748962402, 0.1147274523973465, 0.6606998443603516, -0.2035873830318451, 0.23904100060462952, 0.005449462682008743, 0.024768110364675522, -0.150730699300766, 0.48828086256980896, 0.05564537271857262, -0.026480011641979218, -0.2904708981513977, 0.12167039513587952, -0.11697442084550858, 0.584766149520874, -0.3455076813697815, 0.2629432678222656, -0.03818843886256218, 0.602992057800293, -0.07868708670139313, -0.0741019919514656, 0.1273525059223175, 0.15748508274555206, 0.19484183192253113, 0.3991422951221466, -0.4147590100765228, -0.22496172785758972, -0.3403020203113556, -0.1307872086763382, 0.16332410275936127, -0.3058511018753052, 0.1660931408405304, -0.11333002895116806, 0.01632814109325409, -0.03951180726289749, 0.005938641726970673, -0.22462986409664154, 0.020087197422981262, 0.2809775769710541, 0.18725919723510742, 0.23279441893100739, 0.009996458888053894, -0.04241505265235901, 0.010123182088136673, -0.19675160944461823, -0.2997450530529022, 0.5487579107284546, 0.056879885494709015, 0.09977610409259796, -0.19396141171455383, 0.2067074477672577, -0.15052196383476257, 0.26006531715393066, -0.01935010403394699, 0.09635061770677567, 0.01007523387670517, 0.2616031765937805, -0.025961272418498993, -0.0744595155119896, 0.08255056291818619, 0.08062805235385895, 0.12781739234924316, -0.2672429382801056, -0.1667000651359558, -0.09586187452077866, 0.3261491060256958, -0.3049180209636688, -0.3767562210559845, -0.48742079734802246, 0.3538346588611603, 0.05802386999130249, 0.14175857603549957, -0.4789164662361145, -0.14948011934757233, 0.37748295068740845, -0.06847339868545532, -0.3998478353023529, -0.04413031414151192, -0.08414885401725769, -0.1253635585308075, 0.07600994408130646, -0.21127760410308838, -0.12441640347242355, -0.2668004631996155, 0.12309499830007553, -0.30768588185310364 ]
https://github.com/huggingface/datasets/issues/2130
Here please find TFDS format of this dataset: https://www.tensorflow.org/datasets/catalog/wikiann where there is a span column, this is really necessary to be able to use the data, and I appreciate your help @lhoestq
wikiann dataset is missing columns
Hi Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq
32
wikiann dataset is missing columns Hi Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq Here please find TFDS format of this dataset: https://www.tensorflow.org/datasets/catalog/wikiann where there is a span column, this is really necessary to be able to use the data, and I appreciate your help @lhoestq
[ 0.0038929209113121033, -0.43879351019859314, -0.09474526345729828, 0.2763385772705078, 0.31972891092300415, 0.18333914875984192, 0.3208167850971222, 0.08076183497905731, 0.053126491606235504, 0.2570089101791382, 0.010992992669343948, -0.2380870282649994, 0.07031045854091644, 0.420583039522171, 0.3480722904205322, -0.8203637003898621, 0.11330023407936096, 0.3876083195209503, -0.23017634451389313, -0.12015918642282486, -0.24213525652885437, 0.3445683717727661, -0.41372397541999817, -0.17267116904258728, -0.2490340620279312, -0.10222585499286652, -0.15134550631046295, -0.08968222141265869, -0.033964160829782486, -0.03080778196454048, 0.3040226101875305, -0.2934642434120178, 0.3014790415763855, 0.11419704556465149, -0.00011207647912669927, 0.10792738199234009, 0.01342531107366085, -0.11435126513242722, 0.07695887982845306, 0.2684705853462219, -0.030569203197956085, -0.3217630088329315, 0.012332852929830551, -0.3968161344528198, -0.35831332206726074, -0.18270549178123474, -0.17689156532287598, 0.11606418341398239, 0.11295460164546967, 0.21762292087078094, 0.18820004165172577, 0.7334357500076294, 0.3261471092700958, -0.02159285545349121, 0.07389543950557709, -0.2582477033138275, -0.24346840381622314, -0.3627045154571533, 0.2368403524160385, -0.09888499975204468, 0.23976507782936096, 0.342851459980011, -0.014115530997514725, -0.19029437005519867, 0.2873826324939728, 0.1529557704925537, -0.2721421718597412, -0.5023329854011536, 0.29278653860092163, 0.7253639101982117, 0.8114989995956421, 0.09701620042324066, 0.1451939046382904, -0.1972338855266571, 0.01659901812672615, 0.0472855269908905, 0.08048626780509949, 0.1341172307729721, -0.019667915999889374, 0.2952952980995178, -0.07298544049263, -0.07818280905485153, -0.26947689056396484, 0.28360819816589355, -0.33952951431274414, 0.3484340012073517, -0.043237023055553436, -0.054571691900491714, -0.15881860256195068, -0.011113089509308338, -0.09229636192321777, 0.17392821609973907, 0.08843374252319336, 0.1710793524980545, -0.39398932456970215, -0.22444728016853333, -0.08043740689754486, 0.2654082179069519, 0.13047228753566742, -0.049379441887140274, -0.25673550367355347, -0.26376187801361084, 0.0772433876991272, -0.0034747030586004257, -0.08453281223773956, 0.08640111982822418, -0.09763579815626144, 0.14008617401123047, 0.03392191231250763, 0.19447845220565796, 0.12510302662849426, -0.14601509273052216, -0.18886615335941315, 0.040903110057115555, -0.10016056895256042, -0.277403861284256, -0.12250658124685287, 0.0023716315627098083, 0.1778181791305542, 0.09476254135370255, 0.12005749344825745, 0.07993918657302856, 0.02921423316001892, 0.2910704016685486, -0.034453384578228, 0.5733721256256104, -0.01849415898323059, 0.08014929294586182, 0.0728822574019432, -0.10366678237915039, -0.3151017725467682, 0.1644502878189087, 0.174606055021286, 0.0665312334895134, 0.1458101123571396, -0.2616470158100128, 0.4494471848011017, 0.0023809336125850677, -0.1679142713546753, 0.21902517974376678, -0.038875408470630646, 0.08149077743291855, -0.08575038611888885, 0.5386384129524231, 0.02074112743139267, 0.04018402844667435, 0.155389666557312, 0.09844115376472473, -0.0684099793434143, 0.052157942205667496, -0.3235917091369629, -0.07731388509273529, -0.3769295811653137, 0.1812782883644104, -0.0029471442103385925, -0.3248753249645233, -0.10786892473697662, 0.10646706819534302, 0.07552242279052734, -0.23217353224754333, 0.2516082227230072, -0.03601038455963135, -0.12205347418785095, -0.15932229161262512, 0.44398730993270874, -0.05313859134912491, -0.36924704909324646, -0.2977437376976013, 0.27552127838134766, -0.17683877050876617, 0.2126063108444214, 0.3860510587692261, 0.10580078512430191, 0.17043226957321167, -0.09024479240179062, 0.43564778566360474, 0.24902230501174927, -0.22927260398864746, -0.2811495065689087, -0.12342199683189392, 0.18897542357444763, 0.180306077003479, 0.04949027672410011, -0.07016315311193466, 0.3523237705230713, 0.10539950430393219, -0.0712125226855278, 0.24688781797885895, -0.15497122704982758, 0.020839080214500427, -0.05595709756016731, -0.27087104320526123, 0.15833625197410583, 0.19096380472183228, 0.31860455870628357, 0.11957189440727234, -0.23155954480171204, 0.14122356474399567, 0.21702904999256134, -0.3112366795539856, 0.09457534551620483, 0.3153349757194519, 0.10525595396757126, 0.2595468759536743, 0.16628354787826538, -0.16299255192279816, -0.7005294561386108, 0.1809139996767044, 0.19239847362041473, 0.1310078203678131, 0.28856360912323, -0.1591426134109497, -0.08848972618579865, -0.1614852249622345, -0.13237705826759338, -0.14351466298103333, 0.14595142006874084, -0.16559839248657227, 0.05700944364070892, 0.26066869497299194, -0.2820783257484436, -0.22865910828113556, -0.34093260765075684, 0.11144514381885529, -0.17070221900939941, 0.29898500442504883, -0.008516634814441204, 0.14481312036514282, 0.04201941937208176, 0.3530826270580292, 0.09172630310058594, 0.00654703751206398, 0.247444286942482, 0.03394331783056259, -0.30635327100753784, 0.11763766407966614, -0.16429126262664795, 0.32632002234458923, 0.2306768298149109, -0.2691122591495514, -0.26757246255874634, -0.17825227975845337, -0.0008583813905715942, -0.32073140144348145, -0.03694065660238266, 0.06252653896808624, 0.02016717754304409, 0.22637951374053955, 0.089845672249794, 0.30090081691741943, 0.09668193757534027, -0.2566104233264923, 0.08485537022352219, -0.22466591000556946, 0.13427264988422394, -0.5700143575668335, 0.23833055794239044, -0.10812471061944962, -0.5302512049674988, 0.1398993283510208, 0.5346275568008423, -0.13475146889686584, 0.2633165717124939, -0.010923292487859726, -0.31551072001457214, 0.18278025090694427, 0.18914635479450226, -0.04760733246803284, 0.12038318067789078, 0.19584551453590393, 0.25738754868507385, -0.01899094693362713, 0.02339828386902809, -0.2002914845943451, 0.15238702297210693, -0.13090603053569794, 0.24381697177886963, 0.23093974590301514, -0.08897672593593597, 0.1434016078710556, -0.144516259431839, 0.3678421974182129, -0.19471122324466705, 0.33260294795036316, -0.19297954440116882, -0.24584993720054626, -0.20234009623527527, -0.27283430099487305, 0.17746074497699738, 0.014158561825752258, -0.048239536583423615, -0.2429254949092865, -0.013883901759982109, -0.045125801116228104, 0.07733480632305145, 0.1221308708190918, -0.11634819209575653, 0.27568063139915466, -0.006952591240406036, 0.10268963128328323, -0.4535597562789917, -0.02343197539448738, -0.20512810349464417, 0.17764830589294434, 0.005037479102611542, -0.10094282031059265, 0.16537195444107056, -0.2824864983558655, -0.011393573135137558, -0.41145044565200806, -0.3987842798233032, 0.15314434468746185, -0.2570134997367859, -0.17821753025054932, 0.22224751114845276, 0.7760816216468811, -0.1808808445930481, -0.10684937238693237, 0.22034792602062225, -0.31074440479278564, -0.13299456238746643, 0.08504121005535126, -0.2469329982995987, -0.027114463970065117, -0.14791017770767212, -0.04569936543703079, -0.24690796434879303, -0.054439641535282135, 0.006321188993752003, -0.14343076944351196, -0.03313765302300453, 0.01084994524717331, -0.07318065315485, 0.2382524311542511, 0.009679153561592102, -0.02236933633685112, -0.17646439373493195, -0.33803799748420715, 0.44217348098754883, -0.1514669507741928, -0.42798131704330444, 0.14773139357566833, -0.13399380445480347, 0.44142475724220276, 0.10188301652669907, -0.4725303649902344, -0.22441399097442627, -0.07656362652778625, 0.16015353798866272, -0.03375730663537979, 0.0460725799202919, 0.5994672179222107, -0.29071280360221863, 0.14411254227161407, -0.3438049852848053, 0.2465125173330307, -0.12379403412342072, -0.22747229039669037, 0.3126411437988281, -0.18423157930374146, 0.2806171178817749, 0.11962168663740158, 0.4372527599334717, 0.13403624296188354, 0.23358285427093506, 0.1642499715089798, -0.32732659578323364, 0.3505508005619049, -0.0554361566901207, -0.1419946253299713, 0.33574241399765015, 0.05690662935376167, 0.3127402365207672, 0.34951406717300415, 0.08046314120292664, -0.1397722363471985, -0.18953922390937805, -0.13854888081550598, -0.3253611922264099, -0.03609349578619003, 0.005671504884958267, 0.33056333661079407, 0.36021146178245544, -0.06672991812229156, 0.14127960801124573, -0.09586566686630249, -0.2964457869529724, 0.1164373904466629, 0.4351155459880829, 0.18469831347465515, 0.07685841619968414, -0.20161569118499756, 0.04250683635473251, -0.5353744029998779, -0.11995776742696762, -0.07835493236780167, 0.1430700421333313, -0.16109469532966614, 0.21941271424293518, 0.015373967587947845, 0.12390843033790588, 0.5483196973800659, -0.4586714804172516, -0.25113192200660706, -0.1514676809310913, 0.06942438334226608, -0.2658080458641052, 0.15008506178855896, -0.17596149444580078, -0.659841775894165, 0.06332166492938995, 0.5552464127540588, -0.19455651938915253, -0.07611384987831116, 0.467218816280365, 0.11090712994337082, -0.24049381911754608, -0.32761150598526, -0.2175738364458084, -0.5198202133178711, -0.05980594828724861, -0.2966896593570709, 0.2284465730190277, 0.15147313475608826, 0.08127447217702866, 0.01864270120859146, -0.10388942062854767, 0.07226766645908356, -0.05594693869352341, 0.12643462419509888, 0.19701847434043884, 0.20996353030204773, -0.1462201029062271, 0.3026449382305145, 0.14114508032798767, 0.022879568859934807, 0.18729248642921448, -0.11131715774536133, -0.26681870222091675, -0.08939200639724731, -0.11488200724124908, 0.3527824878692627, -0.02935802936553955, -0.04289810359477997, 0.15967383980751038, 0.10222353041172028, 0.16110755503177643, -0.15563233196735382, 0.1408911943435669, 0.4840657711029053, 0.03064325451850891, -0.3259812891483307, -0.21976232528686523, 0.3390572965145111, 0.031010009348392487, 0.27723291516304016, 0.31946659088134766, 0.6091133952140808, -0.21987271308898926, -0.0713716670870781, 0.08826427161693573, 0.6027920246124268, -0.08084985613822937, 0.21506798267364502, 0.6387686133384705, 0.1078479140996933, 0.5061593055725098, -0.1738472580909729, 0.08137550950050354, -0.1399826556444168, -0.2035207748413086, -0.20881330966949463, 0.11789318919181824, 0.15353581309318542, -0.13638406991958618, -0.13807564973831177, 0.23020273447036743, 0.19454048573970795, 0.6590550541877747, 0.21122631430625916, 0.020619265735149384, 0.19810782372951508, -0.3410155177116394, 0.0037911105901002884, 0.05099970102310181, -0.1828630268573761, 0.22894588112831116, -0.18159054219722748, 0.027427133172750473, 0.10957314074039459, -0.0521215982735157, -0.3887442350387573, -0.046769216656684875, -0.30280035734176636, 0.08372333645820618, 0.2496717870235443, -0.42804718017578125, 0.026097983121871948, 0.5828901529312134, 0.2919088900089264, 0.07495208084583282, -0.45882871747016907, 0.33919450640678406, -0.28997209668159485, -0.16977889835834503, -0.10526028275489807, -0.01870354637503624, 0.1468978226184845, -0.36073142290115356, -0.25699689984321594, 0.08878372609615326, -0.1979541778564453, 0.11236055940389633, -0.546831488609314, -0.13296478986740112, -0.23188892006874084, -0.139421746134758, -0.20195789635181427, 0.028668895363807678, 0.20513123273849487, -0.17045825719833374, 0.10363612323999405, -0.23408327996730804, 0.031170763075351715, 0.0023115072399377823, -0.014566246420145035, 0.11511681973934174, -0.046586424112319946, -0.008806489408016205, 0.1513921320438385, -0.10768657922744751, 0.5726296305656433, 0.22791337966918945, -0.20196226239204407, -0.20966950058937073, 0.15864841639995575, 0.32356593012809753, -0.11135142296552658, -0.22328715026378632, 0.34075284004211426, 0.06367814540863037, -0.2243642359972, 0.40845581889152527, 0.05452894791960716, -0.3415662944316864, -0.09597159922122955, -0.259924054145813, -0.32987886667251587, 0.2840155363082886, -0.0095754349604249, 0.08503350615501404, -0.04575824737548828, 0.3730970025062561, 0.03901280462741852, -0.006416322663426399, -0.2616870403289795, 0.053433917462825775, -0.15295013785362244, -0.07016393542289734, 0.116212859749794, -0.0758843868970871, 0.21011507511138916, -0.06202724575996399, 0.06462345272302628, 0.0621432363986969, 0.1470191478729248, -0.17995475232601166, -0.16120761632919312, 0.09714356064796448, 0.13252469897270203, 0.08198124915361404, 0.11575490981340408, 0.07765381783246994, -0.30333060026168823, -0.037734292447566986, 0.239212304353714, -0.06503520160913467, 0.12423552572727203, 0.4137265384197235, 0.2629143297672272, 0.10066293179988861, -0.40237629413604736, 0.07083253562450409, 0.04593964293599129, 0.05029239505529404, -0.07668649405241013, -0.01752479188144207, 0.37828734517097473, 0.0034459754824638367, 0.36445119976997375, 0.1347179263830185, -0.026364609599113464, -0.01052145566791296, 0.4533819258213043, -0.07181303203105927, 0.19054263830184937, -0.012927088886499405, 0.0046086981892585754, -0.13904422521591187, -0.15042656660079956, 0.2139180600643158, 0.18376846611499786, 0.17914322018623352, -0.3440065383911133, -0.016562381759285927, 0.6128947734832764, 0.21533386409282684, 0.054735198616981506, 0.0826411321759224, 0.012405067682266235, -0.21250876784324646, -0.08215762674808502, -0.06222712621092796, 0.3721992075443268, -0.249494731426239, 0.11695466190576553, 0.2945455312728882, 0.1688922643661499, -0.056990258395671844, -0.1070457473397255, 0.055077675729990005, -0.11661936342716217, 0.012453139759600163, 0.15521907806396484, 0.15467263758182526, -0.3471730649471283, 0.08961173892021179, 0.3072938919067383, -0.21042798459529877, -0.17486032843589783, -0.184770405292511, -0.1456417441368103, 0.007128814235329628, -0.28430068492889404, 0.12264113128185272, 0.2596563994884491, -0.17603746056556702, -0.11469602584838867, 0.28977423906326294, -0.42255839705467224, -0.036537185311317444, -0.5136739015579224, -0.09495654702186584, 0.4643172025680542, -0.01159995049238205, 0.21846893429756165, -0.07012039422988892, -0.29753679037094116, 0.035833798348903656, -0.13051949441432953, 0.06328962743282318, -0.13090702891349792, 0.3346390128135681, 0.24438238143920898, 0.09629189968109131, 0.16498751938343048, 0.5131890177726746, -0.0827159583568573, -0.06531406939029694, 0.14177900552749634, 0.15402212738990784, -0.13016128540039062, 0.20385748147964478, 0.04238823428750038, -0.08684079349040985, -0.21273083984851837, 0.124275803565979, 0.16564127802848816, 0.3661210834980011, 0.07145243883132935, 0.20313337445259094, 0.09163045883178711, -0.16078557074069977, 0.17271161079406738, -0.3102754056453705, 0.06273680180311203, -0.25258442759513855, -0.43148964643478394, -0.4790426194667816, -0.3664102554321289, -0.3255727291107178, 0.07009115815162659, -0.36678895354270935, 0.43938159942626953, 0.3142424523830414, 0.15225279331207275, 0.049620792269706726, 0.012073572725057602, 0.04081827774643898, -0.05656077340245247, 0.5336553454399109, 0.37532326579093933, 0.06522715091705322, -0.06319783627986908, -0.5100795030593872, -0.460411012172699, 0.14064250886440277, -0.3310750722885132, -0.28096020221710205, 0.3991977274417877, 0.012189887464046478, 0.22461837530136108, -0.11209746450185776, 0.07124021649360657, 0.1818883866071701, -0.06115110591053963, -0.08496540784835815, -0.36260831356048584, -0.32412275671958923, -0.21028822660446167, 0.15752021968364716, -0.07810086011886597, 0.09945604205131531, 0.33387306332588196, 0.23367080092430115, 0.04445523023605347, -0.05498524755239487, 0.5272191166877747, -0.2992136478424072, -0.2561641335487366, -0.25946545600891113, 0.17922981083393097, 0.42752695083618164, -0.20123210549354553, 0.12524740397930145, 0.006484406068921089, -0.05520808324217796, -0.21333527565002441, 0.20918415486812592, -0.04205010458827019, 0.268984317779541, -0.0863778293132782, -0.38956162333488464, -0.04167315363883972, 0.08302326500415802, 0.22974808514118195, 0.11482575535774231, -0.25214001536369324, 0.15607453882694244, 0.291084349155426, -0.16613280773162842, 0.5159579515457153, 0.23524349927902222, -0.3428995907306671, -0.14565584063529968, -0.1788380742073059, -0.42967259883880615, 0.38565897941589355, -0.3516278564929962, -0.07092919945716858, -0.11475060880184174, -0.32484763860702515, 0.1656799167394638, 0.17176884412765503, -0.6097329258918762, -0.08521192520856857, 0.2544310390949249, -0.030087748542428017, -0.11701162159442902, 0.2773386538028717, 0.20036686956882477, 0.13672757148742676, 0.013196185231208801, -0.17793530225753784, 0.0776452049612999, -0.1768997311592102, -0.13117411732673645, -0.14220699667930603 ]
https://github.com/huggingface/datasets/issues/2130
Hi ! Apparently you can get the spans from the NER tags using `tags_to_spans` defined here: https://github.com/tensorflow/datasets/blob/c7096bd38e86ed240b8b2c11ecab9893715a7d55/tensorflow_datasets/text/wikiann/wikiann.py#L81-L126 It would be nice to include the `spans` field in this dataset as in TFDS. This could be a good first issue for new contributors ! The objective is to use `tags_to_spans` in the `_generate_examples` method [here](https://github.com/huggingface/nlp/blob/c98e4b8f23e3770c401c6d9326e243e1ffd599ec/datasets/wikiann/wikiann.py#L292-L316) to create he `spans` for each example.
wikiann dataset is missing columns
Hi Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq
61
wikiann dataset is missing columns Hi Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq Hi ! Apparently you can get the spans from the NER tags using `tags_to_spans` defined here: https://github.com/tensorflow/datasets/blob/c7096bd38e86ed240b8b2c11ecab9893715a7d55/tensorflow_datasets/text/wikiann/wikiann.py#L81-L126 It would be nice to include the `spans` field in this dataset as in TFDS. This could be a good first issue for new contributors ! The objective is to use `tags_to_spans` in the `_generate_examples` method [here](https://github.com/huggingface/nlp/blob/c98e4b8f23e3770c401c6d9326e243e1ffd599ec/datasets/wikiann/wikiann.py#L292-L316) to create he `spans` for each example.
[ 0.009602651000022888, -0.3400488495826721, -0.041671909391880035, 0.2219899445772171, 0.2957081198692322, 0.150640606880188, 0.3469608426094055, 0.038945987820625305, 0.09205052256584167, 0.27537158131599426, 0.04856827110052109, -0.04506586492061615, -0.008062705397605896, 0.36324504017829895, 0.3476262390613556, -0.7035680413246155, 0.031178390607237816, 0.27755773067474365, -0.1697651445865631, 0.012546733021736145, -0.23864558339118958, 0.43506792187690735, -0.3131060004234314, -0.15725141763687134, -0.44279608130455017, -0.017623355612158775, -0.25857365131378174, -0.08876518905162811, -0.00006215646862983704, -0.20985662937164307, 0.33938008546829224, -0.22864440083503723, 0.25722169876098633, -0.11119119822978973, -0.00011277017620159313, 0.01356661319732666, 0.06150534749031067, -0.07877115160226822, 0.04537277668714523, -0.0841391533613205, 0.09221810847520828, -0.25785496830940247, -0.034837085753679276, -0.2561397850513458, -0.32840487360954285, -0.07539492845535278, -0.15175913274288177, 0.09517436474561691, -0.02475050836801529, 0.21802696585655212, 0.1504639983177185, 0.7661396861076355, 0.16678272187709808, -0.07798611372709274, 0.30549412965774536, -0.11181173473596573, -0.3342805504798889, -0.2091900110244751, 0.15715578198432922, -0.15022900700569153, 0.06483529508113861, 0.41551363468170166, 0.17557181417942047, -0.21078184247016907, 0.38252148032188416, 0.31272652745246887, -0.36832037568092346, -0.4562545418739319, 0.0013715699315071106, 0.7677554488182068, 0.43281030654907227, 0.00563533091917634, -0.026445262134075165, -0.4336349666118622, 0.010529469698667526, -0.09540443122386932, 0.02164401486515999, 0.10075702518224716, -0.12407105416059494, 0.21779672801494598, -0.034652888774871826, -0.06193878874182701, -0.22477219998836517, 0.17988668382167816, -0.2414660006761551, 0.2327043116092682, 0.04052925482392311, -0.048533711582422256, 0.08541244268417358, -0.02048124559223652, -0.22475822269916534, 0.1801459789276123, 0.1715923249721527, 0.12540534138679504, -0.42942753434181213, -0.03373932093381882, -0.018105775117874146, 0.36020028591156006, 0.21007774770259857, 0.050382647663354874, -0.06406053900718689, -0.26284170150756836, 0.056887656450271606, 0.12702041864395142, -0.15558400750160217, 0.05230533704161644, 0.00830327719449997, 0.13693004846572876, -0.04629559442400932, 0.2109604775905609, 0.08361125737428665, -0.18559564650058746, -0.05992826074361801, 0.09711243957281113, -0.30022305250167847, -0.30539727210998535, -0.14328782260417938, 0.04348994046449661, 0.004230335354804993, 0.19453038275241852, 0.06943030655384064, 0.10055642575025558, 0.013435650616884232, 0.29389408230781555, -0.027505656704306602, 0.4606286883354187, -0.07735899090766907, 0.21489021182060242, 0.025565750896930695, -0.08539162576198578, -0.36431512236595154, 0.1905198097229004, 0.024006076157093048, 0.18098583817481995, 0.253969669342041, -0.32565003633499146, 0.47102120518684387, -0.03902507573366165, -0.04346787557005882, 0.15705639123916626, -0.05261038988828659, 0.09930862486362457, -0.1652284860610962, 0.439503014087677, -0.03499830886721611, 0.08344247192144394, 0.16978555917739868, -0.10758668929338455, -0.06633216887712479, -0.054829686880111694, -0.216623455286026, -0.00409737229347229, -0.24548755586147308, 0.14365746080875397, -0.1251898854970932, -0.2313670516014099, -0.037250567227602005, 0.2354414463043213, 0.10805004835128784, -0.2084844708442688, 0.07123886048793793, 0.02489043027162552, -0.31702470779418945, -0.16831475496292114, 0.5056076645851135, 0.039922017604112625, -0.3781883418560028, -0.3986585736274719, 0.29392337799072266, -0.17543110251426697, 0.15525959432125092, 0.2094493806362152, 0.08469541370868683, 0.11716869473457336, -0.12442290782928467, 0.6250927448272705, 0.19583189487457275, -0.2356545478105545, -0.10094865411520004, -0.1965230405330658, 0.18298958241939545, 0.27256613969802856, 0.023527994751930237, -0.012019459158182144, 0.4229518473148346, 0.14255261421203613, -0.04571741819381714, 0.33679836988449097, -0.20824450254440308, -0.06570111960172653, -0.1000480055809021, -0.1101306825876236, 0.21906904876232147, 0.17819096148014069, 0.1841685175895691, 0.1768699288368225, -0.24323312938213348, 0.20721735060214996, 0.15695495903491974, -0.302596777677536, 0.1999223530292511, 0.28256621956825256, 0.022987347096204758, 0.2774750888347626, 0.11824674904346466, -0.2388511449098587, -0.6610703468322754, 0.21676166355609894, -0.0592285618185997, 0.47197476029396057, 0.29869329929351807, -0.20567983388900757, -0.1835254579782486, -0.13109977543354034, 0.00691456301137805, -0.36161115765571594, 0.10885544866323471, -0.04476587474346161, 0.07056688517332077, 0.28407442569732666, -0.24497535824775696, -0.12019911408424377, -0.47149649262428284, 0.24849195778369904, -0.5372622013092041, 0.3105762004852295, -0.07961024343967438, 0.06255249679088593, -0.030480701476335526, 0.4805232882499695, -0.02851552516222, 0.009729307144880295, 0.18637926876544952, 0.004397425800561905, -0.208927720785141, 0.2935679852962494, -0.1489439606666565, 0.38896021246910095, 0.21401968598365784, -0.34478798508644104, -0.1804741770029068, -0.09576524794101715, -0.07770048081874847, -0.28837326169013977, -0.020981892943382263, 0.28863388299942017, 0.08698515594005585, 0.4630934000015259, 0.12348147481679916, 0.3386545777320862, -0.010827198624610901, -0.1775800585746765, -0.019386671483516693, -0.2788068652153015, 0.14965644478797913, -0.5367223620414734, 0.13657185435295105, -0.0645935907959938, -0.41960573196411133, 0.20428141951560974, 0.42797550559043884, 0.06335081160068512, 0.07185932993888855, 0.06587052345275879, -0.4009690582752228, 0.10180714726448059, 0.03278592973947525, 0.04923200607299805, 0.19753047823905945, 0.1843510866165161, 0.37157100439071655, 0.09238998591899872, -0.059071287512779236, -0.20550721883773804, 0.2382936328649521, -0.00010052882134914398, 0.13137224316596985, 0.22001779079437256, -0.0017094463109970093, 0.059787292033433914, -0.1700550615787506, 0.17339898645877838, -0.24986356496810913, 0.395041286945343, -0.36635708808898926, -0.04389282315969467, -0.14368140697479248, -0.29028093814849854, 0.02887510508298874, -0.08730483800172806, -0.14152202010154724, -0.4789790213108063, 0.03467148542404175, -0.034824855625629425, 0.04013592749834061, 0.17122653126716614, -0.13274984061717987, 0.24576961994171143, -0.11718101054430008, 0.14246876537799835, -0.4899621307849884, -0.1282465159893036, -0.17699892818927765, 0.14871349930763245, -0.049628376960754395, -0.015269946306943893, 0.08342494070529938, -0.2558935284614563, 0.0606294721364975, -0.28671735525131226, -0.5384837985038757, 0.15358220040798187, -0.2546754777431488, -0.027770182117819786, 0.27477607131004333, 0.6557902693748474, -0.2294672578573227, -0.2044857293367386, 0.2566317021846771, -0.3007086515426636, -0.17790696024894714, 0.10821711272001266, -0.263954758644104, 0.151525616645813, -0.25195592641830444, -0.2615917921066284, -0.28218507766723633, -0.2204405814409256, 0.16460014879703522, -0.09157709032297134, -0.012905865907669067, 0.23661315441131592, -0.08780449628829956, 0.28313398361206055, -0.16922953724861145, 0.0539388433098793, -0.14250272512435913, -0.23120641708374023, 0.4616047441959381, -0.28541111946105957, -0.2608579099178314, 0.08070001006126404, -0.30579593777656555, 0.5293773412704468, 0.06934920698404312, -0.3885038197040558, -0.140901580452919, 0.13901358842849731, 0.18035422265529633, 0.07909487932920456, 0.012541761621832848, 0.45698249340057373, -0.34025368094444275, 0.1417892426252365, -0.3257480263710022, 0.31693801283836365, -0.023482751101255417, -0.27084335684776306, 0.14274565875530243, -0.15911124646663666, 0.1861768364906311, 0.10964135825634003, 0.28823429346084595, 0.2257869839668274, 0.05384204909205437, 0.2514749765396118, -0.4117175340652466, 0.2570098042488098, 0.04979020357131958, -0.10213854163885117, 0.3323717713356018, -0.02468077838420868, 0.3655770421028137, 0.33983173966407776, 0.10390248894691467, -0.030445683747529984, -0.12059924006462097, -0.0682409480214119, -0.24168184399604797, -0.14906536042690277, 0.05895809084177017, 0.23877781629562378, 0.38361892104148865, -0.06718699634075165, -0.04128465801477432, -0.011101000010967255, -0.33374714851379395, 0.025843877345323563, 0.28590959310531616, 0.23061679303646088, 0.08823860436677933, -0.2942483425140381, 0.16086755692958832, -0.49552515149116516, -0.12716206908226013, -0.035528507083654404, 0.10208061337471008, -0.09381945431232452, -0.03588680177927017, 0.010350096970796585, 0.1439751386642456, 0.6889342069625854, -0.4194599390029907, -0.4454326331615448, -0.1986944079399109, 0.18266406655311584, -0.4102359116077423, 0.1526099443435669, -0.15780654549598694, -0.6618088483810425, 0.18695512413978577, 0.5838924646377563, -0.22888313233852386, -0.036923401057720184, 0.46109339594841003, 0.2755674123764038, -0.17453688383102417, -0.1738998293876648, -0.21414893865585327, -0.3961092233657837, -0.24897930026054382, -0.3374047875404358, 0.16748693585395813, 0.2511647343635559, -0.10506263375282288, -0.0483422726392746, 0.030932189896702766, 0.1877811849117279, 0.055779557675123215, 0.16097424924373627, 0.29172348976135254, -0.02026219107210636, -0.005404472351074219, 0.2812899053096771, 0.04750191047787666, 0.009625772014260292, 0.34080764651298523, -0.1727464646100998, -0.3893278241157532, 0.01651443913578987, -0.048098158091306686, 0.37334150075912476, -0.012024663388729095, -0.005497783422470093, 0.22150659561157227, 0.1800396740436554, 0.11335697770118713, -0.22928723692893982, 0.25508248805999756, 0.4812561869621277, -0.06788824498653412, -0.036929793655872345, -0.219056636095047, 0.39813196659088135, 0.1039307713508606, 0.28932493925094604, 0.21702469885349274, 0.5756610631942749, -0.2040620744228363, -0.008824490010738373, 0.004337925463914871, 0.6888934373855591, 0.04317157715559006, 0.26044607162475586, 0.6488652229309082, 0.13008251786231995, 0.6366935968399048, -0.1697510927915573, -0.024728214368224144, -0.32526522874832153, -0.19089804589748383, -0.13088661432266235, 0.04931078851222992, 0.14112593233585358, -0.05476303771138191, -0.19426383078098297, 0.17373131215572357, 0.23983609676361084, 0.6364043354988098, 0.129454106092453, 0.013268806040287018, -0.004481414332985878, -0.4697112441062927, 0.03512183204293251, 0.042562998831272125, -0.17344769835472107, 0.2748548686504364, -0.0885680764913559, 0.05302362143993378, -0.059769295156002045, -0.17428457736968994, -0.303494930267334, 0.12091559171676636, -0.16968733072280884, -0.05434558540582657, 0.4672955572605133, -0.2665228843688965, 0.08880014717578888, 0.5696345567703247, 0.2888651490211487, -0.05741864815354347, -0.4292490482330322, 0.31642818450927734, -0.34402012825012207, -0.13219894468784332, 0.16899721324443817, -0.0002475269138813019, 0.302666574716568, -0.2705130875110626, -0.23580977320671082, -0.001253494992852211, -0.058109380304813385, 0.2543415129184723, -0.4965277910232544, -0.20708388090133667, -0.28272199630737305, -0.10589788854122162, -0.07925032079219818, 0.16333076357841492, 0.19624711573123932, -0.2985828220844269, 0.11023084819316864, -0.16912229359149933, -0.13285291194915771, -0.04372381791472435, -0.07695139944553375, 0.1435173898935318, -0.01325383223593235, -0.023326046764850616, 0.08211353421211243, -0.218397319316864, 0.4074656665325165, 0.35452380776405334, -0.2506158947944641, -0.10428355634212494, 0.040861114859580994, 0.3909342288970947, -0.4255092740058899, -0.18308928608894348, 0.37780487537384033, 0.12318813800811768, -0.19357769191265106, 0.4957162141799927, -0.083309605717659, -0.2612078785896301, -0.09199721366167068, -0.2706173360347748, -0.3745498061180115, 0.3178090453147888, 0.0038882149383425713, 0.15838652849197388, -0.19754086434841156, 0.35795482993125916, 0.000427834689617157, 0.10562785714864731, -0.2790940999984741, -0.014235738664865494, -0.16627615690231323, 0.008316053077578545, 0.17825695872306824, -0.10545579344034195, 0.28390395641326904, 0.03248271718621254, 0.030768588185310364, 0.1814555823802948, 0.08522216975688934, -0.12575995922088623, -0.27367210388183594, 0.09761153161525726, 0.139945849776268, 0.13974016904830933, 0.03731971234083176, 0.3310205936431885, -0.23304618895053864, -0.18232691287994385, 0.2809218466281891, -0.08356239646673203, 0.06443698704242706, 0.3747584819793701, 0.13354316353797913, 0.22563758492469788, -0.16484981775283813, 0.07780855894088745, 0.060314394533634186, 0.10512003302574158, 0.048609066754579544, 0.045104559510946274, 0.11130654066801071, -0.033451713621616364, 0.16791637241840363, 0.2166939675807953, -0.028396591544151306, -0.029992666095495224, 0.3547177314758301, 0.013024640269577503, 0.04533571004867554, -0.11040935665369034, 0.1945459395647049, -0.2014463245868683, -0.04225953668355942, 0.31116122007369995, 0.18114876747131348, 0.15378880500793457, -0.2879522144794464, 0.0950944721698761, 0.5618880391120911, 0.009156636893749237, 0.166035994887352, 0.2860010862350464, 0.21871215105056763, -0.13946831226348877, -0.26006707549095154, -0.13602891564369202, 0.3661946654319763, -0.257371723651886, 0.05484087020158768, 0.37161415815353394, 0.07976548373699188, -0.022190973162651062, -0.039551980793476105, -0.0004071798175573349, 0.04101406782865524, -0.028788380324840546, 0.05011683702468872, 0.31031256914138794, -0.5167757272720337, -0.016504285857081413, 0.41400396823883057, -0.26519376039505005, -0.202897310256958, -0.10844506323337555, -0.06898380815982819, -0.022491242736577988, -0.3505365252494812, 0.30231595039367676, 0.30138665437698364, -0.14376389980316162, -0.1384693682193756, 0.39035898447036743, -0.30282163619995117, -0.11240395158529282, -0.5327315926551819, -0.17585110664367676, 0.16970054805278778, -0.11446966975927353, 0.28997039794921875, -0.09803465008735657, -0.1407260298728943, -0.0042727068066596985, -0.023149896413087845, 0.04542706906795502, -0.14446520805358887, 0.2635335326194763, 0.17231835424900055, 0.044060975313186646, 0.13369451463222504, 0.48793232440948486, 0.001955777406692505, -0.1372494399547577, 0.04694477468729019, 0.22968095541000366, -0.18723107874393463, 0.26906540989875793, 0.08053018152713776, -0.08104713261127472, -0.14503997564315796, 0.1178017109632492, 0.23520119488239288, 0.36595141887664795, 0.0038215741515159607, 0.2268042415380478, 0.005057662725448608, -0.16073600947856903, 0.06905554980039597, -0.1922186315059662, 0.07959061861038208, -0.1604684442281723, -0.10129712522029877, -0.35626864433288574, -0.28141239285469055, -0.3153088092803955, 0.10102616250514984, -0.4224942624568939, 0.32079261541366577, 0.3138854205608368, 0.06360724568367004, 0.0019105114042758942, -0.01689298264682293, 0.04477715492248535, -0.04985831677913666, 0.5095523595809937, 0.28078505396842957, 0.2484707236289978, -0.15665572881698608, -0.472202867269516, -0.512825071811676, 0.12909531593322754, -0.2937473952770233, -0.13785973191261292, 0.2778896391391754, 0.07129272818565369, 0.14935152232646942, 0.008082825690507889, -0.12777355313301086, 0.14973771572113037, 0.035192593932151794, -0.026197519153356552, -0.3916727304458618, -0.38917064666748047, -0.28486546874046326, -0.05681018903851509, -0.0499064177274704, 0.279998242855072, 0.18067339062690735, 0.1084945797920227, -0.029675167053937912, -0.10627244412899017, 0.5135324001312256, -0.1903238594532013, -0.2412336766719818, -0.24464260041713715, 0.012044092640280724, 0.4205494523048401, -0.16206879913806915, -0.0037236660718917847, -0.04368361830711365, -0.10162252187728882, -0.23804181814193726, 0.16571545600891113, -0.12775593996047974, 0.4387221336364746, -0.015188749879598618, -0.47704777121543884, -0.08129516243934631, -0.01444438099861145, 0.3587682247161865, -0.09192286431789398, -0.2852698266506195, 0.26985782384872437, 0.13011205196380615, 0.022634755820035934, 0.4985995590686798, 0.2061762660741806, -0.145575612783432, -0.03135444223880768, -0.03725589066743851, -0.5985198616981506, 0.49532222747802734, -0.1852772831916809, 0.00623660534620285, -0.16105777025222778, -0.29581791162490845, 0.23547697067260742, 0.11173928529024124, -0.8591642379760742, -0.06856579333543777, 0.28833651542663574, -0.0015766890719532967, 0.06519690155982971, 0.2277214229106903, 0.17332236468791962, 0.06473508477210999, -0.07278263568878174, -0.4401547908782959, 0.0614166259765625, 0.016477763652801514, 0.030113548040390015, -0.10974015295505524 ]
https://github.com/huggingface/datasets/issues/2130
Hi @lhoestq thank you very much for the help, it would be very nice to have it included, here is the full code, one need to also convert tags to string first: ``` import datasets from datasets import load_dataset def tags_to_spans(tags): """Convert tags to spans.""" spans = set() span_start = 0 span_end = 0 active_conll_tag = None for index, string_tag in enumerate(tags): # Actual BIO tag. bio_tag = string_tag[0] assert bio_tag in ["B", "I", "O"], "Invalid Tag" conll_tag = string_tag[2:] if bio_tag == "O": # The span has ended. if active_conll_tag: spans.add((active_conll_tag, (span_start, span_end))) active_conll_tag = None # We don't care about tags we are # told to ignore, so we do nothing. continue elif bio_tag == "B": # We are entering a new span; reset indices and active tag to new span. if active_conll_tag: spans.add((active_conll_tag, (span_start, span_end))) active_conll_tag = conll_tag span_start = index span_end = index elif bio_tag == "I" and conll_tag == active_conll_tag: # We're inside a span. span_end += 1 else: # This is the case the bio label is an "I", but either: # 1) the span hasn't started - i.e. an ill formed span. # 2) We have IOB1 tagging scheme. # We'll process the previous span if it exists, but also include this # span. This is important, because otherwise, a model may get a perfect # F1 score whilst still including false positive ill-formed spans. if active_conll_tag: spans.add((active_conll_tag, (span_start, span_end))) active_conll_tag = conll_tag span_start = index span_end = index # Last token might have been a part of a valid span. if active_conll_tag: spans.add((active_conll_tag, (span_start, span_end))) # Return sorted list of spans return sorted(list(spans), key=lambda x: x[1][0]) dataset = load_dataset('wikiann', 'en', split="train") ner_tags = { 0:"O", 1:"B-PER", 2:"I-PER", 3:"B-ORG", 4:"I-ORG", 5:"B-LOC", 6:"I-LOC" } def get_spans(tokens, tags): """Convert tags to textspans.""" spans = tags_to_spans(tags) text_spans = [ x[0] + ": " + " ".join([tokens[i] for i in range(x[1][0], x[1][1] + 1)]) for x in spans ] if not text_spans: text_spans = ["None"] return text_spans for i, d in enumerate(dataset): tokens = d['tokens'] tags = d['ner_tags'] tags = [ner_tags[i] for i in tags] spans = get_spans(tokens, tags) print("spans ", spans) print(d) if i > 10: break; ``` I am not sure how to contribute to the repository and how things work, could you let me know how one can access the datasets to be able to contribute to the repository? Maybe I could do it then thanks
wikiann dataset is missing columns
Hi Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq
402
wikiann dataset is missing columns Hi Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq Hi @lhoestq thank you very much for the help, it would be very nice to have it included, here is the full code, one need to also convert tags to string first: ``` import datasets from datasets import load_dataset def tags_to_spans(tags): """Convert tags to spans.""" spans = set() span_start = 0 span_end = 0 active_conll_tag = None for index, string_tag in enumerate(tags): # Actual BIO tag. bio_tag = string_tag[0] assert bio_tag in ["B", "I", "O"], "Invalid Tag" conll_tag = string_tag[2:] if bio_tag == "O": # The span has ended. if active_conll_tag: spans.add((active_conll_tag, (span_start, span_end))) active_conll_tag = None # We don't care about tags we are # told to ignore, so we do nothing. continue elif bio_tag == "B": # We are entering a new span; reset indices and active tag to new span. if active_conll_tag: spans.add((active_conll_tag, (span_start, span_end))) active_conll_tag = conll_tag span_start = index span_end = index elif bio_tag == "I" and conll_tag == active_conll_tag: # We're inside a span. span_end += 1 else: # This is the case the bio label is an "I", but either: # 1) the span hasn't started - i.e. an ill formed span. # 2) We have IOB1 tagging scheme. # We'll process the previous span if it exists, but also include this # span. This is important, because otherwise, a model may get a perfect # F1 score whilst still including false positive ill-formed spans. if active_conll_tag: spans.add((active_conll_tag, (span_start, span_end))) active_conll_tag = conll_tag span_start = index span_end = index # Last token might have been a part of a valid span. if active_conll_tag: spans.add((active_conll_tag, (span_start, span_end))) # Return sorted list of spans return sorted(list(spans), key=lambda x: x[1][0]) dataset = load_dataset('wikiann', 'en', split="train") ner_tags = { 0:"O", 1:"B-PER", 2:"I-PER", 3:"B-ORG", 4:"I-ORG", 5:"B-LOC", 6:"I-LOC" } def get_spans(tokens, tags): """Convert tags to textspans.""" spans = tags_to_spans(tags) text_spans = [ x[0] + ": " + " ".join([tokens[i] for i in range(x[1][0], x[1][1] + 1)]) for x in spans ] if not text_spans: text_spans = ["None"] return text_spans for i, d in enumerate(dataset): tokens = d['tokens'] tags = d['ner_tags'] tags = [ner_tags[i] for i in tags] spans = get_spans(tokens, tags) print("spans ", spans) print(d) if i > 10: break; ``` I am not sure how to contribute to the repository and how things work, could you let me know how one can access the datasets to be able to contribute to the repository? Maybe I could do it then thanks
[ 0.05446961522102356, -0.3270135521888733, -0.040390145033597946, 0.13263124227523804, 0.2911990284919739, 0.24517282843589783, 0.4067167043685913, 0.10093837231397629, 0.38283032178878784, 0.15561634302139282, -0.04467988759279251, -0.21783441305160522, 0.022737957537174225, 0.5038778781890869, 0.3199462294578552, -0.5506709218025208, 0.17874306440353394, 0.28364628553390503, 0.027295565232634544, -0.17172987759113312, -0.33737796545028687, 0.4151012897491455, -0.37470948696136475, -0.09135904908180237, -0.4198637902736664, -0.05216175317764282, -0.1558329313993454, 0.058462951332330704, -0.2034340649843216, -0.40340185165405273, 0.32941165566444397, -0.2170117199420929, 0.3202047646045685, -0.11546748876571655, -0.00011254104902036488, -0.10203161090612411, 0.11461429297924042, -0.07412803173065186, -0.03522714972496033, 0.10291274636983871, -0.0024705007672309875, -0.30054107308387756, -0.03223499283194542, -0.267729789018631, -0.29191040992736816, -0.1271563023328781, -0.3608503043651581, -0.08842569589614868, -0.16990609467029572, 0.11736026406288147, 0.15941962599754333, 0.49301230907440186, 0.18727754056453705, -0.021650446578860283, 0.3861587345600128, -0.35974910855293274, -0.20005112886428833, -0.2237432897090912, 0.26820680499076843, -0.16726896166801453, 0.2621862292289734, 0.5828678607940674, -0.06867271661758423, -0.23731261491775513, 0.3806413412094116, 0.18633730709552765, -0.09650127589702606, -0.3542982339859009, 0.14783993363380432, 0.4884111285209656, 0.46842530369758606, -0.106514573097229, -0.14495253562927246, -0.28834787011146545, 0.06576639413833618, -0.3216189742088318, 0.038179632276296616, 0.10771847516298294, 0.04943876340985298, 0.27377891540527344, -0.020107915624976158, 0.02797842025756836, -0.04240545630455017, 0.050881966948509216, -0.21027152240276337, 0.505511999130249, 0.012265074998140335, -0.0037945248186588287, 0.02703777328133583, 0.05421724170446396, -0.26723265647888184, 0.060403671115636826, -0.00023950636386871338, 0.18083231151103973, -0.4676632583141327, -0.014963500201702118, -0.06378456950187683, 0.7178287506103516, 0.32348695397377014, 0.12789395451545715, -0.26422640681266785, -0.4074227213859558, 0.20402467250823975, 0.06302067637443542, 0.016302447766065598, 0.2194528728723526, 0.017754530534148216, 0.1384577453136444, -0.10934438556432724, 0.24112577736377716, 0.13711073994636536, -0.17188498377799988, 0.12508279085159302, 0.011215545237064362, 0.04796639084815979, -0.09582656621932983, -0.04062044247984886, -0.17611685395240784, -0.19318032264709473, 0.128347247838974, -0.0858132541179657, 0.0573209673166275, 0.1037842258810997, 0.3675774335861206, 0.03578967973589897, 0.40573570132255554, -0.018198005855083466, 0.21093283593654633, 0.0414993092417717, -0.18490199744701385, -0.3456234335899353, 0.17237675189971924, -0.027871131896972656, 0.041209131479263306, 0.2061501294374466, -0.242557555437088, 0.4308028817176819, -0.014154277741909027, -0.1144157350063324, 0.13342821598052979, -0.18529829382896423, -0.1513623595237732, 0.06042376160621643, 0.495155394077301, -0.13008281588554382, 0.20439596474170685, 0.1434561014175415, -0.20344093441963196, -0.0840798020362854, 0.059536661952733994, -0.2339165061712265, 0.020157843828201294, -0.40207964181900024, 0.16643624007701874, -0.11089345812797546, -0.22051271796226501, -0.050651077181100845, 0.10654675960540771, 0.023995546624064445, -0.2974381446838379, 0.11265426874160767, -0.047075629234313965, -0.20155367255210876, -0.03069501742720604, 0.5745875239372253, 0.189859077334404, -0.1930185854434967, -0.4148738384246826, 0.43608108162879944, -0.02636047638952732, 0.2025565803050995, 0.2573501169681549, 0.20174340903759003, 0.17202076315879822, -0.13249728083610535, 0.4924694001674652, 0.013495102524757385, -0.4078327417373657, -0.2425946295261383, -0.34580865502357483, 0.2205599546432495, 0.3580065369606018, 0.1147087812423706, 0.06734423339366913, 0.32216233015060425, 0.025625303387641907, 0.014600565657019615, 0.326365202665329, -0.09762212634086609, -0.020421531051397324, -0.23260611295700073, -0.1400734931230545, 0.23692935705184937, 0.14497452974319458, 0.08885179460048676, 0.024597737938165665, -0.20374520123004913, -0.0059463270008563995, 0.2381317913532257, -0.3163129687309265, 0.17252928018569946, 0.2288784235715866, 0.08282127976417542, 0.27350783348083496, 0.23266994953155518, -0.3583379089832306, -0.5895219445228577, 0.22725042700767517, 0.1954205185174942, 0.25563833117485046, 0.1291145384311676, -0.2900444269180298, -0.3728680908679962, -0.05944715067744255, -0.1254449486732483, -0.3232943117618561, 0.13207918405532837, 0.05307953804731369, 0.008488349616527557, 0.18623241782188416, -0.294843852519989, -0.10740625113248825, -0.23570570349693298, 0.2480613887310028, -0.32083460688591003, 0.2400360256433487, -0.1686609536409378, -0.03281811252236366, 0.07634393125772476, 0.5403305888175964, 0.25653696060180664, 0.18975646793842316, 0.22283372282981873, 0.09163470566272736, -0.14505232870578766, 0.02794981189072132, -0.013079200871288776, 0.32572993636131287, 0.1200421079993248, -0.3045977056026459, -0.19435280561447144, -0.10954348742961884, 0.17001962661743164, -0.20029997825622559, 0.010084128938615322, 0.09647583961486816, -0.08764268457889557, 0.3575112521648407, -0.010302022099494934, 0.226638525724411, 0.1442185491323471, -0.31778383255004883, -0.05870521441102028, -0.23315054178237915, 0.19520244002342224, -0.577738344669342, 0.18493521213531494, -0.16405612230300903, -0.24647611379623413, 0.18137598037719727, 0.4493899345397949, -0.09859629720449448, 0.07811571657657623, -0.16232222318649292, -0.4065583050251007, 0.1908220648765564, 0.09603497385978699, 0.008234798908233643, 0.2017858624458313, 0.24653032422065735, 0.19543150067329407, -0.08712343871593475, -0.023571008816361427, -0.043432533740997314, 0.20002733170986176, -0.014067966490983963, 0.0008673146367073059, 0.2576185464859009, 0.04264944791793823, 0.08363039791584015, -0.1842699646949768, 0.11683891713619232, -0.3363684415817261, 0.23148512840270996, -0.3505462110042572, -0.05406496301293373, -0.09175147116184235, -0.16737760603427887, 0.08898123353719711, -0.40409088134765625, -0.055451005697250366, -0.3870820999145508, 0.12630118429660797, -0.27908068895339966, 0.013931818306446075, 0.20270057022571564, -0.22386983036994934, 0.3222593367099762, -0.08657662570476532, 0.037374839186668396, -0.5950980186462402, -0.18426969647407532, -0.17424017190933228, 0.07432420551776886, -0.10245504230260849, 0.11733551323413849, 0.042895443737506866, -0.41171976923942566, -0.08020847290754318, -0.2833999693393707, -0.44946926832199097, 0.11663267016410828, -0.26665198802948, 0.16250170767307281, 0.3171648383140564, 0.46741312742233276, -0.09208948910236359, -0.15139701962471008, 0.3166525661945343, -0.18664255738258362, -0.03895699232816696, 0.1505759060382843, -0.07905609905719757, 0.019466720521450043, -0.18215690553188324, -0.16317015886306763, -0.3570207953453064, -0.07805995643138885, 0.13310150802135468, -0.01581227034330368, -0.13984911143779755, 0.1193087100982666, -0.08549100905656815, 0.12140336632728577, -0.163345068693161, 0.15511232614517212, -0.18931570649147034, -0.3184945285320282, 0.35730206966400146, -0.0028752535581588745, -0.21223846077919006, 0.0864415243268013, -0.23476004600524902, 0.36108335852622986, -0.09300392121076584, -0.3724883794784546, -0.13309679925441742, 0.23651057481765747, 0.17864926159381866, 0.06816622614860535, 0.08320732414722443, 0.4093669354915619, -0.13399171829223633, 0.13130591809749603, -0.3668014407157898, 0.035303130745887756, -0.18061012029647827, -0.42327219247817993, 0.28406640887260437, -0.3843834400177002, 0.25573229789733887, 0.016464903950691223, 0.19180727005004883, 0.20654772222042084, 0.23428626358509064, 0.29820340871810913, -0.2027376890182495, 0.2933230996131897, -0.08031836152076721, -0.31528639793395996, 0.28669634461402893, -0.1873612254858017, 0.12700232863426208, 0.3359542787075043, 0.05128782242536545, -0.013339465484023094, -0.18115314841270447, -0.13293428719043732, -0.29792988300323486, -0.16390475630760193, -0.007874513044953346, 0.45735275745391846, 0.27527979016304016, -0.04866165667772293, -0.005723409354686737, -0.1397506296634674, -0.18360820412635803, 0.21871185302734375, 0.41276678442955017, 0.24516794085502625, 0.09931069612503052, -0.21736256778240204, 0.0696447491645813, -0.4181898236274719, -0.02874087542295456, 0.03396205976605415, 0.05346905440092087, 0.1074625700712204, -0.04100877419114113, 0.008900906890630722, 0.07779349386692047, 0.39494264125823975, -0.42771509289741516, -0.1420181542634964, -0.08597996085882187, 0.2854675054550171, -0.19880332052707672, 0.03942643851041794, -0.2738187611103058, -0.5508034229278564, 0.2807576358318329, 0.5836248397827148, -0.39039286971092224, -0.0757063627243042, 0.7279965281486511, 0.36084651947021484, -0.07636740803718567, -0.20267002284526825, -0.43036773800849915, -0.4182765781879425, -0.27241620421409607, -0.12231500446796417, 0.32409024238586426, 0.2643379867076874, -0.016725175082683563, -0.04652325436472893, -0.1571272313594818, 0.0003971382975578308, 0.07617245614528656, 0.2137705385684967, 0.32297471165657043, -0.11043548583984375, -0.05618904531002045, 0.2773353159427643, 0.0006000073626637459, 0.005745405331254005, 0.4690232276916504, -0.3493472933769226, -0.5048447251319885, -0.1113383024930954, -0.05125627666711807, 0.47750356793403625, -0.04905107617378235, 0.02555946633219719, 0.17226240038871765, 0.15638084709644318, 0.0661831796169281, -0.24906937777996063, -0.03859315812587738, 0.46470871567726135, 0.14584970474243164, -0.08206281065940857, -0.17977896332740784, 0.4675608277320862, 0.15496908128261566, 0.10916869342327118, 0.2687053680419922, 0.6941239833831787, -0.2821180820465088, 0.13396097719669342, -0.0013891346752643585, 0.8452178239822388, -0.039744097739458084, 0.10423329472541809, 0.40539997816085815, -0.013236142694950104, 0.3032664358615875, 0.028162509202957153, 0.13909763097763062, -0.3000715672969818, -0.2921205163002014, -0.09083676338195801, 0.16666778922080994, 0.14810901880264282, -0.1318238079547882, -0.2458905577659607, 0.27559804916381836, 0.04523618519306183, 0.6778349876403809, 0.07460984587669373, -0.10339580476284027, -0.0017688814550638199, -0.40126538276672363, -0.2720254063606262, 0.08229126781225204, -0.13105300068855286, 0.18440483510494232, -0.2015080451965332, 0.19200286269187927, 0.08722730726003647, -0.2494221180677414, -0.23897242546081543, 0.06371171772480011, -0.2709909677505493, -0.1070006936788559, 0.3383777439594269, -0.31960493326187134, -0.04492879658937454, 0.4351573884487152, 0.2685520350933075, 0.0004196958616375923, -0.2788119912147522, 0.26262757182121277, -0.2549911439418793, -0.09739851951599121, -0.01914946734905243, -0.13521568477153778, 0.3243159055709839, -0.21110238134860992, -0.38433727622032166, 0.09038341045379639, -0.12743346393108368, 0.01822667568922043, -0.2287192940711975, -0.03584130480885506, -0.026998907327651978, -0.22967641055583954, 0.014278687536716461, 0.16403324902057648, 0.39645639061927795, -0.38226696848869324, 0.09318433701992035, -0.14062130451202393, -0.18953552842140198, 0.07791700214147568, -0.08040781319141388, 0.00650806725025177, -0.09411365538835526, 0.03423522412776947, 0.011028992012143135, 0.0023245438933372498, 0.5822213888168335, 0.13555024564266205, -0.320478618144989, -0.1524464190006256, -0.17156681418418884, 0.3862132132053375, -0.26085197925567627, -0.07861091941595078, 0.27447444200515747, -0.08223194628953934, -0.08079659938812256, 0.5901307463645935, 0.16588784754276276, -0.3848468065261841, -0.07333007454872131, -0.44688916206359863, -0.19055500626564026, 0.4615366756916046, 0.05967656150460243, 0.10758112370967865, -0.01564246416091919, 0.25501325726509094, -0.037239979952573776, 0.1408177614212036, -0.33312976360321045, -0.1739228069782257, -0.3433173894882202, 0.09174180030822754, 0.048310790210962296, -0.10853736847639084, 0.2005746066570282, 0.018845148384571075, 0.10406702011823654, 0.04808749258518219, 0.29777297377586365, -0.16657599806785583, -0.22698214650154114, 0.10433463752269745, 0.09975127875804901, 0.25594818592071533, -0.03277158737182617, 0.19960181415081024, -0.16000932455062866, -0.20498886704444885, 0.3374840319156647, 0.018726252019405365, 0.16835199296474457, 0.23054449260234833, 0.18636175990104675, 0.10557270050048828, -0.3049562871456146, -0.02170584350824356, -0.04001545161008835, -0.06648346781730652, -0.018612712621688843, 0.022828083485364914, 0.12780342996120453, 0.05147215723991394, 0.5048710703849792, 0.21363915503025055, 0.08308912068605423, 0.2258836030960083, 0.5083490014076233, -0.09645794332027435, 0.013008810579776764, 0.16354113817214966, 0.14992114901542664, -0.19235634803771973, -0.06790617108345032, 0.18516284227371216, 0.05916936695575714, 0.23194856941699982, -0.4967126250267029, 0.0002573356032371521, 0.47168731689453125, -0.03888951987028122, 0.20346258580684662, 0.24271589517593384, 0.2596533000469208, -0.24996480345726013, -0.14584802091121674, -0.101730115711689, 0.4809443950653076, 0.02828948199748993, -0.026364462450146675, 0.3083888590335846, 0.07846641540527344, -0.06300103664398193, 0.1078329011797905, 0.05113176256418228, 0.11406110227108002, 0.08239580690860748, -0.04221870377659798, 0.3785284757614136, -0.26544463634490967, 0.2412339299917221, 0.06849072873592377, -0.043760109692811966, -0.013946005143225193, -0.17381678521633148, 0.02511829137802124, -0.12822981178760529, -0.32549238204956055, 0.22939613461494446, 0.12027914077043533, -0.1393975019454956, -0.20859363675117493, 0.3673751950263977, -0.2201184183359146, -0.059057094156742096, -0.552048921585083, -0.15040220320224762, 0.183542400598526, -0.2491615116596222, 0.08162637054920197, 0.015316111035645008, 0.07784675061702728, 0.09398476779460907, 0.04067552089691162, -0.0017697252333164215, -0.45346638560295105, 0.3404272198677063, 0.36540091037750244, -0.0818672925233841, 0.17321841418743134, 0.6445075273513794, 0.07518303394317627, -0.03651776537299156, 0.3512728810310364, 0.29517388343811035, 0.023693926632404327, 0.20559459924697876, -0.14917847514152527, -0.1340322196483612, -0.29384106397628784, 0.09074418246746063, 0.31990981101989746, 0.2083318829536438, 0.0336415097117424, 0.17365670204162598, 0.0767550840973854, -0.198158398270607, 0.0633968710899353, -0.22208915650844574, 0.10914934426546097, -0.22794455289840698, -0.2378137707710266, -0.3912310004234314, -0.3179880380630493, -0.46597322821617126, 0.02998228743672371, -0.32824933528900146, 0.3707670569419861, 0.17078304290771484, 0.06951341778039932, 0.03429053723812103, 0.13009388744831085, 0.05934500694274902, 0.1057746484875679, 0.4426102042198181, 0.29828041791915894, 0.08386778831481934, -0.30844101309776306, -0.38198739290237427, -0.5238910913467407, -0.0934581384062767, -0.3235943019390106, -0.4068908989429474, 0.21375684440135956, -0.017783518880605698, 0.15355466306209564, -0.010139194317162037, 0.10172192007303238, 0.3596035838127136, 0.17139306664466858, -0.08091583847999573, -0.42363595962524414, -0.2975744605064392, 0.017413921654224396, -0.05180119350552559, -0.025384925305843353, 0.02513093501329422, 0.21793389320373535, 0.14919382333755493, 0.017382986843585968, 0.11360915005207062, 0.24904461205005646, -0.1416783630847931, -0.2748280465602875, -0.07986476272344589, 0.17482182383537292, 0.5028143525123596, -0.26605305075645447, -0.00491679459810257, -0.03485425189137459, -0.12817975878715515, -0.23218399286270142, 0.14826600253582, -0.046966489404439926, 0.25442856550216675, 0.055397845804691315, -0.31314563751220703, -0.03849998116493225, 0.15614581108093262, 0.34084057807922363, -0.053077466785907745, -0.4521443545818329, 0.19793298840522766, 0.08032844960689545, -0.0011351630091667175, 0.30057039856910706, 0.21091316640377045, -0.16288377344608307, 0.1323050856590271, -0.18462501466274261, -0.5597348809242249, 0.6108745336532593, -0.2102542221546173, -0.11149555444717407, -0.25171858072280884, -0.05120357871055603, 0.3974972367286682, 0.1314939260482788, -0.8236066699028015, 0.01547078788280487, 0.15679846704006195, 0.17457599937915802, -0.07275190949440002, 0.35724321007728577, 0.19743993878364563, 0.15121951699256897, 0.0224468931555748, -0.4629214107990265, 0.20206791162490845, 0.025484196841716766, -0.10141072422266006, -0.047272566705942154 ]
https://github.com/huggingface/datasets/issues/2130
Cool ! Let me give you some context: #### Contribution guide You can find the contribution guide here: https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md It explains how to set up your dev environment in a few steps. #### Dataset loading Each Dataset is defined by a Table that have many rows (one row = one example) and columns (one column = one feature). To change how a dataset is constructed, you have to modify its dataset script that you can find here: https://github.com/huggingface/datasets/blob/master/datasets/wikiann/wikiann.py It includes everything needed to load the WikiANN dataset. You can load locally a modified version of `wikiann.py` with `load_dataset("path/to/wikiann.py")`. #### Define a new column Each column has a name and a type. You can see how the features of WikiANN are defined here: https://github.com/huggingface/datasets/blob/c98e4b8f23e3770c401c6d9326e243e1ffd599ec/datasets/wikiann/wikiann.py#L245-L263 Ideally we would have one additional feature "spans": ```python "spans": datasets.Sequence(datasets.Value("string")), ``` #### Compute the content of each row To build the WikiANN rows, the _generate_examples method from [here](https://github.com/huggingface/nlp/blob/c98e4b8f23e3770c401c6d9326e243e1ffd599ec/datasets/wikiann/wikiann.py#L292-L316) is used. This function `yield` one python dictionary for each example: ```python yield guid_index, {"tokens": tokens, "ner_tags": ner_tags, "langs": langs} ``` The objective would be to return instead something like ```python spans = spans = get_spans(tokens, tags) yield guid_index, {"tokens": tokens, "ner_tags": ner_tags, "langs": langs, "spans": spans} ``` Let me know if you have questions !
wikiann dataset is missing columns
Hi Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq
208
wikiann dataset is missing columns Hi Wikiann dataset needs to have "spans" columns, which is necessary to be able to use this dataset, but this column is missing from huggingface datasets, could you please have a look? thank you @lhoestq Cool ! Let me give you some context: #### Contribution guide You can find the contribution guide here: https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md It explains how to set up your dev environment in a few steps. #### Dataset loading Each Dataset is defined by a Table that have many rows (one row = one example) and columns (one column = one feature). To change how a dataset is constructed, you have to modify its dataset script that you can find here: https://github.com/huggingface/datasets/blob/master/datasets/wikiann/wikiann.py It includes everything needed to load the WikiANN dataset. You can load locally a modified version of `wikiann.py` with `load_dataset("path/to/wikiann.py")`. #### Define a new column Each column has a name and a type. You can see how the features of WikiANN are defined here: https://github.com/huggingface/datasets/blob/c98e4b8f23e3770c401c6d9326e243e1ffd599ec/datasets/wikiann/wikiann.py#L245-L263 Ideally we would have one additional feature "spans": ```python "spans": datasets.Sequence(datasets.Value("string")), ``` #### Compute the content of each row To build the WikiANN rows, the _generate_examples method from [here](https://github.com/huggingface/nlp/blob/c98e4b8f23e3770c401c6d9326e243e1ffd599ec/datasets/wikiann/wikiann.py#L292-L316) is used. This function `yield` one python dictionary for each example: ```python yield guid_index, {"tokens": tokens, "ner_tags": ner_tags, "langs": langs} ``` The objective would be to return instead something like ```python spans = spans = get_spans(tokens, tags) yield guid_index, {"tokens": tokens, "ner_tags": ner_tags, "langs": langs, "spans": spans} ``` Let me know if you have questions !
[ 0.005695268511772156, -0.2647254467010498, -0.040068112313747406, 0.09957078099250793, 0.3907710313796997, 0.10898163914680481, 0.28839385509490967, 0.10415690392255783, 0.013261929154396057, 0.14536990225315094, -0.032858990132808685, -0.012727854773402214, 0.022151149809360504, 0.42865049839019775, 0.26205846667289734, -0.7255475521087646, 0.1374140977859497, 0.2676772475242615, -0.20570193231105804, 0.06458353996276855, -0.32635223865509033, 0.392743319272995, -0.3106454610824585, -0.13212858140468597, -0.3484145402908325, 0.013439362868666649, -0.2690927982330322, 0.12063394486904144, -0.09485088288784027, -0.29264116287231445, 0.34133750200271606, -0.22433067858219147, 0.18518546223640442, -0.09079615771770477, -0.0001031630890793167, -0.019561544060707092, 0.18804799020290375, -0.09336845576763153, -0.11299484968185425, 0.10428573191165924, 0.09639301151037216, -0.3275563716888428, -0.005889087915420532, -0.3028344511985779, -0.3155611753463745, -0.1220749169588089, -0.3141632378101349, -0.07532046735286713, 0.027985017746686935, 0.08260157704353333, 0.2585153579711914, 0.7911584377288818, 0.36712703108787537, -0.13081490993499756, 0.15237340331077576, -0.1912456452846527, -0.29923325777053833, -0.14423125982284546, 0.1775328516960144, -0.14323414862155914, 0.08461329340934753, 0.41011109948158264, -0.06428109854459763, -0.15497161448001862, 0.3905908465385437, 0.15749838948249817, -0.3582746088504791, -0.23135432600975037, 0.19769181311130524, 0.5012366771697998, 0.4747829735279083, -0.13162477314472198, -0.10591607540845871, -0.3632466197013855, 0.0720396637916565, 0.013685144484043121, 0.12308356910943985, 0.13617707788944244, 0.014416463673114777, 0.22543573379516602, -0.058217573910951614, 0.026503387838602066, -0.06939895451068878, 0.11892982572317123, -0.21147552132606506, 0.2074497789144516, -0.10680445283651352, 0.06201435625553131, 0.010615630075335503, -0.06846772134304047, -0.26832062005996704, 0.18023282289505005, -0.049918197095394135, 0.14715546369552612, -0.335683673620224, -0.004959560930728912, 0.038421694189310074, 0.6451608538627625, 0.3114067018032074, 0.1609736829996109, -0.14001518487930298, -0.13138335943222046, 0.12714442610740662, 0.03265369310975075, 0.023020941764116287, 0.12199229001998901, -0.06162210926413536, 0.0901365578174591, -0.10173751413822174, 0.4083091914653778, 0.13030390441417694, -0.2530060410499573, 0.06553645431995392, -0.0008752308785915375, -0.23126335442066193, -0.2843499779701233, 0.026355907320976257, -0.06536394357681274, 0.08672761172056198, 0.020111117511987686, 0.20514972507953644, 0.11499808728694916, 0.0867081880569458, 0.4324636459350586, 0.02142443135380745, 0.415143221616745, -0.09942419081926346, 0.2552134692668915, -0.04156193882226944, -0.13556528091430664, -0.3723389804363251, 0.14534106850624084, -0.018518932163715363, 0.14313259720802307, 0.2540239691734314, -0.2808769941329956, 0.5359508395195007, 0.04143201932311058, 0.03512568026781082, 0.09598969668149948, -0.1034575030207634, 0.09352461993694305, -0.21934591233730316, 0.3652419149875641, -0.07467710971832275, 0.06974300742149353, 0.22299900650978088, 0.00032796710729599, -0.11974477767944336, -0.11450257897377014, -0.14947843551635742, -0.10888253152370453, -0.26685190200805664, 0.22366003692150116, -0.10431577265262604, -0.11337275058031082, -0.08672218024730682, 0.06677772104740143, 0.029100658372044563, -0.31278255581855774, 0.10170242190361023, 0.04855909198522568, -0.09214873611927032, -0.20886778831481934, 0.6047565937042236, 0.1654423475265503, -0.1434137523174286, -0.3574483394622803, 0.272765189409256, -0.08809749782085419, 0.1259169578552246, 0.14657676219940186, 0.07177013903856277, -0.05799577385187149, -0.12176665663719177, 0.3233642578125, -0.033621758222579956, -0.12681466341018677, -0.23493948578834534, -0.17813783884048462, 0.14388999342918396, 0.29433491826057434, 0.11855033040046692, -0.026824556291103363, 0.25243499875068665, 0.02493380755186081, -0.02602411061525345, 0.26778164505958557, -0.05225122720003128, 0.06856760382652283, -0.1652989387512207, -0.25423043966293335, -0.1006452739238739, 0.11496184766292572, 0.007087537553161383, 0.021756963804364204, -0.12432308495044708, 0.07911692559719086, 0.19178122282028198, -0.28242072463035583, 0.2072332799434662, 0.25062665343284607, 0.028380222618579865, 0.3811196982860565, 0.10866080224514008, -0.18137317895889282, -0.5586456060409546, 0.19941461086273193, 0.10364553332328796, 0.218346506357193, 0.10757988691329956, -0.308553546667099, -0.27117258310317993, -0.06109543517231941, -0.15225635468959808, -0.366855651140213, 0.19921082258224487, 0.039829742163419724, 0.24032917618751526, 0.2699040472507477, -0.21061936020851135, 0.01989891566336155, -0.1637936532497406, 0.19986867904663086, -0.5162343978881836, 0.24224039912223816, -0.14438192546367645, 0.11276428401470184, 0.2207106351852417, 0.5053964257240295, 0.10982870310544968, 0.09564772248268127, 0.2538810074329376, 0.2179431915283203, -0.24606911838054657, 0.24434435367584229, -0.09617932140827179, 0.16830065846443176, 0.20362479984760284, -0.2858157157897949, 0.048556335270404816, -0.09389860928058624, 0.12423986941576004, -0.15472085773944855, -0.07268276810646057, 0.38290855288505554, -0.13195544481277466, 0.3680705428123474, 0.06716418266296387, 0.33073434233665466, 0.16896706819534302, -0.23727653920650482, -0.10554993152618408, -0.27224302291870117, 0.10917215049266815, -0.4910505712032318, 0.17735883593559265, -0.1322770118713379, -0.3371237814426422, 0.19535401463508606, 0.2848122715950012, 0.025426894426345825, 0.11829051375389099, -0.20423802733421326, -0.4753549098968506, 0.13897165656089783, 0.18409737944602966, 0.04357990622520447, 0.27434056997299194, 0.30232352018356323, 0.22592097520828247, 0.01365707814693451, -0.07354891300201416, -0.15430860221385956, 0.13651913404464722, 0.011246919631958008, -0.04557681456208229, 0.1225966364145279, 0.013839412480592728, -0.0227478239685297, -0.17495882511138916, 0.17512153089046478, -0.35151514410972595, 0.22647613286972046, -0.2688477635383606, -0.10259413719177246, -0.14799277484416962, -0.18916070461273193, 0.08743634819984436, -0.21975739300251007, -0.08824725449085236, -0.36519408226013184, -0.04173044115304947, -0.11947193741798401, -0.0319996140897274, 0.17057901620864868, -0.2978866398334503, 0.10589029639959335, -0.1315857172012329, -0.001802271232008934, -0.43647998571395874, -0.10451443493366241, -0.14329704642295837, 0.18924453854560852, -0.022321108728647232, 0.05491216108202934, 0.13270072638988495, -0.20951639115810394, 0.006654873490333557, -0.38276973366737366, -0.4155876934528351, 0.0275884997099638, -0.3513260781764984, 0.04885552078485489, 0.3115401566028595, 0.517780065536499, -0.1577761173248291, -0.2482326626777649, 0.4025251865386963, -0.2532044053077698, -0.040060535073280334, 0.13586312532424927, -0.042210422456264496, 0.06606422364711761, -0.16337385773658752, -0.1545829474925995, -0.13759896159172058, -0.22622181475162506, 0.2925011217594147, -0.038533225655555725, -0.13506154716014862, 0.06582709401845932, 0.06755479425191879, 0.21275730431079865, -0.24187016487121582, 0.03389111906290054, -0.213743194937706, -0.301105260848999, 0.36033448576927185, -0.23659446835517883, -0.3118937909603119, 0.11413809657096863, -0.26735472679138184, 0.4330875277519226, 0.005281083285808563, -0.3415948748588562, -0.2719322741031647, 0.07598316669464111, 0.18833595514297485, 0.0712452083826065, 0.12670499086380005, 0.4980591833591461, -0.0780169814825058, 0.04732699692249298, -0.30992060899734497, 0.06941503286361694, -0.1727188378572464, -0.35172656178474426, 0.2287159562110901, -0.2808220386505127, 0.25582611560821533, -0.0000866129994392395, 0.2596423029899597, 0.27168160676956177, 0.38245993852615356, 0.3410159945487976, -0.2625610828399658, 0.42412176728248596, -0.08693008124828339, -0.21079841256141663, 0.3139960765838623, -0.22130869328975677, 0.3367096781730652, 0.37568506598472595, 0.23359155654907227, 0.015864556655287743, -0.20659729838371277, -0.28528928756713867, -0.28031760454177856, -0.21219338476657867, 0.047460757195949554, 0.2853032946586609, 0.41068658232688904, -0.14066912233829498, -0.019202016294002533, -0.13284818828105927, -0.18602439761161804, 0.018293138593435287, 0.4052116870880127, 0.09053075313568115, 0.09285138547420502, -0.36999088525772095, 0.10838021337985992, -0.5568276643753052, 0.01987569034099579, -0.10776828229427338, 0.0017432905733585358, 0.13398344814777374, -0.14404350519180298, 0.011170264333486557, -0.000823192298412323, 0.42617368698120117, -0.16158653795719147, -0.3184938132762909, -0.10170365124940872, 0.15232981741428375, -0.40045464038848877, 0.10236097872257233, -0.10538000613451004, -0.3845578730106354, 0.058222200721502304, 0.4981088936328888, -0.2920536398887634, -0.014147032052278519, 0.5848613977432251, 0.3693963289260864, -0.11003398895263672, -0.18002313375473022, -0.342231810092926, -0.5269814729690552, -0.26196396350860596, -0.31197941303253174, 0.05010054260492325, 0.2887435555458069, 0.0004593506455421448, 0.0406164675951004, -0.08585958182811737, -0.1096920371055603, 0.005795564502477646, 0.19326481223106384, 0.3751417398452759, -0.08552204072475433, 0.08379877358675003, 0.3181834816932678, 0.12866263091564178, 0.027687175199389458, 0.4846264123916626, -0.11699734628200531, -0.2862425744533539, -0.23411141335964203, -0.0015348754823207855, 0.30494242906570435, -0.050374358892440796, -0.012148816138505936, 0.2031049132347107, 0.16401877999305725, 0.17404018342494965, -0.27723202109336853, 0.065334752202034, 0.40793976187705994, 0.016123726963996887, -0.12119068205356598, -0.31040674448013306, 0.47745925188064575, -0.09097369015216827, 0.23457644879817963, 0.1480848342180252, 0.6963040232658386, -0.19087636470794678, 0.025711022317409515, -0.037463147193193436, 0.6728914380073547, -0.015647226944565773, 0.2137642353773117, 0.5228443145751953, 0.13788488507270813, 0.49208974838256836, 0.03220497816801071, 0.11364645510911942, -0.13655121624469757, -0.12442940473556519, -0.05576509237289429, 0.13193190097808838, 0.19792890548706055, -0.240510493516922, -0.3001883029937744, 0.21084636449813843, 0.13029806315898895, 0.48154908418655396, -0.01156378723680973, -0.08405376970767975, -0.22994714975357056, -0.4589121639728546, -0.22448047995567322, 0.17633190751075745, -0.13109435141086578, 0.18356812000274658, -0.061232149600982666, 0.08350721746683121, -0.062018658965826035, -0.2151123434305191, -0.2962891757488251, 0.04898872971534729, -0.17818112671375275, 0.001589309424161911, 0.27783748507499695, -0.31976497173309326, 0.04299834370613098, 0.3772464394569397, 0.20681697130203247, 0.08085422217845917, -0.37915754318237305, 0.2942669689655304, -0.3318922519683838, -0.301333487033844, -0.08080486953258514, 0.02723134681582451, 0.15043343603610992, -0.20051270723342896, -0.3311750888824463, -0.01757272705435753, -0.15383456647396088, 0.07486915588378906, -0.48229464888572693, -0.05507935211062431, -0.016440927982330322, -0.21659451723098755, -0.1426626592874527, 0.08829163759946823, 0.26690757274627686, -0.3419038951396942, 0.17306673526763916, -0.22975808382034302, -0.07076269388198853, 0.05598827823996544, -0.06467305123806, 0.14254897832870483, -0.18780989944934845, 0.12355174869298935, -0.027756908908486366, -0.1479177176952362, 0.5038403272628784, 0.21571794152259827, -0.20839352905750275, -0.18333080410957336, -0.04209253191947937, 0.3237200677394867, -0.3441510796546936, -0.18370655179023743, 0.3745027184486389, 0.09781873226165771, -0.04809167608618736, 0.48153793811798096, 0.07975876331329346, -0.3061767816543579, -0.10331293195486069, -0.269504189491272, -0.3904179632663727, 0.4605473577976227, 0.04438196122646332, 0.08142542839050293, -0.05595908313989639, 0.4622196853160858, 0.04890161752700806, 0.12772251665592194, -0.37219393253326416, -0.10499054938554764, -0.16507089138031006, 0.0057260021567344666, 0.3218871057033539, -0.13054274022579193, 0.2574724555015564, 0.049801476299762726, 0.19190752506256104, 0.07730884850025177, 0.06297487765550613, -0.2080519199371338, -0.16770654916763306, 0.06260820478200912, 0.010498816147446632, 0.12526385486125946, -0.03221813589334488, 0.21934494376182556, -0.1892019808292389, -0.23814111948013306, 0.3489740490913391, 0.009107723832130432, 0.04808171093463898, 0.11248268187046051, 0.10101964324712753, 0.13932372629642487, -0.20980724692344666, 0.052564118057489395, -0.0510028712451458, -0.06017403304576874, -0.035795658826828, -0.02294621430337429, 0.09291023015975952, -0.03986065089702606, 0.453470915555954, 0.2300548404455185, -0.06186669319868088, 0.16808362305164337, 0.4504093527793884, 0.0778944194316864, -0.0724387988448143, -0.013013578951358795, 0.1794341504573822, -0.029594168066978455, 0.0005947388708591461, 0.2428058683872223, 0.20903858542442322, 0.2586456835269928, -0.3936883807182312, -0.017888404428958893, 0.33262643218040466, 0.018603872507810593, 0.290847510099411, 0.23932716250419617, 0.09453672170639038, -0.27921411395072937, -0.12217921018600464, -0.04535087198019028, 0.5128667950630188, -0.06476397067308426, 0.034901879727840424, 0.3482365906238556, 0.17821155488491058, -0.1240447461605072, 0.09599393606185913, 0.15471398830413818, 0.21347922086715698, 0.04237009584903717, -0.12384364008903503, 0.23581719398498535, -0.4316960275173187, 0.19548825919628143, 0.25073960423469543, -0.204487144947052, -0.10446734726428986, -0.16910281777381897, -0.040526606142520905, -0.014434970915317535, -0.3837434649467468, 0.40102264285087585, 0.029653917998075485, -0.010831207036972046, -0.16227464377880096, 0.30160433053970337, -0.21878990530967712, -0.14999312162399292, -0.376831591129303, -0.23811864852905273, 0.2273073047399521, -0.17940916121006012, 0.1908576786518097, -0.024697955697774887, 0.05618730187416077, -0.0710710734128952, -0.04032577946782112, -0.11018287390470505, -0.05874938145279884, 0.34923839569091797, 0.18898385763168335, 0.05332517623901367, 0.10896436870098114, 0.6260307431221008, 0.13448721170425415, -0.005544411484152079, 0.0823427215218544, 0.3404814600944519, -0.10857430100440979, 0.29313477873802185, -0.0031082183122634888, -0.14260350167751312, -0.18225769698619843, 0.02277585119009018, 0.1597888022661209, 0.22542372345924377, 0.027329150587320328, 0.18004167079925537, 0.16584619879722595, -0.25066077709198, -0.01070259790867567, -0.3270638883113861, 0.08994413912296295, -0.22414176166057587, -0.13980823755264282, -0.4170123040676117, -0.3447078466415405, -0.24722392857074738, 0.06058431416749954, -0.522369384765625, 0.3943897783756256, 0.13228704035282135, 0.06999266892671585, -0.03468221426010132, 0.03189357370138168, 0.10357317328453064, 0.11478359997272491, 0.4758185148239136, 0.3135998249053955, 0.026363171637058258, -0.08118116110563278, -0.5944886803627014, -0.5643665790557861, -0.08044306933879852, -0.3559882640838623, -0.30428433418273926, 0.15985995531082153, 0.06431201100349426, 0.21710257232189178, -0.03596743196249008, -0.02090620994567871, 0.22596727311611176, -0.03243411332368851, -0.16103240847587585, -0.27617838978767395, -0.37867271900177, 0.011264570988714695, -0.02829502895474434, -0.016216378659009933, 0.07630018144845963, 0.1975306123495102, 0.19731923937797546, 0.0702492743730545, -0.03986045718193054, 0.4521842300891876, -0.2078346610069275, -0.467682421207428, -0.23009635508060455, 0.14232540130615234, 0.2826929986476898, -0.19486600160598755, -0.011449381709098816, -0.2692462205886841, -0.051121972501277924, -0.15389925241470337, 0.19396726787090302, -0.047121405601501465, 0.4537033140659332, -0.022663958370685577, -0.40112119913101196, -0.033879514783620834, 0.24504885077476501, 0.3972955346107483, 0.037337977439165115, -0.21135586500167847, 0.2295658141374588, 0.17386552691459656, -0.08695506304502487, 0.25985825061798096, 0.33109116554260254, -0.2241021990776062, 0.07925776392221451, -0.11266609281301498, -0.6037772297859192, 0.46619734168052673, -0.23145124316215515, -0.10070078074932098, -0.03881198167800903, -0.09094516932964325, 0.09953904896974564, 0.0423092320561409, -0.7625926733016968, 0.127469003200531, 0.2277512550354004, 0.16648100316524506, 0.008728139102458954, 0.23900747299194336, 0.006222158670425415, -0.01857798546552658, -0.036101993173360825, -0.25057753920555115, 0.1227642223238945, -0.000998273491859436, 0.06485047191381454, -0.015444383025169373 ]
https://github.com/huggingface/datasets/issues/2129
Hi ! We're not using `TextDatasetForNextSentencePrediction` in `datasets`. Although you can probably use the `TextDatasetForNextSentencePrediction.create_examples_from_document` on a dataset to prepare it for next sentence prediction.
How to train BERT model with next sentence prediction?
Hello. I'm trying to pretrain the BERT model with next sentence prediction. Is there any function that supports next sentence prediction like ` TextDatasetForNextSentencePrediction` of `huggingface/transformers` ?
25
How to train BERT model with next sentence prediction? Hello. I'm trying to pretrain the BERT model with next sentence prediction. Is there any function that supports next sentence prediction like ` TextDatasetForNextSentencePrediction` of `huggingface/transformers` ? Hi ! We're not using `TextDatasetForNextSentencePrediction` in `datasets`. Although you can probably use the `TextDatasetForNextSentencePrediction.create_examples_from_document` on a dataset to prepare it for next sentence prediction.
[ 0.19170726835727692, -0.4076446294784546, -0.014769792556762695, -0.20032899081707, 0.0005588065832853317, -0.2783757448196411, 0.14220669865608215, -0.012716926634311676, -0.025662045925855637, 0.16470229625701904, 0.1556008905172348, 0.049372486770153046, -0.15480880439281464, 0.06175394356250763, 0.32850542664527893, -0.6952242851257324, 0.15740090608596802, 0.21883749961853027, 0.009745243936777115, -0.15053117275238037, -0.11787901818752289, 0.08061684668064117, -0.4232555627822876, 0.3682827353477478, -0.2839282155036926, 0.2008211612701416, -0.3334324359893799, -0.31639528274536133, 0.04606030881404877, -0.37538161873817444, 0.45824727416038513, 0.40703433752059937, 0.45879849791526794, 0.21507416665554047, -0.00012323466944508255, -0.2639683187007904, 0.20253100991249084, -0.27113479375839233, 0.1549268215894699, -0.39701536297798157, -0.24933496117591858, -0.03737478703260422, 0.22429922223091125, -0.18159469962120056, -0.2838992476463318, 0.5994526743888855, 0.30693668127059937, -0.13437609374523163, 0.5240790247917175, 0.11737576127052307, 0.0644792914390564, -0.29605215787887573, 0.2634478807449341, -0.012157171964645386, 0.10680055618286133, 0.09455258399248123, -0.028503894805908203, -0.13714884221553802, 0.5605084896087646, -0.33043909072875977, -0.21471963822841644, 0.1836271733045578, 0.008803226053714752, 0.033085595816373825, 0.16475194692611694, 0.23312482237815857, 0.08448544889688492, -0.33251431584358215, -0.26166832447052, 0.4053133428096771, 0.6561760306358337, -0.24577778577804565, -0.5032140612602234, -0.16772186756134033, 0.2668513059616089, 0.08863352984189987, 0.06607078015804291, -0.24558788537979126, -0.07422089576721191, 0.17297720909118652, 0.047075532376766205, -0.3753953278064728, -0.4167918562889099, -0.03733310475945473, -0.1894734501838684, 0.45809486508369446, -0.03365572914481163, -0.21239718794822693, 0.26014700531959534, -0.21066485345363617, 0.0755169540643692, -0.09403061866760254, 0.12353426963090897, 0.44065961241722107, -0.20642715692520142, -0.36486291885375977, -0.42545589804649353, 0.14891882240772247, 0.02061498910188675, -0.13283506035804749, -0.19278353452682495, -0.015530095435678959, -0.37865763902664185, -0.12385983765125275, 0.3669157326221466, 0.25854843854904175, -0.14866818487644196, 0.15673528611660004, -0.25296899676322937, 0.040198903530836105, -0.23516112565994263, -0.1876814365386963, -0.14576545357704163, 0.040598928928375244, 0.26355472207069397, -0.0009321980178356171, -0.21215614676475525, -0.26389163732528687, 0.09232038259506226, -0.012200593948364258, -0.2975632846355438, -0.043765801936388016, -0.07688043266534805, -0.04959958419203758, -0.2629684507846832, 0.3475268483161926, -0.03411935642361641, 0.08408116549253464, 0.004310600459575653, -0.09522886574268341, 0.11463040858507156, -0.2163175493478775, -0.27448421716690063, 0.520956814289093, 0.01228562742471695, 0.03096216917037964, 0.13239437341690063, -0.14718078076839447, -0.03248836472630501, 0.07978390157222748, -0.31514060497283936, -0.4305481016635895, -0.008303262293338776, -0.12755164504051208, -0.3998713195323944, 0.05128902196884155, -0.1620684266090393, 0.46763890981674194, -0.08284378796815872, -0.00618002749979496, -0.20258598029613495, -0.009668417274951935, -0.0974932610988617, -0.039380159229040146, -0.09254355728626251, -0.33967071771621704, 0.10313679277896881, 0.5064284801483154, -0.10846394300460815, -0.1633831262588501, 0.14131778478622437, 0.15757021307945251, -0.36783909797668457, 0.13895419239997864, 0.1589902937412262, 0.1643916219472885, -0.4927239418029785, -0.25934815406799316, 0.021333519369363785, 0.14557036757469177, 0.11357791721820831, -0.0017805667594075203, 0.24182967841625214, 0.2236618846654892, 0.04718901962041855, 0.12859457731246948, -0.12163428217172623, -0.15383991599082947, 0.005632169544696808, 0.026536691933870316, 0.1224370226264, 0.37930333614349365, -0.13338518142700195, -0.006222400814294815, 0.010716725140810013, -0.0767606794834137, -0.10994885861873627, 0.1562729775905609, -0.12322661280632019, -0.13038769364356995, 0.27243638038635254, -0.17734289169311523, -0.10980165004730225, -0.004553407430648804, 0.160171240568161, 0.17073523998260498, -0.27392488718032837, 0.5601226091384888, 0.15607741475105286, -0.031237471848726273, 0.0705624371767044, -0.05062049254775047, 0.14085136353969574, 0.39643988013267517, 0.048868097364902496, -0.3296993374824524, -0.23310691118240356, 0.025221072137355804, 0.07320283353328705, -0.17387019097805023, 0.0573342964053154, 0.1567169725894928, 0.06822367757558823, 0.10226936638355255, -0.06198132783174515, -0.15378303825855255, -0.026199964806437492, 0.007967041805386543, -0.15673992037773132, 0.10419808328151703, -0.39085957407951355, 0.15720519423484802, 0.10156119614839554, 0.07801004499197006, -0.14008177816867828, 0.20632731914520264, -0.08075002580881119, -0.07088135182857513, 0.016951724886894226, 0.18487223982810974, 0.04696844145655632, 0.08422814309597015, 0.10614693909883499, 0.10188432782888412, 0.26739320158958435, 0.12567579746246338, -0.016578927636146545, -0.24331848323345184, 0.05602207034826279, -0.36950451135635376, -0.0651005432009697, 0.041527390480041504, -0.12417905032634735, -0.0720180869102478, -0.1598878800868988, 0.06514379382133484, 0.45883193612098694, 0.006385296583175659, -0.09043622016906738, -0.021363917738199234, -0.13949862122535706, 0.052907004952430725, -0.07066869735717773, -0.36433660984039307, 0.12671616673469543, 0.04817008972167969, 0.25273004174232483, -0.0865999162197113, -0.2399299442768097, -0.4791782796382904, 0.222833514213562, -0.17428189516067505, 0.17736725509166718, 0.6320176720619202, -0.026693277060985565, 0.04553510993719101, -0.11154011636972427, -0.2695046663284302, -0.03339913487434387, 0.0742160826921463, -0.06777425855398178, -0.1553357094526291, -0.04781024158000946, 0.030332863330841064, -0.08550113439559937, -0.048403315246105194, 0.19880340993404388, -0.15075042843818665, -0.2564576268196106, 0.12404394149780273, 0.20820623636245728, -0.33375710248947144, -0.13252034783363342, -0.04187074676156044, -0.07908537983894348, -0.0052341073751449585, -0.38155025243759155, -0.3519105315208435, -0.025971632450819016, -0.43343979120254517, -0.032394737005233765, 0.2949763238430023, -0.06536831706762314, -0.43615058064460754, 0.16827848553657532, -0.054602231830358505, 0.048220179975032806, 0.3473087549209595, 0.19471344351768494, 0.21387122571468353, -0.23059196770191193, -0.16089056432247162, -0.00181895075365901, 0.014962278306484222, -0.19950039684772491, -0.18142655491828918, -0.3212389051914215, -0.002615988254547119, 0.05615788698196411, -0.1347343772649765, -0.22505070269107819, 0.32629531621932983, -0.13611629605293274, 0.031976304948329926, 0.2602563500404358, -0.12329445034265518, -0.14761778712272644, 0.05069372057914734, -0.07176458835601807, -0.005131371319293976, -0.058623675256967545, -0.177061527967453, 0.20055454969406128, 0.12487111240625381, 0.2681867778301239, -0.01158197969198227, -0.2322617918252945, 0.3484325408935547, 0.25748857855796814, 0.18775834143161774, -0.050662968307733536, -0.09342967718839645, -0.013033054769039154, 0.1530904322862625, -0.3353317081928253, -0.12774068117141724, 0.1583467572927475, -0.6027778387069702, 0.18837767839431763, 0.16950801014900208, 0.033644452691078186, -0.36375612020492554, -0.03789427503943443, -0.12812235951423645, -0.3695196211338043, -0.03210311383008957, -0.23084649443626404, 0.07030894607305527, -0.11276306957006454, -0.09811194986104965, -0.17995145916938782, -0.032107483595609665, 0.10585084557533264, 0.1223227009177208, -0.17852789163589478, -0.034780289977788925, 0.3163149654865265, -0.039191246032714844, 0.3434462547302246, 0.05929991975426674, 0.0938185453414917, -0.20428204536437988, 0.40103477239608765, 0.10321709513664246, -0.29291465878486633, 0.3866354525089264, 0.22314602136611938, -0.11869308352470398, -0.07345540821552277, 0.020124919712543488, 0.024744603782892227, 0.06310777366161346, 0.09300640225410461, 0.42892903089523315, -0.1150059700012207, 0.04357267916202545, -0.15968471765518188, -0.1794789731502533, 0.060345083475112915, -0.07142850011587143, 0.07289400696754456, -0.2532200217247009, 0.23173250257968903, -0.23556983470916748, -0.10139430314302444, 0.041457757353782654, -0.10596437007188797, -0.06692779809236526, 0.017264768481254578, 0.7841863632202148, -0.11067329347133636, 0.6015796661376953, -0.1010553315281868, -0.3486661911010742, -0.060515083372592926, 0.2454375922679901, -0.06016068905591965, -0.1274958699941635, 0.23837605118751526, -0.06571878492832184, 0.12137065082788467, -0.006847936660051346, -0.06169160455465317, -0.05661135911941528, -0.09426961839199066, -0.32699325680732727, 0.30272263288497925, 0.16515539586544037, -0.30139482021331787, -0.3171464204788208, 0.15215981006622314, 0.20694954693317413, 0.18032023310661316, -0.19597718119621277, 0.2799464166164398, 0.09346698224544525, -0.1397627592086792, -0.5285360813140869, 0.04310351610183716, 0.8037563562393188, -0.11655768752098083, 0.08363184332847595, -0.06479904800653458, -0.21234023571014404, 0.06516079604625702, -0.28470441699028015, 0.22852827608585358, 0.1364201009273529, -0.054083190858364105, 0.029455985873937607, -0.0028116554021835327, -0.288487046957016, 0.01432306319475174, 0.31518566608428955, 0.09623728692531586, 0.24239212274551392, -0.22520963847637177, -0.016092922538518906, -0.20570766925811768, 0.1425427496433258, 0.1346215009689331, 0.46657130122184753, -0.10371813178062439, 0.12353289127349854, 0.42203816771507263, 0.021460749208927155, -0.014451958239078522, -0.1236790344119072, -0.16148757934570312, 0.6815995573997498, 0.32187095284461975, -0.2997698187828064, -0.285464882850647, 0.5634612441062927, -0.11643770337104797, -0.23013077676296234, -0.43753519654273987, 0.6853525638580322, -0.3285285532474518, 0.2281905710697174, 0.5515846014022827, 0.7926323413848877, -0.009653419256210327, 0.20658846199512482, -0.32634758949279785, 0.14049220085144043, 0.5958319306373596, -0.1239839494228363, -0.1427016258239746, 0.03302355110645294, 0.23386335372924805, -0.3432450294494629, 0.2214524745941162, 0.0697835236787796, 0.25560420751571655, -0.7860974669456482, 0.33535677194595337, 0.18017305433750153, -0.15279854834079742, 0.11677080392837524, -0.00827806442975998, 0.3885195851325989, -0.4617995321750641, -0.0048256199806928635, -0.007627271115779877, 0.1532488316297531, 0.19932952523231506, -0.18543577194213867, -0.03293595463037491, 0.5668461322784424, 0.11717779189348221, -0.43334707617759705, 0.031688228249549866, -0.25830793380737305, -0.3672168254852295, 0.07527778297662735, -0.009667813777923584, 0.7311248779296875, 0.4217284917831421, 0.6386287808418274, 0.2278713583946228, -0.27663880586624146, -0.014520904049277306, 0.10280569642782211, -0.07189889252185822, -0.35968178510665894, -0.0008186325430870056, 0.4709010124206543, -0.12514501810073853, -0.38099855184555054, 0.22871413826942444, 0.08571776747703552, -0.2684840261936188, -0.16420941054821014, -0.28146544098854065, 0.5577857494354248, 0.03311927616596222, 0.029362771660089493, -0.0116131491959095, 0.17375874519348145, -0.11022873967885971, 0.06941460818052292, 0.1510990411043167, -0.16516336798667908, 0.061250459402799606, 0.2021571397781372, -0.3422723412513733, -0.02815776877105236, 0.06468795984983444, 0.0919552743434906, -0.08222787827253342, 0.5879974365234375, 0.2623744606971741, 0.02004033327102661, -0.18715566396713257, -0.008756540715694427, 0.2483518123626709, -0.15986943244934082, 0.1676204651594162, 0.09192272275686264, 0.16055026650428772, 0.17545728385448456, 0.6059983372688293, 0.290530800819397, -0.2866261601448059, -0.24816276133060455, -0.03585463762283325, -0.2740086019039154, -0.14661118388175964, -0.1725732833147049, 0.157088503241539, 0.21343713998794556, 0.05232755094766617, 0.49019312858581543, 0.4139157831668854, -0.12620483338832855, -0.2374563366174698, -0.2027713805437088, 0.16416624188423157, 0.08266974240541458, 0.024398135021328926, -0.13810059428215027, 0.04244590923190117, -0.039787862449884415, 0.24676814675331116, 0.3000512421131134, -0.03801681473851204, -0.15718311071395874, 0.1104031652212143, 0.0027838218957185745, 0.04563575237989426, -0.1846473515033722, 0.10915118455886841, -0.008050684817135334, -0.027223633602261543, -0.19922953844070435, 0.05474678426980972, 0.3115120530128479, 0.47291192412376404, 0.430745005607605, -0.15412990748882294, -0.37805795669555664, -0.26862913370132446, 0.22480298578739166, 0.04707833006978035, -0.08664049208164215, -0.0844636932015419, 0.00883302092552185, -0.14572040736675262, 0.036058634519577026, 0.19120514392852783, 0.5139397382736206, 0.14591756463050842, 0.06526774168014526, 0.09561912715435028, -0.09938618540763855, -0.13153578341007233, 0.04608975350856781, -0.18487894535064697, 0.16760298609733582, -0.3008456230163574, 0.5770232081413269, 0.020142503082752228, -0.22262990474700928, 0.002738460898399353, 0.07281418889760971, 0.11605779826641083, -0.07620443403720856, 0.01383858174085617, -0.14626260101795197, 0.34637653827667236, 0.3239390254020691, -0.12837904691696167, -0.392029345035553, 0.20330986380577087, 0.04263979196548462, 0.41599613428115845, 0.27456480264663696, 0.18922747671604156, 0.24684199690818787, 0.20122869312763214, 0.4515756070613861, 0.5087412595748901, -0.11234050244092941, 0.0888400748372078, -0.21228764951229095, 0.21152737736701965, 0.5340948104858398, -0.15411445498466492, -0.1312069594860077, 0.03044234961271286, -0.012415185570716858, 0.18806207180023193, -0.011749938130378723, 0.524272620677948, 0.21156559884548187, -0.18215548992156982, -0.30176687240600586, 0.16001231968402863, 0.08229073137044907, -0.447041392326355, -0.18288159370422363, 0.12884566187858582, 0.21218176186084747, -0.08281915634870529, -0.0785350650548935, 0.04388983175158501, 0.12412594258785248, 0.29091310501098633, 0.335518479347229, -0.1258833408355713, -0.07073095440864563, 0.03681564703583717, 0.33590826392173767, -0.036683980375528336, 0.31924980878829956, -0.1124020665884018, 0.10839687287807465, 0.09264032542705536, 0.4123351573944092, -0.08322814106941223, 0.15069204568862915, -0.12597839534282684, 0.14618277549743652, -0.0732511579990387, -0.013219449669122696, 0.3068971633911133, 0.016667548567056656, 0.17193542420864105, -0.07886739075183868, 0.3082800507545471, -0.02086348831653595, 0.002084784209728241, 0.3156620264053345, 0.045264359563589096, 0.38245484232902527, -0.33455124497413635, 0.14786365628242493, 0.34776771068573, 0.3879689574241638, -0.40210849046707153, 0.30098316073417664, -0.4886256456375122, 0.4765602946281433, -0.3405267894268036, -0.3245192766189575, -0.16069099307060242, 0.23507313430309296, -0.02355336770415306, 0.061373427510261536, 0.4114910662174225, 0.5823988318443298, 0.21300871670246124, -0.04918951541185379, -0.2652747333049774, -0.11934980750083923, -0.14157722890377045, 0.059027399867773056, 0.04517868906259537, 0.060443710535764694, -0.2913479804992676, -0.04147089645266533, 0.03293067216873169, -0.044039733707904816, 0.0037754476070404053, -0.6597325801849365, 0.2102500945329666, -0.26474153995513916, -0.01648881658911705, -0.09863603860139847, 0.2552071213722229, -0.09483228623867035, 0.284875750541687, 0.006867692805826664, 0.2559461295604706, -0.18208545446395874, 0.23680663108825684, 0.06642479449510574, -0.16563746333122253, 0.18817630410194397, 0.19267792999744415, -0.19801738858222961, 0.18649153411388397, -0.16822266578674316, 0.36382758617401123, 0.01525196898728609, 0.06240614503622055, -0.21513499319553375, -0.2940661311149597, 0.1702272742986679, 0.2356833815574646, -0.19992348551750183, 0.23353780806064606, -0.0017077326774597168, -0.1841316670179367, 0.10365863889455795, -0.04368901625275612, -0.5682258605957031, 0.053576886653900146, 0.11746180802583694, -0.2165210247039795, 0.12943238019943237, 0.11877891421318054, -0.1587742567062378, -0.010582402348518372, -0.3842247724533081, 0.052206605672836304, 0.3020169734954834, -0.09243965148925781, -0.11229805648326874, -0.37524309754371643, -0.3578154742717743, 0.29792341589927673, -0.21711809933185577, -1.1201759576797485, 0.14881791174411774, 0.3090510666370392, 0.3505091965198517, -0.10971341282129288, 0.21355369687080383, 0.13507471978664398, 0.18764127790927887, -0.3854333758354187, 0.5604228973388672, 0.3421282470226288, 0.09885083138942719, -0.33238205313682556, -0.22069312632083893 ]
https://github.com/huggingface/datasets/issues/2129
Thanks. Do you mean that `TextDatasetForNextSentencePrediction.create_exapmles_from_document` can be applied to dataset object other than `TextDatasetForNextSentencePrediction` e.g. a `Dataset` object which is loaded by `datasets.load_dataset`?
How to train BERT model with next sentence prediction?
Hello. I'm trying to pretrain the BERT model with next sentence prediction. Is there any function that supports next sentence prediction like ` TextDatasetForNextSentencePrediction` of `huggingface/transformers` ?
24
How to train BERT model with next sentence prediction? Hello. I'm trying to pretrain the BERT model with next sentence prediction. Is there any function that supports next sentence prediction like ` TextDatasetForNextSentencePrediction` of `huggingface/transformers` ? Thanks. Do you mean that `TextDatasetForNextSentencePrediction.create_exapmles_from_document` can be applied to dataset object other than `TextDatasetForNextSentencePrediction` e.g. a `Dataset` object which is loaded by `datasets.load_dataset`?
[ 0.10564319044351578, -0.46077167987823486, 0.015563298016786575, -0.08984288573265076, 0.04743291437625885, -0.28990638256073, 0.15321102738380432, -0.005171836353838444, 0.0640040785074234, 0.12141893804073334, 0.18533079326152802, 0.1281927525997162, -0.15475136041641235, 0.12822172045707703, 0.3845977783203125, -0.6245177388191223, 0.13146734237670898, 0.29321810603141785, -0.051488615572452545, -0.24333319067955017, -0.16964444518089294, 0.0733773484826088, -0.35165587067604065, 0.3405376374721527, -0.20012763142585754, 0.27021390199661255, -0.2841583490371704, -0.2478070706129074, 0.008769474923610687, -0.3340139389038086, 0.4047505259513855, 0.3907676935195923, 0.4258321523666382, 0.16437195241451263, -0.00012918472930323333, -0.23294663429260254, 0.11473990976810455, -0.32738882303237915, 0.11378572136163712, -0.2843590974807739, -0.35554683208465576, -0.10609716176986694, 0.26434218883514404, -0.24600179493427277, -0.24229919910430908, 0.5384495258331299, 0.3581979274749756, -0.3058200180530548, 0.5242072343826294, 0.29084572196006775, 0.014402097091078758, -0.2546209692955017, 0.3124650716781616, -0.02081865258514881, 0.23486822843551636, 0.16714683175086975, -0.025193851441144943, -0.22162213921546936, 0.5485686659812927, -0.29866307973861694, -0.11388251185417175, 0.1442742943763733, -0.0018345266580581665, 0.0014028232544660568, 0.252263605594635, 0.22817060351371765, 0.17824786901474, -0.4217781126499176, -0.19533036649227142, 0.37610000371932983, 0.8002337217330933, -0.32211795449256897, -0.4739651083946228, -0.2419864982366562, 0.3371283710002899, 0.09548816829919815, 0.12554091215133667, -0.30303311347961426, -0.12385396659374237, 0.1631254106760025, 0.061253856867551804, -0.5166054964065552, -0.46741122007369995, -0.0005797408521175385, -0.14903289079666138, 0.4557170867919922, 0.0035353973507881165, -0.15107528865337372, 0.2814888656139374, -0.16665884852409363, 0.09246072173118591, -0.09724351018667221, 0.05331883579492569, 0.48218730092048645, -0.1632688343524933, -0.34540489315986633, -0.4761660397052765, 0.06776216626167297, 0.052934035658836365, -0.08089978992938995, -0.1527080535888672, -0.00658117700368166, -0.3215610086917877, -0.07093042135238647, 0.3516066074371338, 0.2880745232105255, -0.03828885406255722, 0.19146011769771576, -0.28480324149131775, 0.019716273993253708, -0.26817798614501953, -0.1537957489490509, -0.20196421444416046, 0.039912763983011246, 0.2256610095500946, -0.05068642646074295, -0.22892162203788757, -0.25900721549987793, 0.05848144739866257, 0.01205642893910408, -0.3375011682510376, -0.011746365576982498, -0.04886319488286972, -0.0032532140612602234, -0.19726872444152832, 0.3654839098453522, 0.0605773851275444, 0.10421650856733322, -0.04325961321592331, -0.11188217252492905, 0.15426142513751984, -0.14648975431919098, -0.3213077187538147, 0.5611476302146912, 0.015222281217575073, 0.08799422532320023, 0.13608717918395996, -0.257286012172699, -0.09130732715129852, 0.035368457436561584, -0.24350157380104065, -0.414981484413147, -0.00021386891603469849, -0.0694691464304924, -0.3622320592403412, 0.06414273381233215, -0.14490440487861633, 0.4078870713710785, -0.18635228276252747, 0.04022223502397537, -0.17443415522575378, -0.0844525545835495, -0.18158674240112305, -0.07502800971269608, -0.041393306106328964, -0.29079753160476685, 0.04774954915046692, 0.5946677923202515, -0.010827917605638504, -0.20393845438957214, 0.25272002816200256, 0.09893371164798737, -0.46362289786338806, 0.14732448756694794, 0.15076451003551483, 0.2339983582496643, -0.5984503030776978, -0.3204488754272461, -0.13508927822113037, -0.02037336677312851, 0.024338187649846077, -0.13605977594852448, 0.2206616848707199, 0.3552304804325104, 0.0420454740524292, 0.14959555864334106, -0.16228903830051422, -0.2258412092924118, -0.04679561406373978, 0.057462673634290695, 0.13851644098758698, 0.3321615159511566, 0.0013425089418888092, 0.014306765049695969, 0.1212005466222763, -0.07266129553318024, -0.13351492583751678, 0.17920297384262085, -0.08563657850027084, -0.14146661758422852, 0.3205605745315552, -0.13843894004821777, -0.21361064910888672, 0.03851017355918884, 0.22924290597438812, 0.20227912068367004, -0.24514740705490112, 0.5747004151344299, 0.11565591394901276, -0.11700853705406189, 0.1535995602607727, 0.01782919466495514, 0.07130876183509827, 0.41000238060951233, 0.02390282228589058, -0.32403120398521423, -0.3736848533153534, -0.04771815240383148, 0.028667211532592773, -0.10727023333311081, 0.12747588753700256, 0.10546503961086273, 0.012155015021562576, 0.13287118077278137, -0.08563452214002609, -0.12180878967046738, -0.09966140985488892, 0.05310613662004471, -0.14227336645126343, 0.07668912410736084, -0.39362967014312744, 0.18687884509563446, 0.12230709195137024, 0.10920670628547668, -0.17494384944438934, 0.1587536334991455, 0.021849805489182472, -0.03786240518093109, -0.052203524857759476, 0.11955949664115906, -0.009430356323719025, 0.12906572222709656, 0.06708148866891861, 0.09989812970161438, 0.2876978814601898, 0.10832980275154114, -0.0522969625890255, -0.09488378465175629, 0.07587756961584091, -0.36799511313438416, -0.004335145466029644, 0.08375837653875351, -0.023058414459228516, -0.08894174546003342, -0.0869566798210144, 0.09166549146175385, 0.5599460601806641, -0.06622534245252609, 0.015727952122688293, -0.02591434121131897, -0.15261274576187134, 0.06730153411626816, -0.09875691682100296, -0.4773171842098236, 0.050106294453144073, 0.14550909399986267, 0.33999335765838623, -0.12262406200170517, -0.18977490067481995, -0.4507787525653839, 0.2656004726886749, -0.12634840607643127, 0.2417239397764206, 0.6629160046577454, -0.07830764353275299, -0.023472920060157776, -0.19154399633407593, -0.3000425696372986, 0.07019079476594925, 0.06170190870761871, -0.05270480737090111, -0.04622142016887665, 0.02192620560526848, 0.021355364471673965, 0.043241024017333984, -0.06375987827777863, 0.25379642844200134, -0.0874786451458931, -0.3057596981525421, 0.04756762832403183, 0.13605579733848572, -0.33020997047424316, -0.11175975948572159, -0.009860925376415253, -0.16074493527412415, 0.03758554905653, -0.23597118258476257, -0.25405699014663696, -0.14969485998153687, -0.4255622625350952, -0.08121633529663086, 0.3417152464389801, -0.0035800933837890625, -0.30791011452674866, 0.10875841975212097, -0.07092142105102539, 0.0714113637804985, 0.44772133231163025, 0.16115736961364746, 0.181782066822052, -0.24836349487304688, -0.12664520740509033, -0.005487803369760513, -0.056220605969429016, -0.18533208966255188, -0.11403633654117584, -0.2734886109828949, -0.005024515092372894, 0.09116644412279129, -0.18328580260276794, -0.23735976219177246, 0.29472458362579346, -0.10084564983844757, 0.04058621823787689, 0.31847018003463745, -0.23007261753082275, -0.11639085412025452, -0.04333137720823288, -0.08053192496299744, -0.07639993727207184, -0.12013177573680878, -0.3259272277355194, 0.15786075592041016, 0.168726846575737, 0.2795044779777527, -0.07273051142692566, -0.24646301567554474, 0.2916785478591919, 0.22282248735427856, 0.22095203399658203, 0.011041836813092232, -0.18089109659194946, -0.04321812093257904, 0.1967170685529709, -0.29123252630233765, -0.0663997232913971, 0.16012398898601532, -0.5610362887382507, 0.1195916086435318, 0.09515511989593506, 0.040879566222429276, -0.4551675319671631, -0.026133928447961807, -0.1833864450454712, -0.24684543907642365, -0.10039663314819336, -0.23641368746757507, 0.027385903522372246, -0.26669377088546753, -0.08475027233362198, -0.07112900912761688, 0.15646623075008392, 0.13628233969211578, 0.16024331748485565, -0.1897275447845459, -0.13249486684799194, 0.44037067890167236, -0.06295022368431091, 0.267396479845047, -0.015151221305131912, 0.0811430811882019, -0.29391834139823914, 0.34934747219085693, 0.05869579315185547, -0.2686469256877899, 0.4846497178077698, 0.21321699023246765, -0.0882052630186081, -0.1651717871427536, -0.016185611486434937, -0.08670693635940552, 0.008297145366668701, 0.0832565426826477, 0.44894978404045105, -0.11400313675403595, -0.012983012944459915, -0.22463162243366241, -0.21170009672641754, -0.004384636878967285, -0.07870505750179291, 0.024018319323658943, -0.2155967354774475, 0.2518777847290039, -0.24020887911319733, -0.03737124800682068, -0.06617854535579681, -0.06095511466264725, -0.07660605013370514, -0.000437811017036438, 0.7021429538726807, -0.20407232642173767, 0.43007558584213257, -0.15232661366462708, -0.3472480773925781, 0.04362104833126068, 0.29060569405555725, -0.03360539674758911, -0.11764301359653473, 0.16950739920139313, -0.017006561160087585, 0.1150398999452591, 0.1491367518901825, -0.10248654335737228, -0.11030228435993195, -0.060723766684532166, -0.3613393306732178, 0.31818336248397827, 0.1899963766336441, -0.27446895837783813, -0.3287583887577057, 0.1643839031457901, 0.2621648907661438, 0.04947562515735626, -0.15733127295970917, 0.23797652125358582, 0.07786200940608978, -0.1574309915304184, -0.41629818081855774, 0.10444438457489014, 0.6891820430755615, -0.14875911176204681, 0.10670007765293121, -0.11235873401165009, -0.11622676998376846, 0.16445675492286682, -0.19825831055641174, 0.09211589395999908, 0.11083360016345978, -0.05008819326758385, 0.03157242387533188, -0.025805003941059113, -0.2509806454181671, 0.06664396077394485, 0.22892987728118896, 0.1841471791267395, 0.31211715936660767, -0.11000359058380127, -0.1405964195728302, -0.25395408272743225, 0.07685677707195282, 0.13068978488445282, 0.5098467469215393, 0.019148841500282288, 0.1812543421983719, 0.36501577496528625, 0.029745537787675858, -0.07100161910057068, -0.1195959746837616, -0.07473508268594742, 0.6595298647880554, 0.2114693969488144, -0.37628114223480225, -0.3568398356437683, 0.5436474680900574, -0.01967141032218933, -0.2051057070493698, -0.2914202809333801, 0.6835457682609558, -0.40777280926704407, 0.2534976601600647, 0.5497310161590576, 0.9744488000869751, -0.03745931014418602, 0.2863141596317291, -0.2648162841796875, 0.19900362193584442, 0.569747805595398, -0.14440570771694183, -0.07424402236938477, -0.09386292099952698, 0.14450788497924805, -0.3599352240562439, 0.19863946735858917, 0.14885196089744568, 0.32457655668258667, -0.7072691917419434, 0.2890153229236603, 0.185867041349411, -0.08244149386882782, 0.09336291998624802, 0.07561028003692627, 0.33672311902046204, -0.5600147843360901, -0.16596384346485138, -0.0831453874707222, 0.19204962253570557, 0.1824832558631897, -0.13492882251739502, -0.08794700354337692, 0.5826053023338318, -0.021005138754844666, -0.4990071654319763, 0.04528370499610901, -0.28142619132995605, -0.2888809144496918, 0.000538904219865799, -0.034759946167469025, 0.6878588795661926, 0.35678619146347046, 0.6128689050674438, 0.22558937966823578, -0.2492445409297943, -0.007197813130915165, 0.1721435785293579, -0.15049059689044952, -0.26527273654937744, -0.07648614048957825, 0.5720116496086121, -0.13820433616638184, -0.32548201084136963, 0.2795308530330658, 0.101545549929142, -0.3372756540775299, -0.08188651502132416, -0.39894354343414307, 0.5842716693878174, -0.014415539801120758, -0.12398703396320343, 0.059843599796295166, 0.10225620865821838, -0.19709131121635437, 0.0016729380004107952, 0.087196484208107, -0.16829848289489746, 0.13068810105323792, 0.16201439499855042, -0.39738699793815613, -0.08148880302906036, 0.15894503891468048, 0.09320411086082458, -0.08492394536733627, 0.6222240924835205, 0.2137710005044937, 0.05199776589870453, -0.2164437621831894, 0.05645284056663513, 0.34216901659965515, -0.3368005156517029, 0.2119738906621933, 0.15991009771823883, -0.02010086178779602, 0.1936511993408203, 0.5828649997711182, 0.2529813051223755, -0.19698311388492584, -0.226426362991333, -0.12625040113925934, -0.22130730748176575, -0.1293240338563919, -0.14378024637699127, 0.20005306601524353, 0.21887627243995667, 0.03991212695837021, 0.421678364276886, 0.3823932111263275, -0.06770240515470505, -0.2510090172290802, -0.12766218185424805, 0.11367534101009369, 0.25481298565864563, 0.14916682243347168, -0.03944515809416771, 0.09818866848945618, -0.06175515800714493, 0.2860832214355469, 0.21412794291973114, 0.03487890586256981, -0.15731318295001984, 0.2046242207288742, 0.0016037169843912125, 0.009438075125217438, -0.17038695514202118, -0.01697426661849022, -0.13626806437969208, -0.1141248568892479, -0.13131095468997955, 0.098591648042202, 0.2123112678527832, 0.4492028057575226, 0.3921928405761719, -0.058469511568546295, -0.2855449318885803, -0.18868380784988403, 0.21769565343856812, 0.0627676472067833, -0.08515843749046326, -0.03326379880309105, -0.05417510122060776, -0.12859772145748138, -0.03438656032085419, 0.2448507845401764, 0.5551087856292725, 0.19816140830516815, 0.12985821068286896, 0.15632739663124084, -0.15945535898208618, -0.09692050516605377, 0.07317150384187698, -0.051152341067790985, 0.16409045457839966, -0.25597071647644043, 0.5922890901565552, -0.052408430725336075, -0.2567976713180542, -0.0770827904343605, 0.17800813913345337, -0.058196816593408585, -0.08122189342975616, 0.029810283333063126, -0.1027335673570633, 0.3521800637245178, 0.22113879024982452, -0.11635379493236542, -0.42403608560562134, 0.2813403308391571, 0.08341929316520691, 0.5365973114967346, 0.25047868490219116, 0.18999534845352173, 0.1743186116218567, 0.30439409613609314, 0.5802152156829834, 0.53960120677948, -0.09466971457004547, 0.15692511200904846, -0.1880413293838501, 0.26276570558547974, 0.5272641777992249, -0.16578252613544464, -0.04900950565934181, 0.06623394787311554, 0.05099710822105408, 0.1888045072555542, 0.024065641686320305, 0.406795859336853, 0.1684361696243286, -0.13464033603668213, -0.4231342375278473, 0.20940938591957092, 0.14487457275390625, -0.4133071303367615, -0.11386062949895859, 0.08265742659568787, 0.2206774652004242, -0.07437770813703537, -0.11683989316225052, 0.029040252789855003, 0.15809296071529388, 0.21919207274913788, 0.3983958065509796, -0.0463252030313015, -0.07839499413967133, -0.05471382662653923, 0.2943124771118164, -0.08525442332029343, 0.29565680027008057, -0.24215233325958252, 0.17890812456607819, 0.14894181489944458, 0.41706156730651855, -0.11888287961483002, 0.2679029107093811, -0.15685001015663147, 0.08773387968540192, -0.12925605475902557, 0.04783216863870621, 0.1877613663673401, 0.06049007922410965, 0.23242329061031342, -0.06591169536113739, 0.3413059115409851, -0.09772681444883347, 0.0566997155547142, 0.2536103129386902, 0.12283241748809814, 0.3264484107494354, -0.2582107186317444, 0.201304093003273, 0.3605731427669525, 0.3606324791908264, -0.3829975426197052, 0.3268383741378784, -0.44277453422546387, 0.3775327801704407, -0.2477121651172638, -0.29686644673347473, -0.15045520663261414, 0.22910508513450623, -0.06322233378887177, 0.04473874345421791, 0.4278225302696228, 0.5208467245101929, 0.23112866282463074, -0.05741538107395172, -0.230002760887146, -0.21742895245552063, -0.02947639673948288, 0.1514998823404312, -0.11825819313526154, 0.08441704511642456, -0.2819283604621887, 0.05979101359844208, 0.016807550564408302, 0.04663161560893059, 0.023367781192064285, -0.5602830648422241, 0.1847173124551773, -0.1549166440963745, 0.003054410219192505, -0.1352066993713379, 0.30561327934265137, -0.0823097676038742, 0.08964705467224121, -0.014675363898277283, 0.210007905960083, -0.21709397435188293, 0.13301339745521545, 0.08214603364467621, -0.18455857038497925, 0.22502203285694122, 0.2851870357990265, -0.19433584809303284, 0.299040287733078, -0.2385920286178589, 0.39766407012939453, 0.0766034871339798, 0.058629631996154785, -0.3067617416381836, -0.1804475039243698, 0.3098560571670532, 0.1983601450920105, -0.2711746096611023, 0.28065401315689087, -0.07281128317117691, -0.14151710271835327, 0.1355852484703064, 0.040057044476270676, -0.6012181043624878, 0.1438588798046112, 0.029228106141090393, -0.22438538074493408, 0.13262119889259338, 0.1417180895805359, -0.17053045332431793, -0.025620102882385254, -0.30788129568099976, 0.060242436826229095, 0.3240748643875122, -0.1584218442440033, -0.12221069633960724, -0.3839443624019623, -0.29240310192108154, 0.24981006979942322, -0.3335628807544708, -1.1292831897735596, 0.15863698720932007, 0.34052690863609314, 0.2833715081214905, -0.22436220943927765, 0.1930166780948639, 0.07102905213832855, 0.12552453577518463, -0.3565334677696228, 0.5560404658317566, 0.24317815899848938, 0.10638321191072464, -0.3350411653518677, -0.29914385080337524 ]
https://github.com/huggingface/datasets/issues/2129
It would probably require a bit of tweaking, but you can apply it to a dataset, yes. This should give you a new dataset with sentence pairs you can train a model on. You can find the documentation about dataset processing here: https://huggingface.co/docs/datasets/processing.html#processing-data-with-map
How to train BERT model with next sentence prediction?
Hello. I'm trying to pretrain the BERT model with next sentence prediction. Is there any function that supports next sentence prediction like ` TextDatasetForNextSentencePrediction` of `huggingface/transformers` ?
43
How to train BERT model with next sentence prediction? Hello. I'm trying to pretrain the BERT model with next sentence prediction. Is there any function that supports next sentence prediction like ` TextDatasetForNextSentencePrediction` of `huggingface/transformers` ? It would probably require a bit of tweaking, but you can apply it to a dataset, yes. This should give you a new dataset with sentence pairs you can train a model on. You can find the documentation about dataset processing here: https://huggingface.co/docs/datasets/processing.html#processing-data-with-map
[ 0.2216070592403412, -0.4078705310821533, 0.024591200053691864, -0.12425871193408966, 0.03434861823916435, -0.18445852398872375, 0.09041376411914825, 0.022120431065559387, -0.05100848153233528, 0.0038792937994003296, 0.03292571008205414, 0.0937427282333374, -0.18825003504753113, 0.17367534339427948, 0.3407389223575592, -0.6513747572898865, 0.12976187467575073, 0.1553863286972046, -0.0457979291677475, -0.07448689639568329, -0.03039661794900894, 0.11387377232313156, -0.2975049614906311, 0.3866288661956787, -0.2856273949146271, 0.16757753491401672, -0.34795206785202026, -0.1773994266986847, 0.06667263060808182, -0.29512929916381836, 0.41423386335372925, 0.47324490547180176, 0.4460682272911072, 0.25219637155532837, -0.0001230382767971605, -0.21527498960494995, 0.13028518855571747, -0.3177435100078583, 0.23018302023410797, -0.42619645595550537, -0.2667486369609833, 0.03936795890331268, 0.20274454355239868, -0.12609028816223145, -0.3113481402397156, 0.5966159701347351, 0.2558300495147705, -0.21176868677139282, 0.6537805199623108, 0.07165616750717163, 0.045186735689640045, -0.16890540719032288, 0.2814646363258362, -0.009518902748823166, 0.1461716890335083, 0.1682043820619583, 0.051208026707172394, -0.07517487555742264, 0.6243177652359009, -0.3600688576698303, -0.2291107475757599, 0.19854117929935455, 0.006369665265083313, -0.05403531715273857, 0.2797684073448181, 0.26024362444877625, -0.014422565698623657, -0.3843041956424713, -0.2895086109638214, 0.4200863838195801, 0.5511065125465393, -0.31328558921813965, -0.4524235129356384, -0.24476754665374756, 0.22259733080863953, 0.14618945121765137, 0.06927888095378876, -0.23829668760299683, -0.13587906956672668, 0.2170274555683136, 0.0773826465010643, -0.4006279408931732, -0.34533411264419556, -0.031248338520526886, -0.1051407903432846, 0.38635098934173584, -0.05170295387506485, -0.19757413864135742, 0.3232114017009735, -0.15451526641845703, -0.03877440094947815, -0.030608946457505226, 0.08359301090240479, 0.5048012137413025, -0.20430618524551392, -0.4376600980758667, -0.3445558249950409, 0.20679977536201477, 0.05533395707607269, -0.12079527229070663, -0.22736768424510956, 0.07055511325597763, -0.4263336658477783, -0.10157200694084167, 0.4228080213069916, 0.20614579319953918, -0.07798496633768082, 0.16556105017662048, -0.2637423574924469, 0.03221842274069786, -0.22986480593681335, -0.15234121680259705, -0.09865538775920868, 0.02673253044486046, 0.089384064078331, -0.08126668632030487, -0.26306259632110596, -0.2469579428434372, 0.11775165051221848, -0.016883203759789467, -0.2530953586101532, -0.03111007809638977, -0.0024540703743696213, -0.007882710546255112, -0.23937687277793884, 0.3082728981971741, 0.003243491053581238, 0.15898193418979645, -0.027388982474803925, -0.0793851986527443, 0.12869153916835785, -0.2796347141265869, -0.29765522480010986, 0.5216559171676636, -0.0006239116191864014, 0.010139130055904388, 0.135413259267807, -0.138097882270813, -0.057540372014045715, 0.09338776767253876, -0.3288877308368683, -0.31229540705680847, -0.10335046797990799, -0.13624319434165955, -0.4028111696243286, 0.10464879870414734, -0.07668471336364746, 0.4250040054321289, -0.09738965332508087, -0.014191888272762299, -0.2520747780799866, -0.028615929186344147, -0.140652596950531, -0.058814745396375656, -0.18186697363853455, -0.31516334414482117, 0.10492099821567535, 0.5339120030403137, -0.04806767404079437, -0.2282012701034546, 0.08228661119937897, 0.23022940754890442, -0.4096052050590515, 0.12468074262142181, 0.19779562950134277, 0.25218212604522705, -0.4910140633583069, -0.3078063130378723, 0.07364323735237122, 0.1320020854473114, 0.08597201108932495, 0.017237193882465363, 0.17391252517700195, 0.1844785511493683, 0.06578017771244049, 0.1815822422504425, -0.12849274277687073, -0.12418510019779205, 0.03655610978603363, 0.07874368131160736, 0.04174601286649704, 0.40492188930511475, -0.1343841552734375, 0.03249721974134445, 0.031370602548122406, -0.1705058366060257, -0.023556150496006012, 0.11465422809123993, -0.15726415812969208, -0.19150221347808838, 0.18699906766414642, -0.17935261130332947, -0.06077100709080696, -0.07136563211679459, 0.0958518385887146, 0.20799565315246582, -0.3159269094467163, 0.5599300861358643, 0.19242613017559052, -0.03770255669951439, 0.07847583293914795, 0.012663498520851135, 0.08054666221141815, 0.4914737641811371, -0.00419916957616806, -0.346273273229599, -0.19723421335220337, 0.07380963116884232, -0.04340033233165741, -0.08618849515914917, 0.0072642117738723755, 0.09662528336048126, 0.023781459778547287, 0.0962054505944252, -0.059167955070734024, -0.206782728433609, -0.04116807132959366, -0.1293235421180725, -0.11540868878364563, 0.0758729875087738, -0.3743762671947479, 0.14794212579727173, 0.1461743712425232, 0.12460546940565109, -0.16979332268238068, 0.20566198229789734, -0.01493093091994524, -0.04435931518673897, -0.05724736303091049, 0.17984747886657715, 0.002571679651737213, 0.0809474065899849, 0.13360218703746796, 0.13282817602157593, 0.18270936608314514, 0.1997077912092209, 0.0009614918380975723, -0.1804952174425125, 0.12443272024393082, -0.361966073513031, -0.12114298343658447, 0.021470878273248672, -0.10501325130462646, -0.12916113436222076, -0.13156092166900635, 0.11971685290336609, 0.41417035460472107, 0.04277767613530159, -0.10376716405153275, 0.013847224414348602, -0.15204711258411407, 0.027994848787784576, -0.0964471623301506, -0.34771105647087097, 0.08619435876607895, 0.05400652438402176, 0.25896188616752625, -0.050621241331100464, -0.19996847212314606, -0.3999040722846985, 0.20419162511825562, -0.09993770718574524, 0.09586672484874725, 0.6327776312828064, -0.1422078013420105, 0.06616512686014175, -0.13075987994670868, -0.2718040347099304, -0.014897644519805908, 0.10474805533885956, -0.06536591053009033, -0.09132666885852814, -0.016950981691479683, 0.0341922901570797, -0.1671375334262848, 0.031109850853681564, 0.19056838750839233, -0.20525982975959778, -0.20068272948265076, 0.14281103014945984, 0.20937451720237732, -0.2070283591747284, -0.1485775113105774, -0.0194258876144886, -0.14356648921966553, 0.0612080916762352, -0.3151903450489044, -0.4285088777542114, -0.12797406315803528, -0.49119269847869873, -0.10340064764022827, 0.25827524065971375, -0.014943343587219715, -0.38715359568595886, 0.1514901965856552, -0.04991159588098526, 0.15102361142635345, 0.28419870138168335, 0.1946389228105545, 0.12778091430664062, -0.20705080032348633, -0.22387908399105072, 0.02376873418688774, 0.04949921742081642, -0.0592208057641983, -0.17737001180648804, -0.26054802536964417, -0.09065092355012894, -0.039995841681957245, -0.0956391915678978, -0.3120402693748474, 0.28973615169525146, -0.24991905689239502, 0.12975823879241943, 0.29417556524276733, -0.07597235590219498, -0.20799241960048676, 0.04359449818730354, -0.01863395795226097, -0.009607195854187012, -0.07670733332633972, -0.22903889417648315, 0.24261347949504852, 0.2458159327507019, 0.1850922703742981, -0.03389070928096771, -0.21698860824108124, 0.34779053926467896, 0.35253044962882996, 0.1444898247718811, -0.03696789592504501, -0.11496292054653168, 0.026242047548294067, 0.16137276589870453, -0.3884991407394409, -0.16418501734733582, 0.10815472900867462, -0.5920631289482117, 0.18305757641792297, 0.1576794683933258, -0.0129234055057168, -0.366276353597641, 0.013203099370002747, -0.13702622056007385, -0.3882234990596771, -0.027666829526424408, -0.34688764810562134, 0.09628397971391678, -0.08107997477054596, -0.06874364614486694, -0.1157953292131424, 0.04566599428653717, 0.1158960685133934, 0.14348429441452026, -0.17672301828861237, 0.07955309748649597, 0.34181347489356995, -0.08829794824123383, 0.34239858388900757, 0.05960952863097191, 0.12528306245803833, -0.18892624974250793, 0.4627273976802826, 0.1235031932592392, -0.2810502350330353, 0.3817257583141327, 0.1742737740278244, -0.015312068164348602, -0.10777847468852997, -0.004732400178909302, -0.05731074884533882, -0.05847407877445221, 0.15139292180538177, 0.3700025677680969, 0.019186217337846756, 0.055875860154628754, -0.13860346376895905, -0.12502434849739075, 0.08580063283443451, -0.13679075241088867, 0.08017625659704208, -0.2657971978187561, 0.1514855921268463, -0.19070157408714294, -0.12607315182685852, 0.0377776175737381, -0.15975815057754517, -0.04737178236246109, -0.017587866634130478, 0.7697458267211914, -0.10356444120407104, 0.5713800191879272, -0.040064044296741486, -0.46352604031562805, -0.011036522686481476, 0.31628668308258057, -0.16767354309558868, -0.11237403005361557, 0.12196478247642517, 0.006117664277553558, 0.1712803840637207, 0.143792524933815, 0.025767816230654716, -0.0948600322008133, -0.15732410550117493, -0.3071131110191345, 0.20701491832733154, 0.2726220488548279, -0.27480658888816833, -0.3259216547012329, 0.24376216530799866, 0.22129547595977783, 0.12800365686416626, -0.1737731695175171, 0.2057463675737381, 0.0735681876540184, -0.09856187552213669, -0.46309366822242737, 0.03396482765674591, 0.7298448085784912, -0.19618993997573853, 0.0703769326210022, 0.03745929151773453, -0.14567044377326965, 0.12762868404388428, -0.220230832695961, 0.2877981662750244, 0.08834756910800934, 0.06210937350988388, 0.04533309489488602, -0.026322174817323685, -0.27039048075675964, 0.01580268144607544, 0.38813477754592896, 0.04164036363363266, 0.11263701319694519, -0.09561684727668762, -0.0024824626743793488, -0.22619019448757172, 0.08594213426113129, 0.13393133878707886, 0.448989599943161, -0.05248802900314331, 0.17001739144325256, 0.4762187600135803, 0.08107950538396835, -0.018765579909086227, -0.23459570109844208, -0.002460107207298279, 0.6682594418525696, 0.3292625844478607, -0.4029552936553955, -0.28957271575927734, 0.5090532302856445, -0.11437471956014633, -0.23800964653491974, -0.40680283308029175, 0.6209010481834412, -0.3231639266014099, 0.19403241574764252, 0.4422945976257324, 0.8429123759269714, -0.08869346231222153, 0.31129443645477295, -0.3545755445957184, 0.062465064227581024, 0.7213709354400635, -0.13411173224449158, -0.15592986345291138, 0.005830973386764526, 0.2178886979818344, -0.3336973786354065, 0.24885380268096924, 0.034331366419792175, 0.21943438053131104, -0.6571431159973145, 0.30256080627441406, 0.19460941851139069, 0.011152573861181736, 0.15942859649658203, -0.06426306068897247, 0.4093571603298187, -0.46541768312454224, -0.0820050984621048, -0.021349620074033737, 0.1665688157081604, 0.27054470777511597, -0.14558173716068268, -0.1580577790737152, 0.44088149070739746, 0.0572812557220459, -0.5037373304367065, -0.027096807956695557, -0.278669148683548, -0.4037693738937378, 0.08864053338766098, 0.0015840977430343628, 0.685059666633606, 0.42003729939460754, 0.5400067567825317, 0.2962404489517212, -0.3583510220050812, -0.003829782363027334, 0.07524320483207703, -0.09496806561946869, -0.2911291718482971, -0.02479368820786476, 0.5104464292526245, -0.1082378625869751, -0.34138697385787964, 0.22631317377090454, 0.0795210599899292, -0.3061786890029907, -0.26285532116889954, -0.24354830384254456, 0.5197250247001648, -0.00826256349682808, -0.001437455415725708, 0.06986792385578156, 0.19548897445201874, -0.14849883317947388, 0.05646926909685135, 0.14742755889892578, -0.23162652552127838, 0.012088796123862267, 0.12623068690299988, -0.26250821352005005, -0.04068616405129433, 0.1699935793876648, 0.07442086935043335, -0.11563295871019363, 0.5515826940536499, 0.3813837468624115, 0.023572102189064026, -0.14293606579303741, -0.04153168201446533, 0.287444531917572, -0.311737060546875, 0.17305228114128113, 0.14244453608989716, 0.10890154540538788, 0.11965413391590118, 0.5604649782180786, 0.3167201280593872, -0.20966745913028717, -0.17097559571266174, -0.07896368950605392, -0.4202406108379364, -0.1521322876214981, -0.1382853388786316, 0.0889519453048706, 0.2018941044807434, 0.22628739476203918, 0.43198513984680176, 0.48129963874816895, -0.13358089327812195, -0.1865680068731308, -0.15683218836784363, 0.1854759305715561, 0.16684402525424957, 0.050720635801553726, -0.0354783833026886, -0.03401796519756317, -0.04898105934262276, 0.3479299545288086, 0.24058276414871216, -0.03150758892297745, -0.16571570932865143, 0.11711150407791138, -0.08281648904085159, -0.01931898482143879, -0.1044519916176796, 0.129505917429924, 0.0014499947428703308, -0.05608811229467392, -0.1370190978050232, 0.12373478710651398, 0.3126099109649658, 0.3356463611125946, 0.4685327112674713, -0.16306225955486298, -0.36515486240386963, -0.235574871301651, 0.25330299139022827, 0.06074870750308037, -0.06531132757663727, -0.11763579398393631, -0.0481862835586071, -0.10567288845777512, 0.057690493762493134, 0.22470255196094513, 0.5772364139556885, 0.04160015657544136, 0.09995393455028534, 0.10009273886680603, -0.1463625729084015, -0.07937833666801453, 0.14567473530769348, -0.15243388712406158, 0.27491289377212524, -0.25943559408187866, 0.6059507727622986, 0.013249494135379791, -0.24880418181419373, 0.12194221466779709, 0.15603145956993103, 0.07124558091163635, -0.0755535364151001, 0.056312382221221924, -0.16634304821491241, 0.4083592891693115, 0.3118743300437927, -0.11102920025587082, -0.33721205592155457, 0.19570262730121613, 0.06593556702136993, 0.39421460032463074, 0.24622361361980438, 0.13594889640808105, 0.23960594832897186, 0.1566774696111679, 0.4447753131389618, 0.40755152702331543, -0.22556832432746887, 0.10096944123506546, -0.2790301442146301, 0.20178911089897156, 0.5044292211532593, -0.16689208149909973, -0.20034122467041016, 0.13333013653755188, 0.1274661272764206, 0.22780337929725647, -0.07699865102767944, 0.7284391522407532, 0.16802965104579926, -0.24336451292037964, -0.22036638855934143, 0.31280404329299927, 0.0742325559258461, -0.4544351100921631, -0.1270725429058075, -0.015298649668693542, 0.1933593899011612, -0.11922865360975266, -0.08438988029956818, -0.019944272935390472, 0.19794639945030212, 0.2530483603477478, 0.3101104497909546, -0.18507088720798492, -0.13991180062294006, -0.03653958812355995, 0.35617220401763916, -0.04652963951230049, 0.295549213886261, -0.13669973611831665, 0.06918893754482269, 0.20795676112174988, 0.34792497754096985, -0.07855212688446045, 0.15515655279159546, -0.09475952386856079, 0.1725800633430481, -0.16467159986495972, 0.06958489865064621, 0.2889026999473572, 0.05713045597076416, 0.1896817535161972, -0.04534493386745453, 0.2990151047706604, -0.04034007713198662, -0.027115877717733383, 0.2549428939819336, 0.012420743703842163, 0.43692347407341003, -0.3256872594356537, 0.1549675613641739, 0.24384722113609314, 0.35563135147094727, -0.3943241238594055, 0.30089259147644043, -0.498935341835022, 0.4902072250843048, -0.38255831599235535, -0.3178114593029022, -0.16491277515888214, 0.23184946179389954, -0.021892618387937546, 0.09850282222032547, 0.446431040763855, 0.606598436832428, 0.19102774560451508, -0.11231030523777008, -0.24408698081970215, -0.22961200773715973, -0.12215813994407654, 0.1418817788362503, 0.09937294572591782, -0.05586736649274826, -0.3151009678840637, 0.012243630364537239, 0.0761612206697464, -0.0800180435180664, -0.03888233006000519, -0.7266441583633423, 0.12296762317419052, -0.229717418551445, 0.044692013412714005, -0.25246870517730713, 0.20734013617038727, -0.036716803908348083, 0.32258546352386475, -0.03861222043633461, 0.2700696885585785, -0.18614749610424042, 0.18641865253448486, 0.04017613083124161, -0.2238376885652542, 0.07268127799034119, 0.13571548461914062, -0.11652105301618576, 0.1795516163110733, -0.15167716145515442, 0.33880215883255005, -0.021034371107816696, -0.017218220978975296, -0.2530866861343384, -0.3071557879447937, 0.12263093888759613, 0.25261595845222473, -0.24926945567131042, 0.17805224657058716, -0.0967136025428772, -0.16787880659103394, 0.1459290087223053, -0.01845107413828373, -0.6037927865982056, 0.024539008736610413, 0.07237564027309418, -0.22924460470676422, 0.10549578070640564, 0.23029716312885284, -0.16588474810123444, 0.036145977675914764, -0.33561742305755615, 0.003945626318454742, 0.3455244302749634, -0.20459261536598206, -0.08469269424676895, -0.29765647649765015, -0.3660684823989868, 0.32097312808036804, -0.2705563008785248, -1.1808881759643555, 0.08074259757995605, 0.2680934965610504, 0.38067588210105896, -0.09402811527252197, 0.19796910881996155, 0.04885077476501465, 0.096183642745018, -0.39954814314842224, 0.5143038034439087, 0.3337179124355316, 0.11033415794372559, -0.21281251311302185, -0.26570969820022583 ]
https://github.com/huggingface/datasets/issues/2128
Hi Good catch ! Thanks for reporting If you are interested in contributing, feel free to open a PR to fix this :)
Dialogue action slot name and value are reversed in MultiWoZ 2.2
Hi @yjernite, thank you for adding MultiWoZ 2.2 in the huggingface datasets platform. It is beneficial! I spot an error that the order of Dialogue action slot names and values are reversed. https://github.com/huggingface/datasets/blob/649b2c469779bc4221e1b6969aa2496d63eb5953/datasets/multi_woz_v22/multi_woz_v22.py#L251-L262
23
Dialogue action slot name and value are reversed in MultiWoZ 2.2 Hi @yjernite, thank you for adding MultiWoZ 2.2 in the huggingface datasets platform. It is beneficial! I spot an error that the order of Dialogue action slot names and values are reversed. https://github.com/huggingface/datasets/blob/649b2c469779bc4221e1b6969aa2496d63eb5953/datasets/multi_woz_v22/multi_woz_v22.py#L251-L262 Hi Good catch ! Thanks for reporting If you are interested in contributing, feel free to open a PR to fix this :)
[ 0.424868643283844, -0.3456933796405792, 0.017481353133916855, 0.480355829000473, -0.21027441322803497, -0.007141105830669403, 0.18279817700386047, 0.11194013059139252, -0.10078853368759155, 0.23865032196044922, -0.357991099357605, 0.1305641233921051, 0.023053783923387527, 0.39279186725616455, -0.023837726563215256, -0.27589935064315796, 0.09429202228784561, -0.013857144862413406, 0.04936862364411354, 0.13114485144615173, -0.4356464445590973, 0.5747426748275757, -0.593391478061676, 0.6446863412857056, -0.10715916752815247, -0.014253398403525352, 0.06340224295854568, 0.11113457381725311, -0.01942659541964531, -0.05739005655050278, 0.02148459106683731, 0.08640263974666595, -0.06867899000644684, 0.33537009358406067, -0.0001161957043223083, -0.2951158583164215, 0.2519218921661377, 0.11386748403310776, 0.01765020564198494, -0.030799783766269684, -0.2642221748828888, 0.08479435741901398, -0.12489917874336243, -0.13705852627754211, 0.23217587172985077, 0.18954364955425262, -0.07462359219789505, -0.08015917241573334, 0.27548864483833313, -0.07842624187469482, 0.11571229249238968, 0.164820596575737, 0.035743340849876404, -0.058054082095623016, -0.02158437669277191, 0.21988674998283386, -0.08244349807500839, 0.1995958536863327, 0.021218866109848022, 0.12683910131454468, 0.07498082518577576, 0.3417917788028717, -0.20100298523902893, 0.013219870626926422, -0.1365131139755249, 0.13743725419044495, -0.006453709676861763, 0.08071988821029663, -0.09426059573888779, 0.3944840729236603, 0.128001406788826, -0.2043231874704361, -0.25424811244010925, -0.3739619851112366, 0.22522547841072083, 0.010793298482894897, 0.2898096442222595, 0.36225980520248413, 0.1570696234703064, 0.20739425718784332, 0.0218987874686718, 0.21236376464366913, 0.20155738294124603, -0.12399423122406006, 0.08488485217094421, 0.30290406942367554, -0.16209036111831665, 0.08765280246734619, -0.33111026883125305, -0.24177943170070648, 0.006068021059036255, 0.24825052917003632, -0.2515793740749359, 0.11568991839885712, -0.42045268416404724, 0.20178744196891785, 0.033035069704055786, 0.34250715374946594, -0.00988488644361496, -0.11900197714567184, 0.24335309863090515, 0.10677637159824371, -0.19166597723960876, -0.12373347580432892, 0.20643603801727295, 0.3674930930137634, 0.32112669944763184, -0.25410646200180054, -0.1370895802974701, 0.2693678140640259, 0.2884451448917389, 0.07144929468631744, -0.01319345086812973, -0.5080451965332031, -0.26497727632522583, 0.05749919265508652, 0.3858117163181305, 0.0727555975317955, -0.18667012453079224, -0.11297643184661865, -0.22948697209358215, 0.06043780967593193, 0.6087937355041504, 0.14586158096790314, -0.31651735305786133, 0.4559130072593689, 0.18282289803028107, 0.29859450459480286, -0.03279080241918564, 0.07395318150520325, -0.0395367369055748, -0.21161946654319763, -0.22458162903785706, 0.23889930546283722, 0.1142522394657135, 0.4980136454105377, 0.24823692440986633, 0.2565268576145172, 0.6652234196662903, -0.02232268452644348, -0.04907061159610748, 0.14316445589065552, -0.07278823107481003, -0.21910226345062256, 0.1980552077293396, 0.5540354251861572, -0.08750740438699722, 0.22384370863437653, 0.039396122097969055, -0.07648549973964691, -0.5501936674118042, -0.14358599483966827, 0.11709631979465485, 0.12500493228435516, 0.07817746698856354, 0.1016249805688858, -0.0038584768772125244, -0.18536409735679626, 0.23740226030349731, -0.16186070442199707, 0.19595038890838623, 0.15657006204128265, -0.2136681079864502, -0.11770142614841461, -0.17996802926063538, 0.033535853028297424, 0.27662715315818787, 0.04548326134681702, 0.1398201733827591, 0.026012763381004333, 0.08690968155860901, 0.21264514327049255, -0.16198405623435974, -0.12176427245140076, -0.35245591402053833, 0.32362544536590576, -0.10488710552453995, -0.5939316749572754, -0.028926804661750793, -0.08068419247865677, -0.32537317276000977, 0.09640922397375107, 0.2077779322862625, -0.0007428266108036041, -0.05229157209396362, -0.23527127504348755, 0.3298332095146179, 0.05404107645153999, 0.25771471858024597, 0.2721787095069885, -0.1492697149515152, -0.2556464374065399, 0.47652995586395264, -0.3049311637878418, -0.2597443461418152, 0.06223083660006523, -0.31831395626068115, 0.16149602830410004, 0.5554068684577942, -0.02443135902285576, -0.14629751443862915, 0.058714788407087326, -0.13424178957939148, 0.18563301861286163, 0.40088990330696106, -0.05928410589694977, -0.2871951460838318, 0.17100083827972412, -0.7374218702316284, -0.19462215900421143, 0.2939944565296173, 0.027317382395267487, -0.029029279947280884, -0.029599521309137344, -0.3857560157775879, -0.10960811376571655, 0.10729570686817169, 0.07467220723628998, -0.18316051363945007, -0.37497812509536743, -0.2076360136270523, 0.7400957345962524, 0.05447719991207123, 0.14941085875034332, -0.09582576155662537, 0.03850571811199188, -0.0018460927531123161, 0.09115640819072723, -0.028744429349899292, 0.30574244260787964, 0.41415727138519287, 0.17092806100845337, -0.04306358844041824, 0.6762661933898926, -0.016332918778061867, 0.2083844691514969, -0.023160163313150406, -0.2112206667661667, 0.08026855438947678, -0.08808243274688721, 0.22062094509601593, 0.07090400159358978, -0.19411420822143555, 0.10242210328578949, -0.10426860302686691, 0.6511008739471436, -0.24122999608516693, 0.0029582716524600983, -0.07783189415931702, 0.06698379665613174, -0.024816088378429413, -0.050984594970941544, -0.4145665466785431, -0.29641109704971313, 0.19800102710723877, 0.0032162759453058243, -0.1446508765220642, 0.18420056998729706, -0.467792272567749, 0.01899493858218193, 0.5268552303314209, 0.00364578515291214, 0.11615809798240662, -0.1344461441040039, 0.049361757934093475, -0.1965813934803009, 0.140163391828537, 0.30953505635261536, 0.21365970373153687, 0.1553584635257721, -0.21793553233146667, 0.033386774361133575, -0.1488153040409088, 0.00756155326962471, 0.2790917158126831, -0.11654499173164368, -0.06713306158781052, 0.1257619708776474, 0.17859295010566711, 0.0813036561012268, -0.0708082765340805, 0.516392171382904, 0.20127205550670624, -0.17686711251735687, -0.4543134570121765, -0.4007062613964081, -0.3898669183254242, -0.21145522594451904, -0.3471464514732361, -0.5310078859329224, -0.21301206946372986, -0.049122560769319534, 0.09001673012971878, -0.16681449115276337, 0.17894390225410461, 0.21629726886749268, 0.22278767824172974, 0.05562489479780197, 0.009474217891693115, 0.4551239609718323, -0.14282052218914032, 0.18387705087661743, 0.02561819925904274, 0.0008188523352146149, -0.37955108284950256, 0.21412110328674316, 0.008938057348132133, -0.12963524460792542, -0.2861486077308655, -0.2201644331216812, -0.34706437587738037, 0.1366153061389923, 0.011150503531098366, -0.2331492006778717, 0.13790395855903625, -0.06103290244936943, 0.3058898150920868, -0.3460124731063843, 0.2869269549846649, 0.19757139682769775, -0.07331043481826782, 0.2513197362422943, -0.05235009267926216, -0.18828976154327393, -0.28629451990127563, -0.05198972299695015, 0.1491795927286148, -0.04572339355945587, 0.5657224655151367, -0.0610189214348793, 0.15356427431106567, 0.21297578513622284, -0.439694881439209, -0.14460763335227966, -0.3862571120262146, 0.3639070391654968, -0.3491976261138916, -0.3759961724281311, 0.2740391790866852, -0.23828306794166565, -0.007624400779604912, -0.28740423917770386, 0.08024410158395767, 0.08123072981834412, -0.24731667339801788, 0.23499715328216553, -0.42889007925987244, -0.24342907965183258, -0.22023750841617584, 0.29200565814971924, 0.014921857044100761, 0.14979755878448486, 0.1676972657442093, 0.03719490021467209, -0.2795482277870178, -0.35796424746513367, 0.4529721438884735, 0.4093857407569885, 0.31688499450683594, 0.14655788242816925, -0.31831836700439453, 0.14415043592453003, -0.13150551915168762, 0.19157223403453827, 0.42374980449676514, -0.040343597531318665, -0.05466384440660477, -0.15758554637432098, 0.09401871263980865, -0.42233020067214966, 0.4233854413032532, 0.09297605603933334, 0.253391832113266, 0.13029426336288452, 0.18422681093215942, -0.005336608737707138, -0.03245639055967331, 0.2600786089897156, -0.5889778137207031, -0.24076755344867706, -0.44626906514167786, 0.16366086900234222, -0.07696710526943207, -0.0008847862482070923, -0.14934135973453522, -0.38157162070274353, -0.00777849555015564, 0.36460307240486145, -0.06823626160621643, -0.10933573544025421, -0.21075980365276337, -0.2921125292778015, 0.06834530830383301, 0.09841330349445343, 0.09794111549854279, -0.0030865930020809174, 0.0732312947511673, 0.20953060686588287, -0.011197403073310852, 0.09096860885620117, -0.07229012250900269, 0.8490331172943115, 0.38086944818496704, 0.1589617133140564, -0.1371573507785797, 0.05859288573265076, -0.3818633556365967, -0.34671205282211304, -0.2079804241657257, 0.21966665983200073, 0.10291481018066406, 0.2258722335100174, 0.013581663370132446, -0.3630977272987366, 0.3829047679901123, -0.4260430335998535, -0.14061938226222992, -0.2655017375946045, -0.027305208146572113, 0.3439026176929474, -0.1893530935049057, -0.4021933078765869, -0.16281163692474365, 0.19362130761146545, -0.07127360254526138, -0.20609527826309204, 0.2878333032131195, 0.019636474549770355, 0.12061531841754913, -0.06545297801494598, 0.2733004689216614, 0.3706094026565552, -0.07061241567134857, 0.12106458842754364, 0.25036588311195374, -0.19851015508174896, -0.09209905564785004, 0.2520003020763397, -0.16731992363929749, -0.19303259253501892, -0.31559044122695923, 0.07802814245223999, 0.5454152822494507, -0.354897677898407, 0.19366562366485596, -0.05911301076412201, 0.34583139419555664, -0.18935562670230865, -0.1768040955066681, 0.6700113415718079, 0.21719184517860413, 0.059832412749528885, -0.2858707904815674, 0.07239273190498352, 0.04446355253458023, -0.3967035114765167, 0.16018623113632202, 0.3718758523464203, -0.2270289957523346, -0.39775872230529785, 0.06561357527971268, 0.902618408203125, 0.07392296195030212, -0.020497046411037445, 0.5355345606803894, -0.27251020073890686, 0.187435582280159, -0.008344762027263641, 0.014413479715585709, -0.027500204741954803, 0.27435174584388733, -0.0258423313498497, -0.08739703893661499, -0.07415696978569031, -0.05257625877857208, -0.3574901521205902, 0.129876047372818, -0.077358677983284, -0.20541125535964966, -0.3921937644481659, -0.2816852331161499, -0.059047993272542953, -0.4611428380012512, -0.12756487727165222, 0.04061984270811081, 0.02641686424612999, -0.035280197858810425, -0.1628303974866867, -0.13201524317264557, 0.11652825772762299, -0.05374008044600487, -0.2162317931652069, 0.0781155526638031, -0.618094801902771, -0.11730797588825226, 0.3643268942832947, 0.14410942792892456, 0.048934802412986755, 0.7493512630462646, 0.39921867847442627, 0.100493423640728, -0.10190672427415848, -0.03467104583978653, 0.03805870935320854, 0.14689959585666656, -0.2057351917028427, 0.2596019506454468, 0.05005262792110443, -0.09483849257230759, -0.27384644746780396, -0.3900846242904663, 0.20317459106445312, 0.22133557498455048, -0.2702948749065399, 0.14766278862953186, 0.1704067587852478, -0.1550687849521637, -0.13919027149677277, 0.2486211210489273, 0.39796167612075806, -0.11349073052406311, 0.07037322968244553, 0.03252498060464859, -0.2852582037448883, -0.07500503957271576, -0.16046665608882904, -0.1852906048297882, -0.03263470530509949, 0.3739662170410156, -0.09919793158769608, -0.20634040236473083, 0.2567954361438751, 0.3225005269050598, -0.09706652164459229, 0.044322118163108826, -0.04258519411087036, -0.22754040360450745, -0.13873742520809174, -0.02763049677014351, 0.23974290490150452, -0.3784756064414978, -0.13648107647895813, 0.060838960111141205, 0.2178940623998642, 0.3661237955093384, 0.0013342127203941345, -0.15553727746009827, -0.10576193034648895, 0.2193024903535843, 0.23865221440792084, -0.24830769002437592, -0.1474940925836563, 0.022912032902240753, 0.27194735407829285, -0.09555210173130035, -0.26665619015693665, 0.22501981258392334, -0.013728760182857513, 0.12349654734134674, 0.08066856116056442, -0.2712792158126831, 0.04725881293416023, 0.014038663357496262, 0.16862553358078003, -0.24455755949020386, -0.0775926262140274, -0.15665918588638306, -0.2303314059972763, 0.09860476106405258, -0.10597315430641174, -0.18054601550102234, 0.2839006185531616, -0.30587124824523926, -0.0257989801466465, -0.17839622497558594, 0.031036265194416046, 0.5340156555175781, 0.19806385040283203, 0.34273582696914673, 0.07379508763551712, -0.26959753036499023, -0.054884184151887894, -0.016934609040617943, -0.14950750768184662, -0.2583513557910919, -0.1543707549571991, -0.010881212539970875, -0.3470698595046997, -0.02554246038198471, 0.20651142299175262, 0.15993820130825043, -0.05661599338054657, 0.19925159215927124, 0.07567009329795837, -0.4159167408943176, -0.055566683411598206, 0.27460363507270813, 0.3202623724937439, -0.21265245974063873, 0.15993891656398773, -0.037931814789772034, -0.06892775744199753, 0.11960496008396149, -0.13381795585155487, -0.10152028501033783, 0.12735940515995026, -0.13961631059646606, -0.15326407551765442, 0.021179161965847015, -0.4035212993621826, -0.09856154024600983, 0.009617431089282036, -0.053123947232961655, 0.024526599794626236, -0.3315930962562561, 0.1222832053899765, 0.08533154428005219, -0.11640404164791107, 0.24020689725875854, 0.3083598017692566, 0.116484135389328, 0.16113914549350739, 0.1334277093410492, 0.30297598242759705, 0.02379942126572132, 0.08056527376174927, 0.461953341960907, 0.4842873811721802, -0.12081393599510193, -0.4640151858329773, 0.25373193621635437, -0.23798377811908722, 0.16309601068496704, 0.15704400837421417, 0.6198298335075378, -0.12271550297737122, -0.08650992810726166, -0.3934355080127716, 0.3281669616699219, -0.2067822962999344, -0.33102020621299744, -0.28289344906806946, -0.03224065899848938, -0.1390281319618225, -0.2844771444797516, -0.07418946921825409, 0.23608329892158508, 0.43542781472206116, 0.18579067289829254, -0.12638384103775024, -0.5862565636634827, -0.247672438621521, 0.16148319840431213, 0.15319280326366425, -0.2323201298713684, 0.24588122963905334, 0.17504364252090454, -0.09987412393093109, 0.2778575122356415, 0.40515998005867004, 0.19020584225654602, 0.31234732270240784, -0.09237805008888245, -0.03627852350473404, 0.08006836473941803, 0.04301365464925766, 0.0009693875908851624, -0.18734824657440186, 0.285610556602478, 0.2895577549934387, -0.05679909884929657, 0.07398834824562073, -0.1955510973930359, 0.13645942509174347, -0.06085297465324402, 0.20528165996074677, -0.12298426032066345, 0.37804287672042847, -0.42408549785614014, -0.03206951916217804, -0.2460835576057434, 0.08474993705749512, -0.49779200553894043, 0.021753087639808655, -0.13380171358585358, 0.08797981590032578, -0.038384534418582916, 0.10691871494054794, 0.06770481169223785, 0.3495078980922699, 0.2672063112258911, 0.20330509543418884, -0.05206706374883652, -0.01902523636817932, -0.08167756348848343, -0.26358819007873535, 0.06482136994600296, 0.591478705406189, 0.4455239474773407, 0.10269957035779953, -0.03898000717163086, -0.06547816842794418, -0.2587246000766754, 0.3318718671798706, -0.08064891397953033, 0.0748649463057518, -0.01597960852086544, -0.3904722332954407, 0.35144713521003723, 0.4120183289051056, 0.10349125415086746, 0.29829153418540955, 0.04278858006000519, 0.1380147784948349, 0.09909642487764359, -0.06827369332313538, 0.10410420596599579, 0.3699241280555725, -0.25380173325538635, -0.46203839778900146, -0.053759973496198654, 0.07159546762704849, -0.10991601645946503, -0.06808999180793762, -0.06285498291254044, -0.06395323574542999, -0.05057550221681595, -0.1750560998916626, -0.2207094132900238, -0.3777938485145569, 0.3229450583457947, -0.26595473289489746, -0.0538448691368103, -0.13118624687194824, -0.16329261660575867, 0.087498739361763, -0.18178287148475647, -0.4835095703601837, 0.48680999875068665, 0.18750014901161194, -0.07769859582185745, 0.15754994750022888, -0.07477487623691559, -0.04109836742281914, 0.24361655116081238, -0.03568127006292343, -0.28094184398651123, 0.5687158703804016, -0.2521858811378479, -0.05591883510351181, -0.13198475539684296, 0.451064795255661, -0.3866220712661743, -0.11061231046915054, -0.22379815578460693, -0.006583794951438904, 0.0902523398399353, 0.1736411452293396, -0.189689040184021, 0.20940575003623962, -0.1601657271385193, -0.25733429193496704, -0.12313315272331238, -0.00990123301744461, 0.5217808485031128, -0.3492457866668701, 0.28182950615882874, 0.11117438226938248 ]
https://github.com/huggingface/datasets/issues/2123
Hi, sadly I can't replicate the problem on my Windows machine. Try to update the library to the newest version with: ```bash pip install git+https://github.com/huggingface/datasets ```
Problem downloading GEM wiki_auto_asset_turk dataset
@yjernite ### Summary I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code. ### Steps to reproduce Code snippet: from datasets import load_dataset #dataset = load_dataset('gem', 'web_nlg_en') dataset = load_dataset('gem', 'wiki_auto_asset_turk') ``` **Expected behavior:** I expect the dataset to start downloading (download bar appears and progresses toward 100%) **Actual behavior:** Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more: Downloading: 36.6kB [00:00, 37.2MB/s] Downloading: 41.7kB [00:00, ?B/s] Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d... ### Is this a regression? No, it was the first time I was trying to download this dataset (same for the other ones). ### Debug info - Python version: Python 3.8.2 - OS version: Windows 10 Family
26
Problem downloading GEM wiki_auto_asset_turk dataset @yjernite ### Summary I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code. ### Steps to reproduce Code snippet: from datasets import load_dataset #dataset = load_dataset('gem', 'web_nlg_en') dataset = load_dataset('gem', 'wiki_auto_asset_turk') ``` **Expected behavior:** I expect the dataset to start downloading (download bar appears and progresses toward 100%) **Actual behavior:** Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more: Downloading: 36.6kB [00:00, 37.2MB/s] Downloading: 41.7kB [00:00, ?B/s] Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d... ### Is this a regression? No, it was the first time I was trying to download this dataset (same for the other ones). ### Debug info - Python version: Python 3.8.2 - OS version: Windows 10 Family Hi, sadly I can't replicate the problem on my Windows machine. Try to update the library to the newest version with: ```bash pip install git+https://github.com/huggingface/datasets ```
[ -0.081687793135643, -0.028080090880393982, -0.046475812792778015, 0.4495638608932495, 0.28069621324539185, 0.11595873534679413, 0.3161948323249817, 0.17786088585853577, 0.24703970551490784, -0.11711504310369492, 0.17666411399841309, 0.17229768633842468, 0.11423475295305252, -0.0033529773354530334, -0.1686284989118576, -0.1824520230293274, -0.015406627207994461, -0.07302775979042053, 0.059767257422208786, -0.1803475171327591, -0.02590956538915634, 0.21450354158878326, -0.1021222174167633, -0.1298859864473343, -0.2996249198913574, 0.13920645415782928, 0.07057543843984604, -0.057968128472566605, -0.2835351228713989, -0.08461610972881317, 0.5160743594169617, 0.015268931165337563, 0.05412477254867554, 0.36068716645240784, -0.00011917750089196488, -0.08839074522256851, 0.4347236752510071, -0.07555480301380157, -0.0962894856929779, -0.4143654406070709, -0.17496924102306366, -0.48330822587013245, 0.10668996721506119, -0.2166321575641632, 0.1262151002883911, 0.3857176899909973, -0.0858343094587326, 0.18573281168937683, 0.05520009621977806, 0.006707455962896347, 0.18971306085586548, 0.33245041966438293, 0.10762181133031845, -0.012392636388540268, 0.17071637511253357, -0.44813618063926697, -0.22145359218120575, 0.0033133812248706818, -0.17965805530548096, 0.1315108835697174, 0.03956124931573868, 0.19444812834262848, -0.09390448778867722, 0.3865467607975006, 0.1432819962501526, 0.16569784283638, -0.11273211240768433, -0.5313156843185425, 0.3458314836025238, 0.35034632682800293, 0.7223213315010071, -0.13621839880943298, -0.4294937252998352, -0.1829380989074707, 0.010977864265441895, 0.07251645624637604, 0.14563177525997162, 0.4450259804725647, -0.43671756982803345, 0.06262632459402084, -0.4804293215274811, -0.010816879570484161, -0.050439462065696716, 0.19699767231941223, -0.2779853940010071, 0.15387222170829773, -0.1802169531583786, 0.027548637241125107, 0.022401606664061546, -0.019343160092830658, -0.5223584771156311, -0.2752559781074524, -0.19004543125629425, 0.3314400315284729, -0.31892263889312744, 0.12277565896511078, 0.07557307183742523, 0.22142928838729858, 0.33137091994285583, 0.3213435709476471, 0.06061780825257301, 0.21028664708137512, -0.20321309566497803, 0.0687994509935379, 0.12377165257930756, 0.3406437933444977, -0.018902312964200974, -0.389757364988327, 0.24350525438785553, 0.14552313089370728, -0.009431540966033936, 0.0612482987344265, -0.1362195909023285, -0.05310732126235962, 0.20088645815849304, -0.3221501410007477, 0.1496373564004898, -0.10727228969335556, -0.14800168573856354, 0.3196875751018524, 0.1803126186132431, -0.08442875742912292, -0.12697672843933105, 0.22174513339996338, -0.30379223823547363, -0.12069413810968399, -0.1747680902481079, 0.35996678471565247, -0.17787693440914154, 0.1502552330493927, -0.03833756968379021, -0.19554884731769562, -0.0761464312672615, -0.08926382660865784, 0.29365965723991394, -0.3465346693992615, 0.4333965480327606, 0.13677451014518738, -0.152652770280838, -0.1169113740324974, -0.12875665724277496, -0.039041534066200256, 0.09819702804088593, 0.30597367882728577, 0.13162514567375183, 0.8464614152908325, -0.09537022560834885, -0.1950022280216217, -0.002344965934753418, -0.021980341523885727, -0.22240081429481506, -0.17219138145446777, -0.16156993806362152, 0.11617274582386017, -0.5253876447677612, -0.2442699670791626, -0.08053451776504517, 0.262337327003479, 0.18200694024562836, -0.13391166925430298, -0.04985562711954117, 0.05472197011113167, 0.03232397139072418, -0.20656025409698486, 0.5081894993782043, 0.6407991647720337, -0.18340632319450378, -0.09221751987934113, -0.06929730623960495, 0.04969281703233719, 0.47502854466438293, 0.02785935252904892, 0.05670662224292755, -0.2645195722579956, -0.07624594867229462, 0.33982396125793457, 0.15680605173110962, 0.04189969599246979, -0.6642844676971436, 0.25932103395462036, -0.11471392214298248, 0.34748998284339905, 0.045728858560323715, 0.14486537873744965, 0.07916811108589172, 0.21383392810821533, -0.29151856899261475, 0.21786624193191528, 0.0779673382639885, -0.16810879111289978, -0.3459097743034363, -0.5063446164131165, 0.0326995775103569, 0.0652405321598053, 0.10508355498313904, -0.03522610291838646, 0.09226861596107483, -0.029713617637753487, 0.3413633108139038, 0.27688756585121155, 0.27601295709609985, 0.10049396753311157, 0.16943374276161194, -0.19272315502166748, -0.03915661200881004, -0.1571122109889984, -0.09866859018802643, 0.43366989493370056, 0.5681735873222351, 0.07558301091194153, -0.04030543565750122, 0.05293358862400055, -0.23217478394508362, -0.0986361876130104, -0.28446897864341736, -0.061379171907901764, 0.032041192054748535, 0.1366153061389923, 0.2758432626724243, 0.30034932494163513, 0.0641757994890213, 0.058875635266304016, -0.027383532375097275, 0.07695266604423523, -0.0364975705742836, 0.18056681752204895, 0.11569754779338837, -0.15360808372497559, -0.1736178696155548, -0.038075223565101624, -0.02462061122059822, 0.12010309100151062, -0.1740361750125885, -0.00160251185297966, -0.2524646818637848, 0.13768821954727173, -0.0011996314860880375, -0.04219755530357361, 0.1814185529947281, 0.09248678386211395, -0.08200114220380783, 0.03425464779138565, 0.15879321098327637, 0.02406182885169983, -0.048247598111629486, 0.11658408492803574, 0.19641512632369995, 0.3760879635810852, -0.0156625434756279, 0.19761458039283752, 0.3015953600406647, -0.0230618417263031, -0.010158896446228027, -0.04835890978574753, 0.3486323356628418, -0.29175758361816406, -0.09285841882228851, -0.052928626537323, -0.12221445143222809, 0.2972126007080078, 0.5440855622291565, 0.14406780898571014, 0.10427947342395782, 0.27069783210754395, -0.3404788374900818, 0.05801574885845184, 0.007460912689566612, 0.5212213397026062, 0.27173691987991333, 0.1254093050956726, 0.24124111235141754, -0.335715651512146, 0.022784221917390823, -0.22539055347442627, 0.050449155271053314, 0.34119534492492676, 0.0310133695602417, 0.4100656807422638, 0.11522527039051056, 0.1589040458202362, -0.1292014718055725, -0.000782795250415802, 0.09249397367238998, 0.10122890025377274, -0.061356574296951294, -0.08277592808008194, -0.27904146909713745, 0.25508010387420654, 0.01913347840309143, -0.45206424593925476, -0.1873602569103241, -0.16901656985282898, -0.11129128932952881, 0.06013535335659981, 0.014931641519069672, -0.0829625129699707, -0.1273137927055359, -0.1843733787536621, -0.07799381762742996, -0.4661270081996918, -0.37616342306137085, -0.0393189936876297, -0.3338097631931305, -0.05436799302697182, 0.13496972620487213, -0.10559827089309692, 0.3403266668319702, -0.1259237378835678, 0.08955348283052444, -0.15391305088996887, -0.23830008506774902, 0.03642065078020096, -0.03915556147694588, 0.46488749980926514, -0.22741161286830902, 0.4167212247848511, -0.21836403012275696, -0.09464048594236374, 0.2081889808177948, -0.011789113283157349, 0.011748522520065308, 0.16015306115150452, 0.108400858938694, -0.1841401308774948, -0.1214255765080452, -0.24914488196372986, -0.3370250165462494, -0.3670066297054291, 0.05549551174044609, 0.17506691813468933, -0.0603153295814991, 0.12394992262125015, 0.23809431493282318, 0.050488390028476715, 0.07896913588047028, 0.059755101799964905, -0.054667238146066666, -0.3152783513069153, 0.7877443432807922, -0.09810715168714523, -0.4563620686531067, 0.25282222032546997, 0.01944918930530548, 0.32361507415771484, 0.1190219596028328, -0.5418387055397034, 0.19383080303668976, -0.20759904384613037, 0.25285589694976807, 0.3119233250617981, 0.13340574502944946, 0.06597824394702911, -0.3006308972835541, 0.08505802601575851, -0.14488479495048523, -0.06482218950986862, -0.05182809755206108, 0.034530602395534515, 0.25224679708480835, 0.0448782779276371, 0.280890554189682, 0.07305227220058441, 0.8497203588485718, 0.3471905589103699, -0.1278248429298401, 0.43303748965263367, 0.022269954904913902, 0.12226419895887375, 0.027523603290319443, -0.2162037193775177, -0.188128262758255, -0.2801280915737152, 0.19280488789081573, 0.1970999836921692, 0.25688520073890686, -0.19272065162658691, -0.07057914137840271, -0.03548451513051987, -0.45627421140670776, -0.35661250352859497, -0.156467467546463, 0.17494645714759827, 0.019850123673677444, 0.2528766095638275, 0.3252740502357483, 0.041969068348407745, -0.3157901465892792, 0.07094749808311462, 0.6042260527610779, -0.018089886754751205, 0.13276197016239166, 0.09600554406642914, 0.09638486057519913, -0.6682864427566528, 0.08018958568572998, -0.07313474267721176, 0.05244395509362221, -0.05863303691148758, 0.07503238320350647, 0.15584975481033325, -0.1677347719669342, 0.21046681702136993, -0.16857357323169708, 0.11924980580806732, -0.18134242296218872, -0.15010081231594086, -0.2522386908531189, -0.1885753870010376, 0.030153460800647736, -0.017100032418966293, 0.4971935451030731, 0.0676606222987175, -0.354714572429657, -0.04692937806248665, 0.0319271981716156, 0.19900648295879364, -0.1385645866394043, -0.2439803183078766, -0.27316907048225403, -0.45306503772735596, -0.3138136863708496, -0.16196230053901672, -0.15990671515464783, 0.3852408528327942, -0.1853049248456955, -0.2951051890850067, -0.07741567492485046, 0.2495991587638855, 0.1731642782688141, -0.03361354395747185, 0.33354857563972473, 0.1254875361919403, 0.4604848623275757, 0.09826327860355377, -0.049127232283353806, -0.205921933054924, 0.5613114237785339, 0.28769582509994507, 0.0040217675268650055, 0.04033860191702843, -0.3094996213912964, 0.0059943608939647675, 0.22278891503810883, -0.19435930252075195, 0.008887790143489838, -0.042796336114406586, 0.2556532323360443, -0.23047220706939697, 0.004415847361087799, 0.2676950693130493, -0.04390649497509003, -0.16576577723026276, -0.3439021110534668, 0.711081326007843, -0.1870894432067871, 0.007370978593826294, 0.18144752085208893, 0.31931203603744507, 0.11084644496440887, 0.19710475206375122, -0.10536683350801468, 0.7823939919471741, 0.031027423217892647, 0.006850742734968662, 0.09072396904230118, 0.006608642637729645, 0.428092896938324, -0.18397340178489685, 0.10171686112880707, -0.2968287169933319, 0.16755378246307373, -0.11274522542953491, 0.06549882888793945, -0.11942911148071289, 0.0317772775888443, -0.1100662499666214, 0.10770601779222488, -0.1043974757194519, 0.22212354838848114, 0.001460246741771698, 0.05884440988302231, -0.42587733268737793, -0.15709608793258667, -0.027179667726159096, 0.10529667139053345, 0.0811595618724823, 0.6855869293212891, 0.022678378969430923, -0.2424749732017517, -0.2606498599052429, -0.10972017049789429, -0.6135614514350891, 0.10319043695926666, 0.05003422126173973, -0.10132531821727753, -0.14354221522808075, -0.4398382008075714, 0.010419569909572601, 0.40394678711891174, 0.010089006274938583, 0.147742360830307, -0.3837982714176178, 0.25928089022636414, -0.35606804490089417, -0.08079491555690765, 0.1573888212442398, -0.09868372976779938, 0.09808526933193207, -0.22207948565483093, -0.2630309760570526, -0.05209200829267502, -0.10264952480792999, 0.2872571647167206, -0.18423132598400116, 0.09939566254615784, 0.16688022017478943, -0.0009769648313522339, -0.3264901638031006, 0.08992158621549606, -0.03641155734658241, -0.10962572693824768, 0.1086656004190445, 0.1119769960641861, 0.07540544122457504, 0.22908268868923187, 0.11395291984081268, -0.2653912603855133, -0.22748038172721863, 0.45596781373023987, -0.24838630855083466, 0.1248021051287651, 0.3189173936843872, -0.031828269362449646, -0.24073417484760284, -0.09669071435928345, -0.10995376855134964, 0.035934463143348694, -0.7207139134407043, -0.24189642071723938, 0.05264875665307045, 0.3125581443309784, -0.11537813395261765, -0.11670123040676117, 0.13478520512580872, -0.43126484751701355, -0.2894400358200073, -0.45843589305877686, 0.18004582822322845, 0.1059936136007309, -0.04088940843939781, 0.10172716528177261, -0.4367371201515198, -0.43327078223228455, 0.3100472688674927, 0.07613024860620499, -0.17049406468868256, 0.0007379241287708282, -0.108060821890831, -0.15161126852035522, 0.21512268483638763, 0.27281591296195984, 0.23047788441181183, 0.09916264563798904, -0.01507001556456089, 0.08015215396881104, -0.19008150696754456, -0.138388991355896, -0.1702752709388733, 0.19586610794067383, 0.14055511355400085, 0.021182656288146973, 0.19880405068397522, -0.08945482969284058, -0.21010276675224304, -0.10730607807636261, 0.21274319291114807, 0.010834693908691406, -0.044990140944719315, 0.0538577176630497, 0.06547477841377258, 0.41790327429771423, -0.41344785690307617, 0.10119887441396713, -0.07695842534303665, 0.8318886160850525, 0.04983231797814369, -0.022861916571855545, 0.5013241767883301, 0.11817383021116257, -0.1698734313249588, -0.1642746478319168, -0.09662890434265137, -0.11652512848377228, 0.3193698525428772, -0.2874976694583893, 0.47920113801956177, 0.14380888640880585, 0.12565983831882477, 0.33021748065948486, -0.059310540556907654, -0.05044844374060631, 0.20035520195960999, 0.2262878566980362, -0.13594180345535278, -0.14414538443088531, 0.016187556087970734, 0.028667084872722626, -0.019942820072174072, -0.08073925971984863, 0.12977661192417145, -0.2770058512687683, -0.21011677384376526, 0.041408464312553406, 0.5093348026275635, -0.13777534663677216, -0.17086322605609894, 0.4947824478149414, 0.05590765178203583, 0.3179510533809662, -0.04975106194615364, -0.053483739495277405, -0.15063557028770447, 0.39667022228240967, -0.1369428187608719, 0.3893028497695923, 0.020155567675828934, 0.12616266310214996, -0.4025038182735443, -0.4796629548072815, -0.06442023813724518, 0.07339424639940262, -0.12306296080350876, 0.2888695299625397, 0.08237512409687042, 0.3891581892967224, 0.07586181163787842, 0.004795324057340622, -0.4773795008659363, -0.015960626304149628, 0.04088544100522995, -0.08416864275932312, 0.050467029213905334, -0.3593045473098755, -0.18008920550346375, 0.3654739260673523, 0.07559698820114136, -0.1684398502111435, 0.3236733675003052, 0.10395761579275131, -0.17194108664989471, -0.6745164394378662, -0.04642829671502113, -0.07193710654973984, 0.06789326667785645, -0.27633851766586304, 0.06873032450675964, 0.2137107253074646, -0.15656468272209167, -0.07317543029785156, 0.0783226266503334, 0.3924456238746643, 0.3857095241546631, 0.08320146799087524, -0.014166433364152908, 0.029500644654035568, -0.03734145313501358, -0.2444288730621338, 0.3866627514362335, 0.24927380681037903, -0.039811309427022934, 0.11741697043180466, 0.09380865097045898, -0.25249308347702026, 0.13721591234207153, 0.03139698505401611, -0.03664261847734451, -0.22423003613948822, 0.649513840675354, -0.3568859398365021, 0.1387888789176941, -0.13060986995697021, -0.3363534212112427, -0.38082200288772583, -0.029645171016454697, 0.3237258195877075, 0.08746374398469925, 0.06380808353424072, -0.3256821930408478, 0.03429221361875534, -0.21439555287361145, 0.255211740732193, 0.1064571738243103, 0.14825615286827087, -0.28218671679496765, 0.08133840560913086, -0.729948878288269, -0.017394699156284332, 0.13751620054244995, 0.021474182605743408, -0.058358557522296906, 0.29935649037361145, -0.28977519273757935, 0.1507229059934616, 0.20902469754219055, -0.09645531326532364, 0.2572147846221924, 0.35062214732170105, -0.27753084897994995, -0.03178100287914276, -0.3194120526313782, -0.013292375020682812, -0.07512876391410828, -0.26886820793151855, 0.2787606120109558, -0.5796877145767212, -0.0678597241640091, -0.0651756003499031, 0.003957323729991913, 0.1840028315782547, -0.31041228771209717, 0.7294006943702698, 0.028063198551535606, 0.3549134135246277, -0.08167912811040878, -0.10186910629272461, -0.39294517040252686, 0.0522322840988636, -0.0009313039481639862, 0.19370312988758087, -0.14030428230762482, 0.29749345779418945, 0.07829831540584564, 0.09302501380443573, -0.13263198733329773, -0.11258377134799957, 0.12304611504077911, 0.28251251578330994, 0.000177040696144104, -0.30038732290267944, -0.04450536519289017, 0.08815626055002213, 0.22078651189804077, 0.31692615151405334, -0.1306287944316864, 0.17513969540596008, -0.19640403985977173, -0.2953554689884186, 0.39677417278289795, -0.36479702591896057, -0.1716308444738388, -0.08752797544002533, 0.16228711605072021, 0.340703547000885, -0.07468213140964508, -0.5330122709274292, 0.012223824858665466, 0.2591094672679901, -0.10607518255710602, -0.25068122148513794, 0.15627381205558777, 0.06404635310173035, -0.15459099411964417, -0.029387030750513077, 0.24503488838672638, 0.031132858246564865, -0.3094674050807953, 0.3645014762878418, -0.14937815070152283 ]
https://github.com/huggingface/datasets/issues/2123
Is there an error message ? What stacktrace do you get if you interrupt the execution of the program while downloading ?
Problem downloading GEM wiki_auto_asset_turk dataset
@yjernite ### Summary I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code. ### Steps to reproduce Code snippet: from datasets import load_dataset #dataset = load_dataset('gem', 'web_nlg_en') dataset = load_dataset('gem', 'wiki_auto_asset_turk') ``` **Expected behavior:** I expect the dataset to start downloading (download bar appears and progresses toward 100%) **Actual behavior:** Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more: Downloading: 36.6kB [00:00, 37.2MB/s] Downloading: 41.7kB [00:00, ?B/s] Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d... ### Is this a regression? No, it was the first time I was trying to download this dataset (same for the other ones). ### Debug info - Python version: Python 3.8.2 - OS version: Windows 10 Family
22
Problem downloading GEM wiki_auto_asset_turk dataset @yjernite ### Summary I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code. ### Steps to reproduce Code snippet: from datasets import load_dataset #dataset = load_dataset('gem', 'web_nlg_en') dataset = load_dataset('gem', 'wiki_auto_asset_turk') ``` **Expected behavior:** I expect the dataset to start downloading (download bar appears and progresses toward 100%) **Actual behavior:** Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more: Downloading: 36.6kB [00:00, 37.2MB/s] Downloading: 41.7kB [00:00, ?B/s] Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d... ### Is this a regression? No, it was the first time I was trying to download this dataset (same for the other ones). ### Debug info - Python version: Python 3.8.2 - OS version: Windows 10 Family Is there an error message ? What stacktrace do you get if you interrupt the execution of the program while downloading ?
[ -0.13216249644756317, 0.01423916220664978, -0.08156000077724457, 0.43999430537223816, 0.2992449104785919, 0.14021828770637512, 0.37947332859039307, 0.14778798818588257, 0.2320193499326706, -0.04262915253639221, 0.2344706654548645, 0.14406706392765045, 0.10741294920444489, -0.021876905113458633, -0.19619202613830566, -0.14184796810150146, -0.07749104499816895, -0.06995201110839844, 0.13318733870983124, -0.1573004424571991, -0.08628777414560318, 0.17461425065994263, -0.1601431667804718, -0.040290601551532745, -0.2822526693344116, 0.03166424483060837, 0.12520217895507812, 0.030636202543973923, -0.2620677053928375, -0.15334799885749817, 0.5731251239776611, 0.05439615622162819, 0.07772901654243469, 0.41277197003364563, -0.00011594791430979967, -0.037051618099212646, 0.4838814437389374, -0.08064237236976624, -0.09328077733516693, -0.43434762954711914, -0.29294896125793457, -0.42895808815956116, 0.14034274220466614, -0.30423834919929504, 0.25898611545562744, 0.36995747685432434, -0.04719363898038864, 0.12294233590364456, 0.1223154067993164, 0.06046963110566139, 0.20332732796669006, 0.26531022787094116, 0.09522971510887146, 0.012695841491222382, 0.2613676190376282, -0.50513756275177, -0.15506944060325623, 0.033940836787223816, -0.2403399795293808, 0.20697197318077087, 0.061353180557489395, 0.14254441857337952, -0.1477518081665039, 0.4220527708530426, 0.07426556944847107, 0.10518597811460495, -0.04626898467540741, -0.6357184648513794, 0.32058027386665344, 0.4154244661331177, 0.7859740853309631, -0.08363014459609985, -0.3444289565086365, -0.08041080832481384, 0.03736010193824768, 0.01711152493953705, 0.13685548305511475, 0.4656035006046295, -0.4767649471759796, 0.04954574257135391, -0.39803722500801086, 0.00676954910159111, -0.040577761828899384, 0.1948125958442688, -0.31154829263687134, 0.1401270478963852, -0.15466785430908203, 0.07386551797389984, -0.09895347058773041, 0.08637732267379761, -0.2981095612049103, -0.34272924065589905, -0.11500412225723267, 0.28186705708503723, -0.46541786193847656, 0.11564390361309052, 0.13179945945739746, 0.0213568527251482, 0.2442522794008255, 0.2795456349849701, 0.0694083571434021, 0.21858267486095428, -0.17330726981163025, 0.10269411653280258, 0.20111709833145142, 0.29092609882354736, -0.1033419817686081, -0.3722577393054962, 0.254700243473053, 0.11483260989189148, 0.002121545374393463, 0.0427103266119957, -0.12068399786949158, 0.003535732626914978, 0.23967944085597992, -0.2869569659233093, 0.23407123982906342, -0.12003964185714722, -0.20408374071121216, 0.3872784972190857, 0.03142138570547104, -0.0665430799126625, -0.18575166165828705, 0.2559366226196289, -0.16817042231559753, -0.08811252564191818, -0.14469210803508759, 0.30990931391716003, -0.15498507022857666, 0.10476265102624893, -0.08532440662384033, -0.1981690376996994, -0.03627718612551689, -0.13007165491580963, 0.214891716837883, -0.27139633893966675, 0.34525400400161743, 0.12410543113946915, -0.15398535132408142, -0.15738001465797424, -0.008105229586362839, -0.11004205048084259, 0.1143709123134613, 0.33902132511138916, 0.16030403971672058, 0.8072768449783325, -0.07441013306379318, -0.10661323368549347, -0.0066189244389534, 0.08227181434631348, -0.2562866508960724, -0.23049965500831604, -0.09002023935317993, 0.1575147807598114, -0.46142786741256714, -0.19368140399456024, -0.04241969808936119, 0.21538732945919037, 0.162654310464859, -0.18992796540260315, -0.08492337167263031, -0.009952927008271217, 0.05806298553943634, -0.25180643796920776, 0.47880473732948303, 0.5534900426864624, -0.30834314227104187, -0.02153685688972473, -0.11117595434188843, -0.0194273479282856, 0.4509568214416504, 0.0034098271280527115, 0.0026834942400455475, -0.03429105877876282, -0.0746411383152008, 0.3815184533596039, 0.3053489923477173, 0.03751876950263977, -0.6943235397338867, 0.2703821063041687, -0.18996672332286835, 0.26983535289764404, -0.06332649290561676, 0.14155173301696777, 0.13295342028141022, 0.18154248595237732, -0.3257969319820404, 0.2547837197780609, 0.007314348593354225, -0.1606895476579666, -0.3478211462497711, -0.5174867510795593, 0.10668335855007172, 0.09589766710996628, 0.1435387283563614, -0.0442357063293457, 0.1080910861492157, -0.02467973902821541, 0.3150685727596283, 0.29800137877464294, 0.20287251472473145, 0.15489685535430908, 0.13081081211566925, -0.22103586792945862, -0.09339873492717743, -0.1403893679380417, -0.0056309085339307785, 0.3707253932952881, 0.5322473049163818, 0.06015783175826073, -0.00915888324379921, 0.048692017793655396, -0.3059341609477997, -0.06592477858066559, -0.2911711037158966, -0.08816291391849518, 0.07568749785423279, 0.0847410187125206, 0.210838183760643, 0.35495179891586304, 0.01240047812461853, 0.08669164776802063, -0.06555068492889404, 0.07275951653718948, 0.04452461749315262, 0.21004536747932434, 0.04013035446405411, -0.1469336748123169, -0.2157849222421646, -0.11210037022829056, -0.03518025204539299, 0.04633737727999687, -0.2612461447715759, 0.11823153495788574, -0.23261669278144836, 0.08062712103128433, -0.017480280250310898, -0.1799471527338028, 0.08559896051883698, 0.07203979045152664, -0.07704721391201019, 0.0010036565363407135, 0.22715628147125244, -0.0208284854888916, 0.06484216451644897, 0.04804803431034088, 0.22591829299926758, 0.3803311586380005, -0.024913683533668518, 0.15953785181045532, 0.3419378399848938, -0.06403957307338715, 0.0453709214925766, 0.03324916213750839, 0.34000682830810547, -0.18625102937221527, -0.11970826983451843, -0.16744063794612885, -0.13240063190460205, 0.19077782332897186, 0.5834685564041138, 0.07616564631462097, 0.07216905057430267, 0.21466580033302307, -0.29844486713409424, 0.04526863247156143, 0.009208662435412407, 0.5815957188606262, 0.3240525722503662, 0.11710251122713089, 0.2098081409931183, -0.34706878662109375, 0.06776197254657745, -0.22484830021858215, 0.03454821556806564, 0.38473206758499146, 0.06527258455753326, 0.42563870549201965, 0.12019169330596924, 0.15149350464344025, -0.08371808379888535, -0.1162305623292923, 0.16352897882461548, 0.14167450368404388, -0.006844937801361084, -0.04290024936199188, -0.23254376649856567, 0.1540493667125702, 0.05981990322470665, -0.45422467589378357, -0.16087549924850464, -0.2700362801551819, -0.11197423189878464, -0.01154255773872137, 0.01201704889535904, -0.03200887143611908, -0.1950569748878479, -0.1726178377866745, -0.027160584926605225, -0.30077287554740906, -0.31058865785598755, -0.14251255989074707, -0.3204442858695984, -0.053546641021966934, 0.13488465547561646, -0.05968940258026123, 0.3072901666164398, -0.10359574854373932, 0.09555208683013916, -0.0590398944914341, -0.19237229228019714, 0.15067246556282043, 0.020946485921740532, 0.3641674220561981, -0.19459892809391022, 0.41042959690093994, -0.14341875910758972, -0.14195500314235687, 0.1534847468137741, -0.01618364080786705, 0.009125187993049622, 0.23766842484474182, 0.13524657487869263, -0.1796499490737915, -0.11438898742198944, -0.3453751802444458, -0.35166049003601074, -0.3800871968269348, -0.08705215156078339, 0.15931934118270874, -0.03950120136141777, 0.015103958547115326, 0.19471558928489685, 0.1441308856010437, 0.09858904033899307, -0.036461587995290756, -0.08534719049930573, -0.34600532054901123, 0.7302366495132446, -0.15468616783618927, -0.384649395942688, 0.2962004840373993, -0.07900983095169067, 0.29843148589134216, 0.13664835691452026, -0.5572382211685181, 0.2780168056488037, -0.24170753359794617, 0.20900368690490723, 0.18660826981067657, 0.03987635672092438, 0.10154105722904205, -0.25533685088157654, 0.05487286299467087, -0.12689462304115295, -0.04964541643857956, 0.0080503448843956, 0.08816187083721161, 0.31327036023139954, 0.002820698544383049, 0.3143163323402405, 0.02172711491584778, 0.9094253182411194, 0.2800856828689575, -0.11648142337799072, 0.3772395849227905, 0.050896354019641876, 0.07646466791629791, 0.0019649267196655273, -0.1339123398065567, -0.15276187658309937, -0.22878709435462952, 0.03070768713951111, 0.13792866468429565, 0.1020733192563057, -0.304021418094635, -0.10349839925765991, 0.008299626410007477, -0.46254533529281616, -0.40700334310531616, -0.20328977704048157, 0.14943352341651917, 0.05583072453737259, 0.2711264491081238, 0.3171422481536865, 0.053430549800395966, -0.19460098445415497, -0.013960421085357666, 0.5690127015113831, -0.04949585348367691, 0.03507869690656662, 0.09903723001480103, 0.20035076141357422, -0.5515699982643127, 0.10029774904251099, -0.04059956967830658, 0.07728558778762817, -0.07273494452238083, 0.09666028618812561, 0.1613285094499588, -0.16984501481056213, 0.18406838178634644, -0.26042166352272034, 0.08848771452903748, -0.07463054358959198, -0.0590103343129158, -0.3061174750328064, -0.2616584300994873, -0.06274879723787308, 0.00018020346760749817, 0.5773657560348511, -0.08712929487228394, -0.3358074128627777, 0.04492053762078285, 0.09695467352867126, 0.13663390278816223, -0.17198219895362854, -0.29329365491867065, -0.25317680835723877, -0.48756277561187744, -0.34305956959724426, -0.09709704667329788, -0.16722913086414337, 0.297410786151886, -0.2426983118057251, -0.3157047629356384, -0.10757102817296982, 0.31181877851486206, 0.09277127683162689, 0.02177206054329872, 0.29375916719436646, 0.04718855768442154, 0.37618082761764526, 0.08467576652765274, -0.1618998795747757, -0.08903873711824417, 0.5246003270149231, 0.42965370416641235, 0.022899147123098373, 0.09549580514431, -0.3499963879585266, 0.03995755687355995, 0.2479236125946045, -0.19042497873306274, 0.01606176048517227, -0.08250279724597931, 0.25245654582977295, -0.1452445089817047, 0.04140596464276314, 0.3016324043273926, -0.0441925935447216, -0.20935876667499542, -0.3414808511734009, 0.6050916314125061, -0.24462461471557617, -0.04573102295398712, 0.11852709203958511, 0.14048133790493011, 0.15210691094398499, 0.2632790505886078, -0.07819956541061401, 0.8599663972854614, 0.07722873985767365, -0.07744552940130234, 0.09890004992485046, -0.008411690592765808, 0.40279725193977356, -0.29126545786857605, 0.17713090777397156, -0.2803230285644531, 0.013239338994026184, -0.12996116280555725, -0.015846341848373413, -0.10592785477638245, 0.06550414860248566, -0.14702986180782318, 0.06472992897033691, -0.15146000683307648, 0.16608703136444092, -0.028856948018074036, 0.04859171807765961, -0.3781792223453522, -0.12385039031505585, 0.06219372898340225, 0.1417936235666275, 0.010171609930694103, 0.6449927091598511, -0.03195790946483612, -0.2541676461696625, -0.2328561246395111, -0.09898480027914047, -0.5923769474029541, 0.11343659460544586, 0.07270877063274384, -0.08705855906009674, -0.2581639587879181, -0.45965421199798584, 0.050005778670310974, 0.380504310131073, -0.0211777426302433, 0.16245152056217194, -0.31531304121017456, 0.21789619326591492, -0.30717194080352783, -0.06794840842485428, 0.14693683385849, -0.07498560100793839, 0.14096201956272125, -0.1598260998725891, -0.3013407588005066, 0.04540269821882248, -0.11861960589885712, 0.2993146479129791, -0.06795287132263184, 0.08145321160554886, 0.20126211643218994, -0.11598299443721771, -0.36734458804130554, 0.13972264528274536, -0.04266953840851784, -0.14235153794288635, 0.127245232462883, 0.1044209897518158, 0.03966387361288071, 0.24157945811748505, 0.142776221036911, -0.3163486123085022, -0.259321928024292, 0.3870815932750702, -0.2076290249824524, 0.21820145845413208, 0.39413347840309143, -0.07090047001838684, -0.24791361391544342, -0.11537256836891174, -0.08830271661281586, -0.10541808605194092, -0.612199068069458, -0.21860267221927643, -0.02519267238676548, 0.3561537563800812, -0.1614973247051239, -0.1336365044116974, 0.10485000163316727, -0.3490833044052124, -0.3628377318382263, -0.5235506892204285, 0.13061866164207458, 0.06568527221679688, -0.02339942380785942, 0.17819708585739136, -0.5028355121612549, -0.3716754913330078, 0.3024102747440338, 0.08826956897974014, -0.20605847239494324, -0.006234109401702881, -0.2363540232181549, -0.13770002126693726, 0.23463033139705658, 0.22154226899147034, 0.18333852291107178, -0.001646481454372406, 0.013803817331790924, 0.06701865792274475, -0.19243520498275757, -0.1775328516960144, -0.18763771653175354, 0.18687334656715393, 0.14358866214752197, -0.004631444811820984, 0.2212846279144287, -0.1453617662191391, -0.18252602219581604, -0.004302449524402618, 0.13728556036949158, -0.062171973288059235, -0.04820914566516876, 0.10475996881723404, 0.023688727989792824, 0.5183145403862, -0.5156227946281433, 0.1428273469209671, -0.12968775629997253, 0.814684271812439, 0.08470834791660309, -0.004963920451700687, 0.5043010115623474, 0.1296808123588562, -0.22719666361808777, -0.23994553089141846, -0.06626971811056137, -0.06191854178905487, 0.3137120306491852, -0.379598468542099, 0.555166482925415, 0.1559942364692688, 0.14055535197257996, 0.4373147189617157, -0.11521083116531372, -0.10677766799926758, 0.1859596073627472, 0.2554093599319458, -0.13789600133895874, -0.0159415565431118, 0.11334246397018433, 0.01644854247570038, -0.10426954925060272, -0.08873043954372406, 0.05887143313884735, -0.17156696319580078, -0.2014305293560028, 0.0903037041425705, 0.4766491651535034, -0.13435211777687073, -0.11199084669351578, 0.46839645504951477, -0.04340003430843353, 0.3703647553920746, 0.010677700862288475, -0.07692626863718033, -0.11061405390501022, 0.44710657000541687, -0.11432904005050659, 0.37923285365104675, 0.05930108577013016, 0.14559656381607056, -0.3888528347015381, -0.5082749724388123, -0.017624881118535995, 0.09170179814100266, -0.15102028846740723, 0.27232393622398376, 0.11233128607273102, 0.2418510913848877, 0.06167568638920784, 0.04011376574635506, -0.47178739309310913, 0.01855999231338501, -0.019047539681196213, 0.06522025167942047, 0.12120900303125381, -0.34139037132263184, -0.09843333065509796, 0.3095858693122864, 0.08073921501636505, -0.06618664413690567, 0.3439122438430786, 0.1642587035894394, -0.1780664622783661, -0.654658854007721, 0.06325682252645493, -0.11672529578208923, 0.05965172499418259, -0.3046340346336365, 0.00011115707457065582, 0.25763827562332153, -0.11488878726959229, -0.04865054041147232, 0.17230427265167236, 0.3171801269054413, 0.42720407247543335, -0.09244626015424728, -0.0012719593942165375, 0.11565089225769043, -0.10014137625694275, -0.15696898102760315, 0.32863131165504456, 0.27415406703948975, 0.07447922974824905, 0.21325372159481049, 0.12761448323726654, -0.259319931268692, 0.21500977873802185, 0.1319010704755783, 0.037473149597644806, -0.27500927448272705, 0.663489818572998, -0.28225183486938477, 0.14308016002178192, -0.18482108414173126, -0.3486424386501312, -0.3625611662864685, -0.040462370961904526, 0.3105907440185547, 0.04054718837141991, 0.04890315979719162, -0.28590092062950134, 0.04316451773047447, -0.2818434536457062, 0.25126931071281433, 0.12808305025100708, 0.20278505980968475, -0.3090597987174988, 0.13652023673057556, -0.7200749516487122, 0.06633157283067703, 0.07202886044979095, -0.07947938144207001, 0.013146013021469116, 0.3335937261581421, -0.27549609541893005, 0.2615026831626892, 0.3244897127151489, -0.13508588075637817, 0.13135266304016113, 0.4813814163208008, -0.2831988036632538, -0.07168745994567871, -0.3385831117630005, -0.1188429594039917, -0.1176452785730362, -0.2906942367553711, 0.2533261477947235, -0.5135533809661865, -0.040685318410396576, -0.03696824237704277, -0.10296021401882172, 0.228724867105484, -0.33766892552375793, 0.7718417644500732, 0.020432764664292336, 0.41817253828048706, -0.06258903443813324, -0.04740083962678909, -0.2577986419200897, 0.024953171610832214, -0.044273149222135544, 0.1935826539993286, -0.07008726894855499, 0.2800271511077881, 0.09499358385801315, 0.13585129380226135, -0.15604928135871887, -0.11389296501874924, 0.07983675599098206, 0.33663052320480347, -0.07489422708749771, -0.30741816759109497, -0.011857151985168457, 0.07366234809160233, 0.3071092665195465, 0.2668799161911011, -0.08829358220100403, 0.21867485344409943, -0.18768170475959778, -0.24987384676933289, 0.36289548873901367, -0.21849505603313446, -0.19085557758808136, -0.07032369077205658, 0.10192565619945526, 0.27780577540397644, -0.029884222894906998, -0.49024516344070435, 0.020685046911239624, 0.302543580532074, -0.14893369376659393, -0.26802581548690796, 0.15092487633228302, 0.06311772018671036, -0.12213822454214096, -0.02239421010017395, 0.25660523772239685, -0.0247101541608572, -0.252883642911911, 0.2719271183013916, -0.09673972427845001 ]
https://github.com/huggingface/datasets/issues/2123
Sorry for the long time since my last comment, I tried again and don't seem to have the problem anymore, thanks for your support!
Problem downloading GEM wiki_auto_asset_turk dataset
@yjernite ### Summary I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code. ### Steps to reproduce Code snippet: from datasets import load_dataset #dataset = load_dataset('gem', 'web_nlg_en') dataset = load_dataset('gem', 'wiki_auto_asset_turk') ``` **Expected behavior:** I expect the dataset to start downloading (download bar appears and progresses toward 100%) **Actual behavior:** Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more: Downloading: 36.6kB [00:00, 37.2MB/s] Downloading: 41.7kB [00:00, ?B/s] Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d... ### Is this a regression? No, it was the first time I was trying to download this dataset (same for the other ones). ### Debug info - Python version: Python 3.8.2 - OS version: Windows 10 Family
24
Problem downloading GEM wiki_auto_asset_turk dataset @yjernite ### Summary I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code. ### Steps to reproduce Code snippet: from datasets import load_dataset #dataset = load_dataset('gem', 'web_nlg_en') dataset = load_dataset('gem', 'wiki_auto_asset_turk') ``` **Expected behavior:** I expect the dataset to start downloading (download bar appears and progresses toward 100%) **Actual behavior:** Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more: Downloading: 36.6kB [00:00, 37.2MB/s] Downloading: 41.7kB [00:00, ?B/s] Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d... ### Is this a regression? No, it was the first time I was trying to download this dataset (same for the other ones). ### Debug info - Python version: Python 3.8.2 - OS version: Windows 10 Family Sorry for the long time since my last comment, I tried again and don't seem to have the problem anymore, thanks for your support!
[ -0.06903538107872009, -0.009997949004173279, -0.07155099511146545, 0.4162677228450775, 0.2822790741920471, 0.12228898704051971, 0.3851534128189087, 0.21341703832149506, 0.23347051441669464, -0.11339280009269714, 0.24285061657428741, 0.16283458471298218, 0.1382036805152893, -0.01050327718257904, -0.18701054155826569, -0.19104412198066711, -0.03168872371315956, -0.06828946620225906, 0.13739390671253204, -0.22129137814044952, -0.05428171157836914, 0.15335975587368011, -0.1293254941701889, -0.08461916446685791, -0.29876330494880676, 0.13948681950569153, 0.10947956144809723, -0.08538763225078583, -0.332419753074646, -0.08430557698011398, 0.5183297395706177, 0.037456974387168884, 0.09021301567554474, 0.2967352867126465, -0.00011769497359637171, -0.12622113525867462, 0.44006815552711487, -0.08007010817527771, -0.0858735591173172, -0.40321627259254456, -0.28815343976020813, -0.4585103392601013, 0.11591484397649765, -0.2507406175136566, 0.15745322406291962, 0.36134034395217896, -0.08282364904880524, 0.20398175716400146, 0.060263797640800476, 0.0538334883749485, 0.20150530338287354, 0.2203441858291626, 0.11197306215763092, 0.0012681595981121063, 0.17208850383758545, -0.513672411441803, -0.19610662758350372, -0.015647443011403084, -0.2056455761194229, 0.11592669039964676, 0.0759863331913948, 0.1538499891757965, -0.11602117121219635, 0.4487342834472656, 0.10051004588603973, 0.13625846803188324, -0.03330415114760399, -0.5621501803398132, 0.3449823260307312, 0.38040339946746826, 0.8352509140968323, -0.044153597205877304, -0.3848356306552887, -0.09023904800415039, 0.029775157570838928, 0.07769012451171875, 0.10122568905353546, 0.4795999526977539, -0.40894001722335815, 0.05760643258690834, -0.4534149169921875, 0.00043442100286483765, -0.05406817048788071, 0.2307635247707367, -0.3505895137786865, 0.2053675353527069, -0.12813670933246613, 0.05404821038246155, -0.051270946860313416, -0.022917835041880608, -0.38191941380500793, -0.3187374770641327, -0.18589502573013306, 0.32886454463005066, -0.3765304684638977, 0.08764747530221939, 0.08180233836174011, 0.10130247473716736, 0.30656546354293823, 0.3332843780517578, 0.05959479510784149, 0.202623188495636, -0.24272426962852478, 0.09740418195724487, 0.1333460509777069, 0.34993770718574524, -0.049627792090177536, -0.33390307426452637, 0.23365290462970734, 0.08317652344703674, -0.04100045561790466, 0.08891430497169495, -0.13269978761672974, -0.02736160159111023, 0.2532710134983063, -0.2916354238986969, 0.11386501789093018, -0.12103499472141266, -0.13299724459648132, 0.3446783423423767, 0.13280846178531647, -0.10357417911291122, -0.17298683524131775, 0.21096639335155487, -0.26142337918281555, -0.07485026121139526, -0.1549176126718521, 0.3760826587677002, -0.13428650796413422, 0.12455452978610992, -0.0551474466919899, -0.19463062286376953, -0.03206441551446915, -0.13086162507534027, 0.23591755330562592, -0.2384794056415558, 0.39782193303108215, 0.11984513700008392, -0.2069474756717682, -0.16948682069778442, -0.048203952610492706, -0.06954389810562134, 0.08920413255691528, 0.3029323220252991, 0.1519700139760971, 0.8524774312973022, -0.10556183755397797, -0.15330806374549866, 0.027788415551185608, 0.02712291292846203, -0.2666281461715698, -0.20135623216629028, -0.1391536146402359, 0.14495931565761566, -0.4829977750778198, -0.2651832103729248, -0.05556590482592583, 0.23111440241336823, 0.2233174741268158, -0.1439943164587021, -0.08431610465049744, 0.008736927062273026, 0.06780675053596497, -0.2231287956237793, 0.44627073407173157, 0.5631440877914429, -0.21546025574207306, -0.027349568903446198, -0.10237890481948853, 0.08290329575538635, 0.5172899961471558, -0.013226330280303955, 0.01773027703166008, -0.1962210237979889, -0.05522887036204338, 0.3503420948982239, 0.23451313376426697, 0.0634288489818573, -0.6698728799819946, 0.2986479699611664, -0.11217206716537476, 0.2659199833869934, 0.03513958305120468, 0.17272353172302246, 0.08820325136184692, 0.22885920107364655, -0.2764083743095398, 0.30825456976890564, 0.07483047991991043, -0.18554264307022095, -0.35152074694633484, -0.46879127621650696, 0.0907578319311142, 0.0779026672244072, 0.16908352077007294, 0.009552143514156342, 0.06664229929447174, -0.054549407213926315, 0.3368750214576721, 0.2913602590560913, 0.22319281101226807, 0.05409538000822067, 0.14010342955589294, -0.2684953510761261, -0.03521653637290001, -0.10481081902980804, -0.016409464180469513, 0.4072796702384949, 0.5592119097709656, 0.06163492426276207, 0.010032691061496735, 0.09789685904979706, -0.26447001099586487, -0.1222737655043602, -0.32133978605270386, -0.019778205081820488, 0.05246325582265854, 0.0943085104227066, 0.21691188216209412, 0.2984941899776459, 0.03749790042638779, 0.04018912464380264, -0.042067594826221466, 0.05235276743769646, 0.04161956161260605, 0.1940544992685318, 0.06743928790092468, -0.13319562375545502, -0.17959147691726685, -0.1060783714056015, 0.016392337158322334, 0.1452953964471817, -0.22919578850269318, -0.002815643325448036, -0.2187504917383194, 0.06336618959903717, -0.04340741038322449, -0.09142899513244629, 0.1379372924566269, 0.09818072617053986, -0.07668459415435791, 0.03280319273471832, 0.16982178390026093, -0.011578217148780823, -0.0029625901952385902, 0.08538258820772171, 0.2800174057483673, 0.37551969289779663, -0.015011250972747803, 0.23990702629089355, 0.33558154106140137, -0.04062768816947937, 0.04542822390794754, -0.014503233134746552, 0.32555854320526123, -0.26566648483276367, -0.14765219390392303, -0.06809882819652557, -0.0925353616476059, 0.27749061584472656, 0.5297240614891052, 0.13248005509376526, 0.12800395488739014, 0.21063579618930817, -0.31841862201690674, 0.018946677446365356, -0.014493796043097973, 0.5863617062568665, 0.2611168622970581, 0.09616052359342575, 0.20731329917907715, -0.4086148738861084, 0.05701394006609917, -0.2169000804424286, 0.04579751938581467, 0.3264724910259247, 0.06444264203310013, 0.39822638034820557, 0.10197492688894272, 0.13288068771362305, -0.037161316722631454, -0.038213059306144714, 0.1255006492137909, 0.13268031179904938, -0.04108664020895958, -0.08589764684438705, -0.2936617434024811, 0.25677216053009033, 0.05996960029006004, -0.43998998403549194, -0.1302778720855713, -0.2698122560977936, -0.11212179064750671, -0.019809182733297348, 0.03270497918128967, -0.07706400007009506, -0.12443193793296814, -0.20143067836761475, -0.05889081954956055, -0.3738243877887726, -0.3677842617034912, -0.12521927058696747, -0.33825644850730896, -0.0427057221531868, 0.10715742409229279, -0.0983291044831276, 0.2873528003692627, -0.12045137584209442, 0.05737036466598511, -0.09588585048913956, -0.19304874539375305, 0.03984901309013367, -0.00430843373760581, 0.38397103548049927, -0.2377864569425583, 0.45643919706344604, -0.16638076305389404, -0.059717632830142975, 0.1663670688867569, 0.0243510901927948, 0.03658246994018555, 0.22206223011016846, 0.10517995059490204, -0.21873492002487183, -0.09859014302492142, -0.2855586111545563, -0.3799355924129486, -0.3414304256439209, -0.08583232015371323, 0.20547357201576233, -0.04306481406092644, 0.08825825154781342, 0.2635267972946167, 0.034782104194164276, 0.17442576587200165, 0.025012023746967316, -0.04491718113422394, -0.2868688702583313, 0.8346590399742126, -0.08819016814231873, -0.40693336725234985, 0.2835734188556671, -0.014773041009902954, 0.31488704681396484, 0.10195299983024597, -0.5072259902954102, 0.21762585639953613, -0.2097768634557724, 0.19553908705711365, 0.27958738803863525, 0.06570941209793091, 0.06109067052602768, -0.31511083245277405, 0.08810602873563766, -0.1394309103488922, -0.014676641672849655, -0.04873793572187424, 0.12441389262676239, 0.28752243518829346, 0.012267477810382843, 0.2843147814273834, 0.03793920576572418, 0.8390622735023499, 0.2417924851179123, -0.1325189471244812, 0.43271511793136597, 0.03403055667877197, 0.022341037169098854, 0.022424008697271347, -0.1650136411190033, -0.2018047571182251, -0.24948352575302124, 0.15373444557189941, 0.127874493598938, 0.19487404823303223, -0.2716964781284332, -0.06612957268953323, 0.009021297097206116, -0.4472629427909851, -0.3024117350578308, -0.1900714933872223, 0.15511709451675415, 0.007588252425193787, 0.2950230836868286, 0.3235779404640198, 0.045051224529743195, -0.2776399254798889, 0.036581605672836304, 0.5699431896209717, 0.0019081495702266693, 0.10237753391265869, 0.13668693602085114, 0.11840125918388367, -0.5679131150245667, 0.09037501364946365, -0.09081918746232986, 0.08219669759273529, -0.09414729475975037, 0.11455541104078293, 0.1419597566127777, -0.15934474766254425, 0.13754156231880188, -0.31173670291900635, 0.1319679468870163, -0.14613193273544312, -0.10672510415315628, -0.22185583412647247, -0.25045210123062134, 0.040281593799591064, -0.04452668875455856, 0.5353949069976807, -0.013036046177148819, -0.32801908254623413, -0.00680120661854744, 0.07557778805494308, 0.17264214158058167, -0.15903916954994202, -0.2739729583263397, -0.276089608669281, -0.4223753809928894, -0.3200938105583191, -0.20106948912143707, -0.19570815563201904, 0.3888673782348633, -0.21651028096675873, -0.2829760015010834, -0.1278853565454483, 0.2633853554725647, 0.11659404635429382, -0.019234851002693176, 0.3295140564441681, 0.09847855567932129, 0.3884230852127075, 0.05324425548315048, -0.12830810248851776, -0.17976263165473938, 0.5015982985496521, 0.33098000288009644, 0.012375816702842712, 0.041373178362846375, -0.3306533694267273, 0.006159305572509766, 0.16304704546928406, -0.23099353909492493, -0.05417463183403015, -0.0837312862277031, 0.19610902667045593, -0.15591225028038025, -0.00533251091837883, 0.23692531883716583, -0.07772087305784225, -0.18336665630340576, -0.41826900839805603, 0.6890941858291626, -0.20608200132846832, -0.013910263776779175, 0.15960057079792023, 0.1564730703830719, 0.1464678943157196, 0.29973748326301575, -0.12611240148544312, 0.7728819847106934, 0.03466597944498062, -0.0354422964155674, 0.07850079238414764, 0.08715181052684784, 0.342682421207428, -0.29029279947280884, 0.1275339275598526, -0.33534327149391174, 0.15320897102355957, -0.14065030217170715, 0.01654869318008423, -0.12936945259571075, 0.08474206924438477, -0.09100675582885742, 0.14999303221702576, -0.16777470707893372, 0.22578008472919464, 0.022239312529563904, 0.04465039074420929, -0.3492167294025421, -0.08177824318408966, 0.04472982510924339, 0.12728817760944366, 0.026974059641361237, 0.6393933892250061, 0.025892101228237152, -0.2409835010766983, -0.24646052718162537, -0.08862870931625366, -0.5789684057235718, 0.12532073259353638, 0.11260716617107391, -0.07139167189598083, -0.20295318961143494, -0.45357394218444824, 0.013164132833480835, 0.45076802372932434, -0.05832356587052345, 0.17903849482536316, -0.34761831164360046, 0.26164042949676514, -0.29323849081993103, -0.08648909628391266, 0.15928414463996887, -0.08328326046466827, 0.09261830151081085, -0.19494619965553284, -0.2863842248916626, 0.027871394529938698, -0.08134348690509796, 0.3039560914039612, -0.14328593015670776, 0.11709676682949066, 0.22106215357780457, -0.004692919552326202, -0.372978150844574, 0.1475704312324524, -0.058335110545158386, -0.1162184476852417, 0.1300281435251236, 0.1151077002286911, 0.0481414832174778, 0.23778149485588074, 0.12296824157238007, -0.2875978350639343, -0.20234869420528412, 0.4077858030796051, -0.17034369707107544, 0.2058815062046051, 0.3319358825683594, -0.06520906835794449, -0.23081038892269135, -0.11634523421525955, -0.10781413316726685, 0.01934308558702469, -0.6593106389045715, -0.22204862534999847, 0.01550675556063652, 0.3092424273490906, -0.14671054482460022, -0.14997045695781708, 0.07674846053123474, -0.38932666182518005, -0.30521902441978455, -0.514316737651825, 0.19345813989639282, 0.0530858188867569, -0.08086657524108887, 0.10128160566091537, -0.49441176652908325, -0.4612381160259247, 0.313016414642334, 0.12340335547924042, -0.17996767163276672, -0.013786198571324348, -0.1672123819589615, -0.14030107855796814, 0.15414339303970337, 0.29156723618507385, 0.12436124682426453, 0.06529219448566437, 0.00089268758893013, 0.045247532427310944, -0.1702832579612732, -0.1682329773902893, -0.1493079662322998, 0.1990281492471695, 0.18478098511695862, 0.008067108690738678, 0.19103026390075684, -0.13205306231975555, -0.2113073617219925, -0.045143090188503265, 0.12748798727989197, -0.05930877476930618, -0.030626796185970306, 0.09226737916469574, 0.0805765688419342, 0.4037799835205078, -0.4537481665611267, 0.11455412954092026, -0.1015147864818573, 0.8488922715187073, 0.08576394617557526, 0.015893466770648956, 0.5661736130714417, 0.11793860793113708, -0.23782478272914886, -0.2062014639377594, -0.12666334211826324, -0.09776370972394943, 0.3483301103115082, -0.3401980400085449, 0.5501440167427063, 0.11265131831169128, 0.08176396042108536, 0.3406646251678467, -0.12665961682796478, -0.06632824242115021, 0.1710985004901886, 0.2545170187950134, -0.14756226539611816, -0.12923181056976318, 0.05922238156199455, 0.09569799154996872, -0.05179300531744957, -0.11303091049194336, 0.1341891586780548, -0.29049408435821533, -0.26421502232551575, 0.06581950187683105, 0.4888225197792053, -0.17143568396568298, -0.15584367513656616, 0.48055630922317505, 0.02781200408935547, 0.3225763142108917, -0.050470221787691116, -0.06925690919160843, -0.19129112362861633, 0.4133705794811249, -0.10413959622383118, 0.39945849776268005, 0.11843140423297882, 0.09005148708820343, -0.4028485417366028, -0.48768311738967896, -0.03911327198147774, 0.06210969388484955, -0.14854690432548523, 0.24713459610939026, 0.11717166751623154, 0.23747344315052032, 0.12965328991413116, 0.03208042308688164, -0.4850425720214844, -0.03978783264756203, 0.02118898741900921, -0.016622893512248993, 0.04589328169822693, -0.35210132598876953, -0.14652317762374878, 0.36443591117858887, 0.05292515084147453, -0.11005931347608566, 0.3075852394104004, 0.15325210988521576, -0.15214060246944427, -0.6718460917472839, 0.04261908680200577, -0.09222200512886047, 0.04422128573060036, -0.3201611638069153, 0.026366380974650383, 0.20775631070137024, -0.12011744827032089, -0.0395672544836998, 0.031125502660870552, 0.35771870613098145, 0.4340399205684662, 0.01242484524846077, -0.014276158064603806, 0.04835237190127373, -0.06983257830142975, -0.2068813145160675, 0.33371058106422424, 0.25544828176498413, 0.005975548177957535, 0.13120271265506744, 0.11211647093296051, -0.2471868395805359, 0.17611579596996307, 0.08230425417423248, 0.0013016313314437866, -0.20615705847740173, 0.6831782460212708, -0.28352048993110657, 0.11689303815364838, -0.15566226840019226, -0.33412835001945496, -0.3487709164619446, -0.019861452281475067, 0.34738513827323914, 0.15197810530662537, 0.07246408611536026, -0.31581443548202515, 0.033759668469429016, -0.2807043194770813, 0.25593748688697815, 0.07406178116798401, 0.17233911156654358, -0.35937806963920593, 0.13877858221530914, -0.7013585567474365, -0.007881686091423035, 0.09284308552742004, -0.024514392018318176, -0.02348192408680916, 0.31374219059944153, -0.2782699167728424, 0.17132560908794403, 0.2388453483581543, -0.03471260145306587, 0.24621209502220154, 0.4393143951892853, -0.2718907594680786, -0.04828409105539322, -0.3086029291152954, 0.012658828869462013, -0.11897197365760803, -0.2704186737537384, 0.26984721422195435, -0.5997475385665894, -0.03560834378004074, -0.041814133524894714, -0.09727071970701218, 0.2781626582145691, -0.2821846604347229, 0.7650138139724731, 0.014742402359843254, 0.39809489250183105, -0.05678100883960724, -0.03825803101062775, -0.2995539605617523, 0.0535394661128521, 0.0010869801044464111, 0.17286673188209534, -0.1007201075553894, 0.27201446890830994, 0.1195935383439064, 0.18412140011787415, -0.14368213713169098, -0.14535942673683167, 0.05131533741950989, 0.2917466163635254, 0.004772290587425232, -0.34449684619903564, -0.023924827575683594, 0.08920641243457794, 0.23690101504325867, 0.24616315960884094, -0.12085084617137909, 0.1756344437599182, -0.1573684960603714, -0.25485751032829285, 0.3296072483062744, -0.27762842178344727, -0.21337461471557617, -0.10318104922771454, 0.13213950395584106, 0.317168653011322, 0.019823702052235603, -0.4789215922355652, -0.0028057843446731567, 0.28053152561187744, -0.14065580070018768, -0.23521672189235687, 0.11493856459856033, 0.13226434588432312, -0.10278530418872833, -0.02495136857032776, 0.19478580355644226, 0.004423094913363457, -0.2891601622104645, 0.26588761806488037, -0.14130499958992004 ]
https://github.com/huggingface/datasets/issues/2123
Great ! I'm closing the issue then. Feel free to re-open if you experience this issue again
Problem downloading GEM wiki_auto_asset_turk dataset
@yjernite ### Summary I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code. ### Steps to reproduce Code snippet: from datasets import load_dataset #dataset = load_dataset('gem', 'web_nlg_en') dataset = load_dataset('gem', 'wiki_auto_asset_turk') ``` **Expected behavior:** I expect the dataset to start downloading (download bar appears and progresses toward 100%) **Actual behavior:** Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more: Downloading: 36.6kB [00:00, 37.2MB/s] Downloading: 41.7kB [00:00, ?B/s] Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d... ### Is this a regression? No, it was the first time I was trying to download this dataset (same for the other ones). ### Debug info - Python version: Python 3.8.2 - OS version: Windows 10 Family
17
Problem downloading GEM wiki_auto_asset_turk dataset @yjernite ### Summary I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code. ### Steps to reproduce Code snippet: from datasets import load_dataset #dataset = load_dataset('gem', 'web_nlg_en') dataset = load_dataset('gem', 'wiki_auto_asset_turk') ``` **Expected behavior:** I expect the dataset to start downloading (download bar appears and progresses toward 100%) **Actual behavior:** Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more: Downloading: 36.6kB [00:00, 37.2MB/s] Downloading: 41.7kB [00:00, ?B/s] Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d... ### Is this a regression? No, it was the first time I was trying to download this dataset (same for the other ones). ### Debug info - Python version: Python 3.8.2 - OS version: Windows 10 Family Great ! I'm closing the issue then. Feel free to re-open if you experience this issue again
[ -0.06359098851680756, 0.005495920777320862, -0.0699881762266159, 0.3975270092487335, 0.2704813778400421, 0.11177182197570801, 0.40512004494667053, 0.2125452160835266, 0.22199468314647675, -0.0980706512928009, 0.24230404198169708, 0.16528959572315216, 0.14376798272132874, -0.009437642991542816, -0.18495512008666992, -0.16919824481010437, -0.02092713862657547, -0.07800649106502533, 0.13971951603889465, -0.22872523963451385, -0.07188314199447632, 0.14549754559993744, -0.1185271143913269, -0.08834784477949142, -0.2948790192604065, 0.14661508798599243, 0.09713200479745865, -0.0787389874458313, -0.31266531348228455, -0.09903602302074432, 0.5155931711196899, 0.05686977878212929, 0.07888098061084747, 0.2951323091983795, -0.00011708816600730643, -0.12447459250688553, 0.4406699538230896, -0.07180163264274597, -0.11489090323448181, -0.38135388493537903, -0.2894221544265747, -0.4607844352722168, 0.1017344743013382, -0.2550833821296692, 0.157800555229187, 0.3514334559440613, -0.06956747174263, 0.1909136027097702, 0.041140299290418625, 0.03479692339897156, 0.20391154289245605, 0.23453743755817413, 0.07736872136592865, -0.009219665080308914, 0.16854332387447357, -0.5081431865692139, -0.2009909451007843, -0.014971226453781128, -0.19615331292152405, 0.11306199431419373, 0.05184005945920944, 0.17125669121742249, -0.11127215623855591, 0.44505733251571655, 0.10927639901638031, 0.14754441380500793, -0.03903341293334961, -0.5593591928482056, 0.33862125873565674, 0.39142143726348877, 0.8110867738723755, -0.034925397485494614, -0.3909863233566284, -0.11639448255300522, 0.01443994790315628, 0.08834166079759598, 0.1094566062092781, 0.4731743633747101, -0.40421709418296814, 0.058002881705760956, -0.44301846623420715, 0.01620584726333618, -0.04240594804286957, 0.24012967944145203, -0.3565361499786377, 0.20991066098213196, -0.12181521952152252, 0.04951290041208267, -0.050104182213544846, -0.019396334886550903, -0.3825848400592804, -0.32506412267684937, -0.17792826890945435, 0.322262704372406, -0.35956376791000366, 0.09452472627162933, 0.10821092873811722, 0.09445076435804367, 0.3044976592063904, 0.3384500741958618, 0.0650235041975975, 0.2179393470287323, -0.24231339991092682, 0.09105139970779419, 0.1257585883140564, 0.3379719853401184, -0.02979649230837822, -0.3428627550601959, 0.23741313815116882, 0.09109677374362946, -0.03903590887784958, 0.08945457637310028, -0.14213411509990692, -0.013624876737594604, 0.2400490641593933, -0.29973897337913513, 0.10667531937360764, -0.10618167370557785, -0.1355123519897461, 0.35451391339302063, 0.1436537653207779, -0.10089245438575745, -0.1819545179605484, 0.20962421596050262, -0.2602631747722626, -0.07936853915452957, -0.1583041399717331, 0.3832474946975708, -0.14806750416755676, 0.10889610648155212, -0.06466609239578247, -0.20237576961517334, -0.04305170848965645, -0.13503174483776093, 0.24246110022068024, -0.21531111001968384, 0.397586852312088, 0.10822731256484985, -0.20192864537239075, -0.16227832436561584, -0.04827263951301575, -0.06005115434527397, 0.1039721667766571, 0.3016759753227234, 0.13769327104091644, 0.8678783178329468, -0.09837782382965088, -0.14865650236606598, 0.021130293607711792, 0.033824458718299866, -0.24868600070476532, -0.1927577704191208, -0.12435528635978699, 0.14960546791553497, -0.5011075139045715, -0.2611995339393616, -0.047611549496650696, 0.24386772513389587, 0.22101044654846191, -0.1569940447807312, -0.08826868236064911, 0.00834636203944683, 0.05727595090866089, -0.21883103251457214, 0.44347190856933594, 0.5722364783287048, -0.2253333330154419, -0.04570643603801727, -0.11192071437835693, 0.08972713351249695, 0.5085417032241821, -0.0067214155569672585, 0.009111613035202026, -0.18665295839309692, -0.04923876002430916, 0.3607644736766815, 0.23555786907672882, 0.06138274073600769, -0.6746479868888855, 0.2866029441356659, -0.12672241032123566, 0.3046182096004486, 0.033651649951934814, 0.1798473745584488, 0.08866071701049805, 0.20867206156253815, -0.26797640323638916, 0.3060261607170105, 0.08444001525640488, -0.18121308088302612, -0.3593183755874634, -0.4738079905509949, 0.08326585590839386, 0.07174040377140045, 0.17198731005191803, 0.006771605461835861, 0.06627272069454193, -0.05915720760822296, 0.3414897620677948, 0.27774137258529663, 0.22468920052051544, 0.050394218415021896, 0.14146094024181366, -0.27387937903404236, -0.0399673730134964, -0.08558666706085205, -0.024137426167726517, 0.42716556787490845, 0.5506255626678467, 0.06388623267412186, 0.0144227035343647, 0.09556303918361664, -0.24696382880210876, -0.12176153063774109, -0.3224136531352997, -0.04400674253702164, 0.05783677101135254, 0.12238147109746933, 0.20308390259742737, 0.30384185910224915, 0.04795706272125244, 0.03966568410396576, -0.04111028462648392, 0.05644436553120613, 0.03909078240394592, 0.1793065071105957, 0.08794538676738739, -0.1351892352104187, -0.20177048444747925, -0.09881646186113358, 0.005902815610170364, 0.1391865760087967, -0.21594436466693878, 0.005830919370055199, -0.2344038188457489, 0.08205098658800125, -0.05095694586634636, -0.08719319105148315, 0.14150434732437134, 0.1149088442325592, -0.0709470734000206, 0.031120389699935913, 0.16031576693058014, -0.015681162476539612, -0.03117997944355011, 0.11398401856422424, 0.2691163420677185, 0.381483256816864, -0.01162390410900116, 0.2220475971698761, 0.3370931148529053, -0.04684673249721527, 0.0317516103386879, -0.022920921444892883, 0.323000967502594, -0.2710415720939636, -0.1394493281841278, -0.06853766739368439, -0.09483295679092407, 0.3044227659702301, 0.5473518967628479, 0.1282820701599121, 0.13619570434093475, 0.2058175504207611, -0.321982204914093, 0.016042374074459076, -0.009026923216879368, 0.5947284698486328, 0.2657070755958557, 0.10152114182710648, 0.21871250867843628, -0.3983244001865387, 0.04881669953465462, -0.2300373613834381, 0.03764484077692032, 0.32525694370269775, 0.05345475673675537, 0.4030187129974365, 0.11339342594146729, 0.13850775361061096, -0.049516886472702026, -0.027943525463342667, 0.12782832980155945, 0.10143890231847763, -0.04186314344406128, -0.06878258287906647, -0.28254228830337524, 0.2662614583969116, 0.060042139142751694, -0.43342292308807373, -0.13501766324043274, -0.2884693443775177, -0.10051915049552917, -0.014482001774013042, 0.0014510378241539001, -0.07701880484819412, -0.13645979762077332, -0.1926986575126648, -0.08020399510860443, -0.39238908886909485, -0.3497554659843445, -0.12595278024673462, -0.3521960973739624, -0.038532763719558716, 0.10137718915939331, -0.09394283592700958, 0.2879144251346588, -0.11684525012969971, 0.0656692385673523, -0.08932870626449585, -0.20687656104564667, 0.044809091836214066, -0.009204573929309845, 0.3843482732772827, -0.2553698718547821, 0.44145068526268005, -0.1614168882369995, -0.05818059667944908, 0.17342336475849152, 0.028333917260169983, 0.043290913105010986, 0.2223573476076126, 0.10870930552482605, -0.1992359459400177, -0.09687859565019608, -0.2927432656288147, -0.3652941584587097, -0.34516000747680664, -0.07200078666210175, 0.1937093734741211, -0.04906792193651199, 0.0892689973115921, 0.257772296667099, 0.02754943072795868, 0.16370585560798645, 0.02746819704771042, -0.052425555884838104, -0.28598684072494507, 0.8228674530982971, -0.09534935653209686, -0.4027889370918274, 0.27158480882644653, -0.030208010226488113, 0.3105700612068176, 0.11237278580665588, -0.5049177408218384, 0.22969801723957062, -0.21309855580329895, 0.20327302813529968, 0.2825912833213806, 0.05501610040664673, 0.0714830532670021, -0.3109724223613739, 0.07583166658878326, -0.16275081038475037, -0.004299066960811615, -0.0300586000084877, 0.12573008239269257, 0.28625553846359253, -0.0014704428613185883, 0.27289488911628723, 0.050153329968452454, 0.8432106971740723, 0.2358386516571045, -0.13337638974189758, 0.4208787679672241, 0.0450754389166832, 0.03925458714365959, 0.022432049736380577, -0.1539183408021927, -0.19870586693286896, -0.25617191195487976, 0.1470111906528473, 0.14910438656806946, 0.19901540875434875, -0.2637205421924591, -0.05371001362800598, 0.01779302954673767, -0.44346344470977783, -0.3303983509540558, -0.16970491409301758, 0.15181021392345428, 0.0003313980996608734, 0.30406951904296875, 0.3281062841415405, 0.04036194831132889, -0.26671302318573, 0.03431657701730728, 0.5420289039611816, 0.00010778754949569702, 0.0878891795873642, 0.12203822284936905, 0.12066985666751862, -0.57231605052948, 0.08297222852706909, -0.0859021544456482, 0.07345613837242126, -0.0841362476348877, 0.07621002197265625, 0.14125922322273254, -0.16022193431854248, 0.1468760073184967, -0.3039340376853943, 0.13903672993183136, -0.1412779688835144, -0.10382699966430664, -0.2265353947877884, -0.2475605010986328, 0.036686889827251434, -0.05048217624425888, 0.5440040230751038, -0.01324596256017685, -0.3284938633441925, -0.0015202313661575317, 0.06421265751123428, 0.18171367049217224, -0.14818309247493744, -0.2562613785266876, -0.27630388736724854, -0.4239397644996643, -0.3175901472568512, -0.19524508714675903, -0.1939309686422348, 0.3753400444984436, -0.23198959231376648, -0.27436205744743347, -0.12118513137102127, 0.2704649567604065, 0.1200103610754013, -0.01996885985136032, 0.3140404224395752, 0.09624779224395752, 0.39116865396499634, 0.07290215790271759, -0.134675994515419, -0.17377567291259766, 0.5136117339134216, 0.3388260304927826, 0.010585077106952667, 0.04282235726714134, -0.33696475625038147, -0.00595923513174057, 0.20910076797008514, -0.2164408564567566, -0.06499437242746353, -0.07533907890319824, 0.19493497908115387, -0.15415790677070618, 0.003070700913667679, 0.23793655633926392, -0.09631747007369995, -0.1846461445093155, -0.40836969017982483, 0.6840828657150269, -0.212433859705925, -0.02039254456758499, 0.17482087016105652, 0.14948663115501404, 0.13983553647994995, 0.2975000739097595, -0.10814855992794037, 0.7885551452636719, 0.030235398560762405, -0.01802361197769642, 0.08938729763031006, 0.08929891884326935, 0.35084497928619385, -0.3062100410461426, 0.13403034210205078, -0.35228511691093445, 0.15353554487228394, -0.13159781694412231, 0.021308936178684235, -0.1281593292951584, 0.08694315701723099, -0.07770151644945145, 0.131705641746521, -0.1633625030517578, 0.2356797754764557, 0.029750041663646698, 0.03238572180271149, -0.35337111353874207, -0.08884261548519135, 0.05738493800163269, 0.13102099299430847, 0.04159963130950928, 0.6429334282875061, 0.016747601330280304, -0.2431710660457611, -0.26353025436401367, -0.08838441222906113, -0.5674738883972168, 0.13507121801376343, 0.11715610325336456, -0.0663839653134346, -0.20220071077346802, -0.45542585849761963, -0.021001875400543213, 0.43568530678749084, -0.04219742864370346, 0.16824956238269806, -0.34731853008270264, 0.2733458876609802, -0.28238049149513245, -0.07076462358236313, 0.17024652659893036, -0.10230843722820282, 0.10108555853366852, -0.18925079703330994, -0.28282099962234497, 0.01594557799398899, -0.09885257482528687, 0.29944831132888794, -0.15852823853492737, 0.11146321892738342, 0.21264055371284485, -0.006798934191465378, -0.3708251416683197, 0.14549484848976135, -0.06500081717967987, -0.11681774258613586, 0.13535001873970032, 0.10497654974460602, 0.056611884385347366, 0.23033107817173004, 0.10943475365638733, -0.2893568277359009, -0.2170313447713852, 0.4203638434410095, -0.1740410476922989, 0.19371303915977478, 0.3277284502983093, -0.07348771393299103, -0.22770251333713531, -0.11944277584552765, -0.10668139159679413, 0.010008726269006729, -0.667077898979187, -0.220098078250885, 0.003024209290742874, 0.2900622487068176, -0.13758067786693573, -0.1370425820350647, 0.07803520560264587, -0.40268442034721375, -0.31749337911605835, -0.4946444630622864, 0.21145617961883545, 0.06812378764152527, -0.07026749849319458, 0.09455905109643936, -0.49561870098114014, -0.45447009801864624, 0.3093896508216858, 0.11124354600906372, -0.19062519073486328, -0.020559608936309814, -0.1461390256881714, -0.13126952946186066, 0.14376473426818848, 0.3040233254432678, 0.15040446817874908, 0.06838299334049225, 0.0024420134723186493, 0.04440784081816673, -0.17900589108467102, -0.17652861773967743, -0.15098509192466736, 0.19629926979541779, 0.18605808913707733, 0.022451840341091156, 0.200532466173172, -0.11814182996749878, -0.1993986964225769, -0.05830792337656021, 0.1348383128643036, -0.05637335777282715, -0.04422062635421753, 0.08189462125301361, 0.07006677240133286, 0.4368835687637329, -0.43132829666137695, 0.1096334308385849, -0.10901857912540436, 0.8408150672912598, 0.07981337606906891, 0.009366787038743496, 0.5487744212150574, 0.1110461950302124, -0.21439936757087708, -0.20232060551643372, -0.13576839864253998, -0.07938241958618164, 0.3421780467033386, -0.34324994683265686, 0.5485957264900208, 0.10368812084197998, 0.07684499025344849, 0.34530383348464966, -0.12197528779506683, -0.09082316607236862, 0.15421324968338013, 0.2604791522026062, -0.1336328238248825, -0.14168766140937805, 0.04483605548739433, 0.0819350928068161, -0.04256528243422508, -0.09728983044624329, 0.1431802362203598, -0.2931312322616577, -0.2391670048236847, 0.06096271052956581, 0.48136425018310547, -0.1783905327320099, -0.13189493119716644, 0.4905303120613098, 0.011240646243095398, 0.33698177337646484, -0.05129174143075943, -0.08730007708072662, -0.17862822115421295, 0.42023393511772156, -0.09204111248254776, 0.4068498909473419, 0.125132754445076, 0.08253754675388336, -0.413842111825943, -0.5052167773246765, -0.02406879886984825, 0.05521760135889053, -0.14657828211784363, 0.25937896966934204, 0.1092594563961029, 0.2299337387084961, 0.12150530517101288, 0.041403789073228836, -0.49752047657966614, -0.03218653425574303, 0.024567797780036926, -0.027849873527884483, 0.04522585868835449, -0.36454424262046814, -0.14286333322525024, 0.3663724660873413, 0.0384925901889801, -0.10338902473449707, 0.31098198890686035, 0.14311355352401733, -0.14732183516025543, -0.6717374324798584, 0.03650543838739395, -0.11647200584411621, 0.049775123596191406, -0.3063773214817047, 0.024019407108426094, 0.2131408452987671, -0.131363183259964, -0.01785746030509472, 0.024810293689370155, 0.3455333113670349, 0.4297312796115875, 0.016621902585029602, -0.02335926704108715, 0.02785377949476242, -0.06518495082855225, -0.22580888867378235, 0.3390026092529297, 0.25499427318573, -0.010467275977134705, 0.1458035409450531, 0.12069019675254822, -0.2616152763366699, 0.17222565412521362, 0.09335867315530777, -0.010658079758286476, -0.21045775711536407, 0.6825149655342102, -0.29151424765586853, 0.12023439258337021, -0.13513416051864624, -0.34334835410118103, -0.3390803337097168, -0.030241437256336212, 0.34022170305252075, 0.15716345608234406, 0.08060965687036514, -0.3118818998336792, 0.03849570453166962, -0.2671254277229309, 0.26040980219841003, 0.0489831268787384, 0.150698721408844, -0.3443177044391632, 0.1353340744972229, -0.703563928604126, 0.007180701941251755, 0.08433476090431213, -0.026627175509929657, -0.02949001081287861, 0.3258947432041168, -0.27045029401779175, 0.17942243814468384, 0.23766985535621643, -0.03649946302175522, 0.23523631691932678, 0.42801105976104736, -0.2742735743522644, -0.050684791058301926, -0.30236124992370605, 0.006890079006552696, -0.1276034414768219, -0.2826352119445801, 0.27219128608703613, -0.5946937203407288, -0.0279306098818779, -0.03274792432785034, -0.11321839690208435, 0.2861553132534027, -0.2838962972164154, 0.7775368690490723, 0.020164048299193382, 0.39108577370643616, -0.05444105342030525, -0.06426189839839935, -0.3234817385673523, 0.05633397400379181, 0.006506726145744324, 0.18165920674800873, -0.11244040727615356, 0.2903112769126892, 0.11432580649852753, 0.17948292195796967, -0.13710381090641022, -0.14226679503917694, 0.07060086727142334, 0.29985707998275757, -0.002471424639225006, -0.3307425379753113, -0.02069755643606186, 0.09412291646003723, 0.2345980703830719, 0.2664618492126465, -0.11944277584552765, 0.1812019646167755, -0.1614152193069458, -0.2635098099708557, 0.3250682055950165, -0.2873353362083435, -0.2141282856464386, -0.11213630437850952, 0.1395834982395172, 0.29794302582740784, 0.01932341791689396, -0.46978533267974854, 0.0013584643602371216, 0.2750636339187622, -0.13463249802589417, -0.22876496613025665, 0.10920071601867676, 0.12852156162261963, -0.11949074268341064, -0.02830655500292778, 0.19605258107185364, 0.004283003509044647, -0.2925715744495392, 0.26871630549430847, -0.14108224213123322 ]
https://github.com/huggingface/datasets/issues/2116
Hi, the `_data` attribute is missing due to `MyDataset.__init__` not calling the parent `__init__`. However, I don't think it's a good idea to subclass the `datasets.Dataset` class (e.g. it's kind of dangerous to override `datasets.Dataset.__getitem__`). Instead, it's better to follow the "association over inheritance" approach with a simple wrapper class that delegates calls to a wrapped `Dataset` (map, etc.). Btw, the library offers the `datasets.Dataset.from_pandas` class method to directly create a `datasets.Dataset` from the dataframe.
Creating custom dataset results in error while calling the map() function
calling `map()` of `datasets` library results into an error while defining a Custom dataset. Reproducible example: ``` import datasets class MyDataset(datasets.Dataset): def __init__(self, sentences): "Initialization" self.samples = sentences def __len__(self): "Denotes the total number of samples" return len(self.samples) def __getitem__(self, index): "Generates one sample of data" # Select sample # Load data and get label samples = self.samples[index] return samples def preprocess_function_train(examples): inputs = examples labels = [example+tokenizer.eos_token for example in examples ] inputs = tokenizer(inputs, max_length=30, padding=True, truncation=True) labels = tokenizer(labels, max_length=30, padding=True, truncation=True) model_inputs = inputs model_inputs["labels"] = labels["input_ids"] print("about to return") return model_inputs ##train["sentence"] is dataframe column train_dataset = MyDataset(train['sentence'].values.tolist()) train_dataset = train_dataset.map( preprocess_function, batched = True, batch_size=32 ) ``` Stack trace of error: ``` Traceback (most recent call last): File "dir/train_generate.py", line 362, in <module> main() File "dir/train_generate.py", line 245, in main train_dataset = train_dataset.map( File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1244, in map return self._map_single( File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 149, in wrapper unformatted_columns = set(self.column_names) - set(self._format_columns or []) File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 526, in column_names return self._data.column_names AttributeError: 'MyDataset' object has no attribute '_data' ```
75
Creating custom dataset results in error while calling the map() function calling `map()` of `datasets` library results into an error while defining a Custom dataset. Reproducible example: ``` import datasets class MyDataset(datasets.Dataset): def __init__(self, sentences): "Initialization" self.samples = sentences def __len__(self): "Denotes the total number of samples" return len(self.samples) def __getitem__(self, index): "Generates one sample of data" # Select sample # Load data and get label samples = self.samples[index] return samples def preprocess_function_train(examples): inputs = examples labels = [example+tokenizer.eos_token for example in examples ] inputs = tokenizer(inputs, max_length=30, padding=True, truncation=True) labels = tokenizer(labels, max_length=30, padding=True, truncation=True) model_inputs = inputs model_inputs["labels"] = labels["input_ids"] print("about to return") return model_inputs ##train["sentence"] is dataframe column train_dataset = MyDataset(train['sentence'].values.tolist()) train_dataset = train_dataset.map( preprocess_function, batched = True, batch_size=32 ) ``` Stack trace of error: ``` Traceback (most recent call last): File "dir/train_generate.py", line 362, in <module> main() File "dir/train_generate.py", line 245, in main train_dataset = train_dataset.map( File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1244, in map return self._map_single( File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 149, in wrapper unformatted_columns = set(self.column_names) - set(self._format_columns or []) File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 526, in column_names return self._data.column_names AttributeError: 'MyDataset' object has no attribute '_data' ``` Hi, the `_data` attribute is missing due to `MyDataset.__init__` not calling the parent `__init__`. However, I don't think it's a good idea to subclass the `datasets.Dataset` class (e.g. it's kind of dangerous to override `datasets.Dataset.__getitem__`). Instead, it's better to follow the "association over inheritance" approach with a simple wrapper class that delegates calls to a wrapped `Dataset` (map, etc.). Btw, the library offers the `datasets.Dataset.from_pandas` class method to directly create a `datasets.Dataset` from the dataframe.
[ -0.3095270097255707, 0.1919834166765213, -0.028081554919481277, 0.08091849088668823, 0.23226377367973328, 0.024452924728393555, 0.40631645917892456, 0.3732212483882904, 0.2232670933008194, 0.05796724930405617, 0.10709220916032791, 0.47602230310440063, -0.3742124140262604, -0.05110494792461395, 0.07849175482988358, -0.008936446160078049, 0.05599653720855713, 0.18563330173492432, -0.18359152972698212, -0.03899801895022392, -0.3738662600517273, 0.19366365671157837, -0.18245530128479004, 0.20544934272766113, -0.21086925268173218, -0.28847166895866394, 0.11174628138542175, -0.08033321797847748, -0.293023943901062, -0.38592401146888733, 0.3439578413963318, -0.06871098279953003, 0.005372069776058197, 0.7015195488929749, -0.00010453289723955095, 0.0541854202747345, 0.1606346219778061, -0.05443601682782173, -0.07146457582712173, -0.2946875989437103, -0.13007701933383942, -0.05972914770245552, 0.06532280147075653, -0.3553411662578583, -0.07086231559515, -0.226656973361969, -0.2204885482788086, -0.5003935694694519, 0.23764443397521973, 0.5857281684875488, 0.3092917203903198, 0.006549447774887085, 0.015783824026584625, -0.24255207180976868, 0.2406724989414215, 0.27895647287368774, -0.16278621554374695, 0.12546178698539734, 0.10192632675170898, -0.43442603945732117, 0.021120280027389526, 0.2214973270893097, -0.051902368664741516, 0.017114032059907913, 0.22511126101016998, -0.07298195362091064, 0.02474122866988182, -0.359427809715271, 0.033276256173849106, 0.13011473417282104, 0.4118056297302246, -0.5375840663909912, -0.3002355694770813, 0.06170029938220978, 0.017712872475385666, -0.17041562497615814, 0.25608786940574646, 0.07475997507572174, -0.15732483565807343, 0.05294780433177948, -0.07751394808292389, 0.13103166222572327, -0.09681008011102676, 0.3694397807121277, 0.13062319159507751, 0.13703754544258118, -0.16369596123695374, 0.2666483223438263, 0.11021952331066132, -0.4297787845134735, 0.023280121386051178, -0.10806512832641602, 0.07952673733234406, 0.4080004096031189, -0.36647436022758484, -0.16686485707759857, 0.05588074028491974, -0.44671905040740967, 0.14313578605651855, -0.15204724669456482, 0.022649474442005157, -0.12220461666584015, 0.14363116025924683, 0.13548777997493744, 0.23122839629650116, 0.1579553335905075, -0.020108584314584732, 0.4038406014442444, -0.087607741355896, -0.0010177306830883026, -0.2695799767971039, -0.08378805220127106, 0.02952035516500473, -0.22606925666332245, 0.08570292592048645, 0.06214984133839607, 0.16517958045005798, 0.020962059497833252, 0.09747165441513062, 0.09659215062856674, -0.31748297810554504, 0.1343473643064499, 0.14404568076133728, 0.21852244436740875, 0.1541195958852768, -0.1662798970937729, -0.06253162026405334, 0.12992911040782928, -0.11697985231876373, 0.20391926169395447, -0.2468063086271286, 0.14858591556549072, -0.3834025263786316, 0.007286662235856056, 0.17620062828063965, 0.15443745255470276, 0.28600695729255676, -0.00027300044894218445, 0.022701606154441833, -0.14871984720230103, 0.18524980545043945, -0.34882137179374695, 0.10498000681400299, 0.16054674983024597, -0.09926322847604752, 0.21236473321914673, 0.289314866065979, -0.02254805713891983, -0.14825010299682617, 0.07649734616279602, -0.13015609979629517, -0.3638646602630615, -0.19158582389354706, 0.24965251982212067, 0.08307847380638123, 0.23957166075706482, -0.11764708161354065, 0.22862283885478973, 0.43396279215812683, -0.18812251091003418, 0.02698582038283348, -0.19684404134750366, -0.27002501487731934, -0.35246866941452026, -0.08463403582572937, 0.16187739372253418, -0.39145898818969727, 0.15443727374076843, -0.11991636455059052, -0.052884791046381, -0.02149324119091034, 0.1791032999753952, -0.38456568121910095, 0.5214544534683228, -0.18569673597812653, 0.30854421854019165, 0.4751512408256531, -0.1975560486316681, -0.46169695258140564, 0.10677557438611984, -0.04296018183231354, -0.08318958431482315, -0.3642074465751648, 0.019702322781085968, 0.3551737666130066, -0.06627464294433594, 0.19590315222740173, 0.01623593270778656, -0.06009994447231293, 0.15769676864147186, 0.04836481064558029, -0.0516049787402153, 0.11969040334224701, 0.01658099889755249, -0.013093749061226845, 0.12874343991279602, 0.22458165884017944, -0.10519956797361374, -0.035720355808734894, -0.20997805893421173, 0.09279798716306686, 0.30101725459098816, 0.3053906559944153, 0.14114142954349518, -0.10294651985168457, -0.15108096599578857, -0.266179621219635, 0.15869884192943573, 0.16264957189559937, 0.17284226417541504, -0.20333465933799744, -0.11100567877292633, -0.20701703429222107, 0.0860200747847557, -0.18152423202991486, -0.04414046183228493, 0.26806342601776123, -0.058769144117832184, 0.10482017695903778, 0.006180360913276672, -0.060913629829883575, 0.03787047415971756, -0.3639875650405884, 0.10854610800743103, -0.1308041363954544, -0.0567319430410862, 0.02854382060468197, -0.2034260630607605, 0.0002927854657173157, 0.13456854224205017, 0.11349529772996902, 0.0211043544113636, -0.2943386435508728, 0.3483092486858368, 0.2806224524974823, -0.1980166733264923, -0.06840342283248901, 0.016223356127738953, -0.15277425944805145, -0.28389132022857666, 0.048884935677051544, 0.11197810620069504, 0.16515858471393585, -0.12410882115364075, 0.00269364845007658, 0.1598966121673584, 0.08525543659925461, 0.048639241605997086, -0.08658324927091599, 0.18376225233078003, 0.2777928411960602, 0.15569400787353516, -0.13248062133789062, -0.26942795515060425, -0.16784778237342834, 0.06986872851848602, 0.3245130777359009, 0.01643550395965576, 0.03775593638420105, -0.22199590504169464, 0.4383486807346344, 0.13242711126804352, 0.1742408573627472, 0.1287519335746765, -0.050049372017383575, -0.060695990920066833, 0.04219231754541397, 0.3934544026851654, 0.5440597534179688, 0.03579750284552574, -0.15682505071163177, 0.08574286848306656, -0.1568334400653839, 0.060052286833524704, 0.055159177631139755, 0.09215782582759857, 0.3318343758583069, -0.05414549261331558, 0.0416545532643795, 0.02443670481443405, -0.1346430629491806, -0.3162120580673218, 0.0016255192458629608, 0.2799021303653717, -0.17945829033851624, -0.05671386420726776, -0.06567275524139404, -0.05797441303730011, -0.07338961213827133, -0.22757171094417572, -0.040951356291770935, -0.18282465636730194, -0.24118337035179138, -0.04841881990432739, -0.03768326714634895, 0.266205757856369, 0.004759959876537323, -0.03485842049121857, 0.16778582334518433, -0.320771723985672, 0.3212359547615051, -0.3943755030632019, -0.12028256058692932, 0.11238468438386917, 0.09087756276130676, -0.042345479130744934, 0.3318921625614166, 0.130833700299263, 0.04041218012571335, -0.2614421248435974, -0.19937068223953247, 0.08414766192436218, -0.0970381498336792, 0.10336577147245407, 0.36995214223861694, 0.014336302876472473, -0.2099999189376831, -0.18092112243175507, 0.326998770236969, -0.15594342350959778, -0.05989376828074455, 0.02471114695072174, -0.11320608854293823, -0.15558749437332153, -0.1792832612991333, -0.30932825803756714, -0.23788051307201385, -0.25996267795562744, 0.08368414640426636, -0.01935495063662529, 0.18145562708377838, 0.1999303549528122, 0.27976059913635254, 0.3256441354751587, -0.01747034303843975, -0.1835031360387802, -0.2639647126197815, -0.28202131390571594, 0.15951403975486755, -0.5192968249320984, -0.1890832781791687, 0.15988866984844208, -0.11968649178743362, 0.44780850410461426, 0.3123953938484192, -0.3665911555290222, -0.033887676894664764, -0.09887915849685669, 0.1386394500732422, -0.09803883731365204, -0.11123786866664886, 0.4257833957672119, 0.1343906670808792, -0.024969225749373436, -0.2975027561187744, -0.4357234239578247, 0.2185884565114975, -0.012027922086417675, 0.10790279507637024, 0.18711437284946442, 0.6236602067947388, -0.021652624011039734, 0.7203984260559082, 0.332892507314682, -0.31263232231140137, 0.28534024953842163, -0.19340012967586517, 0.24196574091911316, -0.2737654447555542, -0.36825770139694214, -0.007480710744857788, 0.009523384273052216, -0.08642423152923584, 0.06656306236982346, -0.17924723029136658, -0.30933070182800293, 0.04039202630519867, 0.2701489329338074, -0.30751779675483704, -0.2517106533050537, 0.10835886001586914, -0.19754554331302643, 0.3764653205871582, 0.006742030382156372, 0.1433418095111847, -0.48306384682655334, 0.07406538724899292, -0.03610657900571823, -0.05775555595755577, -0.047546133399009705, 0.03418407589197159, -0.5273023247718811, 0.09967142343521118, -0.3856765031814575, 0.19215019047260284, 0.16394948959350586, 0.43702423572540283, -0.13297274708747864, 0.1676364690065384, -0.16699102520942688, 0.29145506024360657, 0.34130045771598816, -0.5667749047279358, -0.33518657088279724, 0.22157782316207886, 0.03179316967725754, -0.531578779220581, 0.05158542841672897, 0.05819156765937805, 0.4367109537124634, 0.031254395842552185, 0.45289263129234314, -0.1641840934753418, -0.0960780456662178, 0.1280759871006012, -0.07425342500209808, 0.037207961082458496, -0.13915075361728668, 0.08312322944402695, -0.3158685564994812, -0.23924489319324493, -0.07013297080993652, 0.11495323479175568, 0.15281067788600922, 0.23153062164783478, -0.182442307472229, -0.04744885861873627, 0.03387577086687088, 0.038272708654403687, 0.13031619787216187, 0.27642348408699036, 0.044592469930648804, 0.16545140743255615, 0.001237965188920498, -0.12202541530132294, 0.23664028942584991, 0.3606576919555664, -0.2667715549468994, -0.4080089032649994, -0.0055064670741558075, -0.03550928831100464, 0.2581007480621338, 0.07406049221754074, -0.18695968389511108, -0.05645686388015747, -0.29637718200683594, 0.01117224432528019, -0.0714510828256607, 0.1902812123298645, 0.48042458295822144, -0.07788600027561188, -0.3768903613090515, -0.6103817820549011, 0.16139334440231323, 0.1002550944685936, 0.014490246772766113, 0.5090959668159485, -0.1684103012084961, -0.26362258195877075, 0.4866533577442169, 0.09405730664730072, 0.6123243570327759, -0.12722280621528625, -0.08780927956104279, 0.1426447629928589, 0.11324708163738251, 0.35538792610168457, -0.03126782178878784, 0.01675437018275261, -0.429201602935791, -0.021339457482099533, -0.0667039081454277, -0.23316805064678192, 0.23041823506355286, 0.348570853471756, -0.18945768475532532, 0.11646713316440582, 0.006589189171791077, 0.4110316038131714, -0.04011428356170654, 0.12077919393777847, 0.2615002691745758, -0.43694400787353516, -0.21263426542282104, 0.3301956057548523, -0.1307958960533142, 0.027113184332847595, -0.10175904631614685, -0.05461697280406952, -0.2210535854101181, -0.28387385606765747, -0.2676754295825958, -0.04280702397227287, -0.5681083798408508, 0.35808321833610535, -0.02897101454436779, 0.02840803563594818, 0.28312650322914124, 0.353912353515625, 0.19210706651210785, 0.29027312994003296, -0.06442476063966751, -0.028765158727765083, 0.1674305498600006, 0.1439157873392105, -0.008014548569917679, -0.09168188273906708, 0.12531313300132751, 0.04177873581647873, -0.1290610134601593, 0.08961448073387146, -0.08457277715206146, -0.1493299901485443, -0.12743666768074036, -0.0991620272397995, 0.23952069878578186, -0.5454427599906921, -0.2835674285888672, -0.280887246131897, -0.09224565327167511, -0.1747673898935318, 0.19645145535469055, 0.014883111231029034, 0.01398424431681633, 0.3123817443847656, -0.20659388601779938, -0.269523561000824, 0.061765555292367935, 0.10664936900138855, -0.0698234885931015, 0.1705077737569809, 0.4268482029438019, 0.012101776897907257, -0.04653392359614372, -0.3360987603664398, 0.17951686680316925, 0.11918143928050995, -0.37742048501968384, 0.17382916808128357, -0.10107459127902985, -0.015217989683151245, 0.06079237535595894, 0.2285788655281067, 0.10354883968830109, 0.11699581891298294, 0.21952229738235474, -0.2181684821844101, -0.3500104546546936, -0.0041084326803684235, -0.20889981091022491, 0.36085817217826843, 0.10462173819541931, 0.27333760261535645, -0.05056114122271538, -0.0350843146443367, -0.3905482888221741, 0.1263684630393982, -0.13494539260864258, 0.16960793733596802, 0.22142648696899414, 0.12921226024627686, 0.10332681983709335, 0.03847027197480202, 0.15626183152198792, 0.35083648562431335, -0.26355698704719543, -0.27342653274536133, -0.13937413692474365, 0.04894174635410309, 0.2369983196258545, -0.18488259613513947, 0.10326167941093445, -0.13236722350120544, -0.3075629770755768, -0.25865793228149414, -0.05603839084506035, 0.24638599157333374, -0.1726578325033188, 0.2121625691652298, 0.08827099204063416, 0.05334370583295822, 0.09318961203098297, 0.06736979633569717, -0.06312214583158493, 0.011818401515483856, 0.003136932849884033, 0.15289092063903809, 0.13738662004470825, -0.12225986272096634, -0.11247891187667847, 0.10237839818000793, 0.011909622699022293, 0.08242613077163696, 0.15782469511032104, -0.23289963603019714, 0.07446233928203583, 0.21151703596115112, 0.2725222706794739, 0.10736361145973206, -0.4062049388885498, -0.06516432762145996, 0.36745837330818176, 0.30921080708503723, -0.1567983776330948, -0.07733303308486938, 0.44371911883354187, 0.07174842059612274, 0.14197731018066406, 0.2614400386810303, 0.11257632821798325, 0.11575286090373993, -0.25280579924583435, -0.14447985589504242, 0.1303108036518097, -0.13385197520256042, 0.3573176860809326, 0.4807223379611969, -0.11130931228399277, 0.0738125666975975, 0.23186926543712616, 0.21450382471084595, 0.1798754632472992, 0.6407541632652283, -0.10273116081953049, 0.40424981713294983, 0.15372031927108765, -0.08888351172208786, 0.2393779456615448, -0.4293385148048401, 0.3233009874820709, 0.09970010071992874, -0.12099152058362961, 0.1440594494342804, -0.1215435042977333, 0.22683566808700562, -0.25954774022102356, 0.006333611905574799, -0.165170818567276, 0.0348440445959568, -0.2834736406803131, -0.00035342201590538025, -0.0922810360789299, -0.04600785672664642, 0.14856985211372375, -0.26730579137802124, -0.10608036071062088, -0.18382152915000916, 0.24174800515174866, -0.1152060478925705, -0.008453462272882462, -0.21452604234218597, -0.12572945654392242, 0.11787442117929459, -0.003553975373506546, -0.21240529417991638, 0.07510872930288315, -0.1516326665878296, 0.05784238874912262, -0.1489548534154892, 0.352796733379364, 0.36545008420944214, 0.5458375215530396, -0.10880327224731445, 0.05832452327013016, 0.14973784983158112, -0.052624255418777466, 0.13730914890766144, 0.09949136525392532, 0.13393054902553558, 0.032491594552993774, 0.4296290874481201, 0.17087586224079132, -0.17307308316230774, -0.10641060769557953, 0.15638601779937744, 0.36006802320480347, -0.0998782366514206, 0.06028687581419945, -0.13641177117824554, -0.06251302361488342, -0.18647733330726624, 0.28169965744018555, -0.21341149508953094, -0.1622435748577118, 0.6050930023193359, 0.026961319148540497, 0.34532228112220764, -0.24748244881629944, 0.14591549336910248, -0.11328118294477463, 0.49642208218574524, 0.11372049152851105, -0.027394890785217285, -0.39463260769844055, -0.3023865222930908, -0.4063788056373596, 0.1022876501083374, -0.37662962079048157, 0.07846874743700027, -0.08807487040758133, 0.030101358890533447, -0.03702961653470993, 0.06641077995300293, 0.1207997053861618, -0.22224965691566467, -0.1465129852294922, 0.27605003118515015, -0.22534744441509247, -0.2499593049287796, -0.3256140649318695, -0.08290150761604309, 0.3331921100616455, -0.3161221146583557, -0.08584859222173691, 0.003405541181564331, 0.1438675969839096, -0.26194894313812256, 0.029976263642311096, 0.08298380672931671, -0.08846438676118851, 0.5856483578681946, 0.16304107010364532, 0.3099347651004791, 0.01926238089799881, -0.06434433162212372, -0.17921368777751923, -0.17159181833267212, -0.09057148545980453, 0.2927238941192627, 0.06168431043624878, 0.6076015830039978, -0.14915494620800018, -0.0012977940496057272, -0.31157389283180237, -0.10975033044815063, 0.16414207220077515, -0.0857376903295517, -0.2654819190502167, 0.24440406262874603, -0.018135756254196167, -0.04404819756746292, 0.10097193717956543, 0.24559468030929565, -0.08197221159934998, 0.51508629322052, -0.008100137114524841, -0.29141050577163696, 0.5103009343147278, -0.5262166261672974, -0.3504878878593445, 0.1792098581790924, 0.002451948821544647, -0.0736708864569664, -0.22782468795776367, -0.5044870376586914, 0.09551410377025604, 0.3978461027145386, -0.07570883631706238, -0.09643547981977463, 0.05446196720004082, -0.24284011125564575, 0.16268709301948547, -0.027684859931468964, 0.29333871603012085, -0.20391042530536652, -0.1067739874124527, 0.21424312889575958, -0.21253031492233276 ]
https://github.com/huggingface/datasets/issues/2106
Hi ! Thanks for reporting By looking at the raw `news-commentary-v14.en-kk.tsv` file, it looks like there are at least 17 lines with this issue. Moreover these issues are not always the same: - L97 is only `kk` text and must be appended at the end of the `kk` text of the **next** line - L2897 is only `kk` text and must be appended at the end of the `kk` text of the **previous** line - L1247 and L1248 are only `kk` texts and must be inserted at the **beginning** of the `kk` text of the next line - (and there are many others) It would be nice to have a corrected version of this file ! The file is available in the `wmt/news-commentary` repository on the Datasets Hub here: https://huggingface.co/datasets/wmt/news-commentary/tree/main/v14/training Then maybe we can notify the WMT authors and host the corrected version somewhere
WMT19 Dataset for Kazakh-English is not formatted correctly
In addition to the bug of languages being switched from Issue @415, there are incorrect translations in the dataset because the English-Kazakh translations have a one off formatting error. The News Commentary v14 parallel data set for kk-en from http://www.statmt.org/wmt19/translation-task.html has a bug here: > Line 94. The Swiss National Bank, for its part, has been battling with the deflationary effects of the franc’s dramatic appreciation over the past few years. Швейцарияның Ұлттық банкі өз тарапынан, соңғы бірнеше жыл ішінде франк құнының қатты өсуінің дефляциялық әсерімен күресіп келеді. > > Line 95. Дефляциялық күштер 2008 жылы терең және ұзаққа созылған жаһандық дағдарысқа байланысты орын алған ірі экономикалық және қаржылық орын алмасулардың арқасында босатылды. Жеке қарыз қаражаты үлесінің қысқаруы орталық банктің рефляцияға жұмсалған күш-жігеріне тұрақты соққан қарсы желдей болды. > > Line 96. The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008. Private deleveraging became a steady headwind to central bank efforts to reflate. 2009 жылы, алдыңғы қатарлы экономикалардың шамамен үштен бірі бағаның төмендеуін көрсетті, бұл соғыстан кейінгі жоғары деңгей болды. As you can see, line 95 has only the Kazakh translation which should be part of line 96. This causes all of the following English-Kazakh translation pairs to be one off rendering ALL of those translations incorrect. This issue was not fixed when the dataset was imported to Huggingface. By running this code ``` import datasets from datasets import load_dataset dataset = load_dataset('wmt19', 'kk-en') for key in dataset['train']['translation']: if 'The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008.' in key['kk']: print(key['en']) print(key['kk']) break ``` we get: > 2009 жылы, алдыңғы қатарлы экономикалардың шамамен үштен бірі бағаның төмендеуін көрсетті, бұл соғыстан кейінгі жоғары деңгей болды. > The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008. Private deleveraging became a steady headwind to central bank efforts to reflate. which shows that the issue still persists in the Huggingface dataset. The Kazakh sentence matches up to the next English sentence in the dataset instead of the current one. Please let me know if there's you have any ideas to fix this one-off error from the dataset or if this can be fixed by Huggingface.
144
WMT19 Dataset for Kazakh-English is not formatted correctly In addition to the bug of languages being switched from Issue @415, there are incorrect translations in the dataset because the English-Kazakh translations have a one off formatting error. The News Commentary v14 parallel data set for kk-en from http://www.statmt.org/wmt19/translation-task.html has a bug here: > Line 94. The Swiss National Bank, for its part, has been battling with the deflationary effects of the franc’s dramatic appreciation over the past few years. Швейцарияның Ұлттық банкі өз тарапынан, соңғы бірнеше жыл ішінде франк құнының қатты өсуінің дефляциялық әсерімен күресіп келеді. > > Line 95. Дефляциялық күштер 2008 жылы терең және ұзаққа созылған жаһандық дағдарысқа байланысты орын алған ірі экономикалық және қаржылық орын алмасулардың арқасында босатылды. Жеке қарыз қаражаты үлесінің қысқаруы орталық банктің рефляцияға жұмсалған күш-жігеріне тұрақты соққан қарсы желдей болды. > > Line 96. The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008. Private deleveraging became a steady headwind to central bank efforts to reflate. 2009 жылы, алдыңғы қатарлы экономикалардың шамамен үштен бірі бағаның төмендеуін көрсетті, бұл соғыстан кейінгі жоғары деңгей болды. As you can see, line 95 has only the Kazakh translation which should be part of line 96. This causes all of the following English-Kazakh translation pairs to be one off rendering ALL of those translations incorrect. This issue was not fixed when the dataset was imported to Huggingface. By running this code ``` import datasets from datasets import load_dataset dataset = load_dataset('wmt19', 'kk-en') for key in dataset['train']['translation']: if 'The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008.' in key['kk']: print(key['en']) print(key['kk']) break ``` we get: > 2009 жылы, алдыңғы қатарлы экономикалардың шамамен үштен бірі бағаның төмендеуін көрсетті, бұл соғыстан кейінгі жоғары деңгей болды. > The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008. Private deleveraging became a steady headwind to central bank efforts to reflate. which shows that the issue still persists in the Huggingface dataset. The Kazakh sentence matches up to the next English sentence in the dataset instead of the current one. Please let me know if there's you have any ideas to fix this one-off error from the dataset or if this can be fixed by Huggingface. Hi ! Thanks for reporting By looking at the raw `news-commentary-v14.en-kk.tsv` file, it looks like there are at least 17 lines with this issue. Moreover these issues are not always the same: - L97 is only `kk` text and must be appended at the end of the `kk` text of the **next** line - L2897 is only `kk` text and must be appended at the end of the `kk` text of the **previous** line - L1247 and L1248 are only `kk` texts and must be inserted at the **beginning** of the `kk` text of the next line - (and there are many others) It would be nice to have a corrected version of this file ! The file is available in the `wmt/news-commentary` repository on the Datasets Hub here: https://huggingface.co/datasets/wmt/news-commentary/tree/main/v14/training Then maybe we can notify the WMT authors and host the corrected version somewhere
[ -0.0953303724527359, -0.5491962432861328, -0.043218109756708145, 0.3162059485912323, -0.08602708578109741, 0.010772444307804108, 0.18379150331020355, 0.17220914363861084, -0.11406652629375458, 0.2022087723016739, 0.1289510726928711, 0.09879294037818909, 0.1117265596985817, 0.5228419899940491, 0.0502476692199707, -0.21062852442264557, 0.1143200546503067, -0.19415007531642914, -0.259269118309021, -0.13412807881832123, -0.0660603791475296, 0.10563088953495026, -0.4930416941642761, -0.05480092018842697, -0.41174519062042236, -0.11516464501619339, -0.1502329409122467, -0.0785621702671051, -0.06588073819875717, -0.1956115961074829, 0.07030428946018219, 0.13356202840805054, -0.1053127646446228, 0.35102152824401855, -0.0001112676109187305, -0.2417629510164261, 0.021564064547419548, -0.0297250933945179, -0.16293664276599884, 0.07628972828388214, -0.12577790021896362, -0.8057079911231995, -0.2112894207239151, -0.12044312059879303, -0.10379752516746521, -0.42112892866134644, -0.15734483301639557, 0.049836501479148865, 0.3065548837184906, 0.1048356145620346, 0.1853928118944168, 0.28816840052604675, -0.002612091600894928, -0.11872952431440353, -0.18591277301311493, -0.020366717129945755, -0.1585623323917389, 0.019885238260030746, 0.11007045209407806, 0.15269067883491516, -0.11945062130689621, 0.6587668061256409, 0.011842690408229828, -0.11082020401954651, -0.029941409826278687, -0.11550308018922806, -0.14760597050189972, 0.02715875580906868, 0.07761093974113464, 0.4503268301486969, 0.44131600856781006, 0.01704278029501438, -0.051896076649427414, -0.1849428117275238, 0.0404486283659935, -0.3243750333786011, 0.07022970169782639, 0.15095314383506775, -0.2087913453578949, 0.1687711477279663, 0.022208258509635925, 0.31000715494155884, 0.09863416850566864, 0.05401068925857544, -0.20075920224189758, 0.4679330885410309, -0.14769406616687775, 0.027062755078077316, 0.054225243628025055, -0.041486725211143494, -0.11182163655757904, -0.060952477157115936, -0.013524476438760757, -0.14183706045150757, -0.14816440641880035, -0.0013136938214302063, -0.09524105489253998, -0.21983832120895386, 0.15399421751499176, -0.5207999348640442, -0.11590441316366196, 0.35599684715270996, -0.23074448108673096, -0.17779406905174255, 0.1927599161863327, 0.5753377676010132, 0.05765783414244652, -0.34042829275131226, 0.14004266262054443, 0.16387149691581726, 0.005113847553730011, -0.00427611730992794, 0.08582291752099991, -0.4291132688522339, -0.2851945757865906, 0.13752861320972443, -0.05544259399175644, -0.03889762610197067, -0.09303117543458939, 0.12234733253717422, 0.19579370319843292, -0.14406031370162964, -0.2310916781425476, 0.01978147402405739, -0.11389224976301193, 0.429162859916687, -0.1612134873867035, 0.0644565001130104, -0.17765896022319794, -0.1697157472372055, -0.17971956729888916, -0.13991467654705048, -0.31851768493652344, -0.03268773853778839, -0.19182643294334412, 0.1269252896308899, 0.2599647045135498, 0.23285844922065735, 0.01058925874531269, -0.08165733516216278, -0.33588317036628723, -0.07449118793010712, 0.4750352203845978, 0.2353508323431015, -0.10940645635128021, 0.1894776076078415, -0.06725385785102844, 0.08552427589893341, 0.0013105571269989014, 0.01846061460673809, -0.3052258789539337, 0.23708826303482056, -0.012714752927422523, 0.12227357923984528, -0.1284807324409485, -0.09589078277349472, -0.2741917371749878, 0.5493571162223816, 0.023612920194864273, -0.01649792492389679, 0.19536300003528595, -0.10729318857192993, -0.39070916175842285, -0.12507963180541992, 0.26034408807754517, 0.19206452369689941, -0.3559534549713135, -0.028467118740081787, 0.10109497606754303, -0.051799751818180084, 0.49394965171813965, 0.4126814901828766, 0.1056017279624939, 0.1440577507019043, -0.020315319299697876, 0.17872197926044464, -0.0787365511059761, 0.04091989994049072, -0.31283316016197205, 0.013484086841344833, -0.27290940284729004, 0.46395343542099, -0.0156172476708889, 0.028868209570646286, 0.0604277141392231, 0.29151150584220886, 0.16218867897987366, 0.04575178399682045, 0.06714826077222824, 0.23639364540576935, -0.28661683201789856, -0.3670729398727417, 0.6842616200447083, -0.19204053282737732, 0.16208156943321228, -0.34658539295196533, 0.02377425506711006, -0.13465574383735657, 0.5904837846755981, 0.23877036571502686, 0.1202826052904129, -0.13349682092666626, -0.07767297327518463, 0.048344943672418594, 0.25634533166885376, 0.1525762379169464, -0.26150763034820557, 0.20690613985061646, 0.19942191243171692, 0.4913661479949951, 0.23914122581481934, 0.13075056672096252, -0.17878267168998718, -0.1840565800666809, -0.2560291588306427, -0.3216756582260132, 0.2132313847541809, 0.08678917586803436, -0.4696199297904968, 0.3506498634815216, -0.06355735659599304, -0.04470562934875488, -0.06722410768270493, -0.026002319529652596, -0.21258872747421265, -0.029751088470220566, -0.008949761278927326, -0.02854914404451847, -0.15087977051734924, 0.2967286705970764, 0.24458067119121552, 0.18122081458568573, -0.2409956008195877, 0.09130030870437622, 0.06382709741592407, 0.6336420774459839, -0.11218804121017456, -0.24152207374572754, 0.24191166460514069, -0.7164648175239563, 0.035253122448921204, 0.1181262880563736, -0.059329189360141754, -0.09514115005731583, 0.12399624288082123, 0.43100693821907043, -0.015163148753345013, 0.06345415115356445, -0.1755184829235077, 0.08949176967144012, 0.2513158321380615, -0.05918671935796738, -0.07287156581878662, -0.258755624294281, 0.1687142550945282, -0.23818378150463104, -0.2176356166601181, -0.03305353224277496, -0.1434033215045929, 0.3936034142971039, 0.5164346098899841, 0.2517271637916565, 0.22643156349658966, -0.10313285887241364, -0.41071611642837524, -0.1604110598564148, 0.3795120120048523, 0.2175554633140564, -0.08694132417440414, 0.09453605115413666, 0.1723044216632843, 0.2995278537273407, 0.11390694975852966, -0.13244137167930603, 0.12955144047737122, 0.020617419853806496, 0.09546017646789551, 0.280534029006958, -0.10220924019813538, 0.020655471831560135, -0.26308006048202515, 0.5188573598861694, -0.13021570444107056, 0.044532209634780884, -0.18247109651565552, -0.17196662724018097, -0.4352491497993469, -0.08660512417554855, -0.5954188108444214, -0.38023841381073, -0.15609699487686157, -0.4191436469554901, 0.021924369037151337, -0.21711033582687378, -0.2821986675262451, 0.27304142713546753, 0.570817768573761, 0.13822650909423828, -0.32887282967567444, 0.6834564208984375, -0.3291599154472351, -0.5311247706413269, -0.19048935174942017, 0.0764605849981308, 0.23307636380195618, 0.5193153619766235, 0.10680413246154785, -0.4199672341346741, -0.1401587426662445, -0.0576065257191658, -0.6339116096496582, 0.14190688729286194, -0.36917921900749207, -0.06520400941371918, -0.05829378962516785, 0.31912094354629517, -0.2513318955898285, -0.15171118080615997, 0.28215882182121277, -0.1380903720855713, -0.07859406620264053, 0.37492096424102783, -0.20439639687538147, -0.195982426404953, -0.1805737465620041, -0.44098275899887085, -0.34082451462745667, -0.15625497698783875, 0.21995341777801514, -0.333759605884552, -0.2653495669364929, 0.41102737188339233, 0.23551955819129944, 0.014329403638839722, -0.3028128147125244, 0.13742196559906006, -0.22953921556472778, -0.12518221139907837, 0.03687132149934769, -0.07913869619369507, -0.48768535256385803, 0.19587057828903198, 0.1955719292163849, -0.11935034394264221, -0.09728487581014633, -0.19420912861824036, 0.49391302466392517, -0.0067947786301374435, -0.16694843769073486, 0.18401458859443665, 0.135316863656044, 0.011820871382951736, -0.06235892325639725, -0.0028101615607738495, -0.1753419041633606, -0.23689202964305878, -0.06167751923203468, -0.013281181454658508, 0.16507306694984436, -0.2205604612827301, 0.22178301215171814, 0.35985416173934937, 0.2768024206161499, 0.14676015079021454, 0.23217003047466278, -0.0783485472202301, -0.0849824994802475, 0.3804539144039154, -0.007025115191936493, -0.1966290920972824, -0.007207509130239487, -0.24643781781196594, 0.09876266121864319, 0.5342603921890259, -0.03620269522070885, 0.34179624915122986, -0.09598663449287415, -0.4318201243877411, -0.3260054588317871, -0.30057230591773987, 0.16341547667980194, 0.13657943904399872, 0.22032222151756287, 0.19388717412948608, 0.002977021038532257, -0.012142658233642578, -0.25413891673088074, 0.011944640427827835, 0.18174780905246735, -0.3233281373977661, 0.14961424469947815, -0.6493245363235474, -0.39080139994621277, -0.2101161777973175, 0.1783202886581421, 0.19084687530994415, 0.5266019105911255, 0.02169332653284073, -0.08679073303937912, 0.014721781015396118, 0.004149690270423889, 0.12252994626760483, 0.11750955879688263, -0.05267934128642082, 0.003635324537754059, -0.10444509238004684, -0.28523045778274536, -0.19018256664276123, -0.1888110190629959, -0.27421286702156067, -0.16024477779865265, 0.38073351979255676, -0.017826110124588013, -0.05379657447338104, -0.03406037762761116, 0.5762076377868652, -0.4829656183719635, 0.05473998188972473, -0.30976414680480957, -0.2468169778585434, -0.07788004726171494, 0.10562758147716522, -0.082828588783741, -0.20355628430843353, -0.2467963993549347, 0.17389923334121704, 0.33073028922080994, 0.21223890781402588, -0.051181450486183167, 0.23937122523784637, 0.4279059171676636, 0.1697329431772232, -0.04597396031022072, 0.3436514139175415, -0.18518170714378357, 0.5676722526550293, 0.32592087984085083, -0.1027509942650795, -0.016861476004123688, -0.4144354462623596, -0.41959482431411743, 0.467789888381958, 0.48749008774757385, -0.1403455138206482, 0.2592276632785797, 0.591562807559967, -0.007007058709859848, -0.28823474049568176, -0.06280167400836945, 0.3577048182487488, 0.4028762876987457, -0.23601269721984863, -0.03688342124223709, 0.12287729978561401, -0.1377457082271576, 0.1044122725725174, 0.09242524206638336, 0.1091303825378418, -0.1621646285057068, 0.18489573895931244, -0.04335441812872887, 0.8865994811058044, 0.22568276524543762, 0.2615553140640259, 0.3602927625179291, 0.03307610750198364, 0.07390677183866501, 0.13859300315380096, -0.16179250180721283, -0.09415735304355621, 0.004583217203617096, -0.04669153690338135, 0.22198432683944702, 0.15276765823364258, -0.07321064174175262, -0.3241302967071533, 0.22432047128677368, 0.10237360000610352, 0.5825098156929016, -0.14134936034679413, -0.10165882110595703, 0.2941730320453644, -0.061782047152519226, -0.22734658420085907, 0.08877450227737427, -0.14160406589508057, 0.04376397654414177, -0.12338683754205704, -0.18491053581237793, -0.10140705108642578, -0.15011687576770782, -0.32511788606643677, -0.024100203067064285, -0.29458004236221313, -0.10345087200403214, -0.2135145366191864, 0.01795339584350586, -0.002956703305244446, 0.01861201971769333, 0.4101047217845917, 0.20338967442512512, -0.05462459474802017, -0.03765583038330078, 0.2404325157403946, 0.2063184231519699, 0.014855194836854935, -0.0065985508263111115, 0.20286284387111664, -0.22637903690338135, -0.25335633754730225, 0.06463745981454849, -0.11270812153816223, 0.2360697239637375, -0.033952534198760986, -0.05332767963409424, -0.006304317153990269, 0.26339635252952576, 0.0496421679854393, 0.3528273105621338, 0.16206255555152893, -0.42913633584976196, 0.10873154550790787, -0.08651861548423767, -0.1663241982460022, 0.3700788617134094, 0.2234920859336853, -0.26197728514671326, -0.1754828244447708, 0.06725560128688812, 0.2198857069015503, 0.15499618649482727, 0.3292730450630188, 0.3228931128978729, -0.15894797444343567, -0.23085591197013855, 0.1641916036605835, 0.17833496630191803, -0.3057084083557129, 0.04981663078069687, -0.12268070876598358, 0.014501571655273438, -0.24616950750350952, 0.7356244921684265, 0.24387648701667786, -0.3041028380393982, -0.10088952630758286, -0.2222035825252533, -0.22467616200447083, 0.46483901143074036, 0.21482084691524506, 0.022317057475447655, 0.27170974016189575, 0.3222667872905731, 0.027798287570476532, 0.15682901442050934, -0.3618488311767578, 0.05530042201280594, 0.14751040935516357, 0.08929786831140518, -0.2331242561340332, 0.12359508126974106, 0.07840964198112488, -0.04598713666200638, -0.04910561069846153, 0.04902249947190285, -0.13689793646335602, -0.17570115625858307, -0.25229036808013916, 0.07033952325582504, 0.1060350090265274, -0.20248311758041382, 0.12984424829483032, -0.12092691659927368, -0.010206748731434345, -0.260637491941452, -0.039115265011787415, 0.30323395133018494, 0.021405501291155815, 0.656204342842102, 0.5113467574119568, 0.37483999133110046, -0.16765853762626648, 0.030637457966804504, 0.1414143592119217, 0.04082999378442764, -0.02151767536997795, -0.07421980798244476, 0.05764027312397957, -0.01403568685054779, 0.018179994076490402, 0.0019827354699373245, -0.07014180719852448, 0.31095969676971436, 0.03145726025104523, -0.05690700560808182, 0.14990974962711334, -0.07563094794750214, 0.2567429840564728, 0.23281794786453247, -0.0061734020709991455, -0.13683195412158966, 0.13346761465072632, 0.12608976662158966, -0.35533246397972107, 0.06958729028701782, 0.23154564201831818, -0.24979005753993988, 0.22471198439598083, -0.05470769852399826, 0.6976210474967957, -0.17128387093544006, 0.12964287400245667, -0.05975726246833801, -0.1611151099205017, -0.28723523020744324, 0.2644670605659485, 0.17096437513828278, -0.09302011132240295, 0.26800093054771423, -0.09163335710763931, -0.05256100744009018, -0.10023880004882812, 0.0008200895972549915, 0.18949443101882935, 0.3614404797554016, 0.32508331537246704, -0.0061285002157092094, -0.07622047513723373, -0.17648392915725708, 0.39230936765670776, 0.2627926170825958, -0.5786656141281128, -0.011880462989211082, 0.31520378589630127, 0.4003913998603821, 0.026182033121585846, -0.23311610519886017, -0.19602897763252258, 0.14542201161384583, -0.4816759526729584, 0.09716884046792984, -0.09881079196929932, -0.1527322381734848, -0.16370472311973572, -0.13874594867229462, -0.1691412627696991, 0.11892027407884598, 0.21135586500167847, -0.059602029621601105, -0.23627185821533203, 0.06460408121347427, -0.3638755679130554, -0.004197010304778814, 0.15477672219276428, -0.23151028156280518, 0.17448663711547852, 0.2585040032863617, -0.05606572702527046, -0.021664798259735107, 0.41354069113731384, 0.14564014971256256, 0.21273036301136017, 0.020573675632476807, -0.1573350727558136, 0.21029426157474518, 0.031232647597789764, 0.04501829296350479, 0.2843780815601349, 0.29462069272994995, -0.07311419397592545, 0.16284824907779694, 0.14275552332401276, -0.24512197077274323, -0.10935819894075394, 0.4080255329608917, -0.0703594833612442, -0.14832746982574463, -0.3365427553653717, -0.2267836034297943, 0.010314680635929108, -0.166145920753479, 0.010659914463758469, -0.06234739348292351, 0.04476073011755943, 0.4490061402320862, -0.07464599609375, 0.08885341882705688, -0.15170659124851227, 0.12232937663793564, 0.22191601991653442, 0.6906310319900513, 0.29634565114974976, -0.1648273766040802, -0.008998947218060493, -0.30205291509628296, -0.7928385734558105, 0.2897748649120331, -0.08511890470981598, 0.4469284415245056, -0.08661666512489319, -0.12004581838846207, 0.3575141429901123, 0.2640537619590759, 0.21364660561084747, 0.27240851521492004, -0.1845100224018097, -0.13937874138355255, -0.48093199729919434, 0.09020216017961502, 0.3914109468460083, -0.03300129622220993, -0.08316811174154282, -0.10770321637392044, 0.30519500374794006, -0.11508689075708389, 0.0880977064371109, -0.0039886776357889175, 0.0451829731464386, -0.3098980784416199, 0.20563983917236328, 0.2238471955060959, 0.07491400092840195, 0.39040371775627136, -0.07487191259860992, -0.15208598971366882, -0.19489786028862, -0.11830031871795654, -0.013815268874168396, 0.353748083114624, 0.010986395180225372, 0.23066243529319763, 0.1819506585597992, -0.00991811603307724, 0.015074435621500015, -0.00973718985915184, 0.19719772040843964, -0.08326596021652222, -0.33647486567497253, 0.2710093557834625, 0.19839243590831757, -0.2360701560974121, 0.19539295136928558, 0.5181950330734253, 0.13699162006378174, -0.08912628889083862, -0.2669432759284973, -0.2945525050163269, 0.10052226483821869, -0.1692589670419693, -0.27588897943496704, -0.26253849267959595, -0.13983453810214996, 0.333219438791275, 0.04444994032382965, -0.1931961476802826, 0.004304438829421997, 0.09157350659370422, 0.3010490834712982, 0.02511163055896759, 0.10656818747520447, -0.2855905592441559, -0.13504812121391296, 0.057714320719242096, 0.2076469361782074, 0.35846731066703796, -0.28329068422317505, -0.1735757291316986, -0.09660137444734573 ]
https://github.com/huggingface/datasets/issues/2105
Hello @kyleclo! Currently, we are getting the data from your bucket, so if you remove it the HF script won't work anymore :) Until you solve things on your end, @lhoestq suggested we just return a warning message when people try to load that dataset from HF. What would you like it to say?
Request to remove S2ORC dataset
Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks!
54
Request to remove S2ORC dataset Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks! Hello @kyleclo! Currently, we are getting the data from your bucket, so if you remove it the HF script won't work anymore :) Until you solve things on your end, @lhoestq suggested we just return a warning message when people try to load that dataset from HF. What would you like it to say?
[ 0.24974586069583893, -0.3549625873565674, -0.015487950295209885, 0.21698683500289917, 0.05097876861691475, -0.059979282319545746, 0.015363536775112152, 0.17014656960964203, 0.30050936341285706, 0.06499642133712769, -0.3151448369026184, -0.24191629886627197, -0.3971518278121948, 0.36707913875579834, -0.20821411907672882, 0.14818412065505981, -0.12108996510505676, 0.047345053404569626, -0.26884421706199646, -0.021625585854053497, 0.10517267882823944, 0.24627234041690826, -0.05332831293344498, 0.3302410840988159, -0.22048063576221466, -0.182488352060318, 0.00037601590156555176, 0.2880859076976776, -0.16819636523723602, -0.33035117387771606, 0.33429962396621704, 0.34460777044296265, 0.19433602690696716, 0.47829315066337585, -0.00011910359899047762, -0.2259053885936737, -0.04494788870215416, 0.06342051923274994, -0.3363039493560791, -0.050385624170303345, -0.06390698254108429, 0.08308999985456467, -0.03904484212398529, 0.07060281932353973, -0.17678382992744446, -0.1328934133052826, 0.09462384879589081, -0.11277536302804947, 0.45149534940719604, 0.2237594723701477, 0.14729073643684387, 0.5189122557640076, -0.2679883539676666, 0.23563456535339355, 0.08388727903366089, 0.5844475030899048, -0.09682831913232803, 0.3613196611404419, -0.15073497593402863, -0.1344149112701416, 0.020634617656469345, 0.35446643829345703, -0.4820709526538849, -0.08086037635803223, 0.3423909544944763, -0.2815229296684265, -0.3463054597377777, -0.2894935607910156, 0.19050505757331848, 0.36092454195022583, 0.5013282895088196, -0.18495190143585205, -0.008570600301027298, 0.03262566030025482, 0.058683428913354874, 0.07041504979133606, 0.09367592632770538, 0.10890660434961319, 0.06317376345396042, 0.453869104385376, -0.21326962113380432, -0.509626567363739, -0.23869609832763672, -0.17016620934009552, -0.191897451877594, 0.27411216497421265, -0.23317497968673706, -0.04427528381347656, 0.07564865797758102, -0.012830534018576145, 0.12449367344379425, -0.14043530821800232, -0.12709543108940125, 0.2118847370147705, -0.12322068214416504, -0.3587532937526703, -0.14628170430660248, 0.09784270823001862, 0.3382323682308197, -0.005484369583427906, -0.03390556946396828, -0.10314963757991791, -0.3579527735710144, 0.16391776502132416, 0.26968204975128174, -0.1068989634513855, 0.1650613248348236, 0.08024448156356812, 0.2007356584072113, 0.37109634280204773, 0.26877835392951965, 0.1058005839586258, 0.20097221434116364, 0.1437755674123764, -0.26777517795562744, 0.020693019032478333, 0.4212610423564911, -0.4505497217178345, -0.4954604506492615, 0.37647414207458496, -0.03962124511599541, -0.1254844069480896, 0.15023969113826752, 0.2772761881351471, 0.10187292844057083, -0.01952357590198517, 0.14541183412075043, 0.11652813106775284, -0.18445204198360443, -0.35795217752456665, -0.1602797955274582, 0.2095673680305481, -0.25122928619384766, 0.12039601057767868, 0.18026861548423767, -0.1312955617904663, 0.12877607345581055, 0.11436691880226135, 0.6399710178375244, 0.24060951173305511, -0.16660559177398682, -0.14662432670593262, 0.26038408279418945, 0.1203869879245758, -0.18112057447433472, 0.0802045688033104, 0.1370406150817871, 0.09619247168302536, -0.2488335371017456, 0.0890594869852066, -0.3099265694618225, -0.2802247107028961, -0.5160052180290222, 0.04205440729856491, -0.1513461470603943, 0.04819194972515106, -0.3567976653575897, -0.05156772956252098, -0.3598995506763458, 0.10257180035114288, 0.24367216229438782, 0.15250465273857117, -0.45019835233688354, -0.003485683351755142, -0.19811946153640747, 0.534721314907074, -0.06696916371583939, -0.004256829619407654, 0.3785059452056885, -0.3493417501449585, 0.012876328080892563, 0.4040501117706299, -0.23833151161670685, -0.2535090148448944, -0.43913817405700684, -0.14142031967639923, -0.5946815013885498, -0.17445726692676544, 0.09928800165653229, 0.5375522375106812, -0.2992701232433319, 0.2132287174463272, 0.009956099092960358, -0.20312613248825073, 0.011322211474180222, -0.5564863085746765, -0.09735284745693207, -0.08954966813325882, 0.26819929480552673, -0.22592544555664062, -0.22788262367248535, -0.32422858476638794, 0.06123194471001625, -0.10262904316186905, 0.17503847181797028, 0.3118286728858948, 0.07676410675048828, -0.07386425137519836, 0.6009222865104675, 0.052162401378154755, 0.079749196767807, 0.3716995120048523, 0.2853858768939972, 0.24550077319145203, -0.2253013253211975, 0.056051433086395264, -0.19605253636837006, -0.06475485861301422, -0.025065187364816666, -0.07495032995939255, 0.15512646734714508, -0.28838270902633667, -0.1902809739112854, 0.01836521178483963, 0.027183465659618378, 0.1615639626979828, -0.06297557801008224, -0.3182080388069153, -0.01793517917394638, -0.11124356836080551, -0.36828291416168213, 0.6763767600059509, -0.15070515871047974, 0.15776866674423218, -0.17158563435077667, 0.15686634182929993, 0.05887389928102493, 0.2809249758720398, 0.22979700565338135, 0.08757880330085754, 0.2233128398656845, -0.015002762898802757, 0.14292782545089722, 0.2585815191268921, -0.15372972190380096, 0.08226147294044495, 0.22341732680797577, 0.4290004372596741, 0.14449802041053772, -0.1048835888504982, 0.4809742271900177, -0.08274143189191818, -0.054045528173446655, 0.2035282850265503, 0.08712686598300934, 0.26143816113471985, -0.33574429154396057, 0.05263562500476837, -0.3771408498287201, -0.17904400825500488, 0.16474318504333496, -0.06153019145131111, -0.1390988826751709, 0.012875624001026154, 0.11432480067014694, 0.1538398265838623, -0.227792888879776, -0.08457249402999878, -0.36207789182662964, -0.10908664762973785, -0.1644122451543808, -0.2193993330001831, -0.23505133390426636, 0.2299928218126297, -0.015185054391622543, -0.05782528221607208, 0.41762036085128784, -0.011516191065311432, 0.2619348466396332, 0.1280820220708847, -0.14512544870376587, 0.24112366139888763, 0.31636542081832886, -0.07468471676111221, 0.2493269294500351, 0.08661960065364838, -0.03551359474658966, -0.0647580698132515, 0.10313373059034348, 0.08496063947677612, -0.3730010688304901, -0.2814786434173584, -0.3263092041015625, -0.08156179636716843, -0.39906901121139526, 0.17052492499351501, -0.18779423832893372, -0.3982466459274292, 0.031280603259801865, 0.4227202534675598, -0.6007089018821716, 0.07258488982915878, 0.32272207736968994, 0.2935101389884949, -0.10041983425617218, -0.05415371060371399, -0.2906796336174011, 0.37607771158218384, -0.36065542697906494, 0.0042777713388204575, -0.1575547605752945, 0.15597482025623322, -0.023097705096006393, 0.048961084336042404, -0.05923163518309593, -0.07559854537248611, 0.5918332934379578, 0.0483931303024292, -0.1953926682472229, -0.24204185605049133, -0.028611846268177032, 0.2571061849594116, 0.022235453128814697, -0.2735896706581116, 0.3110339641571045, 0.4664095640182495, -0.19589580595493317, 0.08880965411663055, -0.23065581917762756, -0.31529006361961365, -0.07529177516698837, -0.022192221134901047, -0.010112661868333817, 0.1665058434009552, -0.16605927050113678, 0.35094016790390015, -0.1194060742855072, -0.12063838541507721, -0.10058006644248962, -0.24982337653636932, 0.10176654160022736, 0.1561325192451477, -0.24233120679855347, -0.03778944909572601, -0.43890076875686646, -0.2412038892507553, -0.47839614748954773, -0.7775783538818359, 0.13222333788871765, 0.15510612726211548, 0.06194004788994789, 0.3001135587692261, 0.29070380330085754, 0.024334758520126343, -0.24533943831920624, -0.4676840901374817, -0.26667603850364685, 0.1108362004160881, 0.02995382994413376, -0.07119278609752655, -0.03879109397530556, 0.13166910409927368, -0.032535620033741, -0.044416651129722595, 0.020417675375938416, -0.13656651973724365, -0.24442756175994873, -0.007504712324589491, 0.25179675221443176, 0.032536786049604416, 0.12610164284706116, 0.022791914641857147, 0.4973384141921997, 0.1448776125907898, 0.08416736125946045, 0.4559575915336609, 0.1717981994152069, 0.36627763509750366, 0.02378767728805542, -0.24252356588840485, 0.10335269570350647, 0.14164070785045624, -0.3005753457546234, 0.24407263100147247, -0.03838098794221878, 0.3073280453681946, -0.008121825754642487, -0.2871602475643158, -0.028257004916667938, -0.33995428681373596, 0.00910484604537487, 0.12800268828868866, 0.20550315082073212, 0.024884983897209167, -0.29290062189102173, 0.29745423793792725, -0.4071056544780731, 0.2614756226539612, 0.25953784584999084, 0.5409591197967529, -0.06826671212911606, -0.33931487798690796, 0.04671916365623474, -0.6888620257377625, 0.29796797037124634, -0.27710458636283875, -0.2801990211009979, -0.24625205993652344, 0.17260006070137024, 0.22835484147071838, 0.24702763557434082, 0.4986196756362915, 0.26801127195358276, 0.0235360786318779, -0.21846739947795868, -0.18256032466888428, -0.05820532888174057, -0.03621521219611168, -0.10567577928304672, 0.18816879391670227, -0.10526365786790848, 0.05004254728555679, -0.35045406222343445, -0.531548023223877, 0.2567065954208374, -0.022587867453694344, -0.17424125969409943, -0.23617863655090332, -0.2920234501361847, -0.1977846920490265, -0.34084320068359375, 0.1677183359861374, 0.30761632323265076, 0.015389353036880493, -0.12531235814094543, 0.10183192044496536, 0.4349920153617859, 0.1473049819469452, 0.6156097650527954, -0.21142029762268066, 0.019333448261022568, 0.34394189715385437, -0.13094282150268555, 0.16889765858650208, 0.3511146903038025, 0.40988820791244507, 0.5923299789428711, 0.1420723795890808, -0.08190590888261795, 0.014037493616342545, 0.17261993885040283, 0.3772749602794647, 0.5314570069313049, 0.14445964992046356, 0.23394745588302612, 0.11103929579257965, 0.5215495824813843, -0.4326658844947815, -0.06308205425739288, 0.12062661349773407, -0.377305805683136, -0.24970689415931702, -0.09899629652500153, 0.20306667685508728, -0.07806055247783661, -0.11884617805480957, -0.14108212292194366, 0.8098536133766174, -0.1867140531539917, 0.1559913456439972, 0.15090243518352509, 1.3320159912109375, -0.24792855978012085, 0.2357516586780548, 0.27129510045051575, -0.12904049456119537, 0.43221724033355713, -0.39088329672813416, -0.17654399573802948, -0.21185120940208435, -0.016208114102482796, -0.16318993270397186, 0.10252881050109863, -0.06200043484568596, 0.14353051781654358, 0.26260805130004883, 0.3281174600124359, -0.49827495217323303, 0.12903304398059845, -0.23355820775032043, 0.27665674686431885, -0.14086763560771942, 0.0030518993735313416, -0.34989243745803833, 0.07449822872877121, -0.1713305413722992, 0.41686850786209106, -0.21911904215812683, -0.06716720014810562, 0.425800085067749, -0.37782785296440125, -0.042464300990104675, 0.044731505215168, 0.03883678466081619, -0.1559123992919922, -0.11129063367843628, 0.04250951111316681, 0.30111297965049744, -0.056034862995147705, 0.3512803018093109, 0.027836117893457413, -0.07267848402261734, 0.0513903871178627, -0.17093613743782043, -0.08419202268123627, -0.29529085755348206, 0.0870443806052208, -0.21911098062992096, 0.04863698035478592, -0.2608412802219391, 0.13572686910629272, 0.25659480690956116, -0.0180952250957489, -0.22274264693260193, -0.04122484475374222, -0.0989610105752945, -0.37067732214927673, 0.03188089653849602, 0.1167127937078476, 0.2910929322242737, 0.15579953789710999, 0.05641917139291763, 0.31691527366638184, -0.013824500143527985, -0.3145056664943695, 0.3934533894062042, -0.255190372467041, -0.21075215935707092, 0.28866034746170044, -0.027212565764784813, -0.262736976146698, 0.30521807074546814, 0.16966933012008667, -0.26570266485214233, -0.3482818603515625, -0.07542531192302704, 0.05891982838511467, -0.5973587036132812, 0.025418009608983994, 0.4354970455169678, -0.16204367578029633, -0.2526150941848755, -0.21097730100154877, 0.05688023939728737, -0.08898704499006271, 0.38488471508026123, -0.04498182237148285, -0.19267648458480835, 0.20185993611812592, -0.21693916618824005, 0.048234011977910995, 0.21394595503807068, 0.09330709278583527, -0.3710499405860901, -0.1320239156484604, -0.26446470618247986, 0.016320988535881042, 0.10535669326782227, -0.2173151671886444, 0.1335788071155548, 0.2935498058795929, 0.29100313782691956, -0.27863597869873047, -0.02031310461461544, -0.09932100772857666, -0.17703531682491302, -0.07488387823104858, -0.2910589575767517, 0.2215995341539383, -0.04490130394697189, -0.16855986416339874, -0.1221846491098404, -0.18832331895828247, 0.023531317710876465, -0.004813574254512787, 0.4513419270515442, 0.74388587474823, 0.2988629639148712, 0.22163856029510498, -0.0300448015332222, -0.2597448229789734, -0.3106909394264221, 0.005865687504410744, 0.28515347838401794, 0.43160396814346313, 0.23423346877098083, 0.03569537773728371, -0.13490387797355652, -0.15486258268356323, -0.07751075178384781, 0.4667084813117981, 0.37201008200645447, 0.19542601704597473, 0.03206467628479004, 0.04222805052995682, -0.13317957520484924, -0.05893527716398239, 0.28704237937927246, -0.16988380253314972, -0.2773599922657013, -0.5174631476402283, 0.09165774285793304, 0.09977932274341583, -0.2205553650856018, 0.00208108127117157, 0.1206340342760086, 0.09960414469242096, -0.22728388011455536, 0.25578629970550537, 0.03283485770225525, 0.29897940158843994, 0.2343001812696457, 0.04975961893796921, 0.10362932831048965, 0.045791368931531906, 0.0056182630360126495, -0.16312091052532196, -0.32564616203308105, -0.1176438182592392, 0.30441251397132874, 0.14181958138942719, 0.2957923412322998, -0.10290902853012085, -0.0012430064380168915, 0.2620552182197571, 0.11007188260555267, 0.3436683118343353, 0.06411302834749222, -0.440439373254776, -0.19734600186347961, 0.41403067111968994, 0.0036724694073200226, -0.03597439453005791, 0.21685642004013062, 0.19782669842243195, 0.07041557133197784, -0.3362603783607483, -0.25195765495300293, 0.38275423645973206, -0.017156582325696945, 0.16197961568832397, 0.14946824312210083, 0.0006605982780456543, -0.23707599937915802, 0.031692974269390106, 0.010173100046813488, -0.18942135572433472, 0.29510894417762756, 0.04105792194604874, -0.16414351761341095, -0.06305434554815292, -0.040724385529756546, 0.24605929851531982, 0.11420490592718124, 0.08090943098068237, -0.18025197088718414, 0.15582971274852753, 0.14664027094841003, 0.40854865312576294, 0.3081880211830139, 0.21870970726013184, -0.1930948793888092, 0.36257562041282654, -0.034516144543886185, -0.19153548777103424, 0.11511404812335968, 0.12955358624458313, 0.19884270429611206, -0.15664218366146088, 0.15492524206638336, 0.06917824596166611, 0.03446285426616669, 0.009970728307962418, -0.09981449693441391, -0.011180255562067032, 0.2621312737464905, -0.28027835488319397, 0.3153550624847412, 0.15434196591377258, 0.10420376062393188, -0.1866542100906372, -0.015701379626989365, -0.17925560474395752, 0.035777412354946136, 0.2729771137237549, 0.019893955439329147, 0.21616101264953613, -0.075698122382164, 0.022973574697971344, -0.11125707626342773, 0.0774393081665039, 0.5089768767356873, 0.014896460808813572, -0.38314905762672424, -0.028236106038093567, -0.36767858266830444, 0.16428333520889282, -0.1747778356075287, -0.01076023280620575, -0.0793023556470871, -0.14459824562072754, 0.25987744331359863, 0.019125616177916527, 0.013753477483987808, -0.45406636595726013, -0.055921521037817, -0.1435641348361969, 0.06219395250082016, 0.2941070795059204, -0.2662774622440338, 0.3607119917869568, 0.02323199063539505, -0.06684956699609756, 0.05986581742763519, 0.029787234961986542, -0.11445768177509308, -0.26415085792541504, 0.3247033357620239, -0.18466132879257202, -0.47627735137939453, 0.2907906770706177, 0.15613757073879242, 0.06207598000764847, -0.13174140453338623, -0.3518448770046234, 0.11718904972076416, -0.15194100141525269, -0.06257882714271545, -0.060147784650325775, 0.2416973114013672, 0.19816026091575623, 0.004298131912946701, -0.19566373527050018, -0.006510753184556961, 0.5049576163291931, -0.23570516705513, 0.33629176020622253, -0.4627586007118225, 0.05054439604282379, -0.2155088484287262, 0.2378561943769455, -0.2511633634567261, 0.2846776247024536, 0.20501647889614105, 0.08586089313030243, -0.2218783050775528, -0.03778336942195892, 0.8010756969451904, -0.24895039200782776, -0.06273440271615982, 0.023047152906656265, 0.7974457144737244, -0.1255708932876587, -0.545665979385376, -0.6729073524475098, 0.38686075806617737, -0.07422401756048203, 0.09238816797733307, -0.021473567932844162, 0.35682159662246704, -0.29218441247940063, 0.0004405006766319275, 0.1347307562828064, 0.38544735312461853, 0.11253514885902405, -0.11364926397800446, 0.21851038932800293, -0.08702132105827332 ]
https://github.com/huggingface/datasets/issues/2105
Hi @kyleclo, as of today, you have not removed your bucket data yet, and therefore HuggingFace can download it from there. Is it OK? Are you planning to eventually delete it? Thank you.
Request to remove S2ORC dataset
Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks!
33
Request to remove S2ORC dataset Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks! Hi @kyleclo, as of today, you have not removed your bucket data yet, and therefore HuggingFace can download it from there. Is it OK? Are you planning to eventually delete it? Thank you.
[ 0.4957599639892578, -0.33373159170150757, -0.08406247943639755, 0.5156828761100769, 0.043857187032699585, -0.10153324156999588, -0.03269375115633011, 0.03290481120347977, -0.06692060083150864, 0.03527107089757919, -0.44595062732696533, -0.15734636783599854, -0.40666019916534424, 0.3072046637535095, -0.21464094519615173, 0.10661335289478302, -0.07043541222810745, -0.025781232863664627, -0.214541956782341, 0.10671639442443848, 0.21573272347450256, 0.2247690111398697, -0.16541564464569092, 0.053916797041893005, -0.21042391657829285, -0.23817375302314758, -0.1167772114276886, 0.13020704686641693, -0.31922730803489685, -0.03538551554083824, 0.3552876114845276, 0.2568553388118744, 0.018079787492752075, 0.5105400085449219, -0.00012078942381776869, -0.24995377659797668, -0.18192914128303528, 0.027343004941940308, -0.34822869300842285, -0.08508359640836716, -0.25392985343933105, 0.2486187219619751, -0.08003738522529602, 0.04942142963409424, -0.02003970742225647, -0.08945013582706451, 0.06770720332860947, -0.0824018344283104, 0.4551745653152466, 0.3425404131412506, 0.17483028769493103, 0.4669802188873291, -0.21673345565795898, 0.36882147192955017, 0.04647437483072281, 0.5212647914886475, -0.10690134763717651, 0.4482249319553375, -0.07730013877153397, 0.11778750270605087, 0.28766342997550964, 0.2670896649360657, -0.4529399573802948, 0.009458307176828384, 0.16811859607696533, -0.1748991757631302, -0.29274189472198486, -0.3420935571193695, 0.40421101450920105, 0.2000584602355957, 0.556781530380249, -0.13562794029712677, -0.07953597605228424, 0.17098776996135712, 0.11036849021911621, 0.026225514709949493, 0.11019843816757202, 0.33645346760749817, 0.12204110622406006, 0.4964209794998169, -0.44708114862442017, -0.6174142360687256, -0.1987924575805664, -0.14570793509483337, -0.37372487783432007, 0.45200327038764954, -0.40583154559135437, -0.09163102507591248, -0.10524223744869232, 0.04178746044635773, 0.16572630405426025, -0.2152702957391739, -0.04214607551693916, 0.1711713671684265, -0.14798174798488617, -0.19339725375175476, -0.266991525888443, 0.33028870820999146, 0.01934940367937088, 0.16992560029029846, 0.1828707456588745, -0.26072612404823303, -0.2533020079135895, 0.10177195072174072, 0.2911594808101654, -0.023763008415699005, 0.03443032503128052, 0.16235807538032532, 0.12578167021274567, 0.16318856179714203, 0.32781028747558594, 0.16402368247509003, 0.11426560580730438, 0.34186553955078125, -0.4561466574668884, -0.10957955569028854, 0.5117802619934082, -0.41405612230300903, -0.3980419635772705, 0.21770311892032623, -0.18945297598838806, -0.05672842264175415, 0.2985415756702423, 0.03701752796769142, 0.04371703043580055, -0.19469904899597168, -0.002385072410106659, 0.029224783182144165, -0.10953797399997711, -0.28614628314971924, -0.15127289295196533, 0.14697705209255219, -0.07589507102966309, -0.04229319468140602, 0.30877798795700073, -0.2856440544128418, 0.21271011233329773, 0.12097328156232834, 0.5065147876739502, 0.19836777448654175, -0.13951221108436584, -0.10038770735263824, 0.13413245975971222, 0.09416675567626953, -0.2758985757827759, 0.19064868986606598, -0.0578918382525444, 0.02933833748102188, -0.16398553550243378, -0.004059106111526489, -0.43042048811912537, -0.2518908679485321, -0.5167295336723328, 0.025633707642555237, -0.16761711239814758, 0.02795255556702614, -0.2884707450866699, -0.13111349940299988, -0.1527276635169983, 0.047771669924259186, 0.20743000507354736, 0.23248590528964996, -0.3048727512359619, -0.1078944057226181, -0.14572390913963318, 0.23100751638412476, 0.011455535888671875, -0.047003887593746185, 0.4015560746192932, -0.16968362033367157, 0.13483040034770966, 0.41376349329948425, -0.14440886676311493, -0.24889221787452698, -0.3052418828010559, -0.19333329796791077, -0.5849937796592712, -0.1785208284854889, -0.21864160895347595, 0.3066713213920593, -0.29163658618927, 0.06532466411590576, 0.09078888595104218, -0.22503386437892914, 0.18677937984466553, -0.39711281657218933, -0.10509385913610458, 0.015019144862890244, 0.2615571916103363, -0.3209240436553955, -0.24464009702205658, -0.21601462364196777, 0.02131771296262741, -0.13899052143096924, -0.05299755930900574, 0.2530773878097534, -0.038851574063301086, 0.06552246958017349, 0.3861151337623596, 0.13721852004528046, 0.26755571365356445, 0.36794692277908325, 0.3419260084629059, -0.0033927299082279205, -0.28926458954811096, 0.022899381816387177, -0.30318474769592285, -0.0008268281817436218, -0.10054327547550201, 0.014012230560183525, 0.10428128391504288, -0.2691428065299988, -0.10320819914340973, -0.06748028844594955, 0.12297775596380234, 0.055216915905475616, 0.006069663912057877, -0.3333396315574646, 0.13701316714286804, -0.2558969557285309, -0.27634236216545105, 0.5580834150314331, -0.05872349441051483, 0.16932445764541626, -0.37646156549453735, 0.12685510516166687, 0.09665542095899582, 0.23099368810653687, 0.29742372035980225, 0.08728508651256561, 0.051679760217666626, -0.1487179398536682, 0.0167449451982975, 0.29364320635795593, -0.19415591657161713, 0.29610395431518555, 0.19571484625339508, 0.5390328168869019, 0.21600088477134705, -0.07518588751554489, 0.37759852409362793, -0.06701558828353882, 0.05536923184990883, 0.17122505605220795, -0.06781777739524841, 0.27587980031967163, -0.2441227287054062, 0.09979062527418137, -0.27666473388671875, -0.05352059006690979, 0.29981663823127747, -0.00847616046667099, -0.2149956226348877, 0.0558525025844574, 0.20653700828552246, 0.12288610637187958, -0.13819760084152222, 0.03919731080532074, -0.20547440648078918, -0.055135104805231094, -0.43981438875198364, -0.08224086463451385, -0.256631076335907, 0.0857049971818924, -0.21975207328796387, -0.1574988216161728, 0.400541752576828, 0.06380628049373627, 0.35122156143188477, 0.1117028295993805, 0.05562618747353554, 0.10147932171821594, 0.6616277098655701, -0.13144825398921967, 0.3922663629055023, 0.15145476162433624, -0.08049064874649048, -0.2001650035381317, 0.3394487798213959, 0.15628047287464142, -0.2818533778190613, -0.044273145496845245, -0.23067933320999146, 0.045003220438957214, -0.21205322444438934, 0.16668295860290527, -0.36806949973106384, -0.4625121057033539, 0.04667835310101509, 0.37355858087539673, -0.6214091181755066, 0.11931785196065903, 0.14951282739639282, 0.20714378356933594, 0.051523253321647644, -0.029418259859085083, -0.11335894465446472, 0.47915130853652954, -0.4406367540359497, -0.0066903140395879745, -0.1465626358985901, 0.0948428362607956, 0.01965583674609661, 0.1045660674571991, 0.0436963215470314, -0.022598788142204285, 0.5850804448127747, 0.08525314182043076, -0.039721131324768066, -0.2896198630332947, -0.14602401852607727, 0.2113805115222931, 0.0025430619716644287, -0.24891813099384308, 0.1970221996307373, 0.3608907461166382, -0.4428422451019287, 0.22806712985038757, -0.2399173229932785, -0.3119659423828125, -0.164821058511734, -0.13566148281097412, 0.024688202887773514, 0.1858583241701126, -0.151295006275177, 0.3677881360054016, -0.1659550964832306, -0.0851375013589859, 0.062441322952508926, -0.06266022473573685, 0.04104698821902275, 0.008538540452718735, -0.4504866600036621, 0.030118077993392944, -0.29702603816986084, -0.22892452776432037, -0.41134485602378845, -0.9189473390579224, 0.15236636996269226, 0.11676681041717529, 0.019330212846398354, 0.2935319244861603, 0.404241681098938, 0.3140757977962494, -0.13401314616203308, -0.2661590576171875, -0.12247976660728455, 0.04876171797513962, 0.059524521231651306, 0.011806247755885124, 0.06520051509141922, 0.23543202877044678, -0.049961816519498825, 0.02741769701242447, 0.05713061988353729, -0.2474699318408966, -0.3330618143081665, 0.3217719793319702, 0.31638649106025696, 0.04325029253959656, -0.09048604965209961, 0.03233552724123001, 0.5703092217445374, 0.11930689215660095, 0.10819869488477707, 0.2337164729833603, 0.058444127440452576, 0.2107962816953659, 0.07743050158023834, -0.3203354477882385, 0.24618268013000488, 0.11410877853631973, -0.3820790946483612, 0.3038386106491089, 0.21079224348068237, 0.2345764935016632, -0.09998313337564468, -0.11759257316589355, -0.3073519766330719, -0.2389182597398758, -0.09669750183820724, 0.16231857240200043, 0.38101261854171753, 0.1455528438091278, -0.4143988788127899, 0.18382398784160614, -0.6200310587882996, 0.01531200110912323, 0.0993892177939415, 0.4457886517047882, -0.14236165583133698, -0.34489327669143677, 0.13891157507896423, -0.7456731796264648, 0.3348259925842285, -0.2592068612575531, -0.40123650431632996, -0.04209858924150467, 0.3280583918094635, 0.39231380820274353, 0.22052599489688873, 0.4572168290615082, 0.39315348863601685, -0.11581657826900482, -0.33113664388656616, -0.1643448770046234, -0.14898620545864105, 0.0543992817401886, -0.12028458714485168, 0.28280794620513916, 0.16601203382015228, 0.01034620776772499, -0.33994027972221375, -0.3981849253177643, 0.2015840709209442, 0.012711115181446075, -0.2689375877380371, -0.1602998673915863, -0.19987672567367554, -0.31155824661254883, -0.1354835033416748, -0.07023783028125763, 0.2671820819377899, 0.09041288495063782, 0.041167549788951874, 0.26583075523376465, 0.23427584767341614, 0.054875731468200684, 0.5304288864135742, -0.38973376154899597, 0.14399373531341553, 0.29504910111427307, -0.049928709864616394, 0.21393176913261414, 0.3759804964065552, 0.30074185132980347, 0.6087450981140137, 0.15272670984268188, -0.12227113544940948, 0.03996111452579498, 0.05561293661594391, 0.4190652072429657, 0.49383312463760376, 0.08408965915441513, 0.22262604534626007, 0.043463997542858124, 0.4279053807258606, -0.3727279007434845, -0.13422636687755585, 0.16826790571212769, -0.3318158984184265, -0.1991737186908722, -0.06861352920532227, 0.19781911373138428, 0.11842216551303864, -0.17559947073459625, -0.10975660383701324, 0.7189232707023621, -0.22718261182308197, 0.038495779037475586, -0.03557449206709862, 1.3941190242767334, -0.16022628545761108, 0.19494393467903137, 0.19412779808044434, -0.11103633046150208, 0.6845207214355469, -0.2874391973018646, -0.03626496344804764, -0.09687986224889755, 0.07661225646734238, -0.1713692992925644, 0.17458155751228333, 0.023401562124490738, 0.1255309283733368, 0.30821073055267334, 0.2151382565498352, -0.49615782499313354, 0.36871305108070374, -0.18465283513069153, 0.22054831683635712, -0.02381778508424759, 0.02189447730779648, -0.5131447911262512, 0.0759434700012207, -0.21000713109970093, 0.3007343113422394, -0.16635410487651825, -0.07313022017478943, 0.15091747045516968, -0.24811357259750366, -0.03938959538936615, -0.12086862325668335, 0.15615162253379822, -0.02911963127553463, -0.11156739294528961, -0.1162346675992012, 0.12379000335931778, 0.11806996166706085, 0.22667789459228516, -0.022031836211681366, -0.22989365458488464, 0.14669622480869293, -0.13104933500289917, -0.12860795855522156, -0.14857836067676544, 0.16184714436531067, -0.5426867604255676, -0.08907386660575867, -0.08154281228780746, 0.08444394171237946, 0.22416777908802032, -0.04649430885910988, -0.13402387499809265, 0.03447844088077545, -0.005843570455908775, -0.2914927899837494, -0.09736695885658264, 0.03032548911869526, 0.17029964923858643, 0.04019147902727127, 0.07083971798419952, 0.31231093406677246, 0.0006766356527805328, -0.29592519998550415, 0.28669631481170654, -0.15378375351428986, -0.23944905400276184, 0.428718626499176, 0.19776418805122375, -0.322549968957901, 0.28572994470596313, -0.01909007877111435, -0.19048035144805908, -0.27513399720191956, 0.20164549350738525, -0.3425217568874359, -0.5874428749084473, 0.11412908136844635, 0.3149663209915161, 0.03660489618778229, -0.2915131151676178, -0.1975773125886917, 0.1104007363319397, -0.026490092277526855, 0.31680458784103394, -0.05849520489573479, -0.19469058513641357, 0.16527265310287476, -0.09269888699054718, -0.041446708142757416, 0.017605558037757874, 0.0027852728962898254, -0.30605271458625793, -0.007844574749469757, -0.23471936583518982, 0.22582769393920898, 0.13536414504051208, -0.16502150893211365, 0.25140970945358276, 0.2690315842628479, 0.18967211246490479, -0.3752940595149994, 0.013990338891744614, -0.1579984724521637, -0.06285460293292999, -0.1252652108669281, -0.20232771337032318, 0.2092256397008896, 0.01371249184012413, -0.36525338888168335, -0.1408754587173462, 0.010652810335159302, -0.07876141369342804, 0.04493771120905876, 0.27075105905532837, 0.6551378965377808, 0.44468605518341064, 0.06954094767570496, -0.13570168614387512, -0.11608521640300751, -0.20911473035812378, 0.12268036603927612, 0.28053152561187744, 0.3615553379058838, 0.27801528573036194, 0.183303564786911, 0.021082144230604172, -0.21382905542850494, -0.09889720380306244, 0.17728297412395477, 0.23022034764289856, 0.1133604496717453, 0.06414040923118591, -0.050400543957948685, 0.016251280903816223, -0.016579698771238327, 0.31960511207580566, 0.04195624217391014, -0.22121690213680267, -0.20519550144672394, 0.09416304528713226, 0.0966501235961914, -0.2390659600496292, 0.09124497324228287, 0.3166816234588623, 0.2178632616996765, -0.24661855399608612, 0.18999692797660828, 0.008090250194072723, 0.37119224667549133, -0.09918996691703796, -0.04837094619870186, 0.10391132533550262, 0.1159600168466568, 0.062235139310359955, -0.18576985597610474, -0.0982564315199852, -0.1045927107334137, 0.36793872714042664, 0.12112002074718475, 0.1277451515197754, -0.18706612288951874, 0.012502539902925491, 0.3199792802333832, 0.13321268558502197, 0.3787962794303894, 0.3281484842300415, -0.3077743947505951, -0.3909493088722229, 0.26688671112060547, -0.018267381936311722, 0.10243616998195648, 0.22938552498817444, 0.40269017219543457, -0.0670616626739502, -0.4168705344200134, -0.28440168499946594, 0.5166848301887512, 0.0485900342464447, -0.03326275572180748, 0.11051672697067261, -0.20091937482357025, 0.051962628960609436, 0.11806119978427887, -0.15135516226291656, -0.2885623276233673, 0.30935555696487427, 0.030390355736017227, -0.1930825412273407, -0.2587173283100128, -0.1305485963821411, 0.25276222825050354, 0.14492835104465485, 0.08356276154518127, -0.14494986832141876, 0.03332676738500595, 0.16585764288902283, 0.13708901405334473, 0.3544537425041199, 0.06753834336996078, -0.31489041447639465, 0.3163480758666992, -0.045144323259592056, -0.16011430323123932, 0.024189293384552002, 0.03452982008457184, 0.3621995151042938, -0.06356504559516907, 0.07394680380821228, -0.07135975360870361, 0.01795084774494171, -0.015564750880002975, -0.025442739948630333, 0.08376869559288025, 0.31009572744369507, -0.37143710255622864, 0.19920697808265686, -0.07778438925743103, -0.001828126609325409, -0.02051476389169693, -0.14329750835895538, -0.19207853078842163, 0.030563049018383026, 0.10919636487960815, 0.01729631796479225, 0.20126019418239594, 0.09178272634744644, 0.01723385602235794, -0.20659688115119934, 0.12583671510219574, 0.4229777753353119, 0.10773946344852448, -0.30117225646972656, -0.28949373960494995, -0.3903498947620392, 0.12697935104370117, -0.10874506086111069, 0.050603799521923065, -0.2355712652206421, -0.06452718377113342, 0.28303730487823486, 0.1545533537864685, -0.20886895060539246, -0.4022494852542877, -0.01718500256538391, -0.06915319710969925, -0.006384424865245819, 0.36154425144195557, -0.27862510085105896, 0.30930930376052856, 0.044629596173763275, -0.06583995372056961, 0.09287603199481964, -0.006805788725614548, -0.10917134582996368, -0.31683558225631714, 0.31099554896354675, -0.16541984677314758, -0.33873122930526733, 0.24038134515285492, 0.13077610731124878, -0.10461221635341644, -0.021196674555540085, -0.34725794196128845, -0.06991154700517654, -0.09860013425350189, 0.10059700906276703, 0.054076001048088074, 0.22099357843399048, 0.15040260553359985, -0.03791164979338646, -0.010277889668941498, 0.04562237113714218, 0.5237255692481995, -0.21178263425827026, 0.28872790932655334, -0.43213677406311035, -0.09733353555202484, -0.2158830314874649, 0.24359777569770813, -0.17514881491661072, 0.2454286515712738, 0.06390566378831863, -0.16148963570594788, -0.2857494354248047, 0.0038836151361465454, 0.7217821478843689, -0.3279658854007721, -0.05236893147230148, 0.08034303784370422, 0.7390751242637634, 0.048214856535196304, -0.4714955985546112, -0.605450451374054, 0.3153672218322754, 0.12547242641448975, -0.19293347001075745, -0.01648591458797455, 0.3764760494232178, -0.28785258531570435, -0.0711827501654625, 0.14214009046554565, 0.4748225212097168, 0.2032741755247116, -0.02973034232854843, 0.2586495578289032, 0.04509507864713669 ]
https://github.com/huggingface/datasets/issues/2105
Hi! Sorry I missed @yjernite 's previous message, thanks for responding! Is there an option where we can keep our data in our bucket, but the HF script no longer pulls data from it?
Request to remove S2ORC dataset
Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks!
34
Request to remove S2ORC dataset Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks! Hi! Sorry I missed @yjernite 's previous message, thanks for responding! Is there an option where we can keep our data in our bucket, but the HF script no longer pulls data from it?
[ 0.3147090673446655, -0.20776543021202087, -0.023903926834464073, 0.32826218008995056, -0.014094354584813118, -0.18290288746356964, 0.01751917228102684, 0.17257490754127502, 0.1771009862422943, 0.16214865446090698, -0.4038797914981842, -0.2786831557750702, -0.3127874732017517, 0.4572269022464752, -0.14338357746601105, 0.19449999928474426, -0.0702700987458229, 0.05244841426610947, -0.320208340883255, 0.0324459969997406, 0.13017505407333374, 0.22618284821510315, -0.08846831321716309, 0.0661727637052536, -0.13803590834140778, -0.1128828302025795, -0.07820648699998856, 0.1449865698814392, -0.1255221962928772, 0.06940238922834396, 0.2610512375831604, 0.47054287791252136, 0.08008399605751038, 0.43399330973625183, -0.00012458441779017448, -0.3209074139595032, -0.15400615334510803, 0.005615442991256714, -0.40185225009918213, -0.1130022332072258, -0.07829567790031433, 0.26411792635917664, -0.09085682034492493, 0.1397801637649536, -0.0534055270254612, -0.1262890100479126, 0.0841631293296814, -0.15273495018482208, 0.3187083601951599, 0.23425951600074768, 0.13144248723983765, 0.5757727026939392, -0.43036967515945435, 0.2741439640522003, 0.12326344102621078, 0.6085687279701233, -0.1516878604888916, 0.3492443859577179, -0.11992248147726059, -0.10974454879760742, 0.21398884057998657, 0.3302993178367615, -0.4357929825782776, -0.09248056262731552, 0.24912601709365845, -0.1535653918981552, -0.39856818318367004, -0.22529640793800354, 0.4142616093158722, 0.2827499806880951, 0.43308597803115845, -0.21041348576545715, -0.09047815203666687, 0.10222883522510529, 0.04743095487356186, 0.04948896914720535, 0.011687607504427433, 0.21442058682441711, 0.09602238982915878, 0.42893752455711365, -0.3170790672302246, -0.6390438675880432, -0.2341398298740387, -0.11406135559082031, -0.3001757860183716, 0.32379648089408875, -0.29734694957733154, -0.064186230301857, -0.07381990551948547, 0.0914316475391388, 0.17973282933235168, -0.23228393495082855, 0.012711599469184875, 0.15899603068828583, -0.0431554801762104, -0.31718355417251587, -0.21787895262241364, 0.3126016855239868, 0.24485749006271362, 0.044557731598615646, 0.024387836456298828, -0.1624380499124527, -0.28454074263572693, 0.20509135723114014, 0.31053099036216736, -0.09216562658548355, 0.041971661150455475, 0.09407272189855576, 0.2771455645561218, 0.25180986523628235, 0.2529096007347107, 0.07159730792045593, 0.19327783584594727, 0.28978919982910156, -0.3893834352493286, -0.15647940337657928, 0.5164505839347839, -0.4300910532474518, -0.4166112542152405, 0.35954394936561584, -0.055288322269916534, -0.06198127567768097, 0.15640772879123688, 0.30357810854911804, 0.11370943486690521, -0.00700019858777523, 0.06980977952480316, 0.043658819049596786, -0.21035876870155334, -0.31352877616882324, -0.16770145297050476, 0.18024370074272156, -0.07917305827140808, -0.017008837312459946, 0.24895907938480377, -0.21333260834217072, 0.19535432755947113, 0.16867631673812866, 0.5780787467956543, 0.26318249106407166, -0.11073362827301025, -0.2234826236963272, 0.33620160818099976, 0.1756042093038559, -0.14830732345581055, 0.1314198076725006, 0.022515390068292618, 0.11812901496887207, -0.251082181930542, 0.029850229620933533, -0.2922261953353882, -0.17873407900333405, -0.484828919172287, 0.003008496016263962, -0.1213936060667038, 0.05653088912367821, -0.3228926360607147, -0.08960962295532227, -0.26259279251098633, 0.11477580666542053, 0.16497385501861572, 0.0599416084587574, -0.33812427520751953, -0.06750153005123138, -0.13393083214759827, 0.344775527715683, -0.12912596762180328, -0.0032777637243270874, 0.44929030537605286, -0.21788239479064941, -0.02020496129989624, 0.3893568217754364, -0.18090589344501495, -0.2190602719783783, -0.3314695954322815, -0.15685538947582245, -0.49644148349761963, -0.25059133768081665, -0.024909354746341705, 0.34028035402297974, -0.17445537447929382, 0.07530035078525543, 0.11963367462158203, -0.23545418679714203, 0.2151428759098053, -0.457449346780777, -0.2506248354911804, -0.01613364741206169, 0.1885455697774887, -0.27972084283828735, -0.11014870554208755, -0.3190247416496277, -0.006215584930032492, -0.11794543266296387, 0.11306217312812805, 0.13650521636009216, -0.023084532469511032, -0.09626096487045288, 0.4757198095321655, 0.039038367569446564, 0.2769918739795685, 0.33439892530441284, 0.25578781962394714, 0.19219744205474854, -0.24534356594085693, -0.049925073981285095, -0.2992228865623474, -0.09593763202428818, -0.13047228753566742, -0.12544625997543335, 0.16750161349773407, -0.3209264874458313, -0.051122672855854034, -0.02529822289943695, 0.2593212425708771, 0.16864562034606934, -0.05022679269313812, -0.2897986173629761, 0.005914337933063507, -0.183948814868927, -0.455697238445282, 0.6220611929893494, 0.06635309755802155, 0.20313526690006256, -0.2550748586654663, 0.24252617359161377, 0.08209402859210968, 0.17925742268562317, 0.2667654752731323, 0.13728508353233337, 0.133934885263443, -0.0780467689037323, 0.12096615135669708, 0.24988481402397156, -0.1223326325416565, 0.17203472554683685, 0.29787299036979675, 0.5357650518417358, 0.1379653364419937, 0.04157759249210358, 0.4445880055427551, -0.10420231521129608, -0.011413995176553726, 0.17282840609550476, -0.04464370384812355, 0.30559343099594116, -0.2436225861310959, 0.21624255180358887, -0.15805359184741974, -0.13983792066574097, 0.24602675437927246, -0.13753542304039001, -0.1633789837360382, -0.10405220836400986, 0.23511449992656708, 0.053456541150808334, -0.12929347157478333, -0.02763165906071663, -0.31383010745048523, 0.0843924954533577, -0.09282399713993073, -0.11409454792737961, -0.23467116057872772, 0.10194210708141327, -0.21579623222351074, -0.1578468531370163, 0.4094679355621338, -0.06640014797449112, 0.2941378653049469, 0.15214572846889496, -0.10299861431121826, 0.14436334371566772, 0.48861315846443176, -0.13575994968414307, 0.2988617420196533, 0.11981680989265442, -0.1439884603023529, -0.09774720668792725, 0.24507048726081848, 0.11413085460662842, -0.42011338472366333, -0.13390514254570007, -0.29444169998168945, -0.05893450230360031, -0.2316475212574005, 0.19914793968200684, -0.3803669810295105, -0.3432621359825134, 0.0363621860742569, 0.38591861724853516, -0.5940881967544556, -0.02115369588136673, 0.23785877227783203, 0.4233306050300598, -0.03202880173921585, -0.043641917407512665, -0.22107258439064026, 0.41321080923080444, -0.5426181554794312, 0.020808259025216103, -0.19793742895126343, 0.08646191656589508, 0.0401306189596653, 0.036017946898937225, 0.037856992334127426, 0.04958505183458328, 0.6460424065589905, 0.1960495412349701, -0.27606096863746643, -0.28688764572143555, -0.07529468834400177, 0.2934107184410095, 0.008015373721718788, -0.2756492495536804, 0.2361772358417511, 0.4233390986919403, -0.354983925819397, 0.26392465829849243, -0.2653571367263794, -0.40178966522216797, -0.11570948362350464, -0.0299878790974617, -0.03881591558456421, 0.21176567673683167, -0.12254531681537628, 0.3960282802581787, -0.07570754736661911, -0.19220463931560516, -0.07433445751667023, -0.1557212620973587, 0.10378269851207733, 0.03870764002203941, -0.3879116177558899, -0.04677017033100128, -0.4429834485054016, -0.2824508547782898, -0.4912329316139221, -0.7781988382339478, 0.12074702233076096, 0.06990675628185272, 0.05720800906419754, 0.33202672004699707, 0.34598127007484436, 0.11149394512176514, -0.15483999252319336, -0.3589916527271271, -0.27899354696273804, 0.14497125148773193, 0.07919307053089142, -0.1249561682343483, 0.08728181570768356, 0.39094850420951843, -0.042765628546476364, -0.0010109245777130127, -0.03174939751625061, -0.13663432002067566, -0.21409448981285095, 0.242326021194458, 0.19925138354301453, 0.04558686539530754, 0.025746967643499374, 0.01069282740354538, 0.604602038860321, 0.10108625143766403, 0.18449139595031738, 0.33974114060401917, 0.19424377381801605, 0.3856182098388672, -0.055044159293174744, -0.2325672209262848, 0.2094053477048874, 0.15106907486915588, -0.35104018449783325, 0.40165215730667114, 0.1588745415210724, 0.3327527940273285, -0.04862845689058304, -0.2903541028499603, -0.16254431009292603, -0.35463008284568787, 0.04287463426589966, 0.14517799019813538, 0.32106316089630127, 0.1124970018863678, -0.25288689136505127, 0.16188782453536987, -0.4717039465904236, 0.1904236525297165, 0.1604333519935608, 0.5285873413085938, -0.1411283165216446, -0.3676760196685791, 0.07193376123905182, -0.7467407584190369, 0.3602398633956909, -0.3094731271266937, -0.3952314555644989, -0.10685212910175323, 0.2692244052886963, 0.2746243476867676, 0.15114790201187134, 0.5630870461463928, 0.2909493148326874, -0.09574897587299347, -0.27980589866638184, -0.30135637521743774, -0.15526685118675232, 0.03757399320602417, -0.11836080253124237, 0.1619003266096115, 0.0003909338265657425, 0.06605452299118042, -0.38090384006500244, -0.5336226224899292, 0.30143553018569946, 0.004395060241222382, -0.27409598231315613, -0.170382559299469, -0.12402809411287308, -0.3155563473701477, -0.22550982236862183, -0.10065752267837524, 0.23195795714855194, -0.11879180371761322, -0.015896189957857132, 0.17926539480686188, 0.2700366973876953, -0.08345891535282135, 0.5575611591339111, -0.32955315709114075, 0.039324287325143814, 0.2972211241722107, -0.13383160531520844, 0.22572575509548187, 0.29999610781669617, 0.411284863948822, 0.558544397354126, 0.14189784228801727, -0.12390720844268799, -0.010241135023534298, 0.1979888528585434, 0.561534583568573, 0.5556924939155579, 0.12847721576690674, 0.36649829149246216, 0.09188041090965271, 0.5001991391181946, -0.38809096813201904, -0.0956382304430008, 0.10000482201576233, -0.4081886410713196, -0.1625107079744339, -0.10494817793369293, 0.14177049696445465, -0.0644088014960289, -0.14931464195251465, -0.2081584930419922, 0.743694007396698, -0.22829148173332214, 0.2903293967247009, -0.03462991490960121, 1.4422249794006348, -0.15935006737709045, 0.3056579828262329, 0.2118854820728302, -0.25518643856048584, 0.5051162838935852, -0.41487395763397217, -0.20219627022743225, -0.22952225804328918, 0.0021033473312854767, -0.16741645336151123, 0.1721378117799759, -0.01324516162276268, 0.027463974431157112, 0.3120127320289612, 0.3241525888442993, -0.5391010046005249, 0.36106184124946594, -0.2570851743221283, 0.2458498775959015, -0.10361413657665253, -0.06809677183628082, -0.3832625448703766, 0.0401935875415802, -0.19981977343559265, 0.28532370924949646, -0.21480081975460052, 0.00852615013718605, 0.30917298793792725, -0.2910863161087036, 0.09380893409252167, -0.10055418312549591, 0.05192352086305618, -0.171351358294487, -0.16211652755737305, -0.13227501511573792, 0.11806534975767136, -0.05015624687075615, 0.3635026812553406, 0.03365948796272278, -0.10315908491611481, 0.118967205286026, -0.11615898460149765, -0.08455714583396912, -0.1702692061662674, 0.11213177442550659, -0.35579222440719604, -0.01616208255290985, -0.1206364631652832, 0.09030945599079132, 0.3170488476753235, -0.07235939800739288, -0.17636431753635406, -0.08747883141040802, -0.017035940662026405, -0.3474554419517517, -0.033121731132268906, 0.08892899751663208, 0.24747759103775024, 0.016726747155189514, 0.024522634223103523, 0.3489469587802887, 0.048667024821043015, -0.2057618945837021, 0.2901413142681122, -0.081112340092659, -0.3226548135280609, 0.42452624440193176, 0.17440007627010345, -0.21023035049438477, 0.27729320526123047, 0.09304100275039673, -0.2425222545862198, -0.303507924079895, 0.06781657040119171, -0.054580699652433395, -0.5354101061820984, 0.15623411536216736, 0.36953479051589966, -0.1622980684041977, -0.3122072219848633, -0.21664050221443176, -0.07352011650800705, -0.10833243280649185, 0.16864654421806335, -0.06277728080749512, -0.21727178990840912, 0.28267902135849, -0.059171177446842194, 0.021717369556427002, 0.21632058918476105, 0.10470189154148102, -0.4611591696739197, -0.01499178446829319, -0.23777490854263306, 0.05563054233789444, 0.1930529624223709, -0.12084905803203583, 0.1916591376066208, 0.24978184700012207, 0.26292139291763306, -0.41450774669647217, -0.014569863677024841, -0.19855967164039612, -0.07797972857952118, -0.1024586409330368, -0.33389097452163696, 0.2461318075656891, -0.006389337591826916, -0.18037348985671997, -0.12648358941078186, -0.08081484586000443, -0.05871788412332535, -0.10775464028120041, 0.36690980195999146, 0.7037875652313232, 0.396314412355423, 0.10036853700876236, -0.034386828541755676, -0.17038756608963013, -0.16628476977348328, 0.10510917007923126, 0.30188411474227905, 0.4229622483253479, 0.13351964950561523, 0.09797719120979309, -0.02563578262925148, -0.1721763014793396, -0.11690370738506317, 0.34784507751464844, 0.36935266852378845, 0.14434097707271576, 0.08503513038158417, -0.006866605952382088, -0.1513219177722931, -0.07054424285888672, 0.3867635130882263, -0.07467330992221832, -0.19844678044319153, -0.32725855708122253, 0.18235532939434052, 0.0592770017683506, -0.22977496683597565, 0.09364941716194153, 0.2319953739643097, 0.11313429474830627, -0.16239920258522034, 0.24483487010002136, 0.04314355552196503, 0.30193352699279785, 0.06685218214988708, -0.017400845885276794, 0.08136895298957825, 0.11126329004764557, -0.015517402440309525, -0.21622496843338013, -0.14605355262756348, -0.04670950397849083, 0.28930798172950745, 0.2002841979265213, 0.20456615090370178, -0.1425299346446991, 0.06268485635519028, 0.2676786184310913, 0.1584053933620453, 0.38186854124069214, 0.2592199742794037, -0.31356680393218994, -0.3890518546104431, 0.32427844405174255, 0.04319871962070465, 0.038417451083660126, 0.13444799184799194, 0.3216624855995178, 0.032943885773420334, -0.4210072159767151, -0.18127349019050598, 0.5291783213615417, 0.001220199279487133, 0.05751579627394676, 0.1724272072315216, -0.043388381600379944, -0.014376357197761536, 0.06847705692052841, -0.056308433413505554, -0.2920880615711212, 0.37376654148101807, 0.07835172116756439, -0.10122181475162506, -0.07714733481407166, 0.01783459633588791, 0.09916868805885315, 0.12109337747097015, 0.1670679748058319, -0.20264585316181183, -0.004234578460454941, 0.3194521367549896, 0.14136336743831635, 0.366302490234375, 0.0771816149353981, -0.3462439179420471, 0.24149399995803833, -0.07178086042404175, -0.10553973913192749, 0.023887217044830322, 0.008082747459411621, 0.1334739625453949, -0.12411244958639145, 0.1568184792995453, -0.0017038173973560333, -0.020303800702095032, 0.024002298712730408, -0.05286566913127899, 0.05979594215750694, 0.23231783509254456, -0.3492250144481659, 0.34076130390167236, 0.15354681015014648, 0.0007399693131446838, -0.06732092052698135, -0.18136678636074066, -0.15667840838432312, -0.04612642154097557, 0.1495535671710968, -0.0137556791305542, 0.22112151980400085, 0.03342728689312935, 0.007947470992803574, -0.20615018904209137, 0.07599598169326782, 0.3485662639141083, -0.02640002965927124, -0.2704101502895355, -0.15428252518177032, -0.22709478437900543, 0.07946604490280151, -0.2377435863018036, 0.01047205924987793, -0.21417617797851562, -0.06898106634616852, 0.29826346039772034, 0.027129244059324265, 0.022167451679706573, -0.5149397850036621, 0.03917998820543289, -0.034018222242593765, 0.11773335188627243, 0.24467691779136658, -0.3900567889213562, 0.3240768015384674, 0.0645446926355362, -0.10555128008127213, 0.09179872274398804, 0.04277211055159569, -0.1558045744895935, -0.24958156049251556, 0.31246525049209595, -0.008296214044094086, -0.5492108464241028, 0.3167099356651306, 0.11644433438777924, -0.1666412204504013, -0.12112698704004288, -0.36161795258522034, 0.06606698036193848, -0.06311243027448654, -0.07844367623329163, -0.11201640963554382, 0.14492513239383698, 0.18899743258953094, -0.0445399172604084, -0.19064053893089294, 0.13069555163383484, 0.46119946241378784, -0.27864378690719604, 0.37867534160614014, -0.34877559542655945, 0.046012528240680695, -0.2282996028661728, 0.3409300744533539, -0.16015905141830444, 0.2992236316204071, 0.07375951111316681, -0.12084545195102692, -0.3632829487323761, 0.03204115480184555, 0.7371152639389038, -0.20606499910354614, -0.17110368609428406, 0.009422171860933304, 0.762191653251648, -0.10841038823127747, -0.5149688720703125, -0.5980625152587891, 0.2991889417171478, -0.013980820775032043, -0.06373154371976852, -0.01696358621120453, 0.383295476436615, -0.29852283000946045, -0.027507886290550232, 0.19871586561203003, 0.4187496602535248, 0.32436174154281616, -0.06272648274898529, 0.22104358673095703, 0.018111757934093475 ]
https://github.com/huggingface/datasets/issues/2104
Hi ! `wiki_movies` was added in `datasets==1.2.0`. However it looks like you have `datasets==1.1.2`. To use `wiki_movies`, please update `datasets` with ``` pip install --upgrade datasets ```
Trouble loading wiki_movies
Hello, I am trying to load_dataset("wiki_movies") and it gives me this error - `FileNotFoundError: Couldn't find file locally at wiki_movies/wiki_movies.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/wiki_movies/wiki_movies.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/wiki_movies/wiki_movies.py` Trying to do `python run_mlm.py \ --model_name_or_path roberta-base \ --dataset_name wiki_movies \` also gives the same error. Is this something on my end? From what I can tell, this dataset was re-added by @lhoestq a few months ago. Thank you!
27
Trouble loading wiki_movies Hello, I am trying to load_dataset("wiki_movies") and it gives me this error - `FileNotFoundError: Couldn't find file locally at wiki_movies/wiki_movies.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/wiki_movies/wiki_movies.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/wiki_movies/wiki_movies.py` Trying to do `python run_mlm.py \ --model_name_or_path roberta-base \ --dataset_name wiki_movies \` also gives the same error. Is this something on my end? From what I can tell, this dataset was re-added by @lhoestq a few months ago. Thank you! Hi ! `wiki_movies` was added in `datasets==1.2.0`. However it looks like you have `datasets==1.1.2`. To use `wiki_movies`, please update `datasets` with ``` pip install --upgrade datasets ```
[ -0.20739859342575073, -0.013514265418052673, -0.04422035813331604, 0.3873903155326843, 0.28917625546455383, 0.19632747769355774, 0.1652410477399826, 0.29042527079582214, 0.16233518719673157, -0.05911320447921753, -0.06512940675020218, 0.03987026959657669, 0.03908208757638931, 0.009569384157657623, 0.21804140508174896, -0.13361886143684387, 0.1319328248500824, -0.06776472926139832, 0.04099259898066521, -0.15195637941360474, -0.26095157861709595, 0.1905125081539154, -0.09478284418582916, 0.0493641160428524, -0.301282674074173, -0.021326543763279915, -0.08608811348676682, 0.3671932518482208, -0.15540598332881927, -0.30686548352241516, 0.4555037319660187, -0.1563687026500702, 0.612414538860321, 0.5570125579833984, -0.00011541084677446634, 0.07930636405944824, 0.4557095170021057, -0.04380420222878456, -0.31381237506866455, -0.2339855581521988, 0.19904270768165588, -0.30669358372688293, 0.30911919474601746, -0.07188566774129868, -0.11473704129457474, -0.035782936960458755, 0.14568226039409637, -0.16687151789665222, 0.10031577199697495, 0.08561679720878601, 0.17345160245895386, 0.2701098322868347, 0.2892472445964813, -0.09111224114894867, 0.2961931824684143, 0.11403445154428482, -0.02028699964284897, 0.4139375388622284, 0.26654544472694397, -0.4807058870792389, 0.22149509191513062, 0.32795897126197815, -0.3136357069015503, -0.07041613757610321, 0.5433496236801147, 0.1534252017736435, 0.3824135959148407, -0.36874958872795105, 0.18879787623882294, 0.3565348982810974, 0.6607335209846497, -0.08289078623056412, -0.3993505537509918, -0.09774406254291534, 0.10880202054977417, -0.13760906457901, 0.22218312323093414, 0.25842344760894775, -0.05880126357078552, 0.18716198205947876, 0.0967811793088913, -0.3336421549320221, 0.051521435379981995, 0.5347656011581421, 0.09726162254810333, 0.4951845407485962, -0.045865125954151154, 0.09776642918586731, 0.13483938574790955, -0.21229468286037445, -0.16361893713474274, 0.007070973515510559, -0.06413942575454712, 0.4242527484893799, 0.06844456493854523, 0.10384747385978699, -0.00898582860827446, 0.48571068048477173, -0.1439775973558426, -0.04112301021814346, -0.11506935954093933, -0.041439756751060486, 0.058649517595767975, 0.22673431038856506, 0.32349348068237305, 0.05523078516125679, -0.08663773536682129, 0.04978170245885849, 0.2694108188152313, 0.41451361775398254, -0.18214361369609833, -0.19867292046546936, -0.18518491089344025, -0.05721493065357208, -0.36047491431236267, -0.24580538272857666, 0.39580023288726807, -0.1175650805234909, -0.283903568983078, -0.013076312839984894, -0.220016211271286, -0.22055630385875702, 0.25491422414779663, 0.5544280409812927, -0.2136489301919937, 0.18678484857082367, 0.03562702238559723, 0.20334333181381226, -0.23979038000106812, 0.19614402949810028, -0.11057038605213165, 0.1912117749452591, -0.19605207443237305, 0.2319418489933014, 0.31386780738830566, -0.07006590068340302, 0.43749380111694336, -0.1168762743473053, -0.001596858724951744, -0.12125623971223831, -0.006461624056100845, 0.03784935548901558, -0.1349068284034729, 0.46372637152671814, -0.00928257405757904, 0.20721407234668732, 0.32470402121543884, -0.31096500158309937, -0.11529845744371414, 0.08317820727825165, -0.23769710958003998, -0.3491517901420593, -0.16434384882450104, 0.08720710128545761, 0.13240107893943787, -0.1991850584745407, -0.23507407307624817, 0.031006697565317154, 0.02817780151963234, -0.5631133913993835, -0.047325439751148224, 0.11319049447774887, 0.011843040585517883, -0.2234303504228592, 0.3480664789676666, 0.6888159513473511, -0.2556487023830414, -0.058572299778461456, -0.3802087903022766, -0.008438145741820335, -0.0683748722076416, 0.1990649402141571, -0.27560389041900635, 0.0593012198805809, -0.30568891763687134, -0.06498777121305466, 0.10980792343616486, -0.5922426581382751, -0.2333727777004242, 0.28458142280578613, -0.13655443489551544, 0.14096365869045258, 0.12516069412231445, 0.16881899535655975, -0.33574604988098145, -0.16600465774536133, 0.11067453771829605, -0.051254428923130035, 0.07355518639087677, -0.23409616947174072, -0.17692109942436218, -0.15211254358291626, 0.13469094038009644, 0.13203005492687225, 0.0286435317248106, 0.04038547724485397, 0.08665981143712997, -0.028446758165955544, 0.24090798199176788, 0.048929013311862946, -0.1485190987586975, 0.16289812326431274, 0.3491697311401367, 0.4564090073108673, -0.03840036690235138, -0.07419101893901825, -0.4570273458957672, 0.1895829141139984, -0.10701462626457214, 0.017345907166600227, -0.15451405942440033, -0.09614971280097961, -0.061451248824596405, 0.04108976572751999, -0.18083983659744263, -0.22536469995975494, 0.08509747684001923, 0.05477771908044815, -0.052999094128608704, 0.16558414697647095, -0.2709047198295593, -0.19258266687393188, -0.09476972371339798, 0.24718084931373596, -0.40273022651672363, 0.2519991099834442, -0.14556457102298737, -0.006017118692398071, -0.03191535174846649, 0.206512913107872, 0.2627590000629425, -0.1470632404088974, 0.1542285531759262, 0.39086678624153137, -0.07810181379318237, 0.2508273720741272, 0.23394477367401123, 0.16453658044338226, 0.16419193148612976, -0.06356815993785858, 0.2368171662092209, 0.1799628883600235, 0.23392020165920258, 0.025968104600906372, -0.14431726932525635, 0.3370315432548523, -0.009185831993818283, 0.25015464425086975, 0.2184852957725525, 0.008246973156929016, 0.1893140971660614, 0.052913010120391846, -0.039836227893829346, -0.22086933255195618, 0.43253621459007263, 0.20683448016643524, 0.11259029805660248, -0.0895574614405632, -0.2570352554321289, -0.042554888874292374, 0.027204178273677826, -0.08858619630336761, 0.2019985318183899, 0.052882738411426544, -0.3966023325920105, 0.12875093519687653, -0.006254931911826134, 0.14572414755821228, 0.35086390376091003, 0.1889486163854599, -0.17483587563037872, -0.06426475197076797, -0.01221930980682373, -0.20630060136318207, 0.2619258165359497, 0.1753787398338318, 0.07022924721240997, 0.1796756237745285, -0.020387379452586174, 0.02319483458995819, -0.26970306038856506, 0.03144878149032593, -0.1116848737001419, 0.14910584688186646, -0.25360292196273804, 0.16089609265327454, -0.29672229290008545, -0.06861892342567444, -0.23332764208316803, -0.4196035861968994, -0.32678133249282837, -0.2818981409072876, -0.03611317276954651, 0.31515875458717346, 0.20619693398475647, 0.07268361747264862, 0.028804048895835876, -0.0188826322555542, -0.3148036301136017, -0.1647445410490036, -0.10384636372327805, -0.3200181722640991, -0.26161420345306396, -0.012988381087779999, 0.5495471954345703, -0.06113656237721443, 0.1579238772392273, -0.10743363201618195, -0.037561170756816864, -0.2795414924621582, -0.5420341491699219, -0.06478282809257507, -0.10129478573799133, 0.5056608319282532, 0.017040282487869263, 0.3776254951953888, -0.12833485007286072, -0.3390269875526428, 0.37703558802604675, -0.002507410943508148, 0.11156534403562546, -0.10314620286226273, -0.05452658236026764, -0.33542490005493164, 0.018240585923194885, -0.487599641084671, -0.42767974734306335, -0.1854010969400406, 0.14093630015850067, 0.23855933547019958, -0.12624984979629517, 0.19269979000091553, 0.10578661412000656, 0.17270921170711517, -0.17612579464912415, 0.02773015946149826, -0.05713677778840065, -0.32971400022506714, 0.39981287717819214, -0.22612905502319336, -0.24584269523620605, 0.40084290504455566, 0.02122262865304947, 0.019961431622505188, -0.2964898943901062, -0.5815374851226807, -0.15690574049949646, 0.13532552123069763, 0.06779803335666656, 0.18001848459243774, 0.10778484493494034, 0.1994774490594864, -0.07318288087844849, 0.03348825126886368, 0.07572754472494125, -0.15392455458641052, -0.21853551268577576, -0.13573259115219116, 0.29192641377449036, -0.10594426095485687, 0.4867750108242035, -0.420457661151886, 0.7676125168800354, 0.036593832075595856, 0.0802362933754921, 0.36367812752723694, -0.18587379157543182, 0.47160422801971436, -0.09900042414665222, -0.44133538007736206, -0.07748648524284363, -0.20610299706459045, -0.12457416206598282, 0.2974343001842499, 0.14176295697689056, -0.26839953660964966, -0.39756667613983154, -0.09123139828443527, -0.30862900614738464, -0.22111393511295319, 0.03522167354822159, 0.31111374497413635, 0.0772453173995018, 0.25661182403564453, 0.1754663735628128, -0.08015891909599304, -0.382062166929245, 0.1539735496044159, 0.7092063426971436, 0.10751831531524658, 0.003892086446285248, -0.45708492398262024, -0.4015655219554901, -0.27115634083747864, 0.33137843012809753, -0.007760912179946899, 0.06973424553871155, -0.10624449700117111, -0.08695103973150253, 0.17400133609771729, -0.16242296993732452, 0.6706101298332214, -0.0837712362408638, -0.1302609145641327, 0.020356394350528717, 0.05577947944402695, -0.2821875810623169, -0.17873576283454895, 0.06874499469995499, 0.2667478322982788, 0.025179706513881683, 0.4684505760669708, -0.08572779595851898, -0.14180965721607208, 0.23174220323562622, 0.147401824593544, -0.25206154584884644, -0.16861592233181, -0.4849328100681305, -0.21301890909671783, -0.3204255700111389, -0.29136109352111816, -0.12534841895103455, 0.23907963931560516, 0.01132119819521904, 0.15626409649848938, -0.016771897673606873, 0.07617243379354477, 0.18155203759670258, 0.042484771460294724, 0.32897084951400757, 0.24734506011009216, 0.03754640370607376, 0.29490894079208374, 0.42703014612197876, 0.3645463287830353, 0.543606698513031, -0.1697588413953781, -0.07092487812042236, -0.12149128317832947, -0.028176596388220787, 0.23882544040679932, 0.39399030804634094, -0.023204663768410683, -0.17045465111732483, 0.35977864265441895, -0.10969565808773041, -0.39637869596481323, -0.2588641047477722, 0.3368563950061798, -0.0936526507139206, -0.13895121216773987, -0.427410364151001, 0.7648710012435913, 0.024868018925189972, 0.08301033079624176, 0.05457273870706558, 0.27246978878974915, -0.1628161072731018, 0.0477629117667675, -0.027206789702177048, 1.0328419208526611, -0.1855563074350357, 0.31743642687797546, 0.34545841813087463, 0.23811958730220795, 0.3155776560306549, -0.40820515155792236, 0.17200028896331787, -0.29326266050338745, 0.05898420885205269, -0.15293841063976288, 0.004999950528144836, 0.22916321456432343, -0.022783147171139717, -0.22226861119270325, 0.382942795753479, -0.07458721101284027, 0.1983662247657776, -0.20221829414367676, 0.12916253507137299, -0.04729245975613594, -0.03108396753668785, -0.5368949770927429, 0.07278384268283844, 0.17967508733272552, 0.4815181791782379, -0.28823405504226685, 0.0028445981442928314, -0.25579357147216797, -0.16228745877742767, -0.30928993225097656, -0.07660757005214691, -0.4254751205444336, 0.1606014221906662, 0.15784452855587006, -0.17427413165569305, -0.18637095391750336, 0.48309099674224854, -0.0314788781106472, -0.02406109683215618, -0.3653793931007385, 0.17425154149532318, -0.14465290307998657, -0.5440135598182678, -0.28309547901153564, 0.027885787189006805, 0.32914596796035767, -0.08256243914365768, -0.22905096411705017, 0.07451783120632172, -0.21451084315776825, -0.03341301530599594, -0.2611866593360901, -0.04848344251513481, 0.19449841976165771, -0.06298524886369705, -0.5832729935646057, 0.049050744622945786, -0.010297060012817383, -0.0552632138133049, 0.08202812075614929, 0.06751926243305206, -0.06863773614168167, -0.19993656873703003, 0.21287058293819427, -0.06817364692687988, -0.14327627420425415, 0.6447445154190063, -0.2534942328929901, -0.022954747080802917, 0.6146342754364014, 0.4854166805744171, -0.16409462690353394, -0.15415015816688538, 0.23295709490776062, 0.15656057000160217, -0.2674960494041443, -0.11976821720600128, 0.5612848997116089, 0.211263507604599, 0.20646411180496216, 0.17242535948753357, 0.2825324535369873, -0.2618931233882904, -0.08205503225326538, -0.6242218017578125, -0.07084134221076965, 0.42520129680633545, 0.03749554604291916, -0.052198197692632675, 0.02492809295654297, -0.0716778114438057, 0.19920873641967773, -0.09418279677629471, -0.24775636196136475, 0.13058924674987793, -0.00879792869091034, -0.026204204186797142, 0.5012263655662537, 0.14204539358615875, 0.3230372369289398, 0.15152686834335327, 0.0972074642777443, -0.1200806275010109, -0.14719121158123016, -0.1446714699268341, 0.037956781685352325, 0.18273848295211792, 0.03982619568705559, -0.16241437196731567, 0.009339910000562668, -0.28853639960289, 0.01451510563492775, -0.14373181760311127, -0.17961043119430542, 0.017926760017871857, 0.14621424674987793, -0.05151860788464546, 0.11459337174892426, 0.05721505358815193, -0.2607000768184662, 0.15460973978042603, -0.12053981423377991, 0.29595842957496643, 0.19220370054244995, -0.20047035813331604, 0.20750117301940918, 0.06342048943042755, -0.006010334938764572, -0.0779670774936676, -0.218849316239357, 0.11231492459774017, 0.43740731477737427, -0.1960471272468567, 0.10596953332424164, 0.16385483741760254, -0.0032019540667533875, 0.4794396758079529, -0.16350474953651428, 0.25603440403938293, 0.27827227115631104, 0.1207379624247551, -0.4208908677101135, -0.009967949241399765, 0.3926076292991638, -0.03223311901092529, -0.11577498912811279, 0.17495250701904297, 0.09175022691488266, 0.11051325500011444, -0.16100811958312988, 0.24740810692310333, 0.32151371240615845, -0.26395300030708313, 0.24765729904174805, 0.2489958554506302, 0.14601123332977295, 0.07429385185241699, -0.02699098363518715, 0.22594869136810303, 0.03211062029004097, 0.46584558486938477, -0.3481172025203705, 0.21853400766849518, -0.11391633003950119, 0.25909993052482605, -0.19015555083751678, -0.3677087426185608, 0.12504789233207703, 0.30366405844688416, 0.1084166020154953, 0.08282969892024994, -0.29626232385635376, 0.37662237882614136, -0.25663647055625916, 0.24351651966571808, -0.2705170214176178, 0.25574180483818054, -0.1564922332763672, -0.34607774019241333, -0.11840417981147766, -0.3570038080215454, 0.03426371514797211, 0.03636906296014786, 0.02354743890464306, -0.19799216091632843, -0.06233608350157738, 0.2127109318971634, -0.13765698671340942, -0.3341417908668518, -0.06505189836025238, 0.08431275933980942, 0.15630488097667694, -0.10541593283414841, 0.07102201879024506, 0.3002873361110687, -0.005878450348973274, 0.16461077332496643, 0.046168722212314606, 0.5031884908676147, 0.45295974612236023, -0.3615337312221527, 0.15133513510227203, -0.0766327828168869, -0.16889506578445435, 0.04385669529438019, 0.20258180797100067, 0.16349244117736816, 0.1932384967803955, 0.023046139627695084, 0.1304175853729248, -0.10902363806962967, 0.362173855304718, -0.05510370805859566, 0.2701660990715027, -0.27471232414245605, 0.08971170336008072, -0.4953479766845703, -0.07871121168136597, -0.4654942452907562, 0.13089047372341156, -0.43521928787231445, 0.20433959364891052, 0.3818309009075165, 0.08591693639755249, -0.08244086056947708, -0.12149545550346375, 0.034888241440057755, -0.06095263361930847, 0.506844162940979, 0.46559005975723267, -0.004283779300749302, -0.3190934360027313, -0.041386887431144714, -0.8435496687889099, -0.03329399973154068, -0.10079269111156464, -0.09575501829385757, -0.13980428874492645, 0.15005668997764587, 0.16671060025691986, 0.04047011584043503, 0.04035370796918869, -0.5100944638252258, 0.18486762046813965, 0.024006810039281845, -0.12308545410633087, -0.21987701952457428, -0.2002837061882019, 0.20741364359855652, -0.027175255119800568, -0.004810318350791931, -0.1052841916680336, -0.43289026618003845, -0.10447673499584198, -0.28102996945381165, -0.00022348761558532715, -0.18935427069664001, 0.03832806274294853, 0.27563735842704773, -0.15593686699867249, 0.47022056579589844, 0.05357830226421356, -0.29733169078826904, -0.43782472610473633, -0.2957703471183777, -0.04275121912360191, 0.28429368138313293, 0.0013645943254232407, 0.48187506198883057, -0.4417455494403839, -0.07579496502876282, -0.3557060658931732, 0.19729986786842346, 0.012000061571598053, 0.055102042853832245, -0.21703171730041504, -0.13894332945346832, 0.05762619525194168, -0.07875388860702515, 0.24262337386608124, 0.2271079272031784, -0.057517118752002716, 0.27145662903785706, -0.08604971319437027, -0.12400035560131073, 0.606352686882019, -0.6618574857711792, 0.04509685933589935, -0.02121942862868309, 0.0025198832154273987, -0.20476195216178894, -0.011349335312843323, -0.6350100040435791, 0.14991416037082672, 0.29583513736724854, 0.19707582890987396, -0.20563028752803802, 0.09557267278432846, -0.01333712786436081, -0.18130958080291748, -0.11739671975374222, -0.10598328709602356, -0.021905407309532166, -0.15658321976661682, -0.029998157173395157, -0.08643876016139984 ]
https://github.com/huggingface/datasets/issues/2104
Thanks a lot! That solved it and I was able to upload a model trained on it as well :)
Trouble loading wiki_movies
Hello, I am trying to load_dataset("wiki_movies") and it gives me this error - `FileNotFoundError: Couldn't find file locally at wiki_movies/wiki_movies.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/wiki_movies/wiki_movies.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/wiki_movies/wiki_movies.py` Trying to do `python run_mlm.py \ --model_name_or_path roberta-base \ --dataset_name wiki_movies \` also gives the same error. Is this something on my end? From what I can tell, this dataset was re-added by @lhoestq a few months ago. Thank you!
20
Trouble loading wiki_movies Hello, I am trying to load_dataset("wiki_movies") and it gives me this error - `FileNotFoundError: Couldn't find file locally at wiki_movies/wiki_movies.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/wiki_movies/wiki_movies.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/wiki_movies/wiki_movies.py` Trying to do `python run_mlm.py \ --model_name_or_path roberta-base \ --dataset_name wiki_movies \` also gives the same error. Is this something on my end? From what I can tell, this dataset was re-added by @lhoestq a few months ago. Thank you! Thanks a lot! That solved it and I was able to upload a model trained on it as well :)
[ -0.1121564731001854, -0.013994157314300537, 0.007302682846784592, 0.40262937545776367, 0.32103368639945984, 0.20782625675201416, 0.24287956953048706, 0.2546977400779724, 0.15914638340473175, -0.12933996319770813, -0.08096623420715332, -0.06365779787302017, -0.017483439296483994, 0.037145741283893585, 0.26897960901260376, -0.14649547636508942, 0.14409111440181732, -0.08042515814304352, 0.03864571079611778, -0.17591720819473267, -0.2859064042568207, 0.1560278981924057, -0.0958821251988411, 0.05230403691530228, -0.37314337491989136, -0.007069261744618416, -0.13271363079547882, 0.4059881865978241, -0.14150632917881012, -0.21471768617630005, 0.46098199486732483, -0.17467746138572693, 0.6153905391693115, 0.583636999130249, -0.00011640707089100033, 0.14894388616085052, 0.35993650555610657, -0.11149153113365173, -0.2162448763847351, -0.19645023345947266, 0.20646901428699493, -0.20073476433753967, 0.2710045874118805, -0.09297068417072296, -0.12473711371421814, 0.0024901852011680603, 0.16381439566612244, -0.15822133421897888, 0.0603855736553669, 0.16671127080917358, 0.17631414532661438, 0.25219881534576416, 0.2179909199476242, -0.07627930492162704, 0.23253940045833588, 0.15300145745277405, -0.05610368773341179, 0.4803476929664612, 0.19466125965118408, -0.5227859616279602, 0.15772581100463867, 0.24669140577316284, -0.24177080392837524, -0.11983511596918106, 0.5773370862007141, 0.1589507758617401, 0.3579043745994568, -0.3634534776210785, 0.19962722063064575, 0.40871673822402954, 0.613501250743866, 0.0077123879455029964, -0.3705618977546692, -0.10674551129341125, 0.1170775294303894, -0.09478108584880829, 0.2538565397262573, 0.35915622115135193, -0.03233380615711212, 0.2213999330997467, 0.09570586681365967, -0.2623709440231323, -0.007684342563152313, 0.4480516016483307, 0.059729427099227905, 0.45611223578453064, -0.018843915313482285, 0.06589438021183014, 0.15434221923351288, -0.19141720235347748, -0.2707585096359253, -0.012047989293932915, -0.03758333995938301, 0.44954514503479004, 0.033394016325473785, 0.12868167459964752, -0.011118639260530472, 0.47036582231521606, -0.10067058354616165, -0.04719119891524315, -0.06577055901288986, -0.0687856525182724, 0.024542178958654404, 0.19411323964595795, 0.2931634187698364, 0.06721605360507965, -0.15210920572280884, -0.0033021681010723114, 0.25219589471817017, 0.42580246925354004, -0.2807629108428955, -0.20498241484165192, -0.2595449686050415, -0.048532724380493164, -0.41006869077682495, -0.36085426807403564, 0.37824156880378723, -0.1459200531244278, -0.3006824851036072, 0.05371860787272453, -0.24057891964912415, -0.20091789960861206, 0.23331737518310547, 0.5762205719947815, -0.16118882596492767, 0.17289386689662933, 0.02661842852830887, 0.17844724655151367, -0.2535419166088104, 0.15133816003799438, -0.11372367292642593, 0.2067689597606659, -0.23046807944774628, 0.22178146243095398, 0.27406737208366394, -0.03689607232809067, 0.4466458857059479, -0.16664107143878937, 0.013137304224073887, -0.14063335955142975, 0.02645084261894226, -0.005662005394697189, -0.12386684119701385, 0.45258045196533203, -0.044649120420217514, 0.15155529975891113, 0.3736089766025543, -0.353657603263855, -0.10879181325435638, 0.08376861363649368, -0.17769381403923035, -0.3517283797264099, -0.10603407025337219, 0.08905079215765, 0.07011941820383072, -0.19326362013816833, -0.21204158663749695, 0.11351801455020905, 0.000012405216693878174, -0.46425604820251465, -0.06146650016307831, 0.18105442821979523, -0.07813642174005508, -0.22760027647018433, 0.3975330591201782, 0.7473239302635193, -0.2878183126449585, -0.04960178583860397, -0.2907509505748749, 0.003793252632021904, -0.057974331080913544, 0.27029505372047424, -0.2691882252693176, 0.15151996910572052, -0.33905333280563354, 0.082921102643013, 0.06626281887292862, -0.45363831520080566, -0.2166568487882614, 0.3275761306285858, -0.17369674146175385, 0.13872119784355164, 0.05923660099506378, 0.16503456234931946, -0.3982461392879486, -0.17465350031852722, 0.17840984463691711, 0.024726953357458115, 0.07727048546075821, -0.2549576759338379, -0.21935966610908508, -0.17622888088226318, 0.19559550285339355, 0.21313218772411346, 0.0416986458003521, 0.03179258480668068, 0.05635495483875275, -0.06421360373497009, 0.2531672418117523, -0.019083453342318535, -0.2033088505268097, 0.1463201940059662, 0.36209970712661743, 0.38649827241897583, -0.004920590668916702, -0.009553954005241394, -0.41302481293678284, 0.20224188268184662, -0.1039944440126419, 0.03957183286547661, -0.0981939285993576, -0.07035212963819504, -0.04201141744852066, 0.07176815718412399, -0.26997020840644836, -0.22918368875980377, 0.07397665083408356, 0.010679012164473534, -0.14344827830791473, 0.20133449137210846, -0.3167359232902527, -0.2031097412109375, -0.21503213047981262, 0.24044950306415558, -0.39094844460487366, 0.2344633936882019, -0.12048982828855515, 0.024204451590776443, -0.040912386029958725, 0.17397546768188477, 0.21112306416034698, -0.13631278276443481, 0.13316917419433594, 0.3344077467918396, -0.08794987946748734, 0.19926667213439941, 0.3177415728569031, 0.2289922833442688, 0.1711474508047104, -0.07943014055490494, 0.19901414215564728, 0.21435359120368958, 0.24290578067302704, -0.02939125895500183, -0.18890461325645447, 0.3995211124420166, -0.012683064676821232, 0.23035666346549988, 0.24644121527671814, 0.019083283841609955, 0.19267377257347107, 0.036902397871017456, -0.05329485610127449, -0.14713868498802185, 0.48257747292518616, 0.2494850605726242, 0.14423497021198273, -0.012947415933012962, -0.29993587732315063, -0.11786504089832306, -0.026397904381155968, -0.12275031208992004, 0.21492666006088257, 0.05915842205286026, -0.40933817625045776, 0.08535156399011612, -0.04331456124782562, 0.10721053183078766, 0.3932322859764099, 0.12628448009490967, -0.15459224581718445, -0.07338117063045502, -0.0033252276480197906, -0.22501611709594727, 0.2733383774757385, 0.1382019817829132, 0.07632848620414734, 0.2013794183731079, 0.012928605079650879, 0.010093927383422852, -0.38162675499916077, 0.009258486330509186, -0.07799927890300751, 0.08100773394107819, -0.22325372695922852, 0.1762467920780182, -0.18777775764465332, -0.02940550446510315, -0.2262088507413864, -0.3067159056663513, -0.327934592962265, -0.22597110271453857, -0.0376599058508873, 0.22227221727371216, 0.13733240962028503, 0.027957744896411896, -0.07984074205160141, 0.07349200546741486, -0.287461519241333, -0.1831970363855362, -0.035881876945495605, -0.2942383587360382, -0.2293565273284912, -0.015993710607290268, 0.6218867897987366, -0.13504989445209503, 0.15901075303554535, -0.09592485427856445, -0.08933208882808685, -0.2130151093006134, -0.5159597992897034, -0.04867531359195709, -0.01420123316347599, 0.4615418612957001, -0.036328934133052826, 0.4115784466266632, -0.1496354341506958, -0.3485877513885498, 0.4001300036907196, 0.06156143546104431, 0.13415253162384033, -0.05452816188335419, -0.03583061322569847, -0.2908650040626526, -0.0004586726427078247, -0.4532822072505951, -0.3932528495788574, -0.1345374882221222, 0.17500531673431396, 0.21837782859802246, -0.1383412629365921, 0.2596437931060791, 0.073504239320755, 0.2045803964138031, -0.21763759851455688, -0.005353923887014389, -0.04456782713532448, -0.37355244159698486, 0.4692227840423584, -0.18740546703338623, -0.33538326621055603, 0.40118858218193054, 0.0050904229283332825, -0.037204474210739136, -0.3107048273086548, -0.5931295156478882, -0.09527027606964111, 0.12362849712371826, 0.06052608788013458, 0.20663508772850037, 0.04289355129003525, 0.18699444830417633, -0.16183693706989288, 0.04798625037074089, 0.0944119393825531, -0.12302497029304504, -0.10392020642757416, -0.09011383354663849, 0.3017454445362091, -0.15615200996398926, 0.44667455554008484, -0.4208748936653137, 0.7149728536605835, 0.00788559764623642, 0.05813818797469139, 0.38800281286239624, -0.14774584770202637, 0.4323694109916687, -0.1417580246925354, -0.39125895500183105, -0.019208306446671486, -0.21290619671344757, -0.20295017957687378, 0.3765859305858612, 0.2192341685295105, -0.2898498475551605, -0.39923036098480225, -0.16116851568222046, -0.2319956123828888, -0.21615070104599, 0.08006011694669724, 0.34336018562316895, 0.04767666757106781, 0.22428840398788452, 0.16651800274848938, -0.027170054614543915, -0.36451515555381775, 0.18730798363685608, 0.7527632713317871, 0.20259793102741241, -0.03928108140826225, -0.403148353099823, -0.36194589734077454, -0.2974768877029419, 0.20643670856952667, -0.09983033686876297, 0.04457303136587143, -0.14027506113052368, -0.13080060482025146, 0.19768773019313812, -0.14951282739639282, 0.7062324285507202, -0.015101991593837738, -0.13036347925662994, -0.023794885724782944, 0.010114304721355438, -0.2143743932247162, -0.18739289045333862, 0.12637270987033844, 0.22558265924453735, 0.017589259892702103, 0.5091715455055237, -0.02200830727815628, -0.022552648559212685, 0.15747007727622986, 0.14665737748146057, -0.2593088448047638, -0.17712831497192383, -0.4565151333808899, -0.24025660753250122, -0.2624639570713043, -0.2855707108974457, -0.10595283657312393, 0.24252212047576904, 0.09594007581472397, 0.21014831960201263, -0.011729013174772263, 0.11879727244377136, 0.25320619344711304, 0.059205129742622375, 0.28568875789642334, 0.23650452494621277, 0.061084941029548645, 0.31715112924575806, 0.5217163562774658, 0.2833811342716217, 0.5718856453895569, -0.1491401493549347, -0.10940331220626831, -0.08250673115253448, -0.06907206028699875, 0.2677215337753296, 0.4327802062034607, 0.001641158014535904, -0.18012893199920654, 0.41398683190345764, -0.08106449991464615, -0.4332711696624756, -0.17004899680614471, 0.3224601745605469, -0.13023141026496887, -0.20277222990989685, -0.39414268732070923, 0.7360109686851501, -0.07146704941987991, 0.12361562252044678, 0.03751794248819351, 0.24553509056568146, -0.16672766208648682, 0.13851526379585266, -0.03770599514245987, 1.1215846538543701, -0.22035065293312073, 0.38000497221946716, 0.3796669542789459, 0.2959088385105133, 0.23635786771774292, -0.44493117928504944, 0.1420254111289978, -0.29013779759407043, -0.021332204341888428, -0.16979968547821045, 0.0020003244280815125, 0.15967953205108643, 0.03625837340950966, -0.1308230757713318, 0.30285775661468506, -0.11040772497653961, 0.28783029317855835, -0.1666545569896698, 0.0959407165646553, 0.052321165800094604, -0.03514380007982254, -0.5819413661956787, 0.04994349181652069, 0.2104516327381134, 0.43098184466362, -0.27766332030296326, -0.036884937435388565, -0.20289170742034912, -0.10224180668592453, -0.28530824184417725, -0.04719340801239014, -0.394961953163147, 0.12975765764713287, 0.132298544049263, -0.1530509740114212, -0.15746405720710754, 0.5224306583404541, -0.020116660743951797, -0.0069639356806874275, -0.4100199341773987, 0.18556863069534302, -0.19163915514945984, -0.5221063494682312, -0.274103045463562, -0.014812026172876358, 0.3304525911808014, -0.088639996945858, -0.17227189242839813, 0.03289830684661865, -0.24352480471134186, -0.021796144545078278, -0.31950119137763977, -0.06317149102687836, 0.17407500743865967, -0.0999663919210434, -0.6227609515190125, 0.05908820033073425, 0.0145936980843544, -0.03347735479474068, 0.0772041454911232, 0.08829320967197418, -0.10703712701797485, -0.28597086668014526, 0.2736413776874542, -0.0845417007803917, -0.14450746774673462, 0.600265622138977, -0.23568812012672424, 0.030729375779628754, 0.6164125204086304, 0.509624719619751, -0.16033199429512024, -0.15090639889240265, 0.29753267765045166, 0.25359559059143066, -0.3025030493736267, -0.0875745564699173, 0.5863994359970093, 0.1962471753358841, 0.09810714423656464, 0.182660773396492, 0.3016440272331238, -0.34053704142570496, -0.05888567119836807, -0.6151735186576843, -0.11463728547096252, 0.36771106719970703, -0.019793853163719177, -0.041286297142505646, 0.012151241302490234, -0.08427383005619049, 0.20141060650348663, -0.08307355642318726, -0.22673028707504272, 0.12257811427116394, -0.05731241777539253, -0.09078218042850494, 0.45274925231933594, 0.1415146291255951, 0.3529386520385742, 0.17074620723724365, 0.11577165871858597, -0.09363797307014465, -0.0537634938955307, -0.13795506954193115, -0.010354168713092804, 0.19599056243896484, 0.10636879503726959, -0.1523093283176422, 0.041415661573410034, -0.29550090432167053, -0.040771499276161194, -0.13865023851394653, -0.18519115447998047, 0.018731556832790375, 0.18798497319221497, -0.08984112739562988, 0.13966816663742065, 0.027205457910895348, -0.3407517075538635, 0.14794225990772247, -0.11706685274839401, 0.28909796476364136, 0.2224602997303009, -0.296935498714447, 0.16971151530742645, 0.04259049892425537, -0.038423243910074234, -0.043941449373960495, -0.24816222488880157, 0.12284526228904724, 0.41636893153190613, -0.203434020280838, 0.09299673140048981, 0.1349322497844696, 0.02090933918952942, 0.45376893877983093, -0.20055091381072998, 0.311796098947525, 0.3188023865222931, 0.10283339023590088, -0.4711425304412842, -0.032246217131614685, 0.4285384714603424, -0.0974929928779602, -0.11771751195192337, 0.13290604948997498, 0.02030472457408905, 0.12759923934936523, -0.25211119651794434, 0.20200985670089722, 0.2492930293083191, -0.14238964021205902, 0.19222882390022278, 0.2257125824689865, 0.13718266785144806, 0.09676724672317505, -0.01863258145749569, 0.17620821297168732, 0.04344210773706436, 0.4835730493068695, -0.33641180396080017, 0.16389425098896027, -0.1898629367351532, 0.18456968665122986, -0.14591044187545776, -0.3627070188522339, 0.11229528486728668, 0.33810773491859436, 0.08422234654426575, 0.07790153473615646, -0.31573277711868286, 0.4324377775192261, -0.2558780908584595, 0.203105628490448, -0.2942211627960205, 0.22798460721969604, -0.17957130074501038, -0.3268267810344696, -0.13941144943237305, -0.37546586990356445, 0.036307528614997864, 0.10294552892446518, 0.006125868763774633, -0.1819613128900528, -0.0557350255548954, 0.1991255283355713, -0.11807062476873398, -0.21435128152370453, 0.0058972761034965515, 0.08655176311731339, 0.18423143029212952, -0.12164062261581421, 0.031891822814941406, 0.27906274795532227, 0.02430889755487442, 0.21110400557518005, 0.007535954937338829, 0.4232616424560547, 0.44219526648521423, -0.32548609375953674, 0.21908026933670044, -0.033356498926877975, -0.15364035964012146, 0.06188974529504776, 0.2094309777021408, 0.22209110856056213, 0.22213710844516754, 0.08088502287864685, 0.09967115521430969, -0.08422929048538208, 0.4198637008666992, -0.053138796240091324, 0.2680283188819885, -0.28026285767555237, 0.04591836780309677, -0.4868517816066742, -0.09233566373586655, -0.5042530298233032, 0.09258795529603958, -0.37060707807540894, 0.21900758147239685, 0.3753274083137512, 0.11036841571331024, -0.04956008493900299, -0.060617342591285706, 0.021388806402683258, -0.06462496519088745, 0.49578097462654114, 0.4861963093280792, -0.015335427597165108, -0.36406368017196655, -0.01983068138360977, -0.8502103090286255, 0.032146863639354706, -0.0840495377779007, -0.06414517760276794, -0.10652289539575577, 0.12824952602386475, 0.2296150177717209, -0.0354774110019207, -0.019413895905017853, -0.4398716688156128, 0.15875205397605896, 0.05375875160098076, -0.11370214819908142, -0.24702970683574677, -0.2540217638015747, 0.25035279989242554, -0.09197951853275299, -0.014309711754322052, -0.08672236651182175, -0.4156888425350189, -0.08616915345191956, -0.25710466504096985, -0.05742386355996132, -0.26726365089416504, 0.10490445047616959, 0.2118830382823944, -0.13446202874183655, 0.42108890414237976, 0.03998100012540817, -0.2676470875740051, -0.4160710573196411, -0.26148727536201477, -0.05432365462183952, 0.196526437997818, -0.007715295534580946, 0.4464057683944702, -0.3979944586753845, -0.03115861490368843, -0.33300694823265076, 0.16708514094352722, -0.0031126663088798523, 0.006522718816995621, -0.3167000710964203, -0.14738595485687256, 0.05370040237903595, -0.07882097363471985, 0.2945432662963867, 0.23429660499095917, -0.1015658900141716, 0.13171839714050293, -0.007373973727226257, -0.07934544235467911, 0.6290512084960938, -0.7522624731063843, 0.03839512914419174, 0.03585067391395569, -0.014807887375354767, -0.19589486718177795, 0.03641871362924576, -0.6877139806747437, 0.10220518708229065, 0.26481419801712036, 0.1969149112701416, -0.2437797337770462, 0.0641053318977356, -0.01879582554101944, -0.1772499531507492, -0.08399394154548645, -0.09263721108436584, -0.06335146725177765, -0.1978272795677185, -0.035112082958221436, -0.1155085489153862 ]
https://github.com/huggingface/datasets/issues/2103
Thanks for reporting :) Maybe we can concatenate fields only if they are different. Currently this is done here: https://github.com/huggingface/nlp/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/src/datasets/info.py#L180-L196 This can be a good first contribution to the library. Please comment if you'd like to improve this and open a PR :)
citation, homepage, and license fields of `dataset_info.json` are duplicated many times
This happens after a `map` operation when `num_proc` is set to `>1`. I tested this by cleaning up the json before running the `map` op on the dataset so it's unlikely it's coming from an earlier concatenation. Example result: ``` "citation": "@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n ``` @lhoestq and I believe this is happening due to the fields being concatenated `num_proc` times.
43
citation, homepage, and license fields of `dataset_info.json` are duplicated many times This happens after a `map` operation when `num_proc` is set to `>1`. I tested this by cleaning up the json before running the `map` op on the dataset so it's unlikely it's coming from an earlier concatenation. Example result: ``` "citation": "@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n ``` @lhoestq and I believe this is happening due to the fields being concatenated `num_proc` times. Thanks for reporting :) Maybe we can concatenate fields only if they are different. Currently this is done here: https://github.com/huggingface/nlp/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/src/datasets/info.py#L180-L196 This can be a good first contribution to the library. Please comment if you'd like to improve this and open a PR :)
[ 0.1381230354309082, 0.013645857572555542, -0.06308336555957794, 0.3942776918411255, -0.00548089575022459, 0.07270902395248413, 0.22892561554908752, 0.3846517503261566, -0.06935514509677887, 0.04314134269952774, 0.07733903080224991, 0.6607300639152527, 0.48346051573753357, -0.11136777698993683, 0.09862914681434631, 0.2540147602558136, 0.07265417277812958, 0.037146855145692825, 0.1630943864583969, -0.024760469794273376, -0.14420409500598907, 0.3476742208003998, -0.02845284342765808, 0.025611363351345062, -0.22326862812042236, -0.02137582190334797, -0.2590197026729584, 0.26126158237457275, -0.01078740879893303, -0.293923020362854, -0.23025459051132202, 0.3371426463127136, -0.3443259596824646, 0.04096772149205208, -0.00011347100371494889, -0.10482075810432434, 0.09306296706199646, 0.09506338834762573, -0.11593487858772278, -0.10974359512329102, -0.3312690258026123, 0.006782755255699158, 0.123306043446064, -0.3301425576210022, 0.20310387015342712, -0.09640559554100037, -0.14377932250499725, 0.10154812783002853, 0.35785990953445435, 0.03147353604435921, 0.13444659113883972, -0.3486807644367218, -0.03641420602798462, 0.21179908514022827, 0.16706204414367676, 0.5066617131233215, 0.27888041734695435, -0.022538309916853905, 0.05678749829530716, 0.13726243376731873, -0.03728632628917694, 0.3509610593318939, -0.01743912324309349, 0.06897338479757309, -0.08893989026546478, 0.01986551284790039, 0.3704959452152252, -0.2638965845108032, 0.40294149518013, 0.2036253660917282, 0.19983749091625214, -0.21526752412319183, -0.06498068571090698, -0.1508314162492752, 0.2594078779220581, 0.04336171597242355, 0.011646083556115627, 0.12484294921159744, 0.2915680706501007, 0.09520946443080902, -0.15236100554466248, -0.12893220782279968, 0.015648260712623596, -0.2076679915189743, -0.10421845316886902, 0.13888141512870789, 0.0545036755502224, 0.25472381711006165, 0.4554470181465149, -0.17569850385189056, -0.009451204910874367, -0.3732995092868805, -0.36301785707473755, -0.1488604098558426, -0.11561043560504913, -0.25864875316619873, -0.04683845862746239, -0.06977169960737228, 0.12387029081583023, 0.11882138252258301, 0.1158263087272644, 0.25331413745880127, 0.004477497190237045, 0.19211198389530182, 0.4902763366699219, -0.16928283870220184, -0.01674123853445053, 0.16832436621189117, 0.16278953850269318, -0.15619105100631714, -0.362146258354187, 0.2883543372154236, 0.23242858052253723, 0.2500540614128113, -0.2877439260482788, -0.23579254746437073, 0.24995985627174377, -0.1283690333366394, -0.16344054043293, 0.16446863114833832, -0.22855612635612488, -0.23358161747455597, -0.07432501018047333, -0.012703854590654373, 0.23806695640087128, 0.031107481569051743, -0.08161918073892593, -0.07619397342205048, 0.06148550659418106, -0.127414733171463, -0.13340288400650024, -0.05733750760555267, 0.024981893599033356, 0.04474034905433655, 0.21089446544647217, 0.1958056539297104, 0.2852681577205658, 0.438719779253006, -0.24924415349960327, -0.6506679058074951, 0.40757861733436584, 0.023532748222351074, 0.06093257665634155, 0.276637464761734, -0.0646025538444519, 0.29212647676467896, 0.056147582828998566, -0.09859942644834518, -0.1849704384803772, 0.2049916684627533, -0.5609199404716492, -0.17007452249526978, -0.09849438816308975, 0.1963614821434021, 0.06908885389566422, 0.05841624364256859, 0.06919564306735992, 0.04308971390128136, 0.1906210333108902, 0.08878752589225769, -0.05591379106044769, 0.09770305454730988, -0.2419959008693695, -0.00130491703748703, -0.21798816323280334, 0.4913591146469116, -0.23443150520324707, 0.03018895536661148, -0.13521350920200348, 0.10473820567131042, 0.11585436761379242, 0.32533228397369385, -0.3003508448600769, 0.4413996934890747, -0.14080864191055298, 0.12484121322631836, 0.19135597348213196, -0.29897186160087585, -0.12609395384788513, 0.45493626594543457, -0.290989488363266, -0.17406919598579407, 0.1084962710738182, 0.01519138365983963, 0.19847653806209564, 0.029954086989164352, 0.2903323769569397, -0.16297459602355957, 0.2847069501876831, 0.18261685967445374, -0.10787699371576309, 0.007740788161754608, 0.15976263582706451, 0.11049814522266388, -0.5287642478942871, -0.1930350363254547, 0.0745648592710495, 0.10356645286083221, -0.010088793933391571, -0.179437518119812, -0.12885138392448425, 0.4532899856567383, -0.0080441078171134, -0.1855050027370453, 0.28046149015426636, 0.2361413538455963, -0.16173245012760162, -0.00474199652671814, -0.21216517686843872, -0.23743534088134766, 0.012613411992788315, -0.31039750576019287, 0.13634100556373596, 0.05770207941532135, -0.22587203979492188, -0.0005589313805103302, 0.1718883216381073, 0.21674169600009918, -0.18726295232772827, -0.06630053371191025, 0.03443636745214462, -0.00654185563325882, -0.22947858273983002, -0.05807261914014816, -0.3690659999847412, -0.22515769302845, -0.19293005764484406, 0.29020410776138306, 0.10012641549110413, 0.051659032702445984, 0.4500667154788971, -0.07696336507797241, -0.008369576185941696, 0.12138959765434265, 0.4090743064880371, 0.2413644939661026, 0.3329519033432007, 0.21671068668365479, 0.5112665295600891, 0.10913468897342682, 0.06615007668733597, 0.03209007903933525, 0.037671275436878204, -0.3805708885192871, -0.3177199959754944, 0.28667134046554565, 0.039953671395778656, 0.0024846456944942474, -0.07714754343032837, 0.027787387371063232, 0.46585172414779663, 0.1128014326095581, 0.03281015902757645, -0.46005505323410034, -0.018491625785827637, 0.6355432868003845, -0.2225128561258316, 0.4609512686729431, 0.06203560531139374, 0.5856897830963135, 0.4512519836425781, -0.34115922451019287, -0.12851044535636902, -0.012675866484642029, -0.12371125817298889, -0.46606481075286865, -0.02808607555925846, 0.3222883939743042, 0.28154587745666504, 0.1424502432346344, -0.07433418184518814, 0.13085171580314636, 0.1566402018070221, -0.22184884548187256, 0.3593811094760895, 0.005123864859342575, 0.07842560857534409, 0.07616755366325378, 0.2985599935054779, -0.07614926993846893, -0.43903160095214844, -0.2105133831501007, 0.5419509410858154, 0.18281909823417664, -0.3398180902004242, -0.07417286932468414, -0.5753316283226013, 0.25665122270584106, -0.208587646484375, 0.07906915247440338, -0.21994689106941223, -0.33063140511512756, 0.19158656895160675, 0.5351459980010986, -0.19175246357917786, 0.024804383516311646, 0.2189728319644928, 0.40549203753471375, -0.047835804522037506, 0.03786679357290268, -0.24211657047271729, -0.25268444418907166, -0.002171926200389862, 0.0007379911839962006, 0.16829228401184082, -0.16670313477516174, 0.09854058176279068, -0.0009680092334747314, -0.06181569769978523, -0.6569473743438721, -0.3852790594100952, 0.2029549777507782, -0.217685267329216, -0.08809009939432144, 0.060469988733530045, -0.022924143821001053, -0.49315235018730164, -0.1360337734222412, -0.24911969900131226, 0.41203102469444275, -0.31686362624168396, 0.14583930373191833, -0.23035305738449097, -0.16950668394565582, -0.3084942102432251, -0.2869492471218109, 0.06225608289241791, 0.04284297674894333, 0.2375161498785019, 0.009266100823879242, 0.2903405725955963, 0.014733366668224335, -0.24078914523124695, -0.019458981230854988, -0.12928113341331482, 0.1680927276611328, -0.6054065227508545, -0.3265308439731598, -0.10082866996526718, -0.19865615665912628, -0.08405108749866486, -0.07537360489368439, 0.29828381538391113, -0.049476515501737595, -0.10833336412906647, -0.5357646942138672, -0.13310836255550385, 0.13645435869693756, 0.031063765287399292, -0.25958335399627686, -0.02664007991552353, 0.3220064342021942, 0.35557863116264343, -0.22427204251289368, 0.007575608789920807, -0.06703651696443558, 0.22025439143180847, 0.31027907133102417, 0.21861164271831512, -0.18070784211158752, -0.14282605051994324, -0.2503646910190582, 0.49675998091697693, 0.6802617311477661, -0.08722437918186188, -0.08124281466007233, 0.06482002884149551, 0.1408366858959198, 0.06725094467401505, 0.08753322064876556, -0.12584836781024933, -0.08808359503746033, 0.01613222062587738, 0.47071823477745056, -0.08531375229358673, -0.08353865891695023, 0.23745474219322205, 0.25000229477882385, -0.3685615360736847, -0.3060151934623718, -0.05346524715423584, -0.16192376613616943, 0.13604223728179932, 0.15804821252822876, 0.2378733605146408, -0.004199642688035965, -0.03729330748319626, -0.06106104329228401, -0.003531467169523239, 0.06074605882167816, -0.28183209896087646, -0.30543506145477295, -0.39678555727005005, -0.3837321698665619, 0.1832280158996582, -0.10953903198242188, 0.049157485365867615, -0.12818938493728638, 0.11258403956890106, 0.07217860966920853, -0.10631157457828522, 0.8338925242424011, -0.4579746425151825, 0.16768166422843933, 0.16767911612987518, -0.20814889669418335, -0.12398292124271393, -0.08995915949344635, -0.2645116150379181, 0.2085200548171997, 0.407837450504303, 0.48694324493408203, -0.1510305255651474, 0.2392733097076416, 0.11577963083982468, 0.005084380507469177, -0.16748709976673126, 0.038428645581007004, 0.06592899560928345, -0.38315311074256897, -0.32291463017463684, -0.1569056361913681, -0.14590711891651154, -0.017764311283826828, -0.1131138801574707, -0.2006792426109314, 0.20026910305023193, 0.15685828030109406, 0.13974529504776, 0.23048700392246246, 0.1816815286874771, 0.18291983008384705, 0.1565912961959839, 0.013052411377429962, -0.05046131834387779, 0.18620328605175018, 0.33604514598846436, 0.144637793302536, -0.09757395833730698, 0.06521636247634888, -0.33867159485816956, 0.07437735795974731, 0.26828670501708984, 0.20989049971103668, 0.17820504307746887, 0.04160634055733681, -0.14560586214065552, -0.14588530361652374, -0.23881831765174866, 0.26991701126098633, -0.026454610750079155, -0.11453494429588318, 0.03465207666158676, 0.16182823479175568, 0.22715993225574493, -0.35049426555633545, 0.4041938781738281, -0.23580002784729004, -0.12183292210102081, 0.3312467932701111, 0.09877853840589523, 1.0419566631317139, -0.2682437002658844, -0.2027229517698288, -0.2757571041584015, -0.3043023943901062, 0.657695472240448, -0.29952341318130493, 0.11706188321113586, -0.5067409873008728, 0.008006200194358826, 0.11761973798274994, -0.07102680206298828, -0.12930384278297424, 0.09759458899497986, -0.4630858898162842, -0.20395581424236298, 0.163848415017128, 0.3448338508605957, -0.19459065794944763, 0.44229957461357117, 0.30326738953590393, -0.17494133114814758, 0.07026682794094086, 0.13494686782360077, -0.19022062420845032, -0.21425417065620422, 0.057090066373348236, 0.032828159630298615, 0.16930007934570312, -0.23540088534355164, -0.3341639041900635, 0.1725391298532486, 0.07725569605827332, 0.5955438613891602, -0.2048776000738144, 0.006133586168289185, -0.22872531414031982, 0.017346804961562157, 0.2061510682106018, 0.2898862361907959, -0.245936781167984, 0.12475858628749847, 0.13471288979053497, 0.38200467824935913, -0.13490569591522217, -0.11989426612854004, -0.08216319978237152, 0.002130858600139618, -0.34520190954208374, -0.3407834470272064, 0.1976809948682785, -0.11503759026527405, -0.33292460441589355, 0.09179730713367462, -0.23689627647399902, -0.02272379957139492, 0.08989636600017548, 0.2984759509563446, -0.4994899034500122, -0.2512393593788147, 0.05761752277612686, -0.17962472140789032, -0.29186221957206726, 0.3302535116672516, 0.03613131493330002, -0.5448490381240845, -0.07784412056207657, 0.3736339211463928, 0.3602990210056305, 0.3496989607810974, 0.12379901856184006, -0.050063326954841614, -0.08679039031267166, -0.3264314830303192, 0.18014736473560333, -0.4874097406864166, 0.01985524594783783, 0.1520213484764099, -0.05633365362882614, -0.11887936294078827, 0.00481458380818367, 0.018650267273187637, -0.23424957692623138, 0.6001552939414978, -0.20112058520317078, -0.2790074944496155, -0.09272881597280502, -0.08599448204040527, 0.014577899128198624, 0.2944091856479645, 0.3819889724254608, -0.07693545520305634, -0.27340954542160034, 0.30770039558410645, -0.2819328010082245, 0.34028804302215576, -0.12012313306331635, 0.19735975563526154, -0.1631111353635788, -0.05441125109791756, -0.09365445375442505, 0.08719660341739655, 0.1969875544309616, 0.2647086977958679, -0.07031819224357605, -0.22481444478034973, -0.05554650351405144, 0.1566104292869568, 0.0011510848999023438, 0.13341236114501953, -0.29935702681541443, -0.08966737985610962, 0.09871315956115723, -0.1832575798034668, 0.14419403672218323, -0.1658313274383545, 0.18171434104442596, -0.050768978893756866, -0.28671160340309143, -0.009659495204687119, 0.16973206400871277, -0.15868785977363586, -0.1601482629776001, 0.3902058005332947, 0.12444688379764557, 0.25721514225006104, -0.1888331025838852, -0.15114448964595795, -0.4423006772994995, 0.050111234188079834, 0.08337463438510895, -0.06577041745185852, 0.16481047868728638, 0.13095219433307648, -0.3424822688102722, 0.04700995236635208, 0.21618318557739258, 0.344758540391922, -0.36050426959991455, -0.2973211407661438, -0.3167572021484375, 0.13498687744140625, -0.24027897417545319, -0.4959183931350708, 0.3653346002101898, 0.02293708547949791, -0.14228370785713196, 0.15553820133209229, 0.35994237661361694, -0.3576849699020386, -0.00801924616098404, -0.10600356757640839, 0.6999682188034058, -0.3942878544330597, 0.2264450192451477, 0.18565809726715088, -0.24358323216438293, -0.23956944048404694, 0.16252917051315308, 0.1568731665611267, 0.10770761221647263, 0.13652978837490082, 0.14037013053894043, 0.19751596450805664, -0.028369463980197906, -0.022169526666402817, 0.41787463426589966, -0.18179017305374146, 0.7519588470458984, 0.44244661927223206, -0.030777987092733383, 0.26062947511672974, 0.4041941165924072, -0.1422681212425232, -0.14190848171710968, -0.21617284417152405, -0.37955838441848755, 0.36298424005508423, -0.2900507152080536, -0.014579206705093384, -0.09258272498846054, -0.10023742914199829, 0.19204725325107574, 0.3459123969078064, -0.01180325262248516, 0.037002310156822205, 0.41313663125038147, 0.1536712348461151, -0.24897201359272003, -0.5125792622566223, 0.33632346987724304, -0.33036166429519653, 0.29230430722236633, -0.40099650621414185, 0.060248032212257385, 0.08622071146965027, -0.1040332168340683, 0.04167638346552849, 0.19909578561782837, 0.27631765604019165, 0.09480391442775726, -0.007472218945622444, 0.18016710877418518, -0.2811061441898346, -0.054488539695739746, 0.08672143518924713, 0.0831744372844696, -0.14208948612213135, -0.36267662048339844, 0.18027478456497192, 0.04745243489742279, 0.06002199277281761, -0.19081270694732666, 0.5934580564498901, 0.09974213689565659, 0.029735509306192398, 0.22936087846755981, 0.1729855090379715, -0.15887895226478577, 0.14030534029006958, 0.1661984622478485, -0.2062399536371231, -0.3719598352909088, 0.47161611914634705, 0.13924869894981384, 0.2531028985977173, -0.048862308263778687, 0.11163769662380219, 0.0022116657346487045, 0.5143994688987732, 0.014409160241484642, -0.36471617221832275, -0.16576869785785675, -0.06493634730577469, -0.1773391216993332, 0.12944766879081726, -0.2314022332429886, 0.27027690410614014, 0.2181689739227295, 0.16084256768226624, -0.04471097141504288, 0.06024657189846039, 0.08025119453668594, -0.12262997031211853, -0.26594078540802, 0.027537725865840912, -0.3932189345359802, 0.10510741919279099, -0.04939485713839531, -0.17228946089744568, 0.014040090143680573, -0.10841920971870422, 0.625580906867981, -0.008961822837591171, -0.0429820753633976, -0.13600127398967743, -0.09318193793296814, -0.05058934912085533, 0.04106442257761955, 0.5731687545776367, 0.39529740810394287, 0.14022892713546753, -0.19461601972579956, -0.1487458497285843, 0.07404249906539917, 0.09888704866170883, -0.17605945467948914, 0.37268826365470886, 0.24695488810539246, -0.135523721575737, 0.02007317543029785, -0.24884828925132751, -0.09504485875368118, 0.044440366327762604, 0.01667654514312744, -0.12456698715686798, -0.41535741090774536, -0.10745248198509216, -0.045963071286678314, 0.17186535894870758, -0.21515969932079315, 0.15354159474372864, 0.09296301752328873, 0.1379568725824356, -0.008823901414871216, -0.3202524483203888, 0.41073694825172424, -0.10498948395252228, -0.1741436868906021, -0.1306237131357193, 0.564816415309906, -0.5690388083457947, 0.301593542098999, -0.5685532093048096, -0.04662301391363144, 0.38929250836372375, -0.2156592309474945, -0.387237548828125, 0.2250094711780548, -0.2500569224357605, -0.08173804730176926, -0.15711672604084015, -0.09516078978776932, 0.18954703211784363, -0.20680731534957886, 0.10895231366157532, -0.12320341914892197 ]
https://github.com/huggingface/datasets/issues/2099
Hi ! Can you share more information about the features of your dataset ? You can get them by printing `my_dataset.features` Can you also share the code of your `map` function ?
load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :)
32
load_from_disk takes a long time to load local dataset I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :) Hi ! Can you share more information about the features of your dataset ? You can get them by printing `my_dataset.features` Can you also share the code of your `map` function ?
[ -0.35002052783966064, -0.19821536540985107, -0.05445139482617378, 0.27007266879081726, 0.32467135787010193, 0.050147637724876404, 0.4278252124786377, 0.19639775156974792, 0.7752037644386292, -0.012891910970211029, 0.14789006114006042, 0.5318042635917664, 0.08684612065553665, -0.08264360576868057, 0.11530615389347076, 0.09427004307508469, 0.35825908184051514, 0.23026247322559357, 0.4533499777317047, -0.18876321613788605, -0.27041977643966675, -0.016207758337259293, -0.13637183606624603, 0.0524609200656414, -0.16783371567726135, -0.13370878994464874, -0.023513440042734146, 0.035261817276477814, -0.1384558081626892, -0.2863384187221527, 0.016208842396736145, -0.05675213411450386, 0.2766021490097046, 0.2574596703052521, -0.00012687049456872046, -0.25120729207992554, 0.03125879913568497, 0.17712777853012085, -0.20250016450881958, 0.24496990442276, 0.38638973236083984, -0.46975091099739075, 0.2121182233095169, -0.35348695516586304, 0.14570371806621552, -0.3091144561767578, -0.2663036286830902, -0.28100085258483887, -0.04313340783119202, -0.15224498510360718, 0.04581171274185181, 0.4439667761325836, -0.27800124883651733, 0.07485935091972351, -0.12939825654029846, 0.34574222564697266, -0.15732485055923462, 0.04495978355407715, 0.5400739908218384, -0.0728074461221695, -0.10513146966695786, -0.08025906980037689, -0.18709176778793335, -0.10562993586063385, 0.3797869086265564, 0.07649374008178711, 0.2742576003074646, 0.10657072812318802, 0.08307885378599167, 0.1269640475511551, 0.5899766683578491, -0.004145903047174215, 0.058561772108078, -0.2526355981826782, -0.12502948939800262, -0.2961905598640442, 0.38865184783935547, 0.005405653268098831, -0.2881905138492584, 0.2031353861093521, -0.07143838703632355, -0.07310020923614502, 0.008850827813148499, 0.24375541508197784, -0.18031883239746094, -0.09903882443904877, 0.01958368718624115, 0.13288095593452454, 0.31689390540122986, -0.16144581139087677, 0.023098159581422806, -0.008251951076090336, 0.12345163524150848, 0.39862802624702454, -0.40989062190055847, -0.2113993763923645, 0.04001885652542114, 0.08357493579387665, -0.14352041482925415, 0.11203878372907639, 0.15146511793136597, 0.248946875333786, -0.16304917633533478, 0.0016307095065712929, 0.24220579862594604, 0.3972104787826538, -0.12179724872112274, 0.1301053911447525, 0.07318097352981567, -0.34190547466278076, -0.06997376680374146, -0.056045643985271454, -0.22599175572395325, -0.010650165379047394, 0.5112826228141785, -0.4784035086631775, -0.23394381999969482, -0.14483411610126495, -0.033380575478076935, 0.20677940547466278, 0.43175187706947327, -0.06416996568441391, 0.2521474063396454, 0.24105650186538696, 0.06419247388839722, 0.5306969285011292, -0.11653490364551544, 0.011717738583683968, -0.18960851430892944, -0.16190358996391296, -0.06514322012662888, -0.30716148018836975, -0.16844776272773743, 0.15985214710235596, 0.018116429448127747, 0.26190948486328125, -0.11744526028633118, 0.17264164984226227, -0.24809584021568298, 0.0674419179558754, -0.10356485843658447, -0.18663135170936584, 0.2897595167160034, 0.16197481751441956, -0.08319620788097382, 0.22045592963695526, 0.16585171222686768, -0.26048240065574646, -0.433132529258728, 0.36418476700782776, -0.16852781176567078, -0.3845949172973633, -0.4457712471485138, 0.0039889998733997345, -0.22792094945907593, -0.06108516827225685, -0.385481595993042, -0.1208798885345459, 0.12009778618812561, 0.04422834515571594, -0.03434714674949646, -0.15244752168655396, -0.14449138939380646, -0.09936294704675674, -0.03918636217713356, 0.12161172181367874, -0.3704286217689514, 0.21216844022274017, -0.2364284098148346, 0.2569226324558258, 0.3447543978691101, 0.6626864671707153, -0.257101446390152, 0.3425365090370178, -0.25784483551979065, 0.3158113360404968, 0.5487068891525269, -0.05780738219618797, -0.3862132430076599, 0.7333583831787109, -0.10037018358707428, -0.22489270567893982, 0.02653452940285206, 0.5490337610244751, 0.29243364930152893, -0.08520627021789551, 0.100395068526268, 0.6558297276496887, 0.1512114554643631, 0.21053971350193024, -0.39109528064727783, -0.027923841029405594, 0.0919300764799118, 0.4662361443042755, -0.41278257966041565, 0.15882381796836853, 0.15381170809268951, -0.04416852444410324, 0.1545039713382721, 0.09075605124235153, -0.06596870720386505, 0.24322356283664703, 0.28316789865493774, -0.03184882923960686, 0.011217370629310608, 0.25627392530441284, -0.16813445091247559, 0.12455403804779053, 0.46425971388816833, -0.22457540035247803, 0.04156873747706413, -0.16816695034503937, -0.34454846382141113, 0.31477099657058716, -0.10547926276922226, 0.6033322215080261, -0.18210716545581818, 0.002035573124885559, 0.08046388626098633, -0.1432272493839264, -0.1495121568441391, -0.11748677492141724, -0.25317761301994324, -0.11583191901445389, -0.09024251997470856, 0.05184193700551987, 0.15641577541828156, -0.015110470354557037, -0.3498859703540802, -0.06259605288505554, 0.05749808996915817, 0.049437884241342545, -0.21099594235420227, 0.2840450704097748, 0.15213507413864136, 0.0479033961892128, -0.049652013927698135, 0.17045718431472778, 0.1336132287979126, 0.0028484389185905457, 0.3439745604991913, -0.0021682903170585632, 0.20819421112537384, -0.2890039384365082, -0.1218547597527504, 0.425903856754303, -0.19429054856300354, 0.20476067066192627, -0.2710196077823639, -0.07095306366682053, 0.4258696734905243, 0.12621541321277618, 0.157650426030159, -0.016416490077972412, 0.1865304708480835, 0.3095093369483948, 0.2882080674171448, 0.2737436294555664, -0.2397419810295105, 0.26176518201828003, 0.2991084158420563, -0.3452144265174866, -0.061250630766153336, 0.1969377100467682, 0.03676809370517731, -0.30070313811302185, 0.006216738373041153, -0.10396701097488403, 0.31005632877349854, 0.11593959480524063, 0.09584365785121918, -0.31760504841804504, -0.034782204777002335, -0.1446264684200287, 0.08700565993785858, -0.10017585754394531, -0.0837555080652237, 0.12993396818637848, -0.05377955362200737, -0.13647118210792542, -0.325973778963089, 0.03181496262550354, 0.11181170493364334, 0.39601919054985046, -0.32593703269958496, 0.15387797355651855, -0.09075198322534561, 0.09902778267860413, 0.05599099397659302, -0.25811225175857544, 0.12666818499565125, -0.202723890542984, -0.2237585186958313, 0.23242956399917603, -0.02616031840443611, -0.14113080501556396, -0.012472067028284073, 0.3762321472167969, 0.19173704087734222, -0.4314824342727661, -0.3557513952255249, -0.2873745262622833, -0.15344345569610596, -0.14268383383750916, 0.4407370984554291, 0.16974525153636932, 0.22590886056423187, -0.06290555745363235, -0.16029947996139526, -0.25041940808296204, -0.14633862674236298, -0.09807434678077698, 0.05387813225388527, 0.1577213853597641, -0.1832670271396637, 0.3381577730178833, -0.5822999477386475, -0.03293955326080322, 0.2617311477661133, -0.3245377540588379, -0.24103906750679016, 0.378264844417572, -0.13104988634586334, -0.32022178173065186, 0.01372065395116806, 0.11351507902145386, -0.13313528895378113, -0.23635157942771912, 0.2219310700893402, 0.03674206882715225, 0.14376136660575867, -0.2337396740913391, 0.11274474114179611, 0.0259842686355114, 0.4734175503253937, -0.24530339241027832, -0.19459056854248047, -0.27755969762802124, 0.661359429359436, 0.002879481762647629, -0.2596796751022339, -0.07309947162866592, 0.11967608332633972, -0.09988441318273544, -0.02422388456761837, -0.5121886730194092, 0.23393596708774567, -0.4204593002796173, 0.4694085419178009, -0.22926276922225952, 0.06043124943971634, 0.13013789057731628, -0.2692606449127197, 0.037708431482315063, 0.22355133295059204, -0.10826355218887329, 0.20569726824760437, 0.1367424726486206, 0.0834924653172493, 0.08628815412521362, 0.6676971912384033, -0.23784583806991577, 0.32741478085517883, -0.20570746064186096, -0.1607968956232071, 0.3523727059364319, -0.013551725074648857, 0.19727562367916107, -0.35785597562789917, -0.17650486528873444, -0.2438223958015442, 0.12171491235494614, -0.3225131332874298, 0.19743992388248444, -0.039084360003471375, -0.35683533549308777, 0.023487217724323273, -0.052918531000614166, -0.05576426163315773, -0.05655887722969055, 0.2541283667087555, -0.0024454041849821806, 0.08467884361743927, -0.13588020205497742, 0.20293670892715454, -0.38289448618888855, -0.23283490538597107, -0.0731365829706192, 0.003416646271944046, 0.17377860844135284, -0.24962157011032104, -0.6529746651649475, -0.004440825432538986, -0.43162134289741516, 0.12334809452295303, -0.19623583555221558, 0.4478285312652588, 0.01738523691892624, -0.2779056429862976, 0.42959707975387573, 0.007991719990968704, 0.6057004332542419, 0.2846139669418335, 0.12633174657821655, 0.17928768694400787, -0.17386548221111298, -0.6647123098373413, 0.06594997644424438, 0.24270689487457275, -0.03041737526655197, 0.3263391852378845, 0.7139405012130737, -0.04325816035270691, -0.13892260193824768, -0.16244712471961975, 0.3244584798812866, -0.21229533851146698, -0.4873185455799103, -0.11448351293802261, -0.340140700340271, -0.09567112475633621, 0.16604310274124146, 0.17040620744228363, 0.4786664545536041, 0.42131781578063965, -0.04928560182452202, -0.21406970918178558, -0.10681270807981491, 0.07439035177230835, 0.08977873623371124, 0.3559320569038391, -0.08360997587442398, 0.4325261116027832, -0.3090105652809143, 0.16675186157226562, -0.13158611953258514, 0.4047929644584656, -0.12017203867435455, -0.03287326171994209, 0.34738826751708984, -0.20586368441581726, 0.027826037257909775, 0.3513396978378296, 0.2020437866449356, 0.04197651892900467, -0.11664219200611115, 0.1926027238368988, -0.22257819771766663, -0.022443624213337898, -0.19355283677577972, -0.01326209306716919, -0.018161790445446968, -0.1326581835746765, 0.29762327671051025, 0.0367986261844635, -0.033668749034404755, 0.2161802351474762, -0.13917377591133118, 0.08047786355018616, 0.7127649784088135, 0.20997989177703857, 1.1476433277130127, -0.47657889127731323, -0.03675880283117294, 0.10554932057857513, 0.18755392730236053, -0.09675469994544983, -0.15562570095062256, -0.35277536511421204, -0.3770473897457123, 0.10472223162651062, 0.12526920437812805, -0.22288306057453156, -0.13517120480537415, 0.4446428418159485, 0.1457493007183075, -0.12738797068595886, -0.20854118466377258, 0.3245828151702881, -0.332976371049881, 0.4716743230819702, 0.030498435720801353, -0.4644050598144531, -0.5360885262489319, -0.02564963325858116, 0.0021090013906359673, -0.06254707276821136, 0.013471044600009918, 0.15044382214546204, 0.028022438287734985, -0.16130149364471436, -0.05559207499027252, -0.16837948560714722, 0.131130188703537, 0.15939420461654663, 0.21325895190238953, -0.24297070503234863, -0.06009262427687645, 0.4783610701560974, 0.3922136425971985, -0.048834167420864105, -0.028553210198879242, 0.17562294006347656, 0.10712200403213501, 0.14112946391105652, 0.08806156367063522, -0.24716797471046448, 0.06472413241863251, -0.12289062142372131, 0.029601380228996277, -0.12666282057762146, -0.14927539229393005, -0.4715045988559723, -0.11046317964792252, 0.1728014200925827, 0.3435622453689575, -0.16787895560264587, -0.2620111405849457, -0.2804313004016876, 0.1687629520893097, -0.04698660224676132, 0.010830710642039776, 0.3402673304080963, 0.19190573692321777, 0.2474278062582016, 0.00043864676263183355, -0.24706612527370453, 0.02622900903224945, 0.3180593252182007, 0.017531221732497215, -0.25534898042678833, 0.2725580334663391, 0.03696461021900177, -0.2449592500925064, -0.20934346318244934, 0.3605390787124634, 0.29678574204444885, -0.4077203869819641, 0.08610109984874725, -0.04214472323656082, 0.0005219876766204834, 0.08121877163648605, 0.07930122315883636, 0.19449301064014435, 0.00048301368951797485, -0.10940960794687271, -0.23805657029151917, -0.5587601661682129, -0.053292419761419296, 0.17409108579158783, 0.09813681244850159, 0.1941780149936676, -0.48320668935775757, -0.2332376092672348, 0.0859462171792984, -0.13559778034687042, 0.06227841228246689, -0.0595659539103508, 0.10919176042079926, 0.040164120495319366, -0.041579719632864, 0.06777596473693848, -0.1500798761844635, 0.04654405266046524, -0.15257088840007782, -0.010093456134200096, -0.08015391230583191, 0.07200859487056732, 0.21140475571155548, -0.01653318852186203, -0.30913421511650085, -0.20021392405033112, -0.47526875138282776, -0.18129298090934753, -0.3601987063884735, -0.14566218852996826, 0.056809864938259125, -0.06762703508138657, -0.3485497236251831, 0.37513482570648193, 0.1153303012251854, -0.03784911707043648, 0.3707073926925659, -0.05080946907401085, 0.40257135033607483, -0.05549105256795883, 0.11913226544857025, 0.21759703755378723, -0.1941404938697815, -0.3011139929294586, 0.178386390209198, 0.36504003405570984, -0.1530924290418625, 0.3515724837779999, -0.2173791229724884, 0.03927767276763916, 0.2798117399215698, -0.03593815863132477, 0.11384615302085876, -0.17386573553085327, -0.2687506079673767, 0.27028462290763855, 0.058391399681568146, -0.013029847294092178, -0.2406964749097824, 0.005447786301374435, -0.0960761234164238, -0.22358912229537964, 0.2846255302429199, 0.44089967012405396, -0.17945514619350433, -0.12389691174030304, 0.050179772078990936, 0.5539263486862183, 0.03413209319114685, -0.45264551043510437, 0.5829264521598816, -0.08260495960712433, 0.003346102312207222, 0.17829687893390656, 0.21411201357841492, -0.0035187192261219025, 0.5654759407043457, -0.20794373750686646, 0.0983971357345581, 0.36060023307800293, 0.586161196231842, -0.3880658447742462, -0.3600417375564575, 0.3370532989501953, 0.2944205403327942, -0.2477838546037674, -0.17212367057800293, 0.17444121837615967, 0.22937273979187012, -0.1746053546667099, -0.11719614267349243, -0.21015280485153198, 0.2908436357975006, -0.26805126667022705, 0.050582464784383774, -0.39626550674438477, -0.003801010549068451, -0.02635016292333603, 0.1709141731262207, -0.2733542323112488, 0.005703890696167946, -0.28574463725090027, 0.3377733826637268, 0.043734222650527954, 0.08742522448301315, 0.06786712259054184, 0.05169430002570152, -0.02613256871700287, -0.41818833351135254, 0.024077972397208214, -0.3533780872821808, -0.026627056300640106, 0.24782875180244446, -0.274610310792923, 0.3719307482242584, 0.5034903287887573, -0.00685296393930912, 0.055324554443359375, -0.013331077992916107, -0.06888438016176224, 0.022692687809467316, 0.13873162865638733, -0.15099458396434784, 0.24195577204227448, 0.17698009312152863, -0.1034574955701828, -0.04398329555988312, -0.41773855686187744, -0.15736882388591766, 0.41496360301971436, 0.09254880249500275, 0.3043408691883087, 0.08825216442346573, -0.3174014091491699, -0.2717196047306061, 0.08084607124328613, -0.03302939981222153, -0.14504101872444153, 0.3015879988670349, 0.03791331872344017, 0.16235771775245667, -0.056728295981884, -0.03640836477279663, -0.37257492542266846, 0.5649234652519226, 0.3192875385284424, -0.39516592025756836, -0.18803969025611877, -0.3771694302558899, -0.6647294759750366, 0.08342137187719345, 0.055831633508205414, -0.05272333323955536, 0.4076802432537079, 0.19828951358795166, 0.4616665840148926, 0.06102288141846657, -0.1537916511297226, 0.0770157128572464, -0.15672598779201508, 0.38891151547431946, -0.05186789855360985, 0.053420290350914, 0.03399010747671127, 0.2281392365694046, -0.2226358950138092, -0.4697471857070923, 0.4194072484970093, 0.21801519393920898, -0.08978982269763947, -0.13300716876983643, 0.05924854427576065, -0.341467022895813, 0.42561841011047363, 0.38614681363105774, 0.025697046890854836, 0.09220369160175323, 0.31250813603401184, 0.08798728138208389, 0.30150535702705383, -0.027041742578148842, 0.06978228688240051, 0.2420685887336731, -0.05613390728831291, -0.03937621787190437, -0.040464289486408234, 0.41306301951408386, -0.17332293093204498, -0.044414687901735306, -0.27785414457321167, -0.14210423827171326, -0.14027002453804016, -0.025870688259601593, -0.21829655766487122, 0.22998976707458496, 0.267699271440506, -0.02398422546684742, 0.20529338717460632, 0.20322638750076294, -0.24721728265285492, -0.05097417160868645, 0.21245840191841125, -0.008321303874254227, -0.15520957112312317, 0.02249397337436676, 0.12438090890645981, 0.21345612406730652, 0.18659478425979614, -0.30397236347198486, -0.17450004816055298, 0.2332245111465454, -0.17034880816936493, -0.09615150839090347, 0.38763490319252014, -0.23462137579917908, 0.189915731549263, -0.17160198092460632, 0.24274300038814545, -0.0772555023431778, -0.06954044103622437, -0.4443511962890625, -0.27115878462791443 ]
https://github.com/huggingface/datasets/issues/2099
It is actually just the tokenized `wikipedia` dataset with `input_ids`, `attention_mask`, etc, with one extra column which is a list of integers. The `text` column is removed during tokenization. ``` def add_len_and_seq(example): end_idx = example['input_ids'].index(SEP) example['actual_len'] = end_idx-1 seq_len = len(example['input_ids']) example['seq'] = [PAD_ID] + [np.uint8(example['some_integer'])]*(end_idx-1) + [PAD_ID]*(seq_len-end_idx) return example ```
load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :)
51
load_from_disk takes a long time to load local dataset I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :) It is actually just the tokenized `wikipedia` dataset with `input_ids`, `attention_mask`, etc, with one extra column which is a list of integers. The `text` column is removed during tokenization. ``` def add_len_and_seq(example): end_idx = example['input_ids'].index(SEP) example['actual_len'] = end_idx-1 seq_len = len(example['input_ids']) example['seq'] = [PAD_ID] + [np.uint8(example['some_integer'])]*(end_idx-1) + [PAD_ID]*(seq_len-end_idx) return example ```
[ -0.2723698616027832, -0.14686666429042816, -0.038862526416778564, 0.18744084239006042, 0.400037556886673, 0.045344799757003784, 0.4641445577144623, 0.22945666313171387, 0.6530971527099609, -0.03941313177347183, 0.20311301946640015, 0.5122689604759216, -0.024183806031942368, -0.16529881954193115, 0.16992896795272827, 0.10534986108541489, 0.3435817062854767, 0.1828208714723587, 0.528467059135437, -0.2227725386619568, -0.2088472843170166, -0.06002055108547211, -0.06578497588634491, -0.027685128152370453, -0.22054904699325562, -0.045207709074020386, -0.03130142763257027, 0.02276526764035225, -0.13431578874588013, -0.31946563720703125, 0.09288372844457626, 0.01930287666618824, 0.22875505685806274, 0.2781814634799957, -0.00012817526294384152, -0.17220333218574524, 0.004607144743204117, 0.15352028608322144, -0.14309771358966827, 0.2643972933292389, 0.4690801501274109, -0.5940459966659546, 0.23838850855827332, -0.35034263134002686, 0.06183712184429169, -0.28272590041160583, -0.34017351269721985, -0.214790940284729, -0.00755193829536438, -0.11950148642063141, 0.01585768163204193, 0.36168763041496277, -0.3337502181529999, 0.1539880633354187, -0.07433214783668518, 0.19389992952346802, -0.1434202790260315, 0.12581241130828857, 0.4729340374469757, -0.1927230954170227, 0.002967085689306259, 0.022614892572164536, -0.2509932518005371, -0.09650246798992157, 0.3857633173465729, 0.07410292327404022, 0.19517776370048523, 0.04834093526005745, 0.05060938373208046, 0.1477312594652176, 0.5389365553855896, -0.0009462421294301748, -0.057760532945394516, -0.3210890293121338, -0.05546428635716438, -0.3969576954841614, 0.3212764859199524, 0.03013990819454193, -0.2767955958843231, 0.0759611427783966, -0.10861067473888397, -0.07882567495107651, 0.029810860753059387, 0.21881729364395142, -0.21573472023010254, 0.04223089665174484, 0.08669473230838776, 0.19333258271217346, 0.3188706040382385, -0.10838085412979126, -0.0987514853477478, -0.008489429950714111, 0.19528889656066895, 0.43588489294052124, -0.3283739387989044, -0.2487679421901703, 0.032680779695510864, -0.001962868496775627, -0.14442399144172668, 0.19642379879951477, 0.08892090618610382, 0.21061858534812927, -0.1054590493440628, 0.005110348109155893, 0.23942825198173523, 0.460897833108902, -0.22968639433383942, 0.12118808925151825, 0.07784029841423035, -0.3174990713596344, -0.17822138965129852, -0.09161605685949326, -0.2083226889371872, 0.03591064736247063, 0.4978763163089752, -0.5051921010017395, -0.24282431602478027, -0.11873247474431992, -0.04305919632315636, 0.23675626516342163, 0.31780385971069336, 0.003801487386226654, 0.2405848205089569, 0.29861214756965637, 0.030292216688394547, 0.5268793106079102, -0.0790834128856659, 0.14303474128246307, -0.21736566722393036, -0.023491699248552322, -0.07065945118665695, -0.26027846336364746, -0.10747697949409485, 0.10863979160785675, -0.028918299823999405, 0.33354514837265015, -0.0739850401878357, 0.15108096599578857, -0.13496576249599457, 0.009155169129371643, -0.06717097759246826, -0.1628105491399765, 0.23055043816566467, 0.207768514752388, -0.165542334318161, 0.2659240961074829, 0.25838494300842285, -0.33319908380508423, -0.4613669514656067, 0.2853640913963318, -0.17054088413715363, -0.41378405690193176, -0.39644166827201843, -0.006731705740094185, -0.2626550793647766, -0.09387365728616714, -0.4485407769680023, -0.040241457521915436, 0.1792415827512741, 0.04322953522205353, -0.0430106557905674, -0.21621793508529663, -0.14515584707260132, -0.13015858829021454, 0.05793066322803497, 0.07286491990089417, -0.2945597171783447, 0.11277712136507034, -0.2678591310977936, 0.3557193875312805, 0.37708714604377747, 0.7180871367454529, -0.29196110367774963, 0.42021068930625916, -0.21722009778022766, 0.2997385561466217, 0.5369102358818054, -0.18845444917678833, -0.4042331874370575, 0.6187263131141663, -0.13438694179058075, 0.04453526437282562, 0.036125391721725464, 0.4975113570690155, 0.25840070843696594, -0.039475731551647186, 0.1837877631187439, 0.6960247159004211, 0.10998769104480743, 0.2276616096496582, -0.40643197298049927, -0.02678757905960083, 0.21991781890392303, 0.3522605895996094, -0.3312681317329407, 0.15143746137619019, 0.06536328792572021, 0.09053459763526917, 0.20923076570034027, 0.06162295490503311, -0.10179392993450165, 0.2813987731933594, 0.25829458236694336, 0.16434797644615173, 0.043433088809251785, 0.27207618951797485, -0.144076868891716, 0.2002817839384079, 0.5107882618904114, -0.07632133364677429, -0.05008717253804207, -0.24803772568702698, -0.38928014039993286, 0.29318103194236755, -0.1443338841199875, 0.3294907808303833, -0.19607745110988617, 0.0404953733086586, 0.1306804120540619, 0.019618339836597443, -0.10775282979011536, -0.2730447053909302, -0.25391507148742676, -0.0318213552236557, -0.014375562779605389, 0.04970775544643402, 0.18671995401382446, -0.004795704036951065, -0.448259174823761, 0.1168493777513504, 0.05642968416213989, 0.03136000409722328, -0.22208601236343384, 0.2688142955303192, 0.20777881145477295, 0.06802373379468918, -0.049533262848854065, 0.20587624609470367, 0.10934854298830032, 0.03370988368988037, 0.2628691792488098, 0.07125941663980484, 0.19753192365169525, -0.2217777967453003, -0.19142942130565643, 0.5089941024780273, -0.08551008999347687, 0.24814067780971527, -0.272907555103302, -0.039668008685112, 0.47736674547195435, 0.12427763640880585, 0.09855017811059952, -0.025013014674186707, 0.20527859032154083, 0.27789562940597534, 0.27573156356811523, 0.11172013729810715, -0.16667473316192627, 0.2718946933746338, 0.2947525084018707, -0.2841125428676605, -0.03043561801314354, 0.20607419312000275, 0.02748725935816765, -0.3105517029762268, -0.011694713495671749, -0.13333235681056976, 0.25178101658821106, 0.11762755364179611, 0.10770133137702942, -0.30047619342803955, -0.06173618137836456, -0.09899745881557465, 0.17740729451179504, -0.08651970326900482, -0.10136210173368454, 0.13030239939689636, 0.01948785036802292, -0.08265228569507599, -0.377175897359848, -0.05254504084587097, 0.06866256147623062, 0.43668317794799805, -0.2205614596605301, 0.27478253841400146, -0.05718224495649338, 0.19979923963546753, -0.016439000144600868, -0.30174118280410767, 0.02512994408607483, -0.3157308101654053, -0.2038692682981491, 0.29086658358573914, -0.044720880687236786, -0.1348048746585846, -0.0688590407371521, 0.25504112243652344, 0.21281708776950836, -0.4541468620300293, -0.279496431350708, -0.30617502331733704, -0.11136327683925629, -0.1972857117652893, 0.369775652885437, 0.04897644743323326, 0.30081266164779663, -0.013800196349620819, -0.19552835822105408, -0.2244667410850525, -0.34116023778915405, -0.10979388654232025, -0.04759988933801651, 0.21396970748901367, -0.18613485991954803, 0.30081823468208313, -0.5481992959976196, -0.06546976417303085, 0.3417084217071533, -0.288156658411026, -0.171694815158844, 0.3768146336078644, -0.006420481950044632, -0.16055601835250854, 0.10094408690929413, 0.10476670414209366, -0.12692786753177643, -0.1898217797279358, 0.2512328028678894, 0.07065056264400482, 0.13903161883354187, -0.21855060756206512, 0.06980244815349579, 0.021885178983211517, 0.478802353143692, -0.20522503554821014, -0.19838736951351166, -0.1957685649394989, 0.5628789663314819, 0.04496682435274124, -0.18308201432228088, -0.11863872408866882, 0.03673984855413437, -0.09357047080993652, 0.015528369694948196, -0.5713313817977905, 0.1604188233613968, -0.38069847226142883, 0.4317452907562256, -0.18333080410957336, 0.04722994565963745, 0.16627056896686554, -0.263386070728302, 0.04827524349093437, 0.1891607642173767, 0.020515553653240204, 0.1094459742307663, 0.071571484208107, 0.03026975505053997, -0.007416626438498497, 0.7050036787986755, -0.19107818603515625, 0.5004673004150391, -0.24206501245498657, -0.04915067180991173, 0.3664190471172333, -0.11207041144371033, 0.25640323758125305, -0.34371376037597656, -0.2357250452041626, -0.24049821496009827, 0.0993407592177391, -0.36503565311431885, 0.1803104281425476, -0.01052698865532875, -0.33116430044174194, 0.08198146522045135, -0.04930652305483818, -0.019013062119483948, -0.1505441665649414, 0.3478381037712097, -0.15159617364406586, 0.036844078451395035, -0.11030645668506622, 0.2615601420402527, -0.42256584763526917, -0.2423097789287567, -0.11795832216739655, 0.020794324576854706, 0.12375356256961823, -0.2384306639432907, -0.712393045425415, -0.12284117937088013, -0.5423578023910522, 0.1210411936044693, -0.12563005089759827, 0.4711706042289734, 0.08129537850618362, -0.30766618251800537, 0.4302412271499634, -0.028957705944776535, 0.6507667899131775, 0.12013142555952072, 0.09623335301876068, 0.19613434374332428, -0.26138874888420105, -0.78082275390625, 0.02586916834115982, 0.1718289852142334, 0.033367592841386795, 0.34046679735183716, 0.7582910060882568, -0.07947392761707306, -0.13212433457374573, -0.19429133832454681, 0.4059048891067505, -0.23309741914272308, -0.28666451573371887, -0.2519877552986145, -0.3326835036277771, -0.24242031574249268, 0.21683207154273987, 0.11986827850341797, 0.5127630233764648, 0.365509033203125, -0.05413207411766052, -0.2658091187477112, -0.07860542833805084, 0.11192339658737183, 0.10967162996530533, 0.37978148460388184, -0.08637264370918274, 0.33770036697387695, -0.2857826352119446, 0.06293077766895294, -0.18406930565834045, 0.4262426495552063, -0.1851898729801178, -0.08629278838634491, 0.2065570056438446, -0.09059847891330719, 0.07268217206001282, 0.4006858468055725, 0.21373191475868225, 0.0808737725019455, -0.17397631704807281, 0.28016233444213867, -0.35010242462158203, 0.08600368350744247, -0.02046595886349678, 0.029995884746313095, -0.034200116991996765, -0.28593695163726807, 0.3274008631706238, 0.01670841872692108, -0.06746509671211243, 0.2595992386341095, -0.0951782613992691, 0.007013559341430664, 0.7409737706184387, 0.20203860104084015, 1.2241342067718506, -0.43617597222328186, 0.10460322350263596, 0.15660341084003448, 0.2955695688724518, 0.0488453283905983, -0.2537309527397156, -0.2328999787569046, -0.35731327533721924, 0.13860000669956207, 0.13614237308502197, -0.18217825889587402, -0.1807621568441391, 0.36628079414367676, 0.11059436947107315, -0.09532594680786133, -0.30478930473327637, 0.32988759875297546, -0.3755413889884949, 0.4509914517402649, -0.0389762744307518, -0.395083487033844, -0.5488095879554749, -0.04587520658969879, 0.09278592467308044, 0.016733823344111443, -0.041905224323272705, 0.2078905701637268, -0.019734084606170654, -0.24736101925373077, -0.15608572959899902, -0.12239018082618713, 0.18826889991760254, 0.32843640446662903, 0.07796691358089447, -0.3352369964122772, -0.20271900296211243, 0.456859290599823, 0.3226768374443054, 0.017519893124699593, -0.046757228672504425, 0.21618932485580444, 0.035755664110183716, 0.07851355522871017, 0.1622999906539917, -0.26452383399009705, 0.11431853473186493, -0.0748123899102211, 0.03757248818874359, -0.14900948107242584, -0.2162971794605255, -0.5926704406738281, -0.08498360216617584, 0.18309366703033447, 0.36968541145324707, -0.21036316454410553, -0.24647259712219238, -0.18207798898220062, 0.1899178922176361, -0.15196065604686737, -0.0263233482837677, 0.24441486597061157, 0.13268858194351196, 0.23227164149284363, -0.03550809249281883, -0.2975769340991974, 0.056139782071113586, 0.3613012433052063, 0.12190288305282593, -0.17635026574134827, 0.3943614363670349, -0.04588250070810318, -0.23342302441596985, -0.22979551553726196, 0.2831096053123474, 0.32575517892837524, -0.36785754561424255, 0.20204505324363708, -0.05971105769276619, -0.026154443621635437, 0.06124328449368477, 0.11170162260532379, 0.12266895920038223, -0.052675142884254456, -0.20482295751571655, -0.29200005531311035, -0.5180851221084595, -0.014269836246967316, 0.22126644849777222, 0.1805761754512787, 0.1349378526210785, -0.3628828823566437, -0.2561188042163849, 0.11215382069349289, -0.1135135367512703, 0.03016803413629532, -0.10332433134317398, 0.10160628706216812, 0.08811064064502716, -0.07948935031890869, 0.18998700380325317, -0.12109564244747162, 0.02479768544435501, -0.16552719473838806, 0.0063723064959049225, -0.06267456710338593, -0.0018176734447479248, 0.2346961796283722, -0.03139903023838997, -0.2769501507282257, -0.14272041618824005, -0.3840755820274353, -0.11960362643003464, -0.44055846333503723, -0.04668717086315155, 0.03089965134859085, -0.05300084128975868, -0.40756821632385254, 0.36228060722351074, 0.19740916788578033, -0.027323532849550247, 0.28471288084983826, -0.16923703253269196, 0.39893555641174316, 0.020552579313516617, 0.015639707446098328, 0.27509716153144836, -0.15610694885253906, -0.31680047512054443, 0.18739163875579834, 0.40504881739616394, -0.128935307264328, 0.36073216795921326, -0.15520745515823364, 0.06984727084636688, 0.2845456004142761, 0.012452289462089539, 0.21205435693264008, -0.1705857515335083, -0.3054559528827667, 0.3490545153617859, 0.0346519872546196, -0.018131081014871597, -0.30507081747055054, -0.045113638043403625, -0.1514681875705719, -0.21215477585792542, 0.3869558572769165, 0.436087965965271, -0.10362190008163452, -0.20266741514205933, 0.018580496311187744, 0.5638002157211304, 0.07442350685596466, -0.357427716255188, 0.5144124627113342, -0.13183599710464478, -0.0445709191262722, 0.13616591691970825, 0.15907920897006989, 0.08558301627635956, 0.5236284732818604, -0.14408254623413086, 0.1383865773677826, 0.27286648750305176, 0.4584125280380249, -0.4138360619544983, -0.3418090343475342, 0.3759527802467346, 0.3029160797595978, -0.17235083878040314, -0.05995329096913338, 0.1050041913986206, 0.28291624784469604, -0.2486315220594406, -0.0871199369430542, -0.21645590662956238, 0.408029168844223, -0.2787196636199951, -0.004971396178007126, -0.2101796269416809, -0.00801289826631546, 0.009144023060798645, 0.1979598104953766, -0.2225671112537384, -0.010947568342089653, -0.35670867562294006, 0.2962242662906647, 0.03816569596529007, 0.048778221011161804, 0.1087220311164856, 0.042662471532821655, 0.1082419902086258, -0.43548232316970825, -0.03577929362654686, -0.28122368454933167, -0.005410406738519669, 0.22186128795146942, -0.24682199954986572, 0.43744683265686035, 0.47774213552474976, -0.00773322768509388, 0.0011962465941905975, -0.006876377388834953, -0.016529131680727005, -0.06083373725414276, 0.17327941954135895, -0.17835798859596252, 0.2844758927822113, 0.14850088953971863, -0.12417363375425339, -0.07217829674482346, -0.4527175724506378, -0.11139513552188873, 0.3679220378398895, 0.12524625658988953, 0.30180907249450684, 0.12301097810268402, -0.24241450428962708, -0.3305613100528717, 0.1317327916622162, -0.046197742223739624, -0.15222343802452087, 0.1501564234495163, 0.09004237502813339, 0.17354927957057953, -0.04381055757403374, -0.04192037135362625, -0.2884944677352905, 0.5451470613479614, 0.28159570693969727, -0.37236520648002625, -0.20561563968658447, -0.37825584411621094, -0.6515105366706848, 0.07166606187820435, -0.10745780915021896, -0.1714024841785431, 0.3680437207221985, 0.2453301101922989, 0.4008660614490509, 0.04305140674114227, -0.14155733585357666, 0.02698979526758194, -0.18252837657928467, 0.3073928952217102, -0.05302262678742409, 0.11376021802425385, 0.018963947892189026, 0.18044142425060272, -0.17745590209960938, -0.5137279033660889, 0.37816306948661804, 0.20775404572486877, -0.11003975570201874, -0.05397370830178261, 0.01882365345954895, -0.4160958230495453, 0.3677493631839752, 0.4663528501987457, 0.06756184250116348, 0.17664313316345215, 0.2604013681411743, 0.02366829663515091, 0.2030625194311142, -0.07681752741336823, -0.0392012894153595, 0.28843092918395996, -0.1165912076830864, 0.028764329850673676, -0.08110609650611877, 0.39492684602737427, -0.19590982794761658, 0.08130359649658203, -0.17033246159553528, -0.2662625014781952, -0.13608945906162262, -0.035382457077503204, -0.18961013853549957, 0.33248597383499146, 0.16491174697875977, 0.1120358407497406, 0.2056090384721756, 0.2885061502456665, -0.26440271735191345, -0.1547447144985199, 0.3250328302383423, -0.09142810106277466, -0.19286838173866272, -0.010416999459266663, 0.13008946180343628, 0.19259124994277954, 0.17209111154079437, -0.38013648986816406, -0.17498061060905457, 0.23548558354377747, -0.06093192845582962, -0.22688107192516327, 0.35006654262542725, -0.2122197300195694, 0.07296891510486603, -0.12630534172058105, 0.22088269889354706, -0.1411450058221817, -0.06373749673366547, -0.38299623131752014, -0.23393389582633972 ]
https://github.com/huggingface/datasets/issues/2099
Is `PAD_ID` a python integer ? You need all the integers in `example['seq']` to have the same type. Does this work if you remove the `np.uint8` and use python integers instead ?
load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :)
32
load_from_disk takes a long time to load local dataset I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :) Is `PAD_ID` a python integer ? You need all the integers in `example['seq']` to have the same type. Does this work if you remove the `np.uint8` and use python integers instead ?
[ -0.29434022307395935, -0.22488023340702057, -0.05711601674556732, 0.3033536672592163, 0.3156484365463257, 0.049701109528541565, 0.4435778558254242, 0.242875337600708, 0.679973304271698, -0.01870133727788925, 0.1529655158519745, 0.5113555192947388, 0.08853215724229813, -0.1085035502910614, 0.13383620977401733, 0.09861043095588684, 0.34292545914649963, 0.20607712864875793, 0.4759649336338043, -0.1658245176076889, -0.2517735958099365, 0.0001298133283853531, -0.13068459928035736, 0.023482080549001694, -0.15882782638072968, -0.0829918384552002, -0.07518047094345093, 0.035068329423666, -0.15235894918441772, -0.31554102897644043, 0.021622151136398315, -0.044831763952970505, 0.28849130868911743, 0.20515331625938416, -0.00012642792717088014, -0.2548460364341736, 0.021628104150295258, 0.11730514466762543, -0.24758197367191315, 0.2874675393104553, 0.4266406297683716, -0.4523161053657532, 0.22125659883022308, -0.3689643144607544, 0.13737115263938904, -0.33822038769721985, -0.3590536117553711, -0.20980507135391235, -0.01868082582950592, -0.14110316336154938, 0.04449905827641487, 0.4352433979511261, -0.28191953897476196, 0.03457815572619438, -0.05285373330116272, 0.2976842522621155, -0.16378578543663025, 0.046638261526823044, 0.5985648036003113, -0.07255782186985016, -0.1019449234008789, -0.08175471425056458, -0.21824510395526886, -0.10184512287378311, 0.38465142250061035, 0.07481075823307037, 0.25707733631134033, 0.1627737581729889, 0.06621281057596207, 0.14271865785121918, 0.588785707950592, -0.03528161719441414, -0.0009134821593761444, -0.24474842846393585, -0.09524676203727722, -0.28908905386924744, 0.36738133430480957, 0.012819081544876099, -0.2871282696723938, 0.18507719039916992, -0.06020062416791916, -0.07239136099815369, -0.050153858959674835, 0.23306848108768463, -0.12945230305194855, -0.07575345039367676, 0.04343520104885101, 0.11633513867855072, 0.33378738164901733, -0.15129302442073822, 0.06170268729329109, 0.035188112407922745, 0.11665771901607513, 0.38416561484336853, -0.40372973680496216, -0.2078675478696823, -0.033136721700429916, 0.0053695738315582275, -0.1448204219341278, 0.1278424859046936, 0.2320953756570816, 0.24858319759368896, -0.04493022710084915, 0.019750595092773438, 0.23991917073726654, 0.3678700923919678, -0.11983558535575867, 0.14694978296756744, 0.07684025913476944, -0.3085556924343109, -0.028876222670078278, -0.04060903936624527, -0.2590741515159607, 0.0038077495992183685, 0.47856366634368896, -0.46820950508117676, -0.27038177847862244, -0.1632351130247116, -0.052466876804828644, 0.24296969175338745, 0.39548128843307495, -0.04334826022386551, 0.24236498773097992, 0.2756171226501465, 0.04624493420124054, 0.49453306198120117, -0.04929877817630768, 0.03745703399181366, -0.1581910401582718, -0.11492201685905457, -0.06040968745946884, -0.2971881926059723, -0.17128753662109375, 0.14898745715618134, 0.041865020990371704, 0.3508811295032501, -0.12050528079271317, 0.18909434974193573, -0.23291482031345367, 0.057836443185806274, -0.09105061739683151, -0.1327034831047058, 0.26963257789611816, 0.1806907206773758, -0.09917093813419342, 0.23658376932144165, 0.16987007856369019, -0.20173946022987366, -0.4431205093860626, 0.3833532929420471, -0.19583232700824738, -0.3932255506515503, -0.4349837899208069, 0.02187604084610939, -0.21197712421417236, -0.07928837835788727, -0.45142900943756104, -0.1795581728219986, 0.11826840043067932, 0.05899690091609955, -0.019751764833927155, -0.13087399303913116, -0.08217273652553558, -0.09233716130256653, -0.047402989119291306, 0.09292466938495636, -0.3962218165397644, 0.16686290502548218, -0.20801816880702972, 0.28909316658973694, 0.347707062959671, 0.6229010224342346, -0.29964542388916016, 0.36213430762290955, -0.25233563780784607, 0.2976994514465332, 0.5223906636238098, -0.10041922330856323, -0.3643666207790375, 0.7189661860466003, -0.04725049436092377, -0.18659505248069763, 0.10760630667209625, 0.5277527570724487, 0.36156728863716125, -0.08061796426773071, 0.13155627250671387, 0.624417245388031, 0.16546624898910522, 0.20558488368988037, -0.4061891436576843, -0.06124405562877655, 0.09190477430820465, 0.4283311367034912, -0.3837231397628784, 0.12749022245407104, 0.1401904821395874, -0.029059501364827156, 0.1692347228527069, 0.04453202709555626, -0.0756354108452797, 0.2814267873764038, 0.2664142847061157, -0.05447809770703316, 0.06772533804178238, 0.22657521069049835, -0.1943378448486328, 0.15113914012908936, 0.3955878019332886, -0.1846630722284317, 0.03564523160457611, -0.20989353954792023, -0.3576273024082184, 0.3173826336860657, -0.0696604922413826, 0.5633521676063538, -0.16803714632987976, -0.016169585287570953, 0.13125771284103394, -0.16439150273799896, -0.15637089312076569, -0.10882394760847092, -0.2634977698326111, -0.09427809715270996, -0.09078170359134674, 0.06053890287876129, 0.17378467321395874, -0.046296387910842896, -0.32902270555496216, -0.006932221353054047, 0.04908275231719017, 0.05802275985479355, -0.1874864101409912, 0.30250778794288635, 0.21102935075759888, -0.009498197585344315, -0.008442056365311146, 0.21714413166046143, 0.12391520291566849, 0.045769765973091125, 0.2926035523414612, 0.047166936099529266, 0.18857860565185547, -0.2624530792236328, -0.11582480370998383, 0.4826081395149231, -0.211968794465065, 0.2636256814002991, -0.2107873558998108, -0.05706153064966202, 0.40254372358322144, 0.17076894640922546, 0.13185903429985046, -0.01613611727952957, 0.18077293038368225, 0.3143535256385803, 0.27505841851234436, 0.25200897455215454, -0.2294909954071045, 0.26364442706108093, 0.2475573718547821, -0.3291887044906616, -0.07217992842197418, 0.22151833772659302, 0.03273681551218033, -0.292554646730423, 0.0452844575047493, -0.0746016725897789, 0.3398675322532654, 0.14167799055576324, 0.033131711184978485, -0.33773115277290344, -0.08074907958507538, -0.17996609210968018, 0.15856459736824036, -0.09636226296424866, -0.16647213697433472, 0.07935276627540588, -0.10491488873958588, -0.14056754112243652, -0.33333203196525574, 0.04314778745174408, 0.11392801254987717, 0.43403270840644836, -0.3360697031021118, 0.18197497725486755, -0.13980023562908173, 0.10065451264381409, 0.021431129425764084, -0.31200602650642395, 0.09835562109947205, -0.20607733726501465, -0.16013161838054657, 0.2585890591144562, -0.05683259665966034, -0.12738026678562164, -0.04570852220058441, 0.4071216583251953, 0.21428628265857697, -0.40445175766944885, -0.3806307315826416, -0.3044312298297882, -0.1384854018688202, -0.14436736702919006, 0.4448208808898926, 0.16310721635818481, 0.2551797032356262, -0.056944992393255234, -0.10240782797336578, -0.26880908012390137, -0.13370606303215027, -0.10840335488319397, 0.027753934264183044, 0.13665525615215302, -0.14019463956356049, 0.3482019901275635, -0.5923081040382385, -0.06825463473796844, 0.28894948959350586, -0.3040876090526581, -0.24875500798225403, 0.4316580295562744, -0.08981671184301376, -0.3463098406791687, 0.02128138393163681, 0.10752789676189423, -0.10652607679367065, -0.2346154749393463, 0.1980971097946167, 0.022373490035533905, 0.19705983996391296, -0.29031017422676086, 0.12006450444459915, 0.047544609755277634, 0.41940367221832275, -0.24965393543243408, -0.1606360375881195, -0.2298177182674408, 0.6143161058425903, 0.005238726735115051, -0.2826811373233795, -0.03528770059347153, 0.1667378544807434, -0.06898941099643707, -0.004436183720827103, -0.5236112475395203, 0.2110103815793991, -0.3914630115032196, 0.3879406750202179, -0.25078827142715454, 0.12951844930648804, 0.10062408447265625, -0.270598441362381, 0.02795049548149109, 0.20413801074028015, -0.047044649720191956, 0.20307406783103943, 0.050888556987047195, 0.08711740374565125, 0.014601550996303558, 0.5647198557853699, -0.22764475643634796, 0.36799710988998413, -0.24218711256980896, -0.11333705484867096, 0.3385264277458191, -0.04579094797372818, 0.21862372756004333, -0.32330504059791565, -0.1835278570652008, -0.25481200218200684, 0.11488403379917145, -0.3281366527080536, 0.2052340805530548, -0.04705193638801575, -0.32210931181907654, 0.018666237592697144, 0.03800926357507706, -0.020691201090812683, -0.07537133991718292, 0.2960330545902252, -0.018960606306791306, 0.01571761816740036, -0.1564355045557022, 0.2078142613172531, -0.3696022927761078, -0.23303194344043732, -0.08291788399219513, -0.04952769726514816, 0.142999529838562, -0.26202332973480225, -0.642918050289154, -0.07819275557994843, -0.4179564416408539, 0.17455768585205078, -0.17232736945152283, 0.4994800388813019, 0.07360085844993591, -0.3419010043144226, 0.44591158628463745, 0.000009372830390930176, 0.6106890439987183, 0.26106730103492737, 0.03134201467037201, 0.18374547362327576, -0.14679774641990662, -0.7164687514305115, 0.04467855393886566, 0.20528584718704224, -0.06820976734161377, 0.2740388810634613, 0.6911301612854004, -0.0954621210694313, -0.12320287525653839, -0.17538976669311523, 0.3305184543132782, -0.19726304709911346, -0.4610155522823334, -0.16125839948654175, -0.3332917094230652, -0.15775132179260254, 0.13620206713676453, 0.16247868537902832, 0.476449191570282, 0.4036730229854584, -0.07952588051557541, -0.20109640061855316, -0.15141212940216064, 0.07692250609397888, 0.0857558399438858, 0.3958839476108551, -0.16498315334320068, 0.40916699171066284, -0.33340775966644287, 0.1923513412475586, -0.0831138864159584, 0.39896419644355774, -0.19174203276634216, -0.0647917315363884, 0.37085291743278503, -0.20738564431667328, 0.07603491842746735, 0.3880730867385864, 0.19356366991996765, 0.13679146766662598, -0.14039456844329834, 0.17520655691623688, -0.2453930824995041, -0.08063157647848129, -0.18746675550937653, -0.06697263568639755, 0.04248912259936333, -0.16777928173542023, 0.27203473448753357, 0.04392785578966141, -0.03317594528198242, 0.312339723110199, -0.12325422465801239, 0.07115717977285385, 0.7600029706954956, 0.23390644788742065, 1.2246547937393188, -0.5035203695297241, 0.014371891506016254, 0.12161548435688019, 0.16561925411224365, -0.11796028912067413, -0.17604440450668335, -0.3269800841808319, -0.4070286750793457, 0.1482393741607666, 0.1277150809764862, -0.22698509693145752, -0.12355402112007141, 0.3887040615081787, 0.08601869642734528, -0.14703398942947388, -0.24622884392738342, 0.33355242013931274, -0.3722386062145233, 0.4040260314941406, -0.03818737715482712, -0.47419312596321106, -0.5782676935195923, -0.02098444476723671, 0.015722250565886497, -0.13927391171455383, -0.01047804206609726, 0.173846036195755, -0.036192700266838074, -0.2224060744047165, -0.10365165770053864, -0.186128169298172, 0.09071359783411026, 0.18178987503051758, 0.18823868036270142, -0.2340192198753357, -0.17067140340805054, 0.41671109199523926, 0.3755471706390381, -0.07008518278598785, -0.040189262479543686, 0.18236853182315826, 0.06473555415868759, 0.12248316407203674, 0.0813119113445282, -0.25957080721855164, 0.08288600295782089, -0.11897970736026764, 0.05726715922355652, -0.06650112569332123, -0.12958359718322754, -0.5366307497024536, -0.10993985831737518, 0.1992482841014862, 0.3654552400112152, -0.19887420535087585, -0.28445863723754883, -0.29247134923934937, 0.15570715069770813, -0.06586714088916779, 0.01628272235393524, 0.3401004374027252, 0.15908564627170563, 0.2823827564716339, -0.04733133316040039, -0.23567526042461395, 0.01750117354094982, 0.36009055376052856, 0.038103166967630386, -0.295987069606781, 0.22960403561592102, 0.034734517335891724, -0.22327326238155365, -0.22737716138362885, 0.3738378882408142, 0.35166212916374207, -0.46582090854644775, 0.11343987286090851, -0.007306564599275589, -0.058903709053993225, 0.08035050332546234, 0.158049076795578, 0.20229113101959229, 0.017637936398386955, -0.12114159762859344, -0.2088405191898346, -0.528204083442688, 0.012261928990483284, 0.2407432347536087, 0.13404223322868347, 0.14193804562091827, -0.5530796051025391, -0.3032374680042267, 0.02765033207833767, -0.14650648832321167, 0.08462484925985336, -0.047065652906894684, 0.11702802777290344, 0.006662599742412567, -0.03716496378183365, 0.10069707036018372, -0.16500790417194366, 0.05213215574622154, -0.12014595419168472, 0.004052028059959412, -0.09136112034320831, 0.06716738641262054, 0.21253372728824615, -0.032633230090141296, -0.2659912109375, -0.2516622543334961, -0.4543341100215912, -0.2050016075372696, -0.3530682325363159, -0.11673201620578766, 0.07792699337005615, -0.10972665250301361, -0.354677677154541, 0.3384280502796173, 0.15328332781791687, -0.04545808956027031, 0.3576586842536926, -0.04943401739001274, 0.4739781320095062, -0.016298748552799225, 0.057773612439632416, 0.1461661458015442, -0.18948456645011902, -0.23029682040214539, 0.22830171883106232, 0.3283313810825348, -0.15122127532958984, 0.3985275328159332, -0.2034521847963333, 0.032793767750263214, 0.25811001658439636, 0.02408284693956375, 0.20607462525367737, -0.1661803126335144, -0.2903408408164978, 0.3153264820575714, 0.07676710188388824, -0.0047935545444488525, -0.25005045533180237, -0.04211321473121643, -0.11861433833837509, -0.24424715340137482, 0.35063159465789795, 0.4611362814903259, -0.20662565529346466, -0.08877895772457123, 0.031730324029922485, 0.5728583931922913, 0.014148402959108353, -0.4393894672393799, 0.6040986180305481, -0.046611055731773376, -0.01924305036664009, 0.11247266829013824, 0.20825821161270142, 0.07880096137523651, 0.4882705807685852, -0.21552203595638275, 0.11531393229961395, 0.3541575074195862, 0.5426251292228699, -0.37402108311653137, -0.3426682949066162, 0.3637276589870453, 0.27060362696647644, -0.2007652223110199, -0.11849993467330933, 0.1577221155166626, 0.2770213782787323, -0.1784946322441101, -0.12857846915721893, -0.23225975036621094, 0.23740823566913605, -0.25799861550331116, 0.08929933607578278, -0.3661230206489563, -0.026511669158935547, -0.018316887319087982, 0.1205127164721489, -0.26065459847450256, 0.010732622817158699, -0.2762073278427124, 0.3323472738265991, 0.07596299052238464, 0.04788776487112045, 0.028743203729391098, 0.07793127000331879, -0.01616751402616501, -0.40891754627227783, -0.003022948279976845, -0.348603218793869, -0.052024904638528824, 0.2731182277202606, -0.26646146178245544, 0.390658438205719, 0.5201632976531982, -0.0037658438086509705, 0.054363030940294266, -0.044045306742191315, -0.03328220918774605, 0.006372854113578796, 0.2009410709142685, -0.10435278713703156, 0.23175543546676636, 0.15208187699317932, -0.10984717309474945, -0.06810592114925385, -0.41598206758499146, -0.1741551160812378, 0.41642144322395325, 0.1408071219921112, 0.3191128373146057, 0.08411561697721481, -0.3321055471897125, -0.2562817931175232, 0.08224515616893768, -0.0990467220544815, -0.1693681925535202, 0.26534849405288696, 0.012196075171232224, 0.16192816197872162, -0.04051351919770241, -0.030177095904946327, -0.3313155174255371, 0.5836267471313477, 0.34145277738571167, -0.3722856640815735, -0.2083296924829483, -0.31581270694732666, -0.6785956621170044, 0.08260037750005722, 0.006199329160153866, -0.029148507863283157, 0.4067520797252655, 0.24536937475204468, 0.479854017496109, 0.07384137809276581, -0.07451498508453369, 0.005892124027013779, -0.14937427639961243, 0.39935508370399475, -0.09187251329421997, 0.0801306813955307, 0.08654376864433289, 0.21330294013023376, -0.2368370145559311, -0.4747457206249237, 0.43239372968673706, 0.20449213683605194, -0.09295652061700821, -0.08721686899662018, 0.04338623583316803, -0.2884806990623474, 0.38380715250968933, 0.3971136510372162, 0.0027238111943006516, 0.1114627867937088, 0.32688820362091064, 0.06391303241252899, 0.24003469944000244, -0.06436300277709961, 0.09694012999534607, 0.2231925129890442, -0.07422288507223129, -0.07741379737854004, -0.04974507912993431, 0.34464433789253235, -0.23184648156166077, 0.014853831380605698, -0.23008812963962555, -0.20268355309963226, -0.13975045084953308, 0.0247967466711998, -0.2142135053873062, 0.26000767946243286, 0.2427758276462555, -0.0022025173529982567, 0.17241162061691284, 0.26941245794296265, -0.24611200392246246, -0.0634344071149826, 0.2341073751449585, -0.0005451850593090057, -0.17809489369392395, 0.0749683827161789, 0.19974613189697266, 0.20118239521980286, 0.2328179031610489, -0.38578927516937256, -0.1835775375366211, 0.23232299089431763, -0.1316276639699936, -0.08513888716697693, 0.3760201930999756, -0.20665480196475983, 0.21365873515605927, -0.16304808855056763, 0.2711822986602783, -0.0848429724574089, -0.04765069857239723, -0.4124531149864197, -0.30802372097969055 ]
https://github.com/huggingface/datasets/issues/2099
yup I casted it to `np.uint8` outside the function where it was defined. It was originally using python integers.
load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :)
19
load_from_disk takes a long time to load local dataset I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :) yup I casted it to `np.uint8` outside the function where it was defined. It was originally using python integers.
[ -0.299747109413147, -0.2523110508918762, -0.04704432934522629, 0.28528422117233276, 0.3280438780784607, 0.021099470555782318, 0.42626145482063293, 0.2177659273147583, 0.7503629326820374, -0.039466701447963715, 0.15559247136116028, 0.5000485181808472, 0.08297235518693924, -0.08634117245674133, 0.14030808210372925, 0.1166694313287735, 0.3541414141654968, 0.21109850704669952, 0.45383328199386597, -0.1608218103647232, -0.2806878089904785, 0.004252059385180473, -0.12419874221086502, 0.020843517035245895, -0.14993122220039368, -0.034160513430833817, -0.02995286136865616, 0.04785982519388199, -0.12425737828016281, -0.31274718046188354, 0.0386536568403244, -0.07079771161079407, 0.2723853588104248, 0.22555646300315857, -0.00012783773127011955, -0.24782738089561462, 0.013242683373391628, 0.1549174189567566, -0.2342652976512909, 0.29838109016418457, 0.37650665640830994, -0.44815775752067566, 0.24350085854530334, -0.344562292098999, 0.1320652961730957, -0.3008109927177429, -0.3529148995876312, -0.20314031839370728, -0.060513466596603394, -0.143076553940773, 0.02955121174454689, 0.4554939866065979, -0.302560031414032, 0.08236528933048248, -0.1058335155248642, 0.31598877906799316, -0.1544768512248993, 0.0775507241487503, 0.5621143579483032, -0.04886941984295845, -0.05324147269129753, -0.05394044890999794, -0.22005045413970947, -0.08033894002437592, 0.3734755516052246, 0.06147710233926773, 0.25439727306365967, 0.14958906173706055, 0.08073759078979492, 0.10822348296642303, 0.5584251880645752, -0.01733994483947754, 0.02341465651988983, -0.24721693992614746, -0.0852079764008522, -0.3046394884586334, 0.3880220055580139, -0.0014710910618305206, -0.25715306401252747, 0.17644503712654114, -0.047582436352968216, -0.06876114755868912, -0.014576248824596405, 0.24241016805171967, -0.18652275204658508, -0.052772123366594315, 0.02048608288168907, 0.11471575498580933, 0.36062127351760864, -0.10244709253311157, 0.0572250634431839, 0.054340463131666183, 0.11026787757873535, 0.3917822241783142, -0.416010320186615, -0.19624559581279755, 0.007882198318839073, 0.07621058076620102, -0.1992875188589096, 0.1077006608247757, 0.217166468501091, 0.2246485948562622, -0.1134413629770279, -0.01684452034533024, 0.25221818685531616, 0.3522307872772217, -0.11968393623828888, 0.1481115221977234, 0.07866328954696655, -0.27171948552131653, -0.06364692002534866, -0.03467142581939697, -0.2698744535446167, -0.044817496091127396, 0.5096767544746399, -0.4679945111274719, -0.24199865758419037, -0.1596255600452423, -0.08283481746912003, 0.23337696492671967, 0.4327569603919983, -0.05280662328004837, 0.2506530284881592, 0.22867505252361298, 0.03461702913045883, 0.5681986808776855, -0.03609827160835266, 0.022178567945957184, -0.19655436277389526, -0.14127779006958008, -0.04869498312473297, -0.2828441262245178, -0.17654789984226227, 0.14951196312904358, 0.04592599719762802, 0.28225430846214294, -0.11788538098335266, 0.18880410492420197, -0.2141369879245758, 0.023412324488162994, -0.11388581991195679, -0.14014756679534912, 0.29443418979644775, 0.20835870504379272, -0.11482608318328857, 0.22615891695022583, 0.17710942029953003, -0.23305530846118927, -0.4272061884403229, 0.4167666435241699, -0.19682934880256653, -0.4156872630119324, -0.48458048701286316, 0.0009357016533613205, -0.250070720911026, -0.08828315138816833, -0.41910967230796814, -0.17019177973270416, 0.12206360697746277, 0.0307379812002182, -0.011761914938688278, -0.16128644347190857, -0.11532089859247208, -0.09937655925750732, -0.04774842783808708, 0.14610162377357483, -0.42318016290664673, 0.17303529381752014, -0.25563323497772217, 0.27645957469940186, 0.3224261701107025, 0.6396909952163696, -0.2801320552825928, 0.3539845049381256, -0.24942713975906372, 0.23179209232330322, 0.5141882300376892, -0.09798292815685272, -0.4064534902572632, 0.7154765725135803, -0.0799032673239708, -0.16850218176841736, 0.08013127744197845, 0.5803715586662292, 0.31936073303222656, -0.07076773792505264, 0.14847798645496368, 0.638568639755249, 0.1840556412935257, 0.23282760381698608, -0.3932381272315979, -0.02909734472632408, 0.07825040817260742, 0.4464019536972046, -0.4105347692966461, 0.1632717102766037, 0.14069080352783203, -0.000751148909330368, 0.1959131956100464, 0.05193142220377922, -0.08485044538974762, 0.26534411311149597, 0.24142999947071075, -0.01648026704788208, 0.037739235907793045, 0.23709940910339355, -0.16616040468215942, 0.1361670345067978, 0.46771425008773804, -0.2021826207637787, 0.032637715339660645, -0.1964568942785263, -0.3855072259902954, 0.3265438675880432, -0.09738118946552277, 0.5834559798240662, -0.20679041743278503, -0.022345833480358124, 0.09193883836269379, -0.1623273491859436, -0.16923975944519043, -0.07819292694330215, -0.2837655544281006, -0.10431594401597977, -0.06295524537563324, 0.05521818995475769, 0.19841206073760986, -0.03769797459244728, -0.3756643831729889, -0.02245861291885376, 0.023802297189831734, 0.057233843952417374, -0.20016121864318848, 0.2730816900730133, 0.18360663950443268, -0.031201772391796112, -0.0294400155544281, 0.2263236939907074, 0.10675971955060959, 0.0680079460144043, 0.34222298860549927, 0.01367754116654396, 0.21213479340076447, -0.2573303282260895, -0.07577889412641525, 0.4699646830558777, -0.19533047080039978, 0.2148168534040451, -0.2350045144557953, -0.09433701634407043, 0.3795795738697052, 0.16083092987537384, 0.14990147948265076, -0.021848998963832855, 0.19160282611846924, 0.29301923513412476, 0.23110920190811157, 0.3050786852836609, -0.25294870138168335, 0.26798194646835327, 0.295579731464386, -0.3433099389076233, -0.05993568152189255, 0.23463211953639984, 0.021672576665878296, -0.29416489601135254, -0.024106303229928017, -0.08608633279800415, 0.36561319231987, 0.10096389800310135, 0.023207789286971092, -0.32527393102645874, -0.05099194869399071, -0.1901422142982483, 0.15656778216362, -0.08559335023164749, -0.1552981585264206, 0.12011466175317764, -0.07849150151014328, -0.1449500173330307, -0.3378223776817322, 0.05295780301094055, 0.11459925025701523, 0.4082336127758026, -0.35934939980506897, 0.20512785017490387, -0.11272060871124268, 0.1153935119509697, 0.0001288279891014099, -0.3107721507549286, 0.10942940413951874, -0.22159910202026367, -0.20334556698799133, 0.2541101574897766, -0.05174882709980011, -0.16136333346366882, -0.06214349716901779, 0.3496828079223633, 0.1964779943227768, -0.4854283034801483, -0.3430972695350647, -0.2745361626148224, -0.11072231084108353, -0.16612781584262848, 0.40144237875938416, 0.12671121954917908, 0.2230725884437561, -0.059871606528759, -0.1314963698387146, -0.21717315912246704, -0.14851778745651245, -0.13815025985240936, 0.030466239899396896, 0.13910730183124542, -0.1723216027021408, 0.33418941497802734, -0.5773807168006897, -0.05464784428477287, 0.27611055970191956, -0.3274296522140503, -0.22200757265090942, 0.42105549573898315, -0.10175468772649765, -0.3189687728881836, 0.020626097917556763, 0.11821024864912033, -0.11741242557764053, -0.2252645641565323, 0.19395402073860168, 0.06011141836643219, 0.17464900016784668, -0.27029287815093994, 0.1287636160850525, 0.02017129957675934, 0.4685715436935425, -0.25374263525009155, -0.17099325358867645, -0.2462952882051468, 0.6392537355422974, 0.01416555792093277, -0.2546551525592804, -0.021695129573345184, 0.15612012147903442, -0.06782817095518112, -0.01921522431075573, -0.5329579710960388, 0.21371743083000183, -0.4107217788696289, 0.41742855310440063, -0.2403506487607956, 0.11014742404222488, 0.11097456514835358, -0.2708203196525574, 0.0401134192943573, 0.21738043427467346, -0.04778313636779785, 0.17580558359622955, 0.08638724684715271, 0.04552090913057327, 0.022664178162813187, 0.5955447554588318, -0.24430865049362183, 0.33299463987350464, -0.27108559012413025, -0.13617582619190216, 0.3635103106498718, -0.0390581414103508, 0.1948395073413849, -0.34545886516571045, -0.19800381362438202, -0.2656889259815216, 0.12326345592737198, -0.31891101598739624, 0.195945143699646, -0.012941384688019753, -0.33606916666030884, 0.016246303915977478, -0.007708512246608734, -0.05001850426197052, -0.05271951109170914, 0.29950371384620667, 0.009621844626963139, 0.04432586953043938, -0.14022886753082275, 0.20285171270370483, -0.3820977807044983, -0.24293333292007446, -0.08646731078624725, 0.0005126073956489563, 0.1392802596092224, -0.2710651457309723, -0.5346092581748962, -0.08098704367876053, -0.4078415632247925, 0.16139894723892212, -0.17256402969360352, 0.4567168354988098, 0.0902642011642456, -0.33834967017173767, 0.4657454192638397, -0.005345936864614487, 0.5948350429534912, 0.3084182143211365, 0.08276369422674179, 0.19233338534832, -0.20196281373500824, -0.6922327876091003, 0.05362566560506821, 0.23208284378051758, -0.05324414744973183, 0.3043690323829651, 0.6459019184112549, -0.025587737560272217, -0.13513459265232086, -0.09985333681106567, 0.3506247103214264, -0.2139657437801361, -0.4529128074645996, -0.18064908683300018, -0.3729957044124603, -0.13957110047340393, 0.1319064348936081, 0.1839439868927002, 0.4820202589035034, 0.41244953870773315, -0.03133242204785347, -0.20820535719394684, -0.13885188102722168, 0.06311206519603729, 0.07521943747997284, 0.3415225148200989, -0.09433964639902115, 0.42655879259109497, -0.32784444093704224, 0.166890487074852, -0.16392412781715393, 0.4506515860557556, -0.12491051852703094, -0.05514535680413246, 0.3552737832069397, -0.17892184853553772, 0.037382885813713074, 0.39456528425216675, 0.2130490094423294, 0.108798086643219, -0.12930932641029358, 0.17535367608070374, -0.21597278118133545, -0.07544787228107452, -0.1639149934053421, -0.0365847609937191, 0.039823517203330994, -0.20665639638900757, 0.2804306745529175, 0.06470319628715515, -0.03970654308795929, 0.2836986184120178, -0.10288169980049133, 0.09373974055051804, 0.6956078410148621, 0.19712941348552704, 1.2087383270263672, -0.4919810891151428, 0.033667754381895065, 0.1298188716173172, 0.18626685440540314, -0.12520581483840942, -0.13926683366298676, -0.327451229095459, -0.40561196208000183, 0.11823990941047668, 0.13328644633293152, -0.22277817130088806, -0.11083988845348358, 0.3779366910457611, 0.14213921129703522, -0.1457565426826477, -0.28459829092025757, 0.312112420797348, -0.34844842553138733, 0.3731776773929596, 0.00014189071953296661, -0.46626016497612, -0.5828537344932556, -0.03655439242720604, 0.01762980967760086, -0.10609376430511475, -0.01592022180557251, 0.18359357118606567, -0.015911057591438293, -0.17612111568450928, -0.06902250647544861, -0.1480957269668579, 0.18522760272026062, 0.17996948957443237, 0.17775753140449524, -0.22630959749221802, -0.12023758143186569, 0.44786494970321655, 0.3832813799381256, -0.06405690312385559, 0.007216388359665871, 0.19814340770244598, 0.07168653607368469, 0.14021801948547363, 0.11924418807029724, -0.24170714616775513, 0.09063439071178436, -0.10889598727226257, 0.008432149887084961, -0.07127009332180023, -0.1276835799217224, -0.5348019599914551, -0.09594996273517609, 0.22054992616176605, 0.343675434589386, -0.21527396142482758, -0.2737519443035126, -0.2669527530670166, 0.19507208466529846, -0.06961730122566223, 0.0016729277558624744, 0.34516891837120056, 0.17467007040977478, 0.24702078104019165, -0.0803082287311554, -0.26701268553733826, 0.0034178607165813446, 0.35977479815483093, 0.052338842302560806, -0.24418359994888306, 0.224629744887352, 0.046306073665618896, -0.2307424545288086, -0.20692160725593567, 0.3407575786113739, 0.265168696641922, -0.4949907064437866, 0.13043110072612762, 0.035301972180604935, -0.04188042879104614, 0.067303366959095, 0.13296514749526978, 0.15851719677448273, 0.015713578090071678, -0.13758791983127594, -0.20126594603061676, -0.527534008026123, -0.02974408119916916, 0.2316037118434906, 0.09611179679632187, 0.15362431108951569, -0.5203173756599426, -0.2615037262439728, 0.012294018641114235, -0.12918341159820557, 0.06790626049041748, -0.02117219567298889, 0.13007140159606934, 0.02199232578277588, -0.054930780082941055, 0.12728646397590637, -0.17012619972229004, 0.04467508941888809, -0.1215181052684784, 0.035341184586286545, -0.07324644923210144, 0.05959085375070572, 0.226246178150177, -0.018358565866947174, -0.28511229157447815, -0.2297663688659668, -0.47104722261428833, -0.20373883843421936, -0.3548016846179962, -0.08404986560344696, 0.10967615246772766, -0.08294476568698883, -0.36744225025177, 0.3324752449989319, 0.1370846927165985, 0.00975942611694336, 0.40622401237487793, -0.06025074049830437, 0.4979401230812073, -0.05861295014619827, 0.06563687324523926, 0.17789390683174133, -0.1666073054075241, -0.27065926790237427, 0.21734510362148285, 0.34300822019577026, -0.11296437680721283, 0.3921232223510742, -0.24535860121250153, 0.05556046962738037, 0.23457971215248108, 0.007281176745891571, 0.1970246285200119, -0.1595991551876068, -0.28894591331481934, 0.2770785987377167, 0.04972345381975174, -0.009357117116451263, -0.27953872084617615, -0.043236762285232544, -0.10914339125156403, -0.2531607449054718, 0.3529641032218933, 0.42701250314712524, -0.20799395442008972, -0.08079078048467636, 0.04774777963757515, 0.5593769550323486, 0.01423799991607666, -0.46188583970069885, 0.56259685754776, -0.028303518891334534, -0.019532460719347, 0.15429328382015228, 0.20694798231124878, 0.061477988958358765, 0.5321906805038452, -0.203332781791687, 0.05983630567789078, 0.3535827100276947, 0.5532019138336182, -0.4282672107219696, -0.334547221660614, 0.35148563981056213, 0.25628891587257385, -0.26428520679473877, -0.12043536454439163, 0.17630061507225037, 0.19150523841381073, -0.20004519820213318, -0.09628947824239731, -0.24199962615966797, 0.2856772541999817, -0.2213687002658844, 0.06160271167755127, -0.37614184617996216, -0.003955282270908356, -0.029770158231258392, 0.16927599906921387, -0.2597091794013977, 0.017536194995045662, -0.24557527899742126, 0.3440791964530945, 0.06412176042795181, 0.04441351443529129, 0.05839546397328377, 0.06098944693803787, 0.0008986704051494598, -0.4227384626865387, -0.02325265482068062, -0.34696659445762634, -0.03252671658992767, 0.294928640127182, -0.29106462001800537, 0.37086495757102966, 0.49205416440963745, 0.008085787296295166, 0.053411711007356644, -0.05987811088562012, -0.046280387789011, 0.019048728048801422, 0.21012748777866364, -0.10836648941040039, 0.3407149612903595, 0.14415769279003143, -0.1136075034737587, -0.06548658013343811, -0.4170873463153839, -0.16914357244968414, 0.4294930398464203, 0.08753795176744461, 0.37180373072624207, 0.08222217857837677, -0.3147859573364258, -0.289388507604599, 0.08420555293560028, -0.09285786002874374, -0.18364526331424713, 0.23887181282043457, 0.018664009869098663, 0.1382625550031662, -0.05493945628404617, -0.044366590678691864, -0.33144962787628174, 0.5940253138542175, 0.3194926381111145, -0.3627038300037384, -0.18002493679523468, -0.3111109733581543, -0.6691558361053467, 0.07976074516773224, 0.05652865767478943, -0.0767388716340065, 0.38858675956726074, 0.22820453345775604, 0.44218909740448, 0.05083884671330452, -0.10750049352645874, 0.01139620691537857, -0.11682417243719101, 0.37020042538642883, -0.03827108070254326, 0.03799049183726311, 0.04634476080536842, 0.2053326964378357, -0.243644118309021, -0.4843662977218628, 0.41086772084236145, 0.16884943842887878, -0.10001085698604584, -0.1184418797492981, 0.003315150737762451, -0.2772933840751648, 0.41297486424446106, 0.3902546763420105, 0.0072053298354148865, 0.12701044976711273, 0.329939603805542, 0.059231266379356384, 0.26134514808654785, -0.09722201526165009, 0.0697033554315567, 0.24343396723270416, -0.07782314717769623, -0.0453934371471405, -0.0346205048263073, 0.3828944265842438, -0.19040772318840027, 0.010125212371349335, -0.26442062854766846, -0.16413761675357819, -0.12261074036359787, -0.012483704835176468, -0.22969406843185425, 0.27830079197883606, 0.23226453363895416, 0.021879862993955612, 0.17754721641540527, 0.2454536259174347, -0.23127302527427673, -0.055424995720386505, 0.21426181495189667, -0.018071923404932022, -0.15502417087554932, 0.06023290008306503, 0.18807059526443481, 0.19684556126594543, 0.18797633051872253, -0.3372839689254761, -0.15184538066387177, 0.231603741645813, -0.12020392715930939, -0.11695010215044022, 0.41540053486824036, -0.24521124362945557, 0.19906851649284363, -0.14447006583213806, 0.26338624954223633, -0.1030331403017044, -0.06553255021572113, -0.40623384714126587, -0.27565091848373413 ]
https://github.com/huggingface/datasets/issues/2099
Strangely, even when I manually created `np.arrays` of specific `dtypes`, the types in the final `dataset_info.json` that gets written are still `int64`. Update: I tried creating lists of `int8`s and got the same result.
load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :)
34
load_from_disk takes a long time to load local dataset I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :) Strangely, even when I manually created `np.arrays` of specific `dtypes`, the types in the final `dataset_info.json` that gets written are still `int64`. Update: I tried creating lists of `int8`s and got the same result.
[ -0.21739882230758667, -0.18767264485359192, -0.05202414467930794, 0.33667078614234924, 0.3299888074398041, 0.03490076959133148, 0.41539642214775085, 0.2823086977005005, 0.6786065101623535, -0.10994812846183777, 0.13262417912483215, 0.5752290487289429, 0.19425348937511444, -0.047149524092674255, 0.1443946212530136, 0.11741161346435547, 0.35872748494148254, 0.2722388505935669, 0.37639546394348145, -0.17644217610359192, -0.306088387966156, 0.04754563421010971, -0.037080489099025726, -0.0319933146238327, -0.08330125361680984, -0.06509480625391006, 0.056743502616882324, 0.011634993366897106, -0.19991490244865417, -0.3068854510784149, 0.10656196624040604, -0.09480583667755127, 0.2616827189922333, 0.2380925565958023, -0.00012925533519592136, -0.1857510507106781, 0.1267106831073761, 0.09819390624761581, -0.24223551154136658, 0.3243522644042969, 0.41630175709724426, -0.4820280075073242, 0.2607608437538147, -0.3481029272079468, 0.10999999940395355, -0.495537132024765, -0.2719956040382385, -0.32159423828125, -0.031641244888305664, -0.13417112827301025, 0.024690603837370872, 0.4677754044532776, -0.2241477072238922, 0.13270851969718933, -0.20115917921066284, 0.43922480940818787, -0.2193623185157776, -0.007172450423240662, 0.4425099492073059, 0.058292850852012634, -0.048581209033727646, -0.08653691411018372, -0.14066898822784424, -0.01583091728389263, 0.4063597619533539, 0.061501674354076385, 0.20554471015930176, 0.12287956476211548, 0.06945735216140747, 0.1728193312883377, 0.6207137107849121, 0.03346158564090729, -0.0707625150680542, -0.24855616688728333, -0.14892810583114624, -0.24607491493225098, 0.4324033558368683, 0.03625419735908508, -0.23574084043502808, 0.17170634865760803, -0.17627547681331635, -0.0015279054641723633, -0.07333782315254211, 0.25048360228538513, -0.13082705438137054, -0.16166815161705017, -0.011007241904735565, 0.15915240347385406, 0.3527541160583496, -0.19640526175498962, 0.07741698622703552, -0.015562114305794239, 0.009121245704591274, 0.30352675914764404, -0.3383491635322571, -0.2830922305583954, 0.051506660878658295, -0.007968954741954803, -0.07808642834424973, 0.0634726881980896, 0.16223952174186707, 0.24952881038188934, -0.23315384984016418, -0.047210693359375, 0.28912049531936646, 0.36087876558303833, -0.03287417069077492, 0.006886284798383713, 0.09100853651762009, -0.3389003276824951, 0.06944763660430908, 0.020034292712807655, -0.1676359921693802, 0.08301955461502075, 0.3784145414829254, -0.4967731833457947, -0.2162388563156128, -0.1500125676393509, -0.020842857658863068, 0.24002446234226227, 0.36365222930908203, 0.016009926795959473, 0.17315423488616943, 0.18143828213214874, 0.07714736461639404, 0.6115543246269226, -0.09769788384437561, 0.0728251039981842, -0.16298405826091766, -0.1739875227212906, -0.019771039485931396, -0.3106483221054077, -0.11812664568424225, 0.08500882983207703, 0.14966748654842377, 0.3727174997329712, -0.045969270169734955, 0.16710400581359863, -0.2715292274951935, 0.015793919563293457, -0.09696699678897858, -0.11311312019824982, 0.31255626678466797, 0.22989311814308167, -0.0987829715013504, 0.2557433247566223, 0.1460677981376648, -0.28912895917892456, -0.44971245527267456, 0.3425271213054657, -0.13587377965450287, -0.29431962966918945, -0.4542922377586365, -0.02502436563372612, -0.2671666145324707, -0.01969369500875473, -0.43914419412612915, -0.10766680538654327, 0.13815496861934662, 0.025516502559185028, -0.012242943048477173, -0.20783650875091553, -0.08296952396631241, -0.11182147264480591, -0.0885615199804306, 0.0849553570151329, -0.45105570554733276, 0.17496246099472046, -0.2742944359779358, 0.2847524881362915, 0.28838586807250977, 0.670242190361023, -0.20672756433486938, 0.22992926836013794, -0.18603762984275818, 0.3189181685447693, 0.4110121726989746, -0.0977739542722702, -0.31156009435653687, 0.7315462827682495, -0.011710353195667267, -0.1459040641784668, 0.1338101625442505, 0.5266265273094177, 0.24968889355659485, -0.04259451851248741, 0.13652373850345612, 0.6743009686470032, 0.1748802214860916, 0.2215825915336609, -0.2907083034515381, -0.08665814995765686, 0.048171017318964005, 0.41379278898239136, -0.48902082443237305, 0.1240890845656395, 0.12507691979408264, -0.05447658523917198, 0.14717361330986023, 0.04561508446931839, -0.05029003322124481, 0.23463112115859985, 0.25305840373039246, -0.09900990128517151, 0.05647747591137886, 0.30528998374938965, -0.30082929134368896, 0.10533846169710159, 0.39497512578964233, -0.18056757748126984, 0.03432657569646835, -0.204290509223938, -0.27847373485565186, 0.30425071716308594, -0.028972119092941284, 0.5546165704727173, -0.1815522462129593, 0.08272872865200043, 0.08169864118099213, -0.12093306332826614, -0.15712931752204895, -0.13328804075717926, -0.24260284006595612, -0.1102130189538002, -0.18193212151527405, 0.008192412555217743, 0.23392748832702637, -0.05042940378189087, -0.30652517080307007, -0.019636079668998718, 0.026907913386821747, -0.0384555384516716, -0.16304579377174377, 0.2365635186433792, 0.20025654137134552, 0.0035286545753479004, -0.030895844101905823, 0.18774369359016418, 0.1519828885793686, 0.08071304857730865, 0.31814706325531006, 0.052873220294713974, 0.17471511662006378, -0.2780156433582306, -0.17613333463668823, 0.5037505626678467, -0.1891394555568695, 0.22163204848766327, -0.27324825525283813, -0.0784677267074585, 0.4578700065612793, 0.18973366916179657, 0.08039155602455139, -0.0869934931397438, 0.11228688806295395, 0.3219035565853119, 0.13432082533836365, 0.29105377197265625, -0.23326930403709412, 0.34274211525917053, 0.4129639267921448, -0.3111323118209839, -0.07542607188224792, 0.207628071308136, 0.016248388215899467, -0.3657490611076355, -0.0054654888808727264, -0.06875056028366089, 0.36284151673316956, 0.055883973836898804, 0.050782665610313416, -0.3696979284286499, -0.05174380913376808, -0.18469446897506714, 0.12003530561923981, -0.09367678314447403, -0.03465118259191513, 0.09922611713409424, -0.042806174606084824, -0.2816374599933624, -0.3656867742538452, 0.06514354050159454, 0.11084090918302536, 0.3888586163520813, -0.31009241938591003, 0.21804550290107727, -0.1968773901462555, 0.06926164031028748, 0.016818411648273468, -0.28617411851882935, 0.11094991862773895, -0.17547520995140076, -0.20480871200561523, 0.3162032961845398, -0.07433796674013138, -0.15240739285945892, 0.06496769189834595, 0.423001766204834, 0.22769078612327576, -0.40151315927505493, -0.38331419229507446, -0.23760291934013367, -0.15682315826416016, -0.1752423495054245, 0.38041359186172485, 0.10470972210168839, 0.17036309838294983, -0.1451798975467682, -0.15508249402046204, -0.22535249590873718, -0.18281786143779755, -0.10960827767848969, 0.045892808586359024, 0.2592881917953491, -0.1274663507938385, 0.3801017105579376, -0.5672893524169922, 0.0562559999525547, 0.26418057084083557, -0.2876507639884949, -0.2858361005783081, 0.3660445213317871, -0.14748111367225647, -0.3140183687210083, -0.03371661528944969, 0.03936842828989029, -0.09024224430322647, -0.21559645235538483, 0.3713665008544922, 0.07768711447715759, 0.1806076169013977, -0.2034236341714859, 0.1504126936197281, 0.007472481578588486, 0.43695542216300964, -0.22815994918346405, -0.20467281341552734, -0.2325005978345871, 0.6616536974906921, -0.0610557422041893, -0.24852237105369568, -0.055790580809116364, 0.17840608954429626, -0.10163616389036179, -0.05872702598571777, -0.519295871257782, 0.1694784313440323, -0.41420289874076843, 0.35849714279174805, -0.19351637363433838, 0.03955242782831192, 0.11611862480640411, -0.2936943769454956, 0.04071413353085518, 0.12321619689464569, -0.15521815419197083, 0.22627678513526917, 0.16840966045856476, 0.10852858424186707, 0.09710980206727982, 0.6675196886062622, -0.2841600179672241, 0.23352771997451782, -0.12840409576892853, -0.24365690350532532, 0.3138744533061981, 0.00455860048532486, 0.250069797039032, -0.4183475375175476, -0.09972631931304932, -0.2140560746192932, 0.13228271901607513, -0.27864012122154236, 0.20927289128303528, -0.023074084892868996, -0.3529033362865448, 0.05651858448982239, 0.05544757843017578, -0.06459128111600876, -0.053827423602342606, 0.28057336807250977, 0.07259984314441681, -0.04823940619826317, -0.09439696371555328, 0.3200041353702545, -0.35327285528182983, -0.21175801753997803, -0.1610506922006607, 0.0650608167052269, 0.17115598917007446, -0.1487729698419571, -0.6796733140945435, -0.16742731630802155, -0.33323365449905396, 0.13927149772644043, -0.25691908597946167, 0.5929819941520691, 0.02250058203935623, -0.23313754796981812, 0.3818162679672241, -0.02671915292739868, 0.5649269223213196, 0.23073650896549225, 0.12458759546279907, 0.16132768988609314, -0.13294026255607605, -0.6834197640419006, 0.07888400554656982, 0.2797009348869324, -0.0070197246968746185, 0.3291248381137848, 0.7125703692436218, -0.18116971850395203, -0.09999591112136841, -0.14159931242465973, 0.3365511894226074, -0.18524329364299774, -0.39921635389328003, -0.14935754239559174, -0.43883591890335083, -0.0707884281873703, 0.07911920547485352, 0.21000118553638458, 0.4462956190109253, 0.34054702520370483, -0.04865983501076698, -0.2184111475944519, -0.11732444167137146, 0.05995216220617294, 0.098624587059021, 0.3926588296890259, -0.08409485220909119, 0.3604739308357239, -0.2897670865058899, 0.2088487297296524, -0.0379226878285408, 0.3952324688434601, -0.014189080335199833, -0.013174839317798615, 0.35659632086753845, -0.18685375154018402, -0.04031749069690704, 0.3948354423046112, 0.2167873978614807, -0.013731725513935089, 0.005016189068555832, 0.13838902115821838, -0.20695127546787262, -0.07618288695812225, -0.13309326767921448, -0.06194806471467018, -0.00039948150515556335, -0.24134010076522827, 0.3421112895011902, 0.045890845358371735, 0.03669840097427368, 0.21693329513072968, -0.1064547747373581, 0.0730893611907959, 0.7005401253700256, 0.22822058200836182, 1.0924136638641357, -0.43713074922561646, 0.041068919003009796, 0.1504458487033844, 0.1532888263463974, 0.045146919786930084, -0.21188440918922424, -0.2649599611759186, -0.41337674856185913, 0.23593930900096893, 0.12915611267089844, -0.24883893132209778, -0.12277306616306305, 0.3823549449443817, 0.1817043423652649, -0.17158791422843933, -0.18666794896125793, 0.3809770941734314, -0.3225501477718353, 0.4586809575557709, -0.0498511977493763, -0.5222052931785583, -0.5489808320999146, -0.052828654646873474, -0.049243323504924774, -0.08315911144018173, 0.08038190752267838, 0.041178252547979355, -0.05312121659517288, -0.15679609775543213, -0.062462203204631805, -0.20560719072818756, 0.3019213378429413, 0.19750021398067474, 0.2539481222629547, -0.2606302499771118, -0.1255115419626236, 0.42298877239227295, 0.4324878454208374, 0.012652134522795677, -0.12400972843170166, 0.17535486817359924, 0.04935119301080704, 0.11191588640213013, 0.12975358963012695, -0.2778565287590027, 0.05156546086072922, -0.08931704610586166, 0.03827884793281555, -0.19612154364585876, -0.16360342502593994, -0.4552232623100281, -0.1367635726928711, 0.11209899187088013, 0.1615009605884552, -0.20727993547916412, -0.22477282583713531, -0.3366515636444092, 0.11603827774524689, -0.04055728018283844, -0.005504493601620197, 0.31547680497169495, 0.1900610327720642, 0.29589730501174927, 0.0065443916246294975, -0.2580961585044861, -0.01270050834864378, 0.32660233974456787, 0.11724650859832764, -0.24927017092704773, 0.21667924523353577, 0.09228676557540894, -0.24081803858280182, -0.23052765429019928, 0.3632842004299164, 0.3062570095062256, -0.39233556389808655, 0.17964652180671692, 0.0061999037861824036, -0.07762979716062546, 0.021031755954027176, 0.0644809752702713, 0.10662219673395157, 0.07950060814619064, -0.11342217028141022, -0.2339743673801422, -0.5309725999832153, 0.04888591170310974, 0.15873970091342926, 0.1442117691040039, 0.1871335208415985, -0.4553251564502716, -0.2841465175151825, -0.030120743438601494, -0.10837718844413757, 0.03176917880773544, -0.0022477656602859497, 0.10258470475673676, -0.04460977017879486, -0.04861754551529884, 0.10317078232765198, -0.1538616418838501, 0.014789659529924393, -0.11884687840938568, -0.05063783377408981, -0.03173520043492317, 0.057585880160331726, 0.23092658817768097, 0.024380799382925034, -0.3043706715106964, -0.20058785378932953, -0.5046970844268799, -0.2750759720802307, -0.3541998863220215, -0.1433112770318985, 0.02482614666223526, -0.05641596391797066, -0.36519742012023926, 0.30959194898605347, 0.17716164886951447, 0.047855377197265625, 0.38211578130722046, -0.03513822704553604, 0.5291318297386169, -0.08385102450847626, 0.09064546227455139, 0.14198607206344604, -0.14846742153167725, -0.3130098581314087, 0.20569661259651184, 0.2749142050743103, -0.07418210804462433, 0.36401405930519104, -0.2556057572364807, 0.04516974836587906, 0.19686180353164673, 0.017088323831558228, 0.28046444058418274, -0.17076356709003448, -0.2876012623310089, 0.20105186104774475, 0.015196332708001137, 0.08783659338951111, -0.21893183887004852, -0.009043140336871147, -0.07228346168994904, -0.27557963132858276, 0.3545842468738556, 0.4353601932525635, -0.22656817734241486, -0.10171779990196228, 0.007661506533622742, 0.6051025390625, 0.05677611753344536, -0.3878493905067444, 0.55919349193573, -0.12213058024644852, -0.022498339414596558, 0.19008773565292358, 0.10206738114356995, 0.08795778453350067, 0.5890635848045349, -0.1564525067806244, 0.04548674821853638, 0.39454108476638794, 0.5005427002906799, -0.4387730062007904, -0.2563965916633606, 0.29666435718536377, 0.30511975288391113, -0.15790881216526031, -0.03038908913731575, 0.27482426166534424, 0.24237918853759766, -0.262098103761673, -0.09291002154350281, -0.38736963272094727, 0.22686049342155457, -0.28152817487716675, -0.011610474437475204, -0.4437784254550934, -0.07701908051967621, 0.07869891822338104, 0.20585313439369202, -0.3155549466609955, 0.04443501681089401, -0.2954043745994568, 0.30631107091903687, -0.004682842642068863, -0.014125699177384377, 0.14626647531986237, -0.055975593626499176, -0.04381094500422478, -0.379005491733551, 0.0477779284119606, -0.2433987557888031, -0.054287225008010864, 0.21683475375175476, -0.3252418339252472, 0.313311904668808, 0.4564041793346405, 0.044682182371616364, 0.016498565673828125, -0.06673553586006165, -0.08281739801168442, -0.008705496788024902, 0.208109512925148, -0.059016309678554535, 0.13942576944828033, 0.13059663772583008, -0.10888990014791489, 0.005766835063695908, -0.41327840089797974, -0.1747809499502182, 0.3841586112976074, 0.13877546787261963, 0.33121973276138306, 0.04103369638323784, -0.2562456727027893, -0.22172150015830994, 0.031792327761650085, -0.01794350892305374, -0.19988404214382172, 0.2481619268655777, 0.10707034170627594, 0.14068076014518738, -0.1053968220949173, -0.04891878366470337, -0.4211718440055847, 0.6321430206298828, 0.19316212832927704, -0.4575015604496002, -0.12101501226425171, -0.2958075702190399, -0.49572187662124634, 0.08989140391349792, 0.018536867573857307, -0.08422990143299103, 0.3733420968055725, 0.29948610067367554, 0.49354931712150574, 0.041879802942276, -0.13970372080802917, 0.061369895935058594, -0.07761115580797195, 0.40779808163642883, -0.08410364389419556, 0.008401315659284592, 0.042282842099666595, 0.2542155683040619, -0.2144947499036789, -0.47667017579078674, 0.42951783537864685, 0.21776847541332245, -0.11160728335380554, -0.19582782685756683, 0.1195870041847229, -0.23762916028499603, 0.4204734265804291, 0.3587207794189453, 0.11127316206693649, 0.08403042703866959, 0.32278668880462646, -0.08306426554918289, 0.21859358251094818, -0.12359222769737244, 0.07730083912611008, 0.33009353280067444, -0.10250254720449448, 0.082452192902565, -0.08370599895715714, 0.49980077147483826, -0.2368963658809662, -0.031085386872291565, -0.33724862337112427, -0.09288395941257477, -0.13427597284317017, 0.04731449484825134, -0.3381270468235016, 0.17389696836471558, 0.23734436929225922, -0.013334380462765694, 0.20183216035366058, 0.24961048364639282, -0.22245807945728302, -0.07287014275789261, 0.25714173913002014, 0.030177127569913864, -0.20300234854221344, 0.14159637689590454, 0.06723996251821518, 0.16134929656982422, 0.16631554067134857, -0.33006393909454346, -0.08233648538589478, 0.16796168684959412, -0.16232618689537048, -0.14814706146717072, 0.3159274160861969, -0.2683693766593933, 0.07567360997200012, -0.16050420701503754, 0.29905349016189575, -0.024385076016187668, -0.1328066885471344, -0.43342629075050354, -0.28278648853302 ]
https://github.com/huggingface/datasets/issues/2099
Yes this is a known issue: #625 We're working on making the precision kept for numpy :) To specify the precision of the integers, currently one needs to specify the output features with `.map(..., features=output_features)`
load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :)
35
load_from_disk takes a long time to load local dataset I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :) Yes this is a known issue: #625 We're working on making the precision kept for numpy :) To specify the precision of the integers, currently one needs to specify the output features with `.map(..., features=output_features)`
[ -0.2853317856788635, -0.21878734230995178, -0.02809823676943779, 0.23458178341388702, 0.32534345984458923, 0.06384448707103729, 0.45363929867744446, 0.20494335889816284, 0.653836190700531, -0.03381171077489853, 0.10111372917890549, 0.473171591758728, 0.12746290862560272, -0.1699022799730301, 0.06348071992397308, 0.10077664256095886, 0.3845757246017456, 0.17021501064300537, 0.40072596073150635, -0.2281007021665573, -0.3928018808364868, -0.022292204201221466, -0.0956602692604065, -0.026784144341945648, -0.2128366380929947, -0.1019788309931755, -0.03614114969968796, 0.05445559322834015, -0.10710342973470688, -0.25112438201904297, 0.021519139409065247, -0.1343868374824524, 0.33682888746261597, 0.23380398750305176, -0.0001270738575840369, -0.19987519085407257, 0.0475260429084301, 0.13460896909236908, -0.22977064549922943, 0.3513154685497284, 0.4877164959907532, -0.6189039945602417, 0.21659140288829803, -0.38998502492904663, 0.1582980453968048, -0.18954302370548248, -0.3014674782752991, -0.2665797472000122, -0.03680458664894104, -0.12143683433532715, 0.04507306590676308, 0.5076548457145691, -0.23216401040554047, 0.1393105834722519, -0.2855151295661926, 0.30359432101249695, -0.20538035035133362, 0.06531417369842529, 0.4982058107852936, 0.05492614954710007, -0.034579720348119736, -0.05178288370370865, -0.16833209991455078, -0.030210072174668312, 0.30905643105506897, 0.10794457793235779, 0.4078356921672821, 0.11713187396526337, -0.00801959540694952, 0.11995712667703629, 0.4965888261795044, 0.03355568274855614, -0.0846853032708168, -0.3417028486728668, -0.11129556596279144, -0.41445398330688477, 0.3293810784816742, 0.09119158238172531, -0.34903591871261597, 0.1724070906639099, -0.047048065811395645, -0.07980281114578247, 0.013933427631855011, 0.2245960384607315, -0.1558128446340561, -0.09138062596321106, 0.019738275557756424, 0.13173441588878632, 0.2276470810174942, -0.11481093615293503, 0.0845651626586914, 0.01031583547592163, 0.21365788578987122, 0.42485278844833374, -0.4246658384799957, -0.23531630635261536, 0.0208284929394722, 0.014246142469346523, -0.16532549262046814, 0.01020406186580658, 0.18224230408668518, 0.25157561898231506, -0.18628573417663574, 0.021925032138824463, 0.3129633963108063, 0.42806652188301086, -0.17335785925388336, 0.1863625943660736, 0.09277402609586716, -0.2433660328388214, 0.1412956416606903, 0.015262914821505547, -0.10054463148117065, 0.042258426547050476, 0.5480372905731201, -0.46810585260391235, -0.16331270337104797, -0.13201658427715302, -0.1422054022550583, 0.22771450877189636, 0.4887229800224304, -0.04178477078676224, 0.15613310039043427, 0.14554491639137268, 0.08063581585884094, 0.5697746276855469, -0.05629667639732361, 0.11948341876268387, -0.18076801300048828, -0.15784704685211182, -0.08431915938854218, -0.3356253504753113, -0.056264620274305344, 0.19030088186264038, 0.04029938578605652, 0.36838430166244507, -0.06836475431919098, 0.15411996841430664, -0.1981164962053299, 0.06852562725543976, -0.11717148125171661, -0.16450054943561554, 0.23330393433570862, 0.1856643706560135, -0.13804149627685547, 0.25578999519348145, 0.13598239421844482, -0.19318550825119019, -0.4076724052429199, 0.4262595772743225, -0.16461783647537231, -0.3402721881866455, -0.47906407713890076, 0.009015577845275402, -0.1866091787815094, 0.0037995222955942154, -0.3539024293422699, -0.1691916286945343, 0.22021611034870148, 0.06959956884384155, -0.00520315021276474, -0.24409431219100952, -0.11406519263982773, -0.1563969850540161, -0.049396201968193054, 0.07692737877368927, -0.30920565128326416, 0.1904049664735794, -0.1717405617237091, 0.3061516582965851, 0.3065820336341858, 0.7243391871452332, -0.18923787772655487, 0.21684515476226807, -0.2830538749694824, 0.23718249797821045, 0.4602164030075073, -0.04600909352302551, -0.3574865460395813, 0.627156674861908, -0.10661149024963379, -0.07849704474210739, 0.06418706476688385, 0.56337571144104, 0.25295278429985046, -0.19016610085964203, 0.1485002338886261, 0.6897594928741455, 0.10922135412693024, 0.199161097407341, -0.40904808044433594, -0.07337821274995804, 0.09521947801113129, 0.43981117010116577, -0.4073924720287323, 0.13201379776000977, 0.07750163972377777, -0.03250393271446228, 0.21448281407356262, 0.10833083838224411, -0.067048579454422, 0.2884332239627838, 0.2247225046157837, -0.08269595354795456, -0.015732169151306152, 0.2709610164165497, -0.1798170655965805, 0.1594811975955963, 0.4164330065250397, -0.16293177008628845, -0.038352686911821365, -0.1796809583902359, -0.32295700907707214, 0.31808939576148987, -0.07883290201425552, 0.511645495891571, -0.15006539225578308, 0.023600300773978233, 0.12039786577224731, -0.10227778553962708, -0.07345861196517944, -0.01742427796125412, -0.2825336456298828, -0.09660246968269348, -0.11306233704090118, 0.015497714281082153, 0.15252183377742767, -0.07541383802890778, -0.3999120891094208, 0.011529754847288132, 0.06480786204338074, 0.014566369354724884, -0.22117187082767487, 0.3539469242095947, 0.13230682909488678, -0.08655588328838348, -0.11877447366714478, 0.26634034514427185, 0.18616783618927002, 0.07910877466201782, 0.39644655585289, 0.09860733151435852, 0.20529355108737946, -0.25057777762413025, -0.11209909617900848, 0.48444998264312744, -0.19625520706176758, 0.1562967151403427, -0.2818818986415863, -0.07454962283372879, 0.4282446503639221, 0.18920588493347168, 0.14951962232589722, -0.09093181788921356, 0.1781175583600998, 0.32161346077919006, 0.21765738725662231, 0.2503776252269745, -0.22431357204914093, 0.23972471058368683, 0.29511481523513794, -0.3496771454811096, 0.04049001261591911, 0.22248610854148865, 0.04278150573372841, -0.2908239960670471, -0.0233579333871603, -0.19918659329414368, 0.3578401207923889, 0.07376876473426819, 0.06591019034385681, -0.2941620647907257, -0.09750829637050629, -0.19707298278808594, 0.09821903705596924, -0.013993028551340103, -0.09826292842626572, 0.08082127571105957, -0.049545951187610626, -0.1687759906053543, -0.2680058181285858, 0.1539383977651596, 0.04466027021408081, 0.35288602113723755, -0.30591055750846863, 0.0973191037774086, -0.012762188911437988, 0.2521744966506958, -0.06047365814447403, -0.3014187216758728, 0.055233024060726166, -0.25556033849716187, -0.2118462771177292, 0.24825766682624817, -0.04742491990327835, -0.14370766282081604, -0.08144891262054443, 0.315768837928772, 0.21437862515449524, -0.36217477917671204, -0.30672621726989746, -0.23659870028495789, -0.1183377131819725, -0.16991692781448364, 0.3378153145313263, 0.08722075819969177, 0.19634196162223816, -0.07358688861131668, -0.15571248531341553, -0.19352824985980988, -0.09777408093214035, -0.1680152416229248, 0.08165207505226135, 0.1938207447528839, -0.18364113569259644, 0.3560246229171753, -0.5311703681945801, 0.035094745457172394, 0.2957320213317871, -0.282381147146225, -0.16427980363368988, 0.3820289075374603, -0.0902659222483635, -0.30415141582489014, 0.056224167346954346, 0.14902006089687347, -0.22807751595973969, -0.22620663046836853, 0.1455477774143219, 0.0563632994890213, 0.11589227616786957, -0.28051096200942993, 0.09015274047851562, -0.028888555243611336, 0.46661248803138733, -0.19338330626487732, -0.2513419985771179, -0.18547594547271729, 0.6473256349563599, 0.03346646949648857, -0.27932918071746826, -0.1435445249080658, 0.08938267827033997, -0.11679572612047195, -0.08097007870674133, -0.46405699849128723, 0.15442737936973572, -0.3944260776042938, 0.5134143829345703, -0.2122783362865448, 0.10998417437076569, 0.1466536819934845, -0.3103830814361572, 0.048179637640714645, 0.21147215366363525, -0.05940547212958336, 0.15112046897411346, 0.1554526686668396, 0.12057911604642868, 0.0782574862241745, 0.6237226128578186, -0.213643878698349, 0.28854966163635254, -0.17775976657867432, -0.172821044921875, 0.3498382866382599, 0.06958825141191483, 0.2416098415851593, -0.35309335589408875, -0.14647209644317627, -0.2309074103832245, 0.07448361814022064, -0.37593770027160645, 0.1659776121377945, -0.014043536968529224, -0.29865628480911255, 0.03010084480047226, -0.007598794996738434, -0.131984144449234, -0.07088525593280792, 0.26799923181533813, 0.044614844024181366, 0.06900601089000702, -0.08562954515218735, 0.27437955141067505, -0.3619644045829773, -0.2205960899591446, -0.07804276049137115, -0.010208331048488617, 0.168532595038414, -0.24180901050567627, -0.5344125032424927, -0.12252762913703918, -0.42975732684135437, 0.1782599687576294, -0.1769813746213913, 0.5807365775108337, 0.09802567958831787, -0.3366994261741638, 0.37954238057136536, 0.06240003556013107, 0.6375274062156677, 0.24693946540355682, 0.06084210425615311, 0.14157241582870483, -0.13655930757522583, -0.7212396860122681, 0.028624318540096283, 0.22835686802864075, -0.11987434327602386, 0.36818233132362366, 0.6995575428009033, -0.10672755539417267, -0.09365282952785492, -0.12645351886749268, 0.36356687545776367, -0.23904496431350708, -0.4294118881225586, -0.14542178809642792, -0.33954891562461853, -0.048660121858119965, 0.14128780364990234, 0.20775745809078217, 0.5102295279502869, 0.3965986371040344, 0.0031085312366485596, -0.2096407413482666, -0.047388844192028046, -0.040211111307144165, 0.037988439202308655, 0.3384123742580414, -0.05848323553800583, 0.367016077041626, -0.28650152683258057, 0.21275798976421356, -0.16021493077278137, 0.41269969940185547, -0.20220448076725006, -0.07197478413581848, 0.3335323631763458, -0.20522341132164001, -0.011200711131095886, 0.3617827892303467, 0.2375923991203308, -0.07244095206260681, -0.13867703080177307, 0.20135578513145447, -0.1970275193452835, -0.1319127082824707, -0.16178008913993835, 0.010737691074609756, -0.02668432705104351, -0.11307740211486816, 0.3312246799468994, 0.05990714579820633, 0.055409640073776245, 0.1973130851984024, -0.25780028104782104, 0.1007329672574997, 0.6957808136940002, 0.20668135583400726, 1.0700021982192993, -0.42970094084739685, 0.026172850281000137, 0.18307355046272278, 0.13322995603084564, -0.06649517267942429, -0.16220825910568237, -0.2958097755908966, -0.3466527462005615, 0.10414111614227295, 0.14308519661426544, -0.2020397186279297, -0.1270284354686737, 0.3857887089252472, 0.16550850868225098, -0.07576984167098999, -0.3193399906158447, 0.2646409571170807, -0.3175812065601349, 0.37417757511138916, 0.027962008491158485, -0.43718403577804565, -0.5361630320549011, -0.020622486248612404, -0.002340491861104965, -0.04538637772202492, 0.01467035710811615, 0.16559016704559326, -0.017110660672187805, -0.2421846091747284, -0.03789122402667999, -0.2156960666179657, 0.1315549612045288, 0.2387966513633728, 0.22911173105239868, -0.3089773654937744, -0.18665733933448792, 0.4068341553211212, 0.49679380655288696, -0.1496443748474121, -0.04508041590452194, 0.1493595689535141, 0.13111136853694916, 0.11462971568107605, 0.1725500524044037, -0.20268358290195465, 0.12100230902433395, -0.07908634841442108, 0.11398695409297943, -0.11977571249008179, -0.20744746923446655, -0.4152696430683136, -0.16806423664093018, 0.099077008664608, 0.2944336533546448, -0.2348843812942505, -0.2459641844034195, -0.41135838627815247, 0.22559943795204163, -0.08799285441637039, 0.01712818443775177, 0.353211909532547, 0.1283501386642456, 0.24083448946475983, -0.11670252680778503, -0.20578539371490479, -0.03693860024213791, 0.37363356351852417, 0.0963333323597908, -0.38266897201538086, 0.22738993167877197, 0.04788970947265625, -0.2305281013250351, -0.1743088960647583, 0.3632318377494812, 0.24706950783729553, -0.40457889437675476, 0.16401678323745728, 0.01605553925037384, -0.022865310311317444, -0.03843163698911667, 0.1288539618253708, 0.21640902757644653, 0.022229453548789024, -0.16494765877723694, -0.24412332475185394, -0.5539368987083435, -0.07415890693664551, 0.23397040367126465, 0.08614039421081543, 0.17397119104862213, -0.5396535992622375, -0.2221936732530594, 0.059738487005233765, -0.1364130973815918, -0.03418578952550888, -0.01905602589249611, 0.10441341996192932, 0.12571927905082703, -0.007480918429791927, 0.1417955756187439, -0.04432065784931183, 0.058747537434101105, -0.1436631977558136, -0.011272132396697998, -0.06585913896560669, 0.10351376980543137, 0.19878624379634857, -0.045675136148929596, -0.3167662024497986, -0.1872192770242691, -0.4499415159225464, -0.16622361540794373, -0.35110020637512207, -0.17271623015403748, 0.05607485771179199, -0.06593643128871918, -0.2894795835018158, 0.3735763430595398, 0.12479338049888611, 0.03990259766578674, 0.37562569975852966, -0.09260943531990051, 0.40592554211616516, -0.059629447758197784, 0.13812357187271118, 0.21675114333629608, -0.1698894053697586, -0.30511918663978577, 0.14277322590351105, 0.2466362565755844, -0.10162404179573059, 0.357962429523468, -0.2795628607273102, 0.034239307045936584, 0.2548418641090393, 0.0009395480155944824, 0.15598472952842712, -0.20342715084552765, -0.3396352231502533, 0.20076966285705566, 0.06537207961082458, -0.029856059700250626, -0.2698592245578766, -0.004885263741016388, -0.07078097015619278, -0.2545434534549713, 0.37085437774658203, 0.439924955368042, -0.2043175995349884, -0.12478204071521759, 0.06301150470972061, 0.5689051747322083, -0.05426836013793945, -0.445015549659729, 0.7241830229759216, -0.009848572313785553, -0.015166005119681358, 0.17009024322032928, 0.08917466551065445, 0.054367586970329285, 0.5115529894828796, -0.2473190426826477, 0.10561369359493256, 0.3380523920059204, 0.46343284845352173, -0.4425360858440399, -0.28387969732284546, 0.34340211749076843, 0.25548887252807617, -0.29005664587020874, -0.1349402219057083, 0.17698529362678528, 0.24248330295085907, -0.26569151878356934, -0.07729372382164001, -0.28439512848854065, 0.2597668766975403, -0.3065817654132843, 0.07304443418979645, -0.31762897968292236, -0.014604851603507996, 0.031600117683410645, 0.08861003071069717, -0.25664037466049194, -0.017641864717006683, -0.21503284573554993, 0.2963846027851105, 0.006170891225337982, 0.10566554218530655, 0.06638886034488678, 0.016993889585137367, -0.052317939698696136, -0.4044029712677002, -0.03405580669641495, -0.2851509749889374, -0.04727158322930336, 0.2069104015827179, -0.32413867115974426, 0.41274961829185486, 0.5296902656555176, -0.015981651842594147, 0.11722566187381744, 0.041264694184064865, -0.08098321408033371, -0.02111939713358879, 0.15056973695755005, -0.15378040075302124, 0.21459484100341797, 0.1504521667957306, -0.09433817863464355, -0.07718834280967712, -0.3264721930027008, -0.17219986021518707, 0.42793166637420654, 0.06872721016407013, 0.45128780603408813, 0.00687573105096817, -0.34352606534957886, -0.2708039879798889, -0.017402250319719315, 0.0194845050573349, -0.20785880088806152, 0.22002778947353363, 0.036758698523044586, 0.10261379182338715, -0.013148345053195953, -0.0386599563062191, -0.3887900710105896, 0.5161962509155273, 0.3052857220172882, -0.4052082598209381, -0.2370074838399887, -0.2756311297416687, -0.6192657351493835, 0.10229997336864471, 0.08523040264844894, -0.1562982201576233, 0.42013218998908997, 0.22998233139514923, 0.4341723918914795, 0.1145569384098053, -0.12354327738285065, 0.12116353958845139, -0.10240048915147781, 0.45599132776260376, -0.07287342846393585, 0.03166872635483742, -0.01577858254313469, 0.1788160353899002, -0.1881525218486786, -0.49311959743499756, 0.42145153880119324, 0.21053937077522278, -0.08320526033639908, -0.14404308795928955, 0.11353136599063873, -0.3183138966560364, 0.49160706996917725, 0.4417490065097809, 0.0854354053735733, 0.0012173503637313843, 0.3090946078300476, 0.034361474215984344, 0.2861705720424652, -0.04965057224035263, 0.032520949840545654, 0.2648927569389343, -0.14445282518863678, -0.006360210478305817, -0.09984877705574036, 0.35384440422058105, -0.24459418654441833, 0.003052476793527603, -0.23621712625026703, -0.19510039687156677, -0.07650682330131531, 0.03176861256361008, -0.2294914722442627, 0.21267737448215485, 0.326727032661438, -0.06659102439880371, 0.2403954267501831, 0.2829751670360565, -0.24318288266658783, -0.10564947128295898, 0.23058170080184937, 0.04047337546944618, -0.14722400903701782, 0.004578020423650742, 0.1573975384235382, 0.02492629736661911, 0.1547422707080841, -0.3673829436302185, -0.13488106429576874, 0.2557359039783478, -0.10958045721054077, -0.12404951453208923, 0.36038148403167725, -0.22748149931430817, 0.13320261240005493, -0.13061948120594025, 0.27757248282432556, -0.10017172247171402, -0.07503031939268112, -0.401540607213974, -0.22522106766700745 ]
https://github.com/huggingface/datasets/issues/2099
Do you know what step is taking forever in the code ? What happens if you interrupt the execution of the dataset loading ?
load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :)
24
load_from_disk takes a long time to load local dataset I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :) Do you know what step is taking forever in the code ? What happens if you interrupt the execution of the dataset loading ?
[ -0.3577091693878174, -0.19114567339420319, -0.05428900197148323, 0.2522047162055969, 0.3178025782108307, 0.07410047203302383, 0.4124632775783539, 0.20194487273693085, 0.6933249235153198, 0.03210354223847389, 0.193291574716568, 0.4987611174583435, 0.11994997411966324, -0.0854378268122673, 0.07826481759548187, 0.1477903574705124, 0.33981749415397644, 0.23835545778274536, 0.44021087884902954, -0.13399553298950195, -0.3000718951225281, -0.015376574359834194, -0.14273642003536224, 0.04220227152109146, -0.1994236409664154, -0.15087561309337616, -0.052263401448726654, 0.05029086023569107, -0.14582960307598114, -0.2906324863433838, 0.019001081585884094, -0.018463637679815292, 0.2739635407924652, 0.281629741191864, -0.00012624790542759, -0.2672605514526367, 0.06965194642543793, 0.19400715827941895, -0.23568981885910034, 0.3061157464981079, 0.3798663020133972, -0.4438561797142029, 0.20779243111610413, -0.34785276651382446, 0.14909759163856506, -0.27784624695777893, -0.25737902522087097, -0.32512396574020386, -0.037322405725717545, -0.1680576205253601, 0.04543718323111534, 0.44643962383270264, -0.30128014087677, 0.08908972144126892, -0.1744762510061264, 0.31063112616539, -0.12210536003112793, 0.03392821550369263, 0.5823902487754822, -0.058396678417921066, -0.04538986086845398, -0.07516911625862122, -0.17392654716968536, -0.13054654002189636, 0.4071653187274933, 0.05623815953731537, 0.2787829637527466, 0.09986478090286255, 0.08400377631187439, 0.12612862884998322, 0.6219446063041687, -0.02038167230784893, 0.05003716051578522, -0.2161281406879425, -0.07903681695461273, -0.3577183485031128, 0.4000557065010071, 0.0030647441744804382, -0.32395923137664795, 0.18735842406749725, -0.08978271484375, -0.09547950327396393, -0.0011593550443649292, 0.22606652975082397, -0.18639592826366425, -0.14115291833877563, 0.025638051331043243, 0.13442769646644592, 0.29870307445526123, -0.11706927418708801, 0.055592428892850876, -0.05631200224161148, 0.14978086948394775, 0.4445006549358368, -0.41723281145095825, -0.19118954241275787, 0.004220079630613327, 0.12442201375961304, -0.17659656703472137, 0.10368228703737259, 0.14326712489128113, 0.21468155086040497, -0.12797695398330688, -0.015473326668143272, 0.25633496046066284, 0.37617433071136475, -0.11284925043582916, 0.09652023017406464, 0.10396638512611389, -0.3212372362613678, -0.03959095850586891, -0.035409942269325256, -0.24974572658538818, -0.018991082906723022, 0.4814789295196533, -0.44710832834243774, -0.20014961063861847, -0.13231220841407776, -0.055943895131349564, 0.20494580268859863, 0.41250476241111755, -0.023575766012072563, 0.21817611157894135, 0.23717515170574188, 0.08638434112071991, 0.48740553855895996, -0.09572797268629074, -0.03337845951318741, -0.20884138345718384, -0.14727404713630676, -0.06814192235469818, -0.291084885597229, -0.1855146288871765, 0.19314661622047424, 0.044880546629428864, 0.2586333155632019, -0.1528831422328949, 0.20157012343406677, -0.21301224827766418, 0.06378142535686493, -0.1322869062423706, -0.1558227241039276, 0.2541344165802002, 0.15926270186901093, -0.13267622888088226, 0.20268595218658447, 0.1348431259393692, -0.30924659967422485, -0.4058164656162262, 0.40177854895591736, -0.11365839838981628, -0.3545091152191162, -0.4384787082672119, 0.013739663176238537, -0.26598289608955383, -0.03275909274816513, -0.3687290847301483, -0.09857699275016785, 0.0929257869720459, 0.04337918013334274, -0.0409642718732357, -0.18718662858009338, -0.0954580157995224, -0.04694328457117081, 0.005502820014953613, 0.19394844770431519, -0.44629228115081787, 0.2134213149547577, -0.22795690596103668, 0.2241954803466797, 0.2977636158466339, 0.6412928104400635, -0.2757304310798645, 0.33657217025756836, -0.26376768946647644, 0.27007347345352173, 0.4910584092140198, -0.04065966606140137, -0.3431297838687897, 0.7155484557151794, -0.15045487880706787, -0.1908348798751831, 0.021461008116602898, 0.5547385811805725, 0.2817491292953491, -0.07814095914363861, 0.09288983047008514, 0.682915449142456, 0.09842825680971146, 0.18084773421287537, -0.37085768580436707, -0.0509108230471611, 0.07244367152452469, 0.4867711067199707, -0.42861369252204895, 0.18167568743228912, 0.15299271047115326, -0.016682635992765427, 0.1958255022764206, 0.05719931796193123, -0.07413069158792496, 0.25891736149787903, 0.23101986944675446, 0.022632980719208717, 0.03710131719708443, 0.217866450548172, -0.21010853350162506, 0.12584643065929413, 0.5279916524887085, -0.2242010533809662, -0.00820431113243103, -0.1891959011554718, -0.313000351190567, 0.3344789445400238, -0.1324249505996704, 0.6150859594345093, -0.1887342482805252, 0.011144964024424553, 0.05306384712457657, -0.1579790711402893, -0.20069563388824463, -0.027068138122558594, -0.27937236428260803, -0.0978187769651413, -0.12106399238109589, 0.006897144019603729, 0.1456567496061325, -0.03321509063243866, -0.4086243212223053, -0.028823841363191605, -0.011871088296175003, 0.006937719881534576, -0.19495338201522827, 0.3073679804801941, 0.17596161365509033, 0.04970860853791237, 0.004963329061865807, 0.14394766092300415, 0.0891774520277977, 0.013556428253650665, 0.3173202872276306, -0.038947511464357376, 0.2369767725467682, -0.2791321575641632, -0.08358589559793472, 0.42497140169143677, -0.2261410653591156, 0.2390495389699936, -0.25779473781585693, -0.1333371102809906, 0.38749605417251587, 0.09807668626308441, 0.1315012276172638, 0.04210822284221649, 0.24057839810848236, 0.31972435116767883, 0.2842448055744171, 0.2978328466415405, -0.2933256924152374, 0.23341485857963562, 0.28156137466430664, -0.39911821484565735, -0.13067549467086792, 0.17067372798919678, 0.08382411301136017, -0.2651280164718628, -0.037628550082445145, -0.10817355662584305, 0.2923421263694763, 0.1296144425868988, 0.04442116245627403, -0.3026951253414154, -0.051169682294130325, -0.17254681885242462, 0.13345152139663696, -0.028568431735038757, -0.06550247967243195, 0.08216546475887299, -0.07907931506633759, -0.15063472092151642, -0.33584195375442505, 0.000896066427230835, 0.11015701293945312, 0.40407034754753113, -0.30228951573371887, 0.2084806263446808, -0.1015753522515297, 0.06678038835525513, -0.011513922363519669, -0.21695558726787567, 0.13700658082962036, -0.17463967204093933, -0.24198627471923828, 0.214967280626297, -0.009561210870742798, -0.13590048253536224, -0.03982064872980118, 0.40759071707725525, 0.17402604222297668, -0.4136066436767578, -0.388334184885025, -0.29276391863822937, -0.15159457921981812, -0.145768940448761, 0.4902333617210388, 0.11442252993583679, 0.2129696160554886, -0.020612020045518875, -0.14466720819473267, -0.21131198108196259, -0.18238289654254913, -0.11958850920200348, 0.048451706767082214, 0.17046114802360535, -0.19400954246520996, 0.33330631256103516, -0.5447800159454346, -0.039355359971523285, 0.21536946296691895, -0.2854781746864319, -0.2662694454193115, 0.3533628582954407, -0.1288696825504303, -0.33154717087745667, 0.00842662900686264, 0.0862201452255249, -0.13683050870895386, -0.20574277639389038, 0.22231146693229675, -0.0022180527448654175, 0.11047698557376862, -0.2818082273006439, 0.09971481561660767, 0.05128125101327896, 0.44671499729156494, -0.257917195558548, -0.1771111786365509, -0.25613027811050415, 0.6002789735794067, 0.016812074929475784, -0.247985377907753, -0.07195547223091125, 0.10865136981010437, -0.11674661934375763, -0.04590504616498947, -0.5427116751670837, 0.2715323567390442, -0.4648796021938324, 0.45328500866889954, -0.26373758912086487, 0.039822906255722046, 0.09439966082572937, -0.25583934783935547, 0.03579765558242798, 0.23439711332321167, -0.10717742145061493, 0.16613464057445526, 0.07421610504388809, 0.10167509317398071, 0.05487764999270439, 0.681326150894165, -0.22220617532730103, 0.31730401515960693, -0.22168220579624176, -0.14205199480056763, 0.321346640586853, 0.014683099463582039, 0.2703050374984741, -0.3492726683616638, -0.16007007658481598, -0.2527993619441986, 0.13922885060310364, -0.3603528141975403, 0.16031324863433838, -0.08257253468036652, -0.37041208148002625, 0.02584097534418106, 0.024462297558784485, -0.027003712952136993, -0.03766361251473427, 0.2160635143518448, -0.03527659922838211, 0.06757195293903351, -0.09721870720386505, 0.19489650428295135, -0.36135435104370117, -0.23533271253108978, -0.14725928008556366, 0.02448377199470997, 0.16770151257514954, -0.2305627465248108, -0.6383597254753113, -0.06358636170625687, -0.40902477502822876, 0.14628362655639648, -0.18579186499118805, 0.44814929366111755, 0.03152419626712799, -0.27205365896224976, 0.457554429769516, -0.01281769759953022, 0.6455436944961548, 0.31328389048576355, 0.06610558182001114, 0.17901574075222015, -0.16675308346748352, -0.6522541642189026, 0.05100640654563904, 0.2501663863658905, -0.07014834880828857, 0.3510233461856842, 0.6979831457138062, -0.024868227541446686, -0.13246184587478638, -0.08564215898513794, 0.3518334627151489, -0.23398135602474213, -0.5040015578269958, -0.15912488102912903, -0.38021889328956604, -0.11852400004863739, 0.20023250579833984, 0.1421145498752594, 0.5277097821235657, 0.3856261074542999, -0.06890210509300232, -0.17927294969558716, -0.07305020093917847, 0.06714840233325958, 0.09465226531028748, 0.29616445302963257, -0.07503270357847214, 0.43281984329223633, -0.2789562940597534, 0.1389797031879425, -0.15386749804019928, 0.4000522792339325, -0.1149565652012825, -0.028302904218435287, 0.34962278604507446, -0.22143520414829254, 0.09193938225507736, 0.43162423372268677, 0.22278665006160736, 0.06503360718488693, -0.11203476041555405, 0.20198754966259003, -0.2372819185256958, -0.021790748462080956, -0.1702500581741333, 0.03530515730381012, -0.04366743937134743, -0.15173426270484924, 0.2699774205684662, 0.03807597607374191, -0.013592667877674103, 0.2379074990749359, -0.0789266973733902, 0.12830908596515656, 0.6811937093734741, 0.14082284271717072, 1.191836953163147, -0.49871328473091125, -0.008294424042105675, 0.09612343460321426, 0.14300425350666046, -0.10056932270526886, -0.1519060730934143, -0.3217868208885193, -0.3388417363166809, 0.08119089156389236, 0.14823982119560242, -0.24898843467235565, -0.12329255044460297, 0.4238462448120117, 0.16370314359664917, -0.1260511875152588, -0.24017295241355896, 0.31487029790878296, -0.34122124314308167, 0.47627538442611694, 0.008706698194146156, -0.44261783361434937, -0.47763270139694214, -0.011277683079242706, -0.015101339668035507, -0.06988620012998581, -0.0370832234621048, 0.1763520985841751, 0.018625512719154358, -0.17604708671569824, -0.03997305780649185, -0.1425020396709442, 0.18106916546821594, 0.1528135985136032, 0.15709975361824036, -0.23413529992103577, -0.061759497970342636, 0.4883338510990143, 0.4086743891239166, -0.008738372474908829, -0.0027240384370088577, 0.2221081554889679, 0.07054048776626587, 0.1289340853691101, 0.10286647081375122, -0.25000208616256714, 0.05714850127696991, -0.12752097845077515, 0.04293157160282135, -0.10806599259376526, -0.15557360649108887, -0.49906036257743835, -0.11314009130001068, 0.16059769690036774, 0.3514450192451477, -0.12129518389701843, -0.2276403158903122, -0.2395576685667038, 0.2034032940864563, -0.04677179828286171, 0.01843191124498844, 0.31791403889656067, 0.17374344170093536, 0.27574676275253296, -0.021259671077132225, -0.26733285188674927, 0.016261478886008263, 0.30205413699150085, 0.01708364486694336, -0.30223751068115234, 0.3309486210346222, 0.0865602195262909, -0.24297864735126495, -0.2007220983505249, 0.37778520584106445, 0.34680381417274475, -0.42718392610549927, 0.11520683765411377, -0.021539263427257538, 0.042957186698913574, 0.07889983057975769, 0.06875741481781006, 0.1683826893568039, -0.013996198773384094, -0.12388384342193604, -0.2372080683708191, -0.554642379283905, -0.050682008266448975, 0.187241330742836, 0.1470964401960373, 0.21970251202583313, -0.4283142685890198, -0.2838519811630249, 0.0944499745965004, -0.14462801814079285, 0.07142498344182968, -0.11753983795642853, 0.1290341466665268, 0.09725429117679596, -0.0604090690612793, 0.07079782336950302, -0.16169875860214233, 0.05735532194375992, -0.10874056071043015, 0.027835547924041748, -0.09041880071163177, 0.07738222181797028, 0.21503767371177673, -0.03560817241668701, -0.2600281238555908, -0.18348655104637146, -0.4841845631599426, -0.1761961728334427, -0.3114584684371948, -0.13650166988372803, 0.017776593565940857, -0.04821762442588806, -0.4042718708515167, 0.333240270614624, 0.17706908285617828, 0.013679087162017822, 0.37672221660614014, -0.03587154671549797, 0.4288921058177948, -0.05987531691789627, 0.1239345371723175, 0.2064659297466278, -0.18626007437705994, -0.2938394844532013, 0.18138843774795532, 0.3410729169845581, -0.1296018809080124, 0.3239107131958008, -0.24492639303207397, 0.06583984196186066, 0.2200423777103424, -0.004792295396327972, 0.14786554872989655, -0.1227509081363678, -0.27671748399734497, 0.2896312475204468, 0.048109591007232666, 0.017741180956363678, -0.22494547069072723, -0.06192585080862045, -0.13682878017425537, -0.250165194272995, 0.2854050099849701, 0.3567182719707489, -0.12377924472093582, -0.10790988057851791, 0.04490049183368683, 0.574672281742096, 0.020232416689395905, -0.4783283472061157, 0.5880824327468872, -0.07038822770118713, -0.03856946527957916, 0.22769011557102203, 0.23147611320018768, -0.023739632219076157, 0.6256378889083862, -0.2442816197872162, 0.069180428981781, 0.3443623185157776, 0.6154088973999023, -0.36416104435920715, -0.34805744886398315, 0.33129584789276123, 0.2959240674972534, -0.21611355245113373, -0.1658431887626648, 0.1747485101222992, 0.18509377539157867, -0.2219768464565277, -0.1320074200630188, -0.2278192788362503, 0.3173690736293793, -0.271467000246048, 0.10960182547569275, -0.37704747915267944, 0.008414387702941895, 0.015545651316642761, 0.195746049284935, -0.2598245143890381, 0.01204095222055912, -0.2839380204677582, 0.29394060373306274, 0.04508045315742493, 0.07613655924797058, 0.07309931516647339, 0.006817981600761414, -0.0483454205095768, -0.41551634669303894, -0.014570667408406734, -0.3586176335811615, -0.03203338757157326, 0.28371569514274597, -0.2935301959514618, 0.34215405583381653, 0.4888448715209961, -0.001426301896572113, 0.07118804007768631, -0.05018257722258568, -0.09790945053100586, 0.050533659756183624, 0.18780162930488586, -0.11988650262355804, 0.29702240228652954, 0.19946476817131042, -0.10265254974365234, -0.051739271730184555, -0.46186554431915283, -0.1480223834514618, 0.43184030055999756, 0.05954298749566078, 0.3271251618862152, 0.10061371326446533, -0.29613226652145386, -0.3213713765144348, 0.12290321290493011, -0.07502932846546173, -0.10753487050533295, 0.26333779096603394, 0.002523336559534073, 0.09568173438310623, -0.05168402940034866, -0.035060446709394455, -0.3884757161140442, 0.5839491486549377, 0.3617030382156372, -0.3527214229106903, -0.21703949570655823, -0.38361337780952454, -0.6794734597206116, 0.073342464864254, 0.039468683302402496, -0.08091115951538086, 0.40490585565567017, 0.23020997643470764, 0.45911097526550293, 0.05034597963094711, -0.13197973370552063, 0.10017836093902588, -0.1748916059732437, 0.39985984563827515, -0.029577497392892838, 0.02789389342069626, 0.08285196125507355, 0.15512870252132416, -0.26684287190437317, -0.436018168926239, 0.46216514706611633, 0.2074248045682907, -0.10470612347126007, -0.12703441083431244, 0.07791073620319366, -0.3120550215244293, 0.3903246223926544, 0.3595147728919983, 0.006171712651848793, 0.12568199634552002, 0.3428460657596588, 0.10569726675748825, 0.2859562933444977, -0.038630206137895584, 0.024041660130023956, 0.2289867103099823, -0.08966244757175446, -0.07773011177778244, -0.05375292897224426, 0.41696658730506897, -0.17115679383277893, -0.03005930408835411, -0.29942798614501953, -0.1029418557882309, -0.1097697839140892, -0.07983618974685669, -0.21384596824645996, 0.26892268657684326, 0.3082721531391144, -0.005026862025260925, 0.207860067486763, 0.20810732245445251, -0.2628805339336395, -0.021214623004198074, 0.2440168410539627, 0.01828441023826599, -0.18102115392684937, 0.021586503833532333, 0.1300424337387085, 0.2562043070793152, 0.15014368295669556, -0.2618187665939331, -0.11831431835889816, 0.2275494635105133, -0.15474018454551697, -0.11179210245609283, 0.4511459469795227, -0.24332085251808167, 0.18061453104019165, -0.16490690410137177, 0.18354076147079468, -0.087593212723732, -0.023800987750291824, -0.4564518928527832, -0.279227614402771 ]
https://github.com/huggingface/datasets/issues/2099
After a synchronous discussion, we found that the cache file sizes have an enormous effect on the loading speed: smaller cache files result in faster load times. `num_proc` controls the number of cache files that are being written and is inversely proportional to the individual file size. In other words, increase `num_proc` for smaller cache files :) Maybe this can be highlighted somewhere in the docs.
load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :)
66
load_from_disk takes a long time to load local dataset I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though). Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers? Tagging @lhoestq since you seem to be working on these issues and PRs :) After a synchronous discussion, we found that the cache file sizes have an enormous effect on the loading speed: smaller cache files result in faster load times. `num_proc` controls the number of cache files that are being written and is inversely proportional to the individual file size. In other words, increase `num_proc` for smaller cache files :) Maybe this can be highlighted somewhere in the docs.
[ -0.32262372970581055, -0.16081734001636505, -0.07459074258804321, 0.24950312077999115, 0.29855337738990784, 0.038758307695388794, 0.422140896320343, 0.2822892963886261, 0.7425706386566162, -0.014208495616912842, 0.12869855761528015, 0.5218665599822998, 0.17107969522476196, -0.06049419194459915, 0.10262928903102875, 0.11289803683757782, 0.3352092504501343, 0.2497861236333847, 0.4394030272960663, -0.10520096868276596, -0.24601390957832336, 0.04471343755722046, -0.07327236980199814, 0.002135142683982849, -0.201645165681839, -0.07096534222364426, 0.04909190535545349, 0.06037289276719093, -0.15695859491825104, -0.3110065162181854, 0.05762270838022232, -0.030136307701468468, 0.24849934875965118, 0.15607057511806488, -0.00012407854956109077, -0.25024914741516113, 0.097685307264328, 0.16816431283950806, -0.221549391746521, 0.2777533531188965, 0.469235897064209, -0.45446664094924927, 0.20954196155071259, -0.3286709189414978, 0.10932055115699768, -0.26154837012290955, -0.27735254168510437, -0.2344934046268463, -0.1445315182209015, -0.13924503326416016, 0.0578048974275589, 0.4935593008995056, -0.3358248472213745, 0.03922843560576439, -0.10544773936271667, 0.25247275829315186, -0.21087679266929626, 0.027860738337039948, 0.561988115310669, -0.0642874538898468, -0.15174858272075653, -0.07232639193534851, -0.1665256917476654, -0.018640082329511642, 0.46546220779418945, 0.09135442227125168, 0.30073001980781555, 0.148136705160141, 0.05861995369195938, 0.19848725199699402, 0.6188424229621887, 0.06471911072731018, 0.0020860470831394196, -0.25170135498046875, -0.14467661082744598, -0.3261274993419647, 0.49374473094940186, -0.08503726124763489, -0.28232669830322266, 0.19688881933689117, -0.09191232174634933, 0.0032238028943538666, -0.0007408410310745239, 0.18871566653251648, -0.1272680014371872, -0.13712987303733826, 0.03568441793322563, 0.07392941415309906, 0.41739147901535034, -0.08243386447429657, 0.09084880352020264, 0.08138875663280487, 0.110841304063797, 0.38068363070487976, -0.44704100489616394, -0.20224788784980774, 0.04748699814081192, 0.12675106525421143, -0.15744364261627197, 0.1289220154285431, 0.2507881820201874, 0.28405502438545227, -0.16239596903324127, -0.014549881219863892, 0.19433631002902985, 0.4872795641422272, -0.08866436779499054, 0.012223001569509506, 0.11127863824367523, -0.28433436155319214, -0.05222371220588684, -0.02562529407441616, -0.21610073745250702, -0.0837230533361435, 0.45857012271881104, -0.4411865472793579, -0.283888578414917, -0.15481621026992798, -0.026333525776863098, 0.1521282196044922, 0.514611542224884, -0.08739879727363586, 0.2107795774936676, 0.22319969534873962, 0.07785147428512573, 0.6204030513763428, -0.12894578278064728, -0.040620170533657074, -0.2698878049850464, -0.19986622035503387, -0.055529072880744934, -0.3001202642917633, -0.18921928107738495, 0.20598646998405457, 0.0779305249452591, 0.22827637195587158, -0.06833413988351822, 0.16398723423480988, -0.13428367674350739, 0.08258087933063507, -0.11258886754512787, -0.14151421189308167, 0.23632033169269562, 0.2305315136909485, -0.12086906284093857, 0.17813943326473236, 0.16773656010627747, -0.2345181107521057, -0.4652577340602875, 0.3355952203273773, -0.2128031998872757, -0.41992825269699097, -0.4273708462715149, 0.007253839634358883, -0.23774974048137665, -0.06519649922847748, -0.3955857455730438, -0.09143221378326416, 0.11734932661056519, 0.00532570481300354, -0.04224315285682678, -0.20466524362564087, -0.16644540429115295, -0.11673429608345032, -0.043594978749752045, 0.12618573009967804, -0.37849855422973633, 0.20955224335193634, -0.16976554691791534, 0.2436334788799286, 0.304190456867218, 0.7334471940994263, -0.28414738178253174, 0.22973661124706268, -0.21508300304412842, 0.3058836758136749, 0.4823344945907593, -0.09054847806692123, -0.3905163109302521, 0.6984353065490723, -0.03154043108224869, -0.1900242269039154, 0.12228144705295563, 0.5592466592788696, 0.301404744386673, -0.1081741601228714, 0.08447185158729553, 0.684262752532959, 0.15197180211544037, 0.1931612640619278, -0.4408973455429077, -0.08897153288125992, 0.08636920154094696, 0.44852548837661743, -0.44816499948501587, 0.21063661575317383, 0.1492394208908081, -0.053196780383586884, 0.1388077735900879, 0.06186407431960106, -0.08243343234062195, 0.2182704508304596, 0.1804097294807434, -0.053686097264289856, 0.08357076346874237, 0.2880493402481079, -0.20894213020801544, 0.18035577237606049, 0.35683122277259827, -0.2001405954360962, 0.17453140020370483, -0.16229009628295898, -0.28085389733314514, 0.2578677535057068, -0.06381821632385254, 0.5850837826728821, -0.16558098793029785, 0.00025982409715652466, 0.1232822835445404, -0.18954646587371826, -0.18229550123214722, 0.005673518404364586, -0.2607094645500183, -0.1338571012020111, -0.11870977282524109, -0.053870830684900284, 0.1495470255613327, -0.027684172615408897, -0.34819915890693665, -0.11394692957401276, 0.02741421014070511, 0.050443995743989944, -0.23078298568725586, 0.31366661190986633, 0.23841604590415955, 0.07283035665750504, -0.05408940836787224, 0.2536272406578064, 0.11779935657978058, 0.07992520928382874, 0.38544410467147827, -0.034891240298748016, 0.15779604017734528, -0.2845805287361145, -0.1133621335029602, 0.4743829369544983, -0.19458137452602386, 0.2045004516839981, -0.23936161398887634, -0.13762566447257996, 0.41178983449935913, 0.15338775515556335, 0.15237189829349518, 0.012216910719871521, 0.2239198386669159, 0.3204178810119629, 0.31031888723373413, 0.3557277023792267, -0.23611831665039062, 0.29984986782073975, 0.27336254715919495, -0.3111574351787567, -0.16375035047531128, 0.19043126702308655, 0.06777158379554749, -0.3896794021129608, -0.046577081084251404, -0.07187148928642273, 0.3178160786628723, 0.11086255311965942, 0.09678961336612701, -0.36551567912101746, -0.12630124390125275, -0.26890453696250916, 0.10357902199029922, -0.09137269854545593, -0.0813276544213295, 0.12684953212738037, -0.08388388901948929, -0.14077037572860718, -0.34370192885398865, 0.07682262361049652, 0.058393120765686035, 0.3713032305240631, -0.32269981503486633, 0.144228994846344, -0.11776477098464966, 0.10126569122076035, 0.08545864373445511, -0.25845569372177124, 0.09924142062664032, -0.1990339159965515, -0.15694089233875275, 0.23826172947883606, -0.059544190764427185, -0.22309432923793793, 0.015561699867248535, 0.380613774061203, 0.16209539771080017, -0.3483738899230957, -0.44241809844970703, -0.2981953024864197, -0.13660933077335358, -0.14406782388687134, 0.4089348018169403, 0.18002104759216309, 0.12408820539712906, -0.0514703132212162, -0.17548984289169312, -0.15410390496253967, -0.141702339053154, -0.13396891951560974, 0.09719154238700867, 0.1634797900915146, -0.2072189450263977, 0.2906841039657593, -0.5274928212165833, -0.04801823943853378, 0.24452145397663116, -0.39203473925590515, -0.25494182109832764, 0.3617932200431824, -0.14786462485790253, -0.3017106056213379, -0.06069819629192352, 0.05052737891674042, -0.11360674351453781, -0.2817184627056122, 0.20053450763225555, 0.02680414915084839, 0.16294409334659576, -0.167072594165802, 0.08406876027584076, 0.02410610392689705, 0.4369489848613739, -0.20906397700309753, -0.20050886273384094, -0.3366442918777466, 0.6655771136283875, -0.06747335940599442, -0.2943998873233795, -0.11067096143960953, 0.16262012720108032, -0.09993819147348404, 0.017679363489151, -0.48520711064338684, 0.17546872794628143, -0.39910006523132324, 0.4361289143562317, -0.18724937736988068, 0.023198289796710014, 0.09022091329097748, -0.2943097949028015, -0.01001209020614624, 0.19437944889068604, -0.07355845719575882, 0.21525540947914124, 0.14026819169521332, 0.07607656717300415, 0.056653860956430435, 0.5815751552581787, -0.20339226722717285, 0.2937360405921936, -0.19286713004112244, -0.144155353307724, 0.3797110617160797, 0.05088391155004501, 0.27698761224746704, -0.38813021779060364, -0.03853131830692291, -0.2365739494562149, 0.0751914456486702, -0.3433191776275635, 0.1972091943025589, -0.04194673150777817, -0.3988676965236664, 0.0004407614469528198, 0.011365234851837158, 0.0296948105096817, -0.02585446834564209, 0.27681243419647217, 0.003178986255079508, 0.05711475387215614, -0.15805737674236298, 0.1955290287733078, -0.36896204948425293, -0.2207464873790741, -0.034721020609140396, 0.005460098385810852, 0.16753725707530975, -0.22629454731941223, -0.5818343162536621, -0.045004721730947495, -0.4573368430137634, 0.1102728396654129, -0.15113325417041779, 0.431711882352829, 0.03268809616565704, -0.32679587602615356, 0.4497899115085602, 0.01653553545475006, 0.599297821521759, 0.24267026782035828, 0.06538191437721252, 0.16910642385482788, -0.19394391775131226, -0.6289982795715332, 0.000936649739742279, 0.28821516036987305, -0.055801406502723694, 0.3640817701816559, 0.6817567944526672, -0.020728401839733124, -0.14278967678546906, -0.1771029233932495, 0.29645437002182007, -0.18256568908691406, -0.47645705938339233, -0.1564636528491974, -0.3197122812271118, -0.029884029179811478, 0.13619166612625122, 0.12239911407232285, 0.4730430245399475, 0.39702895283699036, -0.05103079974651337, -0.13971252739429474, -0.07949092239141464, 0.05691857635974884, 0.10254643857479095, 0.3265591263771057, -0.08313657343387604, 0.4017070233821869, -0.2665262520313263, 0.17240720987319946, -0.14368264377117157, 0.3578264117240906, -0.1594262570142746, 0.03290340676903725, 0.31694597005844116, -0.16907231509685516, -0.037893444299697876, 0.4042505621910095, 0.21794500946998596, 0.023043548688292503, -0.0922689214348793, 0.17553125321865082, -0.12898539006710052, -0.08146655559539795, -0.23953737318515778, -0.08942907303571701, 0.06210074946284294, -0.18281781673431396, 0.30735695362091064, 0.033795975148677826, 0.022925421595573425, 0.20294040441513062, -0.1777445524930954, 0.18034371733665466, 0.6944707632064819, 0.24025343358516693, 1.1032583713531494, -0.5289759039878845, -0.04971834272146225, 0.08036823570728302, 0.1587390899658203, -0.06739333271980286, -0.21954090893268585, -0.3331926167011261, -0.3431917726993561, 0.05123567208647728, 0.14075514674186707, -0.23787569999694824, -0.09885425120592117, 0.39704984426498413, 0.1244293823838234, -0.13595272600650787, -0.17075446248054504, 0.2494419515132904, -0.36184579133987427, 0.449215292930603, 0.008147178217768669, -0.48451459407806396, -0.5036976337432861, -0.0180476326495409, -0.022631816565990448, -0.07017599791288376, 0.05730694904923439, 0.14298149943351746, -0.013758063316345215, -0.10829611122608185, -0.04672463983297348, -0.19438277184963226, 0.14633725583553314, 0.16570307314395905, 0.2384938895702362, -0.24132251739501953, -0.1573360562324524, 0.458855003118515, 0.41830143332481384, -0.1278504729270935, -0.05740626901388168, 0.20508354902267456, 0.09407638013362885, 0.15660622715950012, 0.14138604700565338, -0.3012235760688782, 0.10084947198629379, -0.16781601309776306, 0.047864511609077454, -0.15834954380989075, -0.18085306882858276, -0.5726491212844849, -0.029308274388313293, 0.12758833169937134, 0.2592935860157013, -0.08126826584339142, -0.21702763438224792, -0.26797574758529663, 0.1614525020122528, -0.05603191256523132, 0.030119992792606354, 0.33568429946899414, 0.19790707528591156, 0.2878729999065399, -0.060054097324609756, -0.2725399434566498, 0.029441501945257187, 0.3319967985153198, 0.06957785785198212, -0.2590421438217163, 0.15963345766067505, 0.02031926065683365, -0.2458757758140564, -0.16670465469360352, 0.26854953169822693, 0.25663214921951294, -0.3890855610370636, 0.1351533681154251, -0.00545908510684967, -0.07113896310329437, 0.11057396233081818, 0.09180024266242981, 0.21136347949504852, 0.08339512348175049, -0.15342514216899872, -0.2042270004749298, -0.5619239211082458, -0.06939356029033661, 0.12084926664829254, 0.1197357326745987, 0.202774316072464, -0.5310314297676086, -0.23142963647842407, 0.10634510219097137, -0.14865939319133759, 0.022378340363502502, -0.05147804319858551, 0.09781776368618011, 0.025088783353567123, -0.09557798504829407, 0.08470940589904785, -0.11041496694087982, 0.0245974063873291, -0.12905985116958618, -0.058206457644701004, -0.0986010879278183, 0.066190704703331, 0.20221048593521118, -0.026172466576099396, -0.31348681449890137, -0.21494725346565247, -0.4446398913860321, -0.2229790836572647, -0.40789443254470825, -0.1421501636505127, 0.08219942450523376, -0.11038406193256378, -0.30815282464027405, 0.357740581035614, 0.17710117995738983, 0.03944416344165802, 0.43269163370132446, -0.03321079909801483, 0.41704386472702026, -0.051040973514318466, 0.12919659912586212, 0.08427991718053818, -0.19129273295402527, -0.23470538854599, 0.177718847990036, 0.28689098358154297, -0.14416983723640442, 0.3072480857372284, -0.15401993691921234, 0.040707290172576904, 0.2540169060230255, -0.051883116364479065, 0.12734243273735046, -0.07524330914020538, -0.2777111828327179, 0.18848773837089539, 0.05850102752447128, 0.031669870018959045, -0.2745826244354248, -0.03764020651578903, -0.1089215874671936, -0.2237672507762909, 0.30371567606925964, 0.5891482830047607, -0.21709024906158447, 0.03052789531648159, 0.02201099321246147, 0.5801919102668762, -0.07366719841957092, -0.4540024995803833, 0.5093351006507874, -0.027350932359695435, -0.01935655251145363, 0.20563389360904694, 0.10505712032318115, 0.015576820820569992, 0.5493292808532715, -0.1837940216064453, 0.07237818092107773, 0.38120242953300476, 0.6312500834465027, -0.45921891927719116, -0.2652800381183624, 0.32736408710479736, 0.3456685543060303, -0.26310858130455017, -0.16159409284591675, 0.2169777750968933, 0.2208639681339264, -0.1987280249595642, -0.07727161794900894, -0.25287994742393494, 0.2544393241405487, -0.24743787944316864, 0.013734221458435059, -0.3680059313774109, -0.004721939563751221, -0.003245137631893158, 0.20309357345104218, -0.29406529664993286, 0.059591952711343765, -0.206414133310318, 0.3588232696056366, 0.022591926157474518, 0.07798635214567184, 0.08460046350955963, 0.003243391402065754, 0.008520137518644333, -0.3517472743988037, -0.02092389389872551, -0.3850732445716858, -0.044469088315963745, 0.31637853384017944, -0.22346051037311554, 0.3441752791404724, 0.47061026096343994, 0.019763458520174026, 0.00423026829957962, -0.0007329918444156647, -0.0443938747048378, 0.0451008677482605, 0.16772964596748352, -0.10063180327415466, 0.21306157112121582, 0.13230368494987488, -0.10801962018013, -0.07202097773551941, -0.4006671905517578, -0.26584944128990173, 0.43889692425727844, 0.06987994909286499, 0.3287582993507385, 0.14105506241321564, -0.30154305696487427, -0.22640588879585266, 0.11611700057983398, -0.04015365242958069, -0.12964163720607758, 0.20200052857398987, 0.030519891530275345, 0.13413161039352417, -0.018448257818818092, -0.019769173115491867, -0.34995347261428833, 0.646686851978302, 0.3268619179725647, -0.37646862864494324, -0.15383285284042358, -0.34298980236053467, -0.6594374179840088, 0.09010370075702667, 0.13784059882164001, 0.010219082236289978, 0.4335325062274933, 0.2976466417312622, 0.41470202803611755, 0.05651156231760979, -0.09129376709461212, 0.0680738091468811, -0.0804569274187088, 0.3307954967021942, -0.04416738823056221, 0.09970307350158691, 0.06763491034507751, 0.1545775681734085, -0.2172722965478897, -0.4932134747505188, 0.43013477325439453, 0.2421674281358719, -0.08559531718492508, -0.16171862185001373, 0.07675476372241974, -0.22240173816680908, 0.5364192128181458, 0.3434118628501892, 0.04568581283092499, 0.044699884951114655, 0.33107325434684753, 0.05131440609693527, 0.18515723943710327, -0.049182046204805374, 0.06881215423345566, 0.16044557094573975, -0.11989660561084747, -0.07201183587312698, -0.10180939733982086, 0.3515324592590332, -0.1771848499774933, 0.07385952770709991, -0.32178011536598206, -0.13483287394046783, -0.10106262564659119, -0.05381109192967415, -0.25319528579711914, 0.22465780377388, 0.25785180926322937, -0.007413635961711407, 0.2533705234527588, 0.1613568365573883, -0.2900330126285553, -0.00146426260471344, 0.16364577412605286, -0.015229795128107071, -0.13339972496032715, -0.0005009733140468597, 0.15477043390274048, 0.259390264749527, 0.21195615828037262, -0.31608080863952637, -0.1988023817539215, 0.17412319779396057, -0.12797169387340546, -0.12736013531684875, 0.4363151788711548, -0.23842774331569672, 0.22399203479290009, -0.17760507762432098, 0.1725263148546219, -0.005529901012778282, -0.06101800128817558, -0.5113272666931152, -0.2912898063659668 ]
https://github.com/huggingface/datasets/issues/2096
Hello. I've been looking for information about German Conll2003 and found your question. Official site (https://www.clips.uantwerpen.be/conll2003/ner/) mentions that organizers provide only annotation. German texts (ECI Multilingual Text Corpus) are not freely available and can be ordered from the Linguistic Data Consortium. But maybe something has changed since 2003.
CoNLL 2003 dataset not including German
Hello, thanks for all the work on developing and maintaining this amazing platform, which I am enjoying working with! I was wondering if there is a reason why the German CoNLL 2003 dataset is not included in the [repository](https://github.com/huggingface/datasets/tree/master/datasets/conll2003), since a copy of it could be found in some places on the internet such as GitHub? I could help adding the German data to the hub, unless there are some copyright issues that I am unaware of... This is considering that many work use the union of CoNLL 2002 and 2003 datasets for comparing cross-lingual NER transfer performance in `en`, `de`, `es`, and `nl`. E.g., [XLM-R](https://www.aclweb.org/anthology/2020.acl-main.747.pdf). ## Adding a Dataset - **Name:** CoNLL 2003 German - **Paper:** https://www.aclweb.org/anthology/W03-0419/ - **Data:** https://github.com/huggingface/datasets/tree/master/datasets/conll2003
48
CoNLL 2003 dataset not including German Hello, thanks for all the work on developing and maintaining this amazing platform, which I am enjoying working with! I was wondering if there is a reason why the German CoNLL 2003 dataset is not included in the [repository](https://github.com/huggingface/datasets/tree/master/datasets/conll2003), since a copy of it could be found in some places on the internet such as GitHub? I could help adding the German data to the hub, unless there are some copyright issues that I am unaware of... This is considering that many work use the union of CoNLL 2002 and 2003 datasets for comparing cross-lingual NER transfer performance in `en`, `de`, `es`, and `nl`. E.g., [XLM-R](https://www.aclweb.org/anthology/2020.acl-main.747.pdf). ## Adding a Dataset - **Name:** CoNLL 2003 German - **Paper:** https://www.aclweb.org/anthology/W03-0419/ - **Data:** https://github.com/huggingface/datasets/tree/master/datasets/conll2003 Hello. I've been looking for information about German Conll2003 and found your question. Official site (https://www.clips.uantwerpen.be/conll2003/ner/) mentions that organizers provide only annotation. German texts (ECI Multilingual Text Corpus) are not freely available and can be ordered from the Linguistic Data Consortium. But maybe something has changed since 2003.
[ 0.12964347004890442, -0.2095487117767334, 0.017512492835521698, 0.2725329101085663, -0.1983649730682373, 0.15637636184692383, 0.14306342601776123, -0.11184917390346527, -0.6617125868797302, 0.242000550031662, -0.11225394904613495, 0.04941646382212639, 0.1308349072933197, -0.032976098358631134, -0.12547382712364197, 0.17438127100467682, 0.22903437912464142, 0.08582868427038193, 0.4644852578639984, -0.35869741439819336, -0.030010949820280075, 0.3030664026737213, -0.3621344566345215, -0.33990898728370667, -0.4655015468597412, 0.4032812714576721, -0.2699658274650574, 0.05602522939443588, -0.33364999294281006, -0.24391283094882965, 0.38212698698043823, 0.021341880783438683, 0.20837700366973877, 0.17645885050296783, -0.00012335897190496325, -0.16327276825904846, 0.16454997658729553, -0.22007545828819275, -0.3654650151729584, -0.13184380531311035, -0.2564298212528229, -0.1050366759300232, -0.2619211971759796, -0.04885131120681763, -0.046543095260858536, 0.5371986627578735, -0.05633258819580078, 0.31404635310173035, -0.20578555762767792, 0.1924092024564743, 0.06579040735960007, 0.3753325939178467, 0.18136680126190186, -0.11635643243789673, 0.28053754568099976, 0.2673168182373047, -0.29596829414367676, 0.519494891166687, 0.39511919021606445, 0.3228389322757721, -0.024798285216093063, 0.1646524965763092, 0.21297383308410645, -0.1460106074810028, -0.0017466424033045769, 0.04830072820186615, 0.057845234870910645, -0.314187616109848, -0.10707207024097443, 0.11955626308917999, 0.42620986700057983, 0.024513954296708107, -0.40661969780921936, -0.24018925428390503, 0.1804518699645996, -0.08956659585237503, -0.08172862231731415, 0.1046149730682373, -0.2027435153722763, 0.28238651156425476, 0.023722190409898758, -0.7034639120101929, -0.27156364917755127, 0.22795160114765167, -0.335602343082428, 0.8708804249763489, -0.056589525192976, -0.08432246744632721, 0.09471310675144196, 0.337333083152771, 0.312868595123291, -0.10519606620073318, -0.0009932853281497955, -0.09249231219291687, -0.20271781086921692, -0.25329887866973877, 0.11337214708328247, 0.15792284905910492, 0.019210048019886017, 0.1473008692264557, -0.17214971780776978, -0.20965959131717682, -0.18808884918689728, 0.04434598982334137, 0.21864189207553864, -0.00032689422369003296, 0.0943642109632492, 0.12672127783298492, 0.23598334193229675, -0.11813303083181381, 0.47008076310157776, 0.025570563971996307, -0.378781795501709, 0.34545305371284485, -0.44104939699172974, 0.05870185047388077, -0.09751056879758835, -0.4426851272583008, -0.1555192768573761, -0.07967211306095123, -0.04237738251686096, -0.18459674715995789, -0.03376639261841774, 0.15496522188186646, -0.029073046520352364, 0.18771710991859436, -0.3158093988895416, 0.19816896319389343, -0.041931942105293274, -0.39850762486457825, -0.0768476277589798, 0.063595712184906, -0.24698741734027863, -0.3040275275707245, 0.1450299769639969, -0.408031702041626, 0.16787418723106384, -0.14447598159313202, 0.2613846957683563, 0.23305046558380127, 0.030040733516216278, -0.039769597351551056, 0.34621894359588623, 0.02448205277323723, -0.01240047812461853, 0.228936105966568, -0.10437746345996857, -0.18350458145141602, -0.33223605155944824, -0.0697358101606369, -0.3001794219017029, -0.3087165355682373, -0.5355541110038757, -0.03419205918908119, -0.37390267848968506, -0.4184364378452301, 0.296512633562088, 0.10150768607854843, -0.23509655892848969, -0.30390357971191406, 0.0004809722304344177, 0.2400090992450714, -0.41882941126823425, -0.1307152509689331, 0.24863427877426147, 0.36780846118927, -0.26957541704177856, -0.15692085027694702, -0.07704558968544006, -0.15515388548374176, 0.16673949360847473, 0.10865011811256409, -0.09444856643676758, 0.04978339374065399, -0.2894994914531708, 0.09045599400997162, 0.13645492494106293, -0.6013335585594177, -0.6033163666725159, -0.0381118506193161, 0.007184073328971863, -0.06467680633068085, -0.08885365724563599, 0.1812630295753479, 0.21722668409347534, -0.18911337852478027, 0.11285622417926788, 0.21510165929794312, 0.11959782242774963, -0.28997719287872314, 0.12093338370323181, -0.027642715722322464, -0.04529333487153053, 0.02833818644285202, 0.03722364827990532, 0.11559727042913437, 0.177786722779274, 0.2695441246032715, 0.19772467017173767, 0.06237594783306122, 0.3486471176147461, 0.634227991104126, 0.35176119208335876, 0.0011646747589111328, -0.06109784170985222, 0.1839885413646698, -0.3467903733253479, 0.21498098969459534, -0.08331341296434402, 0.6522347927093506, 0.16071705520153046, 0.047311343252658844, -0.20240157842636108, -0.10604400187730789, -0.13012707233428955, -0.4445696771144867, 0.02994423359632492, 0.2571905553340912, 0.22410458326339722, 0.315015584230423, 0.06114228069782257, 0.3767765164375305, 0.1733390986919403, -0.15572777390480042, -0.4038526117801666, 0.31325095891952515, -0.23745985329151154, -0.15704256296157837, 0.1411965787410736, 0.48076435923576355, -0.0996876209974289, -0.03817596286535263, -0.09917284548282623, 0.009606175124645233, -0.09698192775249481, 0.12287364900112152, 0.3716238737106323, 0.1265590488910675, 0.13473138213157654, -0.05063708871603012, 0.03696286678314209, -0.4267043471336365, -0.20827141404151917, -0.04839058965444565, -0.05702880397439003, 0.02194303646683693, 0.6463997960090637, -0.07539920508861542, 0.054750025272369385, 0.3143720030784607, -0.0347973108291626, -0.03792079538106918, -0.13498158752918243, -0.35987967252731323, 0.12441069632768631, 0.16348372399806976, 0.1852782815694809, 0.3026987910270691, -0.3068356513977051, -0.22685708105564117, 0.4968310296535492, 0.1594371646642685, 0.049429360777139664, 0.2113662213087082, -0.43668586015701294, 0.0501900389790535, 0.40930619835853577, 0.296198308467865, 0.15256910026073456, 0.1883772909641266, 0.4512607753276825, -0.02004186250269413, 0.2025187611579895, 0.0089726522564888, 0.08090422302484512, 0.004310941323637962, 0.3544468581676483, 0.09375942498445511, 0.14526064693927765, 0.23918604850769043, -0.30140364170074463, -0.11352553963661194, -0.011224742978811264, 0.05817665904760361, 0.030870117247104645, -0.17220640182495117, -0.1756850928068161, -0.017184913158416748, -0.1110353022813797, -0.0288532841950655, -0.6450346112251282, -0.25374507904052734, -0.006806764751672745, 0.07348066568374634, 0.1765083372592926, -0.02297879382967949, -0.21103216707706451, 0.16081202030181885, -0.4315430521965027, -0.1259133219718933, -0.150974303483963, -0.1477627456188202, -0.3623065948486328, 0.0024571865797042847, -0.07816874980926514, -0.1189330518245697, 0.2606515884399414, -0.37973752617836, 0.37758803367614746, -0.2004464864730835, -0.43442797660827637, 0.45492470264434814, -0.19359193742275238, -0.18161770701408386, -0.11320023238658905, -0.25780636072158813, -0.37689030170440674, 0.08293451368808746, 0.056063614785671234, 0.09113188832998276, -0.3863033652305603, 0.2336367815732956, -0.20862933993339539, -0.014102522283792496, -0.005437813699245453, -0.215815007686615, -0.35856905579566956, -0.3128359317779541, -0.005104579031467438, -0.17078378796577454, -0.18848419189453125, 0.1796715408563614, -0.2854022681713104, -0.05275816097855568, -0.2968738377094269, 0.25297075510025024, -0.23259036242961884, -0.1991787850856781, 0.6325917840003967, -0.17194625735282898, -0.3227749466896057, 0.05833916366100311, -0.12323859333992004, 0.3511059582233429, -0.19170767068862915, -0.5499587655067444, 0.04978134483098984, 0.06589558720588684, 0.0716007649898529, 0.09855904430150986, 0.07304393500089645, 0.4642779231071472, -0.07747310400009155, 0.03907587751746178, -0.22674217820167542, -0.13102814555168152, -0.1318052113056183, 0.3806123733520508, 0.4795425534248352, -0.10070410370826721, -0.246248260140419, 0.34054937958717346, 0.19026035070419312, 0.41981855034828186, 0.09512105584144592, 0.29638296365737915, 0.008907642215490341, 0.4679337441921234, 0.0985121801495552, -0.310943067073822, 0.11263158917427063, -0.06596584618091583, 0.21399688720703125, 0.31138619780540466, 0.25740867853164673, -0.3432905375957489, -0.3337678015232086, -0.07085008919239044, -0.02156827598810196, -0.05475390702486038, -0.11125108599662781, -0.2555962800979614, 0.6011887788772583, 0.041474759578704834, -0.17012763023376465, -0.1466006338596344, -0.2566685974597931, 0.1362570971250534, -0.10580994188785553, 0.19345661997795105, -0.04454626142978668, -0.16093634068965912, 0.21334308385849, -0.6672106385231018, 0.08546892553567886, 0.06462062895298004, 0.3651074767112732, -0.3605901300907135, 0.17759919166564941, 0.12375377118587494, 0.23765993118286133, 0.6076180338859558, -0.5476343631744385, -0.31763264536857605, -0.019249502569437027, 0.195814311504364, -0.3387114703655243, 0.128229558467865, -0.25702083110809326, -0.2140599489212036, 0.8937453627586365, 0.18328486382961273, -0.19912442564964294, -0.2580310106277466, 0.1847423017024994, 0.11398791521787643, -0.23411041498184204, -0.0630681961774826, -0.38855597376823425, 0.09017649292945862, -0.3312094807624817, -0.27932408452033997, 0.0505770668387413, -0.11760897934436798, 0.32707756757736206, 0.0641109049320221, 0.2947314977645874, 0.27412575483322144, 0.1901705265045166, 0.07270392775535583, 0.19248434901237488, 0.3822990655899048, -0.11514726281166077, 0.30789363384246826, 0.3280718922615051, 0.07203276455402374, 0.5554357767105103, 0.10622560977935791, -0.5961084365844727, 0.47212669253349304, -0.31941211223602295, 0.5982288122177124, 0.1324155330657959, 0.3211727738380432, -0.09303471446037292, -0.002049040049314499, -0.19548483192920685, -0.3701436221599579, -0.04310048744082451, 0.2986277937889099, -0.03333992883563042, -0.44693315029144287, 0.14920035004615784, -0.009986918419599533, 0.17716704308986664, -0.0501827597618103, -0.3217768967151642, 0.291229248046875, 0.014021072536706924, 0.0035716593265533447, 0.0459570549428463, 0.9229451417922974, 0.31690600514411926, 0.1667841225862503, 0.11515437066555023, -0.17259475588798523, 0.2872158885002136, 0.09068915992975235, -0.025928499177098274, -0.0686156302690506, -0.0038619786500930786, -0.20577673614025116, -0.1392332911491394, -0.30461663007736206, 0.13374917209148407, -0.1917913258075714, 0.13159681856632233, 0.13330885767936707, 0.01775340735912323, 0.14914557337760925, 0.49518609046936035, -0.11086153239011765, -0.00046343542635440826, 0.4275500476360321, 0.03970274329185486, 0.20848333835601807, 0.6428422927856445, -0.003063969314098358, -0.2159067839384079, -0.49021002650260925, -0.08536745607852936, -0.529561460018158, 0.13503485918045044, 0.3188280761241913, 0.0998419001698494, 0.27027639746665955, -0.4166068434715271, 0.3475111126899719, 0.42305776476860046, 0.47715818881988525, -0.0685671865940094, -0.38078638911247253, 0.015403984114527702, 0.12641747295856476, -0.07915652543306351, 0.5932704210281372, -0.06980948150157928, 0.1885877251625061, -0.24046939611434937, -0.3560386300086975, 0.11362073570489883, -0.00679565966129303, -0.2628222703933716, -0.00389176607131958, 0.15945973992347717, -0.28048840165138245, 0.060690805315971375, 0.15155939757823944, 0.5354610681533813, 0.013280577957630157, -0.195513054728508, 0.0413583368062973, 0.1266518235206604, -0.04526336491107941, -0.16159437596797943, -0.08034057915210724, -0.28728705644607544, -0.13963007926940918, 0.24710913002490997, 0.07833367586135864, -0.055941902101039886, 0.28835809230804443, 0.12747126817703247, -0.017358090728521347, -0.021976888179779053, -0.006944283843040466, -0.17439904808998108, -0.7036389112472534, -0.23262779414653778, 0.03815362975001335, -0.05635733902454376, -0.37016844749450684, 0.08859000355005264, 0.09016262739896774, -0.13240373134613037, -0.30279749631881714, -0.09027694165706635, -0.04826146736741066, 0.06185067072510719, -0.06933118402957916, 0.2545297145843506, -0.17849838733673096, -0.010707415640354156, 0.0047136396169662476, -0.13353125751018524, -0.18064427375793457, 0.08834832906723022, -0.254110187292099, -0.02734548971056938, -0.1400589644908905, -0.03975098580121994, -0.0346035435795784, -0.1668388545513153, -0.04441621154546738, -0.20011261105537415, -0.07787148654460907, -0.008032500743865967, -0.06786464154720306, 0.16042202711105347, 0.14454804360866547, 0.2146783471107483, -0.09768553078174591, -0.03634948283433914, -0.1431640386581421, 0.0032065659761428833, -0.07664971053600311, 0.1296844482421875, 0.15791267156600952, 0.3468904495239258, -0.06932604312896729, 0.21036632359027863, 0.14666612446308136, 0.32887765765190125, 0.1978323757648468, 0.33903902769088745, 0.13539353013038635, 0.415082186460495, 0.04772423952817917, 0.21846354007720947, -0.11718720942735672, 0.2449057698249817, -0.1305927038192749, -0.08900842070579529, 0.004323906265199184, 0.08460387587547302, 0.3753504753112793, 0.22993223369121552, 0.04241281747817993, -0.21551530063152313, -0.06702756136655807, 0.017827019095420837, 0.3191373944282532, 0.0823601484298706, -0.24479620158672333, -0.2507586181163788, 0.041846856474876404, 0.13158749043941498, 0.058863505721092224, 0.07090899348258972, 0.3675045967102051, 0.32766419649124146, 0.22250519692897797, 0.03230644762516022, 0.06921012699604034, 0.3730471432209015, 0.0866386741399765, -0.05462871491909027, 0.21897011995315552, 0.29233887791633606, 0.1748325228691101, -0.13684380054473877, -0.1410406231880188, -0.2055751234292984, 0.5721851587295532, 0.03747561573982239, -0.10665980726480484, 0.2877485752105713, 0.41277340054512024, -0.1962684690952301, 0.2037031203508377, -0.12091707438230515, 0.27769070863723755, 0.01297779195010662, 0.02536705881357193, 0.18161791563034058, 0.01570284739136696, 0.07158072292804718, -0.44404950737953186, 0.22784218192100525, -0.05104568228125572, 0.0738857090473175, 0.023219816386699677, -0.07338754832744598, 0.04794953763484955, 0.188022181391716, 0.18891185522079468, -0.2439877837896347, -0.2769787013530731, 0.12177638709545135, -0.10679593682289124, -0.10469937324523926, 0.1746288537979126, 0.08185293525457382, 0.1357700079679489, -0.20675817131996155, 0.09957225620746613, -0.19089287519454956, -0.06357079744338989, -0.10798978805541992, 0.4688698947429657, 0.29944053292274475, -0.15369820594787598, 0.284629225730896, 0.034726761281490326, 0.06603357195854187, -0.054546140134334564, -0.15894700586795807, 0.3580796718597412, 0.19895458221435547, 0.11093328893184662, 0.15595342218875885, 0.03107791393995285, 0.025531090795993805, -0.3227020502090454, 0.16133463382720947, -0.11378404498100281, -0.017631657421588898, 0.45133864879608154, -0.21548515558242798, -0.06908528506755829, -0.06650121510028839, 0.25821366906166077, -0.36980605125427246, 0.30428317189216614, 0.28958895802497864, -0.3157753646373749, -0.10066893696784973, -0.1308915615081787, -0.014113638550043106, -0.1242990791797638, 0.11873359978199005, 0.5693210363388062, 0.37245267629623413, -0.03417929261922836, -0.6268969178199768, -0.42171812057495117, 0.29603666067123413, 0.08048468083143234, -0.10790995508432388, -0.03094053454697132, 0.13698500394821167, 0.13369938731193542, 0.17582565546035767, -0.16191506385803223, 0.10685741901397705, -0.4148552417755127, 0.10161910951137543, -0.3419950008392334, -0.07854323834180832, 0.1204790398478508, 0.23051193356513977, -0.2020876705646515, 0.10908760130405426, -0.002586839720606804, 0.13212831318378448, -0.12120354175567627, -0.24454474449157715, -0.05995461717247963, -0.08671718835830688, 0.11716751754283905, 0.3767160177230835, 0.1330680549144745, 0.4297761023044586, -0.1275133192539215, -0.2812688946723938, -0.00867554359138012, -0.055100470781326294, 0.21929426491260529, -0.1028694212436676, -0.24173635244369507, 0.08143837749958038, -0.39551839232444763, -0.05645065754652023, 0.12159338593482971, 0.2437918782234192, 0.25853267312049866, 0.1971442848443985, -0.4065440893173218, 0.29461395740509033, -0.08418447524309158, 0.06326272338628769, 0.2706049680709839, 0.11532680690288544, 0.052938759326934814, -0.2176549881696701, -0.05661783367395401, 0.08050509542226791, 0.23940858244895935, 0.07319041341543198, 0.10340655595064163, -0.33972832560539246, -0.11395792663097382, -0.04964984208345413, -0.09127177298069, -0.36312901973724365, -0.025826536118984222, 0.37575051188468933, 0.36616191267967224, -0.18966031074523926, 0.4236830472946167, 0.22705809772014618, -0.1485835313796997, 0.038542240858078, 0.5147516131401062, -0.10190555453300476, -0.36749693751335144, 0.1675797998905182, 0.03096006065607071 ]
https://github.com/huggingface/datasets/issues/2092
Hi ! We plan to add streaming features in the future. This should allow to load a dataset instantaneously without generating the arrow table. The trade-off is that accessing examples from a streaming dataset must be done in an iterative way, and with an additional (but hopefully minor) overhead. What do you think about this ? If you have ideas or suggestions of what you expect from such features as a user, feel free to share them, this is really valuable to us !
How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
84
How to disable making arrow tables in load_dataset ? Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? Hi ! We plan to add streaming features in the future. This should allow to load a dataset instantaneously without generating the arrow table. The trade-off is that accessing examples from a streaming dataset must be done in an iterative way, and with an additional (but hopefully minor) overhead. What do you think about this ? If you have ideas or suggestions of what you expect from such features as a user, feel free to share them, this is really valuable to us !
[ -0.3108789920806885, -0.3046276867389679, -0.1025218516588211, -0.04798014834523201, 0.06876865774393082, -0.07005511224269867, 0.19108642637729645, -0.05083442106842995, 0.1361464262008667, 0.15695089101791382, 0.3037063777446747, 0.19406819343566895, -0.18489845097064972, 0.373088002204895, 0.31755658984184265, -0.007721546106040478, 0.12019185721874237, 0.4260939657688141, -0.2305735945701599, 0.04688703268766403, -0.00751524418592453, -0.391500324010849, -0.10267229378223419, -0.012018855661153793, -0.023875653743743896, -0.17914536595344543, 0.2561785578727722, -0.22686713933944702, -0.3328368663787842, -0.2920052111148834, -0.09484237432479858, 0.3715643584728241, -0.14817127585411072, 0.16227519512176514, -0.00012079064617864788, -0.042889103293418884, 0.137464240193367, 0.05904889106750488, -0.5849155783653259, -0.10303346812725067, -0.18410953879356384, 0.04250045865774155, 0.43694815039634705, 0.0075865089893341064, 0.21012693643569946, -0.3526921272277832, -0.13963578641414642, -0.49505874514579773, 0.10051625967025757, -0.2342173159122467, 0.1155824363231659, 0.10272292792797089, -0.3094598650932312, 0.23369233310222626, 0.3298901617527008, 0.45367351174354553, -0.542946994304657, 0.07202012091875076, 0.2324800044298172, 0.043136656284332275, -0.12105679512023926, 0.2974914610385895, -0.20077019929885864, -0.15289396047592163, 0.5350204110145569, -0.09987437725067139, -0.2107018232345581, -0.40750664472579956, -0.07281802594661713, 0.30704423785209656, 0.8722038865089417, -0.23140773177146912, -0.2588222324848175, -0.3002795875072479, 0.2959439754486084, -0.24925900995731354, 0.019924579188227654, 0.2672726511955261, -0.18432848155498505, 0.06387899816036224, -0.4113723039627075, -0.536726713180542, -0.3401834964752197, -0.08410313725471497, 0.5507416129112244, -0.17500044405460358, 0.03721911832690239, -0.006078723818063736, 0.19790616631507874, 0.022497504949569702, 0.6170962452888489, -0.22644415497779846, -0.20229634642601013, 0.18203705549240112, -0.19227911531925201, -0.21221664547920227, -0.05639982223510742, 0.2362247109413147, 0.19039878249168396, 0.4510352313518524, 0.7375757694244385, -0.03298609331250191, 0.27553606033325195, -0.1032702773809433, -0.1177368015050888, 0.08252231776714325, 0.19565781950950623, -0.1914612054824829, 0.2349565029144287, 0.17401768267154694, 0.2198190689086914, 0.01799965463578701, 0.12570862472057343, -0.04695612192153931, -0.10228628665208817, -0.13419586420059204, 0.12626193463802338, -0.1515742838382721, 0.081167072057724, -0.028539441525936127, -0.11625531315803528, -0.07504293322563171, 0.29932868480682373, 0.055591896176338196, 0.18860721588134766, 0.20442521572113037, -0.18710526823997498, 0.3508720397949219, -0.08049815893173218, -0.25715330243110657, 0.008863050490617752, -0.20003077387809753, -0.16645485162734985, 0.4750286638736725, 0.3624807894229889, -0.08760350942611694, -0.12687984108924866, 0.36861997842788696, -0.06115216016769409, 0.2437933087348938, 0.3272445499897003, -0.2562050223350525, 0.09297284483909607, 0.31775107979774475, -0.0812242403626442, -0.21869777143001556, -0.11189426481723785, 0.2880063056945801, -0.08307009935379028, 0.3657185435295105, 0.00539545901119709, -0.5483019948005676, 0.1708899289369583, 0.09285298734903336, -0.12746772170066833, -0.02463720552623272, -0.7149608135223389, 0.4606953561306, -0.25793567299842834, 0.040166184306144714, 0.27836284041404724, 0.15707342326641083, -0.048040229827165604, -0.11016012728214264, 0.08580721169710159, 0.3789238929748535, -0.2608046531677246, -0.023244082927703857, 0.05424921214580536, -0.1358053982257843, 0.12181025743484497, -0.010606667026877403, -0.4702015817165375, 0.20001526176929474, 0.0462346225976944, -0.13319891691207886, 0.549813449382782, 0.2194538712501526, -0.11467970907688141, 0.3090105950832367, -0.00803741067647934, 0.17397281527519226, 0.436806857585907, 0.1638064831495285, 0.033226609230041504, -0.07410985231399536, -0.3550986051559448, 0.19971570372581482, 0.09997346997261047, -0.15824852883815765, 0.038643985986709595, -0.29262909293174744, 0.299613356590271, -0.05040173977613449, -0.3303484320640564, 0.3204108774662018, 0.15872904658317566, -0.22192540764808655, 0.07071565091609955, -0.30531251430511475, -0.16526347398757935, -0.1405465304851532, 0.22036172449588776, 0.1397407054901123, -0.08334556221961975, 0.16561540961265564, -0.5774096846580505, 0.22318974137306213, 0.1686060130596161, -0.08162075281143188, 0.05175214260816574, -0.278685986995697, 0.2936159372329712, 0.2566470205783844, 0.0069581689313054085, 0.29855212569236755, -0.022673707455396652, -0.4991947412490845, -0.05248420685529709, -0.282856285572052, -0.42510494589805603, 0.13057325780391693, -0.45861780643463135, 0.10972540080547333, -0.33910971879959106, 0.18366777896881104, 0.3947966396808624, 0.07195712625980377, -0.10096722841262817, 0.019707970321178436, -0.09543934464454651, 0.12509466707706451, -0.18202711641788483, 0.1980029046535492, 0.12730661034584045, 0.4344159662723541, 0.07195921242237091, 0.5853418111801147, 0.14169661700725555, -0.3799537718296051, 0.33784154057502747, -0.25955063104629517, 0.21714457869529724, -0.05171867832541466, -0.0917368084192276, 0.21843431890010834, -0.38351893424987793, 0.4063923954963684, 0.2279461920261383, -0.19133177399635315, -0.004031091928482056, 0.30141574144363403, -0.2829812467098236, -0.12114210426807404, 0.19923219084739685, 0.03726835921406746, 0.09407584369182587, 0.17320118844509125, -0.2697512209415436, -0.040375836193561554, -0.15681588649749756, -0.0427139513194561, -0.07626606523990631, 0.15612424910068512, -0.010928437113761902, -0.32047420740127563, 0.2867370843887329, -0.09277983754873276, 0.3964141011238098, 0.19841282069683075, 0.08209212124347687, -0.06517679989337921, 0.08171707391738892, -0.2824462056159973, 0.4200904071331024, 0.12051893770694733, 0.32581406831741333, 0.03099658340215683, -0.09696167707443237, -0.003979727625846863, -0.43862366676330566, -0.10531623661518097, -0.12238216400146484, -0.1773044317960739, -0.3413567543029785, 0.008996427059173584, -0.15407028794288635, -0.19557109475135803, 0.14674122631549835, -0.11888996511697769, -0.10218947380781174, -0.012622959911823273, 0.23945385217666626, 0.18345880508422852, -0.10758395493030548, -0.10364366322755814, -0.21733349561691284, 0.5270034074783325, -0.19924752414226532, -0.02517160400748253, -0.5137592554092407, -0.045212943106889725, 0.198899045586586, 0.04725928232073784, 0.0032079555094242096, 0.06616842746734619, 0.4163729250431061, 0.1682758629322052, 0.1379341036081314, -0.398355096578598, -0.17448730766773224, 0.12065200507640839, -0.03689061105251312, -0.09634339809417725, 0.08704938739538193, 0.1624215692281723, -0.08429034054279327, -0.10471685230731964, -0.09658302366733551, -0.3372974693775177, -0.07994545251131058, 0.10495211184024811, -0.33262860774993896, 0.26695290207862854, -0.0691862404346466, 0.056668058037757874, -0.0044630784541368484, -0.276760995388031, 0.2775222063064575, 0.048598408699035645, 0.0606905035674572, 0.14811797440052032, 0.0797358900308609, 0.023363474756479263, 0.1676540970802307, 0.09617036581039429, -0.052121471613645554, -0.3047828674316406, 0.28453803062438965, -0.16728182137012482, -0.16854971647262573, 0.09236863255500793, 0.06489454209804535, 0.03495137766003609, 0.5637580156326294, -0.6988592147827148, 0.31328609585762024, -0.1534544825553894, -0.018897131085395813, -0.3195337951183319, -0.18695175647735596, 0.13863693177700043, 0.14783048629760742, 0.00790455937385559, -0.11868414282798767, 0.19939148426055908, 0.020772390067577362, 0.011829566210508347, -0.045418232679367065, 0.16490040719509125, 0.4724433720111847, -0.27996546030044556, 0.749902069568634, -0.23283648490905762, 0.2019321471452713, 0.25624093413352966, 0.06318587809801102, 0.29664844274520874, -0.26360440254211426, 0.19229117035865784, -0.2881790101528168, -0.18367820978164673, 0.013184309005737305, 0.03285248577594757, 0.0454576276242733, -0.32483214139938354, -0.3126921057701111, 0.191799134016037, 0.12706102430820465, 0.04175979644060135, 0.08217890560626984, -0.8073261976242065, 0.10149513185024261, -0.018574804067611694, 0.07638459652662277, -0.1245131865143776, -0.234216570854187, -0.019826918840408325, -0.12750199437141418, 0.5562237501144409, -0.14635880291461945, -0.4232420027256012, -0.06458356231451035, -0.24796947836875916, 0.038236044347286224, -0.030279699712991714, 0.1276203989982605, 0.03672468662261963, -0.18588384985923767, 0.22398583590984344, 0.2786921262741089, 0.16546620428562164, -0.03365496173501015, -0.28041476011276245, -0.19695989787578583, -0.1634918749332428, -0.31677502393722534, 0.1226157695055008, 0.024201154708862305, 0.12952299416065216, -0.46522459387779236, 0.12840119004249573, -0.006417080760002136, -0.21356213092803955, 0.006853008642792702, 0.3506617844104767, -0.0871526449918747, -0.19968141615390778, -0.20587259531021118, 0.1956336349248886, -0.050898388028144836, -0.05243749916553497, -0.03787056729197502, -0.2354496270418167, -0.4645160138607025, -0.27316075563430786, -0.23413024842739105, 0.08585763722658157, 0.1269870400428772, 0.0659002810716629, 0.22963201999664307, -0.03955060988664627, 0.020317502319812775, 0.4007851183414459, 0.037117939442396164, 0.18473173677921295, 0.5451724529266357, 0.2208450883626938, -0.3756823241710663, 0.10306503623723984, 0.02477508783340454, 0.3193545639514923, 0.42435604333877563, -0.16235345602035522, 0.34456127882003784, 0.02681741863489151, 0.029684269800782204, -0.2936316728591919, -0.27953460812568665, 0.0181758850812912, -0.3120168447494507, -0.12595835328102112, -0.6251106262207031, 0.48530641198158264, 0.010801628232002258, -0.11165398359298706, 0.7630066871643066, 0.0746070146560669, -0.17695540189743042, 0.31757763028144836, 0.2784121036529541, 0.964188277721405, 0.11812439560890198, 0.1516844630241394, 0.33790504932403564, -0.1131618395447731, 0.19881045818328857, -0.24977561831474304, 0.09381915628910065, -0.02582237869501114, -0.5687530636787415, -0.15152058005332947, -0.291873574256897, 0.300747811794281, 0.4270746409893036, -0.04354609176516533, 0.06066872179508209, -0.2622159421443939, 0.2980576753616333, -0.07337460666894913, 0.016788549721240997, -0.2591686546802521, -0.3974760174751282, -0.4063352048397064, 0.014231361448764801, 0.10670087486505508, -0.2799775004386902, -0.08344344794750214, 0.1473345160484314, 0.2530606985092163, -0.23051363229751587, 0.06952294707298279, -0.050354521721601486, -0.39535748958587646, 0.12179715931415558, -0.2768024802207947, -0.42141658067703247, 0.1907433271408081, 0.2504664361476898, -0.2979568839073181, -0.08297997713088989, -0.13887695968151093, 0.0645047128200531, 0.4400084912776947, 0.3049493730068207, -0.40492844581604004, 0.1805904507637024, 0.06500200927257538, -0.10865773260593414, -0.13299597799777985, 0.23980720341205597, -0.13663899898529053, -0.22052617371082306, 0.01437753438949585, -0.17166604101657867, 0.30948516726493835, 0.004568416625261307, 0.1812601089477539, 0.1024336889386177, 0.2157660871744156, 0.0518089234828949, 0.05704298987984657, 0.08117334544658661, 0.06955321133136749, -0.06098350137472153, 0.12303590029478073, -0.23937833309173584, -0.1617501974105835, 0.1064377874135971, 0.20695769786834717, -0.12107439339160919, 0.3754948079586029, -0.052848249673843384, -0.3789213299751282, -0.2747313976287842, 0.289359986782074, 0.13974133133888245, -0.7035723924636841, -0.07381624728441238, 0.1489482969045639, 0.04863044619560242, 0.003359932452440262, -0.00010061357170343399, 0.019045528024435043, 0.05788975581526756, -0.16349941492080688, 0.10716230422258377, -0.20243719220161438, 0.18517623841762543, -0.034072816371917725, 0.2404623180627823, -0.06951484829187393, -0.7264938354492188, 0.18704015016555786, 0.13609877228736877, -0.18777437508106232, -0.25149238109588623, 0.41082924604415894, -0.07025159895420074, -0.06303772330284119, 0.3864991068840027, -0.13464489579200745, -0.018186956644058228, -0.030204221606254578, -0.17212918400764465, -0.17504343390464783, -0.09754117578268051, -0.05440185219049454, 0.2513287365436554, 0.005932189524173737, -0.07124625146389008, -0.29889148473739624, -0.26559263467788696, -0.33273905515670776, -0.11610047519207001, 0.23616090416908264, -0.11527200043201447, 0.014365274459123611, -0.21702563762664795, 0.46558400988578796, 0.06960390508174896, -0.46288037300109863, 0.22133967280387878, 0.07239042967557907, 0.3732801377773285, 0.10057022422552109, -0.05796796828508377, 0.24261921644210815, -0.2007865607738495, -0.0334785096347332, 0.19310961663722992, 0.11669471859931946, -0.02073749527335167, 0.08658891916275024, -0.03205808997154236, 0.26660850644111633, -0.26540982723236084, -0.06682596355676651, 0.4697326421737671, 0.10043677687644958, -0.40311622619628906, 0.3078162968158722, 0.07764845341444016, -0.12277404963970184, -0.2271871119737625, -0.09826359152793884, 0.07897426187992096, -0.10928337275981903, 0.2004920244216919, 0.36732017993927, 0.04076454043388367, -0.16345497965812683, -0.027683857828378677, -0.3696683645248413, -0.0030447691679000854, 0.2932276427745819, 0.48054468631744385, -0.06047101318836212, -0.09043051302433014, -0.08803196996450424, 0.3710190951824188, -0.06255089491605759, -0.18688195943832397, 0.10752001404762268, 0.41495615243911743, 0.3388374447822571, 0.2124040722846985, -0.021789155900478363, -0.29714125394821167, -0.4956046938896179, 0.01967625319957733, -0.3421943485736847, 0.032554976642131805, 0.17445631325244904, 0.1863134503364563, 0.4558747112751007, -0.2427096664905548, -0.21879953145980835, -0.20680715143680573, 0.13992740213871002, 0.0624866783618927, -0.17745321989059448, -0.10074710845947266, -0.10634971410036087, 0.019708402454853058, -0.07569549977779388, 0.3763747215270996, 0.24802349507808685, 0.04866057261824608, 0.2859094440937042, -0.0791630670428276, 0.5971515774726868, 0.24962309002876282, 0.3290766179561615, 0.10917015373706818, -0.07604949921369553, -0.05947507917881012, 0.22144725918769836, 0.08174830675125122, 0.18192310631275177, -0.2918078601360321, 0.2225525975227356, -0.05169764906167984, 0.009340256452560425, 0.3133378326892853, -0.03942461311817169, 0.12309219688177109, 0.3916553258895874, 0.4307100772857666, 0.0155738964676857, 0.25030073523521423, -0.030043357983231544, 0.06181791052222252, 0.20817407965660095, 0.11102527379989624, 0.2306714802980423, -0.2183975875377655, 0.09348830580711365, 0.31686413288116455, -0.24412721395492554, 0.15660636126995087, 0.016038287431001663, 0.004205934703350067, 0.052098408341407776, 0.5282919406890869, -0.32120198011398315, -0.28641006350517273, -0.1384582668542862, 0.01648079976439476, -0.07302767038345337, 0.7810721397399902, 0.01892451010644436, 0.25909197330474854, -0.08304193615913391, -0.21210196614265442, -0.27544987201690674, -0.20167358219623566, 0.05076875165104866, 0.39897963404655457, 0.40410664677619934, 0.045776598155498505, 0.23100478947162628, 0.4444926679134369, -0.04954342544078827, -0.43499866127967834, -0.08375786244869232, 0.18483319878578186, -0.08797817677259445, -0.1295757293701172, 0.08802762627601624, 0.4434049129486084, -0.5368411540985107, -0.1422271877527237, 0.08758793026208878, 0.08251932263374329, -0.10412561148405075, -0.011394084431231022, 0.11079391092061996, 0.15978769958019257, 0.35437047481536865, 0.42210522294044495, -0.05286555737257004, 0.0254523865878582, 0.09592114388942719, -0.005467735230922699, -0.016745133325457573, -0.41530242562294006, -0.03948475420475006, 0.316619873046875, 0.14453411102294922, -0.19556891918182373, -0.08334865421056747, 0.20498347282409668, -0.006232395768165588, -0.010439816862344742, 0.09066605567932129, -0.003331746906042099, -0.39019539952278137, 0.04689135402441025, -0.08758597075939178, 0.16572847962379456, -0.04930189624428749, -0.06772921979427338, -0.05827181413769722, 0.03545308858156204, 0.0463261753320694, 0.034199170768260956, 0.4161967635154724, 0.05153980478644371, 0.028715617954730988, 0.11389108002185822, 0.2947537899017334, 0.5818415880203247, 0.006339671090245247, -0.46825721859931946, -0.04024481773376465, 0.25544601678848267, -0.4561415910720825, 0.24493227899074554, 0.5373559594154358, 0.02335839718580246, 0.09140543639659882, -0.1944381296634674, 0.31592613458633423, -0.08797456324100494, 0.138593390583992, -0.2600433826446533, -0.4006449580192566 ]
https://github.com/huggingface/datasets/issues/2092
People mainly want this feature either because it takes too much time too make arrow tables, or they occupy too much memory on the disk. I think both the problem can be solved if we provide arrow tables themselves on datasets hub. Can we do this currently @lhoestq ?
How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
49
How to disable making arrow tables in load_dataset ? Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? People mainly want this feature either because it takes too much time too make arrow tables, or they occupy too much memory on the disk. I think both the problem can be solved if we provide arrow tables themselves on datasets hub. Can we do this currently @lhoestq ?
[ -0.2959379553794861, -0.24903132021427155, -0.10362102091312408, 0.248905748128891, -0.045034196227788925, 0.16052572429180145, 0.2928256392478943, -0.021119175478816032, 0.33967772126197815, 0.2951469123363495, 0.032635122537612915, 0.4835273325443268, 0.026251111179590225, 0.017494916915893555, 0.2436440885066986, 0.1563292294740677, -0.014244910329580307, 0.5176952481269836, -0.36977383494377136, -0.022994987666606903, -0.061718620359897614, -0.33046025037765503, -0.025259345769882202, 0.14375510811805725, -0.2534679174423218, -0.16412977874279022, 0.19121643900871277, -0.2878652513027191, -0.4046611189842224, -0.2799391746520996, 0.3027501702308655, 0.337161660194397, -0.16495604813098907, 0.11342545598745346, -0.00012246744881849736, 0.09321296960115433, 0.12142053991556168, 0.21311084926128387, -0.4440469443798065, 0.0841316506266594, -0.2974020540714264, -0.05562840774655342, 0.4793873429298401, -0.002338990569114685, 0.25435975193977356, -0.24474257230758667, -0.27707016468048096, -0.3397577404975891, 0.1714114248752594, -0.13239386677742004, 0.12153767794370651, 0.11227472126483917, -0.19331203401088715, 0.09619960188865662, 0.4546312987804413, 0.30358290672302246, -0.573057234287262, 0.1401541531085968, -0.03899846225976944, 0.00411074236035347, -0.29131782054901123, -0.10489065945148468, -0.07123899459838867, -0.13070152699947357, 0.37654685974121094, -0.1000744178891182, -0.25647878646850586, -0.30194783210754395, 0.09967243671417236, 0.21574202179908752, 0.7043827176094055, -0.509697437286377, -0.18696430325508118, -0.29608213901519775, 0.3445967435836792, 0.10563547909259796, 0.22619125247001648, 0.2963040769100189, -0.1142079085111618, 0.1142805814743042, -0.27428552508354187, -0.6738186478614807, -0.2642531991004944, -0.1397591531276703, 0.3414139151573181, -0.18459703028202057, 0.038536615669727325, 0.06449274718761444, 0.1961010992527008, -0.0430389940738678, 0.7297347784042358, -0.2825855016708374, -0.35815513134002686, 0.1335630863904953, -0.2341221272945404, -0.28151780366897583, -0.20189592242240906, 0.409624308347702, 0.2900767922401428, 0.24829202890396118, 0.47596612572669983, -0.025048688054084778, 0.045110948383808136, -0.09680026769638062, -0.17991822957992554, 0.1840307116508484, 0.3575601279735565, 0.09669014811515808, 0.2082592099905014, -0.055577050894498825, 0.26375243067741394, 0.05272296816110611, 0.041846778243780136, -0.32720455527305603, -0.01905316859483719, 0.0066924020648002625, -0.019830655306577682, 0.0030466467142105103, -0.007712408900260925, -0.09444646537303925, 0.11076872795820236, 0.1129937618970871, 0.35731634497642517, -0.04357152432203293, 0.2807609438896179, 0.020820297300815582, -0.1791735589504242, 0.3096635639667511, -0.19847869873046875, -0.209253191947937, -0.04869994893670082, -0.07808974385261536, -0.1887567639350891, 0.41184869408607483, 0.36203035712242126, 0.08371594548225403, -0.21578264236450195, 0.4662023186683655, -0.1323496699333191, 0.07526635378599167, 0.20606642961502075, -0.23126059770584106, 0.03275221586227417, 0.4121604561805725, 0.030629128217697144, -0.12484584748744965, -0.11794918775558472, 0.13361935317516327, -0.12408719956874847, 0.47904714941978455, -0.23716868460178375, -0.36561155319213867, 0.052375636994838715, 0.04705293849110603, -0.09244139492511749, 0.05025343969464302, -0.8543154001235962, 0.16793228685855865, -0.138935387134552, 0.3042335510253906, 0.3795032799243927, 0.06279179453849792, -0.11901341378688812, -0.11598668992519379, 0.06288580596446991, 0.4255439043045044, -0.24846842885017395, 0.09047694504261017, -0.012012980878353119, -0.22263026237487793, -0.20387977361679077, -0.08250440657138824, -0.42817816138267517, 0.2872889041900635, -0.09541088342666626, -0.07198819518089294, 0.46682971715927124, -0.024769477546215057, -0.14606687426567078, -0.014643821865320206, 0.08941633999347687, -0.10401750355958939, 0.10174064338207245, 0.041587844491004944, -0.011555612087249756, -0.024869536980986595, -0.2259533703327179, -0.012147259898483753, 0.18688486516475677, -0.20421457290649414, 0.19192776083946228, -0.3240944743156433, 0.05990198627114296, -0.03378335013985634, -0.22822916507720947, 0.214155912399292, 0.21802537143230438, -0.15468378365039825, -0.018025796860456467, -0.11640718579292297, -0.007289934903383255, 0.09105733036994934, 0.04138461872935295, -0.08666931837797165, -0.08081348985433578, 0.08770051598548889, -0.6414067149162292, 0.2503458261489868, -0.10156847536563873, -0.017497297376394272, 0.004233501851558685, -0.257294237613678, 0.13235262036323547, 0.2630302906036377, -0.10186238586902618, 0.5300438404083252, -0.02985081821680069, -0.786090075969696, 0.005939602851867676, -0.27829474210739136, -0.28959810733795166, 0.08929748088121414, -0.4312278926372528, 0.2539479434490204, -0.31059378385543823, 0.2821170687675476, 0.31642237305641174, 0.0983443632721901, 0.058102577924728394, 0.11125466972589493, -0.031641580164432526, 0.33222416043281555, -0.14963188767433167, 0.1671592891216278, 0.1781446635723114, 0.17647574841976166, 0.1676574945449829, 0.387204647064209, 0.10976691544055939, -0.397702693939209, 0.4344578683376312, -0.4769640564918518, -0.012566987425088882, 0.01387041062116623, 0.01654025912284851, 0.16645202040672302, -0.3843303322792053, 0.3188411295413971, -0.04394207522273064, -0.005626413971185684, -0.08756518363952637, 0.2539411187171936, -0.19138683378696442, -0.24318963289260864, 0.025552283972501755, 0.31069087982177734, 0.3294462561607361, 0.3639849126338959, 0.165704607963562, -0.14712350070476532, -0.03908408433198929, 0.04237397015094757, 0.15766258537769318, 0.1884932816028595, 0.010643359273672104, -0.10297191143035889, 0.1735071837902069, 0.03504061698913574, 0.24123993515968323, 0.151850163936615, 0.06598401814699173, 0.016690565273165703, -0.15179230272769928, -0.21840626001358032, 0.26048046350479126, 0.08942918479442596, 0.39609840512275696, 0.08501109480857849, -0.06999460607767105, -0.05428992211818695, -0.43057769536972046, -0.001259729266166687, -0.228817418217659, -0.10335058718919754, -0.32879021763801575, -0.17803126573562622, -0.2584325671195984, 0.00959344208240509, 0.08611828088760376, 0.022759541869163513, -0.42542964220046997, 0.044389113783836365, 0.2645108997821808, -0.13801223039627075, 0.07855759561061859, -0.019589051604270935, -0.20975849032402039, 0.4630802869796753, -0.16460445523262024, -0.027494996786117554, -0.5118439793586731, -0.02435401640832424, 0.2437959611415863, 0.016312450170516968, -0.027583591639995575, 0.14871299266815186, 0.27044206857681274, -0.015570934861898422, 0.22657063603401184, -0.3180452287197113, 0.10247929394245148, 0.1528232991695404, -0.05610182136297226, -0.14386266469955444, 0.2807650864124298, 0.10746084153652191, -0.15409639477729797, 0.20220674574375153, -0.13120272755622864, -0.18071547150611877, -0.08402879536151886, 0.08910922706127167, -0.38302579522132874, 0.284731388092041, -0.06897103786468506, 0.12368567287921906, 0.05138551443815231, -0.16025777161121368, 0.22373302280902863, 0.02587611973285675, 0.10768687725067139, 0.1475774347782135, 0.18394231796264648, -0.02310555800795555, -0.019811075180768967, 0.06666304916143417, 0.012908659875392914, -0.39254534244537354, 0.40172675251960754, -0.24079529941082, -0.08347505331039429, 0.2055177241563797, 0.1197906881570816, 0.21350429952144623, 0.301038533449173, -0.5540850162506104, 0.34443899989128113, -0.35263222455978394, 0.048832833766937256, -0.2269192487001419, 0.05786885321140289, 0.19389361143112183, 0.23277856409549713, 0.1075320914387703, -0.20646853744983673, 0.034333765506744385, 0.21282324194908142, -0.01648290827870369, -0.20929792523384094, 0.06079816073179245, 0.2286071628332138, -0.39459142088890076, 0.326334148645401, -0.13100330531597137, 0.17305156588554382, 0.18842695653438568, 0.0671585351228714, 0.47781577706336975, -0.2602345049381256, 0.26251208782196045, -0.472008615732193, 0.051314692944288254, 0.1655118316411972, 0.06422314792871475, 0.14459607005119324, -0.09168839454650879, -0.16876643896102905, -0.09592392295598984, 0.1636497527360916, -0.13910697400569916, -0.16925421357154846, -0.8409462571144104, -0.006602663546800613, 0.021468639373779297, -0.02709631621837616, -0.16160432994365692, -0.20390748977661133, 0.042128175497055054, -0.17298360168933868, 0.46145951747894287, -0.16035820543766022, -0.4641273021697998, -0.21990549564361572, -0.16159102320671082, -0.033277563750743866, -0.14954380691051483, 0.16063979268074036, 0.06867972016334534, 0.21213501691818237, 0.2860303819179535, 0.31725916266441345, 0.19618134200572968, -0.17001645267009735, -0.11289383471012115, -0.2017814964056015, 0.03975231945514679, -0.5741515755653381, 0.20889830589294434, 0.18506160378456116, 0.20390205085277557, -0.6787975430488586, 0.10305419564247131, -0.11656855791807175, -0.2855755686759949, -0.02352733537554741, 0.4652266502380371, -0.24741633236408234, -0.27975472807884216, -0.21313074231147766, 0.12079974263906479, 0.04328989237546921, -0.13330093026161194, 0.01934799551963806, -0.23697738349437714, -0.38395607471466064, -0.32044756412506104, -0.27706119418144226, -0.2282409816980362, 0.16476017236709595, 0.12959113717079163, 0.23086340725421906, -0.008403118699789047, 0.03899940103292465, 0.2662964463233948, -0.07612843811511993, 0.3563057780265808, 0.6240323185920715, 0.011075776070356369, -0.3349002003669739, 0.08657607436180115, -0.19051305949687958, 0.23693549633026123, 0.02284342423081398, -0.15931278467178345, 0.3482826054096222, -0.2124984860420227, -0.14612483978271484, -0.23570162057876587, -0.35401737689971924, -0.11091155558824539, -0.25867709517478943, -0.24035750329494476, -0.38827991485595703, 0.4413149356842041, 0.07319728285074234, -0.07627208530902863, 0.574485182762146, 0.39429211616516113, -0.3450447916984558, 0.32462355494499207, 0.42256319522857666, 0.7420529127120972, -0.11314724385738373, 0.03600701689720154, -0.01785043254494667, -0.08107998967170715, 0.18778420984745026, -0.18222805857658386, -0.04679488390684128, -0.2022930383682251, -0.31592699885368347, -0.16325685381889343, -0.2784869968891144, 0.34474077820777893, 0.6192927360534668, 0.21664895117282867, -0.017514072358608246, -0.3532561957836151, 0.11486027389764786, -0.1342860758304596, 0.08237063884735107, -0.40925371646881104, -0.3848983943462372, -0.3651778995990753, 0.03894997760653496, 0.10369366407394409, -0.27883002161979675, -0.009284451603889465, 0.31344735622406006, 0.10036657750606537, -0.13814450800418854, 0.03200289607048035, -0.11443106830120087, -0.2251795530319214, 0.1295299530029297, -0.09978966414928436, -0.2469806969165802, 0.3995581269264221, 0.37689220905303955, 0.04591018706560135, 0.09894439578056335, -0.09095417708158493, 0.07643132656812668, 0.18363863229751587, 0.13444046676158905, -0.31345993280410767, 0.26984015107154846, -0.08515190333127975, -0.06820802390575409, -0.2274218201637268, 0.16109618544578552, 0.059865377843379974, -0.25591397285461426, 0.1703694760799408, -0.0827585980296135, 0.09106224775314331, -0.09074337780475616, 0.27083319425582886, -0.08571857959032059, 0.30016934871673584, 0.007266081869602203, 0.0426112562417984, 0.16523167490959167, 0.2661093473434448, 0.16436471045017242, 0.0870300680398941, -0.37969523668289185, -0.04998431354761124, 0.0777692049741745, 0.24797135591506958, -0.04019332677125931, 0.29252374172210693, -0.05699121206998825, -0.3208402395248413, -0.3159716725349426, 0.39080509543418884, 0.3319862484931946, -0.8370423913002014, -0.11289900541305542, 0.10871683061122894, 0.05982235074043274, -0.08251242339611053, -0.005795208737254143, -0.054394759237766266, 0.1286134272813797, -0.005459770560264587, 0.0811380073428154, -0.1605968177318573, 0.25106555223464966, 0.06078335642814636, 0.3145681917667389, 0.03694996237754822, -0.6393619775772095, 0.0692765861749649, 0.08383560925722122, -0.12562137842178345, -0.090499646961689, 0.2313762903213501, -0.1532011479139328, -0.40220266580581665, 0.4075804352760315, -0.11019985377788544, -0.157975435256958, -0.05874839425086975, -0.09986533224582672, -0.03596670925617218, -0.08153880387544632, -0.06368900835514069, 0.17248952388763428, -0.08775423467159271, 0.11027369648218155, -0.3056672513484955, -0.3797582983970642, -0.2704482972621918, -0.17198511958122253, 0.2031870037317276, 0.09233380854129791, 0.022898633033037186, -0.028987755998969078, 0.7183499336242676, 0.017395254224538803, -0.44735604524612427, 0.09903779625892639, 0.18873953819274902, 0.33450430631637573, 0.04385751485824585, -0.010497168637812138, 0.1380797177553177, -0.11250991374254227, -0.0017850399017333984, 0.28926384449005127, 0.1184028759598732, -0.07982924580574036, -0.08560428768396378, 0.05951393023133278, 0.2994783818721771, -0.1719045788049698, -0.05297569930553436, 0.3663610816001892, 0.07312377542257309, -0.3403513431549072, 0.19925597310066223, 0.04907827079296112, -0.0033570677042007446, -0.1472724825143814, 0.14135059714317322, 0.0453241802752018, -0.09760662913322449, 0.27928411960601807, 0.10083642601966858, 0.1894991397857666, -0.3241707384586334, 0.05414716899394989, -0.14226116240024567, 0.07043065130710602, 0.03565065935254097, 0.4357764720916748, 0.005240537226200104, -0.08882533013820648, 0.28880852460861206, 0.28550955653190613, -0.03746851533651352, 0.06889142841100693, 0.1648101955652237, 0.5121220350265503, 0.45327508449554443, 0.14036047458648682, 0.14364096522331238, -0.15425828099250793, -0.37480658292770386, -0.10037723928689957, -0.12142086774110794, -0.31549370288848877, 0.11276210844516754, 0.135370671749115, 0.4430636465549469, -0.20769178867340088, -0.25580233335494995, -0.14393965899944305, 0.007885071448981762, 0.021368738263845444, -0.2126764953136444, -0.053450681269168854, 0.052583247423172, -0.1347837746143341, -0.07910038530826569, 0.13824832439422607, 0.1554531306028366, 0.010658660903573036, 0.22896906733512878, 0.09039364755153656, 0.6540076732635498, 0.3387282192707062, 0.09533631056547165, 0.22422586381435394, -0.19468732178211212, -0.2521743178367615, 0.23523569107055664, 0.04631095379590988, 0.2704991400241852, -0.36650535464286804, 0.06160713732242584, 0.0022658705711364746, -0.1412227749824524, 0.3014586269855499, -0.03973160684108734, 0.02515368163585663, 0.30929622054100037, 0.14411050081253052, 0.16056936979293823, 0.2176133692264557, 0.016247108578681946, 0.04130077362060547, -0.18078377842903137, 0.020051326602697372, 0.421073317527771, -0.10394497215747833, 0.20985311269760132, 0.28367412090301514, -0.29595160484313965, 0.23728111386299133, 0.15314066410064697, 0.12661653757095337, 0.017235979437828064, 0.6544240713119507, -0.31651461124420166, -0.36850687861442566, -0.41017529368400574, -0.00023809075355529785, -0.11313991248607635, 0.7101004719734192, 0.015570961870253086, 0.37833404541015625, 0.05929875746369362, -0.22512049973011017, -0.10655118525028229, -0.1425493359565735, -0.03130131959915161, 0.2766110897064209, 0.3308051824569702, -0.14304178953170776, 0.0999978631734848, 0.36428913474082947, 0.1951114386320114, -0.12514978647232056, 0.10981649160385132, 0.010613707825541496, 0.00048480182886123657, -0.021984972059726715, 0.0068775974214077, 0.2887135148048401, -0.446670800447464, -0.2600392699241638, 0.01820853166282177, 0.29092320799827576, -0.15688970685005188, -0.04910187050700188, 0.1367691457271576, 0.3282169699668884, 0.26820120215415955, 0.4353291690349579, -0.023537281900644302, 0.15079519152641296, 0.10683634132146835, 0.08927096426486969, -0.04730496183037758, -0.5445356965065002, 0.0005119219422340393, 0.24070629477500916, -0.012655689381062984, -0.3778366446495056, -0.17573198676109314, 0.17834897339344025, 0.10302795469760895, -0.13778164982795715, -0.006740666925907135, 0.448230117559433, -0.20714043080806732, 0.08780212700366974, 0.0554710328578949, 0.016632068902254105, 0.025327429175376892, -0.14921145141124725, 0.10072486102581024, 0.1356733739376068, 0.18472416698932648, 0.004700399935245514, 0.2120039463043213, 0.14175865054130554, -0.00967012345790863, 0.22866623103618622, 0.36012279987335205, 0.24336965382099152, -0.33164551854133606, -0.41147109866142273, -0.07574646174907684, 0.3266930878162384, -0.3170723617076874, 0.0737629234790802, 0.3929123878479004, -0.09876447916030884, 0.21645641326904297, -0.08823420107364655, 0.6065355539321899, -0.14359956979751587, 0.2302940934896469, -0.2816719710826874, -0.35950174927711487 ]