html_url
stringlengths
48
51
title
stringlengths
5
268
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
164
54.1k
embeddings
sequence
https://github.com/huggingface/datasets/issues/2076
Issue: Dataset download error
Is this a command to update my local files or fix the file Github repo in general? (I am not so familiar with the datasets-cli command here) I also took a brief look at the **Sharing your dataset** section, looks like I could fix that locally and push it to the repo? I guess we are "canonical" category?
The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link?
58
Issue: Dataset download error The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link? Is this a command to update my local files or fix the file Github repo in general? (I am not so familiar with the datasets-cli command here) I also took a brief look at the **Sharing your dataset** section, looks like I could fix that locally and push it to the repo? I guess we are "canonical" category?
[ -0.3287452161, 0.227845639, 0.0171682481, -0.1485099643, -0.0278216824, 0.1295357794, 0.2159445584, 0.4029397666, 0.1252268106, -0.0533369668, 0.1292183399, -0.1483828574, 0.3661811948, 0.1626038402, 0.0930708945, 0.0371342711, 0.0882588625, 0.1164588034, -0.1444553882, -0.1393211484, -0.2735644877, 0.0519363731, -0.1136717275, 0.0818873122, -0.0942530856, 0.0077918009, -0.2059004903, 0.1530777663, -0.1278964281, -0.4773183763, 0.373485148, 0.3872339725, 0.2581130266, 0.1217223257, -0.0001211941, 0.0353705287, 0.4054266214, -0.0881666765, -0.3705860376, 0.0765680373, -0.5739338994, -0.4313012958, -0.0611454695, -0.258058846, 0.1887964457, -0.129853949, 0.2098875195, 0.0811499804, 0.1162739769, 0.4262785614, 0.1302455217, 0.2230622619, 0.326227963, -0.0737568215, 0.1489090025, 0.1681555063, -0.0132279499, 0.372101903, 0.4372791648, -0.1092658266, 0.0860343203, 0.1534003168, -0.0840909407, 0.2124537379, 0.3541407883, 0.0495412797, 0.4574350119, -0.4048506618, 0.223441571, 0.0324901156, 0.8967599273, -0.4227747023, -0.3420687914, 0.0872576758, 0.0095373709, -0.0898225009, 0.1586157829, 0.0859672353, -0.2002847493, 0.2778534591, -0.1804690361, -0.3604152799, -0.1591273695, 0.3106374741, -0.0873084068, 0.5873485208, 0.1010473445, 0.208222881, 0.1031948924, -0.057155434, -0.1274019331, 0.0459689274, -0.2225729972, 0.0741774812, 0.1182248741, -0.2077800632, -0.1212856397, -0.102508381, 0.106664516, 0.1532484442, -0.1984605789, -0.0369430184, -0.1734640896, 0.0718772039, 0.4032162428, -0.0381652601, 0.0457207002, 0.1548080593, 0.566685617, 0.423088491, 0.0112661179, -0.0179059934, 0.1470716745, -0.2979694605, -0.0977269933, 0.1550768316, 0.4336483479, -0.312105149, -0.2366572171, -0.1028785259, 0.127101317, -0.1144595146, -0.0768235549, 0.1278252602, -0.1613838375, 0.2357039303, -0.1247183606, 0.0475258641, -0.102630876, -0.3002574742, 0.0427252054, -0.033479128, 0.1329360604, 0.1183086187, 0.0120960716, 0.0708039477, 0.051775299, -0.0831962824, -0.0121600516, -0.1791647375, -0.2284105271, 0.1644672155, -0.1286883354, 0.2666128576, -0.2245612144, 0.2676093578, 0.1448450685, -0.3232684731, -0.2828289568, 0.2915726006, -0.2882511914, -0.3567066789, -0.3281009793, 0.0365199894, -0.0712550357, -0.1758406013, -0.0324561298, -0.210595578, -0.1574169248, -0.2907341421, 0.0741476566, 0.0098835295, -0.1292326003, -0.1871702224, 0.1953066587, 0.5042908788, -0.6066138744, -0.1614394486, -0.2313723564, -0.0816506743, 0.208716616, 0.3378126919, -0.2769353688, 0.1699394733, -0.1460843682, 0.0277959798, 0.5927789211, -0.5152544975, -0.6871726513, 0.2041897476, -0.0130714336, -0.2299174964, -0.0214091521, 0.2520219684, 0.1231497452, -0.3452992737, -0.4743501842, 0.0846302584, -0.1290564686, 0.0995864421, -0.2955791652, -0.5416891575, 0.1625070125, 0.1816474944, 0.0469319299, 0.1821606457, 0.3992837071, 0.1766407043, 0.3272172809, 0.0588196293, 0.2011161, 0.2115602046, 0.5126592517, 0.1314491034, 0.1533077806, 0.2232039869, -0.294321835, 0.1469661146, 0.248912856, 0.0949624926, -0.3220590651, -0.2608612478, -0.4123025239, -0.1020812243, -0.3485296667, -0.0909804329, -0.0179824755, 0.1807578057, 0.1164784804, -0.1103477031, -0.3459632397, 0.309379071, -0.4763236642, 0.0745259449, 0.2337315232, 0.5755879879, -0.1695273668, -0.0196820572, 0.0520267077, 0.1301288158, 0.0639669523, -0.2785020173, -0.21435076, 0.5593365431, -0.3127243519, 0.234146893, 0.4399034679, 0.3117652833, 0.1940221488, -0.320222199, 0.1119110435, 0.2882170975, -0.0226007309, 0.1490286589, -0.1741980165, -0.1989569813, 0.0576515682, 0.1708120555, -0.065533042, 0.0031275053, 0.2749861181, -0.0832781643, -0.1410721838, -0.1622518152, -0.2921608686, -0.0250309017, -0.0415076427, -0.0453641228, -0.0604689457, 0.1785670221, 0.5440227389, -0.1238421723, 0.1165739223, 0.3003471196, 0.0952582359, -0.0596884601, -0.1099887416, 0.5564723015, 0.3104230165, -0.1512852311, -0.1697161347, 0.1790994108, 0.0578598082, -0.0373103172, 0.0465998314, 0.1925282478, -0.1200714335, 0.0109615354, -0.0468259268, -0.0372147858, 0.1695206165, 0.1583190709, 0.1474126726, 0.4839598536, -0.2462184876, -0.0133019397, -0.3664866388, -0.5353515744, -0.3251516223, 0.3189966679, -0.3790272772, -0.185908556, -0.0421060883, 0.1787431836, -0.2107164264, 0.1901572645, 0.2043235898, 0.3172185421, -0.0788313597, 0.0009445412, -0.1719420254, -0.2316941619, -0.3306142688, -0.051932022, 0.4443803728, -0.0417088121, 0.1766373366, -0.6509735584, -0.1097551063, -1.036077261, -0.0168307293, -0.0461151972, 0.231671229, 0.1153675318, 0.1593002081, 0.4537457526, -0.0163830705, -0.1707423627, 0.2607429624, -0.0401944891, 0.2149466276, -0.3174859881, -0.1729995161, 0.0167532042, 0.0456133895, -0.1350580603, -0.5641142726, -0.3411816657, 0.1600965708, 0.0241010319, 0.1449771672, -0.0509620793, 0.0435486548, -0.1906141341, 0.1358195096, -0.2904106081, 0.1560662389, -0.010705322, 0.2633078098, -0.1443638951, -0.4014082551, 0.132977441, 0.3028899133, 0.0468480773, 0.0664784163, -0.5709304214, -0.2596462369, 0.0302450098, 0.4149636328, 0.1201112494, 0.2456101477, 0.1748134345, -0.001163456, 0.0383690149, 0.0454276539, -0.1914304793, -0.0953513756, 0.5123046637, 0.3417055905, 0.4293990433, 0.3754682541, -0.108530961, 0.5380150676, 0.0628193915, -0.1203669906, 0.2591625154, -0.162612617, 0.3061214983, -0.0002960847, -0.2931820154, 0.1956025958, -0.1550556719, -0.0657008663, 0.4099549353, 0.0892600864, -0.0365754701, -0.0739253461, -0.1810676903, -0.2698780596, -0.4921990335, -0.1627940536, 0.4599234462, 0.2576901913, 0.2941861153, -0.1377736926, -0.2924906015, -0.1697051525, 0.402410835, 0.6239659786, -0.1235482693, 0.2065497041, 0.1147290245, -0.1757798493, -0.1004420593, 0.264721334, 0.1980749071, 0.2662752271, 0.0342544429, 0.0794400871, 0.1008392721, -0.1124487445, 0.4005721807, -0.2048438936, 0.1391566545, 0.1369846165, 0.4236280322, 0.1360696256, -0.2744186819, 0.0207302831, 0.4552537501, 0.2049038857, 0.0759628937, -0.0221560448, -0.3152550161, 0.3411844373, 0.3714484274, -0.2002502084, 0.0219796132, 0.1467153281, -0.4022742808, -0.4977631271, -0.2266691178, -0.119531177, -0.2320986688, -0.0722355843, 0.1765211523, 0.2332926542, -0.1576327682, -0.1536705941, 0.0030540598, 0.2076950818, 0.4947234094, -0.0198298264, -0.0089821583, 0.0129315723, 0.0909975693, 0.3013309836, 0.0700534657, -0.3510889709, -0.1641140133, -0.3205775321, -0.0949709713, 0.2082443386, 0.1176924631, -0.0827309936, 0.1448276341, 0.0616364814, -0.0875909254, 0.1192068607, 0.3584295809, -0.0849577263, -0.5300601125, -0.525621593, 0.4085558951, -0.1199646369, -0.165494293, 0.4003601372, 0.1563634276, -0.0323150717, -0.2735868394, 0.0830517635, 0.7465669513, -0.022926122, 0.032706134, -0.0075636348, -0.0916319862, 0.6845273376, -0.3556343317, 0.0803624019, -0.2357022166, 0.0443734042, -0.1400305331, 0.0937239677, -0.0345782973, 0.1248344108, -0.2527695, 0.3953993618, 0.0111263189, 0.1281263828, 0.1678037792, 0.1267894506, -0.0315406732, 0.0058413856, -0.0743877962, 0.0830980092, -0.162238583, 0.4866453707, -0.1698797643, 0.0068916907, 0.0124575449, -0.1154113486, -0.5681360364, -0.0628744513, -0.1664641052, 0.2920018733, -0.0299784765, 0.0210071988, 0.0415382162, 0.0992111564, 0.4292318523, 0.1321556121, -0.2016574144, 0.3129693866, -0.0059435247, 0.0601130351, 0.0004795196, 0.3337998688, 0.1579629779, -0.242253229, -0.3779408634, -0.1441569775, -0.1342759579, -0.383428663, 0.0235967673, -0.2298963964, 0.627817452, 0.0004670097, -0.0304867476, -0.0596397482, -0.1215837598, -0.2231878638, 0.0184048619, -0.1535343826, 0.1416378021, 0.0816716254, -0.291477263, -0.2244680077, 0.0191665385, 0.1895217746, -0.1399023533, -0.2665096521, 0.4547469318, 0.121902585, 0.0639431402, -0.1995393038, -0.0725488216, -0.1438466161, -0.6568564177, 0.1191088259, -0.0967698395, 0.1828151494, -0.1090995744, 0.5960336924, 0.2512532175, 0.1673285216, -0.2896710634, -0.4213557839, -0.271556139, -0.0532646962, 0.3364653587, 0.155466035, -0.0176151097, -0.1649508029, 0.1936540306, -0.6747887731, -0.1614929885, 0.0090755075, -0.1692633033, 0.0296201259, 0.6704884768, 0.4356500804, 0.0869971439, 0.0188517831, -0.0612278022, -0.1750656515, -0.0812856331, -0.0256923828, -0.1322484314, 0.2006797343, -0.0557946302, -0.4399532974, 0.0500342473, -0.3374832571, 0.0406050459, 0.0572869889, -0.1088783517, 0.0315805599, -0.058990296, 0.2244446427, 0.3297693431, -0.0960423276, -0.1266284287, 0.2370404899, 0.2353166789, 0.6963258982, 0.047942359, 0.504602313, 0.1246767417, 0.105853945, 0.0972958654, 0.0786667392, -0.089866817, -0.0216331705, 0.1773712784, -0.1876709759, 0.2144840807, 0.2815784216, 0.2141181529, 0.5254456997, -0.1734646708, -0.1531736255, 0.3730523586, 0.0736247897, -0.1744774431, -0.19686912, 0.3419989944, 0.1091986895, -0.0577137433, 0.0470553748, 0.300906688, -0.1780050099, 0.3103751838, 0.0893281773, 0.6003999114, -0.2275826782, 0.1473660618, 0.4256237745, 0.1851406246, 0.0766024962, -0.515152812, -0.0088374568, 0.0859318748, 0.0910274759, -0.315548718, -0.0076459255, 0.3904763758, 0.1882211119, 0.019512197, -0.2847195864, 0.4502235651, -0.0868169293, -0.0064133685, -0.1602882445, 0.2936159968, 0.1938019842, 0.1545354724, -0.2132193595, -0.1055914089, 0.3199579716, 0.219383359, -0.0499656647, -0.2981779575, -0.1853590608, -0.2174347639, 0.041320242, -0.1967565715, -0.0639088899, 0.1019666567, -0.000018312, -0.0209761932, -0.0995972604, 0.0869244188, -0.2254508436, 0.2697066963, -0.1732002348, 0.0348744392, 0.2699768841, -0.0449171476, 0.3573745489, 0.3032529354, 0.3511098325, 0.3506348133, 0.2956430018, 0.2215097845, 0.0462826192, -0.0275797248, -0.0705276504, -0.1413393021, -0.2378989905, 0.0085934633, 0.0753651559, 0.1146333367, 0.0222329367, -0.0880034119, -0.2414202541, -0.0909085646, -0.176674068, 0.2309428006, -0.1248024851, -0.2502403855, -0.173228547, 0.1643973738, -0.1407436728, -0.2305451334, 0.3772290349, 0.0556096472, 0.0493016839, 0.1084257886, 0.0184885915, -0.1183817089, 0.4438582063, 0.4053961635, 0.0393583924, -0.0506963357, -0.3549843132, -0.6613137126, 0.2525292039, 0.0431113876, -0.3434360623, 0.0202993732, -0.0365522318, -0.2431380451, -0.0149773723, 0.3215934038, -0.1956985891, -0.0718832612, 0.0016668838, -0.012256423, -0.3665527403, -0.1038550138, 0.2837750614, 0.0206285305, -0.3084763288, 0.1789597869, -0.1688572764, -0.0721253902, 0.0031016211, -0.1626665145, 0.2184784412, -0.447480619, 0.221415028, 0.0423128419, 0.3322560489, 0.0157246552, -0.3238593638, -0.4520312548, -0.2165610641, -0.2448046058, 0.2828504145, -0.3794674277, 0.1671108007, -0.1489570588, 0.2827147245, -0.5202069879, -0.0893790275, -0.1439726055, 0.3547425866, -0.1120029166, -0.0566178486, -0.0558047071, -0.1355900019, 0.3962641358, -0.1083714664, -0.0078288922, -0.0498400591, -0.3642436266, -0.0454761907, 0.4113411307, -0.2912557125, -0.1576842666, -0.1980945915, 0.2725577056, -0.0934824049, -0.1871385276, -0.2544821501, -0.0794430822, 0.2932997644, 0.2510576844, -0.1649757177, 0.0285105724, 0.0157414787, 0.0646505505, 0.0683122203, -0.0831301138, 0.0284455027, -0.3681693077, 0.026878668, -0.1657810956 ]
https://github.com/huggingface/datasets/issues/2076
Issue: Dataset download error
This command will update your local file. Then you can open a Pull Request to push your fix to the github repo :) And yes you are right, it is a "canonical" dataset, i.e. a dataset script defined in this github repo (as opposed to dataset repositories of users on the huggingface hub)
The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link?
53
Issue: Dataset download error The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link? This command will update your local file. Then you can open a Pull Request to push your fix to the github repo :) And yes you are right, it is a "canonical" dataset, i.e. a dataset script defined in this github repo (as opposed to dataset repositories of users on the huggingface hub)
[ -0.2335668951, -0.1188602, 0.01896373, -0.1395545453, 0.0161119103, -0.005983829, 0.1757640392, 0.3258336484, 0.2067855448, -0.0491478145, 0.1204307824, -0.0448962301, 0.2096991241, 0.4580941498, 0.1885542125, -0.0856997594, 0.0732323378, 0.0046083336, -0.3236833811, -0.0383641273, -0.2702772021, 0.3223572671, -0.1850293577, 0.1354492456, -0.2389191538, 0.1353994757, -0.1885151416, 0.1983840317, -0.1805907041, -0.4625660479, 0.5045471191, 0.2400254011, 0.1559288055, 0.1923992336, -0.0001092647, -0.0245884713, 0.3951176703, -0.1717744917, -0.1087758616, -0.011408126, -0.3153643012, -0.302252382, 0.0101293884, -0.2516594827, 0.039882075, -0.1055719405, 0.162742883, 0.2556889653, 0.2135179192, 0.4070446193, 0.2583003342, 0.4219938517, 0.4020579457, -0.1656321287, -0.0969248787, 0.0451836474, -0.1839631796, 0.0846095458, 0.139251858, -0.1658403277, -0.0079473676, 0.2628324628, 0.0380653627, 0.1774068326, 0.3683726788, 0.0332368203, 0.2770966589, -0.4773373008, 0.1777481884, 0.2426345497, 0.7822642326, -0.3499059975, -0.2700641751, 0.0836931393, 0.0555036813, -0.0859585032, 0.1442579776, 0.0836822987, -0.1838022023, 0.2145689279, -0.0270694066, -0.1974050254, -0.147405684, 0.1989338249, -0.1147594973, 0.4739905596, -0.0418312214, 0.1100743935, 0.2187189311, -0.1721977741, -0.0383894481, 0.2162340581, -0.1291910857, 0.0995905921, 0.0271938536, -0.1612712145, -0.0395024829, 0.1277528256, 0.2365037352, 0.1215081736, -0.1918833107, 0.0103194155, -0.1954929382, -0.0749075487, 0.3661406338, -0.0246856846, 0.0377587602, -0.2054489106, 0.6392713785, 0.4878344536, 0.134679988, 0.0405796766, 0.1530727744, -0.3119659424, -0.2728494704, -0.0209969748, 0.4147319794, -0.2358139306, -0.1946693957, -0.2294027507, 0.2842103541, 0.0485092513, -0.1242199466, 0.2408175915, -0.0643314272, 0.2211934924, -0.0133280689, 0.0414088294, -0.1770210266, -0.2442882359, -0.1393060088, 0.0375978462, 0.1275268942, 0.0269426182, 0.13335675, -0.017165713, 0.205020532, -0.0505628064, -0.0681752637, -0.0954976529, -0.3666024804, 0.2655593753, -0.036765188, 0.2211725563, -0.1885925233, 0.2225807905, 0.1322176009, -0.1558463126, -0.2449504733, 0.1167246848, -0.2422587872, -0.3335551918, -0.362015605, 0.1275480539, -0.3240916133, -0.2706544697, 0.0901476219, 0.028584376, -0.245088011, -0.1080995947, 0.0043523377, -0.0430627726, -0.3726973534, -0.1773121655, 0.2803136706, 0.5215451717, -0.4167306125, -0.2620276511, -0.1202762201, -0.2433590889, 0.0799773559, 0.3457718194, -0.1807962805, 0.1630968004, -0.2910605669, 0.2494160682, 0.2408749014, -0.3563613296, -0.6736314893, -0.0241497047, -0.0234206766, -0.1064474359, -0.0478004143, 0.1957676411, 0.0992479399, -0.2680751681, -0.3319648504, 0.1364899874, 0.0773571208, 0.1863161325, -0.2293029726, -0.587364018, 0.1502216011, 0.0775778443, 0.0790321156, -0.034825176, 0.263071835, 0.2338414043, 0.3538370132, -0.0224075168, 0.0953424498, 0.2815828323, 0.401252538, 0.1791230142, 0.215235889, 0.0869184658, -0.2827011645, 0.1946865171, 0.1992520392, 0.2634850144, -0.2397796065, -0.2128988653, -0.5051878095, -0.0997636244, -0.348233819, -0.2533224821, 0.1373305619, 0.0607015081, 0.0376961231, -0.040249154, -0.3664123714, 0.3527959883, -0.273573488, -0.0182046741, -0.162004292, 0.4413312674, -0.1737802625, -0.0358938947, 0.2160106897, 0.2136524171, 0.1147466153, -0.2147005498, -0.1133192778, 0.3855249882, -0.2043385655, 0.2543187141, 0.2713073194, 0.2959888875, 0.1429630816, -0.4405145943, 0.0782654956, 0.2604019046, 0.0026076885, 0.1207902059, -0.1412731558, -0.0389374383, 0.0335716084, 0.104845807, -0.0179276206, 0.1726454794, 0.4351983964, -0.1481435746, -0.1388982683, -0.2231838852, -0.202028051, -0.279030174, -0.1909110844, -0.122041367, -0.0943427905, 0.1953201741, 0.6526300907, -0.0811344162, 0.1934059113, 0.305924207, -0.0880406573, -0.083491765, -0.0656971559, 0.2408768386, 0.2677808702, 0.0272596385, -0.1545905173, 0.1892936677, 0.0176762994, -0.0730945766, 0.1090161726, 0.0896603614, -0.175573498, 0.0301625133, -0.0732036754, -0.0809711814, -0.2738898695, 0.2919788659, -0.0533326566, 0.313177228, -0.2786056101, -0.1210930124, -0.3761145771, -0.4734442532, -0.2801190019, 0.1665585339, -0.385469377, -0.3420085013, 0.0037458381, 0.2556140125, -0.1119043753, 0.2181048691, 0.1516187936, 0.3672246039, -0.1004235744, 0.1979854554, -0.2305039912, -0.2315602899, -0.2434092164, 0.0562479533, 0.3037788868, 0.1399768889, 0.302444607, -0.6965796947, -0.0006319921, -0.9145676494, -0.2800680399, 0.1137312353, 0.0784533769, 0.233686164, 0.3152011633, 0.4718114138, 0.0362505019, -0.0929911286, 0.1916047633, -0.3334911764, 0.0445954353, -0.2865601182, -0.2028494924, 0.0358547457, -0.0149769532, -0.1837144494, -0.4896514118, -0.3156399727, 0.2744004428, -0.0282386951, 0.0308954716, 0.0294819083, 0.0008586075, -0.0627069473, 0.0112188663, -0.2304229736, -0.1335803866, 0.1109153926, 0.4065051675, -0.13139382, -0.5269099474, 0.2307727933, 0.1508883387, 0.1147907451, -0.2585173845, -0.555316329, -0.3104569912, -0.0462880991, 0.4160476327, 0.1070755497, 0.3148153126, 0.2358893156, -0.0479349121, -0.0593311824, -0.0556549914, -0.3613806963, -0.0467395224, 0.3273708522, 0.3528600931, 0.383815974, 0.2802627087, -0.013092462, 0.4280109704, 0.1091015413, -0.04218328, 0.2324938029, -0.3416446447, 0.3144185543, -0.1011058241, -0.3127943277, 0.2138323337, -0.2130126059, 0.2422892898, 0.3699733317, 0.1163370013, 0.1208554953, -0.0625778362, -0.2283208072, -0.187769711, -0.4996318519, -0.1915959716, 0.5330440402, 0.0864417851, 0.2457364202, 0.0275906213, -0.3073690534, -0.2219127119, 0.5058276057, 0.523896575, -0.151475668, 0.1856845915, 0.1707987487, -0.0125576481, -0.4755594432, 0.1710109413, 0.0400473662, 0.1965432465, 0.0049421419, 0.0275596641, 0.1732418984, -0.0784424096, 0.6037288308, -0.0472833626, 0.1495148242, 0.050792601, 0.1644230038, -0.0753692314, -0.1166736633, 0.0149493776, 0.2956690788, 0.0863796324, 0.1583258212, -0.1283069402, -0.3624592423, 0.4438431561, 0.3782401681, -0.2468404025, -0.1108984128, -0.0170872919, -0.6500023007, -0.5062054396, -0.1907252967, 0.0373513661, -0.1412655413, -0.0617038235, 0.2488452047, 0.1306790859, -0.2411844134, -0.0958009437, 0.139464274, 0.2625065446, 0.4379008412, -0.0097435582, 0.218233481, -0.1364619881, -0.165388003, 0.4312857687, 0.0731012076, -0.4082484841, -0.1175406575, -0.2884831131, -0.1285906285, 0.2834280133, 0.0284766182, -0.0203419458, 0.0824792311, 0.0702318549, -0.1980329603, 0.1282811463, 0.4534524679, -0.079964608, -0.3448009789, -0.3542912602, 0.4003819525, -0.1147882491, -0.0775213093, 0.3779805899, 0.3538372219, -0.0498625934, -0.0894848928, -0.0248594359, 0.6526325345, 0.1146841571, 0.0795669705, 0.2420532405, -0.1019821391, 0.6518206596, -0.0410397798, 0.1222633868, -0.3257213235, 0.0006461161, -0.0996313617, 0.150521487, -0.2412483543, -0.0039454661, -0.0847465321, 0.4775623381, 0.1514836401, 0.1945161223, 0.1278756708, 0.30774948, -0.0544242449, -0.1355788857, -0.2700304985, 0.2111503631, -0.0885103047, 0.6037110686, -0.089281626, -0.1621540189, 0.2068763822, -0.1975573897, -0.5399234295, 0.0476856604, -0.133109495, 0.3173461854, 0.0773146302, 0.1214802265, 0.0688769519, 0.1182058081, 0.4526985586, 0.0669937208, -0.3728618324, 0.2600719333, -0.0131286243, -0.1014174148, -0.0101231849, 0.3554028869, 0.0644318759, -0.310449779, -0.4030135274, -0.1997880042, -0.0247622207, -0.2261962295, 0.0545977205, -0.1979750842, 0.377476126, 0.003366143, -0.0794585273, -0.0526560284, -0.005354438, -0.2600456774, 0.1364441365, -0.1225389689, 0.0210394673, 0.1288244724, -0.1615355909, -0.1095583141, -0.0184489768, 0.2816782892, -0.2700919807, -0.1404270977, 0.4918079674, 0.2861508131, -0.0161388908, -0.2439470738, -0.0703867525, -0.0397301875, -0.7922113538, 0.1132475436, 0.061833147, 0.0977653787, -0.1027814969, 0.6565716267, 0.1902372688, -0.0865865275, -0.2809302211, -0.4150910079, -0.3234256804, 0.098098658, 0.2170946896, 0.2083803713, 0.08412797, 0.0156487934, 0.2016140819, -0.5624890924, -0.3321127295, 0.0650146306, -0.0897627622, -0.1126649082, 0.5341259241, 0.161398977, 0.1736098826, 0.059088435, 0.0796299428, -0.0411024541, -0.2069410682, -0.1628684849, -0.3124524057, 0.1237831563, -0.1371283084, -0.3970653713, 0.084320955, -0.2241982669, -0.1113068908, 0.0092436355, 0.1131368503, 0.2931983173, -0.007024603, 0.2214223146, 0.3557650447, -0.1219321042, 0.0378733799, 0.1440413594, 0.3490455747, 0.5711563826, 0.0751873627, 0.3948973119, -0.0918713659, 0.1050569937, 0.3819201887, 0.1560140252, -0.0424258299, -0.0519232005, 0.191781804, -0.1765855998, 0.0707427934, 0.1867441088, 0.1620067805, 0.5038249493, -0.2613510191, -0.1105782464, 0.2460008711, 0.1506227553, -0.3346231878, -0.1828801036, 0.2637705505, 0.0990468338, -0.0441015325, 0.0831302851, 0.3345204592, -0.1747629791, 0.289532721, 0.0971054286, 0.5810631514, -0.2587453723, 0.0536667481, 0.2354915738, -0.0437964238, 0.0007872563, -0.2322139591, 0.0009577971, 0.2113999277, 0.1507847309, -0.2013857514, -0.0427673012, -0.0092603741, 0.2668438554, 0.0916845202, -0.2197218686, 0.2324926555, -0.1332146525, 0.0301503763, -0.1136772335, 0.1947419196, 0.2423437536, -0.0328954197, -0.1802567989, -0.3411665261, 0.4657829404, 0.15781039, -0.1460882127, -0.1140911579, -0.1445541233, -0.1462967098, 0.1082798466, -0.1709430516, -0.1186126545, 0.0937975571, -0.0343464352, -0.0788899884, -0.1461075544, -0.1543911397, -0.1232941151, 0.373605758, -0.1328392774, 0.1162939742, 0.2969819605, 0.0382521003, 0.2212436199, 0.3534231782, 0.474532485, 0.1789367199, 0.1725441515, 0.1585721672, 0.0046518906, -0.0992411375, -0.0175819173, -0.0124584371, -0.0896221027, 0.1290499717, 0.2305072844, 0.1899619848, -0.0855159089, -0.200691238, -0.1554968059, 0.0044144494, -0.1103283837, 0.0721076652, -0.2311015576, -0.0567191988, -0.332852155, 0.1490006298, -0.1740021855, -0.1544373035, 0.2945476174, 0.0350465328, 0.1269105226, 0.0174954757, 0.0980271623, -0.129096821, 0.5321989059, 0.3212455809, 0.0379089937, -0.0222433675, -0.3133052886, -0.7508372068, 0.1343320608, 0.011783516, -0.2444418073, 0.0656240359, -0.0677615702, -0.1610687971, 0.0162589736, 0.2551138699, -0.0839384124, 0.0151445419, -0.0634623393, -0.0591658354, -0.2827611268, -0.0881805569, 0.2552607059, 0.1163078994, -0.2039341778, 0.1172661409, -0.1234666482, 0.018498065, 0.070611462, -0.085875228, -0.0224952698, -0.3802751601, 0.0649748519, 0.1110793725, 0.2818402946, -0.1864161342, -0.2438087016, -0.4563572109, -0.2451842874, -0.3523599207, 0.2957235873, -0.231048733, 0.1400177032, 0.0714989528, 0.1189488769, -0.4806299806, 0.0499628745, 0.0205129273, 0.2524639964, -0.2548213601, 0.1510595828, -0.1215062812, -0.0219835844, 0.3126185238, 0.0471855141, -0.1636139154, -0.0844619423, -0.124170281, -0.1733530313, 0.6147267818, -0.2698361278, -0.1295503825, -0.1446403861, 0.1861273795, -0.086227119, -0.2793918848, -0.3792190552, 0.1572494507, 0.0819160119, 0.2910228074, -0.1266596168, 0.1368778795, -0.1512437165, 0.0280846767, 0.0543356203, 0.0638350099, 0.2239316702, -0.3455147147, 0.0839797035, -0.1800157726 ]
https://github.com/huggingface/datasets/issues/2076
Issue: Dataset download error
Hi, thanks for the answer. I gave a try to the problem today. But I encountered an upload error: ``` git push -u origin fix_link_iwslt Enter passphrase for key '/home2/xuhuizh/.ssh/id_rsa': ERROR: Permission to huggingface/datasets.git denied to XuhuiZhou. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ``` Any insight here? By the way, when I run the datasets-cli command, it shows the following error, but does not seem to be the error coming from `iwslt.py` ``` Traceback (most recent call last): File "/home2/xuhuizh/anaconda3/envs/UMT/bin/datasets-cli", line 33, in <module> sys.exit(load_entry_point('datasets', 'console_scripts', 'datasets-cli')()) File "/home2/xuhuizh/projects/datasets/src/datasets/commands/datasets_cli.py", line 35, in main service.run() File "/home2/xuhuizh/projects/datasets/src/datasets/commands/test.py", line 141, in run try_from_hf_gcs=False, File "/home2/xuhuizh/projects/datasets/src/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/xuhuizh/projects/datasets/src/datasets/builder.py", line 639, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/xuhuizh/projects/datasets/src/datasets/utils/info_utils.py", line 32, in verify_checksums raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) datasets.utils.info_utils.ExpectedMoreDownloadedFiles: {'https://wit3.fbk.eu/archive/2017-01-trnmted//texts/DeEnItNlRo/DeEnItNlRo/DeEnItNlRo-DeEnItNlRo.tgz'} ```
The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link?
148
Issue: Dataset download error The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link? Hi, thanks for the answer. I gave a try to the problem today. But I encountered an upload error: ``` git push -u origin fix_link_iwslt Enter passphrase for key '/home2/xuhuizh/.ssh/id_rsa': ERROR: Permission to huggingface/datasets.git denied to XuhuiZhou. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ``` Any insight here? By the way, when I run the datasets-cli command, it shows the following error, but does not seem to be the error coming from `iwslt.py` ``` Traceback (most recent call last): File "/home2/xuhuizh/anaconda3/envs/UMT/bin/datasets-cli", line 33, in <module> sys.exit(load_entry_point('datasets', 'console_scripts', 'datasets-cli')()) File "/home2/xuhuizh/projects/datasets/src/datasets/commands/datasets_cli.py", line 35, in main service.run() File "/home2/xuhuizh/projects/datasets/src/datasets/commands/test.py", line 141, in run try_from_hf_gcs=False, File "/home2/xuhuizh/projects/datasets/src/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home2/xuhuizh/projects/datasets/src/datasets/builder.py", line 639, in _download_and_prepare self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" File "/home2/xuhuizh/projects/datasets/src/datasets/utils/info_utils.py", line 32, in verify_checksums raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) datasets.utils.info_utils.ExpectedMoreDownloadedFiles: {'https://wit3.fbk.eu/archive/2017-01-trnmted//texts/DeEnItNlRo/DeEnItNlRo/DeEnItNlRo-DeEnItNlRo.tgz'} ```
[ -0.1731774956, -0.010389966, 0.057309635, -0.0393561572, 0.0538162701, -0.0124165909, 0.2563003004, 0.3127624094, 0.1133864149, 0.0201734807, 0.0313478038, 0.0189823192, 0.3240017295, 0.2409654856, 0.1655394733, 0.0832948908, 0.0935478732, 0.0070206583, -0.2977553308, -0.0181835853, -0.2464226335, 0.2069953233, -0.1871379465, 0.0984053612, -0.0664136559, 0.0939153209, -0.1437420994, 0.1323308647, 0.0711327344, -0.5863395333, 0.2837123275, 0.1516172141, 0.2967728972, 0.2796617448, -0.0001216275, -0.0298805088, 0.2723472714, -0.1334089935, -0.3635320961, -0.0276102722, -0.4098820984, -0.4128104746, -0.2503138781, -0.2697914541, 0.1252632886, -0.0470434725, 0.0526268184, 0.1782297492, 0.2551391125, 0.4470216632, 0.1154646575, 0.3542398214, 0.4006439149, -0.0996045619, -0.0763282478, 0.0624180324, -0.0808920115, 0.1945293695, 0.176562041, 0.0043091895, 0.3190732598, 0.124928318, 0.0774353519, 0.0930950046, 0.2438848168, -0.0995645821, 0.4032181203, -0.3919489384, 0.2226326913, 0.0467113517, 0.7577175498, -0.2985826433, -0.5799193382, -0.0442386046, 0.1599040926, 0.0499053858, 0.185463354, 0.0469911098, -0.2484171689, 0.3061733544, -0.1514507383, -0.4920488596, -0.2695290744, 0.3524076939, 0.0779914036, 0.4447518289, 0.0607922599, 0.1950392425, 0.2497368157, -0.143485859, 0.0307612419, 0.1108072698, -0.2411750704, 0.1607260406, 0.0114450585, -0.1012465507, -0.1041231155, 0.1892342567, 0.1351169944, 0.0979463905, -0.2296348512, -0.0681869835, -0.099504903, -0.0101153739, 0.2546983063, 0.0938814953, -0.002286592, 0.0234884154, 0.4250121713, 0.4284127057, 0.2059710473, -0.0637580752, 0.084942244, -0.3227723837, -0.3013035655, 0.054134842, 0.2840807736, -0.1511058807, -0.2094753087, -0.2937172353, 0.0399770401, -0.0105951866, -0.070296444, 0.220625937, -0.1020833105, 0.1546026617, 0.0166575685, 0.1494406909, -0.0292691626, -0.348682791, 0.0202520564, -0.0059210984, -0.0080566751, 0.1573092043, 0.1737335026, -0.0985197201, 0.0062292162, -0.008083987, -0.2337125391, -0.1763405204, -0.2984263301, 0.1085454673, 0.1047859415, 0.1262544692, -0.1358734369, 0.2610066831, 0.0345588289, -0.175012067, -0.0659153089, 0.1226123571, -0.3552240133, -0.2412038743, -0.2473452091, 0.0090101529, -0.2274767458, -0.1725843847, -0.1514146626, -0.094640702, -0.1264716238, -0.3580669761, -0.0076443059, 0.0192545652, -0.2257637084, -0.1544498354, 0.2990469635, 0.5962203741, -0.5039989948, -0.3450404108, -0.2770168781, -0.2029025555, 0.078927815, 0.3190474212, -0.2443766296, 0.225996539, -0.2795181572, 0.1283809543, 0.332423687, -0.5260117054, -0.7665932178, 0.2068857849, 0.0146965198, -0.0245414097, 0.0172462799, 0.0817185119, 0.090046294, -0.2895279229, -0.6715382338, 0.0571654961, 0.0781764388, 0.1101767421, -0.1748416424, -0.5463126898, 0.1403314322, -0.0209617931, 0.0476423837, 0.2466133833, 0.452853024, 0.1625951827, 0.4841619134, -0.1068320572, 0.2486445755, 0.181988582, 0.5102998018, 0.1815200001, 0.128385514, 0.0267959386, -0.3259160817, 0.2599064112, 0.2652192414, 0.1192672625, -0.4695918858, -0.071431838, -0.3838050663, -0.0778348073, -0.3433721066, -0.1025638804, -0.0172440056, 0.2139872164, 0.0695283413, -0.0191349052, -0.1408527642, 0.2331995368, -0.120241411, -0.0135402437, -0.0989578217, 0.3463069499, -0.1621230543, -0.0224541612, -0.0325787999, 0.1884356737, 0.2230120301, -0.2281765342, -0.1415732205, 0.4947054684, -0.41560781, 0.322922349, 0.2500262558, 0.1136656702, 0.1753349602, -0.3674816787, 0.1324032992, 0.2234055996, 0.0230481997, 0.1755133718, -0.1077929214, -0.2079485059, 0.082386665, 0.216946125, 0.012245751, -0.0019035655, 0.2869504392, -0.1655266732, -0.0504660234, -0.1969949901, -0.1162136272, -0.1363360286, -0.1499480456, -0.1951586157, -0.0224005133, 0.189877212, 0.4447518289, -0.0751987323, 0.1647147387, 0.3001326919, 0.0432805531, 0.0643936396, -0.055091396, 0.6107308865, 0.2716000676, -0.1495793015, -0.2571930885, 0.0710751712, 0.2623737454, -0.1553241611, 0.1913644522, 0.0627830401, -0.0459875278, 0.0877592266, -0.0473504663, -0.0395074226, 0.0910842121, 0.2150112391, 0.1679969281, 0.4387922883, -0.44534567, -0.0061937333, -0.4293614328, -0.6389661431, -0.2003346235, 0.2501918972, -0.2366261929, -0.1858731508, -0.1833367646, 0.2103631496, -0.078879036, 0.2053448856, 0.0379032791, 0.3174072206, -0.0843603164, 0.1659025997, -0.2603979409, -0.0483420603, -0.2061701417, -0.0613750927, 0.296895057, -0.0703741089, 0.2664999366, -0.519291997, -0.1063688993, -0.938562572, -0.0400090367, 0.0445348285, 0.0885357931, 0.2453927249, 0.1265655756, 0.4747095108, 0.1492189169, -0.0595932864, 0.238104403, -0.159469083, 0.1200474128, -0.1929835677, -0.0851441547, 0.0652765036, -0.1378381699, -0.1064782888, -0.5346986651, -0.2964922786, 0.3588110805, -0.0660288408, 0.108124353, 0.0974275693, 0.2043615729, -0.0727192461, -0.0373491235, -0.1707765013, 0.0235802885, 0.040108908, 0.2624899149, -0.0981032103, -0.4878209233, 0.1330920458, 0.3627157211, 0.2413799763, -0.0405477956, -0.403799057, -0.0293225758, 0.0282393899, 0.5150355697, -0.0052891425, 0.2320140451, 0.0692335144, -0.0297777038, 0.0736689866, -0.0076380824, -0.1586824805, -0.0632472113, 0.2388667911, 0.4697852135, 0.5023779869, 0.5303524733, -0.0160536245, 0.3157686591, 0.0231781006, 0.0330220349, 0.4492385685, -0.3102988899, 0.3521688879, 0.187814936, -0.4714175761, 0.1839675903, -0.0733268857, 0.2329025567, 0.2779693305, -0.0017411208, 0.0659653544, -0.1709497869, -0.2562527955, -0.2403240949, -0.4881182313, -0.2364593148, 0.4585448503, 0.2765529752, 0.2874038219, 0.0683455393, -0.4240668714, -0.2522805035, 0.4481955469, 0.3350013793, 0.0827877522, 0.1686728746, 0.0481570512, -0.2130636126, -0.4461759031, 0.290039897, 0.1415866464, 0.4409947693, -0.1199093759, 0.1655837297, 0.1390203685, -0.0851578638, 0.585224092, -0.1715992838, 0.1993334144, -0.1369413435, 0.3749863803, -0.1045503169, -0.1160968021, 0.0892062411, 0.2740936577, 0.4025422335, 0.291890949, -0.165791586, -0.3208503723, 0.2214213163, 0.3830728233, -0.2241474241, -0.2301242054, 0.0008436923, -0.345174402, -0.6933250427, -0.3281151056, -0.0069825808, -0.0880715773, 0.0512091517, 0.2241978049, 0.2142445147, -0.0677864105, -0.1070834175, -0.0017373163, 0.222169444, 0.4739640951, -0.0393844061, 0.1846896261, 0.0023138602, 0.17618303, 0.3277204931, -0.0107349595, -0.2566163242, -0.1608527452, -0.2513643801, -0.1139626577, 0.2904004455, -0.0327515379, 0.1926623881, 0.1949867308, 0.0892304629, -0.0346815363, -0.057893835, 0.4571623206, -0.1164326221, -0.3752481639, -0.4556742013, 0.3361280262, -0.2495939732, -0.0428854637, 0.18452847, 0.3937384784, -0.1125242114, -0.2946996093, -0.147562772, 0.7340782881, 0.2102338523, 0.0129900174, 0.2700050771, 0.0916856676, 0.6499993801, 0.0459563248, 0.0865684077, -0.2105216831, 0.0752873942, -0.0589320622, 0.102903828, -0.2461957484, 0.0928068534, -0.0610204749, 0.4542875588, -0.0321819596, 0.0278313737, 0.1643617153, 0.4223259985, -0.124992229, 0.000064288, -0.0898265541, 0.0960050151, -0.0762342662, 0.3992201984, -0.0595671423, -0.1704473794, -0.0311484877, 0.0264309216, -0.5818721056, 0.194254607, -0.2710113227, 0.2384101003, -0.1024197266, -0.0011999445, 0.3617002666, 0.1504684389, 0.3591025174, 0.0494045727, -0.3497040868, 0.2235166579, -0.1748248488, -0.1081770509, -0.1018283889, 0.363026619, 0.0883833915, -0.2549300194, -0.5241519809, -0.0086620301, -0.0361232311, -0.2364131659, 0.1048423275, -0.1667551249, 0.4092414379, -0.0989625826, -0.2461809665, -0.2079122812, -0.1235487461, -0.2296194881, 0.0210538972, -0.1208383664, 0.1367804408, 0.1103191599, -0.2699895203, -0.1645365804, 0.0462832153, 0.4265491962, -0.459166348, -0.1281839907, 0.796482861, 0.2921909392, -0.0672191978, -0.1716514528, -0.1413627416, -0.1442639828, -0.9090527296, 0.0603618398, 0.1543775797, 0.2676520944, -0.0645496547, 0.4446273744, 0.1225081384, 0.0626253337, -0.2182369828, -0.4203623533, -0.1049925089, 0.0045820079, 0.2443048507, 0.105898872, -0.0736545324, -0.074429065, 0.1432600617, -0.5616602898, -0.1851234436, 0.0277122427, 0.0049253148, -0.09340702, 0.6767571568, 0.2900310159, 0.2609379888, -0.0907273516, -0.0271652006, -0.0377195999, 0.0028267449, -0.0262704361, -0.2235167772, 0.1833405942, 0.0595034957, -0.4573154449, -0.0453929901, -0.3796971738, 0.0052259085, 0.025217548, -0.0769212246, 0.1197483093, 0.020843843, 0.2108329684, 0.2600322366, -0.1026634872, -0.0479610525, 0.3185768425, 0.2582705319, 0.4589100778, -0.0411693417, 0.5171279907, -0.0219029561, 0.1272801757, -0.1412896961, 0.0447315983, 0.0138179008, -0.003194154, 0.3017370701, -0.2399453521, 0.1938875467, 0.2793973684, 0.0257165395, 0.3771679699, -0.1780406088, -0.176048696, 0.201123029, 0.0425304621, -0.2472286969, -0.1249373928, 0.1232034937, -0.1259373575, -0.1002598628, 0.0616431274, 0.132586658, -0.3096863329, 0.2227420956, 0.0760904998, 0.4969696999, -0.127991423, 0.0035037596, 0.4426576495, 0.1113891527, 0.0824371204, -0.2332003713, 0.1057080254, 0.1084558219, 0.1235667616, -0.4334860444, -0.178853035, 0.1383225322, 0.2426342517, 0.0103888595, -0.3338916898, 0.1450662762, -0.1855847836, -0.1139688119, -0.1571413428, 0.1135378331, 0.2669582665, 0.054976739, -0.2165639251, -0.1758530885, 0.5872368813, 0.2028709352, -0.0473489724, -0.2904474437, -0.2332371175, -0.1876093447, 0.0005467013, -0.1972237527, -0.2776619196, -0.1044546664, 0.1796914488, -0.1478835195, -0.2340174168, -0.1056611389, -0.1362777501, 0.3717669249, -0.1313416064, 0.0957515612, 0.1909455657, -0.0500354953, 0.2088551372, 0.33420524, 0.4915674031, 0.286650449, 0.5088067651, 0.2947315574, 0.0730185583, -0.0274141077, 0.1301702559, -0.0285188835, 0.010105378, 0.161738798, 0.1069728956, 0.066034086, -0.0057495073, -0.3965216577, -0.0887924656, 0.0907998607, -0.1141296178, 0.2506961226, -0.3444794416, -0.2569882274, -0.3263882995, 0.1786250025, -0.141744107, 0.06496232, 0.3046625555, -0.0245971885, 0.1086316407, -0.1176663414, 0.0214197431, -0.1723726839, 0.4463749528, 0.4036259055, 0.0717266127, -0.1999132782, -0.2780930996, -0.6719226837, 0.0896463245, 0.0252115354, -0.1961073726, -0.0607284755, -0.0723314956, -0.2990931571, -0.2401504368, 0.3871958256, -0.0140769146, 0.1944933236, 0.1509942561, 0.0384240858, -0.2599557042, -0.0353368782, 0.3991890252, 0.0820798278, -0.2298552394, 0.1750032455, -0.3563647866, -0.0808260515, 0.0815267637, -0.1314028203, -0.0405390598, -0.303263396, 0.1969621778, 0.0286376923, 0.2868204713, -0.1024683118, -0.3316047788, -0.4810996056, -0.2985097766, -0.2880400717, 0.3028404713, -0.1538032144, 0.0884625837, 0.0518565066, 0.28300488, -0.5554573536, 0.0205867477, -0.1121594608, 0.2002893835, -0.0868082866, 0.0174596179, -0.011079927, -0.0363523662, 0.4912633896, -0.1543746293, -0.1163397357, 0.1405216157, -0.3566210568, -0.0735705793, 0.5362970829, -0.358371973, -0.0659790039, -0.0804212093, 0.3946359754, -0.0404717103, -0.2846673131, -0.3354430497, 0.0593702346, 0.2304163575, 0.2856464386, -0.0827298164, 0.0828799829, -0.2585713267, 0.196532473, 0.1469177753, 0.0961876065, 0.2246542722, -0.3954998255, 0.192488119, 0.0614373051 ]
https://github.com/huggingface/datasets/issues/2076
Issue: Dataset download error
Hi ! To create a PR on this repo your must fork it and create a branch on your fork. See how to fork the repo [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md#start-by-preparing-your-environment). And to make the command work without the `ExpectedMoreDownloadedFiles` error, you just need to use the `--ignore_verifications` flag.
The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link?
45
Issue: Dataset download error The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link? Hi ! To create a PR on this repo your must fork it and create a branch on your fork. See how to fork the repo [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md#start-by-preparing-your-environment). And to make the command work without the `ExpectedMoreDownloadedFiles` error, you just need to use the `--ignore_verifications` flag.
[ -0.2560881078, -0.0967695341, 0.017853573, -0.0659617111, 0.0944882855, 0.0495946072, 0.1920960695, 0.2611151934, 0.163617149, 0.0419376343, 0.0050669471, -0.0133629981, 0.2525421381, 0.394125253, 0.3025113642, -0.1754236072, 0.1524585187, 0.0719697922, -0.2172750682, 0.0543561429, -0.2055196762, 0.2804816365, -0.2303616703, 0.0209606122, -0.119383119, 0.1293282956, -0.3126569092, 0.1732149422, -0.1787015796, -0.6029586196, 0.3105773032, 0.3934975266, 0.2743173838, 0.2377393395, -0.0001235105, -0.0232410263, 0.3910420537, -0.1918268353, -0.2590369284, -0.0267312843, -0.3742640018, -0.4201503694, -0.1484021246, -0.1779620647, 0.0797266811, -0.2863838375, 0.1079148501, 0.371098429, 0.2191395164, 0.3876252472, 0.1255220026, 0.4391295314, 0.5360847116, -0.1845330298, -0.07084167, 0.1065436006, -0.1627681106, 0.2750476897, 0.1780857593, -0.0807060599, 0.2044586837, 0.1735397875, -0.0209431499, 0.0642210767, 0.3660501838, 0.1444920003, 0.3109256625, -0.4145331085, 0.1908101588, 0.2390262634, 0.7586013079, -0.3389022052, -0.4380359948, -0.0868120492, 0.1690298319, -0.2703783512, 0.1488964856, -0.0361511633, -0.1700428724, 0.2979432642, -0.1648449004, -0.4038981497, -0.2858356237, 0.3131334186, 0.0762057975, 0.4441387355, 0.0129927555, 0.1372983903, 0.4096086621, -0.1014986411, -0.0474602915, 0.1721398383, -0.2839385867, 0.0506905802, 0.1691613793, -0.2852406204, -0.159125343, 0.0787693411, 0.3009268939, 0.1759153754, -0.3208158314, -0.126230821, -0.1952872425, -0.0971674174, 0.2797227204, 0.0889269859, 0.0287296306, -0.0519123226, 0.4055678248, 0.6368991733, 0.2258511484, -0.0737120286, 0.1513204724, -0.3014294803, -0.2974280417, -0.08742553, 0.2769133151, -0.1878220141, -0.0803297758, -0.2514243424, 0.1449325979, -0.1607229561, -0.0861138031, 0.3290609717, -0.1138226166, 0.1629012972, 0.020836506, 0.1700350195, -0.1408060938, -0.2607526183, -0.0238274578, 0.0364176072, 0.005956491, 0.154695183, 0.1064963415, 0.0981586426, 0.1805332005, -0.0965209752, -0.0971262082, -0.1832300276, -0.3297607005, 0.1840198338, 0.0529415384, 0.0353842527, -0.1530471295, 0.1169518977, 0.027281478, -0.1550368071, -0.2040177733, 0.2259788364, -0.13150464, -0.3452866971, -0.1903003901, 0.0012861445, -0.2778306007, -0.4454151988, -0.0313396789, 0.0521882586, -0.2458994538, -0.2138427496, 0.0153321847, 0.0765472427, -0.3249950409, -0.1181465983, 0.2416533828, 0.7265812159, -0.5139052272, -0.2789271474, -0.076444611, -0.3277509809, 0.2245225459, 0.251598686, -0.1615429521, 0.2488372624, -0.3000684679, 0.0010979564, 0.3311362863, -0.3804426491, -0.6101984382, 0.1879913807, -0.0540634505, -0.0505579375, 0.1124405265, 0.1294064522, 0.1397250742, -0.3284984231, -0.5146921277, -0.0157629978, -0.0232059956, 0.0306545123, -0.1765309572, -0.610656023, 0.2020427138, -0.004053825, 0.0648264065, 0.2028805315, 0.219460845, 0.2528125346, 0.4670445025, -0.0675512925, 0.0977598429, 0.2156459242, 0.4710688889, 0.2730847001, 0.0670085996, 0.0601327345, -0.1762893051, 0.1627108306, 0.1490883231, 0.2279656529, -0.2123602182, -0.0618010759, -0.5251749754, -0.1285540909, -0.3235304058, -0.2717590332, -0.0287415273, 0.0901929513, 0.2446546406, -0.1121621579, -0.2586702108, 0.2478961796, -0.2294484973, 0.1092184633, -0.1207644567, 0.4380151033, -0.2130044103, -0.0119133797, -0.0282821283, 0.1945423484, 0.2381062359, -0.3213097453, -0.0859921351, 0.4823783338, -0.3050896227, 0.2762865722, 0.3618416488, 0.205275923, 0.2600657642, -0.4229332507, 0.2289723903, 0.1232641116, -0.0746656507, 0.1577856243, -0.1887504309, -0.0927079916, -0.0088549983, 0.2620517015, -0.0418128744, -0.027580196, 0.3348994255, -0.1963992417, -0.0883995667, -0.2597970068, -0.207283929, -0.2496730834, -0.2829405665, -0.2605140209, 0.0171168, 0.2126555741, 0.4123404324, -0.1385308802, 0.0295027047, 0.3590829372, 0.0673986301, -0.0065641697, -0.2185409516, 0.4872529805, 0.3576417267, 0.0202487875, -0.1737889498, 0.1996553093, 0.1690058559, -0.0750791579, 0.2454596162, 0.1035991535, -0.1709530056, 0.0586015545, -0.079795301, -0.0475221276, -0.0519349091, 0.1176465824, 0.1086498275, 0.3397516608, -0.2460730821, -0.0674611405, -0.3342814445, -0.6024011374, -0.3408092558, 0.1691476554, -0.3219603598, -0.1643620878, -0.0301356632, 0.2658127546, -0.037743222, 0.2160298675, 0.1099046171, 0.2593465745, -0.0848582387, 0.1422858536, -0.2388986498, 0.0188317206, -0.1592907906, -0.028754605, 0.3545592725, 0.0627914667, 0.2899085879, -0.5861010551, -0.2462386638, -1.0009710789, -0.1878994256, 0.1199488342, 0.0032073441, 0.1540718824, 0.415735811, 0.3913274109, 0.2890341282, 0.0603230856, 0.2781769931, -0.2399690449, 0.1530866921, -0.2830750346, -0.1520242691, 0.0930635259, -0.0592893697, -0.2569681108, -0.4589641392, -0.2208829373, 0.2960766554, 0.1360129118, 0.1107347235, 0.0468276814, 0.2436870784, -0.0483040884, 0.0023812209, -0.2082564533, 0.0096365791, 0.0344335139, 0.2957966626, -0.1325061768, -0.411884129, 0.2555499375, 0.2001850754, 0.0281178392, -0.2047903687, -0.5103380084, -0.3684629798, -0.0034457566, 0.4062130451, 0.0548584126, 0.4638822079, 0.1891883463, 0.0625086203, -0.0122242952, -0.0108428458, -0.367806524, -0.0895684734, 0.1972307116, 0.5582018495, 0.4164217412, 0.4434440136, -0.1451858729, 0.5577759147, 0.0876423419, 0.0095202634, 0.2989989519, -0.3636429012, 0.4048637152, -0.0420441963, -0.332206279, 0.1826126724, -0.1945269853, 0.3318015933, 0.3361843228, 0.1469944417, 0.1040747836, -0.094817847, -0.1702913791, -0.1329939812, -0.4028578401, -0.1485631466, 0.5888518095, 0.143689245, 0.232376501, 0.022849204, -0.3772397935, -0.1427165568, 0.425201416, 0.3784022927, 0.0306971055, 0.0962835029, 0.160362348, 0.0097389296, -0.5299112201, 0.2029696405, 0.0565261655, 0.1712633967, 0.0220374055, 0.0857075229, 0.1511494219, -0.0697495714, 0.7038937211, -0.1408515424, 0.0877512321, -0.0066860504, 0.1629094481, 0.1104425117, -0.0515299849, -0.038497366, 0.182455793, 0.3331943452, 0.1445676982, -0.2590569258, -0.3296527267, 0.5500898361, 0.434019655, -0.1855704486, -0.2135306746, -0.0067790281, -0.4758859575, -0.6366707683, -0.1136642992, -0.0540180765, -0.0740406066, -0.1543673128, 0.1138620898, 0.2564125657, -0.1707110107, -0.1556665301, -0.0892776027, 0.1769658178, 0.4189611971, -0.0561011657, 0.176349327, -0.0518058501, 0.1137761921, 0.3967271447, -0.0779779777, -0.3872696459, -0.124426201, -0.2225022614, -0.1031109691, 0.3866277933, 0.0910372064, 0.1034691483, 0.2654751539, 0.1771855503, -0.0770070627, 0.0565067902, 0.4585669041, -0.0764741227, -0.3969676793, -0.454128772, 0.3306322396, -0.1228725389, 0.0162305217, 0.2529271841, 0.4226771593, -0.1093464196, -0.2192015052, -0.1736414135, 0.9077022076, 0.0827931091, 0.0347737297, 0.2712680101, -0.1025491059, 0.6737478375, -0.131731391, 0.132842496, -0.2610989511, -0.0492308997, -0.0813681707, 0.1012217402, -0.1558444947, 0.0635670722, -0.1261625439, 0.4567214847, 0.0598925911, -0.0140631367, 0.1917677671, 0.4202848673, -0.1178309247, -0.1718261093, -0.3096849322, 0.076078169, 0.075854972, 0.4237971604, -0.122067593, -0.1469488442, 0.1439668387, -0.2193655223, -0.6025186181, 0.0687764809, -0.2006503642, 0.0874660537, 0.136111781, 0.0731359422, 0.2486488521, 0.1761364639, 0.4182497263, 0.0958507806, -0.3794702291, 0.223837316, -0.1555955261, -0.1785179228, -0.0702654645, 0.324934572, -0.0614270493, -0.2574085593, -0.4357278347, -0.205508098, -0.011179762, -0.2999997139, 0.1022261083, -0.2520034015, 0.5220279098, -0.118447192, -0.0968033075, -0.0729904696, -0.1612084508, -0.3448170125, 0.0185165424, -0.0442699641, -0.1120542586, 0.0390930399, -0.17824772, -0.057041958, -0.0896246806, 0.2339621484, -0.3715411723, -0.1817033291, 0.5752364397, 0.3446539938, -0.0155801782, -0.2305593491, -0.2190039903, -0.2222649902, -0.83531183, 0.1835671365, 0.2915767133, 0.1671947241, -0.0672511309, 0.5296761394, 0.1522458047, 0.078576602, -0.1942710876, -0.3521621525, -0.26186499, -0.0023979868, 0.2342170775, 0.1948963106, -0.0063247075, -0.0003677262, 0.1384158432, -0.4774490297, -0.1938972771, 0.0092140697, 0.0637512654, -0.0911253244, 0.6803832054, 0.171993494, 0.2699713707, 0.0258039851, 0.0068253726, 0.0369970985, -0.0101183401, -0.011071071, -0.2875039279, 0.1807176024, -0.1370129287, -0.4130560458, 0.0267748833, -0.1023888215, -0.0760752782, -0.0343734585, 0.0697009265, 0.1879000515, -0.0636160299, 0.0708681867, 0.4111156464, -0.148843348, -0.1303732246, 0.1419171244, 0.3417855203, 0.5433337688, 0.1460553408, 0.3977509439, -0.0944913849, 0.0844847411, 0.1741006225, 0.1218337193, 0.2144074291, 0.0460662395, 0.3353440166, -0.1372398883, 0.0646521896, 0.3166047931, 0.2093927115, 0.475092262, -0.1000740156, -0.0756381229, 0.304718852, 0.0343142971, -0.3281182349, -0.159963578, 0.2656961977, -0.044131998, -0.0775051564, 0.2122290432, 0.1708352864, -0.1568442881, 0.3383660913, 0.1190062463, 0.4063677192, -0.207678318, 0.1075000465, 0.344840318, -0.0184340086, 0.020521313, -0.0840308592, 0.0543319173, 0.1479149312, -0.0069146501, -0.3325806856, 0.000773225, -0.0441077724, 0.3287571371, -0.0699131414, -0.3360921443, 0.1808311343, -0.1922995299, 0.123992458, -0.1625450999, 0.0326792113, 0.3966880441, 0.0730533078, -0.1237242371, -0.3008497357, 0.493840903, 0.2963206768, -0.1725650281, -0.126820311, -0.190603137, -0.1363847703, 0.06686268, -0.1083368659, -0.3233780265, 0.0920697898, 0.0047574216, -0.0773347467, -0.4025578201, -0.13643305, -0.2281279564, 0.3287059665, -0.1347251534, 0.1191615611, 0.2238929421, -0.0048154178, 0.2363280207, 0.285815835, 0.4661471248, 0.215284735, 0.4449122846, 0.2052196711, -0.0639491305, -0.0324749872, 0.1189123839, 0.0438313223, -0.0515885241, 0.1417503357, 0.0561558083, 0.0292952079, -0.0215987545, -0.3440897763, -0.0517354719, -0.066543974, -0.1367292404, 0.3235186636, -0.0757753104, -0.1349943429, -0.4974310994, 0.1811789721, -0.2072876692, -0.0507324301, 0.2020739764, -0.0605684407, 0.0358550474, 0.0579458699, 0.0071438085, -0.0892656669, 0.3542529345, 0.3961352706, 0.0571393333, -0.2331693918, -0.1373506039, -0.6080150008, 0.0722814202, 0.0295272674, -0.2606554031, -0.1607080102, -0.050468456, -0.2422068566, -0.0067008687, 0.3835421503, -0.1139457002, 0.2681032419, 0.1205857173, -0.0389938504, -0.1914323568, -0.1258768141, 0.4343543649, 0.1069079861, -0.1347617358, 0.0551379062, -0.1180201024, -0.1362473667, 0.1671074778, -0.0345273875, -0.1286480278, -0.3072933555, 0.142959848, 0.0770578235, 0.3717906475, -0.1529375166, -0.3054277003, -0.4834332466, -0.2226257324, -0.4171459377, 0.2702682614, -0.0821721926, 0.0717916042, -0.0331218615, 0.1794093251, -0.5594058037, 0.0533700883, 0.047988914, 0.2227483988, -0.2027697265, 0.1464827657, -0.0488193408, -0.0336136445, 0.4108431041, -0.0875504687, -0.1198268607, -0.0490777642, -0.2409548759, -0.0097331638, 0.619721055, -0.2184152603, -0.1049644426, -0.0750176758, 0.2192892879, -0.035968747, -0.3054168522, -0.4327180386, 0.1702481657, 0.1123788729, 0.2900764942, -0.073673822, 0.2134286612, -0.3135070205, 0.0939057767, 0.0636195987, 0.2041403949, 0.1747095138, -0.3216533363, 0.0339301489, -0.0607594289 ]
https://github.com/huggingface/datasets/issues/2076
Issue: Dataset download error
Hi @XuhuiZhou, As @lhoestq has well explained, you need to fork HF's repository, create a feature branch in your fork, push your changes to it and then open a Pull Request to HF's upstream repository. This is so because at HuggingFace Datasets we follow a development model called "Fork and Pull Model". You can find more information here: - [Understanding the GitHub flow](https://guides.github.com/introduction/flow/) - [Forking Projects](https://guides.github.com/activities/forking/) Alternatively, if you find all these steps too complicated, you can use the GitHub official command line tool: [GitHub CLI](https://cli.github.com/). Once installed, in order to create a Pull Request, you only need to use this command: ```shell gh pr create --web ``` This utility will automatically create the fork, push your changes and open a Pull Request, under the hood.
The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link?
126
Issue: Dataset download error The download link in `iwslt2017.py` file does not seem to work anymore. For example, `FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnted/texts/zh/en/zh-en.tgz` Would be nice if we could modify it script and use the new downloadable link? Hi @XuhuiZhou, As @lhoestq has well explained, you need to fork HF's repository, create a feature branch in your fork, push your changes to it and then open a Pull Request to HF's upstream repository. This is so because at HuggingFace Datasets we follow a development model called "Fork and Pull Model". You can find more information here: - [Understanding the GitHub flow](https://guides.github.com/introduction/flow/) - [Forking Projects](https://guides.github.com/activities/forking/) Alternatively, if you find all these steps too complicated, you can use the GitHub official command line tool: [GitHub CLI](https://cli.github.com/). Once installed, in order to create a Pull Request, you only need to use this command: ```shell gh pr create --web ``` This utility will automatically create the fork, push your changes and open a Pull Request, under the hood.
[ -0.2110832632, -0.2354267091, 0.0539520606, -0.1203535199, -0.0160377808, 0.0573176518, 0.073691003, 0.3318696916, 0.2753102779, 0.036061056, -0.1463588029, -0.1400412619, 0.3278671205, 0.3584644198, 0.2050700635, -0.1643645465, 0.1016286835, 0.0192575175, -0.3486397862, -0.0259078424, -0.2046320587, 0.1603536904, -0.0323323011, 0.0914414078, -0.0280472375, 0.0190893821, -0.293988198, 0.3911276758, -0.0363711417, -0.472815603, 0.4034946859, 0.3701824546, 0.2042798102, 0.3489316106, -0.0001184653, 0.0142527409, 0.2367955446, -0.0410922505, -0.2115551084, -0.1077313274, -0.2645911574, -0.4390314519, -0.1316625625, -0.1381309181, 0.034405008, -0.0912181512, 0.1589487046, 0.3369334042, 0.3802204132, 0.2255794257, 0.1258405745, 0.4230257869, 0.4710550904, -0.2185386121, 0.0862675384, 0.0614391491, -0.1282147169, 0.2936409116, 0.0898410976, -0.0591583066, 0.0364884213, 0.2152908593, 0.078165628, 0.2497442663, 0.4219129384, 0.0737004727, 0.1608161479, -0.3957280219, 0.1415685117, 0.2385165095, 0.6311095357, -0.3547593951, -0.379670471, -0.0760813504, 0.0333201997, -0.1144907922, 0.1499063671, 0.0264805667, -0.1659981757, 0.3294634521, 0.0786605701, -0.5474173427, -0.2395003736, 0.2311944067, 0.181073159, 0.2853417993, 0.0017945783, 0.0789151117, 0.3799144328, -0.1323514283, -0.132343784, 0.1575140208, -0.2554057539, 0.1031676382, 0.1107838005, -0.2356530428, -0.1103464589, -0.0550626144, 0.4048173726, 0.0613310598, -0.3543201387, -0.044474937, -0.2573797107, 0.011175679, 0.1744710058, -0.0149967177, -0.1784736961, -0.0599961169, 0.4562722743, 0.4776799977, 0.1987169534, -0.1451391429, 0.2203814089, -0.2268176079, -0.3670243323, -0.2010921836, 0.406879127, -0.2196868211, -0.0714216903, -0.3043864369, 0.1304107308, -0.0501972027, -0.1943060309, 0.4044192433, -0.1218391433, 0.0369839743, 0.0639911667, 0.2810361683, -0.1574188173, -0.2196877003, -0.1134861857, -0.0748007298, 0.1971752197, 0.1814005524, 0.003358104, -0.0108484132, 0.0622830279, 0.1343210638, -0.1932733059, -0.1267478168, -0.2192620337, 0.269192189, -0.0305070169, 0.2095513344, -0.0249657519, 0.2104756087, 0.1229592562, -0.1183718145, -0.1643959135, -0.0257806461, -0.225396961, -0.2972945571, -0.3480554819, 0.0438445285, -0.0791403651, -0.3015477061, -0.0541518182, 0.0778257176, -0.313788861, -0.1640633345, 0.0472620614, 0.1616935432, -0.2903907001, -0.1199439391, 0.3145061731, 0.6965309978, -0.2458409369, -0.3773681819, -0.1598858833, -0.1359550357, 0.0721239895, 0.3017197549, -0.1499696374, 0.119533062, -0.2713192999, 0.162303865, 0.2666550875, -0.4356096983, -0.5098183155, 0.2222326398, -0.0900064036, -0.0561341681, 0.0360273346, 0.0909891427, 0.1352195889, -0.2080694288, -0.5479163527, 0.0284521151, 0.0575359501, 0.0603860356, -0.2171856463, -0.5456914306, 0.0474580564, 0.0427253135, 0.1120489687, 0.3481539786, 0.4164611399, 0.1177425534, 0.3645391762, -0.182975322, 0.133817181, 0.2897292674, 0.5038341284, 0.4074415267, 0.007104035, 0.030190507, -0.2982336879, 0.1431923509, 0.0423160046, 0.2540908456, -0.1266073436, -0.1244281605, -0.4942823946, -0.095178999, -0.2824360728, -0.1889823824, 0.0047094109, 0.0679043159, 0.0674918666, -0.0355725102, -0.1386613846, 0.3957072198, -0.2146778256, 0.1661382765, -0.1394144595, 0.5787001848, -0.1604615301, 0.0581320859, 0.1075866818, 0.1332897991, 0.2444795519, -0.2259409577, -0.1514312774, 0.4178691208, -0.4214972556, 0.2410954684, 0.530156076, 0.2047102153, 0.2471734732, -0.5035051703, 0.3256250322, 0.1582863182, -0.0524606965, 0.1165191755, -0.0072106388, -0.0388918854, 0.0617165975, 0.2240243107, 0.0515303016, 0.0638943464, 0.4288524687, -0.2204480022, -0.0248723477, -0.1123150736, -0.2210940421, -0.4116816819, -0.0536614731, -0.3122766614, -0.1100319549, 0.2835019827, 0.5371803641, -0.1335304677, 0.1254914552, 0.4350463152, -0.041250594, 0.0413594432, 0.0192506611, 0.2674680352, 0.0542724766, 0.0737497881, -0.1289023906, 0.2507379949, 0.0435525663, 0.0266728047, 0.150531739, 0.1345539987, -0.0677173957, -0.042543523, -0.0737455711, -0.1119697839, -0.0348202698, 0.0337276049, -0.0966109037, 0.2112506032, -0.3681167364, -0.0346298888, -0.3610077202, -0.6220445633, -0.3655468822, 0.1438074112, -0.4196510315, -0.258959502, -0.0270659719, 0.3142710328, -0.1000513583, 0.1556218863, 0.1236824691, 0.1750087589, -0.122304678, 0.207928583, -0.2587125897, -0.0562153459, -0.1604388356, -0.0437363498, 0.2674292326, 0.2079909295, 0.3205575645, -0.522484839, -0.1317167282, -0.9016185403, -0.1144951731, 0.2193329185, 0.0459592193, 0.1146953106, 0.3226826787, 0.4915752113, 0.1684920341, 0.036383044, 0.2897361219, -0.128054291, 0.0844140798, -0.2710861862, -0.1807757467, 0.1145586669, 0.0175795946, -0.0776853934, -0.5018084049, -0.3658222556, 0.3381376266, 0.0024153616, 0.0508714244, 0.2050857991, 0.1885676384, 0.0024423599, 0.1367032379, -0.1255960912, 0.0093967402, 0.0562893674, 0.3124876618, -0.2125174105, -0.3424598575, 0.3461088538, 0.2088090181, -0.062254522, -0.2458332628, -0.5297688246, -0.1404604018, -0.0356180146, 0.5182732344, 0.0156707764, 0.4950367212, 0.1784033179, -0.0216532499, -0.0080256853, -0.0368845873, -0.2231238633, 0.0537451804, 0.2179124802, 0.3834922612, 0.4108882546, 0.4933072031, -0.1012102887, 0.6489822865, 0.1351569444, 0.0992670655, 0.3816055357, -0.2987957001, 0.3904784322, -0.1469756663, -0.298643142, -0.0016427805, -0.1519543231, 0.2234378904, 0.3047826886, 0.1389473081, 0.1592383087, -0.093653582, -0.3841911256, -0.1008108556, -0.4200042188, -0.1524867117, 0.365380764, 0.1339367926, 0.2260611057, -0.0965343788, -0.3875352442, -0.1447795331, 0.4546306133, 0.4856205583, 0.0788358673, 0.1901086122, 0.2211535275, 0.0364672355, -0.4469139874, 0.2903986573, 0.1320075095, -0.0227104966, -0.0453883819, 0.0428981222, 0.1085168719, -0.1409750432, 0.5532928705, 0.0112177543, 0.2167461514, -0.0985500813, 0.0229875688, 0.0994181558, 0.0107959239, 0.0437109098, 0.1837856174, 0.3269136548, 0.0586390533, -0.432754159, -0.4608085454, 0.4464086592, 0.2359814346, -0.1968592852, -0.0085386429, -0.041210223, -0.5688756108, -0.7046001554, -0.1678563803, -0.0078563616, -0.1879736185, -0.1209303364, 0.0776065141, 0.1903194189, -0.1568930894, -0.1972072273, 0.007822792, 0.1801778227, 0.2754974961, -0.0363738723, 0.1566658616, -0.0247714184, 0.1078741178, 0.4978244603, 0.0052087614, -0.2094108015, -0.1368770897, -0.0539466664, -0.1945206225, 0.3270238042, 0.2149189413, 0.2794047296, 0.5513016582, 0.2594563365, -0.227527678, 0.005348505, 0.3613304794, -0.09192954, -0.3410686553, -0.3720965087, 0.5128762126, -0.2919175923, 0.0253152158, 0.300957948, 0.614180088, -0.0424414873, -0.1070446596, -0.2116153389, 0.8171712756, 0.1098035499, 0.0233179107, 0.320543021, -0.3169649541, 0.4993393719, -0.1834742725, -0.0700715408, -0.2237209529, -0.1022568047, -0.1298688948, 0.1635369658, -0.1475667953, -0.0211656503, -0.0248919781, 0.4875750542, 0.2194265425, 0.1664324403, 0.1990478337, 0.400198251, -0.1482168138, -0.184136495, -0.3412178755, 0.1323919147, -0.1016488895, 0.5201211572, -0.0426829532, -0.3606900275, 0.0399968922, -0.1636307091, -0.4959304333, 0.0977745503, -0.2116213739, 0.1316362768, 0.0644882992, 0.1285902411, 0.1896420717, -0.1768204421, 0.4203734696, 0.0891018882, -0.3705151081, 0.229013741, -0.0821928605, -0.0882166252, -0.0938073024, 0.3628077805, 0.1292980164, -0.2935976982, -0.4153261483, -0.1198911667, -0.0288054068, -0.3968340456, 0.1516187489, -0.3641491234, 0.0677462295, -0.048580002, -0.0987285599, 0.0722706094, -0.073565729, -0.3161444366, 0.0389036797, -0.1556698978, -0.0997206941, -0.1470520943, -0.0951969102, -0.0044181705, -0.1197342575, 0.2152937502, -0.4728778601, 0.0231327675, 0.4791010916, 0.4317126274, -0.0830756649, -0.1388289034, -0.2956316471, 0.0571266003, -0.8023344278, 0.208029896, -0.0347238593, 0.1268725842, -0.2369489819, 0.5104187131, 0.1861513257, 0.0303397253, -0.1408405155, -0.332978189, -0.189212203, 0.1432462484, 0.1213505566, 0.1389916092, -0.0154817365, 0.1325033307, 0.1311821342, -0.3261319697, -0.2453273386, -0.0592156239, 0.008890124, -0.1425931752, 0.5837340951, 0.0677377135, 0.3327384293, 0.0385998078, -0.0028792187, -0.0786760002, -0.1512923837, -0.0153798908, -0.3094736636, 0.1270186007, -0.1938003451, -0.3463671207, -0.0661306754, -0.23694399, -0.0994161069, 0.024589587, 0.1164679602, 0.067375727, -0.099867858, 0.1007109955, 0.3244680762, -0.2328874022, -0.1834414452, 0.1127819642, 0.4962289035, 0.5475104451, -0.1123681962, 0.3527326882, -0.2155140936, 0.0361018032, 0.0072237365, 0.1517479569, 0.2413237691, -0.1230806038, 0.4092423618, -0.0962148532, 0.033708863, 0.1993795335, 0.2724164724, 0.21721901, -0.0301288478, 0.0002517852, 0.1970579773, 0.0334303342, -0.2407179326, 0.0043880455, 0.2773888111, -0.3165876567, 0.0001484046, 0.2445086688, 0.2434203327, 0.0326864421, 0.2097509503, 0.1546023488, 0.3843667507, -0.1354888678, -0.0059500551, 0.2811082304, -0.0566390343, 0.0723372102, -0.1455573887, 0.1488767266, 0.2666096389, 0.081209287, -0.2176888883, -0.0191491693, -0.0000560063, 0.2646207809, 0.0688583106, -0.4345850945, -0.0124289198, -0.1814427823, 0.1980894804, -0.1255666465, 0.0234947689, 0.2571657598, 0.0722446367, -0.3908340931, -0.1862327904, 0.6674999595, 0.2729699016, -0.0067738309, -0.1617907435, -0.1766162962, -0.241255492, 0.0472541265, -0.1085467264, -0.3009738326, 0.1466249824, 0.034285266, 0.1258673817, -0.2188074142, -0.0567169078, -0.1533831507, 0.3554351032, -0.1098855808, 0.1494350284, 0.3063850999, -0.1160862967, 0.0994163826, 0.2421587408, 0.4903851748, 0.0880443901, 0.1118219495, 0.1783021986, 0.130344525, -0.1638831347, 0.1486400217, -0.1357661784, -0.1518825591, 0.1162727848, 0.100391984, 0.0547592752, -0.0963516533, -0.2757140696, -0.280741483, 0.0327413455, -0.12580432, 0.431625843, -0.1865396351, -0.1493149102, -0.2894167602, 0.029515801, -0.1919052303, 0.0120492559, 0.1910399497, -0.202900514, 0.0164054595, 0.0376008786, 0.0303534511, -0.1848808378, 0.3830528557, 0.3688984811, 0.1084757075, -0.0404465757, -0.1493473053, -0.5221024752, -0.0911985487, -0.0646282881, -0.3110877275, 0.0818891451, 0.0216677096, -0.1355514377, -0.051725179, 0.4342081845, -0.3080395758, 0.3608533144, 0.1353233755, 0.1233096793, -0.2188130468, -0.3192844391, 0.3344916999, 0.1019837707, -0.1856914014, 0.1005754694, 0.0284421518, -0.104762882, 0.2286310643, 0.0314075351, 0.0685323328, -0.7217948437, 0.0577101782, 0.0108113997, 0.2015743256, -0.2599642277, -0.4110690057, -0.2814150453, -0.3405734003, -0.3281992674, 0.1083413884, -0.2560908198, 0.3493720889, 0.0975079909, 0.0146313123, -0.5679982901, 0.039332699, 0.1083650216, 0.122435756, -0.1601152271, 0.2394271493, -0.2191827297, -0.0246323589, 0.5274122953, 0.0141116697, -0.0824993625, 0.0562009811, -0.3022765815, -0.1346305162, 0.5225579739, -0.1165838465, -0.0832862854, -0.040123757, 0.2780083418, 0.1697811484, -0.3663471043, -0.4627893567, 0.1363803148, 0.0041424967, 0.28462556, -0.0590315312, 0.220099628, -0.1446908265, 0.0008828864, 0.106148757, 0.1828064322, 0.1683298051, -0.3448531032, 0.0616683029, -0.0189398732 ]
https://github.com/huggingface/datasets/issues/2075
ConnectionError: Couldn't reach common_voice.py
Hi @LifaSun, thanks for reporting this issue. Sometimes, GitHub has some connectivity problems. Could you confirm that the problem persists?
When I run: from datasets import load_dataset, load_metric common_voice_train = load_dataset("common_voice", "zh-CN", split="train+validation") common_voice_test = load_dataset("common_voice", "zh-CN", split="test") Got: ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/master/datasets/common_voice/common_voice.py Version: 1.4.1 Thanks! @lhoestq @LysandreJik @thomwolf
20
ConnectionError: Couldn't reach common_voice.py When I run: from datasets import load_dataset, load_metric common_voice_train = load_dataset("common_voice", "zh-CN", split="train+validation") common_voice_test = load_dataset("common_voice", "zh-CN", split="test") Got: ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/master/datasets/common_voice/common_voice.py Version: 1.4.1 Thanks! @lhoestq @LysandreJik @thomwolf Hi @LifaSun, thanks for reporting this issue. Sometimes, GitHub has some connectivity problems. Could you confirm that the problem persists?
[ -0.4876464307, -0.0846989974, -0.0791776702, -0.0048034876, 0.3903559148, 0.0129869124, 0.270430088, 0.3016327322, -0.0631876141, 0.3089750707, -0.2126753628, -0.1347060353, 0.1226182729, 0.0170100797, -0.0094281342, -0.0931783244, -0.0044785971, 0.0029829929, 0.1925333142, 0.0247695539, -0.0387781598, 0.0858433694, -0.176005438, 0.3123495877, -0.1892664135, -0.0507800765, 0.0589113161, 0.0770445764, -0.2132199258, -0.3560751975, 0.46765396, 0.0277778618, -0.0412642732, 0.8190297484, -0.0001130046, 0.1451915801, 0.4414002299, -0.0683251917, -0.3076120019, -0.4945726991, -0.0904799327, -0.0165244974, 0.1303875893, 0.16184403, -0.161477983, 0.0518422499, 0.0687629655, -0.2308129221, 0.3591998816, 0.3560590148, 0.2153367102, 0.2006513774, 0.3548300564, -0.186859116, -0.0521090403, -0.1892619431, -0.0218942128, 0.8155433536, 0.0865340158, -0.2235875577, 0.2252189517, 0.136226058, 0.114713572, -0.0424557552, -0.0971719921, -0.0446066037, 0.1151468232, -0.3021114171, 0.046599105, 0.2485734969, 0.408020407, -0.4108531773, -0.3393286169, -0.0096716247, 0.0688003451, -0.1919007301, 0.179437086, 0.0755964667, -0.3747930527, 0.0896899179, -0.4395819008, -0.3170168698, -0.1687383652, 0.2219958603, -0.0388029777, 0.0705614835, -0.1115496308, 0.0763533562, 0.1780451834, 0.0002032327, -0.3434880674, 0.1713795811, 0.0020533723, 0.4054929912, -0.5099365115, -0.027029302, -0.2446026951, -0.3834081888, 0.3409881592, -0.0012131712, -0.0660155863, -0.0444585234, -0.2184317708, 0.1957032233, 0.3238677979, 0.2319249511, -0.0145540247, 0.227080971, 0.4110628664, 0.2189213336, -0.0950868949, -0.0442092568, -0.3507362604, -0.364831984, 0.1944303811, -0.0137010636, 0.3809741735, -0.3023436666, -0.2657467425, 0.0950677395, -0.2045123726, -0.0274013355, -0.0486893505, 0.3798327148, -0.1350038201, 0.0382546447, -0.1236829683, 0.4221954346, -0.1185597032, 0.0815405399, -0.2166409492, -0.0903100073, -0.1128262654, 0.0976694152, 0.0493130125, -0.3984248638, 0.2074004859, 0.0379753038, 0.3572258353, -0.3074055016, -0.0891103894, -0.0856576711, -0.5720177889, 0.1642299294, 0.0533686168, 0.2146517187, 0.2993556559, -0.1587571055, -0.1170125529, -0.1049670652, -0.3046243787, -0.471655935, 0.0482195094, 0.2257325947, -0.0102701159, 0.056962207, -0.4090842307, -0.1771775633, 0.1486499608, -0.2936158776, -0.0880604386, -0.3016134202, 0.0597569905, -0.1316049546, 0.4870408177, 0.0713867024, 0.0527719259, -0.1694483906, -0.0351201668, -0.101860851, 0.0548309945, 0.5269745588, -0.2484565675, 0.0601397157, -0.2221782804, 0.1560967416, 0.5217100978, -0.6526109576, -0.4879726171, 0.4022219181, -0.2358697355, 0.0671710223, -0.0939289555, -0.2874567807, 0.039274659, -0.0323440917, 0.5161757469, 0.1174637824, -0.0979950652, -0.1968775243, 0.0407910757, -0.2047233433, 0.1706809849, 0.0211100858, -0.0097483452, 0.078740187, 0.1623611599, -0.0269785952, 0.416403532, 0.1037283391, 0.0090092309, 0.2248878926, 0.3108512759, -0.2277763933, -0.1555937082, -0.1596633941, 0.1518704146, 0.1177365184, 0.2797799706, 0.3692599535, -0.1291468292, -0.1252071559, -0.4446751177, -0.0257861, -0.2310207635, 0.0622796565, 0.0568086542, 0.0320311263, 0.0646317601, 0.2193547785, -0.184076637, 0.1622598618, -0.2816716135, 0.1097335219, -0.1320054084, 0.4692251682, -0.2606513798, -0.0348059945, 0.2211779058, 0.2767658234, 0.0456459895, -0.0788386762, -0.2147000134, 0.3152982891, -0.3178598881, 0.2351754606, 0.1205974892, 0.2831676602, 0.1175953895, -0.5911065936, 0.0591869093, 0.1485544294, -0.0232403856, 0.0424573645, 0.3778437674, 0.2386408746, 0.1728033125, 0.4496589005, 0.07263349, 0.0858747438, 0.2909100652, 0.247657299, -0.1342754811, 0.1453574747, 0.1616978347, -0.1719187945, 0.3192302287, -0.1830842644, -0.3405321836, -0.1651498824, 0.382987231, -0.0832233652, 0.1078931466, 0.1136158928, -0.1390832514, -0.1129106283, -0.0132414298, -0.0086588673, 0.238392815, 0.0911888629, 0.0106041702, 0.3226591647, -0.2620109916, 0.0036356205, 0.0549353883, 0.0583233386, 0.1743072867, 0.258944571, 0.02267294, -0.0217204615, -0.0456664115, -0.2580973804, -0.2093354464, 0.1478905231, -0.1808153689, 0.1480845064, -0.0866635665, 0.0132795284, -0.0805373117, -0.3049544394, -0.5015804172, -0.2510821223, -0.1252114475, 0.1089011431, 0.350338161, 0.2614881694, -0.0398213081, -0.1008041501, 0.190776825, -0.2764285505, 0.0604963638, -0.2182854563, -0.224389106, 0.0706055462, 0.0844241604, -0.3123202622, 0.023344934, -0.2295908928, -0.1374638826, -0.0782050416, -0.1175297275, 0.0083509702, -0.245548889, 0.3056173921, 0.1816340685, 0.3986810744, 0.2330411971, -0.0065057767, 0.421759665, -0.2188815027, -0.0219955277, 0.0442474745, -0.0634037778, 0.0226562601, 0.1767362505, -0.2832998931, -0.4118852615, -0.3967010081, 0.2375127226, -0.1698880792, 0.0501052365, 0.2355161756, 0.1234257519, -0.0473635942, 0.0705346689, 0.3045691252, -0.1642431766, -0.3654205501, 0.0484300964, -0.0856717378, -0.1601704806, 0.1718709618, 0.2391327322, 0.5762708783, -0.0725359097, -0.4448835254, -0.0168501697, -0.0534747951, 0.3242330253, 0.1021107584, -0.0072236904, -0.0170468446, -0.090597257, -0.0576722249, 0.1403517425, -0.2352855206, -0.0629814789, 0.2043683827, 0.3051240146, 0.1238510087, 0.5398368835, -0.134844929, 0.6648235321, 0.2927260697, 0.1564437151, 0.1879327744, -0.2086393535, 0.3413590789, -0.2027698308, -0.441916585, 0.1032796651, -0.1708298624, -0.0757673308, 0.0826867074, 0.1749290079, 0.035712108, -0.3792595565, -0.4515120089, -0.1404634416, -0.2120099664, -0.2305963486, -0.2494814396, 0.0973122045, 0.0886196196, -0.0255279317, -0.1131441668, -0.0858876482, -0.016193362, 0.4476883709, -0.1347055882, 0.1376415789, -0.2322180271, -0.2518394291, -0.3093476892, 0.1862037927, 0.0572024919, 0.4124842584, -0.3871543407, 0.1881734282, -0.108635366, 0.0231672302, 0.1757866144, -0.1260645688, 0.0896160454, 0.0296850987, 0.0075163259, -0.1814339608, -0.0671500489, 0.1948505342, 0.3333880603, 0.3082724214, 0.2268792689, -0.1649070233, 0.043612469, 0.1503457576, 0.4491624534, 0.0521084704, 0.0356227756, -0.3161218464, -0.2028122097, -0.3019148111, 0.0451672152, 0.0064084181, 0.3169747293, -0.1787020117, 0.0400929451, 0.338023603, -0.2488069087, 0.2350932211, 0.0458866432, -0.0795389414, -0.3574634194, 0.184831202, 0.2858288884, 0.041810628, 0.0671861917, 0.7470651865, 0.1048018187, -0.5249845386, 0.0151382368, 0.2105797678, 0.392726779, 0.3051041663, 0.0145239877, 0.2129780203, 0.2763598561, 0.0847400501, -0.0271734335, 0.196818471, 0.3358712196, 0.3391830921, -0.6512300968, -0.545178473, 0.124020353, -0.16483742, -0.0133871976, 0.307177484, 0.1552504003, -0.1331917793, 0.0506519414, -0.5677534938, 1.072843194, 0.1851098686, 0.081142135, 0.0369693823, -0.0408568792, -0.0429542102, -0.3154564202, 0.079429239, -0.1125623956, -0.104574196, -0.0135761844, -0.2059075981, 0.0688672587, -0.196257025, -0.0762904137, 0.4810022116, -0.0870859995, 0.0726327226, 0.1857947707, 0.2683596015, 0.0136692254, 0.2445685863, -0.2734534144, 0.1776365489, -0.0487892963, 0.5176773071, 0.0022684599, -0.0941771939, -0.243506223, -0.3722911179, -0.3688099682, 0.2839080989, -0.1193806604, 0.0671750605, 0.1856508255, -0.2672019303, 0.2050153315, 0.1718736887, 0.3522239923, 0.2981657386, -0.2847111225, 0.1762101352, -0.007189271, -0.0778331608, 0.1546158195, 0.1250276268, 0.0521415249, -0.1679114103, -0.502281785, 0.3732267022, -0.0156884454, -0.3964532316, -0.1300136596, -0.2442808449, 0.0088551771, -0.1638150662, 0.2053540051, -0.3347202837, 0.1721632183, -0.3236491084, 0.1263958514, 0.1891030073, -0.1880552322, -0.1597912461, 0.2088702172, -0.1925046295, -0.0563027486, 0.2488452345, 0.0497439541, -0.1385815889, 0.4595991373, 0.1396304518, -0.0454387628, -0.2443519682, -0.0585723259, 0.5368097425, -0.4719844162, -0.0285095144, -0.1112321019, 0.1944277287, -0.1658236831, 0.4409452379, 0.2032214999, -0.0784863457, 0.1024989113, -0.4698050916, -0.312936604, 0.1936556101, -0.0615780354, 0.2066180855, -0.0816058964, 0.1082934067, -0.0067190556, -0.0445605069, -0.2897929549, -0.107799679, -0.3431857228, 0.0209672898, 0.3339730799, -0.1914006472, 0.3850354552, 0.0402169153, 0.2257784307, -0.2455057055, -0.1808194369, -0.1469321251, 0.0213191211, 0.121276103, 0.0197620168, -0.2533614337, 0.1456552446, 0.0564526767, -0.1473715603, -0.0086092679, 0.1858488768, 0.0480353497, 0.0552311055, -0.1347243935, -0.0723068118, -0.1145793349, 0.0543709248, 0.1188736781, 0.0379200801, 0.4012286961, -0.0092395674, 0.1457677782, 0.0158032626, -0.2288103104, -0.4103937447, 0.0634874851, 0.1104701161, 0.0188780557, 0.3517829776, -0.349655807, 0.0694843531, 0.0487372577, 0.6509905457, 0.1022276282, -0.3533659875, 0.2629569769, 0.2502113879, 0.1545456946, -0.2229315192, -0.0240434613, 0.1632438153, -0.16365318, -0.0173642319, 0.1162430421, 0.1822685152, 0.0582860112, -0.0675275475, -0.0943043083, 0.4997422099, -0.0856317207, 0.272896558, 0.1634153426, 0.1191038489, -0.008213276, 0.1074971184, 0.1330454499, 0.0430904627, 0.3482434154, -0.5331624746, 0.0900309682, 0.0672299564, -0.0937193781, 0.1620713919, -0.1775235087, 0.102507174, 0.0001448422, -0.3571618497, -0.2571323216, -0.1978609264, 0.4001484513, -0.3733706772, 0.142911762, -0.2302742302, 0.1050121188, -0.0553166382, -0.1685609519, 0.0117508946, -0.2862840295, -0.202334106, -0.1951297224, 0.0582066253, -0.0672032237, 0.2015392929, -0.0534079075, 0.0870337337, -0.3017740548, -0.1426233351, 0.2201743275, -0.0625625327, -0.1032322943, 0.3250924349, 0.100420557, -0.09805163, 0.2333039194, 0.2825147212, 0.7588900328, 0.172331363, -0.0794541016, 0.2104050517, 0.1219783202, -0.1308843344, 0.258534044, 0.0486162268, 0.2171358764, 0.1646728367, 0.2685932815, 0.2097798437, -0.1216759086, 0.2220001668, -0.1417059898, 0.0521773063, -0.3314893842, 0.4694358706, -0.4028270543, -0.1831301153, -0.490337342, 0.1656344235, -0.4790596366, -0.0280085821, 0.4250092208, 0.1137311757, 0.0196255669, -0.4083963931, 0.0869360715, -0.0538707636, 0.3900734484, 0.3639169633, 0.4856375754, -0.1029977128, -0.1019114479, -0.4100943804, 0.3474360406, -0.1695383042, -0.0634159148, -0.105686374, -0.1028934345, 0.0326903537, 0.2012595385, 0.2235745937, -0.1411513984, -0.1996717453, 0.0126376031, -0.0142846685, -0.2394860983, -0.0034859416, 0.137259692, -0.018422924, -0.2118449211, 0.1580019593, -0.4327092469, 0.0251366589, 0.0708987787, 0.1202180833, 0.0879018977, -0.3852393031, 0.2949138582, 0.1643316001, 0.7388055325, 0.0270250794, -0.1943351477, -0.088425003, -0.356973052, -0.1504110247, -0.0098315319, -0.2185797542, 0.4324524701, -0.1128251106, 0.0285940729, -0.3783828318, -0.1291137189, -0.0339357108, -0.1541231722, 0.0211208835, -0.0682817623, 0.0382537246, 0.0142834382, 0.2206725776, -0.1315781772, 0.0165924951, 0.0929289982, -0.1390489191, -0.1497684121, 0.4321291745, -0.1975666285, -0.2928906977, -0.3356834054, 0.2677129507, 0.0137564037, -0.1037765369, -0.4707444012, 0.2704678178, 0.4233446419, 0.3171432316, -0.3321479261, 0.1437585354, -0.0832421184, 0.1260186285, 0.1612605602, 0.2068046182, -0.3250115216, -0.2565757334, 0.0909334719, -0.1341870129 ]
https://github.com/huggingface/datasets/issues/2070
ArrowInvalid issue for squad v2 dataset
Hi ! This error happens when you use `map` in batched mode and then your function doesn't return the same number of values per column. Indeed since you're using `map` in batched mode, `prepare_validation_features` must take a batch as input (i.e. a dictionary of multiple rows of the dataset), and return a batch. However it seems like `tokenized_examples` doesn't have the same number of elements in each field. One field seems to have `1180` elements while `candidate_attention_mask` only has `1178`.
Hello, I am using the huggingface official question answering example notebook (https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb). In the prepare_validation_features function, I made some modifications to tokenize a new set of quesions with the original contexts and save them in three different list called candidate_input_dis, candidate_attetion_mask and candidate_token_type_ids. When I try to run the next cell for dataset.map, I got the following error: `ArrowInvalid: Column 1 named candidate_attention_mask expected length 1180 but got length 1178` My code is as follows: ``` def generate_candidate_questions(examples): val_questions = examples["question"] candididate_questions = random.sample(datasets["train"]["question"], len(val_questions)) candididate_questions = [x[:max_length] for x in candididate_questions] return candididate_questions def prepare_validation_features(examples, use_mixing=False): pad_on_right = tokenizer.padding_side == "right" tokenized_examples = tokenizer( examples["question" if pad_on_right else "context"], examples["context" if pad_on_right else "question"], truncation="only_second" if pad_on_right else "only_first", max_length=max_length, stride=doc_stride, return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length", ) if use_mixing: candidate_questions = generate_candidate_questions(examples) tokenized_candidates = tokenizer( candidate_questions if pad_on_right else examples["context"], examples["context"] if pad_on_right else candidate_questions, truncation="only_second" if pad_on_right else "only_first", max_length=max_length, stride=doc_stride, return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length", ) sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") tokenized_examples["example_id"] = [] if use_mixing: tokenized_examples["candidate_input_ids"] = tokenized_candidates["input_ids"] tokenized_examples["candidate_attention_mask"] = tokenized_candidates["attention_mask"] tokenized_examples["candidate_token_type_ids"] = tokenized_candidates["token_type_ids"] for i in range(len(tokenized_examples["input_ids"])): sequence_ids = tokenized_examples.sequence_ids(i) context_index = 1 if pad_on_right else 0 sample_index = sample_mapping[i] tokenized_examples["example_id"].append(examples["id"][sample_index]) tokenized_examples["offset_mapping"][i] = [ (o if sequence_ids[k] == context_index else None) for k, o in enumerate(tokenized_examples["offset_mapping"][i]) ] return tokenized_examples validation_features = datasets["validation"].map( lambda xs: prepare_validation_features(xs, True), batched=True, remove_columns=datasets["validation"].column_names ) ``` I guess this might happen because of the batched=True. I see similar issues in this repo related to arrow table length mismatch error, but in their cases, the numbers vary a lot. In my case, this error always happens when the expected length and unexpected length are very close. Thanks for the help!
80
ArrowInvalid issue for squad v2 dataset Hello, I am using the huggingface official question answering example notebook (https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb). In the prepare_validation_features function, I made some modifications to tokenize a new set of quesions with the original contexts and save them in three different list called candidate_input_dis, candidate_attetion_mask and candidate_token_type_ids. When I try to run the next cell for dataset.map, I got the following error: `ArrowInvalid: Column 1 named candidate_attention_mask expected length 1180 but got length 1178` My code is as follows: ``` def generate_candidate_questions(examples): val_questions = examples["question"] candididate_questions = random.sample(datasets["train"]["question"], len(val_questions)) candididate_questions = [x[:max_length] for x in candididate_questions] return candididate_questions def prepare_validation_features(examples, use_mixing=False): pad_on_right = tokenizer.padding_side == "right" tokenized_examples = tokenizer( examples["question" if pad_on_right else "context"], examples["context" if pad_on_right else "question"], truncation="only_second" if pad_on_right else "only_first", max_length=max_length, stride=doc_stride, return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length", ) if use_mixing: candidate_questions = generate_candidate_questions(examples) tokenized_candidates = tokenizer( candidate_questions if pad_on_right else examples["context"], examples["context"] if pad_on_right else candidate_questions, truncation="only_second" if pad_on_right else "only_first", max_length=max_length, stride=doc_stride, return_overflowing_tokens=True, return_offsets_mapping=True, padding="max_length", ) sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping") tokenized_examples["example_id"] = [] if use_mixing: tokenized_examples["candidate_input_ids"] = tokenized_candidates["input_ids"] tokenized_examples["candidate_attention_mask"] = tokenized_candidates["attention_mask"] tokenized_examples["candidate_token_type_ids"] = tokenized_candidates["token_type_ids"] for i in range(len(tokenized_examples["input_ids"])): sequence_ids = tokenized_examples.sequence_ids(i) context_index = 1 if pad_on_right else 0 sample_index = sample_mapping[i] tokenized_examples["example_id"].append(examples["id"][sample_index]) tokenized_examples["offset_mapping"][i] = [ (o if sequence_ids[k] == context_index else None) for k, o in enumerate(tokenized_examples["offset_mapping"][i]) ] return tokenized_examples validation_features = datasets["validation"].map( lambda xs: prepare_validation_features(xs, True), batched=True, remove_columns=datasets["validation"].column_names ) ``` I guess this might happen because of the batched=True. I see similar issues in this repo related to arrow table length mismatch error, but in their cases, the numbers vary a lot. In my case, this error always happens when the expected length and unexpected length are very close. Thanks for the help! Hi ! This error happens when you use `map` in batched mode and then your function doesn't return the same number of values per column. Indeed since you're using `map` in batched mode, `prepare_validation_features` must take a batch as input (i.e. a dictionary of multiple rows of the dataset), and return a batch. However it seems like `tokenized_examples` doesn't have the same number of elements in each field. One field seems to have `1180` elements while `candidate_attention_mask` only has `1178`.
[ 0.1950867027, -0.5012052655, 0.0041138758, 0.2735459805, 0.2830948532, -0.0630853325, 0.2918868065, 0.1244553998, -0.3849654794, 0.1932285577, 0.0684069395, 0.2712976038, 0.1175049618, -0.2701624334, -0.0708334893, -0.1942007393, 0.0438765846, -0.0185052399, 0.1663551182, -0.0736735463, -0.1644646823, 0.2084966302, -0.4730280936, 0.3151911795, -0.3681921363, -0.279274404, -0.0652291253, -0.141350925, -0.2085032165, -0.77242136, 0.1893927455, -0.2526652515, 0.2286591381, 0.2269303799, -0.0001293044, -0.0708507374, 0.0546482466, -0.1082277521, -0.2221764475, 0.0503475294, 0.200600788, -0.1157539114, 0.0235014148, -0.1506021023, 0.0862617865, -0.2532843053, -0.2258588374, -0.2837266624, 0.5048592091, 0.2183129489, 0.0398420021, 0.3087803721, 0.1326161325, -0.018096881, 0.0254216343, 0.0207150541, -0.1003999785, -0.0611898676, 0.2177815437, -0.016631715, 0.1106864959, 0.615860343, 0.2363806665, 0.1203646883, 0.3287785053, -0.0844720677, 0.0512513369, -0.2424861044, 0.1621570885, 0.198771596, 0.1203217134, -0.0806561634, -0.2992401123, -0.3082880676, 0.2235190868, -0.0175583158, 0.1416766346, -0.1600327045, 0.2267241776, 0.0799515098, -0.0211588014, 0.2763739228, -0.2309037447, 0.124656409, 0.1555744857, 0.0581957065, -0.1273334473, 0.3357895017, 0.084368445, -0.4302315116, -0.3450863659, 0.1799300462, -0.1760934442, 0.384898603, -0.4720780849, -0.1346982569, -0.1783997566, -0.2347410321, 0.330149591, -0.1297593713, 0.2012561113, -0.0882846341, 0.3551928401, 0.0218717791, 0.0719590113, 0.3336797059, 0.3085624576, 0.4262866378, -0.2180076838, -0.3491995335, 0.1205490381, -0.1206210107, -0.2547729909, -0.3665165603, 0.2209734768, 0.1167232245, 0.384670794, -0.0516376123, -0.393984139, 0.4682799578, -0.7649689913, 0.0811981559, -0.0058185365, 0.178189218, 0.2198242247, -0.0031697997, -0.1204944849, 0.2113589942, -0.0259236079, -0.2856944203, -0.0205110926, -0.0750800148, -0.1858083159, 0.0906656161, 0.0571442842, 0.1531472057, 0.324937433, -0.1028735414, 0.3799370825, -0.3787391186, 0.1879873276, -0.184468016, 0.3455334902, -0.0727414116, -0.3098554015, 0.1424631327, 0.0584285446, -0.1654930413, -0.0539138578, -0.1027213782, -0.1874340177, -0.126195997, -0.2425883859, -0.0208729748, 0.0811210647, 0.1629773527, 0.1043381616, 0.1319512129, 0.245951876, -0.0968071669, 0.3539921939, -0.3905325532, 0.1205779165, -0.0145223597, -0.0205831826, 0.1708711833, -0.3565448821, -0.1542255282, 0.5501697063, 0.2950058579, -0.2008678019, 0.3871438205, -0.154921636, 0.075235635, -0.1555733681, 0.5609902143, 0.267524451, -0.7531765699, -0.3551867604, -0.0503066145, -0.2858445048, -0.0522273332, 0.0802324712, -0.1308101863, 0.351536572, 0.0559617914, 0.0502046384, -0.0221530255, -0.0017570421, 0.0674416944, -0.1703104228, -0.066069968, 0.060195446, -0.0560515709, -0.2504400611, -0.2083389312, -0.1153802574, -0.1653347164, 0.0465346463, -0.0787109286, 0.2557058632, 0.3074446917, 0.3064408302, 0.0371077769, 0.2982435822, -0.0424507596, -0.5195571184, -0.0673798099, -0.0861477852, -0.0555267893, -0.0934735686, -0.3999195099, -0.4834736586, 0.1228378415, -0.2551135123, -0.3626616001, -0.0108573511, 0.0558656529, 0.1518114358, -0.3138311207, -0.0647795498, 0.0877951011, -0.0671911091, 0.2688456774, -0.1233371049, -0.0160102006, -0.0595266595, -0.1805102229, 0.0452829748, 0.1954573393, 0.3556154966, -0.067010209, -0.1062884107, 0.3517384529, 0.2318138033, -0.1074743271, 0.1140646562, -0.1387194991, 0.1696454883, -0.2511657476, -0.0463707633, 0.1581390649, 0.0831789449, 0.0153890932, -0.1450784355, 0.496650815, 0.0857702866, 0.363713026, -0.3584550321, 0.0083900075, 0.0568753146, 0.1508821398, -0.4269773662, -0.0256515946, -0.1253536642, 0.1449759752, 0.4017036259, -0.1017794609, -0.0515560843, 0.0492353998, 0.3358848393, 0.0354061909, -0.0763480067, -0.0242796484, -0.0925265923, 0.1731869578, 0.2631242573, -0.0448203459, 0.2035182714, 0.1293766946, -0.2184270322, -0.01909432, -0.0147033315, 0.1119666025, 0.0555925928, 0.0647547022, 0.1183326244, 0.2495091408, 0.3302031159, -0.0305677652, -0.1890268922, 0.0396377034, 0.1306311935, 0.0940904692, -0.3066778183, 0.2154720128, -0.1222215965, 0.191322878, -0.0042547053, -0.2016804367, -0.0127334045, -0.1387367249, -0.1106947139, 0.13547571, 0.050706435, 0.3411773443, 0.2539765835, 0.347858876, 0.4629750848, 0.0251269601, -0.0785277933, -0.0609098375, -0.1276552379, -0.1625012457, 0.009655633, -0.1742604524, 0.0441797562, 0.2778020501, -0.0506549142, -0.4606685042, -0.6184927225, 0.1887657642, -0.1437840164, 0.1473679841, 0.2346590161, 0.1375781149, -0.5523958206, -0.1461130679, 0.282592386, 0.1565442234, -0.3298370242, 0.0078807492, -0.1075717211, -0.2112469971, 0.0480221547, -0.2935305834, -0.162959069, -0.0616579987, 0.5795469284, -0.3441349566, -0.1095502824, 0.2096656561, 0.2039574832, 0.0286257658, -0.3302952647, -0.1491156667, -0.2724179924, 0.1424412727, 0.3052257299, -0.3198952675, -0.0532762036, -0.0678488985, -0.1944742203, 0.2294433266, 0.0854576677, -0.0846453831, -0.3280026019, 0.036393702, 0.3106922209, -0.2562968135, 0.1329610497, 0.4908976257, -0.1166249663, 0.2066224366, -0.095471032, -0.2646960914, 0.3713113964, 0.1710573733, 0.2116567343, -0.1192347035, 0.5886771083, 0.0093839709, 0.8307523727, 0.3969446421, 0.0631243885, 0.040791437, -0.1729645878, 0.0089272074, -0.1118540764, -0.1739910543, 0.2700002193, -0.1890033334, -0.0634998903, -0.0095267603, -0.0304051358, -0.0942558497, 0.3692888021, 0.1485637575, -0.3062996566, -0.2004452199, -0.0791705549, 0.2220515311, 0.2272363007, 0.2375494689, 0.123286128, -0.4511261284, 0.1228210554, -0.0182357654, -0.2509376407, 0.1650424153, 0.0517889336, -0.8704365492, -0.139044404, -0.1494327486, 0.4401816726, 0.366304636, 0.4408904314, 0.1457426697, -0.3024487495, 0.0741489083, 0.0059390469, 0.5031283498, 0.1411450803, -0.2307070792, 0.0029421053, -0.1196792349, -0.3873909712, -0.2190165222, -0.049690377, 0.3620968163, 0.4047529697, 0.3142856359, -0.3531354666, -0.2044759244, 0.402562499, -0.1466724128, 0.0333179086, 0.0963158607, -0.2732215524, -0.1293738484, -0.4035228789, 0.2679009438, 0.2889299095, 0.1370847523, 0.3320339322, -0.0933262482, -0.1025273204, -0.1522097588, -0.0332020037, 0.2846736908, 0.4153456986, 0.1601264775, 0.0348913074, 0.3511467576, 0.0053562671, 0.2843346, 0.1784129143, -0.0418751873, -0.6814482212, 0.2047103345, -0.3417013884, 0.4301433563, 0.6046110392, -0.028857708, 0.2293276787, -0.1741836965, 0.224283129, -0.0551013388, 0.147820875, 0.5106640458, 0.3219777942, 0.2062795907, 0.0965003148, 0.0533222929, -0.1170242652, -0.1083362177, 0.6720846295, 0.4695624411, -0.1918012947, 0.0846824721, 0.1610692888, 0.9873970151, 0.4777241051, 0.0841022655, 0.4931913614, -0.1852520108, -0.1218819767, 0.0448410884, 0.133932516, -0.4574373364, -0.008353252, 0.0889014378, -0.2034323812, 0.0583739653, 0.1391412765, -0.0358728468, -0.1335716695, 0.0207330659, 0.3618425727, -0.3089626729, 0.1112881377, -0.2478875667, -0.1883859336, -0.2098680586, -0.0012323667, -0.04582306, 0.0695339739, -0.1330586374, -0.075800918, -0.444563508, -0.4326424897, -0.119575128, -0.1556154639, -0.675467968, 0.1890508533, 0.6171084642, -0.1232600585, 0.1216163486, 0.2080596387, 0.4921884239, -0.0150118899, -0.0753892362, 0.2431180775, 0.1800324321, -0.0202209912, -0.0825480819, -0.1039879844, -0.0103826737, -0.0853097513, -0.3040127456, 0.179186061, 0.0415866934, -0.2450324446, -0.2042883635, -0.0527842678, 0.2268564105, -0.3041239679, -0.0235774498, -0.0600930192, -0.0953564495, -0.1726209819, -0.0551083088, -0.1253160536, -0.2628071606, -0.0821694285, 0.4602861106, -0.2076923549, 0.2340303808, 0.2675137222, -0.2994675636, -0.1334336549, 0.7376734018, -0.0894118696, -0.0782721862, -0.1300969571, 0.4939996898, 0.3498525918, -0.4605633914, -0.0229656212, -0.0998600051, -0.2655721009, -0.1948380917, 0.5396842957, 0.4198506474, 0.1491117477, 0.0435407944, -0.1314019263, -0.4555130601, 0.2382653952, -0.2345761955, 0.1953026652, 0.0412916914, 0.0127272625, -0.2794875801, 0.2170438617, -0.1651524305, -0.010523811, -0.1417563707, 0.1864139438, -0.1825530231, -0.3321320415, 0.1994378567, 0.0276308451, -0.1235886887, 0.4358772933, -0.090710856, -0.0450682938, -0.2240804881, 0.1943067461, 0.0553534217, 0.114220798, -0.2491779327, -0.1408617496, -0.108673498, -0.1333141774, 0.0239938088, -0.0468278974, 0.3059264421, 0.1365166008, -0.0672812983, -0.088189587, 0.1248906106, -0.1457301676, 0.3126371205, -0.0867116079, 0.2010819614, 0.1968144774, -0.1101377979, 0.0904987305, -0.1544697136, 0.3345204592, 0.1623485535, 0.0165605899, 0.0076675932, -0.3720277548, -0.2001098096, 0.0768799931, -0.2525676191, 0.386022687, -0.2191206217, -0.047956828, 0.0093506034, 0.1044489965, -0.1225906909, 0.1598886847, 0.4138646722, -0.1265064329, -0.0090751629, 0.2409758568, -0.0483124629, 0.1263561547, 0.2902406454, 0.1767107397, 0.3259354234, -0.2194681913, -0.0503147058, 0.1213124767, -0.1504024565, 0.029112177, 0.629226625, 0.0923186541, 0.3154924214, -0.0725594833, -0.2231787294, 0.2273402661, -0.0814772248, 0.3294856548, 0.1937238574, 0.179241702, -0.3260828257, 0.1299866736, 0.0999937579, -0.2000182718, 0.1469000578, 0.5979398489, 0.1495617479, -0.6717575192, -0.1625269055, 0.0986654237, -0.1824253649, -0.1483789533, -0.7064806223, 0.0255721472, -0.3008075058, -0.1062486172, -0.168441847, 0.1586562395, 0.4834393561, 0.0503590964, 0.0037669051, -0.3265329897, -0.2531434298, 0.3497819006, 0.2839300334, -0.2735244036, 0.2680559456, 0.0657737628, 0.1180290356, 0.0959359333, 0.408980459, 0.2865678072, 0.1455126405, -0.1512250006, -0.1514052451, -0.1721798927, 0.0007871739, 0.2196325213, 0.161172539, 0.2842541039, -0.1051210314, 0.1125274897, -0.0957730636, -0.0303736031, -0.1010295302, 0.1379576176, -0.0324236676, -0.1870808899, -0.3491015732, -0.4216122031, -0.0241048541, -0.2664978504, 0.0799736828, -0.2798424661, 0.2792110741, 0.1507418156, 0.0445608497, 0.0716162473, -0.0171582885, -0.0229841582, -0.1626787037, 0.2408901304, 0.3803326786, -0.1053194851, -0.2994270027, -0.2107981145, -0.5407534242, 0.0478678718, -0.0895120576, -0.03529061, 0.2905209064, 0.2943844795, 0.2752116621, 0.1920379549, 0.3236574531, -0.2021865398, -0.1859283, 0.2705160379, -0.4119947851, 0.0504983999, 0.308960259, 0.1470327675, 0.20467107, -0.2144496292, 0.0886464342, 0.3067517579, -0.2205975056, -0.0475089327, -0.1636010408, -0.3189331293, -0.1844430417, 0.2947012186, 0.1161177084, 0.1754455715, 0.2240551263, -0.2572013438, -0.13652578, -0.1764376611, -0.1393820643, 0.1451852024, 0.1106581539, 0.6116539836, -0.0473839454, -0.1078153327, -0.0267383717, 0.0444109328, 0.1038677618, -0.3887690604, -0.2920266986, 0.3862883449, -0.2014173269, 0.2640105784, -0.1644922793, 0.1330405772, 0.1761884689, 0.4649398327, -0.2476875931, -0.3671607673, 0.7873601317, -0.388691783, -0.3085350692, 0.2183827311, 0.180308342, 0.61213094, -0.3203867376, -0.5169121027, -0.0446359366, 0.2340016961, -0.0643146858, -0.3073175251, 0.1178999841, 0.0049140467, 0.081752114, -0.1735568196, 0.3225362301, 0.1291798949, 0.1259121299, -0.1175744012, -0.2294534594 ]
https://github.com/huggingface/datasets/issues/2068
PyTorch not available error on SageMaker GPU docker though it is installed
Hey @sivakhno, how does your `requirements.txt` look like to install the `datasets` library and which version of it are you running? Can you try to install `datasets>=1.4.0`
I get en error when running data loading using SageMaker SDK ``` File "main.py", line 34, in <module> run_training() File "main.py", line 25, in run_training dm.setup('fit') File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn return fn(*args, **kwargs) File "/opt/ml/code/data_module.py", line 103, in setup self.dataset[split].set_format(type="torch", columns=self.columns) File "/opt/conda/lib/python3.6/site-packages/datasets/fingerprint.py", line 337, in wrapper out = func(self, *args, **kwargs) File "/opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 995, in set_format _ = get_formatter(type, **format_kwargs) File "/opt/conda/lib/python3.6/site-packages/datasets/formatting/__init__.py", line 114, in get_formatter raise _FORMAT_TYPES_ALIASES_UNAVAILABLE[format_type] ValueError: PyTorch needs to be installed to be able to return PyTorch tensors. ``` when trying to execute dataset loading using this notebook https://github.com/PyTorchLightning/pytorch-lightning/blob/master/notebooks/04-transformers-text-classification.ipynb, specifically lines ``` self.columns = [c for c in self.dataset[split].column_names if c in self.loader_columns] self.dataset[split].set_format(type="torch", columns=self.columns) ``` The SageMaker docker image used is 763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.4.0-gpu-py3 . By running container interactively I have checked that torch loading completes successfully by executing `https://github.com/huggingface/datasets/blob/master/src/datasets/config.py#L39`. Also as a first line in the data loading module I have ``` import os os.environ["USE_TF"] = "0" os.environ["USE_TORCH"] = "1" ```` But unfortunately the error stills persists. Any suggestions would be appreciated as I am stack. Many Thanks!
27
PyTorch not available error on SageMaker GPU docker though it is installed I get en error when running data loading using SageMaker SDK ``` File "main.py", line 34, in <module> run_training() File "main.py", line 25, in run_training dm.setup('fit') File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn return fn(*args, **kwargs) File "/opt/ml/code/data_module.py", line 103, in setup self.dataset[split].set_format(type="torch", columns=self.columns) File "/opt/conda/lib/python3.6/site-packages/datasets/fingerprint.py", line 337, in wrapper out = func(self, *args, **kwargs) File "/opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 995, in set_format _ = get_formatter(type, **format_kwargs) File "/opt/conda/lib/python3.6/site-packages/datasets/formatting/__init__.py", line 114, in get_formatter raise _FORMAT_TYPES_ALIASES_UNAVAILABLE[format_type] ValueError: PyTorch needs to be installed to be able to return PyTorch tensors. ``` when trying to execute dataset loading using this notebook https://github.com/PyTorchLightning/pytorch-lightning/blob/master/notebooks/04-transformers-text-classification.ipynb, specifically lines ``` self.columns = [c for c in self.dataset[split].column_names if c in self.loader_columns] self.dataset[split].set_format(type="torch", columns=self.columns) ``` The SageMaker docker image used is 763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.4.0-gpu-py3 . By running container interactively I have checked that torch loading completes successfully by executing `https://github.com/huggingface/datasets/blob/master/src/datasets/config.py#L39`. Also as a first line in the data loading module I have ``` import os os.environ["USE_TF"] = "0" os.environ["USE_TORCH"] = "1" ```` But unfortunately the error stills persists. Any suggestions would be appreciated as I am stack. Many Thanks! Hey @sivakhno, how does your `requirements.txt` look like to install the `datasets` library and which version of it are you running? Can you try to install `datasets>=1.4.0`
[ -0.3578641415, 0.0624307953, -0.0035596238, 0.0923951641, 0.2011191398, 0.0346485153, 0.5519387722, 0.3234076202, 0.3856209815, 0.0929586217, 0.000882448, 0.396581918, -0.0354305804, 0.1952464283, 0.0736840293, -0.2641964853, -0.0560294911, 0.2284690887, -0.310595721, 0.0267089941, 0.1719548404, 0.119791314, -0.2741036713, 0.1857316941, -0.3524910808, -0.0930103734, 0.2506569922, -0.0640398934, -0.1788957864, -0.4069884121, 0.2793971002, -0.0613613091, 0.2397312969, 0.4969632626, -0.0001140436, 0.3032167852, 0.1815664172, -0.0520814545, -0.2339608818, -0.4946044683, 0.2693470716, -0.2135498077, 0.2534041703, -0.3587451875, -0.2566689551, -0.6176711917, -0.1617843956, -0.1064133123, 0.1897278428, 0.48300758, 0.1778384894, 0.2304899991, 0.3704246283, -0.106883876, -0.0213628877, -0.1286901981, -0.1998844147, 0.1933849007, 0.0606132858, -0.0477186143, -0.221519351, 0.3306259811, 0.0532883741, 0.2221888006, 0.2746856511, -0.0277601816, 0.3027733564, -0.3284734786, 0.0128039801, 0.0186375361, 0.3783848882, -0.1673073322, -0.2615454495, -0.1401581615, 0.2406661361, -0.1856719702, 0.225849092, 0.2011610866, -0.2385993153, -0.2307838351, -0.0924868286, -0.2448174804, -0.494228512, 0.0012738773, -0.1486772746, 0.6484245658, -0.0097295363, 0.2958638668, -0.1088484004, 0.0316302069, 0.1087979451, -0.0174540039, 0.1367828995, -0.1035544947, -0.4412148595, 0.012114509, -0.1848006099, -0.3475167751, -0.1545314342, 0.1763313413, 0.0244535394, 0.0385518931, 0.4613886178, 0.2319642752, -0.0648742244, 0.2133833766, -0.1676822305, 0.2672359049, 0.3156037629, 0.1783836782, 0.0582820997, -0.0110225203, -0.2719785571, -0.2618049085, 0.0919806212, -0.0409461632, 0.1839137077, -0.2599912882, -0.1896702796, -0.0647256747, -0.2254169285, -0.0048058298, 0.3427656889, 0.3795003295, -0.3616908789, 0.0215546489, 0.3905213773, 0.0970222279, -0.1571542025, 0.10861779, -0.0689174309, 0.369238019, -0.3053953648, -0.1699037552, 0.2570928633, -0.2832773924, 0.3190394938, 0.0521267839, 0.438213706, 0.0194360241, 0.1652491391, -0.036284063, -0.030520279, 0.3495334089, 0.1684822291, -0.0993224233, 0.0673144609, -0.1310518235, 0.0435599051, 0.1640107781, -0.3027128279, -0.1731040925, -0.2777279615, 0.2180584967, 0.0239804462, -0.082847327, -0.0956026316, -0.2363593727, 0.138433218, -0.246269688, -0.1988413185, -0.5774738789, -0.1518824548, 0.1009744629, 0.3505586386, -0.1060074791, -0.2552389205, -0.242927894, 0.2169633657, -0.0445830785, 0.1921145469, 0.1672691256, -0.3213563263, 0.3641376793, -0.2241795361, -0.1162742972, 0.4368961453, -0.1582635194, -0.4274958968, -0.0526533686, -0.1317561567, -0.1814899445, 0.2424344867, -0.0210298188, 0.1027195677, 0.069486022, 0.1587239802, 0.2212405205, 0.0550632998, -0.064146921, 0.071162194, -0.0301145911, 0.0693061203, 0.3470237255, 0.4696928263, 0.040519204, -0.2203283459, 0.1052828506, 0.001149097, -0.3349925578, -0.0729087368, 0.1936163008, 0.0726032853, 0.1973173916, 0.234205395, -0.024150962, -0.2846353948, 0.437253207, -0.407838881, 0.2201972306, -0.401273787, 0.2799265385, 0.0739981681, 0.2309342772, -0.4405453205, -0.0290490519, 0.07402125, 0.2747326791, 0.1433665007, -0.0716503933, -0.0431885682, 0.1642152667, -0.2015470266, 0.2570535839, -0.0297233295, 0.1648438275, -0.3522476256, -0.2846183479, -0.0267784502, 0.0832821056, 0.086788699, -0.133834824, -0.1851904392, -0.0223051663, 0.0563511513, -0.1856316179, -0.4077396095, 0.0107591283, 0.2134343386, -0.0264883377, 0.1546375751, 0.2261992395, 0.0535074957, 0.0659498125, -0.059613023, 0.2794191837, 0.0768525451, 0.3316192925, 0.1563589275, 0.1243273243, 0.3506566286, 0.1796322763, -0.0370967947, 0.0312509164, 0.3116857409, -0.1815507263, 0.3884938359, -0.2803410888, -0.067093879, -0.2269869745, 0.058220759, 0.0968175977, 0.2094515115, -0.0584187284, -0.2641681135, -0.0197157003, 0.1655122787, 0.0201513339, 0.1763114631, 0.0855540261, -0.2054277956, -0.0731581226, -0.2630325258, -0.2853460312, 0.0199485701, 0.2054539919, 0.1803484708, 0.4772663116, -0.0249771457, -0.1353630424, -0.205396384, -0.3153858781, 0.0442341194, 0.2464947253, -0.0167008638, 0.1939773113, 0.0213794578, -0.2587880194, -0.1571341157, 0.0688672587, -0.0830654204, -0.070559822, -0.0567111783, 0.4370978475, 0.1046393141, 0.3015837669, 0.1242612451, 0.0017424766, 0.0909291729, -0.0915197954, -0.1010048166, -0.1997737885, -0.1029308662, 0.0908150449, 0.0139178699, -0.1522049159, 0.4530830979, -0.0226927213, 0.239729628, -0.4752229154, -0.4546356797, 0.2639149725, 0.0946713835, 0.0703557283, 0.0831278935, -0.1004692093, 0.2305428535, -0.1151754484, 0.2874083221, -0.3667427301, -0.009985378, 0.1711315811, -0.3040319085, -0.0911610574, -0.042921938, -0.2373357415, -0.2131171525, -0.2420701683, -0.1625312418, 0.192563042, 0.0692954957, 0.0710769519, -0.0482118241, 0.2399499863, 0.0612405017, 0.4208260179, -0.0505231693, -0.0142030763, 0.3403246403, -0.1449126303, -0.4585411251, 0.1990784705, -0.0710253268, 0.4873738289, 0.1876756251, -0.3572619855, -0.1432139724, -0.0876859725, -0.0104061607, -0.2309724241, -0.3154937923, 0.4347072244, 0.0858675614, -0.0017584331, -0.0180877224, -0.2098880112, -0.0058367159, -0.1161859334, 0.1107510924, 0.0180556402, 0.521802485, 0.016134927, 0.5054343343, -0.1492942721, -0.1849229783, 0.078760691, -0.0914803892, 0.1306823939, -0.0777424574, -0.3543592393, 0.0909200162, -0.0784769878, 0.0423088782, -0.1143650487, -0.2375507802, -0.2545679808, -0.2243157029, 0.1367323399, 0.205672577, -0.0749225989, 0.1470567137, -0.0218517147, 0.2347736061, -0.1005826071, 0.2911743224, -0.0582699627, -0.0206461176, -0.0068819565, 0.4009916782, 0.247112453, 0.0405494533, -0.3504701853, -0.4177761078, -0.3089731634, 0.1535237432, 0.1111554578, 0.4341416955, -0.253531754, 0.1353390217, 0.251821965, -0.0731293485, 0.1305500269, 0.2015887499, -0.0769398659, 0.1304475367, -0.5629467964, -0.2140491009, -0.4025834799, -0.2041152269, 0.3084564507, -0.1378363669, 0.2591090202, -0.0521870144, -0.2361827493, 0.3772245646, -0.001456145, -0.3549470305, -0.1654877216, -0.3093602359, -0.007102503, -0.3891407549, 0.1418217421, -0.1630355567, 0.1648111194, 0.103350386, 0.1802529544, -0.0478270054, -0.0673624501, -0.2418477386, 0.1251702309, 0.1508534551, -0.1796662956, 0.0206299108, 0.2583088279, 0.4035357237, 0.024661934, 0.1251707375, 0.1658735871, -0.6877143383, 0.2279513478, 0.1437772363, 0.0337538347, -0.0006089248, -0.2813973725, -0.0151329935, 0.0288641024, 0.2616087496, -0.2789121866, 0.2849281132, 0.4318096638, 0.0435549133, -0.336148262, -0.5102328658, -0.0285133999, 0.1190535501, 0.1307086051, 0.1072733402, -0.3197686374, -0.2387964576, 0.1009448841, 0.2339784652, 0.3998082876, -0.1230272725, 0.163187176, 0.369017452, -0.0562772416, 0.6690493226, -0.0701485053, 0.5010371208, -0.2964494228, -0.0236954708, -0.0219666772, -0.3330350518, 0.1249233857, -0.0894322172, 0.019607408, 0.4615962803, 0.0227420554, 0.1879123747, 0.0824427307, 0.5432862639, -0.056193307, -0.3151731491, 0.0893428922, 0.0824313834, -0.4715274274, 0.4554199576, -0.1119189039, 0.1296061277, 0.2646176517, -0.0853902027, -0.2024869323, 0.3169837296, -0.103518948, 0.513572216, -0.2603099644, -0.7178817391, 0.2217281759, 0.1935005188, 0.0475803018, -0.0163906515, -0.0840441063, 0.2869559824, -0.5260501504, -0.2648879588, -0.1186812595, 0.1446563601, 0.4126049578, -0.1766412258, -0.1750863791, 0.0456951335, -0.0207090396, -0.3480335176, -0.1475060135, 0.0229149349, 0.5239810348, 0.0506119505, 0.1382590532, -0.2436711043, -0.1985275, -0.1187596694, 0.1392894089, 0.1864420474, -0.1920205504, 0.009254491, 0.112669915, -0.2367701232, 0.0267792381, 0.4035095274, 0.2485733777, -0.075485304, 0.7604894638, 0.2701000571, -0.2153381258, -0.1895246655, -0.575774014, 0.1880675405, -0.4746957719, 0.0904084072, 0.0883787274, -0.0010321202, -0.025246704, 0.0832524151, 0.2404931784, -0.3185769916, -0.2064390033, -0.4979457259, -0.2446031123, -0.0121773854, -0.0970731825, 0.1446902007, 0.4060983062, 0.0213104095, -0.0374531262, -0.1176226735, -0.2486613989, -0.081246078, -0.0857515857, -0.0178911909, 0.028843794, -0.2464594841, 0.0180505142, 0.1339568496, 0.1165807098, -0.0161814932, -0.0523237512, -0.1377302557, -0.0593804568, 0.0638025627, 0.1501114517, -0.1841322184, -0.156717658, -0.347202152, -0.1686959267, 0.0619376414, 0.3511344492, 0.0731981769, -0.0336026438, 0.1000553891, -0.1815096587, 0.0305697732, -0.2393949181, 0.1999551356, -0.1581187695, -0.0344601534, 0.2619611323, 0.2125544399, 0.0491624027, 0.1751204431, -0.296749413, 0.0122221932, -0.2247529924, 0.0795713365, 0.3878737688, -0.5469016433, 0.3201328814, -0.114045985, 0.3263935447, 0.248102963, -0.1112368554, 0.0069457786, 0.2077624649, 0.1929994971, -0.3124340773, -0.1750277132, -0.2047646791, 0.0255533345, 0.1951707602, -0.0336905085, 0.0335220546, 0.2034249306, 0.2418436408, 0.2176679224, 0.3072526157, -0.2194324732, 0.16087237, 0.2555875182, -0.0315137468, 0.1866933703, 0.4408328235, 0.2895789146, 0.0344296917, 0.2087426484, -0.0501233637, 0.2683549821, -0.035519775, 0.0493078493, 0.2784287632, -0.1406376064, -0.1351005286, 0.1598720253, -0.0666535869, -0.0975727737, -0.2356363982, 0.1379938573, -0.5082182884, -0.0016115485, -0.3276998103, -0.0616721623, -0.3606292605, 0.133580476, -0.2579288185, -0.0233722012, 0.0797755122, 0.1772311181, 0.1117883846, 0.1014342755, -0.4469522834, 0.1259372383, -0.4083173573, 0.0444616489, -0.2394635081, 0.3101461232, -0.1211523339, -0.0841584355, 0.1898359507, 0.2903622389, -0.1219389066, -0.1150248498, 0.1751778126, 0.4762859344, 0.1457410008, 0.0434703939, -0.0806150883, -0.0292949397, -0.0321249776, -0.0190827232, 0.2248752564, 0.2004404515, -0.0397765897, 0.1562916785, 0.1541845798, -0.1182022691, 0.1891734153, 0.1260015368, 0.0241077729, 0.1159706041, 0.2661477029, 0.0735388994, -0.1547979116, -0.1336263865, -0.0261749346, -0.3192777932, -0.1522499472, 0.3894209266, 0.2127337158, -0.2353197634, -0.1131785661, 0.0737563297, 0.0157803819, 0.4464923143, 0.1291052848, 0.0046014581, -0.1204413399, 0.0396347158, -0.207659632, 0.2196235061, -0.0238991696, 0.0166289471, 0.1226762682, 0.0947788283, -0.026472928, -0.0253279731, 0.3033052087, -0.1253409684, 0.1207329929, -0.1434570849, -0.2756643891, -0.0575891212, 0.308806777, 0.0814979747, 0.0755051896, -0.2945996225, 0.0161185935, 0.0222244207, 0.1112491116, -0.2723047733, 0.0581631549, 0.0998517126, -0.3974210918, 0.2679632008, -0.0830508843, 0.789028883, 0.0927614272, -0.1029084548, -0.0044994517, -0.2056705952, -0.3405402005, 0.2708167434, 0.0972320959, 0.5719088316, 0.1613239348, -0.1286328286, -0.4244956076, 0.3670105338, -0.1697559655, -0.6661808491, -0.1641177237, 0.192250371, -0.117340818, 0.2502706945, 0.224502489, 0.1029546931, 0.306530714, -0.2895622551, -0.3585672081, -0.1202798486, 0.5804314613, -0.2649390101, -0.2065291852, -0.2863224447, 0.1459728777, -0.1629393101, 0.1301870197, -0.1651322544, 0.1129607707, 0.02614538, -0.0039775781, -0.0153509062, 0.2036132962, 0.2484437227, 0.1664723754, -0.140039295, 0.442627281, -0.1489300579, -0.2323543131, -0.3859884739, -0.247076273 ]
https://github.com/huggingface/datasets/issues/2068
PyTorch not available error on SageMaker GPU docker though it is installed
Hi @philschmid - thanks for suggestion. I am using `datasets==1.4.1`. I have also tried using `torch=1.6.0` (docker `763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.6.0-gpu-py3 `), but the error is the same.
I get en error when running data loading using SageMaker SDK ``` File "main.py", line 34, in <module> run_training() File "main.py", line 25, in run_training dm.setup('fit') File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn return fn(*args, **kwargs) File "/opt/ml/code/data_module.py", line 103, in setup self.dataset[split].set_format(type="torch", columns=self.columns) File "/opt/conda/lib/python3.6/site-packages/datasets/fingerprint.py", line 337, in wrapper out = func(self, *args, **kwargs) File "/opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 995, in set_format _ = get_formatter(type, **format_kwargs) File "/opt/conda/lib/python3.6/site-packages/datasets/formatting/__init__.py", line 114, in get_formatter raise _FORMAT_TYPES_ALIASES_UNAVAILABLE[format_type] ValueError: PyTorch needs to be installed to be able to return PyTorch tensors. ``` when trying to execute dataset loading using this notebook https://github.com/PyTorchLightning/pytorch-lightning/blob/master/notebooks/04-transformers-text-classification.ipynb, specifically lines ``` self.columns = [c for c in self.dataset[split].column_names if c in self.loader_columns] self.dataset[split].set_format(type="torch", columns=self.columns) ``` The SageMaker docker image used is 763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.4.0-gpu-py3 . By running container interactively I have checked that torch loading completes successfully by executing `https://github.com/huggingface/datasets/blob/master/src/datasets/config.py#L39`. Also as a first line in the data loading module I have ``` import os os.environ["USE_TF"] = "0" os.environ["USE_TORCH"] = "1" ```` But unfortunately the error stills persists. Any suggestions would be appreciated as I am stack. Many Thanks!
25
PyTorch not available error on SageMaker GPU docker though it is installed I get en error when running data loading using SageMaker SDK ``` File "main.py", line 34, in <module> run_training() File "main.py", line 25, in run_training dm.setup('fit') File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn return fn(*args, **kwargs) File "/opt/ml/code/data_module.py", line 103, in setup self.dataset[split].set_format(type="torch", columns=self.columns) File "/opt/conda/lib/python3.6/site-packages/datasets/fingerprint.py", line 337, in wrapper out = func(self, *args, **kwargs) File "/opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 995, in set_format _ = get_formatter(type, **format_kwargs) File "/opt/conda/lib/python3.6/site-packages/datasets/formatting/__init__.py", line 114, in get_formatter raise _FORMAT_TYPES_ALIASES_UNAVAILABLE[format_type] ValueError: PyTorch needs to be installed to be able to return PyTorch tensors. ``` when trying to execute dataset loading using this notebook https://github.com/PyTorchLightning/pytorch-lightning/blob/master/notebooks/04-transformers-text-classification.ipynb, specifically lines ``` self.columns = [c for c in self.dataset[split].column_names if c in self.loader_columns] self.dataset[split].set_format(type="torch", columns=self.columns) ``` The SageMaker docker image used is 763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.4.0-gpu-py3 . By running container interactively I have checked that torch loading completes successfully by executing `https://github.com/huggingface/datasets/blob/master/src/datasets/config.py#L39`. Also as a first line in the data loading module I have ``` import os os.environ["USE_TF"] = "0" os.environ["USE_TORCH"] = "1" ```` But unfortunately the error stills persists. Any suggestions would be appreciated as I am stack. Many Thanks! Hi @philschmid - thanks for suggestion. I am using `datasets==1.4.1`. I have also tried using `torch=1.6.0` (docker `763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.6.0-gpu-py3 `), but the error is the same.
[ -0.3578641415, 0.0624307953, -0.0035596238, 0.0923951641, 0.2011191398, 0.0346485153, 0.5519387722, 0.3234076202, 0.3856209815, 0.0929586217, 0.000882448, 0.396581918, -0.0354305804, 0.1952464283, 0.0736840293, -0.2641964853, -0.0560294911, 0.2284690887, -0.310595721, 0.0267089941, 0.1719548404, 0.119791314, -0.2741036713, 0.1857316941, -0.3524910808, -0.0930103734, 0.2506569922, -0.0640398934, -0.1788957864, -0.4069884121, 0.2793971002, -0.0613613091, 0.2397312969, 0.4969632626, -0.0001140436, 0.3032167852, 0.1815664172, -0.0520814545, -0.2339608818, -0.4946044683, 0.2693470716, -0.2135498077, 0.2534041703, -0.3587451875, -0.2566689551, -0.6176711917, -0.1617843956, -0.1064133123, 0.1897278428, 0.48300758, 0.1778384894, 0.2304899991, 0.3704246283, -0.106883876, -0.0213628877, -0.1286901981, -0.1998844147, 0.1933849007, 0.0606132858, -0.0477186143, -0.221519351, 0.3306259811, 0.0532883741, 0.2221888006, 0.2746856511, -0.0277601816, 0.3027733564, -0.3284734786, 0.0128039801, 0.0186375361, 0.3783848882, -0.1673073322, -0.2615454495, -0.1401581615, 0.2406661361, -0.1856719702, 0.225849092, 0.2011610866, -0.2385993153, -0.2307838351, -0.0924868286, -0.2448174804, -0.494228512, 0.0012738773, -0.1486772746, 0.6484245658, -0.0097295363, 0.2958638668, -0.1088484004, 0.0316302069, 0.1087979451, -0.0174540039, 0.1367828995, -0.1035544947, -0.4412148595, 0.012114509, -0.1848006099, -0.3475167751, -0.1545314342, 0.1763313413, 0.0244535394, 0.0385518931, 0.4613886178, 0.2319642752, -0.0648742244, 0.2133833766, -0.1676822305, 0.2672359049, 0.3156037629, 0.1783836782, 0.0582820997, -0.0110225203, -0.2719785571, -0.2618049085, 0.0919806212, -0.0409461632, 0.1839137077, -0.2599912882, -0.1896702796, -0.0647256747, -0.2254169285, -0.0048058298, 0.3427656889, 0.3795003295, -0.3616908789, 0.0215546489, 0.3905213773, 0.0970222279, -0.1571542025, 0.10861779, -0.0689174309, 0.369238019, -0.3053953648, -0.1699037552, 0.2570928633, -0.2832773924, 0.3190394938, 0.0521267839, 0.438213706, 0.0194360241, 0.1652491391, -0.036284063, -0.030520279, 0.3495334089, 0.1684822291, -0.0993224233, 0.0673144609, -0.1310518235, 0.0435599051, 0.1640107781, -0.3027128279, -0.1731040925, -0.2777279615, 0.2180584967, 0.0239804462, -0.082847327, -0.0956026316, -0.2363593727, 0.138433218, -0.246269688, -0.1988413185, -0.5774738789, -0.1518824548, 0.1009744629, 0.3505586386, -0.1060074791, -0.2552389205, -0.242927894, 0.2169633657, -0.0445830785, 0.1921145469, 0.1672691256, -0.3213563263, 0.3641376793, -0.2241795361, -0.1162742972, 0.4368961453, -0.1582635194, -0.4274958968, -0.0526533686, -0.1317561567, -0.1814899445, 0.2424344867, -0.0210298188, 0.1027195677, 0.069486022, 0.1587239802, 0.2212405205, 0.0550632998, -0.064146921, 0.071162194, -0.0301145911, 0.0693061203, 0.3470237255, 0.4696928263, 0.040519204, -0.2203283459, 0.1052828506, 0.001149097, -0.3349925578, -0.0729087368, 0.1936163008, 0.0726032853, 0.1973173916, 0.234205395, -0.024150962, -0.2846353948, 0.437253207, -0.407838881, 0.2201972306, -0.401273787, 0.2799265385, 0.0739981681, 0.2309342772, -0.4405453205, -0.0290490519, 0.07402125, 0.2747326791, 0.1433665007, -0.0716503933, -0.0431885682, 0.1642152667, -0.2015470266, 0.2570535839, -0.0297233295, 0.1648438275, -0.3522476256, -0.2846183479, -0.0267784502, 0.0832821056, 0.086788699, -0.133834824, -0.1851904392, -0.0223051663, 0.0563511513, -0.1856316179, -0.4077396095, 0.0107591283, 0.2134343386, -0.0264883377, 0.1546375751, 0.2261992395, 0.0535074957, 0.0659498125, -0.059613023, 0.2794191837, 0.0768525451, 0.3316192925, 0.1563589275, 0.1243273243, 0.3506566286, 0.1796322763, -0.0370967947, 0.0312509164, 0.3116857409, -0.1815507263, 0.3884938359, -0.2803410888, -0.067093879, -0.2269869745, 0.058220759, 0.0968175977, 0.2094515115, -0.0584187284, -0.2641681135, -0.0197157003, 0.1655122787, 0.0201513339, 0.1763114631, 0.0855540261, -0.2054277956, -0.0731581226, -0.2630325258, -0.2853460312, 0.0199485701, 0.2054539919, 0.1803484708, 0.4772663116, -0.0249771457, -0.1353630424, -0.205396384, -0.3153858781, 0.0442341194, 0.2464947253, -0.0167008638, 0.1939773113, 0.0213794578, -0.2587880194, -0.1571341157, 0.0688672587, -0.0830654204, -0.070559822, -0.0567111783, 0.4370978475, 0.1046393141, 0.3015837669, 0.1242612451, 0.0017424766, 0.0909291729, -0.0915197954, -0.1010048166, -0.1997737885, -0.1029308662, 0.0908150449, 0.0139178699, -0.1522049159, 0.4530830979, -0.0226927213, 0.239729628, -0.4752229154, -0.4546356797, 0.2639149725, 0.0946713835, 0.0703557283, 0.0831278935, -0.1004692093, 0.2305428535, -0.1151754484, 0.2874083221, -0.3667427301, -0.009985378, 0.1711315811, -0.3040319085, -0.0911610574, -0.042921938, -0.2373357415, -0.2131171525, -0.2420701683, -0.1625312418, 0.192563042, 0.0692954957, 0.0710769519, -0.0482118241, 0.2399499863, 0.0612405017, 0.4208260179, -0.0505231693, -0.0142030763, 0.3403246403, -0.1449126303, -0.4585411251, 0.1990784705, -0.0710253268, 0.4873738289, 0.1876756251, -0.3572619855, -0.1432139724, -0.0876859725, -0.0104061607, -0.2309724241, -0.3154937923, 0.4347072244, 0.0858675614, -0.0017584331, -0.0180877224, -0.2098880112, -0.0058367159, -0.1161859334, 0.1107510924, 0.0180556402, 0.521802485, 0.016134927, 0.5054343343, -0.1492942721, -0.1849229783, 0.078760691, -0.0914803892, 0.1306823939, -0.0777424574, -0.3543592393, 0.0909200162, -0.0784769878, 0.0423088782, -0.1143650487, -0.2375507802, -0.2545679808, -0.2243157029, 0.1367323399, 0.205672577, -0.0749225989, 0.1470567137, -0.0218517147, 0.2347736061, -0.1005826071, 0.2911743224, -0.0582699627, -0.0206461176, -0.0068819565, 0.4009916782, 0.247112453, 0.0405494533, -0.3504701853, -0.4177761078, -0.3089731634, 0.1535237432, 0.1111554578, 0.4341416955, -0.253531754, 0.1353390217, 0.251821965, -0.0731293485, 0.1305500269, 0.2015887499, -0.0769398659, 0.1304475367, -0.5629467964, -0.2140491009, -0.4025834799, -0.2041152269, 0.3084564507, -0.1378363669, 0.2591090202, -0.0521870144, -0.2361827493, 0.3772245646, -0.001456145, -0.3549470305, -0.1654877216, -0.3093602359, -0.007102503, -0.3891407549, 0.1418217421, -0.1630355567, 0.1648111194, 0.103350386, 0.1802529544, -0.0478270054, -0.0673624501, -0.2418477386, 0.1251702309, 0.1508534551, -0.1796662956, 0.0206299108, 0.2583088279, 0.4035357237, 0.024661934, 0.1251707375, 0.1658735871, -0.6877143383, 0.2279513478, 0.1437772363, 0.0337538347, -0.0006089248, -0.2813973725, -0.0151329935, 0.0288641024, 0.2616087496, -0.2789121866, 0.2849281132, 0.4318096638, 0.0435549133, -0.336148262, -0.5102328658, -0.0285133999, 0.1190535501, 0.1307086051, 0.1072733402, -0.3197686374, -0.2387964576, 0.1009448841, 0.2339784652, 0.3998082876, -0.1230272725, 0.163187176, 0.369017452, -0.0562772416, 0.6690493226, -0.0701485053, 0.5010371208, -0.2964494228, -0.0236954708, -0.0219666772, -0.3330350518, 0.1249233857, -0.0894322172, 0.019607408, 0.4615962803, 0.0227420554, 0.1879123747, 0.0824427307, 0.5432862639, -0.056193307, -0.3151731491, 0.0893428922, 0.0824313834, -0.4715274274, 0.4554199576, -0.1119189039, 0.1296061277, 0.2646176517, -0.0853902027, -0.2024869323, 0.3169837296, -0.103518948, 0.513572216, -0.2603099644, -0.7178817391, 0.2217281759, 0.1935005188, 0.0475803018, -0.0163906515, -0.0840441063, 0.2869559824, -0.5260501504, -0.2648879588, -0.1186812595, 0.1446563601, 0.4126049578, -0.1766412258, -0.1750863791, 0.0456951335, -0.0207090396, -0.3480335176, -0.1475060135, 0.0229149349, 0.5239810348, 0.0506119505, 0.1382590532, -0.2436711043, -0.1985275, -0.1187596694, 0.1392894089, 0.1864420474, -0.1920205504, 0.009254491, 0.112669915, -0.2367701232, 0.0267792381, 0.4035095274, 0.2485733777, -0.075485304, 0.7604894638, 0.2701000571, -0.2153381258, -0.1895246655, -0.575774014, 0.1880675405, -0.4746957719, 0.0904084072, 0.0883787274, -0.0010321202, -0.025246704, 0.0832524151, 0.2404931784, -0.3185769916, -0.2064390033, -0.4979457259, -0.2446031123, -0.0121773854, -0.0970731825, 0.1446902007, 0.4060983062, 0.0213104095, -0.0374531262, -0.1176226735, -0.2486613989, -0.081246078, -0.0857515857, -0.0178911909, 0.028843794, -0.2464594841, 0.0180505142, 0.1339568496, 0.1165807098, -0.0161814932, -0.0523237512, -0.1377302557, -0.0593804568, 0.0638025627, 0.1501114517, -0.1841322184, -0.156717658, -0.347202152, -0.1686959267, 0.0619376414, 0.3511344492, 0.0731981769, -0.0336026438, 0.1000553891, -0.1815096587, 0.0305697732, -0.2393949181, 0.1999551356, -0.1581187695, -0.0344601534, 0.2619611323, 0.2125544399, 0.0491624027, 0.1751204431, -0.296749413, 0.0122221932, -0.2247529924, 0.0795713365, 0.3878737688, -0.5469016433, 0.3201328814, -0.114045985, 0.3263935447, 0.248102963, -0.1112368554, 0.0069457786, 0.2077624649, 0.1929994971, -0.3124340773, -0.1750277132, -0.2047646791, 0.0255533345, 0.1951707602, -0.0336905085, 0.0335220546, 0.2034249306, 0.2418436408, 0.2176679224, 0.3072526157, -0.2194324732, 0.16087237, 0.2555875182, -0.0315137468, 0.1866933703, 0.4408328235, 0.2895789146, 0.0344296917, 0.2087426484, -0.0501233637, 0.2683549821, -0.035519775, 0.0493078493, 0.2784287632, -0.1406376064, -0.1351005286, 0.1598720253, -0.0666535869, -0.0975727737, -0.2356363982, 0.1379938573, -0.5082182884, -0.0016115485, -0.3276998103, -0.0616721623, -0.3606292605, 0.133580476, -0.2579288185, -0.0233722012, 0.0797755122, 0.1772311181, 0.1117883846, 0.1014342755, -0.4469522834, 0.1259372383, -0.4083173573, 0.0444616489, -0.2394635081, 0.3101461232, -0.1211523339, -0.0841584355, 0.1898359507, 0.2903622389, -0.1219389066, -0.1150248498, 0.1751778126, 0.4762859344, 0.1457410008, 0.0434703939, -0.0806150883, -0.0292949397, -0.0321249776, -0.0190827232, 0.2248752564, 0.2004404515, -0.0397765897, 0.1562916785, 0.1541845798, -0.1182022691, 0.1891734153, 0.1260015368, 0.0241077729, 0.1159706041, 0.2661477029, 0.0735388994, -0.1547979116, -0.1336263865, -0.0261749346, -0.3192777932, -0.1522499472, 0.3894209266, 0.2127337158, -0.2353197634, -0.1131785661, 0.0737563297, 0.0157803819, 0.4464923143, 0.1291052848, 0.0046014581, -0.1204413399, 0.0396347158, -0.207659632, 0.2196235061, -0.0238991696, 0.0166289471, 0.1226762682, 0.0947788283, -0.026472928, -0.0253279731, 0.3033052087, -0.1253409684, 0.1207329929, -0.1434570849, -0.2756643891, -0.0575891212, 0.308806777, 0.0814979747, 0.0755051896, -0.2945996225, 0.0161185935, 0.0222244207, 0.1112491116, -0.2723047733, 0.0581631549, 0.0998517126, -0.3974210918, 0.2679632008, -0.0830508843, 0.789028883, 0.0927614272, -0.1029084548, -0.0044994517, -0.2056705952, -0.3405402005, 0.2708167434, 0.0972320959, 0.5719088316, 0.1613239348, -0.1286328286, -0.4244956076, 0.3670105338, -0.1697559655, -0.6661808491, -0.1641177237, 0.192250371, -0.117340818, 0.2502706945, 0.224502489, 0.1029546931, 0.306530714, -0.2895622551, -0.3585672081, -0.1202798486, 0.5804314613, -0.2649390101, -0.2065291852, -0.2863224447, 0.1459728777, -0.1629393101, 0.1301870197, -0.1651322544, 0.1129607707, 0.02614538, -0.0039775781, -0.0153509062, 0.2036132962, 0.2484437227, 0.1664723754, -0.140039295, 0.442627281, -0.1489300579, -0.2323543131, -0.3859884739, -0.247076273 ]
https://github.com/huggingface/datasets/issues/2068
PyTorch not available error on SageMaker GPU docker though it is installed
Could paste the code you use the start your training job and the fine-tuning script you run?
I get en error when running data loading using SageMaker SDK ``` File "main.py", line 34, in <module> run_training() File "main.py", line 25, in run_training dm.setup('fit') File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn return fn(*args, **kwargs) File "/opt/ml/code/data_module.py", line 103, in setup self.dataset[split].set_format(type="torch", columns=self.columns) File "/opt/conda/lib/python3.6/site-packages/datasets/fingerprint.py", line 337, in wrapper out = func(self, *args, **kwargs) File "/opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 995, in set_format _ = get_formatter(type, **format_kwargs) File "/opt/conda/lib/python3.6/site-packages/datasets/formatting/__init__.py", line 114, in get_formatter raise _FORMAT_TYPES_ALIASES_UNAVAILABLE[format_type] ValueError: PyTorch needs to be installed to be able to return PyTorch tensors. ``` when trying to execute dataset loading using this notebook https://github.com/PyTorchLightning/pytorch-lightning/blob/master/notebooks/04-transformers-text-classification.ipynb, specifically lines ``` self.columns = [c for c in self.dataset[split].column_names if c in self.loader_columns] self.dataset[split].set_format(type="torch", columns=self.columns) ``` The SageMaker docker image used is 763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.4.0-gpu-py3 . By running container interactively I have checked that torch loading completes successfully by executing `https://github.com/huggingface/datasets/blob/master/src/datasets/config.py#L39`. Also as a first line in the data loading module I have ``` import os os.environ["USE_TF"] = "0" os.environ["USE_TORCH"] = "1" ```` But unfortunately the error stills persists. Any suggestions would be appreciated as I am stack. Many Thanks!
17
PyTorch not available error on SageMaker GPU docker though it is installed I get en error when running data loading using SageMaker SDK ``` File "main.py", line 34, in <module> run_training() File "main.py", line 25, in run_training dm.setup('fit') File "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/core/datamodule.py", line 92, in wrapped_fn return fn(*args, **kwargs) File "/opt/ml/code/data_module.py", line 103, in setup self.dataset[split].set_format(type="torch", columns=self.columns) File "/opt/conda/lib/python3.6/site-packages/datasets/fingerprint.py", line 337, in wrapper out = func(self, *args, **kwargs) File "/opt/conda/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 995, in set_format _ = get_formatter(type, **format_kwargs) File "/opt/conda/lib/python3.6/site-packages/datasets/formatting/__init__.py", line 114, in get_formatter raise _FORMAT_TYPES_ALIASES_UNAVAILABLE[format_type] ValueError: PyTorch needs to be installed to be able to return PyTorch tensors. ``` when trying to execute dataset loading using this notebook https://github.com/PyTorchLightning/pytorch-lightning/blob/master/notebooks/04-transformers-text-classification.ipynb, specifically lines ``` self.columns = [c for c in self.dataset[split].column_names if c in self.loader_columns] self.dataset[split].set_format(type="torch", columns=self.columns) ``` The SageMaker docker image used is 763104351884.dkr.ecr.eu-central-1.amazonaws.com/pytorch-training:1.4.0-gpu-py3 . By running container interactively I have checked that torch loading completes successfully by executing `https://github.com/huggingface/datasets/blob/master/src/datasets/config.py#L39`. Also as a first line in the data loading module I have ``` import os os.environ["USE_TF"] = "0" os.environ["USE_TORCH"] = "1" ```` But unfortunately the error stills persists. Any suggestions would be appreciated as I am stack. Many Thanks! Could paste the code you use the start your training job and the fine-tuning script you run?
[ -0.3578641415, 0.0624307953, -0.0035596238, 0.0923951641, 0.2011191398, 0.0346485153, 0.5519387722, 0.3234076202, 0.3856209815, 0.0929586217, 0.000882448, 0.396581918, -0.0354305804, 0.1952464283, 0.0736840293, -0.2641964853, -0.0560294911, 0.2284690887, -0.310595721, 0.0267089941, 0.1719548404, 0.119791314, -0.2741036713, 0.1857316941, -0.3524910808, -0.0930103734, 0.2506569922, -0.0640398934, -0.1788957864, -0.4069884121, 0.2793971002, -0.0613613091, 0.2397312969, 0.4969632626, -0.0001140436, 0.3032167852, 0.1815664172, -0.0520814545, -0.2339608818, -0.4946044683, 0.2693470716, -0.2135498077, 0.2534041703, -0.3587451875, -0.2566689551, -0.6176711917, -0.1617843956, -0.1064133123, 0.1897278428, 0.48300758, 0.1778384894, 0.2304899991, 0.3704246283, -0.106883876, -0.0213628877, -0.1286901981, -0.1998844147, 0.1933849007, 0.0606132858, -0.0477186143, -0.221519351, 0.3306259811, 0.0532883741, 0.2221888006, 0.2746856511, -0.0277601816, 0.3027733564, -0.3284734786, 0.0128039801, 0.0186375361, 0.3783848882, -0.1673073322, -0.2615454495, -0.1401581615, 0.2406661361, -0.1856719702, 0.225849092, 0.2011610866, -0.2385993153, -0.2307838351, -0.0924868286, -0.2448174804, -0.494228512, 0.0012738773, -0.1486772746, 0.6484245658, -0.0097295363, 0.2958638668, -0.1088484004, 0.0316302069, 0.1087979451, -0.0174540039, 0.1367828995, -0.1035544947, -0.4412148595, 0.012114509, -0.1848006099, -0.3475167751, -0.1545314342, 0.1763313413, 0.0244535394, 0.0385518931, 0.4613886178, 0.2319642752, -0.0648742244, 0.2133833766, -0.1676822305, 0.2672359049, 0.3156037629, 0.1783836782, 0.0582820997, -0.0110225203, -0.2719785571, -0.2618049085, 0.0919806212, -0.0409461632, 0.1839137077, -0.2599912882, -0.1896702796, -0.0647256747, -0.2254169285, -0.0048058298, 0.3427656889, 0.3795003295, -0.3616908789, 0.0215546489, 0.3905213773, 0.0970222279, -0.1571542025, 0.10861779, -0.0689174309, 0.369238019, -0.3053953648, -0.1699037552, 0.2570928633, -0.2832773924, 0.3190394938, 0.0521267839, 0.438213706, 0.0194360241, 0.1652491391, -0.036284063, -0.030520279, 0.3495334089, 0.1684822291, -0.0993224233, 0.0673144609, -0.1310518235, 0.0435599051, 0.1640107781, -0.3027128279, -0.1731040925, -0.2777279615, 0.2180584967, 0.0239804462, -0.082847327, -0.0956026316, -0.2363593727, 0.138433218, -0.246269688, -0.1988413185, -0.5774738789, -0.1518824548, 0.1009744629, 0.3505586386, -0.1060074791, -0.2552389205, -0.242927894, 0.2169633657, -0.0445830785, 0.1921145469, 0.1672691256, -0.3213563263, 0.3641376793, -0.2241795361, -0.1162742972, 0.4368961453, -0.1582635194, -0.4274958968, -0.0526533686, -0.1317561567, -0.1814899445, 0.2424344867, -0.0210298188, 0.1027195677, 0.069486022, 0.1587239802, 0.2212405205, 0.0550632998, -0.064146921, 0.071162194, -0.0301145911, 0.0693061203, 0.3470237255, 0.4696928263, 0.040519204, -0.2203283459, 0.1052828506, 0.001149097, -0.3349925578, -0.0729087368, 0.1936163008, 0.0726032853, 0.1973173916, 0.234205395, -0.024150962, -0.2846353948, 0.437253207, -0.407838881, 0.2201972306, -0.401273787, 0.2799265385, 0.0739981681, 0.2309342772, -0.4405453205, -0.0290490519, 0.07402125, 0.2747326791, 0.1433665007, -0.0716503933, -0.0431885682, 0.1642152667, -0.2015470266, 0.2570535839, -0.0297233295, 0.1648438275, -0.3522476256, -0.2846183479, -0.0267784502, 0.0832821056, 0.086788699, -0.133834824, -0.1851904392, -0.0223051663, 0.0563511513, -0.1856316179, -0.4077396095, 0.0107591283, 0.2134343386, -0.0264883377, 0.1546375751, 0.2261992395, 0.0535074957, 0.0659498125, -0.059613023, 0.2794191837, 0.0768525451, 0.3316192925, 0.1563589275, 0.1243273243, 0.3506566286, 0.1796322763, -0.0370967947, 0.0312509164, 0.3116857409, -0.1815507263, 0.3884938359, -0.2803410888, -0.067093879, -0.2269869745, 0.058220759, 0.0968175977, 0.2094515115, -0.0584187284, -0.2641681135, -0.0197157003, 0.1655122787, 0.0201513339, 0.1763114631, 0.0855540261, -0.2054277956, -0.0731581226, -0.2630325258, -0.2853460312, 0.0199485701, 0.2054539919, 0.1803484708, 0.4772663116, -0.0249771457, -0.1353630424, -0.205396384, -0.3153858781, 0.0442341194, 0.2464947253, -0.0167008638, 0.1939773113, 0.0213794578, -0.2587880194, -0.1571341157, 0.0688672587, -0.0830654204, -0.070559822, -0.0567111783, 0.4370978475, 0.1046393141, 0.3015837669, 0.1242612451, 0.0017424766, 0.0909291729, -0.0915197954, -0.1010048166, -0.1997737885, -0.1029308662, 0.0908150449, 0.0139178699, -0.1522049159, 0.4530830979, -0.0226927213, 0.239729628, -0.4752229154, -0.4546356797, 0.2639149725, 0.0946713835, 0.0703557283, 0.0831278935, -0.1004692093, 0.2305428535, -0.1151754484, 0.2874083221, -0.3667427301, -0.009985378, 0.1711315811, -0.3040319085, -0.0911610574, -0.042921938, -0.2373357415, -0.2131171525, -0.2420701683, -0.1625312418, 0.192563042, 0.0692954957, 0.0710769519, -0.0482118241, 0.2399499863, 0.0612405017, 0.4208260179, -0.0505231693, -0.0142030763, 0.3403246403, -0.1449126303, -0.4585411251, 0.1990784705, -0.0710253268, 0.4873738289, 0.1876756251, -0.3572619855, -0.1432139724, -0.0876859725, -0.0104061607, -0.2309724241, -0.3154937923, 0.4347072244, 0.0858675614, -0.0017584331, -0.0180877224, -0.2098880112, -0.0058367159, -0.1161859334, 0.1107510924, 0.0180556402, 0.521802485, 0.016134927, 0.5054343343, -0.1492942721, -0.1849229783, 0.078760691, -0.0914803892, 0.1306823939, -0.0777424574, -0.3543592393, 0.0909200162, -0.0784769878, 0.0423088782, -0.1143650487, -0.2375507802, -0.2545679808, -0.2243157029, 0.1367323399, 0.205672577, -0.0749225989, 0.1470567137, -0.0218517147, 0.2347736061, -0.1005826071, 0.2911743224, -0.0582699627, -0.0206461176, -0.0068819565, 0.4009916782, 0.247112453, 0.0405494533, -0.3504701853, -0.4177761078, -0.3089731634, 0.1535237432, 0.1111554578, 0.4341416955, -0.253531754, 0.1353390217, 0.251821965, -0.0731293485, 0.1305500269, 0.2015887499, -0.0769398659, 0.1304475367, -0.5629467964, -0.2140491009, -0.4025834799, -0.2041152269, 0.3084564507, -0.1378363669, 0.2591090202, -0.0521870144, -0.2361827493, 0.3772245646, -0.001456145, -0.3549470305, -0.1654877216, -0.3093602359, -0.007102503, -0.3891407549, 0.1418217421, -0.1630355567, 0.1648111194, 0.103350386, 0.1802529544, -0.0478270054, -0.0673624501, -0.2418477386, 0.1251702309, 0.1508534551, -0.1796662956, 0.0206299108, 0.2583088279, 0.4035357237, 0.024661934, 0.1251707375, 0.1658735871, -0.6877143383, 0.2279513478, 0.1437772363, 0.0337538347, -0.0006089248, -0.2813973725, -0.0151329935, 0.0288641024, 0.2616087496, -0.2789121866, 0.2849281132, 0.4318096638, 0.0435549133, -0.336148262, -0.5102328658, -0.0285133999, 0.1190535501, 0.1307086051, 0.1072733402, -0.3197686374, -0.2387964576, 0.1009448841, 0.2339784652, 0.3998082876, -0.1230272725, 0.163187176, 0.369017452, -0.0562772416, 0.6690493226, -0.0701485053, 0.5010371208, -0.2964494228, -0.0236954708, -0.0219666772, -0.3330350518, 0.1249233857, -0.0894322172, 0.019607408, 0.4615962803, 0.0227420554, 0.1879123747, 0.0824427307, 0.5432862639, -0.056193307, -0.3151731491, 0.0893428922, 0.0824313834, -0.4715274274, 0.4554199576, -0.1119189039, 0.1296061277, 0.2646176517, -0.0853902027, -0.2024869323, 0.3169837296, -0.103518948, 0.513572216, -0.2603099644, -0.7178817391, 0.2217281759, 0.1935005188, 0.0475803018, -0.0163906515, -0.0840441063, 0.2869559824, -0.5260501504, -0.2648879588, -0.1186812595, 0.1446563601, 0.4126049578, -0.1766412258, -0.1750863791, 0.0456951335, -0.0207090396, -0.3480335176, -0.1475060135, 0.0229149349, 0.5239810348, 0.0506119505, 0.1382590532, -0.2436711043, -0.1985275, -0.1187596694, 0.1392894089, 0.1864420474, -0.1920205504, 0.009254491, 0.112669915, -0.2367701232, 0.0267792381, 0.4035095274, 0.2485733777, -0.075485304, 0.7604894638, 0.2701000571, -0.2153381258, -0.1895246655, -0.575774014, 0.1880675405, -0.4746957719, 0.0904084072, 0.0883787274, -0.0010321202, -0.025246704, 0.0832524151, 0.2404931784, -0.3185769916, -0.2064390033, -0.4979457259, -0.2446031123, -0.0121773854, -0.0970731825, 0.1446902007, 0.4060983062, 0.0213104095, -0.0374531262, -0.1176226735, -0.2486613989, -0.081246078, -0.0857515857, -0.0178911909, 0.028843794, -0.2464594841, 0.0180505142, 0.1339568496, 0.1165807098, -0.0161814932, -0.0523237512, -0.1377302557, -0.0593804568, 0.0638025627, 0.1501114517, -0.1841322184, -0.156717658, -0.347202152, -0.1686959267, 0.0619376414, 0.3511344492, 0.0731981769, -0.0336026438, 0.1000553891, -0.1815096587, 0.0305697732, -0.2393949181, 0.1999551356, -0.1581187695, -0.0344601534, 0.2619611323, 0.2125544399, 0.0491624027, 0.1751204431, -0.296749413, 0.0122221932, -0.2247529924, 0.0795713365, 0.3878737688, -0.5469016433, 0.3201328814, -0.114045985, 0.3263935447, 0.248102963, -0.1112368554, 0.0069457786, 0.2077624649, 0.1929994971, -0.3124340773, -0.1750277132, -0.2047646791, 0.0255533345, 0.1951707602, -0.0336905085, 0.0335220546, 0.2034249306, 0.2418436408, 0.2176679224, 0.3072526157, -0.2194324732, 0.16087237, 0.2555875182, -0.0315137468, 0.1866933703, 0.4408328235, 0.2895789146, 0.0344296917, 0.2087426484, -0.0501233637, 0.2683549821, -0.035519775, 0.0493078493, 0.2784287632, -0.1406376064, -0.1351005286, 0.1598720253, -0.0666535869, -0.0975727737, -0.2356363982, 0.1379938573, -0.5082182884, -0.0016115485, -0.3276998103, -0.0616721623, -0.3606292605, 0.133580476, -0.2579288185, -0.0233722012, 0.0797755122, 0.1772311181, 0.1117883846, 0.1014342755, -0.4469522834, 0.1259372383, -0.4083173573, 0.0444616489, -0.2394635081, 0.3101461232, -0.1211523339, -0.0841584355, 0.1898359507, 0.2903622389, -0.1219389066, -0.1150248498, 0.1751778126, 0.4762859344, 0.1457410008, 0.0434703939, -0.0806150883, -0.0292949397, -0.0321249776, -0.0190827232, 0.2248752564, 0.2004404515, -0.0397765897, 0.1562916785, 0.1541845798, -0.1182022691, 0.1891734153, 0.1260015368, 0.0241077729, 0.1159706041, 0.2661477029, 0.0735388994, -0.1547979116, -0.1336263865, -0.0261749346, -0.3192777932, -0.1522499472, 0.3894209266, 0.2127337158, -0.2353197634, -0.1131785661, 0.0737563297, 0.0157803819, 0.4464923143, 0.1291052848, 0.0046014581, -0.1204413399, 0.0396347158, -0.207659632, 0.2196235061, -0.0238991696, 0.0166289471, 0.1226762682, 0.0947788283, -0.026472928, -0.0253279731, 0.3033052087, -0.1253409684, 0.1207329929, -0.1434570849, -0.2756643891, -0.0575891212, 0.308806777, 0.0814979747, 0.0755051896, -0.2945996225, 0.0161185935, 0.0222244207, 0.1112491116, -0.2723047733, 0.0581631549, 0.0998517126, -0.3974210918, 0.2679632008, -0.0830508843, 0.789028883, 0.0927614272, -0.1029084548, -0.0044994517, -0.2056705952, -0.3405402005, 0.2708167434, 0.0972320959, 0.5719088316, 0.1613239348, -0.1286328286, -0.4244956076, 0.3670105338, -0.1697559655, -0.6661808491, -0.1641177237, 0.192250371, -0.117340818, 0.2502706945, 0.224502489, 0.1029546931, 0.306530714, -0.2895622551, -0.3585672081, -0.1202798486, 0.5804314613, -0.2649390101, -0.2065291852, -0.2863224447, 0.1459728777, -0.1629393101, 0.1301870197, -0.1651322544, 0.1129607707, 0.02614538, -0.0039775781, -0.0153509062, 0.2036132962, 0.2484437227, 0.1664723754, -0.140039295, 0.442627281, -0.1489300579, -0.2323543131, -0.3859884739, -0.247076273 ]
https://github.com/huggingface/datasets/issues/2067
Multiprocessing windows error
Hi ! Thanks for reporting. This looks like a bug, could you try to provide a minimal code example that reproduces the issue ? This would be very helpful ! Otherwise I can try to run the wav2vec2 code above on my side but probably not this week..
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 When using the num_proc argument on windows the whole Python environment crashes and hanging in loop. For example at the map_to_array part. An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
48
Multiprocessing windows error As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 When using the num_proc argument on windows the whole Python environment crashes and hanging in loop. For example at the map_to_array part. An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop Hi ! Thanks for reporting. This looks like a bug, could you try to provide a minimal code example that reproduces the issue ? This would be very helpful ! Otherwise I can try to run the wav2vec2 code above on my side but probably not this week..
[ -0.0581422858, -0.4536789358, -0.0355622098, 0.2569918334, 0.0860945061, -0.0037738001, 0.1155310273, -0.0629603565, 0.0408042744, 0.3191868365, 0.2538126111, 0.0701291561, -0.307256341, -0.042545788, -0.2219942361, -0.246347174, 0.1892081499, -0.1294748038, 0.3075395823, 0.3353131711, -0.425796926, 0.5416620374, -0.4026212394, 0.1973486543, -0.4143261611, 0.0059313364, -0.2583844066, 0.4944567382, 0.3894542754, -0.3567266762, 0.0712471232, -0.393178165, 0.150901407, 0.1528386325, -0.0001224973, -0.1242067814, 0.0399247222, -0.0401796103, 0.4106856883, 0.2325062156, 0.2327507585, 0.1160328835, -0.0896713808, -0.0001365179, 0.1803091168, 0.3176898062, 0.0230250601, -0.0436635874, 0.3788874745, 0.2494235486, 0.1086352319, 0.2697450817, 0.0584816113, -0.0172717459, -0.3373925388, -0.4087223411, -0.0356069319, 0.1879888028, 0.4800274074, -0.3880698681, 0.2081039101, 0.2298603058, -0.2476222813, 0.0222452469, -0.3043946028, 0.0047381581, 0.3776165247, -0.5156350136, 0.0704574436, -0.0893278494, -0.106643118, -0.1918102503, 0.3175112605, 0.0956237093, 0.1241043285, -0.8489115834, 0.1194222197, 0.2649229467, -0.3856475353, 0.0965463296, -0.0331685431, 0.0699982941, -0.0602779798, -0.1735407412, 0.1558316946, -0.0503577814, 0.0599200465, 0.1652522087, 0.1297032982, 0.3123298883, -0.2853071988, 0.2992671728, -0.0785921365, 0.0563821644, -0.4582307339, -0.0107891699, 0.0245603491, 0.2138340026, -0.3155739009, -0.2193692625, -0.0722813457, 0.0577091165, 0.2103294581, 0.1877654791, 0.2185833454, -0.1882562041, 0.0442290641, -0.568636477, 0.1675220132, -0.5050087571, -0.1424951851, -0.0811682642, -0.0080245491, -0.5607300997, 0.3573496044, 0.3995008767, 0.2302152663, -0.1080730483, -0.3386079669, 0.2101213336, -0.0408639014, 0.2901069224, 0.2734651566, 0.2971853018, 0.3146835566, 0.7152171731, -0.0177824367, 0.2513940036, -0.5292392969, 0.0686727613, 0.0788347125, 0.1238425598, -0.2765548527, 0.1074584574, 0.2124368995, 0.0187724326, 0.1902923882, 0.1390351355, 0.2973753512, -0.3688141406, -0.0184526965, -0.2097486556, -0.1706737429, 0.2196745127, 0.2305231541, 0.1968379319, -0.0093255267, 0.0610075295, 0.023853559, 0.2254337668, -0.3823581338, -0.3544294834, -0.1269880682, 0.0252814125, 0.3979544044, 0.4406098723, 0.345051825, -0.1068725586, 0.3525730968, -0.3299075067, -0.1240258813, -0.4204719365, -0.3616980314, -0.3426901698, -0.0801266357, 0.2953491807, 0.030153187, 0.3120934367, 0.3005546331, -0.0583335087, 0.1898303479, 0.342027396, 0.2321761101, -0.1541699469, -0.1427907795, -0.0512977168, -0.2075470537, -0.2447626293, 0.0287265051, 0.1045085266, -0.0876487717, -0.0770463645, 0.2426427007, 0.0912931412, -0.140543431, -0.3693988621, 0.4593514502, -0.2429707795, -0.1423675865, 0.2521107197, -0.1832212806, 0.082677111, -0.0361785628, 0.0155520365, 0.0554709099, -0.039353177, -0.06999778, -0.0750163272, 0.2342375964, 0.1212345436, 0.0071897916, 0.2943189144, 0.2643740475, -0.025582755, 0.0472797006, -0.3173383474, 0.0250033904, 0.0944315046, -0.183732748, -0.0593165942, 0.4418399334, 0.1487972289, 0.1914487481, 0.2850690186, -0.1577901989, -0.2866767049, 0.0075829918, -0.0888103396, 0.0314151421, -0.2019582093, 0.0416023806, 0.5415995717, 0.092448473, -0.2050209641, -0.0775555521, -0.0432452261, -0.3279132843, -0.344163388, -0.0958045125, 0.3061348796, 0.232423991, 0.2131823599, 0.0931090787, 0.2249249369, 0.1783485413, -0.1250433624, -0.1788385063, -0.0189842805, 0.165731594, -0.3093580306, 0.094575949, 0.0233976785, 0.1686374992, -0.2740840018, 0.4795753956, 0.1112645268, -0.0392505899, 0.2464524657, -0.1647884697, 0.185777083, 0.1239149719, 0.0868052393, 0.2500821054, 0.2957986891, 0.3540993333, 0.0737770423, -0.0943073183, -0.377371639, -0.3285285234, 0.0634354055, 0.1519412994, 0.2393574119, -0.025990976, 0.0584112853, -0.1990371644, 0.2017970383, -0.016757587, -0.4524726272, 0.736939013, 0.0708686486, -0.158637315, 0.3013828993, -0.3818294406, -0.102982901, 0.2564708292, 0.0558757596, 0.0142506883, 0.1514874101, -0.0793212578, -0.0701858029, 0.0156659093, -0.0630172119, -0.112139143, 0.0245234724, -0.3366856873, 0.1437118798, -0.0703529716, 0.5119802952, -0.3930770755, -0.4185870886, -0.0158641282, -0.1448654681, 0.0737107396, 0.4412174523, -0.1272928119, -0.0961340219, 0.0165489689, 0.0042986395, 0.1229746118, 0.2859158516, 0.3148190379, -0.0421823077, -0.1014562994, -0.0997361541, 0.2983359396, -0.164749071, 0.2087989151, 0.353230685, -0.0372241996, 0.0849441215, 0.1645267606, -0.0095088864, 0.0576122254, 0.2622985244, 0.0440351665, 0.037500158, 0.1767672896, -0.4125064015, 0.0998601392, -0.3187249899, 0.1915216744, 0.2610322237, 0.1713416129, -0.3974963129, -0.2762926817, -0.028308332, -0.4276903868, -0.1810948998, 0.0551992841, -0.1846829206, 0.2561763525, -0.2547462285, 0.0900388435, 0.0847058222, 0.2642422915, -0.2037706375, -0.1433807611, 0.1716794968, -0.0844421685, -0.258058548, -0.1759231687, 0.2507465482, 0.1663269848, 0.034059789, -0.2300752997, -0.184406355, -0.3176006675, 0.0196091793, 0.0322728455, -0.0572803468, 0.2107919902, 0.3846406937, 0.110975422, -0.0915514231, 0.0241961014, -0.1118705347, 0.1226551682, 0.0250532534, 0.1420997232, 0.2201242298, 0.0712736025, -0.1695975512, 0.5418447256, 0.5851690769, 0.1231957227, 0.3024074733, 0.115446128, 0.0167700928, 0.034353409, -0.1813272387, 0.0432582237, -0.4538234472, -0.1846062988, 0.1852773577, 0.1367888451, -0.3691622019, -0.2682441175, 0.2060448229, -0.3449836075, -0.1176549345, 0.0889455006, 0.094594039, 0.2125631124, -0.2040406764, -0.033610601, 0.0981819183, 0.0672462732, -0.1922684163, 0.1643067002, -0.1859419197, -0.2114786357, -0.0058401432, -0.5571390986, -0.3848232925, 0.3280598223, 0.1219234243, 0.5821323395, -0.0677650124, -0.1720136404, -0.076144807, -0.308447659, 0.8612219691, -0.1240651608, -0.1728720814, 0.2027513087, 0.2131691128, 0.0480330326, -0.1954341084, -0.2025590241, 0.3766911328, 0.0584952198, -0.0827402771, 0.3347229362, 0.0146594737, 0.0577527359, -0.0758638158, -0.1576246768, -0.113902919, -0.3956269622, -0.2647198737, 0.0798703507, 0.2954231501, 0.0608333573, 0.0183230415, -0.4867069423, 0.0588875264, 0.1265334636, -0.0476327762, 0.2799257636, -0.1075734347, 0.1051885486, -0.1954663992, 0.2081281394, -0.3091811538, 0.3162394464, -0.2209810168, -0.0304391813, -0.11674124, 0.2173631042, 0.3433980048, -0.1115774661, 0.4617955089, 0.4835231304, 0.107347019, 0.0466568731, -0.3023398817, 0.3954615593, -0.2997344434, -0.2929954529, 0.3063973188, 0.2252732068, 0.1064765677, 0.3608359396, 0.2658947408, 0.1251863688, -0.0970825404, 0.5405084491, -0.294685185, -0.068120338, -0.0578515045, 0.097982049, 0.9706497788, 0.1672179103, 0.1279156357, 0.0666872188, -0.4959294498, -0.2037558258, -0.1253498942, 0.3211532533, -0.2502979934, -0.2016642839, 0.0483656153, -0.104721345, 0.151429534, -0.1148617491, -0.3159128428, 0.4344839156, 0.0856267288, -0.2407682389, -0.1079418957, -0.3393342197, -0.0638842434, -0.1676816344, 0.052917745, 0.0333369076, 0.1299217641, -0.0785955712, -0.2901929915, 0.1603252143, 0.4377803504, -0.3864810765, -0.5973950028, 0.0585258529, -0.2218552828, 0.1296208948, 0.0247008651, 0.2141949832, 0.1133392528, 0.3457567692, 0.188331455, -0.0639744401, -0.2510095537, 0.0370401964, 0.411754787, -0.0252168383, -0.1266994923, 0.0186136123, -0.1215971634, -0.1454341859, -0.2624288499, 0.3467601836, -0.1787400246, -0.0581286103, -0.3553859591, 0.396911025, 0.0664772317, 0.2234817445, -0.1788855642, 0.259115696, -0.0972146466, -0.186384812, 0.0709262714, 0.0898761004, -0.5308448076, 0.4942594767, -0.5991371274, -0.0874862969, 0.0404232368, 0.0899473131, -0.0044938792, -0.1427793056, 0.1440736502, 0.2740443349, -0.037533883, -0.1893778443, -0.0832269713, -0.5538094044, -0.0639177859, -0.038103085, 0.3845423758, -0.1365795285, 0.1988971382, -0.2631216347, 0.0343525, 0.0859672725, 0.0000764191, -0.4166377187, -0.1524061263, -0.0818362385, -0.1089170873, 0.0761637017, -0.068073824, 0.0493103117, 0.1297266334, 0.030705208, -0.2212044001, 0.0496321358, -0.1451286674, 0.104687877, 0.0524086058, -0.1959430575, -0.1174309999, 0.173390761, -0.0139856022, 0.3372425735, -0.276866287, -0.0766105652, 0.031162044, 0.1252358109, -0.1028769761, -0.0120933391, 0.1443312019, 0.1166208088, 0.046165105, 0.0722222179, 0.1374605596, 0.070585236, -0.2863956094, 0.1049668267, -0.0368607342, 0.2669780552, 0.1401186585, 0.2992389202, -0.1195689663, 0.420901835, 0.0716727152, 0.012193054, 0.1021101996, -0.0031001889, -0.0210774448, 0.0072861677, -0.158718735, -0.1828369945, -0.1783345044, -0.1451347023, -0.2222426087, -0.1602769494, 0.1800922453, 0.2320830524, -0.1891255528, 0.359604001, 0.3616652191, 0.1855931282, -0.1767398864, 0.1009491533, -0.0847949684, -0.1132142842, -0.2028797865, 0.3118568361, 0.1951146424, -0.4828326702, 0.3124464154, 0.0768459365, 0.2162154019, -0.3997154832, -0.3270640671, 0.0999630988, 0.2116515487, 0.1568399519, -0.1175067425, -0.1622985899, 0.0289107729, 0.5074875355, -0.010263023, 0.1445218325, -0.165672943, 0.0603522994, -0.0937686414, -0.2105658352, -0.281686306, 0.1144587621, -0.3063828945, 0.4082042575, -0.2697688937, 0.419298321, -0.5900569558, -0.3131828606, -0.3440952003, 0.3409807682, -0.2885803878, -0.1261041611, 0.1379364431, 0.0138244499, 0.029238224, 0.1049956381, 0.3350334764, 0.1035920531, 0.5011777878, 0.1839784682, -0.1275368184, -0.0247080028, -0.2411273271, 0.248379603, 0.0147427255, -0.2052838653, 0.1989242733, 0.4318728745, -0.0715488568, -0.1616411954, -0.0173579957, 0.554335773, 0.3776864111, -0.7202737331, -0.0549806207, 0.1337959468, 0.1619909257, 0.0390959196, 0.1831469685, 0.1867975593, 0.2772274911, -0.03018957, -0.0359301865, -0.0572247095, 0.033589609, 0.3075831532, 0.2061606646, -0.0219192319, 0.2436187565, -0.1795902997, -0.1927601397, 0.0978358015, 0.1497306228, -0.5974993706, 0.0335832089, 0.2408357263, -0.342286706, 0.0626598224, 0.1090902016, 0.0239201486, -0.045377288, 0.3704230785, -0.0711149499, 0.3302574158, -0.2325227261, -0.2024018914, -0.359687537, 0.0660738945, 0.0306294896, 0.0832768679, -0.1472661197, -0.1648824662, -0.0934377164, 0.155721426, 0.0648444593, 0.142868489, 0.261177659, 0.7247501016, -0.6224196553, 0.2886500061, 0.3918008506, -0.0296211671, 0.2471480668, -0.4001512825, 0.1693498939, 0.0103674801, 0.0022286421, -0.1773338914, 0.153989315, -0.1694153398, 0.4468995631, 0.1549281776, 0.064364478, 0.2695634067, 0.0336149223, -0.1173484102, 0.0193396937, 0.2997875512, 0.3006201386, -0.5452708602, 0.2135139704, 0.077307038, -0.4484580457, -0.0199569222, 0.0097896531, -0.0015115448, 0.1182382107, 0.1396419853, -0.1543738246, 0.0191283841, -0.0932220072, 0.1422598511, 0.0317066796, 0.3753748536, -0.0367316566, 0.1789433956, -0.2378185689, 0.0514134951, 0.0894558132, -0.1766909361, -0.3162963688, -0.3609882295, 0.570304811, -0.4823660851, 0.1083315238, -0.0566999391, -0.1274668872, -0.0527691208, 0.0712155998, -0.6215375662, 0.251840353, -0.3608246446, -0.6840996146, 0.1833939701, -0.1227834374, 0.113879025, -0.0478711352, 0.2918034792, -0.1887572855 ]
https://github.com/huggingface/datasets/issues/2067
Multiprocessing windows error
``` from datasets import load_dataset dataset = load_dataset('glue', 'mrpc', split='train') updated_dataset = dataset.map(lambda example: {'sentence1': 'My sentence: ' + example['sentence1']}, num_proc=4) ```
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 When using the num_proc argument on windows the whole Python environment crashes and hanging in loop. For example at the map_to_array part. An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
22
Multiprocessing windows error As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 When using the num_proc argument on windows the whole Python environment crashes and hanging in loop. For example at the map_to_array part. An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop ``` from datasets import load_dataset dataset = load_dataset('glue', 'mrpc', split='train') updated_dataset = dataset.map(lambda example: {'sentence1': 'My sentence: ' + example['sentence1']}, num_proc=4) ```
[ -0.2164213806, -0.2695317268, -0.0307763387, 0.1850229055, 0.1784022152, 0.1376413852, 0.0575685389, -0.0025023592, 0.0087180454, 0.2766420543, 0.1489747614, 0.161060378, -0.2854522169, -0.1023179963, -0.1237754375, -0.1828473955, 0.1945978254, -0.1632982492, 0.2638875842, 0.3403263688, -0.4150704741, 0.4792795479, -0.3459643424, 0.0734491795, -0.5422174335, -0.1041581854, -0.2976151109, 0.4396467507, 0.1972890347, -0.4517995417, -0.0138777308, -0.1838334054, 0.2181251943, 0.1776024848, -0.0001206921, -0.106564492, 0.0575244427, -0.0216340758, 0.333186388, 0.229483977, 0.0989154428, 0.0286371671, -0.0890318602, -0.0855967253, 0.1740061492, 0.2978881299, 0.0963280946, -0.1282735318, 0.5274693966, 0.3825235069, 0.0758574009, 0.2272970974, 0.0876483247, 0.0078205112, -0.187841773, -0.2888143659, 0.0203555506, 0.2024265975, 0.54060179, -0.3069013357, 0.0876099393, 0.2608897686, -0.3369733393, 0.0058556385, -0.3788696229, -0.0015096415, 0.340976119, -0.497214824, 0.1355953515, -0.0681021214, -0.0130128469, -0.3219807744, 0.1528366655, -0.0216745306, 0.1863059849, -0.8767049313, -0.0115935523, 0.1989577562, -0.3144764006, 0.0741170272, -0.1529563218, -0.0594548956, -0.0408123434, -0.1191430241, 0.1830258667, 0.0230449196, 0.0427069627, 0.1673843414, 0.2412385941, 0.2289174348, -0.1954461336, 0.2736679614, -0.1021793634, 0.1365427673, -0.5750362873, -0.0034188777, -0.0358424, 0.1198295355, -0.2478046268, -0.3653277755, -0.0101336176, 0.0669425502, 0.2934776843, 0.1694191545, 0.2630365789, -0.1541763544, 0.0505522937, -0.539624095, 0.2337462753, -0.4970730245, -0.1793614179, -0.0397484228, -0.0393526033, -0.5704105496, 0.3287132382, 0.4325675964, 0.2949967086, -0.0771087781, -0.3808995783, 0.1982300729, -0.0343120061, 0.1575938761, 0.1864150017, 0.2853851318, 0.3009822071, 0.6022768617, -0.1089116633, 0.2430968434, -0.5615468025, -0.0249191988, 0.0065898416, 0.0263323002, -0.3680236936, 0.148827672, 0.2685834169, 0.053636305, 0.1249186024, 0.1504220814, 0.1372539103, -0.3701722026, -0.1397935897, -0.236129418, -0.2652799189, 0.2284745872, 0.2142868936, 0.2383060902, -0.0474644676, -0.0238057673, 0.0262909923, 0.3022710979, -0.3516973853, -0.3986415267, -0.1266382039, 0.0315954275, 0.3112641275, 0.2649719417, 0.0864210203, 0.1411971152, 0.4162354171, -0.268427372, -0.150457859, -0.3968690038, -0.2766779065, -0.3078666627, -0.0656393915, 0.4170386195, -0.1365274191, 0.2900332212, 0.2960911393, 0.0314431638, 0.1945924163, 0.3655436337, 0.1552812904, -0.0813853145, -0.0505696349, 0.0832355469, -0.0205603093, -0.2881668806, -0.1992245317, 0.1760383099, -0.0738317817, -0.0978381336, 0.3155909479, 0.1629918963, 0.0818683133, -0.2875579894, 0.4907433987, -0.1638594419, -0.1147928238, 0.219432354, -0.1701683551, 0.114303574, 0.0020510373, 0.0597540438, 0.0055042347, -0.1001226977, -0.0747043267, -0.0821861029, 0.3725980222, 0.049352631, 0.0329319313, 0.4288324416, 0.1251134127, 0.0426794924, -0.0380034149, -0.441200763, -0.1410394758, 0.0364275053, -0.1454826742, 0.1202211305, 0.2154914439, 0.012319901, 0.1436548382, 0.2799672186, -0.1707315296, -0.3652132154, 0.0262438003, -0.0855280682, 0.0470418483, -0.253636241, -0.0740336627, 0.5049322248, -0.0410295874, -0.0658520833, -0.1183068231, -0.0357056335, -0.276833266, -0.4343217015, -0.0377743132, 0.3438779712, 0.2160583884, 0.1489759833, 0.0480393358, 0.3426545858, 0.1863050759, 0.008138461, -0.1519269347, -0.0605591163, 0.2119037658, -0.3094339073, 0.0922353491, 0.0435259789, 0.1680229753, -0.1974245161, 0.3308627903, 0.0512521192, 0.0455580354, 0.3031243086, -0.130864203, 0.1274567395, 0.1350084543, 0.1218288764, 0.1568629295, 0.1545982659, 0.2793996036, 0.0749837309, -0.0271782652, -0.2646306157, -0.3050142527, 0.0248108041, 0.2788730264, 0.1574841291, 0.0075604119, 0.0476804599, -0.3225961328, 0.1222752854, -0.0220540054, -0.325492233, 0.7709751725, 0.139693737, -0.0917922184, 0.2921948135, -0.4372150302, -0.1092860103, 0.2887381911, 0.095815137, 0.0182918832, 0.1213153154, -0.072587885, -0.006696004, -0.1947632581, -0.0800314397, 0.0012708189, 0.1616832912, -0.3943113685, 0.0567448884, -0.1457269639, 0.3488923609, -0.3866232932, -0.4130344093, -0.043693319, -0.208983466, -0.0044997283, 0.3486007154, -0.0087537579, 0.0981044024, 0.0509685352, -0.1500321478, 0.1428931355, 0.1455195844, 0.2662488818, -0.0906186849, -0.1254094988, -0.1048677415, 0.3953677118, -0.1487084329, 0.2262790054, 0.2536702752, 0.0533808656, -0.0227700807, 0.1229571551, -0.1032215282, 0.0013769272, 0.3677132726, 0.0344866626, 0.0714261457, 0.0728886798, -0.3751193583, 0.1372563094, -0.308108151, 0.1805384904, 0.1420273632, 0.1769648939, -0.428165257, -0.1545359492, -0.2390208989, -0.4491522312, -0.2015043944, 0.0472735055, -0.269444406, 0.2583691776, -0.2600834966, 0.140376702, 0.1228195652, 0.3062793911, -0.1006053537, -0.1949613243, 0.2093832493, -0.0533713102, -0.2659556568, -0.2152356058, 0.0953185931, 0.1492295414, -0.0089389347, -0.0756141022, -0.2012025118, -0.3000938296, -0.1328929812, -0.0041209138, -0.0031261411, 0.3379204869, 0.5044849515, 0.1537649781, -0.0895862803, 0.0280560609, -0.191494599, 0.0816867501, 0.1449462622, 0.1434950978, 0.1560180783, 0.18275024, -0.1249649525, 0.4865585864, 0.6543415189, -0.0066319271, 0.3675019443, 0.0008984679, 0.0191047601, 0.0103921695, -0.2558256686, 0.070878379, -0.4434513152, -0.0943345428, 0.1967522204, 0.1401742548, -0.3902769983, -0.2533397675, 0.1971937269, -0.3684377074, -0.1661484689, 0.1676752269, 0.0287356228, 0.2189524919, -0.09089908, -0.0863770247, 0.017485505, 0.0233451612, -0.1418200433, 0.1424056441, -0.1911936998, -0.2000517696, -0.1622463316, -0.4725289047, -0.5464192033, 0.4420817494, 0.1902509034, 0.557249248, -0.0004187065, -0.1033630371, -0.0077231773, -0.2483181804, 0.9616149068, -0.2557924986, -0.2321636379, 0.2623560727, 0.3185872138, -0.1450109035, -0.0631814972, -0.3186500669, 0.3344963193, 0.1541581154, 0.0722032115, 0.245080784, -0.1232592314, 0.1116062477, -0.0964407995, -0.1693777442, -0.1299032718, -0.3090283573, -0.29477036, -0.1030343324, 0.254709661, 0.0725450218, 0.0647232309, -0.2876007259, -0.0304696057, 0.0557192117, -0.089297466, 0.3242613971, -0.0514051318, 0.177875042, -0.0087672696, 0.1290720254, -0.3243991435, 0.3358860016, -0.1060932502, 0.0669693053, -0.2574531734, 0.1226831004, 0.2483443022, -0.0843654573, 0.5241107941, 0.4933414459, 0.0557750314, -0.007919563, -0.3167231381, 0.4300364852, -0.3185167611, -0.0990873724, 0.4587610662, 0.4184074998, -0.0552099645, 0.0967349485, 0.3463327885, 0.2058132738, -0.1845183522, 0.3874592483, -0.1901330054, -0.1893788874, 0.0983554795, 0.1140463948, 1.0056915283, 0.0209040344, 0.1967632771, -0.0363476425, -0.4171996415, -0.0878036618, -0.1630501598, 0.3706017435, -0.1769146025, -0.1923166662, 0.0185918547, -0.0688557103, 0.2651750743, 0.0302695222, -0.3834732473, 0.5674392581, 0.161033228, -0.2266101092, -0.0926406831, -0.1582126468, -0.140606612, -0.2820172906, -0.0994323567, 0.0154649932, 0.0581100136, -0.15246512, -0.240770787, 0.1642871946, 0.3962038159, -0.35484761, -0.5855565071, -0.0224850737, -0.3942810297, 0.1594371349, -0.1440714449, 0.1530201882, 0.0704855323, 0.5233252645, 0.1155358925, -0.0268229134, -0.1901286691, 0.0285176765, 0.4766495526, -0.0435876064, 0.0016900578, 0.0364157856, 0.1092404872, -0.1305305958, -0.3378486633, 0.2988408804, -0.1508523226, -0.0966786519, -0.293201834, 0.1758430749, 0.1369693726, 0.0506844223, -0.2225038558, 0.2744400501, -0.0636805668, -0.2475288957, 0.0486397296, 0.0369100012, -0.4689869881, 0.654280901, -0.5486725569, -0.168679297, 0.007155478, 0.1973306239, 0.0030325619, -0.1446200162, 0.2444827259, 0.2999680936, -0.023735119, -0.1971712261, -0.1212171316, -0.4443236887, -0.0850219876, -0.0212597307, 0.3350666463, -0.1141955405, 0.2037627101, -0.1973080933, 0.1267282069, 0.112292394, 0.013611652, -0.4640011489, -0.3002686501, 0.0259881001, 0.0194073841, 0.1499795765, 0.0022460604, 0.1353276372, 0.1626279354, 0.0826300979, -0.2359640002, 0.0879275873, -0.0734421685, 0.1371512115, 0.2372467369, -0.2229140848, -0.061926771, 0.1409916729, 0.0177726708, 0.3506113291, -0.300649792, -0.1103436947, 0.0441642441, 0.0941389576, -0.1622809619, 0.0090971431, 0.0983472168, 0.0576675087, 0.0028963056, -0.0053529842, 0.1868873388, 0.1672660112, -0.3175898492, 0.1289644688, 0.0337084159, 0.2249790281, 0.1565758288, 0.2435611784, -0.1932962984, 0.2854997516, 0.1126380935, 0.0922874659, 0.1190694571, -0.0250294693, -0.0114190709, -0.0004561426, 0.0224739332, -0.2408924699, -0.1208979562, -0.2099994123, -0.2908896506, -0.0929393545, 0.3533416092, 0.3665493131, -0.1636880934, 0.2602790594, 0.3331291378, 0.1632744968, -0.296860069, 0.0894979611, 0.0852283984, -0.1176999435, -0.1173400432, 0.3039805889, 0.2468137443, -0.3369475305, 0.1280224919, 0.0680533797, 0.264402926, -0.3203999102, -0.3003345728, 0.2181897312, 0.2322855741, 0.1148709878, -0.0566622689, 0.0166874062, 0.1003810167, 0.5405624509, -0.126354143, 0.221870929, -0.1442340016, 0.1424396485, -0.1031870991, -0.1945937723, -0.1662875265, 0.1563698649, -0.2756224275, 0.4519443512, -0.2314284295, 0.6587275863, -0.3951894641, -0.4038066268, -0.270919174, 0.4613659084, -0.2893259823, -0.3082679808, 0.0806008801, 0.0337608643, 0.0050714789, 0.0675614849, 0.1498344392, 0.0158939678, 0.5080647469, 0.1054997146, -0.0446046852, -0.1712996066, -0.2480781823, 0.1482361257, 0.0329272635, -0.2041101307, 0.3403044641, 0.394677192, -0.0350883789, -0.1126638055, 0.0304205343, 0.6076421738, 0.3532493114, -0.6928080916, 0.0780417249, 0.1227820069, 0.1445382684, 0.044223737, 0.1437962204, 0.2057188302, 0.3289968073, 0.098851718, -0.021801481, -0.0685778186, 0.0414157137, 0.1923012882, 0.2604734004, 0.0378934518, 0.1881128848, -0.0340930335, -0.2330763191, 0.0635786951, 0.0436090305, -0.6348345876, -0.0292899255, 0.4114500284, -0.4903601706, 0.088852644, 0.082701765, 0.0420089103, -0.0604563989, 0.3990844488, 0.0115336152, 0.3016093969, -0.2673701644, -0.1688441783, -0.5573810935, 0.0129775349, 0.1003671587, -0.0201995019, -0.1829353571, -0.1710310727, -0.0433932915, 0.271952033, 0.1712255031, 0.0828569233, 0.178449139, 0.7048639059, -0.6334086061, 0.3171172142, 0.2510334253, 0.1043804437, 0.2963539958, -0.3799832761, 0.1781571507, 0.0762076601, -0.027744567, -0.2803596854, 0.1965389848, -0.1178414747, 0.3687137663, 0.2799827158, 0.0656687245, 0.3750954568, -0.0018227184, -0.0076423963, -0.0902409106, 0.3053019047, 0.1900224388, -0.4532952905, 0.2929500639, 0.170844987, -0.5065389872, 0.070626609, 0.0487746932, -0.0507216677, 0.1662176996, -0.0040194476, -0.2534014881, 0.0329209194, 0.0087966397, 0.0715350062, 0.0729668438, 0.4877999723, -0.0563625768, 0.2883822322, -0.2061875015, -0.1364275217, 0.1566648036, -0.2487032413, -0.3022477925, -0.3512844741, 0.4295421243, -0.3348479271, 0.1113521382, -0.2448458225, -0.0816369578, 0.023803575, 0.0570963435, -0.6880540848, 0.3799360096, -0.3070555925, -0.6153403521, 0.108143732, -0.0409417711, 0.0843591616, -0.1582706422, 0.1082270145, -0.3347598612 ]
https://github.com/huggingface/datasets/issues/2067
Multiprocessing windows error
I was able to copy some of the shell This is repeating every half second Win 10, Anaconda with python 3.8, datasets installed from main branche ``` File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 287, in _fixup_main_from_path _check_not_importing_main() File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 116, in spawn_main File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 134, in _check_not_importing_main main_content = runpy.run_path(main_path, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 265, in run_path exitcode = _main(fd, parent_sentinel) raise RuntimeError(''' File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 125, in _main RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase. This probably means that you are not using fork to start your child processes and you have forgotten to use the proper idiom in the main module: if __name__ == '__main__': freeze_support() ... The "freeze_support()" line can be omitted if the program is not going to be frozen to produce an executable. return _run_module_code(code, init_globals, run_name, prepare(preparation_data) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 97, in _run_module_code File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 236, in prepare _run_code(code, mod_globals, init_globals, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 87, in _run_code _fixup_main_from_path(data['init_main_from_path']) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 287, in _fixup_main_from_path exec(code, run_globals) File "F:\Codes\Python Apps\asr\test.py", line 6, in <module> updated_dataset = dataset.map(lambda example: {'sentence1': 'My sentence: ' + example['sentence1']}, num_proc=4) main_content = runpy.run_path(main_path, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1370, in map File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 265, in run_path with Pool(num_proc, initargs=(RLock(),), initializer=tqdm.set_lock) as pool: File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\context.py", line 119, in Pool return _run_module_code(code, init_globals, run_name, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 97, in _run_module_code _run_code(code, mod_globals, init_globals, return Pool(processes, initializer, initargs, maxtasksperchild, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 87, in _run_code File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 212, in __init__ exec(code, run_globals) File "F:\Codes\Python Apps\asr\test.py", line 6, in <module> self._repopulate_pool() File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 303, in _repopulate_pool updated_dataset = dataset.map(lambda example: {'sentence1': 'My sentence: ' + example['sentence1']}, num_proc=4) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1370, in map return self._repopulate_pool_static(self._ctx, self.Process, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 326, in _repopulate_pool_static with Pool(num_proc, initargs=(RLock(),), initializer=tqdm.set_lock) as pool: File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\context.py", line 119, in Pool w.start() File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\process.py", line 121, in start return Pool(processes, initializer, initargs, maxtasksperchild, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 212, in __init__ self._popen = self._Popen(self) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\context.py", line 327, in _Popen self._repopulate_pool() File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 303, in _repopulate_pool return Popen(process_obj) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\popen_spawn_win32.py", line 45, in __init__ return self._repopulate_pool_static(self._ctx, self.Process, prep_data = spawn.get_preparation_data(process_obj._name) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 326, in _repopulate_pool_static File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 154, in get_preparation_data _check_not_importing_main() File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 134, in _check_not_importing_main w.start() File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\process.py", line 121, in start raise RuntimeError(''' RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase. This probably means that you are not using fork to start your child processes and you have forgotten to use the proper idiom in the main module: if __name__ == '__main__': freeze_support() ... ```
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 When using the num_proc argument on windows the whole Python environment crashes and hanging in loop. For example at the map_to_array part. An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
433
Multiprocessing windows error As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 When using the num_proc argument on windows the whole Python environment crashes and hanging in loop. For example at the map_to_array part. An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop I was able to copy some of the shell This is repeating every half second Win 10, Anaconda with python 3.8, datasets installed from main branche ``` File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 287, in _fixup_main_from_path _check_not_importing_main() File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 116, in spawn_main File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 134, in _check_not_importing_main main_content = runpy.run_path(main_path, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 265, in run_path exitcode = _main(fd, parent_sentinel) raise RuntimeError(''' File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 125, in _main RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase. This probably means that you are not using fork to start your child processes and you have forgotten to use the proper idiom in the main module: if __name__ == '__main__': freeze_support() ... The "freeze_support()" line can be omitted if the program is not going to be frozen to produce an executable. return _run_module_code(code, init_globals, run_name, prepare(preparation_data) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 97, in _run_module_code File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 236, in prepare _run_code(code, mod_globals, init_globals, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 87, in _run_code _fixup_main_from_path(data['init_main_from_path']) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 287, in _fixup_main_from_path exec(code, run_globals) File "F:\Codes\Python Apps\asr\test.py", line 6, in <module> updated_dataset = dataset.map(lambda example: {'sentence1': 'My sentence: ' + example['sentence1']}, num_proc=4) main_content = runpy.run_path(main_path, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1370, in map File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 265, in run_path with Pool(num_proc, initargs=(RLock(),), initializer=tqdm.set_lock) as pool: File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\context.py", line 119, in Pool return _run_module_code(code, init_globals, run_name, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 97, in _run_module_code _run_code(code, mod_globals, init_globals, return Pool(processes, initializer, initargs, maxtasksperchild, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 87, in _run_code File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 212, in __init__ exec(code, run_globals) File "F:\Codes\Python Apps\asr\test.py", line 6, in <module> self._repopulate_pool() File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 303, in _repopulate_pool updated_dataset = dataset.map(lambda example: {'sentence1': 'My sentence: ' + example['sentence1']}, num_proc=4) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1370, in map return self._repopulate_pool_static(self._ctx, self.Process, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 326, in _repopulate_pool_static with Pool(num_proc, initargs=(RLock(),), initializer=tqdm.set_lock) as pool: File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\context.py", line 119, in Pool w.start() File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\process.py", line 121, in start return Pool(processes, initializer, initargs, maxtasksperchild, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 212, in __init__ self._popen = self._Popen(self) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\context.py", line 327, in _Popen self._repopulate_pool() File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 303, in _repopulate_pool return Popen(process_obj) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\popen_spawn_win32.py", line 45, in __init__ return self._repopulate_pool_static(self._ctx, self.Process, prep_data = spawn.get_preparation_data(process_obj._name) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\pool.py", line 326, in _repopulate_pool_static File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 154, in get_preparation_data _check_not_importing_main() File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 134, in _check_not_importing_main w.start() File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\process.py", line 121, in start raise RuntimeError(''' RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase. This probably means that you are not using fork to start your child processes and you have forgotten to use the proper idiom in the main module: if __name__ == '__main__': freeze_support() ... ```
[ -0.1881469637, -0.3144048154, -0.0391352884, 0.1985248476, 0.1111998558, 0.004422795, 0.147380203, 0.0522425212, 0.0072061773, 0.1542068422, 0.038061697, -0.0369985178, -0.230133146, 0.004947972, -0.1641259193, -0.2017735839, 0.1229712963, -0.147796452, 0.1082703397, 0.3176006675, -0.4681928158, 0.470962137, -0.2818866372, 0.1857169867, -0.1982045323, -0.0535663925, -0.2812375426, 0.5518505573, 0.2289518118, -0.5014717579, 0.1033397987, -0.3695968688, 0.2053667456, 0.1928676963, -0.0001191628, -0.0957158282, 0.1240100935, 0.0172287133, 0.2794227004, 0.2258308381, 0.2599859536, 0.0434033573, 0.0091181677, -0.022887798, 0.2111762166, 0.2333109677, 0.0288527925, -0.1462765634, 0.4757121503, 0.1996723413, 0.0683801547, 0.1587360203, 0.1223480105, -0.0179201737, -0.3447394371, -0.2424110025, -0.0074871224, 0.2551129162, 0.4874382913, -0.3183254898, 0.22098656, 0.1477994621, -0.2789090574, 0.0836963579, -0.4995911419, 0.0385396928, 0.6404625177, -0.5573275089, 0.0123132635, 0.0039335764, -0.1371412426, -0.1722595394, 0.1412514448, -0.0714390501, 0.2048699111, -0.8496661782, -0.0566576868, 0.2238096446, -0.4533597231, 0.0700572431, 0.037613444, 0.1382519156, 0.0211227015, -0.1229697615, 0.1787127852, 0.0480569601, 0.024106767, 0.2137414217, 0.2611124218, 0.256898433, -0.2901442945, 0.3060055375, -0.1656567901, 0.1110760495, -0.5593209267, 0.0435665585, -0.0875907093, 0.1395756602, -0.2603894472, -0.0911269784, -0.1450669765, -0.0010928957, 0.2437377274, 0.1224617437, 0.1643801332, -0.2249251604, 0.0162754152, -0.5754623413, 0.0762995854, -0.3193160295, -0.0192710366, -0.0631262287, -0.0396312997, -0.543381393, 0.1638689786, 0.4754502475, 0.3127378225, -0.0908291489, -0.4087653756, 0.004649512, 0.054897394, 0.1591065973, 0.326302439, 0.378549546, 0.2375258803, 0.6493282914, 0.1164665669, 0.300868094, -0.4983568192, 0.2498871684, 0.1055263057, -0.0099148406, -0.2646822631, 0.2840289772, 0.2015824318, -0.1050170287, 0.1919120252, 0.0913679078, 0.2648685277, -0.1933915168, -0.0548239313, -0.1775240749, -0.1875754595, 0.2483476549, 0.1039775088, 0.2727549672, 0.0782229155, 0.0614006445, -0.0588396639, 0.1217048168, -0.2332019806, -0.3323021531, -0.2908738852, 0.0487952903, 0.3455984592, 0.4107143283, 0.3590711951, -0.182698682, 0.3697880507, -0.1141112521, -0.1149107888, -0.3369793892, -0.3605933487, -0.2536897659, 0.0559893698, 0.3577571511, -0.0117118824, 0.2625142038, 0.1336178631, -0.0234014187, 0.1730085015, 0.2555247545, 0.1529279053, -0.0441391133, -0.1599848568, -0.18454054, -0.2531806529, -0.4692431092, 0.2813511789, -0.0531996079, -0.0947239324, 0.0144146457, 0.2635253966, -0.0924058259, 0.084141463, -0.3598732054, 0.41037637, -0.1397635937, -0.0000293373, 0.1564002484, -0.2134259939, -0.0189384669, -0.2104979903, 0.1580798775, -0.1415790915, -0.1717149913, -0.1469047666, -0.0887725502, 0.2672272623, 0.1323044896, 0.0029337909, 0.2626314759, 0.3290075362, -0.0504727401, 0.0705114305, -0.2354251593, -0.1410969794, 0.1449599415, -0.0926916227, 0.0614890903, 0.2999999821, 0.2150603235, 0.1844713092, 0.2884707451, -0.2682781219, -0.3507544398, 0.0538340174, -0.0101501802, 0.1759853363, -0.1773450822, 0.0131454282, 0.5986759663, -0.1233624741, 0.0136166997, -0.2358871251, -0.1150439084, -0.3619884849, -0.2789750993, -0.0103397192, 0.3257577419, 0.1760945022, 0.0544387624, 0.1365504414, 0.2462070286, 0.1490508914, -0.1596981883, -0.1565380543, -0.1665806472, 0.1694267243, -0.2053367943, 0.1545628011, 0.062582314, 0.0926792994, -0.2570309043, 0.4300043583, 0.0516273938, -0.0339031816, 0.3756660819, -0.0890956149, 0.1873248667, 0.1525296867, -0.0126632284, 0.218852371, 0.1479421407, 0.34595263, 0.169201985, 0.1437894702, -0.4511528611, -0.1519183069, 0.1961426586, 0.2103531659, 0.0790236518, -0.1222665608, 0.1141887307, -0.1815056801, 0.1832984984, -0.0153747909, -0.1870621443, 0.7362312078, 0.0474281982, -0.1104165688, 0.2805093825, -0.4284941554, -0.0939545557, 0.3900580108, 0.0612931028, 0.2331196368, 0.1693287492, -0.1249574646, -0.0459338725, -0.0291668456, -0.2392556071, -0.0362742916, 0.0800577179, -0.3402798176, 0.0612631291, -0.0924090594, 0.496922344, -0.4114158452, -0.4017823935, 0.0227533374, -0.1363876015, -0.0535735078, 0.4672954082, -0.1314400733, 0.0236185882, -0.0362696648, -0.0113859894, 0.0388441496, 0.3347731233, 0.1567796618, -0.0217870884, -0.0881471857, -0.0752069131, 0.3987683654, -0.0621618293, 0.2075350434, 0.2854366899, -0.0574675836, 0.2356502861, 0.0421253331, -0.035681352, 0.0262667891, 0.3805267215, 0.0301338248, 0.1732633263, 0.1848588735, -0.5782222748, 0.1626750529, -0.1635520309, 0.1181735247, 0.1189882755, 0.0275813285, -0.4057866931, -0.1938904226, -0.0397477224, -0.4883069992, -0.296564281, 0.0322540887, -0.0325807184, 0.1934853941, -0.0064603658, 0.100311704, 0.149527669, 0.0736577213, -0.1381518841, -0.1220572516, 0.0768523216, -0.0614769496, -0.223935917, -0.0487261675, 0.0344488099, 0.0997959375, 0.0538101308, -0.2458164096, -0.1084739938, -0.2988759875, -0.1147124022, 0.0434825569, 0.0423186459, 0.2140589654, 0.464648366, 0.2451157719, -0.1603370756, 0.1172706261, 0.0354303345, 0.1138500124, 0.0141473813, 0.1571186334, 0.1290083677, 0.0388406776, -0.2746427953, 0.5560706854, 0.7195619941, 0.0079732873, 0.2117629349, 0.1725874096, 0.1281336546, -0.0888725519, -0.2836920321, 0.0189997684, -0.3320361972, -0.0475187227, 0.1152628213, 0.1190856174, -0.1943729818, -0.2258571982, 0.2984494567, -0.3609918058, -0.2144329548, 0.0913128033, -0.0031271437, 0.1068488955, -0.2871645093, -0.0014673157, 0.0885586888, 0.0902058557, -0.1638023555, 0.2348214686, -0.2531651855, -0.3102205098, -0.2806431651, -0.497441411, -0.4011016786, 0.3255933523, 0.1121690422, 0.5273087621, 0.0384406671, -0.1809525341, -0.0801849216, -0.2546064258, 0.9073623419, -0.2285796106, -0.2365728766, 0.2589763403, 0.3240387738, -0.0839824751, -0.1596128643, -0.1857511103, 0.2760498524, 0.1724246889, 0.0037935998, 0.1194252968, -0.1872322559, 0.122239314, 0.0239310935, -0.1323913485, -0.0503413044, -0.3534941673, -0.3537783921, -0.1054335386, 0.195289135, -0.0393824466, 0.0809380114, -0.5451444387, -0.0410293974, 0.1071585417, -0.065164037, 0.1058614329, 0.0425304025, 0.093570739, -0.0367013663, 0.4184161127, -0.270512253, 0.2269547135, -0.1325387806, 0.1020640358, -0.2310526967, -0.0111669069, 0.1763536781, -0.0593629889, 0.3624847829, 0.4911206067, 0.1173728928, -0.0381041914, -0.3317424357, 0.4632002711, -0.2424948514, -0.2325073928, 0.3120749593, 0.2526543736, 0.0963162184, 0.3037537932, 0.2620723248, 0.0120329252, -0.132122308, 0.6690810919, -0.2865628302, -0.1309685409, 0.0915624201, 0.2670031786, 0.9803851247, 0.0002802034, 0.1036660373, 0.1353646517, -0.3450928628, 0.0168709941, 0.1485296637, 0.2275096327, -0.2147375643, -0.0921180919, 0.1534197479, -0.06922438, 0.2798222899, -0.1486621946, -0.330634594, 0.2778286636, 0.1979101002, -0.2983662486, -0.108846046, -0.1559793651, -0.0305138696, -0.3870221078, 0.1118127853, 0.0050122333, 0.0803062022, -0.0226952843, -0.24182266, 0.1473936141, 0.4167763591, -0.3222225904, -0.5853481293, 0.0799791142, -0.2500568032, 0.0987984464, -0.1064630076, 0.078999579, -0.0206885021, 0.2738598883, 0.2924274802, -0.1586725563, -0.1383258402, 0.059691716, 0.3177008331, -0.1067115217, -0.0287849307, -0.183861196, -0.0780218989, -0.0452291295, -0.3501316309, 0.217163682, -0.1274766028, 0.0402388982, -0.2360640913, 0.3128056824, -0.0060311733, 0.2374045402, -0.1692706943, 0.3972185254, -0.1280944943, -0.1625915617, 0.079238385, -0.0392376035, -0.4698781669, 0.5655831099, -0.6352737546, -0.1246339232, 0.068498984, 0.0431926474, 0.0512159094, 0.0985021591, 0.3221235573, 0.2966789901, -0.0124750119, -0.2109617293, -0.1122625694, -0.5198853612, -0.1286489069, -0.1232336238, 0.4179424942, -0.1153104976, 0.2454810292, -0.3513736129, -0.055073645, -0.0755426958, -0.067629002, -0.4756989479, -0.0865643993, 0.044637654, -0.2182351351, 0.0746469796, -0.144028917, 0.2000203729, 0.0788339302, 0.1162854582, -0.2453023791, -0.0192251559, -0.1059379056, 0.1291174591, 0.0657599494, -0.2747893333, 0.0525422916, 0.1484899968, 0.0116023133, 0.2926318645, -0.2524474859, -0.1338890195, 0.0612612814, 0.0983059555, -0.1529421806, -0.1397015303, 0.2024434656, 0.0376422368, 0.0320358463, -0.0035299507, 0.0384983048, -0.028225068, -0.1952828467, 0.0285115987, -0.0443939976, 0.3265426755, 0.1590437144, 0.2606515288, -0.1510516554, 0.3736737967, 0.1364551336, 0.0730977282, 0.0131398253, -0.0461715534, -0.1199255064, -0.056860175, -0.107841678, -0.048093766, -0.0949113294, 0.0458894521, -0.3931428492, -0.315041393, 0.13229011, 0.5207764506, -0.0906364471, 0.2684802413, 0.3860577643, 0.151711911, -0.1997999698, 0.1071868837, -0.0923591852, -0.2328289002, -0.1368255168, 0.3245011568, 0.0644399673, -0.5508657098, 0.4770566225, 0.0695957169, 0.3834378719, -0.3326543272, -0.1584961712, 0.3198783696, 0.3208471239, 0.03784886, -0.0150569482, -0.0915638283, 0.2071586251, 0.4593248665, -0.1311325878, 0.2014142275, -0.323877573, 0.1578858048, -0.0896208212, -0.2398293912, -0.1102289036, 0.1657066196, -0.1913157403, 0.2936511636, -0.1899564564, 0.4689156115, -0.5960273743, -0.3746604323, -0.3592117131, 0.3930901885, -0.1336378306, -0.1862936765, -0.10753645, 0.088694565, 0.1282712668, 0.08796864, 0.301933527, -0.108581394, 0.6149497628, 0.1113221496, -0.2190861106, -0.1736542583, -0.3851725459, 0.2245024145, -0.009377894, -0.1311014742, 0.3541277349, 0.6124846339, -0.065493539, -0.2977389693, 0.1973143965, 0.5848488808, 0.4469045401, -0.6962713003, 0.1449214518, 0.1227995977, 0.112657696, -0.0131664602, 0.1467434615, 0.1020412669, 0.1914798766, 0.0405679196, 0.0253951978, -0.0716053694, -0.101507917, 0.3518776894, -0.0269626155, 0.1627118737, 0.1804662645, -0.1023852602, -0.1577704996, 0.1136826575, 0.1008242145, -0.6489604712, 0.1941168755, 0.23407574, -0.5234288573, 0.0135805197, 0.1275424063, 0.0488934554, -0.1051837131, 0.4409927428, -0.0385624729, 0.2765519917, -0.2048592716, -0.2142631114, -0.3133779466, -0.1079991162, -0.1254136711, -0.0537105985, -0.1895312369, -0.0621600524, 0.0386295803, 0.2744992673, 0.0273519885, 0.1042201445, 0.2254253179, 0.6995901465, -0.6562346816, 0.183200106, 0.3876356184, 0.0067532919, 0.2149623334, -0.4983592629, 0.1673815697, 0.1196629778, -0.0029623585, -0.0181072168, 0.230674386, -0.1568348706, 0.1118388623, 0.2074947953, 0.1057581455, 0.0867728293, 0.01408544, -0.2020222247, -0.1171707436, 0.2525693774, 0.2592408061, -0.3225485384, 0.3469713926, 0.0999830663, -0.4285967052, -0.1827362031, -0.0377775989, -0.087067917, 0.1813718826, 0.1660645604, -0.1305915415, 0.0330277085, 0.0607888289, 0.1322130561, 0.0492532253, 0.3977867961, -0.0349066257, 0.2151016146, -0.2833605409, -0.0456229858, 0.1644548029, -0.1422146708, -0.217193082, -0.2530260682, 0.3797124028, -0.4996718764, 0.2078316361, -0.2136391401, 0.0040059416, -0.0160127841, -0.0012639107, -0.5598609447, 0.3290333152, -0.1534709036, -0.7110199332, 0.066774264, -0.0996053666, 0.1139260158, -0.1034515202, 0.2528046072, -0.049463626 ]
https://github.com/huggingface/datasets/issues/2067
Multiprocessing windows error
Thanks this is really helpful ! I'll try to reproduce on my side and come back to you
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 When using the num_proc argument on windows the whole Python environment crashes and hanging in loop. For example at the map_to_array part. An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
18
Multiprocessing windows error As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 When using the num_proc argument on windows the whole Python environment crashes and hanging in loop. For example at the map_to_array part. An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop Thanks this is really helpful ! I'll try to reproduce on my side and come back to you
[ -0.1506280601, -0.4665437937, -0.0850918368, 0.2313074768, 0.0865276307, 0.0101604424, 0.0336138345, -0.030732628, 0.0230881274, 0.2842901349, 0.1215856373, 0.0667374209, -0.3062892556, 0.0160494726, -0.1941300482, -0.1727217436, 0.0984338149, -0.1465356797, 0.2517451942, 0.3242733777, -0.4602842927, 0.486584872, -0.3101289868, 0.1724269986, -0.4106288254, -0.0460812598, -0.2003932744, 0.4842281044, 0.2549556494, -0.3877051175, -0.0000804214, -0.3113578856, 0.1509666443, 0.1404421926, -0.0001155468, -0.1447125524, 0.0140569406, -0.015594596, 0.3914158642, 0.2356812656, 0.174770996, 0.0154112894, -0.0930724815, -0.0278625861, 0.1327624321, 0.2751017213, 0.0475340597, 0.0036516115, 0.4036991894, 0.3019194305, 0.1590740383, 0.2588335872, 0.1020686403, 0.0435885563, -0.320417434, -0.3896212876, -0.0509017743, 0.2563922107, 0.5162351727, -0.2866716385, 0.1748639643, 0.2624702752, -0.2407963276, 0.0373887755, -0.3169421256, -0.0094364248, 0.4316335022, -0.5044820905, 0.0530502759, -0.0857312754, -0.0860015303, -0.1723191291, 0.3172115088, 0.1498870403, 0.1057222858, -0.8734205961, 0.0373718254, 0.2236955017, -0.3608475626, 0.0636081696, -0.07681676, 0.0004866832, -0.0733843595, -0.2057021409, 0.1064753383, -0.0420248769, 0.0588757545, 0.1621665359, 0.1567881405, 0.2581143677, -0.2660811543, 0.3123067915, -0.0895461589, 0.0824717209, -0.5067333579, -0.0130569572, 0.0244877264, 0.2107515037, -0.2819762528, -0.2238518894, -0.0398795903, 0.1608052999, 0.2515885234, 0.1812390834, 0.208753556, -0.1637963802, 0.0577953048, -0.5973331332, 0.2277555615, -0.4697575569, -0.1418825686, -0.0908492953, 0.0590578318, -0.5761100054, 0.3017514944, 0.4158445895, 0.1878654361, -0.1029669866, -0.3051145971, 0.227917403, 0.0387920886, 0.2444171906, 0.2676872611, 0.3037414551, 0.3295404315, 0.670365274, 0.0046983799, 0.1355356872, -0.5587138534, 0.1353851557, 0.0535593741, 0.0962220058, -0.3082457781, 0.1239418685, 0.269467026, 0.0077627972, 0.1641472131, 0.1423988044, 0.2745954096, -0.3172971904, -0.0431895703, -0.2245991975, -0.1705032289, 0.2402048111, 0.2170297503, 0.1954390705, -0.0491466708, 0.0771686211, 0.0033317849, 0.2177007347, -0.3714391887, -0.3710876405, -0.0780069381, 0.0910401866, 0.4564349651, 0.4124156535, 0.2775188982, -0.041483555, 0.2997340262, -0.2898954749, -0.1395448446, -0.4417795539, -0.2753019929, -0.302867651, -0.0770638213, 0.2549556196, -0.0138914343, 0.3129973412, 0.3275542259, -0.0539209433, 0.1966924667, 0.3646477163, 0.2357976884, -0.2295789719, -0.0765284374, -0.0154182203, -0.1692053527, -0.2164344043, -0.0256465003, 0.1248806715, -0.0502494946, -0.1582027078, 0.2369344234, 0.139684841, -0.0421049744, -0.325414449, 0.473393172, -0.1873984337, -0.1380389035, 0.2417535484, -0.2508319616, 0.1379859298, -0.0901918188, 0.0746410117, 0.0785963014, -0.13082093, -0.0758596286, -0.091382347, 0.2532752752, 0.1211821809, -0.0288549475, 0.3372826874, 0.1698219478, -0.0188712534, 0.0452158488, -0.3747882545, 0.0022796404, 0.0269342158, -0.2805189192, 0.0384884588, 0.3604874909, 0.1296921968, 0.1333180368, 0.2604677677, -0.1930644363, -0.2732436061, 0.0716793463, -0.0973807722, 0.0637127683, -0.2018378377, -0.0118379202, 0.4987513721, 0.0421448387, -0.1541188806, -0.1427766383, -0.0749819279, -0.3986950815, -0.3253807127, -0.0215556845, 0.3518846333, 0.2070238143, 0.1487413198, 0.1229823828, 0.2170088142, 0.0977164134, -0.1447273046, -0.1434540153, -0.0267220382, 0.2210912704, -0.2565096319, 0.0919930935, 0.0154685713, 0.1554855555, -0.2237292826, 0.4834907353, 0.0780260786, -0.0517862216, 0.2152552903, -0.1356081814, 0.1757027656, 0.1661111414, 0.026872227, 0.2828973234, 0.2699865103, 0.3601721525, 0.1210277826, -0.0984190032, -0.3358145356, -0.3411460221, 0.0787209049, 0.2047638893, 0.185631156, -0.0494340174, 0.0344516039, -0.1975597292, 0.1480880976, -0.0296657085, -0.4081710577, 0.660849154, 0.129035458, -0.1238790676, 0.2897003293, -0.4168241322, -0.128676489, 0.2691907585, 0.0189802591, -0.048523616, 0.1837822497, -0.1021907255, -0.1305871308, -0.0627081469, -0.0959939882, -0.0835923031, 0.0905503258, -0.3112030029, 0.0754135251, -0.0683126822, 0.4818834066, -0.388174504, -0.484944731, -0.0363851488, -0.2010948211, 0.0933721289, 0.3769925833, -0.0660399497, -0.0369546153, 0.0639788881, -0.0753777847, 0.1353934854, 0.3412626386, 0.2241436839, -0.0824956372, -0.0757007897, -0.0427120775, 0.354369998, -0.1073639691, 0.2451779693, 0.3000584543, -0.008039427, 0.1237865239, 0.1547086835, -0.0708741918, 0.0497368947, 0.2546123862, -0.0004117981, 0.1000181586, 0.1898931116, -0.401451081, 0.0981203243, -0.3271224201, 0.2163941115, 0.2593772113, 0.1389707774, -0.3894451559, -0.2654178739, -0.1531650871, -0.4650590718, -0.1933444142, 0.0158450175, -0.1655588001, 0.2833057046, -0.2524058223, 0.0624522083, 0.1090329811, 0.3357042074, -0.1297421604, -0.1685181111, 0.220090121, -0.0323099867, -0.3071314692, -0.2082278877, 0.2030306756, 0.2279911339, 0.0628898591, -0.247068733, -0.1562494487, -0.3293304145, -0.015441413, -0.0187922362, -0.0382837355, 0.2496669143, 0.3877027333, 0.1706473231, -0.1693151146, 0.136919409, -0.0877076015, 0.0343708098, 0.0354771763, 0.1656460464, 0.223489359, 0.094200179, -0.1743259728, 0.4798260033, 0.5712581277, 0.0682215169, 0.2840141058, 0.1166627705, -0.027975915, 0.0197366737, -0.1986923516, 0.1041680947, -0.4029534459, -0.1182694361, 0.162243858, 0.1221753359, -0.3131994605, -0.2602486908, 0.2312445641, -0.2988221645, -0.1110460833, 0.089305222, 0.0715151504, 0.1665275842, -0.1911997944, -0.1086432785, 0.0748670772, 0.0724367872, -0.1262528449, 0.1831800938, -0.2587578595, -0.2337904721, -0.0494501777, -0.5941671729, -0.4766450226, 0.4101197422, 0.1082499176, 0.5226663947, -0.0082318913, -0.1149530783, -0.0176294912, -0.2964189351, 0.8070997, -0.1431355774, -0.1830292046, 0.2115638107, 0.2090343535, -0.009849689, -0.1221251562, -0.2269453108, 0.299633652, 0.1128149703, -0.0601763651, 0.251370728, -0.0667589381, 0.0676043406, -0.1073212326, -0.1688713878, -0.1165624112, -0.3311616182, -0.2884025872, 0.0485688634, 0.2625977695, -0.0126282945, 0.0332488604, -0.4210148156, -0.0191501025, 0.1351579726, -0.0685682595, 0.2947754264, -0.0726623833, 0.1175691932, -0.1421973854, 0.1428372413, -0.2732449174, 0.3675435185, -0.1351263672, -0.0144854719, -0.1890774965, 0.1965273023, 0.2784041762, -0.1102425903, 0.3729202747, 0.3814232349, 0.1360356808, 0.0135942325, -0.3704011142, 0.4939799309, -0.2452189028, -0.2091412246, 0.3325050175, 0.2664667368, 0.0814801827, 0.2649816275, 0.3170451224, 0.1260361373, -0.0922468826, 0.4775734246, -0.3215060532, -0.0968961492, -0.0289772358, 0.143421188, 0.9238147736, 0.0846896321, 0.1080945805, 0.0120655457, -0.4905240536, -0.2325475961, -0.1703151762, 0.3275728524, -0.2693823576, -0.1481324136, 0.0304517429, -0.0382661149, 0.1322236806, -0.1053470969, -0.3409649432, 0.4729430974, 0.0977984518, -0.2913331985, -0.1794243008, -0.2355451137, -0.0740177035, -0.1805985272, 0.0021825617, 0.0786175579, 0.078355886, -0.1448470354, -0.2679341137, 0.1346341372, 0.4491717219, -0.3302661479, -0.4855585694, -0.01716391, -0.199010089, 0.1551017165, -0.0552149564, 0.1623105556, 0.0668271631, 0.381066978, 0.153916046, -0.0829823017, -0.2485066205, 0.0191288237, 0.392786324, -0.0478605777, -0.1105952412, 0.0463194214, -0.0188991036, -0.1503203362, -0.2896610498, 0.3926055133, -0.1228487566, -0.01403616, -0.3258325756, 0.3156884611, 0.0910600796, 0.1713144928, -0.1278263181, 0.2440664172, -0.1244299337, -0.167726621, 0.1221420541, 0.0498552583, -0.529466033, 0.652123034, -0.5616601706, -0.0932946876, 0.0055157766, 0.0684648007, 0.0146985939, -0.0557596534, 0.1593243629, 0.2714972198, -0.1028343588, -0.2303350121, -0.1057636663, -0.4670142531, -0.0551306605, -0.0359920934, 0.4547641277, -0.1424974203, 0.2489062995, -0.2128924131, 0.058394894, 0.044528164, -0.0247208159, -0.3333128393, -0.2252675593, -0.0753392354, -0.0825655013, 0.1531942636, -0.0569255725, 0.0920920223, 0.1099375784, 0.0790005922, -0.2915714085, 0.0473883487, -0.2277820855, 0.1002139151, 0.0793202966, -0.2663448751, -0.0975295529, 0.2109729797, 0.064060688, 0.3459067345, -0.3506190777, -0.1485282183, 0.0790710375, 0.0717254058, -0.0964207873, -0.0437675342, 0.0798891038, 0.0856897086, 0.0290151872, 0.075072296, 0.1441147327, 0.0900889337, -0.2854033411, 0.1194536164, -0.0502446145, 0.2043407857, 0.1899692714, 0.2846991718, -0.166685611, 0.3932848871, 0.1064694077, 0.0063477391, 0.052351594, -0.0321252234, -0.0687170699, 0.0561645105, -0.0845434517, -0.2393333316, -0.1015349701, -0.1130247489, -0.2827161252, -0.10894005, 0.2826985717, 0.2960801125, -0.1647984087, 0.2869271636, 0.2995325327, 0.2278230786, -0.2148745507, 0.0480528213, -0.1478601843, -0.1248632818, -0.1360429227, 0.2684839666, 0.1823747754, -0.4664897025, 0.312474072, 0.0706093833, 0.1849167347, -0.4060259163, -0.367487371, 0.0782565847, 0.2264862806, 0.1041753814, 0.0287757851, -0.0863822773, 0.0567869805, 0.4952467382, -0.0511147752, 0.1885723025, -0.2259837538, 0.077554673, -0.1170276776, -0.1709322184, -0.2531667352, 0.0921375006, -0.3694229126, 0.425057143, -0.2324756533, 0.4461492896, -0.5816575289, -0.3129300773, -0.3135752082, 0.4110397696, -0.2617024779, -0.124956198, 0.1012548953, 0.0115748653, 0.1034584716, 0.0849339664, 0.3099182844, 0.0889206678, 0.5263202786, 0.2262044996, -0.0824889094, -0.0340428315, -0.2684047222, 0.2271324694, -0.0195573904, -0.1974031627, 0.1882002354, 0.4959089756, -0.047025688, -0.1721443534, -0.0020354183, 0.5398037434, 0.3772578239, -0.7378939986, 0.0080807637, 0.1601222605, 0.1459165066, 0.0435484126, 0.1561665386, 0.1998275369, 0.2554305494, 0.0483391583, 0.0203678627, -0.1242483333, -0.0045733727, 0.2641783357, 0.2241326272, 0.1128836721, 0.2446006685, -0.0508270077, -0.2304032445, 0.0460797586, 0.0731755421, -0.6401627064, -0.0241284929, 0.2348126918, -0.394169718, 0.0507938564, 0.0399317816, 0.0669417903, -0.0753959417, 0.410522759, -0.0549464561, 0.251281172, -0.2637571096, -0.1587159038, -0.3679076731, 0.0130186072, 0.152479589, -0.0102240127, -0.1938030273, -0.1669089645, -0.0689597279, 0.1117750406, 0.0863856003, 0.0976390988, 0.3191108406, 0.6845180392, -0.6055822968, 0.3746796846, 0.3027549386, -0.025377458, 0.2710235715, -0.3583440483, 0.2116040885, 0.0212005116, 0.063630037, -0.2255444527, 0.2101655006, -0.1030673906, 0.473442018, 0.1819058359, 0.0485290363, 0.2563316524, 0.0007864179, -0.0625470057, 0.1206359267, 0.351719141, 0.2666044831, -0.5823000669, 0.2764894366, 0.083306253, -0.3627558649, -0.0619934127, -0.026734421, -0.0161338616, 0.0667216554, 0.1025723442, -0.1087252051, 0.0047640163, -0.0050736349, 0.0412030146, 0.0413464718, 0.4595137239, 0.0127108758, 0.2037227303, -0.274513483, -0.0162325837, 0.0923330337, -0.061656516, -0.3161554039, -0.3100217581, 0.5059924722, -0.5154701471, 0.1332809478, -0.0898826197, -0.0787976384, -0.0806526244, 0.0168790445, -0.6610686779, 0.270857513, -0.3067219555, -0.6747819781, 0.1371153891, -0.1630326807, 0.1835549474, -0.0199977737, 0.2053032368, -0.1706857681 ]
https://github.com/huggingface/datasets/issues/2067
Multiprocessing windows error
if __name__ == '__main__': This line before calling the map function stops the error but the script still repeats endless
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 When using the num_proc argument on windows the whole Python environment crashes and hanging in loop. For example at the map_to_array part. An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
20
Multiprocessing windows error As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 When using the num_proc argument on windows the whole Python environment crashes and hanging in loop. For example at the map_to_array part. An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop if __name__ == '__main__': This line before calling the map function stops the error but the script still repeats endless
[ -0.1108911186, -0.4392868578, -0.0885382891, 0.2090214342, 0.0622632839, 0.0388560779, 0.005569844, 0.0343123823, 0.1305547655, 0.3507120311, 0.1845918596, 0.1130339652, -0.2703491449, -0.0625601634, -0.1630699337, -0.0991827175, 0.0958347321, -0.0558622554, 0.2845199704, 0.3060236871, -0.5200815797, 0.4720442593, -0.3290193379, 0.1505486369, -0.3321792781, -0.0268693119, -0.1273716986, 0.4326405823, 0.2777259052, -0.4478852153, -0.0330370031, -0.309070766, 0.1182404459, 0.1131975055, -0.0001193809, -0.1579202563, -0.014200869, -0.0612702183, 0.4552113116, 0.1623017788, 0.1796986014, 0.0962326899, -0.1407279968, -0.1364836246, 0.2132925838, 0.3244242668, 0.1180418804, -0.0536645725, 0.402844131, 0.2655664086, 0.1118751243, 0.2055491805, 0.0939192697, 0.075423874, -0.2695279717, -0.3726019561, -0.0564220957, 0.2890228629, 0.5033327341, -0.3820001185, 0.1414164901, 0.3143700063, -0.3030370176, 0.0375135019, -0.2931311131, -0.0640663058, 0.5305413604, -0.5780696273, 0.0976732895, -0.1105159745, -0.170949921, -0.2201831341, 0.3771388829, 0.1610390693, 0.0507416837, -0.8099096417, 0.0275960695, 0.1364709586, -0.4156236351, 0.0305884071, -0.1491325945, 0.0135829523, -0.0268382356, -0.1467836499, 0.0975086465, 0.0018119015, 0.0674112216, 0.2221698016, 0.2512000799, 0.2676577568, -0.3172385693, 0.300219506, -0.0685029104, 0.1161158681, -0.4423089027, -0.0357517488, 0.0773452967, 0.1887773573, -0.2333675325, -0.2691735625, 0.0109954402, 0.1386382878, 0.2498510033, 0.2138967067, 0.2139113694, -0.1912620515, 0.1267625839, -0.6191260219, 0.2186708301, -0.4347948432, -0.1045145839, -0.0480079912, 0.0685981959, -0.5401849747, 0.3463866115, 0.4573228061, 0.2797252238, -0.1079147905, -0.2896054685, 0.2956328094, 0.0119032087, 0.2019830644, 0.257234931, 0.3027791083, 0.3510759175, 0.6872227192, -0.0302589722, 0.0749520436, -0.5382585526, 0.1709014922, 0.1013112292, 0.1404787451, -0.3260930479, 0.1511102617, 0.25566113, 0.066332899, 0.1399949491, 0.0715279132, 0.264660418, -0.3194343746, -0.1016469598, -0.2185527384, -0.0239281841, 0.2193689197, 0.1559510231, 0.2279541045, -0.0514832623, 0.0751156434, -0.0280018486, 0.2288476229, -0.3791948259, -0.3146424294, 0.0056254673, 0.0608849227, 0.4742710888, 0.4800148606, 0.3062348962, -0.0977226719, 0.2995286584, -0.3837094903, -0.0615887456, -0.4407129586, -0.3253920972, -0.3349105418, -0.1095619425, 0.3342870474, 0.0165767781, 0.3336036503, 0.3500513136, -0.0059901499, 0.1059107035, 0.2597665191, 0.2196131051, -0.2469084114, -0.1390855461, -0.0079354299, -0.1682925522, -0.1990411133, -0.0274675377, 0.1558072567, -0.0895252228, -0.1395352483, 0.2032588273, 0.0898368508, 0.0090120463, -0.3770284653, 0.4743018448, -0.2610338926, -0.1601284444, 0.223311156, -0.1887080669, 0.1628858298, -0.0973650515, -0.0018648097, 0.047679849, -0.0739371628, -0.046098955, -0.0943076015, 0.2538556755, 0.14620772, -0.0373492241, 0.2930856645, 0.1426820457, -0.0440982804, 0.0412538089, -0.3803650141, -0.0369584076, 0.0419530086, -0.2586921155, -0.0318136364, 0.2738762498, 0.110066101, 0.1533838212, 0.2823153436, -0.1785801351, -0.1833350509, 0.0399044603, -0.0801845938, 0.0570305735, -0.2264944762, -0.0417506024, 0.370015949, 0.0136444299, -0.1833050698, -0.1689891219, -0.1147307009, -0.3820261061, -0.3083173633, -0.062765345, 0.3502776921, 0.2317864448, 0.0970026702, 0.089068003, 0.2348301113, 0.1195781752, -0.1474682391, -0.1531675756, 0.0274253488, 0.1904616356, -0.2588331699, 0.0580979623, 0.071312204, 0.1849043816, -0.2433963865, 0.4806241393, 0.0638302937, -0.031793192, 0.2943505049, -0.140533343, 0.163242057, 0.110121645, -0.0063844267, 0.2178633511, 0.1491161287, 0.3250451386, 0.1516057849, -0.0632993728, -0.3150222898, -0.284545064, 0.0527503341, 0.2794162631, 0.123037748, -0.0862114206, -0.0113486256, -0.1456187665, 0.1935887784, -0.0329520926, -0.4224092662, 0.6393158436, 0.0958267376, -0.1360432208, 0.2696191072, -0.4196718335, -0.1150873676, 0.2420000881, 0.0387355722, 0.0164450835, 0.1887710392, -0.1815695614, -0.1324128062, -0.0871770605, -0.1970656663, -0.0816426948, 0.0346396454, -0.2595417202, 0.0612710379, -0.0489790477, 0.496819824, -0.3601054549, -0.4657548368, -0.042757947, -0.1918396652, 0.0447609127, 0.4225376546, -0.0910360515, 0.0003685632, 0.0483648963, -0.0752308443, 0.1253621131, 0.208310023, 0.1887217909, -0.1300219893, -0.0176638141, -0.0903125033, 0.4238032401, -0.2149708569, 0.2365712821, 0.2388012558, -0.0360355861, 0.0988384411, 0.1630552709, -0.0131028788, 0.0243317056, 0.1573210359, 0.0540885814, 0.1723266989, 0.1641873866, -0.3335531354, 0.0946282446, -0.4251778126, 0.2039516866, 0.2498654723, 0.1348346621, -0.4796755612, -0.3031041324, -0.1587503105, -0.3429667652, -0.2128160447, 0.0812860429, -0.179417178, 0.3070076406, -0.3042921424, 0.1231354997, 0.0839881003, 0.2612294853, -0.1630326957, -0.2192546129, 0.2409311235, 0.0028171772, -0.2471590936, -0.1566562355, 0.2460526228, 0.1974767447, 0.0351047888, -0.1808269471, -0.1518910974, -0.33172068, 0.0068321074, 0.0114254989, -0.0081771463, 0.2596696913, 0.4391315281, 0.1996574551, -0.1285467297, 0.1151485965, -0.1072459817, 0.0388022289, 0.0945962891, 0.1217527911, 0.3356000185, 0.1242958829, -0.1919821501, 0.3964084387, 0.5850521922, 0.0669830814, 0.2981479466, 0.071278356, 0.0723012462, -0.008435443, -0.1640691608, 0.0700913593, -0.3994193673, -0.1546176076, 0.1536275595, 0.0361060016, -0.3688915372, -0.282714963, 0.2706740499, -0.317709595, -0.1678566039, 0.1270988286, 0.0690937042, 0.1307025701, -0.1740138382, -0.0349136703, 0.0591974668, 0.1001402065, -0.1112744138, 0.1810826212, -0.1693284363, -0.2402608991, -0.0678076595, -0.5501949191, -0.4681791067, 0.4201442301, 0.1505706459, 0.5695859194, -0.0023045191, -0.1535202861, -0.0597580858, -0.2935431004, 0.8496725559, -0.1981763691, -0.193444714, 0.2181833684, 0.2658570409, -0.0026508318, -0.0798922107, -0.1824523658, 0.3223560154, 0.1083093137, -0.0536812767, 0.2510609329, -0.0756943002, 0.1179923564, -0.0927479491, -0.1728263795, -0.0914245695, -0.3367774189, -0.296007514, -0.0545705222, 0.2718884349, 0.0257835779, -0.0629815012, -0.3283904791, 0.0095569212, 0.2025767863, -0.1010721698, 0.3030552566, -0.0109933065, 0.1442429423, -0.1002153233, 0.0600253381, -0.2607694566, 0.2963290513, -0.1633319408, -0.0030010587, -0.1922783852, 0.2404854298, 0.309661895, -0.0918829292, 0.3929229081, 0.4457351863, 0.1424074918, -0.1233949363, -0.3963151276, 0.4940874577, -0.2796328664, -0.2191224694, 0.2729912996, 0.2718493938, 0.0476512425, 0.2530596256, 0.2464248687, 0.1082384288, -0.1077959239, 0.4929210246, -0.3655339479, -0.0749299303, 0.0356279314, 0.1304309964, 0.9967213869, 0.0433202572, 0.1189118996, -0.0594444163, -0.4330742061, -0.2991344333, -0.1547604352, 0.3376127779, -0.2475492209, -0.1441729665, -0.0107803075, -0.0327464901, 0.1365703791, -0.0481975675, -0.3108737469, 0.542376101, 0.2191963643, -0.1552074552, -0.1597216576, -0.2449068427, -0.04476244, -0.2088465244, 0.1253478676, 0.0260194018, 0.0824687108, -0.1033285782, -0.2708801031, 0.1608608514, 0.478274405, -0.4204179049, -0.447070837, 0.0222201776, -0.2924541831, 0.1517006457, -0.1510333121, 0.2836556137, 0.008221562, 0.3933493793, 0.0862141028, -0.033907745, -0.2003094107, -0.0512488522, 0.5149101615, -0.0734030232, -0.1548949331, 0.046951402, -0.0645003766, -0.0882800072, -0.2245568335, 0.3278430402, -0.146433562, -0.0167197231, -0.460234046, 0.3510601819, 0.1427759677, 0.215793252, -0.1538731456, 0.2385239899, -0.2042163461, -0.1341703087, 0.0876109451, -0.0520028174, -0.455840975, 0.6648209095, -0.5725061893, -0.1652448177, 0.0157148819, 0.0385561399, 0.0256584678, -0.0823850408, 0.0913125128, 0.1807390898, -0.0798330531, -0.2497155517, -0.1001926288, -0.4476295412, -0.0590611398, -0.014096749, 0.4131955504, -0.1556124687, 0.1912051588, -0.2220642567, 0.0293214545, 0.1280604303, -0.0034404886, -0.3608272672, -0.205965668, 0.00413553, -0.0384435542, 0.1840738058, 0.000369427, 0.0903393701, 0.1145684272, 0.0433793552, -0.2699513733, 0.0237756446, -0.2048455477, 0.152006045, 0.082243003, -0.2354892045, -0.1031663045, 0.1423007995, 0.0385229141, 0.406934917, -0.4111884534, -0.1057429016, 0.1133375391, 0.0924329013, -0.082011655, 0.0198557358, 0.0701738149, 0.0386818387, 0.0940271541, -0.0306103695, 0.1176604256, 0.0848436579, -0.2991260588, 0.0746331662, -0.0288006067, 0.2066006362, 0.1639943123, 0.2659656405, -0.1864544004, 0.439456135, 0.0981493369, 0.0235136021, 0.0044679111, -0.0100963647, -0.0554417595, 0.0710714161, -0.0920923129, -0.2425912023, -0.1049907058, -0.0773675144, -0.3147372901, -0.1228147373, 0.2354397327, 0.3333845735, -0.2171508819, 0.2746222317, 0.3043158054, 0.1782011092, -0.2159332037, 0.0613205917, -0.0242809113, -0.1104073673, -0.0702869743, 0.3360286653, 0.2171678245, -0.5155630708, 0.3308373392, 0.0507117175, 0.1811350733, -0.4108891785, -0.3599187434, 0.1516512483, 0.2669433653, 0.1257070005, 0.0498972721, -0.031967096, 0.0922814831, 0.4622261226, -0.0737484917, 0.2301366776, -0.2403806448, 0.147182703, -0.0988571569, -0.1708921641, -0.1792936623, 0.123383984, -0.3252988756, 0.4941767454, -0.1151763201, 0.355194509, -0.5752068162, -0.3193902075, -0.3000151813, 0.3833562136, -0.2761050165, -0.0942611918, 0.0731211156, -0.0046292087, 0.0848837793, 0.1095991284, 0.3375641704, 0.0730578229, 0.6472616196, 0.221940726, -0.0965563804, 0.0616377629, -0.3227700591, 0.1396822929, 0.048346553, -0.2488618642, 0.2272088677, 0.4413455427, -0.0150429951, -0.2559154928, -0.078689523, 0.5184314847, 0.3973652422, -0.7148279548, 0.0073225778, 0.1765235513, 0.1348551959, 0.0246886611, 0.1171334088, 0.1264950931, 0.2712623477, 0.0323039703, 0.0082613034, -0.0902378634, -0.0176293366, 0.3147458732, 0.2156033218, 0.2337629795, 0.1607876718, -0.0054432419, -0.2068794668, 0.0349385887, 0.1091854796, -0.6795327663, -0.0306226928, 0.163454771, -0.4358776212, 0.0823003873, 0.0346727967, 0.0564470701, -0.0317575, 0.3202776313, -0.0608232953, 0.2135932744, -0.2925100625, -0.1811573803, -0.376939863, 0.0130102402, 0.1031443849, 0.0137515841, -0.1198756993, -0.1581247747, -0.0381520353, 0.1678032726, 0.1059698239, 0.0903671309, 0.2510839999, 0.7179803848, -0.5408718586, 0.3911239803, 0.3814267516, 0.0051042517, 0.2969394624, -0.4028028548, 0.2393361777, -0.0329805687, 0.0491694584, -0.2540532351, 0.2756894231, -0.1599728316, 0.4374843836, 0.2795374095, 0.027305061, 0.1966374069, -0.0966161191, -0.0949590132, 0.1099543795, 0.4139929414, 0.3005553782, -0.5189864039, 0.3097032011, 0.0198682044, -0.405382663, -0.0964164063, -0.0510484986, -0.0667767972, 0.0606232621, 0.1748021543, -0.0961035863, 0.0391786285, -0.0059008459, 0.1120399684, -0.0357934162, 0.4521818757, 0.0073085628, 0.2061781883, -0.2073805332, -0.0599180944, 0.1864169985, -0.0306248441, -0.3157817423, -0.237683326, 0.476411283, -0.5554819703, 0.0987057015, -0.1281587183, -0.061851386, -0.1075516716, 0.0303570777, -0.7285944819, 0.2602617741, -0.431420207, -0.6321412325, 0.1089844927, -0.0953818485, 0.1943977028, -0.0924222991, 0.2282527089, -0.1962151229 ]
https://github.com/huggingface/datasets/issues/2067
Multiprocessing windows error
Indeed you needed `if __name__ == '__main__'` since accoding to [this stackoverflow post](https://stackoverflow.com/a/18205006): > On Windows the subprocesses will import (i.e. execute) the main module at start. You need to insert an if __name__ == '__main__': guard in the main module to avoid creating subprocesses recursively. Regarding the hanging issue, can you try to update `dill` and `multiprocess` ?
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 When using the num_proc argument on windows the whole Python environment crashes and hanging in loop. For example at the map_to_array part. An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
59
Multiprocessing windows error As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 When using the num_proc argument on windows the whole Python environment crashes and hanging in loop. For example at the map_to_array part. An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop Indeed you needed `if __name__ == '__main__'` since accoding to [this stackoverflow post](https://stackoverflow.com/a/18205006): > On Windows the subprocesses will import (i.e. execute) the main module at start. You need to insert an if __name__ == '__main__': guard in the main module to avoid creating subprocesses recursively. Regarding the hanging issue, can you try to update `dill` and `multiprocess` ?
[ -0.1351818293, -0.4226137698, -0.1194845662, -0.0176143236, 0.1080634296, -0.0960123762, 0.1320637316, 0.0308470149, -0.1013916209, 0.3602204323, -0.0551886633, 0.0946900547, -0.3736595809, -0.1421169192, -0.1579381973, -0.0196445417, 0.0329826511, -0.1128273606, 0.047878623, 0.0904551744, -0.3394444287, 0.4024185836, -0.2713932395, 0.026804626, -0.401966244, 0.0796888694, -0.0617423728, 0.5093021989, 0.0191326011, -0.3639235795, -0.1021169871, -0.2195556909, 0.2386396676, 0.132172972, -0.0001034106, -0.1818679422, 0.0205885302, 0.0046903021, 0.1855372787, 0.0788148195, 0.362146765, -0.2269078791, 0.0714549795, -0.0414677337, 0.0445210561, 0.218421936, 0.0055286186, 0.0762185454, 0.4799878895, 0.2293441147, 0.2636739612, 0.0895198435, 0.1886879504, 0.1408016831, -0.1524421275, -0.2853359878, -0.1197071373, 0.417471081, 0.3994279206, -0.1610611379, 0.079294093, 0.2322092801, -0.1770654619, 0.0859542266, -0.2321713418, -0.0009666507, 0.4042547345, -0.4059966207, 0.0156399645, 0.0012497014, -0.0921161324, -0.1074043512, 0.2277506739, 0.1052797064, 0.228925243, -0.8124306202, 0.0166804045, 0.0472578183, -0.3250300586, 0.0808492154, 0.1410831064, -0.1242965013, -0.0220245793, -0.2145825028, -0.0428269729, 0.1005381718, 0.1382361501, 0.0571484677, 0.1464474052, 0.0078002214, -0.2372009009, 0.3869684637, -0.0115063842, 0.0850086436, -0.4147732854, 0.0770577639, 0.1552437097, 0.0051676016, -0.2343978435, -0.2477195114, -0.0266921166, 0.1380923837, 0.2967423797, 0.1935620159, 0.1310120374, -0.0973499194, 0.1096471697, -0.558724761, 0.3567599058, -0.4095544219, -0.0658394173, 0.1163016036, -0.0664671957, -0.4812477827, 0.2111387104, 0.3640958965, 0.1387633234, -0.1785722077, -0.2412887216, 0.2611694932, 0.0761053488, 0.1619968712, 0.174835518, 0.3731555045, 0.270303607, 0.632396102, 0.1211332902, 0.0395692773, -0.5594885349, 0.3015007377, 0.0585799962, 0.0765404627, -0.1999408305, -0.0367092974, 0.2190436125, 0.0480017997, 0.1093273908, 0.0806696787, 0.1975699663, -0.1294087023, -0.029919168, -0.119090721, -0.0193339121, 0.1967862099, 0.1208983436, 0.2237977982, -0.0420532897, 0.0469094291, -0.1270228624, 0.2816562951, -0.1704924256, -0.216958046, -0.0966703445, 0.2064182907, 0.3183295131, 0.3302813768, 0.4069039822, 0.0202215705, 0.0787570104, -0.3521757722, -0.2129661441, -0.4262781143, -0.1532215923, -0.2204386443, 0.1979790628, 0.2015245259, -0.2252458483, 0.2377125919, 0.1215577126, -0.1078293175, 0.2043155432, 0.254185915, 0.2908348739, -0.2798776031, 0.0065351268, -0.029729804, -0.0913808048, -0.2077919096, -0.0343784876, 0.0867684484, -0.0955198184, -0.1293618977, 0.0654301569, 0.1055272892, 0.1556664556, -0.1546861678, 0.3835841715, 0.025229454, 0.0625474378, 0.167059198, -0.3813205361, 0.154087171, -0.1082113385, 0.1325485408, -0.0153020881, -0.3098196387, -0.1858513355, -0.0440187007, 0.3126031756, 0.1123026013, -0.0583187193, 0.3177087009, 0.2139801681, -0.0429483503, 0.033017464, -0.2787874639, -0.0473931283, -0.0326258764, -0.2836301029, 0.1109799966, 0.2854701579, 0.1276583821, 0.0835922509, 0.2665581107, -0.1575902849, -0.2924700677, 0.2016204149, 0.0617833622, 0.0584760793, -0.0908380076, -0.1190517843, 0.2270749807, 0.1003557667, -0.1943216026, -0.1213512868, -0.1139203981, -0.4869255722, -0.2864392996, 0.0616917461, 0.4043664336, 0.087012127, 0.0715781301, 0.0119792987, 0.2805940509, 0.1202452108, -0.1503614932, -0.0562340766, -0.1117321998, 0.1633473337, -0.1665988415, 0.0865737498, 0.1966269463, 0.1060523242, -0.1940514743, 0.36740762, 0.0948767066, 0.1114336103, 0.2885197699, -0.0115704164, 0.1656480879, 0.1555186212, 0.0989127085, 0.1268945038, 0.097822547, 0.4008512497, 0.1141290739, 0.1021067128, -0.2333519012, -0.286788404, 0.1027944162, 0.2684313655, 0.0992110148, -0.0008459844, 0.1202715561, -0.1331627816, 0.0946436003, -0.0441561267, -0.4050088227, 0.3301177025, 0.1766395718, 0.0809023231, 0.2493044436, -0.4532830417, -0.1189093217, 0.2047944367, -0.1069698036, -0.1498229504, 0.2540156245, -0.1136462241, -0.1780841053, -0.1086226925, -0.1908423305, -0.1463776827, 0.1059684232, -0.1225526854, -0.1124028713, -0.206062153, 0.5869614482, -0.3379523754, -0.5343270302, -0.2172737718, -0.2400304377, 0.2002078593, 0.2956998944, -0.1551194638, 0.1767857522, 0.170399338, -0.1477069259, 0.1539737582, 0.2446302921, 0.1054778025, -0.1966194212, -0.0911579803, 0.0645604506, 0.3895747662, 0.0536358356, 0.2719881535, 0.2185651213, -0.0839994028, 0.1159342304, 0.0179366153, -0.1176387593, 0.0065875701, 0.2527399361, 0.0523973405, 0.0870605409, 0.2333321571, -0.400757432, 0.1690365076, -0.4145246148, 0.1989920735, 0.215540871, 0.1596943885, -0.2973797321, -0.3184920549, -0.3417876363, -0.4226315618, -0.4237927794, -0.004603853, -0.1088418663, 0.1892410219, -0.3053780198, 0.0938822702, 0.1626903862, 0.4764081538, 0.1099183336, -0.1097914129, 0.3985270262, 0.1149214655, -0.4232845008, -0.3036080003, 0.0739739463, 0.0862478167, 0.0005406574, -0.3487339616, -0.0938107371, -0.2605395019, -0.0402702875, -0.0411940999, 0.0168379657, 0.1922748685, 0.3205173612, 0.2199815512, -0.1974907666, 0.1253983378, -0.1087217256, 0.0102564646, 0.0217462759, 0.0642497018, 0.1324178129, -0.0082419207, -0.3252885938, 0.5187212229, 0.2988117039, 0.0430263728, 0.2415020764, 0.1495644152, 0.0738494024, -0.1125650033, -0.1149782091, 0.2159844637, -0.1812380999, -0.1233822852, 0.3385452628, 0.0637295097, -0.344063431, -0.3852458, 0.3334489465, -0.2241057456, -0.21686396, 0.1037666202, -0.0125345495, -0.0054072593, -0.06726937, -0.0053004557, 0.0592476986, 0.1513290703, -0.015717471, 0.1620751768, -0.1981830299, -0.2261509597, -0.0853509605, -0.5560274124, -0.5261831284, 0.3601529002, 0.1612602919, 0.4045401216, -0.0279572476, -0.3122995794, 0.1104666814, -0.3153471947, 0.6050422788, -0.1040814742, -0.2310167402, 0.2957619131, 0.1977661699, -0.1213177964, -0.1223641559, -0.2776657939, 0.0166129302, 0.2755772769, -0.2339740843, -0.0187752992, -0.0773267895, 0.0408604182, -0.0962731987, -0.1876426935, -0.1230349466, -0.3188305199, -0.2852320969, -0.1298853308, 0.1400087774, -0.0876073167, 0.1171674505, -0.4547159076, 0.0090691727, 0.0878730565, -0.0814700872, 0.1576924026, 0.1193170249, 0.1675173491, -0.1490399539, 0.2297839969, -0.1533109993, 0.5115940571, -0.0425261296, -0.0099609271, -0.283765018, 0.1625422835, 0.4291085303, -0.178973645, 0.209144786, 0.3356900215, 0.1679198444, 0.0008673907, -0.4147990048, 0.4918942153, -0.2210251093, -0.036547441, 0.3737953901, 0.31646806, 0.1306278557, 0.0721176937, 0.268992573, 0.0503377169, -0.1190357506, 0.2975534797, -0.3439263403, 0.0228015985, 0.0979519263, 0.1122821569, 0.9095650911, 0.1273320168, 0.050346598, 0.1770868748, -0.457658112, -0.2464918941, -0.2452302873, 0.2150415331, -0.3452489674, -0.0076947641, 0.1278995574, -0.016125001, -0.0364166386, -0.1383353025, -0.3275018334, 0.3317159116, 0.0144618554, -0.2145618647, -0.2669147551, -0.023346398, -0.0667420924, -0.1558232009, -0.0046713324, 0.1918945909, 0.2317624092, -0.0981316492, -0.2949544489, 0.0883866623, 0.3090930879, -0.365717262, -0.2679744065, -0.0044261678, -0.049530983, 0.1375207305, -0.1322583854, -0.1263163388, -0.1111644655, 0.4085239172, 0.0641729087, 0.0352633037, -0.212275207, 0.0762813538, 0.2285336107, 0.0259710848, -0.0888744816, 0.1009901911, 0.0062167225, -0.1928395033, -0.2835329771, 0.2746962011, -0.093347013, 0.0528203994, -0.1957863867, 0.3317496777, 0.1135591567, 0.1840255111, -0.0895464569, 0.3004461527, -0.2343099713, -0.1687009335, 0.2205448002, -0.002631285, -0.5343680382, 0.6597441435, -0.3583516777, -0.0428014584, -0.0323082171, 0.0488827191, 0.020763699, 0.1505813897, 0.1778141856, 0.2599488795, -0.2313389778, -0.2610789835, -0.1300226748, -0.3829301, 0.0228496585, -0.0313400589, 0.5056535602, -0.2653227448, 0.1749011874, -0.2343427092, -0.0262947381, -0.0053459583, -0.1759110689, -0.1204576939, -0.1555926353, 0.0213112459, -0.050384637, 0.2329017371, -0.1126275286, 0.1665226966, 0.0070864735, 0.1055921614, -0.4100173414, 0.0122729484, -0.2944076359, 0.0815688893, -0.0398196839, -0.4213507175, 0.0431629159, 0.2566623092, 0.2082246542, 0.3661241829, -0.3060919642, -0.2721683383, -0.0066807778, 0.0311001111, -0.1669248641, 0.0260316748, 0.0875765979, 0.0500220135, -0.0431527011, -0.0394674279, 0.0717339888, -0.0295925792, -0.1960065812, 0.1399930865, -0.071231924, 0.2636041939, 0.3090507984, 0.4009550214, -0.126682654, 0.4257571101, -0.0223600063, 0.0120973196, 0.0141731175, -0.0842870921, -0.0428487509, 0.0461577624, -0.0682960898, -0.1955294162, 0.0145973423, 0.1875317991, -0.2391769588, -0.1456569582, 0.5542576313, 0.482550174, -0.0486809537, 0.1391606927, 0.4199678898, 0.3092742264, -0.2318923473, 0.0846434906, -0.1809268296, -0.1913691461, 0.0931866616, 0.1590423435, 0.0616304465, -0.378490746, 0.2029734701, 0.1472111791, -0.0433646813, -0.2426798344, -0.5065714717, 0.18881239, 0.1677509397, 0.0570428595, 0.0523793548, -0.1078906879, 0.1624525189, 0.4125849903, -0.1772692949, 0.2198756784, -0.3080130517, 0.1113031954, -0.0615302585, -0.2300929129, -0.1026437208, 0.1007718369, -0.2014257461, 0.2718038559, -0.1607924998, 0.4502232969, -0.5096837282, -0.3224600852, -0.2438452393, 0.4145304859, -0.2001021653, -0.096957311, 0.0895556509, 0.0270817745, 0.0742645785, 0.0635612234, 0.2658013105, 0.1540315002, 0.4127885997, 0.3011640608, 0.0663848817, -0.1835928708, -0.261259675, -0.0124265151, 0.0451875143, -0.1576486379, 0.1958629191, 0.5646461248, 0.0671809986, -0.1934890002, 0.0277948175, 0.4950589538, 0.4522050917, -0.7212638855, 0.0556063466, 0.0771636292, 0.0833079144, -0.1817295104, 0.187353313, 0.0858507976, 0.1851811558, 0.2049118727, 0.144572705, -0.245443821, -0.0605240427, 0.1923831552, 0.1505835056, 0.2461463511, 0.1484672576, 0.0249573737, -0.1038147286, -0.1354482621, -0.0955178291, -0.6611917615, -0.0493907705, 0.0582037978, -0.2890040576, 0.0885873139, -0.1587869525, 0.1201858073, -0.1778048426, 0.4030879736, 0.0889579579, 0.4124263525, -0.1165223271, -0.1426832229, -0.5166682005, 0.090314135, 0.0872479752, -0.125568822, -0.318995595, -0.1061312407, 0.0490008444, 0.1152091399, 0.0579254776, 0.0430921763, 0.2217221856, 0.6491615176, -0.6396930218, 0.370762825, 0.1219193339, -0.1066779792, 0.2320802659, -0.3724495173, 0.1926014274, -0.0187839027, 0.1491537988, -0.1150116771, 0.188808918, -0.1274183393, 0.5095853806, 0.2310603112, 0.1437455267, 0.2511386275, -0.1507162601, -0.1358630359, 0.1007358953, 0.3031364977, 0.1630816013, -0.517621994, 0.2995133698, 0.0890443996, -0.2253537625, -0.2122371793, -0.071915336, 0.2695270777, 0.0286273248, 0.176440388, -0.1058528945, -0.0242523681, 0.1053629294, 0.0221930295, -0.0265655052, 0.468878746, 0.0108470134, 0.2176401168, -0.3726308942, -0.1097331643, 0.2490934879, 0.1428988129, -0.1955768019, -0.3436610103, 0.3892372549, -0.3814242184, 0.0986454189, -0.1977394223, -0.0275965109, -0.1511519998, 0.0076968158, -0.5447807908, 0.2385076135, -0.228388235, -0.5854176879, -0.0143673113, -0.1419531405, 0.2517257631, 0.0379587971, 0.132112354, -0.2587894499 ]
https://github.com/huggingface/datasets/issues/2067
Multiprocessing windows error
``` Traceback (most recent call last): File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 791, in move os.rename(src, real_dst) FileExistsError: [WinError 183] Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist: 'D:\\huggingfacecache\\common_voice\\de\\6.1.0\\0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f\\tmpx9fl_jg8' -> 'D:\\huggingfacecache\\common_voice\\de\\6.1.0\\0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f\\cache-9b4f203a63742dfc.arrow' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 116, in spawn_main exitcode = _main(fd, parent_sentinel) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 125, in _main prepare(preparation_data) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 236, in prepare _fixup_main_from_path(data['init_main_from_path']) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 287, in _fixup_main_from_path main_content = runpy.run_path(main_path, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 265, in run_path return _run_module_code(code, init_globals, run_name, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 97, in _run_module_code _run_code(code, mod_globals, init_globals, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "F:\Codes\Python Apps\asr\cvtrain.py", line 243, in <module> common_voice_train = common_voice_train.map(remove_special_characters, remove_columns=["sentence"]) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1339, in map return self._map_single( File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 203, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\fingerprint.py", line 337, in wrapper out = func(self, *args, **kwargs) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1646, in _map_single shutil.move(tmp_file.name, cache_file_name) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 805, in move copy_function(src, real_dst) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 435, in copy2 copyfile(src, dst, follow_symlinks=follow_symlinks) 0%| | 0/27771 [00:00<?, ?ex/s] File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 264, in copyfile with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst: OSError: [Errno 22] Invalid argument: 'D:\\huggingfacecache\\common_voice\\de\\6.1.0\\0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f\\cache-9b4f203a63742dfc.arrow' ``` I was adding freeze support before calling the mapping function like this if __name__ == '__main__': freeze_support() dataset.map(....)
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 When using the num_proc argument on windows the whole Python environment crashes and hanging in loop. For example at the map_to_array part. An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
224
Multiprocessing windows error As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 When using the num_proc argument on windows the whole Python environment crashes and hanging in loop. For example at the map_to_array part. An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop ``` Traceback (most recent call last): File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 791, in move os.rename(src, real_dst) FileExistsError: [WinError 183] Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist: 'D:\\huggingfacecache\\common_voice\\de\\6.1.0\\0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f\\tmpx9fl_jg8' -> 'D:\\huggingfacecache\\common_voice\\de\\6.1.0\\0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f\\cache-9b4f203a63742dfc.arrow' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 116, in spawn_main exitcode = _main(fd, parent_sentinel) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 125, in _main prepare(preparation_data) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 236, in prepare _fixup_main_from_path(data['init_main_from_path']) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\multiprocess\spawn.py", line 287, in _fixup_main_from_path main_content = runpy.run_path(main_path, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 265, in run_path return _run_module_code(code, init_globals, run_name, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 97, in _run_module_code _run_code(code, mod_globals, init_globals, File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "F:\Codes\Python Apps\asr\cvtrain.py", line 243, in <module> common_voice_train = common_voice_train.map(remove_special_characters, remove_columns=["sentence"]) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1339, in map return self._map_single( File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 203, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\fingerprint.py", line 337, in wrapper out = func(self, *args, **kwargs) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\site-packages\datasets\arrow_dataset.py", line 1646, in _map_single shutil.move(tmp_file.name, cache_file_name) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 805, in move copy_function(src, real_dst) File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 435, in copy2 copyfile(src, dst, follow_symlinks=follow_symlinks) 0%| | 0/27771 [00:00<?, ?ex/s] File "C:\Users\flozi\anaconda3\envs\wav2vec\lib\shutil.py", line 264, in copyfile with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst: OSError: [Errno 22] Invalid argument: 'D:\\huggingfacecache\\common_voice\\de\\6.1.0\\0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f\\cache-9b4f203a63742dfc.arrow' ``` I was adding freeze support before calling the mapping function like this if __name__ == '__main__': freeze_support() dataset.map(....)
[ -0.0126368422, -0.3874339461, -0.0540231504, 0.2022801042, 0.1353474557, 0.0187554825, 0.0908481181, 0.0778498054, 0.0393030718, 0.2612572014, 0.0116537744, -0.0717008859, -0.300147742, -0.0775014982, -0.1249799281, -0.2181283683, 0.1993367672, -0.1225007549, 0.2698474824, 0.3569087982, -0.453097105, 0.5776938796, -0.3369621336, 0.2170218825, -0.3738826215, -0.0177008826, -0.2501497567, 0.6321833134, 0.3016949594, -0.3766628504, -0.0409929194, -0.314125061, 0.1125466004, 0.1129685789, -0.0001192791, -0.0899686888, -0.0525465645, -0.0609054305, 0.3652592599, 0.2903068662, 0.2686347365, 0.0707850158, -0.1472683847, 0.0154839503, 0.2896393538, 0.2888127267, -0.0069159013, -0.1151361912, 0.5103617907, 0.3108976781, 0.0964279249, 0.2305840552, 0.2101576328, 0.0053208, -0.2566916943, -0.3280826211, -0.0426162966, 0.3265691698, 0.4258090258, -0.3297049701, 0.128529489, 0.2043697089, -0.2732005417, -0.0346862786, -0.4689790905, 0.0665712133, 0.4387371838, -0.5151545405, 0.116457954, -0.0351321362, -0.286021769, -0.1260885596, 0.1404025406, -0.0298681874, 0.1666518003, -0.7686856389, 0.0550996922, 0.158019051, -0.3607048988, 0.0910517201, -0.1080023721, 0.076795131, -0.0104953479, -0.1862134933, 0.2111449391, -0.0008122168, -0.0192450136, 0.1576216966, 0.2552621961, 0.2031298876, -0.3922749758, 0.3448497057, -0.083716318, 0.0803351626, -0.5561100245, 0.0755070001, 0.003969383, 0.3153909445, -0.2706432045, -0.2075469643, -0.0714276358, 0.0356827118, 0.232462436, 0.1222750321, 0.0230679084, -0.0048257206, 0.0517112352, -0.6401051879, 0.1803149581, -0.2331953347, -0.026500294, -0.0146055017, -0.0706130415, -0.6683466434, 0.1515744776, 0.4514997303, 0.2356956005, -0.1143410131, -0.3852733374, 0.0835880637, -0.030576136, 0.223082602, 0.3593814373, 0.3545975685, 0.3032066524, 0.751400888, 0.0042984742, 0.200450629, -0.4899940491, 0.1166700721, 0.0720067024, 0.1323168874, -0.2918376029, 0.3349356055, 0.2156769186, -0.0239383522, 0.1369726658, 0.1643111259, 0.3601238132, -0.3316322565, -0.1411787271, -0.1307915747, -0.1664627194, 0.2033267617, 0.0766125619, 0.1889308095, 0.0378992334, 0.0553934909, 0.0216190629, 0.0089606643, -0.2776423693, -0.4142331183, -0.1573717743, 0.0547510758, 0.3095566034, 0.4490511417, 0.3361921608, -0.0404792428, 0.3349388242, -0.2400993407, -0.0812298059, -0.3279943466, -0.3805381954, -0.3011349738, 0.0936458185, 0.324167788, -0.0066860318, 0.2289618552, 0.3274362087, -0.0684342161, 0.103243649, 0.2970837653, 0.2495612502, -0.1760049015, -0.1911647767, -0.036477156, -0.2446793914, -0.3650832176, 0.1048915237, 0.0467589796, -0.0803727359, 0.0639582872, 0.3371143937, -0.1018787473, -0.0524260551, -0.3592814505, 0.4140968621, -0.2576808333, -0.091897212, 0.17716977, -0.2155271471, 0.0601211488, -0.2036856413, 0.0210245419, -0.1643568277, -0.0989758596, -0.0998641327, -0.0078448942, 0.2219617069, 0.0970816016, 0.0769437253, 0.2889820933, 0.1434746683, 0.0259142425, 0.0873319581, -0.2388994843, -0.2275290489, 0.191990912, -0.1981404424, 0.0689496696, 0.2805077434, 0.1310915649, 0.1273564249, 0.2248360813, -0.2467900366, -0.3968260884, 0.0477640443, -0.0143679278, 0.1868639588, -0.1970893592, 0.0084713753, 0.5062980056, 0.0165168419, -0.0949579403, -0.20396097, -0.1696049273, -0.3601670563, -0.3072247207, -0.1549810618, 0.3238279521, 0.183945924, 0.0657487214, 0.1309624016, 0.3159966469, 0.0797458068, -0.0409712531, -0.149273321, 0.0090151252, 0.0980659798, -0.1574135125, 0.1081507653, -0.038653776, 0.131531626, -0.2199793905, 0.4834600985, 0.1523744464, -0.0931472331, 0.4009238183, -0.1808024645, 0.126069352, 0.1215772852, 0.1076725647, 0.2794559598, 0.1402685642, 0.4186382592, 0.0721665323, 0.0782997534, -0.4159421325, -0.2257851958, 0.0954074487, 0.1177242547, 0.0903876051, -0.0744838044, 0.0460262708, -0.1072586551, 0.1049703658, -0.0948020145, -0.3587927222, 0.7520033121, 0.0278980769, -0.0459599979, 0.3025045097, -0.3354745507, -0.135549292, 0.2962965965, 0.0279773436, 0.1241540387, 0.2167373151, -0.138879478, -0.0001349555, -0.0964123234, -0.1687209904, -0.0449951142, -0.0071347496, -0.406647414, -0.024321802, -0.024864452, 0.5111106634, -0.3909211755, -0.413528949, -0.1359330863, -0.2026252002, -0.0086052706, 0.4150253236, -0.0883475617, 0.0252903216, 0.0009805347, -0.0015358407, 0.0286413785, 0.3189964294, 0.0660696179, 0.0243096147, -0.1014129817, -0.0852870792, 0.303676486, -0.1688357592, 0.1168229878, 0.2283475697, 0.0036366438, 0.0986425802, 0.0210668109, 0.030096164, -0.0424238704, 0.300598979, 0.1182653308, 0.1036485732, 0.16139853, -0.4868732095, 0.2238767296, -0.324242413, 0.1113819331, 0.1531890482, 0.093593128, -0.3151871562, -0.2749289274, -0.0205566119, -0.439334929, -0.2900479436, 0.1368469894, -0.2023089677, 0.1643989235, -0.1601559222, -0.0626422316, 0.1890592724, 0.1449101865, 0.0051390324, -0.1338879168, 0.1356222332, -0.0922915563, -0.2108961642, -0.0406018756, 0.0750093684, 0.1215819269, 0.0531444289, -0.2295714766, -0.0980324075, -0.439969033, -0.0351895019, -0.0250900201, -0.0186100435, 0.11209324, 0.4357010424, 0.2380366027, -0.1481883824, 0.0748032629, -0.1058743522, 0.1633777618, 0.0396493264, 0.1193264499, 0.146228835, 0.0730900615, -0.1429156065, 0.4496085942, 0.6301870942, 0.154059872, 0.3096242249, 0.0698951259, 0.0727030486, 0.0026802134, -0.2179091275, 0.1445666403, -0.3779730499, -0.0718569309, 0.182104826, 0.1512404382, -0.0980776027, -0.3083450198, 0.2642952204, -0.36750108, -0.2195174098, 0.1537088454, 0.1010344923, 0.2180582434, -0.3457668722, -0.0379086919, 0.203192547, 0.0530936159, -0.0701205134, 0.2888402343, -0.2450553626, -0.2483468205, -0.1441532969, -0.4103231132, -0.4801644683, 0.5223150849, 0.1933965832, 0.5758062601, -0.0302148387, -0.2190844715, -0.10334865, -0.2501757443, 0.9639763236, -0.091048412, -0.2613955736, 0.1880391985, 0.252120167, 0.0696626976, -0.1496622264, -0.2106926441, 0.2268150598, 0.1498952955, -0.0120715257, 0.1820659637, -0.1018510908, 0.090823777, -0.0064843055, -0.1629064977, -0.0651542321, -0.3694272041, -0.2309225798, -0.0625087023, 0.1814617664, -0.0226509459, 0.0920241028, -0.405978322, 0.1061683446, 0.2339821011, -0.1739502847, 0.2042461932, -0.0110730277, 0.1049398929, 0.0193058383, 0.1522299647, -0.1700283587, 0.3072298467, -0.3097627163, 0.0476652794, -0.2791034579, -0.0130285937, 0.2011613548, 0.0132357031, 0.3436422348, 0.5690308213, 0.0985136405, -0.0479401015, -0.2560605109, 0.4918908179, -0.2900899947, -0.1155470386, 0.3786417842, 0.1669626683, 0.1230020896, 0.3054515719, 0.2370191067, 0.068194598, -0.1851807982, 0.4037952423, -0.0732699037, -0.1730311066, -0.0346207283, 0.1439495534, 1.0082629919, 0.065966472, 0.1427401155, 0.08594919, -0.3662239313, -0.0127624804, 0.0989539102, 0.2966795862, -0.1821047515, -0.1507107615, 0.0772672594, -0.0164129958, 0.152837649, -0.0837266594, -0.3051031232, 0.5029764175, 0.2373083681, -0.2455086261, -0.1825757772, -0.281140089, -0.1020455435, -0.352535516, -0.0153135359, 0.0149939638, 0.0167474449, -0.0491514616, -0.2428886145, 0.2179269642, 0.4579991102, -0.3275725842, -0.5520539284, 0.0970433205, -0.353851974, 0.1254424751, -0.1017711535, 0.1560158432, -0.0145729193, 0.320917964, 0.2605885565, -0.2092825323, -0.1403916925, 0.0680805966, 0.421048522, -0.0275657605, -0.0525233336, -0.0186161865, -0.0460114218, -0.0714712963, -0.2083968967, 0.2369461954, -0.2361134142, 0.0567136668, -0.4017174244, 0.2921645641, 0.1818337739, 0.1981834918, -0.1307993382, 0.230230391, -0.0991463587, -0.1583111584, 0.064183861, 0.0171108581, -0.4364326, 0.3884576559, -0.6675553322, -0.1721235216, 0.0229790434, 0.0933621228, -0.1514451653, -0.2183888555, 0.2554523647, 0.2942560017, -0.0413810946, -0.1620461941, -0.0678597316, -0.5027355552, -0.2437488586, -0.0238287337, 0.4996991158, -0.1813757867, 0.266071409, -0.1820059419, 0.1536480188, 0.0684591606, 0.0482916422, -0.4530944526, -0.1692279875, 0.0413601138, -0.1064421386, 0.1275698543, -0.115333572, 0.0133794025, 0.0907685831, 0.0294970255, -0.2364462018, -0.0503630489, -0.1819700003, 0.0683755204, 0.1364398748, -0.2566857338, 0.0624014735, 0.2216245681, 0.0530172177, 0.3549652994, -0.3132788837, -0.0996383205, 0.0440467782, 0.0995218232, -0.1542283446, -0.0604915395, 0.1313077062, 0.1940496862, 0.0677600875, -0.0367913172, 0.1209662855, 0.0861428455, -0.2097531855, 0.001094007, -0.1569160223, 0.3232280612, 0.1926589608, 0.2262536883, -0.1520659924, 0.4106262028, 0.1805457324, 0.0026900549, -0.0224737413, -0.0589793324, 0.0302353576, 0.0238044672, -0.0792037323, -0.2004011422, -0.1716603935, -0.0444901027, -0.4174909294, -0.2303557694, 0.2337724268, 0.4121539891, -0.1131721288, 0.2689483464, 0.3589968681, 0.1417594105, -0.1508745998, 0.1350932568, -0.1022718847, -0.2268358469, -0.1545641124, 0.309867084, 0.087752454, -0.4268260598, 0.4017519355, 0.1055693924, 0.2037148178, -0.3465667963, -0.3353351951, 0.1248304471, 0.2816448212, 0.1435783058, 0.0206879023, -0.0954231992, 0.1340278089, 0.4247789085, -0.2297484279, 0.1962561309, -0.4218926132, 0.2481361926, 0.0672303364, -0.2235991061, -0.2706951201, 0.1842912734, -0.3110420704, 0.4455821216, -0.2803733647, 0.513736248, -0.7224974036, -0.3778697252, -0.2943162322, 0.3682086468, -0.1851389408, -0.1865611225, 0.1771260649, 0.0598126315, -0.0387939885, 0.1001300141, 0.2823716104, -0.0009699712, 0.5339977145, 0.1389390081, -0.1150979921, -0.1258364618, -0.5283540487, 0.2112713754, 0.0618759766, -0.1872820109, 0.3285218477, 0.6931874156, -0.0739362538, -0.1532807052, 0.0762571767, 0.5918377042, 0.3502089381, -0.6384207606, 0.0812913552, 0.146732524, 0.1946179569, 0.0268225241, 0.1508606821, 0.1952533871, 0.2628801465, -0.0085120108, -0.0017493786, -0.0843071118, -0.151745975, 0.2341475487, 0.2114391327, 0.2119701207, 0.3036632836, -0.1803751886, -0.1048840508, 0.0076728482, 0.1784792691, -0.6597290039, 0.0943300799, 0.0467061102, -0.4122408926, 0.022911787, 0.1529777497, 0.0503075458, 0.0459030271, 0.4579341412, -0.0373269171, 0.2521835566, -0.2265131772, -0.2471063882, -0.3494701684, 0.0012825922, 0.2340707183, 0.0321688578, -0.2694209516, -0.1398394108, 0.0067181424, 0.172248438, -0.0091760335, 0.0029837808, 0.3301612735, 0.5812100172, -0.5686642528, 0.3625001311, 0.4213239551, -0.0233121682, 0.307262063, -0.4077704549, 0.2179342806, 0.0659815744, -0.0184941553, -0.1186795384, 0.2612791955, -0.2128608227, 0.3040599525, 0.1448915154, 0.1129050329, 0.1531752646, -0.0402701721, -0.1507806778, -0.0687907487, 0.2566032112, 0.266322881, -0.3658379316, 0.1859389395, 0.1033473089, -0.3721548915, -0.0625277013, -0.0690454319, 0.0288534444, 0.1528546512, 0.1354578584, -0.2201825231, 0.1053897589, 0.0779868662, 0.1102078483, 0.1067339107, 0.4693093896, 0.0313386545, 0.17244941, -0.2965084314, -0.1013517007, 0.2214186788, -0.2022681236, -0.2384635061, -0.1893531978, 0.501042366, -0.4549625218, 0.0483118631, -0.2451151609, 0.0065874299, -0.0483565629, 0.1249531135, -0.6412271261, 0.2450705171, -0.3631626666, -0.7568081617, 0.1177071556, -0.187365815, 0.1763354391, -0.1220647395, 0.3575662971, -0.1268755198 ]
https://github.com/huggingface/datasets/issues/2067
Multiprocessing windows error
Usually OSError of an arrow file on windows means that the file is currently opened as a dataset object, so you can't overwrite it until the dataset object falls out of scope. Can you make sure that there's no dataset object that loaded the `cache-9b4f203a63742dfc.arrow` file ?
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 When using the num_proc argument on windows the whole Python environment crashes and hanging in loop. For example at the map_to_array part. An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
47
Multiprocessing windows error As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 When using the num_proc argument on windows the whole Python environment crashes and hanging in loop. For example at the map_to_array part. An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop Usually OSError of an arrow file on windows means that the file is currently opened as a dataset object, so you can't overwrite it until the dataset object falls out of scope. Can you make sure that there's no dataset object that loaded the `cache-9b4f203a63742dfc.arrow` file ?
[ -0.3012990355, -0.2888681293, -0.0838766098, 0.1985546947, 0.0243260879, -0.0525321066, 0.0652538985, -0.0146975806, 0.0848994255, 0.2829810977, 0.1703790575, 0.2638421655, -0.3119596243, -0.1078653336, -0.3288582563, -0.1583806276, 0.0069895303, -0.0020368753, 0.1382289231, 0.2635191083, -0.4521365166, 0.4412015676, -0.2616142333, 0.2926624119, -0.393266201, -0.211552456, -0.1386808902, 0.4438160062, 0.0661771074, -0.4786922634, 0.0005654134, -0.4143379927, 0.1744176894, 0.1870652884, -0.0001159315, -0.0684330836, 0.0426297933, 0.0408091284, 0.2628768981, 0.2087534219, 0.222745344, -0.0434501022, 0.0806638896, -0.0629372001, 0.3600696027, 0.1284514666, -0.020727532, -0.1225396022, 0.459821552, 0.4392022789, 0.1687344462, 0.290183574, 0.1781137586, 0.0979066342, -0.1573560238, -0.3354212642, -0.1023715958, 0.2453908175, 0.3822473884, -0.2205762118, 0.0241913795, 0.2357567996, -0.1961411238, 0.1414804459, -0.3374694586, -0.0767129362, 0.4196667969, -0.4534087777, 0.1091998294, -0.0303225219, 0.0826916248, -0.1416196823, 0.2035352886, 0.0713250339, 0.0753629357, -0.8428002, 0.0727439895, 0.2241643518, -0.35164994, 0.0234749354, 0.0954193696, -0.072295405, -0.1213671565, -0.0855892971, 0.0745182559, 0.0074093891, 0.0226394814, 0.2146469802, 0.2442718148, 0.2144131958, -0.0997223854, 0.3688186407, -0.1694300473, 0.0775767416, -0.4725193679, 0.1255837828, -0.1103660464, 0.1066869646, -0.2916962802, -0.035225302, 0.1370095611, 0.1670445055, 0.1998489946, 0.2073925883, 0.2034582943, -0.0674652904, 0.0927729383, -0.5522865057, 0.1139974743, -0.426164031, -0.1662344337, -0.0775044933, -0.0583074428, -0.67348212, 0.3865687847, 0.3823790848, 0.2839418352, -0.1032039002, -0.3083175421, 0.1988817751, -0.0128983902, 0.1473652124, 0.225281924, 0.2256571054, 0.3258138299, 0.7511110306, 0.0178367142, 0.1931523085, -0.5615143776, 0.103406325, 0.1231035888, 0.0790543705, -0.3985128999, 0.1447612494, 0.1824885905, 0.0066032456, 0.192302078, -0.0137634557, 0.2352594882, -0.2788479924, 0.0069426796, -0.2292854935, -0.0583148673, 0.2340582311, 0.1257650703, 0.2475099117, 0.0495032147, 0.0967293307, 0.0479145721, 0.326302439, -0.4066799283, -0.4346694946, -0.2120717764, 0.0855832621, 0.3318751454, 0.3249839246, 0.1921970993, -0.126215741, 0.2943273485, -0.2313540429, 0.0385075323, -0.4561122954, -0.2042522728, -0.3638229966, -0.0964911953, 0.2022486776, -0.1977698803, 0.270809263, 0.184626326, -0.0608924516, 0.151793167, 0.4130901396, 0.1046214029, -0.2259476483, -0.1728729904, 0.073423788, 0.02104849, -0.1163442656, -0.1803098172, 0.0592480153, -0.1359140873, -0.1248630136, 0.1888769716, 0.0812423304, -0.0329830237, -0.1442915052, 0.2504724264, -0.1793409586, -0.0492131971, 0.136492908, -0.2602327764, 0.1588728577, -0.2608005404, 0.082809858, 0.0153114712, -0.2696192265, 0.0008565479, -0.3050090075, 0.3133669794, 0.0978258625, -0.0198538434, 0.3342058063, 0.2149973214, -0.0492860153, 0.1161436662, -0.2854295671, -0.0591481663, 0.0361082591, -0.1702704281, -0.0094012627, 0.1469451785, 0.1502006501, 0.1828627139, 0.3816410899, -0.2632252574, -0.2783362865, 0.0617177114, -0.085948728, 0.0882492289, -0.2227861732, -0.0987014323, 0.4120550752, 0.014545002, -0.091035746, -0.0943503603, -0.0471293218, -0.3684727252, -0.3964335918, -0.1642619222, 0.2239806205, 0.0859249607, 0.1844969839, -0.0255650785, 0.2649832368, 0.0745297968, -0.1738918871, -0.1268709302, 0.0038353095, 0.1243375018, -0.4475925863, 0.1477015764, 0.122758925, 0.0794961378, -0.140954867, 0.490547657, 0.170570612, -0.0011535494, 0.2986790538, -0.1256643087, 0.2619839311, 0.1233762354, 0.1530235857, 0.1067121699, 0.1765255034, 0.5011745095, -0.0110431481, 0.0172142759, -0.3096617162, -0.2230345011, 0.0612098612, 0.303337574, 0.1709255278, 0.083409071, 0.0470925234, -0.3043575883, 0.2167908251, -0.0248334724, -0.2864577174, 0.6092159748, 0.0939816684, -0.0480901562, 0.2317299843, -0.3734011948, -0.1023524553, 0.2643331885, 0.0958673432, 0.2297341079, 0.1650209278, -0.1404713541, -0.0639907345, -0.1730156988, -0.2523160875, -0.1724817157, 0.0948155224, -0.3047887683, 0.1145613641, -0.1076309085, 0.4711634517, -0.4364019036, -0.571508944, -0.0212584827, -0.2287169397, 0.0943656042, 0.3082365692, -0.0678602383, 0.0081792725, -0.107644856, -0.0429235883, 0.1949377656, 0.2007217258, 0.2071800232, -0.1450235844, -0.1535375267, -0.0526689142, 0.3419603109, -0.1540521234, 0.2248850763, 0.275693953, 0.1928740144, -0.0250499025, 0.1833357662, -0.0884313285, 0.1462685615, 0.0871226415, 0.0022801792, 0.1489718705, 0.0244931728, -0.4572966099, 0.174027577, -0.4738196731, 0.0965530798, 0.1864628047, 0.1273257583, -0.2730247676, -0.1548936218, -0.1657605618, -0.4591580927, -0.3735135198, 0.1161691844, -0.1351013184, 0.3259913921, -0.172488749, 0.1658077687, 0.1888147742, 0.2840819657, -0.115997687, -0.0464286916, 0.2811428607, 0.0274786595, -0.2755478323, -0.208100006, 0.180107221, 0.1271850318, 0.0716017708, -0.0643045753, -0.2595276237, -0.2846133411, -0.0832403749, 0.1008597538, -0.1380190551, 0.2387011498, 0.4770814478, 0.2313630581, -0.1933701336, 0.1174179241, -0.0919035077, 0.0458457097, -0.0704020038, 0.1200020686, 0.2052818388, 0.2294618338, -0.2155588567, 0.6325457096, 0.4582149088, 0.0307927094, 0.3680425882, 0.124097988, 0.0656019449, 0.0024617377, -0.1606246084, 0.0912008584, -0.4899181128, -0.0612869374, 0.1534354538, 0.127270624, -0.3257683516, -0.1979985684, 0.3006584048, -0.3699686825, -0.1769930273, 0.2430409342, -0.1569905728, 0.0442197621, -0.2551781237, -0.0287153088, 0.0024016746, 0.1384350657, 0.0275945943, 0.1333396584, -0.2377857417, -0.2151899934, -0.0915519744, -0.4752038717, -0.4621414244, 0.424585402, 0.0595677458, 0.5636222959, 0.1264083087, -0.2305754125, -0.0531192236, -0.3705177307, 0.6991211772, -0.0358035602, -0.2761752903, 0.2132501155, 0.2402894795, -0.2465526909, -0.1589062512, -0.2612959445, 0.4468986392, 0.0208235271, -0.0612849258, 0.2832248807, -0.0513989478, -0.0335780717, -0.0475336947, -0.222885102, -0.0492007732, -0.3412733674, -0.306112051, -0.0809522122, 0.2572225928, 0.0125585496, 0.0378713422, -0.3442619443, 0.0975359231, -0.0685059205, -0.1439993531, 0.0511862189, -0.1444985569, 0.2184312195, -0.2485878319, 0.0626945272, -0.2141581923, 0.5296190381, 0.0932076722, 0.2448405474, -0.168468684, 0.0171684735, 0.3049794137, -0.1624383032, 0.3107880652, 0.3642148077, 0.1594861001, 0.0342338309, -0.3147218823, 0.4139233232, -0.0765747651, -0.1969520003, 0.2822989523, 0.2887897789, 0.090215303, 0.322094202, 0.4193080962, 0.1612426192, -0.0938729644, 0.6326381564, -0.1404516995, -0.0156391393, 0.1491317302, 0.1572808176, 0.9113289118, 0.0426009633, 0.1545387655, 0.0579161346, -0.5945175886, -0.0950986594, -0.0342397839, 0.2679252923, -0.2766168416, -0.1228444949, 0.0686836615, -0.1280003935, 0.1048496142, 0.0111403903, -0.2543607056, 0.3314642608, 0.1219210923, -0.3869191408, -0.0959417894, -0.2051419616, -0.0687396675, -0.2071731985, 0.0456018448, 0.0580284446, 0.0726834908, -0.0864246115, -0.2233450413, 0.132980898, 0.3250891268, -0.3729432225, -0.4827307463, 0.0232276805, -0.4337725937, 0.1745925993, 0.0225664787, -0.0860004798, 0.0689152479, 0.3463529944, 0.0982912853, -0.2405620366, -0.1729927063, 0.009951774, 0.6274529696, -0.1828507632, -0.054227259, -0.0406610444, 0.0788377672, -0.1367992461, -0.2635419965, 0.4335000217, -0.1802437752, -0.2150204629, -0.0945545733, 0.3497396111, 0.1278551221, 0.2987190485, -0.1252500117, 0.1256760806, -0.152837649, -0.1978930384, 0.100908123, 0.1182362139, -0.4216091037, 0.5439646244, -0.3533352613, -0.2044127136, 0.0590511672, 0.0002260067, -0.0594798326, -0.0357392728, 0.3162464797, 0.2656042874, -0.1535553634, -0.2551205456, -0.0701270774, -0.1949212402, -0.2966149151, -0.077472575, 0.3323432207, -0.1465400606, 0.3233777285, -0.273843497, 0.1983208358, 0.1877673566, -0.1436723769, -0.370041132, -0.2890416086, 0.0241236854, -0.1404719651, 0.1258217096, -0.1296695322, -0.2056682855, 0.1324049085, 0.1287672967, -0.2837158144, 0.1001469046, -0.1440070122, 0.051929675, 0.0202092305, -0.2493666708, -0.0326354541, 0.2872551382, 0.0353032053, 0.2821320891, -0.3100240827, -0.1693077534, 0.1292805523, 0.0683030784, -0.1067489833, -0.1151650548, 0.1055472419, 0.0432191268, 0.0628167614, 0.0455764867, 0.0033490909, 0.0137545234, -0.3649229407, 0.0464331545, 0.0591750853, 0.169779405, 0.0444285534, 0.3481210768, -0.2007609904, 0.5282028317, 0.0779309794, 0.0993912145, 0.0937104896, -0.0285978038, 0.0663553849, -0.0169214755, -0.1050377116, -0.2167126685, -0.2309642881, -0.2578289211, -0.3421969414, -0.2438059747, 0.3617068827, 0.3917310536, -0.1403296739, 0.2237558216, 0.3442856073, 0.1931288689, -0.1998022944, 0.0341468304, -0.0357933119, -0.1509556919, -0.0594531894, 0.3008090258, 0.1946815401, -0.4732252955, 0.3133517504, 0.0727044195, -0.0099880826, -0.3309753537, -0.3665044606, 0.1488689184, 0.1779059619, 0.0320464224, 0.0983872637, -0.0502745211, 0.1627900153, 0.4160141349, -0.1346455514, 0.2728449106, 0.0225480143, 0.0502526946, -0.1894929558, -0.2202547789, -0.3502291441, -0.0107186092, -0.2131239921, 0.3182366788, -0.0938131437, 0.5318554044, -0.4747647643, -0.3978480995, -0.1704755872, 0.2244879901, -0.233368367, -0.1233954728, -0.0933371335, 0.0160539374, 0.0445539951, 0.068388924, 0.2233018875, 0.1202736124, 0.5587496758, 0.2086463571, -0.0705678836, -0.1067143232, -0.26399979, 0.2165122628, -0.037336193, -0.1435953826, 0.2602059245, 0.4493559003, -0.0269820243, -0.2066362202, 0.0995429531, 0.5852429867, 0.3542617261, -0.7494063973, 0.0325882733, 0.1679323614, 0.1283968389, -0.0097524673, 0.0610597879, 0.2016129345, 0.0264627635, 0.1323004216, 0.0444096699, -0.1327480078, 0.1357132792, 0.1348723769, 0.2581339777, 0.2341420054, -0.0196552966, -0.061066445, -0.240293026, 0.0529748537, -0.0517329648, -0.5167415142, -0.0734202266, 0.3125276864, -0.4496436715, 0.0072219889, 0.0733255446, 0.0702341795, -0.1285080016, 0.4187529981, 0.2382331342, 0.5921287537, -0.1890990734, -0.1917974651, -0.3901130259, 0.162003696, -0.0242512263, -0.0806820095, -0.1342095435, -0.1172408462, 0.0287153497, 0.1857182086, 0.3021776676, 0.2262214124, 0.4093022645, 0.7774031758, -0.7687119842, 0.3445774615, 0.548412919, 0.0166107714, 0.2883964479, -0.4576828778, 0.105529584, 0.0982182622, 0.070103474, -0.1629557312, 0.1360920966, -0.1112961397, 0.4854992926, 0.4085147977, 0.0094628753, 0.2190805674, 0.0452284552, -0.0994832814, -0.0069262926, 0.2882493436, 0.1570017934, -0.3998828232, 0.3899233639, 0.1509766728, -0.3530231714, -0.0133960648, -0.0381183513, -0.0698921829, 0.0284146499, 0.1696026325, -0.0696123093, 0.1263612956, 0.0230910163, -0.0503876917, 0.0390207395, 0.3577445745, 0.0982687846, 0.1786690652, -0.2670297623, 0.0021820657, 0.180381164, -0.0868265554, -0.2147702873, -0.2107265592, 0.4449526966, -0.2914394736, 0.1601670831, -0.1885024309, -0.1079748794, -0.0824635997, -0.0370009877, -0.7148555517, 0.004623224, -0.3284472525, -0.5302844048, 0.0987182707, 0.2186241448, 0.0992480814, -0.0171715003, 0.0548750013, -0.2308283448 ]
https://github.com/huggingface/datasets/issues/2067
Multiprocessing windows error
Now I understand The error occures because the script got restarted in another thread, so the object is already loaded. Still don't have an idea why a new thread starts the whole script again
As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 When using the num_proc argument on windows the whole Python environment crashes and hanging in loop. For example at the map_to_array part. An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop
34
Multiprocessing windows error As described here https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 When using the num_proc argument on windows the whole Python environment crashes and hanging in loop. For example at the map_to_array part. An error occures because the cache file already exists and windows throws and error. After this the log crashes into an loop Now I understand The error occures because the script got restarted in another thread, so the object is already loaded. Still don't have an idea why a new thread starts the whole script again
[ -0.1712802351, -0.6625726223, -0.0156674422, 0.3150124848, -0.0103679048, -0.0258935057, 0.1337392032, -0.1321053058, 0.0881272927, 0.2671470046, 0.2327954173, 0.0681706592, -0.1253812611, -0.0673757866, -0.1413183808, -0.0939046815, 0.0912754834, -0.0172673017, 0.2123173773, 0.2924873233, -0.4489223659, 0.4319568574, -0.2962611318, 0.1619101614, -0.421371609, -0.0308510326, -0.2437838614, 0.5600072145, 0.3595533371, -0.4632329345, -0.0308157504, -0.3616606593, 0.242113784, 0.1394911855, -0.0001222365, -0.1207989231, 0.0044936491, 0.033482004, 0.4292654097, 0.2617118359, 0.2565514743, 0.1222394034, 0.0499279834, -0.086263217, 0.2329552621, 0.3592972159, 0.1269485205, -0.0144654037, 0.435466975, 0.2034127861, 0.081390135, 0.3555282354, -0.0857625306, 0.0056751124, -0.3969978392, -0.5251867771, 0.0046938467, 0.296762079, 0.5274702311, -0.3028687239, 0.0461271293, 0.1945873648, -0.2724513113, 0.1417521685, -0.2901107967, -0.0503192134, 0.4512546062, -0.4748882651, 0.1035405695, -0.0433437228, -0.0536869764, -0.135243997, 0.3585697412, 0.0834635496, 0.0728167146, -0.7990484834, 0.0103995372, 0.1902164072, -0.2553434074, 0.0968996882, 0.0283485446, 0.0178154781, 0.0180600472, -0.2019289434, 0.2141692638, -0.0824941248, 0.0619111918, 0.2800356448, 0.1466713697, 0.5134992599, -0.1706374735, 0.277717948, -0.0876688287, 0.0011063546, -0.393227011, 0.0370174386, 0.1774583459, 0.2775435746, -0.2528110743, -0.0979537889, -0.0176563635, 0.1252791137, 0.1939220726, 0.1167159677, 0.2955617309, -0.2059349567, 0.093926087, -0.7193556428, 0.2374638915, -0.388664484, -0.3085563183, -0.1262358278, 0.0120177548, -0.4726980627, 0.5541787148, 0.4347581863, 0.3090137541, 0.0277840849, -0.3281406164, 0.2083694041, -0.034787681, 0.0783002675, 0.198910296, 0.239233613, 0.2733896673, 0.7265439034, -0.003745313, 0.0854377449, -0.6531367898, 0.1251110137, 0.012079115, 0.0753923133, -0.2927780449, 0.2110491991, 0.1864274442, -0.0895859525, 0.2464867532, 0.247114256, 0.2002476752, -0.4891739488, -0.0408619978, -0.1518590301, -0.1792335659, 0.2111969888, 0.301697731, 0.1857575476, 0.0291874707, 0.1140999198, -0.0160733312, 0.2811366618, -0.4462317228, -0.4116554856, -0.1033917293, 0.0195805319, 0.4211142659, 0.4560448825, 0.2546273172, -0.189474225, 0.2538908124, -0.2814011872, -0.0544107147, -0.4615579247, -0.3425109684, -0.3588590324, -0.2177267373, 0.3895012736, 0.0493823811, 0.2522603273, 0.3038574159, -0.1281826049, 0.031497784, 0.2952197194, 0.1101753861, -0.0572131313, -0.2617500722, -0.0374991, -0.3009827137, -0.2548570335, -0.0252919551, 0.1373520195, -0.1725199372, 0.0516206175, 0.2739415765, 0.1959228069, -0.0675696954, -0.289293468, 0.4228893816, -0.3635503054, -0.191692099, 0.198020637, -0.1281659305, 0.222415328, -0.140515998, -0.070459798, 0.0285913851, -0.014097129, 0.0600579903, -0.0747783706, 0.3166644871, 0.0692888871, -0.1556328684, 0.2202439159, 0.1203230992, 0.0767460242, 0.1401013285, -0.2823577225, -0.1525945812, 0.0815181881, -0.1464047432, -0.0648123547, 0.4011064172, 0.0777118206, 0.1414188296, 0.2770754695, -0.1633779258, -0.2156057209, -0.0240558311, 0.0627137199, -0.1123356, -0.2868497372, -0.0649839416, 0.5646055341, -0.0967249125, -0.1501531303, -0.1792101413, -0.084184967, -0.3506614566, -0.2286667973, -0.0900258496, 0.309799999, 0.3073635399, 0.0568664819, 0.1322546899, 0.286167562, 0.1692413688, -0.1924746037, -0.1999476403, -0.0042843847, 0.1124609783, -0.2249930948, 0.1471296251, -0.096114181, 0.1865076721, -0.3468336165, 0.5800673366, 0.0672755763, 0.0132127935, 0.1750359237, -0.0966914296, 0.0544388928, 0.091822423, -0.0746487975, 0.1807292104, 0.1711860895, 0.3868529797, 0.2444774806, -0.092814602, -0.2572660446, -0.4158340991, 0.0337530226, 0.2161752433, 0.1949464381, 0.015319244, -0.0202912595, -0.1501758248, 0.1898728907, -0.1834149361, -0.433026731, 0.7109693885, 0.0500395261, -0.2200759798, 0.3194895089, -0.3909804523, -0.1599503905, 0.1458372176, 0.0703841299, 0.2738212645, 0.1810697913, -0.133786574, -0.0707348287, -0.1608112156, -0.1408388764, -0.110271208, 0.0310026985, -0.3158796728, 0.1546570212, -0.0556711666, 0.528881371, -0.5717420578, -0.2965102792, 0.1039448231, -0.1431490779, -0.0262529291, 0.4722509682, 0.0434093289, -0.1602645516, 0.1058797762, -0.0084896497, 0.0533193052, 0.4678295553, 0.2351026237, -0.1078582853, -0.0809371546, -0.1481267214, 0.2720521688, -0.2653985322, 0.2656961381, 0.2764617503, 0.0217560809, 0.0874207541, 0.1147224829, -0.0754919201, 0.0789231211, 0.2230226994, 0.0363000929, 0.1391551793, 0.2482610792, -0.3195885122, 0.0739613995, -0.3315232694, 0.1612982005, 0.1816623211, 0.0405378118, -0.4710933864, -0.1950658858, -0.190116331, -0.2966616452, -0.0453178212, 0.0324398093, -0.1622371376, 0.2462159693, -0.294074893, 0.0460798331, 0.0580275916, 0.3004619181, -0.129750222, -0.1775104105, 0.1552205086, -0.2279863954, -0.1865616441, -0.1770905256, 0.2402940094, 0.0929946601, 0.052962672, -0.2480440587, -0.3508507311, -0.4391508996, -0.0310792625, 0.0163283851, -0.0975261927, 0.2750752568, 0.3872765005, 0.1705059707, -0.1009671092, 0.0555063151, -0.2020671666, -0.0402286164, -0.0234499462, 0.0423743166, 0.2111393213, 0.2805839479, -0.1063537374, 0.3829609454, 0.4770343304, 0.0414052457, 0.2799217105, 0.0125134094, 0.0776946545, -0.0477387533, -0.2113066912, 0.0037536549, -0.4706318974, -0.2145149708, 0.1437372565, 0.0838951841, -0.288659513, -0.2216685563, 0.1442610323, -0.350061208, -0.0793586671, 0.0541353449, 0.0339801461, 0.0921733156, -0.1049751267, -0.0596943349, 0.1124160513, 0.181138128, -0.1717079282, 0.2231995612, -0.0951152667, -0.2706494629, -0.1406403631, -0.5947111249, -0.3499529958, 0.341729939, 0.1260495931, 0.5890110135, 0.0895907506, -0.0641689673, 0.0816212818, -0.3378754556, 0.8207420111, -0.065540798, -0.1296045482, 0.1744305193, 0.1124784872, -0.0312461201, -0.094913289, -0.1349957436, 0.3841557801, 0.1649088115, -0.0557236187, 0.3446403742, -0.0021252856, 0.1797368973, -0.0345725343, -0.290997237, -0.1793408543, -0.3707649112, -0.3636799455, -0.1076548323, 0.2095052749, -0.1274854839, -0.0236973614, -0.4341151118, 0.0418974161, 0.1732736528, -0.0798303634, 0.140471831, -0.0837763995, 0.0148606403, -0.103588447, 0.1190161332, -0.3424037993, 0.3403812647, -0.1229401976, 0.0551146269, -0.1224788055, 0.2570063174, 0.2643356025, -0.0448443517, 0.3813433051, 0.395442307, 0.1493108124, -0.0161913298, -0.2516631484, 0.4158469439, -0.2576269209, -0.294696629, 0.345062077, 0.2340321243, 0.0213784967, 0.2116397619, 0.2932528853, 0.1255913526, -0.081334874, 0.5608875155, -0.4173086286, 0.0470745489, -0.0599351563, 0.0335557498, 0.9265300035, 0.035854008, 0.0867684707, 0.0082212733, -0.5504250526, -0.2822490633, -0.0451646671, 0.3286791444, -0.3502973318, -0.1361199766, 0.0089700539, -0.1274158061, 0.1531511396, -0.1018991247, -0.1959344596, 0.4001798034, 0.1483274251, -0.3079220951, -0.1486428976, -0.0966608524, -0.164638564, -0.0711883381, 0.2568956912, -0.0241655409, 0.0893412009, 0.0283763707, -0.3298294544, 0.2616399825, 0.5286320448, -0.4312006533, -0.5639268756, -0.000457535, -0.2029899955, 0.1560373902, -0.0868647397, 0.194795534, -0.0262313727, 0.2657793462, 0.141967997, -0.1294589341, -0.0589213781, 0.0733949989, 0.4570515156, -0.1165484041, -0.0910662711, -0.0654594526, 0.0978857428, -0.0743600279, -0.3104975522, 0.2991292477, -0.0740034133, -0.1595828831, -0.3790313303, 0.5051358342, 0.1566806138, 0.1328506023, -0.2049626261, 0.3506375253, -0.1390285045, -0.2063414752, 0.0444590449, 0.0948350206, -0.3500113487, 0.5624647737, -0.6116797924, -0.2383798212, 0.0060328706, 0.0321158916, 0.1679862142, -0.1139454916, 0.1524103731, 0.3349119425, -0.0759724677, -0.1907877475, -0.1088609397, -0.3942106962, -0.1200075746, 0.0389368869, 0.4378998578, 0.0002708394, 0.2621944845, -0.2192180902, -0.0777877271, 0.1711066216, -0.0149275521, -0.417588681, -0.1179724559, -0.1142515764, -0.0714264363, 0.1889410913, 0.1612701863, 0.2009699047, 0.1111762226, 0.164079994, -0.219537884, 0.0823163167, -0.0474082157, 0.1464528888, 0.1621139497, -0.1990695149, -0.1465610266, 0.2585707307, 0.0245453231, 0.4314081371, -0.2868159711, -0.0769869983, 0.057071384, 0.1320337951, -0.0644742176, -0.0365767665, -0.0353917219, 0.0095986025, 0.2040281147, 0.058275681, 0.2116214335, 0.1442634463, -0.2677048147, 0.1681721956, 0.1561325043, 0.2494695783, 0.1621614695, 0.245775789, -0.3181505799, 0.5134387612, 0.1124681756, -0.0278225094, -0.0005712804, 0.0400096513, -0.1952533275, -0.0510663055, 0.0564310327, -0.0984672606, -0.1498731077, -0.0840788484, -0.2677917778, -0.2255558074, 0.2083292156, 0.2334268242, -0.2001184374, 0.2424755245, 0.1890735179, 0.1392058134, -0.193406567, 0.0525157861, -0.0452374145, -0.1418329924, -0.1784321219, 0.3279671967, 0.1838319749, -0.4275369644, 0.2650910914, 0.0149866473, 0.2709153295, -0.4879364967, -0.3058972955, -0.0797514692, 0.2495057881, 0.0095331231, 0.0767496005, -0.0364943184, 0.102605924, 0.4438363314, 0.0543629639, 0.0917529762, -0.1511088908, 0.0878975093, -0.0865114853, -0.244827956, -0.2210733593, 0.1313739866, -0.30526191, 0.3262872696, -0.1548381299, 0.2347451597, -0.4640167654, -0.1389040351, -0.3260338306, 0.3793185949, -0.3193276227, -0.1442806274, 0.0801299065, 0.0533326119, 0.2540439963, 0.1909760237, 0.3202548027, 0.0993747786, 0.4818068743, 0.1911095977, -0.2494705915, -0.0012371507, -0.2800085545, 0.1448805183, -0.0572532043, -0.2016796321, 0.1751735061, 0.4624050558, 0.0902821273, -0.2143952996, 0.0289504807, 0.5371638536, 0.3760202825, -0.602648437, 0.0254007895, 0.1568650007, 0.1501507908, 0.0114980908, 0.082356751, 0.1165108159, 0.4138921201, -0.0726362467, -0.0104028098, -0.0806679279, 0.0776942968, 0.364861995, 0.0987103954, 0.0797965527, 0.2144236267, -0.0490418114, -0.2185254693, 0.0099379085, 0.3268943727, -0.5410402417, -0.0742498636, 0.272012949, -0.4377065301, -0.0155204553, -0.0675475597, 0.0392594598, -0.1036550179, 0.2238064706, 0.1228398085, 0.2415562868, -0.3114248216, -0.1531738341, -0.3678252995, 0.1148422286, 0.0406419933, 0.0105969077, -0.1038685814, 0.0180822611, -0.2068792433, 0.016151391, 0.1446882486, 0.0786629394, 0.3608982265, 0.6846514344, -0.4715279043, 0.2879042923, 0.293522805, -0.0875191018, 0.1742290407, -0.2717558742, 0.2150816917, -0.1240825877, 0.0359040573, -0.2507131398, 0.1639461815, -0.0206911117, 0.452136457, 0.3375710547, 0.0082046948, 0.2294492871, -0.0757413208, -0.01409523, 0.0696138218, 0.2363661081, 0.247717604, -0.4594483674, 0.2727326155, -0.0016648228, -0.3605325818, 0.0471049696, -0.020984089, -0.0597326085, 0.0105360653, 0.090935275, -0.0181485098, 0.0759610757, -0.0991717875, 0.0992538109, 0.0296012498, 0.5115151405, 0.1061002389, 0.2029325366, -0.1598652899, -0.0262173302, 0.1000171378, -0.0006498184, -0.2621958554, -0.3264175355, 0.5467153192, -0.6228096485, 0.1241493598, -0.052309908, -0.078027226, 0.0303109512, 0.0533568338, -0.712100327, 0.2988538146, -0.3098045886, -0.5994614959, 0.2013067454, -0.1033975706, 0.1641587913, -0.118436873, 0.2232940197, -0.1611694545 ]
https://github.com/huggingface/datasets/issues/2065
Only user permission of saved cache files, not group
Hi ! Thanks for reporting. Currently there's no way to specify this. When loading/processing a dataset, the arrow file is written using a temporary file. Then once writing is finished, it's moved to the cache directory (using `shutil.move` [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1646)) That means it keeps the permissions specified by the `tempfile.NamedTemporaryFile` object, i.e. `-rw-------` instead of `-rw-r--r--`. Improving this could be a nice first contribution to the library :)
Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
67
Only user permission of saved cache files, not group Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? Hi ! Thanks for reporting. Currently there's no way to specify this. When loading/processing a dataset, the arrow file is written using a temporary file. Then once writing is finished, it's moved to the cache directory (using `shutil.move` [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1646)) That means it keeps the permissions specified by the `tempfile.NamedTemporaryFile` object, i.e. `-rw-------` instead of `-rw-r--r--`. Improving this could be a nice first contribution to the library :)
[ -0.1139015034, 0.2815681696, -0.078934975, 0.1177363172, -0.0259674694, 0.0905663073, 0.4060144722, 0.1146639213, -0.0934795439, -0.0789992288, -0.1739812642, 0.1220879406, -0.0590264425, -0.209066838, -0.0211600438, 0.0670155138, 0.1375489682, 0.1199801043, -0.0209173057, -0.0775221959, -0.0809949413, -0.0633885786, -0.0703818277, -0.022465717, -0.1490497291, -0.2274234593, 0.2636187375, 0.2165787369, 0.0505267903, -0.2489472628, 0.3933260739, 0.5603932738, 0.0788720995, 0.0368108675, -0.000116711, -0.1258151382, 0.0032831787, -0.1000816077, 0.0103595434, 0.1562260687, 0.0038824587, -0.196580261, 0.0558964461, -0.1056091636, -0.0717569739, -0.0097515667, 0.0705221668, -0.6625339389, 0.5320054293, 0.0911223739, 0.1612340808, -0.0026605267, -0.1905546337, 0.2374726087, 0.3361727595, 0.0495368913, -0.2999816239, 0.1237212792, 0.2532834113, -0.1594289094, -0.0995530635, 0.1485674083, -0.2521521747, 0.1400247216, 0.271812886, -0.0997621194, -0.4176006317, -0.4772850275, 0.08092051, 0.2960630655, 0.7476208806, -0.2350282222, -0.602838397, -0.3080025911, 0.0544240065, 0.041343011, 0.4234347939, 0.3541356623, 0.0877570882, 0.2651183307, -0.2606978416, -0.0438044071, -0.2725632191, 0.0707760602, 0.3593449891, -0.0616405867, -0.0856517926, 0.1499900818, 0.1002018079, -0.111253649, 0.1271583438, 0.1506173313, -0.3372894526, 0.4744042754, -0.3153333664, 0.1050163358, -0.2302901745, 0.2877422273, 0.1954167783, 0.4209027886, 0.2329916954, 0.2070784718, -0.0053031929, 0.170539096, 0.113896355, 0.2038521171, 0.3360156119, 0.3591207266, 0.5324924588, -0.2701564133, -0.0247046184, -0.0427585207, 0.0312548243, -0.367264837, 0.10352166, 0.1941139102, 0.0301707257, -0.2266285568, 0.2046465576, 0.0779341534, -0.1002266258, -0.1675163954, 0.0820592418, 0.2720397711, 0.0798466206, 0.0128088212, 0.0658997521, 0.1747444719, 0.0094334492, -0.2159387767, 0.0131437816, -0.3183416426, -0.3558567762, 0.4290777445, 0.4010542929, -0.2912053466, 0.0979931206, 0.1806640178, 0.1176943555, -0.1855772436, 0.4365369081, -0.1271781474, 0.4656576514, 0.4169453084, 0.1208034158, 0.3317728639, 0.0265741292, 0.0928412601, -0.1925934106, 0.2829543054, -0.2726328373, -0.2166963518, 0.1752182245, -0.0269473009, -0.1224508509, 0.2985427082, -0.4154496491, 0.0384294502, 0.5024690628, -0.1370155215, 0.5040852427, 0.2393236011, -0.0870363638, -0.4691594839, -0.1199880764, 0.3807287216, -0.210547626, -0.0402142927, -0.1333296895, -0.0546318814, -0.0819174573, 0.4235099256, -0.1099723503, 0.0455710217, -0.1004367694, 0.2615793645, 0.567519486, -0.1785281003, -0.5578050017, 0.0242959838, 0.2172668278, -0.1352311075, 0.1179337278, 0.0860397145, 0.1229751259, -0.1273265779, -0.2840528786, 0.3851828277, 0.2767722607, 0.2349369824, 0.1342642605, -0.0928195119, 0.0077563771, -0.0463663302, -0.0722499713, 0.0897892118, 0.3758876026, -0.3563420773, 0.2464518845, -0.224375844, 0.2806276381, 0.4626383185, 0.1498912573, -0.0122644473, -0.0047415323, -0.0646030232, -0.5048745275, 0.2847753465, -0.1048583314, -0.3897145987, -0.0608882494, -0.4528695643, 0.1028999016, -0.1895224601, -0.2636233866, -0.1018765867, 0.0171873569, -0.1585027426, 0.0539397262, -0.341131866, 0.0777297691, 0.3728661537, 0.125647366, 0.0926503465, -0.3170213699, 0.1152754053, 0.0476626866, -0.1084340885, -0.2096910179, 0.0605445728, 0.172661528, -0.0020273409, -0.2862122357, 0.3028356731, 0.1127103269, 0.1189714596, -0.0751324296, 0.3147706091, -0.0050381105, -0.0476805866, 0.1310378909, -0.2222435623, -0.0586357377, -0.0701222271, -0.2442378402, 0.4377450645, -0.1195917949, 0.0303492285, -0.2249271274, 0.1831503063, 0.1323625743, 0.0465714745, -0.2125599086, -0.1815370768, -0.0345942602, 0.1969382912, 0.3852102757, 0.1386467218, 0.0139448, 0.0297812447, 0.4034450352, 0.2228406668, 0.1470015645, -0.0202919096, -0.2516338229, 0.0367878862, 0.3316293061, 0.3446903825, 0.2373871505, 0.023981072, 0.2902218401, -0.2486604452, 0.3055889904, -0.1137608066, 0.0203508437, -0.0909838155, 0.1459849328, -0.179455027, -0.1096837521, -0.0330919884, -0.1341073364, 0.2339396775, 0.0153263388, 0.0891914964, -0.3397916555, -0.1028057486, -0.2307841331, -0.1499903649, 0.2217224091, -0.1383294463, -0.5088288188, -0.0281065907, -0.2192547172, 0.213523671, -0.0701656342, 0.1367034614, -0.35606879, 0.0911143869, -0.0506913513, -0.2864061594, -0.2728373706, 0.118855767, 0.0805143043, -0.0211582035, 0.2400400788, -0.517811358, 0.2112212777, 0.1159662306, 0.2316276729, -0.3298775256, 0.0041564661, -0.1636850834, 0.0082725678, 0.0884403437, -0.2788842916, 0.1476424336, -0.1584486514, -0.0314578973, -0.1058920249, -0.3152568042, -0.2138489634, 0.0034108483, -0.0378889143, 0.1163535938, -0.2580218017, -0.1951406598, -0.1801883727, -0.1853002459, 0.6918118, 0.1287396848, 0.2276197672, 0.1614704728, -0.1822323948, -0.2958166003, -0.2885791659, 0.1839359701, -0.3551092744, -0.4615794122, 0.3765579462, -0.4756706655, -0.3748242259, 0.1581174731, 0.0823030323, 0.1495984048, 0.422141552, -0.0201902837, -0.0683135092, -0.2880265117, 0.2520216405, -0.2304073572, 0.1999936402, 0.0781799033, 0.0989564061, 0.1633313149, -0.0432468392, -0.1822210848, 0.1520092487, -0.0296813864, -0.2216468453, 0.187508285, 0.0989710763, 0.0829667002, 0.8199111223, 0.4076656997, 0.2582352757, 0.3022815287, 0.3216725588, 0.6892606616, 0.0174006652, -0.0783382729, 0.1767950356, -0.0483373292, 0.0242171735, 0.0791792944, 0.1321075857, -0.135253638, 0.0937079042, 0.0507771038, -0.2705011368, -0.470499903, -0.1525460929, -0.2357133776, 0.1107388511, 0.0367630124, 0.0643660054, -0.2348636836, -0.2928417027, 0.0268228184, 0.3534123302, 0.1891916841, 0.2868798077, -0.2567985952, 0.0482532755, -0.2922353745, 0.3158988655, -0.0602935925, 0.4820710123, -0.0832088292, 0.1553488225, 0.2287255228, 0.3111585379, 0.3185235858, -0.3472433388, 0.1643470377, -0.1408589184, 0.2853547037, 0.108284317, -0.2087886482, 0.401072979, 0.3412343264, -0.0338106863, 0.0638151169, 0.0110957604, -0.2834743857, -0.4190142155, -0.1038153768, -0.0551012494, -0.1089517623, 0.0691466033, 0.1411434859, -0.2338647991, -0.0733920559, 0.2750279307, -0.3893101811, -0.0773519725, -0.1078074947, -0.1599098444, 0.0854545459, -0.0013959432, 0.0076042912, 0.4725324512, -0.0421460047, 0.034012679, 0.4962305129, -0.0198784806, 0.1219226271, 0.4359250367, -0.2414423674, 0.2070130259, -0.2778049409, -0.1987350583, 0.331071347, 0.0602589324, -0.4291296601, 0.1276286691, 0.0201114379, -0.2026460022, -0.1888418645, -0.0283499714, -0.0712694526, 0.0543354936, -0.124055028, -0.6317942142, 0.3504830003, 0.5621967912, -0.3145399392, 0.4633366168, -0.0760667697, -0.3373921216, 0.1291895211, 0.193905279, 0.7914406061, -0.2412728518, 0.3664585352, -0.3410951495, -0.1755134612, 0.211001277, -0.282366544, 0.0596076287, -0.5691586137, -0.1315511763, -0.1090267822, -0.1261411309, 0.046441108, 0.3606371284, 0.1235217825, 0.1501411945, -0.0942051336, -0.1214988008, -0.2578488886, -0.1336310804, -0.1990876794, -0.4416546226, 0.1040554196, 0.0868752301, -0.2521272898, 0.0333766751, 0.0072982986, -0.0797547773, -0.1753617078, 0.1946574748, -0.3510727286, 0.0094865384, -0.7321102619, 0.0555465035, -0.080233328, -0.0746985823, 0.2835648656, 0.2419908494, 0.2655455768, 0.2817910314, -0.0689845532, -0.0305945929, 0.3015553057, 0.077815555, -0.2495247424, 0.0909424126, 0.3329409659, 0.156789571, 0.1441714764, -0.2441052347, -0.2336913198, -0.3097154498, -0.1336857527, 0.1679015607, 0.0677963793, -0.2180728912, 0.071401082, -0.1252464354, -0.0280518588, 0.0517563671, 0.0343223251, 0.5124652982, -0.0132185826, 0.4656540155, -0.2672815621, -0.2642107904, 0.0839683935, 0.4322428107, -0.0469505079, -0.1442739666, 0.3026230931, -0.1680921912, -0.2374900281, -0.1343245506, 0.1846392751, 0.2124636173, -0.401337415, 0.0148737878, 0.1795179248, -0.1259722561, 0.1792056859, -0.327553004, 0.021311665, 0.1581572294, 0.0497782826, -0.3807333708, -0.5134576559, -0.1981329471, -0.4549817443, 0.3089855909, 0.1454055011, -0.5356981158, 0.1161703542, 0.033056628, -0.1889785677, -0.1897198707, 0.0723732114, 0.0774192214, 0.2964612842, 0.0987271219, 0.0496409088, -0.1879547834, -0.1491694301, 0.000780574, -0.1911096126, -0.1184911281, -0.1599259675, 0.1777964681, 0.1436587274, -0.4071886539, 0.0635765269, -0.48779881, -0.073001124, -0.4753146768, 0.0746759847, 0.2586326599, 0.2049438506, 0.2999977469, 0.1583275497, 0.0145296166, -0.2263755947, 0.1782143116, -0.1482937038, -0.2318180501, -0.2076488733, 0.2373398989, -0.3053379953, -0.0793286711, 0.1403387189, -0.0858810395, 0.1546075344, 0.0271944311, 0.0724035949, -0.0131035028, -0.1753617227, 0.0859600306, 0.3437353969, 0.1427192688, -0.0076092556, 0.006148295, 0.2816978991, 0.0391887091, 0.0377501175, -0.1642238945, 0.14902924, -0.1591277272, 0.0612398051, 0.3540749252, 0.2451788187, -0.208947897, 0.0863949433, -0.0996055454, -0.0632213876, -0.387013942, 0.3799759746, 0.0562498271, 0.0336999968, 0.0328030027, 0.45858109, 0.2209553272, 0.1694633216, 0.3566693068, 0.1039141417, 0.2019501328, 0.3703954816, -0.3335015178, 0.1243402809, -0.6093456149, -0.0281001292, 0.004825816, 0.141086638, 0.3332569599, 0.1562319547, 0.3620609045, 0.0606897697, -0.3311571777, 0.0909836516, -0.0658277199, -0.0824802816, -0.1936387271, 0.0794835612, 0.1319948882, 0.0149347959, -0.2887558043, -0.2105187923, -0.2986365855, 0.2438524961, 0.2141696364, 0.1617500633, 0.0301157292, 0.0433979966, 0.2481652498, 0.1113494858, -0.1465819031, -0.0988863409, -0.4035574198, -0.1335454285, 0.0792052895, 0.0598202311, 0.0888801068, -0.021252986, 0.1280929595, 0.2367847264, 0.338529259, 0.0524068214, -0.175623253, 0.3021788597, -0.0864289925, -0.3494772613, 0.0830564648, -0.0535136499, -0.0362731703, -0.0512061939, -0.2340819836, 0.049914062, 0.0819537044, 0.082050316, -0.1632025689, -0.510789752, 0.0352267995, -0.0256898999, 0.2329095006, 0.025345508, 0.6404662132, 0.0133884186, 0.1071327552, -0.5667569637, 0.004858552, 0.4031060934, 0.3281867206, 0.409724623, -0.0184146706, -0.0437029302, 0.1009415835, -0.4795346558, 0.052347552, 0.2027023584, 0.3064163029, -0.044740811, -0.1551601887, 0.1562258899, -0.0614792369, 0.5907257199, -0.1586552113, 0.5455063581, 0.332640022, -0.1861790419, -0.220708698, 0.1499759853, -0.0290153623, 0.141105324, -0.4260405302, 0.1080253646, 0.1458361596, -0.0343257822, -0.2017917335, -0.1392671764, 0.1758232564, 0.409265548, 0.5364009738, 0.2565688193, -0.0738737136, 0.0687806457, 0.2827916741, -0.4558797777, 0.0972408801, -0.2218224406, -0.1009797528, -0.2170021683, 0.1411428005, -0.4870670438, -0.0799454078, -0.4224964082, -0.0424932167, -0.141192317, 0.2920137048, 0.0026113603, 0.1995503604, -0.1077637896, 0.077413097, 0.2919273078, 0.2175250649, -0.1232664436, 0.2709346116, -0.5050196648, -0.2647051215, 0.3797587156, -0.3792262077, -0.1379087865, 0.1169537082, 0.4003454149, 0.2882567942, -0.1926325411, -0.2629815042, 0.2095756829, 0.2626619339, -0.344614923, -0.1446556151, -0.0922443643, -0.3116264343, 0.1402197331, -0.1682659239, 0.5989022851, 0.0917779356, -0.1789318621, 0.065000698, -0.2615371644 ]
https://github.com/huggingface/datasets/issues/2065
Only user permission of saved cache files, not group
Hi @lhoestq, I looked into this and yes you're right. The `NamedTemporaryFile` is always created with mode 0600, which prevents group from reading the file. Should we change the permissions of `tmp_file.name` [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1871) and [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1590), post creation to 0644 inorder for group and others to read it?
Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
47
Only user permission of saved cache files, not group Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? Hi @lhoestq, I looked into this and yes you're right. The `NamedTemporaryFile` is always created with mode 0600, which prevents group from reading the file. Should we change the permissions of `tmp_file.name` [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1871) and [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1590), post creation to 0644 inorder for group and others to read it?
[ 0.0629380941, 0.035980925, -0.1101711914, 0.2581421733, 0.0601992607, 0.1329316199, 0.346363008, 0.0934352875, -0.2962670326, -0.0303033683, -0.2803180814, -0.052603744, 0.0845716819, -0.3134354651, -0.0208832379, 0.0789134577, 0.0993252993, 0.046586249, 0.0940524414, -0.0247986987, -0.1166854426, -0.0544998124, -0.0450048037, 0.0221964438, -0.3177737594, -0.1033814847, 0.1908843368, 0.2698516548, 0.1508686393, -0.2002585083, 0.2497225851, 0.4694800079, 0.0598714463, 0.3494141698, -0.000114599, -0.1124706343, 0.0119848968, -0.1353014261, 0.1181617975, 0.1928918511, -0.0182463825, -0.2213337272, -0.1113026515, -0.152967602, -0.1610848308, 0.0837542266, 0.1846528202, -0.5527175069, 0.5385575891, 0.1245618314, 0.1720824242, 0.0057430556, -0.1951499134, 0.2009533197, 0.2407549173, 0.0036829843, -0.3262528479, 0.0302172545, 0.2792115211, -0.0454502441, 0.0020830345, 0.1100868285, -0.3180337548, 0.0531960092, 0.2149994075, -0.0566226207, -0.3709009588, -0.5180929303, 0.0947928429, 0.1781880409, 0.6756843328, -0.1113856435, -0.535328567, -0.2812235355, -0.0895611569, 0.0903985947, 0.4896014333, 0.3181556761, 0.0230459291, 0.3016810715, -0.3137833178, 0.0671202689, -0.3229382336, -0.044580102, 0.28220433, -0.0871291757, -0.1731176078, 0.0809838772, -0.0632287115, -0.1068555936, 0.0429087542, 0.0462720916, -0.2184241265, 0.3654841185, -0.1981413662, 0.1555487067, -0.1800211966, 0.2678590715, 0.1111991704, 0.1944088936, 0.2835126817, 0.1963797659, 0.0309711844, 0.1938634217, 0.02469722, 0.1463094503, 0.287943095, 0.3549539149, 0.5183435082, -0.3496188819, -0.199503392, -0.0610196851, -0.0284249131, -0.3210824132, 0.0414985456, 0.158201918, -0.0354947224, -0.2328119576, 0.2620950937, 0.0351256803, -0.071261622, -0.160662204, 0.0406595692, 0.1971993595, 0.0480622351, -0.0866670385, 0.0407199785, 0.1288429648, -0.0269407034, -0.2982854247, -0.0283729173, -0.4603440464, -0.3541781902, 0.4744063616, 0.3691007197, -0.2717590034, 0.093680881, 0.0842931345, 0.1707915962, -0.2367325723, 0.3412822485, -0.1333998889, 0.5103940964, 0.4080187976, 0.2221878618, 0.3522748649, 0.0669593513, 0.0441812389, -0.1179875582, 0.2986827195, -0.301373899, -0.2637015879, 0.3343164921, 0.0149556976, -0.0801655054, 0.3795681298, -0.2512300611, 0.0185796041, 0.6816849709, -0.170980975, 0.3515648544, 0.2320220619, -0.2374747097, -0.5314837098, -0.1516960412, 0.3780291677, -0.1693878025, 0.0742440224, 0.0357904285, -0.0674912706, -0.1018868536, 0.4217511117, 0.0083621666, 0.0582153834, -0.1198584661, 0.2898955941, 0.47256881, -0.1939908713, -0.5428637862, 0.1267786324, 0.1299711168, -0.0664727241, 0.3089479506, 0.046478048, -0.0427412055, -0.2918026149, -0.1804216504, 0.1915936321, 0.2120323777, 0.190174073, -0.0247664992, 0.0432116464, -0.0482287779, -0.0622347593, -0.130025655, 0.198594138, 0.3295985758, -0.3414550722, 0.2142968774, -0.1713819057, 0.2108120024, 0.4186026156, 0.073629953, 0.0669043735, 0.0291219708, -0.0163309406, -0.4610421956, 0.2555758357, -0.0218508095, -0.4010992646, 0.005440772, -0.491440624, 0.1290145069, -0.3363106251, -0.340608418, -0.0647973269, 0.0632672682, 0.0183589812, 0.0761866197, -0.3664521277, 0.2044516504, 0.5146682262, 0.1338812858, 0.0282467399, -0.2692756057, 0.0394069254, -0.1339568198, -0.0865269154, -0.2505770326, 0.0464061387, 0.2739408612, -0.0465334989, -0.2661622763, 0.297026217, 0.0823473483, 0.1673611701, -0.1172358394, 0.3938718438, -0.0788087249, 0.0712934509, 0.067354694, -0.232441619, -0.0185895357, -0.1873428971, -0.2011201382, 0.397130549, -0.0731999353, -0.0277612507, -0.2225705683, 0.0198584627, 0.1111689955, 0.0375961885, -0.2298994958, -0.1336541772, 0.0004845816, 0.2611471415, 0.3052660525, 0.1462406218, 0.0192765463, 0.0581715181, 0.395688951, 0.1736740768, 0.0108148688, -0.1291415244, -0.1472676247, 0.0067961137, 0.2061496973, 0.1864341646, 0.2714274228, 0.0716432109, 0.3254536092, -0.1534225941, 0.3050519526, -0.2041755617, 0.0301483199, 0.043462038, 0.0867623016, -0.1232262999, -0.1194541529, -0.0113526713, 0.0347758159, 0.3009334505, 0.1134382859, 0.0465251394, -0.4610218406, -0.0870066881, -0.0742905065, -0.2454037517, 0.1902792156, 0.0319871269, -0.5370316505, -0.0665605515, -0.2675865889, 0.2792452872, -0.0333693288, 0.0761398673, -0.2946608663, 0.1234036312, -0.01750613, -0.1909072399, -0.3536761403, 0.1222710535, 0.0023421289, 0.0004378135, 0.2619787753, -0.6254092455, 0.2411461025, -0.0882333592, 0.2667477131, -0.0968480557, 0.0500754826, -0.118567951, -0.1074602157, 0.1476895213, -0.4817627966, 0.110973537, -0.180828914, 0.0987092406, 0.0289318003, -0.2333099395, -0.257820189, -0.0169469938, 0.0593120828, -0.0710197315, -0.2332140356, -0.2273845822, -0.1899103075, -0.1511597931, 0.5195327997, 0.1057154387, 0.2691642344, 0.2244835049, -0.3414489031, -0.2507656813, -0.2969976962, 0.2749944031, -0.4282777607, -0.5996937156, 0.300745815, -0.5475544333, -0.4464105964, 0.1092200056, 0.2504781783, 0.1346746534, 0.3845810592, -0.0407421514, -0.1219737604, -0.1917246282, 0.3223776519, -0.2072092593, 0.176151067, 0.0659397095, 0.0832153559, 0.1708463281, -0.0917486176, -0.1216964349, 0.0654680058, -0.0577648431, -0.1907240152, 0.2162451595, 0.1568776965, 0.1997008622, 0.7097827196, 0.5631092787, 0.3239502609, 0.2527132332, 0.2194504291, 0.6763728857, 0.0318476856, -0.1741036773, 0.2044818699, -0.0473354943, -0.0900378749, 0.2030478716, 0.1668996811, -0.0401804857, -0.0374593996, 0.0781538337, -0.4097563624, -0.4254502654, -0.2407597005, -0.0359787568, 0.2223151475, 0.1499994695, 0.0431461334, -0.3063417375, -0.3333996236, -0.0445889086, 0.4886276722, 0.1517361999, 0.2371125072, -0.3397943377, 0.0346187688, -0.2403679639, 0.330545187, 0.0667026266, 0.4926595092, -0.1493831277, 0.1500357836, 0.2766018212, 0.301867038, 0.4911457002, -0.3916006088, 0.2484453171, -0.0350952558, 0.2665247321, 0.2847287059, -0.112611942, 0.2927294672, 0.4071048498, 0.1864743531, 0.2105052322, 0.0934800059, -0.2875421643, -0.4842903018, -0.0976103619, -0.097301133, -0.1868254989, 0.0223420244, 0.1513694227, -0.0245441645, -0.1255587786, 0.2902851403, -0.3091266751, -0.1232782751, 0.0230308622, -0.0487148203, 0.1658031642, 0.0127256978, 0.0591758527, 0.3365139663, 0.0249091871, 0.0856764168, 0.4946665764, 0.0983290672, 0.0767080188, 0.4088821411, -0.284314245, 0.2972416878, -0.2115450054, -0.3195392191, 0.3478294611, 0.1500846893, -0.3469805717, -0.1114985347, -0.0303954352, -0.1906155795, -0.2368234247, -0.086862348, 0.0240004919, 0.0111488998, -0.2902596593, -0.6117978692, 0.3529457152, 0.5719925761, -0.3593299687, 0.2093858123, -0.2003004551, -0.3264172375, 0.0829042494, 0.0077398084, 0.9369330406, -0.225783661, 0.409599781, -0.2878209352, -0.0582195111, 0.1193378642, -0.3725884557, 0.1221293807, -0.4467967749, -0.273909241, -0.0754209533, -0.0783340111, 0.0734853968, 0.4323978126, 0.1231993958, 0.1168435365, 0.0431219339, 0.0055227987, -0.2057712376, -0.1688490063, -0.0632037967, -0.271817714, 0.0907369554, 0.0923661962, -0.1487280726, 0.1255574226, 0.0606458038, -0.0431812778, -0.2532047331, 0.2730290592, -0.2186716199, -0.0000615923, -0.6532598734, 0.0261096396, -0.1872089207, -0.1161906794, 0.1783676445, 0.2510747015, 0.3610559106, 0.3228229582, -0.0859161019, -0.0651190057, 0.378795445, 0.1497557312, -0.252630502, 0.0836882368, 0.3546641171, 0.1261639446, 0.1357942373, -0.2878211439, -0.2010755837, -0.2188827395, -0.3760907352, 0.0657365695, 0.1240203008, -0.3765006065, 0.0364599302, -0.1304440051, 0.0076488149, 0.0330536515, 0.0685631484, 0.3942569196, -0.0736780539, 0.5132030249, -0.3288639486, -0.3334287107, 0.1096055135, 0.561950922, 0.0451903753, -0.1790139526, 0.221339047, -0.1282030791, -0.3107996881, -0.1208420619, 0.2919029891, 0.0342540182, -0.2328111976, -0.083122693, 0.2627867162, -0.07399562, 0.1987595558, -0.3054347932, 0.1178625375, 0.0482761636, 0.1480930001, -0.3466266096, -0.4610135257, -0.3081027865, -0.2817834616, 0.1972182691, 0.2503425479, -0.3422870338, 0.0772419944, 0.039960146, -0.2249229401, -0.1654012203, 0.0796474144, 0.1247304603, 0.3286462128, 0.0610687509, 0.0714309067, -0.1853149086, -0.1063135564, 0.0644670874, -0.1622419506, -0.158131659, -0.0506929532, 0.1557968557, 0.2641828954, -0.4123851359, -0.0329170972, -0.5092149377, -0.1598363817, -0.4260945916, 0.0991475359, 0.3299743235, 0.2834775746, 0.3346816003, 0.1255447716, 0.0900706947, -0.1073523611, 0.302989006, -0.2726711929, -0.1294936389, -0.2207017541, 0.1996597797, -0.3490001559, -0.0241826531, 0.0474316478, -0.1172885075, 0.1430596411, 0.0396333896, 0.1378736496, -0.1458799243, -0.017939223, 0.1182590947, 0.257412225, 0.0992882922, -0.0456389189, 0.007557143, 0.3028249741, 0.0558413006, 0.1122480035, -0.106092535, 0.2148322016, -0.2088996023, 0.059026856, 0.4215775132, 0.2109963745, -0.0708254874, 0.1339362264, -0.1005328745, 0.1809759736, -0.333148092, 0.3611843884, 0.0204347838, 0.1567513496, 0.1077305973, 0.3992628455, 0.2707894742, -0.0386832729, 0.3947353363, 0.2352136374, 0.1676778346, 0.2850370705, -0.2464900166, 0.129401058, -0.6257697344, 0.0216262899, 0.0970738381, -0.0534843132, 0.3845939636, 0.0429873653, 0.2083030343, -0.1342098117, -0.234442845, 0.0805565789, -0.0950394198, -0.1613715291, -0.2004223168, 0.0921139196, 0.0454332568, 0.0561629608, -0.3239436448, -0.202354297, -0.1829463392, 0.1300952733, 0.2680378854, 0.1000095829, 0.1839528531, -0.0826304182, 0.2100670636, 0.1451141536, -0.1546541601, 0.0301200449, -0.4989070296, -0.0750636086, 0.1768113524, 0.0350889787, 0.1287938058, -0.0380702019, 0.1088882238, 0.1409470588, 0.2628337443, -0.0033158537, -0.2178948969, 0.3813551962, -0.1783109158, -0.4085472226, 0.1022911146, -0.0263674408, -0.0207624231, -0.1616538614, -0.1424876153, -0.068479538, 0.0198698547, 0.0745521784, -0.3266833127, -0.5774407983, 0.101490736, -0.1191552877, 0.0692138299, 0.0674355179, 0.5840873122, -0.0103563908, 0.209399879, -0.5183774233, 0.0370028615, 0.3841401637, 0.2993950546, 0.4569981396, -0.2200732231, 0.0179120637, 0.0533933975, -0.4461085796, 0.2365630716, 0.2184100449, 0.2441496104, -0.1144665703, -0.1923268735, 0.0910558999, -0.0761397406, 0.4097000062, -0.2829532921, 0.4167271554, 0.3628413379, -0.173906371, -0.296946615, 0.1210791841, -0.002082709, 0.1012645587, -0.3733643591, 0.1825968176, 0.230441317, 0.0242248848, -0.2581580579, 0.015023022, 0.1672136784, 0.4510231614, 0.4619303048, 0.2830506265, 0.0085503832, 0.0807434767, 0.1979320794, -0.370793432, 0.151650548, -0.1683865786, -0.0193815026, -0.191281721, 0.040816512, -0.5298500061, -0.1772727668, -0.3872590065, -0.0881591737, -0.1900458485, 0.3071477115, 0.1042416766, 0.0773614645, -0.0927127749, 0.0476356633, 0.3853412867, 0.2807732522, -0.1578335613, 0.3576170802, -0.5059365034, -0.2933947444, 0.3969260156, -0.385660708, -0.1734501719, 0.0997331291, 0.4679125845, 0.105033204, -0.1698754281, -0.137511, 0.1144525036, 0.3514276743, -0.3437354863, -0.1090912297, -0.0052556354, -0.3375086784, 0.0378180407, -0.1925394237, 0.5049101114, 0.0380171128, -0.1960998625, 0.1303913146, -0.1235498413 ]
https://github.com/huggingface/datasets/issues/2065
Only user permission of saved cache files, not group
Good idea :) we could even update the permissions after the file has been moved by shutil.move [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1899) and [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1646) actually. Apparently they set the default 0600 for temporary files for security reasons, so let's update the umask only after the file has been moved
Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
45
Only user permission of saved cache files, not group Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? Good idea :) we could even update the permissions after the file has been moved by shutil.move [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1899) and [here](https://github.com/huggingface/datasets/blob/f6b8251eb975f66a568356d2a40d86442c03beb9/src/datasets/arrow_dataset.py#L1646) actually. Apparently they set the default 0600 for temporary files for security reasons, so let's update the umask only after the file has been moved
[ -0.1486677676, 0.1404386163, -0.0772055015, 0.0294159204, 0.1295793951, 0.0463582538, 0.3478870988, 0.0346235782, -0.1299448311, 0.0200760011, -0.1389163733, -0.0676593333, 0.0185788739, -0.2712924778, -0.0381217822, 0.184007436, 0.1872668862, -0.0505725369, 0.0260023084, -0.1504373848, -0.1744751632, -0.2032017559, -0.1215939, -0.0883419961, -0.2847402394, -0.1473377794, 0.1421105564, 0.2907128334, -0.0268031731, -0.2053434849, 0.3806231916, 0.6655225158, 0.1290058792, 0.14114362, -0.0001143174, -0.1695265323, 0.0144896442, -0.0989307761, -0.0480890535, 0.1656077653, 0.005617877, -0.1768365949, -0.1670402437, -0.1249090433, -0.1164283529, 0.0679450184, 0.1516611278, -0.6368480921, 0.4671243727, 0.236077562, 0.175186187, -0.0875462145, -0.1900083423, 0.0938934982, 0.296025753, 0.0340905301, -0.1558022201, 0.1395667046, 0.317078203, -0.2480275035, -0.0745830908, 0.052134838, -0.2701607943, 0.0413466655, 0.1690553725, -0.1223846599, -0.4245992303, -0.5232909322, 0.1400274932, 0.1401763558, 0.5876784921, -0.1320251375, -0.681022048, -0.1792593598, 0.0988087729, 0.1577601284, 0.3485298455, 0.3710073531, 0.1510733515, 0.3128530681, -0.4745200872, 0.0269010253, -0.1794065535, 0.0649562776, 0.2594904602, 0.0227284674, -0.0561286546, 0.1227333546, 0.0393803753, -0.1470489353, 0.2266297489, 0.1350255907, -0.299121052, 0.4194128513, -0.2455165237, 0.1774930954, -0.2231109142, 0.4376939535, 0.1799850911, 0.4181916714, 0.0872389674, 0.2030546963, 0.0778263956, 0.1625784636, -0.0534403585, 0.262530297, 0.3795916736, 0.4361658692, 0.5410408378, -0.171922192, -0.1775009334, -0.0319095477, 0.0393200405, -0.3863135874, 0.0216779783, 0.3015041351, 0.048869893, -0.1432592273, 0.1021599099, 0.053476207, -0.1453022659, -0.148937583, 0.0250712689, 0.3009733558, 0.0430656001, -0.0739550442, 0.1384397, 0.2581045032, -0.0287795346, -0.2274987549, -0.0411530323, -0.3239301145, -0.2817665935, 0.408819288, 0.36779356, -0.1878887713, 0.1011874378, 0.2275784314, 0.1257279664, -0.1951033473, 0.4349654615, -0.0672739297, 0.4382701218, 0.4045001864, 0.1662746966, 0.2871086001, 0.1179042459, -0.0030370532, -0.072181955, 0.2393577397, -0.2409161478, -0.2144766897, 0.321154505, 0.0223249085, -0.1168768108, 0.2934512198, -0.2296117097, -0.00073128, 0.4634188712, -0.0361245237, 0.4591253102, 0.2070067525, -0.2314868569, -0.387357235, -0.0402345359, 0.4332183003, 0.0299067795, -0.0863912329, -0.1236811727, 0.0183940977, -0.0481881388, 0.3993484974, -0.04717502, 0.0548309572, -0.1530557722, 0.1871631891, 0.4613812566, -0.2587341666, -0.6373532414, 0.0726481378, 0.1465537101, -0.0786793306, 0.2618922293, 0.0866173357, 0.037713781, -0.1949886084, 0.0043649375, 0.3423585594, 0.240519613, 0.2537205815, 0.0663498044, -0.0077345879, -0.060234908, 0.0200081896, 0.0013894797, 0.2903931439, 0.3742434978, -0.3105025291, 0.2526358962, -0.1824451685, 0.249640882, 0.5188257098, 0.1698429883, -0.0004986908, -0.0231628064, 0.006813671, -0.5052883625, 0.2801293135, -0.099081479, -0.3432284594, -0.0170617681, -0.5464770198, 0.0339366309, -0.2951267958, -0.2967858911, -0.1955868751, 0.0566842631, -0.0701142177, 0.069051072, -0.2528025508, 0.1593254656, 0.3845064342, 0.1605412662, 0.0566417538, -0.145792678, 0.134670347, -0.0816495568, -0.1207492352, -0.1807450056, -0.0492202081, 0.3001849353, -0.0570604019, -0.2775067389, 0.3385226727, 0.1791166812, 0.0763242468, 0.0040687784, 0.2548027635, 0.0230381582, 0.2091919184, 0.0859540403, -0.2223036736, -0.107458517, -0.0814241022, -0.2597405314, 0.4529502988, -0.0995963663, -0.0642129257, -0.1837928146, 0.2674836218, 0.1773670316, -0.0096662035, -0.1697297543, -0.1619028151, 0.0502425916, 0.2686874568, 0.3828037977, 0.1910718679, 0.0564030521, 0.028909158, 0.4421547651, 0.2289876789, 0.1401610374, -0.0511924513, -0.1317165792, 0.089453429, 0.2256497294, 0.3671812117, 0.2941921651, 0.0511357635, 0.2727999985, -0.1256541014, 0.3981504738, -0.1889783293, -0.0232522599, -0.0589449815, 0.0303112846, -0.1392395496, -0.1011137292, -0.0179825034, -0.1365194768, 0.3469206989, 0.0543534532, 0.1654343158, -0.3396596313, -0.1209826395, -0.1977421045, -0.1341224462, 0.2395082712, -0.0243768189, -0.5376530886, -0.0739463866, -0.1817751676, 0.2030471414, -0.0811515301, 0.2060427517, -0.1902074963, 0.0385567918, -0.0144934552, -0.0731001124, -0.2904835045, 0.0984547436, 0.1059224084, -0.006964305, 0.2305039018, -0.6279553175, 0.1780645251, 0.0020358339, 0.2553759515, -0.4001020193, -0.0342339836, -0.2547352314, -0.0081990436, 0.0870360732, -0.3297147453, 0.086191386, -0.1502718329, 0.0583187304, 0.0083362646, -0.2916868925, -0.2098381519, 0.0311514288, 0.0012750581, 0.0132984221, -0.2869876027, -0.1387988329, -0.1922623515, -0.2366524786, 0.6767058372, 0.1732077599, 0.1216548607, -0.0473198667, -0.1707833558, -0.4097971618, -0.2292841226, 0.1703745872, -0.3344257474, -0.5908138156, 0.3133070469, -0.4503070414, -0.4157239199, 0.038999714, 0.1510157287, 0.05546581, 0.4662572145, -0.020336831, -0.233155027, -0.3058477938, 0.2212015241, -0.2192832977, 0.1822485924, 0.0141009362, 0.0414110348, 0.1408323646, 0.0244251601, -0.1305058002, 0.1217967048, -0.0180332288, -0.3016531467, 0.0822103173, 0.2010876387, 0.2049246132, 0.5803422332, 0.4103990495, 0.2980837226, 0.2216826826, 0.1889460385, 0.6551344991, 0.0210196562, -0.2211454511, 0.2425191253, -0.0396679789, -0.0471645035, 0.0539854392, 0.0449877754, 0.0420305915, 0.0378697366, 0.0130383726, -0.2398957163, -0.5029903054, -0.2120027989, -0.1994944811, 0.0904500112, 0.0991904959, 0.1203198507, -0.2287050635, -0.2225494385, 0.0350745432, 0.2991098464, 0.1776905954, 0.3196589351, -0.3608703613, 0.1082683057, -0.1985739768, 0.4802366495, -0.0123869441, 0.5126087666, -0.15565072, 0.18745704, 0.2141176909, 0.3622045219, 0.4309049249, -0.406432271, 0.1957467198, -0.1144280061, 0.1360840499, 0.1278698742, -0.2462311834, 0.3391300142, 0.4184546769, 0.1934328973, 0.2180480063, 0.1238584742, -0.1820774823, -0.3830624521, -0.1949623376, -0.0845634267, -0.1223982275, 0.0194020756, 0.0919781998, -0.2639190853, -0.0384474918, 0.2674631178, -0.4127900302, -0.2445769161, 0.0039882101, -0.1975443065, 0.1205321401, -0.0765874088, -0.1716655493, 0.3838123977, -0.0190144181, 0.00075812, 0.4223494232, -0.1119356304, 0.1820331663, 0.4454098344, -0.2894162834, 0.1530644, -0.2904998064, -0.2587001026, 0.330809772, 0.090259634, -0.3466542661, 0.011935492, 0.2044369727, -0.0643627793, -0.286259383, -0.0864966437, 0.0435523838, 0.0499523841, -0.1365185678, -0.6606182456, 0.2589042783, 0.5378466249, -0.2804978192, 0.2354456782, -0.1215875968, -0.3739419878, 0.0899360403, 0.1244115978, 0.7908813357, -0.1947768778, 0.3848075271, -0.4029829502, -0.0088620782, 0.1285377443, -0.4445784688, 0.0815524608, -0.5112549663, -0.3367185593, -0.0641428083, -0.1337092221, 0.0330643281, 0.3707942367, -0.0497058034, 0.1543721557, -0.1544704139, -0.0572894178, -0.1636882126, -0.1531651914, -0.3730815649, -0.2370785028, 0.1458012164, 0.0937573165, -0.1470614225, 0.1671069711, 0.0507021248, -0.0046259966, -0.205944851, 0.2701793015, -0.3042628467, 0.0200912096, -0.7715395689, 0.2240673155, -0.1763988435, 0.0445422195, 0.0803729594, 0.3250466287, 0.493178755, 0.3552216589, -0.0389768556, 0.0892630443, 0.3555329442, 0.1177679077, -0.1683692783, 0.0776085109, 0.3183530867, 0.1712892205, 0.1053553969, -0.3185611963, -0.160881266, -0.2662642598, -0.3522588611, 0.1789841354, -0.0570510849, -0.2564054728, 0.049534969, -0.1536659151, -0.0481094569, 0.0013129697, 0.0505595468, 0.4336294532, 0.0060988441, 0.5138241649, -0.3861308992, -0.3219290376, 0.0463543199, 0.6867851019, -0.1212709323, -0.1753004789, 0.2578018904, -0.2270268947, -0.2255560458, -0.153427586, 0.1218026578, 0.1055645049, -0.2715553641, 0.0894068852, 0.1167697832, -0.083912015, 0.2019043565, -0.4685652554, 0.0525985844, 0.0447124317, 0.0801334977, -0.3671693802, -0.4777833819, -0.2479075938, -0.2256656587, 0.2167541385, 0.2146310508, -0.480412811, 0.153702572, -0.017410377, -0.2190005779, -0.1148724779, -0.0603422001, 0.1070166901, 0.2844264507, 0.0111008622, 0.0080088517, -0.1990953088, -0.1115410924, -0.0861447826, -0.1366699636, -0.159253493, -0.1084477305, 0.1500969231, 0.159155637, -0.3309408426, 0.0598673932, -0.4955000579, -0.0886535347, -0.4539222419, 0.0292239506, 0.4149193466, 0.1881966442, 0.3245114386, 0.0923555493, 0.0560513213, -0.0751169175, 0.1502658427, -0.2506339848, -0.3060461879, -0.2019360214, 0.2243497521, -0.2615667284, -0.0122107789, 0.2307127565, -0.1434111744, 0.0836390778, 0.0702210516, 0.1397668272, -0.0660383552, -0.0364291817, 0.0121905301, 0.3226594031, 0.1396930665, -0.06910979, -0.0106769213, 0.282823205, 0.074593842, 0.0334012024, -0.2358487248, 0.2527933419, -0.1717258245, 0.0732229948, 0.295907408, 0.1993531138, -0.254994899, 0.0898618996, -0.0400499664, 0.0541520044, -0.4245873094, 0.339702189, -0.0981682017, 0.1198813915, 0.0936717689, 0.2689902186, 0.1947562248, 0.1034126803, 0.3501398265, 0.1634388119, 0.232634604, 0.2107984126, -0.369220525, 0.1971416622, -0.6348795295, 0.0933413282, 0.0562867634, -0.0865978897, 0.3066341877, 0.1521218121, 0.3038795888, 0.0043679615, -0.2596386969, 0.0565112233, -0.0770826936, -0.1069414243, -0.1304058284, 0.0652910396, 0.1195554137, -0.0169082731, -0.2276170105, -0.1421545148, -0.1524275839, 0.1254962832, 0.2167183608, 0.1407485306, 0.1779337525, -0.0839355811, 0.1679563224, 0.1124966219, -0.2065461129, -0.1242294237, -0.2350948155, -0.158077687, 0.242718786, 0.0840776041, 0.2005331963, 0.0134680774, 0.1136191636, 0.2942559421, 0.3542515934, 0.0297831185, -0.3016223311, 0.352474153, -0.1150172502, -0.3615785837, 0.0731112808, 0.0123494575, -0.0762357637, -0.1062278375, -0.228365317, -0.017843958, 0.1196863651, 0.0388069004, -0.1391336769, -0.5474355817, 0.0329922102, 0.0130504509, 0.1663214564, 0.0737848207, 0.4963424206, 0.0279469024, 0.200675413, -0.5633286238, 0.034556102, 0.4846209586, 0.2992678881, 0.4735641778, -0.1852980107, -0.0190092605, -0.0092065772, -0.4812479317, 0.0753227696, 0.2396785915, 0.3669991493, -0.0317308009, -0.2118467689, 0.0898560286, -0.1715330482, 0.4435788393, -0.3060118854, 0.4268414676, 0.3170053065, -0.2341447622, -0.2756788135, 0.1760116816, -0.0147438226, 0.1640821993, -0.4100317359, 0.2371110022, 0.0033720101, 0.0407645591, -0.1905738413, -0.0198303312, 0.1666393578, 0.4183312058, 0.4170887768, 0.2483996153, -0.041727569, 0.0629502758, 0.291924715, -0.4317117631, 0.1377900392, -0.2335241139, -0.1024448723, -0.2049259096, 0.0911723822, -0.5365706086, -0.2565541267, -0.4064131677, 0.0836401582, -0.1279950142, 0.2629207671, 0.0529819317, 0.1703789234, -0.0599977635, 0.0954397246, 0.3064509034, 0.2437164187, -0.1101045087, 0.3391710222, -0.4970086813, -0.2819463313, 0.4078902006, -0.3286450207, -0.1821715087, -0.0058228248, 0.3923447728, 0.1560884565, -0.2363848388, -0.0434812121, 0.1604717672, 0.303143084, -0.3153868318, -0.1380483061, 0.0552667007, -0.2985895872, 0.0815638527, -0.1572468579, 0.4083766937, 0.0865306258, -0.2282268405, 0.1088339239, -0.1353075504 ]
https://github.com/huggingface/datasets/issues/2065
Only user permission of saved cache files, not group
Would it be possible to actually set the umask based on a user provided argument? For example, a popular usecase my team has is using a shared file-system for processing datasets. This may involve writing/deleting other files, or changing filenames, which a -rw-r--r-- wouldn't fix.
Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
45
Only user permission of saved cache files, not group Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? Would it be possible to actually set the umask based on a user provided argument? For example, a popular usecase my team has is using a shared file-system for processing datasets. This may involve writing/deleting other files, or changing filenames, which a -rw-r--r-- wouldn't fix.
[ -0.1471500695, 0.092066586, -0.0505224541, -0.050575342, -0.1024407223, 0.0650751814, 0.2770628035, 0.0333130471, -0.1205726936, 0.0754825622, -0.0888409913, -0.1201790124, 0.0910979286, -0.421970278, -0.1925660521, 0.2325335294, 0.1333577484, -0.0176634323, 0.1507477909, -0.1546300948, -0.2114974856, -0.0136961928, -0.0854257494, -0.0791246668, -0.3535500467, -0.1721547097, 0.1681273729, 0.2706647217, -0.0565835983, -0.0785234049, 0.2250818312, 0.6471478343, 0.1497713923, 0.053810548, -0.000119894, -0.2870418131, 0.0061740298, -0.1516676247, -0.0634041727, 0.1870578229, 0.0887468383, 0.0673503652, -0.1030787006, -0.1247891709, -0.094408825, 0.2261205614, 0.1814222187, -0.7467898726, 0.3664296865, 0.1748213321, 0.10952539, -0.1968879104, -0.3863594234, 0.0277923737, 0.1778069735, 0.122609213, -0.1285097599, 0.0490993448, 0.4465581477, -0.2761497498, -0.0958169028, -0.0698408484, -0.2673172355, 0.0956604481, 0.1645159274, -0.1303354651, -0.2429821193, -0.3994432688, 0.1450901181, 0.1106670573, 0.6790685058, -0.1166612059, -0.5629662275, -0.1135151237, 0.1143147796, 0.3843245804, 0.3292590082, 0.2766022384, -0.1632415652, 0.34129861, -0.4492840767, 0.1895769835, -0.1568829715, 0.1035121903, 0.1970229894, 0.1023677364, 0.0025069732, 0.0677870214, 0.0115013691, -0.0288241636, 0.2265234143, 0.0581414588, -0.2915636301, 0.453255862, -0.1634398401, 0.0448153652, -0.2036421895, 0.4242892861, 0.2230391055, 0.3683882952, 0.2776876688, 0.2417335361, -0.0489801355, 0.3250260353, 0.0026228225, 0.2221506834, 0.4380917549, 0.3034620285, 0.5250226259, -0.3199165165, -0.1106982604, 0.0534924753, 0.0281562861, -0.3199740052, 0.0004488095, 0.2718321681, -0.0256189946, -0.2300988138, 0.1515464485, 0.0074198116, -0.2516162992, -0.2201455235, -0.0146004213, 0.330181092, 0.1104646102, 0.0212618355, 0.1741766483, 0.2590627074, -0.0470537692, -0.2397491187, 0.065855518, -0.3669911325, -0.3004587889, 0.4415125549, 0.4217768312, 0.093040891, 0.0556612052, 0.1959336251, 0.1799553335, -0.2045553327, 0.4045279026, -0.010559448, 0.4755048752, 0.2911120057, 0.4127845168, 0.3071925938, 0.1526106298, -0.1512584537, -0.1715557873, 0.3212667108, -0.2373267859, -0.1387580037, 0.3256175816, -0.0095794005, -0.0672044605, 0.29845348, -0.2900677919, 0.0407060236, 0.4671235383, -0.0343047604, 0.4679352641, 0.2395268232, -0.1093884706, -0.3718368113, -0.1533470899, 0.2511184514, 0.0128157642, -0.1537054926, -0.1496700794, 0.0274791494, -0.1170957461, 0.5004414916, -0.0107649369, 0.0690818429, -0.1780732572, 0.2032709569, 0.4645263255, -0.0521383286, -0.5090233684, 0.0684354305, 0.2420680225, -0.0042060721, 0.3027635813, 0.1540334225, -0.1393562108, -0.1594102085, 0.13487041, 0.3490006626, 0.1440917701, 0.1884934455, 0.0646126941, 0.0059748739, -0.1699057519, -0.0277533364, 0.0373376124, 0.2557495832, 0.335996598, -0.3438188434, 0.3285371661, -0.291095674, 0.2032375336, 0.394782573, 0.1977986097, -0.021381164, -0.0369807146, 0.0734881759, -0.3018438816, 0.246852994, -0.1158627868, -0.2352427989, 0.1687187105, -0.5432310104, 0.1867948323, -0.2626992762, -0.0573138781, -0.1396663189, -0.0210175756, 0.1543936133, -0.0425262786, -0.3075684905, 0.0869343504, 0.3220136762, 0.1850207448, -0.0079952022, -0.1341927648, 0.0258664005, -0.0760848522, -0.0981877819, -0.176319629, -0.0962002128, 0.235463962, 0.1245035678, -0.2654772401, 0.3121874928, 0.1975405663, -0.0506853014, -0.1936578602, 0.2976669073, -0.0672430694, 0.1881964803, 0.0936561599, -0.1430310607, -0.1292766482, -0.1404999793, -0.3475044668, 0.5174834728, -0.0801339522, -0.1200612932, -0.1488004178, 0.2907129526, 0.1823878139, -0.0352168567, -0.116526939, -0.105093658, 0.1371052563, 0.1894472688, 0.411588043, 0.1300979704, 0.1390413642, -0.0199222006, 0.3039118052, 0.1520860642, 0.155900076, 0.0640676618, -0.0592852794, 0.1174715534, 0.2574258149, 0.3071287572, 0.3168762028, 0.0771376714, 0.2486505061, -0.1861855537, 0.2994369268, -0.1761773676, -0.0149178607, -0.0744068697, -0.1940282136, -0.1732613146, -0.2122288644, -0.078746736, -0.0365787931, 0.1973816752, -0.1033042148, 0.0594298542, -0.3922623098, -0.1274553984, -0.1077192426, -0.1807717383, 0.2595335841, 0.0036950335, -0.5104748011, -0.1243760958, -0.0558480993, 0.2698237002, -0.0469062962, 0.2797726691, -0.2046475559, 0.2511658072, -0.1471159011, -0.0217518713, -0.1354899555, 0.1627026945, 0.1362987608, -0.0116043612, 0.2251496762, -0.567370832, 0.1150122732, 0.009725512, 0.1968262643, -0.2695706785, 0.0187320169, -0.1757622659, 0.0869116336, 0.0748118237, -0.3606033325, -0.0461837016, -0.2265401036, -0.0910759792, -0.0836879984, -0.334574759, -0.1162887514, -0.0234265924, 0.1639754325, -0.1311139166, -0.2262910157, 0.0201825518, -0.1411019117, -0.1289471835, 0.5307949185, 0.133227393, 0.2247096896, -0.1756725162, -0.1722615361, -0.4226777256, -0.125736028, 0.1453990638, -0.3245460987, -0.6174483895, 0.326646179, -0.4711762965, -0.3162117898, -0.0076342593, 0.1587116718, 0.075443849, 0.5489593744, 0.0661253408, -0.1826239228, -0.2251123786, 0.1158013791, -0.1905195266, 0.1072229221, -0.005488948, 0.0346582644, 0.1448749602, -0.010273709, -0.1496459693, 0.1010857821, -0.1054440737, -0.2845732272, 0.1795330346, 0.1075248495, 0.1962019801, 0.5320225954, 0.4016360343, 0.4496497214, 0.2346985936, 0.3224682212, 0.6212496758, 0.1091477424, 0.0070698722, 0.1099852994, 0.0564449281, -0.1976521611, 0.1928105056, 0.1378407329, -0.1425184608, 0.0250617135, -0.0751195848, -0.1683901697, -0.5382797718, -0.0226071794, -0.3873746693, 0.0868489817, -0.0260560513, 0.1959287673, -0.2685116529, -0.1800317615, 0.0307756606, 0.3571221828, 0.1517266929, 0.3505575359, -0.6412389874, 0.0908230171, -0.3167812824, 0.4719901681, -0.0425035805, 0.4521332085, -0.2461150289, 0.227034539, 0.164117232, 0.32755813, 0.3271005154, -0.4988218546, 0.3267793953, 0.0093528908, 0.0087396344, 0.1913574487, -0.1192497462, 0.332149148, 0.3668298721, 0.0937422812, 0.1542964578, 0.1609755307, -0.0915238783, -0.5370305777, -0.3308063745, -0.1116434261, -0.2367696464, 0.2170094401, 0.1054397151, -0.1862611473, -0.0164101627, 0.3671917021, -0.4705689847, -0.0994758382, 0.027424112, -0.38109532, 0.2071992457, 0.1539329737, -0.1085570753, 0.2331237197, -0.0477575883, -0.1471510082, 0.3043549359, -0.0289744698, 0.3442009091, 0.3182346821, -0.267304033, 0.2928967476, -0.2188660353, -0.331299156, 0.4388862848, 0.0841943249, -0.28575477, -0.0908568054, 0.2405926436, -0.0895855203, -0.2242972255, -0.1434647292, -0.1365798563, 0.0676993579, -0.1706238985, -0.6507312059, 0.2193378061, 0.6206014156, -0.3546893895, 0.2753139436, -0.0687211677, -0.4185906947, 0.3697206378, 0.1752435863, 0.8520855904, -0.1954310089, 0.4317814708, -0.5393024087, 0.0561810024, -0.0093265828, -0.5421409607, 0.0954179093, -0.4827092886, -0.3196135759, -0.1598660052, -0.1152696013, 0.0965272039, 0.5368818045, -0.0007457209, 0.0883788168, -0.0565397516, -0.189495787, -0.0472843312, -0.1738566905, -0.4432771206, -0.2074543834, 0.2550069094, 0.0483895615, -0.0810530633, 0.0184035394, 0.0728384405, 0.0873645991, -0.2621509433, 0.1707562208, -0.343257457, -0.0346229263, -0.7361097932, 0.0597392172, -0.1482689977, 0.0414169021, 0.1948920935, 0.4365550876, 0.4190997183, 0.3678156435, 0.0034500053, 0.1286640465, 0.2911277711, 0.193298623, -0.1187677905, 0.0057052509, 0.2679216862, 0.1980937719, 0.0860200226, -0.2034703791, -0.1211959347, -0.3485175371, -0.3933890164, 0.0539431982, 0.1085499227, -0.2680008709, -0.0999551117, -0.3109744787, -0.0555227697, 0.0946824178, 0.0208197571, 0.4337205887, -0.0117690414, 0.5506770611, -0.3282586336, -0.293418318, 0.0634473488, 0.6677957773, -0.194448635, -0.2492073923, 0.1311024874, -0.2961778939, -0.2181852311, -0.1223902628, 0.0897095725, 0.2830387652, -0.2277571112, -0.0652292594, -0.0078205746, -0.1830449998, 0.2490392923, -0.4417336583, 0.1238402426, 0.2165519446, 0.0822880194, -0.3332439661, -0.301597476, -0.2759299576, -0.181850642, 0.228092283, 0.2955181897, -0.6359660029, 0.1383023262, 0.1753508151, -0.1639892906, -0.2378118336, 0.0106989173, 0.1082934812, 0.0529193096, 0.1460760534, -0.1391408145, -0.1709163636, -0.1404721737, -0.057396207, 0.0452591553, -0.0943420678, -0.0715821162, 0.1896331906, 0.1689670831, -0.4297358096, 0.2433743626, -0.4658845067, -0.0727549493, -0.5211845636, 0.0372330584, 0.440012008, 0.0962176844, 0.3277230263, 0.1776433587, -0.016768435, -0.3144002557, 0.1412570775, -0.1770416945, -0.2571635246, -0.2136657685, 0.1840848476, -0.3134495914, -0.0858428255, 0.3430911601, -0.0227572545, 0.167357415, 0.1269783229, 0.0357833691, 0.0650408491, -0.0415786691, 0.0113669336, 0.2966189682, -0.1352151632, -0.0555587448, 0.0207545478, 0.3500750959, 0.0264136475, 0.1389430016, -0.2497938573, 0.2174222022, -0.1284103245, 0.0236475319, 0.4656296074, 0.1540797204, -0.4179790914, 0.1808340698, -0.1981613636, 0.1439878047, -0.3473328054, 0.2857910991, 0.0039982311, 0.0470266007, 0.124155879, 0.144252196, 0.0780033991, 0.2447064072, 0.2467192262, 0.2031864375, 0.2100973427, 0.2925572097, -0.3740956485, 0.1525072008, -0.6392156482, 0.0923313424, 0.057369519, 0.0386300758, 0.3066129982, 0.1207772717, 0.0455152802, 0.1442186832, -0.1720226705, 0.0889915675, -0.1706671566, -0.08451996, -0.1640581936, -0.0227184631, 0.0730384812, -0.1671444625, -0.2294377089, -0.3076395392, -0.1627297252, 0.139923349, 0.2915469706, 0.1834630072, 0.2129059732, -0.0129165184, 0.0776393041, 0.0492401868, -0.2998975217, -0.2014186829, -0.3289663792, -0.0747554153, 0.3622373343, 0.0453284048, 0.1428120881, 0.0910452455, 0.1489477307, 0.2524821758, 0.2123200297, 0.0896752402, -0.3044790626, 0.1689477265, -0.0194551349, -0.3877963424, 0.0323752724, -0.0114398263, -0.0327793844, -0.0719319656, -0.1853448451, -0.1122682765, 0.0208798815, 0.0375018008, -0.1052379385, -0.429022342, 0.1587055176, -0.033829499, 0.1928040087, 0.0421402194, 0.3670752943, 0.0262927264, 0.2101046741, -0.3965533078, -0.0058467519, 0.4231171012, 0.1866989881, 0.4627204835, -0.1875656098, 0.0394905731, -0.1463003308, -0.3878420591, 0.1253436059, 0.2441618294, 0.3161037266, -0.0288064238, -0.351102978, 0.1966862828, -0.0766738802, 0.5007019043, -0.1172142923, 0.2203656137, 0.4526959956, -0.2806836963, -0.2936932147, 0.2575287223, -0.0114241494, 0.1373860389, -0.425550431, 0.1505642384, 0.061306525, 0.0176899899, -0.1303205341, -0.1569134593, 0.1689869314, 0.591017127, 0.3161933124, 0.2963950932, -0.0551009513, -0.0291192215, 0.418322444, -0.2877556682, 0.2419889122, -0.2407810837, -0.1349709928, -0.1651607752, 0.1666343659, -0.6858277321, -0.2540331185, -0.3417348266, 0.0297313221, -0.1683704704, 0.2199371606, 0.0462333374, 0.228164956, -0.1728631109, 0.1377339363, 0.3757638335, 0.3808788657, -0.1494628638, 0.449285984, -0.4867341518, -0.0073404978, 0.2501077354, -0.2229316682, -0.1709308773, -0.0803655311, 0.3517570794, 0.1270889342, -0.2698923647, 0.1220115721, 0.0270544235, 0.3331510425, -0.2721731961, -0.1010439917, 0.0069851959, -0.2472958416, -0.0489850752, -0.156402424, 0.3385002017, 0.1570707411, -0.2179484218, 0.0338498689, -0.3073437214 ]
https://github.com/huggingface/datasets/issues/2065
Only user permission of saved cache files, not group
Note that you can get the cache files of a dataset with the `cache_files` attributes. Then you can `chmod` those files and all the other cache files in the same directory. Moreover we can probably keep the same permissions after each transform. This way you just need to set the permissions once after doing `load_dataset` for example, and then all the new transformed cached files will have the same permissions. What do you think ?
Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
75
Only user permission of saved cache files, not group Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? Note that you can get the cache files of a dataset with the `cache_files` attributes. Then you can `chmod` those files and all the other cache files in the same directory. Moreover we can probably keep the same permissions after each transform. This way you just need to set the permissions once after doing `load_dataset` for example, and then all the new transformed cached files will have the same permissions. What do you think ?
[ -0.1194678247, 0.259424001, -0.0967043117, 0.0303851962, 0.0231790356, 0.1083496511, 0.3391304314, 0.2117254138, -0.3362344801, -0.0368233137, -0.1443871558, 0.02206029, 0.0109384349, -0.2525071204, -0.030132547, 0.0743882433, 0.227810353, 0.1208136901, -0.1184285656, -0.0778085515, -0.07537359, -0.1556304544, -0.0645336509, -0.0688154548, -0.2214255184, -0.1528553069, 0.2344739884, 0.1463683099, 0.0678268075, -0.0460344553, 0.2212156504, 0.5300709605, 0.139436245, 0.1297318935, -0.0001113997, -0.1518128514, -0.018423982, -0.0894035846, 0.0535902902, 0.1944096535, -0.1325048506, -0.2093676776, -0.2764067948, -0.1594100296, -0.1122245565, 0.1167049184, 0.1642095745, -0.6036272049, 0.5433725715, 0.140461266, 0.1918493211, -0.1789264977, -0.4104810357, 0.0826763064, 0.2436181009, 0.0785935521, -0.1785174012, 0.0480151549, 0.273181051, -0.0799817964, -0.0498957969, 0.1404464692, -0.2539242804, 0.0236762352, 0.2357445657, -0.1408501267, -0.2738702595, -0.5522376895, 0.1436686218, 0.0834260955, 0.6017304659, -0.1232599914, -0.5118139386, -0.2026664317, 0.1050676778, 0.2066524476, 0.2712251246, 0.3691607118, 0.0936828107, 0.2965430319, -0.5677489042, -0.0496128947, -0.1733716279, -0.0445344523, 0.2027279735, -0.1169199944, -0.0359121561, 0.0578543432, -0.0220860094, -0.0612770617, 0.2435195744, 0.1687998623, -0.3648127913, 0.3007423878, -0.1860245764, 0.0812297687, -0.2588997781, 0.448841095, 0.1628778875, 0.3240204155, 0.0920310467, 0.1952229738, 0.0709581375, 0.1408425719, -0.0613671392, 0.2960299253, 0.2489762008, 0.4393755794, 0.4983152747, -0.3928605318, -0.2331752628, 0.0259577055, -0.0032001229, -0.3885253668, 0.0423041023, 0.3014149964, 0.0058662859, -0.1941059232, 0.231809631, 0.0230727289, 0.0277759377, -0.2067476362, 0.034829773, 0.2914709151, 0.1373827308, -0.0485932752, 0.0312974378, 0.1531579047, 0.0877906978, -0.4073993564, -0.0142287686, -0.3188686073, -0.420041889, 0.4248700142, 0.4544430077, -0.1531493366, -0.0572807007, 0.2649717927, 0.2661160827, -0.190742597, 0.2379841357, -0.0216700528, 0.4578375816, 0.3296435475, 0.1938188225, 0.3119948208, 0.0720115826, 0.0607616752, -0.1467864513, 0.2923784256, -0.2984638214, -0.1055827737, 0.3784654438, 0.0557938702, -0.0133026429, 0.3157940507, -0.3977425694, 0.0588388406, 0.5510912538, -0.1779379696, 0.3704769015, 0.205233708, -0.0273757558, -0.3665220737, -0.1580842882, 0.3250622153, 0.0082273064, -0.0332450196, 0.017076334, 0.029468948, -0.0730766505, 0.2770830393, -0.0774068832, 0.0894963592, -0.132739976, 0.1082334444, 0.5130735636, 0.0005704272, -0.5620498657, 0.1342482865, 0.1925629228, -0.1734322757, 0.2454903126, 0.0096970499, 0.1185336038, -0.2128262669, -0.2583189905, 0.3564735651, 0.1773575842, 0.2536077797, 0.1109802574, 0.0733585507, 0.0410691611, -0.1329739094, 0.1154408827, 0.4333033562, 0.2992613018, -0.1824632585, 0.161709547, -0.3766429722, 0.2751655579, 0.4555324614, -0.036532063, -0.1015513837, -0.0176628325, -0.0073526814, -0.3946578503, 0.2472984195, -0.3183890581, -0.3896823823, 0.0755652338, -0.412699163, 0.0492652357, -0.3918960392, -0.1642127484, -0.0987656638, 0.1022051349, 0.0285063274, 0.0124802291, -0.3670447171, 0.1314271986, 0.4621594548, 0.2361069024, -0.0110712992, -0.1629884541, 0.1359283328, -0.0919627249, -0.0392834581, -0.2335416526, -0.0225045048, 0.309194088, -0.074198246, -0.2938145697, 0.2166343182, 0.0186286122, 0.1711796522, -0.1068189144, 0.3129376173, 0.0382643193, 0.0255694557, 0.1322213858, -0.2872106135, -0.134863764, -0.1101088747, -0.1841525733, 0.3122933507, -0.1572696865, -0.003058363, -0.1704037786, 0.2214103788, 0.1716572195, -0.0735706091, -0.1987818182, -0.166106537, -0.0880599171, 0.1540700346, 0.400236249, 0.199490428, 0.1589415818, 0.0683566779, 0.3487052023, 0.15812172, 0.0729845464, -0.0398592912, -0.1238125935, 0.1162961945, 0.11393103, 0.4215900898, 0.2496378571, 0.0624096952, 0.3382245004, -0.1299833059, 0.3225907981, -0.1342461705, -0.011377167, -0.1550779492, 0.0726027265, -0.125196293, -0.1960163713, 0.0252933782, 0.0131513299, 0.2432508916, 0.1521940529, 0.0736544132, -0.3208756149, -0.0531049296, -0.2478595972, -0.1940213591, 0.2186927795, -0.0531893298, -0.4666422307, 0.0351023041, -0.2137259096, 0.1207760572, -0.0420894586, 0.2620488107, -0.2179091871, 0.1883021891, -0.094076179, -0.0955027044, -0.2950898707, 0.2740034461, -0.0162447095, 0.0140992794, 0.26927194, -0.7202329636, 0.0822764635, -0.1037916392, 0.3351433575, -0.3325998187, -0.0013954149, -0.1677364409, -0.0583967492, 0.0399999544, -0.5119996071, 0.0790728405, -0.132131815, 0.0055730338, -0.1503352374, -0.2388792634, -0.1751631647, 0.0638334379, -0.0084439339, -0.0630745962, -0.2691434622, -0.1105901971, -0.0748645961, -0.1529548168, 0.4172171652, 0.0242532436, 0.2210448682, 0.0712547153, -0.2961516082, -0.4592244327, -0.1708661765, 0.322480917, -0.3507021368, -0.4663728476, 0.3746477962, -0.4652484655, -0.391949445, 0.0089762164, 0.1525061429, 0.0956474096, 0.5313206315, 0.008107814, 0.0065640802, -0.2156219184, 0.1642854214, -0.2448117584, 0.1427265704, 0.0633399859, 0.1203006878, 0.1232927889, -0.0262693223, -0.1419417858, 0.003965897, 0.0027322208, -0.1979463696, 0.0559000112, -0.0234037358, 0.2471245676, 0.6841847897, 0.4743022323, 0.2400141507, 0.203626588, 0.3389166296, 0.622441411, 0.1208768934, -0.195652768, 0.1466685385, -0.0395014361, -0.1463399976, 0.0716287717, 0.0243733432, -0.2579857111, -0.0043298895, 0.0113599068, -0.3083684444, -0.4203000367, -0.1478904784, -0.3541894257, 0.2255488038, 0.1420299709, 0.0721616298, -0.2001125067, -0.1761270314, 0.0670639649, 0.3497658372, 0.2149768621, 0.2623523176, -0.3020283282, -0.0992611945, -0.2113830596, 0.3652659357, -0.061690852, 0.4255646467, -0.1767180711, 0.1111929417, 0.1521212608, 0.3573997617, 0.3918287754, -0.3412025869, 0.2567474544, -0.0187174696, 0.1470621079, 0.3458319008, -0.2633594871, 0.4020397663, 0.3350729048, 0.0278940033, 0.1637223959, 0.1002293527, -0.1153754815, -0.4289386868, -0.1245510802, -0.1558931619, -0.1336196363, 0.1555102021, 0.2004038692, -0.1273489445, -0.084638536, 0.2400333136, -0.3544847667, -0.2417875081, 0.0208139662, -0.2139785439, 0.0873797312, 0.0765929967, 0.000474338, 0.3266929686, 0.1123572066, -0.0093019539, 0.3724154234, 0.0692508817, 0.0834321007, 0.2979269028, -0.1996046603, 0.299716264, -0.2480019331, -0.1883946359, 0.2906961143, 0.0110797156, -0.4031552672, -0.244116351, 0.1184338555, -0.1741025299, -0.2703234553, -0.0545633025, -0.1482563466, -0.00792058, -0.2335674614, -0.6500526071, 0.2410213351, 0.5714665651, -0.3636012375, 0.2110614628, -0.2989892066, -0.392072469, 0.0997599214, 0.1246801838, 0.8228702545, -0.2001390457, 0.3372625113, -0.4360778034, 0.0914705545, 0.0338620804, -0.5424812436, 0.1335107833, -0.3649224043, -0.4845436513, -0.1396873444, -0.1753523946, 0.0329051428, 0.426899761, -0.0503402427, 0.1317619532, -0.1110347584, -0.117877543, -0.1576692909, -0.2448337823, -0.1609954089, -0.3166030049, 0.287111938, 0.1259293407, -0.3188804686, 0.084159635, -0.0372754335, -0.0442241728, -0.2089187652, 0.3265968561, -0.2553034127, 0.100922294, -0.5163573027, 0.1025330648, -0.2737675309, -0.0447580144, 0.172359392, 0.3448405266, 0.3541642427, 0.3286727965, 0.012813705, 0.0426598117, 0.2986121178, 0.2019621432, -0.2475734949, 0.038196262, 0.3198315799, 0.1609368622, 0.1365382373, -0.273745209, -0.1316477954, -0.2173556834, -0.358075738, 0.1973916292, 0.014258869, -0.2301236987, 0.0675699711, 0.1013536975, 0.0289694332, 0.0828218386, 0.0904877335, 0.4365307093, -0.0731010437, 0.6100827456, -0.3113513589, -0.369740963, 0.0722663328, 0.4648303986, -0.0051394431, -0.2798212171, 0.1684933603, -0.35993132, -0.2381219268, -0.1542013884, 0.2033004463, 0.0547811054, -0.218294844, -0.0316562504, 0.0179327615, -0.0494758375, 0.1912437677, -0.4619823396, 0.1150387749, 0.1076059788, 0.1272986233, -0.3227125108, -0.4183325469, -0.22698614, -0.3366437852, 0.2010487914, 0.1914321929, -0.4584565461, 0.1338770539, 0.1464450061, -0.2239752859, -0.2006187439, 0.074345313, 0.1463780403, 0.200607568, -0.0028396598, -0.2117863446, -0.1991600543, -0.0970470756, -0.030966159, -0.0659006611, -0.1720740795, -0.097046122, 0.1412350535, 0.2323506176, -0.251213342, 0.000127004, -0.4172829092, -0.1024448723, -0.4633616507, -0.0001011374, 0.2615754008, 0.2268388718, 0.4361831546, 0.1285553575, 0.0102061871, -0.1942543387, 0.1410360634, -0.1306833029, -0.2108347416, -0.1780763119, 0.2598569393, -0.1998678595, -0.0892775655, -0.1135671437, -0.1093992442, 0.1918188334, 0.1479106992, 0.1583020091, 0.0286548976, 0.0588720888, 0.193299517, 0.2212675214, 0.0425963104, -0.1043288261, 0.0419313163, 0.3557139933, 0.1250349581, 0.0776881278, -0.2286344171, 0.2644413412, -0.0976683125, -0.007672586, 0.3514914215, 0.2559177577, -0.2805993855, 0.1599695683, -0.1296695024, 0.1093096212, -0.3585635126, 0.4870338738, 0.0516448058, 0.1429766268, 0.0976536572, 0.4060679674, 0.2815797627, 0.0187120344, 0.379306525, 0.1909651011, 0.2533022761, 0.3172952831, -0.2873903513, 0.1972581148, -0.5817478895, 0.0846224502, -0.0108468812, 0.0909681618, 0.3315361738, 0.0149526205, 0.0080356058, 0.0217726566, -0.3373452425, -0.0049475073, -0.024765389, -0.1073016077, -0.112111643, 0.1384297311, 0.1098617539, 0.0609830506, -0.2639666796, -0.1171249524, -0.2014969587, 0.2264418751, 0.3205136359, 0.0693651289, 0.3160949051, 0.0933216438, 0.1955539882, 0.0299051031, -0.1829395145, -0.0471275747, -0.4374748468, -0.1214605272, 0.2490422428, 0.0556101091, 0.0474579968, 0.1516702622, 0.128769666, 0.2249505818, 0.263632834, 0.0983305499, -0.2886023521, 0.3832429647, -0.1038765535, -0.305361867, -0.013280605, 0.0140807275, -0.0710707083, -0.0440470241, -0.299608767, 0.056102708, 0.0851868242, 0.0760864764, -0.0615846254, -0.467888236, 0.112425752, -0.0467199497, 0.1267678738, 0.1459876746, 0.6005497575, -0.0157533363, 0.18274571, -0.4610280097, 0.0580457263, 0.5085271597, 0.2666839659, 0.3715482056, -0.143620491, -0.0409333445, 0.0225769095, -0.3351528049, 0.120180048, 0.3190223277, 0.4509510696, -0.0666577965, -0.1784451753, 0.082080245, -0.1517664343, 0.6258019805, -0.3384521306, 0.3094957173, 0.3757591546, -0.1707222015, -0.2227341682, 0.1644444764, 0.05792059, 0.1150242388, -0.2996995151, 0.2737306654, 0.2559911609, 0.0674635023, -0.1231964976, -0.1630067378, 0.2323898375, 0.4792934358, 0.4996345937, 0.2923946083, -0.0920648947, 0.0170530081, 0.3724158108, -0.4259386063, 0.1166956276, -0.16584149, -0.0941699743, -0.1701466739, -0.0797595084, -0.6363078952, -0.2001446635, -0.4148025215, -0.0923906267, -0.0723630637, 0.2521128953, -0.0389406718, 0.0350956321, -0.1592817307, 0.0370239317, 0.2998324931, 0.3170625269, -0.1319774091, 0.3499930501, -0.4378008246, -0.2004666328, 0.2926464975, -0.3081226945, -0.3108552396, 0.0427867323, 0.35672611, 0.0808169395, -0.177598536, 0.0596109815, 0.1286209822, 0.3334872127, -0.3825702071, -0.0494080149, 0.0462444797, -0.3922490776, 0.0021780846, -0.1448619664, 0.5197303295, 0.0282054134, -0.2426551878, 0.0096502379, -0.2224134356 ]
https://github.com/huggingface/datasets/issues/2065
Only user permission of saved cache files, not group
This means we'll check the permissions of other `cache_files` already created for a dataset before setting permissions for new `cache_files`?
Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
20
Only user permission of saved cache files, not group Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? This means we'll check the permissions of other `cache_files` already created for a dataset before setting permissions for new `cache_files`?
[ -0.1428572983, 0.247191906, -0.1365760118, 0.0218380671, -0.0611332282, 0.1519797444, 0.2972183824, 0.1749405861, -0.2172028422, -0.0215460751, -0.0839368999, -0.05868081, 0.0317839496, -0.2856926024, -0.0319772884, 0.1332599819, 0.1821878999, 0.0443538725, 0.09654852, -0.0609316751, -0.101813674, -0.1174134612, -0.0272718128, -0.0965080932, -0.2872999609, -0.1700501442, 0.2464342415, 0.1395108104, -0.0033843075, -0.1678147763, 0.3220139742, 0.5283101797, 0.1039891317, 0.1232834086, -0.0001113227, -0.1744420379, 0.0331922583, -0.0960738435, 0.0774688274, 0.1945367604, -0.1794524342, -0.1781272888, -0.154362902, -0.1446089149, -0.0952902362, 0.1648486555, 0.1669421345, -0.6869980693, 0.4415382445, 0.189167425, 0.2091258913, -0.2013518214, -0.3777410686, 0.049541492, 0.2510105371, 0.0257303454, -0.1516216695, 0.1294456124, 0.215683803, -0.1824465543, -0.0324100703, 0.0404493436, -0.3017320037, 0.1421564668, 0.1594826132, -0.1164244711, -0.3029306233, -0.5466196537, 0.1151204854, 0.1016685888, 0.7427784204, -0.1304638535, -0.522177875, -0.2247487158, 0.0260397308, 0.1467634439, 0.3395375609, 0.3094369769, 0.0320563503, 0.2644798458, -0.4822489023, -0.0603270195, -0.1234004349, -0.014905314, 0.2107094526, -0.0578129962, -0.0543182045, 0.0511021391, 0.0089814439, -0.0314751826, 0.1698547006, 0.1223377138, -0.3839344382, 0.332278192, -0.2173949033, 0.0476987734, -0.204562366, 0.4771674871, 0.2469502836, 0.3256937861, 0.1847621948, 0.1895768046, 0.0483526252, 0.2100987732, -0.0137558235, 0.2042706609, 0.3664560616, 0.3078050613, 0.5489119291, -0.3686139286, -0.1509490758, -0.0088526858, 0.0877646729, -0.391470015, 0.125426352, 0.2992859185, 0.0144490143, -0.1791374683, 0.1573961228, 0.1027248427, -0.0705528483, -0.2997870445, 0.0422844402, 0.2541508079, 0.0851153359, -0.0763171837, -0.0722939447, 0.1465342492, 0.0324664339, -0.3402567804, -0.0242129248, -0.2963756323, -0.3305017054, 0.4524022937, 0.4746804535, -0.2168549299, 0.0492035858, 0.2484592348, 0.1645345837, -0.1960691363, 0.3496299088, -0.0917860419, 0.3922554255, 0.3255966008, 0.2361752987, 0.3156211078, 0.0267674495, 0.0272481088, -0.1347601116, 0.2677811086, -0.3485304713, -0.1394203007, 0.2724357545, 0.0698516816, -0.0414477028, 0.268304348, -0.4000051618, 0.0963900387, 0.5820569992, -0.1821670234, 0.3664319515, 0.3113204539, -0.184241727, -0.3967319131, -0.139060244, 0.3455356956, -0.0855744556, -0.0208135843, -0.0343692861, 0.0243701097, -0.0582220145, 0.2858802676, -0.0335434414, 0.2149336785, -0.1570044905, 0.1900596023, 0.4625101388, -0.0394871309, -0.5458711982, 0.1002072468, 0.2019242793, -0.1777584553, 0.1742073447, 0.0081287324, 0.0909031704, -0.1267572641, -0.1123052388, 0.3109276295, 0.1437161714, 0.2210416794, 0.1205586642, 0.0834582523, 0.0209559128, -0.1079559177, 0.0776224658, 0.3490345478, 0.3411439061, -0.2767299712, 0.1331043392, -0.2544735968, 0.2185060978, 0.4260056019, 0.0747249722, -0.1456940472, -0.0268897563, -0.0790523514, -0.4902149439, 0.2971683443, -0.1627683491, -0.453658551, 0.1062266156, -0.4373445809, 0.0376183838, -0.3469260633, -0.194164142, -0.022836782, 0.1004708707, 0.0246152394, 0.0370800123, -0.3169475198, 0.1327247024, 0.4763794839, 0.2424370199, -0.0093256216, -0.0706983507, 0.1099776924, -0.0890514478, -0.0683471039, -0.2553047538, -0.0874613374, 0.2582809031, -0.0127729904, -0.2527156472, 0.2583006918, 0.1220439225, 0.0432483964, -0.0386164077, 0.2850624621, 0.0263186749, 0.1067761481, 0.0334016755, -0.2647304237, -0.0848739892, -0.1350858957, -0.2590281665, 0.334857285, -0.0561045483, -0.0997394174, -0.1969344318, 0.1580215394, 0.1715057343, -0.0287490152, -0.0890948772, -0.1804485172, -0.0196948033, 0.1461565942, 0.4113467336, 0.1597367078, 0.077003248, -0.0062582926, 0.3378333747, 0.1522031873, 0.1228647158, -0.0516031645, -0.0356434211, 0.0973334163, 0.1813941002, 0.4060631394, 0.2397595346, 0.0390439592, 0.371492058, -0.2152393758, 0.2886894643, -0.1711799055, -0.0337364599, -0.1191087887, -0.0279642716, -0.090012081, -0.1263743043, -0.0320603177, -0.0565780848, 0.2918666899, 0.1202109456, 0.0907791778, -0.3121079206, -0.1080123633, -0.2118526697, -0.2145950645, 0.2602289021, -0.0251873657, -0.5517680049, -0.047547441, -0.1702077091, 0.1539954692, 0.0121372379, 0.186932981, -0.3203652799, 0.1947367042, -0.0745556206, -0.1296607107, -0.2249747068, 0.2378225625, 0.0894280747, 0.0461003706, 0.3092414141, -0.6353923678, 0.1701679677, -0.0190935098, 0.2957181036, -0.3063869178, 0.0594555624, -0.1494596452, 0.0051053679, 0.1052007899, -0.5079743266, 0.0896260887, -0.163907513, 0.0149555784, -0.1765126735, -0.185356155, -0.211288482, -0.0408046544, -0.0131543204, -0.0053919461, -0.2753223777, -0.0776920989, -0.0943382457, -0.115146406, 0.4051738977, 0.110533841, 0.2217612565, 0.0120440107, -0.3030833304, -0.3747798204, -0.2446156144, 0.2633527219, -0.3676408827, -0.607009232, 0.3593266606, -0.4767054021, -0.3456922174, 0.0433664583, 0.1331197172, 0.0991723388, 0.4297137856, -0.0041101705, -0.0211549997, -0.2280493379, 0.2210162878, -0.1964036375, 0.1139001846, 0.0318867266, 0.0017947115, 0.1376155466, -0.0344898365, -0.1062226892, 0.0473001935, 0.0065851221, -0.2572192252, 0.11314895, 0.0360503048, 0.1607573628, 0.7411161065, 0.4388714433, 0.3008575141, 0.332470566, 0.3114253581, 0.6650048494, 0.097194694, -0.1134445071, 0.1356715113, -0.0317312889, -0.1031777263, 0.0624990351, 0.0272422992, -0.2228926271, -0.0018456886, 0.0644987002, -0.2801902294, -0.3881300092, -0.2747063339, -0.3506069481, 0.183800593, 0.1102323011, 0.0856439173, -0.2223828286, -0.2160008699, 0.0105686365, 0.3464002907, 0.2470169663, 0.2285486609, -0.3671298027, -0.0193493366, -0.2943580449, 0.3742133677, 0.0227451827, 0.4750353992, -0.2246237844, 0.2138928473, 0.1289342344, 0.3377269804, 0.3386283517, -0.4378317595, 0.2274726033, -0.0567755848, 0.2345617414, 0.4198520184, -0.233241722, 0.4352370203, 0.471827358, 0.002042766, 0.14080742, 0.1549376547, -0.1456120163, -0.4588283896, -0.1967253834, -0.1002525985, -0.1599144489, 0.1419167817, 0.2106590569, -0.0396175608, -0.0229201466, 0.2928186655, -0.3281126022, -0.1198692322, -0.0302734151, -0.1894746274, 0.1852760315, 0.1096677706, -0.0304378588, 0.3070519567, 0.087471284, 0.0322143994, 0.3932326734, 0.0237635672, 0.1095494404, 0.3567067981, -0.2256632298, 0.3106737435, -0.1641493589, -0.2135905921, 0.3364752233, -0.042443756, -0.3806391954, -0.1152465194, 0.1090465263, -0.1874642074, -0.2366188467, -0.0766054392, -0.1206120998, 0.0288814828, -0.2713644207, -0.6071838737, 0.2486065924, 0.6297309995, -0.3228701055, 0.2944400012, -0.3077938855, -0.3462808132, 0.0473275222, 0.0954113677, 0.6720285416, -0.2086242884, 0.3101061285, -0.4427044392, 0.0898240581, 0.0308257714, -0.4978623092, 0.1184832379, -0.4083597362, -0.4058101773, -0.1548294276, -0.1048942506, 0.0994060561, 0.439502269, 0.0288242772, 0.158329308, -0.0928929374, -0.0273114257, -0.1779789627, -0.1655050218, -0.1810851544, -0.3043155074, 0.3318409324, 0.1356802881, -0.2932882309, 0.0625386462, -0.0369791463, 0.0240470041, -0.1608579755, 0.2299258113, -0.2978419662, 0.0267662648, -0.5783845782, 0.0810303688, -0.2023812085, -0.0371694453, 0.1441643387, 0.3316227198, 0.3499901295, 0.31777668, -0.0064276904, 0.0279274061, 0.3296205103, 0.1519305259, -0.2706280649, 0.0494394861, 0.2387414724, 0.1717918068, 0.0923108533, -0.2741938531, -0.1687279046, -0.2862181962, -0.340472281, 0.2441162765, -0.0152166579, -0.1859957427, -0.0026582093, -0.0552787445, 0.0938524455, 0.0396863408, 0.0952868089, 0.4472771585, -0.0191483665, 0.5354315042, -0.3422572017, -0.2824055851, 0.0496866703, 0.5333957672, -0.0103199873, -0.2313683331, 0.1232593283, -0.3668883741, -0.2851036489, -0.1642359942, 0.2133496702, 0.075798437, -0.0806071684, -0.0703278258, -0.0012588794, -0.0317808278, 0.2264775187, -0.4863906801, 0.0676069483, 0.1558579206, 0.1784559041, -0.3788421452, -0.4165934622, -0.2663298845, -0.4001974165, 0.2526356876, 0.2241735607, -0.5527943969, 0.1362061799, 0.1073159799, -0.2161622494, -0.2127674371, 0.0459293239, 0.1070931852, 0.2127886117, 0.0531717874, -0.1336909235, -0.2046232671, -0.0729881451, -0.0144846207, -0.0733053461, -0.2026972771, -0.0240583699, 0.1368883997, 0.2004260421, -0.2765814066, 0.092837438, -0.4106265008, -0.1257191598, -0.4405407608, 0.0150695117, 0.2330181897, 0.2287784517, 0.3906266391, 0.1772552729, -0.034420006, -0.1514308602, 0.1540428549, -0.1049903631, -0.2296192497, -0.2043364048, 0.242814824, -0.2428243458, -0.0497145131, 0.0680812076, -0.076999642, 0.1046030372, 0.0788832381, 0.0305035319, -0.0453554839, 0.0190068483, 0.2534477413, 0.2714626789, -0.0059423419, -0.0974111632, 0.0727517083, 0.3655058444, 0.1099864468, 0.0762414709, -0.2845458984, 0.4151004851, -0.0876511931, 0.0915352926, 0.3425652981, 0.2678272128, -0.2353953719, 0.1493697315, -0.0980186388, 0.0692609102, -0.3902859688, 0.4481526911, -0.0240279417, 0.1472289413, 0.0574547239, 0.4231708944, 0.2290756404, 0.0466119759, 0.4067045152, 0.2481559813, 0.2605168223, 0.3397052884, -0.3458600044, 0.1276786923, -0.7042194009, 0.1275597215, -0.0197524279, 0.0561295152, 0.2758683264, 0.0758727193, 0.0423824526, -0.0143589517, -0.3197188377, -0.0180120692, -0.1287962347, -0.1407437772, -0.1164156049, 0.1153281331, 0.1106610894, 0.105437316, -0.2872699797, -0.1392530799, -0.2133516371, 0.1835162044, 0.1980627328, 0.0448957421, 0.3090522587, 0.0702032372, 0.1536203325, 0.0105628576, -0.1587675661, -0.0505608842, -0.4993770719, -0.1593479216, 0.1492516398, 0.0837159529, 0.0245941747, 0.1081356481, 0.1414320469, 0.1591998488, 0.2794612348, 0.0684915036, -0.2762520015, 0.3350644112, -0.1086453348, -0.3857879341, 0.0774828792, 0.0289659537, -0.0531088524, 0.006076592, -0.1814499348, 0.047356464, 0.0459572412, -0.0864460394, -0.1857288927, -0.4063055515, 0.1203803048, 0.0207744185, 0.1491140276, 0.045671653, 0.5845218897, 0.0363469049, 0.1851716191, -0.4893619716, 0.0414374545, 0.391639322, 0.2577171028, 0.3724985421, -0.045926474, -0.0485464595, 0.030619571, -0.4142843485, 0.1001222655, 0.1623344272, 0.4591628015, -0.0531644002, -0.1715993136, 0.0971517935, -0.0935882777, 0.6016917825, -0.2467009723, 0.326189965, 0.333363235, -0.2155640572, -0.3029917181, 0.137891531, -0.0660001114, 0.0854798108, -0.351623863, 0.264626503, 0.1475515664, 0.0646323338, -0.110599339, -0.2044217438, 0.223492533, 0.477950871, 0.4655924737, 0.2324145734, -0.0077997441, -0.0009460053, 0.4317926764, -0.3745247722, 0.1243578792, -0.1657429636, -0.0936295241, -0.2061488479, 0.0563702509, -0.6334996223, -0.1452104449, -0.3863382936, 0.0196217783, -0.1199485958, 0.2421507835, 0.064912945, 0.0206036475, -0.1433668137, 0.0332579836, 0.299615562, 0.2285999507, -0.1448930949, 0.3779788315, -0.4137220383, -0.1017753705, 0.2888854146, -0.271957159, -0.2022382319, -0.0633937195, 0.3643735051, 0.1807683259, -0.2005180568, 0.0639389679, 0.0866655558, 0.3763285875, -0.3834570944, -0.0845932141, 0.0343328118, -0.3514176309, 0.0672137663, -0.1358443201, 0.5006895065, 0.0298119523, -0.2390043885, 0.047947567, -0.2229480147 ]
https://github.com/huggingface/datasets/issues/2065
Only user permission of saved cache files, not group
> This way you just need to set the permissions once after doing load_dataset for example, and then all the new transformed cached files will have the same permissions. I was referring to this. Ensuring that newly generated `cache_files` have the same permissions
Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
43
Only user permission of saved cache files, not group Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? > This way you just need to set the permissions once after doing load_dataset for example, and then all the new transformed cached files will have the same permissions. I was referring to this. Ensuring that newly generated `cache_files` have the same permissions
[ -0.1649945378, 0.2504472435, -0.1311803758, 0.0018535872, 0.016402984, 0.0696857721, 0.3859350979, 0.2012925148, -0.2431758046, -0.0268523376, -0.0832430199, 0.0317554809, 0.0088324305, -0.2032844871, -0.0566227026, 0.1244932339, 0.2251380682, 0.1058565378, -0.0469127782, -0.0759037659, -0.1004978791, -0.1561994404, 0.0020294911, -0.1382751167, -0.2803070545, -0.1393662691, 0.2509008348, 0.1854487956, 0.0243441164, -0.1551290303, 0.2401852906, 0.558688283, 0.119588837, 0.1278125495, -0.000108509, -0.1533880085, -0.0551177301, -0.0804116726, 0.0271400008, 0.1929070354, -0.0747351125, -0.1969081908, -0.1917306781, -0.1530253589, -0.1357581764, 0.1554870009, 0.1004975438, -0.6505792141, 0.5274165869, 0.1168168336, 0.2193977535, -0.2099464834, -0.3844194412, 0.0381097309, 0.2251029909, 0.0479849167, -0.1684109569, 0.1200009808, 0.2247460186, -0.1187590137, -0.0439552441, 0.1332409531, -0.3048714399, 0.1042664275, 0.2058610022, -0.1382557154, -0.2443342209, -0.5563908219, 0.046993155, 0.0875774026, 0.6264382601, -0.099785842, -0.5162675977, -0.2456743717, 0.10344854, 0.1492294073, 0.2983024418, 0.3047209382, 0.0544699691, 0.239994958, -0.5317009091, -0.0625441, -0.1593405306, -0.0585577451, 0.2357818186, -0.1048957556, 0.0082517881, 0.0236699618, 0.0207113624, -0.0796311274, 0.1798667312, 0.1895845383, -0.400932759, 0.3293810487, -0.2059287131, 0.0583290905, -0.2278128266, 0.4405921102, 0.2491423637, 0.31865412, 0.1585350633, 0.2033318728, 0.078240484, 0.1383762211, -0.1031733304, 0.2567602396, 0.3083620071, 0.304228723, 0.5483262539, -0.3730143905, -0.2216500491, 0.0326325968, 0.0325834528, -0.3678637743, 0.0904003978, 0.3038926125, 0.0947403535, -0.1761718541, 0.2136980891, 0.1021988615, -0.0048244302, -0.2351536453, -0.042187091, 0.2320291698, 0.1545977741, -0.0539755411, 0.0452962033, 0.1512021422, -0.0480051897, -0.364018321, -0.0102023026, -0.3659336567, -0.3953460157, 0.4914131165, 0.4919768572, -0.1580430716, -0.0312157888, 0.2863593698, 0.1892484277, -0.1733047664, 0.2945373058, 0.0094132228, 0.4202328026, 0.260620594, 0.1965858638, 0.2976061702, 0.0516445264, 0.0267492365, -0.0783434808, 0.3222172558, -0.3108761013, -0.1091552898, 0.2779988945, 0.0938143805, -0.0476206578, 0.2909790277, -0.3671762347, 0.0775540322, 0.5478349924, -0.1628121138, 0.3683682382, 0.2572856843, -0.0955011472, -0.3553995192, -0.1884082556, 0.3907551169, -0.0281885751, -0.0231805798, 0.0068802657, -0.0012331655, -0.1035843715, 0.2831074595, -0.0647816211, 0.1235594675, -0.137136206, 0.1607352346, 0.4129778147, 0.0167186502, -0.4896355271, 0.1158396974, 0.1546937525, -0.1152523756, 0.2207864225, 0.0094187763, 0.100100331, -0.1719107628, -0.1612105221, 0.321464926, 0.2198982686, 0.2970986664, 0.070451133, 0.0779510811, 0.0667020902, -0.1811555475, 0.0924617872, 0.4182467163, 0.2940611243, -0.2295073122, 0.1312016845, -0.3995590806, 0.2576646209, 0.3549232483, 0.0561036952, -0.1388365924, -0.0227871332, 0.0151937464, -0.4653152823, 0.2769153416, -0.2263013572, -0.3846693337, 0.1097714156, -0.4639781415, 0.0545062199, -0.3579557538, -0.1813165247, -0.0714327618, 0.1170310527, -0.0007734573, 0.0085544223, -0.3308464289, 0.1423318088, 0.4758356214, 0.2152562588, 0.0106026707, -0.1697905213, 0.0889071301, -0.0840100944, -0.0551143028, -0.231255576, -0.0318294913, 0.3413781524, -0.0363166519, -0.2875852287, 0.242050603, 0.0710615665, 0.1021633819, -0.084588021, 0.2678920925, 0.036349006, 0.1262852401, 0.116907306, -0.3277267814, -0.1060258001, -0.1014624909, -0.1738276333, 0.3757098317, -0.0945546031, -0.0556380786, -0.2235657871, 0.1533218622, 0.144426778, -0.0640031621, -0.1271199882, -0.1657224745, -0.0189025849, 0.1657903492, 0.3277019262, 0.2167519778, 0.1122765243, 0.1225077361, 0.2859784067, 0.179683134, 0.0327647813, -0.0168508794, -0.0244931877, 0.1001111269, 0.1447473168, 0.4372529685, 0.2620206475, 0.0575687289, 0.272752434, -0.1311238706, 0.3154355586, -0.1805612147, -0.0081164548, -0.1601168066, 0.0520054549, -0.067234911, -0.1780879647, -0.0127130188, -0.0466869473, 0.2545972168, 0.1635736227, 0.0634755045, -0.3407387733, -0.0851244926, -0.2208601087, -0.1682958603, 0.2248604745, -0.067729339, -0.5411041975, -0.0004616251, -0.1686428785, 0.157524541, -0.0167004615, 0.2290779203, -0.2502928674, 0.2309425622, -0.0517678484, -0.1068635061, -0.2852395475, 0.1904075742, 0.0318781808, 0.0391564369, 0.2648195028, -0.6819694042, 0.1082169786, -0.0498188809, 0.3214018047, -0.336250037, -0.0065850327, -0.1964797676, -0.0312057901, 0.0932101607, -0.5233694315, 0.1106679216, -0.0999888852, -0.0006879237, -0.1943657547, -0.2517956495, -0.2066125423, -0.0055069854, -0.034969449, -0.0534210391, -0.2905819118, -0.1511851102, -0.0614063665, -0.1431300938, 0.4335410893, 0.0851115882, 0.2298048139, 0.0896162912, -0.2578109205, -0.4810021222, -0.1615280211, 0.3298188448, -0.4195415676, -0.5174460411, 0.3248217702, -0.5282968283, -0.3527770638, 0.0235854536, 0.1081356406, 0.0974141881, 0.5158911943, 0.0116873058, -0.0420569293, -0.1728510261, 0.2145498395, -0.2988652289, 0.0996037647, 0.0261340383, 0.0606899261, 0.0976806507, -0.04869923, -0.1222708449, 0.0462080166, -0.0357473977, -0.2109105587, 0.0705680475, 0.0151970517, 0.1574347317, 0.6721857786, 0.395840168, 0.271815002, 0.2819130123, 0.2598069608, 0.6446481347, 0.0928582326, -0.1120514795, 0.0937766805, -0.0434907228, -0.1148509234, -0.0076513346, -0.0134744328, -0.2159670442, 0.0148530575, 0.0615098067, -0.285952121, -0.4133948386, -0.1890837103, -0.3930582106, 0.2043077052, 0.1477510333, 0.1117430553, -0.2024672329, -0.1891778558, 0.017769888, 0.3212449551, 0.252500385, 0.2085793465, -0.3571210504, -0.0325285681, -0.25359267, 0.3859595656, -0.0413273461, 0.4713118672, -0.1928550899, 0.0616710223, 0.13504076, 0.3420899808, 0.4331675768, -0.3725550771, 0.1792229265, -0.0567196868, 0.2247842699, 0.3942973912, -0.3113517165, 0.4675218463, 0.388084203, -0.0016573853, 0.1709219813, 0.1048138067, -0.1330660135, -0.4171789289, -0.2021065652, -0.1294091195, -0.1466635615, 0.1025315076, 0.236531347, -0.1127218604, -0.0477675274, 0.2065164894, -0.3365297616, -0.2709625065, 0.0050464193, -0.2208547145, 0.1627900749, 0.1010999605, 0.0172344204, 0.3342778981, 0.116322428, 0.0395714901, 0.3923641145, 0.028024951, 0.0475220867, 0.3474339843, -0.2491830438, 0.3688551486, -0.2201863974, -0.2018556595, 0.2742724419, 0.0419490151, -0.3801099956, -0.134642452, 0.0952150747, -0.1462848037, -0.3152119219, -0.0926017612, -0.1412160844, -0.0508100875, -0.2401287854, -0.6445431113, 0.2152567655, 0.5688724518, -0.3429946899, 0.2212749422, -0.335254848, -0.3594668508, 0.1160675362, 0.1292535067, 0.7586534023, -0.1700623184, 0.333881557, -0.3670007885, 0.1270796061, 0.0235377476, -0.4897475541, 0.0970180035, -0.4280510545, -0.3520037532, -0.1349548101, -0.1423651278, 0.0306567401, 0.4354762137, -0.0121359834, 0.1066629887, -0.1066160053, -0.0949272215, -0.2107930034, -0.1699945182, -0.20216842, -0.3152823746, 0.285990864, 0.1521003097, -0.3186115026, 0.0700335428, -0.0612332374, -0.0316591002, -0.1353673041, 0.2244105339, -0.2181384414, 0.0759986788, -0.5058143735, 0.0952410921, -0.1806235462, -0.0695649832, 0.1136437878, 0.264408797, 0.2961452007, 0.2816789746, 0.0190244503, 0.0406756811, 0.3031317592, 0.2201733887, -0.2503167391, -0.0256922916, 0.3489372134, 0.1968007088, 0.0993242934, -0.3126574755, -0.1262640953, -0.2124953568, -0.3996907771, 0.187008813, 0.000701822, -0.2862555385, 0.0942014009, 0.051291056, 0.0647278726, 0.0765363723, 0.1084606424, 0.3929051161, -0.0862957463, 0.591555953, -0.286196053, -0.3366984427, 0.0760433599, 0.5156171918, -0.0015924744, -0.2648314238, 0.1439151019, -0.3756622672, -0.2430400401, -0.1684212089, 0.1851777434, 0.0896777809, -0.1936165541, -0.0058991811, 0.0644205436, -0.0277552996, 0.2419083118, -0.4868360758, 0.0766689107, 0.1860867143, 0.2071249485, -0.320456177, -0.3578533232, -0.2923530042, -0.3840434253, 0.2802536786, 0.2492889464, -0.4645661414, 0.1048679128, 0.1395433247, -0.2441071272, -0.1916092783, 0.1240933463, 0.1581030637, 0.1949628443, -0.0215590764, -0.1759292781, -0.2068547755, -0.0686159879, 0.0287297443, -0.064695999, -0.1990013868, -0.1046939194, 0.1134179831, 0.1913426518, -0.2448040247, 0.0340240486, -0.3747050464, -0.0902365446, -0.4159332216, 0.0488300286, 0.2445970923, 0.1655192524, 0.3717601299, 0.1695114225, 0.0040588672, -0.1480573565, 0.1289693862, -0.1361817718, -0.1748698652, -0.1619594097, 0.2460042536, -0.3091619313, -0.0388603248, -0.0312951282, -0.0894543976, 0.1638975292, 0.1182408854, 0.0839182809, 0.0065050609, -0.0093804477, 0.1649017185, 0.2747564614, 0.0907519311, -0.1394851953, 0.0161912777, 0.3732376397, 0.1346221864, 0.0957644358, -0.2577311993, 0.321134001, -0.1577559859, 0.0095058428, 0.3665999472, 0.3107981086, -0.2781640589, 0.1229009703, -0.081817016, 0.0787995905, -0.3840862513, 0.4889889657, -0.0606767982, 0.0978191867, 0.0288361106, 0.4561581016, 0.2342559993, 0.0128769362, 0.3948359489, 0.1913924962, 0.2803452909, 0.3155322075, -0.2956944406, 0.0932703316, -0.6603912115, 0.1270818859, -0.013349981, 0.0351369642, 0.3175450563, 0.0470761582, 0.0308498312, 0.0010085002, -0.3721477687, -0.0357874334, -0.0288167223, -0.1293784529, -0.1112948507, 0.1116015241, 0.0949683562, 0.0634830296, -0.2576338053, -0.1162932515, -0.173327148, 0.2095674723, 0.3084503114, 0.0606203526, 0.2429188341, 0.0343622379, 0.1661369652, 0.0629642084, -0.1984057277, -0.0586953349, -0.4229192436, -0.1399528533, 0.2167057395, 0.065249078, 0.0771243647, 0.178066507, 0.1526355147, 0.2093236148, 0.2992312312, 0.1038567126, -0.23057881, 0.3860932291, -0.0636699349, -0.2987651527, -0.0091261351, 0.0410540327, -0.0676223114, -0.0138781369, -0.2073091269, 0.0249306299, 0.0993679389, 0.0009108163, -0.0046150736, -0.3906281888, 0.0279032812, -0.0259141847, 0.1253706515, 0.0821533725, 0.6104057431, 0.0306686684, 0.1854174137, -0.5288826227, 0.068934314, 0.5035282373, 0.3143566549, 0.3292221129, -0.1399841905, -0.0738603473, 0.0577141419, -0.3813986182, 0.1041036919, 0.2445230931, 0.4890331924, -0.0709787905, -0.1197342053, 0.0386082642, -0.1364952773, 0.5329033732, -0.3225666583, 0.2944771349, 0.3345529735, -0.2373430133, -0.2263547331, 0.1648187935, -0.0411133319, 0.1047650129, -0.2933596373, 0.2788987458, 0.2183083594, 0.0790699646, -0.1036354378, -0.1770001799, 0.2364231497, 0.4915591478, 0.5217711926, 0.2991138697, -0.0643644184, 0.0274176523, 0.4217228889, -0.4742162526, 0.0594780371, -0.1954734474, -0.1081847921, -0.1217610836, -0.0582188033, -0.5593054891, -0.1412604153, -0.4380931556, 0.0096386541, -0.0817703903, 0.2550707459, -0.0117183253, 0.023389319, -0.0902686715, 0.0334534273, 0.2685426176, 0.3378421366, -0.1183920726, 0.4349154234, -0.4485857189, -0.1820123047, 0.32861045, -0.2922592759, -0.2384982407, -0.0066256737, 0.4036853909, 0.1122541353, -0.2181577981, 0.0144235678, 0.1285197586, 0.353631109, -0.3826271296, -0.0202645585, 0.1170401722, -0.3663054407, 0.0302188639, -0.1388582289, 0.4482251704, 0.0068104663, -0.2219235152, 0.0491899438, -0.2370271832 ]
https://github.com/huggingface/datasets/issues/2065
Only user permission of saved cache files, not group
Yes exactly I imagine users can first do `load_dataset`, then chmod on the arrow files. After that all the new cache files could have the same permissions as the first arrow files. Opinions on this ?
Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
36
Only user permission of saved cache files, not group Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? Yes exactly I imagine users can first do `load_dataset`, then chmod on the arrow files. After that all the new cache files could have the same permissions as the first arrow files. Opinions on this ?
[ -0.0982317701, 0.2663791478, -0.1286434084, 0.0853283852, -0.1320200711, 0.0446738563, 0.3324170113, 0.118530862, -0.2356888205, -0.0621480606, -0.0989210829, 0.0370315984, 0.0195825957, -0.2461389899, -0.0805590227, 0.0872822478, 0.1227617264, 0.1072843671, -0.0332508348, -0.0952981785, -0.0240279827, -0.1715579033, -0.0351816006, -0.0332674757, -0.1896343529, -0.229026705, 0.2739096582, 0.2133918107, 0.0309157502, -0.2010469139, 0.2349329293, 0.5016700625, 0.1013554186, 0.201083079, -0.0001147357, -0.2658905685, 0.0338740274, -0.0575638153, 0.0078437738, 0.266946286, -0.1161732376, -0.2100124508, -0.0704279169, -0.1335716993, 0.0365232825, 0.0545727015, 0.0910355747, -0.7105928659, 0.5204788446, 0.0122759622, 0.1791728437, -0.1938915551, -0.4023865461, 0.0832863599, 0.2860992849, 0.0430657566, -0.1606019139, 0.1730281115, 0.3103099763, -0.1361087412, -0.0524345003, 0.1056954339, -0.2200270146, 0.0986949578, 0.2257888317, -0.1704333574, -0.2636169195, -0.4594817758, 0.0759381279, 0.1365864426, 0.8266538382, -0.1198405251, -0.4820732176, -0.2638092041, 0.0733137652, 0.198356092, 0.29364416, 0.324624002, 0.0016633775, 0.2001910657, -0.3582295775, -0.1222779527, -0.1994503886, -0.0233816896, 0.2468712032, -0.1406530142, -0.0500774868, 0.0535528995, 0.0249771103, -0.0849355906, 0.2674471736, 0.0949538723, -0.3414617479, 0.3800837994, -0.1853989661, 0.0996081159, -0.2771458924, 0.4416385889, 0.1848989576, 0.3671002686, 0.3062282205, 0.2615469098, 0.0208358057, 0.1910758615, 0.0140879182, 0.2300601006, 0.3232109249, 0.3352375627, 0.4978229702, -0.4137335122, -0.1270279735, 0.06572631, -0.0633108839, -0.4195165038, 0.0475070514, 0.245441258, -0.0278084483, -0.2097612172, 0.2229666412, 0.1323930323, -0.0605982952, -0.2762776315, 0.0271370653, 0.3039215505, 0.0922551751, 0.0124806399, -0.0268434845, 0.1532889903, 0.033194039, -0.3798218071, 0.0337651968, -0.3871084452, -0.4200716913, 0.4929870963, 0.4044268727, -0.1765276045, -0.0331048816, 0.2085526288, 0.2425049096, -0.1636565179, 0.3366354108, -0.042591501, 0.3792300224, 0.286385566, 0.1798953712, 0.363432765, 0.0198318884, 0.0766784549, -0.1069898233, 0.3586046696, -0.3342371881, -0.1467377245, 0.2806138396, 0.0304294024, -0.0477087647, 0.2889645696, -0.4568916261, 0.0635594949, 0.4904052615, -0.1834810674, 0.4105270803, 0.2586521506, -0.0667115375, -0.4665751159, -0.2035537362, 0.4040683508, -0.156800583, -0.0436560623, -0.0511366837, 0.0621061586, -0.128088668, 0.3088609278, -0.124479048, 0.1140969321, -0.1328295022, 0.1697127968, 0.6214050651, -0.0554197431, -0.5478650928, 0.1586872339, 0.1892969608, -0.1027345508, 0.2174238712, -0.0242303386, 0.0259664264, -0.1259121001, -0.2156143934, 0.2760069668, 0.2407996207, 0.1559188068, 0.1018858403, 0.0270283613, -0.0300640743, -0.0831493884, 0.0225227065, 0.2714832425, 0.4265301526, -0.4358937442, 0.2547704279, -0.2961646318, 0.2431108356, 0.4442706108, 0.0852160081, -0.0715313777, -0.001200979, -0.0202655792, -0.5487946868, 0.2893896699, -0.1768636256, -0.5273398161, 0.0809144303, -0.4074390829, 0.0392737389, -0.2897552252, -0.1810068637, 0.046686992, 0.0411263183, 0.0338834748, -0.0887256861, -0.4143950939, 0.1162467673, 0.3877355158, 0.235903576, 0.0315155983, -0.0698555186, 0.0841895789, -0.0712554157, -0.037409313, -0.2687805295, -0.0493057817, 0.1768608838, 0.0349991359, -0.2530091703, 0.2679136097, 0.0601470731, 0.1441574842, -0.080250524, 0.2444085926, 0.0304317754, -0.0141183985, 0.1684854627, -0.2584221363, -0.0873371735, -0.1304801702, -0.2503658235, 0.3609991372, -0.1785720289, -0.033462055, -0.1110744104, 0.1398726553, 0.0843086243, 0.0162242465, -0.1475670487, -0.1299831271, 0.0527597852, 0.2098970115, 0.4378207624, 0.2361801118, 0.0789470673, 0.1187854856, 0.2683708966, 0.1318303496, 0.1181724295, -0.0736095086, -0.1377049685, 0.1421779245, 0.2471882105, 0.365626961, 0.2177817822, 0.0397990234, 0.3672137856, -0.2019690722, 0.3553778529, -0.1610698849, -0.0460285209, -0.1480804533, 0.1355392486, -0.0648088455, -0.1560853124, -0.0596933775, 0.018103024, 0.2383272648, 0.1332809776, 0.0081431363, -0.3435697258, -0.1004174203, -0.1508619636, -0.1511526406, 0.1755266041, -0.129946366, -0.4723000824, 0.0583781339, -0.2219811976, 0.1132970378, -0.0233516339, 0.1973369569, -0.397079438, 0.2917775214, -0.1287027001, -0.1223498359, -0.248147577, 0.2301947027, 0.0850456282, -0.0017607618, 0.3133165538, -0.6097192168, 0.0888756961, 0.0885057226, 0.3788988888, -0.2676569521, 0.0429182127, -0.1726454794, 0.0873140395, -0.0265727974, -0.5216036439, 0.0375706181, -0.2170247734, -0.0558559485, -0.1870145202, -0.2340089232, -0.2217160761, -0.077293478, -0.0286509376, -0.0113662025, -0.2143590897, -0.0855835527, -0.1366392225, -0.1832228452, 0.5226250291, 0.1414615512, 0.2560486495, -0.0023053491, -0.225935638, -0.400225848, -0.2243372053, 0.3215575218, -0.3546552658, -0.4346238077, 0.3281570673, -0.5130246878, -0.3416812122, 0.0300765503, 0.1240739971, 0.1058701947, 0.5141777992, -0.0260712616, 0.0856408402, -0.2186698765, 0.2014669776, -0.308796972, 0.1535310149, -0.0030912166, 0.1196372211, 0.1466682851, -0.053318616, -0.0471323393, 0.0780138448, -0.0812828541, -0.2787156999, 0.1123440117, -0.0189689919, 0.1544211507, 0.8165988922, 0.4180293679, 0.3073640466, 0.2578545511, 0.3554745913, 0.6551370025, 0.1428945959, -0.0472473204, 0.115394339, -0.0610894561, -0.0731160119, 0.0584626608, 0.0761319473, -0.2318723202, 0.0199003126, 0.1093600541, -0.2403734177, -0.3566123545, -0.14287889, -0.4525377154, 0.1425890476, 0.1079090983, 0.0464173071, -0.2667255402, -0.2012429237, 0.03688851, 0.2855020761, 0.2145125121, 0.2000102401, -0.4393436313, 0.0232189782, -0.2913895547, 0.3825505376, 0.0240377951, 0.3767933547, -0.159531191, 0.087866284, 0.1422176212, 0.3085396886, 0.1991609633, -0.368886739, 0.2175953686, -0.0722920671, 0.3133904934, 0.1935794055, -0.2300416529, 0.4239267111, 0.4167355895, -0.0649999976, 0.0880105048, 0.1043234542, -0.1624485999, -0.4611427486, -0.162919879, -0.1400514841, -0.1490294933, 0.1277849823, 0.3009724319, -0.0591899008, -0.050706964, 0.2749478519, -0.3887248933, -0.1966953874, -0.0569884852, -0.2175356448, 0.1835901141, 0.0585522465, 0.0031904646, 0.355663538, 0.0618902296, -0.0241898764, 0.4219600856, 0.1054661199, 0.1905616373, 0.4501102865, -0.2394207418, 0.2526355088, -0.1963377744, -0.2536072731, 0.3440071642, 0.1280099154, -0.3881403804, -0.0913411826, 0.0948837325, -0.2409776747, -0.1785275489, -0.1467932463, -0.1393217891, -0.0003509381, -0.1793933213, -0.5722705722, 0.2993483841, 0.5455889106, -0.387396276, 0.4094865322, -0.1822430938, -0.2915196419, 0.1244033426, 0.0855536088, 0.8844551444, -0.1866294146, 0.3774629831, -0.3722920418, -0.007860939, 0.0343176015, -0.3573720753, 0.0480113439, -0.4815054834, -0.3130869865, -0.1221835539, -0.1820075959, -0.0026546663, 0.4709054232, 0.095575586, 0.0888457894, -0.1663904786, -0.0967434645, -0.1240567341, -0.1856989115, -0.1745549291, -0.2546984255, 0.317206651, 0.099554956, -0.219529897, 0.0381078646, -0.1016564146, -0.0048116469, -0.2958864272, 0.2237447798, -0.2637998164, 0.066334933, -0.6536074877, 0.0883999467, -0.1841794103, -0.1916697025, 0.1924736053, 0.3233479857, 0.250044167, 0.1908156574, 0.0107799973, 0.0848976746, 0.3455126584, 0.1513487846, -0.2724234164, 0.0424260236, 0.2580710351, 0.1514900178, 0.1023696214, -0.1992268711, -0.1965438128, -0.3692897856, -0.3049932718, 0.2606559694, 0.020378409, -0.1966237575, 0.0167661551, 0.0096559813, 0.019398544, 0.1338640749, 0.064138189, 0.4409195185, 0.0114202593, 0.5084742308, -0.1870286316, -0.2663936317, 0.1212543175, 0.486181885, -0.0517145507, -0.2246522605, 0.200137645, -0.3566203117, -0.2840154171, -0.1574018747, 0.2058402151, 0.2287738174, -0.2739262581, -0.0978606492, -0.050014466, -0.1207571477, 0.2087790817, -0.4400064051, 0.1652746797, 0.2225191891, 0.1445555538, -0.3259629607, -0.3702553511, -0.1557094306, -0.3802725673, 0.1694022119, 0.0981940553, -0.6323502064, 0.0848053768, 0.1589219868, -0.1927313507, -0.0859459862, 0.1824996769, 0.0555276945, 0.1917815059, 0.0183820166, -0.1213940009, -0.1498742402, -0.1152233332, -0.027148366, -0.0567797273, -0.1641157568, -0.0398015715, 0.1679484844, 0.1820958406, -0.3579389751, 0.034081012, -0.4784618616, -0.0929454044, -0.3725866377, -0.0069160415, 0.1440313309, 0.1984071136, 0.2655468583, 0.158336699, 0.0265444238, -0.2508020699, 0.2939375639, -0.0832644105, -0.1457858086, -0.1785611063, 0.2487279922, -0.2560300827, -0.0689093843, 0.1211494729, -0.0534529947, 0.1599543989, 0.0876603723, 0.0329495035, -0.0397186652, 0.0136438571, 0.0903765559, 0.3623433113, 0.147984758, -0.0748311952, 0.0384247638, 0.3330177963, 0.0894023255, 0.0964141488, -0.2548564076, 0.2557436228, -0.1211252809, -0.0138892494, 0.3589086533, 0.248576194, -0.283855468, 0.1082214266, -0.1117146984, -0.0246062595, -0.3429882526, 0.4184751809, 0.0051706326, 0.0947764739, 0.0316186622, 0.4915169477, 0.2797821164, 0.1336302608, 0.3028979301, 0.1247793213, 0.1589164436, 0.4848207533, -0.3369290531, 0.1364091337, -0.7019546628, 0.0402299203, 0.064320825, 0.1500833929, 0.2370773852, 0.0920817927, 0.1744422764, 0.0702622086, -0.3857192993, 0.0537546687, -0.2150054872, -0.1069024801, -0.1735503227, 0.0525690466, 0.0101663349, 0.0235930532, -0.2575086355, -0.2358403355, -0.2523637712, 0.2380782813, 0.2799999714, 0.1252834797, 0.1473445743, 0.143504858, 0.2382261455, 0.0518712737, -0.1395545304, -0.0491847247, -0.4437821805, -0.1235460564, 0.2223600745, 0.0707160085, 0.0082138535, 0.141556412, 0.0843226314, 0.1917475909, 0.3114384115, 0.1031472385, -0.2605125606, 0.2802604735, 0.0313889273, -0.4263986051, 0.0495663956, -0.0118827466, -0.06616427, 0.0395997129, -0.1653691828, -0.014356738, 0.0257084928, -0.0964861661, -0.2372014672, -0.4859430194, 0.1218271852, -0.0287645012, 0.1725472659, 0.0998133123, 0.6371155977, -0.0350281857, 0.1357840449, -0.5039876103, 0.0236024521, 0.4224788547, 0.304972142, 0.4329593182, 0.0861295834, 0.0417958461, -0.0040526842, -0.4279854596, 0.178324163, 0.1930170208, 0.4480080903, -0.049912326, -0.0718687475, 0.0979918987, -0.0994582251, 0.6948087215, -0.1792330444, 0.4205056131, 0.3750419617, -0.2903122902, -0.195078522, 0.34420228, -0.0036934232, 0.0794748813, -0.3978529274, 0.2591148615, 0.2087325305, 0.0137086902, -0.061612308, -0.2549701929, 0.1834768802, 0.5491980314, 0.5960672498, 0.1380424649, -0.0373200588, 0.0778945908, 0.2939428687, -0.4272300005, 0.00464703, -0.1335637569, -0.0110720601, -0.1224513426, -0.0802228227, -0.5871814489, -0.0836935788, -0.3447757959, -0.0714138746, -0.0832641348, 0.2952827513, 0.0031481937, 0.0124899177, -0.1258896589, 0.0484200306, 0.2322920263, 0.2587405443, -0.1776359975, 0.3560265005, -0.4420716166, -0.0428558961, 0.338668406, -0.2681601346, -0.1325928569, 0.0472123399, 0.3721210659, 0.3301636577, -0.1808748543, 0.0167278331, 0.0868161395, 0.3808147013, -0.39203462, -0.0991073698, -0.0171486214, -0.4355272353, -0.0082127713, -0.1383622736, 0.6257169247, -0.0122774448, -0.1993692517, -0.0361485742, -0.2800707221 ]
https://github.com/huggingface/datasets/issues/2065
Only user permission of saved cache files, not group
Sounds nice but I feel this is a sub-part of the approach mentioned by @siddk. Instead of letting the user set new permissions by itself first and then making sure newly generated files have same permissions why don't we ask the user initially only what they want? What are your thoughts?
Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
51
Only user permission of saved cache files, not group Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? Sounds nice but I feel this is a sub-part of the approach mentioned by @siddk. Instead of letting the user set new permissions by itself first and then making sure newly generated files have same permissions why don't we ask the user initially only what they want? What are your thoughts?
[ -0.0215069037, 0.3034678698, -0.1613318473, -0.0614499636, -0.0943000093, 0.0116145983, 0.3593586683, 0.2102661431, -0.2881744504, 0.0673981607, 0.0218293946, -0.1237790212, 0.0104281837, -0.2228576392, -0.1488353312, 0.1429992467, 0.1225393414, 0.1753846407, 0.0643008575, -0.0852336809, -0.0920053348, -0.2570911348, 0.0005782292, -0.0861267969, -0.3042488992, -0.1460854709, 0.1376360804, 0.1973121762, -0.0369801782, -0.1767527461, 0.1454707682, 0.5835266113, 0.060447216, 0.1700236499, -0.000113813, -0.2299203575, 0.0330870189, -0.0436645076, 0.0165128391, 0.2122362107, -0.073548764, -0.1644748598, -0.1943164617, -0.2433004975, -0.046204865, 0.1997116059, 0.1979091614, -0.654127419, 0.5026412606, -0.0363663435, 0.1695914418, -0.2603200674, -0.4581024051, 0.1149787605, 0.2927054167, 0.1554131508, -0.1459860504, 0.1088738069, 0.4278712869, -0.2223563343, -0.049046088, 0.1052147001, -0.3066333532, 0.1089935824, 0.143986553, -0.1189897656, -0.2343182415, -0.5785056949, 0.0060196756, 0.1186377183, 0.7419643998, -0.0414395034, -0.500002861, -0.3280442357, 0.1157065779, 0.2075069249, 0.222239241, 0.316342175, -0.144690156, 0.263974607, -0.4496847391, -0.0939295515, -0.1393081099, -0.049711924, 0.2192325443, -0.1179769263, -0.037181206, 0.0456820466, -0.0350004658, 0.0176567286, 0.2272626758, 0.1144422367, -0.3335207701, 0.3299399018, -0.1112538725, -0.0360919274, -0.2102331966, 0.4718672931, 0.2461714, 0.3557562232, 0.2872906029, 0.22514157, 0.0457363166, 0.1456660926, 0.0792333633, 0.1384641081, 0.3433902264, 0.193813026, 0.5769107938, -0.3486529589, -0.0621918701, 0.0978372693, 0.0803735256, -0.3098668754, 0.103473559, 0.3815609813, -0.0208682735, -0.1177322939, 0.1676378846, 0.1382081807, -0.1400250047, -0.407058388, -0.0386475027, 0.2055515796, 0.0458725169, -0.0781720653, -0.0050329957, 0.1522563398, 0.0363858826, -0.3549088836, 0.0399275087, -0.3292354047, -0.3953118026, 0.481821686, 0.5079625249, -0.2105383873, -0.01861028, 0.2744812369, 0.1505053937, -0.1056961268, 0.3306501806, -0.0605824254, 0.3992086053, 0.2370216697, 0.1655956209, 0.3706307113, -0.023712825, -0.0111305369, -0.1217286736, 0.3696786761, -0.332118392, -0.1372835338, 0.3728596866, 0.0540558286, -0.0034283807, 0.3053072691, -0.3055223823, 0.0975192338, 0.4749912918, -0.187849924, 0.2645235062, 0.3264567554, -0.1508256793, -0.4486913383, -0.1300681084, 0.427867502, -0.0520537235, 0.0365225524, -0.0196555424, 0.0565935746, -0.1223032922, 0.2681514323, -0.0935704261, 0.3671367764, -0.1649926156, 0.1947628111, 0.4293014705, -0.010686514, -0.4389023185, 0.194679141, 0.1696154177, -0.0350290798, 0.2052499354, 0.0265074521, 0.0568236075, -0.2115877569, -0.1429786235, 0.2417721599, 0.0068366197, 0.2508013248, 0.021711573, -0.0139129935, 0.0808933526, -0.1215707734, 0.0580403581, 0.338609457, 0.4151692092, -0.3177110553, 0.2092597336, -0.3718043268, 0.2121631503, 0.2398818135, 0.1287964284, -0.135144189, -0.1405807137, 0.0094825439, -0.4876557589, 0.3215153813, -0.1577844024, -0.3858755529, 0.1458156556, -0.3815568388, 0.119694598, -0.3553343713, -0.0348144695, -0.0107424799, 0.0641673058, 0.0118089402, -0.1238073856, -0.3839868009, 0.06631428, 0.4213302433, 0.1884031743, 0.010892937, -0.0326092951, 0.0793724358, -0.1622630209, 0.0366548188, -0.3233985901, -0.1027957425, 0.1893296987, -0.028943425, -0.1541258842, 0.2733413577, 0.0848939121, 0.0598437451, -0.076438494, 0.2839995623, 0.0712550879, 0.1836897731, 0.0505550019, -0.2241446376, -0.0589559153, -0.2423049062, -0.3031655252, 0.3828918934, -0.0749814585, -0.0996838808, -0.1992581785, 0.0980182439, -0.0098712128, -0.1272235662, -0.1304626018, -0.0998731703, -0.0674122199, 0.2601042688, 0.2791471779, 0.2810330689, 0.0791933313, 0.0599677749, 0.3185289502, 0.1296103597, 0.079105489, -0.0605267324, 0.0566113107, 0.0924592167, 0.1974956691, 0.3689729273, 0.2394680828, 0.0554051995, 0.2686427832, -0.1833656281, 0.3721328974, -0.1642818153, -0.050115604, -0.0609723181, 0.0270871464, -0.0607792214, -0.1656577289, 0.0488088578, 0.0602557063, 0.2263970673, 0.0412444845, -0.045597896, -0.2876112163, -0.1677027494, -0.119769007, -0.2105101645, 0.2882495821, -0.0389633812, -0.4841927588, 0.0286955442, -0.1127680317, 0.1295775473, -0.0789715201, 0.1243952662, -0.2907033563, 0.3436163366, -0.1635691673, -0.0660115406, -0.1650730222, 0.2653512359, 0.0996403545, 0.0267298166, 0.3398625553, -0.6474873424, 0.2354012728, 0.0241678655, 0.3293394744, -0.2896648943, -0.0847147256, -0.1201484427, -0.0619769655, 0.1082119346, -0.4897516668, 0.0002000432, -0.1599296778, -0.0240946505, -0.27292642, -0.1890535206, -0.1693423986, -0.1547234356, 0.0760244429, 0.0209452324, -0.3150223494, -0.1158096641, -0.0677883476, -0.1333334893, 0.4151951373, 0.1257448792, 0.2871503532, 0.0431079343, -0.2571902871, -0.4677894115, -0.2548934519, 0.4332950413, -0.2978619635, -0.5735898614, 0.2667668462, -0.3667280078, -0.2950363159, -0.0547702126, 0.0534233227, 0.0496601649, 0.5260623097, -0.0280425698, -0.07100638, -0.1727811694, 0.2378223538, -0.3201943338, 0.176014185, 0.0507706851, 0.0443119295, 0.104399249, -0.0059944866, -0.0630179793, 0.0995540842, -0.0724106878, -0.3326375484, 0.2105695009, 0.0544054024, 0.2172205895, 0.8299288154, 0.3929792941, 0.3720266223, 0.2671793699, 0.3564844728, 0.6644086838, 0.1048224643, -0.0725022033, 0.1425318271, -0.036481265, -0.0717446506, 0.069495365, 0.0811976641, -0.2659111321, -0.0207884442, 0.1108510047, -0.3122136295, -0.4389321506, -0.1026623696, -0.3760763109, 0.1761967689, 0.119298853, 0.1065730229, -0.1995281875, -0.1544144303, -0.0210663714, 0.2632150352, 0.3557826877, 0.1747678369, -0.4637180865, 0.0369302817, -0.3498629928, 0.2690501213, 0.0891757458, 0.418587625, -0.1488758922, 0.0581608526, 0.175257653, 0.286421448, 0.3135203421, -0.370208025, 0.0821561068, -0.1242390051, 0.1768730432, 0.3828262389, -0.1949599981, 0.4328998327, 0.4933440387, 0.0772911236, 0.1491271704, 0.0295710247, -0.1438007504, -0.4299345911, -0.1553688049, -0.0387889892, -0.1753017008, 0.2569082379, 0.2764851153, -0.0702055395, -0.0548046082, 0.3186106086, -0.4268200397, -0.1772151142, 0.0125554828, -0.1444717348, 0.3334311247, 0.1070250198, -0.0956255198, 0.1886479855, 0.0868552476, 0.0401329137, 0.3317948282, 0.0829373896, 0.0104301535, 0.4379090965, -0.2634048462, 0.4645077288, -0.1202838942, -0.3070557415, 0.3799797595, 0.2001862973, -0.2821278572, -0.146081686, 0.1002365276, -0.1474108994, -0.3917490542, -0.168385461, -0.0840123668, -0.1172892228, -0.2973456681, -0.6107850671, 0.203131333, 0.5352293849, -0.3493177295, 0.2802357972, -0.1976735294, -0.3199747801, 0.1157680303, 0.0899705365, 0.8514472246, -0.1189205125, 0.4581422806, -0.3852829933, 0.0906188712, 0.0300646443, -0.4793527126, 0.0184784736, -0.4417716563, -0.3964939415, -0.157392323, -0.1264577061, 0.0611545704, 0.5075002909, 0.0699486136, 0.1319336593, -0.0312287565, -0.0157003663, -0.0805766284, -0.0955836624, -0.2434276193, -0.2530541718, 0.4673326313, 0.1035225391, -0.2109703869, 0.0416739136, -0.1058873236, -0.0191942938, -0.2302454263, 0.1174575835, -0.1970199794, -0.0147034414, -0.5546617508, 0.0146598341, -0.150905028, -0.0532318838, 0.1978966892, 0.2467459291, 0.2595119178, 0.369088769, 0.0198922846, -0.0037851944, 0.3759624958, 0.2865215838, -0.1338461339, 0.0350458436, 0.2950533926, 0.1952957064, 0.1418514848, -0.2592481077, -0.1916336864, -0.3534181416, -0.5514910817, 0.2923978865, 0.0362898521, -0.2155063301, -0.029629048, 0.0761443973, 0.0758178979, 0.0935085118, 0.0711848289, 0.4465317428, 0.0325403437, 0.5419019461, -0.3480488062, -0.2729811966, 0.0171710681, 0.456242919, -0.008791443, -0.2799371183, 0.12193463, -0.4247003198, -0.2871578932, -0.1838989556, 0.2165850848, 0.0992646441, -0.1942408085, -0.1453797519, 0.0039366279, -0.0536711812, 0.2282118052, -0.5018804073, 0.136412397, 0.0631131306, 0.2404439747, -0.2232870907, -0.3366979659, -0.2222481966, -0.2816535234, 0.2878141105, 0.1748158038, -0.531698525, 0.0342521556, 0.1116781607, -0.2204290628, -0.1617444605, 0.2376938909, 0.1767827421, 0.2374242544, 0.0645027906, -0.2117526382, -0.1975315213, -0.0868830532, -0.0958414972, -0.0733446777, -0.1839973629, -0.0220431685, 0.1630771458, 0.1925925463, -0.305727005, 0.1155592725, -0.409688741, -0.1216662675, -0.4183572233, 0.0601982474, 0.2559387684, 0.2084678411, 0.2805691361, 0.2027065158, -0.0340544172, -0.1311456412, 0.2717739046, -0.1490411311, -0.1615097672, -0.2404677719, 0.2573897839, -0.2780955732, -0.0271795932, 0.0881202668, -0.0225394741, 0.0841832981, 0.1487890929, 0.063941747, 0.0238670465, 0.0719450936, 0.1772979051, 0.303820312, -0.0395745896, -0.1294693351, 0.0597625673, 0.4733665287, 0.1325889975, 0.1642729789, -0.2211525291, 0.2963956892, -0.1967690736, 0.0397142246, 0.4383156002, 0.2616911232, -0.1876133531, 0.194737494, -0.1431864798, 0.0286021978, -0.4217783511, 0.4083345234, -0.0260618627, 0.0835902691, -0.009268431, 0.4539860189, 0.1205734238, 0.0059180246, 0.2759361863, 0.2359695733, 0.2251792848, 0.398023963, -0.3255465329, 0.0371677987, -0.6843452454, 0.1587271541, 0.0663738176, 0.1399270147, 0.2649143636, 0.0653446242, 0.0981895924, -0.0088551473, -0.3272552788, 0.0779375732, -0.2223502547, -0.1073074415, -0.0925634578, 0.0925490707, -0.0064455494, 0.0414032862, -0.2435083985, -0.2393178493, -0.2039112747, 0.1722241044, 0.2994827628, 0.0268009957, 0.2390522361, -0.0057681254, 0.0227450728, 0.1052183583, -0.2305181772, -0.0886005387, -0.5490134358, -0.1587804854, 0.1963798702, 0.1576896459, -0.002471613, 0.2507821023, 0.1155069694, 0.1143042222, 0.2105148137, 0.1410673708, -0.3057365716, 0.3160783947, -0.0784321949, -0.3726969659, 0.0205800813, 0.0133964531, -0.0556953475, 0.0213039722, -0.1417460442, -0.0697396919, -0.1042275503, -0.0591589734, -0.0012653843, -0.3647175133, 0.1928964853, -0.0246816389, 0.0996290222, 0.0929882303, 0.5304291844, -0.0801031962, 0.213190034, -0.5350331068, 0.0406225957, 0.4460457563, 0.0969034657, 0.4369760752, -0.0602698214, -0.1579891443, 0.0823485777, -0.3973452151, 0.067231141, 0.2058848888, 0.481069535, -0.0473965071, -0.1647840887, 0.1603335142, -0.0201024693, 0.5293856859, -0.3117312491, 0.230998382, 0.3042069077, -0.2668891847, -0.1646341532, 0.2002539933, -0.0559968166, 0.0255705602, -0.336158067, 0.2876139283, 0.2087491602, 0.0566420667, -0.1186756492, -0.2009542435, 0.1894120276, 0.5180321932, 0.4471520483, 0.2234645039, -0.1281675547, -0.0144972373, 0.3214602768, -0.4525115192, 0.1204557642, -0.1858815998, -0.1433233172, -0.1372976601, 0.0232626982, -0.5915026665, -0.140979141, -0.390001148, -0.0541633442, -0.095973894, 0.3669760823, 0.0574750043, -0.0047726496, -0.0992673859, 0.0349666439, 0.257949084, 0.355963558, -0.1373484135, 0.436842382, -0.4264822602, -0.0077002002, 0.2884616256, -0.2015531212, -0.146674037, -0.0174017139, 0.3491694629, 0.1621317863, -0.107166037, 0.0584284849, -0.0640761629, 0.3837525547, -0.4046952426, -0.0600083582, 0.1296224743, -0.4057178795, -0.1622671336, -0.0585072897, 0.508382678, -0.0459663123, -0.2583737671, 0.013550113, -0.2333886623 ]
https://github.com/huggingface/datasets/issues/2065
Only user permission of saved cache files, not group
Yes sounds good. Should this be a parameter in `load_dataset` ? Or an env variable ? Or use the value of `os.umask` ?
Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
23
Only user permission of saved cache files, not group Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? Yes sounds good. Should this be a parameter in `load_dataset` ? Or an env variable ? Or use the value of `os.umask` ?
[ -0.1157245561, 0.1915661544, -0.1204444394, 0.0102189155, -0.0046566022, 0.0738375112, 0.354893744, 0.0830472782, -0.0977412835, 0.0234236158, -0.1051576287, 0.1137062684, 0.0743693709, -0.2714213431, -0.0607255846, 0.1525206864, 0.2136560231, 0.0242684763, 0.031402085, -0.1150258482, -0.1682758331, -0.0577768721, -0.1090057865, -0.0970226303, -0.231543839, -0.1235303283, 0.2449163795, 0.2954756916, -0.012377386, -0.1583915055, 0.2343732566, 0.5587266088, 0.1839399189, 0.0664557293, -0.0001146071, -0.13733311, 0.0245991834, -0.130072847, 0.0329921208, 0.2129815221, -0.0198339298, -0.1354001611, -0.1063276157, -0.2107834965, -0.1455823779, 0.1845487505, 0.0864103213, -0.6697395444, 0.4485444129, 0.2498931736, 0.1849120259, -0.1789574176, -0.3419659734, 0.1327788234, 0.2498422414, 0.1016632766, -0.1213097423, 0.064446196, 0.2906066775, -0.1677010208, -0.0334177054, -0.006596514, -0.2996162772, 0.0673057064, 0.2002076805, -0.0560005307, -0.2622171044, -0.5426021218, 0.077499859, 0.067899704, 0.7661522031, -0.0833126381, -0.5185662508, -0.1043561175, 0.0909015238, 0.225460887, 0.38256073, 0.3455037177, -0.02178552, 0.3150944114, -0.5068026185, 0.0105496207, -0.229210034, 0.0499697439, 0.1538021863, 0.014185708, -0.001282346, 0.1121538207, 0.0697185844, -0.0866593793, 0.1956955642, 0.1137942299, -0.3244982064, 0.3942145705, -0.2211424857, 0.0370485187, -0.2199567258, 0.4640307128, 0.238404721, 0.2879550159, 0.2111438215, 0.1848994941, 0.007535344, 0.2291597575, -0.0334106572, 0.1429676861, 0.3944538832, 0.2765600085, 0.5267384648, -0.3781730831, -0.1103836522, 0.0315588862, -0.0516873375, -0.3931078613, 0.07375101, 0.2395583838, 0.0403586365, -0.203632161, 0.128282845, 0.0821355656, -0.1116086468, -0.2773316801, 0.0313260518, 0.36968413, 0.1135347262, -0.1150822639, 0.0398908779, 0.2530941665, -0.0455175899, -0.3753746152, 0.011407773, -0.3871250153, -0.2792083323, 0.4033256769, 0.4752322733, -0.1266806573, 0.037480589, 0.2577851415, 0.129554674, -0.2477273643, 0.3621705174, -0.0441979729, 0.3986063004, 0.3669503033, 0.2635759413, 0.2514340281, 0.0983394235, 0.0283259042, -0.1079148427, 0.4005106986, -0.3557934463, -0.1548411548, 0.2978981137, 0.0562414527, -0.0700573847, 0.2229291797, -0.3771530986, 0.1008090153, 0.5208300352, -0.0400723219, 0.3602374792, 0.2457834035, -0.2040589601, -0.4434045255, -0.0713325888, 0.2709902525, -0.1343949437, -0.0585172363, -0.0877238885, -0.0652473345, 0.0261635166, 0.3507984281, -0.0272542723, 0.2278838009, -0.0913009718, 0.1632228792, 0.4935805798, -0.0270813759, -0.5619923472, 0.1231573075, 0.2241750956, -0.1495334208, 0.1917966008, 0.0252748933, 0.0326283313, -0.0548462793, -0.08132229, 0.3807574213, 0.2587206066, 0.2704672217, 0.1384899318, 0.1101885289, 0.051645197, -0.018708678, 0.0409565717, 0.3495688736, 0.384988904, -0.3570518792, 0.2508896887, -0.2888384461, 0.2376912087, 0.4559271038, 0.0941977799, -0.1270497888, 0.0241285078, 0.044178158, -0.3931058347, 0.2504176795, -0.0999293327, -0.4025930166, 0.0985726416, -0.4768049121, 0.0507054776, -0.2261069715, -0.150482893, -0.0876728296, 0.0498791188, 0.0069948379, -0.05511472, -0.3226659894, 0.137242496, 0.3789219856, 0.2070663571, -0.0071921931, -0.125598833, 0.1369619071, -0.0797371566, -0.0754806623, -0.2361453921, -0.0997981429, 0.2494995743, 0.0149251716, -0.2919358015, 0.3010901809, 0.2039220631, 0.0037091845, -0.1793103218, 0.1579238921, -0.0316227153, 0.0792519227, 0.0922478512, -0.1883665323, -0.0780678838, -0.1718756706, -0.2997309268, 0.3796450496, -0.107098341, -0.0961287245, -0.2705842555, 0.1875980943, 0.1234655082, 0.0009859155, -0.136859253, -0.1022856683, 0.0375523977, 0.1670027226, 0.3814092577, 0.2300319076, 0.0853394791, -0.0208791271, 0.3448318839, 0.1670390218, 0.0647970065, 0.0143181132, -0.0658063516, 0.0711303651, 0.2488199174, 0.2583678663, 0.3715964258, 0.0479276255, 0.2792146504, -0.168510735, 0.3713316023, -0.1328788102, 0.0269257128, -0.0919245034, -0.0579605624, -0.2032173574, -0.2128096521, -0.0640652552, -0.0018405967, 0.2651611567, 0.1012497023, 0.0838899389, -0.4108766317, -0.1133112535, -0.1967410445, -0.1337638199, 0.3249432147, 0.0046008145, -0.5532535911, -0.0559350289, -0.1994499266, 0.202229768, -0.0330776386, 0.2091742754, -0.204614237, 0.2034395635, -0.0310079772, -0.1547105312, -0.1921053827, 0.2037313133, 0.0917626098, 0.0121300779, 0.1726272106, -0.5726965666, 0.1163186952, -0.0581243187, 0.2865842283, -0.2865249515, 0.0354092419, -0.1741321236, -0.000708623, 0.123565957, -0.4385624528, 0.0518095829, -0.2357429564, 0.0070021669, -0.130734548, -0.2610491514, -0.2307142317, -0.0324151628, 0.1210665777, -0.0235936679, -0.2637915611, -0.0945186168, -0.1961843818, -0.158445105, 0.4723944068, 0.1527373791, 0.2521524131, -0.0147096617, -0.2428226769, -0.4192587733, -0.1423545331, 0.2821735144, -0.3960950971, -0.5978459716, 0.3621938825, -0.4948402345, -0.4088157415, 0.0648187771, 0.1902254969, 0.0873684958, 0.4965359271, -0.0206682589, -0.0327210389, -0.1303582639, 0.2110584527, -0.3021686077, 0.1490705162, -0.0183232576, -0.0033314025, 0.1987172067, -0.0616131052, -0.2049268782, 0.0157701168, -0.001858433, -0.2435670793, 0.173383072, 0.1804015338, 0.0368580073, 0.6638668776, 0.400610894, 0.3711779416, 0.3447339237, 0.2460651398, 0.6566483378, 0.1277869046, -0.0983543992, 0.1328798085, 0.030742228, -0.1344198138, 0.1476201415, 0.050736174, -0.2245365828, 0.008627031, -0.030514909, -0.252789706, -0.414550364, -0.1356716901, -0.2857637703, 0.0906811804, 0.0120838676, 0.2275616974, -0.2544754446, -0.1996298879, 0.0157245751, 0.3498137295, 0.1901770234, 0.2888478339, -0.5011578202, 0.032207001, -0.3375477791, 0.4071545005, -0.1128841043, 0.457940042, -0.2347191274, 0.1226631701, 0.2193190604, 0.3533584476, 0.4206822217, -0.4260229766, 0.2191752195, 0.0246855114, 0.1591668874, 0.2435566485, -0.1874755472, 0.4024349451, 0.4582359791, 0.0386998355, 0.1010609269, 0.1391743422, -0.1269146651, -0.4196948409, -0.2121935487, -0.0887364447, -0.3115249276, 0.0865531191, 0.1946702003, -0.1184442341, -0.083851859, 0.2580325603, -0.3196935058, -0.192800656, 0.0135652497, -0.235961929, 0.2144567221, 0.0882398412, -0.0233600289, 0.374998033, 0.029077867, -0.0138733769, 0.3818997145, 0.0074325483, 0.1824670583, 0.4704226255, -0.2757957876, 0.2875594199, -0.1840996146, -0.2768238187, 0.4023552835, -0.0207729861, -0.3571339846, -0.1568692625, 0.1743986756, -0.1930554807, -0.2674134374, -0.0111442022, -0.1028447077, 0.0749540403, -0.2801113725, -0.6301466227, 0.2023378015, 0.5458948612, -0.3691296875, 0.2700285912, -0.3061340749, -0.3580112755, 0.2122461498, 0.1005998701, 0.7887318134, -0.2464869022, 0.3536963165, -0.4175287783, 0.1269739717, 0.0216058474, -0.4390438497, 0.071699582, -0.4734858572, -0.3681217134, -0.1136458591, -0.1103549674, 0.0601076595, 0.5340066552, -0.0449446402, 0.0978288427, -0.0706807896, -0.1043383181, -0.1764696538, -0.1874248385, -0.1608290374, -0.327098608, 0.2392127067, 0.114099063, -0.2312962711, 0.0558352768, -0.0365254059, 0.0121988794, -0.1867183447, 0.1956742704, -0.1977065802, 0.0684633106, -0.6160364151, 0.068223238, -0.1547408849, -0.0878570303, 0.130937174, 0.4158763587, 0.2986324728, 0.3483609557, -0.0136348307, 0.0292693228, 0.3476782739, 0.206943512, -0.2035662085, 0.0342271887, 0.2627516389, 0.1758734137, 0.0214595664, -0.2505778372, -0.1745351553, -0.3691314161, -0.2691721618, 0.2384554595, 0.0540874973, -0.2971134484, -0.0545926988, -0.1923460215, 0.096593976, 0.1019243971, 0.0662560686, 0.5287201405, -0.0330316089, 0.5756490827, -0.3444021642, -0.3904919326, 0.0317517482, 0.5647517443, -0.0669801086, -0.236816898, 0.154580161, -0.3134379387, -0.2485010028, -0.1570893228, 0.2500905991, 0.1942852885, -0.1230061874, -0.0877435282, 0.0684736222, -0.0695992187, 0.1941011846, -0.4771356881, 0.0461776927, 0.1764191687, 0.1300098449, -0.3780311942, -0.4907988906, -0.3061333299, -0.3063037992, 0.2266626656, 0.3198885024, -0.6408579946, 0.1010530367, -0.0160244275, -0.1997380555, -0.2347139865, 0.076754868, 0.0967481583, 0.1776961982, 0.0467798188, -0.0919495672, -0.2028863281, -0.0703607723, -0.1117065549, -0.053386502, -0.1622436047, -0.0469906442, 0.1502443999, 0.1753889173, -0.3635747433, 0.1325896829, -0.4973803759, -0.1254300773, -0.4760817289, 0.0602508672, 0.31471017, 0.1937379986, 0.3190413117, 0.1800255328, 0.0004232981, -0.2174242437, 0.1761337966, -0.184756279, -0.1335197538, -0.2566709816, 0.2496267259, -0.2918273807, -0.0442201532, 0.0959341452, -0.0525664538, 0.1684156358, 0.0968466774, 0.1087142453, 0.0077952961, 0.0210089609, 0.0825723186, 0.2972580492, 0.0636646822, -0.1853005737, 0.0696974769, 0.3839074373, 0.0971769914, 0.1314065456, -0.2571958899, 0.3448214531, -0.1068822518, 0.0000318419, 0.3978750408, 0.1617183983, -0.2893995643, 0.1561604142, -0.1030877009, 0.1565575898, -0.2774783671, 0.3243858814, -0.0405135341, 0.0415860154, 0.101623252, 0.3367093205, 0.2523679435, 0.0584523194, 0.3339832425, 0.1865361035, 0.199639678, 0.3867459297, -0.3236474097, 0.1058690771, -0.7008693814, 0.0736417696, -0.0000705602, -0.0661129281, 0.3008567393, 0.1088779196, 0.0256840214, 0.0033399062, -0.2885981798, -0.0088926628, -0.1278472841, -0.1557436436, -0.1520420909, 0.0488089137, 0.1350803077, 0.0352477506, -0.2344052792, -0.199081704, -0.2742216289, 0.1608579606, 0.2585524619, 0.0971267149, 0.1773423851, 0.0228631552, 0.1148764417, -0.0264974199, -0.2395642698, -0.0577450432, -0.513640821, -0.0990763679, 0.3457366228, -0.0201042332, 0.0873504728, 0.1511548012, 0.1820170581, 0.1513982117, 0.3052733541, 0.1070545241, -0.2939303219, 0.2839919031, -0.0807650313, -0.2318911701, 0.1009292156, -0.0029199058, -0.0153889144, -0.1272788048, -0.1417841464, -0.0105080586, 0.0553011373, -0.0667927191, -0.136472553, -0.439178288, 0.1145024449, -0.0423414148, 0.1652352363, 0.0423084795, 0.4903940558, 0.0976865068, 0.2387546897, -0.4316913486, 0.0201407652, 0.3464190662, 0.2648150623, 0.3824140429, -0.0085257087, -0.0242715869, 0.0564009212, -0.4088504016, 0.1377023607, 0.2087856084, 0.3114923537, 0.0199450236, -0.2332527041, 0.1249172091, -0.0681982189, 0.5730349422, -0.2475410849, 0.2576635182, 0.3815856278, -0.2472924739, -0.3133663833, 0.2009397, -0.0212378614, 0.0751514062, -0.3698141277, 0.3097248375, 0.06144768, 0.0272924099, -0.1679833233, -0.1955738217, 0.1988153011, 0.5369480848, 0.4967280626, 0.1937575489, -0.003343815, 0.0288406666, 0.4734129012, -0.3762742281, 0.1190754622, -0.2065248042, -0.0309421867, -0.1803782433, 0.02470286, -0.5975056887, -0.2022423893, -0.3634682596, 0.0467549935, -0.1567851156, 0.1914336383, 0.0811971873, 0.1009823829, -0.1009096727, 0.0274026655, 0.3133312464, 0.2561117709, -0.1445181817, 0.3793406487, -0.3996711075, -0.1239276454, 0.2655772269, -0.271620512, -0.1795499921, -0.0824192166, 0.3575586677, 0.1435212493, -0.177156657, -0.0216590576, 0.0905538648, 0.3699931204, -0.4360894263, -0.1380516589, 0.0460885316, -0.3514814973, 0.0730111971, -0.1463425606, 0.4525748193, -0.0052707917, -0.2306554317, 0.0680167526, -0.2877994478 ]
https://github.com/huggingface/datasets/issues/2065
Only user permission of saved cache files, not group
Ideally it should be a parameter in `load_dataset` but I'm not sure how important it is for the users (considering only important things should go into `load_dataset` parameters)
Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
28
Only user permission of saved cache files, not group Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? Ideally it should be a parameter in `load_dataset` but I'm not sure how important it is for the users (considering only important things should go into `load_dataset` parameters)
[ -0.1360279322, 0.235768497, -0.1311272085, 0.0613819696, -0.0553659126, 0.0940650776, 0.3185191154, 0.1379299611, -0.1731731147, 0.0212594587, -0.0261568185, 0.0268606544, 0.0603255518, -0.2584317923, -0.0404043496, 0.0852193683, 0.1406023651, 0.0469480008, 0.0417575464, -0.0636762753, -0.1245545968, -0.1261475533, -0.0492923297, -0.095619224, -0.2034236491, -0.1365756392, 0.322145611, 0.2506713271, 0.037361145, -0.1135132685, 0.2764498293, 0.5581903458, 0.12196289, 0.0878673792, -0.0001150559, -0.1816448718, 0.0381920002, -0.1321013421, 0.0325186029, 0.1941936016, -0.1203792393, -0.1345289052, -0.1216262281, -0.1587390155, -0.1057850569, 0.16504848, 0.1044897288, -0.6469728351, 0.4460662305, 0.1828894615, 0.1859185696, -0.2256553322, -0.3946876526, 0.0816633999, 0.2488643229, 0.1016985327, -0.1462103128, 0.1121082604, 0.273981601, -0.1514122039, -0.0044230246, 0.000006285, -0.3130863607, 0.0512259789, 0.1830157489, -0.1587806642, -0.2716635466, -0.5145753026, 0.142912358, 0.0730123967, 0.7643355727, -0.1047451422, -0.4819134474, -0.1847706884, 0.0223102346, 0.2133851796, 0.3478795886, 0.2973596454, 0.0136781903, 0.3095960319, -0.4908583164, -0.0657005459, -0.1992783844, -0.0027750484, 0.1880512536, -0.0514000505, -0.0381642431, 0.1153749973, -0.0053000911, -0.0531312115, 0.1405495852, 0.1195211262, -0.3659528196, 0.3780120611, -0.1778175384, 0.0718213394, -0.1930507272, 0.4293599725, 0.2333185077, 0.3262347579, 0.2667453587, 0.2092348784, 0.0826544315, 0.2248353064, 0.0094389599, 0.1519306898, 0.4054579437, 0.2742932737, 0.5419011116, -0.3882968724, -0.0662726462, 0.029087197, -0.028464241, -0.3923725188, 0.1260010451, 0.2452685535, 0.0128252329, -0.2103173882, 0.1821023673, 0.0922429785, -0.0493148081, -0.2737068832, 0.0306840912, 0.3166087866, 0.05915723, -0.0872476101, 0.007686099, 0.1134035662, 0.0246477183, -0.4042436779, -0.0034629167, -0.375095427, -0.3589877188, 0.464140892, 0.4577976465, -0.244826898, 0.078225933, 0.2190751731, 0.163728863, -0.240477562, 0.3377042413, -0.0499821454, 0.357724607, 0.4029447436, 0.2828168869, 0.3107585311, 0.0389944613, 0.0398123264, -0.0994034261, 0.3312432468, -0.3699697256, -0.1543808579, 0.2854832113, 0.0420136079, -0.0352837518, 0.2946743667, -0.4751752019, 0.1014178097, 0.5583773255, -0.1506777704, 0.3145249188, 0.2650930882, -0.2219116837, -0.4502769709, -0.0772986263, 0.3010315001, -0.1203652024, -0.0477250554, -0.0348954163, -0.014997703, -0.00783813, 0.2800574303, -0.0775765628, 0.2429602742, -0.0706209466, 0.1884449124, 0.5337370634, -0.0477491207, -0.575014472, 0.1883644462, 0.18891491, -0.179831326, 0.1891257316, -0.0152316215, 0.1123891771, -0.0776225552, -0.0667917058, 0.3543642163, 0.2272959203, 0.2602186501, 0.1782482564, 0.1146012023, 0.045651827, -0.0540022999, 0.0377728604, 0.3933878243, 0.3831640184, -0.3089502752, 0.1788145751, -0.2511121929, 0.2620517015, 0.4649667144, 0.0307011455, -0.1328856647, -0.0077300384, -0.0465990081, -0.4959972203, 0.2730863988, -0.1101472676, -0.4933680594, 0.0916129276, -0.4283300936, -0.0183196925, -0.272695899, -0.144803375, 0.006464296, 0.0430833884, -0.0094616795, -0.0796331614, -0.3605629206, 0.1758663207, 0.4297906756, 0.2050468028, -0.0376983881, -0.128812328, 0.0865144432, -0.0465494655, -0.1004959121, -0.2174245715, -0.1228885502, 0.2693600059, 0.0302327219, -0.2796183825, 0.2872934639, 0.1608498693, 0.0764010549, -0.1081748456, 0.2295517921, -0.0259981379, 0.0941333175, 0.034796223, -0.2608455122, -0.0801380649, -0.1637897789, -0.2425539196, 0.3675412536, -0.1197708696, -0.084922947, -0.2220301777, 0.1864245236, 0.1616754383, 0.0087418491, -0.1625155658, -0.0869644135, -0.0125955977, 0.192494303, 0.4017889798, 0.2435413003, 0.0101198787, -0.0241999533, 0.3577237129, 0.1539073139, 0.0820487514, -0.0283463486, -0.0804596171, 0.057816375, 0.2434149384, 0.2833218575, 0.3093883991, 0.047160808, 0.2991297245, -0.2422783822, 0.3165652454, -0.1635978818, -0.0105384886, -0.106348671, 0.0025095162, -0.1118768081, -0.1996191442, -0.0505080223, -0.0126423799, 0.2895014286, 0.1080950722, 0.0564981773, -0.3899312913, -0.0709531829, -0.206516996, -0.1147948727, 0.2945740819, -0.0922338143, -0.5483310223, -0.0536430515, -0.2354534566, 0.2290987372, -0.0110397944, 0.163317278, -0.2583621442, 0.2286835462, -0.0755809769, -0.1648591012, -0.2506804466, 0.2484351248, 0.0460662171, -0.0024243891, 0.1846738011, -0.5759435892, 0.1644117981, -0.0296029765, 0.3323052824, -0.2513526082, 0.0949382409, -0.1534491032, 0.0210906621, 0.1508965641, -0.4861029685, 0.1240451708, -0.1586667746, 0.0218375139, -0.1734281927, -0.1874536872, -0.1731724441, -0.0213988516, 0.027845731, -0.0310983136, -0.3103384972, -0.1054451093, -0.1327477694, -0.1433523446, 0.3912354112, 0.1155995652, 0.2324866652, 0.0079757888, -0.2187785208, -0.4117313027, -0.2179623544, 0.3084759116, -0.3918885887, -0.618273139, 0.3513799608, -0.5044493675, -0.4009486139, 0.0475197174, 0.2151393145, 0.1240807399, 0.5143631101, 0.023878485, 0.0336521268, -0.1428753883, 0.1807021797, -0.3144261241, 0.0916592777, 0.0156754069, 0.049006708, 0.1960962713, -0.0667600632, -0.1699825078, 0.0547243841, -0.0005293636, -0.2220745087, 0.1749123335, 0.1327407956, 0.0634816512, 0.7849991322, 0.3883146644, 0.3106006682, 0.3129927814, 0.284047693, 0.6152814627, 0.134921357, -0.0927726105, 0.1380268037, 0.0194204394, -0.0925644785, 0.1346922219, 0.0232396573, -0.2210257053, -0.0166211035, -0.036662221, -0.309291482, -0.3717313409, -0.2026934475, -0.3159177005, 0.1572171152, 0.064225629, 0.1235329881, -0.2987570465, -0.1908788979, -0.0169987995, 0.3514695168, 0.2301059663, 0.2705020607, -0.3379976749, -0.0295760129, -0.3026226163, 0.3595711589, -0.0352896154, 0.4659920931, -0.2662653029, 0.2106814981, 0.1673321575, 0.3745911121, 0.4072613418, -0.4263465106, 0.2426747829, -0.0541129187, 0.2029173374, 0.2937228978, -0.2115207165, 0.4624212086, 0.4730284512, -0.0399509966, 0.0854395628, 0.1279442608, -0.1748677939, -0.4338357151, -0.221664086, -0.144120276, -0.2356079221, 0.0851391181, 0.184687376, -0.0517426208, -0.1039298624, 0.3252378106, -0.3153505027, -0.179108575, -0.0511320159, -0.1827658564, 0.1800735146, 0.0917651057, 0.0356344767, 0.3379076719, 0.0901943222, -0.0477941521, 0.4214044213, 0.0411988012, 0.1237610206, 0.3518936932, -0.1940189898, 0.3321694434, -0.1683043987, -0.2559117973, 0.4673244059, -0.0353716873, -0.4321640432, -0.1290143877, 0.1249465048, -0.2334093451, -0.2891231477, -0.0210470669, -0.0685050339, 0.0058549163, -0.2907113433, -0.6374560595, 0.2226539403, 0.5671570301, -0.397254169, 0.3289407492, -0.3693506718, -0.3797778785, 0.107525982, 0.1092870384, 0.7499819398, -0.2078107893, 0.3130449951, -0.4576827288, 0.1495298147, -0.0146854669, -0.3989048302, 0.0419778079, -0.4142239988, -0.3809762597, -0.1449600011, -0.1103522331, 0.0486163497, 0.4917735457, 0.0318700857, 0.1424922496, -0.1179923564, -0.0948820114, -0.1461011171, -0.1570738703, -0.0780511871, -0.3369984031, 0.2686452568, 0.1036932096, -0.2924658358, 0.0383191742, -0.0258428175, 0.002359716, -0.1695404053, 0.2391934246, -0.2151151747, 0.0428011157, -0.583039999, 0.0276749562, -0.1792510301, 0.0034086525, 0.1712265164, 0.3849396408, 0.2264012247, 0.3392249942, -0.01346278, 0.0257637221, 0.2369794548, 0.1699475795, -0.2879479229, 0.1346048564, 0.2897393703, 0.176838398, 0.0375645496, -0.1905828565, -0.1705692112, -0.2960843146, -0.3060022295, 0.2048547566, 0.0204059388, -0.2292106003, -0.0411023162, -0.1447502226, 0.1306891739, 0.089327246, 0.0652522817, 0.5086283088, 0.0084817242, 0.5539218783, -0.2621822357, -0.3646311164, 0.0502999574, 0.5522651672, -0.0477820486, -0.2210429907, 0.1484201252, -0.3808462918, -0.2166651636, -0.1491113901, 0.2213983387, 0.1041224673, -0.1133877859, -0.0702699795, 0.052891504, -0.0642352328, 0.1708775759, -0.4494755268, 0.0465705357, 0.1083831266, 0.1382250488, -0.3907190263, -0.428742379, -0.286427319, -0.3578281105, 0.206393078, 0.3053346872, -0.5955712199, 0.1072509885, 0.0413542688, -0.1910179257, -0.2428411394, 0.0665800348, 0.0913415328, 0.2466426045, 0.1041269302, -0.1178681552, -0.1624154001, -0.1032345593, -0.0816651881, -0.0287344214, -0.1598639637, -0.0934286565, 0.1571210027, 0.1877709776, -0.2460126281, 0.0820713043, -0.4838793874, -0.1269894689, -0.4443707168, 0.0597610958, 0.2401218861, 0.269798249, 0.3521520197, 0.2059805095, 0.0279864725, -0.1935162246, 0.2300648838, -0.13042669, -0.1675607264, -0.2544033527, 0.2528737485, -0.2788147628, -0.103036806, 0.0131668197, -0.0807304084, 0.1769053787, 0.0376387388, 0.0823835358, 0.0170303192, 0.0768730268, 0.1447360069, 0.2402615547, 0.0273305625, -0.1348665655, 0.0675528347, 0.3256236613, 0.0825689808, 0.1661928743, -0.2373441309, 0.3468437195, -0.132702589, 0.0176863838, 0.357005924, 0.2100674063, -0.2102587372, 0.1317545176, -0.1489011049, 0.0954337791, -0.3153630495, 0.3432017565, -0.0471958518, 0.1139841527, 0.114441976, 0.4226003587, 0.2717163265, 0.0656477883, 0.3585307896, 0.2171223015, 0.228377521, 0.3618631363, -0.3181797862, 0.0836167186, -0.6983568072, 0.1138348505, 0.0265253372, -0.0405229889, 0.3049775958, 0.0828141943, 0.0733668059, -0.0011717324, -0.2486258298, -0.0329707004, -0.123506479, -0.1306839287, -0.2032733113, 0.0106209349, 0.0806915984, 0.0313843042, -0.2732297182, -0.1574333161, -0.2429828495, 0.2137710452, 0.2132886648, 0.0428232551, 0.2503812611, 0.0252002105, 0.1501559168, -0.0311449803, -0.1700297743, -0.0418194048, -0.5771834254, -0.1135218143, 0.2809132934, -0.0252455045, 0.0186535902, 0.1169373691, 0.1724525839, 0.1115638837, 0.3579916358, 0.0717486218, -0.2909568548, 0.3410486877, -0.0630938262, -0.2622013688, 0.0715564936, 0.0119651901, -0.0319209136, -0.10767214, -0.123338826, 0.0585285611, 0.0732390359, -0.0332730636, -0.1695599258, -0.4606761038, 0.0883859843, -0.0230551399, 0.1516733766, 0.0533862449, 0.5730990767, 0.0757674426, 0.2085249126, -0.4813008904, 0.0242605489, 0.3927845061, 0.3333717883, 0.3398486376, -0.034554746, 0.0203795079, 0.0488824174, -0.4188900292, 0.1595375538, 0.257732451, 0.4444580674, 0.0489871874, -0.1877272725, 0.0786526203, -0.0804447979, 0.5692909956, -0.2544922829, 0.3134139776, 0.3377060592, -0.1995336115, -0.3216021061, 0.1196495518, 0.0005237558, 0.0797113776, -0.3342709243, 0.2815948129, 0.1148247644, 0.0373957641, -0.2328617424, -0.2309463471, 0.2043289095, 0.5594167113, 0.4742111266, 0.1728248298, -0.0184819605, 0.0043152641, 0.4483697712, -0.3441616595, 0.1336246729, -0.1462297738, -0.108524695, -0.2192167193, -0.0158673357, -0.5714674592, -0.1290589422, -0.382949084, 0.0065428237, -0.1274743825, 0.2369352728, 0.0231302492, 0.0051636468, -0.1058142856, -0.0039863884, 0.2990207076, 0.2356518507, -0.1778025478, 0.3501923084, -0.3655160367, -0.0733128637, 0.2907477617, -0.2873263061, -0.2061223686, -0.021318391, 0.3530810773, 0.1035554558, -0.1624485254, 0.003414199, 0.1304531395, 0.3935121298, -0.4170918763, -0.0632620826, 0.0756742656, -0.4133787155, 0.1053450331, -0.1192173213, 0.4856012762, -0.000268689, -0.1820437759, 0.0550933518, -0.2337193042 ]
https://github.com/huggingface/datasets/issues/2065
Only user permission of saved cache files, not group
I think it's fairly important; for context, our team uses a shared file-system where many folks run experiments based on datasets that are cached by other users. For example, I might start a training run, downloading a dataset. Then, a couple of days later, a collaborator using the same repository might want to use the same dataset on the same shared filesystem, but won't be able to under the default permissions. Being able to specify directly in the top-level `load_dataset()` call seems important, but an equally valid option would be to just inherit from the running user's `umask` (this should probably be the default anyway). So basically, argument that takes a custom set of permissions, and by default, use the running user's umask!
Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
123
Only user permission of saved cache files, not group Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? I think it's fairly important; for context, our team uses a shared file-system where many folks run experiments based on datasets that are cached by other users. For example, I might start a training run, downloading a dataset. Then, a couple of days later, a collaborator using the same repository might want to use the same dataset on the same shared filesystem, but won't be able to under the default permissions. Being able to specify directly in the top-level `load_dataset()` call seems important, but an equally valid option would be to just inherit from the running user's `umask` (this should probably be the default anyway). So basically, argument that takes a custom set of permissions, and by default, use the running user's umask!
[ -0.1335192621, 0.2638702393, -0.0887797996, -0.0136510385, -0.0483199582, 0.1047769263, 0.3552220464, 0.1191609427, -0.1658601463, 0.0378847234, -0.1065237299, -0.024867354, -0.019191971, -0.3137135506, -0.1179800183, 0.1778142303, 0.1263327897, 0.0858632103, 0.0602511838, -0.1085703745, -0.1009779647, -0.138911128, 0.0054338137, -0.1248303279, -0.2158824503, -0.1946879923, 0.2352733761, 0.2853991091, 0.0203850865, -0.0933632851, 0.3288925588, 0.5935891271, 0.1081403568, 0.1202230826, -0.0001126702, -0.172790736, -0.0196035616, -0.1369559765, -0.0687139258, 0.1222952828, -0.0050353999, -0.1052322462, -0.0802064091, -0.1873363703, -0.0884159133, 0.1841936707, 0.1439652294, -0.7255416512, 0.4894116819, 0.095662728, 0.1734697074, -0.1860498041, -0.3902596235, 0.0528156832, 0.1976870447, 0.0250730645, -0.1162099838, 0.1660547107, 0.3335853517, -0.1733826995, -0.0796371624, -0.0047568255, -0.3949324191, 0.0934963152, 0.1791541725, -0.168472603, -0.2764595449, -0.462014854, 0.0916079804, 0.1591082811, 0.6701865196, -0.1889322251, -0.4884361327, -0.2769805491, 0.094589144, 0.2630771399, 0.332243979, 0.2956198454, -0.0702468008, 0.2943009734, -0.4962937832, 0.0249757506, -0.114307113, 0.0711586848, 0.2440434396, -0.0776514187, -0.0221336652, 0.0635321811, 0.0589096136, -0.0742983595, 0.1298760772, 0.0513517261, -0.2814576328, 0.3380037844, -0.1441877931, 0.0683856905, -0.1546313018, 0.320395112, 0.256103009, 0.338680625, 0.2594953477, 0.2057446092, 0.0260848273, 0.2732972503, 0.0364696197, 0.1471393704, 0.3354699314, 0.298151046, 0.5131573081, -0.3563098907, -0.0789602026, 0.080364801, 0.0015171494, -0.3296959698, 0.0532521084, 0.2754205167, -0.0348209441, -0.1684565395, 0.1972962916, 0.043387942, -0.1375853568, -0.2175003737, 0.0006881384, 0.2218639702, 0.1435801834, -0.0419346727, 0.0506973974, 0.1568998545, -0.0298383795, -0.3474840522, -0.0023437676, -0.3836154938, -0.343767494, 0.4538429677, 0.5025843382, -0.1503936946, 0.0259820353, 0.228619203, 0.1914967895, -0.1762150377, 0.3555214703, -0.0703041852, 0.3695273995, 0.2953025699, 0.3104315996, 0.3790476322, 0.1347995996, -0.0384787284, -0.1857955754, 0.2925343513, -0.3189616501, -0.1988264322, 0.3306162357, 0.0252363533, -0.1294055134, 0.3491234183, -0.4353009164, 0.053928338, 0.4892047048, -0.1339069158, 0.3949003816, 0.2284992933, -0.1604253948, -0.4301355481, -0.0970620662, 0.3187617064, -0.0068245432, -0.0861124545, -0.0970914736, -0.0044260984, -0.1046241894, 0.3345025182, -0.0875779092, 0.1819878966, -0.073946014, 0.1962855309, 0.4308475852, -0.1192555502, -0.5625242591, 0.0856463909, 0.2081536651, 0.0200198758, 0.1798257381, 0.0332899317, 0.0928122625, -0.1795363128, -0.0130738877, 0.3748731911, 0.174764052, 0.2336511463, 0.1346786916, -0.0211194828, -0.0107627455, -0.0737504587, 0.0162234604, 0.2922055423, 0.3899531066, -0.2811438441, 0.2332197279, -0.3469516039, 0.2264993042, 0.3875043988, 0.0886686891, -0.0321270414, -0.0775923729, -0.0125406515, -0.46494928, 0.3139137626, -0.0195179079, -0.3743111491, 0.0781527311, -0.4427523911, 0.1527732462, -0.3058956861, -0.0785417333, -0.0590090454, 0.068439953, -0.0169346165, -0.0626727119, -0.2871267796, 0.138651967, 0.3976771832, 0.1569045037, -0.0005137387, -0.1833366007, 0.1158877835, -0.0207365602, -0.0901094005, -0.2096594125, -0.0049835127, 0.2107444704, 0.0538750142, -0.2475263178, 0.3181377947, 0.1360020638, 0.0878941193, -0.2036232054, 0.3133208752, -0.05959161, 0.1439782083, 0.0800896436, -0.2660573125, -0.0818468183, -0.1320269853, -0.282106936, 0.4214649498, -0.1982384324, -0.0984292775, -0.227411896, 0.1985201538, 0.1358626634, -0.0531102903, -0.1689100266, -0.1018532738, 0.059244547, 0.2333417982, 0.4352440834, 0.2416634262, 0.0863662288, -0.0734825954, 0.2969388068, 0.1667918861, 0.1391643733, -0.0248613805, -0.1173864752, 0.0713248327, 0.2680754662, 0.3193113506, 0.2627219856, 0.0815077424, 0.3029860556, -0.1794044673, 0.3617697656, -0.1280273944, -0.0533133522, -0.0638289005, -0.0096190171, -0.1516233236, -0.2004452199, 0.0383138694, -0.0102993511, 0.2832244635, 0.0139394123, 0.0310584828, -0.3533721864, -0.0851110592, -0.156966269, -0.1439564377, 0.3133099973, -0.0409687124, -0.5186009407, -0.0337251574, -0.21191971, 0.2901797891, -0.0679180622, 0.2043986171, -0.2976177037, 0.2722854316, -0.1464713216, -0.2100933641, -0.1833209693, 0.1580689698, 0.0497790389, 0.019046165, 0.3156298399, -0.5992071629, 0.1461791843, -0.0014797698, 0.25872913, -0.1778863966, 0.0717147514, -0.1856780797, 0.0394686572, 0.0848228782, -0.44045344, 0.0827051699, -0.1666044742, -0.0552185364, -0.1495180279, -0.2587298751, -0.1490294635, 0.0165523756, 0.049150791, 0.0126488386, -0.2662487328, -0.0743446201, -0.1646038443, -0.1609422714, 0.5063877702, 0.1258135438, 0.2180756927, 0.0177706052, -0.2047576308, -0.4433535337, -0.2076893002, 0.3096782267, -0.3285374343, -0.5994927287, 0.3129225671, -0.4392918348, -0.2962847054, -0.002490991, 0.1177174151, 0.0771656483, 0.5081129074, 0.0141371675, -0.0999132022, -0.1493713707, 0.2239400297, -0.2263967097, 0.1315014362, 0.0092311325, 0.0806774721, 0.1833284497, -0.0216765162, -0.1074552163, 0.0599434264, -0.0806833804, -0.3560805023, 0.1849568188, 0.0448393784, 0.2210550904, 0.6883470416, 0.4353191853, 0.3087536991, 0.1947025657, 0.3311054707, 0.6988670826, 0.0714707449, -0.0967982486, 0.1601400077, -0.0599366277, -0.1391471326, 0.1530294567, 0.0268659107, -0.159903422, 0.0362286456, 0.0209257994, -0.2974898219, -0.5224307179, -0.1170667633, -0.363119781, 0.0746198446, 0.0841091573, 0.0950961784, -0.308065027, -0.229477644, 0.0215056986, 0.3599598408, 0.1409599781, 0.3538496196, -0.4579846859, 0.0931676105, -0.2501488328, 0.3669548035, -0.0359292142, 0.4248615503, -0.1644569337, 0.1730358899, 0.1208909079, 0.369368732, 0.2832068205, -0.366407603, 0.2412290573, -0.0656466633, 0.1311780512, 0.3079438806, -0.2037864476, 0.426363796, 0.3683972359, 0.0024619801, 0.0910816714, 0.0815369338, -0.129903689, -0.4899196625, -0.1961280704, -0.0934184715, -0.1836798936, 0.1793941259, 0.1602242887, -0.1438174099, -0.1086398959, 0.2946445346, -0.3695815504, -0.2043013275, 0.0676579028, -0.2385042757, 0.2018128484, 0.1579185873, -0.0005508769, 0.2536374032, 0.0071784463, -0.0459018312, 0.5038200617, -0.032504186, 0.2236607671, 0.3921172023, -0.326241076, 0.3009205461, -0.2534968555, -0.2326678485, 0.3481919169, 0.0109602232, -0.3378421366, -0.1636282355, 0.1595124006, -0.2159741074, -0.3587737978, -0.0627601519, -0.1337771714, 0.0246380717, -0.2204283923, -0.7126750946, 0.1923997551, 0.6057901382, -0.3955473602, 0.280661881, -0.2725961804, -0.3773387372, 0.1679941863, 0.1162305474, 0.7774205804, -0.2349475026, 0.4384992719, -0.4347283542, 0.1221262217, 0.0675323978, -0.5041332245, 0.0852134302, -0.4016420543, -0.3306936622, -0.1211034432, -0.1156785861, 0.0600080602, 0.4919949174, 0.0954435691, 0.1253553927, -0.026380172, -0.0819224492, -0.1130217239, -0.2094174027, -0.1573783457, -0.3598350585, 0.2407255173, 0.117823191, -0.2239520848, 0.0005101117, 0.0178837106, 0.0252516642, -0.1955072284, 0.185247615, -0.2485400885, 0.023054963, -0.6235014796, 0.0564118437, -0.1469196975, 0.0111744907, 0.1415769607, 0.3558230698, 0.2799708247, 0.3346354663, 0.0078627774, 0.0068320148, 0.2641917765, 0.2242458016, -0.2496599108, 0.043700356, 0.359723568, 0.2290327996, 0.1369510889, -0.1850255579, -0.1416847259, -0.3284043968, -0.3017080724, 0.1812118143, 0.0832702368, -0.250002712, -0.0394958332, -0.1044538692, 0.1008085236, 0.1058463603, 0.0466522239, 0.4602092505, 0.0222134236, 0.5224806666, -0.3837366104, -0.3255945444, 0.0544605441, 0.5755966306, -0.0124594551, -0.267565906, 0.1389062405, -0.3579816222, -0.2112158388, -0.1237871572, 0.2073871791, 0.158410877, -0.1332011521, -0.1082577631, 0.0072026988, -0.1046756059, 0.2162418067, -0.4664977193, 0.101189822, 0.1262035668, 0.2242448926, -0.2977726161, -0.3513052762, -0.2399712503, -0.2813027501, 0.2754711211, 0.3540194929, -0.5409365892, 0.0350808538, 0.0511460938, -0.2095494717, -0.1660880297, 0.090701744, 0.103889823, 0.2778418958, 0.1022331268, -0.0826606601, -0.2200217098, -0.1028362811, -0.0692290664, -0.0679978058, -0.1563989222, -0.1039414257, 0.1390435249, 0.19004637, -0.3333749175, 0.14765127, -0.4402852654, -0.0977087468, -0.5249467492, 0.0726313367, 0.3600778282, 0.2148394287, 0.3033681512, 0.1483829319, 0.1028190032, -0.2563403547, 0.2047590911, -0.1927187592, -0.1573558152, -0.2231702507, 0.2588317692, -0.2905416787, -0.0344234705, 0.0884251744, -0.0316477567, 0.2469403595, 0.0783758461, 0.121960938, 0.0382647179, 0.0328226797, 0.1121718436, 0.2635775208, -0.037372265, -0.1741436124, 0.029092228, 0.3594095409, 0.0863359645, 0.1663935483, -0.2212919742, 0.3022617102, -0.1214049384, 0.0444685742, 0.4241455197, 0.2005656809, -0.2796058655, 0.041066803, -0.1848448366, 0.139980495, -0.2930704057, 0.414185822, -0.0449209251, 0.1124624908, 0.0260014329, 0.2568045855, 0.2728774846, 0.1806208491, 0.3987118602, 0.1678879559, 0.226914987, 0.324650526, -0.388222307, 0.1090434492, -0.7499380112, 0.1160008162, 0.0643167794, 0.0552677363, 0.2924709916, 0.0047916421, 0.0324182399, 0.0339512639, -0.2421954423, 0.0731696412, -0.1951651275, -0.1071303934, -0.1231284514, 0.0984252244, 0.0617456399, -0.0580444038, -0.2758311927, -0.2101799399, -0.2737855315, 0.2228964269, 0.2543887496, 0.1076314896, 0.1795514971, -0.0354107507, 0.1680824459, -0.0305832773, -0.2526370585, -0.1355952173, -0.4439837635, -0.1797694117, 0.2402368039, 0.0428737514, 0.1080206558, 0.0699902773, 0.2003013492, 0.1465201378, 0.3104408085, 0.1460891664, -0.319190681, 0.2480014414, -0.0639527217, -0.2943788171, 0.0317080542, 0.0325666144, -0.038811896, -0.0634448379, -0.179816857, -0.0688498095, -0.0215033516, -0.0553790592, -0.0878479704, -0.3917619586, 0.1457398832, 0.0017109868, 0.2160774469, 0.0725502223, 0.5099499226, 0.1127276421, 0.2034331858, -0.4516064525, 0.0393085927, 0.4775199294, 0.2224103808, 0.3928313553, -0.1754791886, 0.0194800179, 0.0481333956, -0.4098709822, 0.1693511754, 0.1614998281, 0.3672333062, -0.0502836071, -0.2409628779, 0.2137973011, -0.0342044272, 0.4339050353, -0.2005827874, 0.2635149956, 0.3118849993, -0.1893598139, -0.3202573955, 0.1547320783, -0.1253811717, 0.1053417549, -0.3782764077, 0.1674528122, 0.0702301934, 0.062499743, -0.140025422, -0.2013216168, 0.2447036654, 0.5015898347, 0.4458537996, 0.2797788382, -0.0513320751, 0.0455646664, 0.3394956589, -0.336224407, 0.1756868362, -0.1920133829, -0.083361648, -0.2430045903, 0.0093132406, -0.6937603951, -0.1220570654, -0.389457345, -0.0246610567, -0.1187718064, 0.1842208356, -0.0180334412, 0.075131543, -0.1444792747, 0.0782491788, 0.3316345811, 0.3493752778, -0.1586182266, 0.4514400661, -0.4411894381, -0.0188558195, 0.2554279566, -0.3255091608, -0.1499677449, -0.0959340855, 0.3641743958, 0.113262184, -0.1313415468, 0.0271325577, 0.1304659992, 0.3607618213, -0.3851846457, -0.1099029183, -0.0116720935, -0.3629740477, -0.0249139685, -0.1187263429, 0.3934584856, 0.0186431129, -0.2428621352, 0.1357966661, -0.2689585686 ]
https://github.com/huggingface/datasets/issues/2065
Only user permission of saved cache files, not group
Maybe let's start by defaulting to the user's umask ! Do you want to give it a try @bhavitvyamalik ?
Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
20
Only user permission of saved cache files, not group Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? Maybe let's start by defaulting to the user's umask ! Do you want to give it a try @bhavitvyamalik ?
[ -0.1802951694, 0.1989278644, -0.1055654213, -0.0858239308, 0.0109792966, 0.0972138494, 0.3096799254, 0.0719593614, -0.1649408191, 0.0873356611, -0.0806743279, 0.0011492542, 0.065245986, -0.2650190294, -0.0587539822, 0.1390801072, 0.1544880718, -0.0080778683, -0.0103488108, -0.0530851446, -0.124711208, -0.0811095089, -0.0939105898, -0.0244818442, -0.3202099204, -0.2104619294, 0.2709255219, 0.2456602007, -0.1097433716, -0.1701465696, 0.2531244159, 0.5244038701, 0.0950803831, 0.1362227947, -0.000110292, -0.2203178108, 0.0572099127, -0.0983936936, 0.0717844963, 0.1836276501, -0.0081603415, -0.0578649454, -0.1526501328, -0.1333853155, -0.1902172863, 0.2176801711, 0.1347748786, -0.6735300422, 0.3757869899, 0.1801064312, 0.228476584, -0.1668886095, -0.2878265381, 0.0412439033, 0.2450851649, 0.0536141582, -0.1640155017, 0.0123870866, 0.3500930965, -0.2160439789, -0.0395844467, 0.0338095389, -0.2767976224, 0.0918720812, 0.1112408042, -0.0900150388, -0.2701266408, -0.5084245205, 0.1664371789, 0.0999982655, 0.7544162869, -0.1295632869, -0.4987755418, -0.0465831682, 0.107205905, 0.3296329677, 0.3315170407, 0.3367733657, -0.0377409793, 0.305703789, -0.5110288262, 0.0716741234, -0.154980585, 0.0514568761, 0.2104095221, 0.0108154388, -0.0395895131, 0.0690243915, 0.006346737, -0.1661576182, 0.1708119214, 0.1088740975, -0.3357991576, 0.3499302864, -0.136645332, 0.023439927, -0.168588981, 0.3993991911, 0.2073738873, 0.3033182919, 0.2516773939, 0.2496396899, 0.1149904728, 0.2281816602, -0.0468490794, 0.1980660707, 0.4191329479, 0.2782429159, 0.6045434475, -0.2715251744, -0.1065614596, 0.0141165107, 0.0908899978, -0.3845102787, 0.0430959389, 0.3155741394, 0.0347558372, -0.231279552, 0.2005330175, 0.0753687322, -0.1098825708, -0.1989783347, 0.0171885081, 0.3396971524, 0.1132362708, -0.0913884342, 0.0945198908, 0.1875851899, -0.025398165, -0.3473280966, -0.0281970352, -0.3111821711, -0.3306747973, 0.4159274697, 0.4743273556, -0.1079855338, 0.0150207123, 0.2490670979, 0.1299448907, -0.1909890175, 0.3414692283, -0.0159485098, 0.4194333553, 0.3074032068, 0.2932575941, 0.2807787061, 0.0849472657, -0.0250006374, -0.1067661792, 0.3163594902, -0.2679614127, -0.1825822294, 0.3279304504, 0.0949657336, 0.0148495426, 0.2611829638, -0.3177100718, 0.0577971675, 0.4880382121, -0.0669544637, 0.4080173969, 0.3107380867, -0.1341861635, -0.4094079733, -0.0629707202, 0.2717764974, -0.0865586624, -0.0086275646, -0.109344326, -0.0392959379, -0.0511428192, 0.3505496681, -0.0363037549, 0.1679963171, -0.137911886, 0.2179731131, 0.4348883629, -0.0785188004, -0.5814695954, 0.0801318884, 0.1961142272, -0.1239172816, 0.1525454074, 0.018069284, -0.0493481159, -0.1270514727, -0.0112659615, 0.3844029903, 0.2174695283, 0.2480630577, 0.052964855, 0.0200448949, -0.0610317029, -0.0057230401, 0.0757830441, 0.3318833709, 0.3329184651, -0.3726903498, 0.1883385479, -0.3001169264, 0.2619222403, 0.4566676617, 0.1620625854, -0.0956024528, -0.0418219492, -0.0447197221, -0.3741741478, 0.2506233752, -0.1500738561, -0.335197866, 0.0283067357, -0.5107875466, 0.0638447553, -0.2787102461, -0.1423335224, -0.090603821, 0.1143662632, -0.013112992, -0.0166821126, -0.2777715325, 0.2108009011, 0.3133115768, 0.2674197257, -0.0196906645, -0.1041234359, 0.1147963479, -0.1456024647, -0.1046619192, -0.1880639195, -0.057056997, 0.2682103217, 0.0339886397, -0.3065499663, 0.3243800998, 0.1456221789, 0.0264426563, -0.1777463108, 0.1663872004, -0.0653920025, 0.1011269093, 0.0384999178, -0.1685674042, -0.0843005702, -0.1399025917, -0.2933360934, 0.4097216725, -0.0711340234, -0.1476327479, -0.2306481302, 0.2377381772, 0.1563988924, -0.0517026335, -0.0797411799, -0.1849277467, 0.0297496933, 0.1552095562, 0.3590901792, 0.1520938873, 0.0944394618, 0.0355228409, 0.3280803859, 0.1983680427, 0.1446082592, -0.0338482484, -0.0787687078, 0.1132239178, 0.2217770964, 0.3202687502, 0.2825591266, 0.0687993914, 0.2878521979, -0.1768562496, 0.3473734558, -0.1926755309, -0.003003713, -0.071839273, -0.0644499362, -0.1540558189, -0.1414107382, -0.058420971, -0.0871270224, 0.3273696005, 0.0399386175, 0.1147347018, -0.34701702, -0.1586539447, -0.1861211956, -0.239665091, 0.3650267422, -0.0057392586, -0.4932680726, -0.0867700875, -0.0944302455, 0.1654312909, -0.112911649, 0.2546660304, -0.1431787908, 0.1912021637, -0.0893220305, -0.0425658561, -0.2824664414, 0.1512665749, 0.0966495126, 0.0732804611, 0.2500420213, -0.5685629845, 0.1663990617, 0.0087671746, 0.3142614067, -0.3341979086, -0.015175445, -0.1984585077, 0.071762234, 0.0794696063, -0.4089490473, 0.0436942689, -0.1686533391, -0.0708966628, -0.0594971776, -0.3048061728, -0.2399098575, 0.0328297168, 0.0480143912, -0.1145296395, -0.2582410872, -0.07899829, -0.1354626268, -0.1996631175, 0.4575277269, 0.1265866756, 0.1798205525, -0.1231064051, -0.2027316093, -0.4167486429, -0.1443789899, 0.2437559366, -0.357589066, -0.6189976931, 0.3860661685, -0.5305786133, -0.4261040092, 0.0611994825, 0.20090653, 0.1119749248, 0.4502741694, 0.0272936579, -0.0719335675, -0.2201866955, 0.169935137, -0.1490107179, 0.1046858057, 0.0219521876, 0.0574290231, 0.0926089808, 0.0207040347, -0.1879631728, 0.0426695533, -0.0683083683, -0.2640702724, 0.104933992, 0.1235695854, 0.2320936322, 0.6044672132, 0.4137207568, 0.3512723148, 0.2618796527, 0.3231719136, 0.5492524505, -0.0017728716, -0.1161273941, 0.1286386102, -0.0301051494, -0.0633837283, 0.1106949672, 0.0715708062, -0.2163661718, 0.0260059536, -0.0334104188, -0.219290629, -0.5093737245, -0.188793093, -0.3285441697, 0.0789111257, 0.0744799376, 0.12746723, -0.2376730889, -0.1932526976, 0.0826273859, 0.3176461458, 0.1346712857, 0.3178750277, -0.5666815639, 0.1274270415, -0.335629046, 0.4427450597, -0.0463519543, 0.4909645319, -0.2584387064, 0.1571986675, 0.2063754946, 0.3330771029, 0.3566012383, -0.5286800861, 0.2724569142, -0.05111349, 0.1126456335, 0.2861065567, -0.2046380043, 0.4098227918, 0.4641551971, 0.1529788673, 0.152581498, 0.1273509115, -0.1262141764, -0.4393819571, -0.3390441835, -0.0751291215, -0.2391103655, 0.148661688, 0.1858578473, -0.1596782804, -0.0376080871, 0.3153552115, -0.3611545861, -0.123372063, -0.025022665, -0.2818654478, 0.2162922025, 0.0639569536, -0.0931850448, 0.2871544361, -0.0401853733, -0.0098044444, 0.3608041406, 0.0214156862, 0.2246809751, 0.388646692, -0.2325313687, 0.3059425354, -0.1744604856, -0.3109085858, 0.3567633331, 0.0151992775, -0.3405252993, -0.1527346373, 0.1999454945, -0.1115408167, -0.2377288789, -0.1410804689, -0.1133166701, 0.0559860803, -0.2763208151, -0.5705084205, 0.1906406283, 0.5891581774, -0.3231375813, 0.2600388527, -0.2334690541, -0.3531175554, 0.2026072741, 0.1034102142, 0.8043715358, -0.1996926069, 0.3696450889, -0.4210777283, 0.0299934223, 0.0329406895, -0.4663685262, 0.0739386305, -0.474835217, -0.3609425426, -0.1139463857, -0.1361665577, 0.0748214424, 0.5008006692, -0.0509089082, 0.0705025718, -0.0446628705, -0.1175935864, -0.1240569055, -0.1433366686, -0.2436746657, -0.2804816961, 0.2834148109, 0.1546863168, -0.2207599282, 0.0418035872, -0.0105150696, -0.0082705794, -0.1930461675, 0.226331979, -0.2536785007, 0.0976540893, -0.6266340613, 0.1544732749, -0.1700224578, -0.0480089113, 0.1589399129, 0.3637179732, 0.3779082894, 0.3805490434, -0.0493061207, 0.1027277857, 0.3861983418, 0.1945713013, -0.2120801061, 0.018071996, 0.2800195217, 0.1179427207, 0.0594936758, -0.2931740582, -0.1358925849, -0.3070358932, -0.3386483192, 0.1563055813, 0.0740318745, -0.2711720169, -0.0631194785, -0.1831537336, 0.0566378795, 0.0295949169, 0.12105266, 0.4231934249, 0.0002312679, 0.5362321734, -0.3272688985, -0.3025857508, 0.0578075536, 0.6893191338, -0.0827622563, -0.1979087293, 0.1402796358, -0.230055809, -0.3200797737, -0.2083720714, 0.1428575665, 0.1729995608, -0.1417029798, -0.0427539647, 0.0286193285, -0.1275181472, 0.2997004092, -0.4429402947, 0.0804361701, 0.1046558619, 0.1733715832, -0.3032201529, -0.4135515988, -0.2953558564, -0.2933427393, 0.2246070802, 0.2591471076, -0.5468913913, 0.1559990793, 0.1168903187, -0.2534262538, -0.1681210697, -0.0050446377, 0.1027848274, 0.1480891854, 0.0008397986, -0.1242497936, -0.1824799925, -0.063766256, -0.0312932208, -0.084848173, -0.2207485586, -0.0021492129, 0.1094230786, 0.2109241337, -0.4119974077, 0.152282387, -0.3853234351, -0.1325987428, -0.428509891, 0.0475915745, 0.3590774536, 0.1528204232, 0.3160891235, 0.1928799003, -0.0775802284, -0.2047159225, 0.1588991582, -0.1796809137, -0.2339085788, -0.2131634802, 0.1666117013, -0.3221326768, -0.0782366842, 0.1922111362, -0.0624020435, 0.126866743, 0.1094139814, 0.1152405739, -0.0662821531, -0.0342522524, 0.0675666109, 0.2566544414, -0.0771357119, -0.1399175674, 0.0049636969, 0.3268656135, 0.1283868253, 0.1042005122, -0.3107628524, 0.3365097046, -0.1364430189, 0.0646825284, 0.2991355658, 0.1867588609, -0.308429718, 0.1326438636, -0.0844069794, 0.1173596159, -0.3579935133, 0.4131159484, -0.1350713372, 0.0431737639, 0.0543686263, 0.3032658994, 0.2324018329, 0.0289037228, 0.3037879169, 0.2282191515, 0.1596160382, 0.3071664572, -0.3268913031, 0.1433587372, -0.6421843767, 0.1418137252, 0.0488684289, -0.0195024665, 0.2297235727, 0.1978286505, 0.0500345826, 0.0529761724, -0.3077776134, 0.0020785825, -0.1514120996, -0.1449218988, -0.085648112, 0.0482414067, 0.1191725582, 0.0386535451, -0.2337672412, -0.2303376347, -0.1831654161, 0.1543703377, 0.2487840056, 0.1142756268, 0.1897890717, 0.0508773252, 0.0736703426, 0.0393190198, -0.2107704878, -0.0765494406, -0.4362021685, -0.1638540924, 0.2595520318, 0.0762883425, 0.0896850526, 0.1124023572, 0.1307534277, 0.2092392594, 0.2867302001, 0.0271611251, -0.3119153678, 0.3066920638, -0.013536497, -0.3385615051, 0.1068588421, 0.075526543, -0.076826632, -0.092658937, -0.1684385985, 0.0289384201, 0.1210223213, -0.0640372336, -0.1738274693, -0.474242717, 0.1610173434, -0.0720792562, 0.1171804592, 0.0234368052, 0.4542988837, 0.0079748565, 0.2162089497, -0.5413376689, 0.0501319021, 0.4407141805, 0.2609605491, 0.4043428302, -0.1206956804, -0.0195326805, -0.070427008, -0.3925544918, 0.1042105183, 0.2170506269, 0.425180465, -0.0046341373, -0.2288285047, 0.1126691625, -0.0804094598, 0.5458397865, -0.1988471895, 0.2065759599, 0.404327184, -0.2793476284, -0.2090274543, 0.2195938081, -0.0404685587, 0.1201097742, -0.3593004942, 0.2756619155, 0.11339432, 0.1277197599, -0.1560975462, -0.1314352751, 0.1653333157, 0.5161162615, 0.4236023128, 0.2357950956, -0.04782857, -0.0321176052, 0.4266487658, -0.3159962296, 0.132767424, -0.173409462, -0.0589501709, -0.1084843948, 0.0971883088, -0.5752665401, -0.2216772288, -0.3395992815, 0.0396900028, -0.1851835251, 0.2644910812, 0.0461131632, 0.1106880903, -0.1216790602, 0.0893348232, 0.2738634646, 0.2784026861, -0.1784675568, 0.3664810061, -0.4719303548, -0.1327183247, 0.2813083231, -0.1820606142, -0.1882600188, -0.0503823645, 0.3723699152, 0.1919572949, -0.1998265386, 0.1045141593, 0.0814952254, 0.2974182069, -0.3783483505, -0.0964144692, 0.1138462871, -0.3751119673, 0.0435809344, -0.2107979059, 0.4439978302, 0.0698248819, -0.2243980765, 0.0163833145, -0.2619252801 ]
https://github.com/huggingface/datasets/issues/2065
Only user permission of saved cache files, not group
Yeah sure! Instead of using default `0o644` should I first extract umask of current user and then use `os.umask` on it? We can do it inside `Dataset` class so that all folders/files created during the call use running user's umask
Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
40
Only user permission of saved cache files, not group Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? Yeah sure! Instead of using default `0o644` should I first extract umask of current user and then use `os.umask` on it? We can do it inside `Dataset` class so that all folders/files created during the call use running user's umask
[ -0.2242728323, 0.2261130214, -0.0817529857, 0.0094755189, 0.0471358672, 0.0149757145, 0.2634159029, 0.0719239488, -0.191496104, 0.0407302305, -0.1341531277, 0.0863358602, 0.0493937656, -0.3142189384, -0.1167452484, 0.1358983964, 0.1529259533, -0.0015894095, -0.0006152364, -0.0963859931, -0.223935023, -0.0862401724, -0.1034871116, -0.0336773731, -0.345371902, -0.2179558575, 0.2119511366, 0.2314934731, -0.0882364884, -0.1905016899, 0.2426151931, 0.6062230468, 0.1800534725, 0.198339358, -0.0001155413, -0.2169191241, 0.0884058625, -0.0958578736, 0.0502291508, 0.22526519, 0.0133231888, -0.0652766377, -0.1900796294, -0.1833730638, -0.2362519056, 0.1567801386, 0.100357376, -0.7182677388, 0.3611295223, 0.2002629191, 0.1723332703, -0.2232725173, -0.2373961657, 0.0888242349, 0.2409687936, 0.1156110689, -0.0989539325, 0.0126231406, 0.3320400417, -0.1668727398, -0.0690127239, 0.0343175121, -0.2808450758, 0.0031793141, 0.1546427757, -0.07794597, -0.2983676493, -0.5014809966, 0.1238656268, 0.1186876148, 0.7641480565, -0.1171290204, -0.5640266538, -0.0496229343, 0.1295875311, 0.2901590168, 0.3258311152, 0.305442065, -0.003305601, 0.3387885094, -0.556910336, 0.0916789919, -0.229459241, 0.1012442932, 0.1966999173, 0.0366980173, -0.0670408309, 0.127573207, 0.0062289778, -0.186150223, 0.2320861518, 0.0241999291, -0.3480371237, 0.3791956604, -0.0957936719, -0.0125214281, -0.1537094563, 0.5009949803, 0.2390560508, 0.2913286686, 0.1713189632, 0.2743305564, 0.0506131165, 0.1730331928, -0.0316945687, 0.1815218627, 0.4626690149, 0.279534936, 0.5615983009, -0.2898006439, -0.1274803728, 0.0201110132, 0.0461160466, -0.307286799, 0.0547323637, 0.278627634, 0.0398366153, -0.1740110219, 0.2315385491, 0.0633213893, -0.1945547014, -0.1972173899, 0.0998357683, 0.3442129791, 0.0919311792, -0.0721917078, 0.0562526211, 0.1736783087, -0.0946672708, -0.3568930328, -0.0090118777, -0.3280628622, -0.2786852717, 0.397769928, 0.4268733859, -0.0590404123, 0.048290465, 0.2228619903, 0.1398227513, -0.1615175307, 0.4451646507, -0.1049081087, 0.401758641, 0.3126302063, 0.2725577354, 0.2442822456, 0.0619800836, 0.0393461064, -0.1138395146, 0.3360450566, -0.3299658895, -0.1983571351, 0.3492938578, 0.0604473315, -0.0421800315, 0.2782866061, -0.2858786583, 0.0682790875, 0.4992926121, -0.0701062158, 0.3984585404, 0.1958019137, -0.2189558744, -0.4167913795, -0.0710383356, 0.2780780494, -0.0480384454, -0.0400208794, -0.1446885318, -0.0054471572, 0.0121441977, 0.330481559, -0.0306329951, 0.2323586047, -0.1623287499, 0.195681408, 0.4786147773, -0.1494105905, -0.6601567268, 0.0933339968, 0.19135952, -0.1107340008, 0.1814983189, 0.0880110487, -0.051197499, -0.1090389639, 0.0170317143, 0.2962627709, 0.1734894067, 0.2679623961, 0.0782133415, 0.0145115349, -0.1027064621, 0.0111189252, 0.0351288058, 0.2638350725, 0.3305092454, -0.3714773059, 0.2493858188, -0.3268906772, 0.2354727089, 0.4526795745, 0.2369101346, -0.1237700507, 0.0088803647, 0.0077164005, -0.3304775953, 0.2219386101, -0.1120770499, -0.3366324902, 0.0353858508, -0.533236146, 0.1161447242, -0.2586064041, -0.1835006922, -0.1028000489, 0.0589740351, -0.0131906411, 0.043149028, -0.2665455937, 0.1984104663, 0.2996810377, 0.2209107131, 0.0467695966, -0.1186485961, 0.0867330134, -0.09542083, -0.1309915334, -0.2401003391, -0.0371336043, 0.2725087702, -0.0368211009, -0.2458098829, 0.3138568103, 0.2480552197, -0.0437138602, -0.2244314402, 0.2250000834, -0.0020513975, 0.0791352913, 0.093148455, -0.1511030793, -0.0838270709, -0.1197994053, -0.282721132, 0.5314027071, -0.0913302973, -0.1963917464, -0.2848784924, 0.2199093252, 0.1736142486, -0.0392813645, -0.1375671327, -0.1251329035, 0.0259198789, 0.2324845195, 0.3876343071, 0.1938304752, 0.1323326379, 0.0504519641, 0.3756455779, 0.1494709104, 0.1309053898, -0.0374022052, -0.0467794798, 0.0487799644, 0.2571571767, 0.277641356, 0.3799564838, 0.0739182308, 0.2769947648, -0.138766557, 0.3776811659, -0.104143858, -0.0102292188, -0.0151653914, -0.0896695405, -0.1636368334, -0.2192458957, -0.0727821514, -0.022522917, 0.2986072302, 0.0683605671, 0.1479005516, -0.3589765131, -0.1564721018, -0.1277647018, -0.2656019926, 0.3322516978, 0.0047391062, -0.430103451, -0.0467858203, -0.1731007099, 0.2626757324, -0.0556138642, 0.2959816158, -0.1558346599, 0.2158387601, -0.0157287549, -0.0303073507, -0.1898555607, 0.1892219186, 0.0821965784, 0.0232586954, 0.2347505689, -0.6215870976, 0.109551914, -0.0536570884, 0.2752891779, -0.3888058662, -0.0542001463, -0.1635515094, 0.0965678766, 0.0827458426, -0.3341891468, -0.0747673064, -0.2251955718, -0.004624106, -0.0955508649, -0.3325315416, -0.2238929123, 0.008983328, 0.0110310633, -0.0332575142, -0.2029952109, -0.061042048, -0.1555441767, -0.1267536134, 0.4859424531, 0.1549121886, 0.231193468, -0.2037692368, -0.2212671787, -0.32932055, -0.1553502381, 0.19970873, -0.3468119204, -0.6803940535, 0.3059538901, -0.5067750216, -0.3965727985, 0.0117280902, 0.1094521955, 0.119360812, 0.5079339147, 0.0697838217, -0.211274296, -0.1897014678, 0.286146313, -0.2172396481, 0.1488744318, -0.0102194641, 0.018429976, 0.1693857163, -0.0138923526, -0.1542497724, 0.0458575897, -0.0391503833, -0.2779387236, 0.1855637431, 0.189130038, 0.1423265487, 0.5497565269, 0.4713600874, 0.3665598929, 0.2696023583, 0.2861096263, 0.6051009893, 0.078363806, -0.1019397154, 0.1641360819, 0.0785060525, -0.0938906372, 0.158846423, 0.0909418911, -0.1556552947, 0.0585834086, -0.1055939123, -0.2563832402, -0.4986240566, -0.1460414529, -0.2895290554, 0.0465918109, 0.0067776344, 0.21247226, -0.2476474196, -0.2021621168, 0.0607078485, 0.2961669564, 0.1324818134, 0.2858154178, -0.6697195172, 0.1126685143, -0.3476344347, 0.4643511772, -0.0250687581, 0.4630532563, -0.1830045581, 0.1925449371, 0.200042516, 0.3045369387, 0.4123748541, -0.5408955812, 0.3032760918, -0.0348494798, 0.044706285, 0.2485869974, -0.1507050991, 0.3441007435, 0.5285431743, 0.1163998246, 0.1270212084, 0.1303964704, -0.1236461103, -0.4273570776, -0.2987102568, -0.0837025642, -0.2671334743, 0.192025885, 0.102514945, -0.0579172932, -0.0449828058, 0.2800472379, -0.3102292717, -0.1342488825, -0.006063011, -0.3104099035, 0.165164113, 0.0825789943, -0.1498120427, 0.3525905013, -0.0445756912, -0.0529518314, 0.387889415, -0.0095422324, 0.3630967438, 0.4198491871, -0.2888562679, 0.2272986472, -0.1554991603, -0.3446566463, 0.3685616255, 0.0035261721, -0.2869549096, -0.1578526944, 0.1833108366, -0.086353682, -0.2582292557, -0.1071281135, -0.1099066958, 0.1533145905, -0.2869216502, -0.6173261404, 0.1457747966, 0.6142497659, -0.340903163, 0.251521349, -0.145754993, -0.40505445, 0.2226866633, 0.1497238278, 0.8280978203, -0.1241632923, 0.413251549, -0.3965636194, 0.0532722473, 0.1600635201, -0.4766875803, 0.0904372633, -0.5270588994, -0.3178490996, -0.1073174924, -0.1308599859, 0.1058209762, 0.4674875736, -0.0953695178, 0.1056401357, -0.0690558553, -0.1904558986, -0.1384858191, -0.139282614, -0.2735178173, -0.2676415443, 0.2913938165, 0.1141194701, -0.1776750535, 0.0626795217, -0.0040102908, 0.0608895011, -0.218361944, 0.2051760852, -0.2044145167, 0.027718043, -0.6304150224, 0.1333509386, -0.144023627, -0.0387883969, 0.1345831454, 0.4161989093, 0.3846624792, 0.3360759914, -0.0493360013, 0.0620472357, 0.3749550581, 0.2493367195, -0.1366824955, -0.0668104738, 0.3273587525, 0.1755495816, 0.0858668312, -0.2430312335, -0.140403986, -0.275297612, -0.2996565104, 0.0528529733, 0.0927355811, -0.362100333, -0.0694536641, -0.2669885755, 0.0355923325, 0.0817808881, 0.0584819913, 0.4753654003, -0.0615739822, 0.5999324322, -0.3380892575, -0.3707461357, 0.0232544374, 0.6508816481, -0.0748979524, -0.1919887066, 0.1610783786, -0.2853008211, -0.2563261688, -0.1611595005, 0.2667999864, 0.3067180216, -0.1084320322, -0.1093944684, 0.0621912144, -0.0928496644, 0.2604233325, -0.5158435702, 0.0780070201, 0.1946416348, 0.0990701839, -0.2784625888, -0.4767001569, -0.2796083689, -0.1793207675, 0.174340561, 0.2712529004, -0.5941867828, 0.1345151365, 0.0228959061, -0.2046209574, -0.1761204898, 0.0375184678, 0.0708980784, 0.1485587955, 0.024730498, -0.1150832325, -0.1891162097, -0.0816255808, -0.1084241793, -0.1095861867, -0.1518594921, -0.0716800615, 0.1274791807, 0.1931975931, -0.4675962031, 0.1774009019, -0.4139454663, -0.1233778596, -0.4254439473, 0.0573091358, 0.3909036517, 0.1731760651, 0.3108251989, 0.2425539643, -0.0621311031, -0.2998076081, 0.1931411773, -0.2430418283, -0.224348411, -0.2455175668, 0.2626128197, -0.3039441705, -0.088388972, 0.2513172925, -0.087884739, 0.1320445091, 0.0770527348, 0.0945400745, -0.0262549184, 0.0228616372, 0.1102323979, 0.2923843861, -0.0552261099, -0.1660212725, -0.0323023833, 0.3039817512, 0.0958504304, 0.1196828187, -0.3297824264, 0.278270036, -0.1658329964, 0.0262983181, 0.370287478, 0.0867222175, -0.2481266111, 0.0856609195, -0.1553161442, 0.1704510152, -0.278328836, 0.3902424574, -0.1039144099, 0.0281764884, 0.0727220178, 0.3354697526, 0.201054886, 0.0278962385, 0.2980984747, 0.1519479454, 0.2082490027, 0.3124465942, -0.2757877111, 0.1694068015, -0.6644003391, 0.0975839272, 0.0966766253, -0.0346902087, 0.2268094867, 0.1662107408, 0.0640405267, -0.0367968231, -0.2975320518, 0.0596017167, -0.1610553116, -0.1909190863, -0.11529392, 0.0046011643, 0.0813323259, 0.0455230623, -0.2006156296, -0.2622350454, -0.1746823043, 0.0928319618, 0.2766189575, 0.0742259175, 0.1658160686, -0.0089806104, 0.0760785937, 0.0218041651, -0.250443995, -0.041089166, -0.4445385039, -0.1119053662, 0.2693798244, 0.0846511498, 0.1198277995, 0.126466766, 0.1806228608, 0.1719166636, 0.3239748776, 0.0822095051, -0.2945541143, 0.234781459, 0.01277385, -0.3522438109, 0.0530846752, 0.0332131051, -0.0139332637, -0.101691775, -0.1442118287, -0.0461672433, 0.0976247713, -0.0147444857, -0.1317891628, -0.4960691631, 0.1650495231, -0.0090073384, 0.1675390899, 0.0311257429, 0.4447353482, 0.0160277486, 0.2173565626, -0.4712947011, 0.024617793, 0.394492954, 0.2075599432, 0.3714955151, -0.1532780826, -0.0514092259, -0.0501778051, -0.3450668156, 0.1659596115, 0.2271415591, 0.2972988188, -0.0110219475, -0.2264149338, 0.0516585931, -0.1125052497, 0.4493537843, -0.179906562, 0.261947453, 0.3611069918, -0.3241616488, -0.2158739865, 0.2193955779, -0.0090491157, 0.100637868, -0.4241228402, 0.310061276, 0.0644674152, 0.0631119832, -0.1299869418, -0.1061270759, 0.1513738483, 0.5122236013, 0.3870998323, 0.2622056305, -0.0057735797, 0.0156652424, 0.4608677924, -0.2425299138, 0.198134914, -0.2716000378, -0.0081659583, -0.1149513721, 0.1225864962, -0.5734190345, -0.2123506069, -0.327899158, 0.0249955934, -0.1814753264, 0.2328228354, 0.0309176762, 0.1897114068, -0.128859356, 0.0232262108, 0.2941921949, 0.3019981086, -0.1238585636, 0.3862373233, -0.4685356617, -0.0766074955, 0.3101243377, -0.2580967546, -0.1188232228, -0.1312923729, 0.3541137874, 0.1892218441, -0.2718226612, 0.1366859972, 0.0733439252, 0.38322106, -0.3898986578, -0.1043066755, 0.0537056625, -0.3147774339, 0.0502254702, -0.1929300129, 0.4530382752, 0.0467529818, -0.2346211672, 0.0810262561, -0.2331270725 ]
https://github.com/huggingface/datasets/issues/2065
Only user permission of saved cache files, not group
You can get the umask using `os.umask` and then I guess you can just use `os.chmod` as in your previous PR, but with the right permissions depending on the umask.
Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
30
Only user permission of saved cache files, not group Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? You can get the umask using `os.umask` and then I guess you can just use `os.chmod` as in your previous PR, but with the right permissions depending on the umask.
[ -0.1857261211, 0.1737921089, -0.1075275838, -0.1851043403, -0.0081703532, 0.0839047879, 0.3565378189, 0.0757275075, -0.1108320281, 0.1052553654, -0.2269388586, 0.1543241888, 0.1039313897, -0.2934494317, -0.0649804473, 0.2179357409, 0.0900316983, -0.0351475365, -0.0519522093, -0.0089748092, -0.1390156448, -0.1062898561, -0.0973074436, -0.0220770333, -0.2167212814, -0.1977166086, 0.1695957035, 0.3388964534, -0.0508378558, -0.2708572745, 0.194723025, 0.5540146828, 0.0244191978, 0.1041319817, -0.0001054582, -0.118296586, 0.0259443559, -0.0766806975, 0.0837030932, 0.2544777989, 0.0616564415, -0.0599539578, -0.2419359088, -0.1721669436, -0.2474578917, 0.1950847059, 0.1271021962, -0.5841303468, 0.3706358075, 0.26190871, 0.2632211447, 0.0041862517, -0.2159232795, 0.0827073753, 0.2322053462, 0.0394573472, -0.18446742, 0.0040550116, 0.3705592752, -0.0817732289, -0.0294607915, 0.0447107144, -0.1966825724, 0.079938136, 0.1410069168, -0.0492856838, -0.2201642096, -0.4966883957, 0.1710477769, 0.0686406419, 0.7374110222, -0.0505576916, -0.5258099437, 0.051530946, 0.1633488238, 0.2687791288, 0.3548972011, 0.310195446, -0.0543668196, 0.3213354349, -0.4402195215, 0.1428735256, -0.2138580233, 0.0231557377, 0.2160205096, 0.1043668762, -0.0138584562, 0.1185604483, 0.1312626153, -0.1723818481, 0.1273885071, 0.2220984101, -0.2841740549, 0.4184725583, -0.0803542137, 0.0213503074, -0.1795774698, 0.4277117252, 0.1930831969, 0.1829821467, 0.221058026, 0.263105005, 0.03993541, 0.2481010407, -0.1107325852, 0.0876155794, 0.3066401482, 0.3309393823, 0.6004151702, -0.2753514647, -0.1773977131, 0.0361394286, -0.0040828348, -0.4007754326, -0.0075754216, 0.2617323995, 0.1033146828, -0.2411532998, 0.2197198272, -0.0143739292, -0.0503945686, -0.1352397501, 0.0554773845, 0.4130482674, 0.2159234136, -0.2010886818, 0.13299793, 0.1610400379, 0.0002656429, -0.2362120599, -0.0096213175, -0.2826405168, -0.3536853194, 0.3084275723, 0.4239218831, 0.0281933863, -0.005930813, 0.2135393918, 0.1640729606, -0.2162476182, 0.3558655977, 0.0013643571, 0.4887396097, 0.3780559599, 0.2298048139, 0.1242797747, 0.0713278353, 0.0070001525, -0.1356547624, 0.3754257262, -0.1685842276, -0.1559190303, 0.2985614538, 0.1440181136, 0.0517650098, 0.235374108, -0.1760041565, 0.0034030483, 0.4222274721, 0.0192792732, 0.4730709791, 0.2634383738, -0.1811551452, -0.3831005991, -0.0662592649, 0.1607260704, -0.1245950684, -0.0031765013, -0.2033122927, -0.1225336418, -0.0638835207, 0.3225446641, -0.0349489674, 0.1460776627, -0.1530029625, 0.1799979359, 0.4943960607, -0.1054201946, -0.5366948247, 0.0179221593, 0.1420944184, -0.1575101912, 0.255361408, 0.0699410737, -0.0862173215, -0.120548971, -0.0840218365, 0.3386439085, 0.2401406318, 0.1952783018, 0.0759220645, 0.061852321, -0.115633525, 0.0749075562, 0.0716743022, 0.3632017076, 0.32135728, -0.3289200366, 0.2820545733, -0.3049741983, 0.2371452451, 0.4326984882, 0.2295792103, -0.0457225256, 0.0391497724, -0.0006195414, -0.2805825472, 0.2985618412, -0.2028405964, -0.2408686131, 0.0562757999, -0.5901849866, 0.0555276722, -0.2122091353, -0.1397846788, -0.1616669446, 0.1587005407, 0.0242922548, 0.1034164876, -0.336001277, 0.2234392017, 0.2746569216, 0.2683152556, -0.0121355066, -0.0398346111, 0.0267174933, -0.2164894491, -0.1205910221, -0.1934048682, 0.0145757096, 0.1843651086, -0.0178951249, -0.2853233814, 0.3535104692, 0.1852293313, 0.02036364, -0.2001338005, 0.1085040346, -0.1056199074, 0.1050099134, 0.0359731428, -0.1866852641, -0.1000034809, -0.0848840028, -0.2744739354, 0.3847478628, -0.084466815, -0.1805411428, -0.2337635607, 0.207471773, 0.1745806187, -0.0609587319, -0.0851850584, -0.1573994309, -0.0265761167, 0.1765718758, 0.3182980716, 0.1446728706, 0.1370996982, 0.0576271489, 0.2981218696, 0.1863223463, 0.0654525906, -0.0301000662, -0.0131270746, 0.1375169009, 0.2089308798, 0.2619203031, 0.3403191268, 0.1240615994, 0.3443062305, -0.0757715255, 0.3184890151, -0.0739093274, 0.0338746943, -0.1110210344, -0.1256037802, -0.195106104, -0.1830319166, -0.0904525742, -0.1362378001, 0.2723579109, 0.0790063292, 0.1283606142, -0.3007155061, -0.1703160405, -0.1353112757, -0.2051407099, 0.351392597, 0.0678394064, -0.5054530501, -0.0896582231, -0.0516055785, 0.2065721303, -0.191578716, 0.3344317675, -0.1828150004, 0.1299619675, 0.0263540987, -0.0370129161, -0.2518052757, 0.1204164326, 0.1502986401, 0.1103515476, 0.1937012225, -0.575227201, 0.1569736898, -0.0448522419, 0.2256272286, -0.3547331691, 0.0017740035, -0.1311607808, -0.0715563521, -0.0430169441, -0.3177591562, -0.0399484299, -0.1978437155, -0.0918909386, -0.0097182998, -0.3843923509, -0.3132214546, -0.0307987072, 0.1463949233, -0.0677185282, -0.3414185643, -0.0593515784, -0.1389716417, -0.2776055634, 0.4889319539, 0.1193417013, 0.2346737981, -0.0731223002, -0.3302904963, -0.2986046672, -0.0375006013, 0.1694007516, -0.4259342551, -0.5024005771, 0.3395012021, -0.5373860598, -0.4263423681, 0.148753494, 0.2579757273, 0.1109810993, 0.4555161297, 0.0572565235, -0.1329284012, -0.1570353806, 0.2110275775, -0.2334003299, 0.1151972786, 0.0440224446, 0.039983917, 0.0330164135, -0.0285793338, -0.1677327752, 0.0434170961, -0.0440918356, -0.2562849522, 0.0299937055, 0.1130887121, 0.1858667433, 0.5306420326, 0.286232233, 0.3638168275, 0.2622098625, 0.217113167, 0.640168786, 0.0089031337, -0.0704260096, 0.1620157957, 0.0473678447, -0.0726464763, 0.2092022598, 0.0582453199, -0.2456908077, 0.0900998935, -0.0096496958, -0.1603547037, -0.534858942, -0.1364094764, -0.2738778293, 0.088317439, -0.0140958363, 0.1447202414, -0.2262010723, -0.1098510697, 0.125288561, 0.2826580703, 0.0938110575, 0.2822676897, -0.5877389908, 0.1400513202, -0.4001906812, 0.4587440789, -0.1089239866, 0.4167455137, -0.2380622178, 0.0556816347, 0.2281846404, 0.2692907751, 0.3717997074, -0.5058965683, 0.3724426925, 0.0563729107, 0.1023866162, 0.2538187802, -0.1848617047, 0.3377857506, 0.4753629267, 0.1743141115, 0.2008108944, 0.1267888695, -0.0715222508, -0.3775750399, -0.3198561668, -0.0379983559, -0.2707748115, 0.0847479999, 0.1233547702, -0.2259888947, 0.0749152228, 0.265307039, -0.3210918307, -0.1286650151, 0.0373396017, -0.2165565342, 0.2111469954, -0.0313396156, -0.0530683957, 0.2663189769, 0.0370255187, -0.022936305, 0.2862887681, 0.0277833138, 0.2220785469, 0.4201595783, -0.236946851, 0.3318754733, -0.1702906638, -0.336882621, 0.2943890393, 0.0241817459, -0.2756513059, -0.2143301666, 0.2107576877, -0.1110053584, -0.1910563707, -0.0304511525, -0.1182824895, 0.080601044, -0.2883736491, -0.472678721, 0.0979199484, 0.5448185802, -0.3314676881, 0.2728615701, -0.1408363879, -0.3869788051, 0.2660952508, 0.1094390303, 0.727016151, -0.2749715447, 0.3488993943, -0.4370079637, 0.0407638103, 0.0323103368, -0.4445151091, 0.0848011822, -0.4014924169, -0.4133335352, -0.0595451519, -0.1893135458, 0.0402193815, 0.4990395904, -0.1465303898, -0.0222715195, -0.017848501, -0.0763650239, -0.1630131006, -0.1716431677, -0.3598257899, -0.2808668315, 0.2287328541, 0.217402637, -0.1889200658, 0.0951366574, -0.0304713435, 0.0031738272, -0.1627363414, 0.2038645595, -0.2175654024, 0.0892552137, -0.594380796, 0.1376364082, -0.2181160003, 0.0248078257, 0.0880709141, 0.3157130778, 0.4517297745, 0.436755836, 0.0026658864, 0.1191589236, 0.4417316616, 0.1977398247, -0.190671131, -0.0773942098, 0.2027617693, 0.1221276894, 0.0791972056, -0.283409059, -0.1204706207, -0.40849787, -0.2066503763, 0.1360187978, 0.0426766239, -0.2759867907, -0.0068430789, -0.1643592566, 0.0046578012, 0.0218642484, 0.1564434767, 0.3987327814, -0.2099605203, 0.4780233204, -0.4339787066, -0.3344343305, 0.0862939879, 0.6166930795, -0.0899294615, -0.1760614365, 0.1232263446, -0.2064267546, -0.2042392343, -0.237688303, 0.1317480505, 0.2023618519, -0.1186871976, -0.0029152068, 0.1298507005, -0.2015672922, 0.2526235878, -0.4055042863, 0.0515464395, 0.2109724581, 0.0356709063, -0.2672996521, -0.5579941869, -0.2802606523, -0.2669658959, 0.2188715935, 0.2362943888, -0.4425872564, 0.1286576241, 0.0033921369, -0.307243973, -0.1627130806, -0.0362459049, 0.1224089041, 0.1837943643, -0.0766963661, -0.0325235985, -0.1841506064, -0.0003422781, -0.018425012, -0.0941526815, -0.2566416264, -0.0072457483, 0.082795769, 0.192666173, -0.4056090713, 0.1834539622, -0.4027766585, -0.1051965654, -0.3707084656, 0.1169971451, 0.3733254671, 0.1056439206, 0.2204140425, 0.1463717371, -0.0642917007, -0.0891339406, 0.1361056566, -0.2207278609, -0.2519520819, -0.260211736, 0.218669191, -0.3524954915, -0.0847532973, 0.2697780728, -0.0807429329, 0.1106369048, 0.1064036861, 0.1349807233, 0.0692941099, -0.0848778114, -0.0026870272, 0.3689288795, -0.0710170195, -0.0355719924, -0.0149396881, 0.3070233166, 0.1688725352, 0.0794649273, -0.3034921587, 0.2815039158, -0.2608578801, 0.1138420701, 0.3206260502, 0.1516406983, -0.3100247681, 0.167888239, -0.0553319827, 0.1427602768, -0.2854298353, 0.3725974262, -0.0370526202, -0.0242446549, 0.1064664647, 0.3017577827, 0.245557338, 0.0067350147, 0.1786156595, 0.139219135, 0.2059951276, 0.316149056, -0.377920568, 0.2491225004, -0.5594156981, 0.0484788343, 0.008231977, 0.032546252, 0.3114196956, 0.1086305901, -0.0149197197, -0.0677376762, -0.3752581477, -0.0246972628, -0.0611319989, -0.2230536193, -0.0955307111, 0.0446855277, 0.1792000234, -0.0076641813, -0.1667662114, -0.1541599482, -0.1814342737, 0.0794104859, 0.1991385669, 0.1623673141, 0.2552840412, 0.0390834771, 0.0343711972, -0.0218185429, -0.2530502677, -0.0737135932, -0.4660960734, -0.114778325, 0.3790411055, 0.0014309385, 0.1322903335, 0.0263405964, 0.0815607831, 0.2408287674, 0.2220014036, 0.0782456845, -0.4063869417, 0.3051209152, -0.0724513009, -0.3299735487, 0.1291551143, 0.0806962326, -0.1295102537, -0.184951514, -0.2925867438, -0.0761937872, 0.1665281504, -0.0796489492, -0.1766746342, -0.5326673985, 0.1927377135, -0.0364255048, 0.1345302314, 0.0583582632, 0.3334976137, 0.0147843687, 0.1852365732, -0.4901874661, 0.0773782656, 0.3475421965, 0.2903096676, 0.4328676164, -0.1794340312, 0.0067897076, -0.0588165, -0.3755057752, 0.0790171847, 0.2403367758, 0.2012203336, -0.0435046926, -0.2368942946, 0.1139915437, -0.1731884927, 0.621809423, -0.2811033428, 0.1527003199, 0.3637658358, -0.2187972069, -0.1694779545, 0.2325690091, -0.0128170159, 0.1089786664, -0.4467695951, 0.235107407, 0.1090223268, 0.1445738524, -0.0753418207, -0.1449448764, 0.1799430996, 0.4712296128, 0.461651057, 0.2216765285, -0.0527187176, 0.0086712819, 0.3859561682, -0.3913455904, 0.0796376392, -0.2222420275, -0.078997612, -0.0957823098, 0.078298226, -0.554523468, -0.2305322438, -0.288800925, 0.0386646241, -0.1613693982, 0.2081175894, 0.1303802431, 0.1568284482, -0.1873614341, 0.1222099587, 0.3609291911, 0.2784612477, -0.0892704949, 0.2829226851, -0.4997110069, -0.2178987414, 0.2488847077, -0.1825584322, -0.2323471606, -0.0642233863, 0.3706895411, 0.1894253492, -0.2345671803, 0.101349026, 0.1262747049, 0.2508758008, -0.3542094827, -0.1510212719, 0.0408625677, -0.3003996015, 0.0062543503, -0.2502034903, 0.3976643384, 0.0391334742, -0.2391090244, -0.0354225636, -0.2917318046 ]
https://github.com/huggingface/datasets/issues/2065
Only user permission of saved cache files, not group
FWIW, we have this issue with other caches - e.g. `transformers` model files. So probably will need to backport this into `transformers` as well. thanks @thomwolf for the pointer.
Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
29
Only user permission of saved cache files, not group Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? FWIW, we have this issue with other caches - e.g. `transformers` model files. So probably will need to backport this into `transformers` as well. thanks @thomwolf for the pointer.
[ -0.1207441166, 0.2110619843, -0.0841050595, 0.0468186028, -0.0028636423, 0.1459372342, 0.3854050636, 0.1391603798, -0.201168403, -0.0585674644, -0.1354778409, -0.0176229645, 0.1156199351, -0.2905228734, -0.0399505459, 0.117588222, 0.1337424666, 0.0035108118, -0.03668743, -0.0839241371, -0.0998412818, -0.0752499104, -0.0850522742, -0.0726409033, -0.361503005, -0.1329760104, 0.2650976777, 0.2255144715, 0.0090468153, -0.1246052831, 0.3047430515, 0.4333625138, 0.0784684867, 0.1299977303, -0.0001106508, -0.139945522, 0.0487941802, -0.0642533973, 0.090567179, 0.2714789808, -0.1321595162, -0.0761752576, -0.1686171889, -0.1069585681, -0.1106692851, 0.2972263992, 0.122657001, -0.5791890025, 0.4974910021, 0.1974840015, 0.2274944484, -0.0538509414, -0.3413308859, 0.0540437736, 0.2926838398, 0.0809757262, -0.2243642956, 0.0552523918, 0.2692473829, -0.1958609521, -0.018321313, 0.0551863275, -0.2950373888, 0.1153830439, 0.154887557, -0.1219127253, -0.2390943021, -0.5055353045, 0.1950543672, 0.0620006658, 0.7401834726, -0.050437808, -0.4978569448, -0.1324621141, 0.0188213345, 0.2531054914, 0.4132609069, 0.3396547139, -0.0014012953, 0.2719787955, -0.5397583842, 0.0072861491, -0.1382891536, -0.0447915867, 0.1522358805, -0.0007976661, -0.0132669536, 0.0848157778, -0.0201913733, -0.0922669396, 0.0907264426, 0.0848194361, -0.3772091866, 0.3344874978, -0.1749619544, 0.081871368, -0.1774611622, 0.4131326675, 0.1411214024, 0.2401567698, 0.2163678855, 0.2027890086, 0.0941770226, 0.2004715502, -0.0032463369, 0.1715727448, 0.3708484471, 0.3696023226, 0.5744593143, -0.3903862834, -0.1783677191, 0.0079548778, 0.0443066359, -0.3267363906, 0.1036928743, 0.2564816475, 0.0188134387, -0.2269124687, 0.1517633051, 0.1165381148, -0.0508617647, -0.210003525, 0.0428451896, 0.2555075288, 0.1683595926, -0.1430661976, 0.0302898809, 0.1445007473, 0.0335973762, -0.4030351043, -0.0297993999, -0.3423152566, -0.4116490185, 0.3594988286, 0.477958113, -0.1639432013, -0.0407776199, 0.2220550776, 0.1061827391, -0.2478542775, 0.2698288262, -0.0383966379, 0.4771815538, 0.3560423851, 0.1411651522, 0.3438860774, 0.0771397203, -0.0027543616, -0.0662941113, 0.3606116176, -0.2789531648, -0.0623120926, 0.3091773391, 0.0600038134, -0.0259726439, 0.2341599166, -0.3002973199, 0.065368481, 0.6256068945, -0.1201740056, 0.415008992, 0.3077583909, -0.1959592402, -0.3834024966, -0.149261564, 0.3160618544, -0.1199644059, -0.0305180587, -0.0605191141, -0.0397672616, -0.0460436344, 0.2801166177, -0.0383950584, 0.1791476607, -0.0919910073, 0.1846493036, 0.4149960876, -0.0262842625, -0.5820004344, 0.1069189087, 0.1509167254, -0.162860617, 0.1318413764, -0.0172967892, 0.0163428932, -0.0730525032, -0.105764173, 0.3387132287, 0.197599858, 0.2817474008, 0.0935708731, 0.1124941483, 0.0462467223, -0.0897382423, 0.1349191666, 0.4027232826, 0.2795727551, -0.2379644811, 0.1736055464, -0.2297309339, 0.3001247048, 0.4829813838, 0.0882580355, -0.1560760736, 0.0094196536, -0.0881861001, -0.4463415146, 0.3059569895, -0.176965028, -0.3649231493, 0.0936227217, -0.3864360452, 0.023462886, -0.2765288949, -0.2104596496, -0.0824701265, 0.0991923958, 0.0023035728, -0.0160410404, -0.3887536228, 0.2274431288, 0.3831126988, 0.3045083284, -0.0300992746, -0.0952219889, 0.1234670579, -0.1274686307, -0.0749269277, -0.2616179287, -0.040663328, 0.2922341228, 0.0081634596, -0.3218152523, 0.2308076918, 0.1162161753, 0.0567137934, -0.0873665363, 0.2493586242, -0.0352322683, 0.0807021782, 0.042819377, -0.1840926111, -0.0539489724, -0.1325837523, -0.2853811681, 0.2740260065, -0.0370529927, -0.065147303, -0.237550661, 0.2129854709, 0.142175287, -0.0171991475, -0.0711248741, -0.1782418042, -0.0635960251, 0.1644783765, 0.3153994679, 0.2228890657, 0.1195314676, 0.0457763821, 0.4026435912, 0.2261162549, 0.1156606227, -0.0225617476, -0.1593444496, 0.0662745535, 0.1717030704, 0.3607622087, 0.222692892, 0.0145554254, 0.3567922413, -0.2121686339, 0.2847141027, -0.1805048436, 0.0212033205, -0.0329972133, -0.0282045528, -0.1503202617, -0.0930586457, 0.0097615812, -0.1050755978, 0.3722707033, 0.1679380983, 0.0914387703, -0.3406541646, -0.1041130051, -0.2076179981, -0.1616508961, 0.2695322037, -0.019201396, -0.6123401523, -0.0851015821, -0.1596944779, 0.1629977822, -0.0465836823, 0.1571590006, -0.2691050768, 0.2040265352, -0.0234532803, -0.1180556118, -0.3213479221, 0.1613805294, 0.0332061201, 0.0537653305, 0.2560737729, -0.6495660543, 0.09172979, 0.0269914865, 0.3185984194, -0.2326246649, 0.0595844872, -0.1462280452, -0.0715487823, 0.0393102244, -0.5172536969, 0.1141473725, -0.1451076269, 0.037949957, -0.0977475718, -0.2473944873, -0.2224613279, 0.038575761, 0.0551555566, -0.1070953906, -0.3245081007, -0.0422693193, -0.0262890439, -0.1569158137, 0.4347927868, 0.0526705272, 0.1734732389, 0.1191673502, -0.3077763319, -0.3521288037, -0.2285965383, 0.2458475083, -0.4041652679, -0.5424072742, 0.3612724543, -0.4819198847, -0.4319618046, 0.0786878392, 0.2185782641, 0.0797881708, 0.4152202904, 0.0438001566, 0.0829955786, -0.269612968, 0.1614712179, -0.1929751933, 0.0766384974, 0.0515766963, 0.0490501933, 0.1112639084, -0.0858582556, -0.1944167763, 0.1011620685, 0.0200058129, -0.2241318375, 0.0323726721, -0.0041682138, 0.1705229282, 0.6693536043, 0.3900605738, 0.2593128681, 0.2666670084, 0.3642523587, 0.5709923506, 0.0490255356, -0.132887423, 0.1190947294, -0.046939984, -0.0885548517, 0.0905671865, 0.0463614352, -0.256275773, 0.0302774981, 0.0650875717, -0.2295382768, -0.463031739, -0.2507560551, -0.3004628122, 0.1445185393, 0.1581032723, 0.1250147969, -0.2361827344, -0.1631696522, 0.0586479567, 0.2605683208, 0.2015032321, 0.2332778424, -0.3842127919, -0.0104054492, -0.2581266463, 0.3752671778, -0.0234398246, 0.5265203714, -0.23639974, 0.1108479798, 0.1992042661, 0.3797490299, 0.4119975865, -0.4367415309, 0.3121191561, -0.0290366132, 0.1729655713, 0.3494869471, -0.2548165917, 0.4342042506, 0.4451816976, 0.0964425802, 0.1208940744, 0.1503415555, -0.1660157889, -0.4023329616, -0.2793960571, -0.0991647467, -0.1978136748, 0.1059613153, 0.3193882108, -0.04683844, -0.0331532769, 0.3301813602, -0.3447498381, -0.1954694688, -0.0105117746, -0.1184763834, 0.1609705091, 0.0516061671, -0.0585896485, 0.299474299, 0.0600551367, 0.0566079617, 0.4806613922, 0.03944676, 0.0250309277, 0.3715112209, -0.1879871935, 0.3247098327, -0.1371183991, -0.2970531583, 0.3379129469, 0.0407541692, -0.3488024175, -0.1530904472, 0.1046260744, -0.2581834495, -0.261808306, -0.1563233584, -0.1067789719, 0.0492531024, -0.2082598507, -0.4934579432, 0.2734438181, 0.4977819026, -0.3501679897, 0.253585279, -0.3135163784, -0.3273327947, 0.1499075294, 0.0324315205, 0.75522089, -0.2470965087, 0.3169733882, -0.4600428343, 0.0671674311, 0.0081998175, -0.3994578421, 0.1234068722, -0.425082773, -0.3580510318, -0.1449172944, -0.141112715, 0.0188520607, 0.4696407914, 0.0408214703, 0.0398944505, -0.1510103643, 0.0215855315, -0.0914279297, -0.2567689121, -0.0955878496, -0.3043405712, 0.3124516606, 0.1515038311, -0.2343554795, 0.0990851894, -0.029834047, -0.0536014289, -0.2279219776, 0.2225684673, -0.3397305906, 0.1291860193, -0.519161284, 0.130149141, -0.1092738509, 0.0138147678, 0.2091047615, 0.2999207973, 0.3164101541, 0.3617787361, -0.0635984167, 0.1356318891, 0.3436044753, 0.2180137932, -0.2584343553, 0.1038963273, 0.2954525054, 0.1615244746, 0.0394157395, -0.2853002846, -0.1933388114, -0.2738267183, -0.323579073, 0.2683518231, 0.00291973, -0.1989193559, 0.0242786054, -0.1108782068, 0.0610020421, 0.0155596891, 0.1157345995, 0.4238667786, -0.0209258478, 0.5243255496, -0.3454035819, -0.3492101729, 0.0638429448, 0.6376702785, -0.0707530305, -0.1771100312, 0.1935831457, -0.2559057474, -0.2988440096, -0.1964824349, 0.137331605, 0.0616037361, -0.1859365702, -0.0401698537, 0.0337332934, -0.1001525968, 0.2225743979, -0.4149354696, 0.0018224531, 0.0836658776, 0.0938208252, -0.3515956402, -0.4222252667, -0.3398018181, -0.4331283271, 0.1447085291, 0.2051097304, -0.4737240374, 0.2301025689, 0.0923270285, -0.233098805, -0.2326960117, 0.0179569051, 0.1307042837, 0.2646754384, -0.0388008393, -0.0975531936, -0.2362689972, -0.0860921517, 0.0690359473, -0.0464725271, -0.2174897343, -0.0203859638, 0.1334382147, 0.2556908727, -0.3523868918, 0.0947976336, -0.3680505455, -0.1311712265, -0.4231099486, 0.0421783403, 0.3070080876, 0.1483244747, 0.3742549419, 0.1887090206, -0.0083830655, -0.1244740263, 0.1481427252, -0.1677154154, -0.2091804743, -0.206444189, 0.1940436363, -0.272939086, -0.0500818565, -0.0063159228, -0.0616186373, 0.0653188303, 0.0550927259, 0.1459689587, -0.0709647238, -0.0067332778, 0.1386044919, 0.237283349, -0.0020308667, -0.0502696224, -0.0103900079, 0.2375586778, 0.1221282184, 0.1217860132, -0.2690324783, 0.3627376556, -0.1349639446, 0.0576028749, 0.2876042426, 0.2320628315, -0.2794461548, 0.1833701432, -0.0390096493, 0.1056977436, -0.360968411, 0.4730053544, -0.0594375096, 0.1213217899, 0.1009883806, 0.4183327854, 0.212869525, -0.0196254849, 0.3656488955, 0.3269254863, 0.10126926, 0.2761338055, -0.3488721848, 0.1409062892, -0.6575962901, 0.0969427973, -0.038614627, 0.0168136898, 0.3265792727, 0.0776371509, 0.0090592187, -0.0321245752, -0.2968239486, -0.1123802736, -0.0842022896, -0.1260809004, -0.114132978, 0.1189673245, 0.1017140448, 0.0481322296, -0.2513363063, -0.1284193248, -0.1908626705, 0.2366961688, 0.1894706786, 0.0225433409, 0.231084466, 0.0273271222, 0.0706678107, -0.0191342346, -0.2209809273, -0.0542261899, -0.5139691234, -0.1181324944, 0.2671554685, 0.0219151992, 0.0516739152, 0.1115738899, 0.0948626474, 0.1615171432, 0.2507721186, 0.010993612, -0.3054790199, 0.4592895806, -0.1178686693, -0.3537317812, 0.0937655866, 0.0210208222, -0.0784111992, -0.1089818254, -0.2171051651, 0.1453213096, 0.137529254, -0.0040112841, -0.2561239004, -0.5012048483, 0.0770843476, -0.0805307701, 0.1889161319, 0.0708739534, 0.5467100739, 0.0331712291, 0.2029750645, -0.5516828895, 0.0514182933, 0.4038562775, 0.3221231997, 0.4221482575, -0.1119190305, -0.0375204049, 0.0698340759, -0.363555342, 0.1241148412, 0.2484865934, 0.5065733194, 0.002005185, -0.1873556525, 0.1179125533, -0.2155751437, 0.6327932477, -0.254635781, 0.267239213, 0.3509070575, -0.2299674451, -0.2000049502, 0.1187212467, -0.0796077475, 0.1035529375, -0.3836970031, 0.3240478635, 0.216273427, 0.0956886932, -0.2002373338, -0.225523293, 0.1838060617, 0.4727129042, 0.4594870508, 0.2286716998, 0.0339515992, 0.0351209827, 0.3650694191, -0.4535734355, 0.0547582842, -0.1416037381, -0.0921007171, -0.200478062, 0.086791344, -0.5620108247, -0.1265317798, -0.3722981513, 0.0174253713, -0.1991788745, 0.269778192, 0.017330084, 0.0229688231, -0.2298799455, 0.0992419273, 0.3050501347, 0.2027697712, -0.1115299314, 0.3502512276, -0.4840325713, -0.1511731446, 0.3006494641, -0.260047555, -0.328569591, -0.0133438082, 0.3732891977, 0.1472623348, -0.217284143, 0.0106928907, 0.0626194179, 0.3245000243, -0.374730289, -0.0860441849, -0.0225115307, -0.3646336496, 0.0916031897, -0.1782129854, 0.5489762425, -0.009465687, -0.2097592801, 0.0720800608, -0.2157580853 ]
https://github.com/huggingface/datasets/issues/2065
Only user permission of saved cache files, not group
Hi @stas00, For this should we use the same umask code in the respective model directory inside `TRANSFORMERS_CACHE`?
Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions?
18
Only user permission of saved cache files, not group Hello, It seems when a cached file is saved from calling `dataset.map` for preprocessing, it gets the user permissions and none of the user's group permissions. As we share data files across members of our team, this is causing a bit of an issue as we have to continually reset the permission of the files. Do you know any ways around this or a way to correctly set the permissions? Hi @stas00, For this should we use the same umask code in the respective model directory inside `TRANSFORMERS_CACHE`?
[ -0.2081564963, 0.1117954925, -0.06123624, 0.0407365635, -0.0061200503, 0.1279417574, 0.3894427121, 0.0571592487, -0.2127815485, -0.0419887863, -0.1921855807, -0.1231596395, 0.1095726267, -0.3343215287, -0.0680714771, 0.1472347081, 0.1823889911, -0.0031140426, -0.0365215428, -0.1263749152, -0.1284441203, -0.0820219591, -0.0372604318, -0.0927572548, -0.4490078986, -0.1368954182, 0.2483733296, 0.1558469087, -0.0073177405, -0.0654332787, 0.2889895737, 0.5932967067, 0.2336146384, 0.1448651552, -0.0001169936, -0.1180790886, 0.0391268246, -0.1211670116, 0.0457086973, 0.250094831, 0.0250783991, 0.0906369165, -0.1391557753, -0.0956830233, -0.1904148608, 0.3318996727, 0.1194252372, -0.5785186291, 0.5322911739, 0.1401564479, 0.1309339851, -0.014124535, -0.3408101499, 0.1006267294, 0.2094189525, 0.1773293018, -0.140035823, 0.0186303314, 0.3194203377, -0.2108979672, -0.0711341277, 0.0976835787, -0.2137307078, 0.0867348239, 0.1340916604, -0.0724967122, -0.1330476254, -0.500839591, 0.1076869667, 0.0051325108, 0.7109180093, -0.1423664093, -0.612354517, -0.0560646765, -0.0337140039, 0.384621948, 0.33832708, 0.2856698632, -0.0450288244, 0.3755660355, -0.5367854834, 0.0684915781, -0.228713125, -0.0421612747, 0.1386984438, 0.2050116807, -0.0096682487, 0.0889964551, -0.0827851668, -0.0961589888, 0.2455016673, -0.0053521581, -0.3007270992, 0.3485356271, -0.1820781082, -0.0426304117, -0.2202086449, 0.3356889486, 0.1667661667, 0.3436243832, 0.1889273524, 0.1737205237, 0.1336094886, 0.220042035, 0.0078024347, 0.2346307784, 0.3791339397, 0.5106113553, 0.5242032409, -0.307164818, -0.2008767575, -0.0352664255, 0.057591781, -0.2570672929, 0.0307381954, 0.3571112454, -0.0152629288, -0.1888879389, 0.2196756452, -0.0349315405, -0.0666400418, -0.2599709928, 0.0711566657, 0.3590393066, 0.1452922374, -0.0390979797, 0.0123911463, 0.1415418684, -0.0037328964, -0.3380562067, -0.0130783357, -0.3680550754, -0.3254835606, 0.4648859501, 0.4442017078, 0.0891530663, 0.0396744087, 0.1346452981, 0.2065699399, -0.2064385265, 0.3750047982, 0.0013636748, 0.4003739059, 0.4353654683, 0.2459950149, 0.3363816142, 0.0151282297, -0.0809631348, -0.1440071911, 0.3134811521, -0.2428767085, -0.1931259185, 0.4719360173, 0.036061503, -0.0436914004, 0.2789412737, -0.266882956, 0.0263300277, 0.6654943228, -0.0902683511, 0.4075944424, 0.3725257218, -0.1105861589, -0.4050098062, -0.0672458261, 0.3489082456, -0.0102785518, -0.1288803816, -0.0141265858, -0.006050847, -0.0985239297, 0.4630619884, -0.0963639319, 0.1696587652, -0.0943506882, 0.0977954045, 0.5256636739, -0.1732741743, -0.6490620971, 0.1500494331, 0.203251183, -0.1029817238, 0.2669630051, 0.0139923962, -0.0650034994, -0.1346267462, -0.0769750252, 0.3790945411, 0.13223809, 0.262649864, 0.0344485492, 0.0248265099, 0.0166538209, -0.030000953, 0.1266813725, 0.3690108359, 0.2432255894, -0.1930962205, 0.3039462566, -0.2294329554, 0.2638658285, 0.4840601981, 0.1777202785, -0.1601689011, 0.0862395763, -0.0189623367, -0.4171617031, 0.2549883723, -0.3125734031, -0.3193024397, -0.00765293, -0.5207284689, 0.0762460232, -0.2444818616, -0.206302017, -0.2149774134, 0.0228076968, -0.0447032787, 0.1049690247, -0.411162287, 0.1110281646, 0.3464648128, 0.3115406334, 0.0495178178, -0.1932003945, 0.1817410141, -0.1896057278, -0.0689435601, -0.3376697302, -0.1110590547, 0.2050256878, -0.0192737691, -0.2887728512, 0.2957592607, 0.1430360675, 0.0078316517, -0.1420382559, 0.3261238337, 0.0783732235, 0.0470814183, 0.0594100319, -0.1094661206, -0.129128933, -0.1017892733, -0.3648784757, 0.3784071505, -0.0848444998, -0.0770206898, -0.1734046936, 0.2051726133, 0.1564763188, 0.0075013847, -0.1363318563, -0.1656582057, -0.0612607151, 0.1625008136, 0.4034813941, 0.2103196383, 0.2471067458, -0.025975721, 0.3793475628, 0.1497157514, 0.0658813193, -0.0658507869, -0.1965862066, 0.0703302622, 0.1888887286, 0.3214994371, 0.2710370421, 0.0138437841, 0.2941031456, -0.2110759318, 0.4143128991, -0.1599640846, 0.01002842, 0.0432763211, -0.0896273106, -0.1311383843, -0.1703383327, -0.0357449949, -0.0115987733, 0.2849644423, 0.0954615623, 0.0764542669, -0.3082893193, -0.0691169798, -0.0060019437, -0.1206069663, 0.2113465667, 0.0088368785, -0.5343111753, 0.0134321731, -0.151921913, 0.1806577444, -0.0456639491, 0.269269675, -0.0677062571, 0.1702590585, -0.016709011, 0.0004536222, -0.3200583756, 0.1385488808, 0.1185334995, 0.0039670183, 0.2043605447, -0.6563029289, -0.0275076572, 0.0460507311, 0.3301206529, -0.2155569494, -0.0556219928, -0.160806641, 0.0905812755, 0.0782437623, -0.4964035749, 0.000206962, -0.1086161658, -0.0654357448, -0.0726544559, -0.2998088002, -0.1591830254, 0.0295740273, -0.0222709216, -0.0988714918, -0.2220181227, -0.0480077304, -0.1937407255, -0.1297091991, 0.4764782786, 0.1165348515, 0.1581728309, -0.0076770005, -0.2429282665, -0.4943928123, -0.1973128021, 0.2132524699, -0.2477842122, -0.5221063495, 0.4046732783, -0.5165216327, -0.4042021036, -0.0378913358, 0.1206362993, 0.1027637124, 0.420920074, 0.1223701462, 0.0109212417, -0.2580067217, 0.0667783991, -0.1446608454, 0.0787592083, -0.0300870128, 0.019384101, 0.1990059614, 0.0284435898, -0.0990144983, 0.0424444415, -0.0189032238, -0.1615501642, -0.0023798971, 0.1194666252, 0.1578584611, 0.5748954415, 0.5152829885, 0.3354962468, 0.1676898301, 0.402392745, 0.4540116489, 0.1008545682, -0.0585559681, 0.0409803092, 0.0202494059, -0.216510132, 0.1230836809, 0.0902070329, -0.1655687094, 0.0152076175, -0.0641170964, -0.1857697815, -0.5319419503, -0.1408688128, -0.2721811831, 0.1616265923, 0.1576241851, 0.126605168, -0.2879585326, -0.1087510139, 0.1160156205, 0.3581829071, 0.1002249494, 0.3036809564, -0.5236626863, -0.0116660949, -0.2940410078, 0.3712225854, -0.0526745357, 0.4781835079, -0.1404576153, 0.135927394, 0.1758009195, 0.2980239391, 0.4374081194, -0.5280731916, 0.236617431, -0.0874200836, 0.0176161174, 0.2904191315, -0.2159897685, 0.3345875442, 0.348582387, 0.1534440219, 0.2327322513, 0.1184232384, -0.1943306774, -0.4178481996, -0.3418982029, -0.1998859495, -0.2810039222, 0.0884600282, 0.2675309777, -0.1563455611, -0.1238453314, 0.3386440277, -0.4243191481, -0.1691786349, -0.0309504233, -0.2532269359, 0.1516339183, 0.1243385002, 0.0380249247, 0.3162674308, -0.0869845971, -0.0493335985, 0.40285182, -0.0670195222, 0.1903664619, 0.3316856921, -0.2163172662, 0.2620122135, -0.1415675133, -0.3252260685, 0.3678046763, -0.0137582114, -0.297177434, -0.129316926, 0.2409003526, -0.1591083705, -0.210820049, -0.1638902426, -0.1980970055, 0.1150965393, -0.2445398271, -0.628033638, 0.2098321766, 0.5318974853, -0.3056163788, 0.0931615382, -0.3135224283, -0.3025102615, 0.442411691, 0.062689878, 0.8635255098, -0.2236693501, 0.3869580626, -0.5408218503, 0.0700362846, 0.0928001031, -0.692738533, 0.1662652791, -0.4834658504, -0.3403413296, -0.1500466168, -0.1280882657, 0.0517081283, 0.5709950328, -0.0222602095, 0.1149773002, -0.0365740433, -0.0271955542, -0.1076064333, -0.190433234, -0.1143008918, -0.2419594079, 0.3502939343, 0.0627256185, -0.1259154975, 0.1566951424, -0.0438903868, -0.080025129, -0.2501611412, 0.172967732, -0.2542051375, 0.0647724494, -0.646889925, 0.2180821151, -0.0837718546, -0.0250670109, 0.1623347849, 0.4216915667, 0.4039413631, 0.3650012612, -0.0314706974, 0.1082859263, 0.332197547, 0.1446737051, -0.3237611353, 0.0723176897, 0.2941046953, 0.1543791741, 0.015210106, -0.270021677, -0.1584865451, -0.3013117611, -0.3081585169, 0.0867512301, 0.1068048701, -0.3021416068, 0.07851661, -0.1490348428, -0.0890508667, 0.0587597229, 0.0504110083, 0.3910545707, -0.0951101184, 0.5340355635, -0.3091873527, -0.3310893178, 0.035924904, 0.6514387727, -0.0453700274, -0.1939594597, 0.1575786918, -0.2966133356, -0.2723999023, -0.1678065211, 0.0682688206, 0.2438829094, -0.3963706493, -0.0685690641, -0.0029538271, -0.2336227149, 0.2451343983, -0.3847488165, 0.1689644009, 0.1639362425, 0.0246439017, -0.2654286921, -0.5594638586, -0.283498615, -0.2164626271, 0.2027433217, 0.2369090766, -0.4887751341, 0.1068664193, 0.1887074411, -0.1841540337, -0.3159105182, -0.0630162135, 0.1014622152, 0.0915857553, -0.0882616639, -0.084008716, -0.1378979832, -0.1152759269, 0.0491512418, -0.07116092, -0.1431346834, -0.0230297595, 0.1677422971, 0.2187342197, -0.3538275063, 0.0371718816, -0.2598271072, -0.0885277614, -0.4373984635, 0.1055156142, 0.2622196972, 0.2569029927, 0.3842914402, 0.2679118812, -0.069510147, -0.3964475989, 0.1665249169, -0.1236991733, -0.2651287913, -0.1265078038, 0.2297106385, -0.3186562359, -0.0610188954, 0.0764738619, -0.1375400275, 0.2135013789, 0.0946735516, 0.146730572, -0.0578691065, -0.0336728692, 0.065139316, 0.1982595921, -0.0259973854, -0.0449464247, 0.0133001897, 0.1737016886, 0.0841285884, 0.1291263103, -0.2564394772, 0.2524060905, -0.1515734047, 0.0428197756, 0.4236342013, 0.277277112, -0.2070758194, 0.3170794249, -0.03814964, 0.1826367378, -0.2552194595, 0.3662484884, -0.0064941635, 0.1493499875, 0.1899190396, 0.306131959, 0.2371293604, 0.0702330247, 0.2771938145, 0.2158373743, 0.1419622153, 0.1707585901, -0.3348016143, 0.1745648384, -0.6335684657, 0.0674176663, -0.0787571818, 0.0458233468, 0.2807557285, 0.1773885489, -0.1100371107, 0.1152528673, -0.199117288, -0.0117489696, -0.1957809925, -0.0985084921, -0.2010090649, 0.1680101007, 0.1225192919, -0.0301288385, -0.2715129256, -0.178638652, -0.1218052655, 0.1585367769, 0.2640939355, 0.1430713683, 0.3340465724, 0.0551337712, 0.1570995599, -0.017793702, -0.2439789176, -0.0739674345, -0.3206777275, -0.1343297958, 0.2049993426, 0.0000670698, 0.0579925887, 0.051121369, 0.1186683625, 0.3105686009, 0.3402491808, 0.017891027, -0.2919166386, 0.2963428199, -0.0827790871, -0.304166913, -0.018430192, 0.0021150983, -0.0544857904, -0.1834934056, -0.2412050068, 0.0429906137, 0.0939481109, 0.092578046, -0.1781881452, -0.5503028035, 0.0945280343, -0.0658449158, 0.0702485591, 0.0940992385, 0.4745097756, -0.0591114834, 0.1857351214, -0.4849861562, 0.0060690115, 0.4230897725, 0.3215775788, 0.4120584726, -0.0990035832, -0.0443120524, -0.0291147772, -0.3054762781, 0.1631396264, 0.2837890089, 0.5087828636, -0.0238906853, -0.1826167107, 0.0606073327, -0.1670144498, 0.5149814487, -0.2089087367, 0.1368164718, 0.4491741657, -0.217742309, -0.2192543149, 0.1072028279, 0.0406979173, 0.1862445772, -0.3907718956, 0.2738782465, 0.2794933915, 0.0458572954, -0.2287317961, -0.1771532893, 0.251252085, 0.5285201073, 0.406250596, 0.2499740869, 0.0079819737, -0.0523312427, 0.3134740889, -0.3260476291, 0.1364384592, -0.1692626625, -0.1373757422, -0.1882678717, 0.1372042447, -0.5929566026, -0.2624827623, -0.3854262531, -0.0965446159, -0.1314242631, 0.0482251421, 0.0445372351, 0.0756683648, -0.2000479102, 0.1109344885, 0.4055044651, 0.3100296557, -0.1148728803, 0.3489430249, -0.4045490026, -0.0610264651, 0.3257163465, -0.2306210995, -0.2178133577, -0.0727310926, 0.338294059, 0.1306983531, -0.2167467773, -0.0988926291, 0.1064760908, 0.3080399334, -0.3644312024, -0.1264480799, 0.0499949194, -0.1413324177, 0.0234389808, -0.2185952216, 0.5168437362, 0.0258425921, -0.2161866426, 0.0122438846, -0.2569962144 ]
https://github.com/huggingface/datasets/issues/2061
Cannot load udpos subsets from xtreme dataset using load_dataset()
@lhoestq Adding "_" to the class labels in the dataset script will fix the issue. The bigger issue IMO is that the data files are in conll format, but the examples are tokens, not sentences.
Hello, I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error. Reprex is: `from datasets import load_dataset ` `dataset = load_dataset('xtreme', 'udpos.English')` The error is: `KeyError: '_'` The full traceback is: KeyError Traceback (most recent call last) <ipython-input-5-7181359ea09d> in <module> 1 from datasets import load_dataset ----> 2 dataset = load_dataset('xtreme', 'udpos.English') ~\Anaconda3\envs\mlenv\lib\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, **config_kwargs) 738 739 # Download and prepare data --> 740 builder_instance.download_and_prepare( 741 download_config=download_config, 742 download_mode=download_mode, ~\Anaconda3\envs\mlenv\lib\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) 576 logger.warning("HF google storage unreachable. Downloading and preparing it from source") 577 if not downloaded_from_gcs: --> 578 self._download_and_prepare( 579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 580 ) ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 654 try: 655 # Prepare split will record examples associated to the split --> 656 self._prepare_split(split_generator, **prepare_split_kwargs) 657 except OSError as e: 658 raise OSError( ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator) 977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose 978 ): --> 979 example = self.info.features.encode_example(record) 980 writer.write(example) 981 finally: ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example) 946 def encode_example(self, example): 947 example = cast_to_python_objects(example) --> 948 return encode_nested_example(self, example) 949 950 def encode_batch(self, batch): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 840 # Nested structures: we allow dict, list/tuples, sequences 841 if isinstance(schema, dict): --> 842 return { 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0) 841 if isinstance(schema, dict): 842 return { --> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } 845 elif isinstance(schema, (list, tuple)): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks 869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)): --> 870 return schema.encode_example(obj) 871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation) 872 return obj ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data) 647 # If a string is given, convert to associated integer 648 if isinstance(example_data, str): --> 649 example_data = self.str2int(example_data) 650 651 # Allowing -1 to mean no label. ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values) 605 if value not in self._str2int: 606 value = value.strip() --> 607 output.append(self._str2int[str(value)]) 608 else: 609 # No names provided, try to integerize KeyError: '_'
35
Cannot load udpos subsets from xtreme dataset using load_dataset() Hello, I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error. Reprex is: `from datasets import load_dataset ` `dataset = load_dataset('xtreme', 'udpos.English')` The error is: `KeyError: '_'` The full traceback is: KeyError Traceback (most recent call last) <ipython-input-5-7181359ea09d> in <module> 1 from datasets import load_dataset ----> 2 dataset = load_dataset('xtreme', 'udpos.English') ~\Anaconda3\envs\mlenv\lib\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, **config_kwargs) 738 739 # Download and prepare data --> 740 builder_instance.download_and_prepare( 741 download_config=download_config, 742 download_mode=download_mode, ~\Anaconda3\envs\mlenv\lib\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) 576 logger.warning("HF google storage unreachable. Downloading and preparing it from source") 577 if not downloaded_from_gcs: --> 578 self._download_and_prepare( 579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 580 ) ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 654 try: 655 # Prepare split will record examples associated to the split --> 656 self._prepare_split(split_generator, **prepare_split_kwargs) 657 except OSError as e: 658 raise OSError( ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator) 977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose 978 ): --> 979 example = self.info.features.encode_example(record) 980 writer.write(example) 981 finally: ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example) 946 def encode_example(self, example): 947 example = cast_to_python_objects(example) --> 948 return encode_nested_example(self, example) 949 950 def encode_batch(self, batch): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 840 # Nested structures: we allow dict, list/tuples, sequences 841 if isinstance(schema, dict): --> 842 return { 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0) 841 if isinstance(schema, dict): 842 return { --> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } 845 elif isinstance(schema, (list, tuple)): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks 869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)): --> 870 return schema.encode_example(obj) 871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation) 872 return obj ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data) 647 # If a string is given, convert to associated integer 648 if isinstance(example_data, str): --> 649 example_data = self.str2int(example_data) 650 651 # Allowing -1 to mean no label. ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values) 605 if value not in self._str2int: 606 value = value.strip() --> 607 output.append(self._str2int[str(value)]) 608 else: 609 # No names provided, try to integerize KeyError: '_' @lhoestq Adding "_" to the class labels in the dataset script will fix the issue. The bigger issue IMO is that the data files are in conll format, but the examples are tokens, not sentences.
[ -0.3464029729, -0.0752864107, 0.0026137996, 0.4443908632, 0.3713297844, 0.0691191331, 0.2405687869, 0.039475292, 0.5101771951, 0.206124723, -0.3589057028, 0.0527048111, 0.0860962719, 0.080866091, 0.1144125089, -0.3151046634, -0.0602491498, 0.0173559412, -0.2503676713, -0.0655043945, -0.4105170965, -0.0623263903, -0.3046582937, 0.109542951, -0.1711033434, 0.2064576298, 0.0141452076, 0.1647337079, -0.3150222003, -0.4950222075, 0.5633594394, 0.0180329736, 0.5800750852, 0.2213219702, -0.0001253432, 0.1060387269, 0.486179471, -0.0613057949, -0.3452347219, -0.4049577415, -0.4189882278, -0.1315973401, -0.069061473, -0.0964654461, 0.1045275405, -0.004399125, -0.0823344886, -0.2585622966, 0.332103461, 0.3678756654, 0.0941703394, 0.3720285892, 0.0618577898, -0.2211653739, 0.4757199585, -0.0422707014, -0.1489076614, 0.1563740075, 0.4271000922, -0.3246813715, 0.180144757, 0.1246251613, -0.2091396004, 0.2249169499, -0.1637179554, 0.0560059808, 0.1821351349, -0.2583509982, 0.239124611, 0.1349652261, 0.8412335515, -0.1512388289, -0.4147815406, 0.0182389952, -0.1014062688, -0.3554824293, 0.1830142885, 0.0008576416, -0.0578870177, 0.0788415223, -0.0767999664, -0.0602421127, 0.0503758639, 0.2890726328, -0.1434575766, 0.2910362482, 0.0541207418, 0.1338609159, 0.3239515424, -0.108920604, 0.4901400208, 0.0979423672, -0.0730720088, 0.2410603017, -0.3231166899, 0.2865315676, -0.0756046847, -0.3037874699, 0.2389639467, -0.1045977324, -0.1012069285, 0.0039556967, -0.1443648636, 0.3295550346, 0.4467023909, 0.2585929632, 0.361431092, 0.2899974287, 0.1072539017, 0.15876849, -0.0565734431, -0.063386701, -0.4474608302, -0.2160627395, 0.085792169, -0.0271295682, 0.1571703255, -0.4506186545, -0.5827978849, 0.0448344946, -0.1629017442, -0.2178838402, 0.0583498739, 0.2688896954, 0.1545640081, 0.42977947, 0.0458622091, 0.445841223, -0.4962794483, -0.2659803331, -0.0544240251, 0.1687628478, -0.4189638197, 0.0585134663, 0.1439428329, 0.0052871499, 0.2148581147, 0.016775785, 0.265674293, -0.2452535629, 0.1288290024, -0.2358860821, -0.2444214076, 0.3540512323, 0.3105243146, 0.1218975484, 0.2711304128, -0.374676317, -0.078598626, 0.2891557813, -0.2225111425, -0.2350119054, 0.0909440592, 0.0328549221, -0.1796908379, 0.0550206564, -1.0357829332, -0.0764579847, 0.0851031318, 0.1069331467, -0.0155086471, -0.2755294442, -0.1712110937, 0.0025956102, 0.2848057449, 0.5355799198, -0.286871314, -0.0464064628, -0.1408399791, -0.0400896147, 0.3355932534, 0.3613088727, -0.3357944191, 0.0737548098, -0.1279850304, 0.1057114452, 0.1982141584, -0.5150757432, -0.4803657234, 0.1640978158, 0.0509281307, -0.0161879752, -0.0857606605, -0.3274518847, 0.2393181473, 0.0357203558, 0.1953127235, 0.2589242458, 0.0580974594, -0.0908875316, -0.1751015335, -0.098595202, 0.1361132413, 0.4271917641, 0.2911245227, 0.1453996599, 0.26148808, 0.4392364025, 0.0436220802, 0.0165756661, 0.0131825525, 0.3216634095, 0.0333599597, 0.0902009755, 0.0362410285, -0.0593441315, -0.4222897589, 0.2021974772, -0.09310022, -0.0453705378, 0.0975538418, 0.1812405884, -0.38971138, 0.1230221242, -0.3247449398, -0.3197048306, -0.0942891389, 0.086603485, -0.0964133963, -0.0818081796, -0.16979976, 0.0806678832, -0.0715483949, 0.1103203744, -0.3754512966, 0.4191192389, 0.0495780446, -0.0648902729, 0.0807240382, 0.2062999755, 0.2299800813, -0.1260799468, -0.1753812879, 0.1877421439, 0.6032564044, -0.1791828275, 0.1357363164, -0.0441037863, 0.3042582572, -0.3885694742, 0.1962028295, -0.0273815431, 0.1187217981, 0.1130648404, 0.0598305427, 0.2541895509, -0.0359746665, 0.1840638369, -0.1281906366, 0.1224724203, 0.387426585, 0.0022266798, 0.0613593459, -0.2924954593, 0.5102491975, 0.3250294626, 0.3184417784, 0.0524793305, -0.1459860951, -0.2242727429, -0.1109304279, -0.1516298056, 0.081671752, 0.1515698582, -0.2236989141, 0.0444756337, 0.2037225068, 0.2373356372, 0.3294335008, 0.0214672405, 0.0758468881, -0.0468032658, 0.0237630494, 0.0701772198, -0.0097976709, -0.071817033, -0.101575613, 0.0644408762, 0.000836264, -0.2057576478, -0.2248117179, 0.0729395226, 0.2377971262, 0.4230693877, -0.3003164232, 0.0473219268, -0.423178345, -0.159529373, 0.138996616, -0.0802794099, -0.0387310348, -0.1483370811, -0.3189131021, 0.2778150141, 0.3382664621, 0.1288224906, 0.1079095677, -0.2398624718, -0.0247332174, -0.2022272795, 0.1674777269, -0.1916830391, -0.1363241225, -0.1142770797, 0.2343533635, 0.1731063724, 0.0974103212, -0.340833962, -0.0454135984, -0.2319971919, -0.0555947833, 0.2320310324, -0.0026649991, 0.3095871508, -0.0770003796, 0.1424633414, -0.3586758077, 0.0364723913, 0.3661396205, 0.0212174486, -0.1678797454, 0.2677277923, -0.0123520643, -0.125105083, 0.0236815643, -0.1473121047, -0.2998107076, -0.2093852162, 0.0171215218, 0.0482659265, 0.0239051934, -0.047115624, 0.039598681, 0.0380501524, 0.1774883717, -0.1749292016, -0.3403438628, -0.4319576621, 0.4691959023, -0.271025151, -0.247500658, 0.0816969648, 0.0473559648, 0.2014109492, 0.3418829441, -0.4603406787, -0.0737867281, -0.1173924655, 0.1646254957, 0.0758612454, 0.1864937991, 0.0469671898, -0.1311486959, 0.1585201323, -0.0770412758, -0.3395669162, -0.1058106497, 0.2425632477, 0.2578388453, -0.1052169129, 0.4483573437, -0.2508383691, 0.2393936068, -0.0129459016, 0.2891103625, 0.5426399708, -0.0893334076, 0.1529129446, -0.3217939734, -0.3143524826, -0.0997116566, -0.194875285, -0.1389903128, 0.0483570993, 0.0269653145, -0.1491458118, -0.2706748545, -0.0529084578, -0.0879612043, -0.1746995747, -0.0553431213, -0.0693780482, 0.3293853998, -0.0504936427, 0.2791501284, 0.0136174001, -0.0404188856, -0.1539395303, 0.2246424109, 0.1235999689, 0.2225520015, -0.3244821429, 0.1071843728, -0.2705762982, 0.3529712856, -0.0407875441, 0.7153815031, -0.1447266638, 0.3261329234, 0.1128169745, 0.0381266177, 0.1055566594, -0.2915965319, 0.1107804999, 0.0259102602, -0.4394386113, -0.0571814589, -0.0327194147, -0.0487925746, -0.0640702695, -0.0291913897, 0.2615405619, -0.2473839819, -0.1046054587, -0.0212868135, 0.304867208, -0.0421136282, -0.2426180094, -0.3949684203, -0.5412185788, -0.4392505884, -0.1890491545, 0.1465299428, 0.1577129364, -0.0798722059, 0.2045397013, -0.1588290185, 0.1053305417, 0.2242291868, 0.084091872, 0.2725594342, -0.0330146067, 0.1534873843, 0.2682334483, -0.1665602475, 0.7140191197, 0.7792876959, -0.1654728353, -0.3519223034, 0.2531234324, -0.0765694827, 0.0217689108, -0.0563550666, -0.0262790825, 0.0473598763, -0.1993345469, -0.1701830477, -0.0464215241, 0.1983216554, 0.1967192441, 0.1544235796, -0.292884171, -0.7532662749, 0.5231233835, 0.0733509809, 0.1194914803, 0.2948040962, -0.0994659662, -0.18771106, 0.2691774666, 0.1097404882, 0.7309183478, -0.4024431407, 0.06639985, 0.1255256236, 0.0390538871, 0.0969470516, -0.0389396697, -0.2549374998, -0.1899639815, -0.2134167999, -0.1464364976, -0.1630651951, 0.281514734, 0.1523413211, -0.0743446276, 0.2819462121, -0.1734498441, -0.0285562761, 0.2377475649, 0.1179538444, -0.0852731839, -0.334666729, -0.5701626539, 0.0695261657, -0.1744921654, 0.2196644098, -0.0229282267, 0.0446260795, -0.077089116, -0.0558211952, -0.3917289376, 0.3648404777, -0.2748181522, 0.3384895027, -0.1301482767, -0.3494688869, 0.1892337501, 0.45077461, 0.2284569293, 0.1401095837, -0.1527666748, 0.0742595494, 0.2642702758, -0.2523836792, -0.0304526724, -0.1002173498, -0.0693552196, -0.023043206, -0.2731992602, 0.1419650167, -0.0702478066, -0.2247542143, -0.074293904, 0.1391914189, 0.0287418999, -0.0994306281, -0.3413546681, -0.0718903914, 0.0351184793, -0.1643305868, -0.0067223581, 0.2091259658, -0.093980886, 0.0110956328, 0.0571488477, -0.3362407982, 0.0208260752, 0.4598704576, -0.0671362579, -0.103542164, 0.5126203299, 0.2207633555, -0.205333665, -0.1291892231, 0.2668742537, 0.3432771862, -0.2435238659, 0.0247938335, -0.1015286222, 0.1226387694, 0.0169647392, 0.0190838035, 0.2321759909, -0.3506093323, 0.3566074669, -0.5912507772, -0.3739058971, 0.1904153824, -0.1842524111, 0.0209103134, -0.0230075009, 0.0114092045, -0.1538709551, -0.0855404884, -0.1131537035, 0.1104642376, -0.3555294871, 0.0531755574, 0.2333113849, -0.003837696, 0.0266176872, -0.1702208519, 0.0084074559, 0.1382464468, 0.0358453169, -0.0385316461, -0.182315588, 0.214209795, 0.1291016489, -0.3466270268, 0.0095422352, -0.2173160613, -0.0406778418, -0.1456344426, 0.1752341539, 0.4642309546, -0.0508854985, 0.1162914559, 0.2020449787, 0.1192642525, -0.3610049486, 0.3773375452, -0.0597466268, 0.2192406058, 0.1052808836, 0.199685514, 0.2261882275, 0.1284534931, -0.2986389101, -0.0918606743, 0.2543622851, -0.0207492746, 0.2784875631, -0.4246550202, 0.3846978247, 0.0934022143, 0.1392693371, 0.4423635304, -0.270870626, 0.0668305233, 0.322624445, 0.0277719833, -0.2396786064, -0.1068027169, 0.1143148094, 0.0567224622, -0.1326248795, 0.3174368143, 0.3981635869, 0.0658837482, -0.140583396, 0.036622677, 0.0629205778, -0.1436381638, 0.0519926436, 0.6180885434, 0.0182582662, 0.2121531665, 0.0627512187, 0.2251057774, -0.0261532739, 0.333124727, -0.1577174217, 0.4461425245, 0.2134561986, 0.1908594519, -0.3277814984, -0.5346596837, -0.1699689031, 0.3204802573, 0.0944016427, -0.0257125199, -0.208639577, 0.242264688, -0.1822713464, 0.1587974131, -0.06975618, 0.1305376291, -0.034036126, -0.1838853508, -0.1329223663, -0.152082473, -0.5502747893, 0.1870927215, -0.2470206916, -0.1265385449, 0.1939037591, 0.1568963826, -0.1329802126, -0.3558677435, -0.0509608798, 0.3773247004, -0.3437858522, -0.3400720954, 0.3964486122, 0.0177267808, 0.0172701962, 0.24953188, 0.1393800229, 0.3306983709, 0.4204998612, -0.3608881533, -0.1154858023, 0.0613389537, 0.0774013028, 0.0765653476, 0.197931394, 0.0195523556, 0.2065381855, 0.3709864616, -0.011409834, -0.0139406845, -0.0316574983, 0.1572707891, -0.2297264785, -0.0879768357, 0.2299748063, -0.0481606945, 0.1998766512, -0.1176378503, 0.0245098863, -0.2423741519, 0.0217858609, 0.5751786232, 0.0103394017, 0.1068289727, 0.0592917576, -0.0527461916, -0.1844877005, 0.3957373202, 0.6384897232, 0.3486225903, -0.4021954834, -0.1908639818, -0.7238461375, 0.0598113537, -0.4783248901, -0.2568793595, 0.5058496594, -0.0741571784, 0.1018313169, 0.3911999762, -0.0939413384, 0.2525465488, 0.1857645661, 0.2951029837, -0.2620004714, -0.2589086294, 0.4163453579, 0.2090040743, -0.1786014885, -0.4936587512, -0.0105338339, 0.0426238328, -0.0922617167, -0.1824913621, 0.041756209, 0.1412571967, 0.3790923059, 0.1933656782, 0.0584115982, 0.7760936618, -0.0257241745, -0.064801611, -0.0789827853, -0.6323979497, -0.0542362407, 0.0605210103, 0.0649564937, 0.1296194792, -0.1022136658, -0.1126851588, -0.382473141, 0.3061403334, -0.125575617, -0.1483522356, -0.2318835706, -0.0043637948, -0.0508505888, -0.0628497005, -0.0281333644, 0.0610886551, 0.1224481612, 0.3552178144, -0.1259650737, -0.2262785733, 0.3989255726, -0.0534628257, -0.4505839348, 0.0725823194, -0.1192310676, 0.3350655735, -0.2118575126, -0.4614247084, 0.1921404898, 0.2282824218, -0.1450063884, -0.3645921052, 0.0354045182, 0.1440640837, 0.1055091098, -0.1191353351, 0.6080467105, 0.0068141865, -0.1588617563, 0.1072710901, -0.1721354574 ]
https://github.com/huggingface/datasets/issues/2061
Cannot load udpos subsets from xtreme dataset using load_dataset()
Hi ! Thanks for reporting @adzcodez > @lhoestq Adding "_" to the class labels in the dataset script will fix the issue. > > The bigger issue IMO is that the data files are in conll format, but the examples are tokens, not sentences. You're right: "_" should be added to the list of labels, and the examples must be sequences of tokens, not singles tokens.
Hello, I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error. Reprex is: `from datasets import load_dataset ` `dataset = load_dataset('xtreme', 'udpos.English')` The error is: `KeyError: '_'` The full traceback is: KeyError Traceback (most recent call last) <ipython-input-5-7181359ea09d> in <module> 1 from datasets import load_dataset ----> 2 dataset = load_dataset('xtreme', 'udpos.English') ~\Anaconda3\envs\mlenv\lib\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, **config_kwargs) 738 739 # Download and prepare data --> 740 builder_instance.download_and_prepare( 741 download_config=download_config, 742 download_mode=download_mode, ~\Anaconda3\envs\mlenv\lib\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) 576 logger.warning("HF google storage unreachable. Downloading and preparing it from source") 577 if not downloaded_from_gcs: --> 578 self._download_and_prepare( 579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 580 ) ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 654 try: 655 # Prepare split will record examples associated to the split --> 656 self._prepare_split(split_generator, **prepare_split_kwargs) 657 except OSError as e: 658 raise OSError( ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator) 977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose 978 ): --> 979 example = self.info.features.encode_example(record) 980 writer.write(example) 981 finally: ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example) 946 def encode_example(self, example): 947 example = cast_to_python_objects(example) --> 948 return encode_nested_example(self, example) 949 950 def encode_batch(self, batch): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 840 # Nested structures: we allow dict, list/tuples, sequences 841 if isinstance(schema, dict): --> 842 return { 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0) 841 if isinstance(schema, dict): 842 return { --> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } 845 elif isinstance(schema, (list, tuple)): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks 869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)): --> 870 return schema.encode_example(obj) 871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation) 872 return obj ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data) 647 # If a string is given, convert to associated integer 648 if isinstance(example_data, str): --> 649 example_data = self.str2int(example_data) 650 651 # Allowing -1 to mean no label. ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values) 605 if value not in self._str2int: 606 value = value.strip() --> 607 output.append(self._str2int[str(value)]) 608 else: 609 # No names provided, try to integerize KeyError: '_'
66
Cannot load udpos subsets from xtreme dataset using load_dataset() Hello, I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error. Reprex is: `from datasets import load_dataset ` `dataset = load_dataset('xtreme', 'udpos.English')` The error is: `KeyError: '_'` The full traceback is: KeyError Traceback (most recent call last) <ipython-input-5-7181359ea09d> in <module> 1 from datasets import load_dataset ----> 2 dataset = load_dataset('xtreme', 'udpos.English') ~\Anaconda3\envs\mlenv\lib\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, **config_kwargs) 738 739 # Download and prepare data --> 740 builder_instance.download_and_prepare( 741 download_config=download_config, 742 download_mode=download_mode, ~\Anaconda3\envs\mlenv\lib\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) 576 logger.warning("HF google storage unreachable. Downloading and preparing it from source") 577 if not downloaded_from_gcs: --> 578 self._download_and_prepare( 579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 580 ) ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 654 try: 655 # Prepare split will record examples associated to the split --> 656 self._prepare_split(split_generator, **prepare_split_kwargs) 657 except OSError as e: 658 raise OSError( ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator) 977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose 978 ): --> 979 example = self.info.features.encode_example(record) 980 writer.write(example) 981 finally: ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example) 946 def encode_example(self, example): 947 example = cast_to_python_objects(example) --> 948 return encode_nested_example(self, example) 949 950 def encode_batch(self, batch): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 840 # Nested structures: we allow dict, list/tuples, sequences 841 if isinstance(schema, dict): --> 842 return { 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0) 841 if isinstance(schema, dict): 842 return { --> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } 845 elif isinstance(schema, (list, tuple)): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks 869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)): --> 870 return schema.encode_example(obj) 871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation) 872 return obj ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data) 647 # If a string is given, convert to associated integer 648 if isinstance(example_data, str): --> 649 example_data = self.str2int(example_data) 650 651 # Allowing -1 to mean no label. ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values) 605 if value not in self._str2int: 606 value = value.strip() --> 607 output.append(self._str2int[str(value)]) 608 else: 609 # No names provided, try to integerize KeyError: '_' Hi ! Thanks for reporting @adzcodez > @lhoestq Adding "_" to the class labels in the dataset script will fix the issue. > > The bigger issue IMO is that the data files are in conll format, but the examples are tokens, not sentences. You're right: "_" should be added to the list of labels, and the examples must be sequences of tokens, not singles tokens.
[ -0.3464029729, -0.0752864107, 0.0026137996, 0.4443908632, 0.3713297844, 0.0691191331, 0.2405687869, 0.039475292, 0.5101771951, 0.206124723, -0.3589057028, 0.0527048111, 0.0860962719, 0.080866091, 0.1144125089, -0.3151046634, -0.0602491498, 0.0173559412, -0.2503676713, -0.0655043945, -0.4105170965, -0.0623263903, -0.3046582937, 0.109542951, -0.1711033434, 0.2064576298, 0.0141452076, 0.1647337079, -0.3150222003, -0.4950222075, 0.5633594394, 0.0180329736, 0.5800750852, 0.2213219702, -0.0001253432, 0.1060387269, 0.486179471, -0.0613057949, -0.3452347219, -0.4049577415, -0.4189882278, -0.1315973401, -0.069061473, -0.0964654461, 0.1045275405, -0.004399125, -0.0823344886, -0.2585622966, 0.332103461, 0.3678756654, 0.0941703394, 0.3720285892, 0.0618577898, -0.2211653739, 0.4757199585, -0.0422707014, -0.1489076614, 0.1563740075, 0.4271000922, -0.3246813715, 0.180144757, 0.1246251613, -0.2091396004, 0.2249169499, -0.1637179554, 0.0560059808, 0.1821351349, -0.2583509982, 0.239124611, 0.1349652261, 0.8412335515, -0.1512388289, -0.4147815406, 0.0182389952, -0.1014062688, -0.3554824293, 0.1830142885, 0.0008576416, -0.0578870177, 0.0788415223, -0.0767999664, -0.0602421127, 0.0503758639, 0.2890726328, -0.1434575766, 0.2910362482, 0.0541207418, 0.1338609159, 0.3239515424, -0.108920604, 0.4901400208, 0.0979423672, -0.0730720088, 0.2410603017, -0.3231166899, 0.2865315676, -0.0756046847, -0.3037874699, 0.2389639467, -0.1045977324, -0.1012069285, 0.0039556967, -0.1443648636, 0.3295550346, 0.4467023909, 0.2585929632, 0.361431092, 0.2899974287, 0.1072539017, 0.15876849, -0.0565734431, -0.063386701, -0.4474608302, -0.2160627395, 0.085792169, -0.0271295682, 0.1571703255, -0.4506186545, -0.5827978849, 0.0448344946, -0.1629017442, -0.2178838402, 0.0583498739, 0.2688896954, 0.1545640081, 0.42977947, 0.0458622091, 0.445841223, -0.4962794483, -0.2659803331, -0.0544240251, 0.1687628478, -0.4189638197, 0.0585134663, 0.1439428329, 0.0052871499, 0.2148581147, 0.016775785, 0.265674293, -0.2452535629, 0.1288290024, -0.2358860821, -0.2444214076, 0.3540512323, 0.3105243146, 0.1218975484, 0.2711304128, -0.374676317, -0.078598626, 0.2891557813, -0.2225111425, -0.2350119054, 0.0909440592, 0.0328549221, -0.1796908379, 0.0550206564, -1.0357829332, -0.0764579847, 0.0851031318, 0.1069331467, -0.0155086471, -0.2755294442, -0.1712110937, 0.0025956102, 0.2848057449, 0.5355799198, -0.286871314, -0.0464064628, -0.1408399791, -0.0400896147, 0.3355932534, 0.3613088727, -0.3357944191, 0.0737548098, -0.1279850304, 0.1057114452, 0.1982141584, -0.5150757432, -0.4803657234, 0.1640978158, 0.0509281307, -0.0161879752, -0.0857606605, -0.3274518847, 0.2393181473, 0.0357203558, 0.1953127235, 0.2589242458, 0.0580974594, -0.0908875316, -0.1751015335, -0.098595202, 0.1361132413, 0.4271917641, 0.2911245227, 0.1453996599, 0.26148808, 0.4392364025, 0.0436220802, 0.0165756661, 0.0131825525, 0.3216634095, 0.0333599597, 0.0902009755, 0.0362410285, -0.0593441315, -0.4222897589, 0.2021974772, -0.09310022, -0.0453705378, 0.0975538418, 0.1812405884, -0.38971138, 0.1230221242, -0.3247449398, -0.3197048306, -0.0942891389, 0.086603485, -0.0964133963, -0.0818081796, -0.16979976, 0.0806678832, -0.0715483949, 0.1103203744, -0.3754512966, 0.4191192389, 0.0495780446, -0.0648902729, 0.0807240382, 0.2062999755, 0.2299800813, -0.1260799468, -0.1753812879, 0.1877421439, 0.6032564044, -0.1791828275, 0.1357363164, -0.0441037863, 0.3042582572, -0.3885694742, 0.1962028295, -0.0273815431, 0.1187217981, 0.1130648404, 0.0598305427, 0.2541895509, -0.0359746665, 0.1840638369, -0.1281906366, 0.1224724203, 0.387426585, 0.0022266798, 0.0613593459, -0.2924954593, 0.5102491975, 0.3250294626, 0.3184417784, 0.0524793305, -0.1459860951, -0.2242727429, -0.1109304279, -0.1516298056, 0.081671752, 0.1515698582, -0.2236989141, 0.0444756337, 0.2037225068, 0.2373356372, 0.3294335008, 0.0214672405, 0.0758468881, -0.0468032658, 0.0237630494, 0.0701772198, -0.0097976709, -0.071817033, -0.101575613, 0.0644408762, 0.000836264, -0.2057576478, -0.2248117179, 0.0729395226, 0.2377971262, 0.4230693877, -0.3003164232, 0.0473219268, -0.423178345, -0.159529373, 0.138996616, -0.0802794099, -0.0387310348, -0.1483370811, -0.3189131021, 0.2778150141, 0.3382664621, 0.1288224906, 0.1079095677, -0.2398624718, -0.0247332174, -0.2022272795, 0.1674777269, -0.1916830391, -0.1363241225, -0.1142770797, 0.2343533635, 0.1731063724, 0.0974103212, -0.340833962, -0.0454135984, -0.2319971919, -0.0555947833, 0.2320310324, -0.0026649991, 0.3095871508, -0.0770003796, 0.1424633414, -0.3586758077, 0.0364723913, 0.3661396205, 0.0212174486, -0.1678797454, 0.2677277923, -0.0123520643, -0.125105083, 0.0236815643, -0.1473121047, -0.2998107076, -0.2093852162, 0.0171215218, 0.0482659265, 0.0239051934, -0.047115624, 0.039598681, 0.0380501524, 0.1774883717, -0.1749292016, -0.3403438628, -0.4319576621, 0.4691959023, -0.271025151, -0.247500658, 0.0816969648, 0.0473559648, 0.2014109492, 0.3418829441, -0.4603406787, -0.0737867281, -0.1173924655, 0.1646254957, 0.0758612454, 0.1864937991, 0.0469671898, -0.1311486959, 0.1585201323, -0.0770412758, -0.3395669162, -0.1058106497, 0.2425632477, 0.2578388453, -0.1052169129, 0.4483573437, -0.2508383691, 0.2393936068, -0.0129459016, 0.2891103625, 0.5426399708, -0.0893334076, 0.1529129446, -0.3217939734, -0.3143524826, -0.0997116566, -0.194875285, -0.1389903128, 0.0483570993, 0.0269653145, -0.1491458118, -0.2706748545, -0.0529084578, -0.0879612043, -0.1746995747, -0.0553431213, -0.0693780482, 0.3293853998, -0.0504936427, 0.2791501284, 0.0136174001, -0.0404188856, -0.1539395303, 0.2246424109, 0.1235999689, 0.2225520015, -0.3244821429, 0.1071843728, -0.2705762982, 0.3529712856, -0.0407875441, 0.7153815031, -0.1447266638, 0.3261329234, 0.1128169745, 0.0381266177, 0.1055566594, -0.2915965319, 0.1107804999, 0.0259102602, -0.4394386113, -0.0571814589, -0.0327194147, -0.0487925746, -0.0640702695, -0.0291913897, 0.2615405619, -0.2473839819, -0.1046054587, -0.0212868135, 0.304867208, -0.0421136282, -0.2426180094, -0.3949684203, -0.5412185788, -0.4392505884, -0.1890491545, 0.1465299428, 0.1577129364, -0.0798722059, 0.2045397013, -0.1588290185, 0.1053305417, 0.2242291868, 0.084091872, 0.2725594342, -0.0330146067, 0.1534873843, 0.2682334483, -0.1665602475, 0.7140191197, 0.7792876959, -0.1654728353, -0.3519223034, 0.2531234324, -0.0765694827, 0.0217689108, -0.0563550666, -0.0262790825, 0.0473598763, -0.1993345469, -0.1701830477, -0.0464215241, 0.1983216554, 0.1967192441, 0.1544235796, -0.292884171, -0.7532662749, 0.5231233835, 0.0733509809, 0.1194914803, 0.2948040962, -0.0994659662, -0.18771106, 0.2691774666, 0.1097404882, 0.7309183478, -0.4024431407, 0.06639985, 0.1255256236, 0.0390538871, 0.0969470516, -0.0389396697, -0.2549374998, -0.1899639815, -0.2134167999, -0.1464364976, -0.1630651951, 0.281514734, 0.1523413211, -0.0743446276, 0.2819462121, -0.1734498441, -0.0285562761, 0.2377475649, 0.1179538444, -0.0852731839, -0.334666729, -0.5701626539, 0.0695261657, -0.1744921654, 0.2196644098, -0.0229282267, 0.0446260795, -0.077089116, -0.0558211952, -0.3917289376, 0.3648404777, -0.2748181522, 0.3384895027, -0.1301482767, -0.3494688869, 0.1892337501, 0.45077461, 0.2284569293, 0.1401095837, -0.1527666748, 0.0742595494, 0.2642702758, -0.2523836792, -0.0304526724, -0.1002173498, -0.0693552196, -0.023043206, -0.2731992602, 0.1419650167, -0.0702478066, -0.2247542143, -0.074293904, 0.1391914189, 0.0287418999, -0.0994306281, -0.3413546681, -0.0718903914, 0.0351184793, -0.1643305868, -0.0067223581, 0.2091259658, -0.093980886, 0.0110956328, 0.0571488477, -0.3362407982, 0.0208260752, 0.4598704576, -0.0671362579, -0.103542164, 0.5126203299, 0.2207633555, -0.205333665, -0.1291892231, 0.2668742537, 0.3432771862, -0.2435238659, 0.0247938335, -0.1015286222, 0.1226387694, 0.0169647392, 0.0190838035, 0.2321759909, -0.3506093323, 0.3566074669, -0.5912507772, -0.3739058971, 0.1904153824, -0.1842524111, 0.0209103134, -0.0230075009, 0.0114092045, -0.1538709551, -0.0855404884, -0.1131537035, 0.1104642376, -0.3555294871, 0.0531755574, 0.2333113849, -0.003837696, 0.0266176872, -0.1702208519, 0.0084074559, 0.1382464468, 0.0358453169, -0.0385316461, -0.182315588, 0.214209795, 0.1291016489, -0.3466270268, 0.0095422352, -0.2173160613, -0.0406778418, -0.1456344426, 0.1752341539, 0.4642309546, -0.0508854985, 0.1162914559, 0.2020449787, 0.1192642525, -0.3610049486, 0.3773375452, -0.0597466268, 0.2192406058, 0.1052808836, 0.199685514, 0.2261882275, 0.1284534931, -0.2986389101, -0.0918606743, 0.2543622851, -0.0207492746, 0.2784875631, -0.4246550202, 0.3846978247, 0.0934022143, 0.1392693371, 0.4423635304, -0.270870626, 0.0668305233, 0.322624445, 0.0277719833, -0.2396786064, -0.1068027169, 0.1143148094, 0.0567224622, -0.1326248795, 0.3174368143, 0.3981635869, 0.0658837482, -0.140583396, 0.036622677, 0.0629205778, -0.1436381638, 0.0519926436, 0.6180885434, 0.0182582662, 0.2121531665, 0.0627512187, 0.2251057774, -0.0261532739, 0.333124727, -0.1577174217, 0.4461425245, 0.2134561986, 0.1908594519, -0.3277814984, -0.5346596837, -0.1699689031, 0.3204802573, 0.0944016427, -0.0257125199, -0.208639577, 0.242264688, -0.1822713464, 0.1587974131, -0.06975618, 0.1305376291, -0.034036126, -0.1838853508, -0.1329223663, -0.152082473, -0.5502747893, 0.1870927215, -0.2470206916, -0.1265385449, 0.1939037591, 0.1568963826, -0.1329802126, -0.3558677435, -0.0509608798, 0.3773247004, -0.3437858522, -0.3400720954, 0.3964486122, 0.0177267808, 0.0172701962, 0.24953188, 0.1393800229, 0.3306983709, 0.4204998612, -0.3608881533, -0.1154858023, 0.0613389537, 0.0774013028, 0.0765653476, 0.197931394, 0.0195523556, 0.2065381855, 0.3709864616, -0.011409834, -0.0139406845, -0.0316574983, 0.1572707891, -0.2297264785, -0.0879768357, 0.2299748063, -0.0481606945, 0.1998766512, -0.1176378503, 0.0245098863, -0.2423741519, 0.0217858609, 0.5751786232, 0.0103394017, 0.1068289727, 0.0592917576, -0.0527461916, -0.1844877005, 0.3957373202, 0.6384897232, 0.3486225903, -0.4021954834, -0.1908639818, -0.7238461375, 0.0598113537, -0.4783248901, -0.2568793595, 0.5058496594, -0.0741571784, 0.1018313169, 0.3911999762, -0.0939413384, 0.2525465488, 0.1857645661, 0.2951029837, -0.2620004714, -0.2589086294, 0.4163453579, 0.2090040743, -0.1786014885, -0.4936587512, -0.0105338339, 0.0426238328, -0.0922617167, -0.1824913621, 0.041756209, 0.1412571967, 0.3790923059, 0.1933656782, 0.0584115982, 0.7760936618, -0.0257241745, -0.064801611, -0.0789827853, -0.6323979497, -0.0542362407, 0.0605210103, 0.0649564937, 0.1296194792, -0.1022136658, -0.1126851588, -0.382473141, 0.3061403334, -0.125575617, -0.1483522356, -0.2318835706, -0.0043637948, -0.0508505888, -0.0628497005, -0.0281333644, 0.0610886551, 0.1224481612, 0.3552178144, -0.1259650737, -0.2262785733, 0.3989255726, -0.0534628257, -0.4505839348, 0.0725823194, -0.1192310676, 0.3350655735, -0.2118575126, -0.4614247084, 0.1921404898, 0.2282824218, -0.1450063884, -0.3645921052, 0.0354045182, 0.1440640837, 0.1055091098, -0.1191353351, 0.6080467105, 0.0068141865, -0.1588617563, 0.1072710901, -0.1721354574 ]
https://github.com/huggingface/datasets/issues/2061
Cannot load udpos subsets from xtreme dataset using load_dataset()
@lhoestq Can you please label this issue with the "good first issue" label? I'm not sure I'll find time to fix this. To resolve it, the user should: 1. add `"_"` to the list of labels 2. transform the udpos subset to the conll format (I think the preprocessing logic can be borrowed from [the original repo](https://github.com/google-research/xtreme/blob/58a76a0d02458c4b3b6a742d3fd4ffaca80ff0de/utils_preprocess.py#L187-L204)) 3. update the dummy data 4. update the dataset info 5. [optional] add info about the data fields structure of the udpos subset to the dataset readme
Hello, I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error. Reprex is: `from datasets import load_dataset ` `dataset = load_dataset('xtreme', 'udpos.English')` The error is: `KeyError: '_'` The full traceback is: KeyError Traceback (most recent call last) <ipython-input-5-7181359ea09d> in <module> 1 from datasets import load_dataset ----> 2 dataset = load_dataset('xtreme', 'udpos.English') ~\Anaconda3\envs\mlenv\lib\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, **config_kwargs) 738 739 # Download and prepare data --> 740 builder_instance.download_and_prepare( 741 download_config=download_config, 742 download_mode=download_mode, ~\Anaconda3\envs\mlenv\lib\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) 576 logger.warning("HF google storage unreachable. Downloading and preparing it from source") 577 if not downloaded_from_gcs: --> 578 self._download_and_prepare( 579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 580 ) ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 654 try: 655 # Prepare split will record examples associated to the split --> 656 self._prepare_split(split_generator, **prepare_split_kwargs) 657 except OSError as e: 658 raise OSError( ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator) 977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose 978 ): --> 979 example = self.info.features.encode_example(record) 980 writer.write(example) 981 finally: ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example) 946 def encode_example(self, example): 947 example = cast_to_python_objects(example) --> 948 return encode_nested_example(self, example) 949 950 def encode_batch(self, batch): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 840 # Nested structures: we allow dict, list/tuples, sequences 841 if isinstance(schema, dict): --> 842 return { 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0) 841 if isinstance(schema, dict): 842 return { --> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } 845 elif isinstance(schema, (list, tuple)): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks 869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)): --> 870 return schema.encode_example(obj) 871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation) 872 return obj ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data) 647 # If a string is given, convert to associated integer 648 if isinstance(example_data, str): --> 649 example_data = self.str2int(example_data) 650 651 # Allowing -1 to mean no label. ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values) 605 if value not in self._str2int: 606 value = value.strip() --> 607 output.append(self._str2int[str(value)]) 608 else: 609 # No names provided, try to integerize KeyError: '_'
84
Cannot load udpos subsets from xtreme dataset using load_dataset() Hello, I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error. Reprex is: `from datasets import load_dataset ` `dataset = load_dataset('xtreme', 'udpos.English')` The error is: `KeyError: '_'` The full traceback is: KeyError Traceback (most recent call last) <ipython-input-5-7181359ea09d> in <module> 1 from datasets import load_dataset ----> 2 dataset = load_dataset('xtreme', 'udpos.English') ~\Anaconda3\envs\mlenv\lib\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, **config_kwargs) 738 739 # Download and prepare data --> 740 builder_instance.download_and_prepare( 741 download_config=download_config, 742 download_mode=download_mode, ~\Anaconda3\envs\mlenv\lib\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) 576 logger.warning("HF google storage unreachable. Downloading and preparing it from source") 577 if not downloaded_from_gcs: --> 578 self._download_and_prepare( 579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 580 ) ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 654 try: 655 # Prepare split will record examples associated to the split --> 656 self._prepare_split(split_generator, **prepare_split_kwargs) 657 except OSError as e: 658 raise OSError( ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator) 977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose 978 ): --> 979 example = self.info.features.encode_example(record) 980 writer.write(example) 981 finally: ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example) 946 def encode_example(self, example): 947 example = cast_to_python_objects(example) --> 948 return encode_nested_example(self, example) 949 950 def encode_batch(self, batch): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 840 # Nested structures: we allow dict, list/tuples, sequences 841 if isinstance(schema, dict): --> 842 return { 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0) 841 if isinstance(schema, dict): 842 return { --> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } 845 elif isinstance(schema, (list, tuple)): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks 869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)): --> 870 return schema.encode_example(obj) 871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation) 872 return obj ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data) 647 # If a string is given, convert to associated integer 648 if isinstance(example_data, str): --> 649 example_data = self.str2int(example_data) 650 651 # Allowing -1 to mean no label. ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values) 605 if value not in self._str2int: 606 value = value.strip() --> 607 output.append(self._str2int[str(value)]) 608 else: 609 # No names provided, try to integerize KeyError: '_' @lhoestq Can you please label this issue with the "good first issue" label? I'm not sure I'll find time to fix this. To resolve it, the user should: 1. add `"_"` to the list of labels 2. transform the udpos subset to the conll format (I think the preprocessing logic can be borrowed from [the original repo](https://github.com/google-research/xtreme/blob/58a76a0d02458c4b3b6a742d3fd4ffaca80ff0de/utils_preprocess.py#L187-L204)) 3. update the dummy data 4. update the dataset info 5. [optional] add info about the data fields structure of the udpos subset to the dataset readme
[ -0.3464029729, -0.0752864107, 0.0026137996, 0.4443908632, 0.3713297844, 0.0691191331, 0.2405687869, 0.039475292, 0.5101771951, 0.206124723, -0.3589057028, 0.0527048111, 0.0860962719, 0.080866091, 0.1144125089, -0.3151046634, -0.0602491498, 0.0173559412, -0.2503676713, -0.0655043945, -0.4105170965, -0.0623263903, -0.3046582937, 0.109542951, -0.1711033434, 0.2064576298, 0.0141452076, 0.1647337079, -0.3150222003, -0.4950222075, 0.5633594394, 0.0180329736, 0.5800750852, 0.2213219702, -0.0001253432, 0.1060387269, 0.486179471, -0.0613057949, -0.3452347219, -0.4049577415, -0.4189882278, -0.1315973401, -0.069061473, -0.0964654461, 0.1045275405, -0.004399125, -0.0823344886, -0.2585622966, 0.332103461, 0.3678756654, 0.0941703394, 0.3720285892, 0.0618577898, -0.2211653739, 0.4757199585, -0.0422707014, -0.1489076614, 0.1563740075, 0.4271000922, -0.3246813715, 0.180144757, 0.1246251613, -0.2091396004, 0.2249169499, -0.1637179554, 0.0560059808, 0.1821351349, -0.2583509982, 0.239124611, 0.1349652261, 0.8412335515, -0.1512388289, -0.4147815406, 0.0182389952, -0.1014062688, -0.3554824293, 0.1830142885, 0.0008576416, -0.0578870177, 0.0788415223, -0.0767999664, -0.0602421127, 0.0503758639, 0.2890726328, -0.1434575766, 0.2910362482, 0.0541207418, 0.1338609159, 0.3239515424, -0.108920604, 0.4901400208, 0.0979423672, -0.0730720088, 0.2410603017, -0.3231166899, 0.2865315676, -0.0756046847, -0.3037874699, 0.2389639467, -0.1045977324, -0.1012069285, 0.0039556967, -0.1443648636, 0.3295550346, 0.4467023909, 0.2585929632, 0.361431092, 0.2899974287, 0.1072539017, 0.15876849, -0.0565734431, -0.063386701, -0.4474608302, -0.2160627395, 0.085792169, -0.0271295682, 0.1571703255, -0.4506186545, -0.5827978849, 0.0448344946, -0.1629017442, -0.2178838402, 0.0583498739, 0.2688896954, 0.1545640081, 0.42977947, 0.0458622091, 0.445841223, -0.4962794483, -0.2659803331, -0.0544240251, 0.1687628478, -0.4189638197, 0.0585134663, 0.1439428329, 0.0052871499, 0.2148581147, 0.016775785, 0.265674293, -0.2452535629, 0.1288290024, -0.2358860821, -0.2444214076, 0.3540512323, 0.3105243146, 0.1218975484, 0.2711304128, -0.374676317, -0.078598626, 0.2891557813, -0.2225111425, -0.2350119054, 0.0909440592, 0.0328549221, -0.1796908379, 0.0550206564, -1.0357829332, -0.0764579847, 0.0851031318, 0.1069331467, -0.0155086471, -0.2755294442, -0.1712110937, 0.0025956102, 0.2848057449, 0.5355799198, -0.286871314, -0.0464064628, -0.1408399791, -0.0400896147, 0.3355932534, 0.3613088727, -0.3357944191, 0.0737548098, -0.1279850304, 0.1057114452, 0.1982141584, -0.5150757432, -0.4803657234, 0.1640978158, 0.0509281307, -0.0161879752, -0.0857606605, -0.3274518847, 0.2393181473, 0.0357203558, 0.1953127235, 0.2589242458, 0.0580974594, -0.0908875316, -0.1751015335, -0.098595202, 0.1361132413, 0.4271917641, 0.2911245227, 0.1453996599, 0.26148808, 0.4392364025, 0.0436220802, 0.0165756661, 0.0131825525, 0.3216634095, 0.0333599597, 0.0902009755, 0.0362410285, -0.0593441315, -0.4222897589, 0.2021974772, -0.09310022, -0.0453705378, 0.0975538418, 0.1812405884, -0.38971138, 0.1230221242, -0.3247449398, -0.3197048306, -0.0942891389, 0.086603485, -0.0964133963, -0.0818081796, -0.16979976, 0.0806678832, -0.0715483949, 0.1103203744, -0.3754512966, 0.4191192389, 0.0495780446, -0.0648902729, 0.0807240382, 0.2062999755, 0.2299800813, -0.1260799468, -0.1753812879, 0.1877421439, 0.6032564044, -0.1791828275, 0.1357363164, -0.0441037863, 0.3042582572, -0.3885694742, 0.1962028295, -0.0273815431, 0.1187217981, 0.1130648404, 0.0598305427, 0.2541895509, -0.0359746665, 0.1840638369, -0.1281906366, 0.1224724203, 0.387426585, 0.0022266798, 0.0613593459, -0.2924954593, 0.5102491975, 0.3250294626, 0.3184417784, 0.0524793305, -0.1459860951, -0.2242727429, -0.1109304279, -0.1516298056, 0.081671752, 0.1515698582, -0.2236989141, 0.0444756337, 0.2037225068, 0.2373356372, 0.3294335008, 0.0214672405, 0.0758468881, -0.0468032658, 0.0237630494, 0.0701772198, -0.0097976709, -0.071817033, -0.101575613, 0.0644408762, 0.000836264, -0.2057576478, -0.2248117179, 0.0729395226, 0.2377971262, 0.4230693877, -0.3003164232, 0.0473219268, -0.423178345, -0.159529373, 0.138996616, -0.0802794099, -0.0387310348, -0.1483370811, -0.3189131021, 0.2778150141, 0.3382664621, 0.1288224906, 0.1079095677, -0.2398624718, -0.0247332174, -0.2022272795, 0.1674777269, -0.1916830391, -0.1363241225, -0.1142770797, 0.2343533635, 0.1731063724, 0.0974103212, -0.340833962, -0.0454135984, -0.2319971919, -0.0555947833, 0.2320310324, -0.0026649991, 0.3095871508, -0.0770003796, 0.1424633414, -0.3586758077, 0.0364723913, 0.3661396205, 0.0212174486, -0.1678797454, 0.2677277923, -0.0123520643, -0.125105083, 0.0236815643, -0.1473121047, -0.2998107076, -0.2093852162, 0.0171215218, 0.0482659265, 0.0239051934, -0.047115624, 0.039598681, 0.0380501524, 0.1774883717, -0.1749292016, -0.3403438628, -0.4319576621, 0.4691959023, -0.271025151, -0.247500658, 0.0816969648, 0.0473559648, 0.2014109492, 0.3418829441, -0.4603406787, -0.0737867281, -0.1173924655, 0.1646254957, 0.0758612454, 0.1864937991, 0.0469671898, -0.1311486959, 0.1585201323, -0.0770412758, -0.3395669162, -0.1058106497, 0.2425632477, 0.2578388453, -0.1052169129, 0.4483573437, -0.2508383691, 0.2393936068, -0.0129459016, 0.2891103625, 0.5426399708, -0.0893334076, 0.1529129446, -0.3217939734, -0.3143524826, -0.0997116566, -0.194875285, -0.1389903128, 0.0483570993, 0.0269653145, -0.1491458118, -0.2706748545, -0.0529084578, -0.0879612043, -0.1746995747, -0.0553431213, -0.0693780482, 0.3293853998, -0.0504936427, 0.2791501284, 0.0136174001, -0.0404188856, -0.1539395303, 0.2246424109, 0.1235999689, 0.2225520015, -0.3244821429, 0.1071843728, -0.2705762982, 0.3529712856, -0.0407875441, 0.7153815031, -0.1447266638, 0.3261329234, 0.1128169745, 0.0381266177, 0.1055566594, -0.2915965319, 0.1107804999, 0.0259102602, -0.4394386113, -0.0571814589, -0.0327194147, -0.0487925746, -0.0640702695, -0.0291913897, 0.2615405619, -0.2473839819, -0.1046054587, -0.0212868135, 0.304867208, -0.0421136282, -0.2426180094, -0.3949684203, -0.5412185788, -0.4392505884, -0.1890491545, 0.1465299428, 0.1577129364, -0.0798722059, 0.2045397013, -0.1588290185, 0.1053305417, 0.2242291868, 0.084091872, 0.2725594342, -0.0330146067, 0.1534873843, 0.2682334483, -0.1665602475, 0.7140191197, 0.7792876959, -0.1654728353, -0.3519223034, 0.2531234324, -0.0765694827, 0.0217689108, -0.0563550666, -0.0262790825, 0.0473598763, -0.1993345469, -0.1701830477, -0.0464215241, 0.1983216554, 0.1967192441, 0.1544235796, -0.292884171, -0.7532662749, 0.5231233835, 0.0733509809, 0.1194914803, 0.2948040962, -0.0994659662, -0.18771106, 0.2691774666, 0.1097404882, 0.7309183478, -0.4024431407, 0.06639985, 0.1255256236, 0.0390538871, 0.0969470516, -0.0389396697, -0.2549374998, -0.1899639815, -0.2134167999, -0.1464364976, -0.1630651951, 0.281514734, 0.1523413211, -0.0743446276, 0.2819462121, -0.1734498441, -0.0285562761, 0.2377475649, 0.1179538444, -0.0852731839, -0.334666729, -0.5701626539, 0.0695261657, -0.1744921654, 0.2196644098, -0.0229282267, 0.0446260795, -0.077089116, -0.0558211952, -0.3917289376, 0.3648404777, -0.2748181522, 0.3384895027, -0.1301482767, -0.3494688869, 0.1892337501, 0.45077461, 0.2284569293, 0.1401095837, -0.1527666748, 0.0742595494, 0.2642702758, -0.2523836792, -0.0304526724, -0.1002173498, -0.0693552196, -0.023043206, -0.2731992602, 0.1419650167, -0.0702478066, -0.2247542143, -0.074293904, 0.1391914189, 0.0287418999, -0.0994306281, -0.3413546681, -0.0718903914, 0.0351184793, -0.1643305868, -0.0067223581, 0.2091259658, -0.093980886, 0.0110956328, 0.0571488477, -0.3362407982, 0.0208260752, 0.4598704576, -0.0671362579, -0.103542164, 0.5126203299, 0.2207633555, -0.205333665, -0.1291892231, 0.2668742537, 0.3432771862, -0.2435238659, 0.0247938335, -0.1015286222, 0.1226387694, 0.0169647392, 0.0190838035, 0.2321759909, -0.3506093323, 0.3566074669, -0.5912507772, -0.3739058971, 0.1904153824, -0.1842524111, 0.0209103134, -0.0230075009, 0.0114092045, -0.1538709551, -0.0855404884, -0.1131537035, 0.1104642376, -0.3555294871, 0.0531755574, 0.2333113849, -0.003837696, 0.0266176872, -0.1702208519, 0.0084074559, 0.1382464468, 0.0358453169, -0.0385316461, -0.182315588, 0.214209795, 0.1291016489, -0.3466270268, 0.0095422352, -0.2173160613, -0.0406778418, -0.1456344426, 0.1752341539, 0.4642309546, -0.0508854985, 0.1162914559, 0.2020449787, 0.1192642525, -0.3610049486, 0.3773375452, -0.0597466268, 0.2192406058, 0.1052808836, 0.199685514, 0.2261882275, 0.1284534931, -0.2986389101, -0.0918606743, 0.2543622851, -0.0207492746, 0.2784875631, -0.4246550202, 0.3846978247, 0.0934022143, 0.1392693371, 0.4423635304, -0.270870626, 0.0668305233, 0.322624445, 0.0277719833, -0.2396786064, -0.1068027169, 0.1143148094, 0.0567224622, -0.1326248795, 0.3174368143, 0.3981635869, 0.0658837482, -0.140583396, 0.036622677, 0.0629205778, -0.1436381638, 0.0519926436, 0.6180885434, 0.0182582662, 0.2121531665, 0.0627512187, 0.2251057774, -0.0261532739, 0.333124727, -0.1577174217, 0.4461425245, 0.2134561986, 0.1908594519, -0.3277814984, -0.5346596837, -0.1699689031, 0.3204802573, 0.0944016427, -0.0257125199, -0.208639577, 0.242264688, -0.1822713464, 0.1587974131, -0.06975618, 0.1305376291, -0.034036126, -0.1838853508, -0.1329223663, -0.152082473, -0.5502747893, 0.1870927215, -0.2470206916, -0.1265385449, 0.1939037591, 0.1568963826, -0.1329802126, -0.3558677435, -0.0509608798, 0.3773247004, -0.3437858522, -0.3400720954, 0.3964486122, 0.0177267808, 0.0172701962, 0.24953188, 0.1393800229, 0.3306983709, 0.4204998612, -0.3608881533, -0.1154858023, 0.0613389537, 0.0774013028, 0.0765653476, 0.197931394, 0.0195523556, 0.2065381855, 0.3709864616, -0.011409834, -0.0139406845, -0.0316574983, 0.1572707891, -0.2297264785, -0.0879768357, 0.2299748063, -0.0481606945, 0.1998766512, -0.1176378503, 0.0245098863, -0.2423741519, 0.0217858609, 0.5751786232, 0.0103394017, 0.1068289727, 0.0592917576, -0.0527461916, -0.1844877005, 0.3957373202, 0.6384897232, 0.3486225903, -0.4021954834, -0.1908639818, -0.7238461375, 0.0598113537, -0.4783248901, -0.2568793595, 0.5058496594, -0.0741571784, 0.1018313169, 0.3911999762, -0.0939413384, 0.2525465488, 0.1857645661, 0.2951029837, -0.2620004714, -0.2589086294, 0.4163453579, 0.2090040743, -0.1786014885, -0.4936587512, -0.0105338339, 0.0426238328, -0.0922617167, -0.1824913621, 0.041756209, 0.1412571967, 0.3790923059, 0.1933656782, 0.0584115982, 0.7760936618, -0.0257241745, -0.064801611, -0.0789827853, -0.6323979497, -0.0542362407, 0.0605210103, 0.0649564937, 0.1296194792, -0.1022136658, -0.1126851588, -0.382473141, 0.3061403334, -0.125575617, -0.1483522356, -0.2318835706, -0.0043637948, -0.0508505888, -0.0628497005, -0.0281333644, 0.0610886551, 0.1224481612, 0.3552178144, -0.1259650737, -0.2262785733, 0.3989255726, -0.0534628257, -0.4505839348, 0.0725823194, -0.1192310676, 0.3350655735, -0.2118575126, -0.4614247084, 0.1921404898, 0.2282824218, -0.1450063884, -0.3645921052, 0.0354045182, 0.1440640837, 0.1055091098, -0.1191353351, 0.6080467105, 0.0068141865, -0.1588617563, 0.1072710901, -0.1721354574 ]
https://github.com/huggingface/datasets/issues/2061
Cannot load udpos subsets from xtreme dataset using load_dataset()
I tried fixing this issue, but its working fine in the dev version : "1.6.2.dev0" I think somebody already fixed it.
Hello, I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error. Reprex is: `from datasets import load_dataset ` `dataset = load_dataset('xtreme', 'udpos.English')` The error is: `KeyError: '_'` The full traceback is: KeyError Traceback (most recent call last) <ipython-input-5-7181359ea09d> in <module> 1 from datasets import load_dataset ----> 2 dataset = load_dataset('xtreme', 'udpos.English') ~\Anaconda3\envs\mlenv\lib\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, **config_kwargs) 738 739 # Download and prepare data --> 740 builder_instance.download_and_prepare( 741 download_config=download_config, 742 download_mode=download_mode, ~\Anaconda3\envs\mlenv\lib\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) 576 logger.warning("HF google storage unreachable. Downloading and preparing it from source") 577 if not downloaded_from_gcs: --> 578 self._download_and_prepare( 579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 580 ) ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 654 try: 655 # Prepare split will record examples associated to the split --> 656 self._prepare_split(split_generator, **prepare_split_kwargs) 657 except OSError as e: 658 raise OSError( ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator) 977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose 978 ): --> 979 example = self.info.features.encode_example(record) 980 writer.write(example) 981 finally: ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example) 946 def encode_example(self, example): 947 example = cast_to_python_objects(example) --> 948 return encode_nested_example(self, example) 949 950 def encode_batch(self, batch): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 840 # Nested structures: we allow dict, list/tuples, sequences 841 if isinstance(schema, dict): --> 842 return { 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0) 841 if isinstance(schema, dict): 842 return { --> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } 845 elif isinstance(schema, (list, tuple)): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks 869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)): --> 870 return schema.encode_example(obj) 871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation) 872 return obj ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data) 647 # If a string is given, convert to associated integer 648 if isinstance(example_data, str): --> 649 example_data = self.str2int(example_data) 650 651 # Allowing -1 to mean no label. ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values) 605 if value not in self._str2int: 606 value = value.strip() --> 607 output.append(self._str2int[str(value)]) 608 else: 609 # No names provided, try to integerize KeyError: '_'
21
Cannot load udpos subsets from xtreme dataset using load_dataset() Hello, I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error. Reprex is: `from datasets import load_dataset ` `dataset = load_dataset('xtreme', 'udpos.English')` The error is: `KeyError: '_'` The full traceback is: KeyError Traceback (most recent call last) <ipython-input-5-7181359ea09d> in <module> 1 from datasets import load_dataset ----> 2 dataset = load_dataset('xtreme', 'udpos.English') ~\Anaconda3\envs\mlenv\lib\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, **config_kwargs) 738 739 # Download and prepare data --> 740 builder_instance.download_and_prepare( 741 download_config=download_config, 742 download_mode=download_mode, ~\Anaconda3\envs\mlenv\lib\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) 576 logger.warning("HF google storage unreachable. Downloading and preparing it from source") 577 if not downloaded_from_gcs: --> 578 self._download_and_prepare( 579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 580 ) ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 654 try: 655 # Prepare split will record examples associated to the split --> 656 self._prepare_split(split_generator, **prepare_split_kwargs) 657 except OSError as e: 658 raise OSError( ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator) 977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose 978 ): --> 979 example = self.info.features.encode_example(record) 980 writer.write(example) 981 finally: ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example) 946 def encode_example(self, example): 947 example = cast_to_python_objects(example) --> 948 return encode_nested_example(self, example) 949 950 def encode_batch(self, batch): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 840 # Nested structures: we allow dict, list/tuples, sequences 841 if isinstance(schema, dict): --> 842 return { 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0) 841 if isinstance(schema, dict): 842 return { --> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } 845 elif isinstance(schema, (list, tuple)): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks 869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)): --> 870 return schema.encode_example(obj) 871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation) 872 return obj ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data) 647 # If a string is given, convert to associated integer 648 if isinstance(example_data, str): --> 649 example_data = self.str2int(example_data) 650 651 # Allowing -1 to mean no label. ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values) 605 if value not in self._str2int: 606 value = value.strip() --> 607 output.append(self._str2int[str(value)]) 608 else: 609 # No names provided, try to integerize KeyError: '_' I tried fixing this issue, but its working fine in the dev version : "1.6.2.dev0" I think somebody already fixed it.
[ -0.3464029729, -0.0752864107, 0.0026137996, 0.4443908632, 0.3713297844, 0.0691191331, 0.2405687869, 0.039475292, 0.5101771951, 0.206124723, -0.3589057028, 0.0527048111, 0.0860962719, 0.080866091, 0.1144125089, -0.3151046634, -0.0602491498, 0.0173559412, -0.2503676713, -0.0655043945, -0.4105170965, -0.0623263903, -0.3046582937, 0.109542951, -0.1711033434, 0.2064576298, 0.0141452076, 0.1647337079, -0.3150222003, -0.4950222075, 0.5633594394, 0.0180329736, 0.5800750852, 0.2213219702, -0.0001253432, 0.1060387269, 0.486179471, -0.0613057949, -0.3452347219, -0.4049577415, -0.4189882278, -0.1315973401, -0.069061473, -0.0964654461, 0.1045275405, -0.004399125, -0.0823344886, -0.2585622966, 0.332103461, 0.3678756654, 0.0941703394, 0.3720285892, 0.0618577898, -0.2211653739, 0.4757199585, -0.0422707014, -0.1489076614, 0.1563740075, 0.4271000922, -0.3246813715, 0.180144757, 0.1246251613, -0.2091396004, 0.2249169499, -0.1637179554, 0.0560059808, 0.1821351349, -0.2583509982, 0.239124611, 0.1349652261, 0.8412335515, -0.1512388289, -0.4147815406, 0.0182389952, -0.1014062688, -0.3554824293, 0.1830142885, 0.0008576416, -0.0578870177, 0.0788415223, -0.0767999664, -0.0602421127, 0.0503758639, 0.2890726328, -0.1434575766, 0.2910362482, 0.0541207418, 0.1338609159, 0.3239515424, -0.108920604, 0.4901400208, 0.0979423672, -0.0730720088, 0.2410603017, -0.3231166899, 0.2865315676, -0.0756046847, -0.3037874699, 0.2389639467, -0.1045977324, -0.1012069285, 0.0039556967, -0.1443648636, 0.3295550346, 0.4467023909, 0.2585929632, 0.361431092, 0.2899974287, 0.1072539017, 0.15876849, -0.0565734431, -0.063386701, -0.4474608302, -0.2160627395, 0.085792169, -0.0271295682, 0.1571703255, -0.4506186545, -0.5827978849, 0.0448344946, -0.1629017442, -0.2178838402, 0.0583498739, 0.2688896954, 0.1545640081, 0.42977947, 0.0458622091, 0.445841223, -0.4962794483, -0.2659803331, -0.0544240251, 0.1687628478, -0.4189638197, 0.0585134663, 0.1439428329, 0.0052871499, 0.2148581147, 0.016775785, 0.265674293, -0.2452535629, 0.1288290024, -0.2358860821, -0.2444214076, 0.3540512323, 0.3105243146, 0.1218975484, 0.2711304128, -0.374676317, -0.078598626, 0.2891557813, -0.2225111425, -0.2350119054, 0.0909440592, 0.0328549221, -0.1796908379, 0.0550206564, -1.0357829332, -0.0764579847, 0.0851031318, 0.1069331467, -0.0155086471, -0.2755294442, -0.1712110937, 0.0025956102, 0.2848057449, 0.5355799198, -0.286871314, -0.0464064628, -0.1408399791, -0.0400896147, 0.3355932534, 0.3613088727, -0.3357944191, 0.0737548098, -0.1279850304, 0.1057114452, 0.1982141584, -0.5150757432, -0.4803657234, 0.1640978158, 0.0509281307, -0.0161879752, -0.0857606605, -0.3274518847, 0.2393181473, 0.0357203558, 0.1953127235, 0.2589242458, 0.0580974594, -0.0908875316, -0.1751015335, -0.098595202, 0.1361132413, 0.4271917641, 0.2911245227, 0.1453996599, 0.26148808, 0.4392364025, 0.0436220802, 0.0165756661, 0.0131825525, 0.3216634095, 0.0333599597, 0.0902009755, 0.0362410285, -0.0593441315, -0.4222897589, 0.2021974772, -0.09310022, -0.0453705378, 0.0975538418, 0.1812405884, -0.38971138, 0.1230221242, -0.3247449398, -0.3197048306, -0.0942891389, 0.086603485, -0.0964133963, -0.0818081796, -0.16979976, 0.0806678832, -0.0715483949, 0.1103203744, -0.3754512966, 0.4191192389, 0.0495780446, -0.0648902729, 0.0807240382, 0.2062999755, 0.2299800813, -0.1260799468, -0.1753812879, 0.1877421439, 0.6032564044, -0.1791828275, 0.1357363164, -0.0441037863, 0.3042582572, -0.3885694742, 0.1962028295, -0.0273815431, 0.1187217981, 0.1130648404, 0.0598305427, 0.2541895509, -0.0359746665, 0.1840638369, -0.1281906366, 0.1224724203, 0.387426585, 0.0022266798, 0.0613593459, -0.2924954593, 0.5102491975, 0.3250294626, 0.3184417784, 0.0524793305, -0.1459860951, -0.2242727429, -0.1109304279, -0.1516298056, 0.081671752, 0.1515698582, -0.2236989141, 0.0444756337, 0.2037225068, 0.2373356372, 0.3294335008, 0.0214672405, 0.0758468881, -0.0468032658, 0.0237630494, 0.0701772198, -0.0097976709, -0.071817033, -0.101575613, 0.0644408762, 0.000836264, -0.2057576478, -0.2248117179, 0.0729395226, 0.2377971262, 0.4230693877, -0.3003164232, 0.0473219268, -0.423178345, -0.159529373, 0.138996616, -0.0802794099, -0.0387310348, -0.1483370811, -0.3189131021, 0.2778150141, 0.3382664621, 0.1288224906, 0.1079095677, -0.2398624718, -0.0247332174, -0.2022272795, 0.1674777269, -0.1916830391, -0.1363241225, -0.1142770797, 0.2343533635, 0.1731063724, 0.0974103212, -0.340833962, -0.0454135984, -0.2319971919, -0.0555947833, 0.2320310324, -0.0026649991, 0.3095871508, -0.0770003796, 0.1424633414, -0.3586758077, 0.0364723913, 0.3661396205, 0.0212174486, -0.1678797454, 0.2677277923, -0.0123520643, -0.125105083, 0.0236815643, -0.1473121047, -0.2998107076, -0.2093852162, 0.0171215218, 0.0482659265, 0.0239051934, -0.047115624, 0.039598681, 0.0380501524, 0.1774883717, -0.1749292016, -0.3403438628, -0.4319576621, 0.4691959023, -0.271025151, -0.247500658, 0.0816969648, 0.0473559648, 0.2014109492, 0.3418829441, -0.4603406787, -0.0737867281, -0.1173924655, 0.1646254957, 0.0758612454, 0.1864937991, 0.0469671898, -0.1311486959, 0.1585201323, -0.0770412758, -0.3395669162, -0.1058106497, 0.2425632477, 0.2578388453, -0.1052169129, 0.4483573437, -0.2508383691, 0.2393936068, -0.0129459016, 0.2891103625, 0.5426399708, -0.0893334076, 0.1529129446, -0.3217939734, -0.3143524826, -0.0997116566, -0.194875285, -0.1389903128, 0.0483570993, 0.0269653145, -0.1491458118, -0.2706748545, -0.0529084578, -0.0879612043, -0.1746995747, -0.0553431213, -0.0693780482, 0.3293853998, -0.0504936427, 0.2791501284, 0.0136174001, -0.0404188856, -0.1539395303, 0.2246424109, 0.1235999689, 0.2225520015, -0.3244821429, 0.1071843728, -0.2705762982, 0.3529712856, -0.0407875441, 0.7153815031, -0.1447266638, 0.3261329234, 0.1128169745, 0.0381266177, 0.1055566594, -0.2915965319, 0.1107804999, 0.0259102602, -0.4394386113, -0.0571814589, -0.0327194147, -0.0487925746, -0.0640702695, -0.0291913897, 0.2615405619, -0.2473839819, -0.1046054587, -0.0212868135, 0.304867208, -0.0421136282, -0.2426180094, -0.3949684203, -0.5412185788, -0.4392505884, -0.1890491545, 0.1465299428, 0.1577129364, -0.0798722059, 0.2045397013, -0.1588290185, 0.1053305417, 0.2242291868, 0.084091872, 0.2725594342, -0.0330146067, 0.1534873843, 0.2682334483, -0.1665602475, 0.7140191197, 0.7792876959, -0.1654728353, -0.3519223034, 0.2531234324, -0.0765694827, 0.0217689108, -0.0563550666, -0.0262790825, 0.0473598763, -0.1993345469, -0.1701830477, -0.0464215241, 0.1983216554, 0.1967192441, 0.1544235796, -0.292884171, -0.7532662749, 0.5231233835, 0.0733509809, 0.1194914803, 0.2948040962, -0.0994659662, -0.18771106, 0.2691774666, 0.1097404882, 0.7309183478, -0.4024431407, 0.06639985, 0.1255256236, 0.0390538871, 0.0969470516, -0.0389396697, -0.2549374998, -0.1899639815, -0.2134167999, -0.1464364976, -0.1630651951, 0.281514734, 0.1523413211, -0.0743446276, 0.2819462121, -0.1734498441, -0.0285562761, 0.2377475649, 0.1179538444, -0.0852731839, -0.334666729, -0.5701626539, 0.0695261657, -0.1744921654, 0.2196644098, -0.0229282267, 0.0446260795, -0.077089116, -0.0558211952, -0.3917289376, 0.3648404777, -0.2748181522, 0.3384895027, -0.1301482767, -0.3494688869, 0.1892337501, 0.45077461, 0.2284569293, 0.1401095837, -0.1527666748, 0.0742595494, 0.2642702758, -0.2523836792, -0.0304526724, -0.1002173498, -0.0693552196, -0.023043206, -0.2731992602, 0.1419650167, -0.0702478066, -0.2247542143, -0.074293904, 0.1391914189, 0.0287418999, -0.0994306281, -0.3413546681, -0.0718903914, 0.0351184793, -0.1643305868, -0.0067223581, 0.2091259658, -0.093980886, 0.0110956328, 0.0571488477, -0.3362407982, 0.0208260752, 0.4598704576, -0.0671362579, -0.103542164, 0.5126203299, 0.2207633555, -0.205333665, -0.1291892231, 0.2668742537, 0.3432771862, -0.2435238659, 0.0247938335, -0.1015286222, 0.1226387694, 0.0169647392, 0.0190838035, 0.2321759909, -0.3506093323, 0.3566074669, -0.5912507772, -0.3739058971, 0.1904153824, -0.1842524111, 0.0209103134, -0.0230075009, 0.0114092045, -0.1538709551, -0.0855404884, -0.1131537035, 0.1104642376, -0.3555294871, 0.0531755574, 0.2333113849, -0.003837696, 0.0266176872, -0.1702208519, 0.0084074559, 0.1382464468, 0.0358453169, -0.0385316461, -0.182315588, 0.214209795, 0.1291016489, -0.3466270268, 0.0095422352, -0.2173160613, -0.0406778418, -0.1456344426, 0.1752341539, 0.4642309546, -0.0508854985, 0.1162914559, 0.2020449787, 0.1192642525, -0.3610049486, 0.3773375452, -0.0597466268, 0.2192406058, 0.1052808836, 0.199685514, 0.2261882275, 0.1284534931, -0.2986389101, -0.0918606743, 0.2543622851, -0.0207492746, 0.2784875631, -0.4246550202, 0.3846978247, 0.0934022143, 0.1392693371, 0.4423635304, -0.270870626, 0.0668305233, 0.322624445, 0.0277719833, -0.2396786064, -0.1068027169, 0.1143148094, 0.0567224622, -0.1326248795, 0.3174368143, 0.3981635869, 0.0658837482, -0.140583396, 0.036622677, 0.0629205778, -0.1436381638, 0.0519926436, 0.6180885434, 0.0182582662, 0.2121531665, 0.0627512187, 0.2251057774, -0.0261532739, 0.333124727, -0.1577174217, 0.4461425245, 0.2134561986, 0.1908594519, -0.3277814984, -0.5346596837, -0.1699689031, 0.3204802573, 0.0944016427, -0.0257125199, -0.208639577, 0.242264688, -0.1822713464, 0.1587974131, -0.06975618, 0.1305376291, -0.034036126, -0.1838853508, -0.1329223663, -0.152082473, -0.5502747893, 0.1870927215, -0.2470206916, -0.1265385449, 0.1939037591, 0.1568963826, -0.1329802126, -0.3558677435, -0.0509608798, 0.3773247004, -0.3437858522, -0.3400720954, 0.3964486122, 0.0177267808, 0.0172701962, 0.24953188, 0.1393800229, 0.3306983709, 0.4204998612, -0.3608881533, -0.1154858023, 0.0613389537, 0.0774013028, 0.0765653476, 0.197931394, 0.0195523556, 0.2065381855, 0.3709864616, -0.011409834, -0.0139406845, -0.0316574983, 0.1572707891, -0.2297264785, -0.0879768357, 0.2299748063, -0.0481606945, 0.1998766512, -0.1176378503, 0.0245098863, -0.2423741519, 0.0217858609, 0.5751786232, 0.0103394017, 0.1068289727, 0.0592917576, -0.0527461916, -0.1844877005, 0.3957373202, 0.6384897232, 0.3486225903, -0.4021954834, -0.1908639818, -0.7238461375, 0.0598113537, -0.4783248901, -0.2568793595, 0.5058496594, -0.0741571784, 0.1018313169, 0.3911999762, -0.0939413384, 0.2525465488, 0.1857645661, 0.2951029837, -0.2620004714, -0.2589086294, 0.4163453579, 0.2090040743, -0.1786014885, -0.4936587512, -0.0105338339, 0.0426238328, -0.0922617167, -0.1824913621, 0.041756209, 0.1412571967, 0.3790923059, 0.1933656782, 0.0584115982, 0.7760936618, -0.0257241745, -0.064801611, -0.0789827853, -0.6323979497, -0.0542362407, 0.0605210103, 0.0649564937, 0.1296194792, -0.1022136658, -0.1126851588, -0.382473141, 0.3061403334, -0.125575617, -0.1483522356, -0.2318835706, -0.0043637948, -0.0508505888, -0.0628497005, -0.0281333644, 0.0610886551, 0.1224481612, 0.3552178144, -0.1259650737, -0.2262785733, 0.3989255726, -0.0534628257, -0.4505839348, 0.0725823194, -0.1192310676, 0.3350655735, -0.2118575126, -0.4614247084, 0.1921404898, 0.2282824218, -0.1450063884, -0.3645921052, 0.0354045182, 0.1440640837, 0.1055091098, -0.1191353351, 0.6080467105, 0.0068141865, -0.1588617563, 0.1072710901, -0.1721354574 ]
https://github.com/huggingface/datasets/issues/2061
Cannot load udpos subsets from xtreme dataset using load_dataset()
Hi, after #2326, the lines with pos tags equal to `"_"` are filtered out when generating the dataset, so this fixes the KeyError described above. However, the udpos subset should be in the conll format i.e. it should yield sequences of tokens and not single tokens, so it would be great to see this fixed (feel free to borrow the logic from [here](https://github.com/google-research/xtreme/blob/58a76a0d02458c4b3b6a742d3fd4ffaca80ff0de/utils_preprocess.py#L187-L204) if you decide to work on this).
Hello, I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error. Reprex is: `from datasets import load_dataset ` `dataset = load_dataset('xtreme', 'udpos.English')` The error is: `KeyError: '_'` The full traceback is: KeyError Traceback (most recent call last) <ipython-input-5-7181359ea09d> in <module> 1 from datasets import load_dataset ----> 2 dataset = load_dataset('xtreme', 'udpos.English') ~\Anaconda3\envs\mlenv\lib\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, **config_kwargs) 738 739 # Download and prepare data --> 740 builder_instance.download_and_prepare( 741 download_config=download_config, 742 download_mode=download_mode, ~\Anaconda3\envs\mlenv\lib\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) 576 logger.warning("HF google storage unreachable. Downloading and preparing it from source") 577 if not downloaded_from_gcs: --> 578 self._download_and_prepare( 579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 580 ) ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 654 try: 655 # Prepare split will record examples associated to the split --> 656 self._prepare_split(split_generator, **prepare_split_kwargs) 657 except OSError as e: 658 raise OSError( ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator) 977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose 978 ): --> 979 example = self.info.features.encode_example(record) 980 writer.write(example) 981 finally: ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example) 946 def encode_example(self, example): 947 example = cast_to_python_objects(example) --> 948 return encode_nested_example(self, example) 949 950 def encode_batch(self, batch): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 840 # Nested structures: we allow dict, list/tuples, sequences 841 if isinstance(schema, dict): --> 842 return { 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0) 841 if isinstance(schema, dict): 842 return { --> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } 845 elif isinstance(schema, (list, tuple)): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks 869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)): --> 870 return schema.encode_example(obj) 871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation) 872 return obj ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data) 647 # If a string is given, convert to associated integer 648 if isinstance(example_data, str): --> 649 example_data = self.str2int(example_data) 650 651 # Allowing -1 to mean no label. ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values) 605 if value not in self._str2int: 606 value = value.strip() --> 607 output.append(self._str2int[str(value)]) 608 else: 609 # No names provided, try to integerize KeyError: '_'
70
Cannot load udpos subsets from xtreme dataset using load_dataset() Hello, I am trying to load the udpos English subset from xtreme dataset, but this faces an error during loading. I am using datasets v1.4.1, pip install. I have tried with other udpos languages which also fail, though loading a different subset altogether (such as XNLI) has no issue. I have also tried on Colab and faced the same error. Reprex is: `from datasets import load_dataset ` `dataset = load_dataset('xtreme', 'udpos.English')` The error is: `KeyError: '_'` The full traceback is: KeyError Traceback (most recent call last) <ipython-input-5-7181359ea09d> in <module> 1 from datasets import load_dataset ----> 2 dataset = load_dataset('xtreme', 'udpos.English') ~\Anaconda3\envs\mlenv\lib\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, **config_kwargs) 738 739 # Download and prepare data --> 740 builder_instance.download_and_prepare( 741 download_config=download_config, 742 download_mode=download_mode, ~\Anaconda3\envs\mlenv\lib\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) 576 logger.warning("HF google storage unreachable. Downloading and preparing it from source") 577 if not downloaded_from_gcs: --> 578 self._download_and_prepare( 579 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 580 ) ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 654 try: 655 # Prepare split will record examples associated to the split --> 656 self._prepare_split(split_generator, **prepare_split_kwargs) 657 except OSError as e: 658 raise OSError( ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\builder.py in _prepare_split(self, split_generator) 977 generator, unit=" examples", total=split_info.num_examples, leave=False, disable=not_verbose 978 ): --> 979 example = self.info.features.encode_example(record) 980 writer.write(example) 981 finally: ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example) 946 def encode_example(self, example): 947 example = cast_to_python_objects(example) --> 948 return encode_nested_example(self, example) 949 950 def encode_batch(self, batch): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 840 # Nested structures: we allow dict, list/tuples, sequences 841 if isinstance(schema, dict): --> 842 return { 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in <dictcomp>(.0) 841 if isinstance(schema, dict): 842 return { --> 843 k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj) 844 } 845 elif isinstance(schema, (list, tuple)): ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_nested_example(schema, obj) 868 # ClassLabel will convert from string to int, TranslationVariableLanguages does some checks 869 elif isinstance(schema, (ClassLabel, TranslationVariableLanguages, Value, _ArrayXD)): --> 870 return schema.encode_example(obj) 871 # Other object should be directly convertible to a native Arrow type (like Translation and Translation) 872 return obj ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in encode_example(self, example_data) 647 # If a string is given, convert to associated integer 648 if isinstance(example_data, str): --> 649 example_data = self.str2int(example_data) 650 651 # Allowing -1 to mean no label. ~\Anaconda3\envs\mlenv\lib\site-packages\datasets\features.py in str2int(self, values) 605 if value not in self._str2int: 606 value = value.strip() --> 607 output.append(self._str2int[str(value)]) 608 else: 609 # No names provided, try to integerize KeyError: '_' Hi, after #2326, the lines with pos tags equal to `"_"` are filtered out when generating the dataset, so this fixes the KeyError described above. However, the udpos subset should be in the conll format i.e. it should yield sequences of tokens and not single tokens, so it would be great to see this fixed (feel free to borrow the logic from [here](https://github.com/google-research/xtreme/blob/58a76a0d02458c4b3b6a742d3fd4ffaca80ff0de/utils_preprocess.py#L187-L204) if you decide to work on this).
[ -0.3464029729, -0.0752864107, 0.0026137996, 0.4443908632, 0.3713297844, 0.0691191331, 0.2405687869, 0.039475292, 0.5101771951, 0.206124723, -0.3589057028, 0.0527048111, 0.0860962719, 0.080866091, 0.1144125089, -0.3151046634, -0.0602491498, 0.0173559412, -0.2503676713, -0.0655043945, -0.4105170965, -0.0623263903, -0.3046582937, 0.109542951, -0.1711033434, 0.2064576298, 0.0141452076, 0.1647337079, -0.3150222003, -0.4950222075, 0.5633594394, 0.0180329736, 0.5800750852, 0.2213219702, -0.0001253432, 0.1060387269, 0.486179471, -0.0613057949, -0.3452347219, -0.4049577415, -0.4189882278, -0.1315973401, -0.069061473, -0.0964654461, 0.1045275405, -0.004399125, -0.0823344886, -0.2585622966, 0.332103461, 0.3678756654, 0.0941703394, 0.3720285892, 0.0618577898, -0.2211653739, 0.4757199585, -0.0422707014, -0.1489076614, 0.1563740075, 0.4271000922, -0.3246813715, 0.180144757, 0.1246251613, -0.2091396004, 0.2249169499, -0.1637179554, 0.0560059808, 0.1821351349, -0.2583509982, 0.239124611, 0.1349652261, 0.8412335515, -0.1512388289, -0.4147815406, 0.0182389952, -0.1014062688, -0.3554824293, 0.1830142885, 0.0008576416, -0.0578870177, 0.0788415223, -0.0767999664, -0.0602421127, 0.0503758639, 0.2890726328, -0.1434575766, 0.2910362482, 0.0541207418, 0.1338609159, 0.3239515424, -0.108920604, 0.4901400208, 0.0979423672, -0.0730720088, 0.2410603017, -0.3231166899, 0.2865315676, -0.0756046847, -0.3037874699, 0.2389639467, -0.1045977324, -0.1012069285, 0.0039556967, -0.1443648636, 0.3295550346, 0.4467023909, 0.2585929632, 0.361431092, 0.2899974287, 0.1072539017, 0.15876849, -0.0565734431, -0.063386701, -0.4474608302, -0.2160627395, 0.085792169, -0.0271295682, 0.1571703255, -0.4506186545, -0.5827978849, 0.0448344946, -0.1629017442, -0.2178838402, 0.0583498739, 0.2688896954, 0.1545640081, 0.42977947, 0.0458622091, 0.445841223, -0.4962794483, -0.2659803331, -0.0544240251, 0.1687628478, -0.4189638197, 0.0585134663, 0.1439428329, 0.0052871499, 0.2148581147, 0.016775785, 0.265674293, -0.2452535629, 0.1288290024, -0.2358860821, -0.2444214076, 0.3540512323, 0.3105243146, 0.1218975484, 0.2711304128, -0.374676317, -0.078598626, 0.2891557813, -0.2225111425, -0.2350119054, 0.0909440592, 0.0328549221, -0.1796908379, 0.0550206564, -1.0357829332, -0.0764579847, 0.0851031318, 0.1069331467, -0.0155086471, -0.2755294442, -0.1712110937, 0.0025956102, 0.2848057449, 0.5355799198, -0.286871314, -0.0464064628, -0.1408399791, -0.0400896147, 0.3355932534, 0.3613088727, -0.3357944191, 0.0737548098, -0.1279850304, 0.1057114452, 0.1982141584, -0.5150757432, -0.4803657234, 0.1640978158, 0.0509281307, -0.0161879752, -0.0857606605, -0.3274518847, 0.2393181473, 0.0357203558, 0.1953127235, 0.2589242458, 0.0580974594, -0.0908875316, -0.1751015335, -0.098595202, 0.1361132413, 0.4271917641, 0.2911245227, 0.1453996599, 0.26148808, 0.4392364025, 0.0436220802, 0.0165756661, 0.0131825525, 0.3216634095, 0.0333599597, 0.0902009755, 0.0362410285, -0.0593441315, -0.4222897589, 0.2021974772, -0.09310022, -0.0453705378, 0.0975538418, 0.1812405884, -0.38971138, 0.1230221242, -0.3247449398, -0.3197048306, -0.0942891389, 0.086603485, -0.0964133963, -0.0818081796, -0.16979976, 0.0806678832, -0.0715483949, 0.1103203744, -0.3754512966, 0.4191192389, 0.0495780446, -0.0648902729, 0.0807240382, 0.2062999755, 0.2299800813, -0.1260799468, -0.1753812879, 0.1877421439, 0.6032564044, -0.1791828275, 0.1357363164, -0.0441037863, 0.3042582572, -0.3885694742, 0.1962028295, -0.0273815431, 0.1187217981, 0.1130648404, 0.0598305427, 0.2541895509, -0.0359746665, 0.1840638369, -0.1281906366, 0.1224724203, 0.387426585, 0.0022266798, 0.0613593459, -0.2924954593, 0.5102491975, 0.3250294626, 0.3184417784, 0.0524793305, -0.1459860951, -0.2242727429, -0.1109304279, -0.1516298056, 0.081671752, 0.1515698582, -0.2236989141, 0.0444756337, 0.2037225068, 0.2373356372, 0.3294335008, 0.0214672405, 0.0758468881, -0.0468032658, 0.0237630494, 0.0701772198, -0.0097976709, -0.071817033, -0.101575613, 0.0644408762, 0.000836264, -0.2057576478, -0.2248117179, 0.0729395226, 0.2377971262, 0.4230693877, -0.3003164232, 0.0473219268, -0.423178345, -0.159529373, 0.138996616, -0.0802794099, -0.0387310348, -0.1483370811, -0.3189131021, 0.2778150141, 0.3382664621, 0.1288224906, 0.1079095677, -0.2398624718, -0.0247332174, -0.2022272795, 0.1674777269, -0.1916830391, -0.1363241225, -0.1142770797, 0.2343533635, 0.1731063724, 0.0974103212, -0.340833962, -0.0454135984, -0.2319971919, -0.0555947833, 0.2320310324, -0.0026649991, 0.3095871508, -0.0770003796, 0.1424633414, -0.3586758077, 0.0364723913, 0.3661396205, 0.0212174486, -0.1678797454, 0.2677277923, -0.0123520643, -0.125105083, 0.0236815643, -0.1473121047, -0.2998107076, -0.2093852162, 0.0171215218, 0.0482659265, 0.0239051934, -0.047115624, 0.039598681, 0.0380501524, 0.1774883717, -0.1749292016, -0.3403438628, -0.4319576621, 0.4691959023, -0.271025151, -0.247500658, 0.0816969648, 0.0473559648, 0.2014109492, 0.3418829441, -0.4603406787, -0.0737867281, -0.1173924655, 0.1646254957, 0.0758612454, 0.1864937991, 0.0469671898, -0.1311486959, 0.1585201323, -0.0770412758, -0.3395669162, -0.1058106497, 0.2425632477, 0.2578388453, -0.1052169129, 0.4483573437, -0.2508383691, 0.2393936068, -0.0129459016, 0.2891103625, 0.5426399708, -0.0893334076, 0.1529129446, -0.3217939734, -0.3143524826, -0.0997116566, -0.194875285, -0.1389903128, 0.0483570993, 0.0269653145, -0.1491458118, -0.2706748545, -0.0529084578, -0.0879612043, -0.1746995747, -0.0553431213, -0.0693780482, 0.3293853998, -0.0504936427, 0.2791501284, 0.0136174001, -0.0404188856, -0.1539395303, 0.2246424109, 0.1235999689, 0.2225520015, -0.3244821429, 0.1071843728, -0.2705762982, 0.3529712856, -0.0407875441, 0.7153815031, -0.1447266638, 0.3261329234, 0.1128169745, 0.0381266177, 0.1055566594, -0.2915965319, 0.1107804999, 0.0259102602, -0.4394386113, -0.0571814589, -0.0327194147, -0.0487925746, -0.0640702695, -0.0291913897, 0.2615405619, -0.2473839819, -0.1046054587, -0.0212868135, 0.304867208, -0.0421136282, -0.2426180094, -0.3949684203, -0.5412185788, -0.4392505884, -0.1890491545, 0.1465299428, 0.1577129364, -0.0798722059, 0.2045397013, -0.1588290185, 0.1053305417, 0.2242291868, 0.084091872, 0.2725594342, -0.0330146067, 0.1534873843, 0.2682334483, -0.1665602475, 0.7140191197, 0.7792876959, -0.1654728353, -0.3519223034, 0.2531234324, -0.0765694827, 0.0217689108, -0.0563550666, -0.0262790825, 0.0473598763, -0.1993345469, -0.1701830477, -0.0464215241, 0.1983216554, 0.1967192441, 0.1544235796, -0.292884171, -0.7532662749, 0.5231233835, 0.0733509809, 0.1194914803, 0.2948040962, -0.0994659662, -0.18771106, 0.2691774666, 0.1097404882, 0.7309183478, -0.4024431407, 0.06639985, 0.1255256236, 0.0390538871, 0.0969470516, -0.0389396697, -0.2549374998, -0.1899639815, -0.2134167999, -0.1464364976, -0.1630651951, 0.281514734, 0.1523413211, -0.0743446276, 0.2819462121, -0.1734498441, -0.0285562761, 0.2377475649, 0.1179538444, -0.0852731839, -0.334666729, -0.5701626539, 0.0695261657, -0.1744921654, 0.2196644098, -0.0229282267, 0.0446260795, -0.077089116, -0.0558211952, -0.3917289376, 0.3648404777, -0.2748181522, 0.3384895027, -0.1301482767, -0.3494688869, 0.1892337501, 0.45077461, 0.2284569293, 0.1401095837, -0.1527666748, 0.0742595494, 0.2642702758, -0.2523836792, -0.0304526724, -0.1002173498, -0.0693552196, -0.023043206, -0.2731992602, 0.1419650167, -0.0702478066, -0.2247542143, -0.074293904, 0.1391914189, 0.0287418999, -0.0994306281, -0.3413546681, -0.0718903914, 0.0351184793, -0.1643305868, -0.0067223581, 0.2091259658, -0.093980886, 0.0110956328, 0.0571488477, -0.3362407982, 0.0208260752, 0.4598704576, -0.0671362579, -0.103542164, 0.5126203299, 0.2207633555, -0.205333665, -0.1291892231, 0.2668742537, 0.3432771862, -0.2435238659, 0.0247938335, -0.1015286222, 0.1226387694, 0.0169647392, 0.0190838035, 0.2321759909, -0.3506093323, 0.3566074669, -0.5912507772, -0.3739058971, 0.1904153824, -0.1842524111, 0.0209103134, -0.0230075009, 0.0114092045, -0.1538709551, -0.0855404884, -0.1131537035, 0.1104642376, -0.3555294871, 0.0531755574, 0.2333113849, -0.003837696, 0.0266176872, -0.1702208519, 0.0084074559, 0.1382464468, 0.0358453169, -0.0385316461, -0.182315588, 0.214209795, 0.1291016489, -0.3466270268, 0.0095422352, -0.2173160613, -0.0406778418, -0.1456344426, 0.1752341539, 0.4642309546, -0.0508854985, 0.1162914559, 0.2020449787, 0.1192642525, -0.3610049486, 0.3773375452, -0.0597466268, 0.2192406058, 0.1052808836, 0.199685514, 0.2261882275, 0.1284534931, -0.2986389101, -0.0918606743, 0.2543622851, -0.0207492746, 0.2784875631, -0.4246550202, 0.3846978247, 0.0934022143, 0.1392693371, 0.4423635304, -0.270870626, 0.0668305233, 0.322624445, 0.0277719833, -0.2396786064, -0.1068027169, 0.1143148094, 0.0567224622, -0.1326248795, 0.3174368143, 0.3981635869, 0.0658837482, -0.140583396, 0.036622677, 0.0629205778, -0.1436381638, 0.0519926436, 0.6180885434, 0.0182582662, 0.2121531665, 0.0627512187, 0.2251057774, -0.0261532739, 0.333124727, -0.1577174217, 0.4461425245, 0.2134561986, 0.1908594519, -0.3277814984, -0.5346596837, -0.1699689031, 0.3204802573, 0.0944016427, -0.0257125199, -0.208639577, 0.242264688, -0.1822713464, 0.1587974131, -0.06975618, 0.1305376291, -0.034036126, -0.1838853508, -0.1329223663, -0.152082473, -0.5502747893, 0.1870927215, -0.2470206916, -0.1265385449, 0.1939037591, 0.1568963826, -0.1329802126, -0.3558677435, -0.0509608798, 0.3773247004, -0.3437858522, -0.3400720954, 0.3964486122, 0.0177267808, 0.0172701962, 0.24953188, 0.1393800229, 0.3306983709, 0.4204998612, -0.3608881533, -0.1154858023, 0.0613389537, 0.0774013028, 0.0765653476, 0.197931394, 0.0195523556, 0.2065381855, 0.3709864616, -0.011409834, -0.0139406845, -0.0316574983, 0.1572707891, -0.2297264785, -0.0879768357, 0.2299748063, -0.0481606945, 0.1998766512, -0.1176378503, 0.0245098863, -0.2423741519, 0.0217858609, 0.5751786232, 0.0103394017, 0.1068289727, 0.0592917576, -0.0527461916, -0.1844877005, 0.3957373202, 0.6384897232, 0.3486225903, -0.4021954834, -0.1908639818, -0.7238461375, 0.0598113537, -0.4783248901, -0.2568793595, 0.5058496594, -0.0741571784, 0.1018313169, 0.3911999762, -0.0939413384, 0.2525465488, 0.1857645661, 0.2951029837, -0.2620004714, -0.2589086294, 0.4163453579, 0.2090040743, -0.1786014885, -0.4936587512, -0.0105338339, 0.0426238328, -0.0922617167, -0.1824913621, 0.041756209, 0.1412571967, 0.3790923059, 0.1933656782, 0.0584115982, 0.7760936618, -0.0257241745, -0.064801611, -0.0789827853, -0.6323979497, -0.0542362407, 0.0605210103, 0.0649564937, 0.1296194792, -0.1022136658, -0.1126851588, -0.382473141, 0.3061403334, -0.125575617, -0.1483522356, -0.2318835706, -0.0043637948, -0.0508505888, -0.0628497005, -0.0281333644, 0.0610886551, 0.1224481612, 0.3552178144, -0.1259650737, -0.2262785733, 0.3989255726, -0.0534628257, -0.4505839348, 0.0725823194, -0.1192310676, 0.3350655735, -0.2118575126, -0.4614247084, 0.1921404898, 0.2282824218, -0.1450063884, -0.3645921052, 0.0354045182, 0.1440640837, 0.1055091098, -0.1191353351, 0.6080467105, 0.0068141865, -0.1588617563, 0.1072710901, -0.1721354574 ]
https://github.com/huggingface/datasets/issues/2059
Error while following docs to load the `ted_talks_iwslt` dataset
This has been fixed in #2064 by @mariosasko (thanks again !) The fix is available on the master branch and we'll do a new release very soon :)
I am currently trying to load the `ted_talks_iwslt` dataset into google colab. The [docs](https://huggingface.co/datasets/ted_talks_iwslt) mention the following way of doing so. ```python dataset = load_dataset("ted_talks_iwslt", language_pair=("it", "pl"), year="2014") ``` Executing it results in the error attached below. ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-7dcc67154ef9> in <module>() ----> 1 dataset = load_dataset("ted_talks_iwslt", language_pair=("it", "pl"), year="2014") 4 frames /usr/local/lib/python3.7/dist-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, **config_kwargs) 730 hash=hash, 731 features=features, --> 732 **config_kwargs, 733 ) 734 /usr/local/lib/python3.7/dist-packages/datasets/builder.py in __init__(self, writer_batch_size, *args, **kwargs) 927 928 def __init__(self, *args, writer_batch_size=None, **kwargs): --> 929 super(GeneratorBasedBuilder, self).__init__(*args, **kwargs) 930 # Batch size used by the ArrowWriter 931 # It defines the number of samples that are kept in memory before writing them /usr/local/lib/python3.7/dist-packages/datasets/builder.py in __init__(self, cache_dir, name, hash, features, **config_kwargs) 241 name, 242 custom_features=features, --> 243 **config_kwargs, 244 ) 245 /usr/local/lib/python3.7/dist-packages/datasets/builder.py in _create_builder_config(self, name, custom_features, **config_kwargs) 337 if "version" not in config_kwargs and hasattr(self, "VERSION") and self.VERSION: 338 config_kwargs["version"] = self.VERSION --> 339 builder_config = self.BUILDER_CONFIG_CLASS(**config_kwargs) 340 341 # otherwise use the config_kwargs to overwrite the attributes /root/.cache/huggingface/modules/datasets_modules/datasets/ted_talks_iwslt/024d06b1376b361e59245c5878ab8acf9a7576d765f2d0077f61751158e60914/ted_talks_iwslt.py in __init__(self, language_pair, year, **kwargs) 219 description=description, 220 version=datasets.Version("1.1.0", ""), --> 221 **kwargs, 222 ) 223 TypeError: __init__() got multiple values for keyword argument 'version' ``` How to resolve this? PS: Thanks a lot @huggingface team for creating this great library!
28
Error while following docs to load the `ted_talks_iwslt` dataset I am currently trying to load the `ted_talks_iwslt` dataset into google colab. The [docs](https://huggingface.co/datasets/ted_talks_iwslt) mention the following way of doing so. ```python dataset = load_dataset("ted_talks_iwslt", language_pair=("it", "pl"), year="2014") ``` Executing it results in the error attached below. ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-7dcc67154ef9> in <module>() ----> 1 dataset = load_dataset("ted_talks_iwslt", language_pair=("it", "pl"), year="2014") 4 frames /usr/local/lib/python3.7/dist-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, **config_kwargs) 730 hash=hash, 731 features=features, --> 732 **config_kwargs, 733 ) 734 /usr/local/lib/python3.7/dist-packages/datasets/builder.py in __init__(self, writer_batch_size, *args, **kwargs) 927 928 def __init__(self, *args, writer_batch_size=None, **kwargs): --> 929 super(GeneratorBasedBuilder, self).__init__(*args, **kwargs) 930 # Batch size used by the ArrowWriter 931 # It defines the number of samples that are kept in memory before writing them /usr/local/lib/python3.7/dist-packages/datasets/builder.py in __init__(self, cache_dir, name, hash, features, **config_kwargs) 241 name, 242 custom_features=features, --> 243 **config_kwargs, 244 ) 245 /usr/local/lib/python3.7/dist-packages/datasets/builder.py in _create_builder_config(self, name, custom_features, **config_kwargs) 337 if "version" not in config_kwargs and hasattr(self, "VERSION") and self.VERSION: 338 config_kwargs["version"] = self.VERSION --> 339 builder_config = self.BUILDER_CONFIG_CLASS(**config_kwargs) 340 341 # otherwise use the config_kwargs to overwrite the attributes /root/.cache/huggingface/modules/datasets_modules/datasets/ted_talks_iwslt/024d06b1376b361e59245c5878ab8acf9a7576d765f2d0077f61751158e60914/ted_talks_iwslt.py in __init__(self, language_pair, year, **kwargs) 219 description=description, 220 version=datasets.Version("1.1.0", ""), --> 221 **kwargs, 222 ) 223 TypeError: __init__() got multiple values for keyword argument 'version' ``` How to resolve this? PS: Thanks a lot @huggingface team for creating this great library! This has been fixed in #2064 by @mariosasko (thanks again !) The fix is available on the master branch and we'll do a new release very soon :)
[ -0.2140098512, 0.1284444332, 0.0485114902, 0.2001313716, 0.0312911794, 0.0933724716, 0.6712163687, 0.1944086105, 0.124102287, -0.0619185939, -0.0495756231, 0.3381052315, -0.2910546958, 0.4190411866, 0.0773886517, -0.2890877426, 0.0997466967, 0.0731820986, -0.0559581779, 0.2060501575, -0.3254210055, 0.2124046385, -0.4152064025, 0.0127501655, -0.2546612918, -0.2034209818, 0.0468139686, 0.2763829231, -0.2661165297, -0.3130561411, 0.388687551, -0.0194342546, 0.4227884114, 0.465591222, -0.0001143111, 0.1071711704, 0.518899262, -0.1366392523, -0.5111313462, -0.3482477367, -0.4282778502, 0.056435924, 0.1920464486, -0.1413852423, 0.0406110622, 0.1922583878, 0.1550244391, 0.0707047731, 0.2410452366, 0.4013662934, 0.1814023405, 0.3804121614, 0.2313807011, -0.2351676375, 0.154595226, 0.0248499811, -0.0978884399, 0.564763248, -0.0470758602, -0.1141024381, 0.128696382, 0.3489501774, -0.1531593502, 0.1483009458, 0.2271818817, 0.0371533819, -0.206946373, -0.2533877492, 0.1699540019, 0.1438006908, 0.6555982828, -0.2468864173, -0.2574801743, -0.0335896611, 0.0099556269, -0.2570731044, 0.2009016722, 0.1602669656, -0.0814757198, 0.0440074839, -0.0826552138, -0.020636417, -0.2317148447, 0.2486289442, -0.1192694008, 0.3788588047, -0.1296507567, 0.2292338461, 0.1909640729, -0.1613062173, 0.4198671281, 0.0673460588, -0.0003741905, 0.1236648262, -0.1720058173, 0.0920585468, 0.0743066221, 0.2679722607, 0.0050414149, -0.1803121418, -0.0461913683, -0.1731353402, 0.0700947195, 0.3650496304, 0.4140592217, 0.1718420684, 0.0364547968, 0.2923619151, 0.2413600236, 0.3500967324, -0.0186876226, 0.0057673766, -0.2672670186, -0.1643574238, 0.1300111562, 0.0049814805, 0.4590970278, -0.0423844084, -0.4038477242, -0.0003769906, -0.3010184169, 0.0824718699, 0.0890628695, 0.3704459667, 0.0278563425, -0.0001116882, 0.2095950544, 0.18170093, -0.1293828338, -0.0431669205, -0.1425670832, 0.4191194177, -0.1319149733, 0.1497371644, 0.2187040597, 0.0767595321, 0.1410081089, -0.1379395276, 0.2220695168, 0.0446456447, -0.0268261414, -0.1082441062, -0.1772272736, 0.285598129, 0.1986790448, 0.1157576293, 0.2717032135, -0.4462216198, -0.2021681666, 0.1938810647, -0.3336770535, -0.4380973279, -0.2477479726, 0.1399911195, -0.1422352642, -0.0807822645, -0.6888025999, 0.0970537663, 0.3203808367, -0.2366488278, -0.117682375, -0.3462982178, -0.4640255868, -0.1770426333, 0.1038889065, 0.6105267406, -0.4028030634, -0.103244625, -0.210732013, 0.1306753159, 0.1703798324, 0.2542803884, -0.3040799499, 0.4380043447, -0.1264619678, 0.1686679274, 0.0272127744, -0.2167751044, -0.244243592, 0.0688681304, 0.1441133469, 0.1390661895, -0.1006632149, -0.1111617163, 0.1963774264, -0.1156174019, 0.4870840907, 0.2835545838, -0.1532049179, 0.0493037067, -0.1728232503, -0.1591177434, 0.2652178705, 0.2218355834, 0.1602454782, 0.1063036174, 0.0204084031, 0.1632984579, -0.0760870799, -0.1615735739, -0.1027202159, 0.1023149341, 0.3372316957, 0.0457199588, -0.0576757453, 0.0702428967, -0.6290014982, 0.11771442, -0.0899862647, 0.487635076, -0.2378150374, -0.0781501085, -0.3759539723, 0.2315169722, -0.2586619854, 0.0211969912, 0.102792576, 0.1375457048, -0.3405934572, 0.109585613, 0.0024862399, 0.3937729895, -0.1800976396, -0.0502066202, -0.5546483397, 0.3506633341, -0.2476859689, -0.2609457672, 0.2360203564, 0.0128415301, 0.1512276828, -0.0852369815, -0.1042427942, 0.2208423465, 0.0838627219, 0.1782543957, -0.0415429473, 0.0498289838, 0.0866228119, -0.2470030338, -0.0502535775, 0.2800144851, 0.3062435985, -0.0222598501, 0.0072831325, 0.3388236463, 0.2145285457, 0.061796084, -0.1064288914, 0.0869068354, 0.1529310197, -0.0321944132, -0.0154461199, -0.1098017171, 0.0940817893, 0.3077628613, -0.2173505872, -0.006536785, -0.3673069477, 0.1065692231, 0.3472861052, -0.0406758226, 0.1063073054, 0.2004859447, -0.0458074771, -0.2589944303, 0.1528944969, -0.0988082886, 0.3416540921, -0.0652152151, -0.1908448637, -0.0200921893, 0.0983544067, 0.0000415278, 0.1111448258, 0.1305607259, 0.2045361102, -0.0218027513, 0.1338374764, 0.0469108261, -0.1636053622, -0.1726350784, 0.0007488864, 0.4891522229, -0.4590348303, 0.3445875943, -0.0838143155, -0.3980566561, -0.1177788153, -0.0212563127, -0.0937102288, -0.375885874, -0.1497988701, 0.4769553244, -0.0163301136, 0.0647052452, 0.3318710327, 0.3093937635, 0.3434873223, -0.1801776737, -0.0913705006, -0.3669162691, -0.2936855853, 0.0322301798, 0.4665717185, 0.115083985, 0.2103031129, -0.2565607131, -0.0744035244, -0.1555274576, -0.3767434061, 0.197767362, -0.2820949256, 0.5574055314, 0.1927933544, 0.4036368132, -0.4021498263, -0.4170802236, 0.2165422589, -0.2159273922, 0.0228551961, 0.0600700676, -0.2575758398, -0.1695457101, -0.0780542567, -0.2154358029, -0.388066113, -0.3334846795, 0.0411793664, 0.0234913509, 0.1087781712, 0.4082961679, 0.1039952785, 0.0826146752, 0.5001869202, -0.1201794446, -0.2204820514, -0.1896117628, 0.3713565171, -0.2679736614, -0.2996505201, 0.0574343018, -0.1118456796, -0.0345388688, -0.1277001798, -0.3979897201, -0.1679545045, -0.0796000659, 0.0343475901, 0.0870101228, 0.0046828459, 0.0903062895, 0.040992368, 0.0165091641, -0.1444606185, -0.3971962929, -0.0447066799, 0.2862809002, 0.18965213, 0.3199490905, 0.1527797878, -0.2465850264, 0.4933196306, 0.1270403415, -0.1835067421, 0.3492406607, 0.0250618588, 0.1754010469, -0.3715405464, -0.4368457198, 0.237617299, -0.1879223436, -0.2280795723, 0.2979317904, -0.2045452893, -0.3474061191, -0.224864617, 0.0438158959, -0.1779918522, -0.4377467334, 0.2583797574, 0.3308210075, 0.157083571, 0.0771659985, -0.2223610282, -0.2364100516, -0.1451248229, -0.009316951, 0.4067424238, 0.0352085307, 0.0237529911, 0.2685170174, -0.0196396895, -0.6131860614, 0.2619731426, 0.3598891497, 0.2567749918, -0.1841002256, -0.0063455622, 0.0039631804, 0.0835694522, 0.108200483, -0.1093386635, -0.0108381817, 0.1519352943, 0.0391840786, -0.0263429601, -0.0790270939, -0.3449522257, 0.3172374666, 0.1861914694, 0.2938251197, -0.3232550025, 0.1021651104, 0.2999721169, 0.1534429044, -0.1450289488, -0.1421938837, -0.3056727052, -0.5755372643, -0.4369576573, -0.1568489224, 0.2291858196, 0.3046580851, -0.0445029177, 0.2770192027, 0.1160707772, -0.0249743648, 0.2497915924, 0.1906316429, 0.2642820477, 0.2793499231, -0.0030472879, -0.1023887843, -0.0883052498, 0.3251289427, 0.5740008354, 0.0765841007, -0.3027879596, 0.15344432, -0.0007593892, -0.0351319946, 0.1420031786, -0.2235962451, -0.1190413982, -0.07917355, 0.1191914156, 0.0921078548, 0.341206044, 0.1121099964, 0.0040063686, -0.6925356388, -0.4981177747, 0.4090969563, -0.0072399192, 0.019279927, 0.4975600839, 0.1867414117, -0.2983270586, 0.3348348439, 0.1221372634, 0.8771520257, -0.1109950989, 0.1701840907, 0.7048406601, 0.3051099777, 0.3482863009, 0.1293721497, 0.1986811012, -0.2439750731, -0.0101689184, -0.1779772937, -0.0347318389, -0.1059863344, -0.1789795905, -0.5133097172, 0.1631120592, -0.1395599842, 0.153298676, 0.1962642223, 0.2055085748, -0.0852644145, -0.2222533375, -0.447022289, 0.13574332, -0.1891507953, 0.1525287479, -0.1698506027, -0.1999877095, -0.042252332, -0.2237295508, -0.4431299567, -0.0101409201, -0.3017947674, 0.2878568172, 0.1285058856, -0.3540193141, 0.3821361959, 0.0873134285, 0.2093689442, -0.0861252025, -0.2630380392, 0.0796147585, -0.0422879234, -0.1822860539, -0.292799443, -0.0839490667, 0.38900581, 0.0104225166, -0.0555334389, -0.1049363539, -0.0217702221, -0.3225515485, -0.0210435688, 0.1069690734, -0.1146418825, -0.3590724468, -0.1863966137, -0.0565645248, -0.0802444741, -0.1424153, 0.1051646546, -0.0230293404, -0.0452695973, -0.0582764558, 0.0906595439, -0.2889914215, -0.0133596966, 0.2108225673, -0.0169839859, 0.2019540668, 0.5059753656, 0.3231052756, -0.1487450302, -0.1556159556, 0.0903207958, 0.0370923877, -0.1766445935, 0.3680171371, 0.076447539, 0.1777410507, -0.1176420078, 0.7146793008, 0.0049759201, 0.1166738197, 0.204261899, -0.6232946515, -0.1541108787, 0.2746364176, -0.299415797, 0.123272486, 0.1035279259, 0.1669118106, 0.0297569502, -0.296701014, -0.281704098, 0.0297346842, -0.3422642648, 0.1165574268, 0.5153744817, -0.1448723972, 0.2689294219, 0.051857084, 0.1047898084, 0.0106332842, 0.0130032552, -0.2168716639, -0.1562119722, 0.1366970837, -0.0015315189, -0.2776117623, -0.1031047776, -0.0232948456, -0.204148218, -0.125789836, 0.2397996485, 0.2675270438, -0.2015844882, 0.0886181667, -0.0584745593, 0.0901301578, 0.0289789103, 0.2691267133, 0.0576192588, 0.362467587, 0.0758868903, 0.2564903498, 0.1219142452, 0.0619149134, 0.1604722291, 0.3062053025, 0.1793514788, 0.0806685165, 0.1938154697, -0.4666216969, 0.0848968402, -0.3038904667, 0.147140041, 0.3480232954, -0.3421801925, 0.0292505659, 0.152701363, 0.0747290626, -0.1406994164, 0.0847324207, 0.2097512633, -0.1218281761, -0.0363925807, 0.337008208, 0.0952704102, 0.1607522517, -0.1302419305, -0.0091695236, 0.2860711515, 0.2742424905, 0.1155958027, -0.0315119959, -0.165458709, 0.113984175, 0.0179616883, 0.1874172688, 0.18310377, 0.0614976622, -0.1229428723, 0.1994288862, -0.2232544273, 0.0014121738, 0.280066669, -0.5291491151, 0.0418860912, 0.0880156904, 0.1026345491, 0.0713381693, 0.0034235932, 0.4099152684, -0.2465038896, -0.0876881853, -0.2012916654, 0.1213345379, -0.1715999246, -0.0220153313, -0.1088467911, -0.0851299316, -0.3159867823, 0.1381998956, -0.042684, -0.0950909108, 0.2009614557, 0.3130764961, -0.0781463608, -0.2880217135, 0.0612916313, 0.2677076757, -0.1242278889, -0.1469755173, 0.2357487977, 0.0108403536, -0.1058392972, -0.0509676114, 0.2660689354, 0.7285701036, 0.3192518353, -0.2551066279, 0.0773125589, -0.0690374449, -0.1405920982, 0.0278504156, 0.0032026309, 0.1834236681, 0.1844147891, 0.3254413009, 0.1618837118, -0.0949519351, 0.1528599709, 0.0883175284, -0.0767486915, -0.0448458903, -0.0696904883, -0.3189101815, 0.1108423173, -0.2443204075, 0.0555678047, -0.3604248762, 0.0488566048, 0.3898122907, 0.0613460094, 0.1407897919, 0.0984553173, 0.0432325602, -0.0891611353, 0.7480604649, 0.4245292246, 0.5701186657, -0.4606825411, -0.208096087, -0.4583548307, 0.1459203064, -0.0689231008, -0.0468385071, -0.0326216966, 0.0107747028, 0.0743062273, 0.2133211195, -0.1900983453, -0.1546645164, -0.1080703065, -0.0489007831, -0.1239413247, -0.3723289073, 0.0555765517, -0.1665820628, -0.0945497751, -0.3566224575, -0.0013354613, -0.3693266511, 0.0391544662, -0.3989431858, -0.2728853524, -0.0115519883, -0.0481828153, 0.16782327, 0.1803111285, 0.6532688141, -0.1587126404, -0.138134867, -0.0625673309, -0.3694787621, -0.12168888, 0.1717717201, 0.0265651178, 0.4272360504, -0.0047246628, 0.2010177672, -0.4344119132, 0.3339690864, 0.0141446376, -0.1143102944, -0.4061487615, 0.037544582, -0.280810982, 0.0591573492, -0.0056762449, 0.0953867584, -0.102175042, 0.144649595, -0.1778619438, -0.3812479377, 0.7138030529, -0.6547109485, -0.5138834119, -0.0173219908, -0.1966511011, -0.1308057755, 0.0336087756, -0.7398444414, 0.1849341691, 0.0491946861, -0.023679493, -0.367248714, 0.172133103, 0.1016580611, 0.0948799253, -0.1482052505, 0.2744233906, 0.0389562175, -0.1822547615, -0.1232795715, -0.2610342205 ]
https://github.com/huggingface/datasets/issues/2056
issue with opus100/en-fr dataset
@lhoestq I also deleted the cache and redownload the file and still the same issue, I appreciate any help on this. thanks
Hi I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this? Thanks a lot @lhoestq for your help in advance. ` thread '<unnamed>' panicked at 'index out of bounds: the len is 617 but the index is 617', /__w/tokenizers/tokenizers/tokenizers/src/tokenizer/normalizer.rs:382:21 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 63%|██████████████████████████████████████████████████████████▊ | 626/1000 [00:27<00:16, 22.69ba/s] Traceback (most recent call last): File "run_mlm.py", line 550, in <module> main() File "run_mlm.py", line 412, in main in zip(data_args.dataset_name, data_args.dataset_config_name)] File "run_mlm.py", line 411, in <listcomp> logger) for dataset_name, dataset_config_name\ File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 96, in get_tokenized_dataset load_from_cache_file=not data_args.overwrite_cache, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in map for k, dataset in self.items() File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in <dictcomp> for k, dataset in self.items() File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1309, in map update_data=update_data, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 204, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/fingerprint.py", line 337, in wrapper out = func(self, *args, **kwargs) File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1574, in _map_single batch, indices, check_same_num_examples=len(self.list_indexes()) > 0, offset=offset File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1490, in apply_function_on_filtered_inputs function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 89, in tokenize_function return tokenizer(examples[text_column_name], return_special_tokens_mask=True) File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2347, in __call__ **kwargs, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2532, in batch_encode_plus **kwargs, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 384, in _batch_encode_plus is_pretokenized=is_split_into_words, pyo3_runtime.PanicException: index out of bounds: the len is 617 but the index is 617 `
22
issue with opus100/en-fr dataset Hi I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this? Thanks a lot @lhoestq for your help in advance. ` thread '<unnamed>' panicked at 'index out of bounds: the len is 617 but the index is 617', /__w/tokenizers/tokenizers/tokenizers/src/tokenizer/normalizer.rs:382:21 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 63%|██████████████████████████████████████████████████████████▊ | 626/1000 [00:27<00:16, 22.69ba/s] Traceback (most recent call last): File "run_mlm.py", line 550, in <module> main() File "run_mlm.py", line 412, in main in zip(data_args.dataset_name, data_args.dataset_config_name)] File "run_mlm.py", line 411, in <listcomp> logger) for dataset_name, dataset_config_name\ File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 96, in get_tokenized_dataset load_from_cache_file=not data_args.overwrite_cache, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in map for k, dataset in self.items() File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in <dictcomp> for k, dataset in self.items() File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1309, in map update_data=update_data, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 204, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/fingerprint.py", line 337, in wrapper out = func(self, *args, **kwargs) File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1574, in _map_single batch, indices, check_same_num_examples=len(self.list_indexes()) > 0, offset=offset File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1490, in apply_function_on_filtered_inputs function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 89, in tokenize_function return tokenizer(examples[text_column_name], return_special_tokens_mask=True) File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2347, in __call__ **kwargs, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2532, in batch_encode_plus **kwargs, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 384, in _batch_encode_plus is_pretokenized=is_split_into_words, pyo3_runtime.PanicException: index out of bounds: the len is 617 but the index is 617 ` @lhoestq I also deleted the cache and redownload the file and still the same issue, I appreciate any help on this. thanks
[ -0.4117368162, -0.1673515141, -0.0156451836, 0.3972487152, 0.1182574853, 0.0823765546, 0.192252174, 0.2819979489, -0.1431498379, 0.2579927444, -0.2424351871, -0.0248961765, 0.1322235465, 0.3834213614, -0.2399136871, -0.172585234, -0.078272, 0.1208089516, -0.4165076315, -0.1202893704, -0.455948025, 0.223883763, -0.1563928574, 0.2297670841, 0.3186606765, -0.070255667, 0.1518447995, 0.0579339042, -0.2905828059, -0.3938674927, -0.1512019932, -0.2992525697, 0.3983564079, 0.2486604601, -0.0001240568, 0.0139627149, 0.1579870284, -0.0384620391, 0.0809596106, -0.0592178255, 0.1000377163, 0.1473320425, -0.028712241, -0.3051401675, 0.0371817276, -0.2251011282, -0.3708877861, -0.2680356503, 0.2880219519, 0.375313133, 0.0867759138, 0.5228811502, 0.3373612463, -0.1462078393, 0.1830139607, -0.0422984473, 0.058661703, -0.0693613663, 0.3234798908, -0.2280780226, 0.3684238195, 0.2993508875, -0.1102046221, -0.1365144104, 0.220376581, -0.2563658655, 0.6804654002, -0.5535478592, 0.0111164199, 0.3440344632, 0.0739906281, 0.0230663419, -0.0722476169, 0.0284321811, -0.0147415604, -0.812233448, -0.0916821882, 0.1136499047, -0.0426639244, 0.1667119414, -0.328124851, 0.0566354506, 0.0846513286, 0.1801348478, 0.0343025252, 0.3327201903, 0.0061037894, 0.2988551259, 0.2502728701, -0.229520008, -0.4094229341, 0.2705803216, -0.1085325554, 0.2871655822, -0.4670935869, -0.0439889804, 0.0700743273, -0.1362366676, 0.4946713746, 0.2132565528, -0.5131159425, -0.1626803577, 0.4100390673, -0.0067459918, 0.2849932015, 0.2695944905, -0.0111153945, 0.0230321698, 0.2029657662, 0.021527404, 0.1223783419, -0.0572649315, -0.0405005515, -0.2940118611, -0.2561856508, -0.0725328997, 0.1384641677, -0.489280045, -0.2409023494, 0.3881001472, -0.3146692216, -0.0595292039, 0.5197179317, 0.333930552, 0.1966291666, -0.1151286736, -0.0928356573, 0.2790852189, -0.3406359255, 0.0021831351, -0.0180697422, -0.0317982584, -0.0366428755, 0.0159906317, -0.0337794945, -0.6434462667, 0.2684480548, 0.1619417965, 0.5190973878, -0.4269459844, 0.1198232621, -0.2199244201, -0.0168503541, 0.2775987983, -0.0571953021, 0.1540126055, 0.3632328212, 0.0032505589, -0.059038531, 0.0531925745, -0.4613536298, -0.4059747159, -0.3444900215, 0.0495100506, -0.1387338489, 0.4477999806, 0.1756899655, -0.0166501943, 0.4423443675, -0.1872701943, 0.2043518573, -0.1826286167, -0.3020602465, 0.0518631488, 0.3899739981, 0.139920637, 0.0265582241, 0.1484417915, 0.2194243222, 0.2127538472, 0.366828382, 0.5186989307, -0.2727024555, -0.0015194424, -0.4783479273, 0.2312487364, 0.0005185935, -0.4624031484, -0.2426679581, -0.1247506961, -0.2872538567, -0.294465363, 0.0553656518, -0.1781385094, 0.6758929491, -0.0452675, 0.2189912349, 0.0732169226, 0.0459527001, -0.1863197386, -0.2554851472, 0.0077218628, 0.3513786495, -0.198813051, 0.0082609281, -0.0232906919, -0.04938199, -0.1482338607, 0.1101339459, -0.0605433732, 0.1323248893, 0.2601273656, 0.2107938677, 0.0742595345, 0.2487875372, -0.061124187, 0.1535776705, -0.0508144721, -0.4693947136, 0.2518243492, -0.0783604234, 0.0079229325, -0.3655865788, 0.0975493416, -0.1030972227, -0.2655678391, -0.003170131, -0.2116549015, 0.1113094091, 0.109749645, 0.1644176841, -0.1983311623, -0.0019175282, 0.2205998749, -0.311198324, 0.3991578221, -0.2442425191, -0.0184905641, 0.0290291384, 0.3571319878, 0.3908421993, -0.2759010196, -0.1644444764, 0.2347951978, 0.0223703664, -0.290648818, -0.289475888, 0.3155040741, 0.1678451598, -0.3867719173, 0.0024175569, -0.282569617, 0.0304203443, -0.0328211412, 0.1935180724, 0.5273357034, -0.1704326123, 0.3984833658, -0.261098057, 0.1100404859, 0.0254600756, 0.1451860219, 0.0004744837, -0.1778209955, 0.3125910759, 0.3107433915, 0.1120004654, 0.0675271302, -0.1241337731, -0.0501553193, 0.2982763648, 0.0116720451, 0.1062054858, 0.0498674959, -0.0823499039, -0.0183439665, 0.1508108526, -0.2998587191, 0.1713972092, 0.1358767152, -0.0547965877, 0.0122383041, -0.0049690492, -0.0121082328, 0.2557176352, 0.021253068, 0.3840558231, 0.1920321882, 0.0013483219, -0.0890294984, -0.1562478244, -0.1054887027, 0.1233059987, 0.4478665888, -0.2748396397, 0.0627048239, -0.0854326934, 0.0197415836, -0.1227131635, -0.3330767155, -0.619365871, -0.1888412088, 0.1114288568, 0.0365405977, 0.0309600122, 0.0561555848, 0.1487269551, -0.0703547969, 0.2286866456, 0.1457812935, 0.1693617254, -0.0629822835, -0.1823608875, -0.1482488364, 0.1953945756, -0.0163385179, 0.0471094772, 0.1365008354, -0.0967718512, -0.0325958207, -0.589405179, 0.3106524348, -0.056813661, 0.3301674426, 0.0491233096, 0.1147355288, -0.0633860901, -0.1362300813, 0.1913003176, 0.0995126069, -0.2120433301, 0.0822475255, -0.0835592896, 0.2379556447, -0.1326673776, -0.0950535238, -0.2327531576, -0.4111004174, 0.2914522588, -0.1913593709, 0.0587135255, 0.2794516385, -0.1564148515, -0.0205892678, 0.0797984004, -0.1391311586, -0.3224677444, 0.1024729982, 0.3471242189, -0.2841886878, -0.2615578175, -0.2328039855, 0.1744872481, 0.210963428, -0.1036835387, -0.4139458537, -0.0216100924, -0.124704957, 0.0797614306, -0.2371438593, 0.1470893323, 0.3746412098, -0.1469143629, -0.0013901464, -0.1065230817, -0.1248334795, 0.1823370904, -0.0900527686, 0.0056254449, -0.0408161245, 0.744967103, -0.1414621621, 0.5462420583, 0.1166381016, 0.0463525131, 0.3334825933, -0.1853602827, 0.3638514578, -0.092579186, -0.3035498857, 0.2539815307, 0.2515972555, -0.2397889495, 0.163525641, -0.162768811, 0.0914803073, -0.0657882467, -0.1014053151, 0.054939229, -0.2810799778, -0.1190142781, 0.4435955584, 0.3401423395, 0.07350564, 0.4127734303, -0.0851289481, -0.1578100771, 0.106077373, -0.0302281529, -0.038312152, 0.141588062, -0.6263700724, -0.4313114285, -0.5289624929, 0.4155209064, 0.0741581693, 0.7487248182, -0.1871676296, 0.1006234139, 0.071251072, 0.0639622286, 0.7198230624, 0.2071080357, -0.0213007051, -0.0399167053, -0.1477173865, -0.2423107326, -0.14080064, -0.027839059, 0.566105783, 0.0240686983, 0.6595686674, -0.256732583, -0.2979438305, 0.3916326165, 0.132049039, -0.1679749787, -0.0606125444, -0.1955356598, -0.3098438382, -0.2639373243, 0.3379351497, 0.1940554529, 0.5438349843, -0.1234487295, -0.0158896632, 0.1631440818, -0.1943351179, 0.1099147648, 0.1643003523, 0.4007403553, 0.0797049701, 0.0898570418, 0.2112825811, -0.0558952391, 0.5950175524, 0.1040690765, -0.0604193062, -0.0915403813, 0.1939140856, 0.0131677454, 0.3254160285, 0.1391024292, 0.0967574865, 0.108020246, 0.1463081092, 0.3830467761, -0.2549984455, -0.0272543002, 0.2192223966, 0.2564139068, -0.3760879934, 0.0446603484, 0.0586690307, 0.0565801822, -0.0172104221, 0.261542052, 0.3256276548, -0.1692549288, 0.1965737641, 0.4372457564, 1.1253499985, -0.2956343591, -0.0780402124, -0.1270175129, -0.3361198306, 0.6042554975, -0.2630313039, -0.0462498628, -0.3473005891, -0.1285598725, 0.0290814899, -0.1867011189, -0.0097717643, -0.2190950513, -0.099764891, 0.1527132094, -0.2251033634, -0.1580949724, -0.2182854265, 0.2269459814, 0.3224571347, -0.2332210839, -0.1530531645, -0.032768406, -0.0646059886, 0.1714262813, -0.2102533728, -0.1722315699, 0.1970993131, -0.2368188798, -0.229995057, -0.1415080875, -0.4525683522, 0.2946379185, 0.0208069887, -0.3227230608, 0.3300318718, 0.1336202174, 0.122814998, 0.4325303435, -0.2202582657, -0.0268769339, -0.0063689174, -0.1093929037, -0.0867891535, 0.067453891, 0.0446672626, -0.1134756431, -0.41933465, 0.1008558944, -0.0415860675, -0.0372323692, -0.1182166338, 0.1514537632, 0.1590323299, -0.2331365198, 0.3106336296, 0.0292768702, -0.1071385667, -0.2391302884, -0.060549587, 0.1102113724, -0.4307789803, 0.0195448324, 0.0935489535, -0.4853806496, 0.0089950804, 0.441426158, -0.0217243806, -0.1256334186, 0.5604749918, 0.3870260119, -0.0833010897, -0.089131169, 0.0665603504, 0.3794843853, -0.3428507745, -0.0206784327, -0.0268813837, 0.0366380811, -0.0318850912, 0.0771934763, 0.1465907544, -0.0055676196, -0.1001250595, -0.492774725, -0.4502182901, 0.1050363332, -0.1411195248, 0.0919765234, 0.1732305139, 0.0533687733, -0.2124430537, -0.0619376786, -0.1585217416, -0.0634853095, -0.4207331538, 0.2324084491, 0.1008738354, -0.4312162399, 0.0396449789, -0.0233105235, -0.0935195833, 0.190282777, -0.3172388673, -0.0028024747, -0.1553544253, 0.2393624932, -0.0955502763, -0.5256474614, 0.0028378349, -0.140263021, -0.1286251247, -0.1450249404, -0.068464458, 0.1721591204, 0.0660324395, -0.2844122052, 0.2785305977, -0.2525465786, -0.1802475303, 0.0735499635, 0.2667730153, 0.1805520356, -0.0312234424, 0.4272299409, 0.0469694734, -0.1794164181, -0.4443587661, 0.0844650343, 0.2403595001, -0.3084858954, 0.0818070322, -0.2272558659, -0.1002404168, 0.4624744356, 0.4395344257, 0.3952622116, 0.0054787258, -0.064010337, 0.2593305409, 0.0696911961, -0.1671455801, -0.1368119866, 0.2515741587, -0.0049366136, -0.0690293908, 0.4297881126, 0.2808301747, 0.0913783833, 0.0630439296, 0.042307321, 0.2633594275, 0.1425084025, 0.0828460082, 0.1284722537, -0.0913550779, -0.0380902141, 0.2750042081, -0.0623215288, 0.403942287, 0.3254383504, -0.1907829046, 0.128417924, 0.4210964739, 0.1274310499, 0.1366223246, -0.2624634504, -0.1123235598, 0.224453494, 0.2346692085, 0.1128059626, -0.1113442183, 0.7335340381, -0.0874511302, -0.3345424533, -0.0257382281, 0.4591719508, -0.2747836709, -0.0890219137, -0.1561335474, -0.1324679554, -0.0322468914, -0.0687891766, 0.1778805554, 0.0589249395, -0.022229502, 0.0233923309, -0.2222555578, -0.3103195131, -0.5450295806, 0.535775125, -0.0293436553, -0.3221193254, 0.3328134716, 0.3862287998, -0.1073277295, 0.1693546027, 0.3321025074, 0.5232442617, 0.2326999456, -0.1036635861, -0.0796247944, 0.0639354512, 0.1587668955, -0.0327848904, -0.0839481801, 0.0879546106, 0.1356129944, 0.0877456143, -0.0667450875, -0.0521092266, -0.0449391231, 0.2036180794, 0.059541706, 0.0997647569, -0.5444079041, -0.1548724622, -0.1310879737, -0.3298233747, 0.0288381316, -0.1454808712, 0.2842451632, 0.3009549677, -0.043853309, 0.0339539982, 0.0367656462, 0.0023883667, -0.1856235117, 0.4092006683, 0.4066258371, 0.0112804901, -0.2685202062, -0.1344892681, -0.4066004157, 0.2426140457, -0.3182494938, -0.1087302715, 0.416859746, 0.1510165483, 0.0382542647, 0.045189999, 0.4998104274, -0.2465703338, -0.1361931562, 0.2110146135, -0.3237794936, -0.0380775928, -0.2183674425, -0.0580943227, 0.1589757055, 0.0137183657, 0.3272310793, -0.0570998825, -0.0797361955, -0.3092330992, 0.2265753895, -0.3428743184, -0.0971134156, 0.183123976, 0.4092594385, 0.2603728771, 0.1465851367, 0.0863462016, 0.1715342402, -0.2983759344, -0.0559378974, 0.2614254355, 0.0259769205, 0.0188193955, -0.1280235201, -0.7292592525, -0.4894469082, 0.1618307382, 0.0186067093, -0.2161203474, -0.2587123811, 0.3220771253, -0.0869766846, 0.0181751885, 0.1464764178, 0.3136514127, 0.3915126324, 0.2425848097, -0.2641707361, -0.4147348702, 0.6981278062, -0.5851550102, -0.2028038204, -0.2027395815, 0.2233408689, 0.5235947967, -0.3709132969, -0.3115879297, -0.0513183586, 0.2126802951, 0.234611392, -0.4300560057, -0.0479074828, -0.2759914398, -0.087455079, 0.0262602996, -0.0255268309, 0.1617362797, -0.2601891458, 0.26983428, -0.0476779975 ]
https://github.com/huggingface/datasets/issues/2056
issue with opus100/en-fr dataset
Here please find the minimal code to reproduce the issue @lhoestq note this only happens with MT5TokenizerFast ``` from datasets import load_dataset from transformers import MT5TokenizerFast def get_tokenized_dataset(dataset_name, dataset_config_name, tokenizer): datasets = load_dataset(dataset_name, dataset_config_name, script_version="master") column_names = datasets["train"].column_names text_column_name = "translation" def process_dataset(datasets): def process_function(examples): lang = "fr" return {"src_texts": [example[lang] for example in examples[text_column_name]]} datasets = datasets.map( process_function, batched=True, num_proc=None, remove_columns=column_names, load_from_cache_file=True, ) return datasets datasets = process_dataset(datasets) text_column_name = "src_texts" column_names = ["src_texts"] def tokenize_function(examples): return tokenizer(examples[text_column_name], return_special_tokens_mask=True) tokenized_datasets = datasets.map( tokenize_function, batched=True, num_proc=None, remove_columns=column_names, load_from_cache_file=True ) if __name__ == "__main__": tokenizer_kwargs = { "cache_dir": None, "use_fast": True, "revision": "main", "use_auth_token": None } tokenizer = MT5TokenizerFast.from_pretrained("google/mt5-small", **tokenizer_kwargs) get_tokenized_dataset(dataset_name="opus100", dataset_config_name="en-fr", tokenizer=tokenizer) ~ ```
Hi I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this? Thanks a lot @lhoestq for your help in advance. ` thread '<unnamed>' panicked at 'index out of bounds: the len is 617 but the index is 617', /__w/tokenizers/tokenizers/tokenizers/src/tokenizer/normalizer.rs:382:21 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 63%|██████████████████████████████████████████████████████████▊ | 626/1000 [00:27<00:16, 22.69ba/s] Traceback (most recent call last): File "run_mlm.py", line 550, in <module> main() File "run_mlm.py", line 412, in main in zip(data_args.dataset_name, data_args.dataset_config_name)] File "run_mlm.py", line 411, in <listcomp> logger) for dataset_name, dataset_config_name\ File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 96, in get_tokenized_dataset load_from_cache_file=not data_args.overwrite_cache, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in map for k, dataset in self.items() File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in <dictcomp> for k, dataset in self.items() File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1309, in map update_data=update_data, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 204, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/fingerprint.py", line 337, in wrapper out = func(self, *args, **kwargs) File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1574, in _map_single batch, indices, check_same_num_examples=len(self.list_indexes()) > 0, offset=offset File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1490, in apply_function_on_filtered_inputs function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 89, in tokenize_function return tokenizer(examples[text_column_name], return_special_tokens_mask=True) File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2347, in __call__ **kwargs, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2532, in batch_encode_plus **kwargs, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 384, in _batch_encode_plus is_pretokenized=is_split_into_words, pyo3_runtime.PanicException: index out of bounds: the len is 617 but the index is 617 `
114
issue with opus100/en-fr dataset Hi I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this? Thanks a lot @lhoestq for your help in advance. ` thread '<unnamed>' panicked at 'index out of bounds: the len is 617 but the index is 617', /__w/tokenizers/tokenizers/tokenizers/src/tokenizer/normalizer.rs:382:21 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 63%|██████████████████████████████████████████████████████████▊ | 626/1000 [00:27<00:16, 22.69ba/s] Traceback (most recent call last): File "run_mlm.py", line 550, in <module> main() File "run_mlm.py", line 412, in main in zip(data_args.dataset_name, data_args.dataset_config_name)] File "run_mlm.py", line 411, in <listcomp> logger) for dataset_name, dataset_config_name\ File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 96, in get_tokenized_dataset load_from_cache_file=not data_args.overwrite_cache, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in map for k, dataset in self.items() File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in <dictcomp> for k, dataset in self.items() File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1309, in map update_data=update_data, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 204, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/fingerprint.py", line 337, in wrapper out = func(self, *args, **kwargs) File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1574, in _map_single batch, indices, check_same_num_examples=len(self.list_indexes()) > 0, offset=offset File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1490, in apply_function_on_filtered_inputs function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 89, in tokenize_function return tokenizer(examples[text_column_name], return_special_tokens_mask=True) File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2347, in __call__ **kwargs, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2532, in batch_encode_plus **kwargs, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 384, in _batch_encode_plus is_pretokenized=is_split_into_words, pyo3_runtime.PanicException: index out of bounds: the len is 617 but the index is 617 ` Here please find the minimal code to reproduce the issue @lhoestq note this only happens with MT5TokenizerFast ``` from datasets import load_dataset from transformers import MT5TokenizerFast def get_tokenized_dataset(dataset_name, dataset_config_name, tokenizer): datasets = load_dataset(dataset_name, dataset_config_name, script_version="master") column_names = datasets["train"].column_names text_column_name = "translation" def process_dataset(datasets): def process_function(examples): lang = "fr" return {"src_texts": [example[lang] for example in examples[text_column_name]]} datasets = datasets.map( process_function, batched=True, num_proc=None, remove_columns=column_names, load_from_cache_file=True, ) return datasets datasets = process_dataset(datasets) text_column_name = "src_texts" column_names = ["src_texts"] def tokenize_function(examples): return tokenizer(examples[text_column_name], return_special_tokens_mask=True) tokenized_datasets = datasets.map( tokenize_function, batched=True, num_proc=None, remove_columns=column_names, load_from_cache_file=True ) if __name__ == "__main__": tokenizer_kwargs = { "cache_dir": None, "use_fast": True, "revision": "main", "use_auth_token": None } tokenizer = MT5TokenizerFast.from_pretrained("google/mt5-small", **tokenizer_kwargs) get_tokenized_dataset(dataset_name="opus100", dataset_config_name="en-fr", tokenizer=tokenizer) ~ ```
[ -0.4117368162, -0.1673515141, -0.0156451836, 0.3972487152, 0.1182574853, 0.0823765546, 0.192252174, 0.2819979489, -0.1431498379, 0.2579927444, -0.2424351871, -0.0248961765, 0.1322235465, 0.3834213614, -0.2399136871, -0.172585234, -0.078272, 0.1208089516, -0.4165076315, -0.1202893704, -0.455948025, 0.223883763, -0.1563928574, 0.2297670841, 0.3186606765, -0.070255667, 0.1518447995, 0.0579339042, -0.2905828059, -0.3938674927, -0.1512019932, -0.2992525697, 0.3983564079, 0.2486604601, -0.0001240568, 0.0139627149, 0.1579870284, -0.0384620391, 0.0809596106, -0.0592178255, 0.1000377163, 0.1473320425, -0.028712241, -0.3051401675, 0.0371817276, -0.2251011282, -0.3708877861, -0.2680356503, 0.2880219519, 0.375313133, 0.0867759138, 0.5228811502, 0.3373612463, -0.1462078393, 0.1830139607, -0.0422984473, 0.058661703, -0.0693613663, 0.3234798908, -0.2280780226, 0.3684238195, 0.2993508875, -0.1102046221, -0.1365144104, 0.220376581, -0.2563658655, 0.6804654002, -0.5535478592, 0.0111164199, 0.3440344632, 0.0739906281, 0.0230663419, -0.0722476169, 0.0284321811, -0.0147415604, -0.812233448, -0.0916821882, 0.1136499047, -0.0426639244, 0.1667119414, -0.328124851, 0.0566354506, 0.0846513286, 0.1801348478, 0.0343025252, 0.3327201903, 0.0061037894, 0.2988551259, 0.2502728701, -0.229520008, -0.4094229341, 0.2705803216, -0.1085325554, 0.2871655822, -0.4670935869, -0.0439889804, 0.0700743273, -0.1362366676, 0.4946713746, 0.2132565528, -0.5131159425, -0.1626803577, 0.4100390673, -0.0067459918, 0.2849932015, 0.2695944905, -0.0111153945, 0.0230321698, 0.2029657662, 0.021527404, 0.1223783419, -0.0572649315, -0.0405005515, -0.2940118611, -0.2561856508, -0.0725328997, 0.1384641677, -0.489280045, -0.2409023494, 0.3881001472, -0.3146692216, -0.0595292039, 0.5197179317, 0.333930552, 0.1966291666, -0.1151286736, -0.0928356573, 0.2790852189, -0.3406359255, 0.0021831351, -0.0180697422, -0.0317982584, -0.0366428755, 0.0159906317, -0.0337794945, -0.6434462667, 0.2684480548, 0.1619417965, 0.5190973878, -0.4269459844, 0.1198232621, -0.2199244201, -0.0168503541, 0.2775987983, -0.0571953021, 0.1540126055, 0.3632328212, 0.0032505589, -0.059038531, 0.0531925745, -0.4613536298, -0.4059747159, -0.3444900215, 0.0495100506, -0.1387338489, 0.4477999806, 0.1756899655, -0.0166501943, 0.4423443675, -0.1872701943, 0.2043518573, -0.1826286167, -0.3020602465, 0.0518631488, 0.3899739981, 0.139920637, 0.0265582241, 0.1484417915, 0.2194243222, 0.2127538472, 0.366828382, 0.5186989307, -0.2727024555, -0.0015194424, -0.4783479273, 0.2312487364, 0.0005185935, -0.4624031484, -0.2426679581, -0.1247506961, -0.2872538567, -0.294465363, 0.0553656518, -0.1781385094, 0.6758929491, -0.0452675, 0.2189912349, 0.0732169226, 0.0459527001, -0.1863197386, -0.2554851472, 0.0077218628, 0.3513786495, -0.198813051, 0.0082609281, -0.0232906919, -0.04938199, -0.1482338607, 0.1101339459, -0.0605433732, 0.1323248893, 0.2601273656, 0.2107938677, 0.0742595345, 0.2487875372, -0.061124187, 0.1535776705, -0.0508144721, -0.4693947136, 0.2518243492, -0.0783604234, 0.0079229325, -0.3655865788, 0.0975493416, -0.1030972227, -0.2655678391, -0.003170131, -0.2116549015, 0.1113094091, 0.109749645, 0.1644176841, -0.1983311623, -0.0019175282, 0.2205998749, -0.311198324, 0.3991578221, -0.2442425191, -0.0184905641, 0.0290291384, 0.3571319878, 0.3908421993, -0.2759010196, -0.1644444764, 0.2347951978, 0.0223703664, -0.290648818, -0.289475888, 0.3155040741, 0.1678451598, -0.3867719173, 0.0024175569, -0.282569617, 0.0304203443, -0.0328211412, 0.1935180724, 0.5273357034, -0.1704326123, 0.3984833658, -0.261098057, 0.1100404859, 0.0254600756, 0.1451860219, 0.0004744837, -0.1778209955, 0.3125910759, 0.3107433915, 0.1120004654, 0.0675271302, -0.1241337731, -0.0501553193, 0.2982763648, 0.0116720451, 0.1062054858, 0.0498674959, -0.0823499039, -0.0183439665, 0.1508108526, -0.2998587191, 0.1713972092, 0.1358767152, -0.0547965877, 0.0122383041, -0.0049690492, -0.0121082328, 0.2557176352, 0.021253068, 0.3840558231, 0.1920321882, 0.0013483219, -0.0890294984, -0.1562478244, -0.1054887027, 0.1233059987, 0.4478665888, -0.2748396397, 0.0627048239, -0.0854326934, 0.0197415836, -0.1227131635, -0.3330767155, -0.619365871, -0.1888412088, 0.1114288568, 0.0365405977, 0.0309600122, 0.0561555848, 0.1487269551, -0.0703547969, 0.2286866456, 0.1457812935, 0.1693617254, -0.0629822835, -0.1823608875, -0.1482488364, 0.1953945756, -0.0163385179, 0.0471094772, 0.1365008354, -0.0967718512, -0.0325958207, -0.589405179, 0.3106524348, -0.056813661, 0.3301674426, 0.0491233096, 0.1147355288, -0.0633860901, -0.1362300813, 0.1913003176, 0.0995126069, -0.2120433301, 0.0822475255, -0.0835592896, 0.2379556447, -0.1326673776, -0.0950535238, -0.2327531576, -0.4111004174, 0.2914522588, -0.1913593709, 0.0587135255, 0.2794516385, -0.1564148515, -0.0205892678, 0.0797984004, -0.1391311586, -0.3224677444, 0.1024729982, 0.3471242189, -0.2841886878, -0.2615578175, -0.2328039855, 0.1744872481, 0.210963428, -0.1036835387, -0.4139458537, -0.0216100924, -0.124704957, 0.0797614306, -0.2371438593, 0.1470893323, 0.3746412098, -0.1469143629, -0.0013901464, -0.1065230817, -0.1248334795, 0.1823370904, -0.0900527686, 0.0056254449, -0.0408161245, 0.744967103, -0.1414621621, 0.5462420583, 0.1166381016, 0.0463525131, 0.3334825933, -0.1853602827, 0.3638514578, -0.092579186, -0.3035498857, 0.2539815307, 0.2515972555, -0.2397889495, 0.163525641, -0.162768811, 0.0914803073, -0.0657882467, -0.1014053151, 0.054939229, -0.2810799778, -0.1190142781, 0.4435955584, 0.3401423395, 0.07350564, 0.4127734303, -0.0851289481, -0.1578100771, 0.106077373, -0.0302281529, -0.038312152, 0.141588062, -0.6263700724, -0.4313114285, -0.5289624929, 0.4155209064, 0.0741581693, 0.7487248182, -0.1871676296, 0.1006234139, 0.071251072, 0.0639622286, 0.7198230624, 0.2071080357, -0.0213007051, -0.0399167053, -0.1477173865, -0.2423107326, -0.14080064, -0.027839059, 0.566105783, 0.0240686983, 0.6595686674, -0.256732583, -0.2979438305, 0.3916326165, 0.132049039, -0.1679749787, -0.0606125444, -0.1955356598, -0.3098438382, -0.2639373243, 0.3379351497, 0.1940554529, 0.5438349843, -0.1234487295, -0.0158896632, 0.1631440818, -0.1943351179, 0.1099147648, 0.1643003523, 0.4007403553, 0.0797049701, 0.0898570418, 0.2112825811, -0.0558952391, 0.5950175524, 0.1040690765, -0.0604193062, -0.0915403813, 0.1939140856, 0.0131677454, 0.3254160285, 0.1391024292, 0.0967574865, 0.108020246, 0.1463081092, 0.3830467761, -0.2549984455, -0.0272543002, 0.2192223966, 0.2564139068, -0.3760879934, 0.0446603484, 0.0586690307, 0.0565801822, -0.0172104221, 0.261542052, 0.3256276548, -0.1692549288, 0.1965737641, 0.4372457564, 1.1253499985, -0.2956343591, -0.0780402124, -0.1270175129, -0.3361198306, 0.6042554975, -0.2630313039, -0.0462498628, -0.3473005891, -0.1285598725, 0.0290814899, -0.1867011189, -0.0097717643, -0.2190950513, -0.099764891, 0.1527132094, -0.2251033634, -0.1580949724, -0.2182854265, 0.2269459814, 0.3224571347, -0.2332210839, -0.1530531645, -0.032768406, -0.0646059886, 0.1714262813, -0.2102533728, -0.1722315699, 0.1970993131, -0.2368188798, -0.229995057, -0.1415080875, -0.4525683522, 0.2946379185, 0.0208069887, -0.3227230608, 0.3300318718, 0.1336202174, 0.122814998, 0.4325303435, -0.2202582657, -0.0268769339, -0.0063689174, -0.1093929037, -0.0867891535, 0.067453891, 0.0446672626, -0.1134756431, -0.41933465, 0.1008558944, -0.0415860675, -0.0372323692, -0.1182166338, 0.1514537632, 0.1590323299, -0.2331365198, 0.3106336296, 0.0292768702, -0.1071385667, -0.2391302884, -0.060549587, 0.1102113724, -0.4307789803, 0.0195448324, 0.0935489535, -0.4853806496, 0.0089950804, 0.441426158, -0.0217243806, -0.1256334186, 0.5604749918, 0.3870260119, -0.0833010897, -0.089131169, 0.0665603504, 0.3794843853, -0.3428507745, -0.0206784327, -0.0268813837, 0.0366380811, -0.0318850912, 0.0771934763, 0.1465907544, -0.0055676196, -0.1001250595, -0.492774725, -0.4502182901, 0.1050363332, -0.1411195248, 0.0919765234, 0.1732305139, 0.0533687733, -0.2124430537, -0.0619376786, -0.1585217416, -0.0634853095, -0.4207331538, 0.2324084491, 0.1008738354, -0.4312162399, 0.0396449789, -0.0233105235, -0.0935195833, 0.190282777, -0.3172388673, -0.0028024747, -0.1553544253, 0.2393624932, -0.0955502763, -0.5256474614, 0.0028378349, -0.140263021, -0.1286251247, -0.1450249404, -0.068464458, 0.1721591204, 0.0660324395, -0.2844122052, 0.2785305977, -0.2525465786, -0.1802475303, 0.0735499635, 0.2667730153, 0.1805520356, -0.0312234424, 0.4272299409, 0.0469694734, -0.1794164181, -0.4443587661, 0.0844650343, 0.2403595001, -0.3084858954, 0.0818070322, -0.2272558659, -0.1002404168, 0.4624744356, 0.4395344257, 0.3952622116, 0.0054787258, -0.064010337, 0.2593305409, 0.0696911961, -0.1671455801, -0.1368119866, 0.2515741587, -0.0049366136, -0.0690293908, 0.4297881126, 0.2808301747, 0.0913783833, 0.0630439296, 0.042307321, 0.2633594275, 0.1425084025, 0.0828460082, 0.1284722537, -0.0913550779, -0.0380902141, 0.2750042081, -0.0623215288, 0.403942287, 0.3254383504, -0.1907829046, 0.128417924, 0.4210964739, 0.1274310499, 0.1366223246, -0.2624634504, -0.1123235598, 0.224453494, 0.2346692085, 0.1128059626, -0.1113442183, 0.7335340381, -0.0874511302, -0.3345424533, -0.0257382281, 0.4591719508, -0.2747836709, -0.0890219137, -0.1561335474, -0.1324679554, -0.0322468914, -0.0687891766, 0.1778805554, 0.0589249395, -0.022229502, 0.0233923309, -0.2222555578, -0.3103195131, -0.5450295806, 0.535775125, -0.0293436553, -0.3221193254, 0.3328134716, 0.3862287998, -0.1073277295, 0.1693546027, 0.3321025074, 0.5232442617, 0.2326999456, -0.1036635861, -0.0796247944, 0.0639354512, 0.1587668955, -0.0327848904, -0.0839481801, 0.0879546106, 0.1356129944, 0.0877456143, -0.0667450875, -0.0521092266, -0.0449391231, 0.2036180794, 0.059541706, 0.0997647569, -0.5444079041, -0.1548724622, -0.1310879737, -0.3298233747, 0.0288381316, -0.1454808712, 0.2842451632, 0.3009549677, -0.043853309, 0.0339539982, 0.0367656462, 0.0023883667, -0.1856235117, 0.4092006683, 0.4066258371, 0.0112804901, -0.2685202062, -0.1344892681, -0.4066004157, 0.2426140457, -0.3182494938, -0.1087302715, 0.416859746, 0.1510165483, 0.0382542647, 0.045189999, 0.4998104274, -0.2465703338, -0.1361931562, 0.2110146135, -0.3237794936, -0.0380775928, -0.2183674425, -0.0580943227, 0.1589757055, 0.0137183657, 0.3272310793, -0.0570998825, -0.0797361955, -0.3092330992, 0.2265753895, -0.3428743184, -0.0971134156, 0.183123976, 0.4092594385, 0.2603728771, 0.1465851367, 0.0863462016, 0.1715342402, -0.2983759344, -0.0559378974, 0.2614254355, 0.0259769205, 0.0188193955, -0.1280235201, -0.7292592525, -0.4894469082, 0.1618307382, 0.0186067093, -0.2161203474, -0.2587123811, 0.3220771253, -0.0869766846, 0.0181751885, 0.1464764178, 0.3136514127, 0.3915126324, 0.2425848097, -0.2641707361, -0.4147348702, 0.6981278062, -0.5851550102, -0.2028038204, -0.2027395815, 0.2233408689, 0.5235947967, -0.3709132969, -0.3115879297, -0.0513183586, 0.2126802951, 0.234611392, -0.4300560057, -0.0479074828, -0.2759914398, -0.087455079, 0.0262602996, -0.0255268309, 0.1617362797, -0.2601891458, 0.26983428, -0.0476779975 ]
https://github.com/huggingface/datasets/issues/2056
issue with opus100/en-fr dataset
as per https://github.com/huggingface/tokenizers/issues/626 this looks like to be the tokenizer bug, I therefore, reported it there https://github.com/huggingface/tokenizers/issues/626 and I am closing this one.
Hi I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this? Thanks a lot @lhoestq for your help in advance. ` thread '<unnamed>' panicked at 'index out of bounds: the len is 617 but the index is 617', /__w/tokenizers/tokenizers/tokenizers/src/tokenizer/normalizer.rs:382:21 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 63%|██████████████████████████████████████████████████████████▊ | 626/1000 [00:27<00:16, 22.69ba/s] Traceback (most recent call last): File "run_mlm.py", line 550, in <module> main() File "run_mlm.py", line 412, in main in zip(data_args.dataset_name, data_args.dataset_config_name)] File "run_mlm.py", line 411, in <listcomp> logger) for dataset_name, dataset_config_name\ File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 96, in get_tokenized_dataset load_from_cache_file=not data_args.overwrite_cache, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in map for k, dataset in self.items() File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in <dictcomp> for k, dataset in self.items() File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1309, in map update_data=update_data, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 204, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/fingerprint.py", line 337, in wrapper out = func(self, *args, **kwargs) File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1574, in _map_single batch, indices, check_same_num_examples=len(self.list_indexes()) > 0, offset=offset File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1490, in apply_function_on_filtered_inputs function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 89, in tokenize_function return tokenizer(examples[text_column_name], return_special_tokens_mask=True) File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2347, in __call__ **kwargs, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2532, in batch_encode_plus **kwargs, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 384, in _batch_encode_plus is_pretokenized=is_split_into_words, pyo3_runtime.PanicException: index out of bounds: the len is 617 but the index is 617 `
23
issue with opus100/en-fr dataset Hi I am running run_mlm.py code of huggingface repo with opus100/fr-en pair, I am getting this error, note that this error occurs for only this pairs and not the other pairs. Any idea why this is occurring? and how I can solve this? Thanks a lot @lhoestq for your help in advance. ` thread '<unnamed>' panicked at 'index out of bounds: the len is 617 but the index is 617', /__w/tokenizers/tokenizers/tokenizers/src/tokenizer/normalizer.rs:382:21 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 63%|██████████████████████████████████████████████████████████▊ | 626/1000 [00:27<00:16, 22.69ba/s] Traceback (most recent call last): File "run_mlm.py", line 550, in <module> main() File "run_mlm.py", line 412, in main in zip(data_args.dataset_name, data_args.dataset_config_name)] File "run_mlm.py", line 411, in <listcomp> logger) for dataset_name, dataset_config_name\ File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 96, in get_tokenized_dataset load_from_cache_file=not data_args.overwrite_cache, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in map for k, dataset in self.items() File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/dataset_dict.py", line 448, in <dictcomp> for k, dataset in self.items() File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1309, in map update_data=update_data, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 204, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/fingerprint.py", line 337, in wrapper out = func(self, *args, **kwargs) File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1574, in _map_single batch, indices, check_same_num_examples=len(self.list_indexes()) > 0, offset=offset File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1490, in apply_function_on_filtered_inputs function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) File "/user/dara/dev/codes/seq2seq/data/tokenize_datasets.py", line 89, in tokenize_function return tokenizer(examples[text_column_name], return_special_tokens_mask=True) File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2347, in __call__ **kwargs, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2532, in batch_encode_plus **kwargs, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 384, in _batch_encode_plus is_pretokenized=is_split_into_words, pyo3_runtime.PanicException: index out of bounds: the len is 617 but the index is 617 ` as per https://github.com/huggingface/tokenizers/issues/626 this looks like to be the tokenizer bug, I therefore, reported it there https://github.com/huggingface/tokenizers/issues/626 and I am closing this one.
[ -0.4117368162, -0.1673515141, -0.0156451836, 0.3972487152, 0.1182574853, 0.0823765546, 0.192252174, 0.2819979489, -0.1431498379, 0.2579927444, -0.2424351871, -0.0248961765, 0.1322235465, 0.3834213614, -0.2399136871, -0.172585234, -0.078272, 0.1208089516, -0.4165076315, -0.1202893704, -0.455948025, 0.223883763, -0.1563928574, 0.2297670841, 0.3186606765, -0.070255667, 0.1518447995, 0.0579339042, -0.2905828059, -0.3938674927, -0.1512019932, -0.2992525697, 0.3983564079, 0.2486604601, -0.0001240568, 0.0139627149, 0.1579870284, -0.0384620391, 0.0809596106, -0.0592178255, 0.1000377163, 0.1473320425, -0.028712241, -0.3051401675, 0.0371817276, -0.2251011282, -0.3708877861, -0.2680356503, 0.2880219519, 0.375313133, 0.0867759138, 0.5228811502, 0.3373612463, -0.1462078393, 0.1830139607, -0.0422984473, 0.058661703, -0.0693613663, 0.3234798908, -0.2280780226, 0.3684238195, 0.2993508875, -0.1102046221, -0.1365144104, 0.220376581, -0.2563658655, 0.6804654002, -0.5535478592, 0.0111164199, 0.3440344632, 0.0739906281, 0.0230663419, -0.0722476169, 0.0284321811, -0.0147415604, -0.812233448, -0.0916821882, 0.1136499047, -0.0426639244, 0.1667119414, -0.328124851, 0.0566354506, 0.0846513286, 0.1801348478, 0.0343025252, 0.3327201903, 0.0061037894, 0.2988551259, 0.2502728701, -0.229520008, -0.4094229341, 0.2705803216, -0.1085325554, 0.2871655822, -0.4670935869, -0.0439889804, 0.0700743273, -0.1362366676, 0.4946713746, 0.2132565528, -0.5131159425, -0.1626803577, 0.4100390673, -0.0067459918, 0.2849932015, 0.2695944905, -0.0111153945, 0.0230321698, 0.2029657662, 0.021527404, 0.1223783419, -0.0572649315, -0.0405005515, -0.2940118611, -0.2561856508, -0.0725328997, 0.1384641677, -0.489280045, -0.2409023494, 0.3881001472, -0.3146692216, -0.0595292039, 0.5197179317, 0.333930552, 0.1966291666, -0.1151286736, -0.0928356573, 0.2790852189, -0.3406359255, 0.0021831351, -0.0180697422, -0.0317982584, -0.0366428755, 0.0159906317, -0.0337794945, -0.6434462667, 0.2684480548, 0.1619417965, 0.5190973878, -0.4269459844, 0.1198232621, -0.2199244201, -0.0168503541, 0.2775987983, -0.0571953021, 0.1540126055, 0.3632328212, 0.0032505589, -0.059038531, 0.0531925745, -0.4613536298, -0.4059747159, -0.3444900215, 0.0495100506, -0.1387338489, 0.4477999806, 0.1756899655, -0.0166501943, 0.4423443675, -0.1872701943, 0.2043518573, -0.1826286167, -0.3020602465, 0.0518631488, 0.3899739981, 0.139920637, 0.0265582241, 0.1484417915, 0.2194243222, 0.2127538472, 0.366828382, 0.5186989307, -0.2727024555, -0.0015194424, -0.4783479273, 0.2312487364, 0.0005185935, -0.4624031484, -0.2426679581, -0.1247506961, -0.2872538567, -0.294465363, 0.0553656518, -0.1781385094, 0.6758929491, -0.0452675, 0.2189912349, 0.0732169226, 0.0459527001, -0.1863197386, -0.2554851472, 0.0077218628, 0.3513786495, -0.198813051, 0.0082609281, -0.0232906919, -0.04938199, -0.1482338607, 0.1101339459, -0.0605433732, 0.1323248893, 0.2601273656, 0.2107938677, 0.0742595345, 0.2487875372, -0.061124187, 0.1535776705, -0.0508144721, -0.4693947136, 0.2518243492, -0.0783604234, 0.0079229325, -0.3655865788, 0.0975493416, -0.1030972227, -0.2655678391, -0.003170131, -0.2116549015, 0.1113094091, 0.109749645, 0.1644176841, -0.1983311623, -0.0019175282, 0.2205998749, -0.311198324, 0.3991578221, -0.2442425191, -0.0184905641, 0.0290291384, 0.3571319878, 0.3908421993, -0.2759010196, -0.1644444764, 0.2347951978, 0.0223703664, -0.290648818, -0.289475888, 0.3155040741, 0.1678451598, -0.3867719173, 0.0024175569, -0.282569617, 0.0304203443, -0.0328211412, 0.1935180724, 0.5273357034, -0.1704326123, 0.3984833658, -0.261098057, 0.1100404859, 0.0254600756, 0.1451860219, 0.0004744837, -0.1778209955, 0.3125910759, 0.3107433915, 0.1120004654, 0.0675271302, -0.1241337731, -0.0501553193, 0.2982763648, 0.0116720451, 0.1062054858, 0.0498674959, -0.0823499039, -0.0183439665, 0.1508108526, -0.2998587191, 0.1713972092, 0.1358767152, -0.0547965877, 0.0122383041, -0.0049690492, -0.0121082328, 0.2557176352, 0.021253068, 0.3840558231, 0.1920321882, 0.0013483219, -0.0890294984, -0.1562478244, -0.1054887027, 0.1233059987, 0.4478665888, -0.2748396397, 0.0627048239, -0.0854326934, 0.0197415836, -0.1227131635, -0.3330767155, -0.619365871, -0.1888412088, 0.1114288568, 0.0365405977, 0.0309600122, 0.0561555848, 0.1487269551, -0.0703547969, 0.2286866456, 0.1457812935, 0.1693617254, -0.0629822835, -0.1823608875, -0.1482488364, 0.1953945756, -0.0163385179, 0.0471094772, 0.1365008354, -0.0967718512, -0.0325958207, -0.589405179, 0.3106524348, -0.056813661, 0.3301674426, 0.0491233096, 0.1147355288, -0.0633860901, -0.1362300813, 0.1913003176, 0.0995126069, -0.2120433301, 0.0822475255, -0.0835592896, 0.2379556447, -0.1326673776, -0.0950535238, -0.2327531576, -0.4111004174, 0.2914522588, -0.1913593709, 0.0587135255, 0.2794516385, -0.1564148515, -0.0205892678, 0.0797984004, -0.1391311586, -0.3224677444, 0.1024729982, 0.3471242189, -0.2841886878, -0.2615578175, -0.2328039855, 0.1744872481, 0.210963428, -0.1036835387, -0.4139458537, -0.0216100924, -0.124704957, 0.0797614306, -0.2371438593, 0.1470893323, 0.3746412098, -0.1469143629, -0.0013901464, -0.1065230817, -0.1248334795, 0.1823370904, -0.0900527686, 0.0056254449, -0.0408161245, 0.744967103, -0.1414621621, 0.5462420583, 0.1166381016, 0.0463525131, 0.3334825933, -0.1853602827, 0.3638514578, -0.092579186, -0.3035498857, 0.2539815307, 0.2515972555, -0.2397889495, 0.163525641, -0.162768811, 0.0914803073, -0.0657882467, -0.1014053151, 0.054939229, -0.2810799778, -0.1190142781, 0.4435955584, 0.3401423395, 0.07350564, 0.4127734303, -0.0851289481, -0.1578100771, 0.106077373, -0.0302281529, -0.038312152, 0.141588062, -0.6263700724, -0.4313114285, -0.5289624929, 0.4155209064, 0.0741581693, 0.7487248182, -0.1871676296, 0.1006234139, 0.071251072, 0.0639622286, 0.7198230624, 0.2071080357, -0.0213007051, -0.0399167053, -0.1477173865, -0.2423107326, -0.14080064, -0.027839059, 0.566105783, 0.0240686983, 0.6595686674, -0.256732583, -0.2979438305, 0.3916326165, 0.132049039, -0.1679749787, -0.0606125444, -0.1955356598, -0.3098438382, -0.2639373243, 0.3379351497, 0.1940554529, 0.5438349843, -0.1234487295, -0.0158896632, 0.1631440818, -0.1943351179, 0.1099147648, 0.1643003523, 0.4007403553, 0.0797049701, 0.0898570418, 0.2112825811, -0.0558952391, 0.5950175524, 0.1040690765, -0.0604193062, -0.0915403813, 0.1939140856, 0.0131677454, 0.3254160285, 0.1391024292, 0.0967574865, 0.108020246, 0.1463081092, 0.3830467761, -0.2549984455, -0.0272543002, 0.2192223966, 0.2564139068, -0.3760879934, 0.0446603484, 0.0586690307, 0.0565801822, -0.0172104221, 0.261542052, 0.3256276548, -0.1692549288, 0.1965737641, 0.4372457564, 1.1253499985, -0.2956343591, -0.0780402124, -0.1270175129, -0.3361198306, 0.6042554975, -0.2630313039, -0.0462498628, -0.3473005891, -0.1285598725, 0.0290814899, -0.1867011189, -0.0097717643, -0.2190950513, -0.099764891, 0.1527132094, -0.2251033634, -0.1580949724, -0.2182854265, 0.2269459814, 0.3224571347, -0.2332210839, -0.1530531645, -0.032768406, -0.0646059886, 0.1714262813, -0.2102533728, -0.1722315699, 0.1970993131, -0.2368188798, -0.229995057, -0.1415080875, -0.4525683522, 0.2946379185, 0.0208069887, -0.3227230608, 0.3300318718, 0.1336202174, 0.122814998, 0.4325303435, -0.2202582657, -0.0268769339, -0.0063689174, -0.1093929037, -0.0867891535, 0.067453891, 0.0446672626, -0.1134756431, -0.41933465, 0.1008558944, -0.0415860675, -0.0372323692, -0.1182166338, 0.1514537632, 0.1590323299, -0.2331365198, 0.3106336296, 0.0292768702, -0.1071385667, -0.2391302884, -0.060549587, 0.1102113724, -0.4307789803, 0.0195448324, 0.0935489535, -0.4853806496, 0.0089950804, 0.441426158, -0.0217243806, -0.1256334186, 0.5604749918, 0.3870260119, -0.0833010897, -0.089131169, 0.0665603504, 0.3794843853, -0.3428507745, -0.0206784327, -0.0268813837, 0.0366380811, -0.0318850912, 0.0771934763, 0.1465907544, -0.0055676196, -0.1001250595, -0.492774725, -0.4502182901, 0.1050363332, -0.1411195248, 0.0919765234, 0.1732305139, 0.0533687733, -0.2124430537, -0.0619376786, -0.1585217416, -0.0634853095, -0.4207331538, 0.2324084491, 0.1008738354, -0.4312162399, 0.0396449789, -0.0233105235, -0.0935195833, 0.190282777, -0.3172388673, -0.0028024747, -0.1553544253, 0.2393624932, -0.0955502763, -0.5256474614, 0.0028378349, -0.140263021, -0.1286251247, -0.1450249404, -0.068464458, 0.1721591204, 0.0660324395, -0.2844122052, 0.2785305977, -0.2525465786, -0.1802475303, 0.0735499635, 0.2667730153, 0.1805520356, -0.0312234424, 0.4272299409, 0.0469694734, -0.1794164181, -0.4443587661, 0.0844650343, 0.2403595001, -0.3084858954, 0.0818070322, -0.2272558659, -0.1002404168, 0.4624744356, 0.4395344257, 0.3952622116, 0.0054787258, -0.064010337, 0.2593305409, 0.0696911961, -0.1671455801, -0.1368119866, 0.2515741587, -0.0049366136, -0.0690293908, 0.4297881126, 0.2808301747, 0.0913783833, 0.0630439296, 0.042307321, 0.2633594275, 0.1425084025, 0.0828460082, 0.1284722537, -0.0913550779, -0.0380902141, 0.2750042081, -0.0623215288, 0.403942287, 0.3254383504, -0.1907829046, 0.128417924, 0.4210964739, 0.1274310499, 0.1366223246, -0.2624634504, -0.1123235598, 0.224453494, 0.2346692085, 0.1128059626, -0.1113442183, 0.7335340381, -0.0874511302, -0.3345424533, -0.0257382281, 0.4591719508, -0.2747836709, -0.0890219137, -0.1561335474, -0.1324679554, -0.0322468914, -0.0687891766, 0.1778805554, 0.0589249395, -0.022229502, 0.0233923309, -0.2222555578, -0.3103195131, -0.5450295806, 0.535775125, -0.0293436553, -0.3221193254, 0.3328134716, 0.3862287998, -0.1073277295, 0.1693546027, 0.3321025074, 0.5232442617, 0.2326999456, -0.1036635861, -0.0796247944, 0.0639354512, 0.1587668955, -0.0327848904, -0.0839481801, 0.0879546106, 0.1356129944, 0.0877456143, -0.0667450875, -0.0521092266, -0.0449391231, 0.2036180794, 0.059541706, 0.0997647569, -0.5444079041, -0.1548724622, -0.1310879737, -0.3298233747, 0.0288381316, -0.1454808712, 0.2842451632, 0.3009549677, -0.043853309, 0.0339539982, 0.0367656462, 0.0023883667, -0.1856235117, 0.4092006683, 0.4066258371, 0.0112804901, -0.2685202062, -0.1344892681, -0.4066004157, 0.2426140457, -0.3182494938, -0.1087302715, 0.416859746, 0.1510165483, 0.0382542647, 0.045189999, 0.4998104274, -0.2465703338, -0.1361931562, 0.2110146135, -0.3237794936, -0.0380775928, -0.2183674425, -0.0580943227, 0.1589757055, 0.0137183657, 0.3272310793, -0.0570998825, -0.0797361955, -0.3092330992, 0.2265753895, -0.3428743184, -0.0971134156, 0.183123976, 0.4092594385, 0.2603728771, 0.1465851367, 0.0863462016, 0.1715342402, -0.2983759344, -0.0559378974, 0.2614254355, 0.0259769205, 0.0188193955, -0.1280235201, -0.7292592525, -0.4894469082, 0.1618307382, 0.0186067093, -0.2161203474, -0.2587123811, 0.3220771253, -0.0869766846, 0.0181751885, 0.1464764178, 0.3136514127, 0.3915126324, 0.2425848097, -0.2641707361, -0.4147348702, 0.6981278062, -0.5851550102, -0.2028038204, -0.2027395815, 0.2233408689, 0.5235947967, -0.3709132969, -0.3115879297, -0.0513183586, 0.2126802951, 0.234611392, -0.4300560057, -0.0479074828, -0.2759914398, -0.087455079, 0.0262602996, -0.0255268309, 0.1617362797, -0.2601891458, 0.26983428, -0.0476779975 ]
https://github.com/huggingface/datasets/issues/2055
is there a way to override a dataset object saved with save_to_disk?
I tried this way, but when there is a mapping process to the dataset, it again uses a random cache name. atm, I am trying to use the following method by setting an exact cache file, ``` dataset_with_embedding =csv_dataset.map( partial(self.embed, ctx_encoder=ctx_encoder, ctx_tokenizer=self.context_tokenizer), batched=True, batch_size=1, features=new_features, cache_file_name=cache_arrow_path, load_from_cache_file=False ) ``` So here we set a cache_file_name , after this it uses the same file name when saving again and again.
At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object?
69
is there a way to override a dataset object saved with save_to_disk? At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object? I tried this way, but when there is a mapping process to the dataset, it again uses a random cache name. atm, I am trying to use the following method by setting an exact cache file, ``` dataset_with_embedding =csv_dataset.map( partial(self.embed, ctx_encoder=ctx_encoder, ctx_tokenizer=self.context_tokenizer), batched=True, batch_size=1, features=new_features, cache_file_name=cache_arrow_path, load_from_cache_file=False ) ``` So here we set a cache_file_name , after this it uses the same file name when saving again and again.
[ 0.0187767781, -0.1548895091, -0.0146413958, -0.039853096, 0.2449169457, 0.27030316, 0.1437665373, 0.1278597862, 0.1100361273, 0.1771550775, 0.350451678, 0.4532105327, -0.2038120478, -0.0362367705, 0.2456677556, 0.1528114676, 0.4748809338, -0.0202536061, -0.0256068241, 0.2713933289, -0.4494593441, 0.2261942327, 0.2889961898, -0.0424482115, -0.1577512771, -0.1020553634, 0.0510716289, -0.1924007684, 0.1730675101, -0.4009982944, 0.287232995, 0.1724157482, 0.0001326223, 0.1486885697, -0.0001201857, -0.1788833886, -0.0300844293, -0.117580533, -0.246746704, 0.1999173015, -0.2080585659, -0.307674706, 0.0557783321, -0.5268291235, 0.2334905118, 0.0689519495, 0.230157584, -0.3817866147, 0.1915486455, -0.1445046067, 0.1007297039, -0.1398894042, 0.0179280117, 0.2429854721, 0.0684332326, -0.0258231107, -0.2400589734, 0.2939264774, 0.0257163309, 0.3028872907, 0.1099614128, 0.0542864762, -0.1694211215, 0.0480512753, 0.6855141521, -0.0258400608, -0.2212390006, -0.0490674525, 0.2112250179, 0.0301926676, 0.6607097387, -0.447722882, -0.1442880332, -0.0601025559, -0.0591602102, -0.4760396481, 0.2344959229, -0.2521853447, 0.0912588984, 0.1244170815, -0.1475169659, -0.567283988, -0.1388990283, 0.0413070284, 0.2410660088, -0.4322020113, -0.147163704, 0.2276436687, 0.2035795599, -0.0040799575, 0.4306220412, -0.393455416, -0.3842325807, -0.2030831128, -0.2061025947, -0.1462682188, -0.3850920796, 0.2905323505, 0.0256244466, 0.1989115626, 0.4617833793, 0.2264643162, -0.0000423179, 0.2483999133, 0.0427426845, 0.2869016528, 0.0507778525, 0.0147925932, 0.0957553759, -0.2234203815, -0.2146577686, -0.1435916573, 0.267670393, -0.3017748892, 0.6434223056, -0.1205692142, 0.0917804539, -0.1733264178, 0.1807955801, -0.0465303808, 0.2298900634, 0.2185385525, -0.1140380129, -0.0172940232, 0.0165866204, -0.0285297465, -0.1195977479, 0.0099903271, 0.1471546292, 0.1509024352, 0.0224686898, -0.1985745132, 0.1876463741, 0.426202029, 0.1172284335, 0.0619217679, 0.0814465359, -0.1745310128, 0.0754380375, -0.1534605175, 0.2329119444, 0.0419624038, 0.4006012976, -0.1149874851, -0.1312372833, 0.272993207, 0.0239582974, -0.2295752764, -0.146640867, 0.2271618545, -0.3677089512, -0.3400831223, 0.1010108441, 0.0235982463, -0.3579704762, -0.0778509229, -0.5644940138, 0.0533480048, 0.0624165572, -0.2227297872, 0.2458759695, 0.2875828743, -0.1862508208, -0.3175989389, -0.0898552462, 0.2636731863, -0.3861020803, -0.0023469524, -0.0945786908, 0.0642214715, -0.3352027535, -0.0623731874, -0.1391377449, -0.230237186, -0.3009422719, -0.0663432553, 0.3127155602, -0.2570268512, -0.6499445438, -0.0419119224, -0.0457671396, -0.0369239375, 0.1332405508, 0.3977477252, 0.2084971517, -0.0175149627, -0.3062954545, 0.0642198995, 0.0359243006, -0.2491101772, -0.1534538865, -0.1586133093, -0.1160493866, -0.2702699602, -0.2579093575, 0.381293714, -0.046005819, -0.180678457, 0.0544844717, 0.0745688975, 0.2152923346, 0.4588147104, 0.3959975243, -0.1752634645, -0.0587204322, -0.10273204, -0.4525175095, 0.0595373176, 0.4358713329, -0.4237768352, 0.1029203162, -0.2893722951, 0.0303790234, 0.0588050187, -0.1857585162, 0.0930103138, -0.049470596, 0.3206635118, 0.0682428926, -0.1817136407, -0.2254606336, 0.3056719005, 0.0819493756, 0.0807871297, -0.1969591826, -0.083945334, 0.0476202667, -0.0904087648, -0.4644239843, -0.2012927532, 0.1987290531, -0.1882761717, -0.1613457799, 0.4910293519, -0.1910768747, 0.2047096044, 0.1569011509, 0.4119256139, -0.0411736108, -0.3291230202, 0.2022397816, 0.0987959802, 0.0716335773, 0.0659280047, -0.1734007746, 0.287024945, 0.0487032384, 0.0785164014, -0.0599836931, 0.1326055527, 0.2257097363, -0.0373645425, -0.199509263, -0.2379369736, -0.3404458165, 0.1995521337, 0.3960499465, -0.1004429013, -0.1189198047, 0.177639693, 0.5097336769, 0.037455976, 0.1199826151, -0.0382119976, -0.3550256193, -0.1304751635, -0.0980043113, 0.606318593, 0.3569962084, 0.1172185391, 0.0578323714, -0.2137328535, 0.1126819327, 0.005104891, 0.2453829199, 0.1002432406, 0.2005969733, -0.0218011886, 0.2279221863, -0.1744116098, -0.211796537, 0.1703078598, 0.0876710489, -0.0393562056, 0.0572532676, 0.1778854281, -0.1406293511, -0.0025293238, -0.3594078422, 0.1417997628, -0.3370630145, -0.2788515091, -0.0700387582, 0.5343755484, 0.0857302025, 0.1341636479, -0.0817064047, 0.4854326546, -0.1819153875, -0.4802110195, -0.063545987, 0.076565735, -0.1230188459, -0.0975039378, 0.0190394595, -0.4540123343, 0.2778124809, 0.1107963249, 0.2113088816, -0.637880981, 0.1011236235, -0.1067346856, 0.3585081398, 0.2471571416, -0.1479628533, 0.1134594828, -0.2218861878, -0.0172918718, -0.071141094, -0.022931233, 0.0792187154, -0.0204044543, 0.0352687985, 0.1745038927, 0.0540651307, 0.1256752163, -0.2316398919, -0.1592326164, 0.1551641077, -0.1161961555, -0.0059293434, -0.1207595468, 0.0031598404, -0.058969669, 0.1094885916, -0.4539580941, -0.2308217287, -0.665976584, 0.5767187476, -0.2546723485, -0.0310066156, 0.1016662642, -0.0943055525, -0.0100528402, 0.2011736482, -0.3397993147, -0.1034178212, -0.100875847, 0.2234287858, 0.0948505551, -0.341152072, 0.2415472567, 0.5115861893, -0.0540489033, -0.0983426943, -0.5508165359, 0.2543378174, 0.2440880537, 0.4389618337, 0.3565296531, 0.183232531, 0.0426169187, 0.4608435333, -0.2074300945, 0.0254488382, 0.4877780378, 0.1006797329, 0.390710175, 0.0514016114, -0.0589574575, -0.2013407648, -0.3123384118, -0.1426021606, -0.0268096011, -0.0115304943, -0.0156696327, 0.2334086299, 0.0504276194, -0.029805433, -0.3346699178, 0.0077391197, -0.2926948369, 0.1200676635, 0.0433672369, -0.1981488466, -0.4714187086, -0.214931801, 0.0872354209, 0.3912338316, 0.1272735745, -0.0826747864, -0.5049141049, -0.0117390463, -0.4805618227, 0.4296470582, -0.2495910823, 0.1166210771, 0.0442131236, 0.0584541075, -0.1080803499, -0.0846034661, 0.8759824634, -0.1353389323, 0.1624020785, -0.0896900818, 0.1907723844, -0.0841154605, 0.0878337994, 0.4205206037, 0.4367336929, -0.2517592013, 0.2692506015, 0.2571452558, -0.0806379616, -0.1169360876, 0.3535147011, -0.5934962034, -0.1206402853, 0.2151966393, -0.08269234, -0.0579545461, -0.3540090322, 0.1801161766, 0.0230672937, 0.1058656797, -0.0819564536, -0.422765106, -0.0343435481, 0.0452644899, -0.2890198529, 0.4680197239, -0.1545279473, 0.0069531929, -0.0850612223, 0.290959239, 0.3853338659, 0.2827958763, -0.338439554, -0.3447604477, -0.0637483448, -0.1411976665, 0.1837269366, 0.1123543829, -0.0605234988, 0.2421132773, 0.1979688704, -0.1880519837, -0.0057779965, 0.1027545184, -0.0924404711, 0.3334355652, -0.150213033, -0.4014713764, 0.3741705418, 0.2887122333, -0.0066096345, 0.2434090376, 0.1107722744, -0.4094180465, 0.4683392048, 0.0238110404, 0.6857138276, 0.0328954048, 0.3769580424, -0.2315592915, -0.3167062998, 0.1525563747, -0.089173831, 0.0909284353, -0.1217388138, -0.221210286, -0.0291228108, 0.0953060538, 0.3272643387, 0.4822127223, -0.0502737127, 0.3661994338, -0.151913926, 0.0964505374, -0.2594844103, 0.0771627873, -0.1766588688, -0.1769029349, 0.1472627968, 0.0571524575, 0.0117420498, -0.1370297372, 0.1000075936, -0.0760275349, 0.0786841214, -0.0002039012, -0.1984478384, -0.2250743657, -0.1740600318, -0.2131841183, -0.246996358, -0.4627685547, 0.0121719567, 0.2771262228, 0.327208817, 0.0756050646, -0.013924513, 0.1802670956, 0.2220171392, 0.0546763986, -0.2464648336, -0.076786615, 0.1695952117, 0.0448295623, 0.0436457396, 0.0350597948, 0.0726728663, -0.4616366327, 0.3340902925, -0.1473328322, 0.1642682701, -0.0476405397, -0.5405940413, -0.1617496908, -0.2307674438, -0.3211683035, 0.0524357595, -0.1010849327, -0.0542558804, 0.3596064448, -0.2378883511, -0.0876783058, 0.1408547461, 0.3142167032, -0.1157859713, -0.1948654354, 0.6367976665, -0.4938900769, 0.0482372195, -0.1050163731, 0.2423694879, 0.100889653, -0.0780597404, 0.1757740676, -0.1397128105, 0.1140778437, -0.066597864, -0.1368861049, 0.1169704869, 0.3202652037, -0.2614652216, -0.1922058612, -0.4788093865, -0.1056258306, 0.2239227444, 0.3366800249, -0.0704571754, -0.4245382845, -0.1424574405, -0.0476738103, -0.144659102, 0.0385073647, 0.0199614633, -0.0327935666, 0.2165951282, 0.4628361166, 0.0585297756, -0.0902768448, -0.0717541426, -0.0228660312, -0.0630901456, -0.134251222, -0.2262948751, 0.1888588071, -0.126693055, -0.2323740423, -0.1736096442, -0.3062692583, 0.2362319976, -0.0703761354, -0.2308467925, 0.189165473, 0.1071475968, 0.286000073, -0.0335355178, 0.1115002334, 0.0147683993, -0.1662112772, 0.218454048, 0.383931905, 0.1790776551, 0.2159478962, -0.0518779233, -0.0688613802, -0.142763719, -0.1199696586, -0.0518737473, -0.0187681355, -0.1914044023, -0.1052305624, -0.0720739961, 0.4625987113, 0.1093424484, 0.0106470343, -0.2217102945, -0.1483029276, 0.3819297254, 0.0556835346, 0.0622013249, -0.3556947708, 0.4837986529, -0.3391483724, 0.0261015072, 0.1197485104, 0.1509520859, 0.0948638916, -0.2867467701, -0.1076821834, 0.3201237023, -0.4162609875, 0.276483357, 0.1164498478, 0.1428448111, 0.1220631003, 0.4623323977, 0.3871822059, 0.3841489255, 0.775197506, -0.0112572517, 0.0066852984, 0.4595457613, -0.084963046, -0.0102798371, -0.1649312675, 0.1495009959, -0.1043561772, -0.0656157658, 0.5459071398, 0.4420743585, 0.0076585491, 0.0097147673, -0.3250497282, 0.0948144495, -0.0091078486, 0.0600404181, -0.3881410956, 0.2045372427, 0.0207889285, 0.175720796, 0.2321554571, -0.2062300146, -0.3199567497, 0.3652496338, -0.1482037753, 0.0497946031, 0.2316644788, 0.2691746354, -0.112010397, 0.1832071692, -0.0372555368, -0.126114741, -0.3010333478, -0.0776103735, 0.0920066163, -0.0261491574, -0.1929473281, -0.1082375571, 0.0387250297, 0.1681860983, -0.0358158387, -0.0256357901, -0.1180938035, -0.3194730878, 0.0108244177, -0.3204699755, 0.1494805515, 0.0559626296, 0.0598624945, 0.1930318922, 0.2173727453, 0.4506447911, -0.2284138352, -0.1394961774, 0.290486604, -0.4147696495, -0.0107197072, 0.1111339852, -0.0737022161, -0.3833246529, 0.7265045047, 0.0043068221, 0.0901437253, 0.083971031, 0.0455225445, -0.132595256, 0.3578688502, -0.1725373417, -0.0425364375, -0.2654023767, -0.0307880938, -0.3812367916, 0.1356671751, 0.3085463941, 0.0837809443, -0.1038386375, -0.0707072541, -0.0179448184, -0.0395764224, 0.162376225, -0.0570535064, 0.1817875355, 0.5798848271, -0.2913217843, -0.2843709886, 0.2068997771, 0.3773007393, 0.2617409229, -0.4093432426, -0.1080822498, 0.3444978595, -0.0864498168, 0.0478468388, -0.0441098996, -0.0265317578, 0.051597245, 0.5468361378, 0.0009368957, 0.0241115037, -0.1304380149, 0.0329681635, 0.2813883424, 0.1347509474, -0.3842400908, 0.0073212488, 0.0967046767, 0.1371989399, -0.4002995789, 0.3225999177, -0.1326921433, -0.0920273885, -0.0128563764, -0.1971437782, -0.1830770224, 0.236160934, 0.2111167908, -0.112196587, 0.3844281435, 0.4035890698, -0.0070874947, 0.4863262475, -0.3266411424, 0.4129480422, 0.4259536266, -0.0659817904, -0.0850183144, 0.2840051949, 0.1194755137, 0.2796072364, -0.2027405649, -0.2416628003, -0.1621983051, 0.30664891, -0.2225729525, -0.1236328259, 0.2972764671, -0.4394379258, 0.2138998955, 0.0830425918, 0.9734272957, 0.2376053333, 0.0048443973, -0.2613395452, -0.1835112274 ]
https://github.com/huggingface/datasets/issues/2055
is there a way to override a dataset object saved with save_to_disk?
I'm not sure I understand your issue, can you elaborate ? `cache_file_name` is indeed an argument you can set to specify the cache file that will be used for the processed dataset. By default the file is named with something like `cache-<fingerprint>.arrow` where the fingerprint is a hash.
At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object?
48
is there a way to override a dataset object saved with save_to_disk? At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object? I'm not sure I understand your issue, can you elaborate ? `cache_file_name` is indeed an argument you can set to specify the cache file that will be used for the processed dataset. By default the file is named with something like `cache-<fingerprint>.arrow` where the fingerprint is a hash.
[ 0.005880767, -0.0709292591, -0.045395609, 0.0091857668, 0.2773498893, 0.2527235746, 0.2612769604, 0.2426068187, -0.0535697229, 0.1069627926, 0.302035749, 0.4447039962, -0.1616927981, -0.127957508, 0.2059168369, 0.006320091, 0.3146952689, -0.1188133508, -0.0984395891, 0.1764316112, -0.3626472056, 0.2778184414, 0.2146423161, 0.0628888458, -0.3578143716, -0.105150871, 0.1591539532, 0.023573583, 0.071233809, -0.4981009662, 0.248824209, 0.2438836545, 0.0018547927, 0.0446086414, -0.0001131769, -0.1921940744, 0.175977841, -0.1021561027, -0.3182258308, 0.198914364, -0.2904450893, -0.2070804834, -0.0157761239, -0.537984848, 0.3022143543, 0.0479411446, 0.1390975863, -0.3058046699, 0.156840995, -0.085174568, 0.188307181, -0.1913199723, 0.0957808569, 0.1804770827, 0.0681004077, 0.0802315772, -0.2438440472, 0.2512895167, 0.0216150284, 0.2512299716, 0.0488663465, 0.136855334, -0.0925931856, -0.0484558605, 0.5817065835, -0.057109572, -0.1138633639, 0.0380063243, 0.3123864233, 0.1523032039, 0.7274110913, -0.4069981575, -0.088072814, -0.0935110524, -0.1064908355, -0.278557241, 0.2970905006, -0.2870464623, 0.0314111486, 0.1581905037, -0.1443065107, -0.5655367374, -0.1578777432, 0.0454111099, 0.2925549448, -0.3315794468, -0.1847198904, 0.2547593415, 0.2245908529, 0.0062037557, 0.4588214457, -0.2787888944, -0.4055845439, -0.2095420957, -0.2231868207, -0.0995254517, -0.3349789679, 0.4045699537, 0.0675697997, 0.2259325385, 0.4345137477, 0.3098502755, 0.0374988504, 0.1940718293, 0.1098938733, 0.2558327913, 0.0914491639, -0.014535768, 0.0753451884, -0.2580296099, -0.3399425149, -0.1969907731, 0.2101662904, -0.3805345893, 0.702092886, -0.1838436574, 0.1940517128, -0.3050471544, 0.190845713, -0.0842875838, 0.219054997, 0.0675937757, 0.0781936571, 0.0128202373, 0.0667797998, 0.0648911968, -0.0888022631, 0.0561329238, 0.0615239479, 0.0973784253, -0.0642037615, -0.2585119605, 0.1058640331, 0.3715212047, 0.0700621903, 0.1134170443, 0.0457309559, -0.148276642, 0.1364432126, -0.0534760691, 0.3880758882, -0.0520715155, 0.4737306237, -0.0615545288, -0.1686992496, 0.2550693452, 0.0081353281, -0.1564421207, -0.137537986, 0.3093263209, -0.3865033388, -0.4239959717, 0.099903062, 0.0781678259, -0.3999310434, -0.0620709658, -0.5250157118, -0.0384050421, 0.1165148914, -0.1437495202, 0.238172859, 0.2040818781, -0.1525624543, -0.3873448074, -0.0526700728, 0.2291749716, -0.4178433716, 0.0511243157, -0.244160369, -0.0211358834, -0.2414740324, -0.1609628797, -0.2630756795, -0.1054809168, -0.3466659486, 0.0644730181, 0.3076819479, -0.3473540545, -0.6475949883, -0.0593365692, -0.064297013, 0.0283019599, 0.0475252122, 0.3307828009, 0.0566513613, -0.1022360176, -0.4012673199, 0.1012965664, -0.0200253222, -0.3065453172, -0.2780852914, -0.0080475966, -0.1057396904, -0.1461749822, -0.2202514261, 0.3657615781, -0.0380264111, -0.0284255091, 0.0723905042, 0.201193288, 0.2046842426, 0.471391499, 0.484554559, -0.1623986959, 0.0280855801, -0.0522787794, -0.332133621, 0.1471664011, 0.3700076938, -0.39392066, 0.0009514192, -0.2499649525, 0.0163441598, 0.07342235, -0.1349821836, 0.1541034728, 0.0280382689, 0.3183520138, 0.0730623379, -0.2711363733, -0.1399842501, 0.4156736135, -0.0353839882, -0.0352534205, -0.1052667946, -0.0459292009, 0.0036338924, -0.0581225753, -0.4752198458, -0.2656542361, 0.1838867813, -0.1295545101, -0.2298538834, 0.5186130404, -0.0912199691, 0.0534742661, 0.2685380578, 0.4209365845, -0.1508518308, -0.4421941638, 0.2504711449, -0.0025528071, 0.0273714066, -0.0055460199, -0.1252529323, 0.177748993, -0.0786018074, 0.0580308139, -0.1963468343, 0.1380009204, 0.2874153256, -0.0780565515, -0.1735180467, -0.2393268943, -0.3135154843, 0.0750132352, 0.4613133371, -0.0820765942, -0.2110941112, 0.3025096059, 0.5622271895, 0.0588731468, 0.1013873965, 0.0364007428, -0.2644159496, -0.1285409778, -0.1024727151, 0.6723660231, 0.5421388149, 0.1920131594, 0.1405189186, -0.2133500427, 0.0958543494, -0.0383535884, 0.1324897408, 0.1543865502, 0.2147180438, -0.102012977, 0.1443184316, -0.182178393, -0.1338699907, 0.1596542001, 0.1118856594, 0.0110333655, -0.0063967211, 0.1888249069, -0.1927697957, -0.0278130751, -0.295042634, -0.0319357142, -0.4077277184, -0.3630106449, 0.0669338852, 0.326925993, 0.0898089856, 0.1490611881, -0.1156607345, 0.5042237639, -0.1734945178, -0.4204641879, -0.1750684083, -0.0311103072, -0.2325831801, -0.0223644525, 0.0742439628, -0.2729975581, 0.2291760147, -0.0166329481, 0.2555159628, -0.5720791221, 0.0293579791, -0.0567880496, 0.2725665867, 0.3326308131, -0.0666648, 0.1852226853, -0.2287231535, 0.0670947209, -0.015787106, -0.079191044, 0.015842773, -0.0162480436, 0.116560638, 0.0800133497, 0.0378383622, 0.2091628611, -0.1519970894, -0.2444864064, 0.1520076841, -0.1092125699, 0.0612644739, -0.0512665175, 0.0158817749, -0.0117447702, 0.0459360071, -0.3617248833, -0.3731368482, -0.806758523, 0.5466672778, -0.3449464738, -0.0970713049, 0.146529451, 0.0542481542, 0.1421539634, 0.2120140791, -0.3342685401, -0.2800640762, -0.0528381355, 0.2175369263, -0.0190756228, -0.2813299894, 0.2258331478, 0.4095545709, -0.0971843675, -0.248385936, -0.5289541483, 0.3987854421, 0.1717530936, 0.5748048425, 0.261089921, 0.0920389444, 0.0547516048, 0.5059795976, -0.2828645408, 0.011398782, 0.4043922722, 0.1901489496, 0.3782546818, 0.0162273366, -0.1309808344, -0.1413497031, -0.2167469114, -0.0760766119, -0.049782712, 0.0878721774, 0.0190348383, 0.2673098445, 0.0565373823, -0.1562478691, -0.3716949224, 0.087449424, -0.2596992552, 0.1159634441, 0.0422529131, -0.1429021209, -0.5049208403, -0.1448137611, 0.1870451719, 0.3815188706, 0.1140296683, -0.0851546302, -0.546657443, 0.1567211896, -0.357234329, 0.4369426668, -0.2001793981, 0.1197871864, -0.1039198563, -0.0498091094, -0.0212272126, -0.050355833, 0.8804528117, -0.1738558263, 0.1585700065, 0.0629768819, 0.1106298268, -0.1314806193, 0.0982226804, 0.4506978691, 0.4493226409, -0.1458303332, 0.1064604819, 0.0941274315, -0.2235236466, -0.1733311713, 0.3369657695, -0.5265507102, -0.217554003, 0.1522840858, -0.1450507045, -0.0076510813, -0.2675724328, 0.2054926455, 0.013174708, 0.0813184604, 0.0208211485, -0.4381808341, -0.1331951767, -0.0034739589, -0.1950692236, 0.5359507203, -0.2286979407, 0.0376807153, -0.0225111637, 0.2528629601, 0.3890486062, 0.2947440743, -0.3565092683, -0.2021228075, -0.0354503877, -0.2481734753, 0.0178413708, 0.2599080801, -0.0762656704, 0.1664108187, 0.2039911449, -0.17035909, -0.0140163274, 0.1486974061, -0.144123584, 0.2527443171, -0.1916001439, -0.3499111831, 0.3759485185, 0.2600650191, -0.0648217201, 0.3666514158, 0.1746673584, -0.378033042, 0.4197976887, 0.0901344121, 0.9501262307, -0.0370365679, 0.2972921431, -0.3037031591, -0.3726533949, 0.0298506767, -0.0703393593, -0.0271230172, -0.1310964525, -0.2019098252, 0.0092433235, 0.0699820518, 0.2341231704, 0.5468810797, -0.0399585143, 0.094929412, -0.2273950577, -0.1861842722, -0.257406652, 0.2381446362, -0.1397065669, -0.1130989045, 0.0804449469, 0.1651394367, -0.0612480491, -0.1538341343, 0.0608011968, -0.2177507579, 0.0214240476, -0.0302510764, -0.1726940423, -0.1897624731, -0.1683494002, -0.2046883851, -0.0704133287, -0.409552902, 0.0185396168, 0.2018805146, 0.442158103, -0.027357284, -0.0565067194, 0.3041878641, 0.1745547056, 0.073519595, -0.2249200195, -0.1495260894, 0.2583340704, -0.0437393561, -0.0192857701, 0.0022186504, 0.0770837963, -0.6202123761, 0.2067082375, -0.0997252017, 0.1300420463, -0.0917502642, -0.4944213331, -0.1646657288, -0.2461178899, -0.3005343676, 0.1419227123, 0.2287475765, -0.1075786278, 0.4141413867, -0.1770243496, -0.0451603197, 0.1554747969, 0.2797189653, -0.217618376, -0.1377956271, 0.5094897747, -0.3504289687, 0.0148185538, -0.1385895312, 0.068934083, 0.048716899, -0.1485424787, 0.1494807005, -0.1786647141, 0.1388301253, -0.0322540142, -0.2361466736, 0.1513171345, 0.3105770051, -0.2591750622, -0.1748179197, -0.5221583843, -0.0817384496, 0.0659389198, 0.3063134551, -0.0762276798, -0.4527075291, -0.0630413517, 0.0887997672, -0.2530589104, 0.0121617271, -0.0453255437, 0.027161235, 0.1892684847, 0.2453794479, 0.1555829197, -0.1864808351, -0.0187082775, 0.0017403329, -0.1725640446, -0.1992298663, -0.2664843202, 0.1718346179, -0.0936259702, -0.2779681683, -0.1310475469, -0.3101246655, 0.2115920484, -0.0475878157, -0.195919022, 0.1781333983, 0.0373368151, 0.2285756171, 0.0721874759, 0.0019589684, 0.0486025773, -0.1798074991, 0.19921951, 0.3495193422, 0.1664067805, 0.1258148402, -0.0140225133, -0.0662032291, -0.0015532962, -0.1024213135, -0.1055410132, -0.0304206181, -0.1901531518, -0.0638882741, -0.0378780812, 0.4332274795, 0.1673295647, 0.0405721776, -0.2100213021, -0.1713740677, 0.3683485687, 0.134148106, 0.10618864, -0.4036820531, 0.427018404, -0.2677615881, -0.0381475799, 0.0870681852, 0.1465196162, 0.1951238215, -0.168444857, -0.0055486434, 0.2567142844, -0.4714048803, 0.168960914, 0.0527091883, -0.0133028505, 0.0811086297, 0.5374560356, 0.3864857256, 0.3091651201, 0.796607852, 0.0149291353, 0.1586897075, 0.4057993889, -0.0334067382, -0.012748342, -0.1542297304, 0.0290582795, -0.0464884825, -0.0431823432, 0.4586323202, 0.2863246799, 0.1327948421, 0.123833321, -0.3554237783, 0.1732828468, -0.0289878175, 0.020851396, -0.3102226257, 0.0797468349, 0.0205311887, 0.1260370314, 0.1096813008, -0.1941622496, -0.252712369, 0.4634743631, -0.1370218843, 0.0431457832, 0.1683921218, 0.1710459441, -0.0685690641, 0.1286366135, -0.0395174436, -0.099814035, -0.2691247761, -0.1345328689, 0.2595927715, 0.002104356, -0.168757543, -0.0542040579, 0.0429620594, 0.0815418959, -0.0411027409, -0.0792399123, -0.2262189537, -0.2022949308, 0.0682455748, -0.3262184262, 0.2005547583, 0.1387025118, 0.0121762156, 0.1334893703, 0.1436514109, 0.3790521026, -0.1472219229, -0.1271029711, 0.3025746644, -0.3633195758, -0.1216894016, 0.1171799004, -0.0705775097, -0.3746969998, 0.7522785068, 0.0425843, 0.0491758734, -0.0540875532, 0.067596823, -0.1759206504, 0.4489009976, -0.0187774096, -0.0136211338, -0.2923689783, -0.1183672398, -0.3946759105, 0.1372788846, 0.1089551076, 0.0853913873, 0.0672107786, -0.0531308055, 0.0318033472, 0.0138655463, 0.2937546372, 0.0810594708, 0.1560964435, 0.5610340834, -0.390692085, -0.1711732596, 0.3270381689, 0.2972214818, 0.2671145797, -0.3106238842, -0.1176318973, 0.4650088549, 0.0212075431, 0.00378444, -0.099389486, 0.006793478, 0.2326113582, 0.5678701401, -0.0187310688, 0.068563506, -0.0676010847, 0.0152098136, 0.1250104457, 0.1004573181, -0.3279695213, -0.0648335665, 0.0788083747, 0.1504221261, -0.3691147566, 0.3105677366, -0.2134570479, 0.0019578382, -0.1233854815, -0.0738366991, -0.2091624588, 0.2177235484, 0.151633665, -0.0270655788, 0.4272916019, 0.442910105, 0.0462193005, 0.4174528718, -0.4453116953, 0.353310734, 0.5391594172, -0.0078868112, -0.1656594276, 0.2888104618, 0.1509995461, 0.2713833749, -0.2632125914, -0.347270757, -0.2103030235, 0.2743267715, -0.171218574, -0.0767595619, 0.2778632641, -0.3333675861, 0.3009940088, 0.1058185622, 0.8167824745, 0.1716211885, 0.088463448, -0.3020496964, -0.0966656506 ]
https://github.com/huggingface/datasets/issues/2055
is there a way to override a dataset object saved with save_to_disk?
Let's say I am updating a set of embedding in a dataset that is around 40GB inside a training loop every 500 steps (Ex: calculating the embeddings in updated ctx_encoder in RAG and saving it to the passage path). So when we use **dataset_object.save_to_disk('passage_path_directory')** it will save the new dataset object every time with a random file name, especially when we do some transformations to dataset objects such as map or shards. This way, we keep collecting unwanted files that will eventually eat up all the disk space. But if we can save the dataset object every time by a single name like **data_shard_1.arrow**, it will automatically remove the previous file and save the new one in the same directory. I found the above-mentioned code snippet useful to complete this task. Is this clear?
At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object?
134
is there a way to override a dataset object saved with save_to_disk? At the moment when I use save_to_disk, it uses the arbitrary name for the arrow file. Is there a way to override such an object? Let's say I am updating a set of embedding in a dataset that is around 40GB inside a training loop every 500 steps (Ex: calculating the embeddings in updated ctx_encoder in RAG and saving it to the passage path). So when we use **dataset_object.save_to_disk('passage_path_directory')** it will save the new dataset object every time with a random file name, especially when we do some transformations to dataset objects such as map or shards. This way, we keep collecting unwanted files that will eventually eat up all the disk space. But if we can save the dataset object every time by a single name like **data_shard_1.arrow**, it will automatically remove the previous file and save the new one in the same directory. I found the above-mentioned code snippet useful to complete this task. Is this clear?
[ 0.0457347296, -0.036520455, -0.0065598618, -0.0663141087, 0.2652108967, 0.1467555761, 0.0534214415, 0.1336882412, -0.1323261708, 0.3330437541, 0.3283967674, 0.4801913202, -0.3888705373, 0.0933783948, 0.2319838256, 0.0744828135, 0.3734701276, -0.0670182034, -0.1254187822, 0.1810310781, -0.4179123938, 0.0441507101, 0.2109160274, 0.0159830172, -0.0820500776, -0.0264368635, 0.0004689456, -0.2508094311, 0.0576558113, -0.4308080375, 0.2283994257, 0.256598413, 0.1199136153, 0.138618961, -0.0001212558, -0.0695581734, 0.0095336149, -0.0692436621, -0.4169017971, 0.0994596109, -0.0609359145, -0.4046192467, -0.0431452729, -0.4321476221, 0.3878166974, -0.2496521622, 0.2778483331, -0.1676829308, 0.1013102531, -0.1304500997, 0.0757569894, -0.0730953291, 0.1910561025, 0.2092889547, 0.1304675043, 0.2837991416, -0.1073037013, 0.2409991473, 0.0536165088, 0.2485472709, 0.0044527012, 0.1047019288, -0.0398976356, -0.0903648511, 0.7107018828, 0.0397541374, -0.0830016285, -0.0689411685, 0.0632553995, 0.1232703105, 0.5087647438, -0.5339450836, -0.1315352619, -0.1749764979, 0.1265873015, -0.3090943992, 0.2692342103, -0.2114601582, -0.0695020705, 0.0209070314, -0.0852169022, -0.6508274078, -0.1985442787, 0.2556485236, 0.2591596544, -0.5391643643, -0.0664122328, 0.2288215458, 0.3162317574, 0.0076818033, 0.3161955178, -0.392727077, -0.2238271683, -0.3384261131, -0.128071785, -0.1810758859, -0.3935974836, 0.2291759998, 0.0554534718, 0.3497771323, 0.4361372888, 0.1356812268, -0.0677442923, 0.2203284204, 0.101831682, 0.023384301, -0.0405254215, 0.1268225014, 0.0779919103, -0.0195703339, -0.1697917134, -0.0301516522, 0.2458381653, -0.3112148345, 0.3921233416, -0.266587913, 0.2572687268, 0.0581264012, 0.0073826853, -0.0774413869, -0.0419783778, 0.109578602, -0.0056770612, -0.1309605837, 0.2353037596, -0.1221491769, -0.100539729, 0.138205409, 0.1775676459, 0.1451977938, 0.0803287551, -0.17611745, 0.1048329398, 0.411270082, 0.0389888212, 0.1724297851, -0.0452260599, -0.2201777548, 0.0412363894, -0.0717490837, 0.1835626215, 0.0025440673, 0.4037233591, -0.0983994752, -0.1946253628, 0.1945434064, -0.1654606164, -0.1861858219, -0.2288787961, 0.2491869181, -0.2398013771, -0.2797171772, -0.0215783548, 0.0262747109, -0.2249809504, -0.1048920974, -0.5177105069, 0.1623328179, -0.1310680956, -0.2600250542, 0.2126578987, 0.2772545516, -0.2532302141, -0.2626476586, -0.0001722189, 0.1168229058, -0.3383011222, -0.0473853946, -0.1328245997, -0.0268517714, -0.3620646, -0.1325851679, -0.260915041, -0.0106197828, -0.2951560915, -0.0211461019, 0.340929836, -0.1320462376, -0.5908209682, -0.2278284132, -0.1508216709, -0.0052919486, -0.0067437277, 0.5044077635, 0.1441425085, -0.057604041, -0.5045726895, 0.053438317, 0.0619733371, -0.3500507176, -0.0606923029, -0.1441927701, -0.1976327449, -0.1717527509, -0.2981698811, 0.2197761834, -0.0556047708, 0.0251109526, 0.2167974263, 0.0732121319, 0.2401831746, 0.4485563636, 0.4341870248, -0.1154954284, -0.1688868403, -0.1425731331, -0.3905547559, -0.0319553278, 0.5924943686, -0.4588952959, 0.1132579148, -0.2073934376, 0.1747047156, 0.1230466664, -0.1968376189, 0.2352233082, -0.0548225902, 0.3122778535, -0.0037067612, -0.1566852927, -0.3619380295, 0.0674392954, -0.1729986072, 0.1804399937, -0.1348823607, 0.1464637667, 0.1023185328, -0.0458526835, -0.3633916676, -0.1533871144, -0.1064044833, -0.0965090469, -0.0751483291, 0.4044417441, -0.2464151531, 0.1191929728, 0.1726579368, 0.4314654171, -0.0619407408, -0.3676761389, 0.2172436863, 0.2357067019, 0.0893714949, 0.1228104755, -0.3586916924, 0.1210448742, -0.0270182155, 0.1744957268, -0.0612399057, 0.1384726018, 0.0513607264, -0.0509710014, -0.3274543881, -0.2260815054, -0.3494559526, 0.1841980964, 0.4219741225, -0.0683637336, -0.129626289, 0.1065360755, 0.6030344963, -0.1011485681, 0.0626429617, 0.1921170056, -0.2957579195, -0.08019232, -0.2568455637, 0.80071491, 0.3792862594, 0.0745851547, 0.1722944528, -0.2163551301, 0.0766074434, -0.0620704256, 0.1834325343, 0.3528274, 0.2313380241, 0.0689825863, 0.2171486914, -0.0842011347, -0.2327295691, 0.0229160246, 0.0310180038, -0.0045078816, -0.0311261993, 0.0636648685, -0.0542582758, 0.0626259893, -0.4437845051, 0.0974420831, -0.2583098114, -0.1972874999, 0.023964081, 0.329831779, -0.0633209571, 0.1809441, 0.292663157, 0.4197934568, -0.2644102573, -0.3293958902, 0.0235056169, 0.2038993984, -0.1538181603, -0.1272314191, 0.177841872, -0.3315120041, 0.322791189, 0.1344879121, 0.1641259938, -0.7020507455, 0.0724507347, -0.1511766165, 0.2363014519, 0.1226452217, -0.0113486731, 0.0670085996, -0.2285551131, 0.0687812343, -0.0212818738, 0.0207531676, 0.0384541713, -0.0363366343, 0.056661509, 0.2914115787, 0.1204239279, 0.211676538, -0.1690317094, -0.1292985082, 0.1894246936, -0.0924684405, -0.0127831316, -0.1523365229, 0.2509378493, 0.0716324076, -0.020514816, -0.3927164376, 0.0094659533, -0.6643105149, 0.3599236012, -0.0630416498, 0.0037834465, -0.0244872347, -0.0377798565, -0.0436000526, 0.2727340758, -0.3989456594, -0.2452390492, -0.0398359485, 0.1406462193, -0.0762993321, -0.1881077737, 0.1733015776, 0.4887495339, -0.020688951, 0.0275858343, -0.4749939442, 0.2654612362, 0.1800307184, 0.3496613503, 0.2071921378, 0.1719934195, 0.115335308, 0.3271221519, -0.0671862662, -0.136426881, 0.4031299353, 0.1584940106, 0.3615849316, 0.0697802529, -0.0579106063, -0.1681996286, -0.2103426456, -0.102232039, -0.0086559635, -0.0691738948, 0.2302608043, 0.3729231656, -0.0315747485, 0.0750684366, -0.3564732969, 0.1301704943, -0.1990268081, 0.0818052143, -0.024535995, -0.139541328, -0.221108675, -0.1581024379, 0.0965662599, 0.3935679197, 0.2068523914, -0.0604203604, -0.6695661545, -0.1548298597, -0.3504046202, 0.2457049042, -0.3112826943, -0.0530459359, 0.1481724828, 0.0319640748, 0.0137646906, -0.066905722, 0.646992147, 0.0000053012, 0.0835075602, -0.190463841, 0.1843107492, -0.1899845749, 0.0944080725, 0.3197168708, 0.3267335594, -0.3434046507, 0.4133315682, 0.1080603674, -0.2338377982, 0.0909724087, 0.4599337876, -0.5098069906, -0.0579450577, 0.2214578688, -0.2996603251, -0.1480360478, -0.3749029636, 0.0997121036, 0.0366373695, 0.2042601258, -0.2132806033, -0.366063863, -0.1237860173, 0.1425289363, -0.3959299326, 0.4069082737, -0.0654293597, -0.0009558203, -0.0664051622, 0.3982371986, 0.607339561, 0.2417914569, -0.4718923569, -0.3955793083, -0.1128658131, -0.1703762114, 0.2326043695, 0.2393691987, 0.0122223794, 0.1966255605, 0.1238601804, -0.1339852363, -0.261243552, 0.1820871234, 0.1194562465, 0.3022390306, -0.1734213084, -0.3173744082, 0.4509800076, 0.2749405801, 0.0477714427, 0.1978364587, 0.3538492024, -0.3776675463, 0.3673596978, 0.1181273088, 0.6669077873, -0.0182066057, 0.4968538582, -0.098592177, -0.3663337827, -0.0350098647, 0.0183202084, 0.0802292749, -0.0711583495, -0.1028732881, -0.0167900734, 0.0819392577, 0.2323679924, 0.5184146166, -0.0479844734, 0.2158786207, -0.1498367786, 0.085245043, -0.3729451895, 0.2046393603, -0.1910219938, -0.1594382375, 0.0410627611, 0.0237622783, 0.088833712, -0.1331804544, 0.1496345103, -0.0856840312, 0.0917765498, -0.0596953891, -0.1656383425, -0.4072687328, -0.1481124014, -0.2073443383, -0.1955054849, -0.5290103555, 0.0385958776, 0.4284873307, 0.1972435862, 0.0606714338, 0.0835257173, 0.2208251804, 0.0484206975, 0.1239431724, -0.1668682992, -0.1823076457, 0.1879824251, 0.0752460733, 0.0273724701, 0.0250485502, 0.1128554195, -0.4212214053, 0.067582868, -0.1193263605, 0.2632935941, -0.0307079256, -0.3365967572, -0.1666621417, -0.3178779781, -0.4264824986, 0.0370021909, -0.0681352764, -0.009188924, 0.415502578, -0.1974994093, -0.1237899661, 0.1959584951, 0.1716916114, -0.1490487307, 0.0487342142, 0.7534674406, -0.4408061504, 0.115660347, -0.1474776566, 0.4632133842, 0.2551528811, -0.1543340832, 0.3137849569, -0.1544506103, 0.2359161824, -0.0555395782, -0.1251844913, 0.0500303358, 0.1026497185, -0.3332237601, -0.0957835466, -0.3727161884, 0.0459638983, 0.3631149828, 0.4548832476, -0.1544363499, -0.3133369088, -0.1745500118, -0.0623904206, -0.1290360391, 0.1928518564, 0.1115651876, -0.0337866619, 0.0892687216, 0.5190907121, 0.0927497223, -0.0439770222, -0.087496914, -0.0811781809, 0.0490689501, -0.0677701011, -0.2429114729, 0.2171800137, -0.1623783857, -0.0961466283, -0.1264950335, -0.2579054534, 0.1673527807, -0.1099620983, -0.323751539, 0.143332094, 0.1516303271, 0.1925877482, 0.0393252186, 0.1373104304, 0.2304429561, -0.1271109581, 0.2648396194, 0.3415454924, 0.1894306242, 0.2597722709, 0.1179963425, -0.1669147909, -0.2726458609, 0.0306754895, 0.1163636073, -0.1207788885, -0.2451498806, 0.0025413134, -0.1187875196, 0.3289444447, 0.1872172356, 0.281493485, -0.293967247, -0.2809572816, 0.3967546523, 0.0327845216, 0.0694620982, -0.3122705817, 0.4320261478, -0.2886404097, -0.0244979206, 0.0649065003, -0.1104812473, 0.1635614336, -0.6306899786, -0.1315701753, -0.0050382041, -0.1757170558, 0.1836412549, 0.3621575534, 0.0351952352, -0.011380543, 0.2998209298, 0.3326319456, 0.476955235, 0.7569002509, -0.194656238, 0.3213786185, 0.358415395, -0.1121047065, 0.1665575802, -0.1336345375, 0.0062576691, 0.0190797839, 0.0839048773, 0.3280993104, 0.4132536352, 0.070357725, 0.167775467, -0.3083193004, 0.0771647617, -0.0210548528, 0.1172890812, -0.4065392911, 0.0521084629, -0.0315603465, 0.1487144828, 0.296212405, -0.1862000674, -0.456699729, 0.3414574265, -0.1709360331, 0.0925918221, 0.2572571337, 0.288790822, -0.1281083226, -0.0105040921, -0.0594282858, -0.2913375199, -0.1945296377, 0.0401325189, 0.1520553529, -0.0660125986, -0.2403425872, -0.1592819244, 0.0114735812, 0.1467019469, -0.1973900944, 0.0433328971, -0.1993127912, -0.3347668946, 0.0072899954, -0.1861636937, 0.3576768935, 0.0067863087, 0.1036223471, 0.0400267094, 0.2810910642, 0.4203670323, -0.4444260001, 0.0576522537, 0.1505890489, -0.3244642913, -0.0227692407, 0.0239829831, -0.0229800325, -0.4238347113, 0.7393187881, 0.047370512, 0.0094851479, 0.1237339601, 0.031419877, -0.2672819495, 0.3729068935, -0.0912545472, -0.244242847, -0.2016925514, -0.1476555318, -0.4075843096, 0.0889035687, 0.1213938743, -0.0014502376, -0.0897427797, -0.0808510855, 0.0744394287, -0.1016435921, 0.2257521898, -0.142570436, 0.0313427821, 0.5929244161, -0.2693685591, -0.2329323441, 0.1044755504, 0.4249648452, 0.2707131207, -0.3766428828, -0.0587716401, 0.2983461916, -0.094687365, 0.0555641167, 0.140013665, -0.1116013899, 0.0986748263, 0.6502912045, -0.1444052756, -0.1245682836, -0.1674839556, -0.146027118, 0.1860037297, 0.2573997676, -0.4718902409, 0.2457919568, -0.0450472459, 0.2827145457, -0.4167081714, 0.5806437135, -0.077267766, -0.346280396, -0.1111063436, -0.1564856172, -0.1729535758, 0.2177676558, 0.3041038513, -0.0099668708, 0.3712158799, 0.3615016341, 0.0517328791, 0.395437479, -0.414478153, 0.3705531359, 0.509077847, 0.094897449, -0.0532973334, 0.2723084688, -0.0018010511, 0.2699895203, -0.1241064295, -0.489657104, -0.2182664871, 0.3479816914, -0.1333281845, -0.1373219043, 0.2824608088, -0.2615498006, 0.1249845177, 0.0714560449, 0.842063427, 0.1822077036, -0.1185949445, -0.1620346308, -0.2001540214 ]
https://github.com/huggingface/datasets/issues/2054
Could not find file for ZEST dataset
This has been fixed in #2057 by @matt-peters (thanks again !) The fix is available on the master branch and we'll do a new release very soon :)
I am trying to use zest dataset from Allen AI using below code in colab, ``` !pip install -q datasets from datasets import load_dataset dataset = load_dataset("zest") ``` I am getting the following error, ``` Using custom data configuration default Downloading and preparing dataset zest/default (download: 5.53 MiB, generated: 19.96 MiB, post-processed: Unknown size, total: 25.48 MiB) to /root/.cache/huggingface/datasets/zest/default/0.0.0/1f7a230fbfc964d979bbca0f0130fbab3259fce547ee758ad8aa4f9c9bec6cca... --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) <ipython-input-6-18dbbc1a4b8a> in <module>() 1 from datasets import load_dataset 2 ----> 3 dataset = load_dataset("zest") 9 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token) 612 ) 613 elif response is not None and response.status_code == 404: --> 614 raise FileNotFoundError("Couldn't find file at {}".format(url)) 615 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 616 raise ConnectionError("Couldn't reach {}".format(url)) FileNotFoundError: Couldn't find file at https://ai2-datasets.s3-us-west-2.amazonaws.com/zest/zest.zip ```
28
Could not find file for ZEST dataset I am trying to use zest dataset from Allen AI using below code in colab, ``` !pip install -q datasets from datasets import load_dataset dataset = load_dataset("zest") ``` I am getting the following error, ``` Using custom data configuration default Downloading and preparing dataset zest/default (download: 5.53 MiB, generated: 19.96 MiB, post-processed: Unknown size, total: 25.48 MiB) to /root/.cache/huggingface/datasets/zest/default/0.0.0/1f7a230fbfc964d979bbca0f0130fbab3259fce547ee758ad8aa4f9c9bec6cca... --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) <ipython-input-6-18dbbc1a4b8a> in <module>() 1 from datasets import load_dataset 2 ----> 3 dataset = load_dataset("zest") 9 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token) 612 ) 613 elif response is not None and response.status_code == 404: --> 614 raise FileNotFoundError("Couldn't find file at {}".format(url)) 615 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 616 raise ConnectionError("Couldn't reach {}".format(url)) FileNotFoundError: Couldn't find file at https://ai2-datasets.s3-us-west-2.amazonaws.com/zest/zest.zip ``` This has been fixed in #2057 by @matt-peters (thanks again !) The fix is available on the master branch and we'll do a new release very soon :)
[ -0.5492255688, -0.1562175602, -0.0973051786, 0.3641073108, 0.3012050092, 0.0931076631, 0.0318724141, 0.2230130881, 0.2383637428, 0.4310352504, -0.2034215778, -0.0097505981, -0.1162818447, 0.1218978018, -0.0843501762, 0.2447762489, -0.2308544964, 0.4342671633, 0.4354298115, 0.080946967, -0.146307528, 0.32276088, -0.0329574086, 0.0134569798, -0.2296865582, -0.0266707186, 0.0649695769, 0.2269899547, -0.2469373196, -0.4500754774, 0.5318312049, -0.2040963769, 0.382145226, 0.4862638712, -0.0001192676, 0.0767830908, 0.2923072577, -0.1723966151, -0.2772042155, -0.6352190375, -0.5189526677, -0.1069160849, 0.0227835383, -0.1745990217, -0.4987582564, 0.1419637352, 0.0905800089, 0.0844900832, 0.1318617761, 0.4710634649, 0.1323474497, -0.0255521219, 0.4266808033, -0.2614114881, 0.6230577826, 0.0675971508, -0.1357329935, 0.0985976979, 0.2885714173, 0.270097971, 0.4061022699, 0.1312187463, -0.0209040362, 0.1605391055, 0.1259361953, 0.0051019341, 0.2155119926, -0.3926919103, 0.2901314199, 0.2027787417, 0.772448957, -0.2937849462, -0.3040549159, 0.1115151644, 0.0811824054, -0.4664174914, 0.2170498669, 0.150761947, -0.2802614272, 0.209512189, 0.1901826411, -0.0583262369, -0.1123306453, 0.3451275229, 0.0879819766, 0.1269708574, -0.1504745483, 0.0055525256, -0.0237790737, -0.1501271576, 0.2711737752, -0.0389016457, -0.0841388851, 0.1122513041, -0.2754396796, -0.1604265422, 0.0166552644, 0.2436980158, -0.0223721266, 0.1306642294, 0.0592910796, -0.2001147419, 0.102163434, 0.1904090792, 0.0622774586, 0.1541708559, -0.0759222209, -0.3409622014, 0.2246869504, 0.1661467254, -0.2793197334, -0.2687013447, -0.1667177379, -0.2494900078, -0.1447489411, -0.0926703662, 0.1913473606, -0.3504558206, -0.4722193182, -0.2292267829, -0.5416936874, 0.0871201605, 0.1921860129, 0.3942379355, 0.0877432153, -0.2509023249, -0.099342078, -0.040672183, -0.2872311473, -0.0326352194, -0.1425809413, 0.2985759974, -0.1021685526, 0.0024054144, 0.2607378662, 0.0807705745, 0.5792790651, -0.2843332291, 0.0084050503, -0.0233259369, 0.297599256, -0.2074873149, 0.0521376953, 0.4288754761, 0.3808624446, 0.0161636956, -0.098252818, -0.4445394576, -0.3056356013, 0.3296528161, -0.4394590259, -0.4657529593, -0.1354963928, 0.0743893683, -0.4352445006, 0.0035238212, 0.000651383, -0.2347806841, 0.1604174525, -0.392988205, -0.0217237677, -0.351549983, -0.0434326455, -0.2112886161, 0.2502271831, 0.3778168261, -0.6014803052, 0.0128424335, -0.38058272, 0.1550826877, 0.1199293733, 0.1989081949, -0.1685973108, 0.5266977549, -0.2713930607, -0.0915016979, 0.6319549084, -0.6368858814, -0.8415306211, -0.166214928, -0.0623474568, -0.0491292663, 0.2330865562, 0.2953895926, 0.1769867837, -0.2069676816, 0.0053661056, 0.0280049965, -0.1691209227, -0.1135202125, -0.1612264961, -0.1857515126, -0.3377091289, 0.1451746523, -0.0424744338, -0.1901915222, 0.3948426545, -0.0299165677, -0.0283182655, 0.0357072353, 0.0041886405, 0.1333068311, 0.5193721056, 0.1891496629, -0.0042398754, 0.0231183469, -0.3082269132, 0.0448476821, -0.1094073653, 0.0647501498, -0.3085495234, -0.0404105112, -0.2715916932, -0.3036617935, -0.4424656928, -0.2636524439, 0.0211442038, -0.0341807306, 0.3390517533, 0.0827220827, -0.0409542285, 0.0463741459, -0.0391621105, 0.037134517, -0.1816704869, 0.1381231695, -0.1515363008, -0.301953584, -0.0527060144, 0.2655153275, -0.0792637616, 0.0051506092, -0.1573838294, 0.1158523262, 0.1705408096, -0.182697624, 0.2029103339, 0.2453832775, 0.2108663321, -0.2708520293, 0.1889866889, -0.0082364874, 0.1406191587, 0.0224563945, -0.0265136901, 0.1814842969, 0.0642992705, -0.0926172063, 0.014203635, -0.1576363742, 0.3949755132, -0.0413951539, 0.0071035386, -0.069164671, 0.1023709849, 0.2601842284, 0.2686912417, 0.002997735, -0.1557583809, 0.0182827879, 0.53150177, 0.1142822653, 0.0069913203, 0.0530429147, -0.1327365637, 0.0963901356, 0.2903289497, 0.4729298949, 0.604775548, 0.3320864737, -0.2014873773, -0.1512371898, 0.0997540206, -0.1310835034, 0.095517382, 0.1010877341, 0.2135855705, 0.2487530857, 0.0912276506, 0.0835675746, -0.0502954088, -0.5824818015, -0.0593079552, 0.3502301276, -0.1561135352, -0.1299252361, -0.1629850715, -0.4231380224, 0.012132342, -0.2939902544, 0.1531608552, -0.0411805101, -0.0124830445, 0.279330492, 0.3121992946, 0.1506230533, -0.124176994, 0.1046571732, 0.0333120637, -0.5073769689, -0.1087349504, -0.089824833, -0.1168641448, 0.0260919649, 0.4296647906, 0.0990306213, 0.2851288319, -0.4056548774, 0.144703567, -0.2727582455, -0.1465429664, 0.202235058, 0.0495822318, 0.3368252814, 0.1884137392, 0.1252968758, -0.2552149594, -0.0274090227, 0.2641088068, -0.0612302572, -0.1408555061, -0.0980733857, -0.268977493, -0.0554560907, 0.0529271886, -0.3438365757, -0.5639112592, -0.2585718632, -0.181103304, 0.1891873926, 0.1829728782, 0.0982801393, 0.167046681, 0.1794399619, 0.0341235213, -0.0652259216, 0.0789481923, -0.5655249357, 0.4193028212, -0.5766727328, -0.1247312576, 0.4705351591, -0.1488474011, 0.5684306622, 0.0205996223, -0.2560323775, -0.089114815, -0.1598950028, 0.4458847344, -0.188503921, 0.0396767631, 0.3315301538, -0.0147491805, 0.0430481695, 0.0007884256, -0.002412905, -0.0621486194, 0.0407073386, 0.6619492769, 0.1921007186, 0.4910690784, -0.2392269075, 0.5676388144, 0.0756407529, -0.0442083403, 0.4262984693, -0.1783232391, 0.2219621092, -0.5061761737, -0.1453299522, 0.1648273319, 0.185512498, -0.1260243058, 0.1272169948, 0.2610474527, -0.0493680649, -0.2332869619, 0.092202574, -0.3493933082, -0.0400586054, 0.0150929363, 0.2960340679, 0.1670237184, 0.00347941, 0.0046507018, -0.1122638956, -0.4151185751, 0.0135923307, 0.4828695655, -0.0788007751, 0.2738876343, 0.216200307, -0.4309869707, -0.3567703366, 0.2008530349, 0.2648074031, -0.1865748465, -0.1755002141, 0.1863670945, 0.1618401557, 0.1547295302, 0.4447736144, -0.0323357433, 0.0782779455, 0.180216074, -0.0247228518, -0.0252112634, -0.029943971, -0.1443333924, 0.2997745574, 0.251814723, 0.1430124044, -0.0863926709, -0.1789862961, 0.1666561067, 0.102285102, -0.1228083149, 0.025753485, -0.1004675478, -0.5379291177, -0.3752608001, -0.1574566811, 0.0406529158, 0.2452534884, 0.1521882117, -0.0870185196, 0.0569658838, 0.0963927284, 0.072774373, 0.2335207909, 0.5060457587, -0.0360475592, 0.0250241607, -0.0150611028, -0.3126757145, 0.6949638128, 0.4729438424, 0.0567891784, -0.2865794003, 0.0340609737, -0.1437416375, 0.1473525614, -0.0102492571, -0.0963009298, -0.2435187101, -0.4935556352, 0.0672565028, 0.2556274235, 0.1614802629, 0.1735775769, 0.0213429872, -0.3130958378, -0.2729229629, 0.1826114655, 0.03270768, 0.2156349421, 0.3947988749, 0.2493327409, -0.1905589551, 0.4591026008, -0.0358184837, 0.8300569057, 0.0358706526, 0.1106395945, 0.171223104, 0.1161655784, 0.4242930114, -0.1524284631, 0.3545798659, -0.1772010326, -0.0623141117, -0.1570385247, -0.1664744467, 0.0843953192, 0.257353425, -0.2287191898, 0.3569445312, 0.3331591487, 0.1048729718, -0.0323954932, 0.1906479597, -0.2452906221, 0.08188539, -0.1570239514, 0.0791837648, -0.1549095511, 0.6620941758, -0.0841336399, -0.1675601155, -0.5331512094, -0.0649939254, -0.1665572226, -0.1421954632, -0.5519373417, 0.2744592726, -0.1833069474, -0.8469385505, 0.0923219398, 0.2916697264, -0.1129483506, 0.1048724353, -0.3378618062, 0.2216864973, 0.337081939, -0.2387389541, 0.1834713668, 0.1530793756, 0.1034669578, -0.2592189014, -0.2260490209, 0.0414020829, 0.1249217913, -0.3734334409, 0.1193469986, -0.1821627021, 0.0780833587, -0.1210060567, -0.4089340568, -0.168428272, -0.1427185982, -0.0541255698, 0.0881959647, 0.0645786375, 0.0624323748, 0.2328215539, -0.2019101977, -0.2659591734, -0.1875073463, 0.0992815271, -0.2765614986, 0.4114069641, 0.5215312243, 0.0224759579, -0.1664818972, -0.110508509, 0.2171849608, -0.1608549505, -0.3135444522, 0.0257995985, 0.1030324623, 0.2682355344, 0.0022017399, 0.3596260846, 0.3383306563, -0.1976753175, -0.0665351823, -0.5111646056, -0.1794646084, 0.2216680944, 0.2026066482, 0.313202709, -0.1802572012, 0.2094543576, 0.1714217067, -0.4007721543, -0.2214140147, 0.1799663901, -0.0862288177, 0.050729841, -0.0341355689, 0.144357264, 0.3577933609, 0.0980711803, -0.0068738945, -0.1318576634, -0.1616237015, -0.2157356441, 0.1419701874, 0.1429493278, -0.018536672, 0.0105158212, -0.068895407, -0.0605121292, -0.0823870897, -0.0300130062, 0.1519721746, 0.2290612906, -0.0094978707, 0.1990974098, 0.0601870716, -0.0760745853, -0.1169417351, 0.3815582693, 0.1356506348, 0.1704593748, 0.1690393537, 0.2944316566, 0.0512570515, -0.0311673805, -0.0093201371, -0.1481214613, -0.3203991354, 0.0210121982, 0.1947279871, -0.1855778843, 0.0162720289, 0.2852484584, 0.0702981874, 0.0583953112, -0.0802150518, 0.1453116238, 0.2804788947, 0.0619568601, -0.2122625411, 0.1061518714, 0.3297358751, 0.2141731083, 0.0580625162, 0.2490781248, -0.0242484044, 0.0569598898, 0.034029223, 0.1954716891, 0.7585299611, -0.2084518522, -0.095144026, 0.2974689603, -0.0486342534, 0.2966544628, 0.0151993372, 0.0320127457, 0.0889320299, 0.4520908594, -0.1312088072, 0.369088769, -0.1816401631, 0.1036188379, -0.0168703012, -0.4776885211, -0.326605022, -0.2345929593, -0.1599966288, -0.1680213213, -0.0013956532, 0.5693010092, 0.020611193, 0.1268594712, -0.2767932117, 0.035546273, -0.3136084676, 0.2228030115, -0.2753283381, -0.2170568556, 0.2489827275, 0.0473269857, 0.0287212469, 0.0838116333, -0.1233945563, 0.2148336172, -0.2976410091, 0.1965079308, 0.0569753163, 0.0758287609, -0.0500149652, -0.0799544826, 0.3521753252, 0.0548963435, -0.0995638296, -0.1438275278, 0.2892384529, 0.4752373695, 0.3081265986, -0.005724248, -0.1063626632, -0.0198742952, -0.2170749158, -0.1112359911, 0.0235576928, 0.1022667661, -0.0205629244, -0.011727836, 0.1469003558, -0.0678027719, 0.0423887223, 0.0682882145, -0.0984203666, -0.0591914281, 0.0013833831, -0.0875108764, -0.2262159884, -0.145589903, 0.0645139441, -0.3305794001, 0.0700749382, -0.035105031, 0.0266138352, -0.0092230793, -0.0550509617, 0.0207759012, -0.2382714748, 0.0930660814, 0.2795326412, 0.3545045853, -0.4359832108, -0.167584613, -0.5266872644, 0.0868722126, -0.1102215052, -0.1636731029, -0.1949089319, 0.1538094878, -0.4237273335, 0.0820984691, 0.3141466081, 0.0027328737, 0.2736628354, 0.3161555827, -0.1667111516, -0.2694209516, -0.0941862687, -0.0749533698, -0.0045555397, -0.2586072683, 0.0318250731, -0.1493288577, -0.0617901348, -0.1887200773, -0.2497361302, 0.1525998712, -0.0256481245, 0.4946903586, -0.1738684475, 0.5443022847, -0.1426635832, 0.1813518256, 0.0970861539, -0.0135703525, -0.0842955261, 0.0893270075, 0.141611442, 0.3505220711, -0.255051434, -0.015750058, -0.2995868623, 0.1975639313, -0.0592744276, -0.0341171511, -0.0428284369, -0.1127495095, -0.2846973538, 0.2559109032, 0.1605642736, 0.0230690408, -0.1698348969, 0.1207966283, -0.3196054399, -0.1180874035, 0.5395076871, -0.1812969446, 0.14852871, -0.1643859148, 0.0286930092, -0.0790731087, -0.2623632848, 0.0592340119, 0.0853300095, 0.2187626958, 0.1401185542, -0.1786879301, 0.2941478789, 0.1196622252, 0.0351210684, 0.1572331041, 0.5685506463, 0.0433794409, -0.0230197869, -0.2887487411, -0.185194537 ]
https://github.com/huggingface/datasets/issues/2052
Timit_asr dataset repeats examples
Hi, this was fixed by #1995, so you can wait for the next release or install the package directly from the master branch with the following command: ```bash pip install git+https://github.com/huggingface/datasets ```
Summary When loading timit_asr dataset on datasets 1.4+, every row in the dataset is the same Steps to reproduce As an example, on this code there is the text from the training part: Code snippet: ``` from datasets import load_dataset, load_metric timit = load_dataset("timit_asr") timit['train']['text'] #['Would such an act of refusal be useful?', # 'Would such an act of refusal be useful?', # 'Would such an act of refusal be useful?', # 'Would such an act of refusal be useful?', # 'Would such an act of refusal be useful?', # 'Would such an act of refusal be useful?', ``` The same behavior happens for other columns Expected behavior: Different info on the actual timit_asr dataset Actual behavior: When loading timit_asr dataset on datasets 1.4+, every row in the dataset is the same. I've checked datasets 1.3 and the rows are different Debug info Streamlit version: (get it with $ streamlit version) Python version: Python 3.6.12 Using Conda? PipEnv? PyEnv? Pex? Using pip OS version: Centos-release-7-9.2009.1.el7.centos.x86_64 Additional information You can check the same behavior on https://huggingface.co/datasets/viewer/?dataset=timit_asr
32
Timit_asr dataset repeats examples Summary When loading timit_asr dataset on datasets 1.4+, every row in the dataset is the same Steps to reproduce As an example, on this code there is the text from the training part: Code snippet: ``` from datasets import load_dataset, load_metric timit = load_dataset("timit_asr") timit['train']['text'] #['Would such an act of refusal be useful?', # 'Would such an act of refusal be useful?', # 'Would such an act of refusal be useful?', # 'Would such an act of refusal be useful?', # 'Would such an act of refusal be useful?', # 'Would such an act of refusal be useful?', ``` The same behavior happens for other columns Expected behavior: Different info on the actual timit_asr dataset Actual behavior: When loading timit_asr dataset on datasets 1.4+, every row in the dataset is the same. I've checked datasets 1.3 and the rows are different Debug info Streamlit version: (get it with $ streamlit version) Python version: Python 3.6.12 Using Conda? PipEnv? PyEnv? Pex? Using pip OS version: Centos-release-7-9.2009.1.el7.centos.x86_64 Additional information You can check the same behavior on https://huggingface.co/datasets/viewer/?dataset=timit_asr Hi, this was fixed by #1995, so you can wait for the next release or install the package directly from the master branch with the following command: ```bash pip install git+https://github.com/huggingface/datasets ```
[ 0.0693236738, -0.2360806763, 0.0143214399, 0.3875416517, 0.2564871609, -0.0527752116, 0.3894460201, 0.1509235799, -0.3530937433, 0.2145140916, 0.03625625, 0.3838867843, -0.1914108992, 0.3149207532, 0.1428201497, 0.0897243023, -0.0645081997, 0.1746295989, -0.510945797, -0.2078543901, 0.1559594572, 0.1073494628, -0.0441998281, -0.0219409764, -0.1925638318, 0.2516244948, 0.0345333517, -0.2753402293, 0.0288739074, -0.6021385193, 0.2152357399, 0.0859404132, 0.1602360755, 0.5223380327, -0.0001203386, 0.0850628093, -0.1006254479, -0.0585895814, -0.4437147081, -0.3315132856, -0.1293736398, -0.0098589361, 0.4994364977, -0.1294305623, -0.353880018, -0.2658418715, 0.0228594895, 0.1678988338, 0.1387130767, 0.1977490187, 0.1443000138, 0.207628876, -0.4852285385, -0.0598840155, 0.1789753139, 0.0927967504, -0.0897975117, 0.1834605187, -0.1145899445, 0.3434796035, -0.086192891, 0.2969873548, 0.0472152717, 0.3001301289, -0.0325892977, 0.0343293436, 0.0803431943, -0.1385792494, 0.0530869178, 0.3074522316, 0.6112806201, -0.1911729723, -0.006164385, -0.2379680723, 0.2809106708, -0.0089169471, 0.1315227747, 0.2282371074, -0.1578894258, 0.1716045588, -0.4439935088, 0.164081648, -0.2220609337, 0.1022910997, -0.0723651871, -0.4805193543, -0.2431517541, 0.08900626, -0.1993246526, -0.1923932135, 0.201449126, -0.2141875476, 0.1594439149, 0.0345594175, -0.2622406781, 0.109217301, -0.0398220718, 0.260702014, 0.0437215865, 0.2176584154, 0.7037340999, 0.1950194091, -0.1651888192, -0.1209519431, 0.1111265123, 0.2142631412, 0.1403141916, -0.1036119312, 0.0006800502, 0.1406615824, -0.3247897923, 0.0161451027, -0.094820641, 0.3506813049, 0.2983542681, -0.4594763815, 0.2485122979, -0.2413165718, -0.47514382, 0.1753274351, -0.4329755604, -0.1862201244, -0.0301718581, 0.128212899, -0.0328177921, 0.2887885869, -0.0671526492, -0.1436187178, 0.0331264883, -0.1429729015, -0.1733698845, -0.2447230816, -0.2997202873, 0.3173594475, 0.1830932945, -0.579541266, 0.1755429357, 0.5316573381, -0.0979863256, -0.059951745, 0.1499046534, 0.0484336652, 0.0605393015, 0.0527876392, -0.0916915983, 0.215454787, 0.0453242622, 0.1959708184, -0.0045513832, 0.0992064625, 0.0060083526, 0.0848726928, 0.5086864233, 0.1952258646, -0.3254636526, -0.1416298002, -0.136130482, 0.1503886282, -0.1309703141, -0.1011547595, 0.0790344551, -0.2211148292, -0.1790562272, -0.1774930954, 0.0675059259, 0.3432033062, -0.3481625617, -0.1797855645, 0.3411163092, 0.0673228055, 0.1209603548, 0.0170689449, -0.0397709087, 0.2547907531, -0.1584245265, -0.0625498816, 0.0198322106, -0.1838140935, -0.2675593495, 0.1368085891, -0.0317495614, 0.4677163661, 0.0180711914, -0.0457965024, 0.3251828849, 0.3720590472, 0.087137036, -0.0469076596, 0.4046121836, -0.0370946527, -0.4191307724, -0.068391338, 0.1653863639, 0.1985432506, -0.1735896766, 0.2753488719, 0.1103102937, -0.0650225282, 0.3484918475, -0.1165025085, -0.1479743868, -0.133326903, 0.0910540298, 0.1553092301, 0.1657628268, -0.3785125315, -0.1361992508, -0.0131418742, 0.2551571727, 0.1918270439, 0.3550346494, -0.0333181433, -0.3664957285, -0.2809582949, -0.3950498998, -0.0378557444, 0.1021249518, 0.5243571997, -0.0206526071, 0.2404849976, 0.02540306, 0.6545197368, -0.4834009707, 0.1554482579, -0.1168728918, 0.1829823256, 0.0746079609, -0.0083817737, 0.0238863863, 0.0853046328, 0.1819918305, -0.1432335526, 0.1197683588, 0.3222535551, 0.0608443543, -0.022939492, -0.2227688879, -0.1932328045, 0.2595638335, -0.1983761042, -0.1534410864, 0.187719211, 0.1179834008, 0.0357428603, -0.09552145, 0.3096634746, 0.0103778811, 0.1483062655, 0.2213654816, 0.0738520548, 0.0211752355, -0.0808996782, -0.3685727417, -0.4152879417, 0.4115941525, -0.0445594229, 0.0660963804, 0.1735988259, -0.41374439, 0.1797878146, 0.0957719833, -0.1290574372, -0.131927222, 0.1978543848, -0.1585223675, 0.2480874211, 0.0489424542, 0.3009957373, 0.2230155021, 0.1953907609, -0.0019304666, 0.0747670606, -0.2692966461, -0.1935739815, 0.1433220059, 0.0193446949, -0.260323137, 0.4037385881, 0.219115451, -0.0176811852, -0.6143209934, -0.0884905979, 0.2171188593, 0.2974387109, -0.2661320269, 0.0853497609, -0.4890750349, -0.0450065061, -0.3011744916, -0.1606364399, 0.1040867791, 0.0812572762, 0.0393840298, 0.2080577761, 0.1990810186, 0.2026449889, -0.3972117603, 0.2981903255, -0.0682338998, 0.439157337, -0.0972707793, 0.2479809523, -0.3348939717, 0.0424617752, -0.085272871, 0.1215663478, 0.2688835561, -0.4862582684, 0.0993543789, -0.3178023696, -0.3299520612, 0.3918775022, -0.1489197463, 0.475738138, 0.221687004, 0.0783466995, -0.1970855594, -0.2506318092, 0.0102317855, -0.1400299966, -0.20912233, 0.1264417171, -0.0564196631, 0.0704470798, -0.1707557291, -0.5320761204, 0.1326202154, -0.1759245843, 0.4266979992, 0.1929591745, 0.15905343, 0.5182478428, 0.0276146755, 0.3334207237, 0.1154285967, 0.2547902465, -0.459869206, -0.2551381886, 0.222589612, -0.0588353723, -0.1310431212, -0.1529303342, 0.0204574447, 0.0693660975, 0.2738565803, -0.6682431102, -0.0594671555, -0.2347605377, 0.066973947, 0.0098983785, 0.0657856688, 0.1793263406, -0.085902594, -0.035297405, -0.139211446, -0.0137348128, 0.2026996315, -0.0850530118, -0.0505666845, 0.0524008498, 0.1572902352, 0.0933311805, 0.199032262, 0.4609861076, -0.109170869, 0.2948642969, -0.0948014781, 0.5107046366, -0.0797248632, -0.1776980609, -0.2111648619, -0.1123108193, 0.0125115337, 0.2650341094, -0.144232899, 0.1855430603, -0.0528020263, -0.0077152248, 0.055677209, -0.2703036368, -0.2283928841, -0.4031398892, 0.3369253874, 0.1973818243, 0.1473368555, 0.0239824969, -0.1598917395, -0.2391502261, 0.2751942575, 0.1058548987, -0.0546758436, -0.7649229765, -0.2049745619, -0.4185813665, 0.2463743538, 0.3461546302, 0.3524981141, 0.0982508287, -0.2850190699, 0.4231260717, 0.0893973112, 0.5272782445, -0.4261741936, -0.1225828007, 0.0781610683, 0.0708108768, -0.5122363567, -0.1821729094, -0.3769616485, -0.10747917, 0.1066753492, 0.332364738, -0.1447000206, -0.2569246292, 0.2897034883, 0.248383522, -0.1374624819, -0.2136359513, -0.0776474178, -0.0747207105, 0.064653337, -0.0018662955, -0.2464235276, -0.1212768555, -0.3947785795, 0.0123449154, -0.2985565066, 0.1659850478, 0.5115221143, 0.2698187232, 0.4900929034, 0.0091706524, 0.3090980649, 0.3732329905, -0.0511608012, 0.1870752126, 0.5713593364, -0.3596923053, -0.0047076549, 0.1924052536, -0.2698392272, 0.1046854407, 0.4873087704, -0.0608643927, 0.2108045667, -0.2117763907, -0.0184901059, -0.1353254169, 0.2354844958, 0.2572869062, 0.0083175804, 0.0897651464, -0.6204379797, 0.2661386728, 0.0086178444, -0.2467441559, 0.2705604136, 0.0744710863, -0.0955315009, 0.159713164, -0.2795666158, 0.8087230921, 0.1241448298, 0.508341372, 0.3728879392, 0.0276531167, 0.0537169687, -0.1236920878, 0.0781792328, -0.2046164125, -0.2007232606, -0.1222517118, -0.1652895063, -0.0426906757, 0.119620949, -0.3727223277, 0.0550795421, -0.0400892086, 0.2199938744, 0.1189484596, 0.0309288073, -0.2442182153, 0.0977587178, -0.0443656594, 0.0591698885, 0.0649883747, 0.1120803729, 0.1047763079, 0.1555500478, 0.3324551284, -0.2676258385, -0.2883506417, 0.0251530893, -0.1185301021, -0.1233940721, 0.015088073, -0.5537112355, -0.0543637909, 0.0227171406, 0.037664555, 0.0825625435, 0.0196774118, -0.1897844225, 0.1444818228, 0.2891583145, -0.2672910392, -0.0402196832, 0.5374185443, 0.2313793898, -0.3256860971, 0.1473492384, 0.2718446553, -0.0018392166, -0.3763465583, 0.1328825504, -0.2728023827, -0.6834981441, 0.0993261337, 0.018812459, -0.0548778139, -0.2263853252, 0.076966241, -0.3152378798, -0.1691732258, 0.2465952784, 0.3125597537, -0.4311821759, -0.1518791914, 0.4057873785, 0.3899216354, -0.0322274305, 0.4833842516, -0.0553575903, -0.0931494385, -0.2447719872, 0.0896772742, 0.1940063983, -0.2671210766, 0.083190389, -0.2182868719, 0.2354191244, 0.2110478133, 0.2475497425, 0.0582140945, -0.0375554897, -0.3182399869, -0.2167704552, 0.0550096482, 0.1399969906, 0.2336661965, 0.374697715, -0.049318105, 0.2886081934, -0.0128015094, -0.1217284426, -0.2259507477, 0.3694865406, 0.0717831478, 0.2320927978, 0.0476727597, -0.2835392356, 0.2777879238, -0.0037467247, 0.0894870907, 0.2811294794, -0.1567190289, -0.1079948023, -0.3754077256, 0.1233826727, 0.0319674388, 0.062264137, -0.2143039554, 0.0490687937, 0.1448474377, -0.0080118412, 0.2008196712, 0.2167955488, 0.0344919823, 0.1800308079, -0.0633828044, 0.1611387134, 0.0755772442, -0.1940605789, -0.0879661366, 0.0265817009, 0.3356521726, -0.1145700514, -0.3686914146, 0.1255863905, -0.2908983827, 0.1372588128, 0.2278484404, -0.0607036278, 0.0060293847, -0.2250225246, -0.0057339827, 0.0907276273, 0.2555991113, 0.5138314366, -0.2099698186, -0.3390116692, 0.057702966, 0.1151939332, -0.1063013151, -0.1141083762, -0.1480734199, 0.1249522045, 0.1658432335, 0.309019357, 0.0514546111, -0.4245751798, 0.4315133989, -0.125810042, 0.2499516606, -0.2317190468, 0.2440086305, 0.4143304229, -0.0603279695, -0.1476062238, 0.2601906657, 0.1235286295, -0.213086471, 0.5466446877, -0.0603725649, 0.0290233325, -0.354124248, -0.0248368438, 0.0898936689, -0.1018577889, -0.0802813023, 0.230350107, -0.212807864, 0.3305297494, 0.1146316975, 0.4066488743, -0.0408455282, -0.0810562521, -0.3341462612, -0.2729624808, -0.2580868304, -0.1305444539, -0.3098895848, -0.4051509798, -0.0625761524, 0.0575425662, -0.1961645484, 0.054460559, 0.4997912943, 0.1460044533, -0.0082594454, -0.7142176628, -0.2702355981, 0.1107904091, 0.2933401465, 0.0491915382, 0.4703095555, 0.1340151727, 0.0178155284, 0.08531183, 0.1957300603, 0.2397438735, 0.1889180541, 0.1225124896, 0.1102056876, -0.3764483333, 0.0745751038, 0.0637034848, 0.3070596159, 0.0765785724, -0.2732907832, 0.1072874442, 0.0333980322, -0.0789425373, 0.2780892253, 0.0680700168, -0.0264700856, -0.803214848, 0.3519613445, 0.0192742534, 0.2420412302, 0.0527275763, -0.0352881104, -0.457416743, 0.4931130409, 0.309286207, 0.0321063958, 0.0530534126, -0.2545377314, 0.0737999231, -0.249757275, 0.2542214096, 0.1347325593, -0.0190867335, -0.124004066, -0.1625428945, -0.6735637188, 0.0717221648, -0.223077938, -0.0124966176, 0.1540584415, 0.06003993, -0.0518553257, 0.0883435607, 0.1788546294, 0.0864394531, -0.4328098595, 0.047537867, -0.4010686576, -0.1323048025, 0.1205496341, 0.0634414405, -0.0710199401, -0.1109481454, 0.0470495485, -0.1067718118, -0.03901048, -0.0458402336, 0.0019415263, -0.0850797668, 0.1856609434, -0.0113278562, -0.0458150133, 0.3190468252, 0.1376356184, -0.1362696439, -0.3025197983, -0.3942962885, -0.1327101737, 0.4103941023, 0.1652318388, 0.1351455301, -0.1027042791, -0.5430187583, 0.0290539209, 0.0596094839, 0.316062063, 0.1068303362, 0.0354209729, 0.0028795185, -0.2154764235, 0.1601433605, 0.0273873825, 0.6485617161, 0.1067193672, 0.160716638, -0.1940805763, -0.6553237438, 0.4583484828, -0.6851573586, -0.3094451129, -0.1223165169, 0.1761122197, 0.1354707927, -0.2074050307, -0.7160694599, -0.0106190657, 0.531948328, -0.1739030331, -0.0766740665, 0.3915344477, -0.0429105647, 0.0192744546, -0.2680869401, 0.6225163341, 0.4484646022, -0.3485529721, 0.1075246856, -0.3683798909 ]
https://github.com/huggingface/datasets/issues/2050
Build custom dataset to fine-tune Wav2Vec2
Sure you can use the json loader ```python data_files = {"train": "path/to/your/train_data.json", "test": "path/to/your/test_data.json"} train_dataset = load_dataset("json", data_files=data_files, split="train") test_dataset = load_dataset("json", data_files=data_files, split="test") ``` You just need to make sure that the data contain the paths to the audio files. If not, feel free to use `.map()` to add them.
Thank you for your recent tutorial on how to finetune Wav2Vec2 on a custom dataset. The example you gave here (https://huggingface.co/blog/fine-tune-xlsr-wav2vec2) was on the CommonVoice dataset. However, what if I want to load my own dataset? I have a manifest (transcript and their audio files) in a JSON file.
51
Build custom dataset to fine-tune Wav2Vec2 Thank you for your recent tutorial on how to finetune Wav2Vec2 on a custom dataset. The example you gave here (https://huggingface.co/blog/fine-tune-xlsr-wav2vec2) was on the CommonVoice dataset. However, what if I want to load my own dataset? I have a manifest (transcript and their audio files) in a JSON file. Sure you can use the json loader ```python data_files = {"train": "path/to/your/train_data.json", "test": "path/to/your/test_data.json"} train_dataset = load_dataset("json", data_files=data_files, split="train") test_dataset = load_dataset("json", data_files=data_files, split="test") ``` You just need to make sure that the data contain the paths to the audio files. If not, feel free to use `.map()` to add them.
[ -0.0861031339, 0.0252728332, 0.0131383101, 0.0565956756, -0.0154162087, -0.0016973368, 0.0401862338, 0.167280525, 0.1113970429, -0.0323932879, -0.2139551491, 0.4168871343, -0.2158390582, 0.1142554954, -0.0266242996, 0.0259717833, -0.1856243461, 0.2257935852, 0.1270138472, -0.0297932308, -0.2303093225, 0.1505398303, -0.0891871899, -0.0707921013, -0.1212103441, 0.1165198013, 0.1776778698, 0.4099344611, -0.1358955055, -0.3398263156, 0.4074665904, 0.3265333772, 0.1645617187, 0.3329022527, -0.0000988554, -0.1569033563, -0.0146499379, -0.2888990939, 0.0687239319, 0.1292685568, -0.4952056706, -0.1590584815, -0.1031420231, -0.0598489903, -0.2974746525, -0.1860623062, -0.2987944484, -0.2663180828, 0.721619904, 0.3141843677, 0.2168494612, -0.3120063841, 0.028778255, -0.0162664447, 0.0748966113, 0.0478535555, 0.0662212744, 0.4144845605, 0.2814678252, 0.0652266741, 0.2580659688, 0.0439045578, -0.3099859953, 0.1127454862, 0.2655505836, -0.002798799, -0.4111700058, -0.2162589282, -0.0957744867, 0.5772783756, 0.4842570126, -0.5012126565, -0.1985923946, -0.1890507787, 0.19998613, -0.4806697667, -0.0414557979, 0.0458247587, -0.1702145785, 0.3052022457, -0.0256955083, -0.3619789779, -0.2076644003, -0.0906064659, 0.0454348698, 0.0527969375, -0.1664788574, -0.0589324608, 0.0423609912, -0.0513079502, -0.1957064718, 0.0393170863, -0.2192354947, 0.3246354759, -0.426564604, -0.3958183825, -0.0953576416, -0.4423438907, 0.0504590422, 0.033885926, 0.3694807589, 0.143151477, -0.1174623668, 0.1512011588, 0.0218682326, 0.0106422147, 0.0032330765, -0.1732017398, 0.0986957997, -0.4326668084, -0.0350537896, 0.0264263917, -0.2180436552, -0.0432570726, -0.342779547, 0.0566504635, 0.1485425979, -0.3140286803, -0.30480057, -0.0890862271, -0.1365511268, 0.01107853, 0.0665749982, 0.4089034796, 0.1010565087, 0.0541142412, -0.0569670424, 0.3980821669, 0.161212936, 0.0188257135, 0.0439641103, 0.258975476, 0.3334706426, 0.1825695634, 0.3748438656, 0.0000858718, 0.4036773741, -0.1982592791, 0.2077445835, -0.1387871653, -0.0327320285, 0.1331546456, -0.2826272547, -0.0561921671, -0.0048101326, 0.1839497983, -0.1019109786, 0.0315985158, -0.3335480988, -0.0936333686, -0.3694886565, -0.3046225607, 0.1110636294, 0.2222230285, -0.2240484059, -0.1587860584, -0.138962239, 0.0635610521, -0.1052220613, -0.2892748415, -0.2854252458, -0.0336189307, -0.2655044198, -0.1619247645, 0.1819533855, -0.0987349376, -0.6757567525, 0.0897569209, -0.1216198877, 0.1931487471, 0.0001066286, 0.2764824927, -0.047364071, 0.5055426955, -0.0960016847, 0.3563432693, 0.2618570328, -0.4331694841, -0.2342767268, 0.3278566301, -0.1937009841, 0.1395900995, 0.111950174, -0.0538506657, 0.4180213511, -0.3144518733, 0.2169785351, 0.4147838056, 0.1869998872, 0.0101189539, 0.1476112604, -0.0495184548, 0.185410291, 0.0495970733, -0.3701094687, -0.0695196241, -0.1135779545, -0.0335274749, 0.2687248588, -0.1552429199, 0.0629093796, 0.1805384755, 0.2452695072, -0.2102155983, 0.0133579932, 0.1091390774, 0.044773031, 0.1026234552, -0.1104327887, 0.0059726941, 0.3424819112, 0.0717757419, -0.2754266858, -0.2076174319, -0.344887197, -0.360868752, 0.1859110892, 0.1474170387, 0.2212572396, -0.4752927423, -0.4122076333, 0.0807686225, -0.0943107158, -0.1427308768, -0.2458337545, -0.0367686264, 0.350138098, 0.0070164404, 0.3941415846, 0.394772917, 0.1325920373, 0.1408106536, -0.0319033563, 0.4642842412, 0.2063316852, 0.3702319264, 0.1435025185, 0.2380605638, -0.1249077916, -0.4643810689, 0.365750134, 0.35372594, 0.2512150705, -0.0766512677, -0.300825417, 0.3731018305, 0.2522551119, 0.3634332716, -0.0481414273, -0.1168698445, 0.3635116518, 0.1261613965, -0.2628049254, 0.109267123, -0.0914469361, -0.0808731094, 0.4064537883, -0.2065783292, -0.0683864132, 0.0845374241, 0.2053622752, -0.075065732, 0.0809963569, 0.1536126137, -0.4257686734, -0.1188575476, -0.1134337485, 0.1789560616, 0.4203053415, 0.3598632812, -0.0708563849, -0.0662555695, -0.0526871644, -0.1265424341, 0.1080327928, -0.1157128513, -0.0939976946, 0.3089734018, 0.1058523357, -0.1834134758, -0.1501322538, -0.0604768917, -0.313282609, 0.0747416988, -0.3948698342, -0.4067826271, -0.1029471382, 0.3815217018, -0.187557444, -0.3545242548, 0.0532794446, 0.1806254983, 0.249748975, 0.0836811438, -0.0780065805, 0.0876740217, 0.0497492477, 0.4142825305, 0.0394406319, -0.3689312935, 0.2387044877, -0.0507124066, 0.0788016617, 0.2575671077, 0.120686017, 0.2905211747, 0.1138086244, 0.2241348773, 0.0919779986, 0.0407799482, 0.1982495785, 0.0474722609, -0.129872039, 0.1506040543, 0.0200967547, 0.2760103345, 0.3697804809, -0.1345030665, -0.1777007282, 0.158492133, -0.007083748, -0.0365134627, 0.0327606611, 0.0971888751, 0.1346777827, -0.5730344057, -0.2228903174, -0.4019255638, 0.3425263464, 0.143217057, 0.0825380608, -0.2697080076, 0.0670057982, 0.0595997646, 0.0927964672, 0.3165632784, -0.2320635617, -0.2677365839, 0.4775477648, -0.2591695189, -0.0345866568, 0.1361819804, -0.1052936018, 0.369261533, -0.1506731212, -0.0477360599, 0.2083642483, 0.0922407731, -0.1593066603, 0.1981941313, 0.0033950044, 0.2996213734, 0.0201973841, -0.0316830538, -0.21387209, -0.1847884655, 0.1399833262, 0.3487140536, 0.0934474319, 0.237614572, 0.0113634365, -0.652787745, 0.5451338887, 0.2003680617, 0.1047424823, 0.0255908184, -0.1037693322, 0.0688262284, -0.1141261682, 0.0598314665, 0.1120029539, 0.0639361814, -0.1524634212, 0.4134089351, 0.3461427391, -0.0516760498, -0.1652645022, 0.1413023174, -0.4106562436, -0.0305015277, 0.1508202553, 0.0608624928, 0.0484411605, -0.0202792827, 0.3535825312, 0.1242536977, -0.1363379061, 0.123967953, -0.0720518604, 0.3260032535, -0.2398376912, -0.2358722836, -0.1987165958, -0.3337766528, 0.1443869919, -0.1739083529, 0.2854419351, 0.0727059618, -0.1058204547, -0.180471316, -0.144270584, 0.2879537046, -0.3175034523, -0.0472838096, 0.0281097386, 0.1946291178, -0.0486727618, 0.1891381443, -0.2258088887, -0.1626951396, -0.3231973052, -0.0086009912, -0.148740828, -0.0403888375, -0.0359368697, 0.3147675991, -0.1958139837, -0.2717555761, 0.1249785274, -0.0154528469, -0.290877074, -0.2386446446, -0.2708973289, 0.0667561367, -0.3513464034, 0.0070523042, -0.003219214, -0.0408311449, 0.4304588735, 0.1467401385, 0.4306106269, 0.1621549428, 0.2497423142, 0.1420552135, -0.1393048912, 0.0920065939, 0.4196507633, 0.1345371753, -0.2270631641, 0.0326279216, -0.0507334694, 0.2912417948, 0.0641625449, -0.0920998082, 0.1154696196, -0.1916183084, -0.1043754146, -0.4369696975, 0.1850701869, 0.2909204364, -0.1390725672, -0.0982922092, -0.5546113849, 0.5026654601, -0.0573656522, -0.1340868175, -0.1058611721, -0.1697184145, -0.3697128594, 0.3407271206, 0.0301521961, 0.6115984917, 0.1831118464, 0.0765378103, 0.4470016658, -0.270752281, 0.1296689212, -0.7494603992, -0.0601623617, -0.2570715547, 0.2156746686, -0.1564164758, 0.0875768214, -0.1179152504, 0.3387050927, -0.1610486805, 0.2530445158, 0.2300136983, -0.2307196856, -0.0164557602, 0.1258821934, 0.1463287771, -0.4770155847, -0.3329917789, 0.2037639618, -0.0281248912, -0.0517739989, 0.1280699223, -0.0601570681, -0.1179041713, -0.3157677054, -0.2466216981, 0.0219752081, -0.0180834532, -0.2330807149, 0.0067216209, -0.2160554677, 0.1298193485, 0.1525844485, -0.2598615289, 0.3411215544, -0.4805780351, 0.1543213725, 0.0876807868, 0.1264078468, -0.0937599912, 0.0119870501, -0.0926355049, 0.0309847202, -0.0102691334, 0.3972671926, -0.0559799485, -0.2209255248, 0.1096413061, -0.1084761694, 0.0888471082, -0.1113110036, -0.4517172873, 0.2794418931, 0.0820836648, -0.1447938532, 0.1789727062, 0.3935126364, -0.4975095689, 0.2964439988, -0.0663140267, -0.2111897618, -0.0223858133, 0.0383562073, 0.1171048656, -0.1720431894, 0.4663718641, -0.0123498347, 0.1118692905, -0.4094527662, 0.2964841127, 0.2564250231, -0.0312092938, -0.1114211455, 0.4296888411, -0.1672209501, -0.098603636, 0.0839872584, 0.0439673699, -0.0571219623, -0.0933862254, -0.5307200551, -0.4021138847, 0.0915457234, 0.2293603569, 0.326286763, -0.2629686594, -0.0243996084, -0.2712801099, 0.0742359087, -0.4020579457, -0.0253426228, 0.1834711879, -0.1052992865, 0.2061376423, 0.5022348762, 0.0588143654, 0.1126754433, 0.2139059454, -0.0593331568, -0.3235196471, -0.2381599098, -0.1208353043, 0.1364918947, 0.0521110222, 0.0750075057, 0.0321722887, 0.0613972545, -0.295763433, -0.252894491, 0.0021813214, -0.1184123904, 0.0280230697, 0.1504423618, -0.0798129961, -0.1458128393, -0.1736915261, 0.0743582472, 0.0843824521, 0.0748465881, 0.2703753412, 0.1307303756, -0.1491898596, -0.1101870611, 0.310375154, 0.3500759304, 0.1600983441, -0.0866959393, 0.221190691, -0.0560310297, 0.1250950992, 0.1910203844, 0.3222620785, 0.4756328166, -0.2523066103, 0.0999069288, 0.3864907324, 0.3116900325, -0.1433417052, 0.1414840966, 0.0606211051, -0.1722406745, 0.1818790585, 0.1739678681, -0.1242596582, -0.1034298763, -0.3624983132, -0.038029898, 0.1487066001, -0.1853961051, -0.1252018213, 0.2422107607, -0.1227989495, -0.1672620624, -0.2144639045, 0.0211596675, 0.2113021463, 0.2708628178, -0.2979030013, 0.1575956643, 0.06375736, -0.0509715714, 0.0109268166, -0.4018689394, -0.0099686505, 0.2816999853, -0.0491192751, 0.185063228, 0.1528872699, 0.2674700618, -0.0995555893, -0.0807875171, -0.1803281009, 0.0866122171, 0.203504324, -0.3923354447, -0.114998199, -0.2227957547, -0.0547103658, -0.0287103895, -0.0006917235, -0.1335812211, -0.2146770805, -0.26210621, 0.1103520095, -0.1122842655, 0.2066514045, -0.0289751384, -0.2205848843, -0.182390511, 0.2438370585, 0.0532717444, 0.0331178084, 0.4368037283, 0.1147643998, 0.2617259324, 0.1566609293, -0.3266109526, 0.1419266462, -0.0725840628, -0.0590927638, 0.0747028217, 0.2985954285, -0.1415741742, 0.1084066927, 0.2894109786, 0.26089257, -0.135889709, 0.0838239938, 0.1716750115, -0.0309383217, -0.172951296, 0.0944246948, 0.1896501184, -0.051036343, 0.0038926729, -0.0637781173, -0.379828006, -0.2290683538, 0.2155450583, 0.2613808513, 0.1403049827, 0.2225839645, 0.1633605212, -0.2535493374, 0.4066273272, 0.0116543751, 0.221926868, -0.1308040023, -0.0523896851, -0.4105673432, -0.0238277912, -0.0015744773, -0.2007563263, -0.3632597923, 0.0339234136, 0.5755021572, 0.4340139925, -0.1519070864, -0.0174758248, -0.0307910051, 0.2664518654, -0.1470305473, -0.0322138518, 0.2022716701, 0.5466467738, 0.1108957157, -0.368280232, -0.3397105932, 0.1616304368, 0.0610877462, 0.1865166873, 0.1779485345, -0.1060709357, -0.3083716333, 0.3497229815, -0.1479788721, 0.4285058379, -0.3451283574, 0.0563312992, -0.158446461, 0.1195357442, -0.1692724675, -0.1563920677, 0.0275500268, 0.5028764009, -0.111271359, 0.106511876, -0.1819576174, -0.1896496117, 0.0831212327, -0.216519624, -0.4016497135, 0.2057699114, -0.298371911, 0.05188841, -0.080070734, -0.1055034846, -0.0849212557, 0.1245820224, 0.0509300306, 0.0649690628, 0.6319299936, 0.009269435, -0.0461356454, 0.1577686071, 0.4638566077, -0.1795600653, 0.1404384226, -0.392516017, 0.3227732778, 0.2682937384, 0.044746317, 0.0198239461, 0.0708591938, -0.1254262775, -0.1551365703, -0.0289505571, 0.20285815, 0.0856642798, -0.0417920165, -0.2312369645, -0.4446926415 ]
https://github.com/huggingface/datasets/issues/2046
add_faisis_index gets very slow when doing it interatively
I think faiss automatically sets the number of threads to use to build the index. Can you check how many CPU cores are being used when you build the index in `use_own_knowleldge_dataset` as compared to this script ? Are there other programs running (maybe for rank>0) ?
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path)
47
add_faisis_index gets very slow when doing it interatively As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path) I think faiss automatically sets the number of threads to use to build the index. Can you check how many CPU cores are being used when you build the index in `use_own_knowleldge_dataset` as compared to this script ? Are there other programs running (maybe for rank>0) ?
[ -0.4988242388, -0.2682781816, -0.0245006643, 0.1282280535, 0.0594395846, 0.2077843398, 0.1214630306, 0.4241298139, 0.2917420566, 0.2924969494, -0.11882516, 0.1883150488, 0.137212798, 0.0858211592, -0.1362563074, 0.1750426441, 0.2370328307, 0.0853345543, 0.2607981563, -0.134414047, -0.3274794221, -0.3090645075, -0.1589122415, -0.2578623593, -0.4006922543, -0.0958189517, -0.2436219752, -0.0820503682, 0.1982476264, -0.4729164541, -0.1375323683, 0.1398430467, 0.3402585983, 0.2582926452, -0.0001220497, 0.0556765944, 0.2280080169, 0.0654631555, -0.2229977548, 0.6411957741, 0.3400725722, -0.0694881529, -0.1751101911, -0.3107708395, -0.1455551684, -0.1110419556, 0.0810795054, -0.0469299518, -0.166365087, 0.1943014115, 0.0266239885, -0.0582865886, 0.052254945, -0.0154003035, 0.4025113285, -0.0755909458, -0.069177337, 0.317471087, 0.1635127813, -0.0722375661, 0.0997430757, 0.4481079876, 0.1206412762, -0.2267772257, 0.1089043394, 0.2051612139, 0.7838162184, 0.0224399772, 0.0652679577, 0.1526694149, 0.0153404847, -0.0905527547, -0.443008393, -0.1029034629, 0.4257143438, -0.6180595756, -0.0674013793, -0.0837422833, -0.1014745235, 0.0538600758, 0.1745851785, -0.030229982, 0.0363179892, 0.047450684, 0.1748994142, 0.1653573662, 0.3874711692, -0.0599025264, 0.5584331751, 0.0424473584, -0.1168545559, 0.0448825732, -0.0920775458, 0.0121962707, -0.6050303578, 0.0880847201, -0.0309158228, -0.099331364, -0.092686981, 0.0178016499, -0.3694862127, 0.0061656279, 0.2365599424, 0.003336211, -0.1830646694, -0.090258047, -0.5061048269, 0.0558811538, 0.0839015841, 0.106287092, -0.3780876994, 0.099234134, -0.0033380073, -0.0043097455, -0.3259802163, -0.2981355488, -0.2288902104, 0.2228070349, -0.1811424196, 0.0771882161, -0.403968513, -0.2522765398, 0.205072701, 0.4162215889, -0.1177442446, -0.0761367977, 0.0108398311, -0.0346153565, -0.2344279736, 0.1761687845, -0.2220171839, 0.2306601256, -0.0319639146, 0.5045983195, -0.0291063543, -0.2213937491, -0.0890690237, -0.021730952, 0.0839634538, -0.0078423154, -0.0441637486, -0.2998931706, 0.2466678917, 0.074922964, -0.2632143795, -0.0676849857, -0.0939521194, 0.1211107001, -0.2278233618, 0.2215082943, -0.2173945904, -0.3651024103, 0.0271580219, 0.0193312168, 0.3086773157, -0.0630927086, 0.4208227694, 0.1143972203, 0.1730182916, 0.161335066, 0.159176439, -0.1314438134, -0.2680220008, 0.0831867158, 0.2267841995, 0.3627383709, 0.0937216878, 0.0347713977, 0.2980126739, 0.3901302814, 0.2124050558, 0.3999934196, -0.1159487963, 0.6762604117, -0.3200042248, 0.0842919499, 0.2451206446, -0.2553784251, -0.2924264371, 0.1869048476, -0.1663639843, -0.0773258805, 0.3296630979, 0.5182705522, 0.3120290339, 0.087015532, 0.3410931826, 0.3062555492, 0.0090267248, -0.0312472526, -0.4050689042, -0.0582714751, 0.2639195621, 0.3804078996, -0.3354525268, 0.1017406359, -0.0401813611, -0.3298806846, 0.6009741426, -0.4761058092, -0.1217619926, 0.0680582821, 0.3615737557, 0.3393868506, 0.2328700125, 0.2761100531, 0.1495417207, 0.1626259983, 0.0960145071, 0.0987887159, 0.170155108, -0.4183503687, 0.2156295478, -0.0257501192, -0.2181930244, 0.1078813002, -0.0609780215, 0.1500250548, -0.0456766933, -0.1998730302, -0.1568869352, 0.5427840352, -0.6157975197, 0.0279460102, -0.2488966882, -0.156083405, 0.0070148306, -0.2134260386, -0.0342438444, 0.1429587603, 0.0524962097, -0.3868664503, -0.0538335182, 0.1028612778, 0.1266249269, -0.1876764596, 0.5111071467, -0.1136962175, -0.0370367207, 0.2962220609, 0.0449531637, -0.1512652487, 0.1090165302, -0.1937617213, -0.0018789305, 0.4852038324, 0.3487841487, 0.2458340824, -0.0214936808, -0.2332082391, 0.0470290966, -0.0406503491, -0.0793871209, 0.2275259793, 0.0799436793, 0.1302530169, 0.4091725349, -0.0333358422, -0.3332444429, 0.2324638963, 0.1857769638, -0.2031299174, -0.4314081669, 0.2710416913, 0.3516991735, -0.0368973613, -0.3497084677, -0.5220082998, 0.2360266447, 0.3185988069, 0.1883933544, -0.0716535524, -0.027651228, -0.2472809106, 0.1691095531, 0.0565534793, -0.0483720899, 0.1000482067, 0.176642105, -0.2145444453, -0.2067898363, -0.2552964389, -0.1363968253, 0.4286459386, -0.0443388671, 0.3094405532, 0.1777622402, 0.277187258, -0.1247246787, -0.1249763817, 0.288752079, 0.0088401213, 0.0416107886, -0.1089355275, -0.0362387151, 0.1931091696, -0.0469498783, 0.364918977, 0.1957940608, -0.3250906467, 0.0198442154, -0.0984709486, -0.1214951128, -0.0789785683, 0.12100555, -0.1505498737, 0.1174001545, 0.0439474769, -0.0525804907, -0.1851364672, -0.0862713754, -0.1575878561, -0.0794769004, -0.2974513173, -0.1662344933, -0.246068731, -0.1250380278, -0.1196445823, 0.0043306523, 0.0005500191, -0.0106874174, -0.040487539, -0.282674104, -0.1588367075, 0.0607948825, -0.2936335504, -0.2167019695, -0.1739190817, 0.2281411588, -0.024399763, 0.0930591077, -0.1156691313, 0.0667517185, 0.1222409904, -0.0957006514, -0.1543300152, -0.0534616187, -0.2331428826, 0.2917100191, 0.1491724104, 0.0468315743, -0.0794367269, -0.4122963548, -0.0143970307, 0.4969035387, -0.521871388, -0.0407991894, -0.3583911359, 0.2859596312, -0.3150941432, 0.4582993388, 0.0567069426, -0.2462487072, -0.1380136758, 0.3644825518, 0.1745100319, 0.3875308633, -0.0617133901, 0.0549776666, -0.0879176334, 0.2675450742, -0.1149755344, 0.5162413716, 0.327231437, -0.213698253, -0.0478192829, -0.2623963356, 0.1159515381, 0.0527699813, -0.1398818344, 0.2965241671, 0.0834780782, -0.3149952888, 0.1665279567, -0.2887442112, -0.4117941856, 0.0320426971, -0.0527596958, 0.1982457936, -0.2443106771, 0.3169922829, 0.0489504598, 0.4910992682, -0.1780502051, 0.2910961807, -0.2383604646, -0.1767039299, 0.1975149959, 0.2727531791, 0.2449009418, -0.1675574183, 0.0264965333, -0.5409094095, -0.4216778874, 0.2834412158, 0.1674794704, 0.2352838963, 0.2791195214, -0.1008351147, 0.5258053541, -0.1562115103, 0.7999857664, 0.0206831619, -0.3363378942, 0.3844910264, -0.1618198156, 0.0528762117, -0.2177931666, -0.1827091575, -0.0659893453, 0.2337737232, 0.4407468438, -0.0931774974, -0.2479646355, 0.6446054578, 0.0670877099, -0.1472484171, -0.3441520929, -0.1861820668, -0.3543055654, -0.0412189476, 0.7678550482, -0.1216907501, 0.1556899697, 0.1822197735, -0.0512350053, -0.3818886578, 0.1598663926, 0.2386750728, -0.0051199365, 0.0505830422, 0.4557842314, 0.4348103106, 0.0714173019, 0.0007317181, 0.1192741022, -0.0369115286, -0.3043968976, 0.0731522962, -0.1888456196, -0.2556854188, 0.3799426854, 0.7006735802, 0.1868768632, 0.2484072298, -0.2102309167, 0.3775885701, -0.1914456934, 0.0245310739, 0.4383127093, -0.0020622555, -0.1787724793, -0.5383258462, 0.3112787604, 0.2034230232, 0.0733027831, 0.0608612671, -0.0757304803, -0.0163802877, 0.3021710217, 0.1249998808, 0.9838234186, -0.0269195437, 0.1929831058, 0.506308496, 0.0048405752, -0.2439047098, -0.6487340331, 0.3692770004, -0.3329212666, -0.2241525799, 0.1931164563, -0.1011416465, -0.0847687051, 0.0735342428, -0.0393426344, 0.0991453081, -0.0472755767, -0.086256206, -0.2586019337, 0.3895537555, 0.3151939809, -0.427839905, 0.024883382, 0.0013510567, 0.2714568973, -0.098715879, 0.127815634, -0.1633998305, -0.1108863652, 0.0184412617, 0.125173822, -0.0791136324, -0.1283782125, 0.0130585553, -0.048773177, -0.0873117596, -0.2329256982, -0.3244180977, 0.4604190886, -0.0299462639, 0.0995342582, 0.081583783, -0.0991101637, 0.0721640512, -0.0867693722, -0.4970830977, 0.2265412658, 0.080812484, -0.1736775488, 0.1493709534, 0.0787264854, -0.3227710724, -0.1460988969, 0.1744302213, 0.020576952, 0.0075483699, -0.0367372781, 0.3179990351, -0.2626371086, -0.2335654795, 0.0200596899, 0.092077136, -0.4317520857, 0.5605173111, -0.3023818433, -0.3800687194, -0.0546555147, 0.0166956205, 0.3058080673, 0.0560380518, 0.2623711228, -0.089119494, -0.3048813045, -0.1546768844, -0.3024290204, 0.06128297, 0.0386252739, 0.0938879848, 0.302420795, -0.0061311335, 0.0253992658, -0.2326645553, -0.3227178752, -0.1417695731, -0.3823906779, 0.114599824, -0.357640624, -0.1850683242, 0.2572281957, 0.3836849034, 0.0360176899, 0.2342237681, -0.4448953867, 0.2590475976, -0.2176697105, -0.0653393939, -0.0312393308, 0.260019362, -0.0327090882, -0.2574276924, 0.1754399091, 0.216269955, 0.1199890375, 0.1412038505, 0.0373655967, -0.1117986888, 0.102948904, 0.1834249198, -0.1107470691, 0.1684505641, 0.0811555237, -0.1483059525, -0.3009880781, -0.2652980983, 0.134365961, -0.1107032374, -0.0258550439, -0.130359441, -0.121708937, -0.1124876216, 0.3323767483, 0.2738249004, 0.204005003, 0.2833088934, -0.0734993368, 0.0767015368, -0.2428330332, -0.2653930187, -0.0510374494, 0.1903243959, 0.0616441779, 0.0863677934, -0.0918659791, -0.1731876582, -0.3799477816, -0.0381177552, 0.0317690298, 0.449893564, 0.0424939133, -0.2883666456, 0.1852962971, 0.0379372314, -0.2797204852, -0.1952762008, 0.3624272645, -0.4507015347, 0.2002287805, 0.4017178416, 0.264575094, 0.1657236665, -0.4832746089, 0.0937634781, -0.2345175147, 0.0963051394, -0.4337076545, -0.0904511586, 0.3514745831, -0.1948999614, 0.2041255087, 0.3052142262, 0.2311196178, 0.6089177728, 0.031423822, 0.2752895951, 0.1878769845, 0.2133272588, -0.321703434, -0.1798366755, 0.2906689644, 0.2322687805, -0.0317728333, -0.2078446299, 0.0090948511, 0.2347342968, 0.2440355718, -0.5169644952, -0.2611279488, 0.1630210876, -0.1220198497, -0.1281811744, 0.4117492437, 0.0567708388, -0.2780818343, 0.2270266116, 0.0776642486, 0.1923736036, -0.1272478253, 0.2008742094, 0.2934535444, 0.2212004811, -0.0231137872, 0.0910243168, 0.4337709844, -0.3367401063, -0.2079149038, -0.0111506451, -0.0027165411, 0.023589652, -0.1512230337, 0.2809454799, 0.2448250949, -0.0555029102, 0.2687216699, -0.0504416563, -0.0088710105, 0.0438044779, -0.0344009884, -0.1084128991, -0.1003935114, 0.1006174311, -0.0908768773, -0.1285338104, -0.1207232624, -0.242632851, 0.2026132792, -0.1804253608, 0.0230687745, 0.3459427953, -0.0975399837, -0.3948054314, 0.0952417776, -0.2833031714, 0.0691804811, 0.1062702462, -0.3566010296, -0.0891358927, 0.2603065968, -0.0016340399, -0.4257487357, 0.5468893051, 0.17240493, 0.1286818832, -0.3299409747, -0.001434241, -0.3207879364, -0.0345095806, -0.5890921354, 0.1126355603, 0.1176837757, 0.4403544068, 0.07392589, -0.0703547671, 0.4031085968, -0.4079713225, 0.0992393643, 0.3735492229, -0.1734418124, -0.030622473, -0.4397856593, -0.0738475695, 0.042283725, -0.3743222654, 0.2847959697, -0.128206715, -0.0147695988, 0.192371875, -0.02026961, 0.1226509884, 0.0626827776, 0.5298789144, -0.0979443565, 0.0000544328, -0.0964540839, 0.0086353002, -0.2321902514, 0.121959202, -0.2070783824, 0.0085759228, -0.0218885075, 0.1733756065, -0.2073741704, -0.391960144, -0.1815342158, 0.4176571369, 0.3126299381, -0.4186963737, 0.1980268806, 0.1526594162, -0.155828163, 0.4795944989, 0.1503627747, 0.2282843739, 0.1467331946, -0.0340509564, -0.3561273217, -0.1054202095, 0.6236689091, -0.188294068, -0.0293617602, -0.3494386673, 0.2549012005, 0.4437922537, 0.5510440469, -0.2645768225, 0.086238116, 0.1219435632, 0.0535738543, -0.2103940099, 0.5777598023, 0.1868617237, 0.0147709884, -0.0737834275, -0.2648075819, -0.0630892515, -0.0029667234, -0.3532101512, -0.2814310193 ]
https://github.com/huggingface/datasets/issues/2046
add_faisis_index gets very slow when doing it interatively
Hi, I am running the add_faiss_index during the training process of the RAG from the master process (rank 0). But at the exact moment, I do not run any other process since I do it in every 5000 training steps. I think what you say is correct. It depends on the number of CPU cores. I did an experiment to compare the time taken to finish the add_faiss_index process on use_own_knowleldge_dataset.py vs the training loop thing. The training loop thing takes 40 mins more. It might be natural right? at the moment it uses around 40 cores of a 96 core machine (I am fine-tuning the entire process).
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path)
108
add_faisis_index gets very slow when doing it interatively As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path) Hi, I am running the add_faiss_index during the training process of the RAG from the master process (rank 0). But at the exact moment, I do not run any other process since I do it in every 5000 training steps. I think what you say is correct. It depends on the number of CPU cores. I did an experiment to compare the time taken to finish the add_faiss_index process on use_own_knowleldge_dataset.py vs the training loop thing. The training loop thing takes 40 mins more. It might be natural right? at the moment it uses around 40 cores of a 96 core machine (I am fine-tuning the entire process).
[ -0.4988242388, -0.2682781816, -0.0245006643, 0.1282280535, 0.0594395846, 0.2077843398, 0.1214630306, 0.4241298139, 0.2917420566, 0.2924969494, -0.11882516, 0.1883150488, 0.137212798, 0.0858211592, -0.1362563074, 0.1750426441, 0.2370328307, 0.0853345543, 0.2607981563, -0.134414047, -0.3274794221, -0.3090645075, -0.1589122415, -0.2578623593, -0.4006922543, -0.0958189517, -0.2436219752, -0.0820503682, 0.1982476264, -0.4729164541, -0.1375323683, 0.1398430467, 0.3402585983, 0.2582926452, -0.0001220497, 0.0556765944, 0.2280080169, 0.0654631555, -0.2229977548, 0.6411957741, 0.3400725722, -0.0694881529, -0.1751101911, -0.3107708395, -0.1455551684, -0.1110419556, 0.0810795054, -0.0469299518, -0.166365087, 0.1943014115, 0.0266239885, -0.0582865886, 0.052254945, -0.0154003035, 0.4025113285, -0.0755909458, -0.069177337, 0.317471087, 0.1635127813, -0.0722375661, 0.0997430757, 0.4481079876, 0.1206412762, -0.2267772257, 0.1089043394, 0.2051612139, 0.7838162184, 0.0224399772, 0.0652679577, 0.1526694149, 0.0153404847, -0.0905527547, -0.443008393, -0.1029034629, 0.4257143438, -0.6180595756, -0.0674013793, -0.0837422833, -0.1014745235, 0.0538600758, 0.1745851785, -0.030229982, 0.0363179892, 0.047450684, 0.1748994142, 0.1653573662, 0.3874711692, -0.0599025264, 0.5584331751, 0.0424473584, -0.1168545559, 0.0448825732, -0.0920775458, 0.0121962707, -0.6050303578, 0.0880847201, -0.0309158228, -0.099331364, -0.092686981, 0.0178016499, -0.3694862127, 0.0061656279, 0.2365599424, 0.003336211, -0.1830646694, -0.090258047, -0.5061048269, 0.0558811538, 0.0839015841, 0.106287092, -0.3780876994, 0.099234134, -0.0033380073, -0.0043097455, -0.3259802163, -0.2981355488, -0.2288902104, 0.2228070349, -0.1811424196, 0.0771882161, -0.403968513, -0.2522765398, 0.205072701, 0.4162215889, -0.1177442446, -0.0761367977, 0.0108398311, -0.0346153565, -0.2344279736, 0.1761687845, -0.2220171839, 0.2306601256, -0.0319639146, 0.5045983195, -0.0291063543, -0.2213937491, -0.0890690237, -0.021730952, 0.0839634538, -0.0078423154, -0.0441637486, -0.2998931706, 0.2466678917, 0.074922964, -0.2632143795, -0.0676849857, -0.0939521194, 0.1211107001, -0.2278233618, 0.2215082943, -0.2173945904, -0.3651024103, 0.0271580219, 0.0193312168, 0.3086773157, -0.0630927086, 0.4208227694, 0.1143972203, 0.1730182916, 0.161335066, 0.159176439, -0.1314438134, -0.2680220008, 0.0831867158, 0.2267841995, 0.3627383709, 0.0937216878, 0.0347713977, 0.2980126739, 0.3901302814, 0.2124050558, 0.3999934196, -0.1159487963, 0.6762604117, -0.3200042248, 0.0842919499, 0.2451206446, -0.2553784251, -0.2924264371, 0.1869048476, -0.1663639843, -0.0773258805, 0.3296630979, 0.5182705522, 0.3120290339, 0.087015532, 0.3410931826, 0.3062555492, 0.0090267248, -0.0312472526, -0.4050689042, -0.0582714751, 0.2639195621, 0.3804078996, -0.3354525268, 0.1017406359, -0.0401813611, -0.3298806846, 0.6009741426, -0.4761058092, -0.1217619926, 0.0680582821, 0.3615737557, 0.3393868506, 0.2328700125, 0.2761100531, 0.1495417207, 0.1626259983, 0.0960145071, 0.0987887159, 0.170155108, -0.4183503687, 0.2156295478, -0.0257501192, -0.2181930244, 0.1078813002, -0.0609780215, 0.1500250548, -0.0456766933, -0.1998730302, -0.1568869352, 0.5427840352, -0.6157975197, 0.0279460102, -0.2488966882, -0.156083405, 0.0070148306, -0.2134260386, -0.0342438444, 0.1429587603, 0.0524962097, -0.3868664503, -0.0538335182, 0.1028612778, 0.1266249269, -0.1876764596, 0.5111071467, -0.1136962175, -0.0370367207, 0.2962220609, 0.0449531637, -0.1512652487, 0.1090165302, -0.1937617213, -0.0018789305, 0.4852038324, 0.3487841487, 0.2458340824, -0.0214936808, -0.2332082391, 0.0470290966, -0.0406503491, -0.0793871209, 0.2275259793, 0.0799436793, 0.1302530169, 0.4091725349, -0.0333358422, -0.3332444429, 0.2324638963, 0.1857769638, -0.2031299174, -0.4314081669, 0.2710416913, 0.3516991735, -0.0368973613, -0.3497084677, -0.5220082998, 0.2360266447, 0.3185988069, 0.1883933544, -0.0716535524, -0.027651228, -0.2472809106, 0.1691095531, 0.0565534793, -0.0483720899, 0.1000482067, 0.176642105, -0.2145444453, -0.2067898363, -0.2552964389, -0.1363968253, 0.4286459386, -0.0443388671, 0.3094405532, 0.1777622402, 0.277187258, -0.1247246787, -0.1249763817, 0.288752079, 0.0088401213, 0.0416107886, -0.1089355275, -0.0362387151, 0.1931091696, -0.0469498783, 0.364918977, 0.1957940608, -0.3250906467, 0.0198442154, -0.0984709486, -0.1214951128, -0.0789785683, 0.12100555, -0.1505498737, 0.1174001545, 0.0439474769, -0.0525804907, -0.1851364672, -0.0862713754, -0.1575878561, -0.0794769004, -0.2974513173, -0.1662344933, -0.246068731, -0.1250380278, -0.1196445823, 0.0043306523, 0.0005500191, -0.0106874174, -0.040487539, -0.282674104, -0.1588367075, 0.0607948825, -0.2936335504, -0.2167019695, -0.1739190817, 0.2281411588, -0.024399763, 0.0930591077, -0.1156691313, 0.0667517185, 0.1222409904, -0.0957006514, -0.1543300152, -0.0534616187, -0.2331428826, 0.2917100191, 0.1491724104, 0.0468315743, -0.0794367269, -0.4122963548, -0.0143970307, 0.4969035387, -0.521871388, -0.0407991894, -0.3583911359, 0.2859596312, -0.3150941432, 0.4582993388, 0.0567069426, -0.2462487072, -0.1380136758, 0.3644825518, 0.1745100319, 0.3875308633, -0.0617133901, 0.0549776666, -0.0879176334, 0.2675450742, -0.1149755344, 0.5162413716, 0.327231437, -0.213698253, -0.0478192829, -0.2623963356, 0.1159515381, 0.0527699813, -0.1398818344, 0.2965241671, 0.0834780782, -0.3149952888, 0.1665279567, -0.2887442112, -0.4117941856, 0.0320426971, -0.0527596958, 0.1982457936, -0.2443106771, 0.3169922829, 0.0489504598, 0.4910992682, -0.1780502051, 0.2910961807, -0.2383604646, -0.1767039299, 0.1975149959, 0.2727531791, 0.2449009418, -0.1675574183, 0.0264965333, -0.5409094095, -0.4216778874, 0.2834412158, 0.1674794704, 0.2352838963, 0.2791195214, -0.1008351147, 0.5258053541, -0.1562115103, 0.7999857664, 0.0206831619, -0.3363378942, 0.3844910264, -0.1618198156, 0.0528762117, -0.2177931666, -0.1827091575, -0.0659893453, 0.2337737232, 0.4407468438, -0.0931774974, -0.2479646355, 0.6446054578, 0.0670877099, -0.1472484171, -0.3441520929, -0.1861820668, -0.3543055654, -0.0412189476, 0.7678550482, -0.1216907501, 0.1556899697, 0.1822197735, -0.0512350053, -0.3818886578, 0.1598663926, 0.2386750728, -0.0051199365, 0.0505830422, 0.4557842314, 0.4348103106, 0.0714173019, 0.0007317181, 0.1192741022, -0.0369115286, -0.3043968976, 0.0731522962, -0.1888456196, -0.2556854188, 0.3799426854, 0.7006735802, 0.1868768632, 0.2484072298, -0.2102309167, 0.3775885701, -0.1914456934, 0.0245310739, 0.4383127093, -0.0020622555, -0.1787724793, -0.5383258462, 0.3112787604, 0.2034230232, 0.0733027831, 0.0608612671, -0.0757304803, -0.0163802877, 0.3021710217, 0.1249998808, 0.9838234186, -0.0269195437, 0.1929831058, 0.506308496, 0.0048405752, -0.2439047098, -0.6487340331, 0.3692770004, -0.3329212666, -0.2241525799, 0.1931164563, -0.1011416465, -0.0847687051, 0.0735342428, -0.0393426344, 0.0991453081, -0.0472755767, -0.086256206, -0.2586019337, 0.3895537555, 0.3151939809, -0.427839905, 0.024883382, 0.0013510567, 0.2714568973, -0.098715879, 0.127815634, -0.1633998305, -0.1108863652, 0.0184412617, 0.125173822, -0.0791136324, -0.1283782125, 0.0130585553, -0.048773177, -0.0873117596, -0.2329256982, -0.3244180977, 0.4604190886, -0.0299462639, 0.0995342582, 0.081583783, -0.0991101637, 0.0721640512, -0.0867693722, -0.4970830977, 0.2265412658, 0.080812484, -0.1736775488, 0.1493709534, 0.0787264854, -0.3227710724, -0.1460988969, 0.1744302213, 0.020576952, 0.0075483699, -0.0367372781, 0.3179990351, -0.2626371086, -0.2335654795, 0.0200596899, 0.092077136, -0.4317520857, 0.5605173111, -0.3023818433, -0.3800687194, -0.0546555147, 0.0166956205, 0.3058080673, 0.0560380518, 0.2623711228, -0.089119494, -0.3048813045, -0.1546768844, -0.3024290204, 0.06128297, 0.0386252739, 0.0938879848, 0.302420795, -0.0061311335, 0.0253992658, -0.2326645553, -0.3227178752, -0.1417695731, -0.3823906779, 0.114599824, -0.357640624, -0.1850683242, 0.2572281957, 0.3836849034, 0.0360176899, 0.2342237681, -0.4448953867, 0.2590475976, -0.2176697105, -0.0653393939, -0.0312393308, 0.260019362, -0.0327090882, -0.2574276924, 0.1754399091, 0.216269955, 0.1199890375, 0.1412038505, 0.0373655967, -0.1117986888, 0.102948904, 0.1834249198, -0.1107470691, 0.1684505641, 0.0811555237, -0.1483059525, -0.3009880781, -0.2652980983, 0.134365961, -0.1107032374, -0.0258550439, -0.130359441, -0.121708937, -0.1124876216, 0.3323767483, 0.2738249004, 0.204005003, 0.2833088934, -0.0734993368, 0.0767015368, -0.2428330332, -0.2653930187, -0.0510374494, 0.1903243959, 0.0616441779, 0.0863677934, -0.0918659791, -0.1731876582, -0.3799477816, -0.0381177552, 0.0317690298, 0.449893564, 0.0424939133, -0.2883666456, 0.1852962971, 0.0379372314, -0.2797204852, -0.1952762008, 0.3624272645, -0.4507015347, 0.2002287805, 0.4017178416, 0.264575094, 0.1657236665, -0.4832746089, 0.0937634781, -0.2345175147, 0.0963051394, -0.4337076545, -0.0904511586, 0.3514745831, -0.1948999614, 0.2041255087, 0.3052142262, 0.2311196178, 0.6089177728, 0.031423822, 0.2752895951, 0.1878769845, 0.2133272588, -0.321703434, -0.1798366755, 0.2906689644, 0.2322687805, -0.0317728333, -0.2078446299, 0.0090948511, 0.2347342968, 0.2440355718, -0.5169644952, -0.2611279488, 0.1630210876, -0.1220198497, -0.1281811744, 0.4117492437, 0.0567708388, -0.2780818343, 0.2270266116, 0.0776642486, 0.1923736036, -0.1272478253, 0.2008742094, 0.2934535444, 0.2212004811, -0.0231137872, 0.0910243168, 0.4337709844, -0.3367401063, -0.2079149038, -0.0111506451, -0.0027165411, 0.023589652, -0.1512230337, 0.2809454799, 0.2448250949, -0.0555029102, 0.2687216699, -0.0504416563, -0.0088710105, 0.0438044779, -0.0344009884, -0.1084128991, -0.1003935114, 0.1006174311, -0.0908768773, -0.1285338104, -0.1207232624, -0.242632851, 0.2026132792, -0.1804253608, 0.0230687745, 0.3459427953, -0.0975399837, -0.3948054314, 0.0952417776, -0.2833031714, 0.0691804811, 0.1062702462, -0.3566010296, -0.0891358927, 0.2603065968, -0.0016340399, -0.4257487357, 0.5468893051, 0.17240493, 0.1286818832, -0.3299409747, -0.001434241, -0.3207879364, -0.0345095806, -0.5890921354, 0.1126355603, 0.1176837757, 0.4403544068, 0.07392589, -0.0703547671, 0.4031085968, -0.4079713225, 0.0992393643, 0.3735492229, -0.1734418124, -0.030622473, -0.4397856593, -0.0738475695, 0.042283725, -0.3743222654, 0.2847959697, -0.128206715, -0.0147695988, 0.192371875, -0.02026961, 0.1226509884, 0.0626827776, 0.5298789144, -0.0979443565, 0.0000544328, -0.0964540839, 0.0086353002, -0.2321902514, 0.121959202, -0.2070783824, 0.0085759228, -0.0218885075, 0.1733756065, -0.2073741704, -0.391960144, -0.1815342158, 0.4176571369, 0.3126299381, -0.4186963737, 0.1980268806, 0.1526594162, -0.155828163, 0.4795944989, 0.1503627747, 0.2282843739, 0.1467331946, -0.0340509564, -0.3561273217, -0.1054202095, 0.6236689091, -0.188294068, -0.0293617602, -0.3494386673, 0.2549012005, 0.4437922537, 0.5510440469, -0.2645768225, 0.086238116, 0.1219435632, 0.0535738543, -0.2103940099, 0.5777598023, 0.1868617237, 0.0147709884, -0.0737834275, -0.2648075819, -0.0630892515, -0.0029667234, -0.3532101512, -0.2814310193 ]
https://github.com/huggingface/datasets/issues/2046
add_faisis_index gets very slow when doing it interatively
Can you try to set the number of threads manually ? If you set the same number of threads for both the `use_own_knowledge_dataset.py` and RAG training, it should take the same amount of time. You can see how to set the number of thread in the faiss wiki: https://github.com/facebookresearch/faiss/wiki/Threads-and-asynchronous-calls
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path)
49
add_faisis_index gets very slow when doing it interatively As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path) Can you try to set the number of threads manually ? If you set the same number of threads for both the `use_own_knowledge_dataset.py` and RAG training, it should take the same amount of time. You can see how to set the number of thread in the faiss wiki: https://github.com/facebookresearch/faiss/wiki/Threads-and-asynchronous-calls
[ -0.4988242388, -0.2682781816, -0.0245006643, 0.1282280535, 0.0594395846, 0.2077843398, 0.1214630306, 0.4241298139, 0.2917420566, 0.2924969494, -0.11882516, 0.1883150488, 0.137212798, 0.0858211592, -0.1362563074, 0.1750426441, 0.2370328307, 0.0853345543, 0.2607981563, -0.134414047, -0.3274794221, -0.3090645075, -0.1589122415, -0.2578623593, -0.4006922543, -0.0958189517, -0.2436219752, -0.0820503682, 0.1982476264, -0.4729164541, -0.1375323683, 0.1398430467, 0.3402585983, 0.2582926452, -0.0001220497, 0.0556765944, 0.2280080169, 0.0654631555, -0.2229977548, 0.6411957741, 0.3400725722, -0.0694881529, -0.1751101911, -0.3107708395, -0.1455551684, -0.1110419556, 0.0810795054, -0.0469299518, -0.166365087, 0.1943014115, 0.0266239885, -0.0582865886, 0.052254945, -0.0154003035, 0.4025113285, -0.0755909458, -0.069177337, 0.317471087, 0.1635127813, -0.0722375661, 0.0997430757, 0.4481079876, 0.1206412762, -0.2267772257, 0.1089043394, 0.2051612139, 0.7838162184, 0.0224399772, 0.0652679577, 0.1526694149, 0.0153404847, -0.0905527547, -0.443008393, -0.1029034629, 0.4257143438, -0.6180595756, -0.0674013793, -0.0837422833, -0.1014745235, 0.0538600758, 0.1745851785, -0.030229982, 0.0363179892, 0.047450684, 0.1748994142, 0.1653573662, 0.3874711692, -0.0599025264, 0.5584331751, 0.0424473584, -0.1168545559, 0.0448825732, -0.0920775458, 0.0121962707, -0.6050303578, 0.0880847201, -0.0309158228, -0.099331364, -0.092686981, 0.0178016499, -0.3694862127, 0.0061656279, 0.2365599424, 0.003336211, -0.1830646694, -0.090258047, -0.5061048269, 0.0558811538, 0.0839015841, 0.106287092, -0.3780876994, 0.099234134, -0.0033380073, -0.0043097455, -0.3259802163, -0.2981355488, -0.2288902104, 0.2228070349, -0.1811424196, 0.0771882161, -0.403968513, -0.2522765398, 0.205072701, 0.4162215889, -0.1177442446, -0.0761367977, 0.0108398311, -0.0346153565, -0.2344279736, 0.1761687845, -0.2220171839, 0.2306601256, -0.0319639146, 0.5045983195, -0.0291063543, -0.2213937491, -0.0890690237, -0.021730952, 0.0839634538, -0.0078423154, -0.0441637486, -0.2998931706, 0.2466678917, 0.074922964, -0.2632143795, -0.0676849857, -0.0939521194, 0.1211107001, -0.2278233618, 0.2215082943, -0.2173945904, -0.3651024103, 0.0271580219, 0.0193312168, 0.3086773157, -0.0630927086, 0.4208227694, 0.1143972203, 0.1730182916, 0.161335066, 0.159176439, -0.1314438134, -0.2680220008, 0.0831867158, 0.2267841995, 0.3627383709, 0.0937216878, 0.0347713977, 0.2980126739, 0.3901302814, 0.2124050558, 0.3999934196, -0.1159487963, 0.6762604117, -0.3200042248, 0.0842919499, 0.2451206446, -0.2553784251, -0.2924264371, 0.1869048476, -0.1663639843, -0.0773258805, 0.3296630979, 0.5182705522, 0.3120290339, 0.087015532, 0.3410931826, 0.3062555492, 0.0090267248, -0.0312472526, -0.4050689042, -0.0582714751, 0.2639195621, 0.3804078996, -0.3354525268, 0.1017406359, -0.0401813611, -0.3298806846, 0.6009741426, -0.4761058092, -0.1217619926, 0.0680582821, 0.3615737557, 0.3393868506, 0.2328700125, 0.2761100531, 0.1495417207, 0.1626259983, 0.0960145071, 0.0987887159, 0.170155108, -0.4183503687, 0.2156295478, -0.0257501192, -0.2181930244, 0.1078813002, -0.0609780215, 0.1500250548, -0.0456766933, -0.1998730302, -0.1568869352, 0.5427840352, -0.6157975197, 0.0279460102, -0.2488966882, -0.156083405, 0.0070148306, -0.2134260386, -0.0342438444, 0.1429587603, 0.0524962097, -0.3868664503, -0.0538335182, 0.1028612778, 0.1266249269, -0.1876764596, 0.5111071467, -0.1136962175, -0.0370367207, 0.2962220609, 0.0449531637, -0.1512652487, 0.1090165302, -0.1937617213, -0.0018789305, 0.4852038324, 0.3487841487, 0.2458340824, -0.0214936808, -0.2332082391, 0.0470290966, -0.0406503491, -0.0793871209, 0.2275259793, 0.0799436793, 0.1302530169, 0.4091725349, -0.0333358422, -0.3332444429, 0.2324638963, 0.1857769638, -0.2031299174, -0.4314081669, 0.2710416913, 0.3516991735, -0.0368973613, -0.3497084677, -0.5220082998, 0.2360266447, 0.3185988069, 0.1883933544, -0.0716535524, -0.027651228, -0.2472809106, 0.1691095531, 0.0565534793, -0.0483720899, 0.1000482067, 0.176642105, -0.2145444453, -0.2067898363, -0.2552964389, -0.1363968253, 0.4286459386, -0.0443388671, 0.3094405532, 0.1777622402, 0.277187258, -0.1247246787, -0.1249763817, 0.288752079, 0.0088401213, 0.0416107886, -0.1089355275, -0.0362387151, 0.1931091696, -0.0469498783, 0.364918977, 0.1957940608, -0.3250906467, 0.0198442154, -0.0984709486, -0.1214951128, -0.0789785683, 0.12100555, -0.1505498737, 0.1174001545, 0.0439474769, -0.0525804907, -0.1851364672, -0.0862713754, -0.1575878561, -0.0794769004, -0.2974513173, -0.1662344933, -0.246068731, -0.1250380278, -0.1196445823, 0.0043306523, 0.0005500191, -0.0106874174, -0.040487539, -0.282674104, -0.1588367075, 0.0607948825, -0.2936335504, -0.2167019695, -0.1739190817, 0.2281411588, -0.024399763, 0.0930591077, -0.1156691313, 0.0667517185, 0.1222409904, -0.0957006514, -0.1543300152, -0.0534616187, -0.2331428826, 0.2917100191, 0.1491724104, 0.0468315743, -0.0794367269, -0.4122963548, -0.0143970307, 0.4969035387, -0.521871388, -0.0407991894, -0.3583911359, 0.2859596312, -0.3150941432, 0.4582993388, 0.0567069426, -0.2462487072, -0.1380136758, 0.3644825518, 0.1745100319, 0.3875308633, -0.0617133901, 0.0549776666, -0.0879176334, 0.2675450742, -0.1149755344, 0.5162413716, 0.327231437, -0.213698253, -0.0478192829, -0.2623963356, 0.1159515381, 0.0527699813, -0.1398818344, 0.2965241671, 0.0834780782, -0.3149952888, 0.1665279567, -0.2887442112, -0.4117941856, 0.0320426971, -0.0527596958, 0.1982457936, -0.2443106771, 0.3169922829, 0.0489504598, 0.4910992682, -0.1780502051, 0.2910961807, -0.2383604646, -0.1767039299, 0.1975149959, 0.2727531791, 0.2449009418, -0.1675574183, 0.0264965333, -0.5409094095, -0.4216778874, 0.2834412158, 0.1674794704, 0.2352838963, 0.2791195214, -0.1008351147, 0.5258053541, -0.1562115103, 0.7999857664, 0.0206831619, -0.3363378942, 0.3844910264, -0.1618198156, 0.0528762117, -0.2177931666, -0.1827091575, -0.0659893453, 0.2337737232, 0.4407468438, -0.0931774974, -0.2479646355, 0.6446054578, 0.0670877099, -0.1472484171, -0.3441520929, -0.1861820668, -0.3543055654, -0.0412189476, 0.7678550482, -0.1216907501, 0.1556899697, 0.1822197735, -0.0512350053, -0.3818886578, 0.1598663926, 0.2386750728, -0.0051199365, 0.0505830422, 0.4557842314, 0.4348103106, 0.0714173019, 0.0007317181, 0.1192741022, -0.0369115286, -0.3043968976, 0.0731522962, -0.1888456196, -0.2556854188, 0.3799426854, 0.7006735802, 0.1868768632, 0.2484072298, -0.2102309167, 0.3775885701, -0.1914456934, 0.0245310739, 0.4383127093, -0.0020622555, -0.1787724793, -0.5383258462, 0.3112787604, 0.2034230232, 0.0733027831, 0.0608612671, -0.0757304803, -0.0163802877, 0.3021710217, 0.1249998808, 0.9838234186, -0.0269195437, 0.1929831058, 0.506308496, 0.0048405752, -0.2439047098, -0.6487340331, 0.3692770004, -0.3329212666, -0.2241525799, 0.1931164563, -0.1011416465, -0.0847687051, 0.0735342428, -0.0393426344, 0.0991453081, -0.0472755767, -0.086256206, -0.2586019337, 0.3895537555, 0.3151939809, -0.427839905, 0.024883382, 0.0013510567, 0.2714568973, -0.098715879, 0.127815634, -0.1633998305, -0.1108863652, 0.0184412617, 0.125173822, -0.0791136324, -0.1283782125, 0.0130585553, -0.048773177, -0.0873117596, -0.2329256982, -0.3244180977, 0.4604190886, -0.0299462639, 0.0995342582, 0.081583783, -0.0991101637, 0.0721640512, -0.0867693722, -0.4970830977, 0.2265412658, 0.080812484, -0.1736775488, 0.1493709534, 0.0787264854, -0.3227710724, -0.1460988969, 0.1744302213, 0.020576952, 0.0075483699, -0.0367372781, 0.3179990351, -0.2626371086, -0.2335654795, 0.0200596899, 0.092077136, -0.4317520857, 0.5605173111, -0.3023818433, -0.3800687194, -0.0546555147, 0.0166956205, 0.3058080673, 0.0560380518, 0.2623711228, -0.089119494, -0.3048813045, -0.1546768844, -0.3024290204, 0.06128297, 0.0386252739, 0.0938879848, 0.302420795, -0.0061311335, 0.0253992658, -0.2326645553, -0.3227178752, -0.1417695731, -0.3823906779, 0.114599824, -0.357640624, -0.1850683242, 0.2572281957, 0.3836849034, 0.0360176899, 0.2342237681, -0.4448953867, 0.2590475976, -0.2176697105, -0.0653393939, -0.0312393308, 0.260019362, -0.0327090882, -0.2574276924, 0.1754399091, 0.216269955, 0.1199890375, 0.1412038505, 0.0373655967, -0.1117986888, 0.102948904, 0.1834249198, -0.1107470691, 0.1684505641, 0.0811555237, -0.1483059525, -0.3009880781, -0.2652980983, 0.134365961, -0.1107032374, -0.0258550439, -0.130359441, -0.121708937, -0.1124876216, 0.3323767483, 0.2738249004, 0.204005003, 0.2833088934, -0.0734993368, 0.0767015368, -0.2428330332, -0.2653930187, -0.0510374494, 0.1903243959, 0.0616441779, 0.0863677934, -0.0918659791, -0.1731876582, -0.3799477816, -0.0381177552, 0.0317690298, 0.449893564, 0.0424939133, -0.2883666456, 0.1852962971, 0.0379372314, -0.2797204852, -0.1952762008, 0.3624272645, -0.4507015347, 0.2002287805, 0.4017178416, 0.264575094, 0.1657236665, -0.4832746089, 0.0937634781, -0.2345175147, 0.0963051394, -0.4337076545, -0.0904511586, 0.3514745831, -0.1948999614, 0.2041255087, 0.3052142262, 0.2311196178, 0.6089177728, 0.031423822, 0.2752895951, 0.1878769845, 0.2133272588, -0.321703434, -0.1798366755, 0.2906689644, 0.2322687805, -0.0317728333, -0.2078446299, 0.0090948511, 0.2347342968, 0.2440355718, -0.5169644952, -0.2611279488, 0.1630210876, -0.1220198497, -0.1281811744, 0.4117492437, 0.0567708388, -0.2780818343, 0.2270266116, 0.0776642486, 0.1923736036, -0.1272478253, 0.2008742094, 0.2934535444, 0.2212004811, -0.0231137872, 0.0910243168, 0.4337709844, -0.3367401063, -0.2079149038, -0.0111506451, -0.0027165411, 0.023589652, -0.1512230337, 0.2809454799, 0.2448250949, -0.0555029102, 0.2687216699, -0.0504416563, -0.0088710105, 0.0438044779, -0.0344009884, -0.1084128991, -0.1003935114, 0.1006174311, -0.0908768773, -0.1285338104, -0.1207232624, -0.242632851, 0.2026132792, -0.1804253608, 0.0230687745, 0.3459427953, -0.0975399837, -0.3948054314, 0.0952417776, -0.2833031714, 0.0691804811, 0.1062702462, -0.3566010296, -0.0891358927, 0.2603065968, -0.0016340399, -0.4257487357, 0.5468893051, 0.17240493, 0.1286818832, -0.3299409747, -0.001434241, -0.3207879364, -0.0345095806, -0.5890921354, 0.1126355603, 0.1176837757, 0.4403544068, 0.07392589, -0.0703547671, 0.4031085968, -0.4079713225, 0.0992393643, 0.3735492229, -0.1734418124, -0.030622473, -0.4397856593, -0.0738475695, 0.042283725, -0.3743222654, 0.2847959697, -0.128206715, -0.0147695988, 0.192371875, -0.02026961, 0.1226509884, 0.0626827776, 0.5298789144, -0.0979443565, 0.0000544328, -0.0964540839, 0.0086353002, -0.2321902514, 0.121959202, -0.2070783824, 0.0085759228, -0.0218885075, 0.1733756065, -0.2073741704, -0.391960144, -0.1815342158, 0.4176571369, 0.3126299381, -0.4186963737, 0.1980268806, 0.1526594162, -0.155828163, 0.4795944989, 0.1503627747, 0.2282843739, 0.1467331946, -0.0340509564, -0.3561273217, -0.1054202095, 0.6236689091, -0.188294068, -0.0293617602, -0.3494386673, 0.2549012005, 0.4437922537, 0.5510440469, -0.2645768225, 0.086238116, 0.1219435632, 0.0535738543, -0.2103940099, 0.5777598023, 0.1868617237, 0.0147709884, -0.0737834275, -0.2648075819, -0.0630892515, -0.0029667234, -0.3532101512, -0.2814310193 ]
https://github.com/huggingface/datasets/issues/2046
add_faisis_index gets very slow when doing it interatively
Ok, I will report the details too soon. I am the first one on the list and currently add_index being computed for the 3rd time in the loop. Actually seems like the time is taken to complete each interaction is the same, but around 1 hour more compared to running it without the training loop. A the moment this takes 5hrs and 30 mins. If there is any way to faster the process, an end-to-end rag will be perfect. So I will also try out with different thread numbers too. ![image](https://user-images.githubusercontent.com/16892570/111453464-798c5f80-8778-11eb-86d0-19d212f58e38.png)
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path)
91
add_faisis_index gets very slow when doing it interatively As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path) Ok, I will report the details too soon. I am the first one on the list and currently add_index being computed for the 3rd time in the loop. Actually seems like the time is taken to complete each interaction is the same, but around 1 hour more compared to running it without the training loop. A the moment this takes 5hrs and 30 mins. If there is any way to faster the process, an end-to-end rag will be perfect. So I will also try out with different thread numbers too. ![image](https://user-images.githubusercontent.com/16892570/111453464-798c5f80-8778-11eb-86d0-19d212f58e38.png)
[ -0.4988242388, -0.2682781816, -0.0245006643, 0.1282280535, 0.0594395846, 0.2077843398, 0.1214630306, 0.4241298139, 0.2917420566, 0.2924969494, -0.11882516, 0.1883150488, 0.137212798, 0.0858211592, -0.1362563074, 0.1750426441, 0.2370328307, 0.0853345543, 0.2607981563, -0.134414047, -0.3274794221, -0.3090645075, -0.1589122415, -0.2578623593, -0.4006922543, -0.0958189517, -0.2436219752, -0.0820503682, 0.1982476264, -0.4729164541, -0.1375323683, 0.1398430467, 0.3402585983, 0.2582926452, -0.0001220497, 0.0556765944, 0.2280080169, 0.0654631555, -0.2229977548, 0.6411957741, 0.3400725722, -0.0694881529, -0.1751101911, -0.3107708395, -0.1455551684, -0.1110419556, 0.0810795054, -0.0469299518, -0.166365087, 0.1943014115, 0.0266239885, -0.0582865886, 0.052254945, -0.0154003035, 0.4025113285, -0.0755909458, -0.069177337, 0.317471087, 0.1635127813, -0.0722375661, 0.0997430757, 0.4481079876, 0.1206412762, -0.2267772257, 0.1089043394, 0.2051612139, 0.7838162184, 0.0224399772, 0.0652679577, 0.1526694149, 0.0153404847, -0.0905527547, -0.443008393, -0.1029034629, 0.4257143438, -0.6180595756, -0.0674013793, -0.0837422833, -0.1014745235, 0.0538600758, 0.1745851785, -0.030229982, 0.0363179892, 0.047450684, 0.1748994142, 0.1653573662, 0.3874711692, -0.0599025264, 0.5584331751, 0.0424473584, -0.1168545559, 0.0448825732, -0.0920775458, 0.0121962707, -0.6050303578, 0.0880847201, -0.0309158228, -0.099331364, -0.092686981, 0.0178016499, -0.3694862127, 0.0061656279, 0.2365599424, 0.003336211, -0.1830646694, -0.090258047, -0.5061048269, 0.0558811538, 0.0839015841, 0.106287092, -0.3780876994, 0.099234134, -0.0033380073, -0.0043097455, -0.3259802163, -0.2981355488, -0.2288902104, 0.2228070349, -0.1811424196, 0.0771882161, -0.403968513, -0.2522765398, 0.205072701, 0.4162215889, -0.1177442446, -0.0761367977, 0.0108398311, -0.0346153565, -0.2344279736, 0.1761687845, -0.2220171839, 0.2306601256, -0.0319639146, 0.5045983195, -0.0291063543, -0.2213937491, -0.0890690237, -0.021730952, 0.0839634538, -0.0078423154, -0.0441637486, -0.2998931706, 0.2466678917, 0.074922964, -0.2632143795, -0.0676849857, -0.0939521194, 0.1211107001, -0.2278233618, 0.2215082943, -0.2173945904, -0.3651024103, 0.0271580219, 0.0193312168, 0.3086773157, -0.0630927086, 0.4208227694, 0.1143972203, 0.1730182916, 0.161335066, 0.159176439, -0.1314438134, -0.2680220008, 0.0831867158, 0.2267841995, 0.3627383709, 0.0937216878, 0.0347713977, 0.2980126739, 0.3901302814, 0.2124050558, 0.3999934196, -0.1159487963, 0.6762604117, -0.3200042248, 0.0842919499, 0.2451206446, -0.2553784251, -0.2924264371, 0.1869048476, -0.1663639843, -0.0773258805, 0.3296630979, 0.5182705522, 0.3120290339, 0.087015532, 0.3410931826, 0.3062555492, 0.0090267248, -0.0312472526, -0.4050689042, -0.0582714751, 0.2639195621, 0.3804078996, -0.3354525268, 0.1017406359, -0.0401813611, -0.3298806846, 0.6009741426, -0.4761058092, -0.1217619926, 0.0680582821, 0.3615737557, 0.3393868506, 0.2328700125, 0.2761100531, 0.1495417207, 0.1626259983, 0.0960145071, 0.0987887159, 0.170155108, -0.4183503687, 0.2156295478, -0.0257501192, -0.2181930244, 0.1078813002, -0.0609780215, 0.1500250548, -0.0456766933, -0.1998730302, -0.1568869352, 0.5427840352, -0.6157975197, 0.0279460102, -0.2488966882, -0.156083405, 0.0070148306, -0.2134260386, -0.0342438444, 0.1429587603, 0.0524962097, -0.3868664503, -0.0538335182, 0.1028612778, 0.1266249269, -0.1876764596, 0.5111071467, -0.1136962175, -0.0370367207, 0.2962220609, 0.0449531637, -0.1512652487, 0.1090165302, -0.1937617213, -0.0018789305, 0.4852038324, 0.3487841487, 0.2458340824, -0.0214936808, -0.2332082391, 0.0470290966, -0.0406503491, -0.0793871209, 0.2275259793, 0.0799436793, 0.1302530169, 0.4091725349, -0.0333358422, -0.3332444429, 0.2324638963, 0.1857769638, -0.2031299174, -0.4314081669, 0.2710416913, 0.3516991735, -0.0368973613, -0.3497084677, -0.5220082998, 0.2360266447, 0.3185988069, 0.1883933544, -0.0716535524, -0.027651228, -0.2472809106, 0.1691095531, 0.0565534793, -0.0483720899, 0.1000482067, 0.176642105, -0.2145444453, -0.2067898363, -0.2552964389, -0.1363968253, 0.4286459386, -0.0443388671, 0.3094405532, 0.1777622402, 0.277187258, -0.1247246787, -0.1249763817, 0.288752079, 0.0088401213, 0.0416107886, -0.1089355275, -0.0362387151, 0.1931091696, -0.0469498783, 0.364918977, 0.1957940608, -0.3250906467, 0.0198442154, -0.0984709486, -0.1214951128, -0.0789785683, 0.12100555, -0.1505498737, 0.1174001545, 0.0439474769, -0.0525804907, -0.1851364672, -0.0862713754, -0.1575878561, -0.0794769004, -0.2974513173, -0.1662344933, -0.246068731, -0.1250380278, -0.1196445823, 0.0043306523, 0.0005500191, -0.0106874174, -0.040487539, -0.282674104, -0.1588367075, 0.0607948825, -0.2936335504, -0.2167019695, -0.1739190817, 0.2281411588, -0.024399763, 0.0930591077, -0.1156691313, 0.0667517185, 0.1222409904, -0.0957006514, -0.1543300152, -0.0534616187, -0.2331428826, 0.2917100191, 0.1491724104, 0.0468315743, -0.0794367269, -0.4122963548, -0.0143970307, 0.4969035387, -0.521871388, -0.0407991894, -0.3583911359, 0.2859596312, -0.3150941432, 0.4582993388, 0.0567069426, -0.2462487072, -0.1380136758, 0.3644825518, 0.1745100319, 0.3875308633, -0.0617133901, 0.0549776666, -0.0879176334, 0.2675450742, -0.1149755344, 0.5162413716, 0.327231437, -0.213698253, -0.0478192829, -0.2623963356, 0.1159515381, 0.0527699813, -0.1398818344, 0.2965241671, 0.0834780782, -0.3149952888, 0.1665279567, -0.2887442112, -0.4117941856, 0.0320426971, -0.0527596958, 0.1982457936, -0.2443106771, 0.3169922829, 0.0489504598, 0.4910992682, -0.1780502051, 0.2910961807, -0.2383604646, -0.1767039299, 0.1975149959, 0.2727531791, 0.2449009418, -0.1675574183, 0.0264965333, -0.5409094095, -0.4216778874, 0.2834412158, 0.1674794704, 0.2352838963, 0.2791195214, -0.1008351147, 0.5258053541, -0.1562115103, 0.7999857664, 0.0206831619, -0.3363378942, 0.3844910264, -0.1618198156, 0.0528762117, -0.2177931666, -0.1827091575, -0.0659893453, 0.2337737232, 0.4407468438, -0.0931774974, -0.2479646355, 0.6446054578, 0.0670877099, -0.1472484171, -0.3441520929, -0.1861820668, -0.3543055654, -0.0412189476, 0.7678550482, -0.1216907501, 0.1556899697, 0.1822197735, -0.0512350053, -0.3818886578, 0.1598663926, 0.2386750728, -0.0051199365, 0.0505830422, 0.4557842314, 0.4348103106, 0.0714173019, 0.0007317181, 0.1192741022, -0.0369115286, -0.3043968976, 0.0731522962, -0.1888456196, -0.2556854188, 0.3799426854, 0.7006735802, 0.1868768632, 0.2484072298, -0.2102309167, 0.3775885701, -0.1914456934, 0.0245310739, 0.4383127093, -0.0020622555, -0.1787724793, -0.5383258462, 0.3112787604, 0.2034230232, 0.0733027831, 0.0608612671, -0.0757304803, -0.0163802877, 0.3021710217, 0.1249998808, 0.9838234186, -0.0269195437, 0.1929831058, 0.506308496, 0.0048405752, -0.2439047098, -0.6487340331, 0.3692770004, -0.3329212666, -0.2241525799, 0.1931164563, -0.1011416465, -0.0847687051, 0.0735342428, -0.0393426344, 0.0991453081, -0.0472755767, -0.086256206, -0.2586019337, 0.3895537555, 0.3151939809, -0.427839905, 0.024883382, 0.0013510567, 0.2714568973, -0.098715879, 0.127815634, -0.1633998305, -0.1108863652, 0.0184412617, 0.125173822, -0.0791136324, -0.1283782125, 0.0130585553, -0.048773177, -0.0873117596, -0.2329256982, -0.3244180977, 0.4604190886, -0.0299462639, 0.0995342582, 0.081583783, -0.0991101637, 0.0721640512, -0.0867693722, -0.4970830977, 0.2265412658, 0.080812484, -0.1736775488, 0.1493709534, 0.0787264854, -0.3227710724, -0.1460988969, 0.1744302213, 0.020576952, 0.0075483699, -0.0367372781, 0.3179990351, -0.2626371086, -0.2335654795, 0.0200596899, 0.092077136, -0.4317520857, 0.5605173111, -0.3023818433, -0.3800687194, -0.0546555147, 0.0166956205, 0.3058080673, 0.0560380518, 0.2623711228, -0.089119494, -0.3048813045, -0.1546768844, -0.3024290204, 0.06128297, 0.0386252739, 0.0938879848, 0.302420795, -0.0061311335, 0.0253992658, -0.2326645553, -0.3227178752, -0.1417695731, -0.3823906779, 0.114599824, -0.357640624, -0.1850683242, 0.2572281957, 0.3836849034, 0.0360176899, 0.2342237681, -0.4448953867, 0.2590475976, -0.2176697105, -0.0653393939, -0.0312393308, 0.260019362, -0.0327090882, -0.2574276924, 0.1754399091, 0.216269955, 0.1199890375, 0.1412038505, 0.0373655967, -0.1117986888, 0.102948904, 0.1834249198, -0.1107470691, 0.1684505641, 0.0811555237, -0.1483059525, -0.3009880781, -0.2652980983, 0.134365961, -0.1107032374, -0.0258550439, -0.130359441, -0.121708937, -0.1124876216, 0.3323767483, 0.2738249004, 0.204005003, 0.2833088934, -0.0734993368, 0.0767015368, -0.2428330332, -0.2653930187, -0.0510374494, 0.1903243959, 0.0616441779, 0.0863677934, -0.0918659791, -0.1731876582, -0.3799477816, -0.0381177552, 0.0317690298, 0.449893564, 0.0424939133, -0.2883666456, 0.1852962971, 0.0379372314, -0.2797204852, -0.1952762008, 0.3624272645, -0.4507015347, 0.2002287805, 0.4017178416, 0.264575094, 0.1657236665, -0.4832746089, 0.0937634781, -0.2345175147, 0.0963051394, -0.4337076545, -0.0904511586, 0.3514745831, -0.1948999614, 0.2041255087, 0.3052142262, 0.2311196178, 0.6089177728, 0.031423822, 0.2752895951, 0.1878769845, 0.2133272588, -0.321703434, -0.1798366755, 0.2906689644, 0.2322687805, -0.0317728333, -0.2078446299, 0.0090948511, 0.2347342968, 0.2440355718, -0.5169644952, -0.2611279488, 0.1630210876, -0.1220198497, -0.1281811744, 0.4117492437, 0.0567708388, -0.2780818343, 0.2270266116, 0.0776642486, 0.1923736036, -0.1272478253, 0.2008742094, 0.2934535444, 0.2212004811, -0.0231137872, 0.0910243168, 0.4337709844, -0.3367401063, -0.2079149038, -0.0111506451, -0.0027165411, 0.023589652, -0.1512230337, 0.2809454799, 0.2448250949, -0.0555029102, 0.2687216699, -0.0504416563, -0.0088710105, 0.0438044779, -0.0344009884, -0.1084128991, -0.1003935114, 0.1006174311, -0.0908768773, -0.1285338104, -0.1207232624, -0.242632851, 0.2026132792, -0.1804253608, 0.0230687745, 0.3459427953, -0.0975399837, -0.3948054314, 0.0952417776, -0.2833031714, 0.0691804811, 0.1062702462, -0.3566010296, -0.0891358927, 0.2603065968, -0.0016340399, -0.4257487357, 0.5468893051, 0.17240493, 0.1286818832, -0.3299409747, -0.001434241, -0.3207879364, -0.0345095806, -0.5890921354, 0.1126355603, 0.1176837757, 0.4403544068, 0.07392589, -0.0703547671, 0.4031085968, -0.4079713225, 0.0992393643, 0.3735492229, -0.1734418124, -0.030622473, -0.4397856593, -0.0738475695, 0.042283725, -0.3743222654, 0.2847959697, -0.128206715, -0.0147695988, 0.192371875, -0.02026961, 0.1226509884, 0.0626827776, 0.5298789144, -0.0979443565, 0.0000544328, -0.0964540839, 0.0086353002, -0.2321902514, 0.121959202, -0.2070783824, 0.0085759228, -0.0218885075, 0.1733756065, -0.2073741704, -0.391960144, -0.1815342158, 0.4176571369, 0.3126299381, -0.4186963737, 0.1980268806, 0.1526594162, -0.155828163, 0.4795944989, 0.1503627747, 0.2282843739, 0.1467331946, -0.0340509564, -0.3561273217, -0.1054202095, 0.6236689091, -0.188294068, -0.0293617602, -0.3494386673, 0.2549012005, 0.4437922537, 0.5510440469, -0.2645768225, 0.086238116, 0.1219435632, 0.0535738543, -0.2103940099, 0.5777598023, 0.1868617237, 0.0147709884, -0.0737834275, -0.2648075819, -0.0630892515, -0.0029667234, -0.3532101512, -0.2814310193 ]
https://github.com/huggingface/datasets/issues/2046
add_faisis_index gets very slow when doing it interatively
@lhoestq on a different note, I read about using Faiss-GPU, but the documentation says we should use it when the dataset has the ability to fit into the GPU memory. Although this might work, in the long-term this is not that practical for me. https://github.com/matsui528/faiss_tips
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path)
45
add_faisis_index gets very slow when doing it interatively As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path) @lhoestq on a different note, I read about using Faiss-GPU, but the documentation says we should use it when the dataset has the ability to fit into the GPU memory. Although this might work, in the long-term this is not that practical for me. https://github.com/matsui528/faiss_tips
[ -0.4988242388, -0.2682781816, -0.0245006643, 0.1282280535, 0.0594395846, 0.2077843398, 0.1214630306, 0.4241298139, 0.2917420566, 0.2924969494, -0.11882516, 0.1883150488, 0.137212798, 0.0858211592, -0.1362563074, 0.1750426441, 0.2370328307, 0.0853345543, 0.2607981563, -0.134414047, -0.3274794221, -0.3090645075, -0.1589122415, -0.2578623593, -0.4006922543, -0.0958189517, -0.2436219752, -0.0820503682, 0.1982476264, -0.4729164541, -0.1375323683, 0.1398430467, 0.3402585983, 0.2582926452, -0.0001220497, 0.0556765944, 0.2280080169, 0.0654631555, -0.2229977548, 0.6411957741, 0.3400725722, -0.0694881529, -0.1751101911, -0.3107708395, -0.1455551684, -0.1110419556, 0.0810795054, -0.0469299518, -0.166365087, 0.1943014115, 0.0266239885, -0.0582865886, 0.052254945, -0.0154003035, 0.4025113285, -0.0755909458, -0.069177337, 0.317471087, 0.1635127813, -0.0722375661, 0.0997430757, 0.4481079876, 0.1206412762, -0.2267772257, 0.1089043394, 0.2051612139, 0.7838162184, 0.0224399772, 0.0652679577, 0.1526694149, 0.0153404847, -0.0905527547, -0.443008393, -0.1029034629, 0.4257143438, -0.6180595756, -0.0674013793, -0.0837422833, -0.1014745235, 0.0538600758, 0.1745851785, -0.030229982, 0.0363179892, 0.047450684, 0.1748994142, 0.1653573662, 0.3874711692, -0.0599025264, 0.5584331751, 0.0424473584, -0.1168545559, 0.0448825732, -0.0920775458, 0.0121962707, -0.6050303578, 0.0880847201, -0.0309158228, -0.099331364, -0.092686981, 0.0178016499, -0.3694862127, 0.0061656279, 0.2365599424, 0.003336211, -0.1830646694, -0.090258047, -0.5061048269, 0.0558811538, 0.0839015841, 0.106287092, -0.3780876994, 0.099234134, -0.0033380073, -0.0043097455, -0.3259802163, -0.2981355488, -0.2288902104, 0.2228070349, -0.1811424196, 0.0771882161, -0.403968513, -0.2522765398, 0.205072701, 0.4162215889, -0.1177442446, -0.0761367977, 0.0108398311, -0.0346153565, -0.2344279736, 0.1761687845, -0.2220171839, 0.2306601256, -0.0319639146, 0.5045983195, -0.0291063543, -0.2213937491, -0.0890690237, -0.021730952, 0.0839634538, -0.0078423154, -0.0441637486, -0.2998931706, 0.2466678917, 0.074922964, -0.2632143795, -0.0676849857, -0.0939521194, 0.1211107001, -0.2278233618, 0.2215082943, -0.2173945904, -0.3651024103, 0.0271580219, 0.0193312168, 0.3086773157, -0.0630927086, 0.4208227694, 0.1143972203, 0.1730182916, 0.161335066, 0.159176439, -0.1314438134, -0.2680220008, 0.0831867158, 0.2267841995, 0.3627383709, 0.0937216878, 0.0347713977, 0.2980126739, 0.3901302814, 0.2124050558, 0.3999934196, -0.1159487963, 0.6762604117, -0.3200042248, 0.0842919499, 0.2451206446, -0.2553784251, -0.2924264371, 0.1869048476, -0.1663639843, -0.0773258805, 0.3296630979, 0.5182705522, 0.3120290339, 0.087015532, 0.3410931826, 0.3062555492, 0.0090267248, -0.0312472526, -0.4050689042, -0.0582714751, 0.2639195621, 0.3804078996, -0.3354525268, 0.1017406359, -0.0401813611, -0.3298806846, 0.6009741426, -0.4761058092, -0.1217619926, 0.0680582821, 0.3615737557, 0.3393868506, 0.2328700125, 0.2761100531, 0.1495417207, 0.1626259983, 0.0960145071, 0.0987887159, 0.170155108, -0.4183503687, 0.2156295478, -0.0257501192, -0.2181930244, 0.1078813002, -0.0609780215, 0.1500250548, -0.0456766933, -0.1998730302, -0.1568869352, 0.5427840352, -0.6157975197, 0.0279460102, -0.2488966882, -0.156083405, 0.0070148306, -0.2134260386, -0.0342438444, 0.1429587603, 0.0524962097, -0.3868664503, -0.0538335182, 0.1028612778, 0.1266249269, -0.1876764596, 0.5111071467, -0.1136962175, -0.0370367207, 0.2962220609, 0.0449531637, -0.1512652487, 0.1090165302, -0.1937617213, -0.0018789305, 0.4852038324, 0.3487841487, 0.2458340824, -0.0214936808, -0.2332082391, 0.0470290966, -0.0406503491, -0.0793871209, 0.2275259793, 0.0799436793, 0.1302530169, 0.4091725349, -0.0333358422, -0.3332444429, 0.2324638963, 0.1857769638, -0.2031299174, -0.4314081669, 0.2710416913, 0.3516991735, -0.0368973613, -0.3497084677, -0.5220082998, 0.2360266447, 0.3185988069, 0.1883933544, -0.0716535524, -0.027651228, -0.2472809106, 0.1691095531, 0.0565534793, -0.0483720899, 0.1000482067, 0.176642105, -0.2145444453, -0.2067898363, -0.2552964389, -0.1363968253, 0.4286459386, -0.0443388671, 0.3094405532, 0.1777622402, 0.277187258, -0.1247246787, -0.1249763817, 0.288752079, 0.0088401213, 0.0416107886, -0.1089355275, -0.0362387151, 0.1931091696, -0.0469498783, 0.364918977, 0.1957940608, -0.3250906467, 0.0198442154, -0.0984709486, -0.1214951128, -0.0789785683, 0.12100555, -0.1505498737, 0.1174001545, 0.0439474769, -0.0525804907, -0.1851364672, -0.0862713754, -0.1575878561, -0.0794769004, -0.2974513173, -0.1662344933, -0.246068731, -0.1250380278, -0.1196445823, 0.0043306523, 0.0005500191, -0.0106874174, -0.040487539, -0.282674104, -0.1588367075, 0.0607948825, -0.2936335504, -0.2167019695, -0.1739190817, 0.2281411588, -0.024399763, 0.0930591077, -0.1156691313, 0.0667517185, 0.1222409904, -0.0957006514, -0.1543300152, -0.0534616187, -0.2331428826, 0.2917100191, 0.1491724104, 0.0468315743, -0.0794367269, -0.4122963548, -0.0143970307, 0.4969035387, -0.521871388, -0.0407991894, -0.3583911359, 0.2859596312, -0.3150941432, 0.4582993388, 0.0567069426, -0.2462487072, -0.1380136758, 0.3644825518, 0.1745100319, 0.3875308633, -0.0617133901, 0.0549776666, -0.0879176334, 0.2675450742, -0.1149755344, 0.5162413716, 0.327231437, -0.213698253, -0.0478192829, -0.2623963356, 0.1159515381, 0.0527699813, -0.1398818344, 0.2965241671, 0.0834780782, -0.3149952888, 0.1665279567, -0.2887442112, -0.4117941856, 0.0320426971, -0.0527596958, 0.1982457936, -0.2443106771, 0.3169922829, 0.0489504598, 0.4910992682, -0.1780502051, 0.2910961807, -0.2383604646, -0.1767039299, 0.1975149959, 0.2727531791, 0.2449009418, -0.1675574183, 0.0264965333, -0.5409094095, -0.4216778874, 0.2834412158, 0.1674794704, 0.2352838963, 0.2791195214, -0.1008351147, 0.5258053541, -0.1562115103, 0.7999857664, 0.0206831619, -0.3363378942, 0.3844910264, -0.1618198156, 0.0528762117, -0.2177931666, -0.1827091575, -0.0659893453, 0.2337737232, 0.4407468438, -0.0931774974, -0.2479646355, 0.6446054578, 0.0670877099, -0.1472484171, -0.3441520929, -0.1861820668, -0.3543055654, -0.0412189476, 0.7678550482, -0.1216907501, 0.1556899697, 0.1822197735, -0.0512350053, -0.3818886578, 0.1598663926, 0.2386750728, -0.0051199365, 0.0505830422, 0.4557842314, 0.4348103106, 0.0714173019, 0.0007317181, 0.1192741022, -0.0369115286, -0.3043968976, 0.0731522962, -0.1888456196, -0.2556854188, 0.3799426854, 0.7006735802, 0.1868768632, 0.2484072298, -0.2102309167, 0.3775885701, -0.1914456934, 0.0245310739, 0.4383127093, -0.0020622555, -0.1787724793, -0.5383258462, 0.3112787604, 0.2034230232, 0.0733027831, 0.0608612671, -0.0757304803, -0.0163802877, 0.3021710217, 0.1249998808, 0.9838234186, -0.0269195437, 0.1929831058, 0.506308496, 0.0048405752, -0.2439047098, -0.6487340331, 0.3692770004, -0.3329212666, -0.2241525799, 0.1931164563, -0.1011416465, -0.0847687051, 0.0735342428, -0.0393426344, 0.0991453081, -0.0472755767, -0.086256206, -0.2586019337, 0.3895537555, 0.3151939809, -0.427839905, 0.024883382, 0.0013510567, 0.2714568973, -0.098715879, 0.127815634, -0.1633998305, -0.1108863652, 0.0184412617, 0.125173822, -0.0791136324, -0.1283782125, 0.0130585553, -0.048773177, -0.0873117596, -0.2329256982, -0.3244180977, 0.4604190886, -0.0299462639, 0.0995342582, 0.081583783, -0.0991101637, 0.0721640512, -0.0867693722, -0.4970830977, 0.2265412658, 0.080812484, -0.1736775488, 0.1493709534, 0.0787264854, -0.3227710724, -0.1460988969, 0.1744302213, 0.020576952, 0.0075483699, -0.0367372781, 0.3179990351, -0.2626371086, -0.2335654795, 0.0200596899, 0.092077136, -0.4317520857, 0.5605173111, -0.3023818433, -0.3800687194, -0.0546555147, 0.0166956205, 0.3058080673, 0.0560380518, 0.2623711228, -0.089119494, -0.3048813045, -0.1546768844, -0.3024290204, 0.06128297, 0.0386252739, 0.0938879848, 0.302420795, -0.0061311335, 0.0253992658, -0.2326645553, -0.3227178752, -0.1417695731, -0.3823906779, 0.114599824, -0.357640624, -0.1850683242, 0.2572281957, 0.3836849034, 0.0360176899, 0.2342237681, -0.4448953867, 0.2590475976, -0.2176697105, -0.0653393939, -0.0312393308, 0.260019362, -0.0327090882, -0.2574276924, 0.1754399091, 0.216269955, 0.1199890375, 0.1412038505, 0.0373655967, -0.1117986888, 0.102948904, 0.1834249198, -0.1107470691, 0.1684505641, 0.0811555237, -0.1483059525, -0.3009880781, -0.2652980983, 0.134365961, -0.1107032374, -0.0258550439, -0.130359441, -0.121708937, -0.1124876216, 0.3323767483, 0.2738249004, 0.204005003, 0.2833088934, -0.0734993368, 0.0767015368, -0.2428330332, -0.2653930187, -0.0510374494, 0.1903243959, 0.0616441779, 0.0863677934, -0.0918659791, -0.1731876582, -0.3799477816, -0.0381177552, 0.0317690298, 0.449893564, 0.0424939133, -0.2883666456, 0.1852962971, 0.0379372314, -0.2797204852, -0.1952762008, 0.3624272645, -0.4507015347, 0.2002287805, 0.4017178416, 0.264575094, 0.1657236665, -0.4832746089, 0.0937634781, -0.2345175147, 0.0963051394, -0.4337076545, -0.0904511586, 0.3514745831, -0.1948999614, 0.2041255087, 0.3052142262, 0.2311196178, 0.6089177728, 0.031423822, 0.2752895951, 0.1878769845, 0.2133272588, -0.321703434, -0.1798366755, 0.2906689644, 0.2322687805, -0.0317728333, -0.2078446299, 0.0090948511, 0.2347342968, 0.2440355718, -0.5169644952, -0.2611279488, 0.1630210876, -0.1220198497, -0.1281811744, 0.4117492437, 0.0567708388, -0.2780818343, 0.2270266116, 0.0776642486, 0.1923736036, -0.1272478253, 0.2008742094, 0.2934535444, 0.2212004811, -0.0231137872, 0.0910243168, 0.4337709844, -0.3367401063, -0.2079149038, -0.0111506451, -0.0027165411, 0.023589652, -0.1512230337, 0.2809454799, 0.2448250949, -0.0555029102, 0.2687216699, -0.0504416563, -0.0088710105, 0.0438044779, -0.0344009884, -0.1084128991, -0.1003935114, 0.1006174311, -0.0908768773, -0.1285338104, -0.1207232624, -0.242632851, 0.2026132792, -0.1804253608, 0.0230687745, 0.3459427953, -0.0975399837, -0.3948054314, 0.0952417776, -0.2833031714, 0.0691804811, 0.1062702462, -0.3566010296, -0.0891358927, 0.2603065968, -0.0016340399, -0.4257487357, 0.5468893051, 0.17240493, 0.1286818832, -0.3299409747, -0.001434241, -0.3207879364, -0.0345095806, -0.5890921354, 0.1126355603, 0.1176837757, 0.4403544068, 0.07392589, -0.0703547671, 0.4031085968, -0.4079713225, 0.0992393643, 0.3735492229, -0.1734418124, -0.030622473, -0.4397856593, -0.0738475695, 0.042283725, -0.3743222654, 0.2847959697, -0.128206715, -0.0147695988, 0.192371875, -0.02026961, 0.1226509884, 0.0626827776, 0.5298789144, -0.0979443565, 0.0000544328, -0.0964540839, 0.0086353002, -0.2321902514, 0.121959202, -0.2070783824, 0.0085759228, -0.0218885075, 0.1733756065, -0.2073741704, -0.391960144, -0.1815342158, 0.4176571369, 0.3126299381, -0.4186963737, 0.1980268806, 0.1526594162, -0.155828163, 0.4795944989, 0.1503627747, 0.2282843739, 0.1467331946, -0.0340509564, -0.3561273217, -0.1054202095, 0.6236689091, -0.188294068, -0.0293617602, -0.3494386673, 0.2549012005, 0.4437922537, 0.5510440469, -0.2645768225, 0.086238116, 0.1219435632, 0.0535738543, -0.2103940099, 0.5777598023, 0.1868617237, 0.0147709884, -0.0737834275, -0.2648075819, -0.0630892515, -0.0029667234, -0.3532101512, -0.2814310193 ]
https://github.com/huggingface/datasets/issues/2046
add_faisis_index gets very slow when doing it interatively
@lhoestq Hi, I executed the **use_own_dataset.py** script independently and ask a few of my friends to run their programs in the HPC machine at the same time. Once there are so many other processes are running the add_index function gets slows down naturally. So basically the speed of the add_index depends entirely on the number of CPU processes. Then I set the number of threads as you have mentioned and got actually the same time for RAG training and independat running. So you are correct! :) Then I added this [issue in Faiss repostiary](https://github.com/facebookresearch/faiss/issues/1767). I got an answer saying our current **IndexHNSWFlat** can get slow for 30 million vectors and it would be better to use alternatives. What do you think?
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path)
121
add_faisis_index gets very slow when doing it interatively As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path) @lhoestq Hi, I executed the **use_own_dataset.py** script independently and ask a few of my friends to run their programs in the HPC machine at the same time. Once there are so many other processes are running the add_index function gets slows down naturally. So basically the speed of the add_index depends entirely on the number of CPU processes. Then I set the number of threads as you have mentioned and got actually the same time for RAG training and independat running. So you are correct! :) Then I added this [issue in Faiss repostiary](https://github.com/facebookresearch/faiss/issues/1767). I got an answer saying our current **IndexHNSWFlat** can get slow for 30 million vectors and it would be better to use alternatives. What do you think?
[ -0.4988242388, -0.2682781816, -0.0245006643, 0.1282280535, 0.0594395846, 0.2077843398, 0.1214630306, 0.4241298139, 0.2917420566, 0.2924969494, -0.11882516, 0.1883150488, 0.137212798, 0.0858211592, -0.1362563074, 0.1750426441, 0.2370328307, 0.0853345543, 0.2607981563, -0.134414047, -0.3274794221, -0.3090645075, -0.1589122415, -0.2578623593, -0.4006922543, -0.0958189517, -0.2436219752, -0.0820503682, 0.1982476264, -0.4729164541, -0.1375323683, 0.1398430467, 0.3402585983, 0.2582926452, -0.0001220497, 0.0556765944, 0.2280080169, 0.0654631555, -0.2229977548, 0.6411957741, 0.3400725722, -0.0694881529, -0.1751101911, -0.3107708395, -0.1455551684, -0.1110419556, 0.0810795054, -0.0469299518, -0.166365087, 0.1943014115, 0.0266239885, -0.0582865886, 0.052254945, -0.0154003035, 0.4025113285, -0.0755909458, -0.069177337, 0.317471087, 0.1635127813, -0.0722375661, 0.0997430757, 0.4481079876, 0.1206412762, -0.2267772257, 0.1089043394, 0.2051612139, 0.7838162184, 0.0224399772, 0.0652679577, 0.1526694149, 0.0153404847, -0.0905527547, -0.443008393, -0.1029034629, 0.4257143438, -0.6180595756, -0.0674013793, -0.0837422833, -0.1014745235, 0.0538600758, 0.1745851785, -0.030229982, 0.0363179892, 0.047450684, 0.1748994142, 0.1653573662, 0.3874711692, -0.0599025264, 0.5584331751, 0.0424473584, -0.1168545559, 0.0448825732, -0.0920775458, 0.0121962707, -0.6050303578, 0.0880847201, -0.0309158228, -0.099331364, -0.092686981, 0.0178016499, -0.3694862127, 0.0061656279, 0.2365599424, 0.003336211, -0.1830646694, -0.090258047, -0.5061048269, 0.0558811538, 0.0839015841, 0.106287092, -0.3780876994, 0.099234134, -0.0033380073, -0.0043097455, -0.3259802163, -0.2981355488, -0.2288902104, 0.2228070349, -0.1811424196, 0.0771882161, -0.403968513, -0.2522765398, 0.205072701, 0.4162215889, -0.1177442446, -0.0761367977, 0.0108398311, -0.0346153565, -0.2344279736, 0.1761687845, -0.2220171839, 0.2306601256, -0.0319639146, 0.5045983195, -0.0291063543, -0.2213937491, -0.0890690237, -0.021730952, 0.0839634538, -0.0078423154, -0.0441637486, -0.2998931706, 0.2466678917, 0.074922964, -0.2632143795, -0.0676849857, -0.0939521194, 0.1211107001, -0.2278233618, 0.2215082943, -0.2173945904, -0.3651024103, 0.0271580219, 0.0193312168, 0.3086773157, -0.0630927086, 0.4208227694, 0.1143972203, 0.1730182916, 0.161335066, 0.159176439, -0.1314438134, -0.2680220008, 0.0831867158, 0.2267841995, 0.3627383709, 0.0937216878, 0.0347713977, 0.2980126739, 0.3901302814, 0.2124050558, 0.3999934196, -0.1159487963, 0.6762604117, -0.3200042248, 0.0842919499, 0.2451206446, -0.2553784251, -0.2924264371, 0.1869048476, -0.1663639843, -0.0773258805, 0.3296630979, 0.5182705522, 0.3120290339, 0.087015532, 0.3410931826, 0.3062555492, 0.0090267248, -0.0312472526, -0.4050689042, -0.0582714751, 0.2639195621, 0.3804078996, -0.3354525268, 0.1017406359, -0.0401813611, -0.3298806846, 0.6009741426, -0.4761058092, -0.1217619926, 0.0680582821, 0.3615737557, 0.3393868506, 0.2328700125, 0.2761100531, 0.1495417207, 0.1626259983, 0.0960145071, 0.0987887159, 0.170155108, -0.4183503687, 0.2156295478, -0.0257501192, -0.2181930244, 0.1078813002, -0.0609780215, 0.1500250548, -0.0456766933, -0.1998730302, -0.1568869352, 0.5427840352, -0.6157975197, 0.0279460102, -0.2488966882, -0.156083405, 0.0070148306, -0.2134260386, -0.0342438444, 0.1429587603, 0.0524962097, -0.3868664503, -0.0538335182, 0.1028612778, 0.1266249269, -0.1876764596, 0.5111071467, -0.1136962175, -0.0370367207, 0.2962220609, 0.0449531637, -0.1512652487, 0.1090165302, -0.1937617213, -0.0018789305, 0.4852038324, 0.3487841487, 0.2458340824, -0.0214936808, -0.2332082391, 0.0470290966, -0.0406503491, -0.0793871209, 0.2275259793, 0.0799436793, 0.1302530169, 0.4091725349, -0.0333358422, -0.3332444429, 0.2324638963, 0.1857769638, -0.2031299174, -0.4314081669, 0.2710416913, 0.3516991735, -0.0368973613, -0.3497084677, -0.5220082998, 0.2360266447, 0.3185988069, 0.1883933544, -0.0716535524, -0.027651228, -0.2472809106, 0.1691095531, 0.0565534793, -0.0483720899, 0.1000482067, 0.176642105, -0.2145444453, -0.2067898363, -0.2552964389, -0.1363968253, 0.4286459386, -0.0443388671, 0.3094405532, 0.1777622402, 0.277187258, -0.1247246787, -0.1249763817, 0.288752079, 0.0088401213, 0.0416107886, -0.1089355275, -0.0362387151, 0.1931091696, -0.0469498783, 0.364918977, 0.1957940608, -0.3250906467, 0.0198442154, -0.0984709486, -0.1214951128, -0.0789785683, 0.12100555, -0.1505498737, 0.1174001545, 0.0439474769, -0.0525804907, -0.1851364672, -0.0862713754, -0.1575878561, -0.0794769004, -0.2974513173, -0.1662344933, -0.246068731, -0.1250380278, -0.1196445823, 0.0043306523, 0.0005500191, -0.0106874174, -0.040487539, -0.282674104, -0.1588367075, 0.0607948825, -0.2936335504, -0.2167019695, -0.1739190817, 0.2281411588, -0.024399763, 0.0930591077, -0.1156691313, 0.0667517185, 0.1222409904, -0.0957006514, -0.1543300152, -0.0534616187, -0.2331428826, 0.2917100191, 0.1491724104, 0.0468315743, -0.0794367269, -0.4122963548, -0.0143970307, 0.4969035387, -0.521871388, -0.0407991894, -0.3583911359, 0.2859596312, -0.3150941432, 0.4582993388, 0.0567069426, -0.2462487072, -0.1380136758, 0.3644825518, 0.1745100319, 0.3875308633, -0.0617133901, 0.0549776666, -0.0879176334, 0.2675450742, -0.1149755344, 0.5162413716, 0.327231437, -0.213698253, -0.0478192829, -0.2623963356, 0.1159515381, 0.0527699813, -0.1398818344, 0.2965241671, 0.0834780782, -0.3149952888, 0.1665279567, -0.2887442112, -0.4117941856, 0.0320426971, -0.0527596958, 0.1982457936, -0.2443106771, 0.3169922829, 0.0489504598, 0.4910992682, -0.1780502051, 0.2910961807, -0.2383604646, -0.1767039299, 0.1975149959, 0.2727531791, 0.2449009418, -0.1675574183, 0.0264965333, -0.5409094095, -0.4216778874, 0.2834412158, 0.1674794704, 0.2352838963, 0.2791195214, -0.1008351147, 0.5258053541, -0.1562115103, 0.7999857664, 0.0206831619, -0.3363378942, 0.3844910264, -0.1618198156, 0.0528762117, -0.2177931666, -0.1827091575, -0.0659893453, 0.2337737232, 0.4407468438, -0.0931774974, -0.2479646355, 0.6446054578, 0.0670877099, -0.1472484171, -0.3441520929, -0.1861820668, -0.3543055654, -0.0412189476, 0.7678550482, -0.1216907501, 0.1556899697, 0.1822197735, -0.0512350053, -0.3818886578, 0.1598663926, 0.2386750728, -0.0051199365, 0.0505830422, 0.4557842314, 0.4348103106, 0.0714173019, 0.0007317181, 0.1192741022, -0.0369115286, -0.3043968976, 0.0731522962, -0.1888456196, -0.2556854188, 0.3799426854, 0.7006735802, 0.1868768632, 0.2484072298, -0.2102309167, 0.3775885701, -0.1914456934, 0.0245310739, 0.4383127093, -0.0020622555, -0.1787724793, -0.5383258462, 0.3112787604, 0.2034230232, 0.0733027831, 0.0608612671, -0.0757304803, -0.0163802877, 0.3021710217, 0.1249998808, 0.9838234186, -0.0269195437, 0.1929831058, 0.506308496, 0.0048405752, -0.2439047098, -0.6487340331, 0.3692770004, -0.3329212666, -0.2241525799, 0.1931164563, -0.1011416465, -0.0847687051, 0.0735342428, -0.0393426344, 0.0991453081, -0.0472755767, -0.086256206, -0.2586019337, 0.3895537555, 0.3151939809, -0.427839905, 0.024883382, 0.0013510567, 0.2714568973, -0.098715879, 0.127815634, -0.1633998305, -0.1108863652, 0.0184412617, 0.125173822, -0.0791136324, -0.1283782125, 0.0130585553, -0.048773177, -0.0873117596, -0.2329256982, -0.3244180977, 0.4604190886, -0.0299462639, 0.0995342582, 0.081583783, -0.0991101637, 0.0721640512, -0.0867693722, -0.4970830977, 0.2265412658, 0.080812484, -0.1736775488, 0.1493709534, 0.0787264854, -0.3227710724, -0.1460988969, 0.1744302213, 0.020576952, 0.0075483699, -0.0367372781, 0.3179990351, -0.2626371086, -0.2335654795, 0.0200596899, 0.092077136, -0.4317520857, 0.5605173111, -0.3023818433, -0.3800687194, -0.0546555147, 0.0166956205, 0.3058080673, 0.0560380518, 0.2623711228, -0.089119494, -0.3048813045, -0.1546768844, -0.3024290204, 0.06128297, 0.0386252739, 0.0938879848, 0.302420795, -0.0061311335, 0.0253992658, -0.2326645553, -0.3227178752, -0.1417695731, -0.3823906779, 0.114599824, -0.357640624, -0.1850683242, 0.2572281957, 0.3836849034, 0.0360176899, 0.2342237681, -0.4448953867, 0.2590475976, -0.2176697105, -0.0653393939, -0.0312393308, 0.260019362, -0.0327090882, -0.2574276924, 0.1754399091, 0.216269955, 0.1199890375, 0.1412038505, 0.0373655967, -0.1117986888, 0.102948904, 0.1834249198, -0.1107470691, 0.1684505641, 0.0811555237, -0.1483059525, -0.3009880781, -0.2652980983, 0.134365961, -0.1107032374, -0.0258550439, -0.130359441, -0.121708937, -0.1124876216, 0.3323767483, 0.2738249004, 0.204005003, 0.2833088934, -0.0734993368, 0.0767015368, -0.2428330332, -0.2653930187, -0.0510374494, 0.1903243959, 0.0616441779, 0.0863677934, -0.0918659791, -0.1731876582, -0.3799477816, -0.0381177552, 0.0317690298, 0.449893564, 0.0424939133, -0.2883666456, 0.1852962971, 0.0379372314, -0.2797204852, -0.1952762008, 0.3624272645, -0.4507015347, 0.2002287805, 0.4017178416, 0.264575094, 0.1657236665, -0.4832746089, 0.0937634781, -0.2345175147, 0.0963051394, -0.4337076545, -0.0904511586, 0.3514745831, -0.1948999614, 0.2041255087, 0.3052142262, 0.2311196178, 0.6089177728, 0.031423822, 0.2752895951, 0.1878769845, 0.2133272588, -0.321703434, -0.1798366755, 0.2906689644, 0.2322687805, -0.0317728333, -0.2078446299, 0.0090948511, 0.2347342968, 0.2440355718, -0.5169644952, -0.2611279488, 0.1630210876, -0.1220198497, -0.1281811744, 0.4117492437, 0.0567708388, -0.2780818343, 0.2270266116, 0.0776642486, 0.1923736036, -0.1272478253, 0.2008742094, 0.2934535444, 0.2212004811, -0.0231137872, 0.0910243168, 0.4337709844, -0.3367401063, -0.2079149038, -0.0111506451, -0.0027165411, 0.023589652, -0.1512230337, 0.2809454799, 0.2448250949, -0.0555029102, 0.2687216699, -0.0504416563, -0.0088710105, 0.0438044779, -0.0344009884, -0.1084128991, -0.1003935114, 0.1006174311, -0.0908768773, -0.1285338104, -0.1207232624, -0.242632851, 0.2026132792, -0.1804253608, 0.0230687745, 0.3459427953, -0.0975399837, -0.3948054314, 0.0952417776, -0.2833031714, 0.0691804811, 0.1062702462, -0.3566010296, -0.0891358927, 0.2603065968, -0.0016340399, -0.4257487357, 0.5468893051, 0.17240493, 0.1286818832, -0.3299409747, -0.001434241, -0.3207879364, -0.0345095806, -0.5890921354, 0.1126355603, 0.1176837757, 0.4403544068, 0.07392589, -0.0703547671, 0.4031085968, -0.4079713225, 0.0992393643, 0.3735492229, -0.1734418124, -0.030622473, -0.4397856593, -0.0738475695, 0.042283725, -0.3743222654, 0.2847959697, -0.128206715, -0.0147695988, 0.192371875, -0.02026961, 0.1226509884, 0.0626827776, 0.5298789144, -0.0979443565, 0.0000544328, -0.0964540839, 0.0086353002, -0.2321902514, 0.121959202, -0.2070783824, 0.0085759228, -0.0218885075, 0.1733756065, -0.2073741704, -0.391960144, -0.1815342158, 0.4176571369, 0.3126299381, -0.4186963737, 0.1980268806, 0.1526594162, -0.155828163, 0.4795944989, 0.1503627747, 0.2282843739, 0.1467331946, -0.0340509564, -0.3561273217, -0.1054202095, 0.6236689091, -0.188294068, -0.0293617602, -0.3494386673, 0.2549012005, 0.4437922537, 0.5510440469, -0.2645768225, 0.086238116, 0.1219435632, 0.0535738543, -0.2103940099, 0.5777598023, 0.1868617237, 0.0147709884, -0.0737834275, -0.2648075819, -0.0630892515, -0.0029667234, -0.3532101512, -0.2814310193 ]
https://github.com/huggingface/datasets/issues/2046
add_faisis_index gets very slow when doing it interatively
It's a matter of tradeoffs. HSNW is fast at query time but takes some time to build. A flat index is flat to build but is "slow" at query time. An IVF index is probably a good choice for you: fast building and fast queries (but still slower queries than HSNW). Note that for an IVF index you would need to have an `nprobe` parameter (number of cells to visit for one query, there are `nlist` in total) that is not too small in order to have good retrieval accuracy, but not too big otherwise the queries will take too much time. From the faiss documentation: > The nprobe parameter is always a way of adjusting the tradeoff between speed and accuracy of the result. Setting nprobe = nlist gives the same result as the brute-force search (but slower). From my experience with indexes on DPR embeddings, setting nprobe around 1/4 of nlist gives really good retrieval accuracy and there's no need to have a value higher than that (or you would need to brute-force in order to see a difference).
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path)
181
add_faisis_index gets very slow when doing it interatively As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path) It's a matter of tradeoffs. HSNW is fast at query time but takes some time to build. A flat index is flat to build but is "slow" at query time. An IVF index is probably a good choice for you: fast building and fast queries (but still slower queries than HSNW). Note that for an IVF index you would need to have an `nprobe` parameter (number of cells to visit for one query, there are `nlist` in total) that is not too small in order to have good retrieval accuracy, but not too big otherwise the queries will take too much time. From the faiss documentation: > The nprobe parameter is always a way of adjusting the tradeoff between speed and accuracy of the result. Setting nprobe = nlist gives the same result as the brute-force search (but slower). From my experience with indexes on DPR embeddings, setting nprobe around 1/4 of nlist gives really good retrieval accuracy and there's no need to have a value higher than that (or you would need to brute-force in order to see a difference).
[ -0.4988242388, -0.2682781816, -0.0245006643, 0.1282280535, 0.0594395846, 0.2077843398, 0.1214630306, 0.4241298139, 0.2917420566, 0.2924969494, -0.11882516, 0.1883150488, 0.137212798, 0.0858211592, -0.1362563074, 0.1750426441, 0.2370328307, 0.0853345543, 0.2607981563, -0.134414047, -0.3274794221, -0.3090645075, -0.1589122415, -0.2578623593, -0.4006922543, -0.0958189517, -0.2436219752, -0.0820503682, 0.1982476264, -0.4729164541, -0.1375323683, 0.1398430467, 0.3402585983, 0.2582926452, -0.0001220497, 0.0556765944, 0.2280080169, 0.0654631555, -0.2229977548, 0.6411957741, 0.3400725722, -0.0694881529, -0.1751101911, -0.3107708395, -0.1455551684, -0.1110419556, 0.0810795054, -0.0469299518, -0.166365087, 0.1943014115, 0.0266239885, -0.0582865886, 0.052254945, -0.0154003035, 0.4025113285, -0.0755909458, -0.069177337, 0.317471087, 0.1635127813, -0.0722375661, 0.0997430757, 0.4481079876, 0.1206412762, -0.2267772257, 0.1089043394, 0.2051612139, 0.7838162184, 0.0224399772, 0.0652679577, 0.1526694149, 0.0153404847, -0.0905527547, -0.443008393, -0.1029034629, 0.4257143438, -0.6180595756, -0.0674013793, -0.0837422833, -0.1014745235, 0.0538600758, 0.1745851785, -0.030229982, 0.0363179892, 0.047450684, 0.1748994142, 0.1653573662, 0.3874711692, -0.0599025264, 0.5584331751, 0.0424473584, -0.1168545559, 0.0448825732, -0.0920775458, 0.0121962707, -0.6050303578, 0.0880847201, -0.0309158228, -0.099331364, -0.092686981, 0.0178016499, -0.3694862127, 0.0061656279, 0.2365599424, 0.003336211, -0.1830646694, -0.090258047, -0.5061048269, 0.0558811538, 0.0839015841, 0.106287092, -0.3780876994, 0.099234134, -0.0033380073, -0.0043097455, -0.3259802163, -0.2981355488, -0.2288902104, 0.2228070349, -0.1811424196, 0.0771882161, -0.403968513, -0.2522765398, 0.205072701, 0.4162215889, -0.1177442446, -0.0761367977, 0.0108398311, -0.0346153565, -0.2344279736, 0.1761687845, -0.2220171839, 0.2306601256, -0.0319639146, 0.5045983195, -0.0291063543, -0.2213937491, -0.0890690237, -0.021730952, 0.0839634538, -0.0078423154, -0.0441637486, -0.2998931706, 0.2466678917, 0.074922964, -0.2632143795, -0.0676849857, -0.0939521194, 0.1211107001, -0.2278233618, 0.2215082943, -0.2173945904, -0.3651024103, 0.0271580219, 0.0193312168, 0.3086773157, -0.0630927086, 0.4208227694, 0.1143972203, 0.1730182916, 0.161335066, 0.159176439, -0.1314438134, -0.2680220008, 0.0831867158, 0.2267841995, 0.3627383709, 0.0937216878, 0.0347713977, 0.2980126739, 0.3901302814, 0.2124050558, 0.3999934196, -0.1159487963, 0.6762604117, -0.3200042248, 0.0842919499, 0.2451206446, -0.2553784251, -0.2924264371, 0.1869048476, -0.1663639843, -0.0773258805, 0.3296630979, 0.5182705522, 0.3120290339, 0.087015532, 0.3410931826, 0.3062555492, 0.0090267248, -0.0312472526, -0.4050689042, -0.0582714751, 0.2639195621, 0.3804078996, -0.3354525268, 0.1017406359, -0.0401813611, -0.3298806846, 0.6009741426, -0.4761058092, -0.1217619926, 0.0680582821, 0.3615737557, 0.3393868506, 0.2328700125, 0.2761100531, 0.1495417207, 0.1626259983, 0.0960145071, 0.0987887159, 0.170155108, -0.4183503687, 0.2156295478, -0.0257501192, -0.2181930244, 0.1078813002, -0.0609780215, 0.1500250548, -0.0456766933, -0.1998730302, -0.1568869352, 0.5427840352, -0.6157975197, 0.0279460102, -0.2488966882, -0.156083405, 0.0070148306, -0.2134260386, -0.0342438444, 0.1429587603, 0.0524962097, -0.3868664503, -0.0538335182, 0.1028612778, 0.1266249269, -0.1876764596, 0.5111071467, -0.1136962175, -0.0370367207, 0.2962220609, 0.0449531637, -0.1512652487, 0.1090165302, -0.1937617213, -0.0018789305, 0.4852038324, 0.3487841487, 0.2458340824, -0.0214936808, -0.2332082391, 0.0470290966, -0.0406503491, -0.0793871209, 0.2275259793, 0.0799436793, 0.1302530169, 0.4091725349, -0.0333358422, -0.3332444429, 0.2324638963, 0.1857769638, -0.2031299174, -0.4314081669, 0.2710416913, 0.3516991735, -0.0368973613, -0.3497084677, -0.5220082998, 0.2360266447, 0.3185988069, 0.1883933544, -0.0716535524, -0.027651228, -0.2472809106, 0.1691095531, 0.0565534793, -0.0483720899, 0.1000482067, 0.176642105, -0.2145444453, -0.2067898363, -0.2552964389, -0.1363968253, 0.4286459386, -0.0443388671, 0.3094405532, 0.1777622402, 0.277187258, -0.1247246787, -0.1249763817, 0.288752079, 0.0088401213, 0.0416107886, -0.1089355275, -0.0362387151, 0.1931091696, -0.0469498783, 0.364918977, 0.1957940608, -0.3250906467, 0.0198442154, -0.0984709486, -0.1214951128, -0.0789785683, 0.12100555, -0.1505498737, 0.1174001545, 0.0439474769, -0.0525804907, -0.1851364672, -0.0862713754, -0.1575878561, -0.0794769004, -0.2974513173, -0.1662344933, -0.246068731, -0.1250380278, -0.1196445823, 0.0043306523, 0.0005500191, -0.0106874174, -0.040487539, -0.282674104, -0.1588367075, 0.0607948825, -0.2936335504, -0.2167019695, -0.1739190817, 0.2281411588, -0.024399763, 0.0930591077, -0.1156691313, 0.0667517185, 0.1222409904, -0.0957006514, -0.1543300152, -0.0534616187, -0.2331428826, 0.2917100191, 0.1491724104, 0.0468315743, -0.0794367269, -0.4122963548, -0.0143970307, 0.4969035387, -0.521871388, -0.0407991894, -0.3583911359, 0.2859596312, -0.3150941432, 0.4582993388, 0.0567069426, -0.2462487072, -0.1380136758, 0.3644825518, 0.1745100319, 0.3875308633, -0.0617133901, 0.0549776666, -0.0879176334, 0.2675450742, -0.1149755344, 0.5162413716, 0.327231437, -0.213698253, -0.0478192829, -0.2623963356, 0.1159515381, 0.0527699813, -0.1398818344, 0.2965241671, 0.0834780782, -0.3149952888, 0.1665279567, -0.2887442112, -0.4117941856, 0.0320426971, -0.0527596958, 0.1982457936, -0.2443106771, 0.3169922829, 0.0489504598, 0.4910992682, -0.1780502051, 0.2910961807, -0.2383604646, -0.1767039299, 0.1975149959, 0.2727531791, 0.2449009418, -0.1675574183, 0.0264965333, -0.5409094095, -0.4216778874, 0.2834412158, 0.1674794704, 0.2352838963, 0.2791195214, -0.1008351147, 0.5258053541, -0.1562115103, 0.7999857664, 0.0206831619, -0.3363378942, 0.3844910264, -0.1618198156, 0.0528762117, -0.2177931666, -0.1827091575, -0.0659893453, 0.2337737232, 0.4407468438, -0.0931774974, -0.2479646355, 0.6446054578, 0.0670877099, -0.1472484171, -0.3441520929, -0.1861820668, -0.3543055654, -0.0412189476, 0.7678550482, -0.1216907501, 0.1556899697, 0.1822197735, -0.0512350053, -0.3818886578, 0.1598663926, 0.2386750728, -0.0051199365, 0.0505830422, 0.4557842314, 0.4348103106, 0.0714173019, 0.0007317181, 0.1192741022, -0.0369115286, -0.3043968976, 0.0731522962, -0.1888456196, -0.2556854188, 0.3799426854, 0.7006735802, 0.1868768632, 0.2484072298, -0.2102309167, 0.3775885701, -0.1914456934, 0.0245310739, 0.4383127093, -0.0020622555, -0.1787724793, -0.5383258462, 0.3112787604, 0.2034230232, 0.0733027831, 0.0608612671, -0.0757304803, -0.0163802877, 0.3021710217, 0.1249998808, 0.9838234186, -0.0269195437, 0.1929831058, 0.506308496, 0.0048405752, -0.2439047098, -0.6487340331, 0.3692770004, -0.3329212666, -0.2241525799, 0.1931164563, -0.1011416465, -0.0847687051, 0.0735342428, -0.0393426344, 0.0991453081, -0.0472755767, -0.086256206, -0.2586019337, 0.3895537555, 0.3151939809, -0.427839905, 0.024883382, 0.0013510567, 0.2714568973, -0.098715879, 0.127815634, -0.1633998305, -0.1108863652, 0.0184412617, 0.125173822, -0.0791136324, -0.1283782125, 0.0130585553, -0.048773177, -0.0873117596, -0.2329256982, -0.3244180977, 0.4604190886, -0.0299462639, 0.0995342582, 0.081583783, -0.0991101637, 0.0721640512, -0.0867693722, -0.4970830977, 0.2265412658, 0.080812484, -0.1736775488, 0.1493709534, 0.0787264854, -0.3227710724, -0.1460988969, 0.1744302213, 0.020576952, 0.0075483699, -0.0367372781, 0.3179990351, -0.2626371086, -0.2335654795, 0.0200596899, 0.092077136, -0.4317520857, 0.5605173111, -0.3023818433, -0.3800687194, -0.0546555147, 0.0166956205, 0.3058080673, 0.0560380518, 0.2623711228, -0.089119494, -0.3048813045, -0.1546768844, -0.3024290204, 0.06128297, 0.0386252739, 0.0938879848, 0.302420795, -0.0061311335, 0.0253992658, -0.2326645553, -0.3227178752, -0.1417695731, -0.3823906779, 0.114599824, -0.357640624, -0.1850683242, 0.2572281957, 0.3836849034, 0.0360176899, 0.2342237681, -0.4448953867, 0.2590475976, -0.2176697105, -0.0653393939, -0.0312393308, 0.260019362, -0.0327090882, -0.2574276924, 0.1754399091, 0.216269955, 0.1199890375, 0.1412038505, 0.0373655967, -0.1117986888, 0.102948904, 0.1834249198, -0.1107470691, 0.1684505641, 0.0811555237, -0.1483059525, -0.3009880781, -0.2652980983, 0.134365961, -0.1107032374, -0.0258550439, -0.130359441, -0.121708937, -0.1124876216, 0.3323767483, 0.2738249004, 0.204005003, 0.2833088934, -0.0734993368, 0.0767015368, -0.2428330332, -0.2653930187, -0.0510374494, 0.1903243959, 0.0616441779, 0.0863677934, -0.0918659791, -0.1731876582, -0.3799477816, -0.0381177552, 0.0317690298, 0.449893564, 0.0424939133, -0.2883666456, 0.1852962971, 0.0379372314, -0.2797204852, -0.1952762008, 0.3624272645, -0.4507015347, 0.2002287805, 0.4017178416, 0.264575094, 0.1657236665, -0.4832746089, 0.0937634781, -0.2345175147, 0.0963051394, -0.4337076545, -0.0904511586, 0.3514745831, -0.1948999614, 0.2041255087, 0.3052142262, 0.2311196178, 0.6089177728, 0.031423822, 0.2752895951, 0.1878769845, 0.2133272588, -0.321703434, -0.1798366755, 0.2906689644, 0.2322687805, -0.0317728333, -0.2078446299, 0.0090948511, 0.2347342968, 0.2440355718, -0.5169644952, -0.2611279488, 0.1630210876, -0.1220198497, -0.1281811744, 0.4117492437, 0.0567708388, -0.2780818343, 0.2270266116, 0.0776642486, 0.1923736036, -0.1272478253, 0.2008742094, 0.2934535444, 0.2212004811, -0.0231137872, 0.0910243168, 0.4337709844, -0.3367401063, -0.2079149038, -0.0111506451, -0.0027165411, 0.023589652, -0.1512230337, 0.2809454799, 0.2448250949, -0.0555029102, 0.2687216699, -0.0504416563, -0.0088710105, 0.0438044779, -0.0344009884, -0.1084128991, -0.1003935114, 0.1006174311, -0.0908768773, -0.1285338104, -0.1207232624, -0.242632851, 0.2026132792, -0.1804253608, 0.0230687745, 0.3459427953, -0.0975399837, -0.3948054314, 0.0952417776, -0.2833031714, 0.0691804811, 0.1062702462, -0.3566010296, -0.0891358927, 0.2603065968, -0.0016340399, -0.4257487357, 0.5468893051, 0.17240493, 0.1286818832, -0.3299409747, -0.001434241, -0.3207879364, -0.0345095806, -0.5890921354, 0.1126355603, 0.1176837757, 0.4403544068, 0.07392589, -0.0703547671, 0.4031085968, -0.4079713225, 0.0992393643, 0.3735492229, -0.1734418124, -0.030622473, -0.4397856593, -0.0738475695, 0.042283725, -0.3743222654, 0.2847959697, -0.128206715, -0.0147695988, 0.192371875, -0.02026961, 0.1226509884, 0.0626827776, 0.5298789144, -0.0979443565, 0.0000544328, -0.0964540839, 0.0086353002, -0.2321902514, 0.121959202, -0.2070783824, 0.0085759228, -0.0218885075, 0.1733756065, -0.2073741704, -0.391960144, -0.1815342158, 0.4176571369, 0.3126299381, -0.4186963737, 0.1980268806, 0.1526594162, -0.155828163, 0.4795944989, 0.1503627747, 0.2282843739, 0.1467331946, -0.0340509564, -0.3561273217, -0.1054202095, 0.6236689091, -0.188294068, -0.0293617602, -0.3494386673, 0.2549012005, 0.4437922537, 0.5510440469, -0.2645768225, 0.086238116, 0.1219435632, 0.0535738543, -0.2103940099, 0.5777598023, 0.1868617237, 0.0147709884, -0.0737834275, -0.2648075819, -0.0630892515, -0.0029667234, -0.3532101512, -0.2814310193 ]
https://github.com/huggingface/datasets/issues/2046
add_faisis_index gets very slow when doing it interatively
@lhoestq Thanks a lot for sharing all this prior knowledge. Just asking what would be a good nlist of parameters for 30 million embeddings?
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path)
24
add_faisis_index gets very slow when doing it interatively As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path) @lhoestq Thanks a lot for sharing all this prior knowledge. Just asking what would be a good nlist of parameters for 30 million embeddings?
[ -0.4988242388, -0.2682781816, -0.0245006643, 0.1282280535, 0.0594395846, 0.2077843398, 0.1214630306, 0.4241298139, 0.2917420566, 0.2924969494, -0.11882516, 0.1883150488, 0.137212798, 0.0858211592, -0.1362563074, 0.1750426441, 0.2370328307, 0.0853345543, 0.2607981563, -0.134414047, -0.3274794221, -0.3090645075, -0.1589122415, -0.2578623593, -0.4006922543, -0.0958189517, -0.2436219752, -0.0820503682, 0.1982476264, -0.4729164541, -0.1375323683, 0.1398430467, 0.3402585983, 0.2582926452, -0.0001220497, 0.0556765944, 0.2280080169, 0.0654631555, -0.2229977548, 0.6411957741, 0.3400725722, -0.0694881529, -0.1751101911, -0.3107708395, -0.1455551684, -0.1110419556, 0.0810795054, -0.0469299518, -0.166365087, 0.1943014115, 0.0266239885, -0.0582865886, 0.052254945, -0.0154003035, 0.4025113285, -0.0755909458, -0.069177337, 0.317471087, 0.1635127813, -0.0722375661, 0.0997430757, 0.4481079876, 0.1206412762, -0.2267772257, 0.1089043394, 0.2051612139, 0.7838162184, 0.0224399772, 0.0652679577, 0.1526694149, 0.0153404847, -0.0905527547, -0.443008393, -0.1029034629, 0.4257143438, -0.6180595756, -0.0674013793, -0.0837422833, -0.1014745235, 0.0538600758, 0.1745851785, -0.030229982, 0.0363179892, 0.047450684, 0.1748994142, 0.1653573662, 0.3874711692, -0.0599025264, 0.5584331751, 0.0424473584, -0.1168545559, 0.0448825732, -0.0920775458, 0.0121962707, -0.6050303578, 0.0880847201, -0.0309158228, -0.099331364, -0.092686981, 0.0178016499, -0.3694862127, 0.0061656279, 0.2365599424, 0.003336211, -0.1830646694, -0.090258047, -0.5061048269, 0.0558811538, 0.0839015841, 0.106287092, -0.3780876994, 0.099234134, -0.0033380073, -0.0043097455, -0.3259802163, -0.2981355488, -0.2288902104, 0.2228070349, -0.1811424196, 0.0771882161, -0.403968513, -0.2522765398, 0.205072701, 0.4162215889, -0.1177442446, -0.0761367977, 0.0108398311, -0.0346153565, -0.2344279736, 0.1761687845, -0.2220171839, 0.2306601256, -0.0319639146, 0.5045983195, -0.0291063543, -0.2213937491, -0.0890690237, -0.021730952, 0.0839634538, -0.0078423154, -0.0441637486, -0.2998931706, 0.2466678917, 0.074922964, -0.2632143795, -0.0676849857, -0.0939521194, 0.1211107001, -0.2278233618, 0.2215082943, -0.2173945904, -0.3651024103, 0.0271580219, 0.0193312168, 0.3086773157, -0.0630927086, 0.4208227694, 0.1143972203, 0.1730182916, 0.161335066, 0.159176439, -0.1314438134, -0.2680220008, 0.0831867158, 0.2267841995, 0.3627383709, 0.0937216878, 0.0347713977, 0.2980126739, 0.3901302814, 0.2124050558, 0.3999934196, -0.1159487963, 0.6762604117, -0.3200042248, 0.0842919499, 0.2451206446, -0.2553784251, -0.2924264371, 0.1869048476, -0.1663639843, -0.0773258805, 0.3296630979, 0.5182705522, 0.3120290339, 0.087015532, 0.3410931826, 0.3062555492, 0.0090267248, -0.0312472526, -0.4050689042, -0.0582714751, 0.2639195621, 0.3804078996, -0.3354525268, 0.1017406359, -0.0401813611, -0.3298806846, 0.6009741426, -0.4761058092, -0.1217619926, 0.0680582821, 0.3615737557, 0.3393868506, 0.2328700125, 0.2761100531, 0.1495417207, 0.1626259983, 0.0960145071, 0.0987887159, 0.170155108, -0.4183503687, 0.2156295478, -0.0257501192, -0.2181930244, 0.1078813002, -0.0609780215, 0.1500250548, -0.0456766933, -0.1998730302, -0.1568869352, 0.5427840352, -0.6157975197, 0.0279460102, -0.2488966882, -0.156083405, 0.0070148306, -0.2134260386, -0.0342438444, 0.1429587603, 0.0524962097, -0.3868664503, -0.0538335182, 0.1028612778, 0.1266249269, -0.1876764596, 0.5111071467, -0.1136962175, -0.0370367207, 0.2962220609, 0.0449531637, -0.1512652487, 0.1090165302, -0.1937617213, -0.0018789305, 0.4852038324, 0.3487841487, 0.2458340824, -0.0214936808, -0.2332082391, 0.0470290966, -0.0406503491, -0.0793871209, 0.2275259793, 0.0799436793, 0.1302530169, 0.4091725349, -0.0333358422, -0.3332444429, 0.2324638963, 0.1857769638, -0.2031299174, -0.4314081669, 0.2710416913, 0.3516991735, -0.0368973613, -0.3497084677, -0.5220082998, 0.2360266447, 0.3185988069, 0.1883933544, -0.0716535524, -0.027651228, -0.2472809106, 0.1691095531, 0.0565534793, -0.0483720899, 0.1000482067, 0.176642105, -0.2145444453, -0.2067898363, -0.2552964389, -0.1363968253, 0.4286459386, -0.0443388671, 0.3094405532, 0.1777622402, 0.277187258, -0.1247246787, -0.1249763817, 0.288752079, 0.0088401213, 0.0416107886, -0.1089355275, -0.0362387151, 0.1931091696, -0.0469498783, 0.364918977, 0.1957940608, -0.3250906467, 0.0198442154, -0.0984709486, -0.1214951128, -0.0789785683, 0.12100555, -0.1505498737, 0.1174001545, 0.0439474769, -0.0525804907, -0.1851364672, -0.0862713754, -0.1575878561, -0.0794769004, -0.2974513173, -0.1662344933, -0.246068731, -0.1250380278, -0.1196445823, 0.0043306523, 0.0005500191, -0.0106874174, -0.040487539, -0.282674104, -0.1588367075, 0.0607948825, -0.2936335504, -0.2167019695, -0.1739190817, 0.2281411588, -0.024399763, 0.0930591077, -0.1156691313, 0.0667517185, 0.1222409904, -0.0957006514, -0.1543300152, -0.0534616187, -0.2331428826, 0.2917100191, 0.1491724104, 0.0468315743, -0.0794367269, -0.4122963548, -0.0143970307, 0.4969035387, -0.521871388, -0.0407991894, -0.3583911359, 0.2859596312, -0.3150941432, 0.4582993388, 0.0567069426, -0.2462487072, -0.1380136758, 0.3644825518, 0.1745100319, 0.3875308633, -0.0617133901, 0.0549776666, -0.0879176334, 0.2675450742, -0.1149755344, 0.5162413716, 0.327231437, -0.213698253, -0.0478192829, -0.2623963356, 0.1159515381, 0.0527699813, -0.1398818344, 0.2965241671, 0.0834780782, -0.3149952888, 0.1665279567, -0.2887442112, -0.4117941856, 0.0320426971, -0.0527596958, 0.1982457936, -0.2443106771, 0.3169922829, 0.0489504598, 0.4910992682, -0.1780502051, 0.2910961807, -0.2383604646, -0.1767039299, 0.1975149959, 0.2727531791, 0.2449009418, -0.1675574183, 0.0264965333, -0.5409094095, -0.4216778874, 0.2834412158, 0.1674794704, 0.2352838963, 0.2791195214, -0.1008351147, 0.5258053541, -0.1562115103, 0.7999857664, 0.0206831619, -0.3363378942, 0.3844910264, -0.1618198156, 0.0528762117, -0.2177931666, -0.1827091575, -0.0659893453, 0.2337737232, 0.4407468438, -0.0931774974, -0.2479646355, 0.6446054578, 0.0670877099, -0.1472484171, -0.3441520929, -0.1861820668, -0.3543055654, -0.0412189476, 0.7678550482, -0.1216907501, 0.1556899697, 0.1822197735, -0.0512350053, -0.3818886578, 0.1598663926, 0.2386750728, -0.0051199365, 0.0505830422, 0.4557842314, 0.4348103106, 0.0714173019, 0.0007317181, 0.1192741022, -0.0369115286, -0.3043968976, 0.0731522962, -0.1888456196, -0.2556854188, 0.3799426854, 0.7006735802, 0.1868768632, 0.2484072298, -0.2102309167, 0.3775885701, -0.1914456934, 0.0245310739, 0.4383127093, -0.0020622555, -0.1787724793, -0.5383258462, 0.3112787604, 0.2034230232, 0.0733027831, 0.0608612671, -0.0757304803, -0.0163802877, 0.3021710217, 0.1249998808, 0.9838234186, -0.0269195437, 0.1929831058, 0.506308496, 0.0048405752, -0.2439047098, -0.6487340331, 0.3692770004, -0.3329212666, -0.2241525799, 0.1931164563, -0.1011416465, -0.0847687051, 0.0735342428, -0.0393426344, 0.0991453081, -0.0472755767, -0.086256206, -0.2586019337, 0.3895537555, 0.3151939809, -0.427839905, 0.024883382, 0.0013510567, 0.2714568973, -0.098715879, 0.127815634, -0.1633998305, -0.1108863652, 0.0184412617, 0.125173822, -0.0791136324, -0.1283782125, 0.0130585553, -0.048773177, -0.0873117596, -0.2329256982, -0.3244180977, 0.4604190886, -0.0299462639, 0.0995342582, 0.081583783, -0.0991101637, 0.0721640512, -0.0867693722, -0.4970830977, 0.2265412658, 0.080812484, -0.1736775488, 0.1493709534, 0.0787264854, -0.3227710724, -0.1460988969, 0.1744302213, 0.020576952, 0.0075483699, -0.0367372781, 0.3179990351, -0.2626371086, -0.2335654795, 0.0200596899, 0.092077136, -0.4317520857, 0.5605173111, -0.3023818433, -0.3800687194, -0.0546555147, 0.0166956205, 0.3058080673, 0.0560380518, 0.2623711228, -0.089119494, -0.3048813045, -0.1546768844, -0.3024290204, 0.06128297, 0.0386252739, 0.0938879848, 0.302420795, -0.0061311335, 0.0253992658, -0.2326645553, -0.3227178752, -0.1417695731, -0.3823906779, 0.114599824, -0.357640624, -0.1850683242, 0.2572281957, 0.3836849034, 0.0360176899, 0.2342237681, -0.4448953867, 0.2590475976, -0.2176697105, -0.0653393939, -0.0312393308, 0.260019362, -0.0327090882, -0.2574276924, 0.1754399091, 0.216269955, 0.1199890375, 0.1412038505, 0.0373655967, -0.1117986888, 0.102948904, 0.1834249198, -0.1107470691, 0.1684505641, 0.0811555237, -0.1483059525, -0.3009880781, -0.2652980983, 0.134365961, -0.1107032374, -0.0258550439, -0.130359441, -0.121708937, -0.1124876216, 0.3323767483, 0.2738249004, 0.204005003, 0.2833088934, -0.0734993368, 0.0767015368, -0.2428330332, -0.2653930187, -0.0510374494, 0.1903243959, 0.0616441779, 0.0863677934, -0.0918659791, -0.1731876582, -0.3799477816, -0.0381177552, 0.0317690298, 0.449893564, 0.0424939133, -0.2883666456, 0.1852962971, 0.0379372314, -0.2797204852, -0.1952762008, 0.3624272645, -0.4507015347, 0.2002287805, 0.4017178416, 0.264575094, 0.1657236665, -0.4832746089, 0.0937634781, -0.2345175147, 0.0963051394, -0.4337076545, -0.0904511586, 0.3514745831, -0.1948999614, 0.2041255087, 0.3052142262, 0.2311196178, 0.6089177728, 0.031423822, 0.2752895951, 0.1878769845, 0.2133272588, -0.321703434, -0.1798366755, 0.2906689644, 0.2322687805, -0.0317728333, -0.2078446299, 0.0090948511, 0.2347342968, 0.2440355718, -0.5169644952, -0.2611279488, 0.1630210876, -0.1220198497, -0.1281811744, 0.4117492437, 0.0567708388, -0.2780818343, 0.2270266116, 0.0776642486, 0.1923736036, -0.1272478253, 0.2008742094, 0.2934535444, 0.2212004811, -0.0231137872, 0.0910243168, 0.4337709844, -0.3367401063, -0.2079149038, -0.0111506451, -0.0027165411, 0.023589652, -0.1512230337, 0.2809454799, 0.2448250949, -0.0555029102, 0.2687216699, -0.0504416563, -0.0088710105, 0.0438044779, -0.0344009884, -0.1084128991, -0.1003935114, 0.1006174311, -0.0908768773, -0.1285338104, -0.1207232624, -0.242632851, 0.2026132792, -0.1804253608, 0.0230687745, 0.3459427953, -0.0975399837, -0.3948054314, 0.0952417776, -0.2833031714, 0.0691804811, 0.1062702462, -0.3566010296, -0.0891358927, 0.2603065968, -0.0016340399, -0.4257487357, 0.5468893051, 0.17240493, 0.1286818832, -0.3299409747, -0.001434241, -0.3207879364, -0.0345095806, -0.5890921354, 0.1126355603, 0.1176837757, 0.4403544068, 0.07392589, -0.0703547671, 0.4031085968, -0.4079713225, 0.0992393643, 0.3735492229, -0.1734418124, -0.030622473, -0.4397856593, -0.0738475695, 0.042283725, -0.3743222654, 0.2847959697, -0.128206715, -0.0147695988, 0.192371875, -0.02026961, 0.1226509884, 0.0626827776, 0.5298789144, -0.0979443565, 0.0000544328, -0.0964540839, 0.0086353002, -0.2321902514, 0.121959202, -0.2070783824, 0.0085759228, -0.0218885075, 0.1733756065, -0.2073741704, -0.391960144, -0.1815342158, 0.4176571369, 0.3126299381, -0.4186963737, 0.1980268806, 0.1526594162, -0.155828163, 0.4795944989, 0.1503627747, 0.2282843739, 0.1467331946, -0.0340509564, -0.3561273217, -0.1054202095, 0.6236689091, -0.188294068, -0.0293617602, -0.3494386673, 0.2549012005, 0.4437922537, 0.5510440469, -0.2645768225, 0.086238116, 0.1219435632, 0.0535738543, -0.2103940099, 0.5777598023, 0.1868617237, 0.0147709884, -0.0737834275, -0.2648075819, -0.0630892515, -0.0029667234, -0.3532101512, -0.2814310193 ]
https://github.com/huggingface/datasets/issues/2046
add_faisis_index gets very slow when doing it interatively
When IVF is used alone, nlist should be between `4*sqrt(n)` and `16*sqrt(n)`. For more details take a look at [this section of the Faiss wiki](https://github.com/facebookresearch/faiss/wiki/Guidelines-to-choose-an-index#how-big-is-the-dataset)
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path)
25
add_faisis_index gets very slow when doing it interatively As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path) When IVF is used alone, nlist should be between `4*sqrt(n)` and `16*sqrt(n)`. For more details take a look at [this section of the Faiss wiki](https://github.com/facebookresearch/faiss/wiki/Guidelines-to-choose-an-index#how-big-is-the-dataset)
[ -0.4988242388, -0.2682781816, -0.0245006643, 0.1282280535, 0.0594395846, 0.2077843398, 0.1214630306, 0.4241298139, 0.2917420566, 0.2924969494, -0.11882516, 0.1883150488, 0.137212798, 0.0858211592, -0.1362563074, 0.1750426441, 0.2370328307, 0.0853345543, 0.2607981563, -0.134414047, -0.3274794221, -0.3090645075, -0.1589122415, -0.2578623593, -0.4006922543, -0.0958189517, -0.2436219752, -0.0820503682, 0.1982476264, -0.4729164541, -0.1375323683, 0.1398430467, 0.3402585983, 0.2582926452, -0.0001220497, 0.0556765944, 0.2280080169, 0.0654631555, -0.2229977548, 0.6411957741, 0.3400725722, -0.0694881529, -0.1751101911, -0.3107708395, -0.1455551684, -0.1110419556, 0.0810795054, -0.0469299518, -0.166365087, 0.1943014115, 0.0266239885, -0.0582865886, 0.052254945, -0.0154003035, 0.4025113285, -0.0755909458, -0.069177337, 0.317471087, 0.1635127813, -0.0722375661, 0.0997430757, 0.4481079876, 0.1206412762, -0.2267772257, 0.1089043394, 0.2051612139, 0.7838162184, 0.0224399772, 0.0652679577, 0.1526694149, 0.0153404847, -0.0905527547, -0.443008393, -0.1029034629, 0.4257143438, -0.6180595756, -0.0674013793, -0.0837422833, -0.1014745235, 0.0538600758, 0.1745851785, -0.030229982, 0.0363179892, 0.047450684, 0.1748994142, 0.1653573662, 0.3874711692, -0.0599025264, 0.5584331751, 0.0424473584, -0.1168545559, 0.0448825732, -0.0920775458, 0.0121962707, -0.6050303578, 0.0880847201, -0.0309158228, -0.099331364, -0.092686981, 0.0178016499, -0.3694862127, 0.0061656279, 0.2365599424, 0.003336211, -0.1830646694, -0.090258047, -0.5061048269, 0.0558811538, 0.0839015841, 0.106287092, -0.3780876994, 0.099234134, -0.0033380073, -0.0043097455, -0.3259802163, -0.2981355488, -0.2288902104, 0.2228070349, -0.1811424196, 0.0771882161, -0.403968513, -0.2522765398, 0.205072701, 0.4162215889, -0.1177442446, -0.0761367977, 0.0108398311, -0.0346153565, -0.2344279736, 0.1761687845, -0.2220171839, 0.2306601256, -0.0319639146, 0.5045983195, -0.0291063543, -0.2213937491, -0.0890690237, -0.021730952, 0.0839634538, -0.0078423154, -0.0441637486, -0.2998931706, 0.2466678917, 0.074922964, -0.2632143795, -0.0676849857, -0.0939521194, 0.1211107001, -0.2278233618, 0.2215082943, -0.2173945904, -0.3651024103, 0.0271580219, 0.0193312168, 0.3086773157, -0.0630927086, 0.4208227694, 0.1143972203, 0.1730182916, 0.161335066, 0.159176439, -0.1314438134, -0.2680220008, 0.0831867158, 0.2267841995, 0.3627383709, 0.0937216878, 0.0347713977, 0.2980126739, 0.3901302814, 0.2124050558, 0.3999934196, -0.1159487963, 0.6762604117, -0.3200042248, 0.0842919499, 0.2451206446, -0.2553784251, -0.2924264371, 0.1869048476, -0.1663639843, -0.0773258805, 0.3296630979, 0.5182705522, 0.3120290339, 0.087015532, 0.3410931826, 0.3062555492, 0.0090267248, -0.0312472526, -0.4050689042, -0.0582714751, 0.2639195621, 0.3804078996, -0.3354525268, 0.1017406359, -0.0401813611, -0.3298806846, 0.6009741426, -0.4761058092, -0.1217619926, 0.0680582821, 0.3615737557, 0.3393868506, 0.2328700125, 0.2761100531, 0.1495417207, 0.1626259983, 0.0960145071, 0.0987887159, 0.170155108, -0.4183503687, 0.2156295478, -0.0257501192, -0.2181930244, 0.1078813002, -0.0609780215, 0.1500250548, -0.0456766933, -0.1998730302, -0.1568869352, 0.5427840352, -0.6157975197, 0.0279460102, -0.2488966882, -0.156083405, 0.0070148306, -0.2134260386, -0.0342438444, 0.1429587603, 0.0524962097, -0.3868664503, -0.0538335182, 0.1028612778, 0.1266249269, -0.1876764596, 0.5111071467, -0.1136962175, -0.0370367207, 0.2962220609, 0.0449531637, -0.1512652487, 0.1090165302, -0.1937617213, -0.0018789305, 0.4852038324, 0.3487841487, 0.2458340824, -0.0214936808, -0.2332082391, 0.0470290966, -0.0406503491, -0.0793871209, 0.2275259793, 0.0799436793, 0.1302530169, 0.4091725349, -0.0333358422, -0.3332444429, 0.2324638963, 0.1857769638, -0.2031299174, -0.4314081669, 0.2710416913, 0.3516991735, -0.0368973613, -0.3497084677, -0.5220082998, 0.2360266447, 0.3185988069, 0.1883933544, -0.0716535524, -0.027651228, -0.2472809106, 0.1691095531, 0.0565534793, -0.0483720899, 0.1000482067, 0.176642105, -0.2145444453, -0.2067898363, -0.2552964389, -0.1363968253, 0.4286459386, -0.0443388671, 0.3094405532, 0.1777622402, 0.277187258, -0.1247246787, -0.1249763817, 0.288752079, 0.0088401213, 0.0416107886, -0.1089355275, -0.0362387151, 0.1931091696, -0.0469498783, 0.364918977, 0.1957940608, -0.3250906467, 0.0198442154, -0.0984709486, -0.1214951128, -0.0789785683, 0.12100555, -0.1505498737, 0.1174001545, 0.0439474769, -0.0525804907, -0.1851364672, -0.0862713754, -0.1575878561, -0.0794769004, -0.2974513173, -0.1662344933, -0.246068731, -0.1250380278, -0.1196445823, 0.0043306523, 0.0005500191, -0.0106874174, -0.040487539, -0.282674104, -0.1588367075, 0.0607948825, -0.2936335504, -0.2167019695, -0.1739190817, 0.2281411588, -0.024399763, 0.0930591077, -0.1156691313, 0.0667517185, 0.1222409904, -0.0957006514, -0.1543300152, -0.0534616187, -0.2331428826, 0.2917100191, 0.1491724104, 0.0468315743, -0.0794367269, -0.4122963548, -0.0143970307, 0.4969035387, -0.521871388, -0.0407991894, -0.3583911359, 0.2859596312, -0.3150941432, 0.4582993388, 0.0567069426, -0.2462487072, -0.1380136758, 0.3644825518, 0.1745100319, 0.3875308633, -0.0617133901, 0.0549776666, -0.0879176334, 0.2675450742, -0.1149755344, 0.5162413716, 0.327231437, -0.213698253, -0.0478192829, -0.2623963356, 0.1159515381, 0.0527699813, -0.1398818344, 0.2965241671, 0.0834780782, -0.3149952888, 0.1665279567, -0.2887442112, -0.4117941856, 0.0320426971, -0.0527596958, 0.1982457936, -0.2443106771, 0.3169922829, 0.0489504598, 0.4910992682, -0.1780502051, 0.2910961807, -0.2383604646, -0.1767039299, 0.1975149959, 0.2727531791, 0.2449009418, -0.1675574183, 0.0264965333, -0.5409094095, -0.4216778874, 0.2834412158, 0.1674794704, 0.2352838963, 0.2791195214, -0.1008351147, 0.5258053541, -0.1562115103, 0.7999857664, 0.0206831619, -0.3363378942, 0.3844910264, -0.1618198156, 0.0528762117, -0.2177931666, -0.1827091575, -0.0659893453, 0.2337737232, 0.4407468438, -0.0931774974, -0.2479646355, 0.6446054578, 0.0670877099, -0.1472484171, -0.3441520929, -0.1861820668, -0.3543055654, -0.0412189476, 0.7678550482, -0.1216907501, 0.1556899697, 0.1822197735, -0.0512350053, -0.3818886578, 0.1598663926, 0.2386750728, -0.0051199365, 0.0505830422, 0.4557842314, 0.4348103106, 0.0714173019, 0.0007317181, 0.1192741022, -0.0369115286, -0.3043968976, 0.0731522962, -0.1888456196, -0.2556854188, 0.3799426854, 0.7006735802, 0.1868768632, 0.2484072298, -0.2102309167, 0.3775885701, -0.1914456934, 0.0245310739, 0.4383127093, -0.0020622555, -0.1787724793, -0.5383258462, 0.3112787604, 0.2034230232, 0.0733027831, 0.0608612671, -0.0757304803, -0.0163802877, 0.3021710217, 0.1249998808, 0.9838234186, -0.0269195437, 0.1929831058, 0.506308496, 0.0048405752, -0.2439047098, -0.6487340331, 0.3692770004, -0.3329212666, -0.2241525799, 0.1931164563, -0.1011416465, -0.0847687051, 0.0735342428, -0.0393426344, 0.0991453081, -0.0472755767, -0.086256206, -0.2586019337, 0.3895537555, 0.3151939809, -0.427839905, 0.024883382, 0.0013510567, 0.2714568973, -0.098715879, 0.127815634, -0.1633998305, -0.1108863652, 0.0184412617, 0.125173822, -0.0791136324, -0.1283782125, 0.0130585553, -0.048773177, -0.0873117596, -0.2329256982, -0.3244180977, 0.4604190886, -0.0299462639, 0.0995342582, 0.081583783, -0.0991101637, 0.0721640512, -0.0867693722, -0.4970830977, 0.2265412658, 0.080812484, -0.1736775488, 0.1493709534, 0.0787264854, -0.3227710724, -0.1460988969, 0.1744302213, 0.020576952, 0.0075483699, -0.0367372781, 0.3179990351, -0.2626371086, -0.2335654795, 0.0200596899, 0.092077136, -0.4317520857, 0.5605173111, -0.3023818433, -0.3800687194, -0.0546555147, 0.0166956205, 0.3058080673, 0.0560380518, 0.2623711228, -0.089119494, -0.3048813045, -0.1546768844, -0.3024290204, 0.06128297, 0.0386252739, 0.0938879848, 0.302420795, -0.0061311335, 0.0253992658, -0.2326645553, -0.3227178752, -0.1417695731, -0.3823906779, 0.114599824, -0.357640624, -0.1850683242, 0.2572281957, 0.3836849034, 0.0360176899, 0.2342237681, -0.4448953867, 0.2590475976, -0.2176697105, -0.0653393939, -0.0312393308, 0.260019362, -0.0327090882, -0.2574276924, 0.1754399091, 0.216269955, 0.1199890375, 0.1412038505, 0.0373655967, -0.1117986888, 0.102948904, 0.1834249198, -0.1107470691, 0.1684505641, 0.0811555237, -0.1483059525, -0.3009880781, -0.2652980983, 0.134365961, -0.1107032374, -0.0258550439, -0.130359441, -0.121708937, -0.1124876216, 0.3323767483, 0.2738249004, 0.204005003, 0.2833088934, -0.0734993368, 0.0767015368, -0.2428330332, -0.2653930187, -0.0510374494, 0.1903243959, 0.0616441779, 0.0863677934, -0.0918659791, -0.1731876582, -0.3799477816, -0.0381177552, 0.0317690298, 0.449893564, 0.0424939133, -0.2883666456, 0.1852962971, 0.0379372314, -0.2797204852, -0.1952762008, 0.3624272645, -0.4507015347, 0.2002287805, 0.4017178416, 0.264575094, 0.1657236665, -0.4832746089, 0.0937634781, -0.2345175147, 0.0963051394, -0.4337076545, -0.0904511586, 0.3514745831, -0.1948999614, 0.2041255087, 0.3052142262, 0.2311196178, 0.6089177728, 0.031423822, 0.2752895951, 0.1878769845, 0.2133272588, -0.321703434, -0.1798366755, 0.2906689644, 0.2322687805, -0.0317728333, -0.2078446299, 0.0090948511, 0.2347342968, 0.2440355718, -0.5169644952, -0.2611279488, 0.1630210876, -0.1220198497, -0.1281811744, 0.4117492437, 0.0567708388, -0.2780818343, 0.2270266116, 0.0776642486, 0.1923736036, -0.1272478253, 0.2008742094, 0.2934535444, 0.2212004811, -0.0231137872, 0.0910243168, 0.4337709844, -0.3367401063, -0.2079149038, -0.0111506451, -0.0027165411, 0.023589652, -0.1512230337, 0.2809454799, 0.2448250949, -0.0555029102, 0.2687216699, -0.0504416563, -0.0088710105, 0.0438044779, -0.0344009884, -0.1084128991, -0.1003935114, 0.1006174311, -0.0908768773, -0.1285338104, -0.1207232624, -0.242632851, 0.2026132792, -0.1804253608, 0.0230687745, 0.3459427953, -0.0975399837, -0.3948054314, 0.0952417776, -0.2833031714, 0.0691804811, 0.1062702462, -0.3566010296, -0.0891358927, 0.2603065968, -0.0016340399, -0.4257487357, 0.5468893051, 0.17240493, 0.1286818832, -0.3299409747, -0.001434241, -0.3207879364, -0.0345095806, -0.5890921354, 0.1126355603, 0.1176837757, 0.4403544068, 0.07392589, -0.0703547671, 0.4031085968, -0.4079713225, 0.0992393643, 0.3735492229, -0.1734418124, -0.030622473, -0.4397856593, -0.0738475695, 0.042283725, -0.3743222654, 0.2847959697, -0.128206715, -0.0147695988, 0.192371875, -0.02026961, 0.1226509884, 0.0626827776, 0.5298789144, -0.0979443565, 0.0000544328, -0.0964540839, 0.0086353002, -0.2321902514, 0.121959202, -0.2070783824, 0.0085759228, -0.0218885075, 0.1733756065, -0.2073741704, -0.391960144, -0.1815342158, 0.4176571369, 0.3126299381, -0.4186963737, 0.1980268806, 0.1526594162, -0.155828163, 0.4795944989, 0.1503627747, 0.2282843739, 0.1467331946, -0.0340509564, -0.3561273217, -0.1054202095, 0.6236689091, -0.188294068, -0.0293617602, -0.3494386673, 0.2549012005, 0.4437922537, 0.5510440469, -0.2645768225, 0.086238116, 0.1219435632, 0.0535738543, -0.2103940099, 0.5777598023, 0.1868617237, 0.0147709884, -0.0737834275, -0.2648075819, -0.0630892515, -0.0029667234, -0.3532101512, -0.2814310193 ]
https://github.com/huggingface/datasets/issues/2046
add_faisis_index gets very slow when doing it interatively
@lhoestq Thanks a lot for the help you have given to solve this issue. As per my experiments, IVF index suits well for my case and it is a lot faster. The use of this can make the entire RAG end-to-end trainable lot faster. So I will close this issue. Will do the final PR soon.
As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path)
56
add_faisis_index gets very slow when doing it interatively As the below code suggests, I want to run add_faisis_index in every nth interaction from the training loop. I have 7.2 million documents. Usually, it takes 2.5 hours (if I run an as a separate process similar to the script given in rag/use_own_knowleldge_dataset.py). Now, this takes usually 5hrs. Is this normal? Any way to make this process faster? @lhoestq ``` def training_step(self, batch, batch_idx) -> Dict: if (not batch_idx==0) and (batch_idx%5==0): print("******************************************************") ctx_encoder=self.trainer.model.module.module.model.rag.ctx_encoder model_copy =type(ctx_encoder)(self.config_dpr) # get a new instance #this will be load in the CPU model_copy.load_state_dict(ctx_encoder.state_dict()) # copy weights and stuff list_of_gpus = ['cuda:2','cuda:3'] c_dir='/custom/cache/dir' kb_dataset = load_dataset("csv", data_files=[self.custom_config.csv_path], split="train", delimiter="\t", column_names=["title", "text"],cache_dir=c_dir) print(kb_dataset) n=len(list_of_gpus) #nunber of dedicated GPUs kb_list=[kb_dataset.shard(n, i, contiguous=True) for i in range(n)] #kb_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/haha-dir') print(self.trainer.global_rank) dataset_shards = self.re_encode_kb(model_copy.to(device=list_of_gpus[self.trainer.global_rank]),kb_list[self.trainer.global_rank]) output = [None for _ in list_of_gpus] #self.trainer.accelerator_connector.accelerator.barrier("embedding_process") dist.all_gather_object(output, dataset_shards) #This creation and re-initlaization of the new index if (self.trainer.global_rank==0): #saving will be done in the main process combined_dataset = concatenate_datasets(output) passages_path =self.config.passages_path logger.info("saving the dataset with ") #combined_dataset.save_to_disk('/hpc/gsir059/MY-Test/RAY/transformers/examples/research_projects/rag/MY-Passage') combined_dataset.save_to_disk(passages_path) logger.info("Add faiss index to the dataset that consist of embeddings") embedding_dataset=combined_dataset index = faiss.IndexHNSWFlat(768, 128, faiss.METRIC_INNER_PRODUCT) embedding_dataset.add_faiss_index("embeddings", custom_index=index) embedding_dataset.get_index("embeddings").save(self.config.index_path) @lhoestq Thanks a lot for the help you have given to solve this issue. As per my experiments, IVF index suits well for my case and it is a lot faster. The use of this can make the entire RAG end-to-end trainable lot faster. So I will close this issue. Will do the final PR soon.
[ -0.4988242388, -0.2682781816, -0.0245006643, 0.1282280535, 0.0594395846, 0.2077843398, 0.1214630306, 0.4241298139, 0.2917420566, 0.2924969494, -0.11882516, 0.1883150488, 0.137212798, 0.0858211592, -0.1362563074, 0.1750426441, 0.2370328307, 0.0853345543, 0.2607981563, -0.134414047, -0.3274794221, -0.3090645075, -0.1589122415, -0.2578623593, -0.4006922543, -0.0958189517, -0.2436219752, -0.0820503682, 0.1982476264, -0.4729164541, -0.1375323683, 0.1398430467, 0.3402585983, 0.2582926452, -0.0001220497, 0.0556765944, 0.2280080169, 0.0654631555, -0.2229977548, 0.6411957741, 0.3400725722, -0.0694881529, -0.1751101911, -0.3107708395, -0.1455551684, -0.1110419556, 0.0810795054, -0.0469299518, -0.166365087, 0.1943014115, 0.0266239885, -0.0582865886, 0.052254945, -0.0154003035, 0.4025113285, -0.0755909458, -0.069177337, 0.317471087, 0.1635127813, -0.0722375661, 0.0997430757, 0.4481079876, 0.1206412762, -0.2267772257, 0.1089043394, 0.2051612139, 0.7838162184, 0.0224399772, 0.0652679577, 0.1526694149, 0.0153404847, -0.0905527547, -0.443008393, -0.1029034629, 0.4257143438, -0.6180595756, -0.0674013793, -0.0837422833, -0.1014745235, 0.0538600758, 0.1745851785, -0.030229982, 0.0363179892, 0.047450684, 0.1748994142, 0.1653573662, 0.3874711692, -0.0599025264, 0.5584331751, 0.0424473584, -0.1168545559, 0.0448825732, -0.0920775458, 0.0121962707, -0.6050303578, 0.0880847201, -0.0309158228, -0.099331364, -0.092686981, 0.0178016499, -0.3694862127, 0.0061656279, 0.2365599424, 0.003336211, -0.1830646694, -0.090258047, -0.5061048269, 0.0558811538, 0.0839015841, 0.106287092, -0.3780876994, 0.099234134, -0.0033380073, -0.0043097455, -0.3259802163, -0.2981355488, -0.2288902104, 0.2228070349, -0.1811424196, 0.0771882161, -0.403968513, -0.2522765398, 0.205072701, 0.4162215889, -0.1177442446, -0.0761367977, 0.0108398311, -0.0346153565, -0.2344279736, 0.1761687845, -0.2220171839, 0.2306601256, -0.0319639146, 0.5045983195, -0.0291063543, -0.2213937491, -0.0890690237, -0.021730952, 0.0839634538, -0.0078423154, -0.0441637486, -0.2998931706, 0.2466678917, 0.074922964, -0.2632143795, -0.0676849857, -0.0939521194, 0.1211107001, -0.2278233618, 0.2215082943, -0.2173945904, -0.3651024103, 0.0271580219, 0.0193312168, 0.3086773157, -0.0630927086, 0.4208227694, 0.1143972203, 0.1730182916, 0.161335066, 0.159176439, -0.1314438134, -0.2680220008, 0.0831867158, 0.2267841995, 0.3627383709, 0.0937216878, 0.0347713977, 0.2980126739, 0.3901302814, 0.2124050558, 0.3999934196, -0.1159487963, 0.6762604117, -0.3200042248, 0.0842919499, 0.2451206446, -0.2553784251, -0.2924264371, 0.1869048476, -0.1663639843, -0.0773258805, 0.3296630979, 0.5182705522, 0.3120290339, 0.087015532, 0.3410931826, 0.3062555492, 0.0090267248, -0.0312472526, -0.4050689042, -0.0582714751, 0.2639195621, 0.3804078996, -0.3354525268, 0.1017406359, -0.0401813611, -0.3298806846, 0.6009741426, -0.4761058092, -0.1217619926, 0.0680582821, 0.3615737557, 0.3393868506, 0.2328700125, 0.2761100531, 0.1495417207, 0.1626259983, 0.0960145071, 0.0987887159, 0.170155108, -0.4183503687, 0.2156295478, -0.0257501192, -0.2181930244, 0.1078813002, -0.0609780215, 0.1500250548, -0.0456766933, -0.1998730302, -0.1568869352, 0.5427840352, -0.6157975197, 0.0279460102, -0.2488966882, -0.156083405, 0.0070148306, -0.2134260386, -0.0342438444, 0.1429587603, 0.0524962097, -0.3868664503, -0.0538335182, 0.1028612778, 0.1266249269, -0.1876764596, 0.5111071467, -0.1136962175, -0.0370367207, 0.2962220609, 0.0449531637, -0.1512652487, 0.1090165302, -0.1937617213, -0.0018789305, 0.4852038324, 0.3487841487, 0.2458340824, -0.0214936808, -0.2332082391, 0.0470290966, -0.0406503491, -0.0793871209, 0.2275259793, 0.0799436793, 0.1302530169, 0.4091725349, -0.0333358422, -0.3332444429, 0.2324638963, 0.1857769638, -0.2031299174, -0.4314081669, 0.2710416913, 0.3516991735, -0.0368973613, -0.3497084677, -0.5220082998, 0.2360266447, 0.3185988069, 0.1883933544, -0.0716535524, -0.027651228, -0.2472809106, 0.1691095531, 0.0565534793, -0.0483720899, 0.1000482067, 0.176642105, -0.2145444453, -0.2067898363, -0.2552964389, -0.1363968253, 0.4286459386, -0.0443388671, 0.3094405532, 0.1777622402, 0.277187258, -0.1247246787, -0.1249763817, 0.288752079, 0.0088401213, 0.0416107886, -0.1089355275, -0.0362387151, 0.1931091696, -0.0469498783, 0.364918977, 0.1957940608, -0.3250906467, 0.0198442154, -0.0984709486, -0.1214951128, -0.0789785683, 0.12100555, -0.1505498737, 0.1174001545, 0.0439474769, -0.0525804907, -0.1851364672, -0.0862713754, -0.1575878561, -0.0794769004, -0.2974513173, -0.1662344933, -0.246068731, -0.1250380278, -0.1196445823, 0.0043306523, 0.0005500191, -0.0106874174, -0.040487539, -0.282674104, -0.1588367075, 0.0607948825, -0.2936335504, -0.2167019695, -0.1739190817, 0.2281411588, -0.024399763, 0.0930591077, -0.1156691313, 0.0667517185, 0.1222409904, -0.0957006514, -0.1543300152, -0.0534616187, -0.2331428826, 0.2917100191, 0.1491724104, 0.0468315743, -0.0794367269, -0.4122963548, -0.0143970307, 0.4969035387, -0.521871388, -0.0407991894, -0.3583911359, 0.2859596312, -0.3150941432, 0.4582993388, 0.0567069426, -0.2462487072, -0.1380136758, 0.3644825518, 0.1745100319, 0.3875308633, -0.0617133901, 0.0549776666, -0.0879176334, 0.2675450742, -0.1149755344, 0.5162413716, 0.327231437, -0.213698253, -0.0478192829, -0.2623963356, 0.1159515381, 0.0527699813, -0.1398818344, 0.2965241671, 0.0834780782, -0.3149952888, 0.1665279567, -0.2887442112, -0.4117941856, 0.0320426971, -0.0527596958, 0.1982457936, -0.2443106771, 0.3169922829, 0.0489504598, 0.4910992682, -0.1780502051, 0.2910961807, -0.2383604646, -0.1767039299, 0.1975149959, 0.2727531791, 0.2449009418, -0.1675574183, 0.0264965333, -0.5409094095, -0.4216778874, 0.2834412158, 0.1674794704, 0.2352838963, 0.2791195214, -0.1008351147, 0.5258053541, -0.1562115103, 0.7999857664, 0.0206831619, -0.3363378942, 0.3844910264, -0.1618198156, 0.0528762117, -0.2177931666, -0.1827091575, -0.0659893453, 0.2337737232, 0.4407468438, -0.0931774974, -0.2479646355, 0.6446054578, 0.0670877099, -0.1472484171, -0.3441520929, -0.1861820668, -0.3543055654, -0.0412189476, 0.7678550482, -0.1216907501, 0.1556899697, 0.1822197735, -0.0512350053, -0.3818886578, 0.1598663926, 0.2386750728, -0.0051199365, 0.0505830422, 0.4557842314, 0.4348103106, 0.0714173019, 0.0007317181, 0.1192741022, -0.0369115286, -0.3043968976, 0.0731522962, -0.1888456196, -0.2556854188, 0.3799426854, 0.7006735802, 0.1868768632, 0.2484072298, -0.2102309167, 0.3775885701, -0.1914456934, 0.0245310739, 0.4383127093, -0.0020622555, -0.1787724793, -0.5383258462, 0.3112787604, 0.2034230232, 0.0733027831, 0.0608612671, -0.0757304803, -0.0163802877, 0.3021710217, 0.1249998808, 0.9838234186, -0.0269195437, 0.1929831058, 0.506308496, 0.0048405752, -0.2439047098, -0.6487340331, 0.3692770004, -0.3329212666, -0.2241525799, 0.1931164563, -0.1011416465, -0.0847687051, 0.0735342428, -0.0393426344, 0.0991453081, -0.0472755767, -0.086256206, -0.2586019337, 0.3895537555, 0.3151939809, -0.427839905, 0.024883382, 0.0013510567, 0.2714568973, -0.098715879, 0.127815634, -0.1633998305, -0.1108863652, 0.0184412617, 0.125173822, -0.0791136324, -0.1283782125, 0.0130585553, -0.048773177, -0.0873117596, -0.2329256982, -0.3244180977, 0.4604190886, -0.0299462639, 0.0995342582, 0.081583783, -0.0991101637, 0.0721640512, -0.0867693722, -0.4970830977, 0.2265412658, 0.080812484, -0.1736775488, 0.1493709534, 0.0787264854, -0.3227710724, -0.1460988969, 0.1744302213, 0.020576952, 0.0075483699, -0.0367372781, 0.3179990351, -0.2626371086, -0.2335654795, 0.0200596899, 0.092077136, -0.4317520857, 0.5605173111, -0.3023818433, -0.3800687194, -0.0546555147, 0.0166956205, 0.3058080673, 0.0560380518, 0.2623711228, -0.089119494, -0.3048813045, -0.1546768844, -0.3024290204, 0.06128297, 0.0386252739, 0.0938879848, 0.302420795, -0.0061311335, 0.0253992658, -0.2326645553, -0.3227178752, -0.1417695731, -0.3823906779, 0.114599824, -0.357640624, -0.1850683242, 0.2572281957, 0.3836849034, 0.0360176899, 0.2342237681, -0.4448953867, 0.2590475976, -0.2176697105, -0.0653393939, -0.0312393308, 0.260019362, -0.0327090882, -0.2574276924, 0.1754399091, 0.216269955, 0.1199890375, 0.1412038505, 0.0373655967, -0.1117986888, 0.102948904, 0.1834249198, -0.1107470691, 0.1684505641, 0.0811555237, -0.1483059525, -0.3009880781, -0.2652980983, 0.134365961, -0.1107032374, -0.0258550439, -0.130359441, -0.121708937, -0.1124876216, 0.3323767483, 0.2738249004, 0.204005003, 0.2833088934, -0.0734993368, 0.0767015368, -0.2428330332, -0.2653930187, -0.0510374494, 0.1903243959, 0.0616441779, 0.0863677934, -0.0918659791, -0.1731876582, -0.3799477816, -0.0381177552, 0.0317690298, 0.449893564, 0.0424939133, -0.2883666456, 0.1852962971, 0.0379372314, -0.2797204852, -0.1952762008, 0.3624272645, -0.4507015347, 0.2002287805, 0.4017178416, 0.264575094, 0.1657236665, -0.4832746089, 0.0937634781, -0.2345175147, 0.0963051394, -0.4337076545, -0.0904511586, 0.3514745831, -0.1948999614, 0.2041255087, 0.3052142262, 0.2311196178, 0.6089177728, 0.031423822, 0.2752895951, 0.1878769845, 0.2133272588, -0.321703434, -0.1798366755, 0.2906689644, 0.2322687805, -0.0317728333, -0.2078446299, 0.0090948511, 0.2347342968, 0.2440355718, -0.5169644952, -0.2611279488, 0.1630210876, -0.1220198497, -0.1281811744, 0.4117492437, 0.0567708388, -0.2780818343, 0.2270266116, 0.0776642486, 0.1923736036, -0.1272478253, 0.2008742094, 0.2934535444, 0.2212004811, -0.0231137872, 0.0910243168, 0.4337709844, -0.3367401063, -0.2079149038, -0.0111506451, -0.0027165411, 0.023589652, -0.1512230337, 0.2809454799, 0.2448250949, -0.0555029102, 0.2687216699, -0.0504416563, -0.0088710105, 0.0438044779, -0.0344009884, -0.1084128991, -0.1003935114, 0.1006174311, -0.0908768773, -0.1285338104, -0.1207232624, -0.242632851, 0.2026132792, -0.1804253608, 0.0230687745, 0.3459427953, -0.0975399837, -0.3948054314, 0.0952417776, -0.2833031714, 0.0691804811, 0.1062702462, -0.3566010296, -0.0891358927, 0.2603065968, -0.0016340399, -0.4257487357, 0.5468893051, 0.17240493, 0.1286818832, -0.3299409747, -0.001434241, -0.3207879364, -0.0345095806, -0.5890921354, 0.1126355603, 0.1176837757, 0.4403544068, 0.07392589, -0.0703547671, 0.4031085968, -0.4079713225, 0.0992393643, 0.3735492229, -0.1734418124, -0.030622473, -0.4397856593, -0.0738475695, 0.042283725, -0.3743222654, 0.2847959697, -0.128206715, -0.0147695988, 0.192371875, -0.02026961, 0.1226509884, 0.0626827776, 0.5298789144, -0.0979443565, 0.0000544328, -0.0964540839, 0.0086353002, -0.2321902514, 0.121959202, -0.2070783824, 0.0085759228, -0.0218885075, 0.1733756065, -0.2073741704, -0.391960144, -0.1815342158, 0.4176571369, 0.3126299381, -0.4186963737, 0.1980268806, 0.1526594162, -0.155828163, 0.4795944989, 0.1503627747, 0.2282843739, 0.1467331946, -0.0340509564, -0.3561273217, -0.1054202095, 0.6236689091, -0.188294068, -0.0293617602, -0.3494386673, 0.2549012005, 0.4437922537, 0.5510440469, -0.2645768225, 0.086238116, 0.1219435632, 0.0535738543, -0.2103940099, 0.5777598023, 0.1868617237, 0.0147709884, -0.0737834275, -0.2648075819, -0.0630892515, -0.0029667234, -0.3532101512, -0.2814310193 ]
https://github.com/huggingface/datasets/issues/2040
ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk
Hi ! To help me understand the situation, can you print the values of `load_from_disk(PATH_DATA_CLS_A)['train']._indices_data_files` and `load_from_disk(PATH_DATA_CLS_B)['train']._indices_data_files` ? They should both have a path to an arrow file Also note that from #2025 concatenating datasets will no longer have such restrictions.
Hi there, I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects): ```python concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']]) ``` Yielding the following error: ```python ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho... `load_from_disk(PATH_DATA_CLS_A)['train']` yields: ```python Dataset({ features: ['labels', 'text'], num_rows: 785 }) ``` `load_from_disk(PATH_DATA_CLS_B)['train']` yields: ```python Dataset({ features: ['labels', 'text'], num_rows: 3341 }) ```
41
ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk Hi there, I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects): ```python concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']]) ``` Yielding the following error: ```python ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho... `load_from_disk(PATH_DATA_CLS_A)['train']` yields: ```python Dataset({ features: ['labels', 'text'], num_rows: 785 }) ``` `load_from_disk(PATH_DATA_CLS_B)['train']` yields: ```python Dataset({ features: ['labels', 'text'], num_rows: 3341 }) ``` Hi ! To help me understand the situation, can you print the values of `load_from_disk(PATH_DATA_CLS_A)['train']._indices_data_files` and `load_from_disk(PATH_DATA_CLS_B)['train']._indices_data_files` ? They should both have a path to an arrow file Also note that from #2025 concatenating datasets will no longer have such restrictions.
[ -0.0112980474, -0.0258977618, -0.044959303, 0.507442534, 0.1715030521, 0.1827168465, 0.0579557084, 0.1286475658, -0.0628907159, 0.1336226612, 0.0703733191, 0.2955009043, -0.0843801424, -0.1025009379, -0.3257563114, -0.1238993853, 0.2124685496, -0.041784659, -0.1874170452, -0.1163776517, -0.4338988066, 0.3035929203, -0.0941293985, 0.0441319495, -0.3788501322, -0.1216485947, -0.3139138818, 0.3639659882, -0.1314384788, -0.1400639117, 0.3840757012, -0.0434934311, 0.1431431919, 0.4993313253, -0.000123913, -0.0518492647, -0.0255158637, -0.1264899075, -0.3373902142, -0.3795107901, -0.2954405844, -0.2493541837, 0.1174824759, -0.3515411913, 0.3774075806, -0.1962018311, -0.1029744297, -0.7265008092, 0.2809562981, 0.2295500487, 0.0761975199, 0.197294116, 0.131707117, -0.0478943586, 0.0319104977, 0.0735817999, 0.1537167132, 0.202960819, -0.0550396107, 0.0238701627, 0.1942695379, -0.0005484355, -0.232848987, -0.1185946465, 0.1362631619, 0.4979306757, 0.0554187931, -0.5291478634, -0.0690567121, 0.0863206685, 0.4802344143, -0.3763853312, -0.3781011105, -0.1759453118, 0.0070044599, -0.3268715441, 0.1010299549, 0.3545841575, 0.0001947914, 0.1118085682, -0.0617498644, -0.0342382565, -0.2941899002, 0.0725950301, -0.0851019248, 0.0358606614, -0.0858846828, 0.1781405956, 0.4493533373, 0.0479511581, 0.3216397464, -0.4869165421, 0.0636957586, 0.19227162, -0.1096954867, 0.145218417, -0.1640022844, -0.5908125043, 0.0066755121, -0.0109491833, 0.1836392879, -0.1348267347, -0.1758419722, 0.3022007346, 0.2534694672, 0.3053898811, -0.0141319558, 0.4288302362, -0.0103182122, -0.1330457777, 0.0501373596, -0.0258552171, -0.0293559991, -0.4226582646, 0.0796901062, -0.0718142465, 0.1062270477, 0.0129515696, -0.3877179027, 0.1803556383, -0.2840075493, -0.1573118418, 0.0971624404, -0.0178045593, 0.0777066499, 0.3530091643, 0.3876339793, 0.3053705692, 0.0820670053, 0.2978774607, -0.1446357518, 0.1967320889, 0.0749062672, 0.0838978514, 0.1068454087, 0.0016407245, 0.0119907558, 0.1067731455, 0.0797291845, -0.1220688969, 0.0271952245, -0.3416928351, 0.2821962535, 0.1566370577, 0.0981632248, 0.3480811417, 0.2592439055, -0.2748633325, -0.1870559007, 0.3995105326, -0.3576479852, -0.1869690567, -0.1376322061, 0.0494735651, -0.1045716926, 0.1410057247, -0.4229940474, -0.0059974659, 0.30188936, 0.3051958382, -0.1290161759, -0.0568312965, -0.1296139657, -0.4591296315, 0.3412270248, 0.0073852818, -0.4581018984, 0.0097238915, 0.2903793752, 0.1048899814, 0.1965614706, 0.430850476, -0.144158572, 0.3636822701, -0.3045048118, 0.010236552, 0.4004561007, -0.4094222784, -0.1038569659, 0.1716970205, -0.1796124578, -0.0410920233, 0.3645088077, 0.0270349272, 0.0063065514, 0.2094055265, 0.7220623493, 0.2425593287, 0.0746658891, -0.1657412648, -0.0952382311, -0.2326027453, 0.3555583358, -0.208694458, -0.1339793652, -0.0259475205, -0.2588168681, -0.516770184, 0.4240074754, -0.2052067667, 0.0640660152, 0.4364211857, 0.3568805456, -0.12336687, -0.10384918, 0.1537688076, -0.1934180856, 0.1686594784, -0.0148308687, -0.2227094322, -0.2647584081, -0.0220490731, -0.2106941789, 0.1269538552, -0.070980452, 0.0814449191, -0.0153742349, 0.0325087644, 0.0056664436, -0.1054478511, -0.3481858373, 0.5563708544, -0.1631452143, 0.0219017342, -0.2541758716, 0.4569388032, -0.1578052193, -0.0263909064, -0.0453712083, 0.0369334519, 0.2729870081, 0.1677792221, 0.0227813628, 0.4717352688, -0.043007452, 0.0950460285, 0.089338772, 0.0808452517, 0.171627745, 0.0057402947, 0.1627614051, -0.0579364002, 0.1558344364, -0.1728038341, -0.0909187496, 0.4870927632, -0.3344886005, 0.4485848546, 0.1146496013, 0.0512754098, 0.1062388197, 0.0439711586, -0.0784748942, -0.236931622, 0.0169222765, 0.0849662125, 0.219224304, 0.217042312, -0.3525522947, 0.0700838342, 0.1829126328, 0.0754988343, -0.0589675233, -0.0108341025, -0.108061187, -0.0159974303, -0.1095020175, 0.3902996182, 0.5840013027, 0.1719547361, 0.1649896055, -0.1167304665, -0.1371310055, -0.1706053466, 0.3417836726, 0.1398367882, 0.2364144176, 0.1728816926, -0.085725151, -0.0756205618, -0.0717299283, -0.017531272, -0.1918957531, 0.0328852497, -0.553692162, -0.0458902605, -0.2176487446, -0.109898977, -0.4481919408, -0.3460382521, -0.0974933207, -0.5419762135, -0.2592170238, 0.4547416866, -0.1169455573, -0.052783601, -0.2844997048, 0.1456624717, 0.0052285991, 0.067861937, 0.123474054, 0.010436669, -0.0783167332, -0.0318524167, -0.1368811727, 0.0180021897, -0.0136510003, -0.0726325661, 0.2563135028, -0.2595610619, 0.0669648126, -0.1467583776, -0.1533612013, 0.0849599689, 0.0322467387, 0.3159065247, -0.2281424105, -0.6266646981, 0.0580366589, 0.5674741864, -0.1389604807, 0.0900545791, 0.262021482, -0.1841856092, 0.0017384349, -0.2506844699, -0.4523786604, -0.2502114475, 0.0298633538, -0.1747046858, 0.2491324991, 0.1712757498, 0.2696705759, 0.1090816781, 0.3577368259, 0.1941002905, -0.1135381088, -0.2557305992, 0.4422731996, -0.0536295697, -0.1642775685, 0.0017757837, 0.0088763852, 0.0754108876, 0.1504591107, -0.366191566, 0.0180256143, -0.2361497879, 0.1363366544, -0.1147487164, 0.301199168, 0.1340017915, 0.4595842063, -0.0462786593, -0.2586547136, -0.273722291, 0.2683787346, 0.1589275151, 0.304402709, -0.012300822, 0.2090224773, 0.0731704012, 0.3439159393, 0.3640874922, 0.1217378825, 0.2549829185, 0.1836443245, 0.5346708894, 0.0144411838, -0.4406896532, -0.4077025354, -0.0011523188, -0.2065865099, -0.1394888014, 0.0483936332, 0.0872392505, -0.0935867652, 0.2118119895, -0.235750705, -0.3036772311, 0.093802914, -0.3211862147, 0.1250001043, -0.2163255811, -0.0679508075, -0.282848984, 0.3194229007, -0.1286117136, 0.0600242577, 0.2188929468, -0.1355673969, -0.3572332859, -0.3390059173, -0.3777070045, 0.3049445748, 0.054389488, 0.3831129968, 0.0539907888, -0.290781945, -0.2016691566, 0.0449485667, 0.7679040432, 0.2945115566, -0.3783252239, 0.4131022394, 0.0676539615, -0.5299779177, -0.0380810909, 0.0837751701, 0.2424826175, -0.2675106227, 0.4022999406, -0.240288049, -0.1255395859, -0.1106792539, 0.4439464808, -0.1429794133, 0.0849763379, -0.0313198455, -0.1303118318, -0.152684927, -0.320815444, 0.0542216189, 0.3823353946, -0.3698828816, -0.0626259297, -0.0008344268, -0.2915802002, 0.3242532611, -0.3542226851, 0.6015850902, -0.070303753, 0.1090657935, 0.216845423, 0.1730602086, 0.4914815724, 0.4670768678, -0.2443518192, -0.1175282076, 0.0126574049, 0.0911093205, 0.5109781623, 0.3323251605, -0.2225602865, -0.0301945787, 0.0194206219, -0.0991327539, -0.2740882933, -0.1163050234, 0.2955109775, -0.0105293849, -0.4240542948, -0.3991219103, 0.290009588, 0.3583662808, -0.1670622677, 0.4418199062, 0.0083777532, -0.4729836285, 0.3470165133, -0.1212994978, 1.0756549835, 0.0404347926, 0.2828830183, 0.1625707597, -0.2942945957, 0.090401195, 0.292449981, -0.03187396, -0.1988101751, -0.1252881736, -0.1203401759, -0.3440371752, 0.0014599623, 0.2321630418, -0.3387197256, 0.1795615256, -0.5210159421, -0.1161917597, -0.2029713243, 0.0473355837, -0.1271824539, -0.227361694, -0.3534165025, -0.0209864154, 0.2143520117, -0.1160490289, -0.0184171945, -0.1729264855, -0.5257239938, -0.1964708716, -0.1285266727, 0.0401089713, -0.319824785, 0.6732957363, -0.2941885591, -0.4334103167, -0.4329433143, 0.3981278837, 0.40856269, -0.0319075175, 0.0262824111, -0.1287884712, 0.0475808755, 0.0084446361, -0.0751562417, -0.2583679557, 0.1939778179, 0.1476747692, -0.0745914057, 0.1135495603, -0.0817413777, -0.3694064915, -0.0846802145, 0.1008998826, 0.0339484103, -0.2673566341, -0.3413453102, 0.1735769063, -0.0646065697, -0.064526692, 0.0239265468, 0.3677727878, -0.0626550168, 0.207429111, -0.2126592696, -0.3376841545, -0.0560691804, 0.484371841, 0.3131256998, -0.0178010538, 0.5047690868, -0.0361333229, -0.10059423, -0.0298030358, 0.3686380684, 0.2418305129, 0.1030881852, 0.3431331217, 0.0801180527, 0.001080564, -0.1808102578, 0.3765240014, 0.3969093561, 0.2314939499, -0.0998978615, -0.2665146887, -0.5434695482, 0.4034374058, 0.0367557146, 0.4078209996, -0.0284730252, -0.4364432395, -0.0923395529, -0.095563367, -0.19851394, 0.0572783537, -0.1068871245, 0.0202853307, 0.2047136575, 0.0198705867, 0.1778989434, -0.0135632064, 0.0580112673, -0.1984196901, -0.0634629354, -0.0782512426, 0.0476518013, 0.1854497343, 0.1121997535, -0.0773325861, -0.112394914, -0.4440905154, 0.0286658593, -0.2024709433, -0.1707078665, 0.5613837242, 0.0619376674, 0.1161672324, 0.0000499861, 0.2100526541, 0.0161765292, 0.1269423813, 0.0819808245, 0.2238184661, 0.0458778366, 0.2438222617, -0.3202715814, -0.2187680304, -0.3172677755, 0.050836198, -0.1387195736, -0.0335389227, 0.1269542128, -0.147421211, -0.2226729989, 0.03409601, 0.394638747, 0.4278353453, -0.1175068989, 0.1583577394, -0.0283108633, 0.0834254622, 0.121628128, -0.2142874449, -0.1380098462, -0.1968069822, -0.20940198, 0.1497979611, 0.0626811162, -0.0821177661, -0.3396144211, 0.0256714784, 0.5485680699, -0.1606155932, 0.4001903832, 0.0932292566, 0.1508627981, 0.0077853468, -0.0089487238, 0.2421150208, 0.4247481823, -0.0585649125, -0.2144652307, 0.0903660282, 0.4816088974, -0.1609706581, 0.2162278742, -0.2308554947, -0.0546207726, 0.1499201208, -0.1688847393, -0.0110078081, 0.0624806136, 0.3620598614, -0.3919824958, -0.2237458229, 0.0981600583, 0.3435721397, -0.1242572069, -0.1706210673, 0.008811444, -0.2805442214, 0.0362513885, -0.1801575273, 0.1347276717, -0.3597921431, 0.1951783001, -0.0274088029, 0.0288218223, -0.1145171449, 0.3473958373, 0.4074491858, 0.1072440818, -0.2372736037, -0.0107774856, 0.1962229759, -0.0470066294, 0.1492603421, 0.1895022988, 0.593568325, 0.5518576503, -0.0385350958, 0.1228284761, 0.0862647966, -0.2647488713, 0.0007322727, -0.0269167293, -0.2013374269, -0.3894880414, 0.4084109664, 0.1807918698, 0.0093471557, 0.0648565069, 0.2460977435, 0.5886133909, -0.122022137, 0.1053810492, -0.1613060832, -0.2382543236, 0.1525793374, -0.0851619244, -0.3969840705, -0.263961792, 0.441046834, -0.0716997534, 0.127620995, 0.2629283071, 0.0381973349, 0.0462067984, 0.2446826845, 0.2988673151, 0.1290017217, -0.4679642022, -0.0109865544, -0.3217749298, -0.2128880173, 0.3092113137, 0.1748178154, -0.1901312619, 0.3667969406, 0.1639458835, -0.0158234835, 0.2488797903, 0.0814523697, -0.1605889499, 0.1002152637, -0.4152258635, -0.1393944323, 0.3665904701, 0.0396435931, -0.0583290458, -0.2068108916, 0.1909673959, 0.1240237206, 0.0127986372, 0.0291862357, 0.0827610344, 0.120237641, 0.4333840013, 0.2898519337, 0.1749393642, 0.2608097196, -0.122063987, 0.0228220075, 0.0182279423, -0.3067568541, -0.0446160473, 0.1826508939, -0.0878289416, 0.4609194994, -0.5516216159, 0.0427909717, -0.116972059, 0.0292599108, -0.002602732, -0.4689417183, -0.0616022237, 0.0664890483, -0.0075733829, -0.0252798554, 0.1431800425, 0.2222637236, 0.015916096, 0.5831587315, 0.0704731792, -0.4461382926, 0.4071055055, 0.020862231, -0.1125456989, 0.1859317124, -0.0085480306, 0.3054596186, 0.4251754582, -0.6048345566, -0.1813081205, 0.4282561243, -0.2483880967, -0.2672117651, 0.0092466576, -0.0783348382, -0.0299416557, 0.0153824268, 0.4939104319, -0.1024938971, -0.3544386625, -0.0302167796, -0.276101768 ]
https://github.com/huggingface/datasets/issues/2040
ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk
Sure, thanks for the fast reply! For dataset A: `[{'filename': 'drive/MyDrive/data_target_task/dataset_a/train/cache-4797266bf4db1eb7.arrow'}]` For dataset B: `[]` No clue why for B it returns nothing. `PATH_DATA_CLS_B` is exactly the same in `save_to_disk` and `load_from_disk`... Also I can verify that the folder physically exists under 'drive/MyDrive/data_target_task/dataset_b/'
Hi there, I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects): ```python concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']]) ``` Yielding the following error: ```python ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho... `load_from_disk(PATH_DATA_CLS_A)['train']` yields: ```python Dataset({ features: ['labels', 'text'], num_rows: 785 }) ``` `load_from_disk(PATH_DATA_CLS_B)['train']` yields: ```python Dataset({ features: ['labels', 'text'], num_rows: 3341 }) ```
43
ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk Hi there, I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects): ```python concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']]) ``` Yielding the following error: ```python ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho... `load_from_disk(PATH_DATA_CLS_A)['train']` yields: ```python Dataset({ features: ['labels', 'text'], num_rows: 785 }) ``` `load_from_disk(PATH_DATA_CLS_B)['train']` yields: ```python Dataset({ features: ['labels', 'text'], num_rows: 3341 }) ``` Sure, thanks for the fast reply! For dataset A: `[{'filename': 'drive/MyDrive/data_target_task/dataset_a/train/cache-4797266bf4db1eb7.arrow'}]` For dataset B: `[]` No clue why for B it returns nothing. `PATH_DATA_CLS_B` is exactly the same in `save_to_disk` and `load_from_disk`... Also I can verify that the folder physically exists under 'drive/MyDrive/data_target_task/dataset_b/'
[ -0.0077576935, -0.0073159589, -0.0188266672, 0.5390485525, 0.2280754, 0.1842921227, 0.053107705, 0.1309664845, -0.0564402267, 0.1484983116, 0.0628860742, 0.2342553437, -0.0325046629, -0.1666058004, -0.3268121183, -0.0597666688, 0.2327088118, 0.007199544, -0.0789072067, -0.1194587201, -0.4220419526, 0.2971969545, -0.1387291998, -0.058578942, -0.3954501748, -0.0667554438, -0.4116057754, 0.4386833012, -0.1577689797, -0.1015267298, 0.5081789494, -0.0862842798, 0.1224370524, 0.6370722055, -0.0001226115, -0.0308202859, -0.0324796401, -0.2020162195, -0.2702163756, -0.4532002211, -0.2112332433, -0.2356750369, -0.0447950251, -0.3365783095, 0.2640663981, -0.0735306218, -0.112473771, -0.7267842293, 0.1495839655, 0.2615770698, 0.0758541152, 0.2023936808, 0.0412549414, -0.011546419, -0.0034605509, 0.1429177374, 0.1469980627, 0.1667423844, -0.0944770128, -0.06066579, 0.2073463649, -0.0751988739, -0.3042546511, 0.0131349927, 0.1142957658, 0.4793724716, -0.0599414892, -0.4340188503, -0.0781597793, -0.0228612814, 0.4604326487, -0.3695721626, -0.371353358, -0.1061629131, 0.0483910255, -0.2898162007, 0.1351521611, 0.3806917667, -0.0266376901, 0.1082227826, -0.2135584354, 0.0090290699, -0.2528337538, -0.0439738818, -0.130844295, -0.0517331958, -0.0689105019, 0.1527519524, 0.4263560772, 0.1246833876, 0.3369886279, -0.5939993262, 0.0247726049, 0.2136671543, -0.2035796642, 0.0758955404, -0.0231925212, -0.4214422703, 0.0178543422, -0.049541913, 0.2194834054, -0.129446134, -0.1592090279, 0.2647929788, 0.1793377995, 0.4705993831, -0.0306801237, 0.4814177155, 0.0561169386, -0.1248711497, -0.0164854191, 0.0220425762, -0.0107340757, -0.2809274793, 0.1725067794, -0.0376346931, 0.0512935296, 0.0172459576, -0.4902620614, 0.1722747684, -0.2627789974, -0.1579496711, 0.1375526637, -0.0358219668, 0.0247515179, 0.3958359361, 0.3578868508, 0.3385949135, 0.0773073435, 0.336258769, -0.1757469922, 0.2379208952, 0.0614543818, 0.1129003465, 0.2048765272, -0.0268174857, -0.0324295498, 0.0669085905, 0.0196866523, -0.0630928874, 0.0071895197, -0.4055668414, 0.2116440088, 0.1468405724, 0.165586561, 0.3385898471, 0.3134983182, -0.3476324379, -0.1363860369, 0.3720194399, -0.3901688457, -0.162497893, -0.0608659275, 0.0683363974, -0.1990797073, 0.0822414905, -0.4669089615, 0.0059263096, 0.2804732025, 0.3146545887, -0.2105138451, -0.0311504919, -0.2271653414, -0.4472231269, 0.358099848, 0.0410959683, -0.4393669367, 0.0318099707, 0.2659563422, 0.1168272346, 0.2134185433, 0.4657852054, -0.0183207616, 0.4720541835, -0.3376359046, -0.0125896595, 0.3418798149, -0.4551290572, -0.1726366729, 0.2068523169, -0.1711759269, -0.0108986367, 0.310095191, 0.0450183228, -0.0124490997, 0.2387018502, 0.710506916, 0.3106862605, -0.036810413, -0.0591206066, -0.1282614321, -0.1791668087, 0.360185802, -0.1305137724, -0.0717392489, 0.1258465201, -0.2418702394, -0.4316973686, 0.3587988913, -0.2525394857, 0.0563759468, 0.4634279609, 0.3992078602, -0.1521523595, -0.1093365699, 0.0702471957, -0.1755596697, 0.2409663498, 0.0380811319, -0.141144082, -0.2892436981, 0.0492360331, -0.1995350868, 0.072083801, -0.1083419248, 0.0309188943, 0.0110549619, 0.1900497377, 0.0202375073, -0.1286935359, -0.2456141412, 0.641156733, -0.082143642, -0.0126171624, -0.1710730046, 0.5629541874, -0.2242327183, -0.0949678943, -0.0774522647, -0.0047569945, 0.2522278726, 0.1173365414, 0.0192383248, 0.4581302106, -0.0293525942, 0.0652102828, 0.1646004617, -0.001537405, 0.1587027311, 0.0926405638, 0.1691076308, -0.0322372206, 0.2578332126, -0.2327931225, -0.1162924543, 0.3702289164, -0.3233276308, 0.4082517922, 0.121719338, -0.0517722294, 0.1363518685, 0.0588620715, 0.0029764974, -0.1529111415, 0.0995617062, 0.1531849205, 0.2225985974, 0.2118731737, -0.3046705127, -0.0127986632, 0.2571277618, 0.0371879525, 0.0053215115, 0.0151514169, -0.052728951, -0.1384251565, -0.2007957846, 0.3541593552, 0.738199532, 0.1167203113, 0.1836728305, -0.0615902692, -0.1565949619, -0.1144141257, 0.295869261, 0.1383660734, 0.1884903908, 0.2836690843, 0.0051930491, -0.0268550422, -0.1313908845, 0.0052789729, -0.145008862, 0.0549792908, -0.5187073946, -0.0354224443, -0.1969224811, -0.0688648224, -0.3841025233, -0.3000256717, -0.0957657322, -0.5155738592, -0.2982621491, 0.4832046032, 0.0340703018, -0.1017187312, -0.2168411613, 0.1896803677, 0.0425126329, -0.0658031553, 0.0900251344, -0.0020250271, -0.117445983, -0.019323308, -0.1849122047, -0.0644799992, 0.0272127185, -0.175979197, 0.2759290636, -0.3246737421, 0.0726151094, -0.1426635534, -0.202958405, 0.1734547913, 0.0779782832, 0.2803865671, -0.2035324425, -0.592438221, 0.1457235962, 0.5013505816, -0.1869184971, 0.1658064127, 0.2946102321, -0.2110974491, -0.0700027347, -0.2169882953, -0.3874440789, -0.2615769506, -0.0783753097, -0.1965804249, 0.1751650572, 0.0926075727, 0.1931915879, 0.1270973831, 0.3630623221, 0.1643960327, -0.1537371576, -0.367638886, 0.4445554614, 0.005461331, -0.18836914, -0.0298496131, 0.0075799627, 0.118981503, 0.1703369319, -0.3710669279, -0.0209500138, -0.2660008669, 0.1324575841, -0.0986750424, 0.3205015063, 0.1483413279, 0.3702242076, -0.0279010031, -0.2777628005, -0.3389348686, 0.1872116178, 0.2447301, 0.3925763369, -0.0807117969, 0.2742602229, 0.1444840282, 0.3211854696, 0.3186562359, 0.0706982985, 0.3618189096, 0.2049421966, 0.5604657531, -0.0410335846, -0.5407703519, -0.3021300733, -0.0544504896, -0.2745863497, -0.0456634127, 0.0395168737, 0.0254855901, -0.1716779172, 0.139479056, -0.2076471448, -0.2167316973, 0.0467615686, -0.2657445371, 0.1350404173, -0.163940683, -0.0409939624, -0.2967514396, 0.2964037955, -0.1615645438, 0.1278746724, 0.2145497203, -0.0778270885, -0.395749867, -0.3447403908, -0.4116415083, 0.3273963034, 0.1121812463, 0.3608626127, 0.0535270162, -0.2476405203, -0.2672667503, 0.0001894411, 0.8296085596, 0.285965234, -0.3504905701, 0.4240782261, -0.0052012852, -0.4869096577, -0.0699314922, 0.0651897192, 0.1953274459, -0.3118861318, 0.4359981418, -0.2213548273, -0.0214829706, -0.1237545237, 0.5002303123, -0.1325321198, 0.0295932535, -0.1533932686, -0.2113336325, -0.1027417704, -0.254070133, -0.0137132099, 0.4512709379, -0.327829808, -0.0148409577, 0.0140140513, -0.2825435102, 0.3552676737, -0.3786018491, 0.589854598, -0.0837830678, 0.1461850405, 0.0838904902, 0.1358463615, 0.3902834058, 0.4980374277, -0.2678968906, -0.0898634717, 0.0580673069, 0.045243904, 0.4692693949, 0.231784448, -0.2059550434, -0.1364581287, -0.0980528519, -0.0807298124, -0.3447628915, -0.0482693352, 0.3455117941, 0.0466459692, -0.3898505569, -0.3483808041, 0.2334388196, 0.3130781949, -0.1007195413, 0.3356809318, 0.0064238678, -0.486387223, 0.3060376644, -0.1692826152, 0.9695222378, 0.0690706, 0.285823375, 0.2072304189, -0.2142317593, 0.0614584349, 0.2536990047, 0.0811275169, -0.1540393531, -0.2758868933, -0.1287536919, -0.3111577928, 0.0397874638, 0.2840384841, -0.3629772961, 0.3248742223, -0.4089421034, -0.1213364899, -0.1199789941, 0.0567534268, -0.1175731346, -0.167523846, -0.3534539938, 0.0193217788, 0.1732369959, 0.0113886055, -0.0091677234, -0.0419991352, -0.4983077049, -0.2119647264, -0.1296630055, 0.1295046955, -0.2722187638, 0.6612728834, -0.3607716262, -0.4087214768, -0.4596442878, 0.3534540534, 0.4468974471, -0.0406765901, 0.0203795508, -0.0941186994, -0.0040103034, 0.1347248107, 0.0148611916, -0.2953515649, 0.1934390068, 0.1635862738, -0.0587043241, -0.0635410473, -0.0726571977, -0.344212085, -0.0935276076, 0.0591623671, -0.002229813, -0.2073687613, -0.3623816073, 0.1780843735, 0.0290744882, -0.0666614845, 0.0257020388, 0.3393508196, -0.0507447198, 0.3158519566, -0.3541826308, -0.3773804009, -0.0739708692, 0.5312649012, 0.2242583632, -0.0562743954, 0.4126944542, -0.0774751082, -0.1203335822, -0.0022459684, 0.3146800995, 0.1522156596, 0.2107287943, 0.3843655288, -0.0186379366, -0.0036373283, -0.0969060957, 0.3600209057, 0.3548286259, 0.1859159023, -0.0842137411, -0.2710143328, -0.4922533929, 0.3682185709, 0.1036620811, 0.3379027843, 0.0438436866, -0.3522382677, 0.0508225486, -0.13911134, -0.1926676631, 0.0128735965, -0.2097493112, 0.0421813168, 0.2238101959, -0.0165762715, 0.185568884, 0.0448213555, 0.0728660151, -0.1860191524, -0.0052393223, -0.0883278027, 0.0931257531, 0.1873928607, 0.1110864431, 0.011904126, -0.0057463776, -0.4661684036, 0.0258928854, -0.2465316206, -0.0944529921, 0.5793568492, 0.0175721291, 0.1690879017, -0.0196273755, 0.2136964202, 0.0616991147, 0.076388903, -0.0025382738, 0.1215912998, 0.0036703965, 0.2305390984, -0.2393220812, -0.1587929428, -0.383443296, -0.023367539, -0.1116821393, 0.0098164128, 0.2292734534, -0.1504141092, -0.148425132, -0.0124738319, 0.3728411794, 0.3538385034, -0.1588053703, 0.1364240795, -0.071692124, 0.0865089223, 0.049260594, -0.2904600501, -0.1947800815, -0.2292597592, -0.2107807547, 0.1381398886, -0.0088701602, -0.0149319666, -0.40178895, -0.0100987721, 0.7563082576, -0.1419935971, 0.2795636058, 0.0461811014, 0.0902780518, 0.0505699068, 0.0326938517, 0.1408354044, 0.3030177355, 0.0640624911, -0.1083736941, 0.1676550806, 0.382330358, -0.1280302405, 0.2609057128, -0.1799259782, -0.0088662244, 0.1120496541, -0.1318458617, -0.0275410712, 0.0511898249, 0.1771026105, -0.5174019337, -0.1464338005, 0.0079960823, 0.3008131385, -0.1359506249, -0.1351796985, 0.0749864355, -0.2732970119, 0.0489558764, -0.1438184977, 0.1196196601, -0.2969891429, 0.1513874382, -0.0544955246, -0.0423918217, -0.0471481159, 0.2694111168, 0.3872373104, 0.0599572249, -0.2542599738, 0.0099733369, 0.211408183, -0.0544676557, 0.1391246915, 0.2713519335, 0.5723227859, 0.5754201412, 0.0224325359, 0.0843971968, 0.0427221023, -0.2839961648, -0.0437581353, 0.0650864244, -0.3334130943, -0.3743068576, 0.3329984546, 0.1922887415, 0.0142770708, 0.0668356419, 0.2160838544, 0.5071803927, -0.2229152322, 0.2355357558, -0.1977868676, -0.2077811658, 0.1037062034, 0.0138592664, -0.382393539, -0.2068972439, 0.3432179391, -0.0100479135, 0.1653653979, 0.1960692257, 0.0451611429, 0.0618035085, 0.194689244, 0.2713276744, 0.0085707614, -0.4885702431, -0.014843055, -0.41344437, -0.1725318581, 0.3790319264, 0.1948206276, -0.2688862681, 0.4094078541, 0.138822183, -0.0694581866, 0.1629868001, 0.1621205509, -0.1625233442, 0.0518667512, -0.4363812208, -0.1906349808, 0.2093261033, -0.033198189, -0.0653621182, -0.318926543, 0.1869714707, 0.1655370593, 0.0406783037, -0.0085666636, 0.0848990083, 0.1778646559, 0.4394783378, 0.2291010022, 0.198749736, 0.335150212, -0.1279804111, -0.0079936478, -0.0180615932, -0.2785050869, -0.0973234177, 0.0944774598, -0.1241476908, 0.4446906447, -0.5122810006, 0.0918896869, -0.1592814326, 0.0154879792, 0.0713982284, -0.3703897595, -0.1453998536, 0.0396946222, -0.0367692672, 0.0127520692, 0.1586247236, 0.2262332141, 0.0452178977, 0.5562227368, 0.0172791909, -0.4441854954, 0.367926687, 0.1131614894, -0.163241744, 0.0926661715, -0.0541831478, 0.1721481234, 0.3824462295, -0.5713043809, -0.1840984672, 0.4492426515, -0.2179424763, -0.3280407488, 0.0755850598, -0.1019625366, 0.0461993776, -0.0079679601, 0.3582437336, -0.1322503686, -0.3258388937, 0.0553664975, -0.1872068495 ]
https://github.com/huggingface/datasets/issues/2040
ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk
In the next release you'll be able to concatenate any kinds of dataset (either from memory or from disk). For now I'd suggest you to flatten the indices of the A and B datasets. This will remove the indices mapping and you will be able to concatenate them. You can flatten the indices with ```python dataset = dataset.flatten_indices() ```
Hi there, I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects): ```python concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']]) ``` Yielding the following error: ```python ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho... `load_from_disk(PATH_DATA_CLS_A)['train']` yields: ```python Dataset({ features: ['labels', 'text'], num_rows: 785 }) ``` `load_from_disk(PATH_DATA_CLS_B)['train']` yields: ```python Dataset({ features: ['labels', 'text'], num_rows: 3341 }) ```
59
ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk Hi there, I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects): ```python concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']]) ``` Yielding the following error: ```python ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho... `load_from_disk(PATH_DATA_CLS_A)['train']` yields: ```python Dataset({ features: ['labels', 'text'], num_rows: 785 }) ``` `load_from_disk(PATH_DATA_CLS_B)['train']` yields: ```python Dataset({ features: ['labels', 'text'], num_rows: 3341 }) ``` In the next release you'll be able to concatenate any kinds of dataset (either from memory or from disk). For now I'd suggest you to flatten the indices of the A and B datasets. This will remove the indices mapping and you will be able to concatenate them. You can flatten the indices with ```python dataset = dataset.flatten_indices() ```
[ -0.0903854072, -0.0803098753, -0.0217146855, 0.4296607971, 0.212290287, 0.266731441, 0.0407161713, 0.1795160323, -0.0718927681, 0.174695462, -0.0009915812, 0.1995583177, -0.0881772488, -0.0326923952, -0.3439052701, -0.0558384322, 0.193051815, 0.0187105779, -0.1041580811, 0.009861635, -0.4442354143, 0.2436520457, -0.1552205235, -0.0359294079, -0.3114730418, -0.0647421107, -0.3580112457, 0.3418429494, -0.1153114662, -0.1206122339, 0.5508387089, -0.0477534421, 0.0869862065, 0.5565169454, -0.0001167422, -0.0058711963, -0.0398120023, -0.1596840024, -0.2412984222, -0.4698686898, -0.2993324995, -0.2401567549, -0.0213557389, -0.2968689799, 0.2086618096, -0.1860077679, -0.1097183079, -0.7185211182, 0.2358154655, 0.2194241285, 0.1316162646, 0.16060552, 0.1590328217, -0.0537229441, 0.0060945791, 0.0604137592, 0.1772611141, 0.1795205027, -0.1299274117, -0.0358633287, 0.2642756104, -0.0068642423, -0.3868626952, -0.0542204529, 0.1337353587, 0.4457709491, 0.0942105502, -0.4561153948, -0.147725746, 0.075230673, 0.4200159013, -0.3262960315, -0.3272230029, -0.0913663208, 0.0971420035, -0.3858569562, 0.1183447912, 0.3693803847, 0.0639818236, 0.1274230331, -0.2128299773, -0.0889139399, -0.1895785779, 0.0065883398, -0.1150116995, 0.0218904112, -0.0210951753, 0.1646570563, 0.5099678636, -0.0325127542, 0.4155705869, -0.5363280773, 0.0476027839, 0.1897672564, -0.1991214454, 0.0359904617, -0.0857116878, -0.5460636616, 0.0706864521, -0.1810740083, 0.1162751094, -0.1160383373, -0.1602856666, 0.3259333968, 0.1867990494, 0.4233537614, 0.0459591262, 0.5026444197, 0.0342945606, -0.0802173167, 0.0644282997, 0.0524057969, 0.0719278157, -0.3668624163, 0.0957352147, 0.0153416432, 0.1143158823, 0.0008164134, -0.4245218635, 0.1277348846, -0.2855324149, -0.0848078653, 0.0569597036, -0.0795740485, 0.046636451, 0.3995069265, 0.3896422684, 0.3132681847, 0.0783835724, 0.2504094243, -0.1776386946, 0.1767178178, 0.1420000046, 0.1240313351, 0.1526340544, -0.0639882162, -0.081717059, 0.191967994, -0.0037848984, 0.0142075084, 0.0226850361, -0.3594812155, 0.1906329542, 0.1651128978, 0.107003741, 0.2670376897, 0.30681023, -0.3512370288, -0.1848160475, 0.3993567824, -0.4019360244, -0.16006805, -0.1483419836, 0.1177688092, -0.1106534824, 0.0929517373, -0.4305932522, 0.1036645696, 0.2892506421, 0.2214407474, -0.2550334632, -0.1051570326, -0.2563723326, -0.3879455924, 0.307394892, -0.0501086935, -0.4317591786, -0.008513662, 0.2673156261, 0.1099048704, 0.2351311445, 0.4662025869, -0.0782094747, 0.3340339065, -0.2627856135, -0.097930029, 0.1698984206, -0.3320310414, -0.1988213807, 0.1342201084, -0.1535139233, 0.0350325629, 0.1987939775, 0.0435762927, 0.0285199042, 0.249815464, 0.773989737, 0.3166611493, -0.0380968489, -0.119187139, -0.1531615257, -0.2666215003, 0.4661265612, -0.1315010786, -0.1416644752, 0.0988496169, -0.3725158572, -0.3975745142, 0.3472753465, -0.2832825184, 0.063629508, 0.4213289022, 0.3263687193, -0.1817165315, -0.1018905491, 0.0246234182, -0.2054288238, 0.1895036399, -0.0335666128, -0.101820536, -0.2266625166, -0.0587006286, -0.1673015952, 0.0187403113, -0.0538977347, 0.141298607, 0.0392032117, 0.0141677335, -0.0718825236, -0.1022610366, -0.2673951089, 0.5654741526, -0.0903329551, 0.0383025035, -0.2548470795, 0.4797312021, -0.1687236875, -0.0423460752, -0.0257890616, -0.0071853301, 0.2499664575, 0.0986099318, -0.0060407463, 0.4919346869, -0.0936736539, 0.011919626, 0.0779165924, 0.0159198903, 0.2271928936, 0.0178501662, 0.0769848451, 0.0056219157, 0.1291652769, -0.1870342046, -0.0795808136, 0.4245119691, -0.3667978346, 0.3369201124, 0.0314635858, 0.0869894475, 0.214922294, -0.0200443603, -0.0327521153, -0.2353001684, 0.0180128589, 0.0077938419, 0.0598475002, 0.1597390473, -0.3271049857, -0.0502552316, 0.1370069832, 0.0435920879, -0.0081595154, 0.0476351678, -0.0792992637, -0.0775589347, -0.1422454268, 0.2626616955, 0.5957342982, 0.2051410973, 0.0933412462, 0.0301321913, -0.1562048942, -0.0462852307, 0.3124066889, 0.1212168783, 0.1940271556, 0.2194418311, -0.0138916699, -0.022664994, -0.0724641979, 0.0575234033, -0.113396138, 0.1180531904, -0.5014938712, -0.0962725058, -0.3015749753, -0.102173306, -0.3828295171, -0.3004683256, -0.1973971725, -0.4838758707, -0.2615417242, 0.4586672783, -0.0590235852, 0.0382066295, -0.1270172596, 0.1683131158, 0.0720051005, 0.0265385695, 0.1558902264, -0.0216731206, -0.0583188683, 0.0444995277, -0.0778575912, -0.0622467697, 0.0591109209, -0.1217504218, 0.2177446038, -0.2410199344, 0.0385863893, -0.1500953883, -0.1827576011, 0.0993429646, 0.0969476029, 0.2907015979, -0.2663249969, -0.5855750442, 0.1232848912, 0.5215252042, -0.1266575158, 0.1730052978, 0.2626031935, -0.1829805821, -0.0798322931, -0.2237950712, -0.3680776358, -0.2371439785, -0.0798081532, -0.2592632174, 0.2472727597, 0.099031575, 0.2649498582, 0.0820237249, 0.3654112816, 0.1007736772, -0.1446046531, -0.2878363132, 0.3886061311, -0.008441384, -0.1790609509, 0.0065312139, -0.0050052931, 0.0862751231, 0.1664554775, -0.3701833487, -0.0095430939, -0.1804278642, 0.0963537619, -0.1326221228, 0.2878190279, 0.1116801724, 0.4846864045, -0.0532262474, -0.1380143613, -0.3144215047, 0.1558962464, 0.1922058463, 0.3816482127, -0.0430138074, 0.2722981572, 0.0688321814, 0.2513545752, 0.3474905193, 0.1060315967, 0.2202703357, 0.2680478692, 0.4671443403, -0.0679680184, -0.5600992441, -0.3960491121, -0.0207859166, -0.2079262286, -0.0920799673, -0.0302985795, 0.0046056472, -0.1437471658, 0.1522497386, -0.1051039919, -0.2345130146, 0.088960804, -0.2979527116, 0.1742400229, -0.1462115496, -0.1123139784, -0.3172487319, 0.2338034213, -0.1621078104, 0.0072305189, 0.1826258898, -0.1477535963, -0.3948552907, -0.3019554913, -0.4231871665, 0.4284074903, 0.0940115675, 0.360037446, 0.1029906943, -0.2116029859, -0.3140147924, 0.0644621477, 0.7793229222, 0.2428842336, -0.4793566465, 0.4762114584, 0.0486608334, -0.5282110572, -0.0892101973, 0.0776738822, 0.1703042984, -0.2709621489, 0.5176334977, -0.2395985872, 0.0078171398, -0.0545138344, 0.5147520304, -0.1700831205, 0.0628876165, -0.0855600238, -0.2372391671, -0.135561794, -0.242156893, -0.0071063493, 0.5239638686, -0.2932552993, -0.0072204745, -0.0405998044, -0.2700951695, 0.4007334113, -0.3850300908, 0.5835527182, -0.0071736081, 0.1568862796, 0.1716204286, 0.1505171657, 0.34743312, 0.4852840006, -0.2380061746, -0.1381066293, -0.0185342692, 0.122337997, 0.4762548208, 0.2324659228, -0.1201754883, -0.0048020151, -0.0342463404, 0.0178178605, -0.3697009087, -0.0657593012, 0.2507536113, 0.0280165542, -0.4654091597, -0.4313579798, 0.204262659, 0.3102702796, -0.124582395, 0.3593558371, -0.032342691, -0.4702593684, 0.3982973397, -0.1162721887, 0.9791228771, -0.0679159164, 0.1978092492, 0.126382038, -0.1889853626, 0.1685773879, 0.2858898044, 0.1136947125, -0.2019075751, -0.2907350361, -0.1255356222, -0.2693725228, 0.0491760671, 0.2388658673, -0.4425668716, 0.2669605911, -0.4332690537, -0.0990277976, -0.1775872558, 0.0657882318, -0.034166988, -0.2173335701, -0.3752556145, 0.0614643916, 0.0879902095, -0.1109584346, 0.0080182226, -0.0633542985, -0.3858076334, -0.1335167736, -0.1101691872, 0.097658433, -0.1991309226, 0.765714407, -0.3843823969, -0.3101260066, -0.3907932043, 0.2589003742, 0.4397600591, 0.0024203213, 0.0508853085, -0.1327612549, 0.0165403076, 0.0422839001, -0.0125444792, -0.2453635335, 0.1864327639, 0.1857315451, -0.120464623, 0.0721947849, 0.0246088617, -0.3490176797, -0.1142048463, 0.0029146913, -0.0094687222, -0.2997997999, -0.3640498221, 0.1790686101, 0.1427505314, -0.0608194247, 0.0668347329, 0.3294080198, -0.0538922139, 0.2757903039, -0.3172312379, -0.3427125812, -0.0965487808, 0.5646894574, 0.3627417982, -0.0236709714, 0.4135938585, -0.0395331644, -0.0701678321, -0.0161430947, 0.3499985039, 0.1511652023, 0.2037107497, 0.4430516064, 0.0101724779, -0.0109119061, -0.1815683097, 0.3628650308, 0.3714287579, 0.2277034074, -0.0420892835, -0.1646638364, -0.560528934, 0.3672232032, 0.1599866599, 0.3651221395, 0.0818184242, -0.312576741, -0.1021239981, -0.0895857215, -0.2543859184, 0.0288694333, -0.1790506244, 0.038192872, 0.1982562095, -0.0407773294, 0.1313471347, -0.052727446, 0.1377760768, -0.2134714723, 0.0124423029, -0.1549429595, 0.0620770864, 0.1388072968, 0.0865526721, -0.1200787202, -0.0210391358, -0.45468086, -0.0239887219, -0.2092134207, -0.0940845609, 0.6052911282, 0.0361987129, 0.1405509263, -0.0611777604, 0.1395594776, 0.0812326148, 0.0595501922, 0.0576571673, 0.0565802716, -0.0629661679, 0.2205437124, -0.2835117877, -0.1896282881, -0.3457254171, 0.0105383759, -0.1799467057, -0.0584227741, 0.2393827736, -0.1386642903, -0.2037062794, 0.1689530313, 0.3811871111, 0.3318368495, -0.1980983168, 0.1788567603, -0.0079737743, 0.1412327588, -0.0037086667, -0.2662275732, -0.0902472511, -0.1298975646, -0.226633817, 0.0693535134, -0.0230851639, 0.0241433829, -0.3969611228, 0.0425185412, 0.6044138074, -0.1729186028, 0.3787427545, 0.0949076787, 0.1064308807, -0.056394197, 0.0330810994, 0.1187558547, 0.4463939369, -0.0473617874, -0.1196501032, 0.0988506153, 0.3390355706, -0.1144946292, 0.2200874686, -0.2309978306, 0.0215807259, 0.2077860385, -0.1855533868, 0.0140396673, 0.1407551467, 0.2351654768, -0.5215610862, -0.2858961821, 0.0506992415, 0.4173049331, -0.1760130823, -0.1280166507, 0.1223989427, -0.1778519154, 0.0480350256, -0.1471844912, 0.1240583062, -0.3219694793, 0.1912059635, -0.0857973993, -0.0282377005, -0.0344605371, 0.244611159, 0.4152513742, 0.1087236851, -0.2196067721, -0.119391188, 0.2977905869, -0.0735245794, 0.1069014296, 0.3158179224, 0.5540586114, 0.5522789359, -0.0312054623, 0.130866617, 0.0689572766, -0.2048623264, 0.042975992, 0.0134647274, -0.217423141, -0.2798500359, 0.4076703489, 0.1971634477, -0.0308159869, 0.0530913062, 0.176933974, 0.5629743934, -0.1761537194, 0.1420215517, -0.0943725854, -0.1839528978, 0.1142072156, 0.0349502042, -0.3102146089, -0.2542953193, 0.3667085171, -0.0110501256, 0.1435457617, 0.2448734343, 0.0854233503, 0.0631789789, 0.1999258697, 0.3337059915, -0.0418818779, -0.5096415281, -0.0054249498, -0.4245630801, -0.1814158857, 0.2851060033, 0.2403236926, -0.1437006444, 0.3626503944, 0.1679268628, -0.0371574201, 0.0659627765, 0.0472931974, -0.1909380704, -0.0524985045, -0.370511353, -0.1487299651, 0.2106340379, -0.0604468547, -0.058744628, -0.2856876552, 0.271946162, 0.1523067057, 0.0535924286, 0.0091665126, 0.1640531868, 0.1470796168, 0.3854425251, 0.1948200017, 0.2095012963, 0.3070427179, -0.1152508482, 0.0316459313, 0.019572258, -0.3304351568, -0.1423638761, 0.1332144588, -0.0860143155, 0.5072708726, -0.5292459726, 0.0353103094, -0.1213727221, 0.1196243241, 0.0159201995, -0.4145380855, -0.2292201519, 0.1031462699, -0.0113652069, -0.049156677, 0.0773869678, 0.2998970151, 0.0154598914, 0.586202383, 0.0981465504, -0.4228113294, 0.4048632383, 0.1132646799, -0.1494788975, 0.0822543576, -0.0872517079, 0.2043187022, 0.3383572102, -0.5801484585, -0.2121741027, 0.423334986, -0.2602573037, -0.3111741841, 0.1098243892, -0.1028581411, 0.002929413, 0.0121318363, 0.4039595127, -0.0641846582, -0.4016014338, 0.023752667, -0.2212909907 ]
https://github.com/huggingface/datasets/issues/2040
ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk
Indeed this works. Not the most elegant solution, but it does the trick. Thanks a lot!
Hi there, I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects): ```python concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']]) ``` Yielding the following error: ```python ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho... `load_from_disk(PATH_DATA_CLS_A)['train']` yields: ```python Dataset({ features: ['labels', 'text'], num_rows: 785 }) ``` `load_from_disk(PATH_DATA_CLS_B)['train']` yields: ```python Dataset({ features: ['labels', 'text'], num_rows: 3341 }) ```
16
ValueError: datasets' indices [1] come from memory and datasets' indices [0] come from disk Hi there, I am trying to concat two datasets that I've previously saved to disk via `save_to_disk()` like so (note that both are saved as `DataDict`, `PATH_DATA_CLS_*` are `Path`-objects): ```python concatenate_datasets([load_from_disk(PATH_DATA_CLS_A)['train'], load_from_disk(PATH_DATA_CLS_B)['train']]) ``` Yielding the following error: ```python ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk. However datasets' indices [1] come from memory and datasets' indices [0] come from disk. ``` Been trying to solve this for quite some time now. Both `DataDict` have been created by reading in a `csv` via `load_dataset` and subsequently processed using the various `datasets` methods (i.e. filter, map, remove col, rename col). Can't figure out tho... `load_from_disk(PATH_DATA_CLS_A)['train']` yields: ```python Dataset({ features: ['labels', 'text'], num_rows: 785 }) ``` `load_from_disk(PATH_DATA_CLS_B)['train']` yields: ```python Dataset({ features: ['labels', 'text'], num_rows: 3341 }) ``` Indeed this works. Not the most elegant solution, but it does the trick. Thanks a lot!
[ -0.0483819954, -0.0796561092, -0.0216173735, 0.4603260458, 0.1872409582, 0.2654177845, 0.0407088846, 0.1193433106, -0.0479681939, 0.148567006, 0.0525872968, 0.1789599061, -0.0630661473, -0.0712665319, -0.298771292, -0.0633007959, 0.2559679151, -0.0143303107, -0.1243878826, -0.033502806, -0.4365563989, 0.2530573905, -0.1242121309, -0.0446647257, -0.3036778569, -0.0668844879, -0.4069907069, 0.3554329872, -0.0752543211, -0.1231011748, 0.5189288855, -0.0201263297, 0.0941632986, 0.5816604495, -0.0001213742, -0.0043540047, -0.1039499566, -0.175978303, -0.2422222495, -0.4407139122, -0.2366061062, -0.2508823574, -0.0364466757, -0.2931851149, 0.2539066672, -0.1341374964, -0.1175962687, -0.7231460214, 0.245788157, 0.1986136138, 0.0922246277, 0.1944198161, 0.0656492859, -0.0409407839, -0.0409294441, 0.1304789037, 0.1995794475, 0.1953564733, -0.1021022797, -0.0277386922, 0.2431663573, -0.0192547031, -0.3580236137, -0.0478650928, 0.1482318342, 0.4531691372, -0.005329249, -0.436386466, -0.136074841, 0.00798818, 0.4547099471, -0.3950956166, -0.3489309847, -0.1171686426, 0.083775118, -0.3639192581, 0.1145968363, 0.3478941917, 0.0078786779, 0.1255422384, -0.2352770269, -0.1032307073, -0.2160909027, -0.0336090028, -0.1303816289, -0.0233336855, -0.0100514088, 0.1940191984, 0.4782029688, 0.0310363211, 0.3325333297, -0.5216780901, 0.0565002076, 0.2090531737, -0.1852716058, 0.0392924137, -0.0924738869, -0.5081062317, 0.0348229744, -0.1193101257, 0.1242328584, -0.1469309628, -0.1655237973, 0.3356413841, 0.2434248775, 0.3892989755, 0.0107190041, 0.4672595263, 0.0521025769, -0.169067964, 0.0195899662, 0.0288329553, 0.0493384004, -0.3185646236, 0.1396733522, -0.0642719939, 0.0394781977, 0.00195362, -0.4597355723, 0.2338104993, -0.274694562, -0.1261484027, 0.1121939048, -0.0276269037, 0.0581163168, 0.3988304436, 0.4030519426, 0.321760267, 0.0658210367, 0.2085608989, -0.1650106013, 0.2475844175, 0.1256020218, 0.1402795166, 0.1536214203, -0.0288811643, -0.0635677129, 0.1218631193, 0.0053787571, -0.0764350444, -0.0092226313, -0.3630714417, 0.1362046152, 0.141398564, 0.1619118303, 0.3276950121, 0.2981005907, -0.3494323194, -0.1738563776, 0.4263887107, -0.3527107835, -0.1570559293, -0.1083385274, 0.0766615123, -0.1636047661, 0.0801628232, -0.4262652099, 0.0944420248, 0.3520647287, 0.2512076497, -0.2572675347, -0.0548670366, -0.2776347101, -0.4151388705, 0.3119908571, 0.0014738882, -0.4745104313, -0.0321236849, 0.2938992381, 0.0989333764, 0.1729959548, 0.4579011202, -0.0473459475, 0.4347836971, -0.2784129679, -0.0760163888, 0.2648219466, -0.3892309964, -0.1594605595, 0.149980247, -0.1660074592, 0.0081463279, 0.254524678, 0.0666964054, -0.0031890345, 0.2272637635, 0.7549239993, 0.3503752351, -0.0465827025, -0.0890979171, -0.1083977968, -0.2029784322, 0.435112685, -0.1151678488, -0.074092105, 0.0758217573, -0.3071585298, -0.4076964855, 0.3597154021, -0.2330857515, 0.0511179678, 0.4509955645, 0.3342948854, -0.1403178424, -0.1222750023, 0.0558319762, -0.1654946953, 0.1752087772, 0.0425064713, -0.1681345403, -0.213587299, -0.0231746621, -0.2340221256, 0.0914142653, -0.0404031426, 0.126100868, -0.0060417126, 0.0984410644, -0.0675809011, -0.0924198627, -0.2483519465, 0.636792779, -0.1156132817, 0.0506184436, -0.2480134964, 0.5165684819, -0.1867622882, -0.074984923, -0.0716307983, -0.0034895183, 0.2698659003, 0.1431924999, 0.0232765749, 0.5011240244, -0.0864259899, 0.0465388224, 0.1062586233, -0.0283293072, 0.2086669654, 0.064151451, 0.1096678153, -0.0449995175, 0.1842888296, -0.2220495641, -0.1296049356, 0.4378692806, -0.3333467245, 0.3640972972, 0.0791069493, 0.0575426072, 0.1631731391, 0.0447131917, 0.0018771534, -0.2020854801, 0.073731035, 0.1014027148, 0.1597452611, 0.1903137863, -0.3452680111, -0.0405625813, 0.1253633052, 0.0527347587, 0.0136522856, 0.0142114991, -0.0673972219, -0.0898625329, -0.1306389272, 0.3200007379, 0.637132585, 0.1329654604, 0.0911491513, -0.0353955217, -0.2003276646, -0.0530101769, 0.2857241333, 0.1153871417, 0.169890523, 0.1835748106, -0.0004647528, -0.0553118028, -0.0652939156, 0.0293047149, -0.1215852723, 0.0884268284, -0.5587562323, -0.0408842973, -0.2592019141, -0.0891951993, -0.4326561391, -0.3007503748, -0.1785827428, -0.5216219425, -0.2752326727, 0.5282120705, -0.0444642045, -0.0342006572, -0.171599865, 0.1994298995, 0.0160332285, 0.0158331208, 0.2233746797, -0.0164537709, -0.0683608353, -0.0021435115, -0.1374315023, -0.070989579, 0.0867680833, -0.1476976424, 0.2106373906, -0.2377521843, 0.0644205511, -0.1513040215, -0.18046996, 0.125428766, 0.0607747287, 0.2815025747, -0.2824744582, -0.627494216, 0.1269658059, 0.5603991747, -0.1214347929, 0.1552201658, 0.2652803361, -0.2035025358, -0.0397574194, -0.180406332, -0.3837979734, -0.217922166, -0.0579303987, -0.2351759076, 0.2247658223, 0.1102719381, 0.2297355384, 0.0725846961, 0.3910375834, 0.1411739737, -0.1505565941, -0.3173218668, 0.4028310776, -0.0106662558, -0.1393474042, 0.0115735801, 0.0248939339, 0.0791703686, 0.1679452509, -0.3714911044, -0.0036195987, -0.1924353689, 0.1260193437, -0.1266138107, 0.2927980125, 0.0760920644, 0.4290403724, -0.0072635412, -0.2153418809, -0.3689444065, 0.1965476125, 0.1868614852, 0.3983032703, -0.0778277963, 0.2956409156, 0.1176378429, 0.2697820961, 0.3012256324, 0.0938746929, 0.2848663032, 0.2522515655, 0.5076850057, -0.0031349515, -0.5560578108, -0.3561553657, -0.045551002, -0.2627848089, -0.109914422, -0.0035718048, 0.0282400697, -0.1696554273, 0.157315284, -0.1575003266, -0.2193346322, 0.0123280473, -0.2399481684, 0.1458229274, -0.1426561475, -0.0676002651, -0.3264600337, 0.2706411481, -0.1785923392, 0.0445350558, 0.2091870159, -0.1165119931, -0.4453097284, -0.3459740877, -0.4078502953, 0.3821878731, 0.0803224593, 0.3729106486, 0.0760280937, -0.2197803259, -0.2744778991, 0.035737142, 0.8388233781, 0.2913860977, -0.4263601899, 0.3884175122, 0.0263927151, -0.5281165242, -0.0850614905, 0.1199569702, 0.1918409467, -0.2607575953, 0.3966219723, -0.2330007553, 0.0217182748, -0.0491457544, 0.5023080707, -0.1987692714, 0.0102224974, -0.0815039352, -0.2123834789, -0.1326722801, -0.2198649645, 0.0007041748, 0.4571664035, -0.3032934666, 0.0313699394, 0.0264573991, -0.2583823204, 0.409430325, -0.3536215127, 0.6024320126, -0.0385146663, 0.1886683851, 0.1286869198, 0.130033657, 0.3836228848, 0.5007208586, -0.2303156406, -0.1833070368, 0.0078260377, 0.106321983, 0.4872784615, 0.2422617674, -0.152242884, -0.0383131467, -0.0520323031, -0.0673812181, -0.3485018015, -0.0687059388, 0.2765889168, 0.011287285, -0.457110256, -0.4127927423, 0.2228420973, 0.324077934, -0.1180538833, 0.3458715677, -0.039054811, -0.4746815264, 0.3770342469, -0.1490741819, 1.0115317106, -0.0302793849, 0.2235889137, 0.1392252594, -0.2224710584, 0.1609472036, 0.2818365097, 0.0586571954, -0.1898102164, -0.2558058202, -0.1155660525, -0.2795869112, 0.0443632975, 0.2588214576, -0.392896384, 0.3099095225, -0.445519954, -0.1018279418, -0.1641742587, 0.0484612957, -0.0464082994, -0.2220675945, -0.3521375358, 0.0185461808, 0.1050289497, -0.0609447621, -0.0374622457, -0.0209581424, -0.4371870756, -0.1583187133, -0.1735186875, 0.0985001624, -0.1609058678, 0.7278358936, -0.3450309038, -0.3661649525, -0.4455929101, 0.3316725492, 0.4819719195, 0.0272443853, 0.0398240127, -0.1074400619, -0.0060054893, 0.0863997564, -0.0281224493, -0.237688303, 0.1929191053, 0.1784896404, -0.0919382051, 0.0154875899, 0.0067067989, -0.3319259584, -0.1330370903, 0.0451708101, 0.0000290022, -0.2735178173, -0.3578086793, 0.1885160208, 0.1014320329, -0.118404597, 0.026528243, 0.3572260439, -0.0651483983, 0.2823159099, -0.3681320548, -0.3245561719, -0.0924429074, 0.542809844, 0.3373907208, -0.0709237605, 0.3994652927, -0.0069444622, -0.1154890284, 0.0111195249, 0.3332048953, 0.1729919463, 0.1851278841, 0.42676875, 0.0069294735, -0.0070109037, -0.1956736594, 0.3540212512, 0.3503940403, 0.195619911, 0.0313794948, -0.2186259925, -0.5530779362, 0.3396942914, 0.1706298888, 0.3276749253, 0.1049652696, -0.3088962436, -0.0684684142, -0.0234604683, -0.2058249563, 0.0000220431, -0.1870583892, 0.0434530303, 0.2184446156, 0.0287767854, 0.0832636505, -0.0101456018, 0.0987746418, -0.168989256, 0.0233574137, -0.0975202695, 0.0628543347, 0.1782513708, 0.0738015547, -0.0904069543, 0.0051431269, -0.4593447149, 0.0140077621, -0.2294313461, -0.1217435747, 0.6715191603, 0.0510699078, 0.1214959994, 0.0158860143, 0.2285825461, 0.0680389926, 0.0878005773, 0.048474811, 0.0963510871, 0.0100165121, 0.2222523242, -0.2736036479, -0.176454246, -0.387947917, -0.0089698695, -0.1200432256, -0.0471001193, 0.2031808645, -0.1601870656, -0.2005190998, 0.1108039841, 0.4110421836, 0.3873533607, -0.1979262382, 0.1900833547, -0.0304578468, 0.0874345526, 0.0168907866, -0.2827235162, -0.0983202308, -0.1849252731, -0.2757776678, 0.1254781038, 0.0075808936, 0.035776183, -0.3907299638, 0.012761252, 0.6847842932, -0.1335171759, 0.3405169249, 0.0607745461, 0.1156372651, -0.0105971238, -0.0250714943, 0.1619508415, 0.4223310649, -0.0091834627, -0.1420732886, 0.0973930284, 0.3798941076, -0.1379369199, 0.2299740762, -0.2404860258, 0.0408820026, 0.1885397881, -0.165081203, -0.0241936762, 0.0771467015, 0.183959648, -0.5160551667, -0.2480300963, 0.0020997862, 0.4248031676, -0.1385779828, -0.1343550086, 0.0907640904, -0.2246542275, 0.0027841933, -0.1104546338, 0.1289764792, -0.3996534944, 0.1721114516, -0.0819724053, -0.0096013201, -0.0884573013, 0.2355582267, 0.3815259039, 0.0721739605, -0.2652970552, -0.0507383682, 0.2551623881, -0.069452852, 0.1916284412, 0.2259948999, 0.5554206371, 0.5561280251, 0.0255505014, 0.1406384259, 0.0032019331, -0.2122267485, -0.0053523914, -0.0025253026, -0.293577522, -0.3012854159, 0.4094853401, 0.1750782579, 0.0024358185, 0.0674765334, 0.2661320567, 0.5477372408, -0.2297877371, 0.1564587355, -0.1596251428, -0.2005821317, 0.0917253718, 0.0024657398, -0.3389189839, -0.2537000179, 0.3616605699, -0.0187020879, 0.1398176998, 0.2566126585, 0.0528876074, 0.0547342114, 0.1891519278, 0.2871242166, -0.0130731333, -0.5009989142, -0.0356705412, -0.418515265, -0.1472510993, 0.3142973185, 0.1910641193, -0.1895873398, 0.3773262501, 0.1416848153, -0.0410858467, 0.1177175865, 0.1273607761, -0.1753465235, 0.0234479383, -0.3930685818, -0.1863919497, 0.2176951766, -0.0762480199, -0.0608634762, -0.236634627, 0.2287172377, 0.1713469923, 0.0196564794, 0.0119342059, 0.0836448818, 0.1588283628, 0.4142065942, 0.2572520375, 0.1691017747, 0.3638538122, -0.1003170982, 0.0047956873, 0.0438851044, -0.3505226374, -0.1583044529, 0.1300313473, -0.1268360168, 0.5008472204, -0.5447797179, 0.0813272372, -0.1266755909, 0.0849692374, 0.034407977, -0.4037501514, -0.1758655906, 0.0550662503, -0.0133664552, 0.0183156468, 0.1382131875, 0.2336796373, 0.0256984197, 0.6657634974, 0.0608548112, -0.4091668725, 0.4009989798, 0.1377356648, -0.1514993906, 0.0492458344, -0.0779660568, 0.1826996952, 0.3516893387, -0.6099097729, -0.2157330513, 0.4358259141, -0.2188644111, -0.299022913, 0.0933737606, -0.0947811529, -0.010687219, 0.0053799585, 0.4136139452, -0.1291243136, -0.3908880949, 0.0667115524, -0.2082783878 ]
https://github.com/huggingface/datasets/issues/2038
outdated dataset_infos.json might fail verifications
Hi ! Thanks for reporting. To update the dataset_infos.json you can run: ``` datasets-cli test ./datasets/doc2dial --all_configs --save_infos --ignore_verifications ```
The [doc2dial/dataset_infos.json](https://github.com/huggingface/datasets/blob/master/datasets/doc2dial/dataset_infos.json) is outdated. It would fail data_loader when verifying download checksum etc.. Could you please update this file or point me how to update this file? Thank you.
20
outdated dataset_infos.json might fail verifications The [doc2dial/dataset_infos.json](https://github.com/huggingface/datasets/blob/master/datasets/doc2dial/dataset_infos.json) is outdated. It would fail data_loader when verifying download checksum etc.. Could you please update this file or point me how to update this file? Thank you. Hi ! Thanks for reporting. To update the dataset_infos.json you can run: ``` datasets-cli test ./datasets/doc2dial --all_configs --save_infos --ignore_verifications ```
[ -0.1200924441, 0.1984145492, -0.1118750274, 0.1850013286, 0.1130968705, 0.2163037509, 0.103563495, 0.4946838915, 0.206972301, -0.0703192726, 0.0729326755, 0.0472202078, 0.1981548965, 0.2417431474, -0.0689257905, -0.0911236778, -0.0267711692, 0.2664071321, 0.0681160688, 0.0885863677, -0.0266232174, 0.1407281607, -0.1923580319, -0.1282286048, -0.2190593779, -0.040657796, 0.0387163758, 0.1655924767, -0.541421473, -0.4992533922, 0.4304622114, 0.4793900549, 0.0819712281, 0.3855614364, -0.0001081328, -0.037677031, 0.5466260314, -0.029058503, -0.4618392587, -0.0519540757, -0.3342089057, -0.1855139583, -0.1411470026, -0.0835440904, -0.0152582023, -0.3255072832, -0.1239994615, 0.0789588019, 0.213580206, 0.1726307273, 0.2469213009, 0.4211305082, 0.5330951214, -0.1848713756, 0.1094441488, -0.0424623415, 0.1855428219, 0.4435174167, 0.3252075613, 0.0316635482, 0.2927805483, 0.3482066393, -0.066881679, -0.1015634462, 0.1929741204, -0.1665300727, 0.1315116286, -0.1064364165, 0.1657461524, 0.1777222008, 0.6516279578, -0.3433513045, -0.3737467527, -0.0835305378, -0.1550709456, -0.1994562447, 0.3918648064, -0.2893849611, 0.2753103077, 0.2195624262, -0.1972353756, -0.3501672447, -0.0167719088, 0.0552799515, -0.0843023956, -0.1005980745, -0.1842758358, -0.1455240846, 0.145749867, -0.1432103366, -0.1317899078, -0.0046239793, -0.3207758963, 0.0597511977, -0.0772146285, -0.2997915745, -0.2040341049, 0.1048169956, 0.3750507534, 0.2149082869, 0.0941933095, 0.0497511923, -0.3412812352, 0.1715233624, 0.1495143473, 0.1182384491, 0.4304282665, -0.0208121538, 0.3718365133, 0.6826691628, 0.1144594476, -0.0479872823, -0.0042077247, -0.2481484264, 0.0243405607, 0.0238260925, 0.3393542171, -0.4905771017, -0.0651529357, 0.1865619868, -0.0159936156, -0.0557382442, 0.2356285155, 0.3187639713, -0.3612933755, 0.1625736803, 0.1662802845, -0.0296567306, 0.0446116664, -0.312276423, -0.0763918608, 0.0261263344, -0.0284056142, 0.2153081894, 0.3751753271, -0.3757908344, 0.4739308655, 0.0353367105, -0.1602199376, 0.0439418592, -0.0744505152, -0.1207981482, -0.2017624825, 0.2391945273, -0.0254513528, 0.0504771248, -0.0973944888, -0.0127741555, 0.0273164995, -0.1816864014, -0.3045564592, -0.3762093782, -0.2405499667, 0.2019523829, -0.0234629065, -0.1118202955, -0.2365117073, -0.1028555557, 0.1793439835, -0.4997899234, -0.0455498174, -0.0730096698, -0.1554111987, -0.0220390502, 0.1926499456, 0.3321072161, -0.0709211975, 0.0900687948, 0.0667342842, -0.3115294576, -0.2241199911, 0.2014637142, -0.0882988051, 0.1940478235, -0.2010298073, 0.0603735484, -0.0404517278, -0.6165742874, -0.3859307766, 0.1060369909, 0.2230717987, -0.0932437629, -0.1347037405, -0.2367649227, 0.2366413176, -0.2952269018, -0.1073619574, 0.0490002334, 0.1050882265, -0.0239576176, -0.3267243803, -0.2293677032, -0.0333115757, 0.1030366719, -0.042992007, 0.019501036, 0.0344423875, 0.4565273225, 0.1423132718, -0.0409456007, 0.0469592474, 0.2812900841, 0.4166463017, 0.0335949548, -0.0447672978, -0.0408997163, -0.5700746179, 0.2099356204, 0.1407438517, -0.1254226565, -0.125081405, -0.1638529748, -0.2609323263, -0.0597879663, -0.0657039061, -0.0178747401, 0.155588299, 0.1592802554, 0.3321811259, 0.1094366759, -0.1191439033, 0.2130118161, -0.5373793244, 0.1782783866, -0.2622479796, 0.1779333204, -0.0304579958, 0.1253202409, 0.3239290416, -0.0993105993, 0.0879663602, -0.1290884614, -0.0831441656, 0.5027294159, 0.0093870899, 0.1357945204, 0.2471982241, 0.3728533089, 0.054397352, -0.0852175057, 0.0808364078, -0.1652670354, -0.0419656187, 0.034308292, -0.2673318684, 0.0326813683, -0.0849873722, -0.0673847646, 0.2248893827, -0.0741191953, 0.3140825629, -0.0297688209, -0.0388830006, -0.2751832902, -0.1777121723, -0.0751730502, 0.3607102036, -0.1430137157, -0.0626579002, 0.1559806913, 0.4095155895, -0.0206290204, -0.090675056, 0.1984054297, 0.0815259069, -0.2291128784, -0.0816604942, 0.2641120553, 0.2345743924, 0.2276796848, -0.0140125714, 0.1894858629, 0.0711764172, -0.056192629, 0.167386353, -0.1691851467, -0.0097600315, 0.4036228359, 0.1256836057, 0.0108983209, -0.2650366426, 0.0454336517, 0.2030119449, 0.5164209008, -0.3069398701, -0.078019388, -0.2033134103, -0.0223646741, -0.0027796719, -0.3437182903, -0.3578514159, -0.1349754333, 0.0679992586, 0.4726889133, 0.1156924069, 0.1248634085, -0.0538580753, 0.2224535048, 0.0925403759, -0.1651448309, -0.1871397942, 0.0658755973, -0.0979111269, 0.0556773692, 0.3926018775, -0.0635673478, 0.3531547487, -0.5244258046, -0.1744994819, -0.5462660789, -0.4836136997, 0.2196638882, -0.205781132, 0.2577605844, 0.276102066, 0.3172797561, 0.1261565685, -0.0000821029, 0.1553587317, -0.2760592997, -0.3546033502, -0.2557946146, -0.0191663634, -0.1092160866, -0.1351923496, -0.3698327541, 0.1012538224, -0.2100866586, 0.1020704359, 0.0008241352, 0.0267245136, 0.28570503, 0.0814516991, 0.1861857176, -0.1705823541, 0.2064647675, -0.2983562648, -0.7436745167, 0.0950696394, -0.1993616819, -0.2288202792, 0.0111967847, 0.2518719733, 0.2966251671, -0.0640643388, -0.4512532651, -0.3920634985, -0.0903876573, 0.1593727916, 0.0165094361, -0.1554337144, 0.3954569697, -0.0997766331, -0.1225271598, -0.1927512884, -0.3537534773, 0.1185756177, -0.0744082481, 0.3598252535, -0.0353288203, 0.2783930004, -0.0069324886, 0.552736938, 0.0637155026, -0.3731844425, 0.2554654181, 0.0361723863, 0.5047951937, -0.1203778908, -0.1876141727, -0.0881337821, -0.0018535756, 0.1378800422, 0.1637526602, 0.0805525035, 0.1937584728, -0.2014654279, -0.3641481698, -0.4616740644, -0.1876390427, -0.1725010127, 0.2224399298, 0.3064267933, -0.036734391, 0.0382237658, -0.1044302508, -0.0385644846, 0.2388698608, 0.6212208271, 0.0579104088, 0.1147975177, -0.2876327336, 0.2032405585, -0.1122879237, 0.4098140001, -0.0514040217, 0.2883844376, -0.05887454, 0.0835442841, -0.087576732, -0.2908476293, 0.3274445832, -0.1836217344, 0.3218436837, 0.0458332151, -0.103843838, 0.0235120226, -0.1497756392, -0.1295836419, 0.195603475, 0.2656332552, 0.4955182374, -0.4432007968, -0.3598157763, 0.3211880028, 0.0673751011, -0.0559840687, -0.1024620086, -0.1567423493, -0.1922603995, -0.2763612568, -0.0230162255, -0.2217039019, 0.0376868844, -0.156988427, 0.0427966639, 0.134834677, -0.0168489944, 0.0792320594, 0.2699024379, 0.2004428953, 0.1592653692, 0.2687500715, 0.2128036171, 0.2716593444, 0.6806362867, 0.3026635945, -0.0993544161, -0.1245264485, -0.2011508197, -0.0846629366, 0.0673400909, 0.1649757326, -0.0475491732, 0.1596615613, 0.337010026, -0.1489346325, -0.0169884581, 0.0854198337, 0.4840284288, 0.0210707858, -0.2948286533, -0.2754928172, 0.2434902042, 0.1808883101, -0.0636728927, 0.1274699867, 0.1030130684, -0.1275836825, -0.2348643839, 0.159108147, 0.7583655715, 0.0867967159, -0.3215261102, 0.1678162366, -0.2078515887, 0.3344697952, -0.3076881766, -0.0956157371, -0.3612343073, -0.0629243702, 0.0182160176, 0.0518249013, 0.2038843483, -0.2713727057, -0.4220632911, 0.2160599828, -0.2913265824, 0.0490430146, -0.1281300634, 0.4355081022, -0.1518866867, -0.053397987, -0.41873312, 0.2262399942, 0.0377856791, 0.1134100929, -0.2614865601, -0.1508180648, 0.0885039717, -0.4387351871, -0.2300232649, -0.0084297219, 0.0856361464, -0.0768011138, 0.1855607182, 0.2683863938, 0.1197182611, 0.0316689275, 0.4012095332, 0.2393573821, -0.3454665542, 0.0814241916, -0.3129980862, -0.1795908958, -0.0088280207, -0.079256542, 0.3597058952, -0.2641720474, -0.3239217103, -0.0188617762, -0.0921397656, -0.3278954625, -0.0180031247, -0.2467570603, -0.2671565413, -0.2533731163, -0.0436264686, 0.0642355457, -0.1675369442, -0.2751357257, 0.2132403702, -0.0257319268, -0.0082354397, 0.0102761583, 0.2115835547, -0.1840821654, -0.0640984997, 0.5821511745, -0.2382148355, 0.0018265994, 0.44498384, 0.0454298109, -0.0873581916, -0.3670882583, -0.2623547912, -0.0204444043, -0.2235719413, 0.0712913796, 0.138102755, 0.2234357893, 0.0132097658, 0.2815966606, 0.2363384366, -0.0803333074, 0.2098324001, -0.5782488585, -0.3554053903, 0.2415504754, -0.2080075294, 0.1350493878, -0.1409769356, 0.1401206553, -0.0375345796, -0.0232219584, -0.3887764513, 0.2520699203, -0.1794509292, 0.1692467481, 0.3353219032, 0.0583297126, 0.2780819535, -0.1733774543, 0.0913909674, -0.1016334668, -0.3689283729, -0.1969298869, -0.1718813777, 0.1263723373, 0.0359877087, 0.0617916808, 0.1393479705, -0.0402235352, -0.2844003439, 0.0475090854, -0.0473840386, -0.0463266522, 0.1311319917, 0.1752664596, 0.0194598902, 0.265725702, 0.0524947159, -0.0032033217, 0.194853425, 0.1250246316, -0.0769357383, 0.1401856691, -0.2970584929, -0.1372710913, 0.1731644571, 0.2029389143, 0.177463159, -0.1687949002, 0.1919315308, -0.2113262117, 0.113848269, 0.2148862481, 0.3608189821, 0.5215636492, -0.1709475964, 0.0289683063, 0.1324632317, 0.2687727511, -0.1644561589, 0.0366512537, 0.2581137121, -0.053740792, -0.1529436111, 0.0027486156, 0.3482576311, -0.2134979367, 0.2003033608, 0.2779767215, 0.3267614841, -0.1841545254, 0.0532510094, 0.2237277478, -0.2742605507, -0.0029423793, 0.2484381944, 0.0194266047, 0.0884078741, 0.218654722, -0.1588411182, 0.0872126222, -0.1164112091, 0.3795849383, -0.0588847883, -0.2583578825, 0.2092461884, 0.4876079261, 0.2635887265, -0.0730530396, 0.0753369182, 0.4748770893, 0.0822156593, -0.0485137478, -0.530344367, 0.1542344689, -0.1189720705, -0.1307223588, -0.288433373, -0.3437518477, 0.0124428626, 0.0092095705, -0.0430590622, 0.025643982, 0.0688224211, -0.0043090642, -0.397152096, -0.5800520182, -0.1741504967, 0.2551024854, 0.1090595946, -0.1722018272, 0.2795853615, 0.2570458949, -0.1520546079, 0.3070887923, 0.7304962873, 0.420317322, 0.2456787825, 0.2398921549, -0.1011302918, -0.3405098319, 0.0049240389, 0.0588030517, 0.4122324884, 0.0230987538, -0.353412807, 0.2803241313, 0.1893059462, -0.1752359271, 0.0789262652, -0.2120947987, 0.0533218049, -0.1163321137, -0.0487633906, 0.1541924924, 0.1408228427, -0.3030185401, 0.166428566, -0.3497418165, -0.0581536442, 0.2189171165, 0.2301871777, 0.1888949573, 0.040314611, 0.1150403544, -0.0352213979, 0.5214559436, 0.3677413762, -0.1461050659, 0.0032995809, -0.2817926705, -0.6077662706, -0.0128705706, 0.0303863715, 0.1156279892, -0.0765310749, -0.0257929023, 0.1060032398, 0.1566842496, 0.310223341, -0.2241886407, -0.1152936146, -0.3192279935, -0.3017615676, 0.2308928668, -0.1066335812, -0.0629993156, 0.1245404482, -0.1716697663, 0.0954404473, -0.0398960859, 0.0247017909, -0.073237814, 0.3276504278, -0.2639652789, 0.071781829, 0.5029472113, 0.2613280714, 0.4752800465, -0.2293339074, -0.2174243331, -0.4161625206, -0.0664638653, -0.2767215371, 0.4328132272, 0.1306508929, 0.1294762939, -0.0277894083, -0.1076729149, -0.2423769683, 0.5078528523, 0.0326110907, -0.2268678844, -0.4183293581, -0.0554711036, 0.0693707168, -0.0651141256, -0.0651555583, 0.0281287376, 0.0025855461, 0.0613470115, -0.5129872561, -0.0875921845, 0.563013494, -0.0581566803, 0.0108212018, -0.0710181594, 0.2790162265, 0.1725579202, -0.353672117, -0.6980355978, 0.299361527, 0.2710725069, 0.0164054558, -0.2873924971, 0.3345270455, -0.083323136, 0.2824675739, -0.0970922038, 0.2147705257, 0.030527249, -0.2756707668, -0.1090891287, 0.0299154297 ]
https://github.com/huggingface/datasets/issues/2035
wiki40b/wikipedia for almost all languages cannot be downloaded
Dear @lhoestq for wikipedia dataset I also get the same error, I greatly appreciate if you could have a look into this dataset as well. Below please find the command to reproduce the error: ``` dataset = load_dataset("wikipedia", "20200501.bg") print(dataset) ``` Your library is my only chance to be able training the models at scale and I am grateful for your help.
Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ```
62
wiki40b/wikipedia for almost all languages cannot be downloaded Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ``` Dear @lhoestq for wikipedia dataset I also get the same error, I greatly appreciate if you could have a look into this dataset as well. Below please find the command to reproduce the error: ``` dataset = load_dataset("wikipedia", "20200501.bg") print(dataset) ``` Your library is my only chance to be able training the models at scale and I am grateful for your help.
[ -0.2544981837, -0.0779208615, -0.1537582725, 0.4308664799, 0.3997030258, 0.3504616916, 0.136850521, 0.5331581831, 0.1893272549, 0.0235845894, -0.1773036271, -0.094217591, 0.0944036171, 0.0111841382, -0.0297050904, -0.4591732919, -0.067290552, 0.0295369718, -0.1352711469, -0.1168934107, -0.25196293, 0.1256147176, -0.0791745484, -0.0490287393, -0.0387455262, -0.1828401238, -0.0958355442, -0.2073054761, -0.3507466018, -0.2408644557, 0.3545781672, 0.0192572363, 0.3101120293, 0.1529971212, -0.0001114368, -0.0509647354, 0.3131163716, -0.2357946187, -0.2936122119, -0.2888574302, -0.0720897317, -0.3261860311, -0.090439178, -0.4200314283, 0.1274462938, 0.0466824919, 0.0806712136, -0.1318009645, 0.0757576972, 0.2992254496, 0.246871233, -0.1426034123, 0.313434273, -0.1457378864, 0.3651961386, -0.3777083457, -0.0280337315, 0.3395861387, 0.2187207043, 0.0713429078, 0.2154794931, 0.2220430076, -0.2341405153, 0.0134994024, 0.0482246093, -0.2912240028, 0.2222055197, -0.6297015548, 0.5206417441, 0.5344285965, 0.8290325999, -0.128351599, -0.087467052, 0.0723920465, -0.0260592494, -0.0313744359, -0.0557401702, 0.4819796383, -0.1893264502, 0.097598277, 0.1261650175, -0.1254301518, -0.1567190886, 0.4228469431, -0.1241363436, 0.4435883164, -0.0527199246, 0.2112597078, -0.0216666665, -0.1027016938, -0.263641715, -0.0696594566, -0.0961604267, 0.2933218181, -0.2793984115, 0.0196356401, -0.1615019143, 0.0556470901, 0.3511352241, -0.1503834128, -0.2346212119, -0.0450782031, 0.0960106403, 0.1575745791, 0.1801501662, 0.1637832224, 0.0620483719, -0.200006932, 0.2782809436, 0.3079039752, -0.0842120126, -0.0761709362, -0.2100434005, -0.2230565995, -0.2947569489, 0.0944295079, 0.087529324, -0.2031710893, -0.1779467762, 0.0071132388, -0.1443607062, -0.0194389503, -0.2023950666, 0.3628211021, -0.1501427889, 0.4312386811, 0.1779012382, 0.3288222551, -0.1035724953, -0.2613103092, -0.0173523743, 0.3065484166, -0.1393197775, -0.1036605015, 0.2187827379, -0.1099155918, 0.2648516595, -0.0893723965, -0.1031378731, -0.176412195, -0.1536910385, -0.3695678115, -0.1791034937, 0.2304089367, 0.1619766802, 0.2839276791, 0.1476141959, -0.2447476387, -0.2305806726, 0.1207450777, -0.3596148491, -0.1681550443, -0.2051548213, 0.1944684386, 0.0610983595, -0.0546503477, -0.3160069287, 0.2876640558, 0.3030640185, -0.1423988193, 0.1180729046, -0.007545949, -0.0232540015, -0.2251898348, 0.17901133, 0.4908005297, -0.3999599814, 0.0918975845, -0.0238505788, -0.0337123312, 0.1897819489, 0.184297055, -0.1779525429, 0.2565417588, -0.0978841633, 0.0381601527, 0.2101314068, -0.3214420676, -0.5776353478, 0.1860539168, 0.1134097129, -0.1670033634, 0.0994796902, 0.0160004571, 0.2750303149, -0.0493873805, 0.0524543822, 0.3956748545, 0.1368378699, -0.1056451276, -0.3274504244, -0.5078238249, 0.3264817894, 0.1633177251, 0.4547145069, -0.1322700977, 0.2759855092, 0.2917213738, 0.3191739619, -0.1915477514, 0.1246789023, 0.2333603501, -0.0089485673, -0.0445755981, -0.0025625625, -0.331027329, -0.3097583055, 0.1477601677, 0.1029133499, 0.1654646397, -0.160955444, 0.0296834111, -0.3161895871, -0.0888075829, -0.1953116208, 0.1032688841, 0.1995638013, -0.1052767634, 0.1195931509, 0.485458672, 0.1265165806, -0.0994589552, -0.4156903923, -0.094852902, -0.1789344698, 0.0923319235, -0.2174283266, 0.204491958, 0.0336810127, 0.0258089956, 0.1796840727, 0.0730526447, -0.1607237756, -0.01106109, -0.0784520656, -0.1035443917, 0.1354628205, 0.1169634983, 0.133128196, -0.4173750281, 0.1920300275, 0.1084794179, 0.3297464848, -0.1357726753, 0.1178163737, 0.1222369522, 0.0399736427, 0.365534246, 0.1234309822, 0.1498314738, 0.4555993378, 0.0305261072, 0.1263546199, -0.0049747569, 0.3271192312, 0.1556601822, 0.0127490312, -0.1329595596, -0.0292780697, -0.113514401, 0.3166729808, -0.0845337212, 0.2671486735, 0.2927596271, -0.0765188709, -0.004859793, -0.0978269726, 0.1533986181, 0.0522079691, 0.0699053109, 0.1065890044, -0.0998439118, 0.3596494198, -0.1293925196, 0.2643093169, 0.1755420566, 0.1863330007, 0.2091357559, 0.1350802481, -0.0111759305, -0.1882828772, -0.1296796054, 0.0699938387, 0.3717178106, 0.0691838637, 0.1659454256, -0.0484344177, -0.1418601424, 0.0841909572, -0.0523920283, -0.2509427667, -0.216317296, -0.1256383061, -0.0857287124, 0.0915833339, -0.0001049591, -0.3266668022, -0.0721021518, 0.0621663556, -0.320350647, -0.1605682373, -0.2981230617, -0.3684501946, 0.07678736, 0.3871299028, 0.1112902015, 0.2952097356, -0.332629025, -0.1918788552, -0.0899456739, -0.2681111395, -0.0143139316, -0.1569703519, 0.241395101, -0.0241168831, 0.7152198553, -0.1799962074, -0.251421392, 0.1846488416, -0.0070198504, 0.0658745319, 0.2497715056, -0.1534785032, -0.0429238118, 0.0845356956, -0.485653311, -0.5155771375, -0.269656539, 0.01251911, 0.0485179015, 0.0878062025, 0.1686411053, 0.1924844235, 0.0680268332, 0.1211879849, 0.1809067428, -0.1900433153, -0.1518693417, 0.4496893287, -0.027413249, -0.429962486, 0.1881866902, 0.0109942462, 0.3149320185, 0.0079272576, -0.6572359204, 0.1441124827, -0.2763586938, 0.2499432266, -0.0219934508, 0.1834769845, 0.1143440828, -0.2136971354, 0.0479723625, 0.0449956879, 0.1059099883, -0.040621005, -0.2095252126, 0.2556219697, 0.0299457703, 0.2961856723, 0.1644208729, 0.6888409853, 0.0548557788, 0.1658405662, 0.4367816746, 0.238582328, 0.2310313582, -0.2314290255, -0.3645714223, 0.0605746992, -0.2394917756, -0.0310030244, 0.2670124769, -0.1623200327, -0.4674172997, -0.3477127552, -0.242684558, -0.3674673736, -0.2107711732, 0.1539981216, -0.0501819327, 0.0829402804, 0.0575963408, 0.1203984171, 0.0215733666, -0.2823501229, 0.2137895226, 0.5317092538, -0.2486019135, 0.1685897708, -0.2782669961, -0.3421223164, -0.4126343429, 0.2524553537, 0.0777069852, 0.4147611558, -0.0938024521, 0.3499188423, 0.2011797279, -0.0892689079, 0.290623337, -0.1702443659, 0.1230508387, 0.1972469091, 0.1049931571, -0.2152172923, -0.0624401085, -0.2943328619, -0.0166880656, 0.3054169118, -0.0444553681, -0.67096591, 0.0843288749, -0.0425857529, 0.5003301501, -0.0571771897, -0.0173500609, -0.1618566215, -0.5653649569, -0.4854041636, -0.0276872218, 0.1895756274, 0.4046096504, -0.1972092241, 0.2628990412, -0.1020784453, 0.2205625474, 0.0213168114, 0.007735298, 0.2132564485, 0.2327859551, 0.0974328518, -0.1967881769, -0.1378471553, 0.1503266245, 0.3620433807, -0.0635323003, -0.2343126237, -0.1212477162, -0.043003615, 0.0434833616, 0.1415463537, -0.1012908071, 0.0477071106, 0.148663044, -0.1379350722, 0.1658209413, -0.0128414435, 0.2519464791, -0.1063374355, -0.4962349236, -0.5676657557, 0.6620468497, 0.0233819876, 0.0701420903, 0.254171133, 0.1754047573, -0.1958613694, 0.3753731847, 0.1058032066, 1.1372190714, -0.2281342, 0.1104206815, -0.1039846987, 0.1094662026, 0.3614167869, -0.3578398228, 0.208406955, -0.3226415217, -0.1089071035, -0.0195195209, 0.0736746714, -0.0461387597, 0.0998933315, -0.3072269559, 0.2564418316, -0.3662328422, -0.0869540647, 0.1056495979, 0.2329856753, -0.4058894813, -0.0680368319, -0.321379602, 0.1196287572, -0.2146601677, 0.2546930909, -0.2110011131, -0.1254786104, -0.0614245832, -0.267270267, -0.5050504804, 0.0706437305, -0.2883505225, 0.3298688531, -0.4893511832, -0.1897747517, 0.3386204541, 0.444871217, 0.0414797552, 0.4031545818, -0.2879833579, 0.1116523072, -0.2638609707, -0.4236194491, 0.0944914222, 0.0112074362, 0.0871339664, -0.1816287935, -0.3709903061, 0.1669730544, -0.0575724319, 0.0528493412, -0.0959874913, 0.1043775827, 0.2016542852, -0.0458974242, -0.3565555513, -0.0222830959, -0.0943858027, -0.0894330069, 0.12416666, 0.082196869, -0.1119040549, 0.1409132481, 0.1852953881, -0.3349808455, 0.0217914302, 0.3491056859, 0.1834492981, 0.0239538625, 0.6245267987, 0.3155456185, -0.3965407908, -0.1898150891, 0.043914102, -0.2713771462, -0.4585742056, -0.0896050781, -0.0421894602, 0.3383437097, -0.4149286747, 0.3502539992, 0.1749070734, -0.2348316461, 0.2064643651, -0.7065883875, -0.1240220442, 0.2160940021, -0.0789091885, 0.0065748482, 0.0840709135, -0.3095990419, 0.12182834, 0.2352633327, -0.2610890269, 0.2092308402, -0.3233412504, 0.1007637307, 0.0994940326, 0.0633324161, 0.0223014951, 0.1991025209, 0.0650480464, 0.0691616461, -0.0496639088, -0.259909898, -0.0702273175, 0.1948126853, 0.2051140219, -0.0579005145, 0.2278751284, -0.5071968436, -0.168669939, 0.0822387412, -0.058475744, 0.1155843809, 0.00385974, 0.1811003536, 0.2013252676, 0.2885711789, -0.3500796556, 0.2458778471, -0.0869048014, 0.2614988089, 0.1408279687, 0.0759357885, 0.4579922855, 0.0213010833, -0.3352097571, -0.0335409306, -0.0300774481, 0.0866355598, 0.2558809519, -0.233358711, 0.3003470302, 0.1989204139, -0.1174950972, 0.5623862743, -0.149604708, 0.2065962255, 0.4130835235, 0.1872232705, -0.3698638082, 0.0016461554, 0.2932012975, -0.0966373757, -0.0709823519, 0.0759611875, 0.2589093447, -0.3223278522, 0.1137206629, -0.0657390058, 0.1647822857, -0.0565515049, 0.1922585368, 0.6700763106, 0.2270731479, 0.0499260761, -0.0694644302, 0.1699931473, 0.0953949168, 0.362806648, -0.2234566659, 0.1927638352, -0.0520039983, 0.0246350206, -0.1621612608, -0.3400565088, 0.2986113131, 0.1632018536, -0.0247744564, 0.0986765474, -0.1722577512, 0.2616478205, 0.1543592811, 0.0302231926, -0.2611557841, 0.1914433688, -0.1224778146, -0.012982592, -0.0442101061, -0.2680073977, 0.0015668734, 0.1556262821, -0.0046618585, -0.3565732241, 0.2555737197, 0.3037431538, -0.2440861613, -0.4411396384, 0.1348090768, 0.2124927342, 0.0311705116, -0.3002212942, 0.1577614397, 0.4137806594, 0.0780922771, -0.127055347, 0.2019160837, 0.4433460534, 0.4205476046, -0.3373263776, 0.0424415879, 0.0753407031, -0.0656806603, -0.0233783517, 0.2276099771, 0.4672248662, 0.2502681911, 0.397010237, 0.1184259653, -0.1415998638, -0.0319755115, 0.2360504717, -0.0639189631, -0.0566707402, -0.0451857708, -0.0590352714, 0.1407208294, -0.4205536246, -0.0135846008, -0.5078694224, 0.3400225937, 0.1610560566, 0.0025874143, 0.1775292307, -0.0925811306, 0.0479857624, -0.1569759548, 0.3962932825, 0.3195854127, 0.1991415173, -0.390832752, -0.0089955851, -0.4645191729, -0.0186358634, -0.2982346714, 0.1121007949, -0.0814330652, 0.1286559552, 0.0755083486, 0.213271901, 0.0366325527, 0.0450987294, 0.0668025613, 0.4949165881, -0.2315314412, -0.244703576, -0.1948165596, 0.2191625983, -0.1583238244, -0.3909314573, 0.0575937442, -0.1385609657, 0.0340732224, -0.3200197816, -0.0665005669, 0.0955727175, 0.0059596472, 0.3324286938, 0.1523778886, 0.5925301313, -0.1540946215, -0.2021767646, -0.2086717784, -0.0110701295, -0.1599347442, 0.3116777837, 0.1967296749, 0.0989065245, -0.1607939601, -0.1119709909, -0.029564105, 0.2984873056, -0.0448162258, 0.1949228793, -0.3669615984, -0.3863568604, 0.0579174161, 0.1138558537, 0.1190272644, 0.046926219, -0.1308562309, -0.0533182323, -0.3421496451, -0.3086864352, 0.3866544366, -0.3773032725, -0.5697822571, -0.0921551213, 0.0079287244, 0.047056552, 0.1902980953, -0.3660883904, 0.2775550783, 0.3897732198, 0.0513335578, -0.1509678662, 0.1664221436, 0.028648613, -0.0162154119, -0.0940433368, 0.1160701364, -0.0082842791, -0.3563149571, -0.2205844522, -0.3912584484 ]
https://github.com/huggingface/datasets/issues/2035
wiki40b/wikipedia for almost all languages cannot be downloaded
Hi @dorost1234, Try installing this library first, `pip install 'apache-beam[gcp]' --use-feature=2020-resolver` followed by loading dataset like this using beam runner. `dataset = load_dataset("wiki40b", "cs", beam_runner='DirectRunner')` I also read in error stack trace that: > Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. Worked perfectly fine after this (Ignore these warnings) ![image](https://user-images.githubusercontent.com/19718818/110908410-c7e2ce00-8334-11eb-8d10-7354359e9ec3.png)
Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ```
83
wiki40b/wikipedia for almost all languages cannot be downloaded Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ``` Hi @dorost1234, Try installing this library first, `pip install 'apache-beam[gcp]' --use-feature=2020-resolver` followed by loading dataset like this using beam runner. `dataset = load_dataset("wiki40b", "cs", beam_runner='DirectRunner')` I also read in error stack trace that: > Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. Worked perfectly fine after this (Ignore these warnings) ![image](https://user-images.githubusercontent.com/19718818/110908410-c7e2ce00-8334-11eb-8d10-7354359e9ec3.png)
[ -0.2544981837, -0.0779208615, -0.1537582725, 0.4308664799, 0.3997030258, 0.3504616916, 0.136850521, 0.5331581831, 0.1893272549, 0.0235845894, -0.1773036271, -0.094217591, 0.0944036171, 0.0111841382, -0.0297050904, -0.4591732919, -0.067290552, 0.0295369718, -0.1352711469, -0.1168934107, -0.25196293, 0.1256147176, -0.0791745484, -0.0490287393, -0.0387455262, -0.1828401238, -0.0958355442, -0.2073054761, -0.3507466018, -0.2408644557, 0.3545781672, 0.0192572363, 0.3101120293, 0.1529971212, -0.0001114368, -0.0509647354, 0.3131163716, -0.2357946187, -0.2936122119, -0.2888574302, -0.0720897317, -0.3261860311, -0.090439178, -0.4200314283, 0.1274462938, 0.0466824919, 0.0806712136, -0.1318009645, 0.0757576972, 0.2992254496, 0.246871233, -0.1426034123, 0.313434273, -0.1457378864, 0.3651961386, -0.3777083457, -0.0280337315, 0.3395861387, 0.2187207043, 0.0713429078, 0.2154794931, 0.2220430076, -0.2341405153, 0.0134994024, 0.0482246093, -0.2912240028, 0.2222055197, -0.6297015548, 0.5206417441, 0.5344285965, 0.8290325999, -0.128351599, -0.087467052, 0.0723920465, -0.0260592494, -0.0313744359, -0.0557401702, 0.4819796383, -0.1893264502, 0.097598277, 0.1261650175, -0.1254301518, -0.1567190886, 0.4228469431, -0.1241363436, 0.4435883164, -0.0527199246, 0.2112597078, -0.0216666665, -0.1027016938, -0.263641715, -0.0696594566, -0.0961604267, 0.2933218181, -0.2793984115, 0.0196356401, -0.1615019143, 0.0556470901, 0.3511352241, -0.1503834128, -0.2346212119, -0.0450782031, 0.0960106403, 0.1575745791, 0.1801501662, 0.1637832224, 0.0620483719, -0.200006932, 0.2782809436, 0.3079039752, -0.0842120126, -0.0761709362, -0.2100434005, -0.2230565995, -0.2947569489, 0.0944295079, 0.087529324, -0.2031710893, -0.1779467762, 0.0071132388, -0.1443607062, -0.0194389503, -0.2023950666, 0.3628211021, -0.1501427889, 0.4312386811, 0.1779012382, 0.3288222551, -0.1035724953, -0.2613103092, -0.0173523743, 0.3065484166, -0.1393197775, -0.1036605015, 0.2187827379, -0.1099155918, 0.2648516595, -0.0893723965, -0.1031378731, -0.176412195, -0.1536910385, -0.3695678115, -0.1791034937, 0.2304089367, 0.1619766802, 0.2839276791, 0.1476141959, -0.2447476387, -0.2305806726, 0.1207450777, -0.3596148491, -0.1681550443, -0.2051548213, 0.1944684386, 0.0610983595, -0.0546503477, -0.3160069287, 0.2876640558, 0.3030640185, -0.1423988193, 0.1180729046, -0.007545949, -0.0232540015, -0.2251898348, 0.17901133, 0.4908005297, -0.3999599814, 0.0918975845, -0.0238505788, -0.0337123312, 0.1897819489, 0.184297055, -0.1779525429, 0.2565417588, -0.0978841633, 0.0381601527, 0.2101314068, -0.3214420676, -0.5776353478, 0.1860539168, 0.1134097129, -0.1670033634, 0.0994796902, 0.0160004571, 0.2750303149, -0.0493873805, 0.0524543822, 0.3956748545, 0.1368378699, -0.1056451276, -0.3274504244, -0.5078238249, 0.3264817894, 0.1633177251, 0.4547145069, -0.1322700977, 0.2759855092, 0.2917213738, 0.3191739619, -0.1915477514, 0.1246789023, 0.2333603501, -0.0089485673, -0.0445755981, -0.0025625625, -0.331027329, -0.3097583055, 0.1477601677, 0.1029133499, 0.1654646397, -0.160955444, 0.0296834111, -0.3161895871, -0.0888075829, -0.1953116208, 0.1032688841, 0.1995638013, -0.1052767634, 0.1195931509, 0.485458672, 0.1265165806, -0.0994589552, -0.4156903923, -0.094852902, -0.1789344698, 0.0923319235, -0.2174283266, 0.204491958, 0.0336810127, 0.0258089956, 0.1796840727, 0.0730526447, -0.1607237756, -0.01106109, -0.0784520656, -0.1035443917, 0.1354628205, 0.1169634983, 0.133128196, -0.4173750281, 0.1920300275, 0.1084794179, 0.3297464848, -0.1357726753, 0.1178163737, 0.1222369522, 0.0399736427, 0.365534246, 0.1234309822, 0.1498314738, 0.4555993378, 0.0305261072, 0.1263546199, -0.0049747569, 0.3271192312, 0.1556601822, 0.0127490312, -0.1329595596, -0.0292780697, -0.113514401, 0.3166729808, -0.0845337212, 0.2671486735, 0.2927596271, -0.0765188709, -0.004859793, -0.0978269726, 0.1533986181, 0.0522079691, 0.0699053109, 0.1065890044, -0.0998439118, 0.3596494198, -0.1293925196, 0.2643093169, 0.1755420566, 0.1863330007, 0.2091357559, 0.1350802481, -0.0111759305, -0.1882828772, -0.1296796054, 0.0699938387, 0.3717178106, 0.0691838637, 0.1659454256, -0.0484344177, -0.1418601424, 0.0841909572, -0.0523920283, -0.2509427667, -0.216317296, -0.1256383061, -0.0857287124, 0.0915833339, -0.0001049591, -0.3266668022, -0.0721021518, 0.0621663556, -0.320350647, -0.1605682373, -0.2981230617, -0.3684501946, 0.07678736, 0.3871299028, 0.1112902015, 0.2952097356, -0.332629025, -0.1918788552, -0.0899456739, -0.2681111395, -0.0143139316, -0.1569703519, 0.241395101, -0.0241168831, 0.7152198553, -0.1799962074, -0.251421392, 0.1846488416, -0.0070198504, 0.0658745319, 0.2497715056, -0.1534785032, -0.0429238118, 0.0845356956, -0.485653311, -0.5155771375, -0.269656539, 0.01251911, 0.0485179015, 0.0878062025, 0.1686411053, 0.1924844235, 0.0680268332, 0.1211879849, 0.1809067428, -0.1900433153, -0.1518693417, 0.4496893287, -0.027413249, -0.429962486, 0.1881866902, 0.0109942462, 0.3149320185, 0.0079272576, -0.6572359204, 0.1441124827, -0.2763586938, 0.2499432266, -0.0219934508, 0.1834769845, 0.1143440828, -0.2136971354, 0.0479723625, 0.0449956879, 0.1059099883, -0.040621005, -0.2095252126, 0.2556219697, 0.0299457703, 0.2961856723, 0.1644208729, 0.6888409853, 0.0548557788, 0.1658405662, 0.4367816746, 0.238582328, 0.2310313582, -0.2314290255, -0.3645714223, 0.0605746992, -0.2394917756, -0.0310030244, 0.2670124769, -0.1623200327, -0.4674172997, -0.3477127552, -0.242684558, -0.3674673736, -0.2107711732, 0.1539981216, -0.0501819327, 0.0829402804, 0.0575963408, 0.1203984171, 0.0215733666, -0.2823501229, 0.2137895226, 0.5317092538, -0.2486019135, 0.1685897708, -0.2782669961, -0.3421223164, -0.4126343429, 0.2524553537, 0.0777069852, 0.4147611558, -0.0938024521, 0.3499188423, 0.2011797279, -0.0892689079, 0.290623337, -0.1702443659, 0.1230508387, 0.1972469091, 0.1049931571, -0.2152172923, -0.0624401085, -0.2943328619, -0.0166880656, 0.3054169118, -0.0444553681, -0.67096591, 0.0843288749, -0.0425857529, 0.5003301501, -0.0571771897, -0.0173500609, -0.1618566215, -0.5653649569, -0.4854041636, -0.0276872218, 0.1895756274, 0.4046096504, -0.1972092241, 0.2628990412, -0.1020784453, 0.2205625474, 0.0213168114, 0.007735298, 0.2132564485, 0.2327859551, 0.0974328518, -0.1967881769, -0.1378471553, 0.1503266245, 0.3620433807, -0.0635323003, -0.2343126237, -0.1212477162, -0.043003615, 0.0434833616, 0.1415463537, -0.1012908071, 0.0477071106, 0.148663044, -0.1379350722, 0.1658209413, -0.0128414435, 0.2519464791, -0.1063374355, -0.4962349236, -0.5676657557, 0.6620468497, 0.0233819876, 0.0701420903, 0.254171133, 0.1754047573, -0.1958613694, 0.3753731847, 0.1058032066, 1.1372190714, -0.2281342, 0.1104206815, -0.1039846987, 0.1094662026, 0.3614167869, -0.3578398228, 0.208406955, -0.3226415217, -0.1089071035, -0.0195195209, 0.0736746714, -0.0461387597, 0.0998933315, -0.3072269559, 0.2564418316, -0.3662328422, -0.0869540647, 0.1056495979, 0.2329856753, -0.4058894813, -0.0680368319, -0.321379602, 0.1196287572, -0.2146601677, 0.2546930909, -0.2110011131, -0.1254786104, -0.0614245832, -0.267270267, -0.5050504804, 0.0706437305, -0.2883505225, 0.3298688531, -0.4893511832, -0.1897747517, 0.3386204541, 0.444871217, 0.0414797552, 0.4031545818, -0.2879833579, 0.1116523072, -0.2638609707, -0.4236194491, 0.0944914222, 0.0112074362, 0.0871339664, -0.1816287935, -0.3709903061, 0.1669730544, -0.0575724319, 0.0528493412, -0.0959874913, 0.1043775827, 0.2016542852, -0.0458974242, -0.3565555513, -0.0222830959, -0.0943858027, -0.0894330069, 0.12416666, 0.082196869, -0.1119040549, 0.1409132481, 0.1852953881, -0.3349808455, 0.0217914302, 0.3491056859, 0.1834492981, 0.0239538625, 0.6245267987, 0.3155456185, -0.3965407908, -0.1898150891, 0.043914102, -0.2713771462, -0.4585742056, -0.0896050781, -0.0421894602, 0.3383437097, -0.4149286747, 0.3502539992, 0.1749070734, -0.2348316461, 0.2064643651, -0.7065883875, -0.1240220442, 0.2160940021, -0.0789091885, 0.0065748482, 0.0840709135, -0.3095990419, 0.12182834, 0.2352633327, -0.2610890269, 0.2092308402, -0.3233412504, 0.1007637307, 0.0994940326, 0.0633324161, 0.0223014951, 0.1991025209, 0.0650480464, 0.0691616461, -0.0496639088, -0.259909898, -0.0702273175, 0.1948126853, 0.2051140219, -0.0579005145, 0.2278751284, -0.5071968436, -0.168669939, 0.0822387412, -0.058475744, 0.1155843809, 0.00385974, 0.1811003536, 0.2013252676, 0.2885711789, -0.3500796556, 0.2458778471, -0.0869048014, 0.2614988089, 0.1408279687, 0.0759357885, 0.4579922855, 0.0213010833, -0.3352097571, -0.0335409306, -0.0300774481, 0.0866355598, 0.2558809519, -0.233358711, 0.3003470302, 0.1989204139, -0.1174950972, 0.5623862743, -0.149604708, 0.2065962255, 0.4130835235, 0.1872232705, -0.3698638082, 0.0016461554, 0.2932012975, -0.0966373757, -0.0709823519, 0.0759611875, 0.2589093447, -0.3223278522, 0.1137206629, -0.0657390058, 0.1647822857, -0.0565515049, 0.1922585368, 0.6700763106, 0.2270731479, 0.0499260761, -0.0694644302, 0.1699931473, 0.0953949168, 0.362806648, -0.2234566659, 0.1927638352, -0.0520039983, 0.0246350206, -0.1621612608, -0.3400565088, 0.2986113131, 0.1632018536, -0.0247744564, 0.0986765474, -0.1722577512, 0.2616478205, 0.1543592811, 0.0302231926, -0.2611557841, 0.1914433688, -0.1224778146, -0.012982592, -0.0442101061, -0.2680073977, 0.0015668734, 0.1556262821, -0.0046618585, -0.3565732241, 0.2555737197, 0.3037431538, -0.2440861613, -0.4411396384, 0.1348090768, 0.2124927342, 0.0311705116, -0.3002212942, 0.1577614397, 0.4137806594, 0.0780922771, -0.127055347, 0.2019160837, 0.4433460534, 0.4205476046, -0.3373263776, 0.0424415879, 0.0753407031, -0.0656806603, -0.0233783517, 0.2276099771, 0.4672248662, 0.2502681911, 0.397010237, 0.1184259653, -0.1415998638, -0.0319755115, 0.2360504717, -0.0639189631, -0.0566707402, -0.0451857708, -0.0590352714, 0.1407208294, -0.4205536246, -0.0135846008, -0.5078694224, 0.3400225937, 0.1610560566, 0.0025874143, 0.1775292307, -0.0925811306, 0.0479857624, -0.1569759548, 0.3962932825, 0.3195854127, 0.1991415173, -0.390832752, -0.0089955851, -0.4645191729, -0.0186358634, -0.2982346714, 0.1121007949, -0.0814330652, 0.1286559552, 0.0755083486, 0.213271901, 0.0366325527, 0.0450987294, 0.0668025613, 0.4949165881, -0.2315314412, -0.244703576, -0.1948165596, 0.2191625983, -0.1583238244, -0.3909314573, 0.0575937442, -0.1385609657, 0.0340732224, -0.3200197816, -0.0665005669, 0.0955727175, 0.0059596472, 0.3324286938, 0.1523778886, 0.5925301313, -0.1540946215, -0.2021767646, -0.2086717784, -0.0110701295, -0.1599347442, 0.3116777837, 0.1967296749, 0.0989065245, -0.1607939601, -0.1119709909, -0.029564105, 0.2984873056, -0.0448162258, 0.1949228793, -0.3669615984, -0.3863568604, 0.0579174161, 0.1138558537, 0.1190272644, 0.046926219, -0.1308562309, -0.0533182323, -0.3421496451, -0.3086864352, 0.3866544366, -0.3773032725, -0.5697822571, -0.0921551213, 0.0079287244, 0.047056552, 0.1902980953, -0.3660883904, 0.2775550783, 0.3897732198, 0.0513335578, -0.1509678662, 0.1664221436, 0.028648613, -0.0162154119, -0.0940433368, 0.1160701364, -0.0082842791, -0.3563149571, -0.2205844522, -0.3912584484 ]
https://github.com/huggingface/datasets/issues/2035
wiki40b/wikipedia for almost all languages cannot be downloaded
For wikipedia dataset, looks like the files it's looking for are no longer available. For `bg`, I checked [here](https://dumps.wikimedia.org/bgwiki/). For this I think `dataset_infos.json` for this dataset has to made again? You'll have to load this dataset also using beam runner.
Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ```
41
wiki40b/wikipedia for almost all languages cannot be downloaded Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ``` For wikipedia dataset, looks like the files it's looking for are no longer available. For `bg`, I checked [here](https://dumps.wikimedia.org/bgwiki/). For this I think `dataset_infos.json` for this dataset has to made again? You'll have to load this dataset also using beam runner.
[ -0.2544981837, -0.0779208615, -0.1537582725, 0.4308664799, 0.3997030258, 0.3504616916, 0.136850521, 0.5331581831, 0.1893272549, 0.0235845894, -0.1773036271, -0.094217591, 0.0944036171, 0.0111841382, -0.0297050904, -0.4591732919, -0.067290552, 0.0295369718, -0.1352711469, -0.1168934107, -0.25196293, 0.1256147176, -0.0791745484, -0.0490287393, -0.0387455262, -0.1828401238, -0.0958355442, -0.2073054761, -0.3507466018, -0.2408644557, 0.3545781672, 0.0192572363, 0.3101120293, 0.1529971212, -0.0001114368, -0.0509647354, 0.3131163716, -0.2357946187, -0.2936122119, -0.2888574302, -0.0720897317, -0.3261860311, -0.090439178, -0.4200314283, 0.1274462938, 0.0466824919, 0.0806712136, -0.1318009645, 0.0757576972, 0.2992254496, 0.246871233, -0.1426034123, 0.313434273, -0.1457378864, 0.3651961386, -0.3777083457, -0.0280337315, 0.3395861387, 0.2187207043, 0.0713429078, 0.2154794931, 0.2220430076, -0.2341405153, 0.0134994024, 0.0482246093, -0.2912240028, 0.2222055197, -0.6297015548, 0.5206417441, 0.5344285965, 0.8290325999, -0.128351599, -0.087467052, 0.0723920465, -0.0260592494, -0.0313744359, -0.0557401702, 0.4819796383, -0.1893264502, 0.097598277, 0.1261650175, -0.1254301518, -0.1567190886, 0.4228469431, -0.1241363436, 0.4435883164, -0.0527199246, 0.2112597078, -0.0216666665, -0.1027016938, -0.263641715, -0.0696594566, -0.0961604267, 0.2933218181, -0.2793984115, 0.0196356401, -0.1615019143, 0.0556470901, 0.3511352241, -0.1503834128, -0.2346212119, -0.0450782031, 0.0960106403, 0.1575745791, 0.1801501662, 0.1637832224, 0.0620483719, -0.200006932, 0.2782809436, 0.3079039752, -0.0842120126, -0.0761709362, -0.2100434005, -0.2230565995, -0.2947569489, 0.0944295079, 0.087529324, -0.2031710893, -0.1779467762, 0.0071132388, -0.1443607062, -0.0194389503, -0.2023950666, 0.3628211021, -0.1501427889, 0.4312386811, 0.1779012382, 0.3288222551, -0.1035724953, -0.2613103092, -0.0173523743, 0.3065484166, -0.1393197775, -0.1036605015, 0.2187827379, -0.1099155918, 0.2648516595, -0.0893723965, -0.1031378731, -0.176412195, -0.1536910385, -0.3695678115, -0.1791034937, 0.2304089367, 0.1619766802, 0.2839276791, 0.1476141959, -0.2447476387, -0.2305806726, 0.1207450777, -0.3596148491, -0.1681550443, -0.2051548213, 0.1944684386, 0.0610983595, -0.0546503477, -0.3160069287, 0.2876640558, 0.3030640185, -0.1423988193, 0.1180729046, -0.007545949, -0.0232540015, -0.2251898348, 0.17901133, 0.4908005297, -0.3999599814, 0.0918975845, -0.0238505788, -0.0337123312, 0.1897819489, 0.184297055, -0.1779525429, 0.2565417588, -0.0978841633, 0.0381601527, 0.2101314068, -0.3214420676, -0.5776353478, 0.1860539168, 0.1134097129, -0.1670033634, 0.0994796902, 0.0160004571, 0.2750303149, -0.0493873805, 0.0524543822, 0.3956748545, 0.1368378699, -0.1056451276, -0.3274504244, -0.5078238249, 0.3264817894, 0.1633177251, 0.4547145069, -0.1322700977, 0.2759855092, 0.2917213738, 0.3191739619, -0.1915477514, 0.1246789023, 0.2333603501, -0.0089485673, -0.0445755981, -0.0025625625, -0.331027329, -0.3097583055, 0.1477601677, 0.1029133499, 0.1654646397, -0.160955444, 0.0296834111, -0.3161895871, -0.0888075829, -0.1953116208, 0.1032688841, 0.1995638013, -0.1052767634, 0.1195931509, 0.485458672, 0.1265165806, -0.0994589552, -0.4156903923, -0.094852902, -0.1789344698, 0.0923319235, -0.2174283266, 0.204491958, 0.0336810127, 0.0258089956, 0.1796840727, 0.0730526447, -0.1607237756, -0.01106109, -0.0784520656, -0.1035443917, 0.1354628205, 0.1169634983, 0.133128196, -0.4173750281, 0.1920300275, 0.1084794179, 0.3297464848, -0.1357726753, 0.1178163737, 0.1222369522, 0.0399736427, 0.365534246, 0.1234309822, 0.1498314738, 0.4555993378, 0.0305261072, 0.1263546199, -0.0049747569, 0.3271192312, 0.1556601822, 0.0127490312, -0.1329595596, -0.0292780697, -0.113514401, 0.3166729808, -0.0845337212, 0.2671486735, 0.2927596271, -0.0765188709, -0.004859793, -0.0978269726, 0.1533986181, 0.0522079691, 0.0699053109, 0.1065890044, -0.0998439118, 0.3596494198, -0.1293925196, 0.2643093169, 0.1755420566, 0.1863330007, 0.2091357559, 0.1350802481, -0.0111759305, -0.1882828772, -0.1296796054, 0.0699938387, 0.3717178106, 0.0691838637, 0.1659454256, -0.0484344177, -0.1418601424, 0.0841909572, -0.0523920283, -0.2509427667, -0.216317296, -0.1256383061, -0.0857287124, 0.0915833339, -0.0001049591, -0.3266668022, -0.0721021518, 0.0621663556, -0.320350647, -0.1605682373, -0.2981230617, -0.3684501946, 0.07678736, 0.3871299028, 0.1112902015, 0.2952097356, -0.332629025, -0.1918788552, -0.0899456739, -0.2681111395, -0.0143139316, -0.1569703519, 0.241395101, -0.0241168831, 0.7152198553, -0.1799962074, -0.251421392, 0.1846488416, -0.0070198504, 0.0658745319, 0.2497715056, -0.1534785032, -0.0429238118, 0.0845356956, -0.485653311, -0.5155771375, -0.269656539, 0.01251911, 0.0485179015, 0.0878062025, 0.1686411053, 0.1924844235, 0.0680268332, 0.1211879849, 0.1809067428, -0.1900433153, -0.1518693417, 0.4496893287, -0.027413249, -0.429962486, 0.1881866902, 0.0109942462, 0.3149320185, 0.0079272576, -0.6572359204, 0.1441124827, -0.2763586938, 0.2499432266, -0.0219934508, 0.1834769845, 0.1143440828, -0.2136971354, 0.0479723625, 0.0449956879, 0.1059099883, -0.040621005, -0.2095252126, 0.2556219697, 0.0299457703, 0.2961856723, 0.1644208729, 0.6888409853, 0.0548557788, 0.1658405662, 0.4367816746, 0.238582328, 0.2310313582, -0.2314290255, -0.3645714223, 0.0605746992, -0.2394917756, -0.0310030244, 0.2670124769, -0.1623200327, -0.4674172997, -0.3477127552, -0.242684558, -0.3674673736, -0.2107711732, 0.1539981216, -0.0501819327, 0.0829402804, 0.0575963408, 0.1203984171, 0.0215733666, -0.2823501229, 0.2137895226, 0.5317092538, -0.2486019135, 0.1685897708, -0.2782669961, -0.3421223164, -0.4126343429, 0.2524553537, 0.0777069852, 0.4147611558, -0.0938024521, 0.3499188423, 0.2011797279, -0.0892689079, 0.290623337, -0.1702443659, 0.1230508387, 0.1972469091, 0.1049931571, -0.2152172923, -0.0624401085, -0.2943328619, -0.0166880656, 0.3054169118, -0.0444553681, -0.67096591, 0.0843288749, -0.0425857529, 0.5003301501, -0.0571771897, -0.0173500609, -0.1618566215, -0.5653649569, -0.4854041636, -0.0276872218, 0.1895756274, 0.4046096504, -0.1972092241, 0.2628990412, -0.1020784453, 0.2205625474, 0.0213168114, 0.007735298, 0.2132564485, 0.2327859551, 0.0974328518, -0.1967881769, -0.1378471553, 0.1503266245, 0.3620433807, -0.0635323003, -0.2343126237, -0.1212477162, -0.043003615, 0.0434833616, 0.1415463537, -0.1012908071, 0.0477071106, 0.148663044, -0.1379350722, 0.1658209413, -0.0128414435, 0.2519464791, -0.1063374355, -0.4962349236, -0.5676657557, 0.6620468497, 0.0233819876, 0.0701420903, 0.254171133, 0.1754047573, -0.1958613694, 0.3753731847, 0.1058032066, 1.1372190714, -0.2281342, 0.1104206815, -0.1039846987, 0.1094662026, 0.3614167869, -0.3578398228, 0.208406955, -0.3226415217, -0.1089071035, -0.0195195209, 0.0736746714, -0.0461387597, 0.0998933315, -0.3072269559, 0.2564418316, -0.3662328422, -0.0869540647, 0.1056495979, 0.2329856753, -0.4058894813, -0.0680368319, -0.321379602, 0.1196287572, -0.2146601677, 0.2546930909, -0.2110011131, -0.1254786104, -0.0614245832, -0.267270267, -0.5050504804, 0.0706437305, -0.2883505225, 0.3298688531, -0.4893511832, -0.1897747517, 0.3386204541, 0.444871217, 0.0414797552, 0.4031545818, -0.2879833579, 0.1116523072, -0.2638609707, -0.4236194491, 0.0944914222, 0.0112074362, 0.0871339664, -0.1816287935, -0.3709903061, 0.1669730544, -0.0575724319, 0.0528493412, -0.0959874913, 0.1043775827, 0.2016542852, -0.0458974242, -0.3565555513, -0.0222830959, -0.0943858027, -0.0894330069, 0.12416666, 0.082196869, -0.1119040549, 0.1409132481, 0.1852953881, -0.3349808455, 0.0217914302, 0.3491056859, 0.1834492981, 0.0239538625, 0.6245267987, 0.3155456185, -0.3965407908, -0.1898150891, 0.043914102, -0.2713771462, -0.4585742056, -0.0896050781, -0.0421894602, 0.3383437097, -0.4149286747, 0.3502539992, 0.1749070734, -0.2348316461, 0.2064643651, -0.7065883875, -0.1240220442, 0.2160940021, -0.0789091885, 0.0065748482, 0.0840709135, -0.3095990419, 0.12182834, 0.2352633327, -0.2610890269, 0.2092308402, -0.3233412504, 0.1007637307, 0.0994940326, 0.0633324161, 0.0223014951, 0.1991025209, 0.0650480464, 0.0691616461, -0.0496639088, -0.259909898, -0.0702273175, 0.1948126853, 0.2051140219, -0.0579005145, 0.2278751284, -0.5071968436, -0.168669939, 0.0822387412, -0.058475744, 0.1155843809, 0.00385974, 0.1811003536, 0.2013252676, 0.2885711789, -0.3500796556, 0.2458778471, -0.0869048014, 0.2614988089, 0.1408279687, 0.0759357885, 0.4579922855, 0.0213010833, -0.3352097571, -0.0335409306, -0.0300774481, 0.0866355598, 0.2558809519, -0.233358711, 0.3003470302, 0.1989204139, -0.1174950972, 0.5623862743, -0.149604708, 0.2065962255, 0.4130835235, 0.1872232705, -0.3698638082, 0.0016461554, 0.2932012975, -0.0966373757, -0.0709823519, 0.0759611875, 0.2589093447, -0.3223278522, 0.1137206629, -0.0657390058, 0.1647822857, -0.0565515049, 0.1922585368, 0.6700763106, 0.2270731479, 0.0499260761, -0.0694644302, 0.1699931473, 0.0953949168, 0.362806648, -0.2234566659, 0.1927638352, -0.0520039983, 0.0246350206, -0.1621612608, -0.3400565088, 0.2986113131, 0.1632018536, -0.0247744564, 0.0986765474, -0.1722577512, 0.2616478205, 0.1543592811, 0.0302231926, -0.2611557841, 0.1914433688, -0.1224778146, -0.012982592, -0.0442101061, -0.2680073977, 0.0015668734, 0.1556262821, -0.0046618585, -0.3565732241, 0.2555737197, 0.3037431538, -0.2440861613, -0.4411396384, 0.1348090768, 0.2124927342, 0.0311705116, -0.3002212942, 0.1577614397, 0.4137806594, 0.0780922771, -0.127055347, 0.2019160837, 0.4433460534, 0.4205476046, -0.3373263776, 0.0424415879, 0.0753407031, -0.0656806603, -0.0233783517, 0.2276099771, 0.4672248662, 0.2502681911, 0.397010237, 0.1184259653, -0.1415998638, -0.0319755115, 0.2360504717, -0.0639189631, -0.0566707402, -0.0451857708, -0.0590352714, 0.1407208294, -0.4205536246, -0.0135846008, -0.5078694224, 0.3400225937, 0.1610560566, 0.0025874143, 0.1775292307, -0.0925811306, 0.0479857624, -0.1569759548, 0.3962932825, 0.3195854127, 0.1991415173, -0.390832752, -0.0089955851, -0.4645191729, -0.0186358634, -0.2982346714, 0.1121007949, -0.0814330652, 0.1286559552, 0.0755083486, 0.213271901, 0.0366325527, 0.0450987294, 0.0668025613, 0.4949165881, -0.2315314412, -0.244703576, -0.1948165596, 0.2191625983, -0.1583238244, -0.3909314573, 0.0575937442, -0.1385609657, 0.0340732224, -0.3200197816, -0.0665005669, 0.0955727175, 0.0059596472, 0.3324286938, 0.1523778886, 0.5925301313, -0.1540946215, -0.2021767646, -0.2086717784, -0.0110701295, -0.1599347442, 0.3116777837, 0.1967296749, 0.0989065245, -0.1607939601, -0.1119709909, -0.029564105, 0.2984873056, -0.0448162258, 0.1949228793, -0.3669615984, -0.3863568604, 0.0579174161, 0.1138558537, 0.1190272644, 0.046926219, -0.1308562309, -0.0533182323, -0.3421496451, -0.3086864352, 0.3866544366, -0.3773032725, -0.5697822571, -0.0921551213, 0.0079287244, 0.047056552, 0.1902980953, -0.3660883904, 0.2775550783, 0.3897732198, 0.0513335578, -0.1509678662, 0.1664221436, 0.028648613, -0.0162154119, -0.0940433368, 0.1160701364, -0.0082842791, -0.3563149571, -0.2205844522, -0.3912584484 ]
https://github.com/huggingface/datasets/issues/2035
wiki40b/wikipedia for almost all languages cannot be downloaded
Hello @dorost1234, Indeed, Wikipedia datasets need a lot of preprocessing and this is done using Apache Beam. That is the reason why it is required that you install Apache Beam in order to preform this preprocessing. For some specific default parameters (English Wikipedia), Hugging Face has already preprocessed the dataset for you (and it is stored in the cloud). That is the reason why you do not get the error for English: the preprocessing is already done by HF and you just get the preprocessed dataset; Apache Beam is not required in that case.
Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ```
94
wiki40b/wikipedia for almost all languages cannot be downloaded Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ``` Hello @dorost1234, Indeed, Wikipedia datasets need a lot of preprocessing and this is done using Apache Beam. That is the reason why it is required that you install Apache Beam in order to preform this preprocessing. For some specific default parameters (English Wikipedia), Hugging Face has already preprocessed the dataset for you (and it is stored in the cloud). That is the reason why you do not get the error for English: the preprocessing is already done by HF and you just get the preprocessed dataset; Apache Beam is not required in that case.
[ -0.2544981837, -0.0779208615, -0.1537582725, 0.4308664799, 0.3997030258, 0.3504616916, 0.136850521, 0.5331581831, 0.1893272549, 0.0235845894, -0.1773036271, -0.094217591, 0.0944036171, 0.0111841382, -0.0297050904, -0.4591732919, -0.067290552, 0.0295369718, -0.1352711469, -0.1168934107, -0.25196293, 0.1256147176, -0.0791745484, -0.0490287393, -0.0387455262, -0.1828401238, -0.0958355442, -0.2073054761, -0.3507466018, -0.2408644557, 0.3545781672, 0.0192572363, 0.3101120293, 0.1529971212, -0.0001114368, -0.0509647354, 0.3131163716, -0.2357946187, -0.2936122119, -0.2888574302, -0.0720897317, -0.3261860311, -0.090439178, -0.4200314283, 0.1274462938, 0.0466824919, 0.0806712136, -0.1318009645, 0.0757576972, 0.2992254496, 0.246871233, -0.1426034123, 0.313434273, -0.1457378864, 0.3651961386, -0.3777083457, -0.0280337315, 0.3395861387, 0.2187207043, 0.0713429078, 0.2154794931, 0.2220430076, -0.2341405153, 0.0134994024, 0.0482246093, -0.2912240028, 0.2222055197, -0.6297015548, 0.5206417441, 0.5344285965, 0.8290325999, -0.128351599, -0.087467052, 0.0723920465, -0.0260592494, -0.0313744359, -0.0557401702, 0.4819796383, -0.1893264502, 0.097598277, 0.1261650175, -0.1254301518, -0.1567190886, 0.4228469431, -0.1241363436, 0.4435883164, -0.0527199246, 0.2112597078, -0.0216666665, -0.1027016938, -0.263641715, -0.0696594566, -0.0961604267, 0.2933218181, -0.2793984115, 0.0196356401, -0.1615019143, 0.0556470901, 0.3511352241, -0.1503834128, -0.2346212119, -0.0450782031, 0.0960106403, 0.1575745791, 0.1801501662, 0.1637832224, 0.0620483719, -0.200006932, 0.2782809436, 0.3079039752, -0.0842120126, -0.0761709362, -0.2100434005, -0.2230565995, -0.2947569489, 0.0944295079, 0.087529324, -0.2031710893, -0.1779467762, 0.0071132388, -0.1443607062, -0.0194389503, -0.2023950666, 0.3628211021, -0.1501427889, 0.4312386811, 0.1779012382, 0.3288222551, -0.1035724953, -0.2613103092, -0.0173523743, 0.3065484166, -0.1393197775, -0.1036605015, 0.2187827379, -0.1099155918, 0.2648516595, -0.0893723965, -0.1031378731, -0.176412195, -0.1536910385, -0.3695678115, -0.1791034937, 0.2304089367, 0.1619766802, 0.2839276791, 0.1476141959, -0.2447476387, -0.2305806726, 0.1207450777, -0.3596148491, -0.1681550443, -0.2051548213, 0.1944684386, 0.0610983595, -0.0546503477, -0.3160069287, 0.2876640558, 0.3030640185, -0.1423988193, 0.1180729046, -0.007545949, -0.0232540015, -0.2251898348, 0.17901133, 0.4908005297, -0.3999599814, 0.0918975845, -0.0238505788, -0.0337123312, 0.1897819489, 0.184297055, -0.1779525429, 0.2565417588, -0.0978841633, 0.0381601527, 0.2101314068, -0.3214420676, -0.5776353478, 0.1860539168, 0.1134097129, -0.1670033634, 0.0994796902, 0.0160004571, 0.2750303149, -0.0493873805, 0.0524543822, 0.3956748545, 0.1368378699, -0.1056451276, -0.3274504244, -0.5078238249, 0.3264817894, 0.1633177251, 0.4547145069, -0.1322700977, 0.2759855092, 0.2917213738, 0.3191739619, -0.1915477514, 0.1246789023, 0.2333603501, -0.0089485673, -0.0445755981, -0.0025625625, -0.331027329, -0.3097583055, 0.1477601677, 0.1029133499, 0.1654646397, -0.160955444, 0.0296834111, -0.3161895871, -0.0888075829, -0.1953116208, 0.1032688841, 0.1995638013, -0.1052767634, 0.1195931509, 0.485458672, 0.1265165806, -0.0994589552, -0.4156903923, -0.094852902, -0.1789344698, 0.0923319235, -0.2174283266, 0.204491958, 0.0336810127, 0.0258089956, 0.1796840727, 0.0730526447, -0.1607237756, -0.01106109, -0.0784520656, -0.1035443917, 0.1354628205, 0.1169634983, 0.133128196, -0.4173750281, 0.1920300275, 0.1084794179, 0.3297464848, -0.1357726753, 0.1178163737, 0.1222369522, 0.0399736427, 0.365534246, 0.1234309822, 0.1498314738, 0.4555993378, 0.0305261072, 0.1263546199, -0.0049747569, 0.3271192312, 0.1556601822, 0.0127490312, -0.1329595596, -0.0292780697, -0.113514401, 0.3166729808, -0.0845337212, 0.2671486735, 0.2927596271, -0.0765188709, -0.004859793, -0.0978269726, 0.1533986181, 0.0522079691, 0.0699053109, 0.1065890044, -0.0998439118, 0.3596494198, -0.1293925196, 0.2643093169, 0.1755420566, 0.1863330007, 0.2091357559, 0.1350802481, -0.0111759305, -0.1882828772, -0.1296796054, 0.0699938387, 0.3717178106, 0.0691838637, 0.1659454256, -0.0484344177, -0.1418601424, 0.0841909572, -0.0523920283, -0.2509427667, -0.216317296, -0.1256383061, -0.0857287124, 0.0915833339, -0.0001049591, -0.3266668022, -0.0721021518, 0.0621663556, -0.320350647, -0.1605682373, -0.2981230617, -0.3684501946, 0.07678736, 0.3871299028, 0.1112902015, 0.2952097356, -0.332629025, -0.1918788552, -0.0899456739, -0.2681111395, -0.0143139316, -0.1569703519, 0.241395101, -0.0241168831, 0.7152198553, -0.1799962074, -0.251421392, 0.1846488416, -0.0070198504, 0.0658745319, 0.2497715056, -0.1534785032, -0.0429238118, 0.0845356956, -0.485653311, -0.5155771375, -0.269656539, 0.01251911, 0.0485179015, 0.0878062025, 0.1686411053, 0.1924844235, 0.0680268332, 0.1211879849, 0.1809067428, -0.1900433153, -0.1518693417, 0.4496893287, -0.027413249, -0.429962486, 0.1881866902, 0.0109942462, 0.3149320185, 0.0079272576, -0.6572359204, 0.1441124827, -0.2763586938, 0.2499432266, -0.0219934508, 0.1834769845, 0.1143440828, -0.2136971354, 0.0479723625, 0.0449956879, 0.1059099883, -0.040621005, -0.2095252126, 0.2556219697, 0.0299457703, 0.2961856723, 0.1644208729, 0.6888409853, 0.0548557788, 0.1658405662, 0.4367816746, 0.238582328, 0.2310313582, -0.2314290255, -0.3645714223, 0.0605746992, -0.2394917756, -0.0310030244, 0.2670124769, -0.1623200327, -0.4674172997, -0.3477127552, -0.242684558, -0.3674673736, -0.2107711732, 0.1539981216, -0.0501819327, 0.0829402804, 0.0575963408, 0.1203984171, 0.0215733666, -0.2823501229, 0.2137895226, 0.5317092538, -0.2486019135, 0.1685897708, -0.2782669961, -0.3421223164, -0.4126343429, 0.2524553537, 0.0777069852, 0.4147611558, -0.0938024521, 0.3499188423, 0.2011797279, -0.0892689079, 0.290623337, -0.1702443659, 0.1230508387, 0.1972469091, 0.1049931571, -0.2152172923, -0.0624401085, -0.2943328619, -0.0166880656, 0.3054169118, -0.0444553681, -0.67096591, 0.0843288749, -0.0425857529, 0.5003301501, -0.0571771897, -0.0173500609, -0.1618566215, -0.5653649569, -0.4854041636, -0.0276872218, 0.1895756274, 0.4046096504, -0.1972092241, 0.2628990412, -0.1020784453, 0.2205625474, 0.0213168114, 0.007735298, 0.2132564485, 0.2327859551, 0.0974328518, -0.1967881769, -0.1378471553, 0.1503266245, 0.3620433807, -0.0635323003, -0.2343126237, -0.1212477162, -0.043003615, 0.0434833616, 0.1415463537, -0.1012908071, 0.0477071106, 0.148663044, -0.1379350722, 0.1658209413, -0.0128414435, 0.2519464791, -0.1063374355, -0.4962349236, -0.5676657557, 0.6620468497, 0.0233819876, 0.0701420903, 0.254171133, 0.1754047573, -0.1958613694, 0.3753731847, 0.1058032066, 1.1372190714, -0.2281342, 0.1104206815, -0.1039846987, 0.1094662026, 0.3614167869, -0.3578398228, 0.208406955, -0.3226415217, -0.1089071035, -0.0195195209, 0.0736746714, -0.0461387597, 0.0998933315, -0.3072269559, 0.2564418316, -0.3662328422, -0.0869540647, 0.1056495979, 0.2329856753, -0.4058894813, -0.0680368319, -0.321379602, 0.1196287572, -0.2146601677, 0.2546930909, -0.2110011131, -0.1254786104, -0.0614245832, -0.267270267, -0.5050504804, 0.0706437305, -0.2883505225, 0.3298688531, -0.4893511832, -0.1897747517, 0.3386204541, 0.444871217, 0.0414797552, 0.4031545818, -0.2879833579, 0.1116523072, -0.2638609707, -0.4236194491, 0.0944914222, 0.0112074362, 0.0871339664, -0.1816287935, -0.3709903061, 0.1669730544, -0.0575724319, 0.0528493412, -0.0959874913, 0.1043775827, 0.2016542852, -0.0458974242, -0.3565555513, -0.0222830959, -0.0943858027, -0.0894330069, 0.12416666, 0.082196869, -0.1119040549, 0.1409132481, 0.1852953881, -0.3349808455, 0.0217914302, 0.3491056859, 0.1834492981, 0.0239538625, 0.6245267987, 0.3155456185, -0.3965407908, -0.1898150891, 0.043914102, -0.2713771462, -0.4585742056, -0.0896050781, -0.0421894602, 0.3383437097, -0.4149286747, 0.3502539992, 0.1749070734, -0.2348316461, 0.2064643651, -0.7065883875, -0.1240220442, 0.2160940021, -0.0789091885, 0.0065748482, 0.0840709135, -0.3095990419, 0.12182834, 0.2352633327, -0.2610890269, 0.2092308402, -0.3233412504, 0.1007637307, 0.0994940326, 0.0633324161, 0.0223014951, 0.1991025209, 0.0650480464, 0.0691616461, -0.0496639088, -0.259909898, -0.0702273175, 0.1948126853, 0.2051140219, -0.0579005145, 0.2278751284, -0.5071968436, -0.168669939, 0.0822387412, -0.058475744, 0.1155843809, 0.00385974, 0.1811003536, 0.2013252676, 0.2885711789, -0.3500796556, 0.2458778471, -0.0869048014, 0.2614988089, 0.1408279687, 0.0759357885, 0.4579922855, 0.0213010833, -0.3352097571, -0.0335409306, -0.0300774481, 0.0866355598, 0.2558809519, -0.233358711, 0.3003470302, 0.1989204139, -0.1174950972, 0.5623862743, -0.149604708, 0.2065962255, 0.4130835235, 0.1872232705, -0.3698638082, 0.0016461554, 0.2932012975, -0.0966373757, -0.0709823519, 0.0759611875, 0.2589093447, -0.3223278522, 0.1137206629, -0.0657390058, 0.1647822857, -0.0565515049, 0.1922585368, 0.6700763106, 0.2270731479, 0.0499260761, -0.0694644302, 0.1699931473, 0.0953949168, 0.362806648, -0.2234566659, 0.1927638352, -0.0520039983, 0.0246350206, -0.1621612608, -0.3400565088, 0.2986113131, 0.1632018536, -0.0247744564, 0.0986765474, -0.1722577512, 0.2616478205, 0.1543592811, 0.0302231926, -0.2611557841, 0.1914433688, -0.1224778146, -0.012982592, -0.0442101061, -0.2680073977, 0.0015668734, 0.1556262821, -0.0046618585, -0.3565732241, 0.2555737197, 0.3037431538, -0.2440861613, -0.4411396384, 0.1348090768, 0.2124927342, 0.0311705116, -0.3002212942, 0.1577614397, 0.4137806594, 0.0780922771, -0.127055347, 0.2019160837, 0.4433460534, 0.4205476046, -0.3373263776, 0.0424415879, 0.0753407031, -0.0656806603, -0.0233783517, 0.2276099771, 0.4672248662, 0.2502681911, 0.397010237, 0.1184259653, -0.1415998638, -0.0319755115, 0.2360504717, -0.0639189631, -0.0566707402, -0.0451857708, -0.0590352714, 0.1407208294, -0.4205536246, -0.0135846008, -0.5078694224, 0.3400225937, 0.1610560566, 0.0025874143, 0.1775292307, -0.0925811306, 0.0479857624, -0.1569759548, 0.3962932825, 0.3195854127, 0.1991415173, -0.390832752, -0.0089955851, -0.4645191729, -0.0186358634, -0.2982346714, 0.1121007949, -0.0814330652, 0.1286559552, 0.0755083486, 0.213271901, 0.0366325527, 0.0450987294, 0.0668025613, 0.4949165881, -0.2315314412, -0.244703576, -0.1948165596, 0.2191625983, -0.1583238244, -0.3909314573, 0.0575937442, -0.1385609657, 0.0340732224, -0.3200197816, -0.0665005669, 0.0955727175, 0.0059596472, 0.3324286938, 0.1523778886, 0.5925301313, -0.1540946215, -0.2021767646, -0.2086717784, -0.0110701295, -0.1599347442, 0.3116777837, 0.1967296749, 0.0989065245, -0.1607939601, -0.1119709909, -0.029564105, 0.2984873056, -0.0448162258, 0.1949228793, -0.3669615984, -0.3863568604, 0.0579174161, 0.1138558537, 0.1190272644, 0.046926219, -0.1308562309, -0.0533182323, -0.3421496451, -0.3086864352, 0.3866544366, -0.3773032725, -0.5697822571, -0.0921551213, 0.0079287244, 0.047056552, 0.1902980953, -0.3660883904, 0.2775550783, 0.3897732198, 0.0513335578, -0.1509678662, 0.1664221436, 0.028648613, -0.0162154119, -0.0940433368, 0.1160701364, -0.0082842791, -0.3563149571, -0.2205844522, -0.3912584484 ]
https://github.com/huggingface/datasets/issues/2035
wiki40b/wikipedia for almost all languages cannot be downloaded
Hi I really appreciate if huggingface can kindly provide preprocessed datasets, processing these datasets require sufficiently large resources and I do not have unfortunately access to, and perhaps many others too. thanks On Fri, Mar 12, 2021 at 9:04 AM Albert Villanova del Moral < ***@***.***> wrote: > Hello @dorost1234 <https://github.com/dorost1234>, > > Indeed, Wikipedia datasets need a lot of preprocessing and this is done > using Apache Beam. That is the reason why it is required that you install > Apache Beam in order to preform this preprocessing. > > For some specific default parameters (English Wikipedia), Hugging Face has > already preprocessed the dataset for you (and it is stored in the cloud). > That is the reason why you do not get the error for English: the > preprocessing is already done by HF and you just get the preprocessed > dataset; Apache Beam is not required in that case. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2035#issuecomment-797310899>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMXACFQZAGMK4VGXRETTDHDI3ANCNFSM4ZA5R2UA> > . >
Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ```
185
wiki40b/wikipedia for almost all languages cannot be downloaded Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ``` Hi I really appreciate if huggingface can kindly provide preprocessed datasets, processing these datasets require sufficiently large resources and I do not have unfortunately access to, and perhaps many others too. thanks On Fri, Mar 12, 2021 at 9:04 AM Albert Villanova del Moral < ***@***.***> wrote: > Hello @dorost1234 <https://github.com/dorost1234>, > > Indeed, Wikipedia datasets need a lot of preprocessing and this is done > using Apache Beam. That is the reason why it is required that you install > Apache Beam in order to preform this preprocessing. > > For some specific default parameters (English Wikipedia), Hugging Face has > already preprocessed the dataset for you (and it is stored in the cloud). > That is the reason why you do not get the error for English: the > preprocessing is already done by HF and you just get the preprocessed > dataset; Apache Beam is not required in that case. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2035#issuecomment-797310899>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMXACFQZAGMK4VGXRETTDHDI3ANCNFSM4ZA5R2UA> > . >
[ -0.2544981837, -0.0779208615, -0.1537582725, 0.4308664799, 0.3997030258, 0.3504616916, 0.136850521, 0.5331581831, 0.1893272549, 0.0235845894, -0.1773036271, -0.094217591, 0.0944036171, 0.0111841382, -0.0297050904, -0.4591732919, -0.067290552, 0.0295369718, -0.1352711469, -0.1168934107, -0.25196293, 0.1256147176, -0.0791745484, -0.0490287393, -0.0387455262, -0.1828401238, -0.0958355442, -0.2073054761, -0.3507466018, -0.2408644557, 0.3545781672, 0.0192572363, 0.3101120293, 0.1529971212, -0.0001114368, -0.0509647354, 0.3131163716, -0.2357946187, -0.2936122119, -0.2888574302, -0.0720897317, -0.3261860311, -0.090439178, -0.4200314283, 0.1274462938, 0.0466824919, 0.0806712136, -0.1318009645, 0.0757576972, 0.2992254496, 0.246871233, -0.1426034123, 0.313434273, -0.1457378864, 0.3651961386, -0.3777083457, -0.0280337315, 0.3395861387, 0.2187207043, 0.0713429078, 0.2154794931, 0.2220430076, -0.2341405153, 0.0134994024, 0.0482246093, -0.2912240028, 0.2222055197, -0.6297015548, 0.5206417441, 0.5344285965, 0.8290325999, -0.128351599, -0.087467052, 0.0723920465, -0.0260592494, -0.0313744359, -0.0557401702, 0.4819796383, -0.1893264502, 0.097598277, 0.1261650175, -0.1254301518, -0.1567190886, 0.4228469431, -0.1241363436, 0.4435883164, -0.0527199246, 0.2112597078, -0.0216666665, -0.1027016938, -0.263641715, -0.0696594566, -0.0961604267, 0.2933218181, -0.2793984115, 0.0196356401, -0.1615019143, 0.0556470901, 0.3511352241, -0.1503834128, -0.2346212119, -0.0450782031, 0.0960106403, 0.1575745791, 0.1801501662, 0.1637832224, 0.0620483719, -0.200006932, 0.2782809436, 0.3079039752, -0.0842120126, -0.0761709362, -0.2100434005, -0.2230565995, -0.2947569489, 0.0944295079, 0.087529324, -0.2031710893, -0.1779467762, 0.0071132388, -0.1443607062, -0.0194389503, -0.2023950666, 0.3628211021, -0.1501427889, 0.4312386811, 0.1779012382, 0.3288222551, -0.1035724953, -0.2613103092, -0.0173523743, 0.3065484166, -0.1393197775, -0.1036605015, 0.2187827379, -0.1099155918, 0.2648516595, -0.0893723965, -0.1031378731, -0.176412195, -0.1536910385, -0.3695678115, -0.1791034937, 0.2304089367, 0.1619766802, 0.2839276791, 0.1476141959, -0.2447476387, -0.2305806726, 0.1207450777, -0.3596148491, -0.1681550443, -0.2051548213, 0.1944684386, 0.0610983595, -0.0546503477, -0.3160069287, 0.2876640558, 0.3030640185, -0.1423988193, 0.1180729046, -0.007545949, -0.0232540015, -0.2251898348, 0.17901133, 0.4908005297, -0.3999599814, 0.0918975845, -0.0238505788, -0.0337123312, 0.1897819489, 0.184297055, -0.1779525429, 0.2565417588, -0.0978841633, 0.0381601527, 0.2101314068, -0.3214420676, -0.5776353478, 0.1860539168, 0.1134097129, -0.1670033634, 0.0994796902, 0.0160004571, 0.2750303149, -0.0493873805, 0.0524543822, 0.3956748545, 0.1368378699, -0.1056451276, -0.3274504244, -0.5078238249, 0.3264817894, 0.1633177251, 0.4547145069, -0.1322700977, 0.2759855092, 0.2917213738, 0.3191739619, -0.1915477514, 0.1246789023, 0.2333603501, -0.0089485673, -0.0445755981, -0.0025625625, -0.331027329, -0.3097583055, 0.1477601677, 0.1029133499, 0.1654646397, -0.160955444, 0.0296834111, -0.3161895871, -0.0888075829, -0.1953116208, 0.1032688841, 0.1995638013, -0.1052767634, 0.1195931509, 0.485458672, 0.1265165806, -0.0994589552, -0.4156903923, -0.094852902, -0.1789344698, 0.0923319235, -0.2174283266, 0.204491958, 0.0336810127, 0.0258089956, 0.1796840727, 0.0730526447, -0.1607237756, -0.01106109, -0.0784520656, -0.1035443917, 0.1354628205, 0.1169634983, 0.133128196, -0.4173750281, 0.1920300275, 0.1084794179, 0.3297464848, -0.1357726753, 0.1178163737, 0.1222369522, 0.0399736427, 0.365534246, 0.1234309822, 0.1498314738, 0.4555993378, 0.0305261072, 0.1263546199, -0.0049747569, 0.3271192312, 0.1556601822, 0.0127490312, -0.1329595596, -0.0292780697, -0.113514401, 0.3166729808, -0.0845337212, 0.2671486735, 0.2927596271, -0.0765188709, -0.004859793, -0.0978269726, 0.1533986181, 0.0522079691, 0.0699053109, 0.1065890044, -0.0998439118, 0.3596494198, -0.1293925196, 0.2643093169, 0.1755420566, 0.1863330007, 0.2091357559, 0.1350802481, -0.0111759305, -0.1882828772, -0.1296796054, 0.0699938387, 0.3717178106, 0.0691838637, 0.1659454256, -0.0484344177, -0.1418601424, 0.0841909572, -0.0523920283, -0.2509427667, -0.216317296, -0.1256383061, -0.0857287124, 0.0915833339, -0.0001049591, -0.3266668022, -0.0721021518, 0.0621663556, -0.320350647, -0.1605682373, -0.2981230617, -0.3684501946, 0.07678736, 0.3871299028, 0.1112902015, 0.2952097356, -0.332629025, -0.1918788552, -0.0899456739, -0.2681111395, -0.0143139316, -0.1569703519, 0.241395101, -0.0241168831, 0.7152198553, -0.1799962074, -0.251421392, 0.1846488416, -0.0070198504, 0.0658745319, 0.2497715056, -0.1534785032, -0.0429238118, 0.0845356956, -0.485653311, -0.5155771375, -0.269656539, 0.01251911, 0.0485179015, 0.0878062025, 0.1686411053, 0.1924844235, 0.0680268332, 0.1211879849, 0.1809067428, -0.1900433153, -0.1518693417, 0.4496893287, -0.027413249, -0.429962486, 0.1881866902, 0.0109942462, 0.3149320185, 0.0079272576, -0.6572359204, 0.1441124827, -0.2763586938, 0.2499432266, -0.0219934508, 0.1834769845, 0.1143440828, -0.2136971354, 0.0479723625, 0.0449956879, 0.1059099883, -0.040621005, -0.2095252126, 0.2556219697, 0.0299457703, 0.2961856723, 0.1644208729, 0.6888409853, 0.0548557788, 0.1658405662, 0.4367816746, 0.238582328, 0.2310313582, -0.2314290255, -0.3645714223, 0.0605746992, -0.2394917756, -0.0310030244, 0.2670124769, -0.1623200327, -0.4674172997, -0.3477127552, -0.242684558, -0.3674673736, -0.2107711732, 0.1539981216, -0.0501819327, 0.0829402804, 0.0575963408, 0.1203984171, 0.0215733666, -0.2823501229, 0.2137895226, 0.5317092538, -0.2486019135, 0.1685897708, -0.2782669961, -0.3421223164, -0.4126343429, 0.2524553537, 0.0777069852, 0.4147611558, -0.0938024521, 0.3499188423, 0.2011797279, -0.0892689079, 0.290623337, -0.1702443659, 0.1230508387, 0.1972469091, 0.1049931571, -0.2152172923, -0.0624401085, -0.2943328619, -0.0166880656, 0.3054169118, -0.0444553681, -0.67096591, 0.0843288749, -0.0425857529, 0.5003301501, -0.0571771897, -0.0173500609, -0.1618566215, -0.5653649569, -0.4854041636, -0.0276872218, 0.1895756274, 0.4046096504, -0.1972092241, 0.2628990412, -0.1020784453, 0.2205625474, 0.0213168114, 0.007735298, 0.2132564485, 0.2327859551, 0.0974328518, -0.1967881769, -0.1378471553, 0.1503266245, 0.3620433807, -0.0635323003, -0.2343126237, -0.1212477162, -0.043003615, 0.0434833616, 0.1415463537, -0.1012908071, 0.0477071106, 0.148663044, -0.1379350722, 0.1658209413, -0.0128414435, 0.2519464791, -0.1063374355, -0.4962349236, -0.5676657557, 0.6620468497, 0.0233819876, 0.0701420903, 0.254171133, 0.1754047573, -0.1958613694, 0.3753731847, 0.1058032066, 1.1372190714, -0.2281342, 0.1104206815, -0.1039846987, 0.1094662026, 0.3614167869, -0.3578398228, 0.208406955, -0.3226415217, -0.1089071035, -0.0195195209, 0.0736746714, -0.0461387597, 0.0998933315, -0.3072269559, 0.2564418316, -0.3662328422, -0.0869540647, 0.1056495979, 0.2329856753, -0.4058894813, -0.0680368319, -0.321379602, 0.1196287572, -0.2146601677, 0.2546930909, -0.2110011131, -0.1254786104, -0.0614245832, -0.267270267, -0.5050504804, 0.0706437305, -0.2883505225, 0.3298688531, -0.4893511832, -0.1897747517, 0.3386204541, 0.444871217, 0.0414797552, 0.4031545818, -0.2879833579, 0.1116523072, -0.2638609707, -0.4236194491, 0.0944914222, 0.0112074362, 0.0871339664, -0.1816287935, -0.3709903061, 0.1669730544, -0.0575724319, 0.0528493412, -0.0959874913, 0.1043775827, 0.2016542852, -0.0458974242, -0.3565555513, -0.0222830959, -0.0943858027, -0.0894330069, 0.12416666, 0.082196869, -0.1119040549, 0.1409132481, 0.1852953881, -0.3349808455, 0.0217914302, 0.3491056859, 0.1834492981, 0.0239538625, 0.6245267987, 0.3155456185, -0.3965407908, -0.1898150891, 0.043914102, -0.2713771462, -0.4585742056, -0.0896050781, -0.0421894602, 0.3383437097, -0.4149286747, 0.3502539992, 0.1749070734, -0.2348316461, 0.2064643651, -0.7065883875, -0.1240220442, 0.2160940021, -0.0789091885, 0.0065748482, 0.0840709135, -0.3095990419, 0.12182834, 0.2352633327, -0.2610890269, 0.2092308402, -0.3233412504, 0.1007637307, 0.0994940326, 0.0633324161, 0.0223014951, 0.1991025209, 0.0650480464, 0.0691616461, -0.0496639088, -0.259909898, -0.0702273175, 0.1948126853, 0.2051140219, -0.0579005145, 0.2278751284, -0.5071968436, -0.168669939, 0.0822387412, -0.058475744, 0.1155843809, 0.00385974, 0.1811003536, 0.2013252676, 0.2885711789, -0.3500796556, 0.2458778471, -0.0869048014, 0.2614988089, 0.1408279687, 0.0759357885, 0.4579922855, 0.0213010833, -0.3352097571, -0.0335409306, -0.0300774481, 0.0866355598, 0.2558809519, -0.233358711, 0.3003470302, 0.1989204139, -0.1174950972, 0.5623862743, -0.149604708, 0.2065962255, 0.4130835235, 0.1872232705, -0.3698638082, 0.0016461554, 0.2932012975, -0.0966373757, -0.0709823519, 0.0759611875, 0.2589093447, -0.3223278522, 0.1137206629, -0.0657390058, 0.1647822857, -0.0565515049, 0.1922585368, 0.6700763106, 0.2270731479, 0.0499260761, -0.0694644302, 0.1699931473, 0.0953949168, 0.362806648, -0.2234566659, 0.1927638352, -0.0520039983, 0.0246350206, -0.1621612608, -0.3400565088, 0.2986113131, 0.1632018536, -0.0247744564, 0.0986765474, -0.1722577512, 0.2616478205, 0.1543592811, 0.0302231926, -0.2611557841, 0.1914433688, -0.1224778146, -0.012982592, -0.0442101061, -0.2680073977, 0.0015668734, 0.1556262821, -0.0046618585, -0.3565732241, 0.2555737197, 0.3037431538, -0.2440861613, -0.4411396384, 0.1348090768, 0.2124927342, 0.0311705116, -0.3002212942, 0.1577614397, 0.4137806594, 0.0780922771, -0.127055347, 0.2019160837, 0.4433460534, 0.4205476046, -0.3373263776, 0.0424415879, 0.0753407031, -0.0656806603, -0.0233783517, 0.2276099771, 0.4672248662, 0.2502681911, 0.397010237, 0.1184259653, -0.1415998638, -0.0319755115, 0.2360504717, -0.0639189631, -0.0566707402, -0.0451857708, -0.0590352714, 0.1407208294, -0.4205536246, -0.0135846008, -0.5078694224, 0.3400225937, 0.1610560566, 0.0025874143, 0.1775292307, -0.0925811306, 0.0479857624, -0.1569759548, 0.3962932825, 0.3195854127, 0.1991415173, -0.390832752, -0.0089955851, -0.4645191729, -0.0186358634, -0.2982346714, 0.1121007949, -0.0814330652, 0.1286559552, 0.0755083486, 0.213271901, 0.0366325527, 0.0450987294, 0.0668025613, 0.4949165881, -0.2315314412, -0.244703576, -0.1948165596, 0.2191625983, -0.1583238244, -0.3909314573, 0.0575937442, -0.1385609657, 0.0340732224, -0.3200197816, -0.0665005669, 0.0955727175, 0.0059596472, 0.3324286938, 0.1523778886, 0.5925301313, -0.1540946215, -0.2021767646, -0.2086717784, -0.0110701295, -0.1599347442, 0.3116777837, 0.1967296749, 0.0989065245, -0.1607939601, -0.1119709909, -0.029564105, 0.2984873056, -0.0448162258, 0.1949228793, -0.3669615984, -0.3863568604, 0.0579174161, 0.1138558537, 0.1190272644, 0.046926219, -0.1308562309, -0.0533182323, -0.3421496451, -0.3086864352, 0.3866544366, -0.3773032725, -0.5697822571, -0.0921551213, 0.0079287244, 0.047056552, 0.1902980953, -0.3660883904, 0.2775550783, 0.3897732198, 0.0513335578, -0.1509678662, 0.1664221436, 0.028648613, -0.0162154119, -0.0940433368, 0.1160701364, -0.0082842791, -0.3563149571, -0.2205844522, -0.3912584484 ]
https://github.com/huggingface/datasets/issues/2035
wiki40b/wikipedia for almost all languages cannot be downloaded
Hi everyone thanks for the helpful pointers, I did it as @bhavitvyamalik suggested, for me this freezes on this command for several hours, `Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /users/dara/cache/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... ` Do you know how long this takes? Any specific requirements the machine should have? like very large memory or so? @lhoestq thanks
Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ```
65
wiki40b/wikipedia for almost all languages cannot be downloaded Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ``` Hi everyone thanks for the helpful pointers, I did it as @bhavitvyamalik suggested, for me this freezes on this command for several hours, `Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /users/dara/cache/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... ` Do you know how long this takes? Any specific requirements the machine should have? like very large memory or so? @lhoestq thanks
[ -0.2544981837, -0.0779208615, -0.1537582725, 0.4308664799, 0.3997030258, 0.3504616916, 0.136850521, 0.5331581831, 0.1893272549, 0.0235845894, -0.1773036271, -0.094217591, 0.0944036171, 0.0111841382, -0.0297050904, -0.4591732919, -0.067290552, 0.0295369718, -0.1352711469, -0.1168934107, -0.25196293, 0.1256147176, -0.0791745484, -0.0490287393, -0.0387455262, -0.1828401238, -0.0958355442, -0.2073054761, -0.3507466018, -0.2408644557, 0.3545781672, 0.0192572363, 0.3101120293, 0.1529971212, -0.0001114368, -0.0509647354, 0.3131163716, -0.2357946187, -0.2936122119, -0.2888574302, -0.0720897317, -0.3261860311, -0.090439178, -0.4200314283, 0.1274462938, 0.0466824919, 0.0806712136, -0.1318009645, 0.0757576972, 0.2992254496, 0.246871233, -0.1426034123, 0.313434273, -0.1457378864, 0.3651961386, -0.3777083457, -0.0280337315, 0.3395861387, 0.2187207043, 0.0713429078, 0.2154794931, 0.2220430076, -0.2341405153, 0.0134994024, 0.0482246093, -0.2912240028, 0.2222055197, -0.6297015548, 0.5206417441, 0.5344285965, 0.8290325999, -0.128351599, -0.087467052, 0.0723920465, -0.0260592494, -0.0313744359, -0.0557401702, 0.4819796383, -0.1893264502, 0.097598277, 0.1261650175, -0.1254301518, -0.1567190886, 0.4228469431, -0.1241363436, 0.4435883164, -0.0527199246, 0.2112597078, -0.0216666665, -0.1027016938, -0.263641715, -0.0696594566, -0.0961604267, 0.2933218181, -0.2793984115, 0.0196356401, -0.1615019143, 0.0556470901, 0.3511352241, -0.1503834128, -0.2346212119, -0.0450782031, 0.0960106403, 0.1575745791, 0.1801501662, 0.1637832224, 0.0620483719, -0.200006932, 0.2782809436, 0.3079039752, -0.0842120126, -0.0761709362, -0.2100434005, -0.2230565995, -0.2947569489, 0.0944295079, 0.087529324, -0.2031710893, -0.1779467762, 0.0071132388, -0.1443607062, -0.0194389503, -0.2023950666, 0.3628211021, -0.1501427889, 0.4312386811, 0.1779012382, 0.3288222551, -0.1035724953, -0.2613103092, -0.0173523743, 0.3065484166, -0.1393197775, -0.1036605015, 0.2187827379, -0.1099155918, 0.2648516595, -0.0893723965, -0.1031378731, -0.176412195, -0.1536910385, -0.3695678115, -0.1791034937, 0.2304089367, 0.1619766802, 0.2839276791, 0.1476141959, -0.2447476387, -0.2305806726, 0.1207450777, -0.3596148491, -0.1681550443, -0.2051548213, 0.1944684386, 0.0610983595, -0.0546503477, -0.3160069287, 0.2876640558, 0.3030640185, -0.1423988193, 0.1180729046, -0.007545949, -0.0232540015, -0.2251898348, 0.17901133, 0.4908005297, -0.3999599814, 0.0918975845, -0.0238505788, -0.0337123312, 0.1897819489, 0.184297055, -0.1779525429, 0.2565417588, -0.0978841633, 0.0381601527, 0.2101314068, -0.3214420676, -0.5776353478, 0.1860539168, 0.1134097129, -0.1670033634, 0.0994796902, 0.0160004571, 0.2750303149, -0.0493873805, 0.0524543822, 0.3956748545, 0.1368378699, -0.1056451276, -0.3274504244, -0.5078238249, 0.3264817894, 0.1633177251, 0.4547145069, -0.1322700977, 0.2759855092, 0.2917213738, 0.3191739619, -0.1915477514, 0.1246789023, 0.2333603501, -0.0089485673, -0.0445755981, -0.0025625625, -0.331027329, -0.3097583055, 0.1477601677, 0.1029133499, 0.1654646397, -0.160955444, 0.0296834111, -0.3161895871, -0.0888075829, -0.1953116208, 0.1032688841, 0.1995638013, -0.1052767634, 0.1195931509, 0.485458672, 0.1265165806, -0.0994589552, -0.4156903923, -0.094852902, -0.1789344698, 0.0923319235, -0.2174283266, 0.204491958, 0.0336810127, 0.0258089956, 0.1796840727, 0.0730526447, -0.1607237756, -0.01106109, -0.0784520656, -0.1035443917, 0.1354628205, 0.1169634983, 0.133128196, -0.4173750281, 0.1920300275, 0.1084794179, 0.3297464848, -0.1357726753, 0.1178163737, 0.1222369522, 0.0399736427, 0.365534246, 0.1234309822, 0.1498314738, 0.4555993378, 0.0305261072, 0.1263546199, -0.0049747569, 0.3271192312, 0.1556601822, 0.0127490312, -0.1329595596, -0.0292780697, -0.113514401, 0.3166729808, -0.0845337212, 0.2671486735, 0.2927596271, -0.0765188709, -0.004859793, -0.0978269726, 0.1533986181, 0.0522079691, 0.0699053109, 0.1065890044, -0.0998439118, 0.3596494198, -0.1293925196, 0.2643093169, 0.1755420566, 0.1863330007, 0.2091357559, 0.1350802481, -0.0111759305, -0.1882828772, -0.1296796054, 0.0699938387, 0.3717178106, 0.0691838637, 0.1659454256, -0.0484344177, -0.1418601424, 0.0841909572, -0.0523920283, -0.2509427667, -0.216317296, -0.1256383061, -0.0857287124, 0.0915833339, -0.0001049591, -0.3266668022, -0.0721021518, 0.0621663556, -0.320350647, -0.1605682373, -0.2981230617, -0.3684501946, 0.07678736, 0.3871299028, 0.1112902015, 0.2952097356, -0.332629025, -0.1918788552, -0.0899456739, -0.2681111395, -0.0143139316, -0.1569703519, 0.241395101, -0.0241168831, 0.7152198553, -0.1799962074, -0.251421392, 0.1846488416, -0.0070198504, 0.0658745319, 0.2497715056, -0.1534785032, -0.0429238118, 0.0845356956, -0.485653311, -0.5155771375, -0.269656539, 0.01251911, 0.0485179015, 0.0878062025, 0.1686411053, 0.1924844235, 0.0680268332, 0.1211879849, 0.1809067428, -0.1900433153, -0.1518693417, 0.4496893287, -0.027413249, -0.429962486, 0.1881866902, 0.0109942462, 0.3149320185, 0.0079272576, -0.6572359204, 0.1441124827, -0.2763586938, 0.2499432266, -0.0219934508, 0.1834769845, 0.1143440828, -0.2136971354, 0.0479723625, 0.0449956879, 0.1059099883, -0.040621005, -0.2095252126, 0.2556219697, 0.0299457703, 0.2961856723, 0.1644208729, 0.6888409853, 0.0548557788, 0.1658405662, 0.4367816746, 0.238582328, 0.2310313582, -0.2314290255, -0.3645714223, 0.0605746992, -0.2394917756, -0.0310030244, 0.2670124769, -0.1623200327, -0.4674172997, -0.3477127552, -0.242684558, -0.3674673736, -0.2107711732, 0.1539981216, -0.0501819327, 0.0829402804, 0.0575963408, 0.1203984171, 0.0215733666, -0.2823501229, 0.2137895226, 0.5317092538, -0.2486019135, 0.1685897708, -0.2782669961, -0.3421223164, -0.4126343429, 0.2524553537, 0.0777069852, 0.4147611558, -0.0938024521, 0.3499188423, 0.2011797279, -0.0892689079, 0.290623337, -0.1702443659, 0.1230508387, 0.1972469091, 0.1049931571, -0.2152172923, -0.0624401085, -0.2943328619, -0.0166880656, 0.3054169118, -0.0444553681, -0.67096591, 0.0843288749, -0.0425857529, 0.5003301501, -0.0571771897, -0.0173500609, -0.1618566215, -0.5653649569, -0.4854041636, -0.0276872218, 0.1895756274, 0.4046096504, -0.1972092241, 0.2628990412, -0.1020784453, 0.2205625474, 0.0213168114, 0.007735298, 0.2132564485, 0.2327859551, 0.0974328518, -0.1967881769, -0.1378471553, 0.1503266245, 0.3620433807, -0.0635323003, -0.2343126237, -0.1212477162, -0.043003615, 0.0434833616, 0.1415463537, -0.1012908071, 0.0477071106, 0.148663044, -0.1379350722, 0.1658209413, -0.0128414435, 0.2519464791, -0.1063374355, -0.4962349236, -0.5676657557, 0.6620468497, 0.0233819876, 0.0701420903, 0.254171133, 0.1754047573, -0.1958613694, 0.3753731847, 0.1058032066, 1.1372190714, -0.2281342, 0.1104206815, -0.1039846987, 0.1094662026, 0.3614167869, -0.3578398228, 0.208406955, -0.3226415217, -0.1089071035, -0.0195195209, 0.0736746714, -0.0461387597, 0.0998933315, -0.3072269559, 0.2564418316, -0.3662328422, -0.0869540647, 0.1056495979, 0.2329856753, -0.4058894813, -0.0680368319, -0.321379602, 0.1196287572, -0.2146601677, 0.2546930909, -0.2110011131, -0.1254786104, -0.0614245832, -0.267270267, -0.5050504804, 0.0706437305, -0.2883505225, 0.3298688531, -0.4893511832, -0.1897747517, 0.3386204541, 0.444871217, 0.0414797552, 0.4031545818, -0.2879833579, 0.1116523072, -0.2638609707, -0.4236194491, 0.0944914222, 0.0112074362, 0.0871339664, -0.1816287935, -0.3709903061, 0.1669730544, -0.0575724319, 0.0528493412, -0.0959874913, 0.1043775827, 0.2016542852, -0.0458974242, -0.3565555513, -0.0222830959, -0.0943858027, -0.0894330069, 0.12416666, 0.082196869, -0.1119040549, 0.1409132481, 0.1852953881, -0.3349808455, 0.0217914302, 0.3491056859, 0.1834492981, 0.0239538625, 0.6245267987, 0.3155456185, -0.3965407908, -0.1898150891, 0.043914102, -0.2713771462, -0.4585742056, -0.0896050781, -0.0421894602, 0.3383437097, -0.4149286747, 0.3502539992, 0.1749070734, -0.2348316461, 0.2064643651, -0.7065883875, -0.1240220442, 0.2160940021, -0.0789091885, 0.0065748482, 0.0840709135, -0.3095990419, 0.12182834, 0.2352633327, -0.2610890269, 0.2092308402, -0.3233412504, 0.1007637307, 0.0994940326, 0.0633324161, 0.0223014951, 0.1991025209, 0.0650480464, 0.0691616461, -0.0496639088, -0.259909898, -0.0702273175, 0.1948126853, 0.2051140219, -0.0579005145, 0.2278751284, -0.5071968436, -0.168669939, 0.0822387412, -0.058475744, 0.1155843809, 0.00385974, 0.1811003536, 0.2013252676, 0.2885711789, -0.3500796556, 0.2458778471, -0.0869048014, 0.2614988089, 0.1408279687, 0.0759357885, 0.4579922855, 0.0213010833, -0.3352097571, -0.0335409306, -0.0300774481, 0.0866355598, 0.2558809519, -0.233358711, 0.3003470302, 0.1989204139, -0.1174950972, 0.5623862743, -0.149604708, 0.2065962255, 0.4130835235, 0.1872232705, -0.3698638082, 0.0016461554, 0.2932012975, -0.0966373757, -0.0709823519, 0.0759611875, 0.2589093447, -0.3223278522, 0.1137206629, -0.0657390058, 0.1647822857, -0.0565515049, 0.1922585368, 0.6700763106, 0.2270731479, 0.0499260761, -0.0694644302, 0.1699931473, 0.0953949168, 0.362806648, -0.2234566659, 0.1927638352, -0.0520039983, 0.0246350206, -0.1621612608, -0.3400565088, 0.2986113131, 0.1632018536, -0.0247744564, 0.0986765474, -0.1722577512, 0.2616478205, 0.1543592811, 0.0302231926, -0.2611557841, 0.1914433688, -0.1224778146, -0.012982592, -0.0442101061, -0.2680073977, 0.0015668734, 0.1556262821, -0.0046618585, -0.3565732241, 0.2555737197, 0.3037431538, -0.2440861613, -0.4411396384, 0.1348090768, 0.2124927342, 0.0311705116, -0.3002212942, 0.1577614397, 0.4137806594, 0.0780922771, -0.127055347, 0.2019160837, 0.4433460534, 0.4205476046, -0.3373263776, 0.0424415879, 0.0753407031, -0.0656806603, -0.0233783517, 0.2276099771, 0.4672248662, 0.2502681911, 0.397010237, 0.1184259653, -0.1415998638, -0.0319755115, 0.2360504717, -0.0639189631, -0.0566707402, -0.0451857708, -0.0590352714, 0.1407208294, -0.4205536246, -0.0135846008, -0.5078694224, 0.3400225937, 0.1610560566, 0.0025874143, 0.1775292307, -0.0925811306, 0.0479857624, -0.1569759548, 0.3962932825, 0.3195854127, 0.1991415173, -0.390832752, -0.0089955851, -0.4645191729, -0.0186358634, -0.2982346714, 0.1121007949, -0.0814330652, 0.1286559552, 0.0755083486, 0.213271901, 0.0366325527, 0.0450987294, 0.0668025613, 0.4949165881, -0.2315314412, -0.244703576, -0.1948165596, 0.2191625983, -0.1583238244, -0.3909314573, 0.0575937442, -0.1385609657, 0.0340732224, -0.3200197816, -0.0665005669, 0.0955727175, 0.0059596472, 0.3324286938, 0.1523778886, 0.5925301313, -0.1540946215, -0.2021767646, -0.2086717784, -0.0110701295, -0.1599347442, 0.3116777837, 0.1967296749, 0.0989065245, -0.1607939601, -0.1119709909, -0.029564105, 0.2984873056, -0.0448162258, 0.1949228793, -0.3669615984, -0.3863568604, 0.0579174161, 0.1138558537, 0.1190272644, 0.046926219, -0.1308562309, -0.0533182323, -0.3421496451, -0.3086864352, 0.3866544366, -0.3773032725, -0.5697822571, -0.0921551213, 0.0079287244, 0.047056552, 0.1902980953, -0.3660883904, 0.2775550783, 0.3897732198, 0.0513335578, -0.1509678662, 0.1664221436, 0.028648613, -0.0162154119, -0.0940433368, 0.1160701364, -0.0082842791, -0.3563149571, -0.2205844522, -0.3912584484 ]
https://github.com/huggingface/datasets/issues/2035
wiki40b/wikipedia for almost all languages cannot be downloaded
HI @dorost1234, The dataset size is 631.84 MiB so depending on your internet speed it'll take some time. You can monitor your internet speed meanwhile to see if it's downloading the dataset or not (use `nload` if you're using linux/mac to monitor the same). In my case it took around 3-4 mins. Since they haven't used `download_and_extract` here that's why there's no download progress bar.
Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ```
65
wiki40b/wikipedia for almost all languages cannot be downloaded Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ``` HI @dorost1234, The dataset size is 631.84 MiB so depending on your internet speed it'll take some time. You can monitor your internet speed meanwhile to see if it's downloading the dataset or not (use `nload` if you're using linux/mac to monitor the same). In my case it took around 3-4 mins. Since they haven't used `download_and_extract` here that's why there's no download progress bar.
[ -0.2544981837, -0.0779208615, -0.1537582725, 0.4308664799, 0.3997030258, 0.3504616916, 0.136850521, 0.5331581831, 0.1893272549, 0.0235845894, -0.1773036271, -0.094217591, 0.0944036171, 0.0111841382, -0.0297050904, -0.4591732919, -0.067290552, 0.0295369718, -0.1352711469, -0.1168934107, -0.25196293, 0.1256147176, -0.0791745484, -0.0490287393, -0.0387455262, -0.1828401238, -0.0958355442, -0.2073054761, -0.3507466018, -0.2408644557, 0.3545781672, 0.0192572363, 0.3101120293, 0.1529971212, -0.0001114368, -0.0509647354, 0.3131163716, -0.2357946187, -0.2936122119, -0.2888574302, -0.0720897317, -0.3261860311, -0.090439178, -0.4200314283, 0.1274462938, 0.0466824919, 0.0806712136, -0.1318009645, 0.0757576972, 0.2992254496, 0.246871233, -0.1426034123, 0.313434273, -0.1457378864, 0.3651961386, -0.3777083457, -0.0280337315, 0.3395861387, 0.2187207043, 0.0713429078, 0.2154794931, 0.2220430076, -0.2341405153, 0.0134994024, 0.0482246093, -0.2912240028, 0.2222055197, -0.6297015548, 0.5206417441, 0.5344285965, 0.8290325999, -0.128351599, -0.087467052, 0.0723920465, -0.0260592494, -0.0313744359, -0.0557401702, 0.4819796383, -0.1893264502, 0.097598277, 0.1261650175, -0.1254301518, -0.1567190886, 0.4228469431, -0.1241363436, 0.4435883164, -0.0527199246, 0.2112597078, -0.0216666665, -0.1027016938, -0.263641715, -0.0696594566, -0.0961604267, 0.2933218181, -0.2793984115, 0.0196356401, -0.1615019143, 0.0556470901, 0.3511352241, -0.1503834128, -0.2346212119, -0.0450782031, 0.0960106403, 0.1575745791, 0.1801501662, 0.1637832224, 0.0620483719, -0.200006932, 0.2782809436, 0.3079039752, -0.0842120126, -0.0761709362, -0.2100434005, -0.2230565995, -0.2947569489, 0.0944295079, 0.087529324, -0.2031710893, -0.1779467762, 0.0071132388, -0.1443607062, -0.0194389503, -0.2023950666, 0.3628211021, -0.1501427889, 0.4312386811, 0.1779012382, 0.3288222551, -0.1035724953, -0.2613103092, -0.0173523743, 0.3065484166, -0.1393197775, -0.1036605015, 0.2187827379, -0.1099155918, 0.2648516595, -0.0893723965, -0.1031378731, -0.176412195, -0.1536910385, -0.3695678115, -0.1791034937, 0.2304089367, 0.1619766802, 0.2839276791, 0.1476141959, -0.2447476387, -0.2305806726, 0.1207450777, -0.3596148491, -0.1681550443, -0.2051548213, 0.1944684386, 0.0610983595, -0.0546503477, -0.3160069287, 0.2876640558, 0.3030640185, -0.1423988193, 0.1180729046, -0.007545949, -0.0232540015, -0.2251898348, 0.17901133, 0.4908005297, -0.3999599814, 0.0918975845, -0.0238505788, -0.0337123312, 0.1897819489, 0.184297055, -0.1779525429, 0.2565417588, -0.0978841633, 0.0381601527, 0.2101314068, -0.3214420676, -0.5776353478, 0.1860539168, 0.1134097129, -0.1670033634, 0.0994796902, 0.0160004571, 0.2750303149, -0.0493873805, 0.0524543822, 0.3956748545, 0.1368378699, -0.1056451276, -0.3274504244, -0.5078238249, 0.3264817894, 0.1633177251, 0.4547145069, -0.1322700977, 0.2759855092, 0.2917213738, 0.3191739619, -0.1915477514, 0.1246789023, 0.2333603501, -0.0089485673, -0.0445755981, -0.0025625625, -0.331027329, -0.3097583055, 0.1477601677, 0.1029133499, 0.1654646397, -0.160955444, 0.0296834111, -0.3161895871, -0.0888075829, -0.1953116208, 0.1032688841, 0.1995638013, -0.1052767634, 0.1195931509, 0.485458672, 0.1265165806, -0.0994589552, -0.4156903923, -0.094852902, -0.1789344698, 0.0923319235, -0.2174283266, 0.204491958, 0.0336810127, 0.0258089956, 0.1796840727, 0.0730526447, -0.1607237756, -0.01106109, -0.0784520656, -0.1035443917, 0.1354628205, 0.1169634983, 0.133128196, -0.4173750281, 0.1920300275, 0.1084794179, 0.3297464848, -0.1357726753, 0.1178163737, 0.1222369522, 0.0399736427, 0.365534246, 0.1234309822, 0.1498314738, 0.4555993378, 0.0305261072, 0.1263546199, -0.0049747569, 0.3271192312, 0.1556601822, 0.0127490312, -0.1329595596, -0.0292780697, -0.113514401, 0.3166729808, -0.0845337212, 0.2671486735, 0.2927596271, -0.0765188709, -0.004859793, -0.0978269726, 0.1533986181, 0.0522079691, 0.0699053109, 0.1065890044, -0.0998439118, 0.3596494198, -0.1293925196, 0.2643093169, 0.1755420566, 0.1863330007, 0.2091357559, 0.1350802481, -0.0111759305, -0.1882828772, -0.1296796054, 0.0699938387, 0.3717178106, 0.0691838637, 0.1659454256, -0.0484344177, -0.1418601424, 0.0841909572, -0.0523920283, -0.2509427667, -0.216317296, -0.1256383061, -0.0857287124, 0.0915833339, -0.0001049591, -0.3266668022, -0.0721021518, 0.0621663556, -0.320350647, -0.1605682373, -0.2981230617, -0.3684501946, 0.07678736, 0.3871299028, 0.1112902015, 0.2952097356, -0.332629025, -0.1918788552, -0.0899456739, -0.2681111395, -0.0143139316, -0.1569703519, 0.241395101, -0.0241168831, 0.7152198553, -0.1799962074, -0.251421392, 0.1846488416, -0.0070198504, 0.0658745319, 0.2497715056, -0.1534785032, -0.0429238118, 0.0845356956, -0.485653311, -0.5155771375, -0.269656539, 0.01251911, 0.0485179015, 0.0878062025, 0.1686411053, 0.1924844235, 0.0680268332, 0.1211879849, 0.1809067428, -0.1900433153, -0.1518693417, 0.4496893287, -0.027413249, -0.429962486, 0.1881866902, 0.0109942462, 0.3149320185, 0.0079272576, -0.6572359204, 0.1441124827, -0.2763586938, 0.2499432266, -0.0219934508, 0.1834769845, 0.1143440828, -0.2136971354, 0.0479723625, 0.0449956879, 0.1059099883, -0.040621005, -0.2095252126, 0.2556219697, 0.0299457703, 0.2961856723, 0.1644208729, 0.6888409853, 0.0548557788, 0.1658405662, 0.4367816746, 0.238582328, 0.2310313582, -0.2314290255, -0.3645714223, 0.0605746992, -0.2394917756, -0.0310030244, 0.2670124769, -0.1623200327, -0.4674172997, -0.3477127552, -0.242684558, -0.3674673736, -0.2107711732, 0.1539981216, -0.0501819327, 0.0829402804, 0.0575963408, 0.1203984171, 0.0215733666, -0.2823501229, 0.2137895226, 0.5317092538, -0.2486019135, 0.1685897708, -0.2782669961, -0.3421223164, -0.4126343429, 0.2524553537, 0.0777069852, 0.4147611558, -0.0938024521, 0.3499188423, 0.2011797279, -0.0892689079, 0.290623337, -0.1702443659, 0.1230508387, 0.1972469091, 0.1049931571, -0.2152172923, -0.0624401085, -0.2943328619, -0.0166880656, 0.3054169118, -0.0444553681, -0.67096591, 0.0843288749, -0.0425857529, 0.5003301501, -0.0571771897, -0.0173500609, -0.1618566215, -0.5653649569, -0.4854041636, -0.0276872218, 0.1895756274, 0.4046096504, -0.1972092241, 0.2628990412, -0.1020784453, 0.2205625474, 0.0213168114, 0.007735298, 0.2132564485, 0.2327859551, 0.0974328518, -0.1967881769, -0.1378471553, 0.1503266245, 0.3620433807, -0.0635323003, -0.2343126237, -0.1212477162, -0.043003615, 0.0434833616, 0.1415463537, -0.1012908071, 0.0477071106, 0.148663044, -0.1379350722, 0.1658209413, -0.0128414435, 0.2519464791, -0.1063374355, -0.4962349236, -0.5676657557, 0.6620468497, 0.0233819876, 0.0701420903, 0.254171133, 0.1754047573, -0.1958613694, 0.3753731847, 0.1058032066, 1.1372190714, -0.2281342, 0.1104206815, -0.1039846987, 0.1094662026, 0.3614167869, -0.3578398228, 0.208406955, -0.3226415217, -0.1089071035, -0.0195195209, 0.0736746714, -0.0461387597, 0.0998933315, -0.3072269559, 0.2564418316, -0.3662328422, -0.0869540647, 0.1056495979, 0.2329856753, -0.4058894813, -0.0680368319, -0.321379602, 0.1196287572, -0.2146601677, 0.2546930909, -0.2110011131, -0.1254786104, -0.0614245832, -0.267270267, -0.5050504804, 0.0706437305, -0.2883505225, 0.3298688531, -0.4893511832, -0.1897747517, 0.3386204541, 0.444871217, 0.0414797552, 0.4031545818, -0.2879833579, 0.1116523072, -0.2638609707, -0.4236194491, 0.0944914222, 0.0112074362, 0.0871339664, -0.1816287935, -0.3709903061, 0.1669730544, -0.0575724319, 0.0528493412, -0.0959874913, 0.1043775827, 0.2016542852, -0.0458974242, -0.3565555513, -0.0222830959, -0.0943858027, -0.0894330069, 0.12416666, 0.082196869, -0.1119040549, 0.1409132481, 0.1852953881, -0.3349808455, 0.0217914302, 0.3491056859, 0.1834492981, 0.0239538625, 0.6245267987, 0.3155456185, -0.3965407908, -0.1898150891, 0.043914102, -0.2713771462, -0.4585742056, -0.0896050781, -0.0421894602, 0.3383437097, -0.4149286747, 0.3502539992, 0.1749070734, -0.2348316461, 0.2064643651, -0.7065883875, -0.1240220442, 0.2160940021, -0.0789091885, 0.0065748482, 0.0840709135, -0.3095990419, 0.12182834, 0.2352633327, -0.2610890269, 0.2092308402, -0.3233412504, 0.1007637307, 0.0994940326, 0.0633324161, 0.0223014951, 0.1991025209, 0.0650480464, 0.0691616461, -0.0496639088, -0.259909898, -0.0702273175, 0.1948126853, 0.2051140219, -0.0579005145, 0.2278751284, -0.5071968436, -0.168669939, 0.0822387412, -0.058475744, 0.1155843809, 0.00385974, 0.1811003536, 0.2013252676, 0.2885711789, -0.3500796556, 0.2458778471, -0.0869048014, 0.2614988089, 0.1408279687, 0.0759357885, 0.4579922855, 0.0213010833, -0.3352097571, -0.0335409306, -0.0300774481, 0.0866355598, 0.2558809519, -0.233358711, 0.3003470302, 0.1989204139, -0.1174950972, 0.5623862743, -0.149604708, 0.2065962255, 0.4130835235, 0.1872232705, -0.3698638082, 0.0016461554, 0.2932012975, -0.0966373757, -0.0709823519, 0.0759611875, 0.2589093447, -0.3223278522, 0.1137206629, -0.0657390058, 0.1647822857, -0.0565515049, 0.1922585368, 0.6700763106, 0.2270731479, 0.0499260761, -0.0694644302, 0.1699931473, 0.0953949168, 0.362806648, -0.2234566659, 0.1927638352, -0.0520039983, 0.0246350206, -0.1621612608, -0.3400565088, 0.2986113131, 0.1632018536, -0.0247744564, 0.0986765474, -0.1722577512, 0.2616478205, 0.1543592811, 0.0302231926, -0.2611557841, 0.1914433688, -0.1224778146, -0.012982592, -0.0442101061, -0.2680073977, 0.0015668734, 0.1556262821, -0.0046618585, -0.3565732241, 0.2555737197, 0.3037431538, -0.2440861613, -0.4411396384, 0.1348090768, 0.2124927342, 0.0311705116, -0.3002212942, 0.1577614397, 0.4137806594, 0.0780922771, -0.127055347, 0.2019160837, 0.4433460534, 0.4205476046, -0.3373263776, 0.0424415879, 0.0753407031, -0.0656806603, -0.0233783517, 0.2276099771, 0.4672248662, 0.2502681911, 0.397010237, 0.1184259653, -0.1415998638, -0.0319755115, 0.2360504717, -0.0639189631, -0.0566707402, -0.0451857708, -0.0590352714, 0.1407208294, -0.4205536246, -0.0135846008, -0.5078694224, 0.3400225937, 0.1610560566, 0.0025874143, 0.1775292307, -0.0925811306, 0.0479857624, -0.1569759548, 0.3962932825, 0.3195854127, 0.1991415173, -0.390832752, -0.0089955851, -0.4645191729, -0.0186358634, -0.2982346714, 0.1121007949, -0.0814330652, 0.1286559552, 0.0755083486, 0.213271901, 0.0366325527, 0.0450987294, 0.0668025613, 0.4949165881, -0.2315314412, -0.244703576, -0.1948165596, 0.2191625983, -0.1583238244, -0.3909314573, 0.0575937442, -0.1385609657, 0.0340732224, -0.3200197816, -0.0665005669, 0.0955727175, 0.0059596472, 0.3324286938, 0.1523778886, 0.5925301313, -0.1540946215, -0.2021767646, -0.2086717784, -0.0110701295, -0.1599347442, 0.3116777837, 0.1967296749, 0.0989065245, -0.1607939601, -0.1119709909, -0.029564105, 0.2984873056, -0.0448162258, 0.1949228793, -0.3669615984, -0.3863568604, 0.0579174161, 0.1138558537, 0.1190272644, 0.046926219, -0.1308562309, -0.0533182323, -0.3421496451, -0.3086864352, 0.3866544366, -0.3773032725, -0.5697822571, -0.0921551213, 0.0079287244, 0.047056552, 0.1902980953, -0.3660883904, 0.2775550783, 0.3897732198, 0.0513335578, -0.1509678662, 0.1664221436, 0.028648613, -0.0162154119, -0.0940433368, 0.1160701364, -0.0082842791, -0.3563149571, -0.2205844522, -0.3912584484 ]
https://github.com/huggingface/datasets/issues/2035
wiki40b/wikipedia for almost all languages cannot be downloaded
Hi thanks, my internet speed should be good, but this really freezes for me, this is how I try to get this dataset: `from datasets import load_dataset dataset = load_dataset("wiki40b", "cs", beam_runner='DirectRunner')` the output I see if different also from what you see after writing this command: `Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /users/dara/cache/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...` do you have any idea why it might get freezed? anything I am missing @lhoestq @bhavitvyamalik. Do I need maybe to set anything special for apache-beam? thanks a lot On Tue, Mar 16, 2021 at 9:03 AM Bhavitvya Malik ***@***.***> wrote: > HI @dorost1234 <https://github.com/dorost1234>, > The dataset size is 631.84 MiB so depending on your internet speed it'll > take some time. You can monitor your internet speed meanwhile to see if > it's downloading the dataset or not (use nload if you're using linux/mac > to monitor the same). In my case it took around 3-4 mins. Since they > haven't used download_and_extract here that's why there's no download > progress bar. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2035#issuecomment-800044303>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMQIHNNLM2LGG6QKZ73TD4GDJANCNFSM4ZA5R2UA> > . >
Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ```
212
wiki40b/wikipedia for almost all languages cannot be downloaded Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ``` Hi thanks, my internet speed should be good, but this really freezes for me, this is how I try to get this dataset: `from datasets import load_dataset dataset = load_dataset("wiki40b", "cs", beam_runner='DirectRunner')` the output I see if different also from what you see after writing this command: `Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /users/dara/cache/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f...` do you have any idea why it might get freezed? anything I am missing @lhoestq @bhavitvyamalik. Do I need maybe to set anything special for apache-beam? thanks a lot On Tue, Mar 16, 2021 at 9:03 AM Bhavitvya Malik ***@***.***> wrote: > HI @dorost1234 <https://github.com/dorost1234>, > The dataset size is 631.84 MiB so depending on your internet speed it'll > take some time. You can monitor your internet speed meanwhile to see if > it's downloading the dataset or not (use nload if you're using linux/mac > to monitor the same). In my case it took around 3-4 mins. Since they > haven't used download_and_extract here that's why there's no download > progress bar. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2035#issuecomment-800044303>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMQIHNNLM2LGG6QKZ73TD4GDJANCNFSM4ZA5R2UA> > . >
[ -0.2544981837, -0.0779208615, -0.1537582725, 0.4308664799, 0.3997030258, 0.3504616916, 0.136850521, 0.5331581831, 0.1893272549, 0.0235845894, -0.1773036271, -0.094217591, 0.0944036171, 0.0111841382, -0.0297050904, -0.4591732919, -0.067290552, 0.0295369718, -0.1352711469, -0.1168934107, -0.25196293, 0.1256147176, -0.0791745484, -0.0490287393, -0.0387455262, -0.1828401238, -0.0958355442, -0.2073054761, -0.3507466018, -0.2408644557, 0.3545781672, 0.0192572363, 0.3101120293, 0.1529971212, -0.0001114368, -0.0509647354, 0.3131163716, -0.2357946187, -0.2936122119, -0.2888574302, -0.0720897317, -0.3261860311, -0.090439178, -0.4200314283, 0.1274462938, 0.0466824919, 0.0806712136, -0.1318009645, 0.0757576972, 0.2992254496, 0.246871233, -0.1426034123, 0.313434273, -0.1457378864, 0.3651961386, -0.3777083457, -0.0280337315, 0.3395861387, 0.2187207043, 0.0713429078, 0.2154794931, 0.2220430076, -0.2341405153, 0.0134994024, 0.0482246093, -0.2912240028, 0.2222055197, -0.6297015548, 0.5206417441, 0.5344285965, 0.8290325999, -0.128351599, -0.087467052, 0.0723920465, -0.0260592494, -0.0313744359, -0.0557401702, 0.4819796383, -0.1893264502, 0.097598277, 0.1261650175, -0.1254301518, -0.1567190886, 0.4228469431, -0.1241363436, 0.4435883164, -0.0527199246, 0.2112597078, -0.0216666665, -0.1027016938, -0.263641715, -0.0696594566, -0.0961604267, 0.2933218181, -0.2793984115, 0.0196356401, -0.1615019143, 0.0556470901, 0.3511352241, -0.1503834128, -0.2346212119, -0.0450782031, 0.0960106403, 0.1575745791, 0.1801501662, 0.1637832224, 0.0620483719, -0.200006932, 0.2782809436, 0.3079039752, -0.0842120126, -0.0761709362, -0.2100434005, -0.2230565995, -0.2947569489, 0.0944295079, 0.087529324, -0.2031710893, -0.1779467762, 0.0071132388, -0.1443607062, -0.0194389503, -0.2023950666, 0.3628211021, -0.1501427889, 0.4312386811, 0.1779012382, 0.3288222551, -0.1035724953, -0.2613103092, -0.0173523743, 0.3065484166, -0.1393197775, -0.1036605015, 0.2187827379, -0.1099155918, 0.2648516595, -0.0893723965, -0.1031378731, -0.176412195, -0.1536910385, -0.3695678115, -0.1791034937, 0.2304089367, 0.1619766802, 0.2839276791, 0.1476141959, -0.2447476387, -0.2305806726, 0.1207450777, -0.3596148491, -0.1681550443, -0.2051548213, 0.1944684386, 0.0610983595, -0.0546503477, -0.3160069287, 0.2876640558, 0.3030640185, -0.1423988193, 0.1180729046, -0.007545949, -0.0232540015, -0.2251898348, 0.17901133, 0.4908005297, -0.3999599814, 0.0918975845, -0.0238505788, -0.0337123312, 0.1897819489, 0.184297055, -0.1779525429, 0.2565417588, -0.0978841633, 0.0381601527, 0.2101314068, -0.3214420676, -0.5776353478, 0.1860539168, 0.1134097129, -0.1670033634, 0.0994796902, 0.0160004571, 0.2750303149, -0.0493873805, 0.0524543822, 0.3956748545, 0.1368378699, -0.1056451276, -0.3274504244, -0.5078238249, 0.3264817894, 0.1633177251, 0.4547145069, -0.1322700977, 0.2759855092, 0.2917213738, 0.3191739619, -0.1915477514, 0.1246789023, 0.2333603501, -0.0089485673, -0.0445755981, -0.0025625625, -0.331027329, -0.3097583055, 0.1477601677, 0.1029133499, 0.1654646397, -0.160955444, 0.0296834111, -0.3161895871, -0.0888075829, -0.1953116208, 0.1032688841, 0.1995638013, -0.1052767634, 0.1195931509, 0.485458672, 0.1265165806, -0.0994589552, -0.4156903923, -0.094852902, -0.1789344698, 0.0923319235, -0.2174283266, 0.204491958, 0.0336810127, 0.0258089956, 0.1796840727, 0.0730526447, -0.1607237756, -0.01106109, -0.0784520656, -0.1035443917, 0.1354628205, 0.1169634983, 0.133128196, -0.4173750281, 0.1920300275, 0.1084794179, 0.3297464848, -0.1357726753, 0.1178163737, 0.1222369522, 0.0399736427, 0.365534246, 0.1234309822, 0.1498314738, 0.4555993378, 0.0305261072, 0.1263546199, -0.0049747569, 0.3271192312, 0.1556601822, 0.0127490312, -0.1329595596, -0.0292780697, -0.113514401, 0.3166729808, -0.0845337212, 0.2671486735, 0.2927596271, -0.0765188709, -0.004859793, -0.0978269726, 0.1533986181, 0.0522079691, 0.0699053109, 0.1065890044, -0.0998439118, 0.3596494198, -0.1293925196, 0.2643093169, 0.1755420566, 0.1863330007, 0.2091357559, 0.1350802481, -0.0111759305, -0.1882828772, -0.1296796054, 0.0699938387, 0.3717178106, 0.0691838637, 0.1659454256, -0.0484344177, -0.1418601424, 0.0841909572, -0.0523920283, -0.2509427667, -0.216317296, -0.1256383061, -0.0857287124, 0.0915833339, -0.0001049591, -0.3266668022, -0.0721021518, 0.0621663556, -0.320350647, -0.1605682373, -0.2981230617, -0.3684501946, 0.07678736, 0.3871299028, 0.1112902015, 0.2952097356, -0.332629025, -0.1918788552, -0.0899456739, -0.2681111395, -0.0143139316, -0.1569703519, 0.241395101, -0.0241168831, 0.7152198553, -0.1799962074, -0.251421392, 0.1846488416, -0.0070198504, 0.0658745319, 0.2497715056, -0.1534785032, -0.0429238118, 0.0845356956, -0.485653311, -0.5155771375, -0.269656539, 0.01251911, 0.0485179015, 0.0878062025, 0.1686411053, 0.1924844235, 0.0680268332, 0.1211879849, 0.1809067428, -0.1900433153, -0.1518693417, 0.4496893287, -0.027413249, -0.429962486, 0.1881866902, 0.0109942462, 0.3149320185, 0.0079272576, -0.6572359204, 0.1441124827, -0.2763586938, 0.2499432266, -0.0219934508, 0.1834769845, 0.1143440828, -0.2136971354, 0.0479723625, 0.0449956879, 0.1059099883, -0.040621005, -0.2095252126, 0.2556219697, 0.0299457703, 0.2961856723, 0.1644208729, 0.6888409853, 0.0548557788, 0.1658405662, 0.4367816746, 0.238582328, 0.2310313582, -0.2314290255, -0.3645714223, 0.0605746992, -0.2394917756, -0.0310030244, 0.2670124769, -0.1623200327, -0.4674172997, -0.3477127552, -0.242684558, -0.3674673736, -0.2107711732, 0.1539981216, -0.0501819327, 0.0829402804, 0.0575963408, 0.1203984171, 0.0215733666, -0.2823501229, 0.2137895226, 0.5317092538, -0.2486019135, 0.1685897708, -0.2782669961, -0.3421223164, -0.4126343429, 0.2524553537, 0.0777069852, 0.4147611558, -0.0938024521, 0.3499188423, 0.2011797279, -0.0892689079, 0.290623337, -0.1702443659, 0.1230508387, 0.1972469091, 0.1049931571, -0.2152172923, -0.0624401085, -0.2943328619, -0.0166880656, 0.3054169118, -0.0444553681, -0.67096591, 0.0843288749, -0.0425857529, 0.5003301501, -0.0571771897, -0.0173500609, -0.1618566215, -0.5653649569, -0.4854041636, -0.0276872218, 0.1895756274, 0.4046096504, -0.1972092241, 0.2628990412, -0.1020784453, 0.2205625474, 0.0213168114, 0.007735298, 0.2132564485, 0.2327859551, 0.0974328518, -0.1967881769, -0.1378471553, 0.1503266245, 0.3620433807, -0.0635323003, -0.2343126237, -0.1212477162, -0.043003615, 0.0434833616, 0.1415463537, -0.1012908071, 0.0477071106, 0.148663044, -0.1379350722, 0.1658209413, -0.0128414435, 0.2519464791, -0.1063374355, -0.4962349236, -0.5676657557, 0.6620468497, 0.0233819876, 0.0701420903, 0.254171133, 0.1754047573, -0.1958613694, 0.3753731847, 0.1058032066, 1.1372190714, -0.2281342, 0.1104206815, -0.1039846987, 0.1094662026, 0.3614167869, -0.3578398228, 0.208406955, -0.3226415217, -0.1089071035, -0.0195195209, 0.0736746714, -0.0461387597, 0.0998933315, -0.3072269559, 0.2564418316, -0.3662328422, -0.0869540647, 0.1056495979, 0.2329856753, -0.4058894813, -0.0680368319, -0.321379602, 0.1196287572, -0.2146601677, 0.2546930909, -0.2110011131, -0.1254786104, -0.0614245832, -0.267270267, -0.5050504804, 0.0706437305, -0.2883505225, 0.3298688531, -0.4893511832, -0.1897747517, 0.3386204541, 0.444871217, 0.0414797552, 0.4031545818, -0.2879833579, 0.1116523072, -0.2638609707, -0.4236194491, 0.0944914222, 0.0112074362, 0.0871339664, -0.1816287935, -0.3709903061, 0.1669730544, -0.0575724319, 0.0528493412, -0.0959874913, 0.1043775827, 0.2016542852, -0.0458974242, -0.3565555513, -0.0222830959, -0.0943858027, -0.0894330069, 0.12416666, 0.082196869, -0.1119040549, 0.1409132481, 0.1852953881, -0.3349808455, 0.0217914302, 0.3491056859, 0.1834492981, 0.0239538625, 0.6245267987, 0.3155456185, -0.3965407908, -0.1898150891, 0.043914102, -0.2713771462, -0.4585742056, -0.0896050781, -0.0421894602, 0.3383437097, -0.4149286747, 0.3502539992, 0.1749070734, -0.2348316461, 0.2064643651, -0.7065883875, -0.1240220442, 0.2160940021, -0.0789091885, 0.0065748482, 0.0840709135, -0.3095990419, 0.12182834, 0.2352633327, -0.2610890269, 0.2092308402, -0.3233412504, 0.1007637307, 0.0994940326, 0.0633324161, 0.0223014951, 0.1991025209, 0.0650480464, 0.0691616461, -0.0496639088, -0.259909898, -0.0702273175, 0.1948126853, 0.2051140219, -0.0579005145, 0.2278751284, -0.5071968436, -0.168669939, 0.0822387412, -0.058475744, 0.1155843809, 0.00385974, 0.1811003536, 0.2013252676, 0.2885711789, -0.3500796556, 0.2458778471, -0.0869048014, 0.2614988089, 0.1408279687, 0.0759357885, 0.4579922855, 0.0213010833, -0.3352097571, -0.0335409306, -0.0300774481, 0.0866355598, 0.2558809519, -0.233358711, 0.3003470302, 0.1989204139, -0.1174950972, 0.5623862743, -0.149604708, 0.2065962255, 0.4130835235, 0.1872232705, -0.3698638082, 0.0016461554, 0.2932012975, -0.0966373757, -0.0709823519, 0.0759611875, 0.2589093447, -0.3223278522, 0.1137206629, -0.0657390058, 0.1647822857, -0.0565515049, 0.1922585368, 0.6700763106, 0.2270731479, 0.0499260761, -0.0694644302, 0.1699931473, 0.0953949168, 0.362806648, -0.2234566659, 0.1927638352, -0.0520039983, 0.0246350206, -0.1621612608, -0.3400565088, 0.2986113131, 0.1632018536, -0.0247744564, 0.0986765474, -0.1722577512, 0.2616478205, 0.1543592811, 0.0302231926, -0.2611557841, 0.1914433688, -0.1224778146, -0.012982592, -0.0442101061, -0.2680073977, 0.0015668734, 0.1556262821, -0.0046618585, -0.3565732241, 0.2555737197, 0.3037431538, -0.2440861613, -0.4411396384, 0.1348090768, 0.2124927342, 0.0311705116, -0.3002212942, 0.1577614397, 0.4137806594, 0.0780922771, -0.127055347, 0.2019160837, 0.4433460534, 0.4205476046, -0.3373263776, 0.0424415879, 0.0753407031, -0.0656806603, -0.0233783517, 0.2276099771, 0.4672248662, 0.2502681911, 0.397010237, 0.1184259653, -0.1415998638, -0.0319755115, 0.2360504717, -0.0639189631, -0.0566707402, -0.0451857708, -0.0590352714, 0.1407208294, -0.4205536246, -0.0135846008, -0.5078694224, 0.3400225937, 0.1610560566, 0.0025874143, 0.1775292307, -0.0925811306, 0.0479857624, -0.1569759548, 0.3962932825, 0.3195854127, 0.1991415173, -0.390832752, -0.0089955851, -0.4645191729, -0.0186358634, -0.2982346714, 0.1121007949, -0.0814330652, 0.1286559552, 0.0755083486, 0.213271901, 0.0366325527, 0.0450987294, 0.0668025613, 0.4949165881, -0.2315314412, -0.244703576, -0.1948165596, 0.2191625983, -0.1583238244, -0.3909314573, 0.0575937442, -0.1385609657, 0.0340732224, -0.3200197816, -0.0665005669, 0.0955727175, 0.0059596472, 0.3324286938, 0.1523778886, 0.5925301313, -0.1540946215, -0.2021767646, -0.2086717784, -0.0110701295, -0.1599347442, 0.3116777837, 0.1967296749, 0.0989065245, -0.1607939601, -0.1119709909, -0.029564105, 0.2984873056, -0.0448162258, 0.1949228793, -0.3669615984, -0.3863568604, 0.0579174161, 0.1138558537, 0.1190272644, 0.046926219, -0.1308562309, -0.0533182323, -0.3421496451, -0.3086864352, 0.3866544366, -0.3773032725, -0.5697822571, -0.0921551213, 0.0079287244, 0.047056552, 0.1902980953, -0.3660883904, 0.2775550783, 0.3897732198, 0.0513335578, -0.1509678662, 0.1664221436, 0.028648613, -0.0162154119, -0.0940433368, 0.1160701364, -0.0082842791, -0.3563149571, -0.2205844522, -0.3912584484 ]
https://github.com/huggingface/datasets/issues/2035
wiki40b/wikipedia for almost all languages cannot be downloaded
I tried this on another machine (followed the same procedure I've mentioned above). This is what it shows (during the freeze period) for me: ``` >>> dataset = load_dataset("wiki40b", "cs", beam_runner='DirectRunner') Downloading: 5.26kB [00:00, 1.23MB/s] Downloading: 1.40kB [00:00, 327kB/s] Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/bhavitvya/.cache/huggingface/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... WARNING:apache_beam.internal.gcp.auth:Unable to find default credentials to use: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. Connecting anonymously. WARNING:apache_beam.io.tfrecordio:Couldn't find python-snappy so the implementation of _TFRecordUtil._masked_crc32c is not as fast as it could be. ``` After around 10 minutes, here's the loading of dataset: ``` 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:16<00:00, 16.42s/sources] 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.12sources/s] 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.14sources/s] Dataset wiki40b downloaded and prepared to /home/bhavitvya/.cache/huggingface/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f. Subsequent calls will reuse this data. ```
Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ```
156
wiki40b/wikipedia for almost all languages cannot be downloaded Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ``` I tried this on another machine (followed the same procedure I've mentioned above). This is what it shows (during the freeze period) for me: ``` >>> dataset = load_dataset("wiki40b", "cs", beam_runner='DirectRunner') Downloading: 5.26kB [00:00, 1.23MB/s] Downloading: 1.40kB [00:00, 327kB/s] Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/bhavitvya/.cache/huggingface/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... WARNING:apache_beam.internal.gcp.auth:Unable to find default credentials to use: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. Connecting anonymously. WARNING:apache_beam.io.tfrecordio:Couldn't find python-snappy so the implementation of _TFRecordUtil._masked_crc32c is not as fast as it could be. ``` After around 10 minutes, here's the loading of dataset: ``` 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:16<00:00, 16.42s/sources] 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.12sources/s] 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.14sources/s] Dataset wiki40b downloaded and prepared to /home/bhavitvya/.cache/huggingface/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f. Subsequent calls will reuse this data. ```
[ -0.2544981837, -0.0779208615, -0.1537582725, 0.4308664799, 0.3997030258, 0.3504616916, 0.136850521, 0.5331581831, 0.1893272549, 0.0235845894, -0.1773036271, -0.094217591, 0.0944036171, 0.0111841382, -0.0297050904, -0.4591732919, -0.067290552, 0.0295369718, -0.1352711469, -0.1168934107, -0.25196293, 0.1256147176, -0.0791745484, -0.0490287393, -0.0387455262, -0.1828401238, -0.0958355442, -0.2073054761, -0.3507466018, -0.2408644557, 0.3545781672, 0.0192572363, 0.3101120293, 0.1529971212, -0.0001114368, -0.0509647354, 0.3131163716, -0.2357946187, -0.2936122119, -0.2888574302, -0.0720897317, -0.3261860311, -0.090439178, -0.4200314283, 0.1274462938, 0.0466824919, 0.0806712136, -0.1318009645, 0.0757576972, 0.2992254496, 0.246871233, -0.1426034123, 0.313434273, -0.1457378864, 0.3651961386, -0.3777083457, -0.0280337315, 0.3395861387, 0.2187207043, 0.0713429078, 0.2154794931, 0.2220430076, -0.2341405153, 0.0134994024, 0.0482246093, -0.2912240028, 0.2222055197, -0.6297015548, 0.5206417441, 0.5344285965, 0.8290325999, -0.128351599, -0.087467052, 0.0723920465, -0.0260592494, -0.0313744359, -0.0557401702, 0.4819796383, -0.1893264502, 0.097598277, 0.1261650175, -0.1254301518, -0.1567190886, 0.4228469431, -0.1241363436, 0.4435883164, -0.0527199246, 0.2112597078, -0.0216666665, -0.1027016938, -0.263641715, -0.0696594566, -0.0961604267, 0.2933218181, -0.2793984115, 0.0196356401, -0.1615019143, 0.0556470901, 0.3511352241, -0.1503834128, -0.2346212119, -0.0450782031, 0.0960106403, 0.1575745791, 0.1801501662, 0.1637832224, 0.0620483719, -0.200006932, 0.2782809436, 0.3079039752, -0.0842120126, -0.0761709362, -0.2100434005, -0.2230565995, -0.2947569489, 0.0944295079, 0.087529324, -0.2031710893, -0.1779467762, 0.0071132388, -0.1443607062, -0.0194389503, -0.2023950666, 0.3628211021, -0.1501427889, 0.4312386811, 0.1779012382, 0.3288222551, -0.1035724953, -0.2613103092, -0.0173523743, 0.3065484166, -0.1393197775, -0.1036605015, 0.2187827379, -0.1099155918, 0.2648516595, -0.0893723965, -0.1031378731, -0.176412195, -0.1536910385, -0.3695678115, -0.1791034937, 0.2304089367, 0.1619766802, 0.2839276791, 0.1476141959, -0.2447476387, -0.2305806726, 0.1207450777, -0.3596148491, -0.1681550443, -0.2051548213, 0.1944684386, 0.0610983595, -0.0546503477, -0.3160069287, 0.2876640558, 0.3030640185, -0.1423988193, 0.1180729046, -0.007545949, -0.0232540015, -0.2251898348, 0.17901133, 0.4908005297, -0.3999599814, 0.0918975845, -0.0238505788, -0.0337123312, 0.1897819489, 0.184297055, -0.1779525429, 0.2565417588, -0.0978841633, 0.0381601527, 0.2101314068, -0.3214420676, -0.5776353478, 0.1860539168, 0.1134097129, -0.1670033634, 0.0994796902, 0.0160004571, 0.2750303149, -0.0493873805, 0.0524543822, 0.3956748545, 0.1368378699, -0.1056451276, -0.3274504244, -0.5078238249, 0.3264817894, 0.1633177251, 0.4547145069, -0.1322700977, 0.2759855092, 0.2917213738, 0.3191739619, -0.1915477514, 0.1246789023, 0.2333603501, -0.0089485673, -0.0445755981, -0.0025625625, -0.331027329, -0.3097583055, 0.1477601677, 0.1029133499, 0.1654646397, -0.160955444, 0.0296834111, -0.3161895871, -0.0888075829, -0.1953116208, 0.1032688841, 0.1995638013, -0.1052767634, 0.1195931509, 0.485458672, 0.1265165806, -0.0994589552, -0.4156903923, -0.094852902, -0.1789344698, 0.0923319235, -0.2174283266, 0.204491958, 0.0336810127, 0.0258089956, 0.1796840727, 0.0730526447, -0.1607237756, -0.01106109, -0.0784520656, -0.1035443917, 0.1354628205, 0.1169634983, 0.133128196, -0.4173750281, 0.1920300275, 0.1084794179, 0.3297464848, -0.1357726753, 0.1178163737, 0.1222369522, 0.0399736427, 0.365534246, 0.1234309822, 0.1498314738, 0.4555993378, 0.0305261072, 0.1263546199, -0.0049747569, 0.3271192312, 0.1556601822, 0.0127490312, -0.1329595596, -0.0292780697, -0.113514401, 0.3166729808, -0.0845337212, 0.2671486735, 0.2927596271, -0.0765188709, -0.004859793, -0.0978269726, 0.1533986181, 0.0522079691, 0.0699053109, 0.1065890044, -0.0998439118, 0.3596494198, -0.1293925196, 0.2643093169, 0.1755420566, 0.1863330007, 0.2091357559, 0.1350802481, -0.0111759305, -0.1882828772, -0.1296796054, 0.0699938387, 0.3717178106, 0.0691838637, 0.1659454256, -0.0484344177, -0.1418601424, 0.0841909572, -0.0523920283, -0.2509427667, -0.216317296, -0.1256383061, -0.0857287124, 0.0915833339, -0.0001049591, -0.3266668022, -0.0721021518, 0.0621663556, -0.320350647, -0.1605682373, -0.2981230617, -0.3684501946, 0.07678736, 0.3871299028, 0.1112902015, 0.2952097356, -0.332629025, -0.1918788552, -0.0899456739, -0.2681111395, -0.0143139316, -0.1569703519, 0.241395101, -0.0241168831, 0.7152198553, -0.1799962074, -0.251421392, 0.1846488416, -0.0070198504, 0.0658745319, 0.2497715056, -0.1534785032, -0.0429238118, 0.0845356956, -0.485653311, -0.5155771375, -0.269656539, 0.01251911, 0.0485179015, 0.0878062025, 0.1686411053, 0.1924844235, 0.0680268332, 0.1211879849, 0.1809067428, -0.1900433153, -0.1518693417, 0.4496893287, -0.027413249, -0.429962486, 0.1881866902, 0.0109942462, 0.3149320185, 0.0079272576, -0.6572359204, 0.1441124827, -0.2763586938, 0.2499432266, -0.0219934508, 0.1834769845, 0.1143440828, -0.2136971354, 0.0479723625, 0.0449956879, 0.1059099883, -0.040621005, -0.2095252126, 0.2556219697, 0.0299457703, 0.2961856723, 0.1644208729, 0.6888409853, 0.0548557788, 0.1658405662, 0.4367816746, 0.238582328, 0.2310313582, -0.2314290255, -0.3645714223, 0.0605746992, -0.2394917756, -0.0310030244, 0.2670124769, -0.1623200327, -0.4674172997, -0.3477127552, -0.242684558, -0.3674673736, -0.2107711732, 0.1539981216, -0.0501819327, 0.0829402804, 0.0575963408, 0.1203984171, 0.0215733666, -0.2823501229, 0.2137895226, 0.5317092538, -0.2486019135, 0.1685897708, -0.2782669961, -0.3421223164, -0.4126343429, 0.2524553537, 0.0777069852, 0.4147611558, -0.0938024521, 0.3499188423, 0.2011797279, -0.0892689079, 0.290623337, -0.1702443659, 0.1230508387, 0.1972469091, 0.1049931571, -0.2152172923, -0.0624401085, -0.2943328619, -0.0166880656, 0.3054169118, -0.0444553681, -0.67096591, 0.0843288749, -0.0425857529, 0.5003301501, -0.0571771897, -0.0173500609, -0.1618566215, -0.5653649569, -0.4854041636, -0.0276872218, 0.1895756274, 0.4046096504, -0.1972092241, 0.2628990412, -0.1020784453, 0.2205625474, 0.0213168114, 0.007735298, 0.2132564485, 0.2327859551, 0.0974328518, -0.1967881769, -0.1378471553, 0.1503266245, 0.3620433807, -0.0635323003, -0.2343126237, -0.1212477162, -0.043003615, 0.0434833616, 0.1415463537, -0.1012908071, 0.0477071106, 0.148663044, -0.1379350722, 0.1658209413, -0.0128414435, 0.2519464791, -0.1063374355, -0.4962349236, -0.5676657557, 0.6620468497, 0.0233819876, 0.0701420903, 0.254171133, 0.1754047573, -0.1958613694, 0.3753731847, 0.1058032066, 1.1372190714, -0.2281342, 0.1104206815, -0.1039846987, 0.1094662026, 0.3614167869, -0.3578398228, 0.208406955, -0.3226415217, -0.1089071035, -0.0195195209, 0.0736746714, -0.0461387597, 0.0998933315, -0.3072269559, 0.2564418316, -0.3662328422, -0.0869540647, 0.1056495979, 0.2329856753, -0.4058894813, -0.0680368319, -0.321379602, 0.1196287572, -0.2146601677, 0.2546930909, -0.2110011131, -0.1254786104, -0.0614245832, -0.267270267, -0.5050504804, 0.0706437305, -0.2883505225, 0.3298688531, -0.4893511832, -0.1897747517, 0.3386204541, 0.444871217, 0.0414797552, 0.4031545818, -0.2879833579, 0.1116523072, -0.2638609707, -0.4236194491, 0.0944914222, 0.0112074362, 0.0871339664, -0.1816287935, -0.3709903061, 0.1669730544, -0.0575724319, 0.0528493412, -0.0959874913, 0.1043775827, 0.2016542852, -0.0458974242, -0.3565555513, -0.0222830959, -0.0943858027, -0.0894330069, 0.12416666, 0.082196869, -0.1119040549, 0.1409132481, 0.1852953881, -0.3349808455, 0.0217914302, 0.3491056859, 0.1834492981, 0.0239538625, 0.6245267987, 0.3155456185, -0.3965407908, -0.1898150891, 0.043914102, -0.2713771462, -0.4585742056, -0.0896050781, -0.0421894602, 0.3383437097, -0.4149286747, 0.3502539992, 0.1749070734, -0.2348316461, 0.2064643651, -0.7065883875, -0.1240220442, 0.2160940021, -0.0789091885, 0.0065748482, 0.0840709135, -0.3095990419, 0.12182834, 0.2352633327, -0.2610890269, 0.2092308402, -0.3233412504, 0.1007637307, 0.0994940326, 0.0633324161, 0.0223014951, 0.1991025209, 0.0650480464, 0.0691616461, -0.0496639088, -0.259909898, -0.0702273175, 0.1948126853, 0.2051140219, -0.0579005145, 0.2278751284, -0.5071968436, -0.168669939, 0.0822387412, -0.058475744, 0.1155843809, 0.00385974, 0.1811003536, 0.2013252676, 0.2885711789, -0.3500796556, 0.2458778471, -0.0869048014, 0.2614988089, 0.1408279687, 0.0759357885, 0.4579922855, 0.0213010833, -0.3352097571, -0.0335409306, -0.0300774481, 0.0866355598, 0.2558809519, -0.233358711, 0.3003470302, 0.1989204139, -0.1174950972, 0.5623862743, -0.149604708, 0.2065962255, 0.4130835235, 0.1872232705, -0.3698638082, 0.0016461554, 0.2932012975, -0.0966373757, -0.0709823519, 0.0759611875, 0.2589093447, -0.3223278522, 0.1137206629, -0.0657390058, 0.1647822857, -0.0565515049, 0.1922585368, 0.6700763106, 0.2270731479, 0.0499260761, -0.0694644302, 0.1699931473, 0.0953949168, 0.362806648, -0.2234566659, 0.1927638352, -0.0520039983, 0.0246350206, -0.1621612608, -0.3400565088, 0.2986113131, 0.1632018536, -0.0247744564, 0.0986765474, -0.1722577512, 0.2616478205, 0.1543592811, 0.0302231926, -0.2611557841, 0.1914433688, -0.1224778146, -0.012982592, -0.0442101061, -0.2680073977, 0.0015668734, 0.1556262821, -0.0046618585, -0.3565732241, 0.2555737197, 0.3037431538, -0.2440861613, -0.4411396384, 0.1348090768, 0.2124927342, 0.0311705116, -0.3002212942, 0.1577614397, 0.4137806594, 0.0780922771, -0.127055347, 0.2019160837, 0.4433460534, 0.4205476046, -0.3373263776, 0.0424415879, 0.0753407031, -0.0656806603, -0.0233783517, 0.2276099771, 0.4672248662, 0.2502681911, 0.397010237, 0.1184259653, -0.1415998638, -0.0319755115, 0.2360504717, -0.0639189631, -0.0566707402, -0.0451857708, -0.0590352714, 0.1407208294, -0.4205536246, -0.0135846008, -0.5078694224, 0.3400225937, 0.1610560566, 0.0025874143, 0.1775292307, -0.0925811306, 0.0479857624, -0.1569759548, 0.3962932825, 0.3195854127, 0.1991415173, -0.390832752, -0.0089955851, -0.4645191729, -0.0186358634, -0.2982346714, 0.1121007949, -0.0814330652, 0.1286559552, 0.0755083486, 0.213271901, 0.0366325527, 0.0450987294, 0.0668025613, 0.4949165881, -0.2315314412, -0.244703576, -0.1948165596, 0.2191625983, -0.1583238244, -0.3909314573, 0.0575937442, -0.1385609657, 0.0340732224, -0.3200197816, -0.0665005669, 0.0955727175, 0.0059596472, 0.3324286938, 0.1523778886, 0.5925301313, -0.1540946215, -0.2021767646, -0.2086717784, -0.0110701295, -0.1599347442, 0.3116777837, 0.1967296749, 0.0989065245, -0.1607939601, -0.1119709909, -0.029564105, 0.2984873056, -0.0448162258, 0.1949228793, -0.3669615984, -0.3863568604, 0.0579174161, 0.1138558537, 0.1190272644, 0.046926219, -0.1308562309, -0.0533182323, -0.3421496451, -0.3086864352, 0.3866544366, -0.3773032725, -0.5697822571, -0.0921551213, 0.0079287244, 0.047056552, 0.1902980953, -0.3660883904, 0.2775550783, 0.3897732198, 0.0513335578, -0.1509678662, 0.1664221436, 0.028648613, -0.0162154119, -0.0940433368, 0.1160701364, -0.0082842791, -0.3563149571, -0.2205844522, -0.3912584484 ]
https://github.com/huggingface/datasets/issues/2035
wiki40b/wikipedia for almost all languages cannot be downloaded
Hi I honestly also now tried on another machine and nothing shows up after hours of waiting. Are you sure you have not set any specific setting? maybe google cloud which seems it is used here, needs some credential setting? thanks for any suggestions on this On Tue, Mar 16, 2021 at 10:02 AM Bhavitvya Malik ***@***.***> wrote: > I tried this on another machine (followed the same procedure I've > mentioned above). This is what it shows (during the freeze period) for me: > > >>> dataset = load_dataset("wiki40b", "cs", beam_runner='DirectRunner') > Downloading: 5.26kB [00:00, 1.23MB/s] > Downloading: 1.40kB [00:00, 327kB/s] > Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/bhavitvya/.cache/huggingface/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... > WARNING:apache_beam.internal.gcp.auth:Unable to find default credentials to use: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. > Connecting anonymously. > WARNING:apache_beam.io.tfrecordio:Couldn't find python-snappy so the implementation of _TFRecordUtil._masked_crc32c is not as fast as it could be. > > After around 10 minutes, here's the loading of dataset: > > 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:16<00:00, 16.42s/sources] > 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.12sources/s] > 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.14sources/s] > Dataset wiki40b downloaded and prepared to /home/bhavitvya/.cache/huggingface/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f. Subsequent calls will reuse this data. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2035#issuecomment-800081772>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMX6A2ZTRZUIIZVFRCDTD4NC3ANCNFSM4ZA5R2UA> > . >
Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ```
259
wiki40b/wikipedia for almost all languages cannot be downloaded Hi I am trying to download the data as below: ``` from datasets import load_dataset dataset = load_dataset("wiki40b", "cs") print(dataset) ``` I am getting this error. @lhoestq I will be grateful if you could assist me with this error. For almost all languages except english I am getting this error. I really need majority of languages in this dataset to be able to train my models for a deadline and your great scalable super well-written library is my only hope to train the models at scale while being low on resources. thank you very much. ``` (fast) dara@vgne046:/user/dara/dev/codes/seq2seq$ python test_data.py Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to temp/dara/cache_home_2/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... Traceback (most recent call last): File "test_data.py", line 3, in <module> dataset = load_dataset("wiki40b", "cs") File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/load.py", line 746, in load_dataset use_auth_token=use_auth_token, File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 579, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/datasets/builder.py", line 1105, in _download_and_prepare import apache_beam as beam File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/__init__.py", line 96, in <module> from apache_beam import io File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/__init__.py", line 23, in <module> from apache_beam.io.avroio import * File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/apache_beam-2.28.0-py3.7-linux-x86_64.egg/apache_beam/io/avroio.py", line 55, in <module> import avro 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 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 34, in <module> File "/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/__init__.py", line 30, in LoadResource NotADirectoryError: [Errno 20] Not a directory: '/user/dara/libs/anaconda3/envs/fast/lib/python3.7/site-packages/avro_python3-1.9.2.1-py3.7.egg/avro/VERSION.txt' ``` Hi I honestly also now tried on another machine and nothing shows up after hours of waiting. Are you sure you have not set any specific setting? maybe google cloud which seems it is used here, needs some credential setting? thanks for any suggestions on this On Tue, Mar 16, 2021 at 10:02 AM Bhavitvya Malik ***@***.***> wrote: > I tried this on another machine (followed the same procedure I've > mentioned above). This is what it shows (during the freeze period) for me: > > >>> dataset = load_dataset("wiki40b", "cs", beam_runner='DirectRunner') > Downloading: 5.26kB [00:00, 1.23MB/s] > Downloading: 1.40kB [00:00, 327kB/s] > Downloading and preparing dataset wiki40b/cs (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /home/bhavitvya/.cache/huggingface/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f... > WARNING:apache_beam.internal.gcp.auth:Unable to find default credentials to use: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. > Connecting anonymously. > WARNING:apache_beam.io.tfrecordio:Couldn't find python-snappy so the implementation of _TFRecordUtil._masked_crc32c is not as fast as it could be. > > After around 10 minutes, here's the loading of dataset: > > 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:16<00:00, 16.42s/sources] > 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.12sources/s] > 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.14sources/s] > Dataset wiki40b downloaded and prepared to /home/bhavitvya/.cache/huggingface/datasets/wiki40b/cs/1.1.0/063778187363ffb294896eaa010fc254b42b73e31117c71573a953b0b0bf010f. Subsequent calls will reuse this data. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/datasets/issues/2035#issuecomment-800081772>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AS37NMX6A2ZTRZUIIZVFRCDTD4NC3ANCNFSM4ZA5R2UA> > . >
[ -0.2544981837, -0.0779208615, -0.1537582725, 0.4308664799, 0.3997030258, 0.3504616916, 0.136850521, 0.5331581831, 0.1893272549, 0.0235845894, -0.1773036271, -0.094217591, 0.0944036171, 0.0111841382, -0.0297050904, -0.4591732919, -0.067290552, 0.0295369718, -0.1352711469, -0.1168934107, -0.25196293, 0.1256147176, -0.0791745484, -0.0490287393, -0.0387455262, -0.1828401238, -0.0958355442, -0.2073054761, -0.3507466018, -0.2408644557, 0.3545781672, 0.0192572363, 0.3101120293, 0.1529971212, -0.0001114368, -0.0509647354, 0.3131163716, -0.2357946187, -0.2936122119, -0.2888574302, -0.0720897317, -0.3261860311, -0.090439178, -0.4200314283, 0.1274462938, 0.0466824919, 0.0806712136, -0.1318009645, 0.0757576972, 0.2992254496, 0.246871233, -0.1426034123, 0.313434273, -0.1457378864, 0.3651961386, -0.3777083457, -0.0280337315, 0.3395861387, 0.2187207043, 0.0713429078, 0.2154794931, 0.2220430076, -0.2341405153, 0.0134994024, 0.0482246093, -0.2912240028, 0.2222055197, -0.6297015548, 0.5206417441, 0.5344285965, 0.8290325999, -0.128351599, -0.087467052, 0.0723920465, -0.0260592494, -0.0313744359, -0.0557401702, 0.4819796383, -0.1893264502, 0.097598277, 0.1261650175, -0.1254301518, -0.1567190886, 0.4228469431, -0.1241363436, 0.4435883164, -0.0527199246, 0.2112597078, -0.0216666665, -0.1027016938, -0.263641715, -0.0696594566, -0.0961604267, 0.2933218181, -0.2793984115, 0.0196356401, -0.1615019143, 0.0556470901, 0.3511352241, -0.1503834128, -0.2346212119, -0.0450782031, 0.0960106403, 0.1575745791, 0.1801501662, 0.1637832224, 0.0620483719, -0.200006932, 0.2782809436, 0.3079039752, -0.0842120126, -0.0761709362, -0.2100434005, -0.2230565995, -0.2947569489, 0.0944295079, 0.087529324, -0.2031710893, -0.1779467762, 0.0071132388, -0.1443607062, -0.0194389503, -0.2023950666, 0.3628211021, -0.1501427889, 0.4312386811, 0.1779012382, 0.3288222551, -0.1035724953, -0.2613103092, -0.0173523743, 0.3065484166, -0.1393197775, -0.1036605015, 0.2187827379, -0.1099155918, 0.2648516595, -0.0893723965, -0.1031378731, -0.176412195, -0.1536910385, -0.3695678115, -0.1791034937, 0.2304089367, 0.1619766802, 0.2839276791, 0.1476141959, -0.2447476387, -0.2305806726, 0.1207450777, -0.3596148491, -0.1681550443, -0.2051548213, 0.1944684386, 0.0610983595, -0.0546503477, -0.3160069287, 0.2876640558, 0.3030640185, -0.1423988193, 0.1180729046, -0.007545949, -0.0232540015, -0.2251898348, 0.17901133, 0.4908005297, -0.3999599814, 0.0918975845, -0.0238505788, -0.0337123312, 0.1897819489, 0.184297055, -0.1779525429, 0.2565417588, -0.0978841633, 0.0381601527, 0.2101314068, -0.3214420676, -0.5776353478, 0.1860539168, 0.1134097129, -0.1670033634, 0.0994796902, 0.0160004571, 0.2750303149, -0.0493873805, 0.0524543822, 0.3956748545, 0.1368378699, -0.1056451276, -0.3274504244, -0.5078238249, 0.3264817894, 0.1633177251, 0.4547145069, -0.1322700977, 0.2759855092, 0.2917213738, 0.3191739619, -0.1915477514, 0.1246789023, 0.2333603501, -0.0089485673, -0.0445755981, -0.0025625625, -0.331027329, -0.3097583055, 0.1477601677, 0.1029133499, 0.1654646397, -0.160955444, 0.0296834111, -0.3161895871, -0.0888075829, -0.1953116208, 0.1032688841, 0.1995638013, -0.1052767634, 0.1195931509, 0.485458672, 0.1265165806, -0.0994589552, -0.4156903923, -0.094852902, -0.1789344698, 0.0923319235, -0.2174283266, 0.204491958, 0.0336810127, 0.0258089956, 0.1796840727, 0.0730526447, -0.1607237756, -0.01106109, -0.0784520656, -0.1035443917, 0.1354628205, 0.1169634983, 0.133128196, -0.4173750281, 0.1920300275, 0.1084794179, 0.3297464848, -0.1357726753, 0.1178163737, 0.1222369522, 0.0399736427, 0.365534246, 0.1234309822, 0.1498314738, 0.4555993378, 0.0305261072, 0.1263546199, -0.0049747569, 0.3271192312, 0.1556601822, 0.0127490312, -0.1329595596, -0.0292780697, -0.113514401, 0.3166729808, -0.0845337212, 0.2671486735, 0.2927596271, -0.0765188709, -0.004859793, -0.0978269726, 0.1533986181, 0.0522079691, 0.0699053109, 0.1065890044, -0.0998439118, 0.3596494198, -0.1293925196, 0.2643093169, 0.1755420566, 0.1863330007, 0.2091357559, 0.1350802481, -0.0111759305, -0.1882828772, -0.1296796054, 0.0699938387, 0.3717178106, 0.0691838637, 0.1659454256, -0.0484344177, -0.1418601424, 0.0841909572, -0.0523920283, -0.2509427667, -0.216317296, -0.1256383061, -0.0857287124, 0.0915833339, -0.0001049591, -0.3266668022, -0.0721021518, 0.0621663556, -0.320350647, -0.1605682373, -0.2981230617, -0.3684501946, 0.07678736, 0.3871299028, 0.1112902015, 0.2952097356, -0.332629025, -0.1918788552, -0.0899456739, -0.2681111395, -0.0143139316, -0.1569703519, 0.241395101, -0.0241168831, 0.7152198553, -0.1799962074, -0.251421392, 0.1846488416, -0.0070198504, 0.0658745319, 0.2497715056, -0.1534785032, -0.0429238118, 0.0845356956, -0.485653311, -0.5155771375, -0.269656539, 0.01251911, 0.0485179015, 0.0878062025, 0.1686411053, 0.1924844235, 0.0680268332, 0.1211879849, 0.1809067428, -0.1900433153, -0.1518693417, 0.4496893287, -0.027413249, -0.429962486, 0.1881866902, 0.0109942462, 0.3149320185, 0.0079272576, -0.6572359204, 0.1441124827, -0.2763586938, 0.2499432266, -0.0219934508, 0.1834769845, 0.1143440828, -0.2136971354, 0.0479723625, 0.0449956879, 0.1059099883, -0.040621005, -0.2095252126, 0.2556219697, 0.0299457703, 0.2961856723, 0.1644208729, 0.6888409853, 0.0548557788, 0.1658405662, 0.4367816746, 0.238582328, 0.2310313582, -0.2314290255, -0.3645714223, 0.0605746992, -0.2394917756, -0.0310030244, 0.2670124769, -0.1623200327, -0.4674172997, -0.3477127552, -0.242684558, -0.3674673736, -0.2107711732, 0.1539981216, -0.0501819327, 0.0829402804, 0.0575963408, 0.1203984171, 0.0215733666, -0.2823501229, 0.2137895226, 0.5317092538, -0.2486019135, 0.1685897708, -0.2782669961, -0.3421223164, -0.4126343429, 0.2524553537, 0.0777069852, 0.4147611558, -0.0938024521, 0.3499188423, 0.2011797279, -0.0892689079, 0.290623337, -0.1702443659, 0.1230508387, 0.1972469091, 0.1049931571, -0.2152172923, -0.0624401085, -0.2943328619, -0.0166880656, 0.3054169118, -0.0444553681, -0.67096591, 0.0843288749, -0.0425857529, 0.5003301501, -0.0571771897, -0.0173500609, -0.1618566215, -0.5653649569, -0.4854041636, -0.0276872218, 0.1895756274, 0.4046096504, -0.1972092241, 0.2628990412, -0.1020784453, 0.2205625474, 0.0213168114, 0.007735298, 0.2132564485, 0.2327859551, 0.0974328518, -0.1967881769, -0.1378471553, 0.1503266245, 0.3620433807, -0.0635323003, -0.2343126237, -0.1212477162, -0.043003615, 0.0434833616, 0.1415463537, -0.1012908071, 0.0477071106, 0.148663044, -0.1379350722, 0.1658209413, -0.0128414435, 0.2519464791, -0.1063374355, -0.4962349236, -0.5676657557, 0.6620468497, 0.0233819876, 0.0701420903, 0.254171133, 0.1754047573, -0.1958613694, 0.3753731847, 0.1058032066, 1.1372190714, -0.2281342, 0.1104206815, -0.1039846987, 0.1094662026, 0.3614167869, -0.3578398228, 0.208406955, -0.3226415217, -0.1089071035, -0.0195195209, 0.0736746714, -0.0461387597, 0.0998933315, -0.3072269559, 0.2564418316, -0.3662328422, -0.0869540647, 0.1056495979, 0.2329856753, -0.4058894813, -0.0680368319, -0.321379602, 0.1196287572, -0.2146601677, 0.2546930909, -0.2110011131, -0.1254786104, -0.0614245832, -0.267270267, -0.5050504804, 0.0706437305, -0.2883505225, 0.3298688531, -0.4893511832, -0.1897747517, 0.3386204541, 0.444871217, 0.0414797552, 0.4031545818, -0.2879833579, 0.1116523072, -0.2638609707, -0.4236194491, 0.0944914222, 0.0112074362, 0.0871339664, -0.1816287935, -0.3709903061, 0.1669730544, -0.0575724319, 0.0528493412, -0.0959874913, 0.1043775827, 0.2016542852, -0.0458974242, -0.3565555513, -0.0222830959, -0.0943858027, -0.0894330069, 0.12416666, 0.082196869, -0.1119040549, 0.1409132481, 0.1852953881, -0.3349808455, 0.0217914302, 0.3491056859, 0.1834492981, 0.0239538625, 0.6245267987, 0.3155456185, -0.3965407908, -0.1898150891, 0.043914102, -0.2713771462, -0.4585742056, -0.0896050781, -0.0421894602, 0.3383437097, -0.4149286747, 0.3502539992, 0.1749070734, -0.2348316461, 0.2064643651, -0.7065883875, -0.1240220442, 0.2160940021, -0.0789091885, 0.0065748482, 0.0840709135, -0.3095990419, 0.12182834, 0.2352633327, -0.2610890269, 0.2092308402, -0.3233412504, 0.1007637307, 0.0994940326, 0.0633324161, 0.0223014951, 0.1991025209, 0.0650480464, 0.0691616461, -0.0496639088, -0.259909898, -0.0702273175, 0.1948126853, 0.2051140219, -0.0579005145, 0.2278751284, -0.5071968436, -0.168669939, 0.0822387412, -0.058475744, 0.1155843809, 0.00385974, 0.1811003536, 0.2013252676, 0.2885711789, -0.3500796556, 0.2458778471, -0.0869048014, 0.2614988089, 0.1408279687, 0.0759357885, 0.4579922855, 0.0213010833, -0.3352097571, -0.0335409306, -0.0300774481, 0.0866355598, 0.2558809519, -0.233358711, 0.3003470302, 0.1989204139, -0.1174950972, 0.5623862743, -0.149604708, 0.2065962255, 0.4130835235, 0.1872232705, -0.3698638082, 0.0016461554, 0.2932012975, -0.0966373757, -0.0709823519, 0.0759611875, 0.2589093447, -0.3223278522, 0.1137206629, -0.0657390058, 0.1647822857, -0.0565515049, 0.1922585368, 0.6700763106, 0.2270731479, 0.0499260761, -0.0694644302, 0.1699931473, 0.0953949168, 0.362806648, -0.2234566659, 0.1927638352, -0.0520039983, 0.0246350206, -0.1621612608, -0.3400565088, 0.2986113131, 0.1632018536, -0.0247744564, 0.0986765474, -0.1722577512, 0.2616478205, 0.1543592811, 0.0302231926, -0.2611557841, 0.1914433688, -0.1224778146, -0.012982592, -0.0442101061, -0.2680073977, 0.0015668734, 0.1556262821, -0.0046618585, -0.3565732241, 0.2555737197, 0.3037431538, -0.2440861613, -0.4411396384, 0.1348090768, 0.2124927342, 0.0311705116, -0.3002212942, 0.1577614397, 0.4137806594, 0.0780922771, -0.127055347, 0.2019160837, 0.4433460534, 0.4205476046, -0.3373263776, 0.0424415879, 0.0753407031, -0.0656806603, -0.0233783517, 0.2276099771, 0.4672248662, 0.2502681911, 0.397010237, 0.1184259653, -0.1415998638, -0.0319755115, 0.2360504717, -0.0639189631, -0.0566707402, -0.0451857708, -0.0590352714, 0.1407208294, -0.4205536246, -0.0135846008, -0.5078694224, 0.3400225937, 0.1610560566, 0.0025874143, 0.1775292307, -0.0925811306, 0.0479857624, -0.1569759548, 0.3962932825, 0.3195854127, 0.1991415173, -0.390832752, -0.0089955851, -0.4645191729, -0.0186358634, -0.2982346714, 0.1121007949, -0.0814330652, 0.1286559552, 0.0755083486, 0.213271901, 0.0366325527, 0.0450987294, 0.0668025613, 0.4949165881, -0.2315314412, -0.244703576, -0.1948165596, 0.2191625983, -0.1583238244, -0.3909314573, 0.0575937442, -0.1385609657, 0.0340732224, -0.3200197816, -0.0665005669, 0.0955727175, 0.0059596472, 0.3324286938, 0.1523778886, 0.5925301313, -0.1540946215, -0.2021767646, -0.2086717784, -0.0110701295, -0.1599347442, 0.3116777837, 0.1967296749, 0.0989065245, -0.1607939601, -0.1119709909, -0.029564105, 0.2984873056, -0.0448162258, 0.1949228793, -0.3669615984, -0.3863568604, 0.0579174161, 0.1138558537, 0.1190272644, 0.046926219, -0.1308562309, -0.0533182323, -0.3421496451, -0.3086864352, 0.3866544366, -0.3773032725, -0.5697822571, -0.0921551213, 0.0079287244, 0.047056552, 0.1902980953, -0.3660883904, 0.2775550783, 0.3897732198, 0.0513335578, -0.1509678662, 0.1664221436, 0.028648613, -0.0162154119, -0.0940433368, 0.1160701364, -0.0082842791, -0.3563149571, -0.2205844522, -0.3912584484 ]
https://github.com/huggingface/datasets/issues/2031
wikipedia.py generator that extracts XML doesn't release memory
Hi @miyamonz Thanks for investigating this issue, good job ! It would be awesome to integrate your fix in the library, could you open a pull request ?
I tried downloading Japanese wikipedia, but it always failed because of out of memory maybe. I found that the generator function that extracts XML data in wikipedia.py doesn't release memory in the loop. https://github.com/huggingface/datasets/blob/13a5b7db992ad5cf77895e4c0f76595314390418/datasets/wikipedia/wikipedia.py#L464-L502 `root.clear()` intend to clear memory, but it doesn't. https://github.com/huggingface/datasets/blob/13a5b7db992ad5cf77895e4c0f76595314390418/datasets/wikipedia/wikipedia.py#L490 https://github.com/huggingface/datasets/blob/13a5b7db992ad5cf77895e4c0f76595314390418/datasets/wikipedia/wikipedia.py#L494 I replaced them with `elem.clear()`, then it seems to work correctly. here is the notebook to reproduce it. https://gist.github.com/miyamonz/dc06117302b6e85fa51cbf46dde6bb51#file-xtract_content-ipynb
28
wikipedia.py generator that extracts XML doesn't release memory I tried downloading Japanese wikipedia, but it always failed because of out of memory maybe. I found that the generator function that extracts XML data in wikipedia.py doesn't release memory in the loop. https://github.com/huggingface/datasets/blob/13a5b7db992ad5cf77895e4c0f76595314390418/datasets/wikipedia/wikipedia.py#L464-L502 `root.clear()` intend to clear memory, but it doesn't. https://github.com/huggingface/datasets/blob/13a5b7db992ad5cf77895e4c0f76595314390418/datasets/wikipedia/wikipedia.py#L490 https://github.com/huggingface/datasets/blob/13a5b7db992ad5cf77895e4c0f76595314390418/datasets/wikipedia/wikipedia.py#L494 I replaced them with `elem.clear()`, then it seems to work correctly. here is the notebook to reproduce it. https://gist.github.com/miyamonz/dc06117302b6e85fa51cbf46dde6bb51#file-xtract_content-ipynb Hi @miyamonz Thanks for investigating this issue, good job ! It would be awesome to integrate your fix in the library, could you open a pull request ?
[ 0.2186527103, -0.1109621823, -0.0523671359, 0.6246848106, 0.3160347939, 0.0942654833, -0.2117364407, 0.3332335949, 0.2093813419, 0.2579503655, 0.0060538808, 0.1517626941, 0.232789889, -0.1265529841, -0.2175300866, -0.2103437781, 0.0437291563, 0.0743471459, 0.0371217132, -0.2225492597, -0.2259664387, 0.1241693646, -0.2827932537, -0.121471107, -0.1757006943, 0.1507508606, 0.0834618956, -0.1925339252, -0.1768441796, -0.3868058324, 0.1427424401, 0.0021262416, -0.1252809912, 0.2270928919, -0.0001113044, -0.1786877662, 0.5870486498, -0.017546013, -0.1438790113, 0.1073924825, -0.2037127763, -0.0739123821, -0.1006893367, -0.2878381014, 0.1415049434, -0.0300178267, 0.1694545895, -0.2743771076, 0.3588359058, -0.0555355363, 0.229668811, -0.0995120779, 0.4134441614, -0.0468068197, 0.7186950445, 0.2662896812, -0.0335872062, 0.0294990614, 0.1483321339, -0.1202114746, 0.0261033718, 0.4042426944, -0.1569176763, 0.0165872369, 0.2526494265, -0.1493369937, 0.0439887419, -0.506665349, 0.4620769024, 0.3427118361, 0.5755245686, -0.1499212384, 0.1062826887, 0.0310703628, -0.103971757, -0.1315818578, 0.2247124761, 0.4001596272, -0.6533280015, -0.0683356151, 0.3109063506, -0.482067436, -0.179092139, 0.2063480616, -0.0007486127, 0.31837672, -0.007374391, 0.0634121597, 0.2590226233, -0.0018347035, -0.1167004555, -0.0434841774, -0.0742314458, 0.2187657803, 0.0305326954, 0.1633390188, 0.1844055355, -0.182295993, 0.2779968083, -0.4200806916, -0.4094337225, 0.0066294009, 0.2780644298, -0.0407772362, 0.389408201, 0.027034156, -0.0170566179, 0.113342233, 0.3600499332, 0.2115769535, -0.3496323824, -0.0846011043, 0.130389303, 0.0520467423, 0.0831237286, -0.1065110937, 0.0191855971, -0.067659229, 0.1701020151, 0.2386857867, -0.2658778727, -0.0708774775, -0.208052367, 0.4120155573, -0.0438275933, 0.3727596402, 0.1869974136, 0.0853897259, -0.4100781381, -0.311619103, -0.1378389597, 0.252220273, -0.2821926177, 0.0472868979, 0.0010049059, -0.1443127841, 0.2116988599, 0.1731067449, -0.193202883, -0.403550595, 0.0540765934, -0.1906531751, 0.2073851526, 0.2648633122, 0.0696725994, 0.2217061967, -0.1199444905, -0.0872633383, -0.042838417, 0.2829096615, -0.0179265551, -0.0642534643, 0.0001694868, 0.2416818291, 0.065980643, 0.1953769922, 0.008276578, -0.1624777168, 0.5027117133, 0.1204012781, 0.0157039389, 0.0061151409, -0.012003745, -0.2563002408, 0.1782667041, 0.4500468373, 0.1154133081, 0.1249705777, -0.1744932234, 0.1334433705, 0.4826316535, 0.1633789241, 0.0041833417, 0.4243835807, -0.1227869615, 0.259170413, -0.0239813793, -0.263995111, -0.3197955787, -0.0183573011, 0.12099462, 0.2170034945, -0.039485205, 0.0274869036, 0.1240424439, 0.3383145332, 0.0136305774, 0.2789424658, 0.0746849701, 0.1292008162, -0.4539271295, -0.2271738648, 0.2193468511, -0.3085441291, 0.3155324161, -0.0395958759, 0.127644226, 0.403335005, 0.6220804453, -0.2563409507, 0.36804986, 0.158197239, 0.3149205446, 0.0550057255, 0.0325528421, -0.1054978743, -0.12108244, 0.0815542787, -0.2072689831, 0.3825249374, -0.0645793155, -0.1309959739, -0.1074616536, 0.0873797163, -0.2546545863, -0.3456026912, 0.204991594, 0.101607278, 0.3502483368, 0.2771034241, 0.1317820698, -0.448538363, -0.1533706486, 0.1642218828, -0.7328388691, 0.0174811818, -0.1648583412, -0.0856671929, -0.1884651035, 0.073908478, -0.0746876448, 0.0146214301, -0.1174388751, -0.1440371126, 0.2105427235, 0.1954228878, -0.276990056, -0.080757536, 0.2259407192, -0.4512326717, 0.1940930337, 0.458764255, 0.1753473133, -0.0962864161, 0.1605661809, -0.1155885532, -0.0212011691, 0.0453737862, 0.1233116686, 0.0445284843, 0.2474221736, 0.1230114996, 0.1593005955, -0.1362756938, 0.1121829748, 0.5882782936, -0.0906398296, 0.0201324113, -0.1109914482, -0.0526720695, 0.4489463866, 0.2313284874, 0.1596063226, 0.0479359105, -0.3074399829, -0.3058311343, 0.0191245526, 0.0920180678, -0.158615157, -0.0036710417, 0.1324583143, -0.0507998802, 0.3378244638, -0.2958722413, 0.4203757942, -0.0014916052, 0.1611881107, 0.216983825, 0.1296709627, -0.0276828371, -0.3015904427, 0.2943030596, -0.0072420831, 0.3758419454, 0.1096900031, -0.2038993686, 0.0588487387, -0.4482652247, 0.0137912994, -0.1235478073, -0.2024696767, -0.3298229575, 0.110955134, 0.2990665734, -0.2745770514, -0.1786493063, 0.039827127, -0.2857561111, 0.0882398337, -0.0641836002, -0.1608579159, -0.3678183258, -0.1747341752, 0.0267359838, 0.2860378027, -0.0619838983, 0.0603971221, 0.0625114292, -0.2241583914, -0.2190741599, -0.1240186393, 0.2660339177, -0.0900256187, 0.0177640114, -0.2295582145, 0.4114501774, 0.146336332, -0.1430456042, 0.2513378263, -0.325745821, 0.0158339087, 0.2487398088, 0.149999544, 0.1744736284, -0.1233964786, -0.4725925922, 0.0953735635, -0.4844039977, 0.2165412158, -0.071549654, 0.1014146432, 0.6841794252, 0.0560016893, -0.0651491955, -0.0548732206, 0.1761160195, -0.3081729114, -0.1929737031, 0.2051040232, -0.167352125, -0.3377018571, 0.0364821069, -0.0153453993, 0.3164590597, 0.3823056817, -0.2814798355, 0.2819819152, -0.1632005125, 0.3446781039, 0.0712389573, 0.2762084901, 0.1284640729, -0.034260489, -0.0964971259, 0.09769734, 0.4960941374, -0.0526961051, -0.0706969649, 0.0776837394, 0.1368723214, 0.0494219214, 0.0495296121, 0.4761866927, 0.1436741203, 0.5873880982, 0.3695218563, 0.1171236858, 0.0994822085, -0.0463384502, -0.1920557916, 0.0076180426, -0.209737435, -0.2204044908, 0.1437854469, 0.0391851291, -0.136160627, -0.1121593714, -0.017456701, -0.1355142742, -0.4964637756, 0.2188597172, 0.2334726751, 0.3340347409, -0.0010709564, 0.2686023414, 0.1284433901, -0.3472022414, 0.0751790553, -0.2073791921, 0.2089842111, -0.0089350203, 0.00953764, -0.3298081756, -0.5612028837, 0.0703183189, 0.0946090147, -0.1601822227, 0.1369473487, -0.2673760056, 0.1915386915, -0.0156707205, 0.2761349082, 0.1296465844, 0.0107783014, 0.0797570869, -0.0402336642, -0.0932372212, 0.2106628269, -0.1364920735, -0.0208928939, 0.216100812, -0.045199465, -0.4547624588, -0.1504537761, 0.0004931282, 0.3498810828, -0.1717814356, 0.0372957252, -0.1772454828, -0.3322715163, -0.5068715215, -0.1046339571, 0.1379765123, 0.4159508646, 0.0982623696, -0.1348451972, 0.282101512, 0.0894630775, -0.0784475505, 0.0764088407, 0.3025163412, -0.1999039501, -0.0024879489, -0.0331885852, -0.2916372418, 0.0972171202, 0.1391354054, 0.0937780291, 0.0013576135, -0.3511090875, -0.1426323205, -0.1238651648, 0.0209074747, -0.0997714177, 0.2029339969, -0.096960105, 0.1006512344, -0.2624903917, -0.1832820326, 0.1236000732, -0.1975305229, 0.1065524891, -0.2093930095, 0.3150333464, -0.0883085951, 0.0970243663, 0.5454164147, 0.0013294941, -0.3294947147, -0.0218485128, 0.2135734707, 0.850389123, -0.1525958925, 0.2035501003, 0.3837124407, 0.2043780684, 0.4438610077, -0.0951675251, 0.4557700455, -0.4460805655, 0.1965769976, 0.1880087703, 0.2044648528, -0.1236271337, -0.3261244297, -0.0760764405, 0.0926754996, -0.1996021718, 0.057218913, -0.074613139, 0.3386761546, -0.0680001453, -0.1012852192, -0.1137883142, 0.0897196457, -0.0381053947, 0.3747814, -0.1996068507, 0.1092805192, 0.1518606991, -0.008616914, -0.3571420312, 0.1347114146, -0.1278682947, 0.3138392568, -0.1692621112, -0.2985731363, -0.15227741, 0.2091224939, -0.3088805079, 0.2668369412, -0.1183213964, 0.0090402672, -0.1343427896, -0.3013683259, -0.0981240198, 0.2041150033, 0.2514207661, -0.0793511793, -0.3915470541, 0.3663367033, -0.1248371154, -0.2694857717, -0.3880555332, 0.0063177198, -0.2515436411, -0.0010344178, -0.0199075695, -0.0388659798, -0.4225256145, -0.0467491373, 0.1766574234, 0.2087342441, -0.3466227353, 0.1273146719, -0.2620409131, -0.1558555216, -0.0108478926, -0.0530655347, 0.4631014764, 0.1669986099, 0.4985493422, 0.3981515467, -0.1369815916, -0.20703049, -0.2525364757, -0.244241327, -0.2741565704, 0.3001498282, -0.0792825744, -0.0194022302, -0.2108326256, 0.1423033029, -0.1996143013, -0.2362210304, 0.0427227467, -0.1615916789, -0.2933999598, 0.23496674, -0.0004800374, 0.0744672269, -0.0216560587, 0.0198188312, 0.1276594698, 0.1310805082, -0.2810685337, -0.035429772, -0.0050443374, 0.1445889324, 0.1383121461, -0.1445308775, -0.0625242591, -0.0294952616, 0.0763281882, 0.103224583, -0.1214114949, -0.2354753166, 0.1276704818, 0.0888684541, 0.0758988038, -0.1377897412, 0.1375189424, -0.2588724196, 0.0512373485, -0.243494913, 0.1451594085, 0.0246918518, -0.1223564968, 0.2717656493, 0.0594723113, 0.0915279612, -0.1313970685, 0.252202034, 0.0426173359, 0.3345510066, 0.008038952, 0.1259250641, 0.3993858099, -0.1260974407, -0.7414152622, -0.0434416197, -0.123515889, -0.1203076541, 0.3450508714, -0.0021815095, -0.2966969609, 0.3581518829, 0.1455203891, 0.363809675, 0.03176976, 0.0791694671, 0.0330606997, 0.2661414444, -0.1345176101, 0.123359479, 0.0110245096, -0.1922680587, -0.1088288575, 0.0627266914, -0.0308703613, -0.2388402373, 0.02542313, 0.1598430723, -0.0791817084, -0.1824396402, 0.4027221501, 0.051598303, 0.1644678116, -0.0325862542, 0.022465229, 0.1362171173, 0.1064553931, 0.273283422, 0.1820957512, 0.1362059712, 0.0950581729, 0.0025314202, -0.1988526732, 0.0505050905, -0.116030477, 0.4192363918, -0.3653093874, 0.2405397892, -0.1250740588, 0.0292007178, 0.2645375729, 0.0168228522, -0.2856103778, 0.2863123715, -0.26935637, -0.1376814246, 0.0908487961, -0.348892957, 0.0829976797, 0.1361266077, 0.2529470921, -0.1999784559, 0.2733368576, 0.0997958109, -0.405867666, -0.3179627955, 0.6245744824, -0.0224792622, 0.2209908813, -0.4029294252, -0.1296218634, 0.1554764658, -0.1812814176, -0.4392130375, 0.4111100733, 0.2919530571, 0.4301741123, -0.513015449, 0.1023000777, -0.1698186994, -0.0790034533, -0.2631184161, 0.2411455512, 0.191272527, 0.1533513218, -0.084881708, 0.0882208496, -0.2010699809, -0.3969240487, 0.5125553012, 0.291836679, -0.0400136448, -0.2914662659, 0.0826322064, -0.2327853441, -0.1004540995, -0.1515385658, -0.4054411948, 0.5398057699, 0.1902053356, 0.0122689726, -0.0175532196, -0.2326767743, 0.0941385403, -0.1395606399, 0.2033523023, 0.1744116545, 0.0770209059, -0.3007365763, -0.296995759, -0.4083119631, 0.4256490767, -0.3481346965, -0.1179603115, 0.0067750481, 0.4143896103, -0.2831631005, -0.0244601686, -0.1137406826, -0.405359745, 0.0567635521, 0.2254751623, -0.1330942959, 0.0131692477, 0.0438831411, -0.2902202904, -0.0594619326, -0.4011068344, 0.3153994381, -0.3039937317, 0.032793209, -0.0892022774, 0.2010951042, 0.2443838418, 0.1934107244, 0.3121205568, 0.1702416837, -0.1130368486, -0.0869575813, -0.5135855079, -0.2686932981, -0.0153141385, 0.0984289274, 0.1275865287, 0.0767479464, 0.3675938249, -0.2123591155, -0.0594634339, -0.5560924411, 0.4299429655, -0.2201289535, 0.0037103184, -0.2014355361, -0.1379738003, -0.0401603281, 0.0747394189, 0.1364293098, 0.3669694662, -0.2426817268, 0.0443305708, -0.5643945932, -0.4570702016, 0.058505021, -0.4836912155, -0.5538265705, -0.1202633381, 0.2507524192, -0.0282404255, -0.1778517067, -0.367670238, 0.2605847418, 0.0732463747, 0.0482598282, -0.290091157, -0.1871772707, -0.059382055, -0.0868129507, 0.1022007912, 0.2677103877, 0.3074437082, -0.3321139514, 0.2800374627, -0.1016466916 ]
https://github.com/huggingface/datasets/issues/2029
Loading a faiss index KeyError
In your code `dataset2` doesn't contain the "embeddings" column, since it is created from the pandas DataFrame with columns "text" and "label". Therefore when you call `dataset2[embeddings_name]`, you get a `KeyError`. If you want the "embeddings" column back, you can create `dataset2` with ```python dataset2 = load_from_disk(dataset_filename) ``` where `dataset_filename` is the place where you saved you dataset with the embeddings in the first place.
I've recently been testing out RAG and DPR embeddings, and I've run into an issue that is not apparent in the documentation. The basic steps are: 1. Create a dataset (dataset1) 2. Create an embeddings column using DPR 3. Add a faiss index to the dataset 4. Save faiss index to a file 5. Create a new dataset (dataset2) with the same text and label information as dataset1 6. Try to load the faiss index from file to dataset2 7. Get `KeyError: "Column embeddings not in the dataset"` I've made a colab notebook that should show exactly what I did. Please switch to GPU runtime; I didn't check on CPU. https://colab.research.google.com/drive/1X0S9ZuZ8k0ybcoei4w7so6dS_WrABmIx?usp=sharing Ubuntu Version VERSION="18.04.5 LTS (Bionic Beaver)" datasets==1.4.1 faiss==1.5.3 faiss-gpu==1.7.0 torch==1.8.0+cu101 transformers==4.3.3 NVIDIA-SMI 460.56 Driver Version: 460.32.03 CUDA Version: 11.2 Tesla K80 I was basically following the steps here: https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index I included the exact code from the documentation at the end of the notebook to show that they don't work either.
65
Loading a faiss index KeyError I've recently been testing out RAG and DPR embeddings, and I've run into an issue that is not apparent in the documentation. The basic steps are: 1. Create a dataset (dataset1) 2. Create an embeddings column using DPR 3. Add a faiss index to the dataset 4. Save faiss index to a file 5. Create a new dataset (dataset2) with the same text and label information as dataset1 6. Try to load the faiss index from file to dataset2 7. Get `KeyError: "Column embeddings not in the dataset"` I've made a colab notebook that should show exactly what I did. Please switch to GPU runtime; I didn't check on CPU. https://colab.research.google.com/drive/1X0S9ZuZ8k0ybcoei4w7so6dS_WrABmIx?usp=sharing Ubuntu Version VERSION="18.04.5 LTS (Bionic Beaver)" datasets==1.4.1 faiss==1.5.3 faiss-gpu==1.7.0 torch==1.8.0+cu101 transformers==4.3.3 NVIDIA-SMI 460.56 Driver Version: 460.32.03 CUDA Version: 11.2 Tesla K80 I was basically following the steps here: https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index I included the exact code from the documentation at the end of the notebook to show that they don't work either. In your code `dataset2` doesn't contain the "embeddings" column, since it is created from the pandas DataFrame with columns "text" and "label". Therefore when you call `dataset2[embeddings_name]`, you get a `KeyError`. If you want the "embeddings" column back, you can create `dataset2` with ```python dataset2 = load_from_disk(dataset_filename) ``` where `dataset_filename` is the place where you saved you dataset with the embeddings in the first place.
[ 0.0550746396, -0.6190828681, 0.0702501833, 0.361313343, 0.1553998291, 0.271070689, 0.3453340828, 0.0510572679, 0.5391326547, 0.2844027579, -0.0778137073, 0.1564424038, 0.409176439, -0.0636666939, -0.0600454509, -0.0365853496, 0.2299644053, 0.2709700763, 0.2771179974, -0.1172368899, -0.2132828981, 0.1254139096, -0.2415114641, 0.2396507263, -0.2419932336, 0.1532631367, -0.2360694259, 0.0207495131, -0.1963152289, -0.4184427261, 0.3218450248, -0.2817219794, 0.6558503509, 0.1962964833, -0.0001232087, 0.076633431, 0.3582344651, -0.1224537194, -0.2154055089, 0.061796058, 0.1387540251, 0.0691666156, 0.2078345269, -0.0417269506, -0.0147012463, -0.6515747905, 0.0266364161, -0.1597279757, 0.2974438667, -0.0055639232, 0.0943732932, 0.0098313484, 0.0809607506, -0.3012819588, 0.069115214, -0.3261915743, -0.0540436096, 0.2427324355, 0.0452900492, 0.0076506236, 0.066861473, 0.2988047898, -0.0401019268, 0.0219104737, 0.4202644229, 0.2766118348, 0.3658128083, -0.1659394205, 0.12981233, 0.1871752888, 0.3916550279, -0.1082117334, -0.4308944643, -0.173923701, 0.2771785557, -0.1161138043, 0.2110203952, -0.3297835588, -0.0157119632, 0.2792977691, 0.4297999442, -0.243448332, 0.1159294397, 0.0830417126, -0.0895651951, -0.0029293378, -0.1924940646, 0.03906193, 0.1796053946, -0.1281747669, -0.307998091, -0.1144422814, 0.1000977084, 0.1209598109, -0.30516541, 0.1096480638, 0.1938896626, 0.00816854, -0.1355560124, 0.0080527198, -0.2509582639, -0.0373693556, 0.0572970062, 0.3799478114, -0.1640042812, 0.014769556, 0.0900324434, 0.0611760058, 0.0604666285, 0.2328326851, 0.033469867, -0.2108225226, -0.1764001846, -0.1549167931, -0.4953103364, -0.318621397, -0.0450259261, -0.3158308268, -0.4681287706, 0.3127004504, -0.4021078348, -0.1081993878, -0.0031759767, 0.5753402114, 0.2059752047, -0.1731270552, 0.281745851, 0.3410766125, -0.242562145, 0.2558037639, -0.1618470699, 0.1206277013, -0.1269559115, 0.3744797409, 0.0527705625, -0.438906014, 0.2052892596, 0.044482816, 0.210700497, 0.1028746143, -0.4216094911, 0.000169137, 0.2830241919, 0.2812860012, -0.0830777138, 0.0920133963, 0.3403278589, -0.3423231244, -0.1909659505, 0.0451866053, -0.1148219407, -0.0747322142, -0.1784883142, 0.0911493227, -0.070400849, -0.089724265, 0.174400121, 0.0561904497, 0.158626914, -0.2581044734, 0.0801396146, 0.025198821, -0.1384505033, -0.1799932122, 0.4784162939, 0.3956210911, -0.7722763419, -0.3988277614, 0.1143976599, 0.1689773053, -0.134437874, 0.285587281, -0.0892435834, 0.0623674802, -0.2319804877, 0.4219357669, 0.1115483716, -0.1278710365, -0.1927444488, 0.0685718879, 0.0679320022, 0.0048263613, 0.2271310538, -0.1617614776, 0.3247576654, 0.1531333029, 0.3888321817, 0.071337238, 0.0399590954, -0.3257411718, -0.1789889932, -0.3758670688, 0.0991170108, 0.1026761457, -0.0961192846, -0.0742358267, -0.1836107373, -0.322706461, 0.0883145258, -0.2380027324, -0.0485620163, 0.0400441736, 0.3023086488, 0.4282283187, 0.4427760541, 0.0368307084, -0.0115635917, 0.2662013769, 0.0324878469, 0.0951552838, -0.2985556424, -0.0519879125, -0.2356912494, 0.0464013815, -0.0661982745, -0.2013383061, -0.0659092516, -0.0091100577, -0.0246782582, 0.0475276783, -0.3220714331, 0.0777287483, -0.1947693229, 0.2195265144, -0.4618268013, 0.4788578749, -0.2620449662, -0.2415873408, 0.0462660491, 0.3040083945, 0.1866381317, -0.1725840271, 0.1663333625, 0.0949389637, -0.093745701, -0.1992225498, 0.1190166324, -0.191766873, 0.1593573838, -0.1571006179, 0.0574435629, -0.0669225603, 0.192354843, 0.1220771521, -0.1792986542, 0.4870289564, 0.0392016321, 0.2792650759, -0.1853857636, -0.1539820433, 0.1131259948, -0.0026399754, 0.0101033431, -0.3382645547, -0.088924937, -0.0046552969, -0.1199176013, -0.0626572296, 0.0268099923, 0.1231287792, 0.0174141414, 0.0285699386, -0.103876844, 0.0535348877, -0.3347164989, 0.0676235855, 0.0471458063, -0.3681941926, 0.354241699, 0.2893677652, -0.166988343, -0.2466787249, -0.2466315925, -0.2522492111, 0.130464673, -0.0527899824, -0.2380275279, 0.0619876571, -0.1329464167, 0.0930440873, -0.203963846, -0.039312616, 0.0073515521, 0.1990105212, -0.588511765, 0.0874701738, -0.3268993795, -0.0848525688, -0.0089325868, -0.1183209941, -0.035032928, -0.3714102209, 0.1818677485, -0.1842872202, -0.0339051001, 0.2288198322, 0.0108244969, 0.1986062825, -0.0158730429, 0.0349433757, -0.1994724274, -0.192269057, -0.276652962, -0.0750847757, -0.026126571, 0.2121434063, 0.2464040071, -0.0174933132, -0.103518635, -0.1036007553, -0.2901809514, 0.26085338, -0.2184691876, 0.0960315913, -0.1443013698, 0.1334661543, -0.1150143817, -0.2030872554, 0.3162395656, -0.0712853521, -0.2233368158, -0.0748686567, 0.1445921957, -0.0172572471, -0.1171413735, -0.3439747393, 0.0865702033, -0.2017683238, -0.0518999919, -0.1715559661, -0.0757853165, -0.3403171003, 0.3888871372, 0.1098029017, -0.1206584349, 0.0835880637, -0.2783561349, 0.0760335922, 0.3620347083, -0.0495057702, -0.2294214368, 0.1608614773, 0.0534703471, -0.2114242613, -0.0739707351, -0.3018966019, -0.525508523, -0.013785121, 0.2082933784, 0.2294153124, 0.4104632139, 0.146143809, -0.0166889261, -0.0821893811, -0.0818067193, -0.3491121829, 0.0339903086, -0.1274577826, 0.1863523275, -0.1580072194, 0.5168381333, -0.2627624273, 0.4241448641, 0.418225944, -0.3344833255, 0.401863426, -0.1026425064, 0.4811014235, -0.1938901246, -0.1900712699, 0.1305035204, 0.0521100052, 0.0414345376, 0.2256227583, -0.0783844888, 0.1515782773, 0.0500757471, 0.2746845186, -0.1358632147, -0.2487674952, 0.0696827397, -0.0265747346, -0.0034899635, -0.1062733829, 0.2850163579, -0.1292750686, 0.1503620744, 0.2282379121, 0.4088183641, 0.369728595, -0.1107956171, 0.330460906, -0.3246173263, -0.247922793, 0.541705966, 0.0769144893, 0.2590822279, -0.1951614916, -0.0886174887, 0.4172724783, 0.1633314788, 0.5660610199, -0.3769990206, -0.3231419027, 0.2717080414, 0.2671844065, -0.3712126315, -0.1177444085, -0.0206983052, -0.0435318239, -0.0180330742, 0.6748077869, -0.4430408776, -0.0473424606, 0.2658811808, 0.0650961399, -0.1818182617, -0.4256836772, -0.4909737408, -0.1080663726, -0.4735228121, -0.0377670228, -0.0643603504, 0.3547737598, 0.0586998314, 0.2814429402, -0.0720050186, 0.0213222411, 0.2308119386, 0.3325808942, 0.0880558267, 0.0596565343, 0.1927492172, 0.4122956693, 0.4405749738, 0.2876452506, 0.3852205873, -0.0886230469, -0.5030117035, 0.1189954653, 0.0795295388, 0.1915132701, 0.3066512346, -0.0577339679, 0.2583630085, -0.1517120451, 0.0912913382, -0.2620265484, -0.3267896771, 0.1230382323, 0.1136146411, 0.0319999307, -0.2792310715, 0.4609560966, -0.0027983682, -0.1177050546, -0.1131939292, 0.7454817891, -0.0445635244, 0.9066887498, -0.0224904697, 0.9038159847, -0.1837665886, 0.0054946262, 0.4124700129, -0.1430428475, 0.5982551575, -0.1397472024, 0.0056406208, -0.4372064471, -0.1494949311, -0.0543741956, 0.0136123933, 0.2145187855, -0.0728715658, -0.3070853949, 0.1228024587, -0.0723006055, -0.1465177834, -0.0893571675, -0.0270684026, 0.0611019097, -0.4498353004, -0.3294595778, 0.0078240605, 0.4473243654, 0.3218044937, 0.0595409721, -0.0798304826, -0.318333894, 0.0049134693, -0.3588390648, 0.0712881386, 0.2994556129, 0.1605609357, 0.3601663113, -0.2049203664, 0.2669717669, 0.1277432144, 0.7160636783, -0.3889601231, -0.2528814673, 0.1204797104, -0.3667643964, -0.2427175343, -0.1280363053, -0.3013762534, 0.3244972229, 0.2448951155, -0.4326143563, 0.2945292294, 0.1806959957, -0.1646521837, -0.1618564129, 0.145504266, -0.0677064136, -0.3563481271, -0.1175524443, -0.0905721337, 0.3375671804, -0.1444009244, 0.0659764931, 0.204683125, -0.0820480809, 0.1091363952, 0.0838298723, -0.1231091917, -0.0055337842, 0.5033710599, -0.2285589725, 0.1146050021, 0.3499401212, 0.1286233813, -0.4498926699, 0.0003882143, -0.4983139932, 0.5014639497, -0.3836683631, -0.1845149845, 0.3491197824, -0.2349703908, -0.0226773135, -0.0013708629, 0.3730078042, -0.2326381207, -0.2815314829, -0.260191977, -0.1082754955, 0.3613978922, -0.1328595579, 0.1616758406, -0.0860438049, 0.1158281267, -0.1279036105, 0.0128336893, -0.2126484066, 0.1579230875, -0.1372291595, 0.075351648, -0.0734349489, -0.214303419, -0.0054206788, -0.2459964603, 0.019829832, 0.166050747, 0.0280936547, -0.0167215038, -0.0102717411, 0.1721183211, 0.0617214739, 0.1258158684, -0.4139372408, -0.0717703775, -0.0320806578, -0.3967059553, 0.3543545008, 0.2007508874, -0.0468917862, -0.0718141794, 0.0021627322, 0.0731869116, 0.0412616543, 0.2462115437, 0.1241779849, 0.5196715593, 0.2802635133, -0.1163901761, -0.482732743, 0.1483895481, 0.0242198501, 0.4092275202, 0.150614962, -0.0409019515, 0.3504682481, -0.2940049469, -0.0680303574, 0.0042699999, 0.2235939503, 0.3811899424, -0.0977506116, 0.0681165382, 0.2136990875, 0.0474055447, -0.2503565848, 0.0347790793, 0.3809849322, -0.1474708915, -0.0341238976, 0.2338687927, 0.181299746, 0.1227884516, -0.1979242563, 0.069259949, 0.2064260095, 0.1313122213, -0.3917590976, 0.0485447831, 0.1434888095, 0.253164947, 0.4207598567, 0.2260640264, 0.3615334928, 0.107441254, -0.1683151722, 0.0304051507, -0.0428697132, 0.3624766469, -0.1702772826, -0.5442959666, 0.459115684, 0.1990810633, 0.4446201026, -0.3005708456, 0.0110942535, 0.2246437222, -0.007512372, 0.0029913445, -0.1264298111, 0.0194796678, -0.2073530853, -0.4814678729, 0.2469703108, 0.0070393425, -0.1617956758, -0.0748415664, 0.0904632807, -0.1671434492, -0.1127614677, -0.1288221329, -0.3127627671, -0.1633301526, -0.3798960745, 0.297624141, 0.2746294737, 0.0172059219, -0.0924301669, -0.0820377395, -0.0129510192, 0.3628854454, 0.0710028857, 0.5582456589, 0.092832759, -0.1161191761, 0.1136866584, 0.0108318701, 0.0522574186, -0.014790114, 0.1180372387, -0.1604056656, 0.2515515685, 0.2814064622, 0.0793317556, -0.1262226999, -0.3866675496, -0.026021501, 0.6515320539, 0.0928578228, -0.1293685734, -0.4074528813, 0.0724371001, -0.1108804494, 0.0383628495, -0.311324209, 0.2983472049, 0.0368693434, -0.0962492079, -0.012902474, 0.2667494714, 0.0236880314, -0.1871162951, 0.2547546327, 0.8629196286, -0.0874768496, -0.2432615459, 0.157760039, -0.5931993127, 0.2370043993, -0.0749395341, -0.2206316739, 0.2276033312, 0.6163492799, 0.4311293364, -0.0319097377, -0.0105086304, -0.0449878573, 0.2689789534, 0.4219911397, -0.0000863111, -0.3120779097, -0.1198637038, -0.205294013, -0.1085835695, 0.016001245, 0.111315012, -0.1017313972, -0.043883279, 0.0389882475, 0.1228804067, -0.1738753319, -0.3629505634, 0.6114473343, 0.0369081497, 0.3470847607, -0.1360599846, -0.0059692296, -0.175084129, -0.169682771, 0.0329454802, 0.2829146981, -0.1806606501, 0.2205718607, -0.176661551, -0.2883690596, -0.2644260526, 0.2516523898, 0.0712011904, -0.2701525688, -0.2091999501, 0.1826222241, -0.1758243293, 0.0448125452, -0.0361687839, 0.0521938577, -0.0462339595, 0.2966393232, 0.1056774482, -0.2640369236, 0.6632552743, -0.3797849417, 0.0318564549, 0.1826305389, 0.1951088756, 0.4907489121, 0.0071044564, -0.890553236, 0.0415129438, 0.0382940844, -0.0612079091, -0.3232002258, -0.0907065272, 0.200521335, 0.0787761137, -0.231130898, -0.1733234227, 0.0168195274, 0.1216906309, 0.0177738834, -0.2673079669 ]
https://github.com/huggingface/datasets/issues/2029
Loading a faiss index KeyError
Ok in that case HF should fix their misleading example at https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index I copy-pasted it here. > When you are done with your queries you can save your index on disk: > > ```python > ds_with_embeddings.save_faiss_index('embeddings', 'my_index.faiss') > ``` > Then reload it later: > > ```python > ds = load_dataset('crime_and_punish', split='train[:100]') > ds.load_faiss_index('embeddings', 'my_index.faiss') > ```
I've recently been testing out RAG and DPR embeddings, and I've run into an issue that is not apparent in the documentation. The basic steps are: 1. Create a dataset (dataset1) 2. Create an embeddings column using DPR 3. Add a faiss index to the dataset 4. Save faiss index to a file 5. Create a new dataset (dataset2) with the same text and label information as dataset1 6. Try to load the faiss index from file to dataset2 7. Get `KeyError: "Column embeddings not in the dataset"` I've made a colab notebook that should show exactly what I did. Please switch to GPU runtime; I didn't check on CPU. https://colab.research.google.com/drive/1X0S9ZuZ8k0ybcoei4w7so6dS_WrABmIx?usp=sharing Ubuntu Version VERSION="18.04.5 LTS (Bionic Beaver)" datasets==1.4.1 faiss==1.5.3 faiss-gpu==1.7.0 torch==1.8.0+cu101 transformers==4.3.3 NVIDIA-SMI 460.56 Driver Version: 460.32.03 CUDA Version: 11.2 Tesla K80 I was basically following the steps here: https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index I included the exact code from the documentation at the end of the notebook to show that they don't work either.
57
Loading a faiss index KeyError I've recently been testing out RAG and DPR embeddings, and I've run into an issue that is not apparent in the documentation. The basic steps are: 1. Create a dataset (dataset1) 2. Create an embeddings column using DPR 3. Add a faiss index to the dataset 4. Save faiss index to a file 5. Create a new dataset (dataset2) with the same text and label information as dataset1 6. Try to load the faiss index from file to dataset2 7. Get `KeyError: "Column embeddings not in the dataset"` I've made a colab notebook that should show exactly what I did. Please switch to GPU runtime; I didn't check on CPU. https://colab.research.google.com/drive/1X0S9ZuZ8k0ybcoei4w7so6dS_WrABmIx?usp=sharing Ubuntu Version VERSION="18.04.5 LTS (Bionic Beaver)" datasets==1.4.1 faiss==1.5.3 faiss-gpu==1.7.0 torch==1.8.0+cu101 transformers==4.3.3 NVIDIA-SMI 460.56 Driver Version: 460.32.03 CUDA Version: 11.2 Tesla K80 I was basically following the steps here: https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index I included the exact code from the documentation at the end of the notebook to show that they don't work either. Ok in that case HF should fix their misleading example at https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index I copy-pasted it here. > When you are done with your queries you can save your index on disk: > > ```python > ds_with_embeddings.save_faiss_index('embeddings', 'my_index.faiss') > ``` > Then reload it later: > > ```python > ds = load_dataset('crime_and_punish', split='train[:100]') > ds.load_faiss_index('embeddings', 'my_index.faiss') > ```
[ 0.0172794405, -0.5772310495, 0.0631229579, 0.279512912, 0.08014974, 0.2722066343, 0.3179303706, 0.1032483205, 0.5430010557, 0.2702878416, -0.1154732406, 0.1119507924, 0.4107091725, -0.1057186797, -0.0582558289, -0.019388089, 0.2288172841, 0.2564586699, 0.2251709551, -0.1339422613, -0.205100581, 0.0973477066, -0.2735079527, 0.2104545534, -0.217876628, 0.1518888474, -0.2278770059, 0.0568938553, -0.1768642217, -0.4319813251, 0.3245590031, -0.2239340693, 0.6598061323, 0.1977229714, -0.0001215702, 0.1218788177, 0.3807430863, -0.1595100164, -0.2513682246, 0.115100354, 0.0764168575, 0.0272243079, 0.2132132202, -0.0726773813, 0.0061009792, -0.6095622182, 0.0533287674, -0.1794198602, 0.2412758768, 0.0245586634, 0.1126011461, 0.0576789975, 0.0422045104, -0.3755268455, 0.0992321819, -0.312726438, -0.068191871, 0.2848209441, -0.0071598645, 0.0022997905, 0.006348236, 0.3573626578, -0.0200693011, 0.0193408355, 0.4004623294, 0.228475973, 0.3043693006, -0.104426831, 0.1567369401, 0.1700624675, 0.3159226179, -0.1548773944, -0.3962083161, -0.1216677353, 0.1943069398, -0.126398772, 0.1970371455, -0.306347549, 0.0235137437, 0.3119213283, 0.3952242434, -0.1900373101, 0.1177401766, 0.0820092335, -0.0645474866, -0.0513843484, -0.2108548284, 0.0240792166, 0.1902794838, -0.086530596, -0.2820090055, -0.1559734344, 0.074763529, 0.0823271871, -0.3504090905, 0.1680512726, 0.2065458447, 0.0209430959, -0.0723237917, -0.0248583704, -0.2064311653, 0.0152597576, 0.156940788, 0.3611029088, -0.2030458301, -0.017811371, 0.0448900275, 0.0191621836, 0.1014061496, 0.2769632936, -0.0010161186, -0.2169072479, -0.1131687611, -0.150164783, -0.4902276397, -0.3367261887, -0.0414409004, -0.3489939868, -0.4786963463, 0.3067215979, -0.4552728534, -0.1304346621, 0.0186457522, 0.652844727, 0.1860148013, -0.2571896017, 0.2522354722, 0.3296820223, -0.3448684216, 0.2203892022, -0.1981094033, 0.1131348833, -0.1160798967, 0.4127857089, 0.1097557843, -0.46003896, 0.1754467189, 0.0120851398, 0.2221800089, 0.0842839405, -0.3430341184, -0.0307906531, 0.3162081838, 0.2977692187, -0.065804936, 0.0719674751, 0.3783290088, -0.3262057006, -0.2240068018, 0.0465685353, -0.1261171401, -0.1155300066, -0.1683063507, 0.1149994582, -0.0447191671, -0.0695157796, 0.2359822392, 0.0991611928, 0.1431571841, -0.26346156, 0.0815166607, 0.0393042639, -0.18172203, -0.1781527698, 0.4668320417, 0.426137656, -0.7533153892, -0.3583071828, 0.1044593677, 0.224640131, -0.1304669678, 0.2801530361, -0.1336556524, 0.0512036793, -0.2663241923, 0.4776729643, 0.160535723, -0.1500926763, -0.2101144344, 0.1152875051, 0.1037183702, 0.0163553562, 0.1906678975, -0.1538439393, 0.3397401571, 0.1171115786, 0.33729285, -0.0242130142, 0.0364697687, -0.3472740352, -0.2551966608, -0.3373097181, 0.0823267847, 0.0959322751, -0.0580283813, -0.1127975509, -0.1097774804, -0.3149940372, 0.1116433069, -0.2194286734, -0.068991363, 0.1341979653, 0.2931416929, 0.3978088796, 0.4509917796, 0.065303959, -0.0793156177, 0.2604403794, 0.0285846405, 0.0608433075, -0.1846121401, -0.1017718092, -0.2828640044, 0.0477872118, -0.1088200212, -0.2191660404, -0.0282452237, -0.0028137777, -0.0579027571, 0.0574615709, -0.314419955, 0.1071905419, -0.203762427, 0.1530473232, -0.4385947883, 0.4663410187, -0.3173542023, -0.2310287207, 0.0460032448, 0.2543340921, 0.1745010614, -0.1636388302, 0.1295264065, 0.102697596, -0.0566197149, -0.261873275, 0.1746413112, -0.1655093282, 0.142762363, -0.229190737, 0.0832301006, -0.0419445932, 0.2045518309, 0.1157637388, -0.2281854153, 0.457583636, 0.0520607568, 0.2677703798, -0.1473600715, -0.2205033898, 0.1386882663, 0.0298015289, -0.0034478556, -0.3238338232, -0.1025571898, 0.0377520174, -0.1164536104, -0.0653849617, 0.0181211494, 0.1922571063, 0.0198896974, 0.0316703282, -0.1030552983, 0.081138514, -0.2599277198, 0.0253878832, 0.0923055187, -0.4249452353, 0.3604761064, 0.2861750424, -0.132714659, -0.2303947359, -0.2657187581, -0.2874987125, 0.0673752278, -0.0804419965, -0.2273134142, 0.1274018288, -0.0742556006, 0.0862709433, -0.2223929018, -0.0440520011, 0.0122666759, 0.1490372419, -0.5887738466, 0.1396585703, -0.3880034089, -0.0942460001, 0.0291194133, -0.1383635551, -0.0869041234, -0.38944754, 0.2312371582, -0.1868147701, -0.0542584397, 0.2351476103, -0.080856353, 0.1829114854, 0.0158674456, -0.0098377904, -0.1690039486, -0.161570847, -0.3648663461, -0.0854425132, -0.0241523143, 0.297038734, 0.2358440906, -0.0316451155, -0.1209296659, -0.1339870393, -0.3524389863, 0.2762562335, -0.1432650536, 0.1291478276, -0.10654971, 0.0773712322, -0.1703559756, -0.1709825844, 0.3147132993, -0.0222139526, -0.1975482106, -0.0149075892, 0.1242614165, 0.0355619714, -0.0651536882, -0.3328302801, 0.1047072485, -0.2776856422, -0.11367134, -0.1886593997, -0.0535951629, -0.304675132, 0.3891739249, 0.1195937172, -0.108331494, 0.0964702293, -0.2930317819, 0.1472295672, 0.3678103387, -0.1009715274, -0.2994403541, 0.1863139868, 0.0289021712, -0.2174459845, -0.0439000577, -0.3964250088, -0.4838357568, -0.0262638181, 0.2239998728, 0.2083172351, 0.377366811, 0.1585730463, -0.0878759623, -0.0857689083, -0.0988788754, -0.3516177237, 0.0867616832, -0.1840329617, 0.1607316583, -0.1917379051, 0.5027087927, -0.236325115, 0.4415203333, 0.4734844267, -0.3138492703, 0.4359808266, -0.0560270995, 0.5026717782, -0.2558840811, -0.1605992615, 0.1289678216, 0.041561868, -0.0153028602, 0.2319121659, -0.0699340776, 0.1313169599, 0.079584226, 0.2480213493, -0.0846445039, -0.2826347947, 0.1131232008, 0.0279448852, 0.0049012853, -0.0829248503, 0.2915317714, -0.0784451365, 0.1364881992, 0.2619969249, 0.4994941652, 0.374681443, -0.0595979989, 0.3922793567, -0.2716044784, -0.2988323569, 0.5406867266, 0.076668568, 0.2704482079, -0.2316276282, -0.1329109222, 0.3817057908, 0.1187170073, 0.4669494331, -0.3202128708, -0.2769588232, 0.3623043299, 0.2157478333, -0.3539115489, -0.1602832228, -0.0421989076, -0.0649768189, -0.0456609949, 0.6810309887, -0.4488098323, -0.0919199139, 0.2719632089, 0.0484943278, -0.191775158, -0.4296598136, -0.4913112819, -0.2099979818, -0.4370380938, -0.0712676048, -0.0832090452, 0.2882452607, 0.067575939, 0.2692576051, -0.0639862642, 0.0211342741, 0.1759270877, 0.298815459, 0.0854446888, 0.0554002002, 0.2225781679, 0.3516512811, 0.4493587613, 0.3105466068, 0.3761473894, -0.0922998637, -0.3685174882, 0.1949788481, 0.1215483695, 0.1347623169, 0.348834008, -0.0598921888, 0.3128325045, -0.1410945952, 0.1342668831, -0.2591911256, -0.3105555773, 0.0768897086, 0.0582713, 0.043759983, -0.2096963227, 0.5280876756, -0.0176831093, -0.108842276, -0.1019315645, 0.7750855088, -0.0008789197, 0.8857610822, 0.0565029606, 0.9090358615, -0.1713175029, 0.0234890208, 0.4463818371, -0.187629953, 0.4825901091, -0.1951461136, 0.0426127315, -0.4373916686, -0.2519881129, -0.0566141717, 0.004872256, 0.1658109576, -0.0841312483, -0.3571437299, 0.1029772758, -0.0496155657, -0.1644604206, -0.0859972164, -0.0637871251, -0.0010357257, -0.3792616129, -0.3039005697, 0.0290285759, 0.4822970629, 0.3695409894, 0.0220441557, -0.0790324956, -0.291441381, 0.0064427918, -0.3014760315, 0.0409131907, 0.2598649859, 0.1597632468, 0.3091950417, -0.1646127701, 0.2454795539, 0.0359594859, 0.6067767143, -0.3963741958, -0.2278275192, 0.0660854727, -0.2978229523, -0.2367132306, -0.0910732672, -0.3210307658, 0.3530060053, 0.2164139152, -0.3930766582, 0.2455598265, 0.1277559847, -0.1699520797, -0.1908746511, 0.1798237562, -0.1001088098, -0.3621915281, -0.0792510659, -0.0853148401, 0.2435479164, -0.0945236087, 0.0748395547, 0.1713627577, -0.0192913637, 0.1398162842, 0.1292545348, -0.1324253082, 0.0063684606, 0.546354413, -0.2605175972, 0.1305040419, 0.3212526441, 0.1546411812, -0.4956639111, -0.0322358757, -0.5321475863, 0.4935288429, -0.3097324669, -0.1765690148, 0.2286669463, -0.1850273907, -0.0002237296, 0.0356549472, 0.4112834632, -0.3013072908, -0.298796922, -0.2700885832, -0.0951466486, 0.4340415597, -0.0944093168, 0.1565039009, -0.0819236189, 0.0799013227, -0.1040563732, 0.0419623293, -0.2391066402, 0.1509058625, -0.1227879822, 0.0378888138, -0.178829208, -0.2138815969, 0.0205800291, -0.1755608767, 0.0168479644, 0.1716372371, -0.0522176474, -0.04249366, 0.0114652999, 0.1759463549, 0.0268445276, 0.096780993, -0.3826611638, -0.0819117278, -0.0648975819, -0.3780140579, 0.3031315207, 0.1970612258, -0.0779177845, -0.1188661158, 0.0153418444, 0.0307866167, 0.0624901354, 0.2531222999, 0.1842308491, 0.5281671882, 0.2460189909, -0.1327631325, -0.5212600827, 0.1234880686, 0.072535567, 0.4531138539, 0.1454978138, -0.0640458167, 0.3715766966, -0.3348659277, -0.0354457982, -0.0635819063, 0.2820004225, 0.3686342239, -0.117469877, 0.0312433559, 0.1743301451, 0.069652833, -0.2446890622, 0.0674643964, 0.3783981502, -0.1276391, 0.021246396, 0.2595111132, 0.1960687041, 0.1245096028, -0.1776780039, 0.0934916586, 0.1437719017, 0.1801262647, -0.4203798473, 0.0146656996, 0.0593921728, 0.27377823, 0.3931545019, 0.1846987307, 0.4034119248, 0.0729816854, -0.1266162843, 0.0767258033, 0.004841466, 0.3915551901, -0.2059016228, -0.6314303875, 0.4730730951, 0.2434368581, 0.5203194022, -0.3003262877, -0.0273209587, 0.2113473266, 0.0158675648, 0.0019206725, -0.1404469311, 0.0087239332, -0.1797019839, -0.4228440225, 0.2603078783, -0.0135752447, -0.2500580549, -0.1014532894, 0.0556355864, -0.1375438422, -0.122199297, -0.0983666331, -0.2738232911, -0.1351661384, -0.295928508, 0.3009162545, 0.2911666632, 0.0407971963, -0.0253564678, -0.0420554653, 0.0072706589, 0.3467204571, 0.0485005379, 0.5328794718, 0.1421399713, -0.1048815548, 0.0760596693, 0.063173309, 0.0589937679, 0.0000360292, 0.1344169825, -0.1673479825, 0.2181905508, 0.3409722447, 0.0637019426, -0.1314153969, -0.3197770119, -0.0504971407, 0.5998359919, 0.1000023261, -0.1618768722, -0.358787179, 0.1046117172, -0.0621897317, 0.0215112288, -0.2632645071, 0.2826020718, 0.1195050925, -0.1405352801, 0.0846820697, 0.2874366641, 0.038590651, -0.1772707254, 0.3113381565, 0.8044199347, -0.0780336261, -0.2670658529, 0.1288082451, -0.5427348614, 0.2680160999, -0.1829780936, -0.1850349158, 0.2906188369, 0.6496264338, 0.4190320969, -0.0323070288, 0.0721310526, -0.1104714274, 0.3419902623, 0.4437325895, 0.0212639738, -0.3350875676, -0.1664219052, -0.2112398595, -0.1398440301, -0.0645548254, 0.1304073334, -0.0612435155, -0.0121065788, 0.0348461568, 0.106086947, -0.0949873924, -0.3437107801, 0.6024440527, 0.0380868427, 0.3508696258, -0.1602427661, -0.0448028967, -0.179619059, -0.1176822558, 0.0382441543, 0.2302422225, -0.2109965682, 0.1636527032, -0.1435657144, -0.3141818345, -0.2684746087, 0.2933229208, 0.0934768319, -0.2817207873, -0.1717184186, 0.1432593614, -0.2002489269, 0.0334745012, -0.0270988885, 0.0788935572, -0.0335664451, 0.3309987783, 0.0754427314, -0.2962701917, 0.696626246, -0.3728351891, 0.0705311969, 0.2038523704, 0.2360534221, 0.5011438727, 0.0328812376, -0.8710232377, -0.0064152419, 0.0906480327, -0.0719546899, -0.2740329206, -0.0554652512, 0.198094517, 0.0384439789, -0.2326390296, -0.0869515538, -0.0006065891, 0.1136787385, -0.0463075824, -0.2873271406 ]
https://github.com/huggingface/datasets/issues/2029
Loading a faiss index KeyError
Hi ! The code of the example is valid. An index is a search engine, it's not considered a column of a dataset. When you do `ds.load_faiss_index("embeddings", 'my_index.faiss')`, it attaches an index named "embeddings" to the dataset but it doesn't re-add the "embeddings" column. You can list the indexes of a dataset by using `ds.list_indexes()`. If I understand correctly by reading this example you thought that it was re-adding the "embeddings" column. This looks misleading indeed, and we should add a note to make it more explicit that it doesn't store the column that was used to build the index. Feel free to open a PR to suggest an improvement on the documentation if you want to contribute :)
I've recently been testing out RAG and DPR embeddings, and I've run into an issue that is not apparent in the documentation. The basic steps are: 1. Create a dataset (dataset1) 2. Create an embeddings column using DPR 3. Add a faiss index to the dataset 4. Save faiss index to a file 5. Create a new dataset (dataset2) with the same text and label information as dataset1 6. Try to load the faiss index from file to dataset2 7. Get `KeyError: "Column embeddings not in the dataset"` I've made a colab notebook that should show exactly what I did. Please switch to GPU runtime; I didn't check on CPU. https://colab.research.google.com/drive/1X0S9ZuZ8k0ybcoei4w7so6dS_WrABmIx?usp=sharing Ubuntu Version VERSION="18.04.5 LTS (Bionic Beaver)" datasets==1.4.1 faiss==1.5.3 faiss-gpu==1.7.0 torch==1.8.0+cu101 transformers==4.3.3 NVIDIA-SMI 460.56 Driver Version: 460.32.03 CUDA Version: 11.2 Tesla K80 I was basically following the steps here: https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index I included the exact code from the documentation at the end of the notebook to show that they don't work either.
119
Loading a faiss index KeyError I've recently been testing out RAG and DPR embeddings, and I've run into an issue that is not apparent in the documentation. The basic steps are: 1. Create a dataset (dataset1) 2. Create an embeddings column using DPR 3. Add a faiss index to the dataset 4. Save faiss index to a file 5. Create a new dataset (dataset2) with the same text and label information as dataset1 6. Try to load the faiss index from file to dataset2 7. Get `KeyError: "Column embeddings not in the dataset"` I've made a colab notebook that should show exactly what I did. Please switch to GPU runtime; I didn't check on CPU. https://colab.research.google.com/drive/1X0S9ZuZ8k0ybcoei4w7so6dS_WrABmIx?usp=sharing Ubuntu Version VERSION="18.04.5 LTS (Bionic Beaver)" datasets==1.4.1 faiss==1.5.3 faiss-gpu==1.7.0 torch==1.8.0+cu101 transformers==4.3.3 NVIDIA-SMI 460.56 Driver Version: 460.32.03 CUDA Version: 11.2 Tesla K80 I was basically following the steps here: https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index I included the exact code from the documentation at the end of the notebook to show that they don't work either. Hi ! The code of the example is valid. An index is a search engine, it's not considered a column of a dataset. When you do `ds.load_faiss_index("embeddings", 'my_index.faiss')`, it attaches an index named "embeddings" to the dataset but it doesn't re-add the "embeddings" column. You can list the indexes of a dataset by using `ds.list_indexes()`. If I understand correctly by reading this example you thought that it was re-adding the "embeddings" column. This looks misleading indeed, and we should add a note to make it more explicit that it doesn't store the column that was used to build the index. Feel free to open a PR to suggest an improvement on the documentation if you want to contribute :)
[ 0.1397082061, -0.5335462689, 0.0514716692, 0.3196976483, 0.126474604, 0.2750567198, 0.4119960666, -0.0404782631, 0.6586285233, 0.2073544115, -0.0624134056, 0.1538582444, 0.3866051137, -0.0489015877, 0.0130300531, -0.017361477, 0.3034027517, 0.2208625078, 0.2414612025, -0.1565981209, -0.1813698858, 0.0717171952, -0.2770502865, 0.1112729162, -0.1968311071, 0.1754428446, -0.2499136776, -0.032795243, -0.2255381644, -0.3927150071, 0.329893738, -0.2455040365, 0.6396083832, 0.1909311265, -0.0001244103, 0.1136667654, 0.3821773827, -0.1372379363, -0.2595386505, 0.124339655, -0.0407928228, 0.0283891894, 0.2259730995, -0.074174419, 0.0443999507, -0.604531765, 0.0306180418, -0.2664101422, 0.2041676044, 0.0784027427, 0.0811232626, 0.0266719293, 0.0594934039, -0.350158602, 0.1453060508, -0.2944702804, -0.1072398648, 0.2723377049, 0.0363667049, 0.0591789745, 0.0967703909, 0.2234834582, -0.0297006425, -0.0044607921, 0.3816767633, 0.3206751347, 0.3233528733, -0.1499413252, 0.183297202, 0.1396442652, 0.4778426886, -0.086714454, -0.3786844313, -0.1274590939, 0.2133219987, -0.1693469435, 0.1781801134, -0.3018350601, 0.0494872928, 0.2833383083, 0.3947209716, -0.2305176258, 0.1729186028, 0.1110186502, -0.1058650985, 0.0296110064, -0.2333698124, 0.0812688768, 0.1254782081, -0.0815552846, -0.2309124917, -0.111021556, 0.1203841716, 0.1144593954, -0.3478136063, 0.2244478315, 0.2104998827, 0.0192309134, -0.1170734838, 0.0355050229, -0.1175127923, 0.0451517962, 0.082569696, 0.3602949381, -0.1612787992, 0.0425949991, 0.0905501172, -0.0014759748, 0.0315707959, 0.2060631216, 0.0346698239, -0.2354730666, -0.1273181736, -0.0511649065, -0.4601173699, -0.3972398341, -0.0220843945, -0.2939673364, -0.4682561755, 0.3269702494, -0.3949013054, -0.1495506614, 0.0359074473, 0.6100537777, 0.2423656136, -0.2410031706, 0.2574199736, 0.3329065144, -0.249407351, 0.2505553663, -0.2155790329, 0.1001609266, -0.1791631877, 0.4160977602, 0.0883165225, -0.4362983108, 0.2058900148, -0.0156854298, 0.1153184995, 0.0160858855, -0.4422799051, -0.0107994294, 0.3289082348, 0.3100943863, -0.1181551144, 0.0646988675, 0.2906965315, -0.3939509392, -0.178144142, 0.0867636353, -0.1132604629, -0.0243505072, -0.1908860654, 0.0711472258, -0.1113991663, -0.1381538659, 0.2029104084, 0.1236763373, 0.154079929, -0.2610229254, 0.1042368561, 0.0324438959, -0.1694495827, -0.1880512685, 0.5441300273, 0.3905665874, -0.7543744445, -0.3546564579, 0.0210225768, 0.1953678578, -0.0898332298, 0.208824724, -0.0703032613, 0.1384415925, -0.2801349759, 0.4364030659, 0.2500103414, -0.0299273022, -0.1367253065, -0.0278816298, 0.0822839588, 0.0112903109, 0.1462398022, -0.0464115106, 0.3089676499, 0.2303741276, 0.286149472, 0.0061392891, 0.0597963482, -0.3615944684, -0.1948384196, -0.2727177441, 0.1160120144, 0.0804310367, -0.0372423641, -0.0280090012, -0.0962930843, -0.361880064, 0.0644500405, -0.1609586477, -0.0479051322, 0.0518081002, 0.319955796, 0.4249474108, 0.4439716935, 0.063553758, -0.142837435, 0.2731234431, 0.1668572128, 0.0024763206, -0.1946400702, -0.0410472751, -0.310497582, 0.1002359614, -0.0861712173, -0.1901265532, -0.0936029181, 0.0434044823, -0.0393036678, 0.0348570421, -0.3543615937, 0.0917701498, -0.1389929503, 0.1869313717, -0.4618310332, 0.4687990546, -0.2446718216, -0.2399784774, -0.066055961, 0.2928888202, 0.0953238681, -0.2305012643, 0.1591469795, 0.1184906811, 0.0150071681, -0.2839361429, 0.1743019372, -0.1755254567, 0.1507221907, -0.2129493952, 0.1087340489, -0.0652898774, 0.2566757798, 0.0690952539, -0.2392739207, 0.4237159789, 0.0181191638, 0.2957784534, -0.1987940669, -0.2114778906, 0.1270290017, 0.041851189, -0.054572776, -0.3016967475, -0.186724931, -0.0259512998, -0.1224485785, -0.0458274446, 0.0013795332, 0.1479832828, -0.0317736827, 0.0533250719, -0.0762056559, 0.0467841923, -0.359403044, 0.0175263453, 0.0633010045, -0.4014998972, 0.4099875987, 0.2676882446, -0.0424839295, -0.2847334445, -0.1580412388, -0.2927662432, 0.0362487733, -0.0372613892, -0.2339010388, 0.1330189705, -0.0564495139, 0.0249523316, -0.2709624469, 0.0384881943, 0.101074554, 0.1226191223, -0.5553828478, 0.0918595269, -0.3217410743, -0.0228081848, 0.0247970056, -0.1072802097, -0.0440433472, -0.3912600577, 0.1531038731, -0.1146239415, -0.0169350673, 0.2143238038, -0.0619999133, 0.2181710601, -0.024720151, -0.0401437581, -0.1876531988, -0.2124550194, -0.3034580648, -0.098807469, -0.0032459104, 0.2954038084, 0.2241868377, -0.0202662684, -0.0708821043, -0.1617211699, -0.3294918537, 0.2559998631, -0.1673352569, 0.1325890124, -0.1250999868, 0.1196719855, -0.1969906837, -0.1260315329, 0.2635343075, -0.0487388968, -0.1794923097, -0.053755682, 0.1822656393, 0.0249121878, -0.1008231565, -0.4248003066, 0.1342131346, -0.1854075342, -0.0751742125, -0.1683257073, -0.0700722784, -0.2950831056, 0.3934321105, 0.1232631877, -0.0822991505, 0.0814590007, -0.3621646762, 0.1432951391, 0.3559269011, -0.0511646643, -0.3062043488, 0.2269726545, -0.0238697194, -0.2126530707, -0.0232425798, -0.300164938, -0.4479037821, 0.0247277133, 0.1486491561, 0.3076384664, 0.4144198298, 0.1959235668, -0.1259262562, -0.0382228941, -0.1248020381, -0.420760572, 0.1242522374, -0.0117370524, 0.1973397732, -0.0983322039, 0.5074976087, -0.3051086664, 0.4946765602, 0.3491694927, -0.4038628638, 0.4498750865, -0.153804481, 0.5353227854, -0.2270279229, -0.1876468062, 0.0977310389, 0.097713083, -0.074256748, 0.2291564196, -0.0771465898, 0.1077795774, 0.0786253735, 0.3998549879, -0.1534991711, -0.2350586951, 0.093381688, 0.041699253, -0.0043321359, -0.0967477188, 0.2947268188, -0.0990584791, 0.1402980834, 0.1448266357, 0.4661463797, 0.4105897546, -0.1144732758, 0.3640741706, -0.2789010704, -0.3221741319, 0.5076092482, -0.0094893984, 0.3112463057, -0.1909678727, -0.2257632017, 0.4270906448, 0.1622133702, 0.5094700456, -0.371375978, -0.3883594275, 0.3326300383, 0.2954975069, -0.3631886244, -0.1525405794, -0.0273868386, -0.0215932373, -0.0370031707, 0.6526849866, -0.4228724837, -0.0011688363, 0.2416595966, 0.081842564, -0.2017996609, -0.3822226226, -0.5365281105, -0.2004129887, -0.3691925108, -0.0537200235, -0.1174363345, 0.313262403, 0.1693925709, 0.1766941249, -0.0936176553, -0.0618895032, 0.1937379688, 0.3094624579, 0.0849093124, 0.1815104038, 0.2277317494, 0.3715898395, 0.487629205, 0.255219698, 0.3997567594, -0.1900375634, -0.2439509183, 0.1860181391, 0.0257179644, 0.2117739618, 0.2899106741, -0.0330048166, 0.2036446184, -0.1958999932, 0.0649257228, -0.2201657593, -0.2590923011, 0.1462915987, 0.0934912786, 0.0041812039, -0.2914550602, 0.5448598266, -0.0175986923, -0.2207262516, -0.1630171537, 0.7354040742, -0.0529474914, 0.8978898525, -0.002841217, 0.9030037522, -0.2579964399, -0.056095127, 0.4146474302, -0.0845780745, 0.5710944533, -0.1455395818, 0.0741491616, -0.4189852178, -0.2335896939, -0.0828630924, -0.0523096509, 0.1802421957, -0.1072505414, -0.2900476456, 0.0874738246, -0.0836209655, -0.13425605, -0.0875005871, -0.0732036456, 0.1548389196, -0.3399550617, -0.209661603, 0.0111379456, 0.4751354456, 0.3716220558, 0.0004493424, -0.0049823904, -0.3148494363, -0.020831028, -0.2948213518, 0.0259205513, 0.3043396175, 0.1437458396, 0.3011053801, -0.2468360215, 0.2028667182, 0.1360371709, 0.5763687491, -0.4888345003, -0.1904985011, 0.1182537675, -0.3001484871, -0.2296493798, -0.1586821079, -0.3349229097, 0.2959027886, 0.3055289686, -0.3957146704, 0.2116836607, 0.1347505152, -0.2160885036, -0.1810228825, 0.2022086382, -0.0348854102, -0.4023381174, -0.1147628576, 0.0080683539, 0.2858684957, -0.0976248682, 0.040756084, 0.1661280841, -0.0370495729, 0.2013928294, 0.1474734992, -0.1411545128, -0.0054666549, 0.5710301995, -0.203382045, 0.172504738, 0.2977308333, 0.1402338743, -0.4358293116, -0.0353425741, -0.5515819192, 0.5049031377, -0.2644135058, -0.2070168406, 0.2630949914, -0.1769466996, 0.0523214079, 0.0210847445, 0.3146511912, -0.2509734035, -0.3915979266, -0.2711707652, -0.0476894788, 0.4246588945, -0.0891590714, 0.1883838773, -0.1719499379, 0.0001764394, -0.0920156389, 0.0131456833, -0.1961169094, 0.1657240391, -0.0758269951, 0.1075029373, -0.0297348835, -0.176487416, 0.0076230727, -0.315418452, 0.012184727, 0.0821588039, 0.0200673155, -0.0173693653, 0.0558542199, 0.1841937155, 0.0815484151, 0.1543057859, -0.4690374136, -0.0369168408, -0.056625057, -0.4456322193, 0.3262779117, 0.1444023848, -0.1596531719, -0.1317912489, 0.0373501293, 0.1413364112, 0.0474607833, 0.2125566006, 0.1360688061, 0.5164857507, 0.2325790823, -0.1356123984, -0.4268549383, 0.1551966518, 0.0897996873, 0.4254206717, 0.1661589742, -0.148136571, 0.3840099871, -0.3068834841, 0.0112679573, -0.0135342935, 0.2134607583, 0.4560754895, -0.0628300086, 0.0791655332, 0.1910352856, 0.0411779359, -0.196254462, 0.0836330727, 0.3954756856, -0.1042648032, 0.0151066594, 0.2821958661, 0.2161116898, 0.1574377865, -0.2313303351, 0.0467251129, 0.169562608, 0.2741906941, -0.3947869241, -0.0031678376, 0.0739471614, 0.2783547342, 0.4403621256, 0.1706484556, 0.3151626885, 0.1510332227, -0.1643122882, 0.1035962552, 0.0389905162, 0.4055019617, -0.1853332072, -0.5798716545, 0.5499580503, 0.2564825118, 0.4967414737, -0.2785114944, 0.0276363119, 0.2131628245, 0.0077695358, -0.0112875458, -0.2104988694, 0.0370273255, -0.1464019865, -0.4431436956, 0.2175288647, -0.0443867221, -0.2370197028, -0.1008000225, 0.0298513249, -0.1973167956, -0.1029090732, -0.1672843099, -0.3034964502, -0.16123873, -0.3351870477, 0.2984618545, 0.2237493396, 0.0694234222, -0.0510131083, -0.172665894, -0.0147904744, 0.3651045263, 0.0982868597, 0.4093314409, 0.0922427177, -0.0501665026, 0.137153849, 0.0476712734, 0.0098275281, -0.0680905357, 0.1368500292, -0.2060671598, 0.1784704626, 0.2098884135, 0.0624125227, -0.0611172207, -0.3300635219, -0.0272064935, 0.6360582113, 0.0477023423, -0.1378115118, -0.3980535865, 0.0392393433, -0.0832631439, -0.0116745699, -0.2653487921, 0.2788211405, 0.0598350763, -0.1342648268, 0.0567126237, 0.3222052753, 0.011663042, -0.2166980058, 0.2653634846, 0.7818456292, -0.0992648751, -0.1718614846, 0.1167359874, -0.5884339809, 0.2082717717, -0.1338329762, -0.229938671, 0.2374172062, 0.6179020405, 0.4279896021, -0.0581779145, 0.0317358449, -0.0683932453, 0.2986147702, 0.3998092413, 0.0247497112, -0.3153724074, -0.1626439542, -0.1644558161, -0.1396198571, 0.0125087909, 0.1287269145, -0.1496261954, -0.0612787008, 0.0495573208, 0.1129623279, -0.1767142117, -0.3649270535, 0.7231636643, 0.0115467506, 0.3714819252, -0.1130694002, 0.0516386628, -0.2628452182, -0.204268977, 0.0472769439, 0.3148735166, -0.1929400712, 0.1571571678, -0.1494898945, -0.2276147157, -0.1884859651, 0.2476057112, 0.0908745229, -0.2714475393, -0.2309943289, 0.1285223514, -0.2478739619, 0.0102837691, -0.014986502, 0.024844531, -0.0483204946, 0.2772890925, 0.105485402, -0.272497654, 0.5993974805, -0.40960899, 0.1013204232, 0.0972106531, 0.2211803347, 0.5730558634, 0.0223234687, -0.8656448126, -0.0058100387, 0.083796367, -0.13170816, -0.2458974272, -0.0987048224, 0.180388853, 0.0558536649, -0.3165009618, -0.1591796875, -0.0125579555, 0.1369659007, -0.0901833475, -0.2896228135 ]
https://github.com/huggingface/datasets/issues/2029
Loading a faiss index KeyError
> If I understand correctly by reading this example you thought that it was re-adding the "embeddings" column. Yes. I was trying to use the dataset in RAG and it complained that the dataset didn't have the right columns. No problems when loading the dataset with `load_from_disk` and then doing `load_faiss_index` What I learned was 1. column and index are different 2. loading the index does not create a column 3. the column is not needed to be able to use the index 4. RAG needs both the embeddings column and the index If I can come up with a way to articulate this in the right spot in the docs, I'll open a PR
I've recently been testing out RAG and DPR embeddings, and I've run into an issue that is not apparent in the documentation. The basic steps are: 1. Create a dataset (dataset1) 2. Create an embeddings column using DPR 3. Add a faiss index to the dataset 4. Save faiss index to a file 5. Create a new dataset (dataset2) with the same text and label information as dataset1 6. Try to load the faiss index from file to dataset2 7. Get `KeyError: "Column embeddings not in the dataset"` I've made a colab notebook that should show exactly what I did. Please switch to GPU runtime; I didn't check on CPU. https://colab.research.google.com/drive/1X0S9ZuZ8k0ybcoei4w7so6dS_WrABmIx?usp=sharing Ubuntu Version VERSION="18.04.5 LTS (Bionic Beaver)" datasets==1.4.1 faiss==1.5.3 faiss-gpu==1.7.0 torch==1.8.0+cu101 transformers==4.3.3 NVIDIA-SMI 460.56 Driver Version: 460.32.03 CUDA Version: 11.2 Tesla K80 I was basically following the steps here: https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index I included the exact code from the documentation at the end of the notebook to show that they don't work either.
115
Loading a faiss index KeyError I've recently been testing out RAG and DPR embeddings, and I've run into an issue that is not apparent in the documentation. The basic steps are: 1. Create a dataset (dataset1) 2. Create an embeddings column using DPR 3. Add a faiss index to the dataset 4. Save faiss index to a file 5. Create a new dataset (dataset2) with the same text and label information as dataset1 6. Try to load the faiss index from file to dataset2 7. Get `KeyError: "Column embeddings not in the dataset"` I've made a colab notebook that should show exactly what I did. Please switch to GPU runtime; I didn't check on CPU. https://colab.research.google.com/drive/1X0S9ZuZ8k0ybcoei4w7so6dS_WrABmIx?usp=sharing Ubuntu Version VERSION="18.04.5 LTS (Bionic Beaver)" datasets==1.4.1 faiss==1.5.3 faiss-gpu==1.7.0 torch==1.8.0+cu101 transformers==4.3.3 NVIDIA-SMI 460.56 Driver Version: 460.32.03 CUDA Version: 11.2 Tesla K80 I was basically following the steps here: https://huggingface.co/docs/datasets/faiss_and_ea.html#adding-a-faiss-index I included the exact code from the documentation at the end of the notebook to show that they don't work either. > If I understand correctly by reading this example you thought that it was re-adding the "embeddings" column. Yes. I was trying to use the dataset in RAG and it complained that the dataset didn't have the right columns. No problems when loading the dataset with `load_from_disk` and then doing `load_faiss_index` What I learned was 1. column and index are different 2. loading the index does not create a column 3. the column is not needed to be able to use the index 4. RAG needs both the embeddings column and the index If I can come up with a way to articulate this in the right spot in the docs, I'll open a PR
[ 0.1141660064, -0.6093640327, 0.0622364432, 0.3725111783, 0.1373019069, 0.286283344, 0.4066282809, 0.0279657934, 0.561445415, 0.2074248046, -0.0576390624, 0.1514220685, 0.4737912714, -0.0607360303, -0.0529890433, -0.0416154042, 0.270290494, 0.2431623936, 0.2737346292, -0.1626691967, -0.2025645673, 0.1247654706, -0.2621256113, 0.1718707234, -0.2482113391, 0.2487476468, -0.2778123319, 0.0308960676, -0.240420416, -0.3826127946, 0.3425859511, -0.2952021062, 0.6600482464, 0.1492620409, -0.0001231916, 0.1020780653, 0.3273310065, -0.1871942282, -0.212285623, 0.0915356427, 0.1122795045, 0.0143890129, 0.2014686912, -0.0870565549, -0.005721448, -0.6249672771, -0.0121626537, -0.1644825041, 0.1824400127, 0.0332698151, 0.1068646088, -0.0065373429, 0.0351546593, -0.378389746, 0.205112353, -0.3338990808, -0.1093249246, 0.3227838278, 0.0918177813, 0.0659413561, 0.0541923679, 0.1877554655, -0.0682540908, 0.1206276566, 0.4152824283, 0.2805345953, 0.3271451592, -0.0941562429, 0.191697523, 0.1926268786, 0.4542700052, -0.0401830748, -0.3339141607, -0.1143841669, 0.256390214, -0.1585261971, 0.230787307, -0.2589789629, 0.0183757264, 0.3088287115, 0.3913374841, -0.2083024979, 0.1492118984, 0.1125608832, -0.0701965168, -0.0499435067, -0.233643651, 0.106282495, 0.1187618896, -0.0412242413, -0.2293081731, -0.1664853543, 0.0698030442, 0.0867945254, -0.3313302696, 0.1300158352, 0.1641414464, 0.0661593676, -0.1091431156, 0.054785084, -0.1893747896, -0.0264875684, 0.1374493092, 0.3345863521, -0.1803770661, 0.0246970374, 0.0444205552, -0.0005219267, -0.0113881305, 0.2225166261, 0.0441292673, -0.2677800655, -0.0962477997, -0.1068619713, -0.513574481, -0.3039866388, -0.1129444838, -0.3393260241, -0.4211429954, 0.222263217, -0.4232883453, -0.1412899941, -0.0298155546, 0.575509131, 0.2752491832, -0.1636072695, 0.2179997563, 0.3787247837, -0.2972564101, 0.1781837791, -0.188408047, 0.0873632282, -0.1798177958, 0.4388460517, 0.1041526794, -0.4247676432, 0.2150660008, 0.0994245782, 0.0897853747, 0.0637220889, -0.3770471811, -0.0550759919, 0.3408403099, 0.2761132121, -0.0871317536, 0.0847100765, 0.3560986519, -0.2921207547, -0.2050967813, 0.0592059493, -0.1236086488, -0.1076332554, -0.1479507685, 0.091759935, -0.0937498212, -0.0581441931, 0.1996406466, 0.0405037999, 0.1504991353, -0.3299961388, 0.0449836962, -0.0093830619, -0.1618902981, -0.2245409191, 0.4479079545, 0.372436285, -0.7759336233, -0.3368354738, 0.0550397187, 0.1556860507, -0.0823369399, 0.2427783459, -0.1244227514, 0.1349112093, -0.2709989846, 0.4014905095, 0.1220541298, -0.0901547894, -0.170891434, 0.0448938943, 0.0930250064, 0.0285857841, 0.2380019128, -0.0986706465, 0.3254885972, 0.1497478038, 0.3354110122, -0.0001986071, 0.0043548308, -0.36718297, -0.1630480438, -0.3921637535, 0.0697729439, 0.0956223533, -0.1325727254, -0.0251714122, -0.1350776851, -0.4143712521, 0.0810391158, -0.2481820434, -0.0480560176, 0.0244529787, 0.267490238, 0.345554322, 0.4671975374, 0.0824594349, -0.1673385352, 0.256487608, 0.1291599423, 0.0423052907, -0.1225518212, -0.0157375615, -0.2794285715, -0.0127059706, -0.0496820845, -0.1818128228, -0.0790600628, 0.0145898461, -0.011876815, -0.0757849142, -0.3321082592, 0.1303435266, -0.2576683462, 0.2069557607, -0.5300258994, 0.452090919, -0.2802709937, -0.2228664309, 0.0329991616, 0.2488916069, 0.1472435147, -0.2128631026, 0.1438020766, 0.1014063954, -0.0003677125, -0.2585802674, 0.1111173555, -0.1829437912, 0.1620032489, -0.1446014047, 0.0851275995, -0.1179837734, 0.2549681664, 0.0650632009, -0.22447294, 0.4591360688, -0.0234925374, 0.3052207828, -0.2029886991, -0.2119349241, 0.1173569486, -0.0178666301, -0.0267291591, -0.3300512433, -0.1173003539, 0.0439030901, -0.1680182219, -0.0541885495, 0.0857990459, 0.1069039702, -0.0282333922, 0.0522947311, -0.1552650481, 0.0112997536, -0.2901856601, 0.0189377666, 0.0887713209, -0.3720992506, 0.4891068637, 0.2894639671, -0.1515060067, -0.2688130736, -0.2140419632, -0.3313252032, 0.0595771596, -0.0840367749, -0.2100378126, 0.1587174088, -0.1157230362, 0.0546813607, -0.2241606414, 0.0081051411, 0.0759628415, 0.1576979607, -0.5991172194, 0.0572369359, -0.3049146831, -0.0366019011, 0.0308596175, -0.1012301072, 0.0415184982, -0.3487312198, 0.1815758348, -0.1190843582, -0.037794482, 0.1511287838, -0.0626410097, 0.2203115374, -0.0816776007, 0.0488704666, -0.1951136887, -0.2207873315, -0.3345488608, -0.069088541, -0.0555739105, 0.3011594415, 0.1825916618, -0.0411621183, -0.1298972517, -0.1396413743, -0.2877672911, 0.3002022803, -0.1688949764, 0.1524759084, -0.1127931476, 0.1133969426, -0.1385279, -0.1531700045, 0.3262206018, -0.0357741676, -0.1949458867, -0.0704274997, 0.0943010002, -0.0298893359, -0.0883331448, -0.4785190821, 0.1902282834, -0.2006299496, -0.1416559666, -0.1947052926, -0.083978571, -0.4174037278, 0.4110862315, 0.0925740451, -0.0698831305, 0.0942996815, -0.3801019192, 0.0698089749, 0.3063394129, -0.0815025568, -0.28943488, 0.146522373, 0.009655063, -0.2156971991, 0.0390081257, -0.3196032345, -0.554397881, 0.0217473954, 0.1595107764, 0.270395875, 0.4036833346, 0.1567668319, -0.1057032421, -0.0533163212, -0.1179203615, -0.4052334428, 0.0328003913, -0.0535211265, 0.2113654912, -0.1147603244, 0.4869486988, -0.3206719458, 0.5223789215, 0.3810576797, -0.3383182585, 0.4276521504, -0.1127688363, 0.5202958584, -0.2422707081, -0.1422122717, 0.1987452656, 0.0586947426, 0.0017599653, 0.2437188774, -0.095864445, 0.1190661639, 0.0689601898, 0.3653150201, -0.0896218643, -0.2674027979, 0.1314045936, 0.030551631, -0.0160450879, -0.0716381073, 0.3272545338, -0.0920909271, 0.1545764357, 0.184921205, 0.3969685435, 0.3998637497, -0.0730621815, 0.2712458074, -0.332703799, -0.2081061602, 0.5384802818, 0.0814218372, 0.2804941237, -0.1965025961, -0.1623131633, 0.4398680329, 0.1852535307, 0.5423483253, -0.4256883264, -0.3764910102, 0.3058633506, 0.3216747046, -0.4337249994, -0.147614643, -0.0224915892, -0.0453609638, -0.0149932764, 0.7402040362, -0.4742541611, -0.0177629031, 0.2606264949, 0.1066690385, -0.1701066941, -0.477691561, -0.5002129674, -0.1444375068, -0.4203992784, -0.0762695223, -0.2062745392, 0.3078435659, 0.1021928266, 0.2367189378, -0.0812159851, 0.0129866367, 0.1501801461, 0.3022860289, 0.0446067266, 0.052597452, 0.2101492733, 0.4190897346, 0.4358885586, 0.2720904052, 0.4205085933, -0.1399780661, -0.3320226371, 0.2088845223, -0.0006846736, 0.1612279266, 0.3638105094, 0.0299521666, 0.2056960613, -0.166926071, 0.0103235133, -0.2124233544, -0.3417511582, 0.0968276635, 0.0627072155, 0.071824193, -0.2635463178, 0.4906755388, 0.0296072457, -0.146521464, -0.1024476141, 0.7082785368, -0.0038828747, 0.9643498063, -0.0068478519, 0.9512914419, -0.1551676244, -0.0376357213, 0.4408628345, -0.1820307672, 0.4978239536, -0.161235258, 0.1090131551, -0.4382877052, -0.217416659, -0.0792143196, -0.0454562046, 0.1918791234, -0.0233828332, -0.2681637704, 0.1553367376, -0.1022785977, -0.0949522629, -0.0957575887, -0.0553627014, 0.0645112395, -0.4010765254, -0.192283079, 0.0187403653, 0.4626623988, 0.35808146, 0.0256027672, 0.0297266431, -0.3238194287, -0.0115195792, -0.3098016083, 0.0463714078, 0.312068671, 0.1080762371, 0.382355541, -0.241680488, 0.2194239348, 0.1066801324, 0.6348165274, -0.4909476042, -0.1986658275, 0.1314473003, -0.2250172496, -0.2495677471, -0.1412056088, -0.3402718306, 0.3036342859, 0.2455487847, -0.4158508778, 0.2610159814, 0.1105018035, -0.1313998103, -0.1638644189, 0.1526335329, 0.0098767132, -0.4759305418, -0.1079161912, -0.0234593209, 0.3508499265, -0.0961574763, 0.0572823994, 0.1041795313, -0.0218207017, 0.1986281127, 0.0722786188, -0.1242034361, -0.0319022089, 0.4855899811, -0.1633221358, 0.1417825371, 0.334489733, 0.0986915231, -0.4170291126, -0.0284616556, -0.5361011624, 0.5242938995, -0.3646397889, -0.1897100955, 0.3145850599, -0.1721122414, 0.0639137551, 0.0145349968, 0.381975472, -0.2045627832, -0.2862966657, -0.2601953447, -0.0206424613, 0.3878617585, -0.0625408739, 0.1380119771, -0.1181080788, 0.0041948864, -0.1206753924, 0.0701414645, -0.2063860446, 0.1769717336, -0.0697778165, 0.1305288374, -0.0349913575, -0.2045267969, -0.0364284515, -0.2391809672, 0.0181265604, 0.0927700326, -0.0183125585, -0.0059972, 0.0139024956, 0.1815476418, 0.0901798308, 0.1111629084, -0.4262262583, -0.0474816971, -0.0676280782, -0.3948302269, 0.3541819155, 0.1756355613, -0.116695568, -0.1651632935, 0.0495952256, 0.0697005317, -0.0563954376, 0.2638916969, 0.1273396611, 0.5054333806, 0.2831274569, -0.130798474, -0.4669466317, 0.1515467614, 0.068347767, 0.3996828496, 0.1805759519, -0.0922707692, 0.3608170748, -0.2189326435, 0.028939683, -0.0035553249, 0.1313321143, 0.4595067799, -0.053004913, 0.0577950776, 0.1733678877, 0.0563397408, -0.1533016115, 0.0975935459, 0.3312349916, -0.0935291722, -0.0380809866, 0.2321974933, 0.2101736516, 0.0921626016, -0.177208364, 0.0337094814, 0.2256146371, 0.1871289164, -0.3880460262, -0.0120700477, 0.1033219397, 0.2610354125, 0.490157187, 0.1079505831, 0.3249964118, 0.044672668, -0.1087731645, 0.0432823785, 0.0471100025, 0.4198778272, -0.1686377376, -0.6134330034, 0.5157349706, 0.2900370061, 0.4744550884, -0.3256697953, 0.0362979025, 0.2324465215, 0.0131477946, -0.0064872857, -0.1716698706, -0.0322822854, -0.1626162082, -0.449457705, 0.1296901852, -0.0375101715, -0.1559708565, -0.0305809081, 0.0236074068, -0.0976384059, -0.0056417217, -0.0976480022, -0.3179892302, -0.1804524809, -0.3293995559, 0.2765716016, 0.232700035, 0.0657431632, -0.0451875404, -0.1133552194, -0.0320089683, 0.4509782493, 0.0384962633, 0.5022714138, 0.1259164065, 0.0164804589, 0.0336957835, 0.069467172, 0.0463825576, -0.0118555436, 0.2121429145, -0.1274944693, 0.2494781613, 0.2408227623, 0.0902939886, -0.1038249657, -0.3525879085, -0.0541386418, 0.5762380958, 0.063618578, -0.1043974459, -0.3979019523, 0.0523123406, -0.0834134594, 0.0134530906, -0.1997366697, 0.3871742487, -0.0032993278, -0.1049191728, 0.0381019711, 0.3390268385, 0.0234479457, -0.1851811409, 0.2432608455, 0.8182149529, -0.2200945169, -0.2327183038, 0.1255899072, -0.5277736187, 0.2583820224, -0.1381705105, -0.1659803838, 0.2066940218, 0.6418517828, 0.4926264584, -0.0448903777, -0.0263895355, -0.0407652818, 0.2749049366, 0.4152512252, 0.042322021, -0.3399312496, -0.0948815942, -0.2120660692, -0.162736237, -0.0597311743, 0.1098054945, -0.046406962, -0.0607467517, 0.0680685639, 0.0699817464, -0.1350309998, -0.3679935038, 0.6232010126, 0.0587595105, 0.3626818955, -0.1151082441, 0.0254573897, -0.2804363668, -0.153805241, -0.0043473472, 0.2639606893, -0.1937405467, 0.1482801288, -0.1594251394, -0.1516766399, -0.2438271642, 0.2302542478, 0.0425606854, -0.1830165684, -0.2047594041, 0.1614385247, -0.2503420115, 0.0224262141, -0.0029810912, 0.0231913775, -0.0504192822, 0.2751448452, 0.0746591166, -0.2265357822, 0.6171562672, -0.3164283037, 0.0909381583, 0.1647375971, 0.2101885825, 0.4974497855, 0.0436609164, -0.8163818121, -0.0133224959, 0.0778877139, -0.139490217, -0.2482407242, -0.096159324, 0.2267886102, 0.0229927767, -0.2847952247, -0.2223567367, 0.0500372909, 0.0527014434, -0.0666388273, -0.2481242865 ]
https://github.com/huggingface/datasets/issues/2026
KeyError on using map after renaming a column
Hi, Actually, the error occurs due to these two lines: ```python raw_dataset.set_format('torch',columns=['img','label']) raw_dataset = raw_dataset.rename_column('img','image') ``` `Dataset.rename_column` doesn't update the `_format_columns` attribute, previously defined by `Dataset.set_format`, with a new column name which is why this new column is missing in the output.
Hi, I'm trying to use `cifar10` dataset. I want to rename the `img` feature to `image` in order to make it consistent with `mnist`, which I'm also planning to use. By doing this, I was trying to avoid modifying `prepare_train_features` function. Here is what I try: ```python transform = Compose([ToPILImage(),ToTensor(),Normalize([0.0,0.0,0.0],[1.0,1.0,1.0])]) def prepare_features(examples): images = [] labels = [] print(examples) for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform(examples["image"][example_idx].permute(2,0,1))) else: images.append(examples["image"][example_idx].permute(2,0,1)) labels.append(examples["label"][example_idx]) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('cifar10') raw_dataset.set_format('torch',columns=['img','label']) raw_dataset = raw_dataset.rename_column('img','image') features = datasets.Features({ "image": datasets.Array3D(shape=(3,32,32),dtype="float32"), "label": datasets.features.ClassLabel(names=[ "airplane", "automobile", "bird", "cat", "deer", "dog", "frog", "horse", "ship", "truck", ]), }) train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) ``` The error: ```python --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-54-bf29672c53ee> in <module>() 14 ]), 15 }) ---> 16 train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) 2 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint) 1287 test_inputs = self[:2] if batched else self[0] 1288 test_indices = [0, 1] if batched else 0 -> 1289 update_data = does_function_return_dict(test_inputs, test_indices) 1290 logger.info("Testing finished, running the mapping function on the dataset") 1291 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in does_function_return_dict(inputs, indices) 1258 fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns] 1259 processed_inputs = ( -> 1260 function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) 1261 ) 1262 does_return_dict = isinstance(processed_inputs, Mapping) <ipython-input-52-b4dccbafb70d> in prepare_features(examples) 3 labels = [] 4 print(examples) ----> 5 for example_idx, example in enumerate(examples["image"]): 6 if transform is not None: 7 images.append(transform(examples["image"][example_idx].permute(2,0,1))) KeyError: 'image' ``` The print statement inside returns this: ```python {'label': tensor([6, 9])} ``` Apparently, both `img` and `image` do not exist after renaming. Note that this code works fine with `img` everywhere. Notebook: https://colab.research.google.com/drive/1SzESAlz3BnVYrgQeJ838vbMp1OsukiA2?usp=sharing
42
KeyError on using map after renaming a column Hi, I'm trying to use `cifar10` dataset. I want to rename the `img` feature to `image` in order to make it consistent with `mnist`, which I'm also planning to use. By doing this, I was trying to avoid modifying `prepare_train_features` function. Here is what I try: ```python transform = Compose([ToPILImage(),ToTensor(),Normalize([0.0,0.0,0.0],[1.0,1.0,1.0])]) def prepare_features(examples): images = [] labels = [] print(examples) for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform(examples["image"][example_idx].permute(2,0,1))) else: images.append(examples["image"][example_idx].permute(2,0,1)) labels.append(examples["label"][example_idx]) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('cifar10') raw_dataset.set_format('torch',columns=['img','label']) raw_dataset = raw_dataset.rename_column('img','image') features = datasets.Features({ "image": datasets.Array3D(shape=(3,32,32),dtype="float32"), "label": datasets.features.ClassLabel(names=[ "airplane", "automobile", "bird", "cat", "deer", "dog", "frog", "horse", "ship", "truck", ]), }) train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) ``` The error: ```python --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-54-bf29672c53ee> in <module>() 14 ]), 15 }) ---> 16 train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) 2 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint) 1287 test_inputs = self[:2] if batched else self[0] 1288 test_indices = [0, 1] if batched else 0 -> 1289 update_data = does_function_return_dict(test_inputs, test_indices) 1290 logger.info("Testing finished, running the mapping function on the dataset") 1291 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in does_function_return_dict(inputs, indices) 1258 fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns] 1259 processed_inputs = ( -> 1260 function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) 1261 ) 1262 does_return_dict = isinstance(processed_inputs, Mapping) <ipython-input-52-b4dccbafb70d> in prepare_features(examples) 3 labels = [] 4 print(examples) ----> 5 for example_idx, example in enumerate(examples["image"]): 6 if transform is not None: 7 images.append(transform(examples["image"][example_idx].permute(2,0,1))) KeyError: 'image' ``` The print statement inside returns this: ```python {'label': tensor([6, 9])} ``` Apparently, both `img` and `image` do not exist after renaming. Note that this code works fine with `img` everywhere. Notebook: https://colab.research.google.com/drive/1SzESAlz3BnVYrgQeJ838vbMp1OsukiA2?usp=sharing Hi, Actually, the error occurs due to these two lines: ```python raw_dataset.set_format('torch',columns=['img','label']) raw_dataset = raw_dataset.rename_column('img','image') ``` `Dataset.rename_column` doesn't update the `_format_columns` attribute, previously defined by `Dataset.set_format`, with a new column name which is why this new column is missing in the output.
[ 0.0343903154, 0.0062004873, -0.0635801479, -0.334228307, 0.4808439612, 0.2616390288, 0.6042661071, 0.2373320013, 0.137091592, 0.0865909606, 0.0540353619, 0.52703017, -0.1558954418, 0.2994628847, -0.1945008039, -0.0881170109, 0.4133821428, 0.0935038179, -0.1156335995, 0.1972019821, -0.4435485005, 0.0497061238, -0.3014574647, 0.2807839811, -0.3147516251, -0.1778967232, 0.0545336343, -0.19385463, -0.2473179102, -0.2746687829, -0.0492156446, 0.097102955, -0.0223660059, 0.6005281806, -0.0001189421, 0.0826988444, 0.1887073815, -0.0865514055, 0.0829854906, -0.2960747778, -0.1819151193, -0.0115415398, -0.2230612189, -0.5142742395, 0.0406856313, -0.0636156574, -0.0771723241, -0.2671771944, 0.1024494097, 0.2466996908, 0.1638299227, -0.1138830334, 0.220922783, -0.0220485963, 0.043947082, 0.2382538617, -0.1926511973, 0.0769320279, 0.0491047911, -0.3582005501, 0.229098171, 0.6931740642, -0.2142524421, -0.0826260298, 0.2492944598, 0.1485664248, 0.4132110775, -0.3595769405, 0.3614652157, -0.1366177052, 0.2379053235, -0.151238665, -0.104380399, -0.0542325489, -0.0018235649, -0.2537844777, -0.0232361145, -0.319638133, 0.0776958242, -0.2296989709, -0.3305272162, -0.1850069612, 0.1285368055, 0.2078442574, 0.1231135204, -0.0971982032, -0.0296083298, 0.4492813051, 0.1049033999, -0.3226706684, -0.1246058717, 0.0269127879, 0.0980836451, 0.2211731821, -0.2241780758, -0.0697751865, 0.1054664254, -0.0227157138, -0.2865684927, -0.6728144884, 0.0171007067, -0.1154986992, 0.1804636121, 0.078501299, 0.1063620821, 0.2072906047, -0.0879257172, 0.3839031458, 0.0437417552, 0.0499912314, -0.3903312981, -0.2533302605, 0.1843825132, -0.3990156353, 0.3597592115, 0.2472610623, 0.3776055574, 0.0936781392, 0.4118516743, -0.0127616143, 0.1394359916, -0.0965100229, -0.0235800147, 0.3582357168, 0.2444262654, -0.0504653379, 0.1044973359, 0.1474117488, -0.0377256237, 0.2744557858, -0.0399700291, 0.1520807445, -0.5921465755, -0.1053765863, -0.1591846943, 0.0644561127, 0.0273747798, -0.1856066883, 0.1200413108, -0.1029785275, -0.0174149461, -0.0625614375, 0.4089114666, 0.1914610416, -0.3518826663, 0.1143236682, 0.2287518382, -0.2352547497, -0.1231610104, 0.2178229988, -0.6010237932, -0.1866198331, -0.193540141, 0.0911871269, 0.2030771822, 0.1996436119, -0.2752967775, -0.1346440315, 0.5062406063, -0.4040706754, 0.0826784894, -0.2427095473, -0.2949000299, -0.2364550978, -0.1690336913, -0.0339542404, -0.0462761447, -0.0256846193, -0.1759427488, 0.3576540053, 0.0155099183, -0.0486620888, -0.1009821966, 0.213253513, -0.0342832692, 0.1602662057, 0.4271648228, -0.3145628273, -0.2063584328, -0.0152600082, -0.2203989923, -0.1616605669, -0.0920223668, 0.0930307433, 0.2039044201, -0.072713986, 0.4399832189, -0.1544138491, -0.0898715705, 0.1785475016, 0.1311586052, -0.0462149866, 0.1775303781, -0.0791232139, 0.1281121224, 0.2086731493, 0.111134775, 0.0116958907, -0.0227942877, -0.2068923265, 0.0939344764, 0.0991028249, 0.2192524672, -0.0245535988, 0.036057055, 0.0803689212, -0.3255301714, 0.1678812653, 0.1803425401, 0.1416129619, -0.2925769091, -0.1196025535, -0.2550838292, -0.1336404979, -0.176066637, 0.0316430479, 0.0552044399, -0.054000672, -0.0344206467, -0.1491250694, -0.1648834199, -0.1527561396, 0.049740117, 0.10933166, -0.3486706316, -0.0184661672, -0.2110998929, -0.1441620886, -0.3850234747, 0.0132767186, 0.188134402, -0.0540967472, -0.2381076068, 0.3495651186, 0.1393085718, 0.0440964252, -0.3154117465, 0.1756070107, 0.0911010653, -0.0334515236, -0.0013045821, 0.1042699292, 0.181464985, -0.0348045416, 0.1123572364, 0.2557914853, -0.2581354976, 0.380661726, -0.2395886481, 0.1288559735, -0.084158875, -0.1766914874, -0.2373666018, -0.39378196, -0.1437819749, -0.2950774729, -0.2323311567, -0.0712198913, 0.3053759336, -0.2079802752, 0.5871575475, -0.0409827307, 0.0240914281, -0.0057099536, 0.0615632124, 0.2896171212, 0.0114170266, 0.1064896658, 0.2978292108, -0.0096139507, -0.2233592421, 0.2672612071, 0.1708517969, 0.2767234743, 0.2040939033, 0.2167061418, 0.2447034717, 0.0480268002, 0.1485537589, -0.0613895729, 0.0164966248, -0.2999011576, 0.3099987507, 0.2844224274, -0.2336355597, 0.0998231992, -0.0660418198, 0.0700868145, 0.2823906243, -0.1527174711, 0.0562226288, -0.2700431645, -0.094888404, 0.3865871131, 0.0920765251, 0.4332140684, -0.1842429042, -0.3789013028, 0.2417967469, -0.3546554148, -0.0365540422, -0.4494330287, 0.0306259189, -0.0325059481, 0.0856916532, -0.4606235921, 0.0817555338, -0.1647824794, -0.1355613619, -0.1211330518, -0.5227617621, 0.1218557283, -0.4426471293, 0.0148034515, 0.2468884587, 0.2771112621, -0.2926219404, -0.1771505773, 0.4542586803, -0.2178658843, -0.149430424, 0.1258669943, 0.0121634724, -0.039334055, -0.1180342734, -0.1904157698, -0.0265279412, -0.1234949231, 0.1169082299, -0.2646970451, 0.0163140353, 0.5068843365, 0.2759182453, -0.2442608178, 0.1430363208, -0.0489324629, -0.1584292203, -0.3822787702, 0.2083154023, -0.0868600383, 0.0838408321, 0.0047292784, -0.114303425, -0.0037284927, 0.0410411321, -0.1813219339, -0.2923727632, -0.0811148137, 0.252066046, 0.1551324278, 0.1015878171, 0.2861323059, 0.4163929224, -0.1233831942, 0.0155468676, -0.2297620028, -0.0407739319, 0.449616164, 0.2750445902, 0.28390643, 0.4489242435, -0.0161301829, 0.2931136191, -0.1320108324, -0.1058143079, 0.4552733302, -0.3281630576, 0.097139582, -0.4271510243, -0.49832955, 0.0212255381, -0.3456523716, -0.269215554, -0.2526127696, -0.1974034011, -0.2074297071, -0.125082463, 0.2784192562, -0.4862348139, -0.3314017057, 0.1603581607, 0.0705960765, 0.3074231744, 0.0487650558, -0.0192792602, -0.4495792687, -0.1688800901, 0.098095201, 0.0244837385, 0.0559058376, -0.3355076909, -0.6632699966, -0.236522153, -0.3934518993, 0.4276642501, 0.113160342, 0.152977854, -0.1410125047, -0.0606673807, -0.0556474552, 0.0688658208, 0.7746018171, -0.4415772855, -0.1148997918, 0.3010855615, -0.0476224869, -0.0988456309, -0.24329786, -0.0672429726, 0.2733609676, 0.0472897105, 0.8124080896, 0.0474173278, 0.0843915343, 0.2145462036, 0.0629549772, -0.0658332705, 0.028618155, -0.4060543776, -0.2894008458, -0.5907232761, -0.0206708051, 0.0572947599, 0.2173587531, 0.3088782728, 0.1889960319, 0.1960790008, -0.1945683509, 0.0154504385, 0.266408205, 0.1986871958, 0.3779761791, 0.0560514778, -0.0483677201, 0.1246332005, 0.003019646, 0.140639469, -0.2207600325, -0.2776943147, -0.0573594719, 0.0422720723, 0.3460412323, 0.2213219553, 0.0628876165, 0.0959231928, 0.1461026073, 0.2581582069, -0.2759144306, 0.2963349819, 0.4933304787, 0.1403308213, -0.4810528159, -0.3202236593, 0.2370318472, 0.2185060829, -0.1690099984, 0.381642729, 0.0929525644, -0.3298316598, 0.5882655382, 0.085470587, 0.8382585645, -0.3112328649, 0.0554846637, -0.0850669146, 0.0784886479, 0.2867375314, 0.0625674352, 0.2233814001, -0.1989949644, -0.4336813986, 0.0294409934, -0.0587246642, 0.3476178646, 0.0871919915, -0.1870899498, 0.2699609995, -0.222486645, 0.5848440528, -0.2539534867, -0.2409917861, 0.2116031051, -0.374312371, 0.1243178472, 0.0566492416, -0.0686611608, 0.0904510096, 0.0100758076, 0.140185073, -0.1021841094, -0.358354032, 0.0675275922, -0.0539398342, -0.2007297873, 0.232511282, -0.213707298, -0.2194651514, -0.0675617978, 0.3379039168, 0.3049483895, 0.2256912738, 0.0769785717, 0.2345014662, 0.4431698918, 0.2091673166, -0.0408835895, -0.1617859006, -0.0470286533, 0.140121296, -0.2852280736, 0.1369482577, -0.0141865974, -0.2416304499, -0.3642431796, 0.0415634662, 0.4323446453, -0.3393746614, -0.2499044091, -0.1570414007, -0.0112911602, -0.100093469, 0.067859903, -0.3800919056, -0.1897209436, 0.4002569914, -0.114598237, -0.4112877846, 0.1257440001, 0.3634689748, 0.0822050497, 0.0131314704, 0.503176868, -0.1995396912, 0.0113481581, -0.0863426402, 0.0982047543, 0.2158662379, -0.0867505893, 0.0297973119, 0.3238882124, -0.0309050847, -0.1596035063, 0.4304634035, 0.056714274, 0.2015253305, 0.0784538314, -0.2432668358, -0.6696434021, 0.4877868593, 0.1031508669, 0.2492168248, 0.1051923335, 0.3467669785, -0.2948550582, -0.0112464335, -0.2399552763, 0.0649204031, -0.0438206531, 0.3154603541, 0.4421717525, 0.0253380332, -0.0896072909, -0.2898141444, 0.2092777342, 0.2641289234, -0.0850464851, -0.2138589919, -0.0167677943, 0.1183087155, 0.1053169817, -0.1505648792, -0.024389552, -0.3231565952, -0.0274437927, -0.2703392208, -0.0828690156, 0.3389024138, 0.0339186154, 0.1923668534, -0.5534638762, -0.0861905217, 0.3065197468, 0.1393100023, -0.1251808703, -0.0567398295, 0.2653054595, 0.1776151359, -0.0504079163, 0.0970635563, -0.2915787101, -0.0684082136, -0.1543522328, 0.115613997, 0.3472281396, -0.1888155341, 0.1339827776, 0.0561051071, 0.2796283662, 0.1310019344, -0.2598961592, -0.1948145628, 0.3021292388, 0.0988665223, -0.3267247975, -0.1829229891, 0.521592319, -0.0156407077, 0.2411123812, 0.2352425009, -0.0485075191, 0.131687656, -0.2601727843, -0.0177908391, 0.1529345959, -0.0737772882, 0.246981591, 0.6254127622, -0.1150747091, 0.2715170085, 0.2926053405, 0.3730809391, -0.1249767318, 0.6644851565, 0.0635504201, 0.2042201459, 0.1586618274, 0.2688655853, -0.1144811809, -0.0899508223, 0.5314690471, 0.1346583366, -0.2235026509, 0.2969570458, 0.1907868981, -0.2590560317, -0.0018366597, -0.2252579331, -0.077545017, 0.2807586789, -0.2177533656, -0.2554298937, -0.1515020877, -0.0360630006, 0.0017209632, 0.0805627853, -0.0572084934, 0.0685868785, 0.6512498856, 0.0260288864, 0.0510048345, 0.0960449129, -0.5209684968, 0.1352972239, 0.3933673203, -0.1334356815, -0.0180001855, 0.0571532771, 0.1642049402, 0.2200042754, 0.015519877, 0.3567887843, 0.1692756861, -0.2766987383, 0.1629790813, -0.0195907373, -0.1051775068, 0.2641952336, 0.0439047143, 0.3267832696, 0.0087462189, 0.1000833437, 0.0357460417, -0.1855373979, -0.1050798446, 0.1487797797, 0.1994475275, 0.196705699, -0.0666738376, 0.0776693001, -0.1384181678, -0.0612890944, 0.1662920713, -0.2106761187, -0.2168647796, 0.4741017222, -0.1182756796, 0.1831551045, 0.1314245462, 0.0622665584, 0.1147596166, 0.1901857257, 0.1068614647, -0.1823742986, -0.5617814064, -0.0506485812, -0.3618875742, -0.1454606056, -0.0483253226, 0.0958935916, 0.0001839394, -0.2958846092, 0.2807194293, 0.1011900902, 0.435056895, -0.4830628037, -0.0566601083, 0.5606931448, 0.0539844297, -0.0601436682, 0.0202837773, 0.247342959, 0.1078898385, -0.347112745, 0.0970266983, 0.0586616211, -0.0088259857, -0.3392793536, -0.1747092158, -0.2541409135, -0.2222280502, 0.471578747, 0.1747034192, 0.4249303043, -0.1517660022, -0.0727757961, 0.1637435555, -0.167682305, -0.0168346688, 0.209523052, 0.2309506088, 0.3883234859, -0.0711033642, 0.1280173361, -0.3970901966, 0.0074615884, 0.0302021094, -0.1853105873, -0.376593262, 0.1869214177, 0.2549928427, 0.0408341847, -0.1853444129, 0.3607899845, 0.0388964675, 0.5180019736, -0.0680310205, -0.369066596, 0.7985039949, -0.3579205573, -0.6600229144, 0.0823596641, -0.0900158733, -0.1427421719, 0.0412080362, -0.2388156652, -0.0630643517, 0.073640801, -0.0334532186, -0.3466160595, 0.0901280567, -0.1645768732, 0.0798357949, 0.0364476889, 0.4860983193, -0.3197672963, -0.0945578068, -0.2467263788, -0.0632386282 ]
https://github.com/huggingface/datasets/issues/2026
KeyError on using map after renaming a column
Hi @mariosasko, Thanks for opening a PR on this :) Why does the old name also disappear?
Hi, I'm trying to use `cifar10` dataset. I want to rename the `img` feature to `image` in order to make it consistent with `mnist`, which I'm also planning to use. By doing this, I was trying to avoid modifying `prepare_train_features` function. Here is what I try: ```python transform = Compose([ToPILImage(),ToTensor(),Normalize([0.0,0.0,0.0],[1.0,1.0,1.0])]) def prepare_features(examples): images = [] labels = [] print(examples) for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform(examples["image"][example_idx].permute(2,0,1))) else: images.append(examples["image"][example_idx].permute(2,0,1)) labels.append(examples["label"][example_idx]) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('cifar10') raw_dataset.set_format('torch',columns=['img','label']) raw_dataset = raw_dataset.rename_column('img','image') features = datasets.Features({ "image": datasets.Array3D(shape=(3,32,32),dtype="float32"), "label": datasets.features.ClassLabel(names=[ "airplane", "automobile", "bird", "cat", "deer", "dog", "frog", "horse", "ship", "truck", ]), }) train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) ``` The error: ```python --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-54-bf29672c53ee> in <module>() 14 ]), 15 }) ---> 16 train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) 2 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint) 1287 test_inputs = self[:2] if batched else self[0] 1288 test_indices = [0, 1] if batched else 0 -> 1289 update_data = does_function_return_dict(test_inputs, test_indices) 1290 logger.info("Testing finished, running the mapping function on the dataset") 1291 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in does_function_return_dict(inputs, indices) 1258 fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns] 1259 processed_inputs = ( -> 1260 function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) 1261 ) 1262 does_return_dict = isinstance(processed_inputs, Mapping) <ipython-input-52-b4dccbafb70d> in prepare_features(examples) 3 labels = [] 4 print(examples) ----> 5 for example_idx, example in enumerate(examples["image"]): 6 if transform is not None: 7 images.append(transform(examples["image"][example_idx].permute(2,0,1))) KeyError: 'image' ``` The print statement inside returns this: ```python {'label': tensor([6, 9])} ``` Apparently, both `img` and `image` do not exist after renaming. Note that this code works fine with `img` everywhere. Notebook: https://colab.research.google.com/drive/1SzESAlz3BnVYrgQeJ838vbMp1OsukiA2?usp=sharing
17
KeyError on using map after renaming a column Hi, I'm trying to use `cifar10` dataset. I want to rename the `img` feature to `image` in order to make it consistent with `mnist`, which I'm also planning to use. By doing this, I was trying to avoid modifying `prepare_train_features` function. Here is what I try: ```python transform = Compose([ToPILImage(),ToTensor(),Normalize([0.0,0.0,0.0],[1.0,1.0,1.0])]) def prepare_features(examples): images = [] labels = [] print(examples) for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform(examples["image"][example_idx].permute(2,0,1))) else: images.append(examples["image"][example_idx].permute(2,0,1)) labels.append(examples["label"][example_idx]) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('cifar10') raw_dataset.set_format('torch',columns=['img','label']) raw_dataset = raw_dataset.rename_column('img','image') features = datasets.Features({ "image": datasets.Array3D(shape=(3,32,32),dtype="float32"), "label": datasets.features.ClassLabel(names=[ "airplane", "automobile", "bird", "cat", "deer", "dog", "frog", "horse", "ship", "truck", ]), }) train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) ``` The error: ```python --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-54-bf29672c53ee> in <module>() 14 ]), 15 }) ---> 16 train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) 2 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint) 1287 test_inputs = self[:2] if batched else self[0] 1288 test_indices = [0, 1] if batched else 0 -> 1289 update_data = does_function_return_dict(test_inputs, test_indices) 1290 logger.info("Testing finished, running the mapping function on the dataset") 1291 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in does_function_return_dict(inputs, indices) 1258 fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns] 1259 processed_inputs = ( -> 1260 function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) 1261 ) 1262 does_return_dict = isinstance(processed_inputs, Mapping) <ipython-input-52-b4dccbafb70d> in prepare_features(examples) 3 labels = [] 4 print(examples) ----> 5 for example_idx, example in enumerate(examples["image"]): 6 if transform is not None: 7 images.append(transform(examples["image"][example_idx].permute(2,0,1))) KeyError: 'image' ``` The print statement inside returns this: ```python {'label': tensor([6, 9])} ``` Apparently, both `img` and `image` do not exist after renaming. Note that this code works fine with `img` everywhere. Notebook: https://colab.research.google.com/drive/1SzESAlz3BnVYrgQeJ838vbMp1OsukiA2?usp=sharing Hi @mariosasko, Thanks for opening a PR on this :) Why does the old name also disappear?
[ 0.0343903154, 0.0062004873, -0.0635801479, -0.334228307, 0.4808439612, 0.2616390288, 0.6042661071, 0.2373320013, 0.137091592, 0.0865909606, 0.0540353619, 0.52703017, -0.1558954418, 0.2994628847, -0.1945008039, -0.0881170109, 0.4133821428, 0.0935038179, -0.1156335995, 0.1972019821, -0.4435485005, 0.0497061238, -0.3014574647, 0.2807839811, -0.3147516251, -0.1778967232, 0.0545336343, -0.19385463, -0.2473179102, -0.2746687829, -0.0492156446, 0.097102955, -0.0223660059, 0.6005281806, -0.0001189421, 0.0826988444, 0.1887073815, -0.0865514055, 0.0829854906, -0.2960747778, -0.1819151193, -0.0115415398, -0.2230612189, -0.5142742395, 0.0406856313, -0.0636156574, -0.0771723241, -0.2671771944, 0.1024494097, 0.2466996908, 0.1638299227, -0.1138830334, 0.220922783, -0.0220485963, 0.043947082, 0.2382538617, -0.1926511973, 0.0769320279, 0.0491047911, -0.3582005501, 0.229098171, 0.6931740642, -0.2142524421, -0.0826260298, 0.2492944598, 0.1485664248, 0.4132110775, -0.3595769405, 0.3614652157, -0.1366177052, 0.2379053235, -0.151238665, -0.104380399, -0.0542325489, -0.0018235649, -0.2537844777, -0.0232361145, -0.319638133, 0.0776958242, -0.2296989709, -0.3305272162, -0.1850069612, 0.1285368055, 0.2078442574, 0.1231135204, -0.0971982032, -0.0296083298, 0.4492813051, 0.1049033999, -0.3226706684, -0.1246058717, 0.0269127879, 0.0980836451, 0.2211731821, -0.2241780758, -0.0697751865, 0.1054664254, -0.0227157138, -0.2865684927, -0.6728144884, 0.0171007067, -0.1154986992, 0.1804636121, 0.078501299, 0.1063620821, 0.2072906047, -0.0879257172, 0.3839031458, 0.0437417552, 0.0499912314, -0.3903312981, -0.2533302605, 0.1843825132, -0.3990156353, 0.3597592115, 0.2472610623, 0.3776055574, 0.0936781392, 0.4118516743, -0.0127616143, 0.1394359916, -0.0965100229, -0.0235800147, 0.3582357168, 0.2444262654, -0.0504653379, 0.1044973359, 0.1474117488, -0.0377256237, 0.2744557858, -0.0399700291, 0.1520807445, -0.5921465755, -0.1053765863, -0.1591846943, 0.0644561127, 0.0273747798, -0.1856066883, 0.1200413108, -0.1029785275, -0.0174149461, -0.0625614375, 0.4089114666, 0.1914610416, -0.3518826663, 0.1143236682, 0.2287518382, -0.2352547497, -0.1231610104, 0.2178229988, -0.6010237932, -0.1866198331, -0.193540141, 0.0911871269, 0.2030771822, 0.1996436119, -0.2752967775, -0.1346440315, 0.5062406063, -0.4040706754, 0.0826784894, -0.2427095473, -0.2949000299, -0.2364550978, -0.1690336913, -0.0339542404, -0.0462761447, -0.0256846193, -0.1759427488, 0.3576540053, 0.0155099183, -0.0486620888, -0.1009821966, 0.213253513, -0.0342832692, 0.1602662057, 0.4271648228, -0.3145628273, -0.2063584328, -0.0152600082, -0.2203989923, -0.1616605669, -0.0920223668, 0.0930307433, 0.2039044201, -0.072713986, 0.4399832189, -0.1544138491, -0.0898715705, 0.1785475016, 0.1311586052, -0.0462149866, 0.1775303781, -0.0791232139, 0.1281121224, 0.2086731493, 0.111134775, 0.0116958907, -0.0227942877, -0.2068923265, 0.0939344764, 0.0991028249, 0.2192524672, -0.0245535988, 0.036057055, 0.0803689212, -0.3255301714, 0.1678812653, 0.1803425401, 0.1416129619, -0.2925769091, -0.1196025535, -0.2550838292, -0.1336404979, -0.176066637, 0.0316430479, 0.0552044399, -0.054000672, -0.0344206467, -0.1491250694, -0.1648834199, -0.1527561396, 0.049740117, 0.10933166, -0.3486706316, -0.0184661672, -0.2110998929, -0.1441620886, -0.3850234747, 0.0132767186, 0.188134402, -0.0540967472, -0.2381076068, 0.3495651186, 0.1393085718, 0.0440964252, -0.3154117465, 0.1756070107, 0.0911010653, -0.0334515236, -0.0013045821, 0.1042699292, 0.181464985, -0.0348045416, 0.1123572364, 0.2557914853, -0.2581354976, 0.380661726, -0.2395886481, 0.1288559735, -0.084158875, -0.1766914874, -0.2373666018, -0.39378196, -0.1437819749, -0.2950774729, -0.2323311567, -0.0712198913, 0.3053759336, -0.2079802752, 0.5871575475, -0.0409827307, 0.0240914281, -0.0057099536, 0.0615632124, 0.2896171212, 0.0114170266, 0.1064896658, 0.2978292108, -0.0096139507, -0.2233592421, 0.2672612071, 0.1708517969, 0.2767234743, 0.2040939033, 0.2167061418, 0.2447034717, 0.0480268002, 0.1485537589, -0.0613895729, 0.0164966248, -0.2999011576, 0.3099987507, 0.2844224274, -0.2336355597, 0.0998231992, -0.0660418198, 0.0700868145, 0.2823906243, -0.1527174711, 0.0562226288, -0.2700431645, -0.094888404, 0.3865871131, 0.0920765251, 0.4332140684, -0.1842429042, -0.3789013028, 0.2417967469, -0.3546554148, -0.0365540422, -0.4494330287, 0.0306259189, -0.0325059481, 0.0856916532, -0.4606235921, 0.0817555338, -0.1647824794, -0.1355613619, -0.1211330518, -0.5227617621, 0.1218557283, -0.4426471293, 0.0148034515, 0.2468884587, 0.2771112621, -0.2926219404, -0.1771505773, 0.4542586803, -0.2178658843, -0.149430424, 0.1258669943, 0.0121634724, -0.039334055, -0.1180342734, -0.1904157698, -0.0265279412, -0.1234949231, 0.1169082299, -0.2646970451, 0.0163140353, 0.5068843365, 0.2759182453, -0.2442608178, 0.1430363208, -0.0489324629, -0.1584292203, -0.3822787702, 0.2083154023, -0.0868600383, 0.0838408321, 0.0047292784, -0.114303425, -0.0037284927, 0.0410411321, -0.1813219339, -0.2923727632, -0.0811148137, 0.252066046, 0.1551324278, 0.1015878171, 0.2861323059, 0.4163929224, -0.1233831942, 0.0155468676, -0.2297620028, -0.0407739319, 0.449616164, 0.2750445902, 0.28390643, 0.4489242435, -0.0161301829, 0.2931136191, -0.1320108324, -0.1058143079, 0.4552733302, -0.3281630576, 0.097139582, -0.4271510243, -0.49832955, 0.0212255381, -0.3456523716, -0.269215554, -0.2526127696, -0.1974034011, -0.2074297071, -0.125082463, 0.2784192562, -0.4862348139, -0.3314017057, 0.1603581607, 0.0705960765, 0.3074231744, 0.0487650558, -0.0192792602, -0.4495792687, -0.1688800901, 0.098095201, 0.0244837385, 0.0559058376, -0.3355076909, -0.6632699966, -0.236522153, -0.3934518993, 0.4276642501, 0.113160342, 0.152977854, -0.1410125047, -0.0606673807, -0.0556474552, 0.0688658208, 0.7746018171, -0.4415772855, -0.1148997918, 0.3010855615, -0.0476224869, -0.0988456309, -0.24329786, -0.0672429726, 0.2733609676, 0.0472897105, 0.8124080896, 0.0474173278, 0.0843915343, 0.2145462036, 0.0629549772, -0.0658332705, 0.028618155, -0.4060543776, -0.2894008458, -0.5907232761, -0.0206708051, 0.0572947599, 0.2173587531, 0.3088782728, 0.1889960319, 0.1960790008, -0.1945683509, 0.0154504385, 0.266408205, 0.1986871958, 0.3779761791, 0.0560514778, -0.0483677201, 0.1246332005, 0.003019646, 0.140639469, -0.2207600325, -0.2776943147, -0.0573594719, 0.0422720723, 0.3460412323, 0.2213219553, 0.0628876165, 0.0959231928, 0.1461026073, 0.2581582069, -0.2759144306, 0.2963349819, 0.4933304787, 0.1403308213, -0.4810528159, -0.3202236593, 0.2370318472, 0.2185060829, -0.1690099984, 0.381642729, 0.0929525644, -0.3298316598, 0.5882655382, 0.085470587, 0.8382585645, -0.3112328649, 0.0554846637, -0.0850669146, 0.0784886479, 0.2867375314, 0.0625674352, 0.2233814001, -0.1989949644, -0.4336813986, 0.0294409934, -0.0587246642, 0.3476178646, 0.0871919915, -0.1870899498, 0.2699609995, -0.222486645, 0.5848440528, -0.2539534867, -0.2409917861, 0.2116031051, -0.374312371, 0.1243178472, 0.0566492416, -0.0686611608, 0.0904510096, 0.0100758076, 0.140185073, -0.1021841094, -0.358354032, 0.0675275922, -0.0539398342, -0.2007297873, 0.232511282, -0.213707298, -0.2194651514, -0.0675617978, 0.3379039168, 0.3049483895, 0.2256912738, 0.0769785717, 0.2345014662, 0.4431698918, 0.2091673166, -0.0408835895, -0.1617859006, -0.0470286533, 0.140121296, -0.2852280736, 0.1369482577, -0.0141865974, -0.2416304499, -0.3642431796, 0.0415634662, 0.4323446453, -0.3393746614, -0.2499044091, -0.1570414007, -0.0112911602, -0.100093469, 0.067859903, -0.3800919056, -0.1897209436, 0.4002569914, -0.114598237, -0.4112877846, 0.1257440001, 0.3634689748, 0.0822050497, 0.0131314704, 0.503176868, -0.1995396912, 0.0113481581, -0.0863426402, 0.0982047543, 0.2158662379, -0.0867505893, 0.0297973119, 0.3238882124, -0.0309050847, -0.1596035063, 0.4304634035, 0.056714274, 0.2015253305, 0.0784538314, -0.2432668358, -0.6696434021, 0.4877868593, 0.1031508669, 0.2492168248, 0.1051923335, 0.3467669785, -0.2948550582, -0.0112464335, -0.2399552763, 0.0649204031, -0.0438206531, 0.3154603541, 0.4421717525, 0.0253380332, -0.0896072909, -0.2898141444, 0.2092777342, 0.2641289234, -0.0850464851, -0.2138589919, -0.0167677943, 0.1183087155, 0.1053169817, -0.1505648792, -0.024389552, -0.3231565952, -0.0274437927, -0.2703392208, -0.0828690156, 0.3389024138, 0.0339186154, 0.1923668534, -0.5534638762, -0.0861905217, 0.3065197468, 0.1393100023, -0.1251808703, -0.0567398295, 0.2653054595, 0.1776151359, -0.0504079163, 0.0970635563, -0.2915787101, -0.0684082136, -0.1543522328, 0.115613997, 0.3472281396, -0.1888155341, 0.1339827776, 0.0561051071, 0.2796283662, 0.1310019344, -0.2598961592, -0.1948145628, 0.3021292388, 0.0988665223, -0.3267247975, -0.1829229891, 0.521592319, -0.0156407077, 0.2411123812, 0.2352425009, -0.0485075191, 0.131687656, -0.2601727843, -0.0177908391, 0.1529345959, -0.0737772882, 0.246981591, 0.6254127622, -0.1150747091, 0.2715170085, 0.2926053405, 0.3730809391, -0.1249767318, 0.6644851565, 0.0635504201, 0.2042201459, 0.1586618274, 0.2688655853, -0.1144811809, -0.0899508223, 0.5314690471, 0.1346583366, -0.2235026509, 0.2969570458, 0.1907868981, -0.2590560317, -0.0018366597, -0.2252579331, -0.077545017, 0.2807586789, -0.2177533656, -0.2554298937, -0.1515020877, -0.0360630006, 0.0017209632, 0.0805627853, -0.0572084934, 0.0685868785, 0.6512498856, 0.0260288864, 0.0510048345, 0.0960449129, -0.5209684968, 0.1352972239, 0.3933673203, -0.1334356815, -0.0180001855, 0.0571532771, 0.1642049402, 0.2200042754, 0.015519877, 0.3567887843, 0.1692756861, -0.2766987383, 0.1629790813, -0.0195907373, -0.1051775068, 0.2641952336, 0.0439047143, 0.3267832696, 0.0087462189, 0.1000833437, 0.0357460417, -0.1855373979, -0.1050798446, 0.1487797797, 0.1994475275, 0.196705699, -0.0666738376, 0.0776693001, -0.1384181678, -0.0612890944, 0.1662920713, -0.2106761187, -0.2168647796, 0.4741017222, -0.1182756796, 0.1831551045, 0.1314245462, 0.0622665584, 0.1147596166, 0.1901857257, 0.1068614647, -0.1823742986, -0.5617814064, -0.0506485812, -0.3618875742, -0.1454606056, -0.0483253226, 0.0958935916, 0.0001839394, -0.2958846092, 0.2807194293, 0.1011900902, 0.435056895, -0.4830628037, -0.0566601083, 0.5606931448, 0.0539844297, -0.0601436682, 0.0202837773, 0.247342959, 0.1078898385, -0.347112745, 0.0970266983, 0.0586616211, -0.0088259857, -0.3392793536, -0.1747092158, -0.2541409135, -0.2222280502, 0.471578747, 0.1747034192, 0.4249303043, -0.1517660022, -0.0727757961, 0.1637435555, -0.167682305, -0.0168346688, 0.209523052, 0.2309506088, 0.3883234859, -0.0711033642, 0.1280173361, -0.3970901966, 0.0074615884, 0.0302021094, -0.1853105873, -0.376593262, 0.1869214177, 0.2549928427, 0.0408341847, -0.1853444129, 0.3607899845, 0.0388964675, 0.5180019736, -0.0680310205, -0.369066596, 0.7985039949, -0.3579205573, -0.6600229144, 0.0823596641, -0.0900158733, -0.1427421719, 0.0412080362, -0.2388156652, -0.0630643517, 0.073640801, -0.0334532186, -0.3466160595, 0.0901280567, -0.1645768732, 0.0798357949, 0.0364476889, 0.4860983193, -0.3197672963, -0.0945578068, -0.2467263788, -0.0632386282 ]
https://github.com/huggingface/datasets/issues/2026
KeyError on using map after renaming a column
I just merged a @mariosasko 's PR that fixes this issue. If it happens again, feel free to re-open :)
Hi, I'm trying to use `cifar10` dataset. I want to rename the `img` feature to `image` in order to make it consistent with `mnist`, which I'm also planning to use. By doing this, I was trying to avoid modifying `prepare_train_features` function. Here is what I try: ```python transform = Compose([ToPILImage(),ToTensor(),Normalize([0.0,0.0,0.0],[1.0,1.0,1.0])]) def prepare_features(examples): images = [] labels = [] print(examples) for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform(examples["image"][example_idx].permute(2,0,1))) else: images.append(examples["image"][example_idx].permute(2,0,1)) labels.append(examples["label"][example_idx]) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('cifar10') raw_dataset.set_format('torch',columns=['img','label']) raw_dataset = raw_dataset.rename_column('img','image') features = datasets.Features({ "image": datasets.Array3D(shape=(3,32,32),dtype="float32"), "label": datasets.features.ClassLabel(names=[ "airplane", "automobile", "bird", "cat", "deer", "dog", "frog", "horse", "ship", "truck", ]), }) train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) ``` The error: ```python --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-54-bf29672c53ee> in <module>() 14 ]), 15 }) ---> 16 train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) 2 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint) 1287 test_inputs = self[:2] if batched else self[0] 1288 test_indices = [0, 1] if batched else 0 -> 1289 update_data = does_function_return_dict(test_inputs, test_indices) 1290 logger.info("Testing finished, running the mapping function on the dataset") 1291 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in does_function_return_dict(inputs, indices) 1258 fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns] 1259 processed_inputs = ( -> 1260 function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) 1261 ) 1262 does_return_dict = isinstance(processed_inputs, Mapping) <ipython-input-52-b4dccbafb70d> in prepare_features(examples) 3 labels = [] 4 print(examples) ----> 5 for example_idx, example in enumerate(examples["image"]): 6 if transform is not None: 7 images.append(transform(examples["image"][example_idx].permute(2,0,1))) KeyError: 'image' ``` The print statement inside returns this: ```python {'label': tensor([6, 9])} ``` Apparently, both `img` and `image` do not exist after renaming. Note that this code works fine with `img` everywhere. Notebook: https://colab.research.google.com/drive/1SzESAlz3BnVYrgQeJ838vbMp1OsukiA2?usp=sharing
20
KeyError on using map after renaming a column Hi, I'm trying to use `cifar10` dataset. I want to rename the `img` feature to `image` in order to make it consistent with `mnist`, which I'm also planning to use. By doing this, I was trying to avoid modifying `prepare_train_features` function. Here is what I try: ```python transform = Compose([ToPILImage(),ToTensor(),Normalize([0.0,0.0,0.0],[1.0,1.0,1.0])]) def prepare_features(examples): images = [] labels = [] print(examples) for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform(examples["image"][example_idx].permute(2,0,1))) else: images.append(examples["image"][example_idx].permute(2,0,1)) labels.append(examples["label"][example_idx]) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('cifar10') raw_dataset.set_format('torch',columns=['img','label']) raw_dataset = raw_dataset.rename_column('img','image') features = datasets.Features({ "image": datasets.Array3D(shape=(3,32,32),dtype="float32"), "label": datasets.features.ClassLabel(names=[ "airplane", "automobile", "bird", "cat", "deer", "dog", "frog", "horse", "ship", "truck", ]), }) train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) ``` The error: ```python --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-54-bf29672c53ee> in <module>() 14 ]), 15 }) ---> 16 train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) 2 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint) 1287 test_inputs = self[:2] if batched else self[0] 1288 test_indices = [0, 1] if batched else 0 -> 1289 update_data = does_function_return_dict(test_inputs, test_indices) 1290 logger.info("Testing finished, running the mapping function on the dataset") 1291 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in does_function_return_dict(inputs, indices) 1258 fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns] 1259 processed_inputs = ( -> 1260 function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs) 1261 ) 1262 does_return_dict = isinstance(processed_inputs, Mapping) <ipython-input-52-b4dccbafb70d> in prepare_features(examples) 3 labels = [] 4 print(examples) ----> 5 for example_idx, example in enumerate(examples["image"]): 6 if transform is not None: 7 images.append(transform(examples["image"][example_idx].permute(2,0,1))) KeyError: 'image' ``` The print statement inside returns this: ```python {'label': tensor([6, 9])} ``` Apparently, both `img` and `image` do not exist after renaming. Note that this code works fine with `img` everywhere. Notebook: https://colab.research.google.com/drive/1SzESAlz3BnVYrgQeJ838vbMp1OsukiA2?usp=sharing I just merged a @mariosasko 's PR that fixes this issue. If it happens again, feel free to re-open :)
[ 0.0343903154, 0.0062004873, -0.0635801479, -0.334228307, 0.4808439612, 0.2616390288, 0.6042661071, 0.2373320013, 0.137091592, 0.0865909606, 0.0540353619, 0.52703017, -0.1558954418, 0.2994628847, -0.1945008039, -0.0881170109, 0.4133821428, 0.0935038179, -0.1156335995, 0.1972019821, -0.4435485005, 0.0497061238, -0.3014574647, 0.2807839811, -0.3147516251, -0.1778967232, 0.0545336343, -0.19385463, -0.2473179102, -0.2746687829, -0.0492156446, 0.097102955, -0.0223660059, 0.6005281806, -0.0001189421, 0.0826988444, 0.1887073815, -0.0865514055, 0.0829854906, -0.2960747778, -0.1819151193, -0.0115415398, -0.2230612189, -0.5142742395, 0.0406856313, -0.0636156574, -0.0771723241, -0.2671771944, 0.1024494097, 0.2466996908, 0.1638299227, -0.1138830334, 0.220922783, -0.0220485963, 0.043947082, 0.2382538617, -0.1926511973, 0.0769320279, 0.0491047911, -0.3582005501, 0.229098171, 0.6931740642, -0.2142524421, -0.0826260298, 0.2492944598, 0.1485664248, 0.4132110775, -0.3595769405, 0.3614652157, -0.1366177052, 0.2379053235, -0.151238665, -0.104380399, -0.0542325489, -0.0018235649, -0.2537844777, -0.0232361145, -0.319638133, 0.0776958242, -0.2296989709, -0.3305272162, -0.1850069612, 0.1285368055, 0.2078442574, 0.1231135204, -0.0971982032, -0.0296083298, 0.4492813051, 0.1049033999, -0.3226706684, -0.1246058717, 0.0269127879, 0.0980836451, 0.2211731821, -0.2241780758, -0.0697751865, 0.1054664254, -0.0227157138, -0.2865684927, -0.6728144884, 0.0171007067, -0.1154986992, 0.1804636121, 0.078501299, 0.1063620821, 0.2072906047, -0.0879257172, 0.3839031458, 0.0437417552, 0.0499912314, -0.3903312981, -0.2533302605, 0.1843825132, -0.3990156353, 0.3597592115, 0.2472610623, 0.3776055574, 0.0936781392, 0.4118516743, -0.0127616143, 0.1394359916, -0.0965100229, -0.0235800147, 0.3582357168, 0.2444262654, -0.0504653379, 0.1044973359, 0.1474117488, -0.0377256237, 0.2744557858, -0.0399700291, 0.1520807445, -0.5921465755, -0.1053765863, -0.1591846943, 0.0644561127, 0.0273747798, -0.1856066883, 0.1200413108, -0.1029785275, -0.0174149461, -0.0625614375, 0.4089114666, 0.1914610416, -0.3518826663, 0.1143236682, 0.2287518382, -0.2352547497, -0.1231610104, 0.2178229988, -0.6010237932, -0.1866198331, -0.193540141, 0.0911871269, 0.2030771822, 0.1996436119, -0.2752967775, -0.1346440315, 0.5062406063, -0.4040706754, 0.0826784894, -0.2427095473, -0.2949000299, -0.2364550978, -0.1690336913, -0.0339542404, -0.0462761447, -0.0256846193, -0.1759427488, 0.3576540053, 0.0155099183, -0.0486620888, -0.1009821966, 0.213253513, -0.0342832692, 0.1602662057, 0.4271648228, -0.3145628273, -0.2063584328, -0.0152600082, -0.2203989923, -0.1616605669, -0.0920223668, 0.0930307433, 0.2039044201, -0.072713986, 0.4399832189, -0.1544138491, -0.0898715705, 0.1785475016, 0.1311586052, -0.0462149866, 0.1775303781, -0.0791232139, 0.1281121224, 0.2086731493, 0.111134775, 0.0116958907, -0.0227942877, -0.2068923265, 0.0939344764, 0.0991028249, 0.2192524672, -0.0245535988, 0.036057055, 0.0803689212, -0.3255301714, 0.1678812653, 0.1803425401, 0.1416129619, -0.2925769091, -0.1196025535, -0.2550838292, -0.1336404979, -0.176066637, 0.0316430479, 0.0552044399, -0.054000672, -0.0344206467, -0.1491250694, -0.1648834199, -0.1527561396, 0.049740117, 0.10933166, -0.3486706316, -0.0184661672, -0.2110998929, -0.1441620886, -0.3850234747, 0.0132767186, 0.188134402, -0.0540967472, -0.2381076068, 0.3495651186, 0.1393085718, 0.0440964252, -0.3154117465, 0.1756070107, 0.0911010653, -0.0334515236, -0.0013045821, 0.1042699292, 0.181464985, -0.0348045416, 0.1123572364, 0.2557914853, -0.2581354976, 0.380661726, -0.2395886481, 0.1288559735, -0.084158875, -0.1766914874, -0.2373666018, -0.39378196, -0.1437819749, -0.2950774729, -0.2323311567, -0.0712198913, 0.3053759336, -0.2079802752, 0.5871575475, -0.0409827307, 0.0240914281, -0.0057099536, 0.0615632124, 0.2896171212, 0.0114170266, 0.1064896658, 0.2978292108, -0.0096139507, -0.2233592421, 0.2672612071, 0.1708517969, 0.2767234743, 0.2040939033, 0.2167061418, 0.2447034717, 0.0480268002, 0.1485537589, -0.0613895729, 0.0164966248, -0.2999011576, 0.3099987507, 0.2844224274, -0.2336355597, 0.0998231992, -0.0660418198, 0.0700868145, 0.2823906243, -0.1527174711, 0.0562226288, -0.2700431645, -0.094888404, 0.3865871131, 0.0920765251, 0.4332140684, -0.1842429042, -0.3789013028, 0.2417967469, -0.3546554148, -0.0365540422, -0.4494330287, 0.0306259189, -0.0325059481, 0.0856916532, -0.4606235921, 0.0817555338, -0.1647824794, -0.1355613619, -0.1211330518, -0.5227617621, 0.1218557283, -0.4426471293, 0.0148034515, 0.2468884587, 0.2771112621, -0.2926219404, -0.1771505773, 0.4542586803, -0.2178658843, -0.149430424, 0.1258669943, 0.0121634724, -0.039334055, -0.1180342734, -0.1904157698, -0.0265279412, -0.1234949231, 0.1169082299, -0.2646970451, 0.0163140353, 0.5068843365, 0.2759182453, -0.2442608178, 0.1430363208, -0.0489324629, -0.1584292203, -0.3822787702, 0.2083154023, -0.0868600383, 0.0838408321, 0.0047292784, -0.114303425, -0.0037284927, 0.0410411321, -0.1813219339, -0.2923727632, -0.0811148137, 0.252066046, 0.1551324278, 0.1015878171, 0.2861323059, 0.4163929224, -0.1233831942, 0.0155468676, -0.2297620028, -0.0407739319, 0.449616164, 0.2750445902, 0.28390643, 0.4489242435, -0.0161301829, 0.2931136191, -0.1320108324, -0.1058143079, 0.4552733302, -0.3281630576, 0.097139582, -0.4271510243, -0.49832955, 0.0212255381, -0.3456523716, -0.269215554, -0.2526127696, -0.1974034011, -0.2074297071, -0.125082463, 0.2784192562, -0.4862348139, -0.3314017057, 0.1603581607, 0.0705960765, 0.3074231744, 0.0487650558, -0.0192792602, -0.4495792687, -0.1688800901, 0.098095201, 0.0244837385, 0.0559058376, -0.3355076909, -0.6632699966, -0.236522153, -0.3934518993, 0.4276642501, 0.113160342, 0.152977854, -0.1410125047, -0.0606673807, -0.0556474552, 0.0688658208, 0.7746018171, -0.4415772855, -0.1148997918, 0.3010855615, -0.0476224869, -0.0988456309, -0.24329786, -0.0672429726, 0.2733609676, 0.0472897105, 0.8124080896, 0.0474173278, 0.0843915343, 0.2145462036, 0.0629549772, -0.0658332705, 0.028618155, -0.4060543776, -0.2894008458, -0.5907232761, -0.0206708051, 0.0572947599, 0.2173587531, 0.3088782728, 0.1889960319, 0.1960790008, -0.1945683509, 0.0154504385, 0.266408205, 0.1986871958, 0.3779761791, 0.0560514778, -0.0483677201, 0.1246332005, 0.003019646, 0.140639469, -0.2207600325, -0.2776943147, -0.0573594719, 0.0422720723, 0.3460412323, 0.2213219553, 0.0628876165, 0.0959231928, 0.1461026073, 0.2581582069, -0.2759144306, 0.2963349819, 0.4933304787, 0.1403308213, -0.4810528159, -0.3202236593, 0.2370318472, 0.2185060829, -0.1690099984, 0.381642729, 0.0929525644, -0.3298316598, 0.5882655382, 0.085470587, 0.8382585645, -0.3112328649, 0.0554846637, -0.0850669146, 0.0784886479, 0.2867375314, 0.0625674352, 0.2233814001, -0.1989949644, -0.4336813986, 0.0294409934, -0.0587246642, 0.3476178646, 0.0871919915, -0.1870899498, 0.2699609995, -0.222486645, 0.5848440528, -0.2539534867, -0.2409917861, 0.2116031051, -0.374312371, 0.1243178472, 0.0566492416, -0.0686611608, 0.0904510096, 0.0100758076, 0.140185073, -0.1021841094, -0.358354032, 0.0675275922, -0.0539398342, -0.2007297873, 0.232511282, -0.213707298, -0.2194651514, -0.0675617978, 0.3379039168, 0.3049483895, 0.2256912738, 0.0769785717, 0.2345014662, 0.4431698918, 0.2091673166, -0.0408835895, -0.1617859006, -0.0470286533, 0.140121296, -0.2852280736, 0.1369482577, -0.0141865974, -0.2416304499, -0.3642431796, 0.0415634662, 0.4323446453, -0.3393746614, -0.2499044091, -0.1570414007, -0.0112911602, -0.100093469, 0.067859903, -0.3800919056, -0.1897209436, 0.4002569914, -0.114598237, -0.4112877846, 0.1257440001, 0.3634689748, 0.0822050497, 0.0131314704, 0.503176868, -0.1995396912, 0.0113481581, -0.0863426402, 0.0982047543, 0.2158662379, -0.0867505893, 0.0297973119, 0.3238882124, -0.0309050847, -0.1596035063, 0.4304634035, 0.056714274, 0.2015253305, 0.0784538314, -0.2432668358, -0.6696434021, 0.4877868593, 0.1031508669, 0.2492168248, 0.1051923335, 0.3467669785, -0.2948550582, -0.0112464335, -0.2399552763, 0.0649204031, -0.0438206531, 0.3154603541, 0.4421717525, 0.0253380332, -0.0896072909, -0.2898141444, 0.2092777342, 0.2641289234, -0.0850464851, -0.2138589919, -0.0167677943, 0.1183087155, 0.1053169817, -0.1505648792, -0.024389552, -0.3231565952, -0.0274437927, -0.2703392208, -0.0828690156, 0.3389024138, 0.0339186154, 0.1923668534, -0.5534638762, -0.0861905217, 0.3065197468, 0.1393100023, -0.1251808703, -0.0567398295, 0.2653054595, 0.1776151359, -0.0504079163, 0.0970635563, -0.2915787101, -0.0684082136, -0.1543522328, 0.115613997, 0.3472281396, -0.1888155341, 0.1339827776, 0.0561051071, 0.2796283662, 0.1310019344, -0.2598961592, -0.1948145628, 0.3021292388, 0.0988665223, -0.3267247975, -0.1829229891, 0.521592319, -0.0156407077, 0.2411123812, 0.2352425009, -0.0485075191, 0.131687656, -0.2601727843, -0.0177908391, 0.1529345959, -0.0737772882, 0.246981591, 0.6254127622, -0.1150747091, 0.2715170085, 0.2926053405, 0.3730809391, -0.1249767318, 0.6644851565, 0.0635504201, 0.2042201459, 0.1586618274, 0.2688655853, -0.1144811809, -0.0899508223, 0.5314690471, 0.1346583366, -0.2235026509, 0.2969570458, 0.1907868981, -0.2590560317, -0.0018366597, -0.2252579331, -0.077545017, 0.2807586789, -0.2177533656, -0.2554298937, -0.1515020877, -0.0360630006, 0.0017209632, 0.0805627853, -0.0572084934, 0.0685868785, 0.6512498856, 0.0260288864, 0.0510048345, 0.0960449129, -0.5209684968, 0.1352972239, 0.3933673203, -0.1334356815, -0.0180001855, 0.0571532771, 0.1642049402, 0.2200042754, 0.015519877, 0.3567887843, 0.1692756861, -0.2766987383, 0.1629790813, -0.0195907373, -0.1051775068, 0.2641952336, 0.0439047143, 0.3267832696, 0.0087462189, 0.1000833437, 0.0357460417, -0.1855373979, -0.1050798446, 0.1487797797, 0.1994475275, 0.196705699, -0.0666738376, 0.0776693001, -0.1384181678, -0.0612890944, 0.1662920713, -0.2106761187, -0.2168647796, 0.4741017222, -0.1182756796, 0.1831551045, 0.1314245462, 0.0622665584, 0.1147596166, 0.1901857257, 0.1068614647, -0.1823742986, -0.5617814064, -0.0506485812, -0.3618875742, -0.1454606056, -0.0483253226, 0.0958935916, 0.0001839394, -0.2958846092, 0.2807194293, 0.1011900902, 0.435056895, -0.4830628037, -0.0566601083, 0.5606931448, 0.0539844297, -0.0601436682, 0.0202837773, 0.247342959, 0.1078898385, -0.347112745, 0.0970266983, 0.0586616211, -0.0088259857, -0.3392793536, -0.1747092158, -0.2541409135, -0.2222280502, 0.471578747, 0.1747034192, 0.4249303043, -0.1517660022, -0.0727757961, 0.1637435555, -0.167682305, -0.0168346688, 0.209523052, 0.2309506088, 0.3883234859, -0.0711033642, 0.1280173361, -0.3970901966, 0.0074615884, 0.0302021094, -0.1853105873, -0.376593262, 0.1869214177, 0.2549928427, 0.0408341847, -0.1853444129, 0.3607899845, 0.0388964675, 0.5180019736, -0.0680310205, -0.369066596, 0.7985039949, -0.3579205573, -0.6600229144, 0.0823596641, -0.0900158733, -0.1427421719, 0.0412080362, -0.2388156652, -0.0630643517, 0.073640801, -0.0334532186, -0.3466160595, 0.0901280567, -0.1645768732, 0.0798357949, 0.0364476889, 0.4860983193, -0.3197672963, -0.0945578068, -0.2467263788, -0.0632386282 ]
https://github.com/huggingface/datasets/issues/2022
ValueError when rename_column on splitted dataset
Hi, This is a bug so thanks for reporting it. `Dataset.__setstate__` is the problem, which is called when `Dataset.rename_column` tries to copy the dataset with `copy.deepcopy(self)`. This only happens if the `split` arg in `load_dataset` was defined as `ReadInstruction`. To overcome this issue, use the named splits API (for now): ```python train_ds, test_ds = load_dataset( path='csv', delimiter='\t', data_files=text_files, split=['train[:90%]', 'train[-10%:]'], ) train_ds = train_ds.rename_column('sentence', 'text') ```
Hi there, I am loading `.tsv` file via `load_dataset` and subsequently split the rows into training and test set via the `ReadInstruction` API like so: ```python split = { 'train': ReadInstruction('train', to=90, unit='%'), 'test': ReadInstruction('train', from_=-10, unit='%') } dataset = load_dataset( path='csv', # use 'text' loading script to load from local txt-files delimiter='\t', # xxx data_files=text_files, # list of paths to local text files split=split, # xxx ) dataset ``` Part of output: ```python DatasetDict({ train: Dataset({ features: ['sentence', 'sentiment'], num_rows: 900 }) test: Dataset({ features: ['sentence', 'sentiment'], num_rows: 100 }) }) ``` Afterwards I'd like to rename the 'sentence' column to 'text' in order to be compatible with my modelin pipeline. If I run the following code I experience a `ValueError` however: ```python dataset['train'].rename_column('sentence', 'text') ``` ```python /usr/local/lib/python3.7/dist-packages/datasets/splits.py in __init__(self, name) 353 for split_name in split_names_from_instruction: 354 if not re.match(_split_re, split_name): --> 355 raise ValueError(f"Split name should match '{_split_re}'' but got '{split_name}'.") 356 357 def __str__(self): ValueError: Split name should match '^\w+(\.\w+)*$'' but got 'ReadInstruction('. ``` In particular, these behavior does not arise if I use the deprecated `rename_column_` method. Any idea what causes the error? Would assume something in the way I defined the split. Thanks in advance! :)
66
ValueError when rename_column on splitted dataset Hi there, I am loading `.tsv` file via `load_dataset` and subsequently split the rows into training and test set via the `ReadInstruction` API like so: ```python split = { 'train': ReadInstruction('train', to=90, unit='%'), 'test': ReadInstruction('train', from_=-10, unit='%') } dataset = load_dataset( path='csv', # use 'text' loading script to load from local txt-files delimiter='\t', # xxx data_files=text_files, # list of paths to local text files split=split, # xxx ) dataset ``` Part of output: ```python DatasetDict({ train: Dataset({ features: ['sentence', 'sentiment'], num_rows: 900 }) test: Dataset({ features: ['sentence', 'sentiment'], num_rows: 100 }) }) ``` Afterwards I'd like to rename the 'sentence' column to 'text' in order to be compatible with my modelin pipeline. If I run the following code I experience a `ValueError` however: ```python dataset['train'].rename_column('sentence', 'text') ``` ```python /usr/local/lib/python3.7/dist-packages/datasets/splits.py in __init__(self, name) 353 for split_name in split_names_from_instruction: 354 if not re.match(_split_re, split_name): --> 355 raise ValueError(f"Split name should match '{_split_re}'' but got '{split_name}'.") 356 357 def __str__(self): ValueError: Split name should match '^\w+(\.\w+)*$'' but got 'ReadInstruction('. ``` In particular, these behavior does not arise if I use the deprecated `rename_column_` method. Any idea what causes the error? Would assume something in the way I defined the split. Thanks in advance! :) Hi, This is a bug so thanks for reporting it. `Dataset.__setstate__` is the problem, which is called when `Dataset.rename_column` tries to copy the dataset with `copy.deepcopy(self)`. This only happens if the `split` arg in `load_dataset` was defined as `ReadInstruction`. To overcome this issue, use the named splits API (for now): ```python train_ds, test_ds = load_dataset( path='csv', delimiter='\t', data_files=text_files, split=['train[:90%]', 'train[-10%:]'], ) train_ds = train_ds.rename_column('sentence', 'text') ```
[ -0.0835752711, 0.2197993249, -0.0348291732, -0.0423847027, 0.4208770394, 0.0730622113, 0.6438040733, 0.4179843366, -0.022552656, 0.3396532536, -0.086686641, 0.3978037238, -0.0521847792, 0.3644354939, -0.2562584579, -0.2477058023, 0.1044138446, -0.0795423463, 0.1267364472, 0.2697295249, -0.330052942, 0.0778077096, -0.3932778239, 0.1260687858, -0.0781337023, 0.0623802096, 0.0325195044, 0.0953770131, 0.0282755606, -0.3610773087, 0.1441163123, -0.0355101116, 0.1899647862, 0.5556836128, -0.0001162362, 0.123281315, 0.2225489318, -0.1280174404, -0.1891632378, -0.4528479278, -0.005278707, -0.1680364162, 0.0017360338, -0.3506765664, 0.1707243174, 0.2284769565, -0.2309947312, -0.2584792972, 0.1006065607, 0.369312048, 0.107690081, 0.0965298563, -0.0107200621, 0.1191242039, 0.1085150465, 0.0212473702, -0.3047724068, 0.0899830684, -0.0761239603, -0.1792219579, -0.1137907058, 0.2317514122, -0.071176894, 0.1480417848, -0.0235445742, 0.3106743097, 0.03458919, -0.0469642654, 0.0888523832, 0.0671800151, 0.2144693732, -0.2401783615, -0.463991195, -0.444296062, 0.1637720615, -0.3250167072, 0.257049799, -0.1877463609, 0.1232365295, 0.1840746701, -0.1398659796, 0.0523614399, -0.137305066, -0.1406386495, -0.0923044011, 0.08936169, -0.0323618166, 0.4094693661, -0.100293085, -0.1114295349, 0.174908638, 0.051333297, -0.0785201192, -0.1311808378, -0.5019623637, 0.0278140586, -0.2302474082, -0.2595579028, -0.320127815, -0.1200023293, 0.0158364177, -0.2517314851, 0.2726789117, 0.2164976448, -0.0362975448, 0.1996525675, 0.1300997883, 0.4851778448, 0.2359966189, 0.1402984411, -0.2038470805, -0.091525957, 0.0607342832, -0.2988732755, 0.1496177316, 0.190858528, 0.1388383955, 0.1012245938, -0.422322154, -0.0214157365, -0.299931407, -0.1886163503, -0.0305336285, 0.2214561105, 0.2032393515, 0.4568882585, 0.1693874449, 0.0574802607, -0.0006993565, -0.1406515986, -0.037125513, 0.1793325096, -0.3019693792, 0.150598824, 0.0399701856, 0.1964558065, 0.0814439431, -0.2706573009, -0.0208251849, -0.2991540432, -0.0203201268, -0.1991915405, 0.0952110291, 0.2918279171, -0.0835519955, -0.1079084724, 0.1164142489, -0.4457982481, 0.0352156721, 0.2579235733, -0.2536047697, -0.3207926154, 0.1397257, 0.1286004037, 0.0399010926, -0.0527536906, 0.0482411534, -0.0229604002, 0.6056431532, -0.1394456029, 0.1351450682, -0.3096874654, -0.2267055362, -0.0160398427, -0.0332793556, 0.1000444368, -0.5333274007, -0.1184839085, 0.0636193678, 0.1941968799, 0.1769786924, 0.1755303144, 0.1830015928, 0.1583334506, 0.13353917, 0.2669036686, 0.2967287004, -0.3958649933, 0.028895231, 0.280764848, -0.3185534179, -0.1601908952, 0.3707810938, -0.2173385471, 0.1207506657, -0.1076935977, 0.1341799647, 0.0113363126, -0.0657368824, 0.0960764438, -0.0378147066, -0.0701455027, 0.3307215571, -0.0180213917, 0.0188635942, -0.1157904416, -0.1568620652, -0.2933052778, 0.3243607283, -0.0264653042, 0.1164179593, 0.1300329566, 0.1057565883, 0.5420785546, 0.120000869, -0.0832297951, -0.2253145576, 0.028383702, 0.3180817068, -0.168324545, -0.3165956438, -0.1709284633, -0.4326011539, 0.0489439741, -0.0752224103, 0.0472045057, 0.0313138217, 0.2542937994, -0.1051331013, -0.121790722, -0.4117278755, 0.2951655984, -0.5749081969, 0.2464329153, -0.3180006742, 0.0776000917, 0.006179498, -0.3219503462, -0.2502305508, 0.1552671343, 0.1714719832, -0.0112890489, -0.2374314368, 0.6657512784, 0.3477511704, 0.0463433638, -0.3765338361, -0.2769814134, -0.1085004061, 0.2417755723, -0.2358049303, -0.1330698282, 0.2457471192, -0.041251801, -0.0628129691, 0.2938636243, -0.4202154875, 0.5500615239, -0.0109363552, -0.1532362103, 0.0020683827, -0.2575076818, -0.1037361622, -0.3930053115, -0.1505554169, -0.3311615884, 0.1140192524, -0.1965572387, -0.1869238764, -0.2932312489, 0.6310687661, -0.0536829308, -0.1708035916, 0.0077963397, 0.135793671, -0.0466480888, -0.0799039528, 0.6231102347, 0.4926960766, 0.0294922497, -0.1018568873, 0.2511086464, 0.1871847063, -0.2857351899, 0.2048227191, 0.2681159079, 0.1419736594, 0.4111414552, 0.2456433624, 0.0051549552, -0.2268375456, -0.1838648617, 0.396805048, 0.1195371598, -0.4919121265, 0.0235624295, -0.1649116576, 0.2419188619, -0.2057010084, -0.226712361, 0.1853087246, -0.5442621708, -0.2349179387, 0.3472462296, -0.3372886479, 0.3051025271, -0.1589924097, -0.3950491846, 0.0922146067, -0.1661287695, -0.0719222203, -0.1782118082, -0.0885189101, -0.0458368175, -0.1261462122, -0.097228691, 0.0410270356, -0.1662221849, -0.0943964198, -0.1365423501, -0.2923830748, -0.0274043363, -0.4529350996, -0.0093845828, 0.4005088806, 0.0366893634, 0.1800102293, -0.4637695551, 0.2288460135, 0.0775947347, -0.0209740587, 0.0346012525, 0.2929469645, 0.006128388, -0.1640411615, -0.6690232754, -0.272598356, -0.3042472005, 0.1338288337, -0.2729789317, -0.1675991118, 0.0596721433, -0.16183801, 0.0142354779, 0.1734490395, 0.1514363438, -0.0215063468, 0.0119573837, 0.1503856629, 0.0146299461, 0.177695334, 0.1265311241, 0.1827682704, -0.1011585519, 0.0592225008, -0.1364729702, -0.056478776, -0.0916981772, 0.3380537927, 0.0930301771, -0.0017821538, 0.2639889717, 0.2979951799, -0.036333099, -0.1717988998, -0.2675013542, 0.2465603352, 0.0576316677, 0.1198233068, 0.0803306103, 0.6318509579, 0.2055415064, 0.1752792299, -0.150717169, -0.0701786727, 0.0658941418, -0.0693152621, 0.0188849699, -0.1903809309, -0.0143464683, -0.0719317198, -0.3799416125, -0.2754397988, 0.0968470648, -0.140414983, -0.0746425688, -0.0370619558, 0.0086294701, 0.0436806716, -0.2274770886, -0.0524388701, -0.0882401317, 0.4275676012, 0.1327890009, 0.1390786767, -0.0748877451, -0.0587314144, 0.126032114, 0.1799937934, 0.1219586432, -0.3082246184, -0.2348090708, 0.0278908238, -0.2218736559, 0.2311762869, 0.3654353917, 0.5237159133, 0.1095000803, -0.418908596, 0.0391256623, 0.1244081184, 0.5819936395, -0.2301920354, -0.0308654327, 0.1820011884, -0.1582546532, 0.0998641476, -0.1680946797, -0.2026174515, -0.0297280494, 0.2626564205, 0.4312620461, -0.0818836391, -0.0455455333, 0.5021079779, 0.221386984, -0.0002616793, -0.2003735602, -0.1444073468, -0.334911406, -0.2491313368, -0.0207627099, 0.0515860654, 0.1574814767, 0.0513999462, 0.3127942979, -0.0301316679, -0.3142570257, 0.140496701, 0.2325982451, -0.042831894, -0.0776598752, 0.1895497143, 0.0559757277, 0.1787736118, 0.0804945007, 0.2318653166, -0.4986414611, -0.6792058945, -0.0838988349, -0.1733064651, 0.4837500155, 0.2373585552, -0.2355027795, 0.2386440784, -0.0622690842, 0.2222548723, -0.1055743098, -0.0054896879, 0.3826481104, 0.084131889, -0.3165599108, -0.5406340361, 0.3414804637, 0.07956402, -0.0830515176, 0.0900764838, 0.3665973246, -0.4676117897, 0.419002831, -0.127270937, 0.5394499302, 0.1711793244, -0.0342088528, 0.4204016328, -0.1584544629, -0.0678919926, -0.0687833652, 0.1058088914, -0.3747583032, -0.2032314986, -0.062914446, 0.0981256142, 0.4457719326, 0.0439915396, -0.0239879731, 0.3131875396, -0.0377459601, 0.3181697428, -0.0129599953, -0.0236805119, -0.1248434633, -0.2890895903, 0.0314165577, 0.0170258787, 0.0585118197, -0.3307889402, 0.3468235433, 0.1850596964, -0.0445545688, -0.0068803392, -0.1796743572, -0.0920962468, -0.0396208949, 0.2621533275, -0.0702738687, -0.2068291903, 0.2561680377, 0.2360015213, 0.3455244899, 0.1204389706, 0.2218236476, 0.2901316285, 0.0536015183, 0.3150190413, 0.0510930568, -0.0520142689, 0.3549726009, 0.2559574842, -0.1892665327, -0.1287589073, -0.097065419, -0.1592886448, -0.1369859874, 0.00453114, 0.3254041076, -0.7125179768, -0.2792513967, -0.1463440955, 0.007621672, -0.2057146132, 0.0702228993, -0.4360500872, -0.3211264908, 0.0423506312, -0.2473163903, -0.5409809947, -0.0410528779, 0.2723688781, 0.092878364, 0.42366907, 0.6302574873, 0.0744522139, -0.1189608648, -0.0769283548, 0.2815291286, -0.0017069535, -0.2372878045, 0.3587241769, 0.2491544187, 0.0125262449, 0.1421518475, 0.0894048363, 0.013923469, 0.1374355406, -0.1794732511, -0.2946614027, -0.236434862, 0.0364807285, 0.2371771187, 0.0985817462, 0.1828026175, 0.2921200991, -0.4138014913, -0.1671655625, -0.1980050057, -0.0679662079, -0.0445374995, 0.339509815, 0.2307617962, 0.0757989064, -0.022577351, -0.1692071557, 0.2093006968, 0.3660115004, 0.3369349837, -0.1701856405, -0.3115431368, 0.1045251414, 0.08796148, 0.3199939728, -0.2685279548, -0.0645284206, -0.1654906571, -0.2432914674, 0.1397913843, 0.4403592646, 0.0093704769, 0.6279395819, -0.2326395959, 0.0618090294, -0.0221134294, 0.197351262, -0.3701750338, 0.1364082843, -0.1778946966, 0.3094801009, -0.0463116318, 0.1947896481, -0.3871263862, -0.1407454908, -0.1017046347, 0.0919169784, 0.1624630988, -0.2329883128, 0.0275499485, -0.2276390344, 0.3421431184, 0.5766684413, -0.0366017297, -0.3406234384, 0.260145992, 0.0938546285, -0.2149893045, 0.2604700923, 0.1313989162, -0.3491404653, 0.2399220467, 0.2198221833, 0.0238257777, 0.2739399672, -0.4158232212, 0.0962318778, 0.4593584239, -0.2312579006, 0.0933083147, 0.7471673489, -0.0716881752, 0.3275978267, 0.2411196679, 0.1174239665, -0.1474772841, 0.5122221708, 0.2956359982, 0.3313478827, 0.1835951209, 0.0873706415, -0.1988349259, -0.0440695696, 0.0718020573, 0.0233148783, -0.2806164324, -0.0010324975, 0.052382987, 0.0993889794, -0.1351291537, 0.0063865008, 0.0764459819, 0.0787785426, -0.085321568, -0.3726897836, -0.180730328, -0.0773208067, -0.435195297, 0.0100046052, -0.0010134156, 0.2239073068, 0.5572528243, -0.0630999655, 0.2330803275, -0.4022644162, -0.1216405332, -0.067167528, 0.3376492858, -0.4362978041, 0.0450069159, 0.1967760026, 0.0978504121, 0.3461166024, -0.2736423314, 0.3674905002, 0.0158708822, -0.0313473865, -0.3278319538, -0.2703052461, -0.1479445994, 0.2584282458, 0.4770182073, -0.2473759204, 0.1601272523, 0.3426007032, 0.0708494335, -0.0214187205, 0.3009718359, 0.2921061218, 0.1484787464, -0.3536859751, 0.6270409822, 0.0342787467, -0.172503233, -0.0649005845, 0.0291265566, -0.220711872, 0.0153459152, 0.4927924573, -0.0857058167, 0.2625670135, 0.098151572, 0.0294043105, 0.2018342316, 0.3894339204, 0.2932921052, -0.4533613324, -0.0536826923, 0.1658810228, -0.3433845937, -0.1413584054, 0.1090328395, -0.1523897499, -0.1043178663, -0.2610400915, 0.1003694758, -0.0362396613, 0.0448414944, 0.1843631268, -0.2561529577, 0.2380366325, -0.0057348828, -0.3758707941, -0.0841978341, 0.0209682491, 0.0370425321, -0.3455044031, -0.0190410949, 0.4193591774, -0.106277585, -0.2612062395, -0.1117051095, 0.3965738714, 0.0212079659, -0.0702143759, 0.2049695253, 0.5175043344, -0.2131402194, 0.1191596016, 0.0022140616, -0.3588141501, -0.4568066895, 0.4172987342, -0.0768354684, 0.3570569158, 0.0373991653, 0.0126482463, -0.0493577085, 0.1037040278, -0.2392888665, 0.0344575346, -0.4673056006, 0.0310812872, 0.2342383116, 0.0649652034, 0.1397205442, 0.2943553627, 0.1055683494, 0.4483830333, -0.1242295355, -0.3101115227, 0.5607994199, -0.3047523499, -0.6528937817, 0.1209914163, -0.174409762, 0.3874828517, 0.095918119, -0.6975601912, -0.105978325, 0.3279692829, -0.0964662954, -0.2087819725, 0.1775736362, 0.2100796551, -0.0227708742, 0.0247901622, 0.1218383759, 0.043674916, -0.1834021658, -0.0161776524, -0.0734404996 ]
https://github.com/huggingface/datasets/issues/2022
ValueError when rename_column on splitted dataset
This has been fixed in #2043 , thanks @mariosasko The fix is available on master and we'll do a new release soon :) feel free to re-open if you still have issues
Hi there, I am loading `.tsv` file via `load_dataset` and subsequently split the rows into training and test set via the `ReadInstruction` API like so: ```python split = { 'train': ReadInstruction('train', to=90, unit='%'), 'test': ReadInstruction('train', from_=-10, unit='%') } dataset = load_dataset( path='csv', # use 'text' loading script to load from local txt-files delimiter='\t', # xxx data_files=text_files, # list of paths to local text files split=split, # xxx ) dataset ``` Part of output: ```python DatasetDict({ train: Dataset({ features: ['sentence', 'sentiment'], num_rows: 900 }) test: Dataset({ features: ['sentence', 'sentiment'], num_rows: 100 }) }) ``` Afterwards I'd like to rename the 'sentence' column to 'text' in order to be compatible with my modelin pipeline. If I run the following code I experience a `ValueError` however: ```python dataset['train'].rename_column('sentence', 'text') ``` ```python /usr/local/lib/python3.7/dist-packages/datasets/splits.py in __init__(self, name) 353 for split_name in split_names_from_instruction: 354 if not re.match(_split_re, split_name): --> 355 raise ValueError(f"Split name should match '{_split_re}'' but got '{split_name}'.") 356 357 def __str__(self): ValueError: Split name should match '^\w+(\.\w+)*$'' but got 'ReadInstruction('. ``` In particular, these behavior does not arise if I use the deprecated `rename_column_` method. Any idea what causes the error? Would assume something in the way I defined the split. Thanks in advance! :)
32
ValueError when rename_column on splitted dataset Hi there, I am loading `.tsv` file via `load_dataset` and subsequently split the rows into training and test set via the `ReadInstruction` API like so: ```python split = { 'train': ReadInstruction('train', to=90, unit='%'), 'test': ReadInstruction('train', from_=-10, unit='%') } dataset = load_dataset( path='csv', # use 'text' loading script to load from local txt-files delimiter='\t', # xxx data_files=text_files, # list of paths to local text files split=split, # xxx ) dataset ``` Part of output: ```python DatasetDict({ train: Dataset({ features: ['sentence', 'sentiment'], num_rows: 900 }) test: Dataset({ features: ['sentence', 'sentiment'], num_rows: 100 }) }) ``` Afterwards I'd like to rename the 'sentence' column to 'text' in order to be compatible with my modelin pipeline. If I run the following code I experience a `ValueError` however: ```python dataset['train'].rename_column('sentence', 'text') ``` ```python /usr/local/lib/python3.7/dist-packages/datasets/splits.py in __init__(self, name) 353 for split_name in split_names_from_instruction: 354 if not re.match(_split_re, split_name): --> 355 raise ValueError(f"Split name should match '{_split_re}'' but got '{split_name}'.") 356 357 def __str__(self): ValueError: Split name should match '^\w+(\.\w+)*$'' but got 'ReadInstruction('. ``` In particular, these behavior does not arise if I use the deprecated `rename_column_` method. Any idea what causes the error? Would assume something in the way I defined the split. Thanks in advance! :) This has been fixed in #2043 , thanks @mariosasko The fix is available on master and we'll do a new release soon :) feel free to re-open if you still have issues
[ -0.0835752711, 0.2197993249, -0.0348291732, -0.0423847027, 0.4208770394, 0.0730622113, 0.6438040733, 0.4179843366, -0.022552656, 0.3396532536, -0.086686641, 0.3978037238, -0.0521847792, 0.3644354939, -0.2562584579, -0.2477058023, 0.1044138446, -0.0795423463, 0.1267364472, 0.2697295249, -0.330052942, 0.0778077096, -0.3932778239, 0.1260687858, -0.0781337023, 0.0623802096, 0.0325195044, 0.0953770131, 0.0282755606, -0.3610773087, 0.1441163123, -0.0355101116, 0.1899647862, 0.5556836128, -0.0001162362, 0.123281315, 0.2225489318, -0.1280174404, -0.1891632378, -0.4528479278, -0.005278707, -0.1680364162, 0.0017360338, -0.3506765664, 0.1707243174, 0.2284769565, -0.2309947312, -0.2584792972, 0.1006065607, 0.369312048, 0.107690081, 0.0965298563, -0.0107200621, 0.1191242039, 0.1085150465, 0.0212473702, -0.3047724068, 0.0899830684, -0.0761239603, -0.1792219579, -0.1137907058, 0.2317514122, -0.071176894, 0.1480417848, -0.0235445742, 0.3106743097, 0.03458919, -0.0469642654, 0.0888523832, 0.0671800151, 0.2144693732, -0.2401783615, -0.463991195, -0.444296062, 0.1637720615, -0.3250167072, 0.257049799, -0.1877463609, 0.1232365295, 0.1840746701, -0.1398659796, 0.0523614399, -0.137305066, -0.1406386495, -0.0923044011, 0.08936169, -0.0323618166, 0.4094693661, -0.100293085, -0.1114295349, 0.174908638, 0.051333297, -0.0785201192, -0.1311808378, -0.5019623637, 0.0278140586, -0.2302474082, -0.2595579028, -0.320127815, -0.1200023293, 0.0158364177, -0.2517314851, 0.2726789117, 0.2164976448, -0.0362975448, 0.1996525675, 0.1300997883, 0.4851778448, 0.2359966189, 0.1402984411, -0.2038470805, -0.091525957, 0.0607342832, -0.2988732755, 0.1496177316, 0.190858528, 0.1388383955, 0.1012245938, -0.422322154, -0.0214157365, -0.299931407, -0.1886163503, -0.0305336285, 0.2214561105, 0.2032393515, 0.4568882585, 0.1693874449, 0.0574802607, -0.0006993565, -0.1406515986, -0.037125513, 0.1793325096, -0.3019693792, 0.150598824, 0.0399701856, 0.1964558065, 0.0814439431, -0.2706573009, -0.0208251849, -0.2991540432, -0.0203201268, -0.1991915405, 0.0952110291, 0.2918279171, -0.0835519955, -0.1079084724, 0.1164142489, -0.4457982481, 0.0352156721, 0.2579235733, -0.2536047697, -0.3207926154, 0.1397257, 0.1286004037, 0.0399010926, -0.0527536906, 0.0482411534, -0.0229604002, 0.6056431532, -0.1394456029, 0.1351450682, -0.3096874654, -0.2267055362, -0.0160398427, -0.0332793556, 0.1000444368, -0.5333274007, -0.1184839085, 0.0636193678, 0.1941968799, 0.1769786924, 0.1755303144, 0.1830015928, 0.1583334506, 0.13353917, 0.2669036686, 0.2967287004, -0.3958649933, 0.028895231, 0.280764848, -0.3185534179, -0.1601908952, 0.3707810938, -0.2173385471, 0.1207506657, -0.1076935977, 0.1341799647, 0.0113363126, -0.0657368824, 0.0960764438, -0.0378147066, -0.0701455027, 0.3307215571, -0.0180213917, 0.0188635942, -0.1157904416, -0.1568620652, -0.2933052778, 0.3243607283, -0.0264653042, 0.1164179593, 0.1300329566, 0.1057565883, 0.5420785546, 0.120000869, -0.0832297951, -0.2253145576, 0.028383702, 0.3180817068, -0.168324545, -0.3165956438, -0.1709284633, -0.4326011539, 0.0489439741, -0.0752224103, 0.0472045057, 0.0313138217, 0.2542937994, -0.1051331013, -0.121790722, -0.4117278755, 0.2951655984, -0.5749081969, 0.2464329153, -0.3180006742, 0.0776000917, 0.006179498, -0.3219503462, -0.2502305508, 0.1552671343, 0.1714719832, -0.0112890489, -0.2374314368, 0.6657512784, 0.3477511704, 0.0463433638, -0.3765338361, -0.2769814134, -0.1085004061, 0.2417755723, -0.2358049303, -0.1330698282, 0.2457471192, -0.041251801, -0.0628129691, 0.2938636243, -0.4202154875, 0.5500615239, -0.0109363552, -0.1532362103, 0.0020683827, -0.2575076818, -0.1037361622, -0.3930053115, -0.1505554169, -0.3311615884, 0.1140192524, -0.1965572387, -0.1869238764, -0.2932312489, 0.6310687661, -0.0536829308, -0.1708035916, 0.0077963397, 0.135793671, -0.0466480888, -0.0799039528, 0.6231102347, 0.4926960766, 0.0294922497, -0.1018568873, 0.2511086464, 0.1871847063, -0.2857351899, 0.2048227191, 0.2681159079, 0.1419736594, 0.4111414552, 0.2456433624, 0.0051549552, -0.2268375456, -0.1838648617, 0.396805048, 0.1195371598, -0.4919121265, 0.0235624295, -0.1649116576, 0.2419188619, -0.2057010084, -0.226712361, 0.1853087246, -0.5442621708, -0.2349179387, 0.3472462296, -0.3372886479, 0.3051025271, -0.1589924097, -0.3950491846, 0.0922146067, -0.1661287695, -0.0719222203, -0.1782118082, -0.0885189101, -0.0458368175, -0.1261462122, -0.097228691, 0.0410270356, -0.1662221849, -0.0943964198, -0.1365423501, -0.2923830748, -0.0274043363, -0.4529350996, -0.0093845828, 0.4005088806, 0.0366893634, 0.1800102293, -0.4637695551, 0.2288460135, 0.0775947347, -0.0209740587, 0.0346012525, 0.2929469645, 0.006128388, -0.1640411615, -0.6690232754, -0.272598356, -0.3042472005, 0.1338288337, -0.2729789317, -0.1675991118, 0.0596721433, -0.16183801, 0.0142354779, 0.1734490395, 0.1514363438, -0.0215063468, 0.0119573837, 0.1503856629, 0.0146299461, 0.177695334, 0.1265311241, 0.1827682704, -0.1011585519, 0.0592225008, -0.1364729702, -0.056478776, -0.0916981772, 0.3380537927, 0.0930301771, -0.0017821538, 0.2639889717, 0.2979951799, -0.036333099, -0.1717988998, -0.2675013542, 0.2465603352, 0.0576316677, 0.1198233068, 0.0803306103, 0.6318509579, 0.2055415064, 0.1752792299, -0.150717169, -0.0701786727, 0.0658941418, -0.0693152621, 0.0188849699, -0.1903809309, -0.0143464683, -0.0719317198, -0.3799416125, -0.2754397988, 0.0968470648, -0.140414983, -0.0746425688, -0.0370619558, 0.0086294701, 0.0436806716, -0.2274770886, -0.0524388701, -0.0882401317, 0.4275676012, 0.1327890009, 0.1390786767, -0.0748877451, -0.0587314144, 0.126032114, 0.1799937934, 0.1219586432, -0.3082246184, -0.2348090708, 0.0278908238, -0.2218736559, 0.2311762869, 0.3654353917, 0.5237159133, 0.1095000803, -0.418908596, 0.0391256623, 0.1244081184, 0.5819936395, -0.2301920354, -0.0308654327, 0.1820011884, -0.1582546532, 0.0998641476, -0.1680946797, -0.2026174515, -0.0297280494, 0.2626564205, 0.4312620461, -0.0818836391, -0.0455455333, 0.5021079779, 0.221386984, -0.0002616793, -0.2003735602, -0.1444073468, -0.334911406, -0.2491313368, -0.0207627099, 0.0515860654, 0.1574814767, 0.0513999462, 0.3127942979, -0.0301316679, -0.3142570257, 0.140496701, 0.2325982451, -0.042831894, -0.0776598752, 0.1895497143, 0.0559757277, 0.1787736118, 0.0804945007, 0.2318653166, -0.4986414611, -0.6792058945, -0.0838988349, -0.1733064651, 0.4837500155, 0.2373585552, -0.2355027795, 0.2386440784, -0.0622690842, 0.2222548723, -0.1055743098, -0.0054896879, 0.3826481104, 0.084131889, -0.3165599108, -0.5406340361, 0.3414804637, 0.07956402, -0.0830515176, 0.0900764838, 0.3665973246, -0.4676117897, 0.419002831, -0.127270937, 0.5394499302, 0.1711793244, -0.0342088528, 0.4204016328, -0.1584544629, -0.0678919926, -0.0687833652, 0.1058088914, -0.3747583032, -0.2032314986, -0.062914446, 0.0981256142, 0.4457719326, 0.0439915396, -0.0239879731, 0.3131875396, -0.0377459601, 0.3181697428, -0.0129599953, -0.0236805119, -0.1248434633, -0.2890895903, 0.0314165577, 0.0170258787, 0.0585118197, -0.3307889402, 0.3468235433, 0.1850596964, -0.0445545688, -0.0068803392, -0.1796743572, -0.0920962468, -0.0396208949, 0.2621533275, -0.0702738687, -0.2068291903, 0.2561680377, 0.2360015213, 0.3455244899, 0.1204389706, 0.2218236476, 0.2901316285, 0.0536015183, 0.3150190413, 0.0510930568, -0.0520142689, 0.3549726009, 0.2559574842, -0.1892665327, -0.1287589073, -0.097065419, -0.1592886448, -0.1369859874, 0.00453114, 0.3254041076, -0.7125179768, -0.2792513967, -0.1463440955, 0.007621672, -0.2057146132, 0.0702228993, -0.4360500872, -0.3211264908, 0.0423506312, -0.2473163903, -0.5409809947, -0.0410528779, 0.2723688781, 0.092878364, 0.42366907, 0.6302574873, 0.0744522139, -0.1189608648, -0.0769283548, 0.2815291286, -0.0017069535, -0.2372878045, 0.3587241769, 0.2491544187, 0.0125262449, 0.1421518475, 0.0894048363, 0.013923469, 0.1374355406, -0.1794732511, -0.2946614027, -0.236434862, 0.0364807285, 0.2371771187, 0.0985817462, 0.1828026175, 0.2921200991, -0.4138014913, -0.1671655625, -0.1980050057, -0.0679662079, -0.0445374995, 0.339509815, 0.2307617962, 0.0757989064, -0.022577351, -0.1692071557, 0.2093006968, 0.3660115004, 0.3369349837, -0.1701856405, -0.3115431368, 0.1045251414, 0.08796148, 0.3199939728, -0.2685279548, -0.0645284206, -0.1654906571, -0.2432914674, 0.1397913843, 0.4403592646, 0.0093704769, 0.6279395819, -0.2326395959, 0.0618090294, -0.0221134294, 0.197351262, -0.3701750338, 0.1364082843, -0.1778946966, 0.3094801009, -0.0463116318, 0.1947896481, -0.3871263862, -0.1407454908, -0.1017046347, 0.0919169784, 0.1624630988, -0.2329883128, 0.0275499485, -0.2276390344, 0.3421431184, 0.5766684413, -0.0366017297, -0.3406234384, 0.260145992, 0.0938546285, -0.2149893045, 0.2604700923, 0.1313989162, -0.3491404653, 0.2399220467, 0.2198221833, 0.0238257777, 0.2739399672, -0.4158232212, 0.0962318778, 0.4593584239, -0.2312579006, 0.0933083147, 0.7471673489, -0.0716881752, 0.3275978267, 0.2411196679, 0.1174239665, -0.1474772841, 0.5122221708, 0.2956359982, 0.3313478827, 0.1835951209, 0.0873706415, -0.1988349259, -0.0440695696, 0.0718020573, 0.0233148783, -0.2806164324, -0.0010324975, 0.052382987, 0.0993889794, -0.1351291537, 0.0063865008, 0.0764459819, 0.0787785426, -0.085321568, -0.3726897836, -0.180730328, -0.0773208067, -0.435195297, 0.0100046052, -0.0010134156, 0.2239073068, 0.5572528243, -0.0630999655, 0.2330803275, -0.4022644162, -0.1216405332, -0.067167528, 0.3376492858, -0.4362978041, 0.0450069159, 0.1967760026, 0.0978504121, 0.3461166024, -0.2736423314, 0.3674905002, 0.0158708822, -0.0313473865, -0.3278319538, -0.2703052461, -0.1479445994, 0.2584282458, 0.4770182073, -0.2473759204, 0.1601272523, 0.3426007032, 0.0708494335, -0.0214187205, 0.3009718359, 0.2921061218, 0.1484787464, -0.3536859751, 0.6270409822, 0.0342787467, -0.172503233, -0.0649005845, 0.0291265566, -0.220711872, 0.0153459152, 0.4927924573, -0.0857058167, 0.2625670135, 0.098151572, 0.0294043105, 0.2018342316, 0.3894339204, 0.2932921052, -0.4533613324, -0.0536826923, 0.1658810228, -0.3433845937, -0.1413584054, 0.1090328395, -0.1523897499, -0.1043178663, -0.2610400915, 0.1003694758, -0.0362396613, 0.0448414944, 0.1843631268, -0.2561529577, 0.2380366325, -0.0057348828, -0.3758707941, -0.0841978341, 0.0209682491, 0.0370425321, -0.3455044031, -0.0190410949, 0.4193591774, -0.106277585, -0.2612062395, -0.1117051095, 0.3965738714, 0.0212079659, -0.0702143759, 0.2049695253, 0.5175043344, -0.2131402194, 0.1191596016, 0.0022140616, -0.3588141501, -0.4568066895, 0.4172987342, -0.0768354684, 0.3570569158, 0.0373991653, 0.0126482463, -0.0493577085, 0.1037040278, -0.2392888665, 0.0344575346, -0.4673056006, 0.0310812872, 0.2342383116, 0.0649652034, 0.1397205442, 0.2943553627, 0.1055683494, 0.4483830333, -0.1242295355, -0.3101115227, 0.5607994199, -0.3047523499, -0.6528937817, 0.1209914163, -0.174409762, 0.3874828517, 0.095918119, -0.6975601912, -0.105978325, 0.3279692829, -0.0964662954, -0.2087819725, 0.1775736362, 0.2100796551, -0.0227708742, 0.0247901622, 0.1218383759, 0.043674916, -0.1834021658, -0.0161776524, -0.0734404996 ]
https://github.com/huggingface/datasets/issues/2021
Interactively doing save_to_disk and load_from_disk corrupts the datasets object?
Hi, Can you give us a minimal reproducible example? This [part](https://huggingface.co/docs/datasets/master/processing.html#controling-the-cache-behavior) of the docs explains how to control caching.
dataset_info.json file saved after using save_to_disk gets corrupted as follows. ![image](https://user-images.githubusercontent.com/16892570/110568474-ed969880-81b7-11eb-832f-2e5129656016.png) Is there a way to disable the cache that will save to /tmp/huggiface/datastes ? I have a feeling there is a serious issue with cashing.
19
Interactively doing save_to_disk and load_from_disk corrupts the datasets object? dataset_info.json file saved after using save_to_disk gets corrupted as follows. ![image](https://user-images.githubusercontent.com/16892570/110568474-ed969880-81b7-11eb-832f-2e5129656016.png) Is there a way to disable the cache that will save to /tmp/huggiface/datastes ? I have a feeling there is a serious issue with cashing. Hi, Can you give us a minimal reproducible example? This [part](https://huggingface.co/docs/datasets/master/processing.html#controling-the-cache-behavior) of the docs explains how to control caching.
[ -0.0748547912, -0.1469715089, 0.0561723448, 0.7758010626, 0.2905217111, 0.3213841021, -0.2317182869, 0.1311902255, 0.1942947507, 0.1316705048, -0.150269255, 0.0668350905, 0.2389937788, 0.2033747882, 0.1379985064, 0.2394485772, 0.4092519283, -0.1022172719, -0.2969143093, -0.0024890678, -0.0571398549, 0.2013206333, 0.2392439246, -0.047508534, -0.3708271384, -0.1665403694, 0.0865426958, 0.3370101154, -0.0457872115, -0.3307517171, 0.1703151166, 0.2500181794, -0.2806943655, 0.399751693, -0.0001322348, -0.2780960202, 0.0654913038, -0.1120894551, -0.4807299376, 0.3449933529, -0.2146832794, 0.1056199074, 0.1832562685, -0.0514745452, 0.0180758387, 0.0305722095, -0.0448681712, -0.2771773338, 0.4946138263, -0.1418090165, 0.0099721858, 0.2939892113, 0.0540793352, 0.1705432534, -0.089111954, 0.3520073295, -0.1730328649, 0.2473767549, -0.05670885, -0.0422366038, -0.1335353106, 0.3271781802, -0.194292292, -0.2215318084, 0.4750733674, 0.1670784652, -0.226109162, -0.101561442, 0.1416803002, 0.0300045833, 0.2404653579, -0.441373378, -0.490142256, -0.4094578922, -0.1626339108, -0.2622803152, 0.4829567969, 0.1149297059, 0.0237634089, 0.2698068023, -0.6267794967, -0.3822419643, -0.0752128288, 0.1046849489, 0.2587689757, -0.6426105499, -0.2962204218, -0.0202894583, 0.0960969105, -0.0269154571, -0.2518184483, -0.2842935622, -0.4094384909, 0.2043649256, -0.2804294825, -0.1706219316, -0.0365123227, 0.6992860436, 0.3096770346, 0.0266731549, 0.1539707929, -0.026879156, -0.3828504086, 0.0570358783, 0.4450923204, 0.184109658, -0.151033923, -0.3038635552, 0.1937830597, 0.2487015724, 0.1934027523, -0.1279369891, 0.623529017, 0.0654035062, 0.3158106208, -0.2794090211, 0.1027025431, -0.4267751873, -0.1581872553, 0.2238548845, 0.1136850119, 0.1270823032, 0.1518257558, 0.2743180394, -0.2032472938, 0.2388758361, -0.1741434634, 0.2308163047, -0.1112836674, -0.1644693464, -0.2411802709, 0.0200552028, -0.1028404161, 0.4697911739, 0.3572982848, -0.215857327, 0.1555409729, 0.1488799453, -0.2194772661, -0.2177105248, -0.1413963139, -0.173089087, 0.2110492885, 0.2001752108, -0.0784015059, 0.2614492178, 0.0442141891, 0.1813435704, -0.1044089273, -0.0167493448, -0.3025809824, -0.1653334945, 0.237142995, -0.0093311137, -0.3137512803, -0.020429967, -0.3833117783, -0.0406768508, 0.3734039366, -0.0606609546, 0.2270976901, 0.3761094809, -0.4323393703, -0.212626785, 0.118698962, 0.7272848487, -0.0777008086, -0.180904761, 0.3380314112, -0.0677054748, -0.0976455584, 0.495566994, -0.0461679325, 0.1240397841, -0.1751253158, -0.0000536356, 0.0921347439, -0.4036754966, -0.5119621158, -0.0031917491, 0.2435678989, 0.1814946532, 0.081884712, 0.170397684, 0.0276783109, -0.2080337107, -0.3021431863, 0.2457525283, 0.0571980253, 0.1007416993, -0.2472882718, -0.2150125653, 0.0834207088, -0.0444382057, -0.3568454981, 0.4231314063, -0.0431620553, -0.0345392823, 0.0292218924, -0.0048337569, 0.2021774203, 0.3284560442, 0.2372108102, 0.1297818571, 0.0238765553, 0.0728911608, -0.4457367361, 0.1206497699, 0.0823690593, -0.2579559684, -0.0335218869, -0.2511535585, -0.0211948119, 0.1351120174, -0.078266032, 0.1193075329, -0.098316595, -0.0323054455, 0.2460307926, 0.1717051864, -0.2977084219, 0.8645343184, 0.0648762211, 0.2302661389, -0.5460050106, -0.0653682873, 0.1276174039, -0.0912415981, -0.3207087815, -0.1451037824, 0.1751981974, -0.2126639485, -0.0814765543, 0.6701141, -0.0175039638, 0.4155428112, 0.0389866382, 0.3504510224, 0.2606140673, 0.1764133126, -0.0385828167, -0.0113055734, 0.1953106821, 0.003096394, -0.2079168558, 0.2323738933, 0.040125452, -0.0596017204, -0.0595626794, -0.1137473136, 0.1619165689, -0.1846331656, 0.0205506533, -0.3181632757, -0.0380239226, -0.2064878792, 0.2917069197, -0.0238010548, -0.3807867467, 0.1157951504, 0.2447307259, 0.0247227903, 0.0320939943, -0.0001367795, -0.0198976565, -0.3366125524, 0.0410210118, 0.25404796, 0.5070414543, -0.0893042013, 0.0645958558, 0.0287314914, 0.0835924074, -0.0630106106, 0.1469511241, 0.0372382179, 0.0762837827, 0.1165310964, 0.0270344168, -0.0039833435, -0.455496192, 0.4673795402, -0.1203905568, 0.1310742497, -0.4288459122, 0.302718997, -0.0754571259, -0.1827245206, -0.0489478409, 0.0194732714, -0.3586305678, -0.2553176582, 0.1200565472, 0.7634334564, 0.009685819, -0.0343594253, -0.0973858014, 0.6595606208, -0.1374252737, 0.1637321115, -0.5104166269, 0.0852931365, -0.1150370166, -0.2006237805, 0.1317940652, -0.2283474356, 0.3360624313, -0.2017661929, -0.1169523522, -0.3274318874, 0.161398679, 0.1672955453, 0.1527268738, 0.1604952067, -0.0304520093, 0.1365008056, -0.0491777658, 0.2691923678, 0.0262314249, -0.2377795577, -0.2840476632, 0.0405838937, 0.1341716498, 0.038881775, -0.1139047071, 0.3498012424, -0.0329405218, -0.0541745014, 0.2562651038, -0.1604388505, 0.0446977653, 0.1442910284, 0.0514637679, -0.1174160391, -0.2412374318, 0.0953691974, -0.3460167348, -0.8206093907, 0.327139765, 0.0187045541, -0.242923364, 0.1773415953, 0.4334364235, -0.0686253384, 0.2557429671, -0.4300450683, -0.3236347437, -0.141615808, -0.126407668, -0.2315830141, 0.0207727514, 0.1110526621, 0.1076804772, 0.0291784108, -0.0460484214, -0.2006755173, 0.2317099869, -0.0316281095, 0.4652902782, -0.1587825716, 0.2857137918, 0.1445432156, 0.1652268469, 0.0474155843, 0.08712852, 0.5161066651, 0.1988770366, 0.7607293129, -0.0900927559, -0.1815167665, -0.3419683576, -0.2872553766, -0.1473707557, -0.0324973762, 0.2255665362, 0.2973237336, -0.0842175782, 0.0380377658, -0.1443548352, -0.273096025, -0.1276720762, 0.0462881029, 0.19490017, -0.0110854078, 0.0630231723, 0.0096928794, -0.2521269619, 0.1720576286, 0.3098347485, 0.3786350787, 0.0557167828, -0.367005378, 0.0577395111, -0.2918667197, 0.0747627541, -0.3715940714, 0.2076218724, -0.1661170423, 0.0529628284, 0.1380394697, -0.1151387393, 1.0467965603, 0.059348762, 0.2043458223, -0.1869152337, -0.3095418215, -0.0777509734, 0.0691587031, 0.0161843989, 0.2611724138, 0.0595149472, 0.6162329912, -0.150195986, -0.4283816516, -0.0670603365, 0.2121833414, -0.3520035446, -0.1192601845, -0.0290307421, -0.0092233196, -0.1950491369, -0.1264069378, -0.0532116219, -0.0326081328, 0.0709039345, 0.1760476828, -0.1867095828, 0.130140543, 0.0816658139, -0.0664823055, 0.4074721932, -0.0674881786, 0.1242027879, 0.0730618164, 0.2456014305, 0.1384437978, 0.2380993366, 0.199892655, -0.1974644065, -0.1380943954, 0.2215230614, -0.0196408965, 0.3996661901, -0.1574786156, -0.0589961447, 0.140560329, -0.1138248667, -0.3557963967, 0.1030614004, 0.0660834089, 0.0492112786, -0.3060367405, -0.0036101097, 0.2606482804, 0.1160126701, -0.0404055826, -0.1814969331, 0.1962474585, -0.3767838478, 0.2850162387, 0.2217985541, 1.1114577055, -0.0965868086, 0.4467283189, -0.0190251265, -0.1858022511, 0.4888449907, -0.4004941285, 0.0697799176, -0.3076686859, 0.0705444068, -0.2381847501, -0.0994820073, 0.0114009678, 0.0542054921, -0.0264038537, 0.3500373662, -0.3125452697, 0.3876651227, -0.2943258584, -0.0302392114, -0.2995471656, -0.4565080702, -0.1542962193, 0.0095068943, -0.1227840856, 0.0694232136, 0.0924303457, -0.1352427155, -0.0731393546, 0.0310236048, -0.0755949914, 0.0434999801, -0.1127257049, 0.0468673334, 0.1002517566, -0.1901458651, -0.1807043999, 0.4376673698, 0.5001236796, 0.0209763534, -0.2449198365, 0.0116413394, -0.2824941278, 0.0253806785, -0.1500500888, 0.1342826933, 0.2004400641, 0.0859992802, 0.1513375193, -0.1590442806, -0.0797577053, -0.1197041944, -0.0414700359, -0.0937321112, -0.1113541797, -0.4145841897, -0.4675276279, -0.0541550815, 0.2668153644, -0.1406587511, -0.0024488186, 0.3070693314, -0.0184369087, 0.0786452442, -0.3082565069, -0.1136914343, -0.1069946736, 0.6052972674, -0.0238783453, -0.1746397763, 0.2837360501, -0.2377167344, -0.0794074833, -0.1719004214, -0.1476996988, 0.1923365891, -0.4884538352, 0.0662493035, 0.0631102622, -0.0760510564, -0.3701544404, -0.1271536499, 0.0942048207, -0.1351928711, 0.0251704995, -0.1850658059, -0.4053342044, 0.0911819562, 0.4046015739, 0.2675653696, 0.1915951073, -0.2586052716, -0.3346118629, 0.0083080335, -0.1136095747, 0.0293382481, -0.0723344684, -0.1758127064, 0.4042058885, 0.1595689058, 0.3628734946, -0.3410279751, -0.1344438046, -0.0828421265, -0.2898581624, -0.0524391085, -0.0671124011, 0.2208081484, 0.128653422, -0.2424934059, -0.0785711706, -0.0933791846, 0.1115618348, -0.2209187746, 0.1932238936, 0.3436003625, 0.0891951323, 0.0913302004, -0.0406277627, 0.3802589178, 0.0568005629, -0.1113141254, 0.1512759328, 0.1528165787, -0.0399671569, 0.0099178348, -0.3080689311, -0.2685753107, -0.231273219, 0.1376548856, 0.3123863041, 0.0286113936, 0.0696551725, -0.2291846126, -0.1985619366, 0.1794015318, 0.4456973374, 0.3498786986, -0.1561808437, -0.1637622863, 0.277517736, -0.0343010649, 0.22831209, -0.2759068608, 0.3110444248, -0.1442945004, -0.2181528658, 0.2194912583, 0.1457754672, 0.089424409, 0.1508737206, -0.0159934927, 0.5966027379, 0.1635358483, 0.1562795788, -0.0331904292, -0.175557375, 0.2858829498, 0.2703323364, 0.2711174488, 0.0543096028, 0.2297404408, 0.1829446256, 0.2589280605, -0.0046064984, 0.1549370587, -0.2851568758, -0.3397417068, 0.156555742, 0.1272262633, -0.1917470396, 0.2534335256, 0.0077062375, 0.5218216777, -0.0336392857, -0.5268297791, -0.2592496574, 0.314991504, -0.2393056154, -0.1920986325, 0.1573894024, -0.0409390293, 0.3146926165, 0.3009056747, -0.1844609231, -0.2195095122, 0.3485590518, -0.0360614397, -0.0218566693, -0.1828767359, -0.092995204, 0.1665181816, 0.1911559254, -0.0352357663, -0.08294826, -0.152516827, 0.0117234634, -0.2291649729, 0.3340144455, 0.0944075733, 0.1614551693, 0.2619739175, 0.1246223599, 0.0411861464, 0.0491621345, 0.1089006886, 0.124321036, -0.1317133009, -0.2439181805, 0.1301479489, -0.1043872237, 0.0813056678, -0.0305603184, 0.0009522212, 0.5091176629, -0.186443612, -0.1353563666, -0.1505175382, -0.0499470308, -0.1239092201, 0.0432747193, -0.2306685597, -0.0394360609, 0.353019923, -0.0909414515, 0.0934864953, -0.084071815, -0.0211621802, 0.1385386586, 0.6743152738, 0.3110595644, -0.2636899352, -0.1781879067, 0.0558290705, -0.3784161806, 0.112792477, 0.149097532, 0.2689664066, -0.2375582904, 0.0925046951, -0.2027712911, 0.1909043491, 0.0163914822, -0.2266667932, -0.04087843, 0.2388918996, -0.033932507, -0.1032302231, -0.0601588562, 0.0945414305, 0.0901063904, -0.1053357869, 0.4479224384, 0.253993839, -0.0884996057, 0.1033505276, 0.2387164831, -0.6483798027, -0.0095176343, 0.3108654022, 0.3298614621, -0.1611237973, 0.0723900497, -0.132466808, -0.0474597067, -0.1372133493, -0.1552101523, -0.0879193172, -0.0672585592, 0.2128999084, -0.3041414917, -0.0716679171, -0.2815502584, 0.2846010029, 0.1085598469, -0.1737360805, -0.1152778268, 0.1978367567, 0.1536782533, -0.0098531339, 0.3255878389, 0.2880613804, -0.1077121124, 0.4771923125, -0.5032346845, 0.1247443929, 0.3944430351, -0.1870742142, -0.0229145084, 0.1646423191, 0.2516717613, 0.4809963405, -0.5691513419, -0.6756883264, 0.0115084127, -0.0385030322, -0.1943019331, -0.2786022425, 0.5799129009, -0.4410837591, -0.1232315227, 0.0045274268, 0.666264534, 0.375352025, -0.1191731691, 0.3322760165, -0.0927176774 ]
https://github.com/huggingface/datasets/issues/2012
No upstream branch
What's the issue exactly ? Given an `upstream` remote repository with url `https://github.com/huggingface/datasets.git`, you can totally rebase from `upstream/master`. It's mentioned at the beginning how to add the `upstream` remote repository https://github.com/huggingface/datasets/blob/987df6b4e9e20fc0c92bc9df48137d170756fd7b/ADD_NEW_DATASET.md#L10-L14
Feels like the documentation on adding a new dataset is outdated? https://github.com/huggingface/datasets/blob/987df6b4e9e20fc0c92bc9df48137d170756fd7b/ADD_NEW_DATASET.md#L49-L54 There is no upstream branch on remote.
32
No upstream branch Feels like the documentation on adding a new dataset is outdated? https://github.com/huggingface/datasets/blob/987df6b4e9e20fc0c92bc9df48137d170756fd7b/ADD_NEW_DATASET.md#L49-L54 There is no upstream branch on remote. What's the issue exactly ? Given an `upstream` remote repository with url `https://github.com/huggingface/datasets.git`, you can totally rebase from `upstream/master`. It's mentioned at the beginning how to add the `upstream` remote repository https://github.com/huggingface/datasets/blob/987df6b4e9e20fc0c92bc9df48137d170756fd7b/ADD_NEW_DATASET.md#L10-L14
[ -0.0541968048, -0.3429027796, -0.0709575489, -0.2234123796, 0.1322250813, 0.0014154331, 0.1212345138, 0.0149747608, -0.4329248965, 0.1663282663, 0.0103838434, -0.050456278, 0.1446349323, 0.2027384937, 0.0767324567, -0.0622125678, 0.2159231454, -0.1112824827, 0.0094954912, -0.3877195716, -0.09594661, 0.0407860912, 0.0525699146, -0.4642565846, -0.044514887, 0.098103568, -0.1298275888, 0.0079102023, -0.4901853204, -0.4163925946, 0.3651940823, -0.03290518, -0.0429879688, 0.4762798548, -0.0001129406, -0.0150296502, 0.3385999501, 0.0055786814, -0.1953438967, -0.2580164075, -0.431886375, -0.4034751356, -0.0033092147, 0.2223089188, -0.187563166, 0.0652669817, 0.174156636, 0.0976459831, 0.1949368566, 0.1445426494, 0.2238370776, 0.204937771, 0.2905166149, -0.4031756818, 0.1369870752, 0.3619067669, -0.2284919471, 0.6680127978, 0.2545557916, 0.4873509109, 0.0701367483, 0.1429861486, 0.3143945932, -0.150174588, 0.2716190815, 0.0007994255, 0.0826400965, -0.1987707168, 0.0030306303, 0.1926568449, 0.6094884276, 0.1220266968, -0.5760813951, -0.1504710466, -0.0158564318, -0.2908192277, 0.0060965698, 0.1517655998, -0.0127051836, 0.1186979041, -0.2797865868, -0.5576731563, -0.1758411974, 0.3202892244, 0.2198289782, 0.2837737501, -0.1586900353, -0.059612222, 0.1148346886, 0.1583347172, -0.3049241602, 0.2595872879, -0.18619214, 0.0499551222, 0.0524862036, -0.1112525165, 0.0173773393, 0.1793415099, 0.1147996783, 0.4388839602, -0.2054876834, -0.2199704796, -0.2314780653, 0.0753106102, 0.2165309489, 0.0756217614, -0.0312719196, -0.0790866315, 0.1986976117, 0.060207773, 0.3548209071, -0.2259037048, 0.0818690285, -0.0484483279, -0.3386690915, -0.1433111578, 0.2231086642, -0.316876471, 0.1877765805, -0.2154595256, -0.0260351617, -0.0105400672, -0.0132226562, -0.0294340402, 0.0110924374, -0.0049993391, -0.1991402358, 0.2391586304, -0.1727276891, -0.097690329, -0.2451281846, 0.0471844599, -0.3421871364, -0.0774906427, -0.0103981821, -0.5276143551, 0.4298354387, 0.2547620833, 0.2393214852, 0.2254778743, -0.4373152256, 0.1930023283, -0.0207107197, 0.2717283368, -0.0286172926, -0.0238100812, -0.0957148671, 0.0014504433, -0.0622847192, -0.3066667318, -0.2370886058, -0.3535678387, -0.3002386987, 0.1684077233, -0.207775116, -0.0839423686, -0.4613353908, 0.2800756991, -0.2034401298, -0.1949636191, 0.2160710692, 0.311763078, -0.1525008529, -0.201926291, 0.3219576776, 0.3567750156, 0.1260178536, -0.2448610365, -0.16716519, 0.027001312, 0.0185940973, 0.2317682356, -0.1968215704, 0.0661109313, -0.1416387856, -0.3127045333, 0.1076087952, -0.3901762962, -0.2116605788, 0.174791649, -0.1828834862, -0.2197278291, -0.0311871059, 0.108967036, 0.0628408343, -0.1208449155, -0.152158916, -0.0260004774, -0.2195285857, -0.3192837238, -0.1481102854, -0.1362630576, -0.4844515324, -0.0842962414, 0.0573402271, 0.1630788594, 0.3549591601, -0.0026102925, -0.1355064511, 0.0839672834, 0.0962491408, 0.4097354412, 0.6342183948, 0.2227143943, -0.1482926905, 0.0710426643, -0.4192636609, 0.1008315757, 0.1169342101, 0.3873187304, 0.1521230638, -0.0850230306, -0.0443589166, -0.1968234628, -0.0004862121, -0.4259002209, 0.0244929288, 0.1884886473, 0.2138531357, 0.2234971523, -0.2566772997, 0.0958833247, -0.0294914991, 0.152888149, -0.6297130585, 0.1088108867, -0.1664845943, 0.0939435959, 0.0237176213, 0.2124968022, 0.007032576, -0.2777433991, 0.0966234133, 0.3237043619, -0.2774698734, 0.2817156613, 0.3697201014, 0.1944122165, 0.3049988747, -0.133385554, -0.094349809, -0.1449738592, -0.088954024, 0.1931200475, -0.2182800174, 0.0946673527, 0.0110946931, -0.0022162094, 0.231175676, 0.1143164411, 0.2847477496, 0.0765316561, -0.0514175035, -0.3194246888, 0.1716014296, -0.0226420704, 0.2445028871, -0.0863720253, -0.1692862809, 0.299942404, 0.1181777939, -0.1917343587, -0.2504561543, 0.2126442045, 0.0553067215, -0.0349403918, 0.1509420574, 0.3782610297, 0.2094808966, 0.3140181601, 0.2590822875, 0.2057404667, 0.2297553569, -0.2771492302, 0.0332853422, -0.0133659653, -0.0976357087, 0.0102001075, 0.2610309124, 0.0893156826, -0.2038081735, 0.2617340088, -0.1053254828, 0.2662072778, 0.0394540504, 0.1391786188, -0.2544879615, -0.1987806261, -0.2773374319, -0.4256398976, -0.4906128347, -0.2860662341, 0.0503328107, 0.2227460444, 0.0436122641, 0.0481662564, 0.1802768111, 0.0652738884, -0.3773150444, 0.0741534829, -0.0229745079, -0.2716955841, -0.0949638337, 0.1281140447, 0.0593440458, -0.1130556017, 0.5370506644, -0.3216627836, -0.0148121081, -0.5511782169, -0.715752244, 0.146481663, -0.1888098121, 0.2367566228, 0.371858567, -0.090620704, -0.0535562895, -0.1214694753, 0.1372004002, -0.3795281053, -0.2920964062, -0.2372152209, -0.1862315089, -0.0549142621, -0.1697187275, -0.5078218579, 0.0070136189, -0.3114489913, 0.6385710239, -0.165412128, -0.059780933, 0.3390490711, 0.0503282063, -0.1282749921, -0.2300439626, 0.078343071, -0.1004794911, -0.3781205118, 0.1260283291, -0.3046659529, -0.3719867468, 0.3863869011, 0.1393263936, 0.4151362181, -0.1058665141, -0.5360229611, 0.0873726606, -0.1337158233, 0.1259726584, 0.2594902813, 0.3358610272, 0.4246496856, -0.2974678874, -0.0998068675, -0.1367076486, -0.1937779635, 0.0255699307, 0.029075373, 0.3333816826, -0.1351306885, 0.6006177068, -0.0499072708, 0.6402547359, -0.0982803106, -0.0154752694, 0.1143738329, -0.1493917704, 0.6323475838, -0.331677258, -0.3233623505, 0.1364961863, 0.0345526189, 0.0068873698, 0.1125793457, 0.4248796999, 0.0923247859, -0.2468124479, -0.3051478267, -0.1002641618, -0.146012038, -0.1558081061, -0.1389605701, 0.0273380931, 0.1567369252, -0.1699369848, -0.12946482, 0.0594993308, -0.1904822439, 0.4983607233, 0.3119197786, 0.1762960404, -0.1139166802, -0.0200243294, -0.3287768662, 0.0223795976, 0.1333618909, 0.1110151634, -0.0989659205, 0.0227769017, 0.0639505088, 0.0045186812, 0.0821690485, -0.2684128582, -0.0876871347, -0.1755534559, -0.3973679841, -0.0734746531, 0.0761879832, 0.1294650137, 0.2193844467, 0.5229236484, 0.1918775439, -0.437140882, -0.2494707406, 0.4528579712, -0.1036302596, 0.0242379867, 0.0774803683, -0.3639129698, -0.192782104, -0.1417673826, -0.1561274976, -0.1499822289, -0.2423300147, 0.2002392858, 0.2097415924, 0.0804552361, 0.1307312995, -0.0218575355, -0.1100865155, -0.0781898275, 0.1754274815, 0.1059264988, 0.1379508823, 0.2865153253, 0.5018665791, 0.6798104048, -0.1456865966, -0.0953029618, 0.1463418156, -0.1023478657, 0.3624458015, 0.2534078062, 0.30156371, 0.3917584121, 0.3839930296, 0.0469166972, -0.1379909664, 0.0368472375, 0.1982233971, 0.098123908, -0.15254879, -0.5134530663, 0.3481762409, -0.245605275, 0.1051679775, 0.2561168671, 0.6245750785, 0.1192329675, -0.170245707, -0.1379128397, 0.744984448, 0.2711579204, 0.1839513183, 0.2813595533, -0.2067983299, 0.6587558389, -0.0252557471, 0.120599851, 0.0192945972, 0.1490718275, -0.027701918, -0.0383053757, -0.1677707285, -0.3307252228, 0.1468951404, 0.3333959579, 0.2054203004, 0.8445014358, 0.157849282, 0.2077128887, 0.1023800969, 0.1010576859, -0.3259065747, 0.1762958616, 0.1065438688, 0.162765041, -0.2111753523, -0.3545364141, -0.2533887923, -0.207382068, -0.2653508484, -0.1439165324, 0.1521334052, 0.1510452181, 0.153021127, -0.4044551849, 0.1483868659, -0.1124778092, 0.6150482297, 0.0065372656, -0.4030733705, 0.0843154043, -0.0826876387, -0.251729399, -0.036066629, 0.0323889516, 0.0447336808, -0.236416012, -0.301736623, -0.1546247602, -0.0294624437, -0.609844923, -0.1334955096, 0.0929761901, -0.4606902301, 0.041983556, 0.110569194, 0.3218736053, -0.0663349777, -0.2480002046, 0.0948793814, 0.0347458012, -0.1556087583, -0.4615311027, 0.2726501822, -0.0990653709, -0.3219062984, 0.4335669279, -0.0901326686, -0.1981203556, 0.0350438394, 0.117612876, -0.1752160639, -0.0787029043, -0.2599714398, 0.4198153317, -0.6655979753, -0.072020106, -0.0602662154, 0.1404730976, 0.2696124613, 0.0201428887, 0.1931989193, -0.1554903537, -0.0399052128, -0.0657762811, -0.4366455674, 0.4004325867, -0.4324068725, -0.0296749007, -0.0345096998, -0.0262647308, 0.2608996928, 0.0994907767, -0.3136251867, 0.1021844298, 0.0710775778, 0.1782093942, 0.1231843308, -0.1891826838, 0.3661713004, -0.3087965548, -0.0154167665, -0.2810226381, -0.3800628185, -0.1121124402, -0.0706324503, 0.1056831479, -0.0388631709, 0.0025965064, -0.0108119519, 0.0262667742, -0.263531357, 0.0649377033, 0.1543999016, 0.2039616406, 0.0449462757, -0.0805021301, 0.2132819444, 0.1636172682, 0.0024134556, -0.0155848768, 0.279817313, 0.2435322702, -0.0116385333, -0.0579942688, -0.1243360415, -0.0605255403, -0.0442779474, 0.1273369789, -0.0094819954, 0.0360429548, 0.2648444176, -0.0183520298, 0.2034744024, -0.1404743791, 0.4461745322, -0.0409632698, 0.2287864089, 0.2913945317, 0.116127111, 0.1003621072, -0.1521702558, -0.0122982319, 0.1328454167, 0.1795764416, 0.1124673858, 0.3269711435, 0.5192692876, -0.0869515911, 0.1475431621, 0.257184267, -0.0131179877, -0.0253289472, 0.332609266, 0.3951197565, 0.0955786705, 0.1072609499, 0.0986685157, 0.2187079042, 0.1012297571, 0.0415242948, -0.0990243256, 0.2544949651, 0.0086006606, -0.0534026138, 0.2118663639, -0.0729226321, -0.1415672004, 0.0891042799, 0.396358639, -0.1169431061, -0.000646902, 0.4232805669, 0.0812317804, -0.114453584, -0.1230813637, 0.2472335696, 0.0531452261, -0.1036686152, -0.138712436, -0.0699666217, 0.0223778449, 0.0309686903, 0.0588696487, -0.1924861521, 0.2392424643, -0.0461437143, -0.1177369654, -0.1222553998, 0.066488713, -0.0201426577, 0.2105910927, 0.1161600724, 0.2627843618, 0.3309720457, -0.304277271, 0.1512640119, 0.4403743148, 0.3446225524, 0.0783985257, 0.3008101285, 0.2424588203, 0.100109905, -0.1045979038, 0.0281084199, 0.4148676395, -0.038738098, 0.1191422939, -0.09586256, 0.1689062417, -0.0897561684, 0.5723360777, -0.162355721, 0.1140348911, -0.0797846168, 0.4220883548, -0.1311381012, 0.035047736, -0.2059662491, 0.3387075961, -0.3323359489, 0.1330697685, 0.1188882738, -0.0054400661, -0.100324139, -0.0844213292, 0.1077453867, 0.1567729264, 0.463311106, 0.5227735043, 0.0973714963, -0.0121584758, -0.3283228576, -0.3530427217, -0.089144811, -0.1584778428, 0.1687250584, -0.1021848917, 0.1534795016, 0.1190977767, 0.0466242209, 0.1040750816, -0.1226315424, -0.0831452981, -0.1003635377, -0.0197658632, -0.1404772848, -0.0286275875, -0.0737155899, 0.0457007661, 0.2124550492, 0.0754461661, -0.1354752779, 0.0448204242, 0.2117479742, 0.3482754529, -0.0373941399, -0.1236425415, -0.1607386023, 0.1037759483, 0.1800483316, -0.1206175163, -0.5101878643, -0.4385741651, -0.2309197038, -0.2537137568, 0.333817929, -0.2255731672, 0.4225820303, -0.2648853362, -0.2386313975, -0.3333469331, 0.1711940169, 0.1513843983, 0.0108096637, -0.262118727, 0.2301333249, -0.1468751878, -0.0217886753, 0.2312788367, 0.1507332623, -0.0992861241, -0.0273187943, -0.3974134028, -0.1334387809, 0.5408657789, -0.3637284338, 0.290858686, -0.1150252223, 0.0339615867, 0.6897442341, -0.2621999979, -0.7218092084, 0.1165168211, 0.1182705164, 0.1573731154, -0.2257875651, 0.3257891238, -0.2251302302, -0.3165768683, 0.0178393032, 0.4571692646, 0.132864967, -0.3172667921, 0.1752415299, -0.1456602663 ]
https://github.com/huggingface/datasets/issues/2012
No upstream branch
~~What difference is there with the default `origin` remote that is set when you clone the repo?~~ I've just understood that this applies to **forks** of the repo 🤡
Feels like the documentation on adding a new dataset is outdated? https://github.com/huggingface/datasets/blob/987df6b4e9e20fc0c92bc9df48137d170756fd7b/ADD_NEW_DATASET.md#L49-L54 There is no upstream branch on remote.
29
No upstream branch Feels like the documentation on adding a new dataset is outdated? https://github.com/huggingface/datasets/blob/987df6b4e9e20fc0c92bc9df48137d170756fd7b/ADD_NEW_DATASET.md#L49-L54 There is no upstream branch on remote. ~~What difference is there with the default `origin` remote that is set when you clone the repo?~~ I've just understood that this applies to **forks** of the repo 🤡
[ -0.1526435763, -0.3908179402, -0.0568684936, -0.3803965151, -0.0535283312, -0.1234397143, 0.3151806891, -0.002233498, -0.3539058864, 0.2694294453, -0.0092936307, -0.046628058, 0.3955131471, 0.2351269126, 0.2467385978, -0.0680184066, 0.3274164796, -0.1903981566, 0.2409148216, -0.7290988564, -0.2180363983, -0.0492808446, 0.1212639287, -0.2099990994, -0.146539256, 0.2308080196, 0.0482760444, 0.1814906895, -0.2902171016, -0.3672442436, 0.453820914, 0.061785765, 0.0159861911, 0.453631103, -0.000121437, -0.0352861024, 0.427477181, 0.0357965678, -0.26102826, -0.1529753506, -0.5940439105, -0.2314037234, 0.0071181292, 0.0715084746, -0.0290648304, 0.180494532, 0.229071632, -0.1103388742, 0.0469166711, 0.1295334399, 0.1420780569, 0.1913971901, 0.0362159722, -0.3778529763, 0.2821258903, 0.4759958386, -0.2266929746, 0.8752227426, 0.2417100817, 0.503021121, 0.1716817319, -0.0652811974, 0.1075375155, 0.0430664383, -0.037370719, 0.102973178, 0.174999848, -0.1549441218, 0.1622278839, 0.4301557541, 0.7702748179, 0.2360708416, -0.4754007161, 0.0212697182, -0.0125341807, -0.3896001875, -0.0593700409, 0.3834993541, 0.0646640584, 0.0951503292, -0.197941497, -0.3189464211, -0.3143384457, 0.2806483209, -0.0658182874, 0.4146605134, -0.1366890371, 0.0840011835, -0.0252128672, 0.2557759285, -0.1660639495, 0.0732251406, -0.2152941078, -0.119066745, 0.0150897596, -0.175996542, 0.0897788405, 0.0872923881, 0.0718121305, 0.5886428952, -0.3382129669, -0.124490194, -0.2546326816, 0.0834159628, 0.1628780961, -0.0049647572, 0.0689397678, 0.1233231574, 0.3434394002, -0.184435755, 0.3132756054, -0.1580082029, 0.0624263734, 0.1461665779, -0.2167898417, -0.1568915844, 0.3482616246, -0.4060589671, 0.2222378403, -0.1124551371, -0.1277004629, -0.2261947244, -0.1769111007, -0.0030165929, 0.054189302, 0.1421897113, -0.4768749774, 0.2858994603, -0.1810344756, -0.1608570069, -0.2593809962, -0.10990078, -0.1611193269, -0.0340507776, -0.0575045198, -0.4412370622, 0.4918143749, 0.1535721123, 0.2645315826, 0.3689872921, -0.1172591671, 0.0552310683, 0.0956316739, 0.3831591606, -0.1270997673, 0.0321266726, -0.1134602055, 0.1048269048, -0.1427422762, -0.0269446261, -0.1989970654, -0.4819028974, -0.2253119051, 0.0954172537, -0.2828344405, -0.2053878903, -0.6288796663, 0.1489578933, -0.3456098437, -0.0665436536, 0.3376176059, 0.150941819, -0.0143866185, -0.178039968, 0.0957164094, 0.408688128, -0.0168421939, -0.2962556779, -0.1248486638, -0.1975782067, -0.0173991211, 0.2092629224, -0.3593125343, -0.0457934253, 0.0538109764, -0.0989738926, 0.0449750274, -0.4179222584, -0.1543738246, 0.0906203985, -0.2368868142, -0.2399968654, 0.0398535989, 0.0818398371, 0.2099034637, -0.1554739028, -0.1764332503, 0.039169319, -0.2171975523, -0.2206082195, -0.1783545166, -0.0482928716, -0.3847342134, 0.1111885458, 0.0142516103, 0.117351748, 0.3190359771, -0.1395799965, -0.234885186, 0.0622809418, -0.131576553, 0.1852907538, 0.7095391154, -0.0590319969, -0.1003814712, 0.2234234959, -0.5277829766, 0.1685787141, 0.1947850287, 0.2524721026, 0.3422011137, -0.0094506592, 0.0755965263, -0.0866310745, -0.1810857952, -0.1649612188, -0.0894195437, 0.2465167791, 0.2977790833, 0.1671321392, -0.5274184346, 0.0090600355, -0.2239989936, 0.1525299698, -0.4646697342, 0.2709394395, -0.0408056118, 0.1490147263, -0.246718511, 0.0117417844, -0.0781422257, -0.267085135, 0.0479296073, 0.2713978589, -0.1804292351, 0.4189500809, 0.4851282537, 0.2931009829, 0.3441981077, -0.2479105145, 0.1567439139, -0.0440134667, -0.1111494526, 0.1980710328, -0.2691899836, 0.0970354453, 0.1809616834, -0.0314298831, 0.1452762932, -0.1158268303, 0.2320698351, 0.0150042176, -0.104176268, -0.3393947482, 0.0519044511, 0.2170081884, 0.2867293358, -0.0579627752, -0.1593399346, 0.3818156421, 0.0962780342, -0.57216084, -0.2647397518, 0.227771014, 0.0936384872, -0.2030420601, 0.1316752732, 0.5656306744, 0.3525887728, 0.1717998832, 0.2733197808, 0.1977957785, 0.0986279473, -0.4801005423, 0.1898613423, -0.0167465806, -0.126750648, -0.00970414, 0.1698029339, -0.0199275743, -0.1559549272, 0.0612973832, 0.0982962623, 0.2183146477, 0.126935944, 0.0965894684, -0.3688341975, -0.1766266227, -0.3448286951, -0.2950822413, -0.5318109989, -0.334975481, -0.0198538024, 0.0183211379, -0.0965118483, -0.0817904845, 0.1770531386, 0.1709256321, -0.4175531566, 0.0343735851, -0.0304645766, -0.3974840939, -0.10179241, 0.0360547751, -0.1647346169, -0.0609868355, 0.5170276165, -0.4658836424, -0.169150129, -0.403530091, -0.5375565886, 0.1256888062, 0.0598179027, 0.1879416555, 0.1697303653, 0.189993754, 0.0890596509, 0.0315885507, 0.1639562696, -0.2339728922, -0.2296449691, -0.2627094686, -0.2379183322, -0.1141398698, -0.0046674102, -0.4012680054, -0.1181754097, -0.2007206231, 0.4642681181, -0.1780481786, 0.0379760079, 0.2009672821, -0.1617177129, -0.0656946748, -0.2549100518, 0.0839421749, -0.1440755576, -0.5398854613, 0.0550481565, -0.2148227096, -0.1005779207, 0.3010263443, 0.0545758419, 0.2800723016, 0.0477071814, -0.5282683969, -0.0100661926, -0.1690360457, 0.3068679869, 0.5019600987, 0.3753700554, 0.5677354336, -0.4530458748, -0.0075602336, 0.0147910928, -0.300311476, 0.0370481052, 0.2082601637, 0.1650032401, -0.0484849922, 0.4850200117, -0.2723745108, 0.7536581159, -0.1300550103, 0.0822995678, -0.0404145084, 0.0084380787, 0.513918817, -0.407974869, -0.0811411291, 0.2301472425, 0.1241425723, -0.0654327646, 0.0256670769, 0.3337321877, -0.0201795083, -0.1728774905, -0.5013917685, 0.0714675784, -0.1127293333, -0.0697222501, -0.068746388, 0.128331542, 0.1590296179, -0.1638228446, -0.0739357695, 0.0784247518, -0.2701804042, 0.4493612051, 0.199980557, -0.0080487654, -0.5328275561, -0.1079107672, -0.1444196403, 0.0893223211, 0.1260148585, -0.0015053832, -0.0078389263, -0.1675854325, 0.1276486665, -0.0504659377, 0.0177274868, -0.304556787, -0.1077797934, -0.2122401297, -0.4268776178, -0.0055090375, -0.1225962937, 0.0550627001, 0.1536025703, 0.4221285582, 0.2055981755, -0.2968250811, -0.2599084079, 0.4703330994, 0.0919472352, -0.0268707294, 0.1649601161, -0.3371909857, -0.016204631, -0.1141688004, -0.0482301936, -0.3885566294, -0.3450285792, -0.0113602821, 0.2983249426, 0.0268266611, 0.1325590014, -0.2346943915, 0.08127103, -0.1878332645, -0.0034688907, 0.0483656563, 0.2260611951, 0.164779067, 0.5362100601, 0.6573821902, -0.1838728338, -0.2224895805, 0.0636856556, -0.0694221854, 0.2016166151, 0.444896847, 0.4241686463, 0.2504866421, 0.3098898232, -0.0499738269, 0.0536903143, -0.0254459605, 0.0795238763, 0.1270528883, -0.2192230225, -0.3969985545, 0.4532273114, -0.2484355718, 0.0308033675, 0.2647315562, 0.6452971697, 0.2309071124, -0.1614714712, -0.1040884703, 0.8261780143, 0.4181174934, 0.2513291836, 0.3437061906, -0.298166275, 0.4382248819, -0.0093541099, 0.0064924955, -0.0554457605, 0.1779251546, -0.0186349954, -0.1022794098, -0.0757014304, -0.1465043128, 0.2845980525, 0.1853842437, 0.0716182441, 0.7963954806, 0.1774624288, 0.1313204169, 0.2925502062, 0.1426705867, -0.206241399, 0.0773947239, -0.0784638971, 0.1466265768, -0.1534092128, -0.1197253019, -0.1770541221, -0.1667885929, -0.2664335668, -0.0546398386, 0.3031916022, 0.0117740892, 0.2971505523, -0.5078320503, -0.1206816658, -0.245791167, 0.694974184, -0.0030186696, -0.1307380646, 0.0745630115, 0.1353506148, -0.0212776139, 0.2675533295, -0.115691565, 0.0138349496, -0.2264951169, -0.5466220975, -0.060535863, -0.0539433286, -0.5696591735, -0.1581393033, 0.0199405309, -0.3625678122, 0.0265285559, 0.0525797233, 0.4546355009, -0.0310121346, -0.1170664951, 0.0229263976, 0.1107151732, -0.1056673154, -0.3512169719, 0.0517787747, -0.1526307613, -0.3998309076, 0.3213110566, -0.0364834666, -0.2209535092, 0.0265420526, -0.0800676048, -0.1310897321, -0.0811287835, 0.0451734662, 0.3683875799, -0.744109273, 0.0638630837, -0.174902454, 0.0116591519, 0.2676517367, -0.0153751466, 0.0099123204, 0.0528793074, -0.1558085829, -0.0123556182, -0.1575998962, 0.2336531579, -0.3643552363, 0.0906213373, 0.1775605977, -0.3076356649, 0.161383763, -0.0623825714, -0.226440385, 0.1388542354, 0.0980681926, 0.2257530093, 0.1407099217, -0.0913137943, 0.2690131366, -0.3536027968, -0.0267342273, -0.3960963488, -0.2725753188, -0.1162829399, -0.2229145765, 0.1896710545, -0.0910484567, -0.2563005984, 0.1080815345, -0.1417183429, -0.1377776414, 0.2155239284, 0.2188665718, 0.2175673544, 0.0644466951, 0.0149092982, 0.2243242711, 0.0360609628, -0.1561956257, 0.1475899369, 0.2517767549, 0.3375068307, -0.0272804033, 0.0907969326, -0.1516245008, -0.1514415741, -0.2205789238, 0.1333148777, -0.132207647, 0.1608873159, 0.1646529287, -0.0180423558, 0.2100681961, -0.2077447921, 0.2365709096, 0.1006642506, 0.0847126544, 0.0704977065, 0.1816994101, 0.111027889, -0.0214971956, -0.1847310364, 0.3753151894, 0.2301632911, 0.0468969569, 0.3382748365, 0.4278501868, 0.0108202882, 0.4604397714, 0.1821477413, 0.0776312798, -0.0883549303, 0.6449830532, 0.5471996665, 0.0260920022, 0.2726811171, 0.0170386527, 0.2292095572, 0.0071518654, -0.0280059781, -0.0036747402, 0.1594764739, 0.2348790765, 0.0022365393, 0.3667230904, -0.0272775777, -0.0535838157, -0.0611047707, 0.1047350094, -0.1418789774, 0.2086807787, 0.2416003048, -0.0101768542, -0.0855588838, -0.2205318809, 0.1717695147, 0.0124135073, -0.2053411752, -0.3689613342, 0.0545768104, 0.2000614405, 0.200426966, -0.1807768941, -0.202713266, 0.1707306206, 0.0611331388, -0.1006785482, -0.0421070419, 0.2687458992, -0.2398386747, 0.1068273932, 0.262280196, 0.2268814445, 0.4346133769, -0.32862252, 0.2640410364, 0.4957015216, 0.1793233156, 0.0315489098, 0.3371672034, 0.3460938931, 0.3019026816, -0.1499712318, 0.1991124004, 0.2072296143, 0.0444980189, 0.1712988615, -0.1347507238, 0.1457041055, 0.0161222182, 0.5959377885, -0.0484440811, 0.0492676608, -0.1122322977, 0.4181312919, -0.0545023568, 0.1122144088, -0.2390366346, 0.3924509883, -0.2974778414, 0.259819001, 0.1190327108, 0.0362643749, -0.233535096, -0.0534402542, 0.0490713567, 0.0111986669, 0.5582718849, 0.4555207789, 0.0861453116, -0.0428804681, -0.1485632509, 0.0097040348, -0.0047381776, -0.2231496572, 0.0895552859, -0.1604519039, 0.0750757009, 0.0948000774, 0.2105304599, -0.0350966677, -0.120627746, -0.1463162452, 0.0992912948, 0.1164443567, -0.2136071622, 0.0344920754, -0.0069064717, -0.1713659316, 0.0482468642, 0.0996370539, 0.0567172281, -0.100789994, 0.1701203883, 0.1624995619, 0.1479489356, -0.1819942743, -0.2239579558, 0.194197014, 0.1853149831, 0.1380942315, -0.3846309185, -0.2508636415, -0.1912686378, -0.4125626385, 0.2045009881, -0.2136580348, 0.3190739751, -0.0883171335, -0.1272103786, -0.1603961736, 0.0490937978, 0.0788585097, 0.2051477432, -0.1112897545, -0.0165232141, -0.0758931488, -0.3586301208, 0.259753406, 0.0315919891, 0.014924475, -0.1502950788, -0.3193618953, 0.0743469447, 0.4109393358, -0.3343663514, 0.3913286924, -0.3347206414, 0.0273353234, 0.5880266428, -0.1575363427, -0.498950839, 0.1742943972, 0.1900555789, -0.1772025526, -0.3052072823, 0.3734642863, -0.0330674574, -0.305296123, -0.0091744661, 0.4189296365, 0.1355578452, -0.4480021, 0.0181251764, -0.0638758019 ]
https://github.com/huggingface/datasets/issues/2010
Local testing fails
I'm not able to reproduce on my side. Can you provide the full stacktrace please ? What version of `python` and `dill` do you have ? Which OS are you using ?
I'm following the CI setup as described in https://github.com/huggingface/datasets/blob/8eee4fa9e133fe873a7993ba746d32ca2b687551/.circleci/config.yml#L16-L19 in a new conda environment, at commit https://github.com/huggingface/datasets/commit/4de6dbf84e93dad97e1000120d6628c88954e5d4 and getting ``` FAILED tests/test_caching.py::RecurseDumpTest::test_dump_ipython_function - TypeError: an integer is required (got type bytes) 1 failed, 2321 passed, 5109 skipped, 10 warnings in 124.32s (0:02:04) ``` Seems like a discrepancy with CI, perhaps a lib version that's not controlled? Tried with `pyarrow=={1.0.0,0.17.1,2.0.0}`
32
Local testing fails I'm following the CI setup as described in https://github.com/huggingface/datasets/blob/8eee4fa9e133fe873a7993ba746d32ca2b687551/.circleci/config.yml#L16-L19 in a new conda environment, at commit https://github.com/huggingface/datasets/commit/4de6dbf84e93dad97e1000120d6628c88954e5d4 and getting ``` FAILED tests/test_caching.py::RecurseDumpTest::test_dump_ipython_function - TypeError: an integer is required (got type bytes) 1 failed, 2321 passed, 5109 skipped, 10 warnings in 124.32s (0:02:04) ``` Seems like a discrepancy with CI, perhaps a lib version that's not controlled? Tried with `pyarrow=={1.0.0,0.17.1,2.0.0}` I'm not able to reproduce on my side. Can you provide the full stacktrace please ? What version of `python` and `dill` do you have ? Which OS are you using ?
[ -0.1566001028, 0.0945400521, 0.0029506723, 0.0519756861, -0.1364505738, -0.2591091096, 0.4086019695, 0.2240648717, -0.1059592143, 0.2676887214, -0.0058871666, 0.0788333043, -0.1537663192, 0.5032164454, -0.2350833565, 0.1064348742, 0.0292591713, 0.1519075334, -0.2006690502, 0.0791206658, -0.0376023836, 0.2799378932, -0.2265825123, -0.044777371, -0.3562316, -0.0341933742, -0.2187786847, 0.189617902, -0.1608967185, -0.3254472911, 0.6411886215, 0.0324769467, 0.0277300775, 0.7641421556, -0.0001287132, 0.039347142, 0.4674041569, -0.1851540655, -0.3570637405, -0.2890093625, 0.3520761728, -0.0747951493, 0.4789135456, -0.1217305362, -0.0535694472, 0.3681682646, -0.3571667969, -0.2829229236, 0.3377828002, 0.296361357, 0.0819579288, 0.5929397345, -0.1577760428, -0.0510140769, -0.0935966298, 0.6183968186, -0.2803870142, 0.6484384537, 0.4351873994, -0.1534272432, -0.1185106859, -0.0808704346, 0.1125621423, 0.1081115305, -0.1265400797, 0.0491171591, -0.1212578565, -0.2817673087, 0.1882838905, -0.0434965789, 0.4278690815, -0.3348487318, -0.3669344783, 0.2918595076, -0.1322662979, -0.3039438128, 0.4314472675, -0.0946970358, -0.4797498882, 0.2464617938, -0.5746462345, 0.1803813875, -0.0959846079, 0.1889843643, -0.3290426731, 0.0139240948, -0.0037791622, 0.0756979436, -0.08330971, -0.0759191588, 0.0775504112, 0.218075484, 0.1124903262, 0.2105470896, 0.019204013, -0.1825949848, 0.0042885523, 0.2666111588, 0.2472051531, 0.4240630567, -0.1824768186, -0.1225748435, 0.0941484272, 0.1986427754, 0.0297926404, 0.414953202, 0.1767903119, 0.3287168443, 0.4472736716, -0.0314274877, -0.0349339321, 0.2139811218, 0.2701266706, -0.2194719315, 0.0874326974, -0.0599675104, 0.1236561909, -0.4884464741, -0.2430207133, 0.3342879713, -0.2255839109, 0.0130310757, 0.2921376824, 0.237573877, 0.0871113837, 0.1962379068, 0.1621372849, 0.4079701006, -0.1178595275, 0.3706066608, -0.1039629132, -0.1124637201, -0.1322609484, 0.1903433502, 0.5385650992, -0.047180362, 0.4167149365, -0.0070275883, 0.5418528318, -0.0736426115, 0.0300185084, -0.0224936251, 0.1987534314, 0.5158852935, -0.2314247787, -0.0430947132, 0.2318387926, -0.1680152714, -0.2934476137, 0.1876371652, -0.0365538597, -0.3601263463, -0.1811520457, -0.0328330658, -0.2402830571, 0.0049480121, 0.4045208693, -0.4238609374, 0.1729896814, 0.0157311913, 0.0126333162, -0.2405939698, 0.0043094037, 0.0955926627, 0.3255245984, 0.5624176264, -0.1283844113, -0.0405454971, 0.0909309983, 0.0560347848, 0.3275011182, 0.3229973912, -0.2174920142, -0.0797660276, -0.1228104532, -0.1518612653, 0.3863776624, -0.5328124166, -0.2762473226, 0.3100042939, 0.128928557, -0.1696590036, -0.1427440792, -0.2081098258, 0.1203557998, 0.1268338412, 0.3403027654, 0.0339693986, -0.1404902488, -0.0252437498, -0.3712668419, -0.2300165594, 0.0015916094, 0.0133341998, 0.0256104693, 0.1600130051, 0.1667645276, -0.4279125333, 0.1311002076, -0.0518473424, -0.1038101315, 0.0527335778, 0.4886048138, -0.4241816401, 0.0636517182, 0.2276825458, -0.1836990565, 0.3035300076, -0.0784524828, 0.3136446476, -0.1373227388, -0.0588413365, -0.5334231853, 0.4065413475, -0.0188786276, -0.1267280728, -0.1220248714, 0.0448225066, 0.3527236581, 0.1135552377, -0.1742254645, 0.0604520105, -0.1182364672, 0.1045239046, 0.3406916261, -0.019402856, -0.4063435495, -0.401393801, -0.1491000503, -0.0286079068, 0.0115146032, -0.2519135177, -0.3854122758, 0.2479814887, 0.0569711663, -0.2244201452, 0.2305823565, 0.0816854388, 0.2954339087, -0.0162091982, 0.0367699414, 0.0003969271, -0.184922114, -0.0339139551, 0.0098307738, 0.3970497251, -0.0316923782, 0.1699819714, -0.1750231385, 0.144120127, 0.4002425075, 0.0310116112, -0.1585003287, -0.273660779, 0.3045324981, -0.0049120253, 0.5264108181, 0.0516449921, -0.1131984293, -0.0198905058, -0.237844795, -0.1569036245, 0.0667516813, 0.3204012215, 0.2629228532, -0.0134877767, 0.2638954222, 0.0033948128, 0.5038725138, -0.1240242645, 0.1816551387, 0.1384319961, -0.2771655023, -0.3122506142, 0.0401484258, -0.1818047911, -0.0960172191, 0.2377834618, 0.2507986724, -0.0702296048, -0.2175701559, -0.2124916315, -0.1106224135, 0.3328879476, -0.2270732969, 0.2456763685, -0.1492203027, 0.1999559104, -0.1773368716, -0.219843328, -0.1061057672, -0.2637877166, -0.0378567949, 0.2395730913, -0.0407092199, 0.2350499183, -0.317192018, 0.4599714875, 0.1577052027, -0.6352956295, -0.2629725039, -0.1444388181, -0.3395793438, -0.0776634812, 0.3256197572, -0.3727456331, 0.1843810081, -0.4821204841, 0.0123678809, 0.1615031213, -0.473143965, 0.2949296534, 0.1354276389, 0.5952253342, -0.0459186547, 0.1508335173, -0.1922259927, -0.3344004452, 0.4108144641, -0.3192223608, -0.3365819454, 0.0547791794, 0.0072664102, -0.1681361347, -0.5058831573, -0.3063289821, -0.3148085475, -0.0533498041, 0.1918009371, 0.0501124412, 0.1443277597, 0.3339986503, 0.410150528, -0.0044366689, 0.2073385417, 0.0507002585, -0.0100288326, -0.4861392975, 0.2371550053, -0.3061429858, -0.3615092635, -0.1987362355, -0.0529228263, 0.38456738, 0.184077695, -0.558275342, -0.2909577787, -0.1777921468, 0.454624027, 0.1030156463, -0.0468171276, 0.2920677662, 0.0422038659, 0.0365010649, -0.027070282, -0.3199701905, 0.2881190181, 0.0237830319, 0.3060826063, -0.0239142664, 0.1803097278, -0.0305549279, 0.7351321578, 0.1958529949, -0.2408497483, 0.3919065893, 0.1805095524, 0.3743955791, -0.4311835766, -0.2628126442, 0.2902445197, 0.0368957892, -0.4468598068, 0.0280937292, 0.03275197, -0.7290300131, -0.2692884207, 0.0021751954, -0.188821882, -0.2501923442, 0.2722436786, -0.2999301553, 0.3638343811, -0.0839750543, 0.0755895525, -0.071091488, -0.0229980387, 0.0046497053, 0.2835949957, -0.0393831767, 0.0536704734, -0.1316985935, -0.4243861735, -0.4543824792, 0.2604157925, 0.1815053821, 0.7051233053, -0.3466793001, -0.2844627202, 0.0826715156, -0.012800293, 0.1547459364, 0.1888167858, -0.2712614536, 0.243953675, -0.3359610736, -0.4482180178, -0.2516499162, 0.037088614, 0.3414699435, 0.1930963397, 0.4407696724, 0.0702778473, -0.0986779779, 0.1657221019, 0.1349696815, 0.0760147795, -0.0748341754, -0.3867754638, -0.4530235827, -0.3725793064, 0.3067517877, -0.0564754717, 0.1185483858, -0.1779237986, 0.0036997607, 0.17224738, -0.021883348, -0.0572839119, 0.3491226435, 0.0232073367, -0.1563137025, 0.0927617103, -0.0239243526, 0.1609333605, 0.0487535335, 0.107448861, -0.0694212168, 0.2719093859, 0.2726916373, -0.0642964616, 0.0035999015, 0.4597558379, -0.0078350222, -0.261193037, -0.0098295938, -0.091117315, -0.169831425, 0.2874848843, -0.0188484099, -0.0519397035, -0.0542289764, 0.2032806575, -0.0349706225, 0.0481024347, -0.0859209076, 0.4281371236, -0.0671040267, 0.0126871476, 0.2742474377, 0.1784004271, 0.976003468, -0.0434487835, 0.0564653948, 0.1795068234, 0.021545995, -0.2822628617, 0.2678413391, -0.0515396446, -0.1963823438, 0.2389209121, 0.0208766535, -0.3305761814, 0.2563523948, -0.1427588612, -0.2644149363, 0.0721641406, -0.4716960788, 0.2073219121, 0.0974568427, -0.0784893334, -0.3223832548, 0.0074123065, 0.0452969261, 0.092640534, 0.1155735701, 0.6465580463, -0.1674463153, 0.1042682678, -0.458901912, -0.3181269169, -0.337245822, -0.0750410035, -0.3058597147, 0.1702498794, 0.433804065, -0.6257214546, -0.1260722727, 0.2802776098, 0.504113555, 0.2558198571, -0.3557370603, -0.0234594177, -0.2054351121, 0.0840066895, 0.4423811436, -0.1081314161, 0.1212272868, -0.1389624029, -0.3716507554, -0.2003158927, -0.1685026139, -0.322439611, 0.3863139451, 0.1003363356, -0.0086442856, -0.2109422237, 0.2304943353, -0.1333602369, -0.0340410471, -0.0159158632, 0.0460457802, 0.0832817331, 0.0604304001, 0.3773469627, -0.0958931297, -0.1846660078, -0.1365640461, 0.0956186354, -0.0383094586, -0.1852357984, 0.3123599291, -0.0822097436, -0.0399585962, -0.0955227986, 0.1017744169, -0.3029926419, -0.1660039425, 0.0567770489, -0.1600360423, -0.3582679927, -0.2082922906, 0.5189056993, 0.3025404811, 0.2123359591, 0.0068275901, -0.1937336624, -0.6883789897, 0.1580586433, 0.1393261105, 0.233479768, -0.0501986295, 0.3976532221, 0.095595099, -0.0819225833, -0.1154661253, -0.0777930096, -0.4233615696, 0.0948057175, 0.091069214, -0.187559396, 0.3472158909, -0.1100245938, -0.0526948981, 0.0446530208, 0.0246985275, -0.0928223133, -0.045376651, 0.1755246222, 0.020619614, -0.3655264378, 0.1706087887, -0.0415365882, 0.1199660599, -0.1534404308, -0.0975071341, -0.0371738784, -0.0049483771, -0.0805911198, -0.2490548193, 0.1680927128, -0.0559435189, 0.1664373726, 0.0213863067, 0.3151867986, -0.0494110845, 0.1104306728, 0.0149668567, -0.1250573695, 0.1689386219, 0.2227520049, -0.2050155103, 0.0805272684, 0.0157677643, -0.1730947196, -0.0178683382, -0.0220934004, 0.4400378466, 0.0800028667, -0.1780277342, 0.1011362523, 0.4403357804, 0.0641917735, -0.0180316865, -0.0614108108, 0.1983543485, 0.1625595242, -0.0008155635, 0.4802033305, 0.0641891584, -0.3462337255, 0.4527822137, -0.0038472379, 0.1812498868, -0.0662144199, -0.0012354598, -0.0291391667, -0.0532600656, 0.3174807727, 0.1411479712, -0.1872005165, 0.1661784798, -0.0876658186, -0.0936507285, -0.0932968259, -0.2477649301, 0.2596849501, 0.0540899299, -0.1713438481, 0.249929741, -0.3742426038, 0.1550909728, -0.0024953764, -0.1267189682, 0.6321112514, -0.4966107011, -0.3118754625, -0.3651082814, -0.0407323092, -0.109122932, -0.123301439, -0.2257377952, -0.0633396059, 0.147543028, 0.0406722799, 0.0131588019, 0.1704792827, 0.260825783, 0.1169240326, -0.2754313946, -0.4348380268, -0.0534834228, 0.1039652005, 0.087529473, -0.0200050175, 0.5283893347, 0.2062072903, -0.2827415466, -0.2568256557, 0.4794694483, 0.5924417377, 0.3914434612, 0.0883469209, -0.2070689648, -0.2208627015, 0.0311343707, -0.3435670733, 0.2105429322, 0.1387038827, -0.0917731971, 0.0225522723, 0.0210672449, -0.0827917606, 0.0328724347, -0.1348566264, 0.1390835345, -0.0759688169, 0.3264750242, -0.0253340155, 0.043501433, 0.0243979376, 0.1339570433, -0.2487523705, 0.3929111362, 0.0833411738, 0.0035570634, 0.1769814044, 0.0438135751, -0.0130078355, -0.0683164299, 0.4770765007, 0.3794434667, 0.3073866367, -0.2329623699, -0.2339462638, -0.1714247614, 0.1797961891, 0.1334395558, 0.3775703013, -0.077767618, 0.1723692119, 0.1474081427, 0.1493647397, 0.0007751787, -0.2288632989, 0.0070789438, -0.0403419696, -0.2509399354, 0.0798592344, -0.5340791941, -0.1518707573, 0.0936041251, -0.3492439687, 0.3774879575, -0.2518042624, -0.0802711025, 0.0140889855, -0.2566491663, 0.1946000159, -0.0269124974, 0.2261866331, 0.3685010374, 0.4666382968, 0.1896947473, -0.2133909911, -0.1679933369, -0.3907409608, 0.1059955284, 0.0457644276, -0.2344071716, 0.2104588896, -0.2749533057, -0.034455698, -0.183784917, 0.4403215647, 0.1964017302, -0.2830714285, 0.3341467381, -0.1689450145, -0.2094665319, -0.1900047213, 0.1234176159, 0.4776776433, -0.0616323091, 0.2371269017, -0.2827215493, -0.1846238524, 0.5225760341, -0.2278446257, -0.015275537, -0.0748446807, -0.02446815, -0.1231947616, -0.0727068707, -0.3173841834, -0.1097043604, -0.0619612038, -0.1095768213, -0.4085152149, 0.3154996932, 0.2680284679, -0.0570440218, -0.0413176641, 0.5945866108, -0.1424863338, 0.0122228106, -0.0042417422, -0.0761352554 ]
https://github.com/huggingface/datasets/issues/2010
Local testing fails
``` co_filename = '<ipython-input-2-e0383a102aae>', returned_obj = [0] def create_ipython_func(co_filename, returned_obj): def func(): return returned_obj code = func.__code__ > code = CodeType(*[getattr(code, k) if k != "co_filename" else co_filename for k in code_args]) E TypeError: an integer is required (got type bytes) tests/test_caching.py:152: TypeError ``` Python 3.8.8 dill==0.3.1.1
I'm following the CI setup as described in https://github.com/huggingface/datasets/blob/8eee4fa9e133fe873a7993ba746d32ca2b687551/.circleci/config.yml#L16-L19 in a new conda environment, at commit https://github.com/huggingface/datasets/commit/4de6dbf84e93dad97e1000120d6628c88954e5d4 and getting ``` FAILED tests/test_caching.py::RecurseDumpTest::test_dump_ipython_function - TypeError: an integer is required (got type bytes) 1 failed, 2321 passed, 5109 skipped, 10 warnings in 124.32s (0:02:04) ``` Seems like a discrepancy with CI, perhaps a lib version that's not controlled? Tried with `pyarrow=={1.0.0,0.17.1,2.0.0}`
47
Local testing fails I'm following the CI setup as described in https://github.com/huggingface/datasets/blob/8eee4fa9e133fe873a7993ba746d32ca2b687551/.circleci/config.yml#L16-L19 in a new conda environment, at commit https://github.com/huggingface/datasets/commit/4de6dbf84e93dad97e1000120d6628c88954e5d4 and getting ``` FAILED tests/test_caching.py::RecurseDumpTest::test_dump_ipython_function - TypeError: an integer is required (got type bytes) 1 failed, 2321 passed, 5109 skipped, 10 warnings in 124.32s (0:02:04) ``` Seems like a discrepancy with CI, perhaps a lib version that's not controlled? Tried with `pyarrow=={1.0.0,0.17.1,2.0.0}` ``` co_filename = '<ipython-input-2-e0383a102aae>', returned_obj = [0] def create_ipython_func(co_filename, returned_obj): def func(): return returned_obj code = func.__code__ > code = CodeType(*[getattr(code, k) if k != "co_filename" else co_filename for k in code_args]) E TypeError: an integer is required (got type bytes) tests/test_caching.py:152: TypeError ``` Python 3.8.8 dill==0.3.1.1
[ -0.1595423967, 0.0836865157, 0.0080742138, 0.0541946329, -0.0605915748, -0.253282249, 0.432231307, 0.321085602, 0.0665907636, 0.2115700543, -0.0241567474, 0.1039156392, -0.1923718899, 0.4951998889, -0.2158737332, 0.1359182149, 0.0552796684, 0.1934275925, -0.1318419129, 0.0838604346, -0.0959663317, 0.2499604821, -0.2564116418, -0.0410429239, -0.3022980392, -0.0245996621, -0.1487212479, 0.1830327064, -0.182666406, -0.360329479, 0.6797198653, 0.0199893378, -0.0009317284, 0.6896494031, -0.00012576, 0.0270793308, 0.5052762628, -0.1809414327, -0.4039549828, -0.3320508003, 0.1519884467, 0.0037364112, 0.3448630571, -0.1304057986, -0.0594432019, 0.4255079925, -0.2692724466, -0.3886938095, 0.2537176609, 0.3457770348, 0.0861626565, 0.6625930071, -0.1529202163, -0.0738564506, -0.0913387686, 0.7564922571, -0.2964873314, 0.6160545945, 0.3982497752, -0.1529932022, -0.0890130475, -0.0370632075, 0.1238623932, 0.2078799903, -0.1936955154, 0.1046224013, -0.1856213212, -0.31240955, 0.1273617297, -0.0407238305, 0.3077146113, -0.2930814922, -0.4210141003, 0.2640117705, -0.1962426901, -0.4216318429, 0.4477263093, -0.032106135, -0.5543992519, 0.1441134661, -0.6164289713, 0.3599106073, -0.0956344306, 0.1937020123, -0.2613511384, -0.0860237107, -0.1219524592, 0.1039444655, -0.0689689517, -0.1067536846, -0.0950207412, 0.1158438995, 0.0893239826, 0.2673542798, 0.0417058542, -0.2120663971, 0.074566029, 0.2886241674, 0.1956858337, 0.4594942629, -0.2210510373, -0.0970080122, 0.0751854107, 0.1858525872, 0.0422292911, 0.3725649118, 0.1567060202, 0.3691079021, 0.4090418816, 0.0981972143, -0.1236695796, 0.1423251927, 0.2234023213, -0.2243603915, 0.1463968307, 0.0168845393, 0.1898581237, -0.4522970021, -0.2817614675, 0.3050577641, -0.157292366, 0.0335101783, 0.3083816767, 0.2298792005, 0.0924798921, 0.1790275723, 0.1544674188, 0.3162521422, -0.2177806944, 0.2494846135, -0.0718298703, -0.092837669, -0.1575594246, 0.2292730659, 0.5492324233, 0.0396380238, 0.4059885144, 0.0170021672, 0.5969013572, -0.0530273356, 0.0845729634, -0.0820263475, 0.2296275198, 0.4612743855, -0.262329787, 0.0007761167, 0.2538805604, -0.1570123881, -0.3096916974, 0.0716575235, 0.0254914388, -0.3389892876, -0.1903702617, -0.0041226279, -0.2362703383, 0.044088684, 0.306296438, -0.4115739167, 0.2350120693, -0.0339254439, 0.0666699409, -0.297963053, 0.033408571, 0.0907241851, 0.29403162, 0.5816890001, 0.0320193432, -0.0587129407, 0.0872224346, 0.1703664958, 0.3222624063, 0.3197822571, -0.2711986601, -0.0801073387, -0.2009895444, -0.2122241706, 0.4604292512, -0.5281281471, -0.2205272764, 0.3383584023, 0.1630101055, -0.0469933897, -0.0240375847, -0.1779368371, 0.1230153814, 0.0250452198, 0.3560112715, 0.0201155376, -0.1439756751, -0.0507276133, -0.3050992787, -0.2096914053, -0.032652773, -0.0520013161, -0.0125010023, 0.147821784, 0.1682518125, -0.3553975523, 0.1316869706, -0.0926361755, -0.1003680825, -0.0265649837, 0.4984477162, -0.4364663363, -0.0033530546, 0.1779425889, -0.1466666609, 0.3157602847, -0.0652014911, 0.3325461447, -0.1267912835, -0.0786098614, -0.4938026369, 0.3182771206, -0.0920937285, -0.141662702, -0.0879945606, 0.135008812, 0.3590695262, 0.1158087775, -0.2030636519, 0.197677806, -0.167430684, 0.0674082562, 0.1798961759, -0.1173201054, -0.331875205, -0.3938656151, -0.175616309, -0.0437939279, -0.0576129071, -0.2317658216, -0.3719637096, 0.2077534199, 0.0961105302, -0.165980041, 0.1020837352, 0.0658374205, 0.2748293579, 0.0711641908, 0.0056704655, 0.013898625, -0.1340230852, 0.0324421972, -0.0586632788, 0.503277421, 0.0161019918, 0.1436363161, -0.1191538125, 0.0993642956, 0.3589839637, 0.0462642312, -0.2223190963, -0.2488671541, 0.3026214242, 0.0815827101, 0.4269851148, 0.128200233, -0.1495227963, 0.0208277758, 0.0208049584, -0.1623551697, 0.0347994938, 0.265478313, 0.2746234536, -0.0285592657, 0.2743025422, -0.0487583838, 0.6123736501, -0.128835395, 0.1622855514, 0.0833442211, -0.2782637477, -0.2611789107, 0.0942930058, -0.1272591799, -0.1881009191, 0.1684153825, 0.2399554104, -0.0283270925, -0.2438028604, -0.2251516432, -0.1123572737, 0.2600668371, -0.3167211711, 0.3092108071, -0.1657239348, 0.1626483798, -0.2243665606, -0.194915086, 0.0339772739, -0.215632543, -0.1114062145, 0.3362270594, -0.042950727, 0.2492924035, -0.3598664403, 0.3789109886, 0.1270723194, -0.6568127275, -0.2761151195, -0.0493920371, -0.3580278754, -0.0783266723, 0.3884333074, -0.3923024833, 0.2230752707, -0.4847137332, -0.0083075706, 0.1642362177, -0.4976351857, 0.2448464781, 0.1052225679, 0.5596272945, 0.0088489689, 0.088656798, -0.2389028519, -0.4123894274, 0.4063135386, -0.2631423473, -0.3811519444, 0.0973346382, -0.0332762152, -0.2352033108, -0.5069957972, -0.3434544504, -0.264054358, -0.0690314248, 0.303787291, 0.0882629678, 0.1101687849, 0.4585250318, 0.408048898, -0.0020044565, 0.1282039136, 0.0467163846, -0.079156369, -0.5806208849, 0.2987906039, -0.3213187754, -0.3068712056, -0.2398097366, -0.1218189001, 0.4034664035, 0.2295229435, -0.4456577003, -0.1923153102, -0.1911015064, 0.4425346553, 0.1964615136, 0.0090472447, 0.2945615053, 0.0079890778, 0.0029950263, -0.017132489, -0.2513279021, 0.2703385651, 0.109745197, 0.3167891502, 0.0037347272, 0.2698606253, 0.0379686058, 0.6234939694, 0.3126417994, -0.237150535, 0.3645982444, 0.1278415471, 0.4174310565, -0.5137650967, -0.320594877, 0.3046324551, -0.0243827272, -0.4611194432, -0.0523285829, 0.0129066696, -0.6639069915, -0.1939107329, 0.0162185561, -0.126443848, -0.3065946698, 0.2799481153, -0.2277897, 0.3235548139, -0.0602761917, 0.0650712997, -0.1772481501, -0.0182547271, -0.0232359264, 0.2895423472, 0.0458126292, 0.0701255724, -0.0966769904, -0.3918626904, -0.4547607005, 0.2472248524, 0.2436320037, 0.6850363016, -0.2653806806, -0.2727938592, -0.0125283562, 0.0156397652, 0.0085443286, 0.238878563, -0.2327782214, 0.269061327, -0.3548617065, -0.4105353951, -0.2229920179, -0.0113191297, 0.4066482782, 0.1472589076, 0.4967995584, 0.0819323808, -0.1409921199, 0.263105303, 0.1353669167, 0.0555803441, 0.0363296829, -0.4470660985, -0.3837278485, -0.3355269134, 0.298820436, 0.059285026, 0.0493523106, -0.1205604374, -0.0057286145, 0.1324138939, -0.0191627238, 0.0592210069, 0.3717751205, -0.0319309272, -0.0958165228, 0.0943265781, -0.1094137132, 0.0194691531, -0.019199932, 0.1649529636, 0.0110498331, 0.0687095448, 0.2090963274, -0.041629754, 0.0180174559, 0.4032592177, -0.0849665552, -0.3252243996, -0.004623625, -0.0674572363, -0.2609463632, 0.3393782079, 0.0590506531, -0.0289672315, -0.1317609549, 0.1066784635, 0.0054078423, -0.0309333205, -0.0670479164, 0.5506901741, -0.0220201947, -0.0417804457, 0.226880461, 0.1652174592, 0.8252397776, 0.0644442812, 0.1021420211, 0.2496577948, 0.0548898838, -0.1910450757, 0.3437012732, 0.0162837896, -0.1306666136, 0.2628115714, 0.0059523601, -0.3169225454, 0.3387089074, -0.1293208599, -0.2476849556, 0.1091310084, -0.3752108514, 0.3533779681, 0.0685972273, -0.0344465822, -0.3180189431, -0.0550895296, -0.011091955, 0.1156553775, 0.1104647666, 0.5969853401, -0.0907770172, 0.0594346374, -0.4712800384, -0.3245822489, -0.3380562663, -0.046006199, -0.3487532437, 0.1952669173, 0.3555601835, -0.5530382991, -0.0638661906, 0.1838650256, 0.4580516219, 0.2221149355, -0.3360344172, -0.0448379815, -0.0872654244, 0.1277052462, 0.4157730043, -0.1899158955, 0.180360049, -0.0780542716, -0.2937186956, -0.2260476798, -0.1601118743, -0.3429049551, 0.3990274966, 0.080235675, 0.0668479055, -0.235294342, 0.1735439301, -0.1413567364, 0.001731106, -0.0245897099, 0.0601650886, 0.0110426741, 0.050464239, 0.3054958284, -0.1586056799, -0.1889247298, -0.1347507983, 0.0767961219, -0.0377653614, -0.1541688144, 0.3368023336, -0.2317030281, -0.0590793043, -0.1062083766, 0.1889457256, -0.2515742183, -0.2681214511, 0.0837745517, -0.1097011566, -0.3355261683, -0.1889188439, 0.5555795431, 0.2536105514, 0.1449693739, 0.0675852075, -0.2199271768, -0.6909093261, 0.1423332393, 0.0476176664, 0.2239872962, -0.038531933, 0.3672910333, 0.0404755399, -0.1701401323, -0.1303741336, -0.1746756136, -0.3640629947, 0.0801699087, 0.1796462089, -0.136964649, 0.3592991829, -0.0891141668, -0.0150517402, 0.0554105118, 0.0056980141, -0.1087833866, -0.1023395285, 0.1610949785, -0.0209929142, -0.343693018, 0.2249810994, 0.0064687263, 0.0898527429, -0.2450371385, -0.076169081, 0.0171048753, -0.0176084414, -0.0669984818, -0.3150110841, 0.1212769598, 0.0127036851, 0.1613849699, -0.011731918, 0.2935886085, -0.0230020024, 0.1198136881, 0.0001846305, -0.0750523955, 0.1143959686, 0.2372389883, -0.2427396923, 0.1428274363, 0.0291055758, -0.1974077821, -0.0549758412, -0.0433408357, 0.3361027539, 0.1295173466, -0.1475600302, 0.0766783357, 0.3650748134, 0.075159125, -0.0195951816, -0.0257224962, 0.1018334106, 0.1505986303, 0.0228371155, 0.5174661875, 0.0231223423, -0.3435837626, 0.537830174, -0.0749443248, 0.2276359946, -0.1015100479, 0.105578132, -0.0402406789, -0.0303137265, 0.2926292121, 0.1018691286, -0.1841753274, 0.2063314766, -0.0679180175, -0.1282245964, -0.1412272155, -0.1888821423, 0.2897830904, -0.0143538928, -0.1397298723, 0.1568306535, -0.3757253289, 0.0937150046, 0.1500713527, -0.0578573346, 0.5642963052, -0.5855811238, -0.2829949558, -0.3944430053, -0.1439431459, -0.0790508837, -0.1622625142, -0.2222794443, -0.0152670378, 0.0844990909, 0.0522094183, 0.0321789458, 0.201047197, 0.3205498457, 0.127577126, -0.2623802423, -0.33414644, -0.0527927428, 0.0878488198, 0.0949490741, -0.0202661734, 0.5610432029, 0.2345621586, -0.242379725, -0.2002230436, 0.4721876681, 0.5895764232, 0.3786364198, 0.1227321103, -0.1951044202, -0.2294458896, 0.0129832299, -0.3257731497, 0.2213951647, 0.1242727041, -0.0131638069, -0.0532540865, 0.0574236438, -0.0716466755, 0.0075354641, -0.1439879239, 0.0037620147, -0.1829031408, 0.4468248785, -0.0985439792, 0.0938502327, 0.0514186658, 0.1554651707, -0.2413605303, 0.2823245525, 0.0888574049, 0.0573532134, 0.2049226761, 0.1141102165, 0.0028202301, -0.0617852807, 0.4479651153, 0.2357165962, 0.2131764591, -0.2273445576, -0.1807402074, -0.1836011112, 0.1141182259, 0.1576030999, 0.2857302129, -0.1136935651, 0.224149853, 0.1839516163, 0.0712649971, -0.0494568646, -0.3080792129, 0.0026937779, -0.0428033471, -0.2135600746, -0.0127306348, -0.4230503738, -0.189938724, 0.091597937, -0.4213810265, 0.3242902756, -0.2475093901, -0.0484456532, 0.040697895, -0.2419206053, 0.1870481372, -0.1046732143, 0.2583914101, 0.4208631814, 0.4123571515, 0.1219665334, -0.2801037133, -0.2073029876, -0.3272330463, 0.1092544869, 0.1512137055, -0.2796409428, 0.3367857635, -0.244426921, 0.0386392921, -0.2467678934, 0.3907269239, 0.19720155, -0.3832686245, 0.3099581897, -0.1385187805, -0.2870475352, -0.1150681078, 0.0446841903, 0.5041117072, -0.1177571863, 0.2682076097, -0.2525080144, -0.1620399654, 0.50461483, -0.436458081, -0.0934118181, -0.0293933284, 0.050144881, -0.1696911603, -0.0489453524, -0.3520065844, -0.0549144112, -0.0120239872, -0.1073762774, -0.3854922354, 0.3357226849, 0.2234316319, -0.032198824, -0.0404454581, 0.7254137993, -0.203180179, -0.0253899172, 0.0430909842, -0.0735734478 ]
https://github.com/huggingface/datasets/issues/2010
Local testing fails
I managed to reproduce. This comes from the CodeType init signature that is different in python 3.8.8 I opened a PR to fix this test Thanks !
I'm following the CI setup as described in https://github.com/huggingface/datasets/blob/8eee4fa9e133fe873a7993ba746d32ca2b687551/.circleci/config.yml#L16-L19 in a new conda environment, at commit https://github.com/huggingface/datasets/commit/4de6dbf84e93dad97e1000120d6628c88954e5d4 and getting ``` FAILED tests/test_caching.py::RecurseDumpTest::test_dump_ipython_function - TypeError: an integer is required (got type bytes) 1 failed, 2321 passed, 5109 skipped, 10 warnings in 124.32s (0:02:04) ``` Seems like a discrepancy with CI, perhaps a lib version that's not controlled? Tried with `pyarrow=={1.0.0,0.17.1,2.0.0}`
27
Local testing fails I'm following the CI setup as described in https://github.com/huggingface/datasets/blob/8eee4fa9e133fe873a7993ba746d32ca2b687551/.circleci/config.yml#L16-L19 in a new conda environment, at commit https://github.com/huggingface/datasets/commit/4de6dbf84e93dad97e1000120d6628c88954e5d4 and getting ``` FAILED tests/test_caching.py::RecurseDumpTest::test_dump_ipython_function - TypeError: an integer is required (got type bytes) 1 failed, 2321 passed, 5109 skipped, 10 warnings in 124.32s (0:02:04) ``` Seems like a discrepancy with CI, perhaps a lib version that's not controlled? Tried with `pyarrow=={1.0.0,0.17.1,2.0.0}` I managed to reproduce. This comes from the CodeType init signature that is different in python 3.8.8 I opened a PR to fix this test Thanks !
[ -0.2129509002, 0.082364887, 0.0238413885, 0.0946623161, 0.049615398, -0.1908243597, 0.3812553585, 0.3104431629, 0.0505839363, 0.2253709882, 0.1375240833, 0.110114947, -0.1860498637, 0.6575947404, -0.1123829037, 0.1562343538, 0.0674786791, 0.2533710301, -0.0266020335, 0.1312379688, -0.1200581342, 0.2680256069, -0.2432245314, -0.0653260499, -0.2336265892, -0.0076856944, -0.1573686153, 0.2269872725, -0.1869492531, -0.5005518198, 0.7258081436, -0.0596950464, -0.0117772641, 0.6850965619, -0.0001276803, 0.0460287817, 0.5900763869, -0.1311246753, -0.2848140001, -0.2090544999, 0.1225327328, -0.0099036079, 0.4425724149, -0.0584858544, -0.0636173636, 0.4232134521, -0.3844326735, -0.4504120052, 0.3081774414, 0.3412261009, 0.0856561363, 0.6891778111, -0.1833494753, -0.0647270903, -0.1557073146, 0.7216380835, -0.273509413, 0.5735636353, 0.45034495, -0.1201021448, -0.0678783059, -0.1077148616, 0.1148409024, 0.1880002469, -0.1224893034, 0.0224850476, -0.0936860591, -0.188240245, 0.1383005232, -0.0737017691, 0.3249826729, -0.254763186, -0.3429166675, 0.1858746558, -0.1495689452, -0.5330843329, 0.5146337748, -0.1113536507, -0.4768414199, 0.1915979385, -0.5451620817, 0.2967488766, -0.0748954862, 0.1553912461, -0.3125766218, -0.0832714885, -0.1046864092, 0.1107244194, -0.0891969651, -0.0674922019, 0.0989181623, 0.1787143052, -0.0076318234, 0.2872786522, 0.1070475802, -0.2111832649, 0.0144702513, 0.3994743526, 0.1787105352, 0.4556692541, -0.2514183819, -0.0727529749, 0.1222313121, 0.1218675226, -0.0088825123, 0.3863517344, 0.214619264, 0.2306627631, 0.375842005, 0.0232174471, -0.0810360909, 0.1415195614, 0.220819667, -0.2816310823, 0.2822889686, -0.0321863592, 0.1462038159, -0.4389747679, -0.0922711119, 0.2229404002, -0.0682021752, 0.0167917069, 0.2327675968, 0.2272420824, 0.1824130267, 0.1523489207, 0.0944299549, 0.4298302829, -0.1778354496, 0.2726736367, -0.087645717, -0.1687570214, -0.1537638307, 0.1956515014, 0.498681277, -0.1537044048, 0.4561303258, -0.0057977485, 0.6063704491, -0.0310990158, 0.020663498, -0.0275876876, 0.223746866, 0.4527339339, -0.2669318914, -0.0231729224, 0.3080403805, -0.2273072451, -0.32173419, 0.0499487445, 0.100584276, -0.4410422444, -0.2197593898, -0.0188294444, -0.2830905318, -0.0106937736, 0.2729874253, -0.4864019454, 0.2079428434, 0.0007704548, 0.064935185, -0.2876133323, 0.106817387, 0.1075927764, 0.2090525329, 0.5335059762, 0.0195478853, -0.0479591712, 0.0798538849, 0.079317987, 0.2857228518, 0.3176195621, -0.2670463324, -0.0958707035, -0.1992756724, -0.1947422028, 0.4257673919, -0.5156856775, -0.1774300337, 0.3740009964, 0.1563419253, -0.1985570192, -0.0494488254, -0.2684142888, 0.0657720491, 0.0986227021, 0.2402127087, 0.0567435957, -0.1665883064, 0.0601930879, -0.3022296131, -0.2904704213, -0.0210460722, 0.033827018, 0.024978159, 0.176967904, 0.1998058408, -0.401761204, 0.1179294512, -0.0926959887, -0.1164357737, 0.0205850508, 0.5448551774, -0.3864397705, -0.0036129914, 0.1999375373, -0.0327698663, 0.3577798307, -0.078003116, 0.2045549154, -0.1400953531, -0.0209074374, -0.5408804417, 0.3800974488, -0.099101454, -0.0528338216, -0.1179857254, 0.0609114356, 0.3830110133, 0.1435605437, -0.2402084321, 0.0653649867, -0.0774746239, 0.0946651548, 0.2909983695, -0.0861133039, -0.328791678, -0.4251502156, -0.1563338637, -0.0233167559, 0.0048969155, -0.2242093533, -0.4006009698, 0.2171483338, 0.0886746272, -0.1416566521, 0.0746126547, 0.0953621045, 0.231916666, 0.0282802545, -0.0058216569, 0.0119785359, -0.1869171411, -0.0353846401, 0.0147934426, 0.4722612798, 0.0298201367, 0.0833986327, -0.159188211, 0.109327361, 0.3530658782, 0.0234854445, -0.1824236661, -0.315900296, 0.266700387, 0.0317160934, 0.5888891816, 0.1291599423, -0.1410610676, -0.1075276211, -0.0508212745, -0.159972474, -0.0017906142, 0.1870499849, 0.2271011472, -0.0158884991, 0.2266933918, -0.1101667434, 0.553196013, -0.1585792452, 0.0749341324, 0.1816506237, -0.2237858921, -0.30287081, 0.1822277158, -0.1517623663, -0.0119572366, 0.1467460543, 0.2263768017, -0.0592965484, -0.2383320779, -0.2199625969, -0.0692370236, 0.1834665686, -0.3558005095, 0.2407161593, -0.1439509243, 0.0936437547, -0.3681105971, -0.2125535756, 0.0038104434, -0.253749311, -0.1256659031, 0.2570475042, 0.0167053808, 0.2124893218, -0.3055718243, 0.4417043328, 0.1103471741, -0.6165692806, -0.2307488471, -0.0421805717, -0.2874610424, -0.1102832332, 0.3440141976, -0.4251946211, 0.1442622691, -0.543675065, -0.0106430771, 0.209976837, -0.5716858506, 0.3610413671, 0.1101278439, 0.5630649328, 0.0908895284, 0.1359784752, -0.0833358243, -0.32854563, 0.3907449841, -0.2811045349, -0.3202842474, 0.1116460934, -0.0592876971, -0.2386703342, -0.4834081829, -0.224175185, -0.1732219756, -0.0486702994, 0.2961149812, 0.0813511014, 0.069215171, 0.4372485578, 0.3239245117, -0.0071033174, 0.0879161656, 0.0492148027, -0.0323042795, -0.6007463932, 0.2518296838, -0.2372845411, -0.2854531109, -0.1597947776, -0.0864260867, 0.4862287641, 0.0981933698, -0.3998626173, -0.1802985072, -0.1212022901, 0.4978186488, 0.1771861613, -0.090131022, 0.3163525164, 0.0246619731, 0.0493824817, -0.0573717281, -0.2262755185, 0.1844127327, -0.0043754876, 0.3145066202, 0.017887013, 0.2293649763, -0.073702611, 0.6722058058, 0.2346592247, -0.2608802319, 0.3040289581, 0.0912793577, 0.3293498755, -0.4512394667, -0.201783821, 0.260111779, 0.0243021399, -0.4762884676, -0.0437383428, 0.0247655325, -0.6657318473, -0.1394971162, 0.1744859815, -0.1548580378, -0.1806099713, 0.2503742576, -0.2951571345, 0.3791859746, -0.0946985483, 0.1134414524, -0.135285303, -0.031215528, -0.0109149665, 0.3398592472, -0.1045142487, 0.042121876, -0.129715547, -0.4960713089, -0.3819332123, 0.2305473387, 0.2182386816, 0.64997226, -0.210214749, -0.3641655445, 0.024985645, 0.0465436429, 0.0963647738, 0.176278159, -0.2380158454, 0.2721736431, -0.3735040426, -0.4916274548, -0.2925335467, 0.0255825091, 0.4043453932, 0.0784007907, 0.5375287533, 0.1264637709, -0.1271788329, 0.1342841685, 0.1102670282, 0.0929217562, -0.0375756361, -0.45432809, -0.4238274097, -0.3833252192, 0.3148332238, 0.0197402723, 0.0344986729, -0.20984824, 0.0249783341, 0.0312267337, 0.0165387578, -0.0720836446, 0.3944138288, 0.0223521572, -0.134515956, 0.0904433727, -0.0883586779, 0.0729420707, -0.0201755334, 0.1470247209, 0.1128850803, 0.09449251, 0.1423826516, -0.1168441102, -0.0356831849, 0.4573674202, -0.0383813977, -0.1947222203, 0.1069131047, -0.108342059, -0.2660885751, 0.2129251361, 0.0121905357, -0.0684785023, -0.0959033594, 0.1370833814, 0.0226377975, -0.0034935346, -0.0994239748, 0.4119968116, -0.0551696345, -0.0298773497, 0.3651520014, 0.1775614172, 0.8157603741, -0.0086659575, 0.0692776814, 0.2503995299, -0.0209908988, -0.3450799584, 0.5113014579, -0.0401657633, -0.2692533135, 0.2452152967, -0.014184637, -0.3603078723, 0.3192785382, -0.1270446479, -0.2522837222, 0.0036985914, -0.4036071599, 0.3278360963, 0.0643667579, -0.1236022562, -0.3593871891, -0.0345869325, -0.1425474733, 0.0836254954, 0.1283958554, 0.6133264899, -0.1106791869, 0.076793097, -0.3790450692, -0.3198164999, -0.326584518, -0.0653562099, -0.2735282183, 0.2031431049, 0.4923527837, -0.4473856986, -0.0076332251, 0.1897128224, 0.5910068154, 0.2151010185, -0.3710514605, -0.0241356213, 0.0959766507, 0.0187279861, 0.391875267, -0.1623623222, 0.1390866786, -0.0467724092, -0.3181008399, -0.1999572068, -0.2435203642, -0.3389802873, 0.3941818476, 0.0037318089, -0.0933833122, -0.3095391393, 0.1387608647, -0.1527009308, 0.0707064494, -0.0347965583, 0.0451215692, 0.0071472903, 0.0995951518, 0.3269566, -0.0798415169, -0.2007296681, -0.1152882427, 0.0390939228, -0.0577855557, -0.1012967154, 0.3804947734, -0.110172011, -0.0055043995, -0.1118167564, 0.1505399793, -0.2089613378, -0.2460995466, 0.0759302452, -0.1104967222, -0.3170500696, -0.0975176245, 0.5581834912, 0.2994674146, 0.1594982743, 0.0512621887, -0.1069932133, -0.6706625223, 0.1032546535, 0.0669696704, 0.2133812755, 0.0146428254, 0.4575366676, -0.0103572449, -0.214422971, -0.1220074967, -0.0885189176, -0.3779914677, 0.0571433343, 0.0681567565, -0.0752215534, 0.351876229, -0.1678055376, -0.0305305552, 0.0250397511, -0.0496747009, -0.0900231451, -0.0462165438, 0.1742307991, 0.0484291948, -0.3221479058, 0.3157861829, 0.0064823804, 0.1183682084, -0.115171276, 0.0057883174, -0.0856153965, 0.0142184403, -0.0809692815, -0.202314198, 0.0976981148, -0.1170183122, 0.0960860103, -0.0926925093, 0.3523994684, -0.0889853239, 0.1439664513, -0.0554913767, -0.0477978736, 0.2524555027, 0.2699752152, -0.2041554451, 0.1687511951, 0.0303091556, -0.2895763814, 0.0172199309, 0.0655822232, 0.3042150736, 0.0805393532, -0.2911088169, 0.1201179475, 0.2948725224, 0.072234571, 0.0454735011, -0.0120308697, -0.1217374429, 0.1613797098, -0.0156145785, 0.4948709905, 0.2002597451, -0.3090687692, 0.400670141, -0.0324272923, 0.3457434773, -0.0304574687, 0.0559676364, -0.0055870852, -0.0296828058, 0.2638401091, 0.1978756785, -0.1267089695, 0.1102812886, -0.1203790605, -0.0820245892, -0.0444040112, -0.2603594661, 0.3358691335, -0.0584292226, -0.1032192037, 0.2719575167, -0.3337039351, 0.1102378666, 0.06331034, -0.0020896317, 0.6600570083, -0.6151894331, -0.3002285957, -0.3712921739, -0.1774305403, -0.0651965067, -0.1714660674, -0.3542008698, 0.0501396097, 0.0443811268, 0.0622215755, -0.0641279221, 0.2548415363, 0.3229341209, 0.1223640367, -0.2019758672, -0.4548484981, -0.0604465529, 0.0894832611, 0.08838287, -0.0564634949, 0.5304109454, 0.1447066367, -0.3150202036, -0.1222663447, 0.5399010181, 0.6615062356, 0.285923034, 0.0971384421, -0.2560991943, -0.2292701751, 0.0099420911, -0.2649981081, 0.1255939752, 0.1515679359, 0.1081603765, -0.0581228696, 0.0584352314, -0.0417930298, 0.0428365655, -0.1470203549, 0.0676142126, -0.1739850044, 0.3367728591, -0.0356602669, 0.155156821, 0.0026472732, 0.1935733706, -0.2381476909, 0.3953500092, 0.1332025677, 0.0825401768, 0.1771981865, 0.167724669, -0.001088119, 0.0668806508, 0.5126708746, 0.2918176651, 0.1503745019, -0.1854123771, -0.2878715992, -0.193841517, 0.1387005746, 0.1663697958, 0.2949790061, -0.0488845445, 0.1859449297, 0.1205975935, 0.0894248262, -0.0119659454, -0.1441290975, -0.1215386912, -0.1335771978, -0.1835172325, -0.0250040777, -0.3701709509, -0.1906799227, 0.0149995033, -0.3371474445, 0.3524736464, -0.1409901828, -0.0637195632, -0.0543727428, -0.2187353969, 0.1781959087, -0.2250036895, 0.2600578666, 0.3480687141, 0.3272462487, 0.1648107469, -0.3105279505, -0.1107890829, -0.406354934, 0.0237591974, 0.1805665642, -0.3148145378, 0.3108046949, -0.2133533806, -0.0274859201, -0.2337997854, 0.2657324374, 0.1744322628, -0.3407871425, 0.1513765752, -0.1394255161, -0.2918335199, -0.0840963796, 0.1667217761, 0.4874756336, -0.1143286005, 0.2222247273, -0.161991179, -0.2502762973, 0.4320521951, -0.3146131933, -0.0356785767, 0.0171356592, -0.030336393, -0.2345732898, -0.0523695648, -0.3275541365, -0.0547791161, -0.0755201131, -0.1453132182, -0.4074228406, 0.3302375376, 0.2467477173, -0.0292412266, -0.0792275518, 0.6571493745, -0.1429573894, 0.0041961446, -0.0779268295, -0.0338359699 ]
https://github.com/huggingface/datasets/issues/2009
Ambiguous documentation
Hi @theo-m ! A few lines above this line, you'll find that the `_split_generators` method returns a list of `SplitGenerator`s objects: ```python datasets.SplitGenerator( name=datasets.Split.VALIDATION, # These kwargs will be passed to _generate_examples gen_kwargs={ "filepath": os.path.join(data_dir, "dev.jsonl"), "split": "dev", }, ), ``` Notice the `gen_kwargs` argument passed to the constructor of `SplitGenerator`: this dict will be unpacked as keyword arguments to pass to the `_generat_examples` method (in this case the `filepath` and `split` arguments). Let me know if that helps!
https://github.com/huggingface/datasets/blob/2ac9a0d24a091989f869af55f9f6411b37ff5188/templates/new_dataset_script.py#L156-L158 Looking at the template, I find this documentation line to be confusing, the method parameters don't include the `gen_kwargs` so I'm unclear where they're coming from. Happy to push a PR with a clearer statement when I understand the meaning.
79
Ambiguous documentation https://github.com/huggingface/datasets/blob/2ac9a0d24a091989f869af55f9f6411b37ff5188/templates/new_dataset_script.py#L156-L158 Looking at the template, I find this documentation line to be confusing, the method parameters don't include the `gen_kwargs` so I'm unclear where they're coming from. Happy to push a PR with a clearer statement when I understand the meaning. Hi @theo-m ! A few lines above this line, you'll find that the `_split_generators` method returns a list of `SplitGenerator`s objects: ```python datasets.SplitGenerator( name=datasets.Split.VALIDATION, # These kwargs will be passed to _generate_examples gen_kwargs={ "filepath": os.path.join(data_dir, "dev.jsonl"), "split": "dev", }, ), ``` Notice the `gen_kwargs` argument passed to the constructor of `SplitGenerator`: this dict will be unpacked as keyword arguments to pass to the `_generat_examples` method (in this case the `filepath` and `split` arguments). Let me know if that helps!
[ 0.0630257651, -0.0559888333, -0.0537044108, 0.1070299968, 0.0235675387, 0.1693240404, 0.3407928348, 0.1025089473, -0.1445971131, -0.1650756449, 0.0825749785, 0.3592205048, 0.0475475043, 0.0229658764, 0.1957674623, -0.226720646, 0.0967700556, 0.1418140978, -0.0160179399, -0.1553119123, -0.3404794633, 0.2601729631, -0.3286115229, 0.3037530184, -0.2405357063, -0.2140242606, -0.1296741515, 0.3539068103, -0.4259347022, -0.2638632357, 0.2149848789, 0.1732775122, -0.1561240256, 0.1987600029, -0.0001124477, 0.0061697033, 0.2945780754, -0.1892531663, -0.1790917963, 0.0210832208, -0.3679364622, -0.1775047183, 0.0289061535, -0.3533604145, 0.1910022944, -0.3274487853, 0.0365872756, -0.1565576196, 0.5122280717, 0.1903434545, 0.1555773318, 0.0230271313, 0.1395210773, -0.1815895587, -0.161103338, 0.5714950562, -0.2454579622, -0.1139200479, 0.0408838205, 0.1185334697, 0.0628221929, 0.2183080912, 0.0905424058, -0.1116911694, 0.4655435383, -0.0411249362, -0.2104085088, -0.5389922261, 0.0971480757, 0.2854479253, 0.5018536448, -0.2640081644, -0.2595459819, -0.2530984282, -0.1830705553, -0.1483086497, -0.1307505667, 0.3472192883, -0.3724953234, -0.0102220261, -0.3185661137, -0.2991984785, -0.2664617896, -0.3025460243, 0.14885436, 0.3738006055, -0.1506497264, 0.1400254369, 0.0473177806, 0.1209767982, -0.0652602762, -0.2275738269, 0.0284530446, 0.4920310974, 0.0334741846, -0.1478962898, 0.2251164615, 0.0053128921, 0.4009974301, 0.2251065522, -0.0026089386, -0.2663422823, 0.0731088966, 0.197860986, 0.3588045835, -0.2031561881, 0.3699664474, 0.0002879296, 0.0691669211, 0.0147316987, 0.2263580114, -0.1669276059, 0.1684111059, -0.3830890954, 0.0449414849, 0.037932016, 0.3937674761, -0.1123330444, -0.0958531052, 0.0414177664, -0.1373910159, -0.3935707808, 0.0558247231, 0.0493345931, 0.2171514034, -0.0029187584, -0.0890616998, -0.1021661758, -0.1244845986, -0.2616605461, -0.2409770042, 0.2836475968, -0.1866671741, 0.1743051112, -0.194220528, -0.202546522, 0.3773421049, 0.2009480149, 0.2653454542, 0.1425865889, 0.1070016026, 0.183804065, 0.1337120831, 0.2818728685, -0.0353092737, 0.1737407446, 0.2208316773, 0.0379708447, -0.302808702, 0.0211154893, -0.4155865312, -0.3842844665, 0.0451718271, 0.1054994389, -0.2765237093, 0.1617230773, -0.2013299316, 0.3348644078, 0.0546008497, -0.1171724051, 0.092071563, 0.010471167, -0.0390682593, -0.5046523213, 0.3123727143, 0.4569102228, -0.4068635106, -0.147085771, -0.1976563483, -0.239491418, -0.0142200962, 0.0178308412, -0.3050231934, 0.4071801305, -0.2098044604, 0.411105603, 0.5502251983, -0.0264273081, 0.261790067, 0.4143201411, 0.2440981567, 0.0400959142, 0.1967813969, -0.3653976023, 0.1281254143, -0.1726318896, -0.2287608683, 0.1094251722, -0.1204198301, -0.2198890448, 0.0926813558, 0.0025512127, -0.1228935942, -0.1769020855, -0.1159513742, 0.0135559207, 0.0102812955, 0.1956631392, 0.4094671011, -0.2382918298, 0.1461004019, 0.3196187317, 0.3091383576, -0.1995503157, 0.2227861285, 0.0575037748, -0.6098822951, -0.0888740346, 0.0193510707, 0.1056627557, -0.1684193611, -0.2631371319, -0.3937979341, 0.0714040622, -0.2420982271, -0.2368246168, 0.1145805195, -0.0982952267, 0.2783871591, -0.1827611923, -0.3041558564, -0.0179161131, -0.0206738934, 0.0775978714, -0.6391505599, 0.1906319261, -0.036301747, 0.1559222192, -0.0530467443, 0.0459446236, 0.063118726, -0.2324767411, 0.1714750975, 0.4587954283, 0.4186859429, -0.033393003, -0.0634001121, 0.3129428327, -0.034199439, -0.0261274818, 0.3035820127, -0.0439403616, 0.1650854349, 0.0573669113, -0.3358436227, 0.4323947132, -0.2407269776, 0.3330579698, 0.2003157735, 0.0207137037, 0.1567842066, 0.1918630153, -0.1606840789, -0.1137876883, -0.2559687793, 0.2064643353, 0.3144343197, 0.0809790194, -0.2916628718, 0.4554889202, 0.5633224845, -0.3260163367, -0.2243342996, 0.0192819685, 0.0195232611, -0.3728530407, -0.0673386827, 0.3394281566, 0.5309392214, 0.0249873139, 0.174312219, 0.0886852667, -0.2671059966, -0.2269399017, 0.4196887612, 0.0794183016, 0.0610031113, 0.0651265159, -0.5002265573, -0.2657814324, -0.3489814401, -0.1541885138, 0.256290257, 0.2185084522, -0.367577076, 0.2802489698, 0.0644771531, 0.1209352911, -0.2625289559, -0.1141394526, -0.2750659883, -0.5612821579, 0.0426920354, -0.0299975201, -0.0898888335, 0.0450083092, 0.0352852084, 0.2285884172, -0.0247038826, 0.1770927906, -0.3000345826, -0.1925525218, -0.0262381658, 0.10838449, -0.00443058, 0.0198434219, 0.2194135338, -0.1660424769, 0.1192983165, -0.2669512928, -0.3701041937, 0.2968109846, -0.4268538058, 0.2854996622, 0.7126975656, 0.3422040343, 0.0494979285, -0.233290121, 0.0504645184, -0.1468913555, -0.2825331092, -0.2010696381, -0.1071047261, 0.0724874437, -0.354791671, -0.5272269249, 0.0341724753, -0.2080564946, 0.2492886335, -0.0573889799, 0.2517394125, 0.2855527699, 0.2062866539, 0.2444448024, 0.0874433815, 0.1648582965, -0.1609761715, -0.3166236579, 0.2856166959, -0.4865403175, -0.1536627859, 0.1032461673, -0.0922759026, 0.4634686112, -0.0369106978, -0.1064061224, -0.3701997399, -0.1186550856, 0.0424704552, 0.0186969899, 0.3841693997, 0.1690155417, -0.0273055751, 0.0256086159, -0.3647847772, -0.1000139341, 0.0551921092, -0.347307533, 0.1823517531, 0.0608925074, 0.4155502915, -0.0704483241, 0.66268152, 0.3334256411, 0.0407074168, -0.0579508692, -0.1177554727, 0.4817967117, -0.0199304558, -0.1661501527, 0.0748710483, 0.1015368626, -0.1329633743, 0.0953431726, 0.090372555, 0.0937509686, 0.1487012804, -0.0274147782, -0.2631872296, -0.3521751463, 0.1254465729, 0.2102634907, 0.2774250209, -0.0712267756, 0.2989460826, -0.1903245151, 0.1821180731, -0.2548040152, 0.4908551872, 0.6145688295, 0.0827761963, -0.3357670009, -0.1644800305, -0.3440631628, 0.1310024261, -0.0074123465, -0.0851846263, -0.0927434564, -0.1233962253, 0.1414813548, -0.1461156756, 0.4138371646, -0.3477960229, -0.1935281456, 0.1525820643, -0.0163214337, -0.1738788933, 0.0659222752, -0.1577223688, 0.2936333716, 0.1764204502, 0.0440508239, -0.5996692181, -0.4980013669, 0.1934524029, 0.010828373, -0.20418109, 0.1298810244, -0.1511052251, -0.6448945403, -0.0861666054, -0.1322556138, 0.1849901825, 0.0545250289, -0.1793075204, 0.3947928846, 0.1312596202, 0.121822305, 0.1520985216, 0.4695475698, 0.3066177666, -0.1120472178, -0.2064917088, 0.0765412748, 0.1102183163, 0.0202544704, 0.3572824299, -0.1449249834, -0.2403616309, -0.0022132867, -0.2800565958, 0.557808578, 0.2927030027, -0.1902350485, 0.0347934552, -0.1490894407, -0.1357687712, -0.2394866198, 0.0017740343, 0.3852309883, -0.3035713732, -0.3060830235, -0.8698113561, 0.4335879683, 0.3480956256, -0.2058621198, 0.3483258188, 0.3761309981, -0.2476672232, 0.0583865605, 0.3835322261, 0.7816461921, 0.4372037649, 0.2335246503, 0.4435306787, -0.2188876569, 0.5801467299, 0.0565145016, -0.0785415098, -0.4775755703, 0.0045592105, -0.2190326154, -0.1659438908, 0.2511468828, 0.3887836337, -0.2179743201, 0.1936331093, -0.1872209609, 0.0677075684, -0.1618506461, 0.225518316, -0.1253626645, -0.0913018286, -0.2029480636, 0.1133400202, 0.0569847599, -0.0039099152, -0.0460456535, -0.2679027617, 0.0644955784, -0.4196642339, -0.3684490919, -0.0609957799, 0.307955116, 0.0672424734, 0.2474590987, -0.2270308137, 0.3886539042, 0.1202158779, 0.2785609663, -0.0669818819, -0.1209646687, 0.1790650487, -0.1707369536, 0.0155602265, -0.1539039761, 0.1677237898, 0.4168998003, 0.0969808474, -0.0540141128, 0.0565551743, -0.1589329243, -0.0883347541, -0.4750370383, 0.1810634583, -0.2370464802, -0.5176573396, -0.1148444712, 0.0828725845, -0.2824342549, -0.0762308314, 0.0554892756, 0.244385317, -0.2320573777, 0.2936022878, -0.3023997247, -0.0224814992, 0.048907686, -0.2302009314, 0.0862597823, 0.0368725359, 0.2618044019, 0.0112960516, -0.1381823868, -0.3272834718, 0.2000404149, 0.5726199746, -0.6263511777, 0.2564405501, 0.246870324, 0.1769982874, 0.1548409909, 0.1777610332, -0.1841892749, 0.343729347, -0.2117953748, -0.3027582765, 0.0321092531, 0.3065122962, -0.2223126739, 0.2031895667, 0.0234009624, -0.0157858673, 0.197774604, 0.1179461405, -0.2993242443, 0.1151679158, 0.1789741218, 0.0359147638, 0.208857134, 0.0154800024, 0.1003280282, 0.0752098262, 0.0038778847, -0.0526534691, -0.3928082585, -0.1168734506, -0.2186906636, 0.1830581278, -0.0288585927, -0.1877183169, 0.1499774307, 0.166844666, -0.4248855412, -0.0539348386, 0.3341397047, -0.0373082943, 0.0551678538, 0.2743197381, 0.1323890686, 0.1528701931, -0.1730081588, -0.1509545892, 0.1343625635, 0.4246542156, 0.2246310264, 0.2432983816, -0.2240973711, -0.0863253847, -0.1576269269, 0.4860996008, 0.2494946569, -0.0847698897, 0.3280569017, 0.1216634661, 0.0873245001, -0.4062580764, 0.4440461099, 0.4752521813, -0.0179644246, 0.2364117652, -0.0518486723, 0.0944417268, -0.0688726529, -0.1788317114, 0.153708905, 0.0425409898, 0.1513474137, 0.3643049896, 0.1570623219, 0.2181696147, -0.0542377904, -0.2468826622, 0.5586367846, -0.0006454891, 0.3511782885, 0.7551179528, -0.0354598202, 0.123564817, 0.2820720971, 0.0567199774, 0.1068035141, 0.1088805124, 0.023995148, 0.2393901646, 0.0669956654, -0.0123409135, 0.2862536609, -0.161956504, -0.0269898027, 0.271564126, 0.0487066321, 0.1325714886, -0.0262094345, 0.2715278864, -0.0600216091, 0.1020964906, -0.2493344098, 0.2315692902, 0.0015932847, -0.2097302675, -0.4564827085, -0.2576330602, -0.1872608364, -0.0849314481, 0.0605746359, -0.4115419984, 0.3470726311, -0.3500343859, 0.280744493, 0.0230731107, 0.4015864432, 0.0115213329, 0.0562059842, -0.0486791246, 0.0392040499, 0.1939411312, -0.0702416599, 0.233079657, 0.4043903351, 0.4464851022, 0.2524722517, 0.0869971067, -0.1364698857, -0.1309304684, -0.0494086929, 0.0036348596, 0.1537797153, -0.304394871, -0.1800199002, 0.2208892554, 0.1544552594, -0.0029644168, -0.0388855152, 0.1989025474, 0.0792406946, -0.1073249727, 0.5643259287, -0.256562978, -0.1210436001, -0.007953519, 0.0975217596, -0.3501306474, -0.3489460945, 0.278375715, 0.24495022, 0.052511882, -0.3614910245, 0.0828200132, -0.0364129543, 0.5925097466, 0.0213759076, 0.0422788858, -0.1893229336, -0.2608792782, -0.4184707403, -0.1952400357, -0.012076214, -0.3624282479, 0.1239404157, 0.2639781535, 0.0511847176, 0.0453205146, -0.1107773632, 0.0066593802, -0.0647140369, 0.3001200259, -0.2498515993, -0.1399867684, 0.0974660292, 0.1280572861, -0.1126330495, -0.0070937187, 0.1019563228, -0.0105429776, -0.0253552478, -0.0875790715, 0.1269022375, 0.3288876712, 0.3355788291, -0.1888046563, 0.2449076325, 0.2353853583, -0.0825100467, -0.2910902798, -0.2382961661, 0.1694566011, -0.3728818595, 0.4929943085, -0.0161860865, 0.1797350049, -0.0702205971, -0.2198334634, -0.2998580039, 0.2033130825, 0.0825980157, -0.0941106752, -0.237261191, 0.2453475744, -0.4747852385, -0.0209365878, 0.2546730638, 0.3233119249, -0.1294375211, 0.0668987781, -0.0858336017, -0.3203431666, 0.4812015891, -0.2044387162, -0.3090690076, -0.1241494566, 0.0593833998, 0.0217450149, -0.3169499636, -0.5852500796, -0.0643533394, 0.2532245219, -0.1113678962, -0.1404600292, 0.1280758083, 0.0493838079, -0.2989430428, -0.1453457028, 0.1923640966, 0.1709427536, -0.3089116216, 0.1824216545, -0.1736836433 ]
https://github.com/huggingface/datasets/issues/2009
Ambiguous documentation
Oh ok I hadn't made the connection between those two, will offer a tweak to the comment and the template then - thanks!
https://github.com/huggingface/datasets/blob/2ac9a0d24a091989f869af55f9f6411b37ff5188/templates/new_dataset_script.py#L156-L158 Looking at the template, I find this documentation line to be confusing, the method parameters don't include the `gen_kwargs` so I'm unclear where they're coming from. Happy to push a PR with a clearer statement when I understand the meaning.
23
Ambiguous documentation https://github.com/huggingface/datasets/blob/2ac9a0d24a091989f869af55f9f6411b37ff5188/templates/new_dataset_script.py#L156-L158 Looking at the template, I find this documentation line to be confusing, the method parameters don't include the `gen_kwargs` so I'm unclear where they're coming from. Happy to push a PR with a clearer statement when I understand the meaning. Oh ok I hadn't made the connection between those two, will offer a tweak to the comment and the template then - thanks!
[ 0.090754047, -0.178482309, -0.0821814984, -0.1347765028, 0.2026105374, 0.1043045893, 0.4321021438, 0.0742143989, -0.0925438553, -0.1297512203, 0.1296099722, 0.2071549743, 0.0149753541, 0.1009715125, 0.3126717806, 0.0319482237, 0.2020218819, 0.0814610869, -0.1270152628, -0.1860020608, -0.3509488702, 0.1204456016, -0.2026400268, 0.2474186867, -0.3214331865, -0.0715384409, -0.0956998989, 0.3153884709, -0.3801506162, -0.347201407, 0.3936368525, 0.2135885209, -0.118488051, 0.1507875323, -0.0001064841, 0.0313349552, 0.4308874905, -0.1848324239, -0.1925982386, 0.2388118953, -0.2063976675, -0.2435213923, 0.0402129069, -0.3196238875, 0.0919546336, -0.2830060422, 0.1082210913, -0.0474151149, 0.3947279751, 0.206567511, 0.252482444, 0.0181179717, 0.0514024533, -0.2937713861, -0.0214619245, 0.3528167009, -0.2551084757, 0.1114550307, 0.1892899871, -0.0178189632, -0.2224145085, 0.3152565062, 0.0603578836, -0.2014647722, 0.5262855887, -0.0914599821, 0.1253805459, -0.3355511725, 0.2306746691, 0.1955232918, 0.6530074477, -0.288072288, -0.3390623629, -0.158780098, -0.0159973111, -0.1725625694, -0.110683158, 0.1456160247, -0.4438184798, 0.0985822156, -0.3290769458, -0.2995275855, -0.3381353319, -0.1893778294, 0.1041537449, 0.3985573649, -0.1467226297, 0.0287831668, -0.0798099935, -0.0637110099, 0.0606424063, -0.0514686517, -0.0620314591, 0.4795161784, 0.0475224741, -0.0571067408, 0.3913280666, 0.3072202802, 0.4849084318, 0.3319510818, 0.0647532344, -0.1249571815, 0.0482136123, 0.1219813079, 0.1688568741, -0.0952122509, 0.2625270486, -0.1981396675, 0.1932670921, 0.0716888756, 0.2193530202, -0.1851042658, 0.165163666, -0.4140140414, 0.0960271806, -0.1382641494, 0.3235104978, -0.2193560153, -0.0478596725, 0.0212957915, 0.1541709006, -0.232980296, 0.0033718615, 0.1460006535, 0.0977542177, -0.0294091795, -0.0267410036, -0.0824773684, -0.1639436334, -0.0177763198, -0.33675161, 0.2282176614, -0.2819630802, 0.2159061134, -0.2383442521, -0.105083324, 0.363984704, 0.2932417095, 0.2600686848, 0.3762288392, -0.1156294048, 0.2062502205, 0.1441383958, 0.2639549077, -0.30725196, 0.1014633849, 0.1514815539, 0.0976410881, -0.2121096104, 0.0222522896, -0.3375570178, -0.4068913162, 0.0331561342, 0.1558644027, -0.2776872516, -0.0517165698, -0.0528342649, 0.4435342252, 0.1255671382, -0.1862478852, 0.0439449251, 0.0011066435, -0.0643741637, -0.4972919524, 0.3103564084, 0.4556654096, -0.3002097905, -0.2015373558, -0.0556298345, -0.2588971555, 0.1801886857, 0.1800516844, -0.2338029593, 0.1157816499, -0.299038142, 0.2452956885, 0.4009962082, -0.03050505, 0.1852114797, 0.2886867523, 0.2408436984, -0.0456031822, 0.2281850725, -0.1671769768, -0.1202177033, -0.1961426586, -0.1287869513, -0.0771346316, 0.0493377708, -0.1397655904, -0.1034403741, -0.0711302012, -0.0705191493, -0.1175255775, -0.1683060676, 0.0547598414, 0.0953350887, 0.1015544012, 0.3932325244, -0.2345938236, 0.1285253614, 0.3467074335, 0.4189900458, -0.128862381, 0.0794207752, 0.0565183163, -0.6715266705, -0.0466046408, 0.0131096439, 0.2423954606, -0.188220486, -0.248507753, -0.4149156511, 0.0028945042, -0.0466382541, -0.2650405169, 0.1491552293, -0.0113791134, 0.1515473574, -0.1366388798, -0.1981604099, -0.0785095692, -0.0282419994, 0.0117725953, -0.4073156714, 0.1264130175, -0.030860424, 0.0549485683, 0.0660940111, 0.1211642772, 0.1455515325, 0.0127393901, 0.2302757651, 0.3799110353, 0.2193588614, 0.0544941202, 0.1166279241, 0.3671433628, -0.119239673, 0.0965393558, 0.2640693486, -0.0831123888, 0.1438302249, -0.0361756906, -0.3096534312, 0.293535769, 0.1455043554, 0.1645066142, 0.1982656419, -0.0875328407, 0.1234209538, 0.1111753285, -0.1437385231, -0.103160575, -0.2327034324, 0.1511907727, 0.4141844213, 0.0949410051, -0.3783418536, 0.4364840984, 0.2460187227, -0.2534932196, -0.1884203851, 0.1434517354, 0.0920643732, -0.4229132235, -0.0424717329, -0.0089848805, 0.4792378843, 0.1818936765, 0.2370538563, 0.1093301848, -0.2840776742, -0.3740887642, 0.2590412498, -0.0067266994, -0.0551692396, 0.0240309108, -0.1259056628, -0.2680933177, -0.2931368947, -0.0103913639, 0.0646329895, 0.2418517172, -0.4246812761, 0.1512789875, 0.0138728069, -0.0488586128, -0.2073214203, -0.1320531964, -0.3677158058, -0.576834023, 0.0648535565, 0.0012633983, -0.2023102641, 0.0999624506, -0.1299647093, 0.3149821162, 0.0695009306, 0.288417697, -0.3500846624, -0.2509902418, 0.0356569551, 0.1521710753, -0.0046587884, -0.1069709212, 0.3328805268, -0.1114897504, 0.0681735799, -0.4380571246, -0.5030032992, 0.1767322868, -0.339525789, 0.3017333746, 0.5701349974, 0.4036960304, 0.0565250404, -0.0830229744, 0.0947985277, -0.1777530313, -0.2436972857, -0.2531809211, -0.1625372171, 0.0825256482, -0.343288064, -0.3473717272, -0.0341792889, -0.2782123387, 0.2322391272, 0.0811349973, 0.1493460685, 0.4569228888, 0.1185977608, 0.1602663398, 0.0463688448, 0.1483189762, -0.206144318, -0.3614016771, 0.3522814512, -0.3719356358, -0.2803907692, 0.0186991114, 0.0436759479, 0.4063163102, -0.0261213332, -0.2084699422, -0.4375240505, -0.0988155827, 0.2255110145, 0.0795600042, 0.4632645845, 0.1754226536, -0.1288136989, -0.1690650433, -0.3697238266, -0.1438215375, 0.0056056841, -0.5320708156, 0.1350746453, 0.1161264032, 0.2016551942, -0.1373725533, 0.6183991432, 0.1834115833, -0.0393335447, 0.0863245726, -0.2357014865, 0.617433846, -0.1425569355, -0.0519842766, 0.1715784222, 0.0455173291, -0.0295402519, 0.2016072869, 0.1906785071, 0.0252240337, 0.0489923134, -0.0591118336, -0.0439598896, -0.3756274879, 0.0385443345, 0.2568562627, 0.187718153, -0.0145306261, 0.1676346213, -0.2716948688, 0.0075925826, -0.1225029975, 0.4069199264, 0.4516637921, 0.1684549004, -0.2381352186, 0.0187010579, -0.480355382, 0.2803089917, -0.0482404381, -0.0525970198, -0.173222959, -0.2888438702, 0.1235278994, -0.0884485766, 0.2902477682, -0.2935280204, -0.2524641752, 0.1743179113, 0.1187512428, -0.3780842721, -0.0156433843, -0.1283374578, 0.2648365796, 0.2669678032, 0.0926485956, -0.5838429928, -0.4488579929, 0.0871466398, 0.0339720435, -0.0944151506, 0.0418100655, -0.25122118, -0.6246230602, -0.0316525251, -0.1325454563, 0.0676611215, -0.0896009952, -0.2021626234, 0.3516412079, 0.2178478241, 0.1741155535, 0.1369442195, 0.3481552303, 0.1863055676, 0.0585366599, -0.1171580404, 0.0357602797, 0.2629087567, 0.1564124823, 0.3872843683, -0.2450022995, -0.1556185484, -0.0913921595, -0.2430650741, 0.5037792921, 0.4062496126, -0.190799728, 0.1011991054, -0.0680629015, -0.0576714911, -0.2223555148, -0.049800761, 0.2901690006, -0.1759474277, -0.3967420161, -0.8526322842, 0.5501232147, 0.2221506536, -0.3509257138, 0.1233763099, 0.3864318132, -0.2540644705, -0.1042571515, 0.2390331626, 0.9269065857, 0.4665984511, 0.3813879192, 0.5670028329, -0.019357482, 0.394398123, 0.2751503289, -0.0854456946, -0.5506341457, -0.1121292412, -0.1418149769, -0.1199335456, 0.1193927079, 0.3322308958, -0.0728058368, 0.261259526, -0.240274325, 0.1152072027, -0.1283753365, -0.0113827223, -0.1996075809, -0.0877934843, -0.3388987482, 0.2031573802, 0.0803389624, -0.027807815, -0.1115988865, -0.2137954384, 0.038340535, -0.3241896629, -0.3365115225, -0.0112351291, 0.1663069576, 0.123265259, 0.1898583919, -0.1164374277, 0.1951515973, 0.0620347969, 0.3750990033, -0.0663102716, -0.2711079121, 0.1484338194, -0.1516665816, 0.0322641097, -0.0726147741, 0.2096668631, 0.5035306215, -0.0155192753, -0.1664479077, 0.0706076026, -0.0375189334, -0.0495996512, -0.5324882865, 0.003784453, -0.3056995869, -0.523784101, -0.2686622143, -0.0552677959, -0.182841152, -0.1046866924, 0.1207876727, 0.2544157505, 0.0414536595, 0.298579514, -0.1615923494, -0.0102482354, 0.0130823227, 0.0546997376, -0.089469105, 0.0576739013, 0.3235436976, 0.055472061, -0.3141050041, -0.3113206625, -0.0027125988, 0.5453400016, -0.5239101648, 0.1250553727, 0.4224225283, 0.1855461448, 0.0352299996, 0.2699259222, -0.1150505394, 0.1045579389, -0.1019803137, -0.2470866293, -0.2766982317, 0.3957055211, -0.215226233, 0.2896227539, -0.0420391299, -0.0012261511, 0.2128677666, -0.0650038719, -0.4069842398, -0.0639203191, 0.2035136521, -0.031322021, 0.3573611975, 0.0283503197, 0.1642311513, 0.0997426063, 0.0617151484, -0.1078160629, -0.4556203783, -0.173276037, -0.1620599478, 0.1470470876, -0.0821726099, -0.1966527998, 0.2791027427, 0.0727940723, -0.3431843519, -0.0373161584, 0.4923638701, 0.0939226076, -0.0151710119, 0.261850059, 0.0440332852, 0.1581647545, 0.1447544843, -0.0478183106, 0.2307638228, 0.2744839787, 0.1432124525, 0.0781845748, -0.3892543018, -0.1141837612, 0.3225951493, 0.5643663406, 0.2307516634, -0.0074927476, 0.2125403583, 0.1136692241, -0.0127277253, -0.1772307754, 0.3757174313, 0.3366526365, -0.1439671367, 0.1291631162, 0.087371707, 0.1960113943, -0.2959818542, -0.1362827569, -0.0016900979, 0.001386865, 0.1935543716, 0.2963780761, 0.1171802133, 0.0232159011, -0.02994949, -0.1630603522, 0.4087223113, -0.1278826594, 0.0309391879, 0.4737963378, -0.0006789679, 0.0457709245, 0.3533286452, 0.2377208024, 0.0006733864, 0.1627082676, 0.0224443804, 0.1393561661, 0.0614359044, -0.0373764634, -0.0052466341, -0.2839750051, 0.0158077441, 0.303702265, 0.0354407765, 0.0836518928, 0.0550176837, 0.3576853871, 0.2673794925, 0.0782650411, -0.1751665473, 0.287432611, -0.0290821604, -0.3568983376, -0.2810840011, -0.2341433167, -0.0568819419, -0.2031299621, -0.0560247302, -0.346970588, 0.3962550461, -0.2842957079, 0.3317703605, -0.0262898728, 0.2526829541, 0.0308214482, 0.2138834894, 0.0191824809, 0.1056700647, 0.343878597, -0.092038177, 0.3848396838, 0.4586825967, 0.6834431887, 0.2331957668, 0.2456311435, -0.1129714102, -0.1820156276, -0.0338710546, -0.0387642086, 0.1852032691, -0.1110439524, -0.1605180353, 0.2998466492, 0.181300208, -0.0675622821, 0.1590366811, 0.1981125027, 0.1491735727, -0.1206939295, 0.4673969448, -0.1642169654, -0.2568281889, -0.1632744968, 0.2003329992, -0.3464718461, -0.1483398229, 0.2493664026, 0.2265757024, 0.0990869403, -0.2746402025, 0.1339311898, 0.1253910214, 0.703727603, 0.1380410939, 0.0544932038, -0.0764222816, -0.1834016889, -0.573923707, -0.1766330451, 0.1114693433, -0.4577990174, 0.0147800613, -0.0284789149, 0.1749309003, -0.0576867014, -0.0228511356, -0.057602901, 0.0830656514, 0.0520928837, -0.3459966183, -0.0429478101, -0.0165246669, 0.0558007732, -0.0455077589, -0.030731529, 0.0758171529, -0.0435288474, 0.0906403586, -0.0488403961, 0.2820120752, 0.1464833915, 0.314029485, -0.0489044972, 0.2010912299, 0.4074597061, -0.1519564688, -0.323445797, -0.3913862109, -0.0676136464, -0.3365264833, 0.4239864349, -0.020409707, 0.0350307301, -0.0516272523, -0.4418331981, -0.1930160671, 0.3930756152, 0.0923597217, -0.1800708175, -0.1732860953, 0.2495716661, -0.2952670157, -0.2162279487, 0.0389366746, 0.2992433608, -0.0870985761, -0.0171057731, -0.0439770669, -0.5386335254, 0.7789409757, -0.2815497816, -0.2707872391, -0.1414671987, 0.1780967414, -0.069951646, -0.237191394, -0.6841175556, 0.1179748029, 0.1855072677, 0.077552706, -0.2221453786, 0.2276584208, -0.1803614944, -0.2749418318, -0.1646127999, 0.2249431759, 0.1434904039, -0.299071759, -0.0570986234, -0.2372343391 ]
https://github.com/huggingface/datasets/issues/2007
How to not load huggingface datasets into memory
So maybe a summary here: If I could fit a large model with batch_size = X into memory, is there a way I could train this model for huge datasets with keeping setting the same? thanks
Hi I am running this example from transformers library version 4.3.3: (Here is the full documentation https://github.com/huggingface/transformers/issues/8771 but the running command should work out of the box) USE_TF=0 deepspeed run_seq2seq.py --model_name_or_path google/mt5-base --dataset_name wmt16 --dataset_config_name ro-en --source_prefix "translate English to Romanian: " --task translation_en_to_ro --output_dir /test/test_large --do_train --do_eval --predict_with_generate --max_train_samples 500 --max_val_samples 500 --max_source_length 128 --max_target_length 128 --sortish_sampler --per_device_train_batch_size 8 --val_max_target_length 128 --deepspeed ds_config.json --num_train_epochs 1 --eval_steps 25000 --warmup_steps 500 --overwrite_output_dir (Here please find the script: https://github.com/huggingface/transformers/blob/master/examples/seq2seq/run_seq2seq.py) If you do not pass max_train_samples in above command to load the full dataset, then I get memory issue on a gpu with 24 GigBytes of memory. I need to train large-scale mt5 model on large-scale datasets of wikipedia (multiple of them concatenated or other datasets in multiple languages like OPUS), could you help me how I can avoid loading the full data into memory? to make the scripts not related to data size? In above example, I was hoping the script could work without relying on dataset size, so I can still train the model without subsampling training set. thank you so much @lhoestq for your great help in advance
36
How to not load huggingface datasets into memory Hi I am running this example from transformers library version 4.3.3: (Here is the full documentation https://github.com/huggingface/transformers/issues/8771 but the running command should work out of the box) USE_TF=0 deepspeed run_seq2seq.py --model_name_or_path google/mt5-base --dataset_name wmt16 --dataset_config_name ro-en --source_prefix "translate English to Romanian: " --task translation_en_to_ro --output_dir /test/test_large --do_train --do_eval --predict_with_generate --max_train_samples 500 --max_val_samples 500 --max_source_length 128 --max_target_length 128 --sortish_sampler --per_device_train_batch_size 8 --val_max_target_length 128 --deepspeed ds_config.json --num_train_epochs 1 --eval_steps 25000 --warmup_steps 500 --overwrite_output_dir (Here please find the script: https://github.com/huggingface/transformers/blob/master/examples/seq2seq/run_seq2seq.py) If you do not pass max_train_samples in above command to load the full dataset, then I get memory issue on a gpu with 24 GigBytes of memory. I need to train large-scale mt5 model on large-scale datasets of wikipedia (multiple of them concatenated or other datasets in multiple languages like OPUS), could you help me how I can avoid loading the full data into memory? to make the scripts not related to data size? In above example, I was hoping the script could work without relying on dataset size, so I can still train the model without subsampling training set. thank you so much @lhoestq for your great help in advance So maybe a summary here: If I could fit a large model with batch_size = X into memory, is there a way I could train this model for huge datasets with keeping setting the same? thanks
[ -0.1572741568, -0.5049954653, 0.0060413675, 0.5300238729, 0.5585084558, 0.0471686386, 0.0790676922, 0.2601301372, 0.3925335705, 0.1179506108, -0.0250126366, -0.2572236061, -0.3355447352, 0.3502959311, 0.0798836648, -0.1671073884, 0.0480983369, -0.009338446, -0.4906492829, 0.0814424232, -0.2567529678, -0.0583364554, 0.0235444382, -0.3496486247, -0.3608575463, 0.0781600922, 0.0802215859, 0.0628451034, 0.0150358239, -0.0004085448, 0.027332671, -0.0705822706, 0.1996210068, 0.4450727403, -0.00012403, 0.0955723152, 0.1058856547, -0.3430500031, -0.0113492412, -0.0202336926, -0.0401821919, -0.1584909409, 0.175910905, -0.096055828, -0.1249654964, 0.1642027944, 0.0570750944, -0.1192682758, 0.6155744791, 0.0377035365, 0.0811977014, 0.1557726264, -0.1867900938, 0.1391717792, 0.0997064784, 0.1715508848, 0.0613706894, 0.1924702376, -0.1117655635, 0.0804735571, -0.0205958728, 0.3296147287, -0.1551047713, -0.1606434584, 0.3712906241, -0.0296815503, 0.0977134854, -0.496396035, 0.0698859617, 0.2278073877, 0.3327119648, -0.1846730411, -0.2815986276, -0.2376731634, -0.2664916515, -0.2981763482, 0.0356220379, 0.3874963224, -0.1627117246, 0.1952932626, -0.56472826, -0.3583253622, -0.11732997, -0.0793810263, 0.0170947053, -0.1479888409, -0.1117731407, 0.0931010768, 0.3886774182, -0.1748270094, -0.3857373595, 0.0535071306, 0.124464348, 0.2021833658, -0.4465095401, -0.2754252255, -0.0981328338, -0.0126580605, 0.519705534, 0.0696834177, -0.084064886, 0.1435509026, 0.3678053319, -0.012455916, 0.2559289634, 0.224456355, -0.3579402864, -0.0226906203, 0.3058379889, 0.1548227966, 0.0666357726, -0.0980802104, -0.0483794585, -0.1039822847, -0.1187508032, -0.2178401798, 0.1938425452, -0.247209534, 0.1151946858, -0.1014177427, -0.0034159736, 0.1457041502, -0.0707056448, 0.5723392367, -0.1075771973, 0.2447875738, -0.0547043048, 0.1319084913, -0.404771477, 0.0199622419, -0.1732320338, 0.1808790267, -0.254978776, 0.3128550649, 0.3761708438, 0.1077364609, 0.3884444833, -0.1295558959, 0.0667766556, -0.0720062852, 0.0200992562, -0.3184736371, 0.0743140206, 0.4120984674, 0.0514297634, 0.1046673656, 0.0525585338, 0.2978248, -0.2143001109, 0.3047823608, -0.1877876371, -0.3000200987, 0.4647509456, 0.0260905828, -0.3193109334, 0.2963595986, -0.5062693357, 0.2329649925, 0.1344293952, 0.2149207294, 0.0263018887, 0.0652706847, -0.3889726996, -0.0968877375, 0.4445875287, 0.7276237011, -0.0871036276, -0.3735771179, 0.2625147402, -0.0919233859, 0.099873431, 0.6178457737, -0.0144170532, 0.0265056994, 0.0063413586, -0.3365336061, 0.0979599953, -0.1402828246, -0.3693678081, 0.2471103817, -0.2083163112, 0.1737014055, 0.2634855807, 0.196068272, -0.1570890099, 0.1254316419, -0.014241864, 0.441101104, 0.0268203039, 0.2472621351, -0.139895916, -0.5316054821, 0.1208490133, 0.2106383443, 0.2256651521, 0.0572575368, -0.1509831846, 0.5526150465, 0.0886671245, -0.1365789026, 0.1413097382, 0.4671055079, -0.0440803617, -0.1722710282, -0.0133903725, 0.0327296816, -0.5094326138, 0.2002459615, -0.2553118765, 0.032573007, -0.1079559177, -0.0101279104, 0.0486871451, -0.0930214971, 0.1028228775, -0.1937769949, -0.0928162485, -0.3027751744, 0.1868071556, -0.0771664903, -0.0579807721, 0.1618707776, 0.0533699393, 0.2807007432, -0.6293298602, -0.1864141077, 0.0876692235, -0.0823401436, 0.0509214327, 0.0869899839, -0.0571695901, -0.0752618834, 0.115538083, 0.1845806837, 0.0681404024, 0.0221211147, -0.2876870632, 0.5894070268, 0.2645462155, -0.2151781917, 0.1873770356, 0.0568237938, 0.0807584748, -0.016797848, -0.2281124294, 0.275605917, 0.0014036675, 0.3533557355, 0.0675168186, -0.243375361, -0.0153760007, -0.2704688311, -0.0966261178, -0.3189073205, 0.194817245, 0.3701254725, 0.2904978693, 0.318095237, -0.1097568348, -0.6400545835, 0.4141526818, 0.0285228789, 0.0119817453, 0.1240212247, -0.4441153705, -0.0441277921, -0.1043966338, -0.4297686815, 0.2082948983, 0.2234421968, -0.0286325682, 0.1574375033, 0.4532968998, -0.0383554287, 0.1597275287, 0.34957394, 0.2293860167, -0.0217219256, 0.0718972385, -0.1523363739, -0.1377294809, 0.1474388093, 0.0416093729, -0.2868339121, -0.3908246458, 0.0496987812, -0.1045072377, -0.1814419925, -0.2212858945, 0.2457413971, -0.4682897627, 0.1405823231, -0.0243127216, 0.1828611344, -0.0790766254, 0.1298362762, 0.134447217, 0.4491247833, 0.2074005455, -0.3838301897, 0.0398868844, 0.0210690871, 0.026876932, -0.0198071823, 0.1581044495, -0.1872716248, 0.2134436071, 0.1074106172, -0.2879981995, 0.0881514102, -0.107251361, 0.2509251833, -0.1020300612, 0.3402291834, -0.1145425141, 0.1728454679, 0.1816582233, 0.0474158861, -0.10805244, -0.1735253334, -0.0394939668, 0.0962267667, 0.059230037, 0.3814137876, -0.2071727067, -0.1616589576, -0.0630645156, -0.4113825262, 0.5235677361, 0.1085386872, -0.0144701069, 0.3826701939, 0.2527713478, 0.0553608574, -0.232365936, 0.2439748347, -0.0454037301, -0.1866943985, 0.4161212742, -0.0248941574, -0.2029851228, 0.1008602083, -0.1128138676, 0.1595998406, 0.2732191086, -0.5897439122, -0.0266851317, -0.2009780556, -0.3303202689, -0.0016953258, 0.1910513043, 0.2152051181, -0.3849978447, 0.0567034148, 0.1027523801, -0.0541195758, 0.1080615595, -0.0217948705, 0.3186096847, 0.1336808354, 0.5374328494, -0.0703099668, 0.8954893351, 0.0873750076, 0.2348250896, 0.059182547, 0.0127956588, 0.1876627505, -0.1213638186, 0.0318818837, -0.1025442258, -0.1158981398, -0.1761575639, 0.2353007793, -0.0091060605, 0.1402722746, -0.211180225, -0.116070874, 0.2083771229, -0.3471626043, 0.3769302964, 0.0272884816, 0.0852971897, -0.0675219372, -0.0631655604, 0.0236639474, -0.23260355, 0.049784869, 0.0912873447, 0.2584249973, 0.1641098112, -0.1399655342, -0.0377409942, -0.6823840737, 0.0472898334, -0.1628507823, 0.0705490485, -0.0118346391, -0.3628765643, -0.101104483, 0.1495702714, 0.7003595829, 0.2093114853, -0.0992961228, -0.1513698846, -0.6746286154, -0.3832986057, 0.0087532708, -0.1994627565, -0.1459473819, 0.1336375624, 0.3363017738, -0.298045516, -0.1955031902, 0.1403120309, 0.2218353003, -0.2850464582, -0.1815052032, -0.4925494492, -0.0061127944, -0.4370329678, 0.1137479842, 0.3473311663, 0.0887763277, -0.1772828251, 0.0635332093, -0.041717954, -0.0414817221, 0.3954692185, -0.0079495721, 0.253165096, 0.0058498029, -0.0506545939, 0.1109771132, 0.099619329, -0.0075113433, 0.6166427135, 0.294585675, -0.246039167, 0.195068121, 0.2299354821, 0.4992120564, 0.2186088115, -0.0731273592, 0.0601155944, 0.1847859621, 0.3394136131, -0.4147104323, 0.3623562157, -0.0575160533, -0.1000469923, -0.2485260963, -0.264241904, 0.5508930087, 0.2732254863, 0.160278514, -0.0658207834, -0.0929712951, -0.3220255673, 0.2822597027, 0.1427024901, 0.9183746576, -0.2307801992, 0.4209937453, 0.0939177945, 0.3291242421, 0.4919897318, -0.3210014403, 0.2628661096, -0.1850235909, -0.3845909536, 0.0541865714, -0.2425590605, -0.0895840377, 0.2086642087, -0.1083809435, 0.526911974, 0.0039229738, 0.0559044182, -0.0358922742, 0.217849195, 0.0480017848, -0.5682680607, -0.3984390199, -0.0315091945, 0.0182680488, 0.0549058914, -0.0910822079, 0.0196432788, 0.3000809252, -0.2966687977, 0.0915757194, 0.0470606089, -0.6259862781, -0.0620188862, -0.1373539865, 0.0400000364, 0.2674302757, 0.1379148215, -0.0757280439, 0.3967713416, -0.1971824169, -0.135253638, -0.2323103994, -0.0285186954, -0.2319070548, 0.13666673, 0.2972687185, 0.0881894752, -0.0716524571, 0.090536736, -0.0424037129, 0.0052058622, -0.0677169561, -0.3298542798, -0.1358570606, -0.2493799329, -0.2000972033, -0.0352985226, -0.0061108149, 0.1681898534, 0.0240747575, -0.014477252, -0.2260148525, 0.1662606448, 0.1755392849, -0.4944984615, -0.191516608, 0.6306130886, 0.0581459031, -0.1318100542, 0.3846059442, 0.2682073116, 0.0156307947, -0.1055137739, -0.0801860392, 0.4531812966, -0.4024279416, 0.2040698528, 0.1334736347, -0.1669791043, -0.2300867438, 0.1760570556, 0.0783466175, -0.2996076047, 0.0395554379, -0.0767422393, -0.6522592306, 0.5526911616, -0.1600837559, 0.1457246244, 0.2210734785, 0.0098220585, -0.1001030058, 0.3121764064, -0.177132532, -0.1239200756, -0.2733050585, 0.0264999084, 0.1547733247, -0.1664402783, 0.2666938901, 0.160771668, -0.0716531798, 0.1832022965, -0.2298358679, -0.1442574859, -0.0083223507, 0.181094408, -0.0127283242, 0.0924254581, -0.0273557641, -0.0063767578, 0.012505725, -0.1734693944, 0.6875869632, 0.0699365139, 0.1886781603, 0.0807866454, 0.0989772975, 0.0251811314, -0.3838291168, 0.1272814572, 0.0643467531, 0.1245059073, 0.3593579829, 0.0459399298, 0.0412661098, -0.0036160031, -0.4344604909, -0.0119323954, 0.4488809407, -0.1360449642, -0.0200080182, -0.0839245245, -0.2861678898, 0.2059266865, 0.0695199072, 0.1605720073, -0.2592918277, -0.006739235, 0.1479416192, 0.0630953163, -0.0758257657, 0.0062511791, 0.1269015223, -0.3414543867, 0.0104460409, 0.6033742428, 0.16430673, 0.0432599559, 0.0644858479, 0.1293432564, 0.2971206009, 0.0488735698, 0.0711294636, 0.0600030906, 0.016528789, 0.0223460011, 0.3840660751, 0.449867487, 0.4290986061, 0.1533202231, -0.015200993, 0.2711751163, -0.6284000874, 0.2273333073, -0.1653507948, -0.5089744925, -0.324837625, 0.4284757078, -0.2122270465, 0.1208922118, -0.4700194299, 0.0007582167, 0.3411903083, -0.181599915, -0.2354866862, 0.2056094855, -0.2333947569, -0.1625027657, 0.2038329691, -0.0410263762, -0.2441987395, 0.3038098514, 0.052843269, -0.3602629006, 0.2383432239, 0.2009568959, -0.0919389725, 0.1840370744, -0.0409349501, 0.3867114484, -0.0109366933, -0.3442848027, 0.0856594369, 0.1658640355, 0.1366325468, -0.0388560183, 0.0982626602, 0.0975968838, 0.0374998562, -0.0968799666, -0.0132479956, 0.2822809219, 0.0023819201, -0.1933205277, 0.1897288859, 0.1748269349, 0.5260715485, 0.0271384083, 0.0026787762, -0.0231287312, -0.0301115233, 0.0078494977, 0.133212626, -0.4083075821, 0.1105942354, 0.321596235, 0.0120332763, -0.2242654711, 0.1360992789, -0.5450907946, 0.1193028688, 0.3821794093, -0.3217526078, 0.0950523019, 0.100237295, -0.0032947217, -0.2248202413, 0.686481297, 0.1166615114, 0.084261477, -0.5442643762, 0.1897449493, -0.1960071921, 0.0287143644, -0.0612840652, 0.3867125809, 0.1448128223, 0.2428368032, -0.0364580974, 0.1784193367, -0.4886830747, -0.0889455155, -0.3430784047, -0.1544513702, -0.1451505721, -0.1504170299, -0.4410763979, 0.336538136, 0.1452549994, -0.1759844571, 0.0739882439, -0.1276943535, -0.2232113183, -0.1174628213, -0.0170454625, -0.0372444093, 0.3146266341, 0.2162882239, 0.1040516421, 0.1622670591, -0.1483355463, -0.1856829822, -0.1942181438, -0.0362631194, -0.2406353056, -0.2403431982, -0.034779381, 0.2431442589, -0.2745270729, 0.0526013784, -0.2590028644, 0.0730430633, -0.0146218557, -0.3016214073, 0.0945673212, -0.1222141087, 0.0813924596, 0.2626325488, 0.1797935367, 0.3855153024, -0.2010322213, -0.0622667745, -0.1728282422, -0.0252199098, 0.4078324139, -0.2210167348, -0.1623031348, -0.2203925252, 0.2522376776, -0.1805447489, -0.0796526223, -0.5692541003, 0.2579884231, 0.0481672473, 0.1522701234, -0.3700568974, 0.4148775041, -0.0936171189, -0.1156239957, -0.2093268633, 0.131728664, -0.0141862724, -0.151517868, -0.2511224449, -0.3791806698 ]
https://github.com/huggingface/datasets/issues/2007
How to not load huggingface datasets into memory
The `datastets` library doesn't load datasets into memory. Therefore you can load a dataset that is terabytes big without filling up your RAM. The only thing that's loaded into memory during training is the batch used in the training step. So as long as your model works with batch_size = X, then you can load an even bigger dataset and it will work as well with the same batch_size. Note that you still have to take into account that some batches take more memory than others, depending on the texts lengths. If it works for a batch with batch_size = X and with texts of maximum length, then it will work for all batches. In your case I guess that there are a few long sentences in the dataset. For those long sentences you get a memory error on your GPU because they're too long. By passing `max_train_samples` you may have taken a subset of the dataset that only contain short sentences. That's probably why in your case it worked only when you set `max_train_samples`. I'd suggest you to reduce the batch size so that the batches with long sentences can be loaded on the GPU. Let me know if that helps or if you have other questions
Hi I am running this example from transformers library version 4.3.3: (Here is the full documentation https://github.com/huggingface/transformers/issues/8771 but the running command should work out of the box) USE_TF=0 deepspeed run_seq2seq.py --model_name_or_path google/mt5-base --dataset_name wmt16 --dataset_config_name ro-en --source_prefix "translate English to Romanian: " --task translation_en_to_ro --output_dir /test/test_large --do_train --do_eval --predict_with_generate --max_train_samples 500 --max_val_samples 500 --max_source_length 128 --max_target_length 128 --sortish_sampler --per_device_train_batch_size 8 --val_max_target_length 128 --deepspeed ds_config.json --num_train_epochs 1 --eval_steps 25000 --warmup_steps 500 --overwrite_output_dir (Here please find the script: https://github.com/huggingface/transformers/blob/master/examples/seq2seq/run_seq2seq.py) If you do not pass max_train_samples in above command to load the full dataset, then I get memory issue on a gpu with 24 GigBytes of memory. I need to train large-scale mt5 model on large-scale datasets of wikipedia (multiple of them concatenated or other datasets in multiple languages like OPUS), could you help me how I can avoid loading the full data into memory? to make the scripts not related to data size? In above example, I was hoping the script could work without relying on dataset size, so I can still train the model without subsampling training set. thank you so much @lhoestq for your great help in advance
208
How to not load huggingface datasets into memory Hi I am running this example from transformers library version 4.3.3: (Here is the full documentation https://github.com/huggingface/transformers/issues/8771 but the running command should work out of the box) USE_TF=0 deepspeed run_seq2seq.py --model_name_or_path google/mt5-base --dataset_name wmt16 --dataset_config_name ro-en --source_prefix "translate English to Romanian: " --task translation_en_to_ro --output_dir /test/test_large --do_train --do_eval --predict_with_generate --max_train_samples 500 --max_val_samples 500 --max_source_length 128 --max_target_length 128 --sortish_sampler --per_device_train_batch_size 8 --val_max_target_length 128 --deepspeed ds_config.json --num_train_epochs 1 --eval_steps 25000 --warmup_steps 500 --overwrite_output_dir (Here please find the script: https://github.com/huggingface/transformers/blob/master/examples/seq2seq/run_seq2seq.py) If you do not pass max_train_samples in above command to load the full dataset, then I get memory issue on a gpu with 24 GigBytes of memory. I need to train large-scale mt5 model on large-scale datasets of wikipedia (multiple of them concatenated or other datasets in multiple languages like OPUS), could you help me how I can avoid loading the full data into memory? to make the scripts not related to data size? In above example, I was hoping the script could work without relying on dataset size, so I can still train the model without subsampling training set. thank you so much @lhoestq for your great help in advance The `datastets` library doesn't load datasets into memory. Therefore you can load a dataset that is terabytes big without filling up your RAM. The only thing that's loaded into memory during training is the batch used in the training step. So as long as your model works with batch_size = X, then you can load an even bigger dataset and it will work as well with the same batch_size. Note that you still have to take into account that some batches take more memory than others, depending on the texts lengths. If it works for a batch with batch_size = X and with texts of maximum length, then it will work for all batches. In your case I guess that there are a few long sentences in the dataset. For those long sentences you get a memory error on your GPU because they're too long. By passing `max_train_samples` you may have taken a subset of the dataset that only contain short sentences. That's probably why in your case it worked only when you set `max_train_samples`. I'd suggest you to reduce the batch size so that the batches with long sentences can be loaded on the GPU. Let me know if that helps or if you have other questions
[ -0.151876986, -0.5147147775, 0.0332164206, 0.4974527955, 0.5210763216, 0.0139151076, 0.118027322, 0.2357332855, 0.4079457223, 0.1879964024, 0.007619652, -0.2028843611, -0.2850469947, 0.3407028317, 0.0886424854, -0.1032491624, 0.053281948, 0.0866248161, -0.5714517832, 0.0523502901, -0.2737413943, -0.0161268618, 0.015972117, -0.3641574085, -0.3886542916, 0.1600883305, 0.0624869503, 0.1186245233, -0.0098638125, -0.0714206323, 0.1428124905, -0.0393949449, 0.17701675, 0.4372494221, -0.0001269822, 0.1079645231, 0.1380947381, -0.314822793, -0.0306412671, -0.0322296321, -0.0041924273, -0.2059282213, 0.2809610367, -0.1789405942, -0.150394544, 0.1292396039, -0.0043970617, -0.1768298894, 0.6732686162, 0.0866886973, 0.0589533448, 0.1535407007, -0.2452387363, 0.1667441428, 0.1576344669, 0.1976083815, 0.0586230606, 0.1164001599, -0.1049163789, 0.1034324467, 0.0304607302, 0.3367858827, -0.2480971366, -0.1271040142, 0.4123449922, 0.0033178988, 0.017605342, -0.4697834849, 0.1020781547, 0.2507305145, 0.4073412418, -0.2239231467, -0.2138442099, -0.2794690132, -0.3462488651, -0.2446084917, 0.1370271593, 0.3081845641, -0.1433693767, 0.2112533152, -0.5356805325, -0.3474310338, -0.1170951054, -0.0391615853, 0.0610946976, -0.1411524862, -0.1147685722, 0.1186082065, 0.4361446798, -0.1669550687, -0.3358581066, -0.0003865804, 0.1707514077, 0.2230679542, -0.5019468069, -0.3163247406, -0.0657730401, -0.1057259738, 0.472109735, 0.1215851307, -0.0796095133, 0.0936997309, 0.329909116, 0.0091587314, 0.284902066, 0.1574464589, -0.3003254533, -0.0072963224, 0.2969492972, 0.1490689218, 0.1434296817, -0.1105323061, -0.0333794765, -0.0507379137, -0.2047495097, -0.2591545582, 0.2845849991, -0.2782018781, 0.0794591531, -0.0892998427, -0.0343096554, 0.1701261252, -0.0699237138, 0.5180568695, -0.0827049762, 0.310235709, -0.007110869, 0.1315969378, -0.433873713, 0.01457668, -0.1941799819, 0.2515983582, -0.2240198553, 0.3322902024, 0.4116672575, 0.0499283299, 0.3797039986, -0.0956689119, 0.0674583614, -0.0763124079, 0.079663977, -0.3235813677, 0.1239140704, 0.4826918244, 0.0355792791, 0.1951070428, 0.0725167319, 0.1766029149, -0.2136323005, 0.3968871534, -0.2307302058, -0.2883963585, 0.3630971014, 0.0053726039, -0.4209288061, 0.2904184163, -0.5321800709, 0.2664293051, 0.1223287657, 0.2021841109, 0.0557636581, 0.0789673477, -0.3984466493, -0.0862807184, 0.4873940349, 0.8010214567, -0.1476058215, -0.3931112587, 0.1329435706, -0.1004580259, 0.1959774345, 0.5725108981, -0.0142799467, 0.0148476157, -0.0144559713, -0.2140351683, 0.0709259659, -0.1415774822, -0.35443452, 0.2842700183, -0.1708965451, 0.1742830127, 0.2594867349, 0.2458413392, -0.0926850885, 0.1357044578, -0.1018792987, 0.3744669557, 0.0681135654, 0.2252353132, -0.1271793693, -0.5379961133, 0.2040785253, 0.2169705331, 0.2022631317, 0.0872878358, -0.135093838, 0.6384112239, 0.023844799, -0.123322688, 0.1502556354, 0.5214671493, -0.0297723506, -0.096215032, -0.010851657, -0.0647931844, -0.5006046295, 0.1989261359, -0.0586789884, 0.0444425195, -0.1048357189, 0.0006818504, 0.0573625825, -0.1273259073, 0.0957004204, -0.1771862656, -0.1211932302, -0.2916912436, 0.1514545381, -0.1347027123, -0.0903469771, 0.1488620788, -0.0584072135, 0.2972844243, -0.6091179848, -0.1088677719, 0.1102920547, -0.1234868169, 0.0259959679, 0.1248041913, -0.088215135, -0.0845848992, 0.1067790762, 0.2415026128, 0.1124196947, 0.0178393889, -0.2222641557, 0.6307321191, 0.2434310019, -0.3127700984, 0.1205130517, 0.0697666332, 0.1251270026, 0.0252607353, -0.1785959601, 0.1950397044, -0.1331375986, 0.3484588861, 0.0058569536, -0.2301436812, -0.035879679, -0.2495761812, -0.1238653511, -0.3175208867, 0.2297709882, 0.3747281432, 0.3159516752, 0.3822626173, -0.130163908, -0.6248892546, 0.4318445623, -0.001992566, 0.0073698056, 0.1488063633, -0.4452289045, -0.0800922289, -0.0596904494, -0.3747642338, 0.2052790523, 0.2200760692, -0.0135830296, 0.1306918114, 0.408251822, -0.0513369888, 0.1627494544, 0.3493758738, 0.1488738209, -0.0548446886, -0.0312598869, -0.1541600525, -0.1904211193, 0.2100088596, 0.0270097461, -0.2555872798, -0.42844522, 0.054600846, -0.1863783002, -0.1533458084, -0.1971438825, 0.205414623, -0.4946784377, 0.1187362522, -0.0151104601, 0.1751285195, -0.0662438348, 0.1509773582, 0.1996800452, 0.4412361979, 0.1918816864, -0.4602295458, -0.005720932, 0.0038937745, 0.0292235464, -0.0567871332, 0.1562751383, -0.1057108864, 0.203538239, 0.0814276561, -0.2594137192, 0.0631289259, -0.1128868386, 0.241617769, -0.1343261898, 0.304771632, -0.0908697993, 0.2014539838, 0.184603259, 0.0711598545, -0.1057425812, -0.1495923847, -0.032635808, 0.1421229541, 0.0993308499, 0.3976772428, -0.3058064282, -0.2062706649, -0.0010527495, -0.3736867905, 0.4215455353, 0.101179637, -0.0064922362, 0.3571302891, 0.2769919634, 0.0848625675, -0.1952382326, 0.2956118882, -0.090510115, -0.2000134587, 0.4355370998, 0.0201415941, -0.2268255949, 0.2055978179, -0.0464503504, 0.1957229972, 0.256519407, -0.6173762679, -0.0449290909, -0.2450658679, -0.3239590526, -0.0527185313, 0.2297548056, 0.2915317118, -0.3330808878, 0.0619431548, 0.0414182469, -0.1222939715, 0.0963735059, -0.0428848453, 0.2026364505, 0.200297296, 0.574306488, -0.0909151956, 0.9312593937, 0.1241061017, 0.1804885715, 0.0755284503, -0.0374019742, 0.2525524795, -0.1314368248, 0.0153978514, -0.1186561957, -0.0058347168, -0.1430699974, 0.2657729983, -0.025503831, 0.1975008845, -0.2431698292, 0.0442304984, 0.153037101, -0.2962440252, 0.3551989198, -0.0067101372, 0.1253746301, -0.040326681, -0.0258748736, 0.0108091487, -0.2412953973, 0.012305907, 0.1530931294, 0.2456726134, 0.1957313567, -0.1906871349, -0.0760543123, -0.6258147359, 0.0005807774, -0.1969397664, 0.099386096, -0.0586042032, -0.3489129543, -0.0277031865, 0.1523526609, 0.6768872142, 0.2532057166, -0.172989592, -0.1487429887, -0.7294563055, -0.4025167227, -0.0095960489, -0.2291606516, -0.1238155365, 0.0738099664, 0.3609039187, -0.3914929628, -0.2916172445, 0.073306039, 0.2556803226, -0.2727661431, -0.153866753, -0.5318117738, -0.0920723975, -0.4376603067, 0.0552046299, 0.3393110931, 0.0870727301, -0.1991934329, 0.0410293564, -0.0185952727, -0.0940065607, 0.413297981, -0.0433463268, 0.2744604647, -0.0019243661, -0.0136770159, 0.1732081324, 0.1116560996, -0.0193673857, 0.652043283, 0.314073205, -0.1921578497, 0.1988085955, 0.2186890244, 0.4826211333, 0.2193188071, -0.1357712299, 0.1231536418, 0.1372128278, 0.2870838046, -0.4672870934, 0.3837449849, 0.0091919694, -0.0902185589, -0.1464428157, -0.3138220906, 0.51893574, 0.3223371208, 0.1545019001, -0.0994460881, 0.0033903299, -0.2873596549, 0.1786359698, 0.1093032658, 0.9667977691, -0.2780707777, 0.4263839722, 0.0963514075, 0.3156808615, 0.6530101299, -0.2819086313, 0.2129283696, -0.1729736775, -0.3770292103, 0.0020606345, -0.2352293581, -0.0268046409, 0.2167586684, -0.0766806528, 0.4903029203, 0.0245776288, 0.2099644691, -0.0258126631, 0.2198755443, 0.1225687936, -0.5316357613, -0.3666522205, -0.0411538407, -0.0330704004, 0.0237535294, -0.0148276007, 0.0282775983, 0.2234194428, -0.371751219, 0.0953892544, 0.057257466, -0.4754977822, -0.0344234966, -0.117082499, 0.0182391666, 0.3291780949, 0.2111404091, -0.08042375, 0.3448341191, -0.2216808051, -0.216955632, -0.3277769387, -0.0226130895, -0.2501813173, 0.1860279739, 0.2770848572, 0.073189579, -0.0908859, 0.1434044689, -0.0290259011, -0.0290764533, -0.0541499741, -0.2843362987, -0.0897050425, -0.2674396038, -0.2032888532, 0.0334840082, 0.0284728464, 0.1863416284, 0.0086722272, 0.0532346144, -0.2010973841, 0.151986897, 0.1226778999, -0.4970638454, -0.1683167368, 0.6233403683, 0.0827038065, -0.0550157987, 0.4000042677, 0.2361920774, -0.0242860001, -0.1113120839, -0.1081457436, 0.374609679, -0.3981400132, 0.1701201051, 0.144852072, -0.1961883754, -0.2891499102, 0.1320088804, 0.0303239617, -0.2681393027, -0.0012038985, -0.0147275878, -0.5990897417, 0.5723326206, -0.1569625735, 0.2224692404, 0.2193521559, 0.013669733, -0.1739605367, 0.2325650305, -0.1629931331, -0.0749226958, -0.3024335504, 0.0509451777, 0.1844852716, -0.1453208327, 0.2424791455, 0.0973963812, -0.0883139521, 0.1387360841, -0.2038184702, -0.1181401685, 0.038550619, 0.2056159973, 0.0101962201, 0.03452117, -0.0567131415, -0.0300880391, -0.0445918813, -0.2133755833, 0.6652673483, 0.0559382774, 0.151523456, 0.2013331205, 0.1088072285, 0.0293841045, -0.4303304553, 0.1400624514, 0.0157281104, 0.1691091657, 0.2504600286, 0.0828847736, 0.1003700048, -0.0310394, -0.4541806281, 0.0629144609, 0.4600509703, -0.1720416695, -0.0807558075, -0.0880516917, -0.2382047772, 0.216297105, 0.0730879158, 0.2468602955, -0.2693392038, -0.041819416, 0.1638187915, 0.0239938684, -0.0863867626, -0.0251842346, 0.099135004, -0.310521543, 0.0191547591, 0.6123441458, 0.1744194776, 0.0566273443, 0.0871607661, 0.1088967174, 0.30702281, 0.1072299927, 0.0915318355, 0.1431959718, -0.037750233, 0.0073171882, 0.2631458044, 0.4207815528, 0.3498209119, 0.2286444157, -0.0336088426, 0.3077253699, -0.5739452839, 0.2216340601, -0.2341078222, -0.4970017374, -0.3280583918, 0.4078505933, -0.1767876297, 0.0454706177, -0.4919362664, 0.0969318599, 0.2620433271, -0.1557284892, -0.2288412601, 0.1897574663, -0.1993207932, -0.1496073306, 0.1461617351, -0.0007467567, -0.3564025462, 0.2511366606, 0.0528330915, -0.3649170697, 0.3265803158, 0.1220587492, -0.1009768844, 0.1410528868, -0.0528255366, 0.4061152339, -0.0852796361, -0.2893259227, 0.0562762134, 0.1439653486, 0.1041061059, 0.0213183053, 0.1177446619, 0.0637093484, 0.0304468479, -0.0880023763, -0.017703183, 0.2320955843, -0.0181747619, -0.1179955527, 0.2010704726, 0.0862520635, 0.4885618091, 0.0414118171, -0.0412042141, -0.0073164171, -0.1223622411, -0.0063679041, 0.1090925857, -0.4597765803, 0.1422397196, 0.2558187842, 0.026440287, -0.218346864, 0.1529574245, -0.5634791851, -0.0025337101, 0.3973645866, -0.2394969314, 0.0816485509, 0.0570385121, -0.012404507, -0.224711746, 0.7063223124, 0.1493251622, 0.1009956449, -0.4904620349, 0.0878692195, -0.2523313463, 0.0116968118, -0.0564800501, 0.3043070138, 0.1508431137, 0.2124760896, -0.0562988967, 0.2239231765, -0.5081441402, -0.0757126659, -0.3126009703, -0.1842351407, -0.0984203666, -0.1548344791, -0.4467174113, 0.2984541059, 0.1048928052, -0.1687079221, 0.0945811346, -0.1009203419, -0.237528652, -0.0783402547, 0.0572414212, -0.0377934463, 0.3225001395, 0.2368446141, 0.1222199425, 0.2072189897, -0.1605269611, -0.1555766016, -0.1473955363, -0.092762813, -0.2573649287, -0.2115676999, -0.0741405934, 0.2012785822, -0.3087121248, 0.0707919598, -0.2480507344, 0.0743220523, -0.0339074843, -0.2258392721, 0.0630182624, -0.1184450537, -0.0050126673, 0.2903842032, 0.12959297, 0.3474194407, -0.1978290677, 0.0190578662, -0.1749930382, -0.0600227378, 0.4449536204, -0.2349969894, -0.1213462129, -0.2829075456, 0.2263377458, -0.0986072421, -0.1131579354, -0.5062596798, 0.1941123456, 0.0572319441, 0.1676396877, -0.4304611385, 0.4660094976, -0.1316937059, -0.1142586991, -0.212093845, 0.1924822032, 0.0097147506, -0.0852978379, -0.1749818474, -0.4122220576 ]
https://github.com/huggingface/datasets/issues/2005
Setting to torch format not working with torchvision and MNIST
Adding to the previous information, I think `torch.utils.data.DataLoader` is doing some conversion. What I tried: ```python train_dataset = load_dataset('mnist') ``` I don't use any `map` or `set_format` or any `transform`. I use this directly, and try to load batches using the `DataLoader` with batch size 2, I get an output like this for the `image`: ``` [[tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor... ``` For `label`, it works fine: ``` tensor([7, 6]) ``` Note that I didn't specify conversion to torch tensors anywhere. Basically, there are two problems here: 1. `dataset.map` doesn't return tensor type objects, even though it uses the transforms, the grayscale conversion in transform was done, but the output was lists only. 2. The `DataLoader` performs its own conversion, which may be not desired. I understand that we can't change `DataLoader` because it is a torch functionality, however, is there a way we can handle image data to allow using it with torch `DataLoader` and `torchvision` properly? I think if the `image` was a torch tensor (N,H,W,C), or a list of torch tensors (H,W,C), before it is passed to `DataLoader`, then we might not face this issue.
Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list.
202
Setting to torch format not working with torchvision and MNIST Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list. Adding to the previous information, I think `torch.utils.data.DataLoader` is doing some conversion. What I tried: ```python train_dataset = load_dataset('mnist') ``` I don't use any `map` or `set_format` or any `transform`. I use this directly, and try to load batches using the `DataLoader` with batch size 2, I get an output like this for the `image`: ``` [[tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor([0, 0]), tensor... ``` For `label`, it works fine: ``` tensor([7, 6]) ``` Note that I didn't specify conversion to torch tensors anywhere. Basically, there are two problems here: 1. `dataset.map` doesn't return tensor type objects, even though it uses the transforms, the grayscale conversion in transform was done, but the output was lists only. 2. The `DataLoader` performs its own conversion, which may be not desired. I understand that we can't change `DataLoader` because it is a torch functionality, however, is there a way we can handle image data to allow using it with torch `DataLoader` and `torchvision` properly? I think if the `image` was a torch tensor (N,H,W,C), or a list of torch tensors (H,W,C), before it is passed to `DataLoader`, then we might not face this issue.
[ -0.1273753047, -0.3511653543, -0.0179326311, 0.3536090851, 0.4760026336, 0.0887137353, 0.7330292463, 0.3804347813, 0.0655257925, -0.0380426571, -0.1111534089, 0.3819510639, -0.2329690456, -0.3339343965, 0.0351092033, -0.56149441, 0.2225798368, -0.0998275802, -0.2807980776, -0.0613473542, -0.2431338727, 0.0354893208, -0.2184972465, -0.1084965691, -0.5479356647, 0.0440960862, -0.0195555668, -0.0765686631, -0.0622991286, -0.1391801089, 0.1223466247, -0.1744965017, 0.4444538355, 0.7012932897, -0.0001277011, 0.0703017637, 0.3642728031, -0.1737782061, 0.0499993414, -0.161013633, 0.0400471762, -0.2573826909, 0.072776489, -0.0946833491, -0.2234944403, -0.1708453, 0.0959102288, -0.1790296137, -0.0281420499, 0.4191690087, 0.0771299899, 0.2790107131, 0.2466612458, 0.1386306435, 0.22781156, 0.5182866454, -0.273437947, -0.056117028, 0.2261502147, 0.3754776716, 0.1240048036, 0.5647348166, -0.2913349569, -0.0362339392, 0.2669452727, 0.1290050745, -0.1014554128, -0.3140053451, 0.0491572432, 0.0894629955, 0.4219443202, -0.1494392157, -0.0807788968, -0.1436638385, -0.1439783871, -0.1273806691, 0.040591076, 0.2803193629, -0.0718411431, -0.1872384697, -0.5392424464, 0.3052917719, -0.1486236155, 0.2131593376, -0.2805242538, -0.0034206749, -0.1381632388, 0.2928087413, -0.0471191294, -0.1127126515, 0.193081066, -0.1234149858, 0.1300754547, -0.0098257521, -0.14363195, -0.0534906499, -0.3895993531, -0.3150125742, -0.2001478821, -0.1602652222, 0.1664854437, 0.1392757148, -0.1163955703, 0.1280710101, 0.182633087, 0.2680341601, 0.105782561, 0.3207030296, -0.0858925655, -0.2895815372, -0.0469193235, 0.0877334625, -0.2962266505, -0.4357524216, 0.1545345932, 0.3252967596, 0.245221287, 0.0687427744, 0.1298556328, -0.3239411414, -0.1089226305, -0.009586527, 0.0752253011, 0.2850383818, -0.118679136, 0.2439045608, 0.4804832935, 0.397203058, -0.1538182348, 0.0695628896, 0.0250724126, 0.0315210149, -0.4404955208, -0.2856985331, 0.1534095705, -0.1177731901, 0.1000702605, 0.0374316536, 0.0464156754, 0.1006964073, 0.073496595, -0.1858698726, 0.6246293187, 0.1476473957, -0.1944741011, 0.2767930329, 0.2709067166, 0.5297800303, -0.3042984605, 0.2565315962, -0.5095698833, 0.065252535, -0.0230915733, -0.0145439208, 0.218655169, -0.0207218453, -0.21216245, 0.0158290844, 0.5923122764, -0.0836781189, 0.2734875381, -0.5791625381, 0.0949641094, -0.1913349926, 0.0341524445, 0.0636693314, -0.2047153264, -0.0523584448, 0.3863435686, 0.091949828, 0.3154586852, 0.1602820307, 0.0510832109, 0.0798702538, -0.2253529727, -0.2350506932, 0.3363234401, -0.3768563569, 0.0920385197, -0.0176934246, 0.0938790515, -0.0638039783, 0.1120189652, 0.3361780643, 0.0326006748, -0.1280014962, 0.0294486172, 0.1963144988, -0.1661821902, 0.1402870268, 0.0773596242, 0.1913028955, 0.1933744848, 0.0350064598, -0.0156837292, 0.2076538354, -0.2216716707, 0.1775766164, -0.0542802736, -0.0747132748, 0.0711774975, 0.0403781086, -0.3698906004, -0.0121967876, -0.0474697649, 0.1864667982, -0.2331001908, -0.0487212278, 0.023635203, 0.0822170898, 0.0582790896, 0.0479247868, 0.0049779508, -0.1919566393, -0.1822059304, -0.1390273869, -0.0032421914, 0.0922106206, -0.2094768882, -0.261724323, -0.0523434915, -0.1232490093, 0.1783040464, 0.0588377379, -0.3590368927, 0.0510256998, 0.0192736685, -0.3653306365, -0.2013597339, 0.1733922958, 0.2676690817, -0.0996205956, -0.042234946, 0.1916034222, 0.0632891431, 0.1146329641, -0.5482743979, 0.0834657177, 0.1778421402, -0.2469699979, 0.2043909729, 0.21627976, 0.148533985, -0.2755034566, -0.1960351765, 0.4387867153, 0.1604105979, 0.3159126043, -0.3300259113, 0.1161018088, -0.0726466849, -0.0394020006, -0.1906338334, -0.0408079401, -0.2772819102, 0.0730236918, -0.1318594962, 0.0129819224, -0.456918478, -0.0449361987, 0.2962616384, 0.0887638927, 0.1758723557, -0.0012161626, -0.3998460472, 0.2133122683, 0.1771266311, -0.6013534069, 0.2978382111, -0.0043618386, 0.1892073452, -0.1050186977, 0.095583491, -0.1625432819, 0.2484446168, 0.1140421703, 0.0907485485, -0.1994648427, 0.1418524981, -0.1079259813, 0.0268464927, 0.0263705309, -0.1406288743, -0.2336928695, -0.3589506149, 0.2713824809, -0.1661831439, -0.1345184743, -0.4018547535, -0.2621857822, 0.0360562503, -0.0740049183, -0.082333751, 0.1507584006, 0.1855680048, 0.1904348731, 0.2634178698, -0.1818944663, 0.3743163645, -0.4130294323, -0.035354875, -0.0750098228, -0.286796093, -0.0991648808, 0.0896559656, -0.5234106183, 0.0914844051, -0.2289900333, -0.0931909382, -0.2501759827, 0.0135479644, 0.1418222338, -0.2678501606, -0.2850028276, 0.3085912764, 0.1939282864, -0.1424821913, 0.0406621695, 0.2663511932, 0.0103071555, 0.0469012447, 0.1537835598, -0.0896200985, 0.1165603474, -0.0632982552, -0.1767407805, -0.0966179743, -0.075061664, -0.070416607, -0.0217598137, 0.0633770078, 0.3462583721, 0.372183919, -0.0898906365, -0.0520421751, 0.0356090553, 0.0629648119, -0.3976877034, 0.5225031972, -0.2261542529, -0.3608260751, 0.1192018762, 0.0238558389, 0.0651470646, 0.4862686098, 0.060522791, 0.0497318283, 0.0117822066, -0.0789449736, 0.2525925934, 0.2211973071, 0.3510199785, -0.0911250561, 0.0191657748, -0.1647070944, 0.0154164825, -0.1018714905, -0.0632553846, 0.6088866591, 0.1850842088, 0.2399428785, 0.0992584452, 0.6996648312, -0.0611371584, -0.7380948067, 0.2168068886, -0.242509678, 0.1921667606, -0.1181218103, -0.3539583385, 0.3988562822, -0.2094198763, 0.0643741786, -0.0859674439, -0.024907032, -0.2391579151, -0.0902244151, 0.3573616743, -0.3172068596, -0.1585739851, 0.4044299424, -0.1447023898, 0.2763730288, -0.2313425988, 0.3245900273, -0.2609262168, -0.2137925476, 0.0600569248, 0.4487719536, 0.1385134459, 0.0417248979, -0.3342843056, -0.2166966051, -0.1432270408, 0.3568275571, 0.1195773706, 0.5672698021, -0.0980362967, -0.0744651258, 0.1015565023, 0.2413697243, 0.8307590485, 0.0455573462, -0.0904591605, 0.1514422297, -0.3478347957, -0.4549783468, -0.1022293717, -0.0514177196, 0.0906814784, 0.171690315, 0.1203863472, -0.0910536647, -0.1833340377, -0.0058328966, 0.1955551356, -0.0551247038, 0.0347188041, -0.2269114703, 0.058757659, -0.1296496391, -0.1552832723, 0.2211825401, 0.0296756551, 0.0051617255, -0.3081283569, -0.3262304068, -0.1266996413, 0.1824819148, -0.1330122203, 0.4110674262, 0.0992513523, -0.1780855954, 0.076906763, 0.5561057329, 0.4184041321, -0.0389392413, -0.1187734976, 0.0806434527, 0.2931110561, 0.1064323112, 0.3002042174, 0.320822835, -0.0618730187, -0.4396643341, -0.2268486619, -0.1938148439, -0.3305326402, 0.3972931504, 0.4080632627, 0.0989354551, -0.4953554273, -0.4921705425, 0.3861900568, 0.2937192619, 0.1958300769, 0.2045917213, -0.5417593122, -0.4009674489, 0.0781785697, 0.4662418664, 0.8556217551, -0.037078727, 0.3702827692, 0.0315655693, 0.0108071193, 0.1721023768, -0.0018886278, 0.4117948115, -0.3542813957, 0.1392895281, -0.1648537517, -0.3125495315, 0.2525228262, -0.060203135, -0.2439696491, 0.0425363369, -0.3494715691, 0.1936195642, -0.1256936193, -0.0828530714, -0.0498264618, -0.4714174271, 0.1878736466, 0.0154520553, -0.0825134888, 0.2617389858, 0.1111611798, -0.1636207998, -0.3798605204, 0.0616962239, -0.0762221143, -0.0150117185, -0.2459690571, -0.1632432491, -0.0243102051, -0.7298656702, 0.0586798526, 0.4961580336, 0.3345546722, -0.160566479, -0.0478368364, 0.1396413594, 0.4438471496, 0.1629004925, -0.0990172699, -0.3401843011, 0.2853403986, 0.0973753631, 0.1843320727, 0.1086379662, 0.0681485757, 0.2105205804, -0.577789247, 0.0372510366, 0.3060290217, -0.3449506164, -0.3229845464, -0.1984502971, 0.0491850227, 0.0381633341, 0.0286184791, 0.124488771, -0.0389032736, 0.2072432339, -0.0415120944, -0.2264618576, 0.1328899711, 0.4523314238, 0.112983726, -0.3500464261, 0.3907569349, 0.3549591601, -0.0447779372, -0.0437441096, 0.4166942239, 0.6353191733, -0.3456966281, 0.0994976684, -0.1027166471, -0.1569870114, -0.0110735875, 0.5430940986, -0.2343174964, -0.1309778541, -0.2389573902, -0.0408173315, -0.4308937788, 0.0108135957, -0.3162982762, 0.456630528, -0.0432226621, 0.3627102971, 0.210505724, -0.1873493046, -0.1441360116, -0.2586487532, 0.1723508388, 0.3679335117, -0.2471824437, 0.2187612951, -0.1269584745, -0.1220230311, -0.0362523533, 0.0260314047, -0.2497397214, -0.0333907679, -0.0576779619, 0.1773060858, 0.0666143522, -0.1135402918, -0.0735467896, -0.1736695915, -0.1385810077, -0.2681719065, -0.037718121, 0.1109212413, -0.11599949, 0.3531612456, -0.178366214, 0.2312256396, 0.3186765909, -0.2700001597, -0.1026224792, 0.0358713232, 0.2229627371, 0.0600504763, 0.0045319153, -0.0615568496, -0.2772366107, 0.1125916764, 0.1652028263, 0.2549746037, 0.2046174854, -0.0999964103, 0.1091783047, -0.0438066572, 0.2041842341, 0.1012554616, -0.1718705595, -0.050828699, 0.0603729896, -0.0076234438, 0.1006219834, 0.1449991316, 0.0388691351, 0.1252815872, -0.0834641606, 0.275578022, 0.0665585697, 0.3113947809, -0.3705078661, 0.0451425537, 0.4178565443, -0.2410733104, 0.2350862026, 0.4640147686, 0.0147997756, 0.1930496842, 0.290704608, 0.1093435511, -0.1187017635, 0.3226963878, 0.3945167661, 0.820430994, 0.5895959139, 0.0837696865, 0.2746027708, 0.0992569551, -0.1536075622, -0.2072515339, 0.2358236462, 0.3919682801, 0.0188666489, 0.1856931895, -0.2407990843, -0.4871240854, 0.225882113, 0.1217747778, -0.1946178228, -0.082223542, -0.6648060083, 0.0118752681, 0.1358262002, -0.1866595894, -0.1797155738, -0.0501377247, 0.2205908448, 0.2597535551, -0.1032206789, -0.1609123051, -0.1724743992, 0.0691012219, 0.037529368, -0.007329775, 0.1697572321, -0.1368460655, 0.1617608517, 0.2448244244, 0.1969081759, 0.284953326, 0.4870801568, -0.1681717485, -0.1598939151, -0.0105530387, -0.1923659146, 0.0899016932, 0.066711925, 0.031533774, -0.1532076597, -0.0149563281, 0.0084625762, 0.0386277921, 0.0314605534, -0.0940808728, -0.2182596475, 0.1676249504, 0.3055749238, -0.3637773693, -0.1490927637, -0.0998983905, -0.2466560602, -0.3483100832, -0.2655346692, 0.5327388048, 0.0278958473, 0.1280099303, 0.1421680599, -0.0421595387, 0.0487859175, 0.1574119478, -0.121556811, 0.0775766447, -0.1540937126, 0.1359660923, -0.0858048201, 0.0319104381, 0.1184747368, -0.3834479749, -0.0188493319, -0.0391645581, 0.2425420135, 0.0646747723, 0.2020902038, -0.0983472839, 0.4987450838, 0.6146567464, -0.1336154193, -0.1414809078, -0.1304193139, 0.3706512451, 0.0733085498, -0.0774656981, 0.0219215602, 0.1024274155, 0.0065069334, -0.3420648277, -0.2554903924, -0.0199823231, 0.3041450083, 0.3512826264, 0.0932883546, 0.3203133047, -0.0192206632, 0.0484100245, -0.2411341518, 0.0504153185, -0.1276014, 0.0096705668, -0.0228027813, 0.5810170174, -0.224402234, -0.059342429, -0.4136501551, 0.4290263653, 0.0905311108, -0.3388552368, -0.0805192441, 0.3583999276, -0.3173208535, -0.2010883093, 0.226195246, 0.410022229, 0.1513598859, 0.1943574995, -0.5254407525, -0.4069116116, 0.4472022951, -0.4417079389, -0.5069123507, 0.0290744491, -0.3133937716, 0.0679039732, 0.4964230061, -0.4710497558, -0.1491341293, 0.0015052542, -0.080827713, -0.0916047096, -0.0981937125, 0.2610401213, 0.0151107861, -0.2518463135, 0.1790072173, 0.1764502972, -0.0228159856, -0.4204159677, -0.2753599882 ]
https://github.com/huggingface/datasets/issues/2005
Setting to torch format not working with torchvision and MNIST
What's the feature types of your new dataset after `.map` ? Can you try with adding `features=` in the `.map` call in order to set the "image" feature type to `Array2D` ? The default feature type is lists of lists, we've not implemented shape verification to use ArrayXD instead of nested lists yet
Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list.
53
Setting to torch format not working with torchvision and MNIST Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list. What's the feature types of your new dataset after `.map` ? Can you try with adding `features=` in the `.map` call in order to set the "image" feature type to `Array2D` ? The default feature type is lists of lists, we've not implemented shape verification to use ArrayXD instead of nested lists yet
[ -0.1273753047, -0.3511653543, -0.0179326311, 0.3536090851, 0.4760026336, 0.0887137353, 0.7330292463, 0.3804347813, 0.0655257925, -0.0380426571, -0.1111534089, 0.3819510639, -0.2329690456, -0.3339343965, 0.0351092033, -0.56149441, 0.2225798368, -0.0998275802, -0.2807980776, -0.0613473542, -0.2431338727, 0.0354893208, -0.2184972465, -0.1084965691, -0.5479356647, 0.0440960862, -0.0195555668, -0.0765686631, -0.0622991286, -0.1391801089, 0.1223466247, -0.1744965017, 0.4444538355, 0.7012932897, -0.0001277011, 0.0703017637, 0.3642728031, -0.1737782061, 0.0499993414, -0.161013633, 0.0400471762, -0.2573826909, 0.072776489, -0.0946833491, -0.2234944403, -0.1708453, 0.0959102288, -0.1790296137, -0.0281420499, 0.4191690087, 0.0771299899, 0.2790107131, 0.2466612458, 0.1386306435, 0.22781156, 0.5182866454, -0.273437947, -0.056117028, 0.2261502147, 0.3754776716, 0.1240048036, 0.5647348166, -0.2913349569, -0.0362339392, 0.2669452727, 0.1290050745, -0.1014554128, -0.3140053451, 0.0491572432, 0.0894629955, 0.4219443202, -0.1494392157, -0.0807788968, -0.1436638385, -0.1439783871, -0.1273806691, 0.040591076, 0.2803193629, -0.0718411431, -0.1872384697, -0.5392424464, 0.3052917719, -0.1486236155, 0.2131593376, -0.2805242538, -0.0034206749, -0.1381632388, 0.2928087413, -0.0471191294, -0.1127126515, 0.193081066, -0.1234149858, 0.1300754547, -0.0098257521, -0.14363195, -0.0534906499, -0.3895993531, -0.3150125742, -0.2001478821, -0.1602652222, 0.1664854437, 0.1392757148, -0.1163955703, 0.1280710101, 0.182633087, 0.2680341601, 0.105782561, 0.3207030296, -0.0858925655, -0.2895815372, -0.0469193235, 0.0877334625, -0.2962266505, -0.4357524216, 0.1545345932, 0.3252967596, 0.245221287, 0.0687427744, 0.1298556328, -0.3239411414, -0.1089226305, -0.009586527, 0.0752253011, 0.2850383818, -0.118679136, 0.2439045608, 0.4804832935, 0.397203058, -0.1538182348, 0.0695628896, 0.0250724126, 0.0315210149, -0.4404955208, -0.2856985331, 0.1534095705, -0.1177731901, 0.1000702605, 0.0374316536, 0.0464156754, 0.1006964073, 0.073496595, -0.1858698726, 0.6246293187, 0.1476473957, -0.1944741011, 0.2767930329, 0.2709067166, 0.5297800303, -0.3042984605, 0.2565315962, -0.5095698833, 0.065252535, -0.0230915733, -0.0145439208, 0.218655169, -0.0207218453, -0.21216245, 0.0158290844, 0.5923122764, -0.0836781189, 0.2734875381, -0.5791625381, 0.0949641094, -0.1913349926, 0.0341524445, 0.0636693314, -0.2047153264, -0.0523584448, 0.3863435686, 0.091949828, 0.3154586852, 0.1602820307, 0.0510832109, 0.0798702538, -0.2253529727, -0.2350506932, 0.3363234401, -0.3768563569, 0.0920385197, -0.0176934246, 0.0938790515, -0.0638039783, 0.1120189652, 0.3361780643, 0.0326006748, -0.1280014962, 0.0294486172, 0.1963144988, -0.1661821902, 0.1402870268, 0.0773596242, 0.1913028955, 0.1933744848, 0.0350064598, -0.0156837292, 0.2076538354, -0.2216716707, 0.1775766164, -0.0542802736, -0.0747132748, 0.0711774975, 0.0403781086, -0.3698906004, -0.0121967876, -0.0474697649, 0.1864667982, -0.2331001908, -0.0487212278, 0.023635203, 0.0822170898, 0.0582790896, 0.0479247868, 0.0049779508, -0.1919566393, -0.1822059304, -0.1390273869, -0.0032421914, 0.0922106206, -0.2094768882, -0.261724323, -0.0523434915, -0.1232490093, 0.1783040464, 0.0588377379, -0.3590368927, 0.0510256998, 0.0192736685, -0.3653306365, -0.2013597339, 0.1733922958, 0.2676690817, -0.0996205956, -0.042234946, 0.1916034222, 0.0632891431, 0.1146329641, -0.5482743979, 0.0834657177, 0.1778421402, -0.2469699979, 0.2043909729, 0.21627976, 0.148533985, -0.2755034566, -0.1960351765, 0.4387867153, 0.1604105979, 0.3159126043, -0.3300259113, 0.1161018088, -0.0726466849, -0.0394020006, -0.1906338334, -0.0408079401, -0.2772819102, 0.0730236918, -0.1318594962, 0.0129819224, -0.456918478, -0.0449361987, 0.2962616384, 0.0887638927, 0.1758723557, -0.0012161626, -0.3998460472, 0.2133122683, 0.1771266311, -0.6013534069, 0.2978382111, -0.0043618386, 0.1892073452, -0.1050186977, 0.095583491, -0.1625432819, 0.2484446168, 0.1140421703, 0.0907485485, -0.1994648427, 0.1418524981, -0.1079259813, 0.0268464927, 0.0263705309, -0.1406288743, -0.2336928695, -0.3589506149, 0.2713824809, -0.1661831439, -0.1345184743, -0.4018547535, -0.2621857822, 0.0360562503, -0.0740049183, -0.082333751, 0.1507584006, 0.1855680048, 0.1904348731, 0.2634178698, -0.1818944663, 0.3743163645, -0.4130294323, -0.035354875, -0.0750098228, -0.286796093, -0.0991648808, 0.0896559656, -0.5234106183, 0.0914844051, -0.2289900333, -0.0931909382, -0.2501759827, 0.0135479644, 0.1418222338, -0.2678501606, -0.2850028276, 0.3085912764, 0.1939282864, -0.1424821913, 0.0406621695, 0.2663511932, 0.0103071555, 0.0469012447, 0.1537835598, -0.0896200985, 0.1165603474, -0.0632982552, -0.1767407805, -0.0966179743, -0.075061664, -0.070416607, -0.0217598137, 0.0633770078, 0.3462583721, 0.372183919, -0.0898906365, -0.0520421751, 0.0356090553, 0.0629648119, -0.3976877034, 0.5225031972, -0.2261542529, -0.3608260751, 0.1192018762, 0.0238558389, 0.0651470646, 0.4862686098, 0.060522791, 0.0497318283, 0.0117822066, -0.0789449736, 0.2525925934, 0.2211973071, 0.3510199785, -0.0911250561, 0.0191657748, -0.1647070944, 0.0154164825, -0.1018714905, -0.0632553846, 0.6088866591, 0.1850842088, 0.2399428785, 0.0992584452, 0.6996648312, -0.0611371584, -0.7380948067, 0.2168068886, -0.242509678, 0.1921667606, -0.1181218103, -0.3539583385, 0.3988562822, -0.2094198763, 0.0643741786, -0.0859674439, -0.024907032, -0.2391579151, -0.0902244151, 0.3573616743, -0.3172068596, -0.1585739851, 0.4044299424, -0.1447023898, 0.2763730288, -0.2313425988, 0.3245900273, -0.2609262168, -0.2137925476, 0.0600569248, 0.4487719536, 0.1385134459, 0.0417248979, -0.3342843056, -0.2166966051, -0.1432270408, 0.3568275571, 0.1195773706, 0.5672698021, -0.0980362967, -0.0744651258, 0.1015565023, 0.2413697243, 0.8307590485, 0.0455573462, -0.0904591605, 0.1514422297, -0.3478347957, -0.4549783468, -0.1022293717, -0.0514177196, 0.0906814784, 0.171690315, 0.1203863472, -0.0910536647, -0.1833340377, -0.0058328966, 0.1955551356, -0.0551247038, 0.0347188041, -0.2269114703, 0.058757659, -0.1296496391, -0.1552832723, 0.2211825401, 0.0296756551, 0.0051617255, -0.3081283569, -0.3262304068, -0.1266996413, 0.1824819148, -0.1330122203, 0.4110674262, 0.0992513523, -0.1780855954, 0.076906763, 0.5561057329, 0.4184041321, -0.0389392413, -0.1187734976, 0.0806434527, 0.2931110561, 0.1064323112, 0.3002042174, 0.320822835, -0.0618730187, -0.4396643341, -0.2268486619, -0.1938148439, -0.3305326402, 0.3972931504, 0.4080632627, 0.0989354551, -0.4953554273, -0.4921705425, 0.3861900568, 0.2937192619, 0.1958300769, 0.2045917213, -0.5417593122, -0.4009674489, 0.0781785697, 0.4662418664, 0.8556217551, -0.037078727, 0.3702827692, 0.0315655693, 0.0108071193, 0.1721023768, -0.0018886278, 0.4117948115, -0.3542813957, 0.1392895281, -0.1648537517, -0.3125495315, 0.2525228262, -0.060203135, -0.2439696491, 0.0425363369, -0.3494715691, 0.1936195642, -0.1256936193, -0.0828530714, -0.0498264618, -0.4714174271, 0.1878736466, 0.0154520553, -0.0825134888, 0.2617389858, 0.1111611798, -0.1636207998, -0.3798605204, 0.0616962239, -0.0762221143, -0.0150117185, -0.2459690571, -0.1632432491, -0.0243102051, -0.7298656702, 0.0586798526, 0.4961580336, 0.3345546722, -0.160566479, -0.0478368364, 0.1396413594, 0.4438471496, 0.1629004925, -0.0990172699, -0.3401843011, 0.2853403986, 0.0973753631, 0.1843320727, 0.1086379662, 0.0681485757, 0.2105205804, -0.577789247, 0.0372510366, 0.3060290217, -0.3449506164, -0.3229845464, -0.1984502971, 0.0491850227, 0.0381633341, 0.0286184791, 0.124488771, -0.0389032736, 0.2072432339, -0.0415120944, -0.2264618576, 0.1328899711, 0.4523314238, 0.112983726, -0.3500464261, 0.3907569349, 0.3549591601, -0.0447779372, -0.0437441096, 0.4166942239, 0.6353191733, -0.3456966281, 0.0994976684, -0.1027166471, -0.1569870114, -0.0110735875, 0.5430940986, -0.2343174964, -0.1309778541, -0.2389573902, -0.0408173315, -0.4308937788, 0.0108135957, -0.3162982762, 0.456630528, -0.0432226621, 0.3627102971, 0.210505724, -0.1873493046, -0.1441360116, -0.2586487532, 0.1723508388, 0.3679335117, -0.2471824437, 0.2187612951, -0.1269584745, -0.1220230311, -0.0362523533, 0.0260314047, -0.2497397214, -0.0333907679, -0.0576779619, 0.1773060858, 0.0666143522, -0.1135402918, -0.0735467896, -0.1736695915, -0.1385810077, -0.2681719065, -0.037718121, 0.1109212413, -0.11599949, 0.3531612456, -0.178366214, 0.2312256396, 0.3186765909, -0.2700001597, -0.1026224792, 0.0358713232, 0.2229627371, 0.0600504763, 0.0045319153, -0.0615568496, -0.2772366107, 0.1125916764, 0.1652028263, 0.2549746037, 0.2046174854, -0.0999964103, 0.1091783047, -0.0438066572, 0.2041842341, 0.1012554616, -0.1718705595, -0.050828699, 0.0603729896, -0.0076234438, 0.1006219834, 0.1449991316, 0.0388691351, 0.1252815872, -0.0834641606, 0.275578022, 0.0665585697, 0.3113947809, -0.3705078661, 0.0451425537, 0.4178565443, -0.2410733104, 0.2350862026, 0.4640147686, 0.0147997756, 0.1930496842, 0.290704608, 0.1093435511, -0.1187017635, 0.3226963878, 0.3945167661, 0.820430994, 0.5895959139, 0.0837696865, 0.2746027708, 0.0992569551, -0.1536075622, -0.2072515339, 0.2358236462, 0.3919682801, 0.0188666489, 0.1856931895, -0.2407990843, -0.4871240854, 0.225882113, 0.1217747778, -0.1946178228, -0.082223542, -0.6648060083, 0.0118752681, 0.1358262002, -0.1866595894, -0.1797155738, -0.0501377247, 0.2205908448, 0.2597535551, -0.1032206789, -0.1609123051, -0.1724743992, 0.0691012219, 0.037529368, -0.007329775, 0.1697572321, -0.1368460655, 0.1617608517, 0.2448244244, 0.1969081759, 0.284953326, 0.4870801568, -0.1681717485, -0.1598939151, -0.0105530387, -0.1923659146, 0.0899016932, 0.066711925, 0.031533774, -0.1532076597, -0.0149563281, 0.0084625762, 0.0386277921, 0.0314605534, -0.0940808728, -0.2182596475, 0.1676249504, 0.3055749238, -0.3637773693, -0.1490927637, -0.0998983905, -0.2466560602, -0.3483100832, -0.2655346692, 0.5327388048, 0.0278958473, 0.1280099303, 0.1421680599, -0.0421595387, 0.0487859175, 0.1574119478, -0.121556811, 0.0775766447, -0.1540937126, 0.1359660923, -0.0858048201, 0.0319104381, 0.1184747368, -0.3834479749, -0.0188493319, -0.0391645581, 0.2425420135, 0.0646747723, 0.2020902038, -0.0983472839, 0.4987450838, 0.6146567464, -0.1336154193, -0.1414809078, -0.1304193139, 0.3706512451, 0.0733085498, -0.0774656981, 0.0219215602, 0.1024274155, 0.0065069334, -0.3420648277, -0.2554903924, -0.0199823231, 0.3041450083, 0.3512826264, 0.0932883546, 0.3203133047, -0.0192206632, 0.0484100245, -0.2411341518, 0.0504153185, -0.1276014, 0.0096705668, -0.0228027813, 0.5810170174, -0.224402234, -0.059342429, -0.4136501551, 0.4290263653, 0.0905311108, -0.3388552368, -0.0805192441, 0.3583999276, -0.3173208535, -0.2010883093, 0.226195246, 0.410022229, 0.1513598859, 0.1943574995, -0.5254407525, -0.4069116116, 0.4472022951, -0.4417079389, -0.5069123507, 0.0290744491, -0.3133937716, 0.0679039732, 0.4964230061, -0.4710497558, -0.1491341293, 0.0015052542, -0.080827713, -0.0916047096, -0.0981937125, 0.2610401213, 0.0151107861, -0.2518463135, 0.1790072173, 0.1764502972, -0.0228159856, -0.4204159677, -0.2753599882 ]
https://github.com/huggingface/datasets/issues/2005
Setting to torch format not working with torchvision and MNIST
Hi @lhoestq Raw feature types are like this: ``` Image: <class 'list'> 60000 #(type, len) <class 'list'> 28 <class 'list'> 28 <class 'int'> Label: <class 'list'> 60000 <class 'int'> ``` Inside the `prepare_feature` method with batch size 100000 , after processing, they are like this: Inside Prepare Train Features ``` Image: <class 'list'> 10000 <class 'torch.Tensor'> 1 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'list'> 10000 <class 'torch.Tensor'> ``` After map, the feature type are like this: ``` Image: <class 'list'> 60000 <class 'list'> 1 <class 'list'> 28 <class 'list'> 28 <class 'float'> Label: <class 'list'> 60000 <class 'int'> ``` After dataloader with batch size 2, the batch features are like this: ``` Image: <class 'list'> 1 <class 'list'> 28 <class 'list'> 28 <class 'torch.Tensor'> 2 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 2 <class 'torch.Tensor'> ``` <hr> When I was setting the format of `train_dataset` to 'torch' after mapping - ``` Image: <class 'list'> 60000 <class 'list'> 1 <class 'list'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 60000 <class 'torch.Tensor'> ``` Corresponding DataLoader batch: ``` From DataLoader batch features Image: <class 'list'> 1 <class 'list'> 28 <class 'torch.Tensor'> 2 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 2 <class 'torch.Tensor'> ``` I will check with features and get back.
Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list.
213
Setting to torch format not working with torchvision and MNIST Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list. Hi @lhoestq Raw feature types are like this: ``` Image: <class 'list'> 60000 #(type, len) <class 'list'> 28 <class 'list'> 28 <class 'int'> Label: <class 'list'> 60000 <class 'int'> ``` Inside the `prepare_feature` method with batch size 100000 , after processing, they are like this: Inside Prepare Train Features ``` Image: <class 'list'> 10000 <class 'torch.Tensor'> 1 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'list'> 10000 <class 'torch.Tensor'> ``` After map, the feature type are like this: ``` Image: <class 'list'> 60000 <class 'list'> 1 <class 'list'> 28 <class 'list'> 28 <class 'float'> Label: <class 'list'> 60000 <class 'int'> ``` After dataloader with batch size 2, the batch features are like this: ``` Image: <class 'list'> 1 <class 'list'> 28 <class 'list'> 28 <class 'torch.Tensor'> 2 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 2 <class 'torch.Tensor'> ``` <hr> When I was setting the format of `train_dataset` to 'torch' after mapping - ``` Image: <class 'list'> 60000 <class 'list'> 1 <class 'list'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 60000 <class 'torch.Tensor'> ``` Corresponding DataLoader batch: ``` From DataLoader batch features Image: <class 'list'> 1 <class 'list'> 28 <class 'torch.Tensor'> 2 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 2 <class 'torch.Tensor'> ``` I will check with features and get back.
[ -0.1273753047, -0.3511653543, -0.0179326311, 0.3536090851, 0.4760026336, 0.0887137353, 0.7330292463, 0.3804347813, 0.0655257925, -0.0380426571, -0.1111534089, 0.3819510639, -0.2329690456, -0.3339343965, 0.0351092033, -0.56149441, 0.2225798368, -0.0998275802, -0.2807980776, -0.0613473542, -0.2431338727, 0.0354893208, -0.2184972465, -0.1084965691, -0.5479356647, 0.0440960862, -0.0195555668, -0.0765686631, -0.0622991286, -0.1391801089, 0.1223466247, -0.1744965017, 0.4444538355, 0.7012932897, -0.0001277011, 0.0703017637, 0.3642728031, -0.1737782061, 0.0499993414, -0.161013633, 0.0400471762, -0.2573826909, 0.072776489, -0.0946833491, -0.2234944403, -0.1708453, 0.0959102288, -0.1790296137, -0.0281420499, 0.4191690087, 0.0771299899, 0.2790107131, 0.2466612458, 0.1386306435, 0.22781156, 0.5182866454, -0.273437947, -0.056117028, 0.2261502147, 0.3754776716, 0.1240048036, 0.5647348166, -0.2913349569, -0.0362339392, 0.2669452727, 0.1290050745, -0.1014554128, -0.3140053451, 0.0491572432, 0.0894629955, 0.4219443202, -0.1494392157, -0.0807788968, -0.1436638385, -0.1439783871, -0.1273806691, 0.040591076, 0.2803193629, -0.0718411431, -0.1872384697, -0.5392424464, 0.3052917719, -0.1486236155, 0.2131593376, -0.2805242538, -0.0034206749, -0.1381632388, 0.2928087413, -0.0471191294, -0.1127126515, 0.193081066, -0.1234149858, 0.1300754547, -0.0098257521, -0.14363195, -0.0534906499, -0.3895993531, -0.3150125742, -0.2001478821, -0.1602652222, 0.1664854437, 0.1392757148, -0.1163955703, 0.1280710101, 0.182633087, 0.2680341601, 0.105782561, 0.3207030296, -0.0858925655, -0.2895815372, -0.0469193235, 0.0877334625, -0.2962266505, -0.4357524216, 0.1545345932, 0.3252967596, 0.245221287, 0.0687427744, 0.1298556328, -0.3239411414, -0.1089226305, -0.009586527, 0.0752253011, 0.2850383818, -0.118679136, 0.2439045608, 0.4804832935, 0.397203058, -0.1538182348, 0.0695628896, 0.0250724126, 0.0315210149, -0.4404955208, -0.2856985331, 0.1534095705, -0.1177731901, 0.1000702605, 0.0374316536, 0.0464156754, 0.1006964073, 0.073496595, -0.1858698726, 0.6246293187, 0.1476473957, -0.1944741011, 0.2767930329, 0.2709067166, 0.5297800303, -0.3042984605, 0.2565315962, -0.5095698833, 0.065252535, -0.0230915733, -0.0145439208, 0.218655169, -0.0207218453, -0.21216245, 0.0158290844, 0.5923122764, -0.0836781189, 0.2734875381, -0.5791625381, 0.0949641094, -0.1913349926, 0.0341524445, 0.0636693314, -0.2047153264, -0.0523584448, 0.3863435686, 0.091949828, 0.3154586852, 0.1602820307, 0.0510832109, 0.0798702538, -0.2253529727, -0.2350506932, 0.3363234401, -0.3768563569, 0.0920385197, -0.0176934246, 0.0938790515, -0.0638039783, 0.1120189652, 0.3361780643, 0.0326006748, -0.1280014962, 0.0294486172, 0.1963144988, -0.1661821902, 0.1402870268, 0.0773596242, 0.1913028955, 0.1933744848, 0.0350064598, -0.0156837292, 0.2076538354, -0.2216716707, 0.1775766164, -0.0542802736, -0.0747132748, 0.0711774975, 0.0403781086, -0.3698906004, -0.0121967876, -0.0474697649, 0.1864667982, -0.2331001908, -0.0487212278, 0.023635203, 0.0822170898, 0.0582790896, 0.0479247868, 0.0049779508, -0.1919566393, -0.1822059304, -0.1390273869, -0.0032421914, 0.0922106206, -0.2094768882, -0.261724323, -0.0523434915, -0.1232490093, 0.1783040464, 0.0588377379, -0.3590368927, 0.0510256998, 0.0192736685, -0.3653306365, -0.2013597339, 0.1733922958, 0.2676690817, -0.0996205956, -0.042234946, 0.1916034222, 0.0632891431, 0.1146329641, -0.5482743979, 0.0834657177, 0.1778421402, -0.2469699979, 0.2043909729, 0.21627976, 0.148533985, -0.2755034566, -0.1960351765, 0.4387867153, 0.1604105979, 0.3159126043, -0.3300259113, 0.1161018088, -0.0726466849, -0.0394020006, -0.1906338334, -0.0408079401, -0.2772819102, 0.0730236918, -0.1318594962, 0.0129819224, -0.456918478, -0.0449361987, 0.2962616384, 0.0887638927, 0.1758723557, -0.0012161626, -0.3998460472, 0.2133122683, 0.1771266311, -0.6013534069, 0.2978382111, -0.0043618386, 0.1892073452, -0.1050186977, 0.095583491, -0.1625432819, 0.2484446168, 0.1140421703, 0.0907485485, -0.1994648427, 0.1418524981, -0.1079259813, 0.0268464927, 0.0263705309, -0.1406288743, -0.2336928695, -0.3589506149, 0.2713824809, -0.1661831439, -0.1345184743, -0.4018547535, -0.2621857822, 0.0360562503, -0.0740049183, -0.082333751, 0.1507584006, 0.1855680048, 0.1904348731, 0.2634178698, -0.1818944663, 0.3743163645, -0.4130294323, -0.035354875, -0.0750098228, -0.286796093, -0.0991648808, 0.0896559656, -0.5234106183, 0.0914844051, -0.2289900333, -0.0931909382, -0.2501759827, 0.0135479644, 0.1418222338, -0.2678501606, -0.2850028276, 0.3085912764, 0.1939282864, -0.1424821913, 0.0406621695, 0.2663511932, 0.0103071555, 0.0469012447, 0.1537835598, -0.0896200985, 0.1165603474, -0.0632982552, -0.1767407805, -0.0966179743, -0.075061664, -0.070416607, -0.0217598137, 0.0633770078, 0.3462583721, 0.372183919, -0.0898906365, -0.0520421751, 0.0356090553, 0.0629648119, -0.3976877034, 0.5225031972, -0.2261542529, -0.3608260751, 0.1192018762, 0.0238558389, 0.0651470646, 0.4862686098, 0.060522791, 0.0497318283, 0.0117822066, -0.0789449736, 0.2525925934, 0.2211973071, 0.3510199785, -0.0911250561, 0.0191657748, -0.1647070944, 0.0154164825, -0.1018714905, -0.0632553846, 0.6088866591, 0.1850842088, 0.2399428785, 0.0992584452, 0.6996648312, -0.0611371584, -0.7380948067, 0.2168068886, -0.242509678, 0.1921667606, -0.1181218103, -0.3539583385, 0.3988562822, -0.2094198763, 0.0643741786, -0.0859674439, -0.024907032, -0.2391579151, -0.0902244151, 0.3573616743, -0.3172068596, -0.1585739851, 0.4044299424, -0.1447023898, 0.2763730288, -0.2313425988, 0.3245900273, -0.2609262168, -0.2137925476, 0.0600569248, 0.4487719536, 0.1385134459, 0.0417248979, -0.3342843056, -0.2166966051, -0.1432270408, 0.3568275571, 0.1195773706, 0.5672698021, -0.0980362967, -0.0744651258, 0.1015565023, 0.2413697243, 0.8307590485, 0.0455573462, -0.0904591605, 0.1514422297, -0.3478347957, -0.4549783468, -0.1022293717, -0.0514177196, 0.0906814784, 0.171690315, 0.1203863472, -0.0910536647, -0.1833340377, -0.0058328966, 0.1955551356, -0.0551247038, 0.0347188041, -0.2269114703, 0.058757659, -0.1296496391, -0.1552832723, 0.2211825401, 0.0296756551, 0.0051617255, -0.3081283569, -0.3262304068, -0.1266996413, 0.1824819148, -0.1330122203, 0.4110674262, 0.0992513523, -0.1780855954, 0.076906763, 0.5561057329, 0.4184041321, -0.0389392413, -0.1187734976, 0.0806434527, 0.2931110561, 0.1064323112, 0.3002042174, 0.320822835, -0.0618730187, -0.4396643341, -0.2268486619, -0.1938148439, -0.3305326402, 0.3972931504, 0.4080632627, 0.0989354551, -0.4953554273, -0.4921705425, 0.3861900568, 0.2937192619, 0.1958300769, 0.2045917213, -0.5417593122, -0.4009674489, 0.0781785697, 0.4662418664, 0.8556217551, -0.037078727, 0.3702827692, 0.0315655693, 0.0108071193, 0.1721023768, -0.0018886278, 0.4117948115, -0.3542813957, 0.1392895281, -0.1648537517, -0.3125495315, 0.2525228262, -0.060203135, -0.2439696491, 0.0425363369, -0.3494715691, 0.1936195642, -0.1256936193, -0.0828530714, -0.0498264618, -0.4714174271, 0.1878736466, 0.0154520553, -0.0825134888, 0.2617389858, 0.1111611798, -0.1636207998, -0.3798605204, 0.0616962239, -0.0762221143, -0.0150117185, -0.2459690571, -0.1632432491, -0.0243102051, -0.7298656702, 0.0586798526, 0.4961580336, 0.3345546722, -0.160566479, -0.0478368364, 0.1396413594, 0.4438471496, 0.1629004925, -0.0990172699, -0.3401843011, 0.2853403986, 0.0973753631, 0.1843320727, 0.1086379662, 0.0681485757, 0.2105205804, -0.577789247, 0.0372510366, 0.3060290217, -0.3449506164, -0.3229845464, -0.1984502971, 0.0491850227, 0.0381633341, 0.0286184791, 0.124488771, -0.0389032736, 0.2072432339, -0.0415120944, -0.2264618576, 0.1328899711, 0.4523314238, 0.112983726, -0.3500464261, 0.3907569349, 0.3549591601, -0.0447779372, -0.0437441096, 0.4166942239, 0.6353191733, -0.3456966281, 0.0994976684, -0.1027166471, -0.1569870114, -0.0110735875, 0.5430940986, -0.2343174964, -0.1309778541, -0.2389573902, -0.0408173315, -0.4308937788, 0.0108135957, -0.3162982762, 0.456630528, -0.0432226621, 0.3627102971, 0.210505724, -0.1873493046, -0.1441360116, -0.2586487532, 0.1723508388, 0.3679335117, -0.2471824437, 0.2187612951, -0.1269584745, -0.1220230311, -0.0362523533, 0.0260314047, -0.2497397214, -0.0333907679, -0.0576779619, 0.1773060858, 0.0666143522, -0.1135402918, -0.0735467896, -0.1736695915, -0.1385810077, -0.2681719065, -0.037718121, 0.1109212413, -0.11599949, 0.3531612456, -0.178366214, 0.2312256396, 0.3186765909, -0.2700001597, -0.1026224792, 0.0358713232, 0.2229627371, 0.0600504763, 0.0045319153, -0.0615568496, -0.2772366107, 0.1125916764, 0.1652028263, 0.2549746037, 0.2046174854, -0.0999964103, 0.1091783047, -0.0438066572, 0.2041842341, 0.1012554616, -0.1718705595, -0.050828699, 0.0603729896, -0.0076234438, 0.1006219834, 0.1449991316, 0.0388691351, 0.1252815872, -0.0834641606, 0.275578022, 0.0665585697, 0.3113947809, -0.3705078661, 0.0451425537, 0.4178565443, -0.2410733104, 0.2350862026, 0.4640147686, 0.0147997756, 0.1930496842, 0.290704608, 0.1093435511, -0.1187017635, 0.3226963878, 0.3945167661, 0.820430994, 0.5895959139, 0.0837696865, 0.2746027708, 0.0992569551, -0.1536075622, -0.2072515339, 0.2358236462, 0.3919682801, 0.0188666489, 0.1856931895, -0.2407990843, -0.4871240854, 0.225882113, 0.1217747778, -0.1946178228, -0.082223542, -0.6648060083, 0.0118752681, 0.1358262002, -0.1866595894, -0.1797155738, -0.0501377247, 0.2205908448, 0.2597535551, -0.1032206789, -0.1609123051, -0.1724743992, 0.0691012219, 0.037529368, -0.007329775, 0.1697572321, -0.1368460655, 0.1617608517, 0.2448244244, 0.1969081759, 0.284953326, 0.4870801568, -0.1681717485, -0.1598939151, -0.0105530387, -0.1923659146, 0.0899016932, 0.066711925, 0.031533774, -0.1532076597, -0.0149563281, 0.0084625762, 0.0386277921, 0.0314605534, -0.0940808728, -0.2182596475, 0.1676249504, 0.3055749238, -0.3637773693, -0.1490927637, -0.0998983905, -0.2466560602, -0.3483100832, -0.2655346692, 0.5327388048, 0.0278958473, 0.1280099303, 0.1421680599, -0.0421595387, 0.0487859175, 0.1574119478, -0.121556811, 0.0775766447, -0.1540937126, 0.1359660923, -0.0858048201, 0.0319104381, 0.1184747368, -0.3834479749, -0.0188493319, -0.0391645581, 0.2425420135, 0.0646747723, 0.2020902038, -0.0983472839, 0.4987450838, 0.6146567464, -0.1336154193, -0.1414809078, -0.1304193139, 0.3706512451, 0.0733085498, -0.0774656981, 0.0219215602, 0.1024274155, 0.0065069334, -0.3420648277, -0.2554903924, -0.0199823231, 0.3041450083, 0.3512826264, 0.0932883546, 0.3203133047, -0.0192206632, 0.0484100245, -0.2411341518, 0.0504153185, -0.1276014, 0.0096705668, -0.0228027813, 0.5810170174, -0.224402234, -0.059342429, -0.4136501551, 0.4290263653, 0.0905311108, -0.3388552368, -0.0805192441, 0.3583999276, -0.3173208535, -0.2010883093, 0.226195246, 0.410022229, 0.1513598859, 0.1943574995, -0.5254407525, -0.4069116116, 0.4472022951, -0.4417079389, -0.5069123507, 0.0290744491, -0.3133937716, 0.0679039732, 0.4964230061, -0.4710497558, -0.1491341293, 0.0015052542, -0.080827713, -0.0916047096, -0.0981937125, 0.2610401213, 0.0151107861, -0.2518463135, 0.1790072173, 0.1764502972, -0.0228159856, -0.4204159677, -0.2753599882 ]
https://github.com/huggingface/datasets/issues/2005
Setting to torch format not working with torchvision and MNIST
Hi @lhoestq # Using Array3D I tried this: ```python features = datasets.Features({ "image": datasets.Array3D(shape=(1,28,28),dtype="float32"), "label": datasets.features.ClassLabel(names=["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]), }) train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) ``` and it didn't fix the issue. During the `prepare_train_features: ``` Image: <class 'list'> 10000 <class 'torch.Tensor'> 1 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'list'> 10000 <class 'torch.Tensor'> ``` After the `map`: ``` Image: <class 'list'> 60000 <class 'list'> 1 <class 'list'> 28 <class 'list'> 28 <class 'float'> Label: <class 'list'> 60000 <class 'int'> ``` From the DataLoader batch: ``` Image: <class 'list'> 1 <class 'list'> 28 <class 'list'> 28 <class 'torch.Tensor'> 2 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 2 <class 'torch.Tensor'> ``` It is the same as before. --- Using `datasets.Sequence(datasets.Array2D(shape=(28,28),dtype="float32"))` gave an error during `map`: ```python ArrowNotImplementedError Traceback (most recent call last) <ipython-input-95-d28e69289084> in <module>() 3 "label": datasets.features.ClassLabel(names=["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]), 4 }) ----> 5 train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) 15 frames /usr/local/lib/python3.7/dist-packages/datasets/dataset_dict.py in map(self, function, with_indices, input_columns, batched, batch_size, remove_columns, keep_in_memory, load_from_cache_file, cache_file_names, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc) 446 num_proc=num_proc, 447 ) --> 448 for k, dataset in self.items() 449 } 450 ) /usr/local/lib/python3.7/dist-packages/datasets/dataset_dict.py in <dictcomp>(.0) 446 num_proc=num_proc, 447 ) --> 448 for k, dataset in self.items() 449 } 450 ) /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint) 1307 fn_kwargs=fn_kwargs, 1308 new_fingerprint=new_fingerprint, -> 1309 update_data=update_data, 1310 ) 1311 else: /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 202 } 203 # apply actual function --> 204 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 205 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 206 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 335 # Call actual function 336 --> 337 out = func(self, *args, **kwargs) 338 339 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, update_data) 1580 if update_data: 1581 batch = cast_to_python_objects(batch) -> 1582 writer.write_batch(batch) 1583 if update_data: 1584 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file /usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size) 274 typed_sequence = TypedSequence(batch_examples[col], type=col_type, try_type=col_try_type) 275 typed_sequence_examples[col] = typed_sequence --> 276 pa_table = pa.Table.from_pydict(typed_sequence_examples) 277 self.write_table(pa_table, writer_batch_size) 278 /usr/local/lib/python3.7/dist-packages/pyarrow/table.pxi in pyarrow.lib.Table.from_pydict() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._handle_arrow_array_protocol() /usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py in __arrow_array__(self, type) 95 out = pa.ExtensionArray.from_storage(type, pa.array(self.data, type.storage_dtype)) 96 else: ---> 97 out = pa.array(self.data, type=type) 98 if trying_type and out[0].as_py() != self.data[0]: 99 raise TypeError( /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array() /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: extension ```
Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list.
447
Setting to torch format not working with torchvision and MNIST Hi I am trying to use `torchvision.transforms` to handle the transformation of the image data in the `mnist` dataset. Assume I have a `transform` variable which contains the `torchvision.transforms` object. A snippet of what I am trying to do: ```python def prepare_features(examples): images = [] labels = [] for example_idx, example in enumerate(examples["image"]): if transform is not None: images.append(transform( np.array(examples["image"][example_idx], dtype=np.uint8) )) else: images.append(torch.tensor(np.array(examples["image"][example_idx], dtype=np.uint8))) labels.append(torch.tensor(examples["label"][example_idx])) output = {"label":labels, "image":images} return output raw_dataset = load_dataset('mnist') train_dataset = raw_dataset.map(prepare_features, batched=True, batch_size=10000) train_dataset.set_format("torch",columns=["image","label"]) ``` After this, I check the type of the following: ```python print(type(train_dataset["train"]["label"])) print(type(train_dataset["train"]["image"][0])) ``` This leads to the following output: ```python <class 'torch.Tensor'> <class 'list'> ``` I use `torch.utils.DataLoader` for batches, the type of `batch["train"]["image"]` is also `<class 'list'>`. I don't understand why only the `label` is converted to a torch tensor, why does the image not get converted? How can I fix this issue? Thanks, Gunjan EDIT: I just checked the shapes, and the types, `batch[image]` is a actually a list of list of tensors. Shape is (1,28,2,28), where `batch_size` is 2. I don't understand why this is happening. Ideally it should be a tensor of shape (2,1,28,28). EDIT 2: Inside `prepare_train_features`, the shape of `images[0]` is `torch.Size([1,28,28])`, the conversion is working. However, the output of the `map` is a list of list of list of list. Hi @lhoestq # Using Array3D I tried this: ```python features = datasets.Features({ "image": datasets.Array3D(shape=(1,28,28),dtype="float32"), "label": datasets.features.ClassLabel(names=["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]), }) train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) ``` and it didn't fix the issue. During the `prepare_train_features: ``` Image: <class 'list'> 10000 <class 'torch.Tensor'> 1 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> 28 <class 'torch.Tensor'> Label: <class 'list'> 10000 <class 'torch.Tensor'> ``` After the `map`: ``` Image: <class 'list'> 60000 <class 'list'> 1 <class 'list'> 28 <class 'list'> 28 <class 'float'> Label: <class 'list'> 60000 <class 'int'> ``` From the DataLoader batch: ``` Image: <class 'list'> 1 <class 'list'> 28 <class 'list'> 28 <class 'torch.Tensor'> 2 <class 'torch.Tensor'> Label: <class 'torch.Tensor'> 2 <class 'torch.Tensor'> ``` It is the same as before. --- Using `datasets.Sequence(datasets.Array2D(shape=(28,28),dtype="float32"))` gave an error during `map`: ```python ArrowNotImplementedError Traceback (most recent call last) <ipython-input-95-d28e69289084> in <module>() 3 "label": datasets.features.ClassLabel(names=["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]), 4 }) ----> 5 train_dataset = raw_dataset.map(prepare_features, features = features,batched=True, batch_size=10000) 15 frames /usr/local/lib/python3.7/dist-packages/datasets/dataset_dict.py in map(self, function, with_indices, input_columns, batched, batch_size, remove_columns, keep_in_memory, load_from_cache_file, cache_file_names, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc) 446 num_proc=num_proc, 447 ) --> 448 for k, dataset in self.items() 449 } 450 ) /usr/local/lib/python3.7/dist-packages/datasets/dataset_dict.py in <dictcomp>(.0) 446 num_proc=num_proc, 447 ) --> 448 for k, dataset in self.items() 449 } 450 ) /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint) 1307 fn_kwargs=fn_kwargs, 1308 new_fingerprint=new_fingerprint, -> 1309 update_data=update_data, 1310 ) 1311 else: /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 202 } 203 # apply actual function --> 204 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 205 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 206 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 335 # Call actual function 336 --> 337 out = func(self, *args, **kwargs) 338 339 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, update_data) 1580 if update_data: 1581 batch = cast_to_python_objects(batch) -> 1582 writer.write_batch(batch) 1583 if update_data: 1584 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file /usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size) 274 typed_sequence = TypedSequence(batch_examples[col], type=col_type, try_type=col_try_type) 275 typed_sequence_examples[col] = typed_sequence --> 276 pa_table = pa.Table.from_pydict(typed_sequence_examples) 277 self.write_table(pa_table, writer_batch_size) 278 /usr/local/lib/python3.7/dist-packages/pyarrow/table.pxi in pyarrow.lib.Table.from_pydict() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._handle_arrow_array_protocol() /usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py in __arrow_array__(self, type) 95 out = pa.ExtensionArray.from_storage(type, pa.array(self.data, type.storage_dtype)) 96 else: ---> 97 out = pa.array(self.data, type=type) 98 if trying_type and out[0].as_py() != self.data[0]: 99 raise TypeError( /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib.array() /usr/local/lib/python3.7/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array() /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: extension ```
[ -0.1273753047, -0.3511653543, -0.0179326311, 0.3536090851, 0.4760026336, 0.0887137353, 0.7330292463, 0.3804347813, 0.0655257925, -0.0380426571, -0.1111534089, 0.3819510639, -0.2329690456, -0.3339343965, 0.0351092033, -0.56149441, 0.2225798368, -0.0998275802, -0.2807980776, -0.0613473542, -0.2431338727, 0.0354893208, -0.2184972465, -0.1084965691, -0.5479356647, 0.0440960862, -0.0195555668, -0.0765686631, -0.0622991286, -0.1391801089, 0.1223466247, -0.1744965017, 0.4444538355, 0.7012932897, -0.0001277011, 0.0703017637, 0.3642728031, -0.1737782061, 0.0499993414, -0.161013633, 0.0400471762, -0.2573826909, 0.072776489, -0.0946833491, -0.2234944403, -0.1708453, 0.0959102288, -0.1790296137, -0.0281420499, 0.4191690087, 0.0771299899, 0.2790107131, 0.2466612458, 0.1386306435, 0.22781156, 0.5182866454, -0.273437947, -0.056117028, 0.2261502147, 0.3754776716, 0.1240048036, 0.5647348166, -0.2913349569, -0.0362339392, 0.2669452727, 0.1290050745, -0.1014554128, -0.3140053451, 0.0491572432, 0.0894629955, 0.4219443202, -0.1494392157, -0.0807788968, -0.1436638385, -0.1439783871, -0.1273806691, 0.040591076, 0.2803193629, -0.0718411431, -0.1872384697, -0.5392424464, 0.3052917719, -0.1486236155, 0.2131593376, -0.2805242538, -0.0034206749, -0.1381632388, 0.2928087413, -0.0471191294, -0.1127126515, 0.193081066, -0.1234149858, 0.1300754547, -0.0098257521, -0.14363195, -0.0534906499, -0.3895993531, -0.3150125742, -0.2001478821, -0.1602652222, 0.1664854437, 0.1392757148, -0.1163955703, 0.1280710101, 0.182633087, 0.2680341601, 0.105782561, 0.3207030296, -0.0858925655, -0.2895815372, -0.0469193235, 0.0877334625, -0.2962266505, -0.4357524216, 0.1545345932, 0.3252967596, 0.245221287, 0.0687427744, 0.1298556328, -0.3239411414, -0.1089226305, -0.009586527, 0.0752253011, 0.2850383818, -0.118679136, 0.2439045608, 0.4804832935, 0.397203058, -0.1538182348, 0.0695628896, 0.0250724126, 0.0315210149, -0.4404955208, -0.2856985331, 0.1534095705, -0.1177731901, 0.1000702605, 0.0374316536, 0.0464156754, 0.1006964073, 0.073496595, -0.1858698726, 0.6246293187, 0.1476473957, -0.1944741011, 0.2767930329, 0.2709067166, 0.5297800303, -0.3042984605, 0.2565315962, -0.5095698833, 0.065252535, -0.0230915733, -0.0145439208, 0.218655169, -0.0207218453, -0.21216245, 0.0158290844, 0.5923122764, -0.0836781189, 0.2734875381, -0.5791625381, 0.0949641094, -0.1913349926, 0.0341524445, 0.0636693314, -0.2047153264, -0.0523584448, 0.3863435686, 0.091949828, 0.3154586852, 0.1602820307, 0.0510832109, 0.0798702538, -0.2253529727, -0.2350506932, 0.3363234401, -0.3768563569, 0.0920385197, -0.0176934246, 0.0938790515, -0.0638039783, 0.1120189652, 0.3361780643, 0.0326006748, -0.1280014962, 0.0294486172, 0.1963144988, -0.1661821902, 0.1402870268, 0.0773596242, 0.1913028955, 0.1933744848, 0.0350064598, -0.0156837292, 0.2076538354, -0.2216716707, 0.1775766164, -0.0542802736, -0.0747132748, 0.0711774975, 0.0403781086, -0.3698906004, -0.0121967876, -0.0474697649, 0.1864667982, -0.2331001908, -0.0487212278, 0.023635203, 0.0822170898, 0.0582790896, 0.0479247868, 0.0049779508, -0.1919566393, -0.1822059304, -0.1390273869, -0.0032421914, 0.0922106206, -0.2094768882, -0.261724323, -0.0523434915, -0.1232490093, 0.1783040464, 0.0588377379, -0.3590368927, 0.0510256998, 0.0192736685, -0.3653306365, -0.2013597339, 0.1733922958, 0.2676690817, -0.0996205956, -0.042234946, 0.1916034222, 0.0632891431, 0.1146329641, -0.5482743979, 0.0834657177, 0.1778421402, -0.2469699979, 0.2043909729, 0.21627976, 0.148533985, -0.2755034566, -0.1960351765, 0.4387867153, 0.1604105979, 0.3159126043, -0.3300259113, 0.1161018088, -0.0726466849, -0.0394020006, -0.1906338334, -0.0408079401, -0.2772819102, 0.0730236918, -0.1318594962, 0.0129819224, -0.456918478, -0.0449361987, 0.2962616384, 0.0887638927, 0.1758723557, -0.0012161626, -0.3998460472, 0.2133122683, 0.1771266311, -0.6013534069, 0.2978382111, -0.0043618386, 0.1892073452, -0.1050186977, 0.095583491, -0.1625432819, 0.2484446168, 0.1140421703, 0.0907485485, -0.1994648427, 0.1418524981, -0.1079259813, 0.0268464927, 0.0263705309, -0.1406288743, -0.2336928695, -0.3589506149, 0.2713824809, -0.1661831439, -0.1345184743, -0.4018547535, -0.2621857822, 0.0360562503, -0.0740049183, -0.082333751, 0.1507584006, 0.1855680048, 0.1904348731, 0.2634178698, -0.1818944663, 0.3743163645, -0.4130294323, -0.035354875, -0.0750098228, -0.286796093, -0.0991648808, 0.0896559656, -0.5234106183, 0.0914844051, -0.2289900333, -0.0931909382, -0.2501759827, 0.0135479644, 0.1418222338, -0.2678501606, -0.2850028276, 0.3085912764, 0.1939282864, -0.1424821913, 0.0406621695, 0.2663511932, 0.0103071555, 0.0469012447, 0.1537835598, -0.0896200985, 0.1165603474, -0.0632982552, -0.1767407805, -0.0966179743, -0.075061664, -0.070416607, -0.0217598137, 0.0633770078, 0.3462583721, 0.372183919, -0.0898906365, -0.0520421751, 0.0356090553, 0.0629648119, -0.3976877034, 0.5225031972, -0.2261542529, -0.3608260751, 0.1192018762, 0.0238558389, 0.0651470646, 0.4862686098, 0.060522791, 0.0497318283, 0.0117822066, -0.0789449736, 0.2525925934, 0.2211973071, 0.3510199785, -0.0911250561, 0.0191657748, -0.1647070944, 0.0154164825, -0.1018714905, -0.0632553846, 0.6088866591, 0.1850842088, 0.2399428785, 0.0992584452, 0.6996648312, -0.0611371584, -0.7380948067, 0.2168068886, -0.242509678, 0.1921667606, -0.1181218103, -0.3539583385, 0.3988562822, -0.2094198763, 0.0643741786, -0.0859674439, -0.024907032, -0.2391579151, -0.0902244151, 0.3573616743, -0.3172068596, -0.1585739851, 0.4044299424, -0.1447023898, 0.2763730288, -0.2313425988, 0.3245900273, -0.2609262168, -0.2137925476, 0.0600569248, 0.4487719536, 0.1385134459, 0.0417248979, -0.3342843056, -0.2166966051, -0.1432270408, 0.3568275571, 0.1195773706, 0.5672698021, -0.0980362967, -0.0744651258, 0.1015565023, 0.2413697243, 0.8307590485, 0.0455573462, -0.0904591605, 0.1514422297, -0.3478347957, -0.4549783468, -0.1022293717, -0.0514177196, 0.0906814784, 0.171690315, 0.1203863472, -0.0910536647, -0.1833340377, -0.0058328966, 0.1955551356, -0.0551247038, 0.0347188041, -0.2269114703, 0.058757659, -0.1296496391, -0.1552832723, 0.2211825401, 0.0296756551, 0.0051617255, -0.3081283569, -0.3262304068, -0.1266996413, 0.1824819148, -0.1330122203, 0.4110674262, 0.0992513523, -0.1780855954, 0.076906763, 0.5561057329, 0.4184041321, -0.0389392413, -0.1187734976, 0.0806434527, 0.2931110561, 0.1064323112, 0.3002042174, 0.320822835, -0.0618730187, -0.4396643341, -0.2268486619, -0.1938148439, -0.3305326402, 0.3972931504, 0.4080632627, 0.0989354551, -0.4953554273, -0.4921705425, 0.3861900568, 0.2937192619, 0.1958300769, 0.2045917213, -0.5417593122, -0.4009674489, 0.0781785697, 0.4662418664, 0.8556217551, -0.037078727, 0.3702827692, 0.0315655693, 0.0108071193, 0.1721023768, -0.0018886278, 0.4117948115, -0.3542813957, 0.1392895281, -0.1648537517, -0.3125495315, 0.2525228262, -0.060203135, -0.2439696491, 0.0425363369, -0.3494715691, 0.1936195642, -0.1256936193, -0.0828530714, -0.0498264618, -0.4714174271, 0.1878736466, 0.0154520553, -0.0825134888, 0.2617389858, 0.1111611798, -0.1636207998, -0.3798605204, 0.0616962239, -0.0762221143, -0.0150117185, -0.2459690571, -0.1632432491, -0.0243102051, -0.7298656702, 0.0586798526, 0.4961580336, 0.3345546722, -0.160566479, -0.0478368364, 0.1396413594, 0.4438471496, 0.1629004925, -0.0990172699, -0.3401843011, 0.2853403986, 0.0973753631, 0.1843320727, 0.1086379662, 0.0681485757, 0.2105205804, -0.577789247, 0.0372510366, 0.3060290217, -0.3449506164, -0.3229845464, -0.1984502971, 0.0491850227, 0.0381633341, 0.0286184791, 0.124488771, -0.0389032736, 0.2072432339, -0.0415120944, -0.2264618576, 0.1328899711, 0.4523314238, 0.112983726, -0.3500464261, 0.3907569349, 0.3549591601, -0.0447779372, -0.0437441096, 0.4166942239, 0.6353191733, -0.3456966281, 0.0994976684, -0.1027166471, -0.1569870114, -0.0110735875, 0.5430940986, -0.2343174964, -0.1309778541, -0.2389573902, -0.0408173315, -0.4308937788, 0.0108135957, -0.3162982762, 0.456630528, -0.0432226621, 0.3627102971, 0.210505724, -0.1873493046, -0.1441360116, -0.2586487532, 0.1723508388, 0.3679335117, -0.2471824437, 0.2187612951, -0.1269584745, -0.1220230311, -0.0362523533, 0.0260314047, -0.2497397214, -0.0333907679, -0.0576779619, 0.1773060858, 0.0666143522, -0.1135402918, -0.0735467896, -0.1736695915, -0.1385810077, -0.2681719065, -0.037718121, 0.1109212413, -0.11599949, 0.3531612456, -0.178366214, 0.2312256396, 0.3186765909, -0.2700001597, -0.1026224792, 0.0358713232, 0.2229627371, 0.0600504763, 0.0045319153, -0.0615568496, -0.2772366107, 0.1125916764, 0.1652028263, 0.2549746037, 0.2046174854, -0.0999964103, 0.1091783047, -0.0438066572, 0.2041842341, 0.1012554616, -0.1718705595, -0.050828699, 0.0603729896, -0.0076234438, 0.1006219834, 0.1449991316, 0.0388691351, 0.1252815872, -0.0834641606, 0.275578022, 0.0665585697, 0.3113947809, -0.3705078661, 0.0451425537, 0.4178565443, -0.2410733104, 0.2350862026, 0.4640147686, 0.0147997756, 0.1930496842, 0.290704608, 0.1093435511, -0.1187017635, 0.3226963878, 0.3945167661, 0.820430994, 0.5895959139, 0.0837696865, 0.2746027708, 0.0992569551, -0.1536075622, -0.2072515339, 0.2358236462, 0.3919682801, 0.0188666489, 0.1856931895, -0.2407990843, -0.4871240854, 0.225882113, 0.1217747778, -0.1946178228, -0.082223542, -0.6648060083, 0.0118752681, 0.1358262002, -0.1866595894, -0.1797155738, -0.0501377247, 0.2205908448, 0.2597535551, -0.1032206789, -0.1609123051, -0.1724743992, 0.0691012219, 0.037529368, -0.007329775, 0.1697572321, -0.1368460655, 0.1617608517, 0.2448244244, 0.1969081759, 0.284953326, 0.4870801568, -0.1681717485, -0.1598939151, -0.0105530387, -0.1923659146, 0.0899016932, 0.066711925, 0.031533774, -0.1532076597, -0.0149563281, 0.0084625762, 0.0386277921, 0.0314605534, -0.0940808728, -0.2182596475, 0.1676249504, 0.3055749238, -0.3637773693, -0.1490927637, -0.0998983905, -0.2466560602, -0.3483100832, -0.2655346692, 0.5327388048, 0.0278958473, 0.1280099303, 0.1421680599, -0.0421595387, 0.0487859175, 0.1574119478, -0.121556811, 0.0775766447, -0.1540937126, 0.1359660923, -0.0858048201, 0.0319104381, 0.1184747368, -0.3834479749, -0.0188493319, -0.0391645581, 0.2425420135, 0.0646747723, 0.2020902038, -0.0983472839, 0.4987450838, 0.6146567464, -0.1336154193, -0.1414809078, -0.1304193139, 0.3706512451, 0.0733085498, -0.0774656981, 0.0219215602, 0.1024274155, 0.0065069334, -0.3420648277, -0.2554903924, -0.0199823231, 0.3041450083, 0.3512826264, 0.0932883546, 0.3203133047, -0.0192206632, 0.0484100245, -0.2411341518, 0.0504153185, -0.1276014, 0.0096705668, -0.0228027813, 0.5810170174, -0.224402234, -0.059342429, -0.4136501551, 0.4290263653, 0.0905311108, -0.3388552368, -0.0805192441, 0.3583999276, -0.3173208535, -0.2010883093, 0.226195246, 0.410022229, 0.1513598859, 0.1943574995, -0.5254407525, -0.4069116116, 0.4472022951, -0.4417079389, -0.5069123507, 0.0290744491, -0.3133937716, 0.0679039732, 0.4964230061, -0.4710497558, -0.1491341293, 0.0015052542, -0.080827713, -0.0916047096, -0.0981937125, 0.2610401213, 0.0151107861, -0.2518463135, 0.1790072173, 0.1764502972, -0.0228159856, -0.4204159677, -0.2753599882 ]