html_url
stringlengths
51
51
title
stringlengths
6
280
comments
stringlengths
67
24.7k
body
stringlengths
51
36.2k
comment_length
int64
16
1.45k
text
stringlengths
159
38.3k
embeddings
sequence
https://github.com/huggingface/datasets/issues/2722
Missing cache file
Hi ! Not sure why this file was missing, but yes the way to fix this is to delete the sst2 directory and to reload the dataset
Strangely missing cache file after I restart my program again. `glue_dataset = datasets.load_dataset('glue', 'sst2')` `FileNotFoundError: [Errno 2] No such file or directory: /Users/chris/.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96d6053ad/dataset_info.json'`
27
Missing cache file Strangely missing cache file after I restart my program again. `glue_dataset = datasets.load_dataset('glue', 'sst2')` `FileNotFoundError: [Errno 2] No such file or directory: /Users/chris/.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96d6053ad/dataset_info.json'` Hi ! Not sure why this file was missing, but yes the way to fix this is to delete the sst2 directory and to reload the dataset
[ 0.16967381536960602, -0.08418671786785126, -0.09192270785570145, -0.05986584350466728, 0.11706884950399399, 0.002708385232836008, 0.1328888088464737, -0.010448960587382317, 0.05861048772931099, 0.1470191329717636, 0.07345162332057953, -0.0709463506937027, 0.06861987709999084, -0.08472618460655212, 0.07171200960874557, 0.010917470790445805, -0.060674190521240234, 0.047204598784446716, -0.12035151571035385, -0.023169955238699913, 0.1167147159576416, 0.11063539236783981, 0.2694445848464966, -0.00479156943038106, -0.2583692669868469, 0.052963390946388245, -0.10304554551839828, 0.09832396358251572, 0.018005061894655228, -0.1204053983092308, 0.17242568731307983, -0.010558505542576313, 0.10262226313352585, 0.18724031746387482, 0.000006011409368511522, 0.03042346052825451, 0.16489967703819275, 0.06341995298862457, -0.10343804210424423, 0.034655533730983734, -0.04043617099523544, 0.056841831654310226, -0.049956392496824265, 0.017529649659991264, -0.10365922003984451, 0.017141466960310936, 0.06229773163795471, -0.1934574991464615, 0.057594601064920425, -0.01268630288541317, 0.05165489763021469, 0.06830058991909027, -0.002821354428306222, -0.04894423857331276, 0.20121534168720245, -0.08479690551757812, 0.00011426529090385884, 0.007452597841620445, -0.28959640860557556, -0.1731754094362259, 0.14505614340305328, 0.03585435450077057, 0.055558718740940094, 0.04563679173588753, -0.03779978305101395, 0.08350817114114761, -0.11094862967729568, -0.025133956223726273, 0.1006983295083046, 0.01694406382739544, 0.05466165393590927, 0.011072680354118347, -0.10676182061433792, 0.04918290674686432, -0.013371818698942661, 0.009343309327960014, -0.07289200276136398, 0.10041790455579758, 0.06989271193742752, 0.04264477267861366, 0.006142639555037022, -0.15060469508171082, 0.11006725579500198, -0.06747259944677353, 0.0028012122493237257, -0.021497251465916634, -0.2234867662191391, -0.009476393461227417, -0.1873549371957779, -0.08246315270662308, -0.07168667018413544, -0.004178824368864298, -0.07625378668308258, 0.02203522063791752, 0.08898647874593735, 0.15138693153858185, 0.02382461167871952, 0.01362769678235054, -0.08618443459272385, -0.08346911519765854, 0.016537517309188843, -0.29371407628059387, 0.06006884574890137, 0.03074807859957218, -0.025449978187680244, 0.030288493260741234, 0.10648523271083832, -0.0712767243385315, 0.08180990815162659, 0.07426337152719498, 0.011350921355187893, -0.181691974401474, -0.1924929916858673, 0.01976706273853779, 0.2594287395477295, -0.001192364376038313, 0.10842903703451157, 0.04837517440319061, 0.026627101004123688, 0.03725485876202583, 0.03646531701087952, 0.17299304902553558, -0.07552490383386612, 0.13748320937156677, -0.031139329075813293, 0.021092882379889488, 0.014239518903195858, 0.03890564665198326, 0.04891806095838547, -0.01307410467416048, -0.14499090611934662, -0.037736911326646805, -0.13549046218395233, 0.048142530024051666, 0.1420123279094696, -0.12707652151584625, -0.016747599467635155, -0.18740276992321014, -0.21279092133045197, -0.04762525483965874, 0.020805682986974716, -0.11780606210231781, 0.009594769217073917, 0.08184432238340378, 0.12949185073375702, 0.10247655212879181, 0.09965570271015167, -0.09380950778722763, 0.11545605212450027, 0.08210861682891846, -0.19970384240150452, -0.01887524500489235, -0.24594631791114807, 0.032025326043367386, -0.11695867031812668, 0.0077414256520569324, 0.06986378133296967, -0.060596365481615067, -0.1318187117576599, -0.13410155475139618, 0.051580119878053665, 0.007696608081459999, -0.003396676853299141, -0.207864448428154, 0.04066017270088196, 0.1145869642496109, -0.06243520602583885, -0.07437678426504135, 0.018161071464419365, -0.05829951539635658, -0.17735058069229126, 0.010754374787211418, 0.009997624903917313, -0.020655274391174316, -0.29900142550468445, 0.21204258501529694, -0.05110636726021767, 0.045566391199827194, -0.17765039205551147, 0.06373626738786697, 0.12562663853168488, 0.020250340923666954, -0.031564049422740936, 0.11122124642133713, 0.023654643446207047, -0.07733502984046936, -0.15660348534584045, -0.057878296822309494, -0.06422685086727142, 0.018646689131855965, -0.1097169741988182, -0.0029044663533568382, 0.025938821956515312, -0.04728573188185692, 0.03127749264240265, -0.05600609630346298, 0.05741884931921959, -0.05233119800686836, -0.13160820305347443, -0.22752338647842407, 0.09336283802986145, 0.11091221123933792, 0.03511466085910797, 0.18109780550003052, 0.07595480233430862, 0.052229683846235275, -0.09207306802272797, 0.2552246153354645, -0.09771070629358292, -0.19582605361938477, -0.12808552384376526, 0.018799737095832825, -0.059631749987602234, -0.03861355781555176, -0.09344684332609177, -0.044835057109594345, -0.04478730261325836, 0.08037903904914856, 0.03404027223587036, 0.08554782718420029, 0.022283030673861504, 0.22910380363464355, 0.03257879987359047, -0.010611078701913357, -0.21737103164196014, 0.1766805499792099, 0.04147382080554962, -0.12353738397359848, 0.010700379498302937, 0.1458410769701004, -0.19268742203712463, 0.029669366776943207, 0.0933748185634613, 0.12130129337310791, -0.03400314971804619, -0.005161225330084562, -0.07335538417100906, -0.08786777406930923, 0.03994986414909363, -0.027821633964776993, -0.055489979684352875, -0.021536052227020264, -0.06068674847483635, -0.08100605010986328, 0.12437693029642105, -0.1386299729347229, -0.054603151977062225, 0.04844638332724571, -0.05193401873111725, -0.04480639100074768, 0.1700139343738556, -0.03740805387496948, -0.1643146127462387, 0.06568273156881332, 0.15510401129722595, -0.12107975780963898, 0.16474007070064545, 0.13650427758693695, 0.03986238315701485, 0.05858525633811951, 0.1641884297132492, -0.1262272298336029, 0.02104894444346428, -0.0037221387028694153, -0.04449628293514252, -0.03313082456588745, 0.03814307600259781, 0.10658052563667297, 0.005756102968007326, 0.07432325184345245, -0.022290214896202087, -0.10273247957229614, -0.025236444547772408, -0.013330943882465363, -0.030536653473973274, -0.046573538333177567, 0.03892163559794426, -0.013072815723717213, 0.2090172916650772, 0.027694404125213623, -0.14805324375629425, 0.23464250564575195, 0.036208588629961014, -0.1053636446595192, 0.112501360476017, 0.03680218383669853, -0.13238801062107086, -0.15609495341777802, -0.020305925980210304, 0.20052529871463776, -0.06862244755029678, -0.042272020131349564, 0.009728268720209599, -0.10818405449390411, -0.00949422549456358, -0.13089752197265625, 0.08450738340616226, -0.0400005578994751, 0.014255044981837273, -0.11946821957826614, -0.15299662947654724, -0.04949133098125458, 0.02059081196784973, -0.18427367508411407, -0.003133748658001423, -0.026729527860879898, 0.04968740791082382, 0.06909990310668945, 0.03288452699780464, -0.1222459077835083, 0.07229550927877426, -0.1139804869890213, 0.14421699941158295, 0.14081257581710815, 0.11798512935638428, -0.03007495030760765, -0.037663012742996216, -0.07077539712190628, 0.049447666853666306, 0.07001328468322754, 0.016766058281064034, 0.09506168216466904, -0.03866778686642647, 0.0325644314289093, -0.06948891282081604, 0.05563299357891083, -0.14436647295951843, -0.07277484983205795, -0.027026325464248657, -0.18718373775482178, -0.05179251730442047, -0.12512966990470886, -0.14047585427761078, -0.14749431610107422, -0.1750641018152237, -0.008842705748975277, -0.24154037237167358, -0.2141328603029251, 0.23849014937877655, -0.01876947470009327, -0.001959735993295908, 0.1260528415441513, -0.09304970502853394, 0.13483436405658722, -0.073377825319767, -0.15405452251434326, -0.0810541957616806, -0.05746304243803024, -0.042189452797174454, -0.19934596121311188, 0.12566867470741272, 0.06171681359410286, -0.059297315776348114, -0.0472600944340229, 0.01035852450877428, -0.02438448555767536, -0.18594051897525787, 0.08779893815517426, 0.093531034886837, -0.08066826313734055, 0.23506541550159454, 0.1628980040550232, 0.04891171306371689, -0.02874493971467018, -0.065770722925663, 0.10529037564992905, 0.09685701131820679, 0.2629507780075073, 0.0008099041297100484, -0.0052895089611411095, 0.024798866361379623, 0.0351903922855854, 0.029848633334040642, 0.02145734615623951, 0.14899329841136932, 0.14611726999282837, -0.1488427370786667, -0.0679854154586792, 0.0368521623313427, 0.018489381298422813, -0.03241970017552376, -0.10481203347444534, -0.029785646125674248, 0.24774587154388428, 0.004477582406252623, -0.00035657527041621506, -0.04441210255026817, 0.12657973170280457, 0.15232352912425995, 0.043285027146339417, 0.1316128671169281, -0.08029114454984665, -0.021012280136346817, -0.08833415061235428, -0.0673743337392807, -0.06599772721529007, 0.13569560647010803, 0.09465757757425308, 0.11036624759435654, -0.05818852037191391, -0.049154143780469894, 0.19212813675403595, 0.07372485101222992, 0.16259874403476715, 0.058114193379879, 0.08942914009094238, 0.11409831792116165, -0.13983625173568726, 0.11622067540884018, -0.05670095235109329, 0.16488133370876312, 0.0821460708975792, 0.1661951243877411, -0.1411871761083603, 0.14565904438495636, -0.06568251550197601, 0.008646579459309578, -0.19908113777637482, -0.10428929328918457, -0.14564606547355652, -0.00846868846565485, -0.08759485930204391, 0.013916063122451305, 0.025986935943365097, -0.00875431764870882, -0.03678655996918678, 0.07079368084669113, -0.22628499567508698, 0.02710738219320774, -0.058015190064907074, 0.07996616512537003, -0.03754067420959473, -0.027391986921429634, 0.12282925844192505, 0.1025271937251091, -0.1797942817211151, 0.2271324098110199, -0.1263386458158493, -0.08749131858348846, 0.19654658436775208, -0.1277334988117218, 0.04503100365400314, -0.03913555294275284, -0.14005951583385468, 0.010110658593475819, -0.02152463048696518, -0.0802324116230011, -0.08231553435325623, 0.05625918507575989, -0.02599279023706913, 0.002338085090741515, 0.013582928106188774, -0.004031775519251823, -0.21419323980808258, 0.0243962574750185, 0.13374002277851105, 0.2550961971282959, -0.03419434279203415, 0.06825743615627289, 0.025879109278321266, -0.2267402708530426, -0.040912188589572906, 0.029991665855050087, 0.004023644607514143, 0.16103079915046692, -0.21823477745056152, 0.3443233072757721, -0.17310069501399994, 0.060742251574993134, -0.010257836431264877, -0.11133892834186554, 0.1235438734292984, -0.053806111216545105, 0.10963256657123566, 0.12480859458446503, -0.02084246464073658, 0.08309179544448853, 0.01798262447118759, 0.08753195405006409, 0.020627662539482117, 0.12404270470142365, 0.03484903648495674, 0.18849347531795502, 0.00474862614646554, -0.03356960043311119, 0.0490703247487545, 0.16510458290576935, -0.0745314285159111, 0.024044057354331017, -0.027572914958000183, 0.1161535233259201, -0.022774962708353996, 0.03703301027417183, -0.08161725848913193, 0.08778075873851776, 0.027480753138661385, -0.011559974402189255, -0.16743578016757965, 0.04434742033481598, 0.12074025720357895, 0.11353901028633118, 0.03162956237792969, 0.13719269633293152, 0.0587906576693058, -0.07908499985933304, -0.2605035901069641, 0.11021767556667328, -0.013703600503504276, -0.01443847082555294, -0.1634911596775055, 0.046340133994817734, -0.02340446412563324, -0.09584867209196091, -0.114826500415802, -0.01406905148178339, -0.002850116463378072, -0.1147073283791542, 0.0004605578724294901, -0.0347132682800293, 0.028835417702794075, 0.12188838422298431, -0.11725475639104843, 0.04106813296675682, -0.0026431819424033165, 0.0441180020570755, -0.16702714562416077, -0.11010517179965973, 0.012143437750637531, 0.13162723183631897, -0.1024872288107872, -0.06123855337500572, 0.23379765450954437, -0.013360689394176006, -0.15684910118579865, -0.025999870151281357, -0.016999756917357445, 0.070972740650177, -0.08382709324359894, 0.0795854777097702, -0.07762087136507034, -0.09937688708305359, -0.08995789289474487, -0.18127691745758057, 0.07516220957040787, 0.1006317287683487, 0.11645586043596268, -0.0611003041267395, 0.11085943132638931, -0.14763744175434113, -0.034940317273139954, 0.05961974710226059, 0.13874943554401398, -0.010827284306287766, -0.0914483517408371, 0.008736878633499146, -2.5761293714160415e-32, 0.025882704183459282, -0.07681263238191605, 0.02359546348452568, 0.1609225571155548, -0.2312394082546234, 0.1759699583053589, -0.13001547753810883, 0.08676972985267639, -0.07051938772201538, -0.17559579014778137, -0.04280604422092438, 0.017025720328092575, 0.01639304868876934, -0.020148083567619324, 0.058261603116989136, -0.04507547244429588, -0.20683233439922333, 0.03700273111462593, 0.08442855626344681, 0.07019037008285522, 0.2110287994146347, 0.08663415163755417, 0.09555179625749588, 0.04524926096200943, -0.1363164484500885, 0.09710585325956345, -0.03151342272758484, -0.18992219865322113, -0.022978104650974274, -0.1297091543674469, 0.035116590559482574, 0.08352603763341904, 0.03369475528597832, 0.007280393969267607, -0.06430567055940628, -0.11452840268611908, -0.06978252530097961, -0.037652552127838135, -0.17586453258991241, -0.10733440518379211, -0.01109332125633955, 0.12490692734718323, -0.174547478556633, -0.21285423636436462, -0.013133405707776546, 0.12110365182161331, 0.054738905280828476, -0.029380546882748604, -0.023981062695384026, -0.017948094755411148, 0.11925829946994781, 0.05416885390877724, 0.004707337822765112, 0.014270446263253689, 0.07537849247455597, 0.0647268295288086, 0.08819209784269333, 0.19786131381988525, -0.15457656979560852, 0.09796816110610962, 0.023135414347052574, 0.11619481444358826, -0.0138816237449646, 0.0107284439727664, 0.07970636337995529, -0.05203621834516525, 0.2042868435382843, 0.046525757759809494, 0.050338491797447205, 0.12910950183868408, 0.15178853273391724, 0.005376696586608887, -0.06155475601553917, -0.13932344317436218, -0.16122141480445862, -0.20111961662769318, -0.060376327484846115, -0.01963195390999317, 0.18957005441188812, -0.03376979008316994, 0.03466453030705452, -0.01514217909425497, 0.07158178091049194, -0.09589646011590958, -0.08093409240245819, 0.19566838443279266, -0.03380633518099785, 0.10117144137620926, -0.20523354411125183, 0.06765944510698318, -0.003399569308385253, 0.17363034188747406, -0.05341912433505058, 0.014968856237828732, 0.018362341448664665, 0.03644222021102905, 0.016432298347353935, -0.003929349593818188, -0.006302875000983477, 0.06334983557462692, -0.05179722607135773, -0.12952908873558044, 0.069334015250206, 0.18983331322669983, 0.010807827115058899, -0.03933775797486305, 0.0503113716840744, 0.13922834396362305, 0.0024931319057941437, -0.1158742904663086, -0.0806521624326706, 0.041110944002866745, 0.11376822739839554, -0.09560850262641907, 0.0010062956716865301, 0.1603074073791504, -0.06292396783828735, 0.012140636332333088, 0.09856270998716354, 0.09235949069261551, -0.11778399348258972, -0.11043650656938553, -0.20966112613677979, -0.03747572749853134, -0.02080470696091652, 0.07565455883741379, -0.2753276526927948, -0.224405899643898, 0.12172310054302216, -0.026160115376114845, -0.023988597095012665, -0.09540028125047684, 7.505053076783952e-7, -0.24414126574993134, 0.09996876865625381, 0.1340867429971695, -0.1183953732252121, 0.009840781800448895, -0.04082442447543144, -0.24457970261573792, 0.11704861372709274, -0.0015961414901539683, 0.12079722434282303, -0.046566229313611984, -0.021802399307489395, -0.025836538523435593, -0.18400999903678894, 0.03827140852808952, 0.06289290636777878, -0.05451260134577751, -0.10421311855316162, -0.05302221700549126, 0.1287928819656372, -0.07592353969812393, 0.06637197732925415, 0.22118110954761505, -0.10769180953502655, 0.0016506017418578267, 0.08280758559703827, 0.018369900062680244, -0.010085757821798325, 0.04148527979850769, -0.027412304654717445, -0.020624926313757896, 0.18123368918895721, 0.013506174087524414, -0.027781976386904716, 0.07800944894552231, -0.14647871255874634, -0.11174534261226654, -0.17267799377441406, 0.13146822154521942, -0.017002925276756287, 0.09378054738044739, 0.0002291422861162573, -0.08925974369049072, -0.06344714015722275, 0.07822944223880768, -0.10170374810695648, -0.027438228949904442, 0.1181357204914093, -0.20380821824073792, 0.026877231895923615, 0.08806084841489792, 0.13734304904937744, 0.11680960655212402, 0.1868828535079956, -0.11092079430818558, 0.03731922432780266, 0.12421286851167679, 0.013324103318154812, 0.02234916388988495, -0.057634513825178146, -0.02108457311987877, 0.016816288232803345, -0.01947573758661747, 0.057040393352508545, 0.08142103254795074, -0.1573375016450882, -0.07680687308311462, 3.616522016731263e-35, 0.042348455637693405, 0.1365756243467331, 0.10161706060171127, -0.19141492247581482, 0.10737451165914536, 0.03527934476733208, 0.13080847263336182, 0.09889539331197739, -0.01580219157040119, -0.07285912334918976, -0.030256815254688263 ]
https://github.com/huggingface/datasets/issues/2716
Calling shuffle on IterableDataset will disable batching in case any functions were mapped
Hi :) Good catch ! Feel free to open a PR if you want to contribute, this would be very welcome ;)
When using dataset in streaming mode, if one applies `shuffle` method on the dataset and `map` method for which `batched=True` than the batching operation will not happen, instead `batched` will be set to `False` I did RCA on the dataset codebase, the problem is emerging from [this line of code](https://github.com/huggingface/datasets/blob/d25a0bf94d9f9a9aa6cabdf5b450b9c327d19729/src/datasets/iterable_dataset.py#L197) here as it is `self.ex_iterable.shuffle_data_sources(seed), function=self.function, batch_size=self.batch_size`, as one can see it is missing batched argument, which means that the iterator fallsback to default constructor value, which in this case is `False`. To remedy the problem we can change this line to `self.ex_iterable.shuffle_data_sources(seed), function=self.function, batched=self.batched, batch_size=self.batch_size`
22
Calling shuffle on IterableDataset will disable batching in case any functions were mapped When using dataset in streaming mode, if one applies `shuffle` method on the dataset and `map` method for which `batched=True` than the batching operation will not happen, instead `batched` will be set to `False` I did RCA on the dataset codebase, the problem is emerging from [this line of code](https://github.com/huggingface/datasets/blob/d25a0bf94d9f9a9aa6cabdf5b450b9c327d19729/src/datasets/iterable_dataset.py#L197) here as it is `self.ex_iterable.shuffle_data_sources(seed), function=self.function, batch_size=self.batch_size`, as one can see it is missing batched argument, which means that the iterator fallsback to default constructor value, which in this case is `False`. To remedy the problem we can change this line to `self.ex_iterable.shuffle_data_sources(seed), function=self.function, batched=self.batched, batch_size=self.batch_size` Hi :) Good catch ! Feel free to open a PR if you want to contribute, this would be very welcome ;)
[ -0.026441184803843498, 0.12878388166427612, -0.09641282260417938, -0.01338989194482565, 0.14430424571037292, -0.040911246091127396, 0.09949828684329987, -0.10810757428407669, -0.014641685411334038, 0.05863790959119797, -0.055379513651132584, -0.07036604732275009, -0.05127154290676117, 0.004137092735618353, 0.07474365830421448, 0.040043480694293976, -0.0031275134533643723, -0.09244625270366669, -0.1365300863981247, -0.06814371794462204, -0.17239469289779663, 0.014773735776543617, 0.00041205735760740936, -0.09955917298793793, 0.12191881984472275, -0.04125000163912773, -0.05616365373134613, 0.08722815662622452, -0.15825505554676056, 0.02804396115243435, -0.05776043236255646, 0.15740713477134705, -0.09976351261138916, 0.037585873156785965, 0.000005791949206468416, 0.03806762397289276, 0.1293725222349167, 0.006669929716736078, 0.007929808460175991, 0.007716018240898848, 0.04000880941748619, 0.12662538886070251, -0.0491984561085701, 0.0799943134188652, -0.1340838372707367, 0.03233181685209274, 0.06450687348842621, -0.1307360678911209, -0.00977862998843193, 0.003662473289296031, -0.027566539123654366, 0.048197075724601746, -0.06223702430725098, -0.16652719676494598, 0.14508742094039917, 0.17002499103546143, 0.04596636816859245, 0.042671579867601395, -0.16714932024478912, -0.04851800948381424, -0.042688556015491486, -0.04393981769680977, -0.0461026132106781, 0.05616147816181183, 0.11295643448829651, -0.07287082821130753, -0.1524728238582611, -0.2148178368806839, 0.0044205645099282265, 0.14788442850112915, -0.03376810625195503, -0.09469831734895706, -0.0001450433483114466, 0.08050436526536942, -0.09582791477441788, -0.0735807865858078, 0.01429305225610733, 0.01363001111894846, 0.06552498042583466, -0.04766895994544029, -0.12477093935012817, 0.05364123731851578, 0.07318234443664551, 0.019722195342183113, -0.01412176713347435, 0.2460380345582962, 0.013219352811574936, 0.10412262380123138, -0.09602286666631699, -0.029814263805747032, 0.2175070196390152, -0.1678907722234726, -0.06055889278650284, -0.015320070087909698, -0.06639577448368073, 0.043254781514406204, -0.03978050500154495, -0.15576909482479095, 0.032201770693063736, -0.06696804612874985, 0.005865491461008787, -0.02083069272339344, 0.04484408348798752, 0.0038577637169510126, 0.15838435292243958, -0.1547115445137024, -0.08077184110879898, 0.05919208005070686, 0.05865352600812912, 0.11573003232479095, 0.09877592325210571, 0.10973796248435974, 0.11082609742879868, 0.05629168078303337, -0.0003262247482780367, 0.08891581743955612, 0.09520411491394043, 0.2336161583662033, 0.1329176127910614, -0.06654538959264755, 0.018676960840821266, -0.12396914511919022, -0.11511749774217606, 0.027708766981959343, 0.020440710708498955, -0.04095199331641197, -0.07015669345855713, 0.0585995577275753, 0.09683845937252045, 0.02395479381084442, -0.10034993290901184, -0.12121418863534927, -0.0025632295291870832, 0.06779097020626068, 0.1649026870727539, 0.013228092342615128, 0.03319443762302399, 0.0332634299993515, -0.1334364265203476, 0.0195543821901083, 0.021246755495667458, -0.157677561044693, 0.14037799835205078, -0.05301498621702194, -0.02294846810400486, 0.02868271991610527, 0.14001047611236572, 0.11332792043685913, -0.017634140327572823, 0.0531083419919014, -0.15957432985305786, 0.25984275341033936, 0.011644801124930382, 0.03310086950659752, -0.08842793107032776, 0.17923083901405334, -0.15567556023597717, 0.16020171344280243, -0.16635222733020782, -0.11835762858390808, 0.12046921253204346, -0.08864609897136688, -0.0599064975976944, -0.16901522874832153, 0.10503987222909927, 0.12880964577198029, 0.0629592314362526, 0.053311821073293686, -0.013524899259209633, -0.16174057126045227, 0.21803288161754608, 0.03625132516026497, -0.08670615404844284, 0.03995460644364357, -0.14398418366909027, 0.0706368163228035, -0.03929295390844345, 0.12299618124961853, -0.18807156383991241, -0.06197725236415863, -0.020899584516882896, 0.0724819228053093, 0.02130824886262417, -0.12689906358718872, 0.21589744091033936, -0.09184542298316956, 0.178267240524292, 0.11222285777330399, -0.16015954315662384, -0.002726219827309251, 0.057554930448532104, -0.023444371297955513, 0.002076615346595645, -0.018146827816963196, -0.03951502591371536, 0.1694299429655075, 0.05023416504263878, -0.12308412790298462, 0.10224932432174683, -0.08911855518817902, -0.03551621735095978, -0.021604487672448158, 0.04059764742851257, 0.0753532126545906, 0.08458612114191055, -0.17119628190994263, -0.17630843818187714, -0.048778027296066284, 0.20116323232650757, -0.19256821274757385, -0.04819623380899429, 0.07766978442668915, 0.1530153900384903, 0.01222930010408163, -0.09835723787546158, -0.04402124136686325, -0.06362617760896683, 0.10756579786539078, 0.04473387449979782, 0.06643255800008774, -0.22989709675312042, -0.07760177552700043, -0.13790759444236755, 0.0023563008289784193, -0.0036084435414522886, -0.10912159085273743, 0.10390618443489075, -0.046945907175540924, 0.045382991433143616, -0.07192394882440567, 0.05066346377134323, -0.017710506916046143, 0.1026284322142601, 0.09917715936899185, -0.02279491536319256, -0.032121285796165466, -0.0361955426633358, -0.24642440676689148, -0.03188012167811394, 0.039321355521678925, -0.20134316384792328, 0.014383533969521523, -0.014208225533366203, -0.03266431763768196, 0.13163430988788605, 0.14324405789375305, -0.07971539348363876, 0.09122787415981293, 0.01664375513792038, -0.023251179605722427, 0.2545739412307739, 0.12673045694828033, -0.19034816324710846, 0.06561168283224106, -0.09490471333265305, -0.05046243220567703, 0.23798277974128723, -0.04227935150265694, -0.03271758183836937, -0.12097715586423874, 0.32738974690437317, 0.0236112792044878, 0.005331599619239569, -0.09423968195915222, 0.07459653913974762, -0.007804572116583586, 0.046184100210666656, 0.19355830550193787, 0.04098828136920929, 0.09681343287229538, 0.12584398686885834, 0.00641805911436677, 0.06935110688209534, -0.06088891625404358, -0.041369397193193436, -0.09127569198608398, -0.031237468123435974, -0.007860747165977955, 0.0644695982336998, -0.036310430616140366, -0.03689819574356079, -0.03306068480014801, 0.19593818485736847, -0.02118302881717682, 0.11592267453670502, 0.03166091442108154, -0.06009731814265251, 0.0428154319524765, -0.13460713624954224, -0.01907871477305889, -0.025497352704405785, -0.01918959617614746, -0.0512947216629982, 0.04095134139060974, -0.07311496138572693, 0.11614513397216797, 0.06740768998861313, 0.07567218691110611, -0.15739238262176514, 0.011810948140919209, -0.005946661811321974, -0.034957051277160645, 0.04944372922182083, -0.06547120213508606, 0.08201214671134949, -0.02510679140686989, 0.1333702653646469, 0.11669965833425522, -0.24469728767871857, -0.20886488258838654, 0.02353871613740921, 0.03436879813671112, 0.015197410248219967, 0.0576167069375515, -0.010751678608357906, -0.09623140841722488, -0.09670339524745941, -0.09818026423454285, 0.10047072917222977, 0.0022648926824331284, -0.06034516915678978, -0.04159240797162056, -0.13460028171539307, 0.005996763706207275, -0.017723534256219864, -0.15690501034259796, 0.08080410957336426, -0.04584770277142525, -0.10551575571298599, -0.1441350132226944, -0.01833675615489483, 0.061498478055000305, 0.03837759047746658, -0.07021037489175797, 0.11274740844964981, -0.2336062788963318, -0.12845736742019653, -0.18180117011070251, 0.066251739859581, -0.02980632148683071, -0.11400826275348663, 0.07909424602985382, -0.11855007708072662, -0.1298000067472458, 0.3031388521194458, -0.07508537918329239, 0.27675971388816833, 0.0035010974388569593, 0.02029111236333847, 0.04764416813850403, 0.014902553521096706, -0.06567732244729996, -0.0924820825457573, -0.045215461403131485, -0.06403972953557968, 0.02391216717660427, -0.06084677577018738, 0.032042358070611954, -0.08843681961297989, 0.31615281105041504, -0.0014313774881884456, -0.02957504242658615, 0.29337844252586365, -0.11238577216863632, 0.026029573753476143, 0.08654356747865677, 0.189620703458786, -0.015647416934370995, 0.056548330932855606, -0.14489434659481049, 0.06395917385816574, 0.08649692684412003, -0.09505273401737213, -0.06507396697998047, -0.002359011908993125, -0.17291711270809174, 0.03196990117430687, -0.04680449143052101, 0.09166503697633743, -0.053949665278196335, 0.19772757589817047, -0.16710308194160461, 0.026162076741456985, 0.04422115907073021, 0.08636584132909775, -0.05531443655490875, 0.09913954138755798, -0.14229515194892883, -0.17814724147319794, 0.31693974137306213, 0.03173522651195526, -0.1752578318119049, -0.018765030428767204, -0.152983158826828, 0.02745606005191803, 0.0009775346843525767, 0.11643525213003159, 0.03585076704621315, -0.020466191694140434, 0.061895951628685, 0.0775149017572403, 0.17715416848659515, -0.07420071959495544, -0.001160049345344305, 0.06363096088171005, 0.07607749104499817, 0.033102475106716156, -0.05363887920975685, 0.005461590830236673, 0.1200583428144455, 0.0736255794763565, 0.19983310997486115, -0.09728105366230011, 0.04364537447690964, 0.1378636360168457, -0.11114978790283203, -0.0894278809428215, 0.06827181577682495, -0.02615564689040184, -0.04694744944572449, -0.04909210652112961, -0.08856136351823807, 0.018950263038277626, -0.030977336689829826, 0.10442335158586502, 0.05842139199376106, -0.1432875245809555, 0.24292032420635223, 0.1373283714056015, -0.02919672057032585, 0.05414377897977829, 0.11218949407339096, -0.07141141593456268, 0.19626756012439728, 0.07950830459594727, 0.06404569000005722, 0.0045693800784647465, 0.0421987809240818, -0.15448987483978271, -0.10745550692081451, -0.05870039761066437, -0.06548793613910675, 0.03750866279006004, -0.025724956765770912, 0.06959459185600281, 0.004237321671098471, -0.030159639194607735, -0.028869865462183952, -0.12995770573616028, 0.03681425005197525, -0.10038583725690842, -0.203120157122612, -0.33313924074172974, -0.11683022230863571, 0.13726510107517242, 0.0012396527454257011, 0.1621970534324646, -0.2426689714193344, -0.03337610885500908, 0.12641195952892303, -0.10635498911142349, -0.05464735999703407, 0.025696435943245888, -0.029128240421414375, 0.02067158930003643, 0.2512094974517822, 0.07965004444122314, 0.02140839770436287, 0.10076933354139328, 0.14508259296417236, -0.04963790997862816, 0.10640955716371536, 0.012181514874100685, 0.02818339876830578, 0.10347947478294373, 0.060301754623651505, -0.05876966938376427, 0.023273685947060585, 0.1342182159423828, -0.16498760879039764, 0.08012349158525467, -0.0038450248539447784, -0.026600122451782227, -0.07076834887266159, -0.03012351505458355, 0.1305970400571823, 0.08346143364906311, -0.0004376569122541696, -0.08241480588912964, 0.08948102593421936, 0.0010682429419830441, -0.055979881435632706, -0.037302691489458084, 0.04125397279858589, -0.10876373201608658, -0.16442881524562836, 0.15373189747333527, 0.04306226223707199, -0.058722760528326035, -0.06743673980236053, 0.05226341634988785, 0.037147168070077896, 0.09783647954463959, 0.1879138946533203, 0.0861009880900383, -0.12578678131103516, 0.04730701074004173, -0.038543667644262314, 0.047356221824884415, -0.06355676800012589, 0.08875864744186401, 0.13848689198493958, -0.08595379441976547, 0.010099847801029682, -0.01430443488061428, 0.0550476498901844, -0.16171810030937195, -0.045672085136175156, 0.08347780257463455, 0.06641863286495209, 0.009805000387132168, 0.03905700892210007, -0.05714894458651543, 0.05824853107333183, 0.23208580911159515, -0.016707025468349457, -0.0033413595519959927, -0.07929309457540512, 0.14020515978336334, 0.31375306844711304, 0.05839838087558746, 0.009231536649167538, 0.09172283858060837, 0.08731362968683243, -0.05233515426516533, 0.024675704538822174, 0.10676507651805878, -0.0841861292719841, 0.06250748783349991, -0.010473042726516724, 0.09324120730161667, -0.10114800930023193, 0.0401344820857048, -0.11716363579034805, 0.06692564487457275, -0.09637510776519775, -0.0776042565703392, -0.02342529594898224, -0.028898268938064575, 0.1123560443520546, -0.04758427292108536, 0.06546510010957718, 0.043401122093200684, -0.08384908735752106, -0.06376472115516663, -2.8920411272108296e-32, -0.10603292286396027, 0.012123296037316322, -0.024682721123099327, 0.0027349647134542465, 0.11936771124601364, 0.0663236454129219, 0.08267081528902054, -0.005262257531285286, -0.020853687077760696, -0.04330143705010414, -0.09463382512331009, 0.14474961161613464, 0.13249066472053528, -0.05519897863268852, -0.13269680738449097, -0.0936233252286911, -0.0503678061068058, -0.13828259706497192, 0.0029545954894274473, 0.07298309355974197, 0.07355023920536041, 0.05108175054192543, -0.03766251355409622, 0.10145600140094757, -0.08967006206512451, 0.04978543519973755, -0.13376930356025696, -0.12814724445343018, -0.178059920668602, -0.15415853261947632, -0.10729864984750748, 0.04742314666509628, -0.11223433911800385, -0.13526366651058197, -0.23460786044597626, 0.170843243598938, -0.06778736412525177, -0.08229876309633255, -0.05023907870054245, 0.06557510048151016, 0.010757059790194035, 0.04220329970121384, 0.15058057010173798, 0.08342697471380234, -0.0462598092854023, -0.08929705619812012, -0.04730802774429321, -0.03212699666619301, -0.007919790223240852, -0.04805880784988403, 0.06033491715788841, 0.12653985619544983, 0.04533296823501587, -0.024493707343935966, -0.10486363619565964, -0.22039352357387543, 0.014679080806672573, 0.03648725152015686, -0.1721004992723465, 0.2533266246318817, 0.061755143105983734, 0.023182354867458344, -0.0302028376609087, 0.0189864169806242, 0.08080509305000305, -0.12191260606050491, 0.22622978687286377, 0.09138265997171402, 0.09143081307411194, -0.08254903554916382, -0.09169379621744156, 0.005670137237757444, -0.1278846710920334, 0.062136128544807434, -0.02464546449482441, -0.006392940878868103, -0.07264464348554611, -0.012980036437511444, -0.2713351547718048, -0.02253050170838833, 0.09232215583324432, -0.023463934659957886, 0.017910832539200783, -0.11316509544849396, 0.0470808669924736, -0.1300371289253235, -0.048832040280103683, 0.18122264742851257, -0.016342945396900177, -0.08352744579315186, -0.05783190205693245, 0.18993724882602692, -0.10024682432413101, -0.14629508554935455, -0.14705011248588562, 0.07305995374917984, -0.0697227418422699, 0.010943418368697166, 0.021184466779232025, -0.06109149381518364, -0.15128839015960693, -0.016318442299962044, 0.1941460371017456, 0.09976918250322342, -0.03701112046837807, 0.02312093786895275, 0.22677648067474365, 0.02042233943939209, -0.14260846376419067, -0.022536631673574448, -0.08704092353582382, 0.1014980897307396, 0.1586134284734726, -0.06486304104328156, 0.0998704805970192, -0.0626252219080925, 0.0797133818268776, -0.03214464336633682, 0.1510036140680313, 0.23975488543510437, -0.1508486121892929, -0.06907650083303452, -0.13945052027702332, 0.010817646980285645, 0.05093282833695412, 0.11003188788890839, -0.10969775915145874, -0.06652744114398956, 0.039374373853206635, -0.15652315318584442, -0.07532777637243271, -0.14647452533245087, 7.762360496599285e-7, 0.028331201523542404, 0.03547409176826477, -0.0218950305134058, -0.015895619988441467, 0.021899234503507614, -0.004173820372670889, -0.05824606865644455, -0.027265004813671112, -0.09701583534479141, 0.1535540223121643, 0.16226311028003693, 0.012731239199638367, 0.1106419488787651, -0.07040850073099136, 0.1488468497991562, -0.05030403286218643, -0.12685203552246094, 0.22223356366157532, -0.05344165489077568, -0.19123958051204681, -0.14025235176086426, 0.10364887118339539, 0.03404756262898445, -0.03477957099676132, 0.03504319116473198, -0.032759372144937515, -0.08906518667936325, 0.04906357824802399, 0.12843221426010132, -0.050630200654268265, -0.17147688567638397, 0.03167985379695892, 0.09685960412025452, 0.03881072252988815, -0.12309658527374268, -0.01890980452299118, 0.016298945993185043, -0.015283707529306412, -0.04120214283466339, -0.09970017522573471, 0.11231114715337753, 0.0690564215183258, -0.03585755079984665, -0.06345833092927933, 0.09903226047754288, 0.11787600815296173, -0.03873898833990097, 0.11731686443090439, -0.07100466638803482, 0.08087025582790375, 0.13815882802009583, 0.19826622307300568, -0.03868090733885765, 0.14612050354480743, -0.007788504473865032, 0.019725898280739784, -0.15591582655906677, -0.11666213721036911, 0.11910383403301239, -0.25206413865089417, -0.03719405457377434, -0.11187230050563812, 0.005304218269884586, -0.054568320512771606, -0.0016294812085106969, -0.017464537173509598, -0.030436530709266663, 2.218377786014955e-34, -0.011345836333930492, 0.12703260779380798, 0.030794499441981316, -0.30684447288513184, 0.11836744844913483, -0.13704240322113037, 0.12214650213718414, -0.05911904573440552, -0.14488980174064636, -0.09757990390062332, -0.12209978699684143 ]
https://github.com/huggingface/datasets/issues/2714
add more precise information for size
We already have this information in the dataset_infos.json files of each dataset. Maybe we can parse these files in the backend to return their content with the endpoint at huggingface.co/api/datasets For now if you want to access this info you have to load the json for each dataset. For example: - for a dataset on github like `squad` - https://raw.githubusercontent.com/huggingface/datasets/master/datasets/squad/dataset_infos.json - for a community dataset on the hub like `lhoestq/squad`: https://huggingface.co/datasets/lhoestq/squad/resolve/main/dataset_infos.json
For the import into ELG, we would like a more precise description of the size of the dataset, instead of the current size categories. The size can be expressed in bytes, or any other preferred size unit. As suggested in the slack channel, perhaps this could be computed with a regex for existing datasets.
71
add more precise information for size For the import into ELG, we would like a more precise description of the size of the dataset, instead of the current size categories. The size can be expressed in bytes, or any other preferred size unit. As suggested in the slack channel, perhaps this could be computed with a regex for existing datasets. We already have this information in the dataset_infos.json files of each dataset. Maybe we can parse these files in the backend to return their content with the endpoint at huggingface.co/api/datasets For now if you want to access this info you have to load the json for each dataset. For example: - for a dataset on github like `squad` - https://raw.githubusercontent.com/huggingface/datasets/master/datasets/squad/dataset_infos.json - for a community dataset on the hub like `lhoestq/squad`: https://huggingface.co/datasets/lhoestq/squad/resolve/main/dataset_infos.json
[ 0.05796080827713013, -0.03974960744380951, -0.013531946577131748, 0.06841979920864105, 0.1707020401954651, -0.03222844377160072, -0.060562703758478165, 0.03265445679426193, -0.08618530631065369, 0.21497511863708496, 0.04885903000831604, 0.007338501047343016, -0.17474029958248138, 0.19249843060970306, 0.16221103072166443, -0.12832993268966675, -0.09870949387550354, -0.020041372627019882, 0.03156798705458641, 0.05525985732674599, -0.01493766624480486, 0.08769099414348602, 0.18599973618984222, 0.008722527883946896, 0.13839371502399445, 0.010966845788061619, -0.12010809779167175, 0.12167868763208389, -0.02655337192118168, -0.20498782396316528, -0.020830580964684486, -0.058130960911512375, 0.1257547289133072, -0.014857443980872631, 0.000005061094725533621, 0.018221167847514153, -0.08011174201965332, -0.054020609706640244, -0.02755129709839821, 0.00020724080968648195, 0.12716151773929596, -0.1573084443807602, 0.12451701611280441, -0.012774311006069183, 0.15980441868305206, 0.04293709993362427, 0.0038478632923215628, -0.07897882908582687, -0.01103769987821579, 0.02216259203851223, 0.09390225261449814, 0.07142414152622223, 0.05349186435341835, -0.1465623378753662, -0.02584761753678322, 0.2401341199874878, 0.03813055157661438, 0.16993483901023865, 0.07723352313041687, 0.13214066624641418, -0.20921050012111664, 0.14448483288288116, 0.13839009404182434, -0.07065074890851974, 0.25653916597366333, 0.08658558130264282, -0.25617077946662903, -0.060806483030319214, 0.14936824142932892, 0.132694810628891, 0.09056561440229416, -0.11988860368728638, -0.1082257479429245, -0.05193956196308136, 0.12620596587657928, -0.12419340014457703, -0.2620750069618225, 0.052168939262628555, -0.04073626175522804, -0.09052155166864395, -0.11602337658405304, 0.06375009566545486, -0.05011384189128876, -0.07687237113714218, -0.14676040410995483, -0.01687357947230339, -0.11443428695201874, 0.11588020622730255, 0.02505788579583168, -0.4156351685523987, -0.1665080338716507, -0.02237246185541153, -0.09976783394813538, 0.14662835001945496, 0.05319560691714287, -0.0986773818731308, 0.09991627931594849, -0.13051554560661316, 0.13131681084632874, 0.030753804370760918, 0.03556337580084801, -0.07531645148992538, -0.05514354258775711, 0.00276403920724988, 0.11125980317592621, 0.07515431940555573, 0.11984826624393463, -0.1467321515083313, -0.028155721724033356, -0.023686204105615616, 0.26959800720214844, -0.002716974588111043, -0.2266169786453247, -0.13905230164527893, -0.0687834769487381, 0.1323900669813156, -0.1250748634338379, 0.048158518970012665, 0.02874048985540867, 0.028733134269714355, 0.2737202048301697, 0.12451570481061935, -0.16451524198055267, 0.010774676688015461, 0.11034136265516281, -0.012069951742887497, -0.0807868167757988, -0.0654660314321518, 0.11192657798528671, -0.11673928797245026, -0.015745414420962334, 0.031306296586990356, 0.14998887479305267, -0.046148791909217834, 0.16540957987308502, 0.020956818014383316, 0.24726060032844543, -0.050723858177661896, 0.2666338384151459, -0.11591579020023346, -0.08606254309415817, 0.07261690497398376, 0.0020898841321468353, -0.023511793464422226, 0.026434656232595444, -0.13485608994960785, -0.04262740910053253, 0.021691439673304558, -0.12564943730831146, -0.03161415085196495, 0.0578107126057148, 0.13190697133541107, -0.2863221764564514, 0.09804654866456985, -0.07658229023218155, -0.13846230506896973, -0.10985258966684341, -0.01915588043630123, -0.10280721634626389, 0.03214530646800995, 0.2847335934638977, 0.03284061327576637, -0.043687961995601654, -0.0750097930431366, 0.10325822234153748, 0.09446293115615845, -0.04580102115869522, -0.09939195215702057, 0.1010485291481018, -0.08204425871372223, -0.0935375839471817, -0.002795961918309331, 0.021741176024079323, -0.06344953924417496, 0.009138859808444977, 0.2860564589500427, 0.12610670924186707, -0.11666623502969742, 0.017775671556591988, 0.05021510645747185, 0.07602400332689285, -0.1657802164554596, -0.046614423394203186, -0.02106817252933979, 0.08543268591165543, 0.11139848828315735, -0.042228326201438904, 0.2328605204820633, -0.029282737523317337, -0.06874217092990875, -0.12831823527812958, -0.10626398026943207, -0.01010316051542759, 0.0011783691588789225, 0.06807072460651398, -0.057135336101055145, 0.04931824281811714, -0.014554694294929504, 0.08564967662096024, 0.06184753403067589, 0.10845654457807541, -0.07383189350366592, -0.04218537360429764, -0.16672436892986298, 0.07651957124471664, -0.0714653804898262, -0.20569054782390594, -0.07792407274246216, 0.12570849061012268, -0.06115751340985298, -0.07234224677085876, 0.029615018516778946, -0.06380274146795273, -0.12301363050937653, -0.04673337563872337, -0.10117195546627045, 0.031660377979278564, -0.1306292563676834, 0.01451245415955782, 0.06909056007862091, 0.0911702811717987, -0.03871478885412216, 0.007576441392302513, -0.006309350021183491, -0.032901931554079056, 0.03108375519514084, 0.18520581722259521, -0.14165759086608887, 0.023014729842543602, 0.15224556624889374, -0.07764869928359985, 0.027455642819404602, -0.0007944566896185279, -0.035931702703237534, -0.20880620181560516, 0.10818152129650116, 0.15782077610492706, 0.12497320771217346, 0.10754208266735077, 0.11505811661481857, 0.1489325910806656, -0.06276090443134308, -0.198477640748024, 0.18112102150917053, -0.10505688190460205, -0.006525421515107155, 0.05272408202290535, 0.10828448832035065, 0.0014879738446325064, -0.04461614042520523, 0.06073720380663872, -0.06337204575538635, 0.07167848944664001, 0.0024369789753109217, 0.01342235878109932, -0.06137309968471527, 0.04399658739566803, 0.06305631995201111, 0.006456483621150255, -0.0759224072098732, 0.13927939534187317, 0.006037035025656223, -0.14357244968414307, 0.3047776222229004, 0.08500514179468155, -0.1832650750875473, 0.0022950295824557543, 0.09032521396875381, -0.0035427340772002935, 0.17006812989711761, 0.10371457040309906, -0.0009420583373866975, 0.03327944874763489, 0.007329622283577919, -0.007432316895574331, -0.25390252470970154, -0.0682361051440239, 0.04187345132231712, -0.007011190056800842, -0.013821211643517017, -0.06726067513227463, -0.017601987347006798, -0.027862614020705223, -0.012866610661149025, 0.028703272342681885, 0.02269238606095314, 0.06942306458950043, -0.08091521263122559, -0.19330435991287231, -0.02049168199300766, -0.22830407321453094, -0.04874603822827339, 0.008876319043338299, -0.2751058340072632, 0.0040015787817537785, -0.2291644811630249, -0.03908446803689003, 0.09039538353681564, 0.051533572375774384, 0.16385874152183533, 0.046050429344177246, 0.055364686995744705, 0.12526996433734894, -0.08748668432235718, -0.20787453651428223, -0.010568833909928799, 0.18598692119121552, 0.03183440491557121, -0.026302680373191833, -0.12163326889276505, 0.001773691619746387, -0.014270281419157982, -0.06190585717558861, -0.029065541923046112, 0.12866154313087463, 0.03684798255562782, 0.04855059087276459, 0.06391814351081848, 0.006082598585635424, 0.08273591846227646, 0.0038179035764187574, -0.01618008315563202, -0.06251724064350128, 0.23754513263702393, -0.027885565534234047, 0.20179398357868195, -0.15824536979198456, -0.12363354116678238, 0.11629468947649002, 0.038585107773542404, 0.1651187241077423, 0.04476993903517723, 0.003607832593843341, -0.08216913789510727, -0.016211481764912605, 0.06363615393638611, -0.13470950722694397, -0.18351693451404572, 0.09518058598041534, -0.21491849422454834, 0.09353664517402649, -0.05439447611570358, -0.0035284750629216433, 0.04405023157596588, -0.036375127732753754, -0.050324492156505585, -0.08089815080165863, -0.178701251745224, -0.15144993364810944, 0.03238730505108833, 0.09895101189613342, 0.007353584747761488, -0.04410727694630623, -0.05455378070473671, 0.06061309948563576, -0.06312920153141022, -0.21446700394153595, 0.2142021507024765, 0.0035594229120761156, -0.0023315453436225653, 0.03386745601892471, 0.16292347013950348, -0.04599668085575104, 0.04209110885858536, -0.06147920340299606, -0.14350509643554688, -0.014157380908727646, 0.013889693655073643, -0.13491101562976837, 0.025172989815473557, 0.09115568548440933, 0.047736477106809616, 0.07303762435913086, 0.1932566612958908, -0.09164822101593018, 0.1313595175743103, 0.22387076914310455, -0.11800595372915268, 0.08854463696479797, 0.0624241828918457, 0.11859011650085449, -0.09045971184968948, -0.06027528643608093, -0.19979412853717804, 0.03154471516609192, 0.006144864950329065, -0.04427896812558174, -0.3087686002254486, 0.022256838157773018, 0.021173151209950447, 0.23717409372329712, -0.12935981154441833, -0.13013194501399994, -0.014173020608723164, 0.06889835000038147, 0.010992142371833324, -0.028930483385920525, 0.03327973559498787, -0.036810167133808136, 0.18452566862106323, 0.12050704658031464, -0.03788837790489197, -0.07694892585277557, -0.17067311704158783, -0.07891625910997391, 0.004292790312319994, -0.2510612905025482, 0.03337254747748375, 0.15628856420516968, -0.06102747097611427, -0.025726551190018654, 0.0158222783356905, 0.011405279859900475, -0.018508588895201683, 0.06426089257001877, -0.02026647888123989, -0.08019893616437912, -0.018387196585536003, 0.05855218321084976, -0.008523526601493359, -0.12172114849090576, -0.0962827205657959, 0.07131221890449524, 0.08895609527826309, 0.18886682391166687, -0.0430707223713398, -0.08992378413677216, 0.02520681917667389, 0.14951279759407043, 0.2536107897758484, 0.048456475138664246, 0.21776370704174042, -0.15273967385292053, -0.008767363615334034, 0.07557522505521774, -0.009781721979379654, 0.1780470609664917, -0.12687988579273224, -0.25403881072998047, 0.052306246012449265, -0.10827949643135071, 0.06380406022071838, 0.23786769807338715, 0.0703209787607193, 0.09719875454902649, 0.04625113308429718, 0.17376761138439178, -0.07202461361885071, 0.0535186305642128, -0.04456552490592003, -0.032678864896297455, -0.07263622432947159, -0.07424996048212051, -0.013087061233818531, -0.07949191331863403, 0.033979516476392746, 0.07908853888511658, -0.01991535723209381, -0.05074772238731384, 0.02625488117337227, -0.0351908840239048, -0.039183344691991806, 0.0028859467711299658, 0.04504842683672905, -0.13444729149341583, -0.0428779199719429, 0.3319360017776489, -0.27772894501686096, 0.06913678348064423, 0.0998726636171341, 0.1172591894865036, 0.1485598236322403, 0.2272394448518753, -0.03605053201317787, 0.14864890277385712, -0.10975316166877747, 0.17208485305309296, -0.12810605764389038, -0.012008929625153542, -0.06345965713262558, 0.3358173072338104, -0.061269327998161316, -0.24282540380954742, -0.09705764055252075, -0.06597166508436203, 0.015624381601810455, 0.017332475632429123, 0.04910196736454964, -0.20316705107688904, -0.037817150354385376, -0.18292586505413055, -0.31565871834754944, -0.05235307663679123, -0.038958992809057236, -0.001424633082933724, 0.011896760202944279, -0.06928219646215439, -0.032633181661367416, -0.03766553848981857, -0.01202255766838789, 0.09882749617099762, 0.06279348582029343, 0.1371755450963974, -0.23869381844997406, -0.017034603282809258, -0.07689084857702255, 0.04001491144299507, -0.08888176828622818, 0.1393388956785202, -0.016185607761144638, -0.08080049604177475, 0.19996140897274017, 0.014412499964237213, -0.08870039880275726, 0.016419650986790657, -0.15591223537921906, -0.11431446671485901, 0.03841826692223549, -0.01912158541381359, 0.06304612755775452, -0.03688750043511391, -0.0876399427652359, 0.1305256485939026, 0.11875294148921967, -0.0680844634771347, 0.13973185420036316, -0.0605437196791172, -0.16030758619308472, -0.16844061017036438, 0.004081385675817728, -0.06425116211175919, -0.00459926575422287, 0.016724517568945885, 0.005460106302052736, 0.04780043661594391, 0.15747609734535217, 0.05172283202409744, -0.03575783967971802, 0.011785471811890602, -0.02032005973160267, -0.11067062616348267, -0.2814469039440155, -0.20482458174228668, 0.07207394391298294, -0.10050496459007263, 0.004959325771778822, 0.0333658866584301, -0.15419436991214752, -0.033979810774326324, -0.022869987413287163, 0.18507824838161469, 0.06215531751513481, -0.001681721885688603, -0.058934587985277176, 0.1811029314994812, -2.4432892527551103e-32, 0.11082612723112106, 0.005907001439481974, -0.03269074857234955, -0.0124854426831007, -0.06601348519325256, 0.10176385939121246, 0.09927021712064743, -0.11043472588062286, -0.07336031645536423, -0.08218145370483398, -0.08058822154998779, -0.05162172019481659, 0.03313343971967697, -0.05486396700143814, 0.12419039011001587, 0.059363603591918945, 0.05031045153737068, -0.06454393267631531, -0.15338215231895447, 0.27235233783721924, 0.10475800186395645, -0.13993985950946808, 0.233515202999115, -0.008788303472101688, -0.06064100190997124, 0.20349106192588806, -0.19748540222644806, 0.15987645089626312, 0.10722903162240982, 0.14148911833763123, 0.0923410952091217, 0.13731198012828827, -0.07906775176525116, 0.027091918513178825, 0.0867970734834671, -0.10474643111228943, -0.11885537952184677, -0.20564968883991241, -0.013695676811039448, 0.016973022371530533, 0.13073047995567322, -0.12256836146116257, -0.03642527014017105, -0.11068693548440933, 0.23277713358402252, -0.11236095428466797, -0.058576565235853195, 0.017679991200566292, 0.0561906099319458, -0.043838080018758774, 0.26255562901496887, 0.01449724193662405, 0.0727664902806282, 0.2111918032169342, 0.19663280248641968, 0.037822578102350235, 0.0672077089548111, 0.11225336790084839, 0.08469397574663162, -0.025447193533182144, 0.12131448090076447, -0.056620847433805466, 0.11154163628816605, 0.09902355819940567, 0.03255641832947731, 0.15116575360298157, 0.04976358264684677, -0.03442777693271637, 0.035773199051618576, 0.12119055539369583, 0.06620185822248459, 0.0679854303598404, 0.11010684818029404, -0.05957728624343872, -0.03498351573944092, 0.18300527334213257, -0.058864060789346695, -0.05579325556755066, 0.09833202511072159, 0.07286960631608963, -0.12504896521568298, 0.006428648252040148, -0.006153294816613197, 0.011221114546060562, 0.015450943261384964, -0.0361001193523407, 0.008283485658466816, -0.12536108493804932, -0.0444880872964859, -0.09837301820516586, -0.30248457193374634, 0.05672838166356087, -0.07982531934976578, -0.01069661695510149, -0.060789044946432114, 0.09629760682582855, 0.00486765056848526, 0.015822725370526314, -0.04369274154305458, -0.08778059482574463, 0.09204479306936264, -0.19991402328014374, 0.14415159821510315, 0.09262863546609879, 0.06608404964208603, 0.00679967412725091, 0.20357899367809296, 0.12677307426929474, -0.21340712904930115, 0.0686783418059349, -0.05143336206674576, -0.1216607540845871, 0.08918392658233643, -0.11127831786870956, -0.0017991759814321995, 0.03632121905684471, -0.05059719458222389, -0.17904947698116302, 0.08566155284643173, 0.008356141857802868, 0.02928258292376995, 0.020562592893838882, 0.0036884627770632505, 0.10816577821969986, -0.12658706307411194, -0.0566057413816452, -0.08050792664289474, -0.038905102759599686, 0.08224040269851685, 0.03415103629231453, -0.11793584376573563, -0.04822073131799698, 7.050666681607254e-7, -0.058211252093315125, 0.00042822881368920207, 0.102341428399086, -0.026949428021907806, -0.022035181522369385, 0.1129782497882843, 0.09511441737413406, 0.04370603337883949, -0.13634122908115387, -0.08677699416875839, -0.003461019601672888, -0.01464744284749031, -0.07953662425279617, -0.10517088323831558, -0.11526451259851456, -0.05039404332637787, -0.1227889358997345, -0.00022142038505990058, -0.271517813205719, 0.07107456773519516, 0.06319867074489594, 0.18997623026371002, 0.1722203493118286, 0.030981216579675674, 0.038423389196395874, -0.14755624532699585, -0.19670531153678894, -0.13554643094539642, 0.07400739192962646, 0.030276630073785782, 0.029554640874266624, -0.05752868577837944, -0.13926973938941956, 0.08569096773862839, -0.19627238810062408, -0.10256314277648926, -0.14125986397266388, -0.05295879393815994, -0.1834152191877365, 0.3224093019962311, -0.03837857395410538, 0.05553627014160156, -0.028719505295157433, -0.2358066737651825, 0.09482409060001373, 0.08009930700063705, -0.21591219305992126, -0.0038479859940707684, 0.02025061473250389, -0.13443100452423096, -0.01711324043571949, -0.1528049111366272, -0.04253719002008438, 0.12357954680919647, 0.027649275958538055, 0.0659654289484024, 0.14585134387016296, -0.1081833764910698, 0.052122488617897034, -0.05414578691124916, 0.012983833439648151, -0.07090931385755539, -0.07701271772384644, 0.28688347339630127, -0.0012965273344889283, -0.10767056047916412, 0.2163994312286377, 2.2829852055058037e-34, 0.13558003306388855, -0.02764284797012806, 0.009398126043379307, -0.08921373635530472, 0.057326387614011765, -0.05887019261717796, 0.01947874017059803, 0.08166977018117905, 0.0383111946284771, -0.12744881212711334, -0.24961410462856293 ]
https://github.com/huggingface/datasets/issues/2709
Missing documentation for wnut_17 (ner_tags)
Hi @maxpel, thanks for reporting this issue. Indeed, the documentation in the dataset card is not complete. I’m opening a Pull Request to fix it. As the paper explains, there are 6 entity types and we have ordered them alphabetically: `corporation`, `creative-work`, `group`, `location`, `person` and `product`. Each of these entity types has 2 possible IOB2 format tags: - `B-`: to indicate that the token is the beginning of an entity name, and the - `I-`: to indicate that the token is inside an entity name. Additionally, there is the standalone IOB2 tag - `O`: that indicates that the token belongs to no named entity. In total there are 13 possible tags, which correspond to the following integer numbers: 0. `O` 1. `B-corporation` 2. `I-corporation` 3. `B-creative-work` 4. `I-creative-work` 5. `B-group` 6. `I-group` 7. `B-location` 8. `I-location` 9. `B-person` 10. `I-person` 11. `B-product` 12. `I-product`
On the info page of the wnut_17 data set (https://huggingface.co/datasets/wnut_17), the model output of ner-tags is only documented for these 5 cases: `ner_tags: a list of classification labels, with possible values including O (0), B-corporation (1), I-corporation (2), B-creative-work (3), I-creative-work (4).` I trained a model with the data and it gives me 13 classes: ``` "id2label": { "0": 0, "1": 1, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8, "9": 9, "10": 10, "11": 11, "12": 12 } "label2id": { "0": 0, "1": 1, "10": 10, "11": 11, "12": 12, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8, "9": 9 } ``` The paper (https://www.aclweb.org/anthology/W17-4418.pdf) explains those 6 categories, but the ordering does not match: ``` 1. person 2. location (including GPE, facility) 3. corporation 4. product (tangible goods, or well-defined services) 5. creative-work (song, movie, book and so on) 6. group (subsuming music band, sports team, and non-corporate organisations) ``` I would be very helpful for me, if somebody could clarify the model ouputs and explain the "B-" and "I-" prefixes to me. Really great work with that and the other packages, I couldn't believe that training the model with that data was basically a one-liner!
145
Missing documentation for wnut_17 (ner_tags) On the info page of the wnut_17 data set (https://huggingface.co/datasets/wnut_17), the model output of ner-tags is only documented for these 5 cases: `ner_tags: a list of classification labels, with possible values including O (0), B-corporation (1), I-corporation (2), B-creative-work (3), I-creative-work (4).` I trained a model with the data and it gives me 13 classes: ``` "id2label": { "0": 0, "1": 1, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8, "9": 9, "10": 10, "11": 11, "12": 12 } "label2id": { "0": 0, "1": 1, "10": 10, "11": 11, "12": 12, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8, "9": 9 } ``` The paper (https://www.aclweb.org/anthology/W17-4418.pdf) explains those 6 categories, but the ordering does not match: ``` 1. person 2. location (including GPE, facility) 3. corporation 4. product (tangible goods, or well-defined services) 5. creative-work (song, movie, book and so on) 6. group (subsuming music band, sports team, and non-corporate organisations) ``` I would be very helpful for me, if somebody could clarify the model ouputs and explain the "B-" and "I-" prefixes to me. Really great work with that and the other packages, I couldn't believe that training the model with that data was basically a one-liner! Hi @maxpel, thanks for reporting this issue. Indeed, the documentation in the dataset card is not complete. I’m opening a Pull Request to fix it. As the paper explains, there are 6 entity types and we have ordered them alphabetically: `corporation`, `creative-work`, `group`, `location`, `person` and `product`. Each of these entity types has 2 possible IOB2 format tags: - `B-`: to indicate that the token is the beginning of an entity name, and the - `I-`: to indicate that the token is inside an entity name. Additionally, there is the standalone IOB2 tag - `O`: that indicates that the token belongs to no named entity. In total there are 13 possible tags, which correspond to the following integer numbers: 0. `O` 1. `B-corporation` 2. `I-corporation` 3. `B-creative-work` 4. `I-creative-work` 5. `B-group` 6. `I-group` 7. `B-location` 8. `I-location` 9. `B-person` 10. `I-person` 11. `B-product` 12. `I-product`
[ 0.02143808640539646, 0.0007614882779307663, -0.04328674077987671, 0.13692127168178558, -0.033641502261161804, 0.021242575719952583, 0.03421306982636452, 0.057659395039081573, -0.014728403650224209, -0.032624028623104095, 0.08507159352302551, 0.005262316670268774, 0.06349692493677139, 0.11923582851886749, 0.1038370430469513, 0.01740424521267414, -0.07316546887159348, 0.14617368578910828, 0.08372153341770172, 0.00489790877327323, -0.09752913564443588, 0.1737503707408905, -0.06424394994974136, 0.041100990027189255, -0.03984418511390686, 0.030862603336572647, -0.07229433208703995, -0.04317980632185936, -0.11735730618238449, -0.2438308447599411, 0.2598620653152466, 0.20790062844753265, 0.07262542843818665, 0.024378255009651184, 0.000006388856945704902, -0.08256262540817261, -0.049839891493320465, 0.08212804794311523, -0.03025270439684391, 0.05784566327929497, 0.04793153703212738, -0.14094561338424683, 0.02911197394132614, -0.045276910066604614, -0.006669755093753338, -0.039681024849414825, 0.06961754709482193, 0.26170778274536133, 0.018018975853919983, -0.005788643844425678, 0.0841887965798378, -0.058420270681381226, 0.05064769089221954, -0.05678470432758331, 0.12378732860088348, -0.033336106687784195, -0.02911103330552578, 0.07219024747610092, 0.04360844939947128, 0.16278532147407532, 0.06008095666766167, 0.0652923732995987, 0.07105514407157898, 0.039593663066625595, 0.022805476561188698, 0.04011048004031181, -0.006352399941533804, -0.18980231881141663, 0.02493123523890972, -0.03174750879406929, 0.15623031556606293, 0.21641923487186432, -0.0014776967000216246, 0.07747926563024521, 0.012711768969893456, -0.21118682622909546, -0.04673922061920166, -0.05796413496136665, -0.03152421861886978, -0.043658748269081116, -0.05273169279098511, -0.1426904797554016, 0.03844486549496651, -0.016967151314020157, 0.10258623957633972, 0.3453301787376404, -0.1224793866276741, 0.0038806451484560966, -0.03616435080766678, -0.12136361002922058, -0.0033481691498309374, 0.006104400847107172, -0.1208367869257927, 0.010892062447965145, 0.2366265207529068, -0.06508390605449677, -0.04404539242386818, 0.14570492506027222, 0.1483660489320755, -0.025670520961284637, 0.023861613124608994, -0.16589288413524628, -0.03791724145412445, 0.11837244778871536, 0.09111180901527405, 0.07601224631071091, 0.03434956073760986, 0.10744056105613708, 0.05151423439383507, 0.13734528422355652, -0.063868947327137, -0.012667379342019558, -0.09492494910955429, -0.08913063257932663, -0.19080807268619537, 0.044155970215797424, -0.043698761612176895, 0.028074588626623154, -0.028858011588454247, -0.04297838732600212, 0.17721045017242432, 0.0014414371689781547, -0.04747983068227768, -0.11916197836399078, -0.1353912204504013, -0.13854511082172394, 0.13303273916244507, 0.06966017931699753, 0.06496179848909378, -0.021157659590244293, -0.027651077136397362, -0.016475383192300797, -0.10233094543218613, -0.006945107132196426, 0.0027290168218314648, 0.0151175232604146, 0.0576678067445755, -0.18451030552387238, -0.06858643144369125, 0.15508022904396057, -0.15341193974018097, -0.009965035133063793, -0.20421935617923737, 0.060633089393377304, 0.03655274584889412, 0.05638906732201576, 0.12907829880714417, 0.10013499110937119, 0.03414953127503395, 0.08675753325223923, -0.23301169276237488, 0.05459006130695343, -0.22070501744747162, 0.017566869035363197, -0.019330622628331184, 0.1651676744222641, 0.04536055773496628, -0.12745358049869537, -0.10346651822328568, -0.1552811563014984, 0.060304876416921616, -0.07443146407604218, 0.007325060665607452, -0.017428459599614143, 0.016050511971116066, -0.04860271140933037, 0.07817213237285614, -0.07717612385749817, 0.07414793968200684, -0.09229043126106262, 0.08910644054412842, 0.03449492156505585, -0.05257284268736839, 0.10684177279472351, -0.06157267466187477, 0.13636118173599243, 0.16608969867229462, -0.037581246346235275, -0.09919844567775726, 0.170809805393219, 0.07874584943056107, -0.1522836536169052, -0.11091051995754242, -0.007329623680561781, -0.08991316705942154, 0.04339408129453659, -0.11349950730800629, 0.09730742126703262, -0.012718228623270988, -0.07006269693374634, -0.011812771670520306, 0.05808833986520767, 0.01638474315404892, -0.143515944480896, 0.1213388442993164, -0.09171393513679504, 0.07806026190519333, 0.05628716200590134, 0.15718954801559448, -0.032542191445827484, 0.024656159803271294, 0.07756326347589493, 0.06561699509620667, 0.1553177684545517, -0.014889744110405445, 0.03563081845641136, 0.005712373647838831, 0.038457322865724564, -0.10444854944944382, -0.0016590652521699667, -0.10664975643157959, -0.04442281275987625, -0.0025246262084692717, -0.0644674077630043, -0.20216263830661774, -0.16791343688964844, 0.12737098336219788, -0.03074343316257, -0.017709869891405106, 0.07257366925477982, 0.004835634026676416, -0.07113020867109299, -0.1832726001739502, 0.045795317739248276, -0.05238287150859833, -0.03890679404139519, -0.13121533393859863, -0.10219167172908783, 0.12571494281291962, 0.13346736133098602, -0.0019622871186584234, 0.055196989327669144, 0.11638959497213364, 0.036378104239702225, 0.04525935649871826, -0.16361021995544434, 0.08778849244117737, 0.10599344223737717, 0.20207202434539795, 0.035891853272914886, -0.10622407495975494, 0.04383271932601929, -0.13113805651664734, 0.0370832160115242, -0.08286820352077484, -0.04536198452115059, -0.16061455011367798, -0.1042303666472435, 0.032844074070453644, 0.003062974661588669, 0.04740014672279358, 0.14107348024845123, -0.0059487768448889256, -0.04249012470245361, 0.030056998133659363, -0.14820167422294617, -0.08769874274730682, -0.06732791662216187, -0.053975965827703476, -0.029684288427233696, 0.19846215844154358, -0.22863881289958954, -0.03699379414319992, -0.061303503811359406, 0.1334877759218216, -0.07927873730659485, -0.0012402184074744582, -0.14172528684139252, 0.13934051990509033, 0.025630688294768333, -0.023822994902729988, -0.06417550146579742, -0.1193162053823471, 0.008016226813197136, 0.09326300770044327, 0.019584577530622482, 0.012597501277923584, -0.08291993290185928, 0.0007520784856751561, 0.1957351416349411, -0.0693918988108635, -0.15257492661476135, -0.0020912736654281616, -0.052304916083812714, -0.00566159887239337, -0.19540388882160187, -0.1741061955690384, -0.1578345149755478, -0.07421091943979263, -0.009046901017427444, -0.032302647829055786, -0.18613091111183167, -0.05385901406407356, -0.01950673945248127, -0.05626124516129494, 0.034648921340703964, -0.06434693187475204, -0.1016726940870285, 0.07019704580307007, 0.1557026505470276, -0.22331644594669342, 0.14330823719501495, -0.09519744664430618, -0.025085514411330223, -0.11139966547489166, -0.11313473433256149, -0.1278730183839798, -0.26331961154937744, -0.05304884910583496, -0.0027857115492224693, -0.12670354545116425, 0.029879167675971985, 0.030076147988438606, -0.02877712808549404, 0.04717300459742546, -0.046650804579257965, -0.1918792575597763, -0.05524057149887085, 0.04412887245416641, 0.05706023424863815, -0.0837150514125824, -0.02976742945611477, -0.03033681958913803, -0.1339615434408188, -0.14502990245819092, -0.14457908272743225, -0.31402885913848877, -0.12052710354328156, 0.15830525755882263, -0.1299622803926468, -0.029540009796619415, 0.2142140418291092, -0.01186433620750904, 0.01771777868270874, 0.09955437481403351, 0.07397761195898056, -0.039913877844810486, -0.13655821979045868, 0.3440471887588501, 0.0006847986369393766, -0.1427089422941208, 0.17580334842205048, 0.01777772419154644, 0.06860658526420593, -0.08249188214540482, 0.04706505313515663, -0.05055233836174011, 0.20413938164710999, -0.1632772833108902, 0.03197105601429939, 0.2003559172153473, 0.0009571514092385769, -0.018551597371697426, 0.06947452574968338, -0.08181709051132202, 0.05168185010552406, 0.015372617170214653, -0.20148897171020508, -0.014089828357100487, -0.1849118322134018, -0.09582499414682388, 0.12052540481090546, -0.012559480965137482, -0.0024890918284654617, -0.0019666089210659266, -0.1192636713385582, 0.06757082790136337, 0.07218407839536667, -0.0923922136425972, 0.05180233716964722, -0.03183962032198906, -0.005284029059112072, 0.0593990832567215, 0.10815975069999695, 0.07824026048183441, 0.07539130002260208, 0.029764840379357338, 0.04744783788919449, -0.04493756964802742, 0.09337946027517319, -0.10434316098690033, 0.04561767727136612, 0.05596564710140228, 0.09216193109750748, -0.027321279048919678, 0.09909243136644363, 0.04288662597537041, 0.16354534029960632, -0.026807626709342003, 0.061377283185720444, -0.02833261899650097, 0.016097774729132652, -0.010988600552082062, -0.13321971893310547, -0.18273527920246124, 0.04994427040219307, 0.010841436684131622, 0.0910201296210289, -0.005453697871416807, -0.08900488913059235, 0.05157919228076935, 0.08316177874803543, -0.09178777784109116, 0.06361281126737595, 0.10586448758840561, 0.04964359849691391, 0.18478552997112274, 0.018969641998410225, -0.13030624389648438, -0.1260831654071808, 0.28167423605918884, -0.01618490181863308, 0.033269550651311874, -0.16456207633018494, 0.31493905186653137, -0.2211553156375885, 0.035147666931152344, -0.010609946213662624, 0.07737288624048233, -0.182041198015213, -0.14325150847434998, -0.14884664118289948, 0.14403598010540009, 0.10215502977371216, -0.11576472222805023, -0.04169768467545509, 0.06955811381340027, 0.045966580510139465, 0.10152918100357056, -0.011198185384273529, 0.18505072593688965, -0.012770530767738819, -0.0412282757461071, 0.16960467398166656, 0.005258845165371895, -0.03310556709766388, 0.10741128027439117, -0.06353429704904556, -0.19875283539295197, 0.1007840484380722, -0.23115815222263336, 0.10727015882730484, -0.04995390772819519, -0.03455058112740517, 0.04414527118206024, -0.1058015450835228, -0.131102055311203, -0.15787243843078613, 0.18648919463157654, 0.026625555008649826, -0.0594651997089386, -0.10307461768388748, -0.21111777424812317, -0.0696658194065094, 0.21806202828884125, -0.08388042449951172, 0.02123969793319702, 0.07833077758550644, -0.12947428226470947, -0.000877687765751034, 0.18168164789676666, 0.010586075484752655, -0.114032082259655, -0.05445820465683937, -0.005619097501039505, -0.06392911821603775, 0.2678995430469513, -0.11555643379688263, -0.02569153718650341, -0.00948861613869667, -0.04028598219156265, 0.06873279809951782, -0.04266899824142456, -0.029346507042646408, 0.2859542667865753, -0.06427795439958572, 0.11532856523990631, 0.10815475881099701, -0.13431468605995178, -0.09846161305904388, 0.06929841637611389, 0.1108105331659317, 0.002911763498559594, 0.03981902822852135, -0.0771363228559494, 0.06760581582784653, -0.008735953830182552, 0.032286111265420914, -0.04562302306294441, -0.02873082458972931, 0.188746839761734, -0.13477785885334015, 0.11526082456111908, 0.08089281618595123, 0.18096894025802612, 0.06796499341726303, 0.06359586119651794, 0.14404769241809845, 0.27364617586135864, 0.014481977559626102, -0.025140170007944107, 0.011782893911004066, -0.033019740134477615, -0.04185912013053894, -0.02938877046108246, -0.027759628370404243, 0.03879426047205925, 0.04678123816847801, 0.03917573392391205, -0.07534906268119812, -0.027207354083657265, 0.12107357382774353, 0.062431760132312775, -0.02226523868739605, -0.06310533732175827, -0.11317255347967148, -0.04662918299436569, -0.018863936886191368, 0.25325286388397217, 0.04520738869905472, -0.004156805109232664, -0.16731862723827362, 0.1202266737818718, -0.10897938907146454, -0.01804518885910511, 0.012567904777824879, 0.039947979152202606, -0.10347498953342438, 0.11269260942935944, 0.13070066273212433, 0.1148267313838005, 0.1132654994726181, 0.17519666254520416, -0.0723726823925972, -0.03035884164273739, -0.06986480951309204, 0.14093728363513947, -0.13513463735580444, -0.1191013902425766, -0.07464851438999176, -0.10767104476690292, 0.009498372673988342, 0.13393449783325195, 0.101577989757061, 0.026334146037697792, 0.04671085625886917, -0.20636627078056335, 0.06227355822920799, 0.07614518702030182, -0.3334788382053375, -0.03358256071805954, -0.025355545803904533, -0.2278454452753067, -0.019126534461975098, 0.10962321609258652, -2.5753650062144193e-32, -0.15089508891105652, -0.020012997090816498, -0.008412126451730728, -0.018985778093338013, -0.09921039640903473, 0.019538018852472305, 0.07607338577508926, -0.1854710578918457, -0.06926510483026505, -0.05728374794125557, 0.22070185840129852, -0.04197908565402031, 0.05829207971692085, 0.07751031965017319, 0.196090966463089, -0.011005260981619358, -0.02109423093497753, 0.08828651160001755, -0.02126220241189003, -0.03440576791763306, 0.05076491832733154, 0.023855945095419884, 0.17350995540618896, -0.18176580965518951, 0.10413379222154617, -0.07520844787359238, -0.08591680228710175, -0.002379972254857421, 0.13424506783485413, 0.07550051063299179, -0.09937665611505508, -0.07783621549606323, 0.060889776796102524, 0.12318813055753708, -0.03974529728293419, 0.024192681536078453, -0.25260254740715027, 0.12623941898345947, -0.16549305617809296, 0.07601545006036758, -0.024550937116146088, -0.08166151493787766, -0.1674935221672058, -0.05271038040518761, -0.01341200340539217, -0.06679701060056686, 0.028694618493318558, 0.013866163790225983, -0.06942007690668106, 0.16005565226078033, -0.04916984587907791, 0.007217269390821457, -0.02952335588634014, 0.06590651720762253, 0.2061774730682373, 0.11142489314079285, 0.17394691705703735, 0.0006674553151242435, -0.10615116357803345, -0.033423565328121185, 0.07436717301607132, 0.06015236675739288, 0.09760992228984833, 0.005856972187757492, 0.085395447909832, -0.010644685477018356, 0.06894511729478836, 0.20387627184391022, 0.022836582735180855, 0.07873954623937607, 0.13113310933113098, 0.13653536140918732, -0.07968223839998245, -0.1918272227048874, -0.2704835832118988, -0.07375667244195938, -0.12494203448295593, 0.12892772257328033, -0.11133237928152084, 0.0887182429432869, 0.16230207681655884, 0.03285907953977585, -0.10917498916387558, -0.04562267288565636, 0.0028581295628100634, -0.28022947907447815, -0.038688600063323975, -0.048174623399972916, 0.07533182948827744, 0.06419064104557037, -0.052813999354839325, 0.18290193378925323, -0.1315828114748001, 0.07384558022022247, -0.10881631076335907, -0.06320356577634811, 0.07599244266748428, 0.20611929893493652, -0.017709868028759956, 0.049367859959602356, -0.18681441247463226, -0.0038377922028303146, 0.07747075706720352, 0.18174175918102264, 0.15171092748641968, 0.011426543816924095, 0.09044662117958069, 0.06698644906282425, -0.1394907683134079, -0.04725102335214615, 0.053965747356414795, -0.004790274426341057, -0.01951505057513714, -0.09546763449907303, 0.01544217113405466, 0.019455738365650177, -0.02532782219350338, 0.04641839489340782, 0.16088102757930756, 0.2676854729652405, 0.010678048245608807, -0.09435432404279709, 0.0651218369603157, -0.08436451107263565, 0.23920215666294098, 0.06967434287071228, -0.09258447587490082, -0.05067595839500427, 0.2190634310245514, 0.2404702752828598, 0.03586144000291824, -0.06666285544633865, 7.372989330178825e-7, -0.21538224816322327, 0.24559491872787476, 0.11647914350032806, -0.14778317511081696, -0.0661027729511261, 0.09604649990797043, -0.12299899011850357, 0.02543414570391178, 0.024184279143810272, 0.004248821176588535, 0.07827664911746979, -0.11358289420604706, 0.04964843764901161, 0.024755755439400673, -0.1480744332075119, -0.07318209856748581, -0.08591937273740768, -0.11021549254655838, -0.19548384845256805, 0.0783834308385849, 0.04646169766783714, 0.1982184499502182, -0.13948805630207062, -0.044431157410144806, -0.06952595710754395, -0.1558181792497635, 0.008008675649762154, -0.10854701697826385, 0.06393235921859741, -0.06504807621240616, 0.07980690896511078, -0.012016327120363712, 0.06631778925657272, -0.1138048842549324, -0.15055778622627258, -0.01777767203748226, -0.12531203031539917, 0.18084853887557983, 0.012995464727282524, 0.1806204915046692, -0.12228841334581375, -0.05360115319490433, -0.06832190603017807, -0.16820953786373138, 0.09318308532238007, 0.1218813881278038, -0.08866614103317261, 0.029444407671689987, -0.2751850187778473, 0.16452240943908691, -0.06271298974752426, 0.00587655883282423, 0.13009656965732574, -0.019566219300031662, -0.12686176598072052, -0.1086728498339653, 0.02114427089691162, 0.06574879586696625, 0.18752466142177582, -0.04120312258601189, -0.12781204283237457, -0.0391446016728878, -0.024915214627981186, 0.09631912410259247, 0.13074390590190887, -0.05067669227719307, -0.11893627047538757, 1.3333448750384891e-34, -0.07097805291414261, 0.04912404343485832, -0.020415298640727997, 0.08195257931947708, -0.015013153664767742, 0.038444243371486664, -0.11959490180015564, 0.10338576138019562, -0.11861606687307358, -0.22932320833206177, -0.08588331937789917 ]
https://github.com/huggingface/datasets/issues/2708
QASC: incomplete training set
Hi @danyaljj, thanks for reporting. Unfortunately, I have not been able to reproduce your problem. My train split has 8134 examples: ```ipython In [10]: ds["train"] Out[10]: Dataset({ features: ['id', 'question', 'choices', 'answerKey', 'fact1', 'fact2', 'combinedfact', 'formatted_question'], num_rows: 8134 }) In [11]: ds["train"].shape Out[11]: (8134, 8) ``` and the content of the last 5 examples is: ```ipython In [12]: for i in range(8129, 8134): ...: print(json.dumps(ds["train"][i])) ...: {"id": "3KAKFY4PGU1LGXM77JAK2700NGCI3X", "question": "Chitin can be used for protection by whom?", "choices": {"text": ["Fungi", "People", "Man", "Fish", "trees", "Dogs", "animal", "Birds"], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "D", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish scales are also composed of chitin.", "combinedfact": "Chitin can be used for prote ction by fish.", "formatted_question": "Chitin can be used for protection by whom? (A) Fungi (B) People (C) Man (D) Fish (E) trees (F) Dogs (G) animal (H) Birds"} {"id": "336YQZE83VDAQVZ26HW59X51JZ9M5M", "question": "Which type of animal uses plates for protection?", "choices": {"text": ["squids", "reptiles", "sea urchins", "fish", "amphibians", "Frogs", "mammals", "salm on"], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "B", "fact1": "scales are used for protection by scaled animals", "fact2": "Reptiles have scales or plates.", "combinedfact": "Reptiles use their plates for protection.", "formatted_question": "Which type of animal uses plates for protection? (A) squids (B) reptiles (C) sea urchins (D) fish (E) amphibians (F) Frogs (G) mammals (H) salmon"} {"id": "3WZ36BJEV3FGS66VGOOUYX0LN8GTBU", "question": "What are used for protection by fish?", "choices": {"text": ["scales", "fins", "streams.", "coral", "gills", "Collagen", "mussels", "whiskers"], "label": [" A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "A", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish are backboned aquatic animals.", "combinedfact": "scales are used for prote ction by fish ", "formatted_question": "What are used for protection by fish? (A) scales (B) fins (C) streams. (D) coral (E) gills (F) Collagen (G) mussels (H) whiskers"} {"id": "3Z2R0DQ0JHDKFAO2706OYIXGNA4E28", "question": "What are pangolins covered in?", "choices": {"text": ["tunicates", "Echinoids", "shells", "exoskeleton", "blastoids", "barrel-shaped", "protection", "white" ], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "G", "fact1": "scales are used for protection by scaled animals", "fact2": "Pangolins have an elongate and tapering body covered above with ov erlapping scales.", "combinedfact": "Pangolins are covered in overlapping protection.", "formatted_question": "What are pangolins covered in? (A) tunicates (B) Echinoids (C) shells (D) exoskeleton (E) blastoids (F) barrel-shaped (G) protection (H) white"} {"id": "3PMBY0YE272GIWPNWIF8IH5RBHVC9S", "question": "What are covered with protection?", "choices": {"text": ["apples", "trees", "coral", "clams", "roses", "wings", "hats", "fish"], "label": ["A", "B", "C", "D ", "E", "F", "G", "H"]}, "answerKey": "H", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish are covered with scales.", "combinedfact": "Fish are covered with protection", "formatted_q uestion": "What are covered with protection? (A) apples (B) trees (C) coral (D) clams (E) roses (F) wings (G) hats (H) fish"} ``` Could you please load again your dataset and print its shape, like this: ```python ds = load_dataset("qasc", split="train) print(ds.shape) ``` and confirm which is your output?
## Describe the bug The training instances are not loaded properly. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("qasc", script_version='1.10.2') def load_instances(split): instances = dataset[split] print(f"split: {split} - size: {len(instances)}") for x in instances: print(json.dumps(x)) load_instances('test') load_instances('validation') load_instances('train') ``` ## results For test and validation, we can see the examples in the output (which is good!): ``` split: test - size: 920 {"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Anthax", "under water", "uterus", "wombs", "two", "moles", "live", "embryo"]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "What type of birth do therian mammals have? (A) Anthax (B) under water (C) uterus (D) wombs (E) two (F) moles (G) live (H) embryo", "id": "3C44YUNSI1OBFBB8D36GODNOZN9DPA", "question": "What type of birth do therian mammals have?"} {"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Corvidae", "arthropods", "birds", "backbones", "keratin", "Jurassic", "front paws", "Parakeets."]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "By what time had mouse-sized viviparous mammals evolved? (A) Corvidae (B) arthropods (C) birds (D) backbones (E) keratin (F) Jurassic (G) front paws (H) Parakeets.", "id": "3B1NLC6UGZVERVLZFT7OUYQLD1SGPZ", "question": "By what time had mouse-sized viviparous mammals evolved?"} {"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Reduced friction", "causes infection", "vital to a good life", "prevents water loss", "camouflage from consumers", "Protection against predators", "spur the growth of the plant", "a smooth surface"]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "What does a plant's skin do? (A) Reduced friction (B) causes infection (C) vital to a good life (D) prevents water loss (E) camouflage from consumers (F) Protection against predators (G) spur the growth of the plant (H) a smooth surface", "id": "3QRYMNZ7FYGITFVSJET3PS0F4S0NT9", "question": "What does a plant's skin do?"} ... ``` However, only a few instances are loaded for the training split, which is not correct. ## Environment info - `datasets` version: '1.10.2' - Platform: MaxOS - Python version:3.7 - PyArrow version: 3.0.0
496
QASC: incomplete training set ## Describe the bug The training instances are not loaded properly. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("qasc", script_version='1.10.2') def load_instances(split): instances = dataset[split] print(f"split: {split} - size: {len(instances)}") for x in instances: print(json.dumps(x)) load_instances('test') load_instances('validation') load_instances('train') ``` ## results For test and validation, we can see the examples in the output (which is good!): ``` split: test - size: 920 {"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Anthax", "under water", "uterus", "wombs", "two", "moles", "live", "embryo"]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "What type of birth do therian mammals have? (A) Anthax (B) under water (C) uterus (D) wombs (E) two (F) moles (G) live (H) embryo", "id": "3C44YUNSI1OBFBB8D36GODNOZN9DPA", "question": "What type of birth do therian mammals have?"} {"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Corvidae", "arthropods", "birds", "backbones", "keratin", "Jurassic", "front paws", "Parakeets."]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "By what time had mouse-sized viviparous mammals evolved? (A) Corvidae (B) arthropods (C) birds (D) backbones (E) keratin (F) Jurassic (G) front paws (H) Parakeets.", "id": "3B1NLC6UGZVERVLZFT7OUYQLD1SGPZ", "question": "By what time had mouse-sized viviparous mammals evolved?"} {"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Reduced friction", "causes infection", "vital to a good life", "prevents water loss", "camouflage from consumers", "Protection against predators", "spur the growth of the plant", "a smooth surface"]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "What does a plant's skin do? (A) Reduced friction (B) causes infection (C) vital to a good life (D) prevents water loss (E) camouflage from consumers (F) Protection against predators (G) spur the growth of the plant (H) a smooth surface", "id": "3QRYMNZ7FYGITFVSJET3PS0F4S0NT9", "question": "What does a plant's skin do?"} ... ``` However, only a few instances are loaded for the training split, which is not correct. ## Environment info - `datasets` version: '1.10.2' - Platform: MaxOS - Python version:3.7 - PyArrow version: 3.0.0 Hi @danyaljj, thanks for reporting. Unfortunately, I have not been able to reproduce your problem. My train split has 8134 examples: ```ipython In [10]: ds["train"] Out[10]: Dataset({ features: ['id', 'question', 'choices', 'answerKey', 'fact1', 'fact2', 'combinedfact', 'formatted_question'], num_rows: 8134 }) In [11]: ds["train"].shape Out[11]: (8134, 8) ``` and the content of the last 5 examples is: ```ipython In [12]: for i in range(8129, 8134): ...: print(json.dumps(ds["train"][i])) ...: {"id": "3KAKFY4PGU1LGXM77JAK2700NGCI3X", "question": "Chitin can be used for protection by whom?", "choices": {"text": ["Fungi", "People", "Man", "Fish", "trees", "Dogs", "animal", "Birds"], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "D", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish scales are also composed of chitin.", "combinedfact": "Chitin can be used for prote ction by fish.", "formatted_question": "Chitin can be used for protection by whom? (A) Fungi (B) People (C) Man (D) Fish (E) trees (F) Dogs (G) animal (H) Birds"} {"id": "336YQZE83VDAQVZ26HW59X51JZ9M5M", "question": "Which type of animal uses plates for protection?", "choices": {"text": ["squids", "reptiles", "sea urchins", "fish", "amphibians", "Frogs", "mammals", "salm on"], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "B", "fact1": "scales are used for protection by scaled animals", "fact2": "Reptiles have scales or plates.", "combinedfact": "Reptiles use their plates for protection.", "formatted_question": "Which type of animal uses plates for protection? (A) squids (B) reptiles (C) sea urchins (D) fish (E) amphibians (F) Frogs (G) mammals (H) salmon"} {"id": "3WZ36BJEV3FGS66VGOOUYX0LN8GTBU", "question": "What are used for protection by fish?", "choices": {"text": ["scales", "fins", "streams.", "coral", "gills", "Collagen", "mussels", "whiskers"], "label": [" A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "A", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish are backboned aquatic animals.", "combinedfact": "scales are used for prote ction by fish ", "formatted_question": "What are used for protection by fish? (A) scales (B) fins (C) streams. (D) coral (E) gills (F) Collagen (G) mussels (H) whiskers"} {"id": "3Z2R0DQ0JHDKFAO2706OYIXGNA4E28", "question": "What are pangolins covered in?", "choices": {"text": ["tunicates", "Echinoids", "shells", "exoskeleton", "blastoids", "barrel-shaped", "protection", "white" ], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "G", "fact1": "scales are used for protection by scaled animals", "fact2": "Pangolins have an elongate and tapering body covered above with ov erlapping scales.", "combinedfact": "Pangolins are covered in overlapping protection.", "formatted_question": "What are pangolins covered in? (A) tunicates (B) Echinoids (C) shells (D) exoskeleton (E) blastoids (F) barrel-shaped (G) protection (H) white"} {"id": "3PMBY0YE272GIWPNWIF8IH5RBHVC9S", "question": "What are covered with protection?", "choices": {"text": ["apples", "trees", "coral", "clams", "roses", "wings", "hats", "fish"], "label": ["A", "B", "C", "D ", "E", "F", "G", "H"]}, "answerKey": "H", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish are covered with scales.", "combinedfact": "Fish are covered with protection", "formatted_q uestion": "What are covered with protection? (A) apples (B) trees (C) coral (D) clams (E) roses (F) wings (G) hats (H) fish"} ``` Could you please load again your dataset and print its shape, like this: ```python ds = load_dataset("qasc", split="train) print(ds.shape) ``` and confirm which is your output?
[ 0.11887939274311066, 0.10579866915941238, -0.08988048881292343, 0.05241207405924797, 0.3297697901725769, 0.11672459542751312, 0.08141748607158661, 0.16041001677513123, -0.02871566265821457, 0.07303144782781601, 0.1626262068748474, -0.08337640762329102, 0.030431730672717094, 0.12882885336875916, 0.00703400606289506, 0.055925510823726654, 0.017646702006459236, -0.01257665641605854, -0.05511799454689026, -0.051011040806770325, -0.1626531034708023, 0.02102970890700817, 0.11111479997634888, -0.10537683218717575, -0.15491001307964325, -0.10420013964176178, -0.0739043653011322, -0.06534762680530548, 0.032534826546907425, -0.10432586818933487, 0.029692063108086586, -0.11847182363271713, -0.15262416005134583, 0.12489431351423264, 0.0000061816303968953434, -0.019418852403759956, 0.13117314875125885, -0.04416929557919502, -0.1871972531080246, 0.04331990331411362, -0.002007981762290001, 0.08429940044879913, -0.027244077995419502, -0.037519488483667374, -0.12024824321269989, -0.09636448323726654, -0.03834684193134308, 0.0369417741894722, 0.06478898227214813, 0.0569726787507534, 0.0073562804609537125, 0.014772367663681507, 0.046904388815164566, 0.06373201310634613, 0.09413337707519531, -0.0924994945526123, 0.002966532716527581, -0.047104232013225555, 0.040629349648952484, -0.03582966327667236, -0.0005025271093472838, -0.055533237755298615, 0.1395864486694336, -0.023714466020464897, -0.20853665471076965, 0.08069592714309692, -0.015427330508828163, 0.011786739341914654, 0.04524566978216171, 0.11588916927576065, 0.04788228124380112, 0.16393978893756866, -0.2144215852022171, -0.03235583379864693, -0.0031136288307607174, -0.07023831456899643, -0.028429705649614334, 0.11300276219844818, 0.017335550859570503, 0.05725936219096184, 0.07536882907152176, 0.022495310753583908, -0.05700221657752991, 0.060650795698165894, -0.04364990442991257, 0.0024187657982110977, -0.11344687640666962, 0.026644671335816383, -0.03850766643881798, 0.12946580350399017, -0.025557640939950943, 0.07776251435279846, -0.06752541661262512, -0.12947995960712433, -0.0725773423910141, 0.031546659767627716, 0.11309933662414551, -0.08904317021369934, -0.04033106192946434, 0.020405299961566925, -0.07284996658563614, -0.08594871312379837, -0.06412723660469055, 0.02581169456243515, -0.034728676080703735, 0.059071965515613556, 0.06138860061764717, 0.024480847641825676, 0.0019621257670223713, 0.1725279837846756, -0.07851291447877884, 0.007501383312046528, -0.16945505142211914, 0.046780820935964584, 0.11698026210069656, 0.06839961558580399, 0.06429596245288849, 0.051506683230400085, 0.02777705527842045, 0.16501465439796448, -0.0663960874080658, 0.06715621054172516, -0.17866390943527222, 0.002815516199916601, -0.058762189000844955, 0.06638799607753754, 0.03934427350759506, 0.20557884871959686, -0.037245795130729675, -0.02963707409799099, -0.14020134508609772, 0.008673311211168766, -0.10582559555768967, 0.046259477734565735, -0.005264763254672289, 0.03431285545229912, 0.12825094163417816, -0.16896387934684753, 0.028098365291953087, -0.09429369121789932, 0.010545182973146439, -0.09382659196853638, -0.19451645016670227, 0.19578005373477936, 0.21013295650482178, 0.0401848703622818, 0.1409144252538681, 0.12062034755945206, -0.004853507038205862, -0.12425792217254639, -0.2085195928812027, 0.15009446442127228, -0.209483340382576, 0.16911524534225464, 0.0075039612129330635, 0.07542455941438675, 0.09523562341928482, 0.13491448760032654, -0.081454798579216, -0.0716233104467392, 0.08448399603366852, 0.17496466636657715, 0.03511984646320343, -0.12094297260046005, 0.04917321354150772, 0.05843988060951233, -0.07074926048517227, -0.05545620247721672, 0.0442243367433548, 0.03747618943452835, 0.06334328651428223, -0.01495442446321249, -0.059505779296159744, -0.04738118126988411, -0.09817960858345032, 0.11401960998773575, -0.15896308422088623, 0.11501439660787582, -0.16424746811389923, -0.15132585167884827, 0.0745127946138382, -0.04827043041586876, -0.07694897055625916, -0.17077672481536865, 0.039334338158369064, 0.1484062224626541, 0.06795088946819305, 0.035890523344278336, -0.13089269399642944, -0.13089650869369507, -0.043350059539079666, -0.13392552733421326, -0.19761589169502258, -0.1345195174217224, 0.15250985324382782, 0.04123751446604729, -0.06867939233779907, -0.01732076145708561, 0.0389607697725296, -0.31649163365364075, -0.01702171191573143, -0.021640358492732048, 0.09003189206123352, 0.057052090764045715, 0.061421483755111694, -0.06125577166676521, -0.24000799655914307, 0.08733491599559784, -0.15188400447368622, -0.04042016342282295, -0.14908413589000702, -0.03038686513900757, -0.0692988857626915, -0.03347359970211983, -0.17630113661289215, -0.06182271987199783, -0.050664108246564865, -0.056491509079933167, -0.11426631361246109, 0.12832368910312653, -0.062161147594451904, 0.012559417635202408, -0.018109560012817383, 0.09865443408489227, -0.08466292172670364, 0.06940358877182007, 0.10543414950370789, -0.0148247005417943, 0.09735899418592453, 0.08935322612524033, -0.05050351470708847, -0.034903425723314285, 0.04772704839706421, -0.04897241294384003, 0.024311097338795662, -0.10227280855178833, -0.10315430909395218, -0.2309974581003189, 0.12465453147888184, -0.05766230821609497, -0.12989261746406555, 0.13267333805561066, -0.011622504331171513, -0.10164974629878998, -0.07052519917488098, -0.04796785116195679, -0.055215295404195786, 0.18301169574260712, 0.18746741116046906, 0.050666384398937225, 0.08585295081138611, 0.1017647236585617, 0.06883025914430618, 0.03291001170873642, 0.04884734004735947, -0.136906698346138, -0.08056193590164185, 0.0004029417468700558, -0.07456028461456299, -0.05825117230415344, -0.010080148465931416, -0.05176537483930588, -0.141234889626503, -0.17550721764564514, 0.1779399961233139, -0.08828306943178177, 0.04346444457769394, -0.0357542410492897, -0.01610185019671917, 0.12181589752435684, 0.034284692257642746, -0.086198590695858, -0.011825351975858212, -0.12442723661661148, -0.08772493153810501, -0.02852976880967617, 0.042500536888837814, -0.019843505695462227, 0.13260968029499054, 0.02716705948114395, -0.013723076321184635, 0.15747949481010437, 0.11204849183559418, -0.03981022909283638, -0.014551151543855667, 0.15269248187541962, -0.07467021048069, 0.13396386802196503, -0.10967430472373962, 0.14050030708312988, -0.12466892600059509, 0.011272410862147808, 0.11340460926294327, -0.07488163560628891, -0.09653572738170624, -0.016034387052059174, 0.013946359045803547, -0.09665500372648239, 0.09695830941200256, -0.044805873185396194, -0.0064163366332650185, 0.24723336100578308, -0.016836516559123993, 0.01723446138203144, 0.016551030799746513, 0.0728917345404625, 0.1482878178358078, 0.11627507209777832, -0.2612228989601135, 0.15050680935382843, 0.016988879069685936, -0.07570279389619827, -0.0851481705904007, 0.14722703397274017, -0.03301471844315529, 0.19197441637516022, -0.0728113055229187, -0.17502433061599731, 0.06926882266998291, 0.06304331868886948, 0.05075639486312866, 0.04681287705898285, 0.0453968346118927, 0.047746822237968445, -0.07088419049978256, -0.05198903754353523, -0.04571644589304924, -0.035441555082798004, -0.13531948626041412, 0.031494177877902985, 0.0007412039558403194, 0.06138461455702782, 0.03253393992781639, -0.2118084877729416, -0.06633178889751434, -0.09014853835105896, -0.13584673404693604, 0.05981331691145897, 0.2998737692832947, 0.07102618366479874, -0.042859774082899094, -0.1215987429022789, -0.02936716005206108, 0.16301152110099792, -0.034141700714826584, -0.17534014582633972, -0.11007264256477356, 0.0180430319160223, 0.0077364095486700535, 0.034090977162122726, -0.01428988203406334, 0.09671936929225922, -0.09647728502750397, -0.12424039840698242, -0.03717591613531113, 0.19797278940677643, 0.03415382280945778, 0.06392168998718262, 0.18420131504535675, -0.15638969838619232, 0.18577660620212555, 0.05714825913310051, 0.16626496613025665, 0.19356155395507812, -0.021764734759926796, 0.007171806879341602, 0.07940617203712463, 0.03348372504115105, -0.17224469780921936, -0.11742784827947617, 0.08471398800611496, 0.005210612900555134, -0.08819656074047089, 0.0957057848572731, 0.04082725942134857, 0.07673708349466324, -0.027372322976589203, -0.1428176760673523, -0.06339696794748306, 0.044917382299900055, 0.005268970504403114, -0.2016809731721878, 0.06273069977760315, 0.08639983832836151, 0.1435234099626541, 0.1334550529718399, 0.05219152569770813, 0.019638685509562492, -0.1694464236497879, 0.1382652074098587, 0.11041457951068878, -0.13858970999717712, -0.07728815078735352, 0.1196771040558815, -0.07584408670663834, -0.18382762372493744, 0.08843971788883209, 0.05175141617655754, 0.013503504917025566, 0.0768626406788826, 0.07049235701560974, 0.1698048859834671, 0.0988759696483612, 0.04679687321186066, 0.0749698132276535, 0.13958951830863953, 0.09361141175031662, -0.04024181887507439, 0.052669595927000046, -0.05040072277188301, 0.03294128179550171, -0.08142796158790588, -0.06274811923503876, 0.07886859029531479, 0.05404697731137276, -0.04663975536823273, -0.03958388417959213, 0.040306609123945236, 0.0032303407788276672, -0.1789810210466385, -0.15456126630306244, -0.067178875207901, 0.30706000328063965, 0.1451369971036911, -0.021223951131105423, -0.09358078986406326, 0.01326124556362629, -0.13130751252174377, 0.13830293715000153, -0.009514421224594116, 0.0022805114276707172, 0.01192948967218399, 0.008248111233115196, 0.08297710120677948, 0.029271874576807022, 0.04279055446386337, 0.40219977498054504, -0.026824934408068657, -0.12909482419490814, 0.05553694814443588, -0.19489416480064392, 0.03766197711229324, 0.10465602576732635, -0.10812443494796753, 0.037717368453741074, -0.04033179581165314, -0.043375372886657715, 0.07084669172763824, 0.003377877874299884, -0.04759878292679787, -0.125834658741951, -0.07194889336824417, -0.10854482650756836, -0.19481997191905975, -0.008734830655157566, 0.018095705658197403, -0.09780494123697281, 0.12315139174461365, -0.0065501839853823185, 0.10924021154642105, 0.028256088495254517, -0.06775999069213867, -0.042464856058359146, -0.027456659823656082, -0.008709139190614223, 0.14916828274726868, 0.21540269255638123, -0.16849498450756073, 0.020625600591301918, -0.011518564075231552, 0.0018514032708480954, 0.012995338067412376, 0.07122322171926498, 0.07890062034130096, 0.1875079870223999, -0.12707774341106415, 0.18669496476650238, -0.1600867062807083, -0.07032571732997894, 0.025355547666549683, 0.08026063442230225, 0.039766740053892136, 0.01663953997194767, -0.053719110786914825, -0.05563176050782204, 0.11873823404312134, -0.02364894561469555, 0.07648740708827972, -0.10065679252147675, 0.09964309632778168, 0.06242866441607475, -0.02093668282032013, 0.1367475390434265, -0.04689473286271095, -0.04040971398353577, 0.03285899758338928, -0.0626097097992897, 0.033034179359674454, 0.14316900074481964, 0.04798910394310951, 0.2151329070329666, -0.07442973554134369, 0.2473832666873932, -0.11541137099266052, -0.010647270828485489, -0.12401264905929565, 0.053231846541166306, 0.17775972187519073, 0.13605159521102905, -0.11697493493556976, 0.08713430166244507, 0.04057326912879944, -0.0017161670839414, -0.0905844047665596, -0.227504700422287, 0.09954921156167984, -0.20084376633167267, -0.043228164315223694, -0.15349271893501282, 0.16002821922302246, 0.04156974330544472, 0.025202112272381783, -0.07144873589277267, -0.10406718403100967, 0.09487732499837875, 0.18896837532520294, 0.025853829458355904, -0.05573921278119087, 0.28808003664016724, 0.09091825038194656, -0.040024928748607635, 0.25531327724456787, 0.16769936680793762, 0.07304487377405167, -0.13790172338485718, 0.07459744065999985, 0.15733662247657776, -0.14028337597846985, 0.020458651706576347, -0.032332733273506165, 0.016666823998093605, -0.20298902690410614, -0.022616956382989883, 0.09371841698884964, 0.0753231942653656, 0.009841621853411198, -0.033224161714315414, -0.05897948890924454, -0.04554677754640579, -0.2083951085805893, -0.061714984476566315, 0.060593657195568085, -0.00020809966372326016, -0.101723812520504, 0.09286221116781235, -2.64351194021464e-32, -0.07373295724391937, -0.035097602754831314, -0.05531572178006172, -0.15131360292434692, -0.16384698450565338, 0.21317873895168304, -0.07704339921474457, -0.07318033277988434, -0.07974617928266525, -0.009958378970623016, -0.16743965446949005, 0.12006369233131409, 0.021747305989265442, -0.006855995859950781, 0.08953987807035446, 0.010163146071135998, 0.01531143393367529, -0.07664742320775986, -0.07016097009181976, 0.09781019389629364, 0.013769678771495819, 0.06931596994400024, 0.025189947336912155, -0.0005959094851277769, -0.05393247678875923, -0.04442422091960907, -0.043883316218853, -0.10427013039588928, 0.11399227380752563, 0.06405851244926453, -0.09276960790157318, 0.0839213952422142, 0.04608209431171417, -0.05671059712767601, -0.037991464138031006, -0.03562289848923683, -0.03368504345417023, -0.15063872933387756, -0.017957845702767372, -0.0032247514463961124, -0.009524955414235592, 0.013294382020831108, 0.07091975212097168, -0.1211591511964798, 0.09217673540115356, -0.06731376051902771, 0.00048230335232801735, -0.05888941511511803, -0.04758946970105171, -0.046125128865242004, 0.10806305706501007, 0.018179727718234062, -0.08731015771627426, 0.03997163102030754, 0.08491917699575424, -0.07087893038988113, 0.13277152180671692, -0.026605753228068352, -0.026688212528824806, 0.12970203161239624, 0.22752290964126587, -0.024611828848719597, 0.1162286028265953, -0.000052704504923895, -0.038548778742551804, -0.021298857405781746, 0.1832621544599533, 0.056690629571676254, 0.12993372976779938, -0.08808406442403793, -0.14270642399787903, -0.018001040443778038, -0.036741193383932114, -0.08203058689832687, -0.12424225360155106, -0.09273485094308853, -0.005294143687933683, 0.018788939341902733, -0.12400465458631516, 0.01380912121385336, 0.004709112923592329, 0.01044014748185873, -0.232881560921669, 0.030803252011537552, -0.12058235704898834, 0.05294908583164215, -0.06316686421632767, -0.01686927117407322, -0.054910074919462204, -0.06785277277231216, -0.10058464109897614, -0.027677861973643303, -0.18560665845870972, -0.16482886672019958, -0.06923281401395798, -0.02357005886733532, -0.031806234270334244, -0.01224672794342041, -0.08082651346921921, -0.05270131677389145, -0.12113119661808014, -0.19007843732833862, 0.08018650114536285, 0.021752409636974335, 0.03696412593126297, 0.0405510812997818, 0.05269475653767586, -0.02036360837519169, -0.21605752408504486, -0.040314190089702606, 0.155004620552063, -0.014097847044467926, 0.12648628652095795, 0.09310244768857956, 0.19830021262168884, 0.026157651096582413, -0.01989833265542984, -0.04481198266148567, 0.05583997815847397, 0.13175110518932343, -0.03465798497200012, -0.05148640275001526, -0.1888614445924759, 0.01838795281946659, -0.1079079881310463, 0.022944379597902298, -0.16902299225330353, 0.01331678032875061, 0.09321616590023041, 0.005876000504940748, -0.010091879405081272, -0.0212375707924366, 7.69053258409258e-7, -0.23292803764343262, 0.10592938214540482, -0.03396988660097122, -0.08167514204978943, -0.10755586624145508, 0.10342592000961304, -0.07019530236721039, -0.051102958619594574, -0.06046666204929352, 0.2204735428094864, 0.033775217831134796, -0.03871408849954605, 0.003215821459889412, 0.04219270125031471, -0.01181190088391304, -0.08469780534505844, -0.1539822816848755, 0.027400847524404526, -0.21555212140083313, -0.07551395148038864, 0.1869368553161621, 0.25661683082580566, 0.1518382430076599, -0.0870794728398323, -0.006856416817754507, 0.0011380159994587302, -0.17282381653785706, 0.045896079391241074, -0.12310957908630371, 0.013263175264000893, -0.09231053292751312, 0.0699041560292244, 0.07771679013967514, 0.1288192719221115, 0.12243497371673584, 0.06670983880758286, -0.11161456257104874, -0.04329591989517212, 0.03284391388297081, 0.11788337677717209, -0.0412590429186821, 0.08276398479938507, -0.028685420751571655, -0.008361115120351315, 0.20168036222457886, 0.11321970075368881, -0.009789523668587208, -0.1712198704481125, -0.07413334399461746, -0.05525637045502663, 0.09514910727739334, 0.10779944062232971, 0.2743266224861145, 0.10766832530498505, -0.14184504747390747, -0.06957260519266129, -0.053122106939554214, -0.12305556982755661, 0.25066515803337097, 0.08489254117012024, 0.06326543539762497, -0.05338798835873604, -0.07428927719593048, -0.07033071666955948, 0.16222645342350006, -0.232065349817276, -0.1828739047050476, 8.295064149344596e-35, -0.03158359229564667, -0.11585763841867447, 0.10153640806674957, -0.03793574124574661, -0.0439910925924778, -0.17438189685344696, 0.1115337535738945, 0.1039590984582901, -0.016291450709104538, -0.10932416468858719, -0.052965305745601654 ]
https://github.com/huggingface/datasets/issues/2707
404 Not Found Error when loading LAMA dataset
Hi @dwil2444! I was able to reproduce your error when I downgraded to v1.1.2. Updating to the latest version of Datasets fixed the error for me :)
The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download: Steps to Reproduce: 1. `from datasets import load_dataset` 2. `dataset = load_dataset('lama', 'trex')`. Results: `FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py`
27
404 Not Found Error when loading LAMA dataset The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download: Steps to Reproduce: 1. `from datasets import load_dataset` 2. `dataset = load_dataset('lama', 'trex')`. Results: `FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py` Hi @dwil2444! I was able to reproduce your error when I downgraded to v1.1.2. Updating to the latest version of Datasets fixed the error for me :)
[ 0.24288377165794373, 0.08960147947072983, -0.020281773060560226, 0.1479685753583908, 0.19420017302036285, 0.09683741629123688, 0.006108654197305441, 0.09483291953802109, -0.18401984870433807, 0.22443389892578125, -0.08146724104881287, 0.062178049236536026, -0.05894859507679939, -0.11243333667516708, -0.015251286327838898, -0.16909703612327576, -0.10207570344209671, -0.1489824652671814, -0.06179932877421379, -0.024676935747265816, 0.13693617284297943, 0.1271701604127884, 0.10962888598442078, -0.0104503920301795, 0.04836229979991913, 0.1220661848783493, -0.03851315379142761, -0.01214628852903843, 0.041985802352428436, -0.234685480594635, 0.19963718950748444, -0.04243548586964607, -0.04713704064488411, 0.186841681599617, 0.000005765772584709339, -0.010599642992019653, 0.15444466471672058, 0.08348627388477325, -0.1254095733165741, -0.04484635964035988, -0.04210489243268967, -0.045134980231523514, -0.026995982974767685, 0.02374253422021866, -0.07090941816568375, 0.014324656687676907, 0.01816583424806595, 0.04505886137485504, -0.021818017587065697, 0.18714910745620728, 0.07452554255723953, 0.1488635540008545, -0.001630621962249279, -0.1046418696641922, 0.10263686627149582, -0.07575352489948273, -0.023601172491908073, 0.24678629636764526, -0.18788279592990875, 0.09323251247406006, 0.03317910432815552, 0.094000443816185, 0.13690412044525146, 0.08009038120508194, -0.07680389285087585, 0.025232765823602676, 0.03152952715754509, -0.006182949058711529, 0.11729054898023605, 0.20422494411468506, 0.13495492935180664, 0.06902676075696945, -0.2047494798898697, 0.017383383587002754, 0.01361125335097313, -0.03859703242778778, 0.05229932442307472, 0.06564361602067947, -0.09016967564821243, 0.09093230217695236, -0.10818852484226227, -0.01202469039708376, 0.006646290887147188, 0.014837399125099182, 0.0028834703844040632, -0.0902770459651947, -0.1894407868385315, -0.01608262024819851, -0.1355358511209488, -0.28482356667518616, 0.06505758315324783, -0.019465627148747444, -0.006449625827372074, 0.025901883840560913, 0.1516343206167221, 0.13627491891384125, -0.08192241936922073, 0.06446269899606705, -0.04074672609567642, -0.0010825537610799074, 0.028359005227684975, -0.12196075916290283, -0.1545064002275467, 0.04496927559375763, -0.011081831529736519, 0.07794049382209778, 0.0696132630109787, -0.028722699731588364, 0.13467521965503693, 0.1914747804403305, 0.08594785630702972, 0.045999735593795776, -0.07546225190162659, -0.25794634222984314, -0.16753628849983215, 0.0035212074872106314, 0.10304568707942963, 0.018664777278900146, 0.03298723325133324, -0.010371185839176178, 0.02298928052186966, 0.10084069520235062, 0.0032554965000599623, 0.06776326894760132, -0.02494310960173607, 0.10015193372964859, -0.1656019240617752, 0.06829828768968582, 0.10204752534627914, -0.06261062622070312, 0.025962980464100838, -0.10168703645467758, -0.05797133967280388, -0.0410054586827755, 0.09532944858074188, -0.09217807650566101, 0.013533885590732098, -0.2106853425502777, -0.12179940193891525, 0.07638580352067947, 0.07403367757797241, -0.021003540605306625, -0.09483001381158829, 0.04016838222742081, 0.2692294716835022, -0.01231707539409399, 0.037546105682849884, -0.02594313584268093, 0.01940278895199299, -0.036228254437446594, 0.006542447954416275, 0.0770941972732544, -0.08557530492544174, -0.0778820812702179, 0.043977029621601105, 0.10757089406251907, -0.02020152285695076, 0.029703104868531227, -0.18262386322021484, -0.09247729182243347, 0.0826680138707161, 0.11972484737634659, 0.13986913859844208, -0.043563760817050934, 0.10820390284061432, 0.12039976567029953, -0.04276570677757263, 0.07708282023668289, -0.05693826824426651, -0.12283540517091751, -0.007032173685729504, -0.05151528865098953, -0.16699939966201782, 0.10689935088157654, -0.29740267992019653, 0.04372117668390274, -0.024527577683329582, -0.04914846643805504, -0.11854182928800583, -0.05192089080810547, 0.1430448293685913, -0.10829896479845047, -0.09809005260467529, 0.0027891553472727537, -0.06440641731023788, -0.02474171854555607, 0.17880073189735413, -0.012792021036148071, 0.01804303750395775, -0.023329144343733788, 0.012898937799036503, -0.05227087065577507, -0.0019528300035744905, -0.022398147732019424, 0.011918011121451855, 0.014013558626174927, 0.13663801550865173, -0.15176177024841309, 0.03637386113405228, -0.1523771435022354, -0.08796573430299759, 0.018308516591787338, 0.023734204471111298, 0.16064497828483582, 0.07481808215379715, 0.020565031096339226, -0.04999324306845665, 0.13133352994918823, 0.002104518236592412, -0.10678659379482269, -0.17661002278327942, -0.03864607214927673, -0.11167234182357788, 0.006847547832876444, 0.02991442382335663, 0.03693074733018875, 0.005198311060667038, 0.0230025015771389, 0.010613547638058662, 0.19461922347545624, -0.07545461505651474, -0.008346473798155785, 0.11076968908309937, 0.08709421753883362, -0.2871478199958801, -0.0278583113104105, -0.05837108939886093, -0.035878654569387436, 0.1264117956161499, 0.03018912672996521, -0.1505860835313797, 0.006485274527221918, 0.09642529487609863, -0.025788433849811554, -0.021235717460513115, 0.02398073486983776, 0.2136112004518509, -0.38349097967147827, -0.006978715304285288, -0.11159022152423859, -0.11435820162296295, 0.11054319888353348, -0.08540311455726624, 0.0009136670269072056, 0.040397536009550095, -0.021638087928295135, -0.0005944706499576569, -0.009570008143782616, -0.060103606432676315, 0.06443518400192261, 0.12419626861810684, -0.049482040107250214, -0.209952250123024, -0.010275612585246563, 0.22689180076122284, 0.12363354116678238, 0.006558024790138006, 0.0063569387421011925, -0.13083824515342712, -0.14684048295021057, 0.16121579706668854, -0.058233361691236496, -0.0640644058585167, 0.10742161422967911, 0.03349975496530533, 0.11113765835762024, 0.03152412548661232, 0.1463249921798706, -0.14248426258563995, -0.0012588024837896228, 0.023542026057839394, -0.026495689526200294, -0.12401720136404037, -0.07905785739421844, -0.10211792588233948, 0.02424798160791397, 0.026541106402873993, 0.05194130912423134, 0.03302706778049469, -0.007718896958976984, -0.2901671826839447, 0.020903095602989197, 0.0009765790309756994, -0.048050444573163986, 0.1827608197927475, -0.06656809896230698, -0.23771850764751434, -0.19429641962051392, -0.0071336510591208935, -0.010052618570625782, -0.18277186155319214, 0.0747101753950119, -0.10989978909492493, -0.11531201004981995, -0.14346712827682495, -0.04785807430744171, -0.03555767238140106, -0.05506615340709686, 0.00288511929102242, 0.12109450250864029, -0.03290364146232605, 0.19133879244327545, 0.036956313997507095, -0.09382680058479309, 0.02119448222219944, -0.022982345893979073, 0.012385085225105286, -0.026370016857981682, -0.0036148251965641975, -0.16174045205116272, 0.0031905402429401875, -0.1711944043636322, 0.2088637351989746, 0.05760104954242706, -0.1047314703464508, 0.018855376169085503, 0.14209608733654022, -0.0428980328142643, 0.09182276576757431, 0.25638067722320557, 0.07617783546447754, -0.034513771533966064, 0.05270716920495033, 0.0432894267141819, -0.045006588101387024, 0.06724520772695541, -0.07684681564569473, -0.0050135268829762936, 0.01668437384068966, -0.03700533136725426, -0.037458863109350204, -0.04608619585633278, 0.0004445750964805484, -0.08027824014425278, -0.109919473528862, -0.09524313360452652, -0.026416966691613197, -0.0980968028306961, 0.23405663669109344, -0.011294890195131302, -0.13807013630867004, 0.04381224885582924, -0.04594307765364647, 0.08106184005737305, 0.023071162402629852, -0.13710632920265198, -0.012410781346261501, -0.01789100281894207, 0.07204136252403259, -0.12769460678100586, -0.010362471453845501, -0.046709757298231125, 0.07204451411962509, -0.18300503492355347, 0.015501623041927814, -0.051676955074071884, -0.13242578506469727, 0.10260256379842758, 0.11874806135892868, 0.08394967019557953, 0.08152829110622406, 0.05692439526319504, -0.10248750448226929, 0.005605845246464014, -0.05185497924685478, 0.15717461705207825, 0.08349444717168808, 0.2652251422405243, 0.02866772934794426, 0.10677473992109299, -0.0475195087492466, 0.02871890366077423, 0.08956659585237503, 0.024122564122080803, 0.19710686802864075, 0.22515195608139038, -0.24720273911952972, -0.04456391930580139, 0.04390313848853111, -0.08955300599336624, -0.0239680428057909, -0.29650819301605225, 0.0005187707138247788, 0.09174160659313202, 0.01232088077813387, 0.07121962308883667, 0.02732580155134201, 0.19002898037433624, 0.02444661408662796, 0.10279041528701782, -0.10922501236200333, 0.061974648386240005, 0.1374039649963379, -0.3175128996372223, 0.0845915675163269, -0.12556031346321106, 0.22079750895500183, 0.2683669626712799, 0.050133559852838516, -0.028281766921281815, 0.05173109471797943, 0.1288219839334488, 0.05411101505160332, 0.12998096644878387, 0.006309241987764835, 0.036904625594615936, 0.041863616555929184, 0.14615905284881592, 0.07732445746660233, -0.051379844546318054, 0.009771479293704033, 0.14189304411411285, -0.012725317850708961, -0.0009196405881084502, -0.0328998863697052, 0.023594137281179428, 0.007933530956506729, -0.08435461670160294, -0.08194290846586227, -0.12928350269794464, 0.08277534693479538, -0.16861853003501892, -0.02122769132256508, 0.04779871553182602, 0.11507181078195572, 0.03794628754258156, 0.09727524220943451, -0.08882774412631989, 0.12467102706432343, -0.015165655873715878, -0.032208867371082306, 0.041773390024900436, 0.030643170699477196, 0.06783396005630493, 0.23050935566425323, -0.051526546478271484, 0.2942889332771301, -0.2742963433265686, -0.22836682200431824, 0.022781413048505783, -0.12849284708499908, -0.04346088320016861, 0.1726784110069275, -0.009467199444770813, -0.016336524859070778, 0.04376411437988281, -0.06924614310264587, -0.03274986147880554, 0.06753614544868469, 0.029814617708325386, -0.06714349240064621, -0.06386937946081161, 0.10872406512498856, -0.24945686757564545, -0.014671741984784603, 0.05862824618816376, 0.2639617919921875, 0.07541218400001526, 0.011354317888617516, -0.09598331153392792, -0.1920127272605896, -0.053568560630083084, -0.1867704838514328, -0.06623540073633194, 0.13449810445308685, -0.005114856641739607, 0.2417459785938263, -0.03795512393116951, 0.09769368916749954, 0.052460841834545135, 0.16974611580371857, 0.034584891051054, -0.012345450930297375, 0.04641751945018768, 0.16375307738780975, -0.008475433103740215, -0.014471394009888172, 0.01170460507273674, -0.1627826690673828, 0.017319630831480026, 0.13994655013084412, -0.023398013785481453, 0.12105166167020798, -0.2339024692773819, -0.03336413577198982, 0.07295148819684982, 0.20612485706806183, -0.05001197010278702, -0.12035766988992691, -0.1679890751838684, 0.18644513189792633, 0.012506429105997086, 0.09395482391119003, -0.05506233498454094, 0.10801107436418533, -0.06236355006694794, -0.13131755590438843, 0.06127909943461418, 0.11484774202108383, 0.029576068744063377, 0.12079261243343353, -0.000991710228845477, 0.06967225670814514, -0.05149473249912262, -0.10969699919223785, -0.15225902199745178, 0.12788818776607513, -0.06911084800958633, -0.010889201425015926, -0.07421168684959412, 0.040422551333904266, 0.09350089728832245, 0.01602151431143284, 0.07071590423583984, 0.023014003410935402, -0.1267898678779602, 0.0019916542805731297, 0.08624052256345749, 0.10846682637929916, 0.028925485908985138, -0.07611427456140518, -0.08323012292385101, -0.10472802072763443, -0.10274887084960938, -0.12679368257522583, 0.12643659114837646, -0.028404269367456436, 0.25158974528312683, 0.09027783572673798, -0.08230257034301758, 0.004395969212055206, 0.06435749679803848, 0.226287841796875, -0.09085853397846222, -0.004587185103446245, 0.10470656305551529, 0.048429351300001144, -0.19776369631290436, 0.05761415511369705, -0.019183918833732605, 0.04327045753598213, -0.07255270332098007, -0.11066750437021255, 0.17110610008239746, -0.0870402604341507, 0.06299304962158203, 0.09543201327323914, -0.07506930083036423, -0.1076098382472992, -0.042987409979104996, 0.027140185236930847, 0.07296241819858551, -0.015286196954548359, 0.041681982576847076, -0.1188001036643982, -2.3811980248399447e-32, -0.0875013992190361, 0.07632085680961609, 0.0609857551753521, -0.0368792787194252, -0.2609134018421173, 0.07658159732818604, 0.02509208768606186, -0.03728476166725159, -0.26443397998809814, -0.11295628547668457, 0.020746860653162003, 0.01968962326645851, -0.06770549714565277, 0.05735638365149498, -0.05140486732125282, -0.10140056908130646, -0.1774565428495407, 0.0039639659225940704, 0.009370403364300728, -0.09919022768735886, 0.08809275925159454, 0.011356359347701073, -0.004714782815426588, 0.056979354470968246, 0.11435804516077042, -0.015572058968245983, -0.16444018483161926, 0.04136994108557701, 0.007984304800629616, 0.007776098791509867, -0.15403039753437042, -0.004214294254779816, -0.02429872937500477, -0.07340849190950394, -0.22739699482917786, -0.0619640126824379, -0.22395609319210052, -0.14710776507854462, -0.15424884855747223, 0.0485350638628006, 0.05827328935265541, 0.09767728298902512, -0.11893677711486816, -0.196168914437294, 0.04416511580348015, 0.24638547003269196, -0.05679694190621376, -0.05962546169757843, -0.014326535165309906, -0.0372006893157959, 0.028580540791153908, 0.02546904794871807, -0.1305687576532364, -0.09483370929956436, 0.1381777673959732, -0.09596195816993713, 0.0336521677672863, 0.12907060980796814, 0.08018188178539276, 0.034646954387426376, 0.22453677654266357, 0.048176109790802, 0.020957205444574356, 0.0203115064650774, 0.039335086941719055, -0.08767695724964142, 0.19484315812587738, -0.05223146453499794, 0.11210468411445618, -0.1540168821811676, 0.11879079043865204, 0.06327170878648758, 0.018713653087615967, -0.12043040990829468, -0.1340128779411316, 0.03483676537871361, -0.14736971259117126, 0.05787593498826027, 0.0932854562997818, -0.07700031250715256, 0.14253251254558563, 0.027886809781193733, -0.045988909900188446, -0.07855693995952606, 0.04468876123428345, 0.12456189095973969, -0.08433399349451065, 0.057357754558324814, -0.17745740711688995, 0.09425457566976547, 0.07148541510105133, 0.03677542880177498, -0.09664173424243927, -0.036079809069633484, -0.1379394382238388, 0.01681213639676571, -0.0025453437119722366, 0.026184722781181335, 0.09694880247116089, -0.040205683559179306, -0.18338139355182648, -0.0029370137490332127, 0.012904154136776924, 0.08390945941209793, 0.07337482273578644, -0.1412138044834137, 0.0022877841256558895, -0.05989841744303703, -0.10502666980028152, -0.030452735722064972, -0.03590907156467438, 0.07675698399543762, 0.1700502634048462, 0.07092564553022385, 0.09237215667963028, 0.02517380565404892, -0.03726238012313843, -0.020869087427854538, 0.05288068577647209, 0.045920535922050476, -0.10571222752332687, 0.12088210135698318, -0.43301671743392944, -0.05344261974096298, 0.0048782601952552795, -0.0006946676876395941, -0.182486891746521, 0.18690119683742523, -0.002459283685311675, -0.12410278618335724, -0.08556929975748062, -0.1372915357351303, 7.520865779042651e-7, -0.045347604900598526, 0.07263296097517014, 0.1114272028207779, 0.08225367218255997, -0.05075807869434357, -0.11592523753643036, -0.3031376600265503, 0.17337708175182343, -0.0035282501485198736, 0.10622814297676086, 0.02769334241747856, -0.007839741185307503, -0.17521065473556519, -0.027878019958734512, 0.07838261127471924, -0.1657983362674713, -0.0012996075674891472, -0.160919189453125, 0.05754930153489113, 0.02434173971414566, -0.10667213797569275, 0.18405911326408386, 0.024654503911733627, -0.007210256531834602, 0.09548146277666092, -0.06414640694856644, -0.025841573253273964, -0.04224435240030289, 0.14370520412921906, -0.03135773167014122, 0.087277851998806, 0.04549914970993996, -0.05113699659705162, 0.02704017236828804, 0.19276836514472961, -0.07142499834299088, -0.1786823868751526, -0.03229021653532982, 0.11015041172504425, -0.04446924105286598, 0.04645923525094986, -0.06551708281040192, -0.1057024896144867, -0.028188243508338928, 0.09406839311122894, 0.21963165700435638, -0.08171126991510391, 0.21069331467151642, -0.06421633809804916, 0.038106225430965424, 0.18474014103412628, -0.059459295123815536, 0.07265286892652512, 0.09123749285936356, -0.05051995441317558, -0.11808288842439651, -0.012312004342675209, 0.01850801892578602, 0.06746350973844528, -0.11977162957191467, 0.02540474943816662, -0.23752328753471375, -0.04914705082774162, 0.17856217920780182, -0.016227412968873978, -0.1412460058927536, -0.03346917778253555, -2.6013319771853336e-35, 0.05927472561597824, -0.037224072962999344, 0.027785493060946465, -0.2057056576013565, -0.07965554296970367, -0.016091251745820045, 0.2203410118818283, 0.022531457245349884, 0.09183050692081451, -0.22906996309757233, 0.08154645562171936 ]
https://github.com/huggingface/datasets/issues/2707
404 Not Found Error when loading LAMA dataset
Hi @dwil2444, thanks for reporting. Could you please confirm which `datasets` version you were using and if the problem persists after you update it to the latest version: `pip install -U datasets`? Thanks @stevhliu for the hint to fix this! ;)
The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download: Steps to Reproduce: 1. `from datasets import load_dataset` 2. `dataset = load_dataset('lama', 'trex')`. Results: `FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py`
41
404 Not Found Error when loading LAMA dataset The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download: Steps to Reproduce: 1. `from datasets import load_dataset` 2. `dataset = load_dataset('lama', 'trex')`. Results: `FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py` Hi @dwil2444, thanks for reporting. Could you please confirm which `datasets` version you were using and if the problem persists after you update it to the latest version: `pip install -U datasets`? Thanks @stevhliu for the hint to fix this! ;)
[ 0.24483650922775269, 0.08177945762872696, -0.03141314908862114, 0.1489459127187729, 0.18756318092346191, 0.11139783263206482, 0.02438347227871418, 0.08924628049135208, -0.18452854454517365, 0.21636386215686798, -0.08765081316232681, 0.06820820271968842, -0.055100344121456146, -0.11959469318389893, -0.01268166396766901, -0.17583192884922028, -0.09796970337629318, -0.129789799451828, -0.05108692869544029, -0.027935897931456566, 0.15473361313343048, 0.11183402687311172, 0.08355320245027542, -0.023465005680918694, 0.053011272102594376, 0.11214344948530197, -0.03310345858335495, -0.0036516417749226093, 0.040748804807662964, -0.2365415394306183, 0.21652115881443024, -0.04231635481119156, -0.025815773755311966, 0.20950064063072205, 0.0000057280681176052894, -0.011213010177016258, 0.1686083972454071, 0.08760841190814972, -0.1305915117263794, -0.04032989591360092, -0.04365546628832817, -0.07774154841899872, -0.0055413576774299145, 0.02256009168922901, -0.07238482683897018, 0.005669527221471071, 0.032627180218696594, 0.04102523997426033, -0.012701993808150291, 0.1862196922302246, 0.08214025944471359, 0.14761824905872345, 0.006518140435218811, -0.10775920748710632, 0.10493897646665573, -0.06805022060871124, -0.021246053278446198, 0.2502822279930115, -0.20921622216701508, 0.09721910208463669, 0.04599133878946304, 0.08055081218481064, 0.11915475130081177, 0.0903988629579544, -0.09784069657325745, 0.02640852890908718, 0.0453447625041008, 0.004414363298565149, 0.11118683964014053, 0.22048038244247437, 0.14306797087192535, 0.053951412439346313, -0.21597079932689667, 0.030322475358843803, -0.010357318446040154, -0.02531363256275654, 0.05312705785036087, 0.055453039705753326, -0.07885175943374634, 0.08338421583175659, -0.11455871909856796, -0.03365425765514374, 0.013559595681726933, 0.004925765097141266, -0.0029417010955512524, -0.08712580800056458, -0.20259062945842743, -0.00770734716206789, -0.1518540233373642, -0.30165722966194153, 0.06893230229616165, -0.009968350641429424, -0.00852407980710268, 0.0370953343808651, 0.15764272212982178, 0.12218204140663147, -0.10346858203411102, 0.05716855451464653, -0.03791969269514084, -0.017695583403110504, 0.026042627170681953, -0.13052064180374146, -0.13791504502296448, 0.0378674641251564, -0.011615890078246593, 0.0504162572324276, 0.056414976716041565, -0.005102349445223808, 0.1164974719285965, 0.18872861564159393, 0.0682152807712555, 0.04028528556227684, -0.05991770327091217, -0.27082499861717224, -0.17052534222602844, -0.0007921025389805436, 0.09975887835025787, 0.019944002851843834, -0.006942807696759701, -0.006554599851369858, 0.01906239055097103, 0.08395526558160782, -0.006158605683594942, 0.07475722581148148, -0.027067894116044044, 0.08591824769973755, -0.17726922035217285, 0.07994762808084488, 0.09371395409107208, -0.04980546981096268, 0.014784922823309898, -0.08734926581382751, -0.02287849597632885, -0.03926956281065941, 0.10892832279205322, -0.05545375868678093, 0.012968149036169052, -0.20560288429260254, -0.1425061821937561, 0.08068036288022995, 0.074081189930439, -0.005026287864893675, -0.08717943727970123, 0.04870564118027687, 0.27829331159591675, -0.008581627160310745, 0.03147250786423683, -0.040440477430820465, 0.0013896096497774124, -0.03068535029888153, -0.010192640125751495, 0.08331828564405441, -0.08441771566867828, -0.05226459726691246, 0.06175621971487999, 0.09944739192724228, -0.03407050669193268, 0.01459871418774128, -0.18891258537769318, -0.09697321802377701, 0.07424994558095932, 0.10696356743574142, 0.16176655888557434, -0.046592339873313904, 0.10164545476436615, 0.12218805402517319, -0.04963013157248497, 0.07604780793190002, -0.07168897986412048, -0.11629322916269302, 0.0068880850449204445, -0.04487181827425957, -0.15827137231826782, 0.09436919540166855, -0.2857661545276642, 0.03230515494942665, -0.01023442018777132, -0.04595080763101578, -0.13033804297447205, -0.05580602586269379, 0.1555587351322174, -0.10541263967752457, -0.0857473686337471, 0.010289771482348442, -0.046773821115493774, -0.024004509672522545, 0.17661501467227936, -0.02868693321943283, 0.012923838570713997, -0.008939608000218868, 0.01770259067416191, -0.0481795035302639, 0.017965245991945267, -0.0047868601977825165, 0.003378779860213399, -0.002895662561058998, 0.12774349749088287, -0.14146025478839874, 0.02804338000714779, -0.13249267637729645, -0.10436321049928665, 0.011356592178344727, 0.05182066559791565, 0.15423709154129028, 0.055527590215206146, 0.003447428345680237, -0.03803795948624611, 0.10795489698648453, 0.007666213437914848, -0.12480830401182175, -0.16567273437976837, -0.05107281729578972, -0.11215600371360779, 0.010899469256401062, 0.043798938393592834, 0.02007068134844303, -0.009249009191989899, 0.006262705661356449, 0.02245684154331684, 0.1885632574558258, -0.06661166250705719, 0.014034873805940151, 0.12385321408510208, 0.09226393699645996, -0.2914891839027405, -0.016097890213131905, -0.05614563077688217, -0.049143753945827484, 0.1291099488735199, 0.030177628621459007, -0.15383373200893402, 0.015825582668185234, 0.09321759641170502, -0.020627468824386597, -0.011786973103880882, 0.010194674134254456, 0.21185868978500366, -0.4006139636039734, -0.0057175601832568645, -0.10689940303564072, -0.10624412447214127, 0.11582864820957184, -0.09714870899915695, 0.007269829511642456, 0.029991019517183304, 0.0040788170881569386, -0.01708647981286049, -0.02467857114970684, -0.045156221836805344, 0.06554198265075684, 0.12857943773269653, -0.05274902284145355, -0.21105587482452393, -0.02051118016242981, 0.22836752235889435, 0.132308229804039, 0.02403302676975727, -0.005940544884651899, -0.12613482773303986, -0.1538754552602768, 0.17704422771930695, -0.03933524340391159, -0.0779842883348465, 0.11073977500200272, 0.03488070145249367, 0.11891648173332214, 0.02812325395643711, 0.15013273060321808, -0.15293261408805847, 0.0002062551211565733, 0.01692967116832733, -0.009197612293064594, -0.13325345516204834, -0.09194394946098328, -0.09972111880779266, 0.007332888897508383, -0.018288396298885345, 0.05922994017601013, 0.04785821959376335, -0.011307568289339542, -0.28892651200294495, 0.034415192902088165, -0.022819316014647484, -0.05498465150594711, 0.17432494461536407, -0.05704065412282944, -0.2666320204734802, -0.1894659847021103, -0.010710569098591805, -0.02885373868048191, -0.15859007835388184, 0.09576275199651718, -0.09009488672018051, -0.12650898098945618, -0.17475812137126923, -0.012601436115801334, -0.029690245166420937, -0.052273306995630264, -0.014627722091972828, 0.12407190352678299, -0.04975009709596634, 0.20910212397575378, 0.05173642188310623, -0.08173999935388565, 0.0018650125712156296, 0.006607599090784788, 0.010975795798003674, -0.018173901364207268, 0.010938286781311035, -0.1584855318069458, -0.006075239274650812, -0.1575259268283844, 0.21395696699619293, 0.09271680563688278, -0.09752225130796432, 0.028099985793232918, 0.13461320102214813, -0.028685366734862328, 0.08791093528270721, 0.24935054779052734, 0.06613560765981674, -0.057956285774707794, 0.046279046684503555, 0.0657339096069336, -0.04707827791571617, 0.07532128691673279, -0.10698484629392624, -0.010191918350756168, 0.00934674683958292, -0.0415123887360096, -0.037705495953559875, -0.07704672962427139, 0.010738970711827278, -0.0922730416059494, -0.12241627275943756, -0.08120214194059372, -0.020881131291389465, -0.07735765725374222, 0.21997490525245667, 0.018250368535518646, -0.11349450051784515, 0.05955547094345093, -0.04775775223970413, 0.08908052742481232, 0.02862129732966423, -0.14560939371585846, -0.002695598406717181, -0.014359195716679096, 0.08695972710847855, -0.12251587212085724, -0.006236276123672724, -0.022953126579523087, 0.08260458707809448, -0.16170132160186768, 0.03161458671092987, -0.04033191129565239, -0.152302548289299, 0.09288215637207031, 0.12160379439592361, 0.08463852852582932, 0.08815566450357437, 0.02928498201072216, -0.11084380745887756, 0.04350616782903671, -0.04478074982762337, 0.1511804610490799, 0.06876053661108017, 0.26682305335998535, 0.042814768850803375, 0.0946839228272438, -0.0804297998547554, 0.04710543528199196, 0.080011285841465, 0.026097729802131653, 0.2034529745578766, 0.2406572848558426, -0.2536006271839142, -0.0219853725284338, 0.02921745367348194, -0.09287930279970169, -0.005426465533673763, -0.27132904529571533, -0.003319285111501813, 0.09893995523452759, 0.012057776562869549, 0.09894312173128128, 0.029240090399980545, 0.19618481397628784, 0.042383305728435516, 0.0887891948223114, -0.11740690469741821, 0.06050688773393631, 0.12332157790660858, -0.29728108644485474, 0.08697781711816788, -0.1360475867986679, 0.22007399797439575, 0.25457605719566345, 0.06387702375650406, -0.03653064742684364, 0.05026990547776222, 0.10986106842756271, 0.04290780425071716, 0.1314454823732376, 0.01451842300593853, 0.019721630960702896, 0.052505332976579666, 0.13735918700695038, 0.04357149451971054, -0.07776270061731339, 0.02323061227798462, 0.14589862525463104, -0.03412388637661934, 0.00847503449767828, 0.0009671113220974803, 0.024948861449956894, 0.001975306309759617, -0.10506999492645264, -0.07221219688653946, -0.1415635198354721, 0.08761993795633316, -0.14858493208885193, -0.030385620892047882, 0.03820071741938591, 0.09247960895299911, 0.04733368009328842, 0.09609704464673996, -0.0811898410320282, 0.12031993269920349, -0.021622752770781517, -0.03145147114992142, 0.035461604595184326, 0.025581007823348045, 0.05851132422685623, 0.23310786485671997, -0.06091875582933426, 0.3099777102470398, -0.27554062008857727, -0.21696247160434723, -0.011996818706393242, -0.11742258816957474, -0.02733156830072403, 0.16089299321174622, -0.011925650760531425, -0.027999622747302055, 0.06156469136476517, -0.06411043554544449, -0.02082253247499466, 0.04314689338207245, 0.013507477007806301, -0.0667131319642067, -0.07675836235284805, 0.09825948625802994, -0.23278474807739258, 0.014915069565176964, 0.06864140927791595, 0.2466503530740738, 0.06002386286854744, -0.005171689670532942, -0.09960350394248962, -0.19453047215938568, -0.05016728863120079, -0.19217421114444733, -0.053731273859739304, 0.16149595379829407, 0.0016221522819250822, 0.2247222363948822, -0.06762152165174484, 0.09887639433145523, 0.03432304784655571, 0.18161454796791077, 0.03728121519088745, -0.014218323864042759, 0.046863406896591187, 0.16175171732902527, -0.02630673348903656, -0.015016254037618637, 0.0383591465651989, -0.1388542652130127, 0.027263380587100983, 0.11942240595817566, -0.047607842832803726, 0.1318974792957306, -0.23078978061676025, -0.03161552548408508, 0.07478627562522888, 0.2097439169883728, -0.04830396920442581, -0.10521796345710754, -0.1761300265789032, 0.16962604224681854, 0.016420848667621613, 0.08837948739528656, -0.045723073184490204, 0.11293114721775055, -0.06254245340824127, -0.14454713463783264, 0.08351896703243256, 0.08079588413238525, 0.03954889252781868, 0.102572500705719, -0.0057558887638151646, 0.07646255195140839, -0.0352470763027668, -0.12347554415464401, -0.14546054601669312, 0.10477619618177414, -0.05145399644970894, -0.010129234753549099, -0.09020918607711792, 0.02636292204260826, 0.10145986080169678, 0.026446403935551643, 0.06301376223564148, 0.04171569645404816, -0.11265842616558075, -0.0004985730047337711, 0.06269051879644394, 0.08806023746728897, 0.03489147126674652, -0.09750805050134659, -0.10136887431144714, -0.09022748470306396, -0.10875029116868973, -0.10988188534975052, 0.11596689373254776, -0.02428249455988407, 0.23336072266101837, 0.08429239690303802, -0.06877399235963821, 0.007756545674055815, 0.05536144599318504, 0.22663281857967377, -0.09860001504421234, -0.004149473737925291, 0.1107950434088707, 0.03739988058805466, -0.1831711083650589, 0.06042642146348953, -0.029440663754940033, 0.04137107729911804, -0.07541914284229279, -0.13064292073249817, 0.16261805593967438, -0.08900818973779678, 0.014016772620379925, 0.09212634712457657, -0.06202077120542526, -0.11612780392169952, -0.05043561011552811, 0.0016212040791288018, 0.07412880659103394, -0.008068488910794258, 0.06209956109523773, -0.12694931030273438, -2.3463967798998816e-32, -0.0749160423874855, 0.09882127493619919, 0.0604509674012661, -0.024606285616755486, -0.2592953145503998, 0.06146490201354027, 0.04785441234707832, -0.0447823666036129, -0.2828729450702667, -0.10729794949293137, 0.028749210759997368, 0.0250384584069252, -0.07476580142974854, 0.06822402030229568, -0.050251469016075134, -0.11468679457902908, -0.19966502487659454, 0.006445978302508593, 0.00919764582067728, -0.12590479850769043, 0.080415740609169, -0.007409901358187199, 0.024647410959005356, 0.03023284487426281, 0.11257390677928925, -0.01240383181720972, -0.16279518604278564, 0.022381257265806198, 0.005398509092628956, 0.013091730885207653, -0.15708915889263153, -0.018022678792476654, -0.011038492433726788, -0.07066347450017929, -0.2315611094236374, -0.04776344820857048, -0.22876404225826263, -0.14756439626216888, -0.18625590205192566, 0.03781139478087425, 0.023433439433574677, 0.09532535821199417, -0.09273931384086609, -0.19749172031879425, 0.0519610196352005, 0.25129199028015137, -0.07347168773412704, -0.04866543784737587, -0.00941231194883585, -0.02520361728966236, 0.018697872757911682, 0.03183220699429512, -0.11497199535369873, -0.07823842018842697, 0.14138014614582062, -0.09695617109537125, 0.020317373797297478, 0.13795652985572815, 0.0546373687684536, 0.026439139619469643, 0.233242928981781, 0.04445024952292442, 0.010348386131227016, 0.03299843892455101, 0.06629923731088638, -0.07939364016056061, 0.20951713621616364, -0.034115102142095566, 0.13706380128860474, -0.14831668138504028, 0.0982389971613884, 0.047723859548568726, 0.010512818582355976, -0.13401414453983307, -0.15394307672977448, 0.02154727280139923, -0.14748117327690125, 0.052618540823459625, 0.08724918216466904, -0.09160949289798737, 0.13467738032341003, 0.001537419855594635, -0.056533198803663254, -0.08192932605743408, 0.04524540156126022, 0.1554403156042099, -0.08908814936876297, 0.05733142048120499, -0.16685497760772705, 0.1032278835773468, 0.0625753253698349, 0.04213850945234299, -0.10836902260780334, -0.038328152149915695, -0.1421252191066742, 0.031285371631383896, -0.014785346575081348, 0.012705836445093155, 0.11660869419574738, -0.03296615928411484, -0.19779551029205322, -0.0063737235032022, 0.0011754826409742236, 0.09196792542934418, 0.0778806284070015, -0.17887313663959503, 0.019946111366152763, -0.06561537086963654, -0.1253700852394104, -0.027500655502080917, -0.05225754156708717, 0.08337834477424622, 0.16876383125782013, 0.06699887663125992, 0.08362622559070587, 0.04434235394001007, -0.05199097841978073, -0.020541582256555557, 0.0698438435792923, 0.04798925668001175, -0.10981243848800659, 0.10712216794490814, -0.45501524209976196, -0.06813304126262665, 0.04028967767953873, -0.0023895367048680782, -0.1919195055961609, 0.20120897889137268, 0.008770626969635487, -0.11959467083215714, -0.08024071902036667, -0.1476469337940216, 7.454032697751245e-7, -0.04321020469069481, 0.059132229536771774, 0.11838752776384354, 0.1155676543712616, -0.05060850456357002, -0.10658250004053116, -0.29537227749824524, 0.16133622825145721, -0.017599282786250114, 0.08762788027524948, 0.02921186573803425, -0.011458838358521461, -0.18800121545791626, -0.049798961728811264, 0.09904976934194565, -0.18470071256160736, 0.00141163170337677, -0.14106498658657074, 0.08863118290901184, 0.015504606068134308, -0.06785687059164047, 0.20693688094615936, 0.03971666097640991, 0.010218264535069466, 0.09414290636777878, -0.07507982850074768, -0.000525866576936096, -0.04602833092212677, 0.16053450107574463, -0.013680625706911087, 0.06810033321380615, 0.061462245881557465, -0.050514671951532364, 0.05005960911512375, 0.22418493032455444, -0.05407344177365303, -0.18027377128601074, -0.04079669713973999, 0.11314302682876587, -0.022695185616612434, 0.06193952634930611, -0.07001567631959915, -0.11805183440446854, -0.03168777376413345, 0.11095589399337769, 0.22215025126934052, -0.0894482210278511, 0.1872890591621399, -0.0499441958963871, 0.030970918014645576, 0.20186080038547516, -0.0565204843878746, 0.07401102781295776, 0.10706976056098938, -0.0369851291179657, -0.12497390806674957, 0.0009614140726625919, 0.014611860737204552, 0.06341592222452164, -0.12348154187202454, 0.021927423775196075, -0.23682217299938202, -0.04631567746400833, 0.18099677562713623, 0.005250740796327591, -0.14334209263324738, -0.020696165040135384, -2.5918241334737265e-35, 0.039242397993803024, -0.019582586362957954, 0.02593701146543026, -0.20406991243362427, -0.0610831119120121, -0.021148696541786194, 0.24715052545070648, 0.00706434017047286, 0.09965037554502487, -0.2218555063009262, 0.1071234717965126 ]
https://github.com/huggingface/datasets/issues/2707
404 Not Found Error when loading LAMA dataset
@stevhliu @albertvillanova updating to the latest version of datasets did in fact fix this issue. Thanks a lot for your help!
The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download: Steps to Reproduce: 1. `from datasets import load_dataset` 2. `dataset = load_dataset('lama', 'trex')`. Results: `FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py`
21
404 Not Found Error when loading LAMA dataset The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download: Steps to Reproduce: 1. `from datasets import load_dataset` 2. `dataset = load_dataset('lama', 'trex')`. Results: `FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py` @stevhliu @albertvillanova updating to the latest version of datasets did in fact fix this issue. Thanks a lot for your help!
[ 0.25205183029174805, 0.07512972503900528, -0.027934223413467407, 0.1535506248474121, 0.1908663511276245, 0.10961252450942993, 0.011011614464223385, 0.09660381078720093, -0.18600289523601532, 0.2049110382795334, -0.09197533875703812, 0.07161059230566025, -0.059482328593730927, -0.11536051332950592, -0.006166981067508459, -0.16626198589801788, -0.09615974128246307, -0.13724841177463531, -0.051033347845077515, -0.03438485786318779, 0.14381113648414612, 0.11440227925777435, 0.08780645579099655, -0.031025826930999756, 0.0464373417198658, 0.12506550550460815, -0.040156833827495575, -0.0284070186316967, 0.05706705152988434, -0.23631848394870758, 0.20438434183597565, -0.04102553427219391, -0.04146962612867355, 0.1882571578025818, 0.000005768541996076237, -0.020484857261180878, 0.1604653149843216, 0.0933588445186615, -0.1178487241268158, -0.037457361817359924, -0.039024364203214645, -0.047786153852939606, -0.03219778835773468, 0.0348537340760231, -0.08283407241106033, 0.005625818390399218, 0.03161327540874481, 0.06301984935998917, -0.018887760117650032, 0.20369093120098114, 0.07305555045604706, 0.1461053341627121, 0.01079660002142191, -0.10393449664115906, 0.10157977789640427, -0.07260100543498993, -0.027953799813985825, 0.2641676664352417, -0.20251089334487915, 0.0909929871559143, 0.033239442855119705, 0.0738263726234436, 0.13577519357204437, 0.08181692659854889, -0.09245400875806808, 0.017144257202744484, 0.0326630100607872, 0.0035931009333580732, 0.11066050082445145, 0.21363165974617004, 0.13501088321208954, 0.05904556065797806, -0.20370160043239594, 0.02878015674650669, 0.01458234153687954, -0.026131268590688705, 0.056364402174949646, 0.07455909997224808, -0.07934940606355667, 0.08998608589172363, -0.10367374122142792, -0.022544272243976593, 0.01723819598555565, 0.011874495074152946, 0.003942232578992844, -0.08733438700437546, -0.20119041204452515, -0.015670914202928543, -0.15737296640872955, -0.28207552433013916, 0.06409428268671036, -0.008418763987720013, 0.005987857934087515, 0.03337458148598671, 0.16517724096775055, 0.13266338407993317, -0.08723930269479752, 0.06305459141731262, -0.03936506807804108, -0.011641543358564377, 0.02245553769171238, -0.12368150055408478, -0.150899276137352, 0.02154443971812725, -0.028660453855991364, 0.07190552353858948, 0.07094420492649078, -0.01915729232132435, 0.14407384395599365, 0.19198676943778992, 0.05137080326676369, 0.03768475353717804, -0.08201871067285538, -0.26509779691696167, -0.17358332872390747, 0.004913889337331057, 0.10941211134195328, 0.01629905216395855, 0.016147570684552193, -0.01986905001103878, 0.02548925206065178, 0.08170429617166519, 0.002058965153992176, 0.06829602271318436, -0.020186694338917732, 0.09759989380836487, -0.17162887752056122, 0.07973767071962357, 0.08684440702199936, -0.0504646860063076, 0.03359634429216385, -0.0972871333360672, -0.048704344779253006, -0.040686026215553284, 0.08990123867988586, -0.08448787033557892, 0.009981898590922356, -0.20867092907428741, -0.12097302079200745, 0.08566530793905258, 0.0756678506731987, -0.009760039858520031, -0.0743831992149353, 0.039425078779459, 0.2551962435245514, -0.02746175415813923, 0.03415006399154663, -0.042752742767333984, 0.012233825400471687, -0.04276876524090767, 0.009288040921092033, 0.07715976983308792, -0.10086623579263687, -0.08244868367910385, 0.048538580536842346, 0.10049691051244736, -0.030989740043878555, 0.003033751854673028, -0.1586046665906906, -0.09204332530498505, 0.07233066856861115, 0.10894327610731125, 0.1509353369474411, -0.049407873302698135, 0.09944280982017517, 0.11542561650276184, -0.06256579607725143, 0.07382847368717194, -0.06144846975803375, -0.12465072423219681, 0.016582727432250977, -0.04277307167649269, -0.16262851655483246, 0.11255761981010437, -0.29763439297676086, 0.03810250759124756, -0.0018049938371405005, -0.040304940193891525, -0.12044619768857956, -0.044673431664705276, 0.1410183608531952, -0.11586116999387741, -0.09579257667064667, 0.003314260859042406, -0.06016719341278076, -0.020441574975848198, 0.17209981381893158, 0.0024853076320141554, 0.028187671676278114, -0.017628692090511322, 0.010224119760096073, -0.044279780238866806, 0.00023719199816696346, -0.021545544266700745, 0.0026904954575002193, 0.024746887385845184, 0.13862907886505127, -0.14142099022865295, 0.04347265139222145, -0.1360512524843216, -0.08935720473527908, -0.0034338876139372587, 0.02630036510527134, 0.1617882400751114, 0.07269977778196335, 0.02376742660999298, -0.03608707711100578, 0.13383957743644714, 0.002438898663967848, -0.10668358206748962, -0.15673008561134338, -0.0352645143866539, -0.11482197791337967, -0.0008186843479052186, 0.03518670052289963, 0.021295610815286636, 0.0029459844809025526, 0.019306283444166183, 0.0321010947227478, 0.20479737222194672, -0.059450652450323105, -0.005290470086038113, 0.09745697677135468, 0.0838223546743393, -0.28472569584846497, -0.0378224141895771, -0.06144506111741066, -0.037533435970544815, 0.12488343566656113, 0.03413571044802666, -0.16300323605537415, 0.007535738870501518, 0.09971926361322403, -0.0369359515607357, -0.019315123558044434, 0.019497301429510117, 0.21616291999816895, -0.4066874384880066, -0.00770801305770874, -0.11873378604650497, -0.11350473016500473, 0.11551680415868759, -0.0774095430970192, 0.006906813941895962, 0.03563908860087395, -0.0174025297164917, 0.005235386546701193, -0.02710834890604019, -0.04571424424648285, 0.07185152918100357, 0.1371442675590515, -0.05417090281844139, -0.21168237924575806, -0.007334341760724783, 0.2141803354024887, 0.12717440724372864, 0.014552688226103783, -0.004762559197843075, -0.12464252859354019, -0.1437785029411316, 0.18270690739154816, -0.03944214805960655, -0.06328622251749039, 0.09610676765441895, 0.031154939904808998, 0.11408205330371857, 0.015507626347243786, 0.1327519565820694, -0.14781145751476288, -0.005068690050393343, 0.018298417329788208, -0.01760912500321865, -0.12698280811309814, -0.08008719980716705, -0.11088578402996063, 0.0009777575032785535, 0.008227908983826637, 0.044075045734643936, 0.03780680522322655, -0.004256208427250385, -0.2852447032928467, 0.026993336156010628, -0.004899532999843359, -0.05100451782345772, 0.17650923132896423, -0.0729331523180008, -0.2540780305862427, -0.194675013422966, 0.009063249453902245, -0.004731583409011364, -0.160039022564888, 0.08312921971082687, -0.10321664065122604, -0.11989621818065643, -0.15342846512794495, -0.022733526304364204, -0.03823232650756836, -0.05380301550030708, 0.011544852517545223, 0.11662096530199051, -0.046915099024772644, 0.20803005993366241, 0.051299914717674255, -0.09580277651548386, 0.016292700543999672, -0.006544557865709066, 0.006182810291647911, -0.015479185618460178, -0.004463167395442724, -0.1629081815481186, 0.007490081712603569, -0.17829307913780212, 0.22563450038433075, 0.06868360936641693, -0.1082020029425621, 0.02116936445236206, 0.1516774594783783, -0.033018071204423904, 0.06610111147165298, 0.24250347912311554, 0.07624616473913193, -0.04734177514910698, 0.054084766656160355, 0.056852709501981735, -0.039229296147823334, 0.07259221374988556, -0.09725804626941681, -0.01953418180346489, 0.0005441737012006342, -0.041530437767505646, -0.029696522280573845, -0.06483025848865509, -0.008481685072183609, -0.08036033809185028, -0.11958237737417221, -0.08967380970716476, -0.021790247410535812, -0.08980781584978104, 0.24825307726860046, -0.011031397618353367, -0.12271749973297119, 0.041121892631053925, -0.04493449628353119, 0.07711787521839142, 0.01448042318224907, -0.13092833757400513, 0.0038291714154183865, -0.023823998868465424, 0.06670595705509186, -0.1390250325202942, -0.018056470900774002, -0.025439703837037086, 0.0674695074558258, -0.17526692152023315, 0.022648505866527557, -0.048195067793130875, -0.12756755948066711, 0.09684024751186371, 0.12733648717403412, 0.07870912551879883, 0.08519209921360016, 0.05155579000711441, -0.1209668517112732, 0.012266918085515499, -0.0541999414563179, 0.1639789193868637, 0.06036977469921112, 0.2642037868499756, 0.04409458488225937, 0.09966482222080231, -0.06450148671865463, 0.04590549319982529, 0.08942904323339462, 0.048196226358413696, 0.19940321147441864, 0.21574918925762177, -0.24550148844718933, -0.04023421183228493, 0.03474539518356323, -0.08177471905946732, -0.020618483424186707, -0.27852654457092285, -0.0195500236004591, 0.09308254718780518, 0.0017180594149976969, 0.07652305066585541, 0.03520487621426582, 0.19250130653381348, 0.03255832940340042, 0.09204888343811035, -0.11034945398569107, 0.06096242368221283, 0.12918947637081146, -0.30527886748313904, 0.07916386425495148, -0.14263764023780823, 0.22189605236053467, 0.268560528755188, 0.04072016850113869, -0.040270835161209106, 0.03255173936486244, 0.10654789954423904, 0.05862050503492355, 0.13050372898578644, -0.0024160181637853384, 0.038319461047649384, 0.05277559161186218, 0.1441665142774582, 0.05999070033431053, -0.0628281831741333, 0.025972377508878708, 0.1474597156047821, -0.014855028130114079, 0.021830987185239792, -0.008971056900918484, 0.010028854012489319, 0.005112854298204184, -0.10452590882778168, -0.08322405815124512, -0.12235689163208008, 0.0675966814160347, -0.15226347744464874, -0.018027402460575104, 0.050354260951280594, 0.10834044963121414, 0.03244931995868683, 0.10125426203012466, -0.08431985229253769, 0.11613466590642929, -0.03351271525025368, -0.03654715418815613, 0.0516466423869133, 0.028236668556928635, 0.06084076687693596, 0.22704315185546875, -0.05935002490878105, 0.30002135038375854, -0.27127423882484436, -0.21949024498462677, 0.02549147605895996, -0.12289348244667053, -0.05009732395410538, 0.1702461689710617, -0.009366592392325401, -0.03665264695882797, 0.05913906916975975, -0.07383600622415543, -0.03170028328895569, 0.06116650253534317, 0.019056884571909904, -0.07407119870185852, -0.08171384036540985, 0.10868170857429504, -0.253345787525177, -0.012340662069618702, 0.05689552053809166, 0.25939494371414185, 0.07698286324739456, 0.0018556587165221572, -0.11187030375003815, -0.20222584903240204, -0.05240074545145035, -0.21049092710018158, -0.05569666996598244, 0.1593398004770279, 0.008961936458945274, 0.22646832466125488, -0.05719638615846634, 0.10707319527864456, 0.041391074657440186, 0.17020869255065918, 0.03875703737139702, -0.027715835720300674, 0.052345335483551025, 0.157131165266037, -0.029152434319257736, -0.018372124060988426, 0.02261778526008129, -0.15853507816791534, 0.015978505834937096, 0.12624628841876984, -0.026726726442575455, 0.13448266685009003, -0.2247786968946457, -0.035684969276189804, 0.08506284654140472, 0.225208580493927, -0.05681329593062401, -0.1040349081158638, -0.1721086949110031, 0.1927146315574646, 0.008737333118915558, 0.09929415583610535, -0.047972071915864944, 0.11403234302997589, -0.08477690070867538, -0.1316417157649994, 0.05521548539400101, 0.10137180984020233, 0.024327289313077927, 0.12368733435869217, -0.000578902312554419, 0.068418949842453, -0.041183952242136, -0.1181919053196907, -0.16420140862464905, 0.1376103162765503, -0.06615279614925385, -0.009569245390594006, -0.08193504810333252, 0.023054324090480804, 0.10445181280374527, 0.022528477013111115, 0.07369889318943024, 0.03153255954384804, -0.12530888617038727, 0.008280342444777489, 0.07597318291664124, 0.09503163397312164, 0.029620176181197166, -0.09436748176813126, -0.08113094419240952, -0.10250532627105713, -0.11933653056621552, -0.12625810503959656, 0.12106044590473175, -0.023706180974841118, 0.25249817967414856, 0.09185204654932022, -0.07127384841442108, 0.01764170452952385, 0.06165478378534317, 0.22665227949619293, -0.08941957354545593, -0.005683045834302902, 0.09979337453842163, 0.03752272203564644, -0.19727331399917603, 0.06142145395278931, -0.009173485450446606, 0.04997954145073891, -0.08338410407304764, -0.11150142550468445, 0.16638779640197754, -0.08349429816007614, 0.045783866196870804, 0.08258169889450073, -0.07089803367853165, -0.10641636699438095, -0.0700230821967125, 0.0168391615152359, 0.07613885402679443, 0.0016009497921913862, 0.05748077481985092, -0.1327020227909088, -2.3239405766321542e-32, -0.07917563617229462, 0.08164124935865402, 0.06780823320150375, -0.029822776094079018, -0.2751353979110718, 0.07526256889104843, 0.042267363518476486, -0.025189295411109924, -0.25937938690185547, -0.0997941642999649, 0.021407021209597588, 0.02522960491478443, -0.07203085720539093, 0.07376666367053986, -0.048066094517707825, -0.11304842680692673, -0.19924800097942352, 0.00031147856498137116, 0.005169245880097151, -0.11755488812923431, 0.0803709626197815, -0.006662311498075724, 0.013365878723561764, 0.07954804599285126, 0.10545987635850906, -0.012545150704681873, -0.1663840264081955, 0.025080537423491478, 0.012902037240564823, 0.020320354029536247, -0.15191218256950378, -0.015323623083531857, -0.01529670786112547, -0.0741766020655632, -0.24086320400238037, -0.05195861682295799, -0.22388103604316711, -0.1540539562702179, -0.1618257462978363, 0.06400997191667557, 0.042261697351932526, 0.08493256568908691, -0.11155708134174347, -0.19697119295597076, 0.04532332718372345, 0.2498411387205124, -0.06352128088474274, -0.06170360743999481, -0.013453761115670204, -0.0365339070558548, 0.01128021813929081, 0.03647483512759209, -0.12218506634235382, -0.09755495935678482, 0.14551495015621185, -0.08750775456428528, 0.035434987396001816, 0.12115383893251419, 0.07509592175483704, 0.023189201951026917, 0.20601540803909302, 0.051336709409952164, 0.007297141943126917, 0.026238204911351204, 0.060493603348731995, -0.08075849711894989, 0.19055216014385223, -0.04104069620370865, 0.11066139489412308, -0.15417751669883728, 0.11658995598554611, 0.05498772859573364, 0.021897612139582634, -0.11541551351547241, -0.12603582441806793, 0.023320455104112625, -0.14441584050655365, 0.03920121490955353, 0.08043570071458817, -0.0771600529551506, 0.14311859011650085, 0.019634230062365532, -0.04957561939954758, -0.0813947543501854, 0.05160949379205704, 0.1431635469198227, -0.10201668739318848, 0.06647874414920807, -0.17857657372951508, 0.10913855582475662, 0.08595002442598343, 0.028132161125540733, -0.10133529454469681, -0.046327728778123856, -0.1303728073835373, 0.028118683025240898, -0.022143879905343056, 0.023587794974446297, 0.10695619136095047, -0.039385683834552765, -0.19939038157463074, 0.0018694730242714286, 0.0026821501087397337, 0.09495677798986435, 0.07881132513284683, -0.15402472019195557, 0.027177564799785614, -0.06180734559893608, -0.10231988877058029, -0.023657092824578285, -0.0422433540225029, 0.09137435257434845, 0.18294963240623474, 0.06841805577278137, 0.08277072012424469, 0.024895640090107918, -0.03901463747024536, -0.014871620573103428, 0.056562215089797974, 0.043325867503881454, -0.10287638753652573, 0.11381528526544571, -0.4320536255836487, -0.0572819784283638, 0.01328209601342678, 0.007354617118835449, -0.18515218794345856, 0.21354931592941284, -0.011331388726830482, -0.13710568845272064, -0.09013912826776505, -0.13446807861328125, 7.48801596728299e-7, -0.05187225714325905, 0.07089061290025711, 0.1251315474510193, 0.09992837905883789, -0.045355480164289474, -0.11046098172664642, -0.294446736574173, 0.17481553554534912, -0.013777905143797398, 0.08885762095451355, 0.009903301484882832, 0.008959359489381313, -0.1739710420370102, -0.03981759399175644, 0.0708913579583168, -0.16970542073249817, -0.0028855244163423777, -0.14718908071517944, 0.0709708109498024, 0.028702016919851303, -0.08476189523935318, 0.19915740191936493, 0.033524759113788605, 0.0025032167322933674, 0.09724516421556473, -0.06702979654073715, -0.02231748029589653, -0.03827466070652008, 0.15612436830997467, -0.0075547099113464355, 0.07426061481237411, 0.061527762562036514, -0.06402808427810669, 0.03736366331577301, 0.19787198305130005, -0.05747567489743233, -0.1753322035074234, -0.043320249766111374, 0.11691951006650925, -0.04305246099829674, 0.06976253539323807, -0.08302191644906998, -0.10320279002189636, -0.018703440204262733, 0.09974319487810135, 0.22953945398330688, -0.08475714921951294, 0.2061849683523178, -0.06151198595762253, 0.03379148244857788, 0.19491344690322876, -0.06853745877742767, 0.07787171006202698, 0.08843160420656204, -0.037118423730134964, -0.1323927342891693, -0.0042581865563988686, 0.024592936038970947, 0.06366313248872757, -0.11531013995409012, 0.027129093185067177, -0.2266717255115509, -0.03265143558382988, 0.17439603805541992, 0.002577784238383174, -0.13922107219696045, -0.03025720827281475, -2.68592222666831e-35, 0.05564742162823677, -0.02797871083021164, 0.02490844763815403, -0.20068436861038208, -0.05001936852931976, -0.019515154883265495, 0.22320277988910675, 0.0008945748559199274, 0.07645731419324875, -0.23480726778507233, 0.09927243739366531 ]
https://github.com/huggingface/datasets/issues/2705
404 not found error on loading WIKIANN dataset
Hi @ronbutan, thanks for reporting. You are right: we have recently found that the link to the original PAN-X dataset (also called WikiANN), hosted at Dropbox, is no longer working. We have opened an issue in the GitHub repository of the original dataset (afshinrahimi/mmner#4) and we have also contacted the author by email to ask if they are planning to fix this issue. See the details here: https://github.com/huggingface/datasets/issues/2691#issuecomment-885463027 I close this issue because it is the same as in #2691. Feel free to subscribe to that other issue to be informed about any updates.
## Describe the bug Unable to retreive wikiann English dataset ## Steps to reproduce the bug ```python from datasets import list_datasets, load_dataset, list_metrics, load_metric WIKIANN = load_dataset("wikiann","en") ``` ## Expected results Colab notebook should display successful download status ## Actual results FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.1 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0
94
404 not found error on loading WIKIANN dataset ## Describe the bug Unable to retreive wikiann English dataset ## Steps to reproduce the bug ```python from datasets import list_datasets, load_dataset, list_metrics, load_metric WIKIANN = load_dataset("wikiann","en") ``` ## Expected results Colab notebook should display successful download status ## Actual results FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.1 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0 Hi @ronbutan, thanks for reporting. You are right: we have recently found that the link to the original PAN-X dataset (also called WikiANN), hosted at Dropbox, is no longer working. We have opened an issue in the GitHub repository of the original dataset (afshinrahimi/mmner#4) and we have also contacted the author by email to ask if they are planning to fix this issue. See the details here: https://github.com/huggingface/datasets/issues/2691#issuecomment-885463027 I close this issue because it is the same as in #2691. Feel free to subscribe to that other issue to be informed about any updates.
[ 0.20063453912734985, 0.16001924872398376, -0.011845838278532028, 0.12152474373579025, 0.09679839015007019, 0.23880963027477264, 0.07555681467056274, 0.05177604407072067, -0.0004627899616025388, 0.20853516459465027, -0.040059834718704224, 0.09763956815004349, -0.05884714797139168, -0.017739662900567055, 0.09781663864850998, -0.05126345902681351, -0.10639697313308716, -0.046484895050525665, 0.04292954131960869, -0.12044262886047363, 0.08707857877016068, 0.10728920251131058, -0.10119946300983429, 0.020348599180579185, -0.09944883733987808, 0.11949341744184494, 0.0722331702709198, -0.03064531274139881, -0.11779486387968063, -0.197770893573761, 0.32965749502182007, -0.07260976731777191, -0.06970186531543732, 0.30057209730148315, 0.000005730873454012908, -0.0697372630238533, 0.30555227398872375, 0.18626563251018524, -0.10282114148139954, -0.07559674233198166, -0.1830601841211319, -0.06582090258598328, -0.03697529435157776, -0.06747984141111374, 0.017699671909213066, -0.02113783359527588, -0.024768715724349022, 0.06787804514169693, 0.021244090050458908, 0.18253913521766663, 0.08643428981304169, 0.10606922954320908, 0.10436800122261047, -0.08065088093280792, 0.1327970027923584, -0.03339320048689842, 0.015199119225144386, 0.10295484960079193, -0.2555350065231323, -0.154049351811409, 0.12765024602413177, 0.05329262092709541, 0.1046694666147232, 0.07139038294553757, -0.13200490176677704, -0.050691958516836166, -0.07334683835506439, -0.10341048985719681, 0.030407294631004333, 0.22408060729503632, 0.22529911994934082, 0.08123210817575455, -0.19932030141353607, 0.011229386553168297, 0.0005462756380438805, -0.07671259343624115, 0.08029020577669144, -0.05086745321750641, 0.011331412009894848, 0.03626509755849838, -0.11585979908704758, -0.0597633421421051, 0.0033923685550689697, -0.047512203454971313, 0.04131796956062317, 0.18660099804401398, -0.17100895941257477, -0.002450819592922926, -0.10935487598180771, -0.1790248453617096, 0.2176659107208252, -0.09278025478124619, 0.08207016438245773, 0.041280921548604965, 0.13614808022975922, 0.0617339164018631, -0.11106792092323303, -0.12803809344768524, 0.0040410365909338, -0.18487048149108887, -0.11980700492858887, -0.16464874148368835, -0.02400176227092743, 0.03848925977945328, 0.11317889392375946, 0.1049855500459671, 0.029504265636205673, -0.019175177440047264, 0.11691246181726456, 0.11569007486104965, -0.06147987022995949, 0.04694017767906189, -0.05111721158027649, -0.17279325425624847, -0.01459202729165554, -0.005969922058284283, 0.13062311708927155, -0.05083436518907547, 0.05889143422245979, 0.09913845360279083, 0.04000477120280266, 0.09368012100458145, -0.15712745487689972, -0.02303527668118477, -0.07919502258300781, 0.16940738260746002, -0.1589631587266922, 0.07232116162776947, 0.029687771573662758, 0.08845573663711548, 0.009268660098314285, -0.019838618114590645, -0.029456567019224167, -0.03835431858897209, 0.07247929275035858, 0.11656206846237183, 0.055834248661994934, -0.16986201703548431, 0.1311984658241272, 0.12341593950986862, 0.09102281183004379, 0.04828359931707382, -0.17034001648426056, -0.010283434763550758, 0.27792859077453613, 0.022157978266477585, 0.08072824776172638, -0.051855508238077164, 0.05919763445854187, 0.0012186182430014014, -0.2008957415819168, -0.0013113131280988455, -0.073248952627182, -0.04927518591284752, 0.06106282398104668, -0.04051615297794342, -0.0821034237742424, -0.03791667893528938, -0.0791606605052948, -0.144601970911026, 0.0039071496576070786, 0.10914212465286255, 0.23406854271888733, -0.11319724470376968, 0.08733773231506348, 0.0526396706700325, 0.09615817666053772, 0.08700790256261826, -0.009770012460649014, 0.05098268389701843, 0.04786329343914986, 0.001804128522053361, -0.13592466711997986, 0.1027570441365242, -0.30703866481781006, 0.17415162920951843, 0.07767316699028015, -0.13596339523792267, -0.060216035693883896, 0.013959050178527832, 0.06882034242153168, -0.16540876030921936, -0.09589867293834686, -0.04284212738275528, 0.014519969932734966, 0.015520610846579075, 0.009465869516134262, 0.08973241597414017, 0.0156143419444561, -0.0036543000023812056, 0.08787622302770615, -0.00300630577839911, -0.05226637050509453, 0.002042239299044013, 0.1495954543352127, 0.024352962151169777, 0.14661671221256256, -0.033392030745744705, 0.09555540233850479, -0.19210277497768402, -0.016194796189665794, -0.006583366543054581, 0.08586142212152481, 0.050133559852838516, 0.10046078264713287, 0.0759323239326477, -0.029651617631316185, 0.12801332771778107, -0.028756367042660713, -0.07122459262609482, -0.11700507253408432, -0.1245512068271637, -0.06299346685409546, 0.07744158059358597, -0.08822839707136154, 0.05452030152082443, -0.0007254845695570111, -0.054242778569459915, -0.06743136048316956, 0.12173733115196228, 0.03169496729969978, -0.1142532005906105, 0.1218876987695694, 0.009477945044636726, -0.03234245628118515, -0.03251112625002861, -0.2148478776216507, 0.02116905339062214, -0.007473369594663382, 0.08588313311338425, -0.08705344796180725, -0.004864552523940802, 0.04129175469279289, -0.0029684174805879593, 0.1113734170794487, -0.0036503546871244907, 0.1073911041021347, -0.3522091209888458, 0.022769689559936523, -0.2115418016910553, -0.06249164417386055, 0.06754514575004578, -0.08488862216472626, -0.025843804702162743, 0.056050095707178116, -0.03308390825986862, 0.05569469928741455, 0.09315741062164307, -0.13179989159107208, 0.05280248448252678, 0.09785780310630798, 0.05045884847640991, -0.16848012804985046, 0.06343396008014679, 0.16890282928943634, 0.0002966380270663649, -0.016737954691052437, -0.09526952356100082, -0.15391774475574493, -0.09873542934656143, 0.26028311252593994, -0.005232959054410458, -0.022592922672629356, 0.05038079619407654, -0.03600681945681572, 0.05242433771491051, -0.012501023709774017, 0.07648023217916489, -0.2378138303756714, -0.024185504764318466, -0.009609189815819263, -0.044037237763404846, -0.05685165524482727, -0.032677337527275085, 0.05831585451960564, -0.006824344862252474, 0.03339749574661255, 0.04667200520634651, 0.052410729229450226, -0.03758043050765991, -0.2013961374759674, 0.021185440942645073, -0.06543603539466858, 0.014192014001309872, 0.13304102420806885, 0.04251226410269737, -0.2283766269683838, -0.10316099971532822, -0.0738523006439209, -0.06314295530319214, -0.06907135993242264, 0.02044723369181156, -0.05230985954403877, -0.09472192823886871, -0.23834896087646484, -0.02380654588341713, -0.038813963532447815, -0.10996028035879135, -0.035400617867708206, 0.053640443831682205, -0.11340127885341644, 0.10291057080030441, 0.040538158267736435, -0.08671476691961288, 0.011404997669160366, -0.04360537603497505, -0.029964854940772057, 0.03624716028571129, 0.034235548228025436, -0.198447123169899, -0.06348168104887009, -0.08934275060892105, 0.1613616943359375, 0.16598773002624512, -0.1545397937297821, 0.024331146851181984, 0.024561939761042595, -0.0877562165260315, 0.0393964983522892, 0.12070011347532272, 0.16734397411346436, 0.03109884262084961, -0.0063409581780433655, 0.032066311687231064, -0.03225043788552284, -0.08864159137010574, -0.22325782477855682, 0.03990461677312851, -0.06697890162467957, 0.023734375834465027, -0.07228300720453262, -0.01594211347401142, 0.02530200406908989, -0.12207292765378952, -0.030805572867393494, -0.16761453449726105, -0.08101201802492142, -0.07385146617889404, 0.32083967328071594, -0.002459967276081443, -0.14559124410152435, 0.0738639310002327, 0.02302573062479496, -0.048440445214509964, -0.09368210285902023, -0.12460550665855408, -0.1269218623638153, -0.023861113935709, 0.06305602937936783, -0.2354726344347, 0.0543525330722332, 0.1022602915763855, 0.13879527151584625, -0.1547764390707016, 0.15369044244289398, -0.04804235324263573, -0.24878674745559692, 0.15312331914901733, 0.01062003057450056, 0.1048063263297081, 0.08359883725643158, 0.10061869770288467, -0.04924729838967323, 0.011641500517725945, 0.08618543297052383, 0.17914311587810516, 0.11451797187328339, 0.18909500539302826, 0.01307961530983448, 0.005393540021032095, 0.022708291187882423, -0.04867514222860336, 0.049744777381420135, 0.011607518419623375, 0.1416979283094406, 0.024355193600058556, -0.2094380110502243, 0.01621861569583416, -0.07921106368303299, -0.12882257997989655, -0.02140554040670395, -0.04435056075453758, 0.028336185961961746, 0.20835712552070618, 0.14992032945156097, 0.00836183037608862, 0.04656131565570831, 0.1683139055967331, 0.06722328066825867, 0.09958764165639877, -0.11720485240221024, 0.0808296874165535, -0.0003266697167418897, -0.1401883065700531, 0.08693454414606094, -0.08632177114486694, 0.27241578698158264, 0.22234472632408142, 0.08170542865991592, 0.004655572585761547, -0.010890744626522064, -0.022766344249248505, -0.07000420987606049, 0.07723604142665863, 0.02011336386203766, 0.12348293513059616, 0.15047676861286163, 0.06824123859405518, -0.058948542922735214, -0.17949244379997253, -0.03571504354476929, -0.005926595535129309, -0.05613081529736519, -0.004735703580081463, 0.08901388943195343, -0.014549585059285164, -0.02500527910888195, -0.1459086686372757, -0.08616998791694641, -0.2566090226173401, -0.04399537667632103, -0.08364751935005188, 0.019144510850310326, 0.024189380928874016, 0.058734241873025894, 0.0050416369922459126, 0.006160879507660866, 0.02693220227956772, 0.07489483803510666, -0.06972355395555496, -0.04784195125102997, 0.03992879390716553, -0.09131354838609695, -0.0037779142148792744, -0.05088772624731064, -0.17026996612548828, 0.18551601469516754, -0.12002867460250854, -0.20729172229766846, -0.09245813637971878, -0.19140203297138214, -0.07790230959653854, 0.14457933604717255, -0.16069748997688293, -0.2142454981803894, -0.05642595887184143, -0.0630892813205719, 0.025255359709262848, 0.08562159538269043, -0.06896775960922241, 0.0037900658790022135, -0.25737085938453674, 0.10130202025175095, -0.14961165189743042, 0.055082306265830994, 0.08962833881378174, 0.15280359983444214, 0.002274240367114544, -0.12519387900829315, -0.06170811131596565, -0.0861116275191307, -0.03961866721510887, -0.2361070066690445, -0.09352052211761475, 0.18270374834537506, 0.0854586735367775, 0.15992070734500885, -0.23392461240291595, 0.1534993052482605, 0.07826054096221924, -0.02632962167263031, -0.028974508866667747, -0.056936219334602356, -0.08816394209861755, 0.10712212324142456, 0.08616013079881668, 0.030836520716547966, 0.02680887281894684, 0.08188240975141525, 0.10237240791320801, 0.1928999274969101, 0.03832448646426201, 0.06244438886642456, -0.1296481341123581, -0.05432877689599991, 0.08699534088373184, 0.17685294151306152, -0.13910742104053497, -0.06691619753837585, -0.09755509346723557, 0.1808616667985916, -0.037758003920316696, 0.12171074002981186, -0.04878564924001694, 0.13072586059570312, -0.1710539162158966, -0.20621424913406372, 0.0573771670460701, 0.19160763919353485, 0.01663934625685215, 0.12964047491550446, -0.06225396692752838, -0.03076178953051567, 0.009399720467627048, -0.2072645127773285, -0.11264988034963608, -0.004312708508223295, -0.3016712963581085, 0.0004272946098353714, -0.2688620984554291, -0.08441510051488876, -0.0635531097650528, 0.015505502000451088, -0.12977954745292664, 0.0843043103814125, -0.01589874178171158, 0.07037122547626495, -0.008730736561119556, 0.11255612969398499, 0.04542232304811478, -0.1453748345375061, -0.03201194852590561, -0.20755459368228912, -0.05629293993115425, -0.07865172624588013, 0.12233435362577438, 0.011132843792438507, 0.22328591346740723, 0.10468868166208267, -0.06471293419599533, 0.009495261125266552, 0.27622339129447937, 0.1377689093351364, -0.061446413397789, -0.0385676845908165, 0.17480126023292542, -0.14824625849723816, -0.13473665714263916, -0.01728271320462227, -0.014369463548064232, 0.014075376093387604, -0.2100708782672882, 0.0066156769171357155, 0.24501249194145203, 0.047515857964754105, -0.02787189930677414, -0.06927909702062607, 0.09861941635608673, -0.07370653748512268, 0.0044905878603458405, 0.07055208086967468, 0.16400441527366638, -0.08082342892885208, 0.0030069102067500353, -0.1726536899805069, -2.3128509629264967e-32, -0.10582196712493896, 0.1705724447965622, -0.03790038824081421, -0.02896675281226635, -0.3063599169254303, 0.045690905302762985, 0.06480129063129425, -0.023723751306533813, -0.19635075330734253, 0.008906049653887749, 0.08212362229824066, 0.07085829228162766, -0.049410026520490646, 0.16087451577186584, -0.008618905209004879, -0.09986986964941025, -0.271107941865921, -0.009434300474822521, 0.0012786283623427153, -0.09014071524143219, 0.002095871139317751, -0.05880318209528923, 0.03030945546925068, 0.003664817661046982, 0.10419754683971405, -0.0657394602894783, 0.007496407255530357, -0.0047117858193814754, 0.04568546637892723, -0.029547827318310738, -0.15457287430763245, 0.1614334136247635, -0.005815781187266111, 0.06738515943288803, -0.30780890583992004, -0.07580099254846573, -0.08832523971796036, -0.18215835094451904, -0.23349370062351227, 0.10819856822490692, 0.1141342744231224, 0.07449386268854141, -0.002142686862498522, -0.12673325836658478, 0.04975668340921402, 0.25588250160217285, -0.01040988601744175, 0.07078499346971512, -0.0843426063656807, 0.11870261281728745, 0.0354081429541111, 0.04607003927230835, -0.02369656413793564, -0.0058683473616838455, 0.17721202969551086, -0.1034913882613182, 0.012453816831111908, 0.23347018659114838, -0.02300935424864292, -0.03027315065264702, 0.13435034453868866, 0.0021532734390348196, 0.09082914143800735, 0.046993106603622437, 0.02451358735561371, -0.024181531742215157, 0.23275238275527954, 0.059482138603925705, 0.057846881449222565, 0.026552513241767883, 0.16051119565963745, -0.04265806823968887, 0.0639987662434578, -0.048793353140354156, -0.2085578590631485, -0.09894765168428421, -0.1760057657957077, 0.06737269461154938, -0.08465874195098877, 0.038755908608436584, 0.07811351120471954, 0.00743646128103137, -0.029121747240424156, -0.09393824636936188, 0.00866867508739233, 0.09486870467662811, -0.11682292073965073, 0.1788993924856186, -0.25221601128578186, 0.014439435675740242, 0.07097238302230835, 0.039690639823675156, -0.11531968414783478, 0.09101938456296921, -0.07714568823575974, 0.12695319950580597, 0.09642381966114044, 0.07335720211267471, 0.08967858552932739, 0.019255876541137695, -0.20840148627758026, 0.11768065392971039, -0.10822140425443649, 0.17928773164749146, 0.13722708821296692, -0.07821564376354218, -0.06525256484746933, 0.038131117820739746, -0.024289757013320923, -0.13709259033203125, -0.06043580174446106, 0.013467580080032349, 0.21034209430217743, 0.014150322414934635, 0.07909983396530151, 0.15452514588832855, -0.08630625158548355, 0.1349574327468872, 0.006375184282660484, -0.05426200479269028, -0.04052835330367088, -0.08236344903707504, -0.21283414959907532, -0.0013221587287262082, -0.015302817337214947, 0.045355141162872314, -0.0651240423321724, 0.29188093543052673, 0.03155997768044472, -0.018310677260160446, -0.03304678574204445, -0.04413650184869766, 7.228829304040119e-7, -0.09210795909166336, 0.03204195946455002, 0.061109043657779694, 0.020634906366467476, -0.07355378568172455, -0.0413547120988369, -0.3100740611553192, 0.1377444863319397, -0.03275357931852341, -0.06010627746582031, 0.024005120620131493, -0.07181169837713242, -0.11596247553825378, -0.06504980474710464, 0.12249445170164108, 0.03287258744239807, -0.12372886389493942, 0.05099933221936226, 0.010671107098460197, 0.025375304743647575, 0.01944456435739994, 0.1967262476682663, 0.11434394121170044, 0.036357954144477844, 0.1025628000497818, 0.15762388706207275, -0.019779644906520844, -0.05506931245326996, 0.1285584717988968, -0.07124615460634232, -0.13167765736579895, 0.02243732661008835, 0.013991164043545723, 0.010993469506502151, 0.0970403328537941, -0.02005019411444664, -0.1826905608177185, -0.05613621324300766, 0.11159557104110718, 0.1351897269487381, -0.05185657739639282, -0.1338132619857788, -0.016886649653315544, 0.00908259954303503, 0.08886953443288803, 0.07258381694555283, -0.024667145684361458, 0.12042297422885895, -0.09732543677091599, 0.10603855550289154, 0.154861718416214, -0.08331767469644547, 0.07618583738803864, 0.0610211044549942, -0.0058101690374314785, -0.14438775181770325, 0.12028442323207855, -0.10273851454257965, 0.10254549980163574, -0.050057344138622284, -0.0024521155282855034, -0.16854414343833923, -0.005130117293447256, 0.020210837945342064, 0.03919003903865814, 0.016445189714431763, -0.0029802732169628143, -1.1433798221989486e-34, -0.04485455900430679, -0.053143687546253204, 0.08155782520771027, -0.17702700197696686, 0.007167985197156668, -0.012855710461735725, 0.3630974292755127, -0.059587445110082626, 0.0797051265835762, -0.2489253282546997, 0.08190227299928665 ]
https://github.com/huggingface/datasets/issues/2700
from datasets import Dataset is failing
Hi @kswamy15, thanks for reporting. We are fixing this critical issue and making an urgent patch release of the `datasets` library today. In the meantime, you can circumvent this issue by updating the `tqdm` library: `!pip install -U tqdm`
## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import Dataset ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' --------------------------------------------------------------------------- NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt. To view examples of installing some common dependencies, click the "Open Examples" button below. --------------------------------------------------------------------------- ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: latest version as of 07/21/2021 - Platform: Google Colab - Python version: 3.7 - PyArrow version:
39
from datasets import Dataset is failing ## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import Dataset ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' --------------------------------------------------------------------------- NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt. To view examples of installing some common dependencies, click the "Open Examples" button below. --------------------------------------------------------------------------- ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: latest version as of 07/21/2021 - Platform: Google Colab - Python version: 3.7 - PyArrow version: Hi @kswamy15, thanks for reporting. We are fixing this critical issue and making an urgent patch release of the `datasets` library today. In the meantime, you can circumvent this issue by updating the `tqdm` library: `!pip install -U tqdm`
[ 0.0663713663816452, 0.15993446111679077, -0.0928841382265091, -0.06783249229192734, 0.14509235322475433, 0.1759611964225769, 0.0849861353635788, 0.040463823825120926, -0.02050563506782055, 0.3696952760219574, -0.02504304051399231, -0.07853516191244125, -0.07047881931066513, -0.021099796518683434, -0.03292154520750046, -0.10385832190513611, -0.04593505337834358, 0.04208066314458847, -0.084266796708107, -0.006602966692298651, -0.13711020350456238, 0.08020373433828354, 0.16047552227973938, -0.06212220713496208, 0.02766694687306881, -0.20051297545433044, -0.03206487372517586, 0.11370755732059479, 0.049266621470451355, -0.05068349093198776, 0.10274205356836319, -0.02092605270445347, 0.12948203086853027, 0.25723373889923096, 0.000005343389602785464, -0.009810071438550949, 0.16093629598617554, -0.058466363698244095, 0.024458331987261772, -0.10576578974723816, 0.005433960352092981, -0.10889974981546402, 0.06002422049641609, -0.04341345280408859, 0.08798001706600189, 0.04770325496792793, -0.0589589923620224, 0.0058424994349479675, 0.16883434355258942, 0.08379074931144714, -0.017754506319761276, 0.0589541532099247, -0.0027224249206483364, -0.2633175551891327, 0.01882043480873108, -0.07206699997186661, 0.11607156693935394, 0.142499640583992, -0.145565003156662, -0.08666979521512985, 0.11042167991399765, -0.04986417666077614, -0.007228474598377943, 0.1015671044588089, -0.15525202453136444, 0.06882587820291519, -0.07462679594755173, -0.13876664638519287, -0.07652751356363297, 0.30156242847442627, 0.07004301249980927, 0.023155296221375465, -0.05199609324336052, -0.007894815877079964, 0.02177692949771881, 0.015851734206080437, -0.08345241844654083, -0.12453434616327286, -0.07025619596242905, 0.19970344007015228, -0.02704009786248207, -0.04498809948563576, 0.008428112603724003, -0.060927242040634155, -0.1769753098487854, -0.031915612518787384, -0.0946425199508667, 0.008885497227311134, -0.06979496031999588, -0.02087067812681198, 0.15604835748672485, 0.08236559480428696, -0.09113204479217529, -0.2148679941892624, -0.012301117181777954, 0.00844591110944748, 0.0009283825638704002, -0.08579915016889572, 0.0015612735878676176, -0.05513434857130051, -0.14034119248390198, -0.09890831261873245, -0.06829196959733963, 0.2129259705543518, 0.1212792694568634, -0.07420404255390167, -0.036978576332330704, 0.023949619382619858, -0.0037556253373622894, 0.0025600374210625887, -0.07467139512300491, 0.166378453373909, -0.1122744008898735, -0.14281529188156128, 0.13437579572200775, 0.11183369159698486, 0.12209311127662659, 0.07382528483867645, -0.1350007951259613, 0.11571311205625534, 0.07365772873163223, 0.10018563270568848, -0.09419887512922287, 0.055729303508996964, -0.009868944063782692, -0.050113704055547714, 0.027113305404782295, 0.11674472689628601, -0.05193503946065903, -0.09691009670495987, -0.0755777582526207, -0.0009734573541209102, 0.15859879553318024, -0.09050002694129944, 0.04008187726140022, -0.04969906434416771, 0.015340615063905716, -0.1796315312385559, -0.007268866058439016, 0.033786874264478683, 0.07539999485015869, -0.11476513743400574, -0.1208408996462822, 0.11918898671865463, 0.1599089354276657, -0.012423835694789886, 0.13343806564807892, -0.02591647207736969, -0.09739834815263748, 0.008547734469175339, -0.33927449584007263, 0.17745038866996765, -0.15910598635673523, 0.22294647991657257, -0.09305431693792343, 0.05538396164774895, -0.08444973826408386, 0.04283173382282257, -0.2599891126155853, -0.04829273372888565, -0.021505320444703102, -0.03858998790383339, 0.020405910909175873, -0.038656145334243774, 0.03074069134891033, 0.29745516180992126, 0.02770564705133438, 0.13684628903865814, -0.01667357236146927, -0.014750152826309204, 0.04382665082812309, -0.08289822936058044, -0.06461305916309357, 0.056435614824295044, 0.01942496933043003, 0.018804265186190605, -0.017007112503051758, 0.02545321173965931, -0.3437441289424896, 0.021281687542796135, 0.0702100545167923, -0.05323198437690735, 0.0293324775993824, -0.15003405511379242, 0.1296568065881729, -0.00018447548791300505, 0.1012321412563324, 0.045468445867300034, -0.09135667234659195, -0.05539970472455025, -0.041509803384542465, 0.07570753991603851, -0.07411853969097137, 0.08917538821697235, 0.1853136122226715, -0.2069961577653885, 0.03495181351900101, -0.1680329442024231, 0.1261885017156601, -0.07248176634311676, 0.007499099709093571, 0.007901882752776146, 0.08406410366296768, -0.0075829410925507545, 0.014150233939290047, -0.23360641300678253, -0.1793641597032547, 0.046795714646577835, 0.16200096905231476, -0.03420274704694748, -0.15536516904830933, -0.0010061889188364148, -0.15220430493354797, 0.06333455443382263, -0.0951734334230423, 0.04921187832951546, -0.10651662945747375, 0.0127971600741148, -0.2101776897907257, 0.13893043994903564, -0.05167929455637932, 0.08692993223667145, 0.15535613894462585, 0.04966573044657707, 0.05339605733752251, 0.13887867331504822, 0.006985657382756472, -0.01043005846440792, 0.11912123113870621, 0.04413725063204765, -0.06264558434486389, -0.07942410558462143, 0.035510510206222534, 0.14798615872859955, -0.059544358402490616, 0.016077488660812378, 0.16741278767585754, -0.08239307254552841, 0.06324712187051773, -0.05891672149300575, -0.15333157777786255, 0.26454412937164307, -0.13964208960533142, -0.12678222358226776, 0.0629086121916771, 0.25238025188446045, -0.16635097563266754, 0.09086056798696518, -0.12473508715629578, 0.002382892882451415, 0.28518348932266235, 0.14346757531166077, -0.05888441205024719, 0.04417434707283974, 0.09545210748910904, 0.044129736721515656, -0.024834098294377327, 0.023153390735387802, -0.04274175688624382, -0.02058619074523449, 0.20777082443237305, -0.0011834040051326156, 0.039376359432935715, 0.008799227885901928, 0.1341124176979065, -0.08048029243946075, 0.17573095858097076, 0.039507582783699036, -0.01722406968474388, 0.07963083684444427, 0.09391037374734879, 0.009456205181777477, -0.08673358708620071, -0.11928778141736984, 0.06936223059892654, -0.07878486067056656, 0.07802694290876389, -0.030003055930137634, -0.00593044888228178, -0.00039482724969275296, -0.1529485136270523, 0.02072901278734207, 0.05383704602718353, -0.030288174748420715, 0.03209884092211723, 0.11975427716970444, -0.16612932085990906, -0.009792866185307503, -0.12448001652956009, -0.019809428602457047, 0.025906722992658615, -0.07158903032541275, 0.015097594819962978, -0.19133754074573517, -0.06353986263275146, -0.024376271292567253, 0.10232170671224594, -0.15938693284988403, -0.12064242362976074, -0.07617264986038208, 0.05985194444656372, -0.04252304136753082, 0.16964638233184814, -0.04209156334400177, 0.05964314192533493, 0.08867209404706955, 0.24072448909282684, 0.07541120797395706, -0.134501650929451, -0.11674410104751587, 0.034296125173568726, -0.02614346146583557, 0.010090875439345837, 0.32975950837135315, 0.16770896315574646, 0.042144086211919785, -0.12440542876720428, -0.049167949706315994, 0.031161393970251083, 0.055384647101163864, -0.09083007276058197, 0.09898168593645096, -0.0546967051923275, -0.00518922321498394, -0.0581568218767643, 0.08925006538629532, -0.23335833847522736, -0.03418027237057686, -0.08621997386217117, -0.09753892570734024, -0.11423862725496292, 0.05919041857123375, -0.047288719564676285, 0.026192326098680496, 0.23323535919189453, -0.12268850952386856, -0.040940284729003906, -0.06331012398004532, 0.2786499559879303, 0.06663930416107178, -0.055426694452762604, -0.00010862336057471111, -0.08861163258552551, 0.05933281406760216, -0.00943938922137022, -0.0546504408121109, 0.005647007375955582, -0.06927516311407089, -0.035104844719171524, -0.02949884720146656, -0.06590788811445236, 0.19512687623500824, -0.04073868319392204, -0.02104945108294487, 0.018611829727888107, 0.08027106523513794, -0.19939374923706055, 0.21197402477264404, -0.10077352076768875, 0.1220269426703453, 0.0716010332107544, -0.07567565888166428, 0.07279138267040253, -0.07319564372301102, 0.04210425540804863, 0.1096595823764801, 0.09562153369188309, 0.015236475504934788, -0.02416173927485943, -0.1681024134159088, -0.08638893067836761, -0.05661502853035927, -0.09389925003051758, -0.05672170966863632, -0.0329911932349205, 0.07056401669979095, -0.06733492016792297, -0.14706100523471832, 0.0422445610165596, -0.09709326922893524, -0.011971618980169296, -0.1946071833372116, -0.03075508028268814, 0.15828947722911835, 0.11754877120256424, 0.04624086990952492, -0.097914919257164, 0.08982149511575699, -0.006929187104105949, 0.14190714061260223, 0.08398079872131348, 0.11186614632606506, -0.012950041331350803, -0.11735787242650986, 0.1379631906747818, -0.11859141290187836, 0.24448496103286743, 0.11580175906419754, 0.1327766627073288, 0.023769492283463478, 0.06060927361249924, 0.012406080961227417, -0.043301478028297424, 0.021133165806531906, 0.1894817054271698, 0.04980101063847542, 0.006234761327505112, 0.04547768086194992, 0.03822736814618111, -0.0977405309677124, 0.03458225354552269, -0.020701872184872627, -0.10936787724494934, -0.015590336173772812, 0.1508343666791916, 0.03979013115167618, -0.16873209178447723, 0.010292282328009605, -0.014203634113073349, -0.3139370381832123, -0.10330968350172043, -0.1692337989807129, 0.16120539605617523, 0.12465600669384003, 0.11772949993610382, -0.013175800442695618, 0.026751644909381866, 0.08661190420389175, 0.1478574126958847, -0.005156225524842739, 0.13633160293102264, -0.0647672563791275, 0.13189658522605896, -0.03748596832156181, -0.09124508500099182, 0.04159332439303398, 0.31871873140335083, -0.19197893142700195, -0.10048752278089523, -0.10013945400714874, -0.1979842633008957, 0.013989738188683987, 0.10640216618776321, -0.07978025823831558, 0.1062660962343216, -0.12546025216579437, -0.05325356498360634, 0.10974808037281036, 0.01831606961786747, -0.0570044182240963, -0.1623799353837967, -0.06591341644525528, -0.10093316435813904, -0.14001259207725525, 0.04402163624763489, 0.001524709165096283, 0.12944358587265015, -0.1086912602186203, 0.01372248213738203, -0.0669720247387886, -0.06107226386666298, -0.07749965041875839, -0.07009775936603546, -0.005462472327053547, 0.03663787618279457, -0.008528545498847961, 0.09674917906522751, -0.14371807873249054, -0.1012999638915062, 0.014691203832626343, 0.02289413847029209, 0.08263986557722092, 0.03728870674967766, 0.07761736959218979, 0.026208316907286644, -0.032390836626291275, 0.04734352231025696, -0.04738868772983551, 0.01650078222155571, 0.01511014997959137, 0.08787301927804947, 0.12249244749546051, 0.09205210953950882, -0.1221236139535904, -0.08309651911258698, 0.15994590520858765, -0.11324834078550339, -0.08539051562547684, -0.2399527132511139, 0.0878850445151329, 0.16562598943710327, -0.042156022042036057, -0.013606407679617405, -0.08849504590034485, 0.054977819323539734, 0.014608587138354778, -0.12012150138616562, 0.20967847108840942, -0.08140194416046143, 0.155398428440094, -0.012044614180922508, -0.1123134195804596, 0.07246614992618561, -0.06388511508703232, -0.03046940080821514, -0.11454141139984131, -0.024933546781539917, 0.015090735629200935, 0.03894967585802078, -0.06083645671606064, 0.14945238828659058, 0.07049373537302017, -0.16776229441165924, 0.006410679314285517, 0.06569335609674454, -0.0006555701256729662, 0.03423053026199341, 0.05996073782444, 0.023626752197742462, 0.12422733753919601, -0.052906785160303116, -0.09930848330259323, 0.06268870085477829, -0.11323514580726624, 0.20703698694705963, 0.026147831231355667, 0.03621102496981621, -0.01094937976449728, 0.1549065262079239, 0.11501405388116837, -0.00565582700073719, 0.13566067814826965, 0.17888379096984863, -0.03142431005835533, 0.01372295618057251, 0.13918380439281464, 0.0810542106628418, -0.10673986375331879, 0.07043005526065826, -0.050992242991924286, 0.059648964554071426, -0.1320481300354004, 0.051648467779159546, 0.0900338664650917, 0.0752672329545021, 0.13648825883865356, -0.07435785979032516, -0.005928550381213427, -0.11323897540569305, -0.01901678927242756, -0.06646165251731873, 0.19778968393802643, 0.12322371453046799, -0.013249741867184639, -0.009559622034430504, -2.7639198836844806e-32, -0.031321123242378235, 0.08087820559740067, -0.16940799355506897, 0.04920908436179161, -0.11840744316577911, 0.0064224740490317345, -0.015135031193494797, -0.175358384847641, -0.02387845702469349, -0.09867742657661438, -0.0012124980567023158, 0.003914447966963053, 0.07869675755500793, -0.04279869422316551, -0.04496828839182854, -0.05332200229167938, 0.03821196034550667, -0.0754467323422432, -0.03469366952776909, 0.015225757844746113, 0.05859946832060814, 0.09968601167201996, 0.16199955344200134, 0.03555836156010628, 0.020992092788219452, 0.026981940492987633, -0.05335661768913269, 0.00306173088029027, 0.09731405973434448, -0.12927189469337463, -0.09925472736358643, 0.21982862055301666, 0.05371098965406418, -0.11705302447080612, -0.05532696098089218, -0.03373746573925018, -0.16567598283290863, 0.018620172515511513, -0.09376348555088043, 0.06138834357261658, 0.06023463234305382, 0.07267249375581741, 0.031582970172166824, -0.1958632469177246, 0.09018480777740479, 0.01599331572651863, 0.021927746012806892, -0.127313032746315, -0.0034137724433094263, -0.11623196303844452, 0.06691654026508331, 0.004629908595234156, -0.02040480263531208, -0.009096585214138031, 0.18029670417308807, -0.006122871767729521, -0.03219569846987724, 0.0354270376265049, -0.14112260937690735, 0.05037592723965645, 0.06902620941400528, -0.10184936970472336, 0.026452459394931793, 0.046378329396247864, 0.1794680655002594, -0.0002465562429279089, 0.19592389464378357, -0.026459399610757828, 0.09997379779815674, 0.004240077920258045, -0.07124815136194229, 0.10179784148931503, -0.0472763255238533, -0.03971370309591293, -0.33859553933143616, 0.01426640897989273, -0.19301757216453552, 0.0449213981628418, -0.09103572368621826, -0.15337707102298737, 0.0295748058706522, -0.04402056708931923, -0.07122200727462769, 0.01936231181025505, 0.11767471581697464, 0.10542634129524231, -0.0047089410945773125, 0.0005353838205337524, -0.13108216226100922, -0.11693543940782547, -0.05706339702010155, 0.22059868276119232, -0.009349326603114605, -0.16022589802742004, -0.17257548868656158, 0.00022070265549700707, -0.06445276737213135, 0.0590692013502121, -0.09707719832658768, -0.12028708308935165, -0.1956540048122406, -0.1330064833164215, 0.07390747219324112, 0.13541877269744873, 0.15130430459976196, -0.004262423608452082, 0.08043042570352554, -0.055995404720306396, -0.1836865097284317, -0.007106649223715067, -0.06270945072174072, 0.04017593711614609, 0.17279477417469025, 0.2058653086423874, 0.09682748466730118, -0.03753981739282608, -0.005522129125893116, -0.10682518035173416, 0.21036775410175323, 0.03673239424824715, -0.16750727593898773, 0.07791981846094131, -0.16421370208263397, -0.11654461920261383, 0.017698101699352264, 0.09338951110839844, -0.23990486562252045, -0.00753515399992466, 0.051039211452007294, -0.027970759198069572, -0.014550093561410904, -0.13421620428562164, 7.676107998122461e-7, -0.34455060958862305, 0.07716833055019379, -0.100448377430439, 0.03960169851779938, -0.10026951879262924, 0.05969279631972313, -0.4028022885322571, 0.19620126485824585, 0.01675228402018547, 0.05954733118414879, 0.32373684644699097, -0.01075712125748396, 0.012363833375275135, -0.08697949349880219, 0.0196883175522089, -0.09390605986118317, -0.15413077175617218, 0.034019023180007935, -0.006096086464822292, -0.13665789365768433, 0.12405628710985184, 0.09833455830812454, 0.1328641027212143, -0.0498444102704525, 0.012635667808353901, -0.07929843664169312, -0.08854195475578308, -0.08853108435869217, -0.12307276576757431, 0.0004395742726046592, 0.04594307765364647, 0.05501279607415199, -0.08553463220596313, 0.14325712621212006, -0.03200557082891464, -0.0043250746093690395, -0.08832739293575287, -0.11526887118816376, 0.06083935499191284, -0.07585214078426361, -0.05028611794114113, 0.06280241161584854, 0.06568625569343567, -0.07102394849061966, 0.24914297461509705, 0.11102727800607681, -0.020127998664975166, -0.006351854186505079, 0.02775212749838829, 0.11288880556821823, 0.1884015053510666, 0.18496918678283691, 0.049923211336135864, 0.04804616421461105, -0.09051164984703064, 0.02564518339931965, -0.05467851832509041, -0.132688507437706, 0.15284177660942078, 0.07876697927713394, -0.1383551061153412, -0.17072969675064087, 0.04423832520842552, -0.03229071572422981, -0.03025476075708866, 0.007054097950458527, -0.09640926867723465, 2.6944552509374965e-36, 0.03878321498632431, -0.029106123372912407, 0.1336764246225357, -0.12494837492704391, -0.05714812129735947, -0.109673410654068, 0.08278177678585052, -0.03981124237179756, 0.09352615475654602, -0.1384601593017578, -0.04498117417097092 ]
https://github.com/huggingface/datasets/issues/2699
cannot combine splits merging and streaming?
Hi ! That's missing indeed. We'll try to implement this for the next version :) I guess we just need to implement #2564 first, and then we should be able to add support for splits combinations
this does not work: `dataset = datasets.load_dataset('mc4','iw',split='train+validation',streaming=True)` with error: `ValueError: Bad split: train+validation. Available splits: ['train', 'validation']` these work: `dataset = datasets.load_dataset('mc4','iw',split='train+validation')` `dataset = datasets.load_dataset('mc4','iw',split='train',streaming=True)` `dataset = datasets.load_dataset('mc4','iw',split='validation',streaming=True)` i could not find a reference to this in the documentation and the error message is confusing. also would be nice to allow streaming for the merged splits
36
cannot combine splits merging and streaming? this does not work: `dataset = datasets.load_dataset('mc4','iw',split='train+validation',streaming=True)` with error: `ValueError: Bad split: train+validation. Available splits: ['train', 'validation']` these work: `dataset = datasets.load_dataset('mc4','iw',split='train+validation')` `dataset = datasets.load_dataset('mc4','iw',split='train',streaming=True)` `dataset = datasets.load_dataset('mc4','iw',split='validation',streaming=True)` i could not find a reference to this in the documentation and the error message is confusing. also would be nice to allow streaming for the merged splits Hi ! That's missing indeed. We'll try to implement this for the next version :) I guess we just need to implement #2564 first, and then we should be able to add support for splits combinations
[ -0.08950342237949371, 0.16800262033939362, -0.032422758638858795, 0.004340789746493101, 0.12227720767259598, -0.028994567692279816, 0.18317894637584686, 0.05641775205731392, -0.12772449851036072, 0.06913206726312637, 0.047140344977378845, -0.1840711534023285, -0.04313791170716286, 0.1314074695110321, -0.009272784925997257, -0.17124079167842865, -0.055265430361032486, 0.029816582798957825, -0.10502900928258896, 0.1505204737186432, 0.03451020270586014, 0.07532104104757309, 0.12731154263019562, -0.12934646010398865, -0.1678590327501297, 0.025380045175552368, -0.04996787756681442, -0.013089793734252453, 0.016214212402701378, -0.019500814378261566, 0.00939900428056717, 0.10970441997051239, 0.08605313301086426, 0.1527327299118042, 0.00000621276694801054, 0.07721740007400513, 0.1433088779449463, -0.07893382012844086, -0.0566411167383194, 0.09890593588352203, -0.020408498123288155, -0.005631083156913519, 0.007331710308790207, 0.004220087546855211, -0.11863204836845398, 0.004769337363541126, -0.03166922554373741, 0.040745120495557785, 0.2604539096355438, 0.07910843938589096, -0.10714342445135117, -0.06610793620347977, -0.003024628385901451, -0.13520961999893188, -0.09480872750282288, 0.0278802327811718, -0.029519040137529373, 0.11327192187309265, -0.16666890680789948, -0.07831744849681854, 0.03733495622873306, -0.15300250053405762, 0.11441679298877716, 0.055751733481884, -0.06744443625211716, 0.044064197689294815, -0.18186140060424805, -0.12343527376651764, -0.03184529393911362, 0.0724470317363739, 0.00913703627884388, 0.08349185436964035, -0.03846549242734909, -0.029413696378469467, -0.11775601655244827, -0.19555459916591644, -0.02287578023970127, 0.052851155400276184, -0.08495999872684479, 0.07778719812631607, -0.2808868885040283, 0.04208343103528023, 0.024186361581087112, 0.15129750967025757, -0.16747015714645386, 0.06325042992830276, 0.025138836354017258, 0.13966739177703857, 0.015395418740808964, -0.046989768743515015, -0.010692919604480267, -0.0028855970595031977, -0.09912970662117004, -0.135233536362648, -0.11503931134939194, 0.014255446381866932, -0.21901363134384155, 0.049029283225536346, -0.05119086802005768, 0.06338485330343246, -0.07305632531642914, -0.07602442800998688, 0.145598366856575, 0.05364349111914635, 0.10753581672906876, -0.21305769681930542, -0.15134501457214355, 0.028942076489329338, -0.040677424520254135, 0.05081147700548172, -0.0835859403014183, 0.009987004101276398, 0.05002053454518318, -0.006726515479385853, -0.10633780807256699, -0.021521233022212982, -0.07710715383291245, 0.16545157134532928, -0.21933969855308533, -0.16372063755989075, 0.03135581687092781, -0.014415641315281391, 0.13678602874279022, 0.07292768359184265, 0.014587574638426304, 0.006616320926696062, -0.0376615934073925, 0.16640715301036835, 0.06258074939250946, -0.08112290501594543, 0.006430253852158785, 0.12893255054950714, -0.09588316828012466, 0.03267959877848625, 0.08927979320287704, -0.1991453915834427, -0.02694457396864891, -0.0206682737916708, 0.1782030463218689, -0.00046776470844633877, -0.0011544442968443036, -0.1527133733034134, 0.008206415921449661, 0.010704213753342628, 0.1281014382839203, -0.07400641590356827, 0.07896441221237183, 0.04771549627184868, -0.036929234862327576, -0.12793156504631042, -0.10028066486120224, 0.16005001962184906, -0.22487005591392517, 0.14775103330612183, -0.08425922691822052, 0.11754950135946274, -0.011916524730622768, 0.019200414419174194, -0.07972867786884308, -0.1679411083459854, 0.11845031380653381, 0.01663791388273239, 0.05223451927304268, 0.04776148870587349, 0.01881716027855873, 0.1047356128692627, -0.028794795274734497, -0.14075730741024017, -0.18696308135986328, -0.08624382317066193, 0.14144456386566162, 0.00986390933394432, -0.12910670042037964, -0.07506392896175385, -0.15433938801288605, 0.17441482841968536, 0.03934315964579582, 0.02820356748998165, -0.16689787805080414, 0.010573376901447773, 0.016445431858301163, -0.11604301631450653, 0.12293087691068649, -0.20715981721878052, 0.09763101488351822, -0.05365244299173355, 0.12107053399085999, 0.10652259737253189, -0.14712928235530853, -0.060060497373342514, 0.05144317075610161, 0.03608383610844612, 0.08197867125272751, 0.016815191134810448, 0.1298198699951172, -0.1625075489282608, 0.07079438865184784, -0.0309438556432724, 0.08387866616249084, -0.3078667223453522, 0.04787604510784149, -0.10200273990631104, -0.05184599384665489, 0.008405938744544983, 0.02557525783777237, -0.09244179725646973, -0.15227164328098297, 0.07157818973064423, 0.10570790618658066, -0.07440799474716187, 0.11965380609035492, 0.007432045880705118, 0.03415432572364807, -0.14779196679592133, -0.11955107003450394, 0.00040318749961443245, -0.016361502930521965, -0.009701081551611423, 0.03639724478125572, 0.10799761116504669, -0.12730053067207336, 0.09156104922294617, -0.023080049082636833, 0.002811386017128825, 0.09594609588384628, 0.2331676185131073, -0.07679931074380875, -0.03303300216794014, 0.0907697007060051, 0.0648079589009285, -0.0446699857711792, -0.08406148105859756, 0.10210633277893066, 0.18230979144573212, -0.11670441180467606, 0.05863065645098686, 0.02446143887937069, -0.14928029477596283, 0.13688524067401886, -0.015642769634723663, -0.12252018600702286, 0.15957391262054443, -0.10243192315101624, -0.13421674072742462, -0.07634323835372925, 0.05566921457648277, -0.05922507494688034, -0.03082602098584175, 0.09599979221820831, -0.02644825540482998, 0.07577014714479446, 0.14175651967525482, -0.04687443748116493, -0.05024229362607002, -0.04559691250324249, -0.2581876814365387, 0.03254424035549164, -0.08698785305023193, 0.08928284794092178, 0.017328375950455666, 0.19088134169578552, 0.03258669003844261, 0.0735333040356636, -0.02770647034049034, 0.03330341354012489, -0.18505240976810455, 0.1258641481399536, 0.03527616336941719, 0.08447233587503433, -0.09455415606498718, 0.20560970902442932, 0.026592329144477844, -0.0548945851624012, -0.049671951681375504, 0.23026949167251587, 0.057932257652282715, -0.007770296186208725, 0.08409281075000763, 0.03096148744225502, -0.06694245338439941, -0.05486070364713669, 0.16843755543231964, 0.1657831072807312, -0.15965692698955536, 0.047309789806604385, -0.052714016288518906, -0.15020465850830078, -0.0716601237654686, -0.10515911132097244, -0.10343644767999649, 0.09313403069972992, -0.05133979022502899, -0.06327415257692337, 0.005614835768938065, 0.06814882904291153, 0.05075107514858246, -0.06138865649700165, -0.10991053283214569, 0.00837782584130764, 0.20552171766757965, -0.09445984661579132, 0.06080688536167145, 0.21278072893619537, 0.04358156770467758, 0.09903707355260849, 0.03711029142141342, 0.038044434040784836, 0.12118133157491684, -0.1632939875125885, -0.0878162831068039, -0.0806119367480278, 0.06324320286512375, 0.045246023684740067, 0.029104942455887794, 0.15223659574985504, -0.1157808005809784, 0.04420241340994835, -0.21712510287761688, 0.0559728741645813, 0.012913590297102928, -0.03622366860508919, 0.0669608861207962, -0.07218079268932343, -0.020393704995512962, -0.12910886108875275, -0.11270278692245483, -0.19252750277519226, -0.12352049350738525, -0.05150900036096573, -0.13821826875209808, -0.10474634170532227, -0.0039636073634028435, -0.05723483860492706, -0.08935967832803726, 0.13777396082878113, -0.22499316930770874, -0.11884615570306778, 0.20335765182971954, 0.18443714082241058, -0.019588686525821686, -0.021322518587112427, 0.1320955455303192, -0.11803495138883591, 0.06423459202051163, 0.04731189087033272, 0.043421223759651184, 0.11090065538883209, -0.048579633235931396, -0.04352893680334091, 0.12703047692775726, -0.028921056538820267, -0.004630427807569504, -0.0815591961145401, 0.029330650344491005, -0.09519190341234207, 0.176197350025177, -0.05901125818490982, 0.06738324463367462, -0.08044445514678955, -0.2143307775259018, 0.23562143743038177, 0.09774020314216614, 0.2456968128681183, 0.0663880854845047, -0.07364508509635925, 0.030169881880283356, 0.058202847838401794, 0.11807902157306671, -0.03294310346245766, -0.2805277109146118, 0.14228381216526031, -0.04396790266036987, 0.09230640530586243, -0.02663595788180828, 0.013385665602982044, -0.18577849864959717, -0.0652908906340599, 0.018296819180250168, 0.07709360867738724, 0.009666039608418941, -0.019450709223747253, 0.08371452242136002, -0.053288910537958145, 0.0804080218076706, -0.039985738694667816, 0.16758736968040466, 0.0512230359017849, 0.009642235934734344, -0.10852412134408951, 0.049038052558898926, 0.102953240275383, -0.08138421177864075, 0.017221035435795784, -0.010858530178666115, 0.03695147857069969, 0.0897875651717186, 0.06485871970653534, 0.08001671731472015, -0.022970378398895264, -0.07342013716697693, 0.009753316640853882, 0.024835282936692238, -0.14128507673740387, -0.01298015657812357, 0.10642382502555847, 0.016160158440470695, 0.12848028540611267, -0.039129629731178284, -0.05115308612585068, 0.014594019390642643, 0.3533112108707428, -0.05907193198800087, -0.13413003087043762, 0.044328946620225906, 0.3036539554595947, -0.08166216313838959, 0.08321599662303925, 0.003860429860651493, 0.033390238881111145, 0.0812322273850441, -0.18769502639770508, -0.13469953835010529, 0.2565745413303375, 0.12554781138896942, -0.09578011184930801, -0.021440519019961357, 0.07036609947681427, -0.06151176616549492, 0.1397731900215149, 0.01202303171157837, 0.12036635726690292, -0.08457876741886139, 0.0970243588089943, 0.11409299075603485, 0.053501196205616, 0.10601947456598282, 0.14034363627433777, -0.04399355500936508, -0.24566411972045898, 0.04383157193660736, -0.2030578851699829, 0.1932835578918457, 0.17913007736206055, -0.12991376221179962, 0.023763382807374, -0.0007080708746798337, 0.015059071592986584, 0.04815763980150223, 0.16122259199619293, 0.06603983044624329, -0.09479105472564697, -0.196706160902977, -0.14656580984592438, -0.11425125598907471, 0.07763735949993134, 0.1486540287733078, 0.10063905268907547, -0.13238494098186493, -0.04206855967640877, -0.1741490513086319, -0.1408577859401703, -0.06369005888700485, 0.14716273546218872, -0.027389561757445335, 0.07364443689584732, -0.033985789865255356, 0.15602411329746246, -0.11621519923210144, 0.00930316187441349, 0.05480976402759552, -0.055104028433561325, 0.012856249697506428, -0.06974248588085175, 0.01833145134150982, 0.12561483681201935, -0.15924522280693054, 0.09974895417690277, -0.2048811912536621, 0.3013213276863098, -0.09814295172691345, 0.012437714263796806, -0.14501067996025085, 0.04063807427883148, -0.058888036757707596, -0.01858735829591751, 0.09054834395647049, -0.12449945509433746, -0.027176018804311752, -0.09230902045965195, 0.018699312582612038, -0.002633874537423253, -0.0755457729101181, 0.009416554123163223, 0.06570272892713547, 0.13511472940444946, -0.19308559596538544, 0.03272254392504692, 0.0012289691949263215, 0.013861896470189095, 0.11761486530303955, 0.03706733509898186, -0.09893757849931717, 0.02397730015218258, -0.17558720707893372, -0.10357386618852615, -0.17190714180469513, -0.008760573342442513, -0.03954974189400673, 0.05473390594124794, -0.0889669805765152, 0.10520047694444656, 0.1528177559375763, -0.13208532333374023, -0.024576179683208466, 0.06197080388665199, -0.008887472562491894, 0.02053414285182953, -0.03673669695854187, 0.11667860299348831, -0.007333084475249052, -0.024836786091327667, -0.07457728683948517, -0.08196153491735458, -0.14636580646038055, -0.027763783931732178, -0.07153972238302231, 0.11017561703920364, -0.12191326916217804, 0.11055483669042587, 0.11076156795024872, -0.0011331294663250446, 0.11154654622077942, 0.054577089846134186, -0.06030161678791046, -0.010188231244683266, 0.05445052683353424, 0.12169607728719711, -0.013975517824292183, -0.02859046682715416, -0.08823013305664062, -0.03190711885690689, -0.021270563825964928, -0.0909026712179184, -0.03388481214642525, 0.15567323565483093, 0.0555042028427124, -0.11804907023906708, 0.10899248719215393, -0.04156211018562317, -0.09682881832122803, -0.038530390709638596, 0.05316232517361641, 0.16365846991539001, -0.06157985329627991, 0.11985775828361511, -2.467980070783751e-32, 0.04186017066240311, 0.01053415797650814, -0.08611278980970383, -0.054851360619068146, -0.24767576158046722, -0.003897337010130286, -0.04926776513457298, -0.09039745479822159, 0.004299345426261425, -0.06253200769424438, -0.08601372689008713, 0.1819084733724594, 0.04725618660449982, 0.1327887922525406, 0.06350463628768921, -0.09448401629924774, 0.11212129145860672, -0.08275323361158371, -0.06595802307128906, 0.08658476918935776, -0.06369734555482864, -0.04475448280572891, 0.0004673996299970895, 0.3604234457015991, -0.20842832326889038, -0.013231976889073849, -0.1135837510228157, -0.08654170483350754, -0.06637789309024811, 0.010762471705675125, 0.016825377941131592, 0.028603972867131233, 0.07332563400268555, 0.028401706367731094, -0.04859700798988342, 0.11776409298181534, 0.07517780363559723, 0.0517413392663002, -0.08330880105495453, -0.01765844039618969, -0.11361203342676163, 0.1361401379108429, 0.10632866621017456, 0.04128925874829292, 0.1893947422504425, -0.05062198266386986, -0.07949007302522659, 0.016350965946912766, -0.038509972393512726, -0.07864395529031754, 0.1031045988202095, 0.10738222301006317, 0.00984550267457962, 0.07993178069591522, 0.1334044337272644, 0.05461197718977928, 0.09697320312261581, -0.07915280759334564, -0.11908086389303207, 0.22834815084934235, 0.21020689606666565, 0.004453722387552261, 0.07786169648170471, -0.026447340846061707, -0.1162249743938446, 0.044808924198150635, 0.011269966140389442, -0.05041537061333656, 0.13217371702194214, -0.01227128691971302, 0.008963012136518955, 0.21777558326721191, 0.01843002252280712, -0.1503184735774994, -0.17459480464458466, -0.14498113095760345, -0.006225567776709795, 0.11940053105354309, 0.0846053957939148, -0.1155688688158989, -0.022226836532354355, -0.0019320647697895765, 0.03182563558220863, -0.0010504332603886724, 0.08624695241451263, 0.02338450588285923, -0.047792378813028336, 0.06911534070968628, 0.05060240626335144, -0.05904741957783699, 0.07230968028306961, 0.15368223190307617, 0.00153920438606292, -0.08193015307188034, -0.018589148297905922, 0.16871094703674316, -0.024963466450572014, 0.1902565211057663, -0.025830812752246857, -0.07810378819704056, -0.013385229744017124, -0.043614454567432404, 0.18383227288722992, 0.000706855149473995, -0.027267251163721085, -0.07891854643821716, 0.1360601782798767, -0.02294073812663555, -0.09097842872142792, -0.02194124646484852, -0.03498592600226402, 0.02533729560673237, 0.19893229007720947, -0.03849316015839577, 0.13753634691238403, -0.008362514898180962, -0.016161847859621048, -0.17755912244319916, 0.08227036148309708, 0.10492132604122162, -0.22571612894535065, -0.04138952121138573, -0.1371910125017166, 0.00014872489555273205, 0.22683477401733398, 0.04770808294415474, -0.2024214118719101, -0.037868961691856384, 0.14431297779083252, -0.047082915902137756, -0.07412202656269073, -0.08350367099046707, 7.813616775820265e-7, -0.16105195879936218, 0.013754516839981079, -0.2192910760641098, -0.14332576096057892, -0.05116964131593704, 0.0015179194742813706, -0.18683505058288574, -0.05352456495165825, 0.004205876495689154, 0.1643257439136505, 0.05835104361176491, -0.050305090844631195, 0.13136018812656403, 0.03731386736035347, 0.1599067747592926, -0.021842017769813538, 0.10272446274757385, 0.07849916070699692, -0.12921850383281708, -0.06847471743822098, 0.14906883239746094, 0.11264627426862717, 0.16670280694961548, -0.091044582426548, 0.09170413017272949, 0.019723987206816673, -0.07641840726137161, 0.018404407426714897, 0.04099716618657112, 0.08943508565425873, 0.08854130655527115, -0.13223254680633545, 0.000911512179300189, 0.1433330625295639, -0.007994093000888824, 0.036622852087020874, -0.09806793928146362, -0.03169858455657959, -0.03929341956973076, -0.02763989381492138, -0.116278275847435, 0.12941978871822357, -0.02592664211988449, -0.04742100089788437, 0.12747816741466522, 0.263590008020401, 0.001485106535255909, -0.07746487110853195, -0.11097753047943115, 0.029478145763278008, -0.08400198817253113, 0.10685352236032486, 0.08433540165424347, 0.15897950530052185, -0.1659008115530014, -0.15590184926986694, 0.0776832103729248, -0.13756094872951508, 0.18618378043174744, -0.04462774097919464, -0.1985791176557541, -0.043879661709070206, 0.02456481009721756, 0.0933290645480156, 0.07048667967319489, -0.11429118365049362, -0.14384135603904724, 2.3493666571936845e-34, -0.047169268131256104, 0.19812138378620148, -0.05386064574122429, -0.03587903454899788, 0.03816841170191765, -0.04901016131043434, -0.06894180923700333, 0.024642540141940117, -0.15327046811580658, -0.13270288705825806, -0.08926311880350113 ]
https://github.com/huggingface/datasets/issues/2695
Cannot import load_dataset on Colab
I'm facing the same issue on Colab today too. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-4-5833ac0f5437> in <module>() 3 4 from ray import tune ----> 5 from datasets import DatasetDict, Dataset 6 from datasets import load_dataset, load_metric 7 from dataclasses import dataclass 7 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' --------------------------------------------------------------------------- NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt. To view examples of installing some common dependencies, click the "Open Examples" button below. --------------------------------------------------------------------------- ```
## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0
111
Cannot import load_dataset on Colab ## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0 I'm facing the same issue on Colab today too. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-4-5833ac0f5437> in <module>() 3 4 from ray import tune ----> 5 from datasets import DatasetDict, Dataset 6 from datasets import load_dataset, load_metric 7 from dataclasses import dataclass 7 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' --------------------------------------------------------------------------- NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt. To view examples of installing some common dependencies, click the "Open Examples" button below. --------------------------------------------------------------------------- ```
[ 0.06781797111034393, 0.023376774042844772, -0.06212030351161957, -0.152190700173378, 0.05941644683480263, 0.0903053730726242, 0.22517037391662598, -0.003644049633294344, 0.027446478605270386, 0.2725427746772766, -0.09042530506849289, 0.004679972771555185, -0.0566360279917717, -0.05565553531050682, 0.013085396960377693, 0.007573314476758242, -0.12489565461874008, 0.03829413652420044, -0.09900719672441483, 0.07967157661914825, -0.009592081420123577, 0.09056538343429565, 0.10432332009077072, -0.10150959342718124, 0.015968719497323036, -0.174660325050354, 0.04680340737104416, -0.04036983475089073, -0.009045617654919624, -0.1130307987332344, 0.1758728176355362, 0.04927273839712143, 0.16125616431236267, 0.21570949256420135, 0.000005557528311328497, -0.01167605072259903, 0.19060398638248444, 0.07979068160057068, -0.0655248761177063, -0.21294540166854858, 0.03708142414689064, -0.011530967429280281, 0.06863178312778473, -0.05248594284057617, 0.022671399638056755, 0.06433794647455215, -0.08623117208480835, 0.0854065865278244, 0.14632275700569153, 0.11091259121894836, 0.027612632140517235, 0.09792869538068771, 0.014850807376205921, -0.23589101433753967, 0.024197345599532127, -0.15036967396736145, -0.035376790910959244, 0.21357613801956177, -0.09414875507354736, -0.05942358821630478, 0.012042771093547344, 0.007090738508850336, -0.008600280620157719, -0.04868891462683678, -0.1465788632631302, -0.008364962413907051, 0.054311882704496384, -0.12043503671884537, -0.022966617718338966, 0.3713359534740448, 0.053567372262477875, 0.09292902797460556, -0.06329245120286942, -0.011085203848779202, 0.015141043812036514, -0.07894030958414078, 0.047147415578365326, -0.024616995826363564, -0.17722876369953156, 0.25416100025177, 0.021539265289902687, -0.11348695307970047, -0.024226918816566467, -0.0813797190785408, -0.1496930867433548, 0.041589900851249695, -0.20433753728866577, 0.0292102862149477, -0.04896978288888931, -0.19115068018436432, 0.24407602846622467, 0.05496179684996605, -0.033406812697649, -0.1304326057434082, 0.13366585969924927, 0.027221210300922394, -0.0035611719358712435, -0.17919929325580597, -0.09768500924110413, -0.05425753444433212, -0.058039017021656036, -0.04843425378203392, -0.004420531913638115, 0.29007071256637573, 0.15152698755264282, 0.10184578597545624, 0.01026618480682373, -0.07966513186693192, -0.0729786679148674, 0.056590061634778976, -0.07898972183465958, 0.16282741725444794, -0.15948060154914856, -0.1735980063676834, 0.08564721792936325, 0.033145446330308914, 0.14098869264125824, 0.12550519406795502, -0.15176168084144592, -0.053370438516139984, 0.12116532027721405, 0.19282183051109314, -0.09582290798425674, 0.09750930964946747, 0.17152467370033264, -0.010640068911015987, -0.04036026448011398, 0.07449404150247574, -0.002205171622335911, 0.03737538307905197, -0.0697672963142395, 0.026897642761468887, -0.02678573504090309, -0.10794629156589508, 0.11999437212944031, -0.05992348492145538, -0.0059724776074290276, -0.22458739578723907, 0.06244940683245659, 0.11165159940719604, 0.11002043634653091, -0.07443609088659286, -0.25379830598831177, 0.15672089159488678, 0.170858234167099, 0.03729259967803955, 0.07355353236198425, -0.11681127548217773, -0.041343823075294495, -0.055736273527145386, -0.3008880913257599, 0.12120188027620316, -0.12374389171600342, 0.14403127133846283, -0.031926825642585754, -0.014335274696350098, -0.2066825032234192, -0.029726915061473846, -0.214821919798851, -0.17996114492416382, -0.05301648750901222, -0.025073271244764328, 0.024007542058825493, -0.05309310182929039, 0.03388914465904236, 0.1941261738538742, 0.07265709340572357, 0.03872935101389885, -0.07509420067071915, 0.03557129576802254, 0.05258319154381752, -0.001769564813002944, -0.10148511081933975, 0.1562415063381195, -0.030025813728570938, 0.0019934140145778656, 0.06375762820243835, -0.07567696273326874, -0.2514512538909912, 0.1618017554283142, 0.1341533362865448, -0.04549982026219368, -0.05081460252404213, -0.14182379841804504, 0.026488687843084335, 0.004062465857714415, 0.08144618570804596, 0.03128303959965706, -0.016564108431339264, -0.11996302008628845, 0.03390510380268097, 0.0962832048535347, 0.030735699459910393, -0.001510774134658277, 0.19840610027313232, -0.15866073966026306, 0.11420491337776184, -0.18363551795482635, 0.048266686499118805, -0.18034951388835907, -0.07554195821285248, -0.010796453803777695, -0.013726319186389446, -0.01523913536220789, -0.02870003879070282, -0.039407726377248764, -0.08682827651500702, 0.1793690174818039, 0.05583436042070389, -0.1099562868475914, -0.08901537209749222, 0.007938571274280548, -0.1816754937171936, -0.01813695766031742, -0.049283385276794434, 0.016230134293437004, -0.0008942384738475084, 0.0038831434212625027, -0.14047501981258392, 0.136148601770401, -0.10460032522678375, 0.19525402784347534, 0.11774501204490662, 0.05599817633628845, -0.02881889045238495, 0.06514789909124374, 0.059561021625995636, -0.07025594264268875, 0.07669647783041, 0.08323117345571518, -0.2169046252965927, -0.05423674359917641, -0.033034082502126694, 0.03648582845926285, 0.07907023280858994, -0.09175761789083481, 0.04007283225655556, -0.17025141417980194, 0.10169918090105057, 0.006895622704178095, -0.16245470941066742, 0.0031739266123622656, 0.05375820770859718, -0.09607949107885361, 0.07264351844787598, 0.15603016316890717, -0.045434605330228806, 0.04710821062326431, -0.04694761335849762, -0.08909627795219421, 0.28724321722984314, 0.03765496239066124, -0.18058185279369354, 0.1081312894821167, 0.15434406697750092, 0.0052145905792713165, 0.007446651812642813, 0.029315857216715813, 0.0007572072790935636, -0.09499257802963257, 0.19476576149463654, 0.04948608577251434, 0.1429470032453537, -0.05608263239264488, 0.010721311904489994, -0.0423482321202755, 0.162236288189888, -0.07764732092618942, 0.18929749727249146, 0.0982181504368782, -0.09865273535251617, -0.013356707990169525, -0.11727321892976761, -0.07254010438919067, 0.09810861945152283, 0.005798411089926958, 0.09025063365697861, 0.008642828091979027, 0.047245875000953674, -0.08523541688919067, -0.18645824491977692, 0.048121288418769836, 0.07812078297138214, -0.03621615469455719, 0.03730514645576477, 0.11555041372776031, -0.08915309607982635, -0.08147595822811127, -0.025866014882922173, -0.01107364147901535, 0.12460310757160187, 0.054052818566560745, -0.050450704991817474, -0.030661460012197495, -0.05687618628144264, 0.043064843863248825, 0.20386454463005066, -0.18321731686592102, -0.09634608775377274, -0.004931529983878136, 0.00014292096602730453, -0.03622576594352722, 0.04108617454767227, 0.01448865607380867, 0.13251127302646637, 0.053552985191345215, 0.2402840554714203, 0.1606447547674179, -0.04040652513504028, 0.0167685654014349, 0.0489942766726017, -0.08775736391544342, 0.06253074109554291, 0.1281958818435669, 0.08225630968809128, -0.028934041038155556, -0.05378780886530876, -0.07393606752157211, -0.09208925068378448, 0.08817895501852036, -0.03394487500190735, 0.0141334543004632, -0.0572805292904377, 0.033710069954395294, -0.023676401004195213, 0.07609272003173828, -0.4179201126098633, -0.03860911354422569, -0.12095382064580917, -0.1025790274143219, -0.14198634028434753, 0.10174159705638885, -0.0419914536178112, -0.032359812408685684, 0.12057429552078247, -0.05058500915765762, -0.09209299832582474, -0.06520682573318481, 0.3172169625759125, -0.1430613398551941, 0.019759999588131905, 0.05512173846364021, -0.14898993074893951, 0.06175632029771805, -0.010095869190990925, 0.010932994075119495, -0.006657389458268881, -0.15164823830127716, -0.1076304242014885, -0.1128145158290863, -0.012972045689821243, 0.07586368918418884, -0.05758323147892952, -0.05470353737473488, 0.08371662348508835, 0.11967182159423828, -0.09646733850240707, 0.07273153960704803, 0.028637215495109558, 0.052556704729795456, 0.1069352850317955, -0.031058460474014282, 0.16635870933532715, -0.07896817475557327, -0.050677381455898285, 0.16854624450206757, 0.169865682721138, 0.0468086339533329, -0.1430598348379135, -0.06413613259792328, -0.09056198596954346, -0.11012828350067139, 0.0013551960000768304, 0.07213053852319717, 0.020097794011235237, -0.006894988473504782, -0.15965120494365692, -0.14377526938915253, 0.023570742458105087, -0.1034928634762764, -0.04123171418905258, -0.07271788269281387, -0.0752660483121872, 0.13942588865756989, 0.06068429723381996, -0.05864235758781433, -0.059016767889261246, 0.08875749260187149, 0.06010904908180237, -0.011031363159418106, 0.01055368222296238, 0.17888014018535614, 0.06769514828920364, -0.14190876483917236, 0.03983668237924576, -0.10212136805057526, 0.14735469222068787, 0.20231042802333832, 0.057029154151678085, -0.012634269893169403, 0.029223252087831497, 0.01653483137488365, 0.00461452966555953, -0.0570659376680851, 0.004286936949938536, 0.022161288186907768, -0.003166753565892577, -0.09710035473108292, -0.044472552835941315, -0.07612849771976471, 0.02794397436082363, -0.034117113798856735, -0.11048255860805511, 0.07607018947601318, 0.15424083173274994, 0.02335495688021183, -0.1110367476940155, -0.2294192761182785, -0.24805393815040588, -0.20822522044181824, -0.12722967565059662, -0.151574045419693, 0.0623033381998539, 0.12627163529396057, 0.004785260185599327, -0.05269981920719147, 0.05689319968223572, -0.05274620279669762, 0.21020852029323578, -0.09936155378818512, -0.016278203576803207, -0.010489482432603836, 0.12800341844558716, -0.010989776812493801, -0.06691139936447144, 0.03672419860959053, 0.3351229131221771, -0.12764234840869904, -0.059286605566740036, -0.016506675630807877, -0.1827181577682495, -0.021207522600889206, 0.04358644783496857, -0.048521894961595535, 0.10676475614309311, -0.14997537434101105, -0.12756198644638062, 0.06427785009145737, 0.04066857695579529, -0.03924361988902092, -0.11566336452960968, -0.1474316418170929, -0.10427971184253693, -0.292762815952301, 0.07395104318857193, 0.04329568147659302, 0.22106656432151794, -0.14198127388954163, 0.027346599847078323, 0.05085144191980362, -0.23415055871009827, -0.05549323931336403, -0.0075092799961566925, 0.04158875346183777, 0.15997524559497833, -0.06507456302642822, 0.14489983022212982, -0.13004717230796814, -0.054876163601875305, 0.12268339097499847, -0.07217907905578613, 0.09038189053535461, -0.09677916765213013, 0.07277161628007889, 0.03654469922184944, -0.04146799445152283, 0.014914599247276783, -0.04049430042505264, -0.13948386907577515, 0.011018849909305573, 0.08866671472787857, 0.06637498736381531, 0.16765932738780975, -0.004094086121767759, -0.1200982853770256, 0.05945729836821556, 0.07708794623613358, -0.2555738687515259, -0.17614690959453583, 0.015047093853354454, 0.12914885580539703, -0.0034894177224487066, 0.01688041351735592, -0.06617982685565948, 0.2191449999809265, 0.03368736058473587, -0.09699315577745438, 0.17131897807121277, -0.14836464822292328, 0.09075413644313812, -0.0185749139636755, -0.11147116124629974, 0.01246667467057705, 0.007872013375163078, 0.030911743640899658, -0.27770814299583435, 0.13724400103092194, 0.09290255606174469, -0.025245506316423416, -0.18258094787597656, 0.0433480367064476, 0.14793656766414642, -0.07642745971679688, -0.010816918686032295, 0.09690898656845093, 0.06745690107345581, 0.06718134880065918, 0.027058089151978493, -0.08587117493152618, 0.14357852935791016, 0.02284885011613369, -0.05393831804394722, 0.02364365942776203, -0.07589661329984665, 0.23771752417087555, -0.023517081514000893, -0.046507515013217926, 0.10748019814491272, 0.09942974150180817, 0.0959983691573143, 0.016808010637760162, 0.18545451760292053, 0.13167113065719604, -0.024419190362095833, -0.007863628678023815, 0.008715443313121796, 0.04044423997402191, -0.10522989928722382, 0.18876664340496063, 0.06899488717317581, 0.07147061079740524, -0.008073866367340088, 0.13402295112609863, 0.13427841663360596, -0.0066372985020279884, 0.18570305407047272, 0.02589348517358303, -0.026423173025250435, -0.07996062934398651, -0.06596812605857849, -0.1006474643945694, 0.12690511345863342, 0.08857321739196777, 0.0038551585748791695, 0.06555087864398956, -2.5568048320356985e-32, -0.052357226610183716, 0.008476980030536652, -0.1371433436870575, 0.08906874805688858, -0.17010340094566345, -0.01579565368592739, 0.03159385919570923, -0.01748722791671753, -0.06383350491523743, -0.060715287923812866, -0.06234698370099068, 0.031691305339336395, 0.002248290926218033, -0.05537831410765648, -0.010058870539069176, 0.06611202657222748, -0.04215940460562706, -0.023565679788589478, -0.0009144368232227862, 0.058686573058366776, -0.027176422998309135, 0.15267866849899292, 0.055054280906915665, 0.10827115178108215, -0.042587753385305405, -0.04039115458726883, -0.027240408584475517, -0.0667930617928505, 0.07537174224853516, -0.00980798713862896, -0.10052264481782913, 0.1464158594608307, 0.08370374143123627, -0.102393738925457, -0.15970170497894287, 0.02567042037844658, -0.1658129245042801, -0.1677209436893463, -0.1546853482723236, 0.061181727796792984, -0.032538894563913345, 0.0940105989575386, 0.01155388168990612, -0.22240184247493744, 0.056474100798368454, 0.07191264629364014, 0.04730032756924629, -0.10617900639772415, 0.04143926128745079, -0.11321843415498734, 0.10782263427972794, 0.07247607409954071, -0.04501285031437874, 0.03233565762639046, 0.19453555345535278, -0.04655688256025314, -0.058622170239686966, -0.013256738893687725, -0.09862835705280304, 0.011663366109132767, -0.05937909707427025, -0.07192904502153397, -0.026613347232341766, 0.029840964823961258, 0.21538293361663818, -0.03586481884121895, 0.24399049580097198, -0.06797020882368088, 0.12482628971338272, -0.04819975420832634, 0.047181323170661926, 0.11075668781995773, 0.0214545838534832, -0.002526235766708851, -0.3291585147380829, -0.0459030456840992, -0.25465431809425354, 0.1219230592250824, 0.055421773344278336, -0.10969431698322296, 0.0691533014178276, -0.019496869295835495, -0.12493167072534561, -0.00028948209364898503, 0.051829010248184204, 0.16064245998859406, -0.0675588920712471, 0.08893901109695435, -0.2017199695110321, 0.06323389708995819, 0.0188890490680933, 0.19475513696670532, 0.03807104378938675, -0.04681967943906784, -0.1415274739265442, 0.10326173901557922, 0.0779816284775734, 0.0076811364851891994, 0.016080372035503387, 0.05176178365945816, -0.10405000299215317, -0.08795437961816788, 0.037515949457883835, 0.07922735810279846, 0.16617606580257416, 0.045001864433288574, 0.05627325922250748, -0.1221848875284195, -0.17164185643196106, -0.04417639225721359, -0.03425121307373047, -0.016091566532850266, 0.1583787351846695, 0.1371120810508728, 0.16777022182941437, -0.030188094824552536, -0.1192307248711586, -0.08023957163095474, 0.24277561902999878, 0.055582195520401, -0.13756686449050903, 0.0280329380184412, -0.15238255262374878, 0.015840908512473106, -0.02887803316116333, 0.07425098121166229, -0.1942814290523529, 0.024786029011011124, 0.07484474033117294, 0.03575613349676132, -0.017467433586716652, -0.10858909785747528, 7.346905022131978e-7, -0.24521765112876892, 0.08607986569404602, -0.08219319581985474, 0.002273304620757699, -0.09731895476579666, 0.08817001432180405, -0.3665562570095062, 0.1421324908733368, 0.060879696160554886, 0.1443955898284912, 0.09871982038021088, -0.05458847060799599, -0.10097072273492813, -0.02131544053554535, 0.03635205700993538, -0.04513110592961311, -0.05556229501962662, 0.06842213124036789, 0.02349708043038845, -0.04741765931248665, 0.13242366909980774, 0.16137433052062988, 0.14143288135528564, -0.10296165943145752, -0.08266931772232056, -0.2268291860818863, -0.08323700726032257, -0.06298946589231491, 0.01774841547012329, -0.017899956554174423, 0.019833920523524284, 0.11162087321281433, -0.1528906673192978, 0.19091591238975525, 0.02971184067428112, -0.04057478904724121, -0.03906608372926712, -0.22081917524337769, 0.14791467785835266, 0.0021053911186754704, 0.08752689510583878, 0.006271237973123789, -0.001260667573660612, -0.042192645370960236, 0.2328941375017166, -0.001840122858993709, -0.020576542243361473, 0.039740998297929764, -0.1708490252494812, 0.10894300043582916, 0.13752132654190063, 0.21005398035049438, 0.16026635468006134, 0.0543430857360363, -0.0348438024520874, 0.106589674949646, -0.07569108158349991, -0.11177484691143036, 0.15489548444747925, 0.06305728107690811, -0.1468992531299591, -0.13099782168865204, 0.12874746322631836, -0.11618164926767349, -0.0037982251960784197, -0.055603139102458954, 0.01496910396963358, -6.819688160466525e-36, 0.009579848498106003, -0.03635803237557411, 0.17407996952533722, -0.14020629227161407, 0.018180452287197113, -0.0024696800392121077, 0.09469467401504517, -0.205265611410141, 0.09276988357305527, -0.297730952501297, -0.06006310507655144 ]
https://github.com/huggingface/datasets/issues/2695
Cannot import load_dataset on Colab
@phosseini I think it is related to [1.10.0](https://github.com/huggingface/datasets/actions/runs/1052653701) release done 3 hours ago. (cc: @lhoestq ) For now I just downgraded to 1.9.0 and it is working fine.
## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0
28
Cannot import load_dataset on Colab ## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0 @phosseini I think it is related to [1.10.0](https://github.com/huggingface/datasets/actions/runs/1052653701) release done 3 hours ago. (cc: @lhoestq ) For now I just downgraded to 1.9.0 and it is working fine.
[ 0.06781797111034393, 0.023376774042844772, -0.06212030351161957, -0.152190700173378, 0.05941644683480263, 0.0903053730726242, 0.22517037391662598, -0.003644049633294344, 0.027446478605270386, 0.2725427746772766, -0.09042530506849289, 0.004679972771555185, -0.0566360279917717, -0.05565553531050682, 0.013085396960377693, 0.007573314476758242, -0.12489565461874008, 0.03829413652420044, -0.09900719672441483, 0.07967157661914825, -0.009592081420123577, 0.09056538343429565, 0.10432332009077072, -0.10150959342718124, 0.015968719497323036, -0.174660325050354, 0.04680340737104416, -0.04036983475089073, -0.009045617654919624, -0.1130307987332344, 0.1758728176355362, 0.04927273839712143, 0.16125616431236267, 0.21570949256420135, 0.000005557528311328497, -0.01167605072259903, 0.19060398638248444, 0.07979068160057068, -0.0655248761177063, -0.21294540166854858, 0.03708142414689064, -0.011530967429280281, 0.06863178312778473, -0.05248594284057617, 0.022671399638056755, 0.06433794647455215, -0.08623117208480835, 0.0854065865278244, 0.14632275700569153, 0.11091259121894836, 0.027612632140517235, 0.09792869538068771, 0.014850807376205921, -0.23589101433753967, 0.024197345599532127, -0.15036967396736145, -0.035376790910959244, 0.21357613801956177, -0.09414875507354736, -0.05942358821630478, 0.012042771093547344, 0.007090738508850336, -0.008600280620157719, -0.04868891462683678, -0.1465788632631302, -0.008364962413907051, 0.054311882704496384, -0.12043503671884537, -0.022966617718338966, 0.3713359534740448, 0.053567372262477875, 0.09292902797460556, -0.06329245120286942, -0.011085203848779202, 0.015141043812036514, -0.07894030958414078, 0.047147415578365326, -0.024616995826363564, -0.17722876369953156, 0.25416100025177, 0.021539265289902687, -0.11348695307970047, -0.024226918816566467, -0.0813797190785408, -0.1496930867433548, 0.041589900851249695, -0.20433753728866577, 0.0292102862149477, -0.04896978288888931, -0.19115068018436432, 0.24407602846622467, 0.05496179684996605, -0.033406812697649, -0.1304326057434082, 0.13366585969924927, 0.027221210300922394, -0.0035611719358712435, -0.17919929325580597, -0.09768500924110413, -0.05425753444433212, -0.058039017021656036, -0.04843425378203392, -0.004420531913638115, 0.29007071256637573, 0.15152698755264282, 0.10184578597545624, 0.01026618480682373, -0.07966513186693192, -0.0729786679148674, 0.056590061634778976, -0.07898972183465958, 0.16282741725444794, -0.15948060154914856, -0.1735980063676834, 0.08564721792936325, 0.033145446330308914, 0.14098869264125824, 0.12550519406795502, -0.15176168084144592, -0.053370438516139984, 0.12116532027721405, 0.19282183051109314, -0.09582290798425674, 0.09750930964946747, 0.17152467370033264, -0.010640068911015987, -0.04036026448011398, 0.07449404150247574, -0.002205171622335911, 0.03737538307905197, -0.0697672963142395, 0.026897642761468887, -0.02678573504090309, -0.10794629156589508, 0.11999437212944031, -0.05992348492145538, -0.0059724776074290276, -0.22458739578723907, 0.06244940683245659, 0.11165159940719604, 0.11002043634653091, -0.07443609088659286, -0.25379830598831177, 0.15672089159488678, 0.170858234167099, 0.03729259967803955, 0.07355353236198425, -0.11681127548217773, -0.041343823075294495, -0.055736273527145386, -0.3008880913257599, 0.12120188027620316, -0.12374389171600342, 0.14403127133846283, -0.031926825642585754, -0.014335274696350098, -0.2066825032234192, -0.029726915061473846, -0.214821919798851, -0.17996114492416382, -0.05301648750901222, -0.025073271244764328, 0.024007542058825493, -0.05309310182929039, 0.03388914465904236, 0.1941261738538742, 0.07265709340572357, 0.03872935101389885, -0.07509420067071915, 0.03557129576802254, 0.05258319154381752, -0.001769564813002944, -0.10148511081933975, 0.1562415063381195, -0.030025813728570938, 0.0019934140145778656, 0.06375762820243835, -0.07567696273326874, -0.2514512538909912, 0.1618017554283142, 0.1341533362865448, -0.04549982026219368, -0.05081460252404213, -0.14182379841804504, 0.026488687843084335, 0.004062465857714415, 0.08144618570804596, 0.03128303959965706, -0.016564108431339264, -0.11996302008628845, 0.03390510380268097, 0.0962832048535347, 0.030735699459910393, -0.001510774134658277, 0.19840610027313232, -0.15866073966026306, 0.11420491337776184, -0.18363551795482635, 0.048266686499118805, -0.18034951388835907, -0.07554195821285248, -0.010796453803777695, -0.013726319186389446, -0.01523913536220789, -0.02870003879070282, -0.039407726377248764, -0.08682827651500702, 0.1793690174818039, 0.05583436042070389, -0.1099562868475914, -0.08901537209749222, 0.007938571274280548, -0.1816754937171936, -0.01813695766031742, -0.049283385276794434, 0.016230134293437004, -0.0008942384738475084, 0.0038831434212625027, -0.14047501981258392, 0.136148601770401, -0.10460032522678375, 0.19525402784347534, 0.11774501204490662, 0.05599817633628845, -0.02881889045238495, 0.06514789909124374, 0.059561021625995636, -0.07025594264268875, 0.07669647783041, 0.08323117345571518, -0.2169046252965927, -0.05423674359917641, -0.033034082502126694, 0.03648582845926285, 0.07907023280858994, -0.09175761789083481, 0.04007283225655556, -0.17025141417980194, 0.10169918090105057, 0.006895622704178095, -0.16245470941066742, 0.0031739266123622656, 0.05375820770859718, -0.09607949107885361, 0.07264351844787598, 0.15603016316890717, -0.045434605330228806, 0.04710821062326431, -0.04694761335849762, -0.08909627795219421, 0.28724321722984314, 0.03765496239066124, -0.18058185279369354, 0.1081312894821167, 0.15434406697750092, 0.0052145905792713165, 0.007446651812642813, 0.029315857216715813, 0.0007572072790935636, -0.09499257802963257, 0.19476576149463654, 0.04948608577251434, 0.1429470032453537, -0.05608263239264488, 0.010721311904489994, -0.0423482321202755, 0.162236288189888, -0.07764732092618942, 0.18929749727249146, 0.0982181504368782, -0.09865273535251617, -0.013356707990169525, -0.11727321892976761, -0.07254010438919067, 0.09810861945152283, 0.005798411089926958, 0.09025063365697861, 0.008642828091979027, 0.047245875000953674, -0.08523541688919067, -0.18645824491977692, 0.048121288418769836, 0.07812078297138214, -0.03621615469455719, 0.03730514645576477, 0.11555041372776031, -0.08915309607982635, -0.08147595822811127, -0.025866014882922173, -0.01107364147901535, 0.12460310757160187, 0.054052818566560745, -0.050450704991817474, -0.030661460012197495, -0.05687618628144264, 0.043064843863248825, 0.20386454463005066, -0.18321731686592102, -0.09634608775377274, -0.004931529983878136, 0.00014292096602730453, -0.03622576594352722, 0.04108617454767227, 0.01448865607380867, 0.13251127302646637, 0.053552985191345215, 0.2402840554714203, 0.1606447547674179, -0.04040652513504028, 0.0167685654014349, 0.0489942766726017, -0.08775736391544342, 0.06253074109554291, 0.1281958818435669, 0.08225630968809128, -0.028934041038155556, -0.05378780886530876, -0.07393606752157211, -0.09208925068378448, 0.08817895501852036, -0.03394487500190735, 0.0141334543004632, -0.0572805292904377, 0.033710069954395294, -0.023676401004195213, 0.07609272003173828, -0.4179201126098633, -0.03860911354422569, -0.12095382064580917, -0.1025790274143219, -0.14198634028434753, 0.10174159705638885, -0.0419914536178112, -0.032359812408685684, 0.12057429552078247, -0.05058500915765762, -0.09209299832582474, -0.06520682573318481, 0.3172169625759125, -0.1430613398551941, 0.019759999588131905, 0.05512173846364021, -0.14898993074893951, 0.06175632029771805, -0.010095869190990925, 0.010932994075119495, -0.006657389458268881, -0.15164823830127716, -0.1076304242014885, -0.1128145158290863, -0.012972045689821243, 0.07586368918418884, -0.05758323147892952, -0.05470353737473488, 0.08371662348508835, 0.11967182159423828, -0.09646733850240707, 0.07273153960704803, 0.028637215495109558, 0.052556704729795456, 0.1069352850317955, -0.031058460474014282, 0.16635870933532715, -0.07896817475557327, -0.050677381455898285, 0.16854624450206757, 0.169865682721138, 0.0468086339533329, -0.1430598348379135, -0.06413613259792328, -0.09056198596954346, -0.11012828350067139, 0.0013551960000768304, 0.07213053852319717, 0.020097794011235237, -0.006894988473504782, -0.15965120494365692, -0.14377526938915253, 0.023570742458105087, -0.1034928634762764, -0.04123171418905258, -0.07271788269281387, -0.0752660483121872, 0.13942588865756989, 0.06068429723381996, -0.05864235758781433, -0.059016767889261246, 0.08875749260187149, 0.06010904908180237, -0.011031363159418106, 0.01055368222296238, 0.17888014018535614, 0.06769514828920364, -0.14190876483917236, 0.03983668237924576, -0.10212136805057526, 0.14735469222068787, 0.20231042802333832, 0.057029154151678085, -0.012634269893169403, 0.029223252087831497, 0.01653483137488365, 0.00461452966555953, -0.0570659376680851, 0.004286936949938536, 0.022161288186907768, -0.003166753565892577, -0.09710035473108292, -0.044472552835941315, -0.07612849771976471, 0.02794397436082363, -0.034117113798856735, -0.11048255860805511, 0.07607018947601318, 0.15424083173274994, 0.02335495688021183, -0.1110367476940155, -0.2294192761182785, -0.24805393815040588, -0.20822522044181824, -0.12722967565059662, -0.151574045419693, 0.0623033381998539, 0.12627163529396057, 0.004785260185599327, -0.05269981920719147, 0.05689319968223572, -0.05274620279669762, 0.21020852029323578, -0.09936155378818512, -0.016278203576803207, -0.010489482432603836, 0.12800341844558716, -0.010989776812493801, -0.06691139936447144, 0.03672419860959053, 0.3351229131221771, -0.12764234840869904, -0.059286605566740036, -0.016506675630807877, -0.1827181577682495, -0.021207522600889206, 0.04358644783496857, -0.048521894961595535, 0.10676475614309311, -0.14997537434101105, -0.12756198644638062, 0.06427785009145737, 0.04066857695579529, -0.03924361988902092, -0.11566336452960968, -0.1474316418170929, -0.10427971184253693, -0.292762815952301, 0.07395104318857193, 0.04329568147659302, 0.22106656432151794, -0.14198127388954163, 0.027346599847078323, 0.05085144191980362, -0.23415055871009827, -0.05549323931336403, -0.0075092799961566925, 0.04158875346183777, 0.15997524559497833, -0.06507456302642822, 0.14489983022212982, -0.13004717230796814, -0.054876163601875305, 0.12268339097499847, -0.07217907905578613, 0.09038189053535461, -0.09677916765213013, 0.07277161628007889, 0.03654469922184944, -0.04146799445152283, 0.014914599247276783, -0.04049430042505264, -0.13948386907577515, 0.011018849909305573, 0.08866671472787857, 0.06637498736381531, 0.16765932738780975, -0.004094086121767759, -0.1200982853770256, 0.05945729836821556, 0.07708794623613358, -0.2555738687515259, -0.17614690959453583, 0.015047093853354454, 0.12914885580539703, -0.0034894177224487066, 0.01688041351735592, -0.06617982685565948, 0.2191449999809265, 0.03368736058473587, -0.09699315577745438, 0.17131897807121277, -0.14836464822292328, 0.09075413644313812, -0.0185749139636755, -0.11147116124629974, 0.01246667467057705, 0.007872013375163078, 0.030911743640899658, -0.27770814299583435, 0.13724400103092194, 0.09290255606174469, -0.025245506316423416, -0.18258094787597656, 0.0433480367064476, 0.14793656766414642, -0.07642745971679688, -0.010816918686032295, 0.09690898656845093, 0.06745690107345581, 0.06718134880065918, 0.027058089151978493, -0.08587117493152618, 0.14357852935791016, 0.02284885011613369, -0.05393831804394722, 0.02364365942776203, -0.07589661329984665, 0.23771752417087555, -0.023517081514000893, -0.046507515013217926, 0.10748019814491272, 0.09942974150180817, 0.0959983691573143, 0.016808010637760162, 0.18545451760292053, 0.13167113065719604, -0.024419190362095833, -0.007863628678023815, 0.008715443313121796, 0.04044423997402191, -0.10522989928722382, 0.18876664340496063, 0.06899488717317581, 0.07147061079740524, -0.008073866367340088, 0.13402295112609863, 0.13427841663360596, -0.0066372985020279884, 0.18570305407047272, 0.02589348517358303, -0.026423173025250435, -0.07996062934398651, -0.06596812605857849, -0.1006474643945694, 0.12690511345863342, 0.08857321739196777, 0.0038551585748791695, 0.06555087864398956, -2.5568048320356985e-32, -0.052357226610183716, 0.008476980030536652, -0.1371433436870575, 0.08906874805688858, -0.17010340094566345, -0.01579565368592739, 0.03159385919570923, -0.01748722791671753, -0.06383350491523743, -0.060715287923812866, -0.06234698370099068, 0.031691305339336395, 0.002248290926218033, -0.05537831410765648, -0.010058870539069176, 0.06611202657222748, -0.04215940460562706, -0.023565679788589478, -0.0009144368232227862, 0.058686573058366776, -0.027176422998309135, 0.15267866849899292, 0.055054280906915665, 0.10827115178108215, -0.042587753385305405, -0.04039115458726883, -0.027240408584475517, -0.0667930617928505, 0.07537174224853516, -0.00980798713862896, -0.10052264481782913, 0.1464158594608307, 0.08370374143123627, -0.102393738925457, -0.15970170497894287, 0.02567042037844658, -0.1658129245042801, -0.1677209436893463, -0.1546853482723236, 0.061181727796792984, -0.032538894563913345, 0.0940105989575386, 0.01155388168990612, -0.22240184247493744, 0.056474100798368454, 0.07191264629364014, 0.04730032756924629, -0.10617900639772415, 0.04143926128745079, -0.11321843415498734, 0.10782263427972794, 0.07247607409954071, -0.04501285031437874, 0.03233565762639046, 0.19453555345535278, -0.04655688256025314, -0.058622170239686966, -0.013256738893687725, -0.09862835705280304, 0.011663366109132767, -0.05937909707427025, -0.07192904502153397, -0.026613347232341766, 0.029840964823961258, 0.21538293361663818, -0.03586481884121895, 0.24399049580097198, -0.06797020882368088, 0.12482628971338272, -0.04819975420832634, 0.047181323170661926, 0.11075668781995773, 0.0214545838534832, -0.002526235766708851, -0.3291585147380829, -0.0459030456840992, -0.25465431809425354, 0.1219230592250824, 0.055421773344278336, -0.10969431698322296, 0.0691533014178276, -0.019496869295835495, -0.12493167072534561, -0.00028948209364898503, 0.051829010248184204, 0.16064245998859406, -0.0675588920712471, 0.08893901109695435, -0.2017199695110321, 0.06323389708995819, 0.0188890490680933, 0.19475513696670532, 0.03807104378938675, -0.04681967943906784, -0.1415274739265442, 0.10326173901557922, 0.0779816284775734, 0.0076811364851891994, 0.016080372035503387, 0.05176178365945816, -0.10405000299215317, -0.08795437961816788, 0.037515949457883835, 0.07922735810279846, 0.16617606580257416, 0.045001864433288574, 0.05627325922250748, -0.1221848875284195, -0.17164185643196106, -0.04417639225721359, -0.03425121307373047, -0.016091566532850266, 0.1583787351846695, 0.1371120810508728, 0.16777022182941437, -0.030188094824552536, -0.1192307248711586, -0.08023957163095474, 0.24277561902999878, 0.055582195520401, -0.13756686449050903, 0.0280329380184412, -0.15238255262374878, 0.015840908512473106, -0.02887803316116333, 0.07425098121166229, -0.1942814290523529, 0.024786029011011124, 0.07484474033117294, 0.03575613349676132, -0.017467433586716652, -0.10858909785747528, 7.346905022131978e-7, -0.24521765112876892, 0.08607986569404602, -0.08219319581985474, 0.002273304620757699, -0.09731895476579666, 0.08817001432180405, -0.3665562570095062, 0.1421324908733368, 0.060879696160554886, 0.1443955898284912, 0.09871982038021088, -0.05458847060799599, -0.10097072273492813, -0.02131544053554535, 0.03635205700993538, -0.04513110592961311, -0.05556229501962662, 0.06842213124036789, 0.02349708043038845, -0.04741765931248665, 0.13242366909980774, 0.16137433052062988, 0.14143288135528564, -0.10296165943145752, -0.08266931772232056, -0.2268291860818863, -0.08323700726032257, -0.06298946589231491, 0.01774841547012329, -0.017899956554174423, 0.019833920523524284, 0.11162087321281433, -0.1528906673192978, 0.19091591238975525, 0.02971184067428112, -0.04057478904724121, -0.03906608372926712, -0.22081917524337769, 0.14791467785835266, 0.0021053911186754704, 0.08752689510583878, 0.006271237973123789, -0.001260667573660612, -0.042192645370960236, 0.2328941375017166, -0.001840122858993709, -0.020576542243361473, 0.039740998297929764, -0.1708490252494812, 0.10894300043582916, 0.13752132654190063, 0.21005398035049438, 0.16026635468006134, 0.0543430857360363, -0.0348438024520874, 0.106589674949646, -0.07569108158349991, -0.11177484691143036, 0.15489548444747925, 0.06305728107690811, -0.1468992531299591, -0.13099782168865204, 0.12874746322631836, -0.11618164926767349, -0.0037982251960784197, -0.055603139102458954, 0.01496910396963358, -6.819688160466525e-36, 0.009579848498106003, -0.03635803237557411, 0.17407996952533722, -0.14020629227161407, 0.018180452287197113, -0.0024696800392121077, 0.09469467401504517, -0.205265611410141, 0.09276988357305527, -0.297730952501297, -0.06006310507655144 ]
https://github.com/huggingface/datasets/issues/2695
Cannot import load_dataset on Colab
> @phosseini > I think it is related to [1.10.0](https://github.com/huggingface/datasets/actions/runs/1052653701) release done 3 hours ago. (cc: @lhoestq ) > For now I just downgraded to 1.9.0 and it is working fine. Same here, downgraded to 1.9.0 for now and works fine.
## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0
41
Cannot import load_dataset on Colab ## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0 > @phosseini > I think it is related to [1.10.0](https://github.com/huggingface/datasets/actions/runs/1052653701) release done 3 hours ago. (cc: @lhoestq ) > For now I just downgraded to 1.9.0 and it is working fine. Same here, downgraded to 1.9.0 for now and works fine.
[ 0.06781797111034393, 0.023376774042844772, -0.06212030351161957, -0.152190700173378, 0.05941644683480263, 0.0903053730726242, 0.22517037391662598, -0.003644049633294344, 0.027446478605270386, 0.2725427746772766, -0.09042530506849289, 0.004679972771555185, -0.0566360279917717, -0.05565553531050682, 0.013085396960377693, 0.007573314476758242, -0.12489565461874008, 0.03829413652420044, -0.09900719672441483, 0.07967157661914825, -0.009592081420123577, 0.09056538343429565, 0.10432332009077072, -0.10150959342718124, 0.015968719497323036, -0.174660325050354, 0.04680340737104416, -0.04036983475089073, -0.009045617654919624, -0.1130307987332344, 0.1758728176355362, 0.04927273839712143, 0.16125616431236267, 0.21570949256420135, 0.000005557528311328497, -0.01167605072259903, 0.19060398638248444, 0.07979068160057068, -0.0655248761177063, -0.21294540166854858, 0.03708142414689064, -0.011530967429280281, 0.06863178312778473, -0.05248594284057617, 0.022671399638056755, 0.06433794647455215, -0.08623117208480835, 0.0854065865278244, 0.14632275700569153, 0.11091259121894836, 0.027612632140517235, 0.09792869538068771, 0.014850807376205921, -0.23589101433753967, 0.024197345599532127, -0.15036967396736145, -0.035376790910959244, 0.21357613801956177, -0.09414875507354736, -0.05942358821630478, 0.012042771093547344, 0.007090738508850336, -0.008600280620157719, -0.04868891462683678, -0.1465788632631302, -0.008364962413907051, 0.054311882704496384, -0.12043503671884537, -0.022966617718338966, 0.3713359534740448, 0.053567372262477875, 0.09292902797460556, -0.06329245120286942, -0.011085203848779202, 0.015141043812036514, -0.07894030958414078, 0.047147415578365326, -0.024616995826363564, -0.17722876369953156, 0.25416100025177, 0.021539265289902687, -0.11348695307970047, -0.024226918816566467, -0.0813797190785408, -0.1496930867433548, 0.041589900851249695, -0.20433753728866577, 0.0292102862149477, -0.04896978288888931, -0.19115068018436432, 0.24407602846622467, 0.05496179684996605, -0.033406812697649, -0.1304326057434082, 0.13366585969924927, 0.027221210300922394, -0.0035611719358712435, -0.17919929325580597, -0.09768500924110413, -0.05425753444433212, -0.058039017021656036, -0.04843425378203392, -0.004420531913638115, 0.29007071256637573, 0.15152698755264282, 0.10184578597545624, 0.01026618480682373, -0.07966513186693192, -0.0729786679148674, 0.056590061634778976, -0.07898972183465958, 0.16282741725444794, -0.15948060154914856, -0.1735980063676834, 0.08564721792936325, 0.033145446330308914, 0.14098869264125824, 0.12550519406795502, -0.15176168084144592, -0.053370438516139984, 0.12116532027721405, 0.19282183051109314, -0.09582290798425674, 0.09750930964946747, 0.17152467370033264, -0.010640068911015987, -0.04036026448011398, 0.07449404150247574, -0.002205171622335911, 0.03737538307905197, -0.0697672963142395, 0.026897642761468887, -0.02678573504090309, -0.10794629156589508, 0.11999437212944031, -0.05992348492145538, -0.0059724776074290276, -0.22458739578723907, 0.06244940683245659, 0.11165159940719604, 0.11002043634653091, -0.07443609088659286, -0.25379830598831177, 0.15672089159488678, 0.170858234167099, 0.03729259967803955, 0.07355353236198425, -0.11681127548217773, -0.041343823075294495, -0.055736273527145386, -0.3008880913257599, 0.12120188027620316, -0.12374389171600342, 0.14403127133846283, -0.031926825642585754, -0.014335274696350098, -0.2066825032234192, -0.029726915061473846, -0.214821919798851, -0.17996114492416382, -0.05301648750901222, -0.025073271244764328, 0.024007542058825493, -0.05309310182929039, 0.03388914465904236, 0.1941261738538742, 0.07265709340572357, 0.03872935101389885, -0.07509420067071915, 0.03557129576802254, 0.05258319154381752, -0.001769564813002944, -0.10148511081933975, 0.1562415063381195, -0.030025813728570938, 0.0019934140145778656, 0.06375762820243835, -0.07567696273326874, -0.2514512538909912, 0.1618017554283142, 0.1341533362865448, -0.04549982026219368, -0.05081460252404213, -0.14182379841804504, 0.026488687843084335, 0.004062465857714415, 0.08144618570804596, 0.03128303959965706, -0.016564108431339264, -0.11996302008628845, 0.03390510380268097, 0.0962832048535347, 0.030735699459910393, -0.001510774134658277, 0.19840610027313232, -0.15866073966026306, 0.11420491337776184, -0.18363551795482635, 0.048266686499118805, -0.18034951388835907, -0.07554195821285248, -0.010796453803777695, -0.013726319186389446, -0.01523913536220789, -0.02870003879070282, -0.039407726377248764, -0.08682827651500702, 0.1793690174818039, 0.05583436042070389, -0.1099562868475914, -0.08901537209749222, 0.007938571274280548, -0.1816754937171936, -0.01813695766031742, -0.049283385276794434, 0.016230134293437004, -0.0008942384738475084, 0.0038831434212625027, -0.14047501981258392, 0.136148601770401, -0.10460032522678375, 0.19525402784347534, 0.11774501204490662, 0.05599817633628845, -0.02881889045238495, 0.06514789909124374, 0.059561021625995636, -0.07025594264268875, 0.07669647783041, 0.08323117345571518, -0.2169046252965927, -0.05423674359917641, -0.033034082502126694, 0.03648582845926285, 0.07907023280858994, -0.09175761789083481, 0.04007283225655556, -0.17025141417980194, 0.10169918090105057, 0.006895622704178095, -0.16245470941066742, 0.0031739266123622656, 0.05375820770859718, -0.09607949107885361, 0.07264351844787598, 0.15603016316890717, -0.045434605330228806, 0.04710821062326431, -0.04694761335849762, -0.08909627795219421, 0.28724321722984314, 0.03765496239066124, -0.18058185279369354, 0.1081312894821167, 0.15434406697750092, 0.0052145905792713165, 0.007446651812642813, 0.029315857216715813, 0.0007572072790935636, -0.09499257802963257, 0.19476576149463654, 0.04948608577251434, 0.1429470032453537, -0.05608263239264488, 0.010721311904489994, -0.0423482321202755, 0.162236288189888, -0.07764732092618942, 0.18929749727249146, 0.0982181504368782, -0.09865273535251617, -0.013356707990169525, -0.11727321892976761, -0.07254010438919067, 0.09810861945152283, 0.005798411089926958, 0.09025063365697861, 0.008642828091979027, 0.047245875000953674, -0.08523541688919067, -0.18645824491977692, 0.048121288418769836, 0.07812078297138214, -0.03621615469455719, 0.03730514645576477, 0.11555041372776031, -0.08915309607982635, -0.08147595822811127, -0.025866014882922173, -0.01107364147901535, 0.12460310757160187, 0.054052818566560745, -0.050450704991817474, -0.030661460012197495, -0.05687618628144264, 0.043064843863248825, 0.20386454463005066, -0.18321731686592102, -0.09634608775377274, -0.004931529983878136, 0.00014292096602730453, -0.03622576594352722, 0.04108617454767227, 0.01448865607380867, 0.13251127302646637, 0.053552985191345215, 0.2402840554714203, 0.1606447547674179, -0.04040652513504028, 0.0167685654014349, 0.0489942766726017, -0.08775736391544342, 0.06253074109554291, 0.1281958818435669, 0.08225630968809128, -0.028934041038155556, -0.05378780886530876, -0.07393606752157211, -0.09208925068378448, 0.08817895501852036, -0.03394487500190735, 0.0141334543004632, -0.0572805292904377, 0.033710069954395294, -0.023676401004195213, 0.07609272003173828, -0.4179201126098633, -0.03860911354422569, -0.12095382064580917, -0.1025790274143219, -0.14198634028434753, 0.10174159705638885, -0.0419914536178112, -0.032359812408685684, 0.12057429552078247, -0.05058500915765762, -0.09209299832582474, -0.06520682573318481, 0.3172169625759125, -0.1430613398551941, 0.019759999588131905, 0.05512173846364021, -0.14898993074893951, 0.06175632029771805, -0.010095869190990925, 0.010932994075119495, -0.006657389458268881, -0.15164823830127716, -0.1076304242014885, -0.1128145158290863, -0.012972045689821243, 0.07586368918418884, -0.05758323147892952, -0.05470353737473488, 0.08371662348508835, 0.11967182159423828, -0.09646733850240707, 0.07273153960704803, 0.028637215495109558, 0.052556704729795456, 0.1069352850317955, -0.031058460474014282, 0.16635870933532715, -0.07896817475557327, -0.050677381455898285, 0.16854624450206757, 0.169865682721138, 0.0468086339533329, -0.1430598348379135, -0.06413613259792328, -0.09056198596954346, -0.11012828350067139, 0.0013551960000768304, 0.07213053852319717, 0.020097794011235237, -0.006894988473504782, -0.15965120494365692, -0.14377526938915253, 0.023570742458105087, -0.1034928634762764, -0.04123171418905258, -0.07271788269281387, -0.0752660483121872, 0.13942588865756989, 0.06068429723381996, -0.05864235758781433, -0.059016767889261246, 0.08875749260187149, 0.06010904908180237, -0.011031363159418106, 0.01055368222296238, 0.17888014018535614, 0.06769514828920364, -0.14190876483917236, 0.03983668237924576, -0.10212136805057526, 0.14735469222068787, 0.20231042802333832, 0.057029154151678085, -0.012634269893169403, 0.029223252087831497, 0.01653483137488365, 0.00461452966555953, -0.0570659376680851, 0.004286936949938536, 0.022161288186907768, -0.003166753565892577, -0.09710035473108292, -0.044472552835941315, -0.07612849771976471, 0.02794397436082363, -0.034117113798856735, -0.11048255860805511, 0.07607018947601318, 0.15424083173274994, 0.02335495688021183, -0.1110367476940155, -0.2294192761182785, -0.24805393815040588, -0.20822522044181824, -0.12722967565059662, -0.151574045419693, 0.0623033381998539, 0.12627163529396057, 0.004785260185599327, -0.05269981920719147, 0.05689319968223572, -0.05274620279669762, 0.21020852029323578, -0.09936155378818512, -0.016278203576803207, -0.010489482432603836, 0.12800341844558716, -0.010989776812493801, -0.06691139936447144, 0.03672419860959053, 0.3351229131221771, -0.12764234840869904, -0.059286605566740036, -0.016506675630807877, -0.1827181577682495, -0.021207522600889206, 0.04358644783496857, -0.048521894961595535, 0.10676475614309311, -0.14997537434101105, -0.12756198644638062, 0.06427785009145737, 0.04066857695579529, -0.03924361988902092, -0.11566336452960968, -0.1474316418170929, -0.10427971184253693, -0.292762815952301, 0.07395104318857193, 0.04329568147659302, 0.22106656432151794, -0.14198127388954163, 0.027346599847078323, 0.05085144191980362, -0.23415055871009827, -0.05549323931336403, -0.0075092799961566925, 0.04158875346183777, 0.15997524559497833, -0.06507456302642822, 0.14489983022212982, -0.13004717230796814, -0.054876163601875305, 0.12268339097499847, -0.07217907905578613, 0.09038189053535461, -0.09677916765213013, 0.07277161628007889, 0.03654469922184944, -0.04146799445152283, 0.014914599247276783, -0.04049430042505264, -0.13948386907577515, 0.011018849909305573, 0.08866671472787857, 0.06637498736381531, 0.16765932738780975, -0.004094086121767759, -0.1200982853770256, 0.05945729836821556, 0.07708794623613358, -0.2555738687515259, -0.17614690959453583, 0.015047093853354454, 0.12914885580539703, -0.0034894177224487066, 0.01688041351735592, -0.06617982685565948, 0.2191449999809265, 0.03368736058473587, -0.09699315577745438, 0.17131897807121277, -0.14836464822292328, 0.09075413644313812, -0.0185749139636755, -0.11147116124629974, 0.01246667467057705, 0.007872013375163078, 0.030911743640899658, -0.27770814299583435, 0.13724400103092194, 0.09290255606174469, -0.025245506316423416, -0.18258094787597656, 0.0433480367064476, 0.14793656766414642, -0.07642745971679688, -0.010816918686032295, 0.09690898656845093, 0.06745690107345581, 0.06718134880065918, 0.027058089151978493, -0.08587117493152618, 0.14357852935791016, 0.02284885011613369, -0.05393831804394722, 0.02364365942776203, -0.07589661329984665, 0.23771752417087555, -0.023517081514000893, -0.046507515013217926, 0.10748019814491272, 0.09942974150180817, 0.0959983691573143, 0.016808010637760162, 0.18545451760292053, 0.13167113065719604, -0.024419190362095833, -0.007863628678023815, 0.008715443313121796, 0.04044423997402191, -0.10522989928722382, 0.18876664340496063, 0.06899488717317581, 0.07147061079740524, -0.008073866367340088, 0.13402295112609863, 0.13427841663360596, -0.0066372985020279884, 0.18570305407047272, 0.02589348517358303, -0.026423173025250435, -0.07996062934398651, -0.06596812605857849, -0.1006474643945694, 0.12690511345863342, 0.08857321739196777, 0.0038551585748791695, 0.06555087864398956, -2.5568048320356985e-32, -0.052357226610183716, 0.008476980030536652, -0.1371433436870575, 0.08906874805688858, -0.17010340094566345, -0.01579565368592739, 0.03159385919570923, -0.01748722791671753, -0.06383350491523743, -0.060715287923812866, -0.06234698370099068, 0.031691305339336395, 0.002248290926218033, -0.05537831410765648, -0.010058870539069176, 0.06611202657222748, -0.04215940460562706, -0.023565679788589478, -0.0009144368232227862, 0.058686573058366776, -0.027176422998309135, 0.15267866849899292, 0.055054280906915665, 0.10827115178108215, -0.042587753385305405, -0.04039115458726883, -0.027240408584475517, -0.0667930617928505, 0.07537174224853516, -0.00980798713862896, -0.10052264481782913, 0.1464158594608307, 0.08370374143123627, -0.102393738925457, -0.15970170497894287, 0.02567042037844658, -0.1658129245042801, -0.1677209436893463, -0.1546853482723236, 0.061181727796792984, -0.032538894563913345, 0.0940105989575386, 0.01155388168990612, -0.22240184247493744, 0.056474100798368454, 0.07191264629364014, 0.04730032756924629, -0.10617900639772415, 0.04143926128745079, -0.11321843415498734, 0.10782263427972794, 0.07247607409954071, -0.04501285031437874, 0.03233565762639046, 0.19453555345535278, -0.04655688256025314, -0.058622170239686966, -0.013256738893687725, -0.09862835705280304, 0.011663366109132767, -0.05937909707427025, -0.07192904502153397, -0.026613347232341766, 0.029840964823961258, 0.21538293361663818, -0.03586481884121895, 0.24399049580097198, -0.06797020882368088, 0.12482628971338272, -0.04819975420832634, 0.047181323170661926, 0.11075668781995773, 0.0214545838534832, -0.002526235766708851, -0.3291585147380829, -0.0459030456840992, -0.25465431809425354, 0.1219230592250824, 0.055421773344278336, -0.10969431698322296, 0.0691533014178276, -0.019496869295835495, -0.12493167072534561, -0.00028948209364898503, 0.051829010248184204, 0.16064245998859406, -0.0675588920712471, 0.08893901109695435, -0.2017199695110321, 0.06323389708995819, 0.0188890490680933, 0.19475513696670532, 0.03807104378938675, -0.04681967943906784, -0.1415274739265442, 0.10326173901557922, 0.0779816284775734, 0.0076811364851891994, 0.016080372035503387, 0.05176178365945816, -0.10405000299215317, -0.08795437961816788, 0.037515949457883835, 0.07922735810279846, 0.16617606580257416, 0.045001864433288574, 0.05627325922250748, -0.1221848875284195, -0.17164185643196106, -0.04417639225721359, -0.03425121307373047, -0.016091566532850266, 0.1583787351846695, 0.1371120810508728, 0.16777022182941437, -0.030188094824552536, -0.1192307248711586, -0.08023957163095474, 0.24277561902999878, 0.055582195520401, -0.13756686449050903, 0.0280329380184412, -0.15238255262374878, 0.015840908512473106, -0.02887803316116333, 0.07425098121166229, -0.1942814290523529, 0.024786029011011124, 0.07484474033117294, 0.03575613349676132, -0.017467433586716652, -0.10858909785747528, 7.346905022131978e-7, -0.24521765112876892, 0.08607986569404602, -0.08219319581985474, 0.002273304620757699, -0.09731895476579666, 0.08817001432180405, -0.3665562570095062, 0.1421324908733368, 0.060879696160554886, 0.1443955898284912, 0.09871982038021088, -0.05458847060799599, -0.10097072273492813, -0.02131544053554535, 0.03635205700993538, -0.04513110592961311, -0.05556229501962662, 0.06842213124036789, 0.02349708043038845, -0.04741765931248665, 0.13242366909980774, 0.16137433052062988, 0.14143288135528564, -0.10296165943145752, -0.08266931772232056, -0.2268291860818863, -0.08323700726032257, -0.06298946589231491, 0.01774841547012329, -0.017899956554174423, 0.019833920523524284, 0.11162087321281433, -0.1528906673192978, 0.19091591238975525, 0.02971184067428112, -0.04057478904724121, -0.03906608372926712, -0.22081917524337769, 0.14791467785835266, 0.0021053911186754704, 0.08752689510583878, 0.006271237973123789, -0.001260667573660612, -0.042192645370960236, 0.2328941375017166, -0.001840122858993709, -0.020576542243361473, 0.039740998297929764, -0.1708490252494812, 0.10894300043582916, 0.13752132654190063, 0.21005398035049438, 0.16026635468006134, 0.0543430857360363, -0.0348438024520874, 0.106589674949646, -0.07569108158349991, -0.11177484691143036, 0.15489548444747925, 0.06305728107690811, -0.1468992531299591, -0.13099782168865204, 0.12874746322631836, -0.11618164926767349, -0.0037982251960784197, -0.055603139102458954, 0.01496910396963358, -6.819688160466525e-36, 0.009579848498106003, -0.03635803237557411, 0.17407996952533722, -0.14020629227161407, 0.018180452287197113, -0.0024696800392121077, 0.09469467401504517, -0.205265611410141, 0.09276988357305527, -0.297730952501297, -0.06006310507655144 ]
https://github.com/huggingface/datasets/issues/2695
Cannot import load_dataset on Colab
Hi, updating tqdm to the newest version resolves the issue for me. You can do this as follows in Colab: ``` !pip install tqdm --upgrade ```
## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0
26
Cannot import load_dataset on Colab ## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0 Hi, updating tqdm to the newest version resolves the issue for me. You can do this as follows in Colab: ``` !pip install tqdm --upgrade ```
[ 0.06781797111034393, 0.023376774042844772, -0.06212030351161957, -0.152190700173378, 0.05941644683480263, 0.0903053730726242, 0.22517037391662598, -0.003644049633294344, 0.027446478605270386, 0.2725427746772766, -0.09042530506849289, 0.004679972771555185, -0.0566360279917717, -0.05565553531050682, 0.013085396960377693, 0.007573314476758242, -0.12489565461874008, 0.03829413652420044, -0.09900719672441483, 0.07967157661914825, -0.009592081420123577, 0.09056538343429565, 0.10432332009077072, -0.10150959342718124, 0.015968719497323036, -0.174660325050354, 0.04680340737104416, -0.04036983475089073, -0.009045617654919624, -0.1130307987332344, 0.1758728176355362, 0.04927273839712143, 0.16125616431236267, 0.21570949256420135, 0.000005557528311328497, -0.01167605072259903, 0.19060398638248444, 0.07979068160057068, -0.0655248761177063, -0.21294540166854858, 0.03708142414689064, -0.011530967429280281, 0.06863178312778473, -0.05248594284057617, 0.022671399638056755, 0.06433794647455215, -0.08623117208480835, 0.0854065865278244, 0.14632275700569153, 0.11091259121894836, 0.027612632140517235, 0.09792869538068771, 0.014850807376205921, -0.23589101433753967, 0.024197345599532127, -0.15036967396736145, -0.035376790910959244, 0.21357613801956177, -0.09414875507354736, -0.05942358821630478, 0.012042771093547344, 0.007090738508850336, -0.008600280620157719, -0.04868891462683678, -0.1465788632631302, -0.008364962413907051, 0.054311882704496384, -0.12043503671884537, -0.022966617718338966, 0.3713359534740448, 0.053567372262477875, 0.09292902797460556, -0.06329245120286942, -0.011085203848779202, 0.015141043812036514, -0.07894030958414078, 0.047147415578365326, -0.024616995826363564, -0.17722876369953156, 0.25416100025177, 0.021539265289902687, -0.11348695307970047, -0.024226918816566467, -0.0813797190785408, -0.1496930867433548, 0.041589900851249695, -0.20433753728866577, 0.0292102862149477, -0.04896978288888931, -0.19115068018436432, 0.24407602846622467, 0.05496179684996605, -0.033406812697649, -0.1304326057434082, 0.13366585969924927, 0.027221210300922394, -0.0035611719358712435, -0.17919929325580597, -0.09768500924110413, -0.05425753444433212, -0.058039017021656036, -0.04843425378203392, -0.004420531913638115, 0.29007071256637573, 0.15152698755264282, 0.10184578597545624, 0.01026618480682373, -0.07966513186693192, -0.0729786679148674, 0.056590061634778976, -0.07898972183465958, 0.16282741725444794, -0.15948060154914856, -0.1735980063676834, 0.08564721792936325, 0.033145446330308914, 0.14098869264125824, 0.12550519406795502, -0.15176168084144592, -0.053370438516139984, 0.12116532027721405, 0.19282183051109314, -0.09582290798425674, 0.09750930964946747, 0.17152467370033264, -0.010640068911015987, -0.04036026448011398, 0.07449404150247574, -0.002205171622335911, 0.03737538307905197, -0.0697672963142395, 0.026897642761468887, -0.02678573504090309, -0.10794629156589508, 0.11999437212944031, -0.05992348492145538, -0.0059724776074290276, -0.22458739578723907, 0.06244940683245659, 0.11165159940719604, 0.11002043634653091, -0.07443609088659286, -0.25379830598831177, 0.15672089159488678, 0.170858234167099, 0.03729259967803955, 0.07355353236198425, -0.11681127548217773, -0.041343823075294495, -0.055736273527145386, -0.3008880913257599, 0.12120188027620316, -0.12374389171600342, 0.14403127133846283, -0.031926825642585754, -0.014335274696350098, -0.2066825032234192, -0.029726915061473846, -0.214821919798851, -0.17996114492416382, -0.05301648750901222, -0.025073271244764328, 0.024007542058825493, -0.05309310182929039, 0.03388914465904236, 0.1941261738538742, 0.07265709340572357, 0.03872935101389885, -0.07509420067071915, 0.03557129576802254, 0.05258319154381752, -0.001769564813002944, -0.10148511081933975, 0.1562415063381195, -0.030025813728570938, 0.0019934140145778656, 0.06375762820243835, -0.07567696273326874, -0.2514512538909912, 0.1618017554283142, 0.1341533362865448, -0.04549982026219368, -0.05081460252404213, -0.14182379841804504, 0.026488687843084335, 0.004062465857714415, 0.08144618570804596, 0.03128303959965706, -0.016564108431339264, -0.11996302008628845, 0.03390510380268097, 0.0962832048535347, 0.030735699459910393, -0.001510774134658277, 0.19840610027313232, -0.15866073966026306, 0.11420491337776184, -0.18363551795482635, 0.048266686499118805, -0.18034951388835907, -0.07554195821285248, -0.010796453803777695, -0.013726319186389446, -0.01523913536220789, -0.02870003879070282, -0.039407726377248764, -0.08682827651500702, 0.1793690174818039, 0.05583436042070389, -0.1099562868475914, -0.08901537209749222, 0.007938571274280548, -0.1816754937171936, -0.01813695766031742, -0.049283385276794434, 0.016230134293437004, -0.0008942384738475084, 0.0038831434212625027, -0.14047501981258392, 0.136148601770401, -0.10460032522678375, 0.19525402784347534, 0.11774501204490662, 0.05599817633628845, -0.02881889045238495, 0.06514789909124374, 0.059561021625995636, -0.07025594264268875, 0.07669647783041, 0.08323117345571518, -0.2169046252965927, -0.05423674359917641, -0.033034082502126694, 0.03648582845926285, 0.07907023280858994, -0.09175761789083481, 0.04007283225655556, -0.17025141417980194, 0.10169918090105057, 0.006895622704178095, -0.16245470941066742, 0.0031739266123622656, 0.05375820770859718, -0.09607949107885361, 0.07264351844787598, 0.15603016316890717, -0.045434605330228806, 0.04710821062326431, -0.04694761335849762, -0.08909627795219421, 0.28724321722984314, 0.03765496239066124, -0.18058185279369354, 0.1081312894821167, 0.15434406697750092, 0.0052145905792713165, 0.007446651812642813, 0.029315857216715813, 0.0007572072790935636, -0.09499257802963257, 0.19476576149463654, 0.04948608577251434, 0.1429470032453537, -0.05608263239264488, 0.010721311904489994, -0.0423482321202755, 0.162236288189888, -0.07764732092618942, 0.18929749727249146, 0.0982181504368782, -0.09865273535251617, -0.013356707990169525, -0.11727321892976761, -0.07254010438919067, 0.09810861945152283, 0.005798411089926958, 0.09025063365697861, 0.008642828091979027, 0.047245875000953674, -0.08523541688919067, -0.18645824491977692, 0.048121288418769836, 0.07812078297138214, -0.03621615469455719, 0.03730514645576477, 0.11555041372776031, -0.08915309607982635, -0.08147595822811127, -0.025866014882922173, -0.01107364147901535, 0.12460310757160187, 0.054052818566560745, -0.050450704991817474, -0.030661460012197495, -0.05687618628144264, 0.043064843863248825, 0.20386454463005066, -0.18321731686592102, -0.09634608775377274, -0.004931529983878136, 0.00014292096602730453, -0.03622576594352722, 0.04108617454767227, 0.01448865607380867, 0.13251127302646637, 0.053552985191345215, 0.2402840554714203, 0.1606447547674179, -0.04040652513504028, 0.0167685654014349, 0.0489942766726017, -0.08775736391544342, 0.06253074109554291, 0.1281958818435669, 0.08225630968809128, -0.028934041038155556, -0.05378780886530876, -0.07393606752157211, -0.09208925068378448, 0.08817895501852036, -0.03394487500190735, 0.0141334543004632, -0.0572805292904377, 0.033710069954395294, -0.023676401004195213, 0.07609272003173828, -0.4179201126098633, -0.03860911354422569, -0.12095382064580917, -0.1025790274143219, -0.14198634028434753, 0.10174159705638885, -0.0419914536178112, -0.032359812408685684, 0.12057429552078247, -0.05058500915765762, -0.09209299832582474, -0.06520682573318481, 0.3172169625759125, -0.1430613398551941, 0.019759999588131905, 0.05512173846364021, -0.14898993074893951, 0.06175632029771805, -0.010095869190990925, 0.010932994075119495, -0.006657389458268881, -0.15164823830127716, -0.1076304242014885, -0.1128145158290863, -0.012972045689821243, 0.07586368918418884, -0.05758323147892952, -0.05470353737473488, 0.08371662348508835, 0.11967182159423828, -0.09646733850240707, 0.07273153960704803, 0.028637215495109558, 0.052556704729795456, 0.1069352850317955, -0.031058460474014282, 0.16635870933532715, -0.07896817475557327, -0.050677381455898285, 0.16854624450206757, 0.169865682721138, 0.0468086339533329, -0.1430598348379135, -0.06413613259792328, -0.09056198596954346, -0.11012828350067139, 0.0013551960000768304, 0.07213053852319717, 0.020097794011235237, -0.006894988473504782, -0.15965120494365692, -0.14377526938915253, 0.023570742458105087, -0.1034928634762764, -0.04123171418905258, -0.07271788269281387, -0.0752660483121872, 0.13942588865756989, 0.06068429723381996, -0.05864235758781433, -0.059016767889261246, 0.08875749260187149, 0.06010904908180237, -0.011031363159418106, 0.01055368222296238, 0.17888014018535614, 0.06769514828920364, -0.14190876483917236, 0.03983668237924576, -0.10212136805057526, 0.14735469222068787, 0.20231042802333832, 0.057029154151678085, -0.012634269893169403, 0.029223252087831497, 0.01653483137488365, 0.00461452966555953, -0.0570659376680851, 0.004286936949938536, 0.022161288186907768, -0.003166753565892577, -0.09710035473108292, -0.044472552835941315, -0.07612849771976471, 0.02794397436082363, -0.034117113798856735, -0.11048255860805511, 0.07607018947601318, 0.15424083173274994, 0.02335495688021183, -0.1110367476940155, -0.2294192761182785, -0.24805393815040588, -0.20822522044181824, -0.12722967565059662, -0.151574045419693, 0.0623033381998539, 0.12627163529396057, 0.004785260185599327, -0.05269981920719147, 0.05689319968223572, -0.05274620279669762, 0.21020852029323578, -0.09936155378818512, -0.016278203576803207, -0.010489482432603836, 0.12800341844558716, -0.010989776812493801, -0.06691139936447144, 0.03672419860959053, 0.3351229131221771, -0.12764234840869904, -0.059286605566740036, -0.016506675630807877, -0.1827181577682495, -0.021207522600889206, 0.04358644783496857, -0.048521894961595535, 0.10676475614309311, -0.14997537434101105, -0.12756198644638062, 0.06427785009145737, 0.04066857695579529, -0.03924361988902092, -0.11566336452960968, -0.1474316418170929, -0.10427971184253693, -0.292762815952301, 0.07395104318857193, 0.04329568147659302, 0.22106656432151794, -0.14198127388954163, 0.027346599847078323, 0.05085144191980362, -0.23415055871009827, -0.05549323931336403, -0.0075092799961566925, 0.04158875346183777, 0.15997524559497833, -0.06507456302642822, 0.14489983022212982, -0.13004717230796814, -0.054876163601875305, 0.12268339097499847, -0.07217907905578613, 0.09038189053535461, -0.09677916765213013, 0.07277161628007889, 0.03654469922184944, -0.04146799445152283, 0.014914599247276783, -0.04049430042505264, -0.13948386907577515, 0.011018849909305573, 0.08866671472787857, 0.06637498736381531, 0.16765932738780975, -0.004094086121767759, -0.1200982853770256, 0.05945729836821556, 0.07708794623613358, -0.2555738687515259, -0.17614690959453583, 0.015047093853354454, 0.12914885580539703, -0.0034894177224487066, 0.01688041351735592, -0.06617982685565948, 0.2191449999809265, 0.03368736058473587, -0.09699315577745438, 0.17131897807121277, -0.14836464822292328, 0.09075413644313812, -0.0185749139636755, -0.11147116124629974, 0.01246667467057705, 0.007872013375163078, 0.030911743640899658, -0.27770814299583435, 0.13724400103092194, 0.09290255606174469, -0.025245506316423416, -0.18258094787597656, 0.0433480367064476, 0.14793656766414642, -0.07642745971679688, -0.010816918686032295, 0.09690898656845093, 0.06745690107345581, 0.06718134880065918, 0.027058089151978493, -0.08587117493152618, 0.14357852935791016, 0.02284885011613369, -0.05393831804394722, 0.02364365942776203, -0.07589661329984665, 0.23771752417087555, -0.023517081514000893, -0.046507515013217926, 0.10748019814491272, 0.09942974150180817, 0.0959983691573143, 0.016808010637760162, 0.18545451760292053, 0.13167113065719604, -0.024419190362095833, -0.007863628678023815, 0.008715443313121796, 0.04044423997402191, -0.10522989928722382, 0.18876664340496063, 0.06899488717317581, 0.07147061079740524, -0.008073866367340088, 0.13402295112609863, 0.13427841663360596, -0.0066372985020279884, 0.18570305407047272, 0.02589348517358303, -0.026423173025250435, -0.07996062934398651, -0.06596812605857849, -0.1006474643945694, 0.12690511345863342, 0.08857321739196777, 0.0038551585748791695, 0.06555087864398956, -2.5568048320356985e-32, -0.052357226610183716, 0.008476980030536652, -0.1371433436870575, 0.08906874805688858, -0.17010340094566345, -0.01579565368592739, 0.03159385919570923, -0.01748722791671753, -0.06383350491523743, -0.060715287923812866, -0.06234698370099068, 0.031691305339336395, 0.002248290926218033, -0.05537831410765648, -0.010058870539069176, 0.06611202657222748, -0.04215940460562706, -0.023565679788589478, -0.0009144368232227862, 0.058686573058366776, -0.027176422998309135, 0.15267866849899292, 0.055054280906915665, 0.10827115178108215, -0.042587753385305405, -0.04039115458726883, -0.027240408584475517, -0.0667930617928505, 0.07537174224853516, -0.00980798713862896, -0.10052264481782913, 0.1464158594608307, 0.08370374143123627, -0.102393738925457, -0.15970170497894287, 0.02567042037844658, -0.1658129245042801, -0.1677209436893463, -0.1546853482723236, 0.061181727796792984, -0.032538894563913345, 0.0940105989575386, 0.01155388168990612, -0.22240184247493744, 0.056474100798368454, 0.07191264629364014, 0.04730032756924629, -0.10617900639772415, 0.04143926128745079, -0.11321843415498734, 0.10782263427972794, 0.07247607409954071, -0.04501285031437874, 0.03233565762639046, 0.19453555345535278, -0.04655688256025314, -0.058622170239686966, -0.013256738893687725, -0.09862835705280304, 0.011663366109132767, -0.05937909707427025, -0.07192904502153397, -0.026613347232341766, 0.029840964823961258, 0.21538293361663818, -0.03586481884121895, 0.24399049580097198, -0.06797020882368088, 0.12482628971338272, -0.04819975420832634, 0.047181323170661926, 0.11075668781995773, 0.0214545838534832, -0.002526235766708851, -0.3291585147380829, -0.0459030456840992, -0.25465431809425354, 0.1219230592250824, 0.055421773344278336, -0.10969431698322296, 0.0691533014178276, -0.019496869295835495, -0.12493167072534561, -0.00028948209364898503, 0.051829010248184204, 0.16064245998859406, -0.0675588920712471, 0.08893901109695435, -0.2017199695110321, 0.06323389708995819, 0.0188890490680933, 0.19475513696670532, 0.03807104378938675, -0.04681967943906784, -0.1415274739265442, 0.10326173901557922, 0.0779816284775734, 0.0076811364851891994, 0.016080372035503387, 0.05176178365945816, -0.10405000299215317, -0.08795437961816788, 0.037515949457883835, 0.07922735810279846, 0.16617606580257416, 0.045001864433288574, 0.05627325922250748, -0.1221848875284195, -0.17164185643196106, -0.04417639225721359, -0.03425121307373047, -0.016091566532850266, 0.1583787351846695, 0.1371120810508728, 0.16777022182941437, -0.030188094824552536, -0.1192307248711586, -0.08023957163095474, 0.24277561902999878, 0.055582195520401, -0.13756686449050903, 0.0280329380184412, -0.15238255262374878, 0.015840908512473106, -0.02887803316116333, 0.07425098121166229, -0.1942814290523529, 0.024786029011011124, 0.07484474033117294, 0.03575613349676132, -0.017467433586716652, -0.10858909785747528, 7.346905022131978e-7, -0.24521765112876892, 0.08607986569404602, -0.08219319581985474, 0.002273304620757699, -0.09731895476579666, 0.08817001432180405, -0.3665562570095062, 0.1421324908733368, 0.060879696160554886, 0.1443955898284912, 0.09871982038021088, -0.05458847060799599, -0.10097072273492813, -0.02131544053554535, 0.03635205700993538, -0.04513110592961311, -0.05556229501962662, 0.06842213124036789, 0.02349708043038845, -0.04741765931248665, 0.13242366909980774, 0.16137433052062988, 0.14143288135528564, -0.10296165943145752, -0.08266931772232056, -0.2268291860818863, -0.08323700726032257, -0.06298946589231491, 0.01774841547012329, -0.017899956554174423, 0.019833920523524284, 0.11162087321281433, -0.1528906673192978, 0.19091591238975525, 0.02971184067428112, -0.04057478904724121, -0.03906608372926712, -0.22081917524337769, 0.14791467785835266, 0.0021053911186754704, 0.08752689510583878, 0.006271237973123789, -0.001260667573660612, -0.042192645370960236, 0.2328941375017166, -0.001840122858993709, -0.020576542243361473, 0.039740998297929764, -0.1708490252494812, 0.10894300043582916, 0.13752132654190063, 0.21005398035049438, 0.16026635468006134, 0.0543430857360363, -0.0348438024520874, 0.106589674949646, -0.07569108158349991, -0.11177484691143036, 0.15489548444747925, 0.06305728107690811, -0.1468992531299591, -0.13099782168865204, 0.12874746322631836, -0.11618164926767349, -0.0037982251960784197, -0.055603139102458954, 0.01496910396963358, -6.819688160466525e-36, 0.009579848498106003, -0.03635803237557411, 0.17407996952533722, -0.14020629227161407, 0.018180452287197113, -0.0024696800392121077, 0.09469467401504517, -0.205265611410141, 0.09276988357305527, -0.297730952501297, -0.06006310507655144 ]
https://github.com/huggingface/datasets/issues/2695
Cannot import load_dataset on Colab
Hi @bayartsogt-ya and @phosseini, thanks for reporting. We are fixing this critical issue and making an urgent patch release of the `datasets` library today. In the meantime, as pointed out by @mariosasko, you can circumvent this issue by updating the `tqdm` library: ``` !pip install -U tqdm ```
## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0
48
Cannot import load_dataset on Colab ## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0 Hi @bayartsogt-ya and @phosseini, thanks for reporting. We are fixing this critical issue and making an urgent patch release of the `datasets` library today. In the meantime, as pointed out by @mariosasko, you can circumvent this issue by updating the `tqdm` library: ``` !pip install -U tqdm ```
[ 0.06781797111034393, 0.023376774042844772, -0.06212030351161957, -0.152190700173378, 0.05941644683480263, 0.0903053730726242, 0.22517037391662598, -0.003644049633294344, 0.027446478605270386, 0.2725427746772766, -0.09042530506849289, 0.004679972771555185, -0.0566360279917717, -0.05565553531050682, 0.013085396960377693, 0.007573314476758242, -0.12489565461874008, 0.03829413652420044, -0.09900719672441483, 0.07967157661914825, -0.009592081420123577, 0.09056538343429565, 0.10432332009077072, -0.10150959342718124, 0.015968719497323036, -0.174660325050354, 0.04680340737104416, -0.04036983475089073, -0.009045617654919624, -0.1130307987332344, 0.1758728176355362, 0.04927273839712143, 0.16125616431236267, 0.21570949256420135, 0.000005557528311328497, -0.01167605072259903, 0.19060398638248444, 0.07979068160057068, -0.0655248761177063, -0.21294540166854858, 0.03708142414689064, -0.011530967429280281, 0.06863178312778473, -0.05248594284057617, 0.022671399638056755, 0.06433794647455215, -0.08623117208480835, 0.0854065865278244, 0.14632275700569153, 0.11091259121894836, 0.027612632140517235, 0.09792869538068771, 0.014850807376205921, -0.23589101433753967, 0.024197345599532127, -0.15036967396736145, -0.035376790910959244, 0.21357613801956177, -0.09414875507354736, -0.05942358821630478, 0.012042771093547344, 0.007090738508850336, -0.008600280620157719, -0.04868891462683678, -0.1465788632631302, -0.008364962413907051, 0.054311882704496384, -0.12043503671884537, -0.022966617718338966, 0.3713359534740448, 0.053567372262477875, 0.09292902797460556, -0.06329245120286942, -0.011085203848779202, 0.015141043812036514, -0.07894030958414078, 0.047147415578365326, -0.024616995826363564, -0.17722876369953156, 0.25416100025177, 0.021539265289902687, -0.11348695307970047, -0.024226918816566467, -0.0813797190785408, -0.1496930867433548, 0.041589900851249695, -0.20433753728866577, 0.0292102862149477, -0.04896978288888931, -0.19115068018436432, 0.24407602846622467, 0.05496179684996605, -0.033406812697649, -0.1304326057434082, 0.13366585969924927, 0.027221210300922394, -0.0035611719358712435, -0.17919929325580597, -0.09768500924110413, -0.05425753444433212, -0.058039017021656036, -0.04843425378203392, -0.004420531913638115, 0.29007071256637573, 0.15152698755264282, 0.10184578597545624, 0.01026618480682373, -0.07966513186693192, -0.0729786679148674, 0.056590061634778976, -0.07898972183465958, 0.16282741725444794, -0.15948060154914856, -0.1735980063676834, 0.08564721792936325, 0.033145446330308914, 0.14098869264125824, 0.12550519406795502, -0.15176168084144592, -0.053370438516139984, 0.12116532027721405, 0.19282183051109314, -0.09582290798425674, 0.09750930964946747, 0.17152467370033264, -0.010640068911015987, -0.04036026448011398, 0.07449404150247574, -0.002205171622335911, 0.03737538307905197, -0.0697672963142395, 0.026897642761468887, -0.02678573504090309, -0.10794629156589508, 0.11999437212944031, -0.05992348492145538, -0.0059724776074290276, -0.22458739578723907, 0.06244940683245659, 0.11165159940719604, 0.11002043634653091, -0.07443609088659286, -0.25379830598831177, 0.15672089159488678, 0.170858234167099, 0.03729259967803955, 0.07355353236198425, -0.11681127548217773, -0.041343823075294495, -0.055736273527145386, -0.3008880913257599, 0.12120188027620316, -0.12374389171600342, 0.14403127133846283, -0.031926825642585754, -0.014335274696350098, -0.2066825032234192, -0.029726915061473846, -0.214821919798851, -0.17996114492416382, -0.05301648750901222, -0.025073271244764328, 0.024007542058825493, -0.05309310182929039, 0.03388914465904236, 0.1941261738538742, 0.07265709340572357, 0.03872935101389885, -0.07509420067071915, 0.03557129576802254, 0.05258319154381752, -0.001769564813002944, -0.10148511081933975, 0.1562415063381195, -0.030025813728570938, 0.0019934140145778656, 0.06375762820243835, -0.07567696273326874, -0.2514512538909912, 0.1618017554283142, 0.1341533362865448, -0.04549982026219368, -0.05081460252404213, -0.14182379841804504, 0.026488687843084335, 0.004062465857714415, 0.08144618570804596, 0.03128303959965706, -0.016564108431339264, -0.11996302008628845, 0.03390510380268097, 0.0962832048535347, 0.030735699459910393, -0.001510774134658277, 0.19840610027313232, -0.15866073966026306, 0.11420491337776184, -0.18363551795482635, 0.048266686499118805, -0.18034951388835907, -0.07554195821285248, -0.010796453803777695, -0.013726319186389446, -0.01523913536220789, -0.02870003879070282, -0.039407726377248764, -0.08682827651500702, 0.1793690174818039, 0.05583436042070389, -0.1099562868475914, -0.08901537209749222, 0.007938571274280548, -0.1816754937171936, -0.01813695766031742, -0.049283385276794434, 0.016230134293437004, -0.0008942384738475084, 0.0038831434212625027, -0.14047501981258392, 0.136148601770401, -0.10460032522678375, 0.19525402784347534, 0.11774501204490662, 0.05599817633628845, -0.02881889045238495, 0.06514789909124374, 0.059561021625995636, -0.07025594264268875, 0.07669647783041, 0.08323117345571518, -0.2169046252965927, -0.05423674359917641, -0.033034082502126694, 0.03648582845926285, 0.07907023280858994, -0.09175761789083481, 0.04007283225655556, -0.17025141417980194, 0.10169918090105057, 0.006895622704178095, -0.16245470941066742, 0.0031739266123622656, 0.05375820770859718, -0.09607949107885361, 0.07264351844787598, 0.15603016316890717, -0.045434605330228806, 0.04710821062326431, -0.04694761335849762, -0.08909627795219421, 0.28724321722984314, 0.03765496239066124, -0.18058185279369354, 0.1081312894821167, 0.15434406697750092, 0.0052145905792713165, 0.007446651812642813, 0.029315857216715813, 0.0007572072790935636, -0.09499257802963257, 0.19476576149463654, 0.04948608577251434, 0.1429470032453537, -0.05608263239264488, 0.010721311904489994, -0.0423482321202755, 0.162236288189888, -0.07764732092618942, 0.18929749727249146, 0.0982181504368782, -0.09865273535251617, -0.013356707990169525, -0.11727321892976761, -0.07254010438919067, 0.09810861945152283, 0.005798411089926958, 0.09025063365697861, 0.008642828091979027, 0.047245875000953674, -0.08523541688919067, -0.18645824491977692, 0.048121288418769836, 0.07812078297138214, -0.03621615469455719, 0.03730514645576477, 0.11555041372776031, -0.08915309607982635, -0.08147595822811127, -0.025866014882922173, -0.01107364147901535, 0.12460310757160187, 0.054052818566560745, -0.050450704991817474, -0.030661460012197495, -0.05687618628144264, 0.043064843863248825, 0.20386454463005066, -0.18321731686592102, -0.09634608775377274, -0.004931529983878136, 0.00014292096602730453, -0.03622576594352722, 0.04108617454767227, 0.01448865607380867, 0.13251127302646637, 0.053552985191345215, 0.2402840554714203, 0.1606447547674179, -0.04040652513504028, 0.0167685654014349, 0.0489942766726017, -0.08775736391544342, 0.06253074109554291, 0.1281958818435669, 0.08225630968809128, -0.028934041038155556, -0.05378780886530876, -0.07393606752157211, -0.09208925068378448, 0.08817895501852036, -0.03394487500190735, 0.0141334543004632, -0.0572805292904377, 0.033710069954395294, -0.023676401004195213, 0.07609272003173828, -0.4179201126098633, -0.03860911354422569, -0.12095382064580917, -0.1025790274143219, -0.14198634028434753, 0.10174159705638885, -0.0419914536178112, -0.032359812408685684, 0.12057429552078247, -0.05058500915765762, -0.09209299832582474, -0.06520682573318481, 0.3172169625759125, -0.1430613398551941, 0.019759999588131905, 0.05512173846364021, -0.14898993074893951, 0.06175632029771805, -0.010095869190990925, 0.010932994075119495, -0.006657389458268881, -0.15164823830127716, -0.1076304242014885, -0.1128145158290863, -0.012972045689821243, 0.07586368918418884, -0.05758323147892952, -0.05470353737473488, 0.08371662348508835, 0.11967182159423828, -0.09646733850240707, 0.07273153960704803, 0.028637215495109558, 0.052556704729795456, 0.1069352850317955, -0.031058460474014282, 0.16635870933532715, -0.07896817475557327, -0.050677381455898285, 0.16854624450206757, 0.169865682721138, 0.0468086339533329, -0.1430598348379135, -0.06413613259792328, -0.09056198596954346, -0.11012828350067139, 0.0013551960000768304, 0.07213053852319717, 0.020097794011235237, -0.006894988473504782, -0.15965120494365692, -0.14377526938915253, 0.023570742458105087, -0.1034928634762764, -0.04123171418905258, -0.07271788269281387, -0.0752660483121872, 0.13942588865756989, 0.06068429723381996, -0.05864235758781433, -0.059016767889261246, 0.08875749260187149, 0.06010904908180237, -0.011031363159418106, 0.01055368222296238, 0.17888014018535614, 0.06769514828920364, -0.14190876483917236, 0.03983668237924576, -0.10212136805057526, 0.14735469222068787, 0.20231042802333832, 0.057029154151678085, -0.012634269893169403, 0.029223252087831497, 0.01653483137488365, 0.00461452966555953, -0.0570659376680851, 0.004286936949938536, 0.022161288186907768, -0.003166753565892577, -0.09710035473108292, -0.044472552835941315, -0.07612849771976471, 0.02794397436082363, -0.034117113798856735, -0.11048255860805511, 0.07607018947601318, 0.15424083173274994, 0.02335495688021183, -0.1110367476940155, -0.2294192761182785, -0.24805393815040588, -0.20822522044181824, -0.12722967565059662, -0.151574045419693, 0.0623033381998539, 0.12627163529396057, 0.004785260185599327, -0.05269981920719147, 0.05689319968223572, -0.05274620279669762, 0.21020852029323578, -0.09936155378818512, -0.016278203576803207, -0.010489482432603836, 0.12800341844558716, -0.010989776812493801, -0.06691139936447144, 0.03672419860959053, 0.3351229131221771, -0.12764234840869904, -0.059286605566740036, -0.016506675630807877, -0.1827181577682495, -0.021207522600889206, 0.04358644783496857, -0.048521894961595535, 0.10676475614309311, -0.14997537434101105, -0.12756198644638062, 0.06427785009145737, 0.04066857695579529, -0.03924361988902092, -0.11566336452960968, -0.1474316418170929, -0.10427971184253693, -0.292762815952301, 0.07395104318857193, 0.04329568147659302, 0.22106656432151794, -0.14198127388954163, 0.027346599847078323, 0.05085144191980362, -0.23415055871009827, -0.05549323931336403, -0.0075092799961566925, 0.04158875346183777, 0.15997524559497833, -0.06507456302642822, 0.14489983022212982, -0.13004717230796814, -0.054876163601875305, 0.12268339097499847, -0.07217907905578613, 0.09038189053535461, -0.09677916765213013, 0.07277161628007889, 0.03654469922184944, -0.04146799445152283, 0.014914599247276783, -0.04049430042505264, -0.13948386907577515, 0.011018849909305573, 0.08866671472787857, 0.06637498736381531, 0.16765932738780975, -0.004094086121767759, -0.1200982853770256, 0.05945729836821556, 0.07708794623613358, -0.2555738687515259, -0.17614690959453583, 0.015047093853354454, 0.12914885580539703, -0.0034894177224487066, 0.01688041351735592, -0.06617982685565948, 0.2191449999809265, 0.03368736058473587, -0.09699315577745438, 0.17131897807121277, -0.14836464822292328, 0.09075413644313812, -0.0185749139636755, -0.11147116124629974, 0.01246667467057705, 0.007872013375163078, 0.030911743640899658, -0.27770814299583435, 0.13724400103092194, 0.09290255606174469, -0.025245506316423416, -0.18258094787597656, 0.0433480367064476, 0.14793656766414642, -0.07642745971679688, -0.010816918686032295, 0.09690898656845093, 0.06745690107345581, 0.06718134880065918, 0.027058089151978493, -0.08587117493152618, 0.14357852935791016, 0.02284885011613369, -0.05393831804394722, 0.02364365942776203, -0.07589661329984665, 0.23771752417087555, -0.023517081514000893, -0.046507515013217926, 0.10748019814491272, 0.09942974150180817, 0.0959983691573143, 0.016808010637760162, 0.18545451760292053, 0.13167113065719604, -0.024419190362095833, -0.007863628678023815, 0.008715443313121796, 0.04044423997402191, -0.10522989928722382, 0.18876664340496063, 0.06899488717317581, 0.07147061079740524, -0.008073866367340088, 0.13402295112609863, 0.13427841663360596, -0.0066372985020279884, 0.18570305407047272, 0.02589348517358303, -0.026423173025250435, -0.07996062934398651, -0.06596812605857849, -0.1006474643945694, 0.12690511345863342, 0.08857321739196777, 0.0038551585748791695, 0.06555087864398956, -2.5568048320356985e-32, -0.052357226610183716, 0.008476980030536652, -0.1371433436870575, 0.08906874805688858, -0.17010340094566345, -0.01579565368592739, 0.03159385919570923, -0.01748722791671753, -0.06383350491523743, -0.060715287923812866, -0.06234698370099068, 0.031691305339336395, 0.002248290926218033, -0.05537831410765648, -0.010058870539069176, 0.06611202657222748, -0.04215940460562706, -0.023565679788589478, -0.0009144368232227862, 0.058686573058366776, -0.027176422998309135, 0.15267866849899292, 0.055054280906915665, 0.10827115178108215, -0.042587753385305405, -0.04039115458726883, -0.027240408584475517, -0.0667930617928505, 0.07537174224853516, -0.00980798713862896, -0.10052264481782913, 0.1464158594608307, 0.08370374143123627, -0.102393738925457, -0.15970170497894287, 0.02567042037844658, -0.1658129245042801, -0.1677209436893463, -0.1546853482723236, 0.061181727796792984, -0.032538894563913345, 0.0940105989575386, 0.01155388168990612, -0.22240184247493744, 0.056474100798368454, 0.07191264629364014, 0.04730032756924629, -0.10617900639772415, 0.04143926128745079, -0.11321843415498734, 0.10782263427972794, 0.07247607409954071, -0.04501285031437874, 0.03233565762639046, 0.19453555345535278, -0.04655688256025314, -0.058622170239686966, -0.013256738893687725, -0.09862835705280304, 0.011663366109132767, -0.05937909707427025, -0.07192904502153397, -0.026613347232341766, 0.029840964823961258, 0.21538293361663818, -0.03586481884121895, 0.24399049580097198, -0.06797020882368088, 0.12482628971338272, -0.04819975420832634, 0.047181323170661926, 0.11075668781995773, 0.0214545838534832, -0.002526235766708851, -0.3291585147380829, -0.0459030456840992, -0.25465431809425354, 0.1219230592250824, 0.055421773344278336, -0.10969431698322296, 0.0691533014178276, -0.019496869295835495, -0.12493167072534561, -0.00028948209364898503, 0.051829010248184204, 0.16064245998859406, -0.0675588920712471, 0.08893901109695435, -0.2017199695110321, 0.06323389708995819, 0.0188890490680933, 0.19475513696670532, 0.03807104378938675, -0.04681967943906784, -0.1415274739265442, 0.10326173901557922, 0.0779816284775734, 0.0076811364851891994, 0.016080372035503387, 0.05176178365945816, -0.10405000299215317, -0.08795437961816788, 0.037515949457883835, 0.07922735810279846, 0.16617606580257416, 0.045001864433288574, 0.05627325922250748, -0.1221848875284195, -0.17164185643196106, -0.04417639225721359, -0.03425121307373047, -0.016091566532850266, 0.1583787351846695, 0.1371120810508728, 0.16777022182941437, -0.030188094824552536, -0.1192307248711586, -0.08023957163095474, 0.24277561902999878, 0.055582195520401, -0.13756686449050903, 0.0280329380184412, -0.15238255262374878, 0.015840908512473106, -0.02887803316116333, 0.07425098121166229, -0.1942814290523529, 0.024786029011011124, 0.07484474033117294, 0.03575613349676132, -0.017467433586716652, -0.10858909785747528, 7.346905022131978e-7, -0.24521765112876892, 0.08607986569404602, -0.08219319581985474, 0.002273304620757699, -0.09731895476579666, 0.08817001432180405, -0.3665562570095062, 0.1421324908733368, 0.060879696160554886, 0.1443955898284912, 0.09871982038021088, -0.05458847060799599, -0.10097072273492813, -0.02131544053554535, 0.03635205700993538, -0.04513110592961311, -0.05556229501962662, 0.06842213124036789, 0.02349708043038845, -0.04741765931248665, 0.13242366909980774, 0.16137433052062988, 0.14143288135528564, -0.10296165943145752, -0.08266931772232056, -0.2268291860818863, -0.08323700726032257, -0.06298946589231491, 0.01774841547012329, -0.017899956554174423, 0.019833920523524284, 0.11162087321281433, -0.1528906673192978, 0.19091591238975525, 0.02971184067428112, -0.04057478904724121, -0.03906608372926712, -0.22081917524337769, 0.14791467785835266, 0.0021053911186754704, 0.08752689510583878, 0.006271237973123789, -0.001260667573660612, -0.042192645370960236, 0.2328941375017166, -0.001840122858993709, -0.020576542243361473, 0.039740998297929764, -0.1708490252494812, 0.10894300043582916, 0.13752132654190063, 0.21005398035049438, 0.16026635468006134, 0.0543430857360363, -0.0348438024520874, 0.106589674949646, -0.07569108158349991, -0.11177484691143036, 0.15489548444747925, 0.06305728107690811, -0.1468992531299591, -0.13099782168865204, 0.12874746322631836, -0.11618164926767349, -0.0037982251960784197, -0.055603139102458954, 0.01496910396963358, -6.819688160466525e-36, 0.009579848498106003, -0.03635803237557411, 0.17407996952533722, -0.14020629227161407, 0.018180452287197113, -0.0024696800392121077, 0.09469467401504517, -0.205265611410141, 0.09276988357305527, -0.297730952501297, -0.06006310507655144 ]
https://github.com/huggingface/datasets/issues/2691
xtreme / pan-x cannot be downloaded
Hi @severo, thanks for reporting. However I have not been able to reproduce this issue. Could you please confirm if the problem persists for you? Maybe Dropbox (where the data source is hosted) was temporarily unavailable when you tried.
## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
39
xtreme / pan-x cannot be downloaded ## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 Hi @severo, thanks for reporting. However I have not been able to reproduce this issue. Could you please confirm if the problem persists for you? Maybe Dropbox (where the data source is hosted) was temporarily unavailable when you tried.
[ 0.020630719140172005, -0.09449049830436707, -0.11275267601013184, 0.07548799365758896, 0.11030185967683792, -0.10278940945863724, -0.020747562870383263, 0.048109859228134155, -0.08178769797086716, 0.12945611774921417, -0.09435301274061203, 0.08335895091295242, 0.08510784059762955, 0.18913377821445465, 0.024726688861846924, -0.030208885669708252, -0.07814855873584747, 0.0802665427327156, 0.030704474076628685, -0.06117318570613861, 0.05774620920419693, 0.011341799981892109, 0.09175761044025421, -0.07008729130029678, 0.09079183638095856, -0.0024276182521134615, 0.015203287824988365, -0.017467904835939407, 0.0002408406144240871, -0.2155105322599411, 0.23422576487064362, 0.07936470210552216, 0.013929679058492184, 0.16017736494541168, 0.000005833990144310519, -0.016727272421121597, 0.08932431787252426, 0.12144003063440323, 0.0030161035247147083, -0.1150415763258934, -0.007542114704847336, -0.10711104422807693, -0.054695166647434235, -0.11731453984975815, -0.018662815913558006, -0.021811584010720253, -0.11794928461313248, 0.018080681562423706, 0.1174393817782402, 0.14707051217556, 0.0021243158262223005, 0.1689843386411667, 0.12431357800960541, -0.21918463706970215, 0.11810867488384247, -0.023944512009620667, -0.07313083112239838, 0.12153013795614243, -0.0011615544790402055, 0.10142430663108826, -0.03695497661828995, -0.00042178109288215637, 0.11309736222028732, 0.09340714663267136, -0.1293443739414215, 0.054726216942071915, -0.1331857591867447, -0.1988341212272644, -0.007640158757567406, 0.14878325164318085, 0.09755481779575348, 0.11293286085128784, -0.07574925571680069, -0.01624516025185585, 0.04657331109046936, -0.08786994218826294, 0.010435252450406551, 0.12706723809242249, -0.0017564082518219948, 0.09471499174833298, -0.07379764318466187, 0.03272167593240738, 0.08019626140594482, -0.12631873786449432, 0.01762227714061737, 0.1794218271970749, -0.14144301414489746, -0.048852402716875076, -0.054152507334947586, -0.14274029433727264, 0.28395748138427734, 0.05809793248772621, 0.06864365190267563, -0.038840558379888535, -0.04363434389233589, 0.14913082122802734, -0.059855781495571136, -0.08672821521759033, 0.06594487279653549, -0.07830614596605301, -0.07570559531450272, 0.012387869879603386, -0.06739124655723572, 0.11281657963991165, 0.06591665744781494, 0.053666409105062485, 0.1327119767665863, -0.09564749151468277, 0.15610386431217194, 0.010144264437258244, 0.0745159387588501, 0.005180067848414183, -0.07646029442548752, -0.09204086661338806, -0.03345067426562309, -0.05470047518610954, 0.13764524459838867, -0.044023722410202026, -0.0677991732954979, -0.03411060944199562, 0.13617505133152008, 0.1339561939239502, -0.029792454093694687, 0.09034839272499084, -0.004716108553111553, -0.002115703886374831, -0.19343334436416626, 0.13127580285072327, -0.07887811213731766, 0.14021024107933044, -0.029630444943904877, 0.16177509725093842, -0.12441219389438629, -0.12033514678478241, 0.2358170747756958, -0.036888882517814636, -0.005236783530563116, -0.11685147136449814, 0.12842358648777008, -0.1302289217710495, -0.013327023945748806, -0.07323663681745529, -0.11012578010559082, 0.05201080068945885, 0.27637436985969543, -0.011262986809015274, -0.00455859862267971, 0.13711263239383698, 0.1103130504488945, 0.037321049720048904, -0.2113177627325058, -0.0039167325012385845, -0.02427736669778824, 0.1128544807434082, -0.1316051036119461, 0.009857936762273312, -0.17542213201522827, -0.002671270864084363, -0.1057264506816864, -0.0055445777252316475, 0.12264292687177658, -0.06663857400417328, 0.18696872889995575, 0.026733286678791046, 0.1735406368970871, 0.10481537133455276, 0.09923258423805237, 0.04807721823453903, -0.1020154282450676, -0.0785439983010292, 0.015826331451535225, -0.0587313137948513, -0.05215299129486084, 0.0038997347000986338, -0.12380824983119965, 0.2252189815044403, 0.02615327574312687, -0.2593139708042145, -0.3599309027194977, 0.034599509090185165, 0.053748719394207, -0.23401474952697754, 0.013716829009354115, -0.04386467486619949, 0.15089482069015503, 0.07889802008867264, -0.003907215315848589, 0.07412687689065933, 0.06472032517194748, -0.01970677450299263, -0.07100452482700348, -0.02560589276254177, -0.1806298792362213, -0.037866365164518356, 0.08709405362606049, -0.11437463760375977, 0.14583256840705872, 0.10600125789642334, 0.08012701570987701, -0.059571899473667145, 0.12430766969919205, 0.040782321244478226, -0.01427808403968811, -0.008422858081758022, 0.030537741258740425, -0.05531620606780052, 0.023410409688949585, 0.21244506537914276, 0.03968922793865204, 0.025481777265667915, -0.12317429482936859, 0.06793989986181259, -0.07173093408346176, 0.04002589359879494, -0.01654438115656376, -0.04647289589047432, -0.07994599640369415, 0.06530746072530746, 0.07943026721477509, 0.12336378544569016, -0.02036241441965103, 0.016302229836583138, 0.10777714103460312, 0.03652331605553627, -0.1127178892493248, 0.0658746138215065, -0.06699861586093903, 0.012519066222012043, 0.137719064950943, -0.03231880068778992, -0.11716504395008087, -0.12399110943078995, 0.12100434303283691, -0.00147158931940794, -0.048939529806375504, -0.017265180125832558, 0.19509732723236084, -0.20959149301052094, 0.059728022664785385, -0.21500909328460693, -0.02747226320207119, 0.012213029898703098, -0.16074113547801971, -0.08266495913267136, 0.025866253301501274, -0.06850351393222809, -0.05101460963487625, -0.09743688255548477, -0.04266757890582085, 0.12757281959056854, 0.257698118686676, 0.022550353780388832, -0.06929312646389008, 0.00011655221169348806, 0.1367947906255722, -0.21735887229442596, 0.2001969963312149, -0.009524530731141567, 0.03762666508555412, -0.08299633115530014, 0.2113969773054123, -0.16617605090141296, -0.035588715225458145, 0.04706374555826187, 0.08926606178283691, -0.13540253043174744, 0.0011984043521806598, 0.12219717353582382, 0.06375318765640259, 0.01158067025244236, 0.046457093209028244, -0.15725195407867432, -0.10583902895450592, -0.25475963950157166, -0.058714210987091064, -0.12263745069503784, -0.11685600876808167, 0.1983039379119873, -0.09280654788017273, 0.10545458644628525, -0.17845061421394348, 0.03479187935590744, 0.024012355133891106, -0.00560344010591507, 0.13805928826332092, 0.01839015819132328, -0.19255416095256805, -0.1962186098098755, 0.06817932426929474, -0.020028818398714066, -0.004178513772785664, -0.012161890044808388, 0.040379058569669724, -0.1065732017159462, -0.043624404817819595, -0.05289725959300995, -0.10407405346632004, -0.2618539333343506, 0.09603013098239899, 0.0018330136081203818, -0.07487928122282028, 0.029553167521953583, 0.121369369328022, -0.07934524863958359, -0.06105507165193558, 0.06601111590862274, 0.08387704193592072, 0.017792565748095512, 0.010769444517791271, -0.13540081679821014, -0.01903480663895607, 0.06518548727035522, 0.20336763560771942, 0.10277752578258514, -0.020275665447115898, -0.025382360443472862, 0.03982872515916824, 0.11472120881080627, -0.032408639788627625, 0.04068094119429588, 0.060196492820978165, 0.05261959508061409, -0.08570626378059387, -0.09583114087581635, -0.007663555443286896, 0.08926717936992645, -0.1385515034198761, -0.12231705337762833, -0.0806959792971611, -0.10052342712879181, -0.03438358008861542, -0.0062200333923101425, -0.11867319792509079, 0.00012313207844272256, -0.09277909994125366, -0.2580200433731079, -0.05194958299398422, -0.3048650324344635, 0.173007994890213, -0.034694984555244446, -0.004161722958087921, 0.09444843977689743, -0.013945523649454117, 0.007661010604351759, -0.09860078245401382, -0.2387440949678421, -0.10248171538114548, -0.17556627094745636, 0.035881444811820984, -0.06732861697673798, -0.0745411366224289, -0.02504405565559864, -0.035899568349123, 0.056911349296569824, -0.009017635136842728, 0.02195068821310997, -0.15186841785907745, 0.14115417003631592, -0.09162919223308563, -0.006639165338128805, -0.028982119634747505, 0.13512028753757477, -0.10205822438001633, 0.0543009415268898, -0.0654195249080658, 0.22444021701812744, 0.1546168476343155, 0.13806545734405518, -0.0382353812456131, -0.15470771491527557, -0.12902531027793884, -0.010315393097698689, 0.09572755545377731, -0.1050659790635109, 0.032153286039829254, 0.08683528006076813, -0.13456590473651886, -0.1773538887500763, 0.055277321487665176, -0.09776895493268967, -0.07715969532728195, -0.10824330896139145, -0.13029561936855316, 0.0404532253742218, 0.22137369215488434, 0.08517686277627945, -0.0348135344684124, 0.0626969039440155, 0.10637318342924118, 0.0026891781017184258, -0.007860786281526089, -0.014366351068019867, 0.17707039415836334, 0.02979147434234619, 0.10770003497600555, -0.1353735625743866, 0.24999995529651642, 0.020405849441885948, 0.0907069742679596, 0.11147165298461914, -0.054579976946115494, 0.03235374763607979, 0.017924942076206207, 0.20742781460285187, 0.06951124221086502, -0.05699194222688675, 0.11669337749481201, -0.05463426187634468, -0.14020386338233948, -0.12126567959785461, 0.07965835183858871, 0.08481144905090332, 0.07461032271385193, -0.11215080320835114, 0.10833534598350525, 0.04124926030635834, -0.01145181618630886, -0.034771569073200226, -0.0767696276307106, -0.2134898453950882, -0.009875799529254436, -0.03134036436676979, -0.018850408494472504, -0.03134823963046074, 0.09305578470230103, 0.017568299546837807, -0.08186696469783783, -0.11803501099348068, 0.3100079298019409, 0.024085722863674164, 0.016732431948184967, -0.05567571893334389, 0.08235511183738708, 0.08124886453151703, -0.12304174154996872, -0.054566558450460434, 0.26700514554977417, -0.10382676124572754, -0.09149912744760513, 0.0424034520983696, -0.1400955319404602, -0.1676793396472931, 0.21223413944244385, -0.09169730544090271, -0.04588761553168297, -0.15646691620349884, 0.060855425894260406, 0.05434190481901169, 0.03914684057235718, 0.04088098555803299, -0.014860125258564949, -0.18368878960609436, 0.09915834665298462, -0.18353202939033508, 0.061366353183984756, 0.051688358187675476, 0.1418452262878418, -0.1802586317062378, 0.07220437377691269, -0.1380704641342163, -0.06997966766357422, -0.0019539794884622097, -0.038311611860990524, 0.005729430355131626, 0.21571087837219238, 0.10815420746803284, 0.12275180965662003, -0.27660897374153137, 0.1188368946313858, 0.010519257746636868, -0.20555078983306885, 0.01991099864244461, -0.03863615170121193, 0.02199826017022133, 0.16071009635925293, 0.014816714450716972, 0.048029541969299316, 0.004253820516169071, 0.169850692152977, -0.02952452190220356, 0.05920737236738205, 0.19001738727092743, -0.022939259186387062, -0.21299245953559875, 0.057690538465976715, 0.06029375642538071, -0.013252890668809414, -0.1036810427904129, -0.07564966380596161, 0.004992701578885317, 0.07381558418273926, 0.09252159297466278, 0.035849928855895996, -0.025302693247795105, 0.10415185987949371, -0.13617262244224548, -0.19430798292160034, -0.1107255145907402, -0.09096129238605499, -0.018392100930213928, 0.01914137788116932, -0.09578008204698563, 0.11043189465999603, 0.012699250131845474, -0.13152764737606049, -0.12489835917949677, 0.029413975775241852, -0.12836287915706635, -0.09676604717969894, -0.12343809008598328, 0.031718283891677856, 0.0917229875922203, -0.008159544318914413, -0.19478914141654968, 0.028568748384714127, -0.10659254342317581, -0.020658159628510475, 0.04025738686323166, -0.024271957576274872, -0.029011311009526253, -0.0485704131424427, -0.0158484298735857, 0.09422942996025085, 0.013545406050980091, -0.007330209482461214, 0.08572489023208618, -0.015152719803154469, 0.08544731140136719, 0.031064599752426147, -0.007352227810770273, 0.04036768525838852, 0.02673046477138996, 0.04209316521883011, -0.02537096105515957, -0.09591632336378098, 0.0643957331776619, -0.1077423170208931, -0.27590522170066833, 0.016417246311903, -0.12929247319698334, -0.030935585498809814, -0.05557629093527794, -0.01845727488398552, 0.13711270689964294, -0.031069930642843246, 0.1442885845899582, -0.12450888007879257, 0.09878277033567429, 0.03433423116803169, 0.0003150652628391981, 0.03398009389638901, 0.0659351721405983, 0.10333595424890518, 0.16680066287517548, 0.034076422452926636, -2.60255918639993e-32, -0.029971493408083916, 0.056343935430049896, -0.07801258563995361, 0.10447649657726288, -0.22386236488819122, 0.12758934497833252, -0.15150587260723114, -0.0737454816699028, -0.04171203821897507, -0.17234492301940918, 0.09657735377550125, 0.06595417857170105, 0.028174955397844315, 0.07667197287082672, -0.142703115940094, -0.03580234944820404, -0.16028401255607605, 0.023284869268536568, -0.02479955367743969, 0.011859266087412834, 0.017998425289988518, 0.09954708814620972, -0.13032135367393494, -0.018773451447486877, -0.012127016671001911, -0.07083465158939362, -0.039219871163368225, 0.0058774640783667564, 0.0357314869761467, 0.08802632987499237, 0.05162389203906059, 0.09791721403598785, 0.05945226550102234, -0.11013954877853394, -0.1291073113679886, -0.06442340463399887, 0.04269174858927727, -0.11330468207597733, -0.17121393978595734, 0.11563658714294434, 0.03881765156984329, 0.11785033345222473, 0.035426072776317596, -0.10131937265396118, 0.015186200849711895, 0.14009040594100952, 0.11176705360412598, -0.15057960152626038, -0.1458221971988678, 0.0972236767411232, 0.039366714656353, -0.012440096586942673, 0.0736336037516594, 0.10155618190765381, 0.13058246672153473, -0.030615543946623802, 0.007681580726057291, 0.19281959533691406, 0.17944501340389252, 0.08402178436517715, 0.18584845960140228, -0.0859384536743164, 0.0009636078029870987, 0.15132951736450195, 0.030532993376255035, -0.022286415100097656, 0.33481526374816895, 0.1138058751821518, 0.13023711740970612, 0.00792655162513256, 0.12101435661315918, -0.007638965733349323, -0.06840070337057114, -0.09204467386007309, -0.13666516542434692, 0.002468422055244446, -0.15938317775726318, -0.00904829055070877, -0.06564091891050339, -0.1721966415643692, 0.09498509019613266, -0.10546669363975525, 0.09601414948701859, -0.08552536368370056, 0.0713169202208519, 0.05464214086532593, -0.009225647896528244, 0.1443576067686081, -0.1942899227142334, 0.014387317933142185, 0.030194593593478203, 0.15029829740524292, -0.09488531947135925, -0.013420430943369865, 0.032483164221048355, 0.12159904837608337, -0.048003941774368286, 0.07224404811859131, -0.016632556915283203, 0.0025306253228336573, -0.037957776337862015, -0.04680909961462021, -0.022917650640010834, 0.18830277025699615, 0.028840404003858566, -0.09670647978782654, 0.10956375300884247, -0.12726232409477234, 0.002307679271325469, 0.02829444222152233, 0.012574072927236557, 0.10249114781618118, 0.013801504857838154, 0.07736612856388092, 0.16782334446907043, 0.0501873679459095, -0.011415489949285984, 0.10600991547107697, 0.021216362714767456, 0.07151569426059723, -0.2601858675479889, -0.09495966136455536, -0.17252770066261292, -0.0392473079264164, 0.004581870511174202, -0.06130032241344452, -0.06769779324531555, -0.024436794221401215, -0.04816513508558273, -0.021112637594342232, -0.031816545873880386, -0.18813128769397736, 7.671168305023457e-7, -0.15259861946105957, -0.06703071296215057, 0.013681194745004177, -0.06570056825876236, -0.09634006768465042, 0.003073830856010318, -0.45870518684387207, 0.1236039325594902, 0.052562739700078964, -0.1294359564781189, 0.1318284273147583, 0.005427957978099585, 0.10384741425514221, -0.013053997419774532, 0.22245363891124725, -0.009818973951041698, 0.0020527681335806847, 0.13162648677825928, -0.19222573935985565, 0.11407695710659027, 0.1087317168712616, 0.13635234534740448, 0.10863257199525833, -0.011752373538911343, -0.06195125728845596, 0.05832422897219658, -0.012526906095445156, -0.0764065533876419, 0.16171108186244965, -0.09948932379484177, -0.21575386822223663, 0.23200315237045288, -0.14446599781513214, 0.08551494777202606, 0.04140270873904228, -0.07540390640497208, -0.2324105054140091, -0.09387380629777908, 0.1864163726568222, -0.010766150429844856, 0.056850094348192215, -0.01761363260447979, 0.13770055770874023, -0.014442977495491505, 0.07888628542423248, 0.09305178374052048, 0.058301884680986404, 0.018666919320821762, -0.015653489157557487, -0.025716625154018402, 0.037484899163246155, -0.06899213045835495, 0.07965894788503647, 0.15594831109046936, -0.05217522010207176, -0.04386727511882782, -0.049658916890621185, -0.19720213115215302, -0.11317739635705948, 0.001429036958143115, -0.12779271602630615, -0.11995019763708115, -0.05763193592429161, 0.09268570691347122, -0.026700515300035477, 0.0558125376701355, 0.1034308448433876, 5.508538145536685e-35, 0.0110969552770257, -0.08024066686630249, 0.12063474953174591, -0.14976932108402252, -0.11074019223451614, 0.17310591042041779, 0.3457316756248474, -0.08897664397954941, -0.09729340672492981, -0.02179274521768093, 0.023973463103175163 ]
https://github.com/huggingface/datasets/issues/2691
xtreme / pan-x cannot be downloaded
Hmmm, the file (https://www.dropbox.com/s/dl/12h3qqog6q4bjve/panx_dataset.tar) really seems to be unavailable... I tried from various connexions and machines and got the same 404 error. Maybe the dataset has been loaded from the cache in your case?
## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
34
xtreme / pan-x cannot be downloaded ## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 Hmmm, the file (https://www.dropbox.com/s/dl/12h3qqog6q4bjve/panx_dataset.tar) really seems to be unavailable... I tried from various connexions and machines and got the same 404 error. Maybe the dataset has been loaded from the cache in your case?
[ 0.07552449405193329, -0.06634176522493362, -0.0961032435297966, 0.07824515551328659, 0.11515326797962189, -0.05099588632583618, -0.018871620297431946, 0.045167744159698486, -0.09061898291110992, 0.14811043441295624, -0.15134276449680328, 0.048930566757917404, 0.0940709188580513, 0.12038636952638626, 0.04316362738609314, -0.04200906306505203, -0.06926093995571136, 0.061284855008125305, 0.04836702346801758, -0.06564878672361374, 0.0863473117351532, -0.01329739112406969, 0.11246205121278763, -0.014902833849191666, 0.06110227480530739, 0.0762418806552887, 0.042956579476594925, 0.010706203989684582, -0.00948154553771019, -0.19282791018486023, 0.24150478839874268, 0.0967387780547142, 0.01704704388976097, 0.20553359389305115, 0.000005920514922763687, -0.008403774350881577, 0.08422823250293732, 0.13400155305862427, 0.022975610569119453, -0.0950811579823494, -0.019970593973994255, -0.047005023807287216, -0.062415413558483124, -0.09698240458965302, -0.041148535907268524, -0.01273222267627716, -0.04204913228750229, -0.007063830271363258, 0.11323533952236176, 0.18603767454624176, 0.010993693955242634, 0.12120132148265839, 0.03976686671376228, -0.2006056159734726, 0.12723474204540253, -0.03099178709089756, -0.06897086650133133, 0.08655732125043869, -0.037422820925712585, 0.09362255781888962, 0.007134028244763613, 0.0014339456101879478, 0.09059818089008331, 0.12777364253997803, -0.14136457443237305, 0.03272389993071556, -0.11612264066934586, -0.17275264859199524, 0.011433162726461887, 0.16718405485153198, 0.11224526911973953, 0.07521448284387589, -0.0784078985452652, 0.02949340268969536, 0.025519823655486107, -0.1255972534418106, -0.0058707017451524734, 0.12377586215734482, 0.019495481625199318, 0.08210408687591553, -0.11698785424232483, 0.011128148064017296, 0.07227351516485214, -0.11715234071016312, 0.022473355755209923, 0.13059024512767792, -0.11896158754825592, -0.079033762216568, -0.05680853873491287, -0.14359000325202942, 0.28137287497520447, 0.071470245718956, 0.0780564472079277, 0.01297961175441742, -0.07279137521982193, 0.17367161810398102, -0.06773123890161514, -0.1127268448472023, 0.07593488693237305, -0.09179969131946564, -0.02275051176548004, 0.011125815100967884, -0.051021743565797806, 0.10097268223762512, 0.0606866218149662, 0.05123792588710785, 0.10427388548851013, -0.06659936904907227, 0.124235138297081, 0.009932364337146282, 0.0742148756980896, -0.015275225974619389, -0.051192399114370346, -0.06387855112552643, 0.00032239072606898844, -0.024404333904385567, 0.07795561850070953, -0.04072846472263336, -0.09131860733032227, -0.03454991430044174, 0.09241852164268494, 0.13369394838809967, -0.0031008636578917503, 0.077652707695961, -0.006581632420420647, -0.030445268377661705, -0.19351856410503387, 0.12067007273435593, -0.07742291688919067, 0.09858378767967224, -0.05165265128016472, 0.16113734245300293, -0.12154345959424973, -0.0789617970585823, 0.19336508214473724, 0.014766771346330643, -0.01879527047276497, -0.17183011770248413, 0.12127325683832169, -0.11900581419467926, -0.017368223518133163, 0.003191484836861491, -0.10006295144557953, 0.041124988347291946, 0.2537035644054413, -0.03525948151946068, 0.007351219188421965, 0.15378320217132568, 0.10829109698534012, 0.023080473765730858, -0.19168274104595184, -0.030048616230487823, 0.061680033802986145, 0.08240589499473572, -0.1145620346069336, 0.009256798774003983, -0.15281306207180023, 0.0004979996010661125, -0.13146930932998657, 0.006265347823500633, 0.12012213468551636, -0.040187329053878784, 0.2271968573331833, 0.03940361738204956, 0.13564205169677734, 0.09968479722738266, 0.09021907299757004, 0.04273966699838638, -0.053415026515722275, -0.08559166640043259, 0.01080808974802494, -0.03849053755402565, -0.06343597173690796, 0.0007432530401274562, -0.1359318047761917, 0.19962677359580994, 0.024631530046463013, -0.26579201221466064, -0.349776953458786, 0.00754457525908947, 0.06091857701539993, -0.23561444878578186, 0.030734311789274216, -0.02408364601433277, 0.11071566492319107, 0.03680170699954033, 0.03410959616303444, 0.042390163987874985, 0.0716308206319809, 0.00006102861152612604, -0.11693309247493744, -0.025535400956869125, -0.14346711337566376, -0.057593028992414474, 0.06400778889656067, -0.10250511765480042, 0.16724038124084473, 0.046765632927417755, 0.057882215827703476, -0.09091857075691223, 0.07442421466112137, 0.06305582076311111, -0.04378126934170723, -0.006190817337483168, 0.08182793110609055, -0.037273261696100235, -0.01842546835541725, 0.2168879210948944, -0.01587214134633541, 0.017333295196294785, -0.10423397272825241, 0.030991079285740852, -0.07877613604068756, 0.01835109293460846, -0.027471572160720825, -0.005348479375243187, -0.08275918662548065, 0.07561123371124268, 0.11922547966241837, 0.08318338543176651, 0.013954218477010727, -0.022809406742453575, 0.1386680155992508, 0.05325370654463768, -0.082000233232975, 0.05646229907870293, -0.0750105082988739, 0.038543932139873505, 0.10817563533782959, -0.0062868609093129635, -0.0974583625793457, -0.09816019237041473, 0.12372363358736038, 0.012865678407251835, -0.0423261821269989, -0.026138057932257652, 0.18449798226356506, -0.1797628402709961, 0.055631380528211594, -0.23199158906936646, -0.01627449505031109, 0.05121101438999176, -0.16513356566429138, -0.08584903180599213, 0.027088653296232224, -0.0571596659719944, -0.07223550230264664, -0.1102740690112114, -0.043973200023174286, 0.10243622958660126, 0.23067766427993774, 0.021875500679016113, -0.0908011645078659, 0.007448110263794661, 0.1525292545557022, -0.17503583431243896, 0.17413869500160217, -0.04065234214067459, 0.01186977606266737, -0.062169477343559265, 0.23131614923477173, -0.15862025320529938, -0.03855189308524132, 0.017032045871019363, 0.08052204549312592, -0.10876065492630005, -0.0009086040081456304, 0.16224344074726105, 0.0027297758497297764, 0.012924270704388618, 0.04735857993364334, -0.17148357629776, -0.13072402775287628, -0.21429996192455292, -0.07826927304267883, -0.1036008968949318, -0.15778468549251556, 0.19128912687301636, -0.05937726050615311, 0.06802992522716522, -0.23597463965415955, 0.031497374176979065, -0.03260160610079765, 0.010293981060385704, 0.15739315748214722, 0.0400136262178421, -0.2910136282444, -0.22665618360042572, 0.08026055991649628, -0.04337334260344505, -0.003116162959486246, -0.009427421726286411, 0.0018953271210193634, -0.13589686155319214, -0.057165101170539856, -0.06099562719464302, -0.15316137671470642, -0.2700299024581909, 0.07995887100696564, -0.015558992512524128, -0.05160271003842354, 0.049472786486148834, 0.12534326314926147, -0.11433851718902588, -0.06187623366713524, 0.046816445887088776, 0.014563440345227718, -0.03684012219309807, 0.06579138338565826, -0.12338748574256897, -0.06277700513601303, 0.0877041220664978, 0.1827079802751541, 0.07118842005729675, -0.03087891824543476, -0.03833188861608505, 0.06895468384027481, 0.05916818231344223, 0.006137971766293049, 0.041300855576992035, 0.09019731730222702, 0.05785468593239784, -0.05521155148744583, -0.13586083054542542, 0.023925235494971275, 0.04730352759361267, -0.09010330587625504, -0.10912460833787918, -0.08109775185585022, -0.09931221604347229, -0.02484041079878807, -0.012817278504371643, -0.1005544662475586, -0.029252441599965096, -0.07562382519245148, -0.2312515676021576, -0.04994554445147514, -0.2971022129058838, 0.16508592665195465, -0.043178461492061615, -0.008851503022015095, 0.10887742787599564, -0.018850795924663544, 0.015489918179810047, -0.06542313098907471, -0.24224735796451569, -0.1095569059252739, -0.1281411349773407, 0.03563971817493439, -0.07419738918542862, -0.043964073061943054, -0.03332282230257988, 0.011502628214657307, 0.07139503955841064, 0.012379731982946396, 0.005123899783939123, -0.18464767932891846, 0.10664211213588715, -0.07673729211091995, -0.029759058728814125, 0.002865798072889447, 0.15489152073860168, -0.09682240337133408, 0.0316157341003418, -0.009230558760464191, 0.21421295404434204, 0.1590804010629654, 0.19782349467277527, 0.011276690289378166, -0.1333758383989334, -0.11307401955127716, -0.006474681198596954, 0.04582978039979935, -0.08773720264434814, 0.045842282474040985, 0.06552521884441376, -0.1270877867937088, -0.10770964622497559, 0.0635872483253479, -0.09284252673387527, -0.10026392340660095, -0.16542743146419525, -0.10699252039194107, 0.07663410156965256, 0.2237197607755661, 0.05999671667814255, -0.02292553335428238, 0.10391300171613693, 0.13318537175655365, 0.002526434138417244, -0.019408248364925385, -0.006253144238144159, 0.18838010728359222, 0.0011610965011641383, 0.116274893283844, -0.12768606841564178, 0.2624257504940033, 0.02634996548295021, 0.1001911386847496, 0.1223987340927124, -0.05536836385726929, 0.049435656517744064, -0.01560970302671194, 0.16070327162742615, 0.0788511112332344, -0.06467858701944351, 0.11976375430822372, -0.06854521483182907, -0.10092324763536453, -0.09796050190925598, 0.08426198363304138, 0.0343695804476738, 0.11868029832839966, -0.10866889357566833, 0.0802900418639183, 0.00994578842073679, 0.00984289962798357, -0.022271642461419106, -0.1009758710861206, -0.2260567992925644, 0.02477448061108589, -0.04402581602334976, -0.04092952236533165, -0.0697297528386116, 0.1364336460828781, 0.04378993436694145, -0.07865464687347412, -0.12776534259319305, 0.29139411449432373, 0.036988385021686554, 0.04280941188335419, -0.0340232215821743, 0.04172787815332413, 0.11379258334636688, -0.11537975817918777, -0.08479581028223038, 0.2684962749481201, -0.13935965299606323, -0.1293565332889557, 0.03793902322649956, -0.14055584371089935, -0.1628226786851883, 0.18574991822242737, -0.09681951999664307, -0.12311894446611404, -0.13880842924118042, 0.04944143071770668, 0.04509706050157547, 0.03990490362048149, 0.010573511011898518, -0.052512433379888535, -0.174027681350708, 0.08938345313072205, -0.19288654625415802, 0.058277808129787445, 0.05768716335296631, 0.17859508097171783, -0.18345043063163757, 0.028508733958005905, -0.10878311097621918, -0.06584269553422928, -0.010485030710697174, -0.04860231652855873, -0.03182603418827057, 0.22934941947460175, 0.16205760836601257, 0.12436576932668686, -0.29367202520370483, 0.14933420717716217, 0.015135967172682285, -0.20821799337863922, -0.018259376287460327, -0.036154527217149734, 0.0003490640374366194, 0.18828704953193665, 0.01722331903874874, 0.06968791037797928, 0.007220242638140917, 0.1655794233083725, -0.02792312391102314, 0.04381600022315979, 0.1979449838399887, 0.03201849013566971, -0.19047625362873077, 0.07940211147069931, 0.07843570411205292, 0.013085381127893925, -0.07631747424602509, -0.025733619928359985, -0.049016837030649185, 0.11755356937646866, 0.09835930168628693, 0.0672624483704567, -0.026358483359217644, 0.08104284107685089, -0.08447757363319397, -0.22109243273735046, -0.13510310649871826, -0.06977713853120804, -0.022545410320162773, 0.008036714978516102, -0.10863256454467773, 0.10947483777999878, 0.036873381584882736, -0.1804998517036438, -0.11070309579372406, 0.009671736508607864, -0.18560649454593658, -0.09493868798017502, -0.140618234872818, 0.045720554888248444, 0.057554252445697784, -0.011619023978710175, -0.18784962594509125, 0.0005986138712614775, -0.10802581906318665, -0.011625653132796288, 0.058027494698762894, 0.022658782079815865, -0.012304316274821758, -0.064886175096035, 0.001069406745955348, 0.04049685597419739, -0.026729190722107887, -0.034361932426691055, 0.05975019559264183, 0.006455828435719013, 0.10557558387517929, 0.037913914769887924, 0.012875756248831749, -0.0024091603700071573, 0.046098578721284866, 0.04744080454111099, -0.07674650847911835, -0.09203839302062988, 0.05750751122832298, -0.07363105565309525, -0.24795953929424286, -0.05181651934981346, -0.21125195920467377, -0.03429494425654411, -0.044351037591695786, -0.06326548010110855, 0.14094208180904388, -0.02914920076727867, 0.08437421172857285, -0.13431516289710999, 0.11572319269180298, 0.04302501678466797, -0.0077735730446875095, 0.07789484411478043, 0.09996917098760605, 0.03147004917263985, 0.1188240796327591, -0.007034233305603266, -2.612250549575284e-32, -0.025282982736825943, 0.09354643523693085, -0.060888636857271194, 0.05490981042385101, -0.22488939762115479, 0.08547002077102661, -0.11746588349342346, -0.08828183263540268, -0.0700034350156784, -0.1830008625984192, 0.13443265855312347, 0.040173377841711044, 0.016285229474306107, 0.10942459851503372, -0.16579528152942657, -0.02021985687315464, -0.1567639857530594, 0.01787157543003559, -0.04021768644452095, -0.014838553965091705, 0.027299582958221436, 0.0763242244720459, -0.08037713915109634, 0.026669569313526154, -0.03513181209564209, -0.06444647908210754, -0.0394074022769928, 0.044796135276556015, 0.03446803241968155, 0.09433833509683609, 0.049686335027217865, 0.09059611707925797, 0.018869131803512573, -0.08604884892702103, -0.13011351227760315, -0.08825254440307617, 0.05390007421374321, -0.09648346900939941, -0.23348376154899597, 0.10153093934059143, 0.10356360673904419, 0.11861563473939896, 0.016402311623096466, -0.12107735127210617, 0.03233018517494202, 0.19522054493427277, 0.08284386247396469, -0.09213738888502121, -0.12407219409942627, 0.150466188788414, 0.08939002454280853, -0.026191843673586845, 0.060085296630859375, 0.08646780252456665, 0.13335320353507996, 0.012598861940205097, 0.025151144713163376, 0.22581860423088074, 0.13157658278942108, 0.11833863705396652, 0.1899355798959732, -0.0327894352376461, 0.013201216235756874, 0.1691497564315796, 0.03272808715701103, -0.04548732191324234, 0.2937377691268921, 0.14411519467830658, 0.09332814812660217, 0.017233623191714287, 0.14479407668113708, -0.029707198962569237, -0.041556354612112045, -0.12785586714744568, -0.15398411452770233, 0.044297315180301666, -0.1047305166721344, -0.010160908102989197, -0.05869833379983902, -0.11885790526866913, 0.09745578467845917, -0.06897739320993423, 0.07824894040822983, -0.0881676971912384, 0.061618104577064514, 0.08331307023763657, -0.013860629871487617, 0.16570177674293518, -0.22945049405097961, 0.0652366578578949, 0.013775305822491646, 0.15580043196678162, -0.11082049459218979, 0.005980233661830425, 0.021201224997639656, 0.13753463327884674, -0.022178787738084793, 0.05446590483188629, -0.012314611114561558, 0.004713800270110369, -0.035757746547460556, -0.05142223834991455, 0.007788144517689943, 0.16752572357654572, -0.01998244784772396, -0.13741256296634674, 0.07436058670282364, -0.15165340900421143, -0.01656981185078621, 0.014788038097321987, 0.0024976993445307016, 0.10234633833169937, -0.025153810158371925, 0.04541230946779251, 0.1606627106666565, 0.06271381676197052, -0.02999499998986721, 0.09191112220287323, 0.012088187970221043, 0.06466704607009888, -0.23479267954826355, -0.06320533901453018, -0.1713501662015915, -0.05221988633275032, 0.03096882626414299, -0.05840715765953064, -0.06546861678361893, -0.0053905220702290535, -0.04829414561390877, -0.03546469658613205, -0.05936344340443611, -0.14809471368789673, 7.722596819803584e-7, -0.1505987048149109, -0.07634028792381287, 0.03704288229346275, -0.05972696840763092, -0.09703520685434341, 0.024720724672079086, -0.43377846479415894, 0.1303844451904297, 0.04216047003865242, -0.12844794988632202, 0.13529345393180847, 0.023725926876068115, 0.054798517376184464, -0.033713143318891525, 0.3009089231491089, -0.0016239184187725186, 0.04232797771692276, 0.10532570630311966, -0.17072159051895142, 0.1308141052722931, 0.1028386652469635, 0.1887291520833969, 0.1057986170053482, -0.005526526365429163, -0.03917621076107025, 0.11990808695554733, 0.00925219152122736, -0.07041089236736298, 0.13595592975616455, -0.11007112264633179, -0.2183203250169754, 0.16528628766536713, -0.09405514597892761, 0.04254767671227455, 0.04444677755236626, -0.06950663030147552, -0.2638329863548279, -0.11194005608558655, 0.20752635598182678, -0.019445404410362244, 0.047148603945970535, 0.026323052123188972, 0.11306952685117722, -0.03121194615960121, 0.040002044290304184, 0.1318970024585724, 0.047602102160453796, -0.017475679516792297, -0.04461127147078514, -0.013908147811889648, 0.007622078061103821, -0.0864860862493515, 0.058859746903181076, 0.14631237089633942, -0.013924648985266685, -0.0638459250330925, 0.017803724855184555, -0.15299777686595917, -0.12013056874275208, -0.019386226311326027, -0.12924423813819885, -0.10224515944719315, -0.04340656101703644, 0.10716661810874939, -0.05371810495853424, 0.015083098784089088, 0.11663888394832611, 8.469154403523896e-35, 0.008898320607841015, -0.06406279653310776, 0.1282091587781906, -0.18297213315963745, -0.1036996990442276, 0.16463260352611542, 0.36547377705574036, -0.09782250225543976, -0.10571736097335815, -0.05740588903427124, 0.036111798137426376 ]
https://github.com/huggingface/datasets/issues/2691
xtreme / pan-x cannot be downloaded
Yes @severo, weird... I could access the file when I answered to you, but now I cannot longer access it either... Maybe it was from the cache as you point out. Anyway, I have opened an issue in the GitHub repository responsible for the original dataset: https://github.com/afshinrahimi/mmner/issues/4 I have also contacted the maintainer by email. I'll keep you informed with their answer.
## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
62
xtreme / pan-x cannot be downloaded ## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 Yes @severo, weird... I could access the file when I answered to you, but now I cannot longer access it either... Maybe it was from the cache as you point out. Anyway, I have opened an issue in the GitHub repository responsible for the original dataset: https://github.com/afshinrahimi/mmner/issues/4 I have also contacted the maintainer by email. I'll keep you informed with their answer.
[ 0.0003460658190306276, -0.06198152154684067, -0.10557688772678375, 0.07611378282308578, 0.11166656017303467, -0.09061864763498306, -0.03689761459827423, 0.02873949706554413, -0.1065455749630928, 0.13207851350307465, -0.13001519441604614, 0.05551254004240036, 0.09238752722740173, 0.11788903176784515, 0.04857818782329559, -0.05743264779448509, -0.07658975571393967, 0.051417842507362366, 0.025080613791942596, -0.07750838249921799, 0.045884668827056885, -0.04313185438513756, 0.11582418531179428, -0.016566846519708633, 0.07699348032474518, 0.04229633882641792, 0.03332323208451271, 0.018994228914380074, 0.02416311576962471, -0.24051658809185028, 0.21383176743984222, 0.09225329756736755, 0.025969041511416435, 0.16363003849983215, 0.000006119201771070948, -0.019640913233160973, 0.07535140216350555, 0.10996459424495697, 0.06607712805271149, -0.08812066167593002, 0.011163818649947643, -0.06504084169864655, -0.059308771044015884, -0.11440593004226685, 0.001977329608052969, -0.02544930949807167, -0.11115831136703491, -0.021186189725995064, 0.14853644371032715, 0.13626688718795776, 0.02600628137588501, 0.1044473946094513, 0.09622391313314438, -0.20155490934848785, 0.12107937783002853, -0.008477595634758472, -0.02934441529214382, 0.07492819428443909, 0.024045594036579132, 0.11152955144643784, -0.02497948333621025, 0.000986658502370119, 0.05613655596971512, 0.1453222930431366, -0.08768634498119354, 0.04823269322514534, -0.09193509072065353, -0.17209412157535553, 0.004996234551072121, 0.13736017048358917, 0.10102579742670059, 0.07524679601192474, -0.054479558020830154, 0.025764107704162598, 0.0019942072685807943, -0.12272772192955017, -0.031313925981521606, 0.13327254354953766, -0.020997148007154465, 0.0534977912902832, -0.12665550410747528, -0.008156736381351948, 0.06507661938667297, -0.12676295638084412, -0.027485791593790054, 0.14985334873199463, -0.09569577872753143, -0.0942154973745346, -0.058926403522491455, -0.14349502325057983, 0.30169379711151123, 0.10276209563016891, 0.03318016603589058, -0.03425242379307747, -0.020265663042664528, 0.15495608747005463, -0.05250554904341698, -0.11966334283351898, 0.10101959109306335, -0.11083204299211502, -0.07688374072313309, 0.04365656524896622, -0.049054812639951706, 0.1277647763490677, 0.04840894043445587, 0.04328475147485733, 0.14317858219146729, -0.05924522504210472, 0.1515364646911621, 0.023783601820468903, 0.07445898652076721, -0.0022683427669107914, -0.06115679815411568, -0.09489405155181885, 0.06633114814758301, -0.02024582214653492, 0.09766869992017746, -0.05711452662944794, -0.061930201947689056, -0.029185011982917786, 0.15170666575431824, 0.1323854625225067, -0.016623858362436295, 0.09472563117742538, 0.005458357278257608, -0.006518170237541199, -0.19633761048316956, 0.13330774009227753, -0.06062653660774231, 0.1285107433795929, -0.035138748586177826, 0.1737000048160553, -0.10860167443752289, -0.1010778620839119, 0.23903615772724152, -0.003968370612710714, -0.02048584073781967, -0.11354293674230576, 0.12002640962600708, -0.13871856033802032, -0.019776007160544395, -0.022454923018813133, -0.16359548270702362, 0.021816208958625793, 0.2376389056444168, -0.008000535890460014, -0.005014364141970873, 0.2118653953075409, 0.10773193091154099, 0.023442653939127922, -0.22836583852767944, 0.036602798849344254, -0.019328948110342026, 0.13918106257915497, -0.11391227692365646, 0.04131908342242241, -0.15408335626125336, -0.037991002202034, -0.11871760338544846, -0.007030151784420013, 0.10196848213672638, -0.06974031776189804, 0.17323142290115356, 0.01710357889533043, 0.1514088362455368, 0.07582148164510727, 0.0892600268125534, 0.039679232984781265, -0.06880839914083481, -0.10823622345924377, -0.02708909474313259, -0.08091171085834503, -0.05668264254927635, -0.0009575603762641549, -0.09482097625732422, 0.17340917885303497, -0.016732627525925636, -0.22378163039684296, -0.3606107831001282, -0.0017843176610767841, 0.11804212629795074, -0.19788825511932373, 0.0343470461666584, -0.0646602213382721, 0.15468913316726685, 0.0711614266037941, -0.01640620082616806, 0.09348325431346893, 0.04476363956928253, 0.011438827030360699, -0.08600249141454697, 0.0031212777830660343, -0.17258191108703613, -0.015484543517231941, 0.11155138164758682, -0.09435783326625824, 0.15141408145427704, 0.048930391669273376, 0.08167396485805511, -0.10268757492303848, 0.11473221331834793, 0.05567454919219017, -0.06191246956586838, 0.022838357836008072, 0.06103349104523659, -0.10104534029960632, -0.011119780130684376, 0.2034081220626831, -0.02049211971461773, 0.018886514008045197, -0.1426374763250351, 0.07464218884706497, -0.041716329753398895, -0.0003505592467263341, -0.019220681861042976, -0.012192612513899803, -0.07488895952701569, 0.10353821516036987, 0.06698437035083771, 0.11851047724485397, 0.006485228892415762, 0.011162074282765388, 0.16636446118354797, 0.04466363787651062, -0.08172868937253952, 0.03689933195710182, -0.04709525778889656, 0.030917171388864517, 0.1305961310863495, -0.02830752730369568, -0.11116281896829605, -0.12182531505823135, 0.11174626648426056, 0.013829349540174007, -0.03696984797716141, 0.012641622684895992, 0.17414729297161102, -0.1377342790365219, 0.026677817106246948, -0.2647499144077301, -0.03335220739245415, 0.050149861723184586, -0.12029113620519638, -0.07753051817417145, 0.01808251440525055, -0.009030410088598728, -0.07328911125659943, -0.10609995573759079, -0.013556083664298058, 0.08701391518115997, 0.24400916695594788, 0.01930706575512886, -0.04698022082448006, -0.00497051514685154, 0.12363480776548386, -0.1612880378961563, 0.09990048408508301, -0.012930989265441895, 0.053539492189884186, -0.06492235511541367, 0.20487406849861145, -0.1642264574766159, -0.01097913645207882, 0.03184494748711586, 0.0758962407708168, -0.10263567417860031, 0.0024659482296556234, 0.09640862792730331, 0.054705940186977386, 0.016832828521728516, 0.040125466883182526, -0.12459109723567963, -0.10205923765897751, -0.22363469004631042, -0.0704263225197792, -0.11749710887670517, -0.14621707797050476, 0.21284092962741852, -0.12264792621135712, 0.10041899234056473, -0.15753592550754547, 0.052680857479572296, -0.026738133281469345, 0.009710286743938923, 0.09878940135240555, -0.01899583637714386, -0.23955483734607697, -0.22257277369499207, 0.07527917623519897, -0.05573291704058647, 0.014199629426002502, -0.022955406457185745, -0.0018997187726199627, -0.12500238418579102, 0.0038786078803241253, -0.0630265399813652, -0.1371983140707016, -0.2621362507343292, 0.06817027926445007, -0.03796643018722534, -0.0726112648844719, 0.0034654648043215275, 0.10482687503099442, -0.07848819345235825, -0.05272853374481201, 0.0630740374326706, 0.0549188107252121, 0.014037422835826874, 0.013808829709887505, -0.12160124629735947, -0.0317315049469471, 0.08555232733488083, 0.1737077683210373, 0.07537276297807693, -0.009963326156139374, -0.040116287767887115, 0.018244193866848946, 0.1071116179227829, -0.037133749574422836, 0.0264491755515337, 0.05383582040667534, 0.07596767693758011, -0.06193893775343895, -0.1202889233827591, 0.00862601026892662, 0.06995917856693268, -0.1341814547777176, -0.15444917976856232, -0.10814641416072845, -0.05358613654971123, -0.014775880612432957, -0.05511539801955223, -0.11097946763038635, -0.0532945953309536, -0.08023086190223694, -0.2012932449579239, -0.04716204106807709, -0.28231027722358704, 0.17367765307426453, -0.03718792647123337, -0.0047601195983588696, 0.10886256396770477, -0.03415548801422119, 0.00011141549475723878, -0.050317976623773575, -0.24442262947559357, -0.1202559843659401, -0.15437644720077515, -0.01127962302416563, -0.05732588842511177, -0.033741969615221024, -0.07579582929611206, 0.005927836522459984, 0.08114378899335861, -0.03409811109304428, 0.029613085091114044, -0.1726893186569214, 0.08817368745803833, -0.11354333907365799, -0.06415700912475586, 0.020218754187226295, 0.121516652405262, -0.08727990835905075, 0.06769483536481857, 0.0025736354291439056, 0.18209899961948395, 0.13079814612865448, 0.13191775977611542, -0.006039200350642204, -0.1787823736667633, -0.10654392838478088, -0.023342087864875793, 0.10113262385129929, -0.1226344183087349, 0.043627895414829254, 0.05663704499602318, -0.12580761313438416, -0.12717820703983307, 0.11387317627668381, -0.07479802519083023, -0.06396916508674622, -0.16122940182685852, -0.10500047355890274, 0.06847862899303436, 0.259016215801239, 0.024217259138822556, -0.03748967498540878, 0.06336086988449097, 0.07463803887367249, -0.04042745381593704, -0.00872720405459404, -0.04062565043568611, 0.19510790705680847, 0.048518817871809006, 0.11440517008304596, -0.12432177364826202, 0.2580001950263977, 0.04155862331390381, 0.07086783647537231, 0.1152450293302536, -0.04379672184586525, 0.03256222978234291, -0.032280124723911285, 0.13556107878684998, 0.0834776982665062, -0.04419882595539093, 0.07630845904350281, -0.0632409006357193, -0.12414499372243881, -0.09969393908977509, 0.07785233855247498, 0.05357646942138672, 0.09294343739748001, -0.12526851892471313, 0.1267605423927307, 0.011864572763442993, -0.00884137861430645, -0.009287910535931587, -0.062071576714515686, -0.19738727807998657, 0.0043327598832547665, -0.010446504689753056, -0.03423987701535225, -0.034091752022504807, 0.1414216309785843, 0.04756468906998634, -0.10461711883544922, -0.1286051720380783, 0.3106018900871277, 0.0323067270219326, 0.0784558579325676, -0.08258485049009323, 0.030092349275946617, 0.051064763218164444, -0.09041309356689453, -0.10061295330524445, 0.26823103427886963, -0.10017889738082886, -0.09008543193340302, 0.039278920739889145, -0.12000317871570587, -0.15318690240383148, 0.18439079821109772, -0.08147940039634705, -0.07187633961439133, -0.1656530797481537, 0.06355076283216476, 0.07380390167236328, 0.04047553241252899, 0.033468373119831085, -0.0059869010001420975, -0.20372864603996277, 0.09089642018079758, -0.1696951687335968, 0.06274307519197464, 0.052054475992918015, 0.14354613423347473, -0.2087775617837906, 0.05436255410313606, -0.13809770345687866, -0.02064421772956848, -0.007924595847725868, -0.01812184788286686, -0.010919486172497272, 0.17699071764945984, 0.14598016440868378, 0.1315329521894455, -0.2836810052394867, 0.08051416277885437, 0.003955229185521603, -0.21802009642124176, -0.009184279479086399, -0.04267530515789986, 0.04116174206137657, 0.19539843499660492, 0.019216667860746384, 0.06954266875982285, -0.01549946703016758, 0.1642920821905136, 0.006028841249644756, 0.03329240158200264, 0.1915881484746933, 0.001459808088839054, -0.1914759874343872, 0.06636378169059753, 0.0885423943400383, -0.048091206699609756, -0.1088409274816513, -0.05685074254870415, -0.03309120982885361, 0.09626049548387527, 0.10612388700246811, 0.06497275829315186, -0.036023106426000595, 0.1383586972951889, -0.06452257186174393, -0.18846194446086884, -0.08201966434717178, -0.10090851783752441, -0.021251659840345383, -0.03749335557222366, -0.10115181654691696, 0.08891040086746216, 0.027187271043658257, -0.141931414604187, -0.09115463495254517, 0.007478491868823767, -0.1298908144235611, -0.10434587299823761, -0.15182988345623016, 0.0628919005393982, 0.08645792305469513, -0.04851638153195381, -0.21404169499874115, -0.0023039502557367086, -0.05970337241888046, -0.04667745903134346, 0.0697384923696518, -0.007347925566136837, 0.004912004340440035, -0.04449239373207092, 0.0032522380352020264, 0.06836717575788498, 0.006537191104143858, 0.0476980097591877, 0.05765027180314064, -0.02386702038347721, 0.0744829997420311, 0.019269105046987534, 0.04037788510322571, -0.01651075668632984, 0.0019817810971289873, 0.047486886382102966, -0.05292493849992752, -0.0715625137090683, 0.04850464686751366, -0.04857197031378746, -0.274157851934433, -0.03503197059035301, -0.1692059338092804, -0.023373683914542198, -0.016558362171053886, -0.09828036278486252, 0.11235478520393372, -0.004187058657407761, 0.09167450666427612, -0.16912277042865753, 0.0442805252969265, 0.04481443762779236, -0.009269154630601406, 0.03799320012331009, 0.04733508452773094, 0.0959768071770668, 0.1118592694401741, 0.08218469470739365, -2.735670697319107e-32, -0.03162573277950287, 0.08505930751562119, -0.09286243468523026, 0.07976651936769485, -0.16572602093219757, 0.07301215082406998, -0.13376297056674957, -0.06606829166412354, -0.032438214868307114, -0.21680442988872528, 0.1042313501238823, 0.04371025785803795, 0.028506333008408546, 0.09417779743671417, -0.16737140715122223, -0.011258911341428757, -0.10314084589481354, 0.04383018612861633, -0.029121460393071175, 0.007457088679075241, 0.030814673751592636, 0.12121465057134628, -0.12622657418251038, -0.04867520555853844, -0.046131860464811325, -0.03627520799636841, -0.03712281584739685, 0.024342255666851997, 0.02433173917233944, 0.07971988618373871, 0.07013612985610962, 0.09331356734037399, 0.05389036238193512, -0.08749384433031082, -0.09780335426330566, -0.0525205060839653, 0.01504093874245882, -0.09111397713422775, -0.21116803586483002, 0.124574214220047, 0.08630753308534622, 0.11691305041313171, 0.03320014104247093, -0.14568877220153809, 0.0383068323135376, 0.15611062943935394, 0.1255461722612381, -0.14855381846427917, -0.10122757405042648, 0.128895103931427, 0.07821101695299149, -0.0006226890836842358, 0.06253068149089813, 0.11050763726234436, 0.1357487440109253, 0.04703613370656967, 0.01780436560511589, 0.1998721957206726, 0.11870086938142776, 0.10381640493869781, 0.19849838316440582, -0.05444573983550072, 0.012091017328202724, 0.21730905771255493, 0.05687323957681656, -0.00434298999607563, 0.3203006684780121, 0.15627895295619965, 0.11068350821733475, 0.01972995325922966, 0.10013626515865326, -0.0024829613976180553, -0.03802492097020149, -0.1116197258234024, -0.14709898829460144, 0.006422987673431635, -0.1341843605041504, 0.02449779026210308, -0.07379501312971115, -0.15835526585578918, 0.03275751695036888, -0.10195624083280563, 0.09021667391061783, -0.061753518879413605, 0.055750176310539246, 0.047955308109521866, -0.03421102091670036, 0.15270449221134186, -0.189823180437088, 0.017380893230438232, -0.007078100461512804, 0.1518927365541458, -0.09690921753644943, -0.018277598544955254, 0.03795041888952255, 0.11920959502458572, -0.04836830496788025, 0.06377638876438141, -0.003920288756489754, 0.024032989516854286, -0.040382325649261475, -0.04208482801914215, 0.04397568479180336, 0.1464323252439499, -0.0052912263199687, -0.07222720235586166, 0.15115906298160553, -0.13827066123485565, -0.02173316664993763, 0.02674931287765503, 0.007127115502953529, 0.08804750442504883, -0.010741903446614742, 0.08321267366409302, 0.15217366814613342, 0.03518807515501976, -0.006855802610516548, 0.10222066193819046, 0.048429593443870544, 0.0832524299621582, -0.24831150472164154, -0.07752300798892975, -0.1326872706413269, -0.06718675792217255, 0.02895696647465229, -0.058679696172475815, -0.0691133439540863, -0.06860490143299103, -0.020558679476380348, -0.03233775869011879, -0.016455193981528282, -0.14897258579730988, 7.771745913487393e-7, -0.12956170737743378, -0.051542021334171295, 0.028526034206151962, -0.06462806463241577, -0.08802004158496857, 0.017687249928712845, -0.47406530380249023, 0.14433708786964417, 0.03612789139151573, -0.12998855113983154, 0.17438971996307373, -0.017285527661442757, 0.10509931296110153, 0.026959238573908806, 0.2558393180370331, 0.020493390038609505, 0.0211530402302742, 0.06753446161746979, -0.20615677535533905, 0.12277424335479736, 0.15667390823364258, 0.14099502563476562, 0.06948059797286987, -0.02511584758758545, -0.02647853083908558, 0.020649055019021034, -0.005208331160247326, -0.06852759420871735, 0.13337749242782593, -0.09427854418754578, -0.19936782121658325, 0.1957225650548935, -0.126597598195076, 0.029215941205620766, 0.02914571948349476, -0.05709858238697052, -0.2460237443447113, -0.07416097819805145, 0.17225489020347595, -0.042856547981500626, 0.06219550222158432, -0.0018502415623515844, 0.11296986043453217, -0.04424934834241867, 0.035905782133340836, 0.12045100331306458, 0.04365074262022972, 0.01277967356145382, -0.03237591311335564, 0.01112911943346262, -0.00620937068015337, -0.059598568826913834, 0.076335109770298, 0.12505130469799042, -0.01951838843524456, -0.03283475711941719, -0.03843337297439575, -0.16846264898777008, -0.08401042968034744, -0.00445110909640789, -0.13586348295211792, -0.12214121222496033, -0.05756821483373642, 0.08050030469894409, -0.03924049064517021, -0.013842177577316761, 0.10960317403078079, 7.78893749305942e-35, 0.026290034875273705, -0.07242448627948761, 0.11144710332155228, -0.18329067528247833, -0.08186550438404083, 0.16256946325302124, 0.3115081787109375, -0.07583722472190857, -0.07274872809648514, -0.07997352629899979, -0.0068176682107150555 ]
https://github.com/huggingface/datasets/issues/2691
xtreme / pan-x cannot be downloaded
Reply from the author/maintainer: > Will fix the issue and let you know during the weekend.
## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
16
xtreme / pan-x cannot be downloaded ## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 Reply from the author/maintainer: > Will fix the issue and let you know during the weekend.
[ 0.026153884828090668, -0.12963424623012543, -0.12900443375110626, 0.051498714834451675, 0.11054159700870514, -0.0991891473531723, -0.020494451746344566, 0.04219132661819458, -0.09430137276649475, 0.1299649178981781, -0.11903733015060425, 0.05979017913341522, 0.09967353940010071, 0.13715261220932007, 0.06840572506189346, -0.07239959388971329, -0.08328378945589066, 0.05665319412946701, 0.032294631004333496, -0.07363811135292053, 0.07515421509742737, -0.026401732116937637, 0.12563729286193848, -0.057423848658800125, 0.08583784103393555, 0.018938187509775162, 0.015139280818402767, 0.02099042944610119, 0.012253480032086372, -0.2252849042415619, 0.24214671552181244, 0.09943153709173203, 0.02184651978313923, 0.170205220580101, 0.000005892622993997065, -0.016992298886179924, 0.08893406391143799, 0.10149639844894409, 0.08149008452892303, -0.10515829920768738, -0.008949720300734043, -0.07027711719274521, -0.06652196496725082, -0.11519545316696167, -0.004404790699481964, -0.048686571419239044, -0.1317363679409027, 0.04436596482992172, 0.13730201125144958, 0.15820898115634918, 0.025634024292230606, 0.13225814700126648, 0.12492100149393082, -0.23132456839084625, 0.13343723118305206, -0.01182390097528696, -0.06590446084737778, 0.08206476271152496, 0.026109330356121063, 0.1205548569560051, -0.04556607827544212, 0.010875736363232136, 0.06703793257474899, 0.12738747894763947, -0.09732405841350555, 0.052943989634513855, -0.0960640162229538, -0.18964114785194397, -0.018786629661917686, 0.17091690003871918, 0.07552065700292587, 0.08442234247922897, -0.08665204048156738, 0.02099108323454857, 0.03836448863148689, -0.11329717189073563, -0.02507762238383293, 0.1645907461643219, -0.020016465336084366, 0.07015904784202576, -0.09686640650033951, -0.004275143146514893, 0.06961449980735779, -0.13643068075180054, 0.010782267898321152, 0.15000340342521667, -0.11018886417150497, -0.08317059278488159, -0.061734557151794434, -0.15182259678840637, 0.2829756736755371, 0.08354412019252777, 0.04677124321460724, -0.04834405332803726, -0.0018683318048715591, 0.13172630965709686, -0.04945317283272743, -0.10203499346971512, 0.09159485250711441, -0.09499964863061905, -0.09011596441268921, 0.017757197842001915, -0.05670054256916046, 0.13162173330783844, 0.04118097946047783, 0.03198619931936264, 0.16948091983795166, -0.05088003724813461, 0.15275156497955322, 0.0179961696267128, 0.07763295620679855, 0.0011605166364461184, -0.043678998947143555, -0.09477171301841736, -0.012503531761467457, -0.016683967784047127, 0.09870844334363937, -0.07025343179702759, -0.11650962382555008, -0.03486822545528412, 0.16535121202468872, 0.1517263948917389, -0.029309609904885292, 0.09359437227249146, 0.01017223671078682, -0.022060975432395935, -0.209699809551239, 0.174356609582901, -0.06120525300502777, 0.1547500491142273, -0.046881239861249924, 0.20688186585903168, -0.11644153296947479, -0.12295541912317276, 0.22238560020923615, -0.019228719174861908, 0.0020678096916526556, -0.14728009700775146, 0.13984794914722443, -0.12951059639453888, -0.012604871764779091, -0.03552863374352455, -0.16967689990997314, 0.014579950831830502, 0.2566717863082886, -0.0335998572409153, -0.0016459337202832103, 0.20924238860607147, 0.08470790088176727, 0.015272635035216808, -0.2176796942949295, 0.02911611646413803, -0.016636062413454056, 0.12443732470273972, -0.10801857709884644, 0.021755361929535866, -0.16244149208068848, -0.03481914475560188, -0.11983498930931091, 0.016913384199142456, 0.09526805579662323, -0.05642056465148926, 0.17931941151618958, 0.006085529923439026, 0.14979389309883118, 0.07599638402462006, 0.09225364029407501, 0.023634927347302437, -0.06645175069570541, -0.11958912760019302, -0.015508811920881271, -0.045940544456243515, -0.05154974386096001, 0.017065152525901794, -0.11395852267742157, 0.2148720920085907, 0.009340920485556126, -0.24820390343666077, -0.36902740597724915, 0.01684526726603508, 0.11408431082963943, -0.21458402276039124, 0.060458309948444366, -0.05754391476511955, 0.15056227147579193, 0.05653825402259827, -0.016114456579089165, 0.07231666892766953, 0.04846377298235893, -0.0015724856639280915, -0.08351471275091171, -0.00674105528742075, -0.16053475439548492, -0.0376359261572361, 0.08369146287441254, -0.08846084773540497, 0.167353093624115, 0.06179485097527504, 0.0746406614780426, -0.07030784338712692, 0.10706918686628342, 0.05578693374991417, -0.035728663206100464, -0.0027134192641824484, 0.02582332119345665, -0.080681711435318, 0.005920824594795704, 0.195156529545784, -0.005836947821080685, 0.020303983241319656, -0.12471979856491089, 0.05186476558446884, -0.06444614380598068, 0.014872423373162746, -0.011158245615661144, -0.012615400366485119, -0.10203736275434494, 0.07726715505123138, 0.08041912317276001, 0.12201575189828873, -0.005553845316171646, 0.0018309567822143435, 0.1482672244310379, 0.06746118515729904, -0.10296866297721863, 0.0344076044857502, -0.050688814371824265, 0.014577057212591171, 0.14812344312667847, -0.003993728198111057, -0.10132457315921783, -0.14004431664943695, 0.12759287655353546, 0.008258377201855183, -0.028856979683041573, -0.007706700824201107, 0.18421223759651184, -0.17924810945987701, 0.04466409236192703, -0.2816445231437683, -0.03157706931233406, 0.03478991612792015, -0.1441541612148285, -0.07040347158908844, 0.030747074633836746, -0.00988104660063982, -0.0816037729382515, -0.12045275419950485, 0.0060998001135885715, 0.10055737942457199, 0.2849510610103607, 0.01809345930814743, -0.06732665002346039, -0.003491839859634638, 0.14243938028812408, -0.18580763041973114, 0.1160362958908081, -0.016101092100143433, 0.04383334517478943, -0.09199042618274689, 0.23253656923770905, -0.1548350304365158, -0.02724706381559372, 0.05452965199947357, 0.10090319067239761, -0.1123468354344368, 0.01275616604834795, 0.06723301112651825, 0.08053569495677948, 0.018035681918263435, 0.009334960021078587, -0.14566655457019806, -0.1080995500087738, -0.23818126320838928, -0.06834746152162552, -0.12870468199253082, -0.1390463262796402, 0.20039090514183044, -0.1306559443473816, 0.10333715379238129, -0.16947750747203827, 0.020529188215732574, -0.007048686500638723, 0.00897354818880558, 0.11408858001232147, -0.025079211220145226, -0.2134285420179367, -0.23032596707344055, 0.055048324167728424, -0.0347575768828392, 0.03256496042013168, 0.008290757425129414, 0.03351272642612457, -0.11891814321279526, -0.02549951896071434, -0.046874821186065674, -0.11670075356960297, -0.2877010703086853, 0.09814796596765518, -0.00331582291983068, -0.055701497942209244, 0.024510527029633522, 0.11513014882802963, -0.0677587017416954, -0.07216346263885498, 0.06221657618880272, 0.0859416276216507, 0.0028159262146800756, 0.039216212928295135, -0.12701427936553955, -0.020740022882819176, 0.051659636199474335, 0.1572706252336502, 0.08127022534608841, 0.004254552535712719, -0.04460151866078377, 0.020178155973553658, 0.1260707825422287, -0.008448564447462559, 0.024639373645186424, 0.038736142218112946, 0.06836117804050446, -0.05227671191096306, -0.0910692811012268, 0.018855487927794456, 0.06536488980054855, -0.14840185642242432, -0.17476771771907806, -0.10352763533592224, -0.07992105931043625, -0.01622455008327961, -0.05742435157299042, -0.12019535154104233, -0.027669738978147507, -0.08586713671684265, -0.22680500149726868, -0.03234649822115898, -0.29049161076545715, 0.1760413497686386, -0.040852680802345276, 0.0028260480612516403, 0.11161711066961288, -0.022664498537778854, 0.006654816679656506, -0.06715426594018936, -0.24866758286952972, -0.11081737279891968, -0.16821926832199097, -0.010826237499713898, -0.0650884360074997, -0.0200785044580698, -0.04944008216261864, -0.013707163743674755, 0.07198077440261841, -0.011348428204655647, 0.03152073174715042, -0.1706654131412506, 0.09557969868183136, -0.10373800992965698, -0.043424442410469055, 0.03523296117782593, 0.11649855226278305, -0.08817616105079651, 0.07779905945062637, -0.01898520439863205, 0.20818422734737396, 0.1526675820350647, 0.1322149932384491, -0.024739883840084076, -0.18230007588863373, -0.09991490095853806, 0.0114436075091362, 0.1413523405790329, -0.09219428151845932, 0.02853347919881344, 0.0958380177617073, -0.15214455127716064, -0.1545061618089676, 0.12413904070854187, -0.07446411997079849, -0.057533975690603256, -0.13448891043663025, -0.12600339949131012, 0.039393968880176544, 0.2342221438884735, 0.0905369445681572, -0.013825884088873863, 0.07833434641361237, 0.11251112818717957, -0.035870131105184555, -0.0009566732915118337, -0.03521740809082985, 0.17653106153011322, 0.014441221952438354, 0.11770898103713989, -0.14611773192882538, 0.23471753299236298, 0.026308104395866394, 0.08354532718658447, 0.0987628623843193, -0.04776915907859802, 0.04665646329522133, -0.011694842018187046, 0.15423408150672913, 0.06158587709069252, -0.04817867651581764, 0.0812331810593605, -0.05263661593198776, -0.13056495785713196, -0.09701365977525711, 0.08777378499507904, 0.10356718301773071, 0.07644511759281158, -0.10297011584043503, 0.12105151265859604, 0.007334414403885603, -0.004060086328536272, -0.026282643899321556, -0.09350316971540451, -0.21445156633853912, -0.010662179440259933, -0.034642573446035385, -0.020295126363635063, -0.03482332453131676, 0.11662666499614716, 0.017842961475253105, -0.10972145199775696, -0.1466194987297058, 0.3307722806930542, -0.0028348087798804045, 0.07607674598693848, -0.0812799483537674, 0.0648784413933754, 0.060588497668504715, -0.1034649983048439, -0.09559302031993866, 0.2839081883430481, -0.12239298969507217, -0.10870865732431412, 0.025560101494193077, -0.14069874584674835, -0.1282910257577896, 0.19854499399662018, -0.08366649597883224, -0.05148206278681755, -0.16948382556438446, 0.07472134381532669, 0.08702954649925232, 0.06097865849733353, 0.03227999061346054, 0.0023227680940181017, -0.18205991387367249, 0.0752943903207779, -0.17458879947662354, 0.08734721690416336, 0.06993035227060318, 0.1488705575466156, -0.15704859793186188, 0.03992775082588196, -0.13236939907073975, -0.06586825847625732, -0.00833573006093502, -0.014642840251326561, -0.011658703908324242, 0.2099536657333374, 0.13373059034347534, 0.14577703177928925, -0.2561146914958954, 0.09418847411870956, -0.0025881261099129915, -0.22556447982788086, -0.017086666077375412, -0.02442377805709839, 0.07095534354448318, 0.1976422369480133, -0.013236130587756634, 0.05125725269317627, -0.02890946716070175, 0.1358417123556137, -0.012281716801226139, 0.043072409927845, 0.19130000472068787, -0.027942894026637077, -0.2020571529865265, 0.06207776814699173, 0.07515332102775574, -0.028924034908413887, -0.11831162869930267, -0.04365433752536774, -0.026043571531772614, 0.07061582803726196, 0.06877132505178452, 0.059683315455913544, -0.028655312955379486, 0.13471944630146027, -0.08428516983985901, -0.18612612783908844, -0.10521203279495239, -0.10125699639320374, -0.019288456067442894, -0.006385102868080139, -0.10169734060764313, 0.09888757020235062, 0.02561233378946781, -0.16745077073574066, -0.10073944926261902, -0.0017623829189687967, -0.1462029665708542, -0.09414525330066681, -0.15497048199176788, 0.02968616969883442, 0.11191165447235107, -0.04602690786123276, -0.22409844398498535, -0.00289192539639771, -0.07726692408323288, -0.025384321808815002, 0.05309592932462692, -0.031101224943995476, -0.005229367408901453, -0.049126043915748596, -0.0024003698490560055, 0.06675252318382263, -0.007225617300719023, 0.03758981451392174, 0.06212666258215904, -0.012979152612388134, 0.07892894744873047, -0.025328075513243675, 0.026822302490472794, 0.011192571371793747, 0.01907244138419628, 0.0075455461628735065, -0.06556394696235657, -0.09369966387748718, 0.045602817088365555, -0.05573822557926178, -0.2687221169471741, 0.01022743433713913, -0.14982104301452637, -0.00023277505533769727, -0.0379696823656559, -0.049166735261678696, 0.13828733563423157, -0.005222827196121216, 0.13199496269226074, -0.1282021552324295, 0.07206866890192032, 0.03877996280789375, 0.006843774579465389, 0.029067130759358406, 0.0468875989317894, 0.10779119282960892, 0.12760119140148163, 0.053819410502910614, -2.658551508812648e-32, -0.04400526359677315, 0.11173241585493088, -0.09302786737680435, 0.08943485468626022, -0.17500677704811096, 0.09455238282680511, -0.13687537610530853, -0.06554226577281952, -0.032855238765478134, -0.1882350742816925, 0.1073799878358841, 0.05021461099386215, 0.02072780951857567, 0.07865729182958603, -0.1766134351491928, 0.00642737140879035, -0.1026298999786377, 0.027987388893961906, -0.015647251158952713, 0.0030669067054986954, 0.05296606197953224, 0.11680065095424652, -0.1234302818775177, -0.012417060323059559, -0.03777036815881729, -0.04726709425449371, -0.07882748544216156, 0.024001380428671837, 0.061795298010110855, 0.04879196733236313, 0.049092818051576614, 0.068303681910038, 0.06018602475523949, -0.08812576532363892, -0.1003415584564209, -0.022919991984963417, 0.012135142460465431, -0.1318010687828064, -0.2091948240995407, 0.13385100662708282, 0.07563097029924393, 0.11798708140850067, 0.002562004840001464, -0.11819017678499222, 0.04159388318657875, 0.1750524938106537, 0.1362939178943634, -0.16593800485134125, -0.08399642258882523, 0.11718789488077164, 0.052196867763996124, -0.01867365464568138, 0.07445406168699265, 0.12727901339530945, 0.1309683620929718, 0.03085929900407791, -0.005987674463540316, 0.19025135040283203, 0.15351298451423645, 0.1263359785079956, 0.19687677919864655, -0.048336148262023926, 0.01922551542520523, 0.20566028356552124, 0.04635238274931908, 0.011746960692107677, 0.2902514934539795, 0.13547873497009277, 0.1123882532119751, 0.03286724537611008, 0.09935656934976578, -0.015804128721356392, -0.05066334456205368, -0.09840118885040283, -0.15760603547096252, 0.005065919365733862, -0.16234047710895538, 0.03168328478932381, -0.032922860234975815, -0.1626698523759842, 0.0779644250869751, -0.10884863138198853, 0.058157067745923996, -0.09137480705976486, 0.06022673100233078, 0.06545696407556534, -0.017974162474274635, 0.14872096478939056, -0.1743706613779068, 0.028389248996973038, -0.005595320835709572, 0.15468041598796844, -0.10028557479381561, -0.027553299441933632, 0.038666147738695145, 0.13118259608745575, -0.06986081600189209, 0.06508594751358032, -0.011904082261025906, 0.0030654356814920902, -0.0492350235581398, -0.04440813139081001, 0.02943587675690651, 0.17010672390460968, 0.022256862372159958, -0.08594746142625809, 0.15421362221240997, -0.14609920978546143, -0.012616507709026337, 0.035840872675180435, 0.017167629674077034, 0.11567525565624237, 0.00647857878357172, 0.10738687217235565, 0.14171035587787628, 0.041516583412885666, -0.008758662268519402, 0.08376015722751617, 0.051315002143383026, 0.054189566522836685, -0.24157439172267914, -0.05439388006925583, -0.18496839702129364, -0.04954685643315315, 0.020521769300103188, -0.05301643908023834, -0.06471197307109833, -0.06859727948904037, -0.05416959151625633, -0.0393122099339962, -0.03674503415822983, -0.1603764295578003, 7.594832140966901e-7, -0.1652262806892395, -0.04575482755899429, 0.01732863485813141, -0.05662107095122337, -0.11403008550405502, 0.02799546718597412, -0.4636123478412628, 0.11509108543395996, 0.05335671082139015, -0.1596665382385254, 0.14408758282661438, 0.004583309404551983, 0.08276069909334183, 0.013092802837491035, 0.2253972291946411, 0.001510799047537148, 0.05024226754903793, 0.07765351980924606, -0.1848391741514206, 0.1249418631196022, 0.1263776272535324, 0.178420290350914, 0.10528858006000519, -0.02623312920331955, -0.06136452779173851, 0.04495410993695259, -0.014397882856428623, -0.07949892431497574, 0.16547416150569916, -0.10516402125358582, -0.2071852684020996, 0.20301946997642517, -0.1467714160680771, 0.05428191274404526, 0.016637315973639488, -0.06171830743551254, -0.21254241466522217, -0.08720716089010239, 0.17029139399528503, -0.02261672541499138, 0.07013163715600967, -0.000057923483836930245, 0.13119792938232422, -0.03156796470284462, 0.06200583279132843, 0.10981240123510361, 0.0672154575586319, -0.009320473298430443, -0.018112407997250557, 0.029130125418305397, 0.01622875966131687, -0.066046342253685, 0.08904588967561722, 0.1291668862104416, -0.012736652977764606, -0.04070185124874115, -0.061974022537469864, -0.1837960034608841, -0.11692129075527191, 0.017969829961657524, -0.14166367053985596, -0.12118608504533768, -0.054450519382953644, 0.1106310561299324, -0.052140023559331894, -0.023791441693902016, 0.10621369630098343, 5.332754674396972e-35, -0.003481136169284582, -0.062118399888277054, 0.09619994461536407, -0.1925085037946701, -0.1121244952082634, 0.17146840691566467, 0.35303735733032227, -0.10508320480585098, -0.08594147115945816, -0.06055104359984398, -0.006745053455233574 ]
https://github.com/huggingface/datasets/issues/2691
xtreme / pan-x cannot be downloaded
The author told that apparently Dropbox has changed their policy and no longer allow downloading the file without having signed in first. The author asked Hugging Face to host their dataset.
## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
31
xtreme / pan-x cannot be downloaded ## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 The author told that apparently Dropbox has changed their policy and no longer allow downloading the file without having signed in first. The author asked Hugging Face to host their dataset.
[ 0.016784466803073883, -0.05776984989643097, -0.10944975912570953, 0.11197129637002945, 0.06860934942960739, -0.07408595085144043, -0.004611483309417963, 0.074643574655056, 0.005925701465457678, 0.09316787868738174, -0.10009850561618805, 0.0760020986199379, 0.06668294221162796, 0.2774745225906372, 0.01251798216253519, -0.037853095680475235, -0.11421001702547073, 0.0781317874789238, -0.005270038265734911, -0.11600621044635773, 0.06481974571943283, 0.024084104225039482, 0.08340674638748169, -0.09181149303913116, 0.11086481809616089, 0.010176308453083038, 0.012024867348372936, 0.04042349383234978, 0.003073443192988634, -0.18238715827465057, 0.23346754908561707, 0.10443408787250519, 0.023452486842870712, 0.14273178577423096, 0.000006003140697430354, -0.00920501071959734, 0.005221222527325153, 0.12129189074039459, 0.03851621598005295, -0.08614179491996765, 0.044274065643548965, -0.08743427693843842, -0.07715465128421783, -0.11349430680274963, -0.009560341015458107, -0.053041450679302216, -0.10555898398160934, 0.0651155337691307, 0.16114170849323273, 0.1545926183462143, -0.008214588277041912, 0.14507974684238434, 0.13258804380893707, -0.18237370252609253, 0.11505432426929474, 0.03411276638507843, -0.07205742597579956, 0.09890223294496536, -0.048364486545324326, 0.06356264650821686, -0.026839088648557663, 0.027161099016666412, 0.1337422877550125, 0.06465426832437515, -0.06464549154043198, 0.04747442156076431, -0.18191936612129211, -0.26724565029144287, -0.013541847467422485, 0.14931754767894745, 0.08797168731689453, 0.13433095812797546, -0.07326968014240265, -0.03412602096796036, -0.005120459944009781, -0.044802479445934296, -0.004671746399253607, 0.10847253352403641, -0.00026544355205260217, 0.06278287619352341, -0.1194455474615097, 0.006325602997094393, 0.03717445954680443, -0.14218959212303162, 0.06300291419029236, 0.1937810629606247, -0.08474591374397278, -0.058177243918180466, -0.009430525824427605, -0.10539711266756058, 0.33042120933532715, 0.08786849677562714, 0.07916228473186493, -0.021257560700178146, -0.011926863342523575, 0.10461826622486115, -0.02122625894844532, -0.032217685133218765, 0.06816017627716064, -0.023019712418317795, -0.041354767978191376, 0.006624436937272549, -0.09030131250619888, 0.08607994019985199, 0.00995598640292883, 0.047235649079084396, 0.13557729125022888, -0.09383980184793472, 0.16736875474452972, 0.12075632065534592, 0.12751606106758118, -0.015671569854021072, -0.06823708862066269, -0.08410584181547165, -0.05380772054195404, -0.03254014626145363, 0.14435626566410065, -0.01922110840678215, 0.013585541397333145, -0.05099863559007645, 0.1768379956483841, 0.14926713705062866, -0.026532042771577835, 0.06739715486764908, -0.03683162108063698, -0.04312155023217201, -0.14697161316871643, 0.09262336045503616, -0.026468154042959213, 0.12446975708007812, -0.025021452456712723, 0.15391528606414795, -0.12372751533985138, -0.11888601630926132, 0.22174423933029175, -0.07150988280773163, 0.016156040132045746, -0.09717870503664017, 0.169950932264328, -0.12549136579036713, -0.014134465716779232, -0.020234262570738792, -0.08600518852472305, 0.005723939742892981, 0.2567766606807709, -0.05079353228211403, -0.011757304891943932, 0.11272420734167099, 0.08215361833572388, 0.0004596131038852036, -0.20880873501300812, -0.02816365659236908, -0.07444428652524948, 0.05301782488822937, -0.1555965691804886, 0.008910219185054302, -0.1349647492170334, -0.06531732529401779, -0.1207985207438469, -0.007755033206194639, 0.14374415576457977, -0.05511721596121788, 0.17208953201770782, 0.052453044801950455, 0.20721709728240967, 0.1489230841398239, 0.11114708334207535, -0.007461043540388346, -0.06519065052270889, -0.10633960366249084, 0.010636251419782639, 0.004230451304465532, -0.04184417054057121, -0.054249607026576996, -0.14982113242149353, 0.1886141300201416, -0.017644090577960014, -0.3247899115085602, -0.31210383772850037, 0.05376231297850609, 0.03392784669995308, -0.201689675450325, 0.023133616894483566, -0.05473146587610245, 0.10727189481258392, 0.06551169604063034, 0.0029280767776072025, 0.10801863670349121, 0.08448348194360733, -0.019398203119635582, -0.05246186628937721, -0.020904043689370155, -0.11043734103441238, -0.02828226424753666, 0.05690142139792442, -0.09886714816093445, 0.17576278746128082, 0.05186979100108147, 0.11058751493692398, -0.09296920895576477, 0.07491650432348251, -0.010607367381453514, 0.03655669465661049, 0.03093606047332287, -0.011546319350600243, -0.03870006278157234, 0.03706708922982216, 0.20811662077903748, 0.039618123322725296, 0.04469529539346695, -0.15256603062152863, 0.02371346578001976, -0.10870710760354996, 0.03690190985798836, -0.06945156306028366, -0.04561785236001015, -0.09541270136833191, 0.05855228751897812, 0.06066826358437538, 0.11574244499206543, 0.003929410129785538, 0.08058101683855057, 0.1412062644958496, 0.04519554600119591, -0.13509508967399597, -0.013741783797740936, -0.09606625884771347, 0.011036666110157967, 0.1567034125328064, -0.019223559647798538, -0.06451719999313354, -0.11378155648708344, 0.11909621208906174, 0.038486141711473465, -0.08960617333650589, -0.0076494598761200905, 0.17963807284832, -0.17221467196941376, 0.09845223277807236, -0.2031741738319397, -0.04378475993871689, 0.014349202625453472, -0.17212024331092834, -0.013554138131439686, 0.04403623566031456, -0.050624050199985504, -0.006891797296702862, -0.11716671288013458, -0.03699101135134697, 0.1869780570268631, 0.22765952348709106, 0.03328510373830795, -0.03680194169282913, 0.001266769482754171, 0.1033896654844284, -0.23181664943695068, 0.19374190270900726, -0.04509281739592552, -0.019501972943544388, -0.08124445378780365, 0.187887504696846, -0.15233314037322998, -0.03655850142240524, 0.0005555039970204234, 0.06229429319500923, -0.162613183259964, 0.01611502841114998, 0.15998658537864685, 0.05358248949050903, -0.0014512576162815094, 0.06413892656564713, -0.14819742739200592, -0.07596567273139954, -0.2507730722427368, -0.02078992873430252, -0.16215114295482635, -0.15270709991455078, 0.1792382299900055, -0.10848770290613174, 0.07677605748176575, -0.1864437609910965, 0.02319040149450302, 0.01949881948530674, -0.033775694668293, 0.15512612462043762, -0.015341464430093765, -0.16244910657405853, -0.21236875653266907, 0.055172380059957504, -0.013836285099387169, -0.06309501826763153, -0.022683851420879364, -0.002942609367892146, -0.09795842319726944, -0.009918945841491222, -0.06258280575275421, -0.1159716546535492, -0.15228891372680664, 0.10968388617038727, 0.041841812431812286, -0.08467664569616318, 0.024252520874142647, 0.0846741795539856, -0.05437672883272171, -0.07371823489665985, 0.04719814285635948, 0.10845062136650085, -0.009142220951616764, 0.01891724206507206, -0.1527559906244278, -0.062407586723566055, 0.043039701879024506, 0.1479930877685547, 0.11770085245370865, -0.02478763647377491, -0.05844360962510109, 0.026070518419146538, 0.13778215646743774, -0.06637818366289139, 0.01877959631383419, 0.10663072764873505, 0.011978709138929844, -0.0666486918926239, -0.09849167615175247, 0.010332101956009865, 0.07042577862739563, -0.14220911264419556, -0.14326238632202148, -0.012607299722731113, -0.021616114303469658, 0.009617491625249386, 0.035754844546318054, -0.08485592156648636, -0.0008377275662496686, -0.08230187743902206, -0.242683544754982, -0.04032348096370697, -0.31200405955314636, 0.16095495223999023, -0.02112986147403717, -0.02037833072245121, 0.10082336515188217, 0.04317095875740051, -0.012849756516516209, -0.11226338893175125, -0.21999827027320862, -0.12859685719013214, -0.20187224447727203, 0.09268144518136978, -0.06556180864572525, -0.04739442840218544, -0.053747355937957764, -0.02994649112224579, 0.05026761442422867, 0.021447617560625076, -0.07751873880624771, -0.15605857968330383, 0.14052888751029968, -0.09629788994789124, -0.01447351835668087, -0.06033644825220108, 0.18189643323421478, -0.04313557595014572, 0.021976416930556297, -0.05331815779209137, 0.2093660980463028, 0.11981763690710068, 0.12782727181911469, 0.012334862723946571, -0.16639497876167297, -0.13070085644721985, 0.017719196155667305, 0.14771567285060883, -0.12998606264591217, 0.007195423822849989, 0.08045709878206253, -0.12046287953853607, -0.154211163520813, 0.05103247985243797, -0.09143588691949844, -0.08258655667304993, -0.10647980868816376, -0.1154993548989296, 0.0588250495493412, 0.24754759669303894, 0.048110198229551315, -0.030081354081630707, 0.07203193008899689, 0.1043003723025322, 0.010138369165360928, 0.007437987253069878, -0.0919439047574997, 0.19770841300487518, 0.011530664749443531, 0.09057418256998062, -0.11859462410211563, 0.23571191728115082, 0.04610816761851311, 0.012193575501441956, 0.12032370269298553, -0.0390034019947052, 0.07596220821142197, -0.02798295021057129, 0.19822338223457336, 0.04463453218340874, -0.037743475288152695, 0.12098211795091629, -0.065912164747715, -0.09834327548742294, -0.11155783385038376, 0.10667561739683151, 0.06717151403427124, 0.05021011084318161, -0.11217852681875229, 0.0675918385386467, -0.023182986304163933, 0.025550782680511475, 0.00444768974557519, -0.03983064740896225, -0.23260581493377686, -0.011601641774177551, -0.03939058631658554, -0.020236417651176453, 0.008114083670079708, 0.10887260735034943, 0.03221318498253822, -0.03523349016904831, -0.11442406475543976, 0.30045145750045776, 0.009232203476130962, 0.02810429222881794, -0.02323407307267189, 0.025877201929688454, 0.09163511544466019, -0.09484680742025375, -0.1130116730928421, 0.24618662893772125, -0.07584459334611893, -0.09017861634492874, -0.01189201045781374, -0.12628436088562012, -0.15001843869686127, 0.19792760908603668, -0.12248086929321289, -0.12950389087200165, -0.10101505368947983, 0.04127607122063637, 0.05167711153626442, 0.096253901720047, -0.00040581627399660647, -0.029051393270492554, -0.1997101753950119, 0.11021193861961365, -0.22044232487678528, 0.05917105823755264, 0.03501715138554573, 0.12318933010101318, -0.1370324343442917, 0.04522237926721573, -0.11843118071556091, -0.057666417211294174, -0.016422314569354057, -0.031109055504202843, 0.03150251507759094, 0.1460191160440445, 0.11881143599748611, 0.14488498866558075, -0.25615862011909485, 0.09142723679542542, -0.01155733224004507, -0.1846766471862793, 0.0022855885326862335, -0.04847997799515724, -0.008199452422559261, 0.1132454052567482, 0.06852688640356064, 0.044105518609285355, -0.03135686367750168, 0.14958737790584564, -0.023671505972743034, 0.13169755041599274, 0.13484857976436615, -0.0336114838719368, -0.18500898778438568, 0.03976587578654289, 0.1131143867969513, 0.0013223809655755758, -0.11359172314405441, -0.12210847437381744, -0.012219035997986794, 0.04495850205421448, 0.07905261218547821, 0.03749261796474457, -0.03952934965491295, 0.06622593104839325, -0.08978718519210815, -0.16315512359142303, -0.09860363602638245, -0.025126559659838676, -0.042930297553539276, 0.04830536991357803, -0.1313370168209076, 0.10680928081274033, -0.01433838251978159, -0.17477568984031677, -0.07374942302703857, 0.04162665456533432, -0.16931647062301636, -0.08016598224639893, -0.08298368006944656, 0.0031539511401206255, 0.0637645274400711, -0.05602656304836273, -0.21130017936229706, 0.028055569157004356, -0.15589015185832977, -0.08927018195390701, 0.0862465426325798, -0.00279722036793828, -0.020780546590685844, -0.060445260256528854, -0.03422832489013672, 0.06458599865436554, 0.02361752651631832, -0.08915533125400543, 0.07149539887905121, -0.004239858128130436, 0.03990202397108078, 0.04702761396765709, -0.06521774083375931, 0.05164765566587448, -0.005264229141175747, 0.03627096116542816, 0.012375302612781525, -0.09088339656591415, 0.035846907645463943, -0.09863971173763275, -0.27043408155441284, -0.009559855796396732, -0.18305963277816772, -0.05441701412200928, -0.07206796854734421, -0.035520248115062714, 0.14669078588485718, -0.0030714557506144047, 0.19427897036075592, -0.10329315811395645, 0.05831284075975418, 0.01764271780848503, -0.05838150903582573, 0.07488881051540375, 0.1168297529220581, 0.07737523317337036, 0.15956220030784607, 0.056999724358320236, -2.6478339390690256e-32, 0.002606742549687624, 0.10710422694683075, -0.11956723034381866, 0.12929798662662506, -0.19622278213500977, 0.17666110396385193, -0.09419737756252289, -0.08039353787899017, 0.007332553155720234, -0.18281394243240356, 0.08846703916788101, 0.07257649302482605, 0.08365515619516373, 0.10139700025320053, -0.17644597589969635, -0.05496067553758621, -0.16835473477840424, -0.00555900065228343, -0.006105240434408188, 0.03620809689164162, -0.005028595216572285, 0.08447102457284927, -0.14529210329055786, -0.06122651696205139, 0.028108028694987297, -0.08367098867893219, -0.005610058084130287, 0.030980123206973076, -0.04826151952147484, 0.09228870272636414, 0.05622581019997597, 0.04661693051457405, -0.0006527533405460417, -0.05758599936962128, -0.11217247694730759, -0.04522119462490082, 0.043364446610212326, -0.09001954644918442, -0.1849902719259262, 0.09591354429721832, 0.05614815652370453, 0.0926496610045433, 0.047605328261852264, -0.09103354066610336, -0.004748413804918528, 0.06113286688923836, 0.08471908420324326, -0.10197068005800247, -0.13173896074295044, 0.08534607291221619, 0.05172419548034668, 0.02368582785129547, 0.13425157964229584, 0.10929974913597107, 0.11950939893722534, -0.0609225295484066, 0.013662442564964294, 0.2018682062625885, 0.1861284226179123, 0.08816440403461456, 0.18011881411075592, -0.12376262247562408, -0.006245355121791363, 0.15355142951011658, 0.029195480048656464, -0.0035651561338454485, 0.2615029811859131, 0.06159656494855881, 0.056541405618190765, 0.0216213371604681, 0.10413336753845215, -0.03332534432411194, -0.08865589648485184, -0.08834833651781082, -0.13107119500637054, 0.02617991715669632, -0.16283319890499115, -0.02271299995481968, -0.03094399906694889, -0.14919514954090118, 0.11873703449964523, -0.12478506565093994, 0.12666775286197662, -0.10311111807823181, 0.08021388947963715, 0.059157077223062515, -0.027098264545202255, 0.10719825327396393, -0.1664421707391739, -0.0006283448892645538, -0.02658534236252308, 0.08463931828737259, -0.10308975726366043, 0.023723306134343147, 0.023606110364198685, 0.07253919541835785, -0.007218620274215937, 0.08961884677410126, 0.0033710089046508074, 0.009496509097516537, -0.029298050329089165, -0.0716199055314064, -0.003912344574928284, 0.11330927908420563, 0.05106695368885994, -0.12774504721164703, 0.11841613799333572, -0.06576596945524216, -0.020720211789011955, 0.045249514281749725, 0.014318540692329407, 0.13048747181892395, -0.007951797917485237, 0.09275241196155548, 0.13711704313755035, 0.08629171550273895, 0.01864083670079708, 0.1030021533370018, 0.01322073396295309, 0.04424280300736427, -0.263811856508255, -0.05344010517001152, -0.17506738007068634, -0.03727491572499275, 0.008888006210327148, -0.07618404924869537, 0.003899727948009968, -0.017180098220705986, -0.038493458181619644, -0.024274839088320732, -0.00031705194851383567, -0.1902465522289276, 7.811951832081832e-7, -0.09293626248836517, -0.027050593867897987, -0.0148163465783, -0.0922168493270874, -0.09196221828460693, 0.013599148951470852, -0.4903923571109772, 0.1365615278482437, 0.08236396312713623, -0.17453762888908386, 0.06416229903697968, 0.0038862954825162888, 0.1276758760213852, -0.005805253516882658, 0.18024419248104095, -0.009560304693877697, 0.021692967042326927, 0.09557981789112091, -0.17160314321517944, 0.11280102282762527, 0.15149278938770294, 0.1277049034833908, 0.111005499958992, -0.03730863332748413, 0.01993274874985218, 0.06590444594621658, 0.018944084644317627, -0.04909053444862366, 0.11228375881910324, -0.12733423709869385, -0.1874949336051941, 0.19692488014698029, -0.078696608543396, 0.07957775145769119, 0.018631096929311752, -0.045890405774116516, -0.2237982451915741, -0.013086942955851555, 0.14202980697155, -0.010429462417960167, 0.04282670468091965, -0.042819999158382416, 0.1520213484764099, -0.008085324428975582, 0.02369746007025242, 0.12953634560108185, 0.07278161495923996, 0.052875272929668427, -0.057819195091724396, -0.02586139738559723, 0.0378262884914875, -0.08127740025520325, 0.07803185284137726, 0.13095058500766754, -0.0393340028822422, -0.09971430897712708, -0.069329634308815, -0.2002253532409668, -0.07007268816232681, -0.06087736785411835, -0.10731165111064911, -0.08766577392816544, -0.050388723611831665, 0.17946937680244446, -0.05158153548836708, 0.11733107268810272, 0.0856645330786705, 6.855740767356674e-35, 0.016158392652869225, -0.06664660573005676, 0.10857737809419632, -0.18546104431152344, -0.10175576061010361, 0.16720245778560638, 0.328691303730011, -0.03553454950451851, -0.1266808956861496, -0.007565583102405071, 0.035020045936107635 ]
https://github.com/huggingface/datasets/issues/2689
cannot save the dataset to disk after rename_column
Hi ! That's because you are trying to overwrite a file that is already open and being used. Indeed `foo/dataset.arrow` is open and used by your `dataset` object. When you do `rename_column`, the resulting dataset reads the data from the same arrow file. In other cases like when using `map` on the other hand, the resulting dataset reads the data from another arrow file that is the result of the map transform. Therefore overwriting a dataset after `rename_column` is not possible, but it is possible after `map`, since `rename_column` doesn't switch to using another arrow file (the actual data stay the same).
## Describe the bug If you use `rename_column` and do no other modification, you will be unable to save the dataset using `save_to_disk` ## Steps to reproduce the bug ```python # Sample code to reproduce the bug In [1]: from datasets import Dataset, load_from_disk In [5]: dataset=Dataset.from_dict({'foo': [0]}) In [7]: dataset.save_to_disk('foo') In [8]: dataset=load_from_disk('foo') In [10]: dataset=dataset.rename_column('foo', 'bar') In [11]: dataset.save_to_disk('foo') --------------------------------------------------------------------------- PermissionError Traceback (most recent call last) <ipython-input-11-a3bc0d4fc339> in <module> ----> 1 dataset.save_to_disk('foo') /mnt/beegfs/projects/meerqat/anaconda3/envs/meerqat/lib/python3.7/site-packages/datasets/arrow_dataset.py in save_to_disk(self, dataset_path , fs) 597 if Path(dataset_path, config.DATASET_ARROW_FILENAME) in cache_files_paths: 598 raise PermissionError( --> 599 f"Tried to overwrite {Path(dataset_path, config.DATASET_ARROW_FILENAME)} but a dataset can't overwrite itself." 600 ) 601 if Path(dataset_path, config.DATASET_INDICES_FILENAME) in cache_files_paths: PermissionError: Tried to overwrite foo/dataset.arrow but a dataset can't overwrite itself. ``` N. B. I created the dataset from dict to enable easy reproduction but the same happens if you load an existing dataset (e.g. starting from `In [8]`) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.0 - Platform: Linux-3.10.0-1160.11.1.el7.x86_64-x86_64-with-centos-7.9.2009-Core - Python version: 3.7.10 - PyArrow version: 3.0.0
102
cannot save the dataset to disk after rename_column ## Describe the bug If you use `rename_column` and do no other modification, you will be unable to save the dataset using `save_to_disk` ## Steps to reproduce the bug ```python # Sample code to reproduce the bug In [1]: from datasets import Dataset, load_from_disk In [5]: dataset=Dataset.from_dict({'foo': [0]}) In [7]: dataset.save_to_disk('foo') In [8]: dataset=load_from_disk('foo') In [10]: dataset=dataset.rename_column('foo', 'bar') In [11]: dataset.save_to_disk('foo') --------------------------------------------------------------------------- PermissionError Traceback (most recent call last) <ipython-input-11-a3bc0d4fc339> in <module> ----> 1 dataset.save_to_disk('foo') /mnt/beegfs/projects/meerqat/anaconda3/envs/meerqat/lib/python3.7/site-packages/datasets/arrow_dataset.py in save_to_disk(self, dataset_path , fs) 597 if Path(dataset_path, config.DATASET_ARROW_FILENAME) in cache_files_paths: 598 raise PermissionError( --> 599 f"Tried to overwrite {Path(dataset_path, config.DATASET_ARROW_FILENAME)} but a dataset can't overwrite itself." 600 ) 601 if Path(dataset_path, config.DATASET_INDICES_FILENAME) in cache_files_paths: PermissionError: Tried to overwrite foo/dataset.arrow but a dataset can't overwrite itself. ``` N. B. I created the dataset from dict to enable easy reproduction but the same happens if you load an existing dataset (e.g. starting from `In [8]`) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.0 - Platform: Linux-3.10.0-1160.11.1.el7.x86_64-x86_64-with-centos-7.9.2009-Core - Python version: 3.7.10 - PyArrow version: 3.0.0 Hi ! That's because you are trying to overwrite a file that is already open and being used. Indeed `foo/dataset.arrow` is open and used by your `dataset` object. When you do `rename_column`, the resulting dataset reads the data from the same arrow file. In other cases like when using `map` on the other hand, the resulting dataset reads the data from another arrow file that is the result of the map transform. Therefore overwriting a dataset after `rename_column` is not possible, but it is possible after `map`, since `rename_column` doesn't switch to using another arrow file (the actual data stay the same).
[ 0.08941057324409485, 0.16567161679267883, -0.0328075997531414, -0.10826338082551956, 0.1962917149066925, 0.03968271240592003, 0.15534384548664093, -0.016355708241462708, -0.16716217994689941, 0.05970671772956848, -0.138194277882576, -0.013316246680915356, 0.007799892220646143, -0.08804585784673691, -0.008995827287435532, 0.0819140374660492, -0.07410717755556107, -0.06545097380876541, -0.015031233429908752, 0.03997180983424187, -0.13251258432865143, -0.03003002516925335, 0.04193182289600372, -0.03139256313443184, -0.049975596368312836, -0.12488571554422379, 0.06331267952919006, 0.12896761298179626, -0.13243164122104645, -0.11712309718132019, 0.07499407976865768, 0.20113344490528107, 0.04503335803747177, 0.2260264754295349, 0.000004736053597298451, -0.0027771838940680027, 0.19983835518360138, 0.04229506105184555, -0.036593470722436905, -0.04365253448486328, -0.07201594114303589, 0.008776189759373665, -0.056101035326719284, -0.16181449592113495, 0.03393220156431198, -0.03693770989775658, 0.06284093111753464, -0.030076907947659492, 0.11197741329669952, 0.036166343837976456, 0.008710927329957485, -0.04181094467639923, 0.11696284264326096, -0.14750780165195465, 0.06632979959249496, -0.03379044309258461, -0.01567666046321392, 0.06843555718660355, -0.45626720786094666, -0.1408616453409195, -0.15314656496047974, -0.12951116263866425, -0.07557258754968643, -0.036704275757074356, -0.22092074155807495, -0.1434296816587448, -0.05658962205052376, -0.07762381434440613, 0.15802814066410065, 0.1008593812584877, -0.004803666844964027, -0.20103134214878082, -0.20671866834163666, 0.08729658275842667, 0.010690788738429546, -0.006081605330109596, 0.0054476275108754635, 0.1428675800561905, -0.051351550966501236, 0.06824512779712677, 0.04709038510918617, -0.03454246371984482, 0.03765895590186119, -0.01890045404434204, -0.05073440819978714, -0.05194137990474701, -0.1780763417482376, 0.15498611330986023, -0.1409456580877304, -0.14781798422336578, 0.1156855970621109, 0.03520655632019043, -0.06224631518125534, -0.0931578204035759, -0.0056428746320307255, 0.06954983621835709, -0.054415974766016006, 0.0010943383676931262, -0.07598047703504562, 0.05596177279949188, -0.0618421770632267, -0.0852857455611229, 0.1482207179069519, 0.12757326662540436, -0.0002740579948294908, 0.06741704046726227, -0.050974518060684204, -0.026990767568349838, 0.22259178757667542, 0.035303473472595215, -0.17655456066131592, 0.051936306059360504, -0.031216664239764214, 0.009452642872929573, 0.25303560495376587, 0.08732741326093674, 0.0859825387597084, 0.12152531743049622, -0.01011453103274107, 0.15208977460861206, -0.02517494559288025, -0.001237459247931838, 0.01992308720946312, 0.17568740248680115, 0.15461769700050354, 0.00630570575594902, 0.05043673887848854, 0.24303777515888214, 0.08112060278654099, 0.24978236854076385, 0.016722066327929497, 0.04170212894678116, -0.015104990452528, -0.023631036281585693, 0.20751944184303284, 0.07855986058712006, -0.008343023248016834, -0.06373678147792816, -0.033313997089862823, -0.15512657165527344, 0.15241514146327972, -0.14314252138137817, 0.004282741341739893, -0.08419393748044968, 0.04843422397971153, 0.06598193943500519, 0.08226532489061356, -0.191095769405365, 0.08095089346170425, -0.03227364271879196, -0.04789193719625473, 0.17310327291488647, -0.1669941544532776, 0.07536688446998596, -0.0014154970413073897, 0.15573036670684814, -0.08041366934776306, -0.12086062133312225, -0.035106196999549866, -0.11151853203773499, 0.2023625373840332, 0.1079811081290245, 0.06590913981199265, -0.14572878181934357, 0.11194167286157608, 0.1457296907901764, 0.09686136245727539, -0.021414440125226974, -0.05236944183707237, 0.18733957409858704, 0.08028586953878403, -0.020801115781068802, 0.01912643201649189, -0.13571661710739136, 0.0051365564577281475, 0.11842671036720276, -0.03648590296506882, 0.0615057498216629, -0.41738295555114746, -0.09154236316680908, 0.06369514763355255, -0.009163232520222664, 0.1708708256483078, -0.08577647060155869, -0.04468772932887077, -0.09686940908432007, -0.15276208519935608, -0.1796657145023346, 0.06699790805578232, -0.029949653893709183, -0.009219115599989891, 0.10269134491682053, 0.05872204527258873, -0.0971425324678421, -0.02011697180569172, -0.020726609975099564, 0.06973341107368469, -0.12771986424922943, 0.046698782593011856, -0.18789426982402802, 0.09459541738033295, -0.015185322612524033, 0.00940547976642847, -0.0896013155579567, -0.014694894663989544, -0.1123514175415039, -0.25017282366752625, 0.03251225873827934, -0.05640454217791557, -0.2421349287033081, -0.1391587257385254, 0.038950540125370026, -0.04224240779876709, 0.0665564015507698, -0.07640142738819122, 0.0439746156334877, -0.048119522631168365, 0.03409909829497337, -0.08386793732643127, 0.21564707159996033, -0.04142971709370613, 0.22669531404972076, -0.1195073202252388, -0.016473839059472084, -0.09627468883991241, 0.03479205071926117, -0.02829831652343273, -0.20597335696220398, -0.023776181042194366, 0.13593381643295288, -0.15533436834812164, -0.10049383342266083, -0.021558748558163643, 0.11798878759145737, 0.0009932019747793674, -0.11239764094352722, -0.1582961082458496, -0.28353220224380493, -0.08776840567588806, -0.029357606545090675, -0.12361805886030197, 0.013401716016232967, -0.0050348700024187565, -0.05471787974238396, -0.031753599643707275, 0.027211228385567665, -0.05122988298535347, 0.15365532040596008, -0.051148079335689545, -0.08973875641822815, 0.11565245687961578, 0.02663288079202175, -0.17378588020801544, 0.01947733387351036, -0.015587537549436092, 0.013761552050709724, 0.21864087879657745, 0.03610791638493538, 0.02436956763267517, 0.026674309745430946, 0.3922469913959503, 0.09304540604352951, 0.0035057812929153442, -0.04925810545682907, 0.14936012029647827, -0.09684279561042786, 0.17449922859668732, 0.1396532505750656, -0.05433027446269989, 0.07132846862077713, -0.004026178736239672, 0.015035328455269337, -0.09861356765031815, -0.09266868978738785, 0.18168407678604126, -0.06834063678979874, 0.008353004232048988, -0.03793167695403099, 0.16794142127037048, 0.05852534994482994, -0.1179833710193634, 0.20278356969356537, 0.09253174066543579, -0.208805650472641, 0.14101746678352356, 0.2224271446466446, -0.16785690188407898, 0.01875912956893444, -0.00004640549377654679, 0.0512852743268013, -0.06858856230974197, -0.14598725736141205, 0.09443932771682739, -0.008514481596648693, -0.059182308614254, 0.009246788918972015, 0.025395149365067482, -0.24843142926692963, -0.038229506462812424, 0.0784161314368248, -0.10283420234918594, 0.11933416873216629, 0.23372793197631836, -0.30901896953582764, 0.12745702266693115, 0.0073107583448290825, 0.16837406158447266, 0.1939762532711029, -0.021244708448648453, -0.09255176037549973, 0.014463192783296108, -0.08988632261753082, 0.06949516385793686, 0.16414590179920197, 0.03149252384901047, 0.08234648406505585, -0.13665959239006042, -0.11542525142431259, 0.06946585327386856, 0.08020661771297455, -0.07324010878801346, 0.14757302403450012, -0.004850003402680159, 0.10127240419387817, -0.00428307568654418, 0.19478832185268402, -0.2150045782327652, -0.1561206579208374, 0.2571222186088562, 0.004809805657714605, 0.048471834510564804, 0.07978193461894989, -0.11389046907424927, -0.2679961323738098, 0.15231582522392273, -0.03440026566386223, -0.11700040847063065, -0.013548633083701134, 0.11572590470314026, -0.03716903552412987, -0.0309054683893919, 0.057464394718408585, 0.03262559697031975, 0.035007745027542114, 0.21068307757377625, 0.06508580595254898, 0.02015327848494053, -0.08430864661931992, 0.15629079937934875, -0.08247826993465424, -0.0007099114591255784, 0.08671031147241592, -0.09380532056093216, -0.09112951904535294, -0.06865661591291428, 0.05910790339112282, -0.10731261223554611, 0.08889540284872055, -0.0601409375667572, 0.023381555452942848, 0.05878715589642525, 0.1815451830625534, -0.1645941138267517, -0.09856071323156357, 0.015240189619362354, 0.25021079182624817, 0.03696908801794052, 0.0060600400902330875, -0.17088861763477325, -0.278207927942276, -0.0555606484413147, -0.01984870247542858, -0.1295621544122696, -0.08866434544324875, -0.1759054809808731, 0.05070080980658531, 0.11626102030277252, -0.045229580253362656, 0.14065241813659668, 0.06773804873228073, -0.03127342090010643, -0.16097870469093323, -0.13714048266410828, 0.16615214943885803, 0.2353965938091278, -0.07707550376653671, -0.11121922731399536, 0.07812199741601944, -0.002017450984567404, -0.013855739496648312, 0.14873062074184418, -0.1026592031121254, 0.03969036787748337, -0.03782597929239273, 0.03064585104584694, -0.04985571652650833, 0.26926279067993164, 0.17988021671772003, 0.03368869423866272, 0.045891664922237396, -0.029443876817822456, 0.14373314380645752, 0.07481246441602707, 0.1571037918329239, 0.09472119808197021, 0.13571740686893463, 0.010666045360267162, -0.050196126103401184, 0.1568640172481537, 0.04345705732703209, -0.053551964461803436, 0.023870069533586502, -0.021069416776299477, -0.12671568989753723, 0.005397213622927666, 0.02505325898528099, 0.0009877650300040841, -0.05686391517519951, -0.17760266363620758, -0.2652161121368408, -0.3722645044326782, -0.05398644134402275, -0.06727714091539383, 0.11147861927747726, 0.004826385993510485, -0.00743868900462985, 0.003353571519255638, -0.18792110681533813, 0.09608762711286545, -0.05687050521373749, 0.03323565796017647, 0.01709415391087532, 0.030295656993985176, -0.030735725536942482, 0.19721975922584534, -0.021523492410779, 0.21587616205215454, -0.23308411240577698, 0.01647670939564705, -0.0645182728767395, -0.095794178545475, -0.05077054724097252, 0.06844830513000488, -0.10169579088687897, 0.11999347805976868, -0.16069050133228302, -0.18863843381404877, -0.038657452911138535, 0.021690944209694862, 0.005353011656552553, -0.16225671768188477, 0.010000046342611313, -0.06547558307647705, -0.03204827383160591, 0.11119949072599411, 0.015830157324671745, 0.23653168976306915, 0.20564991235733032, 0.0011591189540922642, 0.16750001907348633, -0.0676250085234642, -0.05063139274716377, -0.16552534699440002, 0.22795292735099792, 0.08279390633106232, -0.040906548500061035, 0.057170916348695755, -0.06320945918560028, 0.0358441025018692, 0.08566708117723465, -0.04651474207639694, 0.03386738523840904, -0.06928660720586777, -0.04355531185865402, 0.11409793794155121, -0.03943607211112976, 0.054980888962745667, -0.19482766091823578, -0.026996642351150513, -0.036539118736982346, 0.11013253033161163, -0.12530149519443512, 0.03866501897573471, -0.11802829056978226, -0.005452178884297609, 0.22550594806671143, -0.023697149008512497, -0.00870142225176096, 0.0009300218080170453, -0.10525387525558472, 0.003207271220162511, -0.010269349440932274, -0.04547569155693054, 0.0668296366930008, 0.16204367578029633, -0.18043510615825653, -0.05680801719427109, 0.043396204710006714, -0.10628494620323181, 0.22105099260807037, 0.00012164784129709005, -0.07258675992488861, -0.04240813106298447, -0.056133933365345, 0.041478585451841354, -0.21079100668430328, 0.05074504390358925, -0.019213059917092323, 0.02023414522409439, -0.009628944098949432, -0.030663928017020226, 0.021811606362462044, -0.1332395076751709, 0.019988704472780228, 0.10561377555131912, -0.023698661476373672, -0.17924126982688904, 0.08409339189529419, -0.1282821148633957, -0.013460400514304638, 0.0230417437851429, -0.0035858838818967342, 0.11167135089635849, -0.102178193628788, 0.09556440263986588, -0.09899583458900452, -0.09219889342784882, 0.00038804407813586295, 0.23001781105995178, 0.0942782610654831, 0.20680496096611023, 0.2617391347885132, 0.04453079774975777, 0.058786164969205856, -0.12289875745773315, 0.0478392019867897, 0.09417347609996796, -0.08682771772146225, 0.1478530317544937, -0.18169893324375153, 0.026704134419560432, -0.17723238468170166, -0.16174517571926117, 0.070592001080513, 0.13435065746307373, 0.034543413668870926, -0.013275899924337864, -0.14358340203762054, -0.09783877432346344, -0.057672370225191116, 0.008661202155053616, 0.07126681506633759, 0.03372547775506973, -0.061053983867168427, 0.049721717834472656, -2.3049730936608735e-32, 0.06260646879673004, -0.042835529893636703, 0.0054579926654696465, 0.13884775340557098, -0.17285093665122986, -0.04729297012090683, -0.2367371916770935, 0.12336608022451401, 0.1715567409992218, -0.051762357354164124, -0.09932690113782883, -0.09181829541921616, -0.08777491003274918, 0.12433183938264847, -0.13191285729408264, -0.06545061618089676, -0.07768458873033524, -0.016153117641806602, -0.018639855086803436, 0.09170936793088913, 0.1764981746673584, 0.008735837414860725, 0.094842329621315, 0.09255297482013702, -0.06676235795021057, -0.002821999602019787, -0.1651112288236618, -0.17463934421539307, -0.11404498666524887, -0.020515356212854385, 0.017796000465750694, 0.1858474463224411, 0.07823925465345383, -0.12553770840168, -0.08249898999929428, -0.15230247378349304, -0.12004224210977554, 0.023638593032956123, -0.19622023403644562, -0.006170766893774271, -0.13257476687431335, 0.10077133774757385, 0.18710368871688843, -0.0501251183450222, -0.12261855602264404, 0.02380160056054592, -0.04478603973984718, -0.06923166662454605, 0.038157250732183456, -0.2313063144683838, -0.1637716442346573, -0.0014591588405892253, 0.06579934060573578, 0.025392211973667145, 0.08806252479553223, -0.18437211215496063, -0.044825635850429535, 0.029691563919186592, -0.11144424974918365, -0.00784644391387701, 0.08259463310241699, -0.09399514645338058, 0.05509652569890022, 0.07071438431739807, 0.08973900228738785, -0.03523955121636391, 0.3002743721008301, 0.09645447134971619, 0.20507071912288666, -0.034257031977176666, -0.10258837789297104, 0.2170274555683136, 0.06364022940397263, -0.01720195636153221, -0.16730675101280212, 0.046621765941381454, -0.08348945528268814, -0.020607775077223778, -0.10465840995311737, -0.09081076085567474, -0.01867244578897953, -0.01575445756316185, 0.20363792777061462, -0.040090806782245636, -0.13012762367725372, 0.060956284403800964, -0.021446634083986282, 0.18292856216430664, -0.09176533669233322, -0.057780053466558456, 0.033600982278585434, 0.11206041276454926, -0.10834372043609619, -0.18195952475070953, -0.19501818716526031, 0.1017962396144867, -0.0443076528608799, 0.11068060994148254, -0.07976529002189636, 0.03529719263315201, -0.048043712973594666, -0.06267374753952026, -0.004501565359532833, 0.06850259751081467, 0.09062212705612183, 0.05686714127659798, 0.1670026034116745, 0.059439342468976974, -0.1017795130610466, -0.009988220408558846, 0.01606302335858345, 0.19903436303138733, 0.07033181190490723, 0.014750918373465538, 0.11218255013227463, -0.15956246852874756, -0.027994446456432343, -0.07738691568374634, 0.2768530547618866, 0.14922544360160828, -0.015409959480166435, -0.11223988234996796, -0.13820596039295197, 0.07354564964771271, 0.06301894038915634, -0.09111279249191284, 0.0018414229853078723, -0.11860216408967972, 0.11433333903551102, -0.03621162846684456, 0.043612945824861526, -0.2252565622329712, 7.281647071977204e-7, -0.20218713581562042, 0.20598214864730835, 0.025746772065758705, -0.11381569504737854, -0.061823781579732895, 0.13640232384204865, -0.20000945031642914, 0.12375584244728088, -0.055942364037036896, 0.16077972948551178, 0.0997115969657898, -0.0718299150466919, -0.04982595145702362, -0.18395128846168518, 0.2765541970729828, 0.010320459492504597, -0.11249829083681107, 0.21593765914440155, 0.026191290467977524, 0.05297793820500374, 0.19166849553585052, -0.020581750199198723, 0.09940934926271439, -0.18612301349639893, 0.02015918307006359, 0.09272772073745728, 0.03548232838511467, -0.17858459055423737, 0.08556470274925232, 0.004810221493244171, 0.003417648607864976, 0.15791068971157074, 0.13177751004695892, -0.006738939322531223, -0.003929023165255785, -0.11920448392629623, -0.22528789937496185, 0.0014199868310242891, 0.017432235181331635, -0.06816510111093521, 0.07676676660776138, 0.10353609919548035, 0.021008629351854324, 0.047048091888427734, 0.08230248093605042, -0.0058840191923081875, -0.12326150387525558, 0.11974849551916122, -0.04503854736685753, 0.10469431430101395, 0.0723768100142479, 0.018059123307466507, 0.10265408456325531, -0.03038768656551838, -0.15247727930545807, 0.18064117431640625, -0.10694822669029236, -0.01946958713233471, 0.22206181287765503, 0.08521857112646103, -0.013917366042733192, -0.03108401782810688, -0.00870957225561142, -0.05375342443585396, 0.05159939080476761, -0.15641966462135315, 0.03838900104165077, 1.0676776416228827e-34, 0.04499736428260803, 0.029474711045622826, 0.08572538197040558, -0.1898229718208313, -0.05971149727702141, -0.039530523121356964, 0.28510913252830505, 0.011900924146175385, 0.10502712428569794, 0.06366649270057678, -0.02501697652041912 ]
https://github.com/huggingface/datasets/issues/2688
hebrew language codes he and iw should be treated as aliases
Hi @eyaler, thanks for reporting. While you are true with respect the Hebrew language tag ("iw" is deprecated and "he" is the preferred value), in the "mc4" dataset (which is a derived dataset) we have kept the language tags present in the original dataset: [Google C4](https://www.tensorflow.org/datasets/catalog/c4).
https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability.
46
hebrew language codes he and iw should be treated as aliases https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability. Hi @eyaler, thanks for reporting. While you are true with respect the Hebrew language tag ("iw" is deprecated and "he" is the preferred value), in the "mc4" dataset (which is a derived dataset) we have kept the language tags present in the original dataset: [Google C4](https://www.tensorflow.org/datasets/catalog/c4).
[ 0.05641339346766472, 0.021526245400309563, -0.10455242544412613, 0.06494377553462982, 0.005407107062637806, 0.1907452642917633, 0.04765634983778, 0.12910982966423035, 0.010459545068442822, 0.16525714099407196, -0.14424751698970795, -0.27674296498298645, 0.13507124781608582, -0.07246504724025726, 0.015624132007360458, 0.12270545959472656, -0.08699267357587814, -0.11850457638502121, -0.14981704950332642, -0.0726812407374382, -0.031999681144952774, 0.1059543639421463, 0.16790084540843964, -0.018017392605543137, 0.02711000107228756, 0.059087563306093216, 0.13692528009414673, -0.09845666587352753, 0.14963170886039734, -0.09028337895870209, -0.00314498832449317, -0.04101353883743286, -0.035253796726465225, 0.17762155830860138, 0.000005329196028469596, 0.10199776291847229, -0.11845458298921585, 0.07135900110006332, -0.1046181172132492, -0.1076771691441536, 0.12369544059038162, -0.1691286563873291, -0.18556593358516693, 0.08968198299407959, -0.22262170910835266, -0.11888537555932999, 0.18679724633693695, -0.03404812142252922, -0.04287220537662506, 0.026536013931035995, 0.04460348188877106, 0.03952853009104729, -0.07281536608934402, 0.00533747673034668, -0.007040098775178194, -0.04011017829179764, -0.08383604884147644, 0.0185061227530241, -0.1674482822418213, 0.20822292566299438, -0.054665129631757736, 0.1267542839050293, 0.15101046860218048, 0.09077394008636475, -0.07071664184331894, 0.13485834002494812, -0.26607251167297363, -0.029856810346245766, 0.10991009324789047, -0.1116199642419815, 0.0797404795885086, -0.14813151955604553, 0.03734418749809265, 0.14958198368549347, -0.1100132092833519, -0.09000982344150543, 0.05726064741611481, 0.1394028216600418, -0.08574388921260834, 0.03266511484980583, -0.1425870656967163, -0.030214475467801094, 0.14128300547599792, -0.05614030733704567, -0.09601712971925735, 0.07612941414117813, 0.05723880976438522, -0.02105475217103958, 0.2090311497449875, -0.20672278106212616, 0.025078250095248222, -0.0020727806258946657, 0.02251422591507435, -0.07484134286642075, 0.20689116418361664, -0.10171633213758469, -0.10068593919277191, 0.04098162427544594, -0.03150434046983719, -0.1284918189048767, -0.03713775426149368, 0.203323096036911, -0.02509402111172676, -0.051642466336488724, -0.10862408578395844, 0.03670456260442734, 0.26855340600013733, -0.18090729415416718, 0.15134276449680328, -0.005882848519831896, -0.007101505063474178, 0.00020085384312551469, -0.15565212070941925, 0.02850954420864582, -0.1759403645992279, 0.12996946275234222, -0.09728085994720459, 0.1526135802268982, 0.23330636322498322, -0.04129042848944664, -0.0226355642080307, -0.241780623793602, -0.05011526495218277, 0.16723747551441193, 0.15301798284053802, -0.1667834222316742, -0.03329875320196152, -0.1623610407114029, -0.18285569548606873, -0.3092321455478668, 0.0832490399479866, 0.09785035252571106, -0.08948282897472382, -0.00007220367842819542, 0.024372277781367302, 0.018612705171108246, -0.03830134868621826, -0.21172840893268585, 0.07784871011972427, 0.2931060791015625, -0.19443146884441376, 0.09441421926021576, 0.004256234969943762, -0.04243440926074982, -0.01638539507985115, -0.046785056591033936, 0.009362227283418179, 0.07914981245994568, -0.14816801249980927, 0.0800757184624672, 0.0443115271627903, 0.20844027400016785, -0.056975629180669785, -0.12772496044635773, 0.026926597580313683, -0.0028470654506236315, 0.028159158304333687, 0.053818412125110626, -0.24768151342868805, 0.001390552381053567, 0.0236232727766037, -0.008962576277554035, 0.0970776155591011, 0.08094732463359833, 0.009118208661675453, 0.2779352068901062, -0.00853900145739317, -0.08178675919771194, 0.11881951242685318, -0.18511831760406494, -0.10476062446832657, -0.015522151254117489, -0.11051833629608154, -0.026693709194660187, -0.025845959782600403, 0.12073352932929993, -0.175814688205719, -0.040882062166929245, -0.2246219962835312, -0.07068299502134323, -0.008023837581276894, -0.1374279409646988, -0.10958387702703476, -0.09820687025785446, 0.060593366622924805, -0.15659263730049133, 0.009543861262500286, 0.03958288952708244, 0.03790556639432907, -0.1099022924900055, -0.00874253362417221, 0.12479832023382187, 0.16203825175762177, 0.0675998255610466, 0.00751925865188241, -0.0653899684548378, 0.05818071588873863, -0.16254182159900665, -0.09493518620729446, -0.10670623183250427, 0.10735347867012024, -0.04759372025728226, -0.12837153673171997, 0.09752336144447327, -0.08278141915798187, 0.09298188239336014, -0.17175360023975372, 0.10331898182630539, 0.1023082286119461, 0.22043059766292572, -0.04901699349284172, 0.07467936724424362, 0.12882786989212036, -0.13141393661499023, 0.05022167041897774, 0.04570089653134346, 0.024335797876119614, 0.053687576204538345, -0.09214755892753601, 0.06858918815851212, -0.04096883535385132, -0.035098832100629807, -0.1402231752872467, -0.003923602867871523, -0.12190788239240646, 0.07511848211288452, -0.042183078825473785, 0.05868130177259445, -0.014392267912626266, -0.0044355192221701145, -0.007172983139753342, -0.01035291887819767, -0.005807416047900915, -0.0030519634019583464, -0.1421971172094345, -0.028411902487277985, 0.06896787136793137, -0.048339586704969406, 0.21672789752483368, -0.07025305181741714, 0.05415746942162514, -0.044460415840148926, -0.02586875483393669, 0.002011355012655258, 0.14417320489883423, -0.1308082491159439, 0.07572639733552933, 0.022310500964522362, 0.10032610595226288, 0.012273111380636692, 0.11891166120767593, 0.11573377996683121, -0.045367125421762466, -0.09581613540649414, 0.014834174886345863, 0.033932335674762726, 0.03144203498959541, 0.07364067435264587, 0.02050134539604187, -0.015898672863841057, 0.38815152645111084, -0.12002681195735931, -0.02934287115931511, 0.07634385675191879, -0.050383634865283966, 0.19648073613643646, 0.0340806283056736, -0.19455233216285706, -0.006129828281700611, 0.08777549117803574, 0.11820481717586517, -0.000720527081284672, 0.013118032366037369, -0.006249472498893738, -0.023681817576289177, -0.03804301097989082, -0.1482492983341217, 0.01936217211186886, 0.04560224339365959, -0.12003292143344879, -0.12103307992219925, 0.15975072979927063, -0.02545294538140297, -0.07878608256578445, -0.05729283019900322, -0.008993072435259819, -0.0778600424528122, -0.14045298099517822, 0.03084850125014782, -0.10234275460243225, -0.16255824267864227, -0.05148634314537048, -0.040345098823308945, -0.11560583859682083, 0.11874586343765259, 0.0002617626450955868, 0.07981843501329422, -0.11201310157775879, -0.13027307391166687, 0.016363849863409996, -0.21179106831550598, 0.032348111271858215, -0.0896470695734024, 0.08806700259447098, -0.04178933799266815, -0.12184086441993713, -0.020975591614842415, -0.15029430389404297, -0.16212131083011627, -0.09617502242326736, 0.12657172977924347, -0.010422608815133572, -0.11954553425312042, 0.06584428250789642, -0.14681194722652435, 0.07442934066057205, -0.03388833627104759, -0.16910246014595032, 0.10780756175518036, 0.14696332812309265, -0.0496133416891098, -0.18768271803855896, -0.04764207452535629, -0.020235782489180565, -0.05371588096022606, -0.04527721181511879, -0.1774902492761612, -0.005289870779961348, 0.05016113072633743, -0.18879498541355133, 0.0673409178853035, -0.02885994128882885, -0.10490220785140991, -0.015489763580262661, 0.12026235461235046, -0.10409825295209885, -0.0510856956243515, 0.046432945877313614, 0.1589844673871994, -0.14126451313495636, -0.032025136053562164, 0.0005794268217869103, 0.047687701880931854, 0.10173176974058151, 0.1278754323720932, -0.12158218026161194, 0.14508980512619019, -0.0773504227399826, 0.14125819504261017, 0.08615448325872421, -0.11653761565685272, -0.06116525083780289, 0.007365464698523283, -0.009940896183252335, -0.08032804727554321, -0.21741072833538055, -0.1559634804725647, -0.16260378062725067, -0.06716158986091614, 0.07448285073041916, 0.052583396434783936, -0.0404757559299469, -0.061418984085321426, -0.028089338913559914, -0.14716869592666626, 0.10605151951313019, 0.3073326647281647, 0.19758199155330658, -0.08003298938274384, -0.12154285609722137, -0.0928238034248352, 0.006614273879677057, 0.06660115718841553, 0.1344693899154663, 0.05396076291799545, -0.015404492616653442, 0.014934628270566463, 0.06100209057331085, -0.07106166332960129, -0.03677265718579292, -0.054068222641944885, -0.04437929391860962, 0.022515106946229935, 0.0929376408457756, 0.09313534945249557, 0.06362473219633102, -0.08217840641736984, 0.15986274182796478, -0.13913024961948395, 0.04394252598285675, 0.17292040586471558, -0.1460176259279251, -0.13794578611850739, -0.09111352264881134, -0.15358059108257294, 0.06983237713575363, 0.057100772857666016, 0.09275864064693451, 0.20605996251106262, 0.0900363102555275, 0.03787495940923691, 0.1982763111591339, -0.11027687788009644, 0.11143816262483597, -0.020407507196068764, 0.0013369990047067404, 0.1697884351015091, 0.1837177276611328, -0.1995047926902771, 0.0037167035043239594, 0.18666866421699524, -0.0709085613489151, -0.17581336200237274, -0.11332166939973831, -0.04337586089968681, -0.03904210031032562, 0.003938238602131605, -0.04637084901332855, 0.06358673423528671, -0.035572826862335205, 0.043969735503196716, -0.2753216028213501, 0.08090949803590775, -0.1307823657989502, 0.11507554352283478, 0.20997168123722076, 0.1001797690987587, -0.09681052714586258, 0.05768746882677078, -0.00017214121180586517, 0.11141607165336609, 0.0612315870821476, -0.13136927783489227, 0.22476395964622498, 0.18307220935821533, 0.11588456481695175, 0.04931385815143585, 0.07809334248304367, -0.20774313807487488, -0.02420838549733162, -0.1584216058254242, -0.07069452106952667, 0.20849816501140594, 0.06484802812337875, 0.09797972440719604, -0.09619206190109253, 0.05520597845315933, -0.0969766229391098, -0.12787312269210815, 0.02400234155356884, 0.11812900751829147, -0.11175329238176346, 0.03346032276749611, -0.19677814841270447, -0.18013030290603638, 0.1591569185256958, 0.08269195258617401, 0.09202247112989426, -0.07910624146461487, -0.11392942070960999, -0.022600986063480377, -0.058112982660532, 0.025598186999559402, -0.17987652122974396, -0.214007169008255, -0.1484537422657013, 0.10251737385988235, -0.20629161596298218, 0.030695611611008644, 0.11989984661340714, -0.03214963898062706, 0.11151005327701569, -0.02256135456264019, 0.023362940177321434, 0.23745326697826385, 0.05984854698181152, 0.07638242095708847, 0.031807005405426025, -0.02417653053998947, 0.07510009407997131, -0.018123984336853027, 0.002991571556776762, -0.18573327362537384, -0.12211060523986816, -0.00987323373556137, -0.06567750126123428, 0.02528461627662182, -0.020388254895806313, -0.06808695197105408, 0.05819299817085266, 0.25261300802230835, 0.09198307991027832, 0.008185376413166523, 0.043588295578956604, 0.17947958409786224, 0.06293325126171112, 0.21243534982204437, 0.17963679134845734, -0.07292751222848892, 0.08348464220762253, -0.1161048486828804, 0.03030339814722538, 0.10590627044439316, 0.05042605102062225, -0.01724756881594658, -0.06159009411931038, 0.05528738722205162, -0.08582969009876251, -0.009117254056036472, -0.21172477304935455, 0.16558946669101715, 0.10498742759227753, 0.013191653415560722, -0.095023974776268, -0.026762783527374268, -0.1874227672815323, 0.05579090863466263, 0.09275630116462708, 0.09441597014665604, -0.06387310475111008, 0.03788693994283676, -0.10243908315896988, -0.17561134696006775, 0.02002544142305851, -0.12782667577266693, 0.03725674748420715, -0.058643732219934464, -0.08861938118934631, -0.06326892226934433, 0.039787407964468, 0.050160713493824005, 0.043291300535202026, 0.1111733615398407, -0.30555108189582825, 0.10455766320228577, -0.035661932080984116, 0.25239309668540955, -0.14393793046474457, -0.0602797232568264, -0.07703278958797455, -0.006213232409209013, -0.24392008781433105, -0.02806236781179905, 0.09769073128700256, -0.002754798624664545, -0.04546231031417847, 0.06735648214817047, 0.1690877228975296, 0.03828650340437889, -0.08149095624685287, -0.09273871779441833, 0.07328392565250397, 0.15203626453876495, 0.046020664274692535, -0.06811673939228058, -2.3459982873149528e-32, -0.0886642187833786, 0.1315232366323471, 0.04585838317871094, 0.0024132286198437214, -0.08745085448026657, -0.03817017376422882, -0.059998005628585815, -0.14805176854133606, -0.07869120687246323, -0.09864934533834457, 0.04277849197387695, 0.19688951969146729, 0.07614552974700928, 0.08187665045261383, 0.0047049252316355705, -0.02742784097790718, 0.06884413212537766, 0.11871214210987091, -0.09067413955926895, 0.013805454596877098, 0.06554409861564636, 0.10176294296979904, 0.22400188446044922, 0.16847506165504456, -0.0031298210378736258, 0.0038782870396971703, -0.03427897021174431, 0.09425272792577744, 0.05418724939227104, 0.05345390737056732, -0.10513220727443695, 0.0029599154368042946, 0.04474383965134621, 0.04319191724061966, 0.12357508391141891, 0.02967856265604496, -0.007049453444778919, -0.08694558590650558, -0.0017239372245967388, 0.1444232165813446, 0.017645062878727913, -0.043051499873399734, 0.004538243170827627, -0.21949806809425354, -0.28067079186439514, 0.14269618690013885, -0.067782461643219, -0.11309782415628433, -0.11849008500576019, -0.025954578071832657, 0.04504821449518204, 0.22663570940494537, 0.07239896804094315, 0.11806304007768631, 0.18123921751976013, 0.0719592273235321, 0.001708207419142127, 0.05654845014214516, -0.21362902224063873, -0.07558738440275192, -0.02393842488527298, 0.11078132688999176, 0.052084095776081085, 0.1001020297408104, -0.03933635354042053, -0.06803616881370544, 0.18339060246944427, 0.012864118441939354, 0.2400072067975998, 0.10525120049715042, 0.17275066673755646, -0.17201144993305206, -0.01887708716094494, 0.050817783921957016, -0.15130126476287842, -0.0934147909283638, 0.13319189846515656, 0.003160570515319705, -0.17016831040382385, 0.020408786833286285, 0.04056866094470024, 0.02602340281009674, -0.18001145124435425, -0.1281832903623581, -0.0871635228395462, 0.020731575787067413, 0.01787818968296051, -0.0032906115520745516, 0.21558071672916412, -0.10087664425373077, -0.09750206023454666, 0.22878555953502655, 0.10998015850782394, -0.09695658832788467, 0.011120777577161789, 0.11972881108522415, -0.02421162836253643, 0.14580605924129486, 0.03387017548084259, 0.11833012849092484, 0.03776860982179642, -0.02964933030307293, -0.03436066955327988, -0.1607201248407364, 0.004414108116179705, -0.0397123359143734, 0.10686586797237396, 0.15223011374473572, -0.10271479189395905, -0.02635880373418331, -0.03676765039563179, 0.01763729192316532, 0.13025663793087006, 0.02756762132048607, -0.00717601552605629, -0.01564357616007328, 0.04419702664017677, -0.09312345832586288, 0.17645569145679474, 0.08342519402503967, -0.19321204721927643, -0.08640237152576447, -0.12434296309947968, 0.011094375513494015, 0.11236082762479782, 0.12351574003696442, -0.053624920547008514, 0.14168468117713928, -0.010006497614085674, -0.2754542827606201, -0.02950812503695488, 0.1139674186706543, 7.305335998353257e-7, -0.120143823325634, -0.02464218996465206, -0.11899696290493011, -0.016893543303012848, 0.03124118410050869, -0.013445953838527203, -0.049379635602235794, -0.021600976586341858, -0.07633333653211594, 0.35911619663238525, -0.04111764580011368, -0.06666156649589539, 0.20787546038627625, -0.08613699674606323, 0.21032163500785828, -0.05278961360454559, -0.05421428009867668, -0.15241949260234833, -0.24291037023067474, 0.11519399285316467, 0.007010000292211771, 0.38747045397758484, 0.013990008272230625, -0.043902408331632614, 0.009748928248882294, -0.03497161716222763, 0.010516222566366196, -0.019617930054664612, 0.09966570883989334, 0.06557819992303848, -0.0933711901307106, -0.06263964623212814, 0.003322107484564185, -0.05581144988536835, -0.10888955742120743, -0.09602177888154984, 0.10386738181114197, 0.015084240585565567, 0.02356308326125145, 0.26212218403816223, -0.09125182777643204, -0.05135404318571091, -0.12727725505828857, -0.16858701407909393, 0.13934223353862762, 0.28163325786590576, -0.006166118662804365, 0.25363993644714355, -0.14407174289226532, -0.06432609260082245, -0.032211653888225555, -0.04707633703947067, -0.10164022445678711, 0.17186619341373444, 0.10910999029874802, -0.02636772394180298, -0.0032755290158092976, 0.07058750092983246, 0.1103995218873024, -0.1809772551059723, 0.018384892493486404, -0.10322991013526917, -0.037396401166915894, 0.06585100293159485, 0.06056636571884155, 0.0020566622260957956, 0.07091963291168213, 1.3119640792060962e-34, 0.0122628603130579, -0.00744034256786108, 0.07433678209781647, -0.036148086190223694, 0.004792171996086836, -0.025108754634857178, 0.1008632481098175, 0.1351296305656433, -0.05137787014245987, 0.05579787865281105, -0.04879766330122948 ]
https://github.com/huggingface/datasets/issues/2688
hebrew language codes he and iw should be treated as aliases
For discoverability on the website I updated the YAML tags at the top of the mC4 dataset card https://github.com/huggingface/datasets/commit/38288087b1b02f97586e0346e8f28f4960f1fd37 Once the website is updated, mC4 will be listed in https://huggingface.co/datasets?filter=languages:he
https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability.
30
hebrew language codes he and iw should be treated as aliases https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability. For discoverability on the website I updated the YAML tags at the top of the mC4 dataset card https://github.com/huggingface/datasets/commit/38288087b1b02f97586e0346e8f28f4960f1fd37 Once the website is updated, mC4 will be listed in https://huggingface.co/datasets?filter=languages:he
[ 0.03304535523056984, 0.032606203109025955, -0.0887954831123352, 0.09288832545280457, 0.06633307784795761, 0.14704275131225586, -0.0234548207372427, 0.16559791564941406, -0.09595312923192978, 0.1780962496995926, -0.16084881126880646, -0.18685275316238403, 0.13080576062202454, -0.04331257939338684, 0.022335771471261978, 0.12562574446201324, -0.07913926988840103, -0.13098058104515076, -0.1877242773771286, -0.04341129958629608, -0.009661908261477947, 0.13830386102199554, 0.153018519282341, -0.027332104742527008, 0.029660500586032867, 0.03741801902651787, 0.02951396442949772, -0.06665194779634476, 0.11231262236833572, -0.17327900230884552, -0.005673975683748722, -0.02368111163377762, 0.009976716712117195, 0.15997430682182312, 0.000005382397830544505, 0.022005587816238403, -0.11859700083732605, 0.04595999792218208, -0.14535394310951233, -0.1025957316160202, 0.06080245599150658, -0.17212222516536713, -0.14628905057907104, 0.11391991376876831, -0.16359056532382965, -0.12826083600521088, 0.13015639781951904, -0.0859491154551506, -0.04855438321828842, 0.023978691548109055, 0.06051872298121452, 0.07199070602655411, -0.03205212578177452, -0.020608868449926376, -0.025008561089634895, 0.07506611198186874, -0.05023392289876938, -0.008149655535817146, -0.14140044152736664, 0.1767042875289917, -0.03150000050663948, 0.1291137933731079, 0.18103867769241333, 0.11072143912315369, -0.09584026783704758, 0.11945001035928726, -0.23434390127658844, 0.010071547701954842, 0.08918529748916626, -0.0852239578962326, 0.0779036208987236, -0.15456826984882355, -0.00007446686504408717, 0.09493540227413177, -0.10914355516433716, -0.043105773627758026, 0.0024307535495609045, 0.11422736942768097, -0.09172948449850082, 0.014701491221785545, -0.19983065128326416, 0.003933245781809092, 0.12734343111515045, -0.028738785535097122, -0.059648297727108, 0.12437998503446579, 0.021776456385850906, -0.027597611770033836, 0.2544398605823517, -0.29526299238204956, 0.054091088473796844, 0.013512672856450081, 0.01980825886130333, -0.022951947525143623, 0.21006272733211517, -0.0734630897641182, -0.07216263562440872, 0.12464543431997299, -0.01063201017677784, -0.09665405750274658, -0.04371742904186249, 0.18291158974170685, 0.021970773115754128, -0.09043727070093155, -0.1327691376209259, 0.04703157767653465, 0.26472747325897217, -0.19011446833610535, 0.1560194492340088, 0.07509060949087143, -0.015360417775809765, -0.015287261456251144, -0.1676197201013565, -0.017817500978708267, -0.1608487218618393, 0.17663145065307617, -0.07661441713571548, 0.18835587799549103, 0.26218652725219727, -0.025239503011107445, -7.697725550315226e-7, -0.245243638753891, -0.0638827309012413, 0.14595812559127808, 0.11519855260848999, -0.11394640058279037, -0.08471398055553436, -0.18832515180110931, -0.15136510133743286, -0.29190096259117126, 0.09236402064561844, 0.10411907732486725, -0.049743350595235825, 0.010329026728868484, 0.02544211596250534, 0.021342717111110687, 0.023722898215055466, -0.23011618852615356, 0.09820152074098587, 0.2760636508464813, -0.1913633793592453, 0.11054337024688721, 0.039567701518535614, -0.09519608318805695, -0.006566598080098629, -0.01932748220860958, 0.03972036764025688, 0.11342579871416092, -0.14760254323482513, -0.024031229317188263, 0.0972462147474289, 0.21929007768630981, -0.09285224229097366, -0.10073138028383255, 0.0038067360874265432, -0.0086598452180624, 0.1301589459180832, 0.11158865690231323, -0.2918578088283539, -0.020664535462856293, 0.03329455107450485, 0.0796535536646843, 0.10853499174118042, 0.10560359805822372, 0.05991250276565552, 0.3523486256599426, 0.03927232325077057, -0.07497569918632507, 0.08811403810977936, -0.1284930408000946, -0.09265466779470444, -0.07073359936475754, -0.08876290172338486, 0.008131289854645729, -0.049082200974226, 0.04166124761104584, -0.16519701480865479, -0.11821305006742477, -0.206014484167099, -0.05274837836623192, -0.009670480154454708, -0.15128496289253235, -0.1188240498304367, -0.12877804040908813, -0.015641922131180763, -0.11371290683746338, -0.018828943371772766, 0.0666433721780777, 0.02424386516213417, -0.10772974789142609, -0.002535782987251878, 0.0851898044347763, 0.02601790800690651, 0.08946860581636429, -0.014685855247080326, -0.09678787738084793, 0.12113261222839355, -0.19363880157470703, -0.01886679418385029, -0.12167656421661377, 0.1146150678396225, -0.05237960442900658, -0.07449951022863388, 0.0890449583530426, -0.06305917352437973, 0.042869675904512405, -0.1413947194814682, 0.09042065590620041, 0.14238367974758148, 0.20095862448215485, -0.1376074105501175, 0.0718308612704277, 0.07723917067050934, -0.10262349992990494, 0.002637385856360197, 0.05492519587278366, 0.03770200535655022, 0.05090344324707985, -0.043360620737075806, 0.12072170525789261, -0.02750851772725582, 0.023557862266898155, -0.0428328812122345, -0.013426885940134525, -0.11592195183038712, 0.08399677276611328, -0.036965493112802505, 0.06284520030021667, 0.031045153737068176, 0.009571783244609833, -0.006422664038836956, -0.024061884731054306, -0.004407898057252169, -0.03146230801939964, -0.15477260947227478, 0.030163336545228958, 0.1067889854311943, -0.12780120968818665, 0.22884207963943481, -0.14559179544448853, 0.07174068689346313, -0.061569761484861374, -0.022884966805577278, 0.020795563235878944, 0.047837574034929276, -0.10674428194761276, 0.019249379634857178, 0.022469783201813698, 0.1342393308877945, 0.03964151814579964, 0.10828759521245956, 0.08060596138238907, -0.026843981817364693, -0.1355760395526886, 0.0526299811899662, -0.06743068248033524, 0.027891403064131737, 0.03650175780057907, 0.006583723705261946, 0.019905729219317436, 0.3465729355812073, -0.12110289186239243, -0.059386830776929855, 0.09052419662475586, -0.04328477755188942, 0.14411500096321106, 0.008697398006916046, -0.14668262004852295, -0.023005425930023193, 0.06477425247430801, 0.09938986599445343, 0.01848614029586315, 0.07761508226394653, -0.032316580414772034, 0.003992788027971983, -0.07492417097091675, -0.1132146567106247, 0.030222661793231964, 0.06907714903354645, -0.10210426151752472, -0.1154380664229393, 0.09838100522756577, -0.02792782336473465, -0.1289684921503067, -0.02277182973921299, -0.026309967041015625, -0.1597317010164261, -0.19024182856082916, 0.018131770193576813, -0.12623536586761475, -0.15345893800258636, -0.07729505747556686, -0.10112496465444565, -0.20202967524528503, 0.08692828565835953, -0.07118786126375198, 0.09780489653348923, -0.10980124026536942, -0.1475473791360855, 0.017974060028791428, -0.2030782848596573, 0.018587397411465645, -0.06534810364246368, 0.05832981690764427, 0.01187811978161335, -0.1143583431839943, -0.011099589988589287, -0.17677795886993408, -0.13313768804073334, -0.14622564613819122, 0.04679340496659279, 0.03905179351568222, -0.07950117439031601, 0.08371280878782272, -0.09829583764076233, 0.05217568203806877, -0.033103425055742264, -0.11191588640213013, 0.11555877327919006, 0.15879669785499573, -0.022717943415045738, -0.12456033378839493, -0.06632915884256363, -0.06329433619976044, -0.045006558299064636, -0.038321275264024734, -0.14395786821842194, -0.030022479593753815, 0.008723095990717411, -0.17469367384910583, 0.045715998858213425, -0.04012884199619293, -0.10454732924699783, -0.07797637581825256, 0.025444673374295235, -0.10982135683298111, -0.030279407277703285, 0.0710914358496666, 0.18858890235424042, -0.13720551133155823, -0.0379631444811821, -0.01843680813908577, 0.02945646271109581, 0.13868817687034607, 0.08915518969297409, -0.10579518228769302, 0.1578517109155655, -0.05652012303471565, 0.14385057985782623, 0.07632527500391006, -0.06860513240098953, -0.027573933824896812, -0.018906574696302414, -0.061945125460624695, -0.09091534465551376, -0.24073076248168945, -0.09132476150989532, -0.05910995602607727, -0.07712388038635254, 0.020283058285713196, 0.0455295629799366, -0.04306098446249962, -0.035202402621507645, -0.029753899201750755, -0.07147104293107986, 0.14188705384731293, 0.2691137492656708, 0.18200194835662842, -0.04539469629526138, -0.020034825429320335, -0.08918020129203796, 0.07759978622198105, 0.0956733226776123, 0.10925793647766113, 0.10824168473482132, -0.00848011951893568, -0.011253368109464645, 0.060045529156923294, -0.03289614990353584, -0.02992825023829937, -0.014986983500421047, -0.06937155872583389, 0.05027149245142937, 0.11771021038293839, 0.1424579918384552, 0.020393837243318558, -0.0746101588010788, 0.1306605339050293, -0.1380787491798401, 0.03390377014875412, 0.18391843140125275, -0.2210620939731598, -0.09666213393211365, -0.09502484649419785, -0.14053744077682495, 0.05033515766263008, 0.05919855833053589, 0.12190011143684387, 0.16771960258483887, 0.11578299105167389, -0.02385234460234642, 0.15207482874393463, -0.159653440117836, 0.1003502756357193, 0.0061162859201431274, -0.015968773514032364, 0.14986592531204224, 0.21661271154880524, -0.13807576894760132, 0.022708242759108543, 0.16897530853748322, -0.09767681360244751, -0.14601215720176697, -0.13658957183361053, -0.003042585914954543, -0.05319073796272278, 0.020444022491574287, -0.08078406751155853, 0.09572113305330276, -0.06098674610257149, 0.05227048695087433, -0.2550671100616455, 0.03364076465368271, -0.07710818946361542, 0.22659939527511597, 0.21326729655265808, 0.08450408279895782, -0.028567254543304443, 0.0637350007891655, 0.06073139235377312, 0.13846226036548615, 0.05675261467695236, -0.13089630007743835, 0.26003751158714294, 0.150034561753273, 0.09443427622318268, 0.09374520927667618, 0.032133810222148895, -0.230070099234581, -0.050620000809431076, -0.14983443915843964, -0.0708288624882698, 0.2908143103122711, 0.07192090153694153, 0.09371758997440338, -0.055184099823236465, 0.08097349107265472, -0.10364530980587006, -0.09909569472074509, -0.06416866928339005, 0.13755068182945251, -0.17860791087150574, -0.03041144274175167, -0.226243793964386, -0.23119007050991058, 0.15034432709217072, 0.07511461526155472, 0.11924833804368973, -0.052931953221559525, -0.134863018989563, -0.01391507126390934, -0.04252130910754204, 0.019379498437047005, -0.18619363009929657, -0.19369228184223175, -0.15544763207435608, 0.1410035490989685, -0.20352792739868164, 0.0247236005961895, 0.10366179049015045, 0.055664461106061935, 0.10931317508220673, 0.00925410445779562, 0.03330304101109505, 0.21706214547157288, 0.05229559913277626, 0.09961257129907608, 0.022183317691087723, -0.005648598074913025, 0.09112145751714706, 0.07047617435455322, -0.006222454831004143, -0.16834646463394165, -0.1779114305973053, 0.008176198229193687, -0.06438382714986801, 0.08928041905164719, -0.05168667435646057, -0.05295152962207794, 0.041289448738098145, 0.22504033148288727, 0.10039905458688736, 0.024727528914809227, 0.013507593423128128, 0.11615699529647827, 0.013032740913331509, 0.157986119389534, 0.2051733285188675, -0.047878190875053406, 0.14191754162311554, -0.09616199135780334, 0.01986880414187908, 0.10609850287437439, 0.05399717018008232, -0.020896393805742264, -0.13351833820343018, 0.012293893843889236, -0.03462708368897438, 0.008771511726081371, -0.20049183070659637, 0.15144285559654236, 0.12968090176582336, -0.00879224669188261, -0.062251146882772446, -0.033040598034858704, -0.243441641330719, 0.04028138518333435, 0.11297726631164551, 0.09004773199558258, -0.028785942122340202, 0.06189839541912079, -0.11488465964794159, -0.1356407105922699, 0.04438600689172745, -0.1211501955986023, 0.09179753065109253, -0.027690302580595016, -0.02918999269604683, -0.05100497603416443, 0.04381372779607773, -0.000619096215814352, 0.0019798700232058764, 0.18095409870147705, -0.20093590021133423, 0.03916454315185547, -0.03731479123234749, 0.23223960399627686, -0.08890576660633087, -0.07444983720779419, -0.06388336420059204, 0.006568310782313347, -0.24405458569526672, -0.03636113926768303, 0.08061780780553818, -0.02067839354276657, -0.01453191414475441, 0.05930480360984802, 0.16643396019935608, 0.021709611639380455, -0.05325210839509964, -0.07327398657798767, 0.09582984447479248, 0.10204961895942688, 0.07064656913280487, -0.022982534021139145, -2.420592367019052e-32, -0.09491760283708572, 0.13889029622077942, 0.012329647317528725, 0.01281935628503561, -0.09208241105079651, -0.017357468605041504, -0.05636007338762283, -0.13660979270935059, -0.09465006738901138, -0.10503653436899185, 0.03494371846318245, 0.13874167203903198, 0.08681080490350723, 0.04711233451962471, -0.015175409615039825, -0.04596157744526863, 0.06440377980470657, 0.14068256318569183, -0.1585916429758072, 0.011630003340542316, 0.08783818781375885, 0.009584960527718067, 0.15381260216236115, 0.1315951645374298, -0.043047238141298294, 0.006546135991811752, -0.08361618965864182, 0.14114509522914886, 0.010743247345089912, 0.059873614460229874, -0.05737476423382759, 0.06363841891288757, -0.005310731939971447, 0.10528546571731567, 0.09967360645532608, 0.010739782825112343, -0.07507089525461197, -0.09111642837524414, -0.02852751687169075, 0.18396542966365814, 0.09631302952766418, 0.015378421172499657, -0.006896534468978643, -0.19231070578098297, -0.18539761006832123, 0.18836142122745514, -0.04933074116706848, -0.12101919949054718, -0.11283062398433685, -0.07028210908174515, 0.030365299433469772, 0.19361886382102966, 0.02280736155807972, 0.12164085358381271, 0.1514926552772522, 0.047213055193424225, 0.035853590816259384, 0.06136403977870941, -0.13829496502876282, -0.056025534868240356, -0.0021433974616229534, 0.10214459896087646, 0.036827005445957184, 0.12499599158763885, -0.10130095481872559, -0.1012398824095726, 0.13589784502983093, -0.031848497688770294, 0.2684749960899353, 0.057485271245241165, 0.21112075448036194, -0.15405111014842987, 0.009085102006793022, 0.07112976163625717, -0.20935653150081635, 0.015041240490972996, 0.12758567929267883, 0.009629113599658012, -0.01116010919213295, 0.01243128627538681, 0.0658930093050003, 0.03582686930894852, -0.18637996912002563, -0.1356523185968399, -0.04804356023669243, 0.051394104957580566, -0.06362446397542953, -0.0026564409490674734, 0.16159343719482422, -0.09759790450334549, -0.07768130302429199, 0.23861995339393616, 0.056574441492557526, -0.06329891830682755, -0.06458447128534317, 0.1675800085067749, -0.008236398920416832, 0.16988608241081238, 0.013638448901474476, 0.12205235660076141, -0.003778520505875349, -0.049486905336380005, -0.026965826749801636, -0.17165635526180267, 0.012853957712650299, -0.0412353090941906, 0.13374152779579163, 0.13607428967952728, -0.17519256472587585, -0.022385267540812492, -0.03532757982611656, 0.04205664247274399, 0.1750081479549408, -0.032384827733039856, -0.004934665746986866, -0.0490855872631073, 0.021001070737838745, -0.12126076221466064, 0.15741461515426636, 0.05726771801710129, -0.1510973572731018, -0.0865446925163269, -0.1752900779247284, -0.005908049177378416, 0.07749562710523605, 0.11903714388608932, -0.06270601600408554, 0.13968734443187714, -0.02727384865283966, -0.2663782238960266, -0.0634193941950798, 0.0242365300655365, 7.415331992888241e-7, -0.09463382512331009, -0.02385527640581131, -0.16408494114875793, -0.05629630386829376, 0.036490682512521744, -0.1028466671705246, -0.13819393515586853, -0.055080853402614594, -0.07486049085855484, 0.31316322088241577, -0.0689619854092598, -0.03386363759636879, 0.1725149154663086, -0.11562398821115494, 0.16869810223579407, -0.03538763150572777, -0.02799747884273529, -0.08978589624166489, -0.307146281003952, 0.13914671540260315, 0.03256431594491005, 0.40246981382369995, -0.0016885995864868164, 0.018776319921016693, 0.03703318536281586, -0.050864458084106445, -0.03279579430818558, -0.05516324192285538, 0.13103270530700684, 0.02844163402915001, -0.09392838180065155, -0.10476463288068771, -0.008318980224430561, -0.026519622653722763, -0.10313209146261215, -0.10316059738397598, 0.08246521651744843, -0.025234106928110123, 0.0720876008272171, 0.24635407328605652, -0.039890192449092865, 0.006521570961922407, -0.08526715636253357, -0.21653328835964203, 0.13939793407917023, 0.22928299009799957, -0.0008592863450758159, 0.31425705552101135, -0.17356149852275848, -0.09411775320768356, -0.08222443610429764, 0.003254843410104513, -0.08984365314245224, 0.2130313515663147, 0.0887051522731781, -0.0471126027405262, 0.028867073357105255, 0.04896877706050873, 0.08806975185871124, -0.16319581866264343, 0.014685327187180519, -0.15361104905605316, -0.04819362983107567, 0.06902943551540375, 0.06101970002055168, -0.04649908095598221, 0.07114434242248535, 1.8294784518092334e-34, 0.08314884454011917, 0.056411147117614746, 0.10740732401609421, -0.12232281267642975, 0.052568577229976654, -0.07172228395938873, 0.12186986953020096, 0.18631257116794586, -0.011824427172541618, -0.025721680372953415, -0.07785745710134506 ]
https://github.com/huggingface/datasets/issues/2681
5 duplicate datasets
Yes this was documented in the PR that added this hf->paperswithcode mapping (https://github.com/huggingface/datasets/pull/2404) and AFAICT those are slightly distinct datasets so I think it's a wontfix For context on the paperswithcode mapping you can also refer to https://github.com/huggingface/huggingface_hub/pull/43 which contains a lot of background discussion
## Describe the bug In 5 cases, I could find a dataset on Paperswithcode which references two Hugging Face datasets as dataset loaders. They are: - https://paperswithcode.com/dataset/multinli -> https://huggingface.co/datasets/multi_nli and https://huggingface.co/datasets/multi_nli_mismatch <img width="838" alt="Capture d’écran 2021-07-20 à 16 33 58" src="https://user-images.githubusercontent.com/1676121/126342757-4625522a-f788-41a3-bd1f-2a8b9817bbf5.png"> - https://paperswithcode.com/dataset/squad -> https://huggingface.co/datasets/squad and https://huggingface.co/datasets/squad_v2 - https://paperswithcode.com/dataset/narrativeqa -> https://huggingface.co/datasets/narrativeqa and https://huggingface.co/datasets/narrativeqa_manual - https://paperswithcode.com/dataset/hate-speech-and-offensive-language -> https://huggingface.co/datasets/hate_offensive and https://huggingface.co/datasets/hate_speech_offensive - https://paperswithcode.com/dataset/newsph-nli -> https://huggingface.co/datasets/newsph and https://huggingface.co/datasets/newsph_nli Possible solutions: - don't fix (it works) - for each pair of duplicate datasets, remove one, and create an alias to the other. ## Steps to reproduce the bug Visit the Paperswithcode links, and look at the "Dataset Loaders" section ## Expected results There should only be one reference to a Hugging Face dataset loader ## Actual results Two Hugging Face dataset loaders
45
5 duplicate datasets ## Describe the bug In 5 cases, I could find a dataset on Paperswithcode which references two Hugging Face datasets as dataset loaders. They are: - https://paperswithcode.com/dataset/multinli -> https://huggingface.co/datasets/multi_nli and https://huggingface.co/datasets/multi_nli_mismatch <img width="838" alt="Capture d’écran 2021-07-20 à 16 33 58" src="https://user-images.githubusercontent.com/1676121/126342757-4625522a-f788-41a3-bd1f-2a8b9817bbf5.png"> - https://paperswithcode.com/dataset/squad -> https://huggingface.co/datasets/squad and https://huggingface.co/datasets/squad_v2 - https://paperswithcode.com/dataset/narrativeqa -> https://huggingface.co/datasets/narrativeqa and https://huggingface.co/datasets/narrativeqa_manual - https://paperswithcode.com/dataset/hate-speech-and-offensive-language -> https://huggingface.co/datasets/hate_offensive and https://huggingface.co/datasets/hate_speech_offensive - https://paperswithcode.com/dataset/newsph-nli -> https://huggingface.co/datasets/newsph and https://huggingface.co/datasets/newsph_nli Possible solutions: - don't fix (it works) - for each pair of duplicate datasets, remove one, and create an alias to the other. ## Steps to reproduce the bug Visit the Paperswithcode links, and look at the "Dataset Loaders" section ## Expected results There should only be one reference to a Hugging Face dataset loader ## Actual results Two Hugging Face dataset loaders Yes this was documented in the PR that added this hf->paperswithcode mapping (https://github.com/huggingface/datasets/pull/2404) and AFAICT those are slightly distinct datasets so I think it's a wontfix For context on the paperswithcode mapping you can also refer to https://github.com/huggingface/huggingface_hub/pull/43 which contains a lot of background discussion
[ 0.19385282695293427, 0.05847446620464325, -0.061495590955019, 0.15688619017601013, 0.13913270831108093, 0.18421174585819244, 0.1417444795370102, 0.08217431604862213, 0.054063595831394196, 0.2453949749469757, -0.12381066381931305, -0.042197760194540024, 0.09682619571685791, -0.05723971500992775, 0.05689772218465805, -0.004113372880965471, -0.02194877713918686, 0.00035121795372106135, -0.18425782024860382, -0.10981438308954239, -0.07266172021627426, 0.04073736444115639, 0.214257150888443, -0.08356185257434845, -0.12671226263046265, 0.004931401927024126, -0.020718347281217575, 0.13938914239406586, 0.03923371434211731, -0.19970372319221497, 0.2237882912158966, 0.09542890638113022, -0.06188095360994339, 0.16774317622184753, 0.00000580158484808635, 0.10404001176357269, 0.03682256117463112, -0.029419198632240295, -0.019470693543553352, -0.0747787356376648, 0.08884670585393906, -0.0884445384144783, 0.0752086341381073, -0.01358569972217083, 0.039665281772613525, -0.1850210428237915, -0.01158969383686781, -0.025686487555503845, 0.12123724073171616, 0.018770800903439522, 0.038533035665750504, 0.05994151160120964, -0.007915443740785122, -0.12075968086719513, 0.1955513060092926, 0.05601334944367409, 0.11792182922363281, 0.11590330302715302, -0.029746683314442635, -0.08920466154813766, -0.029551735147833824, 0.09432650357484818, 0.027684727683663368, 0.05536959320306778, -0.14509184658527374, 0.07917255908250809, -0.12227661162614822, -0.10544101893901825, 0.009781595319509506, 0.3125549554824829, -0.11189641803503036, 0.026594294235110283, 0.045270245522260666, -0.016543690115213394, -0.09243453294038773, -0.0030155545100569725, 0.014707675203680992, 0.06189185380935669, -0.11909989267587662, -0.004069531336426735, -0.20511148869991302, 0.1399964988231659, -0.01927359402179718, -0.07059939205646515, -0.09915671497583389, -0.10672804713249207, -0.12709864974021912, 0.09295293688774109, 0.04746539518237114, -0.06517460197210312, 0.052117470651865005, -0.10284686088562012, -0.1243031844496727, -0.03558316454291344, -0.0031525527592748404, 0.07234512269496918, -0.14159242808818817, -0.13030637800693512, 0.1150628924369812, -0.012521917000412941, 0.00011509990144986659, -0.04920487850904465, -0.19870369136333466, 0.024779880419373512, 0.023591456934809685, 0.04445136338472366, -0.020419538021087646, -0.11631397902965546, 0.07055433839559555, -0.0009459362481720746, 0.017196577042341232, 0.12183906137943268, -0.039496175944805145, 0.012319406494498253, 0.07025153934955597, 0.03498603776097298, 0.018709223717451096, 0.04433198273181915, 0.02026977948844433, 0.09570755809545517, 0.06549856811761856, 0.027478620409965515, -0.0948190838098526, 0.08774001896381378, 0.15374770760536194, -0.03247419744729996, 0.0409964919090271, 0.05130010098218918, -0.1842605620622635, -0.17730075120925903, -0.03608188033103943, 0.019979014992713928, 0.03805474936962128, 0.006101168226450682, 0.006188985891640186, -0.17179715633392334, 0.025835735723376274, 0.0647875964641571, -0.09891431778669357, 0.027275750413537025, 0.030543308705091476, -0.07147783786058426, -0.17408707737922668, -0.02956506237387657, 0.0438704788684845, -0.012122455053031445, 0.04436764121055603, -0.04738045111298561, -0.010877558030188084, -0.005918977316468954, -0.17002438008785248, 0.22639654576778412, -0.23666535317897797, 0.13879269361495972, 0.07273612916469574, 0.07785417139530182, -0.06920772790908813, 0.06321541219949722, -0.26458343863487244, -0.12658609449863434, 0.03316846117377281, 0.03839428722858429, 0.09323233366012573, -0.01711784116923809, -0.014782062731683254, 0.17128461599349976, 0.08896095305681229, -0.00702784676104784, 0.0495455376803875, -0.09279132634401321, 0.0566805824637413, -0.07177604734897614, -0.15624839067459106, -0.09467436373233795, -0.17510201036930084, 0.040467988699674606, -0.024351540952920914, -0.052449461072683334, -0.00031877492438070476, -0.05242919921875, 0.05139872804284096, 0.10775650292634964, -0.1749761402606964, -0.09032876789569855, 0.002452994929626584, -0.0327034629881382, -0.14001084864139557, -0.020938340574502945, -0.0783982202410698, -0.05151483416557312, -0.0563206672668457, -0.015623645856976509, -0.03463296592235565, -0.01695976033806801, -0.10817098617553711, -0.004880924709141254, 0.08751405775547028, -0.1447531133890152, -0.0033896525856107473, -0.16251809895038605, 0.01777220144867897, -0.03732166811823845, -0.005989395081996918, 0.09206370264291763, -0.11467117816209793, -0.014389723539352417, -0.316119909286499, 0.2704533040523529, 0.09773647785186768, -0.07479403167963028, -0.1737508624792099, 0.028863046318292618, -0.023306118324398994, 0.006193120963871479, -0.2520330250263214, 0.0008488394669257104, -0.13127869367599487, 0.05562011897563934, -0.08387723565101624, 0.1348397135734558, -0.04049386456608772, 0.20961707830429077, -0.020500581711530685, 0.0633401945233345, -0.14798422157764435, 0.15004591643810272, 0.09891337156295776, -0.03205364942550659, 0.13394750654697418, -0.08226171135902405, -0.054510630667209625, -0.05012434348464012, 0.08866671472787857, 0.10573595017194748, -0.09992732852697372, 0.0638590082526207, 0.08615300059318542, -0.1907990276813507, 0.13556735217571259, -0.10580048710107803, -0.04045247286558151, -0.0889483392238617, -0.0772772803902626, -0.00452618021517992, -0.039696332067251205, 0.117348812520504, -0.09867467731237411, 0.0760987401008606, 0.07672616094350815, -0.05531104654073715, 0.20170317590236664, 0.10053539276123047, 0.013161733746528625, -0.02498888038098812, -0.023182209581136703, 0.05877264216542244, 0.159546360373497, 0.20809751749038696, -0.0480143241584301, 0.12654279172420502, 0.11195103824138641, -0.019838858395814896, -0.11369260400533676, -0.11377422511577606, 0.04916967824101448, -0.030219724401831627, -0.11204156279563904, 0.12990884482860565, -0.06882542371749878, 0.1727951318025589, 0.02461467683315277, -0.006070590112358332, -0.0005985956522636116, -0.09581419080495834, -0.03738462179899216, -0.14414025843143463, -0.14901497960090637, 0.046492189168930054, -0.041364818811416626, 0.04207657277584076, -0.22428001463413239, -0.01366265770047903, 0.036553818732500076, 0.005122780334204435, 0.11005745828151703, -0.02646772563457489, -0.0696336030960083, -0.10707183182239532, -0.2273108810186386, 0.09620539844036102, -0.055626239627599716, -0.026947690173983574, -0.05077095329761505, -0.15612733364105225, -0.0191353727132082, 0.08059180527925491, 0.011752870865166187, 0.06290451437234879, -0.06211279705166817, 0.18172284960746765, -0.021134795621037483, 0.1177697703242302, -0.0574580654501915, 0.03341715782880783, 0.10517340898513794, 0.04250996559858322, 0.08190970122814178, 0.018801601603627205, -0.16667549312114716, -0.19643521308898926, 0.06337039917707443, -0.022439584136009216, 0.03309233486652374, 0.11984279006719589, 0.1129627674818039, 0.01770479790866375, 0.043908704072237015, -0.3602229356765747, 0.006120953243225813, 0.06742589920759201, -0.023054735735058784, 0.04711140692234039, -0.11548146605491638, -0.026440154761075974, -0.008896363899111748, 0.004751437809318304, -0.041982002556324005, -0.021473975852131844, -0.06208519637584686, -0.08383633196353912, -0.026759201660752296, 0.08969742804765701, -0.056474775075912476, -0.0942365974187851, 0.06660988926887512, -0.03339933976531029, -0.07658469676971436, -0.09267223626375198, 0.18230852484703064, 0.039623335003852844, 0.012926886789500713, -0.020934758707880974, -0.08171699941158295, -0.02731151692569256, 0.15251795947551727, -0.3041335642337799, -0.06888263672590256, -0.060918521136045456, 0.002326859161257744, -0.07107682526111603, 0.09428137540817261, 0.0007605950813740492, -0.019933653995394707, -0.1087021753191948, -0.005946348886936903, 0.015488271601498127, 0.0027190581895411015, 0.03269236162304878, -0.038046397268772125, 0.039488110691308975, -0.03653085604310036, 0.000604551169089973, 0.11107387393712997, 0.18869322538375854, -0.09646877646446228, 0.18664191663265228, 0.04901919886469841, 0.051666755229234695, 0.01281586941331625, -0.12181887775659561, -0.013179493136703968, 0.04893708974123001, 0.10651901364326477, 0.13512901961803436, -0.010320127010345459, 0.012995539233088493, 0.07298249006271362, -0.0018662898801267147, -0.02945541962981224, -0.09029239416122437, -0.07642205059528351, -0.20638993382453918, -0.028615260496735573, 0.006464551668614149, -0.020149720832705498, 0.03217419609427452, -0.06597970426082611, 0.025126945227384567, -0.2141786515712738, 0.1429004967212677, 0.07430201768875122, -0.0765889585018158, -0.04768704995512962, 0.055164042860269547, -0.013229279778897762, 0.00013754246174357831, 0.0654883086681366, 0.1277264654636383, 0.09093059599399567, -0.048840079456567764, -0.018437854945659637, 0.24135906994342804, 0.016018101945519447, 0.10657276958227158, -0.002128459280356765, 0.0011169167701154947, -0.116965152323246, 0.030154014006257057, 0.05028841644525528, 0.04521355405449867, 0.10797858983278275, 0.0254255011677742, 0.02456926554441452, -0.04007012024521828, 0.23906667530536652, 0.03610503301024437, -0.06221635639667511, -0.11502204090356827, 0.009927964769303799, -0.09691259264945984, -0.03154292702674866, -0.21006016433238983, 0.011344716884195805, 0.0827232077717781, 0.02444775402545929, -0.05047280713915825, 0.03164853900671005, -0.06837967783212662, 0.14005343616008759, 0.09085003286600113, 0.12367686629295349, 0.16201896965503693, 0.17605262994766235, 0.18094800412654877, 0.14398135244846344, 0.011240669526159763, 0.40123870968818665, -0.22948342561721802, -0.17218518257141113, -0.031837109476327896, -0.048291873186826706, -0.06129913032054901, 0.12186265736818314, 0.03463829308748245, 0.136672705411911, 0.000824922404717654, -0.08593746274709702, 0.08297230303287506, 0.044135432690382004, -0.0005388158024288714, -0.1436423659324646, -0.06281538307666779, -0.009151378646492958, -0.09394749999046326, 0.08555420488119125, -0.013525601476430893, 0.09376290440559387, -0.11508694291114807, 0.0038178437389433384, -0.06863002479076385, -0.12422333657741547, -0.04230121523141861, -0.03276616707444191, 0.07222412526607513, -0.1715889573097229, -0.10788094252347946, 0.2732406556606293, 0.04591973125934601, -0.06475399434566498, -0.0030460930429399014, -0.1254630982875824, 0.08386377990245819, 0.10791979730129242, -0.0684543326497078, 0.1413792222738266, 0.2121768742799759, -0.05729452893137932, -0.04527955874800682, -0.002281303284689784, -0.015903368592262268, 0.19583331048488617, -0.00610461225733161, -0.037360940128564835, -0.09592495113611221, -0.04175239056348801, 0.029304835945367813, 0.022730287164449692, -0.021805154159665108, -0.0997222438454628, 0.0779755488038063, 0.04347185790538788, 0.033282145857810974, -0.014875570312142372, -0.10324221104383469, 0.051699601113796234, 0.03434402868151665, 0.02253364399075508, 0.029822582378983498, 0.09249449521303177, 0.16073498129844666, -0.06238742917776108, 0.011246386915445328, 0.10165810585021973, 0.12423932552337646, 0.0863630399107933, -0.15895865857601166, -0.017462726682424545, -0.11166558414697647, 0.11619673669338226, 0.010509556159377098, -0.03592705354094505, 0.09413117915391922, -0.1131325513124466, -0.18351803719997406, 0.03433326259255409, -0.16467978060245514, -0.04774457961320877, 0.2109517902135849, 0.026309698820114136, 0.15778625011444092, 0.035943612456321716, -0.0033598507288843393, 0.007892828434705734, -0.039708852767944336, -0.011125093325972557, 0.04871770739555359, -0.05405901372432709, -0.041409194469451904, 0.0885496437549591, 0.0821484625339508, -0.09061859548091888, 0.12205840647220612, 0.15873120725154877, -0.10516942292451859, 0.024821627885103226, 0.06018788367509842, 0.2454671859741211, -0.23853424191474915, 0.09855424612760544, -0.16862249374389648, 0.08676046133041382, -0.19287633895874023, 0.08490677922964096, 0.06372126191854477, 0.09232192486524582, 0.18455751240253448, 0.0839977040886879, 0.001224258216097951, -0.09406307339668274, -0.13017961382865906, 0.16533656418323517, 0.16440559923648834, 0.14143632352352142, -0.14379224181175232, 0.05500118434429169, -2.8415028047123393e-32, 0.0679754838347435, 0.017127281054854393, -0.06559031456708908, -0.08911725878715515, -0.1147475391626358, 0.07824350893497467, -0.07869835942983627, -0.08276073634624481, -0.042140793055295944, -0.11430440098047256, 0.0060369535349309444, -0.04134673252701759, 0.07504680752754211, -0.08556840568780899, 0.024483995512127876, 0.02697107009589672, -0.015973959118127823, 0.09817895293235779, -0.0454380065202713, 0.13348229229450226, 0.026764346286654472, 0.08355347067117691, -0.014492747373878956, -0.1437930315732956, -0.06666654348373413, 0.08524997532367706, -0.049062397330999374, 0.007775475736707449, 0.11751622706651688, 0.06925874948501587, -0.05170835554599762, -0.015603719279170036, -0.01441337913274765, 0.06837880611419678, -0.11781930923461914, -0.050460949540138245, -0.13747236132621765, -0.3060236871242523, -0.12578533589839935, 0.02551880292594433, 0.1878342479467392, 0.11365702003240585, 0.1860150694847107, -0.21737971901893616, -0.07087840139865875, -0.04348389059305191, 0.06930524855852127, 0.03132046014070511, -0.09956403821706772, -0.06227196007966995, 0.01080723013728857, -0.014589017257094383, 0.09932617098093033, 0.1286657154560089, -0.03841734677553177, -0.07204224914312363, -0.10303720831871033, 0.2952460050582886, -0.14048835635185242, 0.11479396373033524, -0.013099119998514652, -0.09361642599105835, -0.033761054277420044, -0.12505759298801422, 0.18918465077877045, 0.008704323321580887, 0.18715429306030273, -0.11505138874053955, 0.10350541025400162, -0.0981472060084343, 0.10395915806293488, 0.10835609585046768, -0.009508810937404633, 0.10412681102752686, -0.043059997260570526, -0.1265632063150406, -0.06421247869729996, 0.1604597121477127, -0.04141839221119881, -0.052463263273239136, -0.10889184474945068, -0.017224116250872612, -0.01330513320863247, 0.03118613362312317, -0.006271749269217253, -0.005782497115433216, -0.04274165630340576, -0.08223778754472733, 0.03085116110742092, -0.09454794973134995, -0.012781987898051739, 0.10967864841222763, -0.08657718449831009, -0.16595791280269623, -0.26275596022605896, 0.08616892993450165, 0.10218405723571777, 0.17551612854003906, -0.039149630814790726, -0.0038182151038199663, 0.1837056279182434, -0.09645947068929672, 0.12838596105575562, 0.10034183412790298, 0.08010634034872055, 0.017972778528928757, 0.12273535132408142, 0.036481790244579315, -0.19374176859855652, 0.03935227915644646, 0.01858966425061226, -0.09522687643766403, 0.09440017491579056, 0.03039882704615593, 0.07348661869764328, -0.029797857627272606, -0.012756669893860817, -0.1433604210615158, 0.13941363990306854, 0.13593855500221252, -0.1258687525987625, -0.017715955153107643, -0.21253535151481628, 0.15042445063591003, -0.11398030072450638, 0.09752500057220459, -0.14832986891269684, -0.07774815708398819, 0.11727208644151688, -0.07047880440950394, 0.001358377281576395, -0.05259695276618004, 7.784681201883359e-7, -0.17077143490314484, 0.016204968094825745, -0.018703920766711235, -0.10253254324197769, 0.024474233388900757, 0.010073384270071983, -0.23189117014408112, 0.057094305753707886, -0.11857836693525314, 0.1996133029460907, 0.08486437052488327, -0.010994588024914265, 0.061858318746089935, -0.1187262162566185, 0.11068179458379745, 0.0628785640001297, -0.13897229731082916, -0.1300068497657776, -0.1611357182264328, 0.03544700890779495, -0.032111458480358124, 0.06375034153461456, -0.021906662732362747, -0.06921672075986862, 0.053757671266794205, -0.06859885156154633, -0.16149014234542847, -0.10773533582687378, 0.10032771527767181, 0.08368584513664246, -0.08222293853759766, -0.07851454615592957, 0.05088425055146217, 0.03329920768737793, 0.012524878606200218, -0.05971374362707138, -0.09661220014095306, -0.11527592688798904, -0.009878491051495075, 0.08176810294389725, 0.13825508952140808, -0.00309735257178545, -0.036078136414289474, -0.22729286551475525, 0.07866829633712769, 0.06349147111177444, -0.08054901659488678, 0.11942920088768005, -0.11697305738925934, -0.004087900742888451, 0.14025971293449402, 0.009022173471748829, 0.02447245456278324, 0.31258127093315125, 0.0032150261104106903, -0.06330031156539917, 0.08239051699638367, -0.07575219869613647, 0.1419866532087326, -0.12066265195608139, -0.054186854511499405, -0.059862200170755386, 0.02520732395350933, 0.10360810160636902, 0.15178516507148743, -0.10969994217157364, -0.012285605072975159, 1.3953340645338736e-34, -0.03703872859477997, -0.0856194719672203, 0.152775377035141, -0.12461917102336884, 0.03502865508198738, 0.005872673355042934, -0.06080704182386398, 0.1952008455991745, -0.045412156730890274, -0.09233999997377396, -0.048444557934999466 ]
https://github.com/huggingface/datasets/issues/2679
Cannot load the blog_authorship_corpus due to codec errors
Hi @izaskr, thanks for reporting. However the traceback you joined does not correspond to the codec error message: it is about other error `NonMatchingSplitsSizesError`. Maybe you missed some important part of your traceback... I'm going to have a look at the dataset anyway...
## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1
43
Cannot load the blog_authorship_corpus due to codec errors ## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1 Hi @izaskr, thanks for reporting. However the traceback you joined does not correspond to the codec error message: it is about other error `NonMatchingSplitsSizesError`. Maybe you missed some important part of your traceback... I'm going to have a look at the dataset anyway...
[ 0.13841091096401215, 0.33733829855918884, 0.016781240701675415, 0.042098864912986755, 0.28633031249046326, 0.16418834030628204, 0.03959185257554054, 0.1366090327501297, 0.01488359086215496, 0.14609014987945557, 0.025398220866918564, -0.128375843167305, -0.057274553924798965, -0.08997524529695511, -0.04832557216286659, 0.15451949834823608, -0.15097862482070923, -0.0264985803514719, 0.10523126274347305, -0.08744543045759201, -0.10890504717826843, 0.12111162394285202, 0.10199874639511108, -0.04111047089099884, 0.03588956594467163, -0.06050431728363037, 0.08764851093292236, 0.08950473368167877, 0.005562261678278446, -0.046244118362665176, 0.20262834429740906, 0.020253248512744904, -0.03190198168158531, 0.1488553136587143, 0.000005708334356313571, -0.005994733422994614, 0.0869620069861412, 0.16158755123615265, -0.06751934438943863, -0.13933564722537994, 0.09535951167345047, 0.012441689148545265, -0.10347332060337067, -0.025616977363824844, -0.06532017141580582, -0.17503108084201813, -0.044251762330532074, -0.08102808147668839, -0.05921420082449913, 0.1402166187763214, 0.04944983124732971, -0.12545447051525116, -0.014540595933794975, -0.13975852727890015, 0.04569241777062416, 0.0681195855140686, -0.014395823702216148, 0.1686014086008072, -0.0018687581177800894, -0.06319919973611832, -0.13076664507389069, -0.021302135661244392, -0.07275614142417908, 0.0368293821811676, -0.1725696474313736, -0.01764575019478798, 0.027498070150613785, -0.024228611961007118, 0.1265881061553955, 0.16481682658195496, 0.15538765490055084, 0.1936180293560028, -0.12650012969970703, 0.090857595205307, 0.06061193719506264, 0.0386851467192173, 0.06975281238555908, 0.0727534070611, -0.3221507966518402, 0.12259668111801147, -0.013020236976444721, -0.053052108734846115, 0.004074151627719402, 0.08656412363052368, -0.045480940490961075, 0.08546098321676254, -0.20920738577842712, 0.05030450597405434, 0.034240592271089554, -0.0629681721329689, 0.1928909569978714, 0.05869218334555626, 0.050271302461624146, -0.16146054863929749, 0.26323288679122925, 0.14518332481384277, 0.0071240938268601894, -0.05517684668302536, -0.11495386064052582, -0.07018592953681946, -0.0559716671705246, -0.08260509371757507, -0.004319105762988329, 0.10168730467557907, 0.0658862516283989, 0.01037660613656044, 0.04611409083008766, 0.04630780592560768, 0.15750260651111603, 0.029716210439801216, -0.07398941367864609, 0.06138193607330322, -0.23387500643730164, -0.1219034343957901, 0.13449570536613464, 0.045592062175273895, 0.1248435527086258, -0.03223393112421036, 0.07952961325645447, 0.11838522553443909, 0.007613474037498236, 0.10975850373506546, 0.03767826408147812, 0.14516296982765198, 0.07109108567237854, 0.0010616231011226773, -0.015280982479453087, 0.12385819107294083, -0.09849130362272263, 0.021300218999385834, -0.02357952669262886, -0.049752093851566315, -0.01127384789288044, -0.009341361932456493, 0.17268097400665283, -0.18161100149154663, 0.006748238578438759, -0.11712157726287842, 0.10458101332187653, 0.08744575828313828, -0.055759381502866745, -0.15078315138816833, -0.14955030381679535, 0.11820656806230545, 0.10868185013532639, 0.08181774616241455, 0.1428329199552536, -0.07537546008825302, -0.010304750874638557, -0.13926656544208527, -0.3205578029155731, 0.214087575674057, -0.15167945623397827, 0.012589797377586365, -0.09657038748264313, -0.004538885783404112, 0.06177191436290741, -0.05510307103395462, -0.11438053101301193, -0.18992666900157928, 0.030984606593847275, 0.10543149709701538, 0.048919111490249634, -0.035888925194740295, 0.05987473204731941, 0.07512148469686508, 0.19137950241565704, -0.05234541743993759, -0.02832268737256527, 0.0017486772267147899, 0.08257875591516495, -0.02273542806506157, -0.12881888449192047, -0.08720040321350098, -0.22032570838928223, 0.08343503624200821, -0.1105823665857315, -0.07140707224607468, -0.13880252838134766, 0.011766459792852402, 0.25178444385528564, -0.06798848509788513, -0.012122469022870064, -0.16994385421276093, 0.16459354758262634, -0.0365896113216877, -0.017407450824975967, 0.138478085398674, 0.029318515211343765, -0.030406437814235687, -0.00698644807562232, 0.014290728606283665, 0.10455019026994705, -0.005201289895921946, 0.15703758597373962, -0.0778198316693306, 0.030643554404377937, -0.10101741552352905, -0.005426341202110052, -0.2228764444589615, 0.05849551409482956, 0.012871178798377514, -0.0461767241358757, 0.11307771503925323, 0.09885544329881668, -0.0229913629591465, 0.02190886251628399, 0.10590534657239914, -0.047422558069229126, -0.08238299190998077, -0.2888904809951782, 0.041255444288253784, -0.0959378108382225, 0.08200839906930923, -0.15804524719715118, 0.07571790367364883, 0.004948781803250313, 0.11309900134801865, -0.0693565234541893, 0.1999121457338333, -0.07285195589065552, 0.12846443057060242, 0.008692082017660141, -0.0021531113889068365, -0.11119622737169266, 0.05376124382019043, 0.025945467874407768, -0.06863908469676971, 0.04658842459321022, 0.25521281361579895, -0.26347410678863525, -0.07531208544969559, 0.010177266784012318, 0.00504396203905344, -0.015825994312763214, 0.10361195355653763, 0.0004535530460998416, -0.2514285743236542, 0.04213830083608627, -0.11289621889591217, -0.07512617856264114, 0.15574371814727783, 0.12338106334209442, -0.00944842305034399, 0.05173870548605919, -0.13767920434474945, -0.08657042682170868, 0.12126591056585312, 0.06466660648584366, -0.04067203029990196, 0.28863102197647095, 0.0671687051653862, -0.16619500517845154, 0.00012050053192069754, 0.16266119480133057, -0.018538277596235275, -0.07426013052463531, -0.01041790284216404, -0.03247428312897682, -0.17272810637950897, 0.2646961212158203, -0.013279822655022144, 0.015949005261063576, 0.007530433125793934, 0.10438297688961029, -0.004812644328922033, -0.13566556572914124, -0.08651511371135712, -0.052182383835315704, -0.008443659171462059, 0.08798319101333618, -0.13822798430919647, -0.18839454650878906, -0.20578013360500336, 0.023036379367113113, -0.12951228022575378, -0.10153816640377045, -0.05987842008471489, -0.003681692061945796, -0.06406788527965546, -0.16450150310993195, 0.10688807815313339, 0.0614296980202198, -0.101294606924057, 0.06348899751901627, 0.11915399879217148, -0.10301052778959274, -0.016982227563858032, -0.04511361941695213, -0.0230091642588377, 0.016338776797056198, 0.09715698659420013, 0.015271699987351894, -0.17149604856967926, -0.07184326648712158, -0.04524122178554535, 0.031792040914297104, -0.16379185020923615, -0.015213597565889359, 0.1356380134820938, -0.05215422809123993, -0.012010470032691956, 0.006319420877844095, 0.03298354893922806, 0.040522992610931396, 0.0671294629573822, 0.10566672682762146, -0.01893634721636772, -0.13682939112186432, -0.0421246662735939, 0.08864349126815796, -0.1793162077665329, 0.060105983167886734, 0.0852067843079567, -0.1270441859960556, -0.015521908178925514, 0.2457887977361679, -0.15136577188968658, 0.13392312824726105, 0.0736512765288353, 0.06742703914642334, 0.24357087910175323, -0.030105693265795708, -0.048112429678440094, -0.09778223931789398, 0.031339164823293686, -0.2732000946998596, -0.1299973428249359, -0.1439957618713379, 0.111933134496212, -0.020886408165097237, 0.11357519030570984, -0.15643319487571716, -0.13301949203014374, -0.03182879090309143, -0.01574387215077877, -0.1723763346672058, -0.1424226313829422, 0.3259158134460449, -0.03300586715340614, -0.029457228258252144, -0.03829419985413551, -0.029818540439009666, 0.029167193919420242, 0.10629341006278992, -0.1078835055232048, 0.05935798957943916, -0.041043974459171295, -0.04920271039009094, -0.05429895594716072, -0.05270304158329964, 0.02074659988284111, -0.052964359521865845, -0.12725746631622314, 0.01912529021501541, 0.13643448054790497, -0.09930796176195145, 0.022341808304190636, -0.04882199689745903, -0.06000455468893051, -0.018119553104043007, -0.028552640229463577, -0.09518555551767349, 0.14415396749973297, -0.09877390414476395, 0.2206418365240097, 0.23567752540111542, 0.0611744187772274, 0.008205327205359936, -0.2014089822769165, 0.033661145716905594, -0.10249951481819153, -0.04257654398679733, 0.06009773537516594, 0.06264431774616241, 0.0031592785380780697, -0.1713462471961975, -0.20823048055171967, 0.011206733994185925, -0.006497038062661886, -0.06995958834886551, -0.18400394916534424, -0.01442168839275837, 0.035586509853601456, 0.24989470839500427, 0.07545486092567444, -0.07986731827259064, 0.03450000658631325, -0.0803404152393341, 0.06495597958564758, 0.041407596319913864, 0.00715069891884923, -0.0038593080826103687, -0.05122186243534088, 0.0004834537976421416, -0.2063387930393219, 0.1643018126487732, 0.09845466911792755, 0.12661543488502502, 0.020945006981492043, 0.11122067272663116, 0.04938043653964996, -0.0799216479063034, 0.04093805328011513, 0.06480559706687927, 0.11434170603752136, 0.10548605769872665, -0.005038829520344734, -0.04138857498764992, 0.06139620766043663, 0.008316024206578732, -0.0235727708786726, -0.014662998728454113, 0.0036784212570637465, 0.192312091588974, 0.029310906305909157, 0.007808466907590628, -0.06665561348199844, -0.12406941503286362, -0.23250466585159302, -0.10571844130754471, -0.28317511081695557, 0.06040624901652336, 0.14752589166164398, 0.014221963472664356, -0.08897840231657028, 0.18363331258296967, -0.09776104986667633, 0.09600480645895004, -0.10704556107521057, -0.023209163919091225, -0.06750373542308807, 0.09655534476041794, 0.08299145102500916, -0.027739034965634346, -0.094985231757164, 0.39924952387809753, 0.005159373860806227, -0.21980896592140198, 0.06252361088991165, -0.23270374536514282, -0.15536510944366455, -0.12275964766740799, -0.06259540468454361, 0.035081349313259125, 0.009267409332096577, -0.1263541877269745, -0.07926702499389648, -0.10686563700437546, -0.08322127908468246, -0.10868111252784729, -0.06821756809949875, -0.1410321444272995, -0.20997855067253113, 0.02577686496078968, 0.12285888195037842, 0.011426647193729877, -0.1788899153470993, -0.04196963459253311, 0.09142599999904633, -0.0375174954533577, -0.09069015830755234, -0.07527652382850647, -0.06686198711395264, -0.03983982652425766, -0.012847782112658024, 0.21378269791603088, -0.1803908348083496, 0.05488087236881256, 0.12839335203170776, -0.0010820177849382162, 0.02646266296505928, -0.021539699286222458, 0.12010426819324493, 0.11891036480665207, -0.03175657242536545, -0.0445735938847065, -0.032729338854551315, -0.2468392252922058, 0.02518138475716114, 0.0766366496682167, -0.13724038004875183, 0.04919569939374924, -0.06965260952711105, 0.03237740322947502, 0.02536480687558651, 0.053246259689331055, -0.03172053024172783, -0.05767516419291496, -0.03752861171960831, 0.2018546164035797, -0.13571694493293762, 0.0693499967455864, 0.0404960960149765, 0.08290284872055054, 0.005189645569771528, -0.00920618511736393, 0.15050162374973297, -0.020320886746048927, 0.08543376624584198, 0.08264385163784027, -0.06522172689437866, 0.06205892190337181, -0.03018294833600521, -0.049311209470033646, -0.19031326472759247, 0.08988378196954727, -0.03767732158303261, -0.0023978690151125193, -0.08338790386915207, 0.1497187316417694, 0.06669671833515167, -0.15259994566440582, -0.018921853974461555, 0.035827405750751495, -0.08765771985054016, -0.042644888162612915, 0.07551537454128265, -0.010352815501391888, 0.12368212640285492, 0.11239579319953918, -0.0047804079949855804, 0.02273123525083065, -0.04443249851465225, 0.07470011711120605, 0.1113482117652893, -0.07270484417676926, 0.12273517996072769, 0.1492253541946411, -0.028877701610326767, 0.08767963200807571, 0.1726549118757248, 0.28999143838882446, -0.023777034133672714, -0.037054307758808136, 0.10497036576271057, 0.043486904352903366, -0.2216208130121231, -0.0289791077375412, 0.018185891211032867, 0.05878406763076782, -0.18669193983078003, -0.030776996165513992, 0.08224109560251236, 0.0798482894897461, 0.163286492228508, -0.09950149059295654, 0.030618665739893913, -0.037804994732141495, -0.057989053428173065, -0.09765574336051941, 0.10363253951072693, 0.00720194261521101, 0.00012034927203785628, 0.06017930805683136, -2.4444406494717407e-32, -0.03952021151781082, -0.025851599872112274, -0.07844383269548416, 0.005738215520977974, -0.1450975239276886, 0.03440016880631447, -0.16191937029361725, -0.01722061075270176, -0.1002112403512001, -0.016420692205429077, -0.042705848813056946, 0.07922998070716858, -0.040247052907943726, 0.1018034890294075, -0.04338974133133888, 0.045325152575969696, -0.07937996834516525, -0.030974814668297768, 0.023650439456105232, 0.043273236602544785, 0.09697642177343369, 0.03815019875764847, -0.006384572479873896, -0.2258298397064209, 0.019356053322553635, -0.008036630228161812, -0.1300579160451889, -0.17952436208724976, 0.18784642219543457, 0.044402845203876495, 0.004403353668749332, 0.010247225873172283, 0.08448862284421921, -0.026477759703993797, -0.12699609994888306, -0.15363280475139618, -0.28332480788230896, 0.05978119745850563, -0.11609461903572083, 0.20957891643047333, 0.10426274687051773, 0.0031434798147529364, 0.12146930396556854, -0.21880938112735748, 0.0524887889623642, -0.0054108742624521255, 0.040422845631837845, -0.06713618338108063, -0.07310209423303604, -0.2548498511314392, 0.031640876084566116, 0.05926091596484184, -0.1083957850933075, 0.07085452973842621, 0.11772671341896057, -0.002238381188362837, -0.016974743455648422, 0.1356411725282669, -0.036709148436784744, -0.013930834829807281, 0.07383562624454498, -0.08786271512508392, -0.03443383425474167, -0.07631123065948486, 0.02377009019255638, -0.13061319291591644, 0.3350297808647156, -0.05833093076944351, -0.04050091281533241, -0.07106781750917435, 0.21005234122276306, 0.04353496804833412, -0.05200556293129921, -0.004864012356847525, -0.04252662509679794, -0.03547976166009903, -0.043717656284570694, 0.09208176285028458, -0.016148248687386513, -0.09776371717453003, 0.05082261189818382, 0.018593603745102882, -0.05527105927467346, -0.029941033571958542, -0.05102042853832245, -0.07152752578258514, -0.026139792054891586, -0.009794208221137524, -0.2198483794927597, -0.16644342243671417, 0.01732913963496685, -0.008319046348333359, -0.09553626924753189, -0.15396256744861603, -0.10492177307605743, 0.1330956369638443, -0.1283280849456787, 0.12123272567987442, -0.0931137204170227, 0.1665712147951126, -0.028404342010617256, -0.0287462305277586, 0.09749725461006165, 0.018972953781485558, 0.08465161919593811, 0.05322769656777382, 0.02544241026043892, 0.00928802415728569, -0.19077689945697784, -0.13052111864089966, 0.11317109316587448, 0.10148713737726212, 0.2155657857656479, 0.32637590169906616, 0.16009123623371124, 0.050513967871665955, 0.00903723482042551, -0.026641255244612694, 0.2027260810136795, 0.2241985946893692, -0.04259887710213661, -0.08784331381320953, -0.032894957810640335, 0.010294736362993717, -0.08060406893491745, 0.12195566296577454, -0.14818069338798523, -0.014292691834270954, 0.005102217197418213, 0.004539853427559137, 0.02828449383378029, -0.1457553654909134, 7.211041292976006e-7, -0.08446454256772995, 0.17013512551784515, 0.002699867822229862, -0.006074011325836182, 0.025149470195174217, -0.026596255600452423, -0.15827345848083496, 0.06223458796739578, -0.0965617224574089, 0.06818850338459015, 0.13208015263080597, 0.03962867707014084, 0.08274398744106293, 0.1391378939151764, 0.06972231715917587, -0.07894890755414963, 0.009246655739843845, -0.05107767879962921, -0.10793871432542801, 0.07536325603723526, 0.30192169547080994, 0.21022824943065643, 0.022346723824739456, -0.04573133587837219, 0.05077023431658745, -0.13013048470020294, -0.049595654010772705, 0.05282977595925331, 0.024640558287501335, -0.007972456514835358, -0.09217929095029831, 0.012443097308278084, -0.04916725307703018, 0.12233126908540726, 0.03773467242717743, -0.06802252680063248, -0.1980162113904953, -0.12971004843711853, 0.0955696552991867, 0.2332846075296402, 0.03606276586651802, 0.04921681433916092, -0.05687138810753822, 0.1459674835205078, 0.173985093832016, 0.1162707731127739, -0.15967422723770142, 0.06539894640445709, -0.017235683277249336, 0.06333374977111816, 0.12486985325813293, 0.07603371888399124, 0.07207351922988892, 0.13871034979820251, -0.13149167597293854, -0.1775720715522766, 0.008215188048779964, -0.16943924129009247, 0.23771221935749054, 0.032773565500974655, -0.06810776889324188, -0.11373603343963623, 0.09413520991802216, 0.001662396127358079, 0.1265808492898941, -0.25137948989868164, 0.050307560712099075, 4.4405515922636004e-35, 0.049416616559028625, -0.014534670859575272, 0.05435163527727127, -0.05306842923164368, -0.019673535600304604, -0.05728480964899063, 0.029534820467233658, 0.014871271327137947, 0.02289487235248089, -0.14823663234710693, -0.06478451192378998 ]
https://github.com/huggingface/datasets/issues/2679
Cannot load the blog_authorship_corpus due to codec errors
Hi @izaskr, thanks again for having reported this issue. After investigation, I have created a Pull Request (#2685) to fix several issues with this dataset: - the `NonMatchingSplitsSizesError` - the `UnicodeDecodeError` Once the Pull Request merged into master, you will be able to load this dataset if you install `datasets` from our GitHub repository master branch. Otherwise, you will be able to use it after our next release, by updating `datasets`: `pip install -U datasets`.
## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1
75
Cannot load the blog_authorship_corpus due to codec errors ## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1 Hi @izaskr, thanks again for having reported this issue. After investigation, I have created a Pull Request (#2685) to fix several issues with this dataset: - the `NonMatchingSplitsSizesError` - the `UnicodeDecodeError` Once the Pull Request merged into master, you will be able to load this dataset if you install `datasets` from our GitHub repository master branch. Otherwise, you will be able to use it after our next release, by updating `datasets`: `pip install -U datasets`.
[ 0.13841091096401215, 0.33733829855918884, 0.016781240701675415, 0.042098864912986755, 0.28633031249046326, 0.16418834030628204, 0.03959185257554054, 0.1366090327501297, 0.01488359086215496, 0.14609014987945557, 0.025398220866918564, -0.128375843167305, -0.057274553924798965, -0.08997524529695511, -0.04832557216286659, 0.15451949834823608, -0.15097862482070923, -0.0264985803514719, 0.10523126274347305, -0.08744543045759201, -0.10890504717826843, 0.12111162394285202, 0.10199874639511108, -0.04111047089099884, 0.03588956594467163, -0.06050431728363037, 0.08764851093292236, 0.08950473368167877, 0.005562261678278446, -0.046244118362665176, 0.20262834429740906, 0.020253248512744904, -0.03190198168158531, 0.1488553136587143, 0.000005708334356313571, -0.005994733422994614, 0.0869620069861412, 0.16158755123615265, -0.06751934438943863, -0.13933564722537994, 0.09535951167345047, 0.012441689148545265, -0.10347332060337067, -0.025616977363824844, -0.06532017141580582, -0.17503108084201813, -0.044251762330532074, -0.08102808147668839, -0.05921420082449913, 0.1402166187763214, 0.04944983124732971, -0.12545447051525116, -0.014540595933794975, -0.13975852727890015, 0.04569241777062416, 0.0681195855140686, -0.014395823702216148, 0.1686014086008072, -0.0018687581177800894, -0.06319919973611832, -0.13076664507389069, -0.021302135661244392, -0.07275614142417908, 0.0368293821811676, -0.1725696474313736, -0.01764575019478798, 0.027498070150613785, -0.024228611961007118, 0.1265881061553955, 0.16481682658195496, 0.15538765490055084, 0.1936180293560028, -0.12650012969970703, 0.090857595205307, 0.06061193719506264, 0.0386851467192173, 0.06975281238555908, 0.0727534070611, -0.3221507966518402, 0.12259668111801147, -0.013020236976444721, -0.053052108734846115, 0.004074151627719402, 0.08656412363052368, -0.045480940490961075, 0.08546098321676254, -0.20920738577842712, 0.05030450597405434, 0.034240592271089554, -0.0629681721329689, 0.1928909569978714, 0.05869218334555626, 0.050271302461624146, -0.16146054863929749, 0.26323288679122925, 0.14518332481384277, 0.0071240938268601894, -0.05517684668302536, -0.11495386064052582, -0.07018592953681946, -0.0559716671705246, -0.08260509371757507, -0.004319105762988329, 0.10168730467557907, 0.0658862516283989, 0.01037660613656044, 0.04611409083008766, 0.04630780592560768, 0.15750260651111603, 0.029716210439801216, -0.07398941367864609, 0.06138193607330322, -0.23387500643730164, -0.1219034343957901, 0.13449570536613464, 0.045592062175273895, 0.1248435527086258, -0.03223393112421036, 0.07952961325645447, 0.11838522553443909, 0.007613474037498236, 0.10975850373506546, 0.03767826408147812, 0.14516296982765198, 0.07109108567237854, 0.0010616231011226773, -0.015280982479453087, 0.12385819107294083, -0.09849130362272263, 0.021300218999385834, -0.02357952669262886, -0.049752093851566315, -0.01127384789288044, -0.009341361932456493, 0.17268097400665283, -0.18161100149154663, 0.006748238578438759, -0.11712157726287842, 0.10458101332187653, 0.08744575828313828, -0.055759381502866745, -0.15078315138816833, -0.14955030381679535, 0.11820656806230545, 0.10868185013532639, 0.08181774616241455, 0.1428329199552536, -0.07537546008825302, -0.010304750874638557, -0.13926656544208527, -0.3205578029155731, 0.214087575674057, -0.15167945623397827, 0.012589797377586365, -0.09657038748264313, -0.004538885783404112, 0.06177191436290741, -0.05510307103395462, -0.11438053101301193, -0.18992666900157928, 0.030984606593847275, 0.10543149709701538, 0.048919111490249634, -0.035888925194740295, 0.05987473204731941, 0.07512148469686508, 0.19137950241565704, -0.05234541743993759, -0.02832268737256527, 0.0017486772267147899, 0.08257875591516495, -0.02273542806506157, -0.12881888449192047, -0.08720040321350098, -0.22032570838928223, 0.08343503624200821, -0.1105823665857315, -0.07140707224607468, -0.13880252838134766, 0.011766459792852402, 0.25178444385528564, -0.06798848509788513, -0.012122469022870064, -0.16994385421276093, 0.16459354758262634, -0.0365896113216877, -0.017407450824975967, 0.138478085398674, 0.029318515211343765, -0.030406437814235687, -0.00698644807562232, 0.014290728606283665, 0.10455019026994705, -0.005201289895921946, 0.15703758597373962, -0.0778198316693306, 0.030643554404377937, -0.10101741552352905, -0.005426341202110052, -0.2228764444589615, 0.05849551409482956, 0.012871178798377514, -0.0461767241358757, 0.11307771503925323, 0.09885544329881668, -0.0229913629591465, 0.02190886251628399, 0.10590534657239914, -0.047422558069229126, -0.08238299190998077, -0.2888904809951782, 0.041255444288253784, -0.0959378108382225, 0.08200839906930923, -0.15804524719715118, 0.07571790367364883, 0.004948781803250313, 0.11309900134801865, -0.0693565234541893, 0.1999121457338333, -0.07285195589065552, 0.12846443057060242, 0.008692082017660141, -0.0021531113889068365, -0.11119622737169266, 0.05376124382019043, 0.025945467874407768, -0.06863908469676971, 0.04658842459321022, 0.25521281361579895, -0.26347410678863525, -0.07531208544969559, 0.010177266784012318, 0.00504396203905344, -0.015825994312763214, 0.10361195355653763, 0.0004535530460998416, -0.2514285743236542, 0.04213830083608627, -0.11289621889591217, -0.07512617856264114, 0.15574371814727783, 0.12338106334209442, -0.00944842305034399, 0.05173870548605919, -0.13767920434474945, -0.08657042682170868, 0.12126591056585312, 0.06466660648584366, -0.04067203029990196, 0.28863102197647095, 0.0671687051653862, -0.16619500517845154, 0.00012050053192069754, 0.16266119480133057, -0.018538277596235275, -0.07426013052463531, -0.01041790284216404, -0.03247428312897682, -0.17272810637950897, 0.2646961212158203, -0.013279822655022144, 0.015949005261063576, 0.007530433125793934, 0.10438297688961029, -0.004812644328922033, -0.13566556572914124, -0.08651511371135712, -0.052182383835315704, -0.008443659171462059, 0.08798319101333618, -0.13822798430919647, -0.18839454650878906, -0.20578013360500336, 0.023036379367113113, -0.12951228022575378, -0.10153816640377045, -0.05987842008471489, -0.003681692061945796, -0.06406788527965546, -0.16450150310993195, 0.10688807815313339, 0.0614296980202198, -0.101294606924057, 0.06348899751901627, 0.11915399879217148, -0.10301052778959274, -0.016982227563858032, -0.04511361941695213, -0.0230091642588377, 0.016338776797056198, 0.09715698659420013, 0.015271699987351894, -0.17149604856967926, -0.07184326648712158, -0.04524122178554535, 0.031792040914297104, -0.16379185020923615, -0.015213597565889359, 0.1356380134820938, -0.05215422809123993, -0.012010470032691956, 0.006319420877844095, 0.03298354893922806, 0.040522992610931396, 0.0671294629573822, 0.10566672682762146, -0.01893634721636772, -0.13682939112186432, -0.0421246662735939, 0.08864349126815796, -0.1793162077665329, 0.060105983167886734, 0.0852067843079567, -0.1270441859960556, -0.015521908178925514, 0.2457887977361679, -0.15136577188968658, 0.13392312824726105, 0.0736512765288353, 0.06742703914642334, 0.24357087910175323, -0.030105693265795708, -0.048112429678440094, -0.09778223931789398, 0.031339164823293686, -0.2732000946998596, -0.1299973428249359, -0.1439957618713379, 0.111933134496212, -0.020886408165097237, 0.11357519030570984, -0.15643319487571716, -0.13301949203014374, -0.03182879090309143, -0.01574387215077877, -0.1723763346672058, -0.1424226313829422, 0.3259158134460449, -0.03300586715340614, -0.029457228258252144, -0.03829419985413551, -0.029818540439009666, 0.029167193919420242, 0.10629341006278992, -0.1078835055232048, 0.05935798957943916, -0.041043974459171295, -0.04920271039009094, -0.05429895594716072, -0.05270304158329964, 0.02074659988284111, -0.052964359521865845, -0.12725746631622314, 0.01912529021501541, 0.13643448054790497, -0.09930796176195145, 0.022341808304190636, -0.04882199689745903, -0.06000455468893051, -0.018119553104043007, -0.028552640229463577, -0.09518555551767349, 0.14415396749973297, -0.09877390414476395, 0.2206418365240097, 0.23567752540111542, 0.0611744187772274, 0.008205327205359936, -0.2014089822769165, 0.033661145716905594, -0.10249951481819153, -0.04257654398679733, 0.06009773537516594, 0.06264431774616241, 0.0031592785380780697, -0.1713462471961975, -0.20823048055171967, 0.011206733994185925, -0.006497038062661886, -0.06995958834886551, -0.18400394916534424, -0.01442168839275837, 0.035586509853601456, 0.24989470839500427, 0.07545486092567444, -0.07986731827259064, 0.03450000658631325, -0.0803404152393341, 0.06495597958564758, 0.041407596319913864, 0.00715069891884923, -0.0038593080826103687, -0.05122186243534088, 0.0004834537976421416, -0.2063387930393219, 0.1643018126487732, 0.09845466911792755, 0.12661543488502502, 0.020945006981492043, 0.11122067272663116, 0.04938043653964996, -0.0799216479063034, 0.04093805328011513, 0.06480559706687927, 0.11434170603752136, 0.10548605769872665, -0.005038829520344734, -0.04138857498764992, 0.06139620766043663, 0.008316024206578732, -0.0235727708786726, -0.014662998728454113, 0.0036784212570637465, 0.192312091588974, 0.029310906305909157, 0.007808466907590628, -0.06665561348199844, -0.12406941503286362, -0.23250466585159302, -0.10571844130754471, -0.28317511081695557, 0.06040624901652336, 0.14752589166164398, 0.014221963472664356, -0.08897840231657028, 0.18363331258296967, -0.09776104986667633, 0.09600480645895004, -0.10704556107521057, -0.023209163919091225, -0.06750373542308807, 0.09655534476041794, 0.08299145102500916, -0.027739034965634346, -0.094985231757164, 0.39924952387809753, 0.005159373860806227, -0.21980896592140198, 0.06252361088991165, -0.23270374536514282, -0.15536510944366455, -0.12275964766740799, -0.06259540468454361, 0.035081349313259125, 0.009267409332096577, -0.1263541877269745, -0.07926702499389648, -0.10686563700437546, -0.08322127908468246, -0.10868111252784729, -0.06821756809949875, -0.1410321444272995, -0.20997855067253113, 0.02577686496078968, 0.12285888195037842, 0.011426647193729877, -0.1788899153470993, -0.04196963459253311, 0.09142599999904633, -0.0375174954533577, -0.09069015830755234, -0.07527652382850647, -0.06686198711395264, -0.03983982652425766, -0.012847782112658024, 0.21378269791603088, -0.1803908348083496, 0.05488087236881256, 0.12839335203170776, -0.0010820177849382162, 0.02646266296505928, -0.021539699286222458, 0.12010426819324493, 0.11891036480665207, -0.03175657242536545, -0.0445735938847065, -0.032729338854551315, -0.2468392252922058, 0.02518138475716114, 0.0766366496682167, -0.13724038004875183, 0.04919569939374924, -0.06965260952711105, 0.03237740322947502, 0.02536480687558651, 0.053246259689331055, -0.03172053024172783, -0.05767516419291496, -0.03752861171960831, 0.2018546164035797, -0.13571694493293762, 0.0693499967455864, 0.0404960960149765, 0.08290284872055054, 0.005189645569771528, -0.00920618511736393, 0.15050162374973297, -0.020320886746048927, 0.08543376624584198, 0.08264385163784027, -0.06522172689437866, 0.06205892190337181, -0.03018294833600521, -0.049311209470033646, -0.19031326472759247, 0.08988378196954727, -0.03767732158303261, -0.0023978690151125193, -0.08338790386915207, 0.1497187316417694, 0.06669671833515167, -0.15259994566440582, -0.018921853974461555, 0.035827405750751495, -0.08765771985054016, -0.042644888162612915, 0.07551537454128265, -0.010352815501391888, 0.12368212640285492, 0.11239579319953918, -0.0047804079949855804, 0.02273123525083065, -0.04443249851465225, 0.07470011711120605, 0.1113482117652893, -0.07270484417676926, 0.12273517996072769, 0.1492253541946411, -0.028877701610326767, 0.08767963200807571, 0.1726549118757248, 0.28999143838882446, -0.023777034133672714, -0.037054307758808136, 0.10497036576271057, 0.043486904352903366, -0.2216208130121231, -0.0289791077375412, 0.018185891211032867, 0.05878406763076782, -0.18669193983078003, -0.030776996165513992, 0.08224109560251236, 0.0798482894897461, 0.163286492228508, -0.09950149059295654, 0.030618665739893913, -0.037804994732141495, -0.057989053428173065, -0.09765574336051941, 0.10363253951072693, 0.00720194261521101, 0.00012034927203785628, 0.06017930805683136, -2.4444406494717407e-32, -0.03952021151781082, -0.025851599872112274, -0.07844383269548416, 0.005738215520977974, -0.1450975239276886, 0.03440016880631447, -0.16191937029361725, -0.01722061075270176, -0.1002112403512001, -0.016420692205429077, -0.042705848813056946, 0.07922998070716858, -0.040247052907943726, 0.1018034890294075, -0.04338974133133888, 0.045325152575969696, -0.07937996834516525, -0.030974814668297768, 0.023650439456105232, 0.043273236602544785, 0.09697642177343369, 0.03815019875764847, -0.006384572479873896, -0.2258298397064209, 0.019356053322553635, -0.008036630228161812, -0.1300579160451889, -0.17952436208724976, 0.18784642219543457, 0.044402845203876495, 0.004403353668749332, 0.010247225873172283, 0.08448862284421921, -0.026477759703993797, -0.12699609994888306, -0.15363280475139618, -0.28332480788230896, 0.05978119745850563, -0.11609461903572083, 0.20957891643047333, 0.10426274687051773, 0.0031434798147529364, 0.12146930396556854, -0.21880938112735748, 0.0524887889623642, -0.0054108742624521255, 0.040422845631837845, -0.06713618338108063, -0.07310209423303604, -0.2548498511314392, 0.031640876084566116, 0.05926091596484184, -0.1083957850933075, 0.07085452973842621, 0.11772671341896057, -0.002238381188362837, -0.016974743455648422, 0.1356411725282669, -0.036709148436784744, -0.013930834829807281, 0.07383562624454498, -0.08786271512508392, -0.03443383425474167, -0.07631123065948486, 0.02377009019255638, -0.13061319291591644, 0.3350297808647156, -0.05833093076944351, -0.04050091281533241, -0.07106781750917435, 0.21005234122276306, 0.04353496804833412, -0.05200556293129921, -0.004864012356847525, -0.04252662509679794, -0.03547976166009903, -0.043717656284570694, 0.09208176285028458, -0.016148248687386513, -0.09776371717453003, 0.05082261189818382, 0.018593603745102882, -0.05527105927467346, -0.029941033571958542, -0.05102042853832245, -0.07152752578258514, -0.026139792054891586, -0.009794208221137524, -0.2198483794927597, -0.16644342243671417, 0.01732913963496685, -0.008319046348333359, -0.09553626924753189, -0.15396256744861603, -0.10492177307605743, 0.1330956369638443, -0.1283280849456787, 0.12123272567987442, -0.0931137204170227, 0.1665712147951126, -0.028404342010617256, -0.0287462305277586, 0.09749725461006165, 0.018972953781485558, 0.08465161919593811, 0.05322769656777382, 0.02544241026043892, 0.00928802415728569, -0.19077689945697784, -0.13052111864089966, 0.11317109316587448, 0.10148713737726212, 0.2155657857656479, 0.32637590169906616, 0.16009123623371124, 0.050513967871665955, 0.00903723482042551, -0.026641255244612694, 0.2027260810136795, 0.2241985946893692, -0.04259887710213661, -0.08784331381320953, -0.032894957810640335, 0.010294736362993717, -0.08060406893491745, 0.12195566296577454, -0.14818069338798523, -0.014292691834270954, 0.005102217197418213, 0.004539853427559137, 0.02828449383378029, -0.1457553654909134, 7.211041292976006e-7, -0.08446454256772995, 0.17013512551784515, 0.002699867822229862, -0.006074011325836182, 0.025149470195174217, -0.026596255600452423, -0.15827345848083496, 0.06223458796739578, -0.0965617224574089, 0.06818850338459015, 0.13208015263080597, 0.03962867707014084, 0.08274398744106293, 0.1391378939151764, 0.06972231715917587, -0.07894890755414963, 0.009246655739843845, -0.05107767879962921, -0.10793871432542801, 0.07536325603723526, 0.30192169547080994, 0.21022824943065643, 0.022346723824739456, -0.04573133587837219, 0.05077023431658745, -0.13013048470020294, -0.049595654010772705, 0.05282977595925331, 0.024640558287501335, -0.007972456514835358, -0.09217929095029831, 0.012443097308278084, -0.04916725307703018, 0.12233126908540726, 0.03773467242717743, -0.06802252680063248, -0.1980162113904953, -0.12971004843711853, 0.0955696552991867, 0.2332846075296402, 0.03606276586651802, 0.04921681433916092, -0.05687138810753822, 0.1459674835205078, 0.173985093832016, 0.1162707731127739, -0.15967422723770142, 0.06539894640445709, -0.017235683277249336, 0.06333374977111816, 0.12486985325813293, 0.07603371888399124, 0.07207351922988892, 0.13871034979820251, -0.13149167597293854, -0.1775720715522766, 0.008215188048779964, -0.16943924129009247, 0.23771221935749054, 0.032773565500974655, -0.06810776889324188, -0.11373603343963623, 0.09413520991802216, 0.001662396127358079, 0.1265808492898941, -0.25137948989868164, 0.050307560712099075, 4.4405515922636004e-35, 0.049416616559028625, -0.014534670859575272, 0.05435163527727127, -0.05306842923164368, -0.019673535600304604, -0.05728480964899063, 0.029534820467233658, 0.014871271327137947, 0.02289487235248089, -0.14823663234710693, -0.06478451192378998 ]
https://github.com/huggingface/datasets/issues/2679
Cannot load the blog_authorship_corpus due to codec errors
@albertvillanova Can you shed light on how this fix works? We're experiencing a similar issue. If we run several runs (eg in a Wandb sweep) the first run "works" but then we get `NonMatchingSplitsSizesError` | run num | actual train examples # | expected example # | recorded example # | | ------- | -------------- | ----------------- | -------- | | 1 | 100 | 100 | 100 | | 2 | 102 | 100 | 102 | | 3 | 100 | 100 | 202 | | 4 | 40 | 100 | 40 | | 5 | 40 | 100 | 40 | | 6 | 40 | 100 | 40 | The second through the nth all crash with ``` datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=19980970, num_examples=100, dataset_name='cies'), 'recorded': SplitInfo(name='train', num_bytes=40163811, num_examples=202, dataset_name='cies')}] ```
## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1
135
Cannot load the blog_authorship_corpus due to codec errors ## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1 @albertvillanova Can you shed light on how this fix works? We're experiencing a similar issue. If we run several runs (eg in a Wandb sweep) the first run "works" but then we get `NonMatchingSplitsSizesError` | run num | actual train examples # | expected example # | recorded example # | | ------- | -------------- | ----------------- | -------- | | 1 | 100 | 100 | 100 | | 2 | 102 | 100 | 102 | | 3 | 100 | 100 | 202 | | 4 | 40 | 100 | 40 | | 5 | 40 | 100 | 40 | | 6 | 40 | 100 | 40 | The second through the nth all crash with ``` datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=19980970, num_examples=100, dataset_name='cies'), 'recorded': SplitInfo(name='train', num_bytes=40163811, num_examples=202, dataset_name='cies')}] ```
[ 0.13841091096401215, 0.33733829855918884, 0.016781240701675415, 0.042098864912986755, 0.28633031249046326, 0.16418834030628204, 0.03959185257554054, 0.1366090327501297, 0.01488359086215496, 0.14609014987945557, 0.025398220866918564, -0.128375843167305, -0.057274553924798965, -0.08997524529695511, -0.04832557216286659, 0.15451949834823608, -0.15097862482070923, -0.0264985803514719, 0.10523126274347305, -0.08744543045759201, -0.10890504717826843, 0.12111162394285202, 0.10199874639511108, -0.04111047089099884, 0.03588956594467163, -0.06050431728363037, 0.08764851093292236, 0.08950473368167877, 0.005562261678278446, -0.046244118362665176, 0.20262834429740906, 0.020253248512744904, -0.03190198168158531, 0.1488553136587143, 0.000005708334356313571, -0.005994733422994614, 0.0869620069861412, 0.16158755123615265, -0.06751934438943863, -0.13933564722537994, 0.09535951167345047, 0.012441689148545265, -0.10347332060337067, -0.025616977363824844, -0.06532017141580582, -0.17503108084201813, -0.044251762330532074, -0.08102808147668839, -0.05921420082449913, 0.1402166187763214, 0.04944983124732971, -0.12545447051525116, -0.014540595933794975, -0.13975852727890015, 0.04569241777062416, 0.0681195855140686, -0.014395823702216148, 0.1686014086008072, -0.0018687581177800894, -0.06319919973611832, -0.13076664507389069, -0.021302135661244392, -0.07275614142417908, 0.0368293821811676, -0.1725696474313736, -0.01764575019478798, 0.027498070150613785, -0.024228611961007118, 0.1265881061553955, 0.16481682658195496, 0.15538765490055084, 0.1936180293560028, -0.12650012969970703, 0.090857595205307, 0.06061193719506264, 0.0386851467192173, 0.06975281238555908, 0.0727534070611, -0.3221507966518402, 0.12259668111801147, -0.013020236976444721, -0.053052108734846115, 0.004074151627719402, 0.08656412363052368, -0.045480940490961075, 0.08546098321676254, -0.20920738577842712, 0.05030450597405434, 0.034240592271089554, -0.0629681721329689, 0.1928909569978714, 0.05869218334555626, 0.050271302461624146, -0.16146054863929749, 0.26323288679122925, 0.14518332481384277, 0.0071240938268601894, -0.05517684668302536, -0.11495386064052582, -0.07018592953681946, -0.0559716671705246, -0.08260509371757507, -0.004319105762988329, 0.10168730467557907, 0.0658862516283989, 0.01037660613656044, 0.04611409083008766, 0.04630780592560768, 0.15750260651111603, 0.029716210439801216, -0.07398941367864609, 0.06138193607330322, -0.23387500643730164, -0.1219034343957901, 0.13449570536613464, 0.045592062175273895, 0.1248435527086258, -0.03223393112421036, 0.07952961325645447, 0.11838522553443909, 0.007613474037498236, 0.10975850373506546, 0.03767826408147812, 0.14516296982765198, 0.07109108567237854, 0.0010616231011226773, -0.015280982479453087, 0.12385819107294083, -0.09849130362272263, 0.021300218999385834, -0.02357952669262886, -0.049752093851566315, -0.01127384789288044, -0.009341361932456493, 0.17268097400665283, -0.18161100149154663, 0.006748238578438759, -0.11712157726287842, 0.10458101332187653, 0.08744575828313828, -0.055759381502866745, -0.15078315138816833, -0.14955030381679535, 0.11820656806230545, 0.10868185013532639, 0.08181774616241455, 0.1428329199552536, -0.07537546008825302, -0.010304750874638557, -0.13926656544208527, -0.3205578029155731, 0.214087575674057, -0.15167945623397827, 0.012589797377586365, -0.09657038748264313, -0.004538885783404112, 0.06177191436290741, -0.05510307103395462, -0.11438053101301193, -0.18992666900157928, 0.030984606593847275, 0.10543149709701538, 0.048919111490249634, -0.035888925194740295, 0.05987473204731941, 0.07512148469686508, 0.19137950241565704, -0.05234541743993759, -0.02832268737256527, 0.0017486772267147899, 0.08257875591516495, -0.02273542806506157, -0.12881888449192047, -0.08720040321350098, -0.22032570838928223, 0.08343503624200821, -0.1105823665857315, -0.07140707224607468, -0.13880252838134766, 0.011766459792852402, 0.25178444385528564, -0.06798848509788513, -0.012122469022870064, -0.16994385421276093, 0.16459354758262634, -0.0365896113216877, -0.017407450824975967, 0.138478085398674, 0.029318515211343765, -0.030406437814235687, -0.00698644807562232, 0.014290728606283665, 0.10455019026994705, -0.005201289895921946, 0.15703758597373962, -0.0778198316693306, 0.030643554404377937, -0.10101741552352905, -0.005426341202110052, -0.2228764444589615, 0.05849551409482956, 0.012871178798377514, -0.0461767241358757, 0.11307771503925323, 0.09885544329881668, -0.0229913629591465, 0.02190886251628399, 0.10590534657239914, -0.047422558069229126, -0.08238299190998077, -0.2888904809951782, 0.041255444288253784, -0.0959378108382225, 0.08200839906930923, -0.15804524719715118, 0.07571790367364883, 0.004948781803250313, 0.11309900134801865, -0.0693565234541893, 0.1999121457338333, -0.07285195589065552, 0.12846443057060242, 0.008692082017660141, -0.0021531113889068365, -0.11119622737169266, 0.05376124382019043, 0.025945467874407768, -0.06863908469676971, 0.04658842459321022, 0.25521281361579895, -0.26347410678863525, -0.07531208544969559, 0.010177266784012318, 0.00504396203905344, -0.015825994312763214, 0.10361195355653763, 0.0004535530460998416, -0.2514285743236542, 0.04213830083608627, -0.11289621889591217, -0.07512617856264114, 0.15574371814727783, 0.12338106334209442, -0.00944842305034399, 0.05173870548605919, -0.13767920434474945, -0.08657042682170868, 0.12126591056585312, 0.06466660648584366, -0.04067203029990196, 0.28863102197647095, 0.0671687051653862, -0.16619500517845154, 0.00012050053192069754, 0.16266119480133057, -0.018538277596235275, -0.07426013052463531, -0.01041790284216404, -0.03247428312897682, -0.17272810637950897, 0.2646961212158203, -0.013279822655022144, 0.015949005261063576, 0.007530433125793934, 0.10438297688961029, -0.004812644328922033, -0.13566556572914124, -0.08651511371135712, -0.052182383835315704, -0.008443659171462059, 0.08798319101333618, -0.13822798430919647, -0.18839454650878906, -0.20578013360500336, 0.023036379367113113, -0.12951228022575378, -0.10153816640377045, -0.05987842008471489, -0.003681692061945796, -0.06406788527965546, -0.16450150310993195, 0.10688807815313339, 0.0614296980202198, -0.101294606924057, 0.06348899751901627, 0.11915399879217148, -0.10301052778959274, -0.016982227563858032, -0.04511361941695213, -0.0230091642588377, 0.016338776797056198, 0.09715698659420013, 0.015271699987351894, -0.17149604856967926, -0.07184326648712158, -0.04524122178554535, 0.031792040914297104, -0.16379185020923615, -0.015213597565889359, 0.1356380134820938, -0.05215422809123993, -0.012010470032691956, 0.006319420877844095, 0.03298354893922806, 0.040522992610931396, 0.0671294629573822, 0.10566672682762146, -0.01893634721636772, -0.13682939112186432, -0.0421246662735939, 0.08864349126815796, -0.1793162077665329, 0.060105983167886734, 0.0852067843079567, -0.1270441859960556, -0.015521908178925514, 0.2457887977361679, -0.15136577188968658, 0.13392312824726105, 0.0736512765288353, 0.06742703914642334, 0.24357087910175323, -0.030105693265795708, -0.048112429678440094, -0.09778223931789398, 0.031339164823293686, -0.2732000946998596, -0.1299973428249359, -0.1439957618713379, 0.111933134496212, -0.020886408165097237, 0.11357519030570984, -0.15643319487571716, -0.13301949203014374, -0.03182879090309143, -0.01574387215077877, -0.1723763346672058, -0.1424226313829422, 0.3259158134460449, -0.03300586715340614, -0.029457228258252144, -0.03829419985413551, -0.029818540439009666, 0.029167193919420242, 0.10629341006278992, -0.1078835055232048, 0.05935798957943916, -0.041043974459171295, -0.04920271039009094, -0.05429895594716072, -0.05270304158329964, 0.02074659988284111, -0.052964359521865845, -0.12725746631622314, 0.01912529021501541, 0.13643448054790497, -0.09930796176195145, 0.022341808304190636, -0.04882199689745903, -0.06000455468893051, -0.018119553104043007, -0.028552640229463577, -0.09518555551767349, 0.14415396749973297, -0.09877390414476395, 0.2206418365240097, 0.23567752540111542, 0.0611744187772274, 0.008205327205359936, -0.2014089822769165, 0.033661145716905594, -0.10249951481819153, -0.04257654398679733, 0.06009773537516594, 0.06264431774616241, 0.0031592785380780697, -0.1713462471961975, -0.20823048055171967, 0.011206733994185925, -0.006497038062661886, -0.06995958834886551, -0.18400394916534424, -0.01442168839275837, 0.035586509853601456, 0.24989470839500427, 0.07545486092567444, -0.07986731827259064, 0.03450000658631325, -0.0803404152393341, 0.06495597958564758, 0.041407596319913864, 0.00715069891884923, -0.0038593080826103687, -0.05122186243534088, 0.0004834537976421416, -0.2063387930393219, 0.1643018126487732, 0.09845466911792755, 0.12661543488502502, 0.020945006981492043, 0.11122067272663116, 0.04938043653964996, -0.0799216479063034, 0.04093805328011513, 0.06480559706687927, 0.11434170603752136, 0.10548605769872665, -0.005038829520344734, -0.04138857498764992, 0.06139620766043663, 0.008316024206578732, -0.0235727708786726, -0.014662998728454113, 0.0036784212570637465, 0.192312091588974, 0.029310906305909157, 0.007808466907590628, -0.06665561348199844, -0.12406941503286362, -0.23250466585159302, -0.10571844130754471, -0.28317511081695557, 0.06040624901652336, 0.14752589166164398, 0.014221963472664356, -0.08897840231657028, 0.18363331258296967, -0.09776104986667633, 0.09600480645895004, -0.10704556107521057, -0.023209163919091225, -0.06750373542308807, 0.09655534476041794, 0.08299145102500916, -0.027739034965634346, -0.094985231757164, 0.39924952387809753, 0.005159373860806227, -0.21980896592140198, 0.06252361088991165, -0.23270374536514282, -0.15536510944366455, -0.12275964766740799, -0.06259540468454361, 0.035081349313259125, 0.009267409332096577, -0.1263541877269745, -0.07926702499389648, -0.10686563700437546, -0.08322127908468246, -0.10868111252784729, -0.06821756809949875, -0.1410321444272995, -0.20997855067253113, 0.02577686496078968, 0.12285888195037842, 0.011426647193729877, -0.1788899153470993, -0.04196963459253311, 0.09142599999904633, -0.0375174954533577, -0.09069015830755234, -0.07527652382850647, -0.06686198711395264, -0.03983982652425766, -0.012847782112658024, 0.21378269791603088, -0.1803908348083496, 0.05488087236881256, 0.12839335203170776, -0.0010820177849382162, 0.02646266296505928, -0.021539699286222458, 0.12010426819324493, 0.11891036480665207, -0.03175657242536545, -0.0445735938847065, -0.032729338854551315, -0.2468392252922058, 0.02518138475716114, 0.0766366496682167, -0.13724038004875183, 0.04919569939374924, -0.06965260952711105, 0.03237740322947502, 0.02536480687558651, 0.053246259689331055, -0.03172053024172783, -0.05767516419291496, -0.03752861171960831, 0.2018546164035797, -0.13571694493293762, 0.0693499967455864, 0.0404960960149765, 0.08290284872055054, 0.005189645569771528, -0.00920618511736393, 0.15050162374973297, -0.020320886746048927, 0.08543376624584198, 0.08264385163784027, -0.06522172689437866, 0.06205892190337181, -0.03018294833600521, -0.049311209470033646, -0.19031326472759247, 0.08988378196954727, -0.03767732158303261, -0.0023978690151125193, -0.08338790386915207, 0.1497187316417694, 0.06669671833515167, -0.15259994566440582, -0.018921853974461555, 0.035827405750751495, -0.08765771985054016, -0.042644888162612915, 0.07551537454128265, -0.010352815501391888, 0.12368212640285492, 0.11239579319953918, -0.0047804079949855804, 0.02273123525083065, -0.04443249851465225, 0.07470011711120605, 0.1113482117652893, -0.07270484417676926, 0.12273517996072769, 0.1492253541946411, -0.028877701610326767, 0.08767963200807571, 0.1726549118757248, 0.28999143838882446, -0.023777034133672714, -0.037054307758808136, 0.10497036576271057, 0.043486904352903366, -0.2216208130121231, -0.0289791077375412, 0.018185891211032867, 0.05878406763076782, -0.18669193983078003, -0.030776996165513992, 0.08224109560251236, 0.0798482894897461, 0.163286492228508, -0.09950149059295654, 0.030618665739893913, -0.037804994732141495, -0.057989053428173065, -0.09765574336051941, 0.10363253951072693, 0.00720194261521101, 0.00012034927203785628, 0.06017930805683136, -2.4444406494717407e-32, -0.03952021151781082, -0.025851599872112274, -0.07844383269548416, 0.005738215520977974, -0.1450975239276886, 0.03440016880631447, -0.16191937029361725, -0.01722061075270176, -0.1002112403512001, -0.016420692205429077, -0.042705848813056946, 0.07922998070716858, -0.040247052907943726, 0.1018034890294075, -0.04338974133133888, 0.045325152575969696, -0.07937996834516525, -0.030974814668297768, 0.023650439456105232, 0.043273236602544785, 0.09697642177343369, 0.03815019875764847, -0.006384572479873896, -0.2258298397064209, 0.019356053322553635, -0.008036630228161812, -0.1300579160451889, -0.17952436208724976, 0.18784642219543457, 0.044402845203876495, 0.004403353668749332, 0.010247225873172283, 0.08448862284421921, -0.026477759703993797, -0.12699609994888306, -0.15363280475139618, -0.28332480788230896, 0.05978119745850563, -0.11609461903572083, 0.20957891643047333, 0.10426274687051773, 0.0031434798147529364, 0.12146930396556854, -0.21880938112735748, 0.0524887889623642, -0.0054108742624521255, 0.040422845631837845, -0.06713618338108063, -0.07310209423303604, -0.2548498511314392, 0.031640876084566116, 0.05926091596484184, -0.1083957850933075, 0.07085452973842621, 0.11772671341896057, -0.002238381188362837, -0.016974743455648422, 0.1356411725282669, -0.036709148436784744, -0.013930834829807281, 0.07383562624454498, -0.08786271512508392, -0.03443383425474167, -0.07631123065948486, 0.02377009019255638, -0.13061319291591644, 0.3350297808647156, -0.05833093076944351, -0.04050091281533241, -0.07106781750917435, 0.21005234122276306, 0.04353496804833412, -0.05200556293129921, -0.004864012356847525, -0.04252662509679794, -0.03547976166009903, -0.043717656284570694, 0.09208176285028458, -0.016148248687386513, -0.09776371717453003, 0.05082261189818382, 0.018593603745102882, -0.05527105927467346, -0.029941033571958542, -0.05102042853832245, -0.07152752578258514, -0.026139792054891586, -0.009794208221137524, -0.2198483794927597, -0.16644342243671417, 0.01732913963496685, -0.008319046348333359, -0.09553626924753189, -0.15396256744861603, -0.10492177307605743, 0.1330956369638443, -0.1283280849456787, 0.12123272567987442, -0.0931137204170227, 0.1665712147951126, -0.028404342010617256, -0.0287462305277586, 0.09749725461006165, 0.018972953781485558, 0.08465161919593811, 0.05322769656777382, 0.02544241026043892, 0.00928802415728569, -0.19077689945697784, -0.13052111864089966, 0.11317109316587448, 0.10148713737726212, 0.2155657857656479, 0.32637590169906616, 0.16009123623371124, 0.050513967871665955, 0.00903723482042551, -0.026641255244612694, 0.2027260810136795, 0.2241985946893692, -0.04259887710213661, -0.08784331381320953, -0.032894957810640335, 0.010294736362993717, -0.08060406893491745, 0.12195566296577454, -0.14818069338798523, -0.014292691834270954, 0.005102217197418213, 0.004539853427559137, 0.02828449383378029, -0.1457553654909134, 7.211041292976006e-7, -0.08446454256772995, 0.17013512551784515, 0.002699867822229862, -0.006074011325836182, 0.025149470195174217, -0.026596255600452423, -0.15827345848083496, 0.06223458796739578, -0.0965617224574089, 0.06818850338459015, 0.13208015263080597, 0.03962867707014084, 0.08274398744106293, 0.1391378939151764, 0.06972231715917587, -0.07894890755414963, 0.009246655739843845, -0.05107767879962921, -0.10793871432542801, 0.07536325603723526, 0.30192169547080994, 0.21022824943065643, 0.022346723824739456, -0.04573133587837219, 0.05077023431658745, -0.13013048470020294, -0.049595654010772705, 0.05282977595925331, 0.024640558287501335, -0.007972456514835358, -0.09217929095029831, 0.012443097308278084, -0.04916725307703018, 0.12233126908540726, 0.03773467242717743, -0.06802252680063248, -0.1980162113904953, -0.12971004843711853, 0.0955696552991867, 0.2332846075296402, 0.03606276586651802, 0.04921681433916092, -0.05687138810753822, 0.1459674835205078, 0.173985093832016, 0.1162707731127739, -0.15967422723770142, 0.06539894640445709, -0.017235683277249336, 0.06333374977111816, 0.12486985325813293, 0.07603371888399124, 0.07207351922988892, 0.13871034979820251, -0.13149167597293854, -0.1775720715522766, 0.008215188048779964, -0.16943924129009247, 0.23771221935749054, 0.032773565500974655, -0.06810776889324188, -0.11373603343963623, 0.09413520991802216, 0.001662396127358079, 0.1265808492898941, -0.25137948989868164, 0.050307560712099075, 4.4405515922636004e-35, 0.049416616559028625, -0.014534670859575272, 0.05435163527727127, -0.05306842923164368, -0.019673535600304604, -0.05728480964899063, 0.029534820467233658, 0.014871271327137947, 0.02289487235248089, -0.14823663234710693, -0.06478451192378998 ]
https://github.com/huggingface/datasets/issues/2678
Import Error in Kaggle notebook
@lhoestq I did, and then let pip handle the installation in `pip import datasets`. I also tried using conda but it gives the same error. Edit: pyarrow version on kaggle is 4.0.0, it gets replaced with 4.0.1. So, I don't think uninstalling will change anything. ``` Install Trace of datasets: Collecting datasets Downloading datasets-1.9.0-py3-none-any.whl (262 kB) |████████████████████████████████| 262 kB 834 kB/s eta 0:00:01 Requirement already satisfied: dill in /opt/conda/lib/python3.7/site-packages (from datasets) (0.3.4) Collecting pyarrow!=4.0.0,>=1.0.0 Downloading pyarrow-4.0.1-cp37-cp37m-manylinux2014_x86_64.whl (21.8 MB) |████████████████████████████████| 21.8 MB 6.2 MB/s eta 0:00:01 Requirement already satisfied: importlib-metadata in /opt/conda/lib/python3.7/site-packages (from datasets) (3.4.0) Requirement already satisfied: huggingface-hub<0.1.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (0.0.8) Requirement already satisfied: pandas in /opt/conda/lib/python3.7/site-packages (from datasets) (1.2.4) Requirement already satisfied: requests>=2.19.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2.25.1) Requirement already satisfied: fsspec>=2021.05.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2021.6.1) Requirement already satisfied: multiprocess in /opt/conda/lib/python3.7/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: packaging in /opt/conda/lib/python3.7/site-packages (from datasets) (20.9) Collecting xxhash Downloading xxhash-2.0.2-cp37-cp37m-manylinux2010_x86_64.whl (243 kB) |████████████████████████████████| 243 kB 23.7 MB/s eta 0:00:01 Requirement already satisfied: numpy>=1.17 in /opt/conda/lib/python3.7/site-packages (from datasets) (1.19.5) Requirement already satisfied: tqdm>=4.27 in /opt/conda/lib/python3.7/site-packages (from datasets) (4.61.1) Requirement already satisfied: filelock in /opt/conda/lib/python3.7/site-packages (from huggingface-hub<0.1.0->datasets) (3.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: certifi>=2017.4.17 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: chardet<5,>=3.0.2 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: typing-extensions>=3.6.4 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.7.4.3) Requirement already satisfied: zipp>=0.5 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: pyparsing>=2.0.2 in /opt/conda/lib/python3.7/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: python-dateutil>=2.7.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: six>=1.5 in /opt/conda/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas->datasets) (1.15.0) Installing collected packages: xxhash, pyarrow, datasets Attempting uninstall: pyarrow Found existing installation: pyarrow 4.0.0 Uninstalling pyarrow-4.0.0: Successfully uninstalled pyarrow-4.0.0 Successfully installed datasets-1.9.0 pyarrow-4.0.1 xxhash-2.0.2 WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv ```
## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1
322
Import Error in Kaggle notebook ## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1 @lhoestq I did, and then let pip handle the installation in `pip import datasets`. I also tried using conda but it gives the same error. Edit: pyarrow version on kaggle is 4.0.0, it gets replaced with 4.0.1. So, I don't think uninstalling will change anything. ``` Install Trace of datasets: Collecting datasets Downloading datasets-1.9.0-py3-none-any.whl (262 kB) |████████████████████████████████| 262 kB 834 kB/s eta 0:00:01 Requirement already satisfied: dill in /opt/conda/lib/python3.7/site-packages (from datasets) (0.3.4) Collecting pyarrow!=4.0.0,>=1.0.0 Downloading pyarrow-4.0.1-cp37-cp37m-manylinux2014_x86_64.whl (21.8 MB) |████████████████████████████████| 21.8 MB 6.2 MB/s eta 0:00:01 Requirement already satisfied: importlib-metadata in /opt/conda/lib/python3.7/site-packages (from datasets) (3.4.0) Requirement already satisfied: huggingface-hub<0.1.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (0.0.8) Requirement already satisfied: pandas in /opt/conda/lib/python3.7/site-packages (from datasets) (1.2.4) Requirement already satisfied: requests>=2.19.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2.25.1) Requirement already satisfied: fsspec>=2021.05.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2021.6.1) Requirement already satisfied: multiprocess in /opt/conda/lib/python3.7/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: packaging in /opt/conda/lib/python3.7/site-packages (from datasets) (20.9) Collecting xxhash Downloading xxhash-2.0.2-cp37-cp37m-manylinux2010_x86_64.whl (243 kB) |████████████████████████████████| 243 kB 23.7 MB/s eta 0:00:01 Requirement already satisfied: numpy>=1.17 in /opt/conda/lib/python3.7/site-packages (from datasets) (1.19.5) Requirement already satisfied: tqdm>=4.27 in /opt/conda/lib/python3.7/site-packages (from datasets) (4.61.1) Requirement already satisfied: filelock in /opt/conda/lib/python3.7/site-packages (from huggingface-hub<0.1.0->datasets) (3.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: certifi>=2017.4.17 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: chardet<5,>=3.0.2 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: typing-extensions>=3.6.4 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.7.4.3) Requirement already satisfied: zipp>=0.5 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: pyparsing>=2.0.2 in /opt/conda/lib/python3.7/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: python-dateutil>=2.7.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: six>=1.5 in /opt/conda/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas->datasets) (1.15.0) Installing collected packages: xxhash, pyarrow, datasets Attempting uninstall: pyarrow Found existing installation: pyarrow 4.0.0 Uninstalling pyarrow-4.0.0: Successfully uninstalled pyarrow-4.0.0 Successfully installed datasets-1.9.0 pyarrow-4.0.1 xxhash-2.0.2 WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv ```
[ -0.038532812148332596, 0.13840876519680023, -0.14173680543899536, -0.21749167144298553, 0.2519043982028961, 0.08228716254234314, 0.17035648226737976, 0.08360753208398819, -0.06453552097082138, 0.09949330985546112, -0.024202877655625343, 0.08382027596235275, -0.0264932569116354, -0.024298271164298058, 0.07951831817626953, 0.03758404776453972, 0.08312153071165085, 0.08849034458398819, 0.016758227720856667, 0.018966257572174072, 0.014620811678469181, -0.01856871135532856, 0.07433798164129257, -0.050063420087099075, 0.11071167141199112, -0.12661445140838623, -0.05813828855752945, 0.06218547746539116, -0.05990708991885185, -0.11649686098098755, 0.20107991993427277, -0.05327630415558815, 0.04625507444143295, 0.1958690881729126, 0.000005204942681302782, -0.059697818011045456, 0.13111215829849243, 0.0506405271589756, -0.06263057887554169, -0.05789214372634888, 0.0665084719657898, -0.024685179814696312, -0.036784105002880096, -0.0865103155374527, 0.24305973947048187, -0.1689845472574234, -0.0877448096871376, 0.06557062268257141, 0.16999800503253937, 0.08577477931976318, 0.13866735994815826, 0.12924569845199585, 0.24996332824230194, -0.09937309473752975, 0.08455609530210495, -0.09550091624259949, -0.04512476921081543, 0.11105852574110031, -0.13937461376190186, -0.1517283320426941, -0.01013998594135046, -0.00925850123167038, -0.09002199023962021, -0.07998170703649521, 0.012790335342288017, 0.011308623477816582, -0.013969995081424713, -0.03195671737194061, -0.08365718275308609, 0.3128398656845093, 0.07305614650249481, 0.07915049046278, -0.10010675340890884, -0.007314007263630629, 0.06748466193675995, -0.09519778937101364, 0.0321706123650074, 0.0029081394895911217, -0.16714857518672943, 0.09179117530584335, 0.01579401083290577, -0.10428610444068909, 0.0062473490834236145, -0.08931852877140045, -0.08431355655193329, 0.009821093641221523, -0.1021440327167511, 0.10160354524850845, 0.040646668523550034, -0.2517060935497284, 0.3326716125011444, 0.04096977040171623, -0.07782959192991257, -0.1589403748512268, 0.10144118219614029, -0.04755312204360962, -0.022202977910637856, -0.14008045196533203, -0.04759631305932999, -0.013926905579864979, 0.012985039502382278, -0.0288101714104414, 0.026276245713233948, 0.18353524804115295, 0.1345825046300888, 0.13879111409187317, -0.00040591132710687816, 0.08837907761335373, -0.022736800834536552, 0.08072612434625626, 0.110842764377594, 0.07005922496318817, -0.08869379758834839, -0.20320920646190643, 0.044487420469522476, 0.03329760581254959, 0.20684437453746796, 0.06325897574424744, -0.20427796244621277, 0.1298506110906601, -0.047486163675785065, 0.03578275069594383, -0.13574454188346863, 0.09316994249820709, 0.16373780369758606, -0.022053463384509087, 0.019208332523703575, 0.03259266912937164, 0.03425849601626396, 0.06455904990434647, -0.01652168482542038, 0.06892846524715424, 0.053803276270627975, -0.10868869721889496, 0.14590393006801605, -0.09692706912755966, -0.026865195482969284, -0.11180409789085388, 0.05862109363079071, 0.07434189319610596, 0.07697596400976181, -0.024998916313052177, -0.24080577492713928, 0.13586488366127014, 0.023971524089574814, 0.06282234936952591, 0.11216364800930023, -0.05826219916343689, -0.09633872658014297, 0.06273582577705383, -0.2273232340812683, 0.12625744938850403, -0.13251008093357086, 0.1004614382982254, -0.02249435894191265, -0.013332600705325603, -0.0928257405757904, -0.10164646804332733, -0.2617050111293793, -0.17404533922672272, 0.0017152766231447458, -0.04379166662693024, 0.06177696958184242, -0.044532306492328644, 0.1031741052865982, 0.11968672275543213, 0.029011502861976624, 0.06404983997344971, -0.0017344038933515549, -0.028025362640619278, 0.08919233828783035, -0.0070219808258116245, -0.10454175621271133, 0.09732411801815033, -0.06335777789354324, 0.06710009276866913, 0.12703657150268555, -0.04624399542808533, -0.268838495016098, -0.03248145431280136, 0.10111559927463531, -0.13655206561088562, -0.030186330899596214, -0.12476340681314468, -0.022284021601080894, 0.10448876768350601, 0.031628791242837906, 0.08604755997657776, -0.06147643178701401, -0.16904984414577484, 0.03474106639623642, 0.1863725334405899, -0.03747845068573952, 0.05859803408384323, 0.222490131855011, -0.2644274830818176, 0.07031555473804474, -0.23075631260871887, 0.11132530122995377, -0.131000354886055, 0.043942127376794815, -0.1443931758403778, 0.030202997848391533, -0.04591358080506325, 0.08061538636684418, -0.01137296948581934, -0.000562891480512917, -0.05356764420866966, 0.02257945016026497, -0.07646913826465607, -0.16764892637729645, -0.04523666575551033, -0.15188652276992798, 0.08506780117750168, 0.003672641236335039, -0.029342226684093475, 0.0785352885723114, 0.012975367717444897, -0.23142500221729279, 0.11519947648048401, -0.006307044066488743, 0.18036000430583954, 0.17192953824996948, 0.029798759147524834, -0.0843428522348404, 0.09592746198177338, -0.06474278122186661, -0.12869983911514282, 0.08647351711988449, 0.12499556690454483, -0.1795203983783722, 0.02997937798500061, -0.05172627046704292, 0.0013740381691604853, 0.04413992539048195, -0.08158771693706512, 0.029995178803801537, -0.06628262996673584, 0.19134140014648438, -0.08582960814237595, -0.1216048151254654, 0.125746950507164, 0.02612421102821827, 0.004169669467955828, 0.01801309734582901, 0.0877494290471077, -0.0755683183670044, -0.025452077388763428, -0.052874017506837845, -0.007834263145923615, 0.23222234845161438, -0.04257242754101753, -0.15265166759490967, 0.010882718488574028, 0.09459452331066132, -0.04616711661219597, -0.05935772880911827, -0.04244595766067505, 0.013586223125457764, -0.1825781613588333, 0.18279102444648743, -0.051147185266017914, 0.023358067497611046, -0.007635117974132299, 0.014327562414109707, -0.06741081923246384, 0.3467046618461609, -0.039162058383226395, 0.16893628239631653, 0.017294900491833687, -0.24097298085689545, 0.012869250029325485, -0.09958548843860626, -0.035695191472768784, 0.09750494360923767, -0.012925551272928715, 0.18615920841693878, 0.09734964370727539, 0.06216609477996826, -0.12856747210025787, -0.23774410784244537, 0.053939349949359894, -0.01954931765794754, -0.09396529197692871, -0.025369256734848022, 0.09071151912212372, -0.07741201668977737, -0.08091842383146286, -0.10686640441417694, -0.003653300693258643, 0.05242544040083885, -0.07718424499034882, -0.03258214518427849, 0.008450857363641262, -0.021230367943644524, 0.06277141720056534, 0.14984901249408722, -0.14357221126556396, -0.14850866794586182, 0.014082242734730244, -0.07297388464212418, -0.19018056988716125, 0.07712993770837784, 0.12437424808740616, 0.1439855694770813, 0.04709850251674652, 0.21558065712451935, 0.18305717408657074, 0.05870532616972923, -0.1324726641178131, 0.010075408034026623, -0.16446281969547272, 0.0031170060392469168, 0.15908360481262207, 0.101313017308712, 0.04844881221652031, -0.1063566505908966, -0.03449443727731705, -0.04239330440759659, 0.13921786844730377, -0.08512793481349945, 0.1784696877002716, -0.06279243528842926, 0.11557608097791672, -0.10740269720554352, 0.0959724560379982, -0.3731144070625305, -0.06169724464416504, -0.04555132985115051, -0.051433149725198746, -0.08746083080768585, -0.03468295931816101, -0.01438851933926344, -0.0002853857877198607, 0.08021237701177597, -0.08898238092660904, -0.08050640672445297, 0.09164666384458542, 0.40573379397392273, -0.0970955342054367, -0.033548157662153244, -0.0979917049407959, -0.06944958865642548, 0.10776282101869583, 0.02764957584440708, -0.12442489713430405, 0.05781501904129982, -0.1745680570602417, 0.17243197560310364, -0.15164178609848022, 0.02638254314661026, 0.13094423711299896, 0.13301146030426025, -0.16969041526317596, 0.04720882326364517, 0.06042468920350075, -0.08043364435434341, -0.0020120085682719946, -0.021600469946861267, 0.008736273273825645, 0.06506196409463882, -0.10844068229198456, 0.0877997949719429, -0.08350060880184174, -0.05724240094423294, 0.1736210435628891, 0.1725660264492035, 0.018279900774359703, -0.11141573637723923, -0.14770136773586273, -0.09516458958387375, -0.0655270367860794, 0.11230196803808212, -0.062277890741825104, 0.05524672940373421, 0.017868977040052414, -0.141704723238945, -0.25806334614753723, 0.09645264595746994, -0.056049857288599014, 0.07010606676340103, -0.12488111108541489, -0.06756722182035446, 0.20239022374153137, -0.017814524471759796, 0.036999866366386414, -0.1273839771747589, 0.04036720097064972, -0.068053238093853, -0.0009162932401522994, 0.14040206372737885, 0.0073969000950455666, -0.0033932446967810392, -0.11429436504840851, 0.14119306206703186, -0.12839022278785706, 0.15761998295783997, 0.3172967731952667, 0.0256410650908947, -0.002343003638088703, -0.0980362594127655, 0.07867766171693802, 0.03190711885690689, 0.025575922802090645, 0.15406829118728638, 0.17171061038970947, -0.14824289083480835, -0.20811975002288818, -0.03681223466992378, -0.03702931106090546, 0.03476952388882637, -0.008126177825033665, -0.10086391866207123, 0.0679047554731369, 0.08299330621957779, 0.10962323099374771, 0.04326484352350235, -0.2104385942220688, -0.16885440051555634, -0.12806515395641327, -0.164932519197464, -0.1545354574918747, 0.08211539685726166, 0.15731683373451233, -0.10756900906562805, -0.07176591455936432, -0.04094402864575386, -0.022883251309394836, 0.21113935112953186, 0.019675204530358315, 0.05252330005168915, -0.2016373872756958, 0.1357853263616562, -0.053391892462968826, 0.032995499670505524, 0.13613207638263702, 0.27756020426750183, -0.0005601283628493547, -0.22888638079166412, -0.10372322797775269, -0.14969496428966522, -0.05254628509283066, -0.031204570084810257, -0.04710976034402847, 0.058615535497665405, -0.08771435171365738, -0.09286312013864517, -0.03464949131011963, -0.09144913405179977, -0.016119936481118202, -0.007738879416137934, -0.07491540163755417, -0.005442320369184017, -0.21783748269081116, 0.03909225016832352, -0.024632563814520836, 0.260038822889328, -0.10873545706272125, -0.06887917220592499, 0.05343571677803993, -0.015640199184417725, -0.04808662459254265, -0.07772710919380188, 0.022559961304068565, 0.09496448934078217, -0.005648764781653881, 0.1642022579908371, -0.22279930114746094, 0.030015764757990837, 0.08998068422079086, 0.023908933624625206, 0.10820171982049942, -0.06060577556490898, -0.01746450364589691, 0.07978567481040955, -0.2511698603630066, -0.027916083112359047, -0.12560342252254486, -0.08342636376619339, 0.010525220073759556, 0.153072789311409, -0.022482726722955704, 0.16598846018314362, -0.09255421906709671, -0.09915600717067719, -0.0880739837884903, 0.037132520228624344, -0.17135880887508392, -0.15265808999538422, -0.13116295635700226, 0.08637713640928268, -0.07369813323020935, 0.06830664724111557, -0.12177115678787231, 0.28270137310028076, 0.0789223462343216, 0.005415245890617371, 0.1759433150291443, 0.05096989870071411, 0.15531191229820251, 0.0498611219227314, -0.10432688146829605, 0.06425172090530396, 0.0017571508651599288, -0.038537707179784775, -0.03974752500653267, 0.06300897896289825, 0.026115816086530685, -0.03955567255616188, -0.2435465306043625, 0.023165510967373848, 0.020858515053987503, -0.16142895817756653, -0.11815565079450607, 0.1386040449142456, 0.01393154263496399, 0.02545929327607155, 0.09263426810503006, -0.06323722004890442, 0.13629676401615143, -0.0644349679350853, -0.13618327677249908, 0.023413455113768578, 0.08681652694940567, 0.133745014667511, 0.019256338477134705, 0.008276707492768764, 0.09655391424894333, 0.09435657411813736, 0.07197412103414536, 0.010642077773809433, 0.15489839017391205, 0.05007470026612282, -0.036126069724559784, -0.12085655331611633, -0.022546010091900826, -0.03240026533603668, -0.0865834504365921, 0.08873516321182251, 0.006673634983599186, 0.04423242062330246, -0.02967684343457222, 0.03998317942023277, 0.06125310808420181, 0.11536877602338791, 0.2264358103275299, -0.1137249693274498, -0.06385723501443863, -0.04869570583105087, -0.11608753353357315, -0.13023078441619873, 0.13694298267364502, 0.02008003555238247, 0.033289045095443726, 0.006903436034917831, -2.4039504526840793e-32, -0.07841695100069046, 0.027307026088237762, -0.20888176560401917, 0.14091084897518158, -0.2409244328737259, 0.009033722802996635, -0.013744012452661991, 0.013501092791557312, -0.1591653823852539, -0.058973945677280426, -0.0695100650191307, 0.030415968969464302, -0.03396338224411011, -0.06171105429530144, -0.12077703326940536, 0.07284382730722427, -0.05419330298900604, 0.007598291616886854, 0.04363604635000229, 0.05039094388484955, 0.05486429110169411, 0.14398649334907532, 0.06153075769543648, 0.026945505291223526, -0.01918061263859272, -0.11461161822080612, -0.08307906985282898, 0.005974358879029751, 0.04577605426311493, -0.12868843972682953, -0.08298222720623016, 0.16038645803928375, 0.050607673823833466, -0.10975352674722672, -0.050165411084890366, 0.004932565614581108, -0.17604434490203857, -0.2063097208738327, -0.10217323899269104, 0.05176183581352234, -0.010446536354720592, 0.07217834144830704, 0.10946791619062424, -0.22014109790325165, 0.039350476115942, 0.05050985887646675, 0.12416870892047882, -0.030846066772937775, -0.08122418075799942, -0.08959362655878067, 0.14307893812656403, 0.02414785325527191, -0.13739292323589325, 0.11134708672761917, 0.1419958919286728, 0.023011839017271996, 0.03092290833592415, -0.036582622677087784, -0.15169204771518707, 0.020428543910384178, -0.03069925121963024, -0.1895924061536789, -0.0032360272016376257, 0.034539785236120224, 0.1623789370059967, 0.1527753323316574, 0.17989283800125122, -0.14643025398254395, 0.0377095565199852, -0.0003946435754187405, -0.08337269723415375, 0.0796734094619751, -0.05588361620903015, 0.03559994697570801, -0.13730590045452118, -0.15119746327400208, -0.36313387751579285, 0.0435534231364727, 0.03300614655017853, -0.018528969958424568, -0.027128897607326508, 0.056717339903116226, -0.07806216180324554, 0.03371383994817734, 0.10470660775899887, 0.12559306621551514, 0.0005410276353359222, 0.06416646391153336, -0.19068418443202972, -0.01793883927166462, -0.0590837188065052, 0.18986155092716217, 0.012892184779047966, -0.09843841940164566, -0.03223218396306038, 0.2006068378686905, 0.0219594556838274, 0.05388946086168289, -0.05155732110142708, -0.12852692604064941, -0.12867434322834015, -0.021597927436232567, -0.12476915866136551, 0.1120806410908699, 0.2301068902015686, 0.048981811851263046, 0.08946442604064941, 0.0016229902394115925, -0.18426385521888733, -0.0030513980891555548, 0.0009028054191730917, -0.000976180424913764, 0.21422401070594788, 0.08876102417707443, 0.1057753935456276, 0.030231941491365433, -0.05050438642501831, -0.10082530230283737, 0.2528511881828308, 0.15685081481933594, -0.13351479172706604, 0.02578076347708702, -0.20253145694732666, -0.16423623263835907, 0.04380016401410103, 0.04662368446588516, -0.08081518858671188, 0.07344532757997513, 0.06338716298341751, 0.13182629644870758, -0.004430520348250866, -0.09500406682491302, 7.203805694189214e-7, -0.2506299912929535, 0.10230255126953125, -0.164263054728508, 0.11490458250045776, -0.12841618061065674, 0.00905565544962883, -0.23365524411201477, 0.016807056963443756, -0.00632404675707221, 0.10694863647222519, 0.09791643917560577, -0.010882380418479443, 0.039010196924209595, -0.00923071801662445, 0.0975736603140831, -0.08464033901691437, -0.01568935438990593, 0.12989541888237, -0.10345558077096939, -0.10481533408164978, 0.2214505523443222, 0.02189779095351696, 0.15823359787464142, -0.13819053769111633, 0.09226597100496292, -0.20083612203598022, -0.007015347480773926, -0.0851738452911377, 0.07013048976659775, 0.10055921226739883, 0.10608046501874924, 0.06303898245096207, -0.18091216683387756, 0.21019677817821503, 0.08553183823823929, -0.039152804762125015, -0.12741564214229584, -0.041356656700372696, 0.07089444994926453, 0.094082772731781, 0.11509156972169876, -0.021947599947452545, 0.0530233308672905, -0.10716152936220169, 0.25147590041160583, 0.13209082186222076, 0.02015915885567665, 0.021254142746329308, -0.11657499521970749, 0.06923366338014603, 0.3004673421382904, 0.1855522245168686, -0.006528152152895927, -0.01592874526977539, -0.05643779784440994, 0.1256256252527237, -0.11409994959831238, -0.10139503329992294, -0.016326069831848145, -0.022009801119565964, -0.09759222716093063, -0.04255078732967377, 0.020521054044365883, -0.05297437682747841, 0.018343007192015648, -0.06044631078839302, 0.06162296608090401, -8.540819954866337e-35, 0.10388517379760742, -0.08856776356697083, 0.12914055585861206, -0.18522055447101593, 0.006942214909940958, -0.06489508599042892, 0.2526738941669464, -0.24760223925113678, 0.1928517371416092, -0.12881849706172943, 0.037120919674634933 ]
https://github.com/huggingface/datasets/issues/2678
Import Error in Kaggle notebook
You may need to restart your kaggle notebook after installing a newer version of `pyarrow`. If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail
## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1
37
Import Error in Kaggle notebook ## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1 You may need to restart your kaggle notebook after installing a newer version of `pyarrow`. If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail
[ -0.040208060294389725, 0.14850911498069763, -0.13928289711475372, -0.2208555042743683, 0.23931071162223816, 0.0845671147108078, 0.16254116594791412, 0.08125758916139603, -0.05934225767850876, 0.10776685178279877, -0.022883648052811623, 0.08486951142549515, -0.03666574880480766, -0.017388928681612015, 0.07406426221132278, 0.039388131350278854, 0.07672213762998581, 0.08695316314697266, 0.02904990315437317, 0.013643383979797363, 0.01165823545306921, -0.001612271647900343, 0.05926915258169174, -0.051270898431539536, 0.10837928205728531, -0.1269369274377823, -0.05653565749526024, 0.049984391778707504, -0.06677538901567459, -0.12483174353837967, 0.1915360987186432, -0.05644477903842926, 0.055365148931741714, 0.1831897348165512, 0.000005265183062874712, -0.07226694375276566, 0.128941148519516, 0.04249368607997894, -0.04942376911640167, -0.07603823393583298, 0.06981790065765381, -0.02439865469932556, -0.015162269584834576, -0.07599982619285583, 0.24999547004699707, -0.17543762922286987, -0.0855742022395134, 0.10965828597545624, 0.16783857345581055, 0.08771315962076187, 0.13791899383068085, 0.13166049122810364, 0.2463916689157486, -0.09871721267700195, 0.09339075535535812, -0.09804094582796097, -0.03305409476161003, 0.1032676175236702, -0.1429767906665802, -0.1424950808286667, -0.010995136573910713, -0.014402666129171848, -0.089089035987854, -0.08105380833148956, 0.03797663375735283, 0.014954859390854836, -0.004033469595015049, -0.050194889307022095, -0.07195412367582321, 0.2949935495853424, 0.06444532424211502, 0.06844580173492432, -0.10366048663854599, -0.005544034764170647, 0.05284910276532173, -0.09539378434419632, 0.023249924182891846, 0.0055879149585962296, -0.1492915004491806, 0.09586086869239807, 0.04109954088926315, -0.10848401486873627, 0.004408800043165684, -0.08651348203420639, -0.08233188837766647, 0.023585757240653038, -0.09468201547861099, 0.10900070518255234, 0.04022472724318504, -0.24105264246463776, 0.33160996437072754, 0.029866894707083702, -0.08367849886417389, -0.14615371823310852, 0.09963733702898026, -0.05318937078118324, -0.00739885400980711, -0.1428644210100174, -0.043664995580911636, -0.020796094089746475, -0.0023847792763262987, -0.01849585957825184, 0.015399377793073654, 0.19493919610977173, 0.13827097415924072, 0.12645791471004486, 0.008812522515654564, 0.06574254482984543, -0.02432018518447876, 0.08652083575725555, 0.11157827824354172, 0.08578722923994064, -0.10909640789031982, -0.20369172096252441, 0.07606253027915955, 0.052610039710998535, 0.21135880053043365, 0.06237132102251053, -0.19617436826229095, 0.12975510954856873, -0.036955345422029495, 0.03642977774143219, -0.1450677067041397, 0.0955050140619278, 0.14142999053001404, -0.01058439165353775, 0.0063263652846217155, 0.03816329315304756, 0.03265022113919258, 0.06928224861621857, -0.02790703997015953, 0.08471778780221939, 0.043026380240917206, -0.10776863992214203, 0.13569213449954987, -0.11833388358354568, -0.027547307312488556, -0.09285611659288406, 0.044649675488471985, 0.06992990523576736, 0.08670744299888611, -0.028344228863716125, -0.25814732909202576, 0.12326217442750931, 0.015148273669183254, 0.0643259808421135, 0.10055282711982727, -0.053109314292669296, -0.09798694401979446, 0.04971518740057945, -0.24037092924118042, 0.1074070930480957, -0.12908783555030823, 0.1033133715391159, -0.01616632379591465, -0.030111363157629967, -0.11038282513618469, -0.09675567597150803, -0.27574312686920166, -0.17082025110721588, -0.012819726020097733, -0.06565919518470764, 0.06880065053701401, -0.05758382007479668, 0.09443945437669754, 0.1175474002957344, 0.036403264850378036, 0.06259528547525406, -0.009586903266608715, -0.02492787316441536, 0.08491135388612747, -0.010787363164126873, -0.11552487313747406, 0.08112969994544983, -0.05373857170343399, 0.08481922000646591, 0.12554191052913666, -0.029497312381863594, -0.2654300034046173, -0.03626590594649315, 0.08649221807718277, -0.13032492995262146, -0.024805817753076553, -0.1131780818104744, -0.014710409566760063, 0.10702784359455109, 0.028198467567563057, 0.09497619420289993, -0.06975139677524567, -0.163993701338768, 0.03771723434329033, 0.1989252120256424, -0.016760695725679398, 0.0680774673819542, 0.24223777651786804, -0.25354981422424316, 0.08305124193429947, -0.22618649899959564, 0.11297760158777237, -0.12998169660568237, 0.052350591868162155, -0.14137202501296997, 0.043260782957077026, -0.056435152888298035, 0.0808541402220726, -0.014043747447431087, 0.0029853936284780502, -0.05671948567032814, 0.008259422145783901, -0.07134741544723511, -0.1559487283229828, -0.04297729581594467, -0.15436840057373047, 0.09490914642810822, -0.013913692906498909, -0.026621565222740173, 0.07376158237457275, 0.001739089610055089, -0.21967142820358276, 0.10371451079845428, -0.007561031728982925, 0.15758849680423737, 0.16619694232940674, 0.033119697123765945, -0.07791094481945038, 0.10159295052289963, -0.05769847333431244, -0.13662569224834442, 0.09363782405853271, 0.11492188274860382, -0.17915092408657074, 0.02916034869849682, -0.051728833466768265, 0.015053833834826946, 0.0469246581196785, -0.06964744627475739, 0.014992563985288143, -0.045867640525102615, 0.18679216504096985, -0.08198107779026031, -0.11931876838207245, 0.12069699168205261, 0.02130059339106083, 0.005407736171036959, 0.03730443865060806, 0.09396644681692123, -0.07990182191133499, -0.029135078191757202, -0.05625958740711212, -0.020696908235549927, 0.2375553995370865, -0.028386102989315987, -0.13786770403385162, 0.025653667747974396, 0.07858192175626755, -0.06656935065984726, -0.06348109990358353, -0.027625687420368195, 0.007411840371787548, -0.18176117539405823, 0.18795062601566315, -0.04539163038134575, 0.04187370836734772, 0.0032939270604401827, 0.003082358045503497, -0.09765772521495819, 0.33752310276031494, -0.062401123344898224, 0.1662413328886032, 0.006940410006791353, -0.24721698462963104, 0.026527687907218933, -0.08108562231063843, -0.031044363975524902, 0.09345252811908722, -0.009536940604448318, 0.20912884175777435, 0.0988430380821228, 0.061405036598443985, -0.13477648794651031, -0.2332330346107483, 0.07945520430803299, -0.0056602004915475845, -0.09078090637922287, -0.022940874099731445, 0.09097302705049515, -0.06908614188432693, -0.09315057843923569, -0.0978039875626564, 0.004643356893211603, 0.032581429928541183, -0.07241835445165634, -0.01809953711926937, 0.010409300215542316, -0.01706145890057087, 0.054187748581171036, 0.15505476295948029, -0.13946762681007385, -0.1498679667711258, 0.023936083540320396, -0.08091772347688675, -0.1886083036661148, 0.06585990637540817, 0.12148650735616684, 0.13072039186954498, 0.048865124583244324, 0.22947123646736145, 0.1957591325044632, 0.034466322511434555, -0.13325068354606628, 0.020187504589557648, -0.16849946975708008, 0.003670099889859557, 0.1475266069173813, 0.10603707283735275, 0.03643764927983284, -0.0898333489894867, -0.03603415563702583, -0.041833627969026566, 0.1234741285443306, -0.07368386536836624, 0.18092088401317596, -0.06544265151023865, 0.11675190180540085, -0.10189258307218552, 0.082865409553051, -0.38117507100105286, -0.05847067013382912, -0.04382120072841644, -0.0511687733232975, -0.08466308563947678, -0.03749954700469971, -0.023556360974907875, -0.0072957491502165794, 0.06675532460212708, -0.10964879393577576, -0.0879608616232872, 0.08631975203752518, 0.4059608578681946, -0.079434834420681, -0.03878321871161461, -0.08050896227359772, -0.07659777253866196, 0.11517121642827988, 0.017957836389541626, -0.13086551427841187, 0.0368725061416626, -0.1798296570777893, 0.1834181845188141, -0.12582823634147644, 0.053418297320604324, 0.13813312351703644, 0.13574577867984772, -0.1793738603591919, 0.05466299504041672, 0.05959579348564148, -0.10000398755073547, 0.013495256192982197, -0.04878437519073486, 0.03951380029320717, 0.060551997274160385, -0.10191396623849869, 0.1060808002948761, -0.10011527687311172, -0.06375174969434738, 0.17695622146129608, 0.1714692860841751, 0.002555117243900895, -0.09990854561328888, -0.1409221738576889, -0.09608370065689087, -0.0720420628786087, 0.12638746201992035, -0.05341852083802223, 0.035054706037044525, 0.009577367454767227, -0.14170902967453003, -0.2634734809398651, 0.09544236958026886, -0.06715261191129684, 0.06529809534549713, -0.12736384570598602, -0.05753907561302185, 0.19933702051639557, -0.024942681193351746, 0.037959396839141846, -0.13739387691020966, 0.05840611830353737, -0.0651291012763977, 0.005140738096088171, 0.12978209555149078, 0.011408054269850254, -0.001032166532240808, -0.11993131041526794, 0.13735346496105194, -0.12370529025793076, 0.1501857340335846, 0.33883556723594666, 0.025557614862918854, -0.0011064555728808045, -0.10079220682382584, 0.07621105760335922, 0.0462745763361454, 0.03343738988041878, 0.13633288443088531, 0.1571444571018219, -0.1559985727071762, -0.2040400356054306, -0.05257808789610863, -0.0347789041697979, 0.015655038878321648, -0.012075693346560001, -0.10118712484836578, 0.050758980214595795, 0.07355605065822601, 0.11429502815008163, 0.027505477890372276, -0.21250925958156586, -0.1645742505788803, -0.10872416198253632, -0.16305461525917053, -0.16175727546215057, 0.08218202739953995, 0.15439486503601074, -0.10996339470148087, -0.06929095834493637, -0.03329412639141083, -0.03909853473305702, 0.21998967230319977, 0.020299211144447327, 0.04099743068218231, -0.18119922280311584, 0.12574687600135803, -0.05065596476197243, 0.03266848996281624, 0.13288713991641998, 0.27368345856666565, 0.005609367974102497, -0.2304926961660385, -0.1163686215877533, -0.1401858776807785, -0.02912239357829094, -0.02583571895956993, -0.06387125700712204, 0.07828567177057266, -0.09361742436885834, -0.09617277979850769, -0.02827151119709015, -0.09222362190485, -0.030446771532297134, -0.01829874888062477, -0.05553115904331207, 0.0010623815469443798, -0.2047811895608902, 0.029483085498213768, -0.02105266973376274, 0.2523368000984192, -0.09313555806875229, -0.058380864560604095, 0.03663075342774391, -0.020121853798627853, -0.04314581677317619, -0.07633138447999954, 0.021892625838518143, 0.08281437307596207, -0.016181448474526405, 0.16536200046539307, -0.21573857963085175, 0.03549211472272873, 0.07449404895305634, 0.032916393131017685, 0.11029629409313202, -0.06183793023228645, -0.02636490762233734, 0.07810435444116592, -0.2470710724592209, -0.007631322368979454, -0.14019308984279633, -0.08666537702083588, 0.015593011863529682, 0.17698459327220917, -0.007051610853523016, 0.1719602793455124, -0.07134418934583664, -0.10694103688001633, -0.1058366522192955, 0.05381719022989273, -0.18003544211387634, -0.1524217575788498, -0.1137453243136406, 0.09608666598796844, -0.06844864785671234, 0.07343243807554245, -0.13866297900676727, 0.28229257464408875, 0.08861158788204193, 0.024330435320734978, 0.1745336502790451, 0.04472380876541138, 0.1496230959892273, 0.030764564871788025, -0.10150666534900665, 0.05260895937681198, -0.006361396051943302, -0.03178685903549194, -0.04824523255228996, 0.06691624969244003, 0.028965305536985397, -0.04547196999192238, -0.2591008245944977, 0.03253612667322159, 0.013876332901418209, -0.16350515186786652, -0.13268019258975983, 0.12599369883537292, 0.009879805147647858, 0.020593473687767982, 0.10044652223587036, -0.06423850357532501, 0.1310773640871048, -0.07376181334257126, -0.13646768033504486, 0.024341052398085594, 0.08901951462030411, 0.1297370344400406, 0.004478820133954287, 0.009073935449123383, 0.09024157375097275, 0.08723757416009903, 0.06780268251895905, 0.009561278857290745, 0.1575983613729477, 0.07662410289049149, -0.025019565597176552, -0.11270161718130112, -0.031499624252319336, -0.016127731651067734, -0.0863371267914772, 0.09035221487283707, 0.01752837561070919, 0.06364718079566956, -0.03167463839054108, 0.04486452043056488, 0.06737207621335983, 0.11363110691308975, 0.23502503335475922, -0.11934687942266464, -0.05962814763188362, -0.05075326934456825, -0.1098441630601883, -0.13804280757904053, 0.13775622844696045, 0.026757964864373207, 0.040813710540533066, 0.013855548575520515, -2.4111954651785786e-32, -0.06583833694458008, 0.035972073674201965, -0.2013656049966812, 0.12310206145048141, -0.2343577891588211, 0.0040361653082072735, -0.010110235773026943, -0.002274736063554883, -0.16523723304271698, -0.0688704252243042, -0.059748921543359756, 0.02679240144789219, -0.030469277873635292, -0.05476294085383415, -0.12783855199813843, 0.08844785392284393, -0.05013028159737587, 0.0016326269833371043, 0.054447147995233536, 0.06789890676736832, 0.05390910431742668, 0.13505612313747406, 0.07858435064554214, 0.020782576873898506, -0.04845079779624939, -0.11882081627845764, -0.08040329813957214, 0.02556326985359192, 0.05125762149691582, -0.14265695214271545, -0.08070424199104309, 0.15616434812545776, 0.046325843781232834, -0.1170244961977005, -0.05408458039164543, -0.009203819558024406, -0.17592820525169373, -0.20269344747066498, -0.10686343908309937, 0.04602440074086189, -0.022294161841273308, 0.07115869224071503, 0.11836469918489456, -0.2156343013048172, 0.03207899630069733, 0.0481657050549984, 0.11239448189735413, -0.044193945825099945, -0.08192551136016846, -0.08696368336677551, 0.14354348182678223, 0.031523697078228, -0.12842068076133728, 0.11097800731658936, 0.1500021070241928, 0.015323693864047527, 0.02587147057056427, -0.034497763961553574, -0.15795370936393738, 0.016341563314199448, -0.045697346329689026, -0.18505854904651642, -0.006239168345928192, 0.03460045903921127, 0.18302112817764282, 0.14078295230865479, 0.1573060303926468, -0.15100497007369995, 0.03746538609266281, 0.012902113609015942, -0.08279366791248322, 0.08593723177909851, -0.04829512536525726, 0.022959785535931587, -0.13793808221817017, -0.1603192687034607, -0.3762355446815491, 0.0532565675675869, 0.05363934859633446, 0.012724349275231361, -0.03447941318154335, 0.07896048575639725, -0.051015015691518784, 0.03771021589636803, 0.10913551598787308, 0.10090819746255875, -0.011448967270553112, 0.061041660606861115, -0.19185686111450195, -0.033900339156389236, -0.07559201121330261, 0.19063925743103027, 0.029630474746227264, -0.10599373281002045, -0.02981875278055668, 0.20261186361312866, 0.01967320218682289, 0.06043066084384918, -0.047750137746334076, -0.11977813392877579, -0.12242396175861359, -0.039038076996803284, -0.11629418283700943, 0.11826735734939575, 0.23039168119430542, 0.04590460658073425, 0.09185729920864105, 0.0035302385222166777, -0.1727556735277176, -0.006836432032287121, 0.011814644560217857, -0.026029139757156372, 0.2163352370262146, 0.09219451993703842, 0.08813470602035522, 0.028354134410619736, -0.054707400500774384, -0.09731333702802658, 0.253928005695343, 0.15391309559345245, -0.14117541909217834, 0.024636879563331604, -0.19906501471996307, -0.16167119145393372, 0.026904411613941193, 0.07018552720546722, -0.07175194472074509, 0.05934719741344452, 0.0605982169508934, 0.1369897574186325, -0.007635628338903189, -0.07396459579467773, 7.200533218565397e-7, -0.247977614402771, 0.09390296787023544, -0.15046727657318115, 0.12045445293188095, -0.1328408420085907, 0.022633865475654602, -0.23024526238441467, 0.033136576414108276, 0.012189652770757675, 0.1016201302409172, 0.10516154766082764, -0.013839706778526306, 0.025377925485372543, -0.006324962247163057, 0.09471983462572098, -0.09681763499975204, -0.04272329807281494, 0.11549337953329086, -0.09565715491771698, -0.09684640169143677, 0.22313110530376434, 0.03101915307343006, 0.1586286574602127, -0.12172802537679672, 0.08539462089538574, -0.21701861917972565, -0.0033521426375955343, -0.08085788786411285, 0.0758892074227333, 0.08976653218269348, 0.10943493992090225, 0.07165678590536118, -0.1875613033771515, 0.19291222095489502, 0.09242052584886551, -0.027415277436375618, -0.12036269903182983, -0.04147208482027054, 0.061519645154476166, 0.08457495272159576, 0.11389759927988052, -0.02325955033302307, 0.069098100066185, -0.13348038494586945, 0.236164852976799, 0.12029031664133072, 0.02265128679573536, 0.011234516277909279, -0.12231973558664322, 0.06794098019599915, 0.28921565413475037, 0.18710675835609436, -0.0003932853287551552, -0.00885069090873003, -0.051150452345609665, 0.13851560652256012, -0.12471349537372589, -0.08650042116641998, -0.02521027997136116, -0.012924756854772568, -0.10543490946292877, -0.04842482879757881, 0.03782909736037254, -0.05125093460083008, 0.015234282240271568, -0.04194860905408859, 0.06688646227121353, -9.857045889860385e-35, 0.10774678736925125, -0.09697380661964417, 0.12727825343608856, -0.18041551113128662, 0.01301558967679739, -0.06285212934017181, 0.2355063110589981, -0.2524064779281616, 0.19117119908332825, -0.1422910988330841, 0.023316388949751854 ]
https://github.com/huggingface/datasets/issues/2678
Import Error in Kaggle notebook
> You may need to restart your kaggle notebook before after installing a newer version of `pyarrow`. > > If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail It works after restarting. My bad, I forgot to restart the notebook. Sorry for the trouble!
## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1
57
Import Error in Kaggle notebook ## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1 > You may need to restart your kaggle notebook before after installing a newer version of `pyarrow`. > > If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail It works after restarting. My bad, I forgot to restart the notebook. Sorry for the trouble!
[ -0.04196104779839516, 0.14389929175376892, -0.14309073984622955, -0.22701331973075867, 0.23297980427742004, 0.08714193105697632, 0.15904991328716278, 0.08154177665710449, -0.06156422197818756, 0.11161749064922333, -0.026963133364915848, 0.08971169590950012, -0.03788905590772629, -0.020501991733908653, 0.07205362617969513, 0.04328295961022377, 0.07674405723810196, 0.08817687630653381, 0.029438333585858345, 0.014733705669641495, 0.015752257779240608, 0.0069632213562726974, 0.058484118431806564, -0.05207084119319916, 0.1113014966249466, -0.12870344519615173, -0.053080957382917404, 0.05255211889743805, -0.06683222949504852, -0.1318768411874771, 0.189799502491951, -0.05643986910581589, 0.059153348207473755, 0.18875664472579956, 0.0000052289169616415165, -0.07198751717805862, 0.12688717246055603, 0.044542331248521805, -0.05469668656587601, -0.06953921914100647, 0.07022411376237869, -0.01919168047606945, -0.011652253568172455, -0.07921389490365982, 0.24885044991970062, -0.1732725352048874, -0.08924613893032074, 0.11710669100284576, 0.16981157660484314, 0.08760683238506317, 0.13906654715538025, 0.1281714141368866, 0.24909216165542603, -0.09835159033536911, 0.09454216063022614, -0.09779553860425949, -0.03264337033033371, 0.10792641341686249, -0.14607247710227966, -0.1409592628479004, -0.015115905553102493, -0.01556825265288353, -0.08873182535171509, -0.08381005376577377, 0.03417754918336868, 0.013234095647931099, 0.0003490378730930388, -0.0488511323928833, -0.0707586407661438, 0.29647865891456604, 0.064296193420887, 0.0670795738697052, -0.10506081581115723, -0.004080119542777538, 0.0537729486823082, -0.09631842374801636, 0.021908225491642952, 0.0039001714903861284, -0.15073885023593903, 0.09669997543096542, 0.04354225844144821, -0.10642398148775101, 0.004076997749507427, -0.08836901187896729, -0.07894471287727356, 0.024779638275504112, -0.09843850880861282, 0.11132969707250595, 0.038429733365774155, -0.24254940450191498, 0.33006951212882996, 0.03297033533453941, -0.08495716005563736, -0.1456761509180069, 0.09826277941465378, -0.05456047132611275, -0.008611840195953846, -0.14122866094112396, -0.04762473329901695, -0.018275845795869827, -0.004274532664567232, -0.019564282149076462, 0.015453997068107128, 0.19293798506259918, 0.13656120002269745, 0.12458217889070511, 0.007527590729296207, 0.06176276132464409, -0.025541000068187714, 0.08708766847848892, 0.11079706251621246, 0.08148737996816635, -0.10740366578102112, -0.19988557696342468, 0.0799252912402153, 0.05790351331233978, 0.20950178802013397, 0.060088519006967545, -0.19821253418922424, 0.12729135155677795, -0.03096710331737995, 0.035870663821697235, -0.14660656452178955, 0.09493324160575867, 0.1463448703289032, -0.012371872551739216, 0.0012127700028941035, 0.039141446352005005, 0.03171142563223839, 0.07326004654169083, -0.02697308361530304, 0.08387362211942673, 0.045617442578077316, -0.11059720069169998, 0.13266508281230927, -0.1171804741024971, -0.026141555979847908, -0.09526415169239044, 0.040204234421253204, 0.06875461339950562, 0.08915489912033081, -0.03246935084462166, -0.26367226243019104, 0.12277304381132126, 0.016031058505177498, 0.06142546236515045, 0.09347932040691376, -0.05206838995218277, -0.09691925346851349, 0.050528738647699356, -0.23831334710121155, 0.10700372606515884, -0.128241166472435, 0.10603361576795578, -0.011468463577330112, -0.03318988159298897, -0.10730943083763123, -0.0950385257601738, -0.2790580093860626, -0.17416734993457794, -0.012759741395711899, -0.06279654800891876, 0.06630248576402664, -0.06043967604637146, 0.08899743109941483, 0.11958082020282745, 0.034371454268693924, 0.06412924081087112, -0.012299844063818455, -0.028947273269295692, 0.08058234304189682, -0.005517660640180111, -0.11754437536001205, 0.08508565276861191, -0.05671851709485054, 0.08551878482103348, 0.13311979174613953, -0.02658133953809738, -0.27171140909194946, -0.03395421802997589, 0.08553299307823181, -0.12875336408615112, -0.024148864671587944, -0.11100047826766968, -0.011800751090049744, 0.10431777685880661, 0.027155514806509018, 0.09524568915367126, -0.06742352992296219, -0.1658412516117096, 0.03869263827800751, 0.2024124562740326, -0.014313099905848503, 0.07201311737298965, 0.24567700922489166, -0.2571207284927368, 0.08380722999572754, -0.2190382033586502, 0.11256648600101471, -0.12985554337501526, 0.05250629037618637, -0.1420835256576538, 0.04505045711994171, -0.06149892508983612, 0.07980983704328537, -0.014736115001142025, 0.0030373590998351574, -0.06111639365553856, 0.004229248035699129, -0.07814513146877289, -0.1534777730703354, -0.04584389179944992, -0.15600617229938507, 0.09283797442913055, -0.014735965058207512, -0.02783670835196972, 0.07315115630626678, 0.002525970106944442, -0.21380656957626343, 0.10741418600082397, -0.006974304560571909, 0.1562531441450119, 0.16555768251419067, 0.035527754575014114, -0.07777543365955353, 0.1003088727593422, -0.060711026191711426, -0.13893111050128937, 0.095127634704113, 0.11526928842067719, -0.18167786300182343, 0.027775157243013382, -0.05018248409032822, 0.0161820650100708, 0.04630258306860924, -0.07018447667360306, 0.012281880713999271, -0.05190327391028404, 0.18724213540554047, -0.07571816444396973, -0.12307313829660416, 0.1205623596906662, 0.01966029405593872, 0.009497188031673431, 0.045160360634326935, 0.09552562981843948, -0.07819917798042297, -0.03219025954604149, -0.050528500229120255, -0.024156702682375908, 0.2393815964460373, -0.03265717998147011, -0.1395278424024582, 0.026232780888676643, 0.077607162296772, -0.06693549454212189, -0.06599591672420502, -0.028869222849607468, 0.010921270586550236, -0.18100085854530334, 0.18965961039066315, -0.04286052659153938, 0.04095306620001793, 0.006200437434017658, 0.008663760498166084, -0.0942537859082222, 0.3371807634830475, -0.06774670630693436, 0.16664782166481018, 0.007436483167111874, -0.24945898354053497, 0.028746305033564568, -0.07757987827062607, -0.027861230075359344, 0.09235035628080368, -0.007223978638648987, 0.2071998566389084, 0.10284268110990524, 0.06040366366505623, -0.1399177461862564, -0.23577998578548431, 0.08068080991506577, -0.0034440485760569572, -0.09130923449993134, -0.019192326813936234, 0.0943169817328453, -0.06466589123010635, -0.09912458807229996, -0.10024847090244293, 0.00505606597289443, 0.031974900513887405, -0.06839076429605484, -0.015540359541773796, 0.010265100747346878, -0.014140534214675426, 0.05569557845592499, 0.15935872495174408, -0.1432516723871231, -0.1510327011346817, 0.029359862208366394, -0.07910456508398056, -0.18892551958560944, 0.06487276405096054, 0.12333308905363083, 0.13182373344898224, 0.04798276722431183, 0.22789528965950012, 0.19667254388332367, 0.03499096259474754, -0.13582560420036316, 0.023342719301581383, -0.170754075050354, 0.0026332822162657976, 0.14655037224292755, 0.1060023307800293, 0.03330998867750168, -0.09028103202581406, -0.035479240119457245, -0.048699937760829926, 0.12442881613969803, -0.07696884870529175, 0.181619793176651, -0.062249112874269485, 0.12118281424045563, -0.10115040838718414, 0.08421512693166733, -0.377706915140152, -0.06212104111909866, -0.03874046355485916, -0.0528767928481102, -0.08339671045541763, -0.040545206516981125, -0.024441415444016457, -0.010808350518345833, 0.0640176460146904, -0.10888228565454483, -0.08914414048194885, 0.08666272461414337, 0.4053189754486084, -0.07947573810815811, -0.03391706943511963, -0.07189994305372238, -0.07672273367643356, 0.11555460840463638, 0.018384965136647224, -0.13162121176719666, 0.03395729511976242, -0.1795845925807953, 0.18582123517990112, -0.13004489243030548, 0.05428333207964897, 0.1401834636926651, 0.1313507854938507, -0.17802368104457855, 0.058497991412878036, 0.06363943219184875, -0.10404354333877563, 0.010794218629598618, -0.052427858114242554, 0.04152706637978554, 0.05924230068922043, -0.10349519550800323, 0.10707980394363403, -0.10035211592912674, -0.05954717844724655, 0.17766204476356506, 0.17251357436180115, -0.002581201493740082, -0.09780444204807281, -0.14392828941345215, -0.10125283896923065, -0.0734119787812233, 0.12999290227890015, -0.04850432276725769, 0.0339338593184948, 0.011129096150398254, -0.14497151970863342, -0.2704108953475952, 0.09159447997808456, -0.06693090498447418, 0.06616336107254028, -0.12255331873893738, -0.060572557151317596, 0.19674712419509888, -0.027582023292779922, 0.04108136147260666, -0.13574182987213135, 0.0636463388800621, -0.06404122710227966, 0.002748413011431694, 0.13013513386249542, 0.010109461843967438, 0.0003828420885838568, -0.11580919474363327, 0.1364293247461319, -0.12346793711185455, 0.14433859288692474, 0.3418741524219513, 0.027802906930446625, -0.0019987698178738356, -0.10484052449464798, 0.07904752343893051, 0.04689965769648552, 0.0339001826941967, 0.12912698090076447, 0.15759578347206116, -0.155864879488945, -0.20341409742832184, -0.060076866298913956, -0.040893517434597015, 0.01661135070025921, -0.010470706969499588, -0.09922762960195541, 0.048320505768060684, 0.07564975321292877, 0.11583082377910614, 0.025587061420083046, -0.2201475352048874, -0.16820868849754333, -0.10513394325971603, -0.16706088185310364, -0.15872326493263245, 0.07610125094652176, 0.15088416635990143, -0.111897774040699, -0.06870781630277634, -0.03135891631245613, -0.04289793595671654, 0.21597172319889069, 0.019800927489995956, 0.04618746042251587, -0.18080271780490875, 0.1277862787246704, -0.04703905060887337, 0.03152880445122719, 0.13213133811950684, 0.27329885959625244, 0.006099325604736805, -0.22719572484493256, -0.11343333125114441, -0.13343869149684906, -0.03125900402665138, -0.02092692255973816, -0.06642590463161469, 0.07990863919258118, -0.09467129409313202, -0.09418468177318573, -0.029377050697803497, -0.09449001401662827, -0.028788315132260323, -0.01797848381102085, -0.05628441274166107, 0.004006558563560247, -0.2049819678068161, 0.03386177495121956, -0.01989787258207798, 0.24910962581634521, -0.09624983370304108, -0.0601155050098896, 0.035279780626297, -0.02125125378370285, -0.04159574210643768, -0.07329025119543076, 0.023289410397410393, 0.08722641319036484, -0.020937105640769005, 0.15542709827423096, -0.21951672434806824, 0.0399002730846405, 0.07131850719451904, 0.029758580029010773, 0.10995599627494812, -0.058358993381261826, -0.027864744886755943, 0.07633101940155029, -0.2489911913871765, -0.011284628883004189, -0.14144596457481384, -0.08998771756887436, 0.014058747328817844, 0.18157193064689636, -0.006726352497935295, 0.17581890523433685, -0.06937379390001297, -0.11062337458133698, -0.10688578337430954, 0.05687611922621727, -0.18602922558784485, -0.15177835524082184, -0.11420038342475891, 0.09512991458177567, -0.07013136148452759, 0.07109671831130981, -0.13605527579784393, 0.2816365957260132, 0.08820090442895889, 0.02727312594652176, 0.17161449790000916, 0.0351300910115242, 0.1443791538476944, 0.03373825550079346, -0.10254266113042831, 0.048568177968263626, -0.0043493518605828285, -0.03329514339566231, -0.05422670766711235, 0.0690423771739006, 0.02514071948826313, -0.0444471500813961, -0.259492963552475, 0.03359662741422653, 0.017767952755093575, -0.16334176063537598, -0.13404004275798798, 0.12633216381072998, 0.009793544188141823, 0.018945954740047455, 0.1002279594540596, -0.06390851736068726, 0.13055430352687836, -0.07103186845779419, -0.13532017171382904, 0.02480294741690159, 0.0863281786441803, 0.1311827003955841, 0.0032974674832075834, 0.012053897604346275, 0.09044676274061203, 0.08645645529031754, 0.07145390659570694, 0.013290476985275745, 0.15868310630321503, 0.07359395176172256, -0.030459024012088776, -0.11243646591901779, -0.03362920135259628, -0.018366634845733643, -0.08830825984477997, 0.09551708400249481, 0.019323378801345825, 0.07047096639871597, -0.031423721462488174, 0.048042286187410355, 0.0674632117152214, 0.11662979423999786, 0.23679430782794952, -0.11683890968561172, -0.05867990851402283, -0.04854410141706467, -0.10735564678907394, -0.14260128140449524, 0.14235518872737885, 0.030465053394436836, 0.042232222855091095, 0.011373980902135372, -2.399868401614055e-32, -0.06547331809997559, 0.04012572020292282, -0.202500581741333, 0.12421459704637527, -0.2384866178035736, 0.004713338799774647, -0.006129526533186436, -0.0026432799641042948, -0.16017493605613708, -0.07071125507354736, -0.062396638095378876, 0.029861262068152428, -0.02979302778840065, -0.05458352342247963, -0.13077478110790253, 0.08986900001764297, -0.04966149479150772, 0.0007496894104406238, 0.061394184827804565, 0.06967200338840485, 0.0480927936732769, 0.13476496934890747, 0.0834450051188469, 0.027949076145887375, -0.056490037590265274, -0.11613339185714722, -0.0790313258767128, 0.02587793581187725, 0.04468546062707901, -0.14256413280963898, -0.07874278724193573, 0.15791086852550507, 0.04814281314611435, -0.11513378471136093, -0.054673124104738235, -0.008469152264297009, -0.1751319319009781, -0.21015900373458862, -0.11245408654212952, 0.05179404839873314, -0.02773757092654705, 0.07267245650291443, 0.12186232954263687, -0.21885979175567627, 0.02682121843099594, 0.05131246894598007, 0.111080601811409, -0.04719534516334534, -0.07992157340049744, -0.09156005829572678, 0.14482590556144714, 0.03147061541676521, -0.1260901689529419, 0.11303461343050003, 0.15042994916439056, 0.020486952736973763, 0.02565251849591732, -0.03432166576385498, -0.16030903160572052, 0.014522863551974297, -0.044858891516923904, -0.18322807550430298, -0.008048772811889648, 0.04030943661928177, 0.18982435762882233, 0.14386382699012756, 0.15527042746543884, -0.1524875909090042, 0.03357258066534996, 0.013037781231105328, -0.08428169786930084, 0.08224660158157349, -0.04702017083764076, 0.022577792406082153, -0.14123529195785522, -0.16352425515651703, -0.3787574768066406, 0.05384770408272743, 0.053623586893081665, 0.018149929121136665, -0.033668480813503265, 0.08004248142242432, -0.0446549654006958, 0.035684265196323395, 0.10991093516349792, 0.100290946662426, -0.013770554214715958, 0.06536086648702621, -0.19465158879756927, -0.033691998571157455, -0.07751251012086868, 0.19378763437271118, 0.03215011954307556, -0.10586200654506683, -0.030343273654580116, 0.20341336727142334, 0.02085944637656212, 0.05936853960156441, -0.04767806828022003, -0.11357961595058441, -0.12145670503377914, -0.03827565163373947, -0.12059962749481201, 0.11853206902742386, 0.2330075353384018, 0.043895620852708817, 0.09056970477104187, 0.00043265728163532913, -0.17139199376106262, -0.004978279583156109, 0.015444508753716946, -0.026802221313118935, 0.2230454683303833, 0.09116112440824509, 0.08625426888465881, 0.028955141082406044, -0.0574035681784153, -0.09546530246734619, 0.260335236787796, 0.1479492485523224, -0.14312303066253662, 0.020086901262402534, -0.20050959289073944, -0.15774847567081451, 0.018625499680638313, 0.07000581920146942, -0.06831634789705276, 0.061692479997873306, 0.05951065570116043, 0.1387968361377716, -0.011195342056453228, -0.07169298827648163, 7.163535542531463e-7, -0.24700041115283966, 0.0922703817486763, -0.15062767267227173, 0.12306471914052963, -0.13124501705169678, 0.02410399541258812, -0.2243081033229828, 0.034922294318675995, 0.014316136948764324, 0.10519887506961823, 0.09992523491382599, -0.013983484357595444, 0.024934161454439163, -0.003501506522297859, 0.08879802376031876, -0.09812327474355698, -0.046116143465042114, 0.12092368304729462, -0.09135950356721878, -0.09433898329734802, 0.22475352883338928, 0.034783679991960526, 0.16606131196022034, -0.12099812179803848, 0.08016320317983627, -0.218702495098114, -0.0037773831281811, -0.08200936019420624, 0.07624561339616776, 0.0887347087264061, 0.10813257098197937, 0.0695563331246376, -0.19064565002918243, 0.19118748605251312, 0.09550849348306656, -0.03154205158352852, -0.11566746979951859, -0.04356284439563751, 0.061884358525276184, 0.08339601755142212, 0.12192856520414352, -0.020355187356472015, 0.06636787205934525, -0.13424624502658844, 0.23991252481937408, 0.11481974273920059, 0.02460610121488571, 0.013764732517302036, -0.1260923594236374, 0.06568477302789688, 0.29371708631515503, 0.18788255751132965, -0.0070785218849778175, -0.0061469245702028275, -0.05046245828270912, 0.13586093485355377, -0.12716726958751678, -0.08211930096149445, -0.025080157443881035, -0.01260865293443203, -0.10680010169744492, -0.051137201488018036, 0.041213031858205795, -0.04964488744735718, 0.011665004305541515, -0.037893738597631454, 0.07138078659772873, -1.021998780628268e-34, 0.10964112728834152, -0.09157394617795944, 0.1270502805709839, -0.1832876354455948, 0.012052359990775585, -0.06352818012237549, 0.2355218231678009, -0.25650832056999207, 0.19164009392261505, -0.14339648187160492, 0.02180699072778225 ]
https://github.com/huggingface/datasets/issues/2677
Error when downloading C4
Hi Thanks for reporting ! It looks like these files are not correctly reported in the list of expected files to download, let me fix that ;)
Hi, I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive: `datasets.load_dataset('c4', 'en')` Is this a bug or do I have some configurations missing on my server? Thanks! <img width="1014" alt="Снимок экрана 2021-07-20 в 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png">
27
Error when downloading C4 Hi, I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive: `datasets.load_dataset('c4', 'en')` Is this a bug or do I have some configurations missing on my server? Thanks! <img width="1014" alt="Снимок экрана 2021-07-20 в 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png"> Hi Thanks for reporting ! It looks like these files are not correctly reported in the list of expected files to download, let me fix that ;)
[ 0.16788440942764282, 0.01919667236506939, -0.0752440094947815, 0.10429438948631287, 0.19148313999176025, 0.20306840538978577, -0.019862839952111244, -0.03238455578684807, -0.020471476018428802, 0.17095933854579926, 0.08746326714754105, -0.1910640150308609, -0.06781182438135147, -0.11876905709505081, -0.15086817741394043, -0.007903162389993668, -0.07310695201158524, -0.05380572751164436, 0.0013281406136229634, -0.12175789475440979, -0.02713480405509472, 0.0917399451136589, 0.06897671520709991, -0.0542047843337059, 0.02923937700688839, -0.012847292236983776, 0.06669086962938309, 0.10095348209142685, -0.003605408128350973, -0.26737335324287415, 0.4562437832355499, -0.019389163702726364, -0.04277677461504936, 0.15247206389904022, 0.000005407651769928634, -0.09715750068426132, 0.059014055877923965, 0.0590021088719368, -0.02997690625488758, -0.008985714055597782, -0.013934841379523277, -0.03177130967378616, -0.04875781014561653, -0.06269127130508423, 0.020429696887731552, -0.03925275802612305, 0.09520057588815689, -0.014585346914827824, 0.043464500457048416, 0.27305173873901367, 0.022410215809941292, 0.018826531246304512, 0.037243545055389404, -0.22700020670890808, -0.033736370503902435, -0.03723474219441414, 0.12609679996967316, 0.1467134952545166, -0.25299128890037537, 0.01346460822969675, 0.07406357675790787, -0.029174383729696274, 0.00632832944393158, 0.03180791437625885, -0.14807625114917755, -0.10285110771656036, -0.03167327865958214, -0.18063513934612274, 0.0242057666182518, 0.14760203659534454, 0.16589471697807312, 0.13467304408550262, -0.05195926874876022, 0.05453138053417206, 0.05651705339550972, -0.0024963710457086563, 0.04484168812632561, 0.13621117174625397, -0.1310332715511322, 0.04753192141652107, -0.12794969975948334, 0.06351228803396225, -0.0041692061349749565, 0.09441860765218735, 0.04724734649062157, -0.1126064732670784, -0.14470645785331726, -0.016284622251987457, 0.05872229486703873, -0.001664225710555911, 0.03169974684715271, -0.02197977714240551, -0.03806859999895096, -0.101584292948246, 0.056584373116493225, 0.027947213500738144, -0.08365341275930405, 0.17820854485034943, -0.0052382927387952805, -0.014581183902919292, -0.28375470638275146, -0.32982951402664185, -0.08091137558221817, 0.12016260623931885, -0.043983086943626404, 0.01960179954767227, -0.0381799153983593, 0.07739059627056122, 0.07812090963125229, -0.07755150645971298, 0.021697914227843285, 0.04401933774352074, -0.18197645246982574, -0.017182333394885063, -0.021082084625959396, 0.11618594080209732, -0.07180564105510712, 0.022931652143597603, -0.010034080594778061, 0.09984464943408966, 0.05142879858613014, 0.029096726328134537, 0.016675632447004318, 0.07847259938716888, -0.08115388453006744, -0.024249037727713585, -0.03340442106127739, 0.13716965913772583, 0.00796220637857914, -0.12086957693099976, 0.06495732814073563, 0.10237456858158112, -0.07252104580402374, -0.07569438964128494, 0.21375010907649994, -0.059111446142196655, 0.04187329486012459, -0.10199068486690521, 0.21910691261291504, 0.06612817198038101, 0.08183006942272186, -0.2037743180990219, -0.04442206025123596, -0.045278169214725494, 0.04942788928747177, -0.05056273937225342, 0.10704059898853302, -0.1122826635837555, -0.008546222001314163, -0.13867464661598206, -0.09264455735683441, 0.2038072943687439, -0.15127769112586975, -0.05021914094686508, -0.09962543100118637, 0.08229026943445206, -0.05749191343784332, -0.05816427990794182, -0.11158603429794312, -0.07109322398900986, 0.1407776027917862, -0.027892300859093666, 0.14864954352378845, -0.12844286859035492, 0.04799910634756088, 0.0733603835105896, 0.04348098114132881, -0.007082954980432987, 0.04476780444383621, -0.08126703649759293, 0.17949418723583221, 0.060778990387916565, -0.07557321339845657, 0.06982378661632538, -0.06954572349786758, 0.08830039948225021, -0.11552859097719193, -0.04200475662946701, -0.3255521059036255, 0.05677065625786781, 0.006594433449208736, -0.1949968934059143, -0.005817302968353033, -0.09741319715976715, 0.08775855600833893, -0.03075885958969593, -0.13018850982189178, -0.11512090265750885, -0.014869310893118382, 0.010641835629940033, 0.09100646525621414, 0.06600959599018097, 0.14004673063755035, -0.1648714244365692, 0.10197903960943222, -0.17826633155345917, 0.045414458960294724, -0.0991281047463417, 0.05442488193511963, -0.2033369541168213, 0.09307127445936203, 0.013094921596348286, -0.08541376888751984, -0.056153278797864914, 0.01990848034620285, -0.05677445977926254, -0.15302272140979767, 0.0846085250377655, 0.07009115815162659, -0.02973181940615177, -0.011435865424573421, -0.07681597769260406, -0.12318231910467148, 0.0011881248792633414, 0.06434519588947296, 0.11092125624418259, -0.11006291210651398, -0.018133345991373062, 0.0038352319970726967, 0.2529500126838684, 0.04184931144118309, 0.2261240929365158, -0.03761986643075943, -0.11397494375705719, 0.16276171803474426, 0.08691825717687607, 0.036565497517585754, 0.13707171380519867, 0.04307769984006882, -0.08622076362371445, -0.13868027925491333, -0.046120867133140564, 0.04411211237311363, 0.049743153154850006, 0.023355890065431595, 0.02176707237958908, 0.06297136098146439, -0.1132233664393425, 0.15724709630012512, -0.24273809790611267, 0.06716281920671463, 0.15489734709262848, 0.06731140613555908, -0.06831686198711395, 0.16071997582912445, -0.10902927815914154, -0.0230526402592659, -0.003003346500918269, -0.032160017639398575, -0.10298659652471542, 0.29154399037361145, 0.08310702443122864, -0.13096660375595093, 0.10967479646205902, 0.08508304506540298, -0.07873833179473877, 0.05586337670683861, -0.109677255153656, -0.12680412828922272, -0.2507115602493286, 0.2663554847240448, 0.0168332289904356, -0.03287654370069504, 0.1339411735534668, 0.1913890242576599, -0.014428693801164627, 0.17836542427539825, 0.01996275782585144, 0.048905353993177414, 0.042462773621082306, -0.20367473363876343, 0.01295532938092947, -0.145730659365654, -0.09599460661411285, 0.01943974383175373, -0.1427512764930725, 0.046690914779901505, -0.025316700339317322, 0.03612386807799339, 0.011172744445502758, -0.12896926701068878, 0.05008205398917198, 0.15801061689853668, -0.1561281532049179, 0.15136979520320892, 0.06638395041227341, -0.1392236351966858, -0.05847959220409393, -0.09184561669826508, -0.054808780550956726, 0.0726960301399231, 0.1559535712003708, -0.029353931546211243, -0.13053666055202484, -0.22761692106723785, -0.1660996824502945, -0.22142593562602997, -0.12628905475139618, 0.025140857324004173, -0.06654666364192963, -0.06880057603120804, 0.05006936937570572, 0.11103541404008865, -0.0350489616394043, 0.08200381696224213, 0.05833587050437927, 0.23497524857521057, 0.011345742270350456, 0.028109339997172356, -0.13060778379440308, 0.09689431637525558, -0.04655846953392029, 0.11813568323850632, 0.13505439460277557, -0.06257314234972, 0.022167842835187912, -0.1803600937128067, 0.04740019515156746, -0.03537975996732712, 0.10607856512069702, -0.006012370809912682, 0.15241220593452454, -0.012586098164319992, -0.0006692863535135984, -0.08311860263347626, -0.06787246465682983, -0.219940647482872, 0.10245668143033981, -0.06630022823810577, 0.017824416980147362, -0.010625844821333885, 0.16221977770328522, -0.15474271774291992, -0.060795858502388, 0.09271542727947235, -0.08523593842983246, -0.1470635086297989, 0.026856033131480217, 0.28882473707199097, -0.11426641047000885, -0.024542219936847687, 0.015769947320222855, -0.06214151158928871, 0.05272509530186653, 0.0776645764708519, -0.0900699719786644, 0.1660729944705963, -0.0438532792031765, 0.003623776603490114, -0.19083881378173828, 0.01619880460202694, 0.11254152655601501, -0.05197404325008392, -0.01194601971656084, -0.014700081199407578, 0.1985693722963333, 0.01823773793876171, 0.08854847401380539, -0.07698952406644821, -0.21162699162960052, 0.10578103363513947, 0.04281472787261009, -0.08648556470870972, 0.04901933670043945, -0.1790389120578766, 0.13419176638126373, 0.005636184476315975, 0.1648046374320984, -0.0643511638045311, -0.13386812806129456, 0.05370436608791351, -0.04057176783680916, -0.016544431447982788, -0.028033507987856865, -0.03923109173774719, -0.10143038630485535, -0.11353965848684311, 0.02660266123712063, -0.0319114550948143, 0.007308783940970898, -0.06494881212711334, 0.03393479809165001, -0.037222836166620255, 0.21706722676753998, 0.15799161791801453, -0.004773815628141165, -0.12182729691267014, 0.024401666596531868, 0.05865379422903061, 0.10779578238725662, 0.008038505911827087, -0.1427643895149231, -0.12146513164043427, 0.013686875812709332, 0.16530930995941162, -0.09830199182033539, 0.034223269671201706, 0.1709328442811966, 0.14833757281303406, -0.19305121898651123, 0.09055887162685394, 0.022794459015130997, -0.07341107726097107, 0.23208193480968475, 0.024668119847774506, 0.12510743737220764, 0.025539150461554527, -0.09873392432928085, 0.0294224601238966, -0.10332529246807098, 0.12368760257959366, -0.01921861618757248, -0.026125382632017136, 0.08774303644895554, 0.07006639242172241, 0.09131729602813721, 0.032166987657547, -0.10224007815122604, -0.14500752091407776, -0.12466853857040405, -0.1814945936203003, -0.055997952818870544, 0.1251293420791626, 0.2070302963256836, -0.03652287647128105, -0.028872229158878326, 0.16473925113677979, 0.005302686709910631, -0.02509269118309021, -0.04147197678685188, 0.04712710529565811, -0.03734999895095825, 0.018254786729812622, -0.06922032684087753, -0.09416218847036362, 0.08555136620998383, 0.31502869725227356, -0.184738889336586, -0.11716677993535995, -0.08233354985713959, -0.2277127355337143, -0.07243502140045166, 0.008426180109381676, -0.09423622488975525, -0.05413390323519707, 0.07536610215902328, 0.05371324345469475, 0.015704182907938957, 0.16196024417877197, -0.13404951989650726, -0.1427210569381714, -0.17679399251937866, -0.036897748708724976, -0.1768297553062439, -0.07335632294416428, 0.08387120068073273, 0.16234828531742096, 0.03247658908367157, -0.04689580947160721, -0.12827831506729126, 0.11980831623077393, -0.09026935696601868, -0.07482413202524185, -0.10008087009191513, 0.03730320557951927, 0.017332250252366066, 0.0967162624001503, -0.1446683704853058, -0.07194194942712784, 0.127290278673172, -0.026015451177954674, -0.02387825958430767, -0.11875344812870026, -0.006178331561386585, 0.19502604007720947, 0.0765230730175972, -0.010452107526361942, -0.08314555138349533, -0.02424352802336216, -0.020130237564444542, 0.11042585968971252, -0.047654882073402405, 0.07947011291980743, -0.16507136821746826, 0.026759212836623192, 0.1346212476491928, 0.02233896218240261, -0.12275643646717072, 0.0396924689412117, -0.071169413626194, 0.11882270127534866, -0.02020212635397911, 0.0076997289434075356, -0.08403969556093216, 0.1644815355539322, -0.07773546129465103, 0.08695453405380249, 0.19674861431121826, 0.03593190759420395, 0.13385173678398132, 0.12965784966945648, 0.009779738262295723, -0.007936394773423672, -0.048247456550598145, -0.1155296266078949, -0.05999937653541565, 0.006780467461794615, -0.2203586846590042, -0.012376219034194946, -0.1345468908548355, 0.02900860831141472, 0.027112318202853203, -0.07181970775127411, 0.11292743682861328, 0.03784363344311714, -0.227524533867836, 0.1697245091199875, -0.08329670131206512, 0.10095324367284775, -0.008228626102209091, 0.13280236721038818, -0.10672695189714432, -0.009022199548780918, 0.03804292529821396, -0.10440599173307419, 0.2097146213054657, 0.021655630320310593, 0.12709765136241913, 0.07012323290109634, 0.001970394980162382, -0.0937807708978653, 0.17122751474380493, 0.11694114655256271, -0.12524326145648956, -0.16063573956489563, 0.1094479188323021, -0.07253293693065643, -0.18305011093616486, -0.09131643176078796, -0.025037577375769615, 0.14423879981040955, -0.18782295286655426, -0.15286464989185333, 0.12522637844085693, 0.22774583101272583, 0.38297292590141296, -0.005022088065743446, -0.01775849238038063, -0.06903890520334244, -0.15350249409675598, -0.06851247698068619, 0.20663413405418396, 0.07174962013959885, 0.09063682705163956, 0.03263931721448898, -2.345123719517941e-32, -0.07048662006855011, 0.10108451545238495, -0.0314490906894207, 0.03057597577571869, -0.19889093935489655, 0.12631285190582275, -0.0879790335893631, -0.00803698692470789, -0.011249256320297718, -0.051237355917692184, 0.08207163214683533, -0.006976067554205656, 0.0034294251818209887, 0.008726066909730434, 0.020438162609934807, 0.032139264047145844, -0.1188175156712532, -0.016928203403949738, 0.03886120393872261, -0.002389823319390416, 0.124497190117836, -0.04153667762875557, 0.07236546277999878, -0.04346891865134239, 0.009578412398695946, 0.03501470759510994, -0.12631385028362274, -0.11772762984037399, 0.20571178197860718, 0.028406966477632523, -0.10138110816478729, 0.09742729365825653, 0.123888298869133, -0.0417126789689064, -0.17226706445217133, 0.04440034180879593, -0.04872189462184906, -0.02956993132829666, -0.17408762872219086, 0.2448769360780716, 0.11710025370121002, -0.11380540579557419, 0.020602695643901825, -0.19761568307876587, 0.05254542455077171, 0.24317702651023865, 0.06924455612897873, 0.032857492566108704, -0.026948140934109688, -0.04252682626247406, -0.012230295687913895, 0.0555121973156929, -0.0933467298746109, 0.10346337407827377, 0.0693928599357605, 0.15581853687763214, -0.03728041425347328, 0.05314286798238754, -0.058334290981292725, 0.029523642733693123, 0.10166831314563751, -0.0667487233877182, 0.031083567067980766, 0.05924714356660843, 0.004421573132276535, 0.07314160466194153, 0.21104007959365845, -0.054765742272138596, -0.13971513509750366, 0.02269783802330494, 0.0501481331884861, 0.04953441768884659, -0.05658850073814392, -0.037469543516635895, -0.06350082159042358, -0.04009010270237923, -0.021017959341406822, 0.15799489617347717, -0.03753970190882683, -0.0034501156769692898, 0.11810920387506485, -0.16673704981803894, 0.07634801417589188, 0.022664448246359825, 0.16103363037109375, 0.09796754270792007, -0.14308515191078186, -0.025535110384225845, -0.00407881336286664, -0.15377382934093475, 0.04611996188759804, 0.09079955518245697, -0.05017045512795448, -0.10087225586175919, -0.09917505830526352, 0.07566562294960022, -0.07169654220342636, 0.021901946514844894, -0.13949719071388245, -0.0836791917681694, -0.16300220787525177, 0.020946815609931946, -0.05270719528198242, -0.007924910634756088, 0.128836989402771, 0.02862641215324402, 0.029117269441485405, 0.03722844272851944, -0.17198792099952698, -0.009625178761780262, 0.08957388252019882, 0.21677358448505402, 0.24481622874736786, 0.10314316302537918, 0.20029769837856293, -0.0018982215551659465, 0.026783939450979233, -0.1665906310081482, 0.12259121984243393, -0.0373963862657547, -0.18857766687870026, -0.08595947921276093, -0.11293110996484756, 0.016515452414751053, 0.1347445249557495, 0.0100477933883667, -0.19657933712005615, 0.17290489375591278, 0.048037853091955185, -0.004900409374386072, 0.06443406641483307, -0.10698870569467545, 7.350710689024709e-7, -0.353450208902359, 0.09226123988628387, -0.12003155797719955, 0.09788691997528076, -0.0430680476129055, -0.09868348389863968, -0.27657991647720337, -0.004375893156975508, -0.20497258007526398, 0.17469514906406403, 0.07267056405544281, -0.07100909948348999, 0.028732944279909134, 0.16642233729362488, 0.06562760472297668, -0.04262319207191467, 0.006490213796496391, 0.03860282525420189, 0.07177514582872391, 0.13100576400756836, 0.1922919750213623, 0.045728202909231186, 0.12485837191343307, -0.1480787992477417, -0.14939847588539124, 0.03926496580243111, 0.000736200250685215, -0.07176831364631653, 0.09594368189573288, -0.10224397480487823, 0.036219097673892975, 0.10968891531229019, -0.07459954917430878, 0.33387014269828796, 0.018460655584931374, -0.04269465059041977, -0.09455739706754684, -0.04248616099357605, 0.1670033037662506, -0.013181573711335659, -0.013375179842114449, 0.05239061638712883, -0.04115423932671547, -0.06617369502782822, 0.07496011257171631, 0.20552295446395874, -0.040638212114572525, 0.0030235527083277702, -0.09803295880556107, -0.09678607434034348, -0.06393665075302124, 0.0834304690361023, -0.2052580565214157, -0.0917261615395546, -0.12576831877231598, -0.2124256193637848, 0.12709498405456543, -0.12314064055681229, 0.21363157033920288, -0.06945913285017014, 0.011504546739161015, -0.011612961068749428, 0.11162640154361725, 0.03128976747393608, 0.046871721744537354, 0.023914717137813568, -0.043248798698186874, 8.938954381360076e-35, 0.0999576523900032, -0.0020511632319539785, 0.03527113050222397, -0.13617098331451416, -0.052562713623046875, -0.0646091103553772, 0.27773264050483704, 0.0058508520014584064, -0.032281842082738876, -0.07112016528844833, -0.10390140116214752 ]
https://github.com/huggingface/datasets/issues/2677
Error when downloading C4
Alright this is fixed now. We'll do a new release soon to make the fix available. In the meantime feel free to simply pass `ignore_verifications=True` to `load_dataset` to skip this error
Hi, I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive: `datasets.load_dataset('c4', 'en')` Is this a bug or do I have some configurations missing on my server? Thanks! <img width="1014" alt="Снимок экрана 2021-07-20 в 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png">
31
Error when downloading C4 Hi, I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive: `datasets.load_dataset('c4', 'en')` Is this a bug or do I have some configurations missing on my server? Thanks! <img width="1014" alt="Снимок экрана 2021-07-20 в 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png"> Alright this is fixed now. We'll do a new release soon to make the fix available. In the meantime feel free to simply pass `ignore_verifications=True` to `load_dataset` to skip this error
[ 0.13533809781074524, 0.05455215647816658, -0.05732240527868271, 0.08859813213348389, 0.21746063232421875, 0.20331324636936188, -0.028861379250884056, -0.035443034023046494, -0.01993037760257721, 0.1733294278383255, 0.11083748191595078, -0.1691090315580368, -0.0597335509955883, -0.09897102415561676, -0.14939607679843903, 0.018245799466967583, -0.07918397337198257, -0.06557310372591019, 0.018219804391264915, -0.1196465939283371, -0.03707379102706909, 0.09743961691856384, 0.07321132719516754, -0.07375223189592361, 0.022459305822849274, -0.021759681403636932, 0.05940395966172218, 0.10005456209182739, 0.004430332221090794, -0.2751616835594177, 0.45167332887649536, -0.03229030966758728, -0.030488068237900734, 0.167421355843544, 0.0000055296122809522785, -0.08209695667028427, 0.07551154494285583, 0.06327035278081894, -0.04602754861116409, 0.0047379438765347, -0.005834914743900299, -0.02642529085278511, -0.04647042974829674, -0.06331334263086319, 0.02551428973674774, -0.027685360983014107, 0.07196619361639023, -0.02308156155049801, 0.026396619156003, 0.26720619201660156, 0.019552215933799744, 0.002621773164719343, 0.042331378906965256, -0.2182133048772812, -0.046010442078113556, -0.06946267932653427, 0.1325872242450714, 0.1397816687822342, -0.2484332174062729, 0.002120327204465866, 0.06435579806566238, -0.013413780368864536, -0.004210410639643669, -0.01143033429980278, -0.14750783145427704, -0.11684030294418335, -0.022095950320363045, -0.17840926349163055, 0.039235107600688934, 0.14472217857837677, 0.16644281148910522, 0.12964341044425964, -0.05826571211218834, 0.06368108838796616, 0.07194536924362183, -0.010035592131316662, 0.06315508484840393, 0.1301373690366745, -0.13601210713386536, 0.0358118899166584, -0.14729167520999908, 0.04313250258564949, -0.015248003415763378, 0.08000895380973816, 0.029020214453339577, -0.1310708075761795, -0.1355135291814804, -0.007506868336349726, 0.08251184970140457, 0.011262785643339157, 0.057814352214336395, -0.01597955822944641, -0.0517788790166378, -0.09264836460351944, 0.037689536809921265, 0.023687569424510002, -0.06597940623760223, 0.17632444202899933, -0.010140227153897285, -0.00912010669708252, -0.2776525020599365, -0.3136397898197174, -0.05480123683810234, 0.09918505698442459, -0.015674520283937454, 0.01889766938984394, -0.04053967446088791, 0.06858053803443909, 0.07674028724431992, -0.05691118910908699, 0.01879480667412281, 0.05479920282959938, -0.21228070557117462, -0.021829022094607353, -0.00310006202198565, 0.13239744305610657, -0.061166197061538696, 0.017490295693278313, 0.002703446662053466, 0.09719928354024887, 0.05103568360209465, 0.04824818670749664, 0.02649844065308571, 0.1080225259065628, -0.0625692829489708, -0.022464051842689514, -0.019923746585845947, 0.11131133139133453, -0.001124829170294106, -0.11838174611330032, 0.05411117151379585, 0.09709664434194565, -0.06410226970911026, -0.07295544445514679, 0.21056634187698364, -0.08359912037849426, 0.03967722877860069, -0.11734810471534729, 0.231021910905838, 0.07388491928577423, 0.0667632594704628, -0.20149245858192444, -0.04248321056365967, -0.02178637869656086, 0.0651191845536232, -0.06012776494026184, 0.10167744010686874, -0.11196345835924149, -0.017061389982700348, -0.12146744132041931, -0.07695769518613815, 0.17922751605510712, -0.1525171399116516, -0.05068511143326759, -0.0926809012889862, 0.07564588636159897, -0.036405064165592194, -0.05889017507433891, -0.11042110621929169, -0.07858207821846008, 0.13203772902488708, -0.0034000861924141645, 0.13284516334533691, -0.14231470227241516, 0.07915309816598892, 0.07391340285539627, 0.02448398247361183, 0.011408582329750061, 0.0339956060051918, -0.09993191808462143, 0.1694072186946869, 0.07056602835655212, -0.06329210847616196, 0.08138220012187958, -0.06439176946878433, 0.061218906193971634, -0.14709697663784027, -0.07282575964927673, -0.32875046133995056, 0.07805250585079193, 0.011588246561586857, -0.204247385263443, -0.004375518765300512, -0.10017578303813934, 0.06896296888589859, -0.023570308461785316, -0.1307171732187271, -0.09990932792425156, -0.03144083544611931, 0.011270066723227501, 0.08011406660079956, 0.055639851838350296, 0.15994401276111603, -0.14400124549865723, 0.0997011587023735, -0.17721889913082123, 0.02630079910159111, -0.1022486463189125, 0.048283617943525314, -0.19160616397857666, 0.0751974955201149, 0.0010065814713016152, -0.09150515496730804, -0.05941089987754822, 0.021085241809487343, -0.06339666992425919, -0.14904864132404327, 0.0762893408536911, 0.05209836736321449, 0.011609968729317188, -0.017420874908566475, -0.07657674700021744, -0.10777385532855988, 0.006178597919642925, 0.06851372867822647, 0.07769227027893066, -0.09536559879779816, -0.016291318461298943, 0.0030818511731922626, 0.2503845989704132, 0.04941685497760773, 0.2467660754919052, -0.031798236072063446, -0.12014511972665787, 0.15663909912109375, 0.05076434090733528, 0.04400508105754852, 0.1286918669939041, 0.056222159415483475, -0.0793321281671524, -0.14349840581417084, -0.05715534836053848, 0.04663602635264397, 0.06773943454027176, 0.02628943882882595, 0.02332664467394352, 0.05515006557106972, -0.10785873979330063, 0.15868975222110748, -0.2307908833026886, 0.018933724611997604, 0.1604895442724228, 0.05173315480351448, -0.04942680150270462, 0.169927716255188, -0.10369054973125458, -0.023051761090755463, 0.007926478050649166, -0.02726670168340206, -0.11701284348964691, 0.2772059738636017, 0.0741896703839302, -0.1496516317129135, 0.10426952689886093, 0.08774473518133163, -0.061570096760988235, 0.04021695256233215, -0.12546518445014954, -0.12002293020486832, -0.2777654230594635, 0.23188301920890808, 0.008637591265141964, -0.02881792187690735, 0.14718914031982422, 0.19363774359226227, -0.010174483060836792, 0.17169161140918732, 0.023690639063715935, 0.047427475452423096, 0.04628393426537514, -0.19734516739845276, 0.022930210456252098, -0.12885494530200958, -0.09832950681447983, 0.020179113373160362, -0.13185355067253113, 0.06893473863601685, -0.038140226155519485, 0.029942629858851433, -0.0034143917728215456, -0.12904928624629974, 0.05775827914476395, 0.1583881974220276, -0.13940739631652832, 0.1630387008190155, 0.07188749313354492, -0.11630037426948547, -0.06095718964934349, -0.09311416000127792, -0.07314079999923706, 0.06772656738758087, 0.16441355645656586, -0.02784423530101776, -0.11276825517416, -0.2231580764055252, -0.1718568503856659, -0.2112242877483368, -0.12154822796583176, 0.03176673874258995, -0.07834016531705856, -0.060033828020095825, 0.020655669271945953, 0.11328200250864029, -0.027193916961550713, 0.10188031941652298, 0.03820206969976425, 0.23212288320064545, 0.012810231186449528, 0.03305010870099068, -0.12401766330003738, 0.08725607395172119, -0.06443851441144943, 0.11900390684604645, 0.13408148288726807, -0.04902423545718193, 0.04416244104504585, -0.1751987338066101, 0.0348677895963192, -0.07119221240282059, 0.09069230407476425, -0.02494295872747898, 0.14407192170619965, -0.00853453204035759, 0.013679219409823418, -0.09228744357824326, -0.06239975616335869, -0.21830809116363525, 0.10617634654045105, -0.06698618829250336, -0.0021795067004859447, -0.0009234670433215797, 0.18671362102031708, -0.16715724766254425, -0.05356317386031151, 0.07536140084266663, -0.09247921407222748, -0.1537478268146515, 0.02156888321042061, 0.2645166218280792, -0.10875653475522995, -0.03308240324258804, 0.02006717026233673, -0.07298748940229416, 0.06436242908239365, 0.07442629337310791, -0.08869166672229767, 0.16472214460372925, -0.028248310089111328, 0.007814296521246433, -0.1922740936279297, -0.017198925837874413, 0.15682032704353333, -0.04530484601855278, -0.02602783963084221, -0.003925178200006485, 0.20902268588542938, 0.01250300370156765, 0.0931706428527832, -0.07682158797979355, -0.21334215998649597, 0.09703473746776581, 0.030991436913609505, -0.08383164554834366, 0.05746077373623848, -0.16955581307411194, 0.1033252477645874, 0.014060969464480877, 0.1474761664867401, -0.07186317443847656, -0.1417350172996521, 0.032839227467775345, -0.06724794209003448, -0.03402680158615112, -0.011177269741892815, -0.033936768770217896, -0.08966868370771408, -0.11244015395641327, 0.02275988832116127, -0.0014804037055000663, -0.0009540512692183256, -0.0586254820227623, 0.018052970990538597, -0.029707415029406548, 0.2245531976222992, 0.1681797206401825, 0.026319697499275208, -0.11775203049182892, 0.021033072844147682, 0.05389871820807457, 0.08516866713762283, -0.005372123327106237, -0.1377388834953308, -0.13188734650611877, -0.004483886528760195, 0.1657407581806183, -0.09847579896450043, 0.056996725499629974, 0.18610799312591553, 0.13955247402191162, -0.20091688632965088, 0.0873412936925888, 0.0428701676428318, -0.07970727235078812, 0.2495364546775818, 0.02597944810986519, 0.11605970561504364, 0.02545883320271969, -0.09308910369873047, 0.05926744267344475, -0.12547200918197632, 0.13096773624420166, -0.028651082888245583, -0.03844383731484413, 0.09142681956291199, 0.07776441425085068, 0.09449291974306107, 0.041463952511548996, -0.10686492919921875, -0.16921979188919067, -0.13954031467437744, -0.16722016036510468, -0.041452694684267044, 0.11605352908372879, 0.23375287652015686, -0.04146672412753105, -0.022351853549480438, 0.15235605835914612, 0.005989182274788618, -0.0422419048845768, -0.035410355776548386, 0.03763756901025772, -0.04859720915555954, 0.025741858407855034, -0.06614015251398087, -0.09272577613592148, 0.1055917739868164, 0.31182560324668884, -0.14911068975925446, -0.12185392528772354, -0.08542819321155548, -0.2102179378271103, -0.07950733602046967, 0.011463070288300514, -0.09232310950756073, -0.06410130858421326, 0.08519796282052994, 0.03713831678032875, -0.018986446782946587, 0.16353198885917664, -0.1503639817237854, -0.1279630959033966, -0.18955303728580475, 0.0002186252677347511, -0.16904258728027344, -0.038552820682525635, 0.08396248519420624, 0.18287760019302368, 0.03743681311607361, -0.06356387585401535, -0.12615977227687836, 0.1167055293917656, -0.089358389377594, -0.048454124480485916, -0.11219054460525513, 0.056589048355817795, 0.04136008396744728, 0.0826466903090477, -0.16238510608673096, -0.06165408715605736, 0.14172063767910004, -0.029137326404452324, -0.0026280542369931936, -0.11343575268983841, -0.01624879613518715, 0.16667397320270538, 0.07823311537504196, -0.01372280903160572, -0.0793694406747818, -0.0695989653468132, -0.018434273079037666, 0.10305023938417435, -0.0764545351266861, 0.07719646394252777, -0.15003277361392975, 0.011270673014223576, 0.1392507255077362, 0.010251032188534737, -0.11318372935056686, 0.01860692724585533, -0.06152016296982765, 0.10493295639753342, -0.028505276888608932, -0.0017979115946218371, -0.0751240998506546, 0.15011855959892273, -0.03656488284468651, 0.10063360631465912, 0.19821982085704803, 0.007097003050148487, 0.14382335543632507, 0.13855482637882233, -0.0034390012733638287, 0.0006972585688345134, -0.054921094328165054, -0.12474891543388367, -0.052893973886966705, 0.009114346466958523, -0.2148953229188919, -0.01882365345954895, -0.13130110502243042, 0.01664922758936882, 0.02253539115190506, -0.08095812797546387, 0.1311451494693756, 0.029295286163687706, -0.20700305700302124, 0.17104966938495636, -0.08947005867958069, 0.108265720307827, -0.006222386844456196, 0.13087303936481476, -0.0916607603430748, -0.007575605530291796, 0.03724251687526703, -0.11328142881393433, 0.21582111716270447, 0.03626811131834984, 0.15549907088279724, 0.09188199043273926, -0.0006473507382906973, -0.10171310603618622, 0.16769815981388092, 0.1350172907114029, -0.10752010345458984, -0.17358264327049255, 0.10225465893745422, -0.05989384278655052, -0.15745237469673157, -0.08245035260915756, -0.007905799895524979, 0.13831137120723724, -0.20276938378810883, -0.14821377396583557, 0.1297789216041565, 0.24298182129859924, 0.3682243227958679, 0.0009008756605908275, -0.032140735536813736, -0.04751856252551079, -0.17327643930912018, -0.055105943232774734, 0.19140253961086273, 0.10732582211494446, 0.0903351679444313, 0.0393853522837162, -2.37785697602132e-32, -0.07755374163389206, 0.0878683403134346, -0.060148730874061584, 0.03136582300066948, -0.21961453557014465, 0.12989450991153717, -0.10223011672496796, 0.004329833667725325, -0.010482854209840298, -0.05266602709889412, 0.061107683926820755, -0.0021637610625475645, -0.001069738995283842, 0.016399795189499855, 0.0009428855264559388, 0.05863892287015915, -0.10022634267807007, -0.03068293072283268, 0.06104482337832451, -0.013596832752227783, 0.13116806745529175, -0.03772788867354393, 0.05557885393500328, -0.04723529517650604, 0.020419850945472717, 0.03643244132399559, -0.10962647944688797, -0.10826220363378525, 0.2102430760860443, 0.015127738006412983, -0.1064143180847168, 0.08952990919351578, 0.12524795532226562, -0.03727206215262413, -0.1645473688840866, 0.0399584099650383, -0.051838818937540054, -0.013480554334819317, -0.15976983308792114, 0.2290680855512619, 0.11224489659070969, -0.1130683571100235, 0.02063172683119774, -0.21406453847885132, 0.019232196733355522, 0.25123167037963867, 0.07725443691015244, 0.027973338961601257, -0.03133333474397659, -0.06993769854307175, -0.018878983333706856, 0.05248474329710007, -0.10029008239507675, 0.07213595509529114, 0.07104123383760452, 0.13811080157756805, -0.03447661176323891, 0.03017067164182663, -0.08113069087266922, 0.02808963693678379, 0.1076357513666153, -0.07343384623527527, 0.02569541335105896, 0.06526514142751694, 0.015666306018829346, 0.07496469467878342, 0.2225722372531891, -0.05637970194220543, -0.1589774191379547, 0.014700889587402344, 0.04515649005770683, 0.030916858464479446, -0.05340055003762245, -0.05375528335571289, -0.039344821125268936, -0.06384016573429108, -0.03323409706354141, 0.14353138208389282, -0.047871749848127365, 0.0010583932744339108, 0.12307345122098923, -0.16166342794895172, 0.08774174004793167, 0.020955270156264305, 0.14946992695331573, 0.13259509205818176, -0.1381424367427826, -0.006581707391887903, -0.01113559864461422, -0.1279418170452118, 0.04468473419547081, 0.08214887231588364, -0.05980803072452545, -0.09305258095264435, -0.0951961874961853, 0.0730997771024704, -0.06340092420578003, 0.02182888798415661, -0.1325303614139557, -0.08511154353618622, -0.17574340105056763, 0.030884994193911552, -0.04299784451723099, 0.01517108827829361, 0.13507144153118134, 0.025256160646677017, 0.010365362279117107, 0.0532369539141655, -0.1785656213760376, -0.00036861503031104803, 0.10583269596099854, 0.2030150294303894, 0.2449430227279663, 0.10186853259801865, 0.21196261048316956, -0.006561377085745335, 0.052540116012096405, -0.14037828147411346, 0.11887063831090927, -0.04251036047935486, -0.1687580943107605, -0.049900222569704056, -0.09665451943874359, 0.02914784662425518, 0.1353951394557953, 0.0016813117545098066, -0.1822061836719513, 0.15905961394309998, 0.04828489199280739, -0.007685664109885693, 0.07369615882635117, -0.11802966147661209, 7.336581120398478e-7, -0.356022447347641, 0.1178707629442215, -0.10525351017713547, 0.09968350827693939, -0.03596225008368492, -0.1107148677110672, -0.25095292925834656, -0.020168857648968697, -0.18918989598751068, 0.17379073798656464, 0.054033998399972916, -0.06336413323879242, 0.019185075536370277, 0.17909638583660126, 0.03657570481300354, -0.05106157064437866, 0.003504037158563733, 0.04329261556267738, 0.07765134423971176, 0.12326066941022873, 0.20054127275943756, 0.01261818315833807, 0.12096378952264786, -0.1594870686531067, -0.13415716588497162, 0.033553559333086014, -0.008193747140467167, -0.04219648614525795, 0.08858925849199295, -0.07858449965715408, 0.055578406900167465, 0.10304316878318787, -0.11081220954656601, 0.33617880940437317, 0.034522414207458496, -0.055668123066425323, -0.11394526809453964, -0.025572123005986214, 0.15649205446243286, 0.0035094183403998613, 0.021978048607707024, 0.01594570092856884, -0.03473738580942154, -0.06335580348968506, 0.07471691817045212, 0.17997737228870392, -0.036983706057071686, -0.003899135859683156, -0.11125282943248749, -0.10458545386791229, -0.060766179114580154, 0.10147430002689362, -0.22577980160713196, -0.11315901577472687, -0.14535631239414215, -0.18417823314666748, 0.12499789893627167, -0.13102196156978607, 0.2208440899848938, -0.05652593448758125, 0.01620306633412838, -0.0023118117824196815, 0.11293155699968338, 0.020613888278603554, 0.030526481568813324, 0.011594568379223347, -0.027681175619363785, 9.122518040939924e-35, 0.11392800509929657, -0.028734304010868073, 0.03412842005491257, -0.13355275988578796, -0.04109872877597809, -0.06311459839344025, 0.25771841406822205, -0.0021909759379923344, -0.02342492900788784, -0.0848652645945549, -0.11470449715852737 ]
https://github.com/huggingface/datasets/issues/2669
Metric kwargs are not passed to underlying external metric f1_score
Hi @BramVanroy, thanks for reporting. First, note that `"min"` is not an allowed value for `average`. According to scikit-learn [documentation](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html), `average` can only take the values: `{"micro", "macro", "samples", "weighted", "binary"} or None, default="binary"`. Second, you should take into account that all additional metric-specific argument should be passed in the method `compute` (and not in the method `load_metric`). You can find more information in our documentation: https://huggingface.co/docs/datasets/using_metrics.html#computing-the-metric-scores So for example, if you would like to calculate the macro-averaged F1 score, you should use: ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True) f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute(average="macro") ```
## Describe the bug When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so. ## Steps to reproduce the bug ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True, average="min") f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute() ``` ## Expected results No error, because `average="min"` should be passed correctly to f1_score in sklearn. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute "f1": f1_score( File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score return fbeta_score(y_true, y_pred, beta=1, labels=labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score _, _, f, _ = precision_recall_fscore_support(y_true, y_pred, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support labels = _check_set_wise_labels(y_true, y_pred, average, labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels raise ValueError("Target is %s but average='binary'. Please " ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted']. ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.9.2 - PyArrow version: 4.0.1
96
Metric kwargs are not passed to underlying external metric f1_score ## Describe the bug When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so. ## Steps to reproduce the bug ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True, average="min") f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute() ``` ## Expected results No error, because `average="min"` should be passed correctly to f1_score in sklearn. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute "f1": f1_score( File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score return fbeta_score(y_true, y_pred, beta=1, labels=labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score _, _, f, _ = precision_recall_fscore_support(y_true, y_pred, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support labels = _check_set_wise_labels(y_true, y_pred, average, labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels raise ValueError("Target is %s but average='binary'. Please " ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted']. ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.9.2 - PyArrow version: 4.0.1 Hi @BramVanroy, thanks for reporting. First, note that `"min"` is not an allowed value for `average`. According to scikit-learn [documentation](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html), `average` can only take the values: `{"micro", "macro", "samples", "weighted", "binary"} or None, default="binary"`. Second, you should take into account that all additional metric-specific argument should be passed in the method `compute` (and not in the method `load_metric`). You can find more information in our documentation: https://huggingface.co/docs/datasets/using_metrics.html#computing-the-metric-scores So for example, if you would like to calculate the macro-averaged F1 score, you should use: ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True) f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute(average="macro") ```
[ 0.07458784431219101, -0.09824766218662262, 0.06613633036613464, -0.05273544788360596, 0.28506380319595337, -0.007484910544008017, 0.19253097474575043, 0.03707561269402504, 0.022214805707335472, 0.022560661658644676, -0.13362149894237518, -0.08048675954341888, 0.07185017317533493, -0.008694291114807129, 0.022671900689601898, 0.09168681502342224, -0.0038559145759791136, -0.023101339116692543, -0.08378331363201141, -0.07590934634208679, -0.10021985322237015, 0.10628650337457657, -0.02810969389975071, 0.03220795467495918, -0.06129661574959755, -0.032031815499067307, 0.0909193754196167, -0.09244845062494278, -0.004749540239572525, -0.013495219871401787, 0.0282856784760952, 0.08486742526292801, -0.2806229889392853, -0.035593412816524506, 0.000005666247488989029, -0.024982931092381477, 0.10906127095222473, -0.04127095639705658, 0.06037617474794388, 0.07662525773048401, 0.18751759827136993, 0.19095933437347412, 0.05235450342297554, -0.17731313407421112, -0.17743636667728424, 0.10420738160610199, -0.047439977526664734, 0.05212377384305, 0.09551787376403809, 0.06844763457775116, 0.07433890551328659, 0.02867470122873783, -0.0011938957031816244, -0.022540926933288574, -0.12274172902107239, 0.029864385724067688, -0.12508763372898102, 0.12847265601158142, -0.36991867423057556, -0.1235438659787178, 0.04005729407072067, 0.010804126039147377, -0.06144316494464874, 0.05465114489197731, 0.3319553732872009, -0.07083165645599365, -0.02662995271384716, -0.06652095913887024, 0.12621445953845978, 0.11794815957546234, -0.16596943140029907, -0.12372329086065292, -0.04289351403713226, 0.11052018404006958, -0.014827897772192955, -0.20482364296913147, -0.018828313797712326, -0.050624676048755646, -0.027470095083117485, -0.0633404403924942, -0.0879989042878151, 0.0788184106349945, -0.018482383340597153, 0.09456179291009903, -0.030140159651637077, 0.07796084135770798, -0.04649282991886139, 0.11065704375505447, 0.004124063532799482, -0.1606210321187973, 0.027968330308794975, -0.01697492226958275, -0.022652646526694298, -0.12631094455718994, -0.053182657808065414, -0.01657125912606716, 0.01621881127357483, -0.056158412247896194, 0.07792912423610687, -0.0390293151140213, -0.12325433641672134, 0.0005342403310351074, 0.22613273561000824, 0.061263687908649445, -0.033120572566986084, 0.04357004538178444, 0.0730714276432991, 0.06198038160800934, -0.09183328598737717, 0.11875597387552261, -0.1553911715745926, 0.015398201532661915, 0.07901416718959808, 0.049549419432878494, 0.19385196268558502, 0.034282635897397995, 0.040787771344184875, 0.030324071645736694, -0.11042311787605286, 0.0995233952999115, 0.22206111252307892, -0.025885436683893204, -0.16089275479316711, 0.14521874487400055, 0.05186942592263222, 0.014761173166334629, -0.04300355538725853, 0.09669192135334015, 0.02636793442070484, 0.15661580860614777, -0.09084289520978928, -0.009229583665728569, -0.052466366440057755, 0.10909368097782135, 0.13244058191776276, -0.09028080850839615, 0.06591791659593582, 0.07452350109815598, 0.2580297887325287, -0.20343343913555145, -0.06121790036559105, -0.10392580181360245, -0.08161189407110214, -0.031064482405781746, -0.02547697350382805, 0.06856488436460495, 0.16396033763885498, 0.05911193788051605, 0.0990324392914772, -0.03243404999375343, -0.04943118989467621, 0.05648306384682655, 0.12747585773468018, -0.009909956716001034, -0.17223620414733887, -0.031368836760520935, -0.012598379515111446, 0.09471949189901352, 0.04626801609992981, -0.08160232752561569, 0.22116994857788086, -0.023356081917881966, -0.15149514377117157, -0.016646284610033035, 0.2244289070367813, 0.03758292645215988, 0.14704632759094238, -0.14196212589740753, 0.0016439948230981827, -0.0679745301604271, 0.0474160797894001, -0.1596570611000061, 0.020497824996709824, 0.03349292650818825, -0.021815001964569092, 0.13555799424648285, -0.026736492291092873, -0.07578893005847931, -0.07794909179210663, -0.1336488574743271, 0.040387727320194244, -0.14483904838562012, 0.1811293363571167, -0.13337203860282898, 0.1029929593205452, 0.093721903860569, 0.07453862577676773, 0.26302215456962585, -0.015862513333559036, -0.10879549384117126, 0.0703430250287056, 0.02080022729933262, -0.11787918210029602, -0.22413182258605957, 0.2506871521472931, 0.15000613033771515, 0.0571301132440567, -0.060886602848768234, 0.07185901701450348, -0.1657899171113968, 0.13182228803634644, 0.10537870973348618, -0.052145231515169144, -0.10233059525489807, 0.04568237438797951, -0.011809542775154114, 0.010592354461550713, 0.08166061341762543, -0.06165222451090813, -0.254509299993515, 0.159812331199646, 0.053935643285512924, -0.1479192078113556, -0.039513085037469864, 0.02387024275958538, -0.06966478377580643, 0.04427032172679901, -0.022672198712825775, -0.06094697117805481, 0.14517341554164886, 0.05043882876634598, -0.06486255675554276, -0.07271317392587662, -0.0007082771044224501, 0.1326753795146942, 0.09699185192584991, 0.05891335755586624, -0.12431901693344116, -0.06987802684307098, 0.1728556901216507, 0.08566907793283463, 0.05857769027352333, 0.03895912319421768, 0.18762610852718353, 0.0339389406144619, 0.051575496792793274, 0.06890249997377396, -0.1825735718011856, 0.09023431688547134, 0.012594238854944706, 0.14328283071517944, 0.009988564997911453, -0.07889484614133835, -0.004266724456101656, 0.1510634422302246, 0.0633271336555481, 0.07610933482646942, 0.027407512068748474, 0.014476431533694267, 0.10422536730766296, -0.05245048925280571, 0.0640731230378151, -0.08371903747320175, -0.030973266810178757, 0.025636723265051842, -0.36426064372062683, 0.11171004176139832, -0.07036510109901428, 0.06308255344629288, -0.05738503858447075, 0.19364701211452484, 0.04631661996245384, 0.10513508319854736, 0.01687571406364441, 0.015715086832642555, -0.26660314202308655, 0.04875382035970688, -0.0620182529091835, 0.029829857870936394, 0.006073140073567629, -0.018760791048407555, -0.010623721405863762, -0.12909461557865143, 0.00012383103603497148, 0.017308570444583893, 0.07012100517749786, 0.016734490171074867, 0.21947364509105682, -0.07280881702899933, -0.07430068403482437, -0.050891514867544174, 0.09784684330224991, 0.056728072464466095, -0.19710113108158112, 0.03341639041900635, 0.1605640947818756, -0.017522938549518585, 0.18709304928779602, -0.12861868739128113, 0.10859116166830063, -0.1393200159072876, -0.122369185090065, -0.10718431323766708, -0.025112546980381012, -0.005372913554310799, -0.0708450898528099, -0.05946234241127968, 0.030150583013892174, 0.10634567588567734, -0.006548649165779352, -0.08145049959421158, 0.04061403125524521, -0.04186764732003212, -0.1675131767988205, -0.048176079988479614, -0.1310933530330658, 0.1800255924463272, 0.14187903702259064, -0.009781335480511189, -0.13256078958511353, 0.035624921321868896, -0.09035155922174454, 0.09972801059484482, 0.3704393208026886, -0.11145231872797012, -0.052398283034563065, -0.07802964001893997, -0.019238565117120743, 0.17839106917381287, 0.06856928765773773, 0.08208135515451431, -0.033385444432497025, -0.18440476059913635, 0.05351118743419647, -0.0014519336400553584, 0.0373493991792202, 0.08657452464103699, -0.06880787014961243, -0.017965927720069885, -0.07201959192752838, 0.014378507621586323, 0.09262575209140778, 0.005150742828845978, -0.17615178227424622, 0.09577199071645737, 0.016845444217324257, -0.20085982978343964, 0.06710126996040344, 0.15684820711612701, -0.07507426291704178, 0.05555187538266182, 0.08911484479904175, -0.05383073911070824, -0.03806827962398529, 0.02465047873556614, -0.08724125474691391, -0.03817998617887497, 0.04644596949219704, -0.12278452515602112, 0.19643427431583405, 0.07860719412565231, -0.06065569072961807, -0.16250725090503693, -0.11146005988121033, -0.06136728450655937, -0.05738065764307976, -0.09038281440734863, -0.14180877804756165, -0.0318615660071373, -0.040823016315698624, 0.11691217124462128, 0.058049462735652924, -0.011318003758788109, -0.03963569924235344, 0.04692588001489639, 0.07504861056804657, 0.016382820904254913, 0.0119331581518054, -0.0016737008700147271, -0.16305795311927795, 0.03216687962412834, -0.01573496311903, 0.028427114710211754, -0.08780191093683243, 0.035055916756391525, 0.1757728010416031, 0.005527215078473091, -0.21201789379119873, 0.061302170157432556, 0.06285545974969864, -0.06421631574630737, 0.028405487537384033, 0.05383237823843956, 0.05124245211482048, 0.368569940328598, -0.01753276214003563, -0.05435982719063759, 0.10455978661775589, -0.15826605260372162, 0.024319199845194817, 0.27275964617729187, 0.03344513475894928, 0.0510188490152359, -0.11310300976037979, -0.054239701479673386, -0.07057426869869232, 0.01226606871932745, 0.05852861702442169, 0.004016526509076357, 0.08694640547037125, -0.029435819014906883, 0.1414835900068283, -0.016136927530169487, 0.07869157940149307, 0.07592756301164627, 0.06698325276374817, 0.0062690372578799725, -0.09475265443325043, 0.11183945089578629, -0.0067760213278234005, -0.036977365612983704, 0.07936787605285645, 0.036155544221401215, -0.12325622141361237, 0.2012532502412796, -0.029569847509264946, -0.03623238205909729, -0.020553816109895706, -0.11048147082328796, -0.06504619121551514, 0.02272779867053032, -0.2538967430591583, -0.09813888370990753, 0.19006960093975067, -0.040072277188301086, 0.06372183561325073, 0.10154340416193008, -0.1405354142189026, 0.10449511557817459, 0.01291383896023035, 0.06486532092094421, 0.038209449499845505, 0.051518477499485016, 0.060435160994529724, -0.01906326226890087, -0.20895661413669586, -0.014330142177641392, -0.10164933651685715, -0.126627579331398, -0.09227634221315384, -0.1297021210193634, -0.015510189346969128, 0.025622086599469185, -0.22629868984222412, 0.028099186718463898, -0.1351923942565918, -0.12987136840820312, -0.13854250311851501, 0.11249461770057678, 0.007336350157856941, -0.09056904911994934, -0.0077444580383598804, -0.002292028395459056, 0.05714399367570877, -0.01966029405593872, -0.14435872435569763, 0.14106550812721252, -0.0008052093326114118, -0.039505138993263245, 0.022407446056604385, 0.13362650573253632, -0.06959481537342072, 0.0011091293999925256, 0.0229928120970726, 0.06068361550569534, 0.004481007810682058, 0.10943997651338577, -0.13611002266407013, 0.16050654649734497, 0.09655178338289261, -0.1303011178970337, 0.055086612701416016, 0.016832822933793068, -0.10621489584445953, 0.17194747924804688, 0.10632316768169403, 0.07931041717529297, -0.00033540179720148444, 0.09795382618904114, -0.1499517410993576, 0.2991347908973694, 0.0542941577732563, -0.09071652591228485, -0.2412969470024109, 0.020532462745904922, -0.0333486944437027, 0.018793880939483643, -0.16912037134170532, -0.1493639051914215, 0.030255943536758423, -0.008108096197247505, 0.10753242671489716, 0.038235098123550415, 0.05153027921915054, 0.08800595998764038, 0.0877305418252945, 0.2623874247074127, -0.13211123645305634, 0.049577098339796066, 0.16975946724414825, 0.03971744328737259, -0.1577102094888687, -0.03637704253196716, -0.1773250550031662, 0.09478747844696045, -0.10052365809679031, 0.007083813659846783, -0.008862972259521484, 0.07372531294822693, 0.08911105990409851, -0.10678982734680176, 0.12405451387166977, -0.05443112552165985, 0.031047465279698372, -0.18861322104930878, -0.2733055055141449, -0.1381923109292984, -0.05209112912416458, 0.03524588420987129, -0.08251254260540009, 0.037692680954933167, -0.09638521075248718, -0.04764620214700699, 0.052537791430950165, 0.0872185155749321, 0.12408481538295746, -0.0874098613858223, -0.018097935244441032, 0.28054577112197876, -0.04258901998400688, -0.17194214463233948, 0.11048918962478638, 0.06054268777370453, 0.07576572895050049, -0.052284058183431625, 0.1601269394159317, -0.09382394701242447, -0.0957120954990387, 0.034426357597112656, -0.041913051158189774, 0.028097063302993774, -0.10239391028881073, 0.09796067327260971, 0.046526480466127396, -0.09662943333387375, -0.0024944685865193605, -0.08988011628389359, -0.07355155050754547, 0.020952103659510612, -0.10454191267490387, -0.06333877146244049, 0.0032312613911926746, 0.0006105079082772136, -0.013417649082839489, -0.05936264619231224, -2.494471011473882e-32, -0.1325434297323227, -0.03857827186584473, -0.1436958760023117, 0.11841507256031036, -0.17884981632232666, 0.07193955034017563, 0.09091941267251968, 0.01921645924448967, -0.04953581839799881, 0.027737637981772423, -0.029374776408076286, -0.08003520965576172, -0.011806085705757141, -0.10000692307949066, -0.041759222745895386, -0.00402434729039669, -0.05314469709992409, -0.09836956113576889, -0.012319020926952362, 0.20937947928905487, 0.0722169503569603, -0.05700775235891342, 0.07893847674131393, -0.0767708346247673, 0.09980777651071548, 0.047122348099946976, -0.19705277681350708, -0.04880712181329727, 0.04376297444105148, 0.10248921066522598, 0.02739664353430271, 0.1413140743970871, -0.07989376038312912, -0.1490931659936905, -0.11832074075937271, -0.11415039747953415, 0.005295347888022661, -0.06664127111434937, 0.10063692182302475, -0.044135164469480515, 0.18702322244644165, 0.033812377601861954, 0.11927095055580139, -0.09524126350879669, 0.020294340327382088, -0.1432870477437973, -0.07008347660303116, -0.036833252757787704, -0.04719412326812744, -0.22630862891674042, 0.1429266333580017, 0.03277593106031418, -0.02176368609070778, 0.12848594784736633, 0.13619916141033173, -0.05806279927492142, 0.026949549093842506, -0.019852666184306145, -0.10678058117628098, 0.1170467659831047, -0.09841247648000717, 0.04758449271321297, 0.24716447293758392, 0.05871281027793884, -0.01654266193509102, -0.00954001396894455, 0.31603214144706726, 0.1457137018442154, -0.039614010602235794, -0.16227732598781586, 0.09684376418590546, 0.06491658836603165, 0.09821580350399017, -0.05706154182553291, -0.2666487693786621, -0.14728094637393951, -0.06352193653583527, -0.05369405448436737, -0.1363181322813034, -0.035762567073106766, 0.07765456289052963, -0.15163561701774597, -0.17673298716545105, 0.016820397228002548, -0.29251158237457275, -0.16961893439292908, -0.1028706431388855, 0.06506003439426422, -0.07516742497682571, -0.06908947974443436, 0.06962450593709946, 0.08023309707641602, -0.2871105372905731, -0.05883060768246651, 0.12926562130451202, -0.04237451031804085, 0.10735256969928741, 0.2133481502532959, -0.12781144678592682, -0.04173356667160988, -0.02949221432209015, 0.16587437689304352, 0.05378200113773346, 0.10833834856748581, -0.03443246707320213, 0.07949738949537277, 0.029227403923869133, -0.17762334644794464, -0.11335339397192001, -0.09695202857255936, 0.06509644538164139, 0.06304100900888443, 0.19531142711639404, 0.03258586674928665, 0.10632126033306122, -0.0768171027302742, -0.07877330482006073, 0.0010205971775576472, 0.19026871025562286, 0.228195458650589, -0.06700562685728073, 0.04501526057720184, 0.005419885274022818, 0.13208328187465668, -0.05268648639321327, 0.07293137907981873, -0.13946382701396942, -0.1649997979402542, -0.0024135413113981485, 0.09871351718902588, 0.038425855338573456, -0.11476846784353256, 7.401150128316658e-7, 0.013979624025523663, 0.15043027698993683, -0.20872172713279724, -0.027624469250440598, -0.21870452165603638, 0.0856223925948143, -0.11841952800750732, -0.09701579809188843, 0.01952684298157692, 0.14907920360565186, -0.03263137862086296, -0.04457884281873703, -0.06246897205710411, -0.10007244348526001, 0.16737954318523407, 0.08549308031797409, -0.029619742184877396, 0.014462304301559925, -0.0716928243637085, 0.05524972453713417, -0.13048386573791504, 0.06525302678346634, 0.09739560633897781, 0.06410394608974457, -0.02135886438190937, -0.19712769985198975, 0.020822275429964066, -0.029256779700517654, 0.04225679486989975, 0.08509345352649689, 0.2906936705112457, -0.11125057935714722, -0.04398338124155998, 0.2964024841785431, -0.0786159411072731, 0.08064265549182892, -0.09521769732236862, 0.031388308852910995, 0.016909874975681305, -0.039376456290483475, -0.04430999234318733, 0.007220801897346973, 0.03450190648436546, -0.2515799105167389, 0.04983368143439293, 0.1308414340019226, 0.06556463986635208, -0.03011970780789852, 0.09104397147893906, 0.14833024144172668, -0.04529677703976631, -0.03447849676012993, 0.08096852898597717, 0.1415974199771881, 0.07243046909570694, 0.00038206734461709857, -0.002901314990594983, -0.15143220126628876, 0.04766285791993141, -0.013898118399083614, -0.03384255990386009, -0.33022862672805786, 0.13786596059799194, 0.11219089478254318, -0.17192387580871582, -0.01855926401913166, 0.018717478960752487, 1.3357515390096795e-34, 0.10832111537456512, -0.028407329693436623, 0.05653827264904976, -0.22755561769008636, 0.04349977895617485, -0.031206153333187103, 0.08350440114736557, -0.033053360879421234, 0.08065056800842285, -0.30998578667640686, -0.06356954574584961 ]
https://github.com/huggingface/datasets/issues/2669
Metric kwargs are not passed to underlying external metric f1_score
Thanks, that was it. A bit strange though, since `load_metric` had an argument `metric_init_kwargs`. I assume that that's for specific initialisation arguments whereas `average` is for the function itself.
## Describe the bug When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so. ## Steps to reproduce the bug ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True, average="min") f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute() ``` ## Expected results No error, because `average="min"` should be passed correctly to f1_score in sklearn. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute "f1": f1_score( File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score return fbeta_score(y_true, y_pred, beta=1, labels=labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score _, _, f, _ = precision_recall_fscore_support(y_true, y_pred, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support labels = _check_set_wise_labels(y_true, y_pred, average, labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels raise ValueError("Target is %s but average='binary'. Please " ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted']. ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.9.2 - PyArrow version: 4.0.1
29
Metric kwargs are not passed to underlying external metric f1_score ## Describe the bug When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so. ## Steps to reproduce the bug ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True, average="min") f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute() ``` ## Expected results No error, because `average="min"` should be passed correctly to f1_score in sklearn. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute "f1": f1_score( File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score return fbeta_score(y_true, y_pred, beta=1, labels=labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score _, _, f, _ = precision_recall_fscore_support(y_true, y_pred, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support labels = _check_set_wise_labels(y_true, y_pred, average, labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels raise ValueError("Target is %s but average='binary'. Please " ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted']. ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.9.2 - PyArrow version: 4.0.1 Thanks, that was it. A bit strange though, since `load_metric` had an argument `metric_init_kwargs`. I assume that that's for specific initialisation arguments whereas `average` is for the function itself.
[ 0.07458784431219101, -0.09824766218662262, 0.06613633036613464, -0.05273544788360596, 0.28506380319595337, -0.007484910544008017, 0.19253097474575043, 0.03707561269402504, 0.022214805707335472, 0.022560661658644676, -0.13362149894237518, -0.08048675954341888, 0.07185017317533493, -0.008694291114807129, 0.022671900689601898, 0.09168681502342224, -0.0038559145759791136, -0.023101339116692543, -0.08378331363201141, -0.07590934634208679, -0.10021985322237015, 0.10628650337457657, -0.02810969389975071, 0.03220795467495918, -0.06129661574959755, -0.032031815499067307, 0.0909193754196167, -0.09244845062494278, -0.004749540239572525, -0.013495219871401787, 0.0282856784760952, 0.08486742526292801, -0.2806229889392853, -0.035593412816524506, 0.000005666247488989029, -0.024982931092381477, 0.10906127095222473, -0.04127095639705658, 0.06037617474794388, 0.07662525773048401, 0.18751759827136993, 0.19095933437347412, 0.05235450342297554, -0.17731313407421112, -0.17743636667728424, 0.10420738160610199, -0.047439977526664734, 0.05212377384305, 0.09551787376403809, 0.06844763457775116, 0.07433890551328659, 0.02867470122873783, -0.0011938957031816244, -0.022540926933288574, -0.12274172902107239, 0.029864385724067688, -0.12508763372898102, 0.12847265601158142, -0.36991867423057556, -0.1235438659787178, 0.04005729407072067, 0.010804126039147377, -0.06144316494464874, 0.05465114489197731, 0.3319553732872009, -0.07083165645599365, -0.02662995271384716, -0.06652095913887024, 0.12621445953845978, 0.11794815957546234, -0.16596943140029907, -0.12372329086065292, -0.04289351403713226, 0.11052018404006958, -0.014827897772192955, -0.20482364296913147, -0.018828313797712326, -0.050624676048755646, -0.027470095083117485, -0.0633404403924942, -0.0879989042878151, 0.0788184106349945, -0.018482383340597153, 0.09456179291009903, -0.030140159651637077, 0.07796084135770798, -0.04649282991886139, 0.11065704375505447, 0.004124063532799482, -0.1606210321187973, 0.027968330308794975, -0.01697492226958275, -0.022652646526694298, -0.12631094455718994, -0.053182657808065414, -0.01657125912606716, 0.01621881127357483, -0.056158412247896194, 0.07792912423610687, -0.0390293151140213, -0.12325433641672134, 0.0005342403310351074, 0.22613273561000824, 0.061263687908649445, -0.033120572566986084, 0.04357004538178444, 0.0730714276432991, 0.06198038160800934, -0.09183328598737717, 0.11875597387552261, -0.1553911715745926, 0.015398201532661915, 0.07901416718959808, 0.049549419432878494, 0.19385196268558502, 0.034282635897397995, 0.040787771344184875, 0.030324071645736694, -0.11042311787605286, 0.0995233952999115, 0.22206111252307892, -0.025885436683893204, -0.16089275479316711, 0.14521874487400055, 0.05186942592263222, 0.014761173166334629, -0.04300355538725853, 0.09669192135334015, 0.02636793442070484, 0.15661580860614777, -0.09084289520978928, -0.009229583665728569, -0.052466366440057755, 0.10909368097782135, 0.13244058191776276, -0.09028080850839615, 0.06591791659593582, 0.07452350109815598, 0.2580297887325287, -0.20343343913555145, -0.06121790036559105, -0.10392580181360245, -0.08161189407110214, -0.031064482405781746, -0.02547697350382805, 0.06856488436460495, 0.16396033763885498, 0.05911193788051605, 0.0990324392914772, -0.03243404999375343, -0.04943118989467621, 0.05648306384682655, 0.12747585773468018, -0.009909956716001034, -0.17223620414733887, -0.031368836760520935, -0.012598379515111446, 0.09471949189901352, 0.04626801609992981, -0.08160232752561569, 0.22116994857788086, -0.023356081917881966, -0.15149514377117157, -0.016646284610033035, 0.2244289070367813, 0.03758292645215988, 0.14704632759094238, -0.14196212589740753, 0.0016439948230981827, -0.0679745301604271, 0.0474160797894001, -0.1596570611000061, 0.020497824996709824, 0.03349292650818825, -0.021815001964569092, 0.13555799424648285, -0.026736492291092873, -0.07578893005847931, -0.07794909179210663, -0.1336488574743271, 0.040387727320194244, -0.14483904838562012, 0.1811293363571167, -0.13337203860282898, 0.1029929593205452, 0.093721903860569, 0.07453862577676773, 0.26302215456962585, -0.015862513333559036, -0.10879549384117126, 0.0703430250287056, 0.02080022729933262, -0.11787918210029602, -0.22413182258605957, 0.2506871521472931, 0.15000613033771515, 0.0571301132440567, -0.060886602848768234, 0.07185901701450348, -0.1657899171113968, 0.13182228803634644, 0.10537870973348618, -0.052145231515169144, -0.10233059525489807, 0.04568237438797951, -0.011809542775154114, 0.010592354461550713, 0.08166061341762543, -0.06165222451090813, -0.254509299993515, 0.159812331199646, 0.053935643285512924, -0.1479192078113556, -0.039513085037469864, 0.02387024275958538, -0.06966478377580643, 0.04427032172679901, -0.022672198712825775, -0.06094697117805481, 0.14517341554164886, 0.05043882876634598, -0.06486255675554276, -0.07271317392587662, -0.0007082771044224501, 0.1326753795146942, 0.09699185192584991, 0.05891335755586624, -0.12431901693344116, -0.06987802684307098, 0.1728556901216507, 0.08566907793283463, 0.05857769027352333, 0.03895912319421768, 0.18762610852718353, 0.0339389406144619, 0.051575496792793274, 0.06890249997377396, -0.1825735718011856, 0.09023431688547134, 0.012594238854944706, 0.14328283071517944, 0.009988564997911453, -0.07889484614133835, -0.004266724456101656, 0.1510634422302246, 0.0633271336555481, 0.07610933482646942, 0.027407512068748474, 0.014476431533694267, 0.10422536730766296, -0.05245048925280571, 0.0640731230378151, -0.08371903747320175, -0.030973266810178757, 0.025636723265051842, -0.36426064372062683, 0.11171004176139832, -0.07036510109901428, 0.06308255344629288, -0.05738503858447075, 0.19364701211452484, 0.04631661996245384, 0.10513508319854736, 0.01687571406364441, 0.015715086832642555, -0.26660314202308655, 0.04875382035970688, -0.0620182529091835, 0.029829857870936394, 0.006073140073567629, -0.018760791048407555, -0.010623721405863762, -0.12909461557865143, 0.00012383103603497148, 0.017308570444583893, 0.07012100517749786, 0.016734490171074867, 0.21947364509105682, -0.07280881702899933, -0.07430068403482437, -0.050891514867544174, 0.09784684330224991, 0.056728072464466095, -0.19710113108158112, 0.03341639041900635, 0.1605640947818756, -0.017522938549518585, 0.18709304928779602, -0.12861868739128113, 0.10859116166830063, -0.1393200159072876, -0.122369185090065, -0.10718431323766708, -0.025112546980381012, -0.005372913554310799, -0.0708450898528099, -0.05946234241127968, 0.030150583013892174, 0.10634567588567734, -0.006548649165779352, -0.08145049959421158, 0.04061403125524521, -0.04186764732003212, -0.1675131767988205, -0.048176079988479614, -0.1310933530330658, 0.1800255924463272, 0.14187903702259064, -0.009781335480511189, -0.13256078958511353, 0.035624921321868896, -0.09035155922174454, 0.09972801059484482, 0.3704393208026886, -0.11145231872797012, -0.052398283034563065, -0.07802964001893997, -0.019238565117120743, 0.17839106917381287, 0.06856928765773773, 0.08208135515451431, -0.033385444432497025, -0.18440476059913635, 0.05351118743419647, -0.0014519336400553584, 0.0373493991792202, 0.08657452464103699, -0.06880787014961243, -0.017965927720069885, -0.07201959192752838, 0.014378507621586323, 0.09262575209140778, 0.005150742828845978, -0.17615178227424622, 0.09577199071645737, 0.016845444217324257, -0.20085982978343964, 0.06710126996040344, 0.15684820711612701, -0.07507426291704178, 0.05555187538266182, 0.08911484479904175, -0.05383073911070824, -0.03806827962398529, 0.02465047873556614, -0.08724125474691391, -0.03817998617887497, 0.04644596949219704, -0.12278452515602112, 0.19643427431583405, 0.07860719412565231, -0.06065569072961807, -0.16250725090503693, -0.11146005988121033, -0.06136728450655937, -0.05738065764307976, -0.09038281440734863, -0.14180877804756165, -0.0318615660071373, -0.040823016315698624, 0.11691217124462128, 0.058049462735652924, -0.011318003758788109, -0.03963569924235344, 0.04692588001489639, 0.07504861056804657, 0.016382820904254913, 0.0119331581518054, -0.0016737008700147271, -0.16305795311927795, 0.03216687962412834, -0.01573496311903, 0.028427114710211754, -0.08780191093683243, 0.035055916756391525, 0.1757728010416031, 0.005527215078473091, -0.21201789379119873, 0.061302170157432556, 0.06285545974969864, -0.06421631574630737, 0.028405487537384033, 0.05383237823843956, 0.05124245211482048, 0.368569940328598, -0.01753276214003563, -0.05435982719063759, 0.10455978661775589, -0.15826605260372162, 0.024319199845194817, 0.27275964617729187, 0.03344513475894928, 0.0510188490152359, -0.11310300976037979, -0.054239701479673386, -0.07057426869869232, 0.01226606871932745, 0.05852861702442169, 0.004016526509076357, 0.08694640547037125, -0.029435819014906883, 0.1414835900068283, -0.016136927530169487, 0.07869157940149307, 0.07592756301164627, 0.06698325276374817, 0.0062690372578799725, -0.09475265443325043, 0.11183945089578629, -0.0067760213278234005, -0.036977365612983704, 0.07936787605285645, 0.036155544221401215, -0.12325622141361237, 0.2012532502412796, -0.029569847509264946, -0.03623238205909729, -0.020553816109895706, -0.11048147082328796, -0.06504619121551514, 0.02272779867053032, -0.2538967430591583, -0.09813888370990753, 0.19006960093975067, -0.040072277188301086, 0.06372183561325073, 0.10154340416193008, -0.1405354142189026, 0.10449511557817459, 0.01291383896023035, 0.06486532092094421, 0.038209449499845505, 0.051518477499485016, 0.060435160994529724, -0.01906326226890087, -0.20895661413669586, -0.014330142177641392, -0.10164933651685715, -0.126627579331398, -0.09227634221315384, -0.1297021210193634, -0.015510189346969128, 0.025622086599469185, -0.22629868984222412, 0.028099186718463898, -0.1351923942565918, -0.12987136840820312, -0.13854250311851501, 0.11249461770057678, 0.007336350157856941, -0.09056904911994934, -0.0077444580383598804, -0.002292028395459056, 0.05714399367570877, -0.01966029405593872, -0.14435872435569763, 0.14106550812721252, -0.0008052093326114118, -0.039505138993263245, 0.022407446056604385, 0.13362650573253632, -0.06959481537342072, 0.0011091293999925256, 0.0229928120970726, 0.06068361550569534, 0.004481007810682058, 0.10943997651338577, -0.13611002266407013, 0.16050654649734497, 0.09655178338289261, -0.1303011178970337, 0.055086612701416016, 0.016832822933793068, -0.10621489584445953, 0.17194747924804688, 0.10632316768169403, 0.07931041717529297, -0.00033540179720148444, 0.09795382618904114, -0.1499517410993576, 0.2991347908973694, 0.0542941577732563, -0.09071652591228485, -0.2412969470024109, 0.020532462745904922, -0.0333486944437027, 0.018793880939483643, -0.16912037134170532, -0.1493639051914215, 0.030255943536758423, -0.008108096197247505, 0.10753242671489716, 0.038235098123550415, 0.05153027921915054, 0.08800595998764038, 0.0877305418252945, 0.2623874247074127, -0.13211123645305634, 0.049577098339796066, 0.16975946724414825, 0.03971744328737259, -0.1577102094888687, -0.03637704253196716, -0.1773250550031662, 0.09478747844696045, -0.10052365809679031, 0.007083813659846783, -0.008862972259521484, 0.07372531294822693, 0.08911105990409851, -0.10678982734680176, 0.12405451387166977, -0.05443112552165985, 0.031047465279698372, -0.18861322104930878, -0.2733055055141449, -0.1381923109292984, -0.05209112912416458, 0.03524588420987129, -0.08251254260540009, 0.037692680954933167, -0.09638521075248718, -0.04764620214700699, 0.052537791430950165, 0.0872185155749321, 0.12408481538295746, -0.0874098613858223, -0.018097935244441032, 0.28054577112197876, -0.04258901998400688, -0.17194214463233948, 0.11048918962478638, 0.06054268777370453, 0.07576572895050049, -0.052284058183431625, 0.1601269394159317, -0.09382394701242447, -0.0957120954990387, 0.034426357597112656, -0.041913051158189774, 0.028097063302993774, -0.10239391028881073, 0.09796067327260971, 0.046526480466127396, -0.09662943333387375, -0.0024944685865193605, -0.08988011628389359, -0.07355155050754547, 0.020952103659510612, -0.10454191267490387, -0.06333877146244049, 0.0032312613911926746, 0.0006105079082772136, -0.013417649082839489, -0.05936264619231224, -2.494471011473882e-32, -0.1325434297323227, -0.03857827186584473, -0.1436958760023117, 0.11841507256031036, -0.17884981632232666, 0.07193955034017563, 0.09091941267251968, 0.01921645924448967, -0.04953581839799881, 0.027737637981772423, -0.029374776408076286, -0.08003520965576172, -0.011806085705757141, -0.10000692307949066, -0.041759222745895386, -0.00402434729039669, -0.05314469709992409, -0.09836956113576889, -0.012319020926952362, 0.20937947928905487, 0.0722169503569603, -0.05700775235891342, 0.07893847674131393, -0.0767708346247673, 0.09980777651071548, 0.047122348099946976, -0.19705277681350708, -0.04880712181329727, 0.04376297444105148, 0.10248921066522598, 0.02739664353430271, 0.1413140743970871, -0.07989376038312912, -0.1490931659936905, -0.11832074075937271, -0.11415039747953415, 0.005295347888022661, -0.06664127111434937, 0.10063692182302475, -0.044135164469480515, 0.18702322244644165, 0.033812377601861954, 0.11927095055580139, -0.09524126350879669, 0.020294340327382088, -0.1432870477437973, -0.07008347660303116, -0.036833252757787704, -0.04719412326812744, -0.22630862891674042, 0.1429266333580017, 0.03277593106031418, -0.02176368609070778, 0.12848594784736633, 0.13619916141033173, -0.05806279927492142, 0.026949549093842506, -0.019852666184306145, -0.10678058117628098, 0.1170467659831047, -0.09841247648000717, 0.04758449271321297, 0.24716447293758392, 0.05871281027793884, -0.01654266193509102, -0.00954001396894455, 0.31603214144706726, 0.1457137018442154, -0.039614010602235794, -0.16227732598781586, 0.09684376418590546, 0.06491658836603165, 0.09821580350399017, -0.05706154182553291, -0.2666487693786621, -0.14728094637393951, -0.06352193653583527, -0.05369405448436737, -0.1363181322813034, -0.035762567073106766, 0.07765456289052963, -0.15163561701774597, -0.17673298716545105, 0.016820397228002548, -0.29251158237457275, -0.16961893439292908, -0.1028706431388855, 0.06506003439426422, -0.07516742497682571, -0.06908947974443436, 0.06962450593709946, 0.08023309707641602, -0.2871105372905731, -0.05883060768246651, 0.12926562130451202, -0.04237451031804085, 0.10735256969928741, 0.2133481502532959, -0.12781144678592682, -0.04173356667160988, -0.02949221432209015, 0.16587437689304352, 0.05378200113773346, 0.10833834856748581, -0.03443246707320213, 0.07949738949537277, 0.029227403923869133, -0.17762334644794464, -0.11335339397192001, -0.09695202857255936, 0.06509644538164139, 0.06304100900888443, 0.19531142711639404, 0.03258586674928665, 0.10632126033306122, -0.0768171027302742, -0.07877330482006073, 0.0010205971775576472, 0.19026871025562286, 0.228195458650589, -0.06700562685728073, 0.04501526057720184, 0.005419885274022818, 0.13208328187465668, -0.05268648639321327, 0.07293137907981873, -0.13946382701396942, -0.1649997979402542, -0.0024135413113981485, 0.09871351718902588, 0.038425855338573456, -0.11476846784353256, 7.401150128316658e-7, 0.013979624025523663, 0.15043027698993683, -0.20872172713279724, -0.027624469250440598, -0.21870452165603638, 0.0856223925948143, -0.11841952800750732, -0.09701579809188843, 0.01952684298157692, 0.14907920360565186, -0.03263137862086296, -0.04457884281873703, -0.06246897205710411, -0.10007244348526001, 0.16737954318523407, 0.08549308031797409, -0.029619742184877396, 0.014462304301559925, -0.0716928243637085, 0.05524972453713417, -0.13048386573791504, 0.06525302678346634, 0.09739560633897781, 0.06410394608974457, -0.02135886438190937, -0.19712769985198975, 0.020822275429964066, -0.029256779700517654, 0.04225679486989975, 0.08509345352649689, 0.2906936705112457, -0.11125057935714722, -0.04398338124155998, 0.2964024841785431, -0.0786159411072731, 0.08064265549182892, -0.09521769732236862, 0.031388308852910995, 0.016909874975681305, -0.039376456290483475, -0.04430999234318733, 0.007220801897346973, 0.03450190648436546, -0.2515799105167389, 0.04983368143439293, 0.1308414340019226, 0.06556463986635208, -0.03011970780789852, 0.09104397147893906, 0.14833024144172668, -0.04529677703976631, -0.03447849676012993, 0.08096852898597717, 0.1415974199771881, 0.07243046909570694, 0.00038206734461709857, -0.002901314990594983, -0.15143220126628876, 0.04766285791993141, -0.013898118399083614, -0.03384255990386009, -0.33022862672805786, 0.13786596059799194, 0.11219089478254318, -0.17192387580871582, -0.01855926401913166, 0.018717478960752487, 1.3357515390096795e-34, 0.10832111537456512, -0.028407329693436623, 0.05653827264904976, -0.22755561769008636, 0.04349977895617485, -0.031206153333187103, 0.08350440114736557, -0.033053360879421234, 0.08065056800842285, -0.30998578667640686, -0.06356954574584961 ]
https://github.com/huggingface/datasets/issues/2663
[`to_json`] add multi-proc sharding support
Hi @stas00, I want to work on this issue and I was thinking why don't we use `imap` [in this loop](https://github.com/huggingface/datasets/blob/440b14d0dd428ae1b25881aa72ba7bbb8ad9ff84/src/datasets/io/json.py#L99)? This way, using offset (which is being used to slice the pyarrow table) we can convert pyarrow table to `json` using multiprocessing. I've a small code snippet for some clarity: ``` result = list( pool.imap(self._apply_df, [(offset, batch_size) for offset in range(0, len(self.dataset), batch_size)]) ) ``` `_apply_df` is a function which will return `batch.to_pandas().to_json(path_or_buf=None, orient="records", lines=True)` which is basically json version of the batched pyarrow table. Later on we can concatenate it to form json file? I think the only downside here is to write file from `imap` output (output would be a list and we'll need to iterate over it and write in a file) which might add a little overhead cost. What do you think about this?
As discussed on slack it appears that `to_json` is quite slow on huge datasets like OSCAR. I implemented sharded saving, which is much much faster - but the tqdm bars all overwrite each other, so it's hard to make sense of the progress, so if possible ideally this multi-proc support could be implemented internally in `to_json` via `num_proc` argument. I guess `num_proc` will be the number of shards? I think the user will need to use this feature wisely, since too many processes writing to say normal style HD is likely to be slower than one process. I'm not sure whether the user should be responsible to concatenate the shards at the end or `datasets`, either way works for my needs. The code I was using: ``` from multiprocessing import cpu_count, Process, Queue [...] filtered_dataset = concat_dataset.map(filter_short_documents, batched=True, batch_size=256, num_proc=cpu_count()) DATASET_NAME = "oscar" SHARDS = 10 def process_shard(idx): print(f"Sharding {idx}") ds_shard = filtered_dataset.shard(SHARDS, idx, contiguous=True) # ds_shard = ds_shard.shuffle() # remove contiguous=True above if shuffling print(f"Saving {DATASET_NAME}-{idx}.jsonl") ds_shard.to_json(f"{DATASET_NAME}-{idx}.jsonl", orient="records", lines=True, force_ascii=False) queue = Queue() processes = [Process(target=process_shard, args=(idx,)) for idx in range(SHARDS)] for p in processes: p.start() for p in processes: p.join() ``` Thank you! @lhoestq
139
[`to_json`] add multi-proc sharding support As discussed on slack it appears that `to_json` is quite slow on huge datasets like OSCAR. I implemented sharded saving, which is much much faster - but the tqdm bars all overwrite each other, so it's hard to make sense of the progress, so if possible ideally this multi-proc support could be implemented internally in `to_json` via `num_proc` argument. I guess `num_proc` will be the number of shards? I think the user will need to use this feature wisely, since too many processes writing to say normal style HD is likely to be slower than one process. I'm not sure whether the user should be responsible to concatenate the shards at the end or `datasets`, either way works for my needs. The code I was using: ``` from multiprocessing import cpu_count, Process, Queue [...] filtered_dataset = concat_dataset.map(filter_short_documents, batched=True, batch_size=256, num_proc=cpu_count()) DATASET_NAME = "oscar" SHARDS = 10 def process_shard(idx): print(f"Sharding {idx}") ds_shard = filtered_dataset.shard(SHARDS, idx, contiguous=True) # ds_shard = ds_shard.shuffle() # remove contiguous=True above if shuffling print(f"Saving {DATASET_NAME}-{idx}.jsonl") ds_shard.to_json(f"{DATASET_NAME}-{idx}.jsonl", orient="records", lines=True, force_ascii=False) queue = Queue() processes = [Process(target=process_shard, args=(idx,)) for idx in range(SHARDS)] for p in processes: p.start() for p in processes: p.join() ``` Thank you! @lhoestq Hi @stas00, I want to work on this issue and I was thinking why don't we use `imap` [in this loop](https://github.com/huggingface/datasets/blob/440b14d0dd428ae1b25881aa72ba7bbb8ad9ff84/src/datasets/io/json.py#L99)? This way, using offset (which is being used to slice the pyarrow table) we can convert pyarrow table to `json` using multiprocessing. I've a small code snippet for some clarity: ``` result = list( pool.imap(self._apply_df, [(offset, batch_size) for offset in range(0, len(self.dataset), batch_size)]) ) ``` `_apply_df` is a function which will return `batch.to_pandas().to_json(path_or_buf=None, orient="records", lines=True)` which is basically json version of the batched pyarrow table. Later on we can concatenate it to form json file? I think the only downside here is to write file from `imap` output (output would be a list and we'll need to iterate over it and write in a file) which might add a little overhead cost. What do you think about this?
[ -0.08428631722927094, 0.3327855169773102, 0.009916305541992188, 0.13662387430667877, -0.027126450091600418, -0.0400964729487896, 0.17621135711669922, -0.07482984662055969, -0.3015582263469696, 0.03733294829726219, -0.04194289818406105, -0.09882576018571854, -0.1366724967956543, 0.2440032958984375, 0.00942788366228342, -0.248083233833313, 0.0394914448261261, 0.02900860458612442, 0.022171085700392723, 0.04398635774850845, -0.26655519008636475, 0.10356707125902176, 0.10618042945861816, -0.057629600167274475, 0.09326135367155075, -0.17196297645568848, -0.03961695730686188, 0.2129359096288681, 0.08900529891252518, -0.05436726287007332, -0.21047648787498474, 0.10393126308917999, -0.1575058251619339, 0.13333672285079956, 0.000005335981768439524, 0.014047754928469658, 0.2310236096382141, -0.021096177399158478, 0.016301311552524567, 0.049412135034799576, 0.0855620875954628, -0.04266619682312012, 0.007250998634845018, -0.10987444967031479, 0.027255313470959663, 0.1137532964348793, 0.004145687911659479, 0.05194670334458351, 0.13228446245193481, -0.09021570533514023, -0.0914134532213211, 0.024440478533506393, 0.12690399587154388, -0.0011578277917578816, -0.09072920680046082, -0.031215526163578033, -0.03456391021609306, -0.07229921966791153, -0.11442778259515762, 0.08916433155536652, -0.029728416353464127, -0.01295155007392168, 0.06864715367555618, -0.1046784445643425, 0.08667520433664322, 0.07007087767124176, -0.10445982217788696, -0.11861535161733627, -0.08713096380233765, -0.10118293017148972, -0.2389780730009079, 0.03966115787625313, -0.10106123983860016, 0.024789394810795784, -0.08651547133922577, -0.33324092626571655, -0.0027400548569858074, 0.07044535130262375, 0.026897793635725975, -0.006442319136112928, -0.06917183846235275, -0.044910479336977005, -0.030360694974660873, -0.04851679876446724, -0.027160918340086937, -0.2242371290922165, 0.10877016931772232, 0.10309536010026932, 0.05222092196345329, 0.01759783923625946, -0.010426346212625504, -0.01555363554507494, -0.034314628690481186, -0.05117816850543022, -0.21752038598060608, -0.11281093209981918, -0.059044405817985535, -0.04629625007510185, -0.043710287660360336, -0.06777317821979523, -0.011762156151235104, 0.15341731905937195, 0.0723324567079544, 0.08662780374288559, -0.11077094823122025, -0.19431203603744507, -0.007514105178415775, -0.11327642947435379, -0.01603461429476738, -0.03295285254716873, -0.05630858987569809, 0.11190749704837799, 0.14369648694992065, 0.013635079376399517, 0.2164062261581421, -0.03964431211352348, -0.057033687829971313, 0.16903169453144073, -0.07064559310674667, 0.09159397333860397, 0.1070023849606514, -0.0417892150580883, -0.03439842164516449, 0.01927693746984005, 0.06607620418071747, -0.0017670183442533016, -0.13795901834964752, -0.00024505937471985817, -0.10658250749111176, 0.023150790482759476, 0.033845946192741394, 0.04457680508494377, 0.14884082973003387, 0.0635308101773262, -0.004653306677937508, -0.033134497702121735, -0.046667903661727905, -0.13271696865558624, 0.2121577262878418, -0.010962857864797115, 0.14222127199172974, -0.033202022314071655, -0.06495335698127747, 0.05469641089439392, 0.12621192634105682, 0.03720639646053314, 0.023680496960878372, 0.02224213443696499, -0.1818195879459381, 0.06269384175539017, 0.01736851967871189, -0.00004454894951777533, -0.08657476305961609, 0.07281871885061264, -0.14714105427265167, -0.010270743630826473, -0.12212751060724258, -0.07013456523418427, -0.19026271998882294, 0.027056504040956497, -0.14383476972579956, -0.06774436682462692, -0.17037783563137054, 0.0016411620890721679, -0.11372632533311844, 0.13445110619068146, 0.04821157082915306, 0.09773260354995728, -0.07432977855205536, -0.03866972401738167, 0.26933205127716064, -0.014329141937196255, 0.034117601811885834, -0.0963263064622879, 0.13922694325447083, 0.3030221462249756, -0.10157439112663269, 0.021496228873729706, -0.1266850084066391, 0.04457661882042885, 0.03467946872115135, -0.04950357973575592, 0.07631473243236542, 0.036527566611766815, 0.21825028955936432, -0.09678404033184052, 0.20411302149295807, 0.08974897861480713, 0.037146858870983124, 0.0281992144882679, 0.019408006221055984, 0.13176871836185455, -0.35992592573165894, 0.1372431367635727, 0.0073995948769152164, -0.05431768670678139, 0.08654037863016129, -0.1923849880695343, -0.0358319953083992, -0.10585001111030579, 0.022031275555491447, -0.049228645861148834, -0.024650897830724716, 0.10924087464809418, 0.05980616807937622, 0.10157987475395203, -0.12925155460834503, -0.0030699134804308414, -0.0339849591255188, -0.04877987876534462, -0.040614672005176544, 0.03911878913640976, 0.09271622449159622, 0.1472766101360321, -0.12548232078552246, 0.026394445449113846, -0.0822296217083931, -0.12775856256484985, -0.1343914270401001, 0.022244581952691078, -0.08397145569324493, 0.25099271535873413, 0.02527407370507717, 0.0429765023291111, -0.03321119025349617, 0.07073187083005905, 0.055788181722164154, -0.06627153605222702, 0.13815660774707794, 0.007245440036058426, -0.014340929687023163, -0.14870239794254303, 0.18157625198364258, 0.006295005790889263, -0.11433392018079758, 0.0248118806630373, 0.08839276432991028, -0.0390661247074604, -0.0245441235601902, 0.10489542782306671, -0.03634659945964813, -0.11917182058095932, -0.06627708673477173, -0.08412516862154007, -0.0553046315908432, 0.06266722083091736, -0.09048587083816528, 0.13865138590335846, 0.1102801039814949, -0.07479414343833923, 0.05897776037454605, 0.041900280863046646, -0.10378413647413254, -0.14668960869312286, -0.03010997362434864, -0.08982428163290024, -0.024878403171896935, -0.028263868764042854, 0.044055551290512085, 0.07545513659715652, 0.174504354596138, -0.014246649108827114, 0.004223576281219721, 0.09276778250932693, 0.07304906845092773, 0.03288561478257179, -0.05136939883232117, 0.201683908700943, 0.2529830038547516, 0.046339962631464005, 0.13083882629871368, 0.03454027697443962, -0.042766571044921875, 0.005975526757538319, -0.021432360634207726, -0.04491841793060303, 0.07478433102369308, 0.06310165673494339, 0.11165810376405716, -0.02175540290772915, 0.030168442055583, -0.08927247673273087, 0.08343665301799774, -0.07172996550798416, 0.061217300593853, 0.15390001237392426, -0.020496513694524765, 0.15108083188533783, -0.0814780592918396, -0.1401413381099701, -0.021495701745152473, -0.230363130569458, 0.06638457626104355, 0.0010390498209744692, 0.13001497089862823, -0.05367835611104965, 0.15726394951343536, -0.05074916034936905, -0.10590630769729614, -0.1498912125825882, -0.13794296979904175, -0.002359081292524934, 0.2810453176498413, -0.001769615220837295, 0.12661877274513245, 0.06462308019399643, 0.031914129853248596, -0.09846948087215424, -0.06238338351249695, -0.015242623165249825, -0.1032249853014946, 0.015682723373174667, -0.05705855041742325, 0.04134519770741463, 0.1718454509973526, -0.1377822458744049, -0.1509370058774948, -0.19699911773204803, 0.09298224747180939, -0.03304097801446915, -0.012419364415109158, 0.08847718685865402, -0.15671762824058533, 0.002925966866314411, -0.012741146609187126, 0.10954760015010834, -0.16115422546863556, -0.09930963814258575, 0.12537139654159546, 0.07358315587043762, 0.09465370327234268, -0.1560698002576828, 0.010522255674004555, -0.07939634472131729, 0.08874868601560593, -0.017991911619901657, 0.01561534684151411, -0.08898727595806122, 0.1316428929567337, 0.1118265762925148, -0.02560988813638687, -0.08590999245643616, 0.02506241574883461, -0.04298192262649536, 0.10369352251291275, 0.02387247420847416, -0.031021349132061005, -0.23036865890026093, -0.09756679832935333, 0.16529041528701782, -0.034228868782520294, 0.022137770429253578, -0.05546000227332115, -0.17481663823127747, -0.12134194374084473, -0.0403997078537941, -0.07848527282476425, 0.01734260655939579, -0.22005492448806763, 0.10224161297082901, 0.11266358196735382, 0.19197502732276917, 0.16245031356811523, -0.042648058384656906, -0.14529873430728912, 0.0017765853554010391, 0.09806502610445023, -0.04507393389940262, -0.08187039941549301, -0.13179543614387512, 0.005205816589295864, -0.17006255686283112, 0.0386800691485405, -0.0021248101256787777, -0.0842481181025505, -0.11431492865085602, 0.04251736402511597, -0.09110954403877258, 0.015647420659661293, -0.01722600683569908, 0.08173561841249466, 0.08437269181013107, -0.05865320563316345, 0.05680745840072632, 0.06821826100349426, 0.03695423901081085, 0.006435673218220472, -0.01656208373606205, 0.01874944567680359, 0.1772480607032776, -0.09992220997810364, 0.019232314079999924, -0.007480841130018234, -0.15067295730113983, -0.00647351611405611, -0.06442505121231079, -0.040119826793670654, 0.031196771189570427, 0.015318055637180805, 0.020514072850346565, -0.1049080491065979, 0.23048469424247742, -0.16001059114933014, -0.06786447018384933, 0.05426447093486786, -0.14956915378570557, 0.100056491792202, 0.13499169051647186, 0.17991602420806885, -0.07831738889217377, -0.010709569789469242, 0.1819351464509964, -0.1832963526248932, 0.023533055558800697, 0.17445094883441925, -0.14057542383670807, -0.14827799797058105, -0.13547341525554657, 0.11589383333921432, -0.09840171784162521, -0.14899936318397522, -0.14031381905078888, 0.027580006048083305, 0.09755131602287292, 0.005402244161814451, -0.007826756685972214, -0.05546096712350845, 0.06408524513244629, 0.17313571274280548, -0.023958081379532814, 0.031078485772013664, 0.0033568772487342358, -0.06303984671831131, -0.1354777067899704, 0.10086443275213242, 0.04106760397553444, 0.02250586822628975, -0.04310142248868942, -0.01783164031803608, 0.02239934541285038, -0.08275189995765686, 0.013482177630066872, 0.2765463590621948, -0.02889757975935936, -0.013175059109926224, -0.11457780748605728, -0.1334729790687561, 0.0688692256808281, 0.0575595460832119, -0.058302443474531174, -0.10138342529535294, 0.013509665615856647, 0.0687272846698761, -0.11177153140306473, 0.19470632076263428, -0.021970797330141068, 0.003112002043053508, 0.012169312685728073, -0.04026665911078453, 0.1264151781797409, -0.04356210306286812, -0.08761005103588104, 0.006084398366510868, 0.1016969233751297, -0.19446393847465515, 0.1808534562587738, 0.010719092562794685, -0.08966223150491714, -0.023462573066353798, -0.10215354710817337, -0.17458698153495789, -0.0022063571959733963, -0.016143327578902245, 0.01765292137861252, 0.15667866170406342, 0.030867135152220726, 0.13288062810897827, 0.06572270393371582, -0.15039031207561493, -0.08981785178184509, 0.18310759961605072, -0.1653060019016266, -0.0036709625273942947, -0.054814111441373825, -0.035676147788763046, 0.18423888087272644, -0.2708670198917389, 0.06027583032846451, -0.10486156493425369, -0.054062455892562866, 0.037315212190151215, -0.15441693365573883, -0.1418326497077942, 0.24430201947689056, 0.1778581291437149, -0.1880703568458557, -0.02174288220703602, -0.02770065888762474, -0.060690294951200485, 0.14125855267047882, 0.011040742509067059, -0.13390935957431793, -0.06462126970291138, 0.01736873760819435, -0.10112765431404114, 0.029083717614412308, -0.07722701132297516, -0.08811436593532562, 0.0814366489648819, -0.0421641543507576, -0.11186438053846359, 0.11007966101169586, -0.11590172350406647, -0.14438201487064362, -0.040545810014009476, 0.025233253836631775, 0.12700538337230682, 0.00012174561561550945, 0.09824379533529282, -0.15425585210323334, 0.05668073520064354, -0.008519833907485008, -0.030591953545808792, -0.07983964681625366, 0.025604110211133957, -0.03751948103308678, -0.009851248934864998, -0.11839955300092697, 0.004582360852509737, 0.07809656113386154, 0.032932888716459274, -0.015126451849937439, 0.1269957423210144, -0.049350567162036896, -0.09534057229757309, 0.06807147711515427, 0.08740480989217758, 0.11510937660932541, -0.002349472837522626, -0.03913199156522751, 0.07703343033790588, -0.15669916570186615, -0.2640598714351654, 0.024158665910363197, 0.002755132270976901, -0.12193140387535095, -0.10961612313985825, 0.03236943855881691, 0.07774863392114639, -0.19749757647514343, -0.00839661993086338, 0.05711406469345093, -0.04193988814949989, 0.004474978428333998, -0.08532820641994476, -2.721613254251211e-32, 0.07391703128814697, -0.0818222388625145, -0.07227636873722076, 0.07234104722738266, -0.20755799114704132, -0.1235051304101944, -0.16371190547943115, -0.09271356463432312, 0.13232050836086273, 0.04222201555967331, -0.022021794691681862, 0.0971001386642456, 0.12956508994102478, 0.05925680324435234, 0.052424103021621704, 0.07824341207742691, 0.3445376455783844, -0.09726450592279434, -0.05646181479096413, 0.0023078941740095615, 0.21645094454288483, -0.12729144096374512, 0.11758438497781754, 0.35559743642807007, -0.1213105320930481, 0.012535810470581055, -0.05402238294482231, -0.0166360754519701, 0.11548395454883575, -0.2528678774833679, -0.1509731560945511, 0.15861020982265472, -0.06181030347943306, 0.04908566549420357, -0.11555071175098419, -0.018166130408644676, -0.0857759639620781, 0.11081363260746002, 0.01658054254949093, 0.07981021702289581, -0.14731088280677795, 0.050323452800512314, 0.061560437083244324, 0.09295933693647385, 0.11183259636163712, -0.020918089896440506, -0.12789461016654968, 0.21788929402828217, -0.19750069081783295, 0.03498982638120651, -0.020081453025341034, 0.04390513524413109, -0.040829889476299286, 0.13142795860767365, 0.09982305765151978, -0.22876998782157898, 0.151884987950325, 0.044250328093767166, -0.19835306704044342, -0.08240461349487305, -0.1296137422323227, 0.03352023661136627, 0.14404426515102386, 0.06294059008359909, -0.022590037435293198, 0.07007840275764465, 0.09158600121736526, 0.17197616398334503, 0.4048815667629242, -0.04132535308599472, 0.0493277944624424, -0.02303650602698326, 0.1576026827096939, -0.012332071550190449, 0.012491030618548393, 0.019765090197324753, 0.0642668828368187, 0.037221912294626236, 0.0003777405945584178, -0.0073053352534770966, 0.08996889740228653, -0.050469040870666504, 0.017696596682071686, 0.06663115322589874, -0.06502734124660492, 0.0471513494849205, 0.0570959635078907, 0.027536680921912193, 0.08417337387800217, -0.054386138916015625, 0.0038146048318594694, 0.22157041728496552, 0.037344928830862045, 0.08690663427114487, 0.057618819177150726, 0.03850625082850456, -0.043396711349487305, 0.14905193448066711, -0.009790362790226936, 0.01015723031014204, 0.08347252756357193, 0.09788128733634949, 0.0508347749710083, -0.03101574257016182, 0.17161552608013153, -0.006631982047110796, 0.17692439258098602, 0.013089850544929504, -0.22561992704868317, -0.006837152410298586, -0.058457862585783005, -0.0019042924977838993, 0.0036995839327573776, 0.0410323329269886, 0.11821292340755463, -0.04260688275098801, 0.0817936360836029, -0.055297840386629105, 0.05573359504342079, 0.12500207126140594, 0.09398285299539566, -0.051963966339826584, -0.009586839936673641, 0.008279255591332912, 0.0874660536646843, 0.1126239150762558, -0.2056092619895935, -0.1418919563293457, 0.08230292797088623, -0.12322574108839035, -0.06885840743780136, -0.013753443025052547, 7.607376915075292e-7, -0.04163588583469391, 0.1302352249622345, -0.115845687687397, 0.12664338946342468, 0.006054344121366739, 0.08893989771604538, 0.03294594958424568, 0.05286607891321182, -0.07976049929857254, 0.1951587200164795, 0.008611148223280907, 0.035283662378787994, 0.09701155871152878, 0.2704436182975769, 0.04263613000512123, -0.08527299761772156, -0.23059329390525818, 0.1724526435136795, -0.2251894176006317, 0.007852516137063503, 0.1510457992553711, 0.0747782364487648, -0.0016039465554058552, -0.044697150588035583, 0.05982731655240059, -0.08582514524459839, 0.02466411702334881, 0.07142449915409088, -0.07502779364585876, 0.10348854213953018, 0.14565430581569672, -0.14277584850788116, 0.035372231155633926, 0.1173805445432663, -0.12957645952701569, -0.0099173653870821, -0.15334667265415192, -0.010167059488594532, -0.013473374769091606, -0.008302395232021809, -0.011373866349458694, -0.02100004255771637, 0.14848029613494873, -0.0334225669503212, 0.14944259822368622, 0.08103011548519135, -0.20712162554264069, -0.03002580627799034, -0.02127115987241268, 0.048895213752985, 0.09007199853658676, 0.05685820057988167, -0.02045097015798092, 0.24685771763324738, -0.007227744907140732, -0.010347442701458931, 0.057699594646692276, -0.05723787471652031, -0.07106677442789078, 0.07968375086784363, 0.05720549076795578, -0.0066881305538117886, -0.08827981352806091, -0.08837004750967026, 0.1606147438287735, 0.008282843045890331, -0.06958015263080597, 1.5468002998515418e-34, 0.05304588004946709, -0.008651092648506165, 0.09347394853830338, 0.07327424734830856, -0.105827696621418, -0.04595629498362541, -0.2712438404560089, 0.06176341325044632, -0.010609034448862076, -0.19490988552570343, -0.08733532577753067 ]
https://github.com/huggingface/datasets/issues/2655
Allow the selection of multiple columns at once
Hi! I was looking into this and hope you can clarify a point. Your my_dataset variable would be of type DatasetDict which means the alternative you've described (dict comprehension) is what makes sense. Is there a reason why you wouldn't want to convert my_dataset to a pandas df if you'd like to use it like one? Please let me know if I'm missing something.
**Is your feature request related to a problem? Please describe.** Similar to pandas, it would be great if we could select multiple columns at once. **Describe the solution you'd like** ```python my_dataset = ... # Has columns ['idx', 'sentence', 'label'] idx, label = my_dataset[['idx', 'label']] ``` **Describe alternatives you've considered** we can do `[dataset[col] for col in ('idx', 'label')]` **Additional context** This is of course very minor.
64
Allow the selection of multiple columns at once **Is your feature request related to a problem? Please describe.** Similar to pandas, it would be great if we could select multiple columns at once. **Describe the solution you'd like** ```python my_dataset = ... # Has columns ['idx', 'sentence', 'label'] idx, label = my_dataset[['idx', 'label']] ``` **Describe alternatives you've considered** we can do `[dataset[col] for col in ('idx', 'label')]` **Additional context** This is of course very minor. Hi! I was looking into this and hope you can clarify a point. Your my_dataset variable would be of type DatasetDict which means the alternative you've described (dict comprehension) is what makes sense. Is there a reason why you wouldn't want to convert my_dataset to a pandas df if you'd like to use it like one? Please let me know if I'm missing something.
[ -0.03482170030474663, 0.21639811992645264, -0.018264954909682274, 0.0039336285553872585, 0.015705175697803497, 0.16875781118869781, 0.20328283309936523, 0.019033074378967285, 0.17071533203125, 0.006532043684273958, -0.10440397262573242, 0.020086290314793587, -0.12940342724323273, -0.06947106868028641, 0.05284211412072182, -0.21070295572280884, -0.07823622226715088, -0.12137558311223984, 0.028803016990423203, 0.032752323895692825, -0.03224062919616699, -0.052718594670295715, -0.09140149503946304, -0.0599459744989872, 0.06741210073232651, 0.008357533253729343, 0.01662067510187626, -0.03857933357357979, -0.1978999227285385, -0.11042711138725281, 0.09872749447822571, 0.2742464244365692, 0.0216066837310791, -0.2700980305671692, 0.000005805532964586746, 0.0638415664434433, 0.1843535453081131, -0.1308538317680359, -0.07560302317142487, -0.05556119605898857, -0.0016260528936982155, 0.02317049354314804, 0.14000575244426727, -0.22376646101474762, -0.13629277050495148, -0.07404511421918869, 0.11903625726699829, 0.005149311386048794, 0.0898498073220253, 0.04709349200129509, -0.056206636130809784, -0.0036699934862554073, -0.23297934234142303, -0.06950990855693817, -0.058463823050260544, -0.04935355857014656, 0.13249236345291138, 0.012076737359166145, -0.05598543956875801, 0.07158400863409042, -0.0255767609924078, -0.007554266136139631, -0.11386925727128983, 0.06559799611568451, -0.056992072612047195, -0.03577659651637077, -0.10736344754695892, -0.18026140332221985, 0.04096146672964096, 0.1592540144920349, 0.20600327849388123, 0.036140862852334976, -0.06516150385141373, -0.007158355787396431, 0.027796808630228043, -0.09499891847372055, -0.06755613535642624, -0.1478165239095688, -0.1302141398191452, 0.13394944369792938, 0.07294093072414398, -0.033564209938049316, 0.04906690865755081, 0.06021139770746231, -0.15619313716888428, -0.026843387633562088, -0.05429689586162567, 0.09239169955253601, 0.1258847564458847, 0.04921295866370201, 0.03099747747182846, 0.06614670902490616, -0.15771259367465973, 0.008716389536857605, -0.2796996533870697, -0.022341515868902206, -0.18852829933166504, -0.1525338739156723, 0.1332911252975464, 0.09868771582841873, -0.12342575192451477, 0.020767563953995705, 0.022910570725798607, 0.15434512495994568, 0.18081675469875336, -0.08470992743968964, -0.052294135093688965, 0.1034119501709938, 0.009530249051749706, -0.10020623356103897, -0.050787754356861115, 0.11070036143064499, 0.05127063766121864, 0.10084867477416992, -0.0868629440665245, 0.11549478024244308, -0.05329480767250061, 0.17600783705711365, -0.1352052241563797, -0.1004006490111351, 0.019008159637451172, -0.013824564404785633, 0.01888587884604931, 0.08304150402545929, 0.046512093394994736, -0.09250329434871674, -0.004325079265981913, 0.07298595458269119, 0.11459817737340927, -0.1255864053964615, 0.011452047154307365, 0.16826248168945312, 0.19162555038928986, -0.23521468043327332, 0.14105677604675293, -0.00933151226490736, -0.14767585694789886, -0.06533755362033844, 0.061435766518116, -0.02692357450723648, -0.12478746473789215, 0.014990104362368584, 0.032916110008955, 0.027174169197678566, 0.1145801767706871, 0.05403604730963707, 0.1181052103638649, 0.005357231013476849, -0.12737515568733215, 0.07209476083517075, -0.09521886706352234, 0.15273022651672363, -0.1087949201464653, -0.036471351981163025, 0.005971122998744249, -0.057222478091716766, 0.1023554727435112, -0.053754955530166626, -0.22905485332012177, -0.05827580392360687, 0.09680815786123276, -0.03505078703165054, 0.07649443298578262, -0.09368161857128143, 0.07607074826955795, 0.14672942459583282, -0.0386357381939888, 0.06374196708202362, 0.044091545045375824, -0.1135539636015892, -0.03497803211212158, 0.098161481320858, -0.09877464920282364, -0.007579809986054897, 0.047965165227651596, 0.10480636358261108, 0.031669773161411285, -0.102210633456707, -0.17084553837776184, -0.0067615448497235775, 0.07788646966218948, -0.0875268429517746, 0.17795681953430176, 0.08882850408554077, 0.1914808601140976, 0.05799048766493797, 0.03842177242040634, -0.10761794447898865, 0.03687382861971855, -0.02745441533625126, 0.04404627904295921, 0.02770162560045719, 0.04876400902867317, 0.1491115689277649, -0.0007868838729336858, 0.08207762241363525, 0.03859654441475868, -0.002794780069962144, 0.07359731942415237, 0.013827914372086525, -0.2046794593334198, -0.03421936184167862, -0.1331857293844223, -0.07358983904123306, 0.04751954972743988, -0.11854325979948044, -0.03420040383934975, -0.14353160560131073, 0.2956099808216095, 0.02310801111161709, 0.012580853886902332, -0.057200025767087936, -0.05596527084708214, -0.008196285925805569, -0.14736586809158325, -0.02564617618918419, -0.12294436991214752, -0.11247996985912323, -0.09429550170898438, 0.15453951060771942, -0.1639569103717804, 0.18120065331459045, 0.030823033303022385, 0.13749627768993378, 0.24468261003494263, -0.14852827787399292, 0.05373138189315796, 0.17652791738510132, 0.09929011762142181, -0.06476350128650665, -0.07559000700712204, -0.03391453996300697, 0.09560612589120865, 0.0038243308663368225, -0.004090950358659029, -0.040767114609479904, 0.004422004334628582, 0.004921732470393181, -0.128498837351799, 0.04327848181128502, -0.11943978071212769, -0.07155255973339081, 0.040434665977954865, -0.015477403067052364, -0.09877406805753708, -0.018552247434854507, -0.11132170259952545, -0.005622024182230234, 0.018709393218159676, -0.03493116796016693, 0.10490858554840088, -0.16583558917045593, -0.13404136896133423, -0.07898259162902832, -0.01871258206665516, -0.10580045729875565, 0.10839200764894485, 0.06377498060464859, 0.04862809181213379, -0.0006650137365795672, 0.15687033534049988, 0.07625651359558105, -0.0014329514233395457, 0.09116488695144653, 0.17227008938789368, 0.14124621450901031, -0.01340144220739603, 0.1924682855606079, -0.19740353524684906, -0.024509692564606667, 0.05017465353012085, -0.07493435591459274, -0.028965173289179802, -0.09852216392755508, 0.01960156112909317, -0.08629021048545837, -0.11431296169757843, 0.09009388834238052, 0.014028358273208141, 0.18182532489299774, -0.13911613821983337, -0.013651886954903603, 0.02111552096903324, 0.030580846592783928, 0.10951457917690277, 0.05570223927497864, -0.033839043229818344, -0.1506287306547165, 0.22220391035079956, -0.032814763486385345, 0.08451149612665176, -0.07121282070875168, 0.059989821165800095, -0.07030174136161804, 0.14050428569316864, -0.06278978288173676, -0.11603743582963943, 0.02945416420698166, -0.07796576619148254, 0.051982395350933075, -0.001362358219921589, -0.08523223549127579, 0.1722969114780426, 0.14315477013587952, 0.022842591628432274, 0.12368506193161011, 0.08323410153388977, 0.2571467161178589, -0.05501565337181091, -0.007673668209463358, 0.053515270352363586, 0.03977124020457268, 0.13784091174602509, 0.06989522278308868, -0.013545568101108074, 0.13571521639823914, -0.19705770909786224, -0.058464039117097855, -0.0213158056139946, 0.010366778820753098, -0.13523408770561218, 0.01814326085150242, 0.17067119479179382, 0.14414437115192413, -0.07826528698205948, -0.02298787236213684, -0.07597434520721436, -0.1693795621395111, 0.1179405078291893, -0.01238210778683424, -0.05551246181130409, 0.009184242226183414, -0.049930036067962646, -0.04279545694589615, 0.08496245741844177, 0.009231891483068466, -0.04444124549627304, 0.15920421481132507, 0.2491462230682373, 0.20839841663837433, -0.10506029427051544, -0.07230548560619354, -0.006854922045022249, -0.0648747906088829, -0.01628773659467697, -0.03301825374364853, 0.20783822238445282, -0.05559318885207176, 0.09263397008180618, -0.14096039533615112, 0.1025010496377945, -0.05477806553244591, 0.05221061408519745, -0.027405135333538055, 0.05689791589975357, 0.005189369432628155, -0.11441891640424728, 0.07116280496120453, -0.40621668100357056, 0.09417431056499481, 0.07458033412694931, 0.02857596054673195, -0.05868008732795715, -0.023931993171572685, 0.17957709729671478, 0.19458454847335815, 0.007359868381172419, 0.030472563579678535, -0.02738252654671669, -0.16415542364120483, -0.03414766862988472, -0.17187534272670746, 0.13940992951393127, -0.008334600366652012, -0.05819201469421387, -0.0678199753165245, -0.0042845034040510654, 0.05755222961306572, 0.0622834786772728, 0.02112683653831482, 0.041463304311037064, -0.28250715136528015, -0.05548366531729698, 0.043148886412382126, 0.04271594434976578, -0.08523297309875488, -0.025715628638863564, -0.017248842865228653, 0.05079514905810356, 0.19627825915813446, -0.05838179960846901, -0.05507568269968033, -0.12780581414699554, -0.015445769764482975, 0.06844214349985123, 0.03438040614128113, 0.09879560023546219, 0.07512763142585754, 0.15474463999271393, -0.020325202494859695, 0.0017878536600619555, 0.1236296221613884, -0.08839662373065948, -0.12791749835014343, 0.05676816776394844, -0.06008808687329292, 0.004925347398966551, 0.13664576411247253, 0.04684323072433472, -0.11947160959243774, -0.0180231761187315, -0.03365769237279892, -0.16893243789672852, -0.04803109169006348, 0.20366206765174866, 0.03250110149383545, -0.1438320279121399, -0.11606787145137787, 0.07968147844076157, -0.056225426495075226, -0.11011961847543716, -0.11197693645954132, 0.09562862664461136, 0.024136660620570183, 0.009073616936802864, 0.06154168024659157, -0.19062601029872894, 0.13684241473674774, -0.008436859585344791, 0.07881155610084534, -0.021781563758850098, 0.024404682219028473, 0.009516755118966103, -0.13708196580410004, -0.07299988716840744, 0.029559528455138206, 0.24250636994838715, -0.08513577282428741, -0.08497630059719086, -0.05135674402117729, -0.019635623320937157, 0.16618011891841888, 0.03172969073057175, -0.09898199886083603, 0.1276620626449585, -0.07530172169208527, -0.04222121834754944, 0.10032247006893158, -0.08420870453119278, 0.08099266141653061, -0.1335253119468689, -0.09013385325670242, -0.2727753221988678, 0.08200845867395401, 0.023697011172771454, 0.010151456110179424, 0.10402567684650421, 0.0073538171127438545, -0.034009020775556564, 0.13105830550193787, -0.1697302609682083, -0.09683933854103088, -0.0413140207529068, 0.016793832182884216, -0.14956535398960114, 0.14244860410690308, 0.1885899007320404, -0.02930193394422531, -0.04574419558048248, -0.13019244372844696, 0.021737078204751015, 0.022394593805074692, 0.00016321484872605652, -0.012193163856863976, 0.1923072785139084, -0.027185529470443726, -0.1152423769235611, -0.12272633612155914, -0.07873037457466125, 0.15005111694335938, 0.12457690387964249, -0.1063876748085022, 0.12990747392177582, 0.0408366322517395, -0.14130674302577972, -0.006010666489601135, 0.01901319809257984, -0.05123915895819664, -0.06067317724227905, 0.07838570326566696, -0.1770671159029007, -0.21863839030265808, -0.08854269236326218, 0.008554963394999504, -0.022680018097162247, -0.14097218215465546, 0.061338894069194794, 0.2615322172641754, -0.030262883752584457, 0.11354615539312363, 0.06691478937864304, 0.008348429575562477, -0.01796898990869522, -0.00014662343892268836, -0.0669083520770073, -0.10341880470514297, 0.07718927413225174, -0.037728048861026764, 0.1360057145357132, -0.05531742796301842, -0.02096661552786827, -0.1300230473279953, -0.020569125190377235, 0.05250727757811546, 0.23928673565387726, 0.06361456960439682, 0.020254235714673996, 0.07634121924638748, -0.06312286853790283, 0.004476240836083889, -0.16340552270412445, -0.025383979082107544, 0.0075128329917788506, 0.06693623960018158, -0.04673033952713013, -0.06511498242616653, 0.11762892454862595, -0.13879720866680145, 0.012252256274223328, 0.0606851652264595, 0.01922481134533882, 0.03673838824033737, 0.11280954629182816, 0.017333853989839554, -0.11769314110279083, 0.009154636412858963, -0.09377066045999527, 0.0750696212053299, 0.1294960379600525, 0.0006450673099607229, 0.02149396389722824, -0.08185219764709473, -0.1007607951760292, -0.05203434079885483, -0.07029219716787338, -0.13316750526428223, -0.2545442581176758, 0.009463069960474968, 0.0953710526227951, -0.17966580390930176, 0.014106385409832, 0.0435139536857605, 0.04805593192577362, -0.05857772007584572, -0.059518951922655106, -2.6098178640162574e-32, 0.07353702187538147, 0.026807377114892006, -0.02119028940796852, 0.1392032504081726, -0.02077522873878479, -0.13515253365039825, -0.04812338948249817, 0.018725940957665443, 0.017865953966975212, 0.16221840679645538, -0.05904367193579674, -0.09487715363502502, -0.03281964361667633, 0.1092413142323494, 0.02967829443514347, -0.06927706301212311, -0.039224255830049515, -0.15259435772895813, 0.10159698128700256, 0.15391702950000763, 0.11448751389980316, -0.056181278079748154, 0.013536281883716583, -0.013631236739456654, -0.00015034634270705283, -0.0352298840880394, -0.12072166800498962, -0.07670380920171738, 0.0021983713377267122, 0.0922432541847229, -0.020997609943151474, 0.029893998056650162, 0.22991931438446045, -0.030929289758205414, -0.09177640080451965, 0.16863217949867249, -0.13457222282886505, -0.009038527496159077, -0.20187914371490479, 0.09363188594579697, 0.017241345718503, 0.05684700235724449, 0.1791781634092331, -0.04068399593234062, 0.15199969708919525, 0.10330130159854889, 0.008755949325859547, -0.103936567902565, -0.09660927951335907, 0.025117646902799606, 0.05542529374361038, 0.15325766801834106, 0.10861608386039734, 0.0737132653594017, 0.114530548453331, -0.05263552442193031, -0.07568434625864029, -0.002303086454048753, 0.04662558063864708, -0.04890238493680954, 0.2130921632051468, -0.017919791862368584, -0.10142464935779572, 0.11865507811307907, 0.04174347594380379, 0.06242441013455391, 0.11948265135288239, -0.10758070647716522, 0.022178418934345245, 0.011081400327384472, -0.014444241300225258, 0.2326182723045349, -0.08074236661195755, 0.1941707730293274, -0.21635618805885315, -0.15815018117427826, -0.27720245718955994, -0.16429533064365387, 0.0390612855553627, -0.042291346937417984, 0.03254007548093796, 0.07214094698429108, 0.028546931222081184, 0.025087470188736916, 0.06631762534379959, 0.13669776916503906, -0.02266433648765087, 0.17806753516197205, -0.07622271776199341, -0.03934013471007347, -0.2395664006471634, 0.05266120657324791, -0.019533440470695496, 0.09404926747083664, -0.19995369017124176, 0.07669874280691147, -0.05087890103459358, -0.02041255496442318, -0.09149795025587082, -0.2664102017879486, -0.012389442883431911, -0.06005129590630531, 0.01540207676589489, -0.026791470125317574, 0.1726088672876358, 0.06076354160904884, 0.08698353171348572, -0.18707093596458435, -0.28801628947257996, -0.07898029685020447, -0.04013407230377197, 0.08432453125715256, 0.1533118188381195, 0.0886293351650238, 0.11547961831092834, 0.034363143146038055, 0.031002487987279892, -0.02533365972340107, 0.025118639692664146, 0.04588691517710686, -0.239526629447937, -0.009857402183115482, -0.06395324319601059, -0.049691155552864075, 0.19400405883789062, -0.08628000319004059, -0.14633648097515106, -0.1027907207608223, -0.014004575088620186, 0.009427525103092194, 0.023284653201699257, -0.05035906657576561, 7.658433105461881e-7, -0.15519344806671143, 0.01608949713408947, -0.045263055711984634, 0.0021536860149353743, -0.012662865221500397, 0.08732007443904877, 0.11852949112653732, -0.14406238496303558, -0.13477621972560883, -0.0400901734828949, 0.1473248302936554, -0.04401175677776337, 0.03473014011979103, 0.1292930245399475, -0.06548843532800674, -0.08543793857097626, -0.07823388278484344, 0.03690106421709061, 0.051008980721235275, -0.2195701152086258, 0.15187253057956696, -0.06042041629552841, -0.012382962740957737, 0.02411913126707077, 0.17416028678417206, -0.03836843743920326, -0.05985167995095253, 0.09981739521026611, 0.13855864107608795, 0.16436141729354858, 0.09364256262779236, -0.012787427753210068, -0.060424208641052246, 0.2645064890384674, 0.005814638454467058, 0.01705215871334076, -0.23040156066417694, 0.17132067680358887, -0.03610551357269287, -0.07751629501581192, -0.010951168835163116, 0.07554462552070618, 0.010680804029107094, -0.018080107867717743, 0.12100884318351746, -0.06913997232913971, 0.0674036517739296, -0.024322770535945892, 0.11701498180627823, 0.13832972943782806, 0.13358591496944427, 0.017646634951233864, -0.06905391812324524, -0.023802319541573524, -0.11615125089883804, -0.0009795362129807472, 0.09436169266700745, -0.1658480316400528, 0.01314452476799488, -0.015790531411767006, -0.09008628129959106, 0.09841335564851761, 0.00544279208406806, -0.07685784250497818, 0.08287360519170761, 0.03961055353283882, -0.00586896063759923, 8.765818068397118e-35, -0.14547765254974365, -0.024409960955381393, 0.05728038400411606, 0.13516825437545776, -0.021008996292948723, -0.09188331663608551, -0.04569926857948303, 0.04964466765522957, 0.15253104269504547, -0.09099768847227097, -0.058745529502630234 ]
https://github.com/huggingface/datasets/issues/2655
Allow the selection of multiple columns at once
Hi! Sorry for the delay. In this case, the dataset would be a `datasets.Dataset` and we want to select multiple columns, the `idx` and `label` columns for example. My issue is that my dataset is too big for memory if I load everything into pandas.
**Is your feature request related to a problem? Please describe.** Similar to pandas, it would be great if we could select multiple columns at once. **Describe the solution you'd like** ```python my_dataset = ... # Has columns ['idx', 'sentence', 'label'] idx, label = my_dataset[['idx', 'label']] ``` **Describe alternatives you've considered** we can do `[dataset[col] for col in ('idx', 'label')]` **Additional context** This is of course very minor.
45
Allow the selection of multiple columns at once **Is your feature request related to a problem? Please describe.** Similar to pandas, it would be great if we could select multiple columns at once. **Describe the solution you'd like** ```python my_dataset = ... # Has columns ['idx', 'sentence', 'label'] idx, label = my_dataset[['idx', 'label']] ``` **Describe alternatives you've considered** we can do `[dataset[col] for col in ('idx', 'label')]` **Additional context** This is of course very minor. Hi! Sorry for the delay. In this case, the dataset would be a `datasets.Dataset` and we want to select multiple columns, the `idx` and `label` columns for example. My issue is that my dataset is too big for memory if I load everything into pandas.
[ -0.10696208477020264, 0.21872775256633759, -0.0157784391194582, 0.011683564633131027, 0.05209214985370636, 0.1680513471364975, 0.24792832136154175, 0.093312568962574, 0.1699323058128357, -0.0014823790406808257, -0.13562127947807312, 0.00619541248306632, -0.19720087945461273, -0.0831332802772522, 0.10107122361660004, -0.26961711049079895, -0.0847802460193634, -0.12449342757463455, 0.012807325460016727, 0.056759063154459, -0.02147037163376808, -0.07462595403194427, -0.01645599864423275, -0.07794275134801865, 0.027225185185670853, 0.00043978041503578424, 0.0042683957144618034, -0.08159779757261276, -0.19405633211135864, -0.13857050240039825, 0.08344139903783798, 0.22882746160030365, 0.035284195095300674, -0.26786524057388306, 0.000005940883056609891, 0.027874110266566277, 0.14932779967784882, -0.10036493837833405, -0.030111273750662804, -0.0054806605912745, 0.011115157045423985, 0.0173050407320261, 0.11528177559375763, -0.20257999002933502, -0.08648809045553207, -0.08552961051464081, 0.12485558539628983, 0.07438516616821289, 0.1166859045624733, 0.041677672415971756, -0.03917527198791504, 0.034536927938461304, -0.2007818967103958, -0.08157022297382355, 0.009531396441161633, -0.07437879592180252, 0.10120731592178345, -0.03572119399905205, -0.05620280280709267, 0.0999564528465271, -0.015612947754561901, -0.007572506554424763, -0.07036004960536957, 0.04601539298892021, -0.10611283779144287, -0.032154906541109085, -0.12241172045469284, -0.15539324283599854, 0.051579367369413376, 0.1687946319580078, 0.14994199573993683, 0.022316034883260727, -0.06470003724098206, -0.009572440758347511, 0.04012463614344597, -0.12875774502754211, -0.09905396401882172, -0.0587507039308548, -0.11464383453130722, 0.10471640527248383, 0.0364316888153553, -0.00900300219655037, 0.05414416268467903, 0.013556674122810364, -0.1331658512353897, -0.009968019090592861, -0.041310250759124756, 0.05046813562512398, 0.15117470920085907, -0.027570700272917747, 0.05842422693967819, 0.08314380794763565, -0.14991503953933716, 0.006650016643106937, -0.3038417100906372, -0.06487276405096054, -0.158916637301445, -0.1422133445739746, 0.18459053337574005, 0.04402151331305504, -0.10462991148233414, 0.026617933064699173, -0.016041995957493782, 0.14950579404830933, 0.17872284352779388, -0.09093145281076431, -0.08440181612968445, 0.05307485908269882, 0.046970199793577194, -0.11466608941555023, -0.013232847675681114, 0.07487346231937408, 0.02972477115690708, 0.04008037596940994, -0.02135496214032173, 0.12381698936223984, -0.06480193883180618, 0.18773698806762695, -0.11475706845521927, -0.14755123853683472, 0.05972374230623245, 0.007830051705241203, 0.016389962285757065, 0.035892877727746964, 0.08159168064594269, -0.07082945108413696, -0.026734162122011185, 0.07690069824457169, 0.08523645251989365, -0.12638136744499207, -0.0185615886002779, 0.2149132639169693, 0.16686765849590302, -0.22015340626239777, 0.11540636420249939, 0.003573141759261489, -0.13177858293056488, -0.051737088710069656, 0.03489990532398224, -0.025492116808891296, -0.05014441907405853, 0.007641947362571955, 0.05082176998257637, 0.0033729630522429943, 0.08000931143760681, 0.040519166737794876, 0.13215813040733337, 0.019775385037064552, -0.12235367298126221, 0.09264038503170013, -0.06478697061538696, 0.1648421734571457, -0.09692247211933136, -0.01775413006544113, 0.028363268822431564, -0.04090072587132454, 0.14368706941604614, -0.06631351262331009, -0.2042079120874405, -0.10298594832420349, 0.13225680589675903, -0.018625682219862938, 0.09656252712011337, -0.07554183155298233, 0.06114891171455383, 0.12116692215204239, 0.02104792930185795, 0.07151807844638824, 0.07721278816461563, -0.08731026947498322, -0.01601102016866207, 0.09573108702898026, -0.08995798975229263, -0.016148800030350685, 0.05992232635617256, 0.11189752072095871, 0.035158392041921616, -0.07057246565818787, -0.13163362443447113, 0.006693934090435505, 0.062311410903930664, -0.11685340106487274, 0.16437064111232758, 0.15327244997024536, 0.21750134229660034, 0.05717485025525093, 0.11434222012758255, -0.05439853295683861, -0.004326466470956802, -0.0012084172340109944, 0.0499342642724514, 0.005305755417793989, 0.006080785300582647, 0.11891833692789078, 0.005538618192076683, 0.08536707609891891, 0.04030388221144676, 0.009007002227008343, 0.08529011905193329, -0.011992215178906918, -0.19879168272018433, -0.0000085719111666549, -0.1531270444393158, -0.057277239859104156, -0.03371484577655792, -0.14148733019828796, -0.000907561625353992, -0.1430182009935379, 0.30594950914382935, 0.004313703626394272, 0.05306410789489746, -0.044493649154901505, -0.03030296415090561, -0.05147087201476097, -0.05070206895470619, -0.02059239149093628, -0.12222660332918167, -0.11656898260116577, -0.06181391701102257, 0.1179419606924057, -0.13685740530490875, 0.2080426663160324, 0.0016900948248803616, 0.1479240208864212, 0.21385085582733154, -0.11514066159725189, 0.06651899963617325, 0.18153519928455353, 0.14459021389484406, -0.07388095557689667, -0.09547269344329834, -0.05402153730392456, 0.1297854781150818, 0.026601040735840797, -0.03635789081454277, -0.018953964114189148, -0.009649406187236309, 0.03587391600012779, -0.1480986624956131, 0.053874317556619644, -0.15629993379116058, -0.12068092823028564, 0.022063661366701126, 0.022137673571705818, -0.0990985855460167, -0.044888563454151154, -0.1590947061777115, -0.017297660931944847, 0.07496842741966248, -0.04771285876631737, 0.11346900463104248, -0.17268796265125275, -0.15557706356048584, -0.09258560091257095, -0.0372331365942955, -0.07097753137350082, 0.08129921555519104, 0.07061388343572617, -0.0194292813539505, 0.03977014496922493, 0.1653914451599121, 0.08089247345924377, -0.00607120618224144, 0.07085350900888443, 0.1814015507698059, 0.12222853302955627, -0.018081657588481903, 0.11240439116954803, -0.11132942885160446, 0.005663897842168808, 0.023734932765364647, -0.06272903829813004, 0.011898734606802464, -0.09507595002651215, -0.021088087931275368, -0.13699939846992493, -0.12992346286773682, 0.06908010691404343, 0.03007877990603447, 0.1881236881017685, -0.1445436030626297, 0.03941238671541214, 0.05759847164154053, 0.005380966234952211, 0.0923728346824646, 0.031728118658065796, -0.02228480391204357, -0.16331328451633453, 0.15028992295265198, 0.01303490623831749, 0.15577183663845062, -0.054205186665058136, 0.06461410969495773, -0.007034109439700842, 0.10077692568302155, -0.0649203434586525, -0.1520359069108963, 0.08374611288309097, -0.02595609426498413, 0.08952951431274414, -0.010315768420696259, -0.07139775902032852, 0.20653633773326874, 0.13690675795078278, 0.00913180597126484, 0.10799480974674225, 0.097504161298275, 0.23759257793426514, -0.037703171372413635, -0.015410534106194973, 0.05486329272389412, 0.06333518028259277, 0.1684153974056244, 0.04080633446574211, 0.013559755869209766, 0.12787196040153503, -0.17496110498905182, -0.03107517398893833, -0.016586121171712875, 0.01551052276045084, -0.10226358473300934, 0.0100157605484128, 0.14410161972045898, 0.1303427815437317, -0.09782329946756363, 0.03897840902209282, -0.04910140857100487, -0.18462155759334564, 0.0836525484919548, -0.01667310856282711, -0.07860404253005981, 0.006835012696683407, -0.04871472343802452, -0.041285399347543716, 0.11932988464832306, -0.016997773200273514, -0.0264698788523674, 0.11785519123077393, 0.2731248736381531, 0.1893789917230606, -0.09907624125480652, -0.14067432284355164, 0.0021484987810254097, -0.04023145139217377, 0.005473954603075981, -0.0431269034743309, 0.19871416687965393, -0.11526171863079071, 0.029439112171530724, -0.0944935530424118, 0.15141862630844116, -0.06756460666656494, 0.050192054361104965, -0.07795409113168716, 0.04477158933877945, 0.013377472758293152, -0.08674201369285583, 0.04209347441792488, -0.4014109969139099, 0.04821939021348953, 0.06883958727121353, 0.043850500136613846, -0.05088445916771889, -0.05522302910685539, 0.1664331555366516, 0.17205843329429626, -0.057947754859924316, 0.025966402143239975, -0.04277588427066803, -0.20565487444400787, -0.039317838847637177, -0.15068919956684113, 0.11661875993013382, 0.0018244265811517835, -0.03799691051244736, -0.07798844575881958, 0.026132697239518166, 0.07757610827684402, 0.07765011489391327, 0.043532732874155045, 0.048047985881567, -0.22022338211536407, -0.0845797136425972, 0.0332551933825016, 0.019268963485956192, -0.13424308598041534, -0.0169887263327837, -0.054572030901908875, -0.049791958183050156, 0.1797281801700592, -0.050671666860580444, -0.03769848868250847, -0.04297850281000137, 0.001262772362679243, 0.03808290511369705, 0.053650982677936554, 0.11593807488679886, 0.09271731227636337, 0.11904188245534897, -0.05005085468292236, 0.002719708951190114, 0.08560480177402496, -0.06484862416982651, -0.13044902682304382, 0.02387717366218567, -0.040998876094818115, -0.026421302929520607, 0.19004090130329132, 0.023423679172992706, -0.17751137912273407, 0.004073448944836855, 0.013873175717890263, -0.17750072479248047, -0.03726549074053764, 0.24176982045173645, 0.02235543355345726, -0.1644865721464157, -0.08818314969539642, 0.06598258018493652, -0.02645573392510414, -0.10248323529958725, -0.0662795752286911, 0.09788453578948975, 0.01823853701353073, 0.010484332218766212, 0.04566769301891327, -0.20707884430885315, 0.0827232301235199, -0.04017579182982445, 0.04690276458859444, -0.08125869929790497, 0.056181538850069046, -0.014061257243156433, -0.2082267552614212, -0.07826004177331924, -0.019976390525698662, 0.23652438819408417, -0.1238938421010971, -0.05607684701681137, -0.051944661885499954, -0.012809954583644867, 0.1522143930196762, 0.09567197412252426, -0.06657373905181885, 0.10918531566858292, -0.0711178332567215, -0.042820729315280914, 0.11102603375911713, -0.06901848316192627, 0.09245132654905319, -0.17303723096847534, -0.08053198456764221, -0.2652668058872223, 0.04635496065020561, 0.07419620454311371, 0.03088504821062088, 0.09462155401706696, 0.08224472403526306, -0.03712557256221771, 0.0616031251847744, -0.16862447559833527, -0.0887734591960907, -0.09192440658807755, -0.005704686511307955, -0.16369296610355377, 0.08570786565542221, 0.23515678942203522, -0.06726738810539246, -0.022525729611516, -0.13912442326545715, -0.055284284055233, 0.04830848425626755, -0.03330880403518677, -0.010525470599532127, 0.16485941410064697, -0.06835485249757767, -0.11523345112800598, -0.12792867422103882, -0.040652044117450714, 0.14115531742572784, 0.10524922609329224, -0.14322999119758606, 0.08854393661022186, 0.04175761342048645, -0.13066166639328003, 0.057523272931575775, -0.049673981964588165, -0.05319446325302124, -0.046340979635715485, 0.11718966066837311, -0.2051042914390564, -0.17381252348423004, -0.12030243128538132, 0.03147188574075699, 0.05531496927142143, -0.19441990554332733, 0.04057556018233299, 0.17626217007637024, -0.0620291642844677, 0.14811983704566956, 0.0167691670358181, 0.013469032943248749, -0.046025022864341736, 0.023871729150414467, -0.028928305953741074, -0.08666931092739105, 0.06040011718869209, -0.025810236111283302, 0.18541721999645233, -0.030933883041143417, 0.03361855447292328, -0.14117197692394257, -0.030453255400061607, 0.01736455410718918, 0.18457113206386566, 0.03507306054234505, 0.0018693808233365417, 0.04730098322033882, -0.016838110983371735, 0.0282461978495121, -0.14893554151058197, -0.019373254850506783, 0.02484351396560669, 0.06658175587654114, -0.08149884641170502, -0.0835508182644844, 0.12303536385297775, -0.14333131909370422, 0.02446170151233673, 0.08469964563846588, 0.07307218760251999, 0.047250986099243164, 0.06195177510380745, -0.0016925667878240347, -0.13819734752178192, 0.005204012617468834, -0.04519350826740265, -0.0005546917673200369, 0.13153889775276184, -0.05768073722720146, 0.03445662930607796, -0.03159334138035774, -0.09735935926437378, -0.04777998477220535, -0.06651633232831955, -0.10497008264064789, -0.21803732216358185, -0.00398798193782568, 0.11324169486761093, -0.13046282529830933, 0.03188358619809151, 0.020609386265277863, 0.060478247702121735, -0.10064104944467545, -0.023619400337338448, -2.563240075859275e-32, 0.018950531259179115, 0.01661195047199726, -0.03309212252497673, 0.20306602120399475, -0.04805641993880272, -0.1707780659198761, -0.05043115094304085, 0.0057053412310779095, 0.06374498456716537, 0.13782814145088196, -0.07700898498296738, -0.09969522804021835, -0.048551302403211594, 0.10246891528367996, 0.05644669756293297, -0.05718846991658211, -0.06746774911880493, -0.14742231369018555, 0.09610898047685623, 0.21513518691062927, 0.12454436719417572, -0.05972708389163017, -0.029882915318012238, 0.00603039376437664, -0.027233963832259178, -0.01599329710006714, -0.11163906753063202, -0.05887988582253456, 0.0000326497720379848, 0.07712776213884354, -0.013255981728434563, 0.0222487635910511, 0.22135387361049652, -0.0625854879617691, -0.07314296811819077, 0.22100774943828583, -0.10308754444122314, 0.019218742847442627, -0.22276069223880768, 0.1521523892879486, 0.03415624052286148, 0.0264709684997797, 0.1429147571325302, -0.035076141357421875, 0.23262520134449005, 0.08736865222454071, 0.008720926940441132, -0.10999416559934616, -0.06529058516025543, -0.05760672315955162, 0.004089613910764456, 0.14519494771957397, 0.09001611173152924, 0.12297651916742325, 0.0951700285077095, -0.04413403198122978, -0.05579529330134392, 0.0016826627543196082, 0.05207237973809242, -0.044334832578897476, 0.19966411590576172, 0.03038761205971241, -0.12747907638549805, 0.1364610642194748, 0.04035847634077072, 0.06429605931043625, 0.10323643684387207, -0.12991414964199066, 0.05075004696846008, 0.014605452306568623, 0.03357961028814316, 0.194565087556839, -0.018324781209230423, 0.1590898633003235, -0.23360002040863037, -0.13314738869667053, -0.2763558626174927, -0.15003450214862823, 0.053088366985321045, -0.0626714676618576, 0.05892259255051613, 0.04527914151549339, 0.08398915827274323, 0.0009543289197608829, 0.06107499450445175, 0.18173086643218994, -0.03752756118774414, 0.1809362918138504, -0.03320620581507683, -0.016846492886543274, -0.14222726225852966, 0.11150731146335602, -0.024657702073454857, 0.08818284422159195, -0.22064104676246643, 0.06700050085783005, -0.042296115309000015, -0.01811726577579975, -0.10853792726993561, -0.26011523604393005, -0.0005709899123758078, -0.10335753113031387, -0.000751974992454052, -0.04379746690392494, 0.1951959729194641, 0.05225453898310661, 0.19592851400375366, -0.17096421122550964, -0.3358270823955536, -0.09937454760074615, -0.06339938938617706, 0.08359038084745407, 0.18427979946136475, 0.04920881986618042, 0.10912150889635086, 0.049731697887182236, 0.02967584691941738, 0.03692226856946945, 0.017758697271347046, 0.025604287162423134, -0.2656787931919098, -0.07111309468746185, -0.021480610594153404, -0.030426694080233574, 0.1389678418636322, -0.061204537749290466, -0.1397322118282318, -0.06120375171303749, 0.00027982168830931187, -0.04447486996650696, -0.001102304202504456, -0.06883247941732407, 7.76615650011081e-7, -0.17158012092113495, 0.027344558387994766, -0.05648919939994812, -0.0687042772769928, 0.02800397202372551, 0.10621888935565948, 0.07290097326040268, -0.11512956023216248, -0.09826799482107162, -0.027378858998417854, 0.09182022511959076, -0.03686710447072983, 0.050845250487327576, 0.10633879899978638, -0.13435590267181396, -0.11393848806619644, -0.04938891530036926, 0.03947557508945465, -0.008089269511401653, -0.17152464389801025, 0.14305303990840912, -0.00931565836071968, 0.021069496870040894, 0.04303355515003204, 0.21503692865371704, -0.05676279962062836, -0.03377021849155426, 0.07455209642648697, 0.13841915130615234, 0.14415137469768524, 0.05963429808616638, 0.024090519174933434, -0.07681528478860855, 0.24521797895431519, -0.016779163852334023, -0.008950206451117992, -0.24264276027679443, 0.09547048807144165, -0.0017888237489387393, -0.048777010291814804, 0.01450981292873621, 0.046936631202697754, -0.034624844789505005, -0.011960211209952831, 0.12646238505840302, -0.09036467224359512, 0.011518528684973717, -0.00026667641941457987, 0.11294341087341309, 0.09816064685583115, 0.1351143717765808, 0.04111131280660629, -0.008025217801332474, -0.0076930648647248745, -0.08294826000928879, -0.006497291382402182, 0.08008474111557007, -0.15424519777297974, -0.03645620122551918, 0.0015039092395454645, -0.09556097537279129, 0.06351041048765182, -0.03399564325809479, -0.046866804361343384, 0.08206083625555038, 0.032174594700336456, -0.016771964728832245, 1.600300445670822e-34, -0.13257288932800293, 0.020992832258343697, 0.08631797879934311, 0.10199356824159622, -0.00515429163351655, -0.08987496793270111, -0.09273955225944519, 0.06504447013139725, 0.1319858580827713, -0.088481105864048, -0.033463675528764725 ]
https://github.com/huggingface/datasets/issues/2654
Give a user feedback if the dataset he loads is streamable or not
I understand it already raises a `NotImplementedError` exception, eg: ``` >>> dataset = load_dataset("journalists_questions", name="plain_text", split="train", streaming=True) [...] NotImplementedError: Extraction protocol for file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is not implemented yet ```
**Is your feature request related to a problem? Please describe.** I would love to know if a `dataset` is with the current implementation streamable or not. **Describe the solution you'd like** We could show a warning when a dataset is loaded with `load_dataset('...',streaming=True)` when its lot streamable, e.g. if it is an archive. **Describe alternatives you've considered** Add a new metadata tag for "streaming"
30
Give a user feedback if the dataset he loads is streamable or not **Is your feature request related to a problem? Please describe.** I would love to know if a `dataset` is with the current implementation streamable or not. **Describe the solution you'd like** We could show a warning when a dataset is loaded with `load_dataset('...',streaming=True)` when its lot streamable, e.g. if it is an archive. **Describe alternatives you've considered** Add a new metadata tag for "streaming" I understand it already raises a `NotImplementedError` exception, eg: ``` >>> dataset = load_dataset("journalists_questions", name="plain_text", split="train", streaming=True) [...] NotImplementedError: Extraction protocol for file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is not implemented yet ```
[ -0.07170645892620087, 0.19246530532836914, -0.04691462218761444, 0.05361009016633034, -0.0061439210548996925, 0.06640514731407166, -0.026844287291169167, 0.01418349426239729, 0.03469756245613098, 0.14039762318134308, 0.08522924780845642, -0.021596001461148262, -0.10943759232759476, 0.03885003924369812, -0.03173316270112991, -0.09099684655666351, -0.019144224002957344, 0.015703445300459862, 0.026423515751957893, 0.11432299762964249, 0.09364891797304153, -0.029423339292407036, 0.09375961124897003, -0.03123088739812374, 0.23850741982460022, -0.04298650100827217, -0.050825707614421844, 0.032860156148672104, -0.05473103001713753, -0.08451083302497864, -0.053911734372377396, 0.27191150188446045, 0.008475909009575844, 0.03214757889509201, 0.000006237733941816259, 0.049101218581199646, 0.06862642616033554, 0.02877962402999401, -0.15587906539440155, -0.06017730012536049, 0.06485886871814728, -0.07656289637088776, 0.09693539142608643, 0.010623635724186897, -0.04911692440509796, 0.06011441349983215, 0.0700894147157669, -0.17418350279331207, 0.13557319343090057, 0.007605247665196657, 0.0030425444710999727, 0.1653754562139511, -0.11404416710138321, -0.05686104670166969, 0.06222199648618698, 0.18762318789958954, -0.012068003416061401, 0.07241808623075485, -0.11650817841291428, 0.07313191890716553, -0.05629850551486015, 0.026564136147499084, 0.06167915463447571, -0.019604865461587906, 0.005509054288268089, -0.04342246428132057, -0.22429610788822174, -0.08688642084598541, -0.0371481254696846, 0.0916571170091629, 0.17377428710460663, -0.01798146218061447, -0.056269410997629166, -0.08597376197576523, 0.007988417521119118, -0.06455840915441513, 0.005764675792306662, -0.19185517728328705, -0.0617654025554657, 0.04717541113495827, -0.15243060886859894, -0.03571762517094612, -0.09161508828401566, -0.03610657528042793, -0.027468755841255188, 0.0797773227095604, -0.026849081739783287, -0.03697841614484787, 0.03362113609910011, 0.07263273000717163, 0.1229105219244957, -0.035446640104055405, -0.05226953700184822, -0.11821305751800537, -0.09639760106801987, 0.011292997747659683, -0.04132543131709099, -0.11708536744117737, -0.0654854029417038, -0.018308913335204124, 0.12680800259113312, -0.02317533828318119, -0.0021398221142590046, 0.09547220170497894, 0.19791296124458313, -0.09731380641460419, 0.047131143510341644, -0.0963248610496521, 0.05773558095097542, 0.05731043592095375, 0.07107943296432495, 0.14934970438480377, 0.1159510612487793, -0.07204657047986984, 0.2523443102836609, 0.05154885724186897, 0.047366730868816376, 0.15358370542526245, -0.11108268797397614, 0.1060965433716774, -0.1322811245918274, -0.1249452605843544, 0.032379597425460815, 0.02135917916893959, -0.06363431364297867, 0.030842507258057594, -0.02984665520489216, 0.014127369038760662, 0.0769551694393158, -0.15045830607414246, -0.09056998044252396, -0.06683989614248276, 0.02466617152094841, 0.03692302480340004, 0.11148164421319962, -0.15980927646160126, 0.05209439620375633, -0.040078990161418915, -0.13256171345710754, -0.1238199844956398, 0.14496247470378876, -0.013426248915493488, 0.006042722146958113, -0.023639662191271782, 0.06766720116138458, -0.053946446627378464, 0.029906196519732475, 0.06658966839313507, -0.14816893637180328, 0.0599183589220047, 0.040102098137140274, 0.20417016744613647, -0.11939090490341187, 0.08954090625047684, -0.15544353425502777, 0.05499013885855675, -0.18974973261356354, 0.15427568554878235, -0.263615220785141, -0.00002533457700337749, 0.0907846987247467, -0.045225877314805984, 0.03962108492851257, 0.013110854662954807, 0.20140014588832855, 0.22027049958705902, -0.03520970791578293, 0.011950495652854443, -0.1445893496274948, -0.16511452198028564, -0.04499953240156174, -0.10540267080068588, 0.08301615715026855, 0.0347137451171875, -0.05023970082402229, 0.09575404971837997, 0.0991765558719635, -0.14256112277507782, -0.08421076089143753, 0.1183784157037735, -0.11807798594236374, 0.1363220065832138, 0.08938660472631454, 0.06855786591768265, 0.11894412338733673, 0.0006581819616258144, 0.08660311996936798, -0.005652915686368942, -0.0774029940366745, -0.03661075234413147, -0.09787659347057343, 0.009825339540839195, 0.12816770374774933, 0.17492204904556274, -0.015007941983640194, -0.061072416603565216, 0.04108002409338951, -0.168032705783844, 0.09465918689966202, 0.0984555333852768, -0.1326209455728531, -0.22702136635780334, 0.26761218905448914, 0.019658459350466728, -0.0685359314084053, -0.033099930733442307, 0.0025176377967000008, -0.05397210270166397, 0.17691916227340698, -0.1308068335056305, -0.09402287006378174, 0.020332137122750282, -0.03316376730799675, -0.03386124223470688, -0.034381698817014694, 0.1506863385438919, 0.10586421936750412, 0.07451234012842178, -0.05358205363154411, 0.20210479199886322, -0.08718541264533997, 0.07764769345521927, 0.06769667565822601, -0.013690777122974396, 0.0544421412050724, -0.04716948792338371, 0.15678982436656952, -0.024065962061285973, 0.09197366237640381, 0.02393905073404312, 0.007013499736785889, 0.005941799376159906, 0.04422076791524887, 0.2123102843761444, -0.2278052121400833, 0.13693252205848694, 0.12365660071372986, -0.045116230845451355, -0.014746790751814842, -0.019597910344600677, -0.04318153113126755, 0.08350233733654022, -0.1067046970129013, -0.01813831925392151, -0.09148765355348587, -0.039045270532369614, -0.038982365280389786, 0.013233787380158901, 0.05322348698973656, -0.06112037971615791, 0.10563530772924423, 0.18558377027511597, -0.16381490230560303, 0.05456588417291641, 0.14143618941307068, -0.020509598776698112, 0.014424853958189487, 0.09592114388942719, -0.1583816260099411, -0.1713891178369522, 0.06949792802333832, 0.04151679202914238, -0.1248413547873497, 0.051033031195402145, 0.20698776841163635, -0.2013029307126999, 0.1049458310008049, 0.08488083630800247, -0.03557847812771797, 0.057634711265563965, 0.10399752110242844, -0.07842186093330383, 0.011861314997076988, -0.050052911043167114, -0.07337375730276108, -0.13239212334156036, -0.05925748869776726, 0.10406381636857986, -0.04188328981399536, 0.016674606129527092, -0.06815993785858154, 0.09255288541316986, 0.07856595516204834, -0.13804742693901062, 0.12841251492500305, 0.097832091152668, 0.04355199262499809, 0.017244791612029076, 0.005507584661245346, -0.19889289140701294, 0.07222451269626617, -0.1529226154088974, 0.15538471937179565, 0.04218633845448494, 0.020243613049387932, 0.03715291991829872, -0.12796233594417572, -0.004505793564021587, -0.07198096811771393, -0.04471190646290779, -0.08781696856021881, 0.08266977220773697, 0.1145259365439415, -0.045869577676057816, -0.03653865307569504, -0.06091564893722534, 0.21247011423110962, 0.1240256205201149, 0.007862637750804424, -0.2235662043094635, 0.0803632140159607, -0.036436762660741806, 0.1314448118209839, -0.023536061868071556, -0.04450242593884468, -0.024758795276284218, -0.09628110378980637, -0.25073373317718506, 0.019206196069717407, 0.05221494659781456, 0.10512904822826385, -0.016877247020602226, 0.14026150107383728, 0.03703127056360245, -0.016931729391217232, 0.11414210498332977, -0.20398280024528503, -0.026338091120123863, -0.0023673814721405506, -0.11053543537855148, -0.09376570582389832, 0.1549658179283142, 0.11629382520914078, 0.0926348865032196, 0.12910673022270203, -0.0637056827545166, -0.14216095209121704, -0.17636242508888245, 0.04940439760684967, -0.013249431736767292, 0.06467660516500473, 0.0659249946475029, -0.03768057003617287, -0.03021523728966713, 0.06802576780319214, -0.12764112651348114, 0.06790679693222046, -0.016037626191973686, -0.07910573482513428, -0.05758070945739746, -0.06336744874715805, -0.019693521782755852, 0.005277616903185844, -0.07215698063373566, 0.16291052103042603, 0.1384524255990982, -0.14885056018829346, 0.17283864319324493, -0.15819473564624786, -0.06451904773712158, 0.039830856025218964, 0.07355555891990662, 0.03340787813067436, -0.04692450910806656, -0.0782918706536293, 0.07803545892238617, 0.2483978122472763, 0.06324557214975357, 0.2534925043582916, -0.09645465761423111, -0.0016242483397945762, -0.1243574246764183, -0.034523855894804, 0.06561855226755142, 0.11759062111377716, -0.11666565388441086, 0.01813521608710289, 0.014299189671874046, -0.13085053861141205, -0.05889137461781502, 0.06829895824193954, -0.22315183281898499, -0.020867904648184776, -0.026228228583931923, 0.08132413029670715, -0.0049122353084385395, -0.0982472151517868, 0.017813578248023987, 0.06808649748563766, 0.3673010766506195, -0.04060673713684082, 0.10700340569019318, 0.09209781140089035, -0.1063123270869255, -0.02678503654897213, -0.08365531265735626, -0.021980388090014458, -0.09996697306632996, 0.12416797876358032, 0.03673011437058449, 0.0011167034972459078, -0.10348107665777206, -0.18401996791362762, -0.04697281867265701, -0.08715150505304337, 0.13000720739364624, 0.13178864121437073, -0.0022585911210626364, -0.0035647323820739985, -0.06561288237571716, -0.08380160480737686, -0.027216725051403046, -0.2253389209508896, -0.06589727848768234, 0.12985682487487793, -0.04015073925256729, -0.11369010806083679, -0.15075057744979858, 0.021635444834828377, 0.1620284467935562, 0.044601645320653915, -0.03614477440714836, 0.0681644156575203, -0.1327531784772873, -0.03547440841794014, -0.19465816020965576, -0.06063593924045563, 0.24363507330417633, 0.1301872879266739, -0.031159808859229088, -0.01098180003464222, 0.15324744582176208, 0.016970954835414886, -0.010627773590385914, 0.10050977021455765, -0.007715373300015926, 0.059570278972387314, 0.06613373756408691, -0.1368243247270584, -0.2034236192703247, 0.0414782278239727, -0.013482758775353432, 0.056239623576402664, -0.12379225343465805, -0.07529574632644653, 0.07721446454524994, -0.007638782728463411, -0.06932829320430756, -0.06313914805650711, 0.07405972480773926, -0.15177758038043976, -0.1758742779493332, -0.29118847846984863, 0.04500279948115349, 0.05393068119883537, -0.040919430553913116, 0.12556050717830658, -0.13833023607730865, -0.02826661989092827, -0.06913187354803085, -0.17964857816696167, -0.07800483703613281, -0.1264709085226059, -0.10296366363763809, 0.12163052707910538, 0.052433863282203674, 0.29502618312835693, -0.19762302935123444, -0.10606295615434647, 0.10774754732847214, -0.0412929505109787, 0.01233750581741333, 0.036781903356313705, 0.029901452362537384, 0.10485801845788956, -0.04342068359255791, -0.10613241791725159, -0.06101236119866371, 0.05195393040776253, -0.00019321561558172107, 0.18661253154277802, -0.019085261970758438, 0.11830773949623108, -0.3014434278011322, -0.11370600759983063, -0.06934861838817596, -0.05546407401561737, 0.003453270997852087, -0.1826591193675995, 0.0657568871974945, -0.010751868598163128, -0.1900477260351181, 0.07158321887254715, -0.13190607726573944, -0.1441536396741867, -0.2137402594089508, -0.12590336799621582, 0.0884697288274765, -0.0018549204105511308, -0.1445339173078537, -0.15309876203536987, 0.05060465261340141, 0.08688706904649734, -0.01826648600399494, 0.07643158733844757, -0.08095909655094147, 0.02486751228570938, 0.060876816511154175, 0.03845364600419998, 0.08093900978565216, 0.26240596175193787, 0.08764983713626862, -0.03476553410291672, 0.1495751291513443, -0.043881047517061234, 0.18333840370178223, -0.1281377524137497, 0.03407895192503929, 0.0823637843132019, -0.07187248766422272, 0.05204589292407036, -0.11184769868850708, -0.005982356145977974, -0.07221215963363647, -0.05467047914862633, 0.11912255734205246, 0.029381899163126945, -0.07276476919651031, 0.02412603236734867, -0.1180308535695076, -0.08615543693304062, -0.1775723695755005, 0.01566058211028576, -0.16639606654644012, -0.0322815366089344, -0.009176560677587986, 0.002661200473085046, -0.06819359213113785, -0.07096182554960251, 0.12337590008974075, 0.0026168960612267256, -0.09507868438959122, -0.14783860743045807, 0.12202517688274384, -0.0696161761879921, 0.0986512079834938, -0.07512540370225906, 0.07426053285598755, -0.049296990036964417, 0.013969802297651768, -0.08503759652376175, -0.006697467993944883, -0.03253544121980667, -0.08907365053892136, -0.1209174245595932, -2.7231070136975185e-32, -0.07027942687273026, -0.003006931394338608, -0.07943151891231537, 0.0035621165297925472, 0.036756861954927444, -0.09193415939807892, 0.058127619326114655, -0.019636841490864754, 0.025847554206848145, -0.07288158684968948, 0.016852254047989845, 0.04870665445923805, 0.08632101863622665, 0.015093405731022358, 0.06922166049480438, -0.1215069517493248, 0.08395442366600037, 0.0760761946439743, -0.049884289503097534, -0.03523547947406769, 0.03218481317162514, -0.103105328977108, -0.009984840638935566, -0.1203031986951828, 0.19206707179546356, -0.18930275738239288, -0.08023394644260406, -0.05033310130238533, -0.06374531984329224, 0.008957775309681892, -0.0846896693110466, 0.09423958510160446, -0.0013653876958414912, -0.058258481323719025, -0.07171107083559036, 0.20201940834522247, -0.041350673884153366, -0.06139114871621132, 0.06284221261739731, 0.004137575160712004, -0.11107516288757324, 0.11432992666959763, 0.009572893381118774, 0.006355577148497105, 0.1026025339961052, 0.022250721231102943, -0.03930108994245529, 0.04443272948265076, 0.12652193009853363, -0.04752056673169136, 0.15637631714344025, 0.10783938318490982, -0.0740291029214859, 0.02136463113129139, 0.1055484190583229, 0.19580720365047455, 0.0768769234418869, -0.1106598824262619, -0.06483042985200882, 0.11882898211479187, 0.20856305956840515, -0.02950729988515377, 0.07821044325828552, -0.016214514151215553, -0.01094038411974907, -0.06973297148942947, -0.009569701738655567, -0.05110340937972069, 0.2486552894115448, 0.03757926821708679, 0.07624996453523636, -0.06256753951311111, 0.037078626453876495, 0.03178040683269501, -0.07950729876756668, 0.018111543729901314, 0.14110568165779114, 0.12250711023807526, -0.006367543712258339, -0.05094179883599281, -0.03267168253660202, -0.08670932799577713, -0.118797667324543, 0.010517683811485767, 0.22199957072734833, 0.03739143908023834, 0.008174353279173374, -0.15237471461296082, 0.0718173235654831, -0.05012908950448036, 0.019387653097510338, 0.02203606627881527, -0.10148854553699493, -0.010802730917930603, 0.004829281009733677, -0.12623637914657593, -0.011601151898503304, 0.08072921633720398, -0.06838314980268478, -0.10408198088407516, 0.1422240287065506, 0.033016886562108994, 0.2539030909538269, -0.021424833685159683, 0.05240906402468681, -0.00691504729911685, 0.13679584860801697, 0.10651444643735886, -0.0937633067369461, -0.054303478449583054, 0.05043366178870201, 0.17117734253406525, 0.04243393987417221, 0.04783719778060913, 0.04129224270582199, 0.08823207020759583, -0.15877585113048553, 0.0991482213139534, -0.09279848635196686, 0.10500006377696991, -0.1677141934633255, -0.010264020413160324, 0.007344183046370745, 0.014373368583619595, -0.1449795514345169, 0.06988760828971863, 0.015025235712528229, -0.0399104543030262, 0.10130827128887177, 0.09841302782297134, -0.05204294994473457, -0.11667582392692566, 7.890967026469298e-7, -0.08704409748315811, 0.013926537707448006, -0.01375620998442173, 0.05597524344921112, -0.17886698246002197, 0.042061761021614075, -0.21338561177253723, 0.028289541602134705, -0.1483597755432129, 0.015370627865195274, 0.23182207345962524, -0.04612203314900398, 0.1051960214972496, 0.09426207095384598, -0.10840775817632675, -0.06737101823091507, -0.10247810184955597, 0.04680543392896652, -0.05037294700741768, -0.10770639032125473, 0.2002585232257843, 0.08814576268196106, 0.005337380338460207, 0.04174639284610748, 0.08332109451293945, -0.026322582736611366, -0.03390851244330406, -0.08671502768993378, -0.040903765708208084, -0.17189843952655792, 0.12554733455181122, 0.04755211994051933, 0.03519893437623978, 0.056796226650476456, -0.08350756019353867, -0.18907414376735687, -0.04193081706762314, 0.07643473893404007, 0.13294003903865814, 0.04812667891383171, -0.04682810604572296, 0.18260079622268677, 0.09508311748504639, 0.07947275787591934, 0.05716023966670036, 0.1866254359483719, -0.16401146352291107, -0.03894111141562462, -0.06355299800634384, -0.18521010875701904, 0.11453152447938919, 0.11275997757911682, -0.0780406966805458, 0.06372854113578796, -0.04245071858167648, 0.017425648868083954, -0.0693768709897995, 0.09098165482282639, 0.0981188490986824, -0.15202675759792328, -0.05574221536517143, -0.09280304610729218, 0.07215817272663116, -0.03622160479426384, 0.014659050852060318, -0.22434376180171967, 0.09005559235811234, 2.277969609883135e-34, 0.04394717141985893, 0.17705804109573364, 0.04069770500063896, 0.07708549499511719, -0.02945966087281704, 0.04701795428991318, 0.01347149908542633, -0.12403704226016998, -0.0009785720612853765, -0.08630679547786713, -0.014534826390445232 ]
https://github.com/huggingface/datasets/issues/2653
Add SD task for SUPERB
Note that this subset requires us to: * generate the LibriMix corpus from LibriSpeech * prepare the corpus for diarization As suggested by @lhoestq we should perform these steps locally and add the prepared data to this public repo on the Hub: https://huggingface.co/datasets/superb/superb-data Then we can use the URLs for the files to load the data in `superb`'s dataset loading script. For consistency, I suggest we name the folders in `superb-data` in the same way as the configs in the dataset loading script - e.g. use `sd` for speech diarization in both places :)
Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). Steps: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [ ] README: tags + description sections Related to #2619. cc: @lewtun
94
Add SD task for SUPERB Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). Steps: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [ ] README: tags + description sections Related to #2619. cc: @lewtun Note that this subset requires us to: * generate the LibriMix corpus from LibriSpeech * prepare the corpus for diarization As suggested by @lhoestq we should perform these steps locally and add the prepared data to this public repo on the Hub: https://huggingface.co/datasets/superb/superb-data Then we can use the URLs for the files to load the data in `superb`'s dataset loading script. For consistency, I suggest we name the folders in `superb-data` in the same way as the configs in the dataset loading script - e.g. use `sd` for speech diarization in both places :)
[ -0.03521278128027916, -0.0922572910785675, 0.0025819269940257072, -0.044622503221035004, 0.21213263273239136, 0.042807482182979584, 0.030721567571163177, -0.277055561542511, -0.025639904662966728, 0.12601639330387115, 0.036654576659202576, 0.014051073230803013, -0.029013724997639656, 0.3258941173553467, 0.12074217200279236, -0.004075693432241678, 0.03556390106678009, -0.03026634082198143, -0.04660271108150482, -0.012038445100188255, 0.03266720846295357, -0.07981033623218536, 0.10621732473373413, -0.1993696242570877, -0.10194874554872513, -0.026425974443554878, 0.016269374638795853, 0.03783461079001427, -0.011158022098243237, -0.035441067069768906, 0.10833313316106796, 0.1078437864780426, 0.17311181128025055, 0.115142822265625, 0.000005815173153678188, -0.041903428733348846, 0.12026925384998322, -0.1887628585100174, -0.14894770085811615, 0.0038306592032313347, -0.09568378329277039, 0.13914741575717926, -0.08839911222457886, -0.10478110611438751, -0.20295009016990662, 0.02078252099454403, 0.00416873162612319, -0.044089220464229584, 0.169767826795578, 0.050619058310985565, 0.040627870708703995, 0.010692738927900791, -0.046102896332740784, -0.10030080378055573, 0.022666463628411293, 0.0549863800406456, 0.036303091794252396, 0.10150164365768433, -0.022880392149090767, 0.03589729592204094, -0.06078242510557175, 0.08432833105325699, -0.07448949664831161, 0.004504634067416191, 0.3176896572113037, -0.09306921064853668, 0.027159417048096657, -0.08312699943780899, 0.0674871876835823, 0.08682681620121002, 0.14324600994586945, -0.001717985374853015, -0.058371659368276596, 0.1429150551557541, -0.0007687878096476197, -0.18151943385601044, -0.028660014271736145, -0.202422633767128, -0.01733468845486641, -0.09792016446590424, -0.06490617245435715, -0.10288259387016296, 0.0017836970509961247, -0.08067185431718826, -0.049105070531368256, 0.1273375004529953, -0.13385193049907684, -0.005501500330865383, 0.04287741333246231, -0.10258979350328445, -0.10863641649484634, 0.12292374670505524, 0.13321463763713837, -0.018190758302807808, -0.26265183091163635, -0.08758869022130966, 0.08503887057304382, -0.1044967770576477, -0.04811890423297882, -0.030623774975538254, 0.012487969361245632, -0.06610230356454849, -0.0739932507276535, 0.056009504944086075, 0.05841181054711342, -0.0065403650514781475, 0.031715426594018936, -0.12956780195236206, 0.02179841510951519, -0.04371633008122444, -0.07590214163064957, 0.06269893795251846, -0.11507238447666168, 0.025285251438617706, -0.03290020674467087, 0.11340402066707611, -0.07267684489488602, 0.05817776173353195, 0.03383105620741844, -0.14312781393527985, 0.21668767929077148, 0.07604491710662842, -0.06672901660203934, 0.1598399132490158, 0.03485066816210747, -0.0209982767701149, -0.09749894589185715, 0.01908203214406967, -0.13860288262367249, 0.18049095571041107, -0.005225580185651779, 0.1393808126449585, 0.025896014645695686, 0.1421101689338684, 0.015799803659319878, -0.16929718852043152, 0.0869540125131607, -0.15466225147247314, -0.01932002231478691, 0.05178613215684891, -0.15372996032238007, -0.05725189670920372, -0.20598426461219788, -0.03597602993249893, 0.005302696488797665, 0.023054249584674835, -0.06001777574419975, 0.03103792853653431, -0.13080860674381256, -0.09396086633205414, 0.15582574903964996, -0.016629168763756752, -0.333733469247818, 0.15781258046627045, -0.039563264697790146, -0.17592616379261017, -0.12757714092731476, 0.010958542115986347, -0.15986360609531403, -0.08537226915359497, 0.10193049907684326, -0.007923834025859833, -0.0431450717151165, 0.08504144102334976, -0.05988817662000656, -0.011356974951922894, 0.0415632389485836, -0.049494899809360504, -0.02922421135008335, -0.023776985704898834, 0.08330988138914108, -0.12664423882961273, 0.1341947764158249, 0.10646453499794006, 0.03817518800497055, 0.02205473743379116, -0.02155013009905815, -0.16501790285110474, -0.0037630528677254915, 0.057828258723020554, -0.04052569717168808, -0.07575797289609909, -0.024503668770194054, 0.006694476585835218, 0.05008126422762871, 0.0792873278260231, -0.17189143598079681, 0.2552943825721741, 0.02794845588505268, -0.06606858223676682, 0.06735697388648987, -0.07079622894525528, -0.053316306322813034, 0.12935973703861237, 0.04272773489356041, 0.11276356130838394, 0.02013237215578556, 0.17016586661338806, 0.03163909539580345, -0.17318721115589142, -0.0077929371036589146, -0.08232151716947556, 0.1037992537021637, 0.020709771662950516, -0.022566551342606544, -0.14988572895526886, -0.054275039583444595, -0.013168105855584145, 0.22666454315185547, -0.010283026844263077, -0.08721454441547394, -0.09378249943256378, -0.08406533300876617, -0.14908473193645477, -0.1946868598461151, 0.15730951726436615, -0.11860914528369904, 0.0522008016705513, 0.09492683410644531, -0.13709372282028198, -0.0637471154332161, -0.2576248049736023, 0.05285634100437164, 0.015963515266776085, -0.06247095763683319, -0.011592170223593712, 0.005421110894531012, 0.002456825925037265, -0.0001409268006682396, 0.06802001595497131, -0.10359203070402145, -0.03270988166332245, 0.07498659193515778, 0.003466762602329254, -0.1215633898973465, -0.0010697573889046907, 0.017970507964491844, -0.05780719593167305, 0.07409708946943283, -0.14425240457057953, -0.09193072468042374, -0.03858376666903496, 0.03475596010684967, 0.024920901283621788, -0.009237528778612614, -0.014339224435389042, -0.2430315464735031, 0.004162137862294912, 0.1312933713197708, -0.08769341558218002, 0.15479125082492828, 0.047420334070920944, 0.09542892128229141, -0.020112907513976097, 0.058015163987874985, 0.0026105570141226053, -0.04553961008787155, 0.05972707271575928, -0.14571009576320648, 0.004625571426004171, -0.014474991708993912, -0.11563045531511307, 0.012456581927835941, 0.03387606143951416, 0.13035613298416138, -0.12121948599815369, 0.007827125489711761, -0.11170008778572083, 0.07266519963741302, 0.03824267163872719, 0.13038071990013123, -0.14732404053211212, 0.06977706402540207, -0.08426067233085632, 0.05277874693274498, -0.19932740926742554, 0.04599656164646149, -0.015819653868675232, -0.060550201684236526, -0.04842456430196762, -0.1674940586090088, 0.08020433783531189, -0.0008257916197180748, -0.003121931105852127, 0.053655900061130524, -0.07243649661540985, -0.16823627054691315, -0.20826639235019684, 0.021957753226161003, -0.20603561401367188, -0.02067878656089306, 0.14657683670520782, 0.02657739259302616, -0.047524284571409225, -0.08488492667675018, 0.021286616101861, 0.1256818026304245, 0.07233040779829025, 0.01511140912771225, -0.18098761141300201, -0.22881394624710083, 0.02381468005478382, 0.12978968024253845, 0.02547273598611355, -0.00992516428232193, -0.0016212203772738576, -0.17697983980178833, 0.21676605939865112, -0.03387423977255821, -0.06690523773431778, 0.08042426407337189, -0.013856999576091766, 0.07542325556278229, -0.03140348941087723, -0.0739062950015068, 0.1624772548675537, 0.16995184123516083, -0.04016154259443283, -0.12961414456367493, 0.06565120071172714, 0.06975647807121277, -0.043026674538850784, -0.010650704614818096, -0.060780204832553864, -0.09248056262731552, -0.04531131684780121, -0.25289037823677063, -0.0524202436208725, -0.12588997185230255, -0.11437293887138367, 0.0958855152130127, -0.06623215973377228, -0.0015993642155081034, 0.0037313979119062424, -0.029943017289042473, 0.05942409485578537, -0.12782125174999237, 0.04641221836209297, 0.1788308322429657, -0.11052056401968002, 0.060587044805288315, -0.04512868449091911, -0.19284197688102722, -0.003041513031348586, -0.03844304382801056, -0.04581214487552643, 0.03524969890713692, -0.10086080431938171, -0.22383086383342743, -0.02314833551645279, 0.0043274718336761, 0.04247261583805084, -0.014492821879684925, -0.017039405182003975, -0.08065228164196014, 0.10807531327009201, -0.10387187451124191, 0.2042144238948822, -0.015003075823187828, -0.05225463956594467, 0.06979610025882721, 0.0681455135345459, -0.04489034414291382, 0.06335517019033432, -0.06766770780086517, 0.10918433964252472, 0.1322215497493744, 0.06341703981161118, -0.05178392305970192, 0.03599864989519119, 0.16663019359111786, 0.1844121515750885, -0.0323890820145607, 0.27185317873954773, 0.05445723235607147, 0.1394159346818924, 0.09751518070697784, -0.033036280423402786, -0.0845562145113945, 0.16688813269138336, -0.17383848130702972, 0.03568463772535324, -0.17292466759681702, 0.0036843244452029467, 0.12441111356019974, 0.10392636060714722, 0.009472038596868515, 0.025619857013225555, 0.08151528984308243, 0.09299745410680771, 0.09733715653419495, -0.0860140398144722, -0.08163821697235107, 0.03302772343158722, -0.12667064368724823, 0.01666865311563015, 0.004888950847089291, -0.030857540667057037, -0.04299396649003029, -0.047539547085762024, 0.08063674718141556, 0.051349349319934845, -0.10504312813282013, -0.009933042339980602, -0.07092346251010895, 0.1253049075603485, 0.12843084335327148, 0.043724898248910904, 0.16226010024547577, 0.01065570954233408, 0.04092184826731682, -0.08683570474386215, 0.0009476593695580959, 0.050930414348840714, 0.2271137684583664, -0.11071033775806427, -0.023873494938015938, -0.12302800267934799, 0.14849883317947388, -0.10286823660135269, -0.037219706922769547, 0.12134630233049393, 0.1963043212890625, 0.16353614628314972, 0.05832262709736824, -0.053609155118465424, 0.29709726572036743, 0.07395783066749573, 0.1223248541355133, 0.06910935044288635, 0.029864534735679626, 0.27048251032829285, -0.03874518349766731, 0.10303106158971786, 0.07761101424694061, 0.023939313367009163, 0.29651615023612976, -0.12699711322784424, -0.17737072706222534, -0.08387494087219238, 0.024414541199803352, 0.09467843919992447, 0.20936617255210876, 0.035948753356933594, 0.08682119101285934, -0.057772234082221985, -0.22044797241687775, -0.1559440642595291, 0.05636657029390335, -0.05480702593922615, 0.05013604089617729, -0.03178081288933754, -0.2846360504627228, 0.08258252590894699, 0.10274533182382584, 0.015774639323353767, 0.03529466316103935, 0.07657141983509064, -0.07279147952795029, 0.21440306305885315, -0.09032894670963287, -0.037951745092868805, -0.10398754477500916, -0.08921314775943756, -0.15302973985671997, 0.16372139751911163, 0.35503414273262024, -0.14149191975593567, 0.05348195508122444, 0.1725791096687317, -0.1291995346546173, -0.03259272128343582, 0.06991999596357346, 0.04677221179008484, 0.2724091708660126, -0.08215200155973434, -0.05256325379014015, 0.10510728508234024, -0.18811357021331787, -0.0780855268239975, 0.1656845659017563, 0.1503242701292038, -0.017712408676743507, -0.11474102735519409, -0.09048249572515488, -0.007030835375189781, 0.09516705572605133, -0.027616649866104126, 0.03350602462887764, 0.048835523426532745, -0.09185921400785446, 0.02301379106938839, 0.034515369683504105, 0.21364465355873108, -0.12161605060100555, -0.010473317466676235, 0.09590920805931091, 0.10170944035053253, 0.1956176608800888, -0.029957270249724388, 0.05641728639602661, -0.06677132844924927, 0.022693313658237457, 0.026849905028939247, 0.16418133676052094, -0.14357225596904755, 0.009633163921535015, 0.1494903862476349, 0.03403481841087341, 0.12889303267002106, -0.030104076489806175, 0.10400020331144333, -0.03412860631942749, -0.22608035802841187, -0.13889537751674652, -0.07936616986989975, 0.10602670907974243, 0.0578998327255249, 0.02536098100244999, 0.0819602981209755, 0.035426072776317596, 0.0022512192372232676, 0.057310495525598526, -0.14249001443386078, 0.14682860672473907, -0.0018590332474559546, -0.0766790509223938, -0.012017854489386082, 0.07552783191204071, 0.02816724218428135, -0.09358828514814377, -0.010808737948536873, 0.23071514070034027, -0.0381089523434639, -0.04871053248643875, -0.09047017991542816, -0.026355838403105736, 0.05108511075377464, 0.0704052522778511, -0.039511553943157196, 0.03785895183682442, -0.16251517832279205, 0.015601230785250664, 0.06079328805208206, -0.04891673102974892, 0.005884277634322643, 0.1496317833662033, -0.18527919054031372, -0.13579316437244415, 0.011898625642061234, 0.09181486815214157, 0.0002874320198316127, 0.19351013004779816, -0.02027485892176628, 0.09209241718053818, -2.8177234356159676e-32, -0.020743027329444885, -0.18612219393253326, -0.005705052986741066, -0.001013809465803206, -0.1389991044998169, -0.004910659044981003, -0.06897914409637451, -0.08190243691205978, -0.011724804528057575, -0.03497137874364853, 0.00954827293753624, 0.06719006597995758, 0.0648132860660553, 0.20101632177829742, -0.08578173071146011, -0.001632081693969667, 0.13286642730236053, 0.024002986028790474, 0.018493348732590675, 0.19250547885894775, 0.0830538272857666, -0.021540874615311623, 0.12483217567205429, 0.013405811972916126, -0.12130125612020493, 0.04471861571073532, -0.08135257661342621, 0.10943400859832764, -0.01327567920088768, 0.1207256019115448, 0.01466450560837984, 0.20895609259605408, -0.09852764010429382, 0.1283816546201706, -0.1082204058766365, 0.2586739659309387, -0.13549822568893433, -0.04926970228552818, -0.08256353437900543, 0.0026627727784216404, 0.16590282320976257, 0.21329273283481598, -0.10630980879068375, 0.030489308759570122, 0.023879775777459145, 0.07149358838796616, 0.12778516113758087, -0.03697885945439339, 0.0019485875964164734, -0.2262161821126938, -0.028498521074652672, 0.07900546491146088, -0.030244041234254837, -0.029323238879442215, 0.07292429357767105, -0.04867503419518471, 0.10759028047323227, -0.2727651298046112, -0.008413351140916348, 0.1006268784403801, 0.010848813690245152, -0.006861102767288685, 0.00021832279162481427, 0.07358521968126297, -0.08640819787979126, -0.04953831061720848, 0.21726566553115845, 0.024293692782521248, 0.2701832056045532, -0.0368252657353878, 0.11617273837327957, -0.04583139345049858, 0.14104987680912018, 0.040679845958948135, -0.1983988732099533, -0.119388148188591, 0.12514150142669678, 0.046084336936473846, 0.19237644970417023, -0.23324908316135406, -0.02208329737186432, 0.017557362094521523, -0.17278075218200684, -0.06766319274902344, -0.11433722823858261, 0.09109502285718918, -0.01745443232357502, 0.052710629999637604, 0.016873620450496674, -0.1046532392501831, -0.024150028824806213, -0.04106463864445686, -0.013022410683333874, -0.03348202630877495, 0.054731354117393494, 0.05207877978682518, 0.01846183091402054, 0.008515103720128536, -0.05894580855965614, -0.06610739231109619, 0.0768555998802185, -0.17723779380321503, 0.1354881078004837, 0.12300532311201096, 0.050900619477033615, 0.056176722049713135, 0.07616815716028214, 0.08814994990825653, -0.14317210018634796, 0.025585852563381195, 0.08300565183162689, 0.15103411674499512, 0.11929283291101456, 0.06118189916014671, 0.07942722737789154, -0.054785970598459244, -0.09214334189891815, 0.08560638129711151, 0.0012984185013920069, 0.04140434041619301, -0.06958147138357162, 0.03127050772309303, 0.03672076389193535, 0.04143751040101051, -0.1457429826259613, 0.13102932274341583, -0.2980250418186188, -0.19841115176677704, 0.02919865772128105, -0.15819916129112244, -0.046314213424921036, -0.14804553985595703, 7.443185836564226e-7, -0.1391632854938507, 0.190774068236351, -0.08254774659872055, -0.010622055269777775, 0.07015795260667801, 0.13349224627017975, -0.017803505063056946, -0.02592490054666996, 0.03797338530421257, 0.15608316659927368, -0.0298555139452219, -0.06995797902345657, 0.006439987104386091, 0.009601069614291191, -0.23060950636863708, -0.010122055187821388, -0.0027663097716867924, 0.15477141737937927, -0.12011263519525528, 0.20819613337516785, 0.03294863551855087, 0.2603696882724762, -0.07808670401573181, 0.0012061422457918525, 0.11487719416618347, -0.30431777238845825, -0.10651172697544098, 0.07727712392807007, 0.047275617718696594, 0.15650470554828644, -0.03719477728009224, 0.010753466747701168, -0.13176840543746948, 0.22160419821739197, -0.15157929062843323, -0.10555051267147064, -0.08449925482273102, 0.016086377203464508, -0.053058020770549774, -0.04155156388878822, -0.06182852387428284, 0.103570856153965, -0.02291860617697239, 0.09355843812227249, 0.02765711210668087, -0.017552562057971954, -0.09814385324716568, 0.06426423043012619, -0.06495305150747299, -0.020959312096238136, -0.2693885266780853, -0.0881064161658287, 0.02809913456439972, 0.0705455094575882, 0.003024919657036662, 0.02963957004249096, -0.16827771067619324, -0.12383761256933212, -0.024285556748509407, 0.21163049340248108, -0.09469839930534363, -0.2315841168165207, 0.02724761888384819, 0.13992181420326233, 0.060882169753313065, -0.1852545589208603, 0.09998637437820435, 2.791212713559964e-34, 0.14144650101661682, 0.1159612163901329, 0.07840505242347717, -0.10281369835138321, 0.06132468208670616, -0.04883136600255966, -0.07090149819850922, -0.03012271784245968, 0.125556081533432, -0.10485568642616272, -0.1501213014125824 ]
https://github.com/huggingface/datasets/issues/2653
Add SD task for SUPERB
@lewtun @lhoestq: I have already generated the LibriMix corpus and prepared the corpus for diarization. The output is 3 dirs (train, dev, test), each one containing 6 files: reco2dur rttm segments spk2utt utt2spk wav.scp Next steps: - Upload these files to the superb-data repo - Transcribe the corresponding s3prl processing of these files into our superb loading script Note that processing of these files is a bit more intricate than usual datasets: https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/diarization/dataset.py#L233
Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). Steps: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [ ] README: tags + description sections Related to #2619. cc: @lewtun
73
Add SD task for SUPERB Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). Steps: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [ ] README: tags + description sections Related to #2619. cc: @lewtun @lewtun @lhoestq: I have already generated the LibriMix corpus and prepared the corpus for diarization. The output is 3 dirs (train, dev, test), each one containing 6 files: reco2dur rttm segments spk2utt utt2spk wav.scp Next steps: - Upload these files to the superb-data repo - Transcribe the corresponding s3prl processing of these files into our superb loading script Note that processing of these files is a bit more intricate than usual datasets: https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/diarization/dataset.py#L233
[ -0.052944935858249664, -0.1253443956375122, -0.028150195255875587, -0.06646104902029037, 0.2214495837688446, 0.019930778071284294, 0.057483971118927, -0.2458421289920807, -0.10279378294944763, 0.1211918368935585, 0.029170548543334007, 0.047461431473493576, -0.05322085693478584, 0.3117406964302063, 0.04232420772314072, 0.036614734679460526, 0.050906673073768616, -0.022144122049212456, -0.061255887150764465, -0.002015715464949608, 0.010896225459873676, -0.06857918202877045, 0.10059911757707596, -0.19115343689918518, -0.08973795920610428, -0.021137960255146027, 0.047081466764211655, 0.06449694186449051, -0.03778279945254326, -0.07892335206270218, 0.10829206556081772, 0.15469177067279816, 0.13319015502929688, 0.10657201707363129, 0.000005690862963092513, -0.08264654874801636, 0.1414744257926941, -0.17743493616580963, -0.12160634249448776, 0.05203935131430626, -0.02475982904434204, 0.14532187581062317, -0.07800868898630142, -0.10804188996553421, -0.18878337740898132, -0.0007557783392257988, -0.01133809145539999, 0.008539565838873386, 0.2043709009885788, 0.055057913064956665, 0.029392404481768608, -0.022662919014692307, -0.06602171063423157, -0.1064818948507309, 0.04801756888628006, 0.0609307587146759, 0.03921622037887573, 0.1362486630678177, -0.019484711810946465, 0.01665831170976162, -0.07029204070568085, 0.06753832846879959, -0.08597170561552048, 0.01465234998613596, 0.28268566727638245, -0.0981045812368393, 0.05057208612561226, -0.0650905892252922, 0.06398464739322662, 0.07033448666334152, 0.15220952033996582, 0.006277183070778847, -0.0630323588848114, 0.1378980576992035, -0.04944324865937233, -0.26179587841033936, -0.06351782381534576, -0.18317455053329468, -0.033789947628974915, -0.06751330941915512, -0.10734809190034866, -0.03284095227718353, -0.008725523017346859, -0.07868120074272156, -0.03802972659468651, 0.12257060408592224, -0.10741756856441498, -0.02675345167517662, 0.08716890215873718, -0.09768720716238022, -0.06944213062524796, 0.14537085592746735, 0.1304899901151657, -0.055773794651031494, -0.27393871545791626, -0.08208303153514862, 0.10868489742279053, -0.17931272089481354, -0.046592943370342255, -0.034570056945085526, 0.042730171233415604, -0.10116362571716309, -0.016582675278186798, 0.055902983993291855, 0.046238768845796585, -0.02668866142630577, -0.0031148893758654594, -0.07124979048967361, -0.0497056320309639, -0.06532759964466095, -0.0931459367275238, 0.0638669952750206, -0.1061478704214096, 0.007287515792995691, 0.0014363942900672555, 0.12267127633094788, -0.07557344436645508, 0.01843929849565029, -0.05611509829759598, -0.14553901553153992, 0.1735524833202362, 0.08249521255493164, -0.12219139188528061, 0.1325332373380661, 0.04161384701728821, 0.026127152144908905, -0.07802917808294296, 0.043431539088487625, -0.16378363966941833, 0.22515584528446198, 0.016573064029216766, 0.1552308052778244, -0.011717920191586018, 0.11037744581699371, 0.005702891852706671, -0.13483160734176636, 0.08686276525259018, -0.1666446030139923, -0.0233006589114666, -0.00443620840087533, -0.15107598900794983, -0.07201872766017914, -0.10394852608442307, -0.05180416256189346, 0.01925661787390709, -0.017239734530448914, -0.030412528663873672, 0.03695659711956978, -0.14890848100185394, -0.08503103256225586, 0.11851529777050018, 0.04483098164200783, -0.31306174397468567, 0.15078957378864288, -0.051269516348838806, -0.12419187277555466, -0.10266668349504471, 0.018286854028701782, -0.07499373704195023, -0.0930197685956955, 0.08939389139413834, -0.02761281467974186, -0.04403145983815193, 0.09307967871427536, -0.07866521179676056, -0.06011635810136795, 0.008233061991631985, -0.05243712663650513, -0.038918107748031616, 0.007875446230173111, 0.20400413870811462, -0.1210019439458847, 0.14618666470050812, 0.08080030232667923, 0.01398521102964878, -0.008406109176576138, -0.04981059208512306, -0.15053080022335052, -0.032372526824474335, 0.050034455955028534, -0.0679595097899437, -0.05099683627486229, 0.007510839495807886, -0.007230340503156185, 0.07991072535514832, 0.11285632848739624, -0.11375030130147934, 0.25751858949661255, 0.024433862417936325, -0.06576159596443176, 0.08345857262611389, -0.11059077084064484, -0.04705407842993736, 0.09164070338010788, 0.07617726176977158, 0.1066470742225647, 0.019292810931801796, 0.1466645449399948, 0.08714008331298828, -0.17366719245910645, -0.03833267092704773, -0.08946949243545532, 0.12355596572160721, -0.04300035908818245, 0.018314508721232414, -0.1372298300266266, -0.020020822063088417, -0.01507608126848936, 0.19127149879932404, -0.017382817342877388, -0.04439602792263031, -0.07079866528511047, -0.08647382259368896, -0.15525607764720917, -0.19820983707904816, 0.15162156522274017, -0.0888514295220375, 0.09191344678401947, 0.10312782227993011, -0.15660354495048523, -0.05335075780749321, -0.281835675239563, 0.03577587008476257, 0.0030130466911941767, -0.031967174261808395, 0.0004905235837213695, -0.007714779116213322, -0.03147149458527565, 0.03907828405499458, 0.08511589467525482, -0.10860347747802734, -0.009284086525440216, 0.1062079444527626, -0.041335251182317734, -0.06251660734415054, -0.017049921676516533, 0.03393975645303726, -0.10053602606058121, 0.08284744620323181, -0.1576424390077591, -0.14283545315265656, 0.034673865884542465, 0.010819032788276672, 0.03394070640206337, 0.04872508347034454, -0.060431886464357376, -0.2517719864845276, 0.015471190214157104, 0.13277938961982727, -0.08245843648910522, 0.17693741619586945, 0.024628762155771255, 0.07611346989870071, 0.04263773933053017, 0.05667487159371376, -0.04599706083536148, -0.1198052167892456, 0.0759173110127449, -0.11777829378843307, 0.024655763059854507, 0.022456159815192223, -0.13074332475662231, -0.006421044003218412, 0.01050813589245081, 0.17570814490318298, -0.1279035359621048, 0.022994400933384895, -0.07986917346715927, 0.06041860207915306, 0.0234070997685194, 0.1367422640323639, -0.1742352843284607, 0.023267725482583046, -0.06822290271520615, 0.02122887596487999, -0.1774233728647232, 0.009693014435470104, -0.008793383836746216, -0.026702893897891045, -0.04187062382698059, -0.18290002644062042, 0.029066573828458786, -0.0008142117294482887, -0.029092170298099518, 0.05538862571120262, -0.06525636464357376, -0.16183321177959442, -0.2151983380317688, -0.03631909564137459, -0.2164887636899948, 0.015432136133313179, 0.11943358182907104, 0.05245865136384964, -0.018607228994369507, -0.11001493781805038, 0.07794374972581863, 0.11423121392726898, 0.048447929322719574, 0.07628832012414932, -0.1707238256931305, -0.20365799963474274, 0.03568023443222046, 0.12279388308525085, 0.038069114089012146, -0.01671716757118702, -0.050993822515010834, -0.1686423271894455, 0.15307077765464783, -0.02230481430888176, -0.022997161373496056, 0.09414023905992508, 0.0024579456076025963, 0.08870451152324677, -0.10514920204877853, -0.04894865304231644, 0.15187229216098785, 0.13639450073242188, -0.12316291779279709, -0.1284237504005432, 0.04764693230390549, 0.06033005565404892, -0.009365145117044449, -0.028667092323303223, -0.07532539963722229, -0.13567695021629333, -0.08867429941892624, -0.23648452758789062, -0.0840468779206276, -0.12622956931591034, -0.05838062986731529, 0.0817515179514885, -0.024484144523739815, 0.0006878409767523408, 0.01697499118745327, -0.04034639149904251, 0.06490438431501389, -0.12192411720752716, 0.05879262462258339, 0.24624131619930267, -0.12055068463087082, 0.01406536903232336, -0.0564626082777977, -0.20084989070892334, 0.03869927302002907, -0.05787332355976105, -0.02382720075547695, 0.036096666008234024, -0.043076127767562866, -0.24447284638881683, -0.030122632160782814, 0.02252277173101902, 0.023538850247859955, -0.010237389244139194, -0.019531957805156708, -0.09675902128219604, 0.18698658049106598, -0.047811370342969894, 0.1874377429485321, 0.05135836452245712, -0.1134784147143364, 0.09693793952465057, 0.09527631849050522, -0.0030061397701501846, 0.10177180171012878, -0.12646682560443878, 0.1002887412905693, 0.12140975892543793, 0.026664216071367264, -0.050126031041145325, 0.04788772761821747, 0.17286090552806854, 0.2029295116662979, -0.06732200086116791, 0.322939395904541, 0.07492399215698242, 0.11597856879234314, 0.1145443394780159, 0.017339734360575676, -0.0896836370229721, 0.17959854006767273, -0.13449978828430176, 0.05270185321569443, -0.1762622892856598, -0.00508849835023284, 0.11194777488708496, 0.15454228222370148, -0.011089549399912357, 0.0014681590255349874, 0.013608687557280064, 0.15746809542179108, 0.11285184323787689, -0.10457507520914078, -0.10029516369104385, 0.031913887709379196, -0.1668323427438736, 0.024763433262705803, 0.02290072664618492, -0.08991941064596176, -0.09913446754217148, -0.06357931345701218, 0.07780834287405014, 0.051123809069395065, -0.030206216499209404, 0.03956548497080803, -0.0744515061378479, 0.102494016289711, 0.2182300090789795, 0.00457694660872221, 0.1600261777639389, -0.029395820572972298, 0.0891120582818985, -0.14418695867061615, 0.015033216215670109, 0.07452314347028732, 0.2582770884037018, -0.11475227028131485, 0.025202561169862747, -0.11735440045595169, 0.11331018060445786, -0.19559869170188904, -0.06525446474552155, 0.12611086666584015, 0.23580729961395264, 0.18491283059120178, 0.009052922949194908, -0.0784820169210434, 0.3175738751888275, 0.03550736978650093, 0.10104169696569443, 0.03697964549064636, 0.05760294571518898, 0.2662920653820038, -0.029840102419257164, 0.1331445723772049, 0.05375178903341293, 0.0725623145699501, 0.29773998260498047, -0.11314405500888824, -0.15526308119297028, -0.039322588592767715, -0.02203023061156273, 0.08318907022476196, 0.18270637094974518, 0.00724596856161952, 0.10503704845905304, -0.0796208381652832, -0.21425610780715942, -0.15552525222301483, 0.079820416867733, -0.10358211398124695, 0.057170040905475616, -0.0004185970756225288, -0.26125502586364746, 0.008211782202124596, 0.113382488489151, 0.01937231607735157, 0.02414821647107601, 0.03606342524290085, -0.07645031809806824, 0.2080087959766388, -0.08476376533508301, -0.016652429476380348, -0.100969098508358, -0.08714024722576141, -0.08704384416341782, 0.12042213976383209, 0.29948875308036804, -0.11133342981338501, 0.06307950615882874, 0.14470461010932922, -0.1002001166343689, -0.04282907769083977, 0.07416685670614243, 0.04726544767618179, 0.3233272433280945, -0.09440930187702179, -0.0662454292178154, 0.14927026629447937, -0.20867978036403656, -0.12628403306007385, 0.14848212897777557, 0.17573310434818268, 0.00865731481462717, -0.0882047712802887, -0.12461927533149719, 0.0016051376005634665, 0.05959390476346016, -0.000013185777788748965, 0.044964831322431564, 0.0474463626742363, -0.0902852937579155, 0.007705157157033682, 0.02659798040986061, 0.22627389430999756, -0.09066395461559296, 0.028047097846865654, 0.06665871292352676, 0.034143272787332535, 0.21120204031467438, -0.06592995673418045, 0.05159429833292961, -0.05852095037698746, 0.02773411013185978, 0.028647711500525475, 0.17119833827018738, -0.10265187919139862, 0.036314088851213455, 0.1758231222629547, 0.03327372297644615, 0.15237286686897278, -0.04906827211380005, 0.0752951130270958, -0.018485557287931442, -0.20754854381084442, -0.2009955644607544, -0.07847589999437332, 0.12069826573133469, 0.03823686018586159, 0.02003921940922737, 0.026654014363884926, 0.10977726429700851, 0.03442658856511116, 0.06628745049238205, -0.14649389684200287, 0.14388619363307953, 0.029722649604082108, -0.05110905319452286, -0.0008486344595439732, 0.11405284702777863, 0.06950634717941284, -0.08945333957672119, 0.03154144063591957, 0.16663606464862823, -0.04047388210892677, -0.05505477264523506, -0.11354541778564453, -0.03755883499979973, 0.034212976694107056, 0.03374755382537842, -0.044978246092796326, 0.03800274431705475, -0.13556040823459625, 0.04348411783576012, 0.05200791358947754, -0.052207060158252716, 0.0031977202743291855, 0.157474547624588, -0.19467471539974213, -0.14243373274803162, -0.017968030646443367, 0.10613515973091125, -0.042896781116724014, 0.12335224449634552, -0.05565302446484566, 0.06477632373571396, -2.725185875456948e-32, -0.060639847069978714, -0.24752803146839142, -0.015729380771517754, -0.0251966193318367, -0.18575933575630188, -0.044012878090143204, -0.08360704034566879, -0.06278672814369202, -0.016802459955215454, -0.005099745001643896, 0.01242282148450613, 0.03344836086034775, 0.08519931137561798, 0.16501057147979736, -0.021941248327493668, 0.021011417731642723, 0.1724974364042282, 0.039513811469078064, -0.0013169654412195086, 0.19115789234638214, 0.04891420528292656, -0.012977246195077896, 0.13478583097457886, 0.016163641586899757, -0.15940366685390472, 0.059065837413072586, -0.13337568938732147, 0.07635477185249329, -0.015942450612783432, 0.11591441929340363, 0.030107630416750908, 0.21591882407665253, -0.10363265872001648, 0.07568586617708206, -0.11299818009138107, 0.23709335923194885, -0.09429092705249786, -0.0009292920003645122, -0.1070534735918045, 0.01168852299451828, 0.20837771892547607, 0.21336695551872253, -0.12935367226600647, 0.029636234045028687, 0.03706768900156021, 0.038609299808740616, 0.16020646691322327, -0.053321659564971924, -0.021398581564426422, -0.23157675564289093, -0.0593520924448967, 0.06416288018226624, -0.03514739125967026, -0.034267451614141464, 0.0414690338075161, -0.0809745118021965, 0.13936614990234375, -0.261095255613327, -0.06003060191869736, 0.1355130672454834, 0.002410813234746456, 0.03815333545207977, 0.046524323523044586, 0.022965406998991966, -0.10582241415977478, -0.02064731903374195, 0.21318799257278442, 0.053733568638563156, 0.3369438350200653, -0.05957520380616188, 0.060456231236457825, -0.062490981072187424, 0.10555396974086761, 0.007983359508216381, -0.1969253569841385, -0.09392042458057404, 0.12083543837070465, 0.034917015582323074, 0.11776736378669739, -0.19502340257167816, -0.013504761271178722, 0.002906442852690816, -0.2271803766489029, -0.032280340790748596, -0.10113519430160522, 0.09709261357784271, -0.004455836024135351, 0.024542242288589478, -0.011807593517005444, -0.05791972950100899, 0.033289019018411636, -0.02714330330491066, -0.029776375740766525, -0.013726847246289253, 0.07038287818431854, 0.004456196911633015, -0.014345039613544941, 0.0010016392916440964, -0.09900215268135071, -0.09261537343263626, 0.0657232254743576, -0.18498757481575012, 0.12032024562358856, 0.07039149850606918, 0.03899401053786278, 0.05210278555750847, 0.11325529217720032, 0.030896760523319244, -0.1583736091852188, 0.009780799970030785, 0.09960543364286423, 0.15419958531856537, 0.12946178019046783, 0.08744347840547562, 0.09459605813026428, -0.0343499593436718, -0.0980931743979454, 0.10849795490503311, 0.0507914237678051, 0.0322287455201149, -0.045690327882766724, 0.051206767559051514, 0.044518206268548965, 0.042765937745571136, -0.12621106207370758, 0.1327338069677353, -0.2935297191143036, -0.22234508395195007, 0.0392153337597847, -0.1098562479019165, -0.06138474866747856, -0.15492743253707886, 7.359750497926143e-7, -0.15284986793994904, 0.18728050589561462, -0.07503989338874817, 0.027610931545495987, 0.07354144752025604, 0.17760741710662842, -0.02440168894827366, -0.02632426843047142, 0.017312251031398773, 0.16437867283821106, -0.04932713508605957, -0.06976458430290222, 0.06963974982500076, 0.00041656196117401123, -0.21986928582191467, -0.010465498082339764, 0.023326998576521873, 0.18801337480545044, -0.13981159031391144, 0.15881192684173584, 0.01678788848221302, 0.2702997624874115, -0.0878095030784607, -0.03502625972032547, 0.10471109300851822, -0.2814396917819977, -0.08759228140115738, 0.08782687038183212, 0.033091116696596146, 0.13597849011421204, -0.00901332963258028, -0.05546005442738533, -0.15955416858196259, 0.23527540266513824, -0.12017495930194855, -0.08024203777313232, -0.0763370618224144, -0.012572436593472958, 0.02716176211833954, -0.05708245187997818, -0.06557462364435196, 0.1407281458377838, -0.030805325135588646, 0.12682312726974487, 0.010487238876521587, -0.019359305500984192, -0.08768288046121597, 0.08098122477531433, -0.07394863665103912, 0.009069028310477734, -0.25694936513900757, -0.093035489320755, 0.030848124995827675, 0.037376489490270615, -0.012476691976189613, 0.03160574287176132, -0.14207027852535248, -0.07366146892309189, -0.009689719416201115, 0.22194235026836395, -0.1334303319454193, -0.2143474817276001, 0.023265458643436432, 0.170152947306633, 0.08045057952404022, -0.20642557740211487, 0.0947989895939827, 2.5997852952384777e-34, 0.1896122545003891, 0.11713530123233795, 0.057423148304224014, -0.07760075479745865, 0.09455708414316177, -0.06884375959634781, -0.03665740042924881, -0.00921213161200285, 0.051832858473062515, -0.09980374574661255, -0.19170916080474854 ]
https://github.com/huggingface/datasets/issues/2651
Setting log level higher than warning does not suppress progress bar
Hi, you can suppress progress bars by patching logging as follows: ```python import datasets import logging datasets.logging.get_verbosity = lambda: logging.NOTSET # map call ... ``` EDIT: now you have to use `disable_progress_bar `
## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work. ## Steps to reproduce the bug ```python import datasets from datasets.utils.logging import set_verbosity_error set_verbosity_error() def dummy_map(batch): return batch common_voice_train = datasets.load_dataset("common_voice", "de", split="train") common_voice_test = datasets.load_dataset("common_voice", "de", split="test") common_voice_train.map(dummy_map) ``` ## Expected results - The progress bar for `.map` call won't be shown ## Actual results - The progress bar for `.map` is still shown ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.5 - PyArrow version: 4.0.1
33
Setting log level higher than warning does not suppress progress bar ## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work. ## Steps to reproduce the bug ```python import datasets from datasets.utils.logging import set_verbosity_error set_verbosity_error() def dummy_map(batch): return batch common_voice_train = datasets.load_dataset("common_voice", "de", split="train") common_voice_test = datasets.load_dataset("common_voice", "de", split="test") common_voice_train.map(dummy_map) ``` ## Expected results - The progress bar for `.map` call won't be shown ## Actual results - The progress bar for `.map` is still shown ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.5 - PyArrow version: 4.0.1 Hi, you can suppress progress bars by patching logging as follows: ```python import datasets import logging datasets.logging.get_verbosity = lambda: logging.NOTSET # map call ... ``` EDIT: now you have to use `disable_progress_bar `
[ -0.13027365505695343, 0.16919247806072235, -0.12709742784500122, -0.10154806077480316, 0.37912043929100037, 0.027451008558273315, 0.06042945012450218, 0.0013607803266495466, 0.0002542677102610469, 0.11045093834400177, -0.0027325982227921486, 0.06350446492433548, -0.1482066810131073, -0.026201970875263214, -0.02037288062274456, 0.08562851697206497, 0.09966214746236801, -0.03989868238568306, 0.09013832360506058, 0.05279486998915672, -0.18744106590747833, 0.024327341467142105, 0.010014922358095646, 0.0022515004966408014, 0.0810663178563118, -0.15182124078273773, 0.11150459200143814, -0.01508544571697712, -0.13544440269470215, -0.16381949186325073, 0.030518075451254845, -0.008325325325131416, -0.02438138984143734, 0.05412354692816734, 0.000005429171324067283, 0.07904960960149765, 0.15582603216171265, 0.043705690652132034, -0.09110020846128464, 0.04045041650533676, -0.2480514645576477, -0.13649803400039673, 0.10180601477622986, 0.026771074160933495, -0.00721158180385828, -0.13196392357349396, 0.06138918176293373, -0.12024489790201187, 0.043239910155534744, -0.023054102435708046, -0.020879311487078667, 0.028839314356446266, 0.006316168233752251, -0.06346450001001358, 0.05942492559552193, 0.07805316895246506, 0.08903009444475174, 0.07089519500732422, -0.17649462819099426, -0.1105223074555397, -0.18324339389801025, -0.06021016463637352, -0.1505703330039978, -0.040030237287282944, -0.17743578553199768, -0.12503182888031006, 0.06589727848768234, -0.2766708433628082, 0.22826199233531952, 0.04885594919323921, -0.002314934739843011, -0.059035349637269974, -0.13225893676280975, 0.11522705107927322, -0.03268666937947273, -0.1559789776802063, 0.00831577368080616, -0.001154318219050765, -0.12401684373617172, 0.04249578341841698, -0.2053397297859192, 0.12289068102836609, -0.08740546554327011, 0.08001121878623962, -0.10040417313575745, -0.01553630456328392, -0.06823516637086868, 0.07954218238592148, 0.08157642185688019, -0.0631110891699791, -0.0007639737450517714, 0.2233569324016571, -0.07093802094459534, -0.14350895583629608, -0.10220201313495636, -0.0056218672543764114, 0.0009305006824433804, -0.10799359530210495, 0.04086548835039139, -0.17361199855804443, -0.21829217672348022, 0.0032813814468681812, 0.03830498829483986, 0.11721798777580261, 0.1178271621465683, -0.034907955676317215, 0.0940406322479248, 0.037490155547857285, 0.08444724977016449, 0.019899751991033554, 0.13292109966278076, 0.14105837047100067, -0.03040754795074463, -0.1739620566368103, 0.249276265501976, 0.22143565118312836, 0.11241288483142853, 0.10695308446884155, -0.02530791237950325, 0.20066387951374054, 0.020945342257618904, 0.02321060746908188, -0.23401319980621338, -0.034088216722011566, 0.11273371428251266, -0.10443046689033508, 0.05221419781446457, 0.06950324028730392, -0.011162498965859413, 0.052865974605083466, -0.030070563778281212, -0.11485348641872406, 0.06374258548021317, 0.07318979501724243, 0.09389306604862213, 0.10711031407117844, 0.14435499906539917, 0.10631609708070755, -0.05250569432973862, -0.07095205038785934, 0.18940910696983337, 0.03769144415855408, 0.19048717617988586, 0.13318486511707306, -0.08322422951459885, 0.043119147419929504, 0.09406790882349014, 0.03680648282170296, -0.08345192670822144, 0.04453791305422783, 0.009270429611206055, 0.08134578913450241, -0.23832403123378754, 0.05109289661049843, -0.1592496782541275, 0.14497025310993195, -0.18974779546260834, 0.04234626516699791, -0.06883683800697327, -0.042225394397974014, 0.1344047486782074, -0.17951209843158722, -0.11645087599754333, -0.0840776190161705, 0.15129879117012024, 0.09875220060348511, -0.09333470463752747, 0.008467525243759155, -0.16560028493404388, -0.17704974114894867, 0.09050655364990234, -0.09283508360385895, -0.014027811586856842, -0.06917241215705872, -0.026492197066545486, 0.214431494474411, -0.04765496775507927, 0.0826469361782074, -0.19831174612045288, -0.011698049493134022, 0.04753188043832779, 0.03749007359147072, 0.06460823118686676, -0.14390136301517487, 0.09764905273914337, 0.010680551640689373, 0.07384978234767914, 0.03413456305861473, 0.005708806682378054, -0.1025240421295166, -0.07422200590372086, 0.03885774314403534, 0.10745621472597122, -0.03137301653623581, -0.18463625013828278, -0.1306614875793457, -0.09293747693300247, -0.0621958002448082, 0.15505075454711914, 0.07852808386087418, 0.13084368407726288, 0.10104117542505264, -0.007574286311864853, -0.14369800686836243, -0.020559391006827354, -0.12232454121112823, -0.045858483761548996, -0.0808938518166542, -0.0706867128610611, -0.19362331926822662, -0.11632008850574493, 0.0031062252819538116, 0.19907642900943756, -0.029490891844034195, -0.03403027728199959, 0.02404736541211605, -0.056060995906591415, -0.28733792901039124, -0.1540900319814682, 0.0642189159989357, -0.14924728870391846, 0.10860563814640045, -0.08177848905324936, -0.012249546125531197, 0.09486277401447296, -0.0701519325375557, 0.09381979703903198, -0.07499124109745026, 0.1731760948896408, -0.006421244237571955, -0.019774895161390305, -0.04001130163669586, 0.02285171113908291, 0.11553223431110382, -0.16988420486450195, 0.13119441270828247, -0.129129558801651, -0.17274434864521027, 0.014021649956703186, -0.0034175871405750513, -0.16322271525859833, 0.1401197761297226, -0.14706987142562866, 0.05749811977148056, -0.12619644403457642, -0.09183844178915024, 0.21778924763202667, 0.22796227037906647, -0.08906656503677368, -0.06788123399019241, 0.08557175099849701, 0.10075054317712784, -0.17614184319972992, 0.03816034644842148, 0.011218294501304626, 0.033443793654441833, 0.2412596046924591, 0.05233876407146454, 0.10435303300619125, -0.05122506618499756, 0.3541089594364166, 0.10527554899454117, -0.04948560893535614, 0.0768987238407135, 0.05983133614063263, -0.11084751039743423, 0.10799060016870499, -0.09308026731014252, 0.001626978744752705, 0.1688162237405777, 0.03247826546430588, 0.03379874676465988, -0.023586172610521317, -0.03256819397211075, 0.05968121066689491, -0.14868412911891937, -0.026602530851960182, 0.14178629219532013, -0.0003698611108120531, -0.0978919118642807, 0.004644460044801235, 0.0252993181347847, 0.005166053771972656, -0.1386718600988388, 0.05807076022028923, -0.05343659222126007, 0.013342165388166904, -0.03346223011612892, -0.016817694529891014, 0.18361234664916992, -0.00741815147921443, 0.03958835452795029, 0.10268322378396988, -0.07461388409137726, -0.09030260890722275, 0.15106512606143951, 0.06728707253932953, -0.20216526091098785, 0.033653374761343, 0.008505287580192089, -0.0795012041926384, 0.09262478351593018, 0.07300658524036407, 0.0584503635764122, -0.07817612588405609, -0.09686785936355591, 0.1157403513789177, 0.11603762209415436, -0.20489121973514557, -0.08367273956537247, 0.1417640894651413, -0.07287324965000153, -0.004895417485386133, 0.027410386130213737, -0.03855461627244949, 0.041806500405073166, -0.045157965272665024, -0.19063857197761536, 0.07007089257240295, 0.0016368384240195155, -0.011700567789375782, -0.08673369139432907, -0.05110244080424309, 0.10761452466249466, 0.012039942666888237, 0.0057106479071080685, -0.19905366003513336, -0.12622536718845367, 0.0031261323019862175, -0.07340317964553833, 0.0363236665725708, 0.16066613793373108, -0.05998441204428673, 0.047530610114336014, 0.07890861481428146, -0.16360744833946228, -0.09067009389400482, -0.09321412444114685, 0.12543736398220062, -0.021020105108618736, 0.020547574386000633, 0.10837268829345703, -0.015178043395280838, -0.10085616260766983, 0.1538420170545578, -0.06761446595191956, 0.13284456729888916, -0.06501523405313492, 0.016742859035730362, 0.03365282714366913, 0.005737135652452707, 0.016694920137524605, 0.01034335233271122, -0.12513945996761322, -0.04104814678430557, -0.06263475865125656, -0.10187326371669769, 0.1336677074432373, -0.07013063132762909, 0.03366390988230705, 0.03476798161864281, -0.008229770697653294, -0.0855657160282135, 0.05167309194803238, 0.07949921488761902, 0.021985892206430435, 0.12408246099948883, 0.11993864923715591, 0.08173210173845291, -0.14053817093372345, -0.016970200464129448, -0.050473254173994064, -0.15217334032058716, 0.006882148329168558, -0.12548671662807465, -0.11953670531511307, 0.15826624631881714, -0.11104350537061691, 0.11090434342622757, -0.09153348952531815, -0.08611563593149185, -0.0749531015753746, -0.016950108110904694, 0.009271538816392422, 0.1720307469367981, 0.008960305713117123, -0.03202836215496063, -0.06423043459653854, -0.06246136128902435, 0.17908604443073273, 0.07299932092428207, 0.07067465037107468, 0.05905600264668465, -0.08601013571023941, 0.09998717904090881, -0.08270033448934555, 0.18674178421497345, -0.15292072296142578, 0.05260038375854492, -0.0011671424144878983, 0.11285748332738876, -0.07122781872749329, -0.16337713599205017, 0.1508396565914154, 0.07912406325340271, 0.13188092410564423, -0.013795668259263039, -0.047385212033987045, -0.05875878781080246, 0.15776632726192474, 0.07185579091310501, 0.08287572860717773, 0.06295662373304367, 0.09161298722028732, 0.0627632737159729, 0.05864211544394493, -0.07380383461713791, -0.07497897744178772, -0.09604709595441818, 0.005799361038953066, -0.11823848634958267, 0.05986925587058067, -0.049343496561050415, 0.08909223973751068, -0.04964042082428932, -0.03920034319162369, 0.24602347612380981, -0.07150784134864807, 0.10199063271284103, 0.0003477272402960807, -0.03130273148417473, 0.12619124352931976, 0.05418138578534126, 0.11102209240198135, 0.2201267033815384, -0.1448589712381363, 0.11328458786010742, -0.2207040786743164, -0.11095105856657028, -0.04219380393624306, -0.1188335120677948, -0.0069619836285710335, -0.06623083353042603, -0.03720862418413162, 0.03182418644428253, 0.02203863300383091, 0.052290186285972595, 0.12396591901779175, -0.0003342416021041572, 0.053324028849601746, -0.12762996554374695, -0.200318843126297, 0.02282765321433544, -0.057355523109436035, 0.13243098556995392, -0.018541865050792694, 0.20843130350112915, -0.03671867027878761, -0.11900454759597778, 0.1738787740468979, -0.05611734464764595, -0.06538531184196472, -0.019645217806100845, 0.06539725512266159, -0.3090370297431946, 0.14672091603279114, 0.11242511868476868, 0.03615903854370117, 0.12178017199039459, 0.17956875264644623, -0.08460994064807892, 0.04361571744084358, -0.020236680284142494, 0.09299284219741821, 0.18934513628482819, -0.07288657873868942, -0.025486189872026443, -0.1623922735452652, -0.040598314255476, -0.08256492018699646, 0.11696219444274902, 0.11350549012422562, 0.058861635625362396, -0.2622829079627991, -0.06094636023044586, 0.08718656748533249, -0.05107377469539642, -0.015536424703896046, -0.09549625217914581, 0.1475253701210022, 0.006168392486870289, -0.05974733829498291, 0.0719076469540596, 0.08352798223495483, 0.05764179304242134, -0.02988804690539837, 0.05658736452460289, 0.17946551740169525, -0.02874055504798889, 0.030802438035607338, 0.03178510442376137, -0.07284263521432877, -0.062087517231702805, 0.0455222986638546, 0.10957995057106018, -0.059591200202703476, 0.004363651387393475, -0.04711194708943367, -0.036439403891563416, 0.023495979607105255, 0.04714697599411011, 0.050613243132829666, -0.19890588521957397, -0.07215526700019836, 0.01920206844806671, -0.10741456598043442, -0.12490188330411911, 0.011547360569238663, 0.04132653400301933, 0.013487317599356174, 0.015509364195168018, -0.005683878902345896, -0.0322987362742424, -0.043112654238939285, 0.08585138618946075, -0.029645871371030807, -0.043853700160980225, -0.040893878787755966, 0.11545851081609726, 0.11620351672172546, 0.1860954612493515, 0.12039439380168915, 0.10630872845649719, -0.04735266789793968, -0.02342798374593258, -0.014243667013943195, 0.316864013671875, -0.06046772003173828, 0.00947982631623745, 0.02539828047156334, 0.07828862965106964, -0.14880138635635376, -0.17670008540153503, 0.00879551563411951, 0.07003288716077805, -0.1698826104402542, -0.04881702736020088, -0.26492708921432495, -0.0709395706653595, -0.10035132616758347, 0.04726945981383324, 0.051712289452552795, 0.18748293817043304, 0.047982603311538696, -0.10161758959293365, -2.4649281935754285e-32, -0.15508955717086792, -0.0662156417965889, -0.05959870293736458, -0.03534200042486191, 0.028739675879478455, 0.08497631549835205, 0.05370927229523659, -0.03646717220544815, 0.00613582506775856, -0.03506925329566002, -0.11301172524690628, -0.03711961582303047, 0.0013715466484427452, -0.06441943347454071, -0.06590721011161804, 0.023014146834611893, 0.12097499519586563, -0.049646973609924316, 0.07073010504245758, 0.07809393107891083, 0.14030881226062775, -0.014880324713885784, 0.02543896995484829, -0.2706749439239502, 0.08521484583616257, -0.018833953887224197, -0.2534372806549072, -0.15782183408737183, -0.020353898406028748, -0.15531688928604126, -0.06997343897819519, -0.00902120303362608, 0.005765475332736969, 0.014693222008645535, -0.23894985020160675, -0.016609035432338715, 0.035940926522016525, -0.041573844850063324, -0.018161127343773842, -0.04151575267314911, -0.04366698116064072, 0.15323962271213531, 0.2047707587480545, -0.09959767013788223, -0.05388034135103226, -0.07445956021547318, 0.02906777523458004, 0.061283521354198456, -0.06502439826726913, -0.04237046837806702, 0.036040812730789185, 0.05483115091919899, 0.03584038093686104, -0.005585845094174147, 0.04130605608224869, 0.04547331482172012, 0.23063093423843384, -0.150750994682312, -0.09221314638853073, 0.026124434545636177, 0.05392153561115265, -0.1313675045967102, 0.0370812825858593, -0.01229579746723175, -0.06702857464551926, 0.03496487811207771, 0.30526095628738403, 0.11740267276763916, 0.2533622980117798, -0.10092175006866455, 0.015855418518185616, 0.027590148150920868, -0.025200726464390755, -0.042700499296188354, -0.06463511288166046, 0.031216144561767578, -0.10027109831571579, 0.033656634390354156, -0.07472211867570877, 0.0037445027846843004, -0.08547632396221161, 0.04211125895380974, -0.07995902746915817, -0.10767119377851486, 0.05907212197780609, 0.08336895704269409, 0.1702364981174469, 0.11987084150314331, -0.10128316283226013, -0.05095073953270912, -0.008049258030951023, 0.16688859462738037, -0.0573265478014946, -0.0629444494843483, 0.10708565264940262, 0.13218675553798676, -0.005604565609246492, 0.006382159888744354, -0.10443399846553802, -0.09809595346450806, 0.027638226747512817, 0.034780353307724, 0.20378956198692322, 0.018881045281887054, 0.20035183429718018, 0.140197291970253, 0.1490662544965744, 0.14554820954799652, -0.08656540513038635, -0.05763588845729828, -0.037832267582416534, 0.009802416898310184, 0.14051543176174164, 0.014138136059045792, 0.18106186389923096, -0.14710760116577148, 0.07964109629392624, 0.15674494206905365, 0.0831049308180809, 0.28284287452697754, -0.10833154618740082, 0.024659913033246994, 0.08757270872592926, -0.007375628221780062, 0.06274304538965225, -0.009955033659934998, -0.0579911507666111, -0.20498277246952057, 0.24543046951293945, -0.017546234652400017, 0.033736929297447205, -0.29067283868789673, 7.674897233300726e-7, -0.1690468192100525, 0.04790568724274635, 0.06158595159649849, 0.011516179889440536, -0.1139826625585556, 0.2507735788822174, 0.046124622225761414, 0.019354213029146194, -0.06613510102033615, 0.12133809179067612, 0.12193184345960617, -0.07052657008171082, -0.14828161895275116, 0.13093164563179016, 0.16041362285614014, -0.1665908247232437, -0.13445813953876495, -0.09885142743587494, -0.019979439675807953, -0.11595114320516586, 0.0707186684012413, 0.10982928425073624, -0.06628631800413132, -0.04293070361018181, 0.163632333278656, -0.11831799894571304, -0.008857626467943192, -0.12176765501499176, -0.06301884353160858, 0.016503026708960533, 0.10147520899772644, 0.1665697693824768, 0.0707058534026146, -0.04536483809351921, -0.12914904952049255, -0.08943314850330353, -0.14276942610740662, 0.22180010378360748, 0.07755869626998901, 0.11255694925785065, 0.1289580911397934, 0.2247231900691986, -0.14143116772174835, 0.028580058366060257, 0.01870274916291237, 0.06835554540157318, -0.17948505282402039, -0.06154404208064079, 0.16031228005886078, 0.08978430926799774, 0.045196980237960815, -0.0034786530304700136, -0.09906551986932755, -0.06314259767532349, -0.007288201246410608, -0.017106300219893456, -0.18959331512451172, -0.14963290095329285, -0.047408174723386765, -0.18742835521697998, -0.1429140269756317, -0.1610049307346344, 0.10652415454387665, 0.14665083587169647, -0.0509207583963871, -0.17972712218761444, -0.020298350602388382, 2.1709500327903815e-34, 0.07989785075187683, -0.08553867787122726, 0.11900213360786438, -0.2903711199760437, 0.08076275140047073, -0.02849232777953148, 0.13125254213809967, 0.04057875648140907, -0.0194611344486475, -0.23584598302841187, -0.15456704795360565 ]
https://github.com/huggingface/datasets/issues/2651
Setting log level higher than warning does not suppress progress bar
Note also that you can disable the progress bar with ```python from datasets.utils import disable_progress_bar disable_progress_bar() ``` See https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/src/datasets/utils/tqdm_utils.py#L84
## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work. ## Steps to reproduce the bug ```python import datasets from datasets.utils.logging import set_verbosity_error set_verbosity_error() def dummy_map(batch): return batch common_voice_train = datasets.load_dataset("common_voice", "de", split="train") common_voice_test = datasets.load_dataset("common_voice", "de", split="test") common_voice_train.map(dummy_map) ``` ## Expected results - The progress bar for `.map` call won't be shown ## Actual results - The progress bar for `.map` is still shown ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.5 - PyArrow version: 4.0.1
19
Setting log level higher than warning does not suppress progress bar ## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work. ## Steps to reproduce the bug ```python import datasets from datasets.utils.logging import set_verbosity_error set_verbosity_error() def dummy_map(batch): return batch common_voice_train = datasets.load_dataset("common_voice", "de", split="train") common_voice_test = datasets.load_dataset("common_voice", "de", split="test") common_voice_train.map(dummy_map) ``` ## Expected results - The progress bar for `.map` call won't be shown ## Actual results - The progress bar for `.map` is still shown ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.5 - PyArrow version: 4.0.1 Note also that you can disable the progress bar with ```python from datasets.utils import disable_progress_bar disable_progress_bar() ``` See https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/src/datasets/utils/tqdm_utils.py#L84
[ -0.12228420376777649, 0.17411872744560242, -0.10447543859481812, -0.09994854032993317, 0.39747416973114014, 0.036058250814676285, 0.08163601905107498, 0.00938174594193697, -0.0073840003460645676, 0.11162584275007248, -0.03491676598787308, 0.032868046313524246, -0.15086472034454346, -0.02987322025001049, -0.007828828878700733, 0.09204432368278503, 0.08679092675447464, -0.034896764904260635, 0.0795774906873703, 0.05379680171608925, -0.18125462532043457, 0.03830105438828468, 0.023478485643863678, 0.0014253233093768358, 0.05883840098977089, -0.13178449869155884, 0.12799589335918427, 0.0026036915369331837, -0.14667601883411407, -0.16032473742961884, 0.03732297569513321, 0.010663068853318691, -0.008343539200723171, 0.06216238811612129, 0.000005402549504651688, 0.08507122844457626, 0.14964865148067474, 0.017309997230768204, -0.11313345283269882, 0.03853624686598778, -0.2200278490781784, -0.12092626094818115, 0.09980542957782745, 0.01752549596130848, 0.00964975357055664, -0.12136919051408768, 0.05923808738589287, -0.07985509932041168, 0.03945876657962799, -0.019853491336107254, -0.013748795725405216, 0.046354666352272034, -0.01856887899339199, -0.07997766882181168, 0.05590103939175606, 0.07117877155542374, 0.0839325487613678, 0.06756442785263062, -0.18472953140735626, -0.10600057244300842, -0.16939996182918549, -0.06516259163618088, -0.1462891846895218, -0.045040737837553024, -0.1911201924085617, -0.11708240956068039, 0.04686318710446358, -0.26543667912483215, 0.22607053816318512, 0.0759204626083374, -0.0003025398764293641, -0.05213310196995735, -0.1268530637025833, 0.11375986039638519, -0.03155089169740677, -0.16709011793136597, 0.005620380397886038, 0.016212377697229385, -0.12217775732278824, 0.07244966179132462, -0.20298060774803162, 0.14627529680728912, -0.09020045399665833, 0.08115991950035095, -0.13080601394176483, -0.039063770323991776, -0.09300480782985687, 0.05547307804226875, 0.0999089851975441, -0.06976843625307083, 0.004819955676794052, 0.20542572438716888, -0.09501095116138458, -0.16691207885742188, -0.09575405716896057, -0.017212772741913795, 0.012553698383271694, -0.12997032701969147, 0.03459274396300316, -0.16900025308132172, -0.20544707775115967, -0.015271646901965141, 0.03597032651305199, 0.11933867633342743, 0.13513338565826416, -0.002761306706815958, 0.09073714166879654, 0.005365815479308367, 0.09004665166139603, 0.0287257581949234, 0.13849687576293945, 0.12981471419334412, -0.04810435697436333, -0.15347599983215332, 0.26290908455848694, 0.20276853442192078, 0.11214322596788406, 0.11112435907125473, -0.04694192484021187, 0.22094784677028656, 0.05460277944803238, 0.03198763355612755, -0.23883070051670074, -0.005186833906918764, 0.10503529757261276, -0.08529230207204819, 0.06958751380443573, 0.07626663148403168, -0.02501976676285267, 0.041729867458343506, -0.01410859264433384, -0.1055409163236618, 0.06893051415681839, 0.054275330156087875, 0.09538803994655609, 0.10915859788656235, 0.14310060441493988, 0.08894731104373932, -0.023979857563972473, -0.0685899406671524, 0.18651530146598816, 0.010023209266364574, 0.1898491382598877, 0.12814533710479736, -0.06499951332807541, 0.026875188574194908, 0.11569498479366302, 0.03710819035768509, -0.07250993698835373, 0.0598144493997097, 0.010429002344608307, 0.08019319176673889, -0.21794016659259796, 0.04640437290072441, -0.1608884632587433, 0.1504947692155838, -0.180901437997818, 0.06804598122835159, -0.0925731435418129, -0.04158667474985123, 0.13275650143623352, -0.18951906263828278, -0.09676121920347214, -0.06631258875131607, 0.1526145190000534, 0.09486768394708633, -0.1080809012055397, 0.033625636249780655, -0.16705772280693054, -0.16641415655612946, 0.06520069390535355, -0.08555345237255096, -0.02468334324657917, -0.03681420534849167, -0.020234711468219757, 0.21973735094070435, -0.02467881515622139, 0.05408552661538124, -0.2264702469110489, -0.034085310995578766, 0.04035566747188568, 0.04736744239926338, 0.047290172427892685, -0.13260343670845032, 0.0832890048623085, -0.0004980324883945286, 0.0876397043466568, 0.043459050357341766, 0.0014911758480593562, -0.12686263024806976, -0.07333820313215256, 0.02363692969083786, 0.09158679097890854, -0.015336915850639343, -0.18632210791110992, -0.13860034942626953, -0.09586921334266663, -0.08750776201486588, 0.1568240225315094, 0.0873669981956482, 0.13445739448070526, 0.08017382770776749, 0.012172456830739975, -0.13203413784503937, -0.03561883792281151, -0.10968150198459625, -0.040698014199733734, -0.07142612338066101, -0.06496726721525192, -0.19720076024532318, -0.1372935175895691, 0.012703293934464455, 0.17404156923294067, -0.04678637534379959, -0.04457351192831993, 0.013004693202674389, -0.05145720764994621, -0.2720785439014435, -0.17512623965740204, 0.06765377521514893, -0.1558675765991211, 0.09881488233804703, -0.052553899586200714, -0.03240406885743141, 0.0876147523522377, -0.07045969367027283, 0.07573610544204712, -0.06818017363548279, 0.14159052073955536, 0.024415086954832077, -0.03315023332834244, -0.0359371192753315, 0.017824865877628326, 0.13304103910923004, -0.18093594908714294, 0.10975644737482071, -0.1307605803012848, -0.1930151730775833, -0.007413910701870918, -0.011519324034452438, -0.16384069621562958, 0.14513278007507324, -0.13866528868675232, 0.046035997569561005, -0.10978012531995773, -0.07891581207513809, 0.2005384862422943, 0.22281746566295624, -0.08336498588323593, -0.07642554491758347, 0.09738082438707352, 0.08604598045349121, -0.1628907024860382, 0.010552547872066498, 0.014465602114796638, 0.060952551662921906, 0.22543075680732727, 0.031140225008130074, 0.08349314332008362, -0.043433256447315216, 0.36050212383270264, 0.09899795800447464, -0.05515146628022194, 0.0866958498954773, 0.053309567272663116, -0.09554395079612732, 0.09661965072154999, -0.08267277479171753, -0.008678649552166462, 0.17327918112277985, 0.03611854091286659, 0.04712102189660072, -0.035822052508592606, -0.021874738857150078, 0.047028057277202606, -0.13524726033210754, -0.025237610563635826, 0.1753407120704651, -0.003864555386826396, -0.09656398743391037, -0.0046361698769032955, 0.02505466900765896, -0.003434638725593686, -0.15212570130825043, 0.06377383321523666, -0.0375962071120739, -0.00045977337867952883, -0.03458845242857933, 0.0028658946976065636, 0.15369710326194763, 0.0031275078654289246, 0.030224880203604698, 0.11652655899524689, -0.06938796490430832, -0.11735374480485916, 0.14778532087802887, 0.07027741521596909, -0.20807434618473053, 0.037349820137023926, 0.018745044246315956, -0.06406788527965546, 0.10113976895809174, 0.06067345291376114, 0.03960870951414108, -0.07527051866054535, -0.08827470988035202, 0.10712622106075287, 0.08923154324293137, -0.20852957665920258, -0.05303988233208656, 0.14922642707824707, -0.06614463031291962, -0.001316708279773593, 0.06939015537500381, -0.04113226756453514, 0.06681288778781891, -0.036905720829963684, -0.18045362830162048, 0.08451386541128159, 0.008244638331234455, -0.0046835350804030895, -0.07925185561180115, -0.04585101455450058, 0.10552358627319336, -0.000670426816213876, 0.007450229022651911, -0.20305688679218292, -0.12348726391792297, 0.00640159472823143, -0.0990385115146637, 0.02951830066740513, 0.1962711364030838, -0.05526822432875633, 0.04248673841357231, 0.08741553127765656, -0.16947512328624725, -0.08343643695116043, -0.11042870581150055, 0.1478889137506485, -0.03356889635324478, 0.014920894056558609, 0.12521734833717346, -0.01332662720233202, -0.08472537249326706, 0.14062637090682983, -0.07339683175086975, 0.11025188863277435, -0.0661456286907196, 0.050471823662519455, 0.022188162431120872, 0.011677706614136696, 0.011507184244692326, 0.0032661384902894497, -0.13665735721588135, -0.05193517357110977, -0.06063532829284668, -0.08243928849697113, 0.13503679633140564, -0.08445648849010468, 0.03299783915281296, 0.053823359310626984, -0.0168100968003273, -0.06722608208656311, 0.03839041292667389, 0.09256856888532639, 0.012830857187509537, 0.13878288865089417, 0.1544923633337021, 0.051084004342556, -0.14218446612358093, -0.028955968096852303, -0.047608211636543274, -0.14458249509334564, 0.04709568992257118, -0.12626826763153076, -0.07558202743530273, 0.13033437728881836, -0.0963919460773468, 0.09825627505779266, -0.06744465231895447, -0.09741134941577911, -0.09060763567686081, -0.017946282401680946, 0.02765357308089733, 0.18861490488052368, 0.019590361043810844, -0.007865739054977894, -0.04545591026544571, -0.04383227974176407, 0.19052864611148834, 0.07931925356388092, 0.05700831860303879, 0.05589886009693146, -0.08492700755596161, 0.10558147728443146, -0.10733398795127869, 0.24237848818302155, -0.13503313064575195, 0.057578641921281815, -0.009154665283858776, 0.12735570967197418, -0.08172398060560226, -0.1472766101360321, 0.14942306280136108, 0.09157276898622513, 0.10111557692289352, 0.01650198921561241, -0.06177746132016182, -0.06674759089946747, 0.12209237366914749, 0.08002331107854843, 0.062415942549705505, 0.08636334538459778, 0.08558249473571777, 0.06796158105134964, 0.07470822334289551, -0.07342194020748138, -0.09553948789834976, -0.09166152030229568, 0.0019070991547778249, -0.1104792058467865, 0.050512269139289856, -0.023224996402859688, 0.09030231088399887, -0.05296558886766434, -0.04141460731625557, 0.24401231110095978, -0.08902394771575928, 0.09723605215549469, -0.004169834777712822, -0.05710987746715546, 0.10323213040828705, 0.0482308529317379, 0.11267709732055664, 0.23608151078224182, -0.13129065930843353, 0.12562334537506104, -0.24202276766300201, -0.10647299885749817, -0.0446319505572319, -0.12925779819488525, -0.02746765688061714, -0.03433328866958618, -0.04517047479748726, 0.02661779150366783, -0.0006004069582559168, 0.03084339201450348, 0.13102690875530243, 0.012340250425040722, 0.05025891587138176, -0.1182054728269577, -0.20946623384952545, 0.040130168199539185, -0.0636366456747055, 0.11290253698825836, -0.007888063788414001, 0.18231455981731415, -0.0411219485104084, -0.09971816092729568, 0.15932971239089966, -0.07120414078235626, -0.07298789173364639, -0.029348546639084816, 0.08411766588687897, -0.3059602379798889, 0.14456598460674286, 0.06617403775453568, 0.01620899885892868, 0.14604485034942627, 0.1989833414554596, -0.08915714174509048, 0.051954228430986404, -0.019597163423895836, 0.08484204113483429, 0.21166855096817017, -0.05235471948981285, -0.012181182391941547, -0.1806061565876007, -0.014795944094657898, -0.07725405693054199, 0.10565648972988129, 0.1203870177268982, 0.064612977206707, -0.23999804258346558, -0.07683562487363815, 0.10337918251752853, -0.052168771624565125, -0.024429533630609512, -0.11582627147436142, 0.1514243334531784, 0.033762067556381226, -0.03757183998823166, 0.08007284253835678, 0.07273827493190765, 0.06538836658000946, -0.020759614184498787, 0.022098978981375694, 0.20218579471111298, -0.019847631454467773, 0.038072433322668076, 0.04796380177140236, -0.08431414514780045, -0.06342047452926636, 0.026715921238064766, 0.1027052104473114, -0.0823812186717987, 0.01872013509273529, -0.041140999644994736, -0.04927484318614006, 0.007226860150694847, 0.0723305195569992, 0.05143767222762108, -0.18660558760166168, -0.05682310461997986, 0.014373628422617912, -0.12403441220521927, -0.12707418203353882, 0.016433801501989365, 0.010618839412927628, 0.008398771286010742, 0.015878668054938316, 0.003271805588155985, -0.023593762889504433, -0.03635113686323166, 0.06995289027690887, -0.017198994755744934, -0.058559026569128036, -0.03348159417510033, 0.1197923794388771, 0.12233089655637741, 0.1776992827653885, 0.12027762085199356, 0.1101873442530632, -0.04038133844733238, -0.02770845778286457, -0.005399821791797876, 0.32548150420188904, -0.056033503264188766, 0.0037366573233157396, 0.025990337133407593, 0.0723927915096283, -0.13448980450630188, -0.1738060861825943, 0.006528740283101797, 0.05157214403152466, -0.17051765322685242, -0.03782445937395096, -0.26825493574142456, -0.0790434405207634, -0.09756820648908615, 0.04225265234708786, 0.034430429339408875, 0.21550334990024567, 0.05587465316057205, -0.08587019145488739, -2.473226302071471e-32, -0.17305275797843933, -0.08280069380998611, -0.07469654828310013, -0.05428604409098625, -0.0017879183869808912, 0.09958551824092865, 0.06094864383339882, -0.04079955071210861, -0.002605745103210211, -0.05329931154847145, -0.12005246430635452, -0.03959491103887558, -0.00011401902884244919, -0.06809007376432419, -0.06100347265601158, 0.007704641669988632, 0.11411415040493011, -0.05541178956627846, 0.052656084299087524, 0.0838216245174408, 0.14740128815174103, -0.009255511686205864, 0.048977453261613846, -0.27016496658325195, 0.08494757115840912, -0.011384307406842709, -0.25019893050193787, -0.15780310332775116, -0.020150594413280487, -0.16445773839950562, -0.08481138199567795, -0.03386319801211357, 0.006980562582612038, -0.03801126033067703, -0.24104826152324677, -0.00838954746723175, 0.021769428625702858, -0.054947346448898315, -0.024181105196475983, -0.024235807359218597, -0.029513347893953323, 0.17377184331417084, 0.17462128400802612, -0.11946048587560654, -0.03814036771655083, -0.06917959451675415, 0.022880615666508675, 0.054584573954343796, -0.035327982157468796, -0.07260715961456299, 0.051303356885910034, 0.08014517277479172, 0.024385720491409302, -0.0009471364901401103, 0.04742002114653587, 0.043133240193128586, 0.21832533180713654, -0.15501822531223297, -0.08544124662876129, 0.02753843367099762, 0.06372621655464172, -0.13917851448059082, 0.05407200753688812, -0.026588695123791695, -0.06496264785528183, 0.02322644181549549, 0.3342343270778656, 0.11390415579080582, 0.23509401082992554, -0.08779234439134598, 0.009930847212672234, 0.04120877757668495, -0.038041938096284866, -0.04520910978317261, -0.07200781255960464, 0.027800623327493668, -0.12028225511312485, 0.005343579687178135, -0.08921711891889572, -0.02334725856781006, -0.06228580325841904, 0.04135344550013542, -0.0852198451757431, -0.10924340784549713, 0.05449363589286804, 0.1402597725391388, 0.17416556179523468, 0.11435360461473465, -0.09442557394504547, -0.022156957536935806, -0.012985939159989357, 0.13710209727287292, -0.07155085355043411, -0.07352211326360703, 0.09926954656839371, 0.1132192313671112, 0.029883550480008125, 0.004199555143713951, -0.0860462561249733, -0.1015150249004364, 0.04250607639551163, 0.04397884011268616, 0.2160821408033371, 0.020193297415971756, 0.2063349485397339, 0.14966154098510742, 0.15256577730178833, 0.14400631189346313, -0.1117933988571167, -0.05742453411221504, -0.02263471484184265, -0.003562142373993993, 0.1373082995414734, 0.001011461135931313, 0.17819753289222717, -0.15659163892269135, 0.06245282664895058, 0.13684885203838348, 0.09391814470291138, 0.25783106684684753, -0.13922671973705292, 0.027578942477703094, 0.05661293864250183, 0.00826936773955822, 0.04511852189898491, 0.005551890470087528, -0.06802135705947876, -0.20750170946121216, 0.2422831505537033, -0.003539801575243473, 0.02814052626490593, -0.29161781072616577, 7.678025326640636e-7, -0.17031201720237732, 0.048641715198755264, 0.06198448687791824, 0.006279591005295515, -0.11130920052528381, 0.23907004296779633, 0.03655675798654556, 0.02373838797211647, -0.09961653500795364, 0.15225154161453247, 0.15587349236011505, -0.07799768447875977, -0.15729260444641113, 0.11932419240474701, 0.17049957811832428, -0.14236406981945038, -0.14016182720661163, -0.11068760603666306, -0.017440984025597572, -0.1369474083185196, 0.047387752681970596, 0.10691900551319122, -0.07108232378959656, -0.04813253507018089, 0.14986355602741241, -0.12025140970945358, -0.018692145124077797, -0.1367659866809845, -0.037303563207387924, 0.007000262849032879, 0.12004019320011139, 0.12875422835350037, 0.05414930731058121, -0.033689457923173904, -0.10348712652921677, -0.07326383888721466, -0.1289834827184677, 0.2173936516046524, 0.09854282438755035, 0.10054054856300354, 0.13580118119716644, 0.20106704533100128, -0.1373647302389145, 0.0119235310703516, 0.025343000888824463, 0.07834508270025253, -0.16587771475315094, -0.07406209409236908, 0.16222506761550903, 0.08369897305965424, 0.04909961298108101, 0.00862280372530222, -0.060779500752687454, -0.05621063709259033, -0.01574118435382843, -0.018742097541689873, -0.19966240227222443, -0.14709965884685516, -0.03239059820771217, -0.15817810595035553, -0.14524534344673157, -0.18648572266101837, 0.09879951179027557, 0.1363830715417862, -0.029338866472244263, -0.17592628300189972, -0.030600886791944504, 2.4498089760516026e-34, 0.1073564812541008, -0.09688133746385574, 0.1147008165717125, -0.2942998707294464, 0.0783708319067955, -0.017761899158358574, 0.14130929112434387, 0.03863207995891571, 0.00001519308534625452, -0.24539907276630402, -0.14334575831890106 ]
https://github.com/huggingface/datasets/issues/2651
Setting log level higher than warning does not suppress progress bar
Now ``disable_progress_bar`` function is in ``datasets/src/datasets/utils/logging.py``. https://github.com/huggingface/datasets/blob/aa555a299ad73c65e3f997a764e9d211675ab05d/src/datasets/utils/logging.py#L233-L236 And the method mentioned in https://github.com/huggingface/datasets/issues/2651#issuecomment-880270774 is not working now.
## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work. ## Steps to reproduce the bug ```python import datasets from datasets.utils.logging import set_verbosity_error set_verbosity_error() def dummy_map(batch): return batch common_voice_train = datasets.load_dataset("common_voice", "de", split="train") common_voice_test = datasets.load_dataset("common_voice", "de", split="test") common_voice_train.map(dummy_map) ``` ## Expected results - The progress bar for `.map` call won't be shown ## Actual results - The progress bar for `.map` is still shown ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.5 - PyArrow version: 4.0.1
17
Setting log level higher than warning does not suppress progress bar ## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work. ## Steps to reproduce the bug ```python import datasets from datasets.utils.logging import set_verbosity_error set_verbosity_error() def dummy_map(batch): return batch common_voice_train = datasets.load_dataset("common_voice", "de", split="train") common_voice_test = datasets.load_dataset("common_voice", "de", split="test") common_voice_train.map(dummy_map) ``` ## Expected results - The progress bar for `.map` call won't be shown ## Actual results - The progress bar for `.map` is still shown ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.5 - PyArrow version: 4.0.1 Now ``disable_progress_bar`` function is in ``datasets/src/datasets/utils/logging.py``. https://github.com/huggingface/datasets/blob/aa555a299ad73c65e3f997a764e9d211675ab05d/src/datasets/utils/logging.py#L233-L236 And the method mentioned in https://github.com/huggingface/datasets/issues/2651#issuecomment-880270774 is not working now.
[ -0.11268442869186401, 0.12910068035125732, -0.09503121674060822, -0.09610846638679504, 0.391303151845932, 0.041725195944309235, 0.07324223965406418, 0.012656084261834621, 0.011442401446402073, 0.10867004841566086, -0.03368496894836426, 0.032807186245918274, -0.143338143825531, -0.013498024083673954, 0.0063441297970712185, 0.0937461107969284, 0.09295395761728287, -0.023500334471464157, 0.06820077449083328, 0.04843568801879883, -0.1657571643590927, 0.04347006976604462, 0.022143827751278877, -0.003815671894699335, 0.07312601059675217, -0.13043993711471558, 0.14642766118049622, 0.004973737522959709, -0.15094596147537231, -0.15177103877067566, 0.034570515155792236, -0.0024317072238773108, -0.002052462426945567, 0.06366381049156189, 0.000005481963853526395, 0.07088274508714676, 0.1274435669183731, 0.04418624937534332, -0.12177550047636032, 0.025514697656035423, -0.211706280708313, -0.1383914351463318, 0.09892891347408295, 0.02752874046564102, -0.019343318417668343, -0.11647149920463562, 0.07277533411979675, -0.07249747961759567, 0.03263310715556145, -0.009571770206093788, -0.018711518496274948, 0.045772504061460495, -0.0043854177929461, -0.07778500765562057, 0.05590834468603134, 0.0976402536034584, 0.06438396871089935, 0.07435176521539688, -0.21154054999351501, -0.08337859064340591, -0.1687278002500534, -0.05638762190937996, -0.1291901022195816, -0.06408591568470001, -0.1597113311290741, -0.11997881531715393, 0.04036151245236397, -0.2567375898361206, 0.24039795994758606, 0.07045646011829376, -0.025789814069867134, -0.04698151722550392, -0.11949128657579422, 0.10343611985445023, -0.0465928316116333, -0.17810556292533875, -0.00016858568415045738, 0.0026335574220865965, -0.10523656010627747, 0.037078674882650375, -0.173428475856781, 0.15139372646808624, -0.09367738664150238, 0.05973678454756737, -0.08813407272100449, -0.038549818098545074, -0.10319070518016815, 0.06780502200126648, 0.11819130927324295, -0.06812765449285507, 0.004737772047519684, 0.18878859281539917, -0.08928116410970688, -0.1483364999294281, -0.11058804392814636, -0.007519057020545006, 0.01721828430891037, -0.09615743160247803, 0.028993012383580208, -0.18006813526153564, -0.20783263444900513, -0.011877044104039669, 0.04643677920103073, 0.12430106848478317, 0.12237437814474106, -0.010594150051474571, 0.08751577883958817, -0.0022408138029277325, 0.10355141013860703, 0.05011329799890518, 0.1588631421327591, 0.12736573815345764, -0.037835560739040375, -0.14796586334705353, 0.2563805878162384, 0.21169517934322357, 0.1100800633430481, 0.10878732800483704, -0.026820693165063858, 0.19382241368293762, 0.04597964137792587, 0.010132940486073494, -0.21133863925933838, -0.013662654906511307, 0.10128603130578995, -0.08986521512269974, 0.07602371275424957, 0.05813399702310562, -0.026874639093875885, 0.048759717494249344, -0.036035578697919846, -0.11906508356332779, 0.06426678597927094, 0.060656480491161346, 0.08670896291732788, 0.07466597110033035, 0.1292656660079956, 0.075534388422966, -0.03807537257671356, -0.07801289856433868, 0.17161673307418823, -0.0014705501962453127, 0.19421397149562836, 0.08981720358133316, -0.06853186339139938, 0.038912758231163025, 0.11634039133787155, 0.027188275009393692, -0.07561329752206802, 0.04011028632521629, 0.03083181567490101, 0.06309619545936584, -0.2264375537633896, 0.018529647961258888, -0.1777390092611313, 0.16475656628608704, -0.17417913675308228, 0.07269594073295593, -0.1089923158288002, -0.03700612112879753, 0.14178982377052307, -0.18015789985656738, -0.12249335646629333, -0.05861171707510948, 0.1657407283782959, 0.07922927290201187, -0.09484729170799255, 0.01596648618578911, -0.13850627839565277, -0.18778175115585327, 0.07404696941375732, -0.08827324211597443, -0.025022942572832108, -0.06622114032506943, -0.051744598895311356, 0.21960653364658356, -0.055373284965753555, 0.07303135097026825, -0.19827908277511597, -0.06018325686454773, 0.056621380150318146, 0.05047307536005974, 0.05910481885075569, -0.1244872584939003, 0.04795603081583977, -0.012274817563593388, 0.06755216419696808, 0.04040827602148056, 0.021275268867611885, -0.13116410374641418, -0.06500712782144547, 0.03184352070093155, 0.09250274300575256, -0.026283707469701767, -0.19230012595653534, -0.1410764902830124, -0.09138832986354828, -0.06389688700437546, 0.1547258198261261, 0.07248327881097794, 0.13185112178325653, 0.0911940410733223, 0.016721203923225403, -0.11392514407634735, -0.009750994853675365, -0.10778981447219849, -0.04485883563756943, -0.05250794067978859, -0.07258117944002151, -0.2065691500902176, -0.12393157929182053, 0.020453553646802902, 0.20014449954032898, -0.054488468915224075, -0.03926383703947067, 0.031448639929294586, -0.07215142995119095, -0.2693837881088257, -0.1522618532180786, 0.0853063315153122, -0.14848551154136658, 0.09091776609420776, -0.07231013476848602, -0.03922338783740997, 0.02409946545958519, -0.07584254443645477, 0.0760783851146698, -0.06326940655708313, 0.13298794627189636, 0.035603784024715424, -0.018924705684185028, -0.021268663927912712, 0.029075361788272858, 0.12342485040426254, -0.1915920525789261, 0.10913579910993576, -0.1474996656179428, -0.1809416115283966, -0.010979177430272102, 0.020993119105696678, -0.17253313958644867, 0.10651476681232452, -0.13632987439632416, 0.054281432181596756, -0.11897239834070206, -0.07906395196914673, 0.2146163135766983, 0.2268962860107422, -0.08899898827075958, -0.07340289652347565, 0.08240041136741638, 0.09394744783639908, -0.18183575570583344, 0.004295605234801769, 0.019147096201777458, 0.01042244303971529, 0.24935734272003174, 0.04797844961285591, 0.09746257960796356, -0.05961364507675171, 0.3546193540096283, 0.10296274721622467, -0.06012432649731636, 0.09310959279537201, 0.06760187447071075, -0.09828045964241028, 0.10904215276241302, -0.09905187040567398, -0.016384730115532875, 0.16525514423847198, 0.057750437408685684, 0.03445832058787346, -0.00823142658919096, -0.004328269977122545, 0.054372016340494156, -0.13456183671951294, -0.014082776382565498, 0.1715136021375656, 0.003938431851565838, -0.11333117634057999, -0.008490406908094883, 0.0314212292432785, -0.004675210919231176, -0.1662893146276474, 0.07230374962091446, -0.035961393266916275, 0.0004195531364530325, -0.031281474977731705, 0.0071191973984241486, 0.1765967160463333, -0.012938189320266247, 0.03670619800686836, 0.10268624126911163, -0.061575714498758316, -0.11106577515602112, 0.1353657841682434, 0.1103835254907608, -0.18774108588695526, 0.02748885378241539, 0.035152025520801544, -0.08316148072481155, 0.12151879817247391, 0.06736386567354202, 0.02032473497092724, -0.07303764671087265, -0.07168689370155334, 0.09916598349809647, 0.10426493734121323, -0.20072302222251892, -0.07869485765695572, 0.13215665519237518, -0.07918493449687958, -0.013863746076822281, 0.04013384133577347, -0.017244553193449974, 0.02773232012987137, -0.032480645924806595, -0.17120206356048584, 0.09060811251401901, -0.004010474309325218, -0.009641525335609913, -0.07196419686079025, -0.06248348206281662, 0.11078640818595886, 0.0017178267007693648, 0.028335614129900932, -0.18258942663669586, -0.12037982791662216, 0.039732594043016434, -0.09846754372119904, 0.044833965599536896, 0.21493923664093018, -0.049238331615924835, 0.048645127564668655, 0.0807311162352562, -0.14667055010795593, -0.09673537313938141, -0.08846894651651382, 0.12978506088256836, -0.024645166471600533, 0.0013890898553654552, 0.11383571475744247, 0.003944010473787785, -0.09735605120658875, 0.14500492811203003, -0.064189113676548, 0.10187138617038727, -0.06585732847452164, 0.034846678376197815, 0.023016253486275673, 0.04023566469550133, -0.006399936508387327, -0.014016014523804188, -0.14045104384422302, -0.037676241248846054, -0.08264579623937607, -0.07381810992956161, 0.10827860981225967, -0.07462695240974426, 0.055580172687768936, 0.03942736238241196, 0.01375646237283945, -0.07582376897335052, 0.040014103055000305, 0.0749024823307991, 0.012160112150013447, 0.1508263796567917, 0.16605795919895172, 0.016375431790947914, -0.1577465832233429, 0.0018859108677133918, -0.044728413224220276, -0.13536255061626434, 0.054352451115846634, -0.12399227917194366, -0.08019620180130005, 0.12686797976493835, -0.12108521908521652, 0.12848511338233948, -0.048540614545345306, -0.08050427585840225, -0.059899359941482544, -0.010116366669535637, 0.014856189489364624, 0.1687859445810318, 0.025089604780077934, -0.009874757379293442, -0.036886170506477356, -0.04872879758477211, 0.19885431230068207, 0.09066234529018402, 0.05022014304995537, 0.04932082071900368, -0.11072209477424622, 0.10017591714859009, -0.09925231337547302, 0.20555701851844788, -0.14162619411945343, 0.04098761826753616, -0.006920930929481983, 0.12399061769247055, -0.08206944912672043, -0.11886575818061829, 0.15300710499286652, 0.06103667616844177, 0.09979655593633652, -0.00030478023109026253, -0.044742267578840256, -0.038303617388010025, 0.13185013830661774, 0.10217519849538803, 0.05535253882408142, 0.08998095244169235, 0.05184170976281166, 0.08893872797489166, 0.06786367297172546, -0.0627647116780281, -0.08071387559175491, -0.09920518100261688, 0.009838363155722618, -0.10594676434993744, 0.04160671681165695, -0.04743567481637001, 0.08088819682598114, -0.01585071161389351, -0.017136413604021072, 0.23350439965724945, -0.08353882282972336, 0.08460213243961334, 0.0022563564125448465, -0.05096188932657242, 0.11711099743843079, 0.04543594270944595, 0.12343919277191162, 0.2615392804145813, -0.14081671833992004, 0.11566458642482758, -0.24378558993339539, -0.11090743541717529, -0.02493320405483246, -0.10302667319774628, -0.028718484565615654, -0.013795486651360989, -0.061855681240558624, 0.03792894259095192, 0.005310415755957365, 0.034911032766103745, 0.10855074971914291, 0.006395196076482534, 0.047503914684057236, -0.09412670135498047, -0.19376391172409058, 0.05536087602376938, -0.06791576743125916, 0.12001444399356842, -0.01898873597383499, 0.18613189458847046, -0.012221631594002247, -0.0974997952580452, 0.1525169461965561, -0.06046343967318535, -0.06857608258724213, -0.009131142869591713, 0.06459368020296097, -0.31493324041366577, 0.12351667135953903, 0.07916372269392014, 0.0392281599342823, 0.1544101983308792, 0.19409385323524475, -0.09881947189569473, 0.04734471067786217, -0.02540023997426033, 0.08629164099693298, 0.20615756511688232, -0.029319176450371742, -0.0006368626491166651, -0.18389439582824707, -0.030191930010914803, -0.10165099799633026, 0.11982332915067673, 0.1085551306605339, 0.05700764060020447, -0.24730204045772552, -0.07591957598924637, 0.07694215327501297, -0.03499860316514969, -0.008140078745782375, -0.12090673297643661, 0.1429469734430313, 0.028262125328183174, -0.04072095453739166, 0.07364677637815475, 0.09632877260446548, 0.04198314994573593, -0.010634859092533588, 0.012258696369826794, 0.19214534759521484, -0.014931431040167809, 0.03670888766646385, 0.050546661019325256, -0.08030503243207932, -0.07581410557031631, 0.011967183090746403, 0.12016309052705765, -0.09077438712120056, 0.006098619662225246, -0.0346752405166626, -0.045332517474889755, 0.011723354458808899, 0.04031968489289284, 0.06897372752428055, -0.20839622616767883, -0.035237424075603485, 0.022044925019145012, -0.12245897948741913, -0.1471395492553711, 0.01093201246112585, 0.03708712011575699, 0.014096926897764206, 0.022113949060440063, -0.006107948254793882, -0.011653904803097248, -0.05289601907134056, 0.04785088449716568, -0.007965187542140484, -0.06677009910345078, -0.03272787109017372, 0.10673011094331741, 0.09987282007932663, 0.17900799214839935, 0.12498961389064789, 0.1263117641210556, -0.031576789915561676, -0.019956177100539207, -0.036043185740709305, 0.35624203085899353, -0.08384282886981964, -0.005995851010084152, 0.038907863199710846, 0.051214076578617096, -0.1381906121969223, -0.16497156023979187, 0.005906638689339161, 0.04492298513650894, -0.16042937338352203, -0.025730902329087257, -0.2516457736492157, -0.08668739348649979, -0.11161461472511292, 0.05370805040001869, 0.043542370200157166, 0.17930926382541656, 0.050400007516145706, -0.06713045388460159, -2.4962031023998186e-32, -0.15643912553787231, -0.10008544474840164, -0.0801217257976532, -0.04488784447312355, -0.028467535972595215, 0.1185794398188591, 0.03564224764704704, -0.033977530896663666, 0.0015042118029668927, -0.08230888843536377, -0.11346103250980377, -0.036138396710157394, -0.001991195371374488, -0.0700519010424614, -0.07079100608825684, 0.016173237934708595, 0.10227853059768677, -0.048503629863262177, 0.034137554466724396, 0.08314090222120285, 0.16074183583259583, -0.017592189833521843, 0.042559679597616196, -0.287716805934906, 0.07200099527835846, 0.001956884516403079, -0.24941788613796234, -0.15448375046253204, -0.046364303678274155, -0.12962819635868073, -0.07479117065668106, -0.04913831502199173, 0.00879589281976223, -0.026873070746660233, -0.21886706352233887, -0.0009750572498887777, -0.005077148322016001, -0.06347939372062683, -0.00976000539958477, -0.038528360426425934, -0.0498533770442009, 0.18832923471927643, 0.1586250513792038, -0.10964003950357437, -0.024136662483215332, -0.08303758502006531, 0.027784649282693863, 0.05407588928937912, -0.05643483251333237, -0.0916365534067154, 0.016390204429626465, 0.07021795213222504, 0.034017931669950485, 0.015462593175470829, 0.04483192414045334, 0.061893280595541, 0.22882811725139618, -0.17005741596221924, -0.07921630889177322, 0.01709783636033535, 0.030291689559817314, -0.13170205056667328, 0.01789618842303753, -0.01879287324845791, -0.064787857234478, 0.028302684426307678, 0.3146645426750183, 0.11003069579601288, 0.22606587409973145, -0.1022840291261673, 0.04354776069521904, 0.04307810589671135, -0.037946511059999466, -0.01969730667769909, -0.05985679104924202, 0.01094723679125309, -0.11101311445236206, -0.01870044507086277, -0.05873525142669678, -0.03788114711642265, -0.04421786591410637, 0.03678348287940025, -0.07092136144638062, -0.11675106734037399, 0.03180906921625137, 0.120698943734169, 0.1711699664592743, 0.1146792471408844, -0.11112570017576218, -0.0058566308580338955, -0.013349870219826698, 0.1170724406838417, -0.08720089495182037, -0.05429426580667496, 0.10112130641937256, 0.10475610941648483, 0.037435777485370636, 0.02834896743297577, -0.0702953040599823, -0.09240442514419556, 0.04386189579963684, 0.021457159891724586, 0.2213820517063141, 0.038368210196495056, 0.19282372295856476, 0.13085883855819702, 0.17562641203403473, 0.15952074527740479, -0.10920830816030502, -0.06213892623782158, -0.03330887854099274, 0.017434919252991676, 0.13354083895683289, -0.008999397978186607, 0.17178842425346375, -0.1733788102865219, 0.05878967419266701, 0.13987579941749573, 0.09202733635902405, 0.27958640456199646, -0.13858464360237122, 0.020962823182344437, 0.05733530595898628, 0.028863120824098587, 0.02318667061626911, 0.016963288187980652, -0.07179562747478485, -0.22279475629329681, 0.23533274233341217, -0.009614643640816212, 0.01834026351571083, -0.3051285147666931, 7.738391332168248e-7, -0.1857694685459137, 0.0525348000228405, 0.06051591783761978, -0.007968446239829063, -0.08578571677207947, 0.23772674798965454, 0.06169656664133072, 0.016938095912337303, -0.0799187570810318, 0.16453227400779724, 0.14204853773117065, -0.05840645357966423, -0.13814698159694672, 0.10070031136274338, 0.17081542313098907, -0.1455828994512558, -0.11958321928977966, -0.11723440885543823, -0.008674065582454205, -0.09719274938106537, 0.04872259125113487, 0.0862637311220169, -0.05687783285975456, -0.048308078199625015, 0.1513897031545639, -0.11343718320131302, -0.00011126619938295335, -0.1454591304063797, -0.021383872255682945, -0.026596855372190475, 0.09647708386182785, 0.14104662835597992, 0.0660339742898941, -0.05004199221730232, -0.12418784201145172, -0.09765757620334625, -0.12465972453355789, 0.23484539985656738, 0.06938926130533218, 0.12282998114824295, 0.1494569182395935, 0.20322634279727936, -0.1498381346464157, -0.029600199311971664, 0.028861600905656815, 0.10996192693710327, -0.19431018829345703, -0.08929067105054855, 0.161467507481575, 0.08836964517831802, 0.0320485457777977, 0.01804458722472191, -0.08009569346904755, -0.021975165233016014, 0.008865989744663239, -0.04591817408800125, -0.19124595820903778, -0.1436314880847931, -0.028779350221157074, -0.179873526096344, -0.1213129386305809, -0.17005175352096558, 0.10277292877435684, 0.1638113111257553, -0.03598857671022415, -0.16951610147953033, -0.043996404856443405, 2.6411000186612944e-34, 0.11310295015573502, -0.0858050063252449, 0.11383718252182007, -0.3085015118122101, 0.08397176861763, -0.0135544678196311, 0.1483185589313507, 0.06365656852722168, -0.0024433371145278215, -0.2296275496482849, -0.13943609595298767 ]
https://github.com/huggingface/datasets/issues/2650
[load_dataset] shard and parallelize the process
I think @TevenLeScao is exploring adding multiprocessing in `GeneratorBasedBuilder._prepare_split` - feel free to post updates here :)
- Some huge datasets take forever to build the first time. (e.g. oscar/en) as it's done in a single cpu core. - If the build crashes, everything done up to that point gets lost Request: Shard the build over multiple arrow files, which would enable: - much faster build by parallelizing the build process - if the process crashed, the completed arrow files don't need to be re-built again Thank you! @lhoestq
17
[load_dataset] shard and parallelize the process - Some huge datasets take forever to build the first time. (e.g. oscar/en) as it's done in a single cpu core. - If the build crashes, everything done up to that point gets lost Request: Shard the build over multiple arrow files, which would enable: - much faster build by parallelizing the build process - if the process crashed, the completed arrow files don't need to be re-built again Thank you! @lhoestq I think @TevenLeScao is exploring adding multiprocessing in `GeneratorBasedBuilder._prepare_split` - feel free to post updates here :)
[ -0.23637893795967102, 0.23778210580348969, -0.08969847857952118, -0.03636477515101433, -0.055760446935892105, 0.0029549633618444204, -0.0030582058243453503, 0.003395271021872759, 0.02260034717619419, 0.1369480937719345, 0.12663738429546356, -0.07090029120445251, -0.06058145686984062, 0.029096776619553566, -0.048286475241184235, -0.13624820113182068, -0.06708614528179169, 0.11032524704933167, -0.09790635854005814, 0.020561834797263145, -0.1612236499786377, -0.002983872313052416, 0.18593625724315643, -0.06610237807035446, 0.035937536507844925, -0.0439877025783062, -0.093734972178936, 0.1555907428264618, 0.06576912105083466, -0.0913899764418602, 0.04071986675262451, 0.05466710403561592, -0.13848483562469482, -0.006334098521620035, 0.000006394195224856958, 0.06321035325527191, 0.11370029300451279, 0.06231397017836571, -0.16487091779708862, -0.16483519971370697, 0.2154974639415741, -0.12094037234783173, 0.01024745311588049, 0.12133155763149261, -0.005783389322459698, -0.21551384031772614, 0.043784115463495255, 0.0020903926342725754, -0.027270345017313957, -0.07946769148111343, -0.04437600448727608, -0.09893152862787247, -0.1037374883890152, -0.14806386828422546, 0.025058332830667496, -0.04137781262397766, 0.0250674057751894, 0.03712672367691994, -0.08169180899858475, -0.01966959983110428, -0.03558638319373131, -0.060851313173770905, 0.012997061014175415, 0.02830163761973381, 0.09298622608184814, 0.07337117195129395, -0.13021498918533325, -0.08387647569179535, -0.012914902530610561, 0.17191915214061737, -0.048644665628671646, 0.11551163345575333, -0.06922180205583572, -0.04056555777788162, -0.11159323155879974, -0.11049669235944748, -0.02323598973453045, 0.003927676007151604, -0.28263232111930847, 0.002772766863927245, -0.11318386346101761, -0.15196667611598969, -0.03210761770606041, -0.056123681366443634, -0.12869180738925934, -0.07838866859674454, 0.016769710928201675, 0.038798145949840546, 0.053960490971803665, 0.10053924471139908, 0.16058561205863953, -0.013956576585769653, -0.14263814687728882, -0.09747275710105896, 0.029974501579999924, 0.15477144718170166, -0.03922061622142792, 0.03364250063896179, 0.054108235985040665, -0.08199293911457062, 0.10875266790390015, 0.09470448642969131, -0.000765291799325496, 0.13511571288108826, 0.1351405531167984, -0.20073248445987701, 0.09194286912679672, -0.208003431558609, -0.03595831245183945, -0.02394409477710724, -0.15976819396018982, 0.2322612851858139, -0.2484380602836609, -0.20204782485961914, 0.13751275837421417, -0.022719260305166245, -0.05059473216533661, 0.16162359714508057, 0.07122134417295456, 0.014282952062785625, 0.24430322647094727, 0.0025077443569898605, 0.08892910182476044, 0.18810410797595978, -0.009614535607397556, 0.04178711399435997, -0.07522425055503845, -0.02583782933652401, -0.07028574496507645, -0.11118368059396744, -0.08590687811374664, -0.15838488936424255, 0.057715099304914474, 0.04695240408182144, 0.04566694051027298, -0.15552617609500885, 0.0815076231956482, -0.05967078357934952, -0.25021451711654663, -0.11766214668750763, 0.25640180706977844, -0.09739518910646439, -0.21351125836372375, 0.011555603705346584, 0.021681981161236763, 0.034293852746486664, -0.11370542645454407, 0.15553517639636993, -0.07183574885129929, 0.16778314113616943, -0.1429944783449173, 0.005739054176956415, -0.11651645600795746, 0.15114259719848633, -0.09578365087509155, 0.14410394430160522, -0.13786962628364563, 0.01193042192608118, -0.2999480664730072, -0.01883506588637829, -0.11814320832490921, -0.07121192663908005, 0.008438422344624996, 0.0763537734746933, 0.07897219061851501, 0.06839805096387863, 0.03303764387965202, 0.1291462630033493, -0.08099773526191711, 0.06492262333631516, 0.022675517946481705, -0.1756526231765747, -0.04818237945437431, 0.07162250578403473, -0.08075229078531265, 0.07798050343990326, 0.1604795753955841, 0.03865119814872742, -0.005134017206728458, 0.09464234858751297, 0.05184559151530266, -0.08154182136058807, -0.04010903090238571, -0.013014702126383781, 0.16204100847244263, -0.03288353979587555, -0.07928198575973511, 0.18338888883590698, -0.03423788398504257, -0.08631087094545364, -0.02838771417737007, 0.022125620394945145, -0.16831931471824646, 0.22445735335350037, -0.006379330530762672, -0.02557196095585823, 0.009020831435918808, -0.05658086761832237, 0.17106850445270538, -0.20638225972652435, -0.17172494530677795, 0.09933647513389587, -0.05469142645597458, 0.07532422244548798, -0.0651576891541481, 0.03312189504504204, -0.1735571175813675, 0.16119016706943512, 0.1087096557021141, -0.18611609935760498, -0.11612476408481598, 0.020908841863274574, -0.00806385837495327, 0.04780353605747223, -0.1346338540315628, 0.08909458667039871, -0.06795217841863632, 0.0046901036985218525, -0.051739465445280075, 0.017236150801181793, -0.10037415474653244, 0.013829725794494152, -0.043210893869400024, 0.12158443033695221, -0.020500613376498222, 0.05365089699625969, 0.06928670406341553, -0.03664270043373108, 0.06326216459274292, -0.09251096844673157, -0.15078943967819214, -0.14846976101398468, 0.16822533309459686, 0.12606340646743774, -0.11311475187540054, 0.020442312583327293, 0.11124757677316666, 0.01892680861055851, 0.018880782648921013, -0.026597511023283005, -0.09064793586730957, -0.13982822000980377, 0.00019370838708709925, -0.05218663066625595, 0.09648486971855164, 0.1641286313533783, -0.08803078532218933, 0.13315929472446442, 0.08718552440404892, -0.011066141538321972, 0.2318747341632843, 0.05373365059494972, 0.037739068269729614, 0.01698729582130909, 0.025901900604367256, -0.04786624759435654, 0.08590752631425858, 0.23675253987312317, -0.026079345494508743, 0.1969510018825531, 0.24101273715496063, 0.03778110444545746, -0.05523599311709404, -0.016320131719112396, 0.07830808311700821, -0.04072459414601326, 0.06239669397473335, 0.051192495971918106, 0.07474179565906525, 0.04238900914788246, 0.060821209102869034, -0.038465723395347595, -0.0531541146337986, -0.09244304895401001, 0.04858459159731865, -0.08094638586044312, 0.1501714438199997, -0.07155243307352066, -0.07290013879537582, -0.15341199934482574, -0.14197109639644623, 0.1397000253200531, 0.16141392290592194, -0.08066927641630173, 0.1950066089630127, 0.050587937235832214, 0.02867441624403, 0.17310449481010437, -0.0047163208946585655, -0.13824716210365295, 0.0951315239071846, -0.10273069888353348, 0.05956609547138214, 0.022386698052287102, 0.05190368741750717, 0.0667908564209938, 0.14460693299770355, 0.02192043885588646, -0.06666792184114456, -0.05337260290980339, -0.10765879601240158, 0.07216081023216248, 0.06671437621116638, 0.021552428603172302, 0.12794214487075806, 0.1861874759197235, 0.0649045780301094, -0.08116142451763153, -0.22724582254886627, 0.058687858283519745, 0.04548858106136322, 0.016689715906977654, 0.07470887899398804, 0.010597778484225273, 0.011263374239206314, -0.08907710015773773, -0.03950722515583038, -0.2961274981498718, 0.0637909471988678, -0.024387065321207047, 0.0259842611849308, 0.0874205157160759, -0.03291754052042961, -0.07425487786531448, -0.03856508433818817, 0.07841146737337112, -0.12112868577241898, -0.13196559250354767, 0.03123803436756134, 0.05499405041337013, -0.05018152669072151, -0.044690050184726715, 0.16487093269824982, 0.04539963975548744, 0.18276531994342804, -0.014565425924956799, -0.06716517359018326, -0.15780697762966156, 0.2976233661174774, -0.12974177300930023, -0.06614252179861069, -0.013088932260870934, -0.08938297629356384, 0.042649347335100174, -0.013167332857847214, -0.10675784945487976, 0.14659439027309418, -0.250371515750885, 0.04003017395734787, 0.03191052004694939, -0.09147686511278152, -0.10144037753343582, 0.019488690420985222, -0.03116491064429283, 0.11147714406251907, 0.09380149096250534, -0.028706276789307594, 0.07560284435749054, -0.021147435531020164, 0.15848711133003235, -0.05298570543527603, -0.040396396070718765, 0.2139415293931961, 0.0011062659323215485, -0.10103097558021545, -0.006438225507736206, 0.149367094039917, 0.05095468834042549, -0.12532958388328552, -0.08671125769615173, -0.16219598054885864, -0.12185598164796829, 0.01948189176619053, -0.03693288564682007, 0.01769769750535488, -0.0703507587313652, 0.037009600549936295, -0.18108850717544556, 0.10531362891197205, -0.09328872710466385, 0.12398535758256912, -0.17633065581321716, -0.07982544600963593, -0.03426831215620041, 0.006033673882484436, 0.05922744423151016, -0.017817797139286995, 0.019145213067531586, -0.16682350635528564, 0.23891039192676544, -0.10202284902334213, 0.2344723343849182, 0.14274954795837402, -0.11950312554836273, -0.038035500794649124, -0.04780450463294983, -0.013550962321460247, 0.07400953769683838, 0.02841363660991192, 0.01747000403702259, 0.15996263921260834, 0.11608294397592545, -0.05867234244942665, 0.013478831388056278, -0.052022069692611694, 0.0014165849424898624, 0.029587512835860252, 0.018429405987262726, 0.16124725341796875, -0.005220162682235241, 0.09230981767177582, 0.001525143045000732, -0.15155954658985138, -0.12527957558631897, 0.18595395982265472, 0.014455253258347511, -0.08660523593425751, 0.058203522115945816, -0.09816152602434158, -0.019802767783403397, -0.050960469990968704, -0.027605006471276283, 0.14926229417324066, 0.0921182855963707, -0.0583329051733017, -0.12193827331066132, -0.08940984308719635, 0.11123388260602951, 0.18587447702884674, 0.07121139764785767, 0.04288092255592346, 0.07046215236186981, 0.08079610764980316, 0.02444799430668354, -0.04669288545846939, -0.05809856951236725, 0.265285849571228, -0.10548083484172821, -0.0710492879152298, 0.059513892978429794, -0.1722182035446167, 0.029499053955078125, 0.06907208263874054, 0.04928380250930786, -0.05799836665391922, -0.07439238578081131, -0.011993829160928726, -0.017185430973768234, -0.025865202769637108, -0.033715203404426575, -0.1457374095916748, -0.056058742105960846, -0.16989697515964508, -0.03339502215385437, 0.01746257394552231, -0.04848108068108559, 0.12834970653057098, -0.060418445616960526, 0.06888161599636078, 0.17855025827884674, -0.11711936444044113, -0.06272649019956589, -0.07892289012670517, -0.008833561092615128, -0.22165462374687195, 0.15342876315116882, 0.0883212760090828, -0.049449607729911804, -0.11465808749198914, -0.0703871101140976, -0.1078362688422203, 0.05181709676980972, -0.03429428115487099, 0.04397428408265114, 0.20404839515686035, 0.034121669828891754, -0.02350316382944584, 0.016480393707752228, -0.1735532432794571, -0.039237529039382935, 0.14552311599254608, 0.07580585032701492, 0.06517019867897034, -0.04526986554265022, -0.04856112599372864, 0.1366042196750641, -0.10572781413793564, -0.06237919256091118, -0.14166899025440216, 0.12993928790092468, 0.13176500797271729, -0.0170211773365736, -0.02627624198794365, -0.0059621911495924, 0.044605355709791183, -0.1072336807847023, -0.12224353849887848, 0.09120050817728043, 0.06742822378873825, 0.06524915248155594, -0.033094070851802826, -0.008696399629116058, 0.08439946174621582, -0.032382991164922714, 0.048231225460767746, -0.10167022049427032, -0.07031187415122986, -0.06012680009007454, -0.012612191028892994, 0.0061429464258253574, 0.05765943601727486, -0.15238969027996063, 0.022767238318920135, 0.008809326216578484, 0.07786618173122406, 0.029798418283462524, -0.02217791974544525, 0.02993934229016304, 0.018350979313254356, -0.06982176005840302, 0.06183076649904251, -0.09549564123153687, -0.05069783329963684, -0.040363725274801254, -0.025649573653936386, 0.053752925246953964, -0.017627034336328506, -0.07086576521396637, 0.028367986902594566, -0.053580284118652344, 0.10292413085699081, 0.08761826157569885, 0.17861619591712952, 0.0342080220580101, 0.019667571410536766, 0.07187749445438385, 0.19794674217700958, -0.26407933235168457, 0.0011383560486137867, 0.104497991502285, -0.07729820907115936, -0.07556138932704926, -0.03932477533817291, 0.1437433958053589, 0.08422715216875076, 0.009635552763938904, -0.026837149634957314, 0.01569860614836216, 0.05362235754728317, -0.14467628300189972, -0.08051510155200958, 0.02174217253923416, -0.1466107964515686, -0.03315619006752968, 0.03128359839320183, -2.632672119058532e-32, 0.04308738932013512, -0.048586633056402206, 0.1007227897644043, -0.07805781811475754, -0.06023499369621277, -0.044152598828077316, -0.04237021133303642, -0.07641392201185226, -0.025826239958405495, -0.04934981092810631, -0.08534794300794601, 0.09918973594903946, 0.09484876692295074, 0.00685321819037199, -0.022440757602453232, -0.07279826700687408, 0.13137441873550415, -0.03981238231062889, -0.04123866930603981, 0.04921799898147583, -0.02997654490172863, 0.11584099382162094, -0.09162542968988419, 0.013168570585548878, -0.0961686223745346, -0.14677315950393677, 0.0988793671131134, -0.12646129727363586, 0.10016781091690063, -0.06527390331029892, -0.07414799928665161, 0.08979212492704391, -0.12114832550287247, -0.03159856051206589, -0.011196059174835682, -0.15885023772716522, -0.17890121042728424, 0.07847441732883453, 0.09951779246330261, 0.05228016898036003, -0.03227502852678299, -0.003008855739608407, 0.11781135201454163, 0.014122741296887398, -0.07254113256931305, -0.09210643172264099, 0.06945208460092545, 0.08269660919904709, -0.169496089220047, -0.046624936163425446, -0.0071717435494065285, 0.03379358723759651, 0.17403431236743927, 0.020706456154584885, 0.05512811988592148, -0.14463718235492706, 0.03441661223769188, -0.05271965637803078, -0.05677642673254013, -0.033926840871572495, 0.06894378364086151, 0.10674726217985153, -0.01649160124361515, -0.010256845504045486, 0.23364722728729248, -0.06853970140218735, 0.15165403485298157, -0.043956078588962555, -0.022059720009565353, -0.01688740961253643, 0.1878247708082199, 0.10052941739559174, -0.018632708117365837, 0.020034709945321083, 0.12041600048542023, -0.13322515785694122, -0.17775483429431915, 0.11567840725183487, 0.06172557547688484, -0.046088412404060364, -0.049674395471811295, -0.03222421929240227, 0.010156800039112568, 0.16908781230449677, -0.02496662363409996, -0.07343479245901108, -0.020454326644539833, -0.024286793544888496, -0.028736179694533348, 0.013513641431927681, 0.02031451277434826, -0.003874946851283312, 0.12023866921663284, 0.03449591249227524, 0.0008957552490755916, 0.11250129342079163, -0.11996666342020035, 0.02806789241731167, -0.01691148430109024, 0.0629531517624855, 0.05364394560456276, 0.06620045751333237, 0.2050626128911972, -0.03842579945921898, 0.12691503763198853, -0.003122884314507246, 0.039377547800540924, 0.006818272639065981, -0.10727347433567047, -0.02289918065071106, -0.15358266234397888, 0.03774116188287735, 0.0021314467303454876, 0.017711179330945015, 0.16377337276935577, 0.036768849939107895, -0.011785697191953659, -0.012203531339764595, 0.048337604850530624, 0.1267138421535492, -0.10883855074644089, 0.012846517376601696, 0.14407697319984436, -0.0973728746175766, -0.08316458761692047, 0.17736336588859558, -0.1058977022767067, -0.16314871609210968, 0.04711421579122543, -0.13385725021362305, -0.0337955467402935, 0.017134595662355423, 7.819210736670357e-7, -0.1509815901517868, 0.2090451717376709, -0.00705603277310729, 0.14705631136894226, -0.06953955441713333, -0.1344272643327713, -0.10035229474306107, 0.07739238440990448, 0.018917392939329147, 0.11384130269289017, 0.25764375925064087, 0.03243856877088547, -0.0027336550410836935, 0.1258602887392044, -0.12026147544384003, -0.0824120044708252, -0.03847109153866768, 0.04549885541200638, -0.09422562271356583, -0.01844281144440174, 0.09101572632789612, 0.16671894490718842, -0.19610844552516937, -0.06568480283021927, 0.0806455910205841, -0.07555747777223587, 0.03791245445609093, 0.060966361314058304, 0.024130607023835182, 0.07846156507730484, -0.010046212002635002, 0.11450336128473282, -0.11433764547109604, 0.013361431658267975, -0.03961403667926788, -0.08679746836423874, -0.07289784401655197, -0.05195355415344238, 0.11954652518033981, 0.0972321480512619, 0.11339898407459259, 0.019939741119742393, -0.03086250275373459, 0.1187918484210968, 0.1289394497871399, -0.04988008737564087, -0.122953861951828, 0.044390276074409485, 0.06888140738010406, -0.02498513273894787, -0.0046533579006791115, 0.11573167145252228, 0.15167516469955444, 0.08534146100282669, 0.061461981385946274, -0.10315942019224167, -0.007621517404913902, -0.13814403116703033, -0.030800621956586838, 0.14705784618854523, -0.058498308062553406, -0.032696433365345, 0.1311703622341156, 0.04425298422574997, 0.12332621961832047, -0.015224936418235302, -0.029690902680158615, 2.5072649358678883e-34, 0.0074386619962751865, -0.05494159460067749, -0.03292073309421539, 0.0067980545572936535, 0.021108005195856094, -0.1608840525150299, -0.11603933572769165, -0.13160905241966248, -0.026987548917531967, -0.27283868193626404, -0.07742640376091003 ]
https://github.com/huggingface/datasets/issues/2650
[load_dataset] shard and parallelize the process
Posted a PR to address the building side, still needs something to load sharded arrow files + tests
- Some huge datasets take forever to build the first time. (e.g. oscar/en) as it's done in a single cpu core. - If the build crashes, everything done up to that point gets lost Request: Shard the build over multiple arrow files, which would enable: - much faster build by parallelizing the build process - if the process crashed, the completed arrow files don't need to be re-built again Thank you! @lhoestq
18
[load_dataset] shard and parallelize the process - Some huge datasets take forever to build the first time. (e.g. oscar/en) as it's done in a single cpu core. - If the build crashes, everything done up to that point gets lost Request: Shard the build over multiple arrow files, which would enable: - much faster build by parallelizing the build process - if the process crashed, the completed arrow files don't need to be re-built again Thank you! @lhoestq Posted a PR to address the building side, still needs something to load sharded arrow files + tests
[ -0.21871265769004822, 0.19943870604038239, -0.08474224805831909, -0.07741007208824158, -0.04364518076181412, -0.01720700040459633, 0.09370505809783936, -0.0034081453923135996, 0.03123670257627964, 0.1631503403186798, 0.13269257545471191, 0.024936940521001816, -0.01749313995242119, 0.05526145175099373, 0.02279873564839363, -0.12796345353126526, -0.0894036516547203, 0.0930669754743576, -0.1450236588716507, 0.004316953010857105, -0.14170709252357483, 0.0041567361913621426, 0.16332505643367767, -0.017640486359596252, 0.037865541875362396, -0.030297817662358284, -0.09217876940965652, 0.18493236601352692, 0.07819008082151413, -0.09799834340810776, 0.0807126984000206, 0.02763735130429268, -0.1031293272972107, -0.04709897190332413, 0.000006580125955224503, 0.049399442970752716, 0.12807901203632355, 0.08526765555143356, -0.12472192943096161, -0.11901887506246567, 0.2097916603088379, -0.128518745303154, 0.05033119022846222, 0.10353125631809235, 0.055819813162088394, -0.200066938996315, 0.04308358207345009, -0.004394514951854944, -0.04103982076048851, -0.08093376457691193, -0.06778525561094284, -0.040818534791469574, -0.1396070271730423, -0.17351338267326355, 0.07663544267416, -0.05206933617591858, 0.04530598595738411, 0.040636979043483734, -0.10738862305879593, -0.045718587934970856, -0.026272112503647804, -0.09935413300991058, 0.006871819030493498, -0.002009209943935275, 0.14342111349105835, 0.023550722748041153, -0.08936380594968796, -0.07968848943710327, -0.034255821257829666, 0.11152896285057068, -0.09593088924884796, 0.10893462598323822, -0.020789150148630142, -0.05675806477665901, -0.10552027076482773, -0.03450588881969452, -0.05851980298757553, 0.002327624475583434, -0.1963309645652771, -0.01081894151866436, -0.10258776694536209, -0.11031071841716766, -0.032650258392095566, 0.00781694520264864, -0.12599477171897888, -0.07204829901456833, 0.0587642565369606, 0.04861756041646004, 0.07496045529842377, 0.04761836305260658, 0.15738584101200104, -0.054059870541095734, -0.11882185935974121, -0.12024962157011032, 0.04215281829237938, 0.08203019201755524, -0.021685723215341568, -0.00909570325165987, 0.1293574869632721, -0.030923955142498016, 0.14143048226833344, 0.0771731436252594, -0.0038943220861256123, 0.16268345713615417, 0.09240622818470001, -0.16850391030311584, 0.1495988965034485, -0.1731569766998291, -0.08294215053319931, 0.03540106490254402, -0.15155285596847534, 0.2386132776737213, -0.22889462113380432, -0.19126300513744354, 0.11419623345136642, -0.024004792794585228, 0.044500820338726044, 0.16676627099514008, 0.054724548012018204, 0.04604411870241165, 0.17774872481822968, 0.02490507997572422, 0.060402464121580124, 0.16491246223449707, 0.04019021987915039, 0.06278998404741287, -0.09588468074798584, -0.05893326550722122, -0.050954610109329224, -0.02319367043673992, -0.08035587519407272, -0.095938540995121, 0.010489272885024548, 0.0007916355389170349, 0.05579657107591629, -0.1316104382276535, 0.06919427961111069, -0.10000777244567871, -0.14519183337688446, -0.1430329829454422, 0.2578160762786865, -0.015346241183578968, -0.20184223353862762, 0.005607159808278084, -0.003304512472823262, 0.02786223776638508, -0.10902653634548187, 0.19064675271511078, -0.09064331650733948, 0.21907158195972443, -0.19503575563430786, -0.04809677228331566, -0.11143853515386581, 0.13419918715953827, -0.10483362525701523, 0.07608665525913239, -0.17118509113788605, -0.025443749502301216, -0.3245698809623718, -0.03414056450128555, -0.06151888146996498, -0.09739790856838226, -0.016888735815882683, 0.06286250799894333, 0.03126068413257599, 0.048829298466444016, 0.02441873587667942, 0.08624664694070816, -0.06751202046871185, 0.02594611980021, -0.02318461611866951, -0.16106660664081573, -0.08682051301002502, -0.06451404094696045, -0.01909615285694599, 0.12915749847888947, 0.14507368206977844, -0.022784363478422165, -0.0015276423655450344, 0.09849131852388382, 0.04825515300035477, -0.10373470932245255, -0.043197453022003174, 0.011693032458424568, 0.13192197680473328, -0.0019197568763047457, -0.15029031038284302, 0.1512729525566101, -0.04930802807211876, -0.10777855664491653, -0.0873078852891922, 0.061685021966695786, -0.16270145773887634, 0.24241532385349274, -0.021517129614949226, -0.07666531950235367, 0.034132614731788635, -0.15292766690254211, 0.1512450873851776, -0.2094370424747467, -0.14997662603855133, 0.08896180242300034, -0.04600462317466736, 0.05493145436048508, -0.016793573275208473, 0.06519722193479538, -0.1712755709886551, 0.12518811225891113, 0.056838005781173706, -0.13432981073856354, -0.038042325526475906, 0.030450526624917984, -0.005327502731233835, 0.01610318012535572, -0.1252129226922989, 0.04932031407952309, -0.06619314849376678, -0.01897575519979, -0.08597390353679657, 0.03180353716015816, -0.11411693692207336, -0.01150551624596119, -0.12339518219232559, 0.10937090963125229, -0.03487497195601463, 0.05273524671792984, 0.10501604527235031, -0.04085451364517212, 0.031618695706129074, -0.09759703278541565, -0.1496066302061081, -0.1220531016588211, 0.17695796489715576, 0.14773909747600555, -0.13528551161289215, 0.001883719814941287, 0.15184134244918823, 0.10970696061849594, 0.02763250470161438, -0.10803694278001785, -0.05747444927692413, -0.017482515424489975, 0.029669374227523804, -0.0585210956633091, 0.016616422683000565, 0.16797307133674622, -0.08458215743303299, 0.12864579260349274, 0.04676734656095505, 0.012474860064685345, 0.23277531564235687, 0.12197894603013992, -0.027875442057847977, -0.016287751495838165, 0.05532534793019295, -0.06726713478565216, 0.13331370055675507, 0.2196245938539505, 0.01457819901406765, 0.09908580034971237, 0.18669970333576202, 0.010962159372866154, -0.07105997949838638, -0.011414621956646442, 0.05904733017086983, 0.02716011181473732, 0.06554362922906876, 0.08236171305179596, 0.11671242117881775, 0.03849904611706734, -0.013327805325388908, -0.048065345734357834, -0.07425756752490997, -0.06794008612632751, 0.0562039352953434, -0.05223650857806206, 0.19912174344062805, -0.08801000565290451, -0.002988209715113044, -0.11846320331096649, -0.11693578213453293, 0.12367816269397736, 0.14348168671131134, -0.08117098361253738, 0.19541674852371216, 0.05897712707519531, 0.0006133142742328346, 0.1511557549238205, -0.027283452451229095, -0.13985978066921234, 0.10654834657907486, -0.14570817351341248, 0.051037583500146866, -0.022587142884731293, 0.04659447818994522, 0.023917218670248985, 0.04239287227392197, 0.045329511165618896, -0.08082668483257294, -0.05527574196457863, -0.11407335102558136, 0.03948922082781792, 0.07864680141210556, 0.04645906761288643, 0.11679389327764511, 0.20086923241615295, 0.057161714881658554, -0.07398436218500137, -0.1608787328004837, 0.024041801691055298, 0.027028599753975868, 0.006181227508932352, 0.06847523897886276, -0.039906565099954605, 0.02032976597547531, -0.07085107266902924, -0.05034495145082474, -0.267739474773407, 0.08775602281093597, -0.013681265525519848, 0.030056212097406387, 0.08562006801366806, -0.026426229625940323, -0.09057025611400604, -0.021898435428738594, 0.1024787425994873, -0.1587643325328827, -0.15753355622291565, 0.040569599717855453, 0.03407863527536392, -0.09055007249116898, -0.10286273062229156, 0.14938212931156158, 0.07724259793758392, 0.1301039606332779, -0.012143825180828571, -0.052302125841379166, -0.18285194039344788, 0.26286765933036804, -0.11132202297449112, -0.04095133766531944, -0.03157119080424309, -0.048403315246105194, -0.02423171140253544, -0.008518556132912636, -0.10708583891391754, 0.07898326963186264, -0.23106002807617188, -0.04325798526406288, 0.06177634373307228, -0.09982013702392578, -0.03008612059056759, 0.019587472081184387, -0.04823235422372818, 0.05120047554373741, 0.01840260997414589, -0.008817878551781178, 0.07586530596017838, -0.07667625695466995, 0.11283901333808899, -0.024645918980240822, -0.030288659036159515, 0.2556520998477936, 0.0029275615233927965, -0.12037674337625504, 0.018826546147465706, 0.14919473230838776, 0.05389511212706566, -0.06914669275283813, -0.04407462850213051, -0.17070451378822327, -0.1020055040717125, 0.03712800145149231, -0.018914518877863884, 0.005743131507188082, -0.12083183974027634, 0.013598102144896984, -0.18228404223918915, 0.1479266881942749, -0.06470642983913422, 0.1097363531589508, -0.21594500541687012, -0.0702650398015976, -0.00011140103742945939, 0.009360124357044697, 0.08124540001153946, -0.044131405651569366, 0.04760687053203583, -0.12382865697145462, 0.2234412431716919, -0.06538145244121552, 0.2135145664215088, 0.13422927260398865, -0.10241985321044922, -0.03543715924024582, -0.043241795152425766, 0.04790996015071869, 0.07485504448413849, -0.02492416277527809, 0.013716693967580795, 0.13012421131134033, 0.06970584392547607, -0.049866899847984314, 0.014958370476961136, -0.007097967434674501, 0.07720524072647095, -0.019223084673285484, 0.004962774459272623, 0.11299826949834824, -0.030119460076093674, 0.030963022261857986, -0.02104731649160385, -0.1275217980146408, -0.1489521861076355, 0.1854449361562729, -0.05122513324022293, -0.09136862307786942, 0.0187295563519001, -0.10372543334960938, -0.03422532603144646, -0.056393690407276154, -0.049345843493938446, 0.1492805927991867, 0.04423488676548004, -0.038279034197330475, -0.12423024326562881, -0.08534788340330124, 0.09068957716226578, 0.23381932079792023, 0.009571067988872528, 0.018785925582051277, 0.08612079173326492, 0.08065477758646011, -0.05753106251358986, -0.01739194244146347, -0.052908480167388916, 0.2667752802371979, -0.10198130458593369, -0.1124027743935585, 0.012566565535962582, -0.19973759353160858, 0.08400176465511322, 0.027482327073812485, 0.024239979684352875, -0.08745013922452927, -0.0639038234949112, -0.06645362079143524, -0.020905818790197372, -0.018383866176009178, -0.04475361481308937, -0.0872744545340538, -0.03812788799405098, -0.09108763933181763, -0.048592351377010345, -0.01195723470300436, -0.055577151477336884, 0.13964441418647766, -0.010778204537928104, 0.09470175951719284, 0.1560143679380417, -0.04674205183982849, -0.04850897192955017, -0.1291901022195816, -0.001446668291464448, -0.20220869779586792, 0.11922742426395416, 0.046782806515693665, -0.05207829922437668, -0.16014663875102997, -0.07397203892469406, -0.11060570180416107, 0.06160462275147438, -0.07614903897047043, 0.003992082085460424, 0.16978707909584045, 0.05253937095403671, -0.0034126548562198877, 0.02319932170212269, -0.15711547434329987, -0.00670627923682332, 0.09859586507081985, 0.10961596667766571, 0.09588076174259186, -0.03515245392918587, -0.0004925067187286913, 0.14541831612586975, -0.17122198641300201, -0.033455681055784225, -0.10854862630367279, 0.12461161613464355, 0.12200411409139633, 0.024769045412540436, -0.014265431091189384, 0.02461603283882141, 0.08817166835069656, -0.08359388262033463, -0.17283852398395538, 0.038149766623973846, 0.034810278564691544, 0.0011498256353661418, -0.05917249619960785, 0.026262452825903893, 0.0853993371129036, -0.018249642103910446, -0.018194736912846565, -0.08941575884819031, -0.027774527668952942, -0.05217450484633446, -0.02112782560288906, 0.018671872094273567, 0.06169958785176277, -0.14506350457668304, -0.04814804717898369, -0.07059185951948166, 0.10437086224555969, 0.031178075820207596, 0.007924840785562992, -0.02212277613580227, 0.05622513219714165, -0.06064162030816078, 0.07601981610059738, -0.07761178910732269, -0.09472697973251343, -0.01541033573448658, -0.03823412209749222, 0.07148121297359467, 0.005373180843889713, -0.030942944809794426, -0.0108475461602211, -0.10134933888912201, 0.08337676525115967, 0.10363257676362991, 0.13552722334861755, 0.021582255139946938, 0.010620834305882454, 0.11394694447517395, 0.18860206007957458, -0.20994538068771362, -0.023945940658450127, 0.04330599308013916, -0.0745755061507225, -0.0958535447716713, -0.01297250110656023, 0.16660530865192413, 0.1274910718202591, 0.03774922713637352, -0.04725538194179535, -0.02064492739737034, 0.0802239403128624, -0.14217543601989746, -0.01866292767226696, 0.033326830714941025, -0.19779789447784424, -0.031150486320257187, 0.0031378057319670916, -2.72616800098706e-32, 0.08136283606290817, -0.03674113377928734, 0.11459521949291229, -0.014508127234876156, -0.04957026243209839, -0.04076163098216057, -0.045198336243629456, -0.0931018739938736, -0.030537713319063187, -0.017938194796442986, -0.05353670194745064, 0.09267213940620422, 0.09711892157793045, 0.004462582059204578, -0.009814632125198841, -0.05394502729177475, 0.09957431256771088, -0.023916946724057198, -0.02464037947356701, -0.0022409784141927958, -0.038555994629859924, 0.08120082318782806, -0.07501205056905746, 0.06196754053235054, -0.11785750836133957, -0.2378450632095337, 0.11234882473945618, -0.0967191606760025, 0.06743498146533966, -0.11063752323389053, -0.028029577806591988, 0.05126378685235977, -0.11738099902868271, 0.08065299689769745, 0.012913311831653118, -0.12086648494005203, -0.16916434466838837, 0.06201812997460365, 0.09994275122880936, 0.03183501586318016, -0.09001965075731277, 0.029050566256046295, 0.07033219188451767, -0.012557790614664555, -0.04425874352455139, -0.09106601774692535, 0.0925830826163292, 0.09570641070604324, -0.14931650459766388, 0.003929998259991407, 0.050573211163282394, 0.05529119446873665, 0.09792233258485794, 0.00859884824603796, 0.03230665251612663, -0.06976767629384995, 0.07586368173360825, -0.13964326679706573, -0.07944238185882568, -0.027726955711841583, -0.0473547987639904, 0.03486499562859535, -0.06932570040225983, -0.043891772627830505, 0.19336922466754913, -0.0007317246054299176, 0.07143723219633102, -0.060668185353279114, 0.06388642638921738, 0.06844698637723923, 0.19988785684108734, 0.09826229512691498, 0.044494565576314926, 0.02088751643896103, 0.08573233336210251, -0.14075711369514465, -0.15518184006214142, 0.16576537489891052, 0.20474685728549957, 0.019574832171201706, -0.025294460356235504, -0.031889308243989944, -0.04324505850672722, 0.19752371311187744, -0.04178224131464958, -0.1292393058538437, -0.07951577007770538, -0.011309295892715454, 0.012105339206755161, 0.04897420480847359, 0.026722028851509094, 0.09964922070503235, 0.09796300530433655, 0.07961788773536682, 0.057325903326272964, 0.10954432189464569, -0.06576774269342422, 0.0818725973367691, -0.02905501425266266, 0.05725100636482239, 0.08070603758096695, 0.049212727695703506, 0.24396634101867676, -0.04708828032016754, 0.1528659462928772, -0.036371394991874695, 0.005434122867882252, 0.018534978851675987, -0.1077238917350769, -0.04664880409836769, -0.09892642498016357, 0.0750877857208252, 0.05176354572176933, -0.05291970446705818, 0.18833141028881073, 0.10602167993783951, -0.016591141000390053, 0.00003759406536119059, 0.008639535866677761, 0.11056828498840332, -0.13193483650684357, 0.009735392406582832, 0.10250328481197357, -0.1153690442442894, -0.06858240067958832, 0.166697159409523, -0.05790342763066292, -0.14677074551582336, 0.11419125646352768, -0.09830770641565323, -0.018778182566165924, 0.043808452785015106, 7.946410391923564e-7, -0.1725916862487793, 0.23401425778865814, -0.015401431359350681, 0.18573783338069916, -0.03089478239417076, -0.12636153399944305, -0.14294840395450592, 0.07353588193655014, 0.029749738052487373, 0.1101403683423996, 0.18461130559444427, -0.003215160220861435, 0.02997543103992939, 0.1881503462791443, -0.12668950855731964, -0.06526771932840347, -0.06094925478100777, 0.049522653222084045, -0.12518447637557983, -0.007745041511952877, 0.1272704005241394, 0.13475890457630157, -0.13921359181404114, -0.09583353996276855, -0.027412928640842438, -0.07980533689260483, 0.04654273763298988, 0.06378217786550522, 0.02018170803785324, 0.048763457685709, -0.0472179651260376, 0.10622647404670715, -0.10945605486631393, 0.09820352494716644, -0.022089550271630287, -0.07127078622579575, -0.10086062550544739, -0.039731137454509735, 0.15315711498260498, 0.06900020688772202, 0.09249696880578995, 0.0033873047214001417, 0.007323889527469873, 0.07679903507232666, 0.16963660717010498, -0.029378755018115044, -0.1047600656747818, 0.012225508689880371, 0.02553100511431694, -0.030001426115632057, 0.021548178046941757, 0.08876722306013107, 0.08177784085273743, 0.09655816107988358, 0.06165500730276108, -0.08158563822507858, 0.02360655553638935, -0.13220375776290894, -0.03424562141299248, 0.12974266707897186, -0.06024043634533882, 0.04162570461630821, 0.10062168538570404, 0.019870903342962265, 0.09256487339735031, -0.09691930562257767, -0.05155877396464348, 2.5765832867229016e-34, 0.024930622428655624, -0.05172466114163399, -0.06442084908485413, -0.021103624254465103, 0.014487585052847862, -0.1639929562807083, -0.08930058777332306, -0.0657886266708374, -0.01782151311635971, -0.3147618770599365, -0.11801400035619736 ]
https://github.com/huggingface/datasets/issues/2649
adding progress bar / ETA for `load_dataset`
There are progress bars when downloading data and when preparing them as Arrow files. The "total silence" part mentioned in OP refer to checksums verifications which have had some changes in the latest release 2.10: - they're disabled by default (other less costly verifications are still done like checking the generated dataset size) - they're using a tqdm bar as well
Please consider: ``` Downloading and preparing dataset oscar/unshuffled_deduplicated_en (download: 462.40 GiB, generated: 1.18 TiB, post-processed: Unknown size, total: 1.63 TiB) to cache/oscar/unshuffled_deduplicated_en/1.0.0/84838bd49d2295f62008383b05620571535451d84545037bb94d6f3501651df2... HF google storage unreachable. Downloading and preparing it from source ``` and no indication whatsoever of whether things work well or when it'll be done. It's important to have an estimated completion time for when doing slurm jobs since some instances have a cap on run-time. I think for this particular job it sat for 30min in total silence and then after 30min it started generating: ``` 897850 examples [07:24, 10286.71 examples/s] ``` which is already great! Request: 1. ETA - knowing how many hours to allocate for a slurm job 2. progress bar - helps to know things are working and aren't stuck and where we are at. Thank you! @lhoestq
61
adding progress bar / ETA for `load_dataset` Please consider: ``` Downloading and preparing dataset oscar/unshuffled_deduplicated_en (download: 462.40 GiB, generated: 1.18 TiB, post-processed: Unknown size, total: 1.63 TiB) to cache/oscar/unshuffled_deduplicated_en/1.0.0/84838bd49d2295f62008383b05620571535451d84545037bb94d6f3501651df2... HF google storage unreachable. Downloading and preparing it from source ``` and no indication whatsoever of whether things work well or when it'll be done. It's important to have an estimated completion time for when doing slurm jobs since some instances have a cap on run-time. I think for this particular job it sat for 30min in total silence and then after 30min it started generating: ``` 897850 examples [07:24, 10286.71 examples/s] ``` which is already great! Request: 1. ETA - knowing how many hours to allocate for a slurm job 2. progress bar - helps to know things are working and aren't stuck and where we are at. Thank you! @lhoestq There are progress bars when downloading data and when preparing them as Arrow files. The "total silence" part mentioned in OP refer to checksums verifications which have had some changes in the latest release 2.10: - they're disabled by default (other less costly verifications are still done like checking the generated dataset size) - they're using a tqdm bar as well
[ -0.18340925872325897, 0.2760058343410492, -0.051445383578538895, -0.08576454967260361, 0.13524101674556732, -0.057379767298698425, 0.12778742611408234, -0.033903006464242935, -0.12130314856767654, 0.33258864283561707, 0.0917619913816452, 0.16606548428535461, -0.09177842736244202, 0.1339205503463745, 0.07147074490785599, -0.13443726301193237, -0.10155121237039566, 0.12375979125499725, 0.07980921864509583, 0.08860545605421066, -0.14150868356227875, 0.12395966798067093, 0.08530355244874954, -0.020428037270903587, 0.1115533709526062, -0.06537799537181854, -0.001788229332305491, -0.02578398957848549, 0.09637029469013214, -0.2311331182718277, -0.11508706212043762, 0.12987211346626282, 0.019839003682136536, 0.00539121450856328, 0.000005796000095870113, -0.11709389090538025, 0.21721802651882172, 0.0497441329061985, -0.2751834988594055, 0.03232787549495697, 0.12708210945129395, -0.15447556972503662, 0.026668131351470947, -0.08770836144685745, 0.17910125851631165, 0.1220862865447998, -0.055682744830846786, -0.16614755988121033, -0.07893577218055725, -0.06559429317712784, 0.058522894978523254, 0.00009268637222703546, -0.08754783123731613, -0.1396259367465973, 0.2137063890695572, -0.034997355192899704, -0.031130047515034676, 0.08213488757610321, 0.041779760271310806, -0.037482887506484985, -0.09500157088041306, 0.0534064806997776, 0.11671262234449387, -0.02593119814991951, -0.005073802080005407, 0.03029935620725155, -0.12234283238649368, -0.08471733331680298, 0.04114628583192825, 0.10302764922380447, 0.04962283745408058, -0.11483389884233475, -0.1577846109867096, -0.030686141923069954, 0.1260775774717331, -0.2316644787788391, -0.1430400162935257, -0.0051863426342606544, -0.10161378979682922, 0.0024196021258831024, -0.07257778942584991, 0.04377533495426178, -0.05628389120101929, 0.016230475157499313, -0.029216021299362183, -0.028807250782847404, -0.023670345544815063, 0.038899943232536316, -0.00485704280436039, 0.0425545796751976, 0.12687760591506958, 0.04915288835763931, -0.05346493050456047, 0.15703946352005005, 0.016521932557225227, 0.08598499745130539, 0.07671519368886948, -0.02258601039648056, 0.052076369524002075, 0.06253131479024887, -0.04183235391974449, 0.08565454930067062, -0.0706094279885292, 0.1487998068332672, 0.01067047007381916, 0.042634330689907074, 0.04963149130344391, -0.26557961106300354, -0.013018746860325336, 0.019997885450720787, 0.1360040307044983, 0.0990995466709137, -0.016280554234981537, -0.2633620798587799, 0.2791362404823303, 0.1310492753982544, -0.11603191494941711, 0.09840481728315353, 0.06386184692382812, 0.036257773637771606, 0.27438437938690186, 0.057453397661447525, -0.14452575147151947, 0.0658249706029892, -0.058462515473365784, -0.0932340994477272, -0.06795085221529007, 0.04988031089305878, -0.029114214703440666, -0.03224064037203789, -0.15321549773216248, -0.1615729033946991, 0.016793109476566315, 0.12415710836648941, 0.07181186228990555, 0.1637071967124939, 0.057922251522541046, -0.03594313561916351, 0.02542746812105179, -0.13120609521865845, 0.0399746336042881, 0.010840040631592274, -0.2039315551519394, 0.03762815147638321, 0.06393146514892578, -0.007081491407006979, 0.06303933262825012, 0.11102735251188278, -0.12386232614517212, 0.11758198589086533, 0.22940514981746674, 0.042883504182100296, -0.2771843373775482, 0.14293238520622253, -0.22940117120742798, -0.010570073500275612, -0.18445704877376556, -0.026645652949810028, -0.1577301174402237, -0.03558085486292839, 0.07992108166217804, -0.02617967687547207, -0.06445029377937317, 0.07788799703121185, 0.13699837028980255, 0.15252089500427246, -0.13869595527648926, -0.021499590948224068, -0.03230743855237961, -0.0561969093978405, -0.009120671078562737, -0.38177481293678284, 0.16818693280220032, -0.012820275500416756, 0.07656335830688477, 0.009413029067218304, 0.035397641360759735, -0.0312727615237236, -0.08407609164714813, 0.08089210838079453, 0.06100809574127197, -0.05850899592041969, 0.08709144592285156, 0.20864862203598022, 0.05797480046749115, 0.13403312861919403, -0.0696585550904274, 0.21241408586502075, -0.09489800781011581, -0.09819401800632477, -0.018215442076325417, 0.004555760882794857, -0.11507688462734222, 0.2690703868865967, -0.072327621281147, 0.000998870120383799, 0.0015393170760944486, -0.1852136105298996, 0.15963105857372284, 0.01406038086861372, 0.13463753461837769, -0.05074968561530113, 0.20205914974212646, 0.03972000256180763, -0.06831230968236923, 0.0007041516364552081, 0.020293187350034714, 0.043818868696689606, 0.12003078311681747, 0.040019817650318146, -0.05327949672937393, -0.055769216269254684, -0.17122438549995422, -0.00429064966738224, -0.12282279133796692, 0.026591995730996132, -0.03005971945822239, -0.05507376790046692, 0.01533298846334219, 0.1407272070646286, 0.09989083558320999, 0.1293577253818512, -0.10773378610610962, 0.04307905212044716, 0.14872734248638153, 0.13313136994838715, 0.21579307317733765, -0.2065557837486267, 0.11447244882583618, 0.063077911734581, -0.1214822381734848, 0.0026516341604292393, 0.08019886165857315, 0.1766846626996994, -0.15130600333213806, 0.21574661135673523, 0.208551287651062, -0.0717160776257515, 0.06096228212118149, 0.17206402122974396, -0.09599246084690094, -0.08081536740064621, -0.15086548030376434, -0.04926300048828125, -0.008143044076859951, -0.06975671648979187, -0.11313445121049881, 0.11935102939605713, 0.04330620542168617, -0.025726448744535446, 0.11480474472045898, 0.09122591465711594, 0.006835198029875755, 0.042152587324380875, 0.10936281085014343, -0.01505355816334486, 0.12999460101127625, -0.1698075532913208, -0.060762401670217514, 0.03717026114463806, 0.19917643070220947, 0.003874015063047409, -0.1598239690065384, 0.1442875862121582, 0.06110970303416252, -0.037597376853227615, 0.17052914202213287, 0.04079755023121834, 0.02932441607117653, 0.10360593348741531, 0.059886716306209564, 0.03232671320438385, -0.13656772673130035, -0.09263090044260025, -0.02780943363904953, -0.15853160619735718, 0.14379732310771942, 0.14243686199188232, -0.01509242132306099, -0.12556295096874237, -0.031107522547245026, -0.06709577143192291, 0.02194013074040413, 0.030459173023700714, 0.1748790442943573, -0.13671955466270447, 0.08982233703136444, -0.06965705752372742, -0.06726593524217606, -0.02392793633043766, 0.04881374537944794, -0.18355578184127808, 0.08602604269981384, 0.014194099232554436, 0.1375282257795334, 0.08533432334661484, -0.005384767893701792, -0.09540864825248718, 0.05919557809829712, 0.03886590525507927, -0.19798536598682404, 0.012310760095715523, 0.12537041306495667, 0.033852241933345795, -0.09448818117380142, -0.07240545004606247, 0.05740267038345337, -0.08442534506320953, -0.08049324154853821, -0.1123431921005249, 0.038508132100105286, -0.07790221273899078, 0.0761355459690094, -0.12580515444278717, 0.006955084390938282, 0.016884665936231613, -0.04438598453998566, -0.13465744256973267, 0.022365428507328033, 0.01009670551866293, -0.007097284775227308, -0.04015341401100159, 0.03227122873067856, 0.10389877110719681, -0.08821910619735718, 0.14381328225135803, -0.25699958205223083, -0.22138823568820953, 0.15874367952346802, -0.024703916162252426, -0.023559628054499626, -0.13454850018024445, 0.04794236645102501, 0.02154562622308731, 0.10534721612930298, -0.18421690165996552, -0.14840595424175262, -0.16011227667331696, 0.2004919946193695, -0.2222607582807541, 0.13219843804836273, 0.11674869060516357, -0.020812446251511574, -0.03312195837497711, -0.12806901335716248, -0.10375551879405975, -0.04144249111413956, -0.08755048364400864, -0.02626609615981579, -0.08573869615793228, -0.07256923615932465, 0.06579726934432983, -0.025476593524217606, -0.08080632239580154, -0.03559131175279617, -0.0946943536400795, -0.07602638751268387, 0.23796141147613525, -0.018114756792783737, -0.1445804089307785, 0.12590089440345764, 0.08584080636501312, 0.015086044557392597, -0.020312096923589706, -0.07967494428157806, 0.028316710144281387, 0.013830233365297318, 0.005869611166417599, 0.0027393430937081575, -0.007793156895786524, -0.08235514163970947, -0.08265343308448792, 0.06247327849268913, 0.19777913391590118, -0.05284690111875534, -0.010252592153847218, 0.09390473365783691, 0.008914113976061344, -0.0904897078871727, 0.059892941266298294, -0.0700371190905571, -0.08137457072734833, -0.00465033296495676, -0.04314551502466202, 0.02447691559791565, -0.1167169138789177, -0.050408441573381424, -0.04896823316812515, 0.11440741270780563, 0.1956329047679901, 0.0028046879451721907, 0.04033612087368965, 0.0998540073633194, 0.05465507134795189, -0.04673765227198601, -0.054397013038396835, -0.13519339263439178, -0.10448237508535385, 0.13447046279907227, 0.08541298657655716, 0.11585558950901031, 0.10751697421073914, -0.1099332720041275, -0.039972078055143356, -0.00108374934643507, 0.04330342262983322, 0.16170360147953033, -0.08103970438241959, 0.003071459475904703, -0.10403098911046982, 0.08435417711734772, 0.013308624736964703, -0.06637072563171387, 0.001602786942385137, 0.1250893622636795, -0.06182720139622688, -0.1643381118774414, -0.17001624405384064, -0.04149249196052551, 0.089603491127491, -0.11519475281238556, 0.11756755411624908, 0.022351304069161415, 0.14506541192531586, 0.04522096365690231, -0.15508469939231873, -0.024373315274715424, -0.01105800736695528, -0.01518598385155201, -0.1620776355266571, -0.0032722954638302326, 0.28429025411605835, -0.0132158687338233, -0.04209063947200775, 0.03887301683425903, -0.06431867927312851, 0.04032466560602188, -0.13324934244155884, -0.0730976089835167, 0.03538370132446289, -0.2629873752593994, 0.11481588333845139, 0.16816206276416779, 0.05822388082742691, 0.0812705010175705, -0.05004560947418213, -0.10229375213384628, -0.1612594723701477, -0.041012417525053024, 0.017865559086203575, -0.12270022183656693, -0.03198679909110069, -0.22577281296253204, -0.05037501081824303, 0.00649085221812129, -0.12163613736629486, 0.24478662014007568, -0.05943504348397255, 0.018369341269135475, -0.09396868199110031, -0.1197323203086853, -0.07110116630792618, -0.25060030817985535, -0.007730425801128149, -0.10601752251386642, 0.14307117462158203, 0.11718762665987015, -0.12434551864862442, -0.11072909832000732, -0.10248356312513351, -0.062254954129457474, 0.0757918506860733, -0.04672371968626976, 0.09612710773944855, 0.1939912736415863, -0.0819382444024086, 0.0855865553021431, -0.0917072743177414, -0.10518231242895126, -0.04774452745914459, 0.0891927182674408, -0.06471174955368042, 0.06261441111564636, -0.15932238101959229, -0.08851940929889679, 0.0724230408668518, -0.04785243049263954, 0.0505516454577446, -0.0933496505022049, -0.06613963097333908, 0.1837298423051834, -0.24726128578186035, 0.00658956915140152, 0.12204350531101227, -0.012571260333061218, -0.1790134310722351, -0.14977248013019562, -0.11939569562673569, -0.14282871782779694, 0.08720947802066803, -0.08796911686658859, 0.04812150448560715, 0.18825878202915192, -0.13639411330223083, 0.056932833045721054, -0.13422034680843353, 0.23530222475528717, -0.0688004121184349, -0.06799424439668655, 0.18042485415935516, 0.18911434710025787, -0.050693951547145844, -0.17905369400978088, 0.0737713873386383, -0.07069040834903717, -0.05631234496831894, -0.08541013300418854, 0.024284696206450462, 0.12685973942279816, 0.029687469825148582, -0.07486643642187119, -0.08741188049316406, 0.038251668214797974, -0.08884132653474808, 0.025309190154075623, -0.02331477962434292, 0.007349845953285694, -0.10517849028110504, 0.038213059306144714, -0.017328256741166115, -0.0559123232960701, 0.0732504203915596, 0.07171574234962463, -0.0980461910367012, -0.03392937406897545, -0.02973843552172184, -0.007774498779326677, -0.08626467734575272, 0.06598051637411118, -0.012319406494498253, 0.11754142493009567, -0.20383378863334656, -0.04450253024697304, 0.06307584792375565, 0.028757402673363686, -0.03595186024904251, -0.026573291048407555, -0.06131832301616669, -0.15901654958724976, -0.06271476298570633, 0.08051639795303345, -0.05202954262495041, 0.07273677736520767, -0.04767253249883652, -0.11272022873163223, -2.7847846145379885e-32, -0.08552966266870499, -0.18222926557064056, 0.08759932219982147, -0.007232204545289278, -0.07861268520355225, 0.035383302718400955, 0.01996493525803089, -0.059736840426921844, -0.04120601341128349, -0.008072278462350368, 0.029193734750151634, 0.004023223649710417, 0.016465289518237114, -0.07783903181552887, 0.1601647287607193, 0.011545717716217041, 0.1415315866470337, 0.025369226932525635, 0.0003319831157568842, -0.02596750482916832, -0.01638565957546234, -0.12882618606090546, 0.12355519086122513, 0.018499527126550674, 0.10574574023485184, 0.014592568390071392, -0.16095969080924988, -0.14220067858695984, 0.051912881433963776, 0.02670297585427761, -0.050780318677425385, 0.16985465586185455, -0.011159617453813553, 0.05381981283426285, -0.08241292089223862, -0.026352034881711006, -0.014457124285399914, -0.005327098071575165, 0.03745868429541588, 0.006269816774874926, 0.047392603009939194, 0.0991307944059372, -0.12437416613101959, -0.020640403032302856, 0.0066350167617201805, 0.15560758113861084, -0.03734980896115303, 0.026346787810325623, 0.19610027968883514, 0.0007013259455561638, 0.18860840797424316, 0.046733308583498, -0.04313412681221962, -0.07867319881916046, 0.18253862857818604, 0.1357138752937317, 0.13525715470314026, -0.20903098583221436, -0.058423370122909546, -0.0017831799341365695, 0.041413553059101105, 0.10916192084550858, 0.0877012386918068, -0.014983040280640125, 0.0707060843706131, 0.007790842093527317, 0.08211015909910202, 0.08756272494792938, 0.1845369189977646, 0.01905210316181183, 0.15085169672966003, -0.08225846290588379, 0.1135014146566391, -0.2791237533092499, -0.17233681678771973, 0.041495099663734436, -0.142841175198555, -0.010611318051815033, 0.1266440749168396, -0.010580800473690033, 0.01056747417896986, -0.08016207069158554, 0.02856161631643772, 0.12919498980045319, 0.007906165905296803, 0.023821022361516953, 0.005576269701123238, -0.0010758271673694253, -0.09200818836688995, 0.08571340888738632, 0.03058934397995472, 0.11350032687187195, 0.014836993999779224, 0.12400665134191513, 0.02237112820148468, 0.027016766369342804, 0.03516086935997009, 0.18746903538703918, 0.04632549360394478, -0.13933104276657104, 0.034087058156728745, -0.01754797250032425, 0.13607287406921387, 0.09752100706100464, 0.10036800056695938, 0.09523933380842209, 0.08272580802440643, 0.08937708288431168, -0.06900900602340698, -0.06135719269514084, -0.06993117928504944, 0.06500435620546341, 0.10563481599092484, -0.05571439117193222, 0.15613576769828796, 0.012751400470733643, -0.06727798283100128, 0.07296481728553772, 0.02180599421262741, -0.04176153987646103, 0.03450976312160492, 0.14923088252544403, 0.04684823751449585, 0.06234030798077583, -0.024737536907196045, 0.055121343582868576, -0.06440792977809906, -0.12217344343662262, -0.028776276856660843, -0.053439922630786896, -0.0933617576956749, -0.04866207391023636, 7.45704028304317e-7, -0.12096717953681946, 0.0034875564742833376, 0.06088833138346672, 0.27009910345077515, -0.07156530022621155, -0.19354645907878876, -0.07748395204544067, 0.03619912266731262, 0.02483850158751011, 0.03193499520421028, 0.06488547474145889, 0.025230081751942635, -0.08442027866840363, 0.035600028932094574, 0.021323200315237045, -0.13256128132343292, -0.0975189357995987, 0.11075228452682495, -0.19041983783245087, 0.0024152786936610937, 0.12913908064365387, 0.06861990690231323, -0.02615858055651188, 0.09247693419456482, -0.01798623986542225, -0.03427231311798096, -0.06428255140781403, -0.14112795889377594, -0.07124605774879456, 0.019890619441866875, 0.07199304550886154, 0.15751437842845917, -0.2605675458908081, 0.1770911067724228, -0.045686621218919754, -0.06861615180969238, -0.039144713431596756, -0.05672261863946915, 0.13514390587806702, 0.005337557755410671, 0.10912290960550308, 0.16292265057563782, 0.006805757526308298, 0.1944165825843811, 0.09322930872440338, 0.2274949997663498, -0.18500377237796783, 0.04091572389006615, -0.0202888585627079, -0.022418800741434097, -0.004516915418207645, -0.04003395140171051, 0.026830028742551804, -0.11678633093833923, 0.031101245433092117, 0.12358453869819641, -0.12189671397209167, 0.05324352905154228, -0.08029339462518692, 0.07758692651987076, -0.07703585922718048, 0.03769878298044205, -0.11136024445295334, -0.036969300359487534, -0.05650976672768593, -0.14526666700839996, 0.006870252545922995, 1.9191359543814677e-34, 0.20641875267028809, -0.020550500601530075, 0.14774246513843536, 0.1082727387547493, 0.11171331256628036, 0.032161831855773926, -0.12325405329465866, -0.03882848843932152, 0.067629873752594, -0.23737972974777222, -0.26212185621261597 ]
https://github.com/huggingface/datasets/issues/2646
downloading of yahoo_answers_topics dataset failed
Hi ! I just tested and it worked fine today for me. I think this is because the dataset is stored on Google Drive which has a quota limit for the number of downloads per day, see this similar issue https://github.com/huggingface/datasets/issues/996 Feel free to try again today, now that the quota was reset
## Describe the bug I get an error datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files when I try to download the yahoo_answers_topics dataset ## Steps to reproduce the bug self.dataset = load_dataset( 'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]') # Sample code to reproduce the bug self.dataset = load_dataset( 'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]') ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files
53
downloading of yahoo_answers_topics dataset failed ## Describe the bug I get an error datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files when I try to download the yahoo_answers_topics dataset ## Steps to reproduce the bug self.dataset = load_dataset( 'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]') # Sample code to reproduce the bug self.dataset = load_dataset( 'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]') ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files Hi ! I just tested and it worked fine today for me. I think this is because the dataset is stored on Google Drive which has a quota limit for the number of downloads per day, see this similar issue https://github.com/huggingface/datasets/issues/996 Feel free to try again today, now that the quota was reset
[ -0.01603715494275093, 0.25380760431289673, -0.015370422042906284, 0.1427285522222519, 0.16197001934051514, 0.03901723399758339, 0.012061226181685925, 0.025946220383048058, 0.08322975039482117, 0.24453748762607574, -0.12475321441888809, -0.11557046324014664, -0.08709176629781723, 0.0078982999548316, -0.0710817277431488, 0.06711667031049728, 0.0673627257347107, -0.004860068671405315, -0.040834326297044754, -0.13116006553173065, 0.03412092849612236, 0.22216062247753143, 0.14823704957962036, -0.2157985270023346, -0.022965142503380775, 0.024592606350779533, -0.009351990185678005, -0.06227999925613403, -0.07591667771339417, -0.10860159993171692, 0.19629468023777008, 0.11932220309972763, -0.0853559598326683, 0.021575141698122025, 0.0000046047043724684045, 0.026360981166362762, 0.048398371785879135, 0.001701626111753285, -0.0348101481795311, -0.06101266294717789, 0.15720383822917938, -0.04017510637640953, -0.0713275894522667, -0.06769754737615585, -0.04861210286617279, 0.252655953168869, -0.19009999930858612, 0.02546430006623268, 0.07647151499986649, 0.040281396359205246, 0.03665701299905777, 0.10322260111570358, 0.20855224132537842, -0.01630307361483574, 0.1248173862695694, -0.0056367795914411545, -0.06250802427530289, 0.16069920361042023, -0.16176454722881317, -0.1619430035352707, 0.04092395305633545, -0.013857478275895119, 0.12027021497488022, 0.17811144888401031, -0.10599539428949356, 0.028432471677660942, -0.11069739609956741, -0.1841934621334076, 0.14845630526542664, 0.22917883098125458, 0.3034314513206482, 0.10130753368139267, -0.1519404500722885, 0.04482797533273697, 0.008355165831744671, -0.042198557406663895, -0.002423975383862853, 0.1173165962100029, -0.14678746461868286, 0.1386200487613678, -0.18837226927280426, -0.06328766793012619, -0.12529347836971283, 0.13550102710723877, 0.019423192366957664, -0.004765225108712912, -0.06486815214157104, -0.021929452195763588, -0.007197928614914417, -0.0507248230278492, 0.07146662473678589, 0.14017777144908905, 0.010989137925207615, -0.042720600962638855, 0.07344961166381836, 0.04016472026705742, 0.10371839255094528, -0.00225352612324059, 0.17280186712741852, 0.10940901935100555, -0.04023141413927078, -0.011243244633078575, -0.10655619949102402, -0.055207472294569016, 0.10236557573080063, 0.056988902390003204, 0.026031211018562317, -0.10453184694051743, 0.12875434756278992, 0.1644764393568039, 0.032748378813266754, 0.01060289517045021, -0.0974016860127449, 0.07885127514600754, 0.21357786655426025, 0.06523443013429642, 0.12043981999158859, -0.06346384435892105, -0.10810308158397675, 0.014369496144354343, 0.07283372431993484, 0.13696959614753723, -0.23633013665676117, 0.14447064697742462, -0.16081957519054413, -0.10521573573350906, -0.11569996923208237, 0.10540907829999924, -0.06171035394072533, -0.04209606349468231, -0.0610034205019474, -0.08651605993509293, -0.04296303540468216, -0.07552080601453781, 0.2991713881492615, 0.033422861248254776, 0.007903600111603737, -0.09347467869520187, 0.11046969890594482, -0.12530699372291565, 0.0009203800582326949, -0.023698369041085243, -0.11533617228269577, 0.06846784800291061, 0.13331176340579987, -0.019758712500333786, -0.0018797433003783226, 0.10539456456899643, 0.08102863281965256, 0.0360887348651886, -0.07396117597818375, 0.05664881318807602, 0.01359739899635315, 0.027087818831205368, -0.14297467470169067, -0.04755416885018349, 0.07520012557506561, 0.08340708911418915, -0.09437521547079086, -0.06377596408128738, 0.16553664207458496, 0.04743403568863869, 0.08624502271413803, -0.13963277637958527, 0.43299734592437744, 0.13300462067127228, -0.003431143704801798, 0.06625867635011673, -0.0011131198843941092, -0.03366280347108841, 0.06978778541088104, 0.04358184337615967, -0.07340536266565323, -0.14078408479690552, -0.157363161444664, 0.04646327346563339, 0.015906885266304016, 0.032046325504779816, -0.3074777126312256, 0.06505213677883148, 0.11817491799592972, -0.07975401729345322, 0.011605694890022278, -0.04234154522418976, 0.03509269654750824, -0.0216322373598814, -0.007390857208520174, 0.1618363857269287, -0.014928500168025494, 0.015342952683568, -0.027990955859422684, -0.012395638041198254, -0.0594666562974453, 0.10836555808782578, 0.06536790728569031, 0.04334646835923195, 0.062089305371046066, -0.06189257651567459, 0.12491761147975922, -0.03412589058279991, 0.10522601753473282, -0.06565297394990921, 0.053082022815942764, 0.06862334161996841, 0.0634857788681984, -0.05250561609864235, -0.13013575971126556, 0.15149465203285217, 0.06790461391210556, -0.16654567420482635, -0.1845017820596695, -0.013532724231481552, -0.1796945184469223, 0.013602662831544876, -0.18236880004405975, -0.03287747502326965, -0.03151072561740875, -0.11066530644893646, 0.1342363953590393, 0.2372826635837555, -0.003936186898499727, 0.19778649508953094, 0.13279899954795837, 0.025828393176198006, 0.0782993733882904, 0.02119538187980652, 0.12482918798923492, -0.11373284459114075, 0.2540382742881775, -0.007457674480974674, -0.20366185903549194, -0.10945110023021698, 0.05068649724125862, 0.1625957489013672, -0.08568491786718369, 0.18117134273052216, 0.03135741129517555, -0.10550066083669662, 0.1575554609298706, -0.03281111270189285, 0.14276395738124847, 0.19364872574806213, -0.018184317275881767, 0.18370766937732697, -0.03962507098913193, -0.11685679852962494, -0.2217523753643036, 0.0009800021070986986, -0.039945293217897415, -0.02202456444501877, 0.2936314344406128, 0.04692275822162628, -0.12574972212314606, 0.15474432706832886, 0.1698940396308899, 0.11243460327386856, 0.08559603989124298, 0.16656121611595154, -0.15821053087711334, 0.06153038144111633, 0.25926148891448975, -0.058036722242832184, 0.0984354242682457, 0.11427097022533417, 0.23669986426830292, -0.23476067185401917, 0.0358445942401886, 0.04683181270956993, -0.09641417860984802, -0.07016608864068985, 0.10557036846876144, -0.021622098982334137, -0.16624265909194946, -0.14747051894664764, 0.001643387135118246, 0.01703760400414467, -0.041402243077754974, 0.15223100781440735, 0.17932850122451782, 0.15458278357982635, -0.16038022935390472, 0.1340082287788391, 0.042809829115867615, -0.09949955344200134, 0.024671899154782295, -0.02573453076183796, -0.03036787547171116, 0.04403229057788849, -0.07493893057107925, -0.1282859891653061, -0.008384128101170063, -0.0326760932803154, 0.06518994271755219, -0.09937369078397751, -0.059778843075037, -0.2922893464565277, -0.06097076088190079, -0.06888242810964584, 0.134963259100914, 0.06409548968076706, 0.0435054749250412, 0.0772334635257721, -0.0610402375459671, -0.05466283857822418, 0.12464030086994171, -0.10995206981897354, 0.25147494673728943, -0.16138119995594025, 0.09042384475469589, -0.16646604239940643, 0.1291072815656662, -0.008086892776191235, 0.2595498263835907, 0.15166012942790985, -0.058877285569906235, 0.05266518145799637, -0.09066140651702881, 0.17137397825717926, -0.03535729646682739, 0.010769546963274479, 0.018638689070940018, -0.0027214973233640194, -0.04936439171433449, 0.21148422360420227, -0.022278662770986557, -0.1467653214931488, -0.2488107532262802, -0.09032260626554489, 0.0289801936596632, -0.07096020132303238, 0.10484154522418976, 0.048808660358190536, -0.04400024190545082, -0.17818745970726013, 0.0931517705321312, -0.045777369290590286, -0.12753482162952423, -0.24269434809684753, 0.32492595911026, -0.07100624591112137, -0.08428235352039337, 0.14794668555259705, -0.05507794767618179, -0.02773403190076351, 0.18955647945404053, -0.1076364815235138, -0.03446933999657631, -0.019836660474538803, -0.038195278495550156, -0.11704933643341064, 0.12644293904304504, 0.09942042082548141, -0.17802247405052185, -0.13259878754615784, 0.01191403716802597, 0.032116521149873734, 0.0007054663728922606, 0.18620285391807556, -0.11785311251878738, -0.06977720558643341, -0.017782270908355713, 0.07540083676576614, 0.1379128396511078, 0.055787693709135056, -0.016974924132227898, 0.1716233491897583, 0.17306458950042725, 0.07320387661457062, 0.09009791910648346, -0.0762924775481224, 0.00878673791885376, -0.2052641212940216, -0.0942029282450676, -0.06832630187273026, 0.017579521983861923, 0.034214649349451065, -0.05057528614997864, -0.11859928071498871, -0.04853310436010361, -0.07051204890012741, 0.06352914869785309, -0.19380231201648712, -0.06913898140192032, 0.10274845361709595, 0.19376680254936218, -0.04420781135559082, -0.13346439599990845, -0.0027999612502753735, -0.00782132986932993, 0.05075116828083992, -0.013518691062927246, -0.050945866852998734, -0.07023174315690994, -0.12198010832071304, 0.06244581192731857, -0.10934315621852875, 0.21997898817062378, 0.08527927845716476, 0.059086523950099945, 0.01465656515210867, -0.0010664978763088584, 0.0967087522149086, 0.01188329141587019, 0.16943645477294922, -0.0811387225985527, -0.07987860590219498, 0.1020893007516861, -0.13434119522571564, 0.054217882454395294, -0.011683624237775803, -0.07561051845550537, -0.029758378863334656, -0.21588966250419617, 0.11023134738206863, 0.02588684856891632, 0.014170870184898376, 0.043988294899463654, 0.05628896877169609, 0.043675925582647324, -0.2780166268348694, -0.1948915272951126, -0.14080579578876495, 0.04772069305181503, 0.12192580103874207, -0.08273940533399582, -0.1711217612028122, 0.11579335480928421, -0.05216670036315918, -0.003870244137942791, -0.2191312313079834, 0.05230474844574928, 0.1613299399614334, 0.08981742709875107, 0.01749095693230629, -0.039477065205574036, -0.049266353249549866, 0.42129480838775635, -0.126389741897583, -0.0719202384352684, 0.004588667768985033, -0.16335399448871613, -0.11222859472036362, -0.0005384975811466575, -0.11440002918243408, -0.019921431317925453, -0.008424819447100163, -0.003865618724375963, 0.01031119842082262, 0.11081933975219727, -0.11361793428659439, -0.07088161259889603, -0.22191715240478516, -0.03443817421793938, -0.05915478989481926, 0.04603895917534828, -0.006057036109268665, 0.24889083206653595, -0.07575318217277527, 0.07040245085954666, -0.061178211122751236, -0.05421410873532295, -0.13098841905593872, -0.07182709872722626, 0.009919301606714725, -0.029040977358818054, 0.017166640609502792, 0.21274545788764954, -0.32084330916404724, -0.02373824454843998, 0.003930241335183382, 0.010323419235646725, 0.06651173532009125, -0.04239625111222267, -0.16326040029525757, 0.17003728449344635, 0.018382621929049492, 0.06657680124044418, -0.07738937437534332, 0.08067870140075684, -0.08268918842077255, 0.26555588841438293, -0.13666154444217682, 0.07025660574436188, -0.16712476313114166, -0.1687193065881729, 0.1113487035036087, 0.12948058545589447, -0.06292363256216049, -0.2175002098083496, -0.10048741102218628, 0.11191961914300919, -0.08351550996303558, -0.035170357674360275, 0.040672559291124344, 0.1560516655445099, -0.12695038318634033, -0.06002703681588173, -0.04222232848405838, 0.05603894963860512, 0.19909314811229706, 0.025759559124708176, -0.10513070970773697, 0.10749790817499161, -0.16820184886455536, -0.1847316026687622, -0.16514071822166443, 0.114322230219841, -0.17838598787784576, 0.00015408790204674006, -0.12391041219234467, 0.05177729204297066, -0.10045136511325836, -0.18943829834461212, -0.0406133271753788, 0.0021477846894413233, -0.10684272646903992, -0.08219219744205475, 0.07912619411945343, -0.17097100615501404, -0.04039815440773964, 0.029902638867497444, -0.06730245053768158, 0.11203289031982422, 0.044567979872226715, 0.040685322135686874, 0.2062932848930359, 0.047529187053442, -0.050804950296878815, 0.27216997742652893, -0.13770003616809845, -0.00017245269555132836, 0.13037461042404175, 0.04965156316757202, -0.08935221284627914, -0.016913434490561485, 0.06559297442436218, 0.012559207156300545, -0.06682359427213669, 0.028048476204276085, -0.07049906998872757, 0.17997197806835175, -0.15211546421051025, -0.10244064778089523, 0.07000952959060669, 0.1691058725118637, 0.1454143226146698, -0.05685678869485855, 0.0428234227001667, -0.2204524725675583, -0.17998847365379333, 0.14872127771377563, 0.09304649382829666, -0.0831141546368599, 0.05425451323390007, -0.02281368523836136, -2.327653669412814e-32, -0.07089457660913467, 0.046696264296770096, -0.06869929283857346, -0.033193159848451614, -0.21110767126083374, 0.11623597890138626, -0.010376250371336937, -0.08202429115772247, -0.0960933119058609, -0.07415862381458282, -0.02796429954469204, 0.050095491111278534, 0.06113276258111, 0.1534726768732071, -0.05255277454853058, -0.02753523923456669, -0.018613245338201523, -0.11297482997179031, -0.0002249595709145069, 0.08528931438922882, 0.1258300244808197, -0.004185193218290806, -0.03551722690463066, 0.031486544758081436, -0.0425570122897625, -0.027915751561522484, -0.1193477138876915, -0.024953441694378853, 0.1010444313287735, 0.01252299826592207, -0.08817141503095627, 0.3467605412006378, 0.005701580084860325, -0.15862950682640076, -0.18829432129859924, -0.13732849061489105, -0.1707192063331604, -0.02134411782026291, -0.21961507201194763, 0.0604296512901783, 0.04796219989657402, -0.025489341467618942, 0.012147672474384308, -0.08340861648321152, -0.029829850420355797, 0.07262327522039413, 0.07287153601646423, 0.021092843264341354, -0.05179408937692642, -0.09765751659870148, -0.16237781941890717, 0.04869638755917549, 0.0426790788769722, 0.1176440417766571, 0.1228143647313118, 0.08424028009176254, 0.005796364508569241, 0.24893943965435028, 0.09760606288909912, -0.07427573949098587, 0.15383097529411316, -0.07460363954305649, 0.16734905540943146, 0.02239438146352768, -0.036572474986314774, -0.08400387316942215, 0.2370031476020813, -0.03695369511842728, -0.03917350620031357, -0.08221282809972763, 0.022316593676805496, 0.19412103295326233, -0.05361698567867279, 0.0460498183965683, -0.15178456902503967, -0.08642735332250595, 0.036141350865364075, -0.17838050425052643, 0.002017756924033165, -0.013514166697859764, 0.1561432182788849, -0.14537662267684937, 0.16425743699073792, -0.04258717969059944, -0.05285095050930977, 0.13127532601356506, -0.08779878914356232, 0.019207540899515152, -0.015332255512475967, -0.04993492737412453, -0.02310659922659397, -0.020089613273739815, -0.046908628195524216, -0.18349649012088776, -0.09320472925901413, 0.1855810433626175, -0.1846018135547638, 0.06425706297159195, -0.022077471017837524, -0.004279674030840397, -0.231413334608078, -0.07407902181148529, 0.11284761130809784, 0.04771455377340317, -0.07222478836774826, 0.01304926909506321, 0.06418920308351517, 0.028076713904738426, -0.07014209777116776, -0.023164052516222, -0.049101993441581726, 0.13982389867305756, 0.09568259865045547, -0.01583387702703476, 0.15407194197177887, 0.03891024366021156, 0.006721909157931805, -0.011816841550171375, 0.06691159307956696, -0.004305089358240366, -0.14957180619239807, -0.14736951887607574, -0.18793494999408722, 0.04605787247419357, 0.1515255868434906, -0.035238415002822876, -0.08402857184410095, -0.17318178713321686, -0.06403984129428864, -0.08308787643909454, 0.03395920619368553, -0.14570313692092896, 6.987431220295548e-7, -0.27335208654403687, 0.09869663417339325, -0.10399359464645386, -0.01525752805173397, -0.1773076057434082, -0.04196948930621147, -0.31022897362709045, 0.16873154044151306, -0.1419094204902649, 0.17288057506084442, -0.08204757422208786, 0.21269701421260834, -0.06491727381944656, 0.17759494483470917, 0.09820988029241562, -0.16499075293540955, -0.08611444383859634, 0.04942770674824715, -0.16310322284698486, 0.09001529961824417, 0.0893334150314331, 0.03220157325267792, 0.0588669553399086, 0.03465845435857773, 0.2505855858325958, -0.13017192482948303, -0.12499348819255829, 0.008977564051747322, -0.056209348142147064, 0.05469563603401184, 0.09886964410543442, 0.17280089855194092, -0.0627894401550293, 0.16496504843235016, 0.11016813665628433, -0.06025815010070801, -0.15279433131217957, -0.029418395832180977, 0.13408495485782623, 0.07005936652421951, -0.18583554029464722, 0.0739765390753746, 0.019458334892988205, -0.006003049202263355, 0.12295570969581604, 0.04946759343147278, -0.1494188755750656, 0.02326192334294319, 0.0261817779392004, -0.272025465965271, 0.06989029794931412, -0.006961003411561251, -0.06458192318677902, -0.15868064761161804, -0.20150427520275116, -0.09645319730043411, -0.12129951268434525, 0.02874266542494297, 0.23290511965751648, 0.036312613636255264, 0.030576126649975777, -0.12184496223926544, -0.006202367600053549, 0.014475682750344276, 0.10944421589374542, -0.07596144080162048, 0.014300539158284664, -6.807366419755452e-35, 0.002295347396284342, 0.009159346111118793, 0.0034359467681497335, -0.137064591050148, 0.1731964498758316, -0.17517726123332977, 0.18992199003696442, 0.01112810056656599, -0.014192243106663227, 0.06010918319225311, -0.1307871788740158 ]
https://github.com/huggingface/datasets/issues/2645
load_dataset processing failed with OS error after downloading a dataset
Hi ! It looks like an issue with pytorch. Could you try to run `import torch` and see if it raises an error ?
## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets import load_dataset this_dataset = load_dataset('opus100', 'af-en') ``` ## Expected results there is no error when running load_dataset. ## Actual results Specify the actual results or traceback. Traceback (most recent call last): File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split example = self.info.features.encode_example(record) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example example = cast_to_python_objects(example) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob return _cast_to_python_objects(obj)[0] File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o import torch File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module> _load_global_deps() File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen: cannot load any more object with static TLS During handling of the above exception, another exception occurred: Traceback (most recent call last): File "download_hub_opus100.py", line 9, in <module> this_dataset = load_dataset('opus100', language_pair) File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep + str(e) OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid - Python version: 3.6.6 - PyArrow version: 3.0.0
24
load_dataset processing failed with OS error after downloading a dataset ## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets import load_dataset this_dataset = load_dataset('opus100', 'af-en') ``` ## Expected results there is no error when running load_dataset. ## Actual results Specify the actual results or traceback. Traceback (most recent call last): File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split example = self.info.features.encode_example(record) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example example = cast_to_python_objects(example) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob return _cast_to_python_objects(obj)[0] File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o import torch File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module> _load_global_deps() File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen: cannot load any more object with static TLS During handling of the above exception, another exception occurred: Traceback (most recent call last): File "download_hub_opus100.py", line 9, in <module> this_dataset = load_dataset('opus100', language_pair) File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep + str(e) OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid - Python version: 3.6.6 - PyArrow version: 3.0.0 Hi ! It looks like an issue with pytorch. Could you try to run `import torch` and see if it raises an error ?
[ 0.0809754803776741, 0.18545421957969666, -0.041174985468387604, -0.040746789425611496, 0.25967803597450256, 0.007503022439777851, 0.07973495870828629, -0.010542172938585281, 0.01570167765021324, 0.1332034468650818, -0.1328808218240738, -0.04171745479106903, 0.023201480507850647, -0.09946627914905548, -0.04496419057250023, 0.016346175223588943, -0.055474936962127686, 0.03347212076187134, -0.09153533726930618, -0.03513190522789955, -0.13157956302165985, 0.07244692742824554, 0.13088774681091309, -0.09490247070789337, 0.12427835911512375, 0.010735179297626019, -0.059668753296136856, 0.10644975304603577, 0.022022435441613197, -0.03844571113586426, 0.09140610694885254, -0.05289047956466675, 0.02348291128873825, 0.21155349910259247, 0.0000057553320402803365, 0.017660362645983696, 0.07415415346622467, 0.10822427272796631, -0.12717223167419434, -0.14617253839969635, 0.1951749473810196, -0.0020417566411197186, -0.06838945299386978, 0.011917504481971264, -0.005708657205104828, -0.18160976469516754, -0.04700356721878052, -0.08859656006097794, -0.046208929270505905, 0.08927913755178452, -0.029611317440867424, 0.03646371513605118, -0.038006965070962906, -0.2512226402759552, 0.0005537187098525465, -0.013925857841968536, 0.0017833409365266562, 0.03978898748755455, -0.11782228946685791, -0.07003215700387955, -0.021797817200422287, -0.11905127018690109, -0.0848434716463089, 0.06501308083534241, -0.17407120764255524, 0.009311310946941376, 0.03943801298737526, -0.12786926329135895, 0.08856227248907089, 0.27050188183784485, 0.057376328855752945, 0.24231849610805511, -0.13041052222251892, -0.06255152821540833, 0.07458088546991348, -0.13148869574069977, -0.020435834303498268, 0.11055822670459747, -0.14313684403896332, 0.11518099159002304, -0.03639920800924301, -0.08328702300786972, 0.005047583486884832, -0.00367842148989439, -0.12407559901475906, -0.015374759212136269, -0.1603643149137497, 0.039337027817964554, 0.000034865479392465204, -0.051796700805425644, 0.15206041932106018, 0.07004626840353012, -0.08806481957435608, -0.2138017863035202, 0.17630375921726227, 0.21947625279426575, 0.06068441644310951, 0.02194545418024063, 0.03528972342610359, -0.1454188972711563, -0.051610931754112244, -0.16124014556407928, 0.029933737590909004, 0.08454331755638123, 0.10930249840021133, -0.04198666289448738, 0.045927178114652634, -0.08296813815832138, 0.09374690055847168, 0.018693674355745316, -0.033101968467235565, 0.16543221473693848, -0.25734975934028625, -0.06428712606430054, 0.05802623927593231, 0.05836091190576553, 0.15500730276107788, -0.030324546620249748, 0.01646101474761963, 0.07976534217596054, 0.10215246677398682, 0.11848242580890656, 0.05132919177412987, 0.18429751694202423, 0.06365504860877991, 0.08440660685300827, -0.05519270896911621, 0.14147482812404633, -0.08254285156726837, 0.024957213550806046, 0.030863843858242035, -0.1750781387090683, -0.06760083138942719, -0.009830517694354057, 0.1462218463420868, -0.16231144964694977, 0.061545971781015396, -0.1348329782485962, -0.09717996418476105, 0.026055878028273582, 0.13012614846229553, -0.08671022951602936, -0.10661608725786209, 0.09395387768745422, 0.01906934380531311, 0.009570526890456676, 0.10187578201293945, 0.001447791699320078, -0.08696484565734863, 0.07122326642274857, -0.29383584856987, 0.053080420941114426, -0.30664923787117004, 0.17743751406669617, -0.165981262922287, -0.010613607242703438, 0.05542765557765961, -0.09852758049964905, -0.20306172966957092, -0.13060550391674042, 0.012241425924003124, -0.07857175916433334, -0.08508950471878052, -0.1326359510421753, 0.14015866816043854, 0.13007333874702454, 0.02670367620885372, 0.0876476839184761, -0.08374649286270142, -0.02955768071115017, 0.03575227037072182, -0.07229025661945343, -0.0705161914229393, 0.04209635779261589, -0.2483872026205063, 0.016090527176856995, -0.04632119834423065, 0.03534812480211258, -0.2547178566455841, 0.05123550072312355, 0.15129034221172333, -0.10592690855264664, -0.03226270526647568, -0.12831968069076538, 0.18104149401187897, -0.013798155821859837, -0.09734790027141571, 0.0663134902715683, 0.012001890689134598, -0.09337318688631058, 0.023428872227668762, 0.02825779654085636, -0.07413976639509201, 0.048912663012742996, 0.04564933478832245, -0.1112212985754013, -0.012326102703809738, -0.04707999527454376, 0.04605768993496895, -0.3197997510433197, -0.08559592813253403, -0.06814589351415634, -0.029162827879190445, 0.06652004271745682, 0.01492651179432869, -0.039584413170814514, -0.12849903106689453, 0.1684812307357788, 0.03218011185526848, -0.12358938902616501, -0.23055864870548248, 0.02951674722135067, -0.10210096836090088, 0.05142051726579666, -0.1332949548959732, -0.10158778727054596, -0.14263761043548584, 0.17901074886322021, -0.10491485893726349, 0.17293348908424377, -0.08214613050222397, 0.13679155707359314, 0.09574996680021286, 0.05210772901773453, -0.03132111206650734, 0.04072550684213638, 0.061838582158088684, 0.06489326059818268, -0.05784572660923004, 0.12603667378425598, -0.13920381665229797, -0.11442088335752487, 0.057890139520168304, 0.18600761890411377, 0.01880178228020668, -0.07421145588159561, -0.013392932713031769, -0.06272371113300323, -0.0040976619347929955, -0.10692377388477325, -0.16752131283283234, 0.07963341474533081, 0.07843996584415436, -0.11504263430833817, 0.05401572585105896, 0.0629187822341919, -0.06507203727960587, 0.14456656575202942, -0.029353469610214233, -0.007500434294342995, 0.3914109766483307, 0.13053570687770844, -0.16167804598808289, 0.06317681819200516, 0.16730953752994537, -0.02411024086177349, -0.042778417468070984, 0.17477819323539734, -0.011511925607919693, -0.12272419780492783, 0.1822894960641861, -0.02163618989288807, 0.09770125895738602, 0.0036171649117022753, 0.11602699011564255, 0.03188782185316086, -0.04228537157177925, -0.1104108914732933, 0.1619511842727661, 0.0892205536365509, -0.1034310907125473, -0.07738257944583893, -0.19368095695972443, -0.15159714221954346, 0.013863995671272278, 0.01893633045256138, 0.05913861468434334, -0.06128833815455437, -0.08825081586837769, -0.024030307307839394, -0.17231252789497375, 0.06085977703332901, 0.11206576228141785, -0.08551366627216339, 0.14699584245681763, 0.029072558507323265, -0.04117148742079735, 0.07480642944574356, -0.0375104658305645, 0.009979992173612118, 0.05000181496143341, 0.0503556989133358, 0.05343467742204666, -0.10132414102554321, 0.025075580924749374, -0.023180950433015823, 0.09102070331573486, -0.07525013387203217, -0.061286378651857376, -0.012189393863081932, 0.16536280512809753, 0.036311957985162735, 0.006733012851327658, 0.0344691202044487, 0.045910678803920746, 0.06070661172270775, 0.1849421262741089, 0.11359094828367233, -0.13028484582901, -0.03940453380346298, 0.06263642013072968, -0.09867792576551437, 0.11430016160011292, -0.018604589626193047, -0.051062311977148056, -0.010453781113028526, 0.07587327808141708, -0.1902177333831787, 0.04757954925298691, 0.09535427391529083, 0.06180433928966522, 0.21693888306617737, -0.13400447368621826, 0.00894972961395979, -0.007997390814125538, -0.014256260357797146, -0.2996903359889984, -0.06849101930856705, -0.11077459901571274, -0.010148140601813793, -0.1179705262184143, 0.14329324662685394, -0.07254067063331604, -0.08635181933641434, 0.10892229527235031, -0.1218101903796196, -0.14662490785121918, -0.10742656886577606, 0.34304913878440857, -0.0978689193725586, -0.08426988869905472, -0.00812123529613018, -0.11562942713499069, -0.009795241057872772, 0.042173832654953, -0.11648692190647125, -0.046835049986839294, -0.10147394239902496, -0.08539651334285736, -0.18672914803028107, -0.1129269152879715, 0.0691123828291893, -0.007613179739564657, -0.010251740925014019, -0.042004331946372986, 0.10616455972194672, -0.023429008200764656, 0.03967282176017761, 0.07518583536148071, 0.06745021790266037, 0.07409170269966125, -0.11166414618492126, 0.06695077568292618, -0.03422681242227554, -0.09449334442615509, 0.1994020640850067, 0.12771938741207123, 0.05361395329236984, 0.007778541650623083, -0.12343117594718933, -0.13069823384284973, -0.09889711439609528, -0.06406519562005997, -0.000476853980217129, 0.08341769874095917, -0.061197374016046524, -0.15378037095069885, -0.14197362959384918, 0.0328410379588604, -0.0006356046069413424, 0.04196179658174515, -0.07632450759410858, -0.061761725693941116, 0.06674281507730484, 0.16281820833683014, 0.0340581014752388, -0.0009925059275701642, -0.027485812082886696, -0.1104828268289566, 0.15145021677017212, 0.010672567412257195, 0.1585148423910141, 0.015156817622482777, -0.09758354723453522, 0.05905003100633621, -0.10510434955358505, 0.2390483021736145, 0.11293235421180725, 0.0190436914563179, -0.037358421832323074, 0.12604159116744995, 0.15848298370838165, 0.0893591046333313, 0.04532105103135109, 0.10363923758268356, 0.15564724802970886, 0.05830657109618187, -0.04046962782740593, 0.011761114001274109, 0.050846707075834274, 0.147176131606102, 0.0966680720448494, -0.0838761180639267, 0.05497060716152191, 0.18679143488407135, 0.12502062320709229, -0.008850280195474625, -0.1355719268321991, -0.22062823176383972, -0.18019261956214905, -0.20257019996643066, -0.18724121153354645, 0.1155850887298584, 0.23386922478675842, 0.009323995560407639, -0.07242480665445328, 0.11781178414821625, -0.07472283393144608, 0.1400710642337799, -0.05551644414663315, 0.0031589569989591837, 0.010733691044151783, 0.16700610518455505, -0.018476195633411407, 0.047153182327747345, -0.017314540222287178, 0.4955776631832123, -0.11353589594364166, -0.07397303730249405, 0.16895978152751923, -0.13618001341819763, -0.13827212154865265, -0.04685865715146065, 0.041076093912124634, -0.049542851746082306, -0.088835209608078, -0.10493271797895432, -0.0714937150478363, -0.03313194587826729, -0.05669908970594406, -0.08681906759738922, -0.11963395029306412, -0.10100294649600983, -0.1889684796333313, 0.053641192615032196, -0.008458257652819157, 0.10903675109148026, -0.1681889146566391, 0.09211643785238266, 0.20496708154678345, -0.06468705087900162, -0.0706915557384491, -0.20175431668758392, 0.08032325655221939, -0.03602321818470955, 0.039640191942453384, 0.2560415267944336, -0.22406655550003052, -0.06187459081411362, 0.08399569243192673, -0.125497967004776, 0.08092161267995834, -0.084567591547966, 0.07223404198884964, 0.09041304886341095, 0.01658562384545803, -0.031724922358989716, -0.01661797985434532, -0.07180830091238022, 0.03696396201848984, 0.14348509907722473, 0.029851432889699936, 0.08021936565637589, -0.09260883182287216, -0.09808236360549927, 0.1534489095211029, 0.11668498069047928, -0.00788362231105566, -0.15043099224567413, 0.022370312362909317, 0.19542913138866425, -0.005015299655497074, 0.0986090749502182, -0.06709975004196167, 0.14306260645389557, -0.08583328127861023, -0.16395117342472076, 0.08868705481290817, 0.10164759308099747, 0.11671000719070435, 0.05243992805480957, -0.031062837690114975, 0.027714312076568604, 0.03456961736083031, 0.07035626471042633, -0.08340723812580109, 0.06317833811044693, -0.024516597390174866, -0.094767726957798, -0.13611043989658356, 0.025009652599692345, 0.06965377181768417, -0.09157092869281769, -0.019410766661167145, 0.09101582318544388, 0.11886657774448395, -0.008686485700309277, 0.02576669678092003, -0.09846184402704239, 0.04058460891246796, 0.15016503632068634, -0.04454357549548149, 0.1267377883195877, -0.17657357454299927, 0.08994044363498688, 0.11507837474346161, -0.09580247104167938, 0.09998910129070282, 0.18586072325706482, -0.06313157081604004, 0.07306482642889023, 0.09883798658847809, 0.21240344643592834, 0.05779312551021576, -0.04980839043855667, 0.10363627970218658, 0.09653079509735107, -0.25312402844429016, -0.057462334632873535, 0.17474307119846344, 0.09059589356184006, -0.15140244364738464, -0.17267176508903503, 0.0808761864900589, 0.04397562891244888, 0.1561671793460846, 0.009303286671638489, -0.05164913833141327, -0.03955165296792984, -0.1544203758239746, -0.05991406366229057, 0.18458792567253113, 0.10083239525556564, -0.029075536876916885, -0.05580534785985947, -2.3825496964065965e-32, -0.10421842336654663, -0.03363826870918274, -0.08716388791799545, 0.0625087097287178, -0.13837961852550507, 0.05184609815478325, -0.03557959198951721, 0.020114537328481674, -0.09447326511144638, -0.08994829654693604, -0.01590147614479065, 0.03278398886322975, 0.002848191186785698, -0.021355805918574333, -0.17681165039539337, -0.07555330544710159, -0.06561728566884995, -0.12241531163454056, -0.013943557627499104, 0.0500485897064209, 0.046274419873952866, 0.12471475452184677, -0.047043051570653915, -0.03643586486577988, 0.047824934124946594, -0.011165833100676537, 0.025824038311839104, -0.19497279822826385, 0.07987261563539505, 0.038211435079574585, -0.025437742471694946, 0.007290068082511425, 0.0575181320309639, -0.14975857734680176, -0.11183648556470871, -0.061604298651218414, -0.2643880248069763, -0.06304451078176498, 0.10525450855493546, 0.11866066604852676, 0.10150895267724991, 0.008103928528726101, 0.09454891830682755, -0.0776338130235672, -0.005968980956822634, 0.025964070111513138, 0.084227055311203, 0.007862421683967113, -0.055828653275966644, -0.09753943234682083, 0.05958740785717964, 0.021000904962420464, 0.03617152199149132, 0.02704227901995182, 0.04132571071386337, -0.03449860215187073, 0.009390176273882389, 0.09019292891025543, 0.013391825370490551, 0.014946221373975277, 0.1456991583108902, -0.09269455820322037, 0.01530873216688633, -0.15528899431228638, 0.09165477752685547, -0.1030728816986084, 0.32890552282333374, -0.004186122212558985, -0.008190726861357689, -0.07643112540245056, 0.11964447051286697, 0.23447978496551514, -0.1993435025215149, -0.05327705293893814, -0.07515879720449448, -0.0747910737991333, -0.14736835658550262, 0.041521672159433365, 0.02455630898475647, -0.17636102437973022, 0.07945948094129562, -0.05892619863152504, -0.02182522974908352, 0.13130226731300354, -0.029668007045984268, 0.05018667131662369, -0.07664511352777481, 0.026570504531264305, -0.1793517917394638, -0.06497819721698761, 0.13224533200263977, -0.12867183983325958, -0.09740537405014038, -0.17837665975093842, -0.053508736193180084, -0.06593578308820724, -0.029223965480923653, -0.008415666408836842, -0.07731515914201736, 0.11365729570388794, -0.05683474615216255, -0.018168384209275246, 0.1550300419330597, -0.09355878829956055, 0.030485404655337334, 0.07768306881189346, 0.020823495462536812, 0.05237002670764923, -0.1358569711446762, 0.003418996464461088, 0.0006215423345565796, 0.03926076367497444, 0.17237511277198792, 0.2686467468738556, 0.20405423641204834, 0.12209606915712357, -0.05030388385057449, -0.07027319073677063, 0.12265123426914215, 0.14632034301757812, -0.16738568246364594, -0.02751515619456768, 0.011517253704369068, 0.039455387741327286, -0.12723524868488312, 0.16217999160289764, -0.1781367063522339, -0.1574057936668396, 0.02127201110124588, 0.034631479531526566, 0.020277459174394608, -0.06009929999709129, 7.390250402750098e-7, -0.29051780700683594, 0.174163356423378, -0.036497149616479874, 0.1725499927997589, -0.12313949316740036, -0.016917424276471138, -0.3611294627189636, 0.08605705946683884, 0.08102761209011078, 0.17982342839241028, 0.230263352394104, -0.05311086028814316, -0.001708794734440744, 0.04108772426843643, -0.05805802345275879, -0.11037074774503708, 0.04610597714781761, 0.016143091022968292, -0.043302737176418304, -0.0940476730465889, 0.016433659940958023, 0.16445261240005493, -0.026394404470920563, -0.12175672501325607, -0.011507605202496052, -0.046062976121902466, -0.02283441834151745, -0.08871940523386002, 0.02863634005188942, -0.12687042355537415, -0.10482433438301086, 0.12458379566669464, -0.0921262726187706, 0.19481538236141205, 0.04375959932804108, -0.011460195295512676, -0.11409683525562286, -0.02889292873442173, 0.1576860547065735, -0.01435794960707426, 0.2028895914554596, -0.042926523834466934, 0.02400263585150242, 0.014703406020998955, 0.14372986555099487, 0.18827855587005615, -0.12792539596557617, 0.09191837906837463, -0.002585845533758402, 0.15498554706573486, 0.06192120164632797, 0.08452379703521729, 0.12276073545217514, 0.06072048842906952, 0.0017335552256554365, -0.008797642774879932, -0.043652988970279694, -0.19770929217338562, 0.19716434180736542, 0.001492102979682386, -0.0010042943758890033, -0.0714133232831955, 0.13937737047672272, -0.03818491846323013, 0.18290939927101135, -0.08743127435445786, 0.002858113031834364, 6.608447291246137e-35, -0.003746235044673085, -0.09956083446741104, 0.046120695769786835, -0.05697128549218178, -0.022940240800380707, -0.0903957337141037, 0.05815500020980835, -0.13283531367778778, 0.085310198366642, -0.15272556245326996, -0.052918653935194016 ]
https://github.com/huggingface/datasets/issues/2645
load_dataset processing failed with OS error after downloading a dataset
> Hi ! It looks like an issue with pytorch. > > Could you try to run `import torch` and see if it raises an error ? It works. Thank you!
## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets import load_dataset this_dataset = load_dataset('opus100', 'af-en') ``` ## Expected results there is no error when running load_dataset. ## Actual results Specify the actual results or traceback. Traceback (most recent call last): File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split example = self.info.features.encode_example(record) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example example = cast_to_python_objects(example) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob return _cast_to_python_objects(obj)[0] File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o import torch File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module> _load_global_deps() File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen: cannot load any more object with static TLS During handling of the above exception, another exception occurred: Traceback (most recent call last): File "download_hub_opus100.py", line 9, in <module> this_dataset = load_dataset('opus100', language_pair) File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep + str(e) OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid - Python version: 3.6.6 - PyArrow version: 3.0.0
31
load_dataset processing failed with OS error after downloading a dataset ## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets import load_dataset this_dataset = load_dataset('opus100', 'af-en') ``` ## Expected results there is no error when running load_dataset. ## Actual results Specify the actual results or traceback. Traceback (most recent call last): File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split example = self.info.features.encode_example(record) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example example = cast_to_python_objects(example) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob return _cast_to_python_objects(obj)[0] File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o import torch File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module> _load_global_deps() File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen: cannot load any more object with static TLS During handling of the above exception, another exception occurred: Traceback (most recent call last): File "download_hub_opus100.py", line 9, in <module> this_dataset = load_dataset('opus100', language_pair) File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep + str(e) OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid - Python version: 3.6.6 - PyArrow version: 3.0.0 > Hi ! It looks like an issue with pytorch. > > Could you try to run `import torch` and see if it raises an error ? It works. Thank you!
[ 0.0809754803776741, 0.18545421957969666, -0.041174985468387604, -0.040746789425611496, 0.25967803597450256, 0.007503022439777851, 0.07973495870828629, -0.010542172938585281, 0.01570167765021324, 0.1332034468650818, -0.1328808218240738, -0.04171745479106903, 0.023201480507850647, -0.09946627914905548, -0.04496419057250023, 0.016346175223588943, -0.055474936962127686, 0.03347212076187134, -0.09153533726930618, -0.03513190522789955, -0.13157956302165985, 0.07244692742824554, 0.13088774681091309, -0.09490247070789337, 0.12427835911512375, 0.010735179297626019, -0.059668753296136856, 0.10644975304603577, 0.022022435441613197, -0.03844571113586426, 0.09140610694885254, -0.05289047956466675, 0.02348291128873825, 0.21155349910259247, 0.0000057553320402803365, 0.017660362645983696, 0.07415415346622467, 0.10822427272796631, -0.12717223167419434, -0.14617253839969635, 0.1951749473810196, -0.0020417566411197186, -0.06838945299386978, 0.011917504481971264, -0.005708657205104828, -0.18160976469516754, -0.04700356721878052, -0.08859656006097794, -0.046208929270505905, 0.08927913755178452, -0.029611317440867424, 0.03646371513605118, -0.038006965070962906, -0.2512226402759552, 0.0005537187098525465, -0.013925857841968536, 0.0017833409365266562, 0.03978898748755455, -0.11782228946685791, -0.07003215700387955, -0.021797817200422287, -0.11905127018690109, -0.0848434716463089, 0.06501308083534241, -0.17407120764255524, 0.009311310946941376, 0.03943801298737526, -0.12786926329135895, 0.08856227248907089, 0.27050188183784485, 0.057376328855752945, 0.24231849610805511, -0.13041052222251892, -0.06255152821540833, 0.07458088546991348, -0.13148869574069977, -0.020435834303498268, 0.11055822670459747, -0.14313684403896332, 0.11518099159002304, -0.03639920800924301, -0.08328702300786972, 0.005047583486884832, -0.00367842148989439, -0.12407559901475906, -0.015374759212136269, -0.1603643149137497, 0.039337027817964554, 0.000034865479392465204, -0.051796700805425644, 0.15206041932106018, 0.07004626840353012, -0.08806481957435608, -0.2138017863035202, 0.17630375921726227, 0.21947625279426575, 0.06068441644310951, 0.02194545418024063, 0.03528972342610359, -0.1454188972711563, -0.051610931754112244, -0.16124014556407928, 0.029933737590909004, 0.08454331755638123, 0.10930249840021133, -0.04198666289448738, 0.045927178114652634, -0.08296813815832138, 0.09374690055847168, 0.018693674355745316, -0.033101968467235565, 0.16543221473693848, -0.25734975934028625, -0.06428712606430054, 0.05802623927593231, 0.05836091190576553, 0.15500730276107788, -0.030324546620249748, 0.01646101474761963, 0.07976534217596054, 0.10215246677398682, 0.11848242580890656, 0.05132919177412987, 0.18429751694202423, 0.06365504860877991, 0.08440660685300827, -0.05519270896911621, 0.14147482812404633, -0.08254285156726837, 0.024957213550806046, 0.030863843858242035, -0.1750781387090683, -0.06760083138942719, -0.009830517694354057, 0.1462218463420868, -0.16231144964694977, 0.061545971781015396, -0.1348329782485962, -0.09717996418476105, 0.026055878028273582, 0.13012614846229553, -0.08671022951602936, -0.10661608725786209, 0.09395387768745422, 0.01906934380531311, 0.009570526890456676, 0.10187578201293945, 0.001447791699320078, -0.08696484565734863, 0.07122326642274857, -0.29383584856987, 0.053080420941114426, -0.30664923787117004, 0.17743751406669617, -0.165981262922287, -0.010613607242703438, 0.05542765557765961, -0.09852758049964905, -0.20306172966957092, -0.13060550391674042, 0.012241425924003124, -0.07857175916433334, -0.08508950471878052, -0.1326359510421753, 0.14015866816043854, 0.13007333874702454, 0.02670367620885372, 0.0876476839184761, -0.08374649286270142, -0.02955768071115017, 0.03575227037072182, -0.07229025661945343, -0.0705161914229393, 0.04209635779261589, -0.2483872026205063, 0.016090527176856995, -0.04632119834423065, 0.03534812480211258, -0.2547178566455841, 0.05123550072312355, 0.15129034221172333, -0.10592690855264664, -0.03226270526647568, -0.12831968069076538, 0.18104149401187897, -0.013798155821859837, -0.09734790027141571, 0.0663134902715683, 0.012001890689134598, -0.09337318688631058, 0.023428872227668762, 0.02825779654085636, -0.07413976639509201, 0.048912663012742996, 0.04564933478832245, -0.1112212985754013, -0.012326102703809738, -0.04707999527454376, 0.04605768993496895, -0.3197997510433197, -0.08559592813253403, -0.06814589351415634, -0.029162827879190445, 0.06652004271745682, 0.01492651179432869, -0.039584413170814514, -0.12849903106689453, 0.1684812307357788, 0.03218011185526848, -0.12358938902616501, -0.23055864870548248, 0.02951674722135067, -0.10210096836090088, 0.05142051726579666, -0.1332949548959732, -0.10158778727054596, -0.14263761043548584, 0.17901074886322021, -0.10491485893726349, 0.17293348908424377, -0.08214613050222397, 0.13679155707359314, 0.09574996680021286, 0.05210772901773453, -0.03132111206650734, 0.04072550684213638, 0.061838582158088684, 0.06489326059818268, -0.05784572660923004, 0.12603667378425598, -0.13920381665229797, -0.11442088335752487, 0.057890139520168304, 0.18600761890411377, 0.01880178228020668, -0.07421145588159561, -0.013392932713031769, -0.06272371113300323, -0.0040976619347929955, -0.10692377388477325, -0.16752131283283234, 0.07963341474533081, 0.07843996584415436, -0.11504263430833817, 0.05401572585105896, 0.0629187822341919, -0.06507203727960587, 0.14456656575202942, -0.029353469610214233, -0.007500434294342995, 0.3914109766483307, 0.13053570687770844, -0.16167804598808289, 0.06317681819200516, 0.16730953752994537, -0.02411024086177349, -0.042778417468070984, 0.17477819323539734, -0.011511925607919693, -0.12272419780492783, 0.1822894960641861, -0.02163618989288807, 0.09770125895738602, 0.0036171649117022753, 0.11602699011564255, 0.03188782185316086, -0.04228537157177925, -0.1104108914732933, 0.1619511842727661, 0.0892205536365509, -0.1034310907125473, -0.07738257944583893, -0.19368095695972443, -0.15159714221954346, 0.013863995671272278, 0.01893633045256138, 0.05913861468434334, -0.06128833815455437, -0.08825081586837769, -0.024030307307839394, -0.17231252789497375, 0.06085977703332901, 0.11206576228141785, -0.08551366627216339, 0.14699584245681763, 0.029072558507323265, -0.04117148742079735, 0.07480642944574356, -0.0375104658305645, 0.009979992173612118, 0.05000181496143341, 0.0503556989133358, 0.05343467742204666, -0.10132414102554321, 0.025075580924749374, -0.023180950433015823, 0.09102070331573486, -0.07525013387203217, -0.061286378651857376, -0.012189393863081932, 0.16536280512809753, 0.036311957985162735, 0.006733012851327658, 0.0344691202044487, 0.045910678803920746, 0.06070661172270775, 0.1849421262741089, 0.11359094828367233, -0.13028484582901, -0.03940453380346298, 0.06263642013072968, -0.09867792576551437, 0.11430016160011292, -0.018604589626193047, -0.051062311977148056, -0.010453781113028526, 0.07587327808141708, -0.1902177333831787, 0.04757954925298691, 0.09535427391529083, 0.06180433928966522, 0.21693888306617737, -0.13400447368621826, 0.00894972961395979, -0.007997390814125538, -0.014256260357797146, -0.2996903359889984, -0.06849101930856705, -0.11077459901571274, -0.010148140601813793, -0.1179705262184143, 0.14329324662685394, -0.07254067063331604, -0.08635181933641434, 0.10892229527235031, -0.1218101903796196, -0.14662490785121918, -0.10742656886577606, 0.34304913878440857, -0.0978689193725586, -0.08426988869905472, -0.00812123529613018, -0.11562942713499069, -0.009795241057872772, 0.042173832654953, -0.11648692190647125, -0.046835049986839294, -0.10147394239902496, -0.08539651334285736, -0.18672914803028107, -0.1129269152879715, 0.0691123828291893, -0.007613179739564657, -0.010251740925014019, -0.042004331946372986, 0.10616455972194672, -0.023429008200764656, 0.03967282176017761, 0.07518583536148071, 0.06745021790266037, 0.07409170269966125, -0.11166414618492126, 0.06695077568292618, -0.03422681242227554, -0.09449334442615509, 0.1994020640850067, 0.12771938741207123, 0.05361395329236984, 0.007778541650623083, -0.12343117594718933, -0.13069823384284973, -0.09889711439609528, -0.06406519562005997, -0.000476853980217129, 0.08341769874095917, -0.061197374016046524, -0.15378037095069885, -0.14197362959384918, 0.0328410379588604, -0.0006356046069413424, 0.04196179658174515, -0.07632450759410858, -0.061761725693941116, 0.06674281507730484, 0.16281820833683014, 0.0340581014752388, -0.0009925059275701642, -0.027485812082886696, -0.1104828268289566, 0.15145021677017212, 0.010672567412257195, 0.1585148423910141, 0.015156817622482777, -0.09758354723453522, 0.05905003100633621, -0.10510434955358505, 0.2390483021736145, 0.11293235421180725, 0.0190436914563179, -0.037358421832323074, 0.12604159116744995, 0.15848298370838165, 0.0893591046333313, 0.04532105103135109, 0.10363923758268356, 0.15564724802970886, 0.05830657109618187, -0.04046962782740593, 0.011761114001274109, 0.050846707075834274, 0.147176131606102, 0.0966680720448494, -0.0838761180639267, 0.05497060716152191, 0.18679143488407135, 0.12502062320709229, -0.008850280195474625, -0.1355719268321991, -0.22062823176383972, -0.18019261956214905, -0.20257019996643066, -0.18724121153354645, 0.1155850887298584, 0.23386922478675842, 0.009323995560407639, -0.07242480665445328, 0.11781178414821625, -0.07472283393144608, 0.1400710642337799, -0.05551644414663315, 0.0031589569989591837, 0.010733691044151783, 0.16700610518455505, -0.018476195633411407, 0.047153182327747345, -0.017314540222287178, 0.4955776631832123, -0.11353589594364166, -0.07397303730249405, 0.16895978152751923, -0.13618001341819763, -0.13827212154865265, -0.04685865715146065, 0.041076093912124634, -0.049542851746082306, -0.088835209608078, -0.10493271797895432, -0.0714937150478363, -0.03313194587826729, -0.05669908970594406, -0.08681906759738922, -0.11963395029306412, -0.10100294649600983, -0.1889684796333313, 0.053641192615032196, -0.008458257652819157, 0.10903675109148026, -0.1681889146566391, 0.09211643785238266, 0.20496708154678345, -0.06468705087900162, -0.0706915557384491, -0.20175431668758392, 0.08032325655221939, -0.03602321818470955, 0.039640191942453384, 0.2560415267944336, -0.22406655550003052, -0.06187459081411362, 0.08399569243192673, -0.125497967004776, 0.08092161267995834, -0.084567591547966, 0.07223404198884964, 0.09041304886341095, 0.01658562384545803, -0.031724922358989716, -0.01661797985434532, -0.07180830091238022, 0.03696396201848984, 0.14348509907722473, 0.029851432889699936, 0.08021936565637589, -0.09260883182287216, -0.09808236360549927, 0.1534489095211029, 0.11668498069047928, -0.00788362231105566, -0.15043099224567413, 0.022370312362909317, 0.19542913138866425, -0.005015299655497074, 0.0986090749502182, -0.06709975004196167, 0.14306260645389557, -0.08583328127861023, -0.16395117342472076, 0.08868705481290817, 0.10164759308099747, 0.11671000719070435, 0.05243992805480957, -0.031062837690114975, 0.027714312076568604, 0.03456961736083031, 0.07035626471042633, -0.08340723812580109, 0.06317833811044693, -0.024516597390174866, -0.094767726957798, -0.13611043989658356, 0.025009652599692345, 0.06965377181768417, -0.09157092869281769, -0.019410766661167145, 0.09101582318544388, 0.11886657774448395, -0.008686485700309277, 0.02576669678092003, -0.09846184402704239, 0.04058460891246796, 0.15016503632068634, -0.04454357549548149, 0.1267377883195877, -0.17657357454299927, 0.08994044363498688, 0.11507837474346161, -0.09580247104167938, 0.09998910129070282, 0.18586072325706482, -0.06313157081604004, 0.07306482642889023, 0.09883798658847809, 0.21240344643592834, 0.05779312551021576, -0.04980839043855667, 0.10363627970218658, 0.09653079509735107, -0.25312402844429016, -0.057462334632873535, 0.17474307119846344, 0.09059589356184006, -0.15140244364738464, -0.17267176508903503, 0.0808761864900589, 0.04397562891244888, 0.1561671793460846, 0.009303286671638489, -0.05164913833141327, -0.03955165296792984, -0.1544203758239746, -0.05991406366229057, 0.18458792567253113, 0.10083239525556564, -0.029075536876916885, -0.05580534785985947, -2.3825496964065965e-32, -0.10421842336654663, -0.03363826870918274, -0.08716388791799545, 0.0625087097287178, -0.13837961852550507, 0.05184609815478325, -0.03557959198951721, 0.020114537328481674, -0.09447326511144638, -0.08994829654693604, -0.01590147614479065, 0.03278398886322975, 0.002848191186785698, -0.021355805918574333, -0.17681165039539337, -0.07555330544710159, -0.06561728566884995, -0.12241531163454056, -0.013943557627499104, 0.0500485897064209, 0.046274419873952866, 0.12471475452184677, -0.047043051570653915, -0.03643586486577988, 0.047824934124946594, -0.011165833100676537, 0.025824038311839104, -0.19497279822826385, 0.07987261563539505, 0.038211435079574585, -0.025437742471694946, 0.007290068082511425, 0.0575181320309639, -0.14975857734680176, -0.11183648556470871, -0.061604298651218414, -0.2643880248069763, -0.06304451078176498, 0.10525450855493546, 0.11866066604852676, 0.10150895267724991, 0.008103928528726101, 0.09454891830682755, -0.0776338130235672, -0.005968980956822634, 0.025964070111513138, 0.084227055311203, 0.007862421683967113, -0.055828653275966644, -0.09753943234682083, 0.05958740785717964, 0.021000904962420464, 0.03617152199149132, 0.02704227901995182, 0.04132571071386337, -0.03449860215187073, 0.009390176273882389, 0.09019292891025543, 0.013391825370490551, 0.014946221373975277, 0.1456991583108902, -0.09269455820322037, 0.01530873216688633, -0.15528899431228638, 0.09165477752685547, -0.1030728816986084, 0.32890552282333374, -0.004186122212558985, -0.008190726861357689, -0.07643112540245056, 0.11964447051286697, 0.23447978496551514, -0.1993435025215149, -0.05327705293893814, -0.07515879720449448, -0.0747910737991333, -0.14736835658550262, 0.041521672159433365, 0.02455630898475647, -0.17636102437973022, 0.07945948094129562, -0.05892619863152504, -0.02182522974908352, 0.13130226731300354, -0.029668007045984268, 0.05018667131662369, -0.07664511352777481, 0.026570504531264305, -0.1793517917394638, -0.06497819721698761, 0.13224533200263977, -0.12867183983325958, -0.09740537405014038, -0.17837665975093842, -0.053508736193180084, -0.06593578308820724, -0.029223965480923653, -0.008415666408836842, -0.07731515914201736, 0.11365729570388794, -0.05683474615216255, -0.018168384209275246, 0.1550300419330597, -0.09355878829956055, 0.030485404655337334, 0.07768306881189346, 0.020823495462536812, 0.05237002670764923, -0.1358569711446762, 0.003418996464461088, 0.0006215423345565796, 0.03926076367497444, 0.17237511277198792, 0.2686467468738556, 0.20405423641204834, 0.12209606915712357, -0.05030388385057449, -0.07027319073677063, 0.12265123426914215, 0.14632034301757812, -0.16738568246364594, -0.02751515619456768, 0.011517253704369068, 0.039455387741327286, -0.12723524868488312, 0.16217999160289764, -0.1781367063522339, -0.1574057936668396, 0.02127201110124588, 0.034631479531526566, 0.020277459174394608, -0.06009929999709129, 7.390250402750098e-7, -0.29051780700683594, 0.174163356423378, -0.036497149616479874, 0.1725499927997589, -0.12313949316740036, -0.016917424276471138, -0.3611294627189636, 0.08605705946683884, 0.08102761209011078, 0.17982342839241028, 0.230263352394104, -0.05311086028814316, -0.001708794734440744, 0.04108772426843643, -0.05805802345275879, -0.11037074774503708, 0.04610597714781761, 0.016143091022968292, -0.043302737176418304, -0.0940476730465889, 0.016433659940958023, 0.16445261240005493, -0.026394404470920563, -0.12175672501325607, -0.011507605202496052, -0.046062976121902466, -0.02283441834151745, -0.08871940523386002, 0.02863634005188942, -0.12687042355537415, -0.10482433438301086, 0.12458379566669464, -0.0921262726187706, 0.19481538236141205, 0.04375959932804108, -0.011460195295512676, -0.11409683525562286, -0.02889292873442173, 0.1576860547065735, -0.01435794960707426, 0.2028895914554596, -0.042926523834466934, 0.02400263585150242, 0.014703406020998955, 0.14372986555099487, 0.18827855587005615, -0.12792539596557617, 0.09191837906837463, -0.002585845533758402, 0.15498554706573486, 0.06192120164632797, 0.08452379703521729, 0.12276073545217514, 0.06072048842906952, 0.0017335552256554365, -0.008797642774879932, -0.043652988970279694, -0.19770929217338562, 0.19716434180736542, 0.001492102979682386, -0.0010042943758890033, -0.0714133232831955, 0.13937737047672272, -0.03818491846323013, 0.18290939927101135, -0.08743127435445786, 0.002858113031834364, 6.608447291246137e-35, -0.003746235044673085, -0.09956083446741104, 0.046120695769786835, -0.05697128549218178, -0.022940240800380707, -0.0903957337141037, 0.05815500020980835, -0.13283531367778778, 0.085310198366642, -0.15272556245326996, -0.052918653935194016 ]
https://github.com/huggingface/datasets/issues/2644
Batched `map` not allowed to return 0 items
Hi ! Thanks for reporting. Indeed it looks like type inference makes it fail. We should probably just ignore this step until a non-empty batch is passed.
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1
27
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1 Hi ! Thanks for reporting. Indeed it looks like type inference makes it fail. We should probably just ignore this step until a non-empty batch is passed.
[ 0.10346592962741852, -0.05103755369782448, 0.05301041156053543, 0.08537043631076813, 0.3112128674983978, -0.02395329438149929, 0.06728813797235489, 0.12931427359580994, 0.10950247198343277, 0.13343755900859833, -0.011103318072855473, -0.09876980632543564, -0.12331114709377289, -0.02430327609181404, -0.022159049287438393, 0.009515208192169666, -0.07344271242618561, -0.147344172000885, -0.07977228611707687, -0.11636371910572052, -0.2504235804080963, 0.05994820222258568, 0.019148409366607666, -0.05120311677455902, -0.018665390089154243, -0.10816378146409988, -0.07419333606958389, 0.0573832131922245, -0.21864323318004608, -0.08601626753807068, 0.011202795431017876, 0.012545128352940083, -0.07124994695186615, 0.03487458825111389, 0.000004723022357211448, 0.10060546547174454, 0.21582923829555511, -0.14074291288852692, 0.05750938877463341, -0.051641933619976044, 0.1732594072818756, 0.05115610733628273, 0.056150827556848526, -0.034804534167051315, -0.06077120825648308, -0.15816092491149902, -0.01345008797943592, 0.03072197549045086, 0.08593818545341492, -0.0388152077794075, -0.08665039390325546, 0.09946057945489883, -0.054652221500873566, -0.11146066337823868, 0.11429615318775177, 0.04277452453970909, 0.21994084119796753, -0.19777289032936096, -0.04888381063938141, -0.05964955687522888, 0.06429121643304825, -0.02464623935520649, -0.09277501702308655, -0.009238841943442822, -0.030201511457562447, -0.02299395017325878, -0.09845700114965439, -0.2535248398780823, -0.021873151883482933, 0.10473833978176117, -0.0334470234811306, 0.04774327576160431, -0.005100833717733622, -0.02070915512740612, -0.09955482184886932, -0.05206665024161339, -0.127995103597641, 0.13941259682178497, -0.13206128776073456, -0.029707109555602074, -0.01355043612420559, 0.11459971219301224, 0.07532382011413574, 0.11106614023447037, -0.19778162240982056, -0.040920160710811615, -0.10577769577503204, 0.18574583530426025, 0.13352282345294952, -0.04520712047815323, -0.09648589789867401, 0.058268699795007706, -0.08426781743764877, -0.05217767879366875, 0.00667685829102993, -0.009096919558942318, 0.07994285970926285, -0.193970188498497, 0.06248466670513153, -0.167885422706604, -0.06811870634555817, -0.028258956968784332, 0.05782715976238251, 0.05232635512948036, 0.08786187320947647, -0.0723494291305542, -0.11004963517189026, 0.05318240821361542, 0.04064105451107025, -0.023594431579113007, -0.04331648349761963, 0.028168093413114548, 0.0500328429043293, -0.026656948029994965, 0.05409790202975273, -0.06727446615695953, 0.14746004343032837, 0.0938730388879776, -0.15859289467334747, 0.0985352098941803, -0.07597707211971283, 0.08568594604730606, -0.011501451022922993, -0.023687167093157768, 0.06315115094184875, -0.050382282584905624, 0.1140972301363945, 0.20644861459732056, -0.007920050993561745, 0.029798436909914017, -0.04818301275372505, 0.1229119673371315, 0.08301001787185669, -0.19932089745998383, 0.1620769202709198, 0.02503754012286663, 0.09648428112268448, -0.06274518370628357, 0.08364439755678177, -0.161651149392128, -0.004002388101071119, -0.09872977435588837, 0.35645970702171326, -0.013308193534612656, -0.01422275509685278, 0.05507455766201019, 0.23932941257953644, -0.006438931915909052, 0.07729228585958481, -0.03787681832909584, -0.2881596088409424, 0.09351317584514618, 0.06328970938920975, 0.016822678968310356, -0.19130858778953552, 0.20375791192054749, -0.03372616320848465, -0.07673164457082748, -0.18991462886333466, 0.06354116648435593, 0.1996576339006424, 0.04722330719232559, -0.040963057428598404, -0.21005548536777496, 0.12285979837179184, 0.11207228899002075, -0.1119532659649849, 0.049876291304826736, 0.0194210484623909, 0.01601944863796234, 0.15974773466587067, 0.0904536172747612, -0.021413059905171394, -0.09285632520914078, -0.10917221009731293, 0.154959574341774, -0.13776428997516632, 0.07089895755052567, -0.3158476948738098, -0.0678335428237915, 0.020418215543031693, -0.09476546943187714, 0.11391622573137283, -0.308170348405838, 0.18927361071109772, -0.08775769174098969, 0.11451873928308487, -0.14764563739299774, -0.2485186904668808, 0.1467883139848709, -0.0025527412071824074, 0.02101602405309677, 0.06720877438783646, -0.2202574461698532, 0.01245991699397564, -0.10088665038347244, -0.24928143620491028, -0.21980759501457214, -0.10292762517929077, -0.10161201655864716, 0.1469530612230301, -0.05065767839550972, 0.03354916721582413, 0.02156141586601734, 0.04142637550830841, -0.1683656871318817, -0.28282320499420166, 0.13391976058483124, -0.07880294322967529, -0.15699708461761475, -0.11668308079242706, 0.10514621436595917, 0.24017654359340668, 0.008474214933812618, -0.08228892832994461, 0.055567774921655655, 0.016893185675144196, -0.14857344329357147, 0.0432237945497036, 0.09113702923059464, -0.05153198540210724, -0.0027096609119325876, 0.06454021483659744, -0.036993060261011124, 0.06673948466777802, -0.054874882102012634, 0.029635488986968994, -0.023786915466189384, 0.09403396397829056, 0.05580798164010048, -0.05003933981060982, -0.12609314918518066, 0.2237040400505066, -0.006965769454836845, -0.2140505015850067, -0.12492314726114273, -0.038138482719659805, -0.21604789793491364, 0.03259687125682831, -0.042108986526727676, -0.11508726328611374, 0.16241386532783508, 0.019221818074584007, 0.055518150329589844, -0.024411262944340706, 0.15957175195217133, -0.05076761171221733, 0.07891140133142471, -0.04691540449857712, 0.04854108765721321, 0.08888532221317291, 0.11096572130918503, -0.08547147363424301, 0.038201600313186646, -0.02446305938065052, -0.17817722260951996, -0.059765953570604324, -0.09195895493030548, -0.0008988584158942103, -0.14420846104621887, 0.3090546429157257, -0.04650966078042984, -0.08608940988779068, -0.0732213705778122, 0.16305682063102722, -0.016841942444443703, 0.04457446187734604, 0.037039864808321, -0.0135175921022892, 0.13014370203018188, 0.12836095690727234, -0.16592194139957428, 0.1256837546825409, 0.00024379054957535118, -0.024023927748203278, -0.042166415601968765, -0.06524533778429031, 0.050890497863292694, 0.062213242053985596, 0.15831059217453003, -0.038402434438467026, 0.01727881096303463, 0.14110751450061798, -0.03289074823260307, 0.04784690588712692, 0.006248275749385357, -0.01706867851316929, -0.08251067996025085, 0.05075876787304878, 0.1333746761083603, 0.006783486809581518, -0.1213095486164093, 0.03842579945921898, -0.05786991864442825, 0.007636572699993849, -0.17319798469543457, -0.12449254840612411, -0.19725766777992249, 0.043820809572935104, 0.11341246217489243, -0.052299343049526215, -0.09404480457305908, 0.14091967046260834, -0.04069030284881592, 0.03840117156505585, -0.05627140402793884, 0.2680591642856598, 0.30503925681114197, -0.1291443109512329, -0.11096431314945221, -0.013148048892617226, 0.008160651661455631, -0.09437090158462524, 0.015487545169889927, 0.1323709934949875, 0.1444994956254959, -0.14110581576824188, -0.060508836060762405, 0.25432270765304565, -0.03311895579099655, -0.10413065552711487, 0.21894891560077667, 0.013059557415544987, 0.06443575769662857, -0.00868576392531395, 0.15931718051433563, 0.0979657992720604, -0.0564199723303318, -0.019336119294166565, -0.1706845909357071, 0.022334538400173187, 0.07479188591241837, 0.024587666615843773, 0.009150058962404728, -0.06474526971578598, -0.09433849900960922, -0.039238255470991135, 0.045866649597883224, 0.13140304386615753, 0.10650960355997086, -0.16707843542099, 0.13117586076259613, -0.07857204973697662, -0.10075690597295761, 0.19371740520000458, -0.1633930206298828, 0.0209669042378664, 0.09110939502716064, 0.0643686056137085, 0.032777704298496246, 0.010559581220149994, 0.17332428693771362, -0.041781291365623474, -0.10662388056516647, -0.10713794827461243, -0.07932240515947342, -0.20115898549556732, 0.05864236503839493, -0.22886353731155396, -0.002126435050740838, 0.23860064148902893, -0.0070910206995904446, -0.003088997909799218, 0.03975456580519676, 0.09008245915174484, 0.05415996164083481, 0.11193317174911499, 0.11506588011980057, -0.10005908459424973, -0.12809857726097107, -0.0583047941327095, -0.165297731757164, -0.055091895163059235, -0.002504427684471011, -0.16744446754455566, 0.025425268337130547, 0.1033686026930809, 0.02626904472708702, 0.02392543852329254, -0.1574917733669281, 0.12816588580608368, -0.22067774832248688, -0.1152896136045456, 0.057170066982507706, 0.22243104875087738, -0.020948568359017372, 0.013446325436234474, -0.12933529913425446, -0.17824487388134003, 0.28648051619529724, 0.09645414352416992, -0.07322847098112106, -0.12532439827919006, -0.13264358043670654, 0.06501815468072891, -0.11330819129943848, -0.029294544830918312, 0.004818784538656473, 0.007522381376475096, -0.04446057602763176, 0.08002196997404099, 0.25437894463539124, -0.0029433630406856537, 0.11381201446056366, 0.06686615198850632, -0.059192098677158356, -0.07873579114675522, -0.015483066439628601, -0.0238770954310894, 0.06040159612894058, -0.025708237662911415, 0.11319771409034729, -0.01871623657643795, -0.07515352964401245, 0.02344367280602455, 0.0058206417597830296, -0.10431481152772903, 0.03997790068387985, 0.01569482684135437, -0.21036483347415924, -0.19393335282802582, -0.011783001013100147, 0.13219286501407623, 0.0367196686565876, 0.046670299023389816, -0.06833351403474808, 0.030187509953975677, -0.02380116656422615, 0.15409475564956665, 0.07489553838968277, 0.08521001785993576, 0.07136140018701553, 0.08211058378219604, -0.055661048740148544, 0.11513157188892365, 0.04266198351979256, 0.15721727907657623, -0.1336359977722168, 0.006996955256909132, -0.0532686822116375, -0.13185207545757294, 0.042951032519340515, 0.16629737615585327, -0.1377289891242981, 0.17039206624031067, 0.04773128777742386, -0.06000486761331558, 0.03507717698812485, 0.01243393961340189, 0.06490025669336319, -0.005637623835355043, -0.08428871631622314, 0.10609742254018784, -0.137169748544693, 0.08755991607904434, 0.14699867367744446, 0.2125617414712906, 0.08112894743680954, -0.05750975385308266, 0.17726270854473114, 0.12097327411174774, -0.02380429394543171, -0.027375390753149986, 0.0845351591706276, 0.05809256434440613, 0.014518671669065952, 0.2416709065437317, 0.2242240309715271, -0.026273181661963463, 0.21440742909908295, -0.03556293249130249, 0.12088450789451599, 0.007488415576517582, 0.03820687159895897, 0.08042347431182861, -0.03729700669646263, 0.09948164969682693, 0.07075800001621246, 0.035064421594142914, -0.11466645449399948, 0.08105544745922089, -0.07461067289113998, -0.030850445851683617, -0.0940062627196312, 0.011085936799645424, 0.26301008462905884, -0.030243797227740288, -0.04122322425246239, -0.16612739861011505, -0.0048260195180773735, -0.16696786880493164, -0.12966753542423248, -0.13248592615127563, -0.0018951394595205784, -0.15267112851142883, 0.1354111284017563, 0.09364454448223114, 0.0861232653260231, -0.10432472825050354, 0.037203747779130936, 0.08292076736688614, -0.026375077664852142, -0.11425155401229858, -0.017735932022333145, 0.05517103150486946, -0.23320607841014862, 0.09567131102085114, 0.016412440687417984, 0.09830014407634735, 0.0770871713757515, -0.07589925825595856, -0.01899820938706398, -0.012529954314231873, 0.041177112609148026, 0.05590156838297844, -0.16637764871120453, -0.1498640775680542, -0.15080375969409943, 0.07916469871997833, -0.057877298444509506, 0.011306756176054478, -0.0979420393705368, 0.22004930675029755, -0.1237100288271904, 0.008091353811323643, -0.006343229673802853, 0.03780686482787132, -0.07801340520381927, 0.10914257913827896, 0.15546445548534393, -0.015266676433384418, 0.18341094255447388, 0.15998835861682892, 0.05738786980509758, -0.05443457141518593, 0.021737564355134964, 0.16415025293827057, -0.12304630130529404, 0.1917165070772171, -0.06635148078203201, 0.016969187185168266, -0.33379775285720825, -0.05849229916930199, 0.006991155445575714, 0.06563960760831833, -0.16046231985092163, -0.06259732693433762, -0.16658073663711548, -0.012089986354112625, 0.0817418098449707, -0.030993808060884476, 0.1676281988620758, -0.014067133888602257, -0.0844694972038269, 0.03091396391391754, -2.446958558371202e-32, 0.06698030233383179, 0.007036398630589247, -0.044891394674777985, -0.008343975059688091, -0.11278095841407776, 0.08916909992694855, -0.17816585302352905, 0.07557383924722672, 0.09140967577695847, -0.003710993565618992, -0.1666383296251297, -0.056724026799201965, 0.1200776919722557, 0.05956966429948807, -0.0810372605919838, 0.16830340027809143, 0.03060632012784481, 0.0952155590057373, 0.014311660081148148, 0.09013251960277557, 0.18154963850975037, 0.011302261613309383, -0.031916841864585876, 0.170741468667984, 0.010464669205248356, 0.147503063082695, -0.1256866455078125, -0.07215689867734909, 0.057275399565696716, -0.1656828075647354, -0.10483613610267639, 0.22802947461605072, 0.0020983486901968718, -0.044141240417957306, -0.05133993923664093, -0.29730820655822754, 0.024957841262221336, -0.08550521731376648, -0.06334555149078369, 0.0030263885855674744, 0.08629690855741501, 0.07415272295475006, 0.14403119683265686, 0.10864758491516113, -0.10509280115365982, 0.09154482930898666, -0.06288447976112366, 0.06642494350671768, -0.13862261176109314, -0.11369290202856064, 0.14497755467891693, 0.08051637560129166, 0.04751574248075485, -0.004078569356352091, -0.10061930119991302, -0.15597344934940338, 0.13868440687656403, 0.0442303828895092, -0.005320635624229908, 0.017508812248706818, 0.2206863909959793, -0.054817188531160355, 0.10119912028312683, 0.04912852868437767, 0.05801928788423538, 0.030233196914196014, 0.21671774983406067, 0.13911938667297363, 0.14170503616333008, -0.06148383766412735, -0.07793346047401428, 0.04639153555035591, -0.12109498679637909, -0.015200413763523102, -0.019087303429841995, 0.041323307901620865, -0.08332780003547668, -0.00870015099644661, -0.14034594595432281, -0.010542480275034904, 0.10941877961158752, 0.09873608499765396, 0.20885978639125824, -0.16076675057411194, -0.03373157978057861, -0.06679435074329376, -0.011533889919519424, 0.24613720178604126, -0.041744329035282135, -0.027208074927330017, -0.11143393069505692, 0.15709862112998962, -0.11892133951187134, -0.08304774016141891, -0.04893038049340248, 0.03889782726764679, -0.18063804507255554, -0.014418605715036392, -0.08148260414600372, -0.1337684988975525, 0.03844839707016945, -0.13270443677902222, 0.07513254880905151, 0.09176429361104965, 0.06240558996796608, 0.004641799721866846, 0.08350400626659393, 0.13581810891628265, -0.04694121330976486, -0.11098391562700272, -0.18623335659503937, 0.13925792276859283, 0.08369189500808716, 0.11084478348493576, 0.0811254233121872, -0.07264339178800583, 0.09027896821498871, -0.0722813680768013, 0.08523727208375931, 0.10653544962406158, 0.0048670596443116665, -0.19052550196647644, -0.1377500593662262, -0.05016997084021568, 0.061098627746105194, -0.06597138941287994, -0.12070658802986145, -0.12861305475234985, 0.1194230318069458, -0.18598423898220062, -0.003859679913148284, -0.027662327513098717, 7.370202865786268e-7, -0.10256749391555786, -0.010535008274018764, 0.04330287128686905, -0.015073180198669434, -0.2149631828069687, 0.2693800926208496, -0.04126441478729248, 0.07106314599514008, -0.27324700355529785, 0.29845869541168213, 0.09338498115539551, 0.0709572359919548, 0.10674489289522171, -0.08202614635229111, 0.19949910044670105, 0.06370866298675537, -0.13325932621955872, 0.19922740757465363, -0.05329076573252678, -0.021304285153746605, -0.06996474415063858, -0.16009241342544556, 0.13598163425922394, -0.1009436771273613, 0.07789760082960129, 0.01602315716445446, -0.11380407959222794, -0.006360186263918877, 0.20630553364753723, -0.10249804705381393, 0.09091000258922577, -0.05523354932665825, 0.08084255456924438, 0.008950881659984589, -0.042901623994112015, 0.07606586068868637, -0.20052605867385864, 0.14671480655670166, 0.004940374754369259, -0.17040933668613434, 0.10567012429237366, -0.026650233194231987, 0.045215439051389694, -0.083376944065094, 0.08597341924905777, 0.02772475965321064, 0.00571465864777565, 0.05762851610779762, -0.04854647070169449, 0.05627323314547539, -0.03949100524187088, 0.034274883568286896, 0.01007858756929636, 0.14675399661064148, 0.03806460648775101, -0.23520499467849731, -0.12908954918384552, -0.12109731137752533, 0.15921780467033386, -0.2945738434791565, 0.04915889725089073, -0.019667863845825195, -0.08748866617679596, 0.20672619342803955, -0.15830273926258087, -0.022000396624207497, -0.042608506977558136, 1.0230970183679474e-34, 0.005906782578676939, -0.021003715693950653, -0.10748174786567688, -0.29581695795059204, -0.04735046252608299, -0.0030972217209637165, 0.09943441301584244, 0.09977765381336212, -0.06202375516295433, -0.09085960686206818, -0.19804102182388306 ]
https://github.com/huggingface/datasets/issues/2644
Batched `map` not allowed to return 0 items
Sounds good! Do you want me to propose a PR? I'm quite busy right now, but if it's not too urgent I could take a look next week.
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1
28
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1 Sounds good! Do you want me to propose a PR? I'm quite busy right now, but if it's not too urgent I could take a look next week.
[ 0.10346592962741852, -0.05103755369782448, 0.05301041156053543, 0.08537043631076813, 0.3112128674983978, -0.02395329438149929, 0.06728813797235489, 0.12931427359580994, 0.10950247198343277, 0.13343755900859833, -0.011103318072855473, -0.09876980632543564, -0.12331114709377289, -0.02430327609181404, -0.022159049287438393, 0.009515208192169666, -0.07344271242618561, -0.147344172000885, -0.07977228611707687, -0.11636371910572052, -0.2504235804080963, 0.05994820222258568, 0.019148409366607666, -0.05120311677455902, -0.018665390089154243, -0.10816378146409988, -0.07419333606958389, 0.0573832131922245, -0.21864323318004608, -0.08601626753807068, 0.011202795431017876, 0.012545128352940083, -0.07124994695186615, 0.03487458825111389, 0.000004723022357211448, 0.10060546547174454, 0.21582923829555511, -0.14074291288852692, 0.05750938877463341, -0.051641933619976044, 0.1732594072818756, 0.05115610733628273, 0.056150827556848526, -0.034804534167051315, -0.06077120825648308, -0.15816092491149902, -0.01345008797943592, 0.03072197549045086, 0.08593818545341492, -0.0388152077794075, -0.08665039390325546, 0.09946057945489883, -0.054652221500873566, -0.11146066337823868, 0.11429615318775177, 0.04277452453970909, 0.21994084119796753, -0.19777289032936096, -0.04888381063938141, -0.05964955687522888, 0.06429121643304825, -0.02464623935520649, -0.09277501702308655, -0.009238841943442822, -0.030201511457562447, -0.02299395017325878, -0.09845700114965439, -0.2535248398780823, -0.021873151883482933, 0.10473833978176117, -0.0334470234811306, 0.04774327576160431, -0.005100833717733622, -0.02070915512740612, -0.09955482184886932, -0.05206665024161339, -0.127995103597641, 0.13941259682178497, -0.13206128776073456, -0.029707109555602074, -0.01355043612420559, 0.11459971219301224, 0.07532382011413574, 0.11106614023447037, -0.19778162240982056, -0.040920160710811615, -0.10577769577503204, 0.18574583530426025, 0.13352282345294952, -0.04520712047815323, -0.09648589789867401, 0.058268699795007706, -0.08426781743764877, -0.05217767879366875, 0.00667685829102993, -0.009096919558942318, 0.07994285970926285, -0.193970188498497, 0.06248466670513153, -0.167885422706604, -0.06811870634555817, -0.028258956968784332, 0.05782715976238251, 0.05232635512948036, 0.08786187320947647, -0.0723494291305542, -0.11004963517189026, 0.05318240821361542, 0.04064105451107025, -0.023594431579113007, -0.04331648349761963, 0.028168093413114548, 0.0500328429043293, -0.026656948029994965, 0.05409790202975273, -0.06727446615695953, 0.14746004343032837, 0.0938730388879776, -0.15859289467334747, 0.0985352098941803, -0.07597707211971283, 0.08568594604730606, -0.011501451022922993, -0.023687167093157768, 0.06315115094184875, -0.050382282584905624, 0.1140972301363945, 0.20644861459732056, -0.007920050993561745, 0.029798436909914017, -0.04818301275372505, 0.1229119673371315, 0.08301001787185669, -0.19932089745998383, 0.1620769202709198, 0.02503754012286663, 0.09648428112268448, -0.06274518370628357, 0.08364439755678177, -0.161651149392128, -0.004002388101071119, -0.09872977435588837, 0.35645970702171326, -0.013308193534612656, -0.01422275509685278, 0.05507455766201019, 0.23932941257953644, -0.006438931915909052, 0.07729228585958481, -0.03787681832909584, -0.2881596088409424, 0.09351317584514618, 0.06328970938920975, 0.016822678968310356, -0.19130858778953552, 0.20375791192054749, -0.03372616320848465, -0.07673164457082748, -0.18991462886333466, 0.06354116648435593, 0.1996576339006424, 0.04722330719232559, -0.040963057428598404, -0.21005548536777496, 0.12285979837179184, 0.11207228899002075, -0.1119532659649849, 0.049876291304826736, 0.0194210484623909, 0.01601944863796234, 0.15974773466587067, 0.0904536172747612, -0.021413059905171394, -0.09285632520914078, -0.10917221009731293, 0.154959574341774, -0.13776428997516632, 0.07089895755052567, -0.3158476948738098, -0.0678335428237915, 0.020418215543031693, -0.09476546943187714, 0.11391622573137283, -0.308170348405838, 0.18927361071109772, -0.08775769174098969, 0.11451873928308487, -0.14764563739299774, -0.2485186904668808, 0.1467883139848709, -0.0025527412071824074, 0.02101602405309677, 0.06720877438783646, -0.2202574461698532, 0.01245991699397564, -0.10088665038347244, -0.24928143620491028, -0.21980759501457214, -0.10292762517929077, -0.10161201655864716, 0.1469530612230301, -0.05065767839550972, 0.03354916721582413, 0.02156141586601734, 0.04142637550830841, -0.1683656871318817, -0.28282320499420166, 0.13391976058483124, -0.07880294322967529, -0.15699708461761475, -0.11668308079242706, 0.10514621436595917, 0.24017654359340668, 0.008474214933812618, -0.08228892832994461, 0.055567774921655655, 0.016893185675144196, -0.14857344329357147, 0.0432237945497036, 0.09113702923059464, -0.05153198540210724, -0.0027096609119325876, 0.06454021483659744, -0.036993060261011124, 0.06673948466777802, -0.054874882102012634, 0.029635488986968994, -0.023786915466189384, 0.09403396397829056, 0.05580798164010048, -0.05003933981060982, -0.12609314918518066, 0.2237040400505066, -0.006965769454836845, -0.2140505015850067, -0.12492314726114273, -0.038138482719659805, -0.21604789793491364, 0.03259687125682831, -0.042108986526727676, -0.11508726328611374, 0.16241386532783508, 0.019221818074584007, 0.055518150329589844, -0.024411262944340706, 0.15957175195217133, -0.05076761171221733, 0.07891140133142471, -0.04691540449857712, 0.04854108765721321, 0.08888532221317291, 0.11096572130918503, -0.08547147363424301, 0.038201600313186646, -0.02446305938065052, -0.17817722260951996, -0.059765953570604324, -0.09195895493030548, -0.0008988584158942103, -0.14420846104621887, 0.3090546429157257, -0.04650966078042984, -0.08608940988779068, -0.0732213705778122, 0.16305682063102722, -0.016841942444443703, 0.04457446187734604, 0.037039864808321, -0.0135175921022892, 0.13014370203018188, 0.12836095690727234, -0.16592194139957428, 0.1256837546825409, 0.00024379054957535118, -0.024023927748203278, -0.042166415601968765, -0.06524533778429031, 0.050890497863292694, 0.062213242053985596, 0.15831059217453003, -0.038402434438467026, 0.01727881096303463, 0.14110751450061798, -0.03289074823260307, 0.04784690588712692, 0.006248275749385357, -0.01706867851316929, -0.08251067996025085, 0.05075876787304878, 0.1333746761083603, 0.006783486809581518, -0.1213095486164093, 0.03842579945921898, -0.05786991864442825, 0.007636572699993849, -0.17319798469543457, -0.12449254840612411, -0.19725766777992249, 0.043820809572935104, 0.11341246217489243, -0.052299343049526215, -0.09404480457305908, 0.14091967046260834, -0.04069030284881592, 0.03840117156505585, -0.05627140402793884, 0.2680591642856598, 0.30503925681114197, -0.1291443109512329, -0.11096431314945221, -0.013148048892617226, 0.008160651661455631, -0.09437090158462524, 0.015487545169889927, 0.1323709934949875, 0.1444994956254959, -0.14110581576824188, -0.060508836060762405, 0.25432270765304565, -0.03311895579099655, -0.10413065552711487, 0.21894891560077667, 0.013059557415544987, 0.06443575769662857, -0.00868576392531395, 0.15931718051433563, 0.0979657992720604, -0.0564199723303318, -0.019336119294166565, -0.1706845909357071, 0.022334538400173187, 0.07479188591241837, 0.024587666615843773, 0.009150058962404728, -0.06474526971578598, -0.09433849900960922, -0.039238255470991135, 0.045866649597883224, 0.13140304386615753, 0.10650960355997086, -0.16707843542099, 0.13117586076259613, -0.07857204973697662, -0.10075690597295761, 0.19371740520000458, -0.1633930206298828, 0.0209669042378664, 0.09110939502716064, 0.0643686056137085, 0.032777704298496246, 0.010559581220149994, 0.17332428693771362, -0.041781291365623474, -0.10662388056516647, -0.10713794827461243, -0.07932240515947342, -0.20115898549556732, 0.05864236503839493, -0.22886353731155396, -0.002126435050740838, 0.23860064148902893, -0.0070910206995904446, -0.003088997909799218, 0.03975456580519676, 0.09008245915174484, 0.05415996164083481, 0.11193317174911499, 0.11506588011980057, -0.10005908459424973, -0.12809857726097107, -0.0583047941327095, -0.165297731757164, -0.055091895163059235, -0.002504427684471011, -0.16744446754455566, 0.025425268337130547, 0.1033686026930809, 0.02626904472708702, 0.02392543852329254, -0.1574917733669281, 0.12816588580608368, -0.22067774832248688, -0.1152896136045456, 0.057170066982507706, 0.22243104875087738, -0.020948568359017372, 0.013446325436234474, -0.12933529913425446, -0.17824487388134003, 0.28648051619529724, 0.09645414352416992, -0.07322847098112106, -0.12532439827919006, -0.13264358043670654, 0.06501815468072891, -0.11330819129943848, -0.029294544830918312, 0.004818784538656473, 0.007522381376475096, -0.04446057602763176, 0.08002196997404099, 0.25437894463539124, -0.0029433630406856537, 0.11381201446056366, 0.06686615198850632, -0.059192098677158356, -0.07873579114675522, -0.015483066439628601, -0.0238770954310894, 0.06040159612894058, -0.025708237662911415, 0.11319771409034729, -0.01871623657643795, -0.07515352964401245, 0.02344367280602455, 0.0058206417597830296, -0.10431481152772903, 0.03997790068387985, 0.01569482684135437, -0.21036483347415924, -0.19393335282802582, -0.011783001013100147, 0.13219286501407623, 0.0367196686565876, 0.046670299023389816, -0.06833351403474808, 0.030187509953975677, -0.02380116656422615, 0.15409475564956665, 0.07489553838968277, 0.08521001785993576, 0.07136140018701553, 0.08211058378219604, -0.055661048740148544, 0.11513157188892365, 0.04266198351979256, 0.15721727907657623, -0.1336359977722168, 0.006996955256909132, -0.0532686822116375, -0.13185207545757294, 0.042951032519340515, 0.16629737615585327, -0.1377289891242981, 0.17039206624031067, 0.04773128777742386, -0.06000486761331558, 0.03507717698812485, 0.01243393961340189, 0.06490025669336319, -0.005637623835355043, -0.08428871631622314, 0.10609742254018784, -0.137169748544693, 0.08755991607904434, 0.14699867367744446, 0.2125617414712906, 0.08112894743680954, -0.05750975385308266, 0.17726270854473114, 0.12097327411174774, -0.02380429394543171, -0.027375390753149986, 0.0845351591706276, 0.05809256434440613, 0.014518671669065952, 0.2416709065437317, 0.2242240309715271, -0.026273181661963463, 0.21440742909908295, -0.03556293249130249, 0.12088450789451599, 0.007488415576517582, 0.03820687159895897, 0.08042347431182861, -0.03729700669646263, 0.09948164969682693, 0.07075800001621246, 0.035064421594142914, -0.11466645449399948, 0.08105544745922089, -0.07461067289113998, -0.030850445851683617, -0.0940062627196312, 0.011085936799645424, 0.26301008462905884, -0.030243797227740288, -0.04122322425246239, -0.16612739861011505, -0.0048260195180773735, -0.16696786880493164, -0.12966753542423248, -0.13248592615127563, -0.0018951394595205784, -0.15267112851142883, 0.1354111284017563, 0.09364454448223114, 0.0861232653260231, -0.10432472825050354, 0.037203747779130936, 0.08292076736688614, -0.026375077664852142, -0.11425155401229858, -0.017735932022333145, 0.05517103150486946, -0.23320607841014862, 0.09567131102085114, 0.016412440687417984, 0.09830014407634735, 0.0770871713757515, -0.07589925825595856, -0.01899820938706398, -0.012529954314231873, 0.041177112609148026, 0.05590156838297844, -0.16637764871120453, -0.1498640775680542, -0.15080375969409943, 0.07916469871997833, -0.057877298444509506, 0.011306756176054478, -0.0979420393705368, 0.22004930675029755, -0.1237100288271904, 0.008091353811323643, -0.006343229673802853, 0.03780686482787132, -0.07801340520381927, 0.10914257913827896, 0.15546445548534393, -0.015266676433384418, 0.18341094255447388, 0.15998835861682892, 0.05738786980509758, -0.05443457141518593, 0.021737564355134964, 0.16415025293827057, -0.12304630130529404, 0.1917165070772171, -0.06635148078203201, 0.016969187185168266, -0.33379775285720825, -0.05849229916930199, 0.006991155445575714, 0.06563960760831833, -0.16046231985092163, -0.06259732693433762, -0.16658073663711548, -0.012089986354112625, 0.0817418098449707, -0.030993808060884476, 0.1676281988620758, -0.014067133888602257, -0.0844694972038269, 0.03091396391391754, -2.446958558371202e-32, 0.06698030233383179, 0.007036398630589247, -0.044891394674777985, -0.008343975059688091, -0.11278095841407776, 0.08916909992694855, -0.17816585302352905, 0.07557383924722672, 0.09140967577695847, -0.003710993565618992, -0.1666383296251297, -0.056724026799201965, 0.1200776919722557, 0.05956966429948807, -0.0810372605919838, 0.16830340027809143, 0.03060632012784481, 0.0952155590057373, 0.014311660081148148, 0.09013251960277557, 0.18154963850975037, 0.011302261613309383, -0.031916841864585876, 0.170741468667984, 0.010464669205248356, 0.147503063082695, -0.1256866455078125, -0.07215689867734909, 0.057275399565696716, -0.1656828075647354, -0.10483613610267639, 0.22802947461605072, 0.0020983486901968718, -0.044141240417957306, -0.05133993923664093, -0.29730820655822754, 0.024957841262221336, -0.08550521731376648, -0.06334555149078369, 0.0030263885855674744, 0.08629690855741501, 0.07415272295475006, 0.14403119683265686, 0.10864758491516113, -0.10509280115365982, 0.09154482930898666, -0.06288447976112366, 0.06642494350671768, -0.13862261176109314, -0.11369290202856064, 0.14497755467891693, 0.08051637560129166, 0.04751574248075485, -0.004078569356352091, -0.10061930119991302, -0.15597344934940338, 0.13868440687656403, 0.0442303828895092, -0.005320635624229908, 0.017508812248706818, 0.2206863909959793, -0.054817188531160355, 0.10119912028312683, 0.04912852868437767, 0.05801928788423538, 0.030233196914196014, 0.21671774983406067, 0.13911938667297363, 0.14170503616333008, -0.06148383766412735, -0.07793346047401428, 0.04639153555035591, -0.12109498679637909, -0.015200413763523102, -0.019087303429841995, 0.041323307901620865, -0.08332780003547668, -0.00870015099644661, -0.14034594595432281, -0.010542480275034904, 0.10941877961158752, 0.09873608499765396, 0.20885978639125824, -0.16076675057411194, -0.03373157978057861, -0.06679435074329376, -0.011533889919519424, 0.24613720178604126, -0.041744329035282135, -0.027208074927330017, -0.11143393069505692, 0.15709862112998962, -0.11892133951187134, -0.08304774016141891, -0.04893038049340248, 0.03889782726764679, -0.18063804507255554, -0.014418605715036392, -0.08148260414600372, -0.1337684988975525, 0.03844839707016945, -0.13270443677902222, 0.07513254880905151, 0.09176429361104965, 0.06240558996796608, 0.004641799721866846, 0.08350400626659393, 0.13581810891628265, -0.04694121330976486, -0.11098391562700272, -0.18623335659503937, 0.13925792276859283, 0.08369189500808716, 0.11084478348493576, 0.0811254233121872, -0.07264339178800583, 0.09027896821498871, -0.0722813680768013, 0.08523727208375931, 0.10653544962406158, 0.0048670596443116665, -0.19052550196647644, -0.1377500593662262, -0.05016997084021568, 0.061098627746105194, -0.06597138941287994, -0.12070658802986145, -0.12861305475234985, 0.1194230318069458, -0.18598423898220062, -0.003859679913148284, -0.027662327513098717, 7.370202865786268e-7, -0.10256749391555786, -0.010535008274018764, 0.04330287128686905, -0.015073180198669434, -0.2149631828069687, 0.2693800926208496, -0.04126441478729248, 0.07106314599514008, -0.27324700355529785, 0.29845869541168213, 0.09338498115539551, 0.0709572359919548, 0.10674489289522171, -0.08202614635229111, 0.19949910044670105, 0.06370866298675537, -0.13325932621955872, 0.19922740757465363, -0.05329076573252678, -0.021304285153746605, -0.06996474415063858, -0.16009241342544556, 0.13598163425922394, -0.1009436771273613, 0.07789760082960129, 0.01602315716445446, -0.11380407959222794, -0.006360186263918877, 0.20630553364753723, -0.10249804705381393, 0.09091000258922577, -0.05523354932665825, 0.08084255456924438, 0.008950881659984589, -0.042901623994112015, 0.07606586068868637, -0.20052605867385864, 0.14671480655670166, 0.004940374754369259, -0.17040933668613434, 0.10567012429237366, -0.026650233194231987, 0.045215439051389694, -0.083376944065094, 0.08597341924905777, 0.02772475965321064, 0.00571465864777565, 0.05762851610779762, -0.04854647070169449, 0.05627323314547539, -0.03949100524187088, 0.034274883568286896, 0.01007858756929636, 0.14675399661064148, 0.03806460648775101, -0.23520499467849731, -0.12908954918384552, -0.12109731137752533, 0.15921780467033386, -0.2945738434791565, 0.04915889725089073, -0.019667863845825195, -0.08748866617679596, 0.20672619342803955, -0.15830273926258087, -0.022000396624207497, -0.042608506977558136, 1.0230970183679474e-34, 0.005906782578676939, -0.021003715693950653, -0.10748174786567688, -0.29581695795059204, -0.04735046252608299, -0.0030972217209637165, 0.09943441301584244, 0.09977765381336212, -0.06202375516295433, -0.09085960686206818, -0.19804102182388306 ]
https://github.com/huggingface/datasets/issues/2644
Batched `map` not allowed to return 0 items
Sure if you're interested feel free to open a PR :) You can also ping me anytime if you have questions or if I can help !
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1
27
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1 Sure if you're interested feel free to open a PR :) You can also ping me anytime if you have questions or if I can help !
[ 0.10346592962741852, -0.05103755369782448, 0.05301041156053543, 0.08537043631076813, 0.3112128674983978, -0.02395329438149929, 0.06728813797235489, 0.12931427359580994, 0.10950247198343277, 0.13343755900859833, -0.011103318072855473, -0.09876980632543564, -0.12331114709377289, -0.02430327609181404, -0.022159049287438393, 0.009515208192169666, -0.07344271242618561, -0.147344172000885, -0.07977228611707687, -0.11636371910572052, -0.2504235804080963, 0.05994820222258568, 0.019148409366607666, -0.05120311677455902, -0.018665390089154243, -0.10816378146409988, -0.07419333606958389, 0.0573832131922245, -0.21864323318004608, -0.08601626753807068, 0.011202795431017876, 0.012545128352940083, -0.07124994695186615, 0.03487458825111389, 0.000004723022357211448, 0.10060546547174454, 0.21582923829555511, -0.14074291288852692, 0.05750938877463341, -0.051641933619976044, 0.1732594072818756, 0.05115610733628273, 0.056150827556848526, -0.034804534167051315, -0.06077120825648308, -0.15816092491149902, -0.01345008797943592, 0.03072197549045086, 0.08593818545341492, -0.0388152077794075, -0.08665039390325546, 0.09946057945489883, -0.054652221500873566, -0.11146066337823868, 0.11429615318775177, 0.04277452453970909, 0.21994084119796753, -0.19777289032936096, -0.04888381063938141, -0.05964955687522888, 0.06429121643304825, -0.02464623935520649, -0.09277501702308655, -0.009238841943442822, -0.030201511457562447, -0.02299395017325878, -0.09845700114965439, -0.2535248398780823, -0.021873151883482933, 0.10473833978176117, -0.0334470234811306, 0.04774327576160431, -0.005100833717733622, -0.02070915512740612, -0.09955482184886932, -0.05206665024161339, -0.127995103597641, 0.13941259682178497, -0.13206128776073456, -0.029707109555602074, -0.01355043612420559, 0.11459971219301224, 0.07532382011413574, 0.11106614023447037, -0.19778162240982056, -0.040920160710811615, -0.10577769577503204, 0.18574583530426025, 0.13352282345294952, -0.04520712047815323, -0.09648589789867401, 0.058268699795007706, -0.08426781743764877, -0.05217767879366875, 0.00667685829102993, -0.009096919558942318, 0.07994285970926285, -0.193970188498497, 0.06248466670513153, -0.167885422706604, -0.06811870634555817, -0.028258956968784332, 0.05782715976238251, 0.05232635512948036, 0.08786187320947647, -0.0723494291305542, -0.11004963517189026, 0.05318240821361542, 0.04064105451107025, -0.023594431579113007, -0.04331648349761963, 0.028168093413114548, 0.0500328429043293, -0.026656948029994965, 0.05409790202975273, -0.06727446615695953, 0.14746004343032837, 0.0938730388879776, -0.15859289467334747, 0.0985352098941803, -0.07597707211971283, 0.08568594604730606, -0.011501451022922993, -0.023687167093157768, 0.06315115094184875, -0.050382282584905624, 0.1140972301363945, 0.20644861459732056, -0.007920050993561745, 0.029798436909914017, -0.04818301275372505, 0.1229119673371315, 0.08301001787185669, -0.19932089745998383, 0.1620769202709198, 0.02503754012286663, 0.09648428112268448, -0.06274518370628357, 0.08364439755678177, -0.161651149392128, -0.004002388101071119, -0.09872977435588837, 0.35645970702171326, -0.013308193534612656, -0.01422275509685278, 0.05507455766201019, 0.23932941257953644, -0.006438931915909052, 0.07729228585958481, -0.03787681832909584, -0.2881596088409424, 0.09351317584514618, 0.06328970938920975, 0.016822678968310356, -0.19130858778953552, 0.20375791192054749, -0.03372616320848465, -0.07673164457082748, -0.18991462886333466, 0.06354116648435593, 0.1996576339006424, 0.04722330719232559, -0.040963057428598404, -0.21005548536777496, 0.12285979837179184, 0.11207228899002075, -0.1119532659649849, 0.049876291304826736, 0.0194210484623909, 0.01601944863796234, 0.15974773466587067, 0.0904536172747612, -0.021413059905171394, -0.09285632520914078, -0.10917221009731293, 0.154959574341774, -0.13776428997516632, 0.07089895755052567, -0.3158476948738098, -0.0678335428237915, 0.020418215543031693, -0.09476546943187714, 0.11391622573137283, -0.308170348405838, 0.18927361071109772, -0.08775769174098969, 0.11451873928308487, -0.14764563739299774, -0.2485186904668808, 0.1467883139848709, -0.0025527412071824074, 0.02101602405309677, 0.06720877438783646, -0.2202574461698532, 0.01245991699397564, -0.10088665038347244, -0.24928143620491028, -0.21980759501457214, -0.10292762517929077, -0.10161201655864716, 0.1469530612230301, -0.05065767839550972, 0.03354916721582413, 0.02156141586601734, 0.04142637550830841, -0.1683656871318817, -0.28282320499420166, 0.13391976058483124, -0.07880294322967529, -0.15699708461761475, -0.11668308079242706, 0.10514621436595917, 0.24017654359340668, 0.008474214933812618, -0.08228892832994461, 0.055567774921655655, 0.016893185675144196, -0.14857344329357147, 0.0432237945497036, 0.09113702923059464, -0.05153198540210724, -0.0027096609119325876, 0.06454021483659744, -0.036993060261011124, 0.06673948466777802, -0.054874882102012634, 0.029635488986968994, -0.023786915466189384, 0.09403396397829056, 0.05580798164010048, -0.05003933981060982, -0.12609314918518066, 0.2237040400505066, -0.006965769454836845, -0.2140505015850067, -0.12492314726114273, -0.038138482719659805, -0.21604789793491364, 0.03259687125682831, -0.042108986526727676, -0.11508726328611374, 0.16241386532783508, 0.019221818074584007, 0.055518150329589844, -0.024411262944340706, 0.15957175195217133, -0.05076761171221733, 0.07891140133142471, -0.04691540449857712, 0.04854108765721321, 0.08888532221317291, 0.11096572130918503, -0.08547147363424301, 0.038201600313186646, -0.02446305938065052, -0.17817722260951996, -0.059765953570604324, -0.09195895493030548, -0.0008988584158942103, -0.14420846104621887, 0.3090546429157257, -0.04650966078042984, -0.08608940988779068, -0.0732213705778122, 0.16305682063102722, -0.016841942444443703, 0.04457446187734604, 0.037039864808321, -0.0135175921022892, 0.13014370203018188, 0.12836095690727234, -0.16592194139957428, 0.1256837546825409, 0.00024379054957535118, -0.024023927748203278, -0.042166415601968765, -0.06524533778429031, 0.050890497863292694, 0.062213242053985596, 0.15831059217453003, -0.038402434438467026, 0.01727881096303463, 0.14110751450061798, -0.03289074823260307, 0.04784690588712692, 0.006248275749385357, -0.01706867851316929, -0.08251067996025085, 0.05075876787304878, 0.1333746761083603, 0.006783486809581518, -0.1213095486164093, 0.03842579945921898, -0.05786991864442825, 0.007636572699993849, -0.17319798469543457, -0.12449254840612411, -0.19725766777992249, 0.043820809572935104, 0.11341246217489243, -0.052299343049526215, -0.09404480457305908, 0.14091967046260834, -0.04069030284881592, 0.03840117156505585, -0.05627140402793884, 0.2680591642856598, 0.30503925681114197, -0.1291443109512329, -0.11096431314945221, -0.013148048892617226, 0.008160651661455631, -0.09437090158462524, 0.015487545169889927, 0.1323709934949875, 0.1444994956254959, -0.14110581576824188, -0.060508836060762405, 0.25432270765304565, -0.03311895579099655, -0.10413065552711487, 0.21894891560077667, 0.013059557415544987, 0.06443575769662857, -0.00868576392531395, 0.15931718051433563, 0.0979657992720604, -0.0564199723303318, -0.019336119294166565, -0.1706845909357071, 0.022334538400173187, 0.07479188591241837, 0.024587666615843773, 0.009150058962404728, -0.06474526971578598, -0.09433849900960922, -0.039238255470991135, 0.045866649597883224, 0.13140304386615753, 0.10650960355997086, -0.16707843542099, 0.13117586076259613, -0.07857204973697662, -0.10075690597295761, 0.19371740520000458, -0.1633930206298828, 0.0209669042378664, 0.09110939502716064, 0.0643686056137085, 0.032777704298496246, 0.010559581220149994, 0.17332428693771362, -0.041781291365623474, -0.10662388056516647, -0.10713794827461243, -0.07932240515947342, -0.20115898549556732, 0.05864236503839493, -0.22886353731155396, -0.002126435050740838, 0.23860064148902893, -0.0070910206995904446, -0.003088997909799218, 0.03975456580519676, 0.09008245915174484, 0.05415996164083481, 0.11193317174911499, 0.11506588011980057, -0.10005908459424973, -0.12809857726097107, -0.0583047941327095, -0.165297731757164, -0.055091895163059235, -0.002504427684471011, -0.16744446754455566, 0.025425268337130547, 0.1033686026930809, 0.02626904472708702, 0.02392543852329254, -0.1574917733669281, 0.12816588580608368, -0.22067774832248688, -0.1152896136045456, 0.057170066982507706, 0.22243104875087738, -0.020948568359017372, 0.013446325436234474, -0.12933529913425446, -0.17824487388134003, 0.28648051619529724, 0.09645414352416992, -0.07322847098112106, -0.12532439827919006, -0.13264358043670654, 0.06501815468072891, -0.11330819129943848, -0.029294544830918312, 0.004818784538656473, 0.007522381376475096, -0.04446057602763176, 0.08002196997404099, 0.25437894463539124, -0.0029433630406856537, 0.11381201446056366, 0.06686615198850632, -0.059192098677158356, -0.07873579114675522, -0.015483066439628601, -0.0238770954310894, 0.06040159612894058, -0.025708237662911415, 0.11319771409034729, -0.01871623657643795, -0.07515352964401245, 0.02344367280602455, 0.0058206417597830296, -0.10431481152772903, 0.03997790068387985, 0.01569482684135437, -0.21036483347415924, -0.19393335282802582, -0.011783001013100147, 0.13219286501407623, 0.0367196686565876, 0.046670299023389816, -0.06833351403474808, 0.030187509953975677, -0.02380116656422615, 0.15409475564956665, 0.07489553838968277, 0.08521001785993576, 0.07136140018701553, 0.08211058378219604, -0.055661048740148544, 0.11513157188892365, 0.04266198351979256, 0.15721727907657623, -0.1336359977722168, 0.006996955256909132, -0.0532686822116375, -0.13185207545757294, 0.042951032519340515, 0.16629737615585327, -0.1377289891242981, 0.17039206624031067, 0.04773128777742386, -0.06000486761331558, 0.03507717698812485, 0.01243393961340189, 0.06490025669336319, -0.005637623835355043, -0.08428871631622314, 0.10609742254018784, -0.137169748544693, 0.08755991607904434, 0.14699867367744446, 0.2125617414712906, 0.08112894743680954, -0.05750975385308266, 0.17726270854473114, 0.12097327411174774, -0.02380429394543171, -0.027375390753149986, 0.0845351591706276, 0.05809256434440613, 0.014518671669065952, 0.2416709065437317, 0.2242240309715271, -0.026273181661963463, 0.21440742909908295, -0.03556293249130249, 0.12088450789451599, 0.007488415576517582, 0.03820687159895897, 0.08042347431182861, -0.03729700669646263, 0.09948164969682693, 0.07075800001621246, 0.035064421594142914, -0.11466645449399948, 0.08105544745922089, -0.07461067289113998, -0.030850445851683617, -0.0940062627196312, 0.011085936799645424, 0.26301008462905884, -0.030243797227740288, -0.04122322425246239, -0.16612739861011505, -0.0048260195180773735, -0.16696786880493164, -0.12966753542423248, -0.13248592615127563, -0.0018951394595205784, -0.15267112851142883, 0.1354111284017563, 0.09364454448223114, 0.0861232653260231, -0.10432472825050354, 0.037203747779130936, 0.08292076736688614, -0.026375077664852142, -0.11425155401229858, -0.017735932022333145, 0.05517103150486946, -0.23320607841014862, 0.09567131102085114, 0.016412440687417984, 0.09830014407634735, 0.0770871713757515, -0.07589925825595856, -0.01899820938706398, -0.012529954314231873, 0.041177112609148026, 0.05590156838297844, -0.16637764871120453, -0.1498640775680542, -0.15080375969409943, 0.07916469871997833, -0.057877298444509506, 0.011306756176054478, -0.0979420393705368, 0.22004930675029755, -0.1237100288271904, 0.008091353811323643, -0.006343229673802853, 0.03780686482787132, -0.07801340520381927, 0.10914257913827896, 0.15546445548534393, -0.015266676433384418, 0.18341094255447388, 0.15998835861682892, 0.05738786980509758, -0.05443457141518593, 0.021737564355134964, 0.16415025293827057, -0.12304630130529404, 0.1917165070772171, -0.06635148078203201, 0.016969187185168266, -0.33379775285720825, -0.05849229916930199, 0.006991155445575714, 0.06563960760831833, -0.16046231985092163, -0.06259732693433762, -0.16658073663711548, -0.012089986354112625, 0.0817418098449707, -0.030993808060884476, 0.1676281988620758, -0.014067133888602257, -0.0844694972038269, 0.03091396391391754, -2.446958558371202e-32, 0.06698030233383179, 0.007036398630589247, -0.044891394674777985, -0.008343975059688091, -0.11278095841407776, 0.08916909992694855, -0.17816585302352905, 0.07557383924722672, 0.09140967577695847, -0.003710993565618992, -0.1666383296251297, -0.056724026799201965, 0.1200776919722557, 0.05956966429948807, -0.0810372605919838, 0.16830340027809143, 0.03060632012784481, 0.0952155590057373, 0.014311660081148148, 0.09013251960277557, 0.18154963850975037, 0.011302261613309383, -0.031916841864585876, 0.170741468667984, 0.010464669205248356, 0.147503063082695, -0.1256866455078125, -0.07215689867734909, 0.057275399565696716, -0.1656828075647354, -0.10483613610267639, 0.22802947461605072, 0.0020983486901968718, -0.044141240417957306, -0.05133993923664093, -0.29730820655822754, 0.024957841262221336, -0.08550521731376648, -0.06334555149078369, 0.0030263885855674744, 0.08629690855741501, 0.07415272295475006, 0.14403119683265686, 0.10864758491516113, -0.10509280115365982, 0.09154482930898666, -0.06288447976112366, 0.06642494350671768, -0.13862261176109314, -0.11369290202856064, 0.14497755467891693, 0.08051637560129166, 0.04751574248075485, -0.004078569356352091, -0.10061930119991302, -0.15597344934940338, 0.13868440687656403, 0.0442303828895092, -0.005320635624229908, 0.017508812248706818, 0.2206863909959793, -0.054817188531160355, 0.10119912028312683, 0.04912852868437767, 0.05801928788423538, 0.030233196914196014, 0.21671774983406067, 0.13911938667297363, 0.14170503616333008, -0.06148383766412735, -0.07793346047401428, 0.04639153555035591, -0.12109498679637909, -0.015200413763523102, -0.019087303429841995, 0.041323307901620865, -0.08332780003547668, -0.00870015099644661, -0.14034594595432281, -0.010542480275034904, 0.10941877961158752, 0.09873608499765396, 0.20885978639125824, -0.16076675057411194, -0.03373157978057861, -0.06679435074329376, -0.011533889919519424, 0.24613720178604126, -0.041744329035282135, -0.027208074927330017, -0.11143393069505692, 0.15709862112998962, -0.11892133951187134, -0.08304774016141891, -0.04893038049340248, 0.03889782726764679, -0.18063804507255554, -0.014418605715036392, -0.08148260414600372, -0.1337684988975525, 0.03844839707016945, -0.13270443677902222, 0.07513254880905151, 0.09176429361104965, 0.06240558996796608, 0.004641799721866846, 0.08350400626659393, 0.13581810891628265, -0.04694121330976486, -0.11098391562700272, -0.18623335659503937, 0.13925792276859283, 0.08369189500808716, 0.11084478348493576, 0.0811254233121872, -0.07264339178800583, 0.09027896821498871, -0.0722813680768013, 0.08523727208375931, 0.10653544962406158, 0.0048670596443116665, -0.19052550196647644, -0.1377500593662262, -0.05016997084021568, 0.061098627746105194, -0.06597138941287994, -0.12070658802986145, -0.12861305475234985, 0.1194230318069458, -0.18598423898220062, -0.003859679913148284, -0.027662327513098717, 7.370202865786268e-7, -0.10256749391555786, -0.010535008274018764, 0.04330287128686905, -0.015073180198669434, -0.2149631828069687, 0.2693800926208496, -0.04126441478729248, 0.07106314599514008, -0.27324700355529785, 0.29845869541168213, 0.09338498115539551, 0.0709572359919548, 0.10674489289522171, -0.08202614635229111, 0.19949910044670105, 0.06370866298675537, -0.13325932621955872, 0.19922740757465363, -0.05329076573252678, -0.021304285153746605, -0.06996474415063858, -0.16009241342544556, 0.13598163425922394, -0.1009436771273613, 0.07789760082960129, 0.01602315716445446, -0.11380407959222794, -0.006360186263918877, 0.20630553364753723, -0.10249804705381393, 0.09091000258922577, -0.05523354932665825, 0.08084255456924438, 0.008950881659984589, -0.042901623994112015, 0.07606586068868637, -0.20052605867385864, 0.14671480655670166, 0.004940374754369259, -0.17040933668613434, 0.10567012429237366, -0.026650233194231987, 0.045215439051389694, -0.083376944065094, 0.08597341924905777, 0.02772475965321064, 0.00571465864777565, 0.05762851610779762, -0.04854647070169449, 0.05627323314547539, -0.03949100524187088, 0.034274883568286896, 0.01007858756929636, 0.14675399661064148, 0.03806460648775101, -0.23520499467849731, -0.12908954918384552, -0.12109731137752533, 0.15921780467033386, -0.2945738434791565, 0.04915889725089073, -0.019667863845825195, -0.08748866617679596, 0.20672619342803955, -0.15830273926258087, -0.022000396624207497, -0.042608506977558136, 1.0230970183679474e-34, 0.005906782578676939, -0.021003715693950653, -0.10748174786567688, -0.29581695795059204, -0.04735046252608299, -0.0030972217209637165, 0.09943441301584244, 0.09977765381336212, -0.06202375516295433, -0.09085960686206818, -0.19804102182388306 ]
https://github.com/huggingface/datasets/issues/2644
Batched `map` not allowed to return 0 items
Sorry to ping you, @lhoestq, did you have a chance to take a look at the proposed PR? Thank you!
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1
20
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1 Sorry to ping you, @lhoestq, did you have a chance to take a look at the proposed PR? Thank you!
[ 0.10346592962741852, -0.05103755369782448, 0.05301041156053543, 0.08537043631076813, 0.3112128674983978, -0.02395329438149929, 0.06728813797235489, 0.12931427359580994, 0.10950247198343277, 0.13343755900859833, -0.011103318072855473, -0.09876980632543564, -0.12331114709377289, -0.02430327609181404, -0.022159049287438393, 0.009515208192169666, -0.07344271242618561, -0.147344172000885, -0.07977228611707687, -0.11636371910572052, -0.2504235804080963, 0.05994820222258568, 0.019148409366607666, -0.05120311677455902, -0.018665390089154243, -0.10816378146409988, -0.07419333606958389, 0.0573832131922245, -0.21864323318004608, -0.08601626753807068, 0.011202795431017876, 0.012545128352940083, -0.07124994695186615, 0.03487458825111389, 0.000004723022357211448, 0.10060546547174454, 0.21582923829555511, -0.14074291288852692, 0.05750938877463341, -0.051641933619976044, 0.1732594072818756, 0.05115610733628273, 0.056150827556848526, -0.034804534167051315, -0.06077120825648308, -0.15816092491149902, -0.01345008797943592, 0.03072197549045086, 0.08593818545341492, -0.0388152077794075, -0.08665039390325546, 0.09946057945489883, -0.054652221500873566, -0.11146066337823868, 0.11429615318775177, 0.04277452453970909, 0.21994084119796753, -0.19777289032936096, -0.04888381063938141, -0.05964955687522888, 0.06429121643304825, -0.02464623935520649, -0.09277501702308655, -0.009238841943442822, -0.030201511457562447, -0.02299395017325878, -0.09845700114965439, -0.2535248398780823, -0.021873151883482933, 0.10473833978176117, -0.0334470234811306, 0.04774327576160431, -0.005100833717733622, -0.02070915512740612, -0.09955482184886932, -0.05206665024161339, -0.127995103597641, 0.13941259682178497, -0.13206128776073456, -0.029707109555602074, -0.01355043612420559, 0.11459971219301224, 0.07532382011413574, 0.11106614023447037, -0.19778162240982056, -0.040920160710811615, -0.10577769577503204, 0.18574583530426025, 0.13352282345294952, -0.04520712047815323, -0.09648589789867401, 0.058268699795007706, -0.08426781743764877, -0.05217767879366875, 0.00667685829102993, -0.009096919558942318, 0.07994285970926285, -0.193970188498497, 0.06248466670513153, -0.167885422706604, -0.06811870634555817, -0.028258956968784332, 0.05782715976238251, 0.05232635512948036, 0.08786187320947647, -0.0723494291305542, -0.11004963517189026, 0.05318240821361542, 0.04064105451107025, -0.023594431579113007, -0.04331648349761963, 0.028168093413114548, 0.0500328429043293, -0.026656948029994965, 0.05409790202975273, -0.06727446615695953, 0.14746004343032837, 0.0938730388879776, -0.15859289467334747, 0.0985352098941803, -0.07597707211971283, 0.08568594604730606, -0.011501451022922993, -0.023687167093157768, 0.06315115094184875, -0.050382282584905624, 0.1140972301363945, 0.20644861459732056, -0.007920050993561745, 0.029798436909914017, -0.04818301275372505, 0.1229119673371315, 0.08301001787185669, -0.19932089745998383, 0.1620769202709198, 0.02503754012286663, 0.09648428112268448, -0.06274518370628357, 0.08364439755678177, -0.161651149392128, -0.004002388101071119, -0.09872977435588837, 0.35645970702171326, -0.013308193534612656, -0.01422275509685278, 0.05507455766201019, 0.23932941257953644, -0.006438931915909052, 0.07729228585958481, -0.03787681832909584, -0.2881596088409424, 0.09351317584514618, 0.06328970938920975, 0.016822678968310356, -0.19130858778953552, 0.20375791192054749, -0.03372616320848465, -0.07673164457082748, -0.18991462886333466, 0.06354116648435593, 0.1996576339006424, 0.04722330719232559, -0.040963057428598404, -0.21005548536777496, 0.12285979837179184, 0.11207228899002075, -0.1119532659649849, 0.049876291304826736, 0.0194210484623909, 0.01601944863796234, 0.15974773466587067, 0.0904536172747612, -0.021413059905171394, -0.09285632520914078, -0.10917221009731293, 0.154959574341774, -0.13776428997516632, 0.07089895755052567, -0.3158476948738098, -0.0678335428237915, 0.020418215543031693, -0.09476546943187714, 0.11391622573137283, -0.308170348405838, 0.18927361071109772, -0.08775769174098969, 0.11451873928308487, -0.14764563739299774, -0.2485186904668808, 0.1467883139848709, -0.0025527412071824074, 0.02101602405309677, 0.06720877438783646, -0.2202574461698532, 0.01245991699397564, -0.10088665038347244, -0.24928143620491028, -0.21980759501457214, -0.10292762517929077, -0.10161201655864716, 0.1469530612230301, -0.05065767839550972, 0.03354916721582413, 0.02156141586601734, 0.04142637550830841, -0.1683656871318817, -0.28282320499420166, 0.13391976058483124, -0.07880294322967529, -0.15699708461761475, -0.11668308079242706, 0.10514621436595917, 0.24017654359340668, 0.008474214933812618, -0.08228892832994461, 0.055567774921655655, 0.016893185675144196, -0.14857344329357147, 0.0432237945497036, 0.09113702923059464, -0.05153198540210724, -0.0027096609119325876, 0.06454021483659744, -0.036993060261011124, 0.06673948466777802, -0.054874882102012634, 0.029635488986968994, -0.023786915466189384, 0.09403396397829056, 0.05580798164010048, -0.05003933981060982, -0.12609314918518066, 0.2237040400505066, -0.006965769454836845, -0.2140505015850067, -0.12492314726114273, -0.038138482719659805, -0.21604789793491364, 0.03259687125682831, -0.042108986526727676, -0.11508726328611374, 0.16241386532783508, 0.019221818074584007, 0.055518150329589844, -0.024411262944340706, 0.15957175195217133, -0.05076761171221733, 0.07891140133142471, -0.04691540449857712, 0.04854108765721321, 0.08888532221317291, 0.11096572130918503, -0.08547147363424301, 0.038201600313186646, -0.02446305938065052, -0.17817722260951996, -0.059765953570604324, -0.09195895493030548, -0.0008988584158942103, -0.14420846104621887, 0.3090546429157257, -0.04650966078042984, -0.08608940988779068, -0.0732213705778122, 0.16305682063102722, -0.016841942444443703, 0.04457446187734604, 0.037039864808321, -0.0135175921022892, 0.13014370203018188, 0.12836095690727234, -0.16592194139957428, 0.1256837546825409, 0.00024379054957535118, -0.024023927748203278, -0.042166415601968765, -0.06524533778429031, 0.050890497863292694, 0.062213242053985596, 0.15831059217453003, -0.038402434438467026, 0.01727881096303463, 0.14110751450061798, -0.03289074823260307, 0.04784690588712692, 0.006248275749385357, -0.01706867851316929, -0.08251067996025085, 0.05075876787304878, 0.1333746761083603, 0.006783486809581518, -0.1213095486164093, 0.03842579945921898, -0.05786991864442825, 0.007636572699993849, -0.17319798469543457, -0.12449254840612411, -0.19725766777992249, 0.043820809572935104, 0.11341246217489243, -0.052299343049526215, -0.09404480457305908, 0.14091967046260834, -0.04069030284881592, 0.03840117156505585, -0.05627140402793884, 0.2680591642856598, 0.30503925681114197, -0.1291443109512329, -0.11096431314945221, -0.013148048892617226, 0.008160651661455631, -0.09437090158462524, 0.015487545169889927, 0.1323709934949875, 0.1444994956254959, -0.14110581576824188, -0.060508836060762405, 0.25432270765304565, -0.03311895579099655, -0.10413065552711487, 0.21894891560077667, 0.013059557415544987, 0.06443575769662857, -0.00868576392531395, 0.15931718051433563, 0.0979657992720604, -0.0564199723303318, -0.019336119294166565, -0.1706845909357071, 0.022334538400173187, 0.07479188591241837, 0.024587666615843773, 0.009150058962404728, -0.06474526971578598, -0.09433849900960922, -0.039238255470991135, 0.045866649597883224, 0.13140304386615753, 0.10650960355997086, -0.16707843542099, 0.13117586076259613, -0.07857204973697662, -0.10075690597295761, 0.19371740520000458, -0.1633930206298828, 0.0209669042378664, 0.09110939502716064, 0.0643686056137085, 0.032777704298496246, 0.010559581220149994, 0.17332428693771362, -0.041781291365623474, -0.10662388056516647, -0.10713794827461243, -0.07932240515947342, -0.20115898549556732, 0.05864236503839493, -0.22886353731155396, -0.002126435050740838, 0.23860064148902893, -0.0070910206995904446, -0.003088997909799218, 0.03975456580519676, 0.09008245915174484, 0.05415996164083481, 0.11193317174911499, 0.11506588011980057, -0.10005908459424973, -0.12809857726097107, -0.0583047941327095, -0.165297731757164, -0.055091895163059235, -0.002504427684471011, -0.16744446754455566, 0.025425268337130547, 0.1033686026930809, 0.02626904472708702, 0.02392543852329254, -0.1574917733669281, 0.12816588580608368, -0.22067774832248688, -0.1152896136045456, 0.057170066982507706, 0.22243104875087738, -0.020948568359017372, 0.013446325436234474, -0.12933529913425446, -0.17824487388134003, 0.28648051619529724, 0.09645414352416992, -0.07322847098112106, -0.12532439827919006, -0.13264358043670654, 0.06501815468072891, -0.11330819129943848, -0.029294544830918312, 0.004818784538656473, 0.007522381376475096, -0.04446057602763176, 0.08002196997404099, 0.25437894463539124, -0.0029433630406856537, 0.11381201446056366, 0.06686615198850632, -0.059192098677158356, -0.07873579114675522, -0.015483066439628601, -0.0238770954310894, 0.06040159612894058, -0.025708237662911415, 0.11319771409034729, -0.01871623657643795, -0.07515352964401245, 0.02344367280602455, 0.0058206417597830296, -0.10431481152772903, 0.03997790068387985, 0.01569482684135437, -0.21036483347415924, -0.19393335282802582, -0.011783001013100147, 0.13219286501407623, 0.0367196686565876, 0.046670299023389816, -0.06833351403474808, 0.030187509953975677, -0.02380116656422615, 0.15409475564956665, 0.07489553838968277, 0.08521001785993576, 0.07136140018701553, 0.08211058378219604, -0.055661048740148544, 0.11513157188892365, 0.04266198351979256, 0.15721727907657623, -0.1336359977722168, 0.006996955256909132, -0.0532686822116375, -0.13185207545757294, 0.042951032519340515, 0.16629737615585327, -0.1377289891242981, 0.17039206624031067, 0.04773128777742386, -0.06000486761331558, 0.03507717698812485, 0.01243393961340189, 0.06490025669336319, -0.005637623835355043, -0.08428871631622314, 0.10609742254018784, -0.137169748544693, 0.08755991607904434, 0.14699867367744446, 0.2125617414712906, 0.08112894743680954, -0.05750975385308266, 0.17726270854473114, 0.12097327411174774, -0.02380429394543171, -0.027375390753149986, 0.0845351591706276, 0.05809256434440613, 0.014518671669065952, 0.2416709065437317, 0.2242240309715271, -0.026273181661963463, 0.21440742909908295, -0.03556293249130249, 0.12088450789451599, 0.007488415576517582, 0.03820687159895897, 0.08042347431182861, -0.03729700669646263, 0.09948164969682693, 0.07075800001621246, 0.035064421594142914, -0.11466645449399948, 0.08105544745922089, -0.07461067289113998, -0.030850445851683617, -0.0940062627196312, 0.011085936799645424, 0.26301008462905884, -0.030243797227740288, -0.04122322425246239, -0.16612739861011505, -0.0048260195180773735, -0.16696786880493164, -0.12966753542423248, -0.13248592615127563, -0.0018951394595205784, -0.15267112851142883, 0.1354111284017563, 0.09364454448223114, 0.0861232653260231, -0.10432472825050354, 0.037203747779130936, 0.08292076736688614, -0.026375077664852142, -0.11425155401229858, -0.017735932022333145, 0.05517103150486946, -0.23320607841014862, 0.09567131102085114, 0.016412440687417984, 0.09830014407634735, 0.0770871713757515, -0.07589925825595856, -0.01899820938706398, -0.012529954314231873, 0.041177112609148026, 0.05590156838297844, -0.16637764871120453, -0.1498640775680542, -0.15080375969409943, 0.07916469871997833, -0.057877298444509506, 0.011306756176054478, -0.0979420393705368, 0.22004930675029755, -0.1237100288271904, 0.008091353811323643, -0.006343229673802853, 0.03780686482787132, -0.07801340520381927, 0.10914257913827896, 0.15546445548534393, -0.015266676433384418, 0.18341094255447388, 0.15998835861682892, 0.05738786980509758, -0.05443457141518593, 0.021737564355134964, 0.16415025293827057, -0.12304630130529404, 0.1917165070772171, -0.06635148078203201, 0.016969187185168266, -0.33379775285720825, -0.05849229916930199, 0.006991155445575714, 0.06563960760831833, -0.16046231985092163, -0.06259732693433762, -0.16658073663711548, -0.012089986354112625, 0.0817418098449707, -0.030993808060884476, 0.1676281988620758, -0.014067133888602257, -0.0844694972038269, 0.03091396391391754, -2.446958558371202e-32, 0.06698030233383179, 0.007036398630589247, -0.044891394674777985, -0.008343975059688091, -0.11278095841407776, 0.08916909992694855, -0.17816585302352905, 0.07557383924722672, 0.09140967577695847, -0.003710993565618992, -0.1666383296251297, -0.056724026799201965, 0.1200776919722557, 0.05956966429948807, -0.0810372605919838, 0.16830340027809143, 0.03060632012784481, 0.0952155590057373, 0.014311660081148148, 0.09013251960277557, 0.18154963850975037, 0.011302261613309383, -0.031916841864585876, 0.170741468667984, 0.010464669205248356, 0.147503063082695, -0.1256866455078125, -0.07215689867734909, 0.057275399565696716, -0.1656828075647354, -0.10483613610267639, 0.22802947461605072, 0.0020983486901968718, -0.044141240417957306, -0.05133993923664093, -0.29730820655822754, 0.024957841262221336, -0.08550521731376648, -0.06334555149078369, 0.0030263885855674744, 0.08629690855741501, 0.07415272295475006, 0.14403119683265686, 0.10864758491516113, -0.10509280115365982, 0.09154482930898666, -0.06288447976112366, 0.06642494350671768, -0.13862261176109314, -0.11369290202856064, 0.14497755467891693, 0.08051637560129166, 0.04751574248075485, -0.004078569356352091, -0.10061930119991302, -0.15597344934940338, 0.13868440687656403, 0.0442303828895092, -0.005320635624229908, 0.017508812248706818, 0.2206863909959793, -0.054817188531160355, 0.10119912028312683, 0.04912852868437767, 0.05801928788423538, 0.030233196914196014, 0.21671774983406067, 0.13911938667297363, 0.14170503616333008, -0.06148383766412735, -0.07793346047401428, 0.04639153555035591, -0.12109498679637909, -0.015200413763523102, -0.019087303429841995, 0.041323307901620865, -0.08332780003547668, -0.00870015099644661, -0.14034594595432281, -0.010542480275034904, 0.10941877961158752, 0.09873608499765396, 0.20885978639125824, -0.16076675057411194, -0.03373157978057861, -0.06679435074329376, -0.011533889919519424, 0.24613720178604126, -0.041744329035282135, -0.027208074927330017, -0.11143393069505692, 0.15709862112998962, -0.11892133951187134, -0.08304774016141891, -0.04893038049340248, 0.03889782726764679, -0.18063804507255554, -0.014418605715036392, -0.08148260414600372, -0.1337684988975525, 0.03844839707016945, -0.13270443677902222, 0.07513254880905151, 0.09176429361104965, 0.06240558996796608, 0.004641799721866846, 0.08350400626659393, 0.13581810891628265, -0.04694121330976486, -0.11098391562700272, -0.18623335659503937, 0.13925792276859283, 0.08369189500808716, 0.11084478348493576, 0.0811254233121872, -0.07264339178800583, 0.09027896821498871, -0.0722813680768013, 0.08523727208375931, 0.10653544962406158, 0.0048670596443116665, -0.19052550196647644, -0.1377500593662262, -0.05016997084021568, 0.061098627746105194, -0.06597138941287994, -0.12070658802986145, -0.12861305475234985, 0.1194230318069458, -0.18598423898220062, -0.003859679913148284, -0.027662327513098717, 7.370202865786268e-7, -0.10256749391555786, -0.010535008274018764, 0.04330287128686905, -0.015073180198669434, -0.2149631828069687, 0.2693800926208496, -0.04126441478729248, 0.07106314599514008, -0.27324700355529785, 0.29845869541168213, 0.09338498115539551, 0.0709572359919548, 0.10674489289522171, -0.08202614635229111, 0.19949910044670105, 0.06370866298675537, -0.13325932621955872, 0.19922740757465363, -0.05329076573252678, -0.021304285153746605, -0.06996474415063858, -0.16009241342544556, 0.13598163425922394, -0.1009436771273613, 0.07789760082960129, 0.01602315716445446, -0.11380407959222794, -0.006360186263918877, 0.20630553364753723, -0.10249804705381393, 0.09091000258922577, -0.05523354932665825, 0.08084255456924438, 0.008950881659984589, -0.042901623994112015, 0.07606586068868637, -0.20052605867385864, 0.14671480655670166, 0.004940374754369259, -0.17040933668613434, 0.10567012429237366, -0.026650233194231987, 0.045215439051389694, -0.083376944065094, 0.08597341924905777, 0.02772475965321064, 0.00571465864777565, 0.05762851610779762, -0.04854647070169449, 0.05627323314547539, -0.03949100524187088, 0.034274883568286896, 0.01007858756929636, 0.14675399661064148, 0.03806460648775101, -0.23520499467849731, -0.12908954918384552, -0.12109731137752533, 0.15921780467033386, -0.2945738434791565, 0.04915889725089073, -0.019667863845825195, -0.08748866617679596, 0.20672619342803955, -0.15830273926258087, -0.022000396624207497, -0.042608506977558136, 1.0230970183679474e-34, 0.005906782578676939, -0.021003715693950653, -0.10748174786567688, -0.29581695795059204, -0.04735046252608299, -0.0030972217209637165, 0.09943441301584244, 0.09977765381336212, -0.06202375516295433, -0.09085960686206818, -0.19804102182388306 ]
https://github.com/huggingface/datasets/issues/2644
Batched `map` not allowed to return 0 items
Yes and it's all good, thank you :) Feel free to close this issue if it's good for you
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1
19
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1 Yes and it's all good, thank you :) Feel free to close this issue if it's good for you
[ 0.10346592962741852, -0.05103755369782448, 0.05301041156053543, 0.08537043631076813, 0.3112128674983978, -0.02395329438149929, 0.06728813797235489, 0.12931427359580994, 0.10950247198343277, 0.13343755900859833, -0.011103318072855473, -0.09876980632543564, -0.12331114709377289, -0.02430327609181404, -0.022159049287438393, 0.009515208192169666, -0.07344271242618561, -0.147344172000885, -0.07977228611707687, -0.11636371910572052, -0.2504235804080963, 0.05994820222258568, 0.019148409366607666, -0.05120311677455902, -0.018665390089154243, -0.10816378146409988, -0.07419333606958389, 0.0573832131922245, -0.21864323318004608, -0.08601626753807068, 0.011202795431017876, 0.012545128352940083, -0.07124994695186615, 0.03487458825111389, 0.000004723022357211448, 0.10060546547174454, 0.21582923829555511, -0.14074291288852692, 0.05750938877463341, -0.051641933619976044, 0.1732594072818756, 0.05115610733628273, 0.056150827556848526, -0.034804534167051315, -0.06077120825648308, -0.15816092491149902, -0.01345008797943592, 0.03072197549045086, 0.08593818545341492, -0.0388152077794075, -0.08665039390325546, 0.09946057945489883, -0.054652221500873566, -0.11146066337823868, 0.11429615318775177, 0.04277452453970909, 0.21994084119796753, -0.19777289032936096, -0.04888381063938141, -0.05964955687522888, 0.06429121643304825, -0.02464623935520649, -0.09277501702308655, -0.009238841943442822, -0.030201511457562447, -0.02299395017325878, -0.09845700114965439, -0.2535248398780823, -0.021873151883482933, 0.10473833978176117, -0.0334470234811306, 0.04774327576160431, -0.005100833717733622, -0.02070915512740612, -0.09955482184886932, -0.05206665024161339, -0.127995103597641, 0.13941259682178497, -0.13206128776073456, -0.029707109555602074, -0.01355043612420559, 0.11459971219301224, 0.07532382011413574, 0.11106614023447037, -0.19778162240982056, -0.040920160710811615, -0.10577769577503204, 0.18574583530426025, 0.13352282345294952, -0.04520712047815323, -0.09648589789867401, 0.058268699795007706, -0.08426781743764877, -0.05217767879366875, 0.00667685829102993, -0.009096919558942318, 0.07994285970926285, -0.193970188498497, 0.06248466670513153, -0.167885422706604, -0.06811870634555817, -0.028258956968784332, 0.05782715976238251, 0.05232635512948036, 0.08786187320947647, -0.0723494291305542, -0.11004963517189026, 0.05318240821361542, 0.04064105451107025, -0.023594431579113007, -0.04331648349761963, 0.028168093413114548, 0.0500328429043293, -0.026656948029994965, 0.05409790202975273, -0.06727446615695953, 0.14746004343032837, 0.0938730388879776, -0.15859289467334747, 0.0985352098941803, -0.07597707211971283, 0.08568594604730606, -0.011501451022922993, -0.023687167093157768, 0.06315115094184875, -0.050382282584905624, 0.1140972301363945, 0.20644861459732056, -0.007920050993561745, 0.029798436909914017, -0.04818301275372505, 0.1229119673371315, 0.08301001787185669, -0.19932089745998383, 0.1620769202709198, 0.02503754012286663, 0.09648428112268448, -0.06274518370628357, 0.08364439755678177, -0.161651149392128, -0.004002388101071119, -0.09872977435588837, 0.35645970702171326, -0.013308193534612656, -0.01422275509685278, 0.05507455766201019, 0.23932941257953644, -0.006438931915909052, 0.07729228585958481, -0.03787681832909584, -0.2881596088409424, 0.09351317584514618, 0.06328970938920975, 0.016822678968310356, -0.19130858778953552, 0.20375791192054749, -0.03372616320848465, -0.07673164457082748, -0.18991462886333466, 0.06354116648435593, 0.1996576339006424, 0.04722330719232559, -0.040963057428598404, -0.21005548536777496, 0.12285979837179184, 0.11207228899002075, -0.1119532659649849, 0.049876291304826736, 0.0194210484623909, 0.01601944863796234, 0.15974773466587067, 0.0904536172747612, -0.021413059905171394, -0.09285632520914078, -0.10917221009731293, 0.154959574341774, -0.13776428997516632, 0.07089895755052567, -0.3158476948738098, -0.0678335428237915, 0.020418215543031693, -0.09476546943187714, 0.11391622573137283, -0.308170348405838, 0.18927361071109772, -0.08775769174098969, 0.11451873928308487, -0.14764563739299774, -0.2485186904668808, 0.1467883139848709, -0.0025527412071824074, 0.02101602405309677, 0.06720877438783646, -0.2202574461698532, 0.01245991699397564, -0.10088665038347244, -0.24928143620491028, -0.21980759501457214, -0.10292762517929077, -0.10161201655864716, 0.1469530612230301, -0.05065767839550972, 0.03354916721582413, 0.02156141586601734, 0.04142637550830841, -0.1683656871318817, -0.28282320499420166, 0.13391976058483124, -0.07880294322967529, -0.15699708461761475, -0.11668308079242706, 0.10514621436595917, 0.24017654359340668, 0.008474214933812618, -0.08228892832994461, 0.055567774921655655, 0.016893185675144196, -0.14857344329357147, 0.0432237945497036, 0.09113702923059464, -0.05153198540210724, -0.0027096609119325876, 0.06454021483659744, -0.036993060261011124, 0.06673948466777802, -0.054874882102012634, 0.029635488986968994, -0.023786915466189384, 0.09403396397829056, 0.05580798164010048, -0.05003933981060982, -0.12609314918518066, 0.2237040400505066, -0.006965769454836845, -0.2140505015850067, -0.12492314726114273, -0.038138482719659805, -0.21604789793491364, 0.03259687125682831, -0.042108986526727676, -0.11508726328611374, 0.16241386532783508, 0.019221818074584007, 0.055518150329589844, -0.024411262944340706, 0.15957175195217133, -0.05076761171221733, 0.07891140133142471, -0.04691540449857712, 0.04854108765721321, 0.08888532221317291, 0.11096572130918503, -0.08547147363424301, 0.038201600313186646, -0.02446305938065052, -0.17817722260951996, -0.059765953570604324, -0.09195895493030548, -0.0008988584158942103, -0.14420846104621887, 0.3090546429157257, -0.04650966078042984, -0.08608940988779068, -0.0732213705778122, 0.16305682063102722, -0.016841942444443703, 0.04457446187734604, 0.037039864808321, -0.0135175921022892, 0.13014370203018188, 0.12836095690727234, -0.16592194139957428, 0.1256837546825409, 0.00024379054957535118, -0.024023927748203278, -0.042166415601968765, -0.06524533778429031, 0.050890497863292694, 0.062213242053985596, 0.15831059217453003, -0.038402434438467026, 0.01727881096303463, 0.14110751450061798, -0.03289074823260307, 0.04784690588712692, 0.006248275749385357, -0.01706867851316929, -0.08251067996025085, 0.05075876787304878, 0.1333746761083603, 0.006783486809581518, -0.1213095486164093, 0.03842579945921898, -0.05786991864442825, 0.007636572699993849, -0.17319798469543457, -0.12449254840612411, -0.19725766777992249, 0.043820809572935104, 0.11341246217489243, -0.052299343049526215, -0.09404480457305908, 0.14091967046260834, -0.04069030284881592, 0.03840117156505585, -0.05627140402793884, 0.2680591642856598, 0.30503925681114197, -0.1291443109512329, -0.11096431314945221, -0.013148048892617226, 0.008160651661455631, -0.09437090158462524, 0.015487545169889927, 0.1323709934949875, 0.1444994956254959, -0.14110581576824188, -0.060508836060762405, 0.25432270765304565, -0.03311895579099655, -0.10413065552711487, 0.21894891560077667, 0.013059557415544987, 0.06443575769662857, -0.00868576392531395, 0.15931718051433563, 0.0979657992720604, -0.0564199723303318, -0.019336119294166565, -0.1706845909357071, 0.022334538400173187, 0.07479188591241837, 0.024587666615843773, 0.009150058962404728, -0.06474526971578598, -0.09433849900960922, -0.039238255470991135, 0.045866649597883224, 0.13140304386615753, 0.10650960355997086, -0.16707843542099, 0.13117586076259613, -0.07857204973697662, -0.10075690597295761, 0.19371740520000458, -0.1633930206298828, 0.0209669042378664, 0.09110939502716064, 0.0643686056137085, 0.032777704298496246, 0.010559581220149994, 0.17332428693771362, -0.041781291365623474, -0.10662388056516647, -0.10713794827461243, -0.07932240515947342, -0.20115898549556732, 0.05864236503839493, -0.22886353731155396, -0.002126435050740838, 0.23860064148902893, -0.0070910206995904446, -0.003088997909799218, 0.03975456580519676, 0.09008245915174484, 0.05415996164083481, 0.11193317174911499, 0.11506588011980057, -0.10005908459424973, -0.12809857726097107, -0.0583047941327095, -0.165297731757164, -0.055091895163059235, -0.002504427684471011, -0.16744446754455566, 0.025425268337130547, 0.1033686026930809, 0.02626904472708702, 0.02392543852329254, -0.1574917733669281, 0.12816588580608368, -0.22067774832248688, -0.1152896136045456, 0.057170066982507706, 0.22243104875087738, -0.020948568359017372, 0.013446325436234474, -0.12933529913425446, -0.17824487388134003, 0.28648051619529724, 0.09645414352416992, -0.07322847098112106, -0.12532439827919006, -0.13264358043670654, 0.06501815468072891, -0.11330819129943848, -0.029294544830918312, 0.004818784538656473, 0.007522381376475096, -0.04446057602763176, 0.08002196997404099, 0.25437894463539124, -0.0029433630406856537, 0.11381201446056366, 0.06686615198850632, -0.059192098677158356, -0.07873579114675522, -0.015483066439628601, -0.0238770954310894, 0.06040159612894058, -0.025708237662911415, 0.11319771409034729, -0.01871623657643795, -0.07515352964401245, 0.02344367280602455, 0.0058206417597830296, -0.10431481152772903, 0.03997790068387985, 0.01569482684135437, -0.21036483347415924, -0.19393335282802582, -0.011783001013100147, 0.13219286501407623, 0.0367196686565876, 0.046670299023389816, -0.06833351403474808, 0.030187509953975677, -0.02380116656422615, 0.15409475564956665, 0.07489553838968277, 0.08521001785993576, 0.07136140018701553, 0.08211058378219604, -0.055661048740148544, 0.11513157188892365, 0.04266198351979256, 0.15721727907657623, -0.1336359977722168, 0.006996955256909132, -0.0532686822116375, -0.13185207545757294, 0.042951032519340515, 0.16629737615585327, -0.1377289891242981, 0.17039206624031067, 0.04773128777742386, -0.06000486761331558, 0.03507717698812485, 0.01243393961340189, 0.06490025669336319, -0.005637623835355043, -0.08428871631622314, 0.10609742254018784, -0.137169748544693, 0.08755991607904434, 0.14699867367744446, 0.2125617414712906, 0.08112894743680954, -0.05750975385308266, 0.17726270854473114, 0.12097327411174774, -0.02380429394543171, -0.027375390753149986, 0.0845351591706276, 0.05809256434440613, 0.014518671669065952, 0.2416709065437317, 0.2242240309715271, -0.026273181661963463, 0.21440742909908295, -0.03556293249130249, 0.12088450789451599, 0.007488415576517582, 0.03820687159895897, 0.08042347431182861, -0.03729700669646263, 0.09948164969682693, 0.07075800001621246, 0.035064421594142914, -0.11466645449399948, 0.08105544745922089, -0.07461067289113998, -0.030850445851683617, -0.0940062627196312, 0.011085936799645424, 0.26301008462905884, -0.030243797227740288, -0.04122322425246239, -0.16612739861011505, -0.0048260195180773735, -0.16696786880493164, -0.12966753542423248, -0.13248592615127563, -0.0018951394595205784, -0.15267112851142883, 0.1354111284017563, 0.09364454448223114, 0.0861232653260231, -0.10432472825050354, 0.037203747779130936, 0.08292076736688614, -0.026375077664852142, -0.11425155401229858, -0.017735932022333145, 0.05517103150486946, -0.23320607841014862, 0.09567131102085114, 0.016412440687417984, 0.09830014407634735, 0.0770871713757515, -0.07589925825595856, -0.01899820938706398, -0.012529954314231873, 0.041177112609148026, 0.05590156838297844, -0.16637764871120453, -0.1498640775680542, -0.15080375969409943, 0.07916469871997833, -0.057877298444509506, 0.011306756176054478, -0.0979420393705368, 0.22004930675029755, -0.1237100288271904, 0.008091353811323643, -0.006343229673802853, 0.03780686482787132, -0.07801340520381927, 0.10914257913827896, 0.15546445548534393, -0.015266676433384418, 0.18341094255447388, 0.15998835861682892, 0.05738786980509758, -0.05443457141518593, 0.021737564355134964, 0.16415025293827057, -0.12304630130529404, 0.1917165070772171, -0.06635148078203201, 0.016969187185168266, -0.33379775285720825, -0.05849229916930199, 0.006991155445575714, 0.06563960760831833, -0.16046231985092163, -0.06259732693433762, -0.16658073663711548, -0.012089986354112625, 0.0817418098449707, -0.030993808060884476, 0.1676281988620758, -0.014067133888602257, -0.0844694972038269, 0.03091396391391754, -2.446958558371202e-32, 0.06698030233383179, 0.007036398630589247, -0.044891394674777985, -0.008343975059688091, -0.11278095841407776, 0.08916909992694855, -0.17816585302352905, 0.07557383924722672, 0.09140967577695847, -0.003710993565618992, -0.1666383296251297, -0.056724026799201965, 0.1200776919722557, 0.05956966429948807, -0.0810372605919838, 0.16830340027809143, 0.03060632012784481, 0.0952155590057373, 0.014311660081148148, 0.09013251960277557, 0.18154963850975037, 0.011302261613309383, -0.031916841864585876, 0.170741468667984, 0.010464669205248356, 0.147503063082695, -0.1256866455078125, -0.07215689867734909, 0.057275399565696716, -0.1656828075647354, -0.10483613610267639, 0.22802947461605072, 0.0020983486901968718, -0.044141240417957306, -0.05133993923664093, -0.29730820655822754, 0.024957841262221336, -0.08550521731376648, -0.06334555149078369, 0.0030263885855674744, 0.08629690855741501, 0.07415272295475006, 0.14403119683265686, 0.10864758491516113, -0.10509280115365982, 0.09154482930898666, -0.06288447976112366, 0.06642494350671768, -0.13862261176109314, -0.11369290202856064, 0.14497755467891693, 0.08051637560129166, 0.04751574248075485, -0.004078569356352091, -0.10061930119991302, -0.15597344934940338, 0.13868440687656403, 0.0442303828895092, -0.005320635624229908, 0.017508812248706818, 0.2206863909959793, -0.054817188531160355, 0.10119912028312683, 0.04912852868437767, 0.05801928788423538, 0.030233196914196014, 0.21671774983406067, 0.13911938667297363, 0.14170503616333008, -0.06148383766412735, -0.07793346047401428, 0.04639153555035591, -0.12109498679637909, -0.015200413763523102, -0.019087303429841995, 0.041323307901620865, -0.08332780003547668, -0.00870015099644661, -0.14034594595432281, -0.010542480275034904, 0.10941877961158752, 0.09873608499765396, 0.20885978639125824, -0.16076675057411194, -0.03373157978057861, -0.06679435074329376, -0.011533889919519424, 0.24613720178604126, -0.041744329035282135, -0.027208074927330017, -0.11143393069505692, 0.15709862112998962, -0.11892133951187134, -0.08304774016141891, -0.04893038049340248, 0.03889782726764679, -0.18063804507255554, -0.014418605715036392, -0.08148260414600372, -0.1337684988975525, 0.03844839707016945, -0.13270443677902222, 0.07513254880905151, 0.09176429361104965, 0.06240558996796608, 0.004641799721866846, 0.08350400626659393, 0.13581810891628265, -0.04694121330976486, -0.11098391562700272, -0.18623335659503937, 0.13925792276859283, 0.08369189500808716, 0.11084478348493576, 0.0811254233121872, -0.07264339178800583, 0.09027896821498871, -0.0722813680768013, 0.08523727208375931, 0.10653544962406158, 0.0048670596443116665, -0.19052550196647644, -0.1377500593662262, -0.05016997084021568, 0.061098627746105194, -0.06597138941287994, -0.12070658802986145, -0.12861305475234985, 0.1194230318069458, -0.18598423898220062, -0.003859679913148284, -0.027662327513098717, 7.370202865786268e-7, -0.10256749391555786, -0.010535008274018764, 0.04330287128686905, -0.015073180198669434, -0.2149631828069687, 0.2693800926208496, -0.04126441478729248, 0.07106314599514008, -0.27324700355529785, 0.29845869541168213, 0.09338498115539551, 0.0709572359919548, 0.10674489289522171, -0.08202614635229111, 0.19949910044670105, 0.06370866298675537, -0.13325932621955872, 0.19922740757465363, -0.05329076573252678, -0.021304285153746605, -0.06996474415063858, -0.16009241342544556, 0.13598163425922394, -0.1009436771273613, 0.07789760082960129, 0.01602315716445446, -0.11380407959222794, -0.006360186263918877, 0.20630553364753723, -0.10249804705381393, 0.09091000258922577, -0.05523354932665825, 0.08084255456924438, 0.008950881659984589, -0.042901623994112015, 0.07606586068868637, -0.20052605867385864, 0.14671480655670166, 0.004940374754369259, -0.17040933668613434, 0.10567012429237366, -0.026650233194231987, 0.045215439051389694, -0.083376944065094, 0.08597341924905777, 0.02772475965321064, 0.00571465864777565, 0.05762851610779762, -0.04854647070169449, 0.05627323314547539, -0.03949100524187088, 0.034274883568286896, 0.01007858756929636, 0.14675399661064148, 0.03806460648775101, -0.23520499467849731, -0.12908954918384552, -0.12109731137752533, 0.15921780467033386, -0.2945738434791565, 0.04915889725089073, -0.019667863845825195, -0.08748866617679596, 0.20672619342803955, -0.15830273926258087, -0.022000396624207497, -0.042608506977558136, 1.0230970183679474e-34, 0.005906782578676939, -0.021003715693950653, -0.10748174786567688, -0.29581695795059204, -0.04735046252608299, -0.0030972217209637165, 0.09943441301584244, 0.09977765381336212, -0.06202375516295433, -0.09085960686206818, -0.19804102182388306 ]
https://github.com/huggingface/datasets/issues/2643
Enum used in map functions will raise a RecursionError with dill.
I'm running into this as well. (Thank you so much for reporting @jorgeecardona — was staring at this massive stack trace and unsure what exactly was wrong!)
## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above. ## Steps to reproduce the bug ```python from datasets import load_dataset from enum import Enum class A(Enum): a = 'a' def main(): a = A.a def f(x): return {} if a == a.a else x ds = load_dataset('cnn_dailymail', '3.0.0')['test'] ds = ds.map(f, num_proc=15) if __name__ == "__main__": main() ``` ## Expected results The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood. ## Actual results ```python File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type pickler.save_reduce(_create_type, (type(obj), obj.__name__, File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save self.framer.commit_frame() File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame if f.tell() >= self._FRAME_SIZE_TARGET or force: RecursionError: maximum recursion depth exceeded while calling a Python object ``` ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 3.0.0
27
Enum used in map functions will raise a RecursionError with dill. ## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above. ## Steps to reproduce the bug ```python from datasets import load_dataset from enum import Enum class A(Enum): a = 'a' def main(): a = A.a def f(x): return {} if a == a.a else x ds = load_dataset('cnn_dailymail', '3.0.0')['test'] ds = ds.map(f, num_proc=15) if __name__ == "__main__": main() ``` ## Expected results The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood. ## Actual results ```python File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type pickler.save_reduce(_create_type, (type(obj), obj.__name__, File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save self.framer.commit_frame() File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame if f.tell() >= self._FRAME_SIZE_TARGET or force: RecursionError: maximum recursion depth exceeded while calling a Python object ``` ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 3.0.0 I'm running into this as well. (Thank you so much for reporting @jorgeecardona — was staring at this massive stack trace and unsure what exactly was wrong!)
[ -0.08099596202373505, 0.06269869208335876, -0.0973939523100853, 0.037235409021377563, 0.146867573261261, -0.03364092856645584, 0.03557191416621208, 0.03134731203317642, -0.04976014047861099, -0.22157473862171173, 0.15920650959014893, 0.015034797601401806, -0.016850505024194717, -0.11355022341012955, -0.13761380314826965, 0.11063549667596817, -0.04672088474035263, -0.06466656178236008, -0.19908301532268524, -0.11588216572999954, -0.18772543966770172, -0.060429640114307404, 0.0206587053835392, -0.0919879823923111, 0.18716435134410858, 0.033685103058815, -0.04076337814331055, 0.2758238911628723, -0.040114615112543106, -0.20293568074703217, 0.017917849123477936, -0.13262037932872772, 0.03736681863665581, -0.013635233044624329, 0.000004874890237260843, 0.0015776494983583689, 0.03604292497038841, 0.08437562733888626, -0.16848571598529816, -0.21393881738185883, -0.03355013579130173, -0.01780380867421627, 0.042053718119859695, -0.1091323047876358, 0.08062074333429337, 0.03334684669971466, -0.20722466707229614, -0.01482211984694004, 0.10778708755970001, -0.03808044642210007, -0.034071728587150574, 0.06974353641271591, 0.11747972667217255, -0.08884122222661972, -0.1361827254295349, 0.1754920333623886, 0.14030525088310242, 0.07809881865978241, -0.19768166542053223, -0.02510136179625988, 0.03491303697228432, 0.0063116783276200294, 0.022677304223179817, 0.1190473809838295, -0.2020765244960785, -0.007896767929196358, 0.32319310307502747, -0.0412566252052784, 0.020900564268231392, -0.13964545726776123, -0.17858746647834778, 0.0689273476600647, -0.011776532046496868, -0.07830581068992615, 0.018249280750751495, -0.32228511571884155, 0.1061849370598793, 0.10768641531467438, -0.013453079387545586, -0.12298537790775299, 0.22961992025375366, 0.013804047368466854, 0.03630135580897331, 0.026842838153243065, -0.050613127648830414, 0.057847511023283005, 0.06944193691015244, 0.13546782732009888, 0.07781921327114105, -0.08491352200508118, 0.21963153779506683, -0.051399484276771545, -0.1393045037984848, 0.03674181550741196, 0.1366836130619049, -0.01983589120209217, -0.013699457049369812, -0.28861135244369507, -0.01934235356748104, -0.20272937417030334, -0.13422119617462158, 0.03517550230026245, 0.03475344553589821, -0.04049525409936905, 0.35126930475234985, -0.16209763288497925, -0.15898829698562622, 0.1350969821214676, 0.07957775890827179, -0.12320845574140549, -0.03361757472157478, 0.06801585108041763, -0.049800049513578415, 0.05810188502073288, 0.01035564485937357, -0.183134526014328, 0.030244993045926094, -0.0036855509970337152, 0.022129066288471222, -0.009894460439682007, 0.018566414713859558, -0.102719746530056, -0.00603339122608304, 0.06317347288131714, 0.007986468262970448, 0.05951732397079468, 0.17762653529644012, -0.1452520191669464, -0.010277199558913708, 0.0558612160384655, 0.044502440840005875, -0.10221200436353683, 0.05148281902074814, -0.07405615597963333, -0.0368695966899395, 0.0019313566153869033, 0.1711452454328537, -0.059994131326675415, 0.002486282726749778, -0.005089604761451483, -0.049860138446092606, -0.0278606116771698, 0.08038008213043213, 0.005471745505928993, -0.1973918080329895, -0.011768369004130363, 0.18240410089492798, -0.0543348491191864, 0.106197789311409, -0.08693256229162216, -0.28867220878601074, 0.2232160121202469, -0.19792822003364563, -0.06561292707920074, -0.02860967442393303, 0.07942122220993042, 0.013774191960692406, -0.23730838298797607, -0.08647183328866959, -0.018715428188443184, -0.05010118708014488, -0.039669036865234375, 0.0685356929898262, -0.08096524327993393, -0.021748574450612068, -0.1524086892604828, -0.11269901692867279, -0.07621511071920395, 0.1565653681755066, -0.028326645493507385, 0.03044283203780651, 0.10282997041940689, 0.028303593397140503, 0.03991715610027313, -0.04573889076709747, 0.038229428231716156, -0.09075485169887543, 0.20396873354911804, -0.24201549589633942, -0.011026611551642418, -0.09203675389289856, -0.1539948731660843, -0.05647876486182213, -0.118393674492836, 0.020446237176656723, -0.052078984677791595, 0.04188047721982002, 0.06511197239160538, 0.10388384014368057, -0.23395591974258423, -0.11233777552843094, 0.13345202803611755, -0.03971017897129059, -0.06456552445888519, -0.002238114830106497, -0.06345576047897339, -0.04607245326042175, -0.08702632784843445, -0.062454402446746826, -0.19129638373851776, 0.10352245718240738, -0.11350632458925247, -0.00014358725456986576, 0.17796924710273743, 0.030180878937244415, 0.0532449446618557, -0.16999882459640503, 0.06101462244987488, -0.03018323704600334, -0.122258260846138, -0.09568151831626892, 0.0779288038611412, -0.01948714815080166, 0.2056666761636734, -0.14363226294517517, 0.037263963371515274, -0.041922856122255325, 0.13470330834388733, -0.210041344165802, -0.02130170352756977, -0.08381790667772293, -0.09224222600460052, -0.07336951047182083, -0.14711634814739227, 0.18644535541534424, 0.01590353436768055, 0.07166585326194763, 0.01731477677822113, -0.10735826194286346, -0.11296948045492172, 0.0013314159587025642, 0.018083034083247185, 0.09994277358055115, -0.029206497594714165, -0.06870196014642715, -0.06422774493694305, 0.03268353268504143, -0.31437769532203674, 0.10909884423017502, 0.05373130738735199, -0.15280745923519135, 0.16420668363571167, 0.1279345005750656, -0.07852235436439514, 0.08975708484649658, -0.08820361644029617, 0.14164911210536957, 0.12011635303497314, -0.02576528489589691, 0.02404901571571827, 0.08368083834648132, -0.12063281983137131, -0.036264460533857346, -0.11927147954702377, -0.11001119017601013, -0.3122968375682831, -0.03325658664107323, 0.03292267024517059, -0.049147799611091614, -0.17116333544254303, 0.16647671163082123, -0.015122149139642715, 0.17742834985256195, -0.07325304299592972, -0.020021146163344383, 0.038823988288640976, -0.0967104360461235, -0.05495469272136688, 0.2817414402961731, 0.14792872965335846, 0.09219252318143845, -0.11353076994419098, 0.128742516040802, -0.038694534450769424, -0.1322087198495865, -0.15381038188934326, 0.1212712824344635, 0.05211161449551582, -0.00567317521199584, 0.024574248120188713, -0.13346947729587555, -0.18428705632686615, 0.043257273733615875, -0.10597438365221024, -0.018225640058517456, -0.03548513352870941, -0.25766608119010925, 0.24000559747219086, -0.06909267604351044, -0.11171053349971771, -0.03480472043156624, 0.12720519304275513, -0.006028058007359505, -0.06303771585226059, -0.08601285517215729, -0.0041339281015098095, -0.06186392530798912, -0.0615638829767704, 0.19715546071529388, -0.00577542744576931, 0.04500674456357956, -0.10997556149959564, -0.046158332377672195, 0.04157322272658348, 0.10261718183755875, -0.22677192091941833, 0.29320812225341797, 0.3649798631668091, -0.137095645070076, -0.06676191836595535, -0.0945873036980629, -0.1183854192495346, 0.03231348842382431, -0.04134313389658928, 0.04982210695743561, 0.020960986614227295, -0.0005418297369033098, -0.12101642787456512, 0.04318595677614212, 0.10766421258449554, 0.20381025969982147, -0.0034234512131661177, -0.18909615278244019, -0.1762854903936386, 0.1632288694381714, 0.021746549755334854, -0.05934729799628258, -0.1142040267586708, -0.12002749741077423, 0.04414748027920723, -0.05132080614566803, 0.264523983001709, -0.07565349340438843, 0.10924853384494781, 0.07859137654304504, -0.1449437290430069, -0.11822716146707535, 0.2614209055900574, 0.0203465074300766, -0.005400341935455799, -0.06147465109825134, -0.22352401912212372, -0.11393483728170395, -0.0279722660779953, 0.04087260365486145, -0.0131897097453475, 0.11122103780508041, 0.05833234265446663, 0.024399491026997566, -0.12082435935735703, 0.02333110384643078, -0.033077672123909, -0.003628984559327364, -0.09862755984067917, -0.0458260141313076, -0.014462029561400414, -0.007178646046668291, 0.19109563529491425, -0.10770109295845032, 0.03738701716065407, -0.032557614147663116, -0.051807258278131485, 0.12392760068178177, 0.1575603187084198, -0.25434499979019165, 0.04626382142305374, 0.09211178123950958, -0.11513445526361465, -0.1804349273443222, -0.021191831678152084, -0.06295523792505264, 0.07799834758043289, -0.041456449776887894, 0.13491491973400116, -0.18144099414348602, -0.17956793308258057, 0.10169640928506851, -0.09287402778863907, 0.06572902202606201, 0.12158563733100891, 0.04606974497437477, -0.16516916453838348, -0.05401141569018364, 0.07279112190008163, 0.20950138568878174, 0.1789504885673523, 0.1638711839914322, 0.04000497981905937, -0.13534244894981384, 0.17934474349021912, 0.08650974929332733, 0.041972286999225616, 0.1508958786725998, 0.10613425076007843, -0.06457356363534927, -0.016857722774147987, 0.01148056797683239, 0.0386824756860733, -0.08693181723356247, -0.04421620815992355, 0.2778787910938263, 0.22502100467681885, 0.0003422411682549864, -0.0016541630029678345, 0.1805439442396164, -0.149187833070755, -0.20509502291679382, -0.14352598786354065, 0.12529969215393066, -0.02402130700647831, 0.05450097844004631, 0.02363859862089157, -0.018427837640047073, 0.04398617520928383, 0.16995051503181458, -0.11170435696840286, -0.03435930237174034, -0.026289429515600204, 0.03679215535521507, -0.18650323152542114, -0.0521763376891613, -0.23725953698158264, 0.14431777596473694, 0.1220884621143341, 0.20036961138248444, 0.03449394926428795, -0.05349497124552727, 0.014764923602342606, 0.08442191034555435, -0.002668999368324876, 0.10809694975614548, 0.08765113353729248, 0.13451476395130157, -0.021271951496601105, -0.004647680092602968, 0.1135004460811615, 0.14316661655902863, -0.049881838262081146, 0.12149155139923096, -0.016308292746543884, -0.02192898653447628, -0.05883915722370148, -0.051650263369083405, -0.12175440043210983, -0.10185964405536652, -0.07617256045341492, 0.0176538173109293, -0.055440254509449005, 0.028171516954898834, 0.010161145590245724, -0.08060737699270248, -0.07832575589418411, -0.07701209932565689, 0.09223715960979462, 0.12553192675113678, 0.025519415736198425, 0.17272673547267914, -0.2622879445552826, 0.02970338612794876, 0.295756071805954, 0.09854388982057571, -0.05552064627408981, 0.026402410119771957, 0.009487533010542393, 0.13066935539245605, -0.033595629036426544, 0.19453442096710205, 0.14050507545471191, 0.04475134238600731, -0.026950031518936157, 0.04625833034515381, 0.12679031491279602, 0.07343672960996628, -0.07112011313438416, 0.17471453547477722, 0.17891007661819458, -0.033911265432834625, 0.016657602041959763, -0.10407215356826782, -0.08817163109779358, 0.07898042351007462, -0.005933428183197975, -0.0659145936369896, -0.02920382097363472, -0.04474061727523804, 0.11097767949104309, 0.08562682569026947, -0.19370348751544952, 0.050808828324079514, 0.020554248243570328, -0.0422704815864563, -0.08642841130495071, 0.02136533334851265, -0.013993346132338047, 0.1556793600320816, 0.07989608496427536, 0.11518930643796921, 0.022069329395890236, 0.09223739057779312, -0.11373436450958252, 0.16624264419078827, -0.004729362670332193, 0.032789196819067, -0.06867808103561401, 0.17391040921211243, 0.010911474004387856, 0.03552377223968506, 0.057800471782684326, 0.18981267511844635, -0.03576868027448654, -0.05954791232943535, -0.07900756597518921, 0.023413922637701035, -0.18737079203128815, 0.04583008959889412, -0.041205644607543945, 0.060126204043626785, -0.008403202518820763, 0.06542429327964783, 0.1287103146314621, 0.12661418318748474, -0.040935054421424866, -0.01997462846338749, 0.0016193152405321598, -0.06992591172456741, 0.09805618971586227, 0.036833420395851135, -0.06034498289227486, 0.17588454484939575, 0.07489289343357086, 0.03709686920046806, 0.027422301471233368, 0.12436190247535706, 0.1366792768239975, -0.07323165982961655, 0.05386398732662201, -0.17370860278606415, 0.13282528519630432, 0.04433643817901611, -0.02786468155682087, -0.10655878484249115, -0.24101485311985016, -0.11214034259319305, -0.09668458253145218, 0.20955365896224976, -0.08791424334049225, -0.07717397063970566, -0.15258391201496124, -0.03338188678026199, -0.27345290780067444, 0.16264520585536957, 0.04857175052165985, -0.13768869638442993, 0.04539153352379799, 0.17646388709545135, -2.345388205746876e-32, 0.0026675600092858076, -0.009461608715355396, -0.04959697648882866, 0.040002793073654175, -0.12854427099227905, 0.08819244056940079, -0.10658381134271622, 0.06557872146368027, 0.207905113697052, -0.05594369024038315, 0.0006618667975999415, -0.16791485249996185, 0.0548674501478672, 0.014324525371193886, 0.11796294897794724, 0.021733304485678673, 0.07927899062633514, 0.14558008313179016, -0.0926070511341095, -0.05277329683303833, 0.2172870635986328, 0.0688135176897049, 0.01656281016767025, 0.12479426711797714, -0.057904526591300964, 0.09695130586624146, -0.027844753116369247, 0.027579838410019875, 0.050695281475782394, 0.1458575427532196, -0.004167357925325632, -0.08756066113710403, -0.055648934096097946, -0.005433267448097467, -0.09986187517642975, -0.1637393832206726, -0.18362171947956085, -0.03640195354819298, -0.021641677245497704, -0.10893259197473526, 0.0755600780248642, 0.15824778378009796, 0.0862320214509964, -0.07945578545331955, -0.034497976303100586, 0.06670622527599335, 0.002955720294266939, -0.0756404921412468, -0.21796786785125732, 0.11731211096048355, -0.16860908269882202, 0.02530256099998951, 0.06035600230097771, 0.019846877083182335, -0.11567533016204834, -0.15971599519252777, 0.15950627624988556, -0.19696027040481567, 0.013746686279773712, -0.18793368339538574, 0.30070632696151733, -0.14174573123455048, 0.011110727675259113, -0.07825715094804764, -0.13454967737197876, -0.01377628929913044, 0.11159869283437729, 0.09287367761135101, -0.0016923133516684175, -0.23073501884937286, 0.028433907777071, -0.04438411444425583, -0.022925158962607384, 0.06754562258720398, 0.16129371523857117, 0.01079768780618906, 0.017597254365682602, 0.050260990858078, 0.08017899841070175, -0.07367251813411713, 0.10734205693006516, 0.21905872225761414, -0.06042739748954773, -0.2000662386417389, -0.18652048707008362, -0.005103616043925285, 0.145442932844162, 0.028518831357359886, -0.004250809084624052, 0.013469046913087368, 0.09716569632291794, 0.21994955837726593, -0.07619184255599976, -0.07712158560752869, 0.17415934801101685, 0.015062506310641766, 0.036406271159648895, 0.08976968377828598, -0.16426622867584229, -0.027224034070968628, 0.061017949134111404, 0.04607933387160301, -0.10374688357114792, 0.042248260229825974, 0.02442571520805359, 0.3165888786315918, -0.003376148408278823, -0.16231034696102142, -0.0523189939558506, -0.10120239108800888, -0.07211317867040634, -0.1131192073225975, -0.06242908909916878, 0.1451367288827896, 0.20212331414222717, -0.2640317380428314, 0.01486774068325758, -0.1774224042892456, 0.10633787512779236, 0.22363531589508057, -0.06046162545681, -0.07172639667987823, -0.05906028673052788, 0.009971731342375278, -0.05154862999916077, -0.057807691395282745, -0.03435373306274414, -0.2491401582956314, 0.01062630396336317, -0.018639031797647476, 0.17539706826210022, -0.2479279637336731, 6.897805633343523e-7, -0.04800557717680931, 0.16044305264949799, -0.017638221383094788, 0.12075654417276382, -0.058238252997398376, 0.07049234211444855, -0.03187783807516098, 0.028328629210591316, -0.13831834495067596, 0.18626299500465393, 0.053921714425086975, -0.0646519586443901, 0.004490823019295931, 0.12484193593263626, 0.04704134911298752, 0.05804792419075966, -0.0460306778550148, -0.032945144921541214, -0.06441787630319595, 0.05852159857749939, 0.017851438373327255, -0.18301516771316528, 0.2586108148097992, -0.13016271591186523, 0.1049603745341301, -0.04676569998264313, 0.01963874138891697, 0.007907796651124954, 0.1447354406118393, 0.023105952888727188, -0.02291751280426979, 0.06785812973976135, -0.009860350750386715, 0.21381278336048126, -0.019573617726564407, 0.09347657114267349, 0.007714908104389906, -0.02691037580370903, -0.019606033340096474, 0.0020731817930936813, 0.11144382506608963, 0.024325015023350716, 0.09932081401348114, -0.11852549761533737, -0.09113630652427673, 0.11501532793045044, 0.078240305185318, -0.06834521144628525, 0.12260248512029648, 0.08887851238250732, -0.15501148998737335, 0.0018502598395571113, 0.010404769331216812, 0.1182636022567749, -0.024832023307681084, 0.0995078980922699, 0.07526613026857376, -0.10789255797863007, 0.3324339985847473, -0.06951554119586945, -0.1597427874803543, -0.14635176956653595, -0.033511482179164886, -0.035799071192741394, 0.0664229542016983, -0.03801334276795387, 0.022196613252162933, -6.734729134069289e-35, 0.10469786822795868, -0.010147366672754288, -0.0024129007942974567, 0.03521352633833885, 0.006039022002369165, 0.22384247183799744, 0.3432377874851227, -0.17197027802467346, 0.10345284640789032, -0.14237117767333984, -0.05567377805709839 ]
https://github.com/huggingface/datasets/issues/2643
Enum used in map functions will raise a RecursionError with dill.
Hi ! Thanks for reporting :) Until this is fixed on `dill`'s side, we could implement a custom saving in our Pickler indefined in utils.py_utils.py There is already a suggestion in this message about how to do it: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 Let me know if such a workaround could help, and feel free to open a PR if you want to contribute !
## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above. ## Steps to reproduce the bug ```python from datasets import load_dataset from enum import Enum class A(Enum): a = 'a' def main(): a = A.a def f(x): return {} if a == a.a else x ds = load_dataset('cnn_dailymail', '3.0.0')['test'] ds = ds.map(f, num_proc=15) if __name__ == "__main__": main() ``` ## Expected results The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood. ## Actual results ```python File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type pickler.save_reduce(_create_type, (type(obj), obj.__name__, File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save self.framer.commit_frame() File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame if f.tell() >= self._FRAME_SIZE_TARGET or force: RecursionError: maximum recursion depth exceeded while calling a Python object ``` ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 3.0.0
61
Enum used in map functions will raise a RecursionError with dill. ## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above. ## Steps to reproduce the bug ```python from datasets import load_dataset from enum import Enum class A(Enum): a = 'a' def main(): a = A.a def f(x): return {} if a == a.a else x ds = load_dataset('cnn_dailymail', '3.0.0')['test'] ds = ds.map(f, num_proc=15) if __name__ == "__main__": main() ``` ## Expected results The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood. ## Actual results ```python File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type pickler.save_reduce(_create_type, (type(obj), obj.__name__, File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save self.framer.commit_frame() File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame if f.tell() >= self._FRAME_SIZE_TARGET or force: RecursionError: maximum recursion depth exceeded while calling a Python object ``` ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 3.0.0 Hi ! Thanks for reporting :) Until this is fixed on `dill`'s side, we could implement a custom saving in our Pickler indefined in utils.py_utils.py There is already a suggestion in this message about how to do it: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 Let me know if such a workaround could help, and feel free to open a PR if you want to contribute !
[ -0.08099596202373505, 0.06269869208335876, -0.0973939523100853, 0.037235409021377563, 0.146867573261261, -0.03364092856645584, 0.03557191416621208, 0.03134731203317642, -0.04976014047861099, -0.22157473862171173, 0.15920650959014893, 0.015034797601401806, -0.016850505024194717, -0.11355022341012955, -0.13761380314826965, 0.11063549667596817, -0.04672088474035263, -0.06466656178236008, -0.19908301532268524, -0.11588216572999954, -0.18772543966770172, -0.060429640114307404, 0.0206587053835392, -0.0919879823923111, 0.18716435134410858, 0.033685103058815, -0.04076337814331055, 0.2758238911628723, -0.040114615112543106, -0.20293568074703217, 0.017917849123477936, -0.13262037932872772, 0.03736681863665581, -0.013635233044624329, 0.000004874890237260843, 0.0015776494983583689, 0.03604292497038841, 0.08437562733888626, -0.16848571598529816, -0.21393881738185883, -0.03355013579130173, -0.01780380867421627, 0.042053718119859695, -0.1091323047876358, 0.08062074333429337, 0.03334684669971466, -0.20722466707229614, -0.01482211984694004, 0.10778708755970001, -0.03808044642210007, -0.034071728587150574, 0.06974353641271591, 0.11747972667217255, -0.08884122222661972, -0.1361827254295349, 0.1754920333623886, 0.14030525088310242, 0.07809881865978241, -0.19768166542053223, -0.02510136179625988, 0.03491303697228432, 0.0063116783276200294, 0.022677304223179817, 0.1190473809838295, -0.2020765244960785, -0.007896767929196358, 0.32319310307502747, -0.0412566252052784, 0.020900564268231392, -0.13964545726776123, -0.17858746647834778, 0.0689273476600647, -0.011776532046496868, -0.07830581068992615, 0.018249280750751495, -0.32228511571884155, 0.1061849370598793, 0.10768641531467438, -0.013453079387545586, -0.12298537790775299, 0.22961992025375366, 0.013804047368466854, 0.03630135580897331, 0.026842838153243065, -0.050613127648830414, 0.057847511023283005, 0.06944193691015244, 0.13546782732009888, 0.07781921327114105, -0.08491352200508118, 0.21963153779506683, -0.051399484276771545, -0.1393045037984848, 0.03674181550741196, 0.1366836130619049, -0.01983589120209217, -0.013699457049369812, -0.28861135244369507, -0.01934235356748104, -0.20272937417030334, -0.13422119617462158, 0.03517550230026245, 0.03475344553589821, -0.04049525409936905, 0.35126930475234985, -0.16209763288497925, -0.15898829698562622, 0.1350969821214676, 0.07957775890827179, -0.12320845574140549, -0.03361757472157478, 0.06801585108041763, -0.049800049513578415, 0.05810188502073288, 0.01035564485937357, -0.183134526014328, 0.030244993045926094, -0.0036855509970337152, 0.022129066288471222, -0.009894460439682007, 0.018566414713859558, -0.102719746530056, -0.00603339122608304, 0.06317347288131714, 0.007986468262970448, 0.05951732397079468, 0.17762653529644012, -0.1452520191669464, -0.010277199558913708, 0.0558612160384655, 0.044502440840005875, -0.10221200436353683, 0.05148281902074814, -0.07405615597963333, -0.0368695966899395, 0.0019313566153869033, 0.1711452454328537, -0.059994131326675415, 0.002486282726749778, -0.005089604761451483, -0.049860138446092606, -0.0278606116771698, 0.08038008213043213, 0.005471745505928993, -0.1973918080329895, -0.011768369004130363, 0.18240410089492798, -0.0543348491191864, 0.106197789311409, -0.08693256229162216, -0.28867220878601074, 0.2232160121202469, -0.19792822003364563, -0.06561292707920074, -0.02860967442393303, 0.07942122220993042, 0.013774191960692406, -0.23730838298797607, -0.08647183328866959, -0.018715428188443184, -0.05010118708014488, -0.039669036865234375, 0.0685356929898262, -0.08096524327993393, -0.021748574450612068, -0.1524086892604828, -0.11269901692867279, -0.07621511071920395, 0.1565653681755066, -0.028326645493507385, 0.03044283203780651, 0.10282997041940689, 0.028303593397140503, 0.03991715610027313, -0.04573889076709747, 0.038229428231716156, -0.09075485169887543, 0.20396873354911804, -0.24201549589633942, -0.011026611551642418, -0.09203675389289856, -0.1539948731660843, -0.05647876486182213, -0.118393674492836, 0.020446237176656723, -0.052078984677791595, 0.04188047721982002, 0.06511197239160538, 0.10388384014368057, -0.23395591974258423, -0.11233777552843094, 0.13345202803611755, -0.03971017897129059, -0.06456552445888519, -0.002238114830106497, -0.06345576047897339, -0.04607245326042175, -0.08702632784843445, -0.062454402446746826, -0.19129638373851776, 0.10352245718240738, -0.11350632458925247, -0.00014358725456986576, 0.17796924710273743, 0.030180878937244415, 0.0532449446618557, -0.16999882459640503, 0.06101462244987488, -0.03018323704600334, -0.122258260846138, -0.09568151831626892, 0.0779288038611412, -0.01948714815080166, 0.2056666761636734, -0.14363226294517517, 0.037263963371515274, -0.041922856122255325, 0.13470330834388733, -0.210041344165802, -0.02130170352756977, -0.08381790667772293, -0.09224222600460052, -0.07336951047182083, -0.14711634814739227, 0.18644535541534424, 0.01590353436768055, 0.07166585326194763, 0.01731477677822113, -0.10735826194286346, -0.11296948045492172, 0.0013314159587025642, 0.018083034083247185, 0.09994277358055115, -0.029206497594714165, -0.06870196014642715, -0.06422774493694305, 0.03268353268504143, -0.31437769532203674, 0.10909884423017502, 0.05373130738735199, -0.15280745923519135, 0.16420668363571167, 0.1279345005750656, -0.07852235436439514, 0.08975708484649658, -0.08820361644029617, 0.14164911210536957, 0.12011635303497314, -0.02576528489589691, 0.02404901571571827, 0.08368083834648132, -0.12063281983137131, -0.036264460533857346, -0.11927147954702377, -0.11001119017601013, -0.3122968375682831, -0.03325658664107323, 0.03292267024517059, -0.049147799611091614, -0.17116333544254303, 0.16647671163082123, -0.015122149139642715, 0.17742834985256195, -0.07325304299592972, -0.020021146163344383, 0.038823988288640976, -0.0967104360461235, -0.05495469272136688, 0.2817414402961731, 0.14792872965335846, 0.09219252318143845, -0.11353076994419098, 0.128742516040802, -0.038694534450769424, -0.1322087198495865, -0.15381038188934326, 0.1212712824344635, 0.05211161449551582, -0.00567317521199584, 0.024574248120188713, -0.13346947729587555, -0.18428705632686615, 0.043257273733615875, -0.10597438365221024, -0.018225640058517456, -0.03548513352870941, -0.25766608119010925, 0.24000559747219086, -0.06909267604351044, -0.11171053349971771, -0.03480472043156624, 0.12720519304275513, -0.006028058007359505, -0.06303771585226059, -0.08601285517215729, -0.0041339281015098095, -0.06186392530798912, -0.0615638829767704, 0.19715546071529388, -0.00577542744576931, 0.04500674456357956, -0.10997556149959564, -0.046158332377672195, 0.04157322272658348, 0.10261718183755875, -0.22677192091941833, 0.29320812225341797, 0.3649798631668091, -0.137095645070076, -0.06676191836595535, -0.0945873036980629, -0.1183854192495346, 0.03231348842382431, -0.04134313389658928, 0.04982210695743561, 0.020960986614227295, -0.0005418297369033098, -0.12101642787456512, 0.04318595677614212, 0.10766421258449554, 0.20381025969982147, -0.0034234512131661177, -0.18909615278244019, -0.1762854903936386, 0.1632288694381714, 0.021746549755334854, -0.05934729799628258, -0.1142040267586708, -0.12002749741077423, 0.04414748027920723, -0.05132080614566803, 0.264523983001709, -0.07565349340438843, 0.10924853384494781, 0.07859137654304504, -0.1449437290430069, -0.11822716146707535, 0.2614209055900574, 0.0203465074300766, -0.005400341935455799, -0.06147465109825134, -0.22352401912212372, -0.11393483728170395, -0.0279722660779953, 0.04087260365486145, -0.0131897097453475, 0.11122103780508041, 0.05833234265446663, 0.024399491026997566, -0.12082435935735703, 0.02333110384643078, -0.033077672123909, -0.003628984559327364, -0.09862755984067917, -0.0458260141313076, -0.014462029561400414, -0.007178646046668291, 0.19109563529491425, -0.10770109295845032, 0.03738701716065407, -0.032557614147663116, -0.051807258278131485, 0.12392760068178177, 0.1575603187084198, -0.25434499979019165, 0.04626382142305374, 0.09211178123950958, -0.11513445526361465, -0.1804349273443222, -0.021191831678152084, -0.06295523792505264, 0.07799834758043289, -0.041456449776887894, 0.13491491973400116, -0.18144099414348602, -0.17956793308258057, 0.10169640928506851, -0.09287402778863907, 0.06572902202606201, 0.12158563733100891, 0.04606974497437477, -0.16516916453838348, -0.05401141569018364, 0.07279112190008163, 0.20950138568878174, 0.1789504885673523, 0.1638711839914322, 0.04000497981905937, -0.13534244894981384, 0.17934474349021912, 0.08650974929332733, 0.041972286999225616, 0.1508958786725998, 0.10613425076007843, -0.06457356363534927, -0.016857722774147987, 0.01148056797683239, 0.0386824756860733, -0.08693181723356247, -0.04421620815992355, 0.2778787910938263, 0.22502100467681885, 0.0003422411682549864, -0.0016541630029678345, 0.1805439442396164, -0.149187833070755, -0.20509502291679382, -0.14352598786354065, 0.12529969215393066, -0.02402130700647831, 0.05450097844004631, 0.02363859862089157, -0.018427837640047073, 0.04398617520928383, 0.16995051503181458, -0.11170435696840286, -0.03435930237174034, -0.026289429515600204, 0.03679215535521507, -0.18650323152542114, -0.0521763376891613, -0.23725953698158264, 0.14431777596473694, 0.1220884621143341, 0.20036961138248444, 0.03449394926428795, -0.05349497124552727, 0.014764923602342606, 0.08442191034555435, -0.002668999368324876, 0.10809694975614548, 0.08765113353729248, 0.13451476395130157, -0.021271951496601105, -0.004647680092602968, 0.1135004460811615, 0.14316661655902863, -0.049881838262081146, 0.12149155139923096, -0.016308292746543884, -0.02192898653447628, -0.05883915722370148, -0.051650263369083405, -0.12175440043210983, -0.10185964405536652, -0.07617256045341492, 0.0176538173109293, -0.055440254509449005, 0.028171516954898834, 0.010161145590245724, -0.08060737699270248, -0.07832575589418411, -0.07701209932565689, 0.09223715960979462, 0.12553192675113678, 0.025519415736198425, 0.17272673547267914, -0.2622879445552826, 0.02970338612794876, 0.295756071805954, 0.09854388982057571, -0.05552064627408981, 0.026402410119771957, 0.009487533010542393, 0.13066935539245605, -0.033595629036426544, 0.19453442096710205, 0.14050507545471191, 0.04475134238600731, -0.026950031518936157, 0.04625833034515381, 0.12679031491279602, 0.07343672960996628, -0.07112011313438416, 0.17471453547477722, 0.17891007661819458, -0.033911265432834625, 0.016657602041959763, -0.10407215356826782, -0.08817163109779358, 0.07898042351007462, -0.005933428183197975, -0.0659145936369896, -0.02920382097363472, -0.04474061727523804, 0.11097767949104309, 0.08562682569026947, -0.19370348751544952, 0.050808828324079514, 0.020554248243570328, -0.0422704815864563, -0.08642841130495071, 0.02136533334851265, -0.013993346132338047, 0.1556793600320816, 0.07989608496427536, 0.11518930643796921, 0.022069329395890236, 0.09223739057779312, -0.11373436450958252, 0.16624264419078827, -0.004729362670332193, 0.032789196819067, -0.06867808103561401, 0.17391040921211243, 0.010911474004387856, 0.03552377223968506, 0.057800471782684326, 0.18981267511844635, -0.03576868027448654, -0.05954791232943535, -0.07900756597518921, 0.023413922637701035, -0.18737079203128815, 0.04583008959889412, -0.041205644607543945, 0.060126204043626785, -0.008403202518820763, 0.06542429327964783, 0.1287103146314621, 0.12661418318748474, -0.040935054421424866, -0.01997462846338749, 0.0016193152405321598, -0.06992591172456741, 0.09805618971586227, 0.036833420395851135, -0.06034498289227486, 0.17588454484939575, 0.07489289343357086, 0.03709686920046806, 0.027422301471233368, 0.12436190247535706, 0.1366792768239975, -0.07323165982961655, 0.05386398732662201, -0.17370860278606415, 0.13282528519630432, 0.04433643817901611, -0.02786468155682087, -0.10655878484249115, -0.24101485311985016, -0.11214034259319305, -0.09668458253145218, 0.20955365896224976, -0.08791424334049225, -0.07717397063970566, -0.15258391201496124, -0.03338188678026199, -0.27345290780067444, 0.16264520585536957, 0.04857175052165985, -0.13768869638442993, 0.04539153352379799, 0.17646388709545135, -2.345388205746876e-32, 0.0026675600092858076, -0.009461608715355396, -0.04959697648882866, 0.040002793073654175, -0.12854427099227905, 0.08819244056940079, -0.10658381134271622, 0.06557872146368027, 0.207905113697052, -0.05594369024038315, 0.0006618667975999415, -0.16791485249996185, 0.0548674501478672, 0.014324525371193886, 0.11796294897794724, 0.021733304485678673, 0.07927899062633514, 0.14558008313179016, -0.0926070511341095, -0.05277329683303833, 0.2172870635986328, 0.0688135176897049, 0.01656281016767025, 0.12479426711797714, -0.057904526591300964, 0.09695130586624146, -0.027844753116369247, 0.027579838410019875, 0.050695281475782394, 0.1458575427532196, -0.004167357925325632, -0.08756066113710403, -0.055648934096097946, -0.005433267448097467, -0.09986187517642975, -0.1637393832206726, -0.18362171947956085, -0.03640195354819298, -0.021641677245497704, -0.10893259197473526, 0.0755600780248642, 0.15824778378009796, 0.0862320214509964, -0.07945578545331955, -0.034497976303100586, 0.06670622527599335, 0.002955720294266939, -0.0756404921412468, -0.21796786785125732, 0.11731211096048355, -0.16860908269882202, 0.02530256099998951, 0.06035600230097771, 0.019846877083182335, -0.11567533016204834, -0.15971599519252777, 0.15950627624988556, -0.19696027040481567, 0.013746686279773712, -0.18793368339538574, 0.30070632696151733, -0.14174573123455048, 0.011110727675259113, -0.07825715094804764, -0.13454967737197876, -0.01377628929913044, 0.11159869283437729, 0.09287367761135101, -0.0016923133516684175, -0.23073501884937286, 0.028433907777071, -0.04438411444425583, -0.022925158962607384, 0.06754562258720398, 0.16129371523857117, 0.01079768780618906, 0.017597254365682602, 0.050260990858078, 0.08017899841070175, -0.07367251813411713, 0.10734205693006516, 0.21905872225761414, -0.06042739748954773, -0.2000662386417389, -0.18652048707008362, -0.005103616043925285, 0.145442932844162, 0.028518831357359886, -0.004250809084624052, 0.013469046913087368, 0.09716569632291794, 0.21994955837726593, -0.07619184255599976, -0.07712158560752869, 0.17415934801101685, 0.015062506310641766, 0.036406271159648895, 0.08976968377828598, -0.16426622867584229, -0.027224034070968628, 0.061017949134111404, 0.04607933387160301, -0.10374688357114792, 0.042248260229825974, 0.02442571520805359, 0.3165888786315918, -0.003376148408278823, -0.16231034696102142, -0.0523189939558506, -0.10120239108800888, -0.07211317867040634, -0.1131192073225975, -0.06242908909916878, 0.1451367288827896, 0.20212331414222717, -0.2640317380428314, 0.01486774068325758, -0.1774224042892456, 0.10633787512779236, 0.22363531589508057, -0.06046162545681, -0.07172639667987823, -0.05906028673052788, 0.009971731342375278, -0.05154862999916077, -0.057807691395282745, -0.03435373306274414, -0.2491401582956314, 0.01062630396336317, -0.018639031797647476, 0.17539706826210022, -0.2479279637336731, 6.897805633343523e-7, -0.04800557717680931, 0.16044305264949799, -0.017638221383094788, 0.12075654417276382, -0.058238252997398376, 0.07049234211444855, -0.03187783807516098, 0.028328629210591316, -0.13831834495067596, 0.18626299500465393, 0.053921714425086975, -0.0646519586443901, 0.004490823019295931, 0.12484193593263626, 0.04704134911298752, 0.05804792419075966, -0.0460306778550148, -0.032945144921541214, -0.06441787630319595, 0.05852159857749939, 0.017851438373327255, -0.18301516771316528, 0.2586108148097992, -0.13016271591186523, 0.1049603745341301, -0.04676569998264313, 0.01963874138891697, 0.007907796651124954, 0.1447354406118393, 0.023105952888727188, -0.02291751280426979, 0.06785812973976135, -0.009860350750386715, 0.21381278336048126, -0.019573617726564407, 0.09347657114267349, 0.007714908104389906, -0.02691037580370903, -0.019606033340096474, 0.0020731817930936813, 0.11144382506608963, 0.024325015023350716, 0.09932081401348114, -0.11852549761533737, -0.09113630652427673, 0.11501532793045044, 0.078240305185318, -0.06834521144628525, 0.12260248512029648, 0.08887851238250732, -0.15501148998737335, 0.0018502598395571113, 0.010404769331216812, 0.1182636022567749, -0.024832023307681084, 0.0995078980922699, 0.07526613026857376, -0.10789255797863007, 0.3324339985847473, -0.06951554119586945, -0.1597427874803543, -0.14635176956653595, -0.033511482179164886, -0.035799071192741394, 0.0664229542016983, -0.03801334276795387, 0.022196613252162933, -6.734729134069289e-35, 0.10469786822795868, -0.010147366672754288, -0.0024129007942974567, 0.03521352633833885, 0.006039022002369165, 0.22384247183799744, 0.3432377874851227, -0.17197027802467346, 0.10345284640789032, -0.14237117767333984, -0.05567377805709839 ]
https://github.com/huggingface/datasets/issues/2643
Enum used in map functions will raise a RecursionError with dill.
I have the same bug. the code is as follows: ![image](https://user-images.githubusercontent.com/84262181/139785849-620dd4ac-86ce-4212-8163-942bbca305aa.png) the error is: ![image](https://user-images.githubusercontent.com/84262181/139785899-88a9bd75-c60b-45a5-b819-830c7c096f3d.png) Look for the solution for this bug.
## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above. ## Steps to reproduce the bug ```python from datasets import load_dataset from enum import Enum class A(Enum): a = 'a' def main(): a = A.a def f(x): return {} if a == a.a else x ds = load_dataset('cnn_dailymail', '3.0.0')['test'] ds = ds.map(f, num_proc=15) if __name__ == "__main__": main() ``` ## Expected results The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood. ## Actual results ```python File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type pickler.save_reduce(_create_type, (type(obj), obj.__name__, File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save self.framer.commit_frame() File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame if f.tell() >= self._FRAME_SIZE_TARGET or force: RecursionError: maximum recursion depth exceeded while calling a Python object ``` ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 3.0.0
22
Enum used in map functions will raise a RecursionError with dill. ## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above. ## Steps to reproduce the bug ```python from datasets import load_dataset from enum import Enum class A(Enum): a = 'a' def main(): a = A.a def f(x): return {} if a == a.a else x ds = load_dataset('cnn_dailymail', '3.0.0')['test'] ds = ds.map(f, num_proc=15) if __name__ == "__main__": main() ``` ## Expected results The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood. ## Actual results ```python File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type pickler.save_reduce(_create_type, (type(obj), obj.__name__, File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save self.framer.commit_frame() File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame if f.tell() >= self._FRAME_SIZE_TARGET or force: RecursionError: maximum recursion depth exceeded while calling a Python object ``` ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 3.0.0 I have the same bug. the code is as follows: ![image](https://user-images.githubusercontent.com/84262181/139785849-620dd4ac-86ce-4212-8163-942bbca305aa.png) the error is: ![image](https://user-images.githubusercontent.com/84262181/139785899-88a9bd75-c60b-45a5-b819-830c7c096f3d.png) Look for the solution for this bug.
[ -0.08099596202373505, 0.06269869208335876, -0.0973939523100853, 0.037235409021377563, 0.146867573261261, -0.03364092856645584, 0.03557191416621208, 0.03134731203317642, -0.04976014047861099, -0.22157473862171173, 0.15920650959014893, 0.015034797601401806, -0.016850505024194717, -0.11355022341012955, -0.13761380314826965, 0.11063549667596817, -0.04672088474035263, -0.06466656178236008, -0.19908301532268524, -0.11588216572999954, -0.18772543966770172, -0.060429640114307404, 0.0206587053835392, -0.0919879823923111, 0.18716435134410858, 0.033685103058815, -0.04076337814331055, 0.2758238911628723, -0.040114615112543106, -0.20293568074703217, 0.017917849123477936, -0.13262037932872772, 0.03736681863665581, -0.013635233044624329, 0.000004874890237260843, 0.0015776494983583689, 0.03604292497038841, 0.08437562733888626, -0.16848571598529816, -0.21393881738185883, -0.03355013579130173, -0.01780380867421627, 0.042053718119859695, -0.1091323047876358, 0.08062074333429337, 0.03334684669971466, -0.20722466707229614, -0.01482211984694004, 0.10778708755970001, -0.03808044642210007, -0.034071728587150574, 0.06974353641271591, 0.11747972667217255, -0.08884122222661972, -0.1361827254295349, 0.1754920333623886, 0.14030525088310242, 0.07809881865978241, -0.19768166542053223, -0.02510136179625988, 0.03491303697228432, 0.0063116783276200294, 0.022677304223179817, 0.1190473809838295, -0.2020765244960785, -0.007896767929196358, 0.32319310307502747, -0.0412566252052784, 0.020900564268231392, -0.13964545726776123, -0.17858746647834778, 0.0689273476600647, -0.011776532046496868, -0.07830581068992615, 0.018249280750751495, -0.32228511571884155, 0.1061849370598793, 0.10768641531467438, -0.013453079387545586, -0.12298537790775299, 0.22961992025375366, 0.013804047368466854, 0.03630135580897331, 0.026842838153243065, -0.050613127648830414, 0.057847511023283005, 0.06944193691015244, 0.13546782732009888, 0.07781921327114105, -0.08491352200508118, 0.21963153779506683, -0.051399484276771545, -0.1393045037984848, 0.03674181550741196, 0.1366836130619049, -0.01983589120209217, -0.013699457049369812, -0.28861135244369507, -0.01934235356748104, -0.20272937417030334, -0.13422119617462158, 0.03517550230026245, 0.03475344553589821, -0.04049525409936905, 0.35126930475234985, -0.16209763288497925, -0.15898829698562622, 0.1350969821214676, 0.07957775890827179, -0.12320845574140549, -0.03361757472157478, 0.06801585108041763, -0.049800049513578415, 0.05810188502073288, 0.01035564485937357, -0.183134526014328, 0.030244993045926094, -0.0036855509970337152, 0.022129066288471222, -0.009894460439682007, 0.018566414713859558, -0.102719746530056, -0.00603339122608304, 0.06317347288131714, 0.007986468262970448, 0.05951732397079468, 0.17762653529644012, -0.1452520191669464, -0.010277199558913708, 0.0558612160384655, 0.044502440840005875, -0.10221200436353683, 0.05148281902074814, -0.07405615597963333, -0.0368695966899395, 0.0019313566153869033, 0.1711452454328537, -0.059994131326675415, 0.002486282726749778, -0.005089604761451483, -0.049860138446092606, -0.0278606116771698, 0.08038008213043213, 0.005471745505928993, -0.1973918080329895, -0.011768369004130363, 0.18240410089492798, -0.0543348491191864, 0.106197789311409, -0.08693256229162216, -0.28867220878601074, 0.2232160121202469, -0.19792822003364563, -0.06561292707920074, -0.02860967442393303, 0.07942122220993042, 0.013774191960692406, -0.23730838298797607, -0.08647183328866959, -0.018715428188443184, -0.05010118708014488, -0.039669036865234375, 0.0685356929898262, -0.08096524327993393, -0.021748574450612068, -0.1524086892604828, -0.11269901692867279, -0.07621511071920395, 0.1565653681755066, -0.028326645493507385, 0.03044283203780651, 0.10282997041940689, 0.028303593397140503, 0.03991715610027313, -0.04573889076709747, 0.038229428231716156, -0.09075485169887543, 0.20396873354911804, -0.24201549589633942, -0.011026611551642418, -0.09203675389289856, -0.1539948731660843, -0.05647876486182213, -0.118393674492836, 0.020446237176656723, -0.052078984677791595, 0.04188047721982002, 0.06511197239160538, 0.10388384014368057, -0.23395591974258423, -0.11233777552843094, 0.13345202803611755, -0.03971017897129059, -0.06456552445888519, -0.002238114830106497, -0.06345576047897339, -0.04607245326042175, -0.08702632784843445, -0.062454402446746826, -0.19129638373851776, 0.10352245718240738, -0.11350632458925247, -0.00014358725456986576, 0.17796924710273743, 0.030180878937244415, 0.0532449446618557, -0.16999882459640503, 0.06101462244987488, -0.03018323704600334, -0.122258260846138, -0.09568151831626892, 0.0779288038611412, -0.01948714815080166, 0.2056666761636734, -0.14363226294517517, 0.037263963371515274, -0.041922856122255325, 0.13470330834388733, -0.210041344165802, -0.02130170352756977, -0.08381790667772293, -0.09224222600460052, -0.07336951047182083, -0.14711634814739227, 0.18644535541534424, 0.01590353436768055, 0.07166585326194763, 0.01731477677822113, -0.10735826194286346, -0.11296948045492172, 0.0013314159587025642, 0.018083034083247185, 0.09994277358055115, -0.029206497594714165, -0.06870196014642715, -0.06422774493694305, 0.03268353268504143, -0.31437769532203674, 0.10909884423017502, 0.05373130738735199, -0.15280745923519135, 0.16420668363571167, 0.1279345005750656, -0.07852235436439514, 0.08975708484649658, -0.08820361644029617, 0.14164911210536957, 0.12011635303497314, -0.02576528489589691, 0.02404901571571827, 0.08368083834648132, -0.12063281983137131, -0.036264460533857346, -0.11927147954702377, -0.11001119017601013, -0.3122968375682831, -0.03325658664107323, 0.03292267024517059, -0.049147799611091614, -0.17116333544254303, 0.16647671163082123, -0.015122149139642715, 0.17742834985256195, -0.07325304299592972, -0.020021146163344383, 0.038823988288640976, -0.0967104360461235, -0.05495469272136688, 0.2817414402961731, 0.14792872965335846, 0.09219252318143845, -0.11353076994419098, 0.128742516040802, -0.038694534450769424, -0.1322087198495865, -0.15381038188934326, 0.1212712824344635, 0.05211161449551582, -0.00567317521199584, 0.024574248120188713, -0.13346947729587555, -0.18428705632686615, 0.043257273733615875, -0.10597438365221024, -0.018225640058517456, -0.03548513352870941, -0.25766608119010925, 0.24000559747219086, -0.06909267604351044, -0.11171053349971771, -0.03480472043156624, 0.12720519304275513, -0.006028058007359505, -0.06303771585226059, -0.08601285517215729, -0.0041339281015098095, -0.06186392530798912, -0.0615638829767704, 0.19715546071529388, -0.00577542744576931, 0.04500674456357956, -0.10997556149959564, -0.046158332377672195, 0.04157322272658348, 0.10261718183755875, -0.22677192091941833, 0.29320812225341797, 0.3649798631668091, -0.137095645070076, -0.06676191836595535, -0.0945873036980629, -0.1183854192495346, 0.03231348842382431, -0.04134313389658928, 0.04982210695743561, 0.020960986614227295, -0.0005418297369033098, -0.12101642787456512, 0.04318595677614212, 0.10766421258449554, 0.20381025969982147, -0.0034234512131661177, -0.18909615278244019, -0.1762854903936386, 0.1632288694381714, 0.021746549755334854, -0.05934729799628258, -0.1142040267586708, -0.12002749741077423, 0.04414748027920723, -0.05132080614566803, 0.264523983001709, -0.07565349340438843, 0.10924853384494781, 0.07859137654304504, -0.1449437290430069, -0.11822716146707535, 0.2614209055900574, 0.0203465074300766, -0.005400341935455799, -0.06147465109825134, -0.22352401912212372, -0.11393483728170395, -0.0279722660779953, 0.04087260365486145, -0.0131897097453475, 0.11122103780508041, 0.05833234265446663, 0.024399491026997566, -0.12082435935735703, 0.02333110384643078, -0.033077672123909, -0.003628984559327364, -0.09862755984067917, -0.0458260141313076, -0.014462029561400414, -0.007178646046668291, 0.19109563529491425, -0.10770109295845032, 0.03738701716065407, -0.032557614147663116, -0.051807258278131485, 0.12392760068178177, 0.1575603187084198, -0.25434499979019165, 0.04626382142305374, 0.09211178123950958, -0.11513445526361465, -0.1804349273443222, -0.021191831678152084, -0.06295523792505264, 0.07799834758043289, -0.041456449776887894, 0.13491491973400116, -0.18144099414348602, -0.17956793308258057, 0.10169640928506851, -0.09287402778863907, 0.06572902202606201, 0.12158563733100891, 0.04606974497437477, -0.16516916453838348, -0.05401141569018364, 0.07279112190008163, 0.20950138568878174, 0.1789504885673523, 0.1638711839914322, 0.04000497981905937, -0.13534244894981384, 0.17934474349021912, 0.08650974929332733, 0.041972286999225616, 0.1508958786725998, 0.10613425076007843, -0.06457356363534927, -0.016857722774147987, 0.01148056797683239, 0.0386824756860733, -0.08693181723356247, -0.04421620815992355, 0.2778787910938263, 0.22502100467681885, 0.0003422411682549864, -0.0016541630029678345, 0.1805439442396164, -0.149187833070755, -0.20509502291679382, -0.14352598786354065, 0.12529969215393066, -0.02402130700647831, 0.05450097844004631, 0.02363859862089157, -0.018427837640047073, 0.04398617520928383, 0.16995051503181458, -0.11170435696840286, -0.03435930237174034, -0.026289429515600204, 0.03679215535521507, -0.18650323152542114, -0.0521763376891613, -0.23725953698158264, 0.14431777596473694, 0.1220884621143341, 0.20036961138248444, 0.03449394926428795, -0.05349497124552727, 0.014764923602342606, 0.08442191034555435, -0.002668999368324876, 0.10809694975614548, 0.08765113353729248, 0.13451476395130157, -0.021271951496601105, -0.004647680092602968, 0.1135004460811615, 0.14316661655902863, -0.049881838262081146, 0.12149155139923096, -0.016308292746543884, -0.02192898653447628, -0.05883915722370148, -0.051650263369083405, -0.12175440043210983, -0.10185964405536652, -0.07617256045341492, 0.0176538173109293, -0.055440254509449005, 0.028171516954898834, 0.010161145590245724, -0.08060737699270248, -0.07832575589418411, -0.07701209932565689, 0.09223715960979462, 0.12553192675113678, 0.025519415736198425, 0.17272673547267914, -0.2622879445552826, 0.02970338612794876, 0.295756071805954, 0.09854388982057571, -0.05552064627408981, 0.026402410119771957, 0.009487533010542393, 0.13066935539245605, -0.033595629036426544, 0.19453442096710205, 0.14050507545471191, 0.04475134238600731, -0.026950031518936157, 0.04625833034515381, 0.12679031491279602, 0.07343672960996628, -0.07112011313438416, 0.17471453547477722, 0.17891007661819458, -0.033911265432834625, 0.016657602041959763, -0.10407215356826782, -0.08817163109779358, 0.07898042351007462, -0.005933428183197975, -0.0659145936369896, -0.02920382097363472, -0.04474061727523804, 0.11097767949104309, 0.08562682569026947, -0.19370348751544952, 0.050808828324079514, 0.020554248243570328, -0.0422704815864563, -0.08642841130495071, 0.02136533334851265, -0.013993346132338047, 0.1556793600320816, 0.07989608496427536, 0.11518930643796921, 0.022069329395890236, 0.09223739057779312, -0.11373436450958252, 0.16624264419078827, -0.004729362670332193, 0.032789196819067, -0.06867808103561401, 0.17391040921211243, 0.010911474004387856, 0.03552377223968506, 0.057800471782684326, 0.18981267511844635, -0.03576868027448654, -0.05954791232943535, -0.07900756597518921, 0.023413922637701035, -0.18737079203128815, 0.04583008959889412, -0.041205644607543945, 0.060126204043626785, -0.008403202518820763, 0.06542429327964783, 0.1287103146314621, 0.12661418318748474, -0.040935054421424866, -0.01997462846338749, 0.0016193152405321598, -0.06992591172456741, 0.09805618971586227, 0.036833420395851135, -0.06034498289227486, 0.17588454484939575, 0.07489289343357086, 0.03709686920046806, 0.027422301471233368, 0.12436190247535706, 0.1366792768239975, -0.07323165982961655, 0.05386398732662201, -0.17370860278606415, 0.13282528519630432, 0.04433643817901611, -0.02786468155682087, -0.10655878484249115, -0.24101485311985016, -0.11214034259319305, -0.09668458253145218, 0.20955365896224976, -0.08791424334049225, -0.07717397063970566, -0.15258391201496124, -0.03338188678026199, -0.27345290780067444, 0.16264520585536957, 0.04857175052165985, -0.13768869638442993, 0.04539153352379799, 0.17646388709545135, -2.345388205746876e-32, 0.0026675600092858076, -0.009461608715355396, -0.04959697648882866, 0.040002793073654175, -0.12854427099227905, 0.08819244056940079, -0.10658381134271622, 0.06557872146368027, 0.207905113697052, -0.05594369024038315, 0.0006618667975999415, -0.16791485249996185, 0.0548674501478672, 0.014324525371193886, 0.11796294897794724, 0.021733304485678673, 0.07927899062633514, 0.14558008313179016, -0.0926070511341095, -0.05277329683303833, 0.2172870635986328, 0.0688135176897049, 0.01656281016767025, 0.12479426711797714, -0.057904526591300964, 0.09695130586624146, -0.027844753116369247, 0.027579838410019875, 0.050695281475782394, 0.1458575427532196, -0.004167357925325632, -0.08756066113710403, -0.055648934096097946, -0.005433267448097467, -0.09986187517642975, -0.1637393832206726, -0.18362171947956085, -0.03640195354819298, -0.021641677245497704, -0.10893259197473526, 0.0755600780248642, 0.15824778378009796, 0.0862320214509964, -0.07945578545331955, -0.034497976303100586, 0.06670622527599335, 0.002955720294266939, -0.0756404921412468, -0.21796786785125732, 0.11731211096048355, -0.16860908269882202, 0.02530256099998951, 0.06035600230097771, 0.019846877083182335, -0.11567533016204834, -0.15971599519252777, 0.15950627624988556, -0.19696027040481567, 0.013746686279773712, -0.18793368339538574, 0.30070632696151733, -0.14174573123455048, 0.011110727675259113, -0.07825715094804764, -0.13454967737197876, -0.01377628929913044, 0.11159869283437729, 0.09287367761135101, -0.0016923133516684175, -0.23073501884937286, 0.028433907777071, -0.04438411444425583, -0.022925158962607384, 0.06754562258720398, 0.16129371523857117, 0.01079768780618906, 0.017597254365682602, 0.050260990858078, 0.08017899841070175, -0.07367251813411713, 0.10734205693006516, 0.21905872225761414, -0.06042739748954773, -0.2000662386417389, -0.18652048707008362, -0.005103616043925285, 0.145442932844162, 0.028518831357359886, -0.004250809084624052, 0.013469046913087368, 0.09716569632291794, 0.21994955837726593, -0.07619184255599976, -0.07712158560752869, 0.17415934801101685, 0.015062506310641766, 0.036406271159648895, 0.08976968377828598, -0.16426622867584229, -0.027224034070968628, 0.061017949134111404, 0.04607933387160301, -0.10374688357114792, 0.042248260229825974, 0.02442571520805359, 0.3165888786315918, -0.003376148408278823, -0.16231034696102142, -0.0523189939558506, -0.10120239108800888, -0.07211317867040634, -0.1131192073225975, -0.06242908909916878, 0.1451367288827896, 0.20212331414222717, -0.2640317380428314, 0.01486774068325758, -0.1774224042892456, 0.10633787512779236, 0.22363531589508057, -0.06046162545681, -0.07172639667987823, -0.05906028673052788, 0.009971731342375278, -0.05154862999916077, -0.057807691395282745, -0.03435373306274414, -0.2491401582956314, 0.01062630396336317, -0.018639031797647476, 0.17539706826210022, -0.2479279637336731, 6.897805633343523e-7, -0.04800557717680931, 0.16044305264949799, -0.017638221383094788, 0.12075654417276382, -0.058238252997398376, 0.07049234211444855, -0.03187783807516098, 0.028328629210591316, -0.13831834495067596, 0.18626299500465393, 0.053921714425086975, -0.0646519586443901, 0.004490823019295931, 0.12484193593263626, 0.04704134911298752, 0.05804792419075966, -0.0460306778550148, -0.032945144921541214, -0.06441787630319595, 0.05852159857749939, 0.017851438373327255, -0.18301516771316528, 0.2586108148097992, -0.13016271591186523, 0.1049603745341301, -0.04676569998264313, 0.01963874138891697, 0.007907796651124954, 0.1447354406118393, 0.023105952888727188, -0.02291751280426979, 0.06785812973976135, -0.009860350750386715, 0.21381278336048126, -0.019573617726564407, 0.09347657114267349, 0.007714908104389906, -0.02691037580370903, -0.019606033340096474, 0.0020731817930936813, 0.11144382506608963, 0.024325015023350716, 0.09932081401348114, -0.11852549761533737, -0.09113630652427673, 0.11501532793045044, 0.078240305185318, -0.06834521144628525, 0.12260248512029648, 0.08887851238250732, -0.15501148998737335, 0.0018502598395571113, 0.010404769331216812, 0.1182636022567749, -0.024832023307681084, 0.0995078980922699, 0.07526613026857376, -0.10789255797863007, 0.3324339985847473, -0.06951554119586945, -0.1597427874803543, -0.14635176956653595, -0.033511482179164886, -0.035799071192741394, 0.0664229542016983, -0.03801334276795387, 0.022196613252162933, -6.734729134069289e-35, 0.10469786822795868, -0.010147366672754288, -0.0024129007942974567, 0.03521352633833885, 0.006039022002369165, 0.22384247183799744, 0.3432377874851227, -0.17197027802467346, 0.10345284640789032, -0.14237117767333984, -0.05567377805709839 ]
https://github.com/huggingface/datasets/issues/2643
Enum used in map functions will raise a RecursionError with dill.
Hi ! I think your RecursionError comes from a different issue @BitcoinNLPer , could you open a separate issue please ? Also which dataset are you using ? I tried loading `CodedotAI/code_clippy` but I get a different error ```python Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/quentinlhoest/Desktop/hf/datasets/src/datasets/load.py", line 1615, in load_dataset **config_kwargs, File "/Users/quentinlhoest/Desktop/hf/datasets/src/datasets/load.py", line 1446, in load_dataset_builder builder_cls = import_main_class(dataset_module.module_path) File "/Users/quentinlhoest/Desktop/hf/datasets/src/datasets/load.py", line 101, in import_main_class module = importlib.import_module(module_path) File "/Users/quentinlhoest/.virtualenvs/hf-datasets/lib/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/Users/quentinlhoest/.cache/huggingface/modules/datasets_modules/datasets/CodedotAI___code_clippy/d332f69d036e8c80f47bc9a96d676c3fa30cb50af7bb81e2d4d12e80b83efc4d/code_clippy.py", line 66, in <module> url_elements = results.find_all("a") AttributeError: 'NoneType' object has no attribute 'find_all' ```
## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above. ## Steps to reproduce the bug ```python from datasets import load_dataset from enum import Enum class A(Enum): a = 'a' def main(): a = A.a def f(x): return {} if a == a.a else x ds = load_dataset('cnn_dailymail', '3.0.0')['test'] ds = ds.map(f, num_proc=15) if __name__ == "__main__": main() ``` ## Expected results The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood. ## Actual results ```python File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type pickler.save_reduce(_create_type, (type(obj), obj.__name__, File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save self.framer.commit_frame() File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame if f.tell() >= self._FRAME_SIZE_TARGET or force: RecursionError: maximum recursion depth exceeded while calling a Python object ``` ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 3.0.0
144
Enum used in map functions will raise a RecursionError with dill. ## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above. ## Steps to reproduce the bug ```python from datasets import load_dataset from enum import Enum class A(Enum): a = 'a' def main(): a = A.a def f(x): return {} if a == a.a else x ds = load_dataset('cnn_dailymail', '3.0.0')['test'] ds = ds.map(f, num_proc=15) if __name__ == "__main__": main() ``` ## Expected results The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood. ## Actual results ```python File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type pickler.save_reduce(_create_type, (type(obj), obj.__name__, File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save self.framer.commit_frame() File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame if f.tell() >= self._FRAME_SIZE_TARGET or force: RecursionError: maximum recursion depth exceeded while calling a Python object ``` ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 3.0.0 Hi ! I think your RecursionError comes from a different issue @BitcoinNLPer , could you open a separate issue please ? Also which dataset are you using ? I tried loading `CodedotAI/code_clippy` but I get a different error ```python Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/quentinlhoest/Desktop/hf/datasets/src/datasets/load.py", line 1615, in load_dataset **config_kwargs, File "/Users/quentinlhoest/Desktop/hf/datasets/src/datasets/load.py", line 1446, in load_dataset_builder builder_cls = import_main_class(dataset_module.module_path) File "/Users/quentinlhoest/Desktop/hf/datasets/src/datasets/load.py", line 101, in import_main_class module = importlib.import_module(module_path) File "/Users/quentinlhoest/.virtualenvs/hf-datasets/lib/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/Users/quentinlhoest/.cache/huggingface/modules/datasets_modules/datasets/CodedotAI___code_clippy/d332f69d036e8c80f47bc9a96d676c3fa30cb50af7bb81e2d4d12e80b83efc4d/code_clippy.py", line 66, in <module> url_elements = results.find_all("a") AttributeError: 'NoneType' object has no attribute 'find_all' ```
[ -0.08099596202373505, 0.06269869208335876, -0.0973939523100853, 0.037235409021377563, 0.146867573261261, -0.03364092856645584, 0.03557191416621208, 0.03134731203317642, -0.04976014047861099, -0.22157473862171173, 0.15920650959014893, 0.015034797601401806, -0.016850505024194717, -0.11355022341012955, -0.13761380314826965, 0.11063549667596817, -0.04672088474035263, -0.06466656178236008, -0.19908301532268524, -0.11588216572999954, -0.18772543966770172, -0.060429640114307404, 0.0206587053835392, -0.0919879823923111, 0.18716435134410858, 0.033685103058815, -0.04076337814331055, 0.2758238911628723, -0.040114615112543106, -0.20293568074703217, 0.017917849123477936, -0.13262037932872772, 0.03736681863665581, -0.013635233044624329, 0.000004874890237260843, 0.0015776494983583689, 0.03604292497038841, 0.08437562733888626, -0.16848571598529816, -0.21393881738185883, -0.03355013579130173, -0.01780380867421627, 0.042053718119859695, -0.1091323047876358, 0.08062074333429337, 0.03334684669971466, -0.20722466707229614, -0.01482211984694004, 0.10778708755970001, -0.03808044642210007, -0.034071728587150574, 0.06974353641271591, 0.11747972667217255, -0.08884122222661972, -0.1361827254295349, 0.1754920333623886, 0.14030525088310242, 0.07809881865978241, -0.19768166542053223, -0.02510136179625988, 0.03491303697228432, 0.0063116783276200294, 0.022677304223179817, 0.1190473809838295, -0.2020765244960785, -0.007896767929196358, 0.32319310307502747, -0.0412566252052784, 0.020900564268231392, -0.13964545726776123, -0.17858746647834778, 0.0689273476600647, -0.011776532046496868, -0.07830581068992615, 0.018249280750751495, -0.32228511571884155, 0.1061849370598793, 0.10768641531467438, -0.013453079387545586, -0.12298537790775299, 0.22961992025375366, 0.013804047368466854, 0.03630135580897331, 0.026842838153243065, -0.050613127648830414, 0.057847511023283005, 0.06944193691015244, 0.13546782732009888, 0.07781921327114105, -0.08491352200508118, 0.21963153779506683, -0.051399484276771545, -0.1393045037984848, 0.03674181550741196, 0.1366836130619049, -0.01983589120209217, -0.013699457049369812, -0.28861135244369507, -0.01934235356748104, -0.20272937417030334, -0.13422119617462158, 0.03517550230026245, 0.03475344553589821, -0.04049525409936905, 0.35126930475234985, -0.16209763288497925, -0.15898829698562622, 0.1350969821214676, 0.07957775890827179, -0.12320845574140549, -0.03361757472157478, 0.06801585108041763, -0.049800049513578415, 0.05810188502073288, 0.01035564485937357, -0.183134526014328, 0.030244993045926094, -0.0036855509970337152, 0.022129066288471222, -0.009894460439682007, 0.018566414713859558, -0.102719746530056, -0.00603339122608304, 0.06317347288131714, 0.007986468262970448, 0.05951732397079468, 0.17762653529644012, -0.1452520191669464, -0.010277199558913708, 0.0558612160384655, 0.044502440840005875, -0.10221200436353683, 0.05148281902074814, -0.07405615597963333, -0.0368695966899395, 0.0019313566153869033, 0.1711452454328537, -0.059994131326675415, 0.002486282726749778, -0.005089604761451483, -0.049860138446092606, -0.0278606116771698, 0.08038008213043213, 0.005471745505928993, -0.1973918080329895, -0.011768369004130363, 0.18240410089492798, -0.0543348491191864, 0.106197789311409, -0.08693256229162216, -0.28867220878601074, 0.2232160121202469, -0.19792822003364563, -0.06561292707920074, -0.02860967442393303, 0.07942122220993042, 0.013774191960692406, -0.23730838298797607, -0.08647183328866959, -0.018715428188443184, -0.05010118708014488, -0.039669036865234375, 0.0685356929898262, -0.08096524327993393, -0.021748574450612068, -0.1524086892604828, -0.11269901692867279, -0.07621511071920395, 0.1565653681755066, -0.028326645493507385, 0.03044283203780651, 0.10282997041940689, 0.028303593397140503, 0.03991715610027313, -0.04573889076709747, 0.038229428231716156, -0.09075485169887543, 0.20396873354911804, -0.24201549589633942, -0.011026611551642418, -0.09203675389289856, -0.1539948731660843, -0.05647876486182213, -0.118393674492836, 0.020446237176656723, -0.052078984677791595, 0.04188047721982002, 0.06511197239160538, 0.10388384014368057, -0.23395591974258423, -0.11233777552843094, 0.13345202803611755, -0.03971017897129059, -0.06456552445888519, -0.002238114830106497, -0.06345576047897339, -0.04607245326042175, -0.08702632784843445, -0.062454402446746826, -0.19129638373851776, 0.10352245718240738, -0.11350632458925247, -0.00014358725456986576, 0.17796924710273743, 0.030180878937244415, 0.0532449446618557, -0.16999882459640503, 0.06101462244987488, -0.03018323704600334, -0.122258260846138, -0.09568151831626892, 0.0779288038611412, -0.01948714815080166, 0.2056666761636734, -0.14363226294517517, 0.037263963371515274, -0.041922856122255325, 0.13470330834388733, -0.210041344165802, -0.02130170352756977, -0.08381790667772293, -0.09224222600460052, -0.07336951047182083, -0.14711634814739227, 0.18644535541534424, 0.01590353436768055, 0.07166585326194763, 0.01731477677822113, -0.10735826194286346, -0.11296948045492172, 0.0013314159587025642, 0.018083034083247185, 0.09994277358055115, -0.029206497594714165, -0.06870196014642715, -0.06422774493694305, 0.03268353268504143, -0.31437769532203674, 0.10909884423017502, 0.05373130738735199, -0.15280745923519135, 0.16420668363571167, 0.1279345005750656, -0.07852235436439514, 0.08975708484649658, -0.08820361644029617, 0.14164911210536957, 0.12011635303497314, -0.02576528489589691, 0.02404901571571827, 0.08368083834648132, -0.12063281983137131, -0.036264460533857346, -0.11927147954702377, -0.11001119017601013, -0.3122968375682831, -0.03325658664107323, 0.03292267024517059, -0.049147799611091614, -0.17116333544254303, 0.16647671163082123, -0.015122149139642715, 0.17742834985256195, -0.07325304299592972, -0.020021146163344383, 0.038823988288640976, -0.0967104360461235, -0.05495469272136688, 0.2817414402961731, 0.14792872965335846, 0.09219252318143845, -0.11353076994419098, 0.128742516040802, -0.038694534450769424, -0.1322087198495865, -0.15381038188934326, 0.1212712824344635, 0.05211161449551582, -0.00567317521199584, 0.024574248120188713, -0.13346947729587555, -0.18428705632686615, 0.043257273733615875, -0.10597438365221024, -0.018225640058517456, -0.03548513352870941, -0.25766608119010925, 0.24000559747219086, -0.06909267604351044, -0.11171053349971771, -0.03480472043156624, 0.12720519304275513, -0.006028058007359505, -0.06303771585226059, -0.08601285517215729, -0.0041339281015098095, -0.06186392530798912, -0.0615638829767704, 0.19715546071529388, -0.00577542744576931, 0.04500674456357956, -0.10997556149959564, -0.046158332377672195, 0.04157322272658348, 0.10261718183755875, -0.22677192091941833, 0.29320812225341797, 0.3649798631668091, -0.137095645070076, -0.06676191836595535, -0.0945873036980629, -0.1183854192495346, 0.03231348842382431, -0.04134313389658928, 0.04982210695743561, 0.020960986614227295, -0.0005418297369033098, -0.12101642787456512, 0.04318595677614212, 0.10766421258449554, 0.20381025969982147, -0.0034234512131661177, -0.18909615278244019, -0.1762854903936386, 0.1632288694381714, 0.021746549755334854, -0.05934729799628258, -0.1142040267586708, -0.12002749741077423, 0.04414748027920723, -0.05132080614566803, 0.264523983001709, -0.07565349340438843, 0.10924853384494781, 0.07859137654304504, -0.1449437290430069, -0.11822716146707535, 0.2614209055900574, 0.0203465074300766, -0.005400341935455799, -0.06147465109825134, -0.22352401912212372, -0.11393483728170395, -0.0279722660779953, 0.04087260365486145, -0.0131897097453475, 0.11122103780508041, 0.05833234265446663, 0.024399491026997566, -0.12082435935735703, 0.02333110384643078, -0.033077672123909, -0.003628984559327364, -0.09862755984067917, -0.0458260141313076, -0.014462029561400414, -0.007178646046668291, 0.19109563529491425, -0.10770109295845032, 0.03738701716065407, -0.032557614147663116, -0.051807258278131485, 0.12392760068178177, 0.1575603187084198, -0.25434499979019165, 0.04626382142305374, 0.09211178123950958, -0.11513445526361465, -0.1804349273443222, -0.021191831678152084, -0.06295523792505264, 0.07799834758043289, -0.041456449776887894, 0.13491491973400116, -0.18144099414348602, -0.17956793308258057, 0.10169640928506851, -0.09287402778863907, 0.06572902202606201, 0.12158563733100891, 0.04606974497437477, -0.16516916453838348, -0.05401141569018364, 0.07279112190008163, 0.20950138568878174, 0.1789504885673523, 0.1638711839914322, 0.04000497981905937, -0.13534244894981384, 0.17934474349021912, 0.08650974929332733, 0.041972286999225616, 0.1508958786725998, 0.10613425076007843, -0.06457356363534927, -0.016857722774147987, 0.01148056797683239, 0.0386824756860733, -0.08693181723356247, -0.04421620815992355, 0.2778787910938263, 0.22502100467681885, 0.0003422411682549864, -0.0016541630029678345, 0.1805439442396164, -0.149187833070755, -0.20509502291679382, -0.14352598786354065, 0.12529969215393066, -0.02402130700647831, 0.05450097844004631, 0.02363859862089157, -0.018427837640047073, 0.04398617520928383, 0.16995051503181458, -0.11170435696840286, -0.03435930237174034, -0.026289429515600204, 0.03679215535521507, -0.18650323152542114, -0.0521763376891613, -0.23725953698158264, 0.14431777596473694, 0.1220884621143341, 0.20036961138248444, 0.03449394926428795, -0.05349497124552727, 0.014764923602342606, 0.08442191034555435, -0.002668999368324876, 0.10809694975614548, 0.08765113353729248, 0.13451476395130157, -0.021271951496601105, -0.004647680092602968, 0.1135004460811615, 0.14316661655902863, -0.049881838262081146, 0.12149155139923096, -0.016308292746543884, -0.02192898653447628, -0.05883915722370148, -0.051650263369083405, -0.12175440043210983, -0.10185964405536652, -0.07617256045341492, 0.0176538173109293, -0.055440254509449005, 0.028171516954898834, 0.010161145590245724, -0.08060737699270248, -0.07832575589418411, -0.07701209932565689, 0.09223715960979462, 0.12553192675113678, 0.025519415736198425, 0.17272673547267914, -0.2622879445552826, 0.02970338612794876, 0.295756071805954, 0.09854388982057571, -0.05552064627408981, 0.026402410119771957, 0.009487533010542393, 0.13066935539245605, -0.033595629036426544, 0.19453442096710205, 0.14050507545471191, 0.04475134238600731, -0.026950031518936157, 0.04625833034515381, 0.12679031491279602, 0.07343672960996628, -0.07112011313438416, 0.17471453547477722, 0.17891007661819458, -0.033911265432834625, 0.016657602041959763, -0.10407215356826782, -0.08817163109779358, 0.07898042351007462, -0.005933428183197975, -0.0659145936369896, -0.02920382097363472, -0.04474061727523804, 0.11097767949104309, 0.08562682569026947, -0.19370348751544952, 0.050808828324079514, 0.020554248243570328, -0.0422704815864563, -0.08642841130495071, 0.02136533334851265, -0.013993346132338047, 0.1556793600320816, 0.07989608496427536, 0.11518930643796921, 0.022069329395890236, 0.09223739057779312, -0.11373436450958252, 0.16624264419078827, -0.004729362670332193, 0.032789196819067, -0.06867808103561401, 0.17391040921211243, 0.010911474004387856, 0.03552377223968506, 0.057800471782684326, 0.18981267511844635, -0.03576868027448654, -0.05954791232943535, -0.07900756597518921, 0.023413922637701035, -0.18737079203128815, 0.04583008959889412, -0.041205644607543945, 0.060126204043626785, -0.008403202518820763, 0.06542429327964783, 0.1287103146314621, 0.12661418318748474, -0.040935054421424866, -0.01997462846338749, 0.0016193152405321598, -0.06992591172456741, 0.09805618971586227, 0.036833420395851135, -0.06034498289227486, 0.17588454484939575, 0.07489289343357086, 0.03709686920046806, 0.027422301471233368, 0.12436190247535706, 0.1366792768239975, -0.07323165982961655, 0.05386398732662201, -0.17370860278606415, 0.13282528519630432, 0.04433643817901611, -0.02786468155682087, -0.10655878484249115, -0.24101485311985016, -0.11214034259319305, -0.09668458253145218, 0.20955365896224976, -0.08791424334049225, -0.07717397063970566, -0.15258391201496124, -0.03338188678026199, -0.27345290780067444, 0.16264520585536957, 0.04857175052165985, -0.13768869638442993, 0.04539153352379799, 0.17646388709545135, -2.345388205746876e-32, 0.0026675600092858076, -0.009461608715355396, -0.04959697648882866, 0.040002793073654175, -0.12854427099227905, 0.08819244056940079, -0.10658381134271622, 0.06557872146368027, 0.207905113697052, -0.05594369024038315, 0.0006618667975999415, -0.16791485249996185, 0.0548674501478672, 0.014324525371193886, 0.11796294897794724, 0.021733304485678673, 0.07927899062633514, 0.14558008313179016, -0.0926070511341095, -0.05277329683303833, 0.2172870635986328, 0.0688135176897049, 0.01656281016767025, 0.12479426711797714, -0.057904526591300964, 0.09695130586624146, -0.027844753116369247, 0.027579838410019875, 0.050695281475782394, 0.1458575427532196, -0.004167357925325632, -0.08756066113710403, -0.055648934096097946, -0.005433267448097467, -0.09986187517642975, -0.1637393832206726, -0.18362171947956085, -0.03640195354819298, -0.021641677245497704, -0.10893259197473526, 0.0755600780248642, 0.15824778378009796, 0.0862320214509964, -0.07945578545331955, -0.034497976303100586, 0.06670622527599335, 0.002955720294266939, -0.0756404921412468, -0.21796786785125732, 0.11731211096048355, -0.16860908269882202, 0.02530256099998951, 0.06035600230097771, 0.019846877083182335, -0.11567533016204834, -0.15971599519252777, 0.15950627624988556, -0.19696027040481567, 0.013746686279773712, -0.18793368339538574, 0.30070632696151733, -0.14174573123455048, 0.011110727675259113, -0.07825715094804764, -0.13454967737197876, -0.01377628929913044, 0.11159869283437729, 0.09287367761135101, -0.0016923133516684175, -0.23073501884937286, 0.028433907777071, -0.04438411444425583, -0.022925158962607384, 0.06754562258720398, 0.16129371523857117, 0.01079768780618906, 0.017597254365682602, 0.050260990858078, 0.08017899841070175, -0.07367251813411713, 0.10734205693006516, 0.21905872225761414, -0.06042739748954773, -0.2000662386417389, -0.18652048707008362, -0.005103616043925285, 0.145442932844162, 0.028518831357359886, -0.004250809084624052, 0.013469046913087368, 0.09716569632291794, 0.21994955837726593, -0.07619184255599976, -0.07712158560752869, 0.17415934801101685, 0.015062506310641766, 0.036406271159648895, 0.08976968377828598, -0.16426622867584229, -0.027224034070968628, 0.061017949134111404, 0.04607933387160301, -0.10374688357114792, 0.042248260229825974, 0.02442571520805359, 0.3165888786315918, -0.003376148408278823, -0.16231034696102142, -0.0523189939558506, -0.10120239108800888, -0.07211317867040634, -0.1131192073225975, -0.06242908909916878, 0.1451367288827896, 0.20212331414222717, -0.2640317380428314, 0.01486774068325758, -0.1774224042892456, 0.10633787512779236, 0.22363531589508057, -0.06046162545681, -0.07172639667987823, -0.05906028673052788, 0.009971731342375278, -0.05154862999916077, -0.057807691395282745, -0.03435373306274414, -0.2491401582956314, 0.01062630396336317, -0.018639031797647476, 0.17539706826210022, -0.2479279637336731, 6.897805633343523e-7, -0.04800557717680931, 0.16044305264949799, -0.017638221383094788, 0.12075654417276382, -0.058238252997398376, 0.07049234211444855, -0.03187783807516098, 0.028328629210591316, -0.13831834495067596, 0.18626299500465393, 0.053921714425086975, -0.0646519586443901, 0.004490823019295931, 0.12484193593263626, 0.04704134911298752, 0.05804792419075966, -0.0460306778550148, -0.032945144921541214, -0.06441787630319595, 0.05852159857749939, 0.017851438373327255, -0.18301516771316528, 0.2586108148097992, -0.13016271591186523, 0.1049603745341301, -0.04676569998264313, 0.01963874138891697, 0.007907796651124954, 0.1447354406118393, 0.023105952888727188, -0.02291751280426979, 0.06785812973976135, -0.009860350750386715, 0.21381278336048126, -0.019573617726564407, 0.09347657114267349, 0.007714908104389906, -0.02691037580370903, -0.019606033340096474, 0.0020731817930936813, 0.11144382506608963, 0.024325015023350716, 0.09932081401348114, -0.11852549761533737, -0.09113630652427673, 0.11501532793045044, 0.078240305185318, -0.06834521144628525, 0.12260248512029648, 0.08887851238250732, -0.15501148998737335, 0.0018502598395571113, 0.010404769331216812, 0.1182636022567749, -0.024832023307681084, 0.0995078980922699, 0.07526613026857376, -0.10789255797863007, 0.3324339985847473, -0.06951554119586945, -0.1597427874803543, -0.14635176956653595, -0.033511482179164886, -0.035799071192741394, 0.0664229542016983, -0.03801334276795387, 0.022196613252162933, -6.734729134069289e-35, 0.10469786822795868, -0.010147366672754288, -0.0024129007942974567, 0.03521352633833885, 0.006039022002369165, 0.22384247183799744, 0.3432377874851227, -0.17197027802467346, 0.10345284640789032, -0.14237117767333984, -0.05567377805709839 ]
https://github.com/huggingface/datasets/issues/2642
Support multi-worker with streaming dataset (IterableDataset).
Hi ! This is a great idea :) I think we could have something similar to what we have in `datasets.Dataset.map`, i.e. a `num_proc` parameter that tells how many processes to spawn to parallelize the data processing. Regarding AUTOTUNE, this could be a nice feature as well, we could see how to add it in a second step
**Is your feature request related to a problem? Please describe.** The current `.map` does not support multi-process, CPU can become bottleneck if the pre-processing is complex (e.g. t5 span masking). **Describe the solution you'd like** Ideally `.map` should support multi-worker like tfds, with `AUTOTUNE`. **Describe alternatives you've considered** A simpler solution is to shard the dataset and process it in parallel with pytorch dataloader. The shard does not need to be of equal size. * https://pytorch.org/docs/stable/data.html#torch.utils.data.IterableDataset **Additional context**
58
Support multi-worker with streaming dataset (IterableDataset). **Is your feature request related to a problem? Please describe.** The current `.map` does not support multi-process, CPU can become bottleneck if the pre-processing is complex (e.g. t5 span masking). **Describe the solution you'd like** Ideally `.map` should support multi-worker like tfds, with `AUTOTUNE`. **Describe alternatives you've considered** A simpler solution is to shard the dataset and process it in parallel with pytorch dataloader. The shard does not need to be of equal size. * https://pytorch.org/docs/stable/data.html#torch.utils.data.IterableDataset **Additional context** Hi ! This is a great idea :) I think we could have something similar to what we have in `datasets.Dataset.map`, i.e. a `num_proc` parameter that tells how many processes to spawn to parallelize the data processing. Regarding AUTOTUNE, this could be a nice feature as well, we could see how to add it in a second step
[ -0.13628609478473663, 0.24740439653396606, -0.07215948402881622, 0.027629347518086433, 0.023081820458173752, 0.04731971025466919, 0.29985910654067993, -0.015051238238811493, -0.027547789737582207, 0.03782050311565399, -0.12358410656452179, 0.02467263676226139, -0.22925691306591034, 0.09568550437688828, 0.12719880044460297, -0.3297317922115326, -0.058307014405727386, 0.029092827811837196, -0.011082354001700878, 0.08135125786066055, 0.006703067570924759, 0.11255429685115814, 0.09353289753198624, -0.10204683989286423, -0.05010676756501198, -0.04661249741911888, -0.04680774733424187, -0.029959330335259438, 0.13662680983543396, -0.038821253925561905, 0.016411280259490013, 0.09396645426750183, 0.02885969914495945, 0.23419716954231262, 0.000005411524853116134, 0.18089133501052856, 0.08625434339046478, -0.011669237166643143, 0.0734783485531807, 0.00881989300251007, 0.1300601214170456, 0.02460039220750332, -0.021091222763061523, -0.10817612707614899, 0.002771098632365465, 0.08013113588094711, 0.09318070858716965, -0.07302723824977875, 0.12540052831172943, -0.20703670382499695, -0.03310522437095642, 0.10984090715646744, -0.17035438120365143, -0.12667794525623322, -0.06495828926563263, -0.019560351967811584, -0.0168670192360878, -0.011082381941378117, -0.018261736258864403, -0.03237737715244293, -0.060392655432224274, 0.04971765726804733, 0.01788741536438465, 0.0464809350669384, 0.09874127060174942, -0.0840674415230751, -0.20159605145454407, -0.21620585024356842, -0.07967206090688705, 0.05373167246580124, -0.14058049023151398, -0.11495227366685867, 0.0402037613093853, -0.039165083318948746, -0.1365557610988617, -0.1471976786851883, -0.002657287521287799, 0.012188659980893135, -0.11574660241603851, 0.0012059970758855343, -0.09349682927131653, -0.01403174176812172, -0.03450079634785652, 0.04811277613043785, -0.14710931479930878, -0.023312443867325783, 0.07413534075021744, 0.15058594942092896, -0.01090201735496521, 0.1392967700958252, 0.10337641835212708, -0.07042726129293442, 0.09008334577083588, 0.01887528970837593, -0.18833449482917786, 0.006959022954106331, -0.16972863674163818, -0.1996074765920639, 0.03171325474977493, -0.2069120556116104, 0.05826842784881592, 0.00823951605707407, -0.05425851792097092, 0.14902116358280182, 0.11283043026924133, -0.2255762666463852, -0.16577011346817017, 0.008639673702418804, 0.006204560399055481, -0.11443375796079636, 0.06882210820913315, 0.1321232169866562, -0.02445090003311634, -0.13755254447460175, -0.05760588124394417, 0.004075558390468359, 0.02810804173350334, 0.3101283311843872, -0.02077544294297695, -0.06716714054346085, 0.07577738165855408, 0.01009173970669508, -0.09024228900671005, 0.05966049060225487, 0.05418729782104492, 0.03005312941968441, -0.0599031075835228, -0.02856149524450302, -0.07655679434537888, -0.1430259495973587, 0.0230186115950346, -0.020407717674970627, 0.11602950096130371, 0.040922585874795914, 0.14294517040252686, -0.22904129326343536, -0.0007426837692037225, -0.14296334981918335, 0.0811028704047203, 0.08606979995965958, 0.2134627252817154, 0.01855996623635292, 0.03751738741993904, 0.013545765541493893, 0.12032395601272583, 0.0033690715208649635, 0.007706801872700453, 0.2878420054912567, -0.13466256856918335, 0.16083848476409912, -0.012333725579082966, 0.11392010003328323, -0.08742862939834595, 0.14111965894699097, -0.026744630187749863, 0.10097227245569229, 0.016467267647385597, -0.12127003818750381, -0.1745678037405014, -0.08018195629119873, -0.024568116292357445, -0.0894194096326828, -0.2855361998081207, 0.0585501529276371, 0.01200595311820507, 0.12317632138729095, 0.11383789032697678, 0.1043059229850769, 0.005787472706288099, -0.02602528966963291, 0.08049344271421432, -0.1151217371225357, -0.056564975529909134, -0.11814118176698685, 0.0117047019302845, 0.1437104046344757, -0.0172360111027956, 0.19605860114097595, -0.05797005072236061, 0.07903777807950974, 0.009854321368038654, -0.10294660180807114, 0.10544871538877487, 0.0374014787375927, 0.3535624146461487, -0.18985845148563385, 0.02391713485121727, 0.14027802646160126, -0.18826797604560852, 0.14636951684951782, 0.025209257379174232, 0.010215749964118004, 0.09806344658136368, 0.2413596361875534, 0.04344455897808075, -0.004258261062204838, -0.04825334623456001, -0.19043782353401184, 0.027200177311897278, -0.08002503216266632, 0.011637159623205662, -0.007318223360925913, -0.038039062172174454, -0.019602295011281967, -0.0039161150343716145, -0.07593132555484772, -0.0958445817232132, 0.09265200793743134, 0.1888008713722229, -0.06969621777534485, 0.10708025842905045, 0.02013377845287323, 0.09813430160284042, -0.01876663789153099, -0.15984563529491425, -0.07162079215049744, -0.12018563598394394, 0.03323996067047119, -0.3003455400466919, -0.09652329981327057, -0.20029321312904358, 0.19659535586833954, 0.14062225818634033, -0.017230166122317314, -0.020479748025536537, 0.009366815909743309, 0.005165890324860811, 0.00020793713338207453, 0.12284409254789352, -0.07222995907068253, -0.11487779021263123, -0.0547892190515995, 0.15996813774108887, 0.10000702738761902, -0.0974917784333229, 0.0018570655956864357, 0.026447732001543045, 0.1266654133796692, 0.008462104015052319, -0.07240509986877441, -0.22586283087730408, 0.08889582753181458, -0.10616752505302429, -0.08418837189674377, 0.07470446079969406, 0.17967239022254944, -0.0909978598356247, 0.018514787778258324, -0.1017938181757927, -0.03491206094622612, 0.14824989438056946, 0.10921219736337662, -0.14294473826885223, 0.053077973425388336, -0.05208344757556915, -0.10610494762659073, 0.07673473656177521, -0.03952556848526001, -0.005210423842072487, -0.06786991655826569, 0.20465420186519623, 0.09166894853115082, 0.09515862911939621, -0.04820219427347183, 0.02617357298731804, 0.04723426699638367, 0.06933564692735672, -0.01625826396048069, 0.044725168496370316, 0.024571236222982407, 0.09870466589927673, 0.07749778032302856, -0.043044913560152054, -0.06574149429798126, 0.01897214725613594, -0.07534129172563553, 0.016639146953821182, 0.023950805887579918, 0.06082075089216232, -0.02894449420273304, -0.028489621356129646, 0.08455146849155426, 0.1786329448223114, -0.17159539461135864, 0.0712411031126976, -0.08489557355642319, -0.014576609246432781, 0.025285348296165466, -0.11611899733543396, -0.1595417857170105, 0.04502563551068306, -0.06270144134759903, 0.02208157628774643, 0.16558614373207092, 0.1276276707649231, 0.056862615048885345, 0.0800996869802475, 0.02098403498530388, -0.04942432418465614, -0.1453651487827301, -0.05174950510263443, -0.1549323946237564, 0.21204683184623718, 0.07311626523733139, 0.0517139658331871, -0.06830175220966339, 0.11047885566949844, 0.17113371193408966, -0.2049538642168045, -0.2665390968322754, -0.03386559709906578, 0.0208952184766531, 0.033589012920856476, -0.14160208404064178, 0.08154936879873276, -0.11409014463424683, -0.05459555983543396, -0.23768772184848785, 0.10878971964120865, -0.18410427868366241, 0.04258626326918602, 0.11689700931310654, -0.045074012130498886, 0.08192043751478195, -0.16400271654129028, -0.0017470953753218055, -0.12210991978645325, -0.148225337266922, -0.04032330960035324, -0.0709386020898819, -0.03582777827978134, -0.17232826352119446, 0.010030064731836319, 0.1089407280087471, 0.14516162872314453, -0.15782177448272705, -0.04226425662636757, -0.11455196887254715, 0.17811721563339233, -0.045120444148778915, -0.09981726109981537, -0.09116287529468536, -0.0120449373498559, -0.034211646765470505, 0.10026997327804565, -0.02585122175514698, 0.14263767004013062, -0.04110848903656006, 0.04006049036979675, 0.02998542971909046, -0.0037370584905147552, 0.05888865888118744, -0.005307722836732864, 0.005909499246627092, -0.08594150096178055, 0.1308964639902115, -0.073284812271595, 0.1305948793888092, -0.2012125700712204, 0.13240140676498413, -0.05188237130641937, 0.20624402165412903, 0.25870364904403687, -0.22458678483963013, -0.17217786610126495, 0.0030153279658406973, 0.20831219851970673, 0.01363818533718586, 0.022549424320459366, -0.18686559796333313, -0.021211523562669754, -0.1852957308292389, 0.06992711871862411, -0.050576865673065186, -0.09037669003009796, -0.09891222417354584, -0.05218212679028511, -0.07939023524522781, 0.09992001950740814, -0.011073368601500988, 0.0752675011754036, -0.043138325214385986, 0.059745851904153824, -0.06405097246170044, -0.04044216871261597, -0.03902566805481911, -0.0692465603351593, -0.08792084455490112, 0.018204741179943085, 0.3077923357486725, -0.038377974182367325, 0.21643000841140747, 0.1579459011554718, -0.19265957176685333, 0.10515914857387543, -0.05924474447965622, 0.08931858092546463, -0.032911427319049835, 0.006869732867926359, -0.013029562309384346, 0.12379717826843262, 0.11970370262861252, -0.014991046860814095, -0.012243533506989479, -0.030572252348065376, -0.11308370530605316, 0.09087599813938141, 0.04625779762864113, 0.03661084175109863, 0.046487290412187576, -0.0035492845345288515, 0.026630185544490814, -0.11320741474628448, -0.09663812816143036, 0.10543552041053772, -0.14500336349010468, -0.13336122035980225, -0.10408951342105865, 0.17962013185024261, 0.03260376676917076, -0.00832036416977644, -0.20388849079608917, 0.20946665108203888, -0.010932681150734425, 0.05693863332271576, -0.03974417969584465, -0.10105977952480316, 0.19023604691028595, 0.14297273755073547, -0.029023241251707077, 0.00791357085108757, 0.09173612296581268, 0.05029917135834694, 0.027297943830490112, 0.023139171302318573, -0.12949663400650024, 0.09898856282234192, -0.11144603788852692, -0.1826489418745041, 0.06839895993471146, -0.10499092191457748, 0.09752381592988968, 0.16215650737285614, -0.10719684511423111, -0.0054578580893576145, 0.008452740497887135, -0.16783273220062256, 0.0022609452717006207, -0.03724910318851471, 0.022207099944353104, -0.09969218820333481, -0.037052787840366364, -0.21823441982269287, -0.07719363272190094, 0.07643533498048782, 0.08820760995149612, 0.14169660210609436, -0.27549368143081665, 0.023825474083423615, 0.10163886845111847, -0.019090229645371437, -0.08181308954954147, 0.030583832412958145, -0.07850277423858643, -0.19485336542129517, 0.19104593992233276, 0.01872769370675087, -0.07034057378768921, 0.10339858382940292, 0.04341408237814903, -0.10601989179849625, 0.052149347960948944, 0.009578014723956585, -0.02433921955525875, 0.19496949017047882, -0.10362716019153595, -0.007412029895931482, -0.053107064217329025, 0.05240705609321594, -0.002480513183400035, 0.09581761807203293, -0.008389470167458057, 0.06796403229236603, -0.0058409529738128185, 0.009782525710761547, 0.06333443522453308, -0.11313296109437943, 0.015299945138394833, -0.24493619799613953, 0.27002403140068054, -0.01093260943889618, -0.1613256335258484, -0.04083864390850067, 0.07140544801950455, 0.13109953701496124, -0.18812400102615356, -0.030204836279153824, 0.20322702825069427, 0.02367071621119976, -0.05246811732649803, -0.026212837547063828, 0.06763047724962234, 0.03660539910197258, -0.02002577856183052, 0.07981662452220917, -0.11800994724035263, -0.004410610534250736, -0.07797715067863464, 0.1553429365158081, -0.04486937075853348, 0.046874187886714935, -0.03493248671293259, -0.09735917299985886, -0.12513387203216553, 0.13418956100940704, 0.010139115154743195, 0.031547147780656815, 0.13432171940803528, 0.1020483449101448, -0.10069551318883896, -0.0805816724896431, -0.060240428894758224, -0.0763353779911995, -0.17835868895053864, 0.06283602118492126, 0.01140355784446001, 0.04386531934142113, -0.02025366760790348, 0.022195033729076385, 0.026082171127200127, 0.10471630841493607, -0.01096633542329073, 0.13398827612400055, -0.12661747634410858, -0.1145552545785904, -0.04482021555304527, 0.032675307244062424, -0.01574825495481491, -0.09043208509683609, 0.021861208602786064, 0.12178125977516174, -0.04250353202223778, -0.10864605009555817, -0.07281407713890076, 0.0375247523188591, -0.23121893405914307, -0.06238280609250069, 0.0012027921620756388, -0.05729411542415619, -0.11449985951185226, 0.093079574406147, 0.21689380705356598, 0.2239176481962204, -0.08837951719760895, 0.03131232038140297, -2.8969737953804677e-32, 0.04204322025179863, 0.05561492592096329, -0.04610489681363106, 0.040420204401016235, -0.011942685581743717, -0.11537148058414459, 0.028908954933285713, -0.1304514855146408, 0.09656832367181778, -0.057618964463472366, -0.05924176797270775, 0.1406339854001999, 0.13848397135734558, 0.008014743216335773, -0.0489816777408123, -0.027778826653957367, 0.16060678660869598, -0.1360851377248764, 0.0386211983859539, 0.09596002101898193, 0.028818534687161446, 0.03007650189101696, 0.07225135713815689, 0.12063433974981308, -0.04581206291913986, 0.01993187889456749, 0.0020650988444685936, -0.04158021882176399, -0.09726881235837936, -0.15658235549926758, -0.0955849215388298, 0.2392406314611435, 0.019404157996177673, -0.04445767402648926, -0.1700744926929474, 0.12865504622459412, -0.2690109312534332, 0.09087798744440079, -0.08977829664945602, 0.08694122731685638, -0.0702272281050682, 0.1737237274646759, 0.0830058753490448, 0.08378739655017853, 0.11849361658096313, 0.11384490132331848, -0.03224766254425049, 0.018922369927167892, -0.04200536757707596, 0.025128133594989777, 0.10164723545312881, 0.1647302359342575, -0.017324458807706833, 0.027403108775615692, 0.1011984720826149, 0.019414955750107765, 0.11255788058042526, -0.03888467699289322, -0.21492193639278412, 0.028743285685777664, 0.025278503075242043, -0.030231812968850136, 0.049788303673267365, 0.055331554263830185, 0.08418753743171692, -0.08438565582036972, 0.02829686738550663, -0.004246999509632587, 0.15051117539405823, 0.05110045522451401, 0.011868231929838657, 0.0780273899435997, 0.08457110077142715, -0.07139940559864044, -0.20431187748908997, 0.030843112617731094, -0.1177387535572052, 0.004946221597492695, 0.060493286699056625, -0.05549691244959831, -0.007005596067756414, -0.012235160917043686, 0.03577801212668419, 0.013055318966507912, 0.1262121945619583, 0.10384322702884674, 0.10317082703113556, 0.1676207184791565, -0.0320681594312191, 0.012875033542513847, 0.060597725212574005, 0.35722091794013977, 0.09816279262304306, 0.040246378630399704, 0.04336989298462868, 0.07669597119092941, 0.057734761387109756, 0.14066649973392487, 0.03756243363022804, 0.004357018042355776, 0.00036934640957042575, 0.08307014405727386, -0.03163468837738037, 0.020551010966300964, 0.014817161485552788, -0.0011253637494519353, 0.026594441384077072, 0.014936347492039204, -0.17637398838996887, -0.023349719122052193, -0.07827100902795792, -0.005946887657046318, 0.1354140341281891, -0.055541254580020905, 0.20025983452796936, -0.11149640381336212, 0.14052660763263702, 0.10314208269119263, 0.08635248243808746, 0.04809289798140526, -0.06538309901952744, -0.13538508117198944, 0.01651226356625557, -0.1531733274459839, 0.05895968899130821, 0.01393966469913721, -0.13302698731422424, -0.04815428704023361, 0.13258683681488037, -0.17006328701972961, -0.07872568070888519, -0.07571566849946976, 7.401877155643888e-7, -0.1052197739481926, 0.05078429728746414, -0.015108689665794373, -0.0010926442919299006, -0.016707200556993484, -0.005786412861198187, 0.006190838757902384, 0.23096317052841187, 0.06514892727136612, 0.19978487491607666, 0.13050420582294464, -0.0796256959438324, 0.025971487164497375, 0.10194370150566101, 0.055923257023096085, -0.2137865573167801, -0.1660497784614563, 0.13982929289340973, -0.03813411295413971, -0.11004921793937683, -0.001688821124844253, 0.17658746242523193, 0.11296266317367554, -0.023613085970282555, 0.19633203744888306, -0.02200120873749256, 0.07830749452114105, 0.09574826806783676, -0.04772581160068512, -0.037166494876146317, 0.059094272553920746, -0.012001818977296352, -0.05550341680645943, 0.039866868406534195, -0.08376394212245941, 0.04006536677479744, -0.06771820038557053, 0.03344858065247536, -0.03534665331244469, -0.007829499430954456, 0.06883282959461212, -0.02424902468919754, -0.014781493693590164, -0.0028008653316646814, 0.07758770138025284, 0.1061096116900444, -0.10551893711090088, 0.09516693651676178, -0.06823741644620895, -0.01756681688129902, 0.04888884350657463, 0.07170423865318298, -0.016258465126156807, 0.16593152284622192, -0.014285216107964516, -0.032874975353479385, -0.07847446948289871, -0.13526809215545654, 0.0020119985565543175, -0.160461887717247, -0.21376636624336243, -0.0253741592168808, -0.08352304250001907, -0.10957144945859909, 0.05753590911626816, -0.02374894730746746, -0.13454008102416992, 1.6870326433073136e-34, -0.007844747975468636, 0.10129795223474503, -0.10522138327360153, -0.013829381205141544, 0.0015414428198710084, -0.02421271987259388, -0.15902338922023773, 0.052713509649038315, 0.016849389299750328, -0.3057893216609955, -0.23988407850265503 ]
https://github.com/huggingface/datasets/issues/2641
load_dataset("financial_phrasebank") NonMatchingChecksumError
Hi! It's probably because this dataset is stored on google drive and it has a per day quota limit. It should work if you retry, I was able to initiate the download. Similar issue [here](https://github.com/huggingface/datasets/issues/2646)
## Describe the bug Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("financial_phrasebank", 'sentences_allagree') ``` ## Expected results I expect to see the financial_phrasebank dataset downloaded successfully ## Actual results NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip'] ## Environment info - `datasets` version: 1.9.0 - Platform: Linux-4.14.232-177.418.amzn2.x86_64-x86_64-with-debian-10.6 - Python version: 3.7.10 - PyArrow version: 4.0.1
35
load_dataset("financial_phrasebank") NonMatchingChecksumError ## Describe the bug Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("financial_phrasebank", 'sentences_allagree') ``` ## Expected results I expect to see the financial_phrasebank dataset downloaded successfully ## Actual results NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip'] ## Environment info - `datasets` version: 1.9.0 - Platform: Linux-4.14.232-177.418.amzn2.x86_64-x86_64-with-debian-10.6 - Python version: 3.7.10 - PyArrow version: 4.0.1 Hi! It's probably because this dataset is stored on google drive and it has a per day quota limit. It should work if you retry, I was able to initiate the download. Similar issue [here](https://github.com/huggingface/datasets/issues/2646)
[ 0.07053125649690628, 0.16245068609714508, -0.05281424522399902, 0.01700064167380333, 0.10694321244955063, 0.0872768983244896, -0.04286016523838043, 0.00973502267152071, 0.2071719467639923, 0.28111255168914795, -0.044723205268383026, -0.177747905254364, 0.10632851719856262, -0.0802183672785759, 0.003418510314077139, 0.14075976610183716, 0.03920680657029152, 0.1561640053987503, 0.04916246607899666, -0.043873611837625504, -0.10935783386230469, 0.019102323800325394, 0.05989432334899902, -0.13811929523944855, 0.07677670568227768, -0.034378211945295334, 0.08053307980298996, 0.04566510394215584, 0.17210447788238525, -0.046202849596738815, 0.11497864872217178, -0.002441067947074771, -0.13535663485527039, 0.08438502252101898, 0.0000057034590099647176, -0.10042703151702881, 0.08606027066707611, 0.07380054146051407, -0.13112500309944153, -0.18507800996303558, 0.1971571445465088, -0.14933909475803375, -0.08451729267835617, -0.02234303206205368, 0.056342218071222305, -0.002582637593150139, -0.12062673270702362, 0.020076172426342964, -0.0009160707122646272, 0.06402648985385895, -0.05765433982014656, 0.06721866130828857, -0.021920684725046158, -0.21546147763729095, 0.02538718655705452, -0.11009194701910019, 0.0717751607298851, 0.13927911221981049, -0.10414662957191467, -0.14339745044708252, -0.11655513942241669, -0.15424010157585144, -0.07396680116653442, 0.11981000751256943, -0.14211206138134003, -0.009057643823325634, -0.09464680403470993, -0.08234669268131256, 0.05703935772180557, 0.2473263144493103, 0.0881490483880043, 0.19693948328495026, 0.011040703393518925, -0.05942822992801666, -0.03213924914598465, 0.03907445818185806, 0.018678490072488785, 0.027446968480944633, -0.1961372047662735, 0.05911202356219292, -0.18624894320964813, -0.0045372601598501205, -0.028991730883717537, 0.05450386554002762, -0.16590163111686707, -0.031099790707230568, -0.06314224004745483, -0.018009118735790253, 0.0737338736653328, -0.10265140235424042, 0.05859947204589844, 0.07733727246522903, -0.11648640036582947, -0.11057644337415695, 0.1290421187877655, 0.019846022129058838, 0.05399433150887489, 0.03536297380924225, 0.168561652302742, 0.0018013762310147285, 0.01774941198527813, 0.05167290195822716, -0.0983394980430603, 0.06313265115022659, 0.03989159315824509, 0.10562857240438461, 0.11667194962501526, -0.08760520815849304, 0.05792530998587608, 0.05034326761960983, -0.10979065299034119, 0.19238066673278809, -0.22337351739406586, -0.11115673929452896, 0.3025325536727905, 0.02348785661160946, 0.03173794224858284, 0.08451170474290848, -0.008127703331410885, 0.1808609664440155, 0.039112985134124756, 0.023446757346391678, 0.032728876918554306, 0.22193321585655212, -0.007480402011424303, -0.08619977533817291, -0.06264732033014297, 0.05602164566516876, -0.08893462270498276, -0.1120479628443718, -0.12398791313171387, -0.17120344936847687, -0.01692112348973751, -0.0492122583091259, 0.16408616304397583, -0.15912076830863953, 0.04082561656832695, -0.04674413800239563, -0.010099268518388271, 0.007577427662909031, -0.014269528910517693, -0.08491319417953491, -0.2711186408996582, 0.15151116251945496, 0.06819494813680649, -0.05090571939945221, -0.00379328615963459, 0.14905117452144623, -0.010415707714855671, 0.0771578699350357, -0.24853423237800598, 0.1043991893529892, -0.0964331328868866, 0.10190244764089584, -0.27823060750961304, -0.1869916468858719, -0.12738147377967834, -0.08803175389766693, -0.1708860993385315, -0.22612856328487396, 0.009299032390117645, -0.0017459815135225654, 0.009843485429883003, -0.08306188136339188, 0.08254745602607727, 0.01762164570391178, 0.06868530064821243, 0.06749755144119263, -0.025841152295470238, 0.017454346641898155, 0.08964275568723679, 0.011296527460217476, -0.059236567467451096, -0.0715632364153862, -0.1604546159505844, 0.13283930718898773, -0.004328607581555843, 0.02158927731215954, -0.2562335133552551, 0.06866299360990524, 0.12597547471523285, 0.036276623606681824, -0.018430091440677643, -0.21634027361869812, 0.01408421155065298, 0.08953260630369186, 0.03068886697292328, 0.056597501039505005, 0.023688286542892456, -0.07292355597019196, 0.0024125613272190094, 0.045759011059999466, 0.002234856365248561, 0.06070394814014435, 0.03700030595064163, -0.004156268201768398, 0.046915676444768906, -0.04916352406144142, 0.09977948665618896, -0.18324381113052368, -0.014902305789291859, 0.01428226474672556, 0.07441549003124237, 0.16573470830917358, 0.09698664397001266, -0.1128505989909172, -0.12343215942382812, 0.1903170645236969, 0.0470677986741066, -0.13168367743492126, -0.08230553567409515, 0.03797426074743271, -0.18353790044784546, -0.042423538863658905, -0.154025137424469, 0.08303459733724594, -0.08887926489114761, 0.022209860384464264, -0.024371981620788574, 0.23297089338302612, -0.03787390515208244, 0.025462409481406212, 0.04226079210639, 0.07896237820386887, -0.04079398885369301, 0.0891881212592125, 0.07959044724702835, -0.01433421391993761, 0.02153770625591278, -0.009162044152617455, -0.11132641136646271, -0.09608514606952667, 0.02958565205335617, 0.10584530234336853, -0.004182838834822178, -0.07062254846096039, 0.08604548126459122, 0.03833606094121933, 0.1335766613483429, 0.02160363271832466, -0.04904140532016754, 0.23301097750663757, 0.06745783239603043, -0.07393131405115128, 0.013406457379460335, 0.07883930206298828, -0.09931276738643646, 0.07441412657499313, 0.014065246097743511, -0.059434883296489716, 0.33386752009391785, 0.20081347227096558, -0.11573643237352371, 0.05405503883957863, 0.09695176780223846, -0.09119642525911331, 0.08437853306531906, 0.21274249255657196, -0.11497911065816879, -0.008838007226586342, 0.23710109293460846, -0.03413548320531845, 0.0335533432662487, -0.022478587925434113, 0.061346881091594696, -0.1213088184595108, -0.00819256529211998, 0.027751481160521507, 0.018564121797680855, 0.1881510317325592, 0.07308458536863327, -0.07536755502223969, -0.1599036604166031, -0.12237086892127991, -0.0032835896126925945, 0.007581435609608889, 0.05526679754257202, -0.007556203752756119, -0.004034000914543867, -0.010023940354585648, -0.19735416769981384, 0.07868921011686325, 0.07181937992572784, -0.020957674831151962, 0.07709185034036636, 0.03879856690764427, 0.0612105093896389, -0.12276337295770645, -0.04389657452702522, -0.03233171999454498, 0.0058349319733679295, -0.05246111378073692, -0.040597785264253616, -0.08895964920520782, 0.02299952693283558, 0.06733616441488266, 0.017165424302220345, 0.008976629935204983, -0.025794347748160362, -0.06227521970868111, -0.04600762948393822, 0.050742778927087784, -0.005495288409292698, 0.09890177100896835, 0.09712769836187363, 0.07930482178926468, 0.12923280894756317, 0.0480969101190567, -0.12187070399522781, -0.05536323040723801, -0.013678972609341145, -0.06774547696113586, 0.01442090142518282, 0.03488638252019882, 0.05365581065416336, 0.10814721882343292, -0.08273288607597351, -0.149452343583107, 0.050655215978622437, 0.020489275455474854, -0.025939367711544037, 0.24418766796588898, -0.07419082522392273, -0.01887248083949089, 0.03297221288084984, 0.0609377883374691, -0.12716922163963318, -0.030627083033323288, -0.07496941834688187, 0.06819477677345276, -0.04435119032859802, 0.22207053005695343, -0.0062973578460514545, -0.060618411749601364, 0.01867769844830036, -0.029662571847438812, -0.1319941282272339, -0.19564075767993927, 0.3111802339553833, 0.0398067981004715, -0.07321550697088242, -0.010669505223631859, -0.09935762733221054, -0.09154757112264633, 0.03945544734597206, -0.08691643178462982, -0.009142077527940273, -0.182265043258667, -0.1718299835920334, 0.03094780258834362, 0.0025803495664149523, 0.06547529250383377, -0.0424584224820137, -0.07080812752246857, -0.010398449376225471, 0.055387336760759354, 0.07478268444538116, 0.19271697103977203, 0.1440991759300232, 0.1011468693614006, -0.10619408637285233, -0.07596305012702942, -0.06702148914337158, 0.16236326098442078, 0.11771803349256516, 0.12114578485488892, 0.12098222225904465, -0.1293542981147766, 0.01624901592731476, -0.0769914761185646, -0.15085193514823914, -0.08612456172704697, -0.03297553211450577, 0.08287828415632248, -0.023475557565689087, 0.026592209935188293, 0.006004101596772671, -0.2379123419523239, -0.0456521138548851, -0.005252807401120663, 0.024940067902207375, -0.19286878407001495, -0.03332113102078438, 0.1278260201215744, 0.12281906604766846, 0.07737379521131516, -0.04459100216627121, -0.11412840336561203, -0.15382340550422668, 0.17628538608551025, 0.04948040843009949, 0.2144695371389389, -0.014388938434422016, 0.03910409286618233, 0.019407667219638824, -0.14192324876785278, 0.24333837628364563, 0.18150438368320465, 0.105536088347435, 0.01783694513142109, 0.06104499101638794, 0.016586609184741974, -0.07516875863075256, 0.11319617927074432, 0.09334239363670349, 0.0376962348818779, 0.12326139956712723, -0.04243757575750351, -0.0063475058414042, -0.1092647984623909, -0.022169768810272217, -0.01673491857945919, -0.07828257232904434, 0.028151052072644234, 0.0997760221362114, 0.05617952346801758, -0.08508946001529694, -0.05267147719860077, -0.14070281386375427, -0.15006065368652344, -0.13563907146453857, -0.1309051364660263, -0.03140889108181, 0.2526348829269409, -0.026373768225312233, -0.062455035746097565, 0.0647110641002655, -0.12247919291257858, 0.1785096675157547, -0.09369325637817383, 0.064571812748909, 0.08733898401260376, 0.14751888811588287, -0.05615897476673126, -0.07052761316299438, 0.03778301179409027, 0.3778906762599945, -0.06487623602151871, 0.04100256413221359, -0.06619635224342346, -0.21377816796302795, -0.20395424962043762, -0.2128860056400299, -0.055088311433792114, -0.08798153698444366, 0.045374300330877304, -0.19303098320960999, -0.00423028040677309, -0.12036165595054626, -0.1604013741016388, -0.08445291966199875, -0.1861703097820282, -0.07844667136669159, -0.15669657289981842, 0.07534599304199219, -0.14232394099235535, 0.04875585064291954, -0.0963480994105339, 0.02910217083990574, 0.1292058825492859, -0.10632432997226715, -0.09107030183076859, -0.1561354547739029, -0.040973689407110214, -0.051992062479257584, 0.11312799900770187, 0.1640593707561493, -0.08527708798646927, -0.043305497616529465, -0.01433442160487175, -0.10779016464948654, 0.06040002033114433, -0.02324291318655014, -0.03367691487073898, 0.20498044788837433, 0.03787742182612419, 0.07762971520423889, 0.0074779074639081955, -0.050942327827215195, 0.021317467093467712, 0.211844339966774, 0.11364312469959259, 0.16390490531921387, -0.11456695944070816, -0.10696446895599365, 0.06921609491109848, 0.10932331532239914, -0.04939552769064903, -0.14708513021469116, 0.006656507961452007, 0.21245580911636353, -0.04858242720365524, 0.04470451548695564, -0.03287757188081741, 0.059209246188402176, -0.07243061810731888, -0.01805453561246395, 0.0553487166762352, 0.10029313713312149, 0.11270534992218018, 0.03886604681611061, -0.20496711134910583, 0.1054861769080162, 0.00653306907042861, -0.01455620490014553, -0.08633453398942947, 0.09055816382169724, -0.048370569944381714, -0.04142414405941963, -0.06640131771564484, 0.030317476019263268, 0.05528128147125244, -0.15698707103729248, 0.023542221635580063, 0.09993679821491241, -0.09908706694841385, -0.08863736689090729, -0.06150313839316368, -0.07454720884561539, 0.08751317858695984, 0.06839687377214432, -0.15530256927013397, 0.03364640101790428, -0.07039391249418259, 0.024240337312221527, 0.026095204055309296, 0.025899231433868408, 0.024918366223573685, 0.2597164213657379, -0.01977243460714817, -0.08226960897445679, 0.012158069759607315, 0.168940007686615, -0.06184535101056099, 0.010161878541111946, -0.016587290912866592, 0.12443581223487854, -0.10553573071956635, 0.012433239258825779, 0.07755739986896515, 0.07570452243089676, -0.15972675383090973, 0.08823295682668686, 0.18085327744483948, 0.18165339529514313, 0.2170344591140747, 0.016160916537046432, -0.03652172163128853, -0.04759182408452034, -0.015504050999879837, -0.03492967411875725, 0.07419680058956146, -0.11481224745512009, 0.03147762268781662, -0.10718346387147903, -2.586646813246436e-32, -0.0445111021399498, -0.018294084817171097, -0.08680201321840286, -0.20511414110660553, -0.10982853174209595, 0.043855272233486176, -0.035137567669153214, -0.11936746537685394, -0.10373960435390472, -0.024560637772083282, -0.07336967438459396, 0.02829613909125328, 0.0801936611533165, -0.013536072336137295, -0.157680943608284, -0.012201961129903793, -0.056109875440597534, -0.06252317130565643, -0.05564810708165169, 0.029353205114603043, 0.012373683974146843, 0.13582651317119598, -0.06261424720287323, 0.06761667877435684, 0.03684914484620094, -0.13251623511314392, 0.027732837945222855, -0.20094946026802063, 0.12987464666366577, 0.005995031911879778, -0.13706356287002563, 0.08125966042280197, -0.01787310093641281, -0.03317568078637123, -0.019717369228601456, -0.05361999198794365, -0.2301153838634491, -0.064272440969944, -0.03626619279384613, 0.05532430112361908, 0.15756316483020782, 0.06203538551926613, 0.1157606989145279, -0.2710612714290619, -0.09462863206863403, 0.037725817412137985, 0.08283383399248123, -0.06992705166339874, -0.16350068151950836, -0.061537567526102066, 0.024869542568922043, 0.049526821821928024, 0.059750668704509735, -0.0035520305391401052, 0.08024843037128448, 0.07714231312274933, -0.008979505859315395, 0.06821920722723007, -0.004290125332772732, -0.03799230977892876, 0.09052126109600067, -0.023639025166630745, -0.035118553787469864, -0.0998673290014267, 0.13724884390830994, -0.014441167935729027, 0.21090571582317352, -0.044857706874608994, 0.09218800067901611, -0.09578794240951538, 0.07060180604457855, 0.03219990059733391, -0.14200477302074432, 0.13014110922813416, -0.008790809661149979, -0.14908015727996826, -0.04951934888958931, 0.02011946029961109, 0.008556964807212353, -0.05454947054386139, 0.14385414123535156, -0.08758681267499924, -0.06832586228847504, 0.03163405880331993, -0.034274231642484665, 0.014689098112285137, -0.08627120405435562, 0.020139560103416443, -0.09360840916633606, -0.11747677624225616, 0.04984933137893677, -0.010945507325232029, -0.10165614634752274, -0.17398864030838013, -0.13726770877838135, -0.08335980027914047, -0.10379265993833542, 0.04092833027243614, -0.05062662437558174, 0.10475907474756241, -0.05428742617368698, -0.041842982172966, 0.11793806403875351, 0.022699899971485138, 0.06798230856657028, 0.0357193648815155, 0.09603989124298096, -0.00136575847864151, -0.07543419301509857, 0.015271413139998913, 0.010020849294960499, 0.0727308839559555, 0.05233516916632652, 0.22751818597316742, 0.17848341166973114, 0.07587901502847672, -0.04529476538300514, -0.17624782025814056, 0.10542518645524979, 0.01682130992412567, -0.04430905729532242, 0.06816570460796356, 0.009197003208100796, 0.1265067756175995, -0.05206747725605965, 0.19454388320446014, -0.18178150057792664, 0.00015994503337424248, -0.09168983995914459, 0.04995591565966606, 0.06086820736527443, 0.04704440385103226, 7.875822802816401e-7, -0.2819422483444214, 0.13447979092597961, -0.14395111799240112, -0.008703436702489853, -0.030819866806268692, -0.0486898235976696, -0.37395304441452026, 0.077402263879776, -0.05811087414622307, 0.2569299340248108, 0.19757471978664398, 0.07391630113124847, 0.00038167109596543014, 0.011333058588206768, -0.002420875011011958, -0.060983575880527496, -0.09306171536445618, -0.011541544459760189, 0.02958120033144951, -0.017726613208651543, 0.09254319220781326, 0.09652179479598999, -0.10121249407529831, -0.04094027727842331, 0.04485022649168968, -0.16405092179775238, -0.004451003856956959, -0.04403860121965408, 0.07917924225330353, 0.04538988322019577, -0.06864806264638901, 0.10436517000198364, -0.06346943229436874, 0.20771831274032593, 0.09784973412752151, 0.023588426411151886, -0.15718874335289001, -0.08030436933040619, 0.14484019577503204, 0.07629691809415817, 0.031317852437496185, 0.09874117374420166, 0.10227560997009277, 0.002735268557444215, 0.1157456785440445, 0.07264559715986252, -0.10963458567857742, -0.16181431710720062, 0.03668133169412613, -0.0287151075899601, 0.09196298569440842, 0.08458532392978668, 0.007245194166898727, 0.006998939905315638, 0.0767602026462555, -0.012915847823023796, -0.04350733011960983, -0.13027727603912354, 0.11236683279275894, 0.09327148646116257, -0.08161833137273788, -0.008086899295449257, 0.16274970769882202, -0.06984966993331909, 0.08354271948337555, -0.21357552707195282, 0.005199860781431198, -8.325347621667507e-36, 0.13032612204551697, -0.11856327205896378, 0.11012427508831024, -0.16142220795154572, 0.08131095767021179, -0.05995602533221245, -0.00017646529886405915, -0.08426220715045929, 0.02940348908305168, -0.19197066128253937, -0.030263906344771385 ]
https://github.com/huggingface/datasets/issues/2641
load_dataset("financial_phrasebank") NonMatchingChecksumError
Hi ! Loading the dataset works on my side as well. Feel free to try again and let us know if it works for you know
## Describe the bug Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("financial_phrasebank", 'sentences_allagree') ``` ## Expected results I expect to see the financial_phrasebank dataset downloaded successfully ## Actual results NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip'] ## Environment info - `datasets` version: 1.9.0 - Platform: Linux-4.14.232-177.418.amzn2.x86_64-x86_64-with-debian-10.6 - Python version: 3.7.10 - PyArrow version: 4.0.1
26
load_dataset("financial_phrasebank") NonMatchingChecksumError ## Describe the bug Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("financial_phrasebank", 'sentences_allagree') ``` ## Expected results I expect to see the financial_phrasebank dataset downloaded successfully ## Actual results NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip'] ## Environment info - `datasets` version: 1.9.0 - Platform: Linux-4.14.232-177.418.amzn2.x86_64-x86_64-with-debian-10.6 - Python version: 3.7.10 - PyArrow version: 4.0.1 Hi ! Loading the dataset works on my side as well. Feel free to try again and let us know if it works for you know
[ 0.05889274924993515, 0.1070110872387886, -0.054294440895318985, 0.015601885505020618, 0.12174738198518753, 0.0879448875784874, -0.05859316885471344, 0.04211011528968811, 0.16807520389556885, 0.22307685017585754, -0.05102534592151642, -0.10887154936790466, 0.14945141971111298, -0.1015091985464096, 0.022449569776654243, 0.17918597161769867, 0.06418386846780777, 0.19579137861728668, 0.04273618385195732, -0.036017995327711105, -0.09262052178382874, 0.0066663362085819244, 0.0269363634288311, -0.11309272795915604, 0.08499696850776672, 0.004032445140182972, 0.05596880242228508, 0.08053469657897949, 0.15539416670799255, -0.04354547709226608, 0.14121901988983154, -0.022578483447432518, -0.14489997923374176, 0.08448583632707596, 0.000006036599188519176, -0.08693507313728333, 0.07433681190013885, 0.07382427901029587, -0.09489002823829651, -0.17783528566360474, 0.1579587608575821, -0.1201905608177185, -0.09802456945180893, 0.0035963854752480984, 0.04359513893723488, -0.013702831231057644, -0.13107065856456757, 0.030681269243359566, -0.017959153279662132, 0.07015981525182724, -0.035034164786338806, 0.0694630816578865, -0.0320761501789093, -0.21045400202274323, 0.038513414561748505, -0.11078938841819763, 0.03468523547053337, 0.12825554609298706, -0.1083594262599945, -0.11521820724010468, -0.10989266633987427, -0.13073110580444336, -0.11884812265634537, 0.12534072995185852, -0.1318632811307907, -0.022546106949448586, -0.05631186440587044, -0.0651063472032547, 0.06413043290376663, 0.22847573459148407, 0.040629658848047256, 0.2028137594461441, 0.00887281447649002, -0.060655467212200165, -0.014626438729465008, 0.03633236885070801, 0.021859392523765564, 0.024608386680483818, -0.19755040109157562, 0.04388279840350151, -0.15853294730186462, 0.0013382526813074946, -0.018798163160681725, 0.058626770973205566, -0.12963660061359406, 0.019790757447481155, -0.05931486189365387, -0.025696102529764175, 0.05511279031634331, -0.11232414841651917, 0.0745730772614479, 0.06337688118219376, -0.09380447864532471, -0.1281636655330658, 0.12337137758731842, 0.03413496911525726, 0.04550637677311897, 0.027892721816897392, 0.1844933182001114, 0.010336474515497684, 0.003889107145369053, 0.06657157093286514, -0.12505285441875458, 0.048665981739759445, -0.021245114505290985, 0.09963658452033997, 0.10787345468997955, -0.056892044842243195, 0.03228788450360298, 0.04233669862151146, -0.13268104195594788, 0.17543862760066986, -0.22172947227954865, -0.08677999675273895, 0.2803766429424286, 0.021350501105189323, 0.013807985931634903, 0.066161148250103, -0.03249690681695938, 0.16896452009677887, 0.04413047805428505, 0.022336838766932487, 0.06340396404266357, 0.22948990762233734, -0.02839084528386593, -0.04919448122382164, -0.06376133114099503, 0.045875467360019684, -0.08751645684242249, -0.06119799241423607, -0.12562261521816254, -0.15653572976589203, -0.0423039048910141, -0.035773783922195435, 0.14248137176036835, -0.17774689197540283, 0.0864407867193222, -0.06605838239192963, -0.01193950418382883, 0.0027725372929126024, -0.03572512045502663, -0.08272115141153336, -0.22525112330913544, 0.12011821568012238, 0.0892285481095314, -0.04886030778288841, 0.020351504907011986, 0.14606483280658722, 0.0159030519425869, 0.07927865535020828, -0.2612931430339813, 0.10313506424427032, -0.13826681673526764, 0.07736217230558395, -0.2672094404697418, -0.18466021120548248, -0.04361645504832268, -0.13422416150569916, -0.14960242807865143, -0.20920032262802124, 0.031640224158763885, 0.01525153685361147, 0.020096275955438614, -0.09558171033859253, 0.08509870618581772, 0.001171371666714549, 0.05854419991374016, 0.039888303726911545, -0.022399235516786575, 0.022166641429066658, 0.09823313355445862, -0.017130399122834206, -0.053122542798519135, -0.06535211205482483, -0.13508954644203186, 0.14062198996543884, 0.02515300363302231, 0.0015215736348181963, -0.24435807764530182, 0.06535939127206802, 0.12927596271038055, 0.054008666425943375, 0.02417590655386448, -0.198973149061203, -0.03382255882024765, 0.1010461151599884, 0.06561987102031708, 0.009049635380506516, 0.014839974232017994, -0.09524936974048615, 0.002252681413665414, 0.038130976259708405, -0.015080383978784084, 0.029581159353256226, 0.008000857196748257, 0.018424147740006447, 0.003104708157479763, -0.02060100995004177, 0.12705117464065552, -0.18968771398067474, -0.02721630223095417, -0.005939318332821131, 0.08562647551298141, 0.1791236847639084, 0.09000949561595917, -0.10120901465415955, -0.08897233754396439, 0.1830253005027771, 0.026846088469028473, -0.1196606382727623, -0.08060581237077713, 0.036031030118465424, -0.19829630851745605, -0.0492730475962162, -0.15204542875289917, 0.08125871419906616, -0.06801494210958481, 0.0315127857029438, -0.04182282090187073, 0.21962973475456238, -0.04439014568924904, 0.019105765968561172, 0.03951519727706909, 0.07113706320524216, -0.036736249923706055, 0.09179814159870148, 0.06909830868244171, -0.032959211617708206, -0.039003029465675354, 0.021278927102684975, -0.096739761531353, -0.04391355812549591, 0.02385098487138748, 0.13091516494750977, 0.006960263941437006, -0.11974408477544785, 0.09169916808605194, 0.01405229140073061, 0.14602972567081451, -0.020064642652869225, -0.053495075553655624, 0.20329296588897705, 0.09514307975769043, -0.0827854722738266, 0.03890616074204445, 0.09226859360933304, -0.09924838691949844, 0.07476504892110825, 0.033564262092113495, -0.056973181664943695, 0.324214905500412, 0.1862076073884964, -0.10957983881235123, 0.048558373004198074, 0.09924357384443283, -0.1429453343153, 0.07275792211294174, 0.17458556592464447, -0.08883741497993469, -0.04323887825012207, 0.21884936094284058, -0.02143186703324318, 0.016287868842482567, -0.017768945544958115, 0.058746255934238434, -0.11438167095184326, -0.0020060527604073286, -0.007215819321572781, 0.062304336577653885, 0.18433251976966858, 0.044043656438589096, -0.06313811987638474, -0.17187510430812836, -0.09633167088031769, 0.01072839368134737, 0.005015632603317499, 0.11343904584646225, 0.001258942880667746, 0.004104746505618095, 0.023399990051984787, -0.2108278125524521, 0.07641571760177612, 0.029258977621793747, -0.018438220024108887, 0.07123159617185593, 0.05238119512796402, 0.04986870288848877, -0.12107321619987488, -0.04247589781880379, -0.027392705902457237, 0.0007193527999334037, -0.034742653369903564, -0.04961544647812843, -0.08746401965618134, 0.03641805425286293, 0.06970162689685822, -0.039888836443424225, -0.04805991053581238, -0.008926472626626492, -0.049420032650232315, -0.06342849880456924, 0.058346543461084366, -0.012646540999412537, 0.10126712173223495, 0.061666298657655716, 0.09821567684412003, 0.1267990916967392, 0.032867152243852615, -0.12537246942520142, -0.037026192992925644, -0.018532736226916313, -0.061439819633960724, 0.016101164743304253, 0.0020529027096927166, 0.05569930374622345, 0.13298219442367554, -0.10784316807985306, -0.16873732209205627, 0.0697317123413086, 0.05780456215143204, -0.01618705689907074, 0.24349890649318695, -0.09568652510643005, -0.04148198291659355, 0.04383260756731033, 0.032630108296871185, -0.1291246861219406, -0.023581674322485924, -0.09176208823919296, 0.08609765022993088, -0.02716895379126072, 0.2008472979068756, 0.0020323011558502913, -0.08667091280221939, -0.017514873296022415, -0.02048371359705925, -0.12691539525985718, -0.17082586884498596, 0.30185356736183167, 0.03465955704450607, -0.05245364084839821, 0.026106305420398712, -0.08940277993679047, -0.08714422583580017, 0.02930261567234993, -0.09442879259586334, 0.004573034588247538, -0.1307993233203888, -0.17107325792312622, 0.0366058275103569, 0.017793236300349236, 0.0483219213783741, -0.036539677530527115, -0.08003648370504379, -0.04894740507006645, 0.08196273446083069, 0.08186613023281097, 0.12107349187135696, 0.17034758627414703, 0.05641760304570198, -0.10837918519973755, -0.05477256700396538, -0.12313605844974518, 0.1723535805940628, 0.12600763142108917, 0.12171962857246399, 0.10076599568128586, -0.12961558997631073, 0.0017397886840626597, -0.07317544519901276, -0.18211126327514648, -0.04020565375685692, -0.012899131514132023, 0.09466976672410965, -0.0066778771579265594, 0.04844620078802109, 0.006329710595309734, -0.2132786363363266, -0.0394868329167366, 0.016933955252170563, 0.010797250084578991, -0.1960827112197876, -0.030373943969607353, 0.1265178918838501, 0.11850589513778687, 0.08024000376462936, -0.056528180837631226, -0.1017967164516449, -0.1685228943824768, 0.15292565524578094, 0.04147325083613396, 0.1765771061182022, -0.031099144369363785, 0.06867796182632446, 0.014976363629102707, -0.11467332392930984, 0.2603338658809662, 0.18450599908828735, 0.07563113421201706, 0.007768524345010519, 0.05168479308485985, -0.005345917772501707, -0.07532507926225662, 0.10278980433940887, 0.09971249103546143, 0.03479139134287834, 0.12117718905210495, -0.025665156543254852, -0.006078713107854128, -0.11267784982919693, -0.01148970052599907, -0.009573101066052914, -0.050797391682863235, 0.023683598265051842, 0.125514417886734, 0.05774562060832977, -0.09476418048143387, -0.07432160526514053, -0.16858038306236267, -0.15318630635738373, -0.11251375079154968, -0.1488284021615982, -0.07813990861177444, 0.2337629795074463, -0.035172536969184875, -0.04004092141985893, 0.08131067454814911, -0.1460459977388382, 0.17878372967243195, -0.08716466277837753, 0.08209974318742752, 0.051739320158958435, 0.16248899698257446, -0.07208121567964554, -0.03261464461684227, 0.028463881462812424, 0.35866644978523254, -0.10285232961177826, -0.014157191850244999, -0.10742033272981644, -0.2237941175699234, -0.15311890840530396, -0.22057242691516876, -0.05350976437330246, -0.09801123291254044, 0.04963620752096176, -0.20118418335914612, -0.00978248380124569, -0.1273324340581894, -0.16643497347831726, -0.073612742125988, -0.18040810525417328, -0.09387851506471634, -0.16259585320949554, 0.06748491525650024, -0.13685065507888794, 0.02254415862262249, -0.10162753611803055, 0.054068684577941895, 0.14592939615249634, -0.09683741629123688, -0.08737056702375412, -0.1522352546453476, -0.05316917225718498, -0.016025859862565994, 0.1254926323890686, 0.15030424296855927, -0.08762525767087936, -0.06388204544782639, -0.024450838565826416, -0.1319776326417923, 0.03236422315239906, -0.035377394407987595, 0.01228988915681839, 0.19579140841960907, 0.0323244147002697, 0.04577379673719406, 0.012278649024665356, -0.1061473861336708, 0.026054006069898605, 0.17931589484214783, 0.14915534853935242, 0.17411619424819946, -0.12266701459884644, -0.07409696280956268, 0.038343701511621475, 0.10832931101322174, -0.07711736112833023, -0.10966718196868896, -0.010373096913099289, 0.19904664158821106, -0.019933853298425674, 0.07762831449508667, -0.006148424465209246, 0.030431004241108894, -0.019897032529115677, 0.006421857513487339, 0.06821822375059128, 0.1007532849907875, 0.11735326051712036, 0.03617717698216438, -0.18971893191337585, 0.09460563957691193, 0.028546858578920364, 0.007078137248754501, -0.056572325527668, 0.086863674223423, -0.027985787019133568, -0.06750952452421188, -0.06316370517015457, 0.029530011117458344, 0.049901437014341354, -0.1552530974149704, 0.0780949592590332, 0.04682230204343796, -0.046084899455308914, -0.1056395024061203, -0.08298134803771973, -0.06310253590345383, 0.11051999032497406, 0.06314682215452194, -0.1352708488702774, 0.033494364470243454, -0.07600879669189453, 0.051754310727119446, 0.03353897109627724, 0.023435315117239952, 0.02326618693768978, 0.2428985983133316, -0.011432015337049961, -0.09408147633075714, -0.0026086512953042984, 0.17448553442955017, -0.07306937873363495, 0.007542312610894442, -0.017995569854974747, 0.11324117332696915, -0.08257507532835007, -0.01225220039486885, 0.11273878812789917, 0.0570346936583519, -0.15433071553707123, 0.10619699209928513, 0.2088497281074524, 0.18041113018989563, 0.21742838621139526, 0.03191791847348213, -0.04205550625920296, -0.005567202344536781, 0.017748694866895676, -0.05328426510095596, 0.032611627131700516, -0.1197323426604271, 0.040739815682172775, -0.12533408403396606, -2.600238172804231e-32, -0.0824081227183342, -0.025858983397483826, -0.07908932119607925, -0.24556691944599152, -0.05875813588500023, 0.03762541338801384, -0.0035705389454960823, -0.050321683287620544, -0.08040980249643326, -0.02379107102751732, -0.06915659457445145, 0.03565039858222008, 0.055200543254613876, -0.02133983001112938, -0.17105484008789062, 0.0067939176224172115, -0.05370062589645386, -0.046055927872657776, -0.0492885448038578, -0.01451319269835949, 0.018351508304476738, 0.12635734677314758, -0.02865109033882618, 0.056758735328912735, 0.038341399282217026, -0.12215076386928558, 0.009750151075422764, -0.22706028819084167, 0.13236668705940247, 0.034017086029052734, -0.13460226356983185, 0.05653630942106247, -0.030093546956777573, 0.007355220150202513, -0.024606360122561455, -0.04291056841611862, -0.23163603246212006, -0.0768197700381279, -0.036412328481674194, 0.07479219138622284, 0.15601684153079987, 0.057060595601797104, 0.09943599998950958, -0.24267953634262085, -0.06695716083049774, 0.037789732217788696, 0.07961183786392212, -0.10105546563863754, -0.14807477593421936, -0.04548062011599541, 0.036570776253938675, 0.03973705694079399, 0.04162852466106415, -0.029220299795269966, 0.05428411811590195, 0.09185701608657837, -0.002043881919234991, 0.022628748789429665, -0.012099813669919968, -0.013456204906105995, 0.12557551264762878, -0.031207948923110962, -0.034512147307395935, -0.11211026459932327, 0.09998168796300888, -0.008454592898488045, 0.22895506024360657, -0.014497910626232624, 0.09442675858736038, -0.08123856037855148, 0.04513045772910118, 0.026527002453804016, -0.08984708040952682, 0.11726116389036179, -0.025407712906599045, -0.14291995763778687, -0.10354259610176086, 0.04138634353876114, 0.026897277683019638, -0.03643592447042465, 0.1250273585319519, -0.07327371090650558, -0.07927196472883224, 0.026335513219237328, -0.048911359161138535, -0.002733837580308318, -0.10592424124479294, 0.008773875422775745, -0.11051511019468307, -0.138918936252594, 0.06501989811658859, 0.006374650169163942, -0.11840125918388367, -0.1507469117641449, -0.14258311688899994, -0.09348738193511963, -0.13873231410980225, 0.01091029867529869, -0.04397370666265488, 0.12484271824359894, -0.019763663411140442, -0.04439844191074371, 0.1329735815525055, -0.002249354962259531, 0.05710737407207489, 0.049400072544813156, 0.1116422489285469, -0.02706093154847622, -0.10100550204515457, 0.01869327574968338, 0.019861599430441856, 0.06838671863079071, 0.0917711853981018, 0.23134788870811462, 0.1688375473022461, 0.0775991678237915, -0.07072190940380096, -0.1893002688884735, 0.08792200684547424, 0.020074954256415367, -0.02523333579301834, 0.10602245479822159, 0.003074769861996174, 0.1302734762430191, -0.05603530630469322, 0.20244385302066803, -0.21725286543369293, 0.027409400790929794, -0.05651499703526497, 0.07963437587022781, 0.07621681690216064, 0.0654105618596077, 7.955702017170552e-7, -0.26609286665916443, 0.12298788875341415, -0.14755304157733917, -0.01723674312233925, -0.020676372572779655, -0.0453728549182415, -0.36217212677001953, 0.06695684790611267, -0.020954987034201622, 0.21296824514865875, 0.1865907460451126, 0.02573249116539955, 0.012672767043113708, 0.02620326541364193, 0.015322665683925152, -0.11707968264818192, -0.09609755873680115, -0.006914414931088686, 0.028101453557610512, -0.025040509179234505, 0.07773157954216003, 0.12432930618524551, -0.09446937590837479, -0.04907332360744476, 0.028204018250107765, -0.12341199815273285, 0.019984809681773186, -0.05548427999019623, 0.056560028344392776, 0.039544727653265, -0.09086538106203079, 0.10506373643875122, -0.06315000355243683, 0.22197061777114868, 0.09820327907800674, 0.010839669033885002, -0.12217961251735687, -0.07986775040626526, 0.15681272745132446, 0.08372994512319565, 0.05190844088792801, 0.10698755830526352, 0.11086180806159973, 0.03119613602757454, 0.12599723041057587, 0.05394542217254639, -0.07650071382522583, -0.21855835616588593, 0.0063561443239450455, 0.011365283280611038, 0.07952839136123657, 0.09202717244625092, -0.011482048779726028, 0.00010259034024784341, 0.07388874888420105, -0.003376908600330353, -0.03505915403366089, -0.10740375518798828, 0.13069072365760803, 0.1259019523859024, -0.07819020748138428, -0.04402967169880867, 0.1506490409374237, -0.10192418843507767, 0.08142410963773727, -0.22923403978347778, 0.001689774333499372, 4.1178812628221374e-35, 0.13002659380435944, -0.11190862953662872, 0.12199439853429794, -0.1784611940383911, 0.07298542559146881, -0.07144396752119064, -0.01726198010146618, -0.10361597687005997, 0.022898375988006592, -0.179974764585495, -0.03727602958679199 ]
https://github.com/huggingface/datasets/issues/2641
load_dataset("financial_phrasebank") NonMatchingChecksumError
Thank you! I've been trying periodically for the past month, and no luck yet with this particular dataset. Just tried again and still hitting the checksum error. Code: `dataset = load_dataset("financial_phrasebank", "sentences_allagree") ` Traceback: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-2-55cc2144f31e> in <module> ----> 1 dataset = load_dataset("financial_phrasebank", "sentences_allagree") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs) 859 ignore_verifications=ignore_verifications, 860 try_from_hf_gcs=try_from_hf_gcs, --> 861 use_auth_token=use_auth_token, 862 ) 863 /opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 582 if not downloaded_from_gcs: 583 self._download_and_prepare( --> 584 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 585 ) 586 # Sync info /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 642 if verify_infos: 643 verify_checksums( --> 644 self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" 645 ) 646 /opt/conda/lib/python3.7/site-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 38 if len(bad_urls) > 0: 39 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 41 logger.info("All the checksums matched successfully" + for_verification_name) 42 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip'] ```
## Describe the bug Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("financial_phrasebank", 'sentences_allagree') ``` ## Expected results I expect to see the financial_phrasebank dataset downloaded successfully ## Actual results NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip'] ## Environment info - `datasets` version: 1.9.0 - Platform: Linux-4.14.232-177.418.amzn2.x86_64-x86_64-with-debian-10.6 - Python version: 3.7.10 - PyArrow version: 4.0.1
174
load_dataset("financial_phrasebank") NonMatchingChecksumError ## Describe the bug Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("financial_phrasebank", 'sentences_allagree') ``` ## Expected results I expect to see the financial_phrasebank dataset downloaded successfully ## Actual results NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip'] ## Environment info - `datasets` version: 1.9.0 - Platform: Linux-4.14.232-177.418.amzn2.x86_64-x86_64-with-debian-10.6 - Python version: 3.7.10 - PyArrow version: 4.0.1 Thank you! I've been trying periodically for the past month, and no luck yet with this particular dataset. Just tried again and still hitting the checksum error. Code: `dataset = load_dataset("financial_phrasebank", "sentences_allagree") ` Traceback: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-2-55cc2144f31e> in <module> ----> 1 dataset = load_dataset("financial_phrasebank", "sentences_allagree") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs) 859 ignore_verifications=ignore_verifications, 860 try_from_hf_gcs=try_from_hf_gcs, --> 861 use_auth_token=use_auth_token, 862 ) 863 /opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 582 if not downloaded_from_gcs: 583 self._download_and_prepare( --> 584 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 585 ) 586 # Sync info /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 642 if verify_infos: 643 verify_checksums( --> 644 self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" 645 ) 646 /opt/conda/lib/python3.7/site-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 38 if len(bad_urls) > 0: 39 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 41 logger.info("All the checksums matched successfully" + for_verification_name) 42 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip'] ```
[ 0.056391648948192596, 0.12965044379234314, -0.0618676096200943, 0.023380661383271217, 0.11922658979892731, 0.08465639501810074, -0.03598613291978836, 0.03401987627148628, 0.16209577023983002, 0.1776416003704071, -0.08298902213573456, -0.10205967724323273, 0.1477961540222168, -0.10772643238306046, 0.009877574630081654, 0.18211016058921814, 0.0550755076110363, 0.19960692524909973, 0.03560648486018181, -0.03383928909897804, -0.0964571163058281, -0.016226116567850113, 0.04980101063847542, -0.11658231914043427, 0.07226963341236115, -0.03160368651151657, 0.040368083864450455, 0.08768753707408905, 0.13806034624576569, -0.05206625908613205, 0.14196792244911194, 0.00432445015758276, -0.15643008053302765, 0.08451418578624725, 0.000005966123353573494, -0.08869942277669907, 0.07816029340028763, 0.057124603539705276, -0.1113206073641777, -0.14061953127384186, 0.15238137543201447, -0.11394961923360825, -0.11956722289323807, -0.019601475447416306, 0.041781652718782425, -0.011533835902810097, -0.11436609923839569, 0.014988441951572895, 0.012378954328596592, 0.06959177553653717, -0.03887895494699478, 0.09332013130187988, -0.028671519830822945, -0.2260160595178604, 0.03578977659344673, -0.13910499215126038, 0.024988004937767982, 0.14042003452777863, -0.10857821255922318, -0.12098448723554611, -0.10386666655540466, -0.11736875772476196, -0.1258588433265686, 0.1082671731710434, -0.09166745841503143, -0.01643901690840721, -0.041822511702775955, -0.07019539922475815, 0.05033641308546066, 0.2400127649307251, 0.05250329151749611, 0.20567184686660767, 0.0006528400699608028, -0.046424392610788345, -0.03675123676657677, -0.006036984734237194, 0.00594108272343874, 0.017449207603931427, -0.20601396262645721, 0.05392944812774658, -0.15054187178611755, -0.02556799352169037, -0.01242380402982235, 0.053300172090530396, -0.14612004160881042, 0.02015475556254387, -0.054801758378744125, 0.011975863017141819, 0.06211649253964424, -0.1170077919960022, 0.09061652421951294, 0.05060356482863426, -0.07508055865764618, -0.13006609678268433, 0.13121218979358673, 0.020433742552995682, 0.06419730931520462, -0.003111509373411536, 0.18989528715610504, -0.011295797303318977, -0.0057972753420472145, 0.07162653654813766, -0.11187983304262161, 0.06261889636516571, -0.012651646509766579, 0.096084825694561, 0.10215967893600464, -0.04879269376397133, -0.003015238558873534, 0.04866044223308563, -0.13563771545886993, 0.17771153151988983, -0.23980318009853363, -0.07788076996803284, 0.28777116537094116, 0.025289015844464302, 0.013123690150678158, 0.061093736439943314, -0.03663301095366478, 0.16376864910125732, 0.03355260565876961, 0.016821857541799545, 0.07817532867193222, 0.24984772503376007, -0.013517056591808796, -0.052917107939720154, -0.05034584552049637, 0.021410644054412842, -0.08718652278184891, -0.0531914047896862, -0.12177572399377823, -0.15372684597969055, -0.04805312678217888, -0.035027358680963516, 0.153013676404953, -0.16415973007678986, 0.0769217312335968, -0.07951491326093674, -0.006261223461478949, 0.0007940685609355569, -0.024230316281318665, -0.09934205561876297, -0.23723064363002777, 0.1237560287117958, 0.06008721888065338, -0.061594244092702866, 0.04045545682311058, 0.133751779794693, 0.010259069502353668, 0.07738447189331055, -0.2565678358078003, 0.12362591177225113, -0.13271841406822205, 0.07145855575799942, -0.2656882703304291, -0.16279861330986023, -0.031749382615089417, -0.13412541151046753, -0.15842926502227783, -0.19603313505649567, 0.02515757642686367, 0.010450117290019989, 0.014714997261762619, -0.11021795868873596, 0.08324504643678665, 0.004914509132504463, 0.05967647209763527, 0.04088084027171135, -0.021717123687267303, 0.008299633860588074, 0.09211672097444534, -0.006640637293457985, -0.06463528424501419, -0.05856645479798317, -0.1300520896911621, 0.11546570807695389, -0.000980646931566298, 0.026073886081576347, -0.24283325672149658, 0.0587637759745121, 0.1475827395915985, 0.05523216724395752, 0.018591823056340218, -0.18098005652427673, -0.03500782698392868, 0.08882403373718262, 0.056329842656850815, 0.014028062112629414, 0.003314015455543995, -0.12345494329929352, 0.012049983255565166, 0.032254692167043686, -0.007611180189996958, 0.03393099084496498, 0.0005554750096052885, -0.002430642256513238, 0.008042857050895691, -0.051273517310619354, 0.12623724341392517, -0.19454002380371094, -0.03983674198389053, -0.012094601057469845, 0.08295542746782303, 0.19640181958675385, 0.06843111664056778, -0.10417396575212479, -0.08482376486063004, 0.1713217943906784, 0.010718585923314095, -0.11939311027526855, -0.07142014056444168, 0.04768557846546173, -0.20235374569892883, -0.0446162186563015, -0.15020640194416046, 0.07907072454690933, -0.07024788111448288, 0.049603093415498734, -0.07374387979507446, 0.22046639025211334, -0.057404808700084686, 0.05259234085679054, 0.04361678287386894, 0.07327807694673538, -0.02799290418624878, 0.07134344428777695, 0.06633750349283218, -0.02761615253984928, -0.0384649857878685, 0.015951165929436684, -0.08915551006793976, -0.04203178361058235, 0.04119231924414635, 0.11260811239480972, -0.006760410498827696, -0.10259829461574554, 0.06268740445375443, -0.010969506576657295, 0.13748526573181152, -0.018089987337589264, -0.07302665710449219, 0.1829279661178589, 0.12052389979362488, -0.07778327167034149, 0.06664936244487762, 0.08843374997377396, -0.07931698113679886, 0.07774023711681366, 0.031026996672153473, -0.03705227002501488, 0.32505953311920166, 0.16642260551452637, -0.10739155113697052, 0.0498049259185791, 0.09713459759950638, -0.09269264340400696, 0.055401600897312164, 0.20848970115184784, -0.11330501735210419, -0.06498341262340546, 0.20759643614292145, -0.050527434796094894, 0.022187527269124985, -0.041837647557258606, 0.07433941215276718, -0.0992463156580925, 0.034255728125572205, -0.024701109156012535, 0.07243471592664719, 0.19148071110248566, 0.05282044783234596, -0.0777043029665947, -0.16768233478069305, -0.1041499450802803, -0.0006888779462315142, 0.04001689329743385, 0.136910080909729, -0.012669629417359829, 0.011774556711316109, 0.014539987780153751, -0.1992027312517166, 0.054784271866083145, 0.016447771340608597, -0.03246239572763443, 0.06240176782011986, 0.07540445029735565, 0.03274603933095932, -0.12966974079608917, -0.05355177819728851, -0.0643506795167923, 0.005799651611596346, -0.026125900447368622, -0.053464051336050034, -0.08317583799362183, 0.04043145477771759, 0.06072283163666725, -0.05420083552598953, -0.04590928927063942, -0.023372206836938858, -0.03777926787734032, -0.05137282982468605, 0.03275613859295845, -0.021379254758358, 0.12405917793512344, 0.09201312065124512, 0.09793535619974136, 0.1574602574110031, 0.0447930246591568, -0.11607478559017181, -0.004777572583407164, -0.009652365930378437, -0.06861953437328339, 0.020745927467942238, -0.00807125959545374, 0.05470176041126251, 0.13136614859104156, -0.123179592192173, -0.18141914904117584, 0.07630528509616852, 0.0704105794429779, -0.002532686572521925, 0.21412594616413116, -0.1283576786518097, -0.03552428260445595, 0.0433620847761631, 0.02547331713140011, -0.16215766966342926, -0.037506263703107834, -0.09029723703861237, 0.07797270268201828, -0.022530674934387207, 0.23764032125473022, -0.016958987340331078, -0.059842415153980255, -0.01897122524678707, -0.028652900829911232, -0.11177357286214828, -0.15147735178470612, 0.30976757407188416, 0.04953259229660034, -0.04794400930404663, 0.021667098626494408, -0.10022033005952835, -0.07359691709280014, 0.029321495443582535, -0.10590974986553192, 0.0020322639029473066, -0.10937832295894623, -0.13714809715747833, 0.009328983724117279, 0.004439615644514561, 0.033754874020814896, -0.015707707032561302, -0.08059477806091309, -0.05029665678739548, 0.07673896104097366, 0.05892064794898033, 0.1439601331949234, 0.1459609866142273, 0.047875888645648956, -0.10195937007665634, -0.029235586524009705, -0.10170216858386993, 0.18184536695480347, 0.10852250456809998, 0.142302006483078, 0.09762664884328842, -0.14983457326889038, -0.03288830816745758, -0.08000083267688751, -0.19831492006778717, -0.053330764174461365, -0.01722673326730728, 0.06969214975833893, 0.0015324004925787449, 0.02451474964618683, -0.0016791357193142176, -0.23358599841594696, -0.016224874183535576, 0.02369678020477295, 0.02798602543771267, -0.18972286581993103, -0.05391763895750046, 0.10392706841230392, 0.10870837420225143, 0.07842929661273956, -0.05001218989491463, -0.12579065561294556, -0.1526920050382614, 0.14615188539028168, 0.04893007129430771, 0.18970908224582672, 0.002340977545827627, 0.05026631057262421, 0.0012400823179632425, -0.1150013878941536, 0.2489575892686844, 0.17814458906650543, 0.06374509632587433, -0.005498375277966261, 0.03491397202014923, 0.01535935327410698, -0.04170543700456619, 0.1094285324215889, 0.11920849233865738, 0.025590812787413597, 0.11396262049674988, -0.00984609592705965, 0.018080130219459534, -0.1187768504023552, 0.05369503051042557, -0.004178058356046677, -0.06297753006219864, 0.021487833932042122, 0.12627965211868286, 0.07495719939470291, -0.08260565996170044, -0.07903970777988434, -0.17839770019054413, -0.1624266654253006, -0.13760517537593842, -0.15248145163059235, -0.04531325399875641, 0.25416696071624756, -0.02412593737244606, -0.02730676531791687, 0.08435001969337463, -0.15219862759113312, 0.19897392392158508, -0.08139209449291229, 0.061567291617393494, 0.02415478602051735, 0.14839252829551697, -0.060281332582235336, -0.0346345379948616, 0.026584619656205177, 0.3669520318508148, -0.08876809477806091, -0.024707211181521416, -0.11329235881567001, -0.22491396963596344, -0.1459377557039261, -0.22180014848709106, -0.03254028409719467, -0.08852249383926392, 0.039013005793094635, -0.22850599884986877, 0.008654838427901268, -0.12257076799869537, -0.18620021641254425, -0.0763840600848198, -0.19853314757347107, -0.09296153485774994, -0.15478181838989258, 0.06193183362483978, -0.12242694944143295, 0.05178845301270485, -0.11307196319103241, 0.052144136279821396, 0.15542659163475037, -0.09733698517084122, -0.08501802384853363, -0.13537263870239258, -0.05754214525222778, 0.0033581634052097797, 0.1033213660120964, 0.14512796700000763, -0.08834214508533478, -0.06160031631588936, -0.004390661604702473, -0.12901538610458374, 0.05071809142827988, -0.035990793257951736, 0.028609268367290497, 0.20160992443561554, 0.013196778483688831, 0.05884476751089096, 0.015318671241402626, -0.12562376260757446, 0.024229764938354492, 0.19109761714935303, 0.15317372977733612, 0.18504281342029572, -0.14437615871429443, -0.0600409209728241, 0.050877973437309265, 0.11547203361988068, -0.07900076359510422, -0.11988545954227448, -0.030304204672574997, 0.1977909505367279, -0.012455870397388935, 0.07205717265605927, -0.022223936393857002, 0.04205198958516121, -0.0065604932606220245, -0.008477619849145412, 0.07431232929229736, 0.0768076479434967, 0.11584966629743576, 0.02920825406908989, -0.21195481717586517, 0.09651906043291092, 0.03254977986216545, 0.004232599399983883, -0.06928762048482895, 0.08143562823534012, -0.040540777146816254, -0.059806495904922485, -0.07485657930374146, 0.031449299305677414, 0.04035831242799759, -0.1582394540309906, 0.082046739757061, 0.05192138999700546, -0.04201962426304817, -0.07919181883335114, -0.07877957075834274, -0.057451628148555756, 0.12294918298721313, 0.08523943275213242, -0.12252264469861984, 0.042959634214639664, -0.03451377898454666, 0.04795863851904869, 0.051560208201408386, 0.02249765582382679, 0.02704641968011856, 0.2441866546869278, -0.0004328985814936459, -0.09844981133937836, 0.008768239058554173, 0.18009309470653534, -0.06882387399673462, -0.0205900389701128, 0.004484701901674271, 0.08834978193044662, -0.1043776199221611, -0.013937526382505894, 0.11302652955055237, 0.05568132922053337, -0.15195892751216888, 0.10818025469779968, 0.23531289398670197, 0.15281997621059418, 0.20950575172901154, 0.025011295452713966, -0.08496279269456863, -0.016225682571530342, 0.014215114526450634, -0.042759522795677185, 0.046071477234363556, -0.11200518161058426, 0.032656677067279816, -0.11774754524230957, -2.6407454142599795e-32, -0.09017310291528702, -0.03273998573422432, -0.07328874617815018, -0.1861579418182373, -0.08377324044704437, 0.026689840480685234, -0.01405565906316042, -0.022244561463594437, -0.0696939006447792, -0.03932201862335205, -0.06014411151409149, 0.02879258245229721, 0.05078105628490448, -0.029318472370505333, -0.18273146450519562, 0.006611257325857878, -0.05458603426814079, -0.006628064904361963, -0.053265225142240524, -0.006683590821921825, 0.03391555696725845, 0.13462325930595398, -0.017764832824468613, 0.07263993471860886, 0.014937692321836948, -0.10400213301181793, 0.014269145205616951, -0.19698360562324524, 0.12627223134040833, 0.03927944600582123, -0.14518603682518005, 0.04963875934481621, -0.02942219004034996, -0.006582346279174089, -0.02647046186029911, -0.04504106193780899, -0.2654034197330475, -0.08881913125514984, -0.04296109080314636, 0.08809192478656769, 0.1698632836341858, 0.035637564957141876, 0.10139798372983932, -0.2448984831571579, -0.06893157958984375, 0.03623107075691223, 0.09305621683597565, -0.09296038001775742, -0.13832075893878937, -0.02873406745493412, 0.009648729115724564, 0.038441386073827744, 0.023951003327965736, -0.0061601754277944565, 0.013740220107138157, 0.08040329813957214, 0.005731280893087387, 0.03581506758928299, -0.03078272007405758, -0.023688679561018944, 0.09600687772035599, -0.018572362139821053, -0.019604703411459923, -0.11642400920391083, 0.08951567113399506, 0.0038417046889662743, 0.20930755138397217, -0.020689094439148903, 0.08113890886306763, -0.10074197500944138, 0.07756728678941727, 0.042689476162195206, -0.08535810559988022, 0.08224794268608093, -0.00994267500936985, -0.14371322095394135, -0.13297520577907562, 0.07081053406000137, 0.031122315675020218, -0.025298340246081352, 0.13003785908222198, -0.05385558307170868, -0.06120907515287399, 0.042738888412714005, -0.04824773967266083, 0.0037924640346318483, -0.10192794352769852, 0.023577367886900902, -0.10270088165998459, -0.13387322425842285, 0.05229531601071358, 0.012018442153930664, -0.11429890245199203, -0.14370816946029663, -0.15915732085704803, -0.085521399974823, -0.13578565418720245, 0.0025258224923163652, -0.04886055365204811, 0.12451428174972534, -0.023938888683915138, -0.03489851951599121, 0.1211029663681984, -0.008919271640479565, 0.07598040252923965, 0.059574685990810394, 0.11615389585494995, -0.022400105372071266, -0.10659633576869965, -0.010617682710289955, -0.00023552948550786823, 0.06464751064777374, 0.09992770105600357, 0.23891563713550568, 0.18942482769489288, 0.09737571328878403, -0.07216811925172806, -0.19730527698993683, 0.09324152767658234, 0.016744211316108704, -0.040881529450416565, 0.10371563583612442, 0.016305185854434967, 0.11795208603143692, -0.053991783410310745, 0.2038108855485916, -0.21196609735488892, 0.039146460592746735, -0.042284801602363586, 0.07730506360530853, 0.08227929472923279, 0.07633821666240692, 7.908849397608719e-7, -0.2703240215778351, 0.1389082670211792, -0.1365939974784851, -0.0003740987158380449, -0.034961968660354614, -0.04227583855390549, -0.3828408718109131, 0.040395695716142654, -0.019252892583608627, 0.2118110954761505, 0.1734112650156021, 0.029895944520831108, 0.019016282632946968, 0.041956827044487, 0.013810599222779274, -0.11240313947200775, -0.07022035121917725, -0.007715181447565556, 0.02642701007425785, -0.029007643461227417, 0.09222019463777542, 0.12538543343544006, -0.10171648114919662, -0.06026430055499077, 0.0359843373298645, -0.12647582590579987, 0.037673305720090866, -0.07397833466529846, 0.05386414751410484, 0.0605824775993824, -0.0585610494017601, 0.10778021812438965, -0.07002115994691849, 0.2342487871646881, 0.09080569446086884, -0.008382314816117287, -0.1304803341627121, -0.09365247189998627, 0.16441413760185242, 0.08756030350923538, 0.05507525056600571, 0.07820204645395279, 0.12421655654907227, 0.05044836923480034, 0.13304047286510468, 0.08526276797056198, -0.05066310614347458, -0.1864718645811081, 0.012512171640992165, 0.022247858345508575, 0.09698338061571121, 0.09347887337207794, -0.016803430393338203, 0.014892848208546638, 0.07108811289072037, -0.0007621950935572386, -0.06158759072422981, -0.10680491477251053, 0.11933941394090652, 0.12032638490200043, -0.08211929351091385, -0.02911030873656273, 0.12995336949825287, -0.10626127570867538, 0.09829384833574295, -0.24755091965198517, 0.018291229382157326, 1.6605487785421615e-35, 0.11778419464826584, -0.1122259721159935, 0.12592709064483643, -0.16114509105682373, 0.06019594147801399, -0.08206900954246521, -0.009585048072040081, -0.10691657662391663, 0.011662454344332218, -0.17491087317466736, -0.022142687812447548 ]
https://github.com/huggingface/datasets/issues/2630
Progress bars are not properly rendered in Jupyter notebook
To add my experience when trying to debug this issue: Seems like previously the workaround given [here](https://github.com/tqdm/tqdm/issues/485#issuecomment-473338308) worked around this issue. But with the latest version of jupyter/tqdm I still get terminal warnings that IPython tried to send a message from a forked process.
## Describe the bug The progress bars are not Jupyter widgets; regular progress bars appear (like in a terminal). ## Steps to reproduce the bug ```python ds.map(tokenize, num_proc=10) ``` ## Expected results Jupyter widgets displaying the progress bars. ## Actual results Simple plane progress bars. cc: Reported by @thomwolf
44
Progress bars are not properly rendered in Jupyter notebook ## Describe the bug The progress bars are not Jupyter widgets; regular progress bars appear (like in a terminal). ## Steps to reproduce the bug ```python ds.map(tokenize, num_proc=10) ``` ## Expected results Jupyter widgets displaying the progress bars. ## Actual results Simple plane progress bars. cc: Reported by @thomwolf To add my experience when trying to debug this issue: Seems like previously the workaround given [here](https://github.com/tqdm/tqdm/issues/485#issuecomment-473338308) worked around this issue. But with the latest version of jupyter/tqdm I still get terminal warnings that IPython tried to send a message from a forked process.
[ -0.05686553567647934, 0.08825532346963882, 0.003182267304509878, -0.017019083723425865, 0.06437928229570389, -0.09935837239027023, -0.042254723608493805, 0.20503674447536469, -0.2757980525493622, 0.08501823991537094, -0.024222377687692642, 0.003735210048034787, 0.019596073776483536, -0.04875742644071579, -0.0424003079533577, 0.04594564810395241, -0.05623778700828552, -0.026895001530647278, -0.048838384449481964, 0.02398001402616501, -0.22498391568660736, 0.17851410806179047, -0.08462335914373398, 0.1141878217458725, -0.09671732783317566, -0.08968231081962585, 0.09932313114404678, -0.04901222884654999, -0.021996529772877693, -0.2932865023612976, -0.01445429865270853, 0.11208666861057281, -0.05397424101829529, 0.046159084886312485, 0.000006164409569464624, 0.07442038506269455, 0.1596461683511734, 0.0760888084769249, 0.04003191739320755, 0.13023875653743744, 0.1286773830652237, -0.22946831583976746, 0.1487094908952713, -0.06783637404441833, 0.16987887024879456, -0.06614995747804642, -0.239714115858078, 0.10843288898468018, 0.16244326531887054, -0.14379392564296722, 0.06654690206050873, 0.05853591486811638, 0.03696048632264137, -0.02039911225438118, 0.03016713261604309, -0.049630675464868546, 0.03436996787786484, 0.017975401133298874, -0.056787069886922836, -0.09552139788866043, -0.004453418776392937, -0.12927663326263428, 0.06794797629117966, 0.15216714143753052, -0.20536267757415771, 0.059230152517557144, 0.07067597657442093, -0.25737982988357544, 0.07855404913425446, -0.02205762080848217, 0.02344772405922413, -0.1554725170135498, -0.20709340274333954, 0.017919467762112617, 0.05222158133983612, -0.16211268305778503, -0.03950772434473038, 0.028196420520544052, -0.1789391189813614, -0.04959343746304512, -0.06450610607862473, 0.06609450280666351, -0.02498294971883297, 0.023637576028704643, -0.08596349507570267, 0.07129240781068802, 0.11052292585372925, 0.07059509307146072, -0.12925985455513, 0.004340181592851877, 0.1765284389257431, -0.07127426564693451, 0.0006024109898135066, -0.02929939143359661, 0.045503150671720505, -0.05808289349079132, -0.0014778064796701074, -0.2038383036851883, -0.02751077711582184, 0.12984806299209595, -0.10207286477088928, 0.04235455393791199, -0.00835853349417448, 0.03996814787387848, -0.005802817642688751, 0.13105453550815582, 0.08228697627782822, -0.024180127307772636, -0.007993731647729874, 0.026987716555595398, 0.16559968888759613, 0.0985947921872139, -0.014967565424740314, 0.06800954788923264, 0.12165648490190506, 0.038626015186309814, 0.027752287685871124, 0.2418462187051773, -0.16056086122989655, 0.15848760306835175, 0.21113701164722443, 0.09428887069225311, -0.09681744873523712, 0.015298396348953247, 0.05740394815802574, -0.025960303843021393, -0.002254405291751027, 0.06878013908863068, -0.12437057495117188, 0.05232244357466698, -0.0772090032696724, 0.0034265355207026005, -0.0936393141746521, -0.05933336541056633, -0.006829982623457909, 0.2718142867088318, 0.18187060952186584, -0.08977816998958588, 0.15730424225330353, -0.07114366441965103, 0.019151020795106888, -0.04129783809185028, 0.10272260755300522, 0.026630109176039696, -0.05198390409350395, 0.07205162197351456, 0.2541099786758423, 0.10636100172996521, -0.021318456158041954, -0.009966808371245861, 0.051091812551021576, 0.24021680653095245, -0.04584119841456413, -0.0016619593370705843, -0.2412204146385193, 0.06608698517084122, -0.12975667417049408, -0.07454058527946472, -0.08459345251321793, -0.0068473368883132935, 0.0733560249209404, -0.05476553738117218, 0.12368597090244293, -0.1838539093732834, 0.05315689370036125, 0.10100672394037247, -0.16285699605941772, -0.010841782204806805, 0.012827862985432148, -0.1319480985403061, 0.3598073422908783, 0.010254468768835068, 0.03412812948226929, 0.13183553516864777, 0.0048524560406804085, 0.13926923274993896, -0.22129668295383453, -0.06268753111362457, -0.10052929073572159, -0.13190600275993347, 0.10251359641551971, 0.08195275068283081, 0.06252256780862808, -0.0928727388381958, 0.26364123821258545, 0.12135134637355804, 0.1627005934715271, 0.055226996541023254, 0.01901618018746376, 0.05614270642399788, -0.010263645090162754, 0.02266664430499077, -0.0821424126625061, 0.05763446167111397, 0.016087297350168228, -0.1338440477848053, -0.04896357282996178, -0.14530038833618164, 0.2380814552307129, 0.010804938152432442, 0.20093373954296112, -0.021602995693683624, -0.028963087126612663, -0.0023916796781122684, 0.026984771713614464, 0.13200947642326355, 0.09582528471946716, 0.017749421298503876, -0.13192367553710938, -0.006749636959284544, -0.027465077117085457, 0.008878078311681747, -0.10597418993711472, 0.1423969268798828, -0.12726786732673645, -0.0772152692079544, 0.14638066291809082, -0.06569501757621765, -0.11150462925434113, 0.19283317029476166, 0.0019452692940831184, -0.088116355240345, 0.11227744817733765, 0.127752423286438, 0.17706429958343506, 0.09736910462379456, 0.0749979317188263, -0.2801719307899475, -0.012426384724676609, 0.05691247433423996, -0.08848340064287186, -0.0027787121944129467, 0.10176818072795868, 0.022638747468590736, 0.02780701406300068, 0.05519513413310051, -0.10910465568304062, -0.21919035911560059, 0.003133991500362754, 0.16650916635990143, -0.184878870844841, 0.1415172517299652, -0.033570483326911926, 0.047029364854097366, 0.15795381367206573, -0.06710922718048096, -0.08236781507730484, 0.06111307814717293, 0.014082117937505245, 0.13473111391067505, 0.16975127160549164, 0.07255318015813828, -0.15494315326213837, 0.048153262585401535, -0.03463257476687431, 0.04196328669786453, -0.10818243771791458, -0.07554559409618378, 0.09823297709226608, 0.011928962543606758, 0.2862755358219147, 0.040223777294158936, 0.08917206525802612, 0.051236625760793686, -0.09172782301902771, 0.014991465024650097, 0.12376818060874939, -0.057005658745765686, -0.02882356569170952, 0.014980076812207699, 0.14571286737918854, -0.0008337706094607711, 0.03874547407031059, -0.06257191300392151, -0.00878067221492529, 0.03070853278040886, -0.03967681899666786, 0.11365341395139694, 0.03249964490532875, -0.09694865345954895, -0.18889817595481873, 0.03444570675492287, -0.05364032834768295, 0.025830058380961418, 0.05059988051652908, -0.10257038474082947, -0.12199096381664276, -0.07754562050104141, -0.02804996445775032, -0.156570166349411, 0.1319747418165207, -0.19557815790176392, 0.007779932115226984, 0.0052192131988704205, 0.011278511956334114, 0.10454137623310089, 0.05120135471224785, -0.18345434963703156, 0.16380208730697632, 0.1799604892730713, -0.11052277684211731, -0.08793706446886063, -0.14768609404563904, 0.054020319133996964, -0.09484720975160599, -0.1145046204328537, 0.15693365037441254, -0.15545712411403656, 0.10033154487609863, 0.06633588671684265, 0.034032516181468964, -0.026346879079937935, -0.011600094847381115, 0.10257349908351898, 0.002981579164043069, 0.08950631320476532, -0.10018153488636017, -0.10042735189199448, 0.08523649722337723, 0.024245720356702805, 0.1131841167807579, 0.11197146773338318, -0.08329398185014725, -0.07435159385204315, 0.04354758560657501, 0.10616973787546158, -0.13926973938941956, -0.10259730368852615, 0.06311886012554169, 0.06518564373254776, -0.02690821886062622, -0.019723864272236824, -0.1357763409614563, -0.12239910662174225, 0.14451336860656738, -0.17388007044792175, -0.00531498808413744, 0.040163420140743256, 0.07763422280550003, 0.015545188449323177, 0.06748702377080917, -0.024872079491615295, -0.03982861340045929, -0.062151893973350525, -0.04473257064819336, 0.010484915226697922, -0.039995551109313965, -0.08796419203281403, 0.24116171896457672, 0.09231135249137878, 0.08356616646051407, -0.12202383577823639, -0.061856482177972794, -0.0689140036702156, -0.08225509524345398, -0.15479370951652527, -0.14823903143405914, -0.057815421372652054, -0.00464711943641305, -0.09524345397949219, 0.026957567781209946, 0.051964372396469116, -0.06088725104928017, 0.291504830121994, 0.0697041004896164, 0.08082126826047897, -0.0021582189947366714, -0.19086377322673798, -0.12393830716609955, -0.20335598289966583, -0.06280267238616943, 0.019732831045985222, -0.021216781809926033, 0.05709071829915047, -0.13461151719093323, -0.03047177940607071, 0.16532553732395172, 0.0639365091919899, -0.05546967312693596, -0.06900332868099213, -0.1130518764257431, -0.1248241737484932, -0.10186611115932465, 0.011782261542975903, 0.2056843787431717, -0.004475962836295366, 0.002129909349605441, -0.04148750379681587, 0.060234811156988144, 0.16717147827148438, 0.058287397027015686, -0.04553559795022011, 0.09290803968906403, 0.0824221819639206, -0.00540026044473052, -0.06506021320819855, 0.1776513159275055, -0.03639516979455948, -0.056080352514982224, 0.1789454072713852, -0.11532198637723923, 0.11780580878257751, -0.03798448666930199, -0.0899495780467987, 0.06807563453912735, -0.0407448373734951, -0.18126705288887024, -0.014603069983422756, -0.027684006839990616, -0.007061714306473732, 0.2458810806274414, 0.0817621648311615, 0.006611970253288746, 0.11704141646623611, -0.07164721935987473, -0.03187260031700134, -0.06613661348819733, -0.04910257086157799, -0.27404963970184326, -0.18667209148406982, -0.13140352070331573, -0.029325030744075775, -0.09677273780107498, -0.01895562931895256, -0.1455162912607193, 0.02259855531156063, 0.05961466580629349, -0.26422247290611267, 0.08129854500293732, -0.016136817634105682, 0.0408870205283165, -0.14512856304645538, 0.018768982961773872, 0.050404857844114304, 0.07578009366989136, -0.02598891220986843, -0.06495777517557144, -0.046499598771333694, 0.023790134117007256, -0.009300103411078453, -0.24249501526355743, -0.1097523421049118, -0.09026128798723221, -0.14513583481311798, 0.12722979485988617, -0.22988930344581604, -0.08130311220884323, -0.00930363591760397, 0.05882572755217552, 0.03911576792597771, 0.0018906272016465664, -0.15791253745555878, 0.1186014860868454, -0.27416399121284485, 0.04730746150016785, -0.16440756618976593, 0.15268781781196594, -0.1582278609275818, 0.039495933800935745, -0.0007902570068836212, -0.08876515179872513, -0.0714731439948082, -0.01373592484742403, -0.06238870322704315, 0.001712952391244471, 0.07735345512628555, 0.07359932363033295, 0.0055193123407661915, 0.0033216001465916634, -0.11361723393201828, -0.04917097091674805, 0.10015279054641724, -0.014180770143866539, 0.0585794523358345, 0.11645002663135529, -0.08265244215726852, 0.07502681761980057, -0.0002602349268272519, -0.10307890921831131, 0.005442716646939516, 0.05964623764157295, 0.0445682555437088, -0.011797314509749413, -0.12696246802806854, 0.16551202535629272, 0.022165611386299133, -0.08273984491825104, -0.010849587619304657, -0.030637258663773537, -0.07872184365987778, 0.2075626254081726, -0.06688794493675232, 0.019839487969875336, 0.08134070783853531, 0.14967915415763855, 0.23912659287452698, 0.053531479090452194, -0.14012333750724792, -0.1597621589899063, 0.1299096941947937, 0.16239751875400543, -0.1955338418483734, 0.020395593717694283, -0.12061914801597595, 0.07414079457521439, 0.07848146557807922, 0.1706835776567459, -0.09529347717761993, -0.03192911669611931, -0.05961387977004051, 0.14865705370903015, 0.059989023953676224, -0.20224463939666748, -0.09631774574518204, -0.0665198415517807, -0.022197242826223373, 0.011736832559108734, 0.12356548011302948, -0.08729492872953415, -0.08003449440002441, -0.06344816088676453, 0.038677070289850235, -0.10210052132606506, 0.015875261276960373, 0.29533424973487854, 0.044656094163656235, 0.05261138826608658, -0.003679722547531128, 0.008100717328488827, 0.14357218146324158, 0.0673975870013237, 0.09887293726205826, 0.021115517243742943, -0.025273481383919716, -0.06087442860007286, 0.09872837364673615, -0.050300370901823044, 0.0036126263439655304, 0.09068051725625992, 0.08401495963335037, 0.03927644342184067, -0.11009104549884796, 0.0410955585539341, 0.04254469275474548, -0.08616498857736588, -0.15495745837688446, -0.0690072551369667, -0.19319462776184082, -0.007890411652624607, -0.12697520852088928, 0.03804905712604523, 0.052313029766082764, 0.17309044301509857, 0.014832315035164356, -0.13254037499427795, -2.44321563742139e-32, -0.0902736559510231, -0.022459600120782852, -0.05082026496529579, 0.10044502466917038, -0.17535530030727386, 0.02582496590912342, 0.03961925581097603, 0.023625381290912628, 0.04919971898198128, 0.10232546180486679, 0.016222840175032616, -0.01174042746424675, -0.061057835817337036, -0.0273362398147583, -0.0608060248196125, 0.05090464651584625, 0.1507233828306198, 0.026309693232178688, -0.08616630733013153, 0.07435855269432068, -0.008207236416637897, -0.0873800590634346, 0.07459058612585068, -0.017710799351334572, 0.050573308020830154, 0.1145351454615593, -0.14130984246730804, -0.03380928188562393, 0.06992244720458984, -0.05817215517163277, -0.07146424055099487, 0.05192231386899948, 0.06557746231555939, -0.016170088201761246, -0.07202591001987457, -0.13851913809776306, 0.13402974605560303, 0.05834303796291351, -0.1264650672674179, 0.06195753440260887, 0.008902487345039845, 0.027504095807671547, 0.024986112490296364, -0.05342700704932213, -0.047315068542957306, 0.04990442842245102, -0.13624034821987152, -0.022702496498823166, -0.019208958372473717, 0.05081302300095558, 0.04297279193997383, 0.01190209947526455, -0.02107270434498787, 0.0672665387392044, 0.031943127512931824, -0.16481341421604156, 0.11477051675319672, -0.05724603682756424, -0.12876802682876587, -0.055118806660175323, 0.008478567935526371, 0.07257270067930222, 0.11739986389875412, 0.0331089049577713, -0.03582148626446724, -0.12149857729673386, 0.15421831607818604, 0.22159531712532043, 0.04143396392464638, -0.021218707785010338, -0.06380995362997055, -0.0124410605058074, 0.16181857883930206, -0.28328195214271545, -0.27490293979644775, -0.028930967673659325, 0.007423850242048502, -0.045960113406181335, -0.002848695032298565, -0.05392023175954819, -0.015977803617715836, -0.08261983841657639, -0.010851272381842136, -0.020997701212763786, -0.1285625547170639, -0.03143751993775368, 0.021875958889722824, 0.15189631283283234, -0.0972166582942009, -0.07256563752889633, 0.08877985179424286, 0.07463061064481735, -0.12057102471590042, 0.05357757583260536, -0.08575795590877533, -0.03530080243945122, -0.10109787434339523, 0.11500150710344315, 0.009413128718733788, 0.04815060645341873, 0.0031880070455372334, 0.11129223555326462, -0.03922909498214722, 0.04980543255805969, 0.09215864539146423, 0.10085804015398026, 0.07250131666660309, -0.2008000761270523, -0.10424099862575531, -0.10772956907749176, -0.05868597701191902, 0.017868991941213608, 0.20136189460754395, -0.07595837116241455, 0.09822434186935425, -0.01187191717326641, -0.02584031969308853, -0.017601346597075462, 0.08966054022312164, 0.06419304758310318, 0.16186432540416718, 0.026317747309803963, -0.08540458232164383, 0.09577686339616776, 0.035278331488370895, -0.1261739432811737, -0.1221587210893631, -0.14248378574848175, -0.0324576236307621, 0.023219633847475052, 0.01748744025826454, -0.1322275996208191, 7.880624934841762e-7, -0.03175772726535797, -0.0352478064596653, 0.018835503607988358, 0.00853058509528637, -0.055723536759614944, 0.07958044111728668, -0.04735514521598816, 0.1013825461268425, -0.02318751811981201, 0.02349553257226944, -0.010854479856789112, -0.09735938161611557, 0.0258212648332119, 0.09596466273069382, 0.21698009967803955, -0.033449944108724594, -0.1511295735836029, -0.1057516485452652, -0.1308673471212387, 0.025349628180265427, 0.08032011985778809, -0.1601286679506302, -0.11175123602151871, 0.0503765270113945, 0.09714728593826294, 0.07415225356817245, -0.03570324555039406, 0.029649721458554268, 0.03469080850481987, 0.06546509265899658, -0.04904255270957947, -0.06333829462528229, 0.026528844609856606, 0.07060479372739792, -0.07582339644432068, -0.07798191159963608, 0.008287430740892887, -0.2190944403409958, 0.1295265257358551, 0.11338193714618683, -0.11178602278232574, 0.03712380677461624, 0.20992715656757355, 0.035163555294275284, 0.10366649925708771, 0.05834539607167244, -0.0003769031318370253, -0.042645398527383804, 0.02859831228852272, 0.04139247164130211, 0.03297774866223335, -0.06914807111024857, -0.041285376995801926, 0.03167596459388733, 0.0727311372756958, 0.1433156132698059, -0.10413644462823868, -0.02013331837952137, 0.0875086709856987, 0.01834581047296524, -0.12134415656328201, -0.0013634454226121306, -0.1275315284729004, 0.020803110674023628, 0.1153620034456253, 0.0025663217529654503, -0.015870988368988037, 1.1372198414997811e-34, 0.1354343146085739, -0.126694917678833, 0.12884368002414703, -0.15716269612312317, -0.0017393104499205947, 0.08585336804389954, 0.03451751545071602, 0.005159127991646528, -0.02609916962683201, -0.18725675344467163, -0.07505452632904053 ]
https://github.com/huggingface/datasets/issues/2630
Progress bars are not properly rendered in Jupyter notebook
Hi @mludv, thanks for the hint!!! :) We will definitely take it into account to try to fix this issue... It seems somehow related to `multiprocessing` and `tqdm`...
## Describe the bug The progress bars are not Jupyter widgets; regular progress bars appear (like in a terminal). ## Steps to reproduce the bug ```python ds.map(tokenize, num_proc=10) ``` ## Expected results Jupyter widgets displaying the progress bars. ## Actual results Simple plane progress bars. cc: Reported by @thomwolf
28
Progress bars are not properly rendered in Jupyter notebook ## Describe the bug The progress bars are not Jupyter widgets; regular progress bars appear (like in a terminal). ## Steps to reproduce the bug ```python ds.map(tokenize, num_proc=10) ``` ## Expected results Jupyter widgets displaying the progress bars. ## Actual results Simple plane progress bars. cc: Reported by @thomwolf Hi @mludv, thanks for the hint!!! :) We will definitely take it into account to try to fix this issue... It seems somehow related to `multiprocessing` and `tqdm`...
[ -0.08260208368301392, 0.06776655465364456, -0.014752661809325218, -0.02111758664250374, 0.11339377611875534, -0.1078839898109436, -0.01773354411125183, 0.18140827119350433, -0.29963546991348267, 0.09577525407075882, -0.03750136122107506, -0.0074103218503296375, 0.019050240516662598, -0.0007579103112220764, -0.030245868489146233, 0.011858615092933178, -0.042687028646469116, 0.016001367941498756, -0.041558828204870224, 0.022160625085234642, -0.2190372794866562, 0.14512082934379578, -0.09415370970964432, 0.10817360132932663, -0.11790253967046738, -0.07696688920259476, 0.05985388904809952, -0.0594480037689209, 0.035903554409742355, -0.2427293211221695, -0.05484679341316223, 0.08492941409349442, -0.047982387244701385, 0.027748538181185722, 0.000006136471711215563, 0.025121398270130157, 0.14678826928138733, 0.08809026330709457, 0.12768462300300598, 0.09717965871095657, 0.14126163721084595, -0.24619722366333008, 0.11766643822193146, -0.06157376244664192, 0.18321967124938965, -0.06991381198167801, -0.2255115509033203, 0.09005378931760788, 0.1769387274980545, -0.122823566198349, 0.06869665533304214, 0.02401621825993061, -0.009977725334465504, 0.00758389662951231, -0.0038522863760590553, -0.0886828675866127, -0.004440756514668465, -0.0012045622570440173, -0.038286756724119186, -0.11379007250070572, 0.008758237585425377, -0.11914676427841187, 0.07083504647016525, 0.17049238085746765, -0.19895599782466888, 0.0864771232008934, 0.10429626703262329, -0.2731657922267914, 0.04975688457489014, -0.013286955654621124, 0.03017442859709263, -0.1248941421508789, -0.16469304263591766, 0.05726588889956474, 0.08145572245121002, -0.16657516360282898, -0.045065075159072876, 0.07272928953170776, -0.1934414803981781, -0.0727313682436943, -0.11458609253168106, 0.059867970645427704, -0.005575188901275396, 0.036096613854169846, -0.05551322549581528, 0.08498292416334152, 0.0863499715924263, 0.02919992431998253, -0.122834712266922, 0.0282748993486166, 0.13642442226409912, -0.07838992029428482, 0.08200795203447342, -0.006068050395697355, 0.006232880055904388, -0.007971011102199554, -0.046110350638628006, -0.18660198152065277, -0.01310885138809681, 0.06706354022026062, -0.0909726470708847, 0.006111495662480593, -0.012496797367930412, 0.01778964325785637, -0.052813999354839325, 0.13730449974536896, 0.07885424047708511, -0.11419445276260376, -0.03864831104874611, -0.024148376658558846, 0.1326950192451477, 0.10602515935897827, 0.006546236574649811, 0.12010324746370316, 0.15590596199035645, 0.05556941032409668, -0.032692667096853256, 0.2127746343612671, -0.14695730805397034, 0.2040948122739792, 0.2543351352214813, 0.09526766091585159, -0.11049974709749222, 0.02040952816605568, 0.05352679267525673, -0.011535932309925556, -0.09318992495536804, 0.11763323098421097, -0.1612798124551773, 0.044414497911930084, -0.07197840511798859, 0.009162051603198051, -0.08142795413732529, -0.047611262649297714, -0.07060577720403671, 0.23565314710140228, 0.21280905604362488, -0.07908954471349716, 0.12396720796823502, -0.0682385265827179, 0.03632615879178047, -0.042207907885313034, 0.08430016785860062, 0.020299648866057396, -0.05714808404445648, 0.062059156596660614, 0.24236059188842773, 0.12601418793201447, -0.013975940644741058, -0.026201002299785614, 0.05264076963067055, 0.2539762854576111, -0.030725469812750816, 0.0345604307949543, -0.200949028134346, 0.04259079322218895, -0.1777491718530655, -0.11793610453605652, -0.044347770512104034, 0.024300383403897285, 0.06456635147333145, -0.04235369712114334, 0.07209447026252747, -0.21534891426563263, -0.001987725729122758, 0.07940119504928589, -0.14954949915409088, 0.0006214868626557291, 0.03638776019215584, -0.08068761229515076, 0.4571608901023865, 0.007697281427681446, 0.01615402288734913, 0.11538682878017426, 0.04743155837059021, 0.13138002157211304, -0.16551272571086884, -0.05052928254008293, -0.07968626171350479, -0.15352363884449005, 0.0764804407954216, 0.05574025586247444, 0.09605886787176132, -0.08991353213787079, 0.3146478235721588, 0.12048803269863129, 0.22705593705177307, 0.07420358806848526, 0.029570110142230988, 0.09715861827135086, -0.032785188406705856, -0.007635290268808603, -0.1001523807644844, 0.07098384946584702, 0.016129568219184875, -0.1222405657172203, -0.09767134487628937, -0.12712354958057404, 0.23581373691558838, 0.03616269677877426, 0.18216346204280853, -0.049007195979356766, -0.03604796156287193, -0.02894960530102253, 0.0356895849108696, 0.15445733070373535, 0.09020216017961502, 0.012317969463765621, -0.11423860490322113, -0.06823288649320602, 0.03851231560111046, 0.008514763787388802, -0.09859749674797058, 0.12070555239915848, -0.09462088346481323, -0.11370594799518585, 0.11003689467906952, 0.0008697763551026583, -0.13924793899059296, 0.1933085173368454, 0.014523609541356564, -0.04232456535100937, 0.1826413869857788, 0.12215244024991989, 0.17444416880607605, 0.14016759395599365, 0.051729727536439896, -0.28674715757369995, -0.00601552426815033, 0.08104100078344345, -0.09315520524978638, -0.0048571000806987286, 0.10224337875843048, 0.028755037114024162, 0.06923816353082657, 0.06770659238100052, -0.13389764726161957, -0.20066119730472565, -0.030146274715662003, 0.14213846623897552, -0.14438363909721375, 0.11515220254659653, 0.002896344754844904, 0.013270271010696888, 0.18024152517318726, -0.05116720497608185, -0.1121903583407402, 0.04473491013050079, 0.023216495290398598, 0.1045789048075676, 0.1811942607164383, 0.07734944671392441, -0.13830089569091797, 0.051628828048706055, 0.010241212323307991, 0.07077117264270782, -0.1212293952703476, -0.05848221108317375, 0.11006984114646912, 0.03326655551791191, 0.32209768891334534, 0.10063791275024414, 0.10082706809043884, 0.020818522199988365, -0.15278656780719757, -0.029687996953725815, 0.08667764812707901, -0.06753606349229813, 0.0226528849452734, 0.02390986867249012, 0.11569596081972122, -0.025419127196073532, 0.02393055520951748, -0.048808179795742035, -0.03875191882252693, 0.03268086537718773, -0.03607556223869324, 0.08231185376644135, 0.029856011271476746, -0.05808679759502411, -0.13552036881446838, 0.057757746428251266, -0.0487348772585392, 0.04506793990731239, 0.048160046339035034, -0.12207374721765518, -0.13834261894226074, -0.015070939436554909, -0.06183620169758797, -0.12575125694274902, 0.1502695083618164, -0.21922582387924194, 0.02734191343188286, -0.026195760816335678, 0.046944234520196915, 0.12020931392908096, 0.0523034930229187, -0.1615689992904663, 0.16394200921058655, 0.18366533517837524, -0.10165847837924957, -0.12002825736999512, -0.1176837757229805, 0.062345996499061584, -0.09470372647047043, -0.07646241039037704, 0.13239260017871857, -0.13081102073192596, 0.11909612268209457, 0.04289401322603226, 0.08006160706281662, -0.006863519549369812, -0.0008870261954143643, 0.13355793058872223, -0.02835063636302948, 0.06489744782447815, -0.10688970237970352, -0.09379332512617111, 0.05655040219426155, -0.03679284453392029, 0.11487941443920135, 0.10513138771057129, -0.08331836014986038, -0.05400297790765762, 0.032910868525505066, 0.10537735372781754, -0.14004383981227875, -0.059973664581775665, 0.039835043251514435, 0.06400725245475769, -0.017717353999614716, -0.029909376055002213, -0.1415674090385437, -0.1542641818523407, 0.1361290067434311, -0.13733519613742828, -0.027882518246769905, 0.030678769573569298, 0.12327780574560165, -0.005895060021430254, 0.02162359282374382, -0.035877738147974014, -0.06319539994001389, -0.059718988835811615, -0.01946469396352768, 0.026142235845327377, -0.10404064506292343, -0.11358457058668137, 0.1555090844631195, 0.07480721175670624, 0.14507800340652466, -0.13552933931350708, -0.06256754696369171, -0.09925074875354767, -0.09554026275873184, -0.12181466072797775, -0.13267475366592407, -0.04362483695149422, -0.034123919904232025, -0.13297004997730255, 0.017156174406409264, 0.05473504960536957, -0.11587418615818024, 0.3107954263687134, 0.06905817240476608, 0.0918085128068924, -0.04678497463464737, -0.19343198835849762, -0.08029849827289581, -0.19901475310325623, -0.04332679510116577, 0.06273624300956726, 0.05350031331181526, 0.09347406029701233, -0.13746094703674316, -0.04151073470711708, 0.17121998965740204, 0.04877760261297226, -0.1315183937549591, -0.07072923332452774, -0.10607314109802246, -0.0619131475687027, -0.10404524952173233, 0.02669684588909149, 0.19175997376441956, -0.043330851942300797, 0.05309431627392769, -0.05414858087897301, 0.0751708596944809, 0.14142873883247375, 0.00971109140664339, -0.05220925807952881, 0.05608634650707245, 0.09983707964420319, -0.01207760814577341, -0.06599390506744385, 0.19799403846263885, -0.016681162640452385, 0.0071899560280144215, 0.15399214625358582, -0.12871523201465607, 0.12522108852863312, -0.04627814516425133, -0.0972287580370903, 0.07677806913852692, -0.03300958871841431, -0.16378150880336761, -0.003146662376821041, -0.09523244202136993, -0.026087932288646698, 0.1942450851202011, 0.14625494182109833, 0.05225503072142601, 0.13517938554286957, -0.10851394385099411, -0.04020696505904198, -0.0785750225186348, -0.06595968455076218, -0.2990710735321045, -0.16149964928627014, -0.1263149231672287, -0.012048880569636822, -0.10979796946048737, 0.03713520988821983, -0.17267173528671265, -0.023562783375382423, 0.02130354382097721, -0.27994757890701294, 0.08071400970220566, -0.056050676852464676, 0.04678754135966301, -0.11120319366455078, -0.013476156629621983, 0.029157152399420738, 0.11059287190437317, -0.02963668294250965, -0.07951949536800385, -0.0918978750705719, 0.04120003059506416, 0.03876970335841179, -0.24620847404003143, -0.09394287317991257, -0.07963689416646957, -0.1712457686662674, 0.10685339570045471, -0.22623896598815918, -0.08359546214342117, 0.014619678258895874, 0.03459932282567024, 0.05976606160402298, 0.028520390391349792, -0.18390144407749176, 0.07610764354467392, -0.2676192820072174, 0.0667695477604866, -0.14844068884849548, 0.10385103523731232, -0.1585811823606491, 0.07194887846708298, -0.03773028403520584, -0.06023875251412392, -0.07011526077985764, -0.08258934319019318, -0.052285533398389816, -0.026519516482949257, 0.05180361866950989, 0.1034262478351593, 0.059010379016399384, -0.0003901226446032524, -0.1064787209033966, -0.06470832973718643, 0.11128441989421844, -0.030478214845061302, 0.10905870795249939, 0.09911759942770004, -0.11769049614667892, 0.04295758530497551, -0.003084673546254635, -0.08652547001838684, -0.0373954251408577, 0.05774134770035744, 0.06374932080507278, -0.028285520151257515, -0.09261264652013779, 0.1231282576918602, 0.014427050948143005, -0.06841903924942017, -0.025179913267493248, -0.028815533965826035, -0.010894990526139736, 0.22834913432598114, -0.0561705157160759, 0.0229974202811718, 0.0552685409784317, 0.15521743893623352, 0.15328679978847504, 0.03506746515631676, -0.1451028287410736, -0.08458512276411057, 0.11364936828613281, 0.14333851635456085, -0.18417225778102875, 0.006110574584454298, -0.12605920433998108, 0.07677027583122253, 0.1118026152253151, 0.13200092315673828, -0.08773796260356903, -0.060029249638319016, -0.02847699634730816, 0.15970057249069214, 0.053717561066150665, -0.16512846946716309, -0.051129017025232315, -0.0673910528421402, -0.0417548231780529, 0.0430433452129364, 0.1571323126554489, -0.05059230700135231, -0.051383621990680695, -0.053876541554927826, 0.002217490691691637, -0.09889166057109833, -0.002377350814640522, 0.34290066361427307, 0.06453239172697067, 0.044092923402786255, -0.03750390186905861, 0.0029110880568623543, 0.1569702923297882, 0.03597312793135643, 0.08089155703783035, 0.025072311982512474, -0.08164417743682861, -0.05608968809247017, 0.0880066379904747, -0.018009141087532043, 0.03036276251077652, 0.07945799082517624, 0.09841728955507278, 0.09132189303636551, -0.09017780423164368, 0.09039107710123062, 0.022027427330613136, -0.06542694568634033, -0.13745610415935516, -0.10095991939306259, -0.20674680173397064, -0.01753910444676876, -0.10669229179620743, -0.004185518249869347, 0.024586660787463188, 0.22141505777835846, 0.026010965928435326, -0.09418564289808273, -2.3836004414194377e-32, -0.08987259119749069, -0.02005871757864952, -0.07658909261226654, 0.0352761335670948, -0.1725548505783081, 0.01872161403298378, 0.10732381790876389, 0.05795788764953613, 0.02419540286064148, 0.08763642609119415, 0.031193288043141365, -0.04750893637537956, -0.06137215346097946, -0.06878942996263504, -0.0430026650428772, 0.061367593705654144, 0.1352243721485138, 0.04085981100797653, -0.08376670628786087, 0.018492570146918297, 0.011973424814641476, -0.05507250875234604, 0.1675238311290741, 0.05413838475942612, 0.08448778092861176, 0.13411612808704376, -0.17835275828838348, -0.08014553040266037, 0.10840239375829697, -0.1004912480711937, -0.09050611406564713, 0.05847327783703804, 0.06430284678936005, -0.024052899330854416, -0.12619949877262115, -0.1271558254957199, 0.1908775418996811, 0.012010164558887482, -0.09080324321985245, 0.11999379843473434, 0.009220264852046967, 0.058002568781375885, 0.015435649082064629, -0.01770787313580513, -0.014564378187060356, 0.0672769844532013, -0.11685510724782944, -0.02965686284005642, -0.05927122384309769, 0.032074302434921265, 0.08260539174079895, 0.05294715613126755, 0.008549672551453114, 0.05326663702726364, 0.02080605924129486, -0.18662121891975403, 0.07356829196214676, -0.059765029698610306, -0.11553160846233368, -0.04330459609627724, 0.0018130503594875336, 0.06417010724544525, 0.08298039436340332, 0.06764662265777588, 0.00988282822072506, -0.1191730797290802, 0.126521497964859, 0.2671194076538086, 0.05005485191941261, -0.02716236375272274, -0.07368847727775574, -0.026273533701896667, 0.1013977974653244, -0.2542003393173218, -0.21013063192367554, -0.05036381259560585, 0.028928004205226898, -0.0775168389081955, -0.017421316355466843, -0.04168093949556351, 0.007304254453629255, -0.06825203448534012, 0.010117805562913418, 0.003946130163967609, -0.15562357008457184, 0.02924456261098385, -0.01029214821755886, 0.15323054790496826, -0.10090487450361252, -0.07431620359420776, 0.10593730211257935, 0.12394870817661285, -0.14242441952228546, 0.03170468285679817, -0.09407829493284225, -0.04372939467430115, -0.11170677840709686, 0.104279525578022, 0.01607493683695793, 0.04610880836844444, -0.02030221000313759, 0.08413684368133545, -0.07396348565816879, 0.07358543574810028, 0.05623660609126091, 0.12352270632982254, 0.0478481724858284, -0.2065674513578415, -0.09380150586366653, -0.10864993929862976, -0.067611463367939, -0.03595038130879402, 0.23317722976207733, -0.08004369586706161, 0.07442428916692734, -0.029358554631471634, -0.04749782010912895, 0.00024356487847398967, 0.10313770174980164, 0.04160170629620552, 0.17251738905906677, 0.06332515180110931, -0.061090532690286636, 0.09067659825086594, 0.022235557436943054, -0.12164385616779327, -0.1726689636707306, -0.13303737342357635, -0.03151695057749748, 0.010364988818764687, -0.003498638980090618, -0.11692480742931366, 7.848427685530623e-7, -0.05635303258895874, -0.061279620975255966, -0.04282462224364281, 0.074314646422863, -0.07520085573196411, 0.09189817309379578, -0.053532738238573074, 0.14196674525737762, -0.048937052488327026, 0.002026953035965562, -0.03699498623609543, -0.09094630181789398, 0.030650943517684937, 0.10847526043653488, 0.21258796751499176, -0.024315183982253075, -0.13768978416919708, -0.10044684261083603, -0.15736252069473267, 0.04920269176363945, 0.08174140006303787, -0.16643445193767548, -0.08209805190563202, 0.07541131973266602, 0.06918787211179733, 0.08871253579854965, -0.007209714502096176, 0.022684196010231972, 0.04186728969216347, 0.0500912219285965, -0.03248729929327965, -0.06756968796253204, -0.002772063948214054, 0.04860125482082367, -0.06463242322206497, -0.0536651574075222, 0.06105276942253113, -0.19119636714458466, 0.1618303507566452, 0.08469174802303314, -0.05704248696565628, -0.016264479607343674, 0.15555217862129211, 0.09829265624284744, 0.08488897979259491, 0.09116743505001068, -0.023947931826114655, -0.06017241254448891, 0.0326656699180603, 0.07915545254945755, 0.1308736354112625, -0.12328241765499115, -0.015523793175816536, 0.055412642657756805, 0.051283448934555054, 0.10067557543516159, -0.0643429160118103, -0.024598274379968643, 0.07835137099027634, 0.06690118461847305, -0.1073521226644516, -0.045186612755060196, -0.13156607747077942, -0.03301314637064934, 0.1798047423362732, 0.004644092172384262, -0.002735339105129242, 8.881534811359143e-35, 0.13392922282218933, -0.13953112065792084, 0.13567376136779785, -0.1563461571931839, 0.004691248759627342, 0.03405873104929924, -0.03688032925128937, -0.033265069127082825, -0.06245926395058632, -0.20708037912845612, -0.0816243588924408 ]
https://github.com/huggingface/datasets/issues/2629
Load datasets from the Hub without requiring a dataset script
This is so cool, let us know if we can help with anything on the hub side (@Pierrci @elishowk) 🎉
As a user I would like to be able to upload my csv/json/text/parquet/etc. files in a dataset repository on the Hugging Face Hub and be able to load this dataset with `load_dataset` without having to implement a dataset script. Moreover I would like to be able to specify which file goes into which split using the `data_files` argument. This feature should be compatible with private repositories and dataset streaming. This can be implemented by checking the extension of the files in the dataset repository and then by using the right dataset builder that is already packaged in the library (csv/json/text/parquet/etc.)
20
Load datasets from the Hub without requiring a dataset script As a user I would like to be able to upload my csv/json/text/parquet/etc. files in a dataset repository on the Hugging Face Hub and be able to load this dataset with `load_dataset` without having to implement a dataset script. Moreover I would like to be able to specify which file goes into which split using the `data_files` argument. This feature should be compatible with private repositories and dataset streaming. This can be implemented by checking the extension of the files in the dataset repository and then by using the right dataset builder that is already packaged in the library (csv/json/text/parquet/etc.) This is so cool, let us know if we can help with anything on the hub side (@Pierrci @elishowk) 🎉
[ -0.172975555062294, 0.13853754103183746, -0.04556182399392128, 0.07800664752721786, 0.005039517302066088, -0.0003222594677936286, 0.07387402653694153, -0.14966078102588654, 0.30328837037086487, 0.12751412391662598, -0.03414258733391762, 0.10967519134283066, -0.10379797220230103, 0.052398521453142166, 0.04017917811870575, -0.018732070922851562, -0.01612675003707409, 0.10411199182271957, 0.013576135970652103, -0.003929897677153349, -0.05968371778726578, 0.02690703608095646, 0.21121737360954285, -0.14219968020915985, -0.05679043009877205, 0.10521537810564041, -0.010506226681172848, 0.1674085408449173, 0.04459497705101967, -0.06702229380607605, 0.13362811505794525, 0.19494037330150604, 0.08345618844032288, 0.08329430222511292, 0.000005631617113976972, -0.03971990942955017, -0.05657092109322548, -0.0022827612701803446, -0.06899455189704895, -0.1163075864315033, 0.16203151643276215, -0.09486888349056244, 0.041234876960515976, -0.14917823672294617, -0.08229001611471176, 0.0200260691344738, -0.016177594661712646, -0.07117994129657745, 0.09517703950405121, 0.008621889166533947, -0.06419456750154495, 0.08088545501232147, -0.24881955981254578, -0.212912455201149, -0.008539163507521152, 0.10942565649747849, 0.018460262566804886, 0.10789473354816437, -0.1385032832622528, 0.010495242662727833, -0.13397173583507538, -0.07537675648927689, 0.05070766061544418, 0.12343107908964157, 0.15160870552062988, 0.06505842506885529, -0.3702809512615204, -0.11317826062440872, -0.0008916722727008164, 0.2037026286125183, 0.011879869736731052, -0.043378688395023346, -0.022780444473028183, -0.075609490275383, 0.043807558715343475, 0.05678214877843857, -0.05132010951638222, -0.13086092472076416, -0.014510946348309517, 0.19416314363479614, -0.0898091122508049, -0.12654617428779602, -0.1241365596652031, -0.06981615722179413, -0.14593857526779175, 0.06467946618795395, -0.09310939908027649, -0.14602746069431305, -0.09355930984020233, -0.042927905917167664, 0.22235994040966034, -0.04602715000510216, -0.14217273890972137, -0.039535049349069595, 0.18148881196975708, 0.010701743885874748, 0.08897648006677628, 0.0913061797618866, 0.14245882630348206, 0.04385124146938324, -0.029542140662670135, 0.10124540328979492, -0.22774635255336761, 0.1251615732908249, 0.0384531170129776, -0.10624154657125473, 0.1240634024143219, -0.08304283767938614, 0.15372873842716217, 0.13402965664863586, 0.05049090087413788, 0.16955024003982544, -0.13445216417312622, -0.15824174880981445, -0.05329826846718788, 0.1057361587882042, 0.022174572572112083, 0.14736530184745789, 0.05981149151921272, 0.12462601065635681, 0.18863318860530853, 0.17108863592147827, 0.01852443255484104, 0.19152997434139252, 0.03997360169887543, -0.07125908136367798, -0.13584178686141968, -0.08314123749732971, -0.017010504379868507, -0.06706898659467697, -0.04308804124593735, -0.03284024819731712, 0.050121087580919266, 0.03960050269961357, 0.2019035965204239, -0.06965234875679016, 0.03802568465471268, -0.30692577362060547, 0.1425342857837677, -0.10729898512363434, 0.13381297886371613, -0.04661116749048233, -0.18889036774635315, -0.03978705406188965, 0.1922101080417633, 0.003666047705337405, -0.0637773722410202, -0.04754256084561348, -0.15678595006465912, -0.018951518461108208, -0.17842881381511688, -0.07014918327331543, -0.23630298674106598, 0.038626380264759064, -0.18073682487010956, -0.05882962420582771, -0.24819400906562805, 0.00863681174814701, -0.3396962881088257, -0.05724242702126503, 0.05353400856256485, -0.11516891419887543, 0.0647505447268486, 0.03104216419160366, 0.24258658289909363, 0.06988513469696045, 0.12093444168567657, 0.019910473376512527, -0.02686772309243679, -0.0935966819524765, -0.1313919723033905, -0.15768995881080627, -0.04387310519814491, 0.013077963143587112, -0.274755597114563, 0.2996162474155426, 0.16330470144748688, -0.09412874281406403, -0.06648927927017212, 0.06397475302219391, 0.19668637216091156, 0.04190162941813469, -0.020253725349903107, -0.08983515948057175, 0.23076610267162323, -0.09648841619491577, -0.0595950186252594, 0.1379813253879547, 0.042068883776664734, -0.0177528765052557, 0.05701623857021332, -0.08490556478500366, 0.048778098076581955, 0.18440714478492737, -0.04466778784990311, -0.026627957820892334, 0.10511882603168488, -0.006857670843601227, 0.1038387194275856, -0.20745731890201569, -0.13435378670692444, 0.06335405260324478, -0.01132892444729805, -0.018539046868681908, 0.05489087477326393, -0.12215305119752884, -0.11408437788486481, 0.16483783721923828, 0.2008121907711029, -0.19618579745292664, -0.15683601796627045, 0.07064522802829742, -0.1639169603586197, 0.010471595451235771, -0.16603796184062958, 0.010295428335666656, -0.004403962753713131, 0.02523399144411087, 0.04945773258805275, 0.013948389329016209, -0.08694145828485489, 0.17144779860973358, 0.10731267929077148, 0.013902164995670319, -0.06215889751911163, 0.09206502884626389, 0.030515260994434357, -0.042606502771377563, 0.2278878390789032, -0.0640525296330452, -0.07490763813257217, -0.10095758736133575, 0.11354231834411621, 0.16249950230121613, -0.007842711172997952, 0.11571028083562851, 0.09625733643770218, 0.046875130385160446, 0.041402023285627365, -0.08993590623140335, 0.0628482848405838, -0.0737888440489769, -0.07639514654874802, 0.04682597517967224, -0.07201609015464783, 0.15366260707378387, -0.1175333634018898, 0.06091636046767235, -0.03197352960705757, 0.025320779532194138, 0.30934685468673706, 0.09048078209161758, -0.07814039289951324, 0.03173843026161194, 0.04129524156451225, 0.06046685576438904, 0.03188452497124672, 0.09913991391658783, -0.061516646295785904, 0.037363309413194656, 0.16160066425800323, 0.09503909945487976, -0.010341648943722248, -0.024065855890512466, 0.10492844879627228, -0.07678700238466263, 0.003760232124477625, 0.02230180613696575, -0.08217787742614746, 0.12342768162488937, 0.07498491555452347, 0.04744460806250572, -0.10879354923963547, -0.12481827288866043, -0.01601731777191162, -0.14250724017620087, 0.11434215307235718, 0.07466752082109451, -0.019466353580355644, -0.04184144735336304, -0.22936759889125824, 0.07283838093280792, 0.10397550463676453, -0.09520506113767624, 0.053225498646497726, -0.040247175842523575, -0.10019256919622421, 0.21056009829044342, 0.06013121455907822, -0.12729619443416595, -0.01016094908118248, -0.050233837217092514, 0.1297498494386673, -0.026221442967653275, 0.045453548431396484, -0.08822637796401978, 0.04971732199192047, 0.14396029710769653, -0.058082692325115204, -0.06070110574364662, -0.09716948866844177, -0.044711485505104065, 0.033072445541620255, 0.03219476714730263, -0.037899501621723175, 0.24736014008522034, 0.0073763299733400345, -0.10010038316249847, -0.008039877749979496, -0.05118782818317413, 0.052232272922992706, 0.004097390919923782, 0.03394781053066254, 0.07634931057691574, 0.04610712453722954, -0.20671874284744263, 0.028198402374982834, -0.10518847405910492, 0.05811525881290436, 0.05687402933835983, 0.0967806875705719, 0.08041324466466904, 0.1248275637626648, -0.16518239676952362, -0.0010210388572886586, 0.06462829560041428, -0.1785396784543991, -0.23279419541358948, -0.025976568460464478, 0.07912790030241013, -0.11057529598474503, -0.03295910358428955, 0.0572609007358551, -0.07645753771066666, 0.015090346336364746, -0.16199013590812683, -0.04621044546365738, -0.09637094289064407, 0.30640938878059387, -0.050841111689805984, -0.004162524826824665, 0.10604041814804077, -0.050145432353019714, -0.07249375432729721, -0.03658571466803551, 0.0043510678224265575, -0.036200590431690216, -0.21191614866256714, -0.0771104171872139, -0.09193369746208191, 0.0546400286257267, -0.04952344298362732, -0.00853221770375967, 0.05377011373639107, 0.045795731246471405, -0.08028511703014374, -0.17681072652339935, 0.2156549096107483, -0.2297092080116272, 0.21567685902118683, -0.1320904791355133, 0.007488084491342306, 0.04685220494866371, -0.06900085508823395, 0.07454196363687515, 0.1474461853504181, 0.1204647570848465, 0.11331959813833237, 0.09848413616418839, -0.10767314583063126, -0.14521092176437378, -0.12934626638889313, 0.10460139811038971, 0.0028083687648177147, 0.046488936990499496, 0.0050434996373951435, -0.04351551830768585, -0.12477798759937286, 0.10493896156549454, -0.05079495534300804, 0.10898996144533157, -0.13449504971504211, -0.016207950189709663, -0.0090648727491498, 0.15001296997070312, -0.0194468405097723, -0.13842912018299103, 0.04776198789477348, -0.020430099219083786, 0.19104866683483124, -0.007573121692985296, 0.07759606093168259, 0.0684129148721695, -0.23049800097942352, 0.11522876471281052, -0.05335947871208191, -0.010924735106527805, 0.08456582576036453, 0.1406787484884262, 0.06063103675842285, 0.003961570560932159, 0.11712643504142761, 0.02860140986740589, 0.01238655298948288, -0.026879174634814262, 0.03388606384396553, -0.025510091334581375, 0.013324188068509102, 0.16191045939922333, -0.019595175981521606, -0.21343855559825897, 0.0823955088853836, -0.051488421857357025, -0.05168771743774414, 0.07018342614173889, -0.1591600924730301, -0.0012116562575101852, 0.006673186551779509, 0.08441447466611862, 0.022535620257258415, -0.06086396798491478, -0.1395137757062912, 0.1839512139558792, 0.13758426904678345, 0.03734336420893669, 0.04521927610039711, -0.012099779210984707, 0.1053176000714302, 0.17091701924800873, -0.03657873347401619, 0.17364199459552765, 0.1353268176317215, 0.026011845096945763, 0.0720866471529007, 0.1234489381313324, -0.1668010801076889, 0.31721293926239014, -0.0248496625572443, -0.19238252937793732, -0.03737707808613777, -0.13424831628799438, 0.04837089776992798, 0.11643451452255249, -0.010069867596030235, -0.11942002177238464, -0.018066389486193657, -0.01220358069986105, -0.07495871186256409, 0.06935916841030121, -0.10522677004337311, -0.17369821667671204, -0.08734281361103058, -0.158554345369339, -0.05373917520046234, -0.031108969822525978, -0.03220495581626892, 0.02357378415763378, 0.0358017273247242, -0.04787148907780647, 0.13531804084777832, -0.2100626826286316, -0.09428606182336807, 0.006806313060224056, 0.05506151542067528, -0.10711012035608292, 0.1379137635231018, 0.33355069160461426, -0.3646688163280487, -0.018081532791256905, -0.02208678238093853, -0.09539203345775604, 0.015810651704669, -0.0756368488073349, 0.07679025828838348, 0.10740496218204498, -0.010027027688920498, 0.07788500934839249, -0.08807042241096497, 0.030115671455860138, 0.0032543635461479425, 0.21092507243156433, -0.032977525144815445, 0.026577932760119438, -0.11840525269508362, -0.06618967652320862, 0.19396772980690002, 0.045788221061229706, -0.061775851994752884, -0.1623954027891159, -0.060710400342941284, -0.03450842574238777, -0.1482921689748764, 0.10919131338596344, 0.0015821679262444377, -0.046654291450977325, -0.02185848541557789, -0.020650966092944145, 0.0953022763133049, 0.10268627852201462, 0.10585200041532516, -0.01694226823747158, -0.16200248897075653, 0.05634962022304535, -0.0696839839220047, -0.10423234850168228, -0.17141199111938477, -0.04873045161366463, -0.06800895929336548, 0.04316854104399681, -0.05240630730986595, 0.04408615827560425, -0.08407805114984512, -0.10716725885868073, -0.02572593465447426, 0.10311111062765121, 0.0033116110134869814, -0.16346390545368195, 0.03307061269879341, 0.07974762469530106, -0.05091066658496857, -0.01579691283404827, -0.02852180413901806, -0.057698484510183334, -0.08758227527141571, -0.020453155040740967, 0.07419642060995102, -0.017601357772946358, 0.035450976341962814, 0.07962480932474136, -0.1450262814760208, 0.1370725780725479, -0.07058363407850266, -0.0025214948691427708, -0.040835119783878326, -0.06661351770162582, -0.017853587865829468, 0.19874688982963562, -0.0918186753988266, 0.0011677115689963102, 0.0558166466653347, -0.06785822659730911, -0.23993384838104248, -0.10113340616226196, 0.07223948836326599, -0.104124054312706, 0.041150376200675964, -0.030010897666215897, 0.06900203227996826, -0.011730820871889591, -0.08640339970588684, 0.024559780955314636, 0.22320280969142914, -0.019969087094068527, -0.08369528502225876, -0.05820291489362717, -2.4615593737027657e-32, 0.07271766662597656, 0.03836461901664734, -0.0926002711057663, -0.06404101848602295, 0.06848709285259247, -0.027441205456852913, 0.018725639209151268, -0.18091359734535217, -0.01996321603655815, -0.1814364343881607, -0.03419174253940582, 0.018149681389331818, 0.09865131229162216, 0.14384455978870392, -0.04908501356840134, -0.08673351258039474, -0.03839033842086792, -0.18215498328208923, -0.05970289558172226, 0.10655604302883148, 0.16403953731060028, 0.04720417410135269, -0.08503220975399017, 0.05615469813346863, 0.10823297500610352, -0.08028792589902878, 0.13013532757759094, -0.03494524210691452, 0.011641665361821651, -0.02675159089267254, -0.07929771393537521, 0.05509798228740692, -0.06639935821294785, 0.013492466881871223, 0.019806889817118645, 0.12042979896068573, -0.21848154067993164, -0.0031140956562012434, 0.0650666132569313, -0.08978620171546936, -0.03307086601853371, 0.0945272445678711, 0.023332366719841957, -0.1349058896303177, 0.10529079288244247, 0.06037944182753563, -0.004607978276908398, 0.20057590305805206, 0.05142982304096222, 0.05646494776010513, -0.019891591742634773, 0.04725022241473198, 0.10966131836175919, -0.0016576340422034264, 0.15015709400177002, -0.043438974767923355, 0.04544738307595253, 0.15826506912708282, 0.03915303945541382, -0.07121302932500839, 0.010621258988976479, -0.13247932493686676, 0.01895112916827202, -0.021991319954395294, 0.15622922778129578, -0.08849320560693741, 0.2608906328678131, -0.020007768645882607, -0.04871333763003349, 0.023631826043128967, 0.23491229116916656, 0.12883557379245758, -0.11819632351398468, -0.023036571219563484, -0.15381529927253723, -0.013283546082675457, -0.11926336586475372, -0.1010197326540947, 0.007053566165268421, -0.08202251046895981, 0.04653828591108322, -0.1650044023990631, -0.0019401278113946319, 0.07954763621091843, 0.09823326766490936, -0.06830789148807526, -0.019476842135190964, -0.0846235528588295, -0.1795472800731659, -0.07909097522497177, -0.12029736489057541, -0.23305383324623108, 0.021655159071087837, 0.08780799806118011, 0.07741006463766098, 0.14110435545444489, 0.02448817901313305, 0.07124019414186478, 0.024207644164562225, 0.04643569141626358, -0.032073330134153366, 0.11473905295133591, 0.22450579702854156, -0.028303897008299828, 0.0893338993191719, 0.019999952986836433, 0.04500587284564972, 0.04059469327330589, -0.10303420573472977, -0.05066164210438728, -0.007655616849660873, 0.09621212631464005, 0.13327187299728394, 0.05612853914499283, 0.21781183779239655, 0.14776724576950073, -0.06005607545375824, -0.12386373430490494, -0.035287998616695404, 0.04405950382351875, -0.2172178477048874, 0.03318283334374428, 0.15017063915729523, 0.08952552825212479, 0.08899812400341034, 0.14774081110954285, -0.16275015473365784, -0.13659211993217468, 0.027595223858952522, -0.04387460649013519, 0.07840409129858017, 0.003178296610713005, 7.41154281058698e-7, -0.16351184248924255, 0.035256173461675644, -0.043444402515888214, -0.014586564153432846, 0.05248488113284111, -0.05230075120925903, -0.3106810748577118, 0.08804433792829514, 0.15396744012832642, -0.11844570189714432, 0.17822827398777008, -0.03911396488547325, -0.10909328609704971, 0.13634765148162842, -0.1841975897550583, -0.11346587538719177, -0.0527767650783062, 0.006875490304082632, -0.04913129284977913, 0.030335165560245514, 0.14939086139202118, 0.16559070348739624, -0.17461970448493958, -0.05110163614153862, 0.00445191515609622, -0.05236378312110901, -0.039410922676324844, 0.1265621930360794, 0.10120723396539688, -0.07808077335357666, -0.14679190516471863, 0.02993100881576538, -0.09965401142835617, 0.05561845377087593, -0.017713185399770737, 0.10942157357931137, -0.24835169315338135, -0.01912463828921318, 0.05366501212120056, -0.014610850252211094, 0.05729921907186508, 0.07357370853424072, -0.09605740010738373, 0.0013857971644029021, 0.19832055270671844, -0.07871991395950317, -0.056817661970853806, 0.09559836238622665, 0.011683093383908272, 0.027401037514209747, -0.0914526879787445, -0.0318513959646225, 0.10614410787820816, 0.12447445839643478, 0.007688702549785376, -0.1343056857585907, 0.05356457829475403, -0.05052545294165611, -0.05644240602850914, -0.037935055792331696, -0.09281808137893677, -0.12732158601284027, -0.019485758617520332, -0.0036630460526794195, 0.04825310781598091, 0.14979492127895355, 0.13764724135398865, 2.0770422686615853e-34, 0.0626717135310173, 0.1012125089764595, 0.04219558835029602, -0.010302180424332619, -0.021206621080636978, -0.10603633522987366, -0.12829157710075378, 0.04261261969804764, 0.08734780550003052, -0.25366470217704773, -0.029255978763103485 ]
https://github.com/huggingface/datasets/issues/2622
Integration with AugLy
Hi, you can define your own custom formatting with `Dataset.set_transform()` and then run the tokenizer with the batches of augmented data as follows: ```python dset = load_dataset("imdb", split="train") # Let's say we are working with the IMDB dataset dset.set_transform(lambda ex: {"text": augly_text_augmentation(ex["text"])}, columns="text", output_all_columns=True) dataloader = torch.utils.data.DataLoader(dset, batch_size=32) for epoch in range(5): for batch in dataloader: tokenizer_output = tokenizer(batch.pop("text"), padding=True, truncation=True, return_tensors="pt") batch.update(tokenizer_output) output = model(**batch) ... ```
**Is your feature request related to a problem? Please describe.** Facebook recently launched a library, [AugLy](https://github.com/facebookresearch/AugLy) , that has a unified API for augmentations for image, video and text. It would be pretty exciting to have it hooked up to HF libraries so that we can make NLP models robust to misspellings or to punctuation, or emojis etc. Plus, with Transformers supporting more CV use cases, having augmentations support becomes crucial. **Describe the solution you'd like** The biggest difference between augmentations and preprocessing is that preprocessing happens only once, but you are running augmentations once per epoch. AugLy operates on text directly, so this breaks the typical workflow where we would run the tokenizer once, set format to pt tensors and be ready for the Dataloader. **Describe alternatives you've considered** One possible way of implementing these is to make a custom Dataset class where getitem(i) runs the augmentation and the tokenizer every time, though this would slow training down considerably given we wouldn't even run the tokenizer in batches.
68
Integration with AugLy **Is your feature request related to a problem? Please describe.** Facebook recently launched a library, [AugLy](https://github.com/facebookresearch/AugLy) , that has a unified API for augmentations for image, video and text. It would be pretty exciting to have it hooked up to HF libraries so that we can make NLP models robust to misspellings or to punctuation, or emojis etc. Plus, with Transformers supporting more CV use cases, having augmentations support becomes crucial. **Describe the solution you'd like** The biggest difference between augmentations and preprocessing is that preprocessing happens only once, but you are running augmentations once per epoch. AugLy operates on text directly, so this breaks the typical workflow where we would run the tokenizer once, set format to pt tensors and be ready for the Dataloader. **Describe alternatives you've considered** One possible way of implementing these is to make a custom Dataset class where getitem(i) runs the augmentation and the tokenizer every time, though this would slow training down considerably given we wouldn't even run the tokenizer in batches. Hi, you can define your own custom formatting with `Dataset.set_transform()` and then run the tokenizer with the batches of augmented data as follows: ```python dset = load_dataset("imdb", split="train") # Let's say we are working with the IMDB dataset dset.set_transform(lambda ex: {"text": augly_text_augmentation(ex["text"])}, columns="text", output_all_columns=True) dataloader = torch.utils.data.DataLoader(dset, batch_size=32) for epoch in range(5): for batch in dataloader: tokenizer_output = tokenizer(batch.pop("text"), padding=True, truncation=True, return_tensors="pt") batch.update(tokenizer_output) output = model(**batch) ... ```
[ -0.023724965751171112, 0.28605741262435913, 0.004669527988880873, -0.024360092356801033, 0.12951166927814484, 0.019530538469552994, 0.23547248542308807, -0.06646426022052765, -0.04178956151008606, -0.001343717216514051, 0.010047275573015213, 0.005143560469150543, -0.04598204419016838, 0.26869797706604004, -0.0351395308971405, -0.1248757541179657, -0.006810865830630064, 0.10694179683923721, 0.005796434823423624, 0.11873704195022583, 0.05619124323129654, 0.0632629320025444, 0.00663562910631299, 0.05649124085903168, -0.06043637543916702, -0.08634376525878906, -0.04822145029902458, -0.08371051400899887, 0.05790505185723305, 0.042919669300317764, -0.12938082218170166, 0.14789311587810516, 0.006366372108459473, 0.28784486651420593, 0.000005745200269302586, -0.10338144749403, 0.018939267843961716, -0.020238185301423073, -0.03477858752012253, 0.04600538685917854, 0.3881021738052368, -0.14404332637786865, 0.018956780433654785, -0.08466165512800217, 0.02572290599346161, -0.11138689517974854, 0.016000473871827126, -0.03769372031092644, 0.3208094835281372, 0.01261216402053833, 0.029718419536948204, 0.0794525146484375, 0.09775412827730179, 0.00031961026252247393, 0.034214530140161514, -0.020736245438456535, -0.04775259271264076, -0.02622806653380394, 0.1761423498392105, 0.008984365500509739, 0.08801962435245514, 0.19257214665412903, 0.10581183433532715, -0.09318328648805618, 0.25780755281448364, -0.14214909076690674, -0.1432648003101349, -0.07973302900791168, -0.044909946620464325, -0.03066476620733738, 0.20394647121429443, -0.1269226372241974, -0.103297658264637, 0.02630440890789032, 0.054149676114320755, -0.145451620221138, -0.2530674636363983, 0.007912344299256802, 0.20442602038383484, -0.002492594998329878, -0.06945282965898514, -0.07389161735773087, -0.0009201751672662795, -0.07397867739200592, 0.015398070216178894, 0.11061786860227585, 0.06858553737401962, 0.06672936677932739, -0.031806983053684235, -0.03135738521814346, 0.17399492859840393, -0.11491736024618149, 0.07645376026630402, 0.06112164631485939, -0.054711923003196716, -0.19340011477470398, -0.262062668800354, -0.19283394515514374, 0.023665161803364754, -0.013898590579628944, -0.10027910023927689, 0.11445710808038712, -0.20157404243946075, 0.06073600426316261, 0.034787774085998535, -0.06104337424039841, -0.10455414652824402, -0.0024359060917049646, 0.0051782079972326756, -0.038834553211927414, 0.16345715522766113, 0.08626396954059601, 0.004879719112068415, 0.1326093077659607, 0.09627759456634521, -0.1402386873960495, -0.16642871499061584, 0.24073179066181183, -0.16496922075748444, 0.07465498894453049, 0.13392728567123413, 0.1575527787208557, -0.1492142379283905, -0.015663467347621918, -0.21418918669223785, -0.025457922369241714, 0.15069784224033356, -0.11450839787721634, -0.04784955456852913, -0.10829801112413406, 0.1096833124756813, 0.031351201236248016, 0.18929234147071838, 0.0520952045917511, 0.00902712345123291, 0.028401875868439674, -0.018615150824189186, -0.07895834743976593, 0.07234757393598557, 0.1852307915687561, 0.08963986486196518, 0.053776055574417114, -0.10846105962991714, -0.13226743042469025, 0.022062331438064575, 0.013216673396527767, 0.11681992560625076, 0.17717492580413818, -0.10988615453243256, -0.04349778592586517, 0.007327822502702475, 0.13150906562805176, -0.22978758811950684, 0.0367659293115139, 0.010497824288904667, -0.0820493996143341, -0.14489209651947021, -0.10244115442037582, -0.17686636745929718, 0.024739952757954597, 0.05123530700802803, -0.0989021435379982, 0.014523012563586235, -0.030539046972990036, -0.011253532953560352, 0.008623895235359669, -0.01909167692065239, -0.012000045739114285, -0.08130278438329697, -0.06723330914974213, 0.00008798890485195443, 0.04303421825170517, -0.022625716403126717, -0.08049755543470383, -0.05814584344625473, 0.015103301033377647, 0.011967910453677177, -0.08194907754659653, 0.18672457337379456, 0.025467876344919205, -0.031092451885342598, 0.03639385104179382, -0.08115062117576599, 0.11323264986276627, 0.10588128119707108, 0.13648496568202972, 0.1015133261680603, 0.2051522433757782, -0.07353026419878006, -0.003923078533262014, 0.15888087451457977, 0.010547027923166752, 0.10939832031726837, 0.010026978328824043, 0.17612531781196594, -0.1432923972606659, -0.020728295668959618, -0.21803279221057892, 0.10332360863685608, -0.14480096101760864, 0.07583814859390259, 0.007429429795593023, -0.25563615560531616, 0.11855828762054443, 0.08319741487503052, 0.010994390584528446, -0.06746196001768112, -0.05319591611623764, 0.11114760488271713, 0.10904593020677567, -0.11588672548532486, -0.07644900679588318, -0.016928715631365776, -0.08469890058040619, 0.17082622647285461, -0.20017778873443604, 0.034262094646692276, -0.1017754077911377, -0.04197530820965767, 0.08234669268131256, -0.05894222483038902, 0.12890121340751648, 0.020226629450917244, 0.15502074360847473, 0.13367624580860138, -0.09884247183799744, -0.1077643632888794, 0.12792961299419403, 0.024551818147301674, 0.06821221858263016, -0.19085490703582764, 0.013508874922990799, 0.05731065943837166, 0.13849009573459625, -0.10157422721385956, -0.018603064119815826, 0.00873997900635004, 0.07824935764074326, 0.09411585330963135, -0.06248042732477188, 0.019323479384183884, -0.2007981538772583, -0.06734590977430344, -0.028692597523331642, 0.08007585257291794, 0.06035537272691727, 0.13885976374149323, -0.030386559665203094, 0.08982933312654495, 0.028702765703201294, 0.09824677556753159, 0.2213592380285263, -0.11375565826892853, 0.05585145205259323, -0.06799282133579254, -0.264061838388443, 0.17368775606155396, 0.004369800444692373, -0.13331188261508942, -0.1408909410238266, -0.06727996468544006, -0.09760399907827377, -0.022963417693972588, 0.031047452241182327, 0.06570346653461456, -0.0028059736359864473, 0.14729948341846466, -0.28689083456993103, -0.013756928965449333, 0.06729626655578613, -0.12006054818630219, 0.04456619918346405, 0.12836116552352905, 0.023103853687644005, -0.09964345395565033, 0.04828775301575661, 0.0173503290861845, -0.058505188673734665, 0.058700453490018845, 0.0940481573343277, -0.12759718298912048, 0.05023806542158127, 0.11347775906324387, -0.04268991947174072, 0.0862719863653183, 0.09866560250520706, -0.03678657114505768, -0.2277212142944336, -0.10132823139429092, -0.31310921907424927, 0.06298022717237473, 0.08334556221961975, 0.05771569162607193, -0.04184407368302345, 0.06643131375312805, -0.009552067145705223, -0.04198134317994118, -0.017326341941952705, 0.09258650988340378, -0.03840553015470505, -0.1642875373363495, 0.1255573183298111, 0.022618625313043594, 0.023055654019117355, 0.033085137605667114, 0.04981502890586853, 0.12234792113304138, 0.152566596865654, -0.06283728033304214, -0.13391120731830597, -0.07932871580123901, 0.05903983861207962, -0.09168742597103119, -0.10221567004919052, 0.06686606258153915, -0.0749305933713913, 0.02042984776198864, -0.20057076215744019, 0.010835508815944195, 0.0005118916160427034, 0.12769268453121185, -0.10639026015996933, 0.05064744874835014, -0.07596489042043686, -0.04136517643928528, 0.11844893544912338, -0.19005677103996277, -0.08279601484537125, -0.060359932482242584, 0.032208699733018875, -0.023209527134895325, 0.031163295730948448, -0.16187144815921783, -0.06123200058937073, 0.20896905660629272, 0.016770513728260994, 0.03783513978123665, 0.002215019427239895, 0.09928841888904572, 0.11453082412481308, 0.0064711240120232105, -0.1368037611246109, -0.15225829184055328, 0.07678943127393723, 0.02902861125767231, -0.05680111423134804, 0.05166393518447876, -0.19299055635929108, -0.0681811049580574, -0.11907236278057098, -0.15488405525684357, 0.06224072724580765, -0.10601917654275894, 0.08299519866704941, 0.031624652445316315, 0.06204625964164734, -0.08668316155672073, -0.09456030279397964, -0.17132361233234406, -0.0512150377035141, -0.08372868597507477, -0.03932619467377663, 0.1709301620721817, -0.22239023447036743, -0.24854546785354614, -0.0008964131120592356, 0.18426364660263062, -0.018771298229694366, 0.1117728054523468, -0.07407625019550323, -0.01518246065825224, -0.11933477222919464, 0.014271034859120846, 0.0010661445558071136, 0.06049800664186478, -0.14068396389484406, -0.025486264377832413, 0.03274711221456528, 0.0608016736805439, 0.027006736025214195, -0.01453186571598053, -0.3670322299003601, 0.006479763891547918, 0.013542338274419308, 0.058837730437517166, 0.02034039981663227, 0.032310761511325836, 0.1306905299425125, -0.041451647877693176, 0.12956292927265167, -0.01731111668050289, 0.023748626932501793, 0.17237268388271332, -0.05251789093017578, 0.07244521379470825, -0.109538234770298, 0.05610145628452301, 0.10659538209438324, 0.027153005823493004, 0.014368441887199879, 0.03537642955780029, 0.07462441176176071, 0.002461414085701108, -0.2092135101556778, -0.07347972691059113, -0.025814063847064972, -0.032170433551073074, 0.04529934749007225, 0.005942004267126322, -0.17311951518058777, 0.10395240038633347, 0.24476145207881927, -0.12251979112625122, -0.1899825930595398, -0.0596948117017746, -0.08866757154464722, -0.04897909611463547, -0.01675046980381012, 0.25391775369644165, 0.07355242222547531, -0.07919074594974518, -0.1053234413266182, 0.16769516468048096, 0.15544253587722778, 0.11700140684843063, -0.239230677485466, -0.011988704092800617, -0.030844705179333687, 0.07703413814306259, 0.003002049634233117, -0.13509370386600494, -0.061215102672576904, 0.049305353313684464, -0.05695271119475365, -0.04474620148539543, 0.03775911405682564, 0.020877044647932053, -0.08579838275909424, -0.14073069393634796, -0.08944177627563477, 0.02082148753106594, -0.00036691201967187226, 0.17791371047496796, -0.07617557048797607, -0.05013696849346161, -0.11021190881729126, 0.05204489827156067, 0.07253257930278778, 0.05590752139687538, 0.0913960263133049, -0.10810654610395432, -0.150581955909729, -0.14838860929012299, -0.03975330665707588, -0.017879940569400787, 0.08275946974754333, -0.03154641389846802, -0.1723441630601883, -0.11270669102668762, 0.18459928035736084, 0.11829479783773422, -0.0182428527623415, 0.11376257240772247, -0.06135288625955582, -0.17336340248584747, 0.0507589727640152, 0.19818145036697388, -0.20743076503276825, -0.07133455574512482, -0.06653638929128647, 0.06166042387485504, 0.11603499203920364, 0.10139165818691254, 0.022292878478765488, 0.03835773095488548, -0.02340143732726574, 0.17165586352348328, -0.06510034948587418, -0.062026653438806534, -0.031063834205269814, 0.16413767635822296, 0.0858190655708313, -0.15249550342559814, -0.04569428414106369, -0.07960116863250732, -0.04285157099366188, -0.09929294884204865, -0.06668190658092499, -0.05167528614401817, 0.08042572438716888, 0.04751760512590408, 0.03586063161492348, 0.03755676746368408, -0.11681802570819855, 0.12786848843097687, 0.20612841844558716, -0.0014824699610471725, 0.1529606580734253, -0.04425739124417305, 0.05705035477876663, 0.008342384360730648, -0.02117060497403145, 0.007806338369846344, 0.04013337939977646, 0.10436758399009705, -0.0020899297669529915, -0.13339020311832428, 0.1760258674621582, 0.05677575618028641, -0.048109520226716995, -0.06464039534330368, 0.10210149735212326, -0.0006159336771816015, -0.025066060945391655, -0.1646617352962494, 0.22616733610630035, -0.11858618259429932, 0.026972586289048195, -0.06379788368940353, -0.08288577198982239, -0.05394618585705757, -0.009134838357567787, 0.08587287366390228, -0.01984177529811859, 0.02178644947707653, 0.03960679844021797, -0.0432991124689579, -0.13418740034103394, 0.14490218460559845, -0.07872189581394196, -0.22158263623714447, -0.01539338193833828, 0.14265717566013336, -0.047154996544122696, 0.000790636520832777, -0.06258999556303024, 0.10228360444307327, 0.11274383962154388, -0.13434404134750366, -0.02270718477666378, -0.05982690304517746, -0.113833948969841, -0.2585159242153168, 0.063020259141922, 0.04875417798757553, -0.11719872802495956, -0.1417754739522934, -0.02602277882397175, 0.013894173316657543, -0.049190156161785126, 0.04390908032655716, 0.12733307480812073, 0.09064699709415436, -0.1186208501458168, -0.002571076387539506, -2.673856739133942e-32, -0.1101074144244194, -0.000549821590539068, 0.06788121908903122, -0.06961098313331604, -0.023073658347129822, 0.01851506531238556, 0.10330632328987122, -0.14448659121990204, -0.07314258813858032, -0.0795772522687912, 0.07938110083341599, -0.030318813398480415, 0.0064743077382445335, 0.24363526701927185, -0.08762010186910629, -0.013857736252248287, 0.0009000067366287112, -0.08995996415615082, -0.017803410068154335, 0.2531176805496216, 0.11387160420417786, -0.0006913379766047001, -0.006783571094274521, -0.014954944141209126, -0.07722547650337219, 0.04003637284040451, 0.07233746349811554, 0.12474861741065979, 0.2093108892440796, 0.010534770786762238, -0.0869903415441513, -0.005244919564574957, -0.07969144731760025, -0.09307621419429779, 0.05770762637257576, 0.16297607123851776, -0.21523533761501312, 0.04329388216137886, -0.028836434707045555, 0.055826038122177124, -0.10701128840446472, 0.06226962059736252, 0.07981237024068832, -0.10710592567920685, -0.02761181816458702, 0.09293077141046524, -0.0170365571975708, 0.0581875778734684, -0.12886781990528107, 0.12230455130338669, -0.20185932517051697, 0.04516126587986946, -0.08831772208213806, 0.12939395010471344, 0.18002575635910034, -0.15121455490589142, 0.05010402202606201, 0.09644021093845367, -0.20874695479869843, -0.10082078725099564, -0.02314501814544201, -0.09502459317445755, 0.03252821043133736, 0.13753433525562286, 0.019956842064857483, 0.09116459637880325, 0.14672774076461792, -0.025733305141329765, 0.24501679837703705, 0.30563539266586304, 0.12445040792226791, -0.10099033266305923, -0.0036129378713667393, -0.08382308483123779, -0.17809157073497772, -0.010427216999232769, -0.04174012690782547, -0.09050487726926804, 0.1372828185558319, -0.06339952349662781, -0.197515606880188, 0.08641541004180908, 0.05541436746716499, 0.15494395792484283, 0.07314253598451614, 0.10974516719579697, -0.02413913421332836, -0.046848297119140625, -0.21579763293266296, -0.08960705250501633, -0.10611285269260406, 0.21776078641414642, 0.09199410676956177, 0.09227047115564346, 0.07623200863599777, -0.017232326790690422, -0.09004484117031097, 0.18775324523448944, 0.1078004464507103, -0.06789404898881912, 0.07374310493469238, 0.04980183392763138, -0.01827685348689556, -0.02555277571082115, 0.09463686496019363, 0.08356832712888718, 0.10962849855422974, -0.0662732645869255, -0.1273251622915268, -0.04592900723218918, -0.0934128612279892, 0.05458604916930199, 0.15178725123405457, 0.032536935061216354, 0.1364383101463318, -0.045116622000932693, -0.028674131259322166, 0.06780808418989182, -0.03221597522497177, 0.12807489931583405, -0.0542733408510685, -0.011347091756761074, 0.05170833691954613, -0.11419662088155746, -0.13347114622592926, -0.017338881269097328, -0.0044663758017122746, -0.06924686580896378, -0.026273924857378006, -0.0946560800075531, -0.0019646689761430025, 0.08951734006404877, 7.404544248856837e-7, -0.011927093379199505, 0.07500229775905609, 0.19283580780029297, -0.0756106823682785, -0.024316800758242607, 0.14291831851005554, -0.15001560747623444, -0.019557442516088486, 0.14125514030456543, 0.09517818689346313, -0.07712478935718536, -0.07483050972223282, 0.03229166567325592, 0.01020507700741291, -0.03325461223721504, -0.06849222630262375, -0.1730484813451767, 0.0189056359231472, -0.1557096540927887, 0.11800745129585266, 0.08474883437156677, 0.0632517859339714, 0.08815568685531616, -0.116939976811409, 0.08340758085250854, 0.03633103147149086, -0.02359805442392826, 0.1963837444782257, -0.04332000017166138, 0.14713071286678314, 0.0020543676801025867, 0.011293614283204079, -0.13288483023643494, -0.04997900128364563, -0.09776926040649414, -0.09280509501695633, -0.018249254673719406, -0.11187215149402618, -0.04367141053080559, 0.057958535850048065, -0.02775014191865921, -0.14954207837581635, 0.07595190405845642, -0.26529884338378906, 0.21116282045841217, 0.07937894761562347, 0.03243936225771904, -0.09384475648403168, -0.24277251958847046, 0.09718533605337143, -0.04391639679670334, 0.059875454753637314, 0.07341090589761734, 0.2978869080543518, 0.07151515036821365, -0.05849406495690346, -0.20526093244552612, -0.0031410548835992813, 0.1399492770433426, 0.040576763451099396, -0.1225016787648201, -0.09782196581363678, 0.012732484377920628, 0.11068329960107803, -0.04033367708325386, -0.14859123528003693, -0.011562214232981205, 1.0270164425496003e-34, -0.042617492377758026, 0.08187325298786163, 0.19476483762264252, -0.054187189787626266, 0.06185455620288849, -0.030619816854596138, -0.021770751103758812, 0.08663207292556763, 0.09247694164514542, -0.1851041615009308, -0.19780857861042023 ]
https://github.com/huggingface/datasets/issues/2622
Integration with AugLy
Preprocessing functions/augmentations, unless super generic, should be defined in separate libraries, so I'm closing this issue.
**Is your feature request related to a problem? Please describe.** Facebook recently launched a library, [AugLy](https://github.com/facebookresearch/AugLy) , that has a unified API for augmentations for image, video and text. It would be pretty exciting to have it hooked up to HF libraries so that we can make NLP models robust to misspellings or to punctuation, or emojis etc. Plus, with Transformers supporting more CV use cases, having augmentations support becomes crucial. **Describe the solution you'd like** The biggest difference between augmentations and preprocessing is that preprocessing happens only once, but you are running augmentations once per epoch. AugLy operates on text directly, so this breaks the typical workflow where we would run the tokenizer once, set format to pt tensors and be ready for the Dataloader. **Describe alternatives you've considered** One possible way of implementing these is to make a custom Dataset class where getitem(i) runs the augmentation and the tokenizer every time, though this would slow training down considerably given we wouldn't even run the tokenizer in batches.
16
Integration with AugLy **Is your feature request related to a problem? Please describe.** Facebook recently launched a library, [AugLy](https://github.com/facebookresearch/AugLy) , that has a unified API for augmentations for image, video and text. It would be pretty exciting to have it hooked up to HF libraries so that we can make NLP models robust to misspellings or to punctuation, or emojis etc. Plus, with Transformers supporting more CV use cases, having augmentations support becomes crucial. **Describe the solution you'd like** The biggest difference between augmentations and preprocessing is that preprocessing happens only once, but you are running augmentations once per epoch. AugLy operates on text directly, so this breaks the typical workflow where we would run the tokenizer once, set format to pt tensors and be ready for the Dataloader. **Describe alternatives you've considered** One possible way of implementing these is to make a custom Dataset class where getitem(i) runs the augmentation and the tokenizer every time, though this would slow training down considerably given we wouldn't even run the tokenizer in batches. Preprocessing functions/augmentations, unless super generic, should be defined in separate libraries, so I'm closing this issue.
[ -0.0072370897978544235, 0.31535637378692627, 0.0059149740263819695, -0.03210676833987236, 0.13390859961509705, -0.005184534937143326, 0.1536673605442047, -0.1035081222653389, -0.0030705381650477648, 0.005869119428098202, 0.06343413144350052, -0.06054849922657013, -0.03189127892255783, 0.324392169713974, -0.012049705721437931, -0.09679562598466873, 0.00798935629427433, 0.14501237869262695, -0.011491824872791767, 0.09860321879386902, 0.059584058821201324, 0.04383593425154686, -0.018713613972067833, 0.09105715155601501, -0.02112652361392975, -0.08170239627361298, -0.05542706698179245, -0.09457012265920639, 0.03534641116857529, 0.07443348318338394, -0.14075316488742828, 0.12533941864967346, -0.0001954495528480038, 0.2666720747947693, 0.0000059972394410579, -0.1156337559223175, 0.033957190811634064, -0.01816682144999504, -0.05082595348358154, 0.026479704305529594, 0.3275204002857208, -0.14880751073360443, 0.040471840649843216, -0.09274981170892715, 0.04581207036972046, -0.12622475624084473, 0.04884367063641548, -0.013698689639568329, 0.33073920011520386, 0.014579958282411098, 0.01856299862265587, 0.07734018564224243, 0.11028097569942474, -0.02559361234307289, 0.045151837170124054, -0.009543412365019321, -0.03635869547724724, -0.046205099672079086, 0.14925695955753326, 0.028690021485090256, 0.11421405524015427, 0.20546500384807587, 0.13465262949466705, -0.08948852121829987, 0.26910799741744995, -0.13632827997207642, -0.08811379224061966, -0.07667730003595352, -0.05891404300928116, -0.060522884130477905, 0.23273198306560516, -0.08767390996217728, -0.06047969311475754, 0.042430978268384933, 0.04606113210320473, -0.10856693238019943, -0.24482640624046326, 0.0002613283577375114, 0.21198436617851257, 0.017677107825875282, -0.059651270508766174, -0.08849816769361496, -0.046317972242832184, -0.054778896272182465, 0.06239254027605057, 0.10286779701709747, 0.03474646061658859, 0.05706186220049858, 0.0366089828312397, -0.037057723850011826, 0.1157556027173996, -0.1297515630722046, 0.040529537945985794, 0.0502767451107502, -0.03324178233742714, -0.22907620668411255, -0.21895651519298553, -0.15279461443424225, 0.018249353393912315, -0.0353764146566391, -0.09633256494998932, 0.11250617355108261, -0.2141539305448532, 0.04364243149757385, 0.054686348885297775, -0.05017787590622902, -0.09934081882238388, -0.027215898036956787, -0.0031857104040682316, 0.005493973381817341, 0.126912921667099, 0.08534440398216248, 0.013519988395273685, 0.19570261240005493, 0.06956092268228531, -0.16422653198242188, -0.17625293135643005, 0.20403802394866943, -0.13790294528007507, 0.06338609009981155, 0.13688921928405762, 0.1494983583688736, -0.12213388085365295, -0.013836068101227283, -0.22841191291809082, -0.013505776412785053, 0.15798276662826538, -0.09943051636219025, -0.08140868693590164, -0.15827834606170654, 0.10839152336120605, 0.03343389183282852, 0.19288748502731323, 0.07029498368501663, -0.005319558084011078, 0.07426772266626358, -0.022079801186919212, -0.05341989919543266, 0.07351642102003098, 0.12807303667068481, 0.08589161932468414, 0.02514447644352913, -0.16967670619487762, -0.13012486696243286, 0.007260255049914122, 0.011814633384346962, 0.11852089315652847, 0.09847602248191833, -0.08281756937503815, -0.02323426678776741, -0.05424933135509491, 0.12849782407283783, -0.18793290853500366, 0.026446757838129997, 0.004151306580752134, -0.07392258197069168, -0.18836155533790588, -0.025243256241083145, -0.1949109435081482, 0.052344050258398056, 0.024377159774303436, -0.08053059875965118, 0.004383833147585392, -0.006078216712921858, -0.04168420657515526, -0.03675515577197075, -0.00012130594404879957, -0.0316910482943058, -0.1295802742242813, -0.0939631462097168, 0.014223355799913406, 0.04822564497590065, -0.025389719754457474, -0.03912726417183876, -0.02458750456571579, 0.03018149361014366, 0.03669566288590431, -0.08939187973737717, 0.1880006641149521, -0.014206101186573505, -0.04997837916016579, 0.01787175051867962, -0.09618567675352097, 0.10753876715898514, 0.06706222891807556, 0.1388332098722458, 0.05394909903407097, 0.18221746385097504, -0.06309623271226883, -0.04150625690817833, 0.16530422866344452, -0.022866304963827133, 0.03908437117934227, 0.030354946851730347, 0.19982436299324036, -0.17297513782978058, 0.04759785905480385, -0.1791212558746338, 0.0760805532336235, -0.14396558701992035, 0.09970315545797348, 0.02249646559357643, -0.2246304601430893, 0.09250339865684509, 0.0905461385846138, 0.03970583155751228, -0.07013142108917236, -0.0773564875125885, 0.14056673645973206, 0.11510910838842392, -0.12163756787776947, -0.048340458422899246, -0.009912179782986641, -0.076229989528656, 0.16202136874198914, -0.15459662675857544, 0.06331589072942734, -0.12680058181285858, 0.0001712907978799194, 0.12128318846225739, -0.05864313989877701, 0.11615754663944244, 0.04239148646593094, 0.13653157651424408, 0.19278788566589355, -0.07324059307575226, -0.12034996598958969, 0.15919214487075806, 0.005533552262932062, 0.04552169144153595, -0.1721021682024002, 0.04684305191040039, 0.056521810591220856, 0.09994161128997803, -0.10524241626262665, -0.032338764518499374, 0.0628882497549057, 0.13606327772140503, 0.10632127523422241, -0.08551286906003952, 0.039294492453336716, -0.20726676285266876, -0.03230670094490051, -0.004466623067855835, 0.11277410387992859, 0.037438664585351944, 0.13913394510746002, -0.053926415741443634, 0.08129749447107315, 0.028773855417966843, 0.06918000429868698, 0.1895647495985031, -0.09958796203136444, 0.03318877890706062, -0.046258069574832916, -0.28022414445877075, 0.13195116817951202, -0.01060469076037407, -0.08222727477550507, -0.16125653684139252, -0.06219656392931938, -0.09508254379034042, -0.012002294883131981, 0.03470708057284355, 0.06980792433023453, -0.02363128587603569, 0.13576236367225647, -0.20860904455184937, -0.004723744932562113, 0.09254207462072372, -0.10361264646053314, 0.015483423136174679, 0.1445152759552002, 0.02318524941802025, -0.12013217806816101, 0.06919288635253906, 0.05465640872716904, -0.041743356734514236, 0.06494210660457611, 0.05925564095377922, -0.10983958840370178, 0.07966059446334839, 0.11453855037689209, -0.01091255433857441, 0.12340593338012695, 0.08444823324680328, -0.054384615272283554, -0.2340179681777954, -0.0816187709569931, -0.28700512647628784, 0.03858689218759537, 0.08657470345497131, 0.06839367747306824, -0.08151557296514511, 0.02398032695055008, -0.04664068669080734, -0.09062144160270691, -0.023369451984763145, 0.04148375988006592, -0.03309338912367821, -0.15548712015151978, 0.10491619259119034, 0.0006200254429131746, -0.011737294495105743, 0.021861901506781578, 0.0376616045832634, 0.09864621609449387, 0.17291462421417236, -0.035671431571245193, -0.10414274036884308, -0.11913667619228363, 0.0706171914935112, -0.037167709320783615, -0.04503769800066948, -0.022720767185091972, -0.045054659247398376, -0.02294532209634781, -0.19268736243247986, 0.011657541617751122, 0.032740771770477295, 0.10251379013061523, -0.11893315613269806, 0.0645332857966423, -0.06911541521549225, -0.04972124099731445, 0.15389758348464966, -0.1706426441669464, -0.08622273802757263, -0.04104747623205185, 0.040327977389097214, -0.033674128353595734, 0.02798089198768139, -0.19273000955581665, -0.030774051323533058, 0.23929300904273987, 0.019902149215340614, 0.004311659839004278, 0.05782093107700348, 0.051607586443424225, 0.106989286839962, 0.05551020801067352, -0.13637405633926392, -0.1650490015745163, 0.07592803239822388, -0.012449848465621471, -0.08944756537675858, 0.007322531193494797, -0.18891535699367523, -0.09071537107229233, -0.09953716397285461, -0.2055138647556305, 0.04682124778628349, -0.10122544318437576, 0.08188699930906296, 0.04448232427239418, 0.07381244003772736, -0.046775273978710175, -0.030556591227650642, -0.2204914540052414, -0.039576489478349686, -0.13366712629795074, -0.0548178106546402, 0.16204151511192322, -0.19494780898094177, -0.1718815714120865, 0.004806895274668932, 0.22759060561656952, -0.039933785796165466, 0.1012272834777832, -0.008450167253613472, -0.02244606800377369, -0.0916142389178276, -0.017183449119329453, 0.02706276625394821, 0.11426948755979538, -0.14669199287891388, -0.037713754922151566, 0.08197958022356033, 0.07146190851926804, 0.004011317156255245, -0.008168946951627731, -0.31507158279418945, 0.009098834358155727, 0.026572298258543015, -0.017484473064541817, 0.018410664051771164, 0.04750494658946991, 0.12066040933132172, -0.041161470115184784, 0.11925375461578369, 0.033570241183042526, -0.008663191460072994, 0.15008248388767242, -0.01761036179959774, 0.09298870712518692, -0.152218297123909, -0.011942659504711628, 0.0562753863632679, 0.025462953373789787, 0.009019073098897934, 0.018140209838747978, 0.032312776893377304, -0.007964838296175003, -0.2289259433746338, -0.13253602385520935, -0.03133406490087509, -0.01770704984664917, 0.02333993837237358, -0.004237825982272625, -0.20872963964939117, 0.09067177027463913, 0.24238404631614685, -0.14243938028812408, -0.18976730108261108, -0.03964589536190033, -0.10209342837333679, -0.04657954350113869, -0.02188032492995262, 0.2691712975502014, 0.08882888406515121, -0.04805682599544525, -0.0939646065235138, 0.14053206145763397, 0.1352604776620865, 0.13929595053195953, -0.2541349232196808, 0.017810452729463577, -0.015459023416042328, 0.04774054139852524, 0.012572761625051498, -0.16161535680294037, -0.07090184837579727, 0.03776063397526741, -0.042806461453437805, -0.09060059487819672, -0.008156862109899521, 0.043165866285562515, -0.027499591931700706, -0.17648090422153473, -0.09219975769519806, 0.021350719034671783, 0.03244228661060333, 0.1062333956360817, -0.07876913249492645, -0.026768194511532784, -0.026820465922355652, 0.07346547394990921, 0.042329393327236176, 0.060856472700834274, 0.07153146713972092, -0.05198266729712486, -0.11632093042135239, -0.08919979631900787, -0.04455089941620827, 0.0016476564342156053, 0.01824602484703064, -0.0590609610080719, -0.17480123043060303, -0.09688153862953186, 0.206292062997818, 0.13278509676456451, -0.014363735914230347, 0.08835649490356445, -0.09731726348400116, -0.14704735577106476, -0.0039496892131865025, 0.22385604679584503, -0.18561995029449463, -0.07770688831806183, -0.09615202248096466, 0.04171266779303551, 0.13526584208011627, 0.10612937808036804, 0.04195323958992958, 0.028548147529363632, -0.012070932425558567, 0.13878564536571503, -0.014591001905500889, -0.08494579046964645, -0.023040395230054855, 0.1501317173242569, 0.15386167168617249, -0.12745095789432526, -0.015208614990115166, -0.0854862853884697, -0.06074952334165573, -0.06953924149274826, -0.07062684744596481, -0.0558934286236763, 0.058982569724321365, 0.07337489724159241, 0.0994027853012085, 0.03582370653748512, -0.14578452706336975, 0.13641934096813202, 0.26072606444358826, 0.00025256312801502645, 0.15998148918151855, -0.06621740013360977, 0.013622188940644264, -0.0035408902913331985, -0.031542420387268066, 0.02339184284210205, -0.033434391021728516, 0.09106272459030151, -0.002314552664756775, -0.1528114527463913, 0.17412717640399933, 0.0512242317199707, -0.04428504779934883, -0.06582799553871155, 0.10210293531417847, -0.001515461248345673, -0.010996637865900993, -0.2134736180305481, 0.2150029093027115, -0.09238585829734802, -0.0037299233954399824, -0.04766799136996269, -0.11173409223556519, -0.025145769119262695, 0.011039645411074162, 0.05411160737276077, -0.019549058750271797, 0.007530648726969957, 0.07590547949075699, -0.03189610689878464, -0.1277933120727539, 0.07180226594209671, -0.06591908633708954, -0.23036575317382812, 0.00340746040455997, 0.13095766305923462, -0.0699458196759224, -0.0069475420750677586, -0.06846032291650772, 0.05513770133256912, 0.13137757778167725, -0.11633123457431793, 0.01408351119607687, -0.08874908834695816, -0.08046925067901611, -0.27188098430633545, 0.05065567046403885, 0.08139219880104065, -0.06673312187194824, -0.15411289036273956, -0.03917542099952698, 0.0035172777716070414, -0.044665995985269547, -0.013553101569414139, 0.0798817053437233, 0.05760945752263069, -0.11309123039245605, -0.007037689909338951, -2.672491990192637e-32, -0.10299153625965118, -0.02584695629775524, 0.0783470943570137, -0.05242117494344711, -0.09030131995677948, 0.05229973793029785, 0.13037702441215515, -0.15269653499126434, -0.11345010250806808, -0.10168663412332535, 0.1221267580986023, -0.0395846888422966, 0.02007855288684368, 0.28025802969932556, -0.04842611402273178, 0.018320666626095772, 0.010048380121588707, -0.05181199312210083, 0.0006147827371023595, 0.2016495168209076, 0.018354101106524467, -0.02845272421836853, -0.03492360562086105, -0.02208547666668892, -0.08918498456478119, 0.02149471454322338, 0.07726752758026123, 0.12784932553768158, 0.225712388753891, 0.006635542027652264, -0.056285325437784195, -0.005893738009035587, -0.042912013828754425, -0.08175058662891388, 0.07267048209905624, 0.1282176673412323, -0.17982669174671173, 0.06635556370019913, -0.02256075106561184, 0.06344127655029297, -0.10241054743528366, 0.06672463566064835, 0.05364644527435303, -0.11094746738672256, -0.024839157238602638, 0.08461017906665802, 0.0022965252865105867, 0.05790140479803085, -0.1499473601579666, 0.17624948918819427, -0.18969431519508362, 0.03012961708009243, -0.07579955458641052, 0.10219453275203705, 0.1653585284948349, -0.13422097265720367, 0.030048003420233727, 0.035034243017435074, -0.20168229937553406, -0.08543521165847778, -0.027423309162259102, -0.12758728861808777, 0.011965020559728146, 0.14859768748283386, 0.01612340472638607, 0.12194547802209854, 0.12170014530420303, -0.09240583330392838, 0.1347968578338623, 0.29232898354530334, 0.12505728006362915, -0.12171907722949982, -0.00377154303714633, -0.06418770551681519, -0.09911150485277176, -0.04847856983542442, -0.005337453447282314, -0.08793817460536957, 0.09908397495746613, -0.01568485237658024, -0.19423401355743408, 0.06286738812923431, 0.04159189760684967, 0.15659530460834503, 0.0612214170396328, 0.1002320647239685, -0.0471334233880043, -0.07683397829532623, -0.20365707576274872, -0.09045274555683136, -0.07588928937911987, 0.2219029814004898, 0.0546468049287796, 0.07983048260211945, 0.09189349412918091, -0.07376925647258759, -0.04966777190566063, 0.21211977303028107, 0.09560085833072662, -0.06895583868026733, 0.07850068807601929, 0.04873225837945938, -0.04282916337251663, -0.016359761357307434, 0.0389191098511219, 0.09886746108531952, 0.1001737043261528, -0.09746737778186798, -0.10499454289674759, -0.026556702330708504, -0.12071486562490463, 0.08607672154903412, 0.13890844583511353, 0.03539406880736351, 0.13396595418453217, -0.07514891773462296, -0.03193992003798485, 0.03319603204727173, -0.0385100282728672, 0.11216623336076736, -0.07655175775289536, 0.01653306744992733, 0.11002977937459946, -0.09438305348157883, -0.08367757499217987, 0.01856398582458496, -0.004702471662312746, -0.05374111235141754, -0.06996127963066101, -0.10126565396785736, 0.02542872354388237, 0.08116314560174942, 7.60108491704159e-7, -0.011446656659245491, 0.09269992262125015, 0.16008342802524567, -0.08261127769947052, -0.027899188920855522, 0.1015147939324379, -0.14341439306735992, -0.04716132953763008, 0.10720258206129074, 0.09298057854175568, -0.06156755983829498, -0.08565688878297806, 0.06645379960536957, 0.03561445325613022, -0.002143686171621084, -0.06753117591142654, -0.16662026941776276, -0.04786910116672516, -0.15941642224788666, 0.11818049103021622, 0.1382613182067871, 0.04545052722096443, 0.07602011412382126, -0.09676975756883621, 0.08183923363685608, 0.04236599802970886, -0.04114552214741707, 0.19582802057266235, -0.029235754162073135, 0.14745934307575226, -0.06127754971385002, 0.04098788648843765, -0.08259137719869614, -0.08731881529092789, -0.10221521556377411, -0.09987834095954895, 0.02162148430943489, -0.11094367504119873, -0.033234853297472, 0.02363692969083786, -0.06749230623245239, -0.14105840027332306, 0.0684811994433403, -0.2183317244052887, 0.21087229251861572, -0.010681205429136753, 0.03884681686758995, -0.11893250048160553, -0.23589502274990082, 0.11043417453765869, -0.03365907818078995, 0.08016657829284668, 0.05616934224963188, 0.29139578342437744, 0.0832953006029129, -0.07979349792003632, -0.19666603207588196, 0.043982893228530884, 0.12386439740657806, 0.10082309693098068, -0.11215498298406601, -0.058928973972797394, 0.004099060315638781, 0.04866567254066467, -0.06875213980674744, -0.15274740755558014, -0.039711128920316696, 7.049047599107034e-35, -0.006839296780526638, 0.06794370710849762, 0.211890310049057, -0.03734659031033516, 0.040117211639881134, 0.00029049834120087326, 0.05475688353180885, 0.07923372089862823, 0.05431147664785385, -0.14040130376815796, -0.1516374796628952 ]
https://github.com/huggingface/datasets/issues/2618
`filelock.py` Error
Hi @liyucheng09, thanks for reporting. Apparently this issue has to do with your environment setup. One question: is your data in an NFS share? Some people have reported this error when using `fcntl` to write to an NFS share... If this is the case, then it might be that your NFS just may not be set up to provide file locks. You should ask your system administrator, or try these commands in the terminal: ```shell sudo systemctl enable rpc-statd sudo systemctl start rpc-statd ```
## Describe the bug It seems that the `filelock.py` went error. ``` >>> ds=load_dataset('xsum') ^CTraceback (most recent call last): File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB) OSError: [Errno 37] No locks available ``` According to error log, it is OSError, but there is an `except` in the `_acquire` function. ``` def _acquire(self): open_mode = os.O_WRONLY | os.O_CREAT | os.O_EXCL | os.O_TRUNC try: fd = os.open(self._lock_file, open_mode) except (IOError, OSError): pass else: self._lock_file_fd = fd return None ``` I don't know why it stucked rather than `pass` directly. I am not quite familiar with filelock operation, so any help is highly appriciated. ## Steps to reproduce the bug ```python ds = load_dataset('xsum') ``` ## Expected results A clear and concise description of the expected results. ## Actual results ``` >>> ds=load_dataset('xsum') ^CTraceback (most recent call last): File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB) OSError: [Errno 37] No locks available During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/load.py", line 818, in load_dataset use_auth_token=use_auth_token, File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/load.py", line 470, in prepare_module with FileLock(lock_path): File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 323, in __enter__ self.acquire() File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 272, in acquire self._acquire() File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB) KeyboardInterrupt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-135-generic-x86_64-with-debian-buster-sid - Python version: 3.6.13 - PyArrow version: 4.0.1
84
`filelock.py` Error ## Describe the bug It seems that the `filelock.py` went error. ``` >>> ds=load_dataset('xsum') ^CTraceback (most recent call last): File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB) OSError: [Errno 37] No locks available ``` According to error log, it is OSError, but there is an `except` in the `_acquire` function. ``` def _acquire(self): open_mode = os.O_WRONLY | os.O_CREAT | os.O_EXCL | os.O_TRUNC try: fd = os.open(self._lock_file, open_mode) except (IOError, OSError): pass else: self._lock_file_fd = fd return None ``` I don't know why it stucked rather than `pass` directly. I am not quite familiar with filelock operation, so any help is highly appriciated. ## Steps to reproduce the bug ```python ds = load_dataset('xsum') ``` ## Expected results A clear and concise description of the expected results. ## Actual results ``` >>> ds=load_dataset('xsum') ^CTraceback (most recent call last): File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB) OSError: [Errno 37] No locks available During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/load.py", line 818, in load_dataset use_auth_token=use_auth_token, File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/load.py", line 470, in prepare_module with FileLock(lock_path): File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 323, in __enter__ self.acquire() File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 272, in acquire self._acquire() File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB) KeyboardInterrupt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-135-generic-x86_64-with-debian-buster-sid - Python version: 3.6.13 - PyArrow version: 4.0.1 Hi @liyucheng09, thanks for reporting. Apparently this issue has to do with your environment setup. One question: is your data in an NFS share? Some people have reported this error when using `fcntl` to write to an NFS share... If this is the case, then it might be that your NFS just may not be set up to provide file locks. You should ask your system administrator, or try these commands in the terminal: ```shell sudo systemctl enable rpc-statd sudo systemctl start rpc-statd ```
[ 0.10970892757177353, 0.11054044216871262, -0.03993380069732666, 0.05645254626870155, 0.16931569576263428, -0.006713914219290018, 0.12253416329622269, -0.029485410079360008, 0.12259873002767563, 0.004515018314123154, -0.15775765478610992, -0.16012440621852875, -0.06286650151014328, 0.021224122494459152, -0.16915157437324524, 0.07950019836425781, -0.05762075260281563, -0.009801818989217281, -0.018649347126483917, 0.0856386348605156, -0.1297633796930313, 0.16301442682743073, 0.030864201486110687, -0.06972412019968033, -0.04843013733625412, -0.1397026777267456, -0.0380842462182045, 0.13218051195144653, -0.13188596069812775, -0.12808816134929657, 0.027611330151557922, 0.05643584579229355, 0.06591741740703583, 0.24568356573581696, 0.000005030975444242358, -0.11544826626777649, 0.07174912095069885, 0.06835786253213882, -0.07367554306983948, 0.07231782376766205, 0.07347311824560165, -0.04234309494495392, -0.03167370706796646, -0.2087419480085373, -0.007446437608450651, -0.15447701513767242, -0.07011584937572479, 0.017645379528403282, 0.2027304619550705, 0.10267655551433563, 0.03405410796403885, 0.09675754606723785, 0.17399941384792328, -0.168606698513031, -0.07465368509292603, -0.26547080278396606, 0.01018573623150587, 0.10535816848278046, -0.05769563838839531, -0.16680964827537537, -0.029086215421557426, 0.0826011598110199, 0.014321315102279186, -0.20102573931217194, -0.06424319744110107, 0.03638197481632233, 0.055219992995262146, -0.22351498901844025, -0.06868501007556915, 0.19667723774909973, -0.013542525470256805, 0.1324230283498764, -0.19038048386573792, -0.011268611997365952, 0.05466074496507645, -0.06720703095197678, -0.056838180869817734, 0.09876448661088943, -0.03996666520833969, 0.13707885146141052, -0.01782265491783619, 0.08983542025089264, 0.11590045690536499, -0.09563951939344406, -0.03585008159279823, -0.008690805174410343, -0.09981619566679001, 0.015764063224196434, 0.10145564377307892, -0.07014619559049606, 0.03929441422224045, 0.010707885026931763, -0.012422190979123116, -0.13518399000167847, 0.07855730503797531, -0.07091416418552399, -0.012311840429902077, -0.08447922766208649, -0.029020296409726143, -0.06967466324567795, -0.26413023471832275, -0.15575602650642395, 0.05685015022754669, 0.17954617738723755, 0.07500918209552765, -0.025980377569794655, -0.021653886884450912, -0.06523580849170685, 0.0767187550663948, 0.16076242923736572, -0.00033191675902344286, 0.11372766643762589, -0.15066532790660858, -0.10922188311815262, 0.1981789618730545, 0.018341630697250366, 0.2812526524066925, 0.10607423633337021, 0.05989990755915642, 0.24545304477214813, -0.11161749064922333, 0.027589229866862297, -0.016835806891322136, 0.12215478718280792, 0.06258862465620041, -0.14708420634269714, 0.19551414251327515, 0.11069342494010925, -0.05052759498357773, 0.024222619831562042, 0.003123616799712181, 0.02314034104347229, 0.0022111886646598577, -0.08589141070842743, 0.08183614909648895, 0.019905274733901024, -0.06074592471122742, 0.026274671778082848, 0.028455190360546112, -0.04488452896475792, 0.07487339526414871, -0.15919922292232513, -0.151516392827034, 0.0152216712012887, -0.07850133627653122, 0.1417422592639923, 0.27941831946372986, -0.16174837946891785, 0.059991415590047836, 0.07198400050401688, -0.23095200955867767, 0.03125538304448128, -0.18411189317703247, 0.028525711968541145, -0.09972722083330154, 0.10237116366624832, 0.18438869714736938, -0.057554472237825394, -0.16359978914260864, -0.09347483515739441, 0.1961820274591446, -0.1206362396478653, 0.03977045789361, -0.11536379903554916, 0.07534615695476532, 0.16060705482959747, 0.16511797904968262, 0.13661791384220123, 0.08261824399232864, -0.1970510333776474, 0.1558975875377655, 0.08939817547798157, -0.014402337372303009, -0.07508402317762375, -0.08393202722072601, 0.15779456496238708, -0.19842647016048431, 0.04164287820458412, -0.28669530153274536, 0.016249045729637146, 0.06624124944210052, 0.03656814619898796, 0.10177867114543915, 0.08534026890993118, 0.11870236694812775, -0.09316962212324142, -0.0335119366645813, -0.08710897713899612, -0.028196249157190323, -0.18501056730747223, 0.016283687204122543, 0.17460809648036957, -0.10445889830589294, -0.019110549241304398, 0.0852774977684021, -0.2163279950618744, 0.031830575317144394, -0.0237518809735775, 0.15099571645259857, -0.16136622428894043, 0.0363067165017128, -0.09888593852519989, 0.017109503969550133, -0.022119805216789246, 0.04584139585494995, 0.008092203177511692, -0.10641492903232574, 0.039586588740348816, -0.1601460725069046, -0.016773421317338943, -0.0073322453536093235, 0.0481007844209671, -0.06438115984201431, -0.04574543982744217, 0.02119533158838749, -0.02899238094687462, -0.030461568385362625, -0.04869415983557701, -0.2240600436925888, 0.21167954802513123, -0.009459012188017368, 0.29771459102630615, -0.053066037595272064, -0.029943911358714104, 0.08847974985837936, -0.00792423915117979, -0.04343334585428238, -0.040847234427928925, -0.013871148228645325, 0.0899878442287445, -0.16359497606754303, -0.08879747986793518, 0.0662783607840538, 0.10845398902893066, 0.18677745759487152, -0.16410720348358154, -0.09664343297481537, -0.07136332988739014, -0.016561826691031456, 0.1270252913236618, -0.2419598549604416, 0.05588468909263611, -0.05157226696610451, -0.06846705824136734, 0.0727538987994194, -0.08579356968402863, 0.03779347985982895, -0.12548914551734924, -0.1300663948059082, 0.059352174401283264, 0.2231667935848236, 0.02175077237188816, -0.19293083250522614, 0.06180880218744278, 0.004170659929513931, 0.07041523605585098, -0.07588545978069305, 0.18401755392551422, -0.1441955864429474, -0.09677176922559738, 0.20625662803649902, -0.06233496963977814, 0.11616359651088715, -0.021674619987607002, 0.10961000621318817, 0.009382774122059345, 0.037147156894207, 0.2344149500131607, 0.15460529923439026, 0.02454611286520958, -0.0705871656537056, -0.010845096781849861, -0.03582754731178284, -0.1782776415348053, 0.0668540745973587, 0.11758781969547272, -0.009754686616361141, 0.06376444548368454, -0.0814427062869072, -0.04616682976484299, 0.07678083330392838, -0.25498682260513306, 0.11151360720396042, -0.01918790116906166, 0.17511263489723206, 0.07367461919784546, -0.0871165469288826, -0.07016643136739731, -0.06609021127223969, 0.08381906896829605, 0.15637026727199554, -0.03679409623146057, 0.0015544741181656718, -0.020149698480963707, -0.10358293354511261, -0.12795278429985046, -0.18765538930892944, -0.10661333799362183, -0.07875572890043259, 0.06030067056417465, 0.12735101580619812, -0.06262128055095673, 0.10099492222070694, -0.047811657190322876, 0.14551302790641785, -0.0004911955911666155, 0.21133224666118622, 0.2363094985485077, 0.02217426337301731, -0.20999497175216675, 0.12716057896614075, -0.12243122607469559, 0.053304363042116165, 0.17936500906944275, 0.14714178442955017, -0.037794023752212524, -0.1305466741323471, -0.035948120057582855, 0.053657885640859604, 0.0704551637172699, -0.11375793069601059, 0.016428206115961075, -0.11215601861476898, 0.10244045406579971, -0.1780720353126526, 0.06577957421541214, -0.3804965317249298, -0.1461121141910553, -0.039227619767189026, -0.046331532299518585, -0.0339677669107914, 0.16295039653778076, -0.22874538600444794, -0.018095318228006363, 0.011881961487233639, -0.11760769039392471, -0.07443659007549286, -0.045422930270433426, 0.2140614092350006, 0.005720993038266897, -0.06653545051813126, -0.08962654322385788, -0.11095916479825974, -0.10896338522434235, -0.0021364835556596518, 0.023815670982003212, -0.013801902532577515, -0.11394400894641876, 0.05065762251615524, -0.26409366726875305, -0.008367224596440792, 0.012789919041097164, -0.02820769138634205, -0.14196543395519257, -0.029218604788184166, 0.23934921622276306, -0.10811305046081543, -0.026082534343004227, -0.1032034382224083, 0.07277864962816238, 0.09593595564365387, 0.12760251760482788, 0.10016648471355438, 0.04978777840733528, 0.09326997399330139, 0.15537896752357483, 0.09494303166866302, -0.024282973259687424, -0.09431635588407516, -0.07752392441034317, -0.11243299394845963, -0.0021838191896677017, -0.19866333901882172, 0.007874570786952972, 0.11170836538076401, 0.09058786928653717, -0.019982945173978806, -0.16872195899486542, 0.12084454298019409, -0.050854310393333435, -0.011307716369628906, 0.0982469692826271, -0.1099715605378151, 0.011925192549824715, 0.22871840000152588, 0.152516171336174, 0.1716460883617401, -0.012347031384706497, 0.21087965369224548, 0.08511798828840256, 0.14352945983409882, 0.06577803939580917, 0.0033093297388404608, -0.1079779788851738, 0.0650944709777832, -0.16069117188453674, 0.05074906349182129, 0.22993791103363037, 0.016166379675269127, -0.0017233005492016673, -0.11605729907751083, 0.15138645470142365, 0.2276589572429657, 0.2630721926689148, -0.009460292756557465, -0.06739587336778641, 0.12700650095939636, -0.08544925600290298, 0.034740470349788666, -0.09456292539834976, 0.22096697986125946, 0.07755748182535172, -0.05394037440419197, -0.08378790318965912, -0.005925009958446026, 0.10584501177072525, -0.05921561270952225, -0.19475212693214417, -0.057075727730989456, -0.052277423441410065, -0.3123326599597931, -0.05932508409023285, 0.050542812794446945, 0.19997981190681458, 0.04695871099829674, -0.01028099562972784, 0.060292042791843414, -0.08697743713855743, 0.12848016619682312, 0.06651342660188675, -0.050887104123830795, -0.09302590042352676, 0.1161433681845665, -0.06904666125774384, -0.06318649649620056, -0.04612409695982933, 0.28365063667297363, -0.0843343660235405, 0.049369364976882935, 0.14038318395614624, -0.2136133313179016, -0.16814108192920685, -0.06440234929323196, -0.07829662412405014, 0.025863850489258766, -0.03918934613466263, -0.05224264785647392, 0.012685462832450867, -0.05560385808348656, 0.05167625844478607, -0.09909263253211975, -0.08194850385189056, 0.11863340437412262, -0.2690889537334442, 0.07239580899477005, -0.03884493187069893, 0.3500916361808777, -0.019215408712625504, 0.004675339441746473, 0.22719386219978333, 0.0048706610687077045, -0.07162623107433319, -0.13164426386356354, 0.08535709232091904, 0.15137898921966553, -0.033053286373615265, 0.09153944998979568, -0.10275731235742569, -0.021611705422401428, -0.0012661281507462263, -0.1549675017595291, 0.1539239138364792, -0.0981653556227684, 0.09570492058992386, -0.026534641161561012, 0.09833867102861404, -0.15617994964122772, -0.12335757911205292, -0.29642078280448914, -0.04934346303343773, 0.16956691443920135, -0.1401434987783432, 0.20146146416664124, -0.03163713589310646, -0.000745088211260736, 0.23345190286636353, 0.043730590492486954, -0.10111328214406967, -0.1370987594127655, -0.11535192281007767, 0.1861131638288498, -0.07584530115127563, -0.08616763353347778, 0.1580359786748886, 0.18303994834423065, 0.020990222692489624, 0.027142398059368134, 0.06770554184913635, -0.005817815661430359, 0.04436151310801506, 0.1672026365995407, -0.13525862991809845, 0.03196316584944725, -0.07373752444982529, -0.037140145897865295, -0.05813251808285713, 0.10640447586774826, 0.11714696884155273, -0.08574055880308151, -0.10022541880607605, -0.07907082885503769, 0.11505968868732452, -0.21879491209983826, -0.036195263266563416, 0.015681548044085503, -0.0855121985077858, 0.11745814234018326, -0.11530200392007828, -0.11833256483078003, -0.06299354135990143, 0.049637507647275925, -0.09991830587387085, 0.161521777510643, -0.03230886906385422, 0.051663853228092194, -0.08230452239513397, -0.10138607025146484, 0.026340549811720848, 0.10868168622255325, 0.0919938012957573, -0.09258287400007248, 0.28548702597618103, 0.2856227457523346, -0.05868107080459595, -0.24010507762432098, 0.15775883197784424, 0.07805301249027252, -0.1731700450181961, 0.05310355871915817, 0.08846177160739899, 0.09186287969350815, -0.10609246045351028, 0.07445887476205826, 0.1068895012140274, 0.1562674194574356, 0.16742411255836487, -0.2722053527832031, -0.11957109719514847, -0.15063385665416718, -0.15624915063381195, 0.004652051255106926, 0.12391828000545502, 0.055400725454092026, -0.10455118119716644, -0.11581264436244965, -2.3421598574491365e-32, 0.022510914131999016, -0.09676551818847656, -0.08652966469526291, 0.09748204797506332, -0.2143477201461792, -0.006914379075169563, -0.031742312014102936, 0.14696039259433746, -0.014575238339602947, -0.020764369517564774, -0.016558773815631866, -0.06326605379581451, 0.06612702459096909, 0.026452520862221718, -0.13231557607650757, 0.08721821010112762, -0.22473937273025513, 0.07580473273992538, 0.0540875680744648, -0.060273703187704086, 0.18279898166656494, 0.059271905571222305, 0.08892327547073364, 0.037740763276815414, -0.04086814820766449, -0.017111822962760925, -0.020255673676729202, -0.11049807816743851, -0.06625579297542572, -0.04408750310540199, 0.03346141800284386, -0.05834390968084335, 0.07097913324832916, -0.1912730485200882, -0.06391121447086334, 0.07544100284576416, -0.021780844777822495, 0.04468714818358421, -0.02089773118495941, 0.13138484954833984, 0.15538102388381958, 0.14784744381904602, -0.0363328754901886, -0.12541396915912628, -0.006086310371756554, 0.03921189159154892, -0.006096653640270233, -0.03334479033946991, 0.069180428981781, -0.10133354365825653, 0.08481483906507492, 0.0684458315372467, -0.12143083661794662, 0.005399285349994898, 0.03706420958042145, -0.19780784845352173, -0.05409425124526024, -0.06156618520617485, -0.010154039599001408, -0.058601219207048416, 0.01771596446633339, -0.01851874403655529, 0.0285366028547287, -0.02779785357415676, -0.09287454932928085, 0.16753637790679932, 0.10299862176179886, -0.14067049324512482, 0.026098165661096573, -0.026361601427197456, -0.028353143483400345, 0.1567613035440445, -0.07122105360031128, 0.006807709578424692, -0.2036130726337433, -0.041394319385290146, -0.256346732378006, -0.08070408552885056, -0.043801769614219666, -0.025579646229743958, 0.16613703966140747, 0.043415367603302, 0.09459181129932404, 0.108942911028862, -0.0724603608250618, 0.16821475327014923, -0.0424959622323513, 0.1466546207666397, -0.04872802644968033, -0.08033613860607147, 0.07672365754842758, 0.05387432873249054, -0.0005458318046294153, -0.07012950628995895, -0.09277258068323135, -0.08187553286552429, 0.04698595404624939, -0.01566769927740097, -0.1659490317106247, -0.11204303056001663, 0.011478953994810581, 0.04782143607735634, 0.14691162109375, -0.008903847075998783, 0.05610814318060875, -0.008515777066349983, 0.057510022073984146, -0.033695682883262634, -0.06818565726280212, 0.035822704434394836, -0.054639432579278946, 0.04916828125715256, 0.21266765892505646, 0.0671687051653862, 0.12252674996852875, -0.004573263227939606, -0.10449963808059692, -0.12170923501253128, 0.21816334128379822, 0.06722711026668549, -0.08667019009590149, -0.009967525489628315, -0.07281524688005447, -0.015570018440485, 0.042229074984788895, 0.029953258112072945, -0.12164536118507385, -0.23100019991397858, -0.03333302587270737, 0.0425340011715889, 0.09605327248573303, -0.05768295004963875, 7.256141998368548e-7, -0.18163901567459106, -0.006086638197302818, -0.017355578020215034, 0.08196880668401718, -0.15526381134986877, 0.1291196346282959, -0.34530919790267944, 0.028892522677779198, 0.07203774899244308, 0.006227666512131691, 0.07213437557220459, -0.021842077374458313, 0.0369022898375988, -0.0470367893576622, 0.13283878564834595, -0.011256936006247997, 0.04673025384545326, 0.17425931990146637, 0.032657042145729065, -0.12042677402496338, 0.08476152271032333, -0.07823824137449265, 0.09484554827213287, -0.04839671030640602, 0.1146778017282486, -0.08461382240056992, -0.0699775442481041, -0.04642964527010918, 0.001770145376212895, 0.021178368479013443, 0.026090571656823158, 0.06260505318641663, 0.01405398827046156, 0.04917793720960617, -0.09582027792930603, -0.16803757846355438, -0.0939008891582489, -0.03783508017659187, 0.15863768756389618, -0.12759308516979218, -0.022776255384087563, -0.015149138867855072, -0.06990618258714676, 0.00864450354129076, 0.11443066596984863, 0.23307549953460693, -0.11953321099281311, -0.015143665485084057, -0.11643854528665543, 0.15793922543525696, 0.11091456562280655, 0.18135806918144226, 0.09038347005844116, 0.11545826494693756, 0.012546983547508717, 0.1902163177728653, -0.09110382944345474, -0.04020531475543976, 0.07490865141153336, -0.014046607539057732, -0.12166538089513779, -0.017244350165128708, 0.10533259809017181, -0.09153637290000916, 0.10225869715213776, -0.04488680139183998, -0.006180771626532078, -1.0581929863740555e-34, 0.1266304850578308, -0.009469189681112766, 0.08168885856866837, -0.04219977185130119, -0.09095746278762817, -0.05388833209872246, 0.07256366312503815, -0.04988449439406395, 0.10430470108985901, -0.1591659039258957, 0.000980666489340365 ]
https://github.com/huggingface/datasets/issues/2615
Jsonlines export error
For some reason this happens (both `datasets` version are on master) only on Python 3.6 and not Python 3.8.
## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1
19
Jsonlines export error ## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1 For some reason this happens (both `datasets` version are on master) only on Python 3.6 and not Python 3.8.
[ -0.014940332621335983, 0.19272340834140778, -0.06507563591003418, 0.1002538874745369, 0.2372627556324005, -0.049206074327230453, 0.04321248084306717, 0.0008616189006716013, -0.12533527612686157, 0.05706837773323059, 0.09382451325654984, -0.07377570867538452, -0.0878966748714447, 0.006674632895737886, -0.04388817027211189, -0.17750070989131927, -0.005985569208860397, -0.09540190547704697, 0.06732291728258133, 0.08871712535619736, -0.08991079032421112, 0.08741610497236252, 0.05557642877101898, -0.1557282954454422, -0.04882100969552994, -0.047299642115831375, -0.06565972417593002, -0.09717249870300293, 0.014238561503589153, -0.33339327573776245, -0.026892978698015213, -0.12024486064910889, -0.012266409583389759, 0.2913845181465149, 0.000006008933269185945, -0.01075572706758976, 0.08702636510133743, 0.08283534646034241, -0.10767722129821777, -0.030114728957414627, 0.030413582921028137, -0.04591498523950577, 0.07440491020679474, 0.004363300744444132, 0.03390113636851311, -0.11033143848180771, -0.05169711634516716, -0.045632753521203995, 0.08236254006624222, 0.0803915336728096, -0.007152121979743242, 0.009813960641622543, 0.05547932907938957, -0.16619616746902466, 0.08984921127557755, -0.008324126712977886, 0.07873709499835968, 0.1208561509847641, -0.07200846076011658, 0.042964834719896317, 0.03999624773859978, -0.09705610573291779, 0.057864315807819366, -0.06786064803600311, -0.22021348774433136, -0.07053219527006149, -0.06887389719486237, -0.11737340688705444, 0.004317742306739092, 0.31984034180641174, -0.04510175436735153, 0.13290612399578094, 0.007061154115945101, -0.022111879661679268, 0.020806411281228065, -0.325748473405838, 0.07542458176612854, 0.17074266076087952, -0.11903060227632523, -0.028621427714824677, -0.290846049785614, 0.10671736299991608, -0.09193381667137146, -0.1525939404964447, -0.08572586625814438, -0.11942940205335617, -0.1809675693511963, 0.15585435926914215, 0.04255101457238197, -0.08344440907239914, -0.02295762486755848, 0.0456152968108654, -0.18029212951660156, -0.14366687834262848, 0.08944972604513168, -0.10543181002140045, -0.004340110346674919, -0.2135208398103714, 0.08174602687358856, 0.02969481237232685, -0.06853991746902466, -0.07822523266077042, -0.05367092788219452, 0.08522024750709534, 0.09987322986125946, -0.04835542291402817, -0.05881524085998535, 0.02363765612244606, 0.08795717358589172, 0.05147488787770271, -0.003032366279512644, 0.10915199667215347, -0.015144940465688705, -0.03563773259520531, 0.005963488016277552, 0.05225792154669762, 0.13056138157844543, 0.18923023343086243, 0.10666090250015259, -0.07651425898075104, -0.005720518063753843, -0.10935557633638382, -0.15508773922920227, -0.06582273542881012, -0.051629871129989624, 0.041571639478206635, 0.06285861879587173, 0.05842278525233269, -0.1095154732465744, 0.046303968876600266, 0.07866081595420837, -0.0025396912824362516, 0.15919284522533417, 0.01031135581433773, -0.03860250860452652, -0.1046258881688118, 0.061122264713048935, 0.059187620878219604, 0.11369062960147858, -0.13775640726089478, -0.10059787333011627, -0.10185319930315018, -0.12236647307872772, 0.13565053045749664, 0.14587649703025818, -0.022618912160396576, 0.03803949058055878, 0.04679260775446892, 0.02916453219950199, 0.006376137491315603, -0.2456056922674179, 0.13919447362422943, -0.17811308801174164, -0.018927060067653656, -0.1700686514377594, 0.0074566383846104145, -0.08447972685098648, -0.2230021357536316, -0.09231936931610107, -0.022569462656974792, -0.047164447605609894, 0.1258225440979004, 0.012049808166921139, -0.17688973248004913, 0.030819736421108246, -0.07240494340658188, -0.09814736992120743, 0.021382641047239304, 0.035192396491765976, 0.010629127733409405, 0.3363810181617737, 0.10884657502174377, -0.0159137099981308, 0.14875677227973938, 0.01980588212609291, 0.06203969940543175, -0.07454244047403336, 0.04580216482281685, -0.126248300075531, 0.09874779731035233, 0.04674945026636124, -0.11455347388982773, -0.09300785511732101, -0.20559802651405334, 0.16773882508277893, 0.06884317100048065, 0.12598711252212524, 0.08567251265048981, 0.10003473609685898, -0.11370468884706497, 0.1179998517036438, 0.0268874354660511, -0.11809003353118896, -0.13316166400909424, -0.06900365650653839, -0.38643547892570496, -0.0068190149031579494, -0.24520620703697205, 0.13876499235630035, -0.15901611745357513, 0.015017352066934109, 0.1469239890575409, -0.00004842029375140555, 0.1365562379360199, -0.15844500064849854, 0.06419243663549423, -0.13240839540958405, -0.1150478646159172, 0.19388079643249512, -0.04106086120009422, -0.02559719793498516, 0.025444068014621735, 0.046518001705408096, 0.15970927476882935, -0.08969935029745102, -0.044293954968452454, 0.0012098968727514148, 0.08509717136621475, -0.25155147910118103, 0.034823328256607056, -0.10460635274648666, 0.025598635897040367, 0.048496805131435394, 0.10836278647184372, -0.07587818056344986, 0.07504778355360031, -0.14488394558429718, 0.039457742124795914, 0.0885927826166153, -0.007320540025830269, -0.04327155277132988, -0.059197574853897095, 0.03416774794459343, -0.09446045756340027, -0.03735183924436569, 0.0009582964703440666, -0.009752932004630566, -0.10271810740232468, 0.12381675094366074, 0.08489474654197693, -0.09757783263921738, 0.07907545566558838, -0.166628897190094, -0.030718311667442322, -0.08892373740673065, 0.06919010728597641, -0.008751164190471172, 0.2489839494228363, -0.034844983369112015, -0.12270215898752213, 0.1623985320329666, 0.1472989320755005, -0.15337541699409485, -0.09083777666091919, -0.09521810710430145, -0.06086776778101921, -0.12358414381742477, -0.013470490463078022, -0.046281103044748306, -0.10579440742731094, 0.2920090854167938, 0.17247134447097778, -0.022737158462405205, 0.09203184396028519, 0.08182194828987122, 0.07048757374286652, 0.09933013468980789, -0.025691067799925804, 0.06078119948506355, 0.15553240478038788, -0.028299124911427498, 0.01831081509590149, -0.023033402860164642, -0.042225562036037445, -0.10221782326698303, 0.06034977361559868, -0.07921788096427917, -0.04294074326753616, -0.0026480539236217737, 0.09422048181295395, -0.15305393934249878, -0.11645258218050003, -0.021537235006690025, -0.05593760684132576, 0.042425043880939484, -0.02187752164900303, -0.056399691849946976, -0.09240663051605225, -0.028425296768546104, -0.04669712483882904, 0.0750170424580574, 0.11842601001262665, -0.059426888823509216, -0.07265400141477585, -0.17602118849754333, 0.06374235451221466, 0.07089997082948685, -0.23021072149276733, 0.03717506676912308, -0.17581047117710114, 0.0004695966199506074, 0.03482573851943016, 0.12119126319885254, 0.12746623158454895, -0.07690562307834625, -0.011773902922868729, 0.06621429324150085, 0.1657845675945282, -0.03300051391124725, -0.15077869594097137, 0.08713122457265854, 0.008174024522304535, 0.05695221573114395, 0.04775743559002876, 0.06767483800649643, 0.14233946800231934, -0.06674199551343918, -0.1734243482351303, 0.025421230122447014, 0.08964161574840546, -0.09177135676145554, 0.12672191858291626, -0.0500989705324173, -0.08756657689809799, 0.028193924576044083, 0.04741353541612625, -0.026857584714889526, -0.1327434778213501, -0.03135976940393448, 0.12102890014648438, -0.028597921133041382, 0.12085891515016556, -0.07227113842964172, -0.019198725000023842, 0.03183611109852791, -0.1132316142320633, -0.13724230229854584, -0.09204021841287613, 0.1330484300851822, -0.010387858375906944, 0.07826125621795654, -0.11546152085065842, -0.032404251396656036, -0.08066212385892868, -0.04103600233793259, -0.1076187938451767, 0.08184242993593216, -0.11603915691375732, 0.07069461792707443, -0.06993748247623444, 0.015257477760314941, 0.023491796106100082, 0.0290544331073761, -0.06254992634057999, -0.1681930422782898, 0.04610581323504448, -0.10235585272312164, 0.017537366598844528, -0.0225891824811697, -0.03430066630244255, 0.177866593003273, -0.18798047304153442, -0.0764501541852951, 0.21859696507453918, -0.06871291249990463, 0.05844339728355408, -0.0055115120485424995, -0.006378239952027798, -0.11138706654310226, -0.0632404312491417, -0.055286575108766556, -0.20518575608730316, 0.01452415157109499, 0.13392353057861328, -0.04647202044725418, 0.036532893776893616, 0.013187861070036888, 0.0256040096282959, 0.10716357082128525, -0.11268965899944305, 0.053168293088674545, 0.03247237205505371, -0.005996135529130697, 0.050579674541950226, 0.23052309453487396, 0.12177877128124237, 0.0888243094086647, -0.037424709647893906, -0.12191695719957352, 0.14186662435531616, 0.12841960787773132, -0.06436198204755783, -0.13770903646945953, -0.15795603394508362, -0.10138366371393204, -0.29587164521217346, 0.37742123007774353, 0.03782481700181961, 0.0036845628637820482, 0.05420069023966789, 0.11054437607526779, 0.19263549149036407, -0.13671040534973145, 0.07068827748298645, 0.18170545995235443, 0.12849412858486176, 0.08478207886219025, 0.010111559182405472, 0.07852227240800858, -0.07743200659751892, 0.16432534158229828, 0.052291322499513626, 0.010696925222873688, 0.24075938761234283, 0.2702530324459076, 0.10152281075716019, -0.0227418914437294, 0.02148377150297165, 0.07666219770908356, -0.22047297656536102, -0.0018884690944105387, -0.08896907418966293, 0.05528261139988899, 0.20384661853313446, 0.025627542287111282, -0.008590715005993843, 0.06297148764133453, -0.10310052335262299, 0.06723827123641968, 0.014780164696276188, -0.03351076319813728, -0.12023219466209412, 0.023473523557186127, -0.1004532054066658, -0.04056936502456665, -0.05097285658121109, 0.14187803864479065, -0.06799986958503723, 0.006408820394426584, 0.020669855177402496, -0.056809961795806885, -0.042546432465314865, 0.022973375394940376, -0.10276978462934494, 0.09034405648708344, 0.04186830297112465, -0.006822634022682905, 0.12895262241363525, 0.08582014590501785, -0.01774420589208603, -0.22142846882343292, -0.27724024653434753, 0.005709787830710411, -0.12262911349534988, 0.1748526692390442, -0.006840426940470934, 0.03933671861886978, -0.2528187334537506, -0.006983524654060602, 0.22547294199466705, -0.08139556646347046, -0.0976531133055687, 0.03448201343417168, 0.10973665118217468, 0.06774745136499405, 0.07646192610263824, 0.22447927296161652, -0.2244633287191391, -0.11585985124111176, 0.019203299656510353, 0.13045631349086761, 0.16695451736450195, -0.008866533637046814, -0.001114574959501624, 0.028391709551215172, 0.06861110776662827, -0.07437494397163391, -0.021057983860373497, -0.08479487150907516, 0.06134308502078056, 0.18121200799942017, 0.00450214883312583, 0.06077953055500984, -0.2025880068540573, -0.14926210045814514, 0.07300905138254166, -0.12957406044006348, -0.05595555528998375, -0.048517122864723206, 0.027293825522065163, -0.005122715141624212, -0.1099674180150032, 0.06014842540025711, 0.0014842115342617035, 0.2883143126964569, 0.09799326211214066, -0.05629078671336174, 0.11293216049671173, -0.11875235289335251, 0.0360080823302269, 0.12858366966247559, -0.09407486021518707, -0.01273322943598032, -0.055417418479919434, -0.16628573834896088, 0.02539670653641224, -0.0419858917593956, 0.15723946690559387, 0.042590148746967316, -0.16692756116390228, -0.07108656316995621, 0.1292700171470642, -0.07513434439897537, -0.10080575197935104, -0.021466832607984543, 0.00861995667219162, 0.003985123708844185, 0.0059539759531617165, 0.10972987860441208, 0.13633260130882263, -0.011520009487867355, -0.15303471684455872, -0.03498728200793266, -0.07006949186325073, 0.10469596832990646, -0.043539222329854965, 0.00942396093159914, -0.02541981264948845, 0.1461014449596405, 0.3045257031917572, 0.009932132437825203, 0.12517568469047546, 0.1828276664018631, -0.19673942029476166, 0.015085970982909203, 0.1882125288248062, 0.2322736233472824, -0.074567511677742, 0.03384825959801674, 0.0645613819360733, 0.07064919918775558, 0.035675596445798874, -0.0336715504527092, -0.022311201319098473, 0.1262509971857071, 0.15907253324985504, 0.052616965025663376, -0.06687430292367935, -0.1452665776014328, -0.05743171274662018, 0.053742799907922745, 0.1416216343641281, 0.21509447693824768, 0.033937837928533554, -0.1950526088476181, -2.1591264238816813e-32, -0.1362488865852356, -0.016233744099736214, -0.04643406346440315, 0.032885607331991196, -0.29829052090644836, 0.09499650448560715, 0.013515089638531208, -0.10295062512159348, -0.019845064729452133, 0.0014646720374003053, 0.060726605355739594, -0.1598810851573944, 0.01912645995616913, 0.09329251945018768, 0.03441367670893669, 0.03237725421786308, 0.2041194587945938, -0.01683342643082142, 0.08646204322576523, 0.1631699949502945, 0.005562270525842905, 0.064262755215168, -0.005614131223410368, 0.07395327091217041, 0.007167255971580744, 0.13709138333797455, -0.0715394839644432, -0.02890218049287796, 0.20604468882083893, -0.11632800847291946, -0.12295230478048325, -0.007476096972823143, 0.06668871641159058, -0.04211081191897392, -0.1878928542137146, -0.044839344918727875, -0.05264013633131981, -0.132937490940094, -0.15017645061016083, 0.09381748735904694, 0.03129548951983452, 0.07962150871753693, 0.06494422256946564, -0.19852635264396667, 0.17882280051708221, -0.008586798794567585, 0.11963250488042831, -0.045029930770397186, -0.17814306914806366, 0.05569111555814743, 0.08596261590719223, -0.025086721405386925, -0.23210899531841278, 0.07758946716785431, 0.04495007172226906, -0.13538745045661926, -0.0021726905833929777, 0.046171918511390686, -0.06988038122653961, -0.11655590683221817, 0.010184027254581451, 0.008896417915821075, 0.016365254297852516, -0.05533044785261154, 0.111933134496212, 0.14661478996276855, 0.19724883139133453, 0.14763468503952026, 0.11726850271224976, 0.12729820609092712, -0.12878140807151794, -0.119369737803936, -0.14998473227024078, 0.061670154333114624, -0.06732819229364395, 0.02134675718843937, -0.0613686703145504, -0.03518233448266983, 0.01935715042054653, -0.030646858736872673, 0.05130358040332794, 0.1229257732629776, -0.14080265164375305, 0.036033499985933304, -0.07467580586671829, -0.054161228239536285, 0.04973548278212547, 0.005668238271027803, 0.02324286475777626, -0.22982321679592133, 0.031247586011886597, -0.028267836198210716, 0.03287896141409874, -0.024715878069400787, -0.0972684770822525, 0.05541407689452171, -0.1897767037153244, -0.04193444922566414, -0.10426440834999084, -0.13850349187850952, -0.07847794890403748, 0.05600609630346298, -0.16226857900619507, -0.02682856097817421, 0.2327709048986435, 0.05581029877066612, 0.21201913058757782, -0.1286240518093109, -0.19633659720420837, 0.03817177563905716, -0.04664238169789314, 0.01191781461238861, 0.13147717714309692, 0.18399858474731445, 0.1964799463748932, -0.0678398609161377, -0.034879885613918304, 0.1202823743224144, 0.08235997706651688, 0.1079726591706276, -0.02118181623518467, 0.13903827965259552, -0.023024573922157288, -0.024349791929125786, 0.010635479353368282, -0.024831004440784454, -0.06449482589960098, 0.014836021699011326, 0.1110137477517128, -0.08082552254199982, -0.022176461294293404, -0.030213847756385803, 7.252414775393845e-7, -0.19858627021312714, 0.039404578506946564, 0.040528204292058945, 0.06846129894256592, 0.00950026698410511, 0.06985984742641449, 0.009403392672538757, -0.14723916351795197, -0.0852644145488739, 0.2889043092727661, 0.09933287650346756, 0.0031433759722858667, -0.07016756385564804, 0.03466068580746651, 0.16602526605129242, 0.09928270429372787, -0.08224239945411682, 0.03621907904744148, -0.19424456357955933, 0.005255658179521561, 0.18148058652877808, -0.046407490968704224, 0.1186283752322197, 0.09874071925878525, -0.017209790647029877, -0.10943502187728882, -0.2100672572851181, -0.07013966143131256, -0.006564836483448744, 0.13190671801567078, -0.05815162882208824, 0.049149587750434875, -0.0834103599190712, 0.10983110219240189, 0.04455527663230896, -0.03245409578084946, -0.15939787030220032, -0.04667497053742409, 0.0997338742017746, 0.15241597592830658, 0.20186825096607208, 0.10646171122789383, -0.0728447213768959, -0.05178636685013771, 0.15526148676872253, 0.07523509860038757, -0.07623107731342316, 0.01906653121113777, -0.023437853902578354, 0.06823254376649857, 0.019585110247135162, 0.20660093426704407, 0.2086622714996338, 0.05931929871439934, -0.04812263324856758, -0.04715345799922943, 0.061546627432107925, -0.030394911766052246, -0.03447559475898743, -0.07078162580728531, -0.05264781787991524, -0.09545407444238663, 0.06820142269134521, 0.08025753498077393, 0.00829498004168272, -0.09192337840795517, 0.0010309854988008738, 1.458085259058629e-34, -0.009471545927226543, -0.07382342219352722, 0.1056593507528305, -0.3035701811313629, 0.05425366759300232, 0.0424373522400856, 0.2539931833744049, -0.06942932307720184, -0.07686962187290192, -0.16791142523288727, -0.07861379534006119 ]
https://github.com/huggingface/datasets/issues/2615
Jsonlines export error
@TevenLeScao we are using `pandas` to serialize the dataset to JSON Lines. So it must be due to pandas. Could you please check the pandas version causing the issue?
## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1
29
Jsonlines export error ## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1 @TevenLeScao we are using `pandas` to serialize the dataset to JSON Lines. So it must be due to pandas. Could you please check the pandas version causing the issue?
[ -0.029130151495337486, 0.1905192732810974, -0.055252306163311005, 0.09658652544021606, 0.2396322786808014, -0.05758735164999962, 0.02478862553834915, 0.001707139308564365, -0.11322217434644699, 0.06918352842330933, 0.10980948060750961, -0.07427022606134415, -0.057202842086553574, 0.027382967993617058, -0.05784511938691139, -0.18926028907299042, -0.008492037653923035, -0.06535204499959946, 0.057371802628040314, 0.09993061423301697, -0.09094052761793137, 0.04728733003139496, 0.05785167217254639, -0.12038755416870117, -0.04585747420787811, -0.07820480316877365, -0.09154181182384491, -0.12031664699316025, 0.025004252791404724, -0.33244216442108154, 0.0048369416035711765, -0.09126880019903183, -0.007857942022383213, 0.29073604941368103, 0.000006112873506936012, -0.05161037668585777, 0.08527227491140366, 0.07889352738857269, -0.07574153691530228, -0.011586638167500496, 0.033768199384212494, -0.07061408460140228, 0.07784979790449142, 0.010756248608231544, 0.03764698654413223, -0.1418159306049347, -0.057145919650793076, -0.012790230102837086, 0.07773963361978531, 0.06786668300628662, 0.0003742717963177711, -0.020974965766072273, 0.08075759559869766, -0.16754372417926788, 0.05365445464849472, -0.023882199078798294, 0.08853670954704285, 0.11788980662822723, -0.09157250821590424, 0.03319178894162178, 0.03967421129345894, -0.10952673852443695, 0.04554685205221176, -0.07926736027002335, -0.23763945698738098, -0.07609356939792633, -0.021704988554120064, -0.12022978067398071, 0.019327213987708092, 0.30951669812202454, -0.03624064475297928, 0.1236296072602272, -0.005920009687542915, -0.01352238841354847, 0.006348114926367998, -0.31211724877357483, 0.0696733146905899, 0.14625588059425354, -0.09036742150783539, -0.0461781844496727, -0.2538268268108368, 0.10422586649656296, -0.08920013904571533, -0.14125637710094452, -0.07950154691934586, -0.11922241747379303, -0.1817995011806488, 0.14486092329025269, 0.023840811103582382, -0.09525031596422195, -0.03276975825428963, 0.027945280075073242, -0.17549589276313782, -0.12432558089494705, 0.08516352623701096, -0.11215060949325562, 0.005142314359545708, -0.22338221967220306, 0.09763093292713165, 0.02917853370308876, -0.07632655650377274, -0.07050726562738419, -0.056131187826395035, 0.06883261352777481, 0.10321301966905594, -0.03729433938860893, -0.06429531425237656, 0.014489305205643177, 0.09112458676099777, 0.048384953290224075, -0.00025685253785923123, 0.12823402881622314, -0.026531361043453217, -0.03808125853538513, -0.014366132207214832, 0.05819361284375191, 0.11909100413322449, 0.190815731883049, 0.10631111264228821, -0.0642140582203865, 0.0023698259610682726, -0.10832031816244125, -0.1315118372440338, -0.08004671335220337, -0.06941277533769608, 0.07534230500459671, 0.059126827865839005, 0.056188445538282394, -0.1057705283164978, 0.06535670161247253, 0.07432806491851807, 0.0063692922703921795, 0.18250772356987, 0.014440739527344704, -0.06245946139097214, -0.132058784365654, 0.05993613973259926, 0.05841139703989029, 0.10719439387321472, -0.12126078456640244, -0.12129035592079163, -0.12439227104187012, -0.13805928826332092, 0.1635385900735855, 0.13210590183734894, -0.012760472483932972, 0.04530023783445358, 0.055123236030340195, 0.03372042253613472, -0.01139077078551054, -0.2210380584001541, 0.15062740445137024, -0.16180497407913208, -0.01828802190721035, -0.17273938655853271, -0.0034778639674186707, -0.09639664739370346, -0.2366839200258255, -0.09390652924776077, 0.001986699178814888, -0.05072043836116791, 0.1520790308713913, 0.00130172586068511, -0.1942036747932434, 0.003672197461128235, -0.07197554409503937, -0.11282157152891159, 0.036610186100006104, 0.04269549995660782, 0.009892523288726807, 0.3337831497192383, 0.10093643516302109, -0.011257397010922432, 0.1473732590675354, 0.03316209465265274, 0.03901582583785057, -0.08159136027097702, 0.03267199546098709, -0.1242246925830841, 0.10574338585138321, 0.04468837380409241, -0.10444134473800659, -0.042058005928993225, -0.19383008778095245, 0.1700018048286438, 0.08896143734455109, 0.11044040322303772, 0.07674667984247208, 0.10002850741147995, -0.11246401071548462, 0.11831380426883698, -0.02236984670162201, -0.09970927983522415, -0.1382165104150772, -0.07250013947486877, -0.36413389444351196, 0.009735356085002422, -0.24076418578624725, 0.1384013444185257, -0.1294761449098587, -0.013194099999964237, 0.14462068676948547, 0.014644725248217583, 0.14790913462638855, -0.14941099286079407, 0.06945961713790894, -0.10723835229873657, -0.14065994322299957, 0.18123137950897217, -0.042942605912685394, -0.0008960264385677874, 0.011546310037374496, 0.045856259763240814, 0.152204230427742, -0.10650673508644104, -0.059162382036447525, 0.0028716777451336384, 0.06782306730747223, -0.23718716204166412, 0.04187338054180145, -0.10750427842140198, 0.04180013760924339, 0.03613891452550888, 0.10843010991811752, -0.07558808475732803, 0.05320567265152931, -0.15828901529312134, 0.050783682614564896, 0.09352555871009827, -0.0053801569156348705, -0.034161392599344254, -0.05913964658975601, 0.04609339311718941, -0.06694348156452179, -0.049752023071050644, 0.004463037010282278, 0.03344537317752838, -0.09288052469491959, 0.1247192844748497, 0.09557226300239563, -0.12082865089178085, 0.07740401476621628, -0.1620682179927826, -0.019566675648093224, -0.07425602525472641, 0.08673260360956192, -0.06371080875396729, 0.20049548149108887, -0.025103334337472916, -0.12598146498203278, 0.19086985290050507, 0.16158191859722137, -0.1567377746105194, -0.09479064494371414, -0.08927087485790253, -0.07222548127174377, -0.12639319896697998, 0.005218432750552893, -0.058495473116636276, -0.11295337229967117, 0.2800472676753998, 0.16127362847328186, -0.004329415038228035, 0.06530903279781342, 0.06208905950188637, 0.05951292812824249, 0.09429332613945007, -0.03209894895553589, 0.06507187336683273, 0.16853629052639008, -0.051994118839502335, -0.0017423873068764806, -0.031193340197205544, -0.047869257628917694, -0.12531384825706482, 0.09120303392410278, -0.08044963330030441, -0.05597037449479103, -0.019760282710194588, 0.12542825937271118, -0.16397057473659515, -0.09957730025053024, -0.007152344100177288, -0.022080209106206894, 0.051671501249074936, -0.028814690187573433, -0.060367412865161896, -0.11154530197381973, -0.02802080474793911, -0.034149497747421265, 0.08765386044979095, 0.14284877479076385, -0.06359700858592987, -0.07356284558773041, -0.1619432270526886, 0.07998955249786377, 0.05011259764432907, -0.19660943746566772, 0.0668676346540451, -0.15565800666809082, -0.012872724793851376, 0.024503692984580994, 0.13439486920833588, 0.12644897401332855, -0.09723647683858871, -0.015600190497934818, 0.07168994843959808, 0.1860327124595642, -0.0120078194886446, -0.1509924829006195, 0.092965267598629, -0.006944776512682438, 0.06156718358397484, 0.018279677256941795, 0.045415833592414856, 0.16163091361522675, -0.06745115667581558, -0.16798721253871918, 0.01061156764626503, 0.0652599185705185, -0.07445403933525085, 0.1171862855553627, -0.06975974142551422, -0.08225710690021515, 0.022573988884687424, 0.04656638950109482, -0.015900779515504837, -0.12287911772727966, -0.026006143540143967, 0.12684492766857147, -0.03496069833636284, 0.1461012065410614, -0.06084192544221878, -0.003294281894341111, 0.04772743582725525, -0.11145957559347153, -0.14664264023303986, -0.09806140512228012, 0.10399644821882248, -0.013843894936144352, 0.055496785789728165, -0.11810937523841858, -0.03192012384533882, -0.09202062338590622, -0.058777134865522385, -0.10287455469369888, 0.0709870308637619, -0.11660713702440262, 0.053835730999708176, -0.06039496511220932, -0.0016495396848767996, 0.02966185286641121, 0.04255117103457451, -0.06726676225662231, -0.17414718866348267, 0.02959209494292736, -0.07566017657518387, 0.04330103471875191, -0.028330760076642036, -0.039446599781513214, 0.17894247174263, -0.20100276172161102, -0.12360428273677826, 0.2169131636619568, -0.07043585926294327, 0.04638912156224251, -0.02552836947143078, -0.024213742464780807, -0.12294534593820572, -0.06097636744379997, -0.0645890012383461, -0.20161022245883942, 0.04145407676696777, 0.15693159401416779, -0.06185479834675789, 0.03242410346865654, 0.012973801232874393, 0.03486166149377823, 0.09813875705003738, -0.10556711256504059, 0.02406660094857216, 0.012615954503417015, -0.023031065240502357, 0.058840882033109665, 0.20185486972332, 0.12276681512594223, 0.1014971062541008, -0.020061688497662544, -0.09841472655534744, 0.14488640427589417, 0.11890523135662079, -0.030591458082199097, -0.139418363571167, -0.16963961720466614, -0.11537342518568039, -0.2872186303138733, 0.40494805574417114, 0.035550691187381744, 0.0364057719707489, 0.07197757065296173, 0.13059310615062714, 0.20112986862659454, -0.14342129230499268, 0.036161553114652634, 0.16154925525188446, 0.1192469596862793, 0.07894112169742584, 0.03423885628581047, 0.08169625699520111, -0.0700908899307251, 0.13532979786396027, 0.056892164051532745, 0.035744644701480865, 0.23199574649333954, 0.2849911153316498, 0.10269571840763092, -0.03383296728134155, 0.028654003515839577, 0.0882871076464653, -0.21745994687080383, 0.016880443319678307, -0.05839836224913597, 0.03640126809477806, 0.19340676069259644, 0.01010439358651638, 0.0005875453352928162, 0.03396152704954147, -0.14007724821567535, 0.08490340411663055, 0.026883773505687714, -0.03059600107371807, -0.12076102942228317, 0.01953035034239292, -0.09067767858505249, -0.04328262060880661, -0.03239040449261665, 0.11021510511636734, -0.08294893801212311, 0.018684517592191696, 0.01256599836051464, -0.06105416640639305, -0.06842399388551712, 0.011741138994693756, -0.10754518955945969, 0.09992770850658417, 0.0523504875600338, -0.013367775827646255, 0.12112095952033997, 0.07977510243654251, -0.026801401749253273, -0.209064781665802, -0.2747578024864197, 0.014298618771135807, -0.12354294955730438, 0.1775142401456833, -0.008814836852252483, 0.02995098941028118, -0.22527243196964264, 0.006580609828233719, 0.21843881905078888, -0.10235706716775894, -0.1007673591375351, -0.0018242865335196257, 0.10045255720615387, 0.06765815615653992, 0.056778717786073685, 0.23349343240261078, -0.21304276585578918, -0.136710524559021, -0.015240415930747986, 0.11929783970117569, 0.14867421984672546, -0.004658824298530817, 0.029627911746501923, 0.0028184689581394196, 0.05318209156394005, -0.07746165990829468, 0.01080387644469738, -0.0993703156709671, 0.08244823664426804, 0.20047403872013092, 0.000023951753973960876, 0.054699961096048355, -0.25257569551467896, -0.1389855593442917, 0.10142827779054642, -0.14108382165431976, -0.05066489055752754, -0.01893887296319008, 0.02890458144247532, 0.0018730891169980168, -0.1095263808965683, 0.04688452556729317, 0.035115327686071396, 0.2941244840621948, 0.08236359059810638, -0.022507037967443466, 0.10626981407403946, -0.11035525053739548, 0.07192143052816391, 0.1208634227514267, -0.10171957314014435, -0.0027383859269320965, -0.07926619797945023, -0.17389868199825287, 0.04498724639415741, -0.03496663272380829, 0.16121791303157806, 0.0342269241809845, -0.1492244005203247, -0.057940784841775894, 0.1432352215051651, -0.04436321556568146, -0.0943286344408989, -0.024444861337542534, -0.001274492242373526, 0.025481078773736954, -0.007055037654936314, 0.10161633044481277, 0.12667754292488098, -0.014670835807919502, -0.16560526192188263, -0.03315682336688042, -0.0502619706094265, 0.09881147742271423, -0.07150546461343765, 0.011391643434762955, -0.04475657641887665, 0.13499858975410461, 0.32492196559906006, 0.020203398540616035, 0.12090528011322021, 0.16929933428764343, -0.23452427983283997, 0.026395026594400406, 0.1803513616323471, 0.22515302896499634, -0.04549243301153183, 0.010029489174485207, 0.08086852729320526, 0.07638049125671387, 0.029014768078923225, -0.025530802085995674, -0.014539792202413082, 0.13955150544643402, 0.15609806776046753, 0.040575895458459854, -0.0811799168586731, -0.1483481526374817, -0.04431108757853508, 0.05965026840567589, 0.15538348257541656, 0.24083054065704346, 0.04758031666278839, -0.2032473087310791, -2.1509436607688135e-32, -0.13125818967819214, -0.014624327421188354, -0.04631440341472626, 0.022050438448786736, -0.2776411771774292, 0.08074211329221725, 0.0024672402068972588, -0.09565360844135284, -0.012274404987692833, 0.026747364550828934, 0.07493184506893158, -0.17378604412078857, -0.0018253354355692863, 0.11516045778989792, 0.017649468034505844, 0.04248872399330139, 0.1826992630958557, -0.02825736626982689, 0.11133942753076553, 0.12066883593797684, 0.02156548760831356, 0.05870106443762779, -0.02256854437291622, 0.10781105607748032, 0.002893951488658786, 0.13327789306640625, -0.0721159353852272, -0.035586632788181305, 0.20199105143547058, -0.12309535592794418, -0.10899515450000763, -0.034593161195516586, 0.0792263001203537, 0.0020069654565304518, -0.1834241896867752, -0.05389565974473953, -0.07440251111984253, -0.1286259889602661, -0.15692777931690216, 0.10895859450101852, 0.03811130300164223, 0.07344737648963928, 0.08310961723327637, -0.19302833080291748, 0.15265634655952454, -0.013493560254573822, 0.1013643741607666, -0.08651868999004364, -0.1985728144645691, 0.06096452847123146, 0.06358888000249863, -0.03897910565137863, -0.21054843068122864, 0.08502352237701416, 0.034795936197042465, -0.10879215598106384, -0.009748917073011398, 0.042744193226099014, -0.07166672497987747, -0.11221914738416672, 0.027501562610268593, 0.0334029458463192, 0.008205444552004337, -0.05934307351708412, 0.14446231722831726, 0.11418537050485611, 0.18939341604709625, 0.12513335049152374, 0.09961598366498947, 0.13008174300193787, -0.11151603609323502, -0.129397451877594, -0.1382104456424713, 0.05764165148139, -0.060278408229351044, -0.0015441571595147252, -0.07057542353868484, -0.028128312900662422, 0.05808473750948906, -0.0543239526450634, 0.06440389156341553, 0.12427491694688797, -0.14463892579078674, 0.05882873758673668, -0.09302985668182373, -0.044941600412130356, 0.03928789496421814, 0.013477172702550888, 0.03707019239664078, -0.21787160634994507, 0.04881306737661362, -0.06462220102548599, 0.012264030054211617, -0.05863022059202194, -0.10319014638662338, 0.051909953355789185, -0.18920063972473145, -0.04260880872607231, -0.07907813787460327, -0.1499033123254776, -0.09711578488349915, 0.0676693469285965, -0.14891910552978516, -0.022592637687921524, 0.21725833415985107, 0.05611659586429596, 0.23703284561634064, -0.11690572649240494, -0.17533373832702637, 0.03980058804154396, -0.035816218703985214, 0.005422915332019329, 0.14803706109523773, 0.19009749591350555, 0.15226726233959198, -0.07938273251056671, -0.037818778306245804, 0.11328687518835068, 0.07588876783847809, 0.12442013621330261, -0.021181855350732803, 0.14223307371139526, -0.0029405062086880207, -0.0340440459549427, 0.03481629863381386, -0.029891103506088257, -0.04314477741718292, 0.04323648288846016, 0.07712551206350327, -0.08083649724721909, -0.020588183775544167, -0.013322426937520504, 7.249961981870001e-7, -0.1963265985250473, 0.03587638959288597, 0.03307356312870979, 0.0775488093495369, 0.052495528012514114, 0.0892471969127655, -0.006732529029250145, -0.1579166054725647, -0.07272572815418243, 0.2788482904434204, 0.09371727705001831, -0.004401982296258211, -0.06971415132284164, 0.001272481633350253, 0.16859444975852966, 0.10090533643960953, -0.0609198622405529, 0.03577350825071335, -0.17811891436576843, 0.00864917691797018, 0.1599961668252945, -0.04808274284005165, 0.11250507086515427, 0.11036927998065948, 0.01754898577928543, -0.09742315858602524, -0.1932622790336609, -0.04435928910970688, -0.005921414587646723, 0.12489496916532516, -0.07338344305753708, 0.020582515746355057, -0.0746551975607872, 0.08842094987630844, 0.04181905835866928, -0.028716184198856354, -0.16827791929244995, -0.038270045071840286, 0.08903411775827408, 0.14743201434612274, 0.20907776057720184, 0.09234156459569931, -0.0817331001162529, -0.0660567581653595, 0.17436854541301727, 0.08739849925041199, -0.0808536484837532, 0.01614098623394966, -0.018275553360581398, 0.09503195434808731, 0.03378553315997124, 0.21250490844249725, 0.20400963723659515, 0.05951541289687157, -0.04300827533006668, -0.03455700725317001, 0.06821280717849731, -0.0063492301851511, -0.05783588066697121, -0.08672337234020233, -0.050452034920454025, -0.09438405930995941, 0.028702199459075928, 0.08180729299783707, 0.02091705985367298, -0.05766654014587402, -0.003987915813922882, 1.3485470934837426e-34, -0.02180100418627262, -0.06539499759674072, 0.08143112063407898, -0.3102845549583435, 0.06347997486591339, 0.03224291652441025, 0.2301812618970871, -0.06245917081832886, -0.07524042576551437, -0.14299365878105164, -0.05410006269812584 ]
https://github.com/huggingface/datasets/issues/2615
Jsonlines export error
@TevenLeScao I have just checked it: this was a bug in `pandas` and it was fixed in version 1.2: https://github.com/pandas-dev/pandas/pull/36898
## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1
20
Jsonlines export error ## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1 @TevenLeScao I have just checked it: this was a bug in `pandas` and it was fixed in version 1.2: https://github.com/pandas-dev/pandas/pull/36898
[ -0.0274130180478096, 0.19911034405231476, -0.05490729957818985, 0.10253347456455231, 0.24418173730373383, -0.07032093405723572, 0.022972267121076584, -0.005967905279248953, -0.1234191283583641, 0.06561734527349472, 0.09051857143640518, -0.09215337783098221, -0.07228679209947586, 0.011629161424934864, -0.05211927369236946, -0.19435082376003265, -0.013474046252667904, -0.07890880852937698, 0.07151488214731216, 0.1019764095544815, -0.09166310727596283, 0.05904461815953255, 0.05767415091395378, -0.13594694435596466, -0.047967880964279175, -0.07132440060377121, -0.08175443857908249, -0.12315860390663147, 0.022785162553191185, -0.3258799910545349, -0.020611001178622246, -0.10477857291698456, -0.024261247366666794, 0.27584508061408997, 0.000006021054559823824, -0.03194103762507439, 0.09626779705286026, 0.06983767449855804, -0.07588234543800354, -0.01651517115533352, 0.021315118297934532, -0.07048574835062027, 0.07017286866903305, 0.0022939108312129974, 0.04016822203993797, -0.14588290452957153, -0.047474637627601624, -0.023314669728279114, 0.06995853781700134, 0.0722169503569603, -0.011877398937940598, -0.007062872406095266, 0.08646972477436066, -0.1614442765712738, 0.06127128377556801, -0.02312595397233963, 0.09226394444704056, 0.10768740624189377, -0.0749652162194252, 0.03035230003297329, 0.0370793454349041, -0.10904201865196228, 0.037360504269599915, -0.08383746445178986, -0.21935290098190308, -0.06932642310857773, -0.04554054141044617, -0.11687297374010086, 0.011632522568106651, 0.3158876299858093, -0.05274958536028862, 0.1302420049905777, 0.0016033779829740524, -0.023982373997569084, 0.011609692126512527, -0.31787461042404175, 0.06572892516851425, 0.16525571048259735, -0.10924479365348816, -0.04394210875034332, -0.2604198753833771, 0.1093870997428894, -0.09727919101715088, -0.14232958853244781, -0.08676676452159882, -0.12561894953250885, -0.17706358432769775, 0.15228606760501862, 0.03749782219529152, -0.07967701554298401, -0.03242379426956177, 0.022611256688833237, -0.18443168699741364, -0.1274135857820511, 0.08719556033611298, -0.10370606184005737, -0.009362504817545414, -0.2213231772184372, 0.08530715107917786, 0.020892992615699768, -0.05449550598859787, -0.07064386457204819, -0.05842443183064461, 0.07678992301225662, 0.10212314128875732, -0.027140391990542412, -0.07420394569635391, 0.013060673139989376, 0.09701277315616608, 0.04508930444717407, -0.010571280494332314, 0.12062601000070572, -0.010196122340857983, -0.020972752943634987, 0.0006707502761855721, 0.05200766772031784, 0.12076282501220703, 0.20646558701992035, 0.10220583528280258, -0.07082133740186691, -0.00541091850027442, -0.1185460090637207, -0.13903877139091492, -0.0803411677479744, -0.0693197175860405, 0.060228098183870316, 0.06405581533908844, 0.041628021746873856, -0.11295833438634872, 0.06572983413934708, 0.07942837476730347, 0.0009549057576805353, 0.18427865207195282, 0.019167186692357063, -0.052193839102983475, -0.1274297684431076, 0.06595039367675781, 0.05620379373431206, 0.1193476989865303, -0.1420985758304596, -0.11998409777879715, -0.10615170747041702, -0.13802090287208557, 0.15663959085941315, 0.1433836817741394, -0.03799644485116005, 0.03556488826870918, 0.04997238144278526, 0.030438069254159927, 0.0017099654069170356, -0.2355235069990158, 0.15178312361240387, -0.15286436676979065, -0.021187394857406616, -0.17801542580127716, -0.005058859474956989, -0.09694818407297134, -0.2325228452682495, -0.09234876185655594, -0.0010910604614764452, -0.03963513672351837, 0.14280812442302704, 0.011441346257925034, -0.18390825390815735, 0.020027214661240578, -0.07937328517436981, -0.10788694024085999, 0.0325780063867569, 0.05683340132236481, 0.012781044468283653, 0.34834346175193787, 0.10105379670858383, -0.01297042891383171, 0.1695404201745987, 0.035035666078329086, 0.04670576751232147, -0.07992216944694519, 0.05285393446683884, -0.12312052398920059, 0.09590993076562881, 0.04457563906908035, -0.10155247896909714, -0.05812516808509827, -0.1991221308708191, 0.16358432173728943, 0.08394601941108704, 0.13480181992053986, 0.08124291896820068, 0.09704050421714783, -0.1055297777056694, 0.12213196605443954, 0.002414921997115016, -0.1038154661655426, -0.13991713523864746, -0.06862722337245941, -0.3663754165172577, -0.0168731939047575, -0.24602188169956207, 0.14445285499095917, -0.12415211647748947, 0.006697539705783129, 0.14320407807826996, 0.027956653386354446, 0.14358161389827728, -0.1542637050151825, 0.062435779720544815, -0.12246690690517426, -0.13103319704532623, 0.19246669113636017, -0.05498095229268074, -0.00779137434437871, 0.019265178591012955, 0.04175516590476036, 0.17029014229774475, -0.09809717535972595, -0.05084208399057388, 0.0042943526059389114, 0.07282785326242447, -0.2596457004547119, 0.04425307363271713, -0.11416227370500565, 0.04389099031686783, 0.0391039177775383, 0.10578328371047974, -0.06580688804388046, 0.06139778345823288, -0.14451688528060913, 0.04928595945239067, 0.09266995638608932, -0.0024591635446995497, -0.032408613711595535, -0.06757859885692596, 0.04736309126019478, -0.08304500579833984, -0.05322239175438881, -0.004475284833461046, 0.009018144570291042, -0.09608995914459229, 0.11492333561182022, 0.08252643793821335, -0.10686848312616348, 0.06756483763456345, -0.15355010330677032, -0.02861780673265457, -0.0937216579914093, 0.08025497943162918, -0.04533858969807625, 0.21794137358665466, -0.0325751006603241, -0.1352425515651703, 0.1801598072052002, 0.16481918096542358, -0.15339000523090363, -0.08582749217748642, -0.09272727370262146, -0.06438836455345154, -0.1169501394033432, -0.00021994666894897819, -0.047184430062770844, -0.09991434961557388, 0.29662707448005676, 0.15780377388000488, -0.01744525507092476, 0.08121728897094727, 0.07344022393226624, 0.05006985738873482, 0.09974460303783417, -0.02333495207130909, 0.07037758827209473, 0.17028354108333588, -0.036747321486473083, 0.013463133946061134, -0.02643849141895771, -0.03900206461548805, -0.11749596148729324, 0.07188141345977783, -0.0968843474984169, -0.04814062640070915, -0.019656067714095116, 0.11022096872329712, -0.15872003138065338, -0.12059251219034195, -0.005437646061182022, -0.03742776811122894, 0.05377715453505516, -0.031182218343019485, -0.053593866527080536, -0.10970447957515717, -0.033773597329854965, -0.03367307782173157, 0.09260254353284836, 0.12799547612667084, -0.06838767975568771, -0.07898741960525513, -0.1553734987974167, 0.05670541897416115, 0.05030957609415054, -0.2022886872291565, 0.059043511748313904, -0.1639237105846405, -0.001850247848778963, 0.023504892364144325, 0.13300678133964539, 0.12630680203437805, -0.07885982096195221, -0.011370974592864513, 0.07044588774442673, 0.17959514260292053, -0.019099922850728035, -0.141927570104599, 0.08574079722166061, 0.007115171290934086, 0.05029089376330376, 0.032533545047044754, 0.05104542151093483, 0.15453289449214935, -0.06903079152107239, -0.1892118602991104, 0.011878562159836292, 0.080233134329319, -0.07833327353000641, 0.12390481680631638, -0.06665438413619995, -0.08393657207489014, 0.033602382987737656, 0.040559109300374985, -0.008722658269107342, -0.12131952494382858, -0.031633876264095306, 0.12977200746536255, -0.02640223316848278, 0.13058598339557648, -0.06144621595740318, -0.008504931814968586, 0.03693215921521187, -0.11291829496622086, -0.14185169339179993, -0.09402932971715927, 0.10817128419876099, -0.020214460790157318, 0.07068212330341339, -0.12050440907478333, -0.03362004831433296, -0.08949288725852966, -0.04913501814007759, -0.11438126862049103, 0.07509839534759521, -0.1202019602060318, 0.06628559529781342, -0.060395095497369766, 0.001569668878801167, 0.0123707614839077, 0.03224100545048714, -0.07510453462600708, -0.17547455430030823, 0.042134840041399, -0.08129030466079712, 0.041924528777599335, -0.024838097393512726, -0.04238712042570114, 0.1765783429145813, -0.19356036186218262, -0.1131744235754013, 0.23041363060474396, -0.05904046818614006, 0.04827744886279106, -0.012140410020947456, -0.016572892665863037, -0.12681114673614502, -0.05711151286959648, -0.04753023013472557, -0.20229339599609375, 0.026047473773360252, 0.1406949758529663, -0.049133267253637314, 0.038608986884355545, 0.015101855620741844, 0.03179645538330078, 0.09179352968931198, -0.12460259348154068, 0.04488351196050644, 0.02524205483496189, -0.01130647212266922, 0.059295784682035446, 0.2122463583946228, 0.1125875785946846, 0.09867347776889801, -0.03219994902610779, -0.10083390027284622, 0.14873725175857544, 0.12497375905513763, -0.05125301331281662, -0.1362319439649582, -0.1702193319797516, -0.11048576235771179, -0.28944462537765503, 0.3921912908554077, 0.03928064554929733, 0.02813786081969738, 0.06586557626724243, 0.12055666744709015, 0.19870056211948395, -0.132136732339859, 0.05666665732860565, 0.16403096914291382, 0.11464866250753403, 0.09057781100273132, 0.020339075475931168, 0.08609256893396378, -0.07361140847206116, 0.14529937505722046, 0.04769078269600868, 0.02106127329170704, 0.24095521867275238, 0.27723097801208496, 0.11123082041740417, -0.035289015620946884, 0.0245499387383461, 0.09471795707941055, -0.2263362556695938, 0.017357250675559044, -0.0625394955277443, 0.0578315295279026, 0.2016075700521469, 0.01101274136453867, -0.011141857132315636, 0.0492851659655571, -0.12650707364082336, 0.07771838456392288, 0.026898061856627464, -0.02945457026362419, -0.11544320732355118, 0.019196713343262672, -0.1024685725569725, -0.04078001528978348, -0.03804761916399002, 0.12568125128746033, -0.07836020737886429, 0.010760322213172913, 0.009031920693814754, -0.07121545076370239, -0.06321661919355392, 0.02844504825770855, -0.10796679556369781, 0.0993427038192749, 0.05172358825802803, -0.010389481671154499, 0.14855976402759552, 0.0839255228638649, -0.022945301607251167, -0.2151821255683899, -0.2663607597351074, 0.01503814198076725, -0.10816864669322968, 0.16564203798770905, -0.00553209288045764, 0.03195849806070328, -0.2304503470659256, 0.0014797031180933118, 0.23070447146892548, -0.0900127962231636, -0.10197529941797256, 0.026447748765349388, 0.11176948994398117, 0.05363953486084938, 0.06731219589710236, 0.2283320426940918, -0.23562443256378174, -0.12543590366840363, 0.008582950569689274, 0.13062505424022675, 0.15349803864955902, -0.005611141212284565, 0.0036210257094353437, 0.015821628272533417, 0.07032941281795502, -0.07297776639461517, -0.005539566744118929, -0.09010545909404755, 0.08233201503753662, 0.18139372766017914, 0.007176767569035292, 0.061431605368852615, -0.2361706793308258, -0.14306659996509552, 0.09204849600791931, -0.1444198042154312, -0.054165661334991455, -0.03336380794644356, 0.030783608555793762, 0.004185148980468512, -0.10851681232452393, 0.04180868715047836, 0.01648295670747757, 0.2819664776325226, 0.07559792697429657, -0.031649380922317505, 0.10363801568746567, -0.10371366888284683, 0.0537395253777504, 0.1357051581144333, -0.0973362997174263, -0.004994309041649103, -0.06964774429798126, -0.1725337654352188, 0.02963929809629917, -0.040212877094745636, 0.16102316975593567, 0.047899555414915085, -0.14097397029399872, -0.07731030881404877, 0.12550179660320282, -0.0669257789850235, -0.095039963722229, -0.015772636979818344, -0.003813205985352397, 0.011741917580366135, 0.005665873643010855, 0.11388248950242996, 0.13130827248096466, -0.0149892782792449, -0.16041837632656097, -0.026369763538241386, -0.06995341926813126, 0.10403504222631454, -0.03958510980010033, 0.016137870028614998, -0.03986084461212158, 0.13212907314300537, 0.3182312548160553, 0.004238533787429333, 0.10230346769094467, 0.1671149879693985, -0.22526895999908447, 0.027225064113736153, 0.18634150922298431, 0.2333153337240219, -0.05321333929896355, 0.022891739383339882, 0.07534803450107574, 0.08077041804790497, 0.03145856782793999, -0.03487960249185562, -0.027347462251782417, 0.12723229825496674, 0.15946230292320251, 0.039342742413282394, -0.07933861017227173, -0.15106363594532013, -0.0263020321726799, 0.059953298419713974, 0.1528880000114441, 0.24487006664276123, 0.03475267440080643, -0.19912777841091156, -2.165655413379736e-32, -0.12949202954769135, -0.01796024851500988, -0.04927535355091095, 0.030932743102312088, -0.2825867235660553, 0.0868910476565361, 0.018016457557678223, -0.10166438668966293, -0.00043582022772170603, 0.025361577048897743, 0.06447388976812363, -0.1718437522649765, 0.011856968514621258, 0.10390985012054443, 0.018358532339334488, 0.03966229781508446, 0.20501814782619476, -0.017319297417998314, 0.10400736331939697, 0.1497441977262497, 0.020986145362257957, 0.06621605157852173, -0.02530481107532978, 0.10269945859909058, 0.015951475128531456, 0.13334348797798157, -0.06696487218141556, -0.030665695667266846, 0.22455726563930511, -0.1162620559334755, -0.12301506847143173, -0.020325392484664917, 0.07549332827329636, -0.023310795426368713, -0.19443783164024353, -0.05109187960624695, -0.07943090796470642, -0.1469835340976715, -0.15964923799037933, 0.11324980854988098, 0.035783786326646805, 0.06613649427890778, 0.07321025431156158, -0.19108882546424866, 0.165632426738739, -0.02652004361152649, 0.1084899827837944, -0.0704263299703598, -0.2004248946905136, 0.06830044835805893, 0.07001416385173798, -0.028028758242726326, -0.21138210594654083, 0.09267871826887131, 0.03552044555544853, -0.12064208090305328, -0.01728837750852108, 0.042871031910181046, -0.08167743682861328, -0.11783497035503387, 0.021159222349524498, 0.019533904269337654, 0.02009769156575203, -0.06402721256017685, 0.1244172751903534, 0.12634021043777466, 0.19294385612010956, 0.1368701308965683, 0.10347495228052139, 0.1278868168592453, -0.11754924058914185, -0.1422717571258545, -0.15351659059524536, 0.06534788012504578, -0.036480195820331573, 0.008403005078434944, -0.05620476230978966, -0.026887115091085434, 0.030023561790585518, -0.04239713400602341, 0.07350076735019684, 0.13042064011096954, -0.13771046698093414, 0.04428499564528465, -0.07923074066638947, -0.03477109596133232, 0.044834744185209274, 0.006521311588585377, 0.03607426583766937, -0.22341850399971008, 0.049876172095537186, -0.06639993190765381, 0.021258680149912834, -0.054294049739837646, -0.09625370055437088, 0.05841641128063202, -0.1891414374113083, -0.04009652137756348, -0.09553167223930359, -0.14698009192943573, -0.08659372478723526, 0.059322454035282135, -0.15207161009311676, -0.028151895850896835, 0.21091623604297638, 0.062454067170619965, 0.23557904362678528, -0.11745434999465942, -0.18600834906101227, 0.03453075513243675, -0.044163867831230164, 0.013731841929256916, 0.1429038941860199, 0.19380724430084229, 0.16048935055732727, -0.07631824910640717, -0.03984305262565613, 0.10997460037469864, 0.0873684361577034, 0.106713205575943, -0.011567194946110249, 0.13801725208759308, -0.005952227860689163, -0.02810307964682579, 0.019541488960385323, -0.043772246688604355, -0.04132627695798874, 0.02182459831237793, 0.08104132115840912, -0.09306921064853668, -0.018264858052134514, -0.024260394275188446, 7.223310944937111e-7, -0.1957409828901291, 0.02347526326775551, 0.02643066644668579, 0.07392404973506927, 0.031763024628162384, 0.07232964038848877, -0.002193285385146737, -0.13535447418689728, -0.08730120956897736, 0.2840508818626404, 0.10205219686031342, -0.004593702498823404, -0.07615728676319122, 0.0017238182481378317, 0.15869612991809845, 0.09759913384914398, -0.06395180523395538, 0.04225757345557213, -0.2015366405248642, -0.004803440533578396, 0.1620018035173416, -0.04534304141998291, 0.10951866954565048, 0.09513212740421295, 0.0033756347838789225, -0.09323222935199738, -0.2016293853521347, -0.04990135878324509, -0.004895412363111973, 0.13186539709568024, -0.05198837071657181, 0.022424636408686638, -0.08679492026567459, 0.09589727967977524, 0.030504580587148666, -0.016750533133745193, -0.1658385545015335, -0.0344974584877491, 0.09278397262096405, 0.1491478532552719, 0.22023925185203552, 0.09224186092615128, -0.06700384616851807, -0.06622914969921112, 0.17029137909412384, 0.07549292594194412, -0.07951484620571136, 0.007924795150756836, -0.015179064124822617, 0.07737487554550171, 0.02456161193549633, 0.20781438052654266, 0.21503311395645142, 0.06695923209190369, -0.03921379894018173, -0.03655513375997543, 0.06585149466991425, -0.012270246632397175, -0.03977372124791145, -0.06509742140769958, -0.043032560497522354, -0.08777481317520142, 0.05276823788881302, 0.08522694557905197, 0.004708467051386833, -0.05770248919725418, 0.005921842996031046, 1.3865839784599402e-34, -0.018346862867474556, -0.0803561732172966, 0.09232969582080841, -0.3146645128726959, 0.06870805472135544, 0.03034197725355625, 0.22496694326400757, -0.04795612394809723, -0.07069813460111618, -0.15280595421791077, -0.0703769102692604 ]
https://github.com/huggingface/datasets/issues/2615
Jsonlines export error
Sorry, I was also talking to teven offline so I already had the PR ready before noticing x)
## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1
18
Jsonlines export error ## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1 Sorry, I was also talking to teven offline so I already had the PR ready before noticing x)
[ -0.030000997707247734, 0.17267106473445892, -0.06644516438245773, 0.09919314086437225, 0.23727206885814667, -0.06289493292570114, 0.03768005594611168, -0.011791086755692959, -0.12238522619009018, 0.06374913454055786, 0.0927882269024849, -0.08312998712062836, -0.08174966275691986, 0.02279255911707878, -0.046336375176906586, -0.2045585960149765, -0.013070513494312763, -0.10218481719493866, 0.08854950219392776, 0.0838235467672348, -0.08103800565004349, 0.08594734221696854, 0.05257348716259003, -0.14619161188602448, -0.041184138506650925, -0.04975774511694908, -0.06433695554733276, -0.1031954362988472, 0.0340421237051487, -0.32440921664237976, -0.039303574711084366, -0.11490080505609512, -0.025734644383192062, 0.2645174264907837, 0.000006081910669308854, -0.004930197261273861, 0.09442435204982758, 0.07996028661727905, -0.09370028227567673, -0.027819255366921425, 0.020489202812314034, -0.061554256826639175, 0.05912960693240166, 0.009432032704353333, 0.0342119000852108, -0.1408831924200058, -0.0569908507168293, -0.049514058977365494, 0.07180818170309067, 0.07621847093105316, -0.006341378204524517, -0.006953350733965635, 0.07633558660745621, -0.15521501004695892, 0.08325830101966858, -0.015805348753929138, 0.08326597511768341, 0.10561694949865341, -0.05719933286309242, 0.05611594766378403, 0.03673527017235756, -0.09618894010782242, 0.043291375041007996, -0.0887715071439743, -0.21607504785060883, -0.06356655061244965, -0.0590381845831871, -0.10920193791389465, 0.006439420394599438, 0.3078382909297943, -0.038654692471027374, 0.135324627161026, 0.011350201442837715, -0.021691763773560524, 0.0033749477006495, -0.32214683294296265, 0.07257391512393951, 0.1673775166273117, -0.11770882457494736, -0.04108619689941406, -0.2814428210258484, 0.10318254679441452, -0.10115036368370056, -0.1393565535545349, -0.08066105097532272, -0.13066768646240234, -0.16462887823581696, 0.1640256941318512, 0.035651180893182755, -0.07128573209047318, -0.03205708786845207, 0.03211470693349838, -0.18314224481582642, -0.136513814330101, 0.08046863228082657, -0.10122699290513992, -0.017456982284784317, -0.2148270308971405, 0.08976662904024124, 0.03547777980566025, -0.0467621348798275, -0.07707373052835464, -0.05786806344985962, 0.08453451097011566, 0.09297261387109756, -0.031017694622278214, -0.06781429797410965, 0.02405278943479061, 0.084801584482193, 0.04434164986014366, -0.008219302631914616, 0.11241061240434647, -0.005261573474854231, -0.017935683950781822, 0.007417254615575075, 0.04945731908082962, 0.11502823978662491, 0.19991198182106018, 0.1063677966594696, -0.0778655856847763, -0.0026618819683790207, -0.12944959104061127, -0.15057328343391418, -0.06434017419815063, -0.055677399039268494, 0.0420961007475853, 0.06856685131788254, 0.04739750921726227, -0.1175076961517334, 0.03739809989929199, 0.0870959684252739, 0.0002456142974551767, 0.15778544545173645, 0.006054588593542576, -0.04259283468127251, -0.11503610759973526, 0.07467731833457947, 0.05023077875375748, 0.10357222706079483, -0.14818497002124786, -0.1060204729437828, -0.08829332143068314, -0.13500221073627472, 0.14071810245513916, 0.13883166015148163, -0.03620707988739014, 0.01952260360121727, 0.04965757951140404, 0.016743145883083344, 0.0226555485278368, -0.2582923471927643, 0.1310061812400818, -0.155757337808609, -0.02357035130262375, -0.16661985218524933, -0.0020945582073181868, -0.09462818503379822, -0.22594012320041656, -0.08688066154718399, -0.013023260980844498, -0.04252171143889427, 0.13517971336841583, 0.013679154217243195, -0.17282511293888092, 0.025804873555898666, -0.08520537614822388, -0.13383519649505615, 0.014952758327126503, 0.0548519492149353, 0.01134598907083273, 0.3536666929721832, 0.10985692590475082, -0.005160756874829531, 0.1775740385055542, 0.03374217078089714, 0.05989436060190201, -0.07137827575206757, 0.04823847487568855, -0.10463893413543701, 0.09117239713668823, 0.04039045423269272, -0.11388175934553146, -0.07999923080205917, -0.19566647708415985, 0.1522802859544754, 0.07893308997154236, 0.13730372488498688, 0.08183243125677109, 0.09784487634897232, -0.10340329259634018, 0.11904868483543396, 0.03296400606632233, -0.11450383812189102, -0.12642158567905426, -0.07042845338582993, -0.36712273955345154, -0.02944326400756836, -0.23450100421905518, 0.14956718683242798, -0.13027678430080414, 0.014878223650157452, 0.15876613557338715, 0.016067150980234146, 0.14088787138462067, -0.15502963960170746, 0.07240669429302216, -0.1332663744688034, -0.12753160297870636, 0.1773236244916916, -0.042056210339069366, -0.0004134875489398837, 0.021747898310422897, 0.043653085827827454, 0.16280895471572876, -0.08834142982959747, -0.03878625109791756, 0.00019946131214965135, 0.09520115703344345, -0.26021677255630493, 0.04758508875966072, -0.10779231786727905, 0.03699619323015213, 0.043775711208581924, 0.10366121679544449, -0.07726721465587616, 0.07645753771066666, -0.15099124610424042, 0.04363705590367317, 0.08780833333730698, -0.004498053342103958, -0.04239535331726074, -0.057497601956129074, 0.04684267193078995, -0.08931802213191986, -0.024438971653580666, -0.015567167662084103, -0.0063249398954212666, -0.10162347555160522, 0.12568767368793488, 0.06951289623975754, -0.08542679250240326, 0.07462481409311295, -0.1752098798751831, -0.031147057190537453, -0.09940432012081146, 0.07695993036031723, -0.037500955164432526, 0.23469629883766174, -0.02660605125129223, -0.12819288671016693, 0.173316091299057, 0.14878962934017181, -0.15084190666675568, -0.07580890506505966, -0.08680280297994614, -0.06110069155693054, -0.13599470257759094, -0.02334766462445259, -0.05487002432346344, -0.11555889993906021, 0.29302671551704407, 0.17424368858337402, -0.03470730036497116, 0.09680294245481491, 0.08355070650577545, 0.06017246097326279, 0.10739445686340332, -0.022475168108940125, 0.06189815700054169, 0.1670427918434143, -0.03921748697757721, 0.02327769435942173, -0.01726854406297207, -0.042529188096523285, -0.10716573894023895, 0.06277269870042801, -0.10613664984703064, -0.046748340129852295, -0.011896876618266106, 0.09037499874830246, -0.1441870927810669, -0.13504846394062042, -0.019176792353391647, -0.04715369641780853, 0.04270773008465767, -0.03185421973466873, -0.05634423345327377, -0.0973169133067131, -0.03916299343109131, -0.028264110907912254, 0.09133349359035492, 0.11352487653493881, -0.05379444360733032, -0.07380857318639755, -0.15989989042282104, 0.0565398745238781, 0.0611446350812912, -0.22059963643550873, 0.05281003564596176, -0.19178223609924316, -0.0013431594707071781, 0.03293885663151741, 0.11487147957086563, 0.1244756430387497, -0.060797277837991714, -0.005662616807967424, 0.06912705302238464, 0.15233801305294037, -0.0295939389616251, -0.14060267806053162, 0.0784088596701622, 0.020143041387200356, 0.04995201900601387, 0.03784896060824394, 0.05958680063486099, 0.15184801816940308, -0.06688109040260315, -0.18490204215049744, 0.018591223284602165, 0.08374638110399246, -0.08420602977275848, 0.13683131337165833, -0.0591820664703846, -0.08361438661813736, 0.036698997020721436, 0.03175244480371475, -0.010502918623387814, -0.12371420115232468, -0.029932843521237373, 0.12915392220020294, -0.019360376521945, 0.12238219380378723, -0.06043769791722298, -0.020481662824749947, 0.03239044174551964, -0.10551020503044128, -0.13367590308189392, -0.09392181783914566, 0.12204364687204361, -0.02441427670419216, 0.08075515925884247, -0.1124015748500824, -0.04108842834830284, -0.08044213056564331, -0.04673571139574051, -0.10558769851922989, 0.10583038628101349, -0.11180127412080765, 0.07560643553733826, -0.08150965720415115, -0.0012714315671473742, 0.014758454635739326, 0.03078521601855755, -0.06715615093708038, -0.17177408933639526, 0.05068577826023102, -0.07637402415275574, 0.014996539801359177, 0.0021740240044891834, -0.030342401936650276, 0.17022326588630676, -0.18981222808361053, -0.09806819260120392, 0.22300904989242554, -0.07406526803970337, 0.044092025607824326, 0.0020131212659180164, -0.02418564260005951, -0.12004861980676651, -0.04632154107093811, -0.05224371328949928, -0.19762207567691803, 0.011011806316673756, 0.13469521701335907, -0.04237503930926323, 0.03502397984266281, 0.017899494618177414, 0.04218041151762009, 0.1138015016913414, -0.12446850538253784, 0.05962962657213211, 0.0456937812268734, 0.0022863242775201797, 0.05434863641858101, 0.2188287377357483, 0.11702539026737213, 0.0869695246219635, -0.034690409898757935, -0.11698128283023834, 0.12993821501731873, 0.13451778888702393, -0.06513217091560364, -0.12854303419589996, -0.1620616763830185, -0.09897664934396744, -0.28877535462379456, 0.36267557740211487, 0.03771228715777397, 0.010899758897721767, 0.06486031413078308, 0.1148548424243927, 0.19324630498886108, -0.13972558081150055, 0.07304295152425766, 0.17511478066444397, 0.1423601508140564, 0.10188722610473633, 0.006195071153342724, 0.06970570236444473, -0.08340073376893997, 0.16844141483306885, 0.054115574806928635, 0.021586298942565918, 0.23543184995651245, 0.2688070833683014, 0.1100880354642868, -0.018701843917369843, 0.020263442769646645, 0.08770968019962311, -0.2279336303472519, 0.001964263152331114, -0.07816480100154877, 0.06606162339448929, 0.21003976464271545, 0.01650356687605381, -0.01801023632287979, 0.07330452650785446, -0.1019032895565033, 0.06463664025068283, 0.014515312388539314, -0.018368680030107498, -0.12382350116968155, 0.024700183421373367, -0.11183322221040726, -0.03410358726978302, -0.055985014885663986, 0.12934012711048126, -0.06580793857574463, 0.012488669715821743, 0.010582689195871353, -0.06451848149299622, -0.05073469132184982, 0.02105308696627617, -0.1065078005194664, 0.09015870839357376, 0.026158606633543968, -0.005782321561127901, 0.14336273074150085, 0.089934803545475, -0.017378531396389008, -0.20217561721801758, -0.27410900592803955, 0.012009107507765293, -0.11096116900444031, 0.16283507645130157, -0.01759159192442894, 0.033783577382564545, -0.2400420904159546, -0.008962363004684448, 0.23800234496593475, -0.07470293343067169, -0.09821397066116333, 0.03426789864897728, 0.1020675078034401, 0.06300322711467743, 0.09519852697849274, 0.22265303134918213, -0.26989659667015076, -0.11594986170530319, 0.02551948092877865, 0.14412137866020203, 0.15912315249443054, -0.0057497089728713036, -0.00394869688898325, 0.029235146939754486, 0.07130050659179688, -0.06782893091440201, -0.019062465056777, -0.08748244494199753, 0.06155000627040863, 0.17401018738746643, 0.0255901999771595, 0.06029342859983444, -0.2118416726589203, -0.14323461055755615, 0.06613705307245255, -0.13145585358142853, -0.0491645410656929, -0.04954603686928749, 0.031106416136026382, -0.005758139304816723, -0.11041492223739624, 0.04940452054142952, -0.007877098396420479, 0.2805509865283966, 0.07734917104244232, -0.03233427554368973, 0.1010158360004425, -0.09869320690631866, 0.04570575803518295, 0.13808496296405792, -0.09012746065855026, -0.012985222041606903, -0.06786695867776871, -0.1686919778585434, 0.03089476004242897, -0.0394844189286232, 0.1559131145477295, 0.047399502247571945, -0.1402738094329834, -0.08685622364282608, 0.11770894378423691, -0.0668429285287857, -0.11568069458007812, -0.030212339013814926, 0.002672733971849084, 0.01213204488158226, 0.0008317394531331956, 0.12120716273784637, 0.1387747973203659, -0.0055545056238770485, -0.16096052527427673, -0.03523828461766243, -0.07441329956054688, 0.10363414883613586, -0.02489505335688591, 0.01285608857870102, -0.02667594514787197, 0.13489052653312683, 0.30599164962768555, -0.013145368546247482, 0.10432720929384232, 0.18038664758205414, -0.1979740709066391, 0.02105276845395565, 0.190712109208107, 0.23220017552375793, -0.07202155888080597, 0.02248564176261425, 0.07070087641477585, 0.07758015394210815, 0.031802866607904434, -0.010662447661161423, -0.022207975387573242, 0.12282763421535492, 0.17173020541667938, 0.053644321858882904, -0.08344586938619614, -0.14212623238563538, -0.030573958531022072, 0.054776087403297424, 0.14409692585468292, 0.24451160430908203, 0.019777877256274223, -0.18788108229637146, -2.1793061354022475e-32, -0.13900746405124664, -0.0015424242010340095, -0.05413886904716492, 0.03668290749192238, -0.2823604941368103, 0.0884159505367279, 0.024565858766436577, -0.0980503186583519, -0.019497303292155266, 0.011440359055995941, 0.0658634826540947, -0.1682647317647934, 0.02419351227581501, 0.10092479735612869, 0.03841117396950722, 0.024876737967133522, 0.20601974427700043, -0.008189773187041283, 0.09561298042535782, 0.1559300422668457, 0.019771918654441833, 0.07074170559644699, -0.015406867489218712, 0.07300366461277008, 0.02062159962952137, 0.1306236982345581, -0.06379847228527069, -0.026715189218521118, 0.21639792621135712, -0.11354537308216095, -0.1277102530002594, -0.012277588248252869, 0.052581626921892166, -0.03961850330233574, -0.19710244238376617, -0.04246930032968521, -0.06536541879177094, -0.14920559525489807, -0.1515180468559265, 0.1047135442495346, 0.028170712292194366, 0.05814804509282112, 0.05644261837005615, -0.1979382038116455, 0.16969506442546844, -0.03300568088889122, 0.11955536156892776, -0.0526413694024086, -0.18729157745838165, 0.06550592929124832, 0.0751262903213501, -0.03220297396183014, -0.22644805908203125, 0.08799871057271957, 0.04268401116132736, -0.12699775397777557, -0.010939953848719597, 0.03705952316522598, -0.08898419886827469, -0.110873281955719, -0.0026078091468662024, 0.002062971470877528, 0.029376832768321037, -0.07564643025398254, 0.1162639632821083, 0.13971582055091858, 0.1940501183271408, 0.1290958970785141, 0.12393911927938461, 0.12811264395713806, -0.1269131749868393, -0.14444369077682495, -0.155207559466362, 0.0560905896127224, -0.035625774413347244, 0.021872125566005707, -0.05182298645377159, -0.027186214923858643, 0.027993962168693542, -0.017450017854571342, 0.06017003208398819, 0.12665177881717682, -0.1371479034423828, 0.034556794911623, -0.07680130749940872, -0.05390398949384689, 0.045311298221349716, -0.011412324383854866, 0.02872527576982975, -0.22387546300888062, 0.04417385533452034, -0.05031615495681763, 0.029457462951540947, -0.040487948805093765, -0.10722038894891739, 0.04981495812535286, -0.19649970531463623, -0.0544472262263298, -0.10043700039386749, -0.1325996071100235, -0.08546654880046844, 0.05148277431726456, -0.14483018219470978, -0.04649730399250984, 0.20747114717960358, 0.05738434940576553, 0.2299828827381134, -0.11966940015554428, -0.19664348661899567, 0.04314858838915825, -0.04040896147489548, 0.02252199873328209, 0.1406770646572113, 0.1633678376674652, 0.18322348594665527, -0.08317390829324722, -0.030143696814775467, 0.10905047506093979, 0.0875142440199852, 0.08887993544340134, -0.016429636627435684, 0.14724746346473694, -0.01551508903503418, -0.028617404401302338, 0.009504057466983795, -0.041281022131443024, -0.039362844079732895, 0.01181904599070549, 0.09778622537851334, -0.08172934502363205, -0.02518969401717186, -0.032230205833911896, 7.26872769973852e-7, -0.19196449220180511, 0.020829681307077408, 0.03049127757549286, 0.07298544049263, 0.011828834190964699, 0.055966030806303024, 0.015947552397847176, -0.13318102061748505, -0.08516745269298553, 0.2854897975921631, 0.08709657192230225, -0.006136826239526272, -0.07628568261861801, 0.025525305420160294, 0.15631380677223206, 0.09632151573896408, -0.05183655396103859, 0.05356443673372269, -0.20724359154701233, -0.005497939884662628, 0.17453202605247498, -0.046148113906383514, 0.11988591402769089, 0.09660210460424423, -0.018686868250370026, -0.08310286700725555, -0.20762544870376587, -0.07009940594434738, 0.007108951918780804, 0.12657223641872406, -0.06470629572868347, 0.03026706352829933, -0.09229235351085663, 0.10932020097970963, 0.03390093520283699, -0.03327062726020813, -0.1498287320137024, -0.04346410557627678, 0.10651880502700806, 0.1483173668384552, 0.21777960658073425, 0.10017786175012589, -0.06577598303556442, -0.050616998225450516, 0.1632285863161087, 0.062193963676691055, -0.07564300298690796, 0.00859363004565239, -0.03528542071580887, 0.06088920682668686, 0.019810227677226067, 0.20508161187171936, 0.21418647468090057, 0.06605008244514465, -0.032767754048109055, -0.03178445249795914, 0.056051105260849, -0.02350558526813984, -0.030638564378023148, -0.062398526817560196, -0.05458225682377815, -0.07643634080886841, 0.06981522589921951, 0.09450436383485794, -0.00246983184479177, -0.06694614887237549, 0.00009039476572070271, 1.5722561810315754e-34, -0.013266368769109249, -0.07119832187891006, 0.10048707574605942, -0.29905349016189575, 0.051543623208999634, 0.03286460041999817, 0.244578018784523, -0.05334944278001785, -0.07112452387809753, -0.1618242710828781, -0.08790397644042969 ]
https://github.com/huggingface/datasets/issues/2615
Jsonlines export error
I was also already working in my PR... Nevermind. Next time we should pay attention if there is somebody (self-)assigned to an issue and if he/she is still working on it before overtaking it... 😄
## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1
35
Jsonlines export error ## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1 I was also already working in my PR... Nevermind. Next time we should pay attention if there is somebody (self-)assigned to an issue and if he/she is still working on it before overtaking it... 😄
[ -0.030795074999332428, 0.20139122009277344, -0.06763101369142532, 0.10137096047401428, 0.23881635069847107, -0.06133950501680374, 0.025510987266898155, -0.014120719395577908, -0.123586006462574, 0.06496655195951462, 0.10132014006376266, -0.07799714058637619, -0.07895875722169876, 0.01960846036672592, -0.045289117842912674, -0.19224216043949127, -0.0056211804039776325, -0.09270433336496353, 0.0819290280342102, 0.0895623117685318, -0.07836508005857468, 0.0792529433965683, 0.0601799376308918, -0.14049944281578064, -0.04210219532251358, -0.05816880986094475, -0.06545558571815491, -0.10511098802089691, 0.023946698755025864, -0.32910391688346863, -0.03985588625073433, -0.10576567053794861, -0.01765371486544609, 0.2635542154312134, 0.000006105351531004999, -0.0033328162971884012, 0.09339640289545059, 0.08029182255268097, -0.0987691804766655, -0.02122991904616356, 0.015125681646168232, -0.047161780297756195, 0.05297711864113808, 0.01105532143265009, 0.03248889371752739, -0.1362781524658203, -0.05924438312649727, -0.04404209181666374, 0.07339221239089966, 0.08122183382511139, -0.006367230322211981, -0.00965927168726921, 0.06822758913040161, -0.15747332572937012, 0.08317068219184875, -0.01177922636270523, 0.08003894239664078, 0.10320935398340225, -0.061381954699754715, 0.04299061372876167, 0.03241255506873131, -0.09068454056978226, 0.03856762498617172, -0.08647466450929642, -0.20478595793247223, -0.06289076805114746, -0.05154351517558098, -0.10487579554319382, 0.010418637655675411, 0.3164227604866028, -0.045288801193237305, 0.1330302655696869, 0.014545791782438755, -0.024779098108410835, 0.004580808337777853, -0.3322974443435669, 0.06318686157464981, 0.16886956989765167, -0.11217961460351944, -0.03173801675438881, -0.28680720925331116, 0.09761875867843628, -0.09917200356721878, -0.14386434853076935, -0.06825441867113113, -0.12845882773399353, -0.16679611802101135, 0.15821650624275208, 0.03946763277053833, -0.06855135411024094, -0.022591304033994675, 0.017696110531687737, -0.18194621801376343, -0.12819375097751617, 0.08589282631874084, -0.10057299584150314, -0.019035955891013145, -0.21908921003341675, 0.0903967022895813, 0.02658633142709732, -0.057299114763736725, -0.08858925849199295, -0.05237331986427307, 0.08358105272054672, 0.09512710571289062, -0.031320344656705856, -0.06277506798505783, 0.031473949551582336, 0.07240457087755203, 0.05943892523646355, -0.007254794705659151, 0.11656350642442703, -0.006036440376192331, -0.013514464721083641, 0.004647220019251108, 0.0634416714310646, 0.1125175952911377, 0.19252197444438934, 0.11262109130620956, -0.07913460582494736, 0.0013381248572841287, -0.12581001222133636, -0.14399613440036774, -0.06598415225744247, -0.05649353563785553, 0.035641271620988846, 0.06530427187681198, 0.04917798563838005, -0.11857061833143234, 0.04633188620209694, 0.08240737020969391, 0.0060982177965343, 0.16935618221759796, 0.018942998722195625, -0.04568314924836159, -0.11193106323480606, 0.06440448015928268, 0.047204334288835526, 0.10297410190105438, -0.13977545499801636, -0.10890750586986542, -0.09729505330324173, -0.1399787813425064, 0.14931224286556244, 0.13886995613574982, -0.033500440418720245, 0.017980769276618958, 0.053073134273290634, 0.014638736844062805, 0.024801572784781456, -0.24945801496505737, 0.1334833800792694, -0.15902984142303467, -0.018827585503458977, -0.16142451763153076, 0.004031654912978411, -0.10007761418819427, -0.2212851643562317, -0.08305218070745468, -0.01269210409373045, -0.049304939806461334, 0.1301388144493103, 0.006388956680893898, -0.17669105529785156, 0.02410285361111164, -0.07541542500257492, -0.12233876436948776, 0.016334248706698418, 0.05021495744585991, 0.0029558788519352674, 0.34616798162460327, 0.10757341235876083, -0.01400776393711567, 0.16815227270126343, 0.022965963929891586, 0.0588487833738327, -0.07380983978509903, 0.04774933680891991, -0.11134327203035355, 0.09286660701036453, 0.033424485474824905, -0.12104303389787674, -0.07385855168104172, -0.18925204873085022, 0.159434974193573, 0.07397811859846115, 0.12395911663770676, 0.08547307550907135, 0.09996765851974487, -0.10599484294652939, 0.11495830863714218, 0.02173411287367344, -0.10378987342119217, -0.12435012310743332, -0.07896675169467926, -0.37454158067703247, -0.024082917720079422, -0.2398114800453186, 0.1441250443458557, -0.14250560104846954, 0.014354833401739597, 0.14767278730869293, 0.02129477821290493, 0.1362946331501007, -0.1546611487865448, 0.06922443211078644, -0.12920475006103516, -0.12914368510246277, 0.18166710436344147, -0.04897882416844368, -0.014343136921525002, 0.0137114142999053, 0.04661817103624344, 0.16415823996067047, -0.09098073840141296, -0.03468925878405571, 0.0009054095135070384, 0.09141954034566879, -0.26675304770469666, 0.040073081851005554, -0.09932217746973038, 0.02811971865594387, 0.04253637418150902, 0.0975804328918457, -0.06682205200195312, 0.0717574954032898, -0.15833552181720734, 0.04613078013062477, 0.09621057659387589, -0.013148081488907337, -0.03454567864537239, -0.05371322110295296, 0.04231606051325798, -0.087505042552948, -0.041388433426618576, -0.007556408643722534, 0.007910461165010929, -0.09309151023626328, 0.11824732273817062, 0.062332626432180405, -0.09135454148054123, 0.06678195297718048, -0.1716107726097107, -0.03497549891471863, -0.09304611384868622, 0.07855023443698883, -0.04082750901579857, 0.2372024953365326, -0.026337983086705208, -0.13002260029315948, 0.16436389088630676, 0.15133997797966003, -0.15022701025009155, -0.07757458090782166, -0.08206807076931, -0.06800588220357895, -0.13722461462020874, -0.009166124276816845, -0.05495820939540863, -0.10867892950773239, 0.2958502173423767, 0.1597498059272766, -0.03369072824716568, 0.08734627068042755, 0.08609889447689056, 0.06094522029161453, 0.10512503236532211, -0.018696319311857224, 0.06280605494976044, 0.16115014255046844, -0.036684900522232056, 0.02771712653338909, -0.013893071562051773, -0.04644424840807915, -0.1081748679280281, 0.05928368121385574, -0.0884447693824768, -0.04543616622686386, -0.007892951369285583, 0.08963188529014587, -0.14441828429698944, -0.12125126272439957, -0.02461877278983593, -0.041844647377729416, 0.03548048809170723, -0.02972458302974701, -0.06016119569540024, -0.08992747217416763, -0.04066125303506851, -0.03777802735567093, 0.08590660244226456, 0.129041388630867, -0.05344579741358757, -0.08524420857429504, -0.15492388606071472, 0.061432961374521255, 0.0762711614370346, -0.22231446206569672, 0.04630165174603462, -0.1889854222536087, 0.0013586715795099735, 0.027289530262351036, 0.1262788027524948, 0.12608496844768524, -0.056406907737255096, 0.000025767016268218867, 0.057220008224248886, 0.16093134880065918, -0.02514217421412468, -0.14621847867965698, 0.09008435159921646, 0.01627369038760662, 0.05175255611538887, 0.041374944150447845, 0.04949716106057167, 0.14660799503326416, -0.0642022043466568, -0.19719398021697998, 0.015866689383983612, 0.07980545610189438, -0.08559490740299225, 0.13225598633289337, -0.06750813871622086, -0.08463577181100845, 0.03777538985013962, 0.039524175226688385, -0.0170326828956604, -0.12368292361497879, -0.031225206330418587, 0.12547644972801208, -0.020956533029675484, 0.11872214823961258, -0.060584794729948044, -0.013012340292334557, 0.03258970007300377, -0.107430599629879, -0.1349925845861435, -0.09337019175291061, 0.11712036281824112, -0.015750091522932053, 0.07437745481729507, -0.11684925109148026, -0.04175379499793053, -0.0966748520731926, -0.04758560657501221, -0.10724496096372604, 0.09387633204460144, -0.10471386462450027, 0.0783887431025505, -0.08212548494338989, -0.005956578999757767, 0.011844638735055923, 0.03559473156929016, -0.06215347722172737, -0.16673915088176727, 0.028471065685153008, -0.0815705955028534, 0.03654169663786888, -0.023490561172366142, -0.027574321255087852, 0.16822944581508636, -0.1927323192358017, -0.08555067330598831, 0.2201480269432068, -0.07344479858875275, 0.04239456728100777, -0.005492572672665119, -0.020850161090493202, -0.11968105286359787, -0.04805641993880272, -0.03559456393122673, -0.1960766315460205, 0.02036900818347931, 0.14609801769256592, -0.04780900850892067, 0.03481011092662811, 0.019148927181959152, 0.03444143757224083, 0.09739433228969574, -0.12542301416397095, 0.05465871840715408, 0.044590096920728683, 0.0029929536394774914, 0.05751246213912964, 0.2154642939567566, 0.12419400364160538, 0.09058258682489395, -0.03425556421279907, -0.10789699107408524, 0.13412007689476013, 0.13559438288211823, -0.07102535665035248, -0.14187614619731903, -0.1659429669380188, -0.10620399564504623, -0.29611021280288696, 0.3638719916343689, 0.03998741880059242, 0.01993173360824585, 0.06016840040683746, 0.11218142509460449, 0.18746347725391388, -0.13325068354606628, 0.06858155131340027, 0.18134371936321259, 0.13684043288230896, 0.10013655573129654, 0.004584272392094135, 0.08035814017057419, -0.074671670794487, 0.1437596082687378, 0.05028161033987999, 0.017029309645295143, 0.23405618965625763, 0.2691265642642975, 0.10874470323324203, -0.029264822602272034, 0.015317360870540142, 0.08626295626163483, -0.2246597409248352, 0.005155995022505522, -0.07039421051740646, 0.06806391477584839, 0.21247878670692444, 0.013590856455266476, -0.01734272949397564, 0.06899113953113556, -0.08916480094194412, 0.06700725853443146, 0.017868496477603912, -0.01407425943762064, -0.12064949423074722, 0.017135215923190117, -0.10564418882131577, -0.05265859141945839, -0.04816560819745064, 0.1401185840368271, -0.06306193768978119, 0.006838866509497166, 0.010184228420257568, -0.06601675599813461, -0.05065808817744255, 0.017911843955516815, -0.11314346641302109, 0.08708779513835907, 0.04599250853061676, -0.00971335731446743, 0.1467583328485489, 0.08441408723592758, -0.02037515491247177, -0.20841822028160095, -0.2766680419445038, 0.010390306822955608, -0.10114876180887222, 0.16597706079483032, -0.016822127625346184, 0.03013630025088787, -0.24304358661174774, -0.01055507455021143, 0.22908668220043182, -0.06988560408353806, -0.1002006009221077, 0.02692447043955326, 0.0943048968911171, 0.06192552298307419, 0.07860046625137329, 0.22221466898918152, -0.25415754318237305, -0.11813820898532867, 0.022967461496591568, 0.13880455493927002, 0.15893247723579407, -0.004200285766273737, -0.0027474970556795597, 0.03456280380487442, 0.07268310338258743, -0.06786681711673737, -0.03270895779132843, -0.08801192045211792, 0.06688756495714188, 0.18680550158023834, 0.022902701050043106, 0.06496381759643555, -0.20806114375591278, -0.14886057376861572, 0.05956181883811951, -0.1388157308101654, -0.05047037824988365, -0.04432693123817444, 0.031724732369184494, 0.003410148900002241, -0.11011169105768204, 0.05422522500157356, -0.01829163357615471, 0.2654859125614166, 0.08400296419858932, -0.027831098064780235, 0.11885493248701096, -0.09999613463878632, 0.03425776585936546, 0.13615046441555023, -0.08332740515470505, -0.004804910626262426, -0.07313171029090881, -0.16887854039669037, 0.023782720789313316, -0.05081948637962341, 0.15505550801753998, 0.04267548397183418, -0.1464652270078659, -0.08480784296989441, 0.11513999849557877, -0.06235212832689285, -0.10583145916461945, -0.02758163958787918, 0.019953351467847824, 0.012454676441848278, 0.00037070634425617754, 0.12838152050971985, 0.14672204852104187, -0.0018123028567060828, -0.1658324897289276, -0.036476876586675644, -0.0813312977552414, 0.10355973988771439, -0.020384151488542557, 0.01581648923456669, -0.02539176680147648, 0.12597022950649261, 0.30937522649765015, -0.010449498891830444, 0.10052794963121414, 0.18455491960048676, -0.1955558806657791, 0.01479035522788763, 0.1875014454126358, 0.23332180082798004, -0.06981765478849411, 0.018527600914239883, 0.08021526038646698, 0.08270617574453354, 0.033093251287937164, -0.0157670509070158, -0.022711392492055893, 0.12943409383296967, 0.1705961972475052, 0.05265709385275841, -0.07532819360494614, -0.145919069647789, -0.0396411195397377, 0.05071768909692764, 0.1523079127073288, 0.24612699449062347, 0.0292019285261631, -0.18623310327529907, -2.1972466771212911e-32, -0.13324406743049622, 0.0026851084548979998, -0.05101357400417328, 0.02441156655550003, -0.2934521436691284, 0.08441273868083954, 0.023261837661266327, -0.09585229307413101, -0.02129489742219448, 0.004378830548375845, 0.07045499235391617, -0.16755066812038422, 0.023944739252328873, 0.10333181917667389, 0.04440824314951897, 0.027719009667634964, 0.2101278454065323, -0.007273844908922911, 0.09814566373825073, 0.1486777514219284, 0.014023457653820515, 0.06512390077114105, -0.003316469956189394, 0.07683047652244568, 0.0073161800391972065, 0.1339162439107895, -0.06353411078453064, -0.03168720752000809, 0.21170391142368317, -0.11415178328752518, -0.12927192449569702, -0.0065953973680734634, 0.0595746748149395, -0.024555133655667305, -0.19648505747318268, -0.042196955531835556, -0.06671730428934097, -0.15519919991493225, -0.1478421986103058, 0.10985898971557617, 0.035666488111019135, 0.06446397304534912, 0.06318866461515427, -0.19851809740066528, 0.17535963654518127, -0.024185366928577423, 0.11339329183101654, -0.05397576093673706, -0.18955300748348236, 0.08470941334962845, 0.0722835510969162, -0.030552279204130173, -0.22973079979419708, 0.0889715924859047, 0.04397767037153244, -0.132050558924675, -0.015781700611114502, 0.04291165620088577, -0.08766630291938782, -0.11624861508607864, -0.0010992862517014146, 0.007494437508285046, 0.02947552129626274, -0.07022084295749664, 0.11716274917125702, 0.14432145655155182, 0.17981986701488495, 0.13491405546665192, 0.11008249968290329, 0.14124268293380737, -0.13077855110168457, -0.1399097442626953, -0.14716742932796478, 0.06248032674193382, -0.03593089058995247, 0.012588380835950375, -0.06432697921991348, -0.022032005712389946, 0.03346066176891327, -0.022371014580130577, 0.051836661994457245, 0.14050395786762238, -0.14312893152236938, 0.04603152349591255, -0.0725642517209053, -0.051143813878297806, 0.052623067051172256, -0.007836993783712387, 0.023944972082972527, -0.22246578335762024, 0.038625072687864304, -0.05299660563468933, 0.028023798018693924, -0.035805247724056244, -0.09885697811841965, 0.04020882770419121, -0.1856113076210022, -0.046072158962488174, -0.09844633936882019, -0.1347677856683731, -0.08301008492708206, 0.06081905961036682, -0.14280745387077332, -0.03137602284550667, 0.208562433719635, 0.05882299318909645, 0.21807748079299927, -0.118456169962883, -0.19328145682811737, 0.03978954255580902, -0.03794756531715393, 0.009574380703270435, 0.14099901914596558, 0.17488634586334229, 0.17275147140026093, -0.07852531224489212, -0.03965397924184799, 0.11711543053388596, 0.07972075790166855, 0.10309668630361557, -0.023805582895874977, 0.13343703746795654, -0.013688527047634125, -0.03446859493851662, 0.012614317238330841, -0.03447900712490082, -0.041847262531518936, 0.022572515532374382, 0.1004507765173912, -0.08574098348617554, -0.027026675641536713, -0.03581136837601662, 7.274495033016137e-7, -0.19513294100761414, 0.018136771395802498, 0.0332794226706028, 0.08291725814342499, 0.017997581511735916, 0.05230827257037163, 0.009555529803037643, -0.1327802985906601, -0.09489041566848755, 0.28428158164024353, 0.09297947585582733, -0.00781285110861063, -0.07806592434644699, 0.028569430112838745, 0.15548062324523926, 0.09120258688926697, -0.06286782771348953, 0.03587329387664795, -0.2008524090051651, 0.003207493107765913, 0.1880350559949875, -0.04521245136857033, 0.12455502152442932, 0.10157017409801483, -0.010183296166360378, -0.08384828269481659, -0.2098037302494049, -0.06666991859674454, 0.002681724727153778, 0.1300124078989029, -0.059231165796518326, 0.03740794584155083, -0.0883449837565422, 0.09964250773191452, 0.027878234162926674, -0.03617699444293976, -0.1368117481470108, -0.037959787994623184, 0.09931088984012604, 0.14825788140296936, 0.2169547975063324, 0.09514442086219788, -0.06815627217292786, -0.045334264636039734, 0.16416560113430023, 0.05906287208199501, -0.08262708783149719, 0.006013545207679272, -0.04244028404355049, 0.07056330144405365, 0.024089893326163292, 0.20407992601394653, 0.20390552282333374, 0.05582929775118828, -0.04008474946022034, -0.03659866005182266, 0.06145238131284714, -0.02335955575108528, -0.03030651994049549, -0.046874355524778366, -0.05954517796635628, -0.07360096275806427, 0.06991030275821686, 0.09060052782297134, 0.011839738115668297, -0.06393620371818542, -0.0041829003021121025, 1.4011799678361807e-34, -0.012243342585861683, -0.07592230290174484, 0.10121763497591019, -0.29673415422439575, 0.0618920773267746, 0.029430165886878967, 0.22730478644371033, -0.06001579016447067, -0.07304360717535019, -0.17019522190093994, -0.08757529407739639 ]
https://github.com/huggingface/datasets/issues/2607
Streaming local gzip compressed JSON line files is not working
Hi @thomwolf, thanks for reporting. It seems this might be due to the fact that the JSON Dataset builder uses `pyarrow.json` (`paj.read_json`) to read the data without using the Python standard `open(file,...` (which is the one patched with `xopen` to work in streaming mode). This has to be fixed.
## Describe the bug Using streaming to iterate on local gzip compressed JSON files raise a file not exist error ## Steps to reproduce the bug ```python from datasets import load_dataset streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True) next(iter(streamed_dataset)) ``` ## Actual results ``` FileNotFoundError Traceback (most recent call last) <ipython-input-6-27a664e29784> in <module> ----> 1 next(iter(streamed_dataset)) ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 336 337 def __iter__(self): --> 338 for key, example in self._iter(): 339 if self.features: 340 # we encode the example for ClassLabel feature types for example ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in _iter(self) 333 else: 334 ex_iterable = self._ex_iterable --> 335 yield from ex_iterable 336 337 def __iter__(self): ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in wrapper(**kwargs) 282 def wrapper(**kwargs): 283 python_formatter = PythonFormatter() --> 284 for key, table in generate_tables_fn(**kwargs): 285 batch = python_formatter.format_batch(table) 286 for i, example in enumerate(_batch_to_examples(batch)): ~/Documents/GitHub/datasets/src/datasets/packaged_modules/json/json.py in _generate_tables(self, files, original_files) 85 file, 86 read_options=self.config.pa_read_options, ---> 87 parse_options=self.config.pa_parse_options, 88 ) 89 except pa.ArrowInvalid as err: ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json.read_json() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json._get_reader() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_input_stream() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_native_file() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile.__cinit__() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile._open_readable() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() FileNotFoundError: [Errno 2] Failed to open local file 'gzip://file-000000000000.json::/Users/thomwolf/github-dataset/file-000000000000.json.gz'. Detail: [errno 2] No such file or directory ``` ## Environment info - `datasets` version: 1.9.1.dev0 - Platform: Darwin-19.6.0-x86_64-i386-64bit - Python version: 3.7.7 - PyArrow version: 1.0.0
49
Streaming local gzip compressed JSON line files is not working ## Describe the bug Using streaming to iterate on local gzip compressed JSON files raise a file not exist error ## Steps to reproduce the bug ```python from datasets import load_dataset streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True) next(iter(streamed_dataset)) ``` ## Actual results ``` FileNotFoundError Traceback (most recent call last) <ipython-input-6-27a664e29784> in <module> ----> 1 next(iter(streamed_dataset)) ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 336 337 def __iter__(self): --> 338 for key, example in self._iter(): 339 if self.features: 340 # we encode the example for ClassLabel feature types for example ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in _iter(self) 333 else: 334 ex_iterable = self._ex_iterable --> 335 yield from ex_iterable 336 337 def __iter__(self): ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in wrapper(**kwargs) 282 def wrapper(**kwargs): 283 python_formatter = PythonFormatter() --> 284 for key, table in generate_tables_fn(**kwargs): 285 batch = python_formatter.format_batch(table) 286 for i, example in enumerate(_batch_to_examples(batch)): ~/Documents/GitHub/datasets/src/datasets/packaged_modules/json/json.py in _generate_tables(self, files, original_files) 85 file, 86 read_options=self.config.pa_read_options, ---> 87 parse_options=self.config.pa_parse_options, 88 ) 89 except pa.ArrowInvalid as err: ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json.read_json() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json._get_reader() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_input_stream() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_native_file() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile.__cinit__() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile._open_readable() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() FileNotFoundError: [Errno 2] Failed to open local file 'gzip://file-000000000000.json::/Users/thomwolf/github-dataset/file-000000000000.json.gz'. Detail: [errno 2] No such file or directory ``` ## Environment info - `datasets` version: 1.9.1.dev0 - Platform: Darwin-19.6.0-x86_64-i386-64bit - Python version: 3.7.7 - PyArrow version: 1.0.0 Hi @thomwolf, thanks for reporting. It seems this might be due to the fact that the JSON Dataset builder uses `pyarrow.json` (`paj.read_json`) to read the data without using the Python standard `open(file,...` (which is the one patched with `xopen` to work in streaming mode). This has to be fixed.
[ -0.013050680048763752, 0.3321338891983032, 0.05095060542225838, 0.003450236516073346, 0.29703226685523987, 0.11756797134876251, 0.16261206567287445, 0.17716190218925476, -0.09720505028963089, -0.07562919706106186, 0.014845028519630432, 0.03927469998598099, -0.1590888798236847, 0.10177016258239746, 0.12363209575414658, -0.10931862145662308, -0.08820471912622452, -0.02619943954050541, 0.15219329297542572, 0.04962679743766785, 0.0516977421939373, 0.1752551794052124, 0.052249375730752945, -0.02279265783727169, 0.03965655341744423, -0.048391133546829224, 0.0030387130100280046, 0.0392833836376667, -0.15351073443889618, -0.0520106665790081, -0.02507384680211544, -0.0433337539434433, 0.12332580983638763, 0.18770116567611694, 0.0000054769261623732746, 0.10518169403076172, 0.08560695499181747, -0.05225317180156708, -0.09986841678619385, 0.023871079087257385, 0.12037180364131927, -0.14940880239009857, -0.053031641989946365, 0.11445707082748413, 0.04768259450793266, -0.23636282980442047, -0.03909813240170479, -0.04709157720208168, 0.031507231295108795, 0.03985871002078056, 0.024358363822102547, 0.00995781272649765, -0.017131613567471504, -0.020730992779135704, -0.011945562437176704, 0.05034676566720009, -0.15467225015163422, 0.043581560254096985, -0.2517930269241333, 0.08143892884254456, -0.034321822226047516, -0.010064707137644291, -0.08397714793682098, -0.006631870754063129, -0.0960683524608612, 0.08426422625780106, -0.09810923784971237, -0.23676171898841858, -0.14943628013134003, 0.13090771436691284, -0.0652613714337349, -0.11588367819786072, -0.2590557634830475, -0.08074989914894104, -0.05642077326774597, -0.28268080949783325, -0.1161506399512291, 0.3035583198070526, -0.07761918008327484, 0.06327227503061295, -0.11191163957118988, 0.12565745413303375, -0.14925332367420197, 0.03454210236668587, -0.020610779523849487, 0.08116404712200165, -0.029084986075758934, 0.09104619175195694, -0.017134619876742363, 0.061112117022275925, -0.07802040129899979, -0.1272922158241272, 0.07539757341146469, -0.11830179393291473, -0.01543155126273632, -0.022429073229432106, 0.05686571076512337, -0.18274977803230286, -0.08304328471422195, -0.02299298718571663, 0.04079271852970123, 0.015133495442569256, 0.09669219702482224, -0.07488525658845901, 0.0667937770485878, 0.0629008486866951, 0.014905431307852268, -0.04784592613577843, 0.06190210208296776, 0.1181906908750534, 0.09647957980632782, 0.0176596287637949, -0.09334893524646759, -0.02664845995604992, 0.010572836734354496, -0.042860034853219986, 0.1930573731660843, 0.09825030714273453, 0.06338638812303543, 0.05617696791887283, -0.19245021045207977, 0.04847273230552673, -0.01473598089069128, 0.019973594695329666, 0.07953614741563797, 0.017242806032299995, -0.17976894974708557, 0.20166410505771637, -0.052986085414886475, 0.01571006327867508, 0.11442722380161285, -0.0002611203526612371, 0.011233268305659294, 0.018073026090860367, 0.2504867911338806, -0.23057600855827332, 0.06442879140377045, -0.09542615711688995, -0.022042348980903625, 0.0002750986604951322, 0.12095315009355545, -0.021059438586235046, 0.07653014361858368, 0.05383000150322914, -0.03939582780003548, -0.026829063892364502, 0.14261266589164734, 0.048452842980623245, -0.12410180270671844, -0.06438232213258743, -0.10949280112981796, 0.0550047792494297, 0.0007813501288183033, 0.11535415053367615, -0.07041217386722565, -0.05127614364027977, 0.09539449959993362, -0.02349732629954815, -0.17675743997097015, -0.16447223722934723, 0.05628657341003418, -0.09476950019598007, 0.0506737120449543, -0.0064802756533026695, 0.12975528836250305, 0.15923480689525604, -0.10564754158258438, -0.02405960112810135, 0.04587436467409134, 0.10950983315706253, 0.3451312184333801, 0.037410177290439606, -0.11278659105300903, -0.010245824232697487, -0.2444836050271988, 0.1519801914691925, -0.018513379618525505, 0.03850727528333664, -0.08406911045312881, 0.1424430012702942, 0.06115041300654411, 0.10354230552911758, 0.20004278421401978, -0.055967289954423904, 0.1893511712551117, -0.06340920925140381, 0.17368091642856598, 0.07961192727088928, -0.0257012490183115, -0.0666332021355629, -0.0722150132060051, 0.009552380070090294, 0.015605582855641842, -0.03591525927186012, -0.13762617111206055, 0.19214294850826263, -0.06482421606779099, -0.18770752847194672, 0.11038335412740707, -0.12289993464946747, 0.1671590358018875, -0.08282172679901123, 0.0682358518242836, -0.05014275386929512, 0.027591638267040253, 0.184895321726799, -0.08113452792167664, -0.07992630451917648, -0.01172390952706337, -0.15456657111644745, -0.1368456333875656, -0.020694075152277946, 0.04650263488292694, 0.09419437497854233, -0.09098304808139801, -0.07103943824768066, -0.007377780042588711, 0.07061932235956192, -0.01847218908369541, 0.0918019711971283, -0.15451033413410187, 0.09024261683225632, 0.04270002990961075, 0.09290669858455658, -0.010538834147155285, 0.08825423568487167, -0.032845593988895416, -0.06612185388803482, 0.13958390057086945, 0.10671969503164291, -0.006251942366361618, -0.01372743770480156, 0.06690086424350739, -0.041909243911504745, -0.056764498353004456, 0.06160050630569458, 0.0029229619540274143, -0.1679728478193283, -0.04676074907183647, 0.05255212262272835, -0.025534342974424362, 0.058065153658390045, -0.06886260956525803, 0.029331019148230553, 0.041906438767910004, -0.09181944280862808, -0.008836343884468079, 0.18685610592365265, 0.04553470388054848, -0.06212669983506203, 0.14977335929870605, 0.046028025448322296, -0.2856329679489136, 0.20841914415359497, 0.19341421127319336, -0.151456817984581, -0.05503389611840248, 0.10880175977945328, 0.017720313742756844, -0.012920062988996506, 0.3264993727207184, -0.0012274011969566345, -0.16031019389629364, 0.15679217875003815, 0.14003276824951172, -0.15903843939304352, 0.09756627678871155, 0.09394686669111252, 0.13737282156944275, 0.1366274356842041, 0.27912935614585876, -0.05856061726808548, -0.091515451669693, -0.15767371654510498, -0.10824915766716003, -0.08466345816850662, -0.12771083414554596, 0.08376763761043549, 0.041900333017110825, 0.06759283691644669, -0.1705734133720398, 0.1269860863685608, -0.04471321403980255, -0.15649543702602386, 0.15405213832855225, 0.09562002122402191, -0.04543464630842209, -0.055987969040870667, -0.00860143918544054, -0.042846906930208206, 0.054744333028793335, -0.10175520926713943, 0.11876575648784637, 0.045782752335071564, 0.05115441232919693, 0.02393924631178379, 0.08436914533376694, -0.19833752512931824, 0.13483773171901703, -0.10137388855218887, -0.1467091590166092, 0.009253053925931454, -0.07297816127538681, -0.010470617562532425, -0.03458915650844574, -0.10891491174697876, 0.17081372439861298, 0.07396110892295837, -0.12420830875635147, -0.10470212996006012, 0.03435990959405899, 0.02092926949262619, 0.09864607453346252, 0.010580428875982761, -0.08853183686733246, 0.05859147384762764, 0.0751183032989502, -0.22253870964050293, 0.2325812727212906, -0.03226453810930252, 0.12628374993801117, 0.13332293927669525, -0.11035308986902237, -0.03767688199877739, -0.07435346394777298, 0.0013138549402356148, -0.03333268314599991, -0.26508966088294983, 0.02414759434759617, 0.007004585117101669, -0.0019244392169639468, 0.08095993101596832, -0.15648995339870453, -0.04654476046562195, 0.1058628037571907, -0.16330675780773163, -0.07809191942214966, -0.16212277114391327, 0.31147482991218567, -0.17402368783950806, -0.04498746618628502, 0.006699653808027506, -0.056834518909454346, 0.009203117340803146, 0.09103627502918243, -0.13917946815490723, 0.11807284504175186, 0.02627929486334324, -0.07078085839748383, -0.01599837839603424, -0.10244524478912354, -0.12921901047229767, -0.060056667774915695, -0.24106742441654205, -0.11070377379655838, 0.06149463728070259, -0.11620838940143585, 0.10203894972801208, -0.054319825023412704, 0.25673308968544006, 0.17637000977993011, 0.06088944897055626, -0.007630171719938517, 0.22102655470371246, -0.09762217104434967, 0.16019032895565033, 0.19116173684597015, 0.04652153328061104, 0.03589576110243797, -0.10396762192249298, 0.06143810600042343, -0.08326339721679688, -0.042133867740631104, -0.014014018699526787, -0.047932352870702744, -0.030070293694734573, -0.054346390068531036, 0.03440654277801514, 0.06153907999396324, 0.0370287261903286, 0.12384503334760666, -0.0198978278785944, 0.03231678158044815, 0.07688314467668533, 0.09564147144556046, -0.035993535071611404, 0.003971844911575317, 0.023674670606851578, -0.006998562254011631, 0.21781788766384125, 0.11009242385625839, 0.08900835365056992, 0.015680013224482536, -0.2548406422138214, 0.0399697981774807, -0.04422162473201752, 0.2748972177505493, -0.04391001537442207, -0.037358347326517105, 0.11075139790773392, 0.06476934254169464, 0.055675406008958817, -0.11403492838144302, -0.17245645821094513, 0.09160839021205902, 0.11818111687898636, 0.10012364387512207, -0.06291849911212921, -0.0435105562210083, 0.08252748101949692, 0.07243191450834274, 0.08008865267038345, -0.06407736986875534, 0.05386131629347801, 0.11854994297027588, -0.004567576106637716, 0.20506551861763, -0.08288896828889847, 0.028547845780849457, -0.11690797656774521, -0.1506175994873047, -0.150948166847229, -0.04901982843875885, 0.04938195273280144, -0.16645768284797668, -0.053436070680618286, -0.0859929695725441, -0.03933895006775856, 0.0039754100143909454, -0.07210168242454529, 0.17533469200134277, 0.01898347958922386, -0.06789014488458633, 0.01769590750336647, 0.24010273814201355, -0.00992003083229065, 0.35903123021125793, 0.2032575160264969, -0.1848895102739334, -0.006426539737731218, -0.07196222245693207, 0.11401280760765076, 0.038972947746515274, -0.12618596851825714, 0.005449601449072361, -0.11000289022922516, -0.1510230153799057, 0.12231160700321198, -0.039866842329502106, 0.0997539535164833, -0.22275707125663757, -0.16203750669956207, -0.18961329758167267, -0.16437914967536926, 0.04622964560985565, 0.0036373918410390615, 0.21930474042892456, -0.3529800772666931, 0.020041266456246376, 0.09189461916685104, -0.25612422823905945, -0.10881204903125763, 0.13689947128295898, 0.03294414281845093, 0.040098052471876144, 0.05630268156528473, 0.3064700961112976, -0.3455020785331726, 0.15106721222400665, 0.1161593347787857, -0.1059260293841362, 0.09532196819782257, -0.15160521864891052, 0.04461618885397911, 0.1785631626844406, -0.11204061657190323, -0.08014722913503647, -0.10172402113676071, 0.051765915006399155, 0.03612861782312393, 0.24523131549358368, -0.22679325938224792, -0.004700921475887299, -0.07479462772607803, 0.02178545482456684, 0.02696407400071621, 0.06307022273540497, 0.09347773343324661, -0.14067190885543823, 0.0019558847416192293, 0.11062568426132202, -0.19441615045070648, 0.039818741381168365, -0.021742958575487137, 0.08294929563999176, -0.14603866636753082, -0.0688270851969719, 0.0032435234170407057, -0.038942571729421616, -0.013602192513644695, 0.022834239527583122, -0.010665939189493656, 0.0641460195183754, -0.0923173800110817, -0.07120545953512192, -0.14450041949748993, -0.03903293237090111, -0.12798839807510376, 0.015612589195370674, 0.009671826846897602, 0.19791154563426971, -0.12366015464067459, -0.13586892187595367, 0.028031399473547935, 0.01019954588264227, 0.039391279220581055, -0.05322340503334999, 0.03773900866508484, 0.010825349017977715, -0.11703233420848846, 0.09831275045871735, -0.005489211529493332, 0.0364973358809948, -0.13335086405277252, -0.16469649970531464, -0.10613813996315002, -0.029106248170137405, -0.14308208227157593, 0.12997423112392426, 0.13940775394439697, 0.11912314593791962, 0.13859227299690247, 0.0846930593252182, 0.01124625839293003, 0.018559401854872704, 0.09015411883592606, -0.014598867855966091, -0.04925296828150749, -0.03696654736995697, 0.20360858738422394, 0.10732314735651016, -0.10212062299251556, -0.08890056610107422, -0.033230021595954895, -0.01237765233963728, 0.08899430185556412, 0.005894345697015524, -0.03618881478905678, -0.13655012845993042, -0.022249789908528328, 0.04236021637916565, 0.25260889530181885, 0.06477634608745575, 0.00012250221334397793, -0.12026656419038773, -2.4652746705353334e-32, -0.06494457274675369, -0.026326632127165794, -0.13117802143096924, -0.09208662062883377, -0.14212022721767426, -0.021789833903312683, -0.06331093609333038, -0.06332758814096451, -0.14144974946975708, -0.058364953845739365, -0.15073975920677185, 0.017905499786138535, -0.01367240771651268, 0.010530857369303703, -0.0034185440745204687, -0.025835122913122177, 0.02876359038054943, -0.08769678324460983, 0.023999229073524475, 0.1416638344526291, 0.1264689564704895, 0.05887608230113983, 0.08373764157295227, 0.03950463980436325, -0.11818872392177582, -0.04186074808239937, -0.1603701114654541, -0.21220900118350983, 0.02787967212498188, -0.05928250402212143, -0.1426043063402176, 0.113641157746315, 0.042173512279987335, -0.22404681146144867, -0.16718000173568726, -0.09025493264198303, -0.20011508464813232, 0.03813079372048378, -0.17442059516906738, 0.11200837045907974, 0.03679988905787468, 0.10631731152534485, 0.15912149846553802, 0.04807349666953087, 0.11300767958164215, 0.19044411182403564, -0.1662432849407196, -0.05269755423069, -0.18221798539161682, -0.09450962394475937, 0.10182421654462814, 0.02290068008005619, -0.16140855848789215, 0.10351742804050446, 0.14294977486133575, -0.007093603722751141, 0.05914824455976486, 0.12375441193580627, 0.0370950773358345, 0.08934883028268814, 0.09377532452344894, -0.032146356999874115, 0.02951466292142868, -0.29357093572616577, -0.013828854076564312, 0.014147280715405941, -0.07376882433891296, 0.03161792829632759, 0.16640570759773254, 0.08186265081167221, -0.05955880135297775, -0.002889776136726141, -0.10563192516565323, -0.0648178979754448, 0.06725183874368668, -0.16221117973327637, 0.009935534559190273, -0.22465287148952484, 0.016540784388780594, -0.04060930013656616, -0.020798634737730026, 0.026391945779323578, 0.09398853778839111, 0.0010574047919362783, -0.07308177649974823, -0.0007969294092617929, 0.07022874802350998, -0.016506008803844452, -0.04737192019820213, -0.043627627193927765, 0.2091379165649414, -0.07827477902173996, -0.007619393523782492, -0.10601645708084106, -0.016083847731351852, -0.030220551416277885, -0.0895085260272026, 0.07428406178951263, -0.031095877289772034, 0.034598249942064285, 0.021817367523908615, -0.0682489275932312, -0.030212219804525375, -0.17723296582698822, 0.009230646304786205, 0.10259546339511871, 0.25284096598625183, 0.0022685653530061245, -0.03073444403707981, -0.004218969494104385, 0.03179698437452316, 0.008397300727665424, 0.22627520561218262, -0.003260810626670718, 0.18346747756004333, -0.0487491637468338, -0.121607206761837, -0.03955286368727684, 0.024915559217333794, 0.09280011057853699, -0.026640336960554123, -0.016647782176733017, -0.16242876648902893, 0.07721703499555588, 0.026676306501030922, -0.05939062684774399, -0.12228021025657654, -0.02430032379925251, -0.017691917717456818, 0.0018250211142003536, -0.13164766132831573, -0.049199119210243225, 6.974164534767624e-7, -0.07037203758955002, 0.07233425974845886, 0.03331367298960686, -0.058972012251615524, -0.06321147084236145, -0.04287492483854294, -0.10805834829807281, 0.04953597113490105, -0.10432136803865433, 0.23653271794319153, 0.21139568090438843, -0.10313241928815842, 0.03633330017328262, -0.06510037928819656, 0.1135205328464508, -0.09462807327508926, -0.09198486059904099, 0.18875516951084137, -0.19818097352981567, -0.001962807262316346, 0.11369167268276215, 0.1562286764383316, 0.04523953050374985, 0.09404032677412033, 0.17058326303958893, -0.008648624643683434, -0.0840834528207779, 0.005447775591164827, -0.017587516456842422, -0.05081535130739212, -0.05025843158364296, 0.035804539918899536, -0.0059457155875861645, 0.044625189155340195, 0.08404882252216339, -0.07754606008529663, -0.03633495420217514, -0.0164008941501379, 0.21388089656829834, 0.01595013216137886, -0.004076824057847261, 0.14408235251903534, 0.03563544154167175, -0.006180913187563419, 0.06249484047293663, 0.09293998032808304, -0.10248497873544693, -0.0011057377560064197, -0.1687840223312378, -0.020963964983820915, 0.06349314004182816, 0.14963053166866302, 0.1848849058151245, 0.12016241252422333, -0.11582982540130615, 0.035473164170980453, -0.08415216952562332, 0.010363290086388588, 0.18211151659488678, -0.21829120814800262, -0.09838244318962097, 0.11876256763935089, -0.21687404811382294, 0.018164172768592834, 0.12979035079479218, 0.10126355290412903, -0.06859979033470154, 3.20563171156766e-36, -0.09690126031637192, 0.12185631692409515, 0.05352877825498581, -0.11296756565570831, -0.001132490928284824, -0.0759453997015953, 0.2560449242591858, 0.008188844658434391, -0.028137287124991417, 0.04189923405647278, -0.060940492898225784 ]
https://github.com/huggingface/datasets/issues/2607
Streaming local gzip compressed JSON line files is not working
Sorry for reopening this, but I'm having the same issue as @thomwolf when streaming a gzipped JSON Lines file from the hub. Or is that just not possible by definition? I installed `datasets`in editable mode from source (so probably includes the fix from #2608 ?): ``` >>> datasets.__version__ '1.9.1.dev0' ``` ``` >>> msmarco = datasets.load_dataset("webis/msmarco", "corpus", streaming=True) Using custom data configuration corpus-174d3b7155eb68db >>> msmarco_iter = iter(msmarco['train']) >>> print(next(msmarco_iter)) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/media/ssd/TREC/msmarco/datasets/src/datasets/iterable_dataset.py", line 338, in __iter__ for key, example in self._iter(): File "/media/ssd/TREC/msmarco/datasets/src/datasets/iterable_dataset.py", line 335, in _iter yield from ex_iterable File "/media/ssd/TREC/msmarco/datasets/src/datasets/iterable_dataset.py", line 78, in __iter__ for key, example in self.generate_examples_fn(**self.kwargs): File "/home/christopher/.cache/huggingface/modules/datasets_modules/datasets/msmarco/eb63dff8d83107168e973c7a655a6082d37e08d71b4ac39a0afada479c138745/msmarco.py", line 96, in _generate_examples with gzip.open(file, "rt", encoding="utf-8") as f: File "/usr/lib/python3.6/gzip.py", line 53, in open binary_file = GzipFile(filename, gz_mode, compresslevel) File "/usr/lib/python3.6/gzip.py", line 163, in __init__ fileobj = self.myfileobj = builtins.open(filename, mode or 'rb') FileNotFoundError: [Errno 2] No such file or directory: 'https://huggingface.co/datasets/webis/msmarco/resolve/main/msmarco_doc_00.gz' ``` Loading the dataset without streaming set to True, works fine.
## Describe the bug Using streaming to iterate on local gzip compressed JSON files raise a file not exist error ## Steps to reproduce the bug ```python from datasets import load_dataset streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True) next(iter(streamed_dataset)) ``` ## Actual results ``` FileNotFoundError Traceback (most recent call last) <ipython-input-6-27a664e29784> in <module> ----> 1 next(iter(streamed_dataset)) ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 336 337 def __iter__(self): --> 338 for key, example in self._iter(): 339 if self.features: 340 # we encode the example for ClassLabel feature types for example ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in _iter(self) 333 else: 334 ex_iterable = self._ex_iterable --> 335 yield from ex_iterable 336 337 def __iter__(self): ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in wrapper(**kwargs) 282 def wrapper(**kwargs): 283 python_formatter = PythonFormatter() --> 284 for key, table in generate_tables_fn(**kwargs): 285 batch = python_formatter.format_batch(table) 286 for i, example in enumerate(_batch_to_examples(batch)): ~/Documents/GitHub/datasets/src/datasets/packaged_modules/json/json.py in _generate_tables(self, files, original_files) 85 file, 86 read_options=self.config.pa_read_options, ---> 87 parse_options=self.config.pa_parse_options, 88 ) 89 except pa.ArrowInvalid as err: ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json.read_json() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json._get_reader() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_input_stream() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_native_file() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile.__cinit__() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile._open_readable() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() FileNotFoundError: [Errno 2] Failed to open local file 'gzip://file-000000000000.json::/Users/thomwolf/github-dataset/file-000000000000.json.gz'. Detail: [errno 2] No such file or directory ``` ## Environment info - `datasets` version: 1.9.1.dev0 - Platform: Darwin-19.6.0-x86_64-i386-64bit - Python version: 3.7.7 - PyArrow version: 1.0.0
167
Streaming local gzip compressed JSON line files is not working ## Describe the bug Using streaming to iterate on local gzip compressed JSON files raise a file not exist error ## Steps to reproduce the bug ```python from datasets import load_dataset streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True) next(iter(streamed_dataset)) ``` ## Actual results ``` FileNotFoundError Traceback (most recent call last) <ipython-input-6-27a664e29784> in <module> ----> 1 next(iter(streamed_dataset)) ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 336 337 def __iter__(self): --> 338 for key, example in self._iter(): 339 if self.features: 340 # we encode the example for ClassLabel feature types for example ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in _iter(self) 333 else: 334 ex_iterable = self._ex_iterable --> 335 yield from ex_iterable 336 337 def __iter__(self): ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in wrapper(**kwargs) 282 def wrapper(**kwargs): 283 python_formatter = PythonFormatter() --> 284 for key, table in generate_tables_fn(**kwargs): 285 batch = python_formatter.format_batch(table) 286 for i, example in enumerate(_batch_to_examples(batch)): ~/Documents/GitHub/datasets/src/datasets/packaged_modules/json/json.py in _generate_tables(self, files, original_files) 85 file, 86 read_options=self.config.pa_read_options, ---> 87 parse_options=self.config.pa_parse_options, 88 ) 89 except pa.ArrowInvalid as err: ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json.read_json() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json._get_reader() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_input_stream() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_native_file() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile.__cinit__() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile._open_readable() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() FileNotFoundError: [Errno 2] Failed to open local file 'gzip://file-000000000000.json::/Users/thomwolf/github-dataset/file-000000000000.json.gz'. Detail: [errno 2] No such file or directory ``` ## Environment info - `datasets` version: 1.9.1.dev0 - Platform: Darwin-19.6.0-x86_64-i386-64bit - Python version: 3.7.7 - PyArrow version: 1.0.0 Sorry for reopening this, but I'm having the same issue as @thomwolf when streaming a gzipped JSON Lines file from the hub. Or is that just not possible by definition? I installed `datasets`in editable mode from source (so probably includes the fix from #2608 ?): ``` >>> datasets.__version__ '1.9.1.dev0' ``` ``` >>> msmarco = datasets.load_dataset("webis/msmarco", "corpus", streaming=True) Using custom data configuration corpus-174d3b7155eb68db >>> msmarco_iter = iter(msmarco['train']) >>> print(next(msmarco_iter)) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/media/ssd/TREC/msmarco/datasets/src/datasets/iterable_dataset.py", line 338, in __iter__ for key, example in self._iter(): File "/media/ssd/TREC/msmarco/datasets/src/datasets/iterable_dataset.py", line 335, in _iter yield from ex_iterable File "/media/ssd/TREC/msmarco/datasets/src/datasets/iterable_dataset.py", line 78, in __iter__ for key, example in self.generate_examples_fn(**self.kwargs): File "/home/christopher/.cache/huggingface/modules/datasets_modules/datasets/msmarco/eb63dff8d83107168e973c7a655a6082d37e08d71b4ac39a0afada479c138745/msmarco.py", line 96, in _generate_examples with gzip.open(file, "rt", encoding="utf-8") as f: File "/usr/lib/python3.6/gzip.py", line 53, in open binary_file = GzipFile(filename, gz_mode, compresslevel) File "/usr/lib/python3.6/gzip.py", line 163, in __init__ fileobj = self.myfileobj = builtins.open(filename, mode or 'rb') FileNotFoundError: [Errno 2] No such file or directory: 'https://huggingface.co/datasets/webis/msmarco/resolve/main/msmarco_doc_00.gz' ``` Loading the dataset without streaming set to True, works fine.
[ -0.013050680048763752, 0.3321338891983032, 0.05095060542225838, 0.003450236516073346, 0.29703226685523987, 0.11756797134876251, 0.16261206567287445, 0.17716190218925476, -0.09720505028963089, -0.07562919706106186, 0.014845028519630432, 0.03927469998598099, -0.1590888798236847, 0.10177016258239746, 0.12363209575414658, -0.10931862145662308, -0.08820471912622452, -0.02619943954050541, 0.15219329297542572, 0.04962679743766785, 0.0516977421939373, 0.1752551794052124, 0.052249375730752945, -0.02279265783727169, 0.03965655341744423, -0.048391133546829224, 0.0030387130100280046, 0.0392833836376667, -0.15351073443889618, -0.0520106665790081, -0.02507384680211544, -0.0433337539434433, 0.12332580983638763, 0.18770116567611694, 0.0000054769261623732746, 0.10518169403076172, 0.08560695499181747, -0.05225317180156708, -0.09986841678619385, 0.023871079087257385, 0.12037180364131927, -0.14940880239009857, -0.053031641989946365, 0.11445707082748413, 0.04768259450793266, -0.23636282980442047, -0.03909813240170479, -0.04709157720208168, 0.031507231295108795, 0.03985871002078056, 0.024358363822102547, 0.00995781272649765, -0.017131613567471504, -0.020730992779135704, -0.011945562437176704, 0.05034676566720009, -0.15467225015163422, 0.043581560254096985, -0.2517930269241333, 0.08143892884254456, -0.034321822226047516, -0.010064707137644291, -0.08397714793682098, -0.006631870754063129, -0.0960683524608612, 0.08426422625780106, -0.09810923784971237, -0.23676171898841858, -0.14943628013134003, 0.13090771436691284, -0.0652613714337349, -0.11588367819786072, -0.2590557634830475, -0.08074989914894104, -0.05642077326774597, -0.28268080949783325, -0.1161506399512291, 0.3035583198070526, -0.07761918008327484, 0.06327227503061295, -0.11191163957118988, 0.12565745413303375, -0.14925332367420197, 0.03454210236668587, -0.020610779523849487, 0.08116404712200165, -0.029084986075758934, 0.09104619175195694, -0.017134619876742363, 0.061112117022275925, -0.07802040129899979, -0.1272922158241272, 0.07539757341146469, -0.11830179393291473, -0.01543155126273632, -0.022429073229432106, 0.05686571076512337, -0.18274977803230286, -0.08304328471422195, -0.02299298718571663, 0.04079271852970123, 0.015133495442569256, 0.09669219702482224, -0.07488525658845901, 0.0667937770485878, 0.0629008486866951, 0.014905431307852268, -0.04784592613577843, 0.06190210208296776, 0.1181906908750534, 0.09647957980632782, 0.0176596287637949, -0.09334893524646759, -0.02664845995604992, 0.010572836734354496, -0.042860034853219986, 0.1930573731660843, 0.09825030714273453, 0.06338638812303543, 0.05617696791887283, -0.19245021045207977, 0.04847273230552673, -0.01473598089069128, 0.019973594695329666, 0.07953614741563797, 0.017242806032299995, -0.17976894974708557, 0.20166410505771637, -0.052986085414886475, 0.01571006327867508, 0.11442722380161285, -0.0002611203526612371, 0.011233268305659294, 0.018073026090860367, 0.2504867911338806, -0.23057600855827332, 0.06442879140377045, -0.09542615711688995, -0.022042348980903625, 0.0002750986604951322, 0.12095315009355545, -0.021059438586235046, 0.07653014361858368, 0.05383000150322914, -0.03939582780003548, -0.026829063892364502, 0.14261266589164734, 0.048452842980623245, -0.12410180270671844, -0.06438232213258743, -0.10949280112981796, 0.0550047792494297, 0.0007813501288183033, 0.11535415053367615, -0.07041217386722565, -0.05127614364027977, 0.09539449959993362, -0.02349732629954815, -0.17675743997097015, -0.16447223722934723, 0.05628657341003418, -0.09476950019598007, 0.0506737120449543, -0.0064802756533026695, 0.12975528836250305, 0.15923480689525604, -0.10564754158258438, -0.02405960112810135, 0.04587436467409134, 0.10950983315706253, 0.3451312184333801, 0.037410177290439606, -0.11278659105300903, -0.010245824232697487, -0.2444836050271988, 0.1519801914691925, -0.018513379618525505, 0.03850727528333664, -0.08406911045312881, 0.1424430012702942, 0.06115041300654411, 0.10354230552911758, 0.20004278421401978, -0.055967289954423904, 0.1893511712551117, -0.06340920925140381, 0.17368091642856598, 0.07961192727088928, -0.0257012490183115, -0.0666332021355629, -0.0722150132060051, 0.009552380070090294, 0.015605582855641842, -0.03591525927186012, -0.13762617111206055, 0.19214294850826263, -0.06482421606779099, -0.18770752847194672, 0.11038335412740707, -0.12289993464946747, 0.1671590358018875, -0.08282172679901123, 0.0682358518242836, -0.05014275386929512, 0.027591638267040253, 0.184895321726799, -0.08113452792167664, -0.07992630451917648, -0.01172390952706337, -0.15456657111644745, -0.1368456333875656, -0.020694075152277946, 0.04650263488292694, 0.09419437497854233, -0.09098304808139801, -0.07103943824768066, -0.007377780042588711, 0.07061932235956192, -0.01847218908369541, 0.0918019711971283, -0.15451033413410187, 0.09024261683225632, 0.04270002990961075, 0.09290669858455658, -0.010538834147155285, 0.08825423568487167, -0.032845593988895416, -0.06612185388803482, 0.13958390057086945, 0.10671969503164291, -0.006251942366361618, -0.01372743770480156, 0.06690086424350739, -0.041909243911504745, -0.056764498353004456, 0.06160050630569458, 0.0029229619540274143, -0.1679728478193283, -0.04676074907183647, 0.05255212262272835, -0.025534342974424362, 0.058065153658390045, -0.06886260956525803, 0.029331019148230553, 0.041906438767910004, -0.09181944280862808, -0.008836343884468079, 0.18685610592365265, 0.04553470388054848, -0.06212669983506203, 0.14977335929870605, 0.046028025448322296, -0.2856329679489136, 0.20841914415359497, 0.19341421127319336, -0.151456817984581, -0.05503389611840248, 0.10880175977945328, 0.017720313742756844, -0.012920062988996506, 0.3264993727207184, -0.0012274011969566345, -0.16031019389629364, 0.15679217875003815, 0.14003276824951172, -0.15903843939304352, 0.09756627678871155, 0.09394686669111252, 0.13737282156944275, 0.1366274356842041, 0.27912935614585876, -0.05856061726808548, -0.091515451669693, -0.15767371654510498, -0.10824915766716003, -0.08466345816850662, -0.12771083414554596, 0.08376763761043549, 0.041900333017110825, 0.06759283691644669, -0.1705734133720398, 0.1269860863685608, -0.04471321403980255, -0.15649543702602386, 0.15405213832855225, 0.09562002122402191, -0.04543464630842209, -0.055987969040870667, -0.00860143918544054, -0.042846906930208206, 0.054744333028793335, -0.10175520926713943, 0.11876575648784637, 0.045782752335071564, 0.05115441232919693, 0.02393924631178379, 0.08436914533376694, -0.19833752512931824, 0.13483773171901703, -0.10137388855218887, -0.1467091590166092, 0.009253053925931454, -0.07297816127538681, -0.010470617562532425, -0.03458915650844574, -0.10891491174697876, 0.17081372439861298, 0.07396110892295837, -0.12420830875635147, -0.10470212996006012, 0.03435990959405899, 0.02092926949262619, 0.09864607453346252, 0.010580428875982761, -0.08853183686733246, 0.05859147384762764, 0.0751183032989502, -0.22253870964050293, 0.2325812727212906, -0.03226453810930252, 0.12628374993801117, 0.13332293927669525, -0.11035308986902237, -0.03767688199877739, -0.07435346394777298, 0.0013138549402356148, -0.03333268314599991, -0.26508966088294983, 0.02414759434759617, 0.007004585117101669, -0.0019244392169639468, 0.08095993101596832, -0.15648995339870453, -0.04654476046562195, 0.1058628037571907, -0.16330675780773163, -0.07809191942214966, -0.16212277114391327, 0.31147482991218567, -0.17402368783950806, -0.04498746618628502, 0.006699653808027506, -0.056834518909454346, 0.009203117340803146, 0.09103627502918243, -0.13917946815490723, 0.11807284504175186, 0.02627929486334324, -0.07078085839748383, -0.01599837839603424, -0.10244524478912354, -0.12921901047229767, -0.060056667774915695, -0.24106742441654205, -0.11070377379655838, 0.06149463728070259, -0.11620838940143585, 0.10203894972801208, -0.054319825023412704, 0.25673308968544006, 0.17637000977993011, 0.06088944897055626, -0.007630171719938517, 0.22102655470371246, -0.09762217104434967, 0.16019032895565033, 0.19116173684597015, 0.04652153328061104, 0.03589576110243797, -0.10396762192249298, 0.06143810600042343, -0.08326339721679688, -0.042133867740631104, -0.014014018699526787, -0.047932352870702744, -0.030070293694734573, -0.054346390068531036, 0.03440654277801514, 0.06153907999396324, 0.0370287261903286, 0.12384503334760666, -0.0198978278785944, 0.03231678158044815, 0.07688314467668533, 0.09564147144556046, -0.035993535071611404, 0.003971844911575317, 0.023674670606851578, -0.006998562254011631, 0.21781788766384125, 0.11009242385625839, 0.08900835365056992, 0.015680013224482536, -0.2548406422138214, 0.0399697981774807, -0.04422162473201752, 0.2748972177505493, -0.04391001537442207, -0.037358347326517105, 0.11075139790773392, 0.06476934254169464, 0.055675406008958817, -0.11403492838144302, -0.17245645821094513, 0.09160839021205902, 0.11818111687898636, 0.10012364387512207, -0.06291849911212921, -0.0435105562210083, 0.08252748101949692, 0.07243191450834274, 0.08008865267038345, -0.06407736986875534, 0.05386131629347801, 0.11854994297027588, -0.004567576106637716, 0.20506551861763, -0.08288896828889847, 0.028547845780849457, -0.11690797656774521, -0.1506175994873047, -0.150948166847229, -0.04901982843875885, 0.04938195273280144, -0.16645768284797668, -0.053436070680618286, -0.0859929695725441, -0.03933895006775856, 0.0039754100143909454, -0.07210168242454529, 0.17533469200134277, 0.01898347958922386, -0.06789014488458633, 0.01769590750336647, 0.24010273814201355, -0.00992003083229065, 0.35903123021125793, 0.2032575160264969, -0.1848895102739334, -0.006426539737731218, -0.07196222245693207, 0.11401280760765076, 0.038972947746515274, -0.12618596851825714, 0.005449601449072361, -0.11000289022922516, -0.1510230153799057, 0.12231160700321198, -0.039866842329502106, 0.0997539535164833, -0.22275707125663757, -0.16203750669956207, -0.18961329758167267, -0.16437914967536926, 0.04622964560985565, 0.0036373918410390615, 0.21930474042892456, -0.3529800772666931, 0.020041266456246376, 0.09189461916685104, -0.25612422823905945, -0.10881204903125763, 0.13689947128295898, 0.03294414281845093, 0.040098052471876144, 0.05630268156528473, 0.3064700961112976, -0.3455020785331726, 0.15106721222400665, 0.1161593347787857, -0.1059260293841362, 0.09532196819782257, -0.15160521864891052, 0.04461618885397911, 0.1785631626844406, -0.11204061657190323, -0.08014722913503647, -0.10172402113676071, 0.051765915006399155, 0.03612861782312393, 0.24523131549358368, -0.22679325938224792, -0.004700921475887299, -0.07479462772607803, 0.02178545482456684, 0.02696407400071621, 0.06307022273540497, 0.09347773343324661, -0.14067190885543823, 0.0019558847416192293, 0.11062568426132202, -0.19441615045070648, 0.039818741381168365, -0.021742958575487137, 0.08294929563999176, -0.14603866636753082, -0.0688270851969719, 0.0032435234170407057, -0.038942571729421616, -0.013602192513644695, 0.022834239527583122, -0.010665939189493656, 0.0641460195183754, -0.0923173800110817, -0.07120545953512192, -0.14450041949748993, -0.03903293237090111, -0.12798839807510376, 0.015612589195370674, 0.009671826846897602, 0.19791154563426971, -0.12366015464067459, -0.13586892187595367, 0.028031399473547935, 0.01019954588264227, 0.039391279220581055, -0.05322340503334999, 0.03773900866508484, 0.010825349017977715, -0.11703233420848846, 0.09831275045871735, -0.005489211529493332, 0.0364973358809948, -0.13335086405277252, -0.16469649970531464, -0.10613813996315002, -0.029106248170137405, -0.14308208227157593, 0.12997423112392426, 0.13940775394439697, 0.11912314593791962, 0.13859227299690247, 0.0846930593252182, 0.01124625839293003, 0.018559401854872704, 0.09015411883592606, -0.014598867855966091, -0.04925296828150749, -0.03696654736995697, 0.20360858738422394, 0.10732314735651016, -0.10212062299251556, -0.08890056610107422, -0.033230021595954895, -0.01237765233963728, 0.08899430185556412, 0.005894345697015524, -0.03618881478905678, -0.13655012845993042, -0.022249789908528328, 0.04236021637916565, 0.25260889530181885, 0.06477634608745575, 0.00012250221334397793, -0.12026656419038773, -2.4652746705353334e-32, -0.06494457274675369, -0.026326632127165794, -0.13117802143096924, -0.09208662062883377, -0.14212022721767426, -0.021789833903312683, -0.06331093609333038, -0.06332758814096451, -0.14144974946975708, -0.058364953845739365, -0.15073975920677185, 0.017905499786138535, -0.01367240771651268, 0.010530857369303703, -0.0034185440745204687, -0.025835122913122177, 0.02876359038054943, -0.08769678324460983, 0.023999229073524475, 0.1416638344526291, 0.1264689564704895, 0.05887608230113983, 0.08373764157295227, 0.03950463980436325, -0.11818872392177582, -0.04186074808239937, -0.1603701114654541, -0.21220900118350983, 0.02787967212498188, -0.05928250402212143, -0.1426043063402176, 0.113641157746315, 0.042173512279987335, -0.22404681146144867, -0.16718000173568726, -0.09025493264198303, -0.20011508464813232, 0.03813079372048378, -0.17442059516906738, 0.11200837045907974, 0.03679988905787468, 0.10631731152534485, 0.15912149846553802, 0.04807349666953087, 0.11300767958164215, 0.19044411182403564, -0.1662432849407196, -0.05269755423069, -0.18221798539161682, -0.09450962394475937, 0.10182421654462814, 0.02290068008005619, -0.16140855848789215, 0.10351742804050446, 0.14294977486133575, -0.007093603722751141, 0.05914824455976486, 0.12375441193580627, 0.0370950773358345, 0.08934883028268814, 0.09377532452344894, -0.032146356999874115, 0.02951466292142868, -0.29357093572616577, -0.013828854076564312, 0.014147280715405941, -0.07376882433891296, 0.03161792829632759, 0.16640570759773254, 0.08186265081167221, -0.05955880135297775, -0.002889776136726141, -0.10563192516565323, -0.0648178979754448, 0.06725183874368668, -0.16221117973327637, 0.009935534559190273, -0.22465287148952484, 0.016540784388780594, -0.04060930013656616, -0.020798634737730026, 0.026391945779323578, 0.09398853778839111, 0.0010574047919362783, -0.07308177649974823, -0.0007969294092617929, 0.07022874802350998, -0.016506008803844452, -0.04737192019820213, -0.043627627193927765, 0.2091379165649414, -0.07827477902173996, -0.007619393523782492, -0.10601645708084106, -0.016083847731351852, -0.030220551416277885, -0.0895085260272026, 0.07428406178951263, -0.031095877289772034, 0.034598249942064285, 0.021817367523908615, -0.0682489275932312, -0.030212219804525375, -0.17723296582698822, 0.009230646304786205, 0.10259546339511871, 0.25284096598625183, 0.0022685653530061245, -0.03073444403707981, -0.004218969494104385, 0.03179698437452316, 0.008397300727665424, 0.22627520561218262, -0.003260810626670718, 0.18346747756004333, -0.0487491637468338, -0.121607206761837, -0.03955286368727684, 0.024915559217333794, 0.09280011057853699, -0.026640336960554123, -0.016647782176733017, -0.16242876648902893, 0.07721703499555588, 0.026676306501030922, -0.05939062684774399, -0.12228021025657654, -0.02430032379925251, -0.017691917717456818, 0.0018250211142003536, -0.13164766132831573, -0.049199119210243225, 6.974164534767624e-7, -0.07037203758955002, 0.07233425974845886, 0.03331367298960686, -0.058972012251615524, -0.06321147084236145, -0.04287492483854294, -0.10805834829807281, 0.04953597113490105, -0.10432136803865433, 0.23653271794319153, 0.21139568090438843, -0.10313241928815842, 0.03633330017328262, -0.06510037928819656, 0.1135205328464508, -0.09462807327508926, -0.09198486059904099, 0.18875516951084137, -0.19818097352981567, -0.001962807262316346, 0.11369167268276215, 0.1562286764383316, 0.04523953050374985, 0.09404032677412033, 0.17058326303958893, -0.008648624643683434, -0.0840834528207779, 0.005447775591164827, -0.017587516456842422, -0.05081535130739212, -0.05025843158364296, 0.035804539918899536, -0.0059457155875861645, 0.044625189155340195, 0.08404882252216339, -0.07754606008529663, -0.03633495420217514, -0.0164008941501379, 0.21388089656829834, 0.01595013216137886, -0.004076824057847261, 0.14408235251903534, 0.03563544154167175, -0.006180913187563419, 0.06249484047293663, 0.09293998032808304, -0.10248497873544693, -0.0011057377560064197, -0.1687840223312378, -0.020963964983820915, 0.06349314004182816, 0.14963053166866302, 0.1848849058151245, 0.12016241252422333, -0.11582982540130615, 0.035473164170980453, -0.08415216952562332, 0.010363290086388588, 0.18211151659488678, -0.21829120814800262, -0.09838244318962097, 0.11876256763935089, -0.21687404811382294, 0.018164172768592834, 0.12979035079479218, 0.10126355290412903, -0.06859979033470154, 3.20563171156766e-36, -0.09690126031637192, 0.12185631692409515, 0.05352877825498581, -0.11296756565570831, -0.001132490928284824, -0.0759453997015953, 0.2560449242591858, 0.008188844658434391, -0.028137287124991417, 0.04189923405647278, -0.060940492898225784 ]
https://github.com/huggingface/datasets/issues/2607
Streaming local gzip compressed JSON line files is not working
Hi ! To make the streaming work, we extend `open` in the dataset builder to work with urls. Therefore you just need to use `open` before using `gzip.open`: ```diff - with gzip.open(file, "rt", encoding="utf-8") as f: + with gzip.open(open(file, "rb"), "rt", encoding="utf-8") as f: ``` You can see that it is the case for oscar.py and c4.py for example: https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/datasets/oscar/oscar.py#L358-L358 https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/datasets/c4/c4.py#L88-L88
## Describe the bug Using streaming to iterate on local gzip compressed JSON files raise a file not exist error ## Steps to reproduce the bug ```python from datasets import load_dataset streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True) next(iter(streamed_dataset)) ``` ## Actual results ``` FileNotFoundError Traceback (most recent call last) <ipython-input-6-27a664e29784> in <module> ----> 1 next(iter(streamed_dataset)) ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 336 337 def __iter__(self): --> 338 for key, example in self._iter(): 339 if self.features: 340 # we encode the example for ClassLabel feature types for example ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in _iter(self) 333 else: 334 ex_iterable = self._ex_iterable --> 335 yield from ex_iterable 336 337 def __iter__(self): ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in wrapper(**kwargs) 282 def wrapper(**kwargs): 283 python_formatter = PythonFormatter() --> 284 for key, table in generate_tables_fn(**kwargs): 285 batch = python_formatter.format_batch(table) 286 for i, example in enumerate(_batch_to_examples(batch)): ~/Documents/GitHub/datasets/src/datasets/packaged_modules/json/json.py in _generate_tables(self, files, original_files) 85 file, 86 read_options=self.config.pa_read_options, ---> 87 parse_options=self.config.pa_parse_options, 88 ) 89 except pa.ArrowInvalid as err: ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json.read_json() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json._get_reader() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_input_stream() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_native_file() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile.__cinit__() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile._open_readable() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() FileNotFoundError: [Errno 2] Failed to open local file 'gzip://file-000000000000.json::/Users/thomwolf/github-dataset/file-000000000000.json.gz'. Detail: [errno 2] No such file or directory ``` ## Environment info - `datasets` version: 1.9.1.dev0 - Platform: Darwin-19.6.0-x86_64-i386-64bit - Python version: 3.7.7 - PyArrow version: 1.0.0
61
Streaming local gzip compressed JSON line files is not working ## Describe the bug Using streaming to iterate on local gzip compressed JSON files raise a file not exist error ## Steps to reproduce the bug ```python from datasets import load_dataset streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True) next(iter(streamed_dataset)) ``` ## Actual results ``` FileNotFoundError Traceback (most recent call last) <ipython-input-6-27a664e29784> in <module> ----> 1 next(iter(streamed_dataset)) ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 336 337 def __iter__(self): --> 338 for key, example in self._iter(): 339 if self.features: 340 # we encode the example for ClassLabel feature types for example ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in _iter(self) 333 else: 334 ex_iterable = self._ex_iterable --> 335 yield from ex_iterable 336 337 def __iter__(self): ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in wrapper(**kwargs) 282 def wrapper(**kwargs): 283 python_formatter = PythonFormatter() --> 284 for key, table in generate_tables_fn(**kwargs): 285 batch = python_formatter.format_batch(table) 286 for i, example in enumerate(_batch_to_examples(batch)): ~/Documents/GitHub/datasets/src/datasets/packaged_modules/json/json.py in _generate_tables(self, files, original_files) 85 file, 86 read_options=self.config.pa_read_options, ---> 87 parse_options=self.config.pa_parse_options, 88 ) 89 except pa.ArrowInvalid as err: ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json.read_json() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json._get_reader() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_input_stream() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_native_file() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile.__cinit__() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile._open_readable() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() FileNotFoundError: [Errno 2] Failed to open local file 'gzip://file-000000000000.json::/Users/thomwolf/github-dataset/file-000000000000.json.gz'. Detail: [errno 2] No such file or directory ``` ## Environment info - `datasets` version: 1.9.1.dev0 - Platform: Darwin-19.6.0-x86_64-i386-64bit - Python version: 3.7.7 - PyArrow version: 1.0.0 Hi ! To make the streaming work, we extend `open` in the dataset builder to work with urls. Therefore you just need to use `open` before using `gzip.open`: ```diff - with gzip.open(file, "rt", encoding="utf-8") as f: + with gzip.open(open(file, "rb"), "rt", encoding="utf-8") as f: ``` You can see that it is the case for oscar.py and c4.py for example: https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/datasets/oscar/oscar.py#L358-L358 https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/datasets/c4/c4.py#L88-L88
[ -0.013050680048763752, 0.3321338891983032, 0.05095060542225838, 0.003450236516073346, 0.29703226685523987, 0.11756797134876251, 0.16261206567287445, 0.17716190218925476, -0.09720505028963089, -0.07562919706106186, 0.014845028519630432, 0.03927469998598099, -0.1590888798236847, 0.10177016258239746, 0.12363209575414658, -0.10931862145662308, -0.08820471912622452, -0.02619943954050541, 0.15219329297542572, 0.04962679743766785, 0.0516977421939373, 0.1752551794052124, 0.052249375730752945, -0.02279265783727169, 0.03965655341744423, -0.048391133546829224, 0.0030387130100280046, 0.0392833836376667, -0.15351073443889618, -0.0520106665790081, -0.02507384680211544, -0.0433337539434433, 0.12332580983638763, 0.18770116567611694, 0.0000054769261623732746, 0.10518169403076172, 0.08560695499181747, -0.05225317180156708, -0.09986841678619385, 0.023871079087257385, 0.12037180364131927, -0.14940880239009857, -0.053031641989946365, 0.11445707082748413, 0.04768259450793266, -0.23636282980442047, -0.03909813240170479, -0.04709157720208168, 0.031507231295108795, 0.03985871002078056, 0.024358363822102547, 0.00995781272649765, -0.017131613567471504, -0.020730992779135704, -0.011945562437176704, 0.05034676566720009, -0.15467225015163422, 0.043581560254096985, -0.2517930269241333, 0.08143892884254456, -0.034321822226047516, -0.010064707137644291, -0.08397714793682098, -0.006631870754063129, -0.0960683524608612, 0.08426422625780106, -0.09810923784971237, -0.23676171898841858, -0.14943628013134003, 0.13090771436691284, -0.0652613714337349, -0.11588367819786072, -0.2590557634830475, -0.08074989914894104, -0.05642077326774597, -0.28268080949783325, -0.1161506399512291, 0.3035583198070526, -0.07761918008327484, 0.06327227503061295, -0.11191163957118988, 0.12565745413303375, -0.14925332367420197, 0.03454210236668587, -0.020610779523849487, 0.08116404712200165, -0.029084986075758934, 0.09104619175195694, -0.017134619876742363, 0.061112117022275925, -0.07802040129899979, -0.1272922158241272, 0.07539757341146469, -0.11830179393291473, -0.01543155126273632, -0.022429073229432106, 0.05686571076512337, -0.18274977803230286, -0.08304328471422195, -0.02299298718571663, 0.04079271852970123, 0.015133495442569256, 0.09669219702482224, -0.07488525658845901, 0.0667937770485878, 0.0629008486866951, 0.014905431307852268, -0.04784592613577843, 0.06190210208296776, 0.1181906908750534, 0.09647957980632782, 0.0176596287637949, -0.09334893524646759, -0.02664845995604992, 0.010572836734354496, -0.042860034853219986, 0.1930573731660843, 0.09825030714273453, 0.06338638812303543, 0.05617696791887283, -0.19245021045207977, 0.04847273230552673, -0.01473598089069128, 0.019973594695329666, 0.07953614741563797, 0.017242806032299995, -0.17976894974708557, 0.20166410505771637, -0.052986085414886475, 0.01571006327867508, 0.11442722380161285, -0.0002611203526612371, 0.011233268305659294, 0.018073026090860367, 0.2504867911338806, -0.23057600855827332, 0.06442879140377045, -0.09542615711688995, -0.022042348980903625, 0.0002750986604951322, 0.12095315009355545, -0.021059438586235046, 0.07653014361858368, 0.05383000150322914, -0.03939582780003548, -0.026829063892364502, 0.14261266589164734, 0.048452842980623245, -0.12410180270671844, -0.06438232213258743, -0.10949280112981796, 0.0550047792494297, 0.0007813501288183033, 0.11535415053367615, -0.07041217386722565, -0.05127614364027977, 0.09539449959993362, -0.02349732629954815, -0.17675743997097015, -0.16447223722934723, 0.05628657341003418, -0.09476950019598007, 0.0506737120449543, -0.0064802756533026695, 0.12975528836250305, 0.15923480689525604, -0.10564754158258438, -0.02405960112810135, 0.04587436467409134, 0.10950983315706253, 0.3451312184333801, 0.037410177290439606, -0.11278659105300903, -0.010245824232697487, -0.2444836050271988, 0.1519801914691925, -0.018513379618525505, 0.03850727528333664, -0.08406911045312881, 0.1424430012702942, 0.06115041300654411, 0.10354230552911758, 0.20004278421401978, -0.055967289954423904, 0.1893511712551117, -0.06340920925140381, 0.17368091642856598, 0.07961192727088928, -0.0257012490183115, -0.0666332021355629, -0.0722150132060051, 0.009552380070090294, 0.015605582855641842, -0.03591525927186012, -0.13762617111206055, 0.19214294850826263, -0.06482421606779099, -0.18770752847194672, 0.11038335412740707, -0.12289993464946747, 0.1671590358018875, -0.08282172679901123, 0.0682358518242836, -0.05014275386929512, 0.027591638267040253, 0.184895321726799, -0.08113452792167664, -0.07992630451917648, -0.01172390952706337, -0.15456657111644745, -0.1368456333875656, -0.020694075152277946, 0.04650263488292694, 0.09419437497854233, -0.09098304808139801, -0.07103943824768066, -0.007377780042588711, 0.07061932235956192, -0.01847218908369541, 0.0918019711971283, -0.15451033413410187, 0.09024261683225632, 0.04270002990961075, 0.09290669858455658, -0.010538834147155285, 0.08825423568487167, -0.032845593988895416, -0.06612185388803482, 0.13958390057086945, 0.10671969503164291, -0.006251942366361618, -0.01372743770480156, 0.06690086424350739, -0.041909243911504745, -0.056764498353004456, 0.06160050630569458, 0.0029229619540274143, -0.1679728478193283, -0.04676074907183647, 0.05255212262272835, -0.025534342974424362, 0.058065153658390045, -0.06886260956525803, 0.029331019148230553, 0.041906438767910004, -0.09181944280862808, -0.008836343884468079, 0.18685610592365265, 0.04553470388054848, -0.06212669983506203, 0.14977335929870605, 0.046028025448322296, -0.2856329679489136, 0.20841914415359497, 0.19341421127319336, -0.151456817984581, -0.05503389611840248, 0.10880175977945328, 0.017720313742756844, -0.012920062988996506, 0.3264993727207184, -0.0012274011969566345, -0.16031019389629364, 0.15679217875003815, 0.14003276824951172, -0.15903843939304352, 0.09756627678871155, 0.09394686669111252, 0.13737282156944275, 0.1366274356842041, 0.27912935614585876, -0.05856061726808548, -0.091515451669693, -0.15767371654510498, -0.10824915766716003, -0.08466345816850662, -0.12771083414554596, 0.08376763761043549, 0.041900333017110825, 0.06759283691644669, -0.1705734133720398, 0.1269860863685608, -0.04471321403980255, -0.15649543702602386, 0.15405213832855225, 0.09562002122402191, -0.04543464630842209, -0.055987969040870667, -0.00860143918544054, -0.042846906930208206, 0.054744333028793335, -0.10175520926713943, 0.11876575648784637, 0.045782752335071564, 0.05115441232919693, 0.02393924631178379, 0.08436914533376694, -0.19833752512931824, 0.13483773171901703, -0.10137388855218887, -0.1467091590166092, 0.009253053925931454, -0.07297816127538681, -0.010470617562532425, -0.03458915650844574, -0.10891491174697876, 0.17081372439861298, 0.07396110892295837, -0.12420830875635147, -0.10470212996006012, 0.03435990959405899, 0.02092926949262619, 0.09864607453346252, 0.010580428875982761, -0.08853183686733246, 0.05859147384762764, 0.0751183032989502, -0.22253870964050293, 0.2325812727212906, -0.03226453810930252, 0.12628374993801117, 0.13332293927669525, -0.11035308986902237, -0.03767688199877739, -0.07435346394777298, 0.0013138549402356148, -0.03333268314599991, -0.26508966088294983, 0.02414759434759617, 0.007004585117101669, -0.0019244392169639468, 0.08095993101596832, -0.15648995339870453, -0.04654476046562195, 0.1058628037571907, -0.16330675780773163, -0.07809191942214966, -0.16212277114391327, 0.31147482991218567, -0.17402368783950806, -0.04498746618628502, 0.006699653808027506, -0.056834518909454346, 0.009203117340803146, 0.09103627502918243, -0.13917946815490723, 0.11807284504175186, 0.02627929486334324, -0.07078085839748383, -0.01599837839603424, -0.10244524478912354, -0.12921901047229767, -0.060056667774915695, -0.24106742441654205, -0.11070377379655838, 0.06149463728070259, -0.11620838940143585, 0.10203894972801208, -0.054319825023412704, 0.25673308968544006, 0.17637000977993011, 0.06088944897055626, -0.007630171719938517, 0.22102655470371246, -0.09762217104434967, 0.16019032895565033, 0.19116173684597015, 0.04652153328061104, 0.03589576110243797, -0.10396762192249298, 0.06143810600042343, -0.08326339721679688, -0.042133867740631104, -0.014014018699526787, -0.047932352870702744, -0.030070293694734573, -0.054346390068531036, 0.03440654277801514, 0.06153907999396324, 0.0370287261903286, 0.12384503334760666, -0.0198978278785944, 0.03231678158044815, 0.07688314467668533, 0.09564147144556046, -0.035993535071611404, 0.003971844911575317, 0.023674670606851578, -0.006998562254011631, 0.21781788766384125, 0.11009242385625839, 0.08900835365056992, 0.015680013224482536, -0.2548406422138214, 0.0399697981774807, -0.04422162473201752, 0.2748972177505493, -0.04391001537442207, -0.037358347326517105, 0.11075139790773392, 0.06476934254169464, 0.055675406008958817, -0.11403492838144302, -0.17245645821094513, 0.09160839021205902, 0.11818111687898636, 0.10012364387512207, -0.06291849911212921, -0.0435105562210083, 0.08252748101949692, 0.07243191450834274, 0.08008865267038345, -0.06407736986875534, 0.05386131629347801, 0.11854994297027588, -0.004567576106637716, 0.20506551861763, -0.08288896828889847, 0.028547845780849457, -0.11690797656774521, -0.1506175994873047, -0.150948166847229, -0.04901982843875885, 0.04938195273280144, -0.16645768284797668, -0.053436070680618286, -0.0859929695725441, -0.03933895006775856, 0.0039754100143909454, -0.07210168242454529, 0.17533469200134277, 0.01898347958922386, -0.06789014488458633, 0.01769590750336647, 0.24010273814201355, -0.00992003083229065, 0.35903123021125793, 0.2032575160264969, -0.1848895102739334, -0.006426539737731218, -0.07196222245693207, 0.11401280760765076, 0.038972947746515274, -0.12618596851825714, 0.005449601449072361, -0.11000289022922516, -0.1510230153799057, 0.12231160700321198, -0.039866842329502106, 0.0997539535164833, -0.22275707125663757, -0.16203750669956207, -0.18961329758167267, -0.16437914967536926, 0.04622964560985565, 0.0036373918410390615, 0.21930474042892456, -0.3529800772666931, 0.020041266456246376, 0.09189461916685104, -0.25612422823905945, -0.10881204903125763, 0.13689947128295898, 0.03294414281845093, 0.040098052471876144, 0.05630268156528473, 0.3064700961112976, -0.3455020785331726, 0.15106721222400665, 0.1161593347787857, -0.1059260293841362, 0.09532196819782257, -0.15160521864891052, 0.04461618885397911, 0.1785631626844406, -0.11204061657190323, -0.08014722913503647, -0.10172402113676071, 0.051765915006399155, 0.03612861782312393, 0.24523131549358368, -0.22679325938224792, -0.004700921475887299, -0.07479462772607803, 0.02178545482456684, 0.02696407400071621, 0.06307022273540497, 0.09347773343324661, -0.14067190885543823, 0.0019558847416192293, 0.11062568426132202, -0.19441615045070648, 0.039818741381168365, -0.021742958575487137, 0.08294929563999176, -0.14603866636753082, -0.0688270851969719, 0.0032435234170407057, -0.038942571729421616, -0.013602192513644695, 0.022834239527583122, -0.010665939189493656, 0.0641460195183754, -0.0923173800110817, -0.07120545953512192, -0.14450041949748993, -0.03903293237090111, -0.12798839807510376, 0.015612589195370674, 0.009671826846897602, 0.19791154563426971, -0.12366015464067459, -0.13586892187595367, 0.028031399473547935, 0.01019954588264227, 0.039391279220581055, -0.05322340503334999, 0.03773900866508484, 0.010825349017977715, -0.11703233420848846, 0.09831275045871735, -0.005489211529493332, 0.0364973358809948, -0.13335086405277252, -0.16469649970531464, -0.10613813996315002, -0.029106248170137405, -0.14308208227157593, 0.12997423112392426, 0.13940775394439697, 0.11912314593791962, 0.13859227299690247, 0.0846930593252182, 0.01124625839293003, 0.018559401854872704, 0.09015411883592606, -0.014598867855966091, -0.04925296828150749, -0.03696654736995697, 0.20360858738422394, 0.10732314735651016, -0.10212062299251556, -0.08890056610107422, -0.033230021595954895, -0.01237765233963728, 0.08899430185556412, 0.005894345697015524, -0.03618881478905678, -0.13655012845993042, -0.022249789908528328, 0.04236021637916565, 0.25260889530181885, 0.06477634608745575, 0.00012250221334397793, -0.12026656419038773, -2.4652746705353334e-32, -0.06494457274675369, -0.026326632127165794, -0.13117802143096924, -0.09208662062883377, -0.14212022721767426, -0.021789833903312683, -0.06331093609333038, -0.06332758814096451, -0.14144974946975708, -0.058364953845739365, -0.15073975920677185, 0.017905499786138535, -0.01367240771651268, 0.010530857369303703, -0.0034185440745204687, -0.025835122913122177, 0.02876359038054943, -0.08769678324460983, 0.023999229073524475, 0.1416638344526291, 0.1264689564704895, 0.05887608230113983, 0.08373764157295227, 0.03950463980436325, -0.11818872392177582, -0.04186074808239937, -0.1603701114654541, -0.21220900118350983, 0.02787967212498188, -0.05928250402212143, -0.1426043063402176, 0.113641157746315, 0.042173512279987335, -0.22404681146144867, -0.16718000173568726, -0.09025493264198303, -0.20011508464813232, 0.03813079372048378, -0.17442059516906738, 0.11200837045907974, 0.03679988905787468, 0.10631731152534485, 0.15912149846553802, 0.04807349666953087, 0.11300767958164215, 0.19044411182403564, -0.1662432849407196, -0.05269755423069, -0.18221798539161682, -0.09450962394475937, 0.10182421654462814, 0.02290068008005619, -0.16140855848789215, 0.10351742804050446, 0.14294977486133575, -0.007093603722751141, 0.05914824455976486, 0.12375441193580627, 0.0370950773358345, 0.08934883028268814, 0.09377532452344894, -0.032146356999874115, 0.02951466292142868, -0.29357093572616577, -0.013828854076564312, 0.014147280715405941, -0.07376882433891296, 0.03161792829632759, 0.16640570759773254, 0.08186265081167221, -0.05955880135297775, -0.002889776136726141, -0.10563192516565323, -0.0648178979754448, 0.06725183874368668, -0.16221117973327637, 0.009935534559190273, -0.22465287148952484, 0.016540784388780594, -0.04060930013656616, -0.020798634737730026, 0.026391945779323578, 0.09398853778839111, 0.0010574047919362783, -0.07308177649974823, -0.0007969294092617929, 0.07022874802350998, -0.016506008803844452, -0.04737192019820213, -0.043627627193927765, 0.2091379165649414, -0.07827477902173996, -0.007619393523782492, -0.10601645708084106, -0.016083847731351852, -0.030220551416277885, -0.0895085260272026, 0.07428406178951263, -0.031095877289772034, 0.034598249942064285, 0.021817367523908615, -0.0682489275932312, -0.030212219804525375, -0.17723296582698822, 0.009230646304786205, 0.10259546339511871, 0.25284096598625183, 0.0022685653530061245, -0.03073444403707981, -0.004218969494104385, 0.03179698437452316, 0.008397300727665424, 0.22627520561218262, -0.003260810626670718, 0.18346747756004333, -0.0487491637468338, -0.121607206761837, -0.03955286368727684, 0.024915559217333794, 0.09280011057853699, -0.026640336960554123, -0.016647782176733017, -0.16242876648902893, 0.07721703499555588, 0.026676306501030922, -0.05939062684774399, -0.12228021025657654, -0.02430032379925251, -0.017691917717456818, 0.0018250211142003536, -0.13164766132831573, -0.049199119210243225, 6.974164534767624e-7, -0.07037203758955002, 0.07233425974845886, 0.03331367298960686, -0.058972012251615524, -0.06321147084236145, -0.04287492483854294, -0.10805834829807281, 0.04953597113490105, -0.10432136803865433, 0.23653271794319153, 0.21139568090438843, -0.10313241928815842, 0.03633330017328262, -0.06510037928819656, 0.1135205328464508, -0.09462807327508926, -0.09198486059904099, 0.18875516951084137, -0.19818097352981567, -0.001962807262316346, 0.11369167268276215, 0.1562286764383316, 0.04523953050374985, 0.09404032677412033, 0.17058326303958893, -0.008648624643683434, -0.0840834528207779, 0.005447775591164827, -0.017587516456842422, -0.05081535130739212, -0.05025843158364296, 0.035804539918899536, -0.0059457155875861645, 0.044625189155340195, 0.08404882252216339, -0.07754606008529663, -0.03633495420217514, -0.0164008941501379, 0.21388089656829834, 0.01595013216137886, -0.004076824057847261, 0.14408235251903534, 0.03563544154167175, -0.006180913187563419, 0.06249484047293663, 0.09293998032808304, -0.10248497873544693, -0.0011057377560064197, -0.1687840223312378, -0.020963964983820915, 0.06349314004182816, 0.14963053166866302, 0.1848849058151245, 0.12016241252422333, -0.11582982540130615, 0.035473164170980453, -0.08415216952562332, 0.010363290086388588, 0.18211151659488678, -0.21829120814800262, -0.09838244318962097, 0.11876256763935089, -0.21687404811382294, 0.018164172768592834, 0.12979035079479218, 0.10126355290412903, -0.06859979033470154, 3.20563171156766e-36, -0.09690126031637192, 0.12185631692409515, 0.05352877825498581, -0.11296756565570831, -0.001132490928284824, -0.0759453997015953, 0.2560449242591858, 0.008188844658434391, -0.028137287124991417, 0.04189923405647278, -0.060940492898225784 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
Hi ! If we want something more general, we could either 1. delete the extracted files after the arrow data generation automatically, or 2. delete each extracted file during the arrow generation right after it has been closed. Solution 2 is better to save disk space during the arrow generation. Is it what you had in mind ? The API could look like ```python load_dataset(..., delete_extracted_files_after_usage=True) ``` In terms of implementation, here are some directions we could take for each solution: 1. get the list of the extracted files from the DownloadManager and then delete them after the dataset is processed. This can be implemented in `download_and_prepare` I guess 2. maybe wrap and mock `open` in the builder to make it delete the file when the file is closed.
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
129
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. Hi ! If we want something more general, we could either 1. delete the extracted files after the arrow data generation automatically, or 2. delete each extracted file during the arrow generation right after it has been closed. Solution 2 is better to save disk space during the arrow generation. Is it what you had in mind ? The API could look like ```python load_dataset(..., delete_extracted_files_after_usage=True) ``` In terms of implementation, here are some directions we could take for each solution: 1. get the list of the extracted files from the DownloadManager and then delete them after the dataset is processed. This can be implemented in `download_and_prepare` I guess 2. maybe wrap and mock `open` in the builder to make it delete the file when the file is closed.
[ -0.05850028991699219, 0.25254175066947937, -0.11123177409172058, -0.011168988421559334, 0.06422014534473419, 0.02417038567364216, 0.025466738268733025, -0.05585359409451485, -0.026438938453793526, 0.19094523787498474, -0.043514788150787354, 0.17726022005081177, -0.16423246264457703, 0.058507442474365234, -0.07884737849235535, -0.10691606253385544, -0.05625233054161072, 0.09989017248153687, 0.030292080715298653, 0.009526005946099758, -0.11411909013986588, 0.1949252188205719, 0.14569982886314392, -0.07081829011440277, 0.28590551018714905, -0.0952291339635849, 0.05948587879538536, 0.035552505403757095, -0.09041758626699448, -0.13734164834022522, 0.15624310076236725, 0.046203795820474625, 0.08876348286867142, 0.027866560965776443, 0.000005264887477096636, 0.1304362714290619, 0.15571674704551697, -0.057195644825696945, -0.2857895791530609, 0.0030057968106120825, 0.022453855723142624, -0.09203410148620605, 0.06340029090642929, -0.022463206201791763, 0.06148730218410492, -0.1235852986574173, -0.007434357423335314, -0.28128594160079956, 0.026920758187770844, -0.11420657485723495, -0.10066510736942291, -0.0014523854479193687, -0.12523724138736725, -0.10658659785985947, 0.003751561976969242, 0.030694304034113884, 0.00601961137726903, 0.018725277855992317, -0.05325671657919884, -0.02336151711642742, -0.07687908411026001, 0.037445731461048126, 0.13764363527297974, 0.01761431060731411, 0.13271291553974152, -0.006492548622190952, -0.16063210368156433, -0.16944171488285065, 0.0031865383498370647, 0.03883211687207222, 0.08802089095115662, -0.19292190670967102, -0.043888553977012634, -0.03428205847740173, -0.07469938695430756, -0.19659754633903503, -0.11331446468830109, -0.023004809394478798, -0.007095766719430685, 0.10898763686418533, -0.008526626043021679, -0.035368721932172775, -0.15028682351112366, -0.04554831609129906, -0.09722539037466049, -0.00222169142216444, -0.06488598138093948, 0.10115606337785721, 0.14783413708209991, -0.0337764173746109, 0.03426255285739899, -0.02969621680676937, -0.13241881132125854, 0.07926689088344574, -0.06603287905454636, -0.06703793257474899, -0.04192991554737091, -0.1876951903104782, 0.027718642726540565, 0.04114646092057228, 0.2020915448665619, 0.018312394618988037, 0.004618889186531305, 0.1281043440103531, 0.104469433426857, -0.06786476820707321, 0.042430032044649124, -0.1497950702905655, 0.044524069875478745, -0.0419011227786541, 0.14613758027553558, 0.035435523837804794, 0.10619211196899414, -0.1296030879020691, 0.10430888086557388, 0.2067854255437851, -0.020542500540614128, 0.28703534603118896, -0.07690857350826263, -0.15955449640750885, 0.1391865760087967, 0.126820906996727, -0.15700118243694305, 0.07946295291185379, 0.018061667680740356, 0.0013887418899685144, -0.012098169885575771, 0.04653289169073105, -0.15235362946987152, 0.027978189289569855, 0.09034807235002518, 0.04821073263883591, 0.19055388867855072, -0.11154033243656158, 0.273150771856308, 0.16770532727241516, 0.019215570762753487, -0.15239252150058746, 0.012422917410731316, -0.06551847606897354, 0.2650267779827118, -0.016436748206615448, 0.15094181895256042, 0.09392385184764862, 0.0075026024132966995, -0.031000860035419464, -0.12000101804733276, -0.027285417541861534, -0.16887564957141876, 0.23977984488010406, -0.06092633306980133, -0.12086588889360428, -0.15832769870758057, 0.08270024508237839, 0.007856197655200958, -0.0737338662147522, -0.05662749335169792, -0.14885841310024261, -0.1964350789785385, -0.09394358843564987, -0.04229283705353737, -0.03537631034851074, -0.029592396691441536, 0.031784605234861374, 0.019626904278993607, 0.0718175545334816, -0.06848108768463135, 0.04719603806734085, -0.16597287356853485, -0.15417098999023438, 0.06385054439306259, -0.1416584551334381, -0.07596971839666367, -0.04126344248652458, -0.17378918826580048, 0.09903084486722946, 0.13672548532485962, 0.02762039378285408, -0.09871029108762741, 0.13817647099494934, 0.014614132232964039, 0.04514753445982933, 0.0628993958234787, 0.152565136551857, 0.14580455422401428, 0.01497331727296114, -0.19582998752593994, 0.21810908615589142, 0.08673979341983795, -0.11497142165899277, -0.049628887325525284, -0.11036491394042969, 0.07639029622077942, 0.18637287616729736, -0.15959064662456512, -0.076962411403656, 0.05820881947875023, -0.17348504066467285, 0.08854524046182632, 0.1043345257639885, -0.010367078706622124, -0.10257142782211304, -0.044657301157712936, -0.13442759215831757, -0.06655456125736237, 0.09144487231969833, -0.1874065101146698, 0.1551436483860016, -0.17948412895202637, -0.36318010091781616, -0.14101719856262207, 0.0010484270751476288, 0.010639363899827003, -0.0336504802107811, -0.1980724334716797, -0.05228062719106674, -0.041845716536045074, 0.00384885398671031, 0.1048380434513092, 0.008563653565943241, -0.07735857367515564, 0.08546234667301178, 0.06346587836742401, -0.054137974977493286, -0.017828771844506264, -0.06947091966867447, 0.07702372968196869, -0.09768861532211304, 0.0870710089802742, -0.06260059028863907, -0.06655041873455048, -0.12775373458862305, 0.023807326331734657, 0.16519522666931152, -0.06933779269456863, 0.1613629162311554, 0.015183771029114723, -0.03188284859061241, 0.0028618681244552135, 0.09086311608552933, -0.23265576362609863, 0.080032117664814, -0.09127654135227203, 0.0699838176369667, -0.1243351474404335, 0.06333068758249283, 0.008916378952562809, -0.09668955206871033, -0.037458743900060654, -0.09674306958913803, 0.13992725312709808, 0.1132645308971405, -0.07278963923454285, -0.042103637009859085, -0.05414342135190964, 0.06531006842851639, 0.016251683235168457, 0.07210976630449295, 0.1139039620757103, 0.005445648916065693, 0.07078251987695694, 0.06226219981908798, -0.21164782345294952, 0.2578771412372589, 0.27646708488464355, -0.005475691519677639, 0.07671438902616501, 0.15044067800045013, 0.05075609311461449, 0.22022120654582977, 0.1417369246482849, -0.07808136194944382, 0.039702240377664566, -0.05347348004579544, 0.02414652705192566, -0.12327065318822861, -0.03838758543133736, 0.15708434581756592, 0.09000784158706665, 0.026148991659283638, -0.0738457590341568, 0.06105937063694, 0.13971850275993347, -0.10143564641475677, 0.27126917243003845, -0.013983428478240967, -0.1015963926911354, -0.09874927997589111, 0.13383014500141144, 0.06971637904644012, 0.0714508518576622, -0.021856216713786125, 0.15511444211006165, -0.08173409849405289, 0.020321305841207504, 0.049099426716566086, -0.04131104052066803, 0.12199226021766663, -0.13327224552631378, -0.2161608338356018, -0.01142380852252245, 0.03490136191248894, 0.22422198951244354, 0.01589791104197502, 0.03616665303707123, -0.014231312088668346, 0.1662050038576126, 0.08161454647779465, -0.03043527714908123, -0.15926522016525269, 0.05593224614858627, 0.05987836420536041, 0.17198465764522552, 0.004970935173332691, 0.03645545616745949, -0.07010618597269058, 0.06445470452308655, -0.17377924919128418, -0.023645274341106415, -0.0440986193716526, -0.08497519046068192, -0.014426212757825851, 0.07899238169193268, 0.2593124806880951, -0.07815919071435928, 0.061817467212677, -0.04626885801553726, -0.2649534344673157, 0.11397524923086166, 0.12553858757019043, -0.05766470730304718, -0.08378851413726807, 0.06410899758338928, -0.13691754639148712, 0.011135951615869999, -0.052389584481716156, -0.078049436211586, -0.15250419080257416, 0.043583620339632034, -0.07024968415498734, 0.19841435551643372, 0.0897843986749649, 0.03569035604596138, 0.005104121286422014, 0.03741549700498581, -0.1174943745136261, 0.03981540724635124, -0.043557051569223404, 0.03489583358168602, -0.21878257393836975, -0.00017671413661446422, 0.0030093719251453876, 0.17480963468551636, 0.00020752054115291685, -0.024436447769403458, 0.06707193702459335, -0.03614264726638794, 0.15205606818199158, -0.2780235707759857, 0.16363786160945892, 0.008143652230501175, 0.22119733691215515, 0.08053351193666458, -0.06439317017793655, -0.046574149280786514, 0.05657282471656799, 0.09916151314973831, 0.1540621817111969, -0.06240125745534897, 0.005423166789114475, -0.15732169151306152, -0.1298031061887741, -0.01528092846274376, -0.006470597814768553, -0.07097654789686203, -0.005656665191054344, -0.047827981412410736, 0.03632833808660507, 0.04609919711947441, -0.04953468590974808, 0.10317234694957733, -0.15373335778713226, -0.014768578112125397, -0.0597827322781086, -0.11477041244506836, 0.026106949895620346, 0.023485248908400536, 0.006059227976948023, -0.11073192209005356, 0.22492250800132751, -0.03446746990084648, 0.2251988798379898, 0.1504272222518921, 0.07503669708967209, 0.08014707267284393, -0.12082946300506592, -0.1015411764383316, -0.1141965389251709, 0.1266019344329834, 0.11032980680465698, 0.045135948807001114, 0.08788932859897614, 0.021491536870598793, -0.11415139585733414, -0.05570002272725105, 0.026270536705851555, -0.010734139010310173, 0.06054909527301788, 0.11515498906373978, -0.01782633177936077, -0.13613638281822205, -0.0018062646267935634, -0.1441607028245926, 0.024400662630796432, 0.07365364581346512, 0.05247330665588379, -0.01257345825433731, -0.17082242667675018, 0.20252370834350586, 0.017510052770376205, -0.3204447627067566, -0.03969637304544449, 0.19480572640895844, -0.023706045001745224, 0.05757692828774452, -0.1728370189666748, -0.11121352016925812, -0.0376853309571743, 0.07951653748750687, -0.051202304661273956, -0.03390126675367355, 0.18235746026039124, 0.016115160658955574, -0.07756464183330536, 0.10736861824989319, 0.05184340476989746, 0.1239495724439621, -0.08509368449449539, -0.1524965614080429, -0.009991987608373165, -0.18946702778339386, 0.000846541253849864, 0.06953497976064682, -0.12892287969589233, 0.0572250671684742, -0.03955254331231117, -0.011046137660741806, 0.013654066249728203, 0.03105955757200718, -0.016933470964431763, -0.3151274621486664, 0.09599445760250092, -0.13365091383457184, 0.058377135545015335, 0.08705227077007294, -0.0957709327340126, 0.22691957652568817, -0.07970815896987915, -0.13721762597560883, 0.13670958578586578, -0.1138090267777443, -0.05703049153089523, 0.07345470786094666, 0.08206300437450409, -0.13851945102214813, 0.1246999129652977, 0.25597262382507324, -0.20442061126232147, 0.024325160309672356, 0.007854812778532505, 0.004009160213172436, 0.03281611204147339, 0.016569282859563828, 0.04094788804650307, 0.16578198969364166, 0.07899642735719681, -0.08518069982528687, -0.17567521333694458, 0.005397767759859562, -0.03327469155192375, 0.09137988090515137, -0.06711422652006149, 0.04581854119896889, -0.13213710486888885, -0.1048080176115036, 0.1641969531774521, -0.06916006654500961, 0.07446091622114182, -0.09556150436401367, 0.08047754317522049, -0.13341408967971802, -0.021720945835113525, -0.1554909199476242, -0.07012493163347244, 0.1490190178155899, -0.1542089432477951, -0.03362446278333664, -0.08593612164258957, 0.0561460480093956, -0.07757062464952469, -0.05678959935903549, 0.05504322797060013, 0.11384274065494537, -0.02604946866631508, 0.03124774619936943, -0.1814710795879364, -0.013908547349274158, 0.004550465848296881, 0.09449336677789688, 0.009061786346137524, 0.05213350057601929, -0.08410266041755676, 0.0681488960981369, -0.053700290620326996, -0.0026188294868916273, -0.08608566969633102, -0.036493752151727676, -0.12445780634880066, -0.056454628705978394, -0.08131003379821777, -0.01513319555670023, -0.017622660845518112, 0.01565900817513466, -0.048633020371198654, -0.05433725193142891, -0.10358931124210358, -0.06567380577325821, -0.14115986227989197, -0.11301841586828232, -0.025936709716916084, 0.030412988737225533, 0.2004314810037613, -0.08697998523712158, 0.01529999915510416, -0.20900678634643555, -0.036602675914764404, -0.10241355001926422, -0.15428104996681213, 0.1680944710969925, 0.13796335458755493, -0.03326372802257538, -0.23843231797218323, -0.08248579502105713, 0.02275497280061245, 0.05025000870227814, -0.1657632291316986, -0.003925798460841179, -0.1381240040063858, -0.11974722146987915, -0.014955596067011356, 0.11935706436634064, 0.09012477844953537, 0.06530311703681946, -0.14457246661186218, -0.17253455519676208, -2.5473905916535505e-32, 0.16173870861530304, 0.051190085709095, 0.09566012024879456, -0.009652392007410526, 0.031162606552243233, -0.11839281022548676, 0.06994559615850449, -0.18459099531173706, -0.05768974497914314, -0.172598198056221, -0.04855261743068695, -0.07063945382833481, 0.021960986778140068, 0.08596695214509964, -0.031755346804857254, -0.014387523755431175, -0.06990016996860504, -0.13333158195018768, 0.013957940973341465, 0.1079021692276001, 0.06443832069635391, -0.13058696687221527, 0.19419752061367035, 0.07478857040405273, -0.1863737404346466, -0.0014892708277329803, -0.1191924661397934, -0.03385903686285019, 0.054735247045755386, 0.0237197894603014, -0.10689930617809296, 0.02082614041864872, -0.012106766924262047, 0.00026063568657264113, -0.002705742372199893, 0.10022232681512833, -0.0507449246942997, 0.019645554944872856, -0.05602773651480675, 0.025809694081544876, -0.12151274085044861, -0.07252369076013565, -0.017705325037240982, -0.045346133410930634, 0.09493125230073929, 0.13709178566932678, -0.03144305571913719, 0.1423904299736023, 0.0504334382712841, -0.038836803287267685, 0.07536709308624268, 0.01303187571465969, 0.04239625856280327, 0.06057904288172722, 0.10890213400125504, 0.032013144344091415, 0.14976423978805542, -0.10209064185619354, -0.04342425987124443, -0.015461694449186325, 0.1257586032152176, -0.0155439218506217, 0.027450352907180786, -0.019026396796107292, 0.1918921023607254, 0.14191028475761414, -0.033249564468860626, -0.05912715941667557, 0.26106107234954834, 0.10552220791578293, 0.17790968716144562, -0.1444806456565857, -0.04500570520758629, -0.04980785399675369, 0.02797217108309269, -0.020179079845547676, 0.021439330652356148, 0.02093016728758812, -0.027287842705845833, 0.11209488660097122, -0.1191810816526413, 0.02001591958105564, 0.22831057012081146, 0.1443774700164795, 0.007052832283079624, 0.007186518050730228, -0.006360622588545084, 0.08649417757987976, -0.06142061576247215, -0.0547335110604763, -0.1748560667037964, -0.10603327304124832, 0.0893697589635849, -0.021527893841266632, 0.06611210107803345, 0.1905895173549652, 0.1272219568490982, 0.054899077862501144, -0.006776463706046343, -0.09152830392122269, 0.24735379219055176, -0.0026102878618985415, 0.03442519158124924, -0.15603689849376678, 0.1457163542509079, 0.09439049661159515, 0.035524338483810425, 0.05065080523490906, -0.07703423500061035, 0.00772902462631464, -0.17838510870933533, 0.11720888316631317, 0.17229078710079193, -0.07878174632787704, 0.02044772356748581, 0.13526888191699982, -0.08392699807882309, -0.00890749879181385, 0.10715334862470627, 0.05567047372460365, -0.2819257080554962, -0.055164553225040436, 0.16105112433433533, -0.07788490504026413, 0.11853103339672089, -0.05878181755542755, 0.1150500699877739, -0.07942485809326172, 0.039268024265766144, -0.04160310700535774, -0.05288098379969597, -0.0035901446826756, 7.482413479920069e-7, -0.17983518540859222, -0.0141069907695055, 0.11466969549655914, 0.06093956530094147, -0.012577363289892673, 0.015304925851523876, 0.12856149673461914, -0.06189678609371185, -0.14560052752494812, 0.03634820505976677, 0.11658273637294769, -0.1440325826406479, -0.06346318870782852, 0.0288908239454031, -0.09311065822839737, 0.09313855320215225, 0.005079112481325865, 0.11215374618768692, -0.11617305874824524, 0.03173625096678734, 0.06003512442111969, 0.17725858092308044, 0.008325335569679737, -0.13787809014320374, -0.19393789768218994, -0.0681157037615776, -0.04880474880337715, -0.06932935118675232, -0.0003284611157141626, 0.002876291749998927, 0.032912079244852066, 0.03729711472988129, 0.02254670485854149, -0.17195656895637512, -0.13129548728466034, -0.019192855805158615, -0.047042783349752426, 0.06276973336935043, 0.1724729835987091, -0.1564456969499588, 0.15437698364257812, 0.1377338021993637, -0.09888549894094467, 0.17442114651203156, 0.10400080680847168, -0.05493813753128052, -0.13989046216011047, -0.0755116194486618, -0.07846909016370773, 0.06112663075327873, -0.06541663408279419, 0.04793597385287285, 0.025208018720149994, 0.11089517176151276, -0.029674416407942772, -0.026659172028303146, -0.04137275367975235, 0.04166227951645851, -0.0890972763299942, 0.08468174189329147, -0.1467960923910141, 0.09715112298727036, -0.038014981895685196, 0.008635010570287704, 0.10826434195041656, -0.00589550007134676, 0.18370622396469116, 2.3501688402526245e-34, 0.12466084957122803, -0.011955450288951397, -0.01878173276782036, 0.11025851219892502, 0.055681295692920685, 0.10386530309915543, 0.14717087149620056, 0.17231862246990204, 0.06929408013820648, -0.052142515778541565, -0.05482031777501106 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
Also, if I delete the extracted files they need to be re-extracted again instead of loading from the Arrow cache files
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
21
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. Also, if I delete the extracted files they need to be re-extracted again instead of loading from the Arrow cache files
[ -0.053754743188619614, 0.12602582573890686, -0.10092338174581528, -0.013475464656949043, 0.08430434763431549, 0.07336025685071945, 0.02042553760111332, 0.01782519742846489, -0.020857343450188637, 0.16815198957920074, -0.06851284205913544, 0.2370549887418747, -0.17450644075870514, 0.05945943668484688, -0.08157532662153244, -0.1443244367837906, -0.08832801878452301, 0.0754568874835968, 0.03176475316286087, 0.016925787553191185, -0.07709389179944992, 0.19064004719257355, 0.1498066484928131, -0.07384210079908371, 0.26276859641075134, -0.08054745197296143, 0.08306384086608887, -0.03662439063191414, -0.05978839844465256, -0.09158926457166672, 0.15618938207626343, 0.028215652331709862, 0.09710173308849335, 0.034225787967443466, 0.000005045658781455131, 0.1291790008544922, 0.08880224078893661, -0.08660881221294403, -0.26195254921913147, 0.0028929575346410275, -0.008626144379377365, -0.06319382786750793, 0.052694905549287796, -0.04503103345632553, 0.05838781222701073, -0.07069188356399536, -0.00532101932913065, -0.28333333134651184, -0.01908109150826931, -0.11295539140701294, -0.06967377662658691, 0.0023499925155192614, -0.1686692237854004, -0.14371241629123688, 0.050238966941833496, 0.04040978103876114, -0.014340176247060299, 0.033942170441150665, -0.04598992317914963, -0.019082630053162575, -0.05659118667244911, 0.03659546375274658, 0.11265534162521362, 0.07670607417821884, 0.10215003788471222, -0.01594935916364193, -0.17976689338684082, -0.13638386130332947, 0.06253126263618469, 0.05837520584464073, 0.10232435911893845, -0.17640717327594757, -0.03966623544692993, -0.0484708771109581, -0.06093883141875267, -0.14697517454624176, -0.08464694768190384, -0.05336955934762955, 0.011783341877162457, 0.10727223753929138, 0.0036460566334426403, -0.046089548617601395, -0.10959590971469879, -0.06001221388578415, -0.10331055521965027, -0.05637040361762047, -0.08086732029914856, 0.04365912079811096, 0.1725146472454071, -0.10425283759832382, 0.00994410365819931, -0.026460370048880577, -0.1623494029045105, 0.07212167978286743, -0.05993868410587311, -0.07280170172452927, -0.012422160245478153, -0.20817150175571442, 0.053332749754190445, -0.008197368122637272, 0.25171223282814026, -0.019744759425520897, -0.0412769541144371, 0.10702437162399292, 0.07317585498094559, 0.025660963729023933, 0.05336618050932884, -0.2299712598323822, 0.08565013110637665, -0.056471824645996094, 0.1284203678369522, -0.005506794899702072, 0.07673940807580948, -0.1389329582452774, 0.06901229918003082, 0.25391218066215515, 0.013522655703127384, 0.2690262198448181, -0.05822870135307312, -0.21004414558410645, 0.130224347114563, 0.045340415090322495, -0.17873018980026245, 0.07958976924419403, 0.11179543286561966, -0.014206190593540668, 0.017046239227056503, 0.07350829988718033, -0.19569088518619537, -0.01425267942249775, 0.10136376321315765, 0.07846228033304214, 0.17342273890972137, -0.1161188930273056, 0.27708902955055237, 0.1039808988571167, 0.002053881762549281, -0.20807376503944397, 0.021136535331606865, -0.013195665553212166, 0.20419935882091522, 0.026163291186094284, 0.18091286718845367, 0.09650752693414688, -0.00017930928152054548, -0.0717448890209198, -0.06894534081220627, -0.016877509653568268, -0.1629045605659485, 0.18911683559417725, -0.11331634968519211, -0.04001534357666969, -0.12764237821102142, 0.020960906520485878, 0.02344915270805359, -0.09236067533493042, -0.06350723654031754, -0.1353648155927658, -0.17565564811229706, -0.07914579659700394, -0.023988734930753708, -0.008321263827383518, -0.0037107758689671755, 0.09628235548734665, -0.0145525261759758, 0.0470331534743309, -0.14195914566516876, 0.007573158945888281, -0.16085350513458252, -0.17874084413051605, 0.06565908342599869, -0.11671091616153717, -0.06160900741815567, -0.06740516424179077, -0.18108823895454407, 0.08330945670604706, 0.12965890765190125, 0.07128675282001495, -0.01813361421227455, 0.10501722246408463, 0.026821864768862724, 0.041078999638557434, 0.05394496023654938, 0.16504593193531036, 0.14454036951065063, 0.059102121740579605, -0.19820646941661835, 0.22751213610172272, 0.10761650651693344, -0.11649973690509796, -0.0723702609539032, -0.10851229727268219, 0.09098146110773087, 0.13697850704193115, -0.16415219008922577, -0.06066020205616951, 0.04394499585032463, -0.17990510165691376, 0.10972364991903305, 0.1210813894867897, 0.028230799362063408, -0.1018686518073082, 0.017739741131663322, -0.14940069615840912, -0.04437902569770813, 0.11107661575078964, -0.20477133989334106, 0.14272311329841614, -0.19431830942630768, -0.30421268939971924, -0.08385983854532242, 0.02071009762585163, 0.03128139302134514, -0.058447059243917465, -0.15627820789813995, -0.005655420012772083, -0.07952827215194702, 0.06933317333459854, 0.11428944021463394, -0.059536851942539215, -0.09216494113206863, 0.052916597574949265, 0.10969328135251999, -0.0999075174331665, -0.051233187317848206, -0.06913364678621292, 0.08967389166355133, -0.11043251305818558, 0.15822824835777283, -0.058657996356487274, -0.11816848814487457, -0.1458732783794403, 0.0029778159223496914, 0.0826430693268776, -0.08584364503622055, 0.18281780183315277, 0.08253702521324158, -0.04051975905895233, -0.023377960547804832, 0.030184131115674973, -0.21035611629486084, 0.09109347313642502, -0.10182736814022064, 0.0792047306895256, -0.1265362650156021, 0.030944855883717537, -0.046555984765291214, -0.10856042802333832, -0.044111449271440506, -0.09815679490566254, 0.15497232973575592, 0.06920766085386276, -0.037447601556777954, -0.07617928087711334, -0.027112841606140137, 0.08532187342643738, -0.04801434278488159, -0.04315813630819321, 0.09142758697271347, 0.05751708522439003, 0.0415678471326828, 0.0553063340485096, -0.29950958490371704, 0.2650311589241028, 0.2535804808139801, 0.02279020845890045, 0.026065750047564507, 0.0907578244805336, 0.053856804966926575, 0.2852570712566376, 0.11801579594612122, -0.06847765296697617, 0.06882351636886597, -0.07993530482053757, 0.027210364118218422, -0.1550169587135315, -0.027812590822577477, 0.17616988718509674, 0.10791181772947311, 0.04824299365282059, -0.139301598072052, 0.03234068676829338, 0.13418452441692352, -0.1203608512878418, 0.23644885420799255, -0.08214209228754044, -0.1411856859922409, -0.1849416345357895, 0.16326671838760376, 0.11582756787538528, 0.08645112067461014, -0.018549924716353416, 0.17115817964076996, -0.07463900744915009, -0.004403026308864355, 0.03552687540650368, -0.06128431111574173, 0.1927686482667923, -0.09689563512802124, -0.19565241038799286, -0.07244430482387543, -0.0170931126922369, 0.17880834639072418, 0.0355374701321125, 0.012290682643651962, -0.010194459930062294, 0.14917589724063873, 0.053894687443971634, 0.06601939350366592, -0.1644163578748703, 0.09521527588367462, 0.0983937680721283, 0.19823691248893738, 0.016380341723561287, 0.006301010958850384, -0.020274246111512184, 0.04017920419573784, -0.14160673320293427, -0.04653109982609749, -0.05594369396567345, -0.1207338348031044, -0.009353985078632832, 0.1149405688047409, 0.23963703215122223, -0.07679292559623718, 0.06387432664632797, -0.043526679277420044, -0.25192874670028687, 0.04184098541736603, 0.09186549484729767, -0.06785926222801208, -0.03726176917552948, 0.0725499615073204, -0.09172335267066956, -0.0674138069152832, -0.07918482273817062, -0.10073965787887573, -0.18588042259216309, 0.11594735085964203, -0.10678013414144516, 0.19346128404140472, 0.0704861730337143, 0.08290353417396545, -0.039378777146339417, 0.05402882397174835, -0.06997306644916534, 0.11122066527605057, -0.0536653958261013, 0.049451135098934174, -0.2741621434688568, 0.03496430069208145, 0.03126964345574379, 0.17018231749534607, -0.03579232469201088, -0.08517947047948837, 0.09477774798870087, 0.00596763426437974, 0.1719096601009369, -0.2152014672756195, 0.1151343435049057, 0.02922084741294384, 0.2195112556219101, 0.08013103902339935, -0.08297953754663467, -0.0578303299844265, 0.0936226099729538, 0.06849227845668793, 0.1789732575416565, -0.04339728504419327, 0.046996619552373886, -0.15861421823501587, -0.0764189213514328, -0.021023796871304512, 0.031180627644062042, -0.10003845393657684, -0.015362939797341824, -0.06423451751470566, 0.10227576643228531, 0.09604177623987198, -0.034504570066928864, 0.10369942337274551, -0.1500071883201599, 0.005518293008208275, -0.03705860674381256, -0.10892058908939362, 0.014510126784443855, -0.03049575351178646, 0.05135231837630272, -0.10187655687332153, 0.17716194689273834, 0.0027451461646705866, 0.14703157544136047, 0.1309090554714203, 0.09406688809394836, 0.07941039651632309, -0.14278016984462738, -0.06303907930850983, -0.14876602590084076, 0.134097158908844, 0.07700320333242416, 0.05475793033838272, 0.03533220291137695, -0.008958172053098679, -0.06893128901720047, -0.02345004677772522, 0.12963339686393738, 0.03903033584356308, 0.07452326267957687, 0.07906726747751236, -0.01934274099767208, -0.09370362013578415, 0.008426309563219547, -0.10147589445114136, 0.03791865333914757, 0.07104703783988953, 0.010421250015497208, 0.013885819353163242, -0.1640583872795105, 0.18953214585781097, 0.001470759860239923, -0.3136335015296936, -0.05008997768163681, 0.21691742539405823, -0.03120327740907669, 0.0981830433011055, -0.15488308668136597, -0.08591454476118088, -0.08013521879911423, 0.1360660046339035, -0.02482614852488041, -0.00839864183217287, 0.20961922407150269, -0.008410603739321232, -0.0753769800066948, 0.11289054155349731, 0.07568220049142838, 0.12735125422477722, -0.1237475574016571, -0.1477053165435791, 0.041425492614507675, -0.16424846649169922, 0.038578882813453674, 0.046628404408693314, -0.09242364019155502, 0.012226433493196964, -0.010317775420844555, -0.021716222167015076, 0.018735092133283615, 0.037230234593153, -0.033029600977897644, -0.32686230540275574, 0.11720756441354752, -0.088955819606781, 0.013190556317567825, 0.06817267835140228, -0.06132248416543007, 0.2045629322528839, -0.04375818371772766, -0.1322074681520462, 0.12832815945148468, -0.10852862894535065, -0.050195202231407166, 0.006021068897098303, 0.05795140936970711, -0.12027154117822647, 0.08668643981218338, 0.23292027413845062, -0.2636183798313141, 0.049375418573617935, 0.029061060398817062, -0.014146233908832073, 0.08263982087373734, 0.02600860595703125, 0.024951644241809845, 0.2040509134531021, 0.0015989072853699327, -0.08171693980693817, -0.21318243443965912, 0.001649896614253521, -0.029241522774100304, 0.0593450665473938, -0.020450713112950325, -0.0007401038310490549, -0.12841300666332245, -0.10919196903705597, 0.12235895544290543, -0.07870464026927948, 0.09980104118585587, -0.07903825491666794, 0.10532519221305847, -0.1420215666294098, -0.006266549229621887, -0.1498449295759201, -0.04805590584874153, 0.18791891634464264, -0.17590069770812988, -0.031194515526294708, -0.14547352492809296, 0.060226164758205414, -0.1366424411535263, -0.063931904733181, 0.0469229519367218, 0.11816694587469101, -0.02400241419672966, 0.000012371286175039131, -0.17990216612815857, 0.07682779431343079, 0.06581717729568481, 0.13312898576259613, -0.007559928577393293, 0.05367051437497139, -0.11766541749238968, 0.026673687621951103, -0.024935120716691017, -0.001767256879247725, -0.056172795593738556, -0.0005617562565021217, -0.11150665581226349, -0.016365913674235344, -0.0674808993935585, -0.0023606917820870876, 0.03186129406094551, -0.04781223088502884, -0.03916334733366966, -0.02392241545021534, -0.04565603286027908, -0.09155429154634476, -0.09451314806938171, -0.09244728833436966, -0.04291491210460663, 0.036634474992752075, 0.1784384399652481, -0.11660709977149963, 0.005870199762284756, -0.2243332713842392, -0.0763014554977417, -0.11139784008264542, -0.10229814797639847, 0.13019631803035736, 0.14666199684143066, 0.005843156483024359, -0.23755189776420593, -0.09851846843957901, 0.03659861162304878, -0.0065306005999445915, -0.17752312123775482, 0.008079507388174534, -0.12576720118522644, -0.036838598549366, -0.06908593326807022, 0.1440878063440323, 0.127907857298851, 0.10581598430871964, -0.165716290473938, -0.13684459030628204, -2.563895707833446e-32, 0.1611407995223999, 0.07618104666471481, 0.05558520928025246, 0.030010201036930084, 0.05910634621977806, -0.13357998430728912, 0.04894479364156723, -0.1965143382549286, -0.048230819404125214, -0.1274966150522232, -0.01988423988223076, -0.08946805447340012, 0.004589936695992947, 0.04639631137251854, -0.02547025866806507, 0.002646851586177945, -0.08582758158445358, -0.16036702692508698, 0.040240079164505005, 0.14115707576274872, 0.07558376342058182, -0.14941656589508057, 0.13654594123363495, 0.13199220597743988, -0.17061978578567505, 0.045219749212265015, -0.15787935256958008, 0.02037038654088974, 0.0773545652627945, 0.05057495832443237, -0.09849666804075241, -0.09334499388933182, -0.010377435013651848, -0.058216121047735214, -0.0014325549127534032, 0.15698856115341187, -0.014738725498318672, -0.028195396065711975, -0.022067800164222717, 0.034223515540361404, -0.07087162137031555, -0.12075909972190857, -0.08399873971939087, -0.02652164176106453, 0.1337486207485199, 0.15051482617855072, -0.049062710255384445, 0.1239195242524147, 0.10760626196861267, -0.08814206719398499, 0.07832254469394684, 0.014839245937764645, -0.0010069640120491385, 0.07040847092866898, 0.13780523836612701, 0.09897729754447937, 0.12736791372299194, -0.11140409111976624, -0.06764216721057892, -0.007003197446465492, 0.08919822424650192, -0.008201437070965767, 0.04080412536859512, -0.01934889517724514, 0.13338330388069153, 0.1431831419467926, -0.05931108072400093, -0.06968826800584793, 0.23851381242275238, 0.14842180907726288, 0.17952653765678406, -0.11894558370113373, -0.029408473521471024, -0.060267262160778046, 0.046123992651700974, 0.05723245069384575, 0.04285933077335358, 0.028788918629288673, -0.019330766052007675, 0.13522344827651978, -0.07696649432182312, 0.029367662966251373, 0.21692632138729095, 0.1669534146785736, 0.045573681592941284, 0.06467129290103912, -0.05017852783203125, 0.06018230691552162, -0.04487267881631851, -0.09749407321214676, -0.03445526957511902, -0.11531033366918564, 0.08397576957941055, -0.08050884306430817, 0.11441212147474289, 0.23371461033821106, 0.11711638420820236, 0.025940440595149994, -0.006682793144136667, -0.14006781578063965, 0.22038714587688446, -0.017490839585661888, 0.029075447469949722, -0.14794085919857025, 0.1288037896156311, 0.08975040167570114, 0.11416549235582352, 0.03165328502655029, -0.12133148312568665, -0.00654605170711875, -0.13125582039356232, 0.13683149218559265, 0.15591555833816528, -0.07572809606790543, 0.04992395266890526, 0.1391836702823639, -0.07744837552309036, -0.03748302906751633, 0.12308230996131897, 0.0755765289068222, -0.255572110414505, -0.07821554690599442, 0.15814150869846344, -0.05078252777457237, 0.12405235320329666, -0.048437803983688354, 0.09544860571622849, -0.06533737480640411, -0.005046339705586433, -0.0453515350818634, -0.05258040875196457, -0.030960768461227417, 7.398171533168352e-7, -0.1932372897863388, 0.0014401462394744158, 0.10035194456577301, -0.04677199944853783, 0.020575840026140213, 0.022481586784124374, 0.12084323167800903, -0.0880061462521553, -0.15822778642177582, 0.02682165801525116, 0.08196789771318436, -0.10204967856407166, -0.036774974316358566, 0.008230802603065968, -0.0626019611954689, 0.011256652884185314, -0.02294532023370266, 0.09197887778282166, -0.1472092717885971, 0.025567300617694855, 0.13378451764583588, 0.2064710259437561, 0.02503281645476818, -0.13920725882053375, -0.21807900071144104, -0.02452302724123001, -0.06760725378990173, -0.13142532110214233, -0.03431139886379242, -0.029049143195152283, 0.023883866146206856, 0.01988270878791809, -0.007831349968910217, -0.1263260543346405, -0.1324639916419983, -0.02045893669128418, -0.12021222710609436, 0.03255783021450043, 0.20047582685947418, -0.15578511357307434, 0.1856590360403061, 0.15712451934814453, -0.1524244099855423, 0.12593059241771698, 0.10337423533201218, -0.11833532154560089, -0.15421785414218903, -0.07249981164932251, -0.09424468129873276, 0.06880764663219452, -0.04347724840044975, 0.00826398003846407, 0.018639463931322098, 0.10638483613729477, -0.027352552860975266, -0.015901995822787285, -0.04411442577838898, 0.1132209300994873, -0.07366734743118286, 0.10601985454559326, -0.1552269160747528, 0.16373586654663086, -0.04783050715923309, 0.030081823468208313, 0.09230510145425797, 0.08369215577840805, 0.19085702300071716, 2.8835016474802354e-34, 0.14162316918373108, 0.03879932314157486, 0.00013670697808265686, 0.042638204991817474, 0.08342034369707108, 0.11714024096727371, 0.08430507779121399, 0.18131783604621887, 0.10059945285320282, -0.10223753750324249, -0.016383850947022438 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
I think we already opened an issue about this topic (suggested by @stas00): duplicated of #2481? This is in our TODO list... 😅
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
23
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. I think we already opened an issue about this topic (suggested by @stas00): duplicated of #2481? This is in our TODO list... 😅
[ -0.04509942978620529, 0.1578230857849121, -0.090870700776577, 0.00012768969463650137, 0.07761142402887344, 0.07196726649999619, 0.03312878683209419, 0.023836271837353706, -0.017902130261063576, 0.175594761967659, -0.034646131098270416, 0.20409467816352844, -0.17984533309936523, 0.07735631614923477, -0.0811649039387703, -0.13224099576473236, -0.06424521654844284, 0.07004345953464508, 0.02441916987299919, 0.02034439891576767, -0.08512842655181885, 0.17594675719738007, 0.1427193284034729, -0.07132884114980698, 0.2676005959510803, -0.06792642921209335, 0.0748336985707283, -0.02916575036942959, -0.06414387375116348, -0.08471406996250153, 0.13005024194717407, 0.042260896414518356, 0.1319425404071808, 0.039388738572597504, 0.000005078107278677635, 0.11063022911548615, 0.09476073086261749, -0.07551946491003036, -0.24763843417167664, 0.026843875646591187, -0.020587502047419548, -0.06159667298197746, 0.04648870602250099, -0.06649109721183777, 0.05029512569308281, -0.03730062395334244, 0.003227943554520607, -0.2507270872592926, 0.0015936155105009675, -0.12699903547763824, -0.07841968536376953, 0.025362705811858177, -0.14805984497070312, -0.15207697451114655, 0.08098030090332031, 0.07727394998073578, -0.04746594652533531, 0.043764546513557434, -0.054886121302843094, -0.022233085706830025, -0.058884404599666595, 0.050869908183813095, 0.11079126596450806, 0.06558416038751602, 0.08356186002492905, -0.010003188624978065, -0.169894739985466, -0.152716264128685, 0.07687164098024368, 0.04440890997648239, 0.10464823991060257, -0.21858930587768555, -0.0315820537507534, -0.05259391665458679, -0.04852747544646263, -0.16634967923164368, -0.0845787525177002, -0.03823121264576912, -0.006197507027536631, 0.12075947225093842, -0.027456285431981087, -0.05712975561618805, -0.1024424210190773, -0.06546774506568909, -0.03838013485074043, -0.037546586245298386, -0.08613622188568115, 0.04201183468103409, 0.14300918579101562, -0.08133074641227722, 0.007957477122545242, -0.018621575087308884, -0.13634586334228516, 0.07465410232543945, -0.053185757249593735, -0.12060217559337616, 0.014483324252068996, -0.18856051564216614, 0.0780201330780983, 0.00891757383942604, 0.22605760395526886, 0.008815519511699677, -0.0337199792265892, 0.0915612131357193, 0.05651911348104477, 0.011635171249508858, 0.042300205677747726, -0.23347917199134827, 0.0952969640493393, -0.03996477648615837, 0.12526895105838776, 0.007552826777100563, 0.07766196876764297, -0.14184263348579407, 0.079820416867733, 0.2703869044780731, 0.022769885137677193, 0.26376408338546753, -0.09192988276481628, -0.2260712832212448, 0.12493335455656052, 0.05427524819970131, -0.17880535125732422, 0.07380393147468567, 0.09088102728128433, -0.03310636803507805, 0.03477013111114502, 0.09086175262928009, -0.1917889416217804, 0.016497941687703133, 0.07991660386323929, 0.09924343973398209, 0.17666612565517426, -0.11123485118150711, 0.28629982471466064, 0.09387309104204178, -0.010037031024694443, -0.19398260116577148, 0.024078715592622757, -0.01980932615697384, 0.18092234432697296, 0.03933298587799072, 0.15328627824783325, 0.0617644302546978, -0.0030515464022755623, -0.08376558870077133, -0.031138911843299866, -0.028472313657402992, -0.16634519398212433, 0.20096786320209503, -0.10438241809606552, -0.03152237832546234, -0.14487908780574799, 0.021090736612677574, 0.004436926916241646, -0.10101667791604996, -0.035422373563051224, -0.12952767312526703, -0.19517965614795685, -0.050265610218048096, -0.03453786298632622, -0.005311484914273024, -0.01667136140167713, 0.07768799364566803, 0.002447789069265127, 0.04608660191297531, -0.15791963040828705, 0.0035839728079736233, -0.16491124033927917, -0.1974291056394577, 0.08469098806381226, -0.09940847754478455, -0.04386529698967934, -0.06819173693656921, -0.19340525567531586, 0.09874801337718964, 0.07611598074436188, 0.07159137725830078, -0.012127868831157684, 0.1277664452791214, 0.01917438767850399, 0.03321000561118126, 0.08646620064973831, 0.16204462945461273, 0.14147701859474182, 0.05607657879590988, -0.1994776725769043, 0.2315698117017746, 0.07398360222578049, -0.09459631145000458, -0.06720652431249619, -0.11995874345302582, 0.09024662524461746, 0.15612046420574188, -0.1758269965648651, -0.04216571897268295, 0.07604659348726273, -0.1545029729604721, 0.12464740872383118, 0.13109149038791656, 0.024215249344706535, -0.14358563721179962, 0.027928853407502174, -0.14615070819854736, -0.07141032069921494, 0.09902063012123108, -0.17959681153297424, 0.1155606210231781, -0.15796588361263275, -0.2959575355052948, -0.05143691971898079, 0.021043188869953156, 0.014175030402839184, -0.07219764590263367, -0.14521215856075287, 0.02166643738746643, -0.0601193942129612, 0.04682352766394615, 0.10852942615747452, -0.053918056190013885, -0.12248426675796509, 0.06656286120414734, 0.09397265315055847, -0.09821512550115585, -0.022715028375387192, -0.08310717344284058, 0.03843469172716141, -0.08302765339612961, 0.1439727246761322, -0.04773809388279915, -0.09718117117881775, -0.13023066520690918, 0.008406566455960274, 0.08481112867593765, -0.0906965434551239, 0.14059799909591675, 0.09486844390630722, -0.020164670422673225, -0.029359987005591393, 0.03507644683122635, -0.23327423632144928, 0.09153299033641815, -0.11750330030918121, 0.0788552463054657, -0.13398057222366333, -0.0021457024849951267, -0.07318982481956482, -0.10671883821487427, -0.059148211032152176, -0.1275900900363922, 0.13700366020202637, 0.07851988077163696, -0.0700150653719902, -0.07892698794603348, -0.04520375281572342, 0.09310903400182724, -0.06122833117842674, -0.03524280712008476, 0.06763479858636856, 0.031092295423150063, 0.09036462754011154, 0.022145802155137062, -0.2793498933315277, 0.2635795474052429, 0.284575492143631, -0.0003295042261015624, 0.04873627796769142, 0.0640811026096344, 0.05735156685113907, 0.2989279627799988, 0.10971495509147644, -0.04675567150115967, 0.0661047101020813, -0.08309953659772873, 0.012653660029172897, -0.15793292224407196, -0.06631495803594589, 0.19784635305404663, 0.0904509574174881, 0.08507530391216278, -0.152829110622406, 0.024080898612737656, 0.11788128316402435, -0.12459245324134827, 0.25586533546447754, -0.09873639047145844, -0.124663807451725, -0.184488445520401, 0.18533830344676971, 0.14364352822303772, 0.08551273494958878, -0.031912025064229965, 0.19464211165905, -0.05555544048547745, -0.02085050754249096, 0.02557549811899662, -0.05545838922262192, 0.2089184671640396, -0.09166359156370163, -0.19696679711341858, -0.07722780108451843, 0.014813125133514404, 0.18219351768493652, 0.030179351568222046, 0.009542937390506268, -0.030344780534505844, 0.19433994591236115, 0.04414070397615433, 0.023883000016212463, -0.18602141737937927, 0.06687359511852264, 0.0960230827331543, 0.18908259272575378, 0.02504170686006546, 0.003900740761309862, -0.013592158444225788, 0.0039021442644298077, -0.14241942763328552, -0.07278171926736832, -0.028832456097006798, -0.14304372668266296, -0.05404744669795036, 0.1194319874048233, 0.2695331871509552, -0.06929505616426468, 0.09947627782821655, -0.03969711437821388, -0.2502851188182831, 0.04191111773252487, 0.05819714441895485, -0.07294973731040955, -0.03403642773628235, 0.050383761525154114, -0.11471588909626007, -0.035703081637620926, -0.07404741644859314, -0.08847033232450485, -0.1873040646314621, 0.08742257952690125, -0.08582473546266556, 0.17224647104740143, 0.08944921940565109, 0.1026335209608078, -0.055456411093473434, 0.025600507855415344, -0.054506830871105194, 0.06445857137441635, -0.044211555272340775, 0.034003227949142456, -0.2689431607723236, 0.047311026602983475, 0.029055343940854073, 0.15907710790634155, -0.03476500138640404, -0.09002803266048431, 0.08751373738050461, 0.005075087770819664, 0.1777925342321396, -0.24287670850753784, 0.11144831031560898, 0.04279963672161102, 0.24738022685050964, 0.07857102900743484, -0.05685088783502579, -0.03928114101290703, 0.11807101964950562, 0.06986942887306213, 0.22152072191238403, -0.03873180225491524, 0.010336754843592644, -0.14411799609661102, -0.07438088208436966, -0.028925463557243347, 0.030664652585983276, -0.10184407979249954, -0.0037631771992892027, -0.06992495059967041, 0.08554181456565857, 0.11423757672309875, -0.028143463656306267, 0.07748913764953613, -0.14003951847553253, -0.00372377410531044, -0.009619561955332756, -0.12193456292152405, 0.02273230254650116, -0.03730753809213638, 0.06508038192987442, -0.09334182739257812, 0.1691160649061203, -0.013650363311171532, 0.13447779417037964, 0.12618756294250488, 0.09826485812664032, 0.050970979034900665, -0.14942225813865662, -0.04064873605966568, -0.16577883064746857, 0.13493993878364563, 0.07970675826072693, 0.05757090449333191, 0.05440160259604454, 0.0009980471804738045, -0.0387430265545845, -0.034732215106487274, 0.10351964086294174, 0.060028865933418274, 0.09831716865301132, 0.07075902074575424, -0.0397285632789135, -0.07608219981193542, 0.0660911351442337, -0.11899697035551071, 0.027377517893910408, 0.09358079731464386, 0.0017368794651702046, -0.012033296748995781, -0.18186436593532562, 0.1998218595981598, -0.05258407071232796, -0.3061271607875824, -0.03885678946971893, 0.22463752329349518, -0.021605363115668297, 0.0971936509013176, -0.13201618194580078, -0.1022893637418747, -0.08905129879713058, 0.1187930777668953, -0.040524959564208984, -0.03242332488298416, 0.2005993127822876, -0.0228906087577343, -0.08869939297437668, 0.08464152365922928, 0.04059921205043793, 0.10418646782636642, -0.10544498264789581, -0.10683268308639526, 0.05138509348034859, -0.14578984677791595, 0.05886704847216606, 0.09385436028242111, -0.08884114772081375, -0.006375183816999197, 0.0013144250260666013, -0.03886900842189789, -0.006227907259017229, 0.042235951870679855, -0.0392615906894207, -0.32407426834106445, 0.08195099979639053, -0.0940040647983551, 0.001518419710919261, 0.10181933641433716, -0.05057483911514282, 0.19942238926887512, -0.06280424445867538, -0.11923668533563614, 0.12519146502017975, -0.1438937932252884, -0.036558397114276886, -0.038053762167692184, 0.0659528523683548, -0.10321184247732162, 0.1048026904463768, 0.2442731410264969, -0.288056343793869, 0.021326225250959396, 0.005268910434097052, -0.040192700922489166, 0.0839688703417778, 0.024830061942338943, 0.03403543680906296, 0.18567824363708496, 0.012744100764393806, -0.08671113848686218, -0.21129447221755981, -0.0016253434587270021, -0.025470849126577377, 0.08957502990961075, -0.02565913274884224, 0.00026647080085240304, -0.1503036469221115, -0.10369165241718292, 0.12241029739379883, -0.08073112368583679, 0.1084224283695221, -0.06143389642238617, 0.13436239957809448, -0.15383562445640564, 0.015173793770372868, -0.15192811191082, -0.00788995623588562, 0.19349227845668793, -0.17607007920742035, -0.019334452226758003, -0.1358443945646286, 0.06158304214477539, -0.11323942244052887, -0.014559611678123474, 0.04701754450798035, 0.12171723693609238, -0.03467636555433273, 0.006048125214874744, -0.1748751401901245, 0.08377057313919067, 0.058971669524908066, 0.1171005591750145, -0.010221096687018871, 0.05888662859797478, -0.08790890127420425, 0.015893317759037018, -0.06708680838346481, -0.0013549213763326406, -0.0676443949341774, -0.01876896619796753, -0.14319638907909393, -0.018593594431877136, -0.05862975865602493, -0.013431495986878872, 0.04133100062608719, -0.006039903499186039, -0.06949619203805923, -0.023087989538908005, -0.07044601440429688, -0.07863744348287582, -0.10968803614377975, -0.08379092067480087, -0.038968540728092194, 0.029076939448714256, 0.15615585446357727, -0.13261835277080536, 0.007009401917457581, -0.2224300354719162, -0.0606524795293808, -0.1054283007979393, -0.0875769779086113, 0.11900781840085983, 0.140593484044075, 0.0009624976082704961, -0.2566816210746765, -0.1033170074224472, 0.03642522171139717, -0.0272405706346035, -0.1850578486919403, 0.042898714542388916, -0.1293901950120926, -0.038377489894628525, -0.05853433534502983, 0.15880225598812103, 0.12062614411115646, 0.12633754312992096, -0.19360850751399994, -0.15050108730793, -2.5840116487854804e-32, 0.17396137118339539, 0.05687461793422699, 0.01987411268055439, 0.04721391946077347, 0.06202614679932594, -0.1362796574831009, 0.044576045125722885, -0.1844414323568344, -0.0583769828081131, -0.10936395823955536, -0.020876837894320488, -0.07086620479822159, 0.005762808956205845, 0.05882961302995682, -0.010397633537650108, 0.007865474559366703, -0.08201844990253448, -0.18786248564720154, 0.04908081889152527, 0.1275041699409485, 0.07820197939872742, -0.15620887279510498, 0.11954876035451889, 0.11696331948041916, -0.15976814925670624, 0.0824095830321312, -0.1764327436685562, 0.018601318821310997, 0.061361007392406464, 0.038905978202819824, -0.10634467005729675, -0.09109458327293396, 0.013080603443086147, -0.051186349242925644, 0.009411069564521313, 0.17489057779312134, -0.014177722856402397, -0.04573115333914757, -0.06816064566373825, -0.005143876187503338, -0.041619300842285156, -0.11958609521389008, -0.12494900822639465, -0.030300550162792206, 0.13424958288669586, 0.15984807908535004, -0.024396033957600594, 0.1153046190738678, 0.12671631574630737, -0.07417777180671692, 0.058514077216386795, 0.023485425859689713, 0.01351659744977951, 0.05954461544752121, 0.13606317341327667, 0.1091790571808815, 0.13791097700595856, -0.07835056632757187, -0.08637350052595139, -0.013064193539321423, 0.10893400013446808, -0.010917747393250465, 0.04557238146662712, -0.048329226672649384, 0.11091778427362442, 0.1424572914838791, -0.064598947763443, -0.040797773748636246, 0.23153431713581085, 0.1500685065984726, 0.16857962310314178, -0.1192486360669136, -0.02675103209912777, -0.050820041447877884, 0.040568359196186066, 0.06826208531856537, 0.005307615268975496, 0.02773667499423027, -0.030146930366754532, 0.1349978893995285, -0.07730884104967117, 0.016002120450139046, 0.19657231867313385, 0.14676479995250702, 0.03564610332250595, 0.09074915945529938, -0.049969665706157684, 0.0729355737566948, -0.033340148627758026, -0.09099793434143066, -0.009071127511560917, -0.10116200894117355, 0.05175609141588211, -0.09260399639606476, 0.09064476191997528, 0.21723401546478271, 0.1289483904838562, 0.012990737333893776, 0.0018539571901783347, -0.14090678095817566, 0.20218370854854584, -0.0037951027043163776, 0.04938672482967377, -0.14500272274017334, 0.14913305640220642, 0.09935183823108673, 0.12034370750188828, 0.039367590099573135, -0.15710143744945526, -0.006399858742952347, -0.13220474123954773, 0.13542740046977997, 0.1580643355846405, -0.04566797986626625, 0.022664248943328857, 0.1446644812822342, -0.06356244534254074, -0.007322469260543585, 0.12365613877773285, 0.07409711927175522, -0.28072407841682434, -0.07436082512140274, 0.14746646583080292, -0.034551337361335754, 0.13342507183551788, -0.05325045809149742, 0.098214291036129, -0.07368376106023788, -0.001666856580413878, -0.03772619739174843, -0.049904339015483856, -0.06532987952232361, 7.40527411835501e-7, -0.19309160113334656, -0.02219448983669281, 0.10042225569486618, -0.057489681988954544, 0.01180901750922203, 0.03992731124162674, 0.09270145744085312, -0.07882282882928848, -0.12747043371200562, -0.0022182355169206858, 0.09309805929660797, -0.11366249620914459, -0.02523615211248398, 0.008345295675098896, -0.060476481914520264, 0.006316225975751877, -0.010692843236029148, 0.11017129570245743, -0.12716144323349, 0.022464733570814133, 0.13667991757392883, 0.2279137372970581, 0.02371920458972454, -0.1588459461927414, -0.19784605503082275, -0.03786568343639374, -0.06450647860765457, -0.1467333436012268, -0.014664038084447384, -0.02561050094664097, 0.04714478924870491, 0.006083835382014513, 0.001910220948047936, -0.14136190712451935, -0.13083486258983612, -0.03380260244011879, -0.11372300982475281, 0.05429419130086899, 0.17098957300186157, -0.17499805986881256, 0.14568158984184265, 0.12865307927131653, -0.1554533988237381, 0.10254612565040588, 0.11440286040306091, -0.10723046958446503, -0.1583409607410431, -0.06339604407548904, -0.08042033016681671, 0.09035683423280716, -0.03275507315993309, 0.016770651564002037, 0.009614021517336369, 0.10393160581588745, -0.02419315092265606, 0.0021593680139631033, -0.03577626124024391, 0.112999327480793, -0.0730891153216362, 0.09849564731121063, -0.1683371663093567, 0.149855375289917, -0.05221359059214592, 0.024515436962246895, 0.11141958832740784, 0.10702189058065414, 0.2119298279285431, 2.601182342723781e-34, 0.139652281999588, 0.050246842205524445, 0.051112569868564606, 0.04845498502254486, 0.08209088444709778, 0.13915343582630157, 0.05449270084500313, 0.18174968659877777, 0.09299016743898392, -0.07776442170143127, -0.0238676555454731 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
I think the deletion of each extracted file could be implemented in our CacheManager and ExtractManager (once merged to master: #2295, #2277). 😉
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
23
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. I think the deletion of each extracted file could be implemented in our CacheManager and ExtractManager (once merged to master: #2295, #2277). 😉
[ 0.010459483601152897, 0.1817403882741928, -0.08565454185009003, 0.042682550847530365, 0.07025595754384995, 0.07454748451709747, 0.05686028674244881, 0.02310398779809475, 0.012459775432944298, 0.17184701561927795, -0.05799483135342598, 0.19982591271400452, -0.2035534381866455, 0.02510135807096958, -0.1083759143948555, -0.11193214356899261, -0.09299913793802261, 0.06392386555671692, 0.023912478238344193, 0.00973630789667368, -0.05650101229548454, 0.20763832330703735, 0.16164925694465637, -0.09250412881374359, 0.2136964052915573, -0.081048883497715, 0.0763324722647667, -0.012976854108273983, -0.038602061569690704, -0.09088754653930664, 0.14496885240077972, 0.007173709571361542, 0.08968186378479004, 0.07326540350914001, 0.000004992862159269862, 0.11601334065198898, 0.06668806076049805, -0.0680711641907692, -0.26185086369514465, -0.00847274623811245, -0.027479160577058792, -0.08483055233955383, 0.018380019813776016, -0.09181375801563263, 0.03277093172073364, 0.00005779549974249676, 0.0173752773553133, -0.2369714081287384, 0.02649163268506527, -0.13632167875766754, -0.06824863702058792, 0.025150597095489502, -0.19707585871219635, -0.1522035151720047, 0.025904256850481033, 0.0449233241379261, -0.015032264403998852, 0.01364181935787201, -0.06199115514755249, -0.009613937698304653, -0.07122638076543808, 0.03224760666489601, 0.1150069460272789, 0.046955086290836334, 0.10034201294183731, -0.009909392334520817, -0.18037700653076172, -0.19175301492214203, 0.07337719947099686, 0.04258935526013374, 0.10093037039041519, -0.21571670472621918, -0.011556039564311504, -0.028015615418553352, -0.0735568255186081, -0.15237413346767426, -0.0868743509054184, -0.057599037885665894, -0.0033629925455898046, 0.1256147176027298, -0.013572541065514088, -0.052809178829193115, -0.09462731331586838, -0.07468404620885849, -0.09511648863554001, -0.04095546156167984, -0.07731247693300247, -0.0039348965510725975, 0.20912042260169983, -0.0725865289568901, -0.006693940609693527, -0.025825314223766327, -0.11659487336874008, 0.06411643326282501, -0.05849990248680115, -0.09227962046861649, -0.004726239014416933, -0.19218529760837555, 0.0573560856282711, 0.03714907914400101, 0.20782795548439026, -0.03430262580513954, -0.01575552299618721, 0.12683188915252686, 0.06444169580936432, 0.026512866839766502, 0.021628890186548233, -0.24747513234615326, 0.06422898173332214, -0.0794612318277359, 0.11923565715551376, -0.004296416882425547, 0.1270030438899994, -0.08756452053785324, 0.12021952122449875, 0.2852916717529297, -0.010206380859017372, 0.2451317310333252, -0.06313841044902802, -0.22267673909664154, 0.1186278685927391, 0.07931691408157349, -0.17460845410823822, 0.06350762397050858, 0.09689245373010635, -0.01038448978215456, -0.006008848547935486, 0.056105028837919235, -0.1841714233160019, -0.019883843138813972, 0.07289829850196838, 0.10811780393123627, 0.18173521757125854, -0.12130926549434662, 0.2702890932559967, 0.11321527510881424, -0.030255671590566635, -0.18399448692798615, 0.037786152213811874, -0.009567887522280216, 0.19809599220752716, -0.008610354736447334, 0.16713126003742218, 0.046137791126966476, 0.022518368437886238, -0.10163163393735886, -0.034275636076927185, -0.035236798226833344, -0.14994683861732483, 0.13695776462554932, -0.06724441796541214, -0.07232747972011566, -0.1256534606218338, 0.03231126442551613, 0.006848796270787716, -0.056175827980041504, -0.0050035519525408745, -0.12981905043125153, -0.15655258297920227, -0.04423123225569725, -0.030589282512664795, 0.015056964010000229, -0.030815860256552696, 0.09230087697505951, -0.01195394154638052, 0.07574634999036789, -0.09460299462080002, -0.002655915915966034, -0.15957055985927582, -0.21901091933250427, 0.0757540613412857, -0.07610595971345901, -0.029976861551404, -0.0309707373380661, -0.20808152854442596, 0.08945968002080917, 0.0900353267788887, 0.06992734968662262, -0.050338130444288254, 0.1327393352985382, -0.018049508333206177, 0.07075263559818268, 0.09785215556621552, 0.1466333568096161, 0.17712436616420746, 0.013819899410009384, -0.18042874336242676, 0.27814847230911255, 0.07862337678670883, -0.11059429496526718, -0.02742925100028515, -0.1107231080532074, 0.0688924640417099, 0.17844606935977936, -0.16024239361286163, -0.03331923112273216, 0.08163302391767502, -0.11511737108230591, 0.0827137753367424, 0.12141324579715729, 0.05295358598232269, -0.1326472908258438, -0.024957889690995216, -0.1512020379304886, -0.07632043957710266, 0.09751996397972107, -0.18575230240821838, 0.17993485927581787, -0.17306144535541534, -0.29356613755226135, -0.06440375745296478, 0.01686713472008705, 0.056736014783382416, -0.07769826799631119, -0.15434198081493378, 0.03283398225903511, -0.015444694086909294, 0.10511163622140884, 0.11198354512453079, -0.060512542724609375, -0.09572350233793259, 0.10829448699951172, 0.10912769287824631, -0.12346064299345016, -0.027716107666492462, -0.1114857867360115, 0.0739019587635994, -0.07549204677343369, 0.11401186883449554, -0.05126228183507919, -0.11833701282739639, -0.16731540858745575, -0.000028692647902062163, 0.06998428702354431, -0.08700741082429886, 0.166093111038208, 0.06694702804088593, -0.04812587425112724, -0.011007883585989475, 0.07050514966249466, -0.21333466470241547, 0.0779411718249321, -0.12231335788965225, 0.029370008036494255, -0.13410325348377228, 0.03989441320300102, -0.007413698360323906, -0.11161315441131592, -0.05982004478573799, -0.11815044283866882, 0.11513741314411163, 0.07221333682537079, -0.07031678408384323, -0.08296752721071243, -0.043654005974531174, 0.10106170177459717, -0.056724514812231064, -0.018785888329148293, 0.11822645366191864, -0.026513652876019478, 0.02830253727734089, 0.025635970756411552, -0.22234277427196503, 0.2573965787887573, 0.285571426153183, 0.03439018502831459, 0.026121117174625397, 0.06534513086080551, 0.06865861266851425, 0.2649630308151245, 0.151590034365654, -0.029882052913308144, 0.11109926551580429, -0.051303740590810776, 0.03770994022488594, -0.15006615221500397, -0.08007612824440002, 0.20278862118721008, 0.11405503749847412, 0.05296745151281357, -0.13000503182411194, 0.03586839139461517, 0.14426255226135254, -0.12028448283672333, 0.24437952041625977, -0.09309288114309311, -0.14948001503944397, -0.19378843903541565, 0.20545782148838043, 0.14042489230632782, 0.09340277314186096, -0.016950028017163277, 0.13785316050052643, -0.07414817065000534, 0.011730107478797436, 0.008271478116512299, -0.06875426322221756, 0.2269875407218933, -0.124753937125206, -0.17939554154872894, -0.09828796237707138, 0.0067530227825045586, 0.18825551867485046, 0.039679791778326035, 0.04874151945114136, -0.03557882457971573, 0.15521423518657684, 0.08866392821073532, 0.06058752164244652, -0.19068853557109833, 0.0553499236702919, 0.09667254984378815, 0.17800745368003845, 0.0028855884447693825, 0.02132359705865383, -0.07006578147411346, 0.059037838131189346, -0.12092630565166473, -0.07298774272203445, -0.02598549798130989, -0.16014529764652252, -0.05797137692570686, 0.1481521874666214, 0.27154111862182617, -0.09728328138589859, 0.09807583689689636, -0.07256925851106644, -0.2698703706264496, 0.041698481887578964, 0.05476965382695198, -0.07549411803483963, -0.017103122547268867, 0.03242480009794235, -0.11963791400194168, -0.03072700835764408, -0.08654153347015381, -0.10390125215053558, -0.21545825898647308, 0.059202615171670914, -0.09901116788387299, 0.20933793485164642, 0.06988789886236191, 0.055566783994436264, -0.03901498764753342, 0.019725611433386803, -0.07799115031957626, 0.04171318560838699, -0.01911010779440403, 0.003794291755184531, -0.2703680396080017, 0.06087486073374748, 0.007360874675214291, 0.17170491814613342, 0.016088178381323814, -0.06355620920658112, 0.11606897413730621, 0.03730221837759018, 0.16879720985889435, -0.2758411467075348, 0.11773508787155151, 0.049975257366895676, 0.29497283697128296, 0.06357517093420029, -0.10181219130754471, -0.029698260128498077, 0.10895062983036041, 0.06751498579978943, 0.19703885912895203, -0.03549511358141899, 0.004147747997194529, -0.16194230318069458, -0.07092437148094177, -0.03720611333847046, 0.01600910723209381, -0.10793641954660416, -0.019949013367295265, -0.0759306326508522, 0.12558934092521667, 0.12197355180978775, -0.017187874764204025, 0.07590386271476746, -0.12280255556106567, 0.0033944249153137207, -0.03945352882146835, -0.09973092377185822, 0.04440232738852501, -0.008337374776601791, 0.0723264142870903, -0.08184865117073059, 0.1711718738079071, 0.012142878957092762, 0.1346174031496048, 0.12434972077608109, 0.0822000503540039, 0.04489083215594292, -0.15163806080818176, -0.11238154023885727, -0.16291430592536926, 0.1699121743440628, 0.07293900102376938, 0.05156693235039711, 0.07445240020751953, -0.001673452090471983, -0.05295427516102791, -0.04464370384812355, 0.03967275470495224, 0.145386204123497, 0.07692008465528488, 0.10077673941850662, -0.03207096830010414, -0.11215566843748093, 0.010134675540030003, -0.12504425644874573, 0.01661381684243679, 0.08680988848209381, -0.03414252772927284, -0.010301662608981133, -0.21799726784229279, 0.2289026379585266, 0.03310658782720566, -0.30744582414627075, -0.037248894572257996, 0.189619779586792, 0.005561701022088528, 0.10139212757349014, -0.12752294540405273, -0.09924659132957458, -0.05765356123447418, 0.09254737198352814, -0.04363406449556351, -0.0434340238571167, 0.17936396598815918, -0.0029750901740044355, -0.051624417304992676, 0.09634305536746979, 0.01438442338258028, 0.08336760103702545, -0.10509050637483597, -0.12367954850196838, 0.07640911638736725, -0.15285204350948334, 0.05029777064919472, 0.12265908718109131, -0.09622177481651306, -0.015906617045402527, -0.016669034957885742, -0.05128536745905876, 0.027017582207918167, 0.013060524128377438, -0.040769513696432114, -0.3398944139480591, 0.10355629026889801, -0.09585428237915039, -0.004031029995530844, 0.13888747990131378, -0.04531941935420036, 0.1597774177789688, -0.09374037384986877, -0.17416952550411224, 0.10993602871894836, -0.10152864456176758, -0.0357837900519371, 0.020604712888598442, 0.08157900720834732, -0.10378062725067139, 0.10434573888778687, 0.23947766423225403, -0.2661069631576538, 0.013252456672489643, 0.011853788048028946, -0.03956232964992523, 0.05343865230679512, 0.018559368327260017, 0.035395942628383636, 0.20916566252708435, 0.008875910192728043, -0.04388152435421944, -0.22812436521053314, 0.06512188166379929, -0.015746908262372017, 0.08211544901132584, -0.05785093829035759, 0.006038379389792681, -0.12390156835317612, -0.08548106998205185, 0.1609494835138321, -0.06263323128223419, 0.04078524559736252, -0.08530624955892563, 0.12518095970153809, -0.11759674549102783, 0.027164846658706665, -0.12742498517036438, -0.04373418167233467, 0.2041894495487213, -0.13034211099147797, -0.014005523175001144, -0.17072756588459015, 0.0164528489112854, -0.13427381217479706, -0.06554697453975677, 0.0660938248038292, 0.09359816461801529, -0.020224308595061302, 0.07105199992656708, -0.16359496116638184, 0.08062128722667694, 0.05834857374429703, 0.12361889332532883, 0.010647838935256004, 0.07293342798948288, -0.08695812523365021, -0.008885250426828861, -0.015877120196819305, -0.007047654129564762, -0.10162591189146042, 0.010640382766723633, -0.15635381639003754, 0.02384641021490097, -0.05227018892765045, 0.008126644417643547, 0.015433195047080517, -0.041326574981212616, -0.07616307586431503, -0.022959424182772636, -0.06540904939174652, -0.07867230474948883, -0.07169901579618454, -0.08298756927251816, -0.0566214993596077, -0.0024521336890757084, 0.1600717008113861, -0.11978762596845627, 0.038515765219926834, -0.23303541541099548, -0.049085672944784164, -0.1350957751274109, -0.09904678165912628, 0.12376207858324051, 0.09708188474178314, -0.023855604231357574, -0.22789223492145538, -0.08718115836381912, 0.027634035795927048, -0.017724379897117615, -0.20601904392242432, 0.03311759606003761, -0.14973799884319305, -0.04926528036594391, -0.07460565865039825, 0.1409204602241516, 0.08569937944412231, 0.11858438700437546, -0.18181882798671722, -0.17839746177196503, -2.5930943997606965e-32, 0.16675488650798798, 0.04139891639351845, 0.0043733869679272175, 0.030474241822957993, 0.06782396882772446, -0.17543064057826996, 0.06428766995668411, -0.21215851604938507, -0.035129155963659286, -0.1670377403497696, 0.0008614226244390011, -0.07989665865898132, 0.00864615011960268, 0.04557401314377785, 0.0031347444746643305, 0.01777491346001625, -0.07911945134401321, -0.1597920060157776, 0.026328742504119873, 0.12570391595363617, 0.05304267629981041, -0.15767863392829895, 0.1168397068977356, 0.09838317334651947, -0.1676195114850998, 0.046818118542432785, -0.14185009896755219, 0.03241401165723801, 0.024683022871613503, 0.04300115257501602, -0.10685326904058456, -0.0829482302069664, 0.017180681228637695, -0.011727191507816315, 0.03495028614997864, 0.15590806305408478, -0.014914640225470066, -0.0050210668705403805, -0.059914812445640564, 0.015223417431116104, -0.007670905906707048, -0.11512433737516403, -0.13427631556987762, -0.023986898362636566, 0.15985751152038574, 0.14703404903411865, -0.04708535224199295, 0.16727963089942932, 0.13276751339435577, -0.04843544960021973, 0.06605427712202072, 0.017462745308876038, -0.00694337347522378, 0.09448003768920898, 0.16066405177116394, 0.08847193419933319, 0.14957940578460693, -0.040311288088560104, -0.08575949817895889, -0.027764536440372467, 0.11067314445972443, 0.03335065767168999, 0.06729640066623688, -0.007691062055528164, 0.1458972543478012, 0.14818359911441803, -0.028550930321216583, -0.013710235245525837, 0.24786488711833954, 0.1390235722064972, 0.1927223950624466, -0.1350896954536438, -0.05201377347111702, -0.019973289221525192, 0.062445733696222305, 0.05559861660003662, 0.034408703446388245, 0.016994792968034744, -0.0844530388712883, 0.13295045495033264, -0.12887665629386902, 0.02716774493455887, 0.2056577056646347, 0.13312779366970062, 0.059277113527059555, 0.09752824157476425, -0.03291410580277443, 0.06744500249624252, -0.031389281153678894, -0.05665889009833336, -0.05055523291230202, -0.12405359745025635, 0.043259914964437485, -0.0820387601852417, 0.11544293165206909, 0.1738346517086029, 0.13717183470726013, 0.015141481533646584, -0.019693167880177498, -0.1273384690284729, 0.19445456564426422, -0.0338871031999588, 0.03947030007839203, -0.1284768432378769, 0.13100282847881317, 0.0891387015581131, 0.08845110982656479, 0.01082630455493927, -0.13905061781406403, 0.009213857352733612, -0.11818527430295944, 0.12777219712734222, 0.15575478971004486, -0.07664355635643005, -0.004749868996441364, 0.11180984973907471, -0.07358857989311218, -0.0178171806037426, 0.13861332833766937, 0.04175517335534096, -0.2998303771018982, -0.06892474740743637, 0.19754497706890106, -0.07689766585826874, 0.11409230530261993, -0.04061690717935562, 0.08492337167263031, -0.05433773994445801, 0.01878298446536064, -0.03018007054924965, -0.07098211348056793, -0.03659665957093239, 7.362367568930495e-7, -0.16803807020187378, -0.009423939511179924, 0.12956570088863373, -0.09745336323976517, -0.011140720918774605, 0.04614024609327316, 0.12025503069162369, -0.06960665434598923, -0.1223846971988678, 0.016555707901716232, 0.06759404391050339, -0.1105208694934845, -0.0011442034738138318, 0.009233729913830757, -0.07869989424943924, 0.030294720083475113, -0.020665686577558517, 0.06850665807723999, -0.16488178074359894, 0.008671741001307964, 0.1512635052204132, 0.18462419509887695, 0.022502925246953964, -0.15868335962295532, -0.20646943151950836, -0.03484400734305382, -0.07347739487886429, -0.1251639574766159, 0.0005208913935348392, -0.047966368496418, 0.024161456152796745, 0.022570950910449028, -0.018221238628029823, -0.156126007437706, -0.11996535956859589, -0.02193933166563511, -0.08149063587188721, 0.08326150476932526, 0.18529339134693146, -0.20722343027591705, 0.14130321145057678, 0.1415644884109497, -0.15597490966320038, 0.14584502577781677, 0.0632832795381546, -0.058594364672899246, -0.13499565422534943, -0.0703124925494194, -0.12671230733394623, 0.08324490487575531, -0.0649590864777565, 0.012500766664743423, 0.007891897112131119, 0.10156760364770889, -0.027782341465353966, 0.014183662831783295, -0.035414088517427444, 0.13215209543704987, -0.06830980628728867, 0.10106166452169418, -0.16248534619808197, 0.12990489602088928, -0.03096987120807171, 0.019119735807180405, 0.0743914395570755, 0.07039450109004974, 0.2008817344903946, 2.6650442875745674e-34, 0.140210822224617, 0.05011893808841705, 0.04031972587108612, 0.09971649944782257, 0.08127032220363617, 0.11975844949483871, 0.0078887352719903, 0.17540039122104645, 0.10111957043409348, -0.0988512933254242, -0.03270382061600685 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
Nevermind @thomwolf, I just mentioned the other issue so that both appear linked in GitHub and we do not forget to close both once we make the corresponding Pull Request... That was the main reason! 😄
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
36
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. Nevermind @thomwolf, I just mentioned the other issue so that both appear linked in GitHub and we do not forget to close both once we make the corresponding Pull Request... That was the main reason! 😄
[ -0.036014240235090256, 0.1681513637304306, -0.10755231231451035, -0.014642128720879555, 0.08622071146965027, 0.07338812202215195, 0.023643959313631058, 0.0015949736116454005, -0.0311957485973835, 0.1874939352273941, -0.02921220287680626, 0.22466029226779938, -0.17266644537448883, 0.08990401029586792, -0.07794706523418427, -0.11622346192598343, -0.08830997347831726, 0.06698682904243469, 0.03746061772108078, 0.033451296389102936, -0.10000557452440262, 0.19508692622184753, 0.12280983477830887, -0.08939557522535324, 0.2732449471950531, -0.08380918949842453, 0.06889600306749344, -0.027422789484262466, -0.06263196468353271, -0.07248824089765549, 0.15050813555717468, 0.03937854617834091, 0.11075343936681747, 0.04456404969096184, 0.0000050981116146431305, 0.1295091062784195, 0.10513990372419357, -0.07569222897291183, -0.22689677774906158, 0.015716014429926872, -0.017592161893844604, -0.07920609414577484, 0.038887061178684235, -0.06226548179984093, 0.04421481862664223, -0.02967418171465397, -0.011137314140796661, -0.26887163519859314, -0.013622554950416088, -0.12749728560447693, -0.07791740447282791, 0.025378428399562836, -0.16698457300662994, -0.1446472406387329, 0.08772166818380356, 0.06853538006544113, -0.034362323582172394, 0.045855868607759476, -0.05130715295672417, -0.02641780860722065, -0.06056845933198929, 0.048332344740629196, 0.11459293961524963, 0.048464447259902954, 0.09028080105781555, 0.0017999421106651425, -0.19039329886436462, -0.1662842333316803, 0.0654217004776001, 0.056505266577005386, 0.10880628228187561, -0.22173139452934265, -0.04791897162795067, -0.05571359768509865, -0.05212109163403511, -0.15995968878269196, -0.0829773098230362, -0.02620379626750946, -0.0035020774230360985, 0.13530945777893066, -0.05190705880522728, -0.042932625859975815, -0.1133318692445755, -0.05227561295032501, -0.05226454138755798, -0.020120151340961456, -0.07864207029342651, 0.05908257141709328, 0.1593226194381714, -0.08596529811620712, 0.00018626480596140027, -0.00566972466185689, -0.15599609911441803, 0.07350148260593414, -0.04938613250851631, -0.10652753710746765, 0.01717417687177658, -0.20351603627204895, 0.06927289068698883, -0.005760582163929939, 0.19284877181053162, -0.012363845482468605, -0.05285315960645676, 0.10937492549419403, 0.054929934442043304, 0.01434601005166769, 0.05272231996059418, -0.21706582605838776, 0.09136564284563065, -0.06286834180355072, 0.13653109967708588, 0.012470980174839497, 0.07738646119832993, -0.15511110424995422, 0.08114413917064667, 0.24750885367393494, 0.02481243573129177, 0.2738310694694519, -0.07415348291397095, -0.21265241503715515, 0.1370808482170105, 0.08894829452037811, -0.17478394508361816, 0.07122877240180969, 0.08966948837041855, -0.029635917395353317, 0.021155141294002533, 0.08872458338737488, -0.1917523890733719, 0.03720516338944435, 0.08819307386875153, 0.10271050781011581, 0.18482668697834015, -0.12205801904201508, 0.27102240920066833, 0.08129873126745224, 0.005805087275803089, -0.18863126635551453, 0.04483897611498833, -0.01996823213994503, 0.17845147848129272, 0.014595426619052887, 0.1504051238298416, 0.08284252882003784, 0.005191395524889231, -0.0791357010602951, -0.05114416778087616, -0.051593564450740814, -0.16800998151302338, 0.20522300899028778, -0.10717590898275375, -0.04959866777062416, -0.15621444582939148, 0.036097604781389236, -0.0068270498886704445, -0.08508287370204926, -0.058096993714571, -0.10728949308395386, -0.18714001774787903, -0.0615779347717762, -0.017766883596777916, -0.0020188065245747566, -0.01328576821833849, 0.08883246034383774, 0.000920159975066781, 0.047683361917734146, -0.14369350671768188, 0.007987788878381252, -0.14927420020103455, -0.18144956231117249, 0.09395505487918854, -0.10475695133209229, -0.050724539905786514, -0.07210336625576019, -0.17645743489265442, 0.09312620759010315, 0.10613033175468445, 0.05108620971441269, -0.03655426204204559, 0.11015181988477707, 0.026070615276694298, 0.036809418350458145, 0.06456674635410309, 0.14677979052066803, 0.12723521888256073, 0.060896359384059906, -0.18837293982505798, 0.23365581035614014, 0.083047054708004, -0.0906202644109726, -0.06955751031637192, -0.1284334510564804, 0.07073348015546799, 0.13842162489891052, -0.1682821810245514, -0.058199286460876465, 0.05963197723031044, -0.16297824680805206, 0.12875577807426453, 0.11432769149541855, 0.029540343210101128, -0.12103580683469772, 0.02409983053803444, -0.15940769016742706, -0.07095848023891449, 0.09849762916564941, -0.18343503773212433, 0.12358930706977844, -0.15149614214897156, -0.2900942862033844, -0.08110278099775314, 0.017223097383975983, 0.02353822812438011, -0.05947485566139221, -0.17672336101531982, 0.00994904711842537, -0.07913117110729218, 0.03922531381249428, 0.10543347150087357, -0.034312281757593155, -0.11553239077329636, 0.07103847712278366, 0.10756011307239532, -0.10125211626291275, -0.039865970611572266, -0.05942131206393242, 0.05355587229132652, -0.10635773092508316, 0.15208519995212555, -0.03242799639701843, -0.09827711433172226, -0.14475446939468384, 0.01816978119313717, 0.10695287585258484, -0.09741063416004181, 0.15641318261623383, 0.09924951940774918, -0.028429465368390083, -0.008342846296727657, 0.06076517328619957, -0.21276015043258667, 0.09093973785638809, -0.1187409833073616, 0.08561665564775467, -0.12265326827764511, 0.034944087266922, -0.06449604034423828, -0.0890422910451889, -0.07510922104120255, -0.13275288045406342, 0.159469872713089, 0.08511286228895187, -0.062288347631692886, -0.09378429502248764, -0.04799211025238037, 0.06769277900457382, -0.051965683698654175, -0.03072056919336319, 0.07615843415260315, 0.042704250663518906, 0.08498834073543549, 0.038878533989191055, -0.2757307291030884, 0.26528117060661316, 0.2894618809223175, -0.0068854824639856815, 0.05713634192943573, 0.07362832874059677, 0.050171226263046265, 0.2927732765674591, 0.12196913361549377, -0.05380168929696083, 0.06204136833548546, -0.08256670087575912, 0.02738199196755886, -0.1581527292728424, -0.045862503349781036, 0.18400806188583374, 0.09853015094995499, 0.05439044535160065, -0.1274656355381012, 0.025933999568223953, 0.12410016357898712, -0.12106553465127945, 0.24541853368282318, -0.08455737680196762, -0.1378968358039856, -0.18545430898666382, 0.1772902011871338, 0.13246695697307587, 0.08618878573179245, -0.014686346054077148, 0.19216550886631012, -0.06784150749444962, -0.007633786648511887, 0.022987624630331993, -0.05061425268650055, 0.18625408411026, -0.09805963188409805, -0.20706143975257874, -0.0838240310549736, 0.013877242803573608, 0.20239564776420593, 0.033512454479932785, 0.005123590584844351, -0.03150847554206848, 0.1814301759004593, 0.057608284056186676, 0.004632525146007538, -0.17777885496616364, 0.06724543124437332, 0.08962012082338333, 0.17919912934303284, 0.02592712640762329, 0.008356813341379166, -0.01794794201850891, 0.04119819402694702, -0.12730319797992706, -0.06154772266745567, -0.03439361974596977, -0.128318652510643, -0.025290045887231827, 0.11701320856809616, 0.24476118385791779, -0.09588591009378433, 0.10670730471611023, -0.04886651784181595, -0.26673904061317444, 0.03654664009809494, 0.07195302844047546, -0.08843366801738739, -0.028731435537338257, 0.06170259416103363, -0.10547276586294174, -0.02577635459601879, -0.09028452634811401, -0.08453746885061264, -0.1918950229883194, 0.10138343274593353, -0.08405833691358566, 0.19361844658851624, 0.08757419139146805, 0.09337206929922104, -0.053759098052978516, 0.019093243405222893, -0.06514615565538406, 0.042917363345623016, -0.05729565769433975, 0.042324796319007874, -0.26581278443336487, 0.036311548203229904, 0.012635881081223488, 0.1567976027727127, -0.029389936476945877, -0.08786270022392273, 0.06648002564907074, -0.009204798378050327, 0.18854127824306488, -0.24779433012008667, 0.12657126784324646, 0.048874642699956894, 0.2573815882205963, 0.08209690451622009, -0.07628379762172699, -0.05056556686758995, 0.09997810423374176, 0.06888998299837112, 0.21875907480716705, -0.05273063853383064, 0.008340488187968731, -0.1550532579421997, -0.062025390565395355, -0.024765528738498688, 0.03822033852338791, -0.10749197006225586, -0.026086440309882164, -0.05740370601415634, 0.06310087442398071, 0.12127557396888733, -0.039838436990976334, 0.07349959760904312, -0.14951294660568237, -0.009042262099683285, -0.017292814329266548, -0.1239575743675232, 0.02960849180817604, -0.05725895240902901, 0.04611055552959442, -0.12076377123594284, 0.18296705186367035, -0.005712081212550402, 0.144579216837883, 0.12041109800338745, 0.10035282373428345, 0.08040439337491989, -0.15330487489700317, -0.0642886683344841, -0.16565939784049988, 0.14470720291137695, 0.09953108429908752, 0.04602307826280594, 0.06670569628477097, -0.004530466161668301, -0.06147198751568794, -0.037832677364349365, 0.10077692568302155, 0.04962342604994774, 0.06778192520141602, 0.08908344060182571, -0.025834931060671806, -0.0675853043794632, 0.07251168042421341, -0.0920410305261612, 0.026628969237208366, 0.09188739210367203, -0.004292250145226717, -0.0025498431641608477, -0.17613570392131805, 0.19440409541130066, -0.05306033045053482, -0.31845757365226746, -0.04396054148674011, 0.23015983402729034, -0.012580313719809055, 0.07156558334827423, -0.13410890102386475, -0.07266757637262344, -0.08158987760543823, 0.11539637297391891, -0.027908120304346085, -0.020074497908353806, 0.2148882895708084, -0.009865032508969307, -0.08681248873472214, 0.10286392271518707, 0.027122119441628456, 0.10693935304880142, -0.0793352797627449, -0.12788735330104828, 0.036948028951883316, -0.18371601402759552, 0.06646464765071869, 0.08929281681776047, -0.10271205008029938, 0.039742402732372284, -0.015496200881898403, -0.02893219329416752, 0.011023560538887978, 0.050085537135601044, -0.03440377488732338, -0.3341377377510071, 0.08739469200372696, -0.11464228481054306, 0.00554251903668046, 0.07905030995607376, -0.05285431072115898, 0.19266819953918457, -0.06194239482283592, -0.12217766791582108, 0.12252172082662582, -0.12890785932540894, -0.03557731583714485, -0.007648463826626539, 0.04917464405298233, -0.12481972575187683, 0.07026109844446182, 0.23610654473304749, -0.3005911707878113, 0.0419001504778862, 0.008550607599318027, -0.03912055492401123, 0.08115813881158829, 0.018046898767352104, 0.03571644052863121, 0.18518811464309692, 0.008967341855168343, -0.07843483984470367, -0.20488883554935455, 0.0013471100246533751, -0.03310560807585716, 0.07875265181064606, -0.01427671778947115, 0.01545389462262392, -0.1328924000263214, -0.10457073897123337, 0.1351466029882431, -0.09289643913507462, 0.10648519545793533, -0.07907887548208237, 0.11764861643314362, -0.15875253081321716, -0.009559588506817818, -0.14379756152629852, -0.010383252054452896, 0.1982157677412033, -0.18320709466934204, -0.030966609716415405, -0.13622426986694336, 0.07407297939062119, -0.09664320200681686, -0.01599855348467827, 0.032586466521024704, 0.12184908986091614, -0.022951411083340645, -0.008370628580451012, -0.18499267101287842, 0.07286812365055084, 0.0538024976849556, 0.11150676012039185, -0.0190126895904541, 0.057712357491254807, -0.09660366922616959, 0.0014567694161087275, -0.06637361645698547, 0.0016251769848167896, -0.06258976459503174, -0.025309225544333458, -0.1258561909198761, -0.0019244847353547812, -0.03660884499549866, -0.005441655870527029, 0.024201350286602974, -0.020875560119748116, -0.04294053465127945, -0.019360346719622612, -0.07028932124376297, -0.09119700640439987, -0.098880834877491, -0.07363557815551758, -0.029807139188051224, 0.05739085376262665, 0.16555936634540558, -0.11880829930305481, 0.0043780687265098095, -0.21111799776554108, -0.059521179646253586, -0.09305623918771744, -0.10894052684307098, 0.12550778687000275, 0.1295689344406128, -0.0030185275245457888, -0.2470284253358841, -0.0935380831360817, 0.03998532146215439, -0.028961295261979103, -0.17117802798748016, 0.02842901274561882, -0.11989735811948776, -0.043723396956920624, -0.07278875261545181, 0.15305626392364502, 0.1223725900053978, 0.11600254476070404, -0.20129726827144623, -0.151967391371727, -2.575593933739242e-32, 0.16951625049114227, 0.052217062562704086, 0.03652550280094147, 0.03234844282269478, 0.062189359217882156, -0.1326315850019455, 0.03241070732474327, -0.1947476863861084, -0.05751866102218628, -0.12509821355342865, -0.02727617509663105, -0.06505727022886276, 0.00406200997531414, 0.05013934522867203, -0.01284264400601387, 0.007971729151904583, -0.07069779932498932, -0.18893364071846008, 0.047174613922834396, 0.15640130639076233, 0.07037562131881714, -0.13050605356693268, 0.13014282286167145, 0.1279778927564621, -0.15517117083072662, 0.05089365318417549, -0.1814761757850647, 0.01190620381385088, 0.05252653732895851, 0.052377160638570786, -0.10870015621185303, -0.07962945848703384, 0.012382620014250278, -0.030131211504340172, 0.008866709657013416, 0.17387065291404724, -0.003175793681293726, -0.040820520371198654, -0.05502479895949364, 0.006690677255392075, -0.05510452389717102, -0.10800119489431381, -0.10440640896558762, -0.03600788116455078, 0.12987595796585083, 0.15320391952991486, -0.03319903835654259, 0.1308746039867401, 0.12016648054122925, -0.0659991204738617, 0.07748812437057495, 0.01461298018693924, 0.006030650343745947, 0.056802358478307724, 0.16125772893428802, 0.09214389324188232, 0.15636064112186432, -0.06462693214416504, -0.07300791144371033, 0.0005113381776027381, 0.08529024571180344, -0.0006065632915124297, 0.0353088304400444, -0.06470990926027298, 0.10392870754003525, 0.14438214898109436, -0.06678590923547745, -0.05312327668070793, 0.2232072353363037, 0.14514951407909393, 0.19091428816318512, -0.10483220964670181, -0.02207052893936634, -0.05197769030928612, 0.03231355920433998, 0.0736451968550682, 0.005792100913822651, 0.04296300187706947, -0.022516760975122452, 0.1378549188375473, -0.08348998427391052, 0.015588759444653988, 0.21382854878902435, 0.1535511016845703, 0.032087769359350204, 0.049748871475458145, -0.04431116580963135, 0.07855449616909027, -0.041768766939640045, -0.09721028804779053, -0.020492812618613243, -0.10073135048151016, 0.061348769813776016, -0.0687767043709755, 0.0991797000169754, 0.24515675008296967, 0.10748371481895447, 0.0362846776843071, -0.00496330764144659, -0.14175796508789062, 0.2056918442249298, -0.003618515096604824, 0.03751019015908241, -0.12446635216474533, 0.1608329564332962, 0.10218895971775055, 0.11101578176021576, 0.0399785116314888, -0.13038598001003265, -0.013461858965456486, -0.13861455023288727, 0.13055552542209625, 0.16046574711799622, -0.05048513412475586, 0.027034563943743706, 0.12259300798177719, -0.06783105432987213, 0.0012204144150018692, 0.13196122646331787, 0.07732759416103363, -0.2725706994533539, -0.05558319389820099, 0.15845836699008942, -0.05403752252459526, 0.13883553445339203, -0.060185980051755905, 0.10553961992263794, -0.07229242473840714, 0.013372253626585007, -0.041744016110897064, -0.05282258987426758, -0.057902876287698746, 7.385680760307878e-7, -0.19442614912986755, -0.014983193017542362, 0.10384373366832733, -0.08034215122461319, 0.009682616218924522, 0.04524211212992668, 0.08808299154043198, -0.07491222023963928, -0.13610626757144928, 0.0025040926411747932, 0.10295804589986801, -0.09543316066265106, -0.04115530103445053, -0.0036021035630255938, -0.058989960700273514, -0.004274067934602499, -0.02119755744934082, 0.10569604486227036, -0.14367161691188812, 0.04196161776781082, 0.1183188408613205, 0.20991680026054382, 0.031885091215372086, -0.15419407188892365, -0.20863112807273865, -0.04446649178862572, -0.07205190509557724, -0.1381000280380249, -0.009866205975413322, -0.01314950454980135, 0.026138540357351303, -0.00946041103452444, -0.01938422955572605, -0.14482973515987396, -0.1365819275379181, -0.02092267945408821, -0.1159779280424118, 0.06395436823368073, 0.17557717859745026, -0.1588636040687561, 0.15151625871658325, 0.1504095494747162, -0.14536333084106445, 0.11101585626602173, 0.11731254309415817, -0.1075502261519432, -0.18005625903606415, -0.054601531475782394, -0.07435872405767441, 0.07855264842510223, -0.038032498210668564, 0.011990420520305634, 0.009226015768945217, 0.09188742190599442, -0.03995481878519058, -0.012277031317353249, -0.04661932960152626, 0.0882825031876564, -0.0510890930891037, 0.07872787117958069, -0.16490349173545837, 0.1571437120437622, -0.06505803018808365, 0.0422048456966877, 0.10857858508825302, 0.08645317703485489, 0.20814599096775055, 2.6345673006420957e-34, 0.15300200879573822, 0.047457292675971985, 0.04415273293852806, 0.040968157351017, 0.0836808979511261, 0.12515656650066376, 0.0811077207326889, 0.1783495843410492, 0.08604241907596588, -0.07871197164058685, -0.04893070086836815 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
Ok yes. I think this is an important feature to be able to use large datasets which are pretty much always compressed files. In particular now this requires to keep the extracted file on the drive if you want to avoid reprocessing the dataset so in my case, this require using always ~400GB of drive instead of just 200GB (which is already significant). Two nice features would be to: - allow to delete the extracted files without loosing the ability to load the dataset from the cached arrow-file - streamlined decompression when only the currently read file is extracted - this might require to read the list of files from the extracted archives before processing them?
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
116
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. Ok yes. I think this is an important feature to be able to use large datasets which are pretty much always compressed files. In particular now this requires to keep the extracted file on the drive if you want to avoid reprocessing the dataset so in my case, this require using always ~400GB of drive instead of just 200GB (which is already significant). Two nice features would be to: - allow to delete the extracted files without loosing the ability to load the dataset from the cached arrow-file - streamlined decompression when only the currently read file is extracted - this might require to read the list of files from the extracted archives before processing them?
[ -0.04319382831454277, 0.2232615053653717, -0.09769585728645325, -0.015875473618507385, 0.0774751827120781, 0.058856718242168427, 0.053195010870695114, 0.04575347900390625, -0.025097681209445, 0.14143306016921997, -0.04034736007452011, 0.17780964076519012, -0.1837444007396698, 0.07968424260616302, -0.07290611416101456, -0.1828085333108902, -0.05089731514453888, 0.07070991396903992, 0.06484225392341614, -0.024499043822288513, -0.05856501683592796, 0.13923509418964386, 0.1284875124692917, -0.07425027340650558, 0.25268521904945374, -0.03685475140810013, 0.0666576698422432, -0.007357754744589329, -0.05371944233775139, -0.04346563667058945, 0.10899119079113007, 0.041209686547517776, 0.12551969289779663, 0.09434311836957932, 0.000005271293048281223, 0.11803246289491653, 0.08498640358448029, -0.08021850883960724, -0.2582928538322449, -0.017938969656825066, -0.01792791299521923, -0.09101259708404541, 0.03138670325279236, -0.059586089104413986, 0.05936841666698456, -0.09117233008146286, 0.03780132159590721, -0.2546118497848511, 0.04006273299455643, -0.1439088135957718, -0.08592779189348221, -0.003914406057447195, -0.17884111404418945, -0.16787560284137726, 0.004604970570653677, 0.04895790293812752, -0.029242945834994316, 0.030589327216148376, -0.001905304379761219, -0.006959173362702131, -0.0646493136882782, 0.04037534445524216, 0.13780280947685242, 0.052634984254837036, 0.10270088165998459, -0.0028520904015749693, -0.1723158061504364, -0.10619556158781052, 0.03579053282737732, 0.027705054730176926, 0.04917202144861221, -0.18931078910827637, -0.045708853751420975, -0.06045864522457123, -0.07896263897418976, -0.18530181050300598, -0.10077282786369324, -0.019893130287528038, 0.020373057574033737, 0.11708108335733414, -0.022793686017394066, -0.05159943550825119, -0.12173908948898315, -0.06524039059877396, -0.07871104776859283, -0.08127150684595108, -0.0595497265458107, 0.028320595622062683, 0.16880884766578674, -0.03066105768084526, -0.0005302034551277757, -0.04405844956636429, -0.11625957489013672, 0.06930532306432724, -0.05845443904399872, -0.06073378771543503, -0.04209797829389572, -0.1704672873020172, 0.05913303792476654, 0.0015151837142184377, 0.2558766007423401, 0.01760769635438919, -0.008377729915082455, 0.09374284744262695, 0.06385914981365204, 0.029878312721848488, -0.003620920702815056, -0.26645222306251526, 0.0783672109246254, -0.057442229241132736, 0.10507409274578094, -0.02734086476266384, 0.08423858880996704, -0.0584794320166111, 0.05679687485098839, 0.27291297912597656, -0.05710002779960632, 0.24823185801506042, -0.08696157485246658, -0.18936225771903992, 0.08980533480644226, 0.06407736241817474, -0.14506056904792786, 0.08796054869890213, 0.08405332267284393, -0.014990156516432762, 0.04279515892267227, 0.06936421245336533, -0.2018013298511505, -0.015679650008678436, 0.09154536575078964, 0.0457100011408329, 0.18253710865974426, -0.09068329632282257, 0.25833699107170105, 0.12930631637573242, -0.030057383701205254, -0.20508286356925964, 0.07096569240093231, 0.02598883956670761, 0.1816396713256836, 0.04704740643501282, 0.16124571859836578, 0.057170942425727844, 0.009896599687635899, -0.06364093720912933, -0.08942297101020813, -0.04351721704006195, -0.17012086510658264, 0.20135849714279175, -0.13336621224880219, -0.08860426396131516, -0.12067088484764099, 0.04634042829275131, 0.038928352296352386, -0.04744274914264679, 0.010969634167850018, -0.13465656340122223, -0.20467428863048553, -0.048572082072496414, -0.07115034013986588, -0.020278163254261017, -0.011696046218276024, 0.09712638705968857, -0.04010319709777832, 0.06240999326109886, -0.10343419015407562, 0.02847229316830635, -0.18063995242118835, -0.13975641131401062, 0.0706721767783165, -0.0717255175113678, -0.07927697151899338, -0.0500061959028244, -0.18858541548252106, 0.07579352706670761, 0.1322774887084961, 0.055698245763778687, -0.04358353093266487, 0.153718501329422, 0.012322833761572838, 0.04027574136853218, 0.05871930345892906, 0.14247405529022217, 0.18641188740730286, -0.0032509714365005493, -0.20807889103889465, 0.2193569839000702, 0.06526054441928864, -0.1099824532866478, -0.03527535870671272, -0.11615805327892303, 0.09106137603521347, 0.17777734994888306, -0.14430885016918182, -0.05174088850617409, 0.10689128190279007, -0.19266177713871002, 0.09855350106954575, 0.08640974014997482, 0.037221845239400864, -0.14074908196926117, 0.01006696280092001, -0.13128890097141266, -0.028101084753870964, 0.1406690627336502, -0.19159822165966034, 0.1578848958015442, -0.17524945735931396, -0.272083044052124, -0.06581255048513412, 0.028347795829176903, 0.03987828642129898, -0.026484228670597076, -0.14145460724830627, 0.024704473093152046, -0.031209511682391167, 0.07419227808713913, 0.11986997723579407, -0.010729735717177391, -0.11189436167478561, 0.08312822133302689, 0.11450809985399246, -0.12372789531946182, -0.015034498646855354, -0.06788233667612076, 0.04725465178489685, -0.07657086104154587, 0.07640398293733597, -0.01862526871263981, -0.10009054839611053, -0.1347964107990265, 0.04413679614663124, 0.03368881717324257, -0.1006997600197792, 0.13366250693798065, 0.07247855514287949, -0.014959114603698254, -0.027424486353993416, 0.030411681160330772, -0.19026939570903778, 0.07529197633266449, -0.07968895882368088, 0.059406477957963943, -0.12349441647529602, 0.006832560990005732, -0.05277436599135399, -0.10952407866716385, -0.09369845688343048, -0.12508055567741394, 0.13334646821022034, 0.06791194528341293, -0.05704572796821594, -0.0614018552005291, -0.006518287118524313, 0.08819421380758286, -0.07827388495206833, -0.038969408720731735, 0.09314245730638504, -0.017561960965394974, 0.03711501508951187, 0.016847100108861923, -0.25758859515190125, 0.22135652601718903, 0.2416716068983078, 0.017238443717360497, 0.032497938722372055, 0.10776461660861969, 0.03283143788576126, 0.2722674310207367, 0.10387930274009705, -0.07146149128675461, 0.11957370489835739, -0.05591588839888573, 0.002856210572645068, -0.12599089741706848, -0.018670398741960526, 0.1845565140247345, 0.13041137158870697, 0.07169341295957565, -0.11743705719709396, 0.004753271583467722, 0.15036919713020325, -0.1405014842748642, 0.27166441082954407, -0.06788822263479233, -0.14468899369239807, -0.1948135495185852, 0.16632772982120514, 0.1516454517841339, 0.07523353397846222, 0.010796403512358665, 0.14691780507564545, -0.07803062349557877, -0.013366700150072575, 0.029127031564712524, -0.07496336847543716, 0.18993833661079407, -0.11266551911830902, -0.21326547861099243, -0.07525625824928284, -0.04839962348341942, 0.1792019158601761, 0.014606730081140995, 0.05129717290401459, -0.032555803656578064, 0.14012154936790466, 0.08473750203847885, 0.02778938040137291, -0.20665135979652405, 0.031493473798036575, 0.04523993283510208, 0.18641974031925201, 0.007895389571785927, -0.009376897476613522, -0.06558595597743988, 0.030112987384200096, -0.19145530462265015, -0.04179943725466728, -0.049104686826467514, -0.12184213846921921, -0.033141717314720154, 0.1015959158539772, 0.21392840147018433, -0.09270568192005157, 0.1114642545580864, -0.053727202117443085, -0.26103705167770386, 0.08628368377685547, 0.10688567161560059, -0.12171778082847595, -0.01871468499302864, 0.042809683829545975, -0.0998070165514946, -0.046775318682193756, -0.0644506886601448, -0.10809300094842911, -0.17259123921394348, 0.09128838777542114, -0.06566554307937622, 0.15482750535011292, -0.0011701243929564953, 0.06977025419473648, -0.07715872675180435, 0.06792003661394119, -0.08472780138254166, 0.071648970246315, -0.017656011506915092, 0.05343213304877281, -0.2772634029388428, 0.04230615124106407, 0.06592504680156708, 0.15644414722919464, 0.007364124525338411, -0.054992564022541046, 0.06946378946304321, 0.012888014316558838, 0.19063284993171692, -0.3126373887062073, 0.13230785727500916, 0.015423127450048923, 0.27793464064598083, 0.10868537425994873, -0.09706376492977142, -0.03145550936460495, 0.08384671062231064, 0.11487606167793274, 0.1788213551044464, -0.04786595702171326, -0.013142623007297516, -0.14928016066551208, -0.10045081377029419, -0.043936364352703094, 0.0072835893370211124, -0.11304787546396255, -0.0269942507147789, -0.08230508118867874, 0.07966756075620651, 0.10077273845672607, -0.03416958451271057, 0.11619619280099869, -0.14865916967391968, -0.0021192803978919983, -0.006696984171867371, -0.10211582481861115, -0.019697045907378197, 0.021161463111639023, 0.07569939643144608, -0.11033336818218231, 0.21380694210529327, -0.049364618957042694, 0.18206660449504852, 0.13220301270484924, 0.062226925045251846, 0.09681955724954605, -0.12389157712459564, -0.09923660010099411, -0.11489403247833252, 0.08723149448633194, 0.06486033648252487, 0.06453914940357208, 0.04239688813686371, 0.015630172565579414, -0.08028917014598846, -0.01586410589516163, 0.01648324728012085, 0.08372902870178223, 0.08860132098197937, 0.05093161016702652, 0.006237472407519817, -0.11236850917339325, 0.015513209626078606, -0.1517903059720993, -0.022758403792977333, 0.07230794429779053, 0.02894729934632778, -0.013128972612321377, -0.21790403127670288, 0.23961639404296875, 0.006689650472253561, -0.2790578007698059, -0.09114692360162735, 0.20573048293590546, -0.016565393656492233, 0.08637510240077972, -0.12889717519283295, -0.10078883171081543, -0.03559217229485512, 0.11338543891906738, -0.04037189111113548, -0.003676206571981311, 0.20659221708774567, 0.030909845605492592, -0.03847705200314522, 0.12768082320690155, 0.05306098982691765, 0.0954473614692688, -0.09989847987890244, -0.13023456931114197, 0.0740213617682457, -0.20442569255828857, 0.05922875180840492, 0.11637086421251297, -0.0803230032324791, 0.03810512647032738, 0.006598450243473053, -0.07778731733560562, 0.003348030149936676, -0.02234010398387909, -0.04233252629637718, -0.3070577085018158, 0.14919309318065643, -0.08013202995061874, 0.006595264188945293, 0.10324310511350632, -0.08377552777528763, 0.1874781996011734, -0.1068815290927887, -0.1427619904279709, 0.19593021273612976, -0.07975710928440094, -0.03622104227542877, 0.01859237626194954, 0.037461742758750916, -0.14338061213493347, 0.12111898511648178, 0.2219962626695633, -0.24005143344402313, 0.060076754540205, -0.03432704135775566, -0.044106222689151764, 0.08945558965206146, 0.007786570116877556, 0.03418685495853424, 0.17237135767936707, 0.05578548461198807, -0.09135793149471283, -0.1847389042377472, -0.016847161576151848, -0.03386528789997101, 0.06988711655139923, 0.010548475198447704, 0.02632306143641472, -0.1224069893360138, -0.09451824426651001, 0.1436368227005005, -0.09371732920408249, 0.06698630005121231, -0.09234023839235306, 0.1254253387451172, -0.11698391288518906, 0.020388618111610413, -0.16441474854946136, -0.030864939093589783, 0.17876926064491272, -0.14136077463626862, -0.06628543883562088, -0.08631201833486557, 0.04428977146744728, -0.10910488665103912, -0.026989979669451714, 0.06339310109615326, 0.11183624714612961, -0.03612571582198143, 0.03899412974715233, -0.15355220437049866, 0.04611007124185562, 0.029114773496985435, 0.15181925892829895, -0.011287184432148933, 0.05016953870654106, -0.10050586611032486, 0.014761470258235931, -0.09283459186553955, 0.007765794638544321, -0.06508266925811768, 0.025641897693276405, -0.10411233454942703, -0.0520305410027504, -0.08276201784610748, 0.0002626022615004331, 0.026326371356844902, -0.014127736911177635, -0.01705762930214405, -0.040513403713703156, -0.02779793180525303, -0.07095464318990707, -0.11270283907651901, -0.09168444573879242, -0.0795493796467781, 0.0008104319567792118, 0.13804396986961365, -0.09432031214237213, 0.015432342886924744, -0.2380005419254303, -0.050933003425598145, -0.14487318694591522, -0.10790456086397171, 0.11990959942340851, 0.13506865501403809, -0.03833356499671936, -0.25693294405937195, -0.08303410559892654, -0.009623113088309765, 0.033616967499256134, -0.16569457948207855, -0.02571035921573639, -0.1287238895893097, 0.006087078712880611, -0.023035703226923943, 0.13361437618732452, 0.12120088189840317, 0.05287417396903038, -0.2393156886100769, -0.16615496575832367, -2.6021633386772904e-32, 0.20311686396598816, 0.09020770341157913, 0.011031277477741241, 0.015822529792785645, -0.017974603921175003, -0.13682310283184052, 0.05643454194068909, -0.17706747353076935, -0.06000148504972458, -0.10185890644788742, -0.013889523223042488, -0.0492781437933445, 0.033199191093444824, 0.06294263154268265, -0.027302103117108345, -0.020676570013165474, -0.08627929538488388, -0.14618699252605438, 0.02164747193455696, 0.07075327634811401, 0.04978043958544731, -0.13579866290092468, 0.12408369034528732, 0.17842525243759155, -0.20013225078582764, 0.04511479288339615, -0.0962633565068245, 0.027282115072011948, 0.09206642210483551, 0.015947997570037842, -0.1118454858660698, -0.02607530727982521, 0.04844972863793373, -0.02286355383694172, 0.012549636885523796, 0.13740666210651398, -0.07733151316642761, 0.039737120270729065, -0.031570084393024445, 0.02827695943415165, -0.03381846100091934, -0.08877057582139969, -0.07578269392251968, -0.05885126441717148, 0.14377468824386597, 0.1597537398338318, -0.059845950454473495, 0.12215790152549744, 0.11433447897434235, -0.04639029502868652, 0.048972729593515396, 0.018189849331974983, 0.008938955143094063, 0.08288984000682831, 0.10500679910182953, 0.11934906989336014, 0.16023612022399902, -0.0677526667714119, -0.06619525700807571, -0.037484653294086456, 0.08460637927055359, 0.037621788680553436, 0.019314950332045555, -0.07165755331516266, 0.15482766926288605, 0.13611795008182526, -0.04397810623049736, -0.046156249940395355, 0.16180624067783356, 0.16803184151649475, 0.179450124502182, -0.16879945993423462, -0.024202866479754448, -0.007894241251051426, 0.06093011051416397, 0.0672251507639885, -0.025460511445999146, 0.03158266097307205, -0.06281141936779022, 0.15813688933849335, -0.04122446849942207, 0.07403700053691864, 0.15663479268550873, 0.15415222942829132, 0.03976741060614586, 0.12748420238494873, -0.062296394258737564, 0.09021767228841782, -0.030708903446793556, -0.04402737691998482, -0.052176207304000854, -0.08371943235397339, 0.08065549284219742, -0.031243346631526947, 0.10373686254024506, 0.1942456066608429, 0.14957886934280396, 0.0405946746468544, -0.027209671214222908, -0.12587539851665497, 0.2405450940132141, -0.00545942597091198, 0.040878184139728546, -0.14551979303359985, 0.11093863099813461, 0.06614935398101807, 0.048996154218912125, 0.05468861758708954, -0.12794315814971924, -0.0055197663605213165, -0.15649005770683289, 0.16489632427692413, 0.15401999652385712, -0.06455547362565994, 0.018425414338707924, 0.1316724270582199, -0.029205042868852615, -0.02113231271505356, 0.12636828422546387, 0.07882567495107651, -0.252714067697525, -0.08236181735992432, 0.15916702151298523, -0.08424308896064758, 0.10860522091388702, -0.08131039142608643, 0.13548147678375244, -0.04010520130395889, -0.013505786657333374, -0.06538230925798416, -0.025912700220942497, -0.007287674583494663, 7.465499152203847e-7, -0.1476023644208908, -0.019002150744199753, 0.10725796222686768, 0.0011139895068481565, -0.0030872004572302103, 0.01172725297510624, 0.13658249378204346, -0.06430338323116302, -0.14819107949733734, 0.058416977524757385, 0.04710192233324051, -0.1219710037112236, 0.0007745259208604693, 0.06037024036049843, -0.060604508966207504, 0.03731371834874153, -0.011591107584536076, 0.06993833184242249, -0.13195371627807617, -0.01787322759628296, 0.18385876715183258, 0.23390984535217285, 0.006944505963474512, -0.17590565979480743, -0.20166485011577606, -0.0038656024262309074, -0.05413868650794029, -0.12600716948509216, -0.004717604257166386, -0.06448309868574142, 0.037722401320934296, 0.01680588535964489, 0.010116247460246086, -0.1436467170715332, -0.14357295632362366, -0.05730269476771355, -0.08762049674987793, 0.06703050434589386, 0.22702433168888092, -0.14441952109336853, 0.12111827731132507, 0.08413533121347427, -0.13491208851337433, 0.1213076114654541, 0.11891097575426102, -0.08173086494207382, -0.12634606659412384, -0.03218938410282135, -0.14932622015476227, 0.10752435773611069, -0.07063186168670654, 0.011289364658296108, -0.017941536381840706, 0.09776323288679123, -0.050761979073286057, -0.008972437120974064, -0.018703363835811615, 0.12008146941661835, -0.0999874547123909, 0.10804805159568787, -0.17773106694221497, 0.16354244947433472, -0.04174564406275749, -0.029318831861019135, 0.11224868148565292, 0.0397036075592041, 0.16783000528812408, 2.485260921399693e-34, 0.13063715398311615, 0.029253533110022545, 0.004707979969680309, 0.10781139135360718, 0.024300653487443924, 0.1145344153046608, 0.024584054946899414, 0.20780262351036072, 0.08626250922679901, -0.07028107345104218, -0.024162445217370987 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
Note that I'm confirming that with the current master branch of dataset, deleting extracted files (without deleting the arrow cache file) lead to **re-extracting** these files when reloading the dataset instead of directly loading the arrow cache file.
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
38
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. Note that I'm confirming that with the current master branch of dataset, deleting extracted files (without deleting the arrow cache file) lead to **re-extracting** these files when reloading the dataset instead of directly loading the arrow cache file.
[ -0.06424541771411896, 0.14957062900066376, -0.12461891025304794, -0.010371880605816841, 0.07078365236520767, 0.07186893373727798, 0.030534114688634872, -0.013326569460332394, -0.0409332737326622, 0.18591102957725525, -0.04331730678677559, 0.22973226010799408, -0.1755855530500412, 0.04447484388947487, -0.07260070741176605, -0.10218218713998795, -0.10860535502433777, 0.054305776953697205, -0.0015273438766598701, 0.02174314111471176, -0.0637492910027504, 0.18866224586963654, 0.14376100897789001, -0.09968899190425873, 0.21151761710643768, -0.08107461780309677, 0.05739998444914818, -0.022370142862200737, -0.04435255378484726, -0.12122616171836853, 0.18302911520004272, 0.010296155698597431, 0.09206589311361313, 0.06230473890900612, 0.0000051279548642924055, 0.1270628422498703, 0.11097874492406845, -0.049852579832077026, -0.2958323657512665, -0.030364051461219788, -0.014584287069737911, -0.07375045865774155, 0.07680915296077728, -0.04120423272252083, 0.059272535145282745, -0.062085941433906555, 0.02521199733018875, -0.27485716342926025, -0.020764201879501343, -0.11252758651971817, -0.05958053097128868, 0.0016346958000212908, -0.17175932228565216, -0.16402089595794678, 0.041501984000205994, 0.08212969452142715, -0.006889336742460728, 0.03558335080742836, -0.08441866189241409, -0.030843326821923256, -0.06004415825009346, 0.02655969001352787, 0.11905647069215775, 0.08402937650680542, 0.10087981820106506, -0.01968539133667946, -0.18311063945293427, -0.16698935627937317, 0.0769067257642746, 0.06559567153453827, 0.1211937889456749, -0.194111630320549, -0.037854161113500595, -0.05490516126155853, -0.05550437048077583, -0.10754188150167465, -0.07342644035816193, -0.04270295053720474, -0.01647012308239937, 0.09805204719305038, -0.0008643376058898866, -0.05885230377316475, -0.08572886139154434, -0.08119961619377136, -0.13481375575065613, -0.0376548171043396, -0.08024773746728897, 0.04024951905012131, 0.2045190930366516, -0.11705128103494644, 0.036124855279922485, -0.02117922529578209, -0.19149158895015717, 0.055102813988924026, -0.06530467420816422, -0.040764376521110535, 0.0060806479305028915, -0.16338858008384705, 0.04722044989466667, 0.0337914377450943, 0.2403394728899002, -0.01675504632294178, -0.06529891490936279, 0.10241656005382538, 0.10719123482704163, -0.0038142919074743986, 0.03877878561615944, -0.23083196580410004, 0.09928933531045914, -0.0698717013001442, 0.11825501173734665, 0.0001331297680735588, 0.046479035168886185, -0.171574667096138, 0.08243892341852188, 0.2611972391605377, 0.04404445365071297, 0.25491639971733093, -0.041576698422431946, -0.21722494065761566, 0.1423962265253067, 0.06273209303617477, -0.17395207285881042, 0.09019499272108078, 0.12032535672187805, 0.018529057502746582, 0.010499881580471992, 0.06001802906394005, -0.15825308859348297, -0.007795700803399086, 0.0699877068400383, 0.0673488900065422, 0.1440505087375641, -0.12291374802589417, 0.26575198769569397, 0.08684103190898895, 0.007239410653710365, -0.17198525369167328, 0.03596653416752815, -0.03082713671028614, 0.17658452689647675, 0.014272822998464108, 0.18462540209293365, 0.0809045135974884, 0.0012741431128233671, -0.07501586526632309, -0.05716792494058609, 0.005465665832161903, -0.13334357738494873, 0.17836739122867584, -0.07061701267957687, -0.03364373743534088, -0.1721581071615219, 0.018248390406370163, -0.009293739683926105, -0.07043749839067459, -0.07524535804986954, -0.11783252656459808, -0.19892661273479462, -0.07981549948453903, -0.001658847089856863, 0.002583696972578764, -0.015280254185199738, 0.09609483182430267, 0.005723657552152872, 0.0760590210556984, -0.09027178585529327, 0.017365222796797752, -0.1823810487985611, -0.17678037285804749, 0.044320691376924515, -0.1474953144788742, -0.061570364981889725, -0.07166548818349838, -0.17930608987808228, 0.07570584863424301, 0.1142173707485199, 0.07466435432434082, -0.06279037147760391, 0.08957299590110779, 0.006031343713402748, 0.02885332517325878, 0.029861735180020332, 0.12832020223140717, 0.13598252832889557, 0.07152318954467773, -0.2225741147994995, 0.22867366671562195, 0.1047588661313057, -0.1026095375418663, -0.06606505066156387, -0.09268786758184433, 0.065054751932621, 0.15332622826099396, -0.17028918862342834, -0.0680408701300621, 0.09623513370752335, -0.15905077755451202, 0.11732129007577896, 0.062345344573259354, 0.02109649032354355, -0.1355743557214737, -0.03307965025305748, -0.14484545588493347, -0.05142579600214958, 0.07947005331516266, -0.2253783494234085, 0.15207812190055847, -0.14467354118824005, -0.29876571893692017, -0.11397755146026611, 0.015141277574002743, 0.05929854139685631, -0.08274681121110916, -0.16838273406028748, -0.016186734661459923, -0.07698877155780792, 0.09116724878549576, 0.08132337033748627, -0.07969980686903, -0.10062535852193832, 0.08082704246044159, 0.08942563831806183, -0.0893898531794548, -0.061640143394470215, -0.06438470631837845, 0.11564409732818604, -0.08251894265413284, 0.14331550896167755, -0.02486828900873661, -0.13204365968704224, -0.1570710390806198, -0.006250365171581507, 0.09521849453449249, -0.09458658844232559, 0.1608903557062149, 0.09521768987178802, -0.04494703561067581, -0.0039576259441673756, -0.0007668702746741474, -0.2225974053144455, 0.09043815732002258, -0.10744313895702362, 0.08446361869573593, -0.1535787433385849, 0.017074238508939743, -0.04012720659375191, -0.06607275456190109, -0.05303315445780754, -0.12082699686288834, 0.13107556104660034, 0.07788468897342682, -0.06074926257133484, -0.07978510111570358, -0.03890613839030266, 0.08110888302326202, 0.003031591884791851, -0.02463793195784092, 0.11696960777044296, 0.0725996121764183, 0.06764519959688187, 0.07043904066085815, -0.2591762840747833, 0.26110565662384033, 0.2172042578458786, 0.014557434245944023, 0.054196689277887344, 0.09953565150499344, 0.023467345163226128, 0.2822096645832062, 0.14651508629322052, -0.04512150585651398, 0.06373373419046402, -0.061466965824365616, 0.06274149566888809, -0.18541479110717773, -0.02492867037653923, 0.16445259749889374, 0.11727030575275421, 0.022369418293237686, -0.16773547232151031, 0.03796001896262169, 0.1469334214925766, -0.11600220203399658, 0.2500779330730438, -0.08044201880693436, -0.15259067714214325, -0.1729288250207901, 0.1751643419265747, 0.11624675244092941, 0.07782577723264694, -0.023858273401856422, 0.1465453952550888, -0.05827897787094116, 0.005787914153188467, 0.040739353746175766, -0.06655043363571167, 0.1870732307434082, -0.13329803943634033, -0.21965184807777405, -0.06473929435014725, -0.013348768465220928, 0.1977114975452423, 0.02081885002553463, 0.03477818891406059, -0.015512201003730297, 0.13329365849494934, 0.05932269245386124, 0.02139374054968357, -0.1948464959859848, 0.0839768499135971, 0.09249209612607956, 0.20630158483982086, -0.003033664543181658, 0.02307991497218609, -0.02905951626598835, 0.05465887114405632, -0.13515180349349976, -0.049132999032735825, -0.05527471378445625, -0.15102213621139526, -0.016349028795957565, 0.12148614227771759, 0.24125665426254272, -0.11702988296747208, 0.07614061236381531, -0.06276492774486542, -0.27865099906921387, 0.07145719230175018, 0.06789640337228775, -0.07699719816446304, -0.01871480792760849, 0.06501179188489914, -0.10268009454011917, -0.04563826322555542, -0.10011530667543411, -0.1031593382358551, -0.1639070361852646, 0.11887845396995544, -0.09791196137666702, 0.20884808897972107, 0.0852523222565651, 0.06762915849685669, 0.0032704363111406565, 0.05891210213303566, -0.0803866758942604, 0.1155211329460144, -0.06548520922660828, 0.0346829891204834, -0.24315902590751648, 0.05252851918339729, 0.025935817509889603, 0.1692301481962204, -0.042443905025720596, -0.09567230194807053, 0.10571137815713882, -0.012656514532864094, 0.15332205593585968, -0.21952897310256958, 0.1091136634349823, 0.014027602970600128, 0.22858290374279022, 0.0802723616361618, -0.09325522184371948, -0.06115211546421051, 0.09616617858409882, 0.06107190251350403, 0.20898938179016113, -0.06863553822040558, 0.006975636817514896, -0.15969343483448029, -0.07914001494646072, -0.04958951845765114, 0.027537552639842033, -0.09631489962339401, -0.046181343495845795, -0.048787619918584824, 0.09386841207742691, 0.11379004269838333, -0.034880585968494415, 0.08954893797636032, -0.17521710693836212, 0.007007269654422998, -0.03538623824715614, -0.08577984571456909, 0.04708776995539665, -0.05748645216226578, 0.07256466895341873, -0.12228461354970932, 0.185612291097641, -0.00974271260201931, 0.12343064695596695, 0.10555151104927063, 0.09663482010364532, 0.06312695145606995, -0.13144871592521667, -0.05144020542502403, -0.13574761152267456, 0.12742985785007477, 0.07274715602397919, 0.060260873287916183, 0.04293825477361679, 0.011281623505055904, -0.053417619317770004, -0.02619204670190811, 0.09633919596672058, 0.08569035679101944, 0.06734944880008698, 0.11689488589763641, -0.01320783793926239, -0.07712171226739883, -0.046064335852861404, -0.09896557033061981, 0.044157013297080994, 0.0874737799167633, -0.017501860857009888, 0.042340248823165894, -0.14350701868534088, 0.175606369972229, 0.013581502251327038, -0.31964948773384094, -0.02069689705967903, 0.19170160591602325, -0.027673976495862007, 0.10396464169025421, -0.1106201559305191, -0.0984080582857132, -0.08008541166782379, 0.1453334093093872, -0.01254043448716402, -0.009336446411907673, 0.2225939780473709, -0.017309634014964104, -0.034088946878910065, 0.14542007446289062, 0.10508470237255096, 0.16495487093925476, -0.12762293219566345, -0.16135258972644806, 0.06418779492378235, -0.1755848079919815, 0.05603436008095741, 0.08088686317205429, -0.07580593228340149, 0.0022059830371290445, -0.017612513154745102, -0.019816188141703606, -0.0039043694268912077, 0.018009157851338387, -0.0307733453810215, -0.3182607591152191, 0.08009506016969681, -0.08820457011461258, -0.011030340567231178, 0.07351214438676834, -0.03612464293837547, 0.20602229237556458, -0.062090009450912476, -0.13570746779441833, 0.1362142115831375, -0.14186714589595795, -0.043343398720026016, 0.02494894154369831, 0.07552923262119293, -0.1378224492073059, 0.09569978713989258, 0.26993653178215027, -0.2626780569553375, 0.051323771476745605, 0.03572128340601921, -0.018264692276716232, 0.07768242806196213, 0.016161277890205383, 0.030021907761693, 0.2275482565164566, -0.0006536707514896989, -0.07749798148870468, -0.2116852104663849, 0.044202957302331924, -0.02531534992158413, 0.06835043430328369, -0.010595737025141716, 0.02427133359014988, -0.10057587921619415, -0.12131929397583008, 0.16316549479961395, -0.0864860787987709, 0.0929117351770401, -0.08106127381324768, 0.10901385545730591, -0.13868780434131622, -0.0014126490568742156, -0.10845527797937393, -0.057260461151599884, 0.185493603348732, -0.16411133110523224, -0.0233138557523489, -0.13801315426826477, 0.03453001752495766, -0.08866983652114868, -0.05211690813302994, 0.023992178961634636, 0.12763483822345734, 0.006219115573912859, 0.007870497182011604, -0.17607423663139343, 0.08880036324262619, 0.06023668125271797, 0.11920180171728134, -0.01903608627617359, 0.04092009738087654, -0.12571114301681519, -0.006942274048924446, -0.0260426327586174, 0.020839735865592957, -0.08468903601169586, -0.017391318455338478, -0.09075125306844711, 0.00985192321240902, -0.07438550889492035, -0.010315695777535439, 0.035763438791036606, -0.09198173135519028, -0.02227000705897808, -0.041985198855400085, -0.06257764995098114, -0.08858154714107513, -0.07990861684083939, -0.0791911855340004, -0.05032273381948471, 0.04263157397508621, 0.21345804631710052, -0.12931543588638306, -0.005111128091812134, -0.1948135495185852, -0.09382883459329605, -0.0593433640897274, -0.13204558193683624, 0.1338927000761032, 0.10107432305812836, -0.018165091052651405, -0.21838951110839844, -0.10363422334194183, 0.020129965618252754, 0.0098084956407547, -0.19731687009334564, 0.03756158798933029, -0.11416157335042953, -0.05421558395028114, -0.10783345997333527, 0.16153602302074432, 0.08142346888780594, 0.12619531154632568, -0.15931999683380127, -0.14015716314315796, -2.53849415653294e-32, 0.167480930685997, 0.06911125034093857, 0.0372002013027668, 0.02677971124649048, 0.051032643765211105, -0.1233728900551796, 0.02860640548169613, -0.22589416801929474, -0.047659773379564285, -0.1516130119562149, -0.030661506578326225, -0.06870274245738983, 0.009164026007056236, 0.04996230825781822, -0.0287158265709877, -0.00038149874308146536, -0.060958653688430786, -0.18538129329681396, 0.03793447092175484, 0.15658001601696014, 0.052331458777189255, -0.15005002915859222, 0.10540449619293213, 0.13350750505924225, -0.16618403792381287, 0.018344130367040634, -0.16878770291805267, 0.041354455053806305, 0.046739280223846436, 0.03438536077737808, -0.07030360400676727, -0.08485443890094757, -0.012521629221737385, -0.03758765757083893, 0.03536267206072807, 0.14545844495296478, -0.00703788548707962, 0.001317415153607726, -0.04423021525144577, -0.004549366421997547, -0.06696295738220215, -0.10541800409555435, -0.0861431136727333, -0.0011958287796005607, 0.13495531678199768, 0.1389167159795761, -0.04982220381498337, 0.13543866574764252, 0.10211209952831268, -0.08929596096277237, 0.08792269229888916, 0.013409585691988468, -0.0055359830148518085, 0.0708889365196228, 0.1372445821762085, 0.09558486938476562, 0.13804201781749725, -0.12031382322311401, -0.10197621583938599, 0.03116442635655403, 0.1722666174173355, 0.008893185295164585, 0.03001837059855461, 0.007196187507361174, 0.13132114708423615, 0.13387201726436615, 0.027242930606007576, -0.0588340200483799, 0.258995920419693, 0.13888460397720337, 0.16588139533996582, -0.09609159827232361, -0.03215543553233147, -0.03869897499680519, 0.023473216220736504, 0.07950474321842194, 0.01297781616449356, 0.01637539081275463, -0.04541586712002754, 0.14086487889289856, -0.11589805036783218, 0.030495965853333473, 0.17166320979595184, 0.14063331484794617, 0.04462961107492447, 0.02665511704981327, -0.048568520694971085, 0.07240698486566544, -0.039943259209394455, -0.0961461141705513, -0.017115511000156403, -0.06879762560129166, 0.06542637199163437, -0.05971284583210945, 0.12455412745475769, 0.23735803365707397, 0.13531288504600525, 0.036584705114364624, -0.033751606941223145, -0.12936295568943024, 0.2022455334663391, -0.04158478230237961, 0.04084869846701622, -0.1084916964173317, 0.16833899915218353, 0.10859084874391556, 0.11375976353883743, 0.03966575488448143, -0.1512533277273178, -0.0035794873256236315, -0.1251406967639923, 0.1246204674243927, 0.1509205847978592, -0.08276199549436569, 0.034018006175756454, 0.09883768111467361, -0.05478360876441002, -0.00670065451413393, 0.13097447156906128, 0.0729326456785202, -0.265306293964386, -0.06592810153961182, 0.158932626247406, -0.05382625758647919, 0.14665144681930542, -0.026202578097581863, 0.09036177396774292, -0.08342929929494858, 0.025983158499002457, -0.039398349821567535, -0.0647796168923378, -0.07450053095817566, 7.411010187752254e-7, -0.22842463850975037, 0.03579884022474289, 0.11032937467098236, -0.055108506232500076, 0.0436125174164772, 0.020697040483355522, 0.10426796227693558, -0.0939813032746315, -0.1301080584526062, 0.03828774392604828, 0.14021384716033936, -0.0969197228550911, -0.037488747388124466, 0.017117604613304138, -0.05699364095926285, 0.0005556290270760655, -0.02506384812295437, 0.08599236607551575, -0.15438657999038696, 0.04131334275007248, 0.1352550983428955, 0.1955433487892151, 0.011374840512871742, -0.15458467602729797, -0.19726607203483582, -0.013747790828347206, -0.09089934825897217, -0.11173126101493835, -0.030385809019207954, -0.01613287627696991, -0.005886916071176529, 0.013641727156937122, -0.012285217642784119, -0.13172726333141327, -0.1227722242474556, -0.03711473569273949, -0.1570340394973755, 0.03151354566216469, 0.17207759618759155, -0.12545274198055267, 0.19455406069755554, 0.18001605570316315, -0.1411968469619751, 0.10752162337303162, 0.08902426809072495, -0.11955675482749939, -0.11199204623699188, -0.06871145963668823, -0.12629349529743195, 0.0603068470954895, -0.05983029678463936, 0.024616120383143425, 0.022820236161351204, 0.10186886787414551, -0.06843842566013336, 0.004722485784441233, -0.05078873783349991, 0.09454290568828583, -0.04192142188549042, 0.07385298609733582, -0.14385448396205902, 0.1363074630498886, -0.02920975349843502, 0.06033508479595184, 0.06455018371343613, 0.03027149848639965, 0.17683257162570953, 2.9351637058439133e-34, 0.14586591720581055, 0.026840047910809517, 0.010138841345906258, 0.011019079945981503, 0.11014478653669357, 0.09630922228097916, 0.13160929083824158, 0.16670207679271698, 0.08635827153921127, -0.10817156732082367, -0.07190262526273727 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
Hi ! That's weird, it doesn't do that on my side (tested on master on my laptop by deleting the `extracted` folder in the download cache directory). You tested with one of the files at https://huggingface.co/datasets/thomwolf/github-python that you have locally ?
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
41
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. Hi ! That's weird, it doesn't do that on my side (tested on master on my laptop by deleting the `extracted` folder in the download cache directory). You tested with one of the files at https://huggingface.co/datasets/thomwolf/github-python that you have locally ?
[ 0.009998741559684277, 0.09690531343221664, -0.12611225247383118, 0.017992855980992317, 0.10463452339172363, 0.10852889716625214, 0.029028208926320076, -0.007248505484312773, -0.02106836810708046, 0.2039632797241211, -0.046198394149541855, 0.2344363033771515, -0.14423541724681854, 0.07707110792398453, -0.06277155876159668, -0.08146877586841583, -0.1231720969080925, 0.04520495980978012, 0.04083407670259476, 0.05604781582951546, -0.1014503538608551, 0.23456397652626038, 0.11761555820703506, -0.06693004816770554, 0.2678318917751312, -0.0767306387424469, 0.08485027402639389, -0.019205057993531227, -0.07438016682863235, -0.10635650902986526, 0.1891421526670456, 0.01806737668812275, 0.1278100609779358, 0.06943608075380325, 0.000004959757006872678, 0.1360745131969452, 0.12156151980161667, -0.09865370392799377, -0.2391505390405655, 0.014605891890823841, -0.023101650178432465, -0.04965546354651451, 0.07892408221960068, -0.08034288883209229, 0.02236144058406353, 0.02290176786482334, -0.04200832173228264, -0.25633004307746887, -0.04056013002991676, -0.0993284285068512, -0.06492767482995987, 0.05463245511054993, -0.1848136931657791, -0.1501302421092987, 0.032428935170173645, 0.08741378039121628, -0.025517020374536514, 0.04566177353262901, -0.09485338628292084, -0.036159154027700424, -0.05187622085213661, 0.026451118290424347, 0.11466016620397568, 0.12699735164642334, 0.07663877308368683, 0.02120988816022873, -0.20566992461681366, -0.22574575245380402, 0.07613034546375275, 0.10543857514858246, 0.09234502911567688, -0.23619036376476288, -0.06351608037948608, -0.08413020521402359, -0.035985223948955536, -0.13121971487998962, -0.07647928595542908, -0.015845024958252907, -0.034738264977931976, 0.16158829629421234, -0.08450361341238022, -0.04115358367562294, -0.109501414000988, -0.04953504353761673, -0.0871291384100914, -0.013497244566679, -0.13056623935699463, 0.054658129811286926, 0.17690813541412354, -0.0771631971001625, -0.03475240617990494, -0.0010367926442995667, -0.15597331523895264, 0.07188501954078674, -0.04559168964624405, -0.07104529440402985, 0.033184394240379333, -0.14857067167758942, 0.05962501838803291, 0.00264594703912735, 0.14368639886379242, -0.03900235518813133, -0.05473821237683296, 0.12373586744070053, 0.09272206574678421, 0.03240004926919937, 0.024942118674516678, -0.18704955279827118, 0.12190297991037369, -0.042007606476545334, 0.11383946239948273, 0.009513309225440025, 0.06652618944644928, -0.1345674842596054, 0.07365810871124268, 0.22017568349838257, 0.08314084261655807, 0.24002361297607422, -0.06718502938747406, -0.14647579193115234, 0.12872757017612457, 0.08364007622003555, -0.16032059490680695, 0.0968952551484108, 0.05995618551969528, -0.029860829934477806, 0.0011743768118321896, 0.13074828684329987, -0.17365165054798126, 0.006232376676052809, 0.08164107799530029, 0.06783323734998703, 0.16880884766578674, -0.15242572128772736, 0.274069219827652, 0.06414567679166794, -0.020484067499637604, -0.16886769235134125, 0.06073453277349472, -0.0553320087492466, 0.19451744854450226, -0.012225327081978321, 0.1618964821100235, 0.08121896535158157, 0.010419540107250214, -0.044686686247587204, -0.03958910331130028, -0.07728853076696396, -0.12890996038913727, 0.16578564047813416, -0.1109018325805664, -0.054057784378528595, -0.18703599274158478, 0.03484709933400154, -0.004290490876883268, -0.10407009720802307, -0.06641235202550888, -0.11274899542331696, -0.1791028380393982, -0.02932085283100605, 0.03799327462911606, -0.02184447832405567, 0.001565947663038969, 0.06542042642831802, 0.03890027850866318, 0.1037953794002533, -0.09387935698032379, 0.008528235368430614, -0.14112502336502075, -0.2051464021205902, 0.06486739218235016, -0.08452581614255905, -0.06312628090381622, -0.05805036425590515, -0.20827744901180267, 0.1074443906545639, 0.07221329212188721, 0.04674769192934036, -0.1077040433883667, 0.10743965208530426, 0.044579893350601196, 0.08798947185277939, 0.06305469572544098, 0.13114015758037567, 0.12618222832679749, 0.0475473627448082, -0.1935608685016632, 0.22884349524974823, 0.1024114117026329, -0.08996046334505081, -0.08680658042430878, -0.12091980874538422, 0.088790662586689, 0.13051563501358032, -0.17233653366565704, -0.04039316624403, 0.062383268028497696, -0.12810535728931427, 0.16411130130290985, 0.08208875358104706, 0.0512932687997818, -0.12584933638572693, 0.03689316660165787, -0.1723615825176239, -0.06365843862295151, 0.10789066553115845, -0.18957369029521942, 0.11305244266986847, -0.15936371684074402, -0.2793004810810089, -0.10398470610380173, 0.008071611635386944, 0.041577983647584915, -0.07778224349021912, -0.23799319565296173, -0.035010576248168945, -0.12282734364271164, 0.03637566417455673, 0.11765075474977493, -0.03864588961005211, -0.13348795473575592, 0.0831848606467247, 0.1101212427020073, -0.054653458297252655, -0.08988925069570541, -0.07862647622823715, 0.009111468680202961, -0.08231884241104126, 0.14444290101528168, -0.01382539700716734, -0.1120477020740509, -0.16292384266853333, 0.004156607668846846, 0.10915347188711166, -0.10593109577894211, 0.14608336985111237, 0.10804614424705505, -0.0367748886346817, -0.003882041433826089, 0.0851878747344017, -0.22801437973976135, 0.10852127522230148, -0.09184673428535461, 0.10497214645147324, -0.1531006395816803, 0.025571752339601517, -0.06954929977655411, -0.05081158131361008, -0.05558900162577629, -0.1508857160806656, 0.20440691709518433, 0.0856308862566948, -0.10233523696660995, -0.1001083105802536, -0.010593689046800137, 0.05545671656727791, -0.05027817562222481, -0.004934860859066248, 0.06945052742958069, 0.06537998467683792, 0.10171175748109818, 0.04509096220135689, -0.2655501663684845, 0.2654831111431122, 0.25813791155815125, -0.04340870678424835, 0.03120250068604946, 0.10635703057050705, 0.02624230645596981, 0.29809924960136414, 0.1501929610967636, -0.051862217485904694, -0.007773715537041426, -0.08060018718242645, 0.04696960747241974, -0.14003469049930573, -0.0681014433503151, 0.1572103500366211, 0.09138022363185883, 0.05309019237756729, -0.14828301966190338, 0.07163495570421219, 0.0943131223320961, -0.1321420818567276, 0.25001996755599976, -0.04733249545097351, -0.12704414129257202, -0.18823525309562683, 0.18652483820915222, 0.11643611639738083, 0.07230924814939499, -0.052853260189294815, 0.17239408195018768, -0.08176898956298828, 0.002092610578984022, 0.04512118175625801, -0.007930871099233627, 0.14829924702644348, -0.07181595265865326, -0.2345704883337021, -0.06386323273181915, 0.012654438614845276, 0.19213064014911652, 0.024841440841555595, 0.005444822367280722, -0.06411480903625488, 0.16041892766952515, 0.04916715621948242, -0.03853297233581543, -0.15341459214687347, 0.11076003313064575, 0.12575753033161163, 0.15812990069389343, 0.09394344687461853, -0.023415207862854004, -0.029088450595736504, 0.021982328966259956, -0.10894285142421722, -0.027347028255462646, -0.022440362721681595, -0.17131559550762177, -0.025231825187802315, 0.1100049838423729, 0.2732104957103729, -0.1096629723906517, 0.11730803549289703, -0.05902006849646568, -0.2741829454898834, 0.024025077000260353, 0.07465416193008423, -0.10133571922779083, -0.0280569177120924, 0.05450195446610451, -0.13214211165905, -0.02504705637693405, -0.09600791335105896, -0.11723390966653824, -0.21381007134914398, 0.14535489678382874, -0.09340834617614746, 0.1891781985759735, 0.11808200925588608, 0.09562286734580994, -0.06391480565071106, 0.014353388920426369, -0.08927920460700989, 0.05682353675365448, -0.06339725106954575, 0.086855448782444, -0.23893846571445465, 0.10939737409353256, 0.008145932108163834, 0.14417538046836853, -0.01732540875673294, -0.08524805307388306, 0.11406799405813217, -0.0257469043135643, 0.20913806557655334, -0.23457710444927216, 0.13828927278518677, 0.05909249559044838, 0.22609972953796387, 0.07352399080991745, -0.08139567822217941, -0.06081254407763481, 0.15124046802520752, 0.0026794476434588432, 0.2235616147518158, -0.07218284159898758, 0.014673197641968727, -0.14092573523521423, -0.07126033306121826, -0.016203196719288826, 0.036766838282346725, -0.07195010781288147, -0.008411715738475323, -0.0640636458992958, 0.05684548243880272, 0.11212503910064697, -0.03467204049229622, 0.021756676957011223, -0.13953545689582825, -0.010913051664829254, -0.0013385028578341007, -0.09243864566087723, 0.06600501388311386, -0.10781922191381454, 0.06441199779510498, -0.09898598492145538, 0.19506417214870453, -0.008175143972039223, 0.10408417135477066, 0.08628133684396744, 0.07115286588668823, 0.09163952618837357, -0.1490287184715271, -0.05703898146748543, -0.15027637779712677, 0.1664496809244156, 0.15608561038970947, 0.08844123780727386, 0.048055876046419144, 0.02159540168941021, -0.0693809911608696, -0.04486054927110672, 0.0692741721868515, 0.04743117466568947, 0.05341505631804466, 0.07252814620733261, -0.013718503527343273, -0.05663786455988884, 0.009304097853600979, -0.033943258225917816, 0.05540316551923752, 0.13991257548332214, 0.04310416430234909, 0.012049468234181404, -0.15122383832931519, 0.15347984433174133, -0.09716399013996124, -0.3567664921283722, 0.006474945694208145, 0.22829541563987732, 0.009421316906809807, 0.05034104734659195, -0.07121287286281586, -0.07541122287511826, -0.10214874893426895, 0.09609021991491318, -0.03749145567417145, -0.015171301551163197, 0.19897937774658203, -0.010006997734308243, -0.07875961065292358, 0.14837321639060974, 0.012421328574419022, 0.14105796813964844, -0.09529094398021698, -0.14485447108745575, 0.013676214031875134, -0.19762979447841644, 0.03830482065677643, 0.043479595333337784, -0.1056307703256607, -0.01255530770868063, -0.069450743496418, 0.03134162351489067, -0.015275676734745502, 0.05478576943278313, 0.009324280545115471, -0.3228822350502014, 0.07997410744428635, -0.12874871492385864, -0.012190669775009155, 0.03867945820093155, -0.049984920769929886, 0.16646157205104828, -0.06527367979288101, -0.11561750620603561, 0.0871598944067955, -0.1889558583498001, -0.04820990189909935, -0.012284386903047562, 0.12122295796871185, -0.09375318884849548, 0.09500265121459961, 0.22197946906089783, -0.2531712055206299, 0.08336647599935532, 0.015846427530050278, -0.02413938008248806, 0.07751510292291641, 0.025305692106485367, 0.04663356766104698, 0.1734829545021057, 0.019957777112722397, -0.08140506595373154, -0.20613300800323486, 0.012743113562464714, -0.029477575793862343, 0.11927305161952972, -0.0055581023916602135, 0.03828871622681618, -0.17580541968345642, -0.12226922810077667, 0.15383431315422058, -0.0030287213157862425, 0.10056285560131073, -0.08444316685199738, 0.11280012130737305, -0.12199237197637558, -0.0196599829941988, -0.15179060399532318, 0.03055362030863762, 0.21461014449596405, -0.14379756152629852, 0.006910937372595072, -0.13913509249687195, 0.08366941660642624, -0.07396566867828369, -0.021030716598033905, 0.005978305358439684, 0.11572633683681488, -0.008296795189380646, -0.03534965589642525, -0.19177207350730896, 0.11076265573501587, 0.05920419469475746, 0.08266464620828629, -0.023890066891908646, 0.040763091295957565, -0.091502346098423, 0.0266144759953022, -0.029679380357265472, 0.058367468416690826, -0.09843294322490692, -0.04365198314189911, -0.11993589997291565, -0.030504325404763222, -0.024729235097765923, -0.010840321891009808, 0.008959892205893993, -0.00854569859802723, -0.08047226071357727, -0.04355163499712944, -0.07340875267982483, -0.11732025444507599, -0.13524600863456726, -0.030876195058226585, 0.00019915090524591506, 0.04121038317680359, 0.1968894749879837, -0.07142966985702515, -0.004606321919709444, -0.21340101957321167, -0.08807021379470825, -0.05419624596834183, -0.10915666818618774, 0.15330807864665985, 0.13907897472381592, 0.06422911584377289, -0.2733354866504669, -0.11694316565990448, 0.022130360826849937, -0.044779859483242035, -0.19881755113601685, 0.04096066579222679, -0.08669827878475189, -0.0871439203619957, -0.0852053239941597, 0.14199954271316528, 0.15244999527931213, 0.17927689850330353, -0.10534565895795822, -0.19834928214550018, -2.562583268390753e-32, 0.1533498466014862, 0.05830446630716324, 0.02314322628080845, 0.0692301020026207, 0.049033183604478836, -0.13640762865543365, -0.002524553332477808, -0.16286411881446838, -0.08627501130104065, -0.14540261030197144, -0.051210008561611176, -0.06571703404188156, -0.01504329964518547, 0.007378986570984125, -0.017130723223090172, -0.018465571105480194, -0.09103716909885406, -0.1955125629901886, 0.02131025306880474, 0.16629676520824432, 0.060291048139333725, -0.12528161704540253, 0.1555800586938858, 0.09936055541038513, -0.16853120923042297, 0.033328671008348465, -0.2442336529493332, -0.026668094098567963, 0.04941541701555252, 0.07981870323419571, -0.09912265092134476, -0.07032743096351624, 0.029636476188898087, -0.0384400449693203, 0.007943985052406788, 0.16761857271194458, 0.03654693067073822, -0.03339307755231857, -0.10918601602315903, -0.0006945797940716147, -0.04551217332482338, -0.0994170606136322, -0.06669816374778748, -0.03405982255935669, 0.10569790750741959, 0.16968727111816406, 0.015786556527018547, 0.07980667799711227, 0.07103478163480759, -0.05299751088023186, 0.09074046462774277, 0.03411049023270607, -0.011880429461598396, 0.05363699048757553, 0.19089177250862122, 0.04911777377128601, 0.14580118656158447, -0.01562302652746439, -0.05431061238050461, 0.005906147416681051, 0.10502785444259644, 0.015409407205879688, 0.04671195521950722, -0.09193624556064606, 0.09768589586019516, 0.11322590708732605, 0.03970802575349808, -0.046716831624507904, 0.21445102989673615, 0.10399815440177917, 0.1464187055826187, -0.08028415590524673, -0.008423879742622375, -0.06256455928087234, -0.020832223817706108, 0.07696088403463364, 0.016542019322514534, -0.007124403025954962, -0.007228572852909565, 0.10071014612913132, -0.07178739458322525, -0.022687718272209167, 0.21929322183132172, 0.1410711705684662, 0.03506040200591087, 0.05787341296672821, -0.03286565840244293, 0.08205419033765793, -0.0747855082154274, -0.08854541182518005, 0.001678396831266582, -0.08260612934827805, 0.018398873507976532, -0.09562315791845322, 0.08719734102487564, 0.29666173458099365, 0.06852461397647858, 0.01461871713399887, -0.002098602009937167, -0.14632347226142883, 0.1691603660583496, -0.027798788622021675, 0.019742919132113457, -0.18438614904880524, 0.16122043132781982, 0.10760869085788727, 0.12231913208961487, 0.027671899646520615, -0.16442957520484924, 0.0123281329870224, -0.13439512252807617, 0.1354953497648239, 0.13805127143859863, -0.0023918133229017258, 0.02448081411421299, 0.08037089556455612, -0.09309013932943344, -0.014572528190910816, 0.12958911061286926, 0.1020418107509613, -0.29657474160194397, -0.05768769606947899, 0.10121821612119675, -0.05111248791217804, 0.14997190237045288, -0.07217736542224884, 0.02572297304868698, -0.026291172951459885, -0.011234280653297901, -0.039188187569379807, -0.057737719267606735, -0.06880252063274384, 7.276730684679933e-7, -0.21937817335128784, 0.016697002574801445, 0.11025168746709824, -0.11034158617258072, 0.027374569326639175, 0.07233548164367676, 0.021990234032273293, -0.08857462555170059, -0.16512539982795715, 0.017223915085196495, 0.1290934532880783, -0.07356762886047363, -0.05171759054064751, -0.020939301699399948, 0.008911693468689919, -0.014030784368515015, -0.04553708806633949, 0.07187973707914352, -0.12398455291986465, 0.03980620950460434, 0.07529940456151962, 0.2116333544254303, 0.08322439342737198, -0.11515528708696365, -0.1832490861415863, -0.06390780210494995, -0.10721632838249207, -0.12497375905513763, 0.013396251946687698, 0.010749786160886288, -0.01952407881617546, 0.022403188049793243, 0.008997751399874687, -0.1399182379245758, -0.086951345205307, -0.011780860833823681, -0.13677814602851868, 0.0404718741774559, 0.14822746813297272, -0.1587473303079605, 0.17012818157672882, 0.17425675690174103, -0.15355128049850464, 0.08202967047691345, 0.11319169402122498, -0.08385434746742249, -0.12775281071662903, -0.06740590929985046, -0.04237384721636772, 0.054041165858507156, -0.01811509020626545, 0.027973314747214317, 0.024743875488638878, 0.1081007793545723, -0.034440070390701294, 0.00950843095779419, -0.05976181477308273, 0.06585632264614105, -0.05582600086927414, 0.03213302791118622, -0.19450901448726654, 0.11160298436880112, -0.05261029303073883, 0.07151726633310318, 0.07089842855930328, 0.060664817690849304, 0.22047442197799683, 2.2985021901141387e-34, 0.14757806062698364, 0.03191860765218735, 0.050683360546827316, 0.017421917989850044, 0.08297562599182129, 0.15182599425315857, 0.1294407695531845, 0.1558503359556198, 0.07028238475322723, -0.057941656559705734, -0.031958941370248795 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
@thomwolf I'm sorry but I can't reproduce this problem. I'm also using: ```python ds = load_dataset("json", split="train", data_files=data_files, cache_dir=cache_dir) ``` after having removed the extracted files: ```python assert sorted((cache_dir / "downloads" / "extracted").iterdir()) == [] ``` I get the logging message: ```shell WARNING datasets.builder:builder.py:531 Reusing dataset json ... ```
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
49
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. @thomwolf I'm sorry but I can't reproduce this problem. I'm also using: ```python ds = load_dataset("json", split="train", data_files=data_files, cache_dir=cache_dir) ``` after having removed the extracted files: ```python assert sorted((cache_dir / "downloads" / "extracted").iterdir()) == [] ``` I get the logging message: ```shell WARNING datasets.builder:builder.py:531 Reusing dataset json ... ```
[ -0.009463850408792496, 0.1725713312625885, -0.11265937238931656, 0.04729275032877922, 0.12609760463237762, 0.09778032451868057, 0.07329197227954865, -0.015038612298667431, 0.006534229032695293, 0.15156766772270203, -0.0896359458565712, 0.19196294248104095, -0.1820327192544937, 0.03818151727318764, -0.05808832123875618, -0.10416426509618759, -0.08191992342472076, 0.01991180144250393, 0.07597741484642029, 0.04709145799279213, -0.13956932723522186, 0.17570142447948456, 0.12782453000545502, -0.08651341497898102, 0.1817445158958435, -0.07781048864126205, 0.07114262133836746, 0.028415601700544357, -0.04807279631495476, -0.15766893327236176, 0.18274877965450287, 0.03261403366923332, 0.16181428730487823, 0.11237038671970367, 0.000005270004749036161, 0.15067969262599945, 0.18029674887657166, -0.05219828337430954, -0.25057536363601685, 0.025076989084482193, -0.043265145272016525, -0.026740962639451027, 0.06508760154247284, -0.10054851323366165, 0.016655785962939262, -0.042251620441675186, -0.02687445469200611, -0.2025478631258011, 0.030552662909030914, -0.022815275937318802, -0.07667499035596848, -0.029669424518942833, -0.13256601989269257, -0.1516750454902649, 0.004994110204279423, 0.0552583746612072, -0.0008053253986872733, 0.0447210818529129, -0.09414578229188919, -0.03809386119246483, -0.03897150605916977, 0.023915866389870644, 0.10473643243312836, 0.10791553556919098, 0.024666212499141693, 0.011836697347462177, -0.1291479468345642, -0.18872371315956116, 0.035386160016059875, 0.0788470059633255, 0.1031045913696289, -0.20019862055778503, -0.09062837064266205, -0.07310223579406738, -0.04355136305093765, -0.19689588248729706, -0.08405943959951401, -0.008202236145734787, -0.003510336158797145, 0.12497718632221222, -0.04852123185992241, -0.01746455952525139, -0.11746624857187271, -0.04578888416290283, -0.07496106624603271, -0.013357921503484249, -0.11441951245069504, 0.05199709162116051, 0.13282157480716705, -0.05614953860640526, 0.06635754555463791, 0.005134384147822857, -0.12628820538520813, 0.01732129603624344, -0.12837912142276764, -0.04828356206417084, -0.0035693354438990355, -0.139848992228508, 0.04568230360746384, 0.041169654577970505, 0.17636583745479584, -0.0869205892086029, -0.032106056809425354, 0.13074015080928802, 0.09968849271535873, 0.008041558787226677, -0.03373976796865463, -0.1297452598810196, 0.07362278550863266, -0.018704840913414955, 0.09618155658245087, -0.03735923394560814, 0.06587924063205719, -0.1638060212135315, 0.1012924462556839, 0.2218807339668274, 0.01805148459970951, 0.24890145659446716, -0.12521393597126007, -0.18501624464988708, 0.13593973219394684, 0.11799095571041107, -0.11670278757810593, 0.1179637759923935, 0.03958568349480629, -0.04821912571787834, 0.010613647289574146, 0.14250455796718597, -0.14543810486793518, 0.008553646504878998, 0.08192861080169678, 0.09449101239442825, 0.13390307128429413, -0.17868901789188385, 0.25057077407836914, 0.1516118347644806, -0.02371370978653431, -0.12422551959753036, 0.04955703392624855, -0.07371589541435242, 0.1917020082473755, -0.01590711437165737, 0.15983517467975616, 0.07015131413936615, -0.03941420465707779, -0.04650992155075073, -0.04269785434007645, -0.07381563633680344, -0.11950204521417618, 0.14972573518753052, -0.09557891637086868, -0.05797625333070755, -0.1374492347240448, 0.07074503600597382, 0.000434643414337188, -0.059876617044210434, -0.018178457394242287, -0.11396706849336624, -0.18142005801200867, -0.019346652552485466, 0.012805813923478127, -0.027043573558330536, 0.012592652812600136, 0.03225431591272354, -0.0007353337714448571, 0.09018418937921524, -0.08775457739830017, 0.04876542463898659, -0.17281201481819153, -0.17464759945869446, 0.04071693494915962, -0.059220533818006516, -0.09872043877840042, -0.05249292775988579, -0.19870807230472565, 0.10315573215484619, 0.09033475816249847, 0.03917217627167702, -0.11436926573514938, 0.09222336858510971, 0.05909119173884392, 0.0781901627779007, 0.06080235168337822, 0.16863329708576202, 0.16547878086566925, 0.024859031662344933, -0.20872235298156738, 0.24512410163879395, 0.07692424207925797, -0.139639750123024, -0.06530467420816422, -0.12664352357387543, 0.12387388944625854, 0.19586744904518127, -0.1706008017063141, -0.0788349136710167, 0.06365853548049927, -0.09692545235157013, 0.08407238125801086, 0.053086936473846436, 0.019485509023070335, -0.18419501185417175, -0.038600604981184006, -0.1412733644247055, -0.07688523828983307, 0.02985522337257862, -0.1865103393793106, 0.1701260507106781, -0.13320422172546387, -0.35052141547203064, -0.11153049021959305, 0.0052745286375284195, 0.05738358199596405, -0.06629732996225357, -0.19230014085769653, -0.08189105987548828, -0.08479604870080948, 0.06169145926833153, 0.10217954218387604, -0.04606391862034798, -0.12779776751995087, 0.10626445710659027, 0.08431226015090942, -0.04352591931819916, -0.013393423520028591, -0.09395977854728699, -0.0023687435314059258, -0.06498264521360397, 0.10693750530481339, 0.008052644319832325, -0.07418043166399002, -0.14278939366340637, 0.02258284203708172, 0.09590669721364975, -0.08383230119943619, 0.12714524567127228, 0.04385621100664139, -0.01834902912378311, -0.02714424394071102, 0.07827220112085342, -0.2862841784954071, 0.1087804064154625, -0.11703982949256897, 0.1035832017660141, -0.14285100996494293, 0.02761227637529373, -0.04699714481830597, -0.042334672063589096, -0.03761898726224899, -0.1132681593298912, 0.17258933186531067, 0.06754401326179504, -0.07240235060453415, -0.035175371915102005, -0.029464108869433403, 0.09166000038385391, -0.03238812834024429, 0.0570097491145134, 0.0773109570145607, -0.0004720252472907305, 0.10127329081296921, 0.03013918735086918, -0.20438994467258453, 0.2207348644733429, 0.2625996172428131, -0.04144240915775299, 0.040017470717430115, 0.15092889964580536, -0.011296259239315987, 0.2608521580696106, 0.15850220620632172, -0.06458268314599991, -0.007081193849444389, -0.061112165451049805, 0.018482699990272522, -0.11524143069982529, -0.12222875654697418, 0.13674543797969818, 0.08160041272640228, 0.0533476397395134, -0.12867771089076996, 0.0519661121070385, 0.1459001898765564, -0.1284637302160263, 0.26671046018600464, -0.021336281672120094, -0.13593252003192902, -0.17703737318515778, 0.13279561698436737, 0.12496252357959747, 0.056638866662979126, -0.0415959469974041, 0.1379384696483612, -0.06664808094501495, 0.02304476499557495, 0.054939161986112595, -0.05219651758670807, 0.0914473906159401, -0.05187319591641426, -0.21016927063465118, -0.014292445033788681, -0.002482287585735321, 0.16634391248226166, -0.00789338443428278, 0.05820314958691597, -0.026175841689109802, 0.17824506759643555, 0.05774481222033501, -0.02177148312330246, -0.1397039294242859, 0.0722678005695343, 0.08591017872095108, 0.18490120768547058, 0.10480837523937225, 0.012191190384328365, -0.06896812468767166, 0.07111611217260361, -0.16902399063110352, -0.009715411812067032, -0.08324193209409714, -0.11948300153017044, 0.00402605626732111, 0.12729662656784058, 0.28950512409210205, -0.0831541195511818, 0.08476544171571732, -0.07375961542129517, -0.2708906829357147, 0.07386081665754318, 0.08916009962558746, -0.11767352372407913, -0.012537245638668537, 0.001734329853206873, -0.13981851935386658, -0.00437503308057785, -0.03194526210427284, -0.12982380390167236, -0.16143104434013367, 0.12371006608009338, -0.03215697407722473, 0.20672918856143951, 0.08193222433328629, 0.03769345581531525, -0.04207869991660118, 0.019709397107362747, -0.0921047180891037, 0.058384839445352554, -0.05630701035261154, 0.06026891618967056, -0.23397217690944672, 0.07464006543159485, -0.014981613494455814, 0.1347104012966156, -0.022109953686594963, -0.10316913574934006, 0.12183843553066254, -0.046357616782188416, 0.1843463033437729, -0.2404530644416809, 0.12321285158395767, 0.04700290039181709, 0.24670524895191193, 0.09490787982940674, -0.06205184385180473, -0.07830163091421127, 0.11262074112892151, 0.02162054181098938, 0.2388511449098587, -0.00995837152004242, -0.031051134690642357, -0.09169664233922958, -0.08780158311128616, -0.046902578324079514, 0.0033164762426167727, -0.10841493308544159, 0.04755546152591705, -0.057066939771175385, 0.072806216776371, 0.11577557027339935, -0.055205170065164566, 0.02832079865038395, -0.15432217717170715, -0.026597775518894196, -0.008797107264399529, -0.10102390497922897, 0.07372236251831055, -0.025781873613595963, 0.06829734891653061, -0.07524454593658447, 0.19599106907844543, 0.0009979477617889643, 0.09243583679199219, 0.13672567903995514, 0.09572348743677139, 0.049773380160331726, -0.15587599575519562, -0.04159323498606682, -0.13332466781139374, 0.14862887561321259, 0.1089242547750473, 0.07790647447109222, 0.09019246697425842, 0.03049926459789276, -0.07503774017095566, 0.0038327735383063555, 0.028394948691129684, 0.06990634649991989, 0.045971792191267014, 0.10621053725481033, -0.0010170103050768375, -0.09328855574131012, 0.0199610386043787, -0.07886084914207458, 0.045930858701467514, 0.11943171173334122, 0.07001575827598572, 0.003404242917895317, -0.17345459759235382, 0.1670384556055069, -0.0913928970694542, -0.3399001359939575, -0.005605176091194153, 0.22850899398326874, 0.02443975768983364, 0.015588316135108471, -0.09954477101564407, -0.11359620839357376, -0.10884981602430344, 0.10134542733430862, -0.04507216811180115, 0.0018506794003769755, 0.17157626152038574, 0.0040552192367613316, -0.03902319446206093, 0.13312837481498718, 0.05245824158191681, 0.1495988368988037, -0.1515078842639923, -0.09518693387508392, 0.025805072858929634, -0.1446830928325653, -0.015006513334810734, 0.02810053341090679, -0.12247183173894882, 0.023304849863052368, -0.06696609407663345, -0.060942452400922775, 0.010618350468575954, 0.07152348756790161, 0.056637365370988846, -0.2987545430660248, 0.05553438887000084, -0.15361745655536652, -0.0030419742688536644, 0.1435338854789734, -0.047482751309871674, 0.18288099765777588, -0.13897919654846191, -0.1421402245759964, 0.12498363852500916, -0.1540706902742386, -0.06012432277202606, -0.020657554268836975, 0.1474304050207138, -0.08677074313163757, 0.16165079176425934, 0.28301575779914856, -0.21719704568386078, 0.026101039722561836, 0.022719547152519226, -0.043114032596349716, 0.07806894928216934, 0.027462266385555267, 0.0683588981628418, 0.21761824190616608, 0.05718673765659332, -0.0759524330496788, -0.21247391402721405, 0.03743495047092438, -0.04006163775920868, 0.13135142624378204, -0.033619992434978485, 0.053595416247844696, -0.18445590138435364, -0.14730532467365265, 0.17933382093906403, -0.08024557679891586, 0.06599811464548111, -0.08459100127220154, 0.14649160206317902, -0.14647188782691956, -0.0035843709483742714, -0.16101664304733276, 0.01180504634976387, 0.21286284923553467, -0.17521438002586365, -0.06335943192243576, -0.0987863838672638, 0.09905179589986801, -0.08630494028329849, -0.006868101190775633, 0.0126906493678689, 0.1433980017900467, 0.0007789238006807864, 0.026035474613308907, -0.16647915542125702, 0.09717831015586853, 0.03954289108514786, 0.08625055104494095, -0.025692902505397797, 0.07748432457447052, -0.04948665201663971, 0.030139567330479622, -0.07727383822202682, -0.008538240566849709, -0.06639578938484192, -0.03503028303384781, -0.12238601595163345, -0.06112230569124222, -0.06819426268339157, -0.015866052359342575, 0.04026515781879425, 0.0034942328929901123, -0.06203845515847206, -0.024148238822817802, -0.12557440996170044, -0.060929715633392334, -0.1147049069404602, 0.0004704572493210435, 0.0015223631635308266, 0.023628555238246918, 0.20861278474330902, -0.11516004055738449, -0.03236806392669678, -0.2085612565279007, -0.1160564199090004, -0.06403210014104843, -0.1241956576704979, 0.14842797815799713, 0.11402302235364914, 0.035867445170879364, -0.2896648645401001, -0.1620822250843048, 0.023736437782645226, 0.04163651540875435, -0.21420517563819885, -0.0028760740533471107, -0.13927601277828217, -0.06538829207420349, -0.05138504505157471, 0.1675044298171997, 0.09750472009181976, 0.14259353280067444, -0.14788253605365753, -0.19232891499996185, -2.5257124187092736e-32, 0.16390229761600494, 0.024534063413739204, 0.025346074253320694, 0.02189091220498085, 0.0342266783118248, -0.11911763995885849, 0.020029086619615555, -0.1579543650150299, -0.035811297595500946, -0.11593496799468994, -0.08249430358409882, -0.07500369846820831, 0.004314853809773922, 0.021745305508375168, -0.08043192327022552, 0.01704147271811962, -0.10423700511455536, -0.1712668091058731, 0.014047341421246529, 0.10759007185697556, 0.10347434878349304, -0.11169327050447464, 0.16510753333568573, 0.06286248564720154, -0.15663565695285797, 0.07568016648292542, -0.23102204501628876, -0.05426273122429848, 0.020448770374059677, 0.0418778620660305, -0.08367804437875748, -0.04939217120409012, 0.06440150737762451, -0.030680585652589798, -0.01865418441593647, 0.1761544644832611, -0.010203506797552109, 0.014373456127941608, -0.10872703790664673, 0.005547049455344677, -0.016450971364974976, -0.04688708856701851, -0.03029331937432289, -0.0642605796456337, 0.12819261848926544, 0.19582019746303558, 0.004565667826682329, 0.09830491989850998, 0.08861953020095825, -0.04387029632925987, 0.06365908682346344, 0.015248383395373821, -0.014483356848359108, 0.03685925900936127, 0.12529154121875763, 0.03355960547924042, 0.15176528692245483, -0.061725545674562454, -0.07207643985748291, 0.05612119659781456, 0.17995353043079376, 0.015946533530950546, 0.06716572493314743, -0.03593837097287178, 0.07571596652269363, 0.1261717677116394, 0.08360136300325394, -0.03680562600493431, 0.27838262915611267, 0.04541075602173805, 0.08163338899612427, -0.10934272408485413, -0.04764805734157562, -0.09663528203964233, -0.02087242156267166, 0.08548718690872192, -0.017829062417149544, -0.027546461671590805, -0.017316598445177078, 0.09569692611694336, -0.06616836041212082, 0.038943734019994736, 0.1574534922838211, 0.11166007071733475, 0.023127034306526184, 0.11427966505289078, -0.017567532137036324, 0.09439628571271896, -0.08186496794223785, -0.08259003609418869, -0.0449509359896183, -0.10546018928289413, 0.010223641991615295, -0.10964939743280411, 0.03984423726797104, 0.22700899839401245, 0.13031254708766937, -0.004012059420347214, -0.03675523027777672, -0.1350046992301941, 0.2104986160993576, -0.07318655401468277, 0.045649994164705276, -0.13205212354660034, 0.14826197922229767, 0.09613046795129776, 0.08652476966381073, -0.005113821476697922, -0.1232607513666153, 0.008023337461054325, -0.12519772350788116, 0.0720519945025444, 0.1578313112258911, -0.0003740277898032218, 0.04582660272717476, 0.07076113671064377, -0.06523321568965912, -0.021107034757733345, 0.12148714065551758, 0.07895482331514359, -0.2872791588306427, -0.0609734021127224, 0.11106576770544052, -0.06291128695011139, 0.13389898836612701, -0.05765427276492119, 0.047347113490104675, -0.1428278535604477, 0.022468214854598045, -0.030134595930576324, -0.04313037171959877, -0.0422007255256176, 7.463490874215495e-7, -0.22817975282669067, 0.0041817971505224705, 0.10427476465702057, -0.07195498049259186, 0.03904331102967262, 0.09413228183984756, 0.07135487347841263, -0.07128676772117615, -0.13950549066066742, 0.03463231772184372, 0.15775275230407715, -0.10007971525192261, -0.07166294008493423, -0.06850768625736237, 0.015707874670624733, -0.008158333599567413, -0.027560288086533546, 0.09235510975122452, -0.09555844962596893, -0.005514089018106461, 0.03882664814591408, 0.14739972352981567, 0.02281675860285759, -0.1378103345632553, -0.18301798403263092, -0.026400353759527206, -0.12879863381385803, -0.08352012187242508, -0.004390330519527197, 0.005072267726063728, 0.034447669982910156, 0.019270816817879677, 0.01781039871275425, -0.13822858035564423, -0.08199720084667206, -0.04893157631158829, -0.09628292173147202, 0.008215012028813362, 0.1638924926519394, -0.16801609098911285, 0.1269199699163437, 0.1760227531194687, -0.17071352899074554, 0.16337674856185913, 0.07264682650566101, -0.0829005315899849, -0.10820212215185165, -0.10863710939884186, -0.08284400403499603, 0.04344832897186279, -0.05537312105298042, 0.04389258101582527, 0.03956884890794754, 0.12733221054077148, -0.05728500708937645, 0.006330386269837618, -0.04941655322909355, 0.04058700054883957, -0.05713631585240364, 0.05793745443224907, -0.20631662011146545, 0.0992291122674942, -0.029016276821494102, 0.0413043349981308, 0.11272920668125153, 0.03691520541906357, 0.19899718463420868, 1.7417535124592739e-34, 0.13417920470237732, 0.04210996627807617, 0.040008608251810074, 0.022308509796857834, 0.09019163995981216, 0.1724901795387268, 0.09803398698568344, 0.13532502949237823, 0.06174385920166969, -0.016143769025802612, -0.05181780084967613 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
> > > Do you confirm the extracted folder stays empty after reloading? Yes, I have the above mentioned assertion on the emptiness of the extracted folder: ```python assert sorted((cache_dir / "downloads" / "extracted").iterdir()) == [] ```
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
37
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. > > > Do you confirm the extracted folder stays empty after reloading? Yes, I have the above mentioned assertion on the emptiness of the extracted folder: ```python assert sorted((cache_dir / "downloads" / "extracted").iterdir()) == [] ```
[ 0.021003777161240578, 0.13413342833518982, -0.10569066554307938, 0.029962945729494095, 0.10599455237388611, 0.08671934902667999, 0.016791289672255516, 0.03210284188389778, 0.010742568410933018, 0.17497557401657104, -0.08355341106653214, 0.19256259500980377, -0.1537252813577652, 0.04580027982592583, -0.07458733767271042, -0.09625861793756485, -0.11291542649269104, 0.0521063394844532, 0.08032066375017166, 0.025434983894228935, -0.10944215953350067, 0.2002493441104889, 0.1261773258447647, -0.062406424432992935, 0.25387462973594666, -0.061749447137117386, 0.08443380892276764, 0.011519131250679493, -0.06627688556909561, -0.13779528439044952, 0.15611518919467926, -0.010290274396538734, 0.12793199717998505, 0.1060045063495636, 0.000005118089575262275, 0.10588013380765915, 0.12992337346076965, -0.09736443310976028, -0.23428407311439514, 0.004859098233282566, -0.016002913936972618, -0.04203304275870323, 0.041876569390296936, -0.09063734114170074, 0.03394092246890068, -0.023102715611457825, -0.05040423572063446, -0.25193941593170166, -0.03778468444943428, -0.09388676285743713, -0.08431025594472885, -0.02077246457338333, -0.18358202278614044, -0.15015649795532227, -0.011543524451553822, 0.04059465602040291, -0.0061570643447339535, 0.04006827995181084, -0.04930393397808075, -0.030800379812717438, -0.027871862053871155, 0.02823011763393879, 0.11481241881847382, 0.10111892223358154, 0.06629558652639389, 0.0205568615347147, -0.200332373380661, -0.19237029552459717, 0.02448776178061962, 0.04820925369858742, 0.09571225196123123, -0.20767280459403992, -0.07774138450622559, -0.06022659316658974, -0.049725163727998734, -0.1969260573387146, -0.09080222249031067, 0.027291322126984596, 0.013563986867666245, 0.16351205110549927, -0.004153366666287184, 0.0005678798188455403, -0.13182565569877625, -0.04470226168632507, -0.08201920986175537, 0.011869875714182854, -0.09453000128269196, 0.015167891047894955, 0.16914081573486328, -0.05833348259329796, 0.015114224515855312, -0.06801098585128784, -0.12457936257123947, 0.06854025274515152, -0.08720250427722931, -0.07279206812381744, 0.005617836490273476, -0.1298925131559372, 0.043800774961709976, 0.05537285655736923, 0.18665529787540436, -0.052121859043836594, -0.009736637584865093, 0.12020270526409149, 0.078705333173275, 0.045556552708148956, 0.02104775235056877, -0.1818382441997528, 0.07600481063127518, -0.05301245301961899, 0.12444408237934113, -0.04323423653841019, 0.09604252129793167, -0.10955935716629028, 0.09394614398479462, 0.25747615098953247, 0.011957897804677486, 0.2638940215110779, -0.0871257409453392, -0.18122883141040802, 0.08701813966035843, 0.09024854004383087, -0.14319534599781036, 0.08915217965841293, 0.04822021350264549, -0.028963925316929817, 0.034048404544591904, 0.10813117772340775, -0.16747623682022095, -0.002026666421443224, 0.09306377917528152, 0.08612976968288422, 0.15001925826072693, -0.14188039302825928, 0.2957996129989624, 0.1340845823287964, -0.03670790418982506, -0.20659935474395752, 0.06258728355169296, -0.04472799599170685, 0.18358547985553741, -0.00590584147721529, 0.1650686413049698, 0.08466543257236481, -0.021794050931930542, -0.05592810735106468, -0.04446570575237274, -0.051670316606760025, -0.151273712515831, 0.15599046647548676, -0.082656130194664, -0.0814528614282608, -0.10454945266246796, 0.05342637747526169, -0.0020725729409605265, -0.08810983598232269, -0.004333811346441507, -0.14705070853233337, -0.197454035282135, -0.014056039974093437, 0.002799021312966943, 0.01909094676375389, 0.01088532991707325, 0.02439926005899906, 0.014690534211695194, 0.10127574950456619, -0.08328678458929062, 0.016551200300455093, -0.21041759848594666, -0.17525151371955872, 0.007156373001635075, -0.0589059479534626, -0.05194614455103874, -0.05053989961743355, -0.21407310664653778, 0.13542839884757996, 0.08300161361694336, 0.03165974095463753, -0.07517006993293762, 0.11238475143909454, 0.021332887932658195, 0.15228846669197083, 0.09918762743473053, 0.171579048037529, 0.15168343484401703, 0.013011162169277668, -0.23368649184703827, 0.24493108689785004, 0.0762077197432518, -0.11441832035779953, -0.08262332528829575, -0.10473932325839996, 0.12879008054733276, 0.13467754423618317, -0.17706848680973053, -0.04478007182478905, 0.03244208171963692, -0.12471597641706467, 0.1057065799832344, 0.09017922729253769, 0.03496810793876648, -0.15779618918895721, 0.046342864632606506, -0.1750602424144745, -0.06352455168962479, 0.10619129985570908, -0.17300276458263397, 0.18544207513332367, -0.18109698593616486, -0.28534841537475586, -0.1346016824245453, 0.016749421134591103, 0.03568282350897789, -0.05570313334465027, -0.20955297350883484, -0.07014365494251251, -0.07750984281301498, 0.05988623574376106, 0.13546840846538544, -0.045702844858169556, -0.08974848687648773, 0.10524043440818787, 0.08458251506090164, -0.0768580436706543, -0.025280719622969627, -0.08012399077415466, 0.017173251137137413, -0.08267512917518616, 0.1181175485253334, -0.04616576060652733, -0.11309661716222763, -0.14535477757453918, 0.024567408487200737, 0.0937000960111618, -0.07641959190368652, 0.13378754258155823, 0.09215794503688812, -0.010516696609556675, -0.009049869142472744, 0.06229691207408905, -0.25131767988204956, 0.1298755407333374, -0.08592062443494797, 0.09357241541147232, -0.15042059123516083, 0.05362013354897499, -0.03480749949812889, -0.08683989942073822, -0.042965665459632874, -0.11738918721675873, 0.16914917528629303, 0.08298515528440475, -0.07545892894268036, -0.03613481670618057, -0.024408798664808273, 0.1174929067492485, -0.08623970299959183, -0.014774934388697147, 0.10917516052722931, 0.038155317306518555, 0.044915854930877686, -0.006559251341968775, -0.26185086369514465, 0.2480444610118866, 0.2763633728027344, -0.01360874343663454, 0.016300655901432037, 0.1087476834654808, 0.019241375848650932, 0.2754179537296295, 0.12541736662387848, -0.06147850304841995, 0.04640660434961319, -0.047088924795389175, 0.043404705822467804, -0.10967734456062317, -0.09650193899869919, 0.16026277840137482, 0.08139364421367645, 0.06002692133188248, -0.1598915457725525, 0.07464383542537689, 0.1355987787246704, -0.13733337819576263, 0.24593548476696014, -0.04237457737326622, -0.10026968270540237, -0.21224844455718994, 0.1819462776184082, 0.14999572932720184, 0.058704279363155365, -0.04403137415647507, 0.15369181334972382, -0.06551457941532135, 0.005932927597314119, 0.032993484288454056, -0.0541144534945488, 0.17953205108642578, -0.050867315381765366, -0.22612923383712769, -0.07514213025569916, -0.014126909896731377, 0.16488619148731232, 0.0041991788893938065, 0.031072484329342842, -0.050934869796037674, 0.1669716089963913, 0.03867906332015991, 0.04193535074591637, -0.10953447222709656, 0.06109322980046272, 0.10170162469148636, 0.15858042240142822, 0.03903519734740257, -0.04340862110257149, -0.05929484963417053, 0.04595727100968361, -0.16947752237319946, -0.022470248863101006, -0.05173533037304878, -0.16654889285564423, 0.003933516796678305, 0.12681736052036285, 0.26267051696777344, -0.07509353756904602, 0.05170249193906784, -0.06555493921041489, -0.2873138189315796, 0.06051049754023552, 0.08652970939874649, -0.10067977756261826, -0.013385078869760036, 0.01670108735561371, -0.1419195532798767, -0.04691833630204201, -0.08314430713653564, -0.12145697325468063, -0.18170273303985596, 0.10846910625696182, -0.05895936116576195, 0.17644146084785461, 0.0573245994746685, 0.06569626182317734, -0.0987255871295929, 0.04565740004181862, -0.062078528106212616, 0.05731642246246338, -0.03602369502186775, 0.05849180370569229, -0.24289833009243011, 0.07568423449993134, 0.043160755187273026, 0.1502043604850769, 0.0006677724304609001, -0.07263059169054031, 0.12815582752227783, -0.03905848041176796, 0.20449762046337128, -0.25651755928993225, 0.11672478169202805, 0.018237700685858727, 0.2634142339229584, 0.07552804797887802, -0.04703811556100845, -0.030895618721842766, 0.12621566653251648, 0.026106098666787148, 0.1999165266752243, -0.04667588695883751, -0.0023696604184806347, -0.13448376953601837, -0.08660808205604553, -0.02838134765625, 0.012344332411885262, -0.0950569435954094, 0.06065244600176811, -0.07982288300991058, 0.08418367058038712, 0.10623408854007721, -0.025926288217306137, 0.03976147621870041, -0.15490518510341644, 0.006217968184500933, -0.019112663343548775, -0.07830951362848282, 0.03126298636198044, -0.05380883067846298, 0.08958213031291962, -0.09901557862758636, 0.1870383471250534, 0.002673304872587323, 0.12626908719539642, 0.14031445980072021, 0.1076250746846199, 0.06508593261241913, -0.11200474947690964, -0.06428170949220657, -0.10966175049543381, 0.1580837517976761, 0.13244767487049103, 0.10161101818084717, 0.056939106434583664, 0.009076876565814018, -0.06538330018520355, -0.015120991505682468, 0.023091690614819527, 0.06978653371334076, 0.09708794206380844, 0.05929572135210037, -0.02193254791200161, -0.09685070812702179, 0.018949249759316444, -0.09354905784130096, 0.035579223185777664, 0.058718662708997726, 0.050224047154188156, -0.029465852305293083, -0.21393738687038422, 0.1765563040971756, -0.07608891278505325, -0.3345700204372406, -0.0030781361274421215, 0.22426186501979828, 0.017407892271876335, 0.07418148219585419, -0.08906220644712448, -0.1000758707523346, -0.1082853376865387, 0.11029527336359024, -0.057365499436855316, 0.01715698465704918, 0.18110518157482147, 0.033548589795827866, -0.0582098513841629, 0.11834647506475449, 0.027193119749426842, 0.12851257622241974, -0.10162949562072754, -0.11904405802488327, 0.014775877818465233, -0.19349029660224915, 0.014166132546961308, 0.08170207589864731, -0.13333381712436676, -0.042979635298252106, -0.09398962557315826, -0.03320832550525665, -0.0018900969298556447, 0.020547250285744667, -0.01345112919807434, -0.3112523853778839, 0.11750931292772293, -0.11077906936407089, -0.008757111616432667, 0.06787623465061188, -0.07338912039995193, 0.20428703725337982, -0.062496449798345566, -0.12233317643404007, 0.12356343865394592, -0.15956847369670868, -0.05076613649725914, 0.014766371808946133, 0.10256914049386978, -0.044550973922014236, 0.17518025636672974, 0.2085905522108078, -0.20380906760692596, 0.07525601238012314, 0.0026271487586200237, -0.060399867594242096, 0.08454236388206482, 0.0334954559803009, 0.0671655684709549, 0.1925257295370102, -0.00014398984785657376, -0.0560917891561985, -0.20383383333683014, -0.0056612431071698666, -0.01986730471253395, 0.11265793442726135, -0.03191334754228592, 0.04463746398687363, -0.17558108270168304, -0.07065240293741226, 0.17525598406791687, -0.02410176955163479, 0.07082100957632065, -0.057444650679826736, 0.13503772020339966, -0.11682424694299698, 0.005888123996555805, -0.1550237536430359, 0.015140864998102188, 0.21570882201194763, -0.12326952815055847, -0.004766318015754223, -0.1417412906885147, 0.06176134571433067, -0.12369703501462936, -0.03653447702527046, 0.052765972912311554, 0.14191719889640808, -0.00886542908847332, -0.001599901239387691, -0.11496289074420929, 0.11139890551567078, 0.02598494477570057, 0.10950961709022522, -0.036994315683841705, 0.05664646252989769, -0.07067911326885223, 0.05316082760691643, -0.033852312713861465, 0.00014557599206455052, -0.09408938884735107, -0.02276720106601715, -0.15056170523166656, -0.036207977682352066, -0.05736023187637329, -0.014210127294063568, 0.039918724447488785, -0.036260392516851425, -0.07982750236988068, -0.023153673857450485, -0.09588903933763504, -0.08724185079336166, -0.11291898787021637, -0.025070449337363243, -0.03579007834196091, -0.017410555854439735, 0.15398725867271423, -0.11362973600625992, -0.008830546401441097, -0.22100503742694855, -0.06775875389575958, -0.11991938948631287, -0.08590540289878845, 0.16632398962974548, 0.11698701977729797, 0.010182601399719715, -0.30499204993247986, -0.08147860318422318, 0.04818829894065857, 0.021098174154758453, -0.22212061285972595, -0.0014733860734850168, -0.0966683104634285, -0.03573346510529518, -0.016964038833975792, 0.15925811231136322, 0.09443104267120361, 0.11813130229711533, -0.13023270666599274, -0.1967448592185974, -2.598462588587314e-32, 0.15616098046302795, 0.06561724841594696, 0.02979373000562191, 0.056549496948719025, 0.04638383537530899, -0.12319884449243546, -0.005887683480978012, -0.17396500706672668, -0.029523663222789764, -0.10856139659881592, -0.031781505793333054, -0.06218765676021576, 0.0012062976602464914, 0.03664834424853325, -0.059092927724123, 0.00806830357760191, -0.12715645134449005, -0.1582695096731186, -0.009384293109178543, 0.08169365674257278, 0.08330636471509933, -0.14005091786384583, 0.17474453151226044, 0.09552966803312302, -0.2023858278989792, 0.06201348081231117, -0.188115656375885, -0.03594242036342621, 0.026885762810707092, 0.057916950434446335, -0.11702150851488113, -0.06624899059534073, 0.046446993947029114, -0.04352942854166031, 0.027981512248516083, 0.14910022914409637, -0.03061133436858654, 0.0004520609218161553, -0.08184925466775894, 0.002374676987528801, -0.0650019571185112, -0.06612394005060196, -0.0587579682469368, -0.045942481607198715, 0.13877110183238983, 0.19710542261600494, -0.019968820735812187, 0.09581466019153595, 0.10318266600370407, -0.0819442868232727, 0.06563545018434525, 0.005456035491079092, 0.010626480914652348, 0.05199234187602997, 0.13436664640903473, 0.06127429008483887, 0.12805649638175964, -0.02362397126853466, -0.06772647798061371, 0.0006603841902688146, 0.09421680122613907, 0.027820119634270668, 0.051802679896354675, -0.06108883023262024, 0.12825165688991547, 0.12932373583316803, 0.014883357100188732, -0.0625324621796608, 0.2364872246980667, 0.07805199921131134, 0.10463563352823257, -0.15645137429237366, -0.04161034896969795, -0.10968585312366486, -0.04337688907980919, 0.096956767141819, -0.0036944106686860323, 0.007030945736914873, -0.03496590629220009, 0.1207612082362175, -0.05828876420855522, 0.00985211506485939, 0.18376527726650238, 0.13867135345935822, 0.01900232769548893, 0.10745140165090561, -0.019288862124085426, 0.08432762324810028, -0.09012310206890106, -0.05658378452062607, -0.04692770540714264, -0.1153596043586731, 0.017901716753840446, -0.10285544395446777, 0.05182880163192749, 0.20243839919567108, 0.1063484475016594, 0.017289580777287483, -0.018523244187235832, -0.1169857457280159, 0.21442444622516632, 0.00013152089377399534, 0.003924903459846973, -0.14552035927772522, 0.13066686689853668, 0.12505783140659332, 0.0647016242146492, 0.03677740320563316, -0.10519224405288696, -0.004329349379986525, -0.14089356362819672, 0.13610778748989105, 0.12081793695688248, -0.0023291597608476877, 0.025138190016150475, 0.1405588984489441, -0.07996944338083267, -0.031240621581673622, 0.13813523948192596, 0.056427597999572754, -0.2686901390552521, -0.05571264028549194, 0.15872988104820251, -0.07287412881851196, 0.12863342463970184, -0.08724122494459152, 0.07358171790838242, -0.014335853978991508, -0.024076679721474648, -0.02260405570268631, -0.05141013115644455, -0.01418636366724968, 7.383783326986304e-7, -0.17474766075611115, -0.03507281467318535, 0.13739222288131714, -0.08517487347126007, 0.022909360006451607, 0.0612398162484169, 0.049519043415784836, -0.10215240716934204, -0.1652042418718338, 0.005494254641234875, 0.106941819190979, -0.09155857563018799, -0.02228943631052971, -0.018059343099594116, -0.008586707524955273, -0.006503558252006769, -0.064791738986969, 0.07607720047235489, -0.11870118975639343, 0.015146762132644653, 0.10349448025226593, 0.1884758025407791, 0.04713035374879837, -0.16502736508846283, -0.2248024046421051, -0.01994158700108528, -0.08123654872179031, -0.08114646375179291, -0.009301931597292423, -0.03388082608580589, 0.04883655905723572, 0.05518655106425285, 0.028017528355121613, -0.1687672883272171, -0.07967492192983627, -0.026826318353414536, -0.120796337723732, 0.024308765307068825, 0.1789330542087555, -0.209427610039711, 0.12557847797870636, 0.15508872270584106, -0.1554901897907257, 0.1409435272216797, 0.09972541034221649, -0.1028846725821495, -0.11544385552406311, -0.07627730071544647, -0.10260403156280518, 0.08787143230438232, -0.08102503418922424, 0.061293065547943115, -0.02645205706357956, 0.11575990170240402, -0.05807456746697426, 0.012085746973752975, -0.07608543336391449, 0.06613903492689133, -0.06279315054416656, 0.08642663061618805, -0.1691497415304184, 0.1609930843114853, -0.02983211725950241, 0.00323861395008862, 0.06553161144256592, 0.055773843079805374, 0.21516864001750946, 2.4767374394125296e-34, 0.15489645302295685, 0.07083993405103683, 0.04225444048643112, 0.06498382985591888, 0.05038963258266449, 0.15522097051143646, 0.02101595140993595, 0.16253891587257385, 0.07400630414485931, -0.03862879052758217, -0.008712532930076122 ]
https://github.com/huggingface/datasets/issues/2598
Unable to download omp dataset
Hi @erikadistefano , thanks for reporting the issue. I have created a Pull Request that should fix it. Once merged into master, feel free to update your installed `datasets` library (either by installing it from our GitHub master branch or waiting until our next release) to be able to load omp dataset.
## Describe the bug The omp dataset cannot be downloaded because of a DuplicatedKeysError ## Steps to reproduce the bug from datasets import load_dataset omp = load_dataset('omp', 'posts_labeled') print(omp) ## Expected results This code should download the omp dataset and print the dictionary ## Actual results Downloading and preparing dataset omp/posts_labeled (download: 1.27 MiB, generated: 13.31 MiB, post-processed: Unknown size, total: 14.58 MiB) to /home/erika_distefano/.cache/huggingface/datasets/omp/posts_labeled/1.1.0/2fe5b067be3bff1d4588d5b0cbb9b5b22ae1b9d5b026a8ff572cd389f862735b... 0 examples [00:00, ? examples/s]2021-07-06 09:43:55.868815: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.11.0 Traceback (most recent call last): File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 990, in _prepare_split writer.write(example, key) File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 338, in write self.check_duplicate_keys() File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 349, in check_duplicate_keys raise DuplicatedKeysError(key) datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 3326 Keys should be unique and deterministic in nature During handling of the above exception, another exception occurred: Traceback (most recent call last): File "hf_datasets.py", line 32, in <module> omp = load_dataset('omp', 'posts_labeled') File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 992, in _prepare_split num_examples, num_bytes = writer.finalize() File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 409, in finalize self.check_duplicate_keys() File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 349, in check_duplicate_keys raise DuplicatedKeysError(key) datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 3326 Keys should be unique and deterministic in nature ## Environment info - `datasets` version: 1.8.0 - Platform: Ubuntu 18.04.4 LTS - Python version: 3.6.9 - PyArrow version: 3.0.0
52
Unable to download omp dataset ## Describe the bug The omp dataset cannot be downloaded because of a DuplicatedKeysError ## Steps to reproduce the bug from datasets import load_dataset omp = load_dataset('omp', 'posts_labeled') print(omp) ## Expected results This code should download the omp dataset and print the dictionary ## Actual results Downloading and preparing dataset omp/posts_labeled (download: 1.27 MiB, generated: 13.31 MiB, post-processed: Unknown size, total: 14.58 MiB) to /home/erika_distefano/.cache/huggingface/datasets/omp/posts_labeled/1.1.0/2fe5b067be3bff1d4588d5b0cbb9b5b22ae1b9d5b026a8ff572cd389f862735b... 0 examples [00:00, ? examples/s]2021-07-06 09:43:55.868815: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.11.0 Traceback (most recent call last): File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 990, in _prepare_split writer.write(example, key) File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 338, in write self.check_duplicate_keys() File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 349, in check_duplicate_keys raise DuplicatedKeysError(key) datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 3326 Keys should be unique and deterministic in nature During handling of the above exception, another exception occurred: Traceback (most recent call last): File "hf_datasets.py", line 32, in <module> omp = load_dataset('omp', 'posts_labeled') File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 992, in _prepare_split num_examples, num_bytes = writer.finalize() File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 409, in finalize self.check_duplicate_keys() File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 349, in check_duplicate_keys raise DuplicatedKeysError(key) datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 3326 Keys should be unique and deterministic in nature ## Environment info - `datasets` version: 1.8.0 - Platform: Ubuntu 18.04.4 LTS - Python version: 3.6.9 - PyArrow version: 3.0.0 Hi @erikadistefano , thanks for reporting the issue. I have created a Pull Request that should fix it. Once merged into master, feel free to update your installed `datasets` library (either by installing it from our GitHub master branch or waiting until our next release) to be able to load omp dataset.
[ 0.08675234019756317, 0.1928861439228058, -0.03944901004433632, -0.024734199047088623, 0.21173302829265594, 0.11426368355751038, 0.09987417608499527, 0.12948039174079895, 0.004970373585820198, 0.07770559936761856, -0.08598694205284119, 0.07449115067720413, -0.02171359769999981, 0.07629434764385223, -0.0950886681675911, -0.10350566357374191, -0.17031888663768768, 0.11562086641788483, -0.13787487149238586, -0.10655774176120758, -0.030065691098570824, 0.18028663098812103, 0.11020074039697647, -0.08986478298902512, 0.07604928314685822, -0.2529536783695221, -0.024393921718001366, -0.09997614473104477, -0.1011195033788681, -0.1340721845626831, 0.1193881407380104, 0.15191945433616638, 0.07264513522386551, 0.12559935450553894, 0.000004000527042080648, 0.07298270612955093, 0.08135418593883514, 0.05765259638428688, -0.08643849194049835, -0.18589039146900177, 0.12735532224178314, 0.00012962428445462137, 0.028789034113287926, -0.0792885571718216, -0.0633702427148819, -0.17729035019874573, -0.12913349270820618, 0.04221296310424805, 0.0032067764550447464, 0.16608195006847382, 0.05557353049516678, -0.026443900540471077, 0.1697005182504654, -0.08903803676366806, 0.014362622052431107, -0.13510994613170624, 0.0212613046169281, 0.20639528334140778, -0.26969414949417114, 0.028593147173523903, 0.08732876926660538, 0.10342130810022354, -0.08863011002540588, 0.2034018188714981, 0.05872097611427307, 0.10014712810516357, 0.16817466914653778, -0.19166119396686554, -0.08005846291780472, 0.36074593663215637, 0.17303065955638885, 0.028351712971925735, -0.12064896523952484, 0.019699577242136, -0.05608623847365379, -0.05873068794608116, 0.015774641185998917, 0.12857069075107574, -0.0985369011759758, 0.15944671630859375, -0.026328232139348984, -0.015057065524160862, -0.18060114979743958, 0.01705964282155037, 0.029488455504179, -0.049076374620199203, -0.11052814871072769, 0.06384408473968506, 0.04862431064248085, -0.09817254543304443, 0.12796218693256378, 0.013422323390841484, -0.05260656401515007, 0.007851259782910347, 0.12798428535461426, 0.12117527425289154, 0.03927971422672272, -0.1033841222524643, -0.015515646897256374, -0.06896625459194183, 0.09107907861471176, -0.09808700531721115, -0.06738173216581345, 0.052116941660642624, -0.08315543085336685, 0.1143094152212143, 0.08916399627923965, 0.03534994646906853, 0.10034757107496262, 0.12987570464611053, -0.08530519157648087, 0.05809483677148819, -0.09373260289430618, -0.011547455564141273, 0.12557317316532135, 0.0642271563410759, 0.1938326060771942, 0.047803591936826706, -0.12484467774629593, 0.08881717920303345, -0.08592309057712555, 0.1488952338695526, -0.06375383585691452, 0.1671581119298935, 0.03569900244474411, -0.036018673330545425, 0.009544134140014648, 0.050939466804265976, -0.0743870735168457, 0.15609760582447052, -0.03089088201522827, 0.04852293059229851, -0.05010110139846802, -0.048438917845487595, 0.24871093034744263, 0.04186564311385155, 0.05012139678001404, -0.10823597013950348, 0.10584859549999237, -0.09707420319318771, 0.12062675505876541, -0.08820657432079315, -0.11925745010375977, 0.06915909796953201, 0.25555089116096497, 0.10525418817996979, 0.07696780562400818, -0.07580188661813736, -0.04710577428340912, 0.04865466058254242, -0.24433457851409912, -0.07142773270606995, -0.2540541887283325, 0.15782952308654785, -0.025766592472791672, -0.0488034151494503, 0.1704285442829132, -0.13188762962818146, -0.12687022984027863, -0.05797438696026802, 0.10885019600391388, -0.03494023159146309, 0.08109339326620102, -0.20453199744224548, 0.3782716989517212, 0.13474412262439728, 0.06063229963183403, 0.06482459604740143, 0.005030368454754353, 0.07804233580827713, 0.1621333360671997, -0.031203508377075195, -0.1434413641691208, 0.11721338331699371, -0.26671573519706726, -0.09547444432973862, 0.005791333504021168, -0.037015896290540695, -0.33619725704193115, 0.0440186932682991, 0.05286747217178345, 0.010260839015245438, 0.10051241517066956, -0.12504920363426208, 0.18134944140911102, -0.013245698064565659, 0.008932595141232014, -0.13973583281040192, -0.003115096827968955, 0.029971342533826828, -0.05768579617142677, 0.11166856437921524, -0.05420408770442009, -0.014786379411816597, 0.13517946004867554, -0.030933255329728127, 0.0285045113414526, 0.038085199892520905, 0.06581071764230728, -0.0415833406150341, -0.06021090969443321, -0.149963840842247, -0.01432719174772501, -0.15621976554393768, 0.06925970315933228, 0.048911210149526596, -0.09868337213993073, 0.10529240220785141, -0.14557525515556335, -0.1523495763540268, -0.23716023564338684, -0.10225970298051834, -0.2239781767129898, 0.16724315285682678, -0.07257898896932602, 0.005083340220153332, 0.015721019357442856, -0.023576216772198677, 0.18376600742340088, 0.21417835354804993, -0.055405762046575546, 0.13086268305778503, 0.12617266178131104, 0.022881843149662018, 0.01601429656147957, -0.06922932714223862, -0.06558722257614136, -0.010152050293982029, -0.0022728147450834513, 0.07620573788881302, -0.1004360094666481, -0.1040530726313591, 0.07173531502485275, 0.12628862261772156, -0.04042360559105873, -0.05199741944670677, -0.0691039115190506, -0.1772875189781189, 0.11808308959007263, -0.009436704218387604, -0.23321157693862915, 0.04116383567452431, 0.04884835332632065, 0.03347577527165413, 0.06533192098140717, -0.027070239186286926, -0.10036062449216843, 0.1112227737903595, -0.1660083383321762, -0.03635435551404953, 0.13005225360393524, -0.12160221487283707, -0.06531811505556107, 0.1830025166273117, 0.1333039402961731, -0.15610399842262268, 0.02518392913043499, 0.08135109394788742, -0.09795255959033966, 0.07029035687446594, 0.13041998445987701, 0.0028236282523721457, 0.051482249051332474, 0.13579681515693665, 0.21641047298908234, -0.08080323785543442, 0.02993263117969036, 0.11605720221996307, -0.04090697690844536, -0.00666706170886755, -0.07479143887758255, 0.07421257346868515, -0.17462924122810364, -0.043619778007268906, 0.056558847427368164, -0.06264828890562057, 0.0034369472414255142, 0.1501983106136322, 0.11496604233980179, 0.13215625286102295, -0.1784438043832779, 0.16322840750217438, 0.21272866427898407, 0.012387534603476524, 0.1738092452287674, 0.12749309837818146, -0.1724381148815155, -0.05133051425218582, -0.1710335910320282, 0.01723121479153633, 0.05641098693013191, -0.005097697488963604, 0.125997394323349, 0.039946943521499634, 0.02463703788816929, -0.2086826115846634, 0.06954997032880783, -0.04755638167262077, -0.04031536355614662, 0.0844038873910904, 0.12567010521888733, -0.06175714731216431, 0.010755769908428192, -0.1036810427904129, -0.011419516988098621, -0.08650562912225723, 0.4362387955188751, 0.06158779188990593, -0.09778706729412079, -0.20389144122600555, 0.060778889805078506, -0.11906108260154724, 0.18752896785736084, -0.0774456039071083, 0.03465087711811066, 0.10137160867452621, -0.12144347280263901, -0.02233603596687317, -0.010277979075908661, -0.02533690445125103, 0.035973068326711655, 0.05030427128076553, -0.12371456623077393, 0.2541930377483368, -0.03947620093822479, -0.035087183117866516, -0.26032403111457825, -0.08091290295124054, 0.106173075735569, -0.0812838077545166, 0.17645882070064545, -0.05439683422446251, -0.13699494302272797, -0.04709172248840332, 0.035914406180381775, 0.0028327389154583216, -0.054116956889629364, -0.13860534131526947, 0.24457578361034393, -0.07777474075555801, -0.07974188774824142, 0.1809602826833725, -0.08120709657669067, 0.1467551440000534, 0.0930316299200058, -0.16350838541984558, -0.0527074933052063, 0.061990685760974884, -0.1176467314362526, -0.12536078691482544, 0.026096206158399582, 0.05805741995573044, -0.06934037804603577, -0.07448182255029678, -0.04987833648920059, 0.07032760232686996, -0.015928668901324272, 0.09021622687578201, -0.04205929860472679, -0.0652926042675972, 0.13681617379188538, 0.14357425272464752, 0.11594683676958084, 0.07452981173992157, -0.012604366056621075, 0.147755965590477, 0.1888178437948227, -0.022699233144521713, -0.12415312975645065, -0.06137041002511978, -0.06740190088748932, -0.08377847075462341, -0.008872955106198788, -0.10491900146007538, -0.01155747938901186, -0.03207758069038391, -0.09729032963514328, -0.01879511959850788, -0.045180123299360275, -0.11482126265764236, 0.0799320712685585, -0.2053496241569519, -0.1634693592786789, 0.09614407271146774, 0.09861471503973007, -0.02938617207109928, -0.11577417701482773, -0.10705673694610596, -0.0009068705257959664, -0.05424114689230919, -0.00931871123611927, 0.00010674348595784977, -0.0695921778678894, -0.1948969066143036, 0.07338659465312958, -0.14980365335941315, 0.18008437752723694, 0.149880513548851, 0.00902433693408966, 0.025349421426653862, -0.11104365438222885, 0.17837905883789062, -0.03857951983809471, 0.15154042840003967, 0.08542133867740631, 0.025359615683555603, -0.026913806796073914, -0.03766627982258797, 0.10067478567361832, 0.003842624370008707, 0.1357971727848053, 0.021554648876190186, -0.023104753345251083, 0.009592603892087936, 0.022981081157922745, -0.06881198287010193, 0.12291862070560455, -0.2198922038078308, -0.017525386065244675, -0.2572525143623352, -0.2107655256986618, -0.21298502385616302, -0.11263374984264374, 0.2812751531600952, -0.056295499205589294, -0.0957365557551384, 0.0887734591960907, -0.14228570461273193, 0.030664609745144844, -0.1581956297159195, 0.10025910288095474, -0.0035573660861700773, 0.2155996710062027, 0.08243992179632187, 0.09608146548271179, 0.15027369558811188, 0.49403777718544006, -0.2239091694355011, -0.15608705580234528, 0.00512358034029603, -0.06307988613843918, 0.054682664573192596, -0.09073881804943085, -0.049384117126464844, -0.0024871074128896, -0.10337470471858978, -0.11959249526262283, 0.044309187680482864, 0.09339581429958344, -0.08762269467115402, -0.14959633350372314, -0.2177583873271942, -0.1346839964389801, -0.14194123446941376, 0.06596116721630096, 0.032322995364665985, 0.27456533908843994, -0.09293346852064133, -0.047515060752630234, 0.21631814539432526, -0.19436269998550415, -0.08422203361988068, -0.09236515313386917, 0.11893072724342346, 0.029862461611628532, -0.10916335135698318, 0.28603509068489075, -0.10600464046001434, -0.010357593186199665, -0.021425900980830193, -0.05025104805827141, 0.08094057440757751, -0.11456431448459625, -0.14066626131534576, 0.13165894150733948, 0.02909594029188156, -0.08766043186187744, -0.10475970804691315, -0.0014345683157444, 0.03645690903067589, 0.3098066449165344, -0.038108836859464645, -0.01399015262722969, 0.08335836976766586, -0.127812460064888, -0.10736414790153503, 0.2730972170829773, -0.03300921991467476, -0.14773009717464447, 0.033274345099925995, 0.020867517217993736, -0.13752387464046478, 0.02117556519806385, 0.008590824902057648, 0.19402575492858887, -0.042626265436410904, -0.02224639244377613, 0.07752815634012222, 0.04443744570016861, 0.15704762935638428, -0.022308669984340668, -0.09018141776323318, -0.11625195294618607, 0.0993829220533371, -0.17954295873641968, -0.19341221451759338, 0.07165168970823288, -0.24967965483665466, 0.024196691811084747, -0.11603427678346634, 0.03934730216860771, 0.08773772418498993, -0.17688941955566406, 0.00977816991508007, 0.15114064514636993, -0.20091259479522705, 0.1389520913362503, 0.06727916747331619, -0.11634404957294464, -0.05850601941347122, 0.052883636206388474, 0.02823234722018242, 0.23785355687141418, -0.058385979384183884, 0.050174303352832794, -0.027555370703339577, -0.055052127689123154, -0.010300691239535809, 0.2416301965713501, 0.11149276793003082, -0.027042794972658157, 0.2179524302482605, 0.1826769858598709, 0.018358612433075905, -0.12021565437316895, 0.2207554429769516, 0.032870374619960785, -0.09051582217216492, 0.06736559420824051, 0.17431053519248962, 0.26556822657585144, -0.031004376709461212, 0.01035239640623331, 0.05629127845168114, 0.2004072070121765, 0.2782245874404907, -0.023380568251013756, -0.12138009071350098, -0.22705437242984772, -0.15487414598464966, -0.11558448523283005, 0.09973319619894028, 0.05111081898212433, 0.04740056395530701, 0.19406965374946594, -2.291892339461717e-32, -0.032896507531404495, -0.12102045118808746, -0.128047376871109, -0.007664299104362726, -0.3559115529060364, 0.1388135552406311, -0.06602119654417038, -0.0126067865639925, -0.08296915143728256, -0.11476561427116394, -0.011940764263272285, -0.07298285514116287, 0.03875143453478813, -0.0047469669952988625, -0.1261187195777893, 0.007681245915591717, -0.11889591813087463, 0.04397446662187576, 0.06295625120401382, 0.06912077218294144, 0.21300232410430908, 0.07244062423706055, 0.002496614819392562, 0.11158493161201477, 0.06154895946383476, -0.15576037764549255, -0.15689633786678314, -0.16141852736473083, 0.13384154438972473, -0.025414157658815384, -0.07515055686235428, 0.18680037558078766, 0.05931606516242027, -0.09076956659555435, -0.20739099383354187, -0.29141533374786377, -0.12897807359695435, -0.004197841044515371, -0.29750049114227295, 0.15731783211231232, 0.05185902491211891, 0.17316988110542297, -0.034947916865348816, -0.1340712010860443, 0.013483114540576935, -0.03683961182832718, 0.062262386083602905, -0.051075953990221024, -0.18869537115097046, -0.08162440359592438, -0.0229664146900177, 0.07186620682477951, 0.14022815227508545, 0.13505688309669495, 0.06979751586914062, 0.02435729280114174, -0.1406499445438385, 0.08613967150449753, -0.004283174406737089, 0.029604271054267883, 0.12258581072092056, -0.11868581175804138, -0.036294449120759964, 0.06845357269048691, 0.13581345975399017, -0.039720065891742706, 0.12890306115150452, 0.001777790836058557, -0.07413788139820099, -0.021180126816034317, 0.04570547118782997, 0.2037130743265152, -0.12063669413328171, -0.008908333256840706, -0.15090352296829224, -0.1325474977493286, 0.009928513318300247, -0.07543889433145523, -0.056026481091976166, -0.11688287556171417, 0.12973931431770325, 0.00543208559975028, 0.1963295191526413, 0.044580768793821335, -0.02194753848016262, 0.09066972136497498, -0.07088866829872131, 0.030227312818169594, -0.18981267511844635, -0.08449287712574005, -0.045511700212955475, -0.11615677177906036, -0.0017519578104838729, -0.251229465007782, -0.1722283959388733, -0.08766697347164154, -0.058633532375097275, -0.010608311742544174, -0.12302398681640625, -0.03665497153997421, -0.05392347276210785, -0.12356691062450409, 0.029939649626612663, 0.010864617303013802, 0.02765442617237568, 0.12395305931568146, -0.07068756222724915, -0.009887462481856346, -0.0956023558974266, 0.06052554026246071, -0.025553332641720772, 0.09947817027568817, 0.25651073455810547, 0.2151498645544052, 0.2646214962005615, -0.06236734986305237, -0.06571954488754272, -0.02064581587910652, 0.2254631370306015, 0.14313605427742004, -0.02015995979309082, -0.05874304845929146, -0.06407471001148224, 0.08912254124879837, 0.0485551692545414, 0.14323021471500397, -0.2600916624069214, -0.20761840045452118, -0.160866379737854, 0.05143832415342331, 0.024245580658316612, -0.15332797169685364, 6.556294351867109e-7, -0.25957897305488586, 0.21229349076747894, 0.022458428516983986, 0.06643243879079819, -0.22761958837509155, 0.014362163841724396, -0.26849663257598877, 0.2194560319185257, -0.26857930421829224, 0.062361061573028564, -0.0919293537735939, 0.056030433624982834, -0.018490778282284737, -0.009871810674667358, 0.1109197735786438, -0.04710002243518829, -0.10345442593097687, 0.1635034680366516, 0.019117165356874466, 0.174887016415596, 0.03964615613222122, -0.06288901716470718, 0.14847397804260254, -0.018584853038191795, 0.14559867978096008, 0.012551488354802132, -0.1557731032371521, 0.0496138297021389, 0.08665595948696136, -0.0690661072731018, -0.06745927780866623, 0.095435731112957, -0.07302141189575195, 0.22000598907470703, 0.12224793434143066, -0.14503130316734314, -0.046451590955257416, -0.09936802089214325, -0.0503462478518486, -0.07335362583398819, 0.14528432488441467, 0.04179946705698967, -0.012651895172894001, -0.1898462027311325, 0.1112608015537262, 0.12188650667667389, -0.041730716824531555, -0.0411689430475235, -0.07439549267292023, 0.04503334313631058, 0.10051972419023514, 0.09638902544975281, 0.11764016002416611, 0.03669930621981621, -0.14302769303321838, -0.02103053405880928, -0.11993741989135742, -0.07451549172401428, 0.20000164210796356, 0.044889289885759354, 0.05305327847599983, -0.1642742156982422, 0.012708364054560661, -0.03389598801732063, 0.19151075184345245, -0.07436545193195343, -0.1830359697341919, -6.308913767117978e-35, -0.10107232630252838, 0.1066826581954956, -0.15126056969165802, -0.09437336772680283, 0.002144400728866458, -0.18201397359371185, 0.34299832582473755, 0.08186202496290207, 0.10610061883926392, -0.0836322009563446, -0.12592476606369019 ]
https://github.com/huggingface/datasets/issues/2596
Transformer Class on dataset
Hi ! Do you have an example in mind that shows how this could be useful ?
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
17
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). Hi ! Do you have an example in mind that shows how this could be useful ?
[ -0.1946708858013153, 0.15747793018817902, 0.023868905380368233, 0.006679023150354624, 0.05459840968251228, -0.03766047954559326, 0.1904422491788864, -0.004007217939943075, -0.10335469245910645, -0.04268684610724449, 0.03598212078213692, 0.13444460928440094, 0.05636849254369736, 0.038747310638427734, 0.04117536544799805, -0.15121440589427948, -0.20480121672153473, -0.03268596902489662, -0.2837512493133545, 0.0791112631559372, -0.08858007937669754, -0.10976015031337738, 0.10438214987516403, 0.003934468142688274, -0.05832589417695999, 0.018376894295215607, -0.1356707215309143, 0.010565420612692833, 0.0640123039484024, 0.06181538850069046, 0.20609606802463531, 0.1778704971075058, 0.05905137211084366, 0.07282832264900208, 0.000005536308890441433, -0.02780282311141491, -0.0401068814098835, 0.04141511023044586, -0.0007318810094147921, -0.23213335871696472, -0.1331217885017395, -0.13806484639644623, 0.04968816787004471, -0.02090957574546337, -0.16926193237304688, 0.018911486491560936, 0.12263960391283035, 0.08974464237689972, 0.20493867993354797, 0.08023886382579803, -0.11513311415910721, -0.11013595759868622, 0.09782464057207108, -0.11620818078517914, 0.14804142713546753, 0.22306548058986664, -0.019848251715302467, 0.08136351406574249, -0.20093674957752228, 0.06647127121686935, -0.14271634817123413, 0.05206020921468735, -0.04474731162190437, -0.01861063577234745, -0.01560825202614069, -0.009098708629608154, -0.17522656917572021, -0.15206752717494965, 0.04729331284761429, 0.05442357435822487, 0.19543832540512085, -0.17221865057945251, -0.11836262047290802, 0.0639413371682167, 0.18385055661201477, 0.1675397753715515, -0.13465650379657745, -0.021916402503848076, 0.04677720367908478, 0.12020423263311386, -0.0808524638414383, 0.15640540421009064, -0.0538487583398819, -0.07532759755849838, -0.30343446135520935, -0.0809042677283287, -0.1680280566215515, -0.04847957193851471, -0.16513405740261078, -0.08906898647546768, 0.16351677477359772, 0.17653696238994598, -0.06342102587223053, 0.016651583835482597, -0.03642040491104126, -0.12762229144573212, -0.10314591228961945, 0.01903819479048252, -0.057560648769140244, -0.010415141470730305, -0.03106011636555195, 0.0645519271492958, -0.004211357329040766, 0.11590035259723663, -0.09261925518512726, 0.07524397224187851, -0.2123708724975586, -0.06251239776611328, 0.009446839801967144, -0.15088364481925964, -0.07879169285297394, 0.09524450451135635, -0.16052746772766113, -0.14778107404708862, 0.07471197843551636, 0.06819893419742584, 0.1239331066608429, 0.0853673592209816, -0.023197218775749207, -0.08014572411775589, 0.13759128749370575, 0.06697353720664978, -0.09916848689317703, 0.04753504693508148, 0.14386571943759918, 0.111649289727211, 0.08800123631954193, 0.032814376056194305, 0.0789879560470581, -0.08331622183322906, 0.01619156077504158, 0.02642928622663021, 0.10280922800302505, -0.1003781408071518, 0.1596420556306839, 0.02759614773094654, -0.04706960916519165, -0.10801070928573608, -0.1024138554930687, 0.08825439214706421, 0.09352956712245941, 0.0632772147655487, -0.03447462245821953, -0.12537983059883118, -0.06851311773061752, 0.021665997803211212, 0.022908786311745644, 0.008492021821439266, -0.005243217572569847, 0.007826731540262699, -0.09620875120162964, 0.22141212224960327, 0.031440213322639465, 0.05879117175936699, -0.10972972214221954, 0.04058678075671196, 0.015324550680816174, 0.021963855251669884, -0.09611716866493225, -0.1466989368200302, -0.044448964297771454, -0.1614418476819992, -0.009551551192998886, 0.003270742716267705, -0.05770376697182655, 0.04238026589155197, -0.14098046720027924, 0.10047025233507156, -0.10811810940504074, -0.06863124668598175, -0.10674155503511429, -0.03958257660269737, 0.0712975412607193, 0.04171672835946083, 0.017295151948928833, 0.1389971375465393, 0.2842916250228882, 0.16103246808052063, -0.18978124856948853, 0.01962469145655632, -0.08678510040044785, -0.049824826419353485, -0.09504467993974686, 0.18191908299922943, 0.08585679531097412, -0.03668587654829025, -0.31690293550491333, 0.2003573179244995, -0.10729093104600906, -0.15057362616062164, 0.07795730233192444, -0.020781435072422028, 0.12038684636354446, 0.06567405164241791, 0.0019321301952004433, 0.22191117703914642, 0.00044274251558817923, 0.23410986363887787, -0.08848224580287933, -0.22773252427577972, -0.1454487293958664, -0.0454537458717823, -0.17019103467464447, -0.034869708120822906, 0.05479023605585098, -0.19625446200370789, -0.11761704832315445, -0.18080727756023407, 0.14164531230926514, -0.11453402787446976, 0.0899319276213646, 0.09464464336633682, -0.16562120616436005, -0.1197967380285263, -0.16786225140094757, 0.18874718248844147, -0.06961677968502045, -0.1286243498325348, 0.03939759358763695, -0.06179696321487427, 0.07096114754676819, 0.02647252380847931, 0.0385868139564991, 0.042237646877765656, -0.13161535561084747, 0.05843589827418327, 0.2702063024044037, 0.030961723998188972, -0.06461556255817413, -0.04664436727762222, -0.013532587327063084, -0.14335918426513672, 0.20410853624343872, 0.03780779615044594, -0.14271225035190582, 0.06367113441228867, 0.12059547007083893, 0.07777578383684158, -0.0007958996575325727, -0.17512482404708862, -0.009068099781870842, 0.03620261326432228, -0.02922137640416622, 0.016605712473392487, -0.21821601688861847, 0.06561027467250824, -0.152842715382576, 0.05769386515021324, 0.045935891568660736, -0.11706448346376419, 0.19534964859485626, -0.08571154624223709, -0.15385006368160248, 0.051957085728645325, -0.06606708467006683, -0.011896675452589989, 0.14491906762123108, 0.0068567898124456406, 0.09805427491664886, -0.022174622863531113, 0.04287952184677124, -0.09337932616472244, 0.06229967251420021, 0.05887661501765251, 0.0515662357211113, 0.10346273332834244, -0.2395849972963333, 0.2824244499206543, 0.009170164354145527, 0.060734570026397705, 0.02683461830019951, 0.10958437621593475, 0.15942363440990448, 0.027278708294034004, 0.14126689732074738, -0.2923543155193329, 0.005422830116003752, 0.018750887364149094, -0.19566424190998077, 0.06572550535202026, -0.21480625867843628, 0.0035727338399738073, 0.06334967911243439, -0.012179668992757797, 0.035047344863414764, 0.09722257405519485, -0.022635966539382935, -0.009340457618236542, -0.04022083431482315, 0.19696657359600067, 0.10297133773565292, -0.013027332723140717, -0.05592825636267662, -0.10248071700334549, 0.007065188605338335, 0.055004604160785675, 0.0445815771818161, 0.07561807334423065, 0.011009206995368004, 0.04554871469736099, -0.11714071035385132, 0.0976673811674118, 0.023935658857226372, -0.08863598853349686, -0.11713220924139023, 0.06620174646377563, 0.0412314273416996, 0.04317581653594971, -0.09567833691835403, -0.1279693841934204, -0.04204245284199715, -0.051275547593832016, 0.09636559337377548, 0.06795483082532883, 0.051169343292713165, 0.09766016900539398, -0.024073153734207153, 0.125983327627182, -0.04032214730978012, 0.017406541854143143, 0.1133040338754654, -0.016352294012904167, 0.027429595589637756, -0.05925564840435982, -0.025895584374666214, 0.12009041011333466, -0.10268785804510117, -0.010928163304924965, -0.08120459318161011, -0.037082429975271225, -0.12832516431808472, 0.01958495005965233, 0.09244278073310852, 0.04915981739759445, 0.06637952476739883, -0.03412759676575661, -0.07947924733161926, 0.18895035982131958, 0.16162435710430145, -0.045135654509067535, -0.027811570093035698, 0.08525370061397552, -0.09446275979280472, 0.013721098192036152, 0.2692129611968994, -0.14299573004245758, 0.13224388659000397, -0.14811353385448456, -0.08780945837497711, -0.02265169844031334, 0.06425458192825317, 0.3600848615169525, 0.008247754536569118, -0.1286848485469818, 0.012400534003973007, 0.10949687659740448, -0.15716207027435303, 0.15627329051494598, -0.174921914935112, 0.04389370232820511, 0.020977715030312538, 0.012799989432096481, -0.11050330847501755, -0.27860453724861145, -0.16555392742156982, -0.10945553332567215, 0.10983086377382278, 0.26986199617385864, 0.1284673810005188, -0.11395011842250824, 0.051651790738105774, 0.004004156682640314, -0.07127133756875992, 0.10075632482767105, -0.10948026925325394, -0.0009481011074967682, -0.00013230643526185304, -0.24262677133083344, 0.010725680738687515, 0.15598630905151367, 0.020244646817445755, -0.23946723341941833, -0.03322114422917366, -0.07773198187351227, 0.10290015488862991, -0.006703521125018597, 0.09493259340524673, 0.21454313397407532, 0.12423787266016006, 0.04455697163939476, -0.005727930460125208, -0.043143462389707565, -0.019160140305757523, 0.19539791345596313, -0.09285889565944672, -0.23720963299274445, -0.0929921418428421, -0.014538095332682133, 0.00002182922253268771, -0.1310037523508072, 0.05673782899975777, -0.01221899688243866, -0.013095533475279808, -0.1090143620967865, 0.052797768265008926, -0.16142840683460236, -0.003148542018607259, 0.05848682299256325, -0.06721506267786026, -0.135313481092453, -0.028571292757987976, 0.11139189451932907, 0.005550126079469919, 0.0035456756595522165, 0.102222740650177, 0.0984276756644249, -0.04296654835343361, 0.06530819088220596, 0.06969834119081497, -0.1374344676733017, -0.0718274861574173, -0.09733816236257553, 0.32768991589546204, -0.03771045058965683, 0.016721997410058975, 0.006205555517226458, -0.28126260638237, 0.08549297600984573, 0.07041756808757782, 0.05843387916684151, 0.1342850774526596, 0.16460473835468292, -0.05197947844862938, 0.08320404589176178, 0.18005098402500153, -0.07210550457239151, 0.11978162080049515, -0.08677499741315842, -0.016335122287273407, -0.016480693593621254, 0.17055851221084595, 0.04982110112905502, 0.21514974534511566, -0.03620544821023941, -0.17805065214633942, -0.08801587671041489, -0.07624589651823044, -0.11129405349493027, 0.02870485559105873, 0.03962269052863121, 0.01890338771045208, -0.0231923907995224, -0.1384199857711792, 0.10802504420280457, 0.10444418340921402, 0.04097489267587662, -0.014299365691840649, -0.08537384867668152, -0.035008881241083145, 0.08666644245386124, 0.09251333028078079, 0.01977887935936451, 0.09400574862957001, 0.0059851049445569515, 0.12166186422109604, 0.05457986891269684, 0.3203219771385193, -0.08399565517902374, -0.16383162140846252, 0.022059287875890732, -0.16491428017616272, 0.07550543546676636, -0.062359437346458435, 0.1247614324092865, 0.20199985802173615, -0.038161784410476685, -0.07956255972385406, -0.14906075596809387, -0.1329081952571869, 0.04380616918206215, -0.056826766580343246, 0.20557527244091034, 0.08645489811897278, 0.05104021728038788, 0.0900506004691124, 0.10134978592395782, -0.0544535368680954, 0.010748355649411678, -0.07020378857851028, -0.012400737032294273, 0.21966013312339783, 0.10507217049598694, 0.058938127011060715, -0.02923775464296341, -0.16135823726654053, -0.19209173321723938, -0.1475997120141983, 0.1994369775056839, 0.06400877982378006, -0.03509332984685898, -0.02836718037724495, 0.09788907319307327, 0.21617063879966736, -0.160772904753685, 0.12756812572479248, 0.010467047803103924, 0.02440297044813633, 0.13045723736286163, 0.03148713707923889, 0.11412327736616135, 0.05135783180594444, 0.02534475550055504, -0.08910894393920898, 0.12856848537921906, -0.030878284946084023, -0.06211276724934578, -0.2819336950778961, -0.03722932189702988, -0.09210535138845444, 0.07370536029338837, 0.0055701276287436485, 0.08320936560630798, 0.17275211215019226, -0.018243378028273582, -0.05142110958695412, 0.027066795155405998, -0.033117469400167465, 0.042526714503765106, -0.004503599833697081, 0.14262928068637848, -0.010054955258965492, 0.02472771145403385, 0.007463489659130573, -0.014598623849451542, -0.11309786140918732, 0.015195218846201897, 0.029848748818039894, -0.2600211799144745, 0.06145542860031128, -0.14006924629211426, 0.006970341317355633, -0.08935291320085526, -0.12821049988269806, -0.03581826016306877, 0.22457680106163025, -0.0834813043475151, -0.1490083932876587, -0.061129387468099594, -0.10868653655052185, -0.06251190602779388, -0.07845018804073334, 0.025676431134343147, 0.11547328531742096, -0.005080267786979675, -0.12955063581466675, -2.2013224099091797e-32, -0.05445321649312973, 0.01366627961397171, 0.013804253190755844, 0.22044579684734344, -0.02425239607691765, -0.08592671155929565, -0.003551594680175185, -0.08748118579387665, -0.022965962067246437, -0.026894643902778625, -0.11707816272974014, 0.05419454723596573, 0.02372676692903042, -0.031023666262626648, -0.052907899022102356, -0.08365005254745483, 0.040608759969472885, 0.016907809302210808, -0.050751712173223495, -0.07746073603630066, 0.15589545667171478, -0.08972834795713425, 0.08711717277765274, 0.06556159257888794, -0.14716719090938568, -0.0711360052227974, -0.1078936979174614, 0.08532151579856873, 0.04633951932191849, -0.11967986822128296, 0.132075235247612, -0.001570950262248516, -0.007335809525102377, -0.14288851618766785, -0.08380383998155594, 0.20133806765079498, -0.3342125117778778, 0.110966756939888, -0.22948789596557617, 0.19722242653369904, 0.053224220871925354, 0.09703033417463303, 0.23285947740077972, -0.10102607309818268, 0.017772749066352844, -0.1046670600771904, 0.02840024046599865, -0.03997434303164482, 0.11818769574165344, 0.02828865498304367, -0.22446689009666443, -0.0877455398440361, -0.13186189532279968, -0.10150585323572159, 0.19957782328128815, 0.07498464733362198, -0.004622878506779671, -0.07811686396598816, -0.16324159502983093, 0.06760837137699127, 0.2962723672389984, 0.024912633001804352, 0.032864417880773544, 0.09779725968837738, 0.046072818338871, -0.06038094311952591, 0.18892018496990204, -0.09428925812244415, 0.0779779702425003, 0.03241129219532013, 0.01615678146481514, 0.1640690565109253, 0.1104196310043335, 0.08656717836856842, -0.06745991110801697, -0.06842324882745743, 0.08836135268211365, 0.1604742854833603, -0.19801054894924164, -0.0762825608253479, -0.12526114284992218, 0.013539737090468407, 0.008141993544995785, -0.006594481412321329, 0.1273890733718872, -0.04730963706970215, -0.0370786227285862, 0.15759310126304626, -0.03656672686338425, 0.02035505324602127, -0.10443267226219177, 0.3000916540622711, -0.05615628510713577, -0.12062566727399826, 0.09649394452571869, 0.20215921103954315, -0.10724565386772156, 0.028241248801350594, -0.08213073015213013, -0.2692968249320984, 0.03094951994717121, -0.16280940175056458, 0.24991509318351746, 0.29347294569015503, 0.1669066697359085, 0.056417662650346756, 0.1653098315000534, 0.09630540758371353, -0.24917995929718018, 0.054868049919605255, 0.020041340962052345, -0.040729958564043045, 0.015965484082698822, -0.12627461552619934, -0.04027935117483139, -0.037646155804395676, 0.020350361242890358, 0.02216196060180664, -0.02967294119298458, -0.008571882732212543, -0.20599253475666046, 0.11442103236913681, -0.023684591054916382, -0.09525150805711746, -0.10906982421875, -0.01387813687324524, 0.0326378233730793, -0.07522290199995041, 0.17326565086841583, -0.15867000818252563, -0.03356335684657097, -0.13119423389434814, 7.437896556439227e-7, -0.21119092404842377, 0.17285388708114624, 0.042829327285289764, -0.09090782701969147, -0.0969054102897644, 0.14694172143936157, -0.1843431293964386, 0.05153016373515129, 0.18249107897281647, 0.014874342828989029, 0.1373014599084854, -0.17136651277542114, -0.023763742297887802, 0.028280001133680344, -0.02499036118388176, -0.1459311842918396, 0.022379331290721893, -0.08645083755254745, 0.011870442889630795, 0.06880136579275131, 0.12621064484119415, 0.1786869764328003, -0.025333836674690247, -0.025837240740656853, -0.03883625194430351, -0.001340933027677238, 0.003990341909229755, 0.00698681129142642, 0.13753090798854828, 0.0025820303708314896, 0.09705719351768494, -0.08202196657657623, 0.09297493100166321, 0.12261886149644852, -0.10289673507213593, 0.1634935885667801, -0.018913520500063896, 0.03948286548256874, 0.024483323097229004, 0.05676627159118652, 0.04734370857477188, -0.041816242039203644, -0.15969665348529816, -0.06286109983921051, 0.012380828149616718, -0.19786842167377472, -0.021543510258197784, 0.11025753617286682, -0.28398066759109497, 0.1003074124455452, -0.11053086817264557, 0.06562735140323639, 0.11885365843772888, 0.06254951655864716, 0.025717832148075104, 0.0499153696000576, 0.01979215070605278, 0.04713816940784454, -0.006277322769165039, -0.05941931530833244, -0.10990534722805023, 0.1016528308391571, 0.06241334229707718, -0.10388095676898956, 0.11271538585424423, 0.129473015666008, -0.08487316220998764, 3.4893353646822147e-34, 0.010237970389425755, 0.16426320374011993, 0.026293111965060234, -0.14098963141441345, -0.03102380782365799, -0.09090965986251831, 0.29420006275177, 0.06078324094414711, -0.022625954821705818, -0.13393908739089966, -0.08035703748464584 ]
https://github.com/huggingface/datasets/issues/2596
Transformer Class on dataset
Example: Merge 2 datasets into one datasets Label extraction from dataset dataset(text, label) —> dataset(text, newlabel) TextCleaning. For image dataset, Transformation are easier (ie linear algebra). > On Jul 6, 2021, at 17:39, Quentin Lhoest ***@***.***> wrote: > >  > Hi ! Do you have an example in mind that shows how this could be useful ? > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or unsubscribe.
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
83
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). Example: Merge 2 datasets into one datasets Label extraction from dataset dataset(text, label) —> dataset(text, newlabel) TextCleaning. For image dataset, Transformation are easier (ie linear algebra). > On Jul 6, 2021, at 17:39, Quentin Lhoest ***@***.***> wrote: > >  > Hi ! Do you have an example in mind that shows how this could be useful ? > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or unsubscribe.
[ -0.1635293811559677, 0.2059313952922821, 0.01832471415400505, 0.04419556260108948, 0.061104532331228256, -0.03446652740240097, 0.19872166216373444, -0.00834586936980486, -0.09499762207269669, -0.049329500645399094, -0.03149521350860596, 0.15996964275836945, 0.07189936935901642, 0.07543414831161499, 0.00792735256254673, -0.19885684549808502, -0.23468774557113647, -0.020077655091881752, -0.2153087705373764, 0.08327337354421616, -0.08223597705364227, -0.10888392478227615, 0.12905819714069366, 0.029418926686048508, -0.06564325839281082, 0.055863454937934875, -0.1302952915430069, 0.019741302356123924, 0.06689644604921341, 0.07593180984258652, 0.12070947885513306, 0.18975383043289185, 0.0691978707909584, 0.15158312022686005, 0.000005504446107806871, -0.019768282771110535, -0.07608109712600708, -0.003784505184739828, -0.014515605755150318, -0.23993325233459473, -0.08299501240253448, -0.15095634758472443, 0.06161508709192276, -0.07199859619140625, -0.1619119793176651, -0.008033737540245056, 0.13440072536468506, 0.11333861947059631, 0.2832910716533661, 0.08318448811769485, -0.11708609759807587, -0.1331944763660431, 0.1624291092157364, -0.07832295447587967, 0.20003581047058105, 0.13644255697727203, -0.019429141655564308, 0.13360926508903503, -0.14760449528694153, 0.04880708456039429, -0.12818481028079987, 0.09090927988290787, -0.028666209429502487, -0.04966864734888077, 0.0004096189804840833, -0.01673870161175728, -0.15662598609924316, -0.15472294390201569, 0.010855335742235184, 0.07778418064117432, 0.16964279115200043, -0.1282242387533188, -0.1466035395860672, 0.05421275645494461, 0.18048234283924103, 0.10866159200668335, -0.12486325204372406, 0.0010036147432401776, 0.0015520363813266158, 0.09523431211709976, -0.04682881757616997, 0.14746053516864777, -0.04592238366603851, -0.11927291005849838, -0.2799183130264282, 0.012285208329558372, -0.12109985202550888, -0.05535248667001724, -0.14452143013477325, -0.10419724136590958, 0.10423093289136887, 0.1344147026538849, -0.06895046681165695, 0.003658277215436101, 0.0020093852654099464, -0.1515440046787262, -0.18817687034606934, -0.047384124249219894, -0.056777697056531906, -0.02762746624648571, -0.03113526664674282, 0.057854700833559036, -0.03306717798113823, 0.1178324818611145, -0.06579049676656723, 0.09232597053050995, -0.2038370966911316, -0.0052469708025455475, -0.016547154635190964, -0.1693679392337799, -0.09201119095087051, 0.11769548803567886, -0.15281230211257935, -0.12823791801929474, 0.06693971902132034, 0.11172553896903992, 0.11073713004589081, 0.10956646502017975, -0.017153173685073853, -0.12609879672527313, 0.16356705129146576, 0.037158869206905365, -0.07330218702554703, -0.012133737094700336, 0.17657634615898132, 0.07632454484701157, 0.08698946237564087, 0.011934368871152401, 0.08583207428455353, -0.060362059623003006, 0.06689761579036713, 0.06086239963769913, 0.15263371169567108, -0.12623776495456696, 0.10498696565628052, 0.03180937096476555, -0.13654743134975433, -0.12273654341697693, -0.09182418882846832, 0.08225000649690628, 0.07781870663166046, 0.11768195033073425, -0.006848199758678675, -0.1618805080652237, -0.013268858194351196, -0.0016698563704267144, 0.011267728172242641, 0.03971978276968002, -0.06312111020088196, -0.004151305183768272, -0.057695820927619934, 0.253058522939682, 0.019437719136476517, 0.10324888676404953, -0.004397619515657425, 0.047268640249967575, -0.0034681453835219145, -0.01674775779247284, -0.07273605465888977, -0.0961831659078598, 0.037677064538002014, -0.10719754546880722, -0.004953181836754084, 0.07418584823608398, -0.12540441751480103, -0.007788114715367556, -0.13009683787822723, 0.07459603995084763, -0.030519679188728333, -0.06481967121362686, -0.13286352157592773, 0.011870145797729492, 0.04119018465280533, -0.03793840855360031, -0.024384301155805588, 0.10304229706525803, 0.21663063764572144, 0.09796244651079178, -0.09291674196720123, 0.05474182590842247, -0.08258490264415741, -0.04550883546471596, -0.07002875208854675, 0.2047547698020935, 0.10517432540655136, 0.0022728783078491688, -0.2595162093639374, 0.17707166075706482, -0.057369619607925415, -0.10836529731750488, 0.0696164071559906, 0.01010872982442379, 0.08922798186540604, 0.005682150833308697, -0.019838351756334305, 0.24058593809604645, -0.08539145439863205, 0.17682480812072754, -0.11993467807769775, -0.26997989416122437, -0.08765527606010437, -0.0030815154314041138, -0.18049897253513336, -0.0763167291879654, 0.019704584032297134, -0.2009180188179016, -0.10828505456447601, -0.15768881142139435, 0.14428338408470154, -0.05625545233488083, 0.07495341449975967, 0.03835936635732651, -0.11445505917072296, -0.1223059818148613, -0.17351768910884857, 0.17069022357463837, -0.04354811832308769, -0.08461446315050125, 0.0108104906976223, -0.07295075058937073, 0.13234248757362366, 0.04496762901544571, -0.0028845288325101137, 0.08301924914121628, -0.06277412176132202, 0.07571984827518463, 0.2713507115840912, 0.02736956626176834, -0.057603124529123306, -0.11667042970657349, -0.03935755416750908, -0.12784285843372345, 0.19147996604442596, -0.04681817442178726, -0.14889462292194366, 0.04293671250343323, 0.11433050781488419, -0.01656743697822094, -0.0248536579310894, -0.10839810967445374, -0.03350813686847687, -0.054607879370450974, -0.06974217295646667, -0.027605267241597176, -0.22196675837039948, 0.0768156573176384, -0.14370979368686676, 0.14381301403045654, 0.06409160792827606, -0.09704848378896713, 0.22825472056865692, -0.08463314175605774, -0.13300779461860657, 0.025423096492886543, -0.11556307226419449, -0.04559341445565224, 0.1417880654335022, 0.026590805500745773, 0.08472443372011185, -0.10805440694093704, 0.0029433448798954487, -0.042735692113637924, 0.027119535952806473, 0.061905067414045334, 0.14652399718761444, 0.10010923445224762, -0.27767568826675415, 0.2882912755012512, 0.02920476347208023, 0.06230491027235985, 0.03989575430750847, 0.17298224568367004, 0.22302043437957764, 0.07660449296236038, 0.16822116076946259, -0.2707785367965698, 0.049619581550359726, -0.009750391356647015, -0.2061614692211151, 0.08675502240657806, -0.2158432900905609, 0.009348079562187195, 0.06336614489555359, -0.044659584760665894, 0.039828792214393616, 0.12548674643039703, -0.020744096487760544, -0.027619771659374237, -0.06521274149417877, 0.16129787266254425, 0.0716356486082077, -0.004666470922529697, -0.022602129727602005, -0.1269485056400299, -0.01902846246957779, 0.0240138228982687, 0.04816107451915741, 0.105390764772892, -0.022123092785477638, 0.0009522057371214032, -0.0864788219332695, 0.06381627917289734, 0.019138183444738388, -0.07393202930688858, -0.09795371443033218, 0.04001105949282646, 0.07047732919454575, 0.08218054473400116, -0.08424606174230576, -0.11628824472427368, -0.0633724257349968, 0.012961520813405514, 0.0625893846154213, -0.01560928300023079, 0.03785271942615509, 0.0956769585609436, -0.07528010755777359, 0.1136004626750946, -0.0660734474658966, 0.04320254921913147, 0.0755164846777916, -0.024449262768030167, 0.12546269595623016, -0.10448559373617172, -0.06806717813014984, 0.12436115741729736, -0.13915154337882996, -0.05816419795155525, -0.029337024316191673, -0.0023345407098531723, -0.14305146038532257, 0.05681517347693443, 0.10900278389453888, -0.048797715455293655, 0.09263180196285248, -0.06610989570617676, -0.065036341547966, 0.14411422610282898, 0.16644178330898285, -0.0021854692604392767, 0.016444997861981392, 0.011019767262041569, -0.10699070990085602, 0.08263912051916122, 0.25342991948127747, -0.0797681137919426, 0.08647941052913666, -0.13039706647396088, -0.121360182762146, 0.006495875772088766, 0.04562724754214287, 0.3476327061653137, 0.024193616583943367, -0.13477055728435516, 0.032555095851421356, 0.15451300144195557, -0.14779603481292725, 0.1091056540608406, -0.22685691714286804, 0.08474171161651611, -0.04136413708329201, -0.0013500232016667724, -0.06577388942241669, -0.27674633264541626, -0.10893683135509491, -0.07864910364151001, 0.1357898712158203, 0.24544693529605865, 0.1056823879480362, -0.1489766240119934, 0.002728590974584222, -0.031024202704429626, -0.07227438688278198, 0.08604518324136734, -0.08923070132732391, 0.020976141095161438, 0.0011757462052628398, -0.22565145790576935, -0.023188898339867592, 0.15799574553966522, 0.07789711654186249, -0.27053460478782654, -0.03420160338282585, -0.11705727875232697, 0.09828914701938629, -0.04625232517719269, 0.1102924570441246, 0.185385599732399, 0.07514150440692902, 0.005375003442168236, -0.05078234151005745, -0.05867533013224602, 0.03818601742386818, 0.1500622183084488, -0.08717750012874603, -0.22282247245311737, -0.09349944442510605, 0.04082280769944191, 0.048449911177158356, -0.1350410282611847, 0.038724277168512344, -0.08378810435533524, -0.028650669381022453, -0.07408007234334946, 0.03880349546670914, -0.2144765406847, 0.03974412381649017, 0.07449400424957275, -0.05881265550851822, -0.20197893679141998, 0.013703237287700176, 0.13704825937747955, -0.025887953117489815, -0.0011237062280997634, 0.05904604494571686, 0.09856349974870682, -0.06618087738752365, 0.04702271893620491, 0.06073042377829552, -0.17812775075435638, -0.07591625303030014, -0.06673099845647812, 0.35846877098083496, 0.09063902497291565, 0.013484540395438671, 0.03391828387975693, -0.19873294234275818, 0.11632079631090164, 0.017962440848350525, 0.04586562141776085, 0.11807341128587723, 0.1440008580684662, -0.04971417784690857, 0.047650743275880814, 0.11827146261930466, -0.1102459505200386, 0.12476487457752228, -0.1315840482711792, -0.019312921911478043, -0.02529200166463852, 0.17173783481121063, 0.04929882287979126, 0.2468557506799698, -0.11425282061100006, -0.18721987307071686, -0.07929383218288422, -0.13814768195152283, -0.10574787855148315, -0.0025563789531588554, 0.03944554179906845, -0.03587400168180466, -0.033836591988801956, -0.11454708874225616, 0.09588578343391418, 0.1350192427635193, 0.03687193989753723, -0.03461041674017906, -0.07284785062074661, -0.10218356549739838, 0.06154739856719971, 0.1326005905866623, 0.013963310047984123, 0.06999503076076508, 0.043703168630599976, 0.07518266886472702, 0.004782354459166527, 0.3343106508255005, -0.06405015289783478, -0.19554154574871063, -0.006452095229178667, -0.1307031810283661, 0.06790153682231903, -0.03306351974606514, 0.09909643977880478, 0.1896500289440155, 0.0011580720311030746, -0.044182851910591125, -0.1534222662448883, -0.10209955275058746, 0.05286136269569397, 0.013302560895681381, 0.19955411553382874, 0.03448694199323654, 0.06445582956075668, 0.06542941927909851, 0.07598844915628433, -0.058017127215862274, -0.06948139518499374, -0.11914369463920593, -0.0009577377350069582, 0.20178081095218658, 0.07722285389900208, 0.06613153219223022, -0.03785507753491402, -0.09330426901578903, -0.15558752417564392, -0.09507602453231812, 0.20743873715400696, -0.020329974591732025, 0.011648105457425117, -0.018049368634819984, 0.10960900038480759, 0.18304257094860077, -0.1465989351272583, 0.1850031018257141, 0.01875182054936886, 0.008187060244381428, 0.10113780945539474, 0.014099936001002789, 0.11732989549636841, 0.08120480924844742, 0.028628971427679062, -0.12665554881095886, 0.04391045123338699, -0.03993985056877136, -0.05991987884044647, -0.2708902955055237, -0.019559551030397415, -0.09676823019981384, 0.10357258468866348, 0.025644386187195778, 0.0885104089975357, 0.1899309754371643, -0.026700416579842567, -0.08285713195800781, 0.05160190537571907, -0.03227362781763077, 0.030560707673430443, -0.021371958777308464, 0.1634783297777176, -0.004248214885592461, 0.012768242508172989, 0.03334929049015045, 0.030619891360402107, -0.10157472640275955, 0.0457894541323185, -0.023513194173574448, -0.2615252137184143, 0.05738745257258415, -0.11951415985822678, 0.0016914873849600554, -0.039702218025922775, -0.11533551663160324, -0.011246783658862114, 0.2015930563211441, -0.033964987844228745, -0.14980287849903107, -0.11428534984588623, -0.059720031917095184, -0.06007109582424164, -0.04428404942154884, 0.04713664948940277, 0.17136836051940918, -0.08374303579330444, -0.12554048001766205, -2.3240977990015767e-32, -0.0824117511510849, 0.05056826025247574, -0.023713205009698868, 0.2512006163597107, -0.053071875125169754, -0.11807277053594589, -0.012611521407961845, -0.13129042088985443, 0.030965758487582207, -0.036022670567035675, -0.0783710852265358, 0.10426732897758484, 0.061030223965644836, -0.007380150258541107, -0.05687757208943367, -0.05141507834196091, 0.08143048733472824, 0.0569341741502285, -0.043264470994472504, -0.06614062935113907, 0.14140155911445618, -0.05771377682685852, 0.12823763489723206, -0.05302981659770012, -0.13216598331928253, -0.02125273272395134, -0.05706685408949852, 0.06006597355008125, 0.06755956262350082, -0.16738520562648773, 0.11125601828098297, -0.022907108068466187, -0.03458641096949577, -0.11582240462303162, -0.08232729136943817, 0.1831648200750351, -0.3020821511745453, 0.09632925689220428, -0.2619091868400574, 0.22220419347286224, 0.057976823300123215, 0.10595923662185669, 0.309269517660141, -0.11214667558670044, 0.061275217682123184, -0.1203179806470871, -0.0001798155135475099, -0.010608877055346966, 0.09058798104524612, 0.04918554052710533, -0.25416991114616394, -0.0847039446234703, -0.13111349940299988, -0.04174821451306343, 0.22176183760166168, 0.06048529967665672, -0.020999116823077202, -0.0514649897813797, -0.1941503882408142, 0.020860956981778145, 0.21164074540138245, 0.02848711796104908, 0.08424914628267288, 0.0755976065993309, 0.10132208466529846, -0.014980834908783436, 0.1915973424911499, -0.04982892796397209, 0.07506733387708664, 0.060180146247148514, 0.02603234350681305, 0.2098505049943924, 0.14791972935199738, 0.11068529635667801, -0.09250885248184204, -0.0658116415143013, 0.1442643105983734, 0.20785664021968842, -0.19410765171051025, -0.0630030408501625, -0.19398748874664307, 0.04694867879152298, 0.0875861868262291, -0.0061656404286623, 0.08807264268398285, -0.012792550027370453, -0.012866897508502007, 0.2109353095293045, -0.037734270095825195, 0.006031448487192392, -0.0829555094242096, 0.28731274604797363, -0.05527746304869652, -0.10139502584934235, 0.04474981129169464, 0.12088629603385925, -0.11746452748775482, 0.10567567497491837, -0.09566688537597656, -0.2289784550666809, 0.016016721725463867, -0.16035249829292297, 0.23540759086608887, 0.27710118889808655, 0.19051103293895721, 0.061492204666137695, 0.17356717586517334, 0.07925634831190109, -0.3155725300312042, 0.07706265896558762, 0.027449844405055046, -0.08808211982250214, 0.07574363797903061, -0.10837553441524506, -0.021263621747493744, -0.012419120408594608, -0.00477055087685585, 0.011580494232475758, -0.02979077771306038, -0.005355697125196457, -0.15808208286762238, 0.056575749069452286, 0.020729944109916687, -0.06293763220310211, -0.1491783708333969, -0.05251093581318855, 0.04040244221687317, -0.01223685871809721, 0.2202076017856598, -0.12587390840053558, -0.0421551913022995, -0.13478310406208038, 7.30020985884039e-7, -0.13287919759750366, 0.14539185166358948, 0.07951503992080688, -0.11913960427045822, -0.13427530229091644, 0.2043604552745819, -0.19484230875968933, 0.01726405881345272, 0.16299210488796234, 0.060741815716028214, 0.13724730908870697, -0.21774686872959137, 0.0032013196032494307, 0.04308340325951576, -0.03891080617904663, -0.15460525453090668, -0.006893545389175415, -0.08050443232059479, -0.005096184089779854, 0.0694526880979538, 0.2355639487504959, 0.1565891057252884, -0.017840856686234474, -0.027120567858219147, -0.048965904861688614, 0.0021926010958850384, -0.031092021614313126, 0.03079519234597683, 0.17125587165355682, 0.07513783872127533, 0.026585690677165985, -0.04650406166911125, 0.040106963366270065, 0.12226561456918716, -0.11592277139425278, 0.09910333156585693, -0.012930882163345814, 0.03309452533721924, -0.015840044245123863, 0.08058341592550278, 0.04018986597657204, -0.06542649865150452, -0.1938655823469162, -0.10180041939020157, -0.0024339584633708, -0.2182803899049759, -0.08298242092132568, 0.12764470279216766, -0.3427606225013733, 0.12359930574893951, -0.06983083486557007, 0.04083552211523056, 0.16686636209487915, 0.062120284885168076, 0.0006731419707648456, 0.056586943566799164, -0.044696059077978134, 0.008828937076032162, 0.02388071082532406, -0.012111002579331398, -0.049554191529750824, 0.09649591892957687, 0.054395776242017746, -0.03961462900042534, 0.044890452176332474, 0.0672539696097374, -0.07645649462938309, 3.0729380722450165e-34, -0.010760931298136711, 0.15575571358203888, 0.04514908418059349, -0.07088280469179153, -0.02422144263982773, -0.11887217313051224, 0.17192672193050385, 0.061606235802173615, -0.08262252062559128, -0.17451611161231995, -0.10530739277601242 ]
https://github.com/huggingface/datasets/issues/2596
Transformer Class on dataset
There are already a few transformations that you can apply on a dataset using methods like `dataset.map()`. You can find examples in the documentation here: https://huggingface.co/docs/datasets/processing.html You can merge two datasets with `concatenate_datasets()` or do label extraction with `dataset.map()` for example
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
41
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). There are already a few transformations that you can apply on a dataset using methods like `dataset.map()`. You can find examples in the documentation here: https://huggingface.co/docs/datasets/processing.html You can merge two datasets with `concatenate_datasets()` or do label extraction with `dataset.map()` for example
[ -0.1267060935497284, 0.08930878341197968, 0.03424540534615517, 0.042127933353185654, 0.0893857404589653, -0.03293406963348389, 0.18071763217449188, -0.032272372394800186, -0.03148636221885681, -0.0666709616780281, -0.054330240935087204, 0.15707457065582275, 0.10142911970615387, 0.10781051218509674, 0.02732633799314499, -0.21679486334323883, -0.2226315438747406, -0.05301475152373314, -0.2572765648365021, 0.07259063422679901, -0.06915238499641418, -0.060354363173246384, 0.16304276883602142, 0.05573152005672455, -0.07238681614398956, 0.06491417437791824, -0.13925732672214508, 0.009196991100907326, 0.12316731363534927, 0.05863289535045624, 0.19402998685836792, 0.20270511507987976, -0.00008528146281605586, 0.14376187324523926, 0.000005548474746319698, 0.003664683550596237, -0.10107038915157318, 0.014607567340135574, 0.02995612658560276, -0.23263810575008392, -0.0464041493833065, -0.16004517674446106, 0.04246951639652252, -0.06767875701189041, -0.19269198179244995, -0.009832752868533134, 0.11061982810497284, 0.12711071968078613, 0.2775649130344391, 0.031720101833343506, -0.09796100109815598, -0.06994001567363739, 0.1583508998155594, -0.07272548973560333, 0.1026044562458992, 0.16937056183815002, -0.023652173578739166, 0.09219250828027725, -0.1865287870168686, 0.03903866559267044, -0.15348534286022186, 0.04886268824338913, -0.0026450478471815586, -0.05623052641749382, 0.08658675104379654, -0.02281899005174637, -0.18839044868946075, -0.18098017573356628, -0.03033427707850933, 0.11208775639533997, 0.09218018501996994, -0.10720657557249069, -0.16191916167736053, 0.03750893101096153, 0.1375855803489685, 0.12699924409389496, -0.09833355247974396, -0.008310201577842236, 0.021177686750888824, 0.06572991609573364, -0.056384533643722534, 0.09726926684379578, -0.04657676815986633, -0.13039109110832214, -0.3025961220264435, -0.0022756392136216164, -0.13092415034770966, -0.048744507133960724, -0.1046736091375351, -0.11602649837732315, 0.06793679296970367, 0.13629421591758728, -0.03786264732480049, -0.007699944078922272, 0.007352426182478666, -0.1619071066379547, -0.13876280188560486, 0.02149166166782379, -0.038915004581213, -0.03546637296676636, -0.03593980893492699, 0.05089721083641052, -0.03500248119235039, 0.12934185564517975, -0.0948610007762909, 0.06351971626281738, -0.15956267714500427, -0.02329724095761776, 0.011873372830450535, -0.13793152570724487, -0.04524747282266617, 0.12793001532554626, -0.07949790358543396, -0.12944091856479645, 0.03736782446503639, 0.09496207535266876, 0.09632343798875809, 0.11955612897872925, -0.00042147745261900127, -0.13853783905506134, 0.19781288504600525, 0.03082129918038845, -0.06673189997673035, 0.03690916299819946, 0.16293363273143768, 0.0739220604300499, 0.08051343262195587, 0.019108695909380913, 0.08609415590763092, -0.07553505152463913, 0.021469268947839737, 0.04757629707455635, 0.1797894984483719, -0.1123073473572731, 0.1485385149717331, -0.02511877380311489, -0.12120722234249115, -0.17416565120220184, -0.05869368836283684, 0.09735462069511414, 0.08071562647819519, 0.11687764525413513, 0.02847735956311226, -0.14640578627586365, -0.04008110985159874, -0.016625290736556053, 0.02953360043466091, 0.05455242469906807, -0.04127161204814911, -0.04840344190597534, -0.03646552562713623, 0.1931963413953781, 0.045300886034965515, 0.07435049116611481, -0.0681055560708046, 0.07416882365942001, -0.0038082324899733067, -0.01102774403989315, -0.08210285753011703, -0.06264573335647583, 0.03256583213806152, -0.1137194111943245, -0.0555313378572464, 0.0593935027718544, -0.07766106724739075, 0.01288581732660532, -0.07863619178533554, 0.05597582459449768, -0.0031111231073737144, -0.15659445524215698, -0.1796950399875641, 0.05441700294613838, 0.04342637211084366, 0.0013862772611901164, -0.04809464514255524, 0.13357305526733398, 0.177888423204422, 0.09768655896186829, -0.08464941382408142, 0.04256441444158554, -0.09001908451318741, -0.008952218107879162, -0.09051933884620667, 0.14305755496025085, 0.12908220291137695, -0.021556977182626724, -0.2387496829032898, 0.1816660314798355, -0.07955921441316605, -0.08645890653133392, 0.05929567292332649, -0.026137445122003555, 0.1709747612476349, 0.012425280176103115, -0.0277254655957222, 0.24866284430027008, -0.05826079845428467, 0.1739673763513565, -0.13154533505439758, -0.26879820227622986, -0.07778038084506989, 0.013707190752029419, -0.16550979018211365, -0.0675254538655281, -0.031374234706163406, -0.1932300180196762, -0.20205461978912354, -0.1434434950351715, 0.12134703248739243, -0.08374319225549698, 0.060869794338941574, 0.035596318542957306, -0.0519123412668705, -0.07407333701848984, -0.1761699914932251, 0.15018105506896973, 0.009266870096325874, -0.14418214559555054, 0.08671676367521286, -0.03495640307664871, 0.10572516918182373, 0.012336021289229393, 0.07230068743228912, 0.08815211802721024, -0.12636567652225494, 0.02963808737695217, 0.26463955640792847, 0.03966234624385834, 0.008114253170788288, -0.10478202998638153, 0.024282194674015045, -0.1612432897090912, 0.2179722934961319, -0.0034117456525564194, -0.18056149780750275, 0.09293960779905319, 0.12374139577150345, -0.027560055255889893, 0.03744807839393616, -0.030957229435443878, -0.06334356963634491, -0.027641823515295982, -0.08239202946424484, -0.030064815655350685, -0.21572305262088776, 0.09863625466823578, -0.1537874937057495, 0.13946396112442017, 0.09635822474956512, -0.08479087799787521, 0.24011093378067017, -0.06759826838970184, -0.15331384539604187, 0.04047858342528343, -0.12005989253520966, -0.08373486995697021, 0.18353839218616486, -0.0024891127832233906, 0.07364965975284576, -0.11519307643175125, 0.03714779019355774, -0.04979916289448738, -0.013527123257517815, 0.0774090364575386, 0.10186988115310669, 0.07756484299898148, -0.2786165177822113, 0.21639737486839294, 0.034392572939395905, 0.08901184797286987, 0.04571134224534035, 0.13954578340053558, 0.23888297379016876, 0.06605716794729233, 0.1681099832057953, -0.2438599169254303, 0.039920225739479065, 0.014758388511836529, -0.19383090734481812, 0.021331656724214554, -0.20619118213653564, 0.004741646349430084, 0.06383383274078369, -0.03606065362691879, 0.021971523761749268, 0.10906173288822174, 0.03015899658203125, -0.04060119763016701, -0.055678363889455795, 0.1075488030910492, 0.03214835003018379, -0.023294057697057724, -0.02256833016872406, -0.1191798746585846, -0.03646807745099068, 0.05552198365330696, 0.09734078496694565, 0.16203616559505463, -0.03708135709166527, 0.060946810990571976, -0.09130660444498062, 0.01589629240334034, -0.00916131492704153, -0.06179268658161163, -0.16138112545013428, 0.019101878628134727, 0.0879315733909607, 0.09026128798723221, -0.046845633536577225, -0.15566663444042206, -0.059261612594127655, -0.009756227023899555, 0.01960737258195877, -0.017916088923811913, 0.08162234723567963, 0.09429199993610382, -0.04286648705601692, 0.10483579337596893, 0.011454575695097446, 0.02835099957883358, 0.09639005362987518, -0.002789180725812912, 0.1738593727350235, -0.07780691236257553, -0.06231965869665146, 0.11216890811920166, -0.13693878054618835, -0.06381004303693771, -0.0007993936887942255, -0.09454963356256485, -0.13054490089416504, 0.07362320274114609, 0.07870174944400787, -0.033155906945466995, 0.0606045201420784, -0.04292699322104454, -0.08476470410823822, 0.061020322144031525, 0.14523565769195557, -0.02040019817650318, -0.023870354518294334, -0.031885985285043716, -0.07251948863267899, 0.06574233621358871, 0.25059187412261963, -0.08320972323417664, 0.07637317478656769, -0.13006696105003357, -0.12279029190540314, 0.030084634199738503, 0.07336898893117905, 0.32088497281074524, -0.04742982238531113, -0.12987713515758514, 0.0806429535150528, 0.048619288951158524, -0.12200453132390976, 0.11414118856191635, -0.21132628619670868, 0.14152413606643677, -0.04570625722408295, 0.026733243837952614, -0.07598050683736801, -0.2608657777309418, -0.10010040551424026, -0.08753933757543564, 0.141331285238266, 0.23964634537696838, 0.14375093579292297, -0.200124591588974, -0.01821737177670002, -0.03696810454130173, -0.048645347356796265, 0.10113775730133057, -0.08848854899406433, 0.08774595707654953, 0.02521241456270218, -0.2747224271297455, 0.016009429469704628, 0.0792049840092659, 0.059621766209602356, -0.25361183285713196, -0.044245146214962006, -0.08210887759923935, 0.15078817307949066, -0.03318219631910324, 0.11257749795913696, 0.23323675990104675, 0.10317523032426834, 0.04266762733459473, -0.027389368042349815, -0.10154474526643753, 0.018955588340759277, 0.06316696852445602, -0.046564675867557526, -0.18597280979156494, -0.10895435512065887, -0.014858338050544262, 0.03398533910512924, -0.1322433203458786, 0.013495206832885742, 0.03856261819601059, 0.01624741032719612, -0.060543742030858994, 0.027262305840849876, -0.2106882631778717, -0.010592356324195862, 0.09763211756944656, 0.0009353334899060428, -0.15488967299461365, 0.028595110401511192, 0.17367003858089447, -0.03233020752668381, -0.0477859191596508, -0.006484111770987511, 0.09624877572059631, -0.036413874477148056, 0.02873491495847702, 0.06927942484617233, -0.11261863261461258, -0.04072006046772003, -0.029799506068229675, 0.30057859420776367, 0.09204495698213577, 0.05227656289935112, 0.04686694219708443, -0.17648358643054962, 0.08345215767621994, 0.027670487761497498, 0.04979719594120979, 0.1935165524482727, 0.17520950734615326, -0.0027715617325156927, 0.12211910635232925, 0.2235071063041687, -0.14316290616989136, 0.10948409885168076, -0.16292886435985565, -0.0958976224064827, -0.06071796268224716, 0.18115423619747162, 0.0693611353635788, 0.28693681955337524, -0.04352360591292381, -0.1448487937450409, -0.002469782019034028, -0.049757592380046844, -0.09196930378675461, 0.0064893485978245735, 0.026389749720692635, -0.019075311720371246, -0.008004826493561268, -0.09348951280117035, 0.060095831751823425, 0.1496140956878662, 0.041088204830884933, -0.00617184117436409, 0.029343901202082634, -0.1317213922739029, 0.09729886800050735, 0.1070391982793808, 0.009227950125932693, 0.09863264113664627, -0.0012927266070619226, 0.09627706557512283, -0.0033164434134960175, 0.35590341687202454, -0.04953061789274216, -0.1770443469285965, 0.03955989331007004, -0.1471870243549347, 0.0793379545211792, -0.02052951231598854, 0.06595265865325928, 0.184756800532341, 0.013821203261613846, -0.03442222997546196, -0.11041352897882462, -0.1266344040632248, 0.011027551256120205, 0.03951757401227951, 0.24785853922367096, -0.019400112330913544, -0.031180670484900475, 0.029481394216418266, 0.06698524206876755, -0.012677992694079876, -0.04208835959434509, -0.1328088790178299, 0.01798100210726261, 0.1641327291727066, 0.050455253571271896, 0.04863768070936203, -0.04499281197786331, -0.08105091005563736, -0.09585287421941757, -0.06401263922452927, 0.18426811695098877, 0.015575319528579712, 0.005506870336830616, -0.026999114081263542, 0.11034109443426132, 0.16997554898262024, -0.19274725019931793, 0.23673734068870544, -0.043743520975112915, 0.03900875896215439, 0.0555453859269619, 0.019893743097782135, 0.03551951050758362, 0.04153072461485863, 0.04580845311284065, -0.14679184556007385, 0.033630676567554474, -0.03101489134132862, -0.12858310341835022, -0.3182612359523773, 0.010307828895747662, -0.10120590776205063, 0.10470011085271835, 0.03830607607960701, 0.06499164551496506, 0.18822965025901794, -0.03376687318086624, -0.07452350854873657, 0.08163180947303772, -0.02132337912917137, -0.015272840857505798, 0.024131035432219505, 0.08596940338611603, -0.01405655313283205, 0.021396227180957794, 0.04653078317642212, -0.029673254117369652, -0.08912093937397003, -0.007760163862258196, -0.021187804639339447, -0.25581851601600647, 0.04907362535595894, -0.11340159922838211, 0.041667837649583817, -0.07664427906274796, -0.09901370108127594, -0.012090226635336876, 0.159139022231102, -0.028006969019770622, -0.1285792738199234, -0.128913015127182, -0.08982323855161667, -0.03832229599356651, -0.06164707615971565, 0.10187460482120514, 0.17767491936683655, -0.08972034603357315, -0.09637739509344101, -2.3508145815438595e-32, -0.09216935187578201, 0.10737895220518112, -0.03262067586183548, 0.23358556628227234, -0.08706032484769821, -0.06210524961352348, -0.054516009986400604, -0.08612453192472458, 0.03656499832868576, -0.03548275679349899, -0.11406565457582474, 0.07395149767398834, 0.040352389216423035, -0.01753458008170128, -0.14543195068836212, -0.07901117950677872, 0.0785113051533699, 0.10050056129693985, -0.07259664684534073, -0.03528750687837601, 0.15177099406719208, -0.06721778959035873, 0.06456258893013, -0.05773602053523064, -0.14478833973407745, -0.006296512670814991, -0.07886172831058502, 0.09844206273555756, 0.01621386781334877, -0.1395491063594818, 0.09318291395902634, 0.0076052723452448845, -0.06632895767688751, -0.08628381043672562, -0.05216336250305176, 0.19041956961154938, -0.29723554849624634, 0.11277814954519272, -0.25949403643608093, 0.21093688905239105, 0.11314363777637482, 0.15033560991287231, 0.2486918568611145, -0.12969756126403809, 0.06598308682441711, -0.13985711336135864, 0.01779908500611782, -0.02038976550102234, 0.12751294672489166, 0.047470394521951675, -0.3060959577560425, -0.07187768816947937, -0.06884445250034332, -0.06541036814451218, 0.17510251700878143, 0.03452112525701523, -0.003921803552657366, -0.03876572474837303, -0.15580634772777557, -0.005490948911756277, 0.17088037729263306, 0.014455508440732956, 0.07030311971902847, 0.12083883583545685, 0.1357671320438385, -0.02415495552122593, 0.14147844910621643, -0.049743879586458206, 0.04786597937345505, 0.03277302160859108, 0.061479873955249786, 0.18416085839271545, 0.15996350347995758, 0.08559425920248032, -0.12776033580303192, -0.0744599774479866, 0.12167784571647644, 0.19001226127147675, -0.11640419065952301, -0.07876693457365036, -0.2442186176776886, 0.041623398661613464, 0.10391762852668762, 0.0005217226571403444, 0.0880431979894638, 0.04645201563835144, -0.0024905477184802294, 0.24441060423851013, -0.06915077567100525, 0.07873612642288208, -0.18501177430152893, 0.2846502363681793, -0.0811920315027237, -0.08247782289981842, 0.07396296411752701, 0.1134696751832962, -0.11775287985801697, 0.1372273713350296, -0.03343826159834862, -0.2039547860622406, 0.07116801291704178, -0.1755325198173523, 0.24106454849243164, 0.25688010454177856, 0.1485498696565628, 0.017178405076265335, 0.19669002294540405, 0.11205831170082092, -0.2600550055503845, 0.07032011449337006, 0.042746998369693756, -0.0871826633810997, 0.061564430594444275, -0.12903155386447906, -0.043426066637039185, -0.020040612667798996, 0.03572120890021324, 0.012541037984192371, -0.04468376934528351, 0.08203110098838806, -0.18730369210243225, 0.04903659224510193, 0.006548866163939238, -0.08266112953424454, -0.18470817804336548, -0.085333913564682, 0.052658721804618835, -0.02433079108595848, 0.19312167167663574, -0.15017001330852509, -0.029243644326925278, -0.16081230342388153, 7.28002362393454e-7, -0.13106383383274078, 0.15589654445648193, 0.06408127397298813, -0.20048975944519043, -0.15327292680740356, 0.22041983902454376, -0.18974733352661133, -0.01925394870340824, 0.20734059810638428, 0.12021094560623169, 0.03162822872400284, -0.18672482669353485, -0.05748752877116203, -0.00277037569321692, -0.055042512714862823, -0.21324709057807922, -0.004350144416093826, -0.10415125638246536, -0.02704698219895363, 0.07822315394878387, 0.08578092604875565, 0.19487008452415466, 0.007678816094994545, -0.03154781088232994, -0.027498558163642883, 0.0033589641097933054, -0.030965808779001236, 0.06517022103071213, 0.24076901376247406, 0.043996963649988174, 0.023610644042491913, -0.1177627444267273, 0.05738922953605652, 0.11108534038066864, -0.15968100726604462, 0.11844799667596817, 0.01563556119799614, 0.034047931432724, -0.017011025920510292, 0.12415396422147751, 0.05518891289830208, -0.037237197160720825, -0.13379918038845062, -0.16816990077495575, 0.002905298722907901, -0.19618114829063416, -0.09197783470153809, 0.1122744232416153, -0.35476773977279663, 0.14852184057235718, -0.07548775523900986, 0.013013930059969425, 0.1191152036190033, 0.10380304604768753, 0.02162558026611805, 0.07917335629463196, -0.012086308561265469, 0.01869482733309269, -0.00818941742181778, -0.12575982511043549, -0.052118588238954544, 0.047678038477897644, 0.030252862721681595, 0.03818473219871521, -0.01886056177318096, 0.019552698358893394, -0.07278349250555038, 3.5091123683685785e-34, -0.06247513368725777, 0.16534769535064697, -0.00420165853574872, -0.12751366198062897, -0.03252733498811722, -0.08322146534919739, 0.20157025754451752, 0.07306958734989166, -0.0874042958021164, -0.14690355956554413, -0.11148616671562195 ]
https://github.com/huggingface/datasets/issues/2596
Transformer Class on dataset
Ok, sure. Thanks for pointing on functional part. My question is more “Philosophical”/Design perspective. There are 2 perspetive: Add transformation methods to Dataset Class OR Create a Transformer Class which operates on Dataset Class. T(Dataset) —> Dataset datasetnew = MyTransform.transform(dataset) datasetNew.save(path) What would be the difficulty of implementing a Transformer Class operating at dataset level ? thanks > On Jul 6, 2021, at 22:00, Quentin Lhoest ***@***.***> wrote: > >  > There are already a few transformations that you can apply on a dataset using methods like dataset.map(). > You can find examples in the documentation here: > https://huggingface.co/docs/datasets/processing.html > > You can merge two datasets with concatenate_datasets() or do label extraction with dataset.map() for example > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or unsubscribe.
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
142
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). Ok, sure. Thanks for pointing on functional part. My question is more “Philosophical”/Design perspective. There are 2 perspetive: Add transformation methods to Dataset Class OR Create a Transformer Class which operates on Dataset Class. T(Dataset) —> Dataset datasetnew = MyTransform.transform(dataset) datasetNew.save(path) What would be the difficulty of implementing a Transformer Class operating at dataset level ? thanks > On Jul 6, 2021, at 22:00, Quentin Lhoest ***@***.***> wrote: > >  > There are already a few transformations that you can apply on a dataset using methods like dataset.map(). > You can find examples in the documentation here: > https://huggingface.co/docs/datasets/processing.html > > You can merge two datasets with concatenate_datasets() or do label extraction with dataset.map() for example > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or unsubscribe.
[ -0.019728001207113266, 0.14626877009868622, 0.03059142269194126, 0.017211591824889183, 0.06748208403587341, 0.005427933763712645, 0.21787911653518677, -0.054873622953891754, -0.04748959839344025, 0.006086182780563831, -0.025284001603722572, 0.07262006402015686, 0.1081300675868988, 0.05565066263079643, 0.009913329035043716, -0.24973373115062714, -0.2105044722557068, -0.08321088552474976, -0.2285470962524414, 0.09261693060398102, -0.09212230145931244, -0.1207362562417984, 0.21083229780197144, 0.0831446573138237, -0.10880560427904129, 0.02612455002963543, -0.08118495345115662, 0.05451447516679764, 0.10779370367527008, 0.0977480486035347, 0.02674352191388607, 0.14443910121917725, 0.03345553204417229, 0.20172667503356934, 0.0000055801474445615895, 0.09915681928396225, -0.0559624619781971, 0.030435986816883087, 0.03090083785355091, -0.2335258573293686, -0.008068394847214222, -0.18377521634101868, 0.04357949644327164, -0.0454256497323513, -0.17173096537590027, -0.004458799958229065, 0.14228668808937073, 0.055307917296886444, 0.28284376859664917, 0.056342776864767075, -0.14356786012649536, -0.039428964257240295, 0.07862330228090286, -0.06988798826932907, 0.07629243284463882, 0.11017107963562012, -0.043996017426252365, 0.07030191272497177, -0.12964050471782684, 0.02929268218576908, -0.07991845905780792, 0.06027385592460632, 0.0057217120192945, -0.10497131198644638, 0.059393033385276794, -0.03622279316186905, -0.17096006870269775, -0.17970380187034607, -0.01403762400150299, 0.07476687431335449, 0.05995835363864899, -0.033803943544626236, -0.1639353185892105, 0.09098993986845016, 0.1053798720240593, 0.16424477100372314, -0.11234238743782043, -0.01274924073368311, 0.044339779764413834, 0.13398964703083038, -0.06801556795835495, 0.09819450229406357, -0.09311073273420334, -0.05159195140004158, -0.34774258732795715, -0.008487827144563198, -0.18145878612995148, -0.03956606239080429, -0.10820318758487701, -0.03108168952167034, 0.10077855736017227, 0.08143532276153564, -0.04792286455631256, -0.02078096568584442, -0.022313915193080902, -0.10730371624231339, -0.10287723690271378, 0.06305580586194992, -0.09906430542469025, -0.07757437229156494, -0.06062385067343712, 0.05686485022306442, -0.010430746711790562, 0.08241748064756393, -0.05954139679670334, 0.012128354050219059, -0.18505339324474335, 0.002664540195837617, 0.012432724237442017, -0.14369364082813263, -0.05050000920891762, 0.11366052180528641, -0.04144800826907158, -0.04501873627305031, 0.06259330362081528, 0.029433591291308403, 0.08113926649093628, 0.1413726508617401, 0.04044268652796745, -0.05052798241376877, 0.16844381392002106, -0.031455155462026596, -0.047810763120651245, 0.03226931393146515, 0.13308152556419373, 0.07309097051620483, 0.07239096611738205, 0.027461962774395943, 0.11459015309810638, -0.018118098378181458, 0.02105645462870598, -0.01770036108791828, 0.17478230595588684, -0.11898603290319443, 0.12484912574291229, -0.05374077707529068, -0.08872143179178238, -0.11996296793222427, -0.10920964181423187, 0.1265762448310852, 0.06546463817358017, 0.030856046825647354, -0.004145127255469561, -0.07438942044973373, 0.051731523126363754, 0.015024945139884949, -0.012005945667624474, 0.10289990901947021, -0.03184691071510315, 0.001182172796688974, -0.050545834004879, 0.10013783723115921, 0.05535220354795456, 0.12103315442800522, -0.08243623375892639, 0.11833549290895462, 0.04589967802166939, 0.0336109958589077, -0.0734027624130249, -0.06073792278766632, -0.007339025381952524, -0.09951896220445633, -0.04278663173317909, -0.014416459947824478, -0.0917745977640152, 0.015363670885562897, -0.018568772822618484, 0.23536522686481476, -0.05230741202831268, -0.11944767087697983, -0.08828635513782501, 0.09998272359371185, 0.015600680373609066, 0.06806159764528275, -0.013357128016650677, 0.08829789608716965, 0.09874048084020615, 0.04492007941007614, -0.2036435306072235, 0.042593758553266525, -0.07494791597127914, -0.014449615962803364, 0.00039288235711865127, 0.1534654051065445, 0.1410159170627594, -0.10039766877889633, -0.20323611795902252, 0.05599847808480263, -0.04186515137553215, -0.07549399882555008, -0.0011705474462360144, -0.009418400935828686, 0.1858108639717102, 0.020806876942515373, -0.012965883128345013, 0.1827840805053711, -0.06340031325817108, 0.21474811434745789, -0.17734497785568237, -0.28678256273269653, -0.12557974457740784, -0.021784313023090363, -0.18757617473602295, -0.08398687839508057, -0.03617481142282486, -0.1383456438779831, -0.2249373495578766, -0.1731383055448532, 0.1362328678369522, -0.12502841651439667, 0.022854870185256004, 0.05763055756688118, -0.1037156954407692, -0.04373287037014961, -0.20176443457603455, 0.1721326857805252, -0.09210341423749924, -0.09838259965181351, 0.08368593454360962, -0.00631012162193656, 0.055882569402456284, -0.019697831943631172, 0.0161624476313591, 0.07937637716531754, -0.0008854363695718348, -0.04446129500865936, 0.2508833110332489, 0.08106642216444016, 0.02184055745601654, -0.08461885154247284, 0.04175214096903801, -0.15567456185817719, 0.14290019869804382, 0.04134222865104675, -0.15545624494552612, 0.12927915155887604, 0.040991704910993576, -0.05111329257488251, -0.025861071422696114, -0.05359036102890968, -0.04257139191031456, 0.02030998282134533, -0.0637916848063469, -0.10999414324760437, -0.15724323689937592, 0.05251547694206238, -0.12154331058263779, 0.1765350103378296, 0.039688222110271454, -0.14138108491897583, 0.17445144057273865, -0.0428382009267807, -0.12479105591773987, 0.0016462650382891297, -0.0992417261004448, -0.052597776055336, 0.19704072177410126, 0.05193443223834038, 0.014101013541221619, -0.15185190737247467, 0.10003379732370377, -0.011972255073487759, 0.0255662240087986, 0.08722727745771408, 0.13653749227523804, 0.03431167080998421, -0.26235443353652954, 0.17884720861911774, 0.008317834697663784, 0.04328105226159096, 0.06331156939268112, 0.08184375613927841, 0.1876332014799118, 0.03294520080089569, 0.1448834389448166, -0.14240625500679016, 0.0668133944272995, -0.0692458227276802, -0.13717351853847504, 0.06110155209898949, -0.1026623547077179, 0.04728073254227638, 0.07114069908857346, -0.04182795435190201, 0.1037566140294075, 0.11642316728830338, 0.023471618071198463, -0.03244752809405327, -0.056966446340084076, 0.05150739848613739, 0.05489443615078926, -0.05381661280989647, 0.010892465710639954, -0.14578668773174286, 0.029418732970952988, 0.03460453078150749, 0.11477870494127274, 0.07307709753513336, -0.08325257152318954, 0.042573604732751846, -0.0644262433052063, 0.0348130501806736, 0.05437178537249565, -0.054604385048151016, -0.1324019730091095, -0.005005727522075176, 0.1205255538225174, 0.07467951625585556, -0.047924626618623734, -0.16327431797981262, -0.07617374509572983, -0.06309666484594345, 0.004604840651154518, 0.03437722474336624, 0.07412643730640411, 0.13852618634700775, 0.02616678923368454, 0.029608825221657753, 0.028094792738556862, 0.058955006301403046, 0.09173144400119781, 0.06023254990577698, 0.11055666208267212, -0.07906331866979599, -0.03913316875696182, 0.05487046390771866, -0.05871811881661415, -0.01667296700179577, 0.04702337086200714, -0.06557711213827133, -0.1313273161649704, 0.10290028154850006, 0.03553762286901474, -0.016121165826916695, 0.13849565386772156, 0.015140274539589882, -0.07490614056587219, 0.06092314049601555, 0.10450747609138489, 0.011476078070700169, -0.06980714946985245, -0.03333202749490738, -0.08635120093822479, 0.08911560475826263, 0.26075229048728943, -0.11325395852327347, 0.057442471385002136, -0.15629076957702637, -0.03379296883940697, 0.1194630041718483, 0.133469358086586, 0.2593074440956116, -0.0549129992723465, -0.13427448272705078, 0.1254628747701645, 0.04607250168919563, -0.2076244354248047, 0.14475946128368378, -0.16500605642795563, 0.2732439935207367, -0.02320832945406437, 0.06448457390069962, 0.06838088482618332, -0.18249699473381042, -0.01952504739165306, -0.05647439882159233, 0.1885245442390442, 0.206228569149971, 0.014619966968894005, -0.19905607402324677, 0.0027792637702077627, -0.1440395712852478, -0.04590823873877525, 0.08586511760950089, -0.09998546540737152, 0.15905041992664337, 0.004111951217055321, -0.21000219881534576, -0.0335145965218544, 0.08109527826309204, 0.07866643369197845, -0.24988512694835663, -0.05309859663248062, -0.06798666715621948, 0.136443629860878, -0.08719787001609802, 0.06890322268009186, 0.22539715468883514, 0.144721120595932, 0.12799951434135437, -0.017727088183164597, -0.04615851119160652, 0.08728812634944916, 0.06527478247880936, -0.06332907825708389, -0.17899437248706818, -0.014447838068008423, 0.017507724463939667, -0.005329826846718788, -0.15261614322662354, 0.06981148570775986, 0.006754168309271336, -0.028812527656555176, -0.09114597737789154, 0.05446756258606911, -0.25172558426856995, 0.06965828686952591, 0.14917480945587158, 0.011091048829257488, -0.11516065150499344, 0.01863587275147438, 0.22643199563026428, -0.014503645710647106, -0.054408445954322815, -0.007006067782640457, 0.11434302479028702, -0.06743491441011429, 0.013796535320580006, 0.009729552082717419, -0.10958441346883774, -0.03189323842525482, -0.15157164633274078, 0.3683181703090668, 0.0549083948135376, 0.04189857840538025, 0.07487411051988602, -0.16268345713615417, 0.1585230827331543, -0.004319651983678341, 0.009309674613177776, 0.11236158013343811, 0.13157500326633453, 0.046773239970207214, 0.10927171260118484, 0.19812865555286407, -0.14315073192119598, 0.0784505158662796, -0.1333794891834259, -0.07729513943195343, -0.04816219210624695, 0.15030136704444885, 0.04276954010128975, 0.2917884588241577, -0.08485609292984009, -0.1464424878358841, -0.010242685675621033, -0.07164307683706284, -0.0009523176704533398, -0.015058242715895176, -0.026987958699464798, -0.09163204580545425, 0.013990605250000954, -0.13054567575454712, 0.019647227600216866, 0.17004342377185822, 0.04372769966721535, -0.055009808391332626, 0.012451781891286373, -0.12431784719228745, 0.05477096140384674, -0.013752450235188007, 0.009923198260366917, 0.06973468512296677, 0.019686132669448853, 0.1330547332763672, 0.022202076390385628, 0.2868288457393646, -0.03797426447272301, -0.18184980750083923, 0.05761575326323509, -0.10239595919847488, 0.11017508059740067, -0.01693001389503479, 0.04321430251002312, 0.12173683196306229, 0.05595803260803223, -0.04246179759502411, -0.05008704215288162, -0.1065586507320404, 0.045397575944662094, 0.0663764625787735, 0.27937695384025574, -0.004762199707329273, -0.0380135253071785, 0.01764620654284954, 0.11914684623479843, -0.01749711111187935, -0.07759774476289749, -0.18610969185829163, -0.07371406257152557, 0.17806725203990936, 0.12216974049806595, -0.000242639405769296, -0.0393969789147377, -0.13763344287872314, -0.14165493845939636, -0.12843817472457886, 0.24601857364177704, -0.04451654478907585, -0.04312559589743614, 0.03186847269535065, 0.15721070766448975, 0.07966096699237823, -0.15228350460529327, 0.19801650941371918, -0.03960302844643593, -0.012450612150132656, 0.016976874321699142, -0.05872420594096184, -0.003922771196812391, -0.017030850052833557, 0.09992803633213043, -0.18393683433532715, 0.0006237340276129544, 0.022424107417464256, -0.07681301981210709, -0.29414790868759155, -0.08561711013317108, -0.11538317054510117, 0.023268673568964005, 0.030294068157672882, 0.10187063366174698, 0.2538658380508423, 0.02774190716445446, -0.041502878069877625, 0.06587236374616623, -0.0462178960442543, -0.037486251443624496, -0.00415829848498106, 0.022078175097703934, -0.07584976404905319, -0.06283186376094818, 0.09777835011482239, -0.06309463828802109, -0.06253144890069962, 0.05995117127895355, -0.03315851092338562, -0.2822321057319641, 0.10353343188762665, -0.13073480129241943, -0.02866329997777939, -0.08293965458869934, -0.1046728789806366, -0.0774436965584755, 0.15790292620658875, -0.090598464012146, -0.04326924309134483, -0.12315716594457626, -0.022136719897389412, -0.03678378462791443, -0.07649797946214676, 0.12448714673519135, 0.1905830055475235, -0.07026636600494385, -0.08725804835557938, -2.4050911230147585e-32, -0.08698052912950516, 0.12143341451883316, -0.026192743331193924, 0.2336100935935974, -0.1227453276515007, -0.01582435891032219, -0.027067705988883972, -0.15456555783748627, -0.0003757244849111885, -0.07019374519586563, -0.11937256157398224, 0.0852544754743576, 0.06387214362621307, -0.036452945321798325, -0.16859309375286102, -0.10620778799057007, 0.02130237966775894, 0.05743204802274704, -0.04792994633316994, -0.05824108421802521, 0.2146165817975998, -0.09397280961275101, 0.11742690205574036, -0.09131477028131485, -0.11721030622720718, -0.10460539907217026, -0.10686028748750687, 0.04616738110780716, 0.03050902858376503, -0.187819242477417, 0.1438213437795639, 0.05596069619059563, -0.04629218578338623, -0.11965703219175339, -0.12722432613372803, 0.21147872507572174, -0.18136166036128998, 0.09688176214694977, -0.23404063284397125, 0.2745838761329651, 0.10226092487573624, 0.10080941766500473, 0.23604752123355865, -0.07403238862752914, 0.03420513868331909, -0.16329950094223022, -0.04842418432235718, -0.014442658051848412, 0.1292358934879303, 0.041705284267663956, -0.32094207406044006, -0.07898827642202377, -0.014442198909819126, -0.06508678942918777, 0.19239580631256104, -0.029677940532565117, -0.04389357939362526, -0.06304287165403366, -0.18698035180568695, -0.012946373783051968, 0.18171444535255432, -0.024976279586553574, 0.02421490289270878, 0.06524970382452011, 0.21352368593215942, -0.08896715193986893, 0.17691755294799805, -0.06772343814373016, 0.047761451452970505, 0.05091043561697006, 0.013434309512376785, 0.1307392716407776, 0.12866631150245667, 0.0684855580329895, -0.11531145870685577, -0.10428477078676224, 0.06265363097190857, 0.163633793592453, -0.16964304447174072, -0.13199864327907562, -0.19772513210773468, 0.07661896198987961, 0.09475044906139374, -0.031182315200567245, 0.1114935651421547, 0.01330118253827095, -0.0009994556894525886, 0.2713758945465088, -0.1187383309006691, 0.04135022684931755, -0.23363082110881805, 0.24870061874389648, -0.02438301034271717, -0.08885715901851654, 0.022796353325247765, 0.06281236559152603, -0.12166190147399902, 0.173285111784935, -0.05815282464027405, -0.21851779520511627, 0.013225122354924679, -0.13624709844589233, 0.21006572246551514, 0.2447075992822647, 0.154893159866333, 0.02339443378150463, 0.24501653015613556, 0.18835429847240448, -0.2500515580177307, 0.06863071024417877, -0.004022706765681505, -0.029170678928494453, 0.00395020330324769, -0.1255657821893692, -0.057250626385211945, -0.05833498761057854, 0.03367111459374428, -0.02718445286154747, -0.05828704312443733, 0.06650786846876144, -0.2449992150068283, 0.028674954548478127, 0.022696860134601593, -0.10926315933465958, -0.12447784096002579, -0.043250758200883865, 0.034093208611011505, -0.05995269492268562, 0.20282210409641266, -0.085140660405159, -0.0677977055311203, -0.2195528894662857, 7.253031526488485e-7, -0.07360774278640747, 0.15101757645606995, 0.09185872972011566, -0.1556588113307953, -0.16284425556659698, 0.2189551591873169, -0.19481445848941803, 0.013058112002909184, 0.2323365956544876, 0.1399732381105423, 0.10670465975999832, -0.18142153322696686, 0.004275796469300985, 0.05652328580617905, -0.033499717712402344, -0.2077564150094986, -0.003403661772608757, -0.09748750925064087, 0.03022536262869835, 0.050191350281238556, 0.16370360553264618, 0.11735057830810547, 0.008947029709815979, -0.04578520730137825, -0.010659723542630672, 0.010678390972316265, 0.05092325061559677, 0.027677927166223526, 0.28153881430625916, 0.027444247156381607, -0.0037941576447337866, 0.012748989276587963, 0.1074037030339241, -0.001840299111790955, -0.15800923109054565, 0.05817585065960884, -0.025641635060310364, 0.056274667382240295, 0.0023313811980187893, 0.06195538491010666, 0.052362293004989624, -0.12570439279079437, -0.10258414596319199, -0.15736660361289978, 0.04537385702133179, -0.1704644113779068, -0.11815702170133591, 0.16793759167194366, -0.24149873852729797, 0.18216922879219055, -0.056234851479530334, 0.06658569723367691, 0.14465735852718353, 0.17541028559207916, -0.005236064083874226, 0.10036769509315491, -0.04842904582619667, -0.07868147641420364, -0.01653469167649746, -0.05099136382341385, -0.007724317256361246, 0.08180031180381775, 0.040684498846530914, 0.002228598576039076, 0.006438382901251316, 0.0040617045015096664, -0.13090257346630096, 2.505375190945697e-34, -0.1274910718202591, 0.1662036031484604, 0.03917199745774269, -0.1650843769311905, -0.09912111610174179, -0.06542573869228363, 0.2579662799835205, 0.02680099941790104, -0.07789887487888336, -0.11336123943328857, -0.03452593833208084 ]
https://github.com/huggingface/datasets/issues/2596
Transformer Class on dataset
I can imagine that this would be a useful API to implement processing pipelines as transforms. They could be used to perform higher level transforms compared to the atomic transforms allowed by methods like map, filter, etc. I guess if you find any transform that could be useful for text dataset processing, image dataset processing etc. we could definitely start having such transforms :)
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
64
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). I can imagine that this would be a useful API to implement processing pipelines as transforms. They could be used to perform higher level transforms compared to the atomic transforms allowed by methods like map, filter, etc. I guess if you find any transform that could be useful for text dataset processing, image dataset processing etc. we could definitely start having such transforms :)
[ -0.17283184826374054, 0.23978370428085327, -0.021794619038701057, 0.014975858852267265, 0.04367119446396828, -0.07632746547460556, 0.1871272325515747, -0.01919247955083847, -0.07391271740198135, -0.07980342209339142, 0.030279796570539474, 0.11124734580516815, 0.032584939152002335, 0.11807811260223389, -0.026984285563230515, -0.20545928180217743, -0.21722914278507233, -0.01580987125635147, -0.2402278482913971, 0.05109759047627449, -0.14038285613059998, -0.05298930034041405, 0.15989872813224792, 0.07252267748117447, -0.02285870723426342, 0.06216786801815033, -0.10771410912275314, -0.0007513441378250718, 0.07219190895557404, 0.08103351294994354, 0.14707469940185547, 0.14629362523555756, 0.009020661003887653, 0.14521677792072296, 0.000005589017746387981, -0.004380377940833569, -0.07770052552223206, 0.043641675263643265, 0.01677391678094864, -0.277532696723938, -0.06354328244924545, -0.1714840531349182, 0.05890392139554024, -0.056877437978982925, -0.21890664100646973, 0.002771577797830105, 0.15340356528759003, 0.019510604441165924, 0.2512800097465515, 0.06105402112007141, -0.11950763314962387, -0.12977896630764008, 0.11888720840215683, -0.07352995872497559, 0.06168266758322716, 0.2612801194190979, -0.07513841986656189, 0.05422128364443779, -0.12753617763519287, 0.046632204204797745, -0.09256794303655624, 0.028640827164053917, 0.013918857090175152, -0.08433011919260025, 0.030602646991610527, -0.06167972832918167, -0.16524341702461243, -0.21810778975486755, 0.04133671894669533, 0.07610167562961578, 0.11147505044937134, -0.15913145244121552, -0.20128020644187927, 0.053313247859478, 0.15218442678451538, 0.16999761760234833, -0.1333591490983963, 0.05888011306524277, 0.02488468773663044, 0.0917469784617424, -0.00964115560054779, 0.13301412761211395, -0.029774485155940056, -0.10507208853960037, -0.2966839671134949, 0.010962000116705894, -0.10443618148565292, -0.028036387637257576, -0.16304416954517365, -0.07874556630849838, 0.07723043113946915, 0.1397244781255722, -0.03437686339020729, -0.00018822816491592675, -0.009273928590118885, -0.171103373169899, -0.11962716281414032, 0.011320185847580433, -0.04129677638411522, -0.013352770358324051, 0.0061460998840630054, 0.09009886533021927, 0.004861033521592617, 0.08367639034986496, -0.06637457758188248, 0.025772899389266968, -0.19574815034866333, -0.05098940059542656, 0.0254648607224226, -0.2329641431570053, -0.08082826435565948, 0.10823076218366623, -0.09317600727081299, -0.09020398557186127, -0.0016316543333232403, 0.11907697468996048, 0.09119769930839539, 0.1249547004699707, -0.049958549439907074, -0.11783818155527115, 0.1515590101480484, 0.09458041936159134, -0.0798444151878357, -0.013335980474948883, 0.20547258853912354, 0.127213254570961, 0.133778914809227, -0.030253296718001366, 0.04657287895679474, -0.07208900898694992, 0.04173583537340164, 0.06408749520778656, 0.1364450603723526, -0.10808686912059784, 0.12673181295394897, 0.03291372209787369, -0.1279916912317276, -0.16665561497211456, -0.02667401358485222, 0.042098551988601685, 0.1482846587896347, 0.11253926157951355, 0.003243768587708473, -0.08738300204277039, -0.03420235961675644, -0.005140181630849838, 0.060193534940481186, -0.013594119809567928, -0.046847742050886154, 0.014176486991345882, -0.05535762384533882, 0.19072803854942322, 0.04932684451341629, 0.1226261630654335, -0.09715518355369568, 0.058652106672525406, -0.03226696699857712, -0.012976148165762424, -0.06475271284580231, -0.11869324743747711, 0.032214630395174026, -0.1446981132030487, -0.054019495844841, 0.057022951543331146, -0.12585113942623138, 0.01469320710748434, -0.1363842785358429, 0.053635455667972565, -0.1411718875169754, -0.08337733149528503, -0.12368546426296234, 0.03786712512373924, 0.038183532655239105, -0.06324998289346695, -0.007599391043186188, 0.14779821038246155, 0.27923256158828735, 0.14775919914245605, -0.10661500692367554, 0.06864167749881744, -0.08028997480869293, -0.05882484093308449, -0.06916794180870056, 0.14326292276382446, 0.16468417644500732, -0.020255649462342262, -0.2997550964355469, 0.2091689258813858, -0.060371823608875275, -0.0825483575463295, 0.09547434747219086, 0.022489670664072037, 0.08063662052154541, 0.02029973641037941, 0.015903471037745476, 0.19435545802116394, -0.04207678511738777, 0.1757957488298416, -0.11774852871894836, -0.27828049659729004, -0.08997223526239395, -0.06025701388716698, -0.15984266996383667, -0.07208973169326782, 0.06004692614078522, -0.21114569902420044, -0.14005714654922485, -0.1404351145029068, 0.09900828450918198, -0.03021158091723919, 0.04513510689139366, 0.046351127326488495, -0.07701376080513, -0.08819594234228134, -0.18616728484630585, 0.16460110247135162, -0.014664771966636181, -0.11388798803091049, 0.058621060103178024, -0.02169804275035858, 0.1126628965139389, 0.08163227885961533, 0.02346547320485115, 0.0490376241505146, -0.03545638173818588, 0.09993509203195572, 0.3594776391983032, 0.021290820091962814, -0.006048272829502821, -0.07267747819423676, -0.04360378906130791, -0.12763860821723938, 0.21602824330329895, -0.04940232262015343, -0.1286255568265915, 0.07673604786396027, 0.11880477517843246, 0.06701727211475372, 0.003457409329712391, -0.08416628837585449, -0.003548696869984269, 0.026240192353725433, -0.06985236704349518, -0.02298937551677227, -0.16599908471107483, 0.07407861948013306, -0.08348368108272552, 0.13542278110980988, 0.055033594369888306, -0.0648592859506607, 0.25934359431266785, -0.08933063596487045, -0.17882996797561646, 0.022191433236002922, -0.09428761154413223, -0.07939863950014114, 0.14300791919231415, -0.0025891601108014584, 0.135124072432518, -0.1340959668159485, 0.010765188373625278, -0.04277348890900612, 0.04101274907588959, 0.09120575338602066, 0.1418188065290451, 0.14416852593421936, -0.2566348612308502, 0.2294996827840805, 0.06723751127719879, 0.045704375952482224, 0.044068578630685806, 0.17726150155067444, 0.2611459195613861, 0.07526282966136932, 0.162113755941391, -0.23170891404151917, 0.05004720389842987, 0.06240430846810341, -0.1705951690673828, 0.02820940688252449, -0.22796796262264252, -0.02496551349759102, 0.08660884946584702, -0.09695563465356827, 0.024389542639255524, 0.14464804530143738, -0.051239319145679474, -0.029172006994485855, -0.061646346002817154, 0.08006934821605682, 0.14152148365974426, 0.023551655933260918, 0.012111416086554527, -0.11418089270591736, -0.002283297711983323, 0.01842932589352131, -0.02732820436358452, 0.1301635503768921, -0.06592211872339249, 0.007404616102576256, -0.1308320164680481, 0.029569661244750023, 0.059159357100725174, -0.03645971044898033, -0.1232956051826477, -0.0033871657215058804, 0.07564021646976471, 0.10352686047554016, -0.04730992764234543, -0.17174048721790314, -0.10495539009571075, -0.07968876510858536, 0.04423978179693222, -0.012540782801806927, 0.0548417754471302, 0.0912269875407219, -0.021076027303934097, 0.05569861829280853, -0.015826761722564697, 0.029710782691836357, 0.07250414043664932, -0.03130991384387016, 0.10623952001333237, -0.09895536303520203, -0.04461149498820305, 0.13581283390522003, -0.15249551832675934, -0.0462699793279171, -0.015769189223647118, -0.008789223618805408, -0.11286336928606033, -0.014474732801318169, 0.114223413169384, -0.056755755096673965, 0.08474316447973251, -0.12076812982559204, -0.10680785030126572, 0.18962934613227844, 0.12447699904441833, -0.06788268685340881, 0.011584065854549408, -0.010959196835756302, -0.08571139723062515, 0.07557113468647003, 0.26654478907585144, -0.0525515191257, 0.14044378697872162, -0.17509646713733673, -0.1701270490884781, 0.052296753972768784, -0.056252527981996536, 0.36393997073173523, 0.00383213278837502, -0.172176331281662, 0.040390681475400925, 0.12049669772386551, -0.17221851646900177, 0.18011218309402466, -0.1514936238527298, 0.139402836561203, 0.0024193383287638426, 0.056148771196603775, -0.08568915724754333, -0.2716682553291321, -0.10768656432628632, -0.131918802857399, 0.18246473371982574, 0.1739315688610077, 0.1379745453596115, -0.17485985159873962, 0.0160561241209507, -0.04823678359389305, -0.07703883945941925, 0.06410949677228928, -0.09817195683717728, 0.016414621844887733, 0.03140759840607643, -0.2068723440170288, -0.008783537894487381, 0.10287683457136154, 0.08795011043548584, -0.2278939187526703, -0.06357623636722565, -0.10105958580970764, 0.12794287502765656, -0.061678919941186905, 0.1126830130815506, 0.1906248927116394, 0.09093903750181198, 0.02465597167611122, -0.044529758393764496, 0.01631706953048706, -0.02804463729262352, 0.11173080652952194, -0.03566037863492966, -0.21757587790489197, -0.10575481504201889, -0.03821389004588127, 0.011460295878350735, -0.13118687272071838, -0.014939242042601109, 0.0073437015525996685, -0.07121433317661285, -0.1094074547290802, 0.06829420477151871, -0.23198293149471283, 0.03317547217011452, 0.06964560598134995, 0.010012343525886536, -0.12634821236133575, -0.04332587495446205, 0.11888283491134644, -0.047303177416324615, 0.00039383445982821286, 0.013367589563131332, 0.06540892273187637, -0.0780600756406784, 0.03455721586942673, 0.13831530511379242, -0.15999649465084076, -0.04703285172581673, -0.12863720953464508, 0.34679311513900757, 0.047782786190509796, 0.09284119307994843, -0.03546605631709099, -0.2184554785490036, 0.09347821027040482, 0.03509536758065224, -0.01430363766849041, 0.14089566469192505, 0.18714416027069092, -0.014070007018744946, 0.0017405117396265268, 0.18103544414043427, -0.10098383575677872, 0.08001278340816498, -0.09436262398958206, -0.049292538315057755, -0.03095797821879387, 0.1677304357290268, 0.04122806340456009, 0.23938749730587006, -0.04704126715660095, -0.20380465686321259, -0.019292546436190605, -0.10241133719682693, -0.13312458992004395, 0.03465857356786728, -0.011598410084843636, -0.031022043898701668, -0.0016195883508771658, -0.12393733859062195, 0.06871405243873596, 0.16710849106311798, 0.08759959787130356, 0.05960618704557419, -0.06950990110635757, -0.11001410335302353, 0.11285357177257538, 0.17171160876750946, 0.015356861054897308, 0.011158603243529797, 0.02426045946776867, 0.07973837107419968, 0.05793389305472374, 0.30158525705337524, -0.14022403955459595, -0.1363690346479416, 0.03256905451416969, -0.20436735451221466, 0.04766491428017616, -0.010431690141558647, 0.1295849233865738, 0.15457890927791595, -0.017803460359573364, 0.007974235340952873, -0.08360081911087036, -0.1510159969329834, 0.04915786162018776, -0.029881125316023827, 0.1736655831336975, 0.035636432468891144, 0.08897486329078674, 0.06976750493049622, 0.06304190307855606, -0.0687742680311203, -0.03467726707458496, -0.1349259912967682, 0.00020513881463557482, 0.19745856523513794, 0.017782019451260567, 0.055455245077610016, -0.03386042267084122, -0.07265639305114746, -0.16240814328193665, -0.08114554733037949, 0.1819315403699875, -0.021461520344018936, -0.031047828495502472, -0.025086835026741028, 0.10303846001625061, 0.1868109405040741, -0.1957436352968216, 0.17002366483211517, -0.027202511206269264, 0.01973147504031658, 0.07757095247507095, 0.035085055977106094, 0.07781930267810822, 0.04636254534125328, 0.0896751806139946, -0.15021291375160217, 0.026432592421770096, -0.003198007121682167, -0.09403205662965775, -0.25067266821861267, -0.033069971948862076, -0.06323494017124176, 0.05420222133398056, 0.03145722299814224, 0.11879828572273254, 0.13484139740467072, -0.02114272676408291, -0.007777751889079809, 0.013437102548778057, -0.06358113139867783, 0.01616845093667507, -0.011946277692914009, 0.1490357369184494, -0.0703502669930458, 0.04297177866101265, 0.04819031432271004, -0.006564931944012642, -0.10593278706073761, 0.025042524561285973, -0.047474589198827744, -0.1580800563097, 0.054674211889505386, -0.10158417373895645, -0.00933899823576212, -0.06660380959510803, -0.14142239093780518, -0.03227845951914787, 0.1838068813085556, -0.12352702021598816, -0.16717888414859772, -0.09630721807479858, -0.038409266620874405, -0.10574038326740265, -0.04937223717570305, 0.01626354083418846, 0.10901791602373123, -0.04976179078221321, -0.15383277833461761, -2.2450829789176226e-32, -0.06203915923833847, 0.06798959523439407, -0.047280337661504745, 0.19593609869480133, -0.034034665673971176, -0.1334841251373291, 0.012324709445238113, -0.11857913434505463, 0.027458714321255684, -0.050603292882442474, -0.10595817118883133, 0.09837578982114792, 0.04781748726963997, 0.03383259102702141, -0.047986384481191635, -0.014483276754617691, 0.12918326258659363, 0.03213442862033844, -0.06792093068361282, -0.01802620105445385, 0.1479719877243042, -0.10335449129343033, 0.07391474395990372, 0.02921033278107643, -0.1720958650112152, -0.016972417011857033, -0.06059809401631355, 0.10023979842662811, 0.03434541076421738, -0.13077107071876526, 0.11154628545045853, 0.02233070693910122, -0.0216610599309206, -0.13033565878868103, -0.10033538192510605, 0.1778903305530548, -0.2875780165195465, 0.13791842758655548, -0.23149821162223816, 0.14519457519054413, 0.10904835909605026, 0.12720325589179993, 0.2785050570964813, -0.11203498393297195, 0.05892781913280487, -0.11441446095705032, -0.03925218805670738, 0.017514657229185104, 0.11531335860490799, 0.03812569007277489, -0.20351320505142212, -0.05947878584265709, -0.12485916167497635, -0.059806469827890396, 0.1657860279083252, 0.10584411770105362, -0.008725532330572605, -0.07469268143177032, -0.20227362215518951, -0.012610292993485928, 0.22246405482292175, 0.03677157312631607, 0.030360527336597443, 0.05557979643344879, 0.09627164155244827, -0.06188026815652847, 0.18060897290706635, -0.059115178883075714, 0.09148906916379929, 0.10419564694166183, 0.07842104136943817, 0.16487549245357513, 0.15781742334365845, 0.06907960772514343, -0.13021422922611237, -0.045529160648584366, 0.17173723876476288, 0.1978309005498886, -0.2084314078092575, 0.000005672657607647125, -0.15921996533870697, -0.0007854911964386702, 0.12066219747066498, 0.0007897093892097473, 0.08516041934490204, -0.022402679547667503, 0.024604881182312965, 0.21363849937915802, -0.04922223091125488, -0.018381599336862564, -0.11236410588026047, 0.2882029116153717, -0.04450005292892456, -0.12344834953546524, 0.11191287636756897, 0.12016518414020538, -0.10855187475681305, 0.11453957855701447, -0.06942610442638397, -0.22868335247039795, 0.03430282324552536, -0.129303976893425, 0.19891610741615295, 0.23053734004497528, 0.1305883824825287, 0.0538085475564003, 0.15077924728393555, 0.08892959356307983, -0.2900731861591339, 0.06868912279605865, 0.008360255509614944, 0.00038886890979483724, 0.027478795498609543, -0.0799492672085762, -0.011475993320345879, 0.0034134183079004288, 0.04903608188033104, 0.015759838744997978, -0.07155753672122955, 0.09417910873889923, -0.15737882256507874, 0.1314798891544342, 0.07874500751495361, -0.06842124462127686, -0.10556934773921967, -0.06747660040855408, 0.03686569631099701, -0.04116379842162132, 0.20374806225299835, -0.15745513141155243, -0.04325248673558235, -0.09120440483093262, 7.354242370638531e-7, -0.15371869504451752, 0.13745728135108948, 0.023484840989112854, -0.09796278178691864, -0.12390455603599548, 0.20661939680576324, -0.08818268030881882, -0.014734311029314995, 0.11929606646299362, 0.09213465452194214, 0.1014554351568222, -0.22083531320095062, -0.011625546962022781, 0.014812556095421314, -0.05773444473743439, -0.18251484632492065, -0.028059566393494606, -0.06348633766174316, 0.004534860607236624, 0.053610965609550476, 0.15289781987667084, 0.19618505239486694, 0.01326813641935587, -0.05001209303736687, -0.07294972240924835, -0.024749325588345528, -0.008086555637419224, 0.04290548339486122, 0.15997247397899628, 0.0595671720802784, 0.0726144090294838, -0.08425876498222351, 0.06955309212207794, 0.07513539493083954, -0.14720958471298218, 0.13349632918834686, -0.05181927978992462, 0.004555596970021725, -0.02710389904677868, 0.10135212540626526, 0.027929341420531273, -0.08262904733419418, -0.1461930274963379, -0.12896060943603516, 0.03762985020875931, -0.2045246958732605, -0.10327885299921036, 0.11919322609901428, -0.2879036068916321, 0.13389135897159576, -0.12992829084396362, 0.007637460716068745, 0.1368081271648407, 0.11413271725177765, 0.02642405778169632, 0.04484282806515694, 0.01847657933831215, 0.02318495325744152, -0.015828272327780724, -0.06480749696493149, -0.034700825810432434, 0.06967032700777054, 0.11175953596830368, -0.07684612274169922, 0.04083321616053581, 0.0951216071844101, -0.05302123352885246, 3.5211779454425558e-34, -0.01636388897895813, 0.1972520500421524, -0.005825462285429239, -0.11381696909666061, 0.0039007035084068775, -0.11336063593626022, 0.14277774095535278, 0.05292951688170433, -0.06005377694964409, -0.17148253321647644, -0.09780548512935638 ]
https://github.com/huggingface/datasets/issues/2596
Transformer Class on dataset
Thanks for reply. What would be the constraints to have Dataset —> Dataset consistency ? Main issue would be larger than memory dataset and serialization on disk. Technically, one still process at atomic level and try to wrap the full results into Dataset…. (!) What would you think ? > On Jul 7, 2021, at 16:51, Quentin Lhoest ***@***.***> wrote: > >  > I can imagine that this would be a useful API to implement processing pipelines as transforms. They could be used to perform higher level transforms compared to the atomic transforms allowed by methods like map, filter, etc. > > I guess if you find any transform that could be useful for text dataset processing, image dataset processing etc. we could definitely start having such transforms :) > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or unsubscribe.
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
155
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). Thanks for reply. What would be the constraints to have Dataset —> Dataset consistency ? Main issue would be larger than memory dataset and serialization on disk. Technically, one still process at atomic level and try to wrap the full results into Dataset…. (!) What would you think ? > On Jul 7, 2021, at 16:51, Quentin Lhoest ***@***.***> wrote: > >  > I can imagine that this would be a useful API to implement processing pipelines as transforms. They could be used to perform higher level transforms compared to the atomic transforms allowed by methods like map, filter, etc. > > I guess if you find any transform that could be useful for text dataset processing, image dataset processing etc. we could definitely start having such transforms :) > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or unsubscribe.
[ -0.12358950078487396, 0.2862357497215271, 0.002407378051429987, 0.0023493266198784113, 0.04477120190858841, -0.06799906492233276, 0.1641595959663391, -0.0310763418674469, -0.103423573076725, -0.024881742894649506, 0.008637364953756332, 0.07667427510023117, 0.07061469554901123, 0.12513990700244904, -0.04589980095624924, -0.21817807853221893, -0.14217086136341095, 0.010444303043186665, -0.2449067384004593, 0.03785347938537598, -0.1178911030292511, -0.08944007754325867, 0.19739940762519836, 0.025527041405439377, -0.044576436281204224, 0.0390954352915287, -0.13363228738307953, 0.03093554452061653, 0.017748761922121048, 0.08713741600513458, 0.06996441632509232, 0.12495972961187363, 0.01591029204428196, 0.13306988775730133, 0.000005609544587059645, 0.005503166001290083, -0.08426658064126968, 0.01800698973238468, -0.017433039844036102, -0.26724788546562195, -0.04389777034521103, -0.19089201092720032, 0.01602054014801979, -0.08164329081773758, -0.16402268409729004, -0.003090428188443184, 0.11437973380088806, 0.023802408948540688, 0.2912796437740326, 0.029369516298174858, -0.14556708931922913, -0.10375690460205078, 0.14938029646873474, -0.09401870518922806, 0.0507829524576664, 0.22599099576473236, -0.0646093413233757, 0.10329288989305496, -0.10935910046100616, 0.06558898836374283, -0.09227827191352844, 0.03432298079133034, 0.050186268985271454, -0.08517900109291077, -0.019231397658586502, -0.04186359420418739, -0.16860365867614746, -0.22767947614192963, 0.079070083796978, 0.06472018361091614, 0.1647852212190628, -0.1246551051735878, -0.21283605694770813, 0.05897602438926697, 0.07417438924312592, 0.13823366165161133, -0.12571807205677032, 0.08500849455595016, -0.006876654922962189, 0.1405739039182663, -0.028043685480952263, 0.18686126172542572, 0.014187946915626526, -0.10228680819272995, -0.3145306706428528, -0.005054057110100985, -0.09689930081367493, -0.01783640868961811, -0.16868610680103302, -0.01835615374147892, 0.06693524867296219, 0.12642337381839752, -0.04128406569361687, -0.022785084322094917, -0.032621514052152634, -0.16261452436447144, -0.1289997100830078, 0.015757909044623375, -0.012617706321179867, -0.03407837450504303, -0.005665102042257786, 0.06985309720039368, -0.013177676126360893, 0.08062789589166641, -0.021533647552132607, 0.025319518521428108, -0.22104637324810028, -0.04006859287619591, 0.03663856163620949, -0.20988857746124268, -0.07007338106632233, 0.10798532515764236, -0.10643438249826431, -0.04806927219033241, 0.03728862106800079, 0.11071588099002838, 0.09219210594892502, 0.14737997949123383, -0.014204858802258968, -0.02401072531938553, 0.11296279728412628, 0.037348031997680664, -0.09977442026138306, 0.007920285686850548, 0.18689179420471191, 0.11233527958393097, 0.08494627475738525, 0.005237889941781759, 0.09259483963251114, -0.07082762569189072, 0.06478945165872574, 0.01807543821632862, 0.1277068853378296, -0.11548658460378647, 0.1315019428730011, 0.0021852327045053244, -0.11244431138038635, -0.08264979720115662, -0.05978110805153847, 0.06569042801856995, 0.14412295818328857, 0.03955066576600075, -0.03275201842188835, -0.11688387393951416, 0.05898377671837807, 0.03720972687005997, 0.038056425750255585, 0.047842297703027725, -0.06383563578128815, 0.0543086938560009, -0.021698620170354843, 0.18160556256771088, 0.03763685002923012, 0.09133487939834595, -0.08616519719362259, 0.11414968222379684, -0.012242920696735382, -0.04384493827819824, -0.06125742197036743, -0.13083739578723907, 0.058741990476846695, -0.13904887437820435, -0.06180945038795471, 0.01595446467399597, -0.12807303667068481, -0.0161509420722723, -0.1397860050201416, 0.12289263308048248, -0.07929008454084396, -0.08655161410570145, -0.1298619508743286, 0.12995010614395142, 0.02100582793354988, -0.112745501101017, 0.018266260623931885, 0.10037011653184891, 0.17608138918876648, 0.12123511731624603, -0.16652533411979675, 0.09365373104810715, -0.08561846613883972, -0.010753578506410122, -0.06435249000787735, 0.09003376960754395, 0.22921767830848694, -0.004494426306337118, -0.22657965123653412, 0.15655562281608582, -0.0741458311676979, -0.09269751608371735, 0.018858445808291435, 0.03494781628251076, 0.06445824354887009, -0.030820660293102264, 0.009655697271227837, 0.18314488232135773, -0.06191803142428398, 0.19905845820903778, -0.13392016291618347, -0.2653385102748871, -0.04734914004802704, -0.06351998448371887, -0.12688115239143372, -0.0924418643116951, 0.07196810841560364, -0.16620536148548126, -0.14704696834087372, -0.1664305031299591, 0.13438348472118378, -0.029974712058901787, 0.006380861159414053, 0.05080946162343025, -0.04659337177872658, -0.058386191725730896, -0.180502787232399, 0.20421285927295685, -0.08400466293096542, -0.12668675184249878, 0.045197851955890656, 0.02025832049548626, 0.09818428754806519, 0.10052061825990677, 0.013770791701972485, 0.05636049434542656, -0.00363367167301476, 0.10003271698951721, 0.3023383319377899, -0.0017931052716448903, 0.020635521039366722, -0.07586117833852768, -0.042818304151296616, -0.1292213499546051, 0.22223424911499023, -0.026988469064235687, -0.1004689633846283, 0.08767904341220856, 0.037940241396427155, 0.05486433580517769, -0.02225365862250328, -0.05942301079630852, 0.045495256781578064, 0.027519013732671738, -0.0689409002661705, -0.06902428716421127, -0.18804286420345306, 0.06073816865682602, -0.06368771940469742, 0.1710328608751297, 0.0679357722401619, -0.08463817089796066, 0.24827858805656433, -0.058662351220846176, -0.1712348312139511, -0.018932722508907318, -0.08919087797403336, -0.08297383040189743, 0.11142488569021225, 0.019744811579585075, 0.07793805748224258, -0.17077544331550598, 0.0382414385676384, -0.03707047179341316, 0.014421900734305382, 0.07625352591276169, 0.10416039824485779, 0.07939373701810837, -0.25020721554756165, 0.2070993185043335, 0.029044339433312416, 0.06623509526252747, 0.07532458007335663, 0.15851402282714844, 0.27902770042419434, 0.10788838565349579, 0.13777735829353333, -0.1995251476764679, 0.066611647605896, 0.1237780973315239, -0.14411580562591553, 0.04622257128357887, -0.1736733466386795, 0.0006670349393971264, 0.07666043937206268, -0.1251615434885025, 0.043393440544605255, 0.13187240064144135, -0.03208012133836746, -0.005864649545401335, -0.09631956368684769, 0.05012400820851326, 0.10079841315746307, 0.022843075916171074, -0.009532218798995018, -0.08419032394886017, 0.04527006298303604, 0.015240570530295372, -0.05566154047846794, 0.129562109708786, -0.06079571694135666, 0.015001354739069939, -0.11140494048595428, 0.023980392143130302, 0.0530146062374115, -0.08866988867521286, -0.09715976566076279, 0.005158741492778063, 0.08780423551797867, 0.15150897204875946, -0.07159128040075302, -0.13818521797657013, -0.12438482791185379, -0.04663441330194473, 0.08844704180955887, -0.0004770311643369496, 0.04037180915474892, 0.11490818858146667, -0.00008285029616672546, 0.028353027999401093, -0.04083540663123131, -0.018450120463967323, 0.012003561481833458, -0.01950356550514698, 0.11611050367355347, -0.10183978080749512, -0.022612987086176872, 0.1532510370016098, -0.14720167219638824, -0.022798435762524605, -0.01602322608232498, 0.00797194428741932, -0.12613214552402496, -0.01999840885400772, 0.11057902872562408, -0.11105003207921982, 0.1038861945271492, -0.07955563068389893, -0.08872314542531967, 0.15343299508094788, 0.15490347146987915, -0.0294866431504488, 0.011155772022902966, -0.08937303721904755, -0.11483684182167053, 0.11576046794652939, 0.268098384141922, -0.013142891228199005, 0.12305138260126114, -0.15317431092262268, -0.15653830766677856, 0.1000501960515976, -0.017048465088009834, 0.35656633973121643, 0.011943397112190723, -0.18645454943180084, -0.003449171781539917, 0.12380294501781464, -0.18076840043067932, 0.14812353253364563, -0.14463628828525543, 0.13569986820220947, -0.02107843942940235, 0.07146318256855011, -0.00545892771333456, -0.20190571248531342, -0.06526926159858704, -0.08198737353086472, 0.21153511106967926, 0.1453036069869995, 0.06164902448654175, -0.20255650579929352, 0.0453513078391552, -0.09867504239082336, -0.13690224289894104, 0.06315889209508896, -0.1294403076171875, 0.05315611511468887, 0.05917743220925331, -0.1727140098810196, -0.06288468837738037, 0.08860161900520325, 0.08359900861978531, -0.2113029956817627, -0.03813786804676056, -0.10436861962080002, 0.1136929914355278, -0.05510716885328293, 0.10172130912542343, 0.15755222737789154, 0.05153400078415871, 0.030580688267946243, -0.0038950853049755096, -0.038607385009527206, 0.005574019160121679, 0.08463992923498154, -0.07992178946733475, -0.23122085630893707, -0.05072060227394104, 0.01513929758220911, -0.006831511855125427, -0.1590770184993744, 0.0010291878134012222, 0.010202656500041485, -0.0319073311984539, -0.08054506778717041, 0.034137360751628876, -0.23983114957809448, 0.06574705988168716, 0.056736547499895096, -0.018117325380444527, -0.1372031420469284, -0.013634098693728447, 0.14289331436157227, -0.0723317414522171, 0.05060166120529175, -0.03653561323881149, 0.0639447495341301, -0.06468642503023148, -0.000936810567509383, 0.091969795525074, -0.13905800879001617, -0.0555170513689518, -0.20079168677330017, 0.3831442594528198, 0.04783296957612038, 0.0904659628868103, -0.0009070850210264325, -0.18174299597740173, 0.10304933041334152, 0.04427829384803772, -0.02559381164610386, 0.10032699257135391, 0.1368996649980545, 0.008501360192894936, 0.046152740716934204, 0.14289984107017517, -0.03457076475024223, 0.1087891086935997, -0.07839661836624146, 0.01848830096423626, -0.021069658920168877, 0.12232355028390884, -0.01296740211546421, 0.24770396947860718, -0.07356174290180206, -0.21170063316822052, -0.003117983229458332, -0.12104543298482895, -0.1551448553800583, 0.007448455318808556, -0.016871176660060883, -0.08851298689842224, -0.05054112523794174, -0.08863604813814163, 0.0645441859960556, 0.18922679126262665, 0.06520016491413116, 0.03568517416715622, -0.10912679135799408, -0.10396570712327957, 0.11580193042755127, 0.14420247077941895, 0.024888860061764717, 0.061518583446741104, 0.05898495763540268, 0.08617933839559555, 0.01197278592735529, 0.2517029941082001, -0.11775186657905579, -0.13973192870616913, -0.00195867707952857, -0.12933391332626343, 0.05233349651098251, -0.025699583813548088, 0.08279533684253693, 0.13075949251651764, 0.006806197110563517, -0.037223272025585175, -0.06701771914958954, -0.12456768751144409, 0.05421382561326027, 0.04073813185095787, 0.16478405892848969, 0.034006185829639435, 0.1242745965719223, 0.11656739562749863, 0.12990017235279083, -0.04346655309200287, -0.033541757613420486, -0.189881831407547, -0.06588970124721527, 0.18310251832008362, 0.03709081932902336, 0.04130905121564865, -0.055592168122529984, -0.030294135212898254, -0.17485956847667694, -0.09785416722297668, 0.1693451851606369, -0.05658412724733353, -0.02364680916070938, -0.026769978925585747, 0.09306401759386063, 0.10092568397521973, -0.13959698379039764, 0.16941654682159424, 0.01935647428035736, -0.018387870863080025, 0.07160194963216782, 0.03875468298792839, 0.08519715070724487, 0.020346244797110558, 0.10851551592350006, -0.15303729474544525, 0.023493055254220963, -0.04243312403559685, -0.09939195215702057, -0.28051477670669556, -0.05901411175727844, -0.10783688724040985, 0.05907644331455231, 0.06816230714321136, 0.08345699310302734, 0.19340144097805023, -0.0012136957375332713, -0.01261368952691555, 0.004128878936171532, -0.025907397270202637, 0.024197975173592567, 0.03341709077358246, 0.10970155149698257, -0.03434275835752487, -0.039263881742954254, 0.056975770741701126, 0.004861856810748577, -0.0978698804974556, 0.06149983033537865, -0.07999052852392197, -0.16051386296749115, 0.04786663129925728, -0.1624782383441925, -0.027237800881266594, -0.0676233172416687, -0.1031121015548706, 0.0008692379342392087, 0.20957253873348236, -0.11592664569616318, -0.14056314527988434, -0.1190607026219368, 0.02699737437069416, -0.11407586932182312, -0.04021737724542618, 0.01785515807569027, 0.14400261640548706, -0.07064291834831238, -0.12256710976362228, -2.3299120879343314e-32, -0.07293056696653366, 0.08656532317399979, -0.028646176680922508, 0.1688268780708313, -0.11504483968019485, -0.11124780029058456, -0.049522899091243744, -0.20580077171325684, 0.024842042475938797, -0.09285790473222733, -0.1285722404718399, 0.15721546113491058, 0.08626387268304825, 0.062316711992025375, -0.016534440219402313, -0.032083895057439804, 0.14572159945964813, 0.06509561091661453, -0.11096039414405823, -0.031828757375478745, 0.17515866458415985, -0.0749935582280159, 0.09755363315343857, -0.01774425245821476, -0.1479596644639969, -0.07191991806030273, -0.06800097972154617, 0.07339487969875336, 0.02023608423769474, -0.13877350091934204, 0.11676986515522003, 0.025235185399651527, -0.014104215428233147, -0.14569100737571716, -0.1353701502084732, 0.13798445463180542, -0.33069419860839844, 0.08680719137191772, -0.24121268093585968, 0.2181244045495987, 0.082854263484478, 0.19631071388721466, 0.2846013307571411, -0.1593705117702484, 0.08328896760940552, -0.1390734761953354, -0.09992450475692749, 0.05493573099374771, 0.09366574883460999, 0.02689230814576149, -0.23222017288208008, -0.0715712457895279, -0.07372459024190903, -0.0034801873844116926, 0.19757111370563507, 0.07917896658182144, -0.012820343486964703, -0.04373302683234215, -0.26374393701553345, 0.00028934559668414295, 0.18062035739421844, 0.03788025304675102, 0.09362515807151794, 0.05343732237815857, 0.12346760183572769, -0.03841809183359146, 0.20145951211452484, -0.05110941827297211, 0.06810864061117172, 0.10249903053045273, 0.02651287615299225, 0.15864281356334686, 0.1677556335926056, 0.054490841925144196, -0.13190796971321106, -0.033521756529808044, 0.15022359788417816, 0.17336218059062958, -0.21440160274505615, 0.006331097334623337, -0.18037815392017365, 0.006886021234095097, 0.1149229183793068, -0.043963685631752014, 0.0713830292224884, -0.05556190386414528, 0.04692825302481651, 0.23166801035404205, -0.05160997807979584, -0.021739553660154343, -0.10421102494001389, 0.3164951503276825, -0.02409396693110466, -0.1366940289735794, 0.0256641935557127, 0.10399482399225235, -0.06567686796188354, 0.12645909190177917, -0.0696718618273735, -0.22841310501098633, -0.011322230100631714, -0.15792879462242126, 0.17725159227848053, 0.21906724572181702, 0.15372054278850555, 0.1197483167052269, 0.15859995782375336, 0.11687850207090378, -0.2943286597728729, 0.09172334522008896, -0.0009012445225380361, -0.02963806875050068, 0.005988496821373701, -0.11489857733249664, 0.01878759264945984, -0.0019372331444174051, 0.053059060126543045, 0.008903584443032742, -0.06631512939929962, 0.10860294848680496, -0.0918799564242363, 0.08291847258806229, 0.07671674340963364, -0.04172450676560402, -0.07139669358730316, -0.07116473466157913, 0.013082477264106274, -0.052745986729860306, 0.20144736766815186, -0.14493818581104279, -0.06816455721855164, -0.13952377438545227, 7.333666189879295e-7, -0.13347290456295013, 0.09093990921974182, 0.0868309885263443, -0.11163033545017242, -0.14248956739902496, 0.20626965165138245, -0.09801623970270157, 0.02895146794617176, 0.05996766313910484, 0.09619925171136856, 0.14341863989830017, -0.18407109379768372, 0.025173388421535492, 0.08252169191837311, -0.03381069004535675, -0.17452920973300934, -0.06764908879995346, -0.03957488760352135, 0.05109912529587746, 0.014194952324032784, 0.20839045941829681, 0.16429683566093445, 0.004129496403038502, -0.02728799358010292, -0.029990801587700844, -0.04319404065608978, 0.0005887681036256254, 0.053131792694330215, 0.18681488931179047, 0.0495682992041111, 0.03306024521589279, -0.02603311277925968, 0.09946288913488388, 0.04144073277711868, -0.15907664597034454, 0.11801306158304214, -0.08427229523658752, 0.02871917001903057, -0.042634665966033936, 0.1196000799536705, 0.005799230188131332, -0.11624236404895782, -0.18078020215034485, -0.1387336552143097, 0.05412514507770538, -0.2012031376361847, -0.12512166798114777, 0.13618797063827515, -0.2968348264694214, 0.1397874802350998, -0.09205376356840134, 0.055302396416664124, 0.1459360420703888, 0.13807429373264313, 0.008653407916426659, 0.06270832568407059, -0.03189178556203842, -0.018130488693714142, -0.02633902244269848, -0.026127927005290985, -0.0013731098733842373, 0.06404750794172287, 0.13111808896064758, -0.06767717003822327, 0.04370058700442314, 0.03684000298380852, -0.10937468707561493, 2.7833548093312055e-34, -0.011957023292779922, 0.19915466010570526, 0.06047530472278595, -0.11006242781877518, -0.04058241844177246, -0.14810849726200104, 0.11331720650196075, 0.04207758978009224, -0.0746687576174736, -0.1324096918106079, -0.08485901355743408 ]
https://github.com/huggingface/datasets/issues/2596
Transformer Class on dataset
We can be pretty flexible and not impose any constraints for transforms. Moreover, this library is designed to support datasets bigger than memory. The datasets are loaded from the disk via memory mapping, without filling up RAM. Even processing functions like `map` work in a batched fashion to not fill up your RAM. So this shouldn't be an issue
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
59
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). We can be pretty flexible and not impose any constraints for transforms. Moreover, this library is designed to support datasets bigger than memory. The datasets are loaded from the disk via memory mapping, without filling up RAM. Even processing functions like `map` work in a batched fashion to not fill up your RAM. So this shouldn't be an issue
[ -0.2047412246465683, 0.22161489725112915, 0.014840551652014256, 0.03626856207847595, 0.10862766951322556, -0.04262944683432579, 0.17563003301620483, -0.01604290120303631, -0.054939765483140945, -0.0692506805062294, 0.002859758445993066, 0.1134067177772522, 0.020044997334480286, 0.03549320623278618, -0.006899354979395866, -0.1942685842514038, -0.17652691900730133, -0.019737964496016502, -0.24182294309139252, 0.0524892695248127, -0.12931029498577118, -0.0841836929321289, 0.14665330946445465, -0.0009294233750551939, -0.01901039481163025, 0.05783631652593613, -0.1187582015991211, -0.004091750364750624, 0.05561794713139534, 0.08178446441888809, 0.13800184428691864, 0.13789384067058563, -0.00048085974412970245, 0.12613223493099213, 0.000005581919140240643, -0.004394930321723223, -0.05413663387298584, -0.0003586989769246429, -0.0126488097012043, -0.22416549921035767, -0.06652960926294327, -0.17579999566078186, 0.012797905132174492, -0.08145443350076675, -0.1812475472688675, -0.0019095339812338352, 0.0705985575914383, 0.05186643451452255, 0.24012435972690582, 0.04189547151327133, -0.12343224138021469, -0.10376004874706268, 0.12101104855537415, -0.07880119234323502, 0.1590612381696701, 0.19690270721912384, -0.0587875097990036, 0.09103655070066452, -0.17569944262504578, 0.03932803496718407, -0.10884872823953629, 0.019877571612596512, -0.006107928231358528, -0.029454199597239494, 0.030258160084486008, -0.009979166090488434, -0.200535386800766, -0.13798364996910095, 0.022467607632279396, 0.09187508374452591, 0.1342347264289856, -0.1311015784740448, -0.16781377792358398, 0.08473164588212967, 0.07229270040988922, 0.12721940875053406, -0.08412159234285355, 0.0789932832121849, 0.019023995846509933, 0.051036957651376724, -0.05634477362036705, 0.15061154961585999, -0.02540038526058197, -0.09005808085203171, -0.3054922819137573, -0.02811615541577339, -0.08132549375295639, -0.023773720487952232, -0.13083119690418243, -0.06658288836479187, 0.06976330280303955, 0.14961184561252594, -0.05324653908610344, -0.008692631497979164, -0.00038188547478057444, -0.163212850689888, -0.1642588973045349, -0.005896239075809717, -0.009368354454636574, -0.06075850874185562, -0.009002666920423508, 0.09709583222866058, 0.026631005108356476, 0.10538662225008011, -0.03782479465007782, 0.024659208953380585, -0.251691609621048, -0.04561085253953934, 0.04416371136903763, -0.19800971448421478, -0.055663950741291046, 0.08447886258363724, -0.09675003588199615, -0.1330668032169342, 0.04744769260287285, 0.11086396127939224, 0.09266684204339981, 0.08324114978313446, 0.012940931133925915, -0.1537802368402481, 0.1635744422674179, 0.05398992449045181, -0.09256429225206375, 0.0014948284951969981, 0.15885339677333832, 0.08925794810056686, 0.11823838949203491, -0.025151632726192474, 0.013505106791853905, -0.08340253680944443, 0.0277194045484066, 0.05612862855195999, 0.12201637029647827, -0.10136201232671738, 0.16443154215812683, 0.020048560574650764, -0.14762116968631744, -0.20572121441364288, -0.026315050199627876, 0.09418760985136032, 0.09919895976781845, 0.07039976119995117, -0.0078805610537529, -0.12540963292121887, -0.019328059628605843, 0.012623193673789501, -0.004983170889317989, 0.0814795196056366, -0.03656214848160744, 0.04893927648663521, -0.08068805932998657, 0.22538325190544128, 0.05423964560031891, 0.04591049253940582, -0.09318472445011139, 0.09121109545230865, -0.003960132133215666, -0.05261382833123207, -0.041665248572826385, -0.11379975080490112, -0.0247410386800766, -0.1448502391576767, -0.05198374018073082, 0.038559556007385254, -0.12357772886753082, 0.018366552889347076, -0.1323169618844986, 0.1381138414144516, -0.07323753088712692, -0.09094089269638062, -0.13045504689216614, 0.06300073117017746, 0.002275064354762435, -0.12575219571590424, -0.03714197501540184, 0.12521196901798248, 0.23048165440559387, 0.15598146617412567, -0.1361200362443924, 0.03311788663268089, -0.06279674172401428, -0.06931313872337341, -0.05533067137002945, 0.18030405044555664, 0.15600399672985077, -0.04881391301751137, -0.2522830367088318, 0.21868698298931122, -0.03861957788467407, -0.07860714197158813, 0.07539026439189911, -0.003896270412951708, 0.16675135493278503, 0.03958957642316818, 0.027052171528339386, 0.2093970775604248, -0.065834179520607, 0.25619685649871826, -0.09135433286428452, -0.26737180352211, -0.12441881000995636, -0.058967821300029755, -0.14597924053668976, -0.07822161167860031, 0.05428405478596687, -0.18843625485897064, -0.1474483460187912, -0.19008012115955353, 0.14495542645454407, -0.03965010121464729, 0.07769691944122314, 0.08361092209815979, -0.029190387576818466, -0.10198766738176346, -0.1618308275938034, 0.184492826461792, -0.01485320832580328, -0.09372270852327347, 0.053514692932367325, -0.04506674408912659, 0.12423360347747803, 0.06356216222047806, 0.0093081621453166, 0.03930629417300224, -0.07828908413648605, 0.09388917684555054, 0.2687929570674896, 0.01164999045431614, 0.01010962761938572, -0.10735750198364258, -0.028893452137708664, -0.17446821928024292, 0.2309143841266632, -0.024706797674298286, -0.10260669887065887, 0.010514337569475174, 0.01944156549870968, 0.015593021176755428, -0.003577945288270712, -0.10116983205080032, -0.020722441375255585, 0.03131270408630371, -0.029403047636151314, -0.01904275082051754, -0.15308550000190735, 0.08964839577674866, -0.050043851137161255, 0.09434580057859421, 0.0722297877073288, -0.09301754087209702, 0.26639488339424133, -0.07646320760250092, -0.13373813033103943, 0.01612117700278759, -0.07660837471485138, -0.03042278066277504, 0.1547718495130539, 0.00037058370071463287, 0.12637193500995636, -0.16137802600860596, -0.004017244558781385, -0.04525461792945862, 0.04778054356575012, 0.07028133422136307, 0.14157076179981232, 0.15856823325157166, -0.2645634710788727, 0.25640684366226196, 0.07545572519302368, 0.03497586399316788, 0.02569464221596718, 0.12258203327655792, 0.24822041392326355, 0.09804800897836685, 0.158364936709404, -0.23088862001895905, 0.01458006538450718, 0.009969117119908333, -0.18969418108463287, 0.01825224608182907, -0.20099803805351257, 0.004920016974210739, 0.10904406011104584, -0.08064725995063782, 0.054030098021030426, 0.098431296646595, -0.03620457276701927, -0.019227521494030952, -0.042278122156858444, 0.1809798628091812, 0.052589647471904755, 0.024676496163010597, -0.062068574130535126, -0.1238708645105362, 0.005335121415555477, 0.026315763592720032, 0.047092825174331665, 0.12711457908153534, -0.048494257032871246, -0.013903970830142498, -0.09336365759372711, 0.03965875506401062, -0.00618164986371994, -0.04090876132249832, -0.08801232278347015, 0.029516609385609627, 0.06512042135000229, 0.09713692218065262, -0.09605879336595535, -0.11396170407533646, -0.10867080837488174, -0.02999589592218399, 0.07429607957601547, -0.03964109718799591, 0.04492590203881264, 0.08342739939689636, -0.03876945376396179, 0.08663584291934967, -0.061535757035017014, -0.03827435150742531, 0.11363532394170761, -0.05572604015469551, 0.14398767054080963, -0.07349146902561188, -0.07518819719552994, 0.15226666629314423, -0.10941855609416962, -0.06520121544599533, -0.0634324699640274, -0.020702440291643143, -0.11016925424337387, 0.02724183350801468, 0.10761075466871262, -0.08243516832590103, 0.103855200111866, -0.10675636678934097, -0.08849377185106277, 0.1668418049812317, 0.2309829443693161, -0.030171936377882957, -0.01464143581688404, -0.0274935495108366, -0.11365076899528503, 0.040443066507577896, 0.28025954961776733, -0.10831437259912491, 0.19650928676128387, -0.1790744662284851, -0.15417444705963135, 0.09430298954248428, 0.03454739600419998, 0.33042532205581665, -0.01840222254395485, -0.17561078071594238, 0.02259768359363079, 0.08839576691389084, -0.13839711248874664, 0.17491036653518677, -0.1538807898759842, 0.13132725656032562, -0.05705414339900017, 0.03265780955553055, -0.1176978126168251, -0.24139828979969025, -0.10634086281061172, -0.0726107656955719, 0.16916394233703613, 0.22699332237243652, 0.09830981492996216, -0.1677684634923935, 0.04058524966239929, -0.030006714165210724, -0.1026647686958313, 0.09373019635677338, -0.07757655531167984, -0.023119548335671425, -0.017688043415546417, -0.1682383418083191, 0.024815674871206284, 0.13616621494293213, 0.112168088555336, -0.2017236202955246, -0.04804854467511177, -0.12467963993549347, 0.15036499500274658, -0.04127616807818413, 0.08495628833770752, 0.19399875402450562, 0.06447429955005646, 0.017770592123270035, -0.04175233840942383, -0.0219667237251997, 0.04930674657225609, 0.1012507975101471, -0.11338924616575241, -0.21888823807239532, -0.04452773183584213, -0.017030267044901848, -0.019262561574578285, -0.1528300791978836, 0.03497502952814102, -0.026798995211720467, -0.021189909428358078, -0.07092811912298203, 0.06574408710002899, -0.22505222260951996, 0.0060964967124164104, 0.06265535205602646, 0.017603550106287003, -0.1563977152109146, -0.07576293498277664, 0.12290922552347183, -0.06077800318598747, 0.028299160301685333, 0.01605038344860077, 0.0993020161986351, -0.06536383926868439, -0.04211543872952461, 0.07558189332485199, -0.1511467546224594, -0.03627113997936249, -0.14930035173892975, 0.35747358202934265, 0.06977085024118423, 0.0786801278591156, 0.023213835433125496, -0.19200444221496582, 0.03422566503286362, 0.10656706243753433, -0.009430674836039543, 0.18607917428016663, 0.18180586397647858, -0.02633299119770527, 0.03165994584560394, 0.11641412228345871, -0.10837632417678833, 0.1005498617887497, -0.08490769565105438, 0.03297482430934906, 0.0443493090569973, 0.14075392484664917, 0.01679001748561859, 0.23714040219783783, -0.07963691651821136, -0.24691714346408844, -0.04791447892785072, -0.11794917285442352, -0.1412941962480545, -0.006195555906742811, 0.013299699872732162, -0.039504893124103546, -0.01815573126077652, -0.11542955040931702, 0.1034402921795845, 0.14114362001419067, 0.10018463432788849, 0.05017799139022827, -0.08237732201814651, -0.10182131826877594, 0.0925966426730156, 0.1899624466896057, 0.009615633636713028, 0.08920016884803772, 0.052120380103588104, 0.1075734868645668, 0.07916638255119324, 0.3251538872718811, -0.09107328206300735, -0.13193358480930328, 0.023038728162646294, -0.14210444688796997, 0.08234238624572754, -0.05541467294096947, 0.110868439078331, 0.14436522126197815, 0.004524792544543743, -0.035155270248651505, -0.14127057790756226, -0.13485831022262573, 0.030861541628837585, 0.011399000883102417, 0.20720775425434113, 0.009274176321923733, 0.08017048239707947, 0.07387523353099823, 0.11885944753885269, -0.10375560820102692, -0.008917881175875664, -0.1461385190486908, -0.016993200406432152, 0.20435704290866852, 0.035637009888887405, 0.019589180126786232, -0.045966736972332, -0.035973090678453445, -0.2051153928041458, -0.08174227178096771, 0.19285304844379425, -0.010290948674082756, -0.05777284502983093, -0.03622272610664368, 0.11178532242774963, 0.1764327883720398, -0.17405827343463898, 0.17840193212032318, 0.004395707510411739, 0.02878539264202118, 0.09456595778465271, -0.005164062604308128, 0.089248888194561, 0.04972012713551521, -0.010505445301532745, -0.11369047313928604, 0.0172259584069252, -0.030383136123418808, -0.0670786127448082, -0.2680523693561554, -0.02096083201467991, -0.07342958450317383, 0.03814544156193733, 0.059405744075775146, 0.11403729021549225, 0.11995358765125275, -0.007831999100744724, -0.021247154101729393, 0.044432252645492554, -0.019287921488285065, -0.017708532512187958, 0.03644007816910744, 0.1439431607723236, -0.00024001933343242854, 0.026747815310955048, 0.058230921626091, -0.015822535380721092, -0.14470554888248444, -0.0055656591430306435, -0.025831105187535286, -0.2135590761899948, 0.0065919216722249985, -0.13852594792842865, -0.012951374985277653, -0.05479023978114128, -0.07947251200675964, -0.03676977753639221, 0.2289818823337555, -0.06361524015665054, -0.1377282291650772, -0.13301986455917358, -0.07791818678379059, -0.08262825757265091, -0.029244795441627502, -0.0011421897215768695, 0.07828116416931152, -0.046967651695013046, -0.11122342199087143, -2.2972133615775078e-32, -0.11092580109834671, 0.09393058717250824, -0.0120916236191988, 0.1670396476984024, -0.027147972956299782, -0.09176643937826157, -0.0005242951447144151, -0.10122048854827881, 0.08493085950613022, -0.059429410845041275, -0.09583306312561035, 0.11153091490268707, 0.06451698392629623, -0.009344424121081829, -0.07670630514621735, -0.04986264556646347, 0.0758872926235199, 0.06512212753295898, -0.06229420751333237, -0.049692440778017044, 0.13902707397937775, -0.06456800550222397, 0.07873088121414185, 0.030096832662820816, -0.20148256421089172, -0.061574049293994904, 0.003701295703649521, 0.0711817666888237, 0.06735377758741379, -0.14032453298568726, 0.04040338471531868, 0.016878711059689522, -0.05833034589886665, -0.15005826950073242, -0.08681701868772507, 0.08963333815336227, -0.2945832908153534, 0.09460211545228958, -0.279374361038208, 0.19374914467334747, 0.07819902151823044, 0.16433964669704437, 0.28532031178474426, -0.11435815691947937, 0.0043264711275696754, -0.1157088652253151, 0.017193058505654335, 0.017912207171320915, 0.06297396123409271, -0.0007200813270173967, -0.24986065924167633, -0.04648273065686226, -0.11454664170742035, -0.054052818566560745, 0.12058684974908829, 0.0829901248216629, 0.006571044679731131, -0.07166716456413269, -0.1935378909111023, 0.027068519964814186, 0.17692025005817413, 0.009117362089455128, 0.04916088655591011, 0.10797297209501266, 0.13104590773582458, -0.06328948587179184, 0.1924537718296051, -0.0513465441763401, 0.07120751589536667, 0.07335228472948074, 0.08451714366674423, 0.09628408402204514, 0.1690942794084549, 0.09394441545009613, -0.061253659427165985, -0.06797844171524048, 0.16492296755313873, 0.19534803926944733, -0.18682724237442017, -0.011052464134991169, -0.1617756485939026, 0.009405774064362049, 0.07211960107088089, -0.02301620878279209, 0.14502814412117004, 0.08056283742189407, 0.036566056311130524, 0.19465740025043488, -0.026747075840830803, 0.020766545087099075, -0.13535265624523163, 0.33183732628822327, -0.01781429909169674, -0.11983268707990646, 0.12378313392400742, 0.13757972419261932, -0.06981179118156433, 0.07967403531074524, -0.10057884454727173, -0.2055121660232544, 0.00008826875273371115, -0.17388533055782318, 0.2244119942188263, 0.18533501029014587, 0.12673529982566833, 0.07687843590974808, 0.19507718086242676, 0.07968499511480331, -0.25014010071754456, 0.08855198323726654, 0.015817731618881226, -0.0183511171489954, 0.059602994471788406, -0.05584093928337097, -0.0057288105599582195, -0.035513512790203094, 0.07675068080425262, 0.006530579645186663, -0.029420156031847, 0.07004008442163467, -0.11838983744382858, 0.04986017942428589, 0.06986008584499359, -0.0833238884806633, -0.09948690980672836, -0.06219923868775368, 0.011395513080060482, -0.04695620387792587, 0.15963028371334076, -0.21608954668045044, -0.04477277025580406, -0.11863283067941666, 7.483196782231971e-7, -0.1597791314125061, 0.16066743433475494, 0.027296850457787514, -0.07556916773319244, -0.17648328840732574, 0.14464515447616577, -0.1147330105304718, 0.03221072629094124, 0.09977950155735016, 0.1430218666791916, 0.10086359083652496, -0.16471301019191742, -0.003257668111473322, 0.030410829931497574, -0.03666011989116669, -0.16082632541656494, -0.008779160678386688, -0.04241950437426567, -0.012658357620239258, 0.0428113229572773, 0.1371932178735733, 0.18068453669548035, -0.009004678577184677, -0.025199707597494125, -0.033630553632974625, -0.06978266686201096, 0.017052022740244865, 0.010493742302060127, 0.15972508490085602, 0.020502282306551933, 0.12208853662014008, -0.04466991499066353, 0.04680314287543297, 0.07342953979969025, -0.12334035336971283, 0.13910596072673798, -0.024196458980441093, 0.010953530669212341, 0.016412682831287384, 0.05543164163827896, 0.06512393057346344, -0.06981486082077026, -0.16887184977531433, -0.08128172159194946, -0.010324644856154919, -0.19471405446529388, -0.122198686003685, 0.16910497844219208, -0.2896222770214081, 0.1092030331492424, -0.08776929974555969, 0.021228956058621407, 0.15960176289081573, 0.06482931226491928, 0.025641731917858124, 0.019241925328969955, 0.0038025900721549988, -0.006725454702973366, -0.014857444912195206, -0.07681186497211456, -0.033285368233919144, 0.07258693873882294, 0.08541896939277649, -0.08573837578296661, 0.08344771713018417, 0.07059571892023087, -0.06041354686021805, 3.6975808470038544e-34, -0.013714506290853024, 0.20012478530406952, 0.01777803897857666, -0.11311357468366623, -0.007801896892488003, -0.09803412854671478, 0.19397538900375366, -0.0004888284602202475, -0.07368411868810654, -0.2021755576133728, -0.12445239722728729 ]
https://github.com/huggingface/datasets/issues/2596
Transformer Class on dataset
Ok thanks. But, Dataset has various flavors. In current design of Dataset, how the serialization on disk is done (?) The main issue is serialization of newdataset= Transform(Dataset) (ie thats why am referring to Out Of memory dataset…): Should be part of Transform or part of dataset ? Maybe, not, since the output is aimed to feed model in memory (?) > On Jul 7, 2021, at 18:04, Quentin Lhoest ***@***.***> wrote: > >  > We can be pretty flexible and not impose any constraints for transforms. > > Moreover, this library is designed to support datasets bigger than memory. The datasets are loaded from the disk via memory mapping, without filling up RAM. Even processing functions like map work in a batched fashion to not fill up your RAM. So this shouldn't be an issue > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or unsubscribe.
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
162
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). Ok thanks. But, Dataset has various flavors. In current design of Dataset, how the serialization on disk is done (?) The main issue is serialization of newdataset= Transform(Dataset) (ie thats why am referring to Out Of memory dataset…): Should be part of Transform or part of dataset ? Maybe, not, since the output is aimed to feed model in memory (?) > On Jul 7, 2021, at 18:04, Quentin Lhoest ***@***.***> wrote: > >  > We can be pretty flexible and not impose any constraints for transforms. > > Moreover, this library is designed to support datasets bigger than memory. The datasets are loaded from the disk via memory mapping, without filling up RAM. Even processing functions like map work in a batched fashion to not fill up your RAM. So this shouldn't be an issue > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or unsubscribe.
[ -0.12412609905004501, 0.14919555187225342, 0.05199984088540077, 0.037023354321718216, 0.07213525474071503, -0.018001966178417206, 0.16401247680187225, 0.013048935681581497, -0.07129719108343124, -0.04301972687244415, -0.034055501222610474, 0.04314000904560089, 0.07055570930242538, 0.06134450063109398, -0.0004286813782528043, -0.16017389297485352, -0.11190289258956909, -0.016107508912682533, -0.23782864212989807, 0.05992492660880089, -0.14707989990711212, -0.11872018128633499, 0.1859656274318695, 0.008262726478278637, -0.020918602123856544, -0.013549732975661755, -0.15504509210586548, 0.04949614405632019, -0.014142381027340889, 0.024298757314682007, 0.07591816037893295, 0.1350340098142624, 0.024959295988082886, 0.18859806656837463, 0.000005471196345752105, -0.037429630756378174, -0.04055425897240639, 0.004134180955588818, -0.05646831542253494, -0.20118695497512817, 0.022891351953148842, -0.19596311450004578, 0.04002496600151062, -0.03707196190953255, -0.1414828598499298, -0.04431226849555969, 0.047234129160642624, 0.07333026081323624, 0.2660771906375885, 0.07559998333454132, -0.14674420654773712, -0.09930025041103363, 0.14422385394573212, -0.12924668192863464, 0.08250722289085388, 0.2256796658039093, -0.0191614031791687, 0.1037636399269104, -0.14184582233428955, 0.036700066179037094, -0.09587413817644119, 0.023659905418753624, 0.010786797851324081, -0.013130773790180683, -0.004555248189717531, -0.005359635688364506, -0.16267283260822296, -0.15708845853805542, 0.018994588404893875, 0.04761119186878204, 0.17571111023426056, -0.10212994366884232, -0.17715027928352356, 0.12977780401706696, 0.056169409304857254, 0.09162208437919617, -0.13010837137699127, 0.12264996767044067, -0.015556156635284424, 0.10701458901166916, -0.03788202628493309, 0.2003425508737564, -0.01854563318192959, -0.1116192415356636, -0.30201467871665955, -0.06398865580558777, -0.13302364945411682, -0.012208725325763226, -0.16683430969715118, -0.04238265007734299, 0.04848727211356163, 0.07802335172891617, -0.067829929292202, 0.00007443100912496448, 0.048724569380283356, -0.19670434296131134, -0.16328641772270203, -0.04372312128543854, -0.011393234133720398, -0.05026955530047417, -0.023534996435046196, 0.05398421362042427, 0.02520041912794113, 0.04629892855882645, -0.016210749745368958, 0.015039135701954365, -0.22866742312908173, -0.08333946019411087, 0.03283694386482239, -0.14666301012039185, -0.03177570179104805, 0.09339890629053116, -0.10561620444059372, -0.060587938874959946, 0.10700105130672455, 0.09631714224815369, 0.1263924241065979, 0.09954869002103806, 0.05117169767618179, -0.0706353560090065, 0.1672590970993042, -0.01842259243130684, -0.09733925014734268, -0.011327952146530151, 0.13052326440811157, 0.0977824479341507, 0.08864650875329971, -0.014514422044157982, 0.11237484961748123, -0.08889651298522949, -0.005647219717502594, 0.018182925879955292, 0.14999504387378693, -0.07537399232387543, 0.12578263878822327, -0.0031897721346467733, -0.12832343578338623, -0.09173889458179474, -0.06926361471414566, 0.07726132869720459, 0.11125648766756058, 0.0418318547308445, 0.024398216977715492, -0.09708365797996521, 0.06387921422719955, 0.0860128253698349, 0.008565261960029602, 0.09291518479585648, -0.06555665284395218, 0.08765407651662827, -0.05953039601445198, 0.17595888674259186, 0.013269967399537563, 0.04147356376051903, -0.06751317530870438, 0.12305482476949692, 0.029004588723182678, -0.03711570426821709, -0.026093311607837677, -0.07540938258171082, -0.048120081424713135, -0.10258423537015915, -0.022817686200141907, -0.01771586202085018, -0.09290290623903275, 0.015545192174613476, -0.12141982465982437, 0.1917869597673416, -0.036161769181489944, -0.06779886782169342, -0.04045625776052475, 0.09062168747186661, -0.031688909977674484, -0.06920195370912552, -0.019025227054953575, 0.11254479736089706, 0.10504350811243057, 0.1318579912185669, -0.1800084412097931, 0.08164489269256592, -0.09876998513936996, -0.0650467500090599, -0.01538191456347704, 0.11935608834028244, 0.16638466715812683, -0.061469413340091705, -0.22374214231967926, 0.18409010767936707, -0.04943875968456268, -0.09799890220165253, -0.003380915615707636, 0.026363754644989967, 0.17157433927059174, -0.007517203688621521, 0.003655281849205494, 0.19954384863376617, -0.07824458926916122, 0.2855364680290222, -0.13770560920238495, -0.23469844460487366, -0.15202902257442474, -0.08877936005592346, -0.1285306215286255, -0.12805861234664917, 0.01522547472268343, -0.12028557062149048, -0.21023471653461456, -0.2663232684135437, 0.16197878122329712, -0.08048398047685623, -0.04245300590991974, 0.11990561336278915, -0.0708332508802414, -0.07438444346189499, -0.14145201444625854, 0.20032775402069092, -0.05829616263508797, -0.0810723602771759, 0.01306106336414814, 0.006074943114072084, 0.07770722359418869, 0.06956950575113297, -0.006070438772439957, 0.054952170699834824, -0.014537866227328777, 0.06252454966306686, 0.2679470181465149, -0.02075202949345112, -0.000489920552354306, -0.11582350730895996, 0.007599596865475178, -0.14901655912399292, 0.2362203449010849, 0.002695202361792326, -0.03301427885890007, -0.0054808552376925945, -0.01056497823446989, -0.02216905727982521, -0.052517764270305634, -0.06117375195026398, 0.017037468031048775, 0.06389284878969193, -0.002426618942990899, -0.06192716956138611, -0.11647437512874603, 0.05523932725191116, -0.04472631588578224, 0.14425508677959442, 0.052887897938489914, -0.10088478773832321, 0.2545982301235199, -0.024122057482600212, -0.09944061934947968, -0.025165989995002747, -0.14405381679534912, -0.033431995660066605, 0.09753713011741638, 0.08334057778120041, 0.06279409676790237, -0.15256863832473755, 0.08613420277833939, -0.06452997028827667, 0.04566771909594536, 0.024007612839341164, 0.09623623639345169, 0.05863827094435692, -0.2528473734855652, 0.21241705119609833, 0.10057123750448227, 0.053275592625141144, 0.1088792011141777, 0.141806960105896, 0.258238822221756, 0.05891580134630203, 0.12784118950366974, -0.19615407288074493, 0.03714342787861824, 0.0357348658144474, -0.15151409804821014, 0.0450991690158844, -0.186679407954216, 0.028666982427239418, 0.14272819459438324, -0.07107912003993988, 0.052964720875024796, 0.13735248148441315, -0.032578643411397934, -0.0039050146006047726, -0.10041234642267227, 0.18913331627845764, 0.042563606053590775, -0.004535124637186527, -0.05405459925532341, -0.1349986493587494, 0.02652781270444393, 0.017998896539211273, 0.03885903209447861, 0.09484262019395828, -0.06503624469041824, 0.033956896513700485, -0.07029210776090622, 0.027123143896460533, 0.009610111825168133, -0.059899985790252686, -0.13951076567173004, 0.040064822882413864, 0.05887129530310631, 0.1575084626674652, -0.07558336853981018, -0.11913539469242096, -0.07280885428190231, -0.05916411802172661, 0.06131495535373688, -0.0001718917046673596, 0.05037757009267807, 0.1132751926779747, 0.025083085522055626, 0.020324990153312683, -0.06334462761878967, -0.015285148285329342, 0.054384276270866394, -0.037618525326251984, 0.07816235721111298, -0.07688605785369873, -0.04641086608171463, 0.07956743985414505, -0.13707521557807922, -0.018179547041654587, 0.0073644621297717094, -0.017330368980765343, -0.12092165648937225, 0.06388998031616211, 0.03130178898572922, -0.07466845959424973, 0.14066193997859955, -0.10227054357528687, -0.09849172830581665, 0.14074838161468506, 0.24165455996990204, -0.004279422108083963, -0.047352440655231476, -0.03931603580713272, -0.11896046996116638, 0.030124252662062645, 0.2290523648262024, -0.07954805344343185, 0.14418858289718628, -0.14885099232196808, -0.12601643800735474, 0.1019914522767067, 0.06497190147638321, 0.32242757081985474, -0.01387308444827795, -0.15551947057247162, 0.013043803162872791, 0.061086952686309814, -0.16592277586460114, 0.1615634262561798, -0.12226171791553497, 0.13403332233428955, -0.04257265850901604, 0.05268031731247902, -0.07948960363864899, -0.16042141616344452, -0.057050641626119614, -0.10896244645118713, 0.19835755228996277, 0.20152263343334198, 0.028816409409046173, -0.21050786972045898, 0.05180912837386131, -0.07980838418006897, -0.1484314501285553, 0.08450762182474136, -0.11905885487794876, -0.030210861936211586, 0.05291921645402908, -0.13367080688476562, -0.04351520165801048, 0.1338319182395935, 0.12036825716495514, -0.2244449108839035, -0.049274176359176636, -0.11916689574718475, 0.12984365224838257, -0.05784416198730469, 0.08372251689434052, 0.16213224828243256, 0.0259760282933712, 0.08704190701246262, -0.030830351635813713, -0.0782560482621193, 0.02543666772544384, 0.07805590331554413, -0.14541512727737427, -0.2311929613351822, -0.029808668419718742, 0.03734875097870827, -0.02418629452586174, -0.09346228837966919, 0.0681663230061531, -0.020986363291740417, -0.014264904893934727, -0.0904361829161644, 0.07199471443891525, -0.21429121494293213, 0.06110119819641113, 0.04335714504122734, 0.01541060209274292, -0.09638717025518417, -0.0710846334695816, 0.1497739553451538, -0.06186474859714508, 0.04586726427078247, -0.008357232436537743, 0.12393896281719208, -0.0721701979637146, -0.0154802855104208, 0.05572402849793434, -0.19650335609912872, -0.03259008005261421, -0.17968301475048065, 0.3659824728965759, 0.0752745121717453, 0.08362692594528198, 0.0704544261097908, -0.16038301587104797, 0.08572884649038315, 0.05289542302489281, 0.0017767343670129776, 0.161275252699852, 0.161680206656456, 0.0028236815705895424, 0.05170487239956856, 0.13629446923732758, -0.05346045270562172, 0.09696101397275925, -0.0762898176908493, 0.05244510620832443, 0.029114438220858574, 0.09644632041454315, 0.003777912585064769, 0.2491154968738556, -0.09550365060567856, -0.22326324880123138, -0.02485179714858532, -0.129417285323143, -0.16456632316112518, -0.005610721651464701, -0.0025734484661370516, -0.1413179636001587, -0.04872728884220123, -0.12347767502069473, 0.06338858604431152, 0.10682587325572968, 0.05187332630157471, 0.0005449318559840322, -0.16308042407035828, -0.09106545895338058, 0.08319327980279922, 0.12416240572929382, 0.026599086821079254, 0.1031516045331955, 0.0597485676407814, 0.125386580824852, 0.07444193214178085, 0.3011038899421692, -0.09101240336894989, -0.15254470705986023, -0.02012859284877777, -0.07891402393579483, 0.08881837129592896, -0.06530120223760605, 0.10240545123815536, 0.12599793076515198, -0.009008736349642277, -0.09739645570516586, -0.10549724847078323, -0.13097594678401947, 0.040620505809783936, 0.06682398915290833, 0.2271752953529358, 0.008493720553815365, 0.04855781048536301, 0.10710479319095612, 0.14822645485401154, -0.05872610956430435, -0.04424834996461868, -0.19678565859794617, -0.06537754088640213, 0.22331711649894714, 0.015561794862151146, -0.006437405943870544, -0.03414131700992584, -0.011105502024292946, -0.20469245314598083, -0.12565556168556213, 0.17261359095573425, 0.004805310163646936, -0.0649518147110939, -0.030763059854507446, 0.1505933552980423, 0.094251848757267, -0.165857195854187, 0.22461214661598206, 0.019293785095214844, -0.020832765847444534, 0.11910397559404373, -0.027492374181747437, 0.09006375074386597, 0.015443607233464718, 0.06603328138589859, -0.13729797303676605, -0.015513718128204346, -0.03010737895965576, -0.0742049589753151, -0.32944267988204956, -0.07014957070350647, -0.09987523406744003, 0.07636866718530655, 0.07306154817342758, 0.05650104209780693, 0.20396363735198975, -0.0742907002568245, -0.007493790239095688, 0.007236952427774668, -0.039031751453876495, -0.029834851622581482, 0.02349335327744484, 0.17560145258903503, -0.057120729237794876, 0.03807651996612549, 0.10149592906236649, -0.039310652762651443, -0.11047320812940598, 0.06251339614391327, 0.017896601930260658, -0.24230921268463135, 0.0737040787935257, -0.18523703515529633, -0.0032864315435290337, -0.07403332740068436, -0.058778900653123856, -0.03606181591749191, 0.23770534992218018, -0.07639063894748688, -0.09826339781284332, -0.17788471281528473, -0.013325884938240051, -0.1137491762638092, -0.05671704560518265, 0.06654651463031769, 0.10941410064697266, -0.08133561909198761, -0.10469378530979156, -2.423201523667496e-32, -0.09781022369861603, 0.09855574369430542, -0.012526259757578373, 0.14200136065483093, -0.10379746556282043, -0.040900085121393204, -0.007020581979304552, -0.15942910313606262, 0.07745429128408432, -0.05406835675239563, -0.08717979490756989, 0.13446983695030212, 0.09216524660587311, 0.0219663605093956, -0.07717634737491608, -0.09484577924013138, 0.08735652267932892, 0.05047907307744026, -0.05437639355659485, -0.0519154891371727, 0.15393738448619843, -0.03561218082904816, 0.15899693965911865, -0.04697803035378456, -0.16173073649406433, -0.07743223756551743, -0.03599122539162636, -0.002433168236166239, 0.08921601623296738, -0.14996615052223206, 0.04140596091747284, 0.046497195959091187, -0.034350935369729996, -0.18701030313968658, -0.1014515683054924, 0.09516740590333939, -0.27506405115127563, 0.09320937097072601, -0.2666696012020111, 0.21765118837356567, 0.07463594526052475, 0.1464575082063675, 0.27083927392959595, -0.11450915783643723, 0.03375234454870224, -0.15158423781394958, -0.050100523978471756, 0.04058275371789932, 0.04422951117157936, 0.009535778313875198, -0.29288285970687866, -0.07455281913280487, -0.07045981287956238, -0.05793200805783272, 0.14741024374961853, 0.022316165268421173, -0.0005895706708543003, -0.024856800213456154, -0.2082369029521942, 0.02942321076989174, 0.2190067321062088, 0.013515959493815899, 0.11012443900108337, 0.06888148188591003, 0.19191470742225647, -0.02171953022480011, 0.21747207641601562, -0.0021671256981790066, 0.04812312498688698, 0.09369179606437683, 0.0011188315693289042, 0.11536697298288345, 0.1245567575097084, 0.08342144638299942, -0.054441630840301514, -0.05674058943986893, 0.12196829169988632, 0.1534436047077179, -0.2322961539030075, -0.04558952897787094, -0.19936233758926392, 0.039876293390989304, 0.06840592622756958, -0.04843685403466225, 0.1306023746728897, 0.021290376782417297, 0.06825646013021469, 0.19481684267520905, -0.04918342083692551, -0.019774802029132843, -0.17352473735809326, 0.32403621077537537, -0.018321910873055458, -0.15814180672168732, 0.025593332946300507, 0.037791237235069275, -0.019855087623000145, 0.11254818737506866, -0.11402161419391632, -0.2349737286567688, 0.027319537475705147, -0.15496960282325745, 0.19408495724201202, 0.20547987520694733, 0.13737532496452332, 0.11125551909208298, 0.20679602026939392, 0.11990341544151306, -0.24272547662258148, 0.1012149304151535, -0.005451118107885122, -0.03323322907090187, 0.030345547944307327, -0.008276247419416904, -0.003995301201939583, -0.026391424238681793, 0.10360207408666611, 0.004712807480245829, 0.0017486382275819778, 0.0707201436161995, -0.07822360843420029, 0.021755585446953773, 0.08091940730810165, -0.0755954384803772, -0.06465303897857666, -0.04785934463143349, -0.009089717641472816, -0.03332061693072319, 0.19256336987018585, -0.12580890953540802, -0.040935613214969635, -0.13405096530914307, 7.404904067698226e-7, -0.10511189699172974, 0.16627758741378784, 0.0663219466805458, -0.10194948315620422, -0.16562598943710327, 0.14829418063163757, -0.12008269876241684, 0.07045857608318329, 0.12294607609510422, 0.1588028371334076, 0.1325773000717163, -0.1302272081375122, 0.05982465669512749, 0.029181690886616707, -0.0508488267660141, -0.19531425833702087, -0.048121824860572815, -0.0597747378051281, 0.02864934504032135, 0.06740181148052216, 0.20510531961917877, 0.13990642130374908, -0.08925163000822067, 0.03413764759898186, 0.011196033097803593, -0.05417832359671593, 0.00728532625362277, 0.010204081423580647, 0.18842138350009918, -0.003181962762027979, 0.08185279369354248, 0.0022358368150889874, 0.10670015960931778, -0.004255630075931549, -0.10172995179891586, 0.08329211175441742, -0.045468322932720184, 0.01292372215539217, 0.00963546335697174, 0.09066648781299591, 0.03540487959980965, -0.037011925131082535, -0.17277182638645172, -0.09905184805393219, 0.005761038977652788, -0.1934705376625061, -0.18018190562725067, 0.14555227756500244, -0.25537142157554626, 0.10116424411535263, -0.10034734755754471, 0.039047177881002426, 0.23635724186897278, 0.11883557587862015, 0.025064267218112946, 0.041943687945604324, -0.025684284046292305, -0.05184677615761757, -0.03346769139170647, -0.018919510766863823, -0.03961972892284393, 0.07334534823894501, 0.10747161507606506, -0.09439537674188614, 0.10915551334619522, 0.01760401763021946, -0.11910536885261536, 2.8549045331541177e-34, -0.005555914714932442, 0.15290819108486176, 0.03886011987924576, -0.08636104315519333, -0.08297380805015564, -0.1243479773402214, 0.2564273476600647, -0.005159266758710146, -0.10029594600200653, -0.20613059401512146, -0.12258343398571014 ]
https://github.com/huggingface/datasets/issues/2596
Transformer Class on dataset
I'm not sure I understand, could you elaborate a bit more please ? Each dataset is a wrapper of a PyArrow Table that contains all the data. The table is loaded from an arrow file on the disk. We have an ArrowWriter and ArrowReader class to write/read arrow tables on disk or in in-memory buffers.
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
55
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). I'm not sure I understand, could you elaborate a bit more please ? Each dataset is a wrapper of a PyArrow Table that contains all the data. The table is loaded from an arrow file on the disk. We have an ArrowWriter and ArrowReader class to write/read arrow tables on disk or in in-memory buffers.
[ -0.19899123907089233, 0.18145473301410675, 0.028297308832406998, 0.018400810658931732, 0.09904123842716217, -0.051656946539878845, 0.16108743846416473, 0.0007470824057236314, -0.11228221654891968, -0.04167240858078003, -0.08185890316963196, 0.21775506436824799, 0.08554819226264954, 0.01615358702838421, -0.006843070033937693, -0.1457585096359253, -0.18611080944538116, -0.024724887683987617, -0.23371033370494843, 0.06850496679544449, -0.0459897518157959, -0.081419937312603, 0.11800706386566162, 0.04520842060446739, -0.04189484566450119, 0.040296148508787155, -0.14938701689243317, 0.012324728071689606, -0.005261227022856474, 0.044164784252643585, 0.1905304491519928, 0.15450242161750793, 0.03378249332308769, 0.12061478942632675, 0.000005401872385846218, 0.03584009408950806, -0.03262016549706459, -0.018996376544237137, -0.02262485958635807, -0.24476642906665802, -0.007344473153352737, -0.14046308398246765, 0.1002788320183754, -0.049895189702510834, -0.12581317126750946, -0.06622562557458878, 0.07153917104005814, 0.11086288839578629, 0.2538556456565857, 0.020198717713356018, -0.11577261239290237, -0.08694150298833847, 0.143601655960083, -0.05682355538010597, 0.163404643535614, 0.16230566799640656, -0.02601955644786358, 0.1309279203414917, -0.17976348102092743, -0.016673075035214424, -0.15997275710105896, -0.001982925459742546, -0.025001289322972298, -0.015473606996238232, 0.05319366604089737, -0.03934236243367195, -0.1450178474187851, -0.10698908567428589, 0.007479408755898476, 0.06967997550964355, 0.1793738156557083, -0.1952386349439621, -0.16506502032279968, 0.059069499373435974, 0.17226599156856537, 0.13462457060813904, -0.1735430359840393, 0.06324339658021927, 0.0006847377517260611, 0.024813372641801834, 0.05023228004574776, 0.18439671397209167, -0.0467601902782917, -0.10487020015716553, -0.38818711042404175, -0.008123891428112984, -0.1070128083229065, -0.08205203711986542, -0.15987272560596466, -0.0717548057436943, 0.1553230881690979, 0.15522047877311707, -0.10094788670539856, 0.008742083795368671, -0.04847865179181099, -0.12935443222522736, -0.10313504934310913, -0.014513162896037102, -0.0606926791369915, -0.053409285843372345, 0.057200562208890915, 0.09832245111465454, 0.0546429418027401, 0.09496599435806274, -0.04487157240509987, 0.04086655005812645, -0.27997174859046936, 0.018310802057385445, -0.0374593622982502, -0.2062995731830597, -0.1337074637413025, 0.12622947990894318, -0.10565678775310516, -0.1728278398513794, 0.05790330842137337, 0.07017819583415985, 0.18775279819965363, 0.12655982375144958, -0.00750452745705843, -0.1575118899345398, 0.13675351440906525, 0.037923190742731094, -0.11598175764083862, 0.0069969696924090385, 0.15292741358280182, 0.09603709727525711, 0.07845620810985565, -0.009105675853788853, 0.05138981342315674, -0.038137007504701614, 0.03830062225461006, 0.06933051347732544, 0.1788048893213272, -0.12571610510349274, 0.17602024972438812, 0.034283000975847244, -0.11991112679243088, -0.11545313894748688, -0.08039093762636185, 0.04213031753897667, 0.10548197478055954, 0.09608171880245209, -0.011370280757546425, -0.1128094270825386, -0.01994767040014267, 0.03389561176300049, 0.012901565060019493, 0.05521424114704132, -0.060044050216674805, 0.058724988251924515, -0.035848721861839294, 0.18563666939735413, 0.07619290053844452, 0.04701070860028267, -0.08086661249399185, 0.06560253351926804, -0.06635123491287231, -0.0827326774597168, -0.062303878366947174, -0.11122934520244598, -0.025626197457313538, -0.14877261221408844, 0.007274485193192959, -0.009200050495564938, -0.07960844039916992, -0.023307519033551216, -0.13582980632781982, 0.13886356353759766, -0.046793948858976364, -0.06910662353038788, -0.06837029755115509, -0.003003857098519802, 0.010050324723124504, -0.029491227120161057, -0.013263695873320103, 0.13542786240577698, 0.32362866401672363, 0.16769425570964813, -0.10305454581975937, -0.019895896315574646, -0.10880569368600845, -0.04190225154161453, -0.04880465567111969, 0.15221606194972992, 0.09070389717817307, -0.01151189673691988, -0.27188441157341003, 0.15520361065864563, -0.03595422953367233, -0.11073962599039078, 0.09138818830251694, -0.008396451361477375, 0.11242614686489105, 0.01782098039984703, 0.007072472479194403, 0.18863026797771454, -0.08682467043399811, 0.10944481939077377, -0.09200950711965561, -0.31602948904037476, -0.07627379894256592, -0.016067398712038994, -0.15557749569416046, -0.04327687993645668, 0.06329300999641418, -0.16904719173908234, -0.13790681958198547, -0.19544057548046112, 0.07418692857027054, -0.1346132755279541, -0.029129482805728912, -0.002362959086894989, -0.07871547341346741, -0.0604485422372818, -0.16827920079231262, 0.1922343224287033, -0.02164130099117756, -0.08296485990285873, 0.02533579058945179, -0.07676168531179428, 0.13774242997169495, 0.02930549904704094, 0.05389402434229851, 0.09991636872291565, -0.09372701495885849, 0.10575597733259201, 0.25354453921318054, -0.06224610283970833, -0.003923414740711451, -0.1112385168671608, -0.06370637565851212, -0.12541422247886658, 0.20576952397823334, 0.012883509509265423, -0.11959345638751984, 0.03867324814200401, 0.01420618500560522, 0.00081854552263394, -0.04654574766755104, -0.15348245203495026, -0.014824180863797665, -0.01658293791115284, 0.0022561848163604736, -0.04840189218521118, -0.16063040494918823, 0.09810705482959747, -0.09368401765823364, 0.14983491599559784, 0.06955656409263611, -0.09829915314912796, 0.22046911716461182, -0.049849238246679306, -0.13787822425365448, 0.05904003232717514, -0.07242123782634735, -0.02236384153366089, 0.10190031677484512, 0.0031740209087729454, 0.10952246934175491, -0.03567633777856827, -0.026194041594862938, -0.0004999736556783319, 0.049376264214515686, 0.08274006843566895, 0.08131268620491028, 0.1346113532781601, -0.24379698932170868, 0.261140376329422, 0.07207849621772766, 0.027675358578562737, 0.007082782220095396, 0.16830334067344666, 0.22620373964309692, 0.09323293715715408, 0.16811439394950867, -0.23117509484291077, 0.08137255162000656, 0.01952492631971836, -0.15247270464897156, 0.05177685618400574, -0.22651831805706024, 0.055954452604055405, 0.09504937380552292, -0.07388781756162643, 0.03121776692569256, 0.16105231642723083, -0.0076848589815199375, -0.046697285026311874, -0.03381197527050972, 0.1014096662402153, 0.09564919024705887, -0.03254300728440285, -0.027357090264558792, -0.10664771497249603, 0.023504357784986496, 0.034911107271909714, 0.009502783417701721, 0.10841453820466995, -0.11527096480131149, 0.027318382635712624, -0.060899220407009125, 0.043530434370040894, -0.033480118960142136, -0.06924043595790863, -0.0846327468752861, 0.08187083154916763, 0.09632828086614609, 0.07432310283184052, -0.007128394674509764, -0.1594858467578888, -0.02518904022872448, -0.010966665111482143, 0.02932194247841835, -0.035482361912727356, 0.05390124395489693, 0.10744096338748932, -0.05958963558077812, 0.0536535307765007, -0.013906145468354225, -0.04415813460946083, 0.11905036121606827, 0.04438501596450806, 0.06023040786385536, -0.08708634227514267, -0.05849036946892738, 0.13116532564163208, -0.14170216023921967, -0.03474484756588936, 0.03258626535534859, 0.014354849234223366, -0.0951806828379631, -0.040440164506435394, 0.12308406829833984, -0.05442311242222786, 0.037713129073381424, -0.07257398217916489, -0.054870590567588806, 0.20986439287662506, 0.2261941134929657, -0.028904903680086136, 0.030263913795351982, 0.029294855892658234, -0.08118422329425812, 0.07471667230129242, 0.2561854422092438, -0.08021204173564911, 0.15032902359962463, -0.17445829510688782, -0.020605826750397682, 0.01849198155105114, 0.06266222894191742, 0.35438060760498047, 0.0372781977057457, -0.1897784173488617, -0.00816169660538435, 0.11316855251789093, -0.14797629415988922, 0.06089619919657707, -0.17219680547714233, 0.11041169613599777, -0.0034819620195776224, 0.025029746815562248, -0.121038056910038, -0.25653108954429626, -0.1252199411392212, -0.12990254163742065, 0.10873810201883316, 0.17722323536872864, 0.10875103622674942, -0.12524402141571045, -0.07264244556427002, -0.07552284002304077, -0.07150138914585114, 0.05468752607703209, -0.1334959715604782, 0.0011381860822439194, 0.01730935648083687, -0.18327896296977997, -0.009138667024672031, 0.11905010789632797, 0.11401356011629105, -0.26216548681259155, -0.023102251812815666, -0.13337469100952148, 0.12627115845680237, -0.06304197758436203, 0.0829649493098259, 0.1968323141336441, 0.05337231978774071, -0.012555534951388836, -0.04939437285065651, -0.005726763512939215, -0.004316592123359442, 0.1645916849374771, -0.10408761352300644, -0.22567439079284668, -0.06392144411802292, 0.1211085319519043, -0.002410469576716423, -0.11623843014240265, 0.02525465190410614, -0.05933847278356552, 0.024782687425613403, -0.08788339048624039, 0.06609370559453964, -0.16652753949165344, -0.0751037448644638, 0.01643267087638378, -0.04544829949736595, -0.11815214157104492, -0.08314130455255508, 0.00863609928637743, -0.062061432749032974, -0.003963814582675695, 0.022786937654018402, 0.15779894590377808, -0.016228243708610535, 0.019768934696912766, 0.015908824279904366, -0.17021454870700836, -0.036652229726314545, -0.08635684102773666, 0.3736448585987091, 0.05546099320054054, 0.011341787874698639, 0.04858383163809776, -0.18710048496723175, 0.06722880154848099, 0.05906897410750389, 0.014865901321172714, 0.1850322037935257, 0.1721155196428299, -0.0441073440015316, 0.011041016317903996, 0.13664722442626953, -0.03299267962574959, 0.15049542486667633, -0.07188734412193298, -0.029845863580703735, -0.038428179919719696, 0.17367039620876312, 0.020599042996764183, 0.250951886177063, -0.09921614825725555, -0.11069509387016296, -0.10324600338935852, -0.16706709563732147, -0.11040390282869339, -0.04444029927253723, 0.0019049720140174031, -0.12079816311597824, -0.0020280038006603718, -0.08988303691148758, 0.07905374467372894, 0.08951137959957123, 0.06268081814050674, 0.047113362699747086, -0.03071054257452488, -0.08671770989894867, 0.10318515449762344, 0.15342997014522552, 0.010922111570835114, 0.10339918732643127, 0.046015266329050064, 0.13118760287761688, 0.025918181985616684, 0.23660965263843536, -0.06352171301841736, -0.17827340960502625, -0.003397609107196331, -0.104881152510643, 0.10549296438694, -0.09079041332006454, 0.05208320543169975, 0.12693199515342712, 0.003246901324018836, -0.03928954899311066, -0.1483427733182907, -0.14160695672035217, 0.0766431987285614, -0.046367134898900986, 0.19820939004421234, 0.07927307486534119, 0.05894237011671066, 0.07320871204137802, 0.04634459316730499, -0.09712754935026169, -0.07148244231939316, -0.10715367645025253, -0.0581529401242733, 0.20024298131465912, 0.08160407841205597, 0.04787929356098175, -0.12760373950004578, -0.11365646868944168, -0.1626586616039276, -0.11103903502225876, 0.18879856169223785, 0.05233542621135712, -0.057165004312992096, -0.06246458366513252, 0.13659340143203735, 0.16752178966999054, -0.11054348945617676, 0.1680312603712082, 0.03286965191364288, -0.025513488799333572, 0.05398602783679962, -0.024810804054141045, 0.10452540963888168, 0.05215821415185928, -0.01812838949263096, -0.12012702971696854, 0.10732953995466232, -0.01789931021630764, -0.060090482234954834, -0.26862218976020813, 0.04778594523668289, -0.132890984416008, 0.11514482647180557, 0.02699277736246586, 0.0881490632891655, 0.1947278380393982, 0.03320639207959175, -0.033574141561985016, 0.031056925654411316, -0.04814303666353226, 0.005734287202358246, -0.027343405410647392, 0.11093975603580475, 0.022527439519762993, 0.08874824643135071, 0.05969686806201935, -0.007494400255382061, -0.09432400017976761, -0.030804822221398354, 0.013520782813429832, -0.3423343002796173, 0.0006541582988575101, -0.10064730793237686, 0.037883460521698, -0.035798199474811554, -0.09297797828912735, 0.0037547077517956495, 0.24191835522651672, -0.11471841484308243, -0.1425955593585968, -0.19429771602153778, -0.042876992374658585, -0.04880369454622269, -0.03310585767030716, 0.03260312229394913, 0.10510686784982681, -0.0959211066365242, -0.09298651665449142, -2.2798457264176962e-32, -0.071476049721241, 0.09375133365392685, 0.02903350628912449, 0.1390148252248764, -0.02678665518760681, -0.09025681018829346, -0.04293164983391762, -0.14007380604743958, 0.05493328720331192, -0.04071841388940811, -0.11499487608671188, 0.12167921662330627, 0.033646587282419205, -0.058840397745370865, -0.07769986987113953, -0.07967432588338852, 0.050716765224933624, 0.07002204656600952, -0.013994082808494568, 0.0007357230642810464, 0.1877528727054596, -0.05662082880735397, 0.08308807015419006, 0.039765529334545135, -0.15960563719272614, -0.10524576902389526, -0.06167740747332573, 0.037603940814733505, 0.051758527755737305, -0.19341981410980225, 0.0819079652428627, -0.0011056166840717196, -0.04937132075428963, -0.08442864567041397, -0.09585852175951004, 0.10953908413648605, -0.33387038111686707, 0.1152692437171936, -0.3007631301879883, 0.21767643094062805, 0.03735680878162384, 0.1265745311975479, 0.3184207081794739, -0.12588365375995636, 0.019085701555013657, -0.133136585354805, 0.00047098190407268703, 0.05481775850057602, 0.07828059792518616, 0.03426464647054672, -0.2782469093799591, -0.11238134652376175, -0.11038989573717117, -0.1035689115524292, 0.161478653550148, 0.06301559507846832, 0.000058843936130870134, -0.15516617894172668, -0.18415020406246185, -0.00952847022563219, 0.25429007411003113, 0.013827030546963215, 0.022428538650274277, 0.12235963344573975, 0.09403342753648758, -0.06834394484758377, 0.10131288319826126, -0.03318841755390167, 0.044315777719020844, 0.09150222688913345, -0.003964909818023443, 0.13263826072216034, 0.1591065227985382, 0.03733894228935242, -0.09970533102750778, -0.021566031500697136, 0.1480029970407486, 0.21232591569423676, -0.1399080604314804, 0.05460796877741814, -0.20874951779842377, 0.028569184243679047, 0.11474353075027466, 0.0009232521406374872, 0.14898008108139038, -0.051857031881809235, 0.0158461295068264, 0.21100112795829773, -0.05173703283071518, -0.02588878758251667, -0.14468809962272644, 0.24164654314517975, -0.0006155346636660397, -0.131907656788826, 0.10313111543655396, 0.22576278448104858, -0.0848064124584198, 0.1039154976606369, -0.06630046665668488, -0.16616661846637726, 0.01359890028834343, -0.16625918447971344, 0.2286127656698227, 0.295531690120697, 0.17808249592781067, 0.08700510114431381, 0.1713535189628601, 0.09464644640684128, -0.270639032125473, 0.04945529252290726, 0.04565085843205452, -0.08953641355037689, 0.08086712658405304, -0.18706801533699036, -0.028951507061719894, 0.0025151418522000313, 0.006076312158256769, -0.022059548646211624, -0.024137599393725395, 0.012066741473972797, -0.0681769847869873, 0.07318294048309326, 0.043425627052783966, -0.11951667070388794, -0.1158914640545845, -0.0735185518860817, 0.04841342195868492, -0.025529006496071815, 0.18433777987957, -0.15247847139835358, -0.02433822676539421, -0.12499433755874634, 7.290921644198534e-7, -0.13088813424110413, 0.15635086596012115, 0.08732537925243378, -0.022994475439190865, -0.14664454758167267, 0.14331962168216705, -0.13646553456783295, 0.04515712708234787, 0.12129564583301544, 0.11128614842891693, 0.1271987408399582, -0.20770734548568726, -0.05554426088929176, 0.02340897172689438, -0.010722924955189228, -0.16597016155719757, 0.012771902605891228, 0.025433408096432686, 0.008756010793149471, 0.0988798439502716, 0.26232919096946716, 0.15075498819351196, -0.08470042794942856, -0.026143746450543404, -0.026021257042884827, -0.06917115300893784, -0.010923048481345177, 0.09591683745384216, 0.18776081502437592, 0.08923833072185516, 0.06783667206764221, -0.0795729011297226, 0.04580923542380333, 0.1368585079908371, -0.07739661633968353, 0.16286475956439972, -0.08449787646532059, -0.02012413553893566, 0.018762802705168724, 0.12825974822044373, 0.06928648054599762, -0.06619199365377426, -0.12114550918340683, -0.09647543728351593, -0.0262793879956007, -0.23251096904277802, -0.07691388577222824, 0.18846730887889862, -0.3203352987766266, 0.1350783258676529, -0.11305233091115952, 0.05703422799706459, 0.1430695652961731, 0.02843514084815979, -0.009359016083180904, 0.06970467418432236, -0.04452972114086151, 0.003826326224952936, -0.013506441377103329, -0.03417200222611427, -0.022108741104602814, 0.12241704761981964, 0.13867366313934326, -0.04646410793066025, 0.01588011346757412, 0.05578559264540672, -0.06404982507228851, 3.153418109303072e-34, 0.022118279710412025, 0.15084436535835266, 0.013998978771269321, -0.07889331132173538, 0.08149527758359909, -0.13903126120567322, 0.32299143075942993, 0.0060255806893110275, -0.010217015631496906, -0.1851339191198349, -0.10684806108474731 ]
https://github.com/huggingface/datasets/issues/2595
ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets
Hi @profsatwinder. It looks like you are using an old version of `datasets`. Please update it with `pip install -U datasets` and indicate if the problem persists.
Error traceback: --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-8-a7b592d3bca0> in <module>() 1 from datasets import load_dataset, load_metric 2 ----> 3 common_voice_train = load_dataset("common_voice", "pa-IN", split="train+validation") 4 common_voice_test = load_dataset("common_voice", "pa-IN", split="test") 9 frames /root/.cache/huggingface/modules/datasets_modules/datasets/common_voice/078d412587e9efeb0ae2e574da99c31e18844c496008d53dc5c60f4159ed639b/common_voice.py in <module>() 19 20 import datasets ---> 21 from datasets.tasks import AutomaticSpeechRecognition 22 23 ModuleNotFoundError: No module named 'datasets.tasks'
27
ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets Error traceback: --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-8-a7b592d3bca0> in <module>() 1 from datasets import load_dataset, load_metric 2 ----> 3 common_voice_train = load_dataset("common_voice", "pa-IN", split="train+validation") 4 common_voice_test = load_dataset("common_voice", "pa-IN", split="test") 9 frames /root/.cache/huggingface/modules/datasets_modules/datasets/common_voice/078d412587e9efeb0ae2e574da99c31e18844c496008d53dc5c60f4159ed639b/common_voice.py in <module>() 19 20 import datasets ---> 21 from datasets.tasks import AutomaticSpeechRecognition 22 23 ModuleNotFoundError: No module named 'datasets.tasks' Hi @profsatwinder. It looks like you are using an old version of `datasets`. Please update it with `pip install -U datasets` and indicate if the problem persists.
[ 0.06847701966762543, -0.012243841774761677, -0.10928558558225632, -0.14200469851493835, 0.06358112394809723, 0.07332555949687958, 0.20840182900428772, 0.007443478796631098, -0.012534499168395996, 0.240188866853714, -0.07723162323236465, -0.02308814413845539, -0.056145500391721725, -0.07664987444877625, 0.06754755973815918, -0.08832353353500366, -0.11596233397722244, -0.04957148805260658, 0.09138313680887222, 0.08727812767028809, -0.031646035611629486, 0.09843768179416656, 0.013750066049396992, -0.0033282116055488586, -0.032533910125494, -0.22407764196395874, -0.018506644293665886, 0.024576112627983093, -0.03602806106209755, -0.01742118038237095, 0.15957678854465485, -0.014998198486864567, 0.24180470407009125, 0.32645344734191895, 0.000005951763796474552, 0.04942268878221512, 0.216727152466774, -0.0678962767124176, -0.08594245463609695, -0.1347859799861908, -0.02129157818853855, 0.182235985994339, -0.01655375026166439, 0.036927152425050735, 0.03905070200562477, 0.02900567837059498, 0.0005008605076000094, 0.03354119509458542, 0.11264296621084213, 0.0397028885781765, 0.047996602952480316, 0.10960469394922256, 0.031000440940260887, -0.26865312457084656, 0.17084743082523346, -0.05254600569605827, 0.0118377935141325, 0.02132052183151245, -0.030109494924545288, -0.11434376239776611, 0.11768007278442383, -0.005210700910538435, -0.006913559511303902, -0.0005852750618942082, -0.09355765581130981, 0.0011315495939925313, -0.16525626182556152, -0.09205388277769089, -0.048615675419569016, 0.28423023223876953, 0.06971883773803711, 0.1047576293349266, -0.19535164535045624, -0.02495584823191166, -0.05556577816605568, -0.1609002649784088, -0.1522805243730545, -0.08808086812496185, 0.0056014591827988625, 0.04442388936877251, 0.032045572996139526, -0.10157842189073563, 0.08916620910167694, -0.03762486204504967, 0.04614065960049629, -0.06563294678926468, -0.1269165724515915, 0.09861700236797333, -0.0004966622800566256, -0.16619619727134705, 0.07422806322574615, 0.015510434284806252, 0.004996877163648605, -0.09365486353635788, 0.055421676486730576, -0.007725435309112072, -0.060444366186857224, -0.07882335782051086, -0.03182607144117355, 0.03442353382706642, -0.09486744552850723, -0.19504736363887787, -0.14518305659294128, 0.1988409161567688, -0.013186676427721977, 0.0829651728272438, 0.08826801180839539, 0.025339879095554352, -0.008391473442316055, 0.06551606953144073, -0.04936588928103447, 0.11768355220556259, -0.14141350984573364, -0.16576232016086578, 0.1797027438879013, 0.05830639228224754, 0.09296820312738419, -0.031131533905863762, -0.18804199993610382, 0.036649562418460846, 0.073560930788517, 0.08774886280298233, -0.06503327935934067, 0.11525711417198181, 0.12692932784557343, 0.01678040251135826, -0.0020178419072180986, 0.23254097998142242, -0.08543666452169418, -0.01037692278623581, -0.13630624115467072, 0.2200586497783661, 0.08392007648944855, -0.06782519072294235, 0.17733976244926453, -0.07722371816635132, -0.061447735875844955, -0.2645169496536255, -0.060953959822654724, 0.0721840038895607, 0.043221037834882736, -0.03157956153154373, -0.24112699925899506, 0.05618903040885925, 0.04755021631717682, -0.023910464718937874, -0.000703865138348192, 0.03560132160782814, -0.03562009707093239, -0.09131942689418793, -0.273580938577652, 0.13425293564796448, 0.13497842848300934, 0.1416923701763153, 0.08330728858709335, 0.029631774872541428, -0.09632083773612976, 0.03972272947430611, -0.19912832975387573, -0.09095926582813263, 0.12823180854320526, -0.060277704149484634, 0.009173314087092876, 0.09184219688177109, 0.06313071399927139, 0.12593424320220947, 0.1480320692062378, -0.042362283915281296, -0.10236148536205292, -0.10539485514163971, 0.048274554312229156, 0.01181157398968935, 0.03172701224684715, 0.1062157154083252, -0.07304371893405914, 0.17881792783737183, -0.11001769453287125, -0.12604431807994843, -0.23666611313819885, -0.07850529253482819, 0.16052842140197754, -0.03319597244262695, 0.09318375587463379, -0.07746394723653793, 0.08798752725124359, -0.08924699574708939, 0.03597336634993553, -0.021477598696947098, -0.034035976976156235, -0.011447680182754993, 0.019896410405635834, -0.04461415484547615, 0.058356206864118576, 0.02963971719145775, 0.12172029912471771, -0.1542688012123108, 0.05457216501235962, -0.03176175057888031, -0.029413944110274315, -0.16968350112438202, 0.02481006644666195, -0.04310516268014908, -0.002716552931815386, -0.06112613156437874, 0.04752717912197113, -0.24780242145061493, -0.05400874838232994, 0.0033860469702631235, 0.07070515304803848, -0.05876345559954643, -0.11226122081279755, 0.06429258733987808, -0.11844297498464584, -0.027312640100717545, -0.0684383437037468, -0.006609240546822548, -0.06232635676860809, -0.0999191403388977, -0.05080614238977432, 0.05446874350309372, -0.0632915273308754, 0.20697374641895294, 0.018149295821785927, 0.07956404983997345, -0.16155336797237396, 0.05498702824115753, -0.10263985395431519, 0.0034806763287633657, 0.17693275213241577, 0.18421626091003418, -0.176924929022789, -0.007446226663887501, -0.019980061799287796, 0.0004511552397161722, 0.05158831551671028, -0.04850715026259422, -0.003289947286248207, -0.18196119368076324, -0.028055340051651, -0.10702184587717056, -0.08343681693077087, 0.07786975055932999, -0.07685309648513794, -0.06037107855081558, 0.020036401227116585, 0.10029438883066177, -0.10696051269769669, 0.0675840824842453, 0.020759087055921555, -0.0045377276837825775, 0.33120936155319214, 0.02937689982354641, -0.16773316264152527, 0.08302430808544159, 0.1745252162218094, -0.04551943019032478, 0.1080886647105217, 0.04747267812490463, -0.0898800641298294, -0.19836163520812988, 0.25145474076271057, 0.0005558507982641459, 0.013926484622061253, 0.034863170236349106, 0.12871718406677246, -0.1338271051645279, 0.12002820521593094, -0.2240266054868698, 0.056346215307712555, 0.15484946966171265, -0.08579093217849731, -0.05427231267094612, -0.06146175414323807, -0.16254045069217682, -0.02803494967520237, -0.030514314770698547, 0.01168579701334238, 0.02745828591287136, 0.044128257781267166, -0.07974850386381149, -0.33434486389160156, -0.037466440349817276, -0.07195385545492172, -0.0333891399204731, 0.07775624096393585, 0.015021373517811298, -0.056672997772693634, -0.144086092710495, 0.05973782390356064, -0.01606355607509613, 0.0013305936008691788, 0.14144624769687653, 0.012021424248814583, -0.14847689867019653, -0.08914412558078766, 0.10312683880329132, 0.11768107116222382, -0.09796501696109772, -0.05922030285000801, -0.11755829304456711, -0.03392285481095314, -0.014171996153891087, 0.18093736469745636, -0.013871043920516968, 0.010503350757062435, 0.0032889924477785826, 0.1255570650100708, 0.20675180852413177, 0.009140354581177235, -0.013186445459723473, 0.019027316942811012, -0.1031680628657341, 0.03580596297979355, 0.04650250822305679, 0.05991896614432335, -0.0049528623931109905, 0.03502354398369789, -0.12509065866470337, 0.003677536267787218, 0.041234008967876434, -0.05514241382479668, -0.0021472047083079815, -0.03569476306438446, 0.023136381059885025, -0.09029655903577805, -0.015089769847691059, -0.3824957311153412, -0.08089996129274368, 0.06672640144824982, -0.10976975411176682, -0.12767627835273743, 0.13923487067222595, -0.09130161255598068, -0.1199062317609787, 0.0455872006714344, 0.04281717538833618, -0.17991173267364502, 0.04159637168049812, 0.15195490419864655, 0.03653638809919357, -0.045127060264348984, -0.012818309478461742, -0.2151510864496231, 0.09023456275463104, -0.07330997288227081, -0.05688031017780304, -0.059849608689546585, -0.04152027517557144, -0.07708366960287094, -0.0643840804696083, 0.18168087303638458, 0.14675211906433105, 0.005565471947193146, 0.01973419077694416, 0.011631807312369347, 0.13533680140972137, -0.10440471023321152, 0.16048070788383484, -0.13249628245830536, 0.06014452502131462, 0.1294085532426834, -0.09285622835159302, 0.25088271498680115, 0.0578879676759243, 0.011610511690378189, 0.1390494406223297, 0.17182539403438568, 0.1809583157300949, -0.18119962513446808, -0.06956861913204193, 0.034146420657634735, 0.014073498547077179, 0.10317930579185486, 0.058204248547554016, 0.023890145123004913, 0.06772348284721375, -0.18493419885635376, -0.08442861586809158, 0.09152024984359741, -0.006217276211827993, -0.07878336310386658, -0.12244696170091629, -0.06285060197114944, 0.1581353396177292, 0.04652582108974457, -0.029154956340789795, -0.07387638092041016, 0.12433580309152603, -0.03091239556670189, 0.02387555129826069, 0.011131377890706062, -0.01822180673480034, 0.048209596425294876, -0.1685010939836502, 0.1022772490978241, -0.1036110520362854, 0.16409792006015778, -0.1219940260052681, 0.03189341723918915, -0.07172469794750214, 0.047953277826309204, -0.04428930580615997, 0.11288432776927948, -0.014371862635016441, 0.01077292300760746, 0.058695238083601, 0.1264876127243042, -0.04626023769378662, -0.05995095521211624, -0.11173876374959946, 0.0371132530272007, -0.014024125412106514, -0.034305475652217865, 0.04821009933948517, 0.23606990277767181, 0.04078130051493645, -0.039749134331941605, -0.1097940057516098, -0.17097428441047668, -0.20724928379058838, -0.1447300761938095, -0.007485536392778158, 0.11614258587360382, 0.06851374357938766, 0.030598483979701996, 0.00010151609603781253, 0.051437634974718094, -0.024890048429369926, 0.23215985298156738, -0.02836650423705578, 0.1232910230755806, -0.09332423657178879, -0.001457833917811513, 0.1457231044769287, 0.03685537353157997, -0.05042247846722603, 0.296748548746109, -0.0701039507985115, -0.15950682759284973, -0.06846840679645538, -0.07168153673410416, 0.1387387216091156, 0.10223551094532013, -0.003064025891944766, 0.12957607209682465, 0.019337929785251617, -0.1099727526307106, -0.03494691103696823, -0.026978904381394386, -0.019687840715050697, 0.07871375977993011, -0.10250651836395264, -0.22022812068462372, -0.23527084290981293, 0.14309069514274597, 0.13405387103557587, 0.14052146673202515, -0.09962090104818344, -0.04119497910141945, -0.009376577101647854, -0.17748135328292847, -0.0298552718013525, -0.09595807641744614, -0.06179409846663475, 0.11424200236797333, -0.009250497445464134, 0.08418967574834824, -0.22817398607730865, 0.07294200360774994, 0.16903656721115112, -0.016016606241464615, 0.0384746752679348, 0.01818070560693741, 0.14149220287799835, 0.20612281560897827, -0.11598684638738632, 0.09887609630823135, -0.01570725254714489, -0.08455809205770493, -0.001264536171220243, 0.15351976454257965, 0.13085846602916718, 0.08592996001243591, -0.07148442417383194, -0.16826309263706207, 0.0733795091509819, 0.13085968792438507, -0.13148418068885803, -0.034741319715976715, 0.006353127304464579, 0.015177074819803238, 0.02096964605152607, 0.04034731537103653, 0.013979366980493069, 0.1600336730480194, 0.049382880330085754, -0.025808734819293022, 0.19993984699249268, -0.08482244610786438, 0.05937464162707329, 0.021533988416194916, -0.10921633243560791, 0.13742519915103912, 0.04617059975862503, 0.02444547973573208, -0.218258798122406, 0.13885746896266937, 0.09421773254871368, -0.0022604111582040787, -0.20570437610149384, 0.09030701965093613, 0.03309047222137451, -0.05559505894780159, -0.22233827412128448, -0.05915147066116333, 0.05503741651773453, 0.08828307688236237, 0.010329148732125759, -0.06344912946224213, 0.0935412347316742, 0.01771581918001175, -0.022939084097743034, 0.037270668894052505, -0.049836400896310806, 0.16329285502433777, -0.010083810426294804, 0.02957172878086567, 0.11013463884592056, 0.19182658195495605, 0.10093142837285995, -0.09573902934789658, 0.24458612501621246, -0.01622576266527176, -0.10724395513534546, -0.0800679624080658, -0.09430471062660217, 0.20201222598552704, -0.05710848793387413, 0.1369817852973938, -0.037852078676223755, 0.10561922192573547, -0.14932052791118622, 0.0026244553737342358, 0.00016697261889930815, 0.02780892699956894, 0.06158728525042534, 0.0953216552734375, -0.07859375327825546, -0.013357334770262241, 0.03103136271238327, -0.0389612652361393, 0.13237743079662323, 0.05815679207444191, -0.021501796320080757, 0.06540555506944656, -2.638073221726973e-32, -0.09965552389621735, 0.10927600413560867, -0.0009106418583542109, 0.11075261235237122, -0.28073424100875854, 0.17125122249126434, -0.07888220250606537, 0.06055793911218643, -0.04638798162341118, -0.10945424437522888, 0.038751088082790375, 0.059748146682977676, -0.03974908962845802, 0.005832727532833815, -0.09229351580142975, 0.034052275121212006, -0.03293951600790024, -0.07397879660129547, 0.05599652975797653, 0.10659769922494888, 0.07944764196872711, 0.050946757197380066, 0.057688865810632706, -0.04723021760582924, -0.18308787047863007, 0.12405391037464142, -0.0461101271212101, -0.04884816333651543, 0.08812230825424194, -0.01927916519343853, -0.0008827298879623413, 0.1418915092945099, 0.07761316746473312, -0.12965281307697296, -0.03702157735824585, 0.2462615966796875, -0.08600565046072006, -0.19731169939041138, -0.19511158764362335, 0.018216602504253387, 0.005432529840618372, 0.11483801156282425, -0.008693876676261425, -0.12061327695846558, 0.09264998883008957, 0.21659274399280548, 0.026729969307780266, -0.14463481307029724, 0.1307593584060669, 0.0496981181204319, -0.0010531203588470817, 0.07359172403812408, -0.060286011546850204, 0.1014312133193016, 0.12951932847499847, 0.06637569516897202, -0.04077615961432457, 0.05589890107512474, -0.12750963866710663, 0.10374213755130768, 0.03547123819589615, -0.0472613126039505, -0.015352423302829266, 0.08542042225599289, 0.05326444283127785, 0.08431258052587509, 0.3613509237766266, -0.13717949390411377, 0.07138635963201523, -0.00701629463583231, 0.040998175740242004, 0.08744478970766068, -0.053504105657339096, -0.08186285942792892, -0.3577998876571655, -0.044661279767751694, -0.17256474494934082, 0.08908602595329285, 0.10208819061517715, -0.11068485677242279, 0.05277113616466522, 0.09262162446975708, -0.09629373252391815, -0.07148497551679611, 0.021869633346796036, 0.2111184000968933, 0.007334533613175154, 0.08421551436185837, -0.15283282101154327, 0.03733466565608978, -0.024614008143544197, 0.18227088451385498, -0.044727910310029984, -0.04961726814508438, -0.06396763771772385, 0.07257520407438278, -0.024438081309199333, 0.07000790536403656, -0.0028097080066800117, 0.0643707662820816, -0.15290957689285278, -0.09800782054662704, 0.13034050166606903, 0.12464959919452667, 0.12320400029420853, -0.1515646129846573, 0.06310933083295822, 0.004606565460562706, -0.1482037901878357, -0.0718371719121933, -0.03192136436700821, 0.014844703488051891, 0.25216180086135864, 0.3206762671470642, 0.11097606271505356, -0.014950600452721119, -0.11722211539745331, -0.1479301154613495, 0.11789866536855698, -0.0544571615755558, -0.2305677831172943, -0.04309436306357384, -0.2059645801782608, -0.028284642845392227, -0.009760037064552307, -0.01903327740728855, -0.14602939784526825, -0.12283137440681458, 0.0705673024058342, 0.03851719945669174, -0.1005018800497055, -0.16842271387577057, 7.292597956620739e-7, -0.22571076452732086, 0.034794919192790985, 0.07227564603090286, -0.007084854878485203, -0.002395852003246546, 0.08983967453241348, -0.24676506221294403, 0.014132780022919178, 0.05905831232666969, 0.11436568945646286, 0.1711653470993042, -0.06016015633940697, -0.03749718517065048, -0.02490745671093464, 0.07847343385219574, -0.11878618597984314, -0.13296708464622498, -0.03897467255592346, -0.04469507932662964, 0.05606968328356743, 0.12758494913578033, 0.19807638227939606, 0.18263503909111023, -0.10305965691804886, -0.08915446698665619, -0.09755049645900726, -0.09444382786750793, -0.08233923465013504, 0.08342200517654419, -0.07000682502985, -0.03149741142988205, 0.015344426967203617, -0.16418668627738953, 0.2793532907962799, 0.012660795822739601, -0.1064174473285675, -0.05836404114961624, -0.1492159366607666, 0.07121317833662033, 0.008675426244735718, -0.10680001974105835, 0.14835111796855927, -0.0017674636328592896, -0.046790122985839844, 0.15744666755199432, 0.037384551018476486, -0.006696624215692282, -0.1474301815032959, -0.13811388611793518, 0.04604244604706764, 0.07845832407474518, 0.19347712397575378, 0.0760677233338356, 0.14727528393268585, -0.01797444559633732, 0.004288541618734598, -0.2188596874475479, -0.032318077981472015, 0.12197107821702957, 0.03501177206635475, -0.2349785417318344, -0.13961993157863617, -0.03732135519385338, -0.041906535625457764, -0.06913216412067413, -0.08136396110057831, 0.05463676527142525, -3.4267459728222526e-35, -0.1098567470908165, 0.005294211208820343, 0.022421110421419144, -0.18829621374607086, -0.11864655464887619, 0.08047164231538773, 0.11154085397720337, -0.10912305861711502, 0.14195550978183746, -0.14626604318618774, -0.068666473031044 ]
https://github.com/huggingface/datasets/issues/2595
ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets
@albertvillanova Thanks for the information. I updated it to 1.9.0 and the issue is resolved. Thanks again.
Error traceback: --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-8-a7b592d3bca0> in <module>() 1 from datasets import load_dataset, load_metric 2 ----> 3 common_voice_train = load_dataset("common_voice", "pa-IN", split="train+validation") 4 common_voice_test = load_dataset("common_voice", "pa-IN", split="test") 9 frames /root/.cache/huggingface/modules/datasets_modules/datasets/common_voice/078d412587e9efeb0ae2e574da99c31e18844c496008d53dc5c60f4159ed639b/common_voice.py in <module>() 19 20 import datasets ---> 21 from datasets.tasks import AutomaticSpeechRecognition 22 23 ModuleNotFoundError: No module named 'datasets.tasks'
17
ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets Error traceback: --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-8-a7b592d3bca0> in <module>() 1 from datasets import load_dataset, load_metric 2 ----> 3 common_voice_train = load_dataset("common_voice", "pa-IN", split="train+validation") 4 common_voice_test = load_dataset("common_voice", "pa-IN", split="test") 9 frames /root/.cache/huggingface/modules/datasets_modules/datasets/common_voice/078d412587e9efeb0ae2e574da99c31e18844c496008d53dc5c60f4159ed639b/common_voice.py in <module>() 19 20 import datasets ---> 21 from datasets.tasks import AutomaticSpeechRecognition 22 23 ModuleNotFoundError: No module named 'datasets.tasks' @albertvillanova Thanks for the information. I updated it to 1.9.0 and the issue is resolved. Thanks again.
[ 0.0260312482714653, -0.015145529992878437, -0.08960328996181488, -0.16625812649726868, 0.05744997411966324, 0.07331033796072006, 0.18985135853290558, -0.007455405313521624, -0.039502594619989395, 0.19778263568878174, -0.03400195389986038, 0.010341365821659565, -0.08475437760353088, -0.07430915534496307, 0.07329515367746353, 0.0021387392189353704, -0.1249224916100502, -0.028415702283382416, 0.0900668352842331, 0.08805443346500397, -0.047706905752420425, 0.09407556802034378, 0.004494985565543175, 0.027663499116897583, -0.025895074009895325, -0.22224001586437225, -0.05939974635839462, 0.02664242871105671, -0.048013441264629364, -0.03200795128941536, 0.1441500037908554, -0.03551314398646355, 0.2272050827741623, 0.3441990613937378, 0.000006030702934367582, 0.015455239452421665, 0.1960502564907074, -0.07780104875564575, -0.11584717035293579, -0.17131075263023376, -0.06840256601572037, 0.1673084795475006, -0.007465272676199675, 0.05804060399532318, 0.046227067708969116, 0.014264986850321293, -0.01790890097618103, 0.08967616409063339, 0.04168928042054176, 0.04226232320070267, 0.06027944013476372, 0.16028833389282227, 0.02838730439543724, -0.2585125267505646, 0.17790280282497406, -0.037139374762773514, 0.013465884141623974, 0.06202036887407303, -0.02238892950117588, -0.10891196131706238, 0.12430478632450104, 0.03950341045856476, -0.011602181941270828, -0.06865116953849792, -0.06697099655866623, -0.01800614595413208, -0.21012823283672333, -0.09774245321750641, -0.007938127964735031, 0.26371079683303833, 0.08149219304323196, 0.10721641033887863, -0.20378437638282776, -0.020241158083081245, -0.0373847596347332, -0.14092303812503815, -0.1512776017189026, -0.06636080890893936, -0.020165763795375824, 0.031431324779987335, 0.024686558172106743, -0.07565370947122574, 0.1189955398440361, -0.023359276354312897, 0.06730666011571884, -0.028666827827692032, -0.13981114327907562, 0.10238216817378998, 0.048003725707530975, -0.1414009928703308, 0.06433212757110596, -0.0037791957147419453, 0.023556942120194435, -0.07685751467943192, 0.1044033020734787, -0.014697949402034283, -0.02183590829372406, -0.09533688426017761, -0.06793081760406494, -0.011857489123940468, -0.05641961470246315, -0.18939679861068726, -0.14723192155361176, 0.20001494884490967, -0.0039787571877241135, 0.10806132107973099, 0.09740065783262253, 0.046993009746074677, 0.021319754421710968, 0.09034914523363113, -0.019085561856627464, 0.09453751891851425, -0.1430518925189972, -0.1633770912885666, 0.14297012984752655, 0.08506152033805847, 0.09419611841440201, 0.029477272182703018, -0.14167584478855133, -0.018264299258589745, 0.11059696972370148, 0.08092452585697174, -0.07035194337368011, 0.0894077941775322, 0.10453581064939499, -0.009855933487415314, 0.01585908606648445, 0.20760004222393036, -0.08719220757484436, 0.018620286136865616, -0.1324785202741623, 0.19940811395645142, 0.06773987412452698, -0.07635880261659622, 0.15727898478507996, -0.1172863319516182, -0.05383884161710739, -0.26894107460975647, -0.053810928016901016, 0.04651770368218422, 0.04534134641289711, -0.004813185427337885, -0.2156420797109604, 0.04211936146020889, 0.027709616348147392, -0.025867940858006477, -0.020222272723913193, 0.039332859218120575, -0.04688169062137604, -0.06955596059560776, -0.2868005633354187, 0.10683835297822952, 0.11613369733095169, 0.1374584138393402, 0.08569364994764328, 0.03140511363744736, -0.09284483641386032, 0.041731640696525574, -0.18862755596637726, -0.10985145717859268, 0.12574009597301483, -0.036580316722393036, 0.007049333769828081, 0.060721252113580704, 0.047136448323726654, 0.09530135989189148, 0.0983058288693428, -0.06895983964204788, -0.11161517351865768, -0.09822544455528259, 0.01995169185101986, -0.0144936079159379, 0.004592945799231529, 0.09780888259410858, -0.07057227939367294, 0.18733681738376617, -0.10422778129577637, -0.13205476105213165, -0.23351991176605225, -0.06333939731121063, 0.14165624976158142, -0.04769447445869446, 0.07619857788085938, -0.08402635157108307, 0.09802891314029694, -0.07311809062957764, 0.034829821437597275, 0.04458373039960861, -0.016955597326159477, -0.03598622977733612, 0.0204487182199955, -0.02787499874830246, 0.0398232527077198, 0.03639337420463562, 0.1722610592842102, -0.11789476126432419, 0.030643338337540627, -0.04856500402092934, -0.011840223334729671, -0.16007135808467865, 0.014970353804528713, -0.05807332322001457, -0.011394841596484184, -0.05068722367286682, 0.05779460445046425, -0.19295501708984375, -0.0710873007774353, 0.019733209162950516, 0.055173881351947784, -0.007702886126935482, -0.1811809241771698, 0.04750329628586769, -0.09637366235256195, -0.008076164871454239, -0.03512289375066757, -0.015415622852742672, -0.007493369281291962, -0.1284312903881073, -0.06208484247326851, 0.016201060265302658, -0.05205357074737549, 0.1800673007965088, 0.030739182606339455, 0.09084461629390717, -0.1935112178325653, 0.06550592184066772, -0.11274376511573792, -0.029452770948410034, 0.19245004653930664, 0.20136354863643646, -0.17673251032829285, -0.008484970778226852, -0.019395239651203156, -0.01847398839890957, 0.03494833782315254, -0.029091812670230865, -0.027202358469367027, -0.18880590796470642, -0.026013804599642754, -0.07867314666509628, -0.1003434956073761, 0.0811149924993515, -0.04288557544350624, -0.0322757288813591, 0.06304420530796051, 0.11643945425748825, -0.05859316512942314, 0.04713720455765724, 0.05751310661435127, -0.007225509732961655, 0.27985671162605286, 0.022005490958690643, -0.1578982174396515, 0.09123304486274719, 0.13651089370250702, -0.07318039983510971, 0.07986358553171158, 0.05641113221645355, -0.05638713762164116, -0.20617064833641052, 0.269906610250473, -0.0026285522617399693, 0.02528870664536953, 0.008205989375710487, 0.11947310715913773, -0.11742866784334183, 0.12748265266418457, -0.26955318450927734, 0.02978569082915783, 0.17241989076137543, -0.06182703375816345, -0.05387962982058525, -0.05039070546627045, -0.1540437787771225, -0.06787175685167313, -0.015392160043120384, 0.031462155282497406, 0.0343167819082737, 0.04147375002503395, -0.12116856127977371, -0.3159298300743103, -0.039351340383291245, -0.04338953644037247, -0.0121347326785326, 0.07164811342954636, 0.03763468563556671, -0.049581367522478104, -0.14146772027015686, 0.0704953521490097, 0.014020910486578941, -0.008925260044634342, 0.12866346538066864, -0.0043111201375722885, -0.143999844789505, -0.09115879237651825, 0.14854224026203156, 0.13566920161247253, -0.09114988148212433, -0.0653722733259201, -0.10004948079586029, -0.04905257374048233, -0.06918184459209442, 0.15756943821907043, -0.01372157596051693, -0.013330000452697277, 0.011421911418437958, 0.11626806110143661, 0.19795562326908112, -0.02133600227534771, -0.0009089497034437954, -0.0067186481319367886, -0.1257232278585434, 0.04852031171321869, 0.03779774159193039, 0.051794230937957764, 0.012088015675544739, 0.044255275279283524, -0.1435711830854416, -0.01741991937160492, 0.05007810518145561, -0.04418142884969711, 0.009483303874731064, -0.05449456721544266, 0.025000227615237236, -0.0679982602596283, -0.025736842304468155, -0.38353806734085083, -0.09355984628200531, 0.07298184186220169, -0.08183760941028595, -0.10691777616739273, 0.195781409740448, -0.03499315306544304, -0.093987837433815, 0.042299069464206696, 0.0022190003655850887, -0.13173408806324005, 0.05347660928964615, 0.14564597606658936, 0.023259548470377922, -0.027112621814012527, -0.011994515545666218, -0.23252281546592712, 0.12870816886425018, -0.09570223093032837, -0.05862359702587128, -0.07963612675666809, -0.03848964348435402, -0.10555395483970642, -0.04778110608458519, 0.17694155871868134, 0.14527258276939392, -0.012738468125462532, -0.02564811147749424, -0.016416050493717194, 0.11597942560911179, -0.08231936395168304, 0.14604681730270386, -0.11932923644781113, 0.07675699144601822, 0.12123868614435196, -0.11122121661901474, 0.21588893234729767, 0.05431763082742691, -0.0059723081067204475, 0.1101166307926178, 0.1837621033191681, 0.15695957839488983, -0.16640986502170563, -0.085450679063797, 0.05930445343255997, 0.04031536355614662, 0.06835450232028961, 0.06225037947297096, 0.032699666917324066, 0.11051062494516373, -0.1777564436197281, -0.12261763215065002, 0.08697548508644104, -0.04861849173903465, -0.04907897114753723, -0.05412678048014641, -0.08165090531110764, 0.12826770544052124, 0.08071276545524597, -0.06459520757198334, -0.04678750038146973, 0.12681327760219574, -0.01313016563653946, -0.015809351578354836, 0.044820915907621384, -0.03294592723250389, 0.047745369374752045, -0.17330104112625122, 0.07481907308101654, -0.10291658341884613, 0.20793037116527557, -0.09130345284938812, 0.03853639215230942, -0.069599948823452, 0.052613940089941025, -0.028808459639549255, 0.0979783684015274, -0.01802508905529976, -0.029274247586727142, 0.05566650256514549, 0.13813145458698273, -0.030031440779566765, -0.055405307561159134, -0.119791179895401, 0.025755584239959717, 0.04163672402501106, -0.0358208492398262, 0.09359832853078842, 0.22778581082820892, 0.028082164004445076, -0.02098003774881363, -0.14453251659870148, -0.22342807054519653, -0.23278138041496277, -0.13442860543727875, -0.01672244258224964, 0.11844413727521896, 0.08349595218896866, 0.09208036959171295, 0.004775734152644873, 0.07221885025501251, -0.08420970290899277, 0.22314868867397308, -0.05448887497186661, 0.11553125828504562, -0.11701138317584991, -0.02453986369073391, 0.1672637164592743, -0.011191941797733307, -0.03650708496570587, 0.27957889437675476, -0.12781915068626404, -0.18371693789958954, -0.05563884973526001, -0.0905177965760231, 0.14836089313030243, 0.07828284054994583, -0.02425486035645008, 0.11346442252397537, 0.039599236100912094, -0.09910222142934799, -0.06878955662250519, -0.0024339179508388042, -0.015532994642853737, 0.056172195822000504, -0.13671432435512543, -0.23726613819599152, -0.25366896390914917, 0.1314384490251541, 0.13704803586006165, 0.17194916307926178, -0.07184343785047531, -0.07980823516845703, 0.008342708460986614, -0.20679953694343567, -0.037357397377491, -0.09215456992387772, -0.0678662657737732, 0.11600249260663986, 0.015152848325669765, 0.09458588063716888, -0.16808095574378967, 0.09371181577444077, 0.18281522393226624, -0.056242436170578, 0.04674505442380905, 0.009817580692470074, 0.13996462523937225, 0.2243034541606903, -0.14154069125652313, 0.10786665230989456, -0.003526651533320546, -0.0812934935092926, -0.03261677548289299, 0.16134291887283325, 0.13080726563930511, 0.11566014587879181, -0.061376359313726425, -0.1658986210823059, 0.07028642296791077, 0.12683457136154175, -0.10241513699293137, -0.05718127638101578, -0.0007143670227378607, 0.029881676658988, 0.01819065771996975, 0.06769829243421555, 0.03287512809038162, 0.16308936476707458, 0.1155296266078949, -0.03202839568257332, 0.14978601038455963, -0.10526686161756516, 0.04655219241976738, 0.03377893194556236, -0.09937018156051636, 0.1253689080476761, 0.024187710136175156, 0.02956247702240944, -0.2196810394525528, 0.1763875037431717, 0.1087135523557663, -0.025668056681752205, -0.21150779724121094, 0.13157136738300323, 0.023272445425391197, -0.041718292981386185, -0.19964593648910522, -0.09980814158916473, -0.00752466544508934, 0.08727727830410004, 0.0018442940199747682, -0.02439376525580883, 0.09300217032432556, 0.01074926182627678, -0.015917593613266945, 0.02818075753748417, -0.07146000117063522, 0.15446758270263672, 0.018031513318419456, 0.022983629256486893, 0.1132044643163681, 0.19369149208068848, 0.1339181810617447, -0.07049185782670975, 0.2569318413734436, 0.03228548914194107, -0.16230475902557373, -0.04880385100841522, -0.14296267926692963, 0.22514161467552185, -0.08107493817806244, 0.137526735663414, -0.03527681156992912, 0.11150289326906204, -0.1312699317932129, 0.01472415216267109, 0.006875436753034592, 0.026867812499403954, 0.04839659109711647, 0.07653314620256424, -0.10167433321475983, 0.021350285038352013, 0.011852983385324478, -0.02210530824959278, 0.08937128633260727, 0.07237527519464493, -0.0011456015054136515, 0.07421217113733292, -2.5844357083725395e-32, -0.08978218585252762, 0.09838908910751343, -0.01975846290588379, 0.0590125247836113, -0.2869415879249573, 0.15726596117019653, -0.055414147675037384, 0.10211407393217087, -0.007705644704401493, -0.12701737880706787, 0.061764828860759735, 0.06308737397193909, -0.027701647952198982, 0.02149656042456627, -0.07785789668560028, 0.07967015355825424, -0.03964312747120857, -0.08433229476213455, 0.07839031517505646, 0.14150992035865784, 0.0902695581316948, 0.053617920726537704, 0.03773389384150505, -0.015829330310225487, -0.19887401163578033, 0.14500407874584198, -0.029762445017695427, -0.06821250915527344, 0.08050797134637833, 0.00023268067161552608, -0.026952989399433136, 0.1245265007019043, 0.03419874235987663, -0.1183895468711853, -0.044907283037900925, 0.20318666100502014, -0.07141720503568649, -0.19433416426181793, -0.220455601811409, 0.03029918298125267, 0.008101214654743671, 0.10197124630212784, -0.018409589305520058, -0.1001724973320961, 0.08598341792821884, 0.23603737354278564, 0.009612777270376682, -0.13943681120872498, 0.12735098600387573, 0.055696241557598114, 0.02058953419327736, 0.09347442537546158, -0.023734066635370255, 0.0665280818939209, 0.11705268919467926, 0.050303760915994644, -0.03629438206553459, 0.007999460212886333, -0.08070255070924759, 0.08572643995285034, 0.001470642746426165, -0.059717655181884766, -0.0040427749045193195, 0.05423834174871445, 0.08242136240005493, 0.09634827822446823, 0.31250014901161194, -0.16038867831230164, 0.06945532560348511, -0.0036893184296786785, 0.02364601381123066, 0.07371798902750015, -0.04106736183166504, -0.08172936737537384, -0.32404619455337524, -0.005082194227725267, -0.1757359653711319, 0.0423925518989563, 0.1046796664595604, -0.12603183090686798, 0.11214035004377365, 0.10794614255428314, -0.10978525131940842, -0.07533267140388489, 0.09293220192193985, 0.20174278318881989, 0.029330607503652573, 0.05410151556134224, -0.15478651225566864, 0.053146932274103165, -0.02199346199631691, 0.13509400188922882, -0.05377946048974991, -0.03436046093702316, -0.03619721904397011, 0.04396934062242508, -0.046875134110450745, 0.03325812518596649, -0.0058417352847754955, 0.027628157287836075, -0.14627379179000854, -0.06329892575740814, 0.1380881518125534, 0.12013650685548782, 0.12416324764490128, -0.0865921676158905, 0.09820535033941269, -0.017962094396352768, -0.14651013910770416, -0.041880637407302856, -0.019919030368328094, 0.0005292686983011663, 0.27795082330703735, 0.3853873610496521, 0.11187071353197098, -0.049391280859708786, -0.11767193675041199, -0.12361354380846024, 0.13876208662986755, -0.06139122694730759, -0.25415781140327454, -0.022792134433984756, -0.19201524555683136, -0.01861957274377346, -0.029005562886595726, -0.02986101433634758, -0.14813350141048431, -0.0731021985411644, 0.06867612153291702, 0.034320104867219925, -0.10624057054519653, -0.1516985446214676, 7.407730890918174e-7, -0.23628206551074982, 0.04248178005218506, 0.07443137466907501, -0.031126847490668297, -0.020557181909680367, 0.11423170566558838, -0.24031612277030945, 0.011761740781366825, 0.047786228358745575, 0.10350408405065536, 0.10982122272253036, -0.0677177757024765, -0.05717521905899048, -0.03230065479874611, 0.06169787049293518, -0.13811442255973816, -0.1465008705854416, -0.052992481738328934, -0.05181378126144409, 0.008813302963972092, 0.054706066846847534, 0.17801311612129211, 0.17373724281787872, -0.05796997249126434, -0.10844989866018295, -0.12038838118314743, -0.09718018025159836, -0.0854998305439949, 0.07718802243471146, -0.07518378645181656, -0.0034524258226156235, -0.009863235987722874, -0.18265311419963837, 0.2537195682525635, -0.005052045453339815, -0.1267332136631012, -0.05839405953884125, -0.12524354457855225, 0.05672641843557358, 0.018082691356539726, -0.07381892949342728, 0.16585779190063477, 0.018967280164361, -0.05048942565917969, 0.09653135389089584, 0.003839730517938733, -0.04690027981996536, -0.10276194661855698, -0.13063640892505646, 0.07895771414041519, 0.09162232279777527, 0.1830887347459793, 0.1061277762055397, 0.1364828199148178, 0.008828721009194851, 0.02604823000729084, -0.20719218254089355, -0.02978530153632164, 0.14145393669605255, 0.04026028513908386, -0.2267450988292694, -0.14847560226917267, -0.03428083285689354, -0.05146179348230362, -0.08930297940969467, -0.07402602583169937, 0.0895606279373169, 2.492239443355554e-35, -0.10662200301885605, 0.027553780004382133, 0.0038177662063390017, -0.1768622100353241, -0.10429353266954422, 0.08146874606609344, 0.1311698853969574, -0.12426077574491501, 0.08548246324062347, -0.1503673642873764, -0.06074994429945946 ]
https://github.com/huggingface/datasets/issues/2591
Cached dataset overflowing disk space
I'm using the datasets concatenate dataset to combine the datasets and then train. train_dataset = concatenate_datasets([dataset1, dataset2, common_voice_train])
I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb). The cache folder is 500gb (and now my disk space is full). Is there a way to toggle caching or set the caching to be stored on a different device (I have another drive with 4 tb that could hold the caching files). This might not technically be a bug, but I was unsure and I felt that the bug was the closest one. Traceback (most recent call last): File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/multiprocess/pool.py", line 121, in worker result = (True, func(*args, **kwds)) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 186, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/fingerprint.py", line 397, in wrapper out = func(self, *args, **kwargs) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1983, in _map_single writer.finalize() File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_writer.py", line 418, in finalize self.pa_writer.close() File "pyarrow/ipc.pxi", line 402, in pyarrow.lib._CRecordBatchWriter.close File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status OSError: [Errno 28] Error writing bytes to file. Detail: [errno 28] No space left on device """ The above exception was the direct cause of the following exception:
18
Cached dataset overflowing disk space I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb). The cache folder is 500gb (and now my disk space is full). Is there a way to toggle caching or set the caching to be stored on a different device (I have another drive with 4 tb that could hold the caching files). This might not technically be a bug, but I was unsure and I felt that the bug was the closest one. Traceback (most recent call last): File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/multiprocess/pool.py", line 121, in worker result = (True, func(*args, **kwds)) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 186, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/fingerprint.py", line 397, in wrapper out = func(self, *args, **kwargs) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1983, in _map_single writer.finalize() File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_writer.py", line 418, in finalize self.pa_writer.close() File "pyarrow/ipc.pxi", line 402, in pyarrow.lib._CRecordBatchWriter.close File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status OSError: [Errno 28] Error writing bytes to file. Detail: [errno 28] No space left on device """ The above exception was the direct cause of the following exception: I'm using the datasets concatenate dataset to combine the datasets and then train. train_dataset = concatenate_datasets([dataset1, dataset2, common_voice_train])
[ 0.14324821531772614, 0.06931086629629135, -0.06279647350311279, 0.12031332403421402, 0.11721926182508469, 0.07895287871360779, 0.01462775468826294, 0.09085715562105179, -0.08753762394189835, 0.10783059149980545, -0.11292168498039246, -0.1283714771270752, 0.012341110967099667, -0.11570615321397781, 0.002806107746437192, -0.002937052398920059, -0.027660338208079338, -0.013114896602928638, -0.07899755239486694, -0.1302265077829361, 0.0662628784775734, 0.17251276969909668, 0.29177406430244446, 0.0430574007332325, -0.07306496798992157, -0.14903871715068817, -0.03398102894425392, 0.09764759242534637, -0.04724680259823799, -0.050561316311359406, 0.07867162674665451, -0.1070036068558693, -0.038617588579654694, 0.2948615252971649, 0.000005393384981289273, -0.02037697657942772, 0.07603291422128677, 0.047185953706502914, -0.03458628058433533, 0.1531813144683838, 0.2138543277978897, 0.0012726166751235723, -0.010418269783258438, -0.0007037919713184237, 0.0010480814380571246, -0.12983247637748718, -0.033487699925899506, -0.07658722996711731, 0.06064207851886749, -0.06998445838689804, 0.008073451928794384, -0.03159894421696663, -0.05037294700741768, 0.011677623726427555, 0.06054035946726799, -0.04576517641544342, -0.011245276778936386, -0.0005557325785048306, -0.15621572732925415, -0.09892112761735916, 0.0518011674284935, 0.1467972993850708, 0.07551035284996033, -0.008418825455009937, 0.18805119395256042, 0.20505940914154053, -0.13830707967281342, -0.042050573974847794, 0.15698948502540588, 0.11360280960798264, 0.08683111518621445, -0.0955745056271553, -0.12860222160816193, 0.04010260850191116, -0.08868290483951569, -0.10049275308847427, 0.01054698508232832, 0.10629181563854218, -0.09334398061037064, -0.17483781278133392, 0.005005645100027323, -0.04690437763929367, 0.014258907176554203, 0.05718015506863594, -0.2303774207830429, -0.21464000642299652, -0.09252479672431946, 0.08563462644815445, 0.05872911959886551, -0.01867658644914627, 0.123556949198246, 0.06692642718553543, 0.056266285479068756, -0.11890016496181488, -0.031041085720062256, 0.07027813792228699, 0.105289526283741, 0.12026230245828629, -0.028275039047002792, -0.13437899947166443, 0.22568313777446747, -0.07688917964696884, 0.04967654496431351, 0.010255051776766777, -0.01335669681429863, -0.05839107558131218, -0.16677209734916687, -0.16216948628425598, 0.07095324993133545, 0.040459975600242615, -0.09711366146802902, -0.05320395156741142, -0.08789614588022232, -0.15678654611110687, 0.2417125105857849, -0.00631535891443491, 0.1451963633298874, 0.0073404316790401936, 0.0967959314584732, -0.01793586276471615, 0.01065343152731657, 0.255548357963562, -0.08476043492555618, 0.027787648141384125, 0.05799077823758125, 0.23769895732402802, -0.13385380804538727, -0.06303440034389496, -0.2228812873363495, 0.05964961275458336, 0.01176193542778492, -0.07515696436166763, 0.15166790783405304, 0.006240419577807188, 0.049909524619579315, -0.07368738204240799, -0.01692073792219162, -0.10340463370084763, 0.056982919573783875, -0.12803128361701965, 0.13176357746124268, -0.12765495479106903, 0.0640329122543335, 0.03976815193891525, -0.07309485971927643, -0.007082018535584211, 0.09001509100198746, 0.10614657402038574, -0.10685314238071442, 0.08665503561496735, -0.07794907689094543, 0.08470302820205688, -0.19734595715999603, -0.04924434795975685, 0.15058894455432892, 0.011894392780959606, 0.08570902794599533, -0.013503272086381912, 0.008982987143099308, -0.0799003541469574, -0.0680074542760849, -0.030421750620007515, -0.12009170651435852, 0.07134374976158142, -0.029922975227236748, -0.04832442104816437, 0.13751134276390076, 0.1743515282869339, 0.004553237464278936, 0.0519484244287014, 0.0028897642623633146, 0.10806311666965485, -0.08051182329654694, -0.026611534878611565, -0.14456726610660553, 0.0764036476612091, -0.18891319632530212, -0.11588577181100845, -0.2715578079223633, -0.07216104120016098, 0.15078236162662506, -0.07845574617385864, 0.05297059938311577, 0.07219579815864563, 0.06381670385599136, -0.10467826575040817, 0.03480827435851097, 0.025943825021386147, -0.017253410071134567, -0.11782056093215942, -0.10343487560749054, -0.16892261803150177, 0.04234027490019798, -0.0058705247938632965, 0.01508165244013071, -0.13469980657100677, 0.10772334039211273, 0.02557668834924698, -0.06486078351736069, -0.17631737887859344, 0.08727487921714783, 0.07126148790121078, -0.01375175267457962, 0.0457364097237587, 0.030794324353337288, 0.034279171377420425, -0.12392676621675491, 0.046334683895111084, -0.0769931748509407, -0.2091854214668274, -0.14439424872398376, 0.03762362524867058, 0.08873844891786575, -0.06932834535837173, 0.02193770371377468, -0.12007592618465424, -0.25135233998298645, -0.032750628888607025, 0.022128932178020477, -0.07263088971376419, -0.02923167496919632, 0.10860759764909744, 0.1349073201417923, -0.06726489961147308, -0.14350049197673798, 0.07216234505176544, 0.13766634464263916, -0.01313925813883543, 0.09497711807489395, 0.046369921416044235, -0.08338437229394913, -0.0019526233663782477, 0.16029521822929382, -0.06989586353302002, 0.03773362189531326, 0.05166379362344742, -0.05103669688105583, -0.18869946897029877, 0.15815432369709015, 0.06137749180197716, 0.015030859038233757, 0.02738933637738228, -0.13363127410411835, 0.09182553738355637, -0.0036108961794525385, -0.1690489500761032, -0.01838184893131256, 0.20474080741405487, 0.0788809210062027, -0.02333550527691841, 0.24129639565944672, 0.15880577266216278, -0.15027299523353577, -0.10072600096464157, 0.03774772956967354, -0.0234075915068388, 0.22922088205814362, 0.2593456208705902, 0.03025643527507782, 0.036073874682188034, 0.31356102228164673, 0.05506507679820061, 0.16095510125160217, 0.1728583574295044, 0.09494100511074066, 0.008704966865479946, 0.06721046566963196, -0.004506895784288645, -0.07212257385253906, 0.16604788601398468, 0.19969435036182404, -0.054881054908037186, 0.007285362109541893, -0.0664551705121994, -0.1255561262369156, -0.01873035356402397, -0.10087747871875763, -0.05832691490650177, 0.10313863307237625, -0.12459605932235718, -0.09359800815582275, 0.1382695436477661, 0.1638990044593811, -0.019267436116933823, 0.2007954716682434, 0.16934973001480103, -0.021801745519042015, -0.07892026752233505, -0.12412221729755402, 0.16347116231918335, -0.14997641742229462, -0.023720167577266693, 0.10125383734703064, -0.02325534075498581, 0.012514026835560799, 0.01245852280408144, 0.0823339894413948, -0.06782569736242294, -0.11873225122690201, -0.1574498414993286, 0.044807612895965576, 0.07209669798612595, -0.059435877948999405, -0.23756606876850128, 0.14164255559444427, -0.17267641425132751, 0.0010242150165140629, 0.05952085182070732, -0.22232864797115326, -0.12575651705265045, 0.11399707943201065, -0.08538679033517838, 0.09088616818189621, 0.1154353991150856, -0.06091191619634628, -0.07320747524499893, -0.06920310109853745, -0.2130843698978424, 0.058613646775484085, -0.0692223533987999, 0.025071989744901657, 0.015568546019494534, -0.1055789440870285, 0.08502515405416489, 0.013756494969129562, -0.015701159834861755, -0.08636104315519333, -0.19147047400474548, 0.040661077946424484, -0.08095919340848923, 0.004099841695278883, -0.036911241710186005, -0.08992350101470947, -0.07332192361354828, -0.16237977147102356, -0.12382930517196655, -0.13601398468017578, -0.1522304117679596, 0.19465957581996918, 0.19320206344127655, 0.08730465173721313, 0.01687953621149063, -0.044172558933496475, 0.05388057231903076, 0.02440626733005047, -0.18725448846817017, -0.1346312165260315, -0.13170774281024933, 0.228105366230011, -0.013493628241121769, 0.03381183370947838, 0.025249583646655083, -0.0012146573280915618, -0.12676651775836945, -0.014263911172747612, 0.08298174291849136, -0.03431247919797897, 0.19990207254886627, 0.04741205647587776, -0.04904944822192192, 0.046034909784793854, 0.137421652674675, 0.17540055513381958, 0.057504210621118546, -0.20810618996620178, 0.032558027654886246, 0.23125304281711578, 0.18088886141777039, -0.05929289758205414, -0.16134360432624817, 0.06626978516578674, -0.1613273173570633, -0.16552205383777618, -0.0983758419752121, 0.09536813199520111, 0.022070633247494698, -0.009239102713763714, -0.10167122632265091, 0.0640801414847374, -0.045011382550001144, 0.18213005363941193, -0.09058734774589539, -0.04085749760270119, 0.054614853113889694, 0.027083560824394226, -0.09345918893814087, -0.04572213441133499, -0.010076979175209999, -0.181783989071846, 0.23264750838279724, 0.16508904099464417, 0.07649186253547668, 0.0058815148659050465, 0.028411801904439926, -0.12677934765815735, -0.10560892522335052, 0.08996936678886414, -0.0794253721833229, 0.05330013111233711, 0.0024945742916315794, 0.018159838393330574, 0.15433408319950104, 0.1436615139245987, 0.106903076171875, 0.03957481309771538, -0.12965697050094604, 0.018198847770690918, -0.03138606250286102, 0.21633954346179962, -0.08565936982631683, 0.005984813440591097, -0.11842722445726395, 0.11776933073997498, -0.027452023699879646, 0.0993632972240448, -0.022612543776631355, -0.04765791818499565, -0.006755081936717033, 0.06399752199649811, -0.16213896870613098, -0.16342033445835114, -0.08465452492237091, -0.022524135187268257, -0.1181814968585968, -0.003649163991212845, 0.04558175802230835, 0.08272190392017365, -0.23314456641674042, 0.05382320284843445, -0.034809015691280365, 0.19268269836902618, 0.17195352911949158, -0.04346592724323273, 0.06966075301170349, 0.177995964884758, -0.02965249866247177, 0.18175797164440155, 0.034502238035202026, -0.06847663223743439, 0.1077660471200943, -0.07872479408979416, 0.019016770645976067, 0.13620033860206604, -0.15223221480846405, 0.14362628757953644, -0.00583224231377244, 0.03542486950755119, -0.21446819603443146, 0.1569438874721527, -0.02253209799528122, 0.029624726623296738, 0.15470775961875916, -0.049191415309906006, -0.09546750038862228, 0.13704584538936615, 0.09242837876081467, 0.15802349150180817, -0.17063802480697632, -0.037816520780324936, -0.03766736760735512, 0.01764519326388836, -0.020979944616556168, 0.2379280924797058, 0.16233675181865692, -0.1763944774866104, 0.14217042922973633, 0.20002008974552155, -0.37497514486312866, 0.22499972581863403, 0.03991156071424484, -0.04595860466361046, 0.12881894409656525, 0.004062884487211704, -0.03168457746505737, -0.019460247829556465, -0.05320906639099121, 0.033274851739406586, 0.011516932398080826, 0.04273155704140663, -0.06684379279613495, -0.031687211245298386, -0.12690016627311707, -0.1404770016670227, -0.301108717918396, -0.030429020524024963, 0.1972617208957672, 0.035004761070013046, 0.07240371406078339, 0.0043095811270177364, -0.0190894715487957, -0.013756392523646355, -0.07592271268367767, -0.10069039463996887, -0.0183701328933239, 0.16575980186462402, -0.1215122789144516, -0.02876182831823826, -0.11502575874328613, 0.06561176478862762, -0.07080996781587601, 0.14188967645168304, 0.03924136981368065, 0.021687189117074013, -0.07402701675891876, -0.036476679146289825, -0.1809030920267105, 0.06999396532773972, -0.16499102115631104, 0.044088296592235565, 0.022127464413642883, 0.002075966214761138, 0.08976780623197556, -0.1550287902355194, -0.07157299667596817, 0.06714736670255661, -0.027687441557645798, -0.08007240295410156, 0.013684124685823917, -0.10562063008546829, -0.043112482875585556, 0.07733745872974396, 0.01767411082983017, 0.07580652832984924, -0.07615099847316742, 0.10348860919475555, -0.12668976187705994, -0.07577072829008102, -0.02575264871120453, 0.2109726071357727, -0.00247493339702487, 0.10009994357824326, 0.23930597305297852, -0.07801083475351334, -0.03472988307476044, -0.16061417758464813, 0.09415275603532791, 0.030617527663707733, -0.10092492401599884, 0.04303360730409622, -0.1577589064836502, -0.13170823454856873, -0.3456558287143707, -0.1377541869878769, 0.08192066103219986, -0.07361752539873123, -0.07853381335735321, 0.09716039150953293, -0.16067731380462646, -0.02266089804470539, -0.1045423299074173, 0.014141617342829704, 0.19918662309646606, -0.19664371013641357, -0.007563600782305002, 0.037909310311079025, -2.7119213033286813e-32, -0.08096077293157578, -0.16080518066883087, -0.07593473047018051, -0.1415676772594452, -0.1783389300107956, 0.13634991645812988, -0.08710706233978271, -0.26880064606666565, 0.0006191012798808515, -0.02339700236916542, 0.037747275084257126, 0.02465507574379444, 0.05241016671061516, -0.01554764062166214, -0.1332542598247528, -0.0578458271920681, 0.03455296531319618, -0.03149180859327316, -0.0180344358086586, 0.17378853261470795, 0.1212942972779274, 0.16036783158779144, -0.006443014368414879, -0.07142576575279236, -0.1732817143201828, 0.06085804104804993, 0.029839232563972473, -0.10207293182611465, -0.05947950854897499, 0.04033121094107628, -0.09750249236822128, 0.1606835424900055, -0.02565651386976242, -0.0459858663380146, -0.049074236303567886, -0.030750777572393417, -0.10926643013954163, 0.06908729672431946, -0.01910286396741867, -0.11652858555316925, 0.0642009750008583, 0.026988310739398003, 0.05566520243883133, -0.0474274642765522, -0.08428412675857544, 0.02960154041647911, 0.08164370059967041, -0.061627212911844254, -0.12165666371583939, -0.18011054396629333, -0.04392679035663605, 0.0792551264166832, 0.040504418313503265, 0.14148260653018951, -0.008708931505680084, -0.1297231912612915, 0.1265454888343811, 0.12298646569252014, -0.23452331125736237, 0.035339947789907455, 0.04925380274653435, 0.11103746294975281, 0.07670800387859344, 0.008294625207781792, 0.15100787580013275, 0.08915659040212631, 0.34277594089508057, 0.05677241459488869, 0.04278704524040222, 0.014979951083660126, 0.02488083392381668, -0.13224419951438904, -0.10627996921539307, -0.1483318954706192, 0.029087359085679054, -0.03089677169919014, 0.14105479419231415, -0.0913456603884697, -0.17449603974819183, 0.08933510631322861, -0.021235916763544083, -0.1678449660539627, -0.031685542315244675, -0.034533463418483734, -0.08283055573701859, 0.21946056187152863, 0.046228278428316116, 0.252108097076416, -0.020657876506447792, -0.050174251198768616, -0.055525925010442734, 0.07891818881034851, -0.006689148023724556, -0.1417785882949829, -0.0008029136224649847, 0.13056769967079163, -0.018455758690834045, 0.12047774344682693, 0.018041808158159256, 0.13790389895439148, 0.08157946914434433, -0.05881120264530182, -0.10644147545099258, -0.02424405887722969, 0.07224082201719284, 0.15224634110927582, 0.03594857454299927, 0.11942365020513535, -0.09775346517562866, 0.0029299738816916943, -0.26619020104408264, -0.10825777798891068, 0.14085066318511963, 0.103202685713768, 0.10775787383317947, 0.06454257667064667, 0.09967783838510513, 0.17212553322315216, 0.1005108579993248, 0.023913536220788956, 0.11340539157390594, -0.13395823538303375, 0.08607625961303711, 0.13264314830303192, -0.048440441489219666, 0.016423935070633888, -0.13944649696350098, 0.020324179902672768, 0.07960809767246246, -0.1614515483379364, -0.024029400199651718, 0.05936768651008606, 7.133128292480251e-7, -0.20702578127384186, 0.2142653614282608, 0.041431982070207596, -0.047288473695516586, -0.08677919954061508, 0.058751270174980164, -0.002289010211825371, 0.007751269266009331, -0.0754798948764801, 0.13075324892997742, 0.028199829161167145, 0.08476655930280685, 0.17765577137470245, -0.07467259466648102, 0.05355207622051239, -0.004822940565645695, -0.02816116437315941, -0.07193252444267273, -0.04447543993592262, 0.07945354282855988, 0.0707831084728241, 0.17082904279232025, 0.010992216877639294, -0.08863260596990585, 0.0008594878599978983, -0.16351477801799774, -0.007747663650661707, 0.0791609063744545, 0.01834077760577202, -0.10526279360055923, 0.08732108771800995, -0.1296200007200241, 0.008271117694675922, -0.10654892772436142, 0.056796226650476456, 0.019611792638897896, -0.17835402488708496, -0.17384470999240875, -0.022097932174801826, -0.034735292196273804, 0.15374545753002167, 0.04227624833583832, -0.09087896347045898, -0.06280616670846939, 0.05330103263258934, 0.09650561958551407, -0.13669191300868988, -0.01204347237944603, 0.05849169194698334, 0.03576129674911499, -0.0034667456056922674, -0.09747762233018875, 0.01340489648282528, 0.2832859754562378, -0.10279891639947891, -0.1304740309715271, 0.009971125051379204, -0.08639942109584808, 0.006081951316446066, -0.05222524330019951, -0.14062483608722687, -0.0977419763803482, -0.0625232607126236, 0.15343214571475983, 0.06789068877696991, -0.10993211716413498, -0.04217664897441864, 5.602959958855225e-35, 0.09424329549074173, -0.06741633266210556, 0.004733615554869175, -0.032449815422296524, 0.06970418989658356, -0.00958153698593378, 0.27299728989601135, 0.20712950825691223, -0.0026816949248313904, -0.22731725871562958, -0.16537629067897797 ]