html_url
stringlengths
51
51
title
stringlengths
6
280
comments
stringlengths
67
24.7k
body
stringlengths
51
36.2k
__index_level_0__
int64
1
1.17k
comment_length
int64
16
1.45k
text
stringlengths
190
38.3k
embeddings
sequence
https://github.com/huggingface/datasets/issues/6109
Problems in downloading Amazon reviews from HF
Thanks for reporting, @610v4nn1. Indeed, the source data files are no longer available. We have contacted the authors of the dataset and they report that Amazon has decided to stop distributing the multilingual reviews dataset. We are adding a notification about this issue to the dataset card. See: https://huggingface.co/datasets/amazon_reviews_multi/discussions/4#64c3898db63057f1fd3ce1a0
### Describe the bug I have a script downloading `amazon_reviews_multi`. When the download starts, I get ``` Downloading data files: 0%| | 0/1 [00:00<?, ?it/s] Downloading data: 243B [00:00, 1.43MB/s] Downloading data files: 100%|██████████| 1/1 [00:01<00:00, 1.54s/it] Extracting data files: 100%|██████████| 1/1 [00:00<00:00, 842.40it/s] Downloading data files: 0%| | 0/1 [00:00<?, ?it/s] Downloading data: 243B [00:00, 928kB/s] Downloading data files: 100%|██████████| 1/1 [00:01<00:00, 1.42s/it] Extracting data files: 100%|██████████| 1/1 [00:00<00:00, 832.70it/s] Downloading data files: 0%| | 0/1 [00:00<?, ?it/s] Downloading data: 243B [00:00, 1.81MB/s] Downloading data files: 100%|██████████| 1/1 [00:01<00:00, 1.40s/it] Extracting data files: 100%|██████████| 1/1 [00:00<00:00, 1294.14it/s] Generating train split: 0%| | 0/200000 [00:00<?, ? examples/s] ``` the file is clearly too small to contain the requested dataset, in fact it contains en error message: ``` <?xml version="1.0" encoding="UTF-8"?> <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>AGJWSY3ZADT2QVWE</RequestId><HostId>Gx1O2KXnxtQFqvzDLxyVSTq3+TTJuTnuVFnJL3SP89Yp8UzvYLPTVwd1PpniE4EvQzT3tCaqEJw=</HostId></Error> ``` obviously the script fails: ``` > raise DatasetGenerationError("An error occurred while generating the dataset") from e E datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug 1. load_dataset("amazon_reviews_multi", name="en", split="train", cache_dir="ADDYOURPATHHERE") ### Expected behavior I would expect the dataset to be downloaded and processed ### Environment info * The problem is present with both datasets 2.12.0 and 2.14.2 * python version 3.10.12
1
49
Problems in downloading Amazon reviews from HF ### Describe the bug I have a script downloading `amazon_reviews_multi`. When the download starts, I get ``` Downloading data files: 0%| | 0/1 [00:00<?, ?it/s] Downloading data: 243B [00:00, 1.43MB/s] Downloading data files: 100%|██████████| 1/1 [00:01<00:00, 1.54s/it] Extracting data files: 100%|██████████| 1/1 [00:00<00:00, 842.40it/s] Downloading data files: 0%| | 0/1 [00:00<?, ?it/s] Downloading data: 243B [00:00, 928kB/s] Downloading data files: 100%|██████████| 1/1 [00:01<00:00, 1.42s/it] Extracting data files: 100%|██████████| 1/1 [00:00<00:00, 832.70it/s] Downloading data files: 0%| | 0/1 [00:00<?, ?it/s] Downloading data: 243B [00:00, 1.81MB/s] Downloading data files: 100%|██████████| 1/1 [00:01<00:00, 1.40s/it] Extracting data files: 100%|██████████| 1/1 [00:00<00:00, 1294.14it/s] Generating train split: 0%| | 0/200000 [00:00<?, ? examples/s] ``` the file is clearly too small to contain the requested dataset, in fact it contains en error message: ``` <?xml version="1.0" encoding="UTF-8"?> <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>AGJWSY3ZADT2QVWE</RequestId><HostId>Gx1O2KXnxtQFqvzDLxyVSTq3+TTJuTnuVFnJL3SP89Yp8UzvYLPTVwd1PpniE4EvQzT3tCaqEJw=</HostId></Error> ``` obviously the script fails: ``` > raise DatasetGenerationError("An error occurred while generating the dataset") from e E datasets.builder.DatasetGenerationError: An error occurred while generating the dataset ``` ### Steps to reproduce the bug 1. load_dataset("amazon_reviews_multi", name="en", split="train", cache_dir="ADDYOURPATHHERE") ### Expected behavior I would expect the dataset to be downloaded and processed ### Environment info * The problem is present with both datasets 2.12.0 and 2.14.2 * python version 3.10.12 Thanks for reporting, @610v4nn1. Indeed, the source data files are no longer available. We have contacted the authors of the dataset and they report that Amazon has decided to stop distributing the multilingual reviews dataset. We are adding a notification about this issue to the dataset card. See: https://huggingface.co/datasets/amazon_reviews_multi/discussions/4#64c3898db63057f1fd3ce1a0
[ -1.1749063730239868, -0.8698778748512268, -0.8900013566017151, 1.4243459701538086, -0.13573047518730164, -1.2226994037628174, 0.15154093503952026, -1.2511365413665771, 1.432878017425537, -0.6011939644813538, 0.4040875732898712, -1.727347731590271, 0.04589912295341492, -0.4552827477455139, -0.8431816697120667, -0.9063414931297302, -0.48868969082832336, -0.8219608664512634, 0.97809898853302, 2.5221447944641113, 1.2454487085342407, -1.4582936763763428, 2.7142021656036377, 0.6927785277366638, -0.17263635993003845, -0.89736008644104, 0.6637338399887085, 0.12301131337881088, -1.3747620582580566, -0.35270318388938904, -0.8864206671714783, -0.2087256908416748, -0.6776193976402283, -0.3735634386539459, 0.07718082517385483, 0.36934807896614075, -0.3336281180381775, -0.39881977438926697, -0.5040537118911743, -0.7731653451919556, 0.4934993088245392, -0.32639068365097046, 0.9452347755432129, -0.3145279288291931, 1.7314435243606567, -0.6894515156745911, 0.33928388357162476, 0.8193453550338745, 1.272710919380188, 0.13429616391658783, 0.06353253871202469, 0.4447978138923645, 0.3506908118724823, -0.05120202898979187, 0.41016343235969543, 1.257990837097168, 0.5390438437461853, 0.39969515800476074, 0.8323001265525818, -2.1086618900299072, 1.214141607284546, -0.9440236687660217, 0.3650023639202118, 1.2934412956237793, -0.6883390545845032, 0.26393094658851624, -1.8103132247924805, -0.11476963013410568, 0.6600466370582581, -2.1344153881073, 0.3564904034137726, -1.2919360399246216, -0.443464457988739, 0.823783278465271, 0.31505170464515686, -1.0992859601974487, 0.1924101710319519, -0.6111176609992981, 1.0263460874557495, 0.37969839572906494, 1.2355438470840454, -1.6439788341522217, 0.034126706421375275, -0.3567346930503845, 0.15840794146060944, -1.2842997312545776, -1.517490267753601, 0.6225483417510986, 0.5877630114555359, 0.5768107175827026, -0.05366376042366028, 1.0444368124008179, -0.990924596786499, 0.9438011050224304, -1.067526936531067, -1.7909425497055054, -1.4233341217041016, -2.2656028270721436, -2.1752960681915283, 0.675883948802948, -0.5190905928611755, -0.5248356461524963, 2.0744285583496094, -0.8218443989753723, -1.6847647428512573, 1.0912985801696777, 0.3453565239906311, -0.025715110823512077, 2.38901424407959, 0.2334384322166443, -0.8005092144012451, 0.4655986428260803, -0.7721642851829529, 0.8532306551933289, -0.17334415018558502, 1.3294612169265747, 0.3952501118183136, -0.817322313785553, 1.544211983680725, -0.4773818254470825, 0.5181127190589905, -0.7069194316864014, -0.510952889919281, -0.7492472529411316, 0.1645050048828125, 1.8872120380401611, -0.39235642552375793, 1.621995449066162, -0.3711506724357605, -1.59600830078125, -1.4015074968338013, 0.8548070192337036, 0.6230926513671875, -0.9188022017478943, 0.04255623370409012, -0.312197744846344, 0.18259593844413757, -0.03362133726477623, 1.1139637231826782, 1.307114839553833, 0.6890169978141785, -0.32089683413505554, -0.9190853834152222, 0.09913426637649536, -0.11919127404689789, -0.926041305065155, -1.757145881652832, -0.23652704060077667, 0.05040449649095535, 0.7428519129753113, -1.3149826526641846, 1.7849582433700562, 0.8830626010894775, 2.0343971252441406, 0.9405912160873413, -0.5310664176940918, 1.528465747833252, -0.02817205712199211, 1.8298226594924927, -0.5771598815917969, 0.5628949403762817, -0.5365077257156372, -1.0460240840911865, 0.9805912971496582, -0.2174881398677826, -2.0183277130126953, -0.8027382493019104, -0.769136369228363, -0.19887733459472656, -0.7266181707382202, 0.955259382724762, -0.30016273260116577, -1.4182432889938354, 0.3275747001171112, -0.802653968334198, -0.06346053630113602, -1.2230960130691528, 0.21879997849464417, 0.6387523412704468, -0.5716357827186584, 0.10249320417642593, -0.18729642033576965, -1.2710916996002197, -0.46968838572502136, 0.24482746422290802, 1.9398324489593506, -0.7667686939239502, 0.9073495864868164, 1.0570815801620483, -0.7027702331542969, 0.11184503883123398, 0.32686859369277954, -0.3282639980316162, 0.7790002822875977, -1.212141513824463, -0.45656725764274597, 0.9662719964981079, 0.019504353404045105, -0.5435457825660706, 1.439026951789856, 0.7922056913375854, -1.0924997329711914, -0.255426287651062, -0.05488476902246475, -0.8365159630775452, 0.04429824650287628, -1.6403957605361938, -0.09435681998729706, 0.36852845549583435, -1.5204956531524658, -0.520672082901001, -0.30619966983795166, 1.1053617000579834, -0.16894057393074036, 1.449000597000122, -0.33248600363731384, -0.12077055126428604, -0.4024658203125, -0.4306328296661377, 0.028902584686875343, -0.3652535378932953, -0.5527934432029724, 0.21421217918395996, -0.7657608389854431, 0.30679628252983093, 1.4845154285430908, 0.2737617492675781, 0.05507075786590576, 0.34547150135040283, 1.0786222219467163, 0.4417434334754944, 0.21143725514411926, -0.8282603621482849, -1.4216673374176025, 2.001316785812378, -1.6400216817855835, 1.97896409034729, 0.8372073769569397, 0.10715823620557785, -1.8509061336517334, -1.8962409496307373, 1.4369205236434937, 1.1241850852966309, 2.342564582824707, 0.6500725150108337, 0.46998539566993713, -0.7195444703102112, -0.6453754901885986, 0.2754843533039093, -1.0210009813308716, -0.7155759930610657, 0.2578126788139343, 2.471956729888916, 1.6470394134521484, -0.5214792490005493, -0.17199569940567017, -0.726438045501709, 1.41366708278656, 0.02663044072687626, 0.17419280111789703, 2.0852012634277344, -0.14341290295124054, -1.1473554372787476, 1.229561448097229, -2.429577589035034, 0.11797221750020981, 2.026836633682251, 0.33073946833610535, 0.1609681099653244, -1.3836150169372559, -0.6281418800354004, -0.34391096234321594, -0.5338645577430725, -1.253321647644043, 0.6753658652305603, -0.2650602161884308, -0.8386390209197998, -1.5096698999404907, 0.07277022302150726, -1.1515365839004517, -1.7260724306106567, 0.3418128192424774, 1.9635727405548096, 2.0626156330108643, -0.7349366545677185, 1.5515421628952026, -0.46477410197257996, 0.06370186805725098, 1.160245418548584, 1.2401493787765503, 3.013157606124878, 1.9559723138809204, -1.2183310985565186, 0.6750320196151733, -0.17713816463947296, -0.48272407054901123, 1.0716792345046997, -1.0915265083312988, 1.1454932689666748, -0.1399167776107788, -1.2038884162902832, -1.1128901243209839, 1.024552822113037, 0.3550156354904175, 0.07617446780204773, -0.5558145046234131, 1.327270746231079, 0.1391824632883072, 1.2307887077331543, 0.5341731309890747, -0.1452437937259674, 0.48335760831832886, -0.28818443417549133, -0.4738817512989044, 1.7171871662139893, 0.18697428703308105, -1.403245210647583, -2.6771697998046875, -0.2849111557006836, -0.7995128035545349, 0.1759852021932602, -0.6112654209136963, -1.1723847389221191, 1.7169674634933472, 0.37367063760757446, -1.300646185874939, -0.28371724486351013, -0.3797154426574707, -0.6097359657287598, 2.5670199394226074, -1.522599220275879, -0.14569053053855896, -0.8972037434577942, -0.5274658203125, 1.6276670694351196, -1.16399085521698, -0.24738053977489471, -1.1193861961364746, -0.4329818785190582, -1.2882039546966553, -0.5998615622520447, 0.04517434537410736, -0.8486844897270203, 0.8810341954231262, 0.17199794948101044, -1.1709035634994507, -0.2558881342411041, -0.9568411111831665, 0.9307446479797363, -0.004411451518535614, 0.2978185713291168, 1.9085617065429688, 0.43369096517562866, -0.38061612844467163, 0.7590588927268982, 1.2261155843734741, 0.6379969120025635, -0.6504539251327515, 0.048221126198768616, -0.5984328389167786, 0.29778769612312317, -1.3792881965637207, 0.2372063398361206, -2.7560176849365234, 0.7453198432922363, -0.05306008458137512, -0.0012062229216098785, -0.0062557402998209, -1.3259267807006836, 1.3471084833145142, 2.6281445026397705, -1.0753347873687744, 0.509250283241272, 0.26455456018447876, 1.213883876800537, -1.4652806520462036, 0.22578002512454987, -0.42742154002189636, 2.0522332191467285, 0.0634976252913475, 1.2297056913375854, -0.49968522787094116, -2.3146586418151855, 0.6550517678260803, -1.2991814613342285, -1.169844388961792, 0.8891038298606873, -0.8532733917236328, 0.12605108320713043, -1.6003309488296509, -0.30556127429008484, -1.1059569120407104, -1.1736315488815308, 0.702142596244812, 0.1604469120502472, 0.49357786774635315, -0.6802213191986084, 0.2678016722202301, -2.3527588844299316, -1.5775625705718994, -0.13285784423351288, -0.976338267326355, 0.4916875660419464, -0.31461939215660095, 0.7881571054458618, -0.05842374265193939, 0.09893082827329636, 0.33207783102989197, 1.313600778579712, 3.3900725841522217, 0.13425490260124207, 0.3289279639720917, -0.2453550100326538, -0.9432889819145203, 1.3924176692962646, 0.9624536633491516, -0.09571674466133118, -0.5251305103302002, -0.9654964804649353, 1.0446335077285767, 2.0447933673858643, 0.9815633296966553, -0.11216336488723755, -0.9068440198898315, -0.6823462247848511, 0.013829611241817474, 0.3419812023639679, 0.6237654685974121, 0.9773992896080017, -0.06411025673151016, 0.07526399195194244, 1.5079127550125122, 1.0406867265701294, -0.5091202855110168, 0.4486495554447174, -0.8737609386444092, -0.46648311614990234, 0.48972436785697937, 0.19705016911029816, 0.031112490221858025, 0.4918842017650604, -1.0256251096725464, -0.3616351783275604, -0.36704379320144653, -0.8895605802536011, -0.6549792885780334, -0.4287479519844055, -0.3269796073436737, 1.5699057579040527, 0.04413481801748276, -0.5010541677474976, 0.1614539921283722, -0.6754230856895447, -0.10202861577272415, -1.3057773113250732, 0.20541483163833618, -0.26072943210601807, 0.0065366774797439575, -0.0023635383695364, 1.9241080284118652, -0.9698752760887146, -1.9168039560317993, 0.2004893571138382, 0.403947651386261, -0.3661003112792969, 0.3881734311580658, 1.6930071115493774, 0.5842180252075195, 1.2753126621246338, 1.3034780025482178, 0.8723704218864441, -0.7261286973953247, -1.2361035346984863, 0.5439016222953796, 1.08719801902771, -1.2915257215499878, 0.7012451887130737, -0.0630924329161644, -0.5183945298194885, 0.6135463714599609, 1.4494212865829468, 0.3749685287475586, -2.180995225906372, 0.8861059546470642, -0.7711797952651978, 0.8514716625213623, 0.7089487910270691, 0.6530497074127197, 0.3052757978439331, 0.6766644716262817, -1.118167519569397, -1.0680818557739258, -0.8698973059654236, -0.6775707602500916, 1.7960538864135742, -0.27029961347579956, 0.43506860733032227, -0.11611712723970413, -1.2624850273132324, -0.1284356713294983, 0.6547434329986572, 0.4356273114681244, -0.4624168276786804, 0.7512735724449158, -0.428268164396286, -1.1904680728912354, -1.1483370065689087, -0.5058434009552002, -0.9808135628700256, -0.9432345032691956, 0.9743722677230835, 0.7490095496177673, 0.420931339263916, 1.926198959350586, 0.7165632843971252, 0.14710691571235657, -2.670243263244629, 0.9915008544921875, 0.28491300344467163, -0.06686930358409882, 0.9719860553741455, 0.37943747639656067, 1.052603840827942, -0.034848377108573914, 0.5963867902755737, -2.400886058807373, 2.3612658977508545, -0.2599206566810608, 0.6600669622421265, -0.1086355447769165, -0.20519514381885529, 1.1235383749008179, 0.5166551470756531, 0.4817787706851959, -0.9962317943572998, 0.5859125256538391, -0.7333405613899231, 1.1650338172912598, 0.9196140170097351, -0.8361541032791138, 0.018627917394042015, 1.2779581546783447, 0.4864630103111267, -0.4330287575721741, -0.9519603252410889, -0.7767674326896667, 1.0227484703063965, 1.683639645576477, -0.07323424518108368, 0.08754280209541321, 0.8934969902038574, 0.6156206727027893, -1.3229339122772217, 0.055977821350097656, -0.7545779943466187, -0.907872200012207, 1.6536048650741577, 2.0839149951934814, -0.1205463632941246, 0.021734243258833885, -0.8252241611480713, -1.3167014122009277, 0.7425965070724487, -0.17083707451820374, 0.18411923944950104, 0.45829933881759644, -0.656634509563446, 1.2142598628997803, 0.5997609496116638, 0.986761748790741, 0.11728135496377945, 0.4458767771720886, 0.24338839948177338, -0.3179394602775574, -1.0832067728042603, -0.3249373137950897, -1.0838896036148071, -2.2904796600341797, 0.52424156665802, -0.21073390543460846, -1.3744832277297974, -0.02304096892476082, -0.9917129278182983, 0.9223828315734863, -0.48330777883529663, -0.9368158578872681, -1.5146100521087646, 0.3025817573070526, -0.09076005220413208, 1.0534881353378296, -1.5762221813201904, -0.03417372703552246, 1.1516927480697632, 0.8605188131332397, -0.7732939124107361, 1.0082519054412842, 0.3876810371875763, 0.9994192123413086, 0.8226906061172485, -0.36857882142066956, 0.5117658376693726, 0.06349264830350876, -1.2483450174331665, 0.46806854009628296, 1.2031885385513306, 0.12669433653354645, 1.5066381692886353, -0.5424774885177612, -0.011214332655072212, 0.32395392656326294, -0.4468333125114441, -0.4209158718585968, -0.6392322182655334, 0.49837884306907654, 0.25439348816871643, -1.112237572669983, -0.10711278021335602, -0.17153599858283997, -0.18383373320102692, 0.170433908700943, -1.5421189069747925, -0.18722622096538544, -0.41582077741622925, -0.44554540514945984, -1.2355560064315796, 0.06996677070856094, 1.3724253177642822, -0.6274109482765198, -0.1869422346353531, 0.3332890272140503, 0.37544775009155273, 0.5870568156242371, 0.7086239457130432, -0.5479984283447266, -0.5137966871261597, -0.23742985725402832, -0.30978673696517944, 0.2596223056316376, 1.1794403791427612, -0.1745225340127945, -1.105182409286499, 0.702405571937561, -0.5013771653175354, 0.049570463597774506, 1.8833175897598267, -0.06828796863555908, -0.7380130887031555, 0.36028555035591125, -0.6250954270362854, 1.9332237243652344, 1.8173826932907104, 1.2196736335754395, -0.2901609241962433, -0.842371940612793, 0.7425133585929871, -0.33716896176338196, -0.2693370282649994, 0.8291410803794861, 0.4381887912750244, -0.22366578876972198, -1.4877485036849976, 0.4916926324367523, 1.4167733192443848, -0.9389976859092712, -0.870064914226532, 0.1323280930519104, -0.7855961918830872, 1.0304479598999023, 0.7645847797393799, 0.44430482387542725, 0.3458085358142853, 1.5211031436920166, 0.7765263319015503, -0.6272578239440918, 0.6429024934768677, 0.45383989810943604, -0.08577540516853333, -2.1807284355163574, -1.1870324611663818, 0.4299168884754181, -0.24187006056308746, -1.696832299232483, 1.4447414875030518, -1.1204994916915894, -0.9449774026870728, 0.6065897941589355, -0.06010836362838745, 1.230065107345581, 0.32079073786735535, 1.6275465488433838, 1.9664108753204346, 0.8042439818382263, 0.39815935492515564, 1.2853138446807861, -0.1474265307188034, -0.513806164264679, 1.8543224334716797, -0.47428587079048157, 0.4634801745414734, 1.0229524374008179, -0.3728414475917816, -0.9823172688484192, -0.8187183141708374, -1.3299754858016968, -0.7629167437553406, 1.1637600660324097, 0.03620796650648117, -1.3189409971237183, 0.3655114471912384, 1.6347835063934326, 0.06513488292694092, -0.3514992594718933, 0.6760244965553284, 0.3992891013622284, -0.8479978442192078, -0.1642470508813858, -0.9876759648323059, 0.537920355796814, -0.145241379737854, -0.24066293239593506, 0.2359304279088974, 0.4693142771720886, 1.3625298738479614, -0.01677818037569523, 0.039165399968624115, 1.216313123703003, -1.4624488353729248, 1.5417484045028687, -0.5445027351379395, 0.2758335769176483, -2.3994669914245605, 1.3979970216751099, -0.6765440106391907, 1.853250503540039, -2.619835376739502, 0.32321223616600037, -0.6381409168243408, -0.4672563970088959, 0.3043384552001953, -0.205017551779747, 0.2684471011161804, -0.19107462465763092, -1.0291002988815308, -0.0881328210234642, -0.7291483879089355, 0.5036725401878357, 1.0193406343460083, 1.3601882457733154, -0.9946949481964111, -0.2365916222333908, -1.6586750745773315, -0.13133998215198517, -0.5098843574523926, 0.2868131995201111, -2.0849008560180664, -0.16860906779766083, -2.0005064010620117, -2.2517220973968506, -1.481083631515503, -0.8616116046905518, 1.0225462913513184, 0.22008147835731506, -1.00897216796875, 1.109222412109375, -0.41303274035453796, -1.7098373174667358, 1.1003553867340088, -2.0465312004089355 ]
https://github.com/huggingface/datasets/issues/6108
Loading local datasets got strangely stuck
Yesterday I waited for more than 12 hours to make sure it was really **stuck** instead of proceeding too slow.
### Describe the bug I try to use `load_dataset()` to load several local `.jsonl` files as a dataset. Every line of these files is a json structure only containing one key `text` (yeah it is a dataset for NLP model). The code snippet is as: ```python ds = load_dataset("json", data_files=LIST_OF_FILE_PATHS, num_proc=16)['train'] ``` However, I found that the loading process can get stuck -- the progress bar `Generating train split` no more proceed. When I was trying to find the cause and solution, I found a really strange behavior. If I load the dataset in this way: ```python dlist = list() for _ in LIST_OF_FILE_PATHS: dlist.append(load_dataset("json", data_files=_)['train']) ds = concatenate_datasets(dlist) ``` I can actually successfully load all the files despite its slow speed. But if I load them in batch like above, things go wrong. I did try to use Control-C to trace the stuck point but the program cannot be terminated in this way when `num_proc` is set to `None`. The only thing I can do is use Control-Z to hang it up then kill it. If I use more than 2 cpus, a Control-C would simply cause the following error: ```bash ^C Process ForkPoolWorker-1: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/multiprocess/process.py", line 314, in _bootstrap self.run() File "/usr/local/lib/python3.10/dist-packages/multiprocess/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.10/dist-packages/multiprocess/pool.py", line 114, in worker task = get() File "/usr/local/lib/python3.10/dist-packages/multiprocess/queues.py", line 368, in get res = self._reader.recv_bytes() File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 224, in recv_bytes buf = self._recv_bytes(maxlength) File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 422, in _recv_bytes buf = self._recv(4) File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 387, in _recv chunk = read(handle, remaining) KeyboardInterrupt Generating train split: 92431 examples [01:23, 1104.25 examples/s] Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py", line 1373, in iflatmap_unordered yield queue.get(timeout=0.05) File "<string>", line 2, in get File "/usr/local/lib/python3.10/dist-packages/multiprocess/managers.py", line 818, in _callmethod kind, result = conn.recv() File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 258, in recv buf = self._recv_bytes() File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 422, in _recv_bytes buf = self._recv(4) File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 387, in _recv chunk = read(handle, remaining) KeyboardInterrupt During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/mnt/data/liyongyuan/source/batch_load.py", line 11, in <module> a = load_dataset( File "/usr/local/lib/python3.10/dist-packages/datasets/load.py", line 2133, in load_dataset builder_instance.download_and_prepare( File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 954, in download_and_prepare self._download_and_prepare( File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 1049, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 1842, in _prepare_split for job_id, done, content in iflatmap_unordered( File "/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py", line 1387, in iflatmap_unordered [async_result.get(timeout=0.05) for async_result in async_results] File "/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py", line 1387, in <listcomp> [async_result.get(timeout=0.05) for async_result in async_results] File "/usr/local/lib/python3.10/dist-packages/multiprocess/pool.py", line 770, in get raise TimeoutError multiprocess.context.TimeoutError ``` I have validated the basic correctness of these `.jsonl` files. They are correctly formatted (or they cannot be loaded singly by `load_dataset`) though some of the json may contain too long text (more than 1e7 characters). I do not know if this could be the problem. And there should not be any bottleneck in system's resource. The whole dataset is ~300GB, and I am using a cloud server with plenty of storage and 1TB ram. Thanks for your efforts and patience! Any suggestion or help would be appreciated. ### Steps to reproduce the bug 1. use load_dataset() with `data_files = LIST_OF_FILES` ### Expected behavior All the files should be smoothly loaded. ### Environment info - Datasets: A private dataset. ~2500 `.jsonl` files. ~300GB in total. Each json structure only contains one key: `text`. Format checked. - `datasets` version: 2.14.2 - Platform: Linux-4.19.91-014.kangaroo.alios7.x86_64-x86_64-with-glibc2.35 - Python version: 3.10.6 - Huggingface_hub version: 0.15.1 - PyArrow version: 10.0.1.dev0+ga6eabc2b.d20230609 - Pandas version: 1.5.2
2
20
Loading local datasets got strangely stuck ### Describe the bug I try to use `load_dataset()` to load several local `.jsonl` files as a dataset. Every line of these files is a json structure only containing one key `text` (yeah it is a dataset for NLP model). The code snippet is as: ```python ds = load_dataset("json", data_files=LIST_OF_FILE_PATHS, num_proc=16)['train'] ``` However, I found that the loading process can get stuck -- the progress bar `Generating train split` no more proceed. When I was trying to find the cause and solution, I found a really strange behavior. If I load the dataset in this way: ```python dlist = list() for _ in LIST_OF_FILE_PATHS: dlist.append(load_dataset("json", data_files=_)['train']) ds = concatenate_datasets(dlist) ``` I can actually successfully load all the files despite its slow speed. But if I load them in batch like above, things go wrong. I did try to use Control-C to trace the stuck point but the program cannot be terminated in this way when `num_proc` is set to `None`. The only thing I can do is use Control-Z to hang it up then kill it. If I use more than 2 cpus, a Control-C would simply cause the following error: ```bash ^C Process ForkPoolWorker-1: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/multiprocess/process.py", line 314, in _bootstrap self.run() File "/usr/local/lib/python3.10/dist-packages/multiprocess/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.10/dist-packages/multiprocess/pool.py", line 114, in worker task = get() File "/usr/local/lib/python3.10/dist-packages/multiprocess/queues.py", line 368, in get res = self._reader.recv_bytes() File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 224, in recv_bytes buf = self._recv_bytes(maxlength) File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 422, in _recv_bytes buf = self._recv(4) File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 387, in _recv chunk = read(handle, remaining) KeyboardInterrupt Generating train split: 92431 examples [01:23, 1104.25 examples/s] Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py", line 1373, in iflatmap_unordered yield queue.get(timeout=0.05) File "<string>", line 2, in get File "/usr/local/lib/python3.10/dist-packages/multiprocess/managers.py", line 818, in _callmethod kind, result = conn.recv() File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 258, in recv buf = self._recv_bytes() File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 422, in _recv_bytes buf = self._recv(4) File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 387, in _recv chunk = read(handle, remaining) KeyboardInterrupt During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/mnt/data/liyongyuan/source/batch_load.py", line 11, in <module> a = load_dataset( File "/usr/local/lib/python3.10/dist-packages/datasets/load.py", line 2133, in load_dataset builder_instance.download_and_prepare( File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 954, in download_and_prepare self._download_and_prepare( File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 1049, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 1842, in _prepare_split for job_id, done, content in iflatmap_unordered( File "/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py", line 1387, in iflatmap_unordered [async_result.get(timeout=0.05) for async_result in async_results] File "/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py", line 1387, in <listcomp> [async_result.get(timeout=0.05) for async_result in async_results] File "/usr/local/lib/python3.10/dist-packages/multiprocess/pool.py", line 770, in get raise TimeoutError multiprocess.context.TimeoutError ``` I have validated the basic correctness of these `.jsonl` files. They are correctly formatted (or they cannot be loaded singly by `load_dataset`) though some of the json may contain too long text (more than 1e7 characters). I do not know if this could be the problem. And there should not be any bottleneck in system's resource. The whole dataset is ~300GB, and I am using a cloud server with plenty of storage and 1TB ram. Thanks for your efforts and patience! Any suggestion or help would be appreciated. ### Steps to reproduce the bug 1. use load_dataset() with `data_files = LIST_OF_FILES` ### Expected behavior All the files should be smoothly loaded. ### Environment info - Datasets: A private dataset. ~2500 `.jsonl` files. ~300GB in total. Each json structure only contains one key: `text`. Format checked. - `datasets` version: 2.14.2 - Platform: Linux-4.19.91-014.kangaroo.alios7.x86_64-x86_64-with-glibc2.35 - Python version: 3.10.6 - Huggingface_hub version: 0.15.1 - PyArrow version: 10.0.1.dev0+ga6eabc2b.d20230609 - Pandas version: 1.5.2 Yesterday I waited for more than 12 hours to make sure it was really **stuck** instead of proceeding too slow.
[ -1.1857736110687256, -0.9407454133033752, -0.7441576719284058, 1.4746325016021729, -0.11657063663005829, -1.2399708032608032, 0.11755771934986115, -1.0479322671890259, 1.7225706577301025, -0.7684071063995361, 0.38269880414009094, -1.6014268398284912, 0.03821048140525818, -0.6209810972213745, -0.7727939486503601, -0.8944603800773621, -0.4088424742221832, -0.8194125294685364, 1.0283896923065186, 2.462496757507324, 1.2099568843841553, -1.403232216835022, 2.7265608310699463, 0.6924651861190796, -0.2164050042629242, -1.0413557291030884, 0.5166077613830566, -0.010159664787352085, -1.1726576089859009, -0.4255408048629761, -0.9635022878646851, -0.10558275878429413, -0.6585036516189575, -0.5079758167266846, 0.05268178880214691, 0.4019443094730377, -0.24002186954021454, -0.3776376247406006, -0.57227623462677, -0.7602928280830383, 0.5162822604179382, -0.3317278325557709, 0.972929060459137, -0.28395286202430725, 1.8031069040298462, -0.6038073301315308, 0.46886107325553894, 0.7760091423988342, 1.354609489440918, 0.2248118817806244, -0.0016446355730295181, 0.3432528078556061, 0.3676868677139282, 0.04271122068166733, 0.5380293726921082, 1.1995790004730225, 0.6081677675247192, 0.5152134895324707, 0.7276692390441895, -2.184246063232422, 1.2898826599121094, -1.0188233852386475, 0.3503153324127197, 1.2698777914047241, -0.9048412442207336, 0.3893762230873108, -1.8603965044021606, -0.04896062612533569, 0.6037646532058716, -2.244311571121216, 0.2338779866695404, -1.3310497999191284, -0.49006420373916626, 0.9795165061950684, 0.3442109227180481, -1.3024133443832397, 0.18255537748336792, -0.42121222615242004, 1.051797866821289, 0.4166954457759857, 1.1190639734268188, -1.6669014692306519, -0.009774336591362953, -0.3293585479259491, 0.1635141670703888, -1.2263544797897339, -1.5070654153823853, 0.5729089975357056, 0.6171499490737915, 0.5612480640411377, -0.13687685132026672, 1.0765891075134277, -1.0261775255203247, 0.8335713744163513, -0.9632993936538696, -1.7179174423217773, -1.4542927742004395, -2.2724311351776123, -2.305119037628174, 0.8332210779190063, -0.48154833912849426, -0.4861609935760498, 2.066084861755371, -0.9672607183456421, -1.760550856590271, 1.1019209623336792, 0.2541908919811249, 0.0005201064050197601, 2.344029188156128, 0.1405647099018097, -0.7619856595993042, 0.4461615979671478, -0.719220757484436, 0.8046331405639648, -0.3599391579627991, 1.3694673776626587, 0.4728565514087677, -1.0297503471374512, 1.5947773456573486, -0.4017045795917511, 0.5501520037651062, -0.6440993547439575, -0.5337281823158264, -0.7929158806800842, 0.33021658658981323, 1.9039069414138794, -0.30433639883995056, 1.5482233762741089, -0.34435856342315674, -1.5470677614212036, -1.564254879951477, 0.888276219367981, 0.48914024233818054, -0.8056665658950806, 0.10974583774805069, -0.39614608883857727, 0.15515007078647614, -0.05539649724960327, 1.18917715549469, 1.2156568765640259, 0.746762752532959, -0.36024799942970276, -0.8663837909698486, 0.1407097578048706, -0.06023271381855011, -0.7152811884880066, -1.8659703731536865, -0.3546149730682373, 0.1788507103919983, 0.6218679547309875, -1.193255066871643, 1.7748363018035889, 0.92495197057724, 1.9225759506225586, 1.0170502662658691, -0.3195354640483856, 1.516502857208252, -0.03558150306344032, 1.8763700723648071, -0.4583948850631714, 0.5885534286499023, -0.360810786485672, -1.196715235710144, 0.8377751708030701, -0.29318201541900635, -2.038484573364258, -0.7103738784790039, -0.834315299987793, -0.17930953204631805, -0.7523581385612488, 0.8580973744392395, -0.3118514120578766, -1.4367921352386475, 0.17469334602355957, -0.6502706408500671, 0.114289291203022, -1.2390071153640747, 0.29432353377342224, 0.6449299454689026, -0.7074230909347534, 0.07158519327640533, -0.3197842836380005, -1.2106208801269531, -0.549460768699646, 0.2689276933670044, 1.8636901378631592, -0.7478760480880737, 0.9734770655632019, 1.032645583152771, -0.6845254302024841, -0.028486648574471474, 0.3420042097568512, -0.29361337423324585, 0.8849694728851318, -1.0835940837860107, -0.4671410620212555, 1.1719520092010498, -0.16941338777542114, -0.6102598905563354, 1.4208518266677856, 0.7856005430221558, -1.054190993309021, -0.24877195060253143, -0.2335503250360489, -0.8555761575698853, 0.04584003984928131, -1.586504340171814, -0.11513541638851166, 0.4020754098892212, -1.5483136177062988, -0.38727813959121704, -0.20324184000492096, 1.27974271774292, -0.22253526747226715, 1.4569973945617676, -0.33041122555732727, -0.24466556310653687, -0.32929882407188416, -0.4515054523944855, 0.16523446142673492, -0.11603590846061707, -0.6699464917182922, 0.16696299612522125, -0.7458930611610413, 0.3739664554595947, 1.4462465047836304, 0.3052820861339569, 0.036311499774456024, 0.5148871541023254, 1.1212682723999023, 0.3424697816371918, 0.044216401875019073, -0.9726801514625549, -1.5047413110733032, 2.0229122638702393, -1.439529299736023, 1.9469588994979858, 0.7661038637161255, -0.06159823387861252, -1.8067489862442017, -1.8054803609848022, 1.3576617240905762, 1.1666648387908936, 2.3743810653686523, 0.5515940189361572, 0.38672754168510437, -0.8191073536872864, -0.6778033971786499, 0.3580164611339569, -1.0762383937835693, -0.7609761357307434, 0.12679025530815125, 2.3991148471832275, 1.8205279111862183, -0.502000093460083, -0.2354866862297058, -1.0072424411773682, 1.381729006767273, -0.22363805770874023, 0.2667018473148346, 2.015361785888672, -0.2953281104564667, -1.0586005449295044, 1.2469573020935059, -2.3405649662017822, 0.18798625469207764, 2.040473699569702, 0.2513265609741211, 0.1753658950328827, -1.4550968408584595, -0.6100200414657593, -0.19842049479484558, -0.4470710754394531, -1.256653904914856, 0.5058630108833313, -0.27943867444992065, -0.7859964966773987, -1.4496008157730103, 0.15890000760555267, -1.1547420024871826, -1.689998745918274, 0.2607925534248352, 1.9289904832839966, 2.0340874195098877, -0.7462478876113892, 1.5081462860107422, -0.3079971373081207, 0.18657687306404114, 1.286574363708496, 1.286323070526123, 3.098590850830078, 1.9048638343811035, -1.2199252843856812, 0.6274429559707642, -0.21113325655460358, -0.49390748143196106, 1.138333797454834, -1.1720070838928223, 1.1568132638931274, -0.1872391402721405, -1.1009259223937988, -1.19161057472229, 1.007169485092163, 0.47824111580848694, 0.02073085308074951, -0.5081774592399597, 1.2130450010299683, 0.09992562979459763, 1.3254599571228027, 0.5691626071929932, -0.3873027265071869, 0.6314074993133545, -0.3668352961540222, -0.4965443015098572, 1.613722324371338, 0.1891213208436966, -1.384263277053833, -2.328956127166748, -0.18701601028442383, -0.9365720152854919, 0.045867085456848145, -0.580862283706665, -0.958073616027832, 1.6262056827545166, 0.34906628727912903, -1.2879420518875122, -0.2250802218914032, -0.3236059546470642, -0.6110820174217224, 2.636465072631836, -1.3133381605148315, -0.21953465044498444, -0.9799793362617493, -0.6194500923156738, 1.666200041770935, -1.160622477531433, -0.24824216961860657, -1.0042481422424316, -0.5782238841056824, -1.3139687776565552, -0.504253089427948, 0.006970008835196495, -0.9177166819572449, 0.8342537879943848, 0.17317669093608856, -1.152393102645874, -0.3344455063343048, -0.8396942615509033, 0.9102033972740173, -0.10824748873710632, 0.16855069994926453, 1.856787085533142, 0.35888707637786865, -0.39788252115249634, 0.7186763882637024, 1.1461787223815918, 0.6140767931938171, -0.5669205784797668, 0.20943814516067505, -0.6787242889404297, 0.28269535303115845, -1.2839521169662476, 0.3277348577976227, -2.8885583877563477, 0.7232061624526978, -0.09950622171163559, -0.08384138345718384, -0.08552236109972, -1.3513370752334595, 1.0464576482772827, 2.6293892860412598, -1.1441740989685059, 0.47064316272735596, 0.32985731959342957, 1.160235047340393, -1.6788133382797241, 0.2724669575691223, -0.4323078393936157, 2.1404330730438232, 0.15187376737594604, 1.2186286449432373, -0.40442413091659546, -2.308438539505005, 0.5948107242584229, -1.2602182626724243, -1.1369141340255737, 0.7923150658607483, -0.7879585027694702, 0.13558050990104675, -1.4016728401184082, -0.21533024311065674, -0.9284399747848511, -1.179283618927002, 0.7575048208236694, 0.1545705497264862, 0.4516685903072357, -0.6421931982040405, 0.32089704275131226, -2.166081190109253, -1.3812161684036255, -0.20191077888011932, -0.935924232006073, 0.48065775632858276, -0.3313238322734833, 0.6799854040145874, -0.1405913531780243, 0.048482559621334076, 0.33047324419021606, 1.4958500862121582, 3.4104464054107666, 0.15938714146614075, 0.31089693307876587, -0.19146916270256042, -0.893835186958313, 1.4162228107452393, 0.88791823387146, -0.14496727287769318, -0.5868193507194519, -1.0717086791992188, 1.253820776939392, 2.0058417320251465, 1.0297530889511108, 0.10569362342357635, -0.7883124351501465, -0.722813069820404, -0.060019999742507935, 0.17492865025997162, 0.4602712392807007, 0.8696073889732361, 0.0407901257276535, 0.09817802906036377, 1.3810077905654907, 1.1756192445755005, -0.41315758228302, 0.3348855674266815, -0.8387416005134583, -0.42695140838623047, 0.4968971610069275, 0.2145848572254181, -0.009452552534639835, 0.3268333077430725, -1.0249592065811157, -0.2579589784145355, -0.3388806879520416, -0.9548298120498657, -0.7445858120918274, -0.4307718276977539, -0.3861316740512848, 1.6309629678726196, 0.07657036930322647, -0.5334811210632324, -0.028085755184292793, -0.6963358521461487, -0.08608516305685043, -1.0765913724899292, 0.16933338344097137, -0.09807632118463516, -0.1379164606332779, -0.142483651638031, 1.7149851322174072, -0.8927140235900879, -2.033263921737671, 0.2613278925418854, 0.24954141676425934, -0.34509292244911194, 0.24373771250247955, 1.6935194730758667, 0.48897215723991394, 1.4522329568862915, 1.3573921918869019, 0.9454881548881531, -0.6484937071800232, -1.262046456336975, 0.6607219576835632, 0.980215311050415, -1.4375168085098267, 0.7953000068664551, -0.020188678056001663, -0.45730048418045044, 0.6360543966293335, 1.311997890472412, 0.45368754863739014, -2.05928635597229, 0.8549001812934875, -0.941453754901886, 0.7588342428207397, 0.6597298383712769, 0.6531943082809448, 0.20979832112789154, 0.8596407771110535, -1.1750915050506592, -1.1869553327560425, -0.6938489675521851, -0.6629811525344849, 1.99611496925354, -0.20582151412963867, 0.6047783493995667, -0.166952446103096, -1.2926483154296875, -0.16168172657489777, 0.7285361886024475, 0.40200361609458923, -0.44407919049263, 0.7771522402763367, -0.6781615018844604, -1.0751254558563232, -1.4056015014648438, -0.45740246772766113, -1.0413670539855957, -0.8711357712745667, 1.0231027603149414, 0.7878109216690063, 0.3527986705303192, 1.924103021621704, 0.6656416058540344, 0.2717441916465759, -2.5978899002075195, 0.868948757648468, 0.3302416503429413, -0.08382503688335419, 0.8692384362220764, 0.29761430621147156, 1.0661942958831787, -0.0428975373506546, 0.5640226006507874, -2.350654125213623, 2.2765297889709473, -0.18213337659835815, 0.6861506700515747, 0.032333776354789734, -0.2379818707704544, 1.1013121604919434, 0.5840322375297546, 0.576834499835968, -1.1082333326339722, 0.6316280961036682, -0.5855826139450073, 1.1901038885116577, 0.8488075733184814, -0.7871677875518799, -0.0008683111518621445, 1.3502707481384277, 0.47497960925102234, -0.5334844589233398, -0.9547038078308105, -0.9876457452774048, 0.945563018321991, 1.6805723905563354, -0.10287394374608994, -0.003921165131032467, 0.8386645317077637, 0.6805384159088135, -1.250244379043579, 0.08274426311254501, -0.7560269832611084, -0.761878252029419, 1.6453862190246582, 2.032870054244995, -0.197617307305336, -0.18333464860916138, -0.7866719365119934, -1.277175784111023, 0.7839676141738892, -0.04455278813838959, 0.05087999999523163, 0.6562317609786987, -0.6419892311096191, 1.123640775680542, 0.8160219788551331, 0.9518329501152039, 0.20252229273319244, 0.2989584803581238, 0.3617345988750458, -0.3324471116065979, -1.1187938451766968, -0.24678991734981537, -1.0892280340194702, -2.576108455657959, 0.4648890495300293, -0.21890562772750854, -1.4016669988632202, 0.009480543434619904, -0.9739300012588501, 0.8982905149459839, -0.5727550983428955, -1.1180434226989746, -1.472895860671997, 0.2954536974430084, -0.07155786454677582, 0.9305890202522278, -1.6270309686660767, -0.07700309157371521, 1.2112900018692017, 0.9251077771186829, -0.654590904712677, 0.9605237245559692, 0.22694525122642517, 1.0173345804214478, 0.8269578218460083, -0.3999858796596527, 0.5398796200752258, -0.016454163938760757, -1.3011225461959839, 0.4794811010360718, 1.1388471126556396, 0.13864414393901825, 1.4678304195404053, -0.5136696100234985, 0.02861284278333187, 0.403213769197464, -0.5807628035545349, -0.5130099058151245, -0.5472197532653809, 0.6829068064689636, -0.017210179939866066, -0.9211769104003906, 0.025153568014502525, -0.06269404292106628, -0.21011319756507874, 0.24059095978736877, -1.4828931093215942, -0.1599954515695572, -0.35624977946281433, -0.5556564927101135, -1.276471734046936, -0.050106480717659, 1.351976752281189, -0.7318329811096191, -0.21917471289634705, 0.48565927147865295, 0.4128744602203369, 0.49645423889160156, 0.5929173827171326, -0.7269665598869324, -0.36162298917770386, -0.24627771973609924, -0.36984002590179443, 0.28233668208122253, 1.316089391708374, -0.14444801211357117, -0.9992629885673523, 0.699063777923584, -0.38259032368659973, 0.0544123649597168, 1.9495508670806885, 0.12797223031520844, -0.7993029952049255, 0.3344654142856598, -0.7151427268981934, 1.8554134368896484, 1.807225227355957, 1.2634577751159668, -0.13580471277236938, -0.8974276185035706, 0.6457607746124268, -0.38154345750808716, -0.3979913592338562, 0.9249047636985779, 0.3525339365005493, -0.20610910654067993, -1.426829218864441, 0.7358364462852478, 1.3347903490066528, -0.8025565147399902, -0.8295329213142395, 0.09899698197841644, -0.8371274471282959, 1.0565483570098877, 0.6693841814994812, 0.38482269644737244, 0.24250520765781403, 1.6328611373901367, 0.7659339308738708, -0.49272406101226807, 0.56073397397995, 0.5103975534439087, -0.17157547175884247, -2.113798141479492, -1.1865376234054565, 0.2917010486125946, -0.5235059261322021, -1.6518900394439697, 1.3959109783172607, -1.0905125141143799, -0.981827437877655, 0.612024188041687, 0.058938995003700256, 1.4035661220550537, 0.3737771213054657, 1.610931634902954, 2.113927125930786, 0.8295891284942627, 0.3936780095100403, 1.265575647354126, -0.11900375038385391, -0.48769399523735046, 1.8852075338363647, -0.4626515805721283, 0.48724365234375, 1.056398630142212, -0.34424537420272827, -1.0873662233352661, -0.8167374730110168, -1.1755986213684082, -0.6811343431472778, 1.1421849727630615, 0.09619375318288803, -1.0854218006134033, 0.29008960723876953, 1.6480762958526611, 0.10531748086214066, -0.28998473286628723, 0.6317206621170044, 0.35889267921447754, -0.771394670009613, -0.014612091705203056, -0.959479570388794, 0.5414214134216309, -0.20882725715637207, -0.35919004678726196, 0.3234575688838959, 0.46947768330574036, 1.3138418197631836, -0.032530803233385086, 0.11772935092449188, 1.1937856674194336, -1.434771180152893, 1.4975249767303467, -0.6596755385398865, 0.3768799304962158, -2.4442501068115234, 1.382062554359436, -0.8422481417655945, 1.948033332824707, -2.6141459941864014, 0.3736844062805176, -0.5740783214569092, -0.4890991151332855, 0.27379336953163147, -0.33868926763534546, 0.1370794028043747, -0.1191677451133728, -1.1200543642044067, 0.018972571939229965, -0.7024657130241394, 0.5896080136299133, 1.1115639209747314, 1.3885365724563599, -1.0890425443649292, -0.2629130780696869, -1.751060128211975, -0.1562928855419159, -0.641274094581604, 0.3397183120250702, -2.0135340690612793, -0.18938960134983063, -1.9122422933578491, -2.310183048248291, -1.3322786092758179, -0.8734745383262634, 1.0172775983810425, 0.14468906819820404, -0.9001511335372925, 1.1617234945297241, -0.3717103898525238, -1.868216633796692, 1.133630633354187, -2.1540725231170654 ]
https://github.com/huggingface/datasets/issues/6108
Loading local datasets got strangely stuck
I've had similar weird issues with `load_dataset` as well. Not multiple files, but dataset is quite big, about 50G.
### Describe the bug I try to use `load_dataset()` to load several local `.jsonl` files as a dataset. Every line of these files is a json structure only containing one key `text` (yeah it is a dataset for NLP model). The code snippet is as: ```python ds = load_dataset("json", data_files=LIST_OF_FILE_PATHS, num_proc=16)['train'] ``` However, I found that the loading process can get stuck -- the progress bar `Generating train split` no more proceed. When I was trying to find the cause and solution, I found a really strange behavior. If I load the dataset in this way: ```python dlist = list() for _ in LIST_OF_FILE_PATHS: dlist.append(load_dataset("json", data_files=_)['train']) ds = concatenate_datasets(dlist) ``` I can actually successfully load all the files despite its slow speed. But if I load them in batch like above, things go wrong. I did try to use Control-C to trace the stuck point but the program cannot be terminated in this way when `num_proc` is set to `None`. The only thing I can do is use Control-Z to hang it up then kill it. If I use more than 2 cpus, a Control-C would simply cause the following error: ```bash ^C Process ForkPoolWorker-1: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/multiprocess/process.py", line 314, in _bootstrap self.run() File "/usr/local/lib/python3.10/dist-packages/multiprocess/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.10/dist-packages/multiprocess/pool.py", line 114, in worker task = get() File "/usr/local/lib/python3.10/dist-packages/multiprocess/queues.py", line 368, in get res = self._reader.recv_bytes() File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 224, in recv_bytes buf = self._recv_bytes(maxlength) File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 422, in _recv_bytes buf = self._recv(4) File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 387, in _recv chunk = read(handle, remaining) KeyboardInterrupt Generating train split: 92431 examples [01:23, 1104.25 examples/s] Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py", line 1373, in iflatmap_unordered yield queue.get(timeout=0.05) File "<string>", line 2, in get File "/usr/local/lib/python3.10/dist-packages/multiprocess/managers.py", line 818, in _callmethod kind, result = conn.recv() File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 258, in recv buf = self._recv_bytes() File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 422, in _recv_bytes buf = self._recv(4) File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 387, in _recv chunk = read(handle, remaining) KeyboardInterrupt During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/mnt/data/liyongyuan/source/batch_load.py", line 11, in <module> a = load_dataset( File "/usr/local/lib/python3.10/dist-packages/datasets/load.py", line 2133, in load_dataset builder_instance.download_and_prepare( File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 954, in download_and_prepare self._download_and_prepare( File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 1049, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 1842, in _prepare_split for job_id, done, content in iflatmap_unordered( File "/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py", line 1387, in iflatmap_unordered [async_result.get(timeout=0.05) for async_result in async_results] File "/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py", line 1387, in <listcomp> [async_result.get(timeout=0.05) for async_result in async_results] File "/usr/local/lib/python3.10/dist-packages/multiprocess/pool.py", line 770, in get raise TimeoutError multiprocess.context.TimeoutError ``` I have validated the basic correctness of these `.jsonl` files. They are correctly formatted (or they cannot be loaded singly by `load_dataset`) though some of the json may contain too long text (more than 1e7 characters). I do not know if this could be the problem. And there should not be any bottleneck in system's resource. The whole dataset is ~300GB, and I am using a cloud server with plenty of storage and 1TB ram. Thanks for your efforts and patience! Any suggestion or help would be appreciated. ### Steps to reproduce the bug 1. use load_dataset() with `data_files = LIST_OF_FILES` ### Expected behavior All the files should be smoothly loaded. ### Environment info - Datasets: A private dataset. ~2500 `.jsonl` files. ~300GB in total. Each json structure only contains one key: `text`. Format checked. - `datasets` version: 2.14.2 - Platform: Linux-4.19.91-014.kangaroo.alios7.x86_64-x86_64-with-glibc2.35 - Python version: 3.10.6 - Huggingface_hub version: 0.15.1 - PyArrow version: 10.0.1.dev0+ga6eabc2b.d20230609 - Pandas version: 1.5.2
2
19
Loading local datasets got strangely stuck ### Describe the bug I try to use `load_dataset()` to load several local `.jsonl` files as a dataset. Every line of these files is a json structure only containing one key `text` (yeah it is a dataset for NLP model). The code snippet is as: ```python ds = load_dataset("json", data_files=LIST_OF_FILE_PATHS, num_proc=16)['train'] ``` However, I found that the loading process can get stuck -- the progress bar `Generating train split` no more proceed. When I was trying to find the cause and solution, I found a really strange behavior. If I load the dataset in this way: ```python dlist = list() for _ in LIST_OF_FILE_PATHS: dlist.append(load_dataset("json", data_files=_)['train']) ds = concatenate_datasets(dlist) ``` I can actually successfully load all the files despite its slow speed. But if I load them in batch like above, things go wrong. I did try to use Control-C to trace the stuck point but the program cannot be terminated in this way when `num_proc` is set to `None`. The only thing I can do is use Control-Z to hang it up then kill it. If I use more than 2 cpus, a Control-C would simply cause the following error: ```bash ^C Process ForkPoolWorker-1: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/multiprocess/process.py", line 314, in _bootstrap self.run() File "/usr/local/lib/python3.10/dist-packages/multiprocess/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.10/dist-packages/multiprocess/pool.py", line 114, in worker task = get() File "/usr/local/lib/python3.10/dist-packages/multiprocess/queues.py", line 368, in get res = self._reader.recv_bytes() File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 224, in recv_bytes buf = self._recv_bytes(maxlength) File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 422, in _recv_bytes buf = self._recv(4) File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 387, in _recv chunk = read(handle, remaining) KeyboardInterrupt Generating train split: 92431 examples [01:23, 1104.25 examples/s] Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py", line 1373, in iflatmap_unordered yield queue.get(timeout=0.05) File "<string>", line 2, in get File "/usr/local/lib/python3.10/dist-packages/multiprocess/managers.py", line 818, in _callmethod kind, result = conn.recv() File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 258, in recv buf = self._recv_bytes() File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 422, in _recv_bytes buf = self._recv(4) File "/usr/local/lib/python3.10/dist-packages/multiprocess/connection.py", line 387, in _recv chunk = read(handle, remaining) KeyboardInterrupt During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/mnt/data/liyongyuan/source/batch_load.py", line 11, in <module> a = load_dataset( File "/usr/local/lib/python3.10/dist-packages/datasets/load.py", line 2133, in load_dataset builder_instance.download_and_prepare( File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 954, in download_and_prepare self._download_and_prepare( File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 1049, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/usr/local/lib/python3.10/dist-packages/datasets/builder.py", line 1842, in _prepare_split for job_id, done, content in iflatmap_unordered( File "/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py", line 1387, in iflatmap_unordered [async_result.get(timeout=0.05) for async_result in async_results] File "/usr/local/lib/python3.10/dist-packages/datasets/utils/py_utils.py", line 1387, in <listcomp> [async_result.get(timeout=0.05) for async_result in async_results] File "/usr/local/lib/python3.10/dist-packages/multiprocess/pool.py", line 770, in get raise TimeoutError multiprocess.context.TimeoutError ``` I have validated the basic correctness of these `.jsonl` files. They are correctly formatted (or they cannot be loaded singly by `load_dataset`) though some of the json may contain too long text (more than 1e7 characters). I do not know if this could be the problem. And there should not be any bottleneck in system's resource. The whole dataset is ~300GB, and I am using a cloud server with plenty of storage and 1TB ram. Thanks for your efforts and patience! Any suggestion or help would be appreciated. ### Steps to reproduce the bug 1. use load_dataset() with `data_files = LIST_OF_FILES` ### Expected behavior All the files should be smoothly loaded. ### Environment info - Datasets: A private dataset. ~2500 `.jsonl` files. ~300GB in total. Each json structure only contains one key: `text`. Format checked. - `datasets` version: 2.14.2 - Platform: Linux-4.19.91-014.kangaroo.alios7.x86_64-x86_64-with-glibc2.35 - Python version: 3.10.6 - Huggingface_hub version: 0.15.1 - PyArrow version: 10.0.1.dev0+ga6eabc2b.d20230609 - Pandas version: 1.5.2 I've had similar weird issues with `load_dataset` as well. Not multiple files, but dataset is quite big, about 50G.
[ -1.1857736110687256, -0.9407454133033752, -0.7441576719284058, 1.4746325016021729, -0.11657063663005829, -1.2399708032608032, 0.11755771934986115, -1.0479322671890259, 1.7225706577301025, -0.7684071063995361, 0.38269880414009094, -1.6014268398284912, 0.03821048140525818, -0.6209810972213745, -0.7727939486503601, -0.8944603800773621, -0.4088424742221832, -0.8194125294685364, 1.0283896923065186, 2.462496757507324, 1.2099568843841553, -1.403232216835022, 2.7265608310699463, 0.6924651861190796, -0.2164050042629242, -1.0413557291030884, 0.5166077613830566, -0.010159664787352085, -1.1726576089859009, -0.4255408048629761, -0.9635022878646851, -0.10558275878429413, -0.6585036516189575, -0.5079758167266846, 0.05268178880214691, 0.4019443094730377, -0.24002186954021454, -0.3776376247406006, -0.57227623462677, -0.7602928280830383, 0.5162822604179382, -0.3317278325557709, 0.972929060459137, -0.28395286202430725, 1.8031069040298462, -0.6038073301315308, 0.46886107325553894, 0.7760091423988342, 1.354609489440918, 0.2248118817806244, -0.0016446355730295181, 0.3432528078556061, 0.3676868677139282, 0.04271122068166733, 0.5380293726921082, 1.1995790004730225, 0.6081677675247192, 0.5152134895324707, 0.7276692390441895, -2.184246063232422, 1.2898826599121094, -1.0188233852386475, 0.3503153324127197, 1.2698777914047241, -0.9048412442207336, 0.3893762230873108, -1.8603965044021606, -0.04896062612533569, 0.6037646532058716, -2.244311571121216, 0.2338779866695404, -1.3310497999191284, -0.49006420373916626, 0.9795165061950684, 0.3442109227180481, -1.3024133443832397, 0.18255537748336792, -0.42121222615242004, 1.051797866821289, 0.4166954457759857, 1.1190639734268188, -1.6669014692306519, -0.009774336591362953, -0.3293585479259491, 0.1635141670703888, -1.2263544797897339, -1.5070654153823853, 0.5729089975357056, 0.6171499490737915, 0.5612480640411377, -0.13687685132026672, 1.0765891075134277, -1.0261775255203247, 0.8335713744163513, -0.9632993936538696, -1.7179174423217773, -1.4542927742004395, -2.2724311351776123, -2.305119037628174, 0.8332210779190063, -0.48154833912849426, -0.4861609935760498, 2.066084861755371, -0.9672607183456421, -1.760550856590271, 1.1019209623336792, 0.2541908919811249, 0.0005201064050197601, 2.344029188156128, 0.1405647099018097, -0.7619856595993042, 0.4461615979671478, -0.719220757484436, 0.8046331405639648, -0.3599391579627991, 1.3694673776626587, 0.4728565514087677, -1.0297503471374512, 1.5947773456573486, -0.4017045795917511, 0.5501520037651062, -0.6440993547439575, -0.5337281823158264, -0.7929158806800842, 0.33021658658981323, 1.9039069414138794, -0.30433639883995056, 1.5482233762741089, -0.34435856342315674, -1.5470677614212036, -1.564254879951477, 0.888276219367981, 0.48914024233818054, -0.8056665658950806, 0.10974583774805069, -0.39614608883857727, 0.15515007078647614, -0.05539649724960327, 1.18917715549469, 1.2156568765640259, 0.746762752532959, -0.36024799942970276, -0.8663837909698486, 0.1407097578048706, -0.06023271381855011, -0.7152811884880066, -1.8659703731536865, -0.3546149730682373, 0.1788507103919983, 0.6218679547309875, -1.193255066871643, 1.7748363018035889, 0.92495197057724, 1.9225759506225586, 1.0170502662658691, -0.3195354640483856, 1.516502857208252, -0.03558150306344032, 1.8763700723648071, -0.4583948850631714, 0.5885534286499023, -0.360810786485672, -1.196715235710144, 0.8377751708030701, -0.29318201541900635, -2.038484573364258, -0.7103738784790039, -0.834315299987793, -0.17930953204631805, -0.7523581385612488, 0.8580973744392395, -0.3118514120578766, -1.4367921352386475, 0.17469334602355957, -0.6502706408500671, 0.114289291203022, -1.2390071153640747, 0.29432353377342224, 0.6449299454689026, -0.7074230909347534, 0.07158519327640533, -0.3197842836380005, -1.2106208801269531, -0.549460768699646, 0.2689276933670044, 1.8636901378631592, -0.7478760480880737, 0.9734770655632019, 1.032645583152771, -0.6845254302024841, -0.028486648574471474, 0.3420042097568512, -0.29361337423324585, 0.8849694728851318, -1.0835940837860107, -0.4671410620212555, 1.1719520092010498, -0.16941338777542114, -0.6102598905563354, 1.4208518266677856, 0.7856005430221558, -1.054190993309021, -0.24877195060253143, -0.2335503250360489, -0.8555761575698853, 0.04584003984928131, -1.586504340171814, -0.11513541638851166, 0.4020754098892212, -1.5483136177062988, -0.38727813959121704, -0.20324184000492096, 1.27974271774292, -0.22253526747226715, 1.4569973945617676, -0.33041122555732727, -0.24466556310653687, -0.32929882407188416, -0.4515054523944855, 0.16523446142673492, -0.11603590846061707, -0.6699464917182922, 0.16696299612522125, -0.7458930611610413, 0.3739664554595947, 1.4462465047836304, 0.3052820861339569, 0.036311499774456024, 0.5148871541023254, 1.1212682723999023, 0.3424697816371918, 0.044216401875019073, -0.9726801514625549, -1.5047413110733032, 2.0229122638702393, -1.439529299736023, 1.9469588994979858, 0.7661038637161255, -0.06159823387861252, -1.8067489862442017, -1.8054803609848022, 1.3576617240905762, 1.1666648387908936, 2.3743810653686523, 0.5515940189361572, 0.38672754168510437, -0.8191073536872864, -0.6778033971786499, 0.3580164611339569, -1.0762383937835693, -0.7609761357307434, 0.12679025530815125, 2.3991148471832275, 1.8205279111862183, -0.502000093460083, -0.2354866862297058, -1.0072424411773682, 1.381729006767273, -0.22363805770874023, 0.2667018473148346, 2.015361785888672, -0.2953281104564667, -1.0586005449295044, 1.2469573020935059, -2.3405649662017822, 0.18798625469207764, 2.040473699569702, 0.2513265609741211, 0.1753658950328827, -1.4550968408584595, -0.6100200414657593, -0.19842049479484558, -0.4470710754394531, -1.256653904914856, 0.5058630108833313, -0.27943867444992065, -0.7859964966773987, -1.4496008157730103, 0.15890000760555267, -1.1547420024871826, -1.689998745918274, 0.2607925534248352, 1.9289904832839966, 2.0340874195098877, -0.7462478876113892, 1.5081462860107422, -0.3079971373081207, 0.18657687306404114, 1.286574363708496, 1.286323070526123, 3.098590850830078, 1.9048638343811035, -1.2199252843856812, 0.6274429559707642, -0.21113325655460358, -0.49390748143196106, 1.138333797454834, -1.1720070838928223, 1.1568132638931274, -0.1872391402721405, -1.1009259223937988, -1.19161057472229, 1.007169485092163, 0.47824111580848694, 0.02073085308074951, -0.5081774592399597, 1.2130450010299683, 0.09992562979459763, 1.3254599571228027, 0.5691626071929932, -0.3873027265071869, 0.6314074993133545, -0.3668352961540222, -0.4965443015098572, 1.613722324371338, 0.1891213208436966, -1.384263277053833, -2.328956127166748, -0.18701601028442383, -0.9365720152854919, 0.045867085456848145, -0.580862283706665, -0.958073616027832, 1.6262056827545166, 0.34906628727912903, -1.2879420518875122, -0.2250802218914032, -0.3236059546470642, -0.6110820174217224, 2.636465072631836, -1.3133381605148315, -0.21953465044498444, -0.9799793362617493, -0.6194500923156738, 1.666200041770935, -1.160622477531433, -0.24824216961860657, -1.0042481422424316, -0.5782238841056824, -1.3139687776565552, -0.504253089427948, 0.006970008835196495, -0.9177166819572449, 0.8342537879943848, 0.17317669093608856, -1.152393102645874, -0.3344455063343048, -0.8396942615509033, 0.9102033972740173, -0.10824748873710632, 0.16855069994926453, 1.856787085533142, 0.35888707637786865, -0.39788252115249634, 0.7186763882637024, 1.1461787223815918, 0.6140767931938171, -0.5669205784797668, 0.20943814516067505, -0.6787242889404297, 0.28269535303115845, -1.2839521169662476, 0.3277348577976227, -2.8885583877563477, 0.7232061624526978, -0.09950622171163559, -0.08384138345718384, -0.08552236109972, -1.3513370752334595, 1.0464576482772827, 2.6293892860412598, -1.1441740989685059, 0.47064316272735596, 0.32985731959342957, 1.160235047340393, -1.6788133382797241, 0.2724669575691223, -0.4323078393936157, 2.1404330730438232, 0.15187376737594604, 1.2186286449432373, -0.40442413091659546, -2.308438539505005, 0.5948107242584229, -1.2602182626724243, -1.1369141340255737, 0.7923150658607483, -0.7879585027694702, 0.13558050990104675, -1.4016728401184082, -0.21533024311065674, -0.9284399747848511, -1.179283618927002, 0.7575048208236694, 0.1545705497264862, 0.4516685903072357, -0.6421931982040405, 0.32089704275131226, -2.166081190109253, -1.3812161684036255, -0.20191077888011932, -0.935924232006073, 0.48065775632858276, -0.3313238322734833, 0.6799854040145874, -0.1405913531780243, 0.048482559621334076, 0.33047324419021606, 1.4958500862121582, 3.4104464054107666, 0.15938714146614075, 0.31089693307876587, -0.19146916270256042, -0.893835186958313, 1.4162228107452393, 0.88791823387146, -0.14496727287769318, -0.5868193507194519, -1.0717086791992188, 1.253820776939392, 2.0058417320251465, 1.0297530889511108, 0.10569362342357635, -0.7883124351501465, -0.722813069820404, -0.060019999742507935, 0.17492865025997162, 0.4602712392807007, 0.8696073889732361, 0.0407901257276535, 0.09817802906036377, 1.3810077905654907, 1.1756192445755005, -0.41315758228302, 0.3348855674266815, -0.8387416005134583, -0.42695140838623047, 0.4968971610069275, 0.2145848572254181, -0.009452552534639835, 0.3268333077430725, -1.0249592065811157, -0.2579589784145355, -0.3388806879520416, -0.9548298120498657, -0.7445858120918274, -0.4307718276977539, -0.3861316740512848, 1.6309629678726196, 0.07657036930322647, -0.5334811210632324, -0.028085755184292793, -0.6963358521461487, -0.08608516305685043, -1.0765913724899292, 0.16933338344097137, -0.09807632118463516, -0.1379164606332779, -0.142483651638031, 1.7149851322174072, -0.8927140235900879, -2.033263921737671, 0.2613278925418854, 0.24954141676425934, -0.34509292244911194, 0.24373771250247955, 1.6935194730758667, 0.48897215723991394, 1.4522329568862915, 1.3573921918869019, 0.9454881548881531, -0.6484937071800232, -1.262046456336975, 0.6607219576835632, 0.980215311050415, -1.4375168085098267, 0.7953000068664551, -0.020188678056001663, -0.45730048418045044, 0.6360543966293335, 1.311997890472412, 0.45368754863739014, -2.05928635597229, 0.8549001812934875, -0.941453754901886, 0.7588342428207397, 0.6597298383712769, 0.6531943082809448, 0.20979832112789154, 0.8596407771110535, -1.1750915050506592, -1.1869553327560425, -0.6938489675521851, -0.6629811525344849, 1.99611496925354, -0.20582151412963867, 0.6047783493995667, -0.166952446103096, -1.2926483154296875, -0.16168172657489777, 0.7285361886024475, 0.40200361609458923, -0.44407919049263, 0.7771522402763367, -0.6781615018844604, -1.0751254558563232, -1.4056015014648438, -0.45740246772766113, -1.0413670539855957, -0.8711357712745667, 1.0231027603149414, 0.7878109216690063, 0.3527986705303192, 1.924103021621704, 0.6656416058540344, 0.2717441916465759, -2.5978899002075195, 0.868948757648468, 0.3302416503429413, -0.08382503688335419, 0.8692384362220764, 0.29761430621147156, 1.0661942958831787, -0.0428975373506546, 0.5640226006507874, -2.350654125213623, 2.2765297889709473, -0.18213337659835815, 0.6861506700515747, 0.032333776354789734, -0.2379818707704544, 1.1013121604919434, 0.5840322375297546, 0.576834499835968, -1.1082333326339722, 0.6316280961036682, -0.5855826139450073, 1.1901038885116577, 0.8488075733184814, -0.7871677875518799, -0.0008683111518621445, 1.3502707481384277, 0.47497960925102234, -0.5334844589233398, -0.9547038078308105, -0.9876457452774048, 0.945563018321991, 1.6805723905563354, -0.10287394374608994, -0.003921165131032467, 0.8386645317077637, 0.6805384159088135, -1.250244379043579, 0.08274426311254501, -0.7560269832611084, -0.761878252029419, 1.6453862190246582, 2.032870054244995, -0.197617307305336, -0.18333464860916138, -0.7866719365119934, -1.277175784111023, 0.7839676141738892, -0.04455278813838959, 0.05087999999523163, 0.6562317609786987, -0.6419892311096191, 1.123640775680542, 0.8160219788551331, 0.9518329501152039, 0.20252229273319244, 0.2989584803581238, 0.3617345988750458, -0.3324471116065979, -1.1187938451766968, -0.24678991734981537, -1.0892280340194702, -2.576108455657959, 0.4648890495300293, -0.21890562772750854, -1.4016669988632202, 0.009480543434619904, -0.9739300012588501, 0.8982905149459839, -0.5727550983428955, -1.1180434226989746, -1.472895860671997, 0.2954536974430084, -0.07155786454677582, 0.9305890202522278, -1.6270309686660767, -0.07700309157371521, 1.2112900018692017, 0.9251077771186829, -0.654590904712677, 0.9605237245559692, 0.22694525122642517, 1.0173345804214478, 0.8269578218460083, -0.3999858796596527, 0.5398796200752258, -0.016454163938760757, -1.3011225461959839, 0.4794811010360718, 1.1388471126556396, 0.13864414393901825, 1.4678304195404053, -0.5136696100234985, 0.02861284278333187, 0.403213769197464, -0.5807628035545349, -0.5130099058151245, -0.5472197532653809, 0.6829068064689636, -0.017210179939866066, -0.9211769104003906, 0.025153568014502525, -0.06269404292106628, -0.21011319756507874, 0.24059095978736877, -1.4828931093215942, -0.1599954515695572, -0.35624977946281433, -0.5556564927101135, -1.276471734046936, -0.050106480717659, 1.351976752281189, -0.7318329811096191, -0.21917471289634705, 0.48565927147865295, 0.4128744602203369, 0.49645423889160156, 0.5929173827171326, -0.7269665598869324, -0.36162298917770386, -0.24627771973609924, -0.36984002590179443, 0.28233668208122253, 1.316089391708374, -0.14444801211357117, -0.9992629885673523, 0.699063777923584, -0.38259032368659973, 0.0544123649597168, 1.9495508670806885, 0.12797223031520844, -0.7993029952049255, 0.3344654142856598, -0.7151427268981934, 1.8554134368896484, 1.807225227355957, 1.2634577751159668, -0.13580471277236938, -0.8974276185035706, 0.6457607746124268, -0.38154345750808716, -0.3979913592338562, 0.9249047636985779, 0.3525339365005493, -0.20610910654067993, -1.426829218864441, 0.7358364462852478, 1.3347903490066528, -0.8025565147399902, -0.8295329213142395, 0.09899698197841644, -0.8371274471282959, 1.0565483570098877, 0.6693841814994812, 0.38482269644737244, 0.24250520765781403, 1.6328611373901367, 0.7659339308738708, -0.49272406101226807, 0.56073397397995, 0.5103975534439087, -0.17157547175884247, -2.113798141479492, -1.1865376234054565, 0.2917010486125946, -0.5235059261322021, -1.6518900394439697, 1.3959109783172607, -1.0905125141143799, -0.981827437877655, 0.612024188041687, 0.058938995003700256, 1.4035661220550537, 0.3737771213054657, 1.610931634902954, 2.113927125930786, 0.8295891284942627, 0.3936780095100403, 1.265575647354126, -0.11900375038385391, -0.48769399523735046, 1.8852075338363647, -0.4626515805721283, 0.48724365234375, 1.056398630142212, -0.34424537420272827, -1.0873662233352661, -0.8167374730110168, -1.1755986213684082, -0.6811343431472778, 1.1421849727630615, 0.09619375318288803, -1.0854218006134033, 0.29008960723876953, 1.6480762958526611, 0.10531748086214066, -0.28998473286628723, 0.6317206621170044, 0.35889267921447754, -0.771394670009613, -0.014612091705203056, -0.959479570388794, 0.5414214134216309, -0.20882725715637207, -0.35919004678726196, 0.3234575688838959, 0.46947768330574036, 1.3138418197631836, -0.032530803233385086, 0.11772935092449188, 1.1937856674194336, -1.434771180152893, 1.4975249767303467, -0.6596755385398865, 0.3768799304962158, -2.4442501068115234, 1.382062554359436, -0.8422481417655945, 1.948033332824707, -2.6141459941864014, 0.3736844062805176, -0.5740783214569092, -0.4890991151332855, 0.27379336953163147, -0.33868926763534546, 0.1370794028043747, -0.1191677451133728, -1.1200543642044067, 0.018972571939229965, -0.7024657130241394, 0.5896080136299133, 1.1115639209747314, 1.3885365724563599, -1.0890425443649292, -0.2629130780696869, -1.751060128211975, -0.1562928855419159, -0.641274094581604, 0.3397183120250702, -2.0135340690612793, -0.18938960134983063, -1.9122422933578491, -2.310183048248291, -1.3322786092758179, -0.8734745383262634, 1.0172775983810425, 0.14468906819820404, -0.9001511335372925, 1.1617234945297241, -0.3717103898525238, -1.868216633796692, 1.133630633354187, -2.1540725231170654 ]
https://github.com/huggingface/datasets/issues/6099
How do i get "amazon_us_reviews
Seems like the problem isn't with the library, but the dataset itself hosted on AWS S3. Its [homepage](https://s3.amazonaws.com/amazon-reviews-pds/readme.html) returns an `AccessDenied` XML response, which is the same thing you get if you try to log the `record` that triggers the exception ```python try: example = self.info.features.encode_example(record) if self.info.features is not None else record except Exception as e: print(record) ``` ⬇️ ``` {'<?xml version="1.0" encoding="UTF-8"?>': '<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>N2HFJ82ZV8SZW9BV</RequestId><HostId>Zw2DQ0V2GdRmvH5qWEpumK4uj5+W8YPcilQbN9fLBr3VqQOcKPHOhUZLG3LcM9X5fkOetxp48Os=</HostId></Error>'} ```
### Feature request I have been trying to load 'amazon_us_dataset" but unable to do so. `amazon_us_reviews = load_dataset('amazon_us_reviews')` `print(amazon_us_reviews)` > [ValueError: Config name is missing. Please pick one among the available configs: ['Wireless_v1_00', 'Watches_v1_00', 'Video_Games_v1_00', 'Video_DVD_v1_00', 'Video_v1_00', 'Toys_v1_00', 'Tools_v1_00', 'Sports_v1_00', 'Software_v1_00', 'Shoes_v1_00', 'Pet_Products_v1_00', 'Personal_Care_Appliances_v1_00', 'PC_v1_00', 'Outdoors_v1_00', 'Office_Products_v1_00', 'Musical_Instruments_v1_00', 'Music_v1_00', 'Mobile_Electronics_v1_00', 'Mobile_Apps_v1_00', 'Major_Appliances_v1_00', 'Luggage_v1_00', 'Lawn_and_Garden_v1_00', 'Kitchen_v1_00', 'Jewelry_v1_00', 'Home_Improvement_v1_00', 'Home_Entertainment_v1_00', 'Home_v1_00', 'Health_Personal_Care_v1_00', 'Grocery_v1_00', 'Gift_Card_v1_00', 'Furniture_v1_00', 'Electronics_v1_00', 'Digital_Video_Games_v1_00', 'Digital_Video_Download_v1_00', 'Digital_Software_v1_00', 'Digital_Music_Purchase_v1_00', 'Digital_Ebook_Purchase_v1_00', 'Camera_v1_00', 'Books_v1_00', 'Beauty_v1_00', 'Baby_v1_00', 'Automotive_v1_00', 'Apparel_v1_00', 'Digital_Ebook_Purchase_v1_01', 'Books_v1_01', 'Books_v1_02'] Example of usage: `load_dataset('amazon_us_reviews', 'Wireless_v1_00')`] __________________________________________________________________________ `amazon_us_reviews = load_dataset('amazon_us_reviews', 'Watches_v1_00') print(amazon_us_reviews)` **ERROR** `Generating` train split: 0% 0/960872 [00:00<?, ? examples/s] --------------------------------------------------------------------------- KeyError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/datasets/builder.py in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, split_info, check_duplicate_keys, job_id) 1692 ) -> 1693 example = self.info.features.encode_example(record) if self.info.features is not None else record 1694 writer.write(example, key) 11 frames KeyError: 'marketplace' The above exception was the direct cause of the following exception: DatasetGenerationError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/datasets/builder.py in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, split_info, check_duplicate_keys, job_id) 1710 if isinstance(e, SchemaInferenceError) and e.__context__ is not None: 1711 e = e.__context__ -> 1712 raise DatasetGenerationError("An error occurred while generating the dataset") from e 1713 1714 yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_shards, shard_lengths) DatasetGenerationError: An error occurred while generating the dataset ### Motivation The dataset I'm using https://huggingface.co/datasets/amazon_us_reviews ### Your contribution What is the best way to load this data
5
67
How do i get "amazon_us_reviews ### Feature request I have been trying to load 'amazon_us_dataset" but unable to do so. `amazon_us_reviews = load_dataset('amazon_us_reviews')` `print(amazon_us_reviews)` > [ValueError: Config name is missing. Please pick one among the available configs: ['Wireless_v1_00', 'Watches_v1_00', 'Video_Games_v1_00', 'Video_DVD_v1_00', 'Video_v1_00', 'Toys_v1_00', 'Tools_v1_00', 'Sports_v1_00', 'Software_v1_00', 'Shoes_v1_00', 'Pet_Products_v1_00', 'Personal_Care_Appliances_v1_00', 'PC_v1_00', 'Outdoors_v1_00', 'Office_Products_v1_00', 'Musical_Instruments_v1_00', 'Music_v1_00', 'Mobile_Electronics_v1_00', 'Mobile_Apps_v1_00', 'Major_Appliances_v1_00', 'Luggage_v1_00', 'Lawn_and_Garden_v1_00', 'Kitchen_v1_00', 'Jewelry_v1_00', 'Home_Improvement_v1_00', 'Home_Entertainment_v1_00', 'Home_v1_00', 'Health_Personal_Care_v1_00', 'Grocery_v1_00', 'Gift_Card_v1_00', 'Furniture_v1_00', 'Electronics_v1_00', 'Digital_Video_Games_v1_00', 'Digital_Video_Download_v1_00', 'Digital_Software_v1_00', 'Digital_Music_Purchase_v1_00', 'Digital_Ebook_Purchase_v1_00', 'Camera_v1_00', 'Books_v1_00', 'Beauty_v1_00', 'Baby_v1_00', 'Automotive_v1_00', 'Apparel_v1_00', 'Digital_Ebook_Purchase_v1_01', 'Books_v1_01', 'Books_v1_02'] Example of usage: `load_dataset('amazon_us_reviews', 'Wireless_v1_00')`] __________________________________________________________________________ `amazon_us_reviews = load_dataset('amazon_us_reviews', 'Watches_v1_00') print(amazon_us_reviews)` **ERROR** `Generating` train split: 0% 0/960872 [00:00<?, ? examples/s] --------------------------------------------------------------------------- KeyError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/datasets/builder.py in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, split_info, check_duplicate_keys, job_id) 1692 ) -> 1693 example = self.info.features.encode_example(record) if self.info.features is not None else record 1694 writer.write(example, key) 11 frames KeyError: 'marketplace' The above exception was the direct cause of the following exception: DatasetGenerationError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/datasets/builder.py in _prepare_split_single(self, gen_kwargs, fpath, file_format, max_shard_size, split_info, check_duplicate_keys, job_id) 1710 if isinstance(e, SchemaInferenceError) and e.__context__ is not None: 1711 e = e.__context__ -> 1712 raise DatasetGenerationError("An error occurred while generating the dataset") from e 1713 1714 yield job_id, True, (total_num_examples, total_num_bytes, writer._features, num_shards, shard_lengths) DatasetGenerationError: An error occurred while generating the dataset ### Motivation The dataset I'm using https://huggingface.co/datasets/amazon_us_reviews ### Your contribution What is the best way to load this data Seems like the problem isn't with the library, but the dataset itself hosted on AWS S3. Its [homepage](https://s3.amazonaws.com/amazon-reviews-pds/readme.html) returns an `AccessDenied` XML response, which is the same thing you get if you try to log the `record` that triggers the exception ```python try: example = self.info.features.encode_example(record) if self.info.features is not None else record except Exception as e: print(record) ``` ⬇️ ``` {'<?xml version="1.0" encoding="UTF-8"?>': '<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>N2HFJ82ZV8SZW9BV</RequestId><HostId>Zw2DQ0V2GdRmvH5qWEpumK4uj5+W8YPcilQbN9fLBr3VqQOcKPHOhUZLG3LcM9X5fkOetxp48Os=</HostId></Error>'} ```
[ -1.210225224494934, -1.2076855897903442, -0.5899178385734558, 1.6656270027160645, 0.004276080057024956, -1.407726764678955, 0.13049446046352386, -1.0258605480194092, 1.3568669557571411, -0.8192351460456848, 0.10499061644077301, -1.3370153903961182, -0.003387860022485256, -0.7357089519500732, -0.5535927414894104, -0.645135760307312, -0.1984367072582245, -0.8439528346061707, 1.4069613218307495, 2.210432291030884, 1.0771844387054443, -1.2784123420715332, 2.874554395675659, 0.7134087681770325, -0.0638667643070221, -1.1538865566253662, 0.4330454468727112, -0.2653447985649109, -0.9392576217651367, -0.5149978995323181, -0.850578248500824, -0.09525898844003677, -0.7634775638580322, -0.09788039326667786, -0.15268194675445557, 0.6361565589904785, -0.4678264856338501, -0.44046521186828613, -0.6344451308250427, -0.7170416116714478, 0.4539276361465454, -0.33075350522994995, 0.9608746767044067, -0.23293602466583252, 1.681182622909546, -0.47491174936294556, 0.2851182818412781, 0.784346878528595, 1.278829574584961, 0.1633814126253128, 0.14690861105918884, 0.38026928901672363, 0.22397121787071228, -0.03365974500775337, 0.6068795919418335, 1.001813530921936, 0.5345300436019897, 0.23699675500392914, 0.7897163033485413, -2.433513641357422, 1.290249228477478, -1.1158027648925781, 0.1610543578863144, 1.3842651844024658, -0.5954002737998962, 0.3272398114204407, -1.5675562620162964, 0.04536373168230057, 0.7079699039459229, -1.9616398811340332, 0.5900647044181824, -1.1617034673690796, -0.4066806435585022, 0.5939295887947083, 0.5372082591056824, -1.1958670616149902, -0.10249854624271393, -0.4080660343170166, 1.128000259399414, 0.5118468999862671, 0.4748923182487488, -1.699906826019287, 0.054819270968437195, 0.033914122730493546, 0.3473580479621887, -1.2458455562591553, -1.705798625946045, 0.5336384773254395, 0.42615222930908203, 0.9004007577896118, -0.06082773581147194, 1.1512850522994995, -1.3419617414474487, 0.6575153470039368, -1.2884385585784912, -1.5539414882659912, -1.262231469154358, -2.63409686088562, -2.2260830402374268, 0.5782156586647034, -0.4969367980957031, -0.6304066181182861, 2.0096817016601562, -0.8032044768333435, -1.5205976963043213, 1.2951574325561523, 0.16630414128303528, 0.12891386449337006, 2.5492637157440186, 0.14445346593856812, -0.874646782875061, 0.6491203308105469, -0.9307577610015869, 0.8942434787750244, -0.27523595094680786, 1.3601065874099731, 0.5195751190185547, -0.7659162878990173, 1.4580668210983276, -0.5078427791595459, 0.624810516834259, -0.34090447425842285, -0.5396624207496643, -0.9580057859420776, 0.24867521226406097, 1.6368212699890137, 0.12380026280879974, 1.3170899152755737, -0.4155381917953491, -1.4781368970870972, -1.5445414781570435, 1.2362614870071411, 0.06426393240690231, -1.168350338935852, 0.14447782933712006, -0.6529622673988342, 0.3697661757469177, -0.29447436332702637, 1.4101039171218872, 1.471571922302246, 0.38914722204208374, -0.6313988566398621, -0.7663823366165161, -0.12903627753257751, -0.42137467861175537, -0.7936902046203613, -1.8142924308776855, -0.08673470467329025, 0.040670957416296005, 0.6674957871437073, -0.9456651210784912, 1.8394280672073364, 0.8803703784942627, 2.0485520362854004, 0.845221757888794, -0.3151698112487793, 1.2785146236419678, 0.00005810242146253586, 1.720511555671692, -0.727744996547699, 0.3888530731201172, -0.4364479184150696, -0.9577677845954895, 0.9937989711761475, -0.2541348338127136, -1.790514349937439, -0.8596090078353882, -0.6773314476013184, -0.3794596791267395, -0.717743456363678, 0.5647395253181458, -0.4480542540550232, -1.5472736358642578, 0.2019083946943283, -0.7155848741531372, 0.4135091304779053, -1.0086767673492432, 0.2829146385192871, 0.535873532295227, -0.6549561619758606, 0.13142725825309753, -0.02421613782644272, -1.3086822032928467, -0.589641809463501, 0.88921058177948, 1.8333200216293335, -0.3410009741783142, 0.427082359790802, 1.0636069774627686, -0.45642268657684326, 0.06618424504995346, 0.0847572386264801, -0.15333279967308044, 0.3910595178604126, -0.9766692519187927, -0.8112574219703674, 1.399424433708191, -0.4253351092338562, -0.8040767908096313, 1.4840502738952637, 0.8294554352760315, -1.1904504299163818, -0.08783432841300964, -0.2914966940879822, -0.952640950679779, 0.19159404933452606, -1.6431506872177124, -0.12051217257976532, 0.8109571933746338, -1.4818313121795654, -0.17697036266326904, -0.28869760036468506, 1.1779723167419434, 0.003311261534690857, 1.2718478441238403, -0.6217518448829651, 0.041214991360902786, 0.035499658435583115, -0.6562933921813965, 0.37938326597213745, -0.21529383957386017, -0.32851701974868774, -0.3954307436943054, -0.8601893782615662, 0.5059376955032349, 1.4699455499649048, -0.04866672307252884, 0.07238081097602844, 0.21858654916286469, 1.2743110656738281, 0.29731273651123047, 0.30780118703842163, -0.7257699370384216, -1.314125657081604, 1.889410138130188, -1.582964539527893, 2.0784246921539307, 0.4990677833557129, -0.02205764874815941, -1.837114691734314, -1.6086084842681885, 1.201932668685913, 1.0154391527175903, 1.839293122291565, 0.39368391036987305, 0.27081531286239624, -0.9781020879745483, -0.8647156357765198, 0.0026127807796001434, -0.7459132671356201, -0.4674784541130066, 0.1477011740207672, 2.4664461612701416, 1.845963716506958, -0.3466310501098633, -0.1747690588235855, -0.6480832695960999, 1.657706379890442, -0.4793803095817566, 0.4831036925315857, 2.1193933486938477, -0.25760677456855774, -0.7761260271072388, 1.6101703643798828, -2.6984970569610596, 0.4672843813896179, 2.372407913208008, 0.2649036645889282, 0.4158872365951538, -1.1040525436401367, -0.6779287457466125, -0.6785708069801331, -0.1327590048313141, -1.316164255142212, 0.5729241967201233, -0.4916074872016907, -0.7749151587486267, -1.3347010612487793, 0.4333084225654602, -1.0847443342208862, -1.5833227634429932, 0.3183261752128601, 2.103281021118164, 2.4041569232940674, -0.6306108236312866, 1.5512393712997437, -0.007784207817167044, 0.20612473785877228, 1.2300636768341064, 1.3499733209609985, 2.845396041870117, 1.7266435623168945, -1.1758760213851929, 0.4977846145629883, -0.42966365814208984, -0.7066797018051147, 1.0213794708251953, -1.1420575380325317, 1.1663846969604492, -0.05476696789264679, -1.2194428443908691, -1.334078073501587, 1.1617594957351685, 0.5064898133277893, -0.0215921588242054, -0.4666362404823303, 1.2061923742294312, -0.07301675528287888, 1.2218153476715088, 0.7493334412574768, -0.43469029664993286, 0.2239176481962204, -0.3820257782936096, -0.9302724003791809, 1.4656208753585815, 0.24327035248279572, -1.6889475584030151, -2.0539350509643555, -0.38808900117874146, -0.7484136819839478, 0.11090066283941269, -0.5279773473739624, -1.1371877193450928, 1.4302864074707031, 0.1062920093536377, -1.0905733108520508, -0.19754262268543243, -0.175728440284729, -0.2696554660797119, 2.7831785678863525, -0.9073716998100281, -0.2467544674873352, -0.9142609238624573, -0.7358637452125549, 1.7873032093048096, -1.318844199180603, -0.2890281081199646, -1.3964159488677979, -0.35565823316574097, -1.0720001459121704, -0.3030719757080078, 0.08364307880401611, -0.9669814109802246, 1.0273404121398926, 0.48243510723114014, -1.1686762571334839, -0.3992760181427002, -1.1077864170074463, 1.2440744638442993, -0.2313564419746399, 0.1320086419582367, 1.426996111869812, -0.09177441149950027, -0.4927833676338196, 1.0818347930908203, 1.1259385347366333, 0.5235150456428528, -0.6695930361747742, -0.1684689223766327, -0.13044239580631256, 0.5572344660758972, -1.0423877239227295, 0.459705114364624, -3.0644073486328125, 0.6658030152320862, -0.08722704648971558, -0.34145885705947876, -0.15602488815784454, -1.7850298881530762, 1.2232521772384644, 2.292124032974243, -1.3759785890579224, 0.8795415759086609, 0.28657811880111694, 1.236118197441101, -1.7205818891525269, 0.4713534712791443, -0.4212278723716736, 1.97178053855896, 0.010953184217214584, 1.3331756591796875, -0.5974486470222473, -2.785918712615967, 0.6235342621803284, -1.135292887687683, -0.9101631045341492, 0.6342471241950989, -1.1590989828109741, 0.5013990998268127, -1.60431969165802, -0.5858711004257202, -1.1055039167404175, -1.2915143966674805, 0.47223347425460815, 0.32373547554016113, 0.30443984270095825, -0.44573307037353516, 0.1576235592365265, -2.4738998413085938, -1.6853656768798828, 0.028064537793397903, -0.9745598435401917, 0.9441985487937927, -0.6840437054634094, 0.3939555287361145, -0.06484653055667877, 0.16767986118793488, 0.12203171849250793, 1.9222233295440674, 3.461688280105591, -0.038762226700782776, 0.2616981863975525, -0.14331555366516113, -0.8668848276138306, 1.289034366607666, 0.7618101835250854, -0.1277521699666977, -0.4414854645729065, -0.9162626266479492, 1.3535770177841187, 2.1725475788116455, 0.5025514960289001, -0.20749692618846893, -0.669009268283844, -0.37805110216140747, -0.14053131639957428, 0.34876757860183716, 0.7273016571998596, 0.8370339870452881, 0.1294945627450943, -0.1535031795501709, 1.1980621814727783, 1.021328091621399, -0.43237918615341187, 0.33095699548721313, -0.9550994634628296, -0.22235724329948425, 0.5584542155265808, -0.09988810867071152, -0.31367379426956177, 0.6109278798103333, -0.8184192776679993, -0.2740359306335449, -0.38542044162750244, -0.5391601324081421, -0.7834737300872803, -0.30326974391937256, -0.5900498032569885, 1.357992172241211, 0.5978986620903015, -0.7652480602264404, 0.23053386807441711, -0.36358755826950073, -0.24375613033771515, -1.1285080909729004, -0.04514545947313309, -0.22764725983142853, -0.3169388175010681, -0.43946605920791626, 1.6149792671203613, -0.9094502925872803, -1.9904204607009888, -0.19490422308444977, 0.514474093914032, 0.1926998347043991, 0.3426697254180908, 1.8582179546356201, 0.1355520635843277, 1.5770585536956787, 1.3802621364593506, 0.8927075862884521, -0.8777205944061279, -1.273087501525879, 0.6913639307022095, 0.8971491456031799, -1.3372564315795898, 0.7733129858970642, -0.22003789246082306, -0.4611368179321289, 0.7624301910400391, 1.3862580060958862, 0.42917704582214355, -1.9775104522705078, 1.0535575151443481, -1.450316309928894, 1.2817925214767456, 0.9948550462722778, 0.47844433784484863, 0.49309593439102173, 0.9611654877662659, -1.010849952697754, -1.006635069847107, -0.8791612982749939, -1.1208795309066772, 1.973947525024414, -0.730656623840332, 0.6304389238357544, 0.19190426170825958, -1.1622687578201294, 0.07389011979103088, 0.7545357942581177, 0.7704148292541504, -0.32005566358566284, 0.6891259551048279, -0.8924314975738525, -1.0763399600982666, -1.1235287189483643, -0.4449293613433838, -1.2491129636764526, -1.074207067489624, 0.7771356105804443, 0.7565221190452576, 0.411258339881897, 1.779042363166809, 0.7999269366264343, 0.5987473130226135, -2.3146960735321045, 1.0212346315383911, 0.14241838455200195, 0.0026575513184070587, 0.5834146738052368, 0.5550764799118042, 1.2536181211471558, 0.22779113054275513, 0.5620061159133911, -2.252286434173584, 2.234640121459961, -0.16716912388801575, 0.7293847799301147, -0.3336590528488159, -0.17689232528209686, 1.0469987392425537, 0.5857565999031067, 0.367010235786438, -0.9330582618713379, 0.6918842792510986, -0.344753623008728, 1.2816226482391357, 0.9383744597434998, -0.8651370406150818, 0.09119991213083267, 1.5379867553710938, 0.13376307487487793, -1.0344265699386597, -1.2139235734939575, -0.871809184551239, 0.6158676743507385, 1.128057837486267, -0.18427661061286926, -0.2781570553779602, 0.6295852065086365, 0.6280599236488342, -1.0339771509170532, 0.10141491889953613, -0.38715219497680664, -0.6377065777778625, 1.7574594020843506, 2.0886964797973633, -0.559212327003479, 0.28490257263183594, -0.5996301770210266, -1.3925811052322388, 0.5229480266571045, -0.13023564219474792, -0.2075139582157135, 0.17138510942459106, -0.45400702953338623, 0.7497163414955139, 0.35222554206848145, 0.833016037940979, -0.016863349825143814, 0.38693875074386597, 0.6733444333076477, -0.6780864000320435, -1.0972853899002075, -0.6176152229309082, -1.4139716625213623, -2.480553150177002, 0.18748946487903595, -0.3185712695121765, -1.5156983137130737, 0.1472565084695816, -0.785729169845581, 1.1074588298797607, -0.6563748717308044, -1.055670976638794, -1.1924864053726196, 0.39504653215408325, 0.023491207510232925, 0.8567736148834229, -1.9032783508300781, -0.22709371149539948, 1.1499295234680176, 0.6834973692893982, -0.753402054309845, 1.2836345434188843, 0.3270207643508911, 1.0520933866500854, 0.4434722065925598, -0.4381895661354065, 0.8627181053161621, -0.2417100965976715, -1.3835155963897705, 0.7838159203529358, 1.1783146858215332, 0.05895195156335831, 1.3107820749282837, 0.03911576047539711, -0.09683475643396378, 0.47304069995880127, -0.9950792193412781, -0.346868634223938, 0.0006741201505064964, 0.7155879735946655, 0.027320116758346558, -0.7075086832046509, -0.21985284984111786, 0.039648450911045074, -0.6693775653839111, 0.23051853477954865, -1.7220393419265747, -0.3522859215736389, -0.6524487137794495, -0.26080596446990967, -1.5924729108810425, -0.06879851222038269, 1.3455528020858765, -0.4729446768760681, -0.3995169997215271, 0.44383740425109863, 0.5869684815406799, 0.5658378601074219, 0.8592292070388794, -0.7857706546783447, 0.03455290198326111, -0.5660000443458557, -0.0868530124425888, 0.2608341574668884, 1.3288345336914062, 0.021441899240016937, -1.055073857307434, 0.6635315418243408, -0.47854989767074585, 0.1002834290266037, 1.6099050045013428, 0.027982216328382492, -0.8110296130180359, 0.4172441363334656, -0.9195789098739624, 1.9776335954666138, 1.6497915983200073, 1.0607073307037354, -0.2595290541648865, -0.9128652811050415, 0.9755042195320129, -0.5001735687255859, -0.12681573629379272, 0.579759418964386, 0.2589576840400696, -0.388360857963562, -1.1078588962554932, 1.0721962451934814, 0.9267814755439758, -0.5810031890869141, -0.7792497873306274, 0.14326976239681244, -0.7258784770965576, 1.4030957221984863, 0.4255889654159546, 0.25184357166290283, 0.24630092084407806, 1.8132017850875854, 0.7934964895248413, -0.512630045413971, 0.6426283121109009, 0.7019808888435364, -0.45522886514663696, -2.062368869781494, -1.1444612741470337, 0.17180216312408447, -0.5467655062675476, -1.8001760244369507, 1.4187275171279907, -0.7825311422348022, -0.9068099856376648, 0.5307667255401611, -0.022264765575528145, 0.936246395111084, 0.7461460828781128, 1.3585801124572754, 2.043964147567749, 0.5505794286727905, 0.9709900617599487, 1.2708516120910645, -0.4369397759437561, -0.4726090431213379, 1.8671215772628784, -0.34284472465515137, 0.42558586597442627, 1.3165218830108643, -0.3364993929862976, -1.150960922241211, -0.7881906628608704, -1.086511492729187, -0.6455144286155701, 1.1678378582000732, 0.025327980518341064, -0.9561827778816223, 0.32384294271469116, 1.8534685373306274, 0.09782736748456955, -0.35398048162460327, 0.7571806907653809, 0.5425701141357422, -0.7978201508522034, -0.10394138097763062, -0.8120983839035034, 0.6300806403160095, -0.5221537351608276, -0.2146328091621399, 0.500385582447052, 0.46031898260116577, 1.2767947912216187, -0.3941080570220947, 0.24107877910137177, 0.7182915210723877, -1.4341745376586914, 1.2729424238204956, -0.5982227921485901, 0.25447535514831543, -2.2237284183502197, 0.9736270308494568, -0.3546155095100403, 2.233795166015625, -2.5633704662323, 0.46902984380722046, -0.7988216876983643, -0.7058482766151428, 0.3056824803352356, -0.2925431728363037, -0.23125946521759033, 0.03898214176297188, -0.9607555866241455, 0.2775791883468628, -0.4864264726638794, 0.48410308361053467, 1.1539243459701538, 1.334699034690857, -0.8269096612930298, 0.039146315306425095, -1.3482013940811157, -0.024895060807466507, -0.9388694763183594, 0.4137986898422241, -2.0866646766662598, -0.18059290945529938, -1.9476525783538818, -2.095041275024414, -0.9540354013442993, -0.8132920861244202, 1.1611050367355347, 0.17695637047290802, -0.8647010922431946, 1.7262868881225586, 0.017691347748041153, -1.5221697092056274, 1.1196109056472778, -1.6851067543029785 ]
https://github.com/huggingface/datasets/issues/6089
AssertionError: daemonic processes are not allowed to have children
We could add a "threads" parallel backend to `datasets.parallel.parallel_backend` to support downloading with threads but note that `download_and_extract` also decompresses archives, and this is a CPU-intensive task, which is not ideal for (Python) threads (good for IO-intensive tasks).
### Describe the bug When I load_dataset with num_proc > 0 in a deamon process, I got an error: ```python File "/Users/codingl2k1/Work/datasets/src/datasets/download/download_manager.py", line 564, in download_and_extract return self.extract(self.download(url_or_urls)) ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/download/download_manager.py", line 427, in download downloaded_path_or_paths = map_nested( ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/utils/py_utils.py", line 468, in map_nested mapped = parallel_map(function, iterable, num_proc, types, disable_tqdm, desc, _single_map_nested) ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/utils/experimental.py", line 40, in _inner_fn return fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/parallel/parallel.py", line 34, in parallel_map return _map_with_multiprocessing_pool( ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/parallel/parallel.py", line 64, in _map_with_multiprocessing_pool with Pool(num_proc, initargs=initargs, initializer=initializer) as pool: ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/context.py", line 119, in Pool return Pool(processes, initializer, initargs, maxtasksperchild, ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/pool.py", line 215, in __init__ self._repopulate_pool() ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/pool.py", line 306, in _repopulate_pool return self._repopulate_pool_static(self._ctx, self.Process, ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/pool.py", line 329, in _repopulate_pool_static w.start() File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/process.py", line 118, in start assert not _current_process._config.get('daemon'), ^^^^^^^^^^^^^^^^^ AssertionError: daemonic processes are not allowed to have children ``` The download is io-intensive computing, may be datasets can replece the multi processing pool by a multi threading pool if in a deamon process. ### Steps to reproduce the bug 1. start a deamon process 2. run load_dataset with num_proc > 0 ### Expected behavior No error. ### Environment info Python 3.11.4 datasets latest master
8
38
AssertionError: daemonic processes are not allowed to have children ### Describe the bug When I load_dataset with num_proc > 0 in a deamon process, I got an error: ```python File "/Users/codingl2k1/Work/datasets/src/datasets/download/download_manager.py", line 564, in download_and_extract return self.extract(self.download(url_or_urls)) ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/download/download_manager.py", line 427, in download downloaded_path_or_paths = map_nested( ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/utils/py_utils.py", line 468, in map_nested mapped = parallel_map(function, iterable, num_proc, types, disable_tqdm, desc, _single_map_nested) ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/utils/experimental.py", line 40, in _inner_fn return fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/parallel/parallel.py", line 34, in parallel_map return _map_with_multiprocessing_pool( ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/parallel/parallel.py", line 64, in _map_with_multiprocessing_pool with Pool(num_proc, initargs=initargs, initializer=initializer) as pool: ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/context.py", line 119, in Pool return Pool(processes, initializer, initargs, maxtasksperchild, ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/pool.py", line 215, in __init__ self._repopulate_pool() ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/pool.py", line 306, in _repopulate_pool return self._repopulate_pool_static(self._ctx, self.Process, ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/pool.py", line 329, in _repopulate_pool_static w.start() File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/process.py", line 118, in start assert not _current_process._config.get('daemon'), ^^^^^^^^^^^^^^^^^ AssertionError: daemonic processes are not allowed to have children ``` The download is io-intensive computing, may be datasets can replece the multi processing pool by a multi threading pool if in a deamon process. ### Steps to reproduce the bug 1. start a deamon process 2. run load_dataset with num_proc > 0 ### Expected behavior No error. ### Environment info Python 3.11.4 datasets latest master We could add a "threads" parallel backend to `datasets.parallel.parallel_backend` to support downloading with threads but note that `download_and_extract` also decompresses archives, and this is a CPU-intensive task, which is not ideal for (Python) threads (good for IO-intensive tasks).
[ -1.3304325342178345, -0.843843400478363, -0.6240853667259216, 1.2293169498443604, 0.023741507902741432, -0.9174615740776062, 0.06877093762159348, -1.0991508960723877, 1.8150602579116821, -0.6466710567474365, 0.21736067533493042, -1.551055669784546, -0.1861899197101593, -0.48568251729011536, -0.6399885416030884, -0.9412006735801697, -0.28778788447380066, -0.8252395987510681, 1.0269654989242554, 2.608595609664917, 1.2234467267990112, -1.412387490272522, 2.707380771636963, 0.8097389936447144, -0.3603209853172302, -0.7776699066162109, 0.48141592741012573, -0.0388236865401268, -1.0951825380325317, -0.6576300859451294, -0.991340160369873, 0.02303980104625225, -0.6472021341323853, -0.3529244661331177, -0.04204221069812775, 0.23380602896213531, -0.2620423436164856, -0.1918572634458542, -0.7916498780250549, -0.7969321608543396, 0.533761739730835, -0.3538559079170227, 0.9927069544792175, -0.4394308030605316, 1.7998770475387573, -0.5881317853927612, 0.5424193739891052, 0.6860813498497009, 1.152274250984192, 0.05636809021234512, -0.017423663288354874, 0.511515736579895, 0.3303428590297699, -0.04301271587610245, 0.7841843962669373, 1.1911066770553589, 0.5725809335708618, 0.4992753565311432, 0.3974270224571228, -2.302197217941284, 1.3348913192749023, -1.050580620765686, 0.32438215613365173, 1.479893445968628, -0.7309799194335938, 0.33590787649154663, -1.7369120121002197, 0.08000855147838593, 0.7174645066261292, -2.4402904510498047, 0.25283366441726685, -1.2671724557876587, -0.5861356258392334, 1.0325621366500854, 0.4068147540092468, -1.1362403631210327, 0.08766410499811172, -0.4590553641319275, 1.1769294738769531, 0.1981641948223114, 1.24491286277771, -1.5459580421447754, 0.05796533823013306, -0.14617295563220978, 0.30410197377204895, -1.2460455894470215, -1.631604790687561, 0.5121922492980957, 0.48947668075561523, 0.38065025210380554, -0.1314806193113327, 1.021225929260254, -0.9869500994682312, 0.56121826171875, -0.8880736231803894, -1.5188696384429932, -1.5767793655395508, -2.5290467739105225, -2.3843014240264893, 0.7745110392570496, -0.6072244644165039, -0.38829123973846436, 2.145897626876831, -1.041258692741394, -1.5384067296981812, 0.9170845746994019, 0.20430254936218262, 0.13918863236904144, 2.285205841064453, 0.14447824656963348, -0.7653111815452576, 0.44569167494773865, -0.6788977384567261, 0.8515129685401917, -0.21523532271385193, 1.4875693321228027, 0.5213677883148193, -1.0824432373046875, 1.5163935422897339, -0.567435622215271, 0.5559976696968079, -0.35646435618400574, -0.6333647966384888, -0.8128358721733093, 0.42021554708480835, 1.839524269104004, -0.2784726321697235, 1.6663795709609985, -0.5081456303596497, -1.5520739555358887, -1.51868736743927, 0.9171946048736572, 0.4682583212852478, -0.9406428933143616, 0.3041941821575165, -0.7203582525253296, 0.04868388921022415, -0.1318347156047821, 1.2593061923980713, 1.3898274898529053, 0.7518086433410645, -0.28827860951423645, -0.9010745286941528, 0.22031836211681366, -0.11386659741401672, -0.7923910021781921, -1.8297474384307861, -0.19696326553821564, 0.13190817832946777, 0.636823296546936, -1.282250165939331, 1.6906061172485352, 0.9198295474052429, 1.9591645002365112, 0.9109857082366943, -0.3728978931903839, 1.4761359691619873, 0.10673287510871887, 1.9084452390670776, -0.5654444098472595, 0.5527309775352478, -0.19124217331409454, -1.1289507150650024, 0.7246089577674866, -0.48534849286079407, -2.0921213626861572, -0.7997866868972778, -0.6997547745704651, -0.1271107792854309, -0.8686096668243408, 0.8612416386604309, -0.13222432136535645, -1.3321717977523804, 0.11240497976541519, -0.6415571570396423, 0.5206073522567749, -1.2524265050888062, 0.13361425697803497, 0.6456899642944336, -0.5201185345649719, 0.05386587977409363, -0.29504573345184326, -1.2281746864318848, -0.4946044087409973, 0.23472467064857483, 1.8169169425964355, -0.37691420316696167, 0.7533099055290222, 1.255135178565979, -0.6906502842903137, 0.004110601730644703, 0.2567013204097748, -0.35352984070777893, 0.8443289399147034, -1.137229561805725, -0.47272056341171265, 1.1565377712249756, -0.2311088740825653, -0.5889450907707214, 1.3273029327392578, 0.7584171295166016, -1.426361322402954, -0.2743675708770752, -0.1860629767179489, -0.7890440821647644, 0.10923869162797928, -1.546199917793274, -0.1389160007238388, 0.4691152572631836, -1.6086301803588867, -0.4089195728302002, -0.22541208565235138, 1.3070464134216309, -0.33431512117385864, 1.4996371269226074, -0.15307632088661194, 0.03948540240526199, -0.37946444749832153, -0.30935782194137573, 0.22002547979354858, -0.070368692278862, -0.726814329624176, 0.2931024432182312, -0.7637889981269836, 0.34078964591026306, 1.2684359550476074, 0.314466267824173, -0.22319135069847107, 0.34985485672950745, 1.208448052406311, 0.3792874217033386, -0.19451633095741272, -0.7860596179962158, -1.6238878965377808, 1.9106544256210327, -1.2312949895858765, 1.6735492944717407, 0.882710337638855, 0.07301824539899826, -1.904015302658081, -1.8083924055099487, 1.0567853450775146, 1.17347252368927, 2.3897416591644287, 0.3945538103580475, 0.5212079882621765, -0.7962680459022522, -0.7153663635253906, 0.32411545515060425, -0.8808351159095764, -0.658397376537323, 0.2638431787490845, 2.325768232345581, 1.8435394763946533, -0.5010067224502563, -0.09748108685016632, -0.8561185002326965, 1.0154129266738892, -0.267787367105484, 0.06630831956863403, 1.896285891532898, -0.32165318727493286, -1.1571502685546875, 1.422558069229126, -2.3560752868652344, 0.37226805090904236, 1.9141747951507568, 0.35776057839393616, 0.17264479398727417, -1.4220460653305054, -0.6926590800285339, -0.30128493905067444, -0.41479358077049255, -1.277287483215332, 0.6041663885116577, -0.1015416830778122, -1.0456910133361816, -1.4483577013015747, 0.21438878774642944, -1.1016639471054077, -1.6320348978042603, 0.2497943639755249, 1.74262535572052, 1.9436229467391968, -0.8600535988807678, 1.2765384912490845, -0.27953019738197327, -0.036232441663742065, 1.3240114450454712, 1.3741390705108643, 3.176570415496826, 1.9271987676620483, -1.3641002178192139, 0.7389472723007202, -0.3500629961490631, -0.5693926811218262, 1.316216230392456, -1.3359416723251343, 1.0695539712905884, -0.12884657084941864, -1.190621018409729, -1.1399593353271484, 1.069550633430481, 0.5209141969680786, 0.03289084881544113, -0.4509654939174652, 1.414374589920044, 0.034260109066963196, 1.399775743484497, 0.5837323069572449, -0.39594051241874695, 0.4622688591480255, -0.23633889853954315, -0.3617784082889557, 1.507798433303833, 0.09773004055023193, -1.4869892597198486, -2.131021022796631, -0.3096770942211151, -0.9774806499481201, -0.08939408510923386, -0.6877508163452148, -0.9707130193710327, 1.4509782791137695, 0.37954822182655334, -1.1028389930725098, -0.48990923166275024, -0.4333798885345459, -0.647093653678894, 2.6242964267730713, -1.3629300594329834, -0.06571612507104874, -1.0051853656768799, -0.48489007353782654, 1.7633041143417358, -1.2004141807556152, -0.1305692046880722, -1.0272409915924072, -0.6267351508140564, -1.3827251195907593, -0.4358065128326416, -0.07100396603345871, -0.9514029622077942, 0.8149948716163635, 0.26542848348617554, -1.1262437105178833, -0.29019808769226074, -0.6614691019058228, 0.889967143535614, -0.10771585255861282, 0.16457884013652802, 1.7490861415863037, 0.263008713722229, -0.5334863066673279, 0.6476188898086548, 1.3189059495925903, 0.712924063205719, -0.7111196517944336, -0.0608978196978569, -0.8607925772666931, 0.34716734290122986, -1.6915727853775024, 0.27783477306365967, -2.791865825653076, 0.7928142547607422, -0.24503418803215027, -0.14064954221248627, -0.1295304298400879, -1.300614595413208, 1.038190245628357, 2.5224900245666504, -1.2896816730499268, 0.3768819272518158, 0.4858514964580536, 1.0766099691390991, -1.492147445678711, 0.18862168490886688, -0.5654726028442383, 1.960776925086975, 0.2699415683746338, 1.315163016319275, -0.3439314663410187, -2.3146910667419434, 0.7290015816688538, -1.0541572570800781, -0.8725962042808533, 0.9658891558647156, -0.9518654346466064, 0.116448312997818, -1.5816192626953125, -0.333575963973999, -0.8868294954299927, -1.2066816091537476, 0.4930426776409149, 0.15239349007606506, 0.4365537166595459, -0.7645745873451233, 0.424192875623703, -2.2163515090942383, -1.33184814453125, -0.1836225688457489, -0.9917702078819275, 0.6547960042953491, -0.3967544734477997, 0.604312002658844, 0.0047044651582837105, 0.001384655013680458, 0.402719110250473, 1.6410971879959106, 3.5147833824157715, 0.10432422906160355, 0.19333365559577942, -0.06448661535978317, -0.9461042881011963, 1.253973364830017, 0.7229137420654297, -0.04985669255256653, -0.6167373061180115, -1.0900797843933105, 1.336202621459961, 1.9673112630844116, 1.0788379907608032, 0.08791892975568771, -1.06276273727417, -0.8122178912162781, 0.03616982698440552, 0.2518365979194641, 0.460421085357666, 0.8573691248893738, 0.07617837935686111, 0.13049650192260742, 1.3740532398223877, 1.1302484273910522, -0.2700002193450928, 0.23110297322273254, -0.7909466624259949, -0.3855772912502289, 0.603807806968689, 0.15771855413913727, 0.10632799565792084, 0.657477080821991, -0.9655768275260925, -0.27442798018455505, -0.1681918501853943, -1.013242244720459, -0.8219403028488159, -0.32623812556266785, -0.3244296908378601, 1.5983244180679321, 0.2024717479944229, -0.5030938386917114, 0.26116225123405457, -0.5928218960762024, -0.22703902423381805, -1.1583549976348877, 0.12323358654975891, -0.09077274799346924, -0.04799662530422211, -0.18215234577655792, 1.4902077913284302, -0.8088175654411316, -1.9813148975372314, -0.008176576346158981, 0.34217309951782227, -0.2455287128686905, 0.22169065475463867, 1.8879523277282715, 0.4938393533229828, 1.755243182182312, 1.0864720344543457, 0.9902682900428772, -0.5133656859397888, -1.2994192838668823, 0.8026807904243469, 1.0153888463974, -1.4677257537841797, 0.8137854933738708, -0.22050611674785614, -0.6695055961608887, 0.6376296281814575, 1.3059133291244507, 0.3961847424507141, -1.9002597332000732, 0.9858796000480652, -0.969140350818634, 0.853757917881012, 0.5451378226280212, 0.8596369624137878, 0.08767935633659363, 0.9139798879623413, -1.3497358560562134, -1.078108787536621, -0.5733649134635925, -0.6968100070953369, 1.8556544780731201, -0.2858063578605652, 0.5295326113700867, -0.2119539976119995, -1.3135098218917847, 0.018109871074557304, 0.8673224449157715, 0.1274876892566681, -0.4433935284614563, 1.0319651365280151, -0.7730141282081604, -1.123105764389038, -1.4323285818099976, -0.3979896605014801, -1.0148754119873047, -0.8398872017860413, 1.1456595659255981, 0.7872228026390076, 0.3127463161945343, 1.924622893333435, 0.6254420876502991, 0.2952345907688141, -2.6125566959381104, 0.8509870767593384, 0.1392730474472046, 0.046217940747737885, 1.0203498601913452, 0.3005492389202118, 1.1170005798339844, 0.0032391175627708435, 0.673811674118042, -2.2768242359161377, 2.194362163543701, -0.007100951392203569, 0.6423404216766357, -0.17794835567474365, -0.212076336145401, 0.9617400765419006, 0.6102490425109863, 0.613287627696991, -1.306123971939087, 0.8646275997161865, -0.4506644010543823, 0.9482406973838806, 0.7787544131278992, -0.7868632078170776, -0.008139098063111305, 1.2191545963287354, 0.4937709867954254, -0.3819431960582733, -0.9944685101509094, -0.8158558011054993, 1.1304512023925781, 1.5849108695983887, -0.09005150943994522, -0.04430507868528366, 0.6931808590888977, 0.6906065344810486, -1.1092655658721924, 0.2549070119857788, -0.5834559202194214, -0.6531218886375427, 1.4145537614822388, 1.9952160120010376, -0.0777973085641861, -0.15996767580509186, -0.7236011624336243, -1.2243664264678955, 0.537492573261261, -0.17085665464401245, 0.3878338038921356, 0.557312548160553, -0.7564132213592529, 0.9139662384986877, 0.8674067854881287, 0.8068999648094177, 0.10997176915407181, 0.32557913661003113, 0.5992584228515625, -0.4393632113933563, -1.0181188583374023, -0.49378350377082825, -1.0972319841384888, -2.8522236347198486, 0.46642035245895386, -0.3457137644290924, -1.663859248161316, 0.08124007284641266, -1.1358860731124878, 0.9074070453643799, -0.640359103679657, -1.37736976146698, -1.4873689413070679, 0.4605240821838379, 0.013774575665593147, 1.148634910583496, -1.5755233764648438, -0.14949440956115723, 1.3115029335021973, 0.8610374331474304, -0.3759710490703583, 0.7837327122688293, 0.31124311685562134, 0.9970458149909973, 1.0012515783309937, -0.28025946021080017, 0.6434411406517029, 0.25426772236824036, -1.2782421112060547, 0.407392293214798, 1.2283474206924438, 0.26646697521209717, 1.461991310119629, -0.335153728723526, 0.1906130611896515, 0.5130802989006042, -0.656810998916626, -0.6269012689590454, -0.20981702208518982, 0.34184199571609497, 0.3345680832862854, -1.1389877796173096, -0.1431684046983719, -0.29904818534851074, -0.1275937408208847, -0.03919672593474388, -1.3286314010620117, -0.41322559118270874, -0.4826296865940094, -0.5927032828330994, -1.3926994800567627, -0.021225053817033768, 1.3063527345657349, -0.7382857799530029, -0.1095348373055458, 0.4336962103843689, 0.43736159801483154, 0.565293550491333, 0.5686878561973572, -0.8666343092918396, -0.3904380202293396, -0.2581252157688141, -0.27462780475616455, 0.1479244828224182, 1.0958900451660156, -0.05296611040830612, -0.9762871265411377, 0.6078144907951355, -0.2867714464664459, 0.1783452332019806, 1.8634757995605469, 0.05871466547250748, -0.8333603143692017, 0.40666627883911133, -0.6117690801620483, 1.8388617038726807, 1.7326231002807617, 1.3006278276443481, -0.08563978224992752, -0.8436257243156433, 0.5076038241386414, -0.45449769496917725, -0.12587770819664001, 0.9677723050117493, 0.4980567991733551, -0.24232034385204315, -1.422037124633789, 0.6261170506477356, 1.2530957460403442, -0.9706339836120605, -0.7701848745346069, 0.2805851399898529, -0.7059683203697205, 1.2561802864074707, 0.6206027269363403, 0.11443886905908585, 0.24945810437202454, 1.6471143960952759, 0.7506341338157654, -0.5470148324966431, 0.5543599724769592, 0.6145459413528442, -0.35863861441612244, -2.2973062992095947, -1.2098214626312256, 0.38279369473457336, -0.4236230254173279, -1.2823652029037476, 1.3522286415100098, -1.0345823764801025, -1.0399971008300781, 0.6887357831001282, 0.04746463894844055, 1.172709345817566, 0.2537335455417633, 1.6408069133758545, 2.162968158721924, 0.7455012202262878, 0.23630434274673462, 1.3254626989364624, 0.039381369948387146, -0.4057087004184723, 1.9316344261169434, -0.27190667390823364, 0.40455687046051025, 0.9405522346496582, -0.46543198823928833, -1.0855823755264282, -0.9615910053253174, -1.1837354898452759, -0.7762457728385925, 1.2707558870315552, 0.13283506035804749, -0.9542081952095032, 0.3786190152168274, 1.731632947921753, 0.15428443253040314, -0.18449193239212036, 0.606900691986084, 0.6123852133750916, -0.8343814015388489, -0.012178686447441578, -1.1688764095306396, 0.6219421625137329, -0.11869924515485764, -0.17901313304901123, 0.0623902902007103, 0.7588491439819336, 1.3332550525665283, 0.0418490469455719, 0.033200666308403015, 1.0848162174224854, -1.4120841026306152, 1.630340576171875, -0.5874905586242676, 0.4320234954357147, -2.322429895401001, 1.150725245475769, -0.6369068622589111, 2.0224199295043945, -2.491666793823242, 0.5016951560974121, -0.7353502511978149, -0.36500805616378784, 0.28895628452301025, -0.4302225112915039, 0.2601223886013031, -0.16327767074108124, -1.0483405590057373, -0.17867203056812286, -0.9031030535697937, 0.7377070188522339, 1.1814534664154053, 1.4384634494781494, -1.1924285888671875, -0.13877063989639282, -1.4063576459884644, -0.15101483464241028, -0.8681471347808838, 0.24899086356163025, -1.7142791748046875, -0.2075604498386383, -2.1150400638580322, -2.401919364929199, -1.3804051876068115, -0.7051103711128235, 1.126412034034729, 0.1817399561405182, -0.9492645859718323, 1.1959348917007446, -0.5891890525817871, -1.8311340808868408, 1.0280046463012695, -2.216505765914917 ]
https://github.com/huggingface/datasets/issues/6089
AssertionError: daemonic processes are not allowed to have children
> We could add a "threads" parallel backend to `datasets.parallel.parallel_backend` to support downloading with threads but note that `download_and_extract` also decompresses archives, and this is a CPU-intensive task, which is not ideal for (Python) threads (good for IO-intensive tasks). Great! Download takes more time than extract, multiple threads can download in parallel, which can speed up a lot.
### Describe the bug When I load_dataset with num_proc > 0 in a deamon process, I got an error: ```python File "/Users/codingl2k1/Work/datasets/src/datasets/download/download_manager.py", line 564, in download_and_extract return self.extract(self.download(url_or_urls)) ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/download/download_manager.py", line 427, in download downloaded_path_or_paths = map_nested( ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/utils/py_utils.py", line 468, in map_nested mapped = parallel_map(function, iterable, num_proc, types, disable_tqdm, desc, _single_map_nested) ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/utils/experimental.py", line 40, in _inner_fn return fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/parallel/parallel.py", line 34, in parallel_map return _map_with_multiprocessing_pool( ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/parallel/parallel.py", line 64, in _map_with_multiprocessing_pool with Pool(num_proc, initargs=initargs, initializer=initializer) as pool: ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/context.py", line 119, in Pool return Pool(processes, initializer, initargs, maxtasksperchild, ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/pool.py", line 215, in __init__ self._repopulate_pool() ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/pool.py", line 306, in _repopulate_pool return self._repopulate_pool_static(self._ctx, self.Process, ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/pool.py", line 329, in _repopulate_pool_static w.start() File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/process.py", line 118, in start assert not _current_process._config.get('daemon'), ^^^^^^^^^^^^^^^^^ AssertionError: daemonic processes are not allowed to have children ``` The download is io-intensive computing, may be datasets can replece the multi processing pool by a multi threading pool if in a deamon process. ### Steps to reproduce the bug 1. start a deamon process 2. run load_dataset with num_proc > 0 ### Expected behavior No error. ### Environment info Python 3.11.4 datasets latest master
8
58
AssertionError: daemonic processes are not allowed to have children ### Describe the bug When I load_dataset with num_proc > 0 in a deamon process, I got an error: ```python File "/Users/codingl2k1/Work/datasets/src/datasets/download/download_manager.py", line 564, in download_and_extract return self.extract(self.download(url_or_urls)) ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/download/download_manager.py", line 427, in download downloaded_path_or_paths = map_nested( ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/utils/py_utils.py", line 468, in map_nested mapped = parallel_map(function, iterable, num_proc, types, disable_tqdm, desc, _single_map_nested) ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/utils/experimental.py", line 40, in _inner_fn return fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/parallel/parallel.py", line 34, in parallel_map return _map_with_multiprocessing_pool( ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/Work/datasets/src/datasets/parallel/parallel.py", line 64, in _map_with_multiprocessing_pool with Pool(num_proc, initargs=initargs, initializer=initializer) as pool: ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/context.py", line 119, in Pool return Pool(processes, initializer, initargs, maxtasksperchild, ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/pool.py", line 215, in __init__ self._repopulate_pool() ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/pool.py", line 306, in _repopulate_pool return self._repopulate_pool_static(self._ctx, self.Process, ^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/pool.py", line 329, in _repopulate_pool_static w.start() File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/multiprocessing/process.py", line 118, in start assert not _current_process._config.get('daemon'), ^^^^^^^^^^^^^^^^^ AssertionError: daemonic processes are not allowed to have children ``` The download is io-intensive computing, may be datasets can replece the multi processing pool by a multi threading pool if in a deamon process. ### Steps to reproduce the bug 1. start a deamon process 2. run load_dataset with num_proc > 0 ### Expected behavior No error. ### Environment info Python 3.11.4 datasets latest master > We could add a "threads" parallel backend to `datasets.parallel.parallel_backend` to support downloading with threads but note that `download_and_extract` also decompresses archives, and this is a CPU-intensive task, which is not ideal for (Python) threads (good for IO-intensive tasks). Great! Download takes more time than extract, multiple threads can download in parallel, which can speed up a lot.
[ -1.3304325342178345, -0.843843400478363, -0.6240853667259216, 1.2293169498443604, 0.023741507902741432, -0.9174615740776062, 0.06877093762159348, -1.0991508960723877, 1.8150602579116821, -0.6466710567474365, 0.21736067533493042, -1.551055669784546, -0.1861899197101593, -0.48568251729011536, -0.6399885416030884, -0.9412006735801697, -0.28778788447380066, -0.8252395987510681, 1.0269654989242554, 2.608595609664917, 1.2234467267990112, -1.412387490272522, 2.707380771636963, 0.8097389936447144, -0.3603209853172302, -0.7776699066162109, 0.48141592741012573, -0.0388236865401268, -1.0951825380325317, -0.6576300859451294, -0.991340160369873, 0.02303980104625225, -0.6472021341323853, -0.3529244661331177, -0.04204221069812775, 0.23380602896213531, -0.2620423436164856, -0.1918572634458542, -0.7916498780250549, -0.7969321608543396, 0.533761739730835, -0.3538559079170227, 0.9927069544792175, -0.4394308030605316, 1.7998770475387573, -0.5881317853927612, 0.5424193739891052, 0.6860813498497009, 1.152274250984192, 0.05636809021234512, -0.017423663288354874, 0.511515736579895, 0.3303428590297699, -0.04301271587610245, 0.7841843962669373, 1.1911066770553589, 0.5725809335708618, 0.4992753565311432, 0.3974270224571228, -2.302197217941284, 1.3348913192749023, -1.050580620765686, 0.32438215613365173, 1.479893445968628, -0.7309799194335938, 0.33590787649154663, -1.7369120121002197, 0.08000855147838593, 0.7174645066261292, -2.4402904510498047, 0.25283366441726685, -1.2671724557876587, -0.5861356258392334, 1.0325621366500854, 0.4068147540092468, -1.1362403631210327, 0.08766410499811172, -0.4590553641319275, 1.1769294738769531, 0.1981641948223114, 1.24491286277771, -1.5459580421447754, 0.05796533823013306, -0.14617295563220978, 0.30410197377204895, -1.2460455894470215, -1.631604790687561, 0.5121922492980957, 0.48947668075561523, 0.38065025210380554, -0.1314806193113327, 1.021225929260254, -0.9869500994682312, 0.56121826171875, -0.8880736231803894, -1.5188696384429932, -1.5767793655395508, -2.5290467739105225, -2.3843014240264893, 0.7745110392570496, -0.6072244644165039, -0.38829123973846436, 2.145897626876831, -1.041258692741394, -1.5384067296981812, 0.9170845746994019, 0.20430254936218262, 0.13918863236904144, 2.285205841064453, 0.14447824656963348, -0.7653111815452576, 0.44569167494773865, -0.6788977384567261, 0.8515129685401917, -0.21523532271385193, 1.4875693321228027, 0.5213677883148193, -1.0824432373046875, 1.5163935422897339, -0.567435622215271, 0.5559976696968079, -0.35646435618400574, -0.6333647966384888, -0.8128358721733093, 0.42021554708480835, 1.839524269104004, -0.2784726321697235, 1.6663795709609985, -0.5081456303596497, -1.5520739555358887, -1.51868736743927, 0.9171946048736572, 0.4682583212852478, -0.9406428933143616, 0.3041941821575165, -0.7203582525253296, 0.04868388921022415, -0.1318347156047821, 1.2593061923980713, 1.3898274898529053, 0.7518086433410645, -0.28827860951423645, -0.9010745286941528, 0.22031836211681366, -0.11386659741401672, -0.7923910021781921, -1.8297474384307861, -0.19696326553821564, 0.13190817832946777, 0.636823296546936, -1.282250165939331, 1.6906061172485352, 0.9198295474052429, 1.9591645002365112, 0.9109857082366943, -0.3728978931903839, 1.4761359691619873, 0.10673287510871887, 1.9084452390670776, -0.5654444098472595, 0.5527309775352478, -0.19124217331409454, -1.1289507150650024, 0.7246089577674866, -0.48534849286079407, -2.0921213626861572, -0.7997866868972778, -0.6997547745704651, -0.1271107792854309, -0.8686096668243408, 0.8612416386604309, -0.13222432136535645, -1.3321717977523804, 0.11240497976541519, -0.6415571570396423, 0.5206073522567749, -1.2524265050888062, 0.13361425697803497, 0.6456899642944336, -0.5201185345649719, 0.05386587977409363, -0.29504573345184326, -1.2281746864318848, -0.4946044087409973, 0.23472467064857483, 1.8169169425964355, -0.37691420316696167, 0.7533099055290222, 1.255135178565979, -0.6906502842903137, 0.004110601730644703, 0.2567013204097748, -0.35352984070777893, 0.8443289399147034, -1.137229561805725, -0.47272056341171265, 1.1565377712249756, -0.2311088740825653, -0.5889450907707214, 1.3273029327392578, 0.7584171295166016, -1.426361322402954, -0.2743675708770752, -0.1860629767179489, -0.7890440821647644, 0.10923869162797928, -1.546199917793274, -0.1389160007238388, 0.4691152572631836, -1.6086301803588867, -0.4089195728302002, -0.22541208565235138, 1.3070464134216309, -0.33431512117385864, 1.4996371269226074, -0.15307632088661194, 0.03948540240526199, -0.37946444749832153, -0.30935782194137573, 0.22002547979354858, -0.070368692278862, -0.726814329624176, 0.2931024432182312, -0.7637889981269836, 0.34078964591026306, 1.2684359550476074, 0.314466267824173, -0.22319135069847107, 0.34985485672950745, 1.208448052406311, 0.3792874217033386, -0.19451633095741272, -0.7860596179962158, -1.6238878965377808, 1.9106544256210327, -1.2312949895858765, 1.6735492944717407, 0.882710337638855, 0.07301824539899826, -1.904015302658081, -1.8083924055099487, 1.0567853450775146, 1.17347252368927, 2.3897416591644287, 0.3945538103580475, 0.5212079882621765, -0.7962680459022522, -0.7153663635253906, 0.32411545515060425, -0.8808351159095764, -0.658397376537323, 0.2638431787490845, 2.325768232345581, 1.8435394763946533, -0.5010067224502563, -0.09748108685016632, -0.8561185002326965, 1.0154129266738892, -0.267787367105484, 0.06630831956863403, 1.896285891532898, -0.32165318727493286, -1.1571502685546875, 1.422558069229126, -2.3560752868652344, 0.37226805090904236, 1.9141747951507568, 0.35776057839393616, 0.17264479398727417, -1.4220460653305054, -0.6926590800285339, -0.30128493905067444, -0.41479358077049255, -1.277287483215332, 0.6041663885116577, -0.1015416830778122, -1.0456910133361816, -1.4483577013015747, 0.21438878774642944, -1.1016639471054077, -1.6320348978042603, 0.2497943639755249, 1.74262535572052, 1.9436229467391968, -0.8600535988807678, 1.2765384912490845, -0.27953019738197327, -0.036232441663742065, 1.3240114450454712, 1.3741390705108643, 3.176570415496826, 1.9271987676620483, -1.3641002178192139, 0.7389472723007202, -0.3500629961490631, -0.5693926811218262, 1.316216230392456, -1.3359416723251343, 1.0695539712905884, -0.12884657084941864, -1.190621018409729, -1.1399593353271484, 1.069550633430481, 0.5209141969680786, 0.03289084881544113, -0.4509654939174652, 1.414374589920044, 0.034260109066963196, 1.399775743484497, 0.5837323069572449, -0.39594051241874695, 0.4622688591480255, -0.23633889853954315, -0.3617784082889557, 1.507798433303833, 0.09773004055023193, -1.4869892597198486, -2.131021022796631, -0.3096770942211151, -0.9774806499481201, -0.08939408510923386, -0.6877508163452148, -0.9707130193710327, 1.4509782791137695, 0.37954822182655334, -1.1028389930725098, -0.48990923166275024, -0.4333798885345459, -0.647093653678894, 2.6242964267730713, -1.3629300594329834, -0.06571612507104874, -1.0051853656768799, -0.48489007353782654, 1.7633041143417358, -1.2004141807556152, -0.1305692046880722, -1.0272409915924072, -0.6267351508140564, -1.3827251195907593, -0.4358065128326416, -0.07100396603345871, -0.9514029622077942, 0.8149948716163635, 0.26542848348617554, -1.1262437105178833, -0.29019808769226074, -0.6614691019058228, 0.889967143535614, -0.10771585255861282, 0.16457884013652802, 1.7490861415863037, 0.263008713722229, -0.5334863066673279, 0.6476188898086548, 1.3189059495925903, 0.712924063205719, -0.7111196517944336, -0.0608978196978569, -0.8607925772666931, 0.34716734290122986, -1.6915727853775024, 0.27783477306365967, -2.791865825653076, 0.7928142547607422, -0.24503418803215027, -0.14064954221248627, -0.1295304298400879, -1.300614595413208, 1.038190245628357, 2.5224900245666504, -1.2896816730499268, 0.3768819272518158, 0.4858514964580536, 1.0766099691390991, -1.492147445678711, 0.18862168490886688, -0.5654726028442383, 1.960776925086975, 0.2699415683746338, 1.315163016319275, -0.3439314663410187, -2.3146910667419434, 0.7290015816688538, -1.0541572570800781, -0.8725962042808533, 0.9658891558647156, -0.9518654346466064, 0.116448312997818, -1.5816192626953125, -0.333575963973999, -0.8868294954299927, -1.2066816091537476, 0.4930426776409149, 0.15239349007606506, 0.4365537166595459, -0.7645745873451233, 0.424192875623703, -2.2163515090942383, -1.33184814453125, -0.1836225688457489, -0.9917702078819275, 0.6547960042953491, -0.3967544734477997, 0.604312002658844, 0.0047044651582837105, 0.001384655013680458, 0.402719110250473, 1.6410971879959106, 3.5147833824157715, 0.10432422906160355, 0.19333365559577942, -0.06448661535978317, -0.9461042881011963, 1.253973364830017, 0.7229137420654297, -0.04985669255256653, -0.6167373061180115, -1.0900797843933105, 1.336202621459961, 1.9673112630844116, 1.0788379907608032, 0.08791892975568771, -1.06276273727417, -0.8122178912162781, 0.03616982698440552, 0.2518365979194641, 0.460421085357666, 0.8573691248893738, 0.07617837935686111, 0.13049650192260742, 1.3740532398223877, 1.1302484273910522, -0.2700002193450928, 0.23110297322273254, -0.7909466624259949, -0.3855772912502289, 0.603807806968689, 0.15771855413913727, 0.10632799565792084, 0.657477080821991, -0.9655768275260925, -0.27442798018455505, -0.1681918501853943, -1.013242244720459, -0.8219403028488159, -0.32623812556266785, -0.3244296908378601, 1.5983244180679321, 0.2024717479944229, -0.5030938386917114, 0.26116225123405457, -0.5928218960762024, -0.22703902423381805, -1.1583549976348877, 0.12323358654975891, -0.09077274799346924, -0.04799662530422211, -0.18215234577655792, 1.4902077913284302, -0.8088175654411316, -1.9813148975372314, -0.008176576346158981, 0.34217309951782227, -0.2455287128686905, 0.22169065475463867, 1.8879523277282715, 0.4938393533229828, 1.755243182182312, 1.0864720344543457, 0.9902682900428772, -0.5133656859397888, -1.2994192838668823, 0.8026807904243469, 1.0153888463974, -1.4677257537841797, 0.8137854933738708, -0.22050611674785614, -0.6695055961608887, 0.6376296281814575, 1.3059133291244507, 0.3961847424507141, -1.9002597332000732, 0.9858796000480652, -0.969140350818634, 0.853757917881012, 0.5451378226280212, 0.8596369624137878, 0.08767935633659363, 0.9139798879623413, -1.3497358560562134, -1.078108787536621, -0.5733649134635925, -0.6968100070953369, 1.8556544780731201, -0.2858063578605652, 0.5295326113700867, -0.2119539976119995, -1.3135098218917847, 0.018109871074557304, 0.8673224449157715, 0.1274876892566681, -0.4433935284614563, 1.0319651365280151, -0.7730141282081604, -1.123105764389038, -1.4323285818099976, -0.3979896605014801, -1.0148754119873047, -0.8398872017860413, 1.1456595659255981, 0.7872228026390076, 0.3127463161945343, 1.924622893333435, 0.6254420876502991, 0.2952345907688141, -2.6125566959381104, 0.8509870767593384, 0.1392730474472046, 0.046217940747737885, 1.0203498601913452, 0.3005492389202118, 1.1170005798339844, 0.0032391175627708435, 0.673811674118042, -2.2768242359161377, 2.194362163543701, -0.007100951392203569, 0.6423404216766357, -0.17794835567474365, -0.212076336145401, 0.9617400765419006, 0.6102490425109863, 0.613287627696991, -1.306123971939087, 0.8646275997161865, -0.4506644010543823, 0.9482406973838806, 0.7787544131278992, -0.7868632078170776, -0.008139098063111305, 1.2191545963287354, 0.4937709867954254, -0.3819431960582733, -0.9944685101509094, -0.8158558011054993, 1.1304512023925781, 1.5849108695983887, -0.09005150943994522, -0.04430507868528366, 0.6931808590888977, 0.6906065344810486, -1.1092655658721924, 0.2549070119857788, -0.5834559202194214, -0.6531218886375427, 1.4145537614822388, 1.9952160120010376, -0.0777973085641861, -0.15996767580509186, -0.7236011624336243, -1.2243664264678955, 0.537492573261261, -0.17085665464401245, 0.3878338038921356, 0.557312548160553, -0.7564132213592529, 0.9139662384986877, 0.8674067854881287, 0.8068999648094177, 0.10997176915407181, 0.32557913661003113, 0.5992584228515625, -0.4393632113933563, -1.0181188583374023, -0.49378350377082825, -1.0972319841384888, -2.8522236347198486, 0.46642035245895386, -0.3457137644290924, -1.663859248161316, 0.08124007284641266, -1.1358860731124878, 0.9074070453643799, -0.640359103679657, -1.37736976146698, -1.4873689413070679, 0.4605240821838379, 0.013774575665593147, 1.148634910583496, -1.5755233764648438, -0.14949440956115723, 1.3115029335021973, 0.8610374331474304, -0.3759710490703583, 0.7837327122688293, 0.31124311685562134, 0.9970458149909973, 1.0012515783309937, -0.28025946021080017, 0.6434411406517029, 0.25426772236824036, -1.2782421112060547, 0.407392293214798, 1.2283474206924438, 0.26646697521209717, 1.461991310119629, -0.335153728723526, 0.1906130611896515, 0.5130802989006042, -0.656810998916626, -0.6269012689590454, -0.20981702208518982, 0.34184199571609497, 0.3345680832862854, -1.1389877796173096, -0.1431684046983719, -0.29904818534851074, -0.1275937408208847, -0.03919672593474388, -1.3286314010620117, -0.41322559118270874, -0.4826296865940094, -0.5927032828330994, -1.3926994800567627, -0.021225053817033768, 1.3063527345657349, -0.7382857799530029, -0.1095348373055458, 0.4336962103843689, 0.43736159801483154, 0.565293550491333, 0.5686878561973572, -0.8666343092918396, -0.3904380202293396, -0.2581252157688141, -0.27462780475616455, 0.1479244828224182, 1.0958900451660156, -0.05296611040830612, -0.9762871265411377, 0.6078144907951355, -0.2867714464664459, 0.1783452332019806, 1.8634757995605469, 0.05871466547250748, -0.8333603143692017, 0.40666627883911133, -0.6117690801620483, 1.8388617038726807, 1.7326231002807617, 1.3006278276443481, -0.08563978224992752, -0.8436257243156433, 0.5076038241386414, -0.45449769496917725, -0.12587770819664001, 0.9677723050117493, 0.4980567991733551, -0.24232034385204315, -1.422037124633789, 0.6261170506477356, 1.2530957460403442, -0.9706339836120605, -0.7701848745346069, 0.2805851399898529, -0.7059683203697205, 1.2561802864074707, 0.6206027269363403, 0.11443886905908585, 0.24945810437202454, 1.6471143960952759, 0.7506341338157654, -0.5470148324966431, 0.5543599724769592, 0.6145459413528442, -0.35863861441612244, -2.2973062992095947, -1.2098214626312256, 0.38279369473457336, -0.4236230254173279, -1.2823652029037476, 1.3522286415100098, -1.0345823764801025, -1.0399971008300781, 0.6887357831001282, 0.04746463894844055, 1.172709345817566, 0.2537335455417633, 1.6408069133758545, 2.162968158721924, 0.7455012202262878, 0.23630434274673462, 1.3254626989364624, 0.039381369948387146, -0.4057087004184723, 1.9316344261169434, -0.27190667390823364, 0.40455687046051025, 0.9405522346496582, -0.46543198823928833, -1.0855823755264282, -0.9615910053253174, -1.1837354898452759, -0.7762457728385925, 1.2707558870315552, 0.13283506035804749, -0.9542081952095032, 0.3786190152168274, 1.731632947921753, 0.15428443253040314, -0.18449193239212036, 0.606900691986084, 0.6123852133750916, -0.8343814015388489, -0.012178686447441578, -1.1688764095306396, 0.6219421625137329, -0.11869924515485764, -0.17901313304901123, 0.0623902902007103, 0.7588491439819336, 1.3332550525665283, 0.0418490469455719, 0.033200666308403015, 1.0848162174224854, -1.4120841026306152, 1.630340576171875, -0.5874905586242676, 0.4320234954357147, -2.322429895401001, 1.150725245475769, -0.6369068622589111, 2.0224199295043945, -2.491666793823242, 0.5016951560974121, -0.7353502511978149, -0.36500805616378784, 0.28895628452301025, -0.4302225112915039, 0.2601223886013031, -0.16327767074108124, -1.0483405590057373, -0.17867203056812286, -0.9031030535697937, 0.7377070188522339, 1.1814534664154053, 1.4384634494781494, -1.1924285888671875, -0.13877063989639282, -1.4063576459884644, -0.15101483464241028, -0.8681471347808838, 0.24899086356163025, -1.7142791748046875, -0.2075604498386383, -2.1150400638580322, -2.401919364929199, -1.3804051876068115, -0.7051103711128235, 1.126412034034729, 0.1817399561405182, -0.9492645859718323, 1.1959348917007446, -0.5891890525817871, -1.8311340808868408, 1.0280046463012695, -2.216505765914917 ]
https://github.com/huggingface/datasets/issues/6086
Support `fsspec` in `Dataset.to_<format>` methods
I'm assuming this should just cover `to_csv`, `to_parquet`, and `to_json`, right? As `to_list` and `to_dict` just return Python objects, `to_pandas` returns a `pandas.DataFrame` and `to_sql` just inserts into a SQL DB, is that right?
Supporting this should be fairly easy. Requested on the forum [here](https://discuss.huggingface.co/t/how-can-i-convert-a-loaded-dataset-in-to-a-parquet-file-and-save-it-to-the-s3/48353).
10
34
Support `fsspec` in `Dataset.to_<format>` methods Supporting this should be fairly easy. Requested on the forum [here](https://discuss.huggingface.co/t/how-can-i-convert-a-loaded-dataset-in-to-a-parquet-file-and-save-it-to-the-s3/48353). I'm assuming this should just cover `to_csv`, `to_parquet`, and `to_json`, right? As `to_list` and `to_dict` just return Python objects, `to_pandas` returns a `pandas.DataFrame` and `to_sql` just inserts into a SQL DB, is that right?
[ -1.0311846733093262, -0.7468673586845398, -0.7434991002082825, 1.6008455753326416, -0.025689486414194107, -1.4986146688461304, 0.25253990292549133, -1.046440601348877, 1.7896806001663208, -0.9305419921875, 0.49904119968414307, -1.5891073942184448, 0.06446303427219391, -0.7518453001976013, -0.7872912883758545, -0.7511021494865417, -0.4038705825805664, -0.7116568684577942, 0.9539511799812317, 2.4297983646392822, 1.0920487642288208, -1.367638349533081, 2.633028984069824, 0.6873296499252319, -0.1886100023984909, -0.9285821914672852, 0.39385753870010376, 0.04693584889173508, -1.2781950235366821, -0.30774179100990295, -0.9090712666511536, -0.13143087923526764, -0.6696197986602783, -0.6520727872848511, -0.0006529707461595535, 0.5667701959609985, -0.25414878129959106, -0.4599475562572479, -0.3815772235393524, -0.8414917588233948, 0.5927425026893616, -0.3488776683807373, 0.9343873858451843, -0.3979126214981079, 1.8151334524154663, -0.632334291934967, 0.49572569131851196, 0.6970608830451965, 1.3591004610061646, 0.07623255997896194, -0.10126954317092896, 0.26150959730148315, 0.2577661871910095, 0.03411267697811127, 0.5024210214614868, 1.1258461475372314, 0.540841817855835, 0.756013810634613, 0.7747696042060852, -2.2371129989624023, 1.3808374404907227, -1.0805364847183228, 0.3131685256958008, 1.2217379808425903, -1.0496230125427246, 0.4055265188217163, -1.8383861780166626, -0.0715438649058342, 0.46096011996269226, -2.2705130577087402, 0.2569184899330139, -1.2213753461837769, -0.47138068079948425, 0.9672091603279114, 0.4141950309276581, -1.2365020513534546, 0.03402671962976456, -0.2825125753879547, 0.90022873878479, 0.36013808846473694, 1.0146458148956299, -1.74468195438385, 0.20397284626960754, -0.37738466262817383, 0.15125156939029694, -1.309295892715454, -1.4459741115570068, 0.5735391974449158, 0.7186286449432373, 0.7160276770591736, -0.08355212956666946, 0.913183331489563, -0.9650971293449402, 0.7443498373031616, -0.9610983729362488, -1.6971232891082764, -1.1793125867843628, -2.1830875873565674, -2.4093616008758545, 0.6942539215087891, -0.4203471839427948, -0.4304131269454956, 2.0836985111236572, -0.9351942539215088, -1.7907750606536865, 1.0440289974212646, 0.2871205508708954, -0.06814891844987869, 2.2880306243896484, 0.22876285016536713, -0.7850550413131714, 0.6122066378593445, -0.7389885783195496, 0.7494356036186218, -0.4870719313621521, 1.2817306518554688, 0.4633559286594391, -1.1748167276382446, 1.6279970407485962, -0.31174108386039734, 0.6738209128379822, -0.8112573623657227, -0.450918585062027, -0.751257061958313, 0.3534623980522156, 1.8708000183105469, -0.15815481543540955, 1.4927929639816284, -0.18753103911876678, -1.464478850364685, -1.5552380084991455, 0.9272975325584412, 0.4568360149860382, -0.7663368582725525, 0.19169074296951294, -0.41247087717056274, 0.13604377210140228, 0.056000031530857086, 1.285321831703186, 1.2342051267623901, 0.7837735414505005, -0.13687339425086975, -0.8175977468490601, 0.15940457582473755, 0.03878430277109146, -0.6391791701316833, -1.802850604057312, -0.3576070964336395, 0.18551674485206604, 0.5082694292068481, -1.012515664100647, 1.9779413938522339, 0.8559084534645081, 1.9685626029968262, 0.9858341217041016, -0.18149308860301971, 1.5237483978271484, -0.13669006526470184, 2.061505079269409, -0.29504862427711487, 0.6838434934616089, -0.4581368565559387, -1.1752760410308838, 0.8723451495170593, -0.4031623899936676, -2.028400182723999, -0.6011122465133667, -0.9377759099006653, -0.11116080731153488, -0.7302972674369812, 1.0616427659988403, -0.22476699948310852, -1.349278450012207, 0.16369594633579254, -0.5901599526405334, 0.11955679953098297, -1.208953857421875, 0.2851184904575348, 0.7307882308959961, -0.7838570475578308, 0.07637767493724823, -0.39684104919433594, -1.4570338726043701, -0.5263999700546265, 0.43355289101600647, 1.9122503995895386, -0.7403901219367981, 0.9439982175827026, 1.0709867477416992, -0.7082209587097168, -0.13754220306873322, 0.40074336528778076, -0.3607213497161865, 0.760130763053894, -1.0897928476333618, -0.42891925573349, 1.120383381843567, -0.2640671730041504, -0.73497074842453, 1.4524290561676025, 0.7151802182197571, -0.9426925182342529, -0.11593740433454514, -0.30562859773635864, -0.7195753455162048, 0.08628275990486145, -1.5923752784729004, 0.048712410032749176, 0.3549637496471405, -1.4594452381134033, -0.527899980545044, -0.10617503523826599, 1.2887884378433228, -0.10823941975831985, 1.2414312362670898, -0.1288134753704071, -0.25678855180740356, -0.4895918667316437, -0.621989369392395, 0.12179216742515564, -0.06383271515369415, -0.6703035831451416, 0.30251145362854004, -0.6090611815452576, 0.3489435613155365, 1.4058823585510254, 0.05448513478040695, 0.1501488834619522, 0.6031059622764587, 1.162345051765442, 0.31434500217437744, -0.07028130441904068, -0.8880873918533325, -1.5489224195480347, 2.0352280139923096, -1.5260392427444458, 1.9590867757797241, 0.6959922909736633, 0.022378990426659584, -1.7795391082763672, -1.8551520109176636, 1.562363862991333, 1.2358784675598145, 2.3948469161987305, 0.6509842872619629, 0.3892945349216461, -0.9516984820365906, -0.5767883062362671, 0.4632100760936737, -0.9730199575424194, -0.7813267111778259, 0.09770939499139786, 2.2969412803649902, 1.7447386980056763, -0.486691951751709, -0.2658335864543915, -0.9953901171684265, 1.3366411924362183, -0.2808118164539337, 0.24051296710968018, 2.039733409881592, -0.46958044171333313, -1.086803674697876, 1.3051514625549316, -2.435231924057007, 0.14307595789432526, 2.012620449066162, 0.157754048705101, 0.11761443316936493, -1.3043994903564453, -0.6110158562660217, -0.10509585589170456, -0.41709259152412415, -1.2983216047286987, 0.5182120203971863, -0.18492379784584045, -0.7485464215278625, -1.3825136423110962, 0.29011380672454834, -1.1106868982315063, -1.6156715154647827, 0.38280048966407776, 1.7690130472183228, 2.0650410652160645, -0.7120133638381958, 1.542420744895935, -0.25070056319236755, 0.22469066083431244, 1.187914252281189, 1.2224647998809814, 3.185880184173584, 1.9281325340270996, -1.121960997581482, 0.6213773488998413, -0.18979117274284363, -0.6948937177658081, 1.2329185009002686, -0.9523786306381226, 1.223442554473877, -0.3182758390903473, -1.1289342641830444, -1.4016687870025635, 0.8522231578826904, 0.4911021590232849, 0.10203371196985245, -0.4258534014225006, 1.2898730039596558, 0.18749134242534637, 1.1810660362243652, 0.5020827054977417, -0.3392035663127899, 0.535226047039032, -0.43510541319847107, -0.560795783996582, 1.6005349159240723, 0.2876759171485901, -1.321081280708313, -2.342036008834839, -0.0888218805193901, -0.9378473162651062, -0.03411206603050232, -0.7310322523117065, -0.9013141989707947, 1.6955589056015015, 0.41810867190361023, -1.127138614654541, -0.061521582305431366, -0.24637319147586823, -0.7178144454956055, 2.710242748260498, -1.3497428894042969, -0.2669191360473633, -0.9521215558052063, -0.6141371130943298, 1.7573330402374268, -1.2938175201416016, -0.3093017339706421, -0.9769707322120667, -0.43793046474456787, -1.2696353197097778, -0.4425352215766907, -0.07978151738643646, -0.8822391629219055, 0.8195427656173706, 0.05445154756307602, -1.357331395149231, -0.28928330540657043, -0.9670947790145874, 0.8023878335952759, -0.18802687525749207, 0.19376662373542786, 1.7587472200393677, 0.33254528045654297, -0.3512442111968994, 0.8180245757102966, 1.1610350608825684, 0.6268407702445984, -0.5679292678833008, 0.40178680419921875, -0.574028491973877, 0.327702134847641, -1.255971074104309, 0.37335461378097534, -2.9499762058258057, 0.60151207447052, -0.02923624962568283, -0.0005049761384725571, -0.08287745714187622, -1.4072265625, 0.9489310383796692, 2.593306541442871, -1.192398190498352, 0.49450135231018066, 0.21047860383987427, 1.2707006931304932, -1.4431620836257935, 0.14877250790596008, -0.49093097448349, 2.1110339164733887, -0.00189200509339571, 1.0809745788574219, -0.4505214989185333, -2.2459561824798584, 0.5577208995819092, -1.3066859245300293, -1.2237118482589722, 0.7863438725471497, -0.8105216026306152, -0.017146345227956772, -1.140865445137024, -0.09000245481729507, -0.9308052062988281, -1.2405989170074463, 0.7230727672576904, 0.10711325705051422, 0.58734130859375, -0.6665359139442444, 0.21079587936401367, -2.091083526611328, -1.449954867362976, -0.2925177812576294, -0.9279530048370361, 0.3669600784778595, -0.2455393522977829, 0.6795682311058044, -0.1718607097864151, 0.13227114081382751, 0.23640219867229462, 1.5448784828186035, 3.2818679809570312, 0.03880062699317932, 0.4497041702270508, -0.32571133971214294, -0.927437961101532, 1.4224324226379395, 0.983643651008606, -0.11725552380084991, -0.6625562906265259, -0.9732936024665833, 1.2739626169204712, 2.0449156761169434, 1.0365865230560303, 0.04606379568576813, -0.9361605048179626, -0.6823583841323853, 0.0006385073065757751, 0.11483410000801086, 0.4837978780269623, 0.8847295641899109, 0.2611158788204193, 0.0419769287109375, 1.311327338218689, 1.184311032295227, -0.3496541976928711, 0.4373803436756134, -0.831731379032135, -0.2566119432449341, 0.581648588180542, 0.40036043524742126, 0.05102328956127167, 0.16345703601837158, -0.9163808822631836, -0.2792079746723175, -0.2910311222076416, -0.8557658195495605, -0.8000630736351013, -0.5598137974739075, -0.4488255977630615, 1.792555809020996, -0.04391390085220337, -0.606208086013794, 0.04149545729160309, -0.7449566125869751, -0.018144745379686356, -0.8954284191131592, 0.1687370389699936, -0.18684034049510956, -0.0776677280664444, -0.07175939530134201, 1.692878007888794, -1.0759968757629395, -2.167210578918457, 0.2658972442150116, 0.180581197142601, -0.44408759474754333, 0.10268346965312958, 1.6493189334869385, 0.5059884786605835, 1.4429287910461426, 1.4949852228164673, 1.0954363346099854, -0.7497663497924805, -1.3672761917114258, 0.5957707166671753, 0.9304563999176025, -1.4280022382736206, 0.8445965647697449, 0.03916478157043457, -0.4918813705444336, 0.6301395893096924, 1.130682349205017, 0.48527026176452637, -2.0588080883026123, 0.6480648517608643, -1.053032398223877, 0.8814969062805176, 0.7773020267486572, 0.7098017930984497, 0.24982386827468872, 0.8502117991447449, -1.1150100231170654, -1.1100555658340454, -0.6730359792709351, -0.78318852186203, 1.8263239860534668, -0.2909870445728302, 0.47882598638534546, -0.10939743369817734, -1.39250910282135, -0.035461507737636566, 0.8382387161254883, 0.48413243889808655, -0.428843230009079, 0.6966724991798401, -0.7349783182144165, -0.9682136178016663, -1.3383851051330566, -0.5542756915092468, -1.0891687870025635, -0.8658617734909058, 1.0359234809875488, 0.7629672884941101, 0.4022490084171295, 1.9204357862472534, 0.7648157477378845, 0.29282987117767334, -2.579186201095581, 0.7762705087661743, 0.40048080682754517, -0.054036930203437805, 0.7443328499794006, 0.41995224356651306, 1.1319808959960938, -0.21135099232196808, 0.6403719186782837, -2.3530759811401367, 2.333211660385132, -0.1370251625776291, 0.4786926805973053, 0.10623596608638763, -0.19299232959747314, 1.006563425064087, 0.31354406476020813, 0.5860433578491211, -1.1479134559631348, 0.675491213798523, -0.6334611773490906, 1.2628521919250488, 0.8484469652175903, -0.8609784841537476, -0.030834902077913284, 1.280379056930542, 0.425979346036911, -0.5791371464729309, -0.9440838098526001, -1.0280288457870483, 0.8963196873664856, 1.6936609745025635, -0.18470250070095062, -0.04585249722003937, 0.8810791969299316, 0.6071562170982361, -1.290384292602539, 0.03877352923154831, -0.7558311223983765, -0.8272343277931213, 1.7024227380752563, 1.9026880264282227, -0.1370132565498352, -0.007200396619737148, -1.0073857307434082, -1.2873492240905762, 0.8592326641082764, 0.16058821976184845, -0.2241358757019043, 0.6322028040885925, -0.596577525138855, 1.2061694860458374, 0.9510679841041565, 0.8697524666786194, 0.08248762041330338, 0.3136027455329895, 0.47591397166252136, -0.380668967962265, -1.2346128225326538, -0.43774116039276123, -1.0658912658691406, -2.6909146308898926, 0.43003198504447937, -0.33367034792900085, -1.4243639707565308, -0.053561821579933167, -1.0388864278793335, 0.7736572623252869, -0.49723196029663086, -1.0866122245788574, -1.4211639165878296, 0.24019131064414978, -0.10715183615684509, 0.7993367314338684, -1.592594027519226, 0.009094279259443283, 1.153560757637024, 0.886236310005188, -0.909438967704773, 0.8859118819236755, 0.21709772944450378, 0.9724435806274414, 0.9651288986206055, -0.4744311273097992, 0.5442780256271362, 0.2432233691215515, -1.351495385169983, 0.45074862241744995, 1.2484279870986938, 0.060148850083351135, 1.22441565990448, -0.48885753750801086, -0.03814565762877464, 0.3253905475139618, -0.3536842465400696, -0.5116509795188904, -0.8552283048629761, 0.7172725796699524, -0.053692832589149475, -0.8814384937286377, 0.1440623253583908, 0.08625023812055588, -0.214590385556221, 0.28260523080825806, -1.610128402709961, -0.18954475224018097, -0.3043857216835022, -0.5751615762710571, -1.327745795249939, -0.015219058841466904, 1.2065447568893433, -0.533894419670105, -0.13232579827308655, 0.5154678821563721, 0.35872551798820496, 0.49345922470092773, 0.5339822173118591, -0.7257595062255859, -0.3129577338695526, -0.30664825439453125, -0.4185170829296112, 0.455379456281662, 1.3569276332855225, -0.10675525665283203, -0.987647533416748, 0.6964558959007263, -0.35441216826438904, 0.05879107862710953, 1.9892488718032837, 0.11754383146762848, -0.9220280051231384, 0.35287028551101685, -0.7000250220298767, 1.903503179550171, 1.753708004951477, 1.1376174688339233, -0.06406019628047943, -0.9378640055656433, 0.6721527576446533, -0.41316941380500793, -0.33429622650146484, 0.9179376363754272, 0.3194987177848816, -0.2957267463207245, -1.3201228380203247, 0.730625569820404, 1.3855689764022827, -0.6580642461776733, -0.9855395555496216, 0.00955580547451973, -0.8168652653694153, 1.1164212226867676, 0.7476875185966492, 0.48486682772636414, 0.29679280519485474, 1.6505271196365356, 0.7231155633926392, -0.5049136281013489, 0.5236325263977051, 0.4419235289096832, -0.11762331426143646, -1.9457916021347046, -1.2687222957611084, 0.34080636501312256, -0.554248034954071, -1.6311782598495483, 1.451022982597351, -1.2639130353927612, -0.9000133872032166, 0.5821887850761414, 0.1202993243932724, 1.5022671222686768, 0.3400416374206543, 1.506836175918579, 1.999670147895813, 0.8631007671356201, 0.4819384217262268, 1.3225620985031128, -0.29983776807785034, -0.4721458852291107, 1.8264727592468262, -0.5362122058868408, 0.47594764828681946, 1.1747989654541016, -0.3375115692615509, -1.0446916818618774, -0.8681375980377197, -1.1679368019104004, -0.7377256751060486, 1.114472508430481, 0.16573892533779144, -1.2651447057724, 0.3853166997432709, 1.655564308166504, 0.08362219482660294, -0.25970518589019775, 0.6672642827033997, 0.28360119462013245, -0.8629522323608398, 0.026372158899903297, -1.0230865478515625, 0.6450616121292114, -0.30020323395729065, -0.2972605228424072, 0.408645361661911, 0.447602242231369, 1.078729271888733, 0.03243829309940338, 0.28402963280677795, 1.1318817138671875, -1.3994684219360352, 1.3689656257629395, -0.7004972696304321, 0.3862513303756714, -2.3553307056427, 1.421385645866394, -0.7425707578659058, 1.9371651411056519, -2.6623358726501465, 0.2992704212665558, -0.4795609414577484, -0.5737990140914917, 0.3507530987262726, -0.17623332142829895, 0.0650356262922287, -0.205826997756958, -1.2052801847457886, 0.009211046621203423, -0.7550836801528931, 0.49369192123413086, 1.0945736169815063, 1.2969255447387695, -0.9470831751823425, -0.3234291672706604, -1.701683759689331, -0.11834229528903961, -0.4523393511772156, 0.22952567040920258, -1.9894633293151855, -0.18082097172737122, -1.9898457527160645, -2.407313346862793, -1.3626718521118164, -0.8761484026908875, 1.2614431381225586, 0.077280692756176, -0.7900288105010986, 1.1040292978286743, -0.3218081593513489, -1.859232783317566, 1.1391003131866455, -2.0518248081207275 ]
https://github.com/huggingface/datasets/issues/6079
Iterating over DataLoader based on HF datasets is stuck forever
When the process starts to hang, can you interrupt it with CTRL + C and paste the error stack trace here?
### Describe the bug I am using Amazon Sagemaker notebook (Amazon Linux 2) with python 3.10 based Conda environment. I have a dataset in parquet format locally. When I try to iterate over it, the loader is stuck forever. Note that the same code is working for python 3.6 based conda environment seamlessly. What should be my next steps here? ### Steps to reproduce the bug ``` train_dataset = load_dataset( "parquet", data_files = {'train': tr_data_path + '*.parquet'}, split = 'train', collate_fn = streaming_data_collate_fn, streaming = True ).with_format('torch') train_dataloader = DataLoader(train_dataset, batch_size = 2, num_workers = 0) t = time.time() iter_ = 0 for batch in train_dataloader: iter_ += 1 if iter_ == 1000: break print (time.time() - t) ``` ### Expected behavior The snippet should work normally and load the next batch of data. ### Environment info datasets: '2.14.0' pyarrow: '12.0.0' torch: '2.0.0' Python: 3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0] !uname -r 5.10.178-162.673.amzn2.x86_64
11
21
Iterating over DataLoader based on HF datasets is stuck forever ### Describe the bug I am using Amazon Sagemaker notebook (Amazon Linux 2) with python 3.10 based Conda environment. I have a dataset in parquet format locally. When I try to iterate over it, the loader is stuck forever. Note that the same code is working for python 3.6 based conda environment seamlessly. What should be my next steps here? ### Steps to reproduce the bug ``` train_dataset = load_dataset( "parquet", data_files = {'train': tr_data_path + '*.parquet'}, split = 'train', collate_fn = streaming_data_collate_fn, streaming = True ).with_format('torch') train_dataloader = DataLoader(train_dataset, batch_size = 2, num_workers = 0) t = time.time() iter_ = 0 for batch in train_dataloader: iter_ += 1 if iter_ == 1000: break print (time.time() - t) ``` ### Expected behavior The snippet should work normally and load the next batch of data. ### Environment info datasets: '2.14.0' pyarrow: '12.0.0' torch: '2.0.0' Python: 3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:08:06) [GCC 11.3.0] !uname -r 5.10.178-162.673.amzn2.x86_64 When the process starts to hang, can you interrupt it with CTRL + C and paste the error stack trace here?
[ -1.2703862190246582, -1.0200567245483398, -0.7282028198242188, 1.5863037109375, -0.22804024815559387, -1.1206165552139282, 0.14635612070560455, -0.9283672571182251, 1.6327399015426636, -0.8532999157905579, 0.25511327385902405, -1.5935802459716797, 0.06626027077436447, -0.5541383624076843, -0.6710367798805237, -0.9019896984100342, -0.39769357442855835, -0.7906194925308228, 1.2152239084243774, 2.4792754650115967, 1.1767481565475464, -1.4330624341964722, 2.7466118335723877, 0.6844868659973145, -0.17716172337532043, -1.0545680522918701, 0.45236873626708984, 0.011621950194239616, -1.303383469581604, -0.47269389033317566, -0.9854139089584351, -0.10184447467327118, -0.5849422812461853, -0.43242427706718445, 0.031229667365550995, 0.3751274347305298, -0.3097801208496094, -0.473556250333786, -0.5225887894630432, -0.7543569207191467, 0.4138980507850647, -0.4091336131095886, 0.9121178388595581, -0.3322283625602722, 1.8646512031555176, -0.44648393988609314, 0.4723714292049408, 0.740240216255188, 1.2310529947280884, 0.19101235270500183, -0.061486128717660904, 0.4019983410835266, 0.40199148654937744, -0.03395163267850876, 0.5568444132804871, 1.112541675567627, 0.6121524572372437, 0.43153220415115356, 0.6674896478652954, -2.2594614028930664, 1.3508073091506958, -1.0539847612380981, 0.3160218894481659, 1.3426822423934937, -1.0169873237609863, 0.40661099553108215, -1.7052521705627441, -0.03219630569219589, 0.6527529954910278, -2.2229976654052734, 0.31867483258247375, -1.3309470415115356, -0.5061382055282593, 1.0579190254211426, 0.37080633640289307, -1.2101249694824219, 0.08242490887641907, -0.46905308961868286, 1.0823975801467896, 0.405666708946228, 1.086157202720642, -1.6750189065933228, -0.09977629780769348, -0.2952594459056854, 0.0820297971367836, -1.360903024673462, -1.5300941467285156, 0.545491099357605, 0.7014057636260986, 0.5633761882781982, -0.12729158997535706, 1.126304268836975, -1.051946997642517, 0.7918419241905212, -1.054456353187561, -1.6907122135162354, -1.4646062850952148, -2.426743268966675, -2.34340238571167, 0.7109238505363464, -0.3870485723018646, -0.5291550159454346, 2.1213815212249756, -1.0183073282241821, -1.7146294116973877, 1.2295945882797241, 0.20865119993686676, -0.01793459802865982, 2.3642048835754395, 0.20573250949382782, -0.735796332359314, 0.41250771284103394, -0.823825478553772, 0.7673927545547485, -0.3535959720611572, 1.3685827255249023, 0.4158584773540497, -1.0192694664001465, 1.566381573677063, -0.27558696269989014, 0.5738387107849121, -0.5994521975517273, -0.5265457034111023, -0.7651427388191223, 0.2725522518157959, 1.9890624284744263, -0.26922130584716797, 1.4972985982894897, -0.3141382336616516, -1.5104280710220337, -1.614240050315857, 0.9431660175323486, 0.4184652864933014, -0.7832295894622803, 0.16958367824554443, -0.29936233162879944, 0.17780359089374542, -0.09599873423576355, 1.135988473892212, 1.2540297508239746, 0.661910355091095, -0.4068514108657837, -0.9580122828483582, 0.2457752823829651, -0.19125349819660187, -0.6388253569602966, -1.7693486213684082, -0.3928391635417938, 0.003830372355878353, 0.6714229583740234, -1.2429225444793701, 1.640195369720459, 0.9186469912528992, 1.8952792882919312, 1.0373010635375977, -0.32901260256767273, 1.4938896894454956, 0.1489226222038269, 1.7987804412841797, -0.48651060461997986, 0.6303344368934631, -0.3957127332687378, -1.1346262693405151, 0.7571297287940979, -0.30230218172073364, -1.9857853651046753, -0.7314308881759644, -0.8195823431015015, -0.22460857033729553, -0.7727138996124268, 0.9088981747627258, -0.2878906726837158, -1.460631012916565, 0.32449567317962646, -0.7310112714767456, 0.1958143562078476, -1.2123395204544067, 0.395111620426178, 0.6907099485397339, -0.5267525315284729, 0.11855506896972656, -0.27504226565361023, -1.2725237607955933, -0.45877203345298767, 0.3289075791835785, 1.856755256652832, -0.7664968371391296, 0.9108681678771973, 1.1084643602371216, -0.6924868226051331, 0.019573837518692017, 0.26403751969337463, -0.23922018706798553, 0.8693661093711853, -0.9898128509521484, -0.46799516677856445, 1.2221249341964722, -0.34786251187324524, -0.6127305030822754, 1.4814071655273438, 0.7415249943733215, -1.0217437744140625, -0.25684529542922974, -0.09715654700994492, -0.7770324349403381, 0.10685914754867554, -1.607828140258789, -0.15883266925811768, 0.4460715055465698, -1.5786781311035156, -0.4429323375225067, -0.22039929032325745, 1.3957363367080688, -0.09679817408323288, 1.5038902759552002, -0.3827415406703949, -0.21682804822921753, -0.2948243021965027, -0.39469006657600403, 0.2126920223236084, -0.18063202500343323, -0.5854507684707642, 0.183577299118042, -0.7566635012626648, 0.3451472520828247, 1.418308973312378, 0.3428877890110016, 0.012665154412388802, 0.5042246580123901, 1.0517922639846802, 0.4361526370048523, -0.01440795511007309, -0.8900279998779297, -1.5050073862075806, 1.9882922172546387, -1.4387753009796143, 2.0444085597991943, 0.751244068145752, 0.006243592128157616, -1.7774544954299927, -1.8524779081344604, 1.3661456108093262, 1.0736184120178223, 2.27195143699646, 0.5371049642562866, 0.3737678825855255, -0.8768037557601929, -0.6783195734024048, 0.25457867980003357, -0.9948505163192749, -0.7738151550292969, 0.1565236747264862, 2.4632973670959473, 1.7346285581588745, -0.3745049238204956, -0.10219302028417587, -0.9748493432998657, 1.4332410097122192, -0.17354242503643036, 0.26637914776802063, 1.9964344501495361, -0.2026226967573166, -1.0046178102493286, 1.2048265933990479, -2.4078547954559326, 0.15919072926044464, 2.057342767715454, 0.2915995419025421, 0.08237925916910172, -1.4065937995910645, -0.6566792130470276, -0.2889803349971771, -0.43177077174186707, -1.2126868963241577, 0.5420443415641785, -0.3322942852973938, -0.7989603877067566, -1.4294886589050293, 0.21874544024467468, -1.0786625146865845, -1.6343810558319092, 0.17432256042957306, 1.8816293478012085, 2.0486223697662354, -0.7394067049026489, 1.573058009147644, -0.31703507900238037, 0.22263431549072266, 1.243443250656128, 1.2356737852096558, 3.1221001148223877, 1.9922723770141602, -1.2340881824493408, 0.646368145942688, -0.11059167981147766, -0.4361998736858368, 1.1215158700942993, -1.2102861404418945, 1.3687944412231445, -0.09323257952928543, -1.2024167776107788, -1.1870838403701782, 1.0016605854034424, 0.5748013257980347, 0.009488558396697044, -0.4487866461277008, 1.2264584302902222, 0.07229287922382355, 1.2745572328567505, 0.46248283982276917, -0.34409573674201965, 0.6241487860679626, -0.4325432777404785, -0.5262516140937805, 1.5442783832550049, 0.179292693734169, -1.4374271631240845, -2.2231285572052, -0.3053877353668213, -0.8388472199440002, 0.00040428899228572845, -0.6317750811576843, -0.9766393899917603, 1.6148477792739868, 0.3497506380081177, -1.2448102235794067, -0.23902662098407745, -0.3667314648628235, -0.594429612159729, 2.7342543601989746, -1.300215244293213, -0.27645888924598694, -0.9477863311767578, -0.6512316465377808, 1.6509292125701904, -1.2321795225143433, -0.2519448697566986, -1.01023268699646, -0.6210387349128723, -1.2560739517211914, -0.5465933084487915, -0.0340912900865078, -0.9389357566833496, 0.8830350041389465, 0.15667535364627838, -1.1915464401245117, -0.31377720832824707, -0.9291141033172607, 0.8733447790145874, -0.015085543505847454, 0.20138490200042725, 1.7835066318511963, 0.31587862968444824, -0.43602800369262695, 0.7711191177368164, 1.109412670135498, 0.6569945216178894, -0.7114329934120178, 0.21549704670906067, -0.639967679977417, 0.33332860469818115, -1.166379690170288, 0.3617279529571533, -2.940078020095825, 0.6160194873809814, -0.02417723834514618, -0.05372264236211777, -0.05303379148244858, -1.2435613870620728, 1.1592228412628174, 2.5316905975341797, -1.1599867343902588, 0.5330909490585327, 0.36675530672073364, 1.1973267793655396, -1.599210262298584, 0.36012494564056396, -0.4399902820587158, 2.129509449005127, 0.2263702005147934, 1.2296056747436523, -0.43472930788993835, -2.341657876968384, 0.6637955904006958, -1.2730214595794678, -1.1811329126358032, 0.7181239128112793, -0.9457309246063232, 0.10698641091585159, -1.3595820665359497, -0.2595587968826294, -0.8108721971511841, -1.1869735717773438, 0.6704214215278625, 0.18699075281620026, 0.4101960062980652, -0.5451969504356384, 0.3398195207118988, -2.217848062515259, -1.3330833911895752, -0.23853689432144165, -0.9883919358253479, 0.46435925364494324, -0.3864234387874603, 0.723870038986206, -0.19503958523273468, 0.05545087903738022, 0.3346658945083618, 1.426460862159729, 3.35093355178833, 0.08663385361433029, 0.32711538672447205, -0.1662033498287201, -0.9254851341247559, 1.4863619804382324, 0.9310508370399475, -0.14118877053260803, -0.47848594188690186, -1.1359503269195557, 1.2681918144226074, 1.9578182697296143, 0.964282214641571, -0.0029162075370550156, -0.7668343782424927, -0.6691989302635193, -0.06934203952550888, 0.14624114334583282, 0.5122901201248169, 0.8726454973220825, 0.06489525735378265, 0.11245114356279373, 1.450420618057251, 1.1771173477172852, -0.4693325459957123, 0.3176693618297577, -0.8384205102920532, -0.47165635228157043, 0.4588860869407654, 0.24981200695037842, -0.033401016145944595, 0.291052907705307, -0.9630688428878784, -0.1935492306947708, -0.43424469232559204, -0.949222981929779, -0.6995052099227905, -0.41822606325149536, -0.4140550494194031, 1.6399096250534058, 0.17909683287143707, -0.5281315445899963, -0.013116162270307541, -0.7296276092529297, -0.042648397386074066, -1.1368954181671143, 0.2380051612854004, -0.10869992524385452, -0.12224888801574707, -0.1499549001455307, 1.7764824628829956, -0.9104666113853455, -2.083815336227417, 0.18810027837753296, 0.21468615531921387, -0.19710776209831238, 0.2825556993484497, 1.636252760887146, 0.49497872591018677, 1.511309266090393, 1.299277901649475, 0.9824410676956177, -0.6532245874404907, -1.3590373992919922, 0.7358136177062988, 1.0105249881744385, -1.4153169393539429, 0.7653864622116089, 0.0059120506048202515, -0.4785408079624176, 0.6788317561149597, 1.2529094219207764, 0.5003352165222168, -2.073185920715332, 0.8337283730506897, -1.0196824073791504, 0.7778860330581665, 0.687258780002594, 0.6341608166694641, 0.20434285700321198, 0.8310564160346985, -1.180774211883545, -1.1132886409759521, -0.725138783454895, -0.7020883560180664, 1.9726675748825073, -0.3179275691509247, 0.5739007592201233, -0.20499758422374725, -1.3709590435028076, 0.017508992925286293, 0.6558765172958374, 0.34706389904022217, -0.4277585744857788, 0.7986032366752625, -0.762241005897522, -1.2146183252334595, -1.410323977470398, -0.43737202882766724, -1.07272207736969, -1.01042902469635, 1.0790698528289795, 0.7350091934204102, 0.2288089394569397, 1.8366214036941528, 0.579835832118988, 0.29235342144966125, -2.6122186183929443, 0.9967628717422485, 0.22806115448474884, -0.03857649862766266, 0.8437507152557373, 0.24389702081680298, 1.0736430883407593, 0.00009798351675271988, 0.5092971324920654, -2.3786094188690186, 2.292348861694336, -0.23931849002838135, 0.6711820363998413, 0.019374055787920952, -0.09978099167346954, 1.0775611400604248, 0.6020369529724121, 0.6547490954399109, -1.0470515489578247, 0.7032753229141235, -0.5939795970916748, 1.289718747138977, 0.8580099940299988, -0.785834789276123, -0.0647682398557663, 1.2956478595733643, 0.45721426606178284, -0.5334159135818481, -0.9314931631088257, -1.0642616748809814, 0.9375760555267334, 1.6632041931152344, -0.09586623311042786, -0.04089934378862381, 0.8207515478134155, 0.6526916027069092, -1.3223484754562378, 0.06194198131561279, -0.7181742191314697, -0.7226234674453735, 1.5229676961898804, 2.0825297832489014, -0.15675637125968933, -0.21801993250846863, -0.7181618213653564, -1.303465485572815, 0.7057399153709412, -0.08454877138137817, 0.07320751249790192, 0.6206866502761841, -0.5469963550567627, 0.9519345164299011, 0.8332300782203674, 0.890402615070343, 0.18421414494514465, 0.2312939614057541, 0.3720000684261322, -0.33420342206954956, -1.2019357681274414, -0.24655109643936157, -0.9993166327476501, -2.5993082523345947, 0.4401411712169647, -0.15443389117717743, -1.3636798858642578, 0.04804083704948425, -1.0458478927612305, 0.9548082947731018, -0.5497004985809326, -1.1285866498947144, -1.492067575454712, 0.07712852209806442, -0.08160728216171265, 0.9161662459373474, -1.5962311029434204, -0.11612749844789505, 1.2998344898223877, 0.905302107334137, -0.6949282884597778, 1.1393598318099976, 0.2765551507472992, 1.0223251581192017, 0.8004650473594666, -0.36835166811943054, 0.6099039912223816, 0.057775259017944336, -1.3702472448349, 0.5118402242660522, 1.161612868309021, 0.25127407908439636, 1.5377132892608643, -0.6369185447692871, -0.07489747554063797, 0.43556877970695496, -0.6598762273788452, -0.43065428733825684, -0.49863868951797485, 0.7044742107391357, -0.059762317687273026, -0.8690316081047058, 0.053008392453193665, -0.08602244406938553, -0.1944335252046585, 0.1129060760140419, -1.4900660514831543, -0.10857226699590683, -0.3305414021015167, -0.6443291902542114, -1.3088690042495728, -0.022847730666399002, 1.4261952638626099, -0.8287856578826904, -0.22520457208156586, 0.39243265986442566, 0.4298798441886902, 0.5205701589584351, 0.6849004030227661, -0.6297410726547241, -0.29111358523368835, -0.18237313628196716, -0.29901835322380066, 0.35390663146972656, 1.4076448678970337, -0.12418949604034424, -0.9984703063964844, 0.7447238564491272, -0.3212330937385559, 0.07376054674386978, 1.917019248008728, 0.11616790294647217, -0.8219470381736755, 0.2730754315853119, -0.7509710788726807, 1.9687995910644531, 1.657674789428711, 1.3370026350021362, -0.22311443090438843, -0.9359429478645325, 0.6253951787948608, -0.39307111501693726, -0.38142654299736023, 0.8846217393875122, 0.43858301639556885, -0.2205999195575714, -1.2919963598251343, 0.7201113104820251, 1.222514271736145, -0.8710130453109741, -0.8461534380912781, 0.21387141942977905, -0.7629655599594116, 1.0719643831253052, 0.6774079203605652, 0.39983507990837097, 0.24147549271583557, 1.606113314628601, 0.8039195537567139, -0.5606020092964172, 0.5551372170448303, 0.5044341087341309, -0.25143003463745117, -2.1217989921569824, -1.1059330701828003, 0.38332727551460266, -0.605298638343811, -1.6160612106323242, 1.3816465139389038, -1.0602988004684448, -1.016188621520996, 0.5362488627433777, 0.04867292568087578, 1.4239052534103394, 0.3737947940826416, 1.5541837215423584, 2.035438299179077, 0.8507381081581116, 0.4612227976322174, 1.2828835248947144, -0.18621918559074402, -0.5037094354629517, 1.8264073133468628, -0.45663192868232727, 0.45534732937812805, 1.1414353847503662, -0.3212839365005493, -1.03104567527771, -0.7355055809020996, -1.1753686666488647, -0.6607353091239929, 1.1003668308258057, 0.16910292208194733, -1.0955718755722046, 0.24426904320716858, 1.4897537231445312, 0.12844321131706238, -0.3664528727531433, 0.6440498232841492, 0.3222862184047699, -0.7857758402824402, 0.004406985826790333, -0.9806360602378845, 0.5440222024917603, -0.2870256006717682, -0.32590872049331665, 0.32279351353645325, 0.39824730157852173, 1.3347840309143066, -0.045614153146743774, 0.17215335369110107, 1.1572118997573853, -1.3649075031280518, 1.4894636869430542, -0.6449925899505615, 0.2688893973827362, -2.2688262462615967, 1.2844533920288086, -0.8029929399490356, 1.9737588167190552, -2.69169020652771, 0.45761406421661377, -0.6762818694114685, -0.45407700538635254, 0.3321778178215027, -0.35529905557632446, 0.07486776262521744, -0.14165228605270386, -1.15927255153656, -0.0519951730966568, -0.7132949829101562, 0.5527268052101135, 1.112611174583435, 1.2983803749084473, -1.1032793521881104, -0.25698357820510864, -1.7158437967300415, -0.16393354535102844, -0.8286408185958862, 0.4721251428127289, -2.0392322540283203, -0.20911775529384613, -1.8904272317886353, -2.339359998703003, -1.1872934103012085, -0.8320444822311401, 1.1487255096435547, 0.16628381609916687, -0.8474240303039551, 1.24372136592865, -0.2978067398071289, -1.8446353673934937, 1.0334973335266113, -2.079883337020874 ]
https://github.com/huggingface/datasets/issues/6079
Iterating over DataLoader based on HF datasets is stuck forever
"Thanks @mariosasko for your prompt response, here's the stack trace:\r\n\r\n```\r\nKeyboardInterrup(...TRUNCATED)
"### Describe the bug\r\n\r\nI am using Amazon Sagemaker notebook (Amazon Linux 2) with python 3.10 (...TRUNCATED)
11
308
"Iterating over DataLoader based on HF datasets is stuck forever \n ### Describe the bug\r\n\r\nI am(...TRUNCATED)
[-1.2974315881729126,-1.0190706253051758,-0.664889931678772,1.5647151470184326,-0.20822866261005402,(...TRUNCATED)
https://github.com/huggingface/datasets/issues/6079
Iterating over DataLoader based on HF datasets is stuck forever
"Update: If i let it run, it eventually fails with:\r\n\r\n```\r\nRuntimeError (...TRUNCATED)
"### Describe the bug\r\n\r\nI am using Amazon Sagemaker notebook (Amazon Linux 2) with python 3.10 (...TRUNCATED)
11
416
"Iterating over DataLoader based on HF datasets is stuck forever \n ### Describe the bug\r\n\r\nI am(...TRUNCATED)
[-1.270894169807434,-1.0062732696533203,-0.6609833240509033,1.563029408454895,-0.22833463549613953,-(...TRUNCATED)

Dataset Card for "github-issues-with-embeddings"

More Information needed

Downloads last month
35
Edit dataset card