html_url
stringlengths 48
51
| title
stringlengths 5
268
| comments
stringlengths 70
51.8k
| body
stringlengths 0
29.8k
| comment_length
int64 16
1.52k
| text
stringlengths 164
54.1k
| embeddings
sequence |
---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/2128 | Dialogue action slot name and value are reversed in MultiWoZ 2.2 | Hi
Good catch ! Thanks for reporting
If you are interested in contributing, feel free to open a PR to fix this :) | Hi @yjernite, thank you for adding MultiWoZ 2.2 in the huggingface datasets platform. It is beneficial!
I spot an error that the order of Dialogue action slot names and values are reversed.
https://github.com/huggingface/datasets/blob/649b2c469779bc4221e1b6969aa2496d63eb5953/datasets/multi_woz_v22/multi_woz_v22.py#L251-L262 | 23 | Dialogue action slot name and value are reversed in MultiWoZ 2.2
Hi @yjernite, thank you for adding MultiWoZ 2.2 in the huggingface datasets platform. It is beneficial!
I spot an error that the order of Dialogue action slot names and values are reversed.
https://github.com/huggingface/datasets/blob/649b2c469779bc4221e1b6969aa2496d63eb5953/datasets/multi_woz_v22/multi_woz_v22.py#L251-L262
Hi
Good catch ! Thanks for reporting
If you are interested in contributing, feel free to open a PR to fix this :) | [
0.4248684645,
-0.34569332,
0.0174812973,
0.4803555906,
-0.2102742791,
-0.0071411356,
0.1827979982,
0.1119404361,
-0.10078834,
0.2386503369,
-0.357991159,
0.1305642724,
0.0230536498,
0.3927918077,
-0.0238381606,
-0.2758991718,
0.0942918658,
-0.0138570145,
0.0493688323,
0.131144762,
-0.4356462359,
0.5747424364,
-0.59339118,
0.6446858644,
-0.1071592569,
-0.0142534804,
0.0634025335,
0.1111348271,
-0.0194263887,
-0.0573896654,
0.0214845464,
0.0864026919,
-0.0686789155,
0.335370034,
-0.0001161957,
-0.2951156497,
0.2519221902,
0.1138676926,
0.0176501311,
-0.0307995752,
-0.2642222643,
0.0847947523,
-0.124899067,
-0.1370585561,
0.2321760058,
0.1895439923,
-0.0746239647,
-0.080159232,
0.2754887938,
-0.0784261525,
0.1157124788,
0.1648208499,
0.035743542,
-0.0580538362,
-0.0215842426,
0.2198866606,
-0.0824435055,
0.1995960623,
0.0212187581,
0.1268390417,
0.0749810338,
0.3417921066,
-0.201003015,
0.013219852,
-0.1365128607,
0.1374373138,
-0.0064532179,
0.0807200074,
-0.0942606032,
0.3944840133,
0.1280010641,
-0.2043230683,
-0.2542484105,
-0.3739619553,
0.2252251655,
0.0107931495,
0.2898098528,
0.3622592092,
0.1570697874,
0.2073941678,
0.0218983069,
0.2123636007,
0.2015574574,
-0.1239944398,
0.0848848894,
0.3029040694,
-0.1620902717,
0.0876525044,
-0.3311098814,
-0.2417792678,
0.0060680956,
0.2482503951,
-0.2515793741,
0.1156898886,
-0.4204524755,
0.2017874569,
0.0330351107,
0.342507273,
-0.0098850429,
-0.1190019697,
0.2433529943,
0.1067762077,
-0.1916662753,
-0.1237335876,
0.2064361274,
0.367492944,
0.3211268783,
-0.2541064322,
-0.137089327,
0.2693680227,
0.2884454429,
0.0714495257,
-0.0131934024,
-0.5080449581,
-0.2649770379,
0.0574987866,
0.3858122826,
0.0727555007,
-0.1866703033,
-0.1129766405,
-0.2294874638,
0.0604376569,
0.6087939739,
0.1458616257,
-0.3165177405,
0.4559129179,
0.1828231961,
0.298594445,
-0.0327909477,
0.0739533529,
-0.0395369753,
-0.2116191834,
-0.2245816439,
0.2388990819,
0.1142524183,
0.498013556,
0.2482365519,
0.2565270364,
0.6652233601,
-0.0223223567,
-0.0490707569,
0.1431643963,
-0.0727882683,
-0.219101876,
0.1980557144,
0.554035306,
-0.0875073522,
0.2238430381,
0.0393964052,
-0.0764857605,
-0.5501934886,
-0.1435857564,
0.1170962527,
0.1250050962,
0.078177236,
0.1016251594,
-0.0038579702,
-0.185363844,
0.2374026477,
-0.161860913,
0.1959502399,
0.1565702111,
-0.213668406,
-0.1177014261,
-0.1799676418,
0.0335363559,
0.276627183,
0.0454835296,
0.1398200989,
0.0260129012,
0.0869094282,
0.2126456797,
-0.1619840413,
-0.1217644513,
-0.3524560928,
0.3236254752,
-0.1048873514,
-0.5939315557,
-0.0289269015,
-0.0806840733,
-0.3253734112,
0.0964094251,
0.2077776641,
-0.000742767,
-0.0522917584,
-0.2352714688,
0.3298338354,
0.0540410466,
0.2577145696,
0.2721784711,
-0.1492699832,
-0.255646348,
0.4765301347,
-0.3049314618,
-0.2597442269,
0.0622307435,
-0.3183137774,
0.1614960283,
0.5554069877,
-0.024431318,
-0.1462974399,
0.0587147065,
-0.1342418641,
0.1856333315,
0.4008899629,
-0.0592840761,
-0.2871952951,
0.1710009277,
-0.7374221683,
-0.1946222782,
0.2939943373,
0.0273173824,
-0.0290290862,
-0.0295993388,
-0.3857557774,
-0.1096079051,
0.1072956696,
0.0746724159,
-0.1831603199,
-0.3749778271,
-0.2076358497,
0.7400957942,
0.0544774681,
0.1494106352,
-0.0958257914,
0.0385061949,
-0.0018461784,
0.0911562592,
-0.0287446454,
0.3057425916,
0.4141575396,
0.1709282398,
-0.0430632345,
0.6762660742,
-0.0163329318,
0.2083842754,
-0.0231602397,
-0.2112202942,
0.0802687332,
-0.0880826116,
0.2206209749,
0.0709038973,
-0.1941142231,
0.10242185,
-0.104268536,
0.6511007547,
-0.241230011,
0.0029584393,
-0.0778317675,
0.0669840276,
-0.024815958,
-0.0509843677,
-0.4145662189,
-0.2964113057,
0.1980013847,
0.0032161362,
-0.1446509659,
0.1842003614,
-0.4677920341,
0.0189951621,
0.5268549323,
0.0036457181,
0.1161580682,
-0.1344462037,
0.0493617132,
-0.1965814829,
0.140163213,
0.3095350862,
0.2136599422,
0.1553584337,
-0.2179353535,
0.0333866924,
-0.148815468,
0.0075617246,
0.2790915072,
-0.1165453643,
-0.0671329498,
0.1257618368,
0.1785929054,
0.0813034102,
-0.0708082169,
0.5163923502,
0.2012718916,
-0.1768668294,
-0.4543136358,
-0.4007065296,
-0.3898670375,
-0.2114549279,
-0.3471460938,
-0.5310075283,
-0.2130122036,
-0.0491227023,
0.0900169834,
-0.1668143868,
0.1789441109,
0.2162972987,
0.2227875143,
0.0556249768,
0.0094742998,
0.4551241398,
-0.1428204477,
0.1838769019,
0.0256181508,
0.0008189455,
-0.379550755,
0.2141210288,
0.0089380387,
-0.1296349168,
-0.2861488163,
-0.2201643586,
-0.3470645845,
0.136615485,
0.0111504309,
-0.2331494391,
0.1379038841,
-0.0610329844,
0.3058899641,
-0.3460127711,
0.2869271636,
0.197571069,
-0.0733106807,
0.2513200045,
-0.0523503721,
-0.1882901788,
-0.2862946987,
-0.0519896597,
0.1491796225,
-0.0457234122,
0.5657225847,
-0.0610187985,
0.1535641551,
0.2129760236,
-0.4396948218,
-0.1446075588,
-0.3862574697,
0.3639068604,
-0.3491978645,
-0.375995934,
0.2740389407,
-0.2382828593,
-0.0076242951,
-0.2874043584,
0.0802440792,
0.0812307522,
-0.2473167181,
0.2349969894,
-0.4288900197,
-0.2434293926,
-0.2202371657,
0.2920055985,
0.0149220768,
0.1497978568,
0.1676971465,
0.0371948145,
-0.2795481086,
-0.3579646051,
0.4529722631,
0.4093858302,
0.3168847561,
0.1465578675,
-0.3183185756,
0.1441504806,
-0.1315051168,
0.1915723234,
0.4237496853,
-0.0403437093,
-0.0546638221,
-0.1575852633,
0.0940187573,
-0.4223302007,
0.4233851433,
0.0929757655,
0.2533915043,
0.1302945018,
0.1842268556,
-0.0053367708,
-0.0324563906,
0.2600782514,
-0.5889776945,
-0.2407675385,
-0.4462689459,
0.1636605561,
-0.0769673437,
-0.0008846819,
-0.1493413597,
-0.3815711141,
-0.0077783763,
0.3646033108,
-0.0682363957,
-0.1093359292,
-0.210760057,
-0.2921126187,
0.0683453903,
0.0984129608,
0.0979410708,
-0.0030864626,
0.0732311755,
0.2095305324,
-0.011197716,
0.0909686089,
-0.0722903758,
0.8490331769,
0.3808694482,
0.1589619219,
-0.13715747,
0.0585927442,
-0.3818634152,
-0.346711874,
-0.2079803497,
0.2196670175,
0.1029147282,
0.2258723676,
0.0135817677,
-0.3630977273,
0.3829048574,
-0.4260430038,
-0.1406193972,
-0.2655018866,
-0.0273055434,
0.3439026773,
-0.1893529892,
-0.4021933377,
-0.1628115475,
0.1936210096,
-0.0712734982,
-0.2060953081,
0.287833333,
0.0196361244,
0.1206152737,
-0.0654527768,
0.2733002901,
0.3706094325,
-0.0706125051,
0.1210647374,
0.2503654659,
-0.1985105127,
-0.092098996,
0.2520002425,
-0.1673202813,
-0.1930327117,
-0.3155905008,
0.0780284256,
0.5454149842,
-0.3548977077,
0.1936653852,
-0.0591131598,
0.3458315134,
-0.189355731,
-0.1768044829,
0.6700114012,
0.2171913981,
0.0598325767,
-0.2858709693,
0.072392568,
0.0444636941,
-0.3967034221,
0.1601865143,
0.3718762398,
-0.227028966,
-0.3977590501,
0.0656137392,
0.9026182294,
0.0739223808,
-0.0204971842,
0.5355350375,
-0.2725102305,
0.1874362081,
-0.0083449557,
0.0144131929,
-0.0275003761,
0.2743516862,
-0.0258420035,
-0.0873969644,
-0.0741570145,
-0.0525766239,
-0.3574900329,
0.1298759133,
-0.0773590207,
-0.2054114342,
-0.3921938539,
-0.2816848755,
-0.0590481833,
-0.4611426294,
-0.1275649518,
0.0406199135,
0.0264169872,
-0.0352805108,
-0.1628305018,
-0.1320151836,
0.1165284216,
-0.0537406951,
-0.2162318379,
0.0781155378,
-0.6180948019,
-0.1173081025,
0.3643270433,
0.1441094428,
0.0489348993,
0.7493510842,
0.3992193043,
0.1004932821,
-0.1019067392,
-0.0346710309,
0.0380588099,
0.14689973,
-0.2057353556,
0.2596020699,
0.0500525311,
-0.0948388875,
-0.2738463283,
-0.3900846243,
0.2031745017,
0.2213354707,
-0.2702946961,
0.1476627588,
0.1704065502,
-0.155068934,
-0.1391900182,
0.248621285,
0.3979616165,
-0.1134907007,
0.0703732148,
0.0325254127,
-0.2852582932,
-0.0750054345,
-0.1604667306,
-0.1852906197,
-0.0326347277,
0.3739664555,
-0.0991981328,
-0.2063404322,
0.2567952275,
0.3225004673,
-0.0970663875,
0.0443218425,
-0.0425855741,
-0.2275402546,
-0.1387375295,
-0.0276306272,
0.2397426069,
-0.3784755468,
-0.1364811063,
0.0608390495,
0.217894271,
0.3661234975,
0.0013342351,
-0.1555373222,
-0.1057620347,
0.2193024606,
0.2386521548,
-0.2483079433,
-0.1474939883,
0.0229121335,
0.2719471455,
-0.0955518559,
-0.2666562796,
0.2250198424,
-0.0137284547,
0.1234965324,
0.080668211,
-0.2712793946,
0.0472585298,
0.0140389465,
0.1686257273,
-0.2445576638,
-0.0775929242,
-0.1566592008,
-0.2303314507,
0.0986046568,
-0.1059731469,
-0.1805460155,
0.2839008272,
-0.3058713675,
-0.0257988572,
-0.1783960611,
0.0310364738,
0.5340159535,
0.1980638057,
0.3427357674,
0.0737953931,
-0.26959759,
-0.0548844598,
-0.0169348065,
-0.1495078653,
-0.258351475,
-0.154370755,
-0.0108810551,
-0.3470700979,
-0.0255423039,
0.2065119296,
0.1599380374,
-0.0566159226,
0.1992514879,
0.0756700486,
-0.4159169495,
-0.0555665679,
0.2746033072,
0.3202624619,
-0.2126525939,
0.159939006,
-0.037931636,
-0.0689279363,
0.1196050271,
-0.1338180006,
-0.1015201807,
0.1273589581,
-0.1396163255,
-0.1532642543,
0.0211791657,
-0.4035213888,
-0.0985613614,
0.0096173901,
-0.0531238317,
0.0245267302,
-0.3315933645,
0.1222829223,
0.0853318721,
-0.1164041087,
0.2402066737,
0.308359623,
0.1164840609,
0.1611386538,
0.1334274113,
0.302975595,
0.0237995517,
0.0805646628,
0.4619537592,
0.4842875004,
-0.1208139956,
-0.4640149176,
0.2537318468,
-0.2379838228,
0.1630959213,
0.1570439339,
0.6198297739,
-0.1227153912,
-0.0865097344,
-0.3934354186,
0.3281669319,
-0.2067820132,
-0.3310200274,
-0.2828933299,
-0.0322406814,
-0.1390282363,
-0.2844772339,
-0.0741892904,
0.2360835075,
0.4354279935,
0.1857909709,
-0.1263837218,
-0.5862568021,
-0.2476724982,
0.1614828557,
0.1531929672,
-0.2323201597,
0.2458815426,
0.175043866,
-0.0998741761,
0.2778572738,
0.4051599205,
0.1902061701,
0.3123470545,
-0.092378296,
-0.0362784266,
0.0800684839,
0.0430135876,
0.0009689927,
-0.1873480529,
0.2856107056,
0.289557904,
-0.0567994043,
0.0739884526,
-0.1955512911,
0.1364595294,
-0.0608531535,
0.2052815855,
-0.1229844093,
0.3780434132,
-0.4240854383,
-0.0320695192,
-0.2460834235,
0.084750466,
-0.4977921844,
0.0217529126,
-0.133801952,
0.0879795551,
-0.0383845493,
0.1069188565,
0.0677048117,
0.3495080769,
0.2672061622,
0.2033053637,
-0.0520669371,
-0.0190252941,
-0.0816774815,
-0.2635881305,
0.0648217127,
0.5914782882,
0.4455239475,
0.1026993394,
-0.0389797427,
-0.065478012,
-0.2587243617,
0.3318724334,
-0.0806485489,
0.0748647004,
-0.0159801282,
-0.3904723525,
0.3514471054,
0.4120184183,
0.1034909636,
0.2982915342,
0.0427885279,
0.1380146593,
0.0990965366,
-0.0682735741,
0.1041038409,
0.3699244857,
-0.2538017631,
-0.4620385766,
-0.0537598059,
0.0715955719,
-0.1099160016,
-0.0680900216,
-0.0628552288,
-0.0639533103,
-0.0505754128,
-0.1750563085,
-0.220709756,
-0.3777939379,
0.322945118,
-0.2659553885,
-0.0538450927,
-0.1311863065,
-0.1632920206,
0.0874988064,
-0.1817832589,
-0.4835098386,
0.4868102372,
0.1875,
-0.0776986033,
0.1575498283,
-0.0747748315,
-0.0410983972,
0.2436162829,
-0.0356815457,
-0.2809415758,
0.5687161684,
-0.2521859407,
-0.0559186973,
-0.1319845915,
0.4510649443,
-0.3866225183,
-0.1106128991,
-0.2237983048,
-0.0065837801,
0.090252474,
0.1736411899,
-0.1896890402,
0.20940575,
-0.1601657569,
-0.2573341727,
-0.1231328994,
-0.0099012144,
0.5217809677,
-0.3492456079,
0.2818294466,
0.1111742556
] |
https://github.com/huggingface/datasets/issues/2123 | Problem downloading GEM wiki_auto_asset_turk dataset | Hi,
sadly I can't replicate the problem on my Windows machine. Try to update the library to the newest version with:
```bash
pip install git+https://github.com/huggingface/datasets
``` | @yjernite
### Summary
I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code.
### Steps to reproduce
Code snippet:
from datasets import load_dataset
#dataset = load_dataset('gem', 'web_nlg_en')
dataset = load_dataset('gem', 'wiki_auto_asset_turk')
```
**Expected behavior:**
I expect the dataset to start downloading (download bar appears and progresses toward 100%)
**Actual behavior:**
Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more:
Downloading: 36.6kB [00:00, 37.2MB/s]
Downloading: 41.7kB [00:00, ?B/s]
Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d...
### Is this a regression?
No, it was the first time I was trying to download this dataset (same for the other ones).
### Debug info
- Python version: Python 3.8.2
- OS version: Windows 10 Family | 26 | Problem downloading GEM wiki_auto_asset_turk dataset
@yjernite
### Summary
I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code.
### Steps to reproduce
Code snippet:
from datasets import load_dataset
#dataset = load_dataset('gem', 'web_nlg_en')
dataset = load_dataset('gem', 'wiki_auto_asset_turk')
```
**Expected behavior:**
I expect the dataset to start downloading (download bar appears and progresses toward 100%)
**Actual behavior:**
Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more:
Downloading: 36.6kB [00:00, 37.2MB/s]
Downloading: 41.7kB [00:00, ?B/s]
Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d...
### Is this a regression?
No, it was the first time I was trying to download this dataset (same for the other ones).
### Debug info
- Python version: Python 3.8.2
- OS version: Windows 10 Family
Hi,
sadly I can't replicate the problem on my Windows machine. Try to update the library to the newest version with:
```bash
pip install git+https://github.com/huggingface/datasets
``` | [
-0.081687741,
-0.0280801952,
-0.046475675,
0.4495638609,
0.2806961834,
0.1159588993,
0.3161945343,
0.1778607666,
0.2470397949,
-0.117115207,
0.176664263,
0.1722978055,
0.1142347082,
-0.0033529475,
-0.1686287075,
-0.1824519038,
-0.0154064558,
-0.0730276257,
0.0597674847,
-0.1803474873,
-0.025909625,
0.2145032585,
-0.1021221951,
-0.1298858523,
-0.2996246517,
0.1392064244,
0.0705753043,
-0.0579682328,
-0.2835351229,
-0.0846160203,
0.5160743594,
0.015268987,
0.054124929,
0.3606871367,
-0.0001191775,
-0.0883907974,
0.4347237945,
-0.0755547136,
-0.0962895006,
-0.4143655002,
-0.1749691367,
-0.4833079875,
0.1066899821,
-0.2166321725,
0.1262151748,
0.3857176304,
-0.0858345777,
0.1857330203,
0.0552002303,
0.0067073889,
0.189713046,
0.3324503005,
0.1076219007,
-0.0123926587,
0.1707161069,
-0.4481364191,
-0.2214535922,
0.0033135451,
-0.1796579659,
0.1315106153,
0.0395611636,
0.1944479644,
-0.0939045101,
0.3865468204,
0.1432822943,
0.165697813,
-0.1127322912,
-0.5313159227,
0.3458318114,
0.3503460586,
0.7223215103,
-0.1362185478,
-0.4294936061,
-0.1829382777,
0.0109780282,
0.0725168139,
0.1456317157,
0.4450258613,
-0.4367175698,
0.0626263469,
-0.4804294407,
-0.0108169802,
-0.0504397303,
0.1969977021,
-0.2779853344,
0.1538719833,
-0.1802171618,
0.0275486037,
0.0224017128,
-0.0193433464,
-0.5223584175,
-0.2752561271,
-0.1900454313,
0.3314400613,
-0.3189226687,
0.1227754056,
0.0755733848,
0.2214296907,
0.3313708603,
0.3213436306,
0.0606179722,
0.2102866024,
-0.2032126784,
0.0687994882,
0.123771891,
0.3406439126,
-0.0189022496,
-0.3897576332,
0.2435052395,
0.145523265,
-0.0094317421,
0.0612483583,
-0.1362195611,
-0.0531069413,
0.2008862495,
-0.3221501112,
0.1496372968,
-0.1072725728,
-0.1480016857,
0.3196874857,
0.1803124398,
-0.0844288096,
-0.1269766837,
0.2217450291,
-0.3037923276,
-0.1206941307,
-0.1747682393,
0.3599668443,
-0.1778771579,
0.1502555013,
-0.0383375511,
-0.1955488175,
-0.0761464536,
-0.0892637372,
0.2936599553,
-0.3465346098,
0.433396399,
0.1367747486,
-0.1526526809,
-0.1169116125,
-0.1287566572,
-0.039041739,
0.098197028,
0.3059738874,
0.1316251904,
0.8464612961,
-0.0953702927,
-0.195002079,
-0.002344951,
-0.0219802819,
-0.2224008441,
-0.1721914709,
-0.1615698487,
0.1161727905,
-0.5253878832,
-0.2442703247,
-0.0805351138,
0.2623373568,
0.1820070744,
-0.1339118183,
-0.0498557463,
0.0547218807,
0.0323241949,
-0.2065602243,
0.5081894398,
0.6407995224,
-0.1834064275,
-0.0922176763,
-0.069297418,
0.0496930629,
0.4750284553,
0.0278592519,
0.0567067415,
-0.2645196021,
-0.0762459263,
0.3398239911,
0.156805858,
0.0418999493,
-0.6642843485,
0.2593212426,
-0.1147140637,
0.3474904299,
0.045729015,
0.1448653936,
0.0791679621,
0.2138338089,
-0.2915186882,
0.2178663611,
0.0779670924,
-0.1681087464,
-0.3459097445,
-0.5063446164,
0.0326994695,
0.0652404726,
0.1050835401,
-0.0352258794,
0.0922685638,
-0.0297137573,
0.3413632214,
0.2768877447,
0.2760130763,
0.1004939526,
0.1694339812,
-0.1927227527,
-0.0391565375,
-0.1571120918,
-0.09866862,
0.4336699545,
0.5681737661,
0.0755830705,
-0.0403055102,
0.0529334247,
-0.2321747243,
-0.0986361206,
-0.2844690382,
-0.0613791794,
0.0320411101,
0.1366153657,
0.2758430839,
0.3003494442,
0.064175874,
0.0588752404,
-0.0273836777,
0.0769525692,
-0.0364976712,
0.1805669367,
0.1156977564,
-0.1536082327,
-0.1736177504,
-0.0380751789,
-0.0246206708,
0.1201033145,
-0.1740358472,
-0.0016027763,
-0.2524649799,
0.1376885176,
-0.0011995854,
-0.0421973169,
0.1814184338,
0.0924868435,
-0.0820011869,
0.0342548862,
0.1587931812,
0.0240618587,
-0.0482478067,
0.1165843904,
0.1964152157,
0.3760879338,
-0.0156625062,
0.1976142824,
0.3015952408,
-0.0230617076,
-0.0101589374,
-0.0483586639,
0.3486322463,
-0.291757524,
-0.0928587466,
-0.0529289991,
-0.1222143769,
0.2972129881,
0.5440856218,
0.1440677494,
0.1042793542,
0.2706978917,
-0.3404788375,
0.0580155551,
0.0074609127,
0.5212215185,
0.2717370093,
0.1254093945,
0.2412410975,
-0.3357157707,
0.0227843374,
-0.2253903449,
0.0504492633,
0.3411952853,
0.0310135186,
0.4100655913,
0.1152250469,
0.1589040458,
-0.1292015016,
-0.0007828772,
0.0924940482,
0.1012291089,
-0.0613568127,
-0.0827758685,
-0.2790412605,
0.2550800443,
0.019133471,
-0.4520638883,
-0.1873602867,
-0.1690167189,
-0.1112911478,
0.0601357333,
0.0149313882,
-0.0829626769,
-0.1273139417,
-0.1843732595,
-0.0779940635,
-0.4661271572,
-0.3761636913,
-0.0393189713,
-0.3338098526,
-0.054367885,
0.134969458,
-0.1055982783,
0.3403265178,
-0.1259236038,
0.0895536616,
-0.1539132446,
-0.2382999361,
0.0364205576,
-0.039155744,
0.4648874402,
-0.2274118513,
0.4167215228,
-0.2183639109,
-0.0946405083,
0.2081888616,
-0.0117892139,
0.011748895,
0.1601531208,
0.1084008738,
-0.184139967,
-0.1214254051,
-0.2491449416,
-0.3370249867,
-0.3670066893,
0.0554955453,
0.1750669181,
-0.0603157766,
0.1239498183,
0.2380945534,
0.0504881367,
0.0789690763,
0.0597548634,
-0.0546672344,
-0.3152786195,
0.7877441645,
-0.098107025,
-0.4563621581,
0.2528222203,
0.0194492862,
0.3236148953,
0.1190219298,
-0.5418385267,
0.1938306838,
-0.2075990289,
0.2528556883,
0.3119232953,
0.1334057152,
0.0659779012,
-0.3006311059,
0.085058026,
-0.1448846161,
-0.0648221895,
-0.0518279411,
0.0345305316,
0.2522469163,
0.0448783152,
0.280890435,
0.073052451,
0.8497205973,
0.3471907377,
-0.1278247535,
0.43303743,
0.0222698841,
0.122264348,
0.0275239088,
-0.2162038982,
-0.1881281435,
-0.2801280916,
0.1928051561,
0.1971002817,
0.2568853498,
-0.1927206814,
-0.0705790445,
-0.0354843549,
-0.4562742412,
-0.3566125035,
-0.1564671248,
0.1749465168,
0.0198502466,
0.252876848,
0.3252741694,
0.0419690683,
-0.3157900572,
0.0709476471,
0.6042259932,
-0.0180896595,
0.1327620596,
0.0960056186,
0.0963849947,
-0.6682864428,
0.0801897496,
-0.0731348172,
0.0524437465,
-0.0586329773,
0.0750322789,
0.1558498144,
-0.1677348316,
0.2104665339,
-0.1685737371,
0.1192497313,
-0.1813426167,
-0.1501009315,
-0.2522384822,
-0.1885751635,
0.0301534608,
-0.0171001293,
0.4971934259,
0.0676605403,
-0.3547147512,
-0.0469294675,
0.0319271237,
0.1990065128,
-0.1385646313,
-0.2439803332,
-0.2731689215,
-0.4530651271,
-0.3138135076,
-0.1619623303,
-0.1599068195,
0.3852407932,
-0.1853048354,
-0.2951051891,
-0.0774156228,
0.2495989203,
0.1731641889,
-0.0336133763,
0.3335486352,
0.1254874915,
0.4604846835,
0.0982632935,
-0.0491271392,
-0.2059217691,
0.5613114238,
0.2876956165,
0.0040213019,
0.0403385051,
-0.3095000088,
0.0059940852,
0.2227888703,
-0.1943593621,
0.008887846,
-0.0427963734,
0.2556532621,
-0.2304720879,
0.004415635,
0.2676949501,
-0.0439066142,
-0.1657659411,
-0.3439022303,
0.7110817432,
-0.1870896965,
0.0073712021,
0.1814475805,
0.3193120956,
0.1108464003,
0.1971048117,
-0.1053669676,
0.7823940516,
0.0310275257,
0.0068507688,
0.0907241777,
0.0066087544,
0.4280929565,
-0.1839736104,
0.1017169207,
-0.2968288362,
0.1675536633,
-0.1127451658,
0.0654989183,
-0.1194289774,
0.031777367,
-0.1100662872,
0.1077061221,
-0.1043975651,
0.2221237719,
0.0014600828,
0.0588444993,
-0.4258775413,
-0.1570960283,
-0.0271796752,
0.1052966267,
0.0811597258,
0.6855872869,
0.0226783864,
-0.2424749136,
-0.2606496811,
-0.1097198427,
-0.613561213,
0.1031905413,
0.050034035,
-0.1013253033,
-0.1435422748,
-0.439838171,
0.0104194507,
0.4039469659,
0.0100889131,
0.1477421522,
-0.3837982714,
0.2592805326,
-0.3560682237,
-0.0807949156,
0.1573889703,
-0.0986840278,
0.0980850682,
-0.2220796049,
-0.2630309463,
-0.052091904,
-0.1026495621,
0.2872573733,
-0.1842315942,
0.0993954092,
0.1668801606,
-0.0009771213,
-0.3264903426,
0.0899218023,
-0.0364112742,
-0.1096254736,
0.1086656228,
0.1119769365,
0.0754053965,
0.2290826291,
0.1139523685,
-0.265391469,
-0.2274805456,
0.4559676647,
-0.2483862191,
0.1248020604,
0.3189174533,
-0.0318281353,
-0.2407341748,
-0.0966907963,
-0.1099539176,
0.0359347686,
-0.7207140326,
-0.2418964207,
0.0526488386,
0.3125579655,
-0.1153777912,
-0.1167013347,
0.1347853988,
-0.4312651157,
-0.289440155,
-0.4584358335,
0.1800459772,
0.1059935391,
-0.0408890694,
0.1017269567,
-0.4367370009,
-0.433270663,
0.3100476265,
0.0761302263,
-0.1704941243,
0.0007380918,
-0.1080607027,
-0.1516110599,
0.2151225954,
0.2728158236,
0.230477795,
0.0991627797,
-0.0150700156,
0.0801520646,
-0.1900813729,
-0.1383890212,
-0.1702753454,
0.1958660185,
0.1405551136,
0.0211828724,
0.1988041401,
-0.0894548297,
-0.210102424,
-0.1073060483,
0.2127434313,
0.0108347312,
-0.0449901409,
0.053857971,
0.06547454,
0.4179030359,
-0.4134478569,
0.1011989266,
-0.0769585595,
0.8318885565,
0.0498320945,
-0.0228618626,
0.5013241768,
0.1181736812,
-0.169873327,
-0.1642746329,
-0.0966288745,
-0.116524905,
0.3193701506,
-0.2874975204,
0.4792013168,
0.1438089758,
0.1256598234,
0.3302176297,
-0.0593105294,
-0.050448671,
0.200354889,
0.2262880057,
-0.135941714,
-0.1441450119,
0.0161874481,
0.0286671221,
-0.0199427679,
-0.0807391852,
0.1297766268,
-0.2770058215,
-0.2101166248,
0.0414086059,
0.5093352795,
-0.137775138,
-0.1708631366,
0.4947825074,
0.055907473,
0.3179513216,
-0.0497509539,
-0.0534837991,
-0.1506357342,
0.3966701925,
-0.1369427443,
0.3893030882,
0.0201557539,
0.1261627674,
-0.4025038183,
-0.4796633124,
-0.0644200593,
0.0733943582,
-0.1230627224,
0.2888696194,
0.0823753178,
0.3891583085,
0.0758619457,
0.0047952458,
-0.4773794413,
-0.0159606989,
0.0408852249,
-0.084168613,
0.050467059,
-0.3593046665,
-0.1800889522,
0.365473628,
0.0755968392,
-0.1684400737,
0.3236729801,
0.1039575934,
-0.1719411463,
-0.6745165586,
-0.0464284271,
-0.0719372556,
0.0678932518,
-0.2763384581,
0.0687300414,
0.2137108594,
-0.1565643549,
-0.0731753632,
0.0783226565,
0.3924457431,
0.3857094646,
0.0832013711,
-0.0141662024,
0.0295007825,
-0.0373413824,
-0.2444288582,
0.3866626918,
0.2492735386,
-0.0398113206,
0.1174167767,
0.0938087255,
-0.2524933815,
0.1372157633,
0.0313969329,
-0.03664257,
-0.2242299616,
0.6495134234,
-0.356885612,
0.1387889385,
-0.1306098104,
-0.3363535106,
-0.3808220029,
-0.0296450555,
0.3237258196,
0.0874635801,
0.0638079345,
-0.3256822526,
0.0342922807,
-0.2143955529,
0.2552115023,
0.1064575315,
0.1482564062,
-0.2821870148,
0.081338197,
-0.7299489379,
-0.0173944831,
0.137516439,
0.0214740708,
-0.058358606,
0.2993568182,
-0.2897751927,
0.1507230401,
0.2090242505,
-0.0964550972,
0.2572149336,
0.3506221771,
-0.2775310278,
-0.0317809805,
-0.3194122612,
-0.0132923992,
-0.07512898,
-0.2688680291,
0.2787604034,
-0.579687655,
-0.0678596795,
-0.0651756972,
0.0039574578,
0.1840028316,
-0.3104125261,
0.7294006944,
0.0280632656,
0.3549131453,
-0.0816789418,
-0.1018689722,
-0.3929451406,
0.0522319786,
-0.0009313338,
0.1937032789,
-0.140304327,
0.2974935174,
0.0782984346,
0.0930252075,
-0.1326321363,
-0.1125839651,
0.1230460852,
0.282512933,
0.0001769066,
-0.3003873825,
-0.0445051491,
0.0881562009,
0.2207866311,
0.3169260919,
-0.1306287348,
0.175139755,
-0.1964040697,
-0.2953552604,
0.3967742622,
-0.3647970557,
-0.1716308892,
-0.0875278786,
0.1622872651,
0.3407034874,
-0.0746821761,
-0.5330120921,
0.0122241229,
0.2591092885,
-0.1060751677,
-0.2506812215,
0.1562738419,
0.0640463382,
-0.1545908004,
-0.0293871202,
0.2450350076,
0.03113278,
-0.3094675243,
0.3645015359,
-0.1493783295
] |
https://github.com/huggingface/datasets/issues/2123 | Problem downloading GEM wiki_auto_asset_turk dataset | Is there an error message ?
What stacktrace do you get if you interrupt the execution of the program while downloading ? | @yjernite
### Summary
I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code.
### Steps to reproduce
Code snippet:
from datasets import load_dataset
#dataset = load_dataset('gem', 'web_nlg_en')
dataset = load_dataset('gem', 'wiki_auto_asset_turk')
```
**Expected behavior:**
I expect the dataset to start downloading (download bar appears and progresses toward 100%)
**Actual behavior:**
Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more:
Downloading: 36.6kB [00:00, 37.2MB/s]
Downloading: 41.7kB [00:00, ?B/s]
Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d...
### Is this a regression?
No, it was the first time I was trying to download this dataset (same for the other ones).
### Debug info
- Python version: Python 3.8.2
- OS version: Windows 10 Family | 22 | Problem downloading GEM wiki_auto_asset_turk dataset
@yjernite
### Summary
I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code.
### Steps to reproduce
Code snippet:
from datasets import load_dataset
#dataset = load_dataset('gem', 'web_nlg_en')
dataset = load_dataset('gem', 'wiki_auto_asset_turk')
```
**Expected behavior:**
I expect the dataset to start downloading (download bar appears and progresses toward 100%)
**Actual behavior:**
Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more:
Downloading: 36.6kB [00:00, 37.2MB/s]
Downloading: 41.7kB [00:00, ?B/s]
Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d...
### Is this a regression?
No, it was the first time I was trying to download this dataset (same for the other ones).
### Debug info
- Python version: Python 3.8.2
- OS version: Windows 10 Family
Is there an error message ?
What stacktrace do you get if you interrupt the execution of the program while downloading ? | [
-0.132162571,
0.0142394006,
-0.0815599933,
0.439994216,
0.2992447019,
0.1402181983,
0.3794733882,
0.147787869,
0.2320194244,
-0.0426294729,
0.2344707549,
0.1440668702,
0.1074130684,
-0.0218766592,
-0.1961919367,
-0.141847685,
-0.0774907395,
-0.0699518472,
0.1331873238,
-0.1573006213,
-0.0862876773,
0.1746142954,
-0.160143137,
-0.0402906835,
-0.2822528183,
0.0316643044,
0.1252019107,
0.0306362528,
-0.2620680332,
-0.1533477157,
0.5731251836,
0.0543965362,
0.0777288824,
0.41277197,
-0.0001159479,
-0.0370518416,
0.4838809669,
-0.0806425288,
-0.0932808518,
-0.4343474507,
-0.2929489017,
-0.4289577305,
0.140342623,
-0.3042384386,
0.2589860857,
0.3699572682,
-0.0471936949,
0.1229426861,
0.1223153472,
0.0604699254,
0.2033273578,
0.2653100491,
0.0952296183,
0.0126959123,
0.2613675296,
-0.5051375628,
-0.1550694108,
0.0339409187,
-0.2403399348,
0.2069714069,
0.0613533407,
0.1425444931,
-0.1477518678,
0.4220526218,
0.0742657036,
0.105186075,
-0.0462688804,
-0.6357185841,
0.3205804527,
0.4154243767,
0.7859739065,
-0.083630234,
-0.3444287777,
-0.0804109126,
0.0373601019,
0.0171113908,
0.136855334,
0.465603143,
-0.4767648578,
0.0495458134,
-0.398037225,
0.0067695342,
-0.0405777097,
0.1948126853,
-0.3115483522,
0.1401271224,
-0.154667899,
0.0738653392,
-0.0989532098,
0.0863772482,
-0.2981096506,
-0.3427292109,
-0.1150040329,
0.2818670273,
-0.4654176831,
0.115643844,
0.1317998767,
0.0213570893,
0.2442518771,
0.2795455158,
0.069408372,
0.2185828388,
-0.173307389,
0.1026940867,
0.2011169493,
0.2909260392,
-0.1033422351,
-0.3722575307,
0.2547002435,
0.1148326397,
0.002121523,
0.0427104123,
-0.120683983,
0.003535863,
0.2396790981,
-0.2869570255,
0.2340713143,
-0.1200398281,
-0.2040836811,
0.3872781396,
0.0314211249,
-0.0665430129,
-0.1857514679,
0.2559368014,
-0.168170616,
-0.0881123766,
-0.1446919888,
0.3099094331,
-0.1549852788,
0.1047628969,
-0.085324496,
-0.1981690526,
-0.0362770483,
-0.13007164,
0.2148918211,
-0.2713963389,
0.3452538252,
0.124105379,
-0.1539854407,
-0.1573803127,
-0.0081054196,
-0.1100420952,
0.1143708676,
0.3390209377,
0.1603038609,
0.8072766662,
-0.074409835,
-0.1066133305,
-0.0066187382,
0.0822715312,
-0.2562869489,
-0.2304995358,
-0.090020217,
0.1575148702,
-0.4614281654,
-0.1936815232,
-0.0424194597,
0.2153873891,
0.1626543999,
-0.1899284124,
-0.0849234909,
-0.0099527743,
0.0580627695,
-0.251806438,
0.4788050354,
0.5534904003,
-0.3083430231,
-0.0215370506,
-0.1111758053,
-0.0194270797,
0.4509567022,
0.0034098849,
0.0026832819,
-0.034290798,
-0.0746410713,
0.3815184534,
0.3053488135,
0.0375189185,
-0.6943234801,
0.2703819275,
-0.1899667084,
0.2698358297,
-0.0633267015,
0.1415516585,
0.132953018,
0.1815425307,
-0.3257970214,
0.2547839582,
0.0073141456,
-0.1606895775,
-0.3478210866,
-0.5174868107,
0.1066831797,
0.0958977044,
0.1435386389,
-0.0442355424,
0.1080905944,
-0.0246796794,
0.3150684237,
0.2980011106,
0.2028723657,
0.1548966765,
0.1308108717,
-0.2210356891,
-0.0933989137,
-0.1403892636,
-0.0056307949,
0.3707253337,
0.5322473049,
0.06015791,
-0.0091589876,
0.0486919209,
-0.3059341908,
-0.0659252182,
-0.2911711931,
-0.0881632268,
0.0756874382,
0.0847410858,
0.2108384818,
0.3549518585,
0.0124003962,
0.0866914615,
-0.065550223,
0.0727593973,
0.0445240885,
0.2100454718,
0.0401305035,
-0.146933794,
-0.2157850564,
-0.1121003032,
-0.0351800807,
0.0463371538,
-0.2612460256,
0.1182316989,
-0.2326168716,
0.0806272328,
-0.0174801648,
-0.1799468696,
0.0855989903,
0.0720397234,
-0.0770470947,
0.001003705,
0.2271563411,
-0.0208286196,
0.0648421049,
0.0480483621,
0.225918442,
0.3803311884,
-0.0249136686,
0.1595377326,
0.341937542,
-0.0640395954,
0.0453709066,
0.0332492441,
0.3400066197,
-0.186251089,
-0.1197084188,
-0.1674404591,
-0.132400617,
0.1907780021,
0.5834681988,
0.0761657655,
0.0721689612,
0.2146657705,
-0.2984448075,
0.0452684015,
0.0092086997,
0.5815955997,
0.3240525424,
0.117102325,
0.2098081708,
-0.347068727,
0.0677619651,
-0.224848181,
0.0345481671,
0.384732008,
0.065272525,
0.4256385267,
0.1201916412,
0.1514935195,
-0.0837181583,
-0.1162306219,
0.1635286808,
0.1416745484,
-0.0068450943,
-0.0429000333,
-0.2325440496,
0.154049471,
0.0598198287,
-0.4542247653,
-0.1608754843,
-0.270036459,
-0.1119740158,
-0.0115425503,
0.0120170638,
-0.0320088193,
-0.1950569749,
-0.172617346,
-0.0271608233,
-0.3007728159,
-0.3105889559,
-0.1425126642,
-0.3204442561,
-0.0535464846,
0.1348847151,
-0.0596891306,
0.3072901368,
-0.1035954803,
0.0955519676,
-0.0590397641,
-0.1923725307,
0.1506722271,
0.0209463704,
0.3641674221,
-0.1945990026,
0.4104296863,
-0.143418625,
-0.1419551671,
0.1534850299,
-0.0161834434,
0.0091252699,
0.237668559,
0.1352464557,
-0.1796500236,
-0.1143889576,
-0.3453749418,
-0.3516606092,
-0.380087167,
-0.0870521069,
0.1593193114,
-0.0395013615,
0.0151044168,
0.1947158426,
0.144130826,
0.0985893309,
-0.0364615172,
-0.0853471383,
-0.3460052013,
0.730237186,
-0.1546861529,
-0.3846493959,
0.2962002754,
-0.0790097415,
0.2984312773,
0.1366481781,
-0.5572382212,
0.2780166268,
-0.2417076081,
0.2090034336,
0.1866082549,
0.0398763046,
0.1015410125,
-0.2553367615,
0.0548728183,
-0.1268946379,
-0.0496453531,
0.0080499388,
0.08816199,
0.3132704496,
0.0028208271,
0.3143163323,
0.0217270106,
0.9094250202,
0.2800855041,
-0.1164813042,
0.3772396147,
0.0508963093,
0.0764648914,
0.0019647516,
-0.1339125186,
-0.1527619213,
-0.2287873477,
0.0307075456,
0.1379286647,
0.102073431,
-0.3040212989,
-0.1034985706,
0.0082997903,
-0.4625454843,
-0.4070032537,
-0.2032897621,
0.1494335234,
0.0558307022,
0.2711261213,
0.3171421289,
0.0534303784,
-0.1946011186,
-0.0139603987,
0.5690125227,
-0.0494959056,
0.0350786634,
0.099037528,
0.2003506273,
-0.5515702367,
0.1002977937,
-0.0405992493,
0.0772852302,
-0.0727349967,
0.0966600254,
0.1613285094,
-0.1698452383,
0.1840687841,
-0.2604216039,
0.0884883106,
-0.0746301562,
-0.0590103939,
-0.306117177,
-0.2616581321,
-0.0627489388,
0.0001801811,
0.5773658156,
-0.0871292502,
-0.3358073831,
0.0449206568,
0.0969549417,
0.136633873,
-0.171982199,
-0.2932933867,
-0.2531766593,
-0.4875627458,
-0.3430595994,
-0.0970970541,
-0.1672291458,
0.297411114,
-0.2426983863,
-0.3157045841,
-0.107571058,
0.3118186295,
0.0927713662,
0.0217724703,
0.2937589884,
0.0471886545,
0.3761808276,
0.0846757293,
-0.1619002223,
-0.0890387595,
0.524600625,
0.4296535552,
0.0228992533,
0.0954955816,
-0.3499965072,
0.0399575345,
0.247923702,
-0.1904249191,
0.0160616804,
-0.0825027302,
0.2524563968,
-0.1452444047,
0.0414056666,
0.3016323745,
-0.0441924557,
-0.2093587667,
-0.3414808512,
0.6050919294,
-0.2446244806,
-0.0457310379,
0.118527092,
0.1404813528,
0.1521068811,
0.2632793486,
-0.0781997368,
0.8599667549,
0.0772286654,
-0.077445507,
0.0988999903,
-0.0084117204,
0.4027970731,
-0.2912658155,
0.1771305352,
-0.2803231478,
0.0132391639,
-0.1299611628,
-0.0158461183,
-0.105927974,
0.0655041561,
-0.1470298767,
0.06472978,
-0.1514600068,
0.1660871506,
-0.0288571492,
0.0485918224,
-0.3781791031,
-0.1238502041,
0.0621934868,
0.1417936683,
0.0101716798,
0.6449927688,
-0.0319581106,
-0.2541674972,
-0.2328563035,
-0.0989847109,
-0.5923768282,
0.113436766,
0.0727087334,
-0.0870582461,
-0.2581638694,
-0.4596538544,
0.0500056222,
0.3805042803,
-0.0211779252,
0.1624513566,
-0.3153129816,
0.2178961337,
-0.307171762,
-0.0679483116,
0.1469366699,
-0.0749856681,
0.1409620792,
-0.1598260403,
-0.3013409376,
0.0454026163,
-0.1186194345,
0.2993143797,
-0.0679529756,
0.0814532638,
0.2012621462,
-0.1159825772,
-0.367344588,
0.1397229433,
-0.0426694304,
-0.1423513591,
0.1272452772,
0.1044208556,
0.0396637768,
0.2415794283,
0.1427759528,
-0.3163484335,
-0.2593219876,
0.3870817423,
-0.2076293081,
0.2182013988,
0.3941337764,
-0.0709005743,
-0.2479137182,
-0.1153726727,
-0.0883027241,
-0.1054178029,
-0.6121991873,
-0.2186025828,
-0.0251927134,
0.3561532199,
-0.1614971608,
-0.133636117,
0.1048497185,
-0.3490834534,
-0.3628377318,
-0.5235508084,
0.1306189895,
0.0656852499,
-0.0233991258,
0.1781971604,
-0.502835393,
-0.371675998,
0.3024104834,
0.0882695839,
-0.2060585171,
-0.0062338673,
-0.2363540977,
-0.1376997381,
0.2346301228,
0.2215421796,
0.1833388209,
-0.0016465709,
0.0138038658,
0.0670187026,
-0.1924350411,
-0.1775329113,
-0.1876376867,
0.1868733168,
0.1435885876,
-0.004631605,
0.2212843746,
-0.1453614533,
-0.1825260073,
-0.0043026283,
0.1372854561,
-0.0621720515,
-0.0482090674,
0.1047596633,
0.0236890465,
0.5183142424,
-0.5156224966,
0.1428273618,
-0.1296876669,
0.814684093,
0.0847085714,
-0.0049640038,
0.5043008327,
0.1296807379,
-0.227196306,
-0.2399455458,
-0.0662698075,
-0.0619186498,
0.3137120903,
-0.3795984685,
0.5551661849,
0.1559941471,
0.1405549198,
0.4373147488,
-0.115210779,
-0.1067773402,
0.1859595478,
0.2554092705,
-0.1378958672,
-0.0159415565,
0.1133423522,
0.0164482333,
-0.10426943,
-0.0887304395,
0.0588716418,
-0.1715670079,
-0.2014304399,
0.0903034359,
0.4766492844,
-0.1343521327,
-0.1119907573,
0.4683962166,
-0.0434003137,
0.3703643978,
0.0106771104,
-0.0769263804,
-0.1106143147,
0.4471063614,
-0.1143289879,
0.3792327344,
0.0593008548,
0.1455964893,
-0.3888530135,
-0.508274734,
-0.017624937,
0.091701664,
-0.1510201991,
0.272323668,
0.11233145,
0.2418510765,
0.0616756417,
0.0401139073,
-0.4717871249,
0.01856016,
-0.019047495,
0.0652199835,
0.1212088466,
-0.3413903713,
-0.0984338,
0.3095859289,
0.0807392821,
-0.0661869869,
0.343912214,
0.1642587483,
-0.1780664623,
-0.6546586156,
0.0632566363,
-0.1167255342,
0.0596519113,
-0.304633826,
0.0001113396,
0.2576381862,
-0.1148888841,
-0.0486504436,
0.1723042428,
0.3171803951,
0.4272040725,
-0.092446357,
-0.0012719706,
0.1156507283,
-0.1001414061,
-0.156968832,
0.3286310434,
0.2741537988,
0.0744794682,
0.2132533342,
0.1276145577,
-0.2593200803,
0.2150094211,
0.1319012493,
0.0374735296,
-0.2750093937,
0.6634898186,
-0.2822518647,
0.1430799961,
-0.1848211884,
-0.3486424685,
-0.3625611961,
-0.0404622853,
0.3105906546,
0.0405472554,
0.0489031747,
-0.2859007418,
0.0431645773,
-0.2818433642,
0.2512694895,
0.1280832142,
0.2027849555,
-0.3090599179,
0.1365201622,
-0.7200749516,
0.0663313642,
0.0720289126,
-0.0794794187,
0.013145864,
0.3335938454,
-0.2754961252,
0.2615028918,
0.3244894147,
-0.1350859702,
0.1313528568,
0.4813813865,
-0.2831986547,
-0.071687609,
-0.3385832012,
-0.1188429967,
-0.1176449358,
-0.2906940877,
0.253325969,
-0.5135532022,
-0.0406851806,
-0.0369680077,
-0.1029603854,
0.2287245244,
-0.3376687765,
0.7718417048,
0.0204324331,
0.4181726575,
-0.0625889301,
-0.0474007167,
-0.2577985525,
0.0249533653,
-0.0442730114,
0.1935826838,
-0.0700875074,
0.2800272405,
0.0949933827,
0.1358513236,
-0.156049192,
-0.1138928458,
0.0798367113,
0.3366303444,
-0.0748938844,
-0.3074181676,
-0.0118570104,
0.0736626834,
0.3071091473,
0.2668801546,
-0.0882937163,
0.2186749279,
-0.1876817346,
-0.2498737276,
0.3628956079,
-0.2184951305,
-0.1908557564,
-0.0703235418,
0.1019256413,
0.2778057158,
-0.0298839845,
-0.4902453125,
0.0206852555,
0.3025434315,
-0.1489335597,
-0.2680255473,
0.1509249657,
0.0631177872,
-0.1221381351,
-0.0223943852,
0.2566052079,
-0.024709722,
-0.2528832555,
0.2719271481,
-0.0967396423
] |
https://github.com/huggingface/datasets/issues/2123 | Problem downloading GEM wiki_auto_asset_turk dataset | Sorry for the long time since my last comment, I tried again and don't seem to have the problem anymore, thanks for your support! | @yjernite
### Summary
I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code.
### Steps to reproduce
Code snippet:
from datasets import load_dataset
#dataset = load_dataset('gem', 'web_nlg_en')
dataset = load_dataset('gem', 'wiki_auto_asset_turk')
```
**Expected behavior:**
I expect the dataset to start downloading (download bar appears and progresses toward 100%)
**Actual behavior:**
Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more:
Downloading: 36.6kB [00:00, 37.2MB/s]
Downloading: 41.7kB [00:00, ?B/s]
Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d...
### Is this a regression?
No, it was the first time I was trying to download this dataset (same for the other ones).
### Debug info
- Python version: Python 3.8.2
- OS version: Windows 10 Family | 24 | Problem downloading GEM wiki_auto_asset_turk dataset
@yjernite
### Summary
I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code.
### Steps to reproduce
Code snippet:
from datasets import load_dataset
#dataset = load_dataset('gem', 'web_nlg_en')
dataset = load_dataset('gem', 'wiki_auto_asset_turk')
```
**Expected behavior:**
I expect the dataset to start downloading (download bar appears and progresses toward 100%)
**Actual behavior:**
Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more:
Downloading: 36.6kB [00:00, 37.2MB/s]
Downloading: 41.7kB [00:00, ?B/s]
Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d...
### Is this a regression?
No, it was the first time I was trying to download this dataset (same for the other ones).
### Debug info
- Python version: Python 3.8.2
- OS version: Windows 10 Family
Sorry for the long time since my last comment, I tried again and don't seem to have the problem anymore, thanks for your support! | [
-0.0690354854,
-0.009997949,
-0.0715509355,
0.4162676334,
0.2822790742,
0.1222891062,
0.385153681,
0.2134167701,
0.2334703356,
-0.1133926213,
0.2428504825,
0.1628347486,
0.1382039189,
-0.0105031729,
-0.1870104671,
-0.191043973,
-0.0316888727,
-0.0682894439,
0.1373938918,
-0.2212913036,
-0.0542819612,
0.1533594429,
-0.1293252558,
-0.0846192837,
-0.2987629771,
0.1394871473,
0.1094796211,
-0.0853874087,
-0.3324195743,
-0.084305957,
0.5183297396,
0.0374570787,
0.0902132168,
0.2967354059,
-0.000117695,
-0.1262209862,
0.4400683641,
-0.0800702199,
-0.0858734325,
-0.4032160044,
-0.2881534696,
-0.4585103393,
0.1159151047,
-0.2507404089,
0.1574530602,
0.3613406122,
-0.0828233138,
0.2039817274,
0.0602641255,
0.0538335219,
0.2015052438,
0.2203443348,
0.1119727939,
0.0012681819,
0.1720886081,
-0.5136727095,
-0.1961067915,
-0.0156471059,
-0.2056453079,
0.1159267128,
0.0759861618,
0.1538499147,
-0.1160209998,
0.4487345517,
0.1005102694,
0.1362582743,
-0.0333039574,
-0.5621500611,
0.3449826241,
0.3804033399,
0.8352507353,
-0.0441536233,
-0.3848358095,
-0.0902391523,
0.0297752619,
0.0776900649,
0.1012257189,
0.4795997441,
-0.4089400172,
0.0576065443,
-0.4534149468,
0.0004346855,
-0.0540678166,
0.2307636589,
-0.3505898714,
0.2053678334,
-0.1281367242,
0.0540483519,
-0.0512708798,
-0.0229178481,
-0.3819195032,
-0.3187372983,
-0.1858949065,
0.3288644552,
-0.3765308559,
0.0876473635,
0.0818024874,
0.1013023257,
0.3065653741,
0.3332846165,
0.0595948994,
0.2026233226,
-0.2427238524,
0.0974041149,
0.133346051,
0.3499375582,
-0.0496279076,
-0.3339033723,
0.2336530685,
0.083176598,
-0.0410001762,
0.0889142752,
-0.1326998174,
-0.0273617096,
0.2532706261,
-0.2916351557,
0.1138650626,
-0.1210349277,
-0.1329973638,
0.3446782529,
0.1328084022,
-0.1035740823,
-0.1729869545,
0.2109666169,
-0.2614233494,
-0.0748504698,
-0.1549176872,
0.3760828078,
-0.1342862546,
0.1245547682,
-0.0551474951,
-0.1946307719,
-0.0320642516,
-0.1308616102,
0.2359177321,
-0.2384798974,
0.3978219926,
0.1198452786,
-0.2069474161,
-0.169486925,
-0.0482040569,
-0.0695439726,
0.0892039388,
0.3029322028,
0.1519700736,
0.8524774909,
-0.1055618078,
-0.1533080041,
0.0277881622,
0.0271231644,
-0.2666283548,
-0.2013558,
-0.1391534656,
0.1449591964,
-0.4829978347,
-0.2651833296,
-0.055565998,
0.2311142385,
0.2233173549,
-0.1439943314,
-0.0843162611,
0.0087370705,
0.0678064972,
-0.2231286466,
0.4462706149,
0.563144207,
-0.2154605389,
-0.0273494869,
-0.1023786962,
0.0829032511,
0.5172901154,
-0.0132264784,
0.0177298114,
-0.1962213963,
-0.0552286468,
0.3503421843,
0.234512955,
0.0634288415,
-0.6698730588,
0.2986479402,
-0.1121722907,
0.2659201324,
0.0351396799,
0.1727236956,
0.0882034823,
0.2288592011,
-0.2764084339,
0.3082547486,
0.0748304874,
-0.1855427027,
-0.3515205383,
-0.4687908888,
0.0907576531,
0.0779026896,
0.1690835357,
0.0095522441,
0.0666422248,
-0.0545496307,
0.3368752599,
0.2913603485,
0.2231928408,
0.0540954135,
0.1401033401,
-0.2684954703,
-0.0352167115,
-0.1048106551,
-0.016409263,
0.4072797,
0.5592118502,
0.0616350509,
0.0100324452,
0.0978968143,
-0.2644702196,
-0.1222738624,
-0.3213398755,
-0.0197782852,
0.052463267,
0.0943087339,
0.2169119716,
0.2984943688,
0.0374976099,
0.040189378,
-0.0420679227,
0.052352719,
0.041619584,
0.1940544099,
0.0674394816,
-0.1331956089,
-0.1795914173,
-0.1060783863,
0.0163920876,
0.1452952623,
-0.229195863,
-0.0028155316,
-0.2187504768,
0.0633664131,
-0.0434074216,
-0.0914293379,
0.1379372478,
0.098181136,
-0.0766848549,
0.0328034386,
0.1698217988,
-0.0115782619,
-0.00296239,
0.0853827149,
0.2800176144,
0.3755196929,
-0.0150111541,
0.2399070263,
0.3355816603,
-0.0406276919,
0.0454283282,
-0.0145033523,
0.3255585432,
-0.2656663656,
-0.1476522237,
-0.0680987984,
-0.0925352424,
0.2774904966,
0.5297243595,
0.1324803531,
0.1280037165,
0.2106357217,
-0.3184185624,
0.018946968,
-0.0144935809,
0.5863619447,
0.2611170113,
0.0961606577,
0.2073135078,
-0.4086147845,
0.0570140779,
-0.2169000655,
0.04579743,
0.3264723718,
0.0644425154,
0.3982263207,
0.1019750535,
0.1328806281,
-0.0371611044,
-0.0382134467,
0.1255008876,
0.132680282,
-0.0410866216,
-0.0858974829,
-0.2936617732,
0.2567720413,
0.0599695966,
-0.439989984,
-0.1302779466,
-0.2698122859,
-0.1121217161,
-0.0198088828,
0.0327051207,
-0.0770637318,
-0.1244319007,
-0.2014304399,
-0.0588911846,
-0.3738243878,
-0.3677843213,
-0.1252191663,
-0.3382564485,
-0.0427057594,
0.1071571782,
-0.0983291939,
0.2873526812,
-0.1204515621,
0.0573703349,
-0.0958858654,
-0.1930487007,
0.0398490913,
-0.0043084207,
0.3839709759,
-0.2377867401,
0.4564392865,
-0.1663808227,
-0.0597173981,
0.1663670838,
0.0243511349,
0.0365824923,
0.2220622301,
0.1051799804,
-0.2187350243,
-0.0985901058,
-0.2855588794,
-0.3799358606,
-0.3414304256,
-0.0858325511,
0.205473423,
-0.0430650264,
0.0882584304,
0.2635266781,
0.0347823352,
0.1744255573,
0.0250120014,
-0.0449171662,
-0.286868751,
0.8346588016,
-0.0881902277,
-0.4069334269,
0.2835735679,
-0.0147729814,
0.3148872256,
0.1019530073,
-0.5072257519,
0.2176257074,
-0.209776774,
0.1955390871,
0.27958709,
0.0657093599,
0.061090745,
-0.3151112199,
0.0881060287,
-0.1394306868,
-0.0146766454,
-0.04873804,
0.124413915,
0.2875223458,
0.0122677125,
0.2843147516,
0.0379390791,
0.8390625715,
0.2417925149,
-0.1325191259,
0.4327151179,
0.0340303406,
0.022341067,
0.0224239863,
-0.1650137007,
-0.2018047422,
-0.2494832575,
0.1537347138,
0.127874434,
0.1948738843,
-0.2716968358,
-0.0661297888,
0.009021163,
-0.4472631216,
-0.3024115562,
-0.1900713146,
0.1551170647,
0.0075884061,
0.2950233221,
0.3235779405,
0.0450513884,
-0.2776401639,
0.0365813524,
0.5699432492,
0.0019079335,
0.1023774147,
0.1366869807,
0.1184011325,
-0.5679131746,
0.0903750509,
-0.0908193514,
0.0821966976,
-0.0941475481,
0.1145556867,
0.1419598311,
-0.1593448371,
0.1375415921,
-0.3117367625,
0.1319681257,
-0.1461320072,
-0.1067252457,
-0.2218559086,
-0.2504520714,
0.0402816832,
-0.0445268378,
0.5353946686,
-0.0130359791,
-0.3280190527,
-0.006801147,
0.0755779222,
0.172642231,
-0.1590389758,
-0.2739728391,
-0.2760900855,
-0.4223752618,
-0.3200938404,
-0.2010694891,
-0.1957081407,
0.388867408,
-0.2165101767,
-0.2829760909,
-0.127885133,
0.2633855939,
0.1165941358,
-0.0192343257,
0.3295137882,
0.0984787717,
0.3884226382,
0.0532444194,
-0.1283081025,
-0.1797626019,
0.5015985966,
0.3309798539,
0.0123753175,
0.041373156,
-0.3306531906,
0.0061592758,
0.1630472541,
-0.2309938073,
-0.0541745462,
-0.0837309062,
0.1961087883,
-0.1559123546,
-0.0053323731,
0.2369254678,
-0.0777207762,
-0.1833664626,
-0.4182691872,
0.689094305,
-0.2060821056,
-0.0139102489,
0.1596005559,
0.1564733237,
0.1464678347,
0.2997375131,
-0.1261125654,
0.7728824615,
0.0346659943,
-0.035442438,
0.078500554,
0.087151736,
0.3426825404,
-0.2902924418,
0.1275340021,
-0.3353434205,
0.1532090604,
-0.1406504363,
0.01654879,
-0.1293692142,
0.084742263,
-0.0910066143,
0.149992913,
-0.1677746475,
0.2257801443,
0.0222392902,
0.0446507111,
-0.3492168784,
-0.0817785487,
0.0447298698,
0.1272881478,
0.02697381,
0.63939327,
0.0258919857,
-0.2409834564,
-0.2464607805,
-0.0886287913,
-0.5789685845,
0.1253207475,
0.1126070917,
-0.0713916793,
-0.2029533088,
-0.4535739422,
0.0131641328,
0.4507679641,
-0.058323957,
0.1790384352,
-0.3476181924,
0.2616405189,
-0.29323861,
-0.0864889324,
0.1592842638,
-0.0832832977,
0.0926179588,
-0.1949461997,
-0.2863843441,
0.0278715882,
-0.0813431889,
0.3039560318,
-0.1432858855,
0.1170967594,
0.2210616767,
-0.004692588,
-0.3729782104,
0.1475706398,
-0.0583349951,
-0.1162186936,
0.130028069,
0.1151075065,
0.0481414087,
0.2377814054,
0.1229680181,
-0.2875980735,
-0.2023487687,
0.4077860713,
-0.1703433692,
0.2058816403,
0.3319356441,
-0.0652092248,
-0.2308103144,
-0.1163450927,
-0.1078141704,
0.019342877,
-0.6593106985,
-0.2220487893,
0.0155069195,
0.3092423677,
-0.1467107832,
-0.1499704719,
0.0767484754,
-0.3893266916,
-0.3052191734,
-0.5143168569,
0.1934581697,
0.0530855879,
-0.0808665752,
0.1012817174,
-0.4944120646,
-0.4612380266,
0.3130163848,
0.1234032437,
-0.1799676269,
-0.0137860607,
-0.1672124565,
-0.140301317,
0.1541433781,
0.2915672958,
0.124361068,
0.0652923658,
0.0008926652,
0.0452477001,
-0.1702831835,
-0.168232888,
-0.1493079662,
0.1990282238,
0.1847806871,
0.008067172,
0.1910303533,
-0.1320531815,
-0.211307317,
-0.0451431982,
0.1274882108,
-0.059308663,
-0.0306265987,
0.0922674239,
0.080576323,
0.4037800431,
-0.4537478983,
0.1145540476,
-0.1015148386,
0.8488920927,
0.0857639909,
0.0158936866,
0.5661738515,
0.1179387122,
-0.2378251553,
-0.2062014937,
-0.1266634315,
-0.0977639258,
0.3483301103,
-0.3401978612,
0.5501437783,
0.1126515567,
0.0817639083,
0.3406645656,
-0.1266596019,
-0.0663284957,
0.1710985005,
0.254516989,
-0.1475622803,
-0.1292316765,
0.0592224635,
0.0956983715,
-0.0517927259,
-0.1130309403,
0.1341893673,
-0.2904940248,
-0.2642150819,
0.065819487,
0.4888228178,
-0.1714357287,
-0.1558434814,
0.4805562198,
0.0278120637,
0.3225763738,
-0.0504701138,
-0.0692567676,
-0.1912913918,
0.4133706093,
-0.1041398197,
0.3994588256,
0.118431218,
0.0900514722,
-0.4028483927,
-0.4876833558,
-0.0391132794,
0.0621097386,
-0.1485469043,
0.247134462,
0.1171718538,
0.2374734879,
0.1296532452,
0.0320803672,
-0.4850426316,
-0.0397880189,
0.0211888403,
-0.0166228563,
0.0458933115,
-0.3521014452,
-0.146523118,
0.364435792,
0.0529248603,
-0.1100593656,
0.3075853288,
0.1532517672,
-0.152140826,
-0.6718462706,
0.0426187553,
-0.0922222883,
0.044221133,
-0.3201609254,
0.0263662878,
0.2077564299,
-0.1201171428,
-0.0395674556,
0.0311253238,
0.3577184379,
0.4340397418,
0.0124248937,
-0.0142762512,
0.0483522825,
-0.0698322058,
-0.2068813145,
0.3337105215,
0.2554482818,
0.0059757456,
0.1312026381,
0.1121165305,
-0.2471868098,
0.1761157811,
0.0823042244,
0.001301758,
-0.2061570138,
0.6831781268,
-0.2835204899,
0.1168931574,
-0.1556621194,
-0.3341283798,
-0.3487709761,
-0.0198615901,
0.3473853171,
0.1519781053,
0.0724636912,
-0.3158143461,
0.0337596349,
-0.2807042897,
0.2559373379,
0.0740616173,
0.1723395288,
-0.3593783081,
0.1387787759,
-0.7013587356,
-0.0078814328,
0.0928429365,
-0.0245145597,
-0.0234820861,
0.3137423992,
-0.2782699466,
0.171325773,
0.2388452441,
-0.0347127505,
0.2462120056,
0.439314574,
-0.2718908191,
-0.048283916,
-0.3086028695,
0.0126588214,
-0.1189720333,
-0.2704187632,
0.2698470354,
-0.5997473598,
-0.0356085151,
-0.0418143645,
-0.0972710699,
0.2781628966,
-0.2821844816,
0.7650139928,
0.0147423614,
0.3980948329,
-0.0567810908,
-0.0382578969,
-0.299553901,
0.0535393544,
0.0010870248,
0.1728668213,
-0.100719966,
0.2720141113,
0.119593516,
0.184121564,
-0.1436822861,
-0.1453592181,
0.0513153225,
0.2917463779,
0.0047722682,
-0.3444969952,
-0.0239246488,
0.0892064348,
0.2369008958,
0.2461633235,
-0.1208508015,
0.1756343544,
-0.1573684961,
-0.2548573911,
0.3296074271,
-0.277628392,
-0.2133747339,
-0.1031808257,
0.132139802,
0.3171687722,
0.0198238324,
-0.478921771,
-0.0028056055,
0.2805313468,
-0.1406556666,
-0.235216707,
0.1149383634,
0.1322641671,
-0.102785103,
-0.0249513872,
0.1947853863,
0.0044229645,
-0.2891604006,
0.2658877373,
-0.1413052827
] |
https://github.com/huggingface/datasets/issues/2123 | Problem downloading GEM wiki_auto_asset_turk dataset | Great ! I'm closing the issue then. Feel free to re-open if you experience this issue again | @yjernite
### Summary
I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code.
### Steps to reproduce
Code snippet:
from datasets import load_dataset
#dataset = load_dataset('gem', 'web_nlg_en')
dataset = load_dataset('gem', 'wiki_auto_asset_turk')
```
**Expected behavior:**
I expect the dataset to start downloading (download bar appears and progresses toward 100%)
**Actual behavior:**
Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more:
Downloading: 36.6kB [00:00, 37.2MB/s]
Downloading: 41.7kB [00:00, ?B/s]
Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d...
### Is this a regression?
No, it was the first time I was trying to download this dataset (same for the other ones).
### Debug info
- Python version: Python 3.8.2
- OS version: Windows 10 Family | 17 | Problem downloading GEM wiki_auto_asset_turk dataset
@yjernite
### Summary
I am currently working on the GEM datasets and do not manage to download the wiki_auto_asset_turk data, whereas all other datasets download well with the same code.
### Steps to reproduce
Code snippet:
from datasets import load_dataset
#dataset = load_dataset('gem', 'web_nlg_en')
dataset = load_dataset('gem', 'wiki_auto_asset_turk')
```
**Expected behavior:**
I expect the dataset to start downloading (download bar appears and progresses toward 100%)
**Actual behavior:**
Instead of seeing the download bar appearing, nothing happens; the following appears in the console as expected, but nothing more:
Downloading: 36.6kB [00:00, 37.2MB/s]
Downloading: 41.7kB [00:00, ?B/s]
Downloading and preparing dataset gem/wiki_auto_asset_turk (download: 121.37 MiB, generated: 145.69 MiB, post-processed: Unknown size, total: 267.07 MiB) to C:\Users\sfmil\.cache\huggingface\datasets\gem\wiki_auto_asset_turk\1.0.0\f252756d7f1b8f019aac71a1623b2950acfe10d25d956668ac4eae4e93c58b8d...
### Is this a regression?
No, it was the first time I was trying to download this dataset (same for the other ones).
### Debug info
- Python version: Python 3.8.2
- OS version: Windows 10 Family
Great ! I'm closing the issue then. Feel free to re-open if you experience this issue again | [
-0.0635912716,
0.0054957718,
-0.069988206,
0.3975271285,
0.270481497,
0.1117716581,
0.4051201344,
0.2125455588,
0.2219948918,
-0.098070845,
0.2423040122,
0.1652894318,
0.143767938,
-0.0094377175,
-0.184955135,
-0.169198215,
-0.020927377,
-0.0780064017,
0.1397196203,
-0.2287251353,
-0.071882993,
0.1454976201,
-0.1185269877,
-0.0883479193,
-0.2948792577,
0.1466152966,
0.097131677,
-0.0787388831,
-0.3126652837,
-0.0990361571,
0.5155930519,
0.0568697415,
0.0788812041,
0.2951326072,
-0.0001170882,
-0.1244746298,
0.4406701326,
-0.0718017891,
-0.1148906797,
-0.3813540339,
-0.2894221544,
-0.4607843757,
0.1017344892,
-0.2550833225,
0.1578004956,
0.3514334559,
-0.0695676506,
0.1909138113,
0.0411403365,
0.0347969681,
0.2039115578,
0.2345371395,
0.0773687065,
-0.0092194267,
0.1685435772,
-0.508143127,
-0.2009909153,
-0.0149712758,
-0.1961534917,
0.1130618453,
0.0518402159,
0.1712567806,
-0.1112721339,
0.4450571239,
0.1092765406,
0.1475444138,
-0.03903386,
-0.5593596101,
0.3386209607,
0.3914216459,
0.8110867739,
-0.0349253342,
-0.3909862339,
-0.1163943857,
0.0144401863,
0.0883415714,
0.1094566137,
0.4731740654,
-0.4042173922,
0.0580029935,
-0.4430186749,
0.0162055567,
-0.0424057543,
0.2401295751,
-0.3565362096,
0.2099102437,
-0.1218152344,
0.0495126136,
-0.0501043238,
-0.0193965062,
-0.3825845122,
-0.3250640333,
-0.1779282689,
0.3222628534,
-0.3595638275,
0.0945245028,
0.108210966,
0.0944507495,
0.3044974506,
0.3384498954,
0.0650232881,
0.2179392874,
-0.242313534,
0.0910512954,
0.1257589161,
0.3379722536,
-0.0297966488,
-0.3428629339,
0.2374133021,
0.0910966396,
-0.0390360504,
0.0894544423,
-0.1421341747,
-0.0136251785,
0.240049094,
-0.299738735,
0.1066753939,
-0.1061815396,
-0.1355122328,
0.354513824,
0.1436536014,
-0.1008923948,
-0.1819546372,
0.2096241713,
-0.2602633834,
-0.0793683454,
-0.158303991,
0.3832472265,
-0.1480676681,
0.1088963449,
-0.064666234,
-0.2023757994,
-0.0430518314,
-0.1350315958,
0.2424610704,
-0.2153110802,
0.3975865841,
0.108227253,
-0.2019283175,
-0.1622782946,
-0.048272714,
-0.0600510985,
0.1039721668,
0.3016761541,
0.1376931667,
0.8678779006,
-0.0983776003,
-0.1486565918,
0.0211305022,
0.0338245034,
-0.2486860901,
-0.1927576065,
-0.1243552864,
0.1496054381,
-0.5011076331,
-0.2611995935,
-0.0476117656,
0.2438676804,
0.2210108489,
-0.1569941938,
-0.0882686824,
0.0083460752,
0.057275787,
-0.2188310027,
0.443471849,
0.5722364783,
-0.2253336012,
-0.0457063839,
-0.1119204611,
0.0897272155,
0.5085413456,
-0.0067211995,
0.0091114379,
-0.186652869,
-0.0492385812,
0.3607648611,
0.2355578691,
0.0613824427,
-0.6746476293,
0.2866028845,
-0.1267225742,
0.3046182692,
0.0336518288,
0.1798474193,
0.0886606276,
0.2086720914,
-0.267975986,
0.3060260415,
0.0844398588,
-0.1812130511,
-0.3593184948,
-0.4738079906,
0.0832658559,
0.0717403293,
0.1719872952,
0.0067714565,
0.066272825,
-0.0591572225,
0.3414897621,
0.2777412534,
0.2246891707,
0.0503940322,
0.1414612979,
-0.2738790512,
-0.0399671867,
-0.0855869576,
-0.0241374746,
0.4271654487,
0.5506258011,
0.0638863593,
0.0144225582,
0.0955627412,
-0.2469642013,
-0.1217613667,
-0.3224134445,
-0.044006817,
0.0578367114,
0.1223810911,
0.2030838728,
0.3038419783,
0.047956869,
0.03966555,
-0.0411099084,
0.0564443581,
0.0390904695,
0.1793065667,
0.0879453495,
-0.1351894736,
-0.2017705292,
-0.0988163427,
0.0059028622,
0.1391867101,
-0.2159443647,
0.005831128,
-0.2344038785,
0.0820511132,
-0.0509569459,
-0.0871931165,
0.1415043473,
0.1149086505,
-0.070946835,
0.031120427,
0.1603160352,
-0.0156811476,
-0.0311796181,
0.1139839739,
0.2691165209,
0.3814832866,
-0.0116239712,
0.2220477164,
0.3370930552,
-0.0468467176,
0.0317516103,
-0.0229208842,
0.3230008483,
-0.2710416317,
-0.1394492984,
-0.0685377344,
-0.0948326141,
0.3044228852,
0.5473518372,
0.1282821596,
0.1361957788,
0.2058171332,
-0.3219823837,
0.0160421804,
-0.0090269232,
0.594727993,
0.265707314,
0.1015210822,
0.2187125534,
-0.3983243108,
0.048816856,
-0.2300373018,
0.0376447141,
0.3252569735,
0.0534549132,
0.4030185938,
0.1133936495,
0.138507694,
-0.0495168716,
-0.027943708,
0.1278282404,
0.1014387235,
-0.0418634452,
-0.0687825754,
-0.2825421095,
0.2662616372,
0.0600424521,
-0.4334229529,
-0.1350178421,
-0.2884690166,
-0.1005190611,
-0.0144822551,
0.0014511496,
-0.0770187899,
-0.1364599317,
-0.1926986575,
-0.0802037194,
-0.3923889101,
-0.349755764,
-0.1259526908,
-0.3521957397,
-0.038532719,
0.101377055,
-0.0939429849,
0.2879144251,
-0.1168453544,
0.0656690747,
-0.0893287137,
-0.2068765759,
0.0448088609,
-0.0092049818,
0.3843485415,
-0.2553697526,
0.4414509833,
-0.1614168882,
-0.0581805594,
0.1734233499,
0.0283338428,
0.0432907641,
0.2223570794,
0.1087094694,
-0.1992356032,
-0.0968789011,
-0.2927432656,
-0.3652942479,
-0.3451600075,
-0.0720006451,
0.1937094629,
-0.0490679443,
0.089269489,
0.2577725351,
0.0275493637,
0.163706094,
0.0274681523,
-0.052425772,
-0.2859869599,
0.8228673935,
-0.0953495875,
-0.4027891159,
0.2715848088,
-0.030207634,
0.3105701804,
0.1123729646,
-0.5049177408,
0.2296978086,
-0.2130984664,
0.2032732964,
0.2825911045,
0.0550165325,
0.0714829415,
-0.3109722435,
0.0758316964,
-0.1627507359,
-0.0042991936,
-0.0300585926,
0.1257302612,
0.2862556577,
-0.0014705695,
0.2728949785,
0.0501534939,
0.843211174,
0.235838294,
-0.133376047,
0.4208788872,
0.0450752825,
0.0392547101,
0.0224319473,
-0.1539183259,
-0.1987058818,
-0.2561721504,
0.1470110714,
0.1491041183,
0.199015528,
-0.2637206614,
-0.053710144,
0.0177931562,
-0.4434633851,
-0.3303984404,
-0.169704929,
0.1518103182,
0.0003312249,
0.30406937,
0.3281061649,
0.0403616056,
-0.2667131424,
0.0343166143,
0.5420290232,
0.0001076646,
0.0878892243,
0.1220380589,
0.1206697971,
-0.5723162293,
0.0829723626,
-0.0859022886,
0.0734562725,
-0.0841361955,
0.0762098879,
0.141259253,
-0.1602215469,
0.1468757391,
-0.3039340377,
0.1390366256,
-0.1412774324,
-0.1038268805,
-0.2265354395,
-0.2475605011,
0.0366870388,
-0.0504817814,
0.5440037251,
-0.0132459179,
-0.3284938335,
-0.0015202574,
0.0642126948,
0.1817137599,
-0.1481832713,
-0.2562612891,
-0.2763038278,
-0.4239400029,
-0.3175900578,
-0.1952447742,
-0.1939307004,
0.3753401041,
-0.2319896519,
-0.2743618488,
-0.1211854294,
0.2704650164,
0.1200105995,
-0.0199689679,
0.3140406609,
0.096247822,
0.3911685944,
0.0729019791,
-0.1346761137,
-0.1737756431,
0.5136117339,
0.3388260603,
0.0105850957,
0.0428224467,
-0.3369645178,
-0.0059590414,
0.2091004848,
-0.2164409161,
-0.0649944171,
-0.0753390715,
0.1949352026,
-0.1541581899,
0.0030711293,
0.237936765,
-0.0963173732,
-0.1846461743,
-0.4083698094,
0.6840826869,
-0.2124337256,
-0.0203926712,
0.1748206913,
0.149486661,
0.1398355365,
0.2974999547,
-0.1081484854,
0.7885547876,
0.0302354638,
-0.0180234853,
0.0893874913,
0.0892990828,
0.3508445919,
-0.3062096536,
0.1340303421,
-0.3522851467,
0.1535356343,
-0.1315975189,
0.0213089436,
-0.128159225,
0.0869430527,
-0.0777016133,
0.1317056865,
-0.1633624732,
0.2356795073,
0.0297501162,
0.0323856026,
-0.3533714414,
-0.0888423622,
0.0573848486,
0.1310210377,
0.0415994376,
0.6429330707,
0.0167473108,
-0.2431710064,
-0.2635301054,
-0.0883842781,
-0.5674738288,
0.1350712478,
0.117155835,
-0.0663839653,
-0.2022007853,
-0.4554261863,
-0.0210018381,
0.4356856644,
-0.0421976596,
0.1682496667,
-0.3473183215,
0.2733461559,
-0.2823804915,
-0.0707647204,
0.1702467352,
-0.1023083255,
0.1010854915,
-0.1892506778,
-0.2828211188,
0.0159457307,
-0.0988525301,
0.2994483113,
-0.1585280448,
0.1114634573,
0.2126403153,
-0.0067991465,
-0.3708250225,
0.1454948187,
-0.0650002956,
-0.1168175936,
0.1353499889,
0.1049766392,
0.0566118993,
0.2303311229,
0.1094348058,
-0.2893568873,
-0.2170311213,
0.4203637242,
-0.1740409732,
0.1937127113,
0.3277286887,
-0.073487632,
-0.2277025431,
-0.1194427013,
-0.1066813916,
0.0100085735,
-0.667077601,
-0.22009781,
0.0030244701,
0.2900618315,
-0.1375808418,
-0.1370425522,
0.0780348033,
-0.402684629,
-0.3174933195,
-0.4946439862,
0.2114562094,
0.0681241006,
-0.0702673048,
0.0945592001,
-0.4956187904,
-0.4544705749,
0.3093897104,
0.1112436354,
-0.1906252205,
-0.0205595288,
-0.1461391896,
-0.1312693357,
0.1437645853,
0.304022938,
0.1504047066,
0.068382889,
0.0024419986,
0.0444079489,
-0.1790059209,
-0.1765285134,
-0.1509852856,
0.1962992549,
0.1860581338,
0.0224518329,
0.2005327046,
-0.1181416884,
-0.1993986815,
-0.0583080351,
0.1348384321,
-0.056372866,
-0.044220373,
0.0818947107,
0.0700667724,
0.4368834496,
-0.4313283861,
0.1096337885,
-0.1090183407,
0.8408147693,
0.0798130482,
0.0093666576,
0.5487741232,
0.111046195,
-0.2143990993,
-0.2023206353,
-0.1357684731,
-0.0793821514,
0.3421782255,
-0.3432498276,
0.5485956669,
0.1036880761,
0.0768448561,
0.3453037441,
-0.1219753101,
-0.0908228159,
0.1542131752,
0.2604791522,
-0.133632645,
-0.1416873634,
0.0448365621,
0.0819351226,
-0.0425653644,
-0.0972897857,
0.1431800425,
-0.2931312621,
-0.2391670346,
0.0609627105,
0.4813640714,
-0.1783903837,
-0.1318947971,
0.4905299246,
0.0112404004,
0.3369816542,
-0.0512917563,
-0.0872999951,
-0.1786282808,
0.4202339053,
-0.0920412913,
0.4068498909,
0.1251324713,
0.0825373158,
-0.4138421118,
-0.5052168965,
-0.0240688454,
0.0552172698,
-0.1465780884,
0.2593787909,
0.1092593074,
0.2299336642,
0.1215053648,
0.0414034463,
-0.4975202084,
-0.0321864039,
0.0245677121,
-0.0278498605,
0.0452263206,
-0.3645442128,
-0.142863214,
0.3663723469,
0.0384924933,
-0.1033887565,
0.3109819889,
0.1431134194,
-0.1473216712,
-0.6717370749,
0.0365055092,
-0.1164720356,
0.0497751534,
-0.3063771725,
0.0240193289,
0.2131404579,
-0.131363079,
-0.0178573728,
0.0248106625,
0.3455331028,
0.4297312796,
0.0166217051,
-0.0233592223,
0.0278542638,
-0.0651849955,
-0.2258089483,
0.3390025496,
0.2549940646,
-0.0104669556,
0.145803228,
0.1206901073,
-0.2616152167,
0.1722254753,
0.0933584422,
-0.0106579494,
-0.2104580849,
0.6825151443,
-0.2915145457,
0.1202341244,
-0.1351342946,
-0.3433481157,
-0.3390803337,
-0.0302412286,
0.3402217925,
0.1571633965,
0.0806097612,
-0.3118820786,
0.0384957939,
-0.2671255469,
0.2604097128,
0.0489833131,
0.1506987214,
-0.344317466,
0.1353344619,
-0.7035641074,
0.0071807466,
0.0843348503,
-0.0266271569,
-0.0294900034,
0.3258949518,
-0.270450294,
0.1794227809,
0.2376699746,
-0.0364995971,
0.2352363169,
0.4280110002,
-0.2742737234,
-0.0506848134,
-0.3023613393,
0.0068899747,
-0.1276033372,
-0.2826352715,
0.2721911669,
-0.5946936011,
-0.0279307216,
-0.0327478945,
-0.1132186949,
0.2861553133,
-0.2838960886,
0.7775370479,
0.0201639961,
0.3910856843,
-0.0544408336,
-0.0642618462,
-0.3234816492,
0.0563339815,
0.0065065175,
0.1816591024,
-0.1124405116,
0.2903113961,
0.1143256724,
0.1794828176,
-0.1371036321,
-0.1422664076,
0.0706009716,
0.2998569608,
-0.0024714172,
-0.3307426572,
-0.020697467,
0.0941232443,
0.234598279,
0.2664621174,
-0.119443059,
0.1812020838,
-0.1614152193,
-0.2635101676,
0.325068295,
-0.2873357236,
-0.2141286433,
-0.1121364832,
0.1395836771,
0.2979428768,
0.019323634,
-0.4697851837,
0.0013584942,
0.2750636339,
-0.1346326619,
-0.2287647873,
0.1092005968,
0.1285215914,
-0.1194907725,
-0.0283067487,
0.1960528195,
0.0042827595,
-0.2925714254,
0.2687161863,
-0.1410822272
] |
https://github.com/huggingface/datasets/issues/2116 | Creating custom dataset results in error while calling the map() function | Hi,
the `_data` attribute is missing due to `MyDataset.__init__` not calling the parent `__init__`. However, I don't think it's a good idea to subclass the `datasets.Dataset` class (e.g. it's kind of dangerous to override `datasets.Dataset.__getitem__`). Instead, it's better to follow the "association over inheritance" approach with a simple wrapper class that delegates calls to a wrapped `Dataset` (map, etc.). Btw, the library offers the `datasets.Dataset.from_pandas` class method to directly create a `datasets.Dataset` from the dataframe. | calling `map()` of `datasets` library results into an error while defining a Custom dataset.
Reproducible example:
```
import datasets
class MyDataset(datasets.Dataset):
def __init__(self, sentences):
"Initialization"
self.samples = sentences
def __len__(self):
"Denotes the total number of samples"
return len(self.samples)
def __getitem__(self, index):
"Generates one sample of data"
# Select sample
# Load data and get label
samples = self.samples[index]
return samples
def preprocess_function_train(examples):
inputs = examples
labels = [example+tokenizer.eos_token for example in examples ]
inputs = tokenizer(inputs, max_length=30, padding=True, truncation=True)
labels = tokenizer(labels, max_length=30, padding=True, truncation=True)
model_inputs = inputs
model_inputs["labels"] = labels["input_ids"]
print("about to return")
return model_inputs
##train["sentence"] is dataframe column
train_dataset = MyDataset(train['sentence'].values.tolist())
train_dataset = train_dataset.map(
preprocess_function,
batched = True,
batch_size=32
)
```
Stack trace of error:
```
Traceback (most recent call last):
File "dir/train_generate.py", line 362, in <module>
main()
File "dir/train_generate.py", line 245, in main
train_dataset = train_dataset.map(
File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1244, in map
return self._map_single(
File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 149, in wrapper
unformatted_columns = set(self.column_names) - set(self._format_columns or [])
File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 526, in column_names
return self._data.column_names
AttributeError: 'MyDataset' object has no attribute '_data'
``` | 75 | Creating custom dataset results in error while calling the map() function
calling `map()` of `datasets` library results into an error while defining a Custom dataset.
Reproducible example:
```
import datasets
class MyDataset(datasets.Dataset):
def __init__(self, sentences):
"Initialization"
self.samples = sentences
def __len__(self):
"Denotes the total number of samples"
return len(self.samples)
def __getitem__(self, index):
"Generates one sample of data"
# Select sample
# Load data and get label
samples = self.samples[index]
return samples
def preprocess_function_train(examples):
inputs = examples
labels = [example+tokenizer.eos_token for example in examples ]
inputs = tokenizer(inputs, max_length=30, padding=True, truncation=True)
labels = tokenizer(labels, max_length=30, padding=True, truncation=True)
model_inputs = inputs
model_inputs["labels"] = labels["input_ids"]
print("about to return")
return model_inputs
##train["sentence"] is dataframe column
train_dataset = MyDataset(train['sentence'].values.tolist())
train_dataset = train_dataset.map(
preprocess_function,
batched = True,
batch_size=32
)
```
Stack trace of error:
```
Traceback (most recent call last):
File "dir/train_generate.py", line 362, in <module>
main()
File "dir/train_generate.py", line 245, in main
train_dataset = train_dataset.map(
File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1244, in map
return self._map_single(
File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 149, in wrapper
unformatted_columns = set(self.column_names) - set(self._format_columns or [])
File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 526, in column_names
return self._data.column_names
AttributeError: 'MyDataset' object has no attribute '_data'
```
Hi,
the `_data` attribute is missing due to `MyDataset.__init__` not calling the parent `__init__`. However, I don't think it's a good idea to subclass the `datasets.Dataset` class (e.g. it's kind of dangerous to override `datasets.Dataset.__getitem__`). Instead, it's better to follow the "association over inheritance" approach with a simple wrapper class that delegates calls to a wrapped `Dataset` (map, etc.). Btw, the library offers the `datasets.Dataset.from_pandas` class method to directly create a `datasets.Dataset` from the dataframe. | [
-0.3095269203,
0.1919834167,
-0.028081432,
0.080918476,
0.2322636545,
0.0244530439,
0.4063162208,
0.373221159,
0.2232673317,
0.0579670146,
0.1070920452,
0.4760225415,
-0.3742122352,
-0.051105123,
0.078491807,
-0.0089360969,
0.0559963696,
0.1856335998,
-0.1835914701,
-0.0389981978,
-0.3738662004,
0.1936636418,
-0.1824550927,
0.2054495662,
-0.2108689696,
-0.2884714901,
0.1117461473,
-0.0803329498,
-0.2930240035,
-0.3859240115,
0.3439577818,
-0.0687110424,
0.0053723045,
0.7015199065,
-0.0001045329,
0.0541852415,
0.1606345475,
-0.0544360802,
-0.071464777,
-0.2946872711,
-0.130077213,
-0.0597290881,
0.065323025,
-0.3553411067,
-0.0708624721,
-0.2266569436,
-0.2204885334,
-0.5003938675,
0.2376441658,
0.5857282281,
0.3092917204,
0.0065493993,
0.0157835782,
-0.2425522208,
0.2406727225,
0.2789566219,
-0.1627863348,
0.1254618913,
0.1019267067,
-0.4344260991,
0.0211204626,
0.2214972377,
-0.0519024208,
0.0171142407,
0.2251113355,
-0.0729820132,
0.0247416105,
-0.3594277203,
0.0332759917,
0.1301146299,
0.4118055403,
-0.5375839472,
-0.3002356887,
0.0617004931,
0.0177131109,
-0.1704156697,
0.2560877502,
0.0747599006,
-0.1573251188,
0.0529478155,
-0.077514261,
0.1310317218,
-0.0968101248,
0.3694396615,
0.1306230724,
0.1370374113,
-0.1636957377,
0.2666482031,
0.1102195233,
-0.4297787547,
0.0232801288,
-0.1080652177,
0.0795266628,
0.4080005288,
-0.3664743304,
-0.1668649912,
0.0558806546,
-0.44671911,
0.1431357116,
-0.1520474851,
0.0226494819,
-0.1222048476,
0.1436313391,
0.1354878843,
0.2312285453,
0.1579553783,
-0.0201086327,
0.4038403928,
-0.0876076967,
-0.0010179654,
-0.2695801258,
-0.0837878287,
0.0295203887,
-0.2260691375,
0.0857029259,
0.062149629,
0.1651795208,
0.0209618211,
0.0974715948,
0.0965920091,
-0.3174830377,
0.1343474686,
0.1440457702,
0.2185223848,
0.1541199535,
-0.1662800908,
-0.0625315011,
0.1299290955,
-0.1169800013,
0.2039194405,
-0.2468063384,
0.1485857815,
-0.3834024072,
0.0072865207,
0.1762003601,
0.1544376016,
0.2860069871,
-0.000273101,
0.0227018949,
-0.1487194896,
0.1852498651,
-0.3488213718,
0.1049800813,
0.1605469733,
-0.0992629975,
0.2123647928,
0.2893148363,
-0.0225480497,
-0.1482504308,
0.0764972344,
-0.1301557273,
-0.3638649583,
-0.191585809,
0.2496525794,
0.0830784589,
0.2395717204,
-0.1176465675,
0.22862266,
0.4339630604,
-0.1881226599,
0.0269858651,
-0.1968439817,
-0.2700249553,
-0.3524686098,
-0.084634088,
0.1618772894,
-0.3914589286,
0.1544373333,
-0.119916223,
-0.0528846309,
-0.021493312,
0.1791033745,
-0.3845656514,
0.5214542747,
-0.1856967211,
0.3085439205,
0.475151211,
-0.1975561082,
-0.4616966248,
0.1067753583,
-0.0429601893,
-0.0831896216,
-0.3642077446,
0.0197024867,
0.3551738262,
-0.0662748516,
0.1959032714,
0.0162360594,
-0.0600997433,
0.1576968133,
0.0483648032,
-0.0516049191,
0.1196901277,
0.0165812895,
-0.0130937491,
0.128743276,
0.224581629,
-0.1051996797,
-0.0357205309,
-0.2099779397,
0.0927982405,
0.301017195,
0.3053907156,
0.1411411315,
-0.10294649,
-0.151080966,
-0.2661796212,
0.1586990356,
0.162649706,
0.1728423089,
-0.2033346295,
-0.1110058278,
-0.2070168704,
0.0860204622,
-0.1815242618,
-0.0441403501,
0.2680633068,
-0.0587690584,
0.104820475,
0.006180346,
-0.0609133951,
0.0378703326,
-0.3639876842,
0.1085460335,
-0.1308039576,
-0.0567319095,
0.0285437647,
-0.2034261078,
0.0002926737,
0.1345687658,
0.1134951711,
0.0211042836,
-0.2943387628,
0.3483094573,
0.2806223631,
-0.1980164647,
-0.0684035271,
0.0162231103,
-0.1527743191,
-0.2838913798,
0.048885107,
0.1119781956,
0.1651587188,
-0.1241089925,
0.0026935395,
0.1598966718,
0.085255459,
0.048639372,
-0.0865832418,
0.1837626398,
0.2777931094,
0.1556938887,
-0.1324808598,
-0.2694280446,
-0.1678480208,
0.0698686019,
0.3245130181,
0.0164355319,
0.0377558768,
-0.2219959348,
0.4383489192,
0.1324272454,
0.174240768,
0.1287519932,
-0.0500494465,
-0.0606959201,
0.0421922579,
0.3934547603,
0.5440598726,
0.0357973576,
-0.1568251848,
0.0857429877,
-0.156833306,
0.0600522198,
0.0551592186,
0.0921579152,
0.3318346143,
-0.0541455038,
0.0416546091,
0.0244364887,
-0.134643048,
-0.3162122667,
0.0016259067,
0.2799020708,
-0.1794580817,
-0.0567138568,
-0.0656724498,
-0.0579744205,
-0.0733898878,
-0.2275722474,
-0.0409515202,
-0.1828246713,
-0.241183117,
-0.0484186485,
-0.0376834571,
0.2662058473,
0.0047599599,
-0.034858346,
0.1677858233,
-0.3207721114,
0.3212358952,
-0.3943756521,
-0.1202825308,
0.1123845801,
0.0908774287,
-0.0423453972,
0.3318918645,
0.1308335811,
0.0404123962,
-0.2614424229,
-0.1993706822,
0.0841475949,
-0.0970379859,
0.1033655852,
0.3699522913,
0.014336206,
-0.2100000381,
-0.1809210181,
0.3269988298,
-0.1559433937,
-0.05989388,
0.0247112438,
-0.1132063866,
-0.1555876583,
-0.1792835444,
-0.3093286157,
-0.2378807217,
-0.2599628568,
0.0836841837,
-0.0193544701,
0.181455642,
0.1999304295,
0.279760778,
0.3256440461,
-0.0174703859,
-0.1835035384,
-0.2639645636,
-0.2820210457,
0.1595142484,
-0.5192968249,
-0.1890832484,
0.159888804,
-0.119686529,
0.4478089213,
0.3123952746,
-0.3665909171,
-0.0338876173,
-0.0988793001,
0.1386394054,
-0.098039031,
-0.1112379059,
0.4257833064,
0.1343906224,
-0.0249692388,
-0.2975027263,
-0.4357233047,
0.2185884714,
-0.0120278029,
0.1079030707,
0.1871142387,
0.623660028,
-0.0216527916,
0.7203984857,
0.3328920603,
-0.3126324713,
0.2853401303,
-0.1934001893,
0.2419657707,
-0.2737652361,
-0.3682574928,
-0.0074808076,
0.0095233396,
-0.0864241347,
0.0665628389,
-0.1792473048,
-0.3093305826,
0.0403920859,
0.2701494098,
-0.3075175881,
-0.2517106831,
0.1083585098,
-0.1975454986,
0.3764651418,
0.0067419335,
0.1433416903,
-0.4830637872,
0.074065432,
-0.0361067206,
-0.0577553771,
-0.0475462265,
0.0341842696,
-0.5273026228,
0.0996714532,
-0.385676235,
0.192150116,
0.1639493853,
0.4370242655,
-0.1329728216,
0.1676361859,
-0.1669908911,
0.2914552093,
0.3413000405,
-0.5667747259,
-0.3351868391,
0.2215779275,
0.0317934304,
-0.5315791965,
0.0515854061,
0.0581915528,
0.4367114902,
0.0312544219,
0.4528926313,
-0.1641840339,
-0.0960783958,
0.1280760318,
-0.0742536038,
0.0372080058,
-0.1391505897,
0.0831229985,
-0.3158683479,
-0.2392448187,
-0.0701328963,
0.1149532869,
0.152810812,
0.2315305322,
-0.1824421883,
-0.0474486127,
0.0338761359,
0.0382727869,
0.1303161532,
0.2764235139,
0.0445923246,
0.1654513329,
0.0012379508,
-0.1220257357,
0.2366403788,
0.3606577516,
-0.2667715549,
-0.4080091417,
-0.0055065099,
-0.0355091915,
0.2581010163,
0.0740605518,
-0.1869595349,
-0.0564567111,
-0.296377033,
0.0111721475,
-0.0714507848,
0.1902810335,
0.4804244637,
-0.0778860301,
-0.3768900633,
-0.6103819013,
0.1613930613,
0.1002551019,
0.0144901276,
0.509095788,
-0.1684102118,
-0.2636224627,
0.4866534173,
0.09405756,
0.6123238802,
-0.1272227764,
-0.0878091678,
0.1426447928,
0.1132469028,
0.3553877473,
-0.0312675759,
0.0167544112,
-0.4292015433,
-0.0213389434,
-0.0667038411,
-0.2331680954,
0.2304182947,
0.3485708833,
-0.1894578338,
0.1164671034,
0.0065892339,
0.4110319912,
-0.0401143581,
0.1207790971,
0.2615000904,
-0.4369440079,
-0.2126342356,
0.3301956654,
-0.1307959259,
0.0271133222,
-0.1017588973,
-0.0546171591,
-0.2210536599,
-0.2838739753,
-0.2676753402,
-0.0428070202,
-0.568108201,
0.3580832481,
-0.0289710537,
0.0284080654,
0.2831265926,
0.3539124131,
0.1921070516,
0.2902729511,
-0.0644247532,
-0.0287651289,
0.1674305499,
0.1439158916,
-0.0080145635,
-0.0916819423,
0.1253130585,
0.0417789295,
-0.1290610135,
0.0896147192,
-0.0845727175,
-0.14933002,
-0.1274363399,
-0.0991618335,
0.239520669,
-0.5454427004,
-0.2835673988,
-0.2808872461,
-0.0922458172,
-0.1747672409,
0.1964514405,
0.0148832491,
0.0139840208,
0.312381804,
-0.206594184,
-0.2695236504,
0.0617656484,
0.1066491604,
-0.0698233396,
0.1705079675,
0.4268484116,
0.0121018514,
-0.0465338118,
-0.3360989392,
0.1795166284,
0.1191814765,
-0.3774203062,
0.173829481,
-0.1010744572,
-0.0152181089,
0.0607925132,
0.2285788357,
0.1035487205,
0.1169957817,
0.2195222378,
-0.218168512,
-0.3500107229,
-0.0041085407,
-0.2088997811,
0.360858202,
0.1046216786,
0.2733374238,
-0.0505609997,
-0.0350843668,
-0.3905482888,
0.1263687313,
-0.1349455565,
0.1696079969,
0.2214265764,
0.1292123199,
0.1033269316,
0.0384699926,
0.1562618017,
0.3508363664,
-0.2635572851,
-0.2734264731,
-0.1393739283,
0.048941724,
0.2369985282,
-0.1848825663,
0.1032617167,
-0.1323673427,
-0.3075630367,
-0.2586577833,
-0.0560386255,
0.2463860214,
-0.172658056,
0.2121624202,
0.0882709101,
0.0533436202,
0.093189694,
0.0673697293,
-0.0631220639,
0.0118183754,
0.003136836,
0.1528910547,
0.1373863816,
-0.1222599149,
-0.1124788821,
0.1023782641,
0.0119095594,
0.0824262053,
0.1578245461,
-0.2328995168,
0.0744624883,
0.2115171254,
0.2725219727,
0.1073636711,
-0.4062050283,
-0.0651642308,
0.3674582243,
0.3092107773,
-0.1567984223,
-0.0773331225,
0.4437191486,
0.0717484802,
0.1419774294,
0.2614400089,
0.1125763133,
0.1157528013,
-0.2528058589,
-0.144479841,
0.1303104907,
-0.1338517368,
0.3573176861,
0.4807223678,
-0.1113094538,
0.0738124698,
0.2318691611,
0.2145038843,
0.1798754483,
0.6407541633,
-0.1027313769,
0.4042498469,
0.1537202448,
-0.0888839066,
0.2393782139,
-0.4293385744,
0.3233010769,
0.0996999666,
-0.1209914461,
0.1440594643,
-0.1215433329,
0.2268355638,
-0.259547621,
0.006333489,
-0.1651712805,
0.0348436721,
-0.2834734321,
-0.0003533363,
-0.0922810584,
-0.0460076481,
0.1485700309,
-0.2673060298,
-0.1060802788,
-0.1838215142,
0.2417485714,
-0.1152062863,
-0.0084534585,
-0.2145258784,
-0.1257292181,
0.1178745031,
-0.0035542846,
-0.2124054134,
0.0751086771,
-0.151632756,
0.0578425229,
-0.1489550471,
0.352796942,
0.3654499948,
0.5458375216,
-0.1088030785,
0.0583246984,
0.1497379094,
-0.0526244529,
0.1373091638,
0.0994914025,
0.1339304447,
0.0324916244,
0.4296288192,
0.1708757877,
-0.1730730385,
-0.1064108163,
0.1563861221,
0.3600679934,
-0.0998783484,
0.0602865592,
-0.1364116073,
-0.0625127703,
-0.1864773929,
0.2816997766,
-0.2134114206,
-0.1622441113,
0.6050933003,
0.0269615725,
0.3453223109,
-0.2474825978,
0.1459154189,
-0.113281101,
0.4964220524,
0.1137202084,
-0.0273950845,
-0.3946325779,
-0.3023865521,
-0.4063787758,
0.1022876203,
-0.3766296804,
0.0784686208,
-0.0880749524,
0.0301016495,
-0.037029542,
0.0664105266,
0.1208000407,
-0.2222494334,
-0.146513015,
0.2760500312,
-0.225347504,
-0.2499595881,
-0.3256140947,
-0.0829015896,
0.3331921399,
-0.3161219358,
-0.0858485997,
0.0034055412,
0.1438675821,
-0.2619489431,
0.0299762189,
0.0829841048,
-0.088464573,
0.5856484175,
0.163041085,
0.3099348545,
0.0192624703,
-0.0643445179,
-0.1792134494,
-0.1715916097,
-0.0905715451,
0.2927239835,
0.0616841577,
0.6076015234,
-0.1491549015,
-0.0012976683,
-0.3115739226,
-0.1097502857,
0.1641420424,
-0.0857377499,
-0.2654817402,
0.2444041222,
-0.0181360245,
-0.0440480523,
0.1009718701,
0.2455943972,
-0.0819721073,
0.515086174,
-0.0081003457,
-0.291410476,
0.5103012323,
-0.5262168646,
-0.3504877388,
0.179209888,
0.0024519116,
-0.0736710727,
-0.2278247178,
-0.5044870377,
0.0955138206,
0.3978458643,
-0.0757089928,
-0.0964354351,
0.0544617847,
-0.2428400218,
0.1626868248,
-0.0276850611,
0.2933386564,
-0.2039104402,
-0.1067739576,
0.2142429352,
-0.2125305384
] |
https://github.com/huggingface/datasets/issues/2106 | WMT19 Dataset for Kazakh-English is not formatted correctly | Hi ! Thanks for reporting
By looking at the raw `news-commentary-v14.en-kk.tsv` file, it looks like there are at least 17 lines with this issue.
Moreover these issues are not always the same:
- L97 is only `kk` text and must be appended at the end of the `kk` text of the **next** line
- L2897 is only `kk` text and must be appended at the end of the `kk` text of the **previous** line
- L1247 and L1248 are only `kk` texts and must be inserted at the **beginning** of the `kk` text of the next line
- (and there are many others)
It would be nice to have a corrected version of this file ! The file is available in the `wmt/news-commentary` repository on the Datasets Hub here:
https://huggingface.co/datasets/wmt/news-commentary/tree/main/v14/training
Then maybe we can notify the WMT authors and host the corrected version somewhere | In addition to the bug of languages being switched from Issue @415, there are incorrect translations in the dataset because the English-Kazakh translations have a one off formatting error.
The News Commentary v14 parallel data set for kk-en from http://www.statmt.org/wmt19/translation-task.html has a bug here:
> Line 94. The Swiss National Bank, for its part, has been battling with the deflationary effects of the franc’s dramatic appreciation over the past few years. Швейцарияның Ұлттық банкі өз тарапынан, соңғы бірнеше жыл ішінде франк құнының қатты өсуінің дефляциялық әсерімен күресіп келеді.
>
> Line 95. Дефляциялық күштер 2008 жылы терең және ұзаққа созылған жаһандық дағдарысқа байланысты орын алған ірі экономикалық және қаржылық орын алмасулардың арқасында босатылды. Жеке қарыз қаражаты үлесінің қысқаруы орталық банктің рефляцияға жұмсалған күш-жігеріне тұрақты соққан қарсы желдей болды.
>
> Line 96. The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008. Private deleveraging became a steady headwind to central bank efforts to reflate. 2009 жылы, алдыңғы қатарлы экономикалардың шамамен үштен бірі бағаның төмендеуін көрсетті, бұл соғыстан кейінгі жоғары деңгей болды.
As you can see, line 95 has only the Kazakh translation which should be part of line 96. This causes all of the following English-Kazakh translation pairs to be one off rendering ALL of those translations incorrect. This issue was not fixed when the dataset was imported to Huggingface. By running this code
```
import datasets
from datasets import load_dataset
dataset = load_dataset('wmt19', 'kk-en')
for key in dataset['train']['translation']:
if 'The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008.' in key['kk']:
print(key['en'])
print(key['kk'])
break
```
we get:
> 2009 жылы, алдыңғы қатарлы экономикалардың шамамен үштен бірі бағаның төмендеуін көрсетті, бұл соғыстан кейінгі жоғары деңгей болды.
> The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008. Private deleveraging became a steady headwind to central bank efforts to reflate.
which shows that the issue still persists in the Huggingface dataset. The Kazakh sentence matches up to the next English sentence in the dataset instead of the current one.
Please let me know if there's you have any ideas to fix this one-off error from the dataset or if this can be fixed by Huggingface. | 144 | WMT19 Dataset for Kazakh-English is not formatted correctly
In addition to the bug of languages being switched from Issue @415, there are incorrect translations in the dataset because the English-Kazakh translations have a one off formatting error.
The News Commentary v14 parallel data set for kk-en from http://www.statmt.org/wmt19/translation-task.html has a bug here:
> Line 94. The Swiss National Bank, for its part, has been battling with the deflationary effects of the franc’s dramatic appreciation over the past few years. Швейцарияның Ұлттық банкі өз тарапынан, соңғы бірнеше жыл ішінде франк құнының қатты өсуінің дефляциялық әсерімен күресіп келеді.
>
> Line 95. Дефляциялық күштер 2008 жылы терең және ұзаққа созылған жаһандық дағдарысқа байланысты орын алған ірі экономикалық және қаржылық орын алмасулардың арқасында босатылды. Жеке қарыз қаражаты үлесінің қысқаруы орталық банктің рефляцияға жұмсалған күш-жігеріне тұрақты соққан қарсы желдей болды.
>
> Line 96. The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008. Private deleveraging became a steady headwind to central bank efforts to reflate. 2009 жылы, алдыңғы қатарлы экономикалардың шамамен үштен бірі бағаның төмендеуін көрсетті, бұл соғыстан кейінгі жоғары деңгей болды.
As you can see, line 95 has only the Kazakh translation which should be part of line 96. This causes all of the following English-Kazakh translation pairs to be one off rendering ALL of those translations incorrect. This issue was not fixed when the dataset was imported to Huggingface. By running this code
```
import datasets
from datasets import load_dataset
dataset = load_dataset('wmt19', 'kk-en')
for key in dataset['train']['translation']:
if 'The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008.' in key['kk']:
print(key['en'])
print(key['kk'])
break
```
we get:
> 2009 жылы, алдыңғы қатарлы экономикалардың шамамен үштен бірі бағаның төмендеуін көрсетті, бұл соғыстан кейінгі жоғары деңгей болды.
> The deflationary forces were unleashed by the major economic and financial dislocations associated with the deep and protracted global crisis that erupted in 2008. Private deleveraging became a steady headwind to central bank efforts to reflate.
which shows that the issue still persists in the Huggingface dataset. The Kazakh sentence matches up to the next English sentence in the dataset instead of the current one.
Please let me know if there's you have any ideas to fix this one-off error from the dataset or if this can be fixed by Huggingface.
Hi ! Thanks for reporting
By looking at the raw `news-commentary-v14.en-kk.tsv` file, it looks like there are at least 17 lines with this issue.
Moreover these issues are not always the same:
- L97 is only `kk` text and must be appended at the end of the `kk` text of the **next** line
- L2897 is only `kk` text and must be appended at the end of the `kk` text of the **previous** line
- L1247 and L1248 are only `kk` texts and must be inserted at the **beginning** of the `kk` text of the next line
- (and there are many others)
It would be nice to have a corrected version of this file ! The file is available in the `wmt/news-commentary` repository on the Datasets Hub here:
https://huggingface.co/datasets/wmt/news-commentary/tree/main/v14/training
Then maybe we can notify the WMT authors and host the corrected version somewhere | [
-0.095330283,
-0.5491965413,
-0.0432182029,
0.316206038,
-0.0860270411,
0.0107724741,
0.183791548,
0.1722091138,
-0.11406634,
0.2022087723,
0.128950879,
0.0987928063,
0.1117265746,
0.5228418112,
0.0502477065,
-0.2106282264,
0.1143200547,
-0.1941500008,
-0.2592691183,
-0.1341283172,
-0.0660604164,
0.1056313217,
-0.4930419326,
-0.0548009798,
-0.4117453098,
-0.1151648089,
-0.1502329111,
-0.0785621852,
-0.0658807755,
-0.1956118047,
0.0703045279,
0.1335619837,
-0.1053125709,
0.3510214686,
-0.0001112676,
-0.2417627275,
0.0215639677,
-0.0297250301,
-0.1629365534,
0.076289691,
-0.1257776022,
-0.8057075739,
-0.2112894505,
-0.1204431728,
-0.1037974358,
-0.4211289585,
-0.1573448926,
0.0498363674,
0.3065550923,
0.1048354805,
0.1853927672,
0.2881680429,
-0.0026118755,
-0.1187296733,
-0.1859128922,
-0.0203669518,
-0.1585623324,
0.0198853537,
0.1100706905,
0.1526906788,
-0.1194505021,
0.6587665081,
0.0118425563,
-0.1108200252,
-0.0299413875,
-0.115502663,
-0.1476059109,
0.0271582976,
0.0776110366,
0.4503269196,
0.4413158298,
0.0170425382,
-0.0518959127,
-0.1849429309,
0.0404481068,
-0.324375242,
0.0702294558,
0.150952816,
-0.2087910622,
0.1687711179,
0.0222086534,
0.310007304,
0.0986341089,
0.054010503,
-0.2007596195,
0.4679334164,
-0.1476941705,
0.0270626787,
0.0542255118,
-0.0414866135,
-0.111821726,
-0.0609524846,
-0.013524469,
-0.1418365091,
-0.1481647789,
-0.0013134107,
-0.0952412039,
-0.219838351,
0.1539943069,
-0.5207999349,
-0.1159043238,
0.3559967875,
-0.2307448983,
-0.1777941585,
0.1927596629,
0.5753377676,
0.0576579385,
-0.3404283226,
0.1400429606,
0.1638714075,
0.0051138625,
-0.0042760908,
0.0858224556,
-0.4291136563,
-0.285194546,
0.1375284642,
-0.0554425754,
-0.0388976708,
-0.0930311307,
0.1223473027,
0.1957937032,
-0.1440604627,
-0.231092006,
0.0197816063,
-0.1138919145,
0.4291628897,
-0.1612131,
0.0644564182,
-0.1776590049,
-0.1697159708,
-0.1797193587,
-0.1399147063,
-0.3185176253,
-0.0326878987,
-0.1918260455,
0.1269254684,
0.2599647045,
0.23285833,
0.0105889132,
-0.0816574767,
-0.3358831704,
-0.0744912624,
0.4750353396,
0.2353508472,
-0.1094063222,
0.1894775182,
-0.0672539622,
0.0855240673,
0.0013107061,
0.0184607487,
-0.3052257597,
0.2370886505,
-0.0127145294,
0.1222736984,
-0.1284806281,
-0.095890902,
-0.2741921544,
0.5493568778,
0.023612855,
-0.0164982006,
0.1953630447,
-0.107293129,
-0.39070943,
-0.1250795722,
0.2603442073,
0.1920647174,
-0.355953455,
-0.0284672529,
0.1010948122,
-0.0517998524,
0.4939494133,
0.4126816094,
0.1056018323,
0.1440580636,
-0.020315364,
0.1787225157,
-0.0787370577,
0.0409196466,
-0.3128330112,
0.0134839788,
-0.2729093432,
0.4639535546,
-0.0156173818,
0.0288682543,
0.06042796,
0.291511178,
0.1621891856,
0.0457520001,
0.0671484843,
0.2363938242,
-0.2866168916,
-0.3670727611,
0.6842612624,
-0.192040354,
0.1620815992,
-0.3465855122,
0.0237743668,
-0.1346560419,
0.5904840231,
0.2387701422,
0.1202826649,
-0.1334968507,
-0.0776725709,
0.0483450554,
0.2563454211,
0.1525763273,
-0.2615079582,
0.2069062293,
0.1994215846,
0.4913660884,
0.2391411364,
0.1307503879,
-0.1787827611,
-0.184056893,
-0.2560293972,
-0.3216754496,
0.2132313848,
0.086789228,
-0.4696199596,
0.3506500125,
-0.0635574609,
-0.0447058864,
-0.0672239885,
-0.0260020792,
-0.2125888765,
-0.0297510922,
-0.0089497175,
-0.0285488702,
-0.1508797556,
0.296728462,
0.2445805818,
0.1812204421,
-0.2409956306,
0.0913003683,
0.0638270527,
0.6336418986,
-0.1121877134,
-0.2415221632,
0.2419115454,
-0.7164648175,
0.0352527872,
0.1181264818,
-0.0593289211,
-0.0951410905,
0.1239965037,
0.4310067892,
-0.0151630519,
0.0634545013,
-0.1755184084,
0.089491725,
0.2513158619,
-0.0591867715,
-0.0728716031,
-0.2587556243,
0.1687144637,
-0.2381839156,
-0.2176358253,
-0.0330535173,
-0.1434034407,
0.3936030269,
0.5164346099,
0.251727283,
0.2264314145,
-0.1031329036,
-0.410716325,
-0.1604105532,
0.379512161,
0.2175556123,
-0.0869413093,
0.0945360512,
0.1723042727,
0.2995280027,
0.1139068455,
-0.1324411035,
0.1295512617,
0.0206174403,
0.0954601169,
0.280534178,
-0.1022091731,
0.0206558034,
-0.2630800009,
0.5188572407,
-0.1302155554,
0.0445321277,
-0.1824713647,
-0.1719664931,
-0.435248971,
-0.0866045505,
-0.5954188704,
-0.3802383542,
-0.1560971737,
-0.4191434979,
0.0219246782,
-0.2171102613,
-0.2821986377,
0.2730415165,
0.5708175302,
0.1382266581,
-0.3288731277,
0.6834561229,
-0.3291597962,
-0.531124711,
-0.1904892325,
0.0764605552,
0.2330763638,
0.5193150043,
0.1068046466,
-0.4199672937,
-0.140158385,
-0.057606183,
-0.6339113712,
0.1419068724,
-0.3691796362,
-0.0652039275,
-0.0582940206,
0.3191205561,
-0.2513318062,
-0.1517110616,
0.2821587026,
-0.1380906105,
-0.0785944089,
0.3749209046,
-0.2043963969,
-0.1959827989,
-0.1805736125,
-0.4409828782,
-0.3408246338,
-0.1562551856,
0.2199538052,
-0.3337596357,
-0.2653496265,
0.4110274017,
0.2355194092,
0.0143293142,
-0.3028128445,
0.1374220252,
-0.2295392454,
-0.1251819581,
0.0368716829,
-0.079138957,
-0.4876853526,
0.1958708763,
0.1955718398,
-0.1193502694,
-0.0972846672,
-0.1942091882,
0.4939133823,
-0.0067947246,
-0.1669486463,
0.1840146929,
0.1353169829,
0.011821229,
-0.0623590052,
-0.0028103888,
-0.1753417253,
-0.2368919998,
-0.0616774596,
-0.0132813016,
0.1650731862,
-0.2205604613,
0.2217831612,
0.3598542809,
0.276802361,
0.1467601061,
0.2321698964,
-0.0783484802,
-0.0849826559,
0.3804534376,
-0.0070253871,
-0.1966290921,
-0.0072077885,
-0.246437937,
0.0987630188,
0.534260273,
-0.0362025499,
0.3417961001,
-0.0959867015,
-0.4318203628,
-0.3260054588,
-0.3005723357,
0.1634153277,
0.1365794092,
0.2203223407,
0.1938869953,
0.0029766336,
-0.0121425539,
-0.2541390657,
0.0119447596,
0.1817478985,
-0.3233279586,
0.1496137977,
-0.6493247747,
-0.3908014894,
-0.2101158798,
0.1783203781,
0.1908469945,
0.526602149,
0.0216931328,
-0.0867907181,
0.0147219039,
0.0041494705,
0.122530058,
0.1175094992,
-0.0526791401,
0.0036351755,
-0.1044454277,
-0.2852306068,
-0.1901822388,
-0.1888110638,
-0.2742129862,
-0.1602450907,
0.3807336986,
-0.0178261623,
-0.0537962951,
-0.0340606049,
0.5762075186,
-0.4829657972,
0.0547400415,
-0.3097644448,
-0.2468165606,
-0.0778805539,
0.1056273282,
-0.0828283802,
-0.2035563439,
-0.2467962205,
0.1738993227,
0.3307299912,
0.2122386396,
-0.0511812717,
0.2393713444,
0.427906096,
0.1697329432,
-0.0459733456,
0.3436515629,
-0.1851815134,
0.5676723123,
0.3259207904,
-0.1027511656,
-0.0168614499,
-0.4144355655,
-0.4195946753,
0.4677900672,
0.4874896109,
-0.1403455585,
0.2592275441,
0.5915628076,
-0.0070070289,
-0.2882350385,
-0.0628016144,
0.3577049673,
0.4028767049,
-0.236012876,
-0.0368833877,
0.1228772998,
-0.1377455294,
0.1044121534,
0.0924253315,
0.1091305763,
-0.1621647179,
0.1848954856,
-0.043354217,
0.8865989447,
0.2256829292,
0.2615555525,
0.3602921665,
0.0330765843,
0.073906593,
0.1385931969,
-0.1617925465,
-0.0941575989,
0.0045836121,
-0.0466915295,
0.2219844162,
0.1527676731,
-0.0732109547,
-0.3241306543,
0.2243203819,
0.1023738086,
0.5825096369,
-0.1413495839,
-0.1016586497,
0.2941732705,
-0.0617822222,
-0.2273463011,
0.0887746811,
-0.1416040659,
0.0437642932,
-0.1233866066,
-0.1849101484,
-0.101407364,
-0.1501167119,
-0.3251179159,
-0.0241001248,
-0.2945801616,
-0.1034507751,
-0.2135142684,
0.0179535449,
-0.0029562563,
0.0186117068,
0.4101047218,
0.2033897191,
-0.0546247363,
-0.0376559123,
0.2404324561,
0.2063180059,
0.0148549005,
-0.0065985732,
0.2028627992,
-0.2263789922,
-0.253356427,
0.0646376312,
-0.1127077565,
0.236069873,
-0.0339528024,
-0.053327322,
-0.0063046822,
0.2633963823,
0.0496419668,
0.352827251,
0.1620622575,
-0.4291362166,
0.1087316349,
-0.0865188688,
-0.1663242579,
0.3700787425,
0.2234921455,
-0.2619773149,
-0.1754826009,
0.0672556311,
0.2198857367,
0.1549964547,
0.3292729259,
0.3228928745,
-0.1589481235,
-0.2308558971,
0.1641914845,
0.1783347726,
-0.3057086468,
0.0498167127,
-0.1226801574,
0.014501676,
-0.2461699247,
0.735624969,
0.243876636,
-0.3041033149,
-0.100889504,
-0.2222034931,
-0.2246764004,
0.4648391008,
0.2148208171,
0.0223171059,
0.2717097402,
0.3222668469,
0.0277982354,
0.1568288952,
-0.361848861,
0.0553005934,
0.1475102901,
0.0892980844,
-0.2331241518,
0.1235951111,
0.07840918,
-0.0459870361,
-0.0491054058,
0.0490226857,
-0.1368981898,
-0.1757012904,
-0.2522902787,
0.0703395903,
0.1060350239,
-0.2024829686,
0.1298443973,
-0.1209265292,
-0.0102066528,
-0.260637641,
-0.0391155444,
0.3032338619,
0.0214054622,
0.6562045217,
0.5113465786,
0.3748398721,
-0.1676585227,
0.0306380093,
0.1414143592,
0.0408297144,
-0.0215174817,
-0.0742201209,
0.0576403178,
-0.0140355006,
0.0181799643,
0.0019830316,
-0.0701418146,
0.3109594584,
0.0314572789,
-0.0569071025,
0.1499098241,
-0.075630717,
0.2567428946,
0.2328178287,
-0.0061735809,
-0.1368314177,
0.1334674954,
0.1260899007,
-0.3553324342,
0.0695875883,
0.231545791,
-0.2497904003,
0.2247122526,
-0.0547078028,
0.6976215243,
-0.1712839603,
0.1296429187,
-0.0597573742,
-0.1611148566,
-0.2872352004,
0.2644667327,
0.1709639132,
-0.0930198506,
0.2680011392,
-0.0916334316,
-0.0525607131,
-0.1002385467,
0.0008197073,
0.1894941777,
0.361440599,
0.325083226,
-0.0061288653,
-0.0762204081,
-0.1764836311,
0.3923094869,
0.2627926469,
-0.5786651969,
-0.0118805971,
0.3152036071,
0.4003913105,
0.0261822119,
-0.2331160009,
-0.1960290372,
0.145422399,
-0.4816759527,
0.097168766,
-0.098811239,
-0.1527321935,
-0.1637050658,
-0.1387459934,
-0.169141233,
0.1189201549,
0.2113561332,
-0.0596021339,
-0.2362721264,
0.06460388,
-0.3638755679,
-0.0041967733,
0.1547766179,
-0.2315100431,
0.1744867712,
0.2585041225,
-0.0560654886,
-0.0216648746,
0.4135409296,
0.1456399858,
0.2127304077,
0.0205735303,
-0.1573346555,
0.2102939039,
0.0312327892,
0.0450179726,
0.2843781114,
0.2946204543,
-0.0731140822,
0.162848413,
0.1427554935,
-0.245121792,
-0.1093586609,
0.4080252349,
-0.0703594834,
-0.1483274549,
-0.3365425169,
-0.2267839015,
0.0103145689,
-0.1661457866,
0.0106602758,
-0.0623477139,
0.0447605215,
0.4490063787,
-0.0746462047,
0.0888531059,
-0.1517068595,
0.1223293766,
0.2219155133,
0.6906307936,
0.2963454723,
-0.1648269594,
-0.0089992601,
-0.3020529151,
-0.7928388119,
0.2897745669,
-0.0851191282,
0.4469283819,
-0.0866168439,
-0.1200457662,
0.3575145304,
0.26405406,
0.2136467248,
0.2724086344,
-0.184510082,
-0.1393787414,
-0.4809318185,
0.0902022719,
0.3914111257,
-0.0330013148,
-0.083168067,
-0.1077032983,
0.3051949739,
-0.1150869131,
0.0880978256,
-0.0039883275,
0.045183152,
-0.3098978996,
0.2056400478,
0.223847568,
0.0749139413,
0.3904037178,
-0.0748722255,
-0.1520856768,
-0.1948976815,
-0.1183005869,
-0.0138152689,
0.3537480831,
0.0109865628,
0.2306623161,
0.1819503009,
-0.0099180732,
0.0150745735,
-0.0097373687,
0.197198227,
-0.0832660496,
-0.3364749253,
0.271009177,
0.1983928233,
-0.2360702753,
0.195392713,
0.5181951523,
0.136991635,
-0.0891264677,
-0.2669430673,
-0.2945527434,
0.1005224884,
-0.1692588925,
-0.2758886814,
-0.2625381052,
-0.1398342699,
0.3332194984,
0.0444498733,
-0.1931958348,
0.0043043196,
0.0915738642,
0.3010488153,
0.0251116306,
0.106568262,
-0.2855907381,
-0.1350483447,
0.0577143952,
0.2076468468,
0.3584672809,
-0.283290565,
-0.1735756695,
-0.0966014639
] |
https://github.com/huggingface/datasets/issues/2105 | Request to remove S2ORC dataset | Hello @kyleclo! Currently, we are getting the data from your bucket, so if you remove it the HF script won't work anymore :)
Until you solve things on your end, @lhoestq suggested we just return a warning message when people try to load that dataset from HF. What would you like it to say? | Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks! | 54 | Request to remove S2ORC dataset
Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks!
Hello @kyleclo! Currently, we are getting the data from your bucket, so if you remove it the HF script won't work anymore :)
Until you solve things on your end, @lhoestq suggested we just return a warning message when people try to load that dataset from HF. What would you like it to say? | [
0.2497457713,
-0.3549623489,
-0.0154878199,
0.2169867754,
0.0509788096,
-0.0599794537,
0.0153631894,
0.1701465398,
0.3005092442,
0.0649965778,
-0.3151450157,
-0.2419166267,
-0.3971517682,
0.3670790792,
-0.2082138509,
0.1481839418,
-0.1210896671,
0.0473451205,
-0.2688442767,
-0.0216256082,
0.1051729098,
0.2462720126,
-0.0533283129,
0.3302410841,
-0.2204804569,
-0.1824884415,
0.0003756583,
0.2880858481,
-0.1681962907,
-0.3303509355,
0.3342993259,
0.3446078598,
0.1943357587,
0.4782934189,
-0.0001191036,
-0.2259058356,
-0.044947993,
0.0634203479,
-0.3363039792,
-0.0503857136,
-0.0639068782,
0.0830902308,
-0.0390453637,
0.0706028491,
-0.1767838299,
-0.1328929365,
0.0946236327,
-0.1127750725,
0.4514950812,
0.2237595916,
0.1472908109,
0.5189122558,
-0.267988503,
0.2356345952,
0.0838876888,
0.5844475031,
-0.0968283415,
0.3613195717,
-0.1507350355,
-0.1344150305,
0.0206343215,
0.3544662297,
-0.4820706844,
-0.0808603764,
0.3423906565,
-0.2815228105,
-0.3463054597,
-0.289493382,
0.1905052513,
0.3609245718,
0.5013284683,
-0.1849521697,
-0.0085707158,
0.0326258764,
0.0586836338,
0.0704151317,
0.093675822,
0.1089071631,
0.0631743073,
0.453869015,
-0.2132694721,
-0.5096268654,
-0.238695994,
-0.1701663733,
-0.1918972731,
0.274112016,
-0.2331753075,
-0.0442751236,
0.0756482929,
-0.0128305042,
0.1244940311,
-0.1404352337,
-0.127095446,
0.2118845135,
-0.1232203394,
-0.3587531745,
-0.1462820321,
0.0978430137,
0.3382326663,
-0.005484229,
-0.0339052305,
-0.1031492352,
-0.3579526842,
0.1639179885,
0.2696821094,
-0.1068987846,
0.1650609523,
0.0802445114,
0.2007355243,
0.371096611,
0.2687782645,
0.1058007926,
0.2009719759,
0.1437754631,
-0.267775327,
0.0206927955,
0.4212610722,
-0.4505499005,
-0.495460391,
0.3764740527,
-0.0396212526,
-0.1254843771,
0.1502395868,
0.2772760987,
0.1018729061,
-0.0195237137,
0.1454116404,
0.116528064,
-0.1844521165,
-0.3579522967,
-0.1602801085,
0.2095674425,
-0.2512291372,
0.1203962639,
0.1802689731,
-0.1312956959,
0.128775984,
0.1143669337,
0.6399714351,
0.2406096607,
-0.1666055918,
-0.1466243863,
0.2603841722,
0.1203870401,
-0.1811204702,
0.08020477,
0.1370404363,
0.0961925313,
-0.2488335967,
0.0890590325,
-0.3099264801,
-0.2802246511,
-0.5160053372,
0.0420543663,
-0.1513460279,
0.0481920019,
-0.3567976058,
-0.0515678003,
-0.3598992825,
0.1025717333,
0.2436720431,
0.1525049806,
-0.4501981735,
-0.003485743,
-0.1981193721,
0.5347214341,
-0.0669690073,
-0.0042567477,
0.378506422,
-0.3493415713,
0.0128765926,
0.4040502012,
-0.2383316457,
-0.2535089552,
-0.439138025,
-0.1414207816,
-0.5946814418,
-0.1744572222,
0.0992879868,
0.5375523567,
-0.2992699742,
0.2132284343,
0.0099563301,
-0.2031263262,
0.0113221593,
-0.5564863682,
-0.097353138,
-0.0895497352,
0.2681994438,
-0.2259256244,
-0.2278826684,
-0.3242285252,
0.0612318963,
-0.1026291251,
0.1750382185,
0.3118287921,
0.0767640024,
-0.0738642737,
0.6009219885,
0.0521627143,
0.0797498301,
0.37169981,
0.2853856683,
0.2455007732,
-0.2253014445,
0.056051299,
-0.1960526109,
-0.064754948,
-0.0250654928,
-0.0749501437,
0.1551263779,
-0.2883829474,
-0.1902811676,
0.018365033,
0.027183596,
0.1615639776,
-0.0629755631,
-0.318208009,
-0.0179346316,
-0.1112436801,
-0.368282795,
0.676376462,
-0.1507048309,
0.1577689946,
-0.1715858281,
0.1568665206,
0.0588736683,
0.2809248567,
0.2297972143,
0.0875787437,
0.223313123,
-0.0150028337,
0.1429279,
0.2585816383,
-0.1537300348,
0.0822616145,
0.2234176695,
0.4290008545,
0.1444980204,
-0.1048832685,
0.4809746444,
-0.0827412978,
-0.0540455692,
0.2035283744,
0.0871269554,
0.2614380717,
-0.3357445002,
0.0526355021,
-0.3771406412,
-0.1790438294,
0.1647439301,
-0.0615299344,
-0.1390988827,
0.0128755867,
0.1143248677,
0.153839469,
-0.2277927399,
-0.084572725,
-0.3620778024,
-0.1090863347,
-0.1644120663,
-0.2193993032,
-0.2350514233,
0.229992494,
-0.0151847936,
-0.0578253977,
0.4176203609,
-0.0115161389,
0.2619348764,
0.1280817986,
-0.1451252401,
0.2411236614,
0.3163656592,
-0.0746849105,
0.2493270934,
0.0866194367,
-0.0355136618,
-0.0647580773,
0.1031337231,
0.0849607959,
-0.3730010986,
-0.2814787626,
-0.3263089061,
-0.0815616176,
-0.3990688324,
0.170524776,
-0.1877945065,
-0.3982465863,
0.0312803462,
0.4227201939,
-0.6007093191,
0.0725849643,
0.3227221668,
0.2935101092,
-0.1004196629,
-0.0541534983,
-0.2906796336,
0.3760780096,
-0.3606555462,
0.0042778272,
-0.1575548649,
0.1559748054,
-0.0230978951,
0.0489611663,
-0.0592317916,
-0.0755981728,
0.5918334126,
0.0483932942,
-0.1953926384,
-0.2420423031,
-0.0286118612,
0.2571059763,
0.022235442,
-0.2735897601,
0.3110339642,
0.4664094448,
-0.1958958358,
0.088809669,
-0.2306559086,
-0.3152906299,
-0.0752917379,
-0.0221921764,
-0.0101126581,
0.1665057391,
-0.1660595238,
0.3509400189,
-0.119406037,
-0.1206385046,
-0.1005798876,
-0.2498234063,
0.1017665118,
0.1561323255,
-0.2423312813,
-0.0377896428,
-0.4389008582,
-0.2412036359,
-0.4783959985,
-0.7775787115,
0.1322233677,
0.1551060081,
0.0619401634,
0.3001137078,
0.2907039821,
0.0243345536,
-0.245339483,
-0.4676836133,
-0.2666759193,
0.1108361855,
0.0299541056,
-0.0711928457,
-0.0387906395,
0.131669268,
-0.0325353816,
-0.0444166958,
0.0204176903,
-0.1365665793,
-0.2444279343,
-0.0075046839,
0.2517966628,
0.0325366817,
0.126101315,
0.0227920637,
0.4973384142,
0.1448778212,
0.0841677785,
0.4559578598,
0.1717984378,
0.3662774563,
0.0237876363,
-0.2425237149,
0.1033528298,
0.1416404098,
-0.3005754054,
0.2440729886,
-0.0383810028,
0.3073282242,
-0.0081218109,
-0.2871600091,
-0.0282574669,
-0.3399540484,
0.0091047715,
0.1280024499,
0.2055031657,
0.024885118,
-0.2929007709,
0.2974542379,
-0.4071058929,
0.2614757121,
0.2595373988,
0.5409587622,
-0.068267107,
-0.3393146694,
0.0467193611,
-0.6888625026,
0.2979677618,
-0.2771046162,
-0.2801994085,
-0.2462516576,
0.1726003885,
0.2283552736,
0.2470277995,
0.498619616,
0.2680111527,
0.0235362761,
-0.2184674442,
-0.1825602502,
-0.0582049936,
-0.0362151638,
-0.1056764647,
0.1881692708,
-0.1052633822,
0.050042633,
-0.3504540622,
-0.5315481424,
0.2567065656,
-0.0225878116,
-0.1742411256,
-0.2361786664,
-0.2920233607,
-0.1977844238,
-0.3408433199,
0.1677181125,
0.307616502,
0.0153894052,
-0.1253123879,
0.1018321589,
0.4349920154,
0.1473049819,
0.6156097651,
-0.2114207149,
0.0193335153,
0.343941927,
-0.1309428811,
0.1688973159,
0.3511146307,
0.4098885953,
0.5923303962,
0.1420722455,
-0.081905961,
0.0140372887,
0.1726199687,
0.3772749603,
0.5314569473,
0.1444599181,
0.2339476049,
0.1110390723,
0.5215497017,
-0.4326660037,
-0.0630821213,
0.1206265762,
-0.3773059249,
-0.2497069538,
-0.0989961699,
0.2030663639,
-0.078060776,
-0.1188462526,
-0.1410824209,
0.8098539114,
-0.1867142022,
0.1559917182,
0.150902018,
1.3320163488,
-0.2479286045,
0.2357514352,
0.2712948918,
-0.1290404648,
0.4322170019,
-0.3908833563,
-0.1765438914,
-0.211851269,
-0.0162082054,
-0.1631899625,
0.1025289148,
-0.0620000735,
0.143530786,
0.2626082301,
0.3281176388,
-0.4982750416,
0.1290329695,
-0.2335584462,
0.2766571641,
-0.1408677846,
0.0030514468,
-0.3498929143,
0.0744983256,
-0.1713303775,
0.4168685973,
-0.2191189975,
-0.0671670884,
0.4257999063,
-0.377827853,
-0.0424640328,
0.0447315276,
0.0388370566,
-0.1559123993,
-0.1112906933,
0.0425097644,
0.3011130989,
-0.0560348295,
0.3512806594,
0.0278362557,
-0.0726785362,
0.0513904169,
-0.1709362566,
-0.084192425,
-0.2952905297,
0.0870445967,
-0.2191111594,
0.0486370847,
-0.2608413398,
0.1357266009,
0.2565946579,
-0.0180949047,
-0.222742483,
-0.0412250087,
-0.0989611596,
-0.3706774116,
0.0318809301,
0.1167125255,
0.2910928726,
0.1557992399,
0.0564192608,
0.3169153929,
-0.0138246231,
-0.3145056665,
0.3934534788,
-0.2551904321,
-0.2107522935,
0.2886606455,
-0.0272125751,
-0.2627367079,
0.3052181304,
0.1696691811,
-0.2657027245,
-0.3482818305,
-0.075425379,
0.0589196384,
-0.5973588824,
0.0254181996,
0.4354969859,
-0.162044093,
-0.252614975,
-0.2109771669,
0.056880407,
-0.088986814,
0.3848846257,
-0.0449820384,
-0.1926762015,
0.201859802,
-0.216938585,
0.0482338071,
0.2139462233,
0.0933067501,
-0.3710497618,
-0.1320234239,
-0.264464736,
0.0163211413,
0.1053567976,
-0.2173147351,
0.1335785538,
0.2935497165,
0.2910031378,
-0.2786358595,
-0.0203130674,
-0.099321112,
-0.1770350933,
-0.0748839155,
-0.291059047,
0.2215994447,
-0.0449015871,
-0.1685600579,
-0.1221848428,
-0.1883229911,
0.0235308334,
-0.0048137531,
0.4513419867,
0.743886292,
0.2988629937,
0.2216386795,
-0.0300444588,
-0.2597447038,
-0.310690403,
0.0058657173,
0.285153389,
0.4316038191,
0.2342333645,
0.035695523,
-0.1349038631,
-0.154862836,
-0.0775111243,
0.4667082727,
0.372010231,
0.1954258829,
0.0320646875,
0.0422279388,
-0.1331795752,
-0.0589352734,
0.2870425582,
-0.1698839068,
-0.2773600519,
-0.5174629688,
0.091658242,
0.0997793674,
-0.2205557525,
0.0020811073,
0.1206341684,
0.0996042937,
-0.2272837758,
0.2557864189,
0.0328351259,
0.298979342,
0.2343000174,
0.0497595668,
0.1036294103,
0.0457911715,
0.0056180991,
-0.1631213427,
-0.3256462216,
-0.1176440269,
0.3044127226,
0.1418195218,
0.2957923412,
-0.1029095054,
-0.0012432113,
0.2620551884,
0.1100716889,
0.3436685503,
0.0641131401,
-0.440439254,
-0.1973461807,
0.4140306711,
0.0036723465,
-0.0359743349,
0.2168562561,
0.1978268176,
0.0704154074,
-0.3362606168,
-0.2519578338,
0.3827544451,
-0.0171568412,
0.1619793028,
0.1494685262,
0.000660643,
-0.2370759398,
0.0316927508,
0.0101732491,
-0.1894215047,
0.2951093018,
0.0410582162,
-0.1641432047,
-0.0630543604,
-0.0407241881,
0.2460590303,
0.1142048314,
0.0809096545,
-0.1802520603,
0.1558294296,
0.1466403604,
0.4085486233,
0.3081878126,
0.2187100053,
-0.1930952966,
0.3625755012,
-0.0345160812,
-0.1915352643,
0.1151140332,
0.1295538843,
0.1988429129,
-0.1566423774,
0.1549251825,
0.0691780448,
0.034462817,
0.0099706575,
-0.0998148918,
-0.0111801419,
0.2621312439,
-0.2802784741,
0.3153546453,
0.1543417871,
0.1042037308,
-0.1866543442,
-0.0157015212,
-0.1792558581,
0.035777539,
0.2729765773,
0.019893501,
0.2161610723,
-0.0756980479,
0.0229736008,
-0.1112570316,
0.0774395168,
0.5089769363,
0.0148959607,
-0.3831489086,
-0.0282361954,
-0.3676786423,
0.1642833203,
-0.1747782081,
-0.0107603371,
-0.079302609,
-0.1445975751,
0.2598772347,
0.0191256572,
0.013753444,
-0.4540663064,
-0.0559212826,
-0.1435638368,
0.0621939823,
0.2941074669,
-0.2662774324,
0.3607121408,
0.0232321471,
-0.0668495223,
0.0598655939,
0.0297872014,
-0.1144578382,
-0.2641507089,
0.324703753,
-0.1846610308,
-0.4762772918,
0.2907906771,
0.1561373919,
0.0620757937,
-0.1317417324,
-0.3518445492,
0.1171886921,
-0.1519410759,
-0.062578626,
-0.0601476841,
0.2416971922,
0.1981600672,
0.0042982101,
-0.1956636012,
-0.0065107532,
0.5049578547,
-0.2357055545,
0.336291939,
-0.4627583921,
0.0505444109,
-0.2155090272,
0.2378560156,
-0.2511630952,
0.2846772671,
0.2050159574,
0.0858608186,
-0.2218780816,
-0.0377839133,
0.8010758162,
-0.2489504218,
-0.0627345443,
0.023047097,
0.7974459529,
-0.1255708486,
-0.5456663966,
-0.6729074717,
0.3868611753,
-0.0742243454,
0.0923881829,
-0.0214735121,
0.3568216562,
-0.2921847999,
0.0004405454,
0.1347307265,
0.38544783,
0.1125353128,
-0.1136491224,
0.218510747,
-0.087021336
] |
https://github.com/huggingface/datasets/issues/2105 | Request to remove S2ORC dataset | Hi @kyleclo, as of today, you have not removed your bucket data yet, and therefore HuggingFace can download it from there.
Is it OK? Are you planning to eventually delete it? Thank you. | Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks! | 33 | Request to remove S2ORC dataset
Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks!
Hi @kyleclo, as of today, you have not removed your bucket data yet, and therefore HuggingFace can download it from there.
Is it OK? Are you planning to eventually delete it? Thank you. | [
0.4957598448,
-0.3337317705,
-0.0840624124,
0.5156830549,
0.0438569337,
-0.101533398,
-0.0326937884,
0.0329048149,
-0.0669206157,
0.0352707542,
-0.4459502399,
-0.1573461294,
-0.4066598713,
0.3072044849,
-0.2146410048,
0.106613338,
-0.0704353154,
-0.0257814154,
-0.2145420909,
0.106716536,
0.2157329023,
0.2247690111,
-0.1654159278,
0.0539167859,
-0.2104238272,
-0.2381734401,
-0.1167770922,
0.1302070171,
-0.3192275167,
-0.0353853069,
0.3552871943,
0.2568556666,
0.0180799738,
0.5105400085,
-0.0001207894,
-0.2499541789,
-0.1819292903,
0.0273429751,
-0.3482289314,
-0.0850834548,
-0.2539297342,
0.2486186177,
-0.080037266,
0.0494214743,
-0.0200399607,
-0.089450106,
0.0677071512,
-0.0824016705,
0.4551745057,
0.3425403535,
0.1748302281,
0.4669801593,
-0.2167334557,
0.3688213229,
0.046474129,
0.5212649703,
-0.1069015414,
0.4482249618,
-0.0772999376,
0.1177875698,
0.2876633406,
0.2670897245,
-0.452940166,
0.0094580315,
0.1681185365,
-0.1748991907,
-0.2927419543,
-0.3420933485,
0.4042109549,
0.200058341,
0.5567817688,
-0.1356278807,
-0.0795362219,
0.1709878147,
0.1103686467,
0.0262254849,
0.1101982445,
0.336453557,
0.122040987,
0.4964209497,
-0.4470809996,
-0.6174144149,
-0.198792398,
-0.1457075328,
-0.3737247288,
0.452003479,
-0.4058314562,
-0.0916312039,
-0.1052423269,
0.0417874344,
0.1657263935,
-0.2152701765,
-0.0421456806,
0.1711712182,
-0.1479816437,
-0.1933973432,
-0.2669917941,
0.330288589,
0.0193492919,
0.1699256599,
0.1828711182,
-0.2607262135,
-0.2533019781,
0.1017721519,
0.2911594212,
-0.0237630419,
0.0344302729,
0.162358135,
0.1257817447,
0.1631884724,
0.3278102279,
0.1640236974,
0.1142653823,
0.3418655396,
-0.4561472237,
-0.1095794141,
0.5117801428,
-0.4140563011,
-0.3980416656,
0.2177028209,
-0.1894528568,
-0.056728255,
0.2985418141,
0.0370173566,
0.0437167361,
-0.1946988404,
-0.0023852736,
0.0292249843,
-0.1095379144,
-0.2861462831,
-0.1512727439,
0.1469766498,
-0.0758951902,
-0.0422930606,
0.3087780774,
-0.285643816,
0.2127102613,
0.1209731847,
0.5065148473,
0.1983676106,
-0.1395123154,
-0.1003876328,
0.1341326535,
0.0941663384,
-0.275898397,
0.1906489134,
-0.0578923412,
0.02933833,
-0.1639851481,
-0.0040589496,
-0.4304204881,
-0.251891017,
-0.5167298317,
0.0256335512,
-0.1676174104,
0.0279525183,
-0.2884706557,
-0.1311133057,
-0.1527276337,
0.0477716327,
0.2074299753,
0.2324856967,
-0.304872781,
-0.1078944877,
-0.1457239389,
0.2310076952,
0.0114555061,
-0.0470038354,
0.4015559852,
-0.1696833074,
0.1348306537,
0.4137634635,
-0.1444090903,
-0.2488926202,
-0.3052417636,
-0.1933333278,
-0.5849936008,
-0.1785209179,
-0.2186418027,
0.3066715002,
-0.2916368544,
0.0653245971,
0.0907887965,
-0.2250337154,
0.1867792159,
-0.397112906,
-0.1050937325,
0.0150191411,
0.2615577579,
-0.3209240437,
-0.2446401715,
-0.2160145342,
0.0213177986,
-0.138990581,
-0.0529977866,
0.2530776262,
-0.0388516672,
0.0655224919,
0.3861151636,
0.137218371,
0.2675561309,
0.3679468334,
0.3419261277,
-0.0033927802,
-0.2892645001,
0.0228996426,
-0.3031846285,
-0.0008270293,
-0.1005435213,
0.0140121412,
0.1042814702,
-0.2691426277,
-0.1032083929,
-0.0674807355,
0.1229778975,
0.0552170537,
0.0060697235,
-0.3333397508,
0.1370131671,
-0.2558970451,
-0.2763422728,
0.5580833554,
-0.0587234572,
0.169324562,
-0.3764615655,
0.1268548816,
0.0966553017,
0.2309934944,
0.2974233627,
0.0872851312,
0.0516798235,
-0.1487176567,
0.0167449787,
0.293643117,
-0.1941561997,
0.2961038351,
0.1957148463,
0.5390326977,
0.2160006315,
-0.0751856044,
0.3775987625,
-0.0670158118,
0.0553689785,
0.1712250412,
-0.0678176358,
0.2758795619,
-0.2441228926,
0.0997906327,
-0.2766649425,
-0.0535205454,
0.2998167276,
-0.0084761083,
-0.2149960995,
0.0558523759,
0.206537053,
0.1228862479,
-0.138197571,
0.0391971543,
-0.2054742873,
-0.0551350266,
-0.4398146272,
-0.0822411329,
-0.2566308379,
0.0857052058,
-0.219752118,
-0.1574986279,
0.4005414844,
0.0638064444,
0.3512214422,
0.1117027104,
0.0556263961,
0.1014792621,
0.6616275311,
-0.1314483434,
0.3922665119,
0.1514548659,
-0.0804908425,
-0.2001650631,
0.33944875,
0.1562804878,
-0.2818532586,
-0.0442732498,
-0.2306793332,
0.045003511,
-0.2120528817,
0.1666827947,
-0.3680693507,
-0.4625118971,
0.0466784202,
0.3735584319,
-0.6214091182,
0.1193179339,
0.1495129019,
0.2071442604,
0.0515231937,
-0.0294182636,
-0.1133589298,
0.4791510999,
-0.4406366944,
-0.0066904165,
-0.1465626359,
0.0948430151,
0.0196558107,
0.1045660526,
0.0436962321,
-0.0225988105,
0.585080266,
0.0852534622,
-0.0397209972,
-0.2896200716,
-0.146024093,
0.2113804668,
0.0025431281,
-0.2489181608,
0.1970219463,
0.3608905971,
-0.4428423643,
0.2280669957,
-0.2399171591,
-0.3119656146,
-0.1648210585,
-0.1356618106,
0.0246881954,
0.1858582795,
-0.1512952447,
0.3677881658,
-0.1659550965,
-0.0851376355,
0.0624415316,
-0.0626602173,
0.0410470366,
0.0085384883,
-0.450486511,
0.0301181003,
-0.2970257103,
-0.2289244235,
-0.4113448262,
-0.9189473987,
0.1523664743,
0.1167670041,
0.0193303358,
0.2935317159,
0.4042414725,
0.3140756786,
-0.1340128183,
-0.2661590576,
-0.122479856,
0.0487620458,
0.0595242828,
0.0118061341,
0.0652007386,
0.2354319841,
-0.0499617532,
0.027417887,
0.057130523,
-0.2474699765,
-0.3330617547,
0.3217720985,
0.3163863719,
0.0432503745,
-0.0904863477,
0.0323355645,
0.5703092813,
0.1193070859,
0.1081985533,
0.2337162495,
0.0584443137,
0.2107962072,
0.0774304494,
-0.320335269,
0.2461825907,
0.1141089723,
-0.3820789456,
0.3038384318,
0.2107919157,
0.2345763743,
-0.0999831855,
-0.1175925136,
-0.3073518276,
-0.2389182597,
-0.0966973677,
0.1623183191,
0.3810128272,
0.1455528438,
-0.414398849,
0.1838241369,
-0.6200309992,
0.0153120868,
0.0993890688,
0.4457890391,
-0.1423617899,
-0.3448931277,
0.13891159,
-0.7456732988,
0.3348259926,
-0.259206593,
-0.4012364149,
-0.0420987606,
0.3280581832,
0.3923136294,
0.22052598,
0.4572166502,
0.3931532502,
-0.1158166528,
-0.3311366439,
-0.1643449664,
-0.1489863545,
0.0543991923,
-0.1202843264,
0.2828076482,
0.1660120189,
0.0103461388,
-0.3399406374,
-0.3981850743,
0.2015841901,
0.0127112418,
-0.2689372897,
-0.1603000015,
-0.1998766065,
-0.311558187,
-0.1354833096,
-0.070238024,
0.2671819329,
0.0904129446,
0.0411675274,
0.2658307552,
0.2342757881,
0.0548758209,
0.5304288268,
-0.3897339404,
0.1439938843,
0.2950488329,
-0.0499287546,
0.2139320076,
0.3759800196,
0.3007420301,
0.6087446213,
0.1527267992,
-0.1222708672,
0.039961189,
0.0556126349,
0.4190649986,
0.4938334227,
0.0840898752,
0.2226261199,
0.0434639566,
0.4279055893,
-0.3727278113,
-0.134226352,
0.1682677716,
-0.3318159282,
-0.199173376,
-0.0686134323,
0.19781892,
0.1184224486,
-0.175599426,
-0.1097561866,
0.7189230919,
-0.2271824777,
0.0384961106,
-0.035574533,
1.3941192627,
-0.1602259874,
0.1949438453,
0.1941278577,
-0.1110364497,
0.6845200658,
-0.2874391675,
-0.0362649336,
-0.0968797356,
0.0766119808,
-0.1713692993,
0.174581483,
0.0234013572,
0.1255313158,
0.3082106709,
0.2151380181,
-0.4961576462,
0.3687129915,
-0.1846525371,
0.2205484211,
-0.0238178633,
0.0218943097,
-0.5131443739,
0.0759433508,
-0.2100072652,
0.3007347286,
-0.1663540006,
-0.0731306598,
0.1509173363,
-0.2481132895,
-0.0393896475,
-0.1208686382,
0.1561516821,
-0.0291196164,
-0.1115676314,
-0.1162347049,
0.1237900108,
0.1180704087,
0.2266779989,
-0.0220317692,
-0.2298938185,
0.1466960311,
-0.1310494244,
-0.1286080778,
-0.1485784352,
0.1618471146,
-0.5426866412,
-0.0890741199,
-0.0815426186,
0.0844438821,
0.2241678387,
-0.0464942567,
-0.1340240091,
0.0344783179,
-0.0058436003,
-0.29149279,
-0.0973668173,
0.0303257778,
0.1702994853,
0.0401914045,
0.0708396584,
0.3123108745,
0.0006765798,
-0.295925051,
0.286696583,
-0.1537837088,
-0.2394488752,
0.4287184477,
0.1977635473,
-0.3225499392,
0.2857299447,
-0.0190901607,
-0.1904803813,
-0.2751339674,
0.20164527,
-0.3425221145,
-0.5874429345,
0.114128679,
0.3149662018,
0.0366046131,
-0.291513294,
-0.1975777447,
0.1104005873,
-0.0264900364,
0.3168046176,
-0.0584952086,
-0.1946906894,
0.1652727127,
-0.0926989242,
-0.0414469205,
0.0176056847,
0.0027852245,
-0.3060525954,
-0.0078446213,
-0.2347193509,
0.2258278728,
0.1353642642,
-0.165021196,
0.2514099479,
0.2690314651,
0.1896716952,
-0.3752940297,
0.0139902905,
-0.1579983383,
-0.0628545359,
-0.1252651513,
-0.2023277432,
0.2092255503,
0.0137126632,
-0.3652533591,
-0.1408756226,
0.0106527135,
-0.0787612125,
0.0449377634,
0.2707509995,
0.6551380157,
0.4446861446,
0.0695409775,
-0.1357014477,
-0.1160846949,
-0.2091149986,
0.1226804107,
0.2805313468,
0.3615554571,
0.2780154049,
0.1833036393,
0.0210822038,
-0.2138291895,
-0.0988973528,
0.1772829145,
0.2302204669,
0.1133605465,
0.0641405731,
-0.0504007153,
0.0162510797,
-0.0165797807,
0.3196051419,
0.0419561528,
-0.2212166786,
-0.2051953673,
0.0941631794,
0.0966500342,
-0.239065513,
0.0912446529,
0.3166817427,
0.2178631723,
-0.2466184795,
0.1899968982,
0.0080902129,
0.3711921573,
-0.0991897807,
-0.0483709686,
0.1039115041,
0.115959987,
0.0622349456,
-0.1857698113,
-0.0982565433,
-0.1045928821,
0.3679388762,
0.121120058,
0.1277452558,
-0.1870662868,
0.0125027653,
0.3199790418,
0.1332128197,
0.3787962794,
0.3281484246,
-0.3077744246,
-0.3909493387,
0.2668871284,
-0.0182670504,
0.1024360806,
0.2293852866,
0.4026895165,
-0.0670615584,
-0.4168705046,
-0.2844014168,
0.5166847706,
0.0485898927,
-0.0332628414,
0.1105164662,
-0.2009193897,
0.0519627333,
0.1180610731,
-0.1513551325,
-0.2885622084,
0.3093553483,
0.0303903166,
-0.1930823028,
-0.2587172687,
-0.1305485666,
0.2527624369,
0.1449283361,
0.0835627317,
-0.1449498832,
0.033326827,
0.1658574045,
0.1370888054,
0.3544538021,
0.067538321,
-0.3148902357,
0.3163480163,
-0.045144327,
-0.1601142585,
0.0241891369,
0.0345298275,
0.3621993959,
-0.0635648221,
0.0739469677,
-0.071359612,
0.0179507434,
-0.0155647434,
-0.0254429411,
0.083768636,
0.3100959361,
-0.371437043,
0.1992070675,
-0.0777840093,
-0.0018283278,
-0.0205145068,
-0.1432976127,
-0.1920781732,
0.0305633545,
0.1091963351,
0.0172963999,
0.2012601048,
0.0917828977,
0.017233856,
-0.2065966874,
0.1258367896,
0.4229777455,
0.1077390462,
-0.3011725545,
-0.2894937992,
-0.3903496861,
0.126979962,
-0.1087449566,
0.0506040677,
-0.2355712354,
-0.0645273998,
0.2830373347,
0.1545532048,
-0.2088687122,
-0.4022493064,
-0.0171847716,
-0.0691529363,
-0.0063843951,
0.3615442812,
-0.2786248922,
0.3093093336,
0.0446296111,
-0.0658399314,
0.0928761065,
-0.0068054646,
-0.1091713756,
-0.3168355227,
0.3109954,
-0.1654200256,
-0.3387308717,
0.2403813601,
0.130776003,
-0.1046123505,
-0.0211965516,
-0.3472581208,
-0.069911696,
-0.0985999703,
0.1005969048,
0.0540762357,
0.220993638,
0.1504022181,
-0.0379117541,
-0.010277913,
0.0456223637,
0.5237258077,
-0.2117825449,
0.2887279987,
-0.4321367145,
-0.0973334461,
-0.2158828378,
0.2435974777,
-0.1751488447,
0.2454283834,
0.0639058501,
-0.1614897847,
-0.2857496738,
0.0038836449,
0.7217823863,
-0.3279656172,
-0.0523688681,
0.080343008,
0.7390750647,
0.048214823,
-0.4714953899,
-0.6054504514,
0.3153676391,
0.1254723817,
-0.1929335594,
-0.0164859667,
0.3764757812,
-0.2878526449,
-0.0711825788,
0.1421400011,
0.4748225212,
0.2032741457,
-0.0297301263,
0.2586492002,
0.0450953022
] |
https://github.com/huggingface/datasets/issues/2105 | Request to remove S2ORC dataset | Hi! Sorry I missed @yjernite 's previous message, thanks for responding!
Is there an option where we can keep our data in our bucket, but the HF script no longer pulls data from it? | Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks! | 34 | Request to remove S2ORC dataset
Hi! I was wondering if it's possible to remove [S2ORC](https://huggingface.co/datasets/s2orc) from hosting on Huggingface's platform? Unfortunately, there are some legal considerations about how we make this data available. Happy to add back to Huggingface's platform once we work out those hurdles! Thanks!
Hi! Sorry I missed @yjernite 's previous message, thanks for responding!
Is there an option where we can keep our data in our bucket, but the HF script no longer pulls data from it? | [
0.3147091866,
-0.2077649534,
-0.0239039212,
0.3282620311,
-0.0140943173,
-0.1829028428,
0.017519217,
0.1725748777,
0.1771006286,
0.1621483266,
-0.4038799405,
-0.2786830664,
-0.3127872646,
0.4572272599,
-0.1433836222,
0.1945001185,
-0.0702702552,
0.0524485335,
-0.3202083111,
0.0324460268,
0.1301752031,
0.2261825502,
-0.0884681493,
0.0661726743,
-0.1380360872,
-0.1128828302,
-0.0782067999,
0.1449866593,
-0.1255221367,
0.0694025382,
0.2610512972,
0.4705428779,
0.0800838172,
0.4339933693,
-0.0001245844,
-0.3209072948,
-0.1540062129,
0.0056153685,
-0.4018523097,
-0.1130019277,
-0.0782959759,
0.2641176879,
-0.0908564627,
0.139780134,
-0.0534055345,
-0.1262891442,
0.0841630995,
-0.152734831,
0.31870839,
0.2342591584,
0.1314425319,
0.5757725835,
-0.430370152,
0.2741439044,
0.1232634783,
0.6085692048,
-0.1516880095,
0.3492446244,
-0.119922854,
-0.1097445413,
0.2139886171,
0.3302993774,
-0.435793072,
-0.0924805999,
0.2491259873,
-0.1535656154,
-0.3985682726,
-0.2252965569,
0.4142614901,
0.2827500701,
0.4330859482,
-0.2104132771,
-0.0904780924,
0.1022290736,
0.0474309102,
0.049488984,
0.011687696,
0.214420557,
0.0960222781,
0.4289373755,
-0.3170788288,
-0.6390437484,
-0.2341394275,
-0.1140615717,
-0.3001759946,
0.3237964809,
-0.2973469198,
-0.064186126,
-0.0738200545,
0.0914316699,
0.1797326803,
-0.2322837263,
0.012711484,
0.1589961946,
-0.0431556627,
-0.3171838522,
-0.2178788036,
0.3126015663,
0.2448572516,
0.0445576683,
0.0243878141,
-0.162437886,
-0.2845405638,
0.2050911486,
0.3105309308,
-0.092165716,
0.0419714004,
0.0940723866,
0.2771456242,
0.2518100142,
0.2529097795,
0.0715973973,
0.1932777762,
0.2897891104,
-0.3893840015,
-0.1564794928,
0.5164507627,
-0.4300909638,
-0.416610986,
0.3595438004,
-0.0552883856,
-0.0619811118,
0.1564077735,
0.3035778105,
0.1137093753,
-0.0069999332,
0.0698097944,
0.0436587222,
-0.2103589177,
-0.3135285676,
-0.1677014381,
0.1802438498,
-0.0791731626,
-0.01700891,
0.2489593327,
-0.2133325338,
0.1953543276,
0.1686764956,
0.5780785084,
0.2631825507,
-0.1107337028,
-0.2234823555,
0.3362016082,
0.1756041646,
-0.1483077556,
0.1314198375,
0.0225154739,
0.1181292981,
-0.2510820031,
0.0298499186,
-0.292226553,
-0.1787336767,
-0.4848288298,
0.0030084597,
-0.1213935465,
0.0565310828,
-0.3228922784,
-0.0896096677,
-0.2625929415,
0.1147755235,
0.1649737954,
0.0599420816,
-0.3381239772,
-0.067501545,
-0.1339305341,
0.3447754979,
-0.1291258931,
-0.0032778233,
0.4492902458,
-0.2178824246,
-0.0202052295,
0.3893567324,
-0.1809059829,
-0.2190602124,
-0.3314694762,
-0.1568555981,
-0.4964415431,
-0.2505912185,
-0.0249092393,
0.3402804434,
-0.1744552404,
0.0753003508,
0.1196334884,
-0.2354543954,
0.2151427269,
-0.457449019,
-0.2506247163,
-0.0161337368,
0.1885458082,
-0.279720664,
-0.1101484522,
-0.3190250993,
-0.0062156389,
-0.1179453805,
0.1130622476,
0.1365052909,
-0.0230847523,
-0.0962608457,
0.4757197797,
0.0390384272,
0.2769918144,
0.3343988955,
0.2557877302,
0.1921972334,
-0.2453437746,
-0.049925074,
-0.2992222309,
-0.095937781,
-0.1304722875,
-0.1254461408,
0.1675021648,
-0.3209265769,
-0.0511225946,
-0.0252982453,
0.2593216598,
0.1686456501,
-0.0502266996,
-0.2897987664,
0.0059144646,
-0.183948651,
-0.4556971788,
0.6220616698,
0.0663531125,
0.2031352073,
-0.2550746799,
0.242526114,
0.0820941031,
0.1792575419,
0.2667654455,
0.1372853816,
0.1339350939,
-0.0780466795,
0.1209660172,
0.2498846799,
-0.12233302,
0.1720347703,
0.2978729606,
0.5357651114,
0.1379656047,
0.0415774584,
0.4445878565,
-0.1042020917,
-0.0114138387,
0.1728285551,
-0.0446435921,
0.3055934012,
-0.2436223328,
0.2162426412,
-0.1580534875,
-0.139837712,
0.2460267842,
-0.1375357807,
-0.1633791625,
-0.104052037,
0.2351143062,
0.0534567945,
-0.1292936057,
-0.0276318677,
-0.3138300776,
0.0843925625,
-0.092824094,
-0.1140944213,
-0.234671101,
0.1019418538,
-0.2157963067,
-0.1578470916,
0.4094679952,
-0.0664002746,
0.2941375971,
0.152145654,
-0.1029985324,
0.1443637609,
0.4886134267,
-0.1357599646,
0.298861742,
0.1198168918,
-0.1439885199,
-0.0977470875,
0.2450704873,
0.1141307801,
-0.4201134443,
-0.1339054406,
-0.2944417596,
-0.0589346066,
-0.2316475809,
0.1991480738,
-0.3803667426,
-0.3432621062,
0.0363626219,
0.3859189749,
-0.594088316,
-0.0211537406,
0.2378587127,
0.423330456,
-0.0320284627,
-0.0436419174,
-0.2210725546,
0.4132106304,
-0.5426180363,
0.0208085496,
-0.1979374886,
0.0864615515,
0.040130496,
0.0360179469,
0.0378567278,
0.0495851263,
0.6460419893,
0.1960493326,
-0.2760609984,
-0.2868873477,
-0.0752948225,
0.2934106886,
0.0080152508,
-0.2756491303,
0.2361774445,
0.4233391881,
-0.3549839258,
0.2639248073,
-0.2653573453,
-0.4017896056,
-0.1157095432,
-0.0299878195,
-0.0388160944,
0.2117655873,
-0.1225454137,
0.3960283399,
-0.0757071376,
-0.1922046542,
-0.0743348077,
-0.1557211876,
0.1037828922,
0.0387078822,
-0.387911737,
-0.0467699766,
-0.4429830611,
-0.2824508548,
-0.491232872,
-0.7781989574,
0.1207471192,
0.0699067712,
0.0572080985,
0.3320269287,
0.3459811211,
0.1114939302,
-0.1548401266,
-0.3589919806,
-0.278993547,
0.1449712515,
0.079192996,
-0.1249562576,
0.0872817114,
0.3909487128,
-0.0427656993,
-0.0010110624,
-0.0317493342,
-0.1366343498,
-0.2140948176,
0.2423258722,
0.1992512941,
0.0455870591,
0.0257470347,
0.0106926635,
0.6046022773,
0.1010864377,
0.184491545,
0.339741379,
0.1942436844,
0.3856181502,
-0.0550444759,
-0.2325671315,
0.2094054967,
0.151069209,
-0.3510403037,
0.4016522169,
0.1588743478,
0.332752347,
-0.0486286283,
-0.2903543711,
-0.1625441164,
-0.3546299934,
0.0428747013,
0.1451776922,
0.3210632503,
0.1124968529,
-0.2528866529,
0.1618879139,
-0.4717040658,
0.1904236376,
0.1604333818,
0.5285868645,
-0.1411282718,
-0.3676759601,
0.0719337761,
-0.7467409968,
0.360239625,
-0.3094733059,
-0.3952316642,
-0.1068519354,
0.2692243457,
0.2746241987,
0.1511478126,
0.5630869269,
0.2909491956,
-0.0957488716,
-0.2798060179,
-0.3013560772,
-0.1552669406,
0.0375738293,
-0.1183609515,
0.1619003266,
0.0003907941,
0.0660545975,
-0.3809037805,
-0.5336222053,
0.3014356792,
0.0043950528,
-0.2740960717,
-0.1703824699,
-0.1240281612,
-0.315556407,
-0.2255099416,
-0.1006576717,
0.2319575995,
-0.1187918186,
-0.0158958547,
0.179265365,
0.2700366676,
-0.0834588632,
0.5575612187,
-0.3295528591,
0.0393242575,
0.2972210646,
-0.1338319182,
0.2257255614,
0.2999962866,
0.4112845361,
0.5585443377,
0.1418983787,
-0.123906821,
-0.0102410484,
0.1979887933,
0.5615344644,
0.5556928515,
0.128477037,
0.3664984405,
0.0918800533,
0.5001992583,
-0.3880910575,
-0.0956384391,
0.1000048816,
-0.4081889689,
-0.1625106037,
-0.1049480811,
0.1417705119,
-0.0644088089,
-0.1493143737,
-0.2081587315,
0.7436940074,
-0.2282916307,
0.2903295159,
-0.0346300155,
1.4422252178,
-0.1593497694,
0.3056578934,
0.2118856311,
-0.2551864386,
0.5051161647,
-0.4148741364,
-0.2021961212,
-0.2295222133,
0.0021035597,
-0.167416513,
0.1721377522,
-0.0132452063,
0.0274639074,
0.312012732,
0.3241524696,
-0.539101243,
0.3610621095,
-0.2570851743,
0.2458498478,
-0.1036137044,
-0.0680968985,
-0.3832626939,
0.0401936024,
-0.199819997,
0.2853233516,
-0.2148008198,
0.0085261464,
0.3091727793,
-0.2910863459,
0.0938092917,
-0.1005539745,
0.0519235432,
-0.1713513136,
-0.1621167958,
-0.1322749704,
0.1180653498,
-0.0501562506,
0.3635026217,
0.0336594693,
-0.1031590551,
0.1189671159,
-0.1161589473,
-0.0845569,
-0.1702693105,
0.1121319234,
-0.355792433,
-0.0161620528,
-0.1206367165,
0.0903095454,
0.3170486689,
-0.0723594651,
-0.1763644665,
-0.0874788836,
-0.0170359723,
-0.3474553823,
-0.0331218466,
0.0889292657,
0.2474776208,
0.0167270079,
0.0245226622,
0.3489468396,
0.0486669056,
-0.205762133,
0.2901413441,
-0.0811120868,
-0.3226546943,
0.4245261252,
0.17440027,
-0.2102300227,
0.2772929668,
0.0930409282,
-0.2425222397,
-0.3035078347,
0.0678165108,
-0.0545807518,
-0.5354102254,
0.1562337577,
0.3695348501,
-0.1622980386,
-0.3122071028,
-0.2166402936,
-0.0735200867,
-0.1083321348,
0.1686465442,
-0.0627774596,
-0.2172717154,
0.282678932,
-0.0591713972,
0.021717187,
0.2163205594,
0.1047019362,
-0.4611590505,
-0.0149919521,
-0.2377748787,
0.0556302443,
0.1930531114,
-0.120848909,
0.1916588992,
0.2497816831,
0.2629216015,
-0.4145075083,
-0.0145698525,
-0.1985595226,
-0.0779796839,
-0.1024585962,
-0.3338909149,
0.2461318374,
-0.0063894764,
-0.1803735197,
-0.1264835447,
-0.0808145702,
-0.0587180592,
-0.1077546477,
0.3669099808,
0.703787446,
0.3963146806,
0.1003688499,
-0.0343867801,
-0.1703876257,
-0.1662851572,
0.1051094085,
0.3018839359,
0.4229619503,
0.1335192919,
0.0979769602,
-0.0256359223,
-0.1721764356,
-0.1169035733,
0.3478452265,
0.3693526685,
0.1443409622,
0.085035041,
-0.0068665128,
-0.1513219178,
-0.0705442503,
0.3867635727,
-0.0746731386,
-0.1984467506,
-0.3272587955,
0.1823552251,
0.0592769235,
-0.2297748625,
0.093649596,
0.2319951206,
0.1131343096,
-0.1623990685,
0.244835034,
0.0431436896,
0.301933229,
0.0668519288,
-0.017401062,
0.0813685358,
0.1112632602,
-0.0155172516,
-0.2162248492,
-0.1460537463,
-0.0467095785,
0.2893082201,
0.2002838999,
0.2045659721,
-0.1425296664,
0.0626849532,
0.2676784396,
0.1584059894,
0.3818683028,
0.2592198849,
-0.3135669827,
-0.3890518248,
0.3242782354,
0.043198701,
0.0384174213,
0.1344480813,
0.3216623068,
0.0329436287,
-0.4210071564,
-0.1812737882,
0.5291782618,
0.0012198845,
0.0575157106,
0.1724274158,
-0.043388471,
-0.0143763721,
0.0684771761,
-0.0563086011,
-0.2920879722,
0.3737666011,
0.0783517808,
-0.1012217999,
-0.0771477371,
0.0178348236,
0.0991689116,
0.1210934967,
0.1670681238,
-0.2026460022,
-0.0042346157,
0.3194523156,
0.1413633078,
0.3663025498,
0.0771817639,
-0.3462442458,
0.2414937019,
-0.0717810839,
-0.1055393815,
0.0238870606,
0.0080829114,
0.1334738135,
-0.1241125241,
0.1568183005,
-0.001703985,
-0.0203037616,
0.024002336,
-0.0528658852,
0.0597960651,
0.2323178649,
-0.3492251635,
0.3407615423,
0.1535466462,
0.0007401854,
-0.0673206896,
-0.1813667119,
-0.1566783339,
-0.0461266451,
0.149553597,
-0.0137555078,
0.2211215794,
0.0334272981,
0.0079475194,
-0.2061503977,
0.0759960711,
0.3485664725,
-0.026400324,
-0.2704101205,
-0.1542826593,
-0.2270946205,
0.0794663429,
-0.2377433479,
0.0104718059,
-0.214176327,
-0.0689811558,
0.2982633114,
0.0271293409,
0.0221674517,
-0.5149399638,
0.0391799137,
-0.034018185,
0.1177332774,
0.244677335,
-0.3900571465,
0.3240767717,
0.0645447522,
-0.105551213,
0.0917987227,
0.0427725688,
-0.1558044851,
-0.2495813519,
0.3124648929,
-0.0082961172,
-0.5492111444,
0.316709727,
0.1164443195,
-0.1666413695,
-0.1211270988,
-0.3616182208,
0.0660666227,
-0.0631123483,
-0.0784437507,
-0.1120159924,
0.144924894,
0.1889976114,
-0.0445398614,
-0.190640226,
0.1306954324,
0.4611994624,
-0.2786437273,
0.378675133,
-0.3487754166,
0.0460126102,
-0.2282994986,
0.3409303129,
-0.1601590514,
0.2992238998,
0.0737596601,
-0.120845452,
-0.3632827401,
0.0320411175,
0.7371150255,
-0.2060649246,
-0.1711036861,
0.0094223507,
0.7621916533,
-0.1084107012,
-0.5149692893,
-0.5980623364,
0.2991889715,
-0.0139811896,
-0.0637315661,
-0.0169634074,
0.383295536,
-0.2985235453,
-0.0275076628,
0.1987158507,
0.4187495112,
0.3243615627,
-0.0627263561,
0.221043393,
0.0181116834
] |
https://github.com/huggingface/datasets/issues/2104 | Trouble loading wiki_movies | Hi ! `wiki_movies` was added in `datasets==1.2.0`. However it looks like you have `datasets==1.1.2`.
To use `wiki_movies`, please update `datasets` with
```
pip install --upgrade datasets
``` | Hello,
I am trying to load_dataset("wiki_movies") and it gives me this error -
`FileNotFoundError: Couldn't find file locally at wiki_movies/wiki_movies.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/wiki_movies/wiki_movies.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/wiki_movies/wiki_movies.py`
Trying to do `python run_mlm.py \
--model_name_or_path roberta-base \
--dataset_name wiki_movies \` also gives the same error.
Is this something on my end? From what I can tell, this dataset was re-added by @lhoestq a few months ago.
Thank you! | 27 | Trouble loading wiki_movies
Hello,
I am trying to load_dataset("wiki_movies") and it gives me this error -
`FileNotFoundError: Couldn't find file locally at wiki_movies/wiki_movies.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/wiki_movies/wiki_movies.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/wiki_movies/wiki_movies.py`
Trying to do `python run_mlm.py \
--model_name_or_path roberta-base \
--dataset_name wiki_movies \` also gives the same error.
Is this something on my end? From what I can tell, this dataset was re-added by @lhoestq a few months ago.
Thank you!
Hi ! `wiki_movies` was added in `datasets==1.2.0`. However it looks like you have `datasets==1.1.2`.
To use `wiki_movies`, please update `datasets` with
```
pip install --upgrade datasets
``` | [
-0.2073982507,
-0.0135143101,
-0.0442204624,
0.3873901665,
0.2891763449,
0.1963272691,
0.1652408242,
0.2904253602,
0.1623351276,
-0.05911313,
-0.0651294589,
0.039870508,
0.0390819907,
0.0095693991,
0.2180411369,
-0.1336184889,
0.1319327056,
-0.0677642971,
0.040993087,
-0.1519562602,
-0.2609516978,
0.1905123144,
-0.094782576,
0.0493641086,
-0.3012830317,
-0.0213264506,
-0.0860880911,
0.3671928942,
-0.1554058939,
-0.3068656325,
0.4555039704,
-0.1563683748,
0.6124144793,
0.557012558,
-0.0001154108,
0.079305917,
0.4557098448,
-0.0438041314,
-0.3138124943,
-0.2339859903,
0.199042514,
-0.3066937327,
0.3091191947,
-0.0718855932,
-0.1147368848,
-0.0357827246,
0.145682022,
-0.1668720841,
0.1003155336,
0.0856166855,
0.1734516621,
0.2701099515,
0.2892471552,
-0.0911123157,
0.2961935997,
0.1140343025,
-0.0202869102,
0.4139377177,
0.2665459812,
-0.4807059765,
0.2214952707,
0.3279586434,
-0.3136357665,
-0.0704160854,
0.5433492661,
0.1534254253,
0.3824135363,
-0.3687494397,
0.1887976378,
0.3565348089,
0.6607332826,
-0.0828907788,
-0.3993507028,
-0.0977440253,
0.1088020504,
-0.1376091242,
0.2221828848,
0.2584234774,
-0.0588013269,
0.187161684,
0.0967810452,
-0.3336421847,
0.0515213907,
0.5347654819,
0.0972613022,
0.4951845706,
-0.0458651297,
0.0977664441,
0.1348394006,
-0.2122948766,
-0.1636188328,
0.007071048,
-0.0641390234,
0.4242525399,
0.0684443861,
0.1038474739,
-0.0089857616,
0.4857102931,
-0.1439778954,
-0.0411226191,
-0.1150695086,
-0.0414396152,
0.0586495921,
0.2267343402,
0.3234933615,
0.0552306436,
-0.0866374969,
0.0497815497,
0.2694105804,
0.4145141244,
-0.1821435243,
-0.1986730099,
-0.1851854324,
-0.0572148375,
-0.3604750633,
-0.2458053976,
0.3958001137,
-0.1175652668,
-0.2839033604,
-0.0130766127,
-0.2200162709,
-0.2205560803,
0.2549141049,
0.554427743,
-0.2136491984,
0.1867852509,
0.0356270075,
0.203343451,
-0.2397902608,
0.1961442232,
-0.1105703264,
0.1912115067,
-0.1960520744,
0.231941849,
0.3138677478,
-0.0700656027,
0.4374935031,
-0.1168761998,
-0.0015968252,
-0.1212561429,
-0.0064616725,
0.0378493182,
-0.1349066943,
0.4637262523,
-0.0092822686,
0.2072144151,
0.3247038722,
-0.3109652996,
-0.1152984425,
0.0831782371,
-0.2376972735,
-0.3491517305,
-0.1643438637,
0.0872072205,
0.1324011981,
-0.1991852075,
-0.2350742072,
0.0310064405,
0.0281780772,
-0.5631132722,
-0.0473253243,
0.1131903082,
0.0118429735,
-0.22343041,
0.3480663896,
0.6888158917,
-0.2556485534,
-0.0585722812,
-0.3802089989,
-0.008437546,
-0.0683747381,
0.1990649402,
-0.275603652,
0.059300594,
-0.3056888282,
-0.0649876297,
0.1098075956,
-0.5922427773,
-0.2333728969,
0.2845818698,
-0.1365545243,
0.1409636736,
0.1251607239,
0.168819204,
-0.3357456028,
-0.1660048813,
0.1106743738,
-0.0512541644,
0.0735548586,
-0.2340961695,
-0.1769211441,
-0.1521125734,
0.1346912384,
0.1320299804,
0.0286438707,
0.0403856002,
0.0866592824,
-0.0284468941,
0.2409082651,
0.0489291549,
-0.1485190988,
0.1628978997,
0.3491695821,
0.4564092159,
-0.0384006873,
-0.074191153,
-0.4570274055,
0.1895828545,
-0.1070149839,
0.0173461251,
-0.1545141339,
-0.0961494744,
-0.0614513233,
0.0410893857,
-0.180839777,
-0.2253646404,
0.0850976408,
0.0547777936,
-0.052999042,
0.1655842364,
-0.270904839,
-0.1925828904,
-0.0947696641,
0.2471808493,
-0.4027302265,
0.2519991696,
-0.145564571,
-0.0060174391,
-0.0319156721,
0.2065127194,
0.2627590001,
-0.1470630616,
0.1542285234,
0.3908667862,
-0.0781015903,
0.2508271039,
0.233944416,
0.1645367742,
0.164192006,
-0.0635677725,
0.2368172258,
0.1799626946,
0.2339202166,
0.0259681344,
-0.1443167627,
0.3370313048,
-0.0091861654,
0.2501548827,
0.2184852213,
0.0082470179,
0.1893140525,
0.0529128611,
-0.0398363881,
-0.2208689749,
0.4325360656,
0.2068347335,
0.1125900894,
-0.0895576775,
-0.2570351958,
-0.0425550304,
0.0272043347,
-0.0885864347,
0.2019986659,
0.0528829433,
-0.3966020346,
0.1287509799,
-0.0062549021,
0.145724386,
0.3508640528,
0.1889484972,
-0.174836278,
-0.0642652139,
-0.0122193005,
-0.2063005418,
0.2619257569,
0.1753786802,
0.0702292323,
0.1796755195,
-0.0203875322,
0.0231947675,
-0.2697029114,
0.0314485133,
-0.1116850302,
0.1491058469,
-0.2536025643,
0.1608959436,
-0.2967226505,
-0.0686193481,
-0.2333272696,
-0.4196040332,
-0.3267811835,
-0.2818983495,
-0.0361131169,
0.3151581883,
0.2061973959,
0.0726836696,
0.028804563,
-0.0188825876,
-0.3148036003,
-0.1647446156,
-0.1038463935,
-0.3200184405,
-0.2616143823,
-0.0129883327,
0.549547255,
-0.0611367486,
0.1579241008,
-0.1074338183,
-0.0375613645,
-0.279541105,
-0.5420339108,
-0.064783141,
-0.1012948453,
0.5056605935,
0.0170400068,
0.377625674,
-0.1283344626,
-0.3390268683,
0.3770354092,
-0.0025076345,
0.1115655303,
-0.1031464189,
-0.054526519,
-0.335424751,
0.0182403103,
-0.4875995517,
-0.4276797771,
-0.1854012609,
0.1409365684,
0.2385593802,
-0.1262498349,
0.1926993579,
0.1057869643,
0.1727090776,
-0.1761256456,
0.0277303159,
-0.0571368486,
-0.3297141492,
0.3998131454,
-0.2261289656,
-0.2458426952,
0.400842905,
0.0212228894,
0.0199617445,
-0.2964900136,
-0.5815371871,
-0.1569057852,
0.1353251785,
0.067797862,
0.1800183654,
0.107784912,
0.1994774938,
-0.0731830001,
0.0334882177,
0.0757277161,
-0.1539246142,
-0.2185357809,
-0.13573277,
0.2919264436,
-0.1059439629,
0.4867750704,
-0.4204572439,
0.7676126361,
0.0365935043,
0.0802360177,
0.3636782169,
-0.185873732,
0.4716041982,
-0.0990007669,
-0.4413353503,
-0.0774868429,
-0.2061032951,
-0.1245739609,
0.2974342108,
0.1417629123,
-0.268399477,
-0.3975667357,
-0.0912311375,
-0.3086287379,
-0.2211135924,
0.035221763,
0.3111137748,
0.0772452056,
0.2566116154,
0.1754661947,
-0.0801590085,
-0.3820622563,
0.15397349,
0.7092061639,
0.1075187773,
0.00389193,
-0.4570845962,
-0.4015653729,
-0.2711561322,
0.3313784599,
-0.0077608824,
0.0697344244,
-0.1062443256,
-0.0869511366,
0.1740013659,
-0.162422955,
0.670609951,
-0.0837709978,
-0.1302609444,
0.020356454,
0.0557791591,
-0.2821877003,
-0.1787355393,
0.0687450469,
0.2667475939,
0.0251791924,
0.4684504867,
-0.0857275873,
-0.1418097317,
0.2317418009,
0.1474017799,
-0.2520613372,
-0.1686156094,
-0.4849328697,
-0.2130191773,
-0.3204254806,
-0.2913610637,
-0.1253481656,
0.2390796095,
0.0113212392,
0.1562637985,
-0.016772069,
0.0761726052,
0.1815516949,
0.0424846597,
0.3289707303,
0.247344777,
0.0375464559,
0.2949088514,
0.4270301759,
0.364546299,
0.5436066389,
-0.1697588265,
-0.0709251016,
-0.1214912236,
-0.028176656,
0.2388252914,
0.3939902782,
-0.0232044999,
-0.1704545319,
0.3597782254,
-0.1096955165,
-0.3963788152,
-0.258864224,
0.3368562758,
-0.093652457,
-0.1389510632,
-0.4274106324,
0.7648709416,
0.0248679444,
0.0830102116,
0.0545729436,
0.2724695802,
-0.1628161073,
0.0477627181,
-0.0272066034,
1.0328421593,
-0.1855562925,
0.3174362183,
0.3454583883,
0.2381194234,
0.3155776262,
-0.4082054496,
0.1720001698,
-0.2932627797,
0.0589843653,
-0.1529383659,
0.0050002113,
0.2291632891,
-0.0227832552,
-0.2222685516,
0.3829427361,
-0.0745873228,
0.1983658969,
-0.2022183537,
0.129162401,
-0.0472927615,
-0.031084314,
-0.5368952155,
0.072784014,
0.1796752661,
0.481517911,
-0.2882336974,
0.0028447025,
-0.2557939887,
-0.162287578,
-0.3092896342,
-0.0766075179,
-0.4254751205,
0.1606012285,
0.1578447521,
-0.1742738038,
-0.1863705814,
0.4830908179,
-0.0314790718,
-0.0240611099,
-0.3653793633,
0.1742515713,
-0.1446528137,
-0.5440141559,
-0.2830952108,
0.0278857425,
0.3291458189,
-0.082562767,
-0.2290506959,
0.0745176673,
-0.2145107239,
-0.0334125832,
-0.2611867785,
-0.0484831743,
0.194498837,
-0.062985085,
-0.5832726955,
0.0490508452,
-0.0102966726,
-0.0552632585,
0.0820282176,
0.0675192103,
-0.0686375499,
-0.1999366134,
0.2128708363,
-0.0681738034,
-0.1432760954,
0.6447443962,
-0.2534943521,
-0.02295468,
0.6146342158,
0.4854163229,
-0.1640948802,
-0.1541500986,
0.2329569459,
0.1565603465,
-0.2674960196,
-0.1197679341,
0.5612846017,
0.2112631053,
0.2064641118,
0.1724253297,
0.2825324237,
-0.2618932426,
-0.0820550248,
-0.6242221594,
-0.0708412305,
0.425201267,
0.0374956876,
-0.0521982573,
0.024927713,
-0.0716779456,
0.1992086321,
-0.0941830054,
-0.2477563918,
0.1305895746,
-0.0087979734,
-0.0262037739,
0.501226306,
0.1420451999,
0.3230372965,
0.1515269578,
0.0972074717,
-0.1200805455,
-0.1471912563,
-0.1446714848,
0.0379566774,
0.182738483,
0.039826151,
-0.1624144167,
0.0093400739,
-0.2885362506,
0.0145150647,
-0.143731609,
-0.1796107441,
0.0179266706,
0.1462143362,
-0.0515185669,
0.1145932674,
0.0572149158,
-0.2606997788,
0.1546102613,
-0.1205400825,
0.295958668,
0.1922038198,
-0.2004704028,
0.2075011879,
0.0634204596,
-0.0060100816,
-0.0779669285,
-0.2188493013,
0.1123147532,
0.437407434,
-0.1960469931,
0.1059697121,
0.1638549566,
-0.0032018796,
0.479439944,
-0.1635046303,
0.2560340762,
0.2782726586,
0.1207382008,
-0.4208906889,
-0.0099678785,
0.3926077187,
-0.032233078,
-0.1157749146,
0.174952507,
0.0917497426,
0.1105131209,
-0.1610085219,
0.247407943,
0.321513921,
-0.2639532685,
0.2476570457,
0.2489957213,
0.1460111588,
0.0742934868,
-0.0269912221,
0.2259486765,
0.0321109258,
0.4658450782,
-0.3481171131,
0.2185341865,
-0.1139163226,
0.2591001093,
-0.190155223,
-0.3677087426,
0.1250476837,
0.3036644161,
0.1084165201,
0.0828298181,
-0.2962622344,
0.3766223788,
-0.2566364408,
0.2435162961,
-0.270516783,
0.255741775,
-0.1564923376,
-0.346077919,
-0.1184041351,
-0.3570035696,
0.0342635363,
0.0363693014,
0.0235478226,
-0.1979922354,
-0.0623358078,
0.212711066,
-0.1376570463,
-0.3341417015,
-0.0650519431,
0.0843125284,
0.1563049108,
-0.1054158956,
0.0710222647,
0.3002873361,
-0.0058784299,
0.1646108627,
0.0461685732,
0.5031887293,
0.4529601634,
-0.3615338206,
0.1513349563,
-0.0766327977,
-0.168894887,
0.0438569933,
0.202581957,
0.1634922624,
0.1932384074,
0.0230460651,
0.1304177046,
-0.1090238243,
0.3621738553,
-0.05510341,
0.2701662481,
-0.2747120559,
0.0897116214,
-0.4953477681,
-0.0787108168,
-0.4654944539,
0.1308903098,
-0.4352195263,
0.2043394744,
0.3818308711,
0.0859169066,
-0.082440868,
-0.1214954928,
0.0348883644,
-0.0609528311,
0.5068442822,
0.4655900002,
-0.0042837663,
-0.3190936148,
-0.041387178,
-0.8435494304,
-0.0332939923,
-0.1007923782,
-0.0957553014,
-0.1398044378,
0.1500564516,
0.1667107046,
0.0404702388,
0.0403538421,
-0.5100941658,
0.1848674417,
0.024006715,
-0.1230853945,
-0.2198772132,
-0.2002839893,
0.2074136734,
-0.0271749906,
-0.0048102587,
-0.105284363,
-0.4328905344,
-0.1044765115,
-0.2810298502,
-0.0002235025,
-0.1893541515,
0.0383283943,
0.2756375372,
-0.1559368074,
0.4702204168,
0.0535783917,
-0.2973315716,
-0.4378246069,
-0.2957701385,
-0.0427511595,
0.2842941284,
0.0013645273,
0.481874764,
-0.4417455494,
-0.0757942498,
-0.3557065427,
0.1973000318,
0.0119999275,
0.0551021136,
-0.2170318067,
-0.1389435679,
0.0576264411,
-0.078753747,
0.2426233441,
0.2271080017,
-0.057517074,
0.2714571357,
-0.0860499516,
-0.1240004823,
0.6063526869,
-0.6618577242,
0.0450969338,
-0.0212195069,
0.0025199801,
-0.2047624886,
-0.0113491248,
-0.6350097656,
0.1499142498,
0.295835048,
0.1970756799,
-0.2056304216,
0.0955727845,
-0.013337234,
-0.181309402,
-0.1173968092,
-0.1059830785,
-0.0219054632,
-0.1565831751,
-0.0299981162,
-0.0864389315
] |
https://github.com/huggingface/datasets/issues/2104 | Trouble loading wiki_movies | Thanks a lot! That solved it and I was able to upload a model trained on it as well :) | Hello,
I am trying to load_dataset("wiki_movies") and it gives me this error -
`FileNotFoundError: Couldn't find file locally at wiki_movies/wiki_movies.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/wiki_movies/wiki_movies.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/wiki_movies/wiki_movies.py`
Trying to do `python run_mlm.py \
--model_name_or_path roberta-base \
--dataset_name wiki_movies \` also gives the same error.
Is this something on my end? From what I can tell, this dataset was re-added by @lhoestq a few months ago.
Thank you! | 20 | Trouble loading wiki_movies
Hello,
I am trying to load_dataset("wiki_movies") and it gives me this error -
`FileNotFoundError: Couldn't find file locally at wiki_movies/wiki_movies.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/wiki_movies/wiki_movies.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/wiki_movies/wiki_movies.py`
Trying to do `python run_mlm.py \
--model_name_or_path roberta-base \
--dataset_name wiki_movies \` also gives the same error.
Is this something on my end? From what I can tell, this dataset was re-added by @lhoestq a few months ago.
Thank you!
Thanks a lot! That solved it and I was able to upload a model trained on it as well :) | [
-0.1121563092,
-0.0139934272,
0.007302653,
0.402629137,
0.3210336566,
0.2078269124,
0.2428794354,
0.2546978593,
0.1591465473,
-0.1293400526,
-0.0809663385,
-0.0636575818,
-0.0174834598,
0.0371455625,
0.2689794898,
-0.1464955807,
0.1440912187,
-0.0804251954,
0.0386457741,
-0.1759172082,
-0.2859066129,
0.1560279429,
-0.0958821923,
0.0523041263,
-0.3731434047,
-0.0070694024,
-0.1327134818,
0.4059878886,
-0.1415061057,
-0.214717418,
0.4609820843,
-0.1746775806,
0.615391016,
0.5836369395,
-0.0001164071,
0.1489439756,
0.3599365354,
-0.1114916354,
-0.2162445337,
-0.1964498758,
0.2064692229,
-0.2007347345,
0.271004945,
-0.0929705948,
-0.1247370541,
0.0024900846,
0.1638143063,
-0.1582220644,
0.0603850223,
0.16671139,
0.1763140857,
0.2521985769,
0.2179906219,
-0.0762794837,
0.2325395197,
0.1530010998,
-0.0561036542,
0.4803475738,
0.1946616918,
-0.5227859616,
0.1577256471,
0.2466911823,
-0.2417705059,
-0.1198351756,
0.577337265,
0.1589507163,
0.3579048514,
-0.3634532094,
0.1996270865,
0.4087167382,
0.6135011315,
0.0077125849,
-0.3705615997,
-0.1067455262,
0.1170775145,
-0.0947811306,
0.2538562417,
0.3591562212,
-0.0323333964,
0.2214001715,
0.0957058072,
-0.262370646,
-0.0076845065,
0.4480516016,
0.0597297847,
0.4561122656,
-0.0188435111,
0.0658943504,
0.1543422788,
-0.1914173365,
-0.2707585096,
-0.0120475693,
-0.0375832245,
0.4495450556,
0.0333940312,
0.1286818832,
-0.0111187808,
0.4703657627,
-0.1006704271,
-0.0471909642,
-0.0657703057,
-0.0687853768,
0.0245421603,
0.1941131353,
0.2931635976,
0.0672161579,
-0.1521094888,
-0.0033024251,
0.2521960735,
0.4258025885,
-0.2807627916,
-0.2049823701,
-0.2595448494,
-0.0485324264,
-0.4100687504,
-0.3608538508,
0.3782418966,
-0.1459197402,
-0.3006824851,
0.0537185594,
-0.2405789793,
-0.200917989,
0.2333173454,
0.5762205124,
-0.1611889303,
0.1728942245,
0.0266184732,
0.1784472466,
-0.2535417378,
0.1513383687,
-0.1137236655,
0.2067687809,
-0.2304681838,
0.2217817307,
0.2740676999,
-0.036896009,
0.4466461539,
-0.1666409373,
0.0131376013,
-0.1406332701,
0.0264510512,
-0.0056620277,
-0.1238667741,
0.452580303,
-0.0446488708,
0.15155527,
0.3736089468,
-0.3536576927,
-0.1087919101,
0.0837686956,
-0.1776935458,
-0.3517283201,
-0.106034115,
0.0890507922,
0.0701197758,
-0.1932637542,
-0.2120417058,
0.1135180369,
0.0000122748,
-0.4642564058,
-0.061466936,
0.1810543239,
-0.0781361386,
-0.2276004851,
0.3975327611,
0.7473236918,
-0.2878182232,
-0.0496014729,
-0.2907513082,
0.0037930962,
-0.057974074,
0.2702947855,
-0.2691882253,
0.1515196264,
-0.3390533924,
0.0829209983,
0.0662624761,
-0.4536381364,
-0.2166564614,
0.3275761008,
-0.1736965477,
0.1387213916,
0.059236452,
0.1650345773,
-0.3982459903,
-0.174653247,
0.178409785,
0.0247268863,
0.077270627,
-0.2549576759,
-0.2193593979,
-0.1762290299,
0.1955956221,
0.2131319195,
0.0416986868,
0.0317926705,
0.0563547239,
-0.0642135441,
0.2531675696,
-0.0190834124,
-0.2033087313,
0.1463200152,
0.3620996475,
0.3864983618,
-0.0049206242,
-0.0095537081,
-0.4130251408,
0.2022417188,
-0.1039945185,
0.0395719148,
-0.0981939286,
-0.0703522861,
-0.0420110933,
0.0717680603,
-0.2699700892,
-0.2291840911,
0.0739768371,
0.0106790308,
-0.1434485614,
0.2013344318,
-0.3167360127,
-0.2031102479,
-0.2150318325,
0.2404494584,
-0.3909484744,
0.2344636619,
-0.1204900518,
0.024204351,
-0.0409122631,
0.1739753634,
0.2111230791,
-0.1363128722,
0.1331692785,
0.3344075382,
-0.0879496932,
0.1992667466,
0.3177414834,
0.2289922535,
0.1711473018,
-0.0794304237,
0.1990141422,
0.2143538743,
0.2429057807,
-0.0293913558,
-0.1889048517,
0.3995214701,
-0.012683141,
0.2303567827,
0.2464417517,
0.0190833583,
0.192674011,
0.0369025171,
-0.0532947443,
-0.1471388638,
0.4825776517,
0.2494853139,
0.1442346275,
-0.0129474048,
-0.2999359369,
-0.1178650483,
-0.0263979621,
-0.1227501929,
0.2149264961,
0.0591584034,
-0.409337908,
0.0853514969,
-0.0433144793,
0.1072102189,
0.3932321072,
0.1262843162,
-0.154592216,
-0.0733810589,
-0.0033252314,
-0.2250162661,
0.2733382285,
0.1382022947,
0.0763285309,
0.2013793737,
0.0129286014,
0.0100940615,
-0.3816266656,
0.0092583373,
-0.0779991746,
0.0810076743,
-0.2232538164,
0.176247105,
-0.1877780706,
-0.0294052474,
-0.226208657,
-0.3067162037,
-0.3279342353,
-0.2259712815,
-0.0376598425,
0.2222727537,
0.1373322159,
0.0279579535,
-0.0798410773,
0.0734921023,
-0.2874617279,
-0.1831969321,
-0.0358817726,
-0.2942382097,
-0.2293566465,
-0.0159937106,
0.6218866706,
-0.1350499839,
0.159010306,
-0.0959248543,
-0.0893321335,
-0.2130151689,
-0.5159597993,
-0.048675172,
-0.0142011521,
0.4615416229,
-0.0363292284,
0.411578238,
-0.1496353149,
-0.3485878408,
0.4001298845,
0.0615613312,
0.1341527998,
-0.0545280725,
-0.0358306579,
-0.2908650339,
-0.0004588738,
-0.4532825053,
-0.39325279,
-0.1345376074,
0.175005123,
0.2183782756,
-0.1383412182,
0.2596437931,
0.0735041872,
0.2045804858,
-0.2176375389,
-0.0053538382,
-0.0445676669,
-0.3735520244,
0.4692231417,
-0.1874056458,
-0.3353833556,
0.4011888206,
0.0050905347,
-0.037204437,
-0.3107049465,
-0.593129158,
-0.0952703133,
0.123628363,
0.0605262518,
0.2066352069,
0.042893216,
0.186994642,
-0.1618369371,
0.0479861349,
0.0944119543,
-0.1230250001,
-0.1039203182,
-0.0901143178,
0.3017453253,
-0.15615201,
0.446674794,
-0.4208749533,
0.714972496,
0.0078859553,
0.0581381992,
0.3880030215,
-0.1477460861,
0.4323692322,
-0.1417577565,
-0.3912589252,
-0.0192086361,
-0.2129064053,
-0.2029502541,
0.3765859604,
0.2192339003,
-0.2898502052,
-0.3992305398,
-0.1611678153,
-0.2319954634,
-0.2161508799,
0.0800604522,
0.3433602154,
0.0476765893,
0.2242882252,
0.166518271,
-0.027170036,
-0.3645153046,
0.1873081028,
0.7527634501,
0.2025976777,
-0.0392809883,
-0.4031482339,
-0.3619462848,
-0.2974768877,
0.2064369917,
-0.0998303071,
0.044573281,
-0.1402753443,
-0.130800575,
0.1976878047,
-0.149513036,
0.7062321305,
-0.0151017262,
-0.1303637326,
-0.0237945281,
0.0101146474,
-0.2143743932,
-0.1873929799,
0.1263723671,
0.2255825251,
0.0175891593,
0.5091717243,
-0.0220080465,
-0.0225525089,
0.1574700326,
0.1466571391,
-0.2593087852,
-0.1771279871,
-0.4565150142,
-0.2402570695,
-0.2624639273,
-0.2855709791,
-0.1059529632,
0.2425219715,
0.0959399641,
0.21014826,
-0.0117290393,
0.1187969372,
0.2532062531,
0.0592053793,
0.2856888473,
0.2365045249,
0.0610847771,
0.3171507716,
0.5217162371,
0.2833814621,
0.5718855858,
-0.1491402686,
-0.1094034165,
-0.08250615,
-0.0690722317,
0.2677216828,
0.4327800274,
0.0016409978,
-0.1801288873,
0.4139869511,
-0.081064716,
-0.4332709908,
-0.1700489074,
0.3224602342,
-0.1302315891,
-0.2027721405,
-0.3941427469,
0.7360113859,
-0.0714670494,
0.1236153543,
0.0375175364,
0.2455350757,
-0.1667279303,
0.1385153383,
-0.037705753,
1.1215848923,
-0.2203505188,
0.3800051808,
0.3796668351,
0.2959086299,
0.2363574654,
-0.4449310303,
0.1420255303,
-0.290137738,
-0.0213321671,
-0.1697997153,
0.0020002872,
0.159679696,
0.0362582505,
-0.1308238953,
0.302857697,
-0.1104078516,
0.2878300548,
-0.1666544974,
0.0959407389,
0.052320905,
-0.0351440422,
-0.5819414258,
0.0499434955,
0.2104516327,
0.4309814572,
-0.2776633501,
-0.0368848629,
-0.2028918564,
-0.1022416949,
-0.2853083611,
-0.04719349,
-0.394962132,
0.129757762,
0.1322983205,
-0.1530506611,
-0.1574641764,
0.5224307775,
-0.0201168619,
-0.0069638239,
-0.4100199044,
0.1855683029,
-0.1916389465,
-0.5221065283,
-0.2741030455,
-0.014812123,
0.3304528892,
-0.0886401162,
-0.1722719073,
0.0328982286,
-0.2435246706,
-0.0217962638,
-0.3195014298,
-0.0631716698,
0.1740753353,
-0.0999660045,
-0.6227609515,
0.0590880588,
0.0145934299,
-0.0334772989,
0.0772042498,
0.0882932246,
-0.1070370078,
-0.2859708369,
0.2736415267,
-0.0845416933,
-0.1445074826,
0.6002654433,
-0.2356880754,
0.0307295173,
0.6164124608,
0.5096251369,
-0.1603321731,
-0.1509062499,
0.2975327969,
0.2535952926,
-0.302502811,
-0.0875747502,
0.5863993764,
0.1962469816,
0.0981072634,
0.1826606691,
0.3016441762,
-0.340536803,
-0.058885701,
-0.6151735187,
-0.1146371961,
0.3677109778,
-0.0197938215,
-0.0412863716,
0.0121511221,
-0.0842736214,
0.2014106512,
-0.0830739588,
-0.2267303169,
0.1225781366,
-0.0573122427,
-0.0907823145,
0.4527492523,
0.1415148079,
0.352938652,
0.1707461327,
0.1157715693,
-0.0936378539,
-0.0537634306,
-0.1379550397,
-0.0103541911,
0.1959904879,
0.1063688844,
-0.1523093432,
0.0414155163,
-0.2955006659,
-0.0407718495,
-0.1386503279,
-0.1851913333,
0.0187311247,
0.1879851669,
-0.0898410827,
0.1396680176,
0.0272051562,
-0.3407516479,
0.1479422301,
-0.1170671135,
0.2890983224,
0.2224602103,
-0.2969356477,
0.16971156,
0.042590484,
-0.0384236388,
-0.0439414829,
-0.2481624186,
0.1228452921,
0.4163689315,
-0.2034336925,
0.0929970145,
0.1349324286,
0.0209089816,
0.4537693262,
-0.200550884,
0.3117960989,
0.3188026547,
0.1028333306,
-0.4711425304,
-0.0322458781,
0.4285385907,
-0.0974930972,
-0.1177176982,
0.1329060048,
0.020304583,
0.1275992393,
-0.2521115243,
0.2020097673,
0.2492931783,
-0.1423894167,
0.1922292262,
0.2257124186,
0.1371826977,
0.0967674404,
-0.0186327826,
0.1762081385,
0.0434420258,
0.4835731983,
-0.3364121318,
0.1638944745,
-0.1898629963,
0.1845693737,
-0.1459107995,
-0.3627071083,
0.1122951657,
0.3381079733,
0.0842224061,
0.0779017657,
-0.3157327175,
0.4324379265,
-0.2558785379,
0.203105405,
-0.2942214608,
0.2279844731,
-0.1795711368,
-0.3268270493,
-0.13941136,
-0.3754658699,
0.0363073349,
0.1029456556,
0.0061257281,
-0.181961149,
-0.0557354316,
0.1991257668,
-0.1180709451,
-0.214351356,
0.0058973003,
0.086551562,
0.1842315197,
-0.1216405928,
0.0318916962,
0.2790628374,
0.0243089832,
0.2111038864,
0.0075358097,
0.4232614636,
0.4421954751,
-0.3254863024,
0.2190802544,
-0.033356417,
-0.1536403149,
0.0618898422,
0.2094311565,
0.2220914066,
0.2221372724,
0.0808847696,
0.0996712223,
-0.0842293277,
0.4198636711,
-0.0531387478,
0.2680286169,
-0.2802626491,
0.0459184758,
-0.4868519902,
-0.0923356712,
-0.5042527318,
0.0925879925,
-0.3706070781,
0.2190075666,
0.3753273189,
0.1103682369,
-0.049560152,
-0.0606173389,
0.0213888139,
-0.0646246672,
0.495781064,
0.4861960709,
-0.0153355096,
-0.36406371,
-0.0198307112,
-0.8502105474,
0.0321468487,
-0.0840493217,
-0.0641452745,
-0.1065229028,
0.1282497048,
0.2296148241,
-0.0354773179,
-0.0194137692,
-0.4398721755,
0.1587521285,
0.0537586994,
-0.1137021855,
-0.2470295429,
-0.2540216446,
0.2503528893,
-0.0919795111,
-0.0143094882,
-0.0867223144,
-0.4156889617,
-0.0861691535,
-0.2571047544,
-0.057423871,
-0.2672637999,
0.104904741,
0.2118831575,
-0.1344618648,
0.421089083,
0.0399810001,
-0.2676472664,
-0.4160715938,
-0.261487484,
-0.054323405,
0.1965261549,
-0.0077152778,
0.4464057088,
-0.3979945183,
-0.0311586801,
-0.333006829,
0.1670852005,
-0.0031126589,
0.0065227412,
-0.3167001009,
-0.1473857462,
0.0537004992,
-0.0788210109,
0.2945434153,
0.2342964262,
-0.1015659422,
0.1317184567,
-0.0073741674,
-0.0793455839,
0.6290510893,
-0.7522628307,
0.0383950695,
0.0358505435,
-0.0148079917,
-0.1958952099,
0.036418654,
-0.6877140403,
0.1022051573,
0.2648139894,
0.1969149709,
-0.2437799722,
0.0641052499,
-0.0187958963,
-0.1772501469,
-0.0839941204,
-0.0926373452,
-0.0633514524,
-0.197827518,
-0.0351120532,
-0.1155086756
] |
https://github.com/huggingface/datasets/issues/2103 | citation, homepage, and license fields of `dataset_info.json` are duplicated many times | Thanks for reporting :)
Maybe we can concatenate fields only if they are different.
Currently this is done here:
https://github.com/huggingface/nlp/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/src/datasets/info.py#L180-L196
This can be a good first contribution to the library.
Please comment if you'd like to improve this and open a PR :) | This happens after a `map` operation when `num_proc` is set to `>1`. I tested this by cleaning up the json before running the `map` op on the dataset so it's unlikely it's coming from an earlier concatenation.
Example result:
```
"citation": "@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n
```
@lhoestq and I believe this is happening due to the fields being concatenated `num_proc` times. | 43 | citation, homepage, and license fields of `dataset_info.json` are duplicated many times
This happens after a `map` operation when `num_proc` is set to `>1`. I tested this by cleaning up the json before running the `map` op on the dataset so it's unlikely it's coming from an earlier concatenation.
Example result:
```
"citation": "@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n url = {https://dumps.wikimedia.org}\n}\n\n@ONLINE {wikidump,\n author = {Wikimedia Foundation},\n title = {Wikimedia Downloads},\n
```
@lhoestq and I believe this is happening due to the fields being concatenated `num_proc` times.
Thanks for reporting :)
Maybe we can concatenate fields only if they are different.
Currently this is done here:
https://github.com/huggingface/nlp/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/src/datasets/info.py#L180-L196
This can be a good first contribution to the library.
Please comment if you'd like to improve this and open a PR :) | [
0.1381229162,
0.0136456788,
-0.0630834624,
0.3942777812,
-0.0054810047,
0.0727093294,
0.2289256752,
0.3846518397,
-0.0693549141,
0.0431413837,
0.0773389339,
0.6607301235,
0.4834604561,
-0.111367695,
0.0986291543,
0.2540148199,
0.0726543292,
0.0371468142,
0.1630941629,
-0.0247604921,
-0.1442039758,
0.3476738632,
-0.0284527987,
0.0256114081,
-0.2232685685,
-0.0213758908,
-0.2590197921,
0.2612615824,
-0.0107871275,
-0.2939232588,
-0.2302547097,
0.3371432126,
-0.3443261385,
0.0409674048,
-0.000113471,
-0.1048205942,
0.0930625796,
0.0950631052,
-0.1159348637,
-0.1097433865,
-0.3312693238,
0.0067825317,
0.1233061105,
-0.3301424384,
0.2031041384,
-0.0964055955,
-0.1437792927,
0.1015482694,
0.3578595519,
0.0314736851,
0.1344463527,
-0.3486810029,
-0.0364139974,
0.2117995024,
0.1670621932,
0.5066618919,
0.2788804471,
-0.0225380883,
0.0567879304,
0.137262553,
-0.0372861102,
0.3509612679,
-0.0174394324,
0.0689737424,
-0.0889399648,
0.0198654048,
0.3704962134,
-0.2638966441,
0.402941525,
0.203625083,
0.1998370886,
-0.2152679861,
-0.0649805069,
-0.1508315206,
0.2594081163,
0.0433616042,
0.0116460314,
0.1248431057,
0.2915681601,
0.095209226,
-0.1523610502,
-0.1289321482,
0.0156483203,
-0.2076677084,
-0.1042185798,
0.1388815194,
0.0545037054,
0.2547240853,
0.4554471672,
-0.1756981909,
-0.0094512589,
-0.3732997179,
-0.3630177379,
-0.1488607824,
-0.1156101674,
-0.2586486638,
-0.0468385331,
-0.0697717294,
0.1238705665,
0.118821241,
0.1158265322,
0.2533139586,
0.0044776313,
0.1921119839,
0.4902762771,
-0.1692830622,
-0.0167411007,
0.1683243662,
0.1627896428,
-0.1561909318,
-0.3621466756,
0.2883543372,
0.2324284762,
0.25005427,
-0.2877439559,
-0.2357921302,
0.2499597073,
-0.1283691078,
-0.1634402871,
0.1644686759,
-0.2285561115,
-0.2335814834,
-0.0743249133,
-0.0127038583,
0.2380670011,
0.0311077796,
-0.0816193596,
-0.0761938691,
0.0614854172,
-0.1274148226,
-0.1334026307,
-0.0573373698,
0.024981685,
0.0447402224,
0.2108948082,
0.1958056986,
0.2852683365,
0.4387199283,
-0.2492440939,
-0.6506681442,
0.4075786471,
0.0235326067,
0.0609322973,
0.2766374946,
-0.0646025166,
0.292126596,
0.0561478958,
-0.0985991135,
-0.1849705726,
0.2049916983,
-0.5609200597,
-0.1700747758,
-0.0984943435,
0.1963614225,
0.06908907,
0.058416523,
0.0691956729,
0.0430893935,
0.1906209886,
0.0887872726,
-0.0559141636,
0.0977030694,
-0.2419962287,
-0.0013049655,
-0.2179884315,
0.4913589358,
-0.2344315499,
0.0301890075,
-0.1352134496,
0.1047384143,
0.1158542037,
0.3253321946,
-0.3003508151,
0.4413997531,
-0.1408084631,
0.1248403341,
0.1913561821,
-0.2989718914,
-0.1260944307,
0.4549364746,
-0.2909893394,
-0.1740692407,
0.108496353,
0.0151913725,
0.1984763443,
0.0299542882,
0.2903319001,
-0.1629748344,
0.2847070694,
0.1826170087,
-0.1078767776,
0.0077405348,
0.1597628146,
0.1104982421,
-0.5287644863,
-0.193035081,
0.0745648742,
0.1035659909,
-0.0100887753,
-0.179437682,
-0.1288513243,
0.4532902539,
-0.0080444338,
-0.1855046749,
0.2804614007,
0.2361413538,
-0.1617327034,
-0.0047418624,
-0.212165609,
-0.2374356836,
0.0126129165,
-0.3103975058,
0.1363408566,
0.0577020794,
-0.225872159,
-0.0005590329,
0.1718882024,
0.2167415917,
-0.1872629821,
-0.0663009137,
0.0344364345,
-0.0065416656,
-0.2294784784,
-0.0580725595,
-0.3690659106,
-0.2251576781,
-0.1929300278,
0.2902044952,
0.1001262814,
0.0516590178,
0.4500669837,
-0.0769632012,
-0.0083694626,
0.1213894784,
0.4090746045,
0.2413643897,
0.3329520822,
0.2167108804,
0.5112667084,
0.1091346666,
0.0661503226,
0.0320902094,
0.0376713015,
-0.3805707991,
-0.317720443,
0.2866716981,
0.0399538092,
0.0024848394,
-0.0771474242,
0.0277874768,
0.4658517838,
0.1128015667,
0.032810539,
-0.460055083,
-0.0184917133,
0.6355432272,
-0.2225126773,
0.4609514177,
0.0620357096,
0.5856898427,
0.4512521029,
-0.3411588073,
-0.1285104007,
-0.0126758274,
-0.1237112209,
-0.4660647213,
-0.0280858707,
0.3222883344,
0.2815459371,
0.142450124,
-0.0743343234,
0.1308520138,
0.1566401422,
-0.221848771,
0.3593808711,
0.0051238723,
0.0784255341,
0.0761676505,
0.2985601425,
-0.0761493817,
-0.4390317202,
-0.2105136514,
0.5419512391,
0.1828195155,
-0.3398178816,
-0.0741730183,
-0.5753321052,
0.2566514015,
-0.2085874826,
0.0790696144,
-0.2199469358,
-0.3306313455,
0.1915867329,
0.5351457,
-0.191752404,
0.0248043388,
0.2189726979,
0.4054921269,
-0.0478357077,
0.0378666371,
-0.2421168089,
-0.2526844442,
-0.0021718713,
0.0007377192,
0.1682924032,
-0.166702956,
0.0985404998,
-0.0009682477,
-0.0618154109,
-0.6569476128,
-0.3852786422,
0.2029547691,
-0.2176852226,
-0.0880903229,
0.0604700148,
-0.0229239911,
-0.4931526184,
-0.1360340863,
-0.2491194159,
0.4120308757,
-0.3168635368,
0.1458394676,
-0.2303534001,
-0.1695068181,
-0.3084940314,
-0.2869490385,
0.0622559041,
0.0428431332,
0.2375163138,
0.0092660338,
0.2903406918,
0.0147329941,
-0.2407892346,
-0.0194591582,
-0.1292815655,
0.1680931151,
-0.6054064035,
-0.326530993,
-0.1008287072,
-0.1986560225,
-0.0840508193,
-0.0753736943,
0.2982836664,
-0.0494765826,
-0.1083331779,
-0.5357649922,
-0.1331085861,
0.1364542991,
0.0310637802,
-0.2595833838,
-0.0266401693,
0.322006166,
0.35557881,
-0.2242718041,
0.0075756088,
-0.0670365989,
0.2202542424,
0.3102791607,
0.2186115384,
-0.1807079911,
-0.1428257972,
-0.250364691,
0.4967599511,
0.68026191,
-0.0872243494,
-0.0812427551,
0.0648196712,
0.1408361793,
0.0672507659,
0.0875327215,
-0.1258485168,
-0.0880836099,
0.0161325336,
0.4707181454,
-0.0853138492,
-0.0835382715,
0.2374548614,
0.2500029206,
-0.3685617745,
-0.3060152531,
-0.053465195,
-0.1619237214,
0.1360423863,
0.1580480933,
0.2378734797,
-0.0042000785,
-0.0372935086,
-0.0610609092,
-0.0035311989,
0.0607459769,
-0.2818320394,
-0.3054351211,
-0.3967857659,
-0.3837320507,
0.18322815,
-0.1095386818,
0.0491576679,
-0.1281896979,
0.1125842631,
0.0721787289,
-0.1063113809,
0.8338925838,
-0.4579741955,
0.1676817834,
0.1676788926,
-0.2081489861,
-0.1239824146,
-0.0899592191,
-0.2645116448,
0.2085195333,
0.4078374505,
0.4869436622,
-0.1510301977,
0.2392733395,
0.1157795787,
0.0050844587,
-0.1674869955,
0.0384287201,
0.0659287646,
-0.3831531107,
-0.3229147792,
-0.1569052786,
-0.145907402,
-0.0177645199,
-0.1131138504,
-0.2006789446,
0.2002693266,
0.1568582952,
0.1397455335,
0.2304869592,
0.1816813648,
0.1829199493,
0.1565912664,
0.0130523555,
-0.0504613481,
0.1862032562,
0.336045295,
0.1446378082,
-0.0975742936,
0.0652162954,
-0.3386716545,
0.0743774548,
0.268287003,
0.2098904401,
0.1782053113,
0.0416059606,
-0.1456058472,
-0.1458852887,
-0.2388179004,
0.2699168622,
-0.026454797,
-0.1145349741,
0.0346519798,
0.1618281156,
0.2271597981,
-0.350494206,
0.4041937292,
-0.2358004004,
-0.1218326911,
0.3312465549,
0.098778449,
1.04195714,
-0.2682438493,
-0.2027228326,
-0.2757570744,
-0.3043025136,
0.657695353,
-0.2995235324,
0.1170619726,
-0.5067408085,
0.00800642,
0.1176197454,
-0.0710269287,
-0.1293037683,
0.0975951105,
-0.4630856216,
-0.2039555609,
0.1638486087,
0.344833672,
-0.1945908964,
0.442299664,
0.3032671511,
-0.1749412417,
0.0702667385,
0.1349466592,
-0.1902210563,
-0.2142542899,
0.0570897795,
0.0328282863,
0.1692999452,
-0.2354005873,
-0.3341636062,
0.1725389659,
0.0772554874,
0.595543921,
-0.2048781812,
0.0061334372,
-0.2287254632,
0.0173468776,
0.206150949,
0.2898862064,
-0.2459367663,
0.1247585267,
0.1347129345,
0.3820047081,
-0.1349060684,
-0.1198943332,
-0.0821634531,
0.0021309853,
-0.3452019393,
-0.3407836258,
0.1976809502,
-0.1150376499,
-0.3329246044,
0.0917971432,
-0.2368960828,
-0.0227236804,
0.0898965746,
0.2984760106,
-0.4994902015,
-0.2512393296,
0.05761737,
-0.1796244532,
-0.2918622494,
0.3302536309,
0.0361308418,
-0.5448493361,
-0.0778444186,
0.3736337423,
0.3602987528,
0.3496987522,
0.1237990856,
-0.0500633717,
-0.0867904648,
-0.3264315128,
0.1801475585,
-0.4874099195,
0.0198548883,
0.1520210803,
-0.0563338175,
-0.1188793853,
0.0048146099,
0.0186499916,
-0.234249562,
0.600155592,
-0.2011201829,
-0.2790077329,
-0.0927292258,
-0.0859945863,
0.0145780314,
0.2944094837,
0.3819893897,
-0.076935418,
-0.2734098434,
0.3077004254,
-0.2819327116,
0.3402882814,
-0.1201229542,
0.1973597109,
-0.1631113738,
-0.0544113219,
-0.0936547667,
0.0871963277,
0.1969875693,
0.264708817,
-0.0703184381,
-0.2248142958,
-0.0555465445,
0.1566105485,
0.0011506695,
0.1334123015,
-0.2993570864,
-0.0896675736,
0.0987132788,
-0.1832575798,
0.1441943347,
-0.1658316106,
0.1817141473,
-0.0507689156,
-0.286711812,
-0.0096595325,
0.1697320044,
-0.1586881578,
-0.1601482183,
0.3902058303,
0.1244473308,
0.2572152615,
-0.1888336837,
-0.1511443406,
-0.4423004389,
0.0501113273,
0.0833746046,
-0.06577079,
0.1648106873,
0.1309524029,
-0.3424821496,
0.0470097438,
0.2161828727,
0.3447586298,
-0.3605046272,
-0.2973207831,
-0.3167570233,
0.134986639,
-0.2402788848,
-0.4959184229,
0.365334928,
0.0229369737,
-0.1422838718,
0.1555385739,
0.3599426746,
-0.3576848209,
-0.0080192275,
-0.1060036793,
0.6999679804,
-0.3942878246,
0.2264450788,
0.1856581271,
-0.2435828447,
-0.2395695895,
0.1625288129,
0.1568737626,
0.1077074856,
0.1365294009,
0.1403701305,
0.1975159049,
-0.0283694901,
-0.0221693031,
0.4178746641,
-0.1817906499,
0.7519586682,
0.4424466789,
-0.030778233,
0.2606295943,
0.4041942954,
-0.1422684193,
-0.1419090778,
-0.2161730975,
-0.3795582354,
0.3629842103,
-0.2900506854,
-0.0145790689,
-0.0925829038,
-0.1002373099,
0.1920467615,
0.3459125757,
-0.0118032452,
0.0370019972,
0.4131364226,
0.1536712646,
-0.2489720881,
-0.5125794411,
0.3363229036,
-0.3303614855,
0.2923042476,
-0.4009966254,
0.0602479428,
0.0862206817,
-0.1040331349,
0.0416761823,
0.1990957558,
0.2763176262,
0.0948040187,
-0.0074721016,
0.1801669598,
-0.2811059654,
-0.054488495,
0.0867216885,
0.0831743777,
-0.1420891881,
-0.3626761436,
0.1802749336,
0.0474523082,
0.060022261,
-0.1908128858,
0.5934584141,
0.0997418761,
0.0297359787,
0.2293611765,
0.1729858816,
-0.1588789672,
0.1403054446,
0.166198656,
-0.206240207,
-0.3719601631,
0.4716163278,
0.1392489821,
0.2531030476,
-0.0488621183,
0.1116376221,
0.0022116844,
0.5143994093,
0.014409571,
-0.3647159636,
-0.1657690108,
-0.064936392,
-0.1773391664,
0.1294475347,
-0.2314023674,
0.2702770829,
0.2181691378,
0.1608424187,
-0.044710584,
0.0602464899,
0.080250971,
-0.1226297244,
-0.2659404576,
0.0275377687,
-0.3932188749,
0.1051076725,
-0.049394723,
-0.1722894609,
0.014040105,
-0.108419165,
0.6255810261,
-0.0089615062,
-0.042982161,
-0.1360012442,
-0.093181856,
-0.0505894795,
0.0410639495,
0.573168993,
0.3952971995,
0.1402293146,
-0.1946158409,
-0.1487459838,
0.0740423203,
0.0988871753,
-0.1760594845,
0.3726879656,
0.246954903,
-0.1355237514,
0.020073317,
-0.2488481104,
-0.0950447023,
0.0444403663,
0.016676344,
-0.1245671883,
-0.4153571725,
-0.1074525788,
-0.0459630825,
0.1718655229,
-0.2151596993,
0.153541714,
0.0929633752,
0.1379565001,
-0.0088238865,
-0.3202519417,
0.4107369184,
-0.1049894691,
-0.174143672,
-0.1306239218,
0.5648162961,
-0.5690387487,
0.3015935421,
-0.5685533285,
-0.0466232896,
0.3892924786,
-0.2156593949,
-0.3872374296,
0.2250095308,
-0.2500567138,
-0.0817380622,
-0.1571166366,
-0.0951607227,
0.189546749,
-0.2068074495,
0.1089522466,
-0.123203516
] |
https://github.com/huggingface/datasets/issues/2099 | load_from_disk takes a long time to load local dataset | Hi !
Can you share more information about the features of your dataset ? You can get them by printing `my_dataset.features`
Can you also share the code of your `map` function ? | I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :) | 32 | load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :)
Hi !
Can you share more information about the features of your dataset ? You can get them by printing `my_dataset.features`
Can you also share the code of your `map` function ? | [
-0.3500205874,
-0.1982152462,
-0.0544512905,
0.2700724304,
0.3246715069,
0.0501475781,
0.4278250933,
0.1963980943,
0.7752039433,
-0.0128920302,
0.1478896737,
0.5318045616,
0.0868463516,
-0.082643114,
0.1153063327,
0.0942701995,
0.3582592607,
0.2302628458,
0.4533500075,
-0.1887631118,
-0.2704197764,
-0.0162076987,
-0.1363715976,
0.0524607822,
-0.1678338647,
-0.1337088794,
-0.0235136077,
0.0352619551,
-0.1384558678,
-0.2863384485,
0.0162088722,
-0.0567520894,
0.276602298,
0.2574593723,
-0.0001268705,
-0.2512074411,
0.0312587768,
0.1771280169,
-0.2025002241,
0.2449701428,
0.3863898516,
-0.4697509706,
0.2121185511,
-0.3534869552,
0.1457035244,
-0.309114337,
-0.2663036883,
-0.2810006738,
-0.04313365,
-0.152245149,
0.0458116457,
0.4439666867,
-0.2780011296,
0.0748593882,
-0.1293980479,
0.3457423151,
-0.1573247612,
0.0449592806,
0.54007411,
-0.0728075206,
-0.1051318347,
-0.0802588761,
-0.1870914847,
-0.1056298539,
0.3797870874,
0.0764938146,
0.2742574811,
0.1065707356,
0.0830787718,
0.1269639432,
0.5899765491,
-0.0041461783,
0.0585615858,
-0.2526354194,
-0.1250293851,
-0.2961906493,
0.3886520863,
0.0054054894,
-0.2881908417,
0.2031352967,
-0.0714381486,
-0.0731001794,
0.00885088,
0.2437552512,
-0.1803186983,
-0.0990388021,
0.0195838735,
0.1328807026,
0.3168940246,
-0.1614456475,
0.0230981708,
-0.0082516,
0.1234516874,
0.3986281455,
-0.4098908007,
-0.2113997042,
0.0400190949,
0.0835751146,
-0.1435205042,
0.1120387018,
0.151465103,
0.2489466518,
-0.1630490273,
0.0016304869,
0.2422058284,
0.3972103596,
-0.1217970252,
0.1301052868,
0.0731808245,
-0.3419053257,
-0.0699736178,
-0.0560455061,
-0.2259918153,
-0.0106498748,
0.5112825632,
-0.4784032106,
-0.2339438349,
-0.1448340416,
-0.0333806127,
0.2067791522,
0.4317519963,
-0.0641699284,
0.2521469593,
0.241056174,
0.0641922429,
0.5306973457,
-0.1165346205,
0.0117172692,
-0.1896087527,
-0.1619034708,
-0.0651431829,
-0.3071613014,
-0.1684478521,
0.1598521769,
0.0181165114,
0.2619094253,
-0.1174450815,
0.1726417243,
-0.2480963469,
0.0674419254,
-0.1035648882,
-0.1866312027,
0.2897596061,
0.1619748175,
-0.0831959695,
0.2204557359,
0.165851891,
-0.2604823411,
-0.4331323206,
0.3641847968,
-0.1685277224,
-0.3845950067,
-0.4457713962,
0.0039890353,
-0.2279205918,
-0.061085362,
-0.3854813874,
-0.1208797991,
0.1200978532,
0.0442286581,
-0.0343471058,
-0.1524474621,
-0.1444914341,
-0.0993629172,
-0.0391863137,
0.1216115654,
-0.370428741,
0.2121680081,
-0.2364284694,
0.2569228411,
0.3447539508,
0.6626864672,
-0.2571011782,
0.3425364494,
-0.2578446269,
0.3158113956,
0.5487066507,
-0.0578072704,
-0.3862133622,
0.7333584428,
-0.1003702879,
-0.2248924077,
0.0265344176,
0.549034059,
0.2924334705,
-0.085206382,
0.100395456,
0.6558294892,
0.1512115449,
0.2105397135,
-0.3910954297,
-0.0279241465,
0.0919299498,
0.4662360847,
-0.4127826095,
0.1588238776,
0.1538116038,
-0.0441690236,
0.1545040458,
0.0907558501,
-0.0659688786,
0.243223384,
0.2831679583,
-0.0318489484,
0.0112173893,
0.2562738359,
-0.1681345105,
0.1245541126,
0.4642594159,
-0.2245751917,
0.0415686741,
-0.1681673229,
-0.3445482552,
0.3147709668,
-0.1054792106,
0.6033319235,
-0.1821071804,
0.0020353217,
0.080463782,
-0.1432272196,
-0.1495121717,
-0.1174869686,
-0.253177613,
-0.1158319563,
-0.0902422965,
0.05184187,
0.1564159244,
-0.0151103213,
-0.3498861194,
-0.0625959188,
0.0574978255,
0.0494379029,
-0.2109957039,
0.2840452492,
0.1521351635,
0.0479032062,
-0.049651932,
0.1704574525,
0.1336132139,
0.0028489158,
0.3439743221,
-0.0021684412,
0.208194077,
-0.289003998,
-0.1218547821,
0.4259040654,
-0.1942902505,
0.2047605813,
-0.2710195184,
-0.0709528551,
0.4258697033,
0.1262154132,
0.1576504111,
-0.0164164007,
0.1865304112,
0.3095093966,
0.2882080674,
0.2737435699,
-0.2397419363,
0.261765182,
0.2991084456,
-0.3452144265,
-0.0612504855,
0.1969375163,
0.0367679074,
-0.3007032275,
0.0062169954,
-0.1039671823,
0.310056299,
0.1159396917,
0.0958434418,
-0.3176050186,
-0.0347825736,
-0.1446263641,
0.0870054811,
-0.1001756936,
-0.0837554187,
0.1299338788,
-0.0537793264,
-0.1364708543,
-0.32597363,
0.0318151563,
0.1118115559,
0.3960194886,
-0.3259370029,
0.1538777649,
-0.0907515809,
0.0990276933,
0.0559913777,
-0.2581122518,
0.1266685128,
-0.2027237713,
-0.2237584442,
0.2324293256,
-0.0261603855,
-0.1411309242,
-0.0124722719,
0.3762325048,
0.1917369515,
-0.4314823151,
-0.3557513356,
-0.2873747647,
-0.1534429938,
-0.1426838636,
0.440737009,
0.1697456539,
0.2259087712,
-0.0629056692,
-0.1602993757,
-0.2504193783,
-0.1463385224,
-0.0980742872,
0.0538782366,
0.1577216387,
-0.1832666546,
0.338157922,
-0.5823001862,
-0.0329393521,
0.261731118,
-0.3245379329,
-0.2410389483,
0.378264755,
-0.1310497522,
-0.3202221394,
0.0137206763,
0.1135147884,
-0.133135438,
-0.2363514453,
0.2219310701,
0.0367421284,
0.1437613964,
-0.2337397933,
0.1127447337,
0.0259842724,
0.4734177887,
-0.2453038096,
-0.1945903003,
-0.27755934,
0.6613593698,
0.0028795525,
-0.2596797049,
-0.0730995238,
0.1196760461,
-0.0998843163,
-0.0242237207,
-0.5121883154,
0.2339361161,
-0.4204595089,
0.4694088995,
-0.2292626053,
0.0604312643,
0.130138278,
-0.2692604661,
0.0377084389,
0.2235515416,
-0.1082632989,
0.2056973875,
0.1367426813,
0.0834920034,
0.0862882584,
0.667697072,
-0.2378457189,
0.3274147213,
-0.2057071775,
-0.1607969552,
0.3523725569,
-0.0135517931,
0.1972755194,
-0.3578556478,
-0.1765050292,
-0.2438224256,
0.1217146814,
-0.3225131035,
0.1974401772,
-0.0390842222,
-0.3568354249,
0.0234869644,
-0.0529184379,
-0.055763945,
-0.0565586016,
0.2541280687,
-0.0024451497,
0.0846789777,
-0.1358801126,
0.2029369175,
-0.3828943372,
-0.2328352183,
-0.0731362104,
0.0034163892,
0.173778519,
-0.2496217787,
-0.6529749036,
-0.0044414736,
-0.4316214621,
0.1233479604,
-0.1962355375,
0.4478283823,
0.0173853114,
-0.2779057622,
0.4295973182,
0.0079916306,
0.6057001948,
0.2846139669,
0.1263315082,
0.1792878509,
-0.1738653481,
-0.6647122502,
0.0659499466,
0.2427068353,
-0.0304169655,
0.3263390958,
0.7139407992,
-0.043258138,
-0.1389230341,
-0.1624470204,
0.3244580328,
-0.2122951746,
-0.4873184562,
-0.1144835204,
-0.3401403725,
-0.0956710503,
0.1660429388,
0.1704062819,
0.4786662757,
0.421317488,
-0.0492858402,
-0.2140695155,
-0.1068127677,
0.0743902475,
0.0897787064,
0.3559319973,
-0.0836098492,
0.432526052,
-0.3090105951,
0.1667522192,
-0.1315865517,
0.4047931731,
-0.120172292,
-0.0328728929,
0.3473881781,
-0.2058638781,
0.0278258063,
0.3513397872,
0.2020437419,
0.041976314,
-0.116642341,
0.1926026046,
-0.2225781828,
-0.0224437974,
-0.1935525835,
-0.0132622905,
-0.0181616377,
-0.1326582581,
0.2976234257,
0.0367988497,
-0.0336686969,
0.2161803097,
-0.1391735673,
0.0804782808,
0.71276474,
0.2099797577,
1.1476427317,
-0.4765786529,
-0.0367587097,
0.1055497006,
0.1875540465,
-0.0967546776,
-0.1556255519,
-0.3527754843,
-0.3770474195,
0.1047222018,
0.1252690554,
-0.2228828967,
-0.1351713985,
0.4446428418,
0.1457493454,
-0.1273878664,
-0.2085412145,
0.3245826364,
-0.3329763114,
0.4716743827,
0.0304987151,
-0.4644050598,
-0.5360879302,
-0.0256496444,
0.0021092147,
-0.0625469983,
0.0134711489,
0.1504440904,
0.0280220211,
-0.1613015532,
-0.0555920973,
-0.1683795899,
0.1311300993,
0.159394294,
0.2132590413,
-0.2429706156,
-0.0600925758,
0.4783609509,
0.3922136128,
-0.0488342717,
-0.0285533145,
0.1756230593,
0.1071216986,
0.1411294639,
0.0880619437,
-0.2471680641,
0.0647244081,
-0.1228908822,
0.0296012014,
-0.1266629249,
-0.1492753476,
-0.47150442,
-0.1104632542,
0.1728012562,
0.3435622454,
-0.1678788662,
-0.2620112002,
-0.2804314494,
0.1687629223,
-0.0469868667,
0.010830719,
0.340266943,
0.1919056922,
0.2474281639,
0.0004386284,
-0.247066021,
0.0262289681,
0.3180593848,
0.017531354,
-0.2553489804,
0.2725581825,
0.0369648263,
-0.2449594289,
-0.2093436718,
0.3605389893,
0.2967860699,
-0.4077203274,
0.0861009732,
-0.0421447344,
0.000521943,
0.0812187493,
0.0793013573,
0.194492951,
0.0004834682,
-0.1094096452,
-0.2380562425,
-0.5587602854,
-0.0532923937,
0.1740913689,
0.0981367305,
0.1941781938,
-0.4832064509,
-0.233237505,
0.0859463811,
-0.1355977654,
0.0622782707,
-0.0595660098,
0.1091917455,
0.0401640423,
-0.0415798165,
0.0677760467,
-0.1500797868,
0.0465439744,
-0.1525710821,
-0.0100936089,
-0.0801538974,
0.0720088258,
0.2114047855,
-0.0165330563,
-0.3091344535,
-0.2002136409,
-0.4752687216,
-0.1812929511,
-0.3601985574,
-0.145662412,
0.0568097532,
-0.0676270127,
-0.3485495746,
0.3751346171,
0.1153300405,
-0.03784867,
0.3707078099,
-0.0508094653,
0.4025711119,
-0.0554913394,
0.1191324294,
0.2175972164,
-0.1941403449,
-0.3011137247,
0.1783864796,
0.3650400043,
-0.1530922502,
0.3515725136,
-0.2173793316,
0.0392775312,
0.2798117399,
-0.035938222,
0.1138458848,
-0.1738658845,
-0.268750608,
0.2702845335,
0.0583913662,
-0.01302981,
-0.2406964898,
0.0054480955,
-0.0960760713,
-0.2235888988,
0.2846256196,
0.4408999681,
-0.1794551611,
-0.1238972545,
0.0501795784,
0.5539262891,
0.034131825,
-0.4526455402,
0.582926333,
-0.0826047882,
0.0033456031,
0.1782964617,
0.2141121626,
-0.0035184473,
0.5654759407,
-0.207943663,
0.0983968005,
0.3606004119,
0.5861617327,
-0.3880659342,
-0.3600415587,
0.3370533288,
0.2944204807,
-0.247783944,
-0.1721237153,
0.1744414866,
0.2293728292,
-0.1746052504,
-0.1171963811,
-0.2101527452,
0.2908438146,
-0.2680515349,
0.0505827069,
-0.3962655067,
-0.0038011,
-0.0263502151,
0.1709140539,
-0.2733541131,
0.0057039186,
-0.2857447565,
0.3377731442,
0.0437340848,
0.087425448,
0.0678673685,
0.051694192,
-0.0261321701,
-0.4181882143,
0.0240777191,
-0.3533779979,
-0.0266271979,
0.2478286624,
-0.274610281,
0.3719306886,
0.5034905672,
-0.006853126,
0.0553243496,
-0.0133311711,
-0.0688845888,
0.0226930678,
0.1387312561,
-0.1509945691,
0.2419553548,
0.1769798696,
-0.1034575701,
-0.0439833216,
-0.4177384377,
-0.1573689282,
0.4149639308,
0.0925487876,
0.304341197,
0.0882520229,
-0.3174017966,
-0.2717193365,
0.0808461607,
-0.0330293998,
-0.1450408846,
0.3015876412,
0.0379134715,
0.1623577774,
-0.056728404,
-0.0364083461,
-0.3725749552,
0.5649231672,
0.319288075,
-0.3951659203,
-0.1880396754,
-0.3771695495,
-0.664729178,
0.0834211856,
0.0558316074,
-0.0527236834,
0.4076803625,
0.198289454,
0.4616661966,
0.061022982,
-0.153791517,
0.077015467,
-0.156725958,
0.3889116347,
-0.0518679656,
0.0534203276,
0.0339898765,
0.228139177,
-0.2226357609,
-0.4697472751,
0.4194069505,
0.218015343,
-0.0897899419,
-0.1330072582,
0.0592483431,
-0.3414671719,
0.4256178737,
0.3861467838,
0.0256971586,
0.0922033563,
0.312508285,
0.0879872069,
0.3015055954,
-0.0270416029,
0.0697821677,
0.2420686185,
-0.0561337434,
-0.039376121,
-0.040463984,
0.4130629897,
-0.1733227223,
-0.0444147252,
-0.2778542638,
-0.1421042681,
-0.1402698904,
-0.0258704796,
-0.2182967663,
0.2299894989,
0.2676992714,
-0.0239842497,
0.2052933425,
0.2032263577,
-0.2472171485,
-0.0509737656,
0.2124582976,
-0.0083213821,
-0.1552095711,
0.0224939398,
0.1243811846,
0.2134561241,
0.1865946501,
-0.3039718866,
-0.1745004505,
0.2332243025,
-0.1703487784,
-0.0961514115,
0.3876351118,
-0.234621495,
0.1899158955,
-0.1716020107,
0.2427429706,
-0.0772555321,
-0.0695405304,
-0.4443511963,
-0.2711589336
] |
https://github.com/huggingface/datasets/issues/2099 | load_from_disk takes a long time to load local dataset | It is actually just the tokenized `wikipedia` dataset with `input_ids`, `attention_mask`, etc, with one extra column which is a list of integers. The `text` column is removed during tokenization.
```
def add_len_and_seq(example):
end_idx = example['input_ids'].index(SEP)
example['actual_len'] = end_idx-1
seq_len = len(example['input_ids'])
example['seq'] = [PAD_ID] + [np.uint8(example['some_integer'])]*(end_idx-1) + [PAD_ID]*(seq_len-end_idx)
return example
```
| I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :) | 51 | load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :)
It is actually just the tokenized `wikipedia` dataset with `input_ids`, `attention_mask`, etc, with one extra column which is a list of integers. The `text` column is removed during tokenization.
```
def add_len_and_seq(example):
end_idx = example['input_ids'].index(SEP)
example['actual_len'] = end_idx-1
seq_len = len(example['input_ids'])
example['seq'] = [PAD_ID] + [np.uint8(example['some_integer'])]*(end_idx-1) + [PAD_ID]*(seq_len-end_idx)
return example
```
| [
-0.2723698914,
-0.14686656,
-0.0388626084,
0.1874408722,
0.4000378847,
0.0453448445,
0.4641447663,
0.2294569314,
0.6530976295,
-0.0394128338,
0.203113094,
0.5122693181,
-0.0241838973,
-0.1652988493,
0.1699289531,
0.1053495258,
0.3435818255,
0.1828206778,
0.5284670591,
-0.2227723598,
-0.2088471949,
-0.0600207895,
-0.0657850876,
-0.0276854523,
-0.2205487937,
-0.0452075154,
-0.0313016027,
0.0227653123,
-0.1343153864,
-0.3194654286,
0.0928838626,
0.0193030015,
0.2287552059,
0.2781813145,
-0.0001281753,
-0.1722032726,
0.0046071112,
0.1535200775,
-0.1430977285,
0.2643970251,
0.4690802097,
-0.5940459967,
0.2383882105,
-0.3503430486,
0.0618374571,
-0.2827257812,
-0.3401740491,
-0.2147907317,
-0.0075521953,
-0.1195014045,
0.0158577319,
0.3616871536,
-0.3337504268,
0.1539884955,
-0.0743322447,
0.1939002723,
-0.1434203833,
0.1258121431,
0.4729343355,
-0.1927225441,
0.0029673204,
0.0226148814,
-0.2509934902,
-0.0965026319,
0.3857632279,
0.0741025209,
0.1951776743,
0.0483407192,
0.050609611,
0.1477312446,
0.5389364362,
-0.0009459953,
-0.0577602237,
-0.3210889697,
-0.0554644354,
-0.3969576061,
0.3212766647,
0.0301398188,
-0.2767955661,
0.0759611875,
-0.1086109281,
-0.0788258761,
0.0298107266,
0.218817547,
-0.2157345116,
0.0422303826,
0.0866945982,
0.1933324933,
0.3188703656,
-0.1083807498,
-0.0987512618,
-0.0084895361,
0.1952890754,
0.4358852506,
-0.328374207,
-0.2487679571,
0.0326809958,
-0.0019625034,
-0.144423902,
0.1964232624,
0.0889204293,
0.2106187195,
-0.1054590791,
0.0051104883,
0.2394284308,
0.4608976841,
-0.2296862602,
0.1211879849,
0.077840358,
-0.3174988627,
-0.178221494,
-0.0916156769,
-0.2083227634,
0.0359108374,
0.4978763163,
-0.505192399,
-0.2428245693,
-0.1187326014,
-0.0430586189,
0.236756146,
0.3178039193,
0.0038014874,
0.240584895,
0.2986121774,
0.0302922763,
0.5268797874,
-0.0790835246,
0.1430350691,
-0.2173655033,
-0.0234918781,
-0.0706593618,
-0.2602781057,
-0.1074769422,
0.1086397693,
-0.0289185047,
0.3335446715,
-0.073985219,
0.1510809511,
-0.1349658519,
0.0091546103,
-0.0671709999,
-0.1628100425,
0.2305505276,
0.2077687383,
-0.1655422449,
0.2659241259,
0.2583848834,
-0.33319965,
-0.4613669515,
0.2853640318,
-0.1705410182,
-0.4137839079,
-0.3964416385,
-0.0067316405,
-0.2626552582,
-0.0938732773,
-0.448540628,
-0.0402418226,
0.1792418063,
0.0432294533,
-0.0430105329,
-0.2162176967,
-0.1451559067,
-0.1301582009,
0.0579307601,
0.0728647858,
-0.2945597768,
0.1127771437,
-0.2678591311,
0.3557195365,
0.3770867884,
0.7180870771,
-0.2919611931,
0.4202108383,
-0.2172203064,
0.2997385859,
0.5369105935,
-0.1884545386,
-0.4042334259,
0.6187267303,
-0.1343871504,
0.0445349962,
0.03612547,
0.4975114167,
0.2584010959,
-0.0394763276,
0.1837878972,
0.6960245371,
0.1099873558,
0.2276616991,
-0.4064321816,
-0.0267876051,
0.2199179232,
0.3522606492,
-0.3312680125,
0.15143767,
0.0653632283,
0.0905346572,
0.2092307955,
0.0616228096,
-0.1017939597,
0.2813987136,
0.258294493,
0.1643479317,
0.043433141,
0.2720757425,
-0.1440768391,
0.2002817392,
0.5107884407,
-0.0763211697,
-0.0500868857,
-0.2480378151,
-0.3892805278,
0.2931810617,
-0.1443338096,
0.3294909298,
-0.1960772872,
0.0404953212,
0.1306801736,
0.0196184218,
-0.1077527925,
-0.2730447352,
-0.2539151907,
-0.0318215415,
-0.0143756084,
0.0497078076,
0.1867200434,
-0.004795488,
-0.4482594132,
0.1168491691,
0.0564299077,
0.0313601643,
-0.2220863849,
0.2688147426,
0.2077787519,
0.0680240989,
-0.0495329462,
0.205876261,
0.1093485728,
0.0337099656,
0.2628690302,
0.0712590963,
0.1975318193,
-0.2217783928,
-0.191429615,
0.5089944005,
-0.0855102167,
0.248140946,
-0.2729075551,
-0.0396678895,
0.4773669243,
0.124277696,
0.0985499769,
-0.0250132754,
0.2052786201,
0.2778954804,
0.2757316828,
0.1117199957,
-0.1666746289,
0.2718944252,
0.2947526574,
-0.2841127515,
-0.030435361,
0.2060740292,
0.0274873655,
-0.3105520606,
-0.0116950851,
-0.1333323717,
0.251781404,
0.1176274419,
0.1077015251,
-0.3004761636,
-0.0617363155,
-0.0989976153,
0.1774069369,
-0.0865197405,
-0.1013621166,
0.1303025633,
0.0194880739,
-0.082652241,
-0.3771760464,
-0.0525451675,
0.0686624572,
0.4366831779,
-0.220561415,
0.2747827768,
-0.057182055,
0.1997995526,
-0.016438935,
-0.301741153,
0.0251296945,
-0.3157309592,
-0.2038693577,
0.2908665538,
-0.0447208323,
-0.1348050386,
-0.068858929,
0.255041182,
0.2128173113,
-0.4541466534,
-0.2794966102,
-0.3061750233,
-0.1113634259,
-0.1972857416,
0.3697756529,
0.0489766188,
0.3008130789,
-0.0138005018,
-0.1955285668,
-0.2244672179,
-0.3411602974,
-0.1097942293,
-0.047599975,
0.2139700949,
-0.1861348152,
0.3008188307,
-0.5481994152,
-0.0654695481,
0.3417084217,
-0.2881563008,
-0.1716949642,
0.3768147826,
-0.0064207613,
-0.1605561078,
0.1009440795,
0.1047664136,
-0.1269278526,
-0.1898217648,
0.2512325644,
0.0706500411,
0.1390313208,
-0.2185506821,
0.0698024333,
0.0218850635,
0.4788024724,
-0.2052251697,
-0.1983878613,
-0.1957687438,
0.5628789663,
0.044967141,
-0.1830823421,
-0.1186388582,
0.0367396548,
-0.0935704634,
0.0155281723,
-0.5713313222,
0.1604187936,
-0.3806985021,
0.43174541,
-0.1833307296,
0.0472297519,
0.1662710905,
-0.2633866072,
0.0482754186,
0.1891606599,
0.0205155462,
0.1094459593,
0.0715718344,
0.0302697867,
-0.0074167158,
0.7050041556,
-0.1910781413,
0.500467062,
-0.2420649529,
-0.0491506867,
0.3664193153,
-0.1120703444,
0.2564033568,
-0.3437137902,
-0.235725075,
-0.2404978871,
0.0993407741,
-0.3650359511,
0.1803105474,
-0.010527242,
-0.3311647475,
0.0819811672,
-0.0493064001,
-0.0190131962,
-0.1505442262,
0.3478381038,
-0.1515962332,
0.036843881,
-0.1103064641,
0.261559844,
-0.4225658178,
-0.2423099279,
-0.1179579943,
0.0207945835,
0.1237538531,
-0.2384310663,
-0.7123931646,
-0.1228409261,
-0.5423578024,
0.1210410595,
-0.1256300509,
0.4711705744,
0.081295386,
-0.3076661229,
0.4302411973,
-0.0289577134,
0.6507670283,
0.1201316565,
0.0962336883,
0.1961345375,
-0.2613888681,
-0.7808230519,
0.0258689821,
0.1718289703,
0.0333672911,
0.3404670954,
0.7582914829,
-0.0794740915,
-0.1321244389,
-0.1942912191,
0.4059049487,
-0.2330972552,
-0.2866649926,
-0.2519878149,
-0.3326836824,
-0.2424203306,
0.2168319374,
0.1198680848,
0.5127632618,
0.3655091822,
-0.0541320108,
-0.2658087611,
-0.0786051303,
0.1119233221,
0.1096712649,
0.3797813952,
-0.0863724649,
0.3377005458,
-0.2857827544,
0.0629306734,
-0.1840696335,
0.4262424707,
-0.185189873,
-0.0862930864,
0.2065570503,
-0.0905986503,
0.0726820529,
0.4006851614,
0.2137319595,
0.0808733553,
-0.1739758253,
0.2801623344,
-0.3501024842,
0.0860040188,
-0.0204654783,
0.0299959332,
-0.0342000984,
-0.2859368324,
0.3274009824,
0.0167083219,
-0.0674649701,
0.2595989406,
-0.0951786786,
0.0070136636,
0.7409734726,
0.2020385414,
1.2241338491,
-0.4361757934,
0.1046030223,
0.1566033363,
0.2955700755,
0.0488452278,
-0.2537306547,
-0.2329003513,
-0.3573129773,
0.1385999471,
0.1361424029,
-0.1821781844,
-0.1807620525,
0.3662807643,
0.1105943695,
-0.095326215,
-0.3047893643,
0.329887867,
-0.3755410314,
0.4509915113,
-0.038975969,
-0.3950834274,
-0.5488092303,
-0.0458751991,
0.0927854627,
0.0167337935,
-0.0419051349,
0.2078906894,
-0.0197339281,
-0.2473611236,
-0.1560856402,
-0.1223901063,
0.188269347,
0.3284363151,
0.077966772,
-0.3352364898,
-0.2027189136,
0.4568599761,
0.3226766884,
0.0175198819,
-0.0467572063,
0.2161892951,
0.035755787,
0.0785137415,
0.1622999758,
-0.2645241618,
0.1143189445,
-0.0748126581,
0.0375726819,
-0.1490095258,
-0.2162975222,
-0.5926702023,
-0.0849841312,
0.1830940247,
0.3696852028,
-0.2103633583,
-0.24647291,
-0.1820780933,
0.1899177581,
-0.15196082,
-0.0263233669,
0.2444150448,
0.1326884627,
0.2322716117,
-0.0355083533,
-0.2975769639,
0.0561398678,
0.3613013625,
0.1219028383,
-0.1763509363,
0.3943611383,
-0.0458824635,
-0.2334230989,
-0.2297954559,
0.2831094861,
0.3257548213,
-0.367857337,
0.2020451427,
-0.0597111359,
-0.0261542797,
0.0612433031,
0.1117012426,
0.1226689667,
-0.0526755005,
-0.2048232555,
-0.2920001745,
-0.5180849433,
-0.0142698996,
0.2212663144,
0.1805761456,
0.1349378973,
-0.3628832698,
-0.2561187446,
0.1121539921,
-0.1135135293,
0.0301675126,
-0.1033238247,
0.1016064733,
0.0881103873,
-0.0794893205,
0.1899868548,
-0.1210957915,
0.0247978345,
-0.1655273438,
0.0063723698,
-0.062674664,
-0.0018176213,
0.2346960008,
-0.0313989222,
-0.2769498825,
-0.1427205503,
-0.3840757012,
-0.1196036041,
-0.4405584037,
-0.0466872379,
0.0308997855,
-0.0530009791,
-0.4075682759,
0.3622808456,
0.1974092424,
-0.027324006,
0.2847129405,
-0.1692371666,
0.3989355266,
0.020552814,
0.0156394839,
0.2750969529,
-0.1561067104,
-0.3168007731,
0.1873917431,
0.4050491154,
-0.1289350092,
0.3607321084,
-0.155207485,
0.0698475465,
0.2845457494,
0.0124520361,
0.212054193,
-0.17058599,
-0.3054559827,
0.3490543962,
0.0346521512,
-0.0181309097,
-0.3050709367,
-0.0451133549,
-0.1514682174,
-0.2121547163,
0.3869556189,
0.4360877872,
-0.103621982,
-0.20266743,
0.0185805187,
0.5638006926,
0.074423492,
-0.3574275374,
0.5144125223,
-0.1318359673,
-0.0445706062,
0.1361659616,
0.1590786874,
0.0855827481,
0.5236284733,
-0.1440823674,
0.1383862197,
0.2728664577,
0.4584127665,
-0.413836062,
-0.3418086171,
0.3759524822,
0.3029161692,
-0.172351107,
-0.0599530376,
0.105004251,
0.2829163373,
-0.2486314178,
-0.0871199518,
-0.2164555788,
0.408029139,
-0.2787196636,
-0.0049712136,
-0.2101798952,
-0.0080127493,
0.009144038,
0.1979601979,
-0.222566992,
-0.0109473653,
-0.3567090333,
0.2962246835,
0.0381655805,
0.0487786233,
0.1087220311,
0.042662207,
0.1082417667,
-0.4354824722,
-0.0357793719,
-0.2812234759,
-0.0054104514,
0.2218612283,
-0.2468224913,
0.4374469817,
0.4777420163,
-0.0077331439,
0.0011958182,
-0.0068764891,
-0.0165291838,
-0.0608336516,
0.1732790768,
-0.1783578843,
0.2844759524,
0.1485007703,
-0.1241735816,
-0.0721785128,
-0.4527176619,
-0.1113951877,
0.3679224253,
0.1252461374,
0.3018086553,
0.1230109408,
-0.2424146384,
-0.3305612206,
0.1317330003,
-0.046197772,
-0.1522234082,
0.150156647,
0.0900423452,
0.173549518,
-0.043810457,
-0.0419203788,
-0.2884944081,
0.545147121,
0.2815954685,
-0.3723652363,
-0.2056156695,
-0.3782558739,
-0.6515104771,
0.0716658011,
-0.1074575633,
-0.1714022756,
0.3680439889,
0.2453301251,
0.4008661211,
0.0430516228,
-0.1415572762,
0.0269895755,
-0.182528317,
0.307392627,
-0.0530226231,
0.113760069,
0.0189640839,
0.1804413497,
-0.1774558425,
-0.513727963,
0.3781632185,
0.2077540159,
-0.1100396961,
-0.0539736077,
0.0188241079,
-0.4160957336,
0.3677493036,
0.4663526416,
0.0675618127,
0.1766432822,
0.2604013681,
0.0236680582,
0.2030626237,
-0.0768170059,
-0.0392010882,
0.2884307206,
-0.116591379,
0.0287645459,
-0.0811059847,
0.3949272931,
-0.1959098279,
0.0813039169,
-0.1703322232,
-0.2662624121,
-0.136089623,
-0.0353828445,
-0.1896096617,
0.3324861825,
0.164911896,
0.1120356172,
0.2056089044,
0.2885060608,
-0.2644025385,
-0.1547446251,
0.3250330389,
-0.0914280564,
-0.1928683817,
-0.0104171298,
0.1300895363,
0.192590788,
0.1720913202,
-0.3801364899,
-0.1749808192,
0.2354860157,
-0.0609316304,
-0.226881206,
0.3500665724,
-0.212220028,
0.072969161,
-0.1263053566,
0.2208825648,
-0.141144827,
-0.0637371987,
-0.3829966486,
-0.2339340895
] |
https://github.com/huggingface/datasets/issues/2099 | load_from_disk takes a long time to load local dataset | Is `PAD_ID` a python integer ? You need all the integers in `example['seq']` to have the same type.
Does this work if you remove the `np.uint8` and use python integers instead ? | I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :) | 32 | load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :)
Is `PAD_ID` a python integer ? You need all the integers in `example['seq']` to have the same type.
Does this work if you remove the `np.uint8` and use python integers instead ? | [
-0.2943403125,
-0.224879995,
-0.057116054,
0.303353548,
0.3156483173,
0.0497012436,
0.443577975,
0.2428756952,
0.6799731851,
-0.0187010765,
0.1529652774,
0.5113555193,
0.088532269,
-0.1085036471,
0.1338360906,
0.0986101553,
0.3429255188,
0.2060773969,
0.4759648144,
-0.165824756,
-0.2517737746,
0.0001299586,
-0.1306846589,
0.0234820154,
-0.1588273942,
-0.0829921886,
-0.0751802549,
0.0350682698,
-0.1523592472,
-0.315541029,
0.0216220617,
-0.0448316298,
0.2884915471,
0.205153212,
-0.0001264279,
-0.2548462152,
0.021628188,
0.1173051447,
-0.247581929,
0.2874676585,
0.426640749,
-0.452316463,
0.2212565392,
-0.3689643145,
0.137370944,
-0.3382207453,
-0.3590539694,
-0.2098050863,
-0.0186806992,
-0.141103223,
0.0444991477,
0.435243398,
-0.2819191515,
0.034578044,
-0.0528536811,
0.2976840436,
-0.1637857705,
0.0466382168,
0.598564744,
-0.0725577921,
-0.1019453406,
-0.0817544609,
-0.2182448804,
-0.101844646,
0.3846517205,
0.0748105943,
0.2570775151,
0.1627735794,
0.0662129968,
0.1427184045,
0.5887852907,
-0.0352814421,
-0.0009135753,
-0.244748503,
-0.0952467173,
-0.2890889645,
0.3673814833,
0.0128189251,
-0.2871282995,
0.1850771308,
-0.0602004677,
-0.07239151,
-0.0501538143,
0.2330681831,
-0.1294524372,
-0.0757525116,
0.0434350744,
0.1163352132,
0.3337877393,
-0.1512930691,
0.0617025755,
0.0351881534,
0.116657488,
0.3841656744,
-0.4037294984,
-0.2078676224,
-0.0331366584,
0.0053695589,
-0.1448203921,
0.1278426349,
0.2320952266,
0.2485831976,
-0.0449298322,
0.0197508801,
0.2399190217,
0.3678699136,
-0.1198353618,
0.1469495296,
0.0768402591,
-0.308555752,
-0.0288760066,
-0.0406091884,
-0.2590739727,
0.0038075037,
0.4785633683,
-0.4682096541,
-0.2703818977,
-0.1632349789,
-0.0524666533,
0.2429699898,
0.3954814672,
-0.0433484539,
0.2423650473,
0.2756171525,
0.0462450534,
0.4945331216,
-0.0492983423,
0.0374568813,
-0.15819107,
-0.1149217933,
-0.0604094863,
-0.2971880436,
-0.171287477,
0.1489872336,
0.0418653339,
0.3508810401,
-0.1205054596,
0.1890946627,
-0.2329146713,
0.0578362644,
-0.0910507366,
-0.1327034533,
0.2696326375,
0.1806907505,
-0.0991705805,
0.2365835309,
0.1698700488,
-0.2017389834,
-0.4431206882,
0.3833533823,
-0.195832476,
-0.3932253718,
-0.4349839389,
0.0218761452,
-0.211977303,
-0.0792887807,
-0.4514290094,
-0.1795580536,
0.1182681322,
0.0589967966,
-0.0197514072,
-0.1308740824,
-0.0821726397,
-0.0923370421,
-0.047402963,
0.0929244086,
-0.3962217569,
0.1668627262,
-0.2080185264,
0.2890931666,
0.347707063,
0.6229008436,
-0.2996452451,
0.3621341586,
-0.2523356378,
0.2976993918,
0.5223910213,
-0.1004189923,
-0.3643663824,
0.7189660668,
-0.0472505242,
-0.1865952909,
0.1076065004,
0.5277522802,
0.3615674078,
-0.0806174576,
0.1315566003,
0.6244171262,
0.1654661298,
0.2055849135,
-0.4061892629,
-0.0612438023,
0.0919046551,
0.4283312559,
-0.3837226629,
0.1274899542,
0.1401904821,
-0.0290596411,
0.1692348719,
0.0445322245,
-0.0756354779,
0.2814269662,
0.2664146721,
-0.0544781275,
0.0677254274,
0.2265753299,
-0.1943374276,
0.1511390656,
0.3955879509,
-0.1846634001,
0.0356456116,
-0.2098933756,
-0.3576275408,
0.3173824549,
-0.0696601868,
0.5633522868,
-0.1680371314,
-0.0161697492,
0.1312579513,
-0.1643915474,
-0.1563709527,
-0.1088242829,
-0.2634976506,
-0.0942780823,
-0.0907812417,
0.0605386794,
0.1737848371,
-0.0462962463,
-0.3290223479,
-0.0069326125,
0.0490828231,
0.0580225363,
-0.1874863952,
0.3025078177,
0.2110291421,
-0.0094982944,
-0.0084418645,
0.2171439528,
0.1239149794,
0.0457700342,
0.2926034927,
0.0471667945,
0.1885787845,
-0.2624528408,
-0.1158249974,
0.482608676,
-0.2119688541,
0.2636256516,
-0.2107874751,
-0.0570615195,
0.4025436044,
0.1707692146,
0.1318586916,
-0.0161360577,
0.180772841,
0.3143534958,
0.2750587463,
0.2520088255,
-0.229491204,
0.2636444271,
0.2475576103,
-0.3291887641,
-0.0721800551,
0.2215183377,
0.0327367783,
-0.2925545275,
0.0452848747,
-0.0746011138,
0.3398675919,
0.1416782439,
0.0331314988,
-0.3377311528,
-0.0807494521,
-0.1799660176,
0.1585642695,
-0.096362114,
-0.1664721519,
0.0793530196,
-0.1049147472,
-0.1405676901,
-0.3333322406,
0.0431479365,
0.1139279827,
0.4340324104,
-0.3360696137,
0.1819751263,
-0.1398001164,
0.1006545871,
0.0214311518,
-0.3120057881,
0.0983556807,
-0.2060773224,
-0.160131529,
0.2585891187,
-0.0568328574,
-0.127380237,
-0.0457082614,
0.4071217179,
0.2142864317,
-0.4044518769,
-0.380630821,
-0.304431051,
-0.1384852082,
-0.1443673521,
0.4448207021,
0.1631067395,
0.255179882,
-0.0569448695,
-0.1024077982,
-0.2688091397,
-0.1337060779,
-0.1084035337,
0.0277535245,
0.1366551667,
-0.1401948631,
0.3482024074,
-0.5923085213,
-0.0682546869,
0.2889494896,
-0.3040877879,
-0.2487546802,
0.4316576123,
-0.0898168981,
-0.3463098407,
0.0212812573,
0.1075280607,
-0.1065261662,
-0.2346156985,
0.1980973631,
0.0223734677,
0.1970596611,
-0.2903106213,
0.120064728,
0.0475445874,
0.419404,
-0.2496539056,
-0.1606361866,
-0.2298178077,
0.6143161058,
0.0052386224,
-0.2826807797,
-0.0352877229,
0.1667381078,
-0.0689893961,
-0.0044362471,
-0.5236111283,
0.2110102922,
-0.3914628625,
0.3879405558,
-0.2507886589,
0.1295184344,
0.1006244421,
-0.27059865,
0.0279503912,
0.2041379511,
-0.0470446423,
0.203074038,
0.0508883782,
0.0871174335,
0.0146012045,
0.5647196174,
-0.2276451439,
0.3679975569,
-0.2421873063,
-0.1133370548,
0.3385265768,
-0.0457909703,
0.2186238766,
-0.3233050406,
-0.1835278571,
-0.2548119128,
0.1148839742,
-0.3281367123,
0.2052340806,
-0.0470521636,
-0.3221094906,
0.0186662152,
0.0380090103,
-0.0206913203,
-0.075371258,
0.2960333526,
-0.0189606417,
0.0157174934,
-0.1564355493,
0.2078142315,
-0.3696024716,
-0.2330319732,
-0.0829180479,
-0.0495276675,
0.1429998577,
-0.2620234191,
-0.6429179907,
-0.0781931058,
-0.4179564118,
0.1745576262,
-0.1723276079,
0.4994800985,
0.0736008584,
-0.3419010639,
0.4459113777,
0.0000090189,
0.6106888056,
0.2610675097,
0.0313419998,
0.1837456226,
-0.1467977166,
-0.7164690495,
0.0446786135,
0.2052855492,
-0.0682100728,
0.2740387619,
0.6911301017,
-0.0954620391,
-0.1232028306,
-0.1753894985,
0.3305181563,
-0.1972632706,
-0.4610156417,
-0.1612583101,
-0.3332914412,
-0.1577514708,
0.1362023354,
0.1624786407,
0.4764493108,
0.403673321,
-0.0795257315,
-0.2010962516,
-0.151412338,
0.0769225061,
0.0857559592,
0.3958838284,
-0.1649832428,
0.4091666937,
-0.3334075809,
0.1923517287,
-0.0831137374,
0.3989640176,
-0.1917423904,
-0.0647914559,
0.3708532453,
-0.2073853761,
0.0760351494,
0.3880732059,
0.1935632229,
0.136791572,
-0.1403944492,
0.1752065569,
-0.2453931868,
-0.0806315243,
-0.1874670535,
-0.0669725388,
0.0424896739,
-0.1677795053,
0.2720349133,
0.0439278856,
-0.0331758037,
0.3123396635,
-0.1232542843,
0.0711574852,
0.7600029707,
0.2339062095,
1.2246541977,
-0.5035203099,
0.0143717211,
0.1216157377,
0.1656191945,
-0.1179602891,
-0.176044926,
-0.326980114,
-0.4070287943,
0.1482396126,
0.127715081,
-0.2269849479,
-0.1235537231,
0.3887036145,
0.0860186219,
-0.1470342726,
-0.2462284863,
0.3335520923,
-0.3722388148,
0.4040262699,
-0.0381875485,
-0.4741929471,
-0.5782681704,
-0.0209845267,
0.015722353,
-0.1392734349,
-0.0104781166,
0.1738459915,
-0.0361926556,
-0.2224061191,
-0.1036520973,
-0.1861284077,
0.0907135978,
0.181789875,
0.1882384419,
-0.2340192199,
-0.1706717014,
0.4167110026,
0.3755467832,
-0.0700849891,
-0.0401893556,
0.1823684275,
0.0647357777,
0.1224828809,
0.0813116282,
-0.2595705092,
0.082886152,
-0.1189799905,
0.0572671294,
-0.0665009171,
-0.1295834929,
-0.5366308689,
-0.1099401787,
0.199248299,
0.3654552698,
-0.1988741755,
-0.2844586968,
-0.2924715281,
0.1557069421,
-0.065867275,
0.0162826683,
0.3401005566,
0.1590853482,
0.2823826969,
-0.0473313965,
-0.2356753647,
0.0175011624,
0.3600907922,
0.0381031483,
-0.2959871888,
0.2296039164,
0.0347346067,
-0.2232731432,
-0.2273773104,
0.3738384247,
0.3516621888,
-0.4658203721,
0.113440007,
-0.0073064342,
-0.0589040667,
0.0803503841,
0.1580490768,
0.202291131,
0.017637847,
-0.1211414635,
-0.2088407278,
-0.5282040834,
0.0122616366,
0.240743354,
0.1340419501,
0.1419383585,
-0.5530793667,
-0.3032374084,
0.0276501793,
-0.1465065181,
0.0846248642,
-0.0470656492,
0.117027998,
0.0066627096,
-0.0371651761,
0.1006971151,
-0.1650077403,
0.0521321185,
-0.1201457828,
0.0040521249,
-0.0913612396,
0.0671672374,
0.2125337422,
-0.0326335095,
-0.2659910321,
-0.2516623735,
-0.45433411,
-0.2050018609,
-0.3530678451,
-0.116732046,
0.0779266208,
-0.1097266227,
-0.3546773791,
0.3384281397,
0.1532834768,
-0.0454580076,
0.3576586843,
-0.049433928,
0.4739781618,
-0.0162987597,
0.057773456,
0.1461663842,
-0.189484641,
-0.2302970588,
0.2283015847,
0.3283314407,
-0.151220873,
0.3985272348,
-0.2034519315,
0.0327937976,
0.2581097782,
0.0240827724,
0.2060745358,
-0.1661804467,
-0.290340662,
0.3153260052,
0.0767672062,
-0.0047935545,
-0.2500503659,
-0.042113483,
-0.1186141744,
-0.244246915,
0.3506319523,
0.4611362815,
-0.2066255808,
-0.0887789577,
0.031730257,
0.5728582144,
0.0141485743,
-0.4393891096,
0.6040984988,
-0.0466116592,
-0.0192430019,
0.112472415,
0.2082581669,
0.0788008869,
0.4882705212,
-0.2155219764,
0.1153137386,
0.3541575968,
0.5426251888,
-0.3740213513,
-0.3426681161,
0.3637278676,
0.2706036568,
-0.2007652819,
-0.1184997708,
0.1577221155,
0.2770216763,
-0.178494662,
-0.1285787225,
-0.2322596461,
0.2374081314,
-0.2579988837,
0.0892993361,
-0.3661228418,
-0.0265117735,
-0.0183169693,
0.12051294,
-0.2606544495,
0.0107330643,
-0.2762069702,
0.332347244,
0.0759628937,
0.0478877798,
0.0287431963,
0.0779317319,
-0.0161674693,
-0.4089173377,
-0.0030231355,
-0.3486033082,
-0.0520247854,
0.2731183767,
-0.2664615214,
0.3906583786,
0.5201633573,
-0.003766004,
0.0543629415,
-0.044045262,
-0.0332820974,
0.0063725561,
0.2009408921,
-0.1043529212,
0.2317555845,
0.1520819515,
-0.1098470241,
-0.068105951,
-0.4159815311,
-0.1741553247,
0.4164214134,
0.140806973,
0.3191129863,
0.0841154978,
-0.3321055174,
-0.2562817931,
0.0822449923,
-0.0990466997,
-0.1693681628,
0.265348196,
0.0121963099,
0.1619278938,
-0.0405136906,
-0.0301770642,
-0.3313153386,
0.5836269259,
0.3414524198,
-0.3722855449,
-0.208329618,
-0.3158127069,
-0.6785956621,
0.0826003924,
0.006199359,
-0.0291484259,
0.4067519903,
0.2453691661,
0.4798541665,
0.0738416165,
-0.074514538,
0.0058923811,
-0.1493743658,
0.3993545771,
-0.0918728262,
0.0801307112,
0.0865438208,
0.2133027166,
-0.2368369102,
-0.4747455418,
0.4323936105,
0.204492107,
-0.0929564312,
-0.0872169286,
0.0433861166,
-0.2884806693,
0.3838071525,
0.397113651,
0.0027241223,
0.1114628837,
0.3268879056,
0.0639132708,
0.2400346845,
-0.0643628091,
0.0969399959,
0.2231924683,
-0.0742227882,
-0.0774134547,
-0.049745094,
0.3446439207,
-0.2318465114,
0.0148539804,
-0.2300881147,
-0.2026831806,
-0.1397502124,
0.0247969776,
-0.214213565,
0.260007441,
0.2427755892,
-0.0022022268,
0.1724119335,
0.269412756,
-0.2461120486,
-0.0634340346,
0.2341073751,
-0.0005448908,
-0.1780948788,
0.0749685913,
0.1997459829,
0.2011823356,
0.2328178436,
-0.385789752,
-0.1835777909,
0.2323231697,
-0.1316278726,
-0.0851388723,
0.3760204315,
-0.206654951,
0.2136585861,
-0.1630482078,
0.2711824775,
-0.0848429725,
-0.0476507172,
-0.4124530554,
-0.308023572
] |
https://github.com/huggingface/datasets/issues/2099 | load_from_disk takes a long time to load local dataset | yup I casted it to `np.uint8` outside the function where it was defined. It was originally using python integers. | I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :) | 19 | load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :)
yup I casted it to `np.uint8` outside the function where it was defined. It was originally using python integers. | [
-0.299746722,
-0.2523107827,
-0.047044266,
0.2852840424,
0.3280437887,
0.0210995078,
0.426261127,
0.2177658677,
0.7503631115,
-0.0394667909,
0.1555924863,
0.5000486374,
0.0829726011,
-0.0863410532,
0.1403081715,
0.1166695431,
0.3541412354,
0.21109882,
0.453833282,
-0.1608220637,
-0.2806875706,
0.0042520836,
-0.1241987795,
0.0208438374,
-0.1499310732,
-0.0341603458,
-0.0299527496,
0.0478597619,
-0.124257423,
-0.3127470016,
0.0386537015,
-0.0707975924,
0.2723852396,
0.2255567014,
-0.0001278377,
-0.2478277981,
0.0132426657,
0.1549175382,
-0.2342651188,
0.2983810902,
0.3765067756,
-0.4481575787,
0.2435010225,
-0.3445621133,
0.132065177,
-0.3008109033,
-0.3529149294,
-0.2031404972,
-0.0605136566,
-0.1430767775,
0.0295512788,
0.455493927,
-0.3025600314,
0.0823651701,
-0.1058336794,
0.3159890175,
-0.1544767916,
0.0775508136,
0.5621144772,
-0.0488691665,
-0.0532418415,
-0.0539404526,
-0.2200503647,
-0.08033894,
0.3734755516,
0.061476972,
0.2543972731,
0.1495890021,
0.0807375759,
0.1082237288,
0.5584253073,
-0.0173399486,
0.02341488,
-0.2472167015,
-0.0852082223,
-0.3046395183,
0.3880222142,
-0.0014710128,
-0.2571532428,
0.176444903,
-0.0475822724,
-0.0687609315,
-0.014576152,
0.2424098551,
-0.1865226626,
-0.0527719408,
0.0204858631,
0.1147157773,
0.3606210351,
-0.1024472713,
0.057224784,
0.0543405041,
0.1102680191,
0.3917820752,
-0.416009903,
-0.1962456703,
0.0078820735,
0.0762106627,
-0.1992874593,
0.107700631,
0.2171665281,
0.2246487439,
-0.1134414077,
-0.0168445725,
0.2522180378,
0.3522307873,
-0.1196835265,
0.148111552,
0.078662999,
-0.2717196643,
-0.063646853,
-0.0346712694,
-0.2698743939,
-0.0448174067,
0.5096761584,
-0.4679945707,
-0.2419989407,
-0.1596256942,
-0.082834959,
0.2333769947,
0.4327570796,
-0.052806478,
0.2506528497,
0.2286753356,
0.0346169323,
0.5681986213,
-0.0360980034,
0.0221784413,
-0.1965543628,
-0.1412782669,
-0.0486950874,
-0.2828442454,
-0.1765477955,
0.1495119631,
0.0459260643,
0.2822542489,
-0.1178853288,
0.1888043135,
-0.214136824,
0.0234125555,
-0.1138860807,
-0.1401476264,
0.2944340408,
0.2083586603,
-0.1148261353,
0.2261588871,
0.1771094501,
-0.2330554426,
-0.4272059798,
0.4167664349,
-0.1968291253,
-0.4156872332,
-0.4845802784,
0.000935779,
-0.2500708401,
-0.0882829875,
-0.4191101193,
-0.1701914221,
0.1220635399,
0.0307381824,
-0.0117620602,
-0.1612862051,
-0.1153207868,
-0.0993766785,
-0.0477481782,
0.1461014152,
-0.4231797457,
0.1730353534,
-0.255633384,
0.2764595449,
0.3224261999,
0.6396909356,
-0.2801318169,
0.353984803,
-0.2494270504,
0.2317923307,
0.5141881704,
-0.0979827866,
-0.4064531028,
0.7154764533,
-0.0799031705,
-0.1685024798,
0.0801310837,
0.5803712606,
0.3193607926,
-0.070767872,
0.1484779269,
0.6385688782,
0.1840555072,
0.2328276336,
-0.3932382464,
-0.0290973447,
0.0782502815,
0.4464018941,
-0.4105349183,
0.1632716954,
0.1406906396,
-0.0007515177,
0.1959132254,
0.0519312322,
-0.0848506838,
0.2653441429,
0.2414295822,
-0.0164802894,
0.0377391502,
0.2370994091,
-0.166160211,
0.1361669451,
0.4677137136,
-0.20218274,
0.0326377377,
-0.1964568943,
-0.3855071366,
0.3265437186,
-0.0973811522,
0.5834559202,
-0.2067904174,
-0.0223461427,
0.0919388235,
-0.1623272747,
-0.1692397743,
-0.0781933963,
-0.2837658525,
-0.1043160558,
-0.0629550964,
0.0552181378,
0.1984124035,
-0.0376978628,
-0.3756641746,
-0.022458639,
0.0238024779,
0.0572338738,
-0.2001611441,
0.2730818987,
0.183606714,
-0.0312015824,
-0.0294400118,
0.2263231874,
0.1067594886,
0.0680080056,
0.3422229588,
0.0136776939,
0.2121347487,
-0.2573302388,
-0.0757788122,
0.4699647427,
-0.195330888,
0.2148168385,
-0.2350046486,
-0.0943369269,
0.3795794547,
0.1608312279,
0.1499015093,
-0.0218490884,
0.1916030943,
0.293019712,
0.2311093211,
0.3050785363,
-0.2529486418,
0.2679819763,
0.2955794334,
-0.3433096111,
-0.0599355288,
0.2346321642,
0.0216725953,
-0.2941650748,
-0.0241063666,
-0.0860866234,
0.3656126261,
0.1009637564,
0.023207631,
-0.32527408,
-0.0509922765,
-0.1901417375,
0.156567812,
-0.0855933726,
-0.1552979946,
0.1201145053,
-0.0784916133,
-0.1449501216,
-0.3378223777,
0.0529580861,
0.1145993099,
0.4082333148,
-0.359349519,
0.2051277757,
-0.1127205491,
0.1153935343,
0.0001293421,
-0.310772121,
0.1094291508,
-0.2215988934,
-0.2033455521,
0.2541100085,
-0.0517487824,
-0.1613628864,
-0.0621432438,
0.3496828079,
0.1964780539,
-0.4854284823,
-0.3430975378,
-0.2745359838,
-0.110722512,
-0.1661277413,
0.4014423192,
0.1267112941,
0.2230727375,
-0.0598717257,
-0.1314961612,
-0.2171731293,
-0.1485175937,
-0.1381504238,
0.0304662399,
0.1391073167,
-0.1723216772,
0.3341895044,
-0.5773807168,
-0.0546475537,
0.2761108279,
-0.3274299502,
-0.2220074534,
0.4210557938,
-0.1017546952,
-0.3189688325,
0.0206263438,
0.1182103753,
-0.1174123734,
-0.2252643257,
0.1939543039,
0.0601117015,
0.1746489257,
-0.2702929676,
0.1287635863,
0.0201713033,
0.4685717523,
-0.2537423372,
-0.1709931493,
-0.2462951243,
0.6392536163,
0.0141657293,
-0.2546553016,
-0.0216951966,
0.156120196,
-0.0678283125,
-0.0192152094,
-0.5329577923,
0.2137175798,
-0.4107217193,
0.4174287319,
-0.2403504997,
0.1101469919,
0.1109747738,
-0.2708203197,
0.0401133746,
0.2173805833,
-0.0477831885,
0.1758057028,
0.0863870606,
0.0455205068,
0.0226642005,
0.5955447555,
-0.2443087101,
0.3329943717,
-0.2710855305,
-0.1361757964,
0.3635099828,
-0.0390581936,
0.1948390901,
-0.3454589248,
-0.1980035305,
-0.2656888962,
0.1232634038,
-0.3189109564,
0.19594495,
-0.0129412776,
-0.3360689878,
0.0162462369,
-0.0077084899,
-0.0500185974,
-0.052719485,
0.2995036542,
0.009621609,
0.0443260521,
-0.1402288079,
0.2028518766,
-0.3820977807,
-0.2429334968,
-0.0864673853,
0.0005123019,
0.139280349,
-0.2710652649,
-0.534609139,
-0.080986619,
-0.4078416228,
0.1613992751,
-0.172564134,
0.4567165971,
0.0902642831,
-0.3383495808,
0.4657453299,
-0.0053458363,
0.5948349237,
0.3084183633,
0.0827638507,
0.1923333257,
-0.2019627839,
-0.6922329664,
0.053625688,
0.2320829332,
-0.0532440208,
0.3043685853,
0.6459016204,
-0.0255878866,
-0.1351348162,
-0.0998533592,
0.3506247103,
-0.2139658034,
-0.4529126883,
-0.1806490123,
-0.3729957938,
-0.139570877,
0.1319065988,
0.1839437336,
0.4820201099,
0.4124497771,
-0.0313322991,
-0.2082055211,
-0.1388518512,
0.0631120056,
0.0752194822,
0.3415225148,
-0.0943396986,
0.4265584946,
-0.3278442621,
0.1668900996,
-0.1639239937,
0.4506511688,
-0.1249106228,
-0.0551451445,
0.3552737832,
-0.1789219677,
0.0373828411,
0.3945652246,
0.213049069,
0.1087980494,
-0.1293096244,
0.1753534079,
-0.2159729302,
-0.0754477233,
-0.1639151275,
-0.0365845188,
0.0398235731,
-0.2066563964,
0.2804308832,
0.0647029579,
-0.0397065133,
0.2836985588,
-0.10288167,
0.0937396064,
0.695607841,
0.1971293688,
1.2087384462,
-0.4919814467,
0.0336676314,
0.1298191845,
0.186267063,
-0.1252058148,
-0.1392669827,
-0.3274513483,
-0.4056124687,
0.1182399541,
0.1332864165,
-0.222778365,
-0.1108399183,
0.3779366612,
0.1421391964,
-0.1457568109,
-0.2845987082,
0.31211254,
-0.3484482169,
0.3731776476,
0.000142077,
-0.466260165,
-0.5828541517,
-0.0365542509,
0.0176295619,
-0.1060939282,
-0.0159200169,
0.1835935265,
-0.0159111992,
-0.1761211753,
-0.069022283,
-0.1480956227,
0.1852276176,
0.1799694002,
0.1777576506,
-0.2263096571,
-0.1202377304,
0.4478648007,
0.3832815588,
-0.0640567616,
0.0072164126,
0.1981436461,
0.0716867447,
0.1402181089,
0.1192442328,
-0.2417067736,
0.0906340554,
-0.1088959873,
0.0084322244,
-0.0712703839,
-0.1276836693,
-0.5348021388,
-0.0959501937,
0.2205497026,
0.3436758518,
-0.2152739763,
-0.2737520337,
-0.2669527233,
0.1950721741,
-0.0696173906,
0.0016728924,
0.3451688588,
0.1746703088,
0.2470206469,
-0.0803078488,
-0.2670125067,
0.0034180488,
0.3597744405,
0.0523387045,
-0.2441837341,
0.2246297896,
0.0463060215,
-0.2307428867,
-0.2069215477,
0.3407578766,
0.265168786,
-0.4949905276,
0.1304311156,
0.0353017226,
-0.0418804586,
0.0673033595,
0.1329656094,
0.1585172713,
0.0157133937,
-0.1375877708,
-0.2012657225,
-0.527534008,
-0.0297442004,
0.2316033989,
0.0961115807,
0.1536242962,
-0.5203170776,
-0.2615036368,
0.0122939106,
-0.1291834563,
0.0679061934,
-0.0211721249,
0.1300712824,
0.0219921581,
-0.0549306683,
0.1272865832,
-0.1701260507,
0.0446752533,
-0.121518299,
0.0353411883,
-0.0732466355,
0.0595909059,
0.2262460738,
-0.0183586404,
-0.2851121724,
-0.2297662497,
-0.471047163,
-0.2037388235,
-0.3548015654,
-0.084050335,
0.1096761748,
-0.0829448104,
-0.3674425185,
0.3324757814,
0.137084797,
0.0097594932,
0.406223923,
-0.0602507219,
0.4979399443,
-0.0586130284,
0.0656367689,
0.1778939664,
-0.1666073799,
-0.2706592679,
0.2173453569,
0.3430082202,
-0.1129646301,
0.3921230435,
-0.2453587353,
0.05556041,
0.2345795631,
0.0072812289,
0.1970245093,
-0.1595991999,
-0.2889460623,
0.2770785093,
0.0497234128,
-0.0093567744,
-0.2795383632,
-0.0432368666,
-0.1091430783,
-0.2531608343,
0.3529641628,
0.4270124435,
-0.2079938203,
-0.0807909518,
0.0477479994,
0.5593767166,
0.0142378174,
-0.4618859291,
0.5625966787,
-0.0283038244,
-0.019532457,
0.1542935073,
0.2069480121,
0.0614777394,
0.5321906209,
-0.2033329308,
0.0598359331,
0.3535825014,
0.5532019734,
-0.4282671213,
-0.3345472813,
0.351485759,
0.2562892437,
-0.2642850876,
-0.1204356402,
0.1763006896,
0.1915053129,
-0.2000450641,
-0.0962896198,
-0.2419998348,
0.2856770158,
-0.2213686258,
0.0616027303,
-0.3761419952,
-0.0039553195,
-0.0297703147,
0.1692759097,
-0.2597093284,
0.0175363179,
-0.24557513,
0.3440790772,
0.0641216189,
0.0444133878,
0.0583956912,
0.0609889887,
0.0008987077,
-0.4227381647,
-0.0232525952,
-0.3469665349,
-0.0325264223,
0.2949286401,
-0.2910645306,
0.3708646894,
0.492054224,
0.008085601,
0.0534115359,
-0.0598783344,
-0.0462804958,
0.0190487579,
0.2101272792,
-0.1083668396,
0.3407149017,
0.1441575736,
-0.1136074364,
-0.0654865578,
-0.4170873463,
-0.1691434532,
0.4294933975,
0.0875380337,
0.3718038797,
0.082222268,
-0.3147856593,
-0.2893884778,
0.0842054561,
-0.09285786,
-0.1836451143,
0.2388715446,
0.0186642967,
0.1382622868,
-0.0549391434,
-0.0443665907,
-0.3314491212,
0.5940252542,
0.3194929957,
-0.3627036512,
-0.1800248921,
-0.311111182,
-0.6691551208,
0.079761073,
0.0565288775,
-0.0767390355,
0.388586849,
0.2282045782,
0.4421895146,
0.0508389473,
-0.1075003073,
0.0113963746,
-0.1168242693,
0.3702000976,
-0.0382707752,
0.0379908606,
0.0463447049,
0.2053325623,
-0.2436440736,
-0.4843664765,
0.4108676314,
0.1688493639,
-0.1000107527,
-0.1184420213,
0.0033150613,
-0.2772933841,
0.4129747152,
0.3902545571,
0.0072053745,
0.1270103157,
0.3299396038,
0.0592310354,
0.2613450289,
-0.0972221047,
0.0697033554,
0.2434341311,
-0.0778233707,
-0.0453936569,
-0.0346202105,
0.3828947544,
-0.1904079169,
0.0101254173,
-0.264420718,
-0.1641374528,
-0.122610949,
-0.0124838129,
-0.2296939045,
0.2783006728,
0.2322643995,
0.0218797587,
0.1775470078,
0.2454536557,
-0.2312730998,
-0.0554248653,
0.2142621577,
-0.0180721879,
-0.1550243795,
0.060232956,
0.1880705506,
0.1968452632,
0.1879761815,
-0.3372839689,
-0.1518455744,
0.231603846,
-0.1202038527,
-0.1169502661,
0.4154003859,
-0.2452114224,
0.1990682185,
-0.1444699764,
0.2633863389,
-0.1030331701,
-0.0655325204,
-0.4062340856,
-0.2756509781
] |
https://github.com/huggingface/datasets/issues/2099 | load_from_disk takes a long time to load local dataset | Strangely, even when I manually created `np.arrays` of specific `dtypes`, the types in the final `dataset_info.json` that gets written are still `int64`.
Update: I tried creating lists of `int8`s and got the same result. | I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :) | 34 | load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :)
Strangely, even when I manually created `np.arrays` of specific `dtypes`, the types in the final `dataset_info.json` that gets written are still `int64`.
Update: I tried creating lists of `int8`s and got the same result. | [
-0.2173987329,
-0.1876726151,
-0.0520242155,
0.3366709352,
0.3299886882,
0.0349006429,
0.4153962731,
0.2823085189,
0.6786062121,
-0.1099481508,
0.1326241791,
0.5752293468,
0.1942533404,
-0.0471493937,
0.1443946958,
0.1174118444,
0.3587273359,
0.2722391784,
0.3763955832,
-0.1764423698,
-0.3060884178,
0.0475456491,
-0.0370805115,
-0.0319933034,
-0.0833014846,
-0.0650951341,
0.0567434654,
0.01163493,
-0.1999144852,
-0.3068854809,
0.1065620482,
-0.0948056132,
0.2616827786,
0.2380925864,
-0.0001292553,
-0.1857510507,
0.1267103553,
0.0981938019,
-0.2422352284,
0.3243521452,
0.4163017273,
-0.4820279479,
0.2607610226,
-0.3481028676,
0.1100000367,
-0.4955372512,
-0.2719957232,
-0.3215941191,
-0.0316411965,
-0.134171173,
0.0246906467,
0.4677754045,
-0.2241476774,
0.1327083856,
-0.201159209,
0.4392247796,
-0.219362244,
-0.0071724076,
0.4425100088,
0.0582929775,
-0.0485808998,
-0.0865366757,
-0.1406692564,
-0.0158310309,
0.4063594043,
0.0615016259,
0.2055448592,
0.1228796691,
0.0694576353,
0.172819525,
0.6207132339,
0.0334615596,
-0.0707628131,
-0.2485563606,
-0.1489282399,
-0.2460748553,
0.4324034452,
0.036254108,
-0.2357408404,
0.171706453,
-0.1762754619,
-0.0015278198,
-0.0733377784,
0.2504835725,
-0.1308268309,
-0.1616676301,
-0.0110073816,
0.1591523886,
0.3527542353,
-0.1964052767,
0.0774170533,
-0.0155620668,
0.0091212308,
0.3035266995,
-0.3383492231,
-0.2830924094,
0.0515063033,
-0.0079691038,
-0.0780862421,
0.0634723753,
0.1622398645,
0.2495287508,
-0.233153984,
-0.0472107753,
0.2891205549,
0.3608787358,
-0.0328739472,
0.0068860352,
0.0910086185,
-0.3389004171,
0.0694480389,
0.0200344045,
-0.1676361114,
0.0830193013,
0.3784142435,
-0.4967731535,
-0.2162388712,
-0.1500125676,
-0.0208426788,
0.2400244474,
0.3636524081,
0.0160099231,
0.1731541157,
0.1814383417,
0.0771474466,
0.611554265,
-0.0976981372,
0.0728252903,
-0.1629838943,
-0.1739875227,
-0.0197710879,
-0.3106485605,
-0.1181265414,
0.0850089788,
0.1496675014,
0.3727175891,
-0.0459689014,
0.1671039462,
-0.2715296149,
0.01579386,
-0.0969670638,
-0.1131130159,
0.3125566244,
0.2298929691,
-0.0987829491,
0.2557433546,
0.146067515,
-0.2891292274,
-0.4497124553,
0.3425274491,
-0.1358738095,
-0.2943195105,
-0.4542925358,
-0.0250244215,
-0.2671665847,
-0.0196940675,
-0.4391438663,
-0.1076667756,
0.1381550431,
0.0255169123,
-0.0122427829,
-0.2078365386,
-0.0829692483,
-0.1118216366,
-0.0885616541,
0.0849549323,
-0.4510558844,
0.1749624014,
-0.2742943764,
0.2847523987,
0.2883860469,
0.6702421904,
-0.206727311,
0.229929328,
-0.1860371381,
0.3189184964,
0.4110119343,
-0.0977738872,
-0.3115602434,
0.7315458655,
-0.0117099062,
-0.1459044814,
0.1338103712,
0.5266261697,
0.2496895045,
-0.0425943509,
0.1365238875,
0.6743007898,
0.1748802662,
0.2215826809,
-0.2907081842,
-0.08665815,
0.0481706373,
0.4137927294,
-0.4890211225,
0.1240886301,
0.1250768751,
-0.0544766709,
0.1471735239,
0.0456154309,
-0.0502899885,
0.2346313745,
0.2530583143,
-0.0990100205,
0.0564776659,
0.3052899539,
-0.3008291423,
0.105338499,
0.3949751854,
-0.1805677116,
0.0343266651,
-0.2042905688,
-0.2784737349,
0.3042508066,
-0.0289720073,
0.5546163321,
-0.1815521866,
0.0827286094,
0.0816988572,
-0.1209331453,
-0.1571295112,
-0.1332882643,
-0.242602542,
-0.1102129072,
-0.1819318831,
0.0081923753,
0.2339276373,
-0.0504296087,
-0.3065254092,
-0.0196358524,
0.0269082077,
-0.0384553149,
-0.1630456299,
0.2365636677,
0.200256601,
0.003528405,
-0.0308956392,
0.1877440512,
0.1519829929,
0.0807133168,
0.3181469738,
0.052873455,
0.1747150868,
-0.278015554,
-0.1761329323,
0.5037502646,
-0.189139545,
0.2216322124,
-0.2732483149,
-0.0784675702,
0.4578703046,
0.1897336245,
0.0803916231,
-0.0869933069,
0.1122872382,
0.3219033182,
0.1343205869,
0.2910538316,
-0.233269453,
0.3427420855,
0.4129635692,
-0.311132431,
-0.0754259005,
0.2076280266,
0.01624831,
-0.3657490611,
-0.0054652859,
-0.0687502548,
0.3628411591,
0.0558842234,
0.0507823899,
-0.369697988,
-0.051743947,
-0.1846943647,
0.1200351417,
-0.0936768651,
-0.0346512385,
0.0992259905,
-0.0428065024,
-0.2816374302,
-0.3656870127,
0.0651436597,
0.1108409986,
0.3888585567,
-0.3100922704,
0.2180455923,
-0.1968775094,
0.0692616552,
0.0168184005,
-0.2861740589,
0.1109498888,
-0.1754749566,
-0.2048083395,
0.3162030876,
-0.0743380859,
-0.1524073482,
0.0649677217,
0.4230017662,
0.2276910096,
-0.4015129209,
-0.3833142221,
-0.2376032025,
-0.1568230391,
-0.1752422154,
0.3804134727,
0.1047097966,
0.1703633815,
-0.1451795995,
-0.1550824791,
-0.2253526598,
-0.1828179508,
-0.1096080542,
0.0458928719,
0.2592881918,
-0.1274664402,
0.3801014125,
-0.5672891736,
0.0562559813,
0.2641806006,
-0.287650913,
-0.2858359516,
0.3660444021,
-0.1474813968,
-0.3140185475,
-0.033716511,
0.0393685587,
-0.0902422071,
-0.2155964971,
0.3713665605,
0.0776870549,
0.1806076467,
-0.2034233958,
0.1504126191,
0.0074723661,
0.4369552433,
-0.2281597704,
-0.2046726644,
-0.2325002402,
0.6616538167,
-0.061055921,
-0.2485223711,
-0.0557903461,
0.1784060448,
-0.1016360521,
-0.058726985,
-0.5192956924,
0.1694787443,
-0.4142028987,
0.3584967852,
-0.1935164332,
0.0395525917,
0.1161186844,
-0.2936943769,
0.0407141075,
0.1232159436,
-0.1552180201,
0.2262769789,
0.168409735,
0.1085286587,
0.0971098542,
0.6675198078,
-0.2841599882,
0.2335276604,
-0.1284042895,
-0.2436569333,
0.3138743341,
0.0045585651,
0.2500697374,
-0.4183477759,
-0.0997263491,
-0.214056313,
0.1322828829,
-0.2786404788,
0.2092730552,
-0.0230740979,
-0.3529031873,
0.056518577,
0.0554475337,
-0.0645914823,
-0.0538274534,
0.2805735767,
0.0725999698,
-0.0482393876,
-0.0943972468,
0.3200045824,
-0.3532729149,
-0.2117578387,
-0.1610508263,
0.0650610179,
0.1711559147,
-0.1487731338,
-0.6796734333,
-0.1674274504,
-0.3332338035,
0.1392716765,
-0.2569191456,
0.592982173,
0.0225004405,
-0.2331375033,
0.3818160295,
-0.026719179,
0.5649268627,
0.230736658,
0.1245873719,
0.1613278836,
-0.1329402626,
-0.6834196448,
0.0788839608,
0.2797006667,
-0.0070198104,
0.3291248679,
0.7125709057,
-0.181169644,
-0.0999960452,
-0.1415994465,
0.3365511,
-0.185243398,
-0.3992160857,
-0.1493575573,
-0.4388361573,
-0.0707884058,
0.0791192502,
0.2100016028,
0.4462957382,
0.3405469656,
-0.0486597531,
-0.2184112221,
-0.1173246577,
0.0599521883,
0.0986247808,
0.3926589787,
-0.0840952098,
0.3604737818,
-0.2897670865,
0.2088488638,
-0.037922442,
0.395231992,
-0.0141890151,
-0.0131744966,
0.3565963209,
-0.1868540794,
-0.0403171591,
0.3948354721,
0.2167874873,
-0.0137316212,
0.0050161891,
0.1383888125,
-0.2069513947,
-0.0761831105,
-0.1330932677,
-0.0619481876,
-0.0003997721,
-0.2413398772,
0.3421111405,
0.0458907261,
0.0366982073,
0.2169335186,
-0.1064547896,
0.0730893463,
0.7005402446,
0.228220731,
1.0924141407,
-0.4371306896,
0.0410693213,
0.1504457295,
0.1532887816,
0.0451470874,
-0.21188429,
-0.2649599314,
-0.4133768082,
0.2359395921,
0.1291560531,
-0.2488388568,
-0.1227729619,
0.3823551238,
0.1817044914,
-0.1715879738,
-0.1866678298,
0.380977273,
-0.3225501478,
0.4586806595,
-0.0498514175,
-0.5222053528,
-0.5489806533,
-0.0528286472,
-0.0492434949,
-0.0831593126,
0.0803819895,
0.0411781594,
-0.053121347,
-0.1567959338,
-0.0624620318,
-0.2056073844,
0.3019211292,
0.197500363,
0.2539480627,
-0.2606305778,
-0.1255117655,
0.4229884744,
0.4324879944,
0.0126521103,
-0.1240098476,
0.1753549129,
0.0493511558,
0.1119155437,
0.1297533065,
-0.2778564394,
0.0515653193,
-0.0893169641,
0.0382786691,
-0.1961215436,
-0.1636033803,
-0.4552235603,
-0.136763677,
0.1120989919,
0.161500901,
-0.2072797418,
-0.2247728407,
-0.3366516829,
0.1160382926,
-0.0405573845,
-0.0055045076,
0.3154767752,
0.190061301,
0.2958973646,
0.0065443655,
-0.2580959201,
-0.0127005354,
0.3266023397,
0.1172462255,
-0.249270156,
0.2166790366,
0.0922863781,
-0.2408181727,
-0.2305277288,
0.3632842302,
0.3062567115,
-0.3923354745,
0.1796464622,
0.0061995462,
-0.077629894,
0.0210315213,
0.064481318,
0.106622532,
0.0795006752,
-0.1134223938,
-0.2339743227,
-0.5309724808,
0.0488859415,
0.1587397456,
0.1442117393,
0.1871334761,
-0.455325067,
-0.2841465473,
-0.0301211681,
-0.1083771735,
0.0317693129,
-0.0022476763,
0.1025849655,
-0.0446096845,
-0.0486175083,
0.1031706408,
-0.1538615227,
0.0147896707,
-0.1188468635,
-0.0506376922,
-0.0317352638,
0.0575856715,
0.2309265733,
0.0243809856,
-0.3043704629,
-0.2005876899,
-0.5046970248,
-0.2750758231,
-0.3541997373,
-0.1433112919,
0.0248262212,
-0.0564157553,
-0.3651975095,
0.3095922768,
0.1771618724,
0.047855407,
0.3821160197,
-0.0351378433,
0.5291318297,
-0.0838510469,
0.0906456113,
0.1419858634,
-0.1484675854,
-0.3130098283,
0.2056968808,
0.2749140859,
-0.0741821676,
0.3640138507,
-0.2556056678,
0.0451697856,
0.1968621612,
0.0170883313,
0.2804645598,
-0.1707634926,
-0.2876012623,
0.2010519505,
0.0151963914,
0.0878366977,
-0.2189318389,
-0.0090434402,
-0.0722834989,
-0.2755796909,
0.3545842469,
0.4353601933,
-0.2265684307,
-0.1017175615,
0.0076614171,
0.6051024795,
0.0567761734,
-0.3878493905,
0.5591937304,
-0.1221305802,
-0.0224980898,
0.1900879294,
0.1020670682,
0.0879580602,
0.5890635252,
-0.1564526409,
0.0454870835,
0.3945412934,
0.5005422831,
-0.4387730062,
-0.2563964725,
0.2966640294,
0.305119127,
-0.1579087079,
-0.030389268,
0.2748241723,
0.2423793674,
-0.2620984912,
-0.0929100066,
-0.3873698413,
0.2268603146,
-0.2815282941,
-0.0116103701,
-0.4437786937,
-0.0770193785,
0.0786991715,
0.2058531046,
-0.3155550957,
0.044435095,
-0.2954042852,
0.3063108623,
-0.004682865,
-0.0141256955,
0.1462667286,
-0.0559758767,
-0.0438110232,
-0.3790053129,
0.0477777719,
-0.2433989048,
-0.0542873479,
0.2168343961,
-0.3252417743,
0.3133118749,
0.4564041197,
0.0446820669,
0.0164981373,
-0.0667358637,
-0.0828172415,
-0.0087056644,
0.2081096023,
-0.0590163581,
0.1394255459,
0.1305968612,
-0.108889997,
0.0057667494,
-0.4132785201,
-0.1747809052,
0.3841584921,
0.1387760043,
0.3312195539,
0.0410335027,
-0.2562458813,
-0.2217212766,
0.031792555,
-0.0179435685,
-0.1998837888,
0.2481616884,
0.1070704684,
0.140680626,
-0.1053967476,
-0.0489188135,
-0.4211720526,
0.632142663,
0.1931618303,
-0.4575017393,
-0.1210151613,
-0.2958075404,
-0.4957216382,
0.0898914039,
0.0185368396,
-0.0842299759,
0.373342216,
0.2994859815,
0.4935491681,
0.0418798216,
-0.1397036314,
0.0613694675,
-0.0776111707,
0.407798022,
-0.0841035992,
0.0084014451,
0.0422830321,
0.2542154491,
-0.2144945562,
-0.476670146,
0.4295182228,
0.2177688479,
-0.1116072163,
-0.1958276629,
0.1195870936,
-0.2376290262,
0.4204732776,
0.358720541,
0.1112726629,
0.0840305388,
0.322786659,
-0.0830639526,
0.2185935229,
-0.1235924065,
0.0773011148,
0.3300934136,
-0.1025025472,
0.0824520886,
-0.0837057605,
0.4998004735,
-0.2368964106,
-0.0310850423,
-0.3372487724,
-0.0928841829,
-0.1342759728,
0.0473146588,
-0.3381272554,
0.1738966107,
0.2373442501,
-0.013334645,
0.2018319666,
0.249610275,
-0.2224578261,
-0.0728700683,
0.2571418583,
0.030177176,
-0.2030025125,
0.141596213,
0.0672397688,
0.1613495499,
0.1663157195,
-0.3300637603,
-0.0823365971,
0.1679615527,
-0.1623262167,
-0.1481471658,
0.3159275353,
-0.2683696151,
0.0756734684,
-0.1605041027,
0.2990536392,
-0.0243850164,
-0.1328065693,
-0.4334265292,
-0.2827863991
] |
https://github.com/huggingface/datasets/issues/2099 | load_from_disk takes a long time to load local dataset | Yes this is a known issue: #625
We're working on making the precision kept for numpy :)
To specify the precision of the integers, currently one needs to specify the output features with `.map(..., features=output_features)` | I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :) | 35 | load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :)
Yes this is a known issue: #625
We're working on making the precision kept for numpy :)
To specify the precision of the integers, currently one needs to specify the output features with `.map(..., features=output_features)` | [
-0.2853317559,
-0.2187873274,
-0.0280981977,
0.2345816046,
0.3253431916,
0.0638448447,
0.4536392093,
0.2049432546,
0.6538358927,
-0.0338121429,
0.1011139601,
0.4731716216,
0.1274629533,
-0.1699022949,
0.0634809583,
0.100776583,
0.3845756054,
0.170215264,
0.4007261395,
-0.2281004339,
-0.3928019106,
-0.0222924352,
-0.0956601873,
-0.0267841071,
-0.2128366828,
-0.1019788459,
-0.0361410081,
0.0544554256,
-0.107103169,
-0.2511244714,
0.0215194151,
-0.1343869716,
0.3368286788,
0.2338035107,
-0.0001270739,
-0.1998752058,
0.0475260504,
0.1346090436,
-0.2297704816,
0.3513154685,
0.4877160192,
-0.6189041138,
0.2165913582,
-0.3899849057,
0.1582982242,
-0.1895429343,
-0.3014675379,
-0.2665798068,
-0.0368048772,
-0.1214368045,
0.0450731441,
0.5076545477,
-0.2321639359,
0.1393104941,
-0.2855151892,
0.3035946488,
-0.2053806782,
0.0653141066,
0.4982055426,
0.0549262464,
-0.0345794223,
-0.0517831184,
-0.1683319211,
-0.0302098878,
0.3090564609,
0.1079447418,
0.4078358412,
0.1171319783,
-0.0080195805,
0.1199573427,
0.496588856,
0.0335557312,
-0.0846853703,
-0.3417028785,
-0.1112954468,
-0.4144541323,
0.3293812871,
0.0911914334,
-0.3490360677,
0.1724072844,
-0.0470480509,
-0.0798030719,
0.0139333904,
0.2245960832,
-0.1558128148,
-0.0913807601,
0.0197383128,
0.1317344755,
0.2276468873,
-0.1148108542,
0.084565118,
0.010316059,
0.2136578858,
0.4248526096,
-0.4246660471,
-0.235316366,
0.0208284073,
0.0142460279,
-0.165325433,
0.0102039278,
0.1822427809,
0.2515755892,
-0.1862856448,
0.021925021,
0.3129637241,
0.4280667901,
-0.1733576357,
0.1863622814,
0.0927741081,
-0.2433661073,
0.1412957013,
0.0152630657,
-0.1005442813,
0.0422585309,
0.548037231,
-0.4681058824,
-0.1633126438,
-0.1320168078,
-0.142205596,
0.2277146727,
0.488723129,
-0.0417848416,
0.1561332941,
0.145544529,
0.0806358308,
0.5697745085,
-0.0562965758,
0.1194835603,
-0.1807679534,
-0.1578469276,
-0.0843191668,
-0.3356254697,
-0.0562647581,
0.1903010309,
0.0402992666,
0.3683846295,
-0.0683651716,
0.154119879,
-0.1981164962,
0.0685257018,
-0.1171712726,
-0.1645006537,
0.2333036661,
0.1856646836,
-0.1380415261,
0.2557900548,
0.1359823942,
-0.1931852549,
-0.4076724648,
0.4262596369,
-0.1646175683,
-0.3402721882,
-0.4790640175,
0.0090156486,
-0.186609447,
0.003799472,
-0.3539021909,
-0.1691919863,
0.2202161998,
0.0695995912,
-0.0052031949,
-0.2440945208,
-0.1140651107,
-0.1563970596,
-0.0493964255,
0.0769270957,
-0.3092058301,
0.1904049069,
-0.1717407852,
0.3061517179,
0.3065821528,
0.724339366,
-0.1892379373,
0.2168451548,
-0.2830536067,
0.2371825278,
0.4602166712,
-0.0460089222,
-0.3574864268,
0.6271565557,
-0.1066116691,
-0.0784966573,
0.0641870275,
0.5633756518,
0.2529529333,
-0.1901661456,
0.1485002637,
0.6897593737,
0.1092211828,
0.1991609186,
-0.4090479612,
-0.0733785853,
0.0952194333,
0.4398109913,
-0.4073925316,
0.1320136786,
0.0775018483,
-0.0325037614,
0.2144829035,
0.1083312407,
-0.0670485198,
0.2884331346,
0.224722743,
-0.0826958716,
-0.0157324187,
0.2709609568,
-0.1798172295,
0.1594811976,
0.4164328575,
-0.1629319638,
-0.0383525528,
-0.1796808243,
-0.3229568303,
0.3180890977,
-0.0788329244,
0.5116453767,
-0.1500653028,
0.0236004815,
0.1203980073,
-0.1022779867,
-0.0734587759,
-0.0174241997,
-0.282533586,
-0.0966025889,
-0.1130623221,
0.0154975131,
0.1525218487,
-0.0754138827,
-0.3999121785,
0.0115297232,
0.0648081824,
0.014566604,
-0.2211717516,
0.3539468646,
0.1323067397,
-0.0865558237,
-0.1187740862,
0.2663406134,
0.1861677021,
0.0791085139,
0.3964464366,
0.0986074358,
0.2052933127,
-0.2505774498,
-0.1120993495,
0.4844500422,
-0.1962547451,
0.1562967002,
-0.2818820775,
-0.074549377,
0.4282445908,
0.1892059445,
0.1495198756,
-0.0909322277,
0.1781175435,
0.3216136396,
0.2176576704,
0.2503772378,
-0.2243137062,
0.2397249639,
0.2951151431,
-0.3496769667,
0.0404901356,
0.2224864662,
0.042781394,
-0.2908243239,
-0.0233579017,
-0.1991866231,
0.3578400612,
0.0737689734,
0.0659102798,
-0.294162035,
-0.0975085497,
-0.1970732659,
0.0982192457,
-0.0139929391,
-0.098262921,
0.0808209926,
-0.0495459177,
-0.1687762737,
-0.2680054605,
0.1539384127,
0.0446604937,
0.3528860211,
-0.3059106171,
0.0973192006,
-0.0127629042,
0.2521750927,
-0.0604737066,
-0.3014186025,
0.0552330911,
-0.2555606365,
-0.2118461579,
0.248257488,
-0.0474250279,
-0.1437077522,
-0.0814492628,
0.3157690167,
0.2143787146,
-0.3621744514,
-0.3067260087,
-0.2365988642,
-0.1183377728,
-0.1699168682,
0.3378151953,
0.0872206092,
0.1963418424,
-0.0735869259,
-0.1557123363,
-0.1935284734,
-0.0977739543,
-0.1680150181,
0.0816523507,
0.1938211024,
-0.1836408079,
0.3560245931,
-0.531170249,
0.0350950137,
0.2957319915,
-0.2823810279,
-0.1642796099,
0.3820289373,
-0.0902659968,
-0.3041514754,
0.0562245175,
0.1490203738,
-0.2280772775,
-0.2262064368,
0.1455481052,
0.0563633516,
0.1158923656,
-0.2805106938,
0.0901526138,
-0.0288884155,
0.4666122496,
-0.1933831424,
-0.2513418794,
-0.1854760051,
0.647325635,
0.0334665664,
-0.2793291211,
-0.1435447335,
0.0893830582,
-0.1167957485,
-0.0809699893,
-0.4640572071,
0.154427737,
-0.394426167,
0.5134145617,
-0.2122780085,
0.1099837795,
0.1466538012,
-0.3103833795,
0.04817947,
0.2114719301,
-0.0594055206,
0.1511203945,
0.1554527879,
0.1205790043,
0.0782573074,
0.6237228513,
-0.2136435509,
0.2885496914,
-0.1777597368,
-0.1728208661,
0.3498381972,
0.0695882142,
0.2416098267,
-0.3530932963,
-0.1464720964,
-0.2309070379,
0.0744837746,
-0.3759376407,
0.165977478,
-0.014043686,
-0.2986564934,
0.030101046,
-0.0075988024,
-0.1319839358,
-0.0708854273,
0.2679991424,
0.0446147919,
0.0690059662,
-0.0856294185,
0.2743794918,
-0.3619645834,
-0.2205962241,
-0.0780427679,
-0.0102088675,
0.1685325503,
-0.2418088764,
-0.5344123244,
-0.1225281581,
-0.429756999,
0.1782602817,
-0.1769813895,
0.5807366371,
0.0980252773,
-0.3366995752,
0.379542321,
0.0624000728,
0.6375267506,
0.2469394952,
0.0608424395,
0.141572535,
-0.1365588903,
-0.7212395668,
0.0286244527,
0.228357017,
-0.1198738515,
0.3681825399,
0.6995570064,
-0.1067276374,
-0.0936528295,
-0.1264532804,
0.3635672331,
-0.2390453219,
-0.4294119775,
-0.1454217136,
-0.339548409,
-0.0486599803,
0.1412876695,
0.2077572942,
0.510229528,
0.3965985179,
0.0031082854,
-0.209640801,
-0.0473891795,
-0.0402109697,
0.0379882976,
0.3384119868,
-0.0584833547,
0.3670161366,
-0.2865016162,
0.2127579153,
-0.160214752,
0.4126996696,
-0.2022041678,
-0.0719747543,
0.3335326314,
-0.2052236795,
-0.0112011135,
0.3617826104,
0.2375923395,
-0.0724408031,
-0.138676554,
0.2013557404,
-0.1970276535,
-0.1319130212,
-0.1617801934,
0.0107375942,
-0.0266841315,
-0.1130771339,
0.3312246799,
0.0599073172,
0.0554094315,
0.1973131895,
-0.2578003705,
0.1007327959,
0.6957802773,
0.2066818774,
1.070002079,
-0.4297010005,
0.0261725169,
0.1830734015,
0.133229807,
-0.0664950311,
-0.1622082144,
-0.2958098948,
-0.3466523886,
0.1041413322,
0.1430852115,
-0.2020396888,
-0.1270280033,
0.3857889175,
0.1655086726,
-0.0757701099,
-0.3193404675,
0.2646411359,
-0.3175807893,
0.3741774857,
0.0279620271,
-0.4371841848,
-0.5361632705,
-0.0206224751,
-0.0023404919,
-0.0453866385,
0.0146704391,
0.1655901968,
-0.0171105266,
-0.2421848923,
-0.0378913358,
-0.2156960517,
0.131554991,
0.2387964725,
0.2291115522,
-0.3089774251,
-0.1866573095,
0.4068341851,
0.4967941344,
-0.1496444046,
-0.0450803488,
0.1493596435,
0.1311116964,
0.1146299317,
0.1725501418,
-0.2026838511,
0.1210023463,
-0.0790864527,
0.1139865816,
-0.1197758541,
-0.2074473351,
-0.4152697325,
-0.1680641472,
0.0990770012,
0.2944333255,
-0.2348843515,
-0.2459640056,
-0.4113586247,
0.2255994827,
-0.0879932418,
0.0171282254,
0.3532118499,
0.128350243,
0.2408346832,
-0.1167027652,
-0.2057855129,
-0.0369386859,
0.3736333847,
0.0963334292,
-0.3826687336,
0.2273897678,
0.047889933,
-0.2305282354,
-0.1743089557,
0.3632318974,
0.2470695376,
-0.4045790434,
0.1640165895,
0.0160552971,
-0.0228653699,
-0.0384316631,
0.1288541108,
0.2164089829,
0.0222294535,
-0.1649478376,
-0.2441233844,
-0.5539366603,
-0.0741590708,
0.233970508,
0.0861404389,
0.1739710569,
-0.5396533608,
-0.2221938372,
0.0597387776,
-0.1364131123,
-0.0341860987,
-0.01905597,
0.1044133157,
0.1257189363,
-0.0074808141,
0.1417955607,
-0.044320602,
0.0587475449,
-0.1436630934,
-0.0112721249,
-0.0658591911,
0.1035139114,
0.1987862587,
-0.0456749648,
-0.3167662024,
-0.1872193366,
-0.4499410093,
-0.1662235707,
-0.351100117,
-0.1727161705,
0.0560745895,
-0.0659362525,
-0.2894797027,
0.3735765219,
0.1247930974,
0.0399024859,
0.3756253719,
-0.0926093683,
0.4059258103,
-0.059629526,
0.1381235868,
0.2167511284,
-0.1698895246,
-0.305119127,
0.1427730173,
0.2466361821,
-0.1016238779,
0.3579625189,
-0.2795628905,
0.0342391282,
0.2548421621,
0.0009393394,
0.155984804,
-0.2034270465,
-0.3396353126,
0.2007689774,
0.0653721094,
-0.0298558585,
-0.2698593736,
-0.0048850104,
-0.0707808509,
-0.2545434833,
0.3708544672,
0.4399252236,
-0.2043179572,
-0.1247812212,
0.0630113333,
0.5689049959,
-0.054268375,
-0.4450152814,
0.724183023,
-0.0098484904,
-0.0151661094,
0.1700899452,
0.0891746059,
0.0543677062,
0.5115528703,
-0.2473191023,
0.1056134179,
0.338052541,
0.4634328187,
-0.4425359666,
-0.2838796377,
0.3434023261,
0.2554889917,
-0.2900564969,
-0.1349401623,
0.1769852787,
0.2424835861,
-0.2656915188,
-0.0772931576,
-0.2843952179,
0.2597667873,
-0.3065815866,
0.0730445907,
-0.3176294565,
-0.0146050602,
0.031600222,
0.0886100084,
-0.2566403449,
-0.0176415928,
-0.2150327563,
0.2963843346,
0.0061708763,
0.1056656539,
0.0663890019,
0.0169939287,
-0.0523179471,
-0.4044032693,
-0.0340555795,
-0.2851507366,
-0.0472717062,
0.2069106251,
-0.3241382539,
0.4127493203,
0.5296906233,
-0.0159817319,
0.1172253937,
0.0412648581,
-0.0809835419,
-0.0211193897,
0.1505696177,
-0.1537805796,
0.2145950198,
0.1504524946,
-0.0943380892,
-0.0771883354,
-0.3264720738,
-0.1721999943,
0.4279319644,
0.0687273294,
0.4512877464,
0.006875623,
-0.343526125,
-0.2708038986,
-0.0174022429,
0.0194846243,
-0.2078588009,
0.2200276852,
0.0367584899,
0.1026137248,
-0.0131483413,
-0.0386599526,
-0.38879022,
0.5161965489,
0.3052851856,
-0.4052082896,
-0.2370073795,
-0.2756309509,
-0.6192656159,
0.1023000926,
0.085230194,
-0.1562981904,
0.420132041,
0.2299825549,
0.4341725707,
0.1145569831,
-0.1235432327,
0.1211631,
-0.1024005413,
0.4559915066,
-0.0728733316,
0.0316689312,
-0.0157783367,
0.1788159013,
-0.1881527603,
-0.4931194186,
0.4214515984,
0.2105397284,
-0.0832052305,
-0.1440434158,
0.1135310903,
-0.3183138371,
0.491606921,
0.4417492747,
0.085435681,
0.0012172237,
0.3090945184,
0.0343612507,
0.2861703634,
-0.0496505052,
0.0325210318,
0.2648926079,
-0.1444530189,
-0.0063601732,
-0.0998491943,
0.3538445532,
-0.2445944846,
0.0030523948,
-0.2362172306,
-0.1951006651,
-0.0765064657,
0.0317686051,
-0.2294916511,
0.2126775384,
0.3267273009,
-0.0665910393,
0.2403956205,
0.2829751968,
-0.2431827784,
-0.1056497917,
0.2305815518,
0.0404737256,
-0.1472239792,
0.0045782439,
0.1573977023,
0.0249263197,
0.154742375,
-0.3673828244,
-0.1348811835,
0.255736053,
-0.1095802635,
-0.1240492463,
0.3603810966,
-0.2274814695,
0.1332024783,
-0.1306196004,
0.2775727212,
-0.1001717448,
-0.0750303566,
-0.401540637,
-0.2252209783
] |
https://github.com/huggingface/datasets/issues/2099 | load_from_disk takes a long time to load local dataset | Do you know what step is taking forever in the code ?
What happens if you interrupt the execution of the dataset loading ? | I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :) | 24 | load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :)
Do you know what step is taking forever in the code ?
What happens if you interrupt the execution of the dataset loading ? | [
-0.3577091694,
-0.1911457479,
-0.0542890728,
0.2522046864,
0.3178028166,
0.0741006061,
0.4124634266,
0.2019449323,
0.6933250427,
0.0321035497,
0.1932915151,
0.4987613559,
0.1199500635,
-0.0854374915,
0.0782648474,
0.147790283,
0.3398176432,
0.2383550704,
0.4402109683,
-0.1339955628,
-0.3000718951,
-0.0153762288,
-0.1427362263,
0.0422025025,
-0.1994237304,
-0.1508755386,
-0.052263245,
0.0502908081,
-0.1458297223,
-0.2906325758,
0.0190016329,
-0.0184637681,
0.2739636898,
0.2816295624,
-0.0001262479,
-0.2672606707,
0.0696519986,
0.1940070391,
-0.2356900573,
0.3061158955,
0.3798666894,
-0.4438564777,
0.2077926397,
-0.3478527069,
0.1490970105,
-0.2778461576,
-0.2573789358,
-0.3251241148,
-0.0373223536,
-0.1680576354,
0.0454372205,
0.4464399219,
-0.3012802005,
0.0890897661,
-0.1744765043,
0.3106311262,
-0.1221052408,
0.0339282081,
0.582390368,
-0.0583967343,
-0.0453898534,
-0.0751693696,
-0.1739267707,
-0.130546689,
0.4071651697,
0.0562381819,
0.2787831724,
0.0998647958,
0.0840036571,
0.1261286139,
0.6219445467,
-0.0203816015,
0.0500373989,
-0.216128096,
-0.0790368468,
-0.3577186465,
0.4000559747,
0.0030648001,
-0.3239596784,
0.1873581856,
-0.0897827595,
-0.0954793841,
-0.0011595041,
0.226066649,
-0.1863957047,
-0.1411529779,
0.0256379806,
0.1344275177,
0.2987033129,
-0.1170694083,
0.0555923693,
-0.0563120134,
0.1497805417,
0.4445003867,
-0.4172328711,
-0.1911895275,
0.0042200498,
0.1244220287,
-0.1765966117,
0.1036823094,
0.1432673633,
0.214681685,
-0.1279767603,
-0.0154737085,
0.2563350499,
0.3761743605,
-0.1128489524,
0.0965205729,
0.1039663255,
-0.3212372363,
-0.0395906232,
-0.0354097933,
-0.2497456372,
-0.0189913698,
0.4814791083,
-0.4471079111,
-0.2001496404,
-0.1323121935,
-0.0559439175,
0.2049454898,
0.4125043452,
-0.0235759653,
0.2181765288,
0.2371750027,
0.0863843709,
0.4874056578,
-0.0957281739,
-0.0333785862,
-0.2088415623,
-0.1472738981,
-0.0681418553,
-0.291084677,
-0.1855146736,
0.193146646,
0.0448805615,
0.2586332858,
-0.1528830528,
0.2015703022,
-0.2130121291,
0.0637815744,
-0.1322871298,
-0.1558227092,
0.2541341782,
0.1592625678,
-0.1326762885,
0.2026860118,
0.1348428279,
-0.3092467785,
-0.4058166742,
0.4017789662,
-0.1136582941,
-0.354509294,
-0.4384787679,
0.0137397768,
-0.2659830749,
-0.0327591188,
-0.3687292933,
-0.0985769629,
0.0929258913,
0.0433791354,
-0.0409643613,
-0.1871865988,
-0.0954578519,
-0.0469433554,
0.0055030212,
0.1939483583,
-0.4462920725,
0.2134212852,
-0.2279571593,
0.2241954803,
0.2977639139,
0.6412928104,
-0.2757304311,
0.3365718722,
-0.2637680173,
0.2700737715,
0.4910583496,
-0.0406599715,
-0.3431296349,
0.7155485153,
-0.1504545808,
-0.1908351481,
0.0214610193,
0.5547387004,
0.2817489505,
-0.0781409293,
0.0928896368,
0.6829155087,
0.0984283835,
0.1808475554,
-0.3708578348,
-0.0509108678,
0.0724433959,
0.486771524,
-0.4286139309,
0.1816754639,
0.152992636,
-0.0166827813,
0.1958254874,
0.0571990795,
-0.074130863,
0.2589172125,
0.2310200185,
0.0226326287,
0.0371012352,
0.2178667188,
-0.2101086378,
0.1258466095,
0.5279915333,
-0.2242012024,
-0.0082042441,
-0.1891958714,
-0.3130004108,
0.3344785869,
-0.132424891,
0.6150858402,
-0.1887340993,
0.0111449976,
0.0530640259,
-0.1579791605,
-0.200695619,
-0.0270682238,
-0.2793726325,
-0.0978190452,
-0.1210643351,
0.006896995,
0.1456566006,
-0.0332151353,
-0.4086244404,
-0.0288240053,
-0.0118708909,
0.0069378726,
-0.1949530542,
0.3073679805,
0.1759619564,
0.0497085974,
0.0049632955,
0.1439475715,
0.0891772434,
0.0135562494,
0.317320168,
-0.0389471762,
0.2369765639,
-0.2791321874,
-0.0835859701,
0.4249714017,
-0.2261413038,
0.2390495837,
-0.2577945888,
-0.1333371401,
0.3874960542,
0.0980767161,
0.1315012276,
0.0421081483,
0.2405785024,
0.3197243512,
0.2842450142,
0.297832936,
-0.293325156,
0.2334148586,
0.2815617025,
-0.3991184235,
-0.1306753755,
0.1706740111,
0.0838243514,
-0.2651280165,
-0.0376284122,
-0.10817305,
0.2923420072,
0.1296147108,
0.0444215648,
-0.3026951551,
-0.0511694551,
-0.1725468785,
0.1334515214,
-0.0285685919,
-0.0655028597,
0.0821653903,
-0.0790794343,
-0.1506348997,
-0.3358417749,
0.0008962974,
0.1101569384,
0.404070586,
-0.3022893667,
0.2084806561,
-0.101575397,
0.0667804778,
-0.0115138572,
-0.2169557661,
0.1370062828,
-0.1746399403,
-0.2419863492,
0.2149675637,
-0.0095612481,
-0.135900557,
-0.0398200825,
0.4075905085,
0.174026072,
-0.4136064053,
-0.3883340359,
-0.292763859,
-0.1515943706,
-0.1457687616,
0.4902333021,
0.1144225597,
0.2129695565,
-0.0206122473,
-0.1446674019,
-0.2113120556,
-0.1823827624,
-0.1195884347,
0.0484519862,
0.1704611182,
-0.1940094978,
0.3333063424,
-0.5447800756,
-0.0393552333,
0.2153695226,
-0.2854783535,
-0.2662696838,
0.3533626795,
-0.1288696676,
-0.3315468729,
0.0084264427,
0.0862203985,
-0.1368306875,
-0.2057428956,
0.2223114669,
-0.0022184104,
0.1104767472,
-0.2818076909,
0.0997147858,
0.0512812212,
0.4467152953,
-0.257917583,
-0.1771109551,
-0.2561303377,
0.6002790928,
0.0168121122,
-0.2479854375,
-0.0719554275,
0.1086515188,
-0.1167464554,
-0.0459049791,
-0.5427112579,
0.2715321481,
-0.464879632,
0.4532852471,
-0.2637374997,
0.0398228541,
0.0943993554,
-0.2558393478,
0.0357977003,
0.2343972325,
-0.1071774065,
0.1661346555,
0.0742161199,
0.1016752571,
0.0548775457,
0.6813256145,
-0.2222060263,
0.3173038065,
-0.2216820866,
-0.1420520097,
0.3213464618,
0.0146833379,
0.2703048289,
-0.3492724001,
-0.1600702703,
-0.252799511,
0.1392287612,
-0.360352844,
0.1603134871,
-0.0825725049,
-0.3704122007,
0.0258408412,
0.0244622082,
-0.0270034969,
-0.0376635455,
0.2160634547,
-0.0352761038,
0.0675721914,
-0.0972189903,
0.1948967427,
-0.3613538742,
-0.235332936,
-0.1472592801,
0.024483107,
0.1677020788,
-0.2305628955,
-0.6383593678,
-0.0635865554,
-0.4090248048,
0.1462835073,
-0.1857919097,
0.4481493831,
0.0315241218,
-0.2720535994,
0.4575546384,
-0.0128175821,
0.6455438733,
0.3132840991,
0.0661058351,
0.1790157855,
-0.1667530835,
-0.6522542834,
0.0510065407,
0.2501664162,
-0.0701479316,
0.3510231972,
0.6979834437,
-0.0248681456,
-0.1324621588,
-0.0856424123,
0.3518337309,
-0.233981207,
-0.5040017366,
-0.1591245979,
-0.3802189529,
-0.1185236126,
0.2002325654,
0.1421144903,
0.5277097821,
0.3856259286,
-0.0689023733,
-0.1792728007,
-0.0730499923,
0.0671483278,
0.094652161,
0.296164453,
-0.0750328153,
0.4328197837,
-0.2789562345,
0.1389794052,
-0.1538674235,
0.4000522196,
-0.1149566025,
-0.0283028521,
0.3496228158,
-0.2214351445,
0.0919388384,
0.4316241145,
0.2227868587,
0.0650334507,
-0.1120346412,
0.2019875497,
-0.2372818887,
-0.021790741,
-0.1702499688,
0.0353051573,
-0.043667499,
-0.1517340839,
0.2699774802,
0.0380760357,
-0.0135923699,
0.2379071116,
-0.0789270699,
0.1283092946,
0.6811935306,
0.1408230215,
1.191836834,
-0.4987132251,
-0.008294506,
0.0961236507,
0.1430039704,
-0.1005693376,
-0.1519059986,
-0.3217868507,
-0.3388420343,
0.0811909363,
0.148239851,
-0.248988241,
-0.1232927293,
0.423846662,
0.1637031138,
-0.126050964,
-0.2401726842,
0.3148698509,
-0.3412212133,
0.4762750268,
0.0087067205,
-0.442618072,
-0.4776332974,
-0.0112776943,
-0.0151017923,
-0.069886148,
-0.0370830446,
0.1763518453,
0.0186256915,
-0.1760469228,
-0.0399731845,
-0.1425019205,
0.1810689867,
0.1528138071,
0.1570992619,
-0.2341352999,
-0.0617595464,
0.4883342981,
0.4086742103,
-0.0087383334,
-0.0027238689,
0.2221082449,
0.0705401599,
0.1289340556,
0.1028665453,
-0.250001967,
0.0571480989,
-0.1275209039,
0.0429314375,
-0.1080661714,
-0.1555734873,
-0.4990603328,
-0.1131400913,
0.1605976373,
0.3514446318,
-0.1212952211,
-0.227640152,
-0.2395579368,
0.2034032047,
-0.0467718095,
0.0184319243,
0.3179139197,
0.1737434119,
0.275746882,
-0.0212594476,
-0.2673325539,
0.01626141,
0.3020543754,
0.0170833375,
-0.3022372127,
0.3309482932,
0.0865604877,
-0.2429787964,
-0.200722158,
0.3777851164,
0.3468032777,
-0.4271836877,
0.1152070165,
-0.0215390697,
0.0429573506,
0.0788998157,
0.0687572584,
0.1683828384,
-0.013996359,
-0.1238839328,
-0.2372079492,
-0.5546424985,
-0.0506821945,
0.1872416586,
0.1470965594,
0.2197024822,
-0.4283144772,
-0.2838522196,
0.0944497734,
-0.1446280479,
0.0714250877,
-0.1175401062,
0.1290344596,
0.0972546116,
-0.0604092777,
0.0707978234,
-0.1616988927,
0.0573552698,
-0.1087409481,
0.0278357156,
-0.0904188901,
0.07738249,
0.2150375396,
-0.0356081277,
-0.2600281239,
-0.1834861636,
-0.4841846824,
-0.1761963069,
-0.3114586473,
-0.1365017891,
0.0177768841,
-0.0482174382,
-0.4042714834,
0.3332403302,
0.1770691574,
0.0136790425,
0.3767221272,
-0.0358716585,
0.4288918376,
-0.0598753653,
0.1239347458,
0.2064662576,
-0.1862599701,
-0.2938395739,
0.181388244,
0.341072917,
-0.129602164,
0.323910594,
-0.2449263036,
0.0658396482,
0.2200422287,
-0.0047920458,
0.147865817,
-0.1227509826,
-0.2767171264,
0.2896311581,
0.0481096506,
0.0177411735,
-0.2249453813,
-0.0619255081,
-0.1368288249,
-0.2501653433,
0.2854050398,
0.3567179441,
-0.1237794533,
-0.1079097465,
0.044900395,
0.5746724606,
0.0202322118,
-0.4783281386,
0.58808285,
-0.0703882128,
-0.0385695919,
0.2276904136,
0.2314761132,
-0.0237395652,
0.6256382465,
-0.2442820072,
0.0691805035,
0.3443624973,
0.615409255,
-0.364161253,
-0.3480572999,
0.3312958479,
0.2959240675,
-0.2161133438,
-0.1658430994,
0.1747484356,
0.1850937903,
-0.2219774425,
-0.1320073605,
-0.2278194726,
0.3173689246,
-0.2714670897,
0.1096017957,
-0.3770473599,
0.0084145069,
0.0155456811,
0.1957461685,
-0.2598243952,
0.0120409373,
-0.2839380801,
0.2939405739,
0.045080483,
0.0761364475,
0.0730990022,
0.006818071,
-0.0483451821,
-0.4155161977,
-0.0145707391,
-0.3586176038,
-0.0320335142,
0.2837154567,
-0.2935307026,
0.3421539962,
0.4888448715,
-0.0014261417,
0.0711880401,
-0.0501824059,
-0.0979093164,
0.05053363,
0.1878016442,
-0.1198868155,
0.2970224023,
0.1994645298,
-0.1026526019,
-0.0517393202,
-0.4618653655,
-0.1480224878,
0.4318404198,
0.0595430844,
0.3271249235,
0.1006135941,
-0.2961323857,
-0.3213715553,
0.1229028553,
-0.0750291273,
-0.1075351238,
0.2633378506,
0.0025236271,
0.0956817195,
-0.0516839474,
-0.0350603499,
-0.3884757757,
0.5839489102,
0.3617030382,
-0.3527218699,
-0.2170393318,
-0.3836129904,
-0.6794734001,
0.0733423531,
0.0394689031,
-0.0809108838,
0.4049059153,
0.2302095294,
0.4591108859,
0.0503460355,
-0.1319798231,
0.1001786441,
-0.1748910248,
0.3998599946,
-0.0295774378,
0.0278938003,
0.0828517526,
0.1551285535,
-0.2668427229,
-0.4360184371,
0.4621650279,
0.2074248344,
-0.1047062501,
-0.1270344108,
0.0779106766,
-0.3120549321,
0.3903245628,
0.3595148921,
0.0061718263,
0.1256821901,
0.3428462446,
0.1056971326,
0.2859565318,
-0.0386301726,
0.0240415186,
0.2289867997,
-0.0896624476,
-0.077730231,
-0.053752955,
0.4169664681,
-0.1711569726,
-0.0300593507,
-0.2994280457,
-0.1029419154,
-0.1097695529,
-0.0798364356,
-0.2138461173,
0.2689222991,
0.308272332,
-0.0050271032,
0.2078597546,
0.2081072628,
-0.2628805041,
-0.0212146677,
0.2440169454,
0.0182843357,
-0.1810207367,
0.0215865634,
0.1300420463,
0.2562041581,
0.1501438469,
-0.2618188262,
-0.1183140427,
0.2275494039,
-0.1547403485,
-0.1117919087,
0.4511462748,
-0.2433211803,
0.1806146502,
-0.1649068594,
0.1835406721,
-0.0875929296,
-0.0238011517,
-0.4564520121,
-0.279227525
] |
https://github.com/huggingface/datasets/issues/2099 | load_from_disk takes a long time to load local dataset | After a synchronous discussion, we found that the cache file sizes have an enormous effect on the loading speed: smaller cache files result in faster load times. `num_proc` controls the number of cache files that are being written and is inversely proportional to the individual file size. In other words, increase `num_proc` for smaller cache files :)
Maybe this can be highlighted somewhere in the docs. | I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :) | 66 | load_from_disk takes a long time to load local dataset
I have an extremely large tokenized dataset (24M examples) that loads in a few minutes. However, after adding a column similar to `input_ids` (basically a list of integers) and saving the dataset to disk, the load time goes to >1 hour. I've even tried using `np.uint8` after seeing #1985 but it doesn't seem to be helping (the total size seems to be smaller though).
Does anyone know what could be the issue? Or does the casting of that column to `int8` need to happen in the function that writes the arrow table instead of in the `map` where I create the list of integers?
Tagging @lhoestq since you seem to be working on these issues and PRs :)
After a synchronous discussion, we found that the cache file sizes have an enormous effect on the loading speed: smaller cache files result in faster load times. `num_proc` controls the number of cache files that are being written and is inversely proportional to the individual file size. In other words, increase `num_proc` for smaller cache files :)
Maybe this can be highlighted somewhere in the docs. | [
-0.3226237893,
-0.1608177423,
-0.0745908022,
0.2495030165,
0.2985534072,
0.0387584418,
0.4221411049,
0.2822891176,
0.742570281,
-0.0142083466,
0.128698498,
0.5218666792,
0.1710795313,
-0.0604945198,
0.1026294157,
0.1128980368,
0.3352092206,
0.2497863322,
0.4394034147,
-0.1052009761,
-0.2460142374,
0.0447133034,
-0.07327234,
0.0021349899,
-0.2016451806,
-0.0709653124,
0.0490922481,
0.0603728816,
-0.1569584906,
-0.311006695,
0.0576225147,
-0.0301363189,
0.2484993339,
0.1560703516,
-0.0001240785,
-0.2502488792,
0.0976855159,
0.1681645215,
-0.2215495408,
0.2777532637,
0.4692353606,
-0.4544666708,
0.2095417827,
-0.3286707401,
0.1093203872,
-0.2615487874,
-0.2773528397,
-0.234493494,
-0.144531697,
-0.1392447203,
0.0578051135,
0.4935594797,
-0.3358248472,
0.0392280854,
-0.1054478586,
0.2524725795,
-0.2108765244,
0.0278607383,
0.5619884133,
-0.0642877892,
-0.1517484188,
-0.0723266751,
-0.1665254831,
-0.0186406635,
0.4654619396,
0.0913547873,
0.3007299304,
0.1481364816,
0.0586195961,
0.1984868646,
0.6188425422,
0.0647187829,
0.0020859838,
-0.2517012358,
-0.1446766555,
-0.326128006,
0.4937446713,
-0.0850375146,
-0.2823266685,
0.1968884766,
-0.0919124484,
0.0032242462,
-0.0007409304,
0.18871589,
-0.1272675842,
-0.1371296197,
0.0356844366,
0.0739292949,
0.4173915386,
-0.0824337602,
0.0908485502,
0.0813884214,
0.1108410507,
0.3806839883,
-0.4470405281,
-0.2022478878,
0.0474869274,
0.1267511696,
-0.1574435383,
0.1289218664,
0.250787586,
0.284054786,
-0.1623961031,
-0.0145501588,
0.1943363845,
0.4872796237,
-0.0886641294,
0.0122231469,
0.1112782508,
-0.2843340337,
-0.0522234328,
-0.0256254971,
-0.216100812,
-0.0837232322,
0.4585704803,
-0.4411866069,
-0.2838886976,
-0.1548159719,
-0.0263334066,
0.1521282494,
0.514611721,
-0.0873987973,
0.2107795328,
0.2231997699,
0.0778517127,
0.620402813,
-0.1289459914,
-0.040620096,
-0.2698878944,
-0.1998659223,
-0.0555291846,
-0.3001202941,
-0.1892196238,
0.2059864104,
0.0779302344,
0.2282761037,
-0.0683342367,
0.1639875025,
-0.1342832297,
0.0825808197,
-0.1125889271,
-0.1415143162,
0.2363201082,
0.2305314541,
-0.1208693087,
0.178139329,
0.1677366346,
-0.23451823,
-0.4652576447,
0.3355949521,
-0.2128035277,
-0.4199282527,
-0.4273705781,
0.007253807,
-0.2377493083,
-0.0651966482,
-0.395585835,
-0.0914320275,
0.1173492819,
0.0053257272,
-0.0422428325,
-0.204665184,
-0.1664454192,
-0.1167344451,
-0.0435950235,
0.126186043,
-0.378498435,
0.2095518708,
-0.169765681,
0.2436330616,
0.3041904569,
0.7334473133,
-0.2841472328,
0.2297362834,
-0.2150828093,
0.3058834672,
0.4823343754,
-0.0905486569,
-0.3905160129,
0.6984345317,
-0.0315407142,
-0.1900235713,
0.1222813874,
0.5592467785,
0.3014049232,
-0.1081741825,
0.0844723731,
0.6842623353,
0.1519717574,
0.1931612641,
-0.4408971369,
-0.0889710337,
0.0863691717,
0.4485251904,
-0.4481651783,
0.2106371373,
0.1492394358,
-0.0531967357,
0.1388075054,
0.0618643872,
-0.0824335888,
0.2182704955,
0.1804094017,
-0.0536859594,
0.0835709348,
0.2880492508,
-0.2089421451,
0.1803560406,
0.3568313122,
-0.2001405954,
0.1745317429,
-0.1622898579,
-0.2808541358,
0.2578679025,
-0.0638183802,
0.5850836039,
-0.1655809283,
0.0002598576,
0.1232824102,
-0.1895463765,
-0.1822957098,
0.0056736451,
-0.2607094049,
-0.1338569224,
-0.1187099665,
-0.053871233,
0.149546966,
-0.0276841633,
-0.3481992483,
-0.1139467061,
0.0274139754,
0.050444223,
-0.2307830304,
0.3136665821,
0.2384159863,
0.0728302822,
-0.0540890433,
0.2536269426,
0.1177991927,
0.0799251199,
0.3854442537,
-0.0348917097,
0.1577961892,
-0.2845807076,
-0.1133620143,
0.4743829966,
-0.1945811212,
0.2045001835,
-0.2393616438,
-0.1376258433,
0.4117897749,
0.1533878595,
0.1523720026,
0.0122169033,
0.2239198089,
0.3204173744,
0.3103186488,
0.3557278812,
-0.2361185849,
0.2998499572,
0.2733623385,
-0.3111578524,
-0.1637511551,
0.1904314458,
0.0677717179,
-0.3896795809,
-0.0465773344,
-0.0718713403,
0.3178160191,
0.1108625382,
0.0967892706,
-0.3655158281,
-0.126300931,
-0.2689042687,
0.1035790965,
-0.091372788,
-0.0813275874,
0.1268494129,
-0.0838836804,
-0.1407703012,
-0.3437015116,
0.0768223256,
0.0583928898,
0.3713033199,
-0.3226995766,
0.1442292333,
-0.1177647114,
0.1012654155,
0.0854585916,
-0.2584558725,
0.0992411971,
-0.1990337968,
-0.1569406092,
0.2382609099,
-0.0595439002,
-0.2230943143,
0.0155614167,
0.3806133866,
0.1620954722,
-0.3483739197,
-0.4424181283,
-0.2981951237,
-0.1366092861,
-0.1440676153,
0.4089345038,
0.1800207198,
0.124088496,
-0.0514700003,
-0.1754899472,
-0.1541036963,
-0.141701892,
-0.1339689642,
0.0971913114,
0.1634796262,
-0.2072188556,
0.2906838357,
-0.5274924636,
-0.0480182022,
0.2445214838,
-0.392034471,
-0.2549417913,
0.3617931604,
-0.1478643417,
-0.301710695,
-0.0606977046,
0.050527513,
-0.1136068478,
-0.2817183137,
0.2005337775,
0.0268039256,
0.1629439741,
-0.1670724899,
0.0840684026,
0.0241061822,
0.4369488358,
-0.2090640962,
-0.20050852,
-0.3366441429,
0.6655771136,
-0.0674733445,
-0.2943999469,
-0.1106713042,
0.162620008,
-0.0999385864,
0.0176798142,
-0.4852070808,
0.1754685044,
-0.3990999758,
0.4361284971,
-0.1872491986,
0.0231981706,
0.0902208686,
-0.2943100035,
-0.0100120306,
0.1943795234,
-0.0735586956,
0.2152551413,
0.1402678788,
0.0760767832,
0.0566536561,
0.5815753341,
-0.203392908,
0.2937358618,
-0.192866534,
-0.144155845,
0.3797109723,
0.0508838072,
0.2769877613,
-0.3881303668,
-0.0385314226,
-0.236574024,
0.0751915425,
-0.343319118,
0.1972091496,
-0.0419463515,
-0.3988678157,
0.0004406571,
0.0113649741,
0.0296946913,
-0.0258541889,
0.2768125236,
0.003179187,
0.0571150221,
-0.1580574214,
0.1955289841,
-0.3689617515,
-0.2207466364,
-0.0347212926,
0.0054603815,
0.1675373763,
-0.2262943834,
-0.581833899,
-0.0450043641,
-0.4573370218,
0.1102725565,
-0.1511329114,
0.4317117929,
0.0326880217,
-0.3267956972,
0.4497898221,
0.0165358409,
0.5992980003,
0.2426702231,
0.065381676,
0.1691063344,
-0.1939441711,
-0.6289978027,
0.0009364411,
0.2882149816,
-0.0558010787,
0.3640817106,
0.6817568541,
-0.0207284465,
-0.1427897513,
-0.1771030128,
0.2964544892,
-0.1825656891,
-0.4764571488,
-0.1564636379,
-0.3197120428,
-0.0298839323,
0.1361917704,
0.1223988757,
0.4730431437,
0.397028923,
-0.0510309376,
-0.1397125274,
-0.0794909075,
0.0569184422,
0.102546379,
0.3265590668,
-0.0831364542,
0.4017069936,
-0.2665259242,
0.1724073291,
-0.1436824799,
0.3578264415,
-0.1594265699,
0.0329034552,
0.3169461191,
-0.1690720022,
-0.0378934816,
0.4042509794,
0.2179450691,
0.0230437461,
-0.092269294,
0.1755309999,
-0.1289854348,
-0.0814669356,
-0.2395370901,
-0.0894289538,
0.062099915,
-0.1828179657,
0.3073571026,
0.0337958261,
0.022925511,
0.2029405087,
-0.1777442843,
0.1803438663,
0.6944705844,
0.2402531654,
1.1032584906,
-0.5289760828,
-0.049718257,
0.0803684145,
0.158739239,
-0.0673932731,
-0.2195411026,
-0.3331922591,
-0.3431915045,
0.0512356535,
0.140755266,
-0.2378756255,
-0.0988542885,
0.3970501125,
0.1244293451,
-0.1359526217,
-0.1707546115,
0.2494418323,
-0.3618456721,
0.4492153525,
0.0081473906,
-0.4845148325,
-0.5036979318,
-0.0180476662,
-0.0226316117,
-0.0701760799,
0.0573068038,
0.1429815888,
-0.0137580782,
-0.1082963496,
-0.0467247814,
-0.1943827271,
0.1463372111,
0.1657031476,
0.2384937406,
-0.2413222492,
-0.1573363245,
0.4588550627,
0.4183012545,
-0.1278506517,
-0.0574061424,
0.2050833255,
0.094076775,
0.1566063166,
0.1413857937,
-0.3012241125,
0.1008493677,
-0.1678158939,
0.0478647798,
-0.1583496332,
-0.1808529794,
-0.5726487637,
-0.0293082595,
0.1275886148,
0.2592931986,
-0.0812686533,
-0.2170274854,
-0.2679756284,
0.1614526361,
-0.0560319424,
0.0301200077,
0.3356842399,
0.1979071498,
0.2878727913,
-0.0600541085,
-0.2725399435,
0.0294415615,
0.3319965601,
0.0695775226,
-0.2590422332,
0.1596333832,
0.0203192532,
-0.2458758801,
-0.1667045951,
0.2685495615,
0.2566323578,
-0.389085561,
0.1351538897,
-0.0054591484,
-0.0711389482,
0.11057394,
0.0917999297,
0.2113630474,
0.083394587,
-0.1534250975,
-0.2042269856,
-0.5619238615,
-0.0693935156,
0.1208496168,
0.119735755,
0.2027740628,
-0.5310313106,
-0.2314298153,
0.1063451692,
-0.1486595124,
0.0223777369,
-0.0514778644,
0.0978181884,
0.0250888318,
-0.0955778733,
0.0847097561,
-0.110414803,
0.0245976821,
-0.1290599853,
-0.0582061782,
-0.0986011922,
0.0661908761,
0.2022104561,
-0.0261724666,
-0.3134871721,
-0.2149472833,
-0.444639504,
-0.2229788899,
-0.4078946412,
-0.1421504319,
0.082199499,
-0.1103838682,
-0.3081529737,
0.3577408791,
0.1771008819,
0.0394444615,
0.4326913059,
-0.0332106873,
0.4170438051,
-0.0510406867,
0.1291967034,
0.0842800587,
-0.1912926435,
-0.2347050011,
0.1777189076,
0.2868911922,
-0.1441696286,
0.3072477877,
-0.1540198326,
0.0407074094,
0.2540168464,
-0.0518828295,
0.1273431331,
-0.0752435029,
-0.2777113616,
0.1884875149,
0.0585010201,
0.0316700414,
-0.2745827436,
-0.0376400165,
-0.1089216024,
-0.2237673104,
0.3037157059,
0.589147687,
-0.2170903087,
0.0305279084,
0.0220106579,
0.5801917911,
-0.0736671537,
-0.4540027082,
0.5093352795,
-0.0273505449,
-0.0193563364,
0.2056340277,
0.105057098,
0.0155769661,
0.5493292809,
-0.1837938726,
0.0723785833,
0.3812025487,
0.6312499642,
-0.4592189491,
-0.2652800083,
0.3273642063,
0.3456686139,
-0.2631085515,
-0.1615938544,
0.2169780731,
0.2208642364,
-0.1987277716,
-0.0772709325,
-0.2528797686,
0.2544392347,
-0.2474378049,
0.0137343891,
-0.3680055141,
-0.0047217682,
-0.0032452792,
0.2030934393,
-0.2940655351,
0.0595920347,
-0.2064143419,
0.3588230908,
0.0225919615,
0.0779861435,
0.0846005827,
0.0032433523,
0.0085201636,
-0.3517469764,
-0.0209237095,
-0.385073334,
-0.0444688872,
0.3163788319,
-0.2234600335,
0.3441751599,
0.4706106186,
0.0197635964,
0.0042305365,
-0.0007329918,
-0.0443938076,
0.0451007783,
0.1677300185,
-0.1006319001,
0.213061437,
0.132303372,
-0.108019501,
-0.072020866,
-0.4006671607,
-0.2658491135,
0.4388963878,
0.0698804259,
0.3287582397,
0.1410547793,
-0.3015427589,
-0.2264059782,
0.1161172688,
-0.0401535705,
-0.1296412796,
0.2020005584,
0.0305201411,
0.1341311932,
-0.0184484143,
-0.0197691582,
-0.349953264,
0.646686554,
0.326861918,
-0.37646842,
-0.1538327783,
-0.3429899514,
-0.6594373584,
0.0901036337,
0.1378403604,
0.0102189481,
0.4335322976,
0.2976464033,
0.4147016406,
0.0565115474,
-0.0912933573,
0.0680739209,
-0.0804570764,
0.3307957649,
-0.0441672355,
0.0997030661,
0.0676349103,
0.154577598,
-0.2172724009,
-0.4932128787,
0.4301348627,
0.2421673983,
-0.0855951309,
-0.1617187262,
0.0767548829,
-0.2224022895,
0.5364189148,
0.3434115946,
0.045685865,
0.0446999855,
0.331073314,
0.0513146743,
0.1851569563,
-0.0491822213,
0.0688119754,
0.1604453027,
-0.119896315,
-0.0720121935,
-0.1018093824,
0.351532191,
-0.1771848798,
0.0738597363,
-0.321780175,
-0.13483271,
-0.1010627598,
-0.0538115017,
-0.2531953752,
0.2246578485,
0.2578515112,
-0.0074133398,
0.2533704638,
0.1613569558,
-0.2900329828,
-0.0014645085,
0.1636453718,
-0.0152297877,
-0.1333999038,
-0.0005008727,
0.1547701657,
0.259390682,
0.211956203,
-0.3160807192,
-0.1988020688,
0.174123019,
-0.1279716492,
-0.127360329,
0.436314702,
-0.2384276986,
0.2239918709,
-0.1776051819,
0.1725262403,
-0.0055300705,
-0.0610177331,
-0.5113269091,
-0.2912895083
] |
https://github.com/huggingface/datasets/issues/2092 | How to disable making arrow tables in load_dataset ? | Hi ! We plan to add streaming features in the future.
This should allow to load a dataset instantaneously without generating the arrow table. The trade-off is that accessing examples from a streaming dataset must be done in an iterative way, and with an additional (but hopefully minor) overhead.
What do you think about this ?
If you have ideas or suggestions of what you expect from such features as a user, feel free to share them, this is really valuable to us ! | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 84 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
Hi ! We plan to add streaming features in the future.
This should allow to load a dataset instantaneously without generating the arrow table. The trade-off is that accessing examples from a streaming dataset must be done in an iterative way, and with an additional (but hopefully minor) overhead.
What do you think about this ?
If you have ideas or suggestions of what you expect from such features as a user, feel free to share them, this is really valuable to us ! | [
-0.3108788133,
-0.3046273887,
-0.1025219336,
-0.0479801148,
0.0687685013,
-0.0700552911,
0.1910864413,
-0.0508348346,
0.136146605,
0.1569508016,
0.3037061989,
0.1940683722,
-0.1848984957,
0.3730878532,
0.3175563812,
-0.007721521,
0.1201919317,
0.4260938764,
-0.2305734456,
0.0468868166,
-0.0075152144,
-0.3915002048,
-0.1026721224,
-0.0120188743,
-0.0238753669,
-0.1791451424,
0.2561785579,
-0.2268670052,
-0.3328368962,
-0.2920054793,
-0.0948426425,
0.3715644777,
-0.14817141,
0.1622750014,
-0.0001207906,
-0.0428893492,
0.1374643296,
0.0590488911,
-0.584915638,
-0.1030332446,
-0.1841095388,
0.0425004587,
0.4369480312,
0.0075865239,
0.2101268768,
-0.3526919186,
-0.1396358013,
-0.4950591922,
0.1005164683,
-0.2342171669,
0.1155824512,
0.1027224362,
-0.3094598055,
0.2336923331,
0.3298901916,
0.4536733031,
-0.5429466963,
0.0720202327,
0.2324799001,
0.0431368724,
-0.1210568175,
0.2974913418,
-0.2007701695,
-0.1528941244,
0.5350205302,
-0.0998743102,
-0.210702002,
-0.4075067043,
-0.0728176832,
0.3070439696,
0.8722043037,
-0.2314075828,
-0.2588222921,
-0.3002792299,
0.2959438562,
-0.2492589951,
0.0199246444,
0.2672727704,
-0.1843284816,
0.0638790876,
-0.411372155,
-0.536726892,
-0.3401837647,
-0.0841032416,
0.5507416725,
-0.1750004441,
0.0372191668,
-0.0060785227,
0.1979061067,
0.0224976279,
0.6170967221,
-0.2264441848,
-0.2022963464,
0.1820370704,
-0.1922791898,
-0.2122164667,
-0.0563997403,
0.2362246513,
0.1903984249,
0.4510353208,
0.7375755906,
-0.0329860374,
0.2755360007,
-0.1032702178,
-0.1177369654,
0.082522206,
0.1956578493,
-0.1914613098,
0.2349564433,
0.1740173101,
0.2198192775,
0.0179996584,
0.1257084906,
-0.0469561517,
-0.1022859737,
-0.134196043,
0.1262619048,
-0.1515742838,
0.0811669528,
-0.0285396036,
-0.1162553877,
-0.0750429779,
0.2993288636,
0.0555919409,
0.1886070371,
0.2044251859,
-0.187105298,
0.3508718908,
-0.0804980546,
-0.2571533024,
0.0088630095,
-0.2000309974,
-0.1664548814,
0.4750288129,
0.3624808788,
-0.0876036584,
-0.1268796623,
0.3686203063,
-0.0611521602,
0.2437933385,
0.3272444904,
-0.2562048733,
0.0929729342,
0.3177511692,
-0.0812244117,
-0.2186976671,
-0.1118943021,
0.2880064845,
-0.0830698013,
0.3657186627,
0.0053953826,
-0.5483019352,
0.170889765,
0.0928530917,
-0.1274676621,
-0.0246373042,
-0.7149603367,
0.4606952667,
-0.2579353452,
0.0401661173,
0.278362751,
0.1570734382,
-0.0480403118,
-0.1101604253,
0.0858074576,
0.3789237738,
-0.2608049512,
-0.0232437775,
0.0542487614,
-0.1358048618,
0.1218102127,
-0.0106066335,
-0.4702013135,
0.2000152767,
0.0462344512,
-0.1331989914,
0.549813509,
0.2194535732,
-0.1146795824,
0.3090107441,
-0.008037433,
0.1739728749,
0.436806798,
0.1638069153,
0.0332267769,
-0.0741098374,
-0.3550983071,
0.1997156739,
0.0999732763,
-0.1582485139,
0.038643837,
-0.2926289737,
0.2996134758,
-0.0504015535,
-0.3303486109,
0.3204110861,
0.1587290168,
-0.2219254524,
0.0707158446,
-0.3053123951,
-0.1652633548,
-0.140546754,
0.2203619778,
0.1397406608,
-0.0833455101,
0.1656156778,
-0.5774098039,
0.2231898308,
0.1686060131,
-0.0816206336,
0.0517522022,
-0.2786858082,
0.2936159372,
0.2566469908,
0.0069582723,
0.2985520959,
-0.0226737075,
-0.4991946518,
-0.0524844378,
-0.2828561068,
-0.4251049161,
0.1305732727,
-0.4586176872,
0.1097252816,
-0.3391099572,
0.1836674362,
0.3947965801,
0.0719570965,
-0.1009672359,
0.0197077356,
-0.0954392105,
0.1250947416,
-0.1820268035,
0.1980029494,
0.12730667,
0.4344159067,
0.0719590783,
0.5853414536,
0.1416965872,
-0.3799539506,
0.3378414512,
-0.2595506907,
0.2171443999,
-0.0517184772,
-0.0917369127,
0.218434304,
-0.383518815,
0.4063926935,
0.2279463112,
-0.1913317889,
-0.0040310621,
0.301415801,
-0.2829813957,
-0.1211421788,
0.1992321312,
0.0372683294,
0.0940757692,
0.1732013971,
-0.2697512805,
-0.040375676,
-0.1568158567,
-0.0427139476,
-0.0762661844,
0.1561242342,
-0.0109283142,
-0.3204743266,
0.286737144,
-0.0927799195,
0.3964138925,
0.1984129548,
0.0820918158,
-0.0651768446,
0.0817171708,
-0.2824465632,
0.4200902581,
0.1205186322,
0.3258137703,
0.0309965722,
-0.0969613045,
-0.0039797164,
-0.4386236072,
-0.1053162143,
-0.1223822907,
-0.1773044914,
-0.3413566947,
0.0089964941,
-0.1540701389,
-0.1955709457,
0.146741271,
-0.1188899577,
-0.1021894664,
-0.0126230307,
0.239453733,
0.1834588051,
-0.1075840369,
-0.1036436111,
-0.2173334509,
0.5270032883,
-0.1992477775,
-0.0251715463,
-0.513759315,
-0.0452130809,
0.1988992095,
0.047259368,
0.0032080561,
0.0661681294,
0.4163732529,
0.1682761908,
0.1379342675,
-0.3983549774,
-0.1744871438,
0.1206516698,
-0.0368904136,
-0.0963432714,
0.0870490968,
0.1624211818,
-0.0842902958,
-0.1047167554,
-0.0965831354,
-0.3372973204,
-0.0799452811,
0.1049519405,
-0.3326286376,
0.2669529021,
-0.0691864491,
0.056667652,
-0.0044629239,
-0.2767608762,
0.2775224745,
0.0485981405,
0.060690213,
0.1481180191,
0.0797358751,
0.0233633518,
0.1676542014,
0.0961703584,
-0.0521216169,
-0.3047831655,
0.2845377326,
-0.167281881,
-0.1685497761,
0.0923687294,
0.0648944005,
0.0349513516,
0.5637583733,
-0.6988594532,
0.3132864833,
-0.1534543931,
-0.0188973099,
-0.3195338845,
-0.1869516224,
0.1386366785,
0.1478305757,
0.0079043582,
-0.1186839938,
0.1993913054,
0.0207725558,
0.0118297022,
-0.0454183593,
0.1649003923,
0.4724433422,
-0.2799657583,
0.7499018312,
-0.2328368723,
0.2019324303,
0.2562409639,
0.0631856695,
0.2966486812,
-0.2636045814,
0.192291379,
-0.2881788313,
-0.1836780757,
0.0131840557,
0.0328523777,
0.0454578102,
-0.3248318434,
-0.3126920462,
0.1917993873,
0.127060622,
0.0417599231,
0.0821789205,
-0.8073267341,
0.101494953,
-0.0185745284,
0.0763844252,
-0.124513194,
-0.2342165411,
-0.0198268965,
-0.1275022924,
0.5562239885,
-0.146359086,
-0.4232417345,
-0.0645834431,
-0.2479699552,
0.0382358432,
-0.030279763,
0.1276206374,
0.0367245898,
-0.1858837903,
0.2239858806,
0.2786922455,
0.1654660702,
-0.0336549953,
-0.2804148197,
-0.1969596446,
-0.1634920835,
-0.3167751729,
0.1226159036,
0.0242011994,
0.1295228302,
-0.4652247727,
0.128400892,
-0.0064170659,
-0.2135619074,
0.0068528745,
0.3506619632,
-0.0871526971,
-0.1996814907,
-0.2058724016,
0.1956336647,
-0.0508982576,
-0.052437447,
-0.0378704071,
-0.2354494482,
-0.4645161629,
-0.2731608152,
-0.2341304272,
0.0858576,
0.1269873679,
0.0659003332,
0.2296322733,
-0.039550744,
0.0203174576,
0.4007851779,
0.0371181592,
0.1847319901,
0.5451723933,
0.2208449692,
-0.3756822348,
0.103065297,
0.0247750208,
0.3193543553,
0.4243554473,
-0.1623533666,
0.3445613086,
0.0268175527,
0.0296842065,
-0.2936316133,
-0.2795347571,
0.018175859,
-0.3120168746,
-0.1259582937,
-0.6251108646,
0.4853065014,
0.0108014345,
-0.1116540506,
0.7630066872,
0.0746069103,
-0.1769555211,
0.3175776899,
0.2784121633,
0.9641883969,
0.1181242839,
0.1516844034,
0.3379050791,
-0.1131618321,
0.1988109648,
-0.2497757971,
0.0938189402,
-0.0258224756,
-0.5687527657,
-0.1515205503,
-0.2918736041,
0.3007472157,
0.4270747304,
-0.0435461774,
0.0606686361,
-0.2622159123,
0.2980576456,
-0.0733745173,
0.0167887509,
-0.2591687441,
-0.3974758089,
-0.4063357115,
0.0142314211,
0.1067011207,
-0.2799776793,
-0.0834435523,
0.1473346353,
0.2530606687,
-0.2305134535,
0.069522664,
-0.0503545925,
-0.3953576982,
0.1217973679,
-0.2768027484,
-0.4214163721,
0.1907436252,
0.2504665852,
-0.2979570329,
-0.0829800665,
-0.1388771534,
0.0645047128,
0.4400084913,
0.304949373,
-0.4049288332,
0.1805903167,
0.0650014877,
-0.1086576283,
-0.1329961419,
0.2398073077,
-0.1366388351,
-0.2205262929,
0.0143777132,
-0.1716655195,
0.3094852567,
0.0045684986,
0.1812601089,
0.1024333984,
0.2157662213,
0.0518088192,
0.0570429638,
0.0811733082,
0.0695533454,
-0.06098371,
0.123036027,
-0.2393782437,
-0.1617503017,
0.1064377576,
0.2069577277,
-0.1210742593,
0.3754947782,
-0.0528481454,
-0.3789210916,
-0.2747313678,
0.2893601954,
0.1397416443,
-0.7035723925,
-0.0738161355,
0.1489484906,
0.0486302674,
0.0033598952,
-0.0001006303,
0.0190455671,
0.0578898266,
-0.1634995639,
0.1071622223,
-0.2024371922,
0.1851764023,
-0.0340728201,
0.2404624224,
-0.0695148334,
-0.7264941931,
0.1870401204,
0.1360989213,
-0.1877744645,
-0.2514924407,
0.4108291864,
-0.0702516288,
-0.0630376488,
0.3864991367,
-0.1346449554,
-0.0181870982,
-0.0302041993,
-0.1721295118,
-0.1750433594,
-0.0975413024,
-0.0544019341,
0.2513288856,
0.0059323106,
-0.0712464601,
-0.2988916337,
-0.2655928135,
-0.3327389359,
-0.1161004156,
0.2361611277,
-0.1152720451,
0.0143652186,
-0.2170256376,
0.4655840695,
0.0696040466,
-0.4628806114,
0.221339792,
0.0723903477,
0.373279959,
0.1005703211,
-0.0579677299,
0.242619276,
-0.2007865608,
-0.0334783085,
0.1931096017,
0.116694808,
-0.0207375288,
0.0865887254,
-0.0320581049,
0.2666085064,
-0.2654097378,
-0.0668258592,
0.469732672,
0.1004366875,
-0.4031162858,
0.3078161478,
0.0776485652,
-0.1227740049,
-0.2271870226,
-0.0982636809,
0.0789742917,
-0.109283492,
0.2004921734,
0.3673204184,
0.0407646596,
-0.1634551287,
-0.0276838094,
-0.3696682751,
-0.0030447692,
0.2932277918,
0.4805443883,
-0.0604710281,
-0.090430364,
-0.0880321041,
0.371018976,
-0.0625511482,
-0.1868818998,
0.1075200289,
0.4149564207,
0.3388373256,
0.2124042362,
-0.021789223,
-0.2971413732,
-0.4956045747,
0.0196761936,
-0.342194438,
0.0325548127,
0.1744560897,
0.1863136292,
0.4558748305,
-0.2427099645,
-0.2187995911,
-0.2068071514,
0.1399272978,
0.062486615,
-0.1774531603,
-0.1007470861,
-0.1063496619,
0.0197081342,
-0.0756955817,
0.3763749301,
0.2480238378,
0.0486605316,
0.2859094739,
-0.0791630894,
0.5971515775,
0.2496231496,
0.3290762901,
0.1091703922,
-0.0760493279,
-0.0594750084,
0.2214473188,
0.0817485824,
0.1819231659,
-0.2918074131,
0.2225529402,
-0.0516979396,
0.0093405545,
0.3133377731,
-0.0394245014,
0.123092249,
0.3916556537,
0.4307101667,
0.0155740324,
0.2503002882,
-0.0300432909,
0.0618177652,
0.208174035,
0.1110253334,
0.2306714058,
-0.2183974087,
0.0934881791,
0.3168643117,
-0.2441271544,
0.1566063017,
0.0160384364,
0.0042062774,
0.0520986319,
0.5282918811,
-0.3212022781,
-0.2864102125,
-0.1384582222,
0.0164807476,
-0.0730279237,
0.7810719013,
0.0189245138,
0.2590925097,
-0.0830418691,
-0.2121020854,
-0.2754497826,
-0.201673612,
0.0507684015,
0.3989797533,
0.404106617,
0.0457765236,
0.2310051024,
0.4444928467,
-0.0495433435,
-0.4349986017,
-0.083757855,
0.1848332435,
-0.0879784152,
-0.1295755655,
0.0880277902,
0.4434050918,
-0.5368412733,
-0.1422271132,
0.0875880867,
0.0825188905,
-0.1041255444,
-0.0113940043,
0.1107942015,
0.1597878635,
0.3543705642,
0.4221054316,
-0.0528656244,
0.0254524853,
0.0959211886,
-0.0054677948,
-0.0167450234,
-0.4153026938,
-0.0394847542,
0.3166201711,
0.1445343196,
-0.1955688298,
-0.0833486617,
0.2049832344,
-0.0062321685,
-0.0104396939,
0.0906660855,
-0.003331311,
-0.3901951909,
0.0468912348,
-0.0875860006,
0.1657285243,
-0.049302008,
-0.0677295774,
-0.0582718588,
0.0354531854,
0.0463262051,
0.0341992304,
0.4161967635,
0.0515397266,
0.0287156701,
0.11389108,
0.2947538197,
0.5818417668,
0.0063398052,
-0.468257457,
-0.0402447358,
0.2554462552,
-0.4561415613,
0.2449321896,
0.5373559594,
0.0233585462,
0.0914053321,
-0.1944380999,
0.3159259856,
-0.0879746452,
0.138593182,
-0.2600434721,
-0.400644809
] |
https://github.com/huggingface/datasets/issues/2092 | How to disable making arrow tables in load_dataset ? | People mainly want this feature either because it takes too much time too make arrow tables, or they occupy too much memory on the disk. I think both the problem can be solved if we provide arrow tables themselves on datasets hub. Can we do this currently @lhoestq ?
| Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 49 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
People mainly want this feature either because it takes too much time too make arrow tables, or they occupy too much memory on the disk. I think both the problem can be solved if we provide arrow tables themselves on datasets hub. Can we do this currently @lhoestq ?
| [
-0.2959379256,
-0.2490311861,
-0.1036210358,
0.2489059865,
-0.045034267,
0.1605257541,
0.2928253114,
-0.0211191438,
0.3396780789,
0.2951470017,
0.0326352566,
0.4835269749,
0.0262511224,
0.0174947158,
0.2436439991,
0.1563292593,
-0.0142449699,
0.5176952481,
-0.3697736859,
-0.0229949579,
-0.06171868,
-0.3304603696,
-0.0252593905,
0.1437550485,
-0.2534678578,
-0.1641297191,
0.191216588,
-0.2878651321,
-0.4046610594,
-0.2799391747,
0.3027499616,
0.3371615112,
-0.164956212,
0.1134255528,
-0.0001224674,
0.0932130441,
0.1214204729,
0.2131108791,
-0.4440469742,
0.0841318816,
-0.2974019349,
-0.0556283705,
0.4793872237,
-0.0023392141,
0.2543595731,
-0.2447422743,
-0.2770702243,
-0.3397580385,
0.1714114845,
-0.1323936284,
0.1215377152,
0.1122748554,
-0.1933118701,
0.0961998254,
0.4546312988,
0.3035829067,
-0.5730574131,
0.1401538849,
-0.038998574,
0.0041110925,
-0.2913175821,
-0.1048906446,
-0.0712390617,
-0.1307017207,
0.3765468299,
-0.1000742614,
-0.2564788759,
-0.3019478917,
0.0996722728,
0.215742141,
0.70438236,
-0.5096974373,
-0.1869639903,
-0.2960819602,
0.3445970118,
0.1056355089,
0.2261914015,
0.2963038981,
-0.1142080575,
0.1142805889,
-0.2742856443,
-0.6738188863,
-0.2642534375,
-0.1397591531,
0.3414141536,
-0.1845967472,
0.0385370031,
0.0644928217,
0.1961011589,
-0.0430389829,
0.7297347188,
-0.2825858593,
-0.3581550121,
0.1335631311,
-0.2341219634,
-0.2815179229,
-0.2018959969,
0.4096243978,
0.2900768518,
0.2482918799,
0.4759662449,
-0.0250484981,
0.0451108888,
-0.0968002677,
-0.1799186021,
0.1840308905,
0.3575598598,
0.0966900885,
0.2082594484,
-0.0555770732,
0.2637527585,
0.0527231954,
0.0418466292,
-0.3272045553,
-0.0190532468,
0.0066927709,
-0.0198305026,
0.0030471608,
-0.0077125952,
-0.0944464356,
0.1107686386,
0.1129938662,
0.3573162258,
-0.0435713083,
0.2807608247,
0.0208202302,
-0.179173708,
0.309663564,
-0.1984787285,
-0.2092533708,
-0.0486998372,
-0.0780897886,
-0.1887564957,
0.4118485749,
0.3620303571,
0.0837157518,
-0.2157825679,
0.4662021399,
-0.1323496103,
0.075266473,
0.2060666382,
-0.2312606722,
0.0327522084,
0.4121607244,
0.0306291282,
-0.1248456985,
-0.1179489344,
0.1336192638,
-0.1240872219,
0.4790471196,
-0.2371688336,
-0.3656114638,
0.052375555,
0.047052972,
-0.092441164,
0.0502537899,
-0.8543152809,
0.1679318994,
-0.1389351785,
0.3042336106,
0.3795032501,
0.06279172,
-0.1190132499,
-0.115986824,
0.0628862232,
0.4255439639,
-0.2484678924,
0.0904771388,
-0.0120130703,
-0.2226300538,
-0.2038799226,
-0.0825045183,
-0.4281780422,
0.2872890234,
-0.0954110622,
-0.0719882101,
0.4668294787,
-0.024769634,
-0.1460668296,
-0.0146440752,
0.0894163996,
-0.1040176973,
0.1017408669,
0.0415882692,
-0.0115557667,
-0.0248693358,
-0.2259535193,
-0.0121471714,
0.186884895,
-0.2042143941,
0.1919276416,
-0.3240946531,
0.0599020235,
-0.0337833315,
-0.2282290757,
0.2141559422,
0.2180250436,
-0.1546835601,
-0.0180256404,
-0.116407305,
-0.0072896592,
0.0910574645,
0.041384574,
-0.0866694525,
-0.080813475,
0.0877005905,
-0.6414071321,
0.2503457665,
-0.1015685126,
-0.017497221,
0.0042334385,
-0.2572941184,
0.132352829,
0.2630305886,
-0.1018624604,
0.5300438404,
-0.0298507288,
-0.7860901356,
0.0059397221,
-0.2782947421,
-0.2895981669,
0.0892974511,
-0.431227684,
0.2539479733,
-0.3105938733,
0.2821172476,
0.3164219558,
0.0983441845,
0.0581025481,
0.1112548709,
-0.031641487,
0.332224071,
-0.1496318728,
0.1671594679,
0.1781443655,
0.1764757186,
0.1676569879,
0.3872047663,
0.1097671837,
-0.3977028728,
0.4344579279,
-0.4769639373,
-0.0125668272,
0.0138703287,
0.0165403448,
0.1664521247,
-0.3843301833,
0.3188410699,
-0.0439422131,
-0.0056262612,
-0.087565355,
0.2539411187,
-0.1913867742,
-0.2431893647,
0.0255521685,
0.3106910884,
0.3294462562,
0.3639848828,
0.1657050252,
-0.1471237391,
-0.03908436,
0.0423740223,
0.1576628387,
0.188493371,
0.0106431879,
-0.1029717848,
0.1735069007,
0.0350405276,
0.2412399203,
0.151849851,
0.0659837574,
0.0166905988,
-0.1517920643,
-0.218406111,
0.2604804635,
0.0894293189,
0.396098882,
0.0850111991,
-0.0699946582,
-0.0542902276,
-0.4305776656,
-0.0012598708,
-0.2288174927,
-0.1033502817,
-0.3287900388,
-0.1780313998,
-0.2584324777,
0.0095935091,
0.0861179084,
0.0227592885,
-0.4254298806,
0.0443891212,
0.2645108104,
-0.1380122453,
0.0785576254,
-0.0195889957,
-0.2097582817,
0.463080138,
-0.1646042466,
-0.0274948571,
-0.511844039,
-0.0243541058,
0.2437962294,
0.0163124129,
-0.0275835954,
0.1487127095,
0.2704418898,
-0.0155710876,
0.2265703678,
-0.3180452585,
0.1024792641,
0.1528233439,
-0.0561020225,
-0.1438625008,
0.2807649374,
0.1074609756,
-0.1540964246,
0.2022065073,
-0.1312025934,
-0.1807153523,
-0.0840287432,
0.0891092718,
-0.3830259144,
0.2847315073,
-0.0689712018,
0.1236855686,
0.0513855144,
-0.1602576524,
0.2237329036,
0.0258761421,
0.1076870561,
0.1475773752,
0.183942318,
-0.023105802,
-0.0198110659,
0.0666630268,
0.0129088461,
-0.3925455809,
0.4017268717,
-0.2407952696,
-0.0834748298,
0.205517903,
0.1197904944,
0.2135042697,
0.3010385334,
-0.5540852547,
0.3444390595,
-0.3526320457,
0.0488327444,
-0.2269192636,
0.0578688309,
0.1938935518,
0.2327787727,
0.1075320765,
-0.2064686716,
0.0343337655,
0.21282354,
-0.0164827667,
-0.2092979848,
0.0607985109,
0.2286073118,
-0.3945914507,
0.3263343275,
-0.1310032755,
0.1730515063,
0.1884270459,
0.0671586245,
0.4778156281,
-0.2602345347,
0.2625124156,
-0.4720086455,
0.0513149276,
0.165511921,
0.0642236024,
0.1445964873,
-0.091688171,
-0.1687661707,
-0.0959238857,
0.1636495441,
-0.1391069442,
-0.1692542881,
-0.8409457803,
-0.0066027902,
0.0214687064,
-0.027096197,
-0.1616043895,
-0.2039078176,
0.0421282351,
-0.1729835123,
0.4614592493,
-0.1603580713,
-0.464127481,
-0.2199059129,
-0.1615910679,
-0.033277601,
-0.1495440006,
0.1606399417,
0.0686798394,
0.2121352851,
0.2860307097,
0.3172592521,
0.1961811334,
-0.1700163931,
-0.1128939688,
-0.2017817348,
0.0397524238,
-0.5741513968,
0.2088982165,
0.185061723,
0.2039021403,
-0.6787978411,
0.1030538082,
-0.1165689528,
-0.2855757475,
-0.0235274248,
0.4652269483,
-0.2474164665,
-0.2797544599,
-0.2131309956,
0.1207998022,
0.0432897508,
-0.133300826,
0.0193477646,
-0.2369771749,
-0.3839556873,
-0.3204473853,
-0.2770611644,
-0.2282409221,
0.1647605151,
0.1295908988,
0.2308636755,
-0.008402843,
0.03899955,
0.2662961483,
-0.0761283338,
0.35630548,
0.6240323186,
0.0110758189,
-0.3348997533,
0.086575985,
-0.1905130893,
0.2369356155,
0.0228432119,
-0.15931274,
0.3482824564,
-0.2124981284,
-0.1461248398,
-0.2357016802,
-0.3540171385,
-0.1109116822,
-0.258676976,
-0.2403575033,
-0.3882797956,
0.4413147569,
0.0731974021,
-0.0762721449,
0.5744848847,
0.3942922354,
-0.3450446725,
0.3246237338,
0.4225630462,
0.7420526743,
-0.1131471097,
0.0360067636,
-0.0178504381,
-0.0810801312,
0.1877839863,
-0.1822285205,
-0.0467946306,
-0.2022933215,
-0.3159266412,
-0.1632568091,
-0.2784868181,
0.3447407186,
0.6192924976,
0.216648832,
-0.0175139196,
-0.3532563746,
0.1148601249,
-0.1342865825,
0.082370609,
-0.4092537463,
-0.3848983645,
-0.365177393,
0.0389499553,
0.1036932915,
-0.278829515,
-0.0092845,
0.3134472966,
0.1003665626,
-0.1381445229,
0.0320028812,
-0.1144311577,
-0.2251795232,
0.1295300722,
-0.0997899026,
-0.2469808012,
0.3995577097,
0.3768922389,
0.0459105223,
0.0989444107,
-0.0909543708,
0.0764314756,
0.1836386919,
0.1344401985,
-0.3134602606,
0.2698400915,
-0.0851524472,
-0.0682082176,
-0.2274216115,
0.1610961556,
0.0598653406,
-0.2559139729,
0.1703696549,
-0.08275868,
0.0910627544,
-0.0907432586,
0.2708334029,
-0.085718371,
0.3001691103,
0.0072659105,
0.0426112637,
0.1652315855,
0.2661091983,
0.1643645614,
0.0870303065,
-0.3796954155,
-0.0499844551,
0.0777692497,
0.2479714453,
-0.0401931629,
0.2925238609,
-0.0569910333,
-0.3208402395,
-0.3159716129,
0.3908050358,
0.3319866657,
-0.8370425701,
-0.112899214,
0.1087166518,
0.0598223805,
-0.0825120062,
-0.0057952851,
-0.0543947816,
0.1286135316,
-0.0054596886,
0.0811381266,
-0.1605966538,
0.2510659099,
0.0607833564,
0.3145681322,
0.0369501263,
-0.6393619776,
0.0692764968,
0.0838354304,
-0.1256213188,
-0.0904997885,
0.2313764691,
-0.1532010734,
-0.402203083,
0.4075804353,
-0.1101999134,
-0.1579755247,
-0.0587485023,
-0.0998657867,
-0.0359668247,
-0.0815388039,
-0.0636890009,
0.1724895239,
-0.0877541751,
0.1102736965,
-0.3056674302,
-0.3797582388,
-0.2704484463,
-0.1719851494,
0.2031871229,
0.092333734,
0.0228985697,
-0.0289879292,
0.7183502316,
0.0173954144,
-0.4473560452,
0.0990377963,
0.188739717,
0.3345043659,
0.0438572466,
-0.0104972972,
0.1380794197,
-0.112510033,
-0.0017853901,
0.2892638147,
0.1184029952,
-0.0798297673,
-0.0856042877,
0.0595140941,
0.2994785607,
-0.1719047576,
-0.0529756695,
0.3663607836,
0.0731237754,
-0.3403513432,
0.1992562115,
0.0490782782,
-0.003356874,
-0.1472725272,
0.1413505077,
0.0453238823,
-0.0976063833,
0.2792840898,
0.1008366793,
0.1894990504,
-0.3241709769,
0.0541471913,
-0.1422610283,
0.0704304874,
0.0356506519,
0.4357765913,
0.0052405596,
-0.0888253152,
0.2888084352,
0.2855092585,
-0.0374684036,
0.0688915998,
0.1648099571,
0.5121222138,
0.4532756209,
0.1403606534,
0.1436412334,
-0.1542580426,
-0.3748063743,
-0.1003775373,
-0.1214207783,
-0.3154937625,
0.1127623618,
0.135370627,
0.4430634677,
-0.2076916993,
-0.2558025718,
-0.1439391524,
0.0078849662,
0.0213687383,
-0.2126766741,
-0.053450495,
0.0525830984,
-0.134783566,
-0.0791003779,
0.1382482946,
0.1554533243,
0.0106589217,
0.2289689481,
0.0903937519,
0.6540076733,
0.3387281299,
0.0953362584,
0.2242255658,
-0.1946874261,
-0.2521743178,
0.2352355719,
0.0463107824,
0.270499438,
-0.366505295,
0.0616070554,
0.0022657178,
-0.1412230134,
0.301458776,
-0.0397313163,
0.0251538306,
0.3092962503,
0.1441102326,
0.160569489,
0.2176131308,
0.0162470452,
0.041300565,
-0.1807843596,
0.020051349,
0.4210732579,
-0.1039448753,
0.2098529041,
0.2836741209,
-0.2959514856,
0.2372810841,
0.1531406939,
0.1266162246,
0.0172358118,
0.6544235945,
-0.3165145516,
-0.368506819,
-0.4101755321,
-0.0002380572,
-0.1131401658,
0.7101005316,
0.0155706741,
0.3783335686,
0.0592987575,
-0.225120604,
-0.1065511405,
-0.1425493658,
-0.0313014314,
0.2766109109,
0.3308053017,
-0.1430418044,
0.0999976248,
0.364289403,
0.1951112151,
-0.125149861,
0.1098165363,
0.0106137479,
0.0004845262,
-0.0219848473,
0.0068777138,
0.2887135148,
-0.4466704428,
-0.2600393295,
0.0182088166,
0.2909234464,
-0.1568897069,
-0.049101837,
0.136768952,
0.32821697,
0.2682014704,
0.4353290796,
-0.0235372894,
0.1507951021,
0.1068362519,
0.0892708749,
-0.047304932,
-0.5445353985,
0.0005119704,
0.2407061011,
-0.0126557481,
-0.3778366148,
-0.1757321507,
0.1783488691,
0.1030278653,
-0.137781769,
-0.0067406818,
0.4482307434,
-0.2071405649,
0.0878020525,
0.0554709435,
0.016632352,
0.0253278017,
-0.1492114216,
0.1007251441,
0.1356731951,
0.1847241372,
0.0047003627,
0.2120039761,
0.1417587698,
-0.009669885,
0.2286660224,
0.3601230383,
0.2433697134,
-0.3316454291,
-0.4114708602,
-0.0757462755,
0.3266930878,
-0.3170724809,
0.0737627745,
0.3929125667,
-0.0987645313,
0.2164561749,
-0.0882341042,
0.6065353751,
-0.143599689,
0.2302940935,
-0.2816719413,
-0.3595016897
] |
https://github.com/huggingface/datasets/issues/2092 | How to disable making arrow tables in load_dataset ? | @lhoestq I think the ```try_from_hf_gcs``` provide the same functionality. What all datasets are available on HF GCS? Are all the datasets on huggingFace datasets hub are made available on GCS, automatically? | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 31 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
@lhoestq I think the ```try_from_hf_gcs``` provide the same functionality. What all datasets are available on HF GCS? Are all the datasets on huggingFace datasets hub are made available on GCS, automatically? | [
-0.0699810684,
-0.5376310349,
-0.0606943108,
0.2699545026,
0.0311882682,
0.1857692897,
0.2047214061,
-0.0738597736,
0.5251618624,
0.1915541142,
-0.2083573639,
0.214261353,
0.142901808,
0.0653283149,
0.2521745563,
0.0714225173,
0.0697014034,
0.3191803992,
-0.4851083457,
-0.268643111,
-0.1109204516,
-0.0362601429,
-0.1380766481,
0.128892675,
-0.2874596417,
-0.246381551,
-0.0120839998,
-0.0107509755,
-0.2599882185,
-0.2313733399,
0.3290423155,
0.3906883895,
-0.098537609,
0.2785459459,
-0.0001202594,
0.0522386953,
-0.0483481288,
0.037581265,
-0.4667462707,
-0.0595742017,
-0.0433041267,
0.0232827514,
0.5407470465,
0.1272083819,
0.0793075338,
-0.2443217039,
-0.2729651332,
-0.365493536,
0.3282225132,
-0.0181437768,
0.1577931195,
0.3644486666,
-0.2300795764,
-0.1311167926,
0.2805162072,
0.1233366728,
-0.4778993726,
0.2537665367,
0.054030221,
0.0632022098,
-0.1613532752,
-0.024351405,
-0.1481768787,
-0.0582382604,
0.3744198978,
-0.1106753349,
-0.2596367896,
-0.481754899,
0.1657977104,
0.4390702546,
0.781811595,
-0.3694945276,
-0.0524643809,
-0.2837285399,
0.1551824808,
0.1223528087,
0.1964027584,
0.3899796605,
-0.0861198306,
0.1196513474,
-0.1751597822,
-0.515737474,
-0.2267816067,
-0.2266261131,
0.3075193763,
-0.1318726987,
-0.1225430816,
0.0585407317,
0.447856456,
0.1124915034,
0.3323295712,
-0.1756274402,
-0.4155190587,
0.310877353,
-0.4134179354,
-0.2898392975,
-0.1153088287,
0.4277419746,
0.3985423744,
0.2306175679,
0.3178876042,
0.1235972121,
0.0537708625,
-0.0411227681,
-0.0586044043,
0.1582381725,
0.1617209762,
0.0768048316,
0.0983527303,
-0.036856778,
0.1641528606,
-0.035724096,
0.0670009628,
-0.3181810975,
-0.233112812,
-0.0434865355,
-0.0704029948,
-0.1852671802,
-0.0737163723,
0.0096378513,
0.3312651813,
0.0439502001,
0.3386298418,
0.271124661,
0.3304339349,
-0.0882130712,
-0.1544586718,
0.3299461305,
-0.2381678224,
-0.2385377437,
-0.1456323117,
-0.1315272152,
-0.2117996961,
0.4393602312,
0.2759013772,
-0.0501807891,
-0.1849320382,
0.468888849,
-0.0440245271,
0.13175942,
-0.0492255539,
-0.3038423359,
0.2460278571,
0.4969676733,
-0.0509324484,
-0.0564777777,
0.1598425508,
0.2020446509,
-0.2483125031,
0.1833152026,
-0.3329203725,
-0.3900694847,
-0.0035929838,
0.0322229564,
0.0412288532,
-0.0404383726,
-0.8469278216,
0.3460434973,
-0.3431276679,
0.3712806404,
0.4440466464,
0.119037129,
-0.0005571023,
-0.1731144488,
0.0333196074,
0.5034130812,
-0.1700745523,
-0.008530274,
0.1776850075,
-0.3054762483,
-0.1037428081,
0.0439893454,
-0.3630770743,
0.0695024505,
-0.1272331029,
-0.0857855529,
0.3792747259,
0.022876747,
-0.052541621,
0.0845267996,
0.1702489406,
-0.0148176253,
0.0711669251,
-0.1773425341,
-0.0218247212,
0.0199652612,
-0.4476978779,
0.1567910165,
0.2190752476,
-0.1982145905,
0.0974609703,
-0.2478873432,
0.0965176225,
-0.0324613154,
-0.1310715973,
0.2336817384,
0.2506479621,
-0.5099534988,
0.1355233938,
-0.1414467692,
-0.1844236106,
0.1786035001,
0.0470608734,
-0.0133717172,
-0.0411123633,
0.1742543876,
-0.7623876333,
0.3165920973,
-0.1788858473,
0.1900547445,
0.0594744384,
-0.1816142648,
0.1207241118,
0.2537695169,
-0.1028539836,
0.3356227279,
-0.0349904969,
-0.5231184363,
0.0846731216,
-0.3067089319,
-0.4564948678,
0.3038049638,
-0.3575847447,
0.3665586412,
-0.1958851069,
0.3150846958,
0.3337165713,
0.0993266851,
0.0923651904,
-0.0198597908,
0.1061336696,
0.0853920877,
-0.1777103543,
0.2503396273,
0.1215640903,
0.3644585311,
0.2029535323,
0.3083248138,
0.0576007068,
-0.4684824049,
0.3234207034,
-0.3931077421,
0.0375389121,
0.1042506844,
0.0386785492,
0.3395082355,
-0.2522574961,
0.3089871109,
0.1465862095,
-0.066014789,
-0.0955757499,
0.1360981762,
-0.1097240299,
-0.1193594337,
0.1630506963,
0.1692172736,
0.3703486919,
0.364467144,
-0.0822134912,
0.0035112873,
0.0637502447,
-0.1441776454,
-0.0282290615,
0.1420610249,
-0.0989566818,
-0.2244123816,
0.3118466735,
-0.2024125755,
0.0964985043,
0.1933427006,
0.1441768855,
0.0530509651,
-0.2020271719,
-0.2763198018,
0.2760866582,
0.0468643047,
0.3984256685,
-0.0255294293,
-0.0146946013,
-0.0302965101,
-0.6330456138,
0.1473528147,
-0.2354975641,
-0.1206891388,
-0.3019901812,
0.0783716217,
-0.3228673637,
0.0418339521,
0.1446881294,
0.0071423762,
-0.5675174594,
0.0022967458,
0.2356794327,
-0.040466629,
0.0701784939,
-0.0669185519,
-0.3137354553,
0.6049488187,
-0.2892209291,
-0.0028120037,
-0.5583310723,
0.0597382821,
0.0854422152,
0.0307132304,
0.0690541863,
0.2096915394,
0.3410919011,
0.0348375663,
0.0712583661,
-0.2587759793,
0.1375204921,
0.3671418726,
-0.1972144693,
-0.089380987,
0.020422319,
0.1433387548,
-0.2664321065,
0.2388621271,
-0.1036955565,
-0.4493598342,
-0.0378568843,
0.169382602,
-0.4139087498,
0.1722443551,
-0.0328298248,
0.0564122275,
-0.0866941214,
-0.1806504577,
0.2011322826,
-0.0130636543,
0.2047112733,
0.3151851594,
0.0498373173,
-0.0383828059,
-0.1923556924,
0.1486044675,
-0.1679398865,
-0.4587254524,
0.3519231379,
-0.1713166833,
-0.147793591,
0.2070527822,
0.0551613867,
0.1059928089,
0.1161229759,
-0.6097695231,
0.2893594205,
-0.2824668288,
0.0281237885,
-0.0854875743,
0.0346322656,
0.3091968596,
-0.0576824322,
0.0163568705,
-0.2320912033,
0.0540946499,
0.156419903,
0.0065892842,
-0.0831753314,
0.0299191177,
0.0104058851,
-0.3959493935,
0.4441444874,
-0.0389363579,
0.1681033969,
0.3979788423,
0.1006597802,
0.4846960008,
-0.3332360983,
0.1686078757,
-0.3442386687,
-0.0842416361,
0.1325340569,
0.1842340529,
0.196206525,
-0.053755302,
-0.1722316891,
0.0105926022,
0.0044043958,
-0.2218763232,
-0.0611204728,
-0.5079464912,
0.0127447033,
0.002600722,
0.0114907697,
-0.1859091371,
-0.15083839,
0.1693352759,
0.133426249,
0.5717548728,
-0.1340470165,
-0.4638614655,
-0.027998196,
-0.3130030632,
0.2442296892,
-0.2751082778,
-0.0359079689,
-0.1184320152,
-0.0128295273,
0.3601953089,
0.2560434937,
0.3104082048,
0.0107174348,
-0.2367499471,
-0.0191605575,
-0.0265233926,
-0.5356999636,
0.1173596233,
0.1510366797,
-0.0022137575,
-0.4368468523,
0.1654150486,
-0.1191512644,
-0.5349701047,
-0.0801903605,
0.2858900726,
-0.1413327903,
-0.2020370662,
-0.2497861981,
0.0934702232,
0.0612704828,
-0.1175006703,
-0.0457969308,
-0.3165146112,
-0.4211545289,
-0.0554823764,
-0.0705459639,
-0.1286265701,
0.2033262253,
0.1038828716,
0.2141490579,
0.1060635895,
-0.0934164301,
0.5110616088,
0.166110307,
0.3581531644,
0.910713017,
-0.0446407497,
-0.265634954,
0.1637272239,
0.0344617851,
0.2740888,
0.3277542591,
-0.0091781877,
0.3827396929,
-0.0922226459,
0.0102115124,
-0.2542272806,
-0.3056765795,
-0.1365027279,
-0.1869211495,
-0.3803128302,
-0.3169400692,
0.5907817483,
0.0083092973,
-0.2317427695,
0.4854337871,
0.5626707673,
-0.2878555059,
0.3857736588,
0.2358471155,
0.9838711023,
-0.1772719771,
0.0812230557,
0.1337612867,
-0.0976818427,
0.1905499995,
-0.2969295681,
-0.0419341028,
-0.2447946072,
-0.3998803198,
-0.2160443664,
-0.290918082,
0.3766039908,
0.3890936077,
0.1521085054,
0.1069706678,
-0.3283907771,
0.1717340499,
-0.1524016857,
0.0609428361,
-0.3589856923,
-0.4290206432,
-0.4078112841,
0.0921132937,
0.1940682977,
0.027937144,
-0.0268978532,
0.1983844787,
0.1167578697,
-0.192566216,
-0.0727299973,
-0.0872982293,
-0.3718637228,
-0.0995278358,
0.2164992392,
-0.3137663901,
0.3319270015,
0.0594871379,
0.2201469839,
-0.073848702,
-0.0867242143,
0.1555138677,
0.1360016316,
0.166195631,
-0.4536581039,
0.2146769762,
0.200830847,
0.0410226956,
-0.2308663428,
0.1811323166,
0.042146951,
-0.2422100902,
-0.0079097003,
-0.2315261662,
-0.0648973882,
-0.0798673034,
0.2335758954,
-0.0316583775,
0.3375003338,
-0.0101270154,
0.0579021163,
-0.0249842443,
0.1941372901,
-0.0251555033,
0.2263504863,
-0.3452509642,
-0.1922563612,
0.0684184581,
0.1450200081,
-0.2188833654,
0.2154670805,
0.2166031301,
-0.3611481786,
-0.367282927,
0.1145814061,
0.5732605457,
-0.8200095892,
-0.0353962816,
0.1304691732,
-0.0201376826,
-0.1083754078,
0.2939609289,
0.0920679644,
0.0358154215,
-0.1064619273,
0.0567697436,
-0.2458817512,
0.2419508398,
-0.1274215579,
0.339081049,
0.0505640283,
-0.5303603411,
0.1395340562,
0.1860037446,
-0.2086116821,
-0.0222780332,
0.1690419316,
-0.1958284974,
-0.0635479465,
0.2094284892,
-0.0045027584,
-0.2351341546,
-0.0456194468,
-0.1633234471,
-0.2075599432,
-0.1332043558,
-0.088622354,
0.2002154887,
-0.032620728,
-0.078595534,
-0.3392745852,
-0.4105190635,
-0.1677009463,
-0.2065606713,
0.275732398,
0.1025787145,
0.0300329551,
-0.1021807939,
0.5886272788,
-0.0973772556,
-0.4074092805,
0.063547194,
0.2310922742,
0.4092467129,
0.1268725395,
-0.2562840879,
-0.018743068,
-0.0799737126,
-0.0105262063,
0.4855697751,
0.2712607682,
-0.1843234301,
-0.0584839098,
0.0346149951,
0.1839804351,
-0.2771977782,
0.0525444597,
0.1220449358,
0.1618272811,
-0.2447513044,
0.214411363,
0.0584877804,
-0.0481412634,
-0.1942313612,
0.1113038957,
0.0692719668,
-0.0840402693,
0.3382107615,
0.3810345232,
0.1406192482,
-0.0843540877,
0.02755275,
0.0296821967,
0.2904459834,
0.1392167509,
0.2014312744,
-0.020983763,
0.0038978513,
0.4665330052,
0.3974295557,
-0.0417924039,
-0.1978863329,
-0.0551539175,
0.3230111301,
0.2193622589,
0.1007837579,
0.1601344943,
-0.4338372946,
-0.2487108856,
-0.0212128088,
-0.1007903516,
-0.183948487,
0.0439900532,
0.3703766465,
0.3934577405,
-0.5257888436,
-0.2690368295,
0.09103477,
-0.0085921995,
-0.1007653847,
-0.0235456564,
-0.1616114676,
-0.0259037986,
0.0410801247,
-0.0912397951,
-0.111971207,
0.3176024556,
0.0411707982,
0.2570938468,
0.0519144908,
0.41019997,
0.3513188958,
0.047545556,
0.2566617727,
0.0302043948,
-0.2460514158,
0.1910850108,
0.1403925866,
0.1635121554,
-0.1430162191,
-0.0353594124,
-0.17100887,
-0.1283728778,
0.3038407266,
-0.0325829685,
0.1178199798,
0.2643900216,
0.0730954185,
0.0128320754,
0.1634643823,
0.0399567112,
0.0088365898,
-0.0845972747,
-0.1734223217,
0.4944335222,
-0.2157094032,
0.2471072823,
0.1537955552,
-0.1295029372,
0.1028581113,
0.0866309106,
0.0296529084,
0.1488040537,
0.5596123338,
-0.3162327409,
-0.1543395221,
-0.2396561205,
0.0132859126,
0.0208273865,
0.6919662952,
0.1588596851,
0.4518478215,
-0.1023004353,
-0.2958508134,
-0.131350264,
-0.1365267336,
0.0269481484,
0.3040646315,
0.3247365952,
-0.222142756,
0.3693709075,
0.2857189178,
0.3169390261,
0.0334941484,
0.2022922635,
0.0263133217,
0.0317359269,
0.0865409672,
-0.227898404,
0.3127417266,
-0.4761161506,
-0.2303733081,
0.0193671659,
0.1770937741,
-0.1575978845,
-0.1239933297,
0.2766902149,
0.2105659992,
0.0544079617,
0.3564323783,
0.0460315272,
0.324382633,
0.0022358224,
-0.0187234096,
0.0145057552,
-0.5402619839,
-0.0021693707,
0.0811912864,
-0.1059498116,
-0.279506892,
-0.0309947617,
-0.0478406549,
0.0178749077,
-0.1392126679,
0.1770958304,
0.434981823,
-0.349601686,
0.06981951,
-0.1064133868,
-0.1567606926,
0.259236455,
0.0271983109,
0.1648726016,
0.0228756815,
0.1580032557,
0.1100538149,
0.3688217402,
0.0301721692,
-0.0409578383,
0.0816956311,
0.3904675245,
0.360558778,
-0.1757492125,
-0.5782335997,
-0.0241749734,
0.1788346916,
-0.3058337867,
0.0081833377,
0.3805197477,
-0.042458415,
0.1322424114,
-0.1377235353,
0.5173620582,
0.0197628848,
0.1178390309,
-0.407161355,
-0.3186651468
] |
https://github.com/huggingface/datasets/issues/2092 | How to disable making arrow tables in load_dataset ? | Only datasets like wikipedia, wiki40b, wiki_dpr and natural questions are available already processed on the HF google storage. This is used to download directly the arrow file instead of building it from the original data files. | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 36 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
Only datasets like wikipedia, wiki40b, wiki_dpr and natural questions are available already processed on the HF google storage. This is used to download directly the arrow file instead of building it from the original data files. | [
-0.1666765213,
-0.0997227058,
-0.060235586,
0.2515957057,
-0.0468832999,
0.1143142283,
0.2708079517,
0.004835695,
0.4697784483,
0.1632678211,
-0.0370747745,
0.1923092604,
0.1889044791,
0.0169304013,
0.2863855958,
0.1164426729,
-0.0252681449,
0.4686415195,
-0.3328586519,
-0.1243104786,
-0.1999844611,
-0.2028212547,
-0.0752781406,
0.0748855472,
-0.0713151544,
-0.2044892609,
0.1787603945,
-0.1432490796,
-0.3065361977,
-0.3528853655,
0.1729180664,
0.380032599,
-0.1642083526,
0.1244350448,
-0.0001261445,
0.0942902192,
0.0329205021,
0.0948781744,
-0.5260356069,
0.0060267523,
-0.1746381819,
0.0031732172,
0.4379306436,
-0.018620953,
0.2819116712,
-0.4082460105,
-0.1863089055,
-0.3450863659,
0.3139989376,
0.0053223334,
0.0905806869,
-0.071636647,
-0.0604903959,
0.2094385922,
0.5697901845,
0.2733412087,
-0.4536013007,
0.2838582993,
-0.1603650749,
-0.0454603992,
-0.2330371141,
-0.0198304038,
-0.1649196744,
-0.0176151916,
0.3427161574,
-0.0658052936,
-0.218261376,
-0.4648960829,
0.3253168762,
0.4471846223,
0.8690114021,
-0.4102915823,
-0.0729225501,
-0.1844528168,
0.2027650177,
0.097302258,
0.2856373191,
0.3990593553,
-0.1066482887,
0.075894326,
-0.2127395272,
-0.6784491539,
-0.2574295104,
-0.0711827278,
0.2603639662,
-0.1153428033,
0.018333897,
0.050158821,
0.3017891645,
0.0081161112,
0.3686649799,
-0.2238408029,
-0.364870429,
0.272333622,
-0.1842781901,
-0.215996787,
-0.373986721,
0.1744875461,
0.4409629703,
0.1009868979,
0.4295791686,
0.050321795,
0.2170759141,
-0.0717508197,
-0.1252763718,
0.1128389165,
0.1504213214,
0.0533882268,
0.299963057,
0.007771723,
0.1263807416,
-0.0047518834,
0.1571418941,
-0.2876323164,
-0.0752579272,
-0.1376901567,
-0.0675587952,
-0.1553007662,
0.0428048074,
0.0308061279,
-0.0968295932,
-0.0888144448,
0.1404575408,
0.1764498651,
0.2313396335,
-0.0716205686,
-0.0928625911,
0.3906415701,
-0.2245058268,
-0.1648519635,
0.065603517,
-0.1498599946,
-0.13486664,
0.4797786474,
0.4003247023,
0.0539175533,
-0.1964550018,
0.4721812904,
-0.2374715507,
0.0166779608,
0.3698480725,
-0.3447741568,
0.1794474125,
0.5079672933,
0.1643348038,
-0.1345519125,
-0.0287734959,
0.0166879371,
-0.1465750486,
0.3799899518,
-0.3486205935,
-0.2767961025,
-0.0916240364,
0.01928946,
0.1560793966,
0.1055179834,
-0.8544901013,
0.2341752201,
-0.0627286211,
0.1922184974,
0.3423011899,
0.1384263486,
-0.147481069,
-0.1924453229,
0.1250502169,
0.4684500694,
-0.3885137439,
0.0869878307,
0.0318105035,
-0.1592184007,
-0.1226307377,
0.0867345706,
-0.3584822118,
0.2561984658,
-0.1413199604,
-0.0886123031,
0.4231480658,
0.1055302247,
-0.1932404041,
0.2495382726,
0.1716929376,
-0.0479313508,
0.1314125955,
-0.0283835176,
0.0007524006,
0.0692842603,
-0.3884217143,
0.1332305074,
0.3127723038,
-0.1487547755,
0.1245484203,
-0.2645056248,
0.1171088517,
-0.1291518956,
-0.1417374015,
0.357632935,
0.3157830238,
-0.2228244245,
0.1151502281,
-0.1869775951,
-0.0566206053,
0.2460998297,
0.0988697261,
0.0628359914,
-0.0105714016,
0.2677642107,
-0.7945265174,
0.1788482964,
-0.3360005319,
0.0576648004,
-0.0180709064,
-0.259244293,
0.0695411414,
0.1732884049,
-0.0863897577,
0.2867397368,
-0.0377666168,
-0.5865474939,
0.0224509835,
-0.0337132253,
-0.1333200932,
0.0592195392,
-0.4370774627,
0.2424857467,
-0.2334553152,
0.3700752258,
0.2047593743,
0.1187109947,
0.0710403919,
-0.0198321082,
0.0175121594,
0.2195652127,
-0.1529203951,
0.1186261177,
0.1463336051,
0.2047600746,
0.1609808803,
0.3847929537,
0.0475855619,
-0.5845121741,
0.3888183236,
-0.3807126582,
0.0493068397,
-0.0686553419,
0.009147197,
0.2706063688,
-0.0396311134,
0.3539587259,
0.1418547034,
-0.0684297308,
-0.0405807346,
0.153979063,
-0.0198249035,
-0.3033728004,
0.0530689619,
0.2990091741,
0.4224362075,
0.3638785779,
-0.0066056177,
-0.1219091713,
0.1077947915,
-0.0360344574,
0.2045954019,
0.3079282343,
-0.0441271961,
-0.3254676163,
0.0753500238,
-0.1600910127,
0.1006898433,
0.1284572184,
0.120516032,
0.0344252065,
-0.151355803,
-0.2663258612,
0.3290821314,
-0.0247677043,
0.4524424672,
0.1972551346,
0.0525167622,
-0.0429166816,
-0.5053237081,
0.1169964373,
-0.2084616125,
-0.0675218403,
-0.3271875679,
0.006736286,
-0.232150659,
-0.0429422706,
0.0692351013,
0.1974292845,
-0.5449186563,
-0.0646307096,
0.2237852067,
-0.064159885,
0.1264276803,
-0.1384563893,
-0.2107720524,
0.3652670979,
-0.0992823541,
-0.176400587,
-0.6031211615,
-0.0247923844,
0.1110711992,
-0.0146485418,
0.0877329037,
0.1183422431,
0.2117765099,
0.0654743761,
-0.0797165111,
-0.4650188088,
-0.1034688354,
0.2821795344,
-0.0597592816,
-0.1261896789,
0.1421793848,
0.2849062681,
-0.195738554,
0.1819580197,
-0.1306824833,
-0.2314672917,
-0.1515338421,
0.2393719405,
-0.3711262941,
0.413303256,
-0.0417639017,
-0.0285004377,
0.1013330519,
-0.0524802804,
0.1647360027,
0.1407793462,
0.211132586,
0.1314133853,
0.1692739874,
-0.0328296646,
0.0723701566,
0.0704222471,
-0.1246542037,
-0.2096574754,
0.4650502205,
-0.2878259718,
-0.1776955128,
0.2696316242,
0.0248891711,
0.0481998324,
0.3943352699,
-0.7647733092,
0.4628792107,
-0.2994993627,
0.0385513455,
-0.3009709418,
-0.0657133684,
0.1779266298,
0.1902371794,
0.0707081035,
-0.2031705379,
0.144266516,
0.3033230007,
-0.0519683361,
-0.1278572083,
0.2401959598,
0.3711484075,
-0.4483268261,
0.6514480114,
-0.2132666707,
0.2048830241,
0.3713412285,
0.0653751493,
0.4804442525,
-0.3940526843,
0.3682644367,
-0.3533891737,
0.0440671034,
0.2167503536,
0.2128102779,
0.0239325352,
-0.2817349434,
-0.1636440605,
0.0663921237,
-0.0486386307,
-0.1369581372,
-0.0671554655,
-0.5520759821,
0.1195462197,
0.0210162401,
-0.0450577587,
-0.0029316247,
-0.2983914018,
0.0829183161,
-0.0675419122,
0.4848749042,
-0.0068187378,
-0.2792011797,
-0.1240629554,
-0.3302902281,
0.0892265439,
-0.1196118742,
0.1181198061,
-0.1329016238,
0.2243358046,
0.3356902599,
0.1744420081,
0.1654410511,
-0.2095064223,
-0.0267096628,
-0.0790949389,
0.038093999,
-0.3711466789,
0.2080157548,
0.0716090202,
-0.0657842606,
-0.4943979383,
0.1716092825,
-0.1547258943,
-0.3168124259,
0.0115835797,
0.4513147771,
-0.2096798122,
-0.1479446739,
-0.3307109773,
-0.0254507661,
-0.0559078455,
-0.1177638397,
-0.0423423946,
-0.3654843867,
-0.4115673602,
-0.1679455042,
-0.2127002478,
-0.1215474606,
0.080656603,
0.0565327741,
0.2683746815,
0.0463491194,
-0.1071778685,
0.3505340219,
-0.0325152315,
0.5019233823,
0.635884881,
0.0561860427,
-0.1729899049,
0.2044604272,
-0.1537905037,
0.1589086056,
0.1165412962,
-0.123247318,
0.3661242425,
-0.0137462085,
-0.0890679583,
-0.1629223675,
-0.3557831943,
-0.0765865371,
-0.3086442947,
-0.332285732,
-0.4312345386,
0.5538910627,
0.0869346783,
-0.1268824786,
0.5455660224,
0.4396696687,
-0.422263056,
0.3849901855,
0.4214797318,
0.8774517179,
-0.1859511137,
0.1373999566,
0.042010691,
-0.1602692008,
0.0516844168,
-0.3475290835,
-0.0553087257,
-0.2762126327,
-0.2480943203,
-0.2208873928,
-0.2604960203,
0.3207473755,
0.559861362,
0.0758313015,
-0.0168099999,
-0.3847162127,
0.0434470065,
-0.0894950926,
0.2776196897,
-0.2985428274,
-0.3013455272,
-0.3294841051,
-0.0017133541,
0.0805205852,
-0.1858924627,
-0.0120101795,
0.1934578121,
0.1445693672,
-0.2084544897,
0.0309498161,
-0.0524720661,
-0.3397982419,
0.1762103289,
-0.2059483826,
-0.3090373576,
0.3525288403,
0.3789276779,
-0.0324098468,
0.1247442365,
-0.1507905722,
0.0342160985,
0.1641657203,
0.0364577323,
-0.4183196127,
0.2958883345,
-0.0074210884,
-0.0325893275,
-0.2283526808,
0.2319409251,
-0.0671022758,
-0.2458570749,
0.0267585218,
-0.2021274567,
-0.0008234307,
-0.0305232424,
0.2954303026,
-0.1471581459,
0.117641367,
0.0350883007,
-0.0040231487,
-0.0434713811,
0.3414013386,
-0.1429956257,
0.126292184,
-0.4455612898,
-0.1689263731,
0.2117101103,
0.2873641253,
0.0582486168,
0.4512848258,
0.1148977131,
-0.3726486564,
-0.3462504447,
0.2389021069,
0.2295861542,
-0.6402404308,
-0.117389217,
0.1829471737,
0.084212482,
-0.1442794055,
0.0859021842,
-0.1411007494,
0.120036602,
0.0319070965,
-0.059322238,
-0.1330084503,
0.2434148937,
-0.1136927456,
0.2819100916,
0.1148820296,
-0.6818987727,
0.2275174558,
0.2323221862,
-0.1118890122,
-0.0881011784,
0.2363084257,
-0.2088968456,
-0.1703199744,
0.3237912357,
-0.0378166735,
-0.1207607239,
-0.077024132,
-0.1613734365,
-0.0819711238,
-0.067990832,
-0.0786919519,
0.2069289088,
-0.0629199147,
-0.0170487817,
-0.3042810261,
-0.4994447529,
-0.2313914597,
-0.17665115,
0.3165333271,
0.0037680268,
0.0465875193,
-0.0950723365,
0.5397336483,
-0.0374462157,
-0.5059788227,
0.0949014649,
0.0681317896,
0.3120405674,
0.0345155001,
-0.1459199488,
0.1798984855,
-0.0784864128,
-0.1369372904,
0.2776890099,
0.1636316478,
-0.1743120104,
-0.0390993357,
-0.0886484385,
0.168362543,
-0.2907944322,
-0.0498126075,
0.3259471357,
0.0578668341,
-0.4079630077,
0.2748280466,
-0.0258510411,
-0.0484588407,
-0.1697885543,
0.1993430257,
-0.121525161,
-0.1191870272,
0.298969388,
0.2730690837,
0.0533035547,
-0.2868103981,
0.0534575209,
-0.2210310698,
0.0159476809,
0.0093288273,
0.3286040425,
0.0121223852,
-0.0208331794,
0.1727485359,
0.3737921417,
-0.0068510659,
-0.1617455781,
0.163517192,
0.2933344841,
0.2526715696,
0.0588130169,
0.0566382259,
-0.2255408764,
-0.2934305668,
0.2154272199,
-0.3224658668,
-0.1408234388,
0.1355366111,
0.2070711255,
0.6086523533,
-0.2856194377,
-0.2322922051,
-0.0215823185,
0.0368518271,
-0.0152968466,
-0.1585858762,
-0.1238401383,
0.0329355299,
0.0500572175,
-0.0123466672,
-0.0004820526,
0.2223767936,
0.1357264519,
0.1743845493,
-0.0047156867,
0.7997291684,
0.2598018646,
0.0542511232,
0.126211226,
-0.084155187,
-0.2683345079,
0.2477652133,
0.0414630435,
0.2554843128,
-0.275799036,
0.1120379567,
-0.1659212112,
-0.2564070225,
0.3634274602,
-0.0557477213,
0.1121232212,
0.2614702284,
0.2424995601,
-0.0933836848,
0.3008228838,
-0.037958283,
0.0355846547,
-0.2434576899,
0.1682687998,
0.4942238927,
0.0066176169,
-0.0879392326,
0.2070048004,
-0.21294415,
0.2865087986,
-0.0173455589,
0.0251470581,
0.1361808181,
0.517582953,
-0.193705678,
-0.2439181656,
-0.2746250033,
-0.0198902376,
-0.0908435211,
0.7207257748,
0.0993877798,
0.3605445027,
-0.0419985689,
-0.2870458961,
-0.1729599684,
-0.1709917635,
-0.205361262,
0.2452681363,
0.3425688446,
0.0046527386,
0.1894659102,
0.3650677502,
0.2575705647,
-0.1026759297,
0.1270699948,
0.1555004716,
-0.0229718164,
-0.0149909081,
-0.0577145778,
0.3434264064,
-0.6017377377,
-0.3483430147,
0.0381357223,
0.1895767599,
-0.1263941377,
-0.1201359704,
0.199308902,
0.2455298454,
0.3667793274,
0.4701034427,
0.0451771691,
0.230868265,
-0.0662703291,
-0.0260928571,
0.1762666404,
-0.4044026732,
-0.0097006783,
0.2698435187,
0.021732498,
-0.2480506301,
-0.0770386308,
0.1335395277,
0.0351829268,
0.0454139262,
0.0607023835,
0.4718449712,
-0.3078614771,
0.0711216107,
0.0982080996,
-0.0478934944,
0.0559050813,
-0.1070272475,
0.1613433808,
0.0645469129,
0.0472759604,
-0.0593671799,
0.199701786,
-0.0551062636,
-0.0160733387,
0.28070575,
0.4276413918,
0.2663167417,
-0.1641876101,
-0.4257064462,
0.0837851614,
0.3360573649,
-0.300160706,
-0.075456135,
0.2571478188,
-0.1475958228,
0.2642500997,
-0.1879017949,
0.5215159059,
-0.0773454905,
0.0986888707,
-0.5550123453,
-0.3778088093
] |
https://github.com/huggingface/datasets/issues/2092 | How to disable making arrow tables in load_dataset ? | @lhoestq How can we make sure that the data we upload on HuggingFace hub is available in form of preprocessed arrow files ? | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 23 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
@lhoestq How can we make sure that the data we upload on HuggingFace hub is available in form of preprocessed arrow files ? | [
-0.1100974753,
-0.4545696676,
-0.1245339885,
0.3275226355,
0.1385049522,
0.0666502491,
0.1080088615,
0.0051872693,
0.2907290161,
0.2163159847,
-0.0762576014,
0.3311562538,
0.0758253485,
0.2674564123,
0.3114098608,
0.0753528029,
-0.0126065388,
0.3374114931,
-0.4707738161,
-0.0729583278,
-0.0226508081,
-0.1312708855,
-0.028079316,
0.1429724246,
-0.3697293997,
-0.1202768311,
0.1659018099,
0.1318922937,
-0.4114732742,
-0.3004581928,
0.279926002,
0.3918725252,
-0.2110332996,
0.2840104997,
-0.0001185283,
0.0347917378,
0.0148410825,
0.0469430983,
-0.4234540462,
-0.0630002618,
-0.1052791476,
-0.0900128111,
0.5526963472,
0.1363578439,
0.1049977839,
-0.4011049569,
-0.2245008349,
-0.1469558179,
0.4965697527,
-0.1221485883,
0.1708035767,
0.4002009928,
-0.0367951021,
0.0012564734,
0.2102967799,
0.3903616965,
-0.4905524552,
0.2777499855,
0.1035268456,
0.0421915203,
-0.2085118294,
-0.0491254255,
-0.004857257,
-0.1373192072,
0.3756077886,
-0.0360607766,
-0.1985395253,
-0.4639986455,
0.0708648413,
0.3484270573,
0.5639101267,
-0.3297152221,
-0.1446354687,
-0.3594789505,
0.2402592301,
-0.0216072761,
0.3293653131,
0.2255371809,
-0.1578766406,
0.0673473552,
-0.2663392425,
-0.5470795035,
-0.3333833218,
-0.2185760289,
0.5047804117,
-0.0769152492,
-0.1086544022,
-0.0129907131,
0.2491817325,
-0.0777416378,
0.2917524576,
-0.0805461258,
-0.2887808084,
0.2161270231,
-0.191463843,
-0.3093223572,
-0.2812367678,
0.4735991657,
0.3961885273,
0.4002004862,
0.5239638686,
0.0959405601,
0.0720110685,
-0.1174759716,
-0.0317175686,
0.1587302387,
0.1935540885,
-0.1155328304,
0.2119949162,
0.1582829058,
0.1720877141,
0.0098210052,
0.0601810068,
-0.3296574652,
-0.1955472529,
-0.0224682223,
0.1544832885,
-0.1553845108,
0.093943961,
-0.1374527663,
0.2613371909,
0.0638695732,
0.356095016,
0.0569743961,
0.1806926131,
-0.0295460802,
-0.1791047454,
0.3790057302,
-0.2480833828,
-0.2792919874,
-0.1047427952,
-0.1694387197,
-0.1806075573,
0.4586040378,
0.4090622365,
-0.1122872233,
-0.0887115523,
0.4487027824,
0.0572251901,
-0.0153427571,
0.048490189,
-0.1698325574,
0.1490182281,
0.4378685653,
-0.0290970281,
-0.0705792457,
-0.0994415283,
0.1250167489,
-0.1465254724,
0.2650181651,
-0.3646681607,
-0.4418750107,
0.0444752723,
0.0543171279,
-0.0444460399,
0.0182584543,
-0.793211937,
0.1292461306,
-0.2953802943,
0.3496226072,
0.2732410133,
0.1834333241,
-0.0424470901,
-0.2014659792,
0.185955435,
0.3522908688,
-0.1842114925,
0.0959444344,
0.1387860626,
-0.3303411007,
-0.1780184656,
0.1179887652,
-0.3667703867,
0.2427917421,
-0.1544749141,
0.0416446179,
0.4212187529,
-0.0907353461,
-0.0077267531,
-0.0763671547,
-0.0343230441,
0.1033496037,
0.147195816,
-0.1076357514,
-0.0380744375,
-0.1216006279,
-0.2622415423,
0.1754319072,
0.1581320912,
-0.1894267648,
0.0890530497,
-0.2200373709,
-0.0470203459,
0.0155243725,
-0.3854588568,
0.1361884922,
0.0694889277,
-0.3777512014,
0.0612148456,
-0.1447188407,
-0.1063740924,
0.0715663433,
-0.0054900786,
0.0905899107,
-0.0275944546,
0.2464643717,
-0.8245880604,
0.2613978386,
-0.1207312793,
-0.0144080818,
-0.1286076158,
-0.1991345584,
0.0065704137,
0.1967716366,
-0.1613356471,
0.4198439717,
0.0400855467,
-0.6630694866,
0.1237021238,
-0.2078924626,
-0.4388539195,
0.1259002984,
-0.3588649333,
0.4169157147,
-0.5347790718,
0.1409382671,
0.2798050344,
0.0023946464,
0.1017084271,
0.0857688189,
-0.0059616379,
0.1202666312,
-0.0833945423,
0.208268702,
0.2024602592,
0.4575896859,
0.3043970466,
0.4158646464,
0.1502271742,
-0.425065428,
0.2253435254,
-0.438534677,
-0.0400626995,
-0.0068694651,
-0.0001247441,
0.2602644563,
-0.4774881005,
0.2487121522,
0.0717636049,
-0.0799845681,
-0.0640245229,
0.1609707177,
-0.2656227052,
-0.2145773172,
0.1559645087,
0.1631300449,
0.3208197057,
0.2711209357,
0.0731397867,
-0.0346232653,
0.0183137655,
-0.1053542495,
-0.056252256,
0.135691449,
0.0144985653,
-0.0940969735,
0.1921983063,
-0.1028648242,
0.1302127391,
0.155301407,
0.1930709034,
0.0749020427,
-0.1782564521,
-0.3413227201,
0.2432802469,
0.1592383385,
0.3405295312,
-0.0173169076,
-0.0734462366,
-0.070631355,
-0.5441482067,
0.1775172651,
-0.3389021754,
-0.1754335016,
-0.3400021195,
-0.0805459246,
-0.2896673083,
0.0255502388,
0.0796997398,
-0.2292757332,
-0.5078183413,
0.0496622697,
0.3225150704,
-0.0190666318,
-0.0947642326,
-0.0793132931,
-0.0583979711,
0.5088123083,
-0.2279469073,
0.0185196307,
-0.5136079788,
0.1025355458,
0.1898601204,
0.0411526263,
0.1310687661,
0.1151972264,
0.3711620569,
-0.0504334196,
0.1480108798,
-0.274323225,
0.0571410805,
0.2185665369,
-0.1748708189,
-0.0808986574,
0.0650819093,
0.2000822574,
-0.0712439045,
0.1652929783,
0.0119652152,
-0.2896600962,
-0.1578965187,
0.0980069637,
-0.217929557,
0.2611680627,
-0.1466184855,
0.0785113722,
0.0847815573,
-0.2372640669,
0.3560937643,
0.0727702528,
0.1659402251,
0.1821751595,
0.1853740811,
0.0225033984,
-0.2359182984,
0.1332661211,
-0.0792166144,
-0.4334350526,
0.4475567341,
-0.2334076166,
-0.2612312138,
0.3169552386,
0.1296937615,
0.2379163951,
0.1163241118,
-0.5254434347,
0.1258656234,
-0.1705872118,
0.0319622606,
-0.1600881666,
0.0561916605,
0.3184773326,
0.0864024162,
-0.002733469,
-0.1439161599,
0.1006570905,
0.3076087832,
-0.0458947457,
-0.0421251431,
0.0426629409,
0.0149013791,
-0.4100804925,
0.4363572896,
-0.0640629083,
0.2218591273,
0.3528683186,
0.1127992868,
0.3964585066,
-0.2960093021,
0.2807891965,
-0.528657496,
-0.0807234794,
0.215633586,
0.1306063533,
0.4294697046,
0.1301450729,
-0.250613451,
0.0370224789,
0.0122813284,
-0.2276197374,
0.0842489153,
-0.4871127903,
-0.1096764952,
-0.0329922438,
-0.0747416243,
-0.0610881448,
-0.2015200257,
0.1468239278,
-0.0854725465,
0.4783964753,
-0.156028226,
-0.4461256862,
-0.1290571839,
-0.3959276378,
0.1136706918,
-0.1200311482,
-0.1101225913,
-0.0130367056,
-0.0511960126,
0.3627045155,
0.2612912059,
0.3381400108,
-0.017581027,
-0.2269538045,
-0.1811381876,
-0.1522104144,
-0.5588306189,
0.2730967999,
-0.0250026062,
0.0530476011,
-0.4321389496,
0.2322058976,
-0.1590504199,
-0.4867697358,
-0.0347320847,
0.3422045112,
-0.1691906452,
-0.1565614343,
-0.2592451274,
0.0075490922,
0.0096300244,
-0.1962582618,
0.0238095075,
-0.3379900753,
-0.3770415187,
-0.2375994027,
-0.136736542,
-0.0702634901,
0.0693276674,
0.1305484474,
0.3056548536,
-0.0491021387,
-0.0501070321,
0.6013352871,
0.1318715066,
0.3350694776,
0.7355267406,
0.0471776091,
-0.3311438262,
-0.0033873916,
-0.0484330878,
0.30597049,
0.3620961905,
-0.0146426037,
0.2749544382,
-0.1106641963,
-0.0342354998,
-0.4976655543,
-0.2990255654,
0.0701590106,
-0.2617881596,
-0.222722277,
-0.2190456986,
0.5680629015,
0.0189966187,
-0.1520608068,
0.5435662866,
0.7026252747,
-0.2865084708,
0.3620838821,
0.2507552803,
1.0189743042,
-0.1258428842,
0.1765021384,
0.1644605696,
-0.1596135646,
0.2215938419,
-0.156544134,
-0.0728097111,
-0.1108190566,
-0.1812841147,
-0.1127723902,
-0.2024477124,
0.234939903,
0.3957489133,
0.0797576904,
0.0002263188,
-0.350566566,
0.0246780887,
-0.2778591812,
0.1437402964,
-0.3000414968,
-0.5094459057,
-0.5215591192,
0.0904545188,
0.1492135823,
-0.0668035597,
-0.0609570406,
0.1719689965,
0.072322458,
-0.1597869098,
0.0820628405,
-0.153857708,
-0.2308877409,
-0.0509244874,
0.1718112528,
-0.2952210903,
0.1772788614,
0.3074361384,
0.1240356863,
-0.0667508394,
-0.1936372966,
0.0937848091,
0.0198961254,
0.0419725887,
-0.4512566924,
0.1863233596,
0.0436515659,
-0.1145979315,
-0.1931345761,
-0.0149624906,
0.06897524,
-0.1675018668,
0.0595382005,
-0.1282436848,
-0.0260730609,
-0.177170217,
0.250400424,
-0.101119563,
0.2999177873,
0.0453326553,
0.0786274374,
0.1116083413,
0.1935487688,
-0.0053187124,
0.3507252336,
-0.2922368646,
-0.1005297527,
0.1709354818,
0.1227685064,
-0.3113184571,
0.3636636436,
0.0727196112,
-0.3071182668,
-0.3510375917,
0.3143330812,
0.3919263184,
-0.8428550959,
-0.0073083136,
0.2356800139,
-0.0706529468,
-0.1913157254,
0.1781539172,
0.1387345344,
-0.0710747167,
0.0633333325,
0.0630553216,
-0.3358903527,
0.3309179246,
0.1152628809,
0.2259657532,
-0.0569997132,
-0.7230476737,
0.1906859875,
0.2346632481,
-0.2108671218,
-0.0110265519,
0.1433057934,
-0.1370856315,
-0.1973809153,
0.2182659209,
0.0825315118,
-0.2296376973,
-0.031000454,
-0.1259455681,
-0.2582266927,
-0.1548725963,
-0.1498698741,
0.1633936465,
-0.073190406,
-0.1037511975,
-0.3107849956,
-0.3471993804,
-0.0970343649,
-0.1701604426,
0.2492841929,
0.0597429723,
0.1258668602,
-0.2683155537,
0.6817312241,
0.1024314016,
-0.4241307974,
0.1237005144,
0.2305527925,
0.4535214603,
0.1163684949,
-0.3404818475,
-0.1207612604,
-0.1914927959,
0.2119706273,
0.3374480605,
0.3766676188,
-0.1355812103,
-0.11386922,
0.0466498919,
0.1565053165,
-0.3454875946,
0.094707936,
0.3999519348,
0.0542447604,
-0.2553443015,
0.2509407401,
0.0872726664,
0.0465141684,
-0.0608865954,
0.2509109974,
0.0469505899,
-0.1093305945,
0.2647151947,
0.2352203131,
0.2208652496,
-0.1022062302,
0.0490368903,
-0.1480414569,
0.1447736025,
0.0304693468,
0.1158185825,
-0.2176095843,
-0.0858725831,
0.3323890865,
0.4036592841,
-0.0065654069,
-0.0435485654,
-0.0266868807,
0.4827600718,
0.1713674068,
0.1913899779,
0.1979720294,
-0.2922002375,
-0.3643680513,
-0.0274737626,
-0.1032731533,
-0.1535482556,
0.1526008099,
0.4873874187,
0.3485181928,
-0.4362680912,
-0.2760221958,
-0.0571554489,
-0.0304020084,
-0.0383336991,
-0.1758429557,
-0.145313248,
-0.0165433884,
-0.0856229812,
-0.0803148746,
-0.0160516575,
0.2937102914,
0.0897767395,
0.2287435979,
0.0639606938,
0.3939079344,
0.2061112374,
0.1510291398,
0.3409267068,
0.0631588846,
0.0059550516,
0.3230859935,
0.0947482064,
0.2646947503,
-0.112422578,
-0.0500251353,
-0.1727468222,
-0.0082480833,
0.303237021,
-0.092509374,
0.0496075749,
0.3993672431,
0.1748819649,
0.1327622235,
0.1311964989,
0.0755117014,
-0.0372755453,
-0.1949140728,
-0.0890000612,
0.4191939831,
-0.018863894,
0.1095526516,
0.0970700234,
-0.2161708176,
-0.0350929946,
-0.0308072791,
-0.0494228266,
0.0970055982,
0.4881451428,
-0.2978170812,
-0.2739187479,
-0.2831572294,
0.0307261162,
0.0582161061,
0.8948067427,
0.2400967181,
0.2643406987,
0.0113208815,
-0.3547375798,
-0.2399244606,
-0.0330054462,
-0.0751704872,
0.2713895142,
0.1888170838,
-0.1306464076,
0.2097887695,
0.4919033945,
0.2400503904,
-0.1573125869,
0.1594812572,
-0.0028053783,
-0.0664311275,
0.0140240844,
0.0303638428,
0.1939194649,
-0.4093898237,
-0.1508577913,
0.1641546786,
0.2551957965,
-0.1288656592,
0.0609901771,
0.2979825437,
0.0469961688,
0.2677920163,
0.3522818387,
0.1014784276,
0.1359044611,
0.065699622,
-0.0964446366,
-0.0508316085,
-0.4565627873,
0.0010537729,
0.2205656171,
-0.007412144,
-0.3085293174,
-0.1222022623,
0.0345911235,
0.0705062449,
-0.0084914304,
0.0030954704,
0.2791029215,
-0.2836880088,
0.0735959858,
0.1059358418,
-0.0550238229,
0.1909137368,
0.0099868188,
-0.0054555275,
0.016160138,
0.0496665984,
0.0464626327,
0.4059771895,
0.0641094595,
-0.0398204774,
0.145532161,
0.3363783062,
0.3294085264,
-0.1950831264,
-0.5431345701,
0.0223275423,
0.0680246353,
-0.3204877973,
-0.0192939974,
0.5207048059,
-0.1929075718,
0.0761839598,
-0.1330618709,
0.6729956865,
0.0351433456,
0.206990242,
-0.2796562314,
-0.2860946655
] |
https://github.com/huggingface/datasets/issues/2092 | How to disable making arrow tables in load_dataset ? | We're still working on this :) This will be available soon
Users will be able to put their processed arrow files on the Hub | Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ? | 24 | How to disable making arrow tables in load_dataset ?
Is there a way to disable the construction of arrow tables, or to make them on the fly as the dataset is being used ?
We're still working on this :) This will be available soon
Users will be able to put their processed arrow files on the Hub | [
-0.3103683293,
-0.2093833089,
-0.1464324296,
0.2652351856,
0.0345697328,
0.066694282,
0.2737095952,
0.1132884622,
0.3428300619,
0.2253296524,
0.02257853,
0.5258626938,
0.0204510167,
0.1348217726,
0.2148842365,
0.2104861885,
-0.0567543432,
0.3835604191,
-0.3702234626,
-0.0217932165,
-0.0132304877,
-0.2425346524,
-0.0369563773,
0.1654256582,
-0.3527927399,
-0.1516540349,
0.2050916553,
-0.0799774304,
-0.3733308315,
-0.3553422689,
0.2808742523,
0.371386677,
-0.2569583952,
0.2140727788,
-0.0001159839,
0.0817523822,
0.1164759174,
0.1294048578,
-0.3511273563,
0.0271335803,
-0.2709637582,
-0.0506312773,
0.5330005884,
0.0481896847,
0.1740212142,
-0.3140257597,
-0.3261055052,
-0.2373576462,
0.3075525165,
-0.1084174365,
0.1901614666,
0.1338143945,
-0.1258651316,
0.0214219838,
0.3372375071,
0.2644145489,
-0.5166213512,
0.1766558886,
0.0029493682,
0.0186852887,
-0.2683089077,
-0.0692394227,
-0.0806633607,
-0.1670559347,
0.2791848779,
-0.1535368413,
-0.1141780317,
-0.4275370836,
0.0803016275,
0.2599163651,
0.7489740849,
-0.3426681161,
-0.1013405323,
-0.2271205485,
0.2399844527,
0.046320118,
0.2915191054,
0.2484012544,
-0.1438122243,
0.0492910482,
-0.3220915496,
-0.5807151198,
-0.3312956989,
-0.2287507057,
0.3389681578,
-0.1010697186,
-0.0031776205,
-0.0043582469,
0.2739900649,
-0.0322464556,
0.6454588175,
-0.0957825556,
-0.4226685166,
0.1684318483,
-0.2579937279,
-0.3450998366,
-0.2567852139,
0.3940745294,
0.269752562,
0.3345095217,
0.5258707404,
0.0830109343,
0.1021841615,
-0.0601601973,
-0.0829810649,
0.1526265144,
0.3308387697,
-0.0539744385,
0.2798465788,
-0.0290624294,
0.0941071659,
0.0300744995,
0.0683989078,
-0.4570542872,
-0.1736431122,
0.0321195684,
-0.0016696975,
-0.1858099997,
0.0548642948,
-0.1981114894,
0.1823127419,
0.0743918121,
0.3349525332,
0.0447428599,
0.2945009172,
0.0740877539,
-0.1831939518,
0.2993353605,
-0.2095320076,
-0.1715043187,
-0.0472711325,
-0.2076271623,
-0.2439620346,
0.3211621642,
0.3855161965,
0.0219371021,
-0.151908651,
0.450589478,
-0.0635129362,
0.0171688944,
0.2573388815,
-0.1818989962,
0.170449242,
0.5423361063,
0.0090396032,
-0.1620635688,
-0.1104332954,
0.0282396451,
-0.0701753795,
0.4509626031,
-0.4174426198,
-0.3716729879,
0.0600931793,
0.1057709232,
-0.0788253322,
-0.0629553869,
-0.7715756297,
0.0448148511,
-0.1329559237,
0.309438467,
0.264872551,
0.1242683977,
-0.0766550601,
-0.2044764906,
0.0895227715,
0.2795030475,
-0.3330898881,
0.184401989,
-0.056063585,
-0.2037725747,
-0.1754719019,
-0.0012653144,
-0.4258306921,
0.2005179524,
-0.1304034591,
0.0118649006,
0.5192416906,
-0.0667948574,
-0.0070452988,
0.0726579651,
0.0436772555,
-0.0900364667,
0.1525605023,
-0.0635975972,
-0.0286899023,
-0.1447895169,
-0.2948603034,
0.0517016537,
0.2370397747,
-0.1687286198,
0.1082213446,
-0.2682803571,
0.0947845578,
-0.0910401344,
-0.278041929,
0.1210110188,
0.2302228808,
-0.234246999,
0.1505141109,
-0.1324550062,
-0.1091561094,
0.1529867351,
0.0997962579,
-0.0965341926,
-0.002666194,
0.1729295403,
-0.6459118128,
0.2446268499,
-0.134822607,
-0.0035571121,
-0.014318265,
-0.2581926584,
0.0553362258,
0.1292534173,
-0.1676239222,
0.396889329,
0.0644267872,
-0.7594501376,
-0.0210419409,
-0.2730540633,
-0.3172906637,
0.0633026659,
-0.3434698582,
0.2090673596,
-0.3996973634,
0.1945396215,
0.2741889656,
0.017556943,
0.0969061106,
0.046588935,
-0.0056083966,
0.1921328753,
-0.1821300685,
0.216233328,
0.2495949715,
0.3024959862,
0.2750135362,
0.3957771063,
0.0631692857,
-0.4625009894,
0.4302767813,
-0.4933480918,
-0.0508706346,
-0.029959701,
0.0575818457,
0.2281272113,
-0.438893795,
0.2713942528,
0.0143620819,
-0.0640693232,
-0.0025123432,
0.1378728449,
-0.1525088549,
-0.1967371404,
0.0699671656,
0.2555826306,
0.2578309178,
0.2911309302,
0.1528059691,
-0.0244934857,
0.0216726139,
0.0796902403,
-0.0018181838,
0.1429063678,
0.0162563734,
-0.1354295015,
0.1111122742,
0.0136050284,
0.2229937017,
0.1735732704,
0.0848788619,
-0.0212470107,
-0.1328103244,
-0.3586786985,
0.3063269556,
0.1005611196,
0.4162054956,
0.052924633,
-0.0220046286,
-0.1683461368,
-0.5321384668,
0.1023723334,
-0.2003421485,
-0.1142186373,
-0.3129301369,
-0.1056991667,
-0.3163560033,
-0.0081690848,
0.0785484985,
-0.1067342684,
-0.4908870161,
-0.0413648039,
0.3447565436,
-0.0384742245,
-0.0207315646,
-0.0190740712,
-0.2208306044,
0.3961042762,
-0.121258609,
0.0660761371,
-0.6435345411,
-0.0223675873,
0.2465205789,
0.1031161398,
0.0695401207,
0.1105956361,
0.2626501322,
0.0976540968,
0.1982638091,
-0.2104328126,
0.0442121476,
0.1528566778,
-0.0880777687,
-0.1403048784,
0.1137232408,
0.1261761189,
-0.0997865796,
0.1234927401,
-0.1222460866,
-0.2544908524,
-0.1200753599,
0.1681583524,
-0.2586185634,
0.2979019284,
-0.1329233199,
-0.0157443658,
0.1073457226,
-0.2231791317,
0.1770684719,
0.1241576225,
0.1861980259,
0.1440703124,
0.2328473926,
-0.0193374101,
-0.0556622297,
-0.0799490586,
-0.0262094773,
-0.3828010261,
0.4329153597,
-0.322811842,
-0.191691488,
0.3459976614,
0.2078006566,
0.3050367832,
0.18488653,
-0.4744645655,
0.3793216944,
-0.2185674608,
0.012955226,
-0.2385341078,
-0.0208473336,
0.2446887791,
0.1760329753,
-0.0418692082,
-0.176109314,
0.2295517623,
0.2544283867,
0.0437615179,
-0.0548274405,
0.025107421,
0.0771375522,
-0.3237437904,
0.3563771844,
-0.1245106608,
0.1490377337,
0.2294838578,
0.026924016,
0.3668172061,
-0.30669415,
0.308734566,
-0.4477268457,
-0.0415465906,
0.1445008069,
0.0641135201,
0.2390730977,
-0.1201755032,
-0.1601918787,
0.0096519291,
0.1319188029,
-0.1612616181,
-0.0346192271,
-0.743639946,
-0.1173463762,
-0.0558336265,
-0.0480464622,
-0.0292788148,
-0.2988165915,
0.1522431821,
-0.1356476545,
0.4277971089,
-0.2315806597,
-0.3994403183,
-0.0872967839,
-0.2561010122,
0.0836078227,
-0.1827529669,
0.0100352243,
-0.0118827522,
0.101951763,
0.2888180614,
0.2473777086,
0.31611076,
-0.2173170745,
-0.0904020816,
-0.0167902075,
0.0268065855,
-0.5356785655,
0.2516003847,
0.100353986,
0.126526773,
-0.5037959814,
0.1540516019,
0.0333894789,
-0.4428295493,
-0.0943355784,
0.372058332,
-0.2775087655,
-0.2339154035,
-0.2597718239,
0.1157044917,
-0.0050637051,
-0.1438828409,
0.061001502,
-0.3092710674,
-0.5351698399,
-0.3712533712,
-0.2194991261,
-0.201485768,
0.0451501384,
0.1697089672,
0.2755420208,
-0.0576479323,
-0.0901063159,
0.4645031095,
0.0100135952,
0.3138617873,
0.5680855513,
0.1147116274,
-0.2208568007,
0.1053469926,
-0.2555281818,
0.346134901,
0.1833429784,
-0.1466766596,
0.2589339018,
-0.1299966276,
-0.14730151,
-0.2657667994,
-0.3406082094,
-0.0761997551,
-0.2886853814,
-0.1925837994,
-0.40183568,
0.4588522613,
0.0464710444,
-0.1920522153,
0.6431562304,
0.3190078437,
-0.3394657969,
0.4343406558,
0.3548599482,
0.8494630456,
-0.112750195,
0.0916338414,
0.0217829272,
-0.0793701559,
0.0984683335,
-0.2582958937,
-0.0308730062,
-0.2190081775,
-0.2396130562,
-0.1552691609,
-0.2967151999,
0.3031741381,
0.6141325831,
0.1015933752,
-0.0674712658,
-0.4352977574,
-0.0642317608,
-0.2260584533,
0.1462738365,
-0.2950594425,
-0.3401351571,
-0.3785328865,
0.1125152558,
0.1348387897,
-0.257776022,
0.019770965,
0.1866466403,
0.0442517549,
-0.1310453117,
0.1150087118,
-0.0062729642,
-0.1419145614,
0.1525869071,
-0.1189705431,
-0.2175102681,
0.2758842707,
0.359798491,
0.023814952,
0.0525272042,
-0.1432894021,
0.2025455534,
0.1643685848,
0.1549892128,
-0.3488693237,
0.1979310811,
0.0289447438,
-0.1203053072,
-0.2554786801,
0.0646889955,
0.093132183,
-0.289629221,
0.2149238884,
-0.0353779942,
0.0891194791,
-0.1722827703,
0.281796962,
-0.0768024325,
0.2213680446,
0.0420482084,
0.1181834787,
0.1777943373,
0.1622173786,
0.1248469651,
0.1956326813,
-0.3417983651,
0.0051922295,
0.1840080023,
0.2707304358,
-0.2205855846,
0.3048518598,
-0.0095322877,
-0.30667606,
-0.4091405272,
0.4217348695,
0.3146271408,
-0.8149151206,
-0.057242129,
0.2092863768,
-0.0014710277,
-0.0540957786,
0.0822004378,
-0.0592986122,
0.1220710278,
-0.0522357337,
-0.0146661773,
-0.2908225358,
0.2115479112,
0.1122523099,
0.3109158278,
-0.0897132009,
-0.7034541965,
0.1804858446,
0.153632462,
-0.2199939042,
-0.0599917322,
0.2268677056,
-0.1025592983,
-0.3732084036,
0.2789996564,
-0.0280099157,
-0.2221341133,
-0.0012286156,
-0.0953472555,
-0.1374146789,
-0.1694262922,
-0.1414268315,
0.1486064643,
-0.045248054,
-0.0276264511,
-0.3236449361,
-0.3971844316,
-0.2167581618,
-0.0718019158,
0.2295222282,
0.0195027962,
0.0725384206,
-0.1225269288,
0.6832389832,
-0.0225253776,
-0.3817600012,
0.1587913781,
0.1356398314,
0.3880697787,
0.100099057,
-0.1560022086,
0.0220112465,
-0.15475595,
0.1818910539,
0.2245162576,
0.0930378512,
-0.0119641963,
-0.098369211,
0.027261246,
0.1843190193,
-0.3156688809,
0.0274690911,
0.3971517086,
0.0973076969,
-0.3781376481,
0.2585869133,
0.1290523708,
0.0012019873,
-0.1575753987,
0.2228886783,
0.0566263609,
-0.1367577016,
0.1579704583,
0.2353891134,
0.0697354972,
-0.2357998192,
0.0800211728,
-0.1176939309,
-0.0643168688,
0.0803124681,
0.2674285173,
-0.1702553332,
-0.1227635667,
0.25048998,
0.2941715121,
-0.0121873133,
0.130335182,
0.1312682629,
0.4220907092,
0.4682115316,
0.0644309074,
0.0893925577,
-0.1402357221,
-0.3395055234,
-0.0389653593,
-0.1989300549,
-0.2140464187,
0.2471104562,
0.2983283103,
0.4900266826,
-0.31157884,
-0.195257172,
-0.0586152375,
0.0022104913,
0.0599646196,
-0.2511165738,
-0.1193675771,
0.0283699632,
-0.1294396222,
-0.0732684731,
0.1970203668,
0.2804989219,
0.1395809352,
0.2168689668,
0.1357160956,
0.6554522514,
0.2773419321,
0.1334080696,
0.2608629465,
-0.0865956843,
-0.1507750601,
0.3010553718,
0.0982851908,
0.2140384167,
-0.2161128521,
0.0128244832,
-0.1068078727,
-0.0141805224,
0.3038370609,
-0.1228855848,
-0.0021906011,
0.3791875243,
0.1692742109,
0.1502940506,
0.1970706433,
0.0862879977,
-0.004229676,
-0.241492033,
0.0157358833,
0.4444575608,
0.077692315,
0.153319329,
0.3310967386,
-0.3567518592,
0.1181738675,
0.0079829507,
0.0646656007,
0.0585178323,
0.656462729,
-0.3163784742,
-0.2799340785,
-0.3861471117,
0.0366572477,
-0.0452192649,
0.8656637669,
-0.0083552469,
0.276596278,
0.0494279675,
-0.284250617,
-0.2294549644,
-0.0662244558,
-0.0475875586,
0.343177408,
0.2284074277,
-0.1373744905,
0.2349413335,
0.4011734724,
0.2569221556,
-0.1622022688,
0.2006438375,
0.0988551229,
-0.106665574,
0.0774331391,
0.0570646748,
0.3371539414,
-0.50047189,
-0.2039076388,
0.1073566228,
0.2701488733,
-0.0749052614,
-0.0041895267,
0.1313370615,
0.3006616235,
0.40708372,
0.4192459583,
0.0541679785,
0.2003680915,
0.0273268521,
0.0839661658,
-0.0259348266,
-0.4960830212,
-0.0011241697,
0.2126312107,
0.0638608336,
-0.3875548542,
-0.0927984565,
0.1831555516,
0.0277682394,
-0.1626907885,
-0.0997521058,
0.3595456779,
-0.2504120469,
0.0240564719,
0.1289916784,
-0.0077833012,
0.0447151214,
-0.0787100196,
0.0542051904,
0.0227095485,
0.1066962481,
0.0210291445,
0.2980057597,
0.083355464,
-0.1187905297,
0.2398760021,
0.370780319,
0.2511381805,
-0.1286706328,
-0.3679945469,
-0.0019752383,
0.2696500421,
-0.2883359194,
0.0905908346,
0.402595222,
-0.0758807361,
0.1464561075,
-0.1101844236,
0.5680814385,
-0.0156494416,
0.1962842494,
-0.4282815754,
-0.3301558495
] |
https://github.com/huggingface/datasets/issues/2089 | Add documentaton for dataset README.md files | Hi ! We are using the [datasets-tagging app](https://github.com/huggingface/datasets-tagging) to select the tags to add.
We are also adding the full list of tags in #2107
This covers multilinguality, language_creators, licenses, size_categories and task_categories.
In general if you want to add a tag that doesn't exist (for example for a custom license) you must make it start with `other-` and then a custom tag name.
edit (@theo-m) if you ever find yourself resorting to adding an `other-*` tag, please do ping us somewhere so we can think about adding it to the "official" list :) | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip | 94 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip
Hi ! We are using the [datasets-tagging app](https://github.com/huggingface/datasets-tagging) to select the tags to add.
We are also adding the full list of tags in #2107
This covers multilinguality, language_creators, licenses, size_categories and task_categories.
In general if you want to add a tag that doesn't exist (for example for a custom license) you must make it start with `other-` and then a custom tag name.
edit (@theo-m) if you ever find yourself resorting to adding an `other-*` tag, please do ping us somewhere so we can think about adding it to the "official" list :) | [
-0.2009667754,
0.2520237565,
-0.1304933727,
0.0798937604,
0.1809327751,
0.357142508,
0.311964184,
0.1849830151,
0.1644610316,
-0.0163464323,
-0.0213759486,
0.3338292837,
-0.0963024348,
0.1983849704,
0.1711073816,
0.039982345,
0.1146339998,
-0.0630791783,
0.3094627857,
-0.1812989414,
-0.2011343539,
-0.0329796374,
-0.0578613281,
-0.2001816034,
-0.3019786775,
-0.0922157392,
-0.2026931942,
0.0341947116,
-0.3977000415,
-0.607642889,
0.0248833224,
0.3334519863,
0.1742967069,
0.0735345557,
-0.000107235,
-0.1596613377,
0.1788146943,
-0.2395664603,
-0.0191532113,
-0.1502264887,
-0.2650316358,
-0.4221037328,
-0.1440387964,
-0.0700988621,
0.0782826245,
-0.2990446389,
-0.047019951,
-0.142606914,
0.0189227313,
0.4477112591,
0.2050608397,
-0.2106184065,
0.3308570981,
-0.2609890103,
0.4178490043,
0.2113644481,
-0.1037404537,
0.3762670457,
0.4526176453,
0.0936252326,
0.0395130627,
0.1774768531,
-0.123931013,
0.1795835495,
0.3749466836,
-0.0451229289,
0.357760936,
-0.5386648774,
0.2289715856,
0.3996185958,
1.1531602144,
-0.2931378484,
-0.3107602298,
-0.4575533867,
0.1056200415,
-0.1025070101,
0.1988974214,
0.3195008337,
0.0421364903,
0.1530990154,
0.1238831505,
-0.3448567688,
-0.2380988002,
0.1258862466,
0.1208826751,
0.469353646,
-0.0495387055,
-0.0461796038,
0.2738638222,
-0.0765385404,
0.0914466083,
-0.0086064404,
-0.2317647785,
0.1363529712,
0.1594581902,
-0.0646356195,
-0.2846116126,
-0.1053544134,
0.2494052649,
-0.017172128,
-0.0379190668,
0.0125727914,
-0.1057557091,
0.3409814239,
0.1243556067,
-0.1768717468,
0.1651763916,
0.2110918015,
0.1014957055,
-0.2915714085,
0.3328117728,
-0.1448079944,
-0.1592110097,
-0.1529747099,
0.0148059502,
-0.0020565055,
-0.1087303758,
-0.2182013094,
0.0389912724,
-0.0236608125,
0.0868688971,
-0.1800803542,
0.0146847628,
0.1623936594,
0.1409133673,
-0.2257518321,
-0.2854690552,
0.1749258637,
0.0696322471,
-0.1272715032,
-0.0241920166,
0.2270143777,
-0.1285208464,
0.1915754378,
0.3013638556,
-0.0326024033,
0.2947963178,
0.2256810218,
-0.1369582117,
-0.1198654473,
0.2090930939,
-0.0301326867,
0.2764085233,
0.3786621094,
-0.0219722204,
0.0751834661,
-0.0591327026,
-0.4303904176,
-0.2476125956,
0.1332644224,
-0.4022578895,
-0.2395640314,
-0.4142952561,
0.2273342162,
-0.1181674153,
-0.0451685973,
-0.2261709571,
0.2805584073,
0.0936188847,
-0.1459253281,
0.2434443235,
0.2106729299,
-0.3568445444,
-0.2805345058,
0.0597082451,
0.436062932,
-0.4021865726,
-0.0059408322,
-0.0924031138,
-0.0220791828,
-0.1453582942,
-0.1148246825,
-0.262316227,
0.4330625236,
-0.3410654366,
0.2678819299,
0.43670398,
-0.4631893039,
-0.2488018274,
0.1513609588,
0.0247614831,
-0.2738644183,
0.1768344939,
0.0510145351,
0.528844595,
-0.1293237805,
-0.2133078426,
-0.0302908514,
-0.1984535307,
-0.1061873809,
-0.1198970675,
0.0688977912,
0.0974702239,
0.0927449018,
0.0935567766,
-0.0396655612,
0.4201057553,
0.1274105906,
-0.0038214885,
-0.0719758943,
0.18422167,
0.390068382,
0.2178642154,
0.2241283357,
-0.0349149853,
-0.0805130005,
-0.4013001025,
0.1436462551,
0.1019422784,
0.239657566,
0.008705005,
-0.2792172134,
-0.3434491456,
-0.1810732782,
-0.3264995813,
-0.3358735144,
0.1371123344,
0.0958835036,
-0.2006125748,
0.1670174301,
-0.1382455379,
0.27459988,
0.0647674501,
0.1290217638,
-0.2127902806,
-0.0356390625,
-0.2517781258,
-0.0058520585,
0.2262316793,
0.0662213713,
0.2643677592,
0.0570804663,
-0.0368259102,
0.2464054674,
0.1964491159,
0.258933872,
0.262141943,
0.5404542685,
0.4105025828,
-0.2865337133,
0.3115126491,
-0.3376362622,
0.1178433001,
-0.2898557782,
-0.3992735744,
0.0765099376,
-0.1542880237,
-0.1191553622,
-0.1171762943,
-0.0508104414,
0.1809275299,
0.0152330026,
-0.1221301854,
-0.4397413135,
-0.1711902469,
0.0106517039,
0.0177942514,
0.000756368,
0.2007201761,
0.1873480529,
0.6095919013,
-0.1133486331,
0.1476424336,
0.0923636109,
-0.1258234084,
-0.02890753,
0.1834840029,
0.2011349052,
0.1320296526,
0.2399762571,
0.2614589632,
0.0891627967,
-0.0447775088,
-0.2854479849,
0.1424062848,
-0.0416227281,
-0.0293984674,
0.2343935668,
-0.2252791375,
-0.0814026445,
-0.2844702005,
-0.1078715622,
0.1900338382,
0.3333038092,
-0.2733849585,
-0.225377053,
-0.2778773308,
-0.0811987892,
-0.2023282051,
-0.2605319321,
-0.493773967,
-0.3111183047,
0.0932645947,
0.2138172239,
0.0015653893,
-0.0029051527,
-0.2456210405,
-0.0235086679,
-0.2265374064,
0.1571206152,
-0.2096743286,
-0.2361390144,
-0.1060385406,
0.0858784914,
0.4665776193,
0.4596538842,
0.5857226849,
-0.2945282161,
0.2909274399,
-0.3250323236,
-0.4925008416,
0.1065500453,
-0.1111653596,
0.3061674535,
0.0278483666,
0.0064204894,
-0.0330509245,
-0.04312158,
0.0325087234,
0.0170202628,
-0.0860798359,
-0.1726716757,
-0.0578186922,
-0.1768981814,
-0.0446689799,
-0.5428535342,
-0.1846926212,
-0.3722653687,
0.0926660448,
-0.1413792521,
0.1481265724,
0.1080594137,
0.0608191229,
0.2076723278,
-0.1641063988,
0.2128450572,
-0.2528632283,
-0.0471617207,
0.4831525087,
-0.3762437403,
-0.2860787511,
0.5221704245,
0.0618430078,
0.3283825517,
-0.2235666364,
-0.2752348781,
0.1938798279,
0.2008598,
0.0614612773,
-0.0204018243,
-0.0826193467,
0.2799645662,
0.2153717428,
0.0446460396,
-0.2033178359,
-0.2075476497,
-0.1618236005,
-0.0651317239,
-0.0120492615,
0.0391637236,
0.1518167704,
-0.0432344191,
0.4195068479,
0.0300060213,
0.1842863411,
0.3928277493,
-0.012864586,
0.3791912496,
0.0470498204,
-0.3830394149,
0.197731629,
0.0401780158,
0.1801679134,
0.2621791661,
0.0809966028,
0.1486769319,
-0.0885646939,
-0.1598246098,
-0.3769284487,
-0.2243566215,
0.1970248371,
-0.1406931728,
0.096130535,
-0.1944377422,
0.0117483884,
-0.1141680628,
-0.2063038349,
0.2016548812,
0.8246311545,
-0.115884766,
0.1593087316,
-0.3845017254,
0.2631754577,
-0.0273771733,
0.0666643605,
0.1726113856,
0.1781700552,
-0.3565508723,
0.2146836221,
-0.0305370018,
0.2248925716,
0.3928495347,
-0.7406406403,
-0.0574415624,
0.2093596458,
0.1787932217,
0.1652438641,
-0.0393436104,
-0.0803126246,
0.1039107516,
0.1280387491,
0.2370575815,
-0.2050424814,
-0.1506269574,
-0.1625537723,
0.0157616772,
0.1063738465,
-0.2557649016,
-0.0409354195,
-0.2579032779,
-0.564245224,
-0.0782642439,
0.1524726301,
-0.2003747076,
-0.2615470886,
-0.2212116569,
0.1958744824,
0.1203878373,
0.2747459412,
0.0823182464,
0.0588772483,
0.2790193558,
0.0877265781,
0.2392880172,
0.0709758624,
0.7544959188,
0.3973068595,
-0.2398385108,
-0.3075878024,
0.0601384379,
-0.8074308634,
0.3809867799,
0.0540099964,
0.2422096282,
0.0558554232,
0.2597580552,
-0.4497740269,
-0.1920724213,
0.0220502391,
0.0874500573,
0.008010909,
-0.3625233769,
-0.6086063385,
0.320620358,
0.2070430815,
-0.0592227951,
0.2183651626,
-0.1070622727,
-0.398712635,
-0.1290477812,
0.2311452478,
0.9148774147,
0.0308578387,
-0.1712233871,
-0.3451570868,
-0.4033822417,
0.1548527479,
-0.3034477234,
-0.0884219781,
-0.2218053043,
0.1109474003,
-0.098917529,
-0.0335406102,
0.4710517526,
0.2911981046,
-0.2942735851,
0.0700264424,
0.2238088548,
0.2063958645,
-0.0518057123,
0.701132834,
-0.3197643757,
-0.3344281912,
0.3089050651,
0.1733637005,
-0.0158114582,
0.0151836984,
-0.0882290155,
-0.4142893851,
-0.1256170571,
-0.0210397243,
-0.433616221,
-0.29973948,
-0.0721501261,
-0.2690708637,
-0.2709861994,
-0.0649750084,
0.4915101528,
0.2541731298,
0.5265600085,
0.1324870586,
-0.432653904,
0.0483921058,
0.033251211,
-0.2202476561,
-0.1651028395,
-0.1230400354,
0.4145586789,
-0.1207267493,
-0.2863666415,
0.0005601961,
-0.0733188689,
-0.028563343,
-0.2847560048,
-0.0850121528,
0.2072332948,
-0.2811368704,
0.1283921152,
-0.1535326093,
-0.0904168114,
-0.2006105483,
0.1820025742,
0.2120551765,
-0.0714703947,
0.0506919026,
0.0995882079,
-0.0841390938,
-0.1222511455,
0.2139967531,
-0.2150965333,
-0.005841136,
0.0704578012,
0.1020490229,
-0.2353193462,
-0.3233818412,
0.070252791,
0.0886456966,
-0.2820444405,
-0.3095584214,
0.0614128076,
-0.0352443308,
0.0950569883,
0.1328793019,
0.2042715549,
-0.018508777,
0.0005060136,
-0.3790469468,
-0.3702395558,
0.0342239179,
-0.2673852146,
0.1535261273,
-0.289829284,
-0.2604180574,
0.2245227247,
0.1190142184,
-0.359090209,
-0.0504848175,
-0.01105313,
0.1322032064,
0.0799834654,
0.1367356926,
-0.2101825029,
-0.3123737574,
0.0132990628,
0.058087837,
-0.2618298531,
-0.1395927966,
-0.1592971236,
0.1427099258,
0.0574813075,
0.0153549835,
-0.1745450199,
-0.2434616387,
-0.272467494,
-0.0781405121,
0.0927744731,
-0.0785058513,
-0.0112110041,
0.2574885786,
0.1386406422,
0.2418691814,
0.1323314607,
0.0255111568,
-0.0375772119,
0.1836923361,
0.0215502679,
-0.1092890203,
-0.128772676,
0.098793596,
0.2268550843,
0.205051437,
0.0678644106,
-0.0804054439,
0.3333833814,
-0.1049414575,
0.3814504743,
0.5024672151,
-0.0427526273,
0.1786161661,
-0.2168624848,
0.0869575366,
0.3599407971,
0.2423610985,
-0.175774321,
-0.1600544602,
0.4079790115,
-0.1084472165,
0.0340232328,
0.2446228713,
0.676751554,
0.095791474,
-0.2147061378,
0.1233727187,
0.3482163846,
-0.106570527,
0.1027778015,
0.3946235776,
-0.310171783,
0.0968425795,
0.3800019324,
0.3323702514,
-0.0092320256,
0.2448047549,
0.0727628618,
0.2660260201,
0.3410687745,
0.2237114906,
0.3017823398,
-0.3540910482,
0.3159094453,
0.2309851646,
0.2680963576,
0.173262924,
0.1194526181,
0.0512717813,
0.2235278189,
-0.203075707,
-0.0023634583,
0.0438611992,
-0.17174761,
0.2513711452,
-0.1015842557,
-0.180225879,
-0.0769730061,
-0.129568994,
0.047090847,
-0.2133478671,
-0.0673355162,
-0.1005151123,
-0.1876313984,
-0.0508360863,
0.1021480411,
-0.0571986213,
-0.0003617629,
-0.2093274593,
0.060658291,
-0.0896800905,
-0.2043675184,
0.2844091952,
0.1165170968,
0.3416535556,
0.07791695,
0.0125772767,
0.117087543,
-0.0561451167,
-0.2006210089,
0.1499143839,
0.5387468338,
0.0797770396,
0.166975975,
0.1917854846,
0.1372160017,
-0.0568485186,
-0.0080059236,
-0.0328725837,
-0.1629108787,
0.1068566069,
-0.1778680831,
0.1730200648,
-0.1983294189,
-0.1582743376,
0.0420844108,
-0.2208037525,
-0.3285650313,
0.7464050055,
0.0114621185,
0.0166648813,
-0.2216931134,
0.0808436722,
0.2176810801,
0.2572940588,
0.2359851897,
0.0511279702,
-0.0788505226,
0.044209078,
-0.7780937552,
-0.0200136751,
-0.2156760544,
-0.0004588366,
0.1460185051,
-0.2096675634,
0.3006261289,
0.2180904746,
0.21184735,
0.0158511475,
0.1395220906,
0.1853701621,
-0.0782910585,
-0.273522377,
0.0768788755,
0.1883659065,
-0.0298586078,
0.0039621145,
0.2491552532,
0.1665067971,
0.0615226105,
-0.3908043504,
0.2039909363,
0.0418256223,
0.1013742313,
0.5442777872,
-0.091079466,
0.5890607834,
-0.2108474076,
0.0496779233,
-0.0082777496,
0.3336321712,
-0.0740554556,
0.4311028421,
0.0965913534,
0.1571972519,
-0.1267199814,
-0.0782224163,
-0.27702564,
0.1978082508,
-0.0521991774,
0.0593082346,
-0.532907486,
0.0613828674,
0.0637993366,
-0.0955715701,
0.1046890169,
-0.1525370777,
0.0139466291,
-0.0539958477,
-0.1509706378,
-0.254134357,
0.4322203994,
-0.0579260997,
-0.0995430276,
0.022174798,
0.0201634318,
0.4060527384,
0.200469166,
-0.8780807853,
0.0528767705,
0.4730553031,
-0.0019284096,
-0.1871088743,
0.0964557081,
-0.0150667932,
0.0571797937,
-0.1643060446,
0.1252113432,
0.0883668885,
-0.145026952,
-0.1271703839,
-0.155446142
] |
https://github.com/huggingface/datasets/issues/2089 | Add documentaton for dataset README.md files | @lhoestq hmm - ok thanks for the answer.
To be honest I am not sure if this issue can be closed now.
I just wanted to point out that this should either be documented or linked in the documentation.
If you feel like it is (will be) please just close this. | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip | 51 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip
@lhoestq hmm - ok thanks for the answer.
To be honest I am not sure if this issue can be closed now.
I just wanted to point out that this should either be documented or linked in the documentation.
If you feel like it is (will be) please just close this. | [
-0.1834503114,
0.2513650358,
-0.108965151,
0.1974363923,
0.1107168496,
0.3312234879,
0.3745902777,
0.1719958633,
0.0320851803,
0.0473189056,
0.0283438191,
0.2382666022,
-0.0631278008,
0.0927074105,
0.0448258184,
0.032552436,
0.0677397698,
-0.0201821961,
0.228210479,
-0.2717785537,
-0.1881774664,
-0.012063357,
-0.1926744282,
-0.2600643337,
-0.2601343393,
-0.1061911508,
-0.1686317325,
0.1679514349,
-0.4175155163,
-0.5190830231,
0.0170216262,
0.2592077553,
0.1794570982,
0.0692572296,
-0.000108684,
-0.237783432,
0.2274881601,
-0.2222406268,
0.0124142654,
-0.0039694309,
-0.256370455,
-0.3920831382,
-0.2011695355,
-0.1843142956,
0.081364274,
-0.1434148103,
-0.1106915101,
-0.2170637399,
0.1881170571,
0.5700102448,
0.2062798589,
-0.25079,
0.3001173735,
-0.2143566161,
0.4646461308,
0.2964090109,
-0.1445169151,
0.3467392623,
0.5063989758,
0.1164292172,
0.0515993051,
0.1678490341,
-0.1461409777,
0.1065743119,
0.3118911982,
-0.133237198,
0.4417340159,
-0.509904027,
0.2496393919,
0.3756162822,
1.1862672567,
-0.1897368431,
-0.1440567672,
-0.3056923449,
0.0748558268,
-0.0499145091,
0.161772728,
0.3897082508,
0.0141747855,
0.1441622227,
0.1383725256,
-0.3804756403,
-0.3181428313,
0.0608468726,
0.1116279289,
0.4195418954,
-0.0779643804,
-0.0754211992,
0.1478107274,
-0.0849927515,
0.2784857452,
0.0570361577,
-0.2141939849,
0.2259549648,
0.1892554015,
-0.1122399718,
-0.3635399938,
-0.1978413165,
0.2118556947,
-0.1735544205,
-0.0536953099,
0.030630637,
-0.0166817568,
0.2824444175,
0.1840378046,
-0.0989539102,
0.1554630101,
0.2676414251,
0.1074187309,
-0.2280970514,
0.27068609,
-0.0682266504,
-0.2281814814,
-0.1300101876,
-0.025022082,
0.0413495153,
-0.0668684542,
-0.3455771208,
0.0765683278,
-0.0438404419,
0.0707652941,
-0.148353368,
0.0131454505,
0.236535728,
0.0193655565,
-0.1580260992,
-0.2276225388,
0.1091496274,
0.013161242,
-0.1187190413,
0.019070603,
0.2393929064,
-0.1226382181,
0.1904981434,
0.2675634623,
0.0570891798,
0.2064427882,
0.2571185827,
-0.0690379664,
-0.2132616341,
0.220786497,
-0.035058111,
0.3134303093,
0.3436418772,
-0.0439310521,
0.086911507,
-0.0894107223,
-0.3784480095,
-0.1885695159,
0.1912273467,
-0.5235504508,
-0.282463789,
-0.3953045309,
0.2059357166,
-0.0752785206,
0.040586628,
-0.1238839626,
0.2208994478,
0.1222833395,
-0.1311614513,
0.1706706583,
0.1315921396,
-0.3794522285,
-0.2931363583,
-0.0147849582,
0.4112756252,
-0.3530890346,
0.0920701623,
-0.146233052,
0.0608901791,
-0.0973647535,
0.0338930748,
-0.3202526271,
0.3123340309,
-0.3375393748,
0.1994763613,
0.48653844,
-0.6443995237,
-0.2490532547,
0.1680990756,
0.0996950194,
-0.3379282951,
0.1998400986,
-0.0761594921,
0.5245921612,
-0.2472619712,
-0.1961391866,
-0.1009450108,
-0.1206156239,
-0.0449886434,
-0.2056625485,
0.0024415329,
-0.0279931538,
0.1433912665,
0.0930474848,
-0.0085910074,
0.514107585,
0.1115485281,
0.1113001406,
-0.1130465269,
0.2350055575,
0.5121800303,
0.2780080736,
0.0733767897,
-0.0036750101,
0.0601935089,
-0.3458785713,
0.1016538441,
0.0381814241,
0.2979977727,
0.0225258619,
-0.2697306275,
-0.3078661263,
-0.2098495811,
-0.3070384562,
-0.3466335833,
0.1509177089,
0.0721354485,
-0.2899813056,
0.1742569059,
-0.0583884791,
0.2585528195,
-0.0225537159,
-0.0229610801,
-0.1868532002,
0.0147312805,
-0.1795285195,
0.0714111775,
0.3635665774,
0.1179979444,
0.2934600413,
0.0673184171,
-0.0512961932,
0.1727044135,
0.1681959629,
0.1867887527,
0.1970175654,
0.508914113,
0.348587513,
-0.318359673,
0.32162413,
-0.3319416344,
0.1059601754,
-0.2947619855,
-0.3823409081,
0.0937600955,
-0.0875146911,
-0.1562455148,
-0.0966533273,
-0.0550424121,
0.1559997201,
-0.0430996865,
-0.1213435233,
-0.4186570644,
-0.2139496654,
0.1382647455,
0.0492485613,
0.0433534905,
0.1525075734,
0.2591989934,
0.6951575279,
-0.0893651247,
0.1233367249,
0.047764685,
-0.0444058478,
-0.0458781831,
0.2343298495,
0.1793369651,
0.2504529953,
0.1950841546,
0.2688601911,
0.1685174704,
-0.0256384294,
-0.2154764384,
0.1143743023,
-0.1564907581,
0.05483374,
0.1859875619,
-0.2092633843,
-0.0657519847,
-0.2408759594,
0.0019680336,
0.1768085659,
0.3061313331,
-0.275285095,
-0.3088806272,
-0.2675402462,
-0.0104101598,
-0.2429440916,
-0.1492002755,
-0.516726613,
-0.1743379235,
0.0638106763,
0.1178994775,
0.0370091572,
-0.042978283,
-0.1899586618,
0.1676544398,
-0.2003882229,
0.2505877018,
-0.1858590543,
-0.2149971426,
-0.2299166918,
0.0794585571,
0.4636724591,
0.5456958413,
0.5315336585,
-0.2386775613,
0.2786900997,
-0.3564067781,
-0.4406818748,
0.0858711079,
-0.0464327633,
0.3145121634,
-0.0619887263,
0.1028822511,
-0.0427768491,
0.0008731708,
-0.0199088957,
0.1111816838,
-0.11034365,
-0.2667789459,
0.002824109,
-0.3291386664,
-0.039019309,
-0.5944355726,
-0.1559266299,
-0.3857374787,
0.0730230138,
-0.1942431927,
0.2018292695,
0.0708697885,
-0.011716146,
0.1006475464,
-0.14493756,
0.1740792394,
-0.309845686,
-0.1001521125,
0.4769841731,
-0.4734630585,
-0.4342747629,
0.5254817605,
0.0934795216,
0.3927612007,
-0.1414427459,
-0.3136379123,
0.2251270413,
0.1927728355,
-0.2009269893,
-0.1818774343,
-0.0200746022,
0.326747179,
0.2113697976,
0.066321522,
-0.2078842223,
-0.246121645,
-0.0968590528,
-0.0086201951,
0.0727900714,
-0.0197773576,
0.0684674308,
-0.0048044771,
0.332069695,
-0.0051233917,
0.2867017686,
0.3341190517,
-0.0068124281,
0.3818558455,
0.1176935285,
-0.3456972241,
0.2654699683,
0.0527137481,
0.1426990181,
0.3200283945,
0.1204759628,
-0.0220796056,
-0.1031063423,
-0.2067569941,
-0.4100353122,
-0.2712359428,
0.1620363295,
-0.1131094694,
0.1874022037,
-0.1371462643,
0.009537898,
-0.1100550443,
-0.1893763542,
0.1881655455,
0.8119859099,
-0.1975712776,
0.1577806473,
-0.4499598742,
0.2427945286,
-0.024780836,
0.046270512,
0.20617567,
0.2806915641,
-0.4020813107,
0.239663735,
0.014630992,
0.2007171661,
0.3344194889,
-0.6941188574,
-0.0313102975,
0.2469899356,
0.2598071396,
0.1858717203,
-0.0627185404,
-0.0573007092,
0.1486288309,
0.0910742953,
0.2207510173,
-0.1442536116,
-0.2056883872,
-0.1584258676,
-0.0439014509,
0.0089815855,
-0.3161907196,
-0.0455073975,
-0.2997610271,
-0.4207754135,
-0.1131020933,
0.2319419533,
-0.2269572616,
-0.3190457821,
-0.3087128401,
0.2110049129,
0.0780144483,
0.2206954956,
0.0608881041,
0.0806515068,
0.251809448,
0.0275456756,
0.2140596509,
0.0965089351,
0.7797985077,
0.3743673563,
-0.2350528538,
-0.2111731768,
0.0804944336,
-0.8616186976,
0.3713949323,
0.2012151182,
0.1970299929,
-0.0521993302,
0.170929864,
-0.4224601984,
-0.0202348679,
0.0221513882,
0.139608711,
-0.0443697758,
-0.5320265293,
-0.6122275591,
0.2845600545,
0.089526698,
-0.0566587597,
0.2384884655,
-0.0280619375,
-0.3622266948,
-0.1342232525,
0.301808238,
1.0777900219,
0.0165213402,
-0.1200805381,
-0.3285026848,
-0.3679198623,
0.14223589,
-0.2336849123,
-0.1009964794,
-0.3288809061,
0.1367960721,
-0.09014754,
-0.0349895805,
0.4635132849,
0.3538167179,
-0.3111799657,
0.0179574452,
0.3268072605,
0.0849093497,
-0.0209023226,
0.6265953779,
-0.2827163339,
-0.2374102175,
0.2187499404,
0.1473237723,
0.0629223734,
-0.0408315435,
-0.1525387466,
-0.4462299943,
-0.2223456353,
-0.0729610324,
-0.3919941783,
-0.2424042672,
-0.1159102619,
-0.2178747952,
-0.2231840044,
-0.0555171669,
0.581628561,
0.2121002525,
0.4717832804,
0.223410815,
-0.4294224679,
0.1494552046,
0.1007506773,
-0.2574829161,
-0.0995204374,
-0.0714192539,
0.3697448075,
-0.2065972686,
-0.2942835093,
-0.0452795066,
-0.2211467475,
-0.0304516181,
-0.3569753766,
0.0559323877,
0.2022377849,
-0.2618913949,
0.0648245811,
-0.1766849458,
-0.135613367,
-0.0611032024,
0.1754430532,
0.1777977645,
0.0257321522,
0.1413973719,
0.143634975,
-0.1016758829,
-0.0200807154,
0.2583358884,
-0.0717073381,
-0.1364505142,
0.1451639831,
0.055395484,
-0.1846815646,
-0.3555242121,
0.0928392336,
0.035954345,
-0.164441064,
-0.3201912344,
0.0094086304,
-0.0408769995,
0.1302223057,
0.1905409247,
0.1497415304,
-0.0666363984,
-0.0087633654,
-0.3896551132,
-0.3948331773,
0.0196487661,
-0.3371902704,
0.1265926659,
-0.3014390469,
-0.2930764556,
0.2062000632,
0.0458548069,
-0.3518180847,
0.0463755727,
-0.0195589401,
0.1141611934,
0.1615620852,
0.1669153571,
-0.2081949115,
-0.2656027377,
-0.0043309256,
0.0928425193,
-0.2421132922,
-0.149366647,
-0.1026927829,
0.1623728275,
0.0701808631,
0.0178048573,
-0.1415640116,
-0.3763385117,
-0.2985940576,
0.0253550746,
0.0363174826,
-0.0169920102,
-0.0258337185,
0.2100508809,
0.1485457122,
0.2503187656,
0.0477386862,
0.1812375337,
-0.0379153341,
0.1779123843,
-0.0292302128,
-0.0222497731,
-0.1017934009,
0.0560356528,
0.3677477241,
0.1331213266,
-0.0008754656,
-0.0102631291,
0.3827041984,
-0.0980422646,
0.3971011639,
0.3668283522,
-0.1173235252,
0.2400014549,
-0.2710822225,
0.1094226316,
0.3641290963,
0.2230259776,
-0.128395617,
-0.1766907722,
0.2905829847,
-0.1728891283,
-0.0529513694,
0.2369324565,
0.685856998,
0.0375599861,
-0.1410784125,
0.1213959381,
0.3364258707,
-0.0668799877,
-0.0066335276,
0.3637583256,
-0.3210893869,
0.0258630961,
0.3457221389,
0.2561426461,
0.0270666331,
0.2112295032,
0.2078399211,
0.1571726948,
0.4067307711,
0.2854527235,
0.213969335,
-0.3492395282,
0.3475609124,
0.2237095833,
0.2600419819,
0.2057799846,
0.123928532,
0.0404882915,
0.3550104499,
-0.2074646205,
-0.0038651749,
0.0089760553,
-0.1628412455,
0.2597958744,
0.017035529,
-0.1725345254,
-0.1071032211,
-0.1465839148,
-0.0477201194,
-0.1930261999,
-0.1966563612,
-0.0388094708,
-0.1325838566,
0.0795842037,
0.1474019438,
0.0681678206,
-0.0064933859,
-0.1807651222,
0.0624095574,
-0.119053863,
-0.1388161182,
0.3226596117,
0.0985400453,
0.3425761461,
0.1869330406,
0.0227838866,
0.0996564478,
0.0919606239,
-0.1991126537,
0.154068619,
0.4935738742,
0.1587817967,
0.2255328894,
0.158942312,
0.1160511076,
-0.0620893426,
-0.0103720501,
-0.1367605627,
-0.2212293893,
0.1200185716,
-0.1878757179,
0.1110759974,
-0.2756794691,
-0.183345288,
-0.1039048433,
-0.2305719405,
-0.3599984348,
0.7408989668,
-0.0314784497,
0.0653126687,
-0.2456745654,
0.0934501141,
0.1306946874,
0.3288660347,
0.272909075,
0.0109782172,
-0.0049301423,
-0.1226837635,
-0.8196238279,
0.0528871901,
-0.1650007665,
0.0105892867,
0.1823823601,
-0.1700475663,
0.2991138995,
0.1511565149,
0.201765269,
-0.0778426155,
0.1487457901,
0.2435835302,
-0.1664607227,
-0.2381109744,
0.1285691708,
0.165501073,
-0.056677267,
-0.0922165737,
0.2949963212,
0.2356588989,
0.0685036853,
-0.3996611238,
0.263697803,
0.0268789306,
0.1268490404,
0.4562402368,
-0.0580275655,
0.5467053056,
-0.2063586414,
0.0199129954,
-0.0018066037,
0.3925992846,
0.0396029763,
0.4238407612,
0.1667919755,
0.1110911295,
-0.1063590646,
-0.0735866725,
-0.2389906347,
0.2278804481,
-0.0945504457,
0.1150518209,
-0.5860777497,
0.0501817763,
0.082464844,
-0.0306461174,
0.0794334412,
-0.1160820425,
-0.0748556256,
-0.0965918452,
-0.2133960426,
-0.1823929846,
0.4661230743,
-0.1344538033,
-0.1463747621,
0.1090361401,
0.1153691709,
0.2609989345,
0.1699074656,
-0.8375416994,
0.0024473071,
0.4686849415,
-0.0455617309,
-0.1749614477,
0.0643826723,
-0.0900104791,
0.0679633245,
-0.1342228949,
0.1363298744,
0.0832288116,
-0.1187567413,
-0.1518056393,
-0.1722617447
] |
https://github.com/huggingface/datasets/issues/2089 | Add documentaton for dataset README.md files | We're still working on the validation+documentation in this.
Feel free to keep this issue open till we've added them | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip | 19 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip
We're still working on the validation+documentation in this.
Feel free to keep this issue open till we've added them | [
-0.2152335942,
0.2649825215,
-0.125854373,
0.1683344394,
0.1531973183,
0.2933408916,
0.2924143672,
0.1951221377,
0.0319658294,
0.0209626742,
0.0500938669,
0.2049100101,
-0.0792762488,
0.1006228849,
-0.0031886026,
0.0226521324,
0.0487909019,
-0.0505710728,
0.2097898126,
-0.2532512844,
-0.1110623032,
-0.0721068606,
-0.1680808216,
-0.2169416249,
-0.2796171904,
-0.1498722434,
-0.1210675687,
0.1117400527,
-0.555106461,
-0.5625540018,
-0.0569592081,
0.3236433566,
0.2056471705,
0.0757121071,
-0.0001088561,
-0.2372321784,
0.3131056428,
-0.1969532967,
0.0418355837,
-0.0134434402,
-0.3186573386,
-0.3487757742,
-0.1418904811,
-0.1790466607,
0.0734006763,
-0.166899547,
-0.0970637128,
-0.1242039949,
0.2178788185,
0.6139638424,
0.1920520961,
-0.1768242717,
0.3337363303,
-0.1620911062,
0.3486059308,
0.2870314717,
-0.1387578845,
0.3151703477,
0.438958019,
0.1328052878,
-0.0011086203,
0.1729690731,
-0.0888030306,
0.0742475465,
0.3544276357,
-0.1740668565,
0.4313996434,
-0.5642966032,
0.1373413652,
0.4447303116,
1.1757175922,
-0.2466043085,
-0.1476298422,
-0.282968998,
0.0595342144,
0.01189363,
0.2021715641,
0.3936532736,
0.020163577,
0.1482877731,
0.0523764156,
-0.2962439954,
-0.3464111686,
0.0273291357,
0.1638354808,
0.4449430704,
-0.0405867659,
-0.1621434838,
0.2406287193,
-0.0741211772,
0.2830767632,
-0.0057194773,
-0.2207942158,
0.2731740773,
0.1728254557,
-0.1457783878,
-0.344843626,
-0.1132446527,
0.241293937,
-0.1358951479,
-0.0598473474,
0.0647012517,
-0.0455050729,
0.3457221091,
0.1996953487,
-0.0847962275,
0.1849910468,
0.2489359975,
0.1139555946,
-0.1927759647,
0.2991899848,
-0.0795424134,
-0.1490658522,
-0.1413851976,
0.0583409518,
0.1044745743,
-0.123285532,
-0.3599949777,
0.0938888937,
0.0048556291,
0.1318532676,
-0.2013224363,
0.0663119704,
0.1965319365,
0.0225521959,
-0.1681502312,
-0.3468318284,
0.0708111003,
0.0511128455,
-0.1352702975,
0.024648685,
0.2435911447,
-0.1412161291,
0.1586890966,
0.2875901461,
-0.0040692911,
0.2766806483,
0.1819747835,
-0.0620024204,
-0.2075312734,
0.229863584,
-0.0740519762,
0.3065570295,
0.3483856618,
-0.0645219386,
-0.070431225,
-0.1015461236,
-0.334226191,
-0.2269041836,
0.1176791787,
-0.3748675883,
-0.329901576,
-0.3605082631,
0.2099007964,
-0.0848124474,
0.0780490637,
-0.0824623704,
0.2596979141,
0.1449095011,
-0.0913849548,
0.1895810962,
0.1342039704,
-0.244078666,
-0.2446254194,
-0.0487651676,
0.3932788074,
-0.3049048781,
0.130774647,
-0.1182970703,
-0.0363225751,
-0.1880006492,
0.0069952626,
-0.3300700784,
0.360371083,
-0.2602697015,
0.2314061075,
0.5233440399,
-0.6178888083,
-0.1908919811,
0.2019529045,
0.118891336,
-0.3653544486,
0.1996654272,
-0.1225308999,
0.5625221133,
-0.3021685779,
-0.2760792971,
-0.083717972,
-0.2096387297,
-0.0862347633,
-0.2159946561,
0.0658368841,
0.0004534433,
0.0925544351,
0.0871252939,
-0.1019033343,
0.4954626858,
0.1496517807,
0.081018202,
-0.1325365156,
0.1871231645,
0.4300883114,
0.3101038635,
0.0051649995,
-0.0187909286,
0.029772453,
-0.3159402311,
0.0068746284,
0.0792016909,
0.3121464849,
0.0602488816,
-0.2735971212,
-0.3091375232,
-0.2166576684,
-0.3294510245,
-0.3489197791,
0.1617867649,
-0.012899518,
-0.1812312007,
0.1981270313,
-0.1465343088,
0.2803252041,
-0.0659627169,
0.0461556874,
-0.1705375463,
-0.0243126191,
-0.2345084697,
0.0765741095,
0.2834572196,
0.1128884703,
0.2357713282,
0.0597468279,
-0.0370494463,
0.2769041061,
0.2859246433,
0.1337733418,
0.1228960454,
0.5454465151,
0.4069086909,
-0.3052136898,
0.3498123288,
-0.3611952662,
0.0050806105,
-0.2370347679,
-0.3916620612,
0.0973383933,
-0.2199729383,
-0.137693733,
-0.0911868513,
-0.0909056291,
0.1451148391,
-0.0685639828,
-0.2191042006,
-0.4312101901,
-0.2434505969,
0.0687404796,
0.012326628,
0.065102689,
0.0938146934,
0.1581426114,
0.6090506911,
-0.1135689467,
0.1335074455,
0.0739223212,
0.0357705057,
-0.106580615,
0.2230450511,
0.20267874,
0.1815527081,
0.1377199739,
0.2089840323,
0.1837087125,
-0.1069416329,
-0.2314974666,
0.1740406156,
-0.1743572652,
0.0433531664,
0.1960575581,
-0.3303846121,
-0.0107408836,
-0.2964423895,
-0.0297243036,
0.1803779751,
0.3155514896,
-0.2707269192,
-0.2726540864,
-0.2162566781,
-0.0204585195,
-0.1964750439,
-0.1118418798,
-0.4751442075,
-0.213522613,
0.1043401062,
0.1421671808,
0.0377764329,
-0.022237543,
-0.2111313939,
0.0961311981,
-0.1743659675,
0.2197696716,
-0.2013040781,
-0.2292471379,
-0.1875760853,
0.0985027701,
0.4579510093,
0.5772250295,
0.4862649143,
-0.2476475537,
0.2650544047,
-0.2878773808,
-0.5216216445,
0.0734956861,
-0.0353744514,
0.2994562984,
-0.0513310507,
0.0952730179,
-0.0173349306,
0.0269207396,
-0.0814484805,
0.099843733,
-0.1886218786,
-0.2019714713,
-0.0158068221,
-0.3107982874,
-0.0289343297,
-0.5464145541,
-0.1762471348,
-0.3826168776,
0.0350001901,
-0.2176810801,
0.1791504025,
0.069459863,
0.0290388428,
0.0899636298,
-0.2129891366,
0.2034206092,
-0.2511435449,
-0.0605331697,
0.4775666296,
-0.4183159173,
-0.4114864469,
0.4373292923,
0.0720372126,
0.3632576466,
-0.173796311,
-0.2805134356,
0.1150465459,
0.1619205326,
-0.124461785,
-0.0841157287,
-0.0052797785,
0.3449583948,
0.2725785375,
0.0719378889,
-0.1632325351,
-0.2096580863,
-0.14514862,
0.0296204612,
0.1314594746,
-0.024418069,
0.0678774863,
0.0100659281,
0.3052532673,
0.054094024,
0.1991352886,
0.3418987095,
0.061314851,
0.4321850836,
0.1601075381,
-0.3594634235,
0.3082562685,
0.0489327423,
0.129725486,
0.1927376986,
0.0335305631,
0.0281042252,
-0.0965797305,
-0.2087704539,
-0.4129318595,
-0.2539670169,
0.1316397935,
-0.1952830851,
0.2315448076,
-0.1327525675,
0.0222196802,
0.0530534461,
-0.149229154,
0.2017637789,
0.8191648126,
-0.1292896122,
0.1271845698,
-0.4532558918,
0.228445977,
-0.0516446717,
-0.0158982277,
0.1734141111,
0.2282455117,
-0.3218299747,
0.2446123362,
-0.0393140875,
0.1863498688,
0.2971588373,
-0.7153292894,
-0.0542860813,
0.1525996327,
0.2156133354,
0.2075250447,
-0.0387249365,
-0.0837580264,
0.0629183203,
0.1047916412,
0.2673688829,
-0.216602385,
-0.2455441058,
-0.1294275075,
-0.0640394837,
0.0481538028,
-0.3154782951,
-0.0323937684,
-0.3209100962,
-0.4009482265,
-0.0511267893,
0.1986694485,
-0.2276547253,
-0.3399575055,
-0.183265537,
0.1877872497,
0.1165816784,
0.2261719555,
0.1751227677,
0.1291007102,
0.1373225152,
0.0111460686,
0.2052290142,
0.050525099,
0.744935751,
0.297652483,
-0.2528682649,
-0.2054595649,
-0.0036788005,
-0.8008691072,
0.3690817058,
0.0956028476,
0.2241001576,
-0.1240487248,
0.1854742616,
-0.3875859976,
-0.0491372757,
0.1045401916,
0.0718087405,
-0.0467888787,
-0.5273841619,
-0.6166067123,
0.2538613379,
0.1003488153,
-0.0705331415,
0.1761016697,
-0.039500095,
-0.3721259534,
-0.1266319603,
0.4468614459,
0.9914249778,
0.1262830347,
-0.2045712769,
-0.3064751327,
-0.3717342615,
0.0521417223,
-0.3224629462,
-0.148730576,
-0.3163975775,
0.1355247647,
-0.106919691,
-0.0483628325,
0.4740166068,
0.339556396,
-0.3923214078,
0.0449131876,
0.3716092706,
0.0468900092,
-0.045536764,
0.7784318924,
-0.3186796606,
-0.2367448211,
0.2047436833,
0.1485618055,
0.0571699329,
-0.0882894099,
-0.1142436042,
-0.4399167299,
-0.0712070987,
-0.1273901314,
-0.4061338007,
-0.292045176,
-0.1056122035,
-0.2347763479,
-0.2092840225,
-0.035360381,
0.5741901994,
0.2189936191,
0.5228849649,
0.2558459938,
-0.4140740633,
0.1219180375,
0.1434281021,
-0.2566818893,
-0.1321093589,
-0.100036025,
0.4088861346,
-0.1934929192,
-0.2750221491,
-0.1079204977,
-0.2019631565,
0.049135156,
-0.2805179358,
0.0071551204,
0.1233350784,
-0.2930014431,
0.1004423052,
-0.2139697224,
-0.197807312,
-0.0495635904,
0.1837705672,
0.1370209306,
-0.0501515754,
0.2450448424,
0.1658848077,
-0.0298104286,
-0.0288014635,
0.1847514063,
-0.1599301547,
-0.1423682123,
0.0201718714,
0.0121790618,
-0.1760816872,
-0.3845850825,
0.1371565759,
0.0841646641,
-0.1237304583,
-0.3440845311,
-0.0246252734,
-0.132861793,
0.1308335215,
0.1908020079,
0.2627683878,
-0.022269085,
0.0386839807,
-0.3699913025,
-0.3957143724,
0.052862078,
-0.2782196403,
0.1491159797,
-0.3459347785,
-0.3236503005,
0.1690555215,
0.1183302626,
-0.3498454094,
-0.0151388831,
0.0446687713,
0.1642177999,
0.1244405806,
0.1052188799,
-0.2040433437,
-0.2846585214,
-0.0039753318,
0.1282725632,
-0.2372687608,
-0.1594516933,
-0.0915247798,
0.1603149474,
0.1045828015,
0.0281224474,
-0.2157405913,
-0.2551917136,
-0.3554727733,
0.0011786185,
0.0073995739,
-0.096079953,
-0.006895598,
0.3142220378,
0.1840314716,
0.1750304848,
0.0671585649,
0.0826025456,
-0.0483655743,
0.1907181442,
0.0435030945,
-0.0402091332,
-0.0470532663,
0.0312539265,
0.3196411729,
0.2204012275,
0.064954266,
-0.0196177699,
0.3327842355,
-0.0325325541,
0.3535743952,
0.2818247974,
-0.0220318846,
0.3322061002,
-0.1898074448,
0.0579260737,
0.3802908957,
0.2299614549,
-0.1175770313,
-0.170921132,
0.2942970693,
-0.1555038691,
-0.0043477416,
0.2126315087,
0.6201543808,
0.1270667613,
-0.1094939709,
0.1265181005,
0.3498149216,
-0.0843791217,
0.0455260575,
0.372107625,
-0.3127886355,
0.0199331231,
0.3568803668,
0.2236068696,
-0.0063331872,
0.1896831989,
0.2401069552,
0.188901484,
0.3412063718,
0.2725247443,
0.2309567332,
-0.2262353152,
0.3366860449,
0.2455377579,
0.2224624306,
0.1677640826,
0.138146162,
-0.0108234398,
0.3621065021,
-0.2713713348,
-0.0867330506,
0.0033020359,
-0.1210902184,
0.2783879042,
-0.0242257677,
-0.2079210281,
-0.0468391627,
-0.1330202967,
0.042212218,
-0.1667908132,
-0.1251577139,
-0.0157965384,
-0.11011976,
0.0106611159,
0.2138076425,
0.1266691685,
0.0282289963,
-0.1807093322,
0.1252240539,
-0.0621808358,
-0.1493132561,
0.2648479342,
0.1393440813,
0.3062217236,
0.1757596433,
-0.033494059,
0.1038619578,
0.0300804861,
-0.235314846,
0.2081425488,
0.5127871633,
0.2062883973,
0.2292843014,
0.1889365911,
0.1285617054,
-0.023843959,
0.0586728081,
-0.1586120427,
-0.2941416502,
0.1155859903,
-0.1173783392,
0.2776810527,
-0.2918070555,
-0.1561426073,
-0.0569999628,
-0.2494591326,
-0.3193224072,
0.7226656675,
-0.0276611634,
0.0874957442,
-0.305385083,
0.0853746682,
0.2062304765,
0.3919094801,
0.2959232926,
0.0102292057,
-0.0385655947,
-0.113614358,
-0.8005524278,
0.015501149,
-0.1430628598,
0.0058486462,
0.207390219,
-0.2092228234,
0.2151769698,
0.2566600144,
0.1757084727,
-0.0690441132,
0.0997629166,
0.2592835426,
-0.1479420662,
-0.1535756439,
0.1440176964,
0.2405225933,
-0.0750676617,
-0.035172224,
0.2898609638,
0.1919382513,
0.0664851591,
-0.3775224388,
0.274705112,
0.0822804719,
0.1815148145,
0.4061072469,
0.0140217487,
0.5782948136,
-0.1807848513,
0.0282421187,
0.0103861969,
0.4699587524,
-0.0213538259,
0.39752841,
0.1731479615,
0.1162144393,
-0.0753774345,
-0.0973032117,
-0.2672233582,
0.2640323341,
-0.0881975964,
0.0404769182,
-0.5378920436,
-0.054422494,
0.163934052,
-0.1024204195,
0.0689287037,
-0.1300308406,
-0.0429740883,
-0.0417476371,
-0.1964354217,
-0.2542350888,
0.4476866126,
-0.084164694,
-0.1262214631,
0.0838517547,
0.027125407,
0.2643659711,
0.1328541934,
-0.902405858,
0.0439194441,
0.4450136423,
-0.0812544748,
-0.1915595829,
0.0787959173,
0.0548195802,
0.0558446348,
-0.1466096938,
0.1313599646,
0.06189413,
-0.1494854391,
-0.2070051134,
-0.1194758713
] |
https://github.com/huggingface/datasets/issues/2089 | Add documentaton for dataset README.md files | Hi ! There's the tagging app at https://huggingface.co/datasets/tagging/ that you can use.
It shows the list of all the tags you can use.
It is based on all the tag sets defined in this folder:
https://github.com/huggingface/datasets/tree/master/src/datasets/utils/resources | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip | 36 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip
Hi ! There's the tagging app at https://huggingface.co/datasets/tagging/ that you can use.
It shows the list of all the tags you can use.
It is based on all the tag sets defined in this folder:
https://github.com/huggingface/datasets/tree/master/src/datasets/utils/resources | [
-0.286616683,
0.0945325494,
-0.1588485539,
0.1930642873,
0.276850462,
0.3156135976,
0.266120553,
0.1931911111,
0.1716580987,
0.0233468153,
-0.127289772,
0.2412942648,
-0.1264386475,
0.3597062826,
0.0914908201,
0.0267626699,
0.0860836506,
-0.1028402299,
0.1592585146,
-0.1845790744,
-0.169145003,
0.0174299795,
-0.0448661894,
-0.1641506255,
-0.328638345,
-0.1695875674,
-0.1266562045,
0.0994562805,
-0.4146161377,
-0.5925245881,
-0.0502108335,
0.3110639453,
0.2041497529,
0.115807496,
-0.0001010503,
-0.2147543132,
0.2052171826,
-0.2352298945,
-0.0139360428,
-0.1126760095,
-0.1768777668,
-0.3279269934,
-0.0601526946,
-0.1067198217,
-0.0597192161,
-0.2925770581,
-0.0841802284,
-0.190450564,
0.1979567111,
0.4205387235,
0.2686114013,
-0.1103504896,
0.3406370282,
-0.22505337,
0.2706674933,
0.1677973568,
-0.1239818186,
0.437440455,
0.4900667071,
0.1472699791,
-0.0278128572,
0.2508870959,
-0.0373199396,
0.1873497069,
0.4723615646,
-0.0820318758,
0.2423785925,
-0.5768040419,
0.2497012913,
0.3870514929,
1.0391316414,
-0.2780821323,
-0.2529757321,
-0.3692147136,
0.0836825296,
-0.1449424028,
0.1967421025,
0.317257762,
0.0246469118,
0.1599290073,
-0.0215225723,
-0.3635126948,
-0.2490015626,
0.0308081023,
0.1805022061,
0.4041185081,
-0.1161134839,
-0.10122177,
0.2309460342,
-0.1453733146,
-0.0280740764,
0.1179568917,
-0.1853633523,
0.1704545021,
0.1257976294,
-0.0564187542,
-0.3248476386,
-0.0684511662,
0.2850890458,
-0.0259748735,
-0.0902741104,
0.09604083,
-0.0556010045,
0.2861752808,
0.1512067765,
-0.1017972752,
0.1857316792,
0.1761159897,
0.1215501428,
-0.1716192365,
0.2133106291,
-0.1562372744,
-0.1530071944,
-0.0906530768,
-0.0275151841,
-0.0823391825,
-0.1527569294,
-0.2826737761,
0.0200317949,
-0.1133879945,
0.0969012156,
-0.1256390214,
0.0243131965,
0.2854114771,
0.0740619153,
-0.212534517,
-0.2671315372,
0.1896765232,
-0.0061656199,
-0.1419600397,
-0.0466412455,
0.166545108,
-0.1256684065,
0.2072862089,
0.2524135411,
-0.1257536411,
0.3280343711,
0.135237366,
-0.0758280829,
-0.1853525043,
0.1354756951,
0.0137877241,
0.2163780481,
0.2859227657,
-0.0209437795,
0.0056269094,
-0.0394661017,
-0.407699883,
-0.2394081205,
-0.0369071439,
-0.4110157192,
-0.2267906219,
-0.3655214012,
0.2676394582,
-0.1243197992,
-0.0459321737,
-0.2027341723,
0.3219771683,
0.0812155977,
0.0450329185,
0.1662802696,
0.2537734509,
-0.3481630981,
-0.2576190233,
0.0302516073,
0.4434049428,
-0.2620564103,
-0.1156651601,
0.0625189394,
-0.0872348249,
-0.1335525066,
0.0185210425,
-0.2578812838,
0.2984239459,
-0.2528005838,
0.2648499012,
0.3774801493,
-0.4607775211,
-0.1682917774,
0.0759341791,
0.0210003257,
-0.3429538906,
0.1542670876,
-0.0457941554,
0.4741375148,
-0.1783985049,
-0.1736366153,
0.0215548463,
-0.1356054544,
0.0383154079,
-0.1707608104,
-0.0267440677,
0.0420837998,
0.1477923244,
0.0901243389,
-0.0927906707,
0.3923929334,
0.0840132385,
-0.0065961853,
-0.1246606857,
0.1666933596,
0.3540766835,
0.1807700694,
0.1878833622,
-0.0094581433,
-0.1003718078,
-0.4468117356,
0.1082817614,
0.0780496225,
0.2980457246,
-0.0181669071,
-0.3064986467,
-0.3663929999,
-0.2408527732,
-0.3977140784,
-0.3615729213,
0.1890878081,
0.0303557198,
-0.1249256581,
0.1889829934,
-0.1747089624,
0.2096571177,
-0.0263158828,
0.1258702129,
-0.2828808725,
-0.0541065596,
-0.1897651553,
-0.0121793188,
0.3533418179,
0.0889374465,
0.2029139698,
-0.0041824691,
-0.0547651388,
0.3221331537,
0.1733800769,
0.2728250623,
0.2341202199,
0.5424049497,
0.3943710029,
-0.3049963713,
0.2806558907,
-0.3187289834,
0.0982846022,
-0.2413080335,
-0.4253420234,
0.121797204,
-0.2108707726,
-0.0855718106,
-0.0878231078,
-0.0431886502,
0.2023257017,
0.0257897153,
-0.141556859,
-0.4092406929,
-0.1996081173,
-0.0929377228,
0.1340219378,
-0.0142625421,
0.0702902228,
0.1593575329,
0.6423450112,
-0.0103729367,
0.1053341106,
0.1113668233,
-0.116008237,
0.0188496336,
0.2301196307,
0.154111743,
0.0834340155,
0.2618065476,
0.2813135087,
0.1955119967,
0.0121781453,
-0.2820141315,
0.1582179666,
-0.0850907713,
-0.0088794939,
0.1671548188,
-0.2094477564,
-0.1137013882,
-0.298253566,
-0.0130096897,
0.1025971919,
0.2986980975,
-0.2972522378,
-0.2102068067,
-0.3044347167,
-0.1905401498,
-0.2461328357,
-0.2486098409,
-0.5396837592,
-0.2466230094,
0.083643645,
0.0687136501,
0.0183680877,
0.0576098412,
-0.1129015535,
0.0185986608,
-0.2259148955,
0.2494394183,
-0.1671549827,
-0.2185423672,
-0.1116601974,
0.1529917419,
0.5170538425,
0.4568578303,
0.6414666176,
-0.358368516,
0.2536117733,
-0.2470324188,
-0.4476351738,
0.1278035492,
-0.0985560566,
0.276016742,
0.0628417954,
0.0869509205,
-0.0324172974,
0.0335607678,
0.1297651231,
-0.026087366,
-0.1214939132,
-0.206997782,
-0.0215775613,
-0.226317361,
-0.0622159168,
-0.5958681107,
-0.2116921842,
-0.4526794255,
0.1733254194,
-0.1179508194,
0.1648699939,
0.1894067973,
-0.0055301115,
0.2414373904,
-0.2219728976,
0.2568542659,
-0.2677105963,
-0.1366791129,
0.3523484468,
-0.4366488755,
-0.3181600869,
0.5248672366,
0.2030138373,
0.4070842266,
-0.1904560626,
-0.227237165,
0.0399034321,
0.1460727751,
-0.0054593757,
0.0456525907,
0.0450856909,
0.2071581185,
0.1842416376,
0.0126627125,
-0.1487963796,
-0.1339660883,
-0.1094264686,
-0.1533000916,
-0.0452632941,
0.0002432447,
0.126011163,
-0.0166643187,
0.411906004,
0.2007804215,
0.1465077996,
0.4331975579,
-0.038698867,
0.3499616385,
0.0074203834,
-0.3237253428,
0.2413956821,
0.0319869295,
0.2089145184,
0.3521708548,
0.1811699867,
0.1111797988,
-0.140090704,
-0.1847594827,
-0.4298864603,
-0.2474624366,
0.1573479176,
-0.0736723393,
0.1495697498,
-0.2470841408,
0.0599072576,
0.0661980957,
-0.2099086642,
0.2634677589,
0.7211680412,
-0.1686714143,
0.1718898118,
-0.4008207023,
0.1314112544,
-0.0836730227,
0.1011053771,
0.165147692,
0.0881719142,
-0.3792566061,
0.1564690173,
0.0412234925,
0.1743076742,
0.3637606502,
-0.6297620535,
-0.0566456206,
0.1625449061,
0.1533395201,
0.1671086848,
0.062570408,
-0.0757087469,
0.0597781688,
0.1686843634,
0.3057147861,
-0.3238658011,
-0.2382701635,
-0.1911197007,
0.0012683123,
0.0694752783,
-0.1967358887,
-0.035806071,
-0.2466351092,
-0.5505594611,
-0.0642873347,
0.1555037051,
-0.177816689,
-0.2148696333,
-0.1831828356,
0.158417657,
0.1110778004,
0.2155775875,
0.2287570536,
0.1362673342,
0.1819665432,
0.0507549122,
0.3108941019,
0.0780807585,
0.6399562955,
0.4952017069,
-0.3066953719,
-0.2850318551,
-0.007127244,
-0.6396297812,
0.3948836923,
0.0834921747,
0.2394912094,
-0.0576917566,
0.2203540504,
-0.3084159493,
-0.1850710809,
0.0404485352,
0.0153224282,
0.0767158568,
-0.4257956445,
-0.581758976,
0.3822162151,
0.1445126086,
-0.0373898149,
0.178394109,
0.0191677548,
-0.3615925014,
-0.1124406159,
0.2835024297,
0.9116526842,
-0.0347926393,
-0.1959259808,
-0.2540156841,
-0.3699358106,
0.1958468258,
-0.2573851347,
-0.1842878163,
-0.2410711795,
0.1239652708,
-0.0534164235,
0.0122656003,
0.4137493372,
0.3091441393,
-0.3899718523,
0.1745359898,
0.2809736133,
0.0706809089,
-0.1250814646,
0.7324374914,
-0.3097577989,
-0.398735851,
0.0499381982,
0.2309390306,
-0.0987995639,
0.0267549269,
-0.0631667227,
-0.4066274762,
-0.0312039107,
0.0307152867,
-0.3434127867,
-0.2780147493,
-0.1524259597,
-0.299049437,
-0.1413584799,
0.000401333,
0.4997793436,
0.2215610594,
0.4800950587,
0.1198947877,
-0.4500289857,
0.0706317648,
-0.0343951285,
-0.1911531985,
-0.1532000154,
-0.032655023,
0.4229025841,
-0.170802176,
-0.1803757995,
-0.0846179649,
0.0167168565,
0.1134261787,
-0.2783230543,
-0.0745022818,
0.1415954977,
-0.3183540106,
0.1876693815,
-0.2271133065,
-0.1257998645,
-0.1471261978,
0.2240528762,
0.1488535851,
-0.0457385331,
0.0788743049,
0.2366681695,
-0.062714301,
-0.1444887221,
0.1992687285,
-0.1947143823,
-0.0680139959,
-0.0035511111,
0.1839551926,
-0.2444024384,
-0.3652845025,
0.0715261996,
0.0970901996,
-0.2910976112,
-0.2242044806,
0.1269230247,
-0.0833300054,
0.0854662284,
0.218680501,
0.1883479953,
-0.1238780692,
0.0134758726,
-0.313144505,
-0.3636690974,
0.071249634,
-0.1343921721,
0.1780824214,
-0.308321625,
-0.226096198,
0.2204605937,
0.1632941067,
-0.4225835204,
-0.0844778419,
-0.0263734609,
0.105023697,
0.1314011216,
0.0804966092,
-0.0760193169,
-0.2077506185,
0.0321267322,
0.153888613,
-0.321202457,
-0.205370605,
-0.1563448012,
0.1044816524,
-0.0265799016,
-0.0187576674,
-0.1343591213,
-0.1624273062,
-0.273073405,
-0.1060785726,
0.1421529949,
-0.077709578,
-0.0306814983,
0.2276831716,
0.2036583722,
0.1546231359,
0.1125503331,
-0.0232954994,
0.034230344,
0.2108050585,
0.0369203873,
-0.1707933098,
-0.1542032063,
0.0156045258,
0.240666464,
0.2459498048,
0.1718398035,
-0.1532495767,
0.323266983,
-0.0717487633,
0.3182328641,
0.4493516684,
0.0756749511,
0.2300285995,
-0.1602611989,
0.1481695473,
0.3929874599,
0.3036415279,
-0.1357549727,
-0.1440730095,
0.2680755258,
-0.1421364844,
0.0591870546,
0.302816689,
0.58684057,
0.1136310399,
-0.1470522285,
0.0602575652,
0.3613985479,
-0.130296126,
0.1025852785,
0.2724297345,
-0.267354846,
0.0426759496,
0.4261934161,
0.3482818902,
0.0647917166,
0.1836283505,
0.0837776661,
0.3153515756,
0.2759125829,
0.2919807136,
0.214312464,
-0.2817307115,
0.1922899187,
0.2428547442,
0.2343325019,
0.1910164952,
0.0642861575,
0.235261336,
0.2019611746,
-0.3495032787,
-0.0240817219,
0.1841565818,
-0.1216902137,
0.2093120813,
-0.0417978019,
-0.1738921404,
-0.1552830935,
-0.05851385,
-0.0290588103,
-0.3398756981,
-0.0005943589,
-0.0907359421,
-0.1026564538,
-0.1430024058,
-0.0001046602,
0.0046436349,
0.1416655481,
-0.2170204669,
0.1782303154,
-0.0363965221,
-0.1286478639,
0.2489001304,
0.1796153784,
0.3387131393,
0.1064285412,
0.0049879849,
0.1239868999,
-0.0810932964,
-0.1823845953,
0.0675777867,
0.4848441482,
0.063666448,
0.1557960212,
0.2096105963,
0.1593332589,
-0.1425122619,
-0.0425817072,
-0.2261161506,
-0.0634317994,
0.0810692161,
-0.2003157884,
0.0650965273,
-0.165608719,
-0.2010236084,
-0.0708217472,
-0.3651631474,
-0.1357475817,
0.5536829233,
-0.0563295595,
0.0573447943,
-0.2745267749,
0.1198180988,
0.2667571306,
0.372823149,
0.1885754168,
0.1164145917,
-0.0306194145,
-0.0840503722,
-0.7492573261,
-0.0726456344,
-0.0913961977,
0.0137572289,
0.1357332617,
-0.1710394025,
0.2055643797,
0.2695923746,
0.1236689836,
0.0102316849,
0.1659905463,
0.1899445951,
-0.1142803431,
-0.2107824981,
-0.0115233846,
0.1543955207,
0.0576941743,
0.0333153307,
0.2340154797,
0.0524602272,
0.0689005777,
-0.3286014497,
0.2945061028,
-0.0065182745,
0.0737771541,
0.4180582762,
-0.0850041136,
0.4787149727,
-0.1953872293,
0.0174062476,
-0.0229143202,
0.1985989064,
-0.1394626349,
0.4079091251,
0.1480745077,
0.2008756101,
-0.0928504616,
-0.1245313883,
-0.2761180699,
0.2035652399,
-0.0565915592,
0.069339864,
-0.4167177379,
0.0129360259,
0.1236257106,
-0.154628545,
0.0853096694,
0.0508725755,
-0.007576447,
-0.1288853586,
-0.1927996874,
-0.2794756889,
0.4735989869,
-0.0692358986,
-0.1155051291,
0.1213368773,
0.0093208253,
0.4011227787,
0.0622699857,
-0.9307849407,
0.1676552743,
0.4140987396,
0.0344725139,
-0.2256740034,
0.1757379174,
-0.0129391588,
-0.0155295655,
-0.1914818883,
0.1828601509,
0.0711720884,
-0.1126633435,
-0.064571552,
-0.1252690405
] |
https://github.com/huggingface/datasets/issues/2089 | Add documentaton for dataset README.md files | I don't think so. Feel free to take a look at the tags of other models (example [here](https://huggingface.co/bert-base-uncased/blob/main/README.md)). But we should definitely have some docs or an app to write the tags. Feel free to open an issue in the `transformers` repo or in the `huggingface_hub` repo so we can discuss this | Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip | 52 | Add documentaton for dataset README.md files
Hi,
the dataset README files have special headers.
Somehow a documenation of the allowed values and tags is missing.
Could you add that?
Just to give some concrete questions that should be answered imo:
- which values can be passted to multilinguality?
- what should be passed to language_creators?
- which values should licenses have? What do I say when it is a custom license? Should I add a link?
- how should I choose size_categories ? What are valid ranges?
- what are valid task_categories?
Thanks
Philip
I don't think so. Feel free to take a look at the tags of other models (example [here](https://huggingface.co/bert-base-uncased/blob/main/README.md)). But we should definitely have some docs or an app to write the tags. Feel free to open an issue in the `transformers` repo or in the `huggingface_hub` repo so we can discuss this | [
-0.1301450431,
-0.0352430493,
-0.0532185957,
0.2471043468,
0.2942428589,
0.2559415102,
0.4152013063,
0.1293423325,
0.0928790569,
-0.0484239459,
-0.1729553938,
0.0700886399,
-0.1718713492,
0.3322661221,
0.1102283299,
-0.0799871162,
0.0745818615,
-0.0640119761,
0.082929574,
-0.3425410092,
-0.1205998436,
0.047330901,
0.0086055994,
-0.1590170562,
-0.3415006101,
-0.0647559315,
-0.1081086099,
0.0878825113,
-0.3661051989,
-0.4418183863,
0.0343781859,
0.364528805,
0.2753333449,
0.200030297,
-0.0001122496,
-0.0820677727,
0.2017981857,
-0.2937218249,
0.0805849731,
-0.069516331,
-0.1306839883,
-0.2235600054,
0.0002539977,
-0.1659979224,
-0.0443722419,
-0.1104560718,
-0.0838515088,
0.0729085729,
0.437050283,
0.3751859665,
0.1481335461,
0.1568714678,
0.3579420745,
-0.0753631294,
0.390633136,
0.5329560041,
-0.172114253,
0.3704755604,
0.4002626538,
0.1344767511,
-0.0086023398,
0.3429556489,
0.0102651566,
0.081511721,
0.5320786834,
0.0614765361,
0.4577290118,
-0.4999292493,
0.0746046826,
0.4968690574,
0.8872470856,
-0.2778628469,
-0.3920513988,
-0.4509533048,
0.0511733629,
-0.0022102296,
0.1275159419,
0.229213953,
-0.0223255791,
0.2023370117,
-0.0359626785,
-0.3970158696,
-0.2950109839,
-0.0164490044,
0.2132581919,
0.5303969383,
-0.08309865,
-0.0483889394,
0.2028931081,
-0.0750718415,
0.0379065871,
-0.0209302269,
-0.1330312192,
0.1808841825,
0.1829432845,
-0.2720577419,
-0.4023818672,
-0.0091054365,
0.2835802138,
-0.1288714856,
-0.0929571912,
0.0104746073,
-0.0570272766,
0.2156035304,
0.2461788654,
-0.0706653073,
-0.1041217744,
0.2844155431,
0.148933351,
-0.063237004,
0.3504866064,
-0.1537152529,
-0.1432398409,
0.0320522301,
-0.1625294089,
-0.0585427359,
-0.119723469,
-0.2173470855,
0.1657662243,
-0.1894993186,
0.2245904356,
-0.1191409826,
0.0865386277,
0.3314214051,
0.0674899593,
-0.1350488663,
-0.2403623462,
0.08499524,
0.0512671992,
-0.1340711862,
-0.0295303464,
0.0856452882,
-0.1304163337,
0.2566339076,
0.2308350205,
-0.0453771837,
0.2571464181,
0.0018115006,
0.1141920388,
-0.0951161385,
0.0790748447,
0.0553014018,
0.169684276,
0.375454247,
-0.219862476,
0.0422177091,
-0.0593294613,
-0.3838607669,
-0.2995629907,
0.0680780709,
-0.3602794111,
-0.2845463157,
-0.3764239848,
0.1332673579,
-0.1712685823,
0.0672327727,
-0.2517307103,
0.2926391661,
0.1982019544,
-0.098250322,
0.2711406052,
0.2577008903,
-0.264619261,
-0.1525436044,
0.0543292165,
0.5442986488,
-0.1550187767,
-0.241423443,
-0.0121601894,
-0.0153322201,
-0.253862083,
0.1582328081,
-0.3104732633,
0.2880331874,
-0.212579608,
0.1954707503,
0.3075236082,
-0.5969022512,
-0.2878674865,
0.1899216324,
0.0441010296,
-0.2430180609,
0.2752090693,
-0.0098639131,
0.4363818765,
-0.2221133113,
-0.221696645,
-0.1164816692,
-0.1454749852,
0.0300426781,
-0.1788653284,
-0.1824240237,
0.18016693,
0.1770685315,
0.1427141875,
-0.0056527518,
0.2813095152,
0.3177365065,
0.1807598323,
-0.0894371569,
0.1050366908,
0.3970931172,
0.3476621211,
0.0344507918,
0.0576080978,
-0.0956656188,
-0.6226609349,
0.0369948521,
-0.0407800227,
0.3914712667,
-0.0753988773,
-0.3238519132,
-0.26405707,
-0.2537073791,
-0.3115505874,
-0.4422726631,
0.0766931549,
-0.0490225218,
-0.2323369533,
0.1121198237,
-0.2760217786,
0.3250451088,
0.0841586888,
0.1767023355,
-0.4231542051,
0.0879208744,
-0.302308321,
0.0981677324,
0.2412699461,
0.1098993272,
0.1273588687,
-0.0951986015,
0.009487994,
0.2334367633,
-0.0210515466,
0.217530936,
0.098245874,
0.6624149084,
0.561277926,
-0.3053041101,
0.1880624741,
-0.2835327387,
0.0984662324,
-0.1810100377,
-0.510597229,
0.068317458,
-0.1871126145,
-0.0570436493,
-0.0027725399,
-0.1004649922,
0.1907691509,
0.032071799,
-0.2853170335,
-0.3556473255,
-0.234543398,
0.0964969471,
0.2393225878,
0.0928760767,
0.1901289374,
0.0627858266,
0.75042063,
-0.1258006692,
0.0917745903,
0.1957149059,
-0.2276318222,
-0.0212665461,
0.125877589,
0.122194618,
0.1449055076,
0.2134444714,
0.060428869,
0.1615925729,
0.0986361727,
-0.1737308949,
0.1242918521,
0.0372129269,
-0.070025228,
0.2428625822,
-0.2385568619,
0.0116532147,
-0.2925583124,
-0.0238555968,
0.1365642548,
0.2298058271,
-0.3926616013,
-0.1688239574,
0.0505821332,
0.0385575667,
-0.2868265808,
-0.2530361116,
-0.6583181024,
-0.1110900342,
0.0961049497,
0.0289085321,
0.0561195537,
0.0624094605,
0.0627809912,
0.1970198303,
-0.1762806326,
0.2620806098,
-0.3391107917,
-0.2260821909,
-0.0866139233,
0.0383845344,
0.4431886077,
0.379588902,
0.3404736221,
-0.3237485588,
0.2406796217,
-0.114779681,
-0.6005817652,
0.2257779241,
-0.1384499967,
0.3139524162,
0.1184748784,
0.0575805381,
0.1074351072,
-0.1111849248,
0.1358051747,
-0.0334656313,
-0.129860431,
-0.2549874783,
-0.0332798511,
-0.2619002759,
-0.1209807247,
-0.4445777833,
-0.2484947741,
-0.3826478124,
0.3122246563,
-0.1325086057,
0.05550294,
0.3077596128,
-0.0077627748,
0.1976730973,
-0.2474431992,
0.1154801026,
-0.169993192,
-0.0900659263,
0.4744250178,
-0.3464309573,
-0.2834533453,
0.2812022865,
0.0528322086,
0.2554818094,
-0.2843570709,
-0.2434407175,
0.042808827,
0.093488574,
-0.2509505749,
0.0276173986,
0.0766628981,
0.2747791409,
0.2590764165,
0.1170008108,
-0.1130938306,
-0.1745863557,
-0.0401855633,
0.0621445738,
-0.0020897463,
-0.1046072468,
0.146564275,
-0.075713627,
0.362398386,
0.0772003531,
0.0615583509,
0.3316226006,
0.0571857244,
0.4331566393,
0.0660255104,
-0.3546020985,
0.2062716782,
0.0067273602,
0.0800776482,
0.3720383048,
0.0802138895,
0.1718424559,
-0.1251849085,
-0.3122658134,
-0.3093343377,
-0.3860097826,
0.1021918878,
0.2228017598,
0.0934714526,
-0.170584023,
0.0037211329,
-0.0533828661,
-0.1663526148,
0.3543722332,
0.8319618106,
-0.14103508,
0.0883161724,
-0.2800044715,
0.1888357103,
-0.2273823023,
0.0215546861,
0.1896582693,
0.0126959085,
-0.2334342003,
0.2113339007,
-0.0076567233,
0.1565875411,
0.5497603416,
-0.5247402191,
-0.0631485954,
0.0129601732,
0.0176208392,
0.1108444035,
0.0663734674,
-0.1372964382,
-0.0921611562,
0.1316771656,
0.4949617982,
-0.431137085,
-0.2816444933,
-0.0844013095,
-0.0765889287,
-0.0694204494,
-0.2530352473,
-0.0952584669,
-0.1593744308,
-0.5372493863,
-0.1278924942,
0.2674384117,
-0.2953920662,
-0.1729181111,
-0.2430231422,
0.183246091,
0.0455965996,
0.2772336304,
0.2463168353,
0.1555466652,
0.1407823265,
-0.0212294683,
0.3834702671,
0.0792535022,
0.6136363745,
0.4085795581,
-0.3780502677,
-0.3243058622,
0.0322223864,
-0.7105810046,
0.2947054505,
0.275734365,
0.2516626716,
-0.0687002912,
0.4258862436,
-0.2119210511,
-0.185273543,
0.0589730218,
0.1156475022,
0.019267451,
-0.5070008039,
-0.5510523319,
0.4138428271,
-0.0060829632,
-0.0376356542,
0.0127163948,
0.2641602159,
-0.3906280398,
0.1536788791,
0.3243082464,
1.2151703835,
-0.1024533957,
0.0564025305,
-0.3050805032,
-0.2416741699,
0.367827028,
-0.4156568348,
-0.1234320551,
-0.2671499252,
0.0144280009,
-0.1264303327,
0.0145876706,
0.3629634976,
0.3674153388,
-0.380130142,
0.0606570914,
0.3421323597,
0.2065848857,
-0.1084156036,
0.7030024529,
-0.1309194416,
-0.4052954316,
0.0217961967,
0.0764625296,
0.0294234529,
0.1367151439,
-0.0836407393,
-0.5859963298,
-0.0780557171,
-0.1361371875,
-0.3741077781,
-0.3525395989,
-0.2044963241,
-0.21102193,
0.0239243396,
0.024666816,
0.5534373522,
0.2366510034,
0.5483725667,
0.1621502489,
-0.6404775977,
0.1355976462,
-0.1239241213,
-0.195699811,
-0.2247794867,
0.0478750803,
0.3694456518,
-0.1299370229,
-0.2023032308,
-0.1330413073,
-0.0682686046,
-0.0005884767,
-0.24654755,
-0.1496172696,
0.1054786742,
-0.3484678268,
0.1442786157,
-0.1986940801,
-0.241132006,
-0.1479476094,
0.1371400952,
0.0323932096,
-0.1151272655,
0.0351004899,
0.2759846151,
-0.1552309692,
-0.0878978223,
0.2337963581,
-0.1964877248,
-0.0990453213,
0.1055184305,
0.1004097611,
-0.2399868667,
-0.2959396243,
-0.0156737342,
0.2685165405,
-0.6028072834,
-0.245448947,
0.0627221316,
-0.180845663,
0.0122802518,
0.3699559569,
0.3838863969,
-0.1363752484,
-0.052135732,
-0.2257375419,
-0.5842853785,
0.1538548619,
-0.1406340748,
0.1699552536,
-0.1889737993,
-0.1157267392,
0.1967945397,
0.2167569697,
-0.3300186396,
-0.1394521892,
-0.0166443884,
0.0411741771,
0.1615887731,
-0.0045230901,
0.0675560385,
-0.3016518056,
-0.0523991361,
0.2579053044,
-0.2703538537,
-0.0999565572,
-0.2450142205,
0.1775100231,
0.0253217891,
0.0142251477,
-0.2025503218,
-0.0234048218,
-0.2965800762,
-0.1278158277,
0.2104474008,
0.0419064462,
0.1458962858,
0.2594265342,
0.2857019901,
0.1632176638,
-0.1503940523,
0.0279442556,
0.1285099685,
0.170354709,
0.1481315196,
-0.1565215588,
-0.161143288,
0.1048820019,
0.3086865842,
0.2369426489,
0.2171388268,
-0.0049650781,
0.3991964757,
-0.0075296815,
0.2695426941,
0.3434645236,
0.1190741211,
0.1901553869,
-0.1295441687,
0.138504535,
0.3368324637,
0.1772239804,
-0.2271176726,
-0.1055102795,
0.3189108968,
-0.1777694821,
0.1020865813,
0.4221238792,
0.5702978373,
0.2688584328,
-0.017271921,
0.1258383095,
0.4669817686,
0.0257787928,
0.0944086388,
0.401304543,
-0.2711419463,
0.1281042397,
0.4452596605,
0.3683159053,
0.1730041355,
0.1913360655,
0.09185642,
0.1147196069,
0.0034718672,
0.28812626,
0.3339248598,
-0.155417949,
0.1877927482,
0.1563861072,
0.4228902459,
0.2024161816,
0.0772234201,
0.0768743902,
0.3115521669,
-0.2270364165,
-0.1206156164,
0.1191147119,
-0.0648444295,
0.0664634556,
0.242465198,
-0.1248513833,
-0.216468066,
-0.1007560864,
-0.0400177166,
-0.3261401057,
-0.0629056692,
0.000362603,
-0.0012206137,
0.0954764411,
-0.0573178083,
0.0682998151,
0.1424608529,
-0.2303172797,
0.1369353384,
0.1743848324,
-0.1468613148,
0.1629304588,
0.2221171111,
0.2091762424,
0.0719907135,
-0.0252241269,
0.2093200833,
0.041927442,
-0.1346250176,
0.0898776054,
0.4182915688,
0.1899673641,
0.2705287635,
0.0956107229,
0.0613956451,
-0.1148892567,
-0.0388121642,
-0.2847313583,
-0.0863256231,
-0.0099290833,
0.0628967807,
-0.00686649,
-0.2412637323,
-0.23674725,
-0.1236433312,
-0.4529109895,
-0.0892211795,
0.5199391842,
-0.1434405446,
0.0544261374,
-0.1810554862,
0.0502702855,
0.2086038589,
0.4289120734,
0.2435465455,
0.0278241877,
-0.0888557434,
0.0625943691,
-0.71019274,
-0.0124148279,
-0.0191062931,
0.124545455,
0.1892189533,
-0.2141041756,
0.2409211546,
0.1618460715,
0.1212538034,
-0.0745745003,
-0.067157343,
0.0800964609,
-0.0710476339,
-0.1740484536,
-0.2068471313,
0.176830858,
0.1298552603,
0.0131966248,
0.1974114031,
0.3441032767,
-0.0479953289,
-0.452376157,
0.3501652479,
-0.0330707952,
0.0621087626,
0.3149147928,
-0.0859731436,
0.4451004565,
-0.2029881775,
-0.1355411708,
0.0671533346,
0.2498448491,
-0.1163872033,
0.3499432206,
0.1667209715,
0.2466563284,
-0.2440738231,
-0.2746078968,
-0.4681327343,
0.0580254942,
-0.0034036189,
-0.1327599883,
-0.6510517597,
0.0006266907,
0.046482861,
-0.2279349864,
0.2111958265,
0.054285612,
-0.037128143,
-0.1182225719,
-0.1886248887,
-0.135521546,
0.6211868525,
-0.1726372242,
-0.141570121,
0.1333980858,
-0.0454601198,
0.4083582759,
-0.017049823,
-1.1616520882,
0.1322576851,
0.3177455366,
0.025812462,
-0.2481317818,
0.0275046676,
0.0788403153,
-0.0259977356,
-0.2317184806,
0.2802072763,
0.0976848751,
-0.1532403529,
-0.1820612848,
-0.176069662
] |
https://github.com/huggingface/datasets/issues/2083 | `concatenate_datasets` throws error when changing the order of datasets to concatenate | Hi,
this bug is related to `Dataset.{remove_columns, rename_column, flatten}` not propagating the change to the schema metadata when the info features are updated, so this line is the culprit:
```python
common_voice_train = common_voice_train.remove_columns(['client_id', 'up_votes', 'down_votes', 'age', 'gender', 'accent', 'locale', 'segment'])
```
The order is important because the resulting dataset inherits the schema metadata of the first dataset passed to the `concatenate_datasets(...)` function (`pa.concat_tables` [docs](https://arrow.apache.org/docs/python/generated/pyarrow.concat_tables.html)). I'll try to fix this ASAP. | Hey,
I played around with the `concatenate_datasets(...)` function: https://huggingface.co/docs/datasets/package_reference/main_classes.html?highlight=concatenate_datasets#datasets.concatenate_datasets
and noticed that when the order in which the datasets are concatenated changes an error is thrown where it should not IMO.
Here is a google colab to reproduce the error: https://colab.research.google.com/drive/17VTFU4KQ735-waWZJjeOHS6yDTfV5ekK?usp=sharing | 70 | `concatenate_datasets` throws error when changing the order of datasets to concatenate
Hey,
I played around with the `concatenate_datasets(...)` function: https://huggingface.co/docs/datasets/package_reference/main_classes.html?highlight=concatenate_datasets#datasets.concatenate_datasets
and noticed that when the order in which the datasets are concatenated changes an error is thrown where it should not IMO.
Here is a google colab to reproduce the error: https://colab.research.google.com/drive/17VTFU4KQ735-waWZJjeOHS6yDTfV5ekK?usp=sharing
Hi,
this bug is related to `Dataset.{remove_columns, rename_column, flatten}` not propagating the change to the schema metadata when the info features are updated, so this line is the culprit:
```python
common_voice_train = common_voice_train.remove_columns(['client_id', 'up_votes', 'down_votes', 'age', 'gender', 'accent', 'locale', 'segment'])
```
The order is important because the resulting dataset inherits the schema metadata of the first dataset passed to the `concatenate_datasets(...)` function (`pa.concat_tables` [docs](https://arrow.apache.org/docs/python/generated/pyarrow.concat_tables.html)). I'll try to fix this ASAP. | [
-0.0796852931,
-0.003557831,
0.0493243448,
0.0962453485,
0.4001433253,
0.2031106949,
0.1476462632,
0.1685888022,
-0.4686332941,
0.0390349664,
-0.1133434772,
0.2235855758,
0.1865087301,
0.2279958725,
-0.1524721682,
-0.3764882982,
0.1803437173,
-0.0335423984,
-0.0318529308,
0.1589731425,
-0.3306149244,
0.2782518566,
-0.4217684269,
0.1194004118,
-0.2770408392,
0.1655760109,
-0.2876588106,
0.2142008394,
-0.131747961,
-0.3083033264,
0.2218191773,
0.208924979,
0.0268244147,
0.488954097,
-0.0001056023,
-0.0131246299,
0.1394523382,
0.0269065797,
-0.2604875267,
-0.2272510678,
-0.2251271904,
-0.1086772233,
-0.1623242199,
0.0379752517,
0.1469445974,
-0.1597017199,
-0.2429725826,
-0.150254339,
0.2837977111,
0.2774027884,
0.2379925251,
0.1755376905,
0.2426475883,
-0.3864707947,
0.1160054356,
-0.1271745861,
-0.0323285833,
0.0827692449,
-0.1578351557,
-0.211422205,
0.1623140424,
0.2935611606,
-0.2205395103,
-0.3700945675,
0.0482725427,
0.1449313462,
-0.0490995795,
-0.1351881772,
-0.0003453824,
0.0726884156,
0.4189133644,
-0.4847946167,
-0.3530628681,
-0.287833333,
0.3797293901,
-0.3848423064,
0.2335148454,
0.1079679355,
0.1808570623,
0.1601843238,
-0.1117425561,
-0.0052864999,
0.0029115081,
0.0073696151,
-0.0543383695,
0.079490751,
0.0577441044,
0.0121797435,
0.1555246115,
-0.3029309511,
0.0764303505,
-0.1139461845,
-0.272321403,
0.112982288,
-0.481987834,
0.001233466,
0.0431279093,
-0.252556026,
0.3593418002,
0.1304218024,
-0.0217061006,
-0.0283694062,
-0.0975562632,
0.1175317913,
0.2533039153,
0.3586051166,
0.0956621319,
0.2279181033,
0.0909646749,
0.2217275053,
0.1781278998,
0.0227591228,
0.1229766831,
-0.2932562232,
-0.0394416712,
0.1017415822,
0.3059559464,
0.0601075962,
-0.1682271957,
0.1103922874,
-0.1277954429,
0.0942963511,
0.0453832187,
0.1752947569,
0.0419016033,
0.3478609025,
0.2925289869,
0.3554243743,
0.1251154393,
0.0136120245,
-0.1590161026,
-0.2540303767,
-0.102640897,
0.2968027294,
-0.0379193015,
-0.1169712916,
-0.0207830593,
0.3439496756,
0.1724198014,
0.1211991608,
-0.2369531393,
0.0161232091,
-0.1319066286,
0.2203486562,
0.0439350605,
-0.0071234778,
0.0624273196,
-0.0074920952,
-0.1447688788,
-0.018963363,
-0.2858019471,
-0.5416711569,
-0.4975184202,
0.2481809855,
0.1760656685,
-0.088783659,
0.0011424236,
0.2109566331,
0.37907812,
-0.2144865543,
-0.0100913942,
-0.131147027,
-0.3337846994,
-0.178313002,
-0.030651398,
0.2728124559,
-0.0783869475,
0.0389477313,
0.1670249104,
0.0284015574,
-0.135316655,
0.4119364917,
-0.1325293779,
-0.1195037663,
-0.1640452147,
0.2925846577,
0.2148225605,
-0.3234606385,
-0.1953999996,
0.015626967,
-0.1306154132,
0.0493506193,
0.0488131791,
-0.1344640106,
-0.1932108551,
-0.1346463412,
0.3389677107,
0.3616019785,
0.017334586,
0.05307886,
-0.0639780238,
-0.0736650899,
0.2254836559,
-0.1554731131,
-0.4454149008,
0.2084552348,
-0.2820548117,
-0.1806510389,
0.3597201109,
-0.2028737515,
-0.0249190014,
0.3321022093,
0.1902953237,
0.1028186977,
0.2281092852,
0.0330317244,
-0.4944087267,
0.069200851,
0.0779695883,
0.1120495051,
-0.2732634544,
-0.3051614165,
-0.1832833588,
-0.026138328,
-0.3229481578,
0.1075261682,
0.1899009943,
0.0190830305,
0.1013578624,
-0.1390780509,
-0.1406923234,
0.3601434231,
-0.0401880965,
0.1133174449,
-0.4093935788,
0.2946310639,
-0.2757106721,
-0.0057806503,
0.0960209221,
0.285059303,
0.1517306268,
0.0952608883,
-0.2058046758,
0.6714096665,
-0.2294555604,
-0.29817307,
0.0129517969,
-0.0409919918,
0.0063926037,
0.0604905263,
-0.101959832,
-0.0107199177,
-0.1760646701,
-0.0578092374,
-0.210491702,
0.3796181679,
0.0027711913,
0.2878169417,
-0.0005500615,
0.1273324192,
0.2976999581,
0.0236182883,
-0.0522812493,
-0.3162913918,
0.1110670492,
0.0720417053,
0.108364217,
0.0913328826,
-0.5487784147,
0.1539597958,
0.615530014,
-0.0723491833,
-0.0204852372,
0.0755998641,
-0.0469929427,
-0.0043912902,
0.0246624853,
-0.03429842,
0.5151795745,
0.1922238916,
-0.1451517195,
0.3800708354,
-0.1407288015,
-0.1236647516,
0.1264639497,
0.0085581373,
0.1879566461,
0.3748960495,
0.4192981422,
0.2545349896,
-0.2852296829,
-0.211107254,
0.0020571016,
0.0120814312,
-0.2482445687,
0.0661969036,
-0.2989223003,
-0.1473240256,
-0.2143440247,
-0.4559221864,
-0.5343992114,
-0.364680171,
0.1637233794,
0.0951005816,
-0.2306732684,
0.3209124804,
-0.0733220056,
0.0126336664,
0.3799386919,
-0.0807907581,
-0.2083370984,
-0.030446643,
0.022590708,
-0.0015236065,
0.0968099833,
-0.1379449219,
0.0062936582,
-0.0825955272,
-0.0205824263,
-0.2717048526,
-0.2621476948,
0.0251966175,
-0.3797259629,
-0.0711876899,
0.2013300657,
-0.0451540835,
0.1132558137,
-0.4360525608,
0.4303461611,
0.1572069973,
-0.2147202343,
0.6075906754,
0.1684283614,
-0.1878269613,
-0.1536265612,
-0.4074481726,
-0.1293826997,
-0.4146422744,
0.226693511,
-0.2033041269,
-0.0041571092,
0.5315071344,
0.1389884055,
-0.2513955534,
-0.1662715077,
0.1982162893,
-0.3319249153,
-0.2268623412,
0.1182050109,
-0.2356246561,
-0.3592351675,
-0.0796591565,
0.1398949921,
0.0986562371,
0.0635477751,
-0.137264058,
-0.1302852035,
-0.1049027741,
0.287304759,
-0.3098779917,
0.0758376792,
0.3729998469,
0.3206867874,
-0.1161199063,
-0.1279152334,
-0.182605356,
-0.0058534145,
0.2448064238,
0.2611475289,
-0.1807269007,
0.310043335,
-0.0188206211,
0.3491808772,
0.2283608317,
-0.0057372567,
0.1428747773,
0.0409730598,
0.3439370394,
-0.2610262632,
-0.3031939268,
-0.1533004791,
-0.2464198768,
0.2255496681,
0.1236191541,
0.0041145384,
0.1353753209,
-0.041990865,
0.3345295787,
0.0660422668,
-0.226821214,
-0.0082917297,
-0.1154846773,
0.2774187326,
0.1853941232,
-0.0468123369,
-0.2113552988,
-0.0027036332,
0.0934273452,
0.1489719599,
-0.1669709086,
-0.131214276,
-0.4330017865,
-0.1807781309,
-0.3780791163,
0.3607484698,
0.1474865675,
0.3197346032,
0.1055634841,
-0.1144770235,
-0.1143716872,
0.0573046654,
0.5016082525,
-0.0727625787,
-0.4048738182,
0.4655721188,
0.1853970289,
-0.2289376259,
-0.3301278949,
-0.1556291282,
0.1920017153,
0.0992616117,
0.3979492784,
-0.3422980011,
-0.1660375744,
0.3565295637,
0.2136687785,
0.1109905243,
-0.0912758261,
-0.3642395139,
-0.2468783557,
-0.3064165711,
-0.1125767529,
-0.0565443337,
0.4393942952,
-0.4744164348,
0.1360110044,
0.2629763186,
-0.2029897273,
-0.130255565,
-0.0940751284,
0.2705755234,
0.0067049302,
0.1725479066,
0.0501535013,
0.2290184051,
0.3115614653,
0.5891235471,
0.0568881817,
-0.7132002711,
-0.1493979692,
0.0947642624,
0.1179932952,
0.1717377901,
-0.0863208026,
0.3397348225,
0.0198446997,
0.193126291,
0.0650931448,
-0.1433596611,
0.6809388399,
-0.0762922913,
-0.6452263594,
-0.3143092394,
0.5154020786,
0.2080059201,
0.0120780766,
0.1749998033,
0.0367935337,
-0.2994354963,
0.2875840068,
-0.1884648502,
0.8607545495,
0.0481347553,
0.3077601492,
0.3695948124,
0.0936542526,
0.3031535447,
-0.0661671162,
0.398214817,
-0.3754055202,
-0.2533073425,
-0.0042339638,
-0.1032130495,
0.0357056484,
-0.0705225021,
-0.5698782206,
0.1437727809,
-0.3996302783,
0.198643595,
-0.1967110336,
0.1399358213,
-0.2798864245,
-0.1738891155,
-0.522583127,
0.1542306691,
0.2264676988,
-0.1210520715,
-0.0864571631,
-0.052052211,
-0.0778322369,
-0.2702745199,
-0.2036772668,
0.3030853271,
-0.2647877038,
0.3141853213,
0.1632531732,
-0.1228603721,
0.0996111333,
0.0565375686,
0.2340859175,
-0.0648674518,
-0.1123137549,
0.0260384865,
0.1305632591,
0.063731119,
-0.0409150571,
-0.1266127527,
0.3307849169,
0.17180565,
-0.2644069195,
0.0615201779,
0.1078258604,
-0.2041437477,
-0.3926241398,
-0.0122635812,
-0.0215870179,
-0.496489346,
0.1905366778,
0.1542436928,
0.192266807,
-0.2586191893,
0.1730124056,
0.0989520252,
-0.1877944618,
0.0471726283,
-0.1320602,
-0.1740373522,
-0.0082016997,
0.3596714437,
-0.0174252838,
0.0402568653,
0.4046957195,
0.1664830148,
-0.0942215174,
-0.0620395243,
-0.0262363032,
-0.0034960471,
-0.2976416349,
0.1244313121,
0.0895572081,
0.0000789016,
0.0600548387,
0.4102916718,
0.0109282592,
-0.0974496156,
0.0142666027,
-0.0683910102,
-0.2066234648,
0.2139131874,
0.1953101009,
0.0667902455,
-0.0840725154,
0.441216588,
-0.0367627591,
0.0116880741,
-0.3577223718,
-0.0698248819,
-0.1693750918,
0.2305310518,
0.1366795897,
-0.1088695824,
-0.0193264708,
-0.0654054657,
0.190039292,
0.1487470865,
-0.0606445223,
-0.2406536043,
-0.0759334639,
0.07289204,
0.2958261073,
-0.00503489,
-0.0025425144,
-0.1038460881,
-0.1390254349,
-0.2507748604,
0.0585561097,
0.211111784,
-0.02647046,
-0.0114155449,
-0.0151096731,
0.1182796657,
0.3251681328,
0.1095738634,
0.0756923035,
-0.1658453494,
-0.1762660444,
0.2312306017,
-0.4591178,
-0.0251223966,
0.0449676849,
0.2719660699,
0.1442511529,
0.0505011305,
0.098149702,
-0.4305642247,
-0.1101260483,
-0.0307266861,
0.5766240954,
0.4599280357,
-0.2510533631,
-0.0947910994,
0.1912531555,
0.2583909035,
-0.4333084226,
-0.2971314192,
0.1146483645,
-0.0093146786,
-0.0756288692,
-0.1008463502,
0.1585248113,
0.0354201794,
-0.0022573918,
0.1471883208,
0.1625919938,
0.0039574746,
0.363578558,
0.3141832352,
0.0872922689,
0.1776057929,
0.3767493069,
0.1845763326,
0.2560097575,
0.2790786624,
0.0073418282,
0.1740578264,
0.1720586866,
-0.2379537821,
0.2201376855,
-0.3379878402,
-0.1055324525,
0.0283962414,
-0.0167602077,
-0.0702321231,
-0.0515055098,
0.5235233903,
-0.388412118,
-0.2773980796,
-0.1429592073,
0.3619549572,
-0.0724962354,
-0.0734697282,
0.10429205,
0.0501957536,
-0.1011229008,
-0.1904466897,
0.058079049,
-0.0687998161,
0.651047647,
-0.1681028157,
-0.0054697543,
-0.5817866325,
0.190433681,
0.2763528824,
0.2139450312,
-0.155439347,
0.0498784706,
0.273963213,
-0.1657038331,
0.3347496688,
0.2308695465,
0.6353482008,
0.2914364934,
0.0203439146,
0.0469663404,
-0.19692114,
0.0724480376,
0.2094467431,
0.1526718289,
0.1200891286,
-0.2670749426,
0.2294179648,
0.1359443963,
-0.1342739314,
-0.0999949425,
0.2606731355,
0.3138767481,
-0.3910781741,
0.1773740202,
-0.2687886059,
-0.2664053738,
-0.0935907364,
0.102969788,
-0.2182301581,
0.0894597098,
0.53713274,
0.3144436181,
0.1687241793,
-0.147696197,
0.1568285227,
0.3726186156,
0.3128841221,
0.5908774137,
0.0228297263,
-0.1525828689,
-0.1991579533,
-0.4441836774,
0.1017590463,
0.0636744648,
0.2398938388,
-0.0085150935,
0.0807568133,
-0.0171224587,
-0.0271063633,
0.1293006092,
-0.1434699893,
-0.1768600494,
-0.0366695896,
-0.4124816656,
-0.1587409824,
0.0380618013,
-0.2000688165,
0.1036185548,
-0.2433553338,
0.0644300506,
0.0986106992,
0.0784641951,
-0.1197603792,
0.189394474,
0.1105801314,
-0.0421845578,
0.2163259983,
0.2280188352,
0.2743907273,
-0.0294954069,
-0.1176542491,
-0.260878861,
-0.6040967703,
-0.4140900075,
0.1496850252,
-0.0973920077,
0.098368682,
-0.0659846887,
-0.0665804893,
-0.163969934,
0.1544446945,
0.151569277,
-0.1218538955,
-0.4928683341,
0.2210884541,
0.0852263123,
0.0022881925,
-0.1137430221,
0.2006944418,
0.0190556888,
0.5071309209,
-0.2035803646,
-0.6065547466,
0.6595965624,
-0.0683465749,
-0.3848766088,
-0.0330866463,
0.0976778492,
0.0802316666,
-0.197758615,
-0.5424661636,
0.0594670922,
0.1686284095,
0.0395235457,
-0.2772473991,
0.2007493675,
-0.0864774361,
-0.0491293184,
-0.111250028,
0.3544620275,
0.0607267171,
-0.4413895309,
0.2329768538,
-0.1056704149
] |
https://github.com/huggingface/datasets/issues/2080 | Multidimensional arrays in a Dataset | Hi !
This is actually supported ! but not yet in `from_pandas`.
You can use `from_dict` for now instead:
```python
from datasets import Dataset, Array2D, Features, Value
import pandas as pd
import numpy as np
dataset = {
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
}
dataset = Dataset.from_dict(dataset)
```
This will work but to use it with the torch formatter you must specify the `Array2D` feature type in order to tell the shape:
```python
from datasets import Dataset, Array2D, Features, Value
import pandas as pd
import numpy as np
dataset = {
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
}
dataset = Dataset.from_dict(dataset, features=Features({
"bbox": Array2D(shape=(3, 4), dtype="int64"),
"input_ids": Value("int64")
}))
dataset.set_format("torch")
print(dataset[0]['bbox'])
# tensor([[1, 2, 3, 4],
# [1, 2, 3, 4],
# [1, 2, 3, 4]])
```
If you don't specify the `Array2D` feature type, then the inferred type will be Sequence(Sequence(Value("int64"))) and therefore the torch formatter will return list of tensors | Hi,
I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional arrays as a value for a column in a row.
The following code results in conversion error in pyarrow (`pyarrow.lib.ArrowInvalid: ('Can only convert 1-dimensional array values', 'Conversion failed for column bbox with type object')`)
```
from datasets import Dataset
import pandas as pd
import numpy as np
dataset = pd.DataFrame({
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
```
Since I wanted to use pytorch for the downstream training task, I also tried a few ways to directly put in a column of 2-D pytorch tensor in a formatted dataset, but I can only have a list of 1-D tensors, or a list of arrays, or a list of lists.
```
import torch
from datasets import Dataset
import pandas as pd
dataset = pd.DataFrame({
'bbox': [
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]]
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
def test(examples):
return {'bbbox': torch.Tensor(examples['bbox'])}
dataset = dataset.map(test)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
dataset.set_format(type='torch', columns=['input_ids', 'bbox'], output_all_columns=True)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
def test2(examples):
return {'bbbox': torch.stack(examples['bbox'])}
dataset = dataset.map(test2)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
```
Is is possible to support n-D arrays/tensors in datasets?
It seems that it can also be useful for this [feature request](https://github.com/huggingface/datasets/issues/263). | 165 | Multidimensional arrays in a Dataset
Hi,
I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional arrays as a value for a column in a row.
The following code results in conversion error in pyarrow (`pyarrow.lib.ArrowInvalid: ('Can only convert 1-dimensional array values', 'Conversion failed for column bbox with type object')`)
```
from datasets import Dataset
import pandas as pd
import numpy as np
dataset = pd.DataFrame({
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
```
Since I wanted to use pytorch for the downstream training task, I also tried a few ways to directly put in a column of 2-D pytorch tensor in a formatted dataset, but I can only have a list of 1-D tensors, or a list of arrays, or a list of lists.
```
import torch
from datasets import Dataset
import pandas as pd
dataset = pd.DataFrame({
'bbox': [
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]]
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
def test(examples):
return {'bbbox': torch.Tensor(examples['bbox'])}
dataset = dataset.map(test)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
dataset.set_format(type='torch', columns=['input_ids', 'bbox'], output_all_columns=True)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
def test2(examples):
return {'bbbox': torch.stack(examples['bbox'])}
dataset = dataset.map(test2)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
```
Is is possible to support n-D arrays/tensors in datasets?
It seems that it can also be useful for this [feature request](https://github.com/huggingface/datasets/issues/263).
Hi !
This is actually supported ! but not yet in `from_pandas`.
You can use `from_dict` for now instead:
```python
from datasets import Dataset, Array2D, Features, Value
import pandas as pd
import numpy as np
dataset = {
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
}
dataset = Dataset.from_dict(dataset)
```
This will work but to use it with the torch formatter you must specify the `Array2D` feature type in order to tell the shape:
```python
from datasets import Dataset, Array2D, Features, Value
import pandas as pd
import numpy as np
dataset = {
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
}
dataset = Dataset.from_dict(dataset, features=Features({
"bbox": Array2D(shape=(3, 4), dtype="int64"),
"input_ids": Value("int64")
}))
dataset.set_format("torch")
print(dataset[0]['bbox'])
# tensor([[1, 2, 3, 4],
# [1, 2, 3, 4],
# [1, 2, 3, 4]])
```
If you don't specify the `Array2D` feature type, then the inferred type will be Sequence(Sequence(Value("int64"))) and therefore the torch formatter will return list of tensors | [
0.0149023235,
-0.256793946,
-0.0799353048,
0.1915311217,
0.4495705664,
0.0549276322,
0.8991123438,
0.1010942906,
0.1804245412,
0.067830205,
-0.1109768301,
0.3204250932,
-0.2819291949,
0.0522114858,
0.1784120351,
-0.4505747259,
0.1631146669,
0.2940376997,
-0.3680661321,
0.0973280668,
-0.0565508157,
-0.0563465133,
-0.2456142604,
-0.0419219323,
-0.3301550746,
-0.2008834928,
-0.1476365924,
-0.1640360802,
-0.0638763607,
-0.1978777647,
0.24091658,
-0.170625627,
0.2700606585,
0.2606249154,
-0.0001195509,
0.2267988026,
0.0247744061,
-0.1292831302,
-0.0359675437,
-0.0393489748,
0.2725149989,
-0.6480610371,
-0.0806012601,
-0.43247509,
0.0080719143,
-0.4712086618,
-0.2638432086,
-0.5005576611,
0.0513899848,
0.392832309,
0.1141964197,
0.3314777613,
0.2363569438,
0.157998234,
0.1462770551,
0.0132809635,
-0.1706012189,
-0.2005451024,
0.239397496,
-0.2072261125,
0.0300290771,
0.0932103097,
-0.2798199356,
0.1661208868,
0.2681392431,
0.2049356699,
0.0058013164,
0.0611367524,
-0.0313580558,
0.127843678,
0.4276587367,
-0.3980729282,
-0.3639861643,
-0.2793342471,
0.0686927736,
-0.1197745651,
-0.1095298231,
0.3258957863,
-0.1266004741,
0.0910805762,
-0.4061071277,
0.1408002079,
-0.318246752,
0.3343324959,
-0.4043466449,
0.2282197475,
0.1337882876,
0.1612995565,
0.0395999625,
-0.1324866712,
0.733908236,
-0.0246709771,
0.3878376782,
0.078072235,
-0.3060496449,
-0.02921056,
-0.1911203116,
-0.55459553,
-0.0388240479,
-0.4604117274,
0.3082385361,
0.1663304865,
0.1043881476,
0.1976925433,
0.0353527926,
0.2383287102,
-0.4363074005,
0.4121214747,
-0.0672473386,
-0.2368494123,
0.4810280204,
0.0992482007,
-0.1561654657,
-0.150265038,
0.1455622762,
0.0061741322,
-0.0272426121,
0.3684129417,
-0.2227879465,
0.0070693828,
-0.5160888433,
-0.0086486526,
0.0363629907,
0.1473618597,
0.1086723506,
0.3957234919,
0.0416682661,
0.3720442057,
0.1662514508,
-0.1195265204,
-0.0711396337,
0.3225000799,
-0.3391716778,
-0.0316566154,
0.1639198065,
0.56511724,
-0.0971910805,
0.0204910673,
0.2087809294,
-0.0764321461,
0.0289025679,
-0.0874165148,
0.2978043556,
0.2908813953,
-0.141659826,
-0.0486810841,
0.0412728749,
0.2416124046,
-0.0130375922,
0.4392247796,
-0.0711847767,
-0.0471878871,
-0.3636681437,
-0.0374877825,
-0.0945897102,
-0.0264148843,
-0.1960165054,
0.1866909117,
0.4951613247,
-0.0282089785,
0.1075462103,
-0.5084318519,
0.0889308155,
-0.2072449774,
0.1400896907,
-0.3502913713,
-0.3905956149,
0.2010028213,
0.2407014221,
0.3463237882,
0.0975591838,
0.2834512591,
-0.3449482918,
0.0540577658,
0.0329004377,
0.2473340183,
0.3387681842,
-0.0420007147,
-0.0871172398,
-0.1622387916,
-0.0173251256,
-0.000717245,
0.111200586,
0.3168394268,
0.1397197396,
0.1958105117,
0.1861189455,
0.1972094476,
-0.0389667675,
0.3523802757,
-0.0916299522,
-0.2154469043,
0.4633563757,
0.2579579949,
0.3060803413,
-0.1548967659,
0.0176658183,
0.0563276447,
0.0940436274,
-0.5431796908,
0.1949047446,
0.3491543233,
-0.0187138245,
-0.0986343101,
0.05644124,
-0.4492573738,
-0.7101924419,
0.160866946,
0.0483018607,
0.1065320522,
-0.1837564558,
-0.0663251132,
-0.1079389453,
0.1118317693,
0.0720699057,
0.1178973615,
0.0417497642,
0.0352331474,
-0.0735231936,
-0.3971259296,
-0.2047449499,
0.0776519775,
0.3375153542,
-0.0829180479,
-0.3645124435,
0.592897296,
-0.1039528176,
-0.2862937748,
0.010134764,
0.4462894201,
0.0611799993,
-0.0496977866,
0.1977590024,
0.2274240553,
0.1230927557,
-0.383235842,
-0.4160237908,
0.472738564,
0.2562885582,
-0.2721800208,
0.2036812007,
0.0511425585,
0.0157316364,
-0.0084935799,
-0.3207271993,
0.568790853,
-0.0014344649,
-0.0261083841,
-0.2726283073,
0.1914389133,
0.0833542198,
0.0909296721,
-0.117159918,
-0.0677581877,
-0.230003491,
-0.2115734518,
0.0922159553,
-0.0045597386,
-0.38978374,
0.0558722951,
0.2677545249,
-0.1892516613,
0.2653502524,
-0.1347498298,
-0.0375848711,
0.0150867254,
0.1793587655,
-0.0371524394,
0.1663658321,
0.2058115304,
0.1150868833,
-0.1248202026,
-0.4518624842,
-0.139728561,
0.0517304689,
-0.1079203412,
0.1812420785,
0.0518615581,
0.2955334783,
-0.1676358134,
-0.0637026727,
0.0914284736,
0.3197636902,
0.2288445085,
-0.4060828686,
0.1624590904,
-0.3874128759,
-0.0664658323,
-0.230476588,
-0.2601809502,
0.0049726013,
0.0868770257,
-0.0880190879,
0.234203279,
0.0812049508,
0.1689578593,
0.0277668685,
-0.0450000316,
0.254880935,
-0.2477958947,
-0.0624882504,
-0.1313536167,
-0.0641595423,
-0.0014591292,
0.1030869633,
0.1419319212,
0.1337917745,
0.4435396194,
-0.0571618229,
-0.459299624,
-0.0347508639,
-0.1463268995,
-0.2035898268,
-0.1697764546,
0.090479821,
0.0106053427,
-0.1125861853,
-0.0403796583,
0.3096115589,
0.2927796245,
0.0355215594,
0.3789584637,
0.2087773085,
-0.1153360754,
-0.1274022162,
-0.1328264773,
-0.1498310715,
-0.2656078935,
0.0212589074,
-0.3921456933,
0.1053934321,
-0.2647842169,
0.37871176,
0.1925879121,
0.1587027013,
-0.2593995035,
0.0740581229,
0.3446685672,
0.6661355495,
-0.035194546,
-0.3907383084,
-0.3848364651,
-0.1644584537,
0.0585446879,
0.701117754,
-0.2124487162,
-0.2320628464,
-0.1337759942,
-0.0626930147,
-0.1328708231,
-0.0599337816,
0.6345388889,
0.0861990675,
0.0013021082,
-0.0903874934,
-0.1663162708,
0.0663033947,
0.1509485096,
0.0939805135,
-0.081398651,
0.3435147703,
0.2753553391,
0.3017739058,
0.0231567621,
-0.2025795281,
0.2516397238,
-0.1907727569,
0.1549072564,
-0.0294431522,
-0.257309407,
-0.0765907243,
-0.3783546984,
-0.1627089381,
-0.0877783969,
-0.2194222361,
-0.5588401556,
-0.0134954825,
0.3541663885,
-0.1128608584,
-0.0620548204,
0.4988287389,
-0.3866082728,
0.3288065493,
-0.0005443618,
0.0491643101,
-0.3488152921,
-0.1622707546,
-0.1883960515,
-0.3264349997,
-0.1317930669,
0.0207403451,
-0.5361715555,
-0.2696359754,
0.1808827966,
0.1261784583,
0.3767215312,
0.7153759003,
0.1138257533,
0.0400265083,
0.2162430733,
-0.0295361094,
0.5638820529,
-0.0700068697,
-0.3026609421,
0.3299585581,
0.0555712432,
-0.5217556953,
-0.2325491607,
-0.3563008606,
-0.1439815909,
-0.0971961915,
0.4788841009,
-0.3085344732,
-0.2306002229,
0.1910065413,
0.185374096,
-0.1017973647,
-0.0734612197,
-0.2473594546,
-0.2527899742,
-0.1889767647,
-0.1428681165,
0.4407945275,
0.3197946846,
0.211081624,
-0.2233936638,
-0.105580464,
-0.3295323849,
0.088683337,
-0.0368406624,
0.0896121413,
0.1358521879,
-0.1247345805,
0.172672376,
0.2221594006,
0.4825520813,
0.0961527452,
-0.1107677892,
-0.0135591328,
0.1709890962,
-0.1279082298,
0.3795844316,
0.1518592685,
-0.1087808311,
-0.2579712868,
-0.0883319378,
0.0015153177,
-0.1207929701,
-0.0297297835,
0.275611043,
-0.0356957763,
-0.2073620558,
-0.2779882252,
0.2343327999,
-0.0254753903,
0.1139987707,
0.1716229469,
0.2811612785,
-0.1681225002,
0.2883463204,
0.3334228396,
0.6774013042,
-0.5055261254,
0.392016232,
0.4707365334,
-0.1107948944,
0.2089316845,
-0.1366588771,
0.3178486228,
-0.2395370752,
0.0199291483,
-0.208960548,
-0.1850182116,
0.2092849314,
0.4186440706,
-0.0276030153,
0.0813102573,
0.0485320091,
0.2109476328,
0.1919578761,
-0.0871063396,
0.1290740073,
-0.2450112849,
-0.0733687431,
0.0722153038,
-0.1949902773,
-0.3241555393,
-0.0126736648,
-0.2041718513,
-0.3422338068,
-0.0203463212,
-0.3445939124,
-0.1296944618,
-0.3006145954,
0.4228592813,
0.1384603977,
-0.494845897,
0.0487049296,
0.5728102326,
0.0256154183,
-0.3815948963,
-0.1450157613,
-0.3738673031,
-0.2349481732,
-0.220829159,
-0.0488312729,
-0.2558013201,
0.3040535748,
0.0156505108,
-0.0739734843,
0.1643841863,
-0.0304168034,
-0.3962723017,
-0.0108934641,
0.2503050566,
0.0972079039,
-0.2461634278,
-0.0253745131,
-0.188480258,
0.1446113586,
-0.0500296839,
0.0604319759,
-0.0965673923,
-0.0386192985,
0.2899437249,
-0.0460207313,
0.0774861723,
0.1257363558,
0.2239424735,
0.1179814935,
-0.303109467,
0.1812617183,
0.1092495471,
-0.3035008311,
-0.1538248658,
0.200455606,
0.5446792841,
-0.0663516447,
0.0234455206,
-0.3518612683,
-0.3031124771,
-0.0683958977,
0.1484073848,
0.3131949604,
0.1276942194,
-0.193395853,
-0.2029369771,
-0.263492465,
0.4287039042,
0.3794880211,
0.2747299671,
-0.0351036638,
0.2906458974,
-0.1598078907,
0.0051986482,
-0.2314177752,
-0.0259407163,
-0.0979492664,
0.2771213055,
-0.0215534586,
-0.3222761452,
-0.1066990271,
-0.109724015,
0.0815520287,
-0.0875353441,
-0.1162492931,
-0.1111932769,
0.0781163573,
0.1195415258,
0.1183833554,
-0.0039290525,
0.0257315673,
-0.4714915156,
-0.3264597952,
-0.2363395393,
0.0080075637,
0.4533225298,
-0.0041554831,
0.1654729843,
0.2998782694,
0.1157936156,
-0.0761753321,
-0.1688292623,
-0.1501286328,
-0.1383612603,
0.0050393939,
0.2183292657,
0.2484650016,
0.0066203624,
-0.2967951298,
0.131821692,
0.0704102367,
-0.0740278214,
0.3137461543,
-0.3049805462,
-0.0527508706,
-0.1453632414,
0.479377389,
-0.0544442385,
-0.3318729401,
0.0426694006,
0.1517039239,
0.0878730565,
-0.2129775882,
-0.3487566113,
0.1269569993,
0.03489675,
0.141035974,
0.5094712973,
0.3671323359,
0.1969042867,
0.1261758506,
-0.124760516,
0.3551175296,
-0.1337390244,
-0.1359170675,
0.3305074275,
-0.0477364771,
-0.0159559622,
0.2496729046,
0.0032822508,
0.2069056034,
0.5683192015,
-0.0471286289,
0.2942132652,
0.400782764,
0.1045907885,
-0.1734314263,
0.1579917371,
-0.0968308821,
-0.0942737907,
0.2389736176,
-0.1445456892,
-0.1482392699,
0.2099246532,
-0.1258607507,
-0.0203973353,
-0.110693261,
0.0989397019,
-0.2336274385,
0.1443286538,
0.0261037871,
0.0543616861,
-0.0992341116,
-0.187189132,
-0.0987327471,
-0.0773622468,
0.3327879906,
-0.0060647689,
0.1644571275,
0.0103617981,
0.1795241982,
0.4635999203,
0.0343804508,
-0.1801713407,
0.285169661,
0.3174893856,
-0.1626902521,
-0.0669268072,
0.0285956319,
0.2932971418,
0.2905934751,
0.0055147968,
0.0178470239,
-0.1586219072,
-0.1852165461,
-0.0713799968,
0.0422840454,
0.039218761,
0.2712654471,
0.2794286907,
0.0286644101,
-0.0653818324,
0.1784532368,
-0.0235881582,
0.0513590351,
-0.1432745457,
0.2960941792,
-0.1465901285,
-0.5235887766,
0.1866848022,
-0.3249722123,
-0.3480750918,
0.0296940319,
0.3392663598,
-0.0802816004,
0.2214087397,
0.2769949138,
0.0203872509,
0.1460018009,
0.4759074748,
0.0976116061,
0.3561216593,
-0.0767007321,
-0.0689725131,
-0.5012390018,
0.1398174316,
-0.4139973521,
0.0408433229,
0.2894043922,
0.172470808,
0.3225070238,
0.2895633578,
0.0376225337,
0.1403893381,
-0.0968749747,
0.3843568861,
-0.227028951,
-0.0645687953,
0.1950529814,
0.2118767649,
0.1090168133,
-0.2388570756,
0.3231710196,
0.2930503488,
0.0205491707,
-0.2603199482,
0.399215132,
-0.1971798539,
0.3074827492,
-0.0728126913,
-0.1389237344,
0.5194198489,
0.2293465137,
0.2214032412,
-0.1439769417,
0.0300036781,
-0.0908125937,
0.3211361468,
0.1461285353,
0.4942117333,
-0.4318765402,
-0.2108423263,
-0.054269366,
0.1428689063,
0.0246399418,
-0.0425274819,
-0.1893385351,
0.2584881186,
-0.220361799,
-0.014823135,
0.0579341687,
0.0337438956,
0.0794117376,
0.2195663452,
-0.2821285725,
-0.4187390506,
0.4235398173,
-0.1683391035,
-0.5067198277,
0.1799822003,
-0.2447524369,
0.1559958458,
0.1381159276,
-0.5674661994,
-0.1494413316,
0.2118354142,
-0.1582861692,
-0.2038371563,
-0.037570741,
-0.0058428571,
-0.1672921628,
-0.1489333361,
0.3547780812,
-0.1051542535,
-0.1671756208,
-0.4202931821,
-0.3254511356
] |
https://github.com/huggingface/datasets/issues/2080 | Multidimensional arrays in a Dataset | Thanks for the explanation.
With my original DataFrame, I did
```
dataset = dataset.to_dict("list")
```
and then the rest of the transformation from dictionary works just fine. | Hi,
I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional arrays as a value for a column in a row.
The following code results in conversion error in pyarrow (`pyarrow.lib.ArrowInvalid: ('Can only convert 1-dimensional array values', 'Conversion failed for column bbox with type object')`)
```
from datasets import Dataset
import pandas as pd
import numpy as np
dataset = pd.DataFrame({
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
```
Since I wanted to use pytorch for the downstream training task, I also tried a few ways to directly put in a column of 2-D pytorch tensor in a formatted dataset, but I can only have a list of 1-D tensors, or a list of arrays, or a list of lists.
```
import torch
from datasets import Dataset
import pandas as pd
dataset = pd.DataFrame({
'bbox': [
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]]
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
def test(examples):
return {'bbbox': torch.Tensor(examples['bbox'])}
dataset = dataset.map(test)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
dataset.set_format(type='torch', columns=['input_ids', 'bbox'], output_all_columns=True)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
def test2(examples):
return {'bbbox': torch.stack(examples['bbox'])}
dataset = dataset.map(test2)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
```
Is is possible to support n-D arrays/tensors in datasets?
It seems that it can also be useful for this [feature request](https://github.com/huggingface/datasets/issues/263). | 27 | Multidimensional arrays in a Dataset
Hi,
I'm trying to put together a `datasets.Dataset` to be used with LayoutLM which is available in `transformers`. This model requires as input the bounding boxes of each of the token of a sequence. This is when I realized that `Dataset` does not support multi-dimensional arrays as a value for a column in a row.
The following code results in conversion error in pyarrow (`pyarrow.lib.ArrowInvalid: ('Can only convert 1-dimensional array values', 'Conversion failed for column bbox with type object')`)
```
from datasets import Dataset
import pandas as pd
import numpy as np
dataset = pd.DataFrame({
'bbox': [
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]]),
np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
```
Since I wanted to use pytorch for the downstream training task, I also tried a few ways to directly put in a column of 2-D pytorch tensor in a formatted dataset, but I can only have a list of 1-D tensors, or a list of arrays, or a list of lists.
```
import torch
from datasets import Dataset
import pandas as pd
dataset = pd.DataFrame({
'bbox': [
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]],
[[1,2,3,4],[1,2,3,4],[1,2,3,4]]
],
'input_ids': [1, 2, 3, 4]
})
dataset = Dataset.from_pandas(dataset)
def test(examples):
return {'bbbox': torch.Tensor(examples['bbox'])}
dataset = dataset.map(test)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
dataset.set_format(type='torch', columns=['input_ids', 'bbox'], output_all_columns=True)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
def test2(examples):
return {'bbbox': torch.stack(examples['bbox'])}
dataset = dataset.map(test2)
print(dataset[0]['bbox'])
print(dataset[0]['bbbox'])
```
Is is possible to support n-D arrays/tensors in datasets?
It seems that it can also be useful for this [feature request](https://github.com/huggingface/datasets/issues/263).
Thanks for the explanation.
With my original DataFrame, I did
```
dataset = dataset.to_dict("list")
```
and then the rest of the transformation from dictionary works just fine. | [
0.0149023235,
-0.256793946,
-0.0799353048,
0.1915311217,
0.4495705664,
0.0549276322,
0.8991123438,
0.1010942906,
0.1804245412,
0.067830205,
-0.1109768301,
0.3204250932,
-0.2819291949,
0.0522114858,
0.1784120351,
-0.4505747259,
0.1631146669,
0.2940376997,
-0.3680661321,
0.0973280668,
-0.0565508157,
-0.0563465133,
-0.2456142604,
-0.0419219323,
-0.3301550746,
-0.2008834928,
-0.1476365924,
-0.1640360802,
-0.0638763607,
-0.1978777647,
0.24091658,
-0.170625627,
0.2700606585,
0.2606249154,
-0.0001195509,
0.2267988026,
0.0247744061,
-0.1292831302,
-0.0359675437,
-0.0393489748,
0.2725149989,
-0.6480610371,
-0.0806012601,
-0.43247509,
0.0080719143,
-0.4712086618,
-0.2638432086,
-0.5005576611,
0.0513899848,
0.392832309,
0.1141964197,
0.3314777613,
0.2363569438,
0.157998234,
0.1462770551,
0.0132809635,
-0.1706012189,
-0.2005451024,
0.239397496,
-0.2072261125,
0.0300290771,
0.0932103097,
-0.2798199356,
0.1661208868,
0.2681392431,
0.2049356699,
0.0058013164,
0.0611367524,
-0.0313580558,
0.127843678,
0.4276587367,
-0.3980729282,
-0.3639861643,
-0.2793342471,
0.0686927736,
-0.1197745651,
-0.1095298231,
0.3258957863,
-0.1266004741,
0.0910805762,
-0.4061071277,
0.1408002079,
-0.318246752,
0.3343324959,
-0.4043466449,
0.2282197475,
0.1337882876,
0.1612995565,
0.0395999625,
-0.1324866712,
0.733908236,
-0.0246709771,
0.3878376782,
0.078072235,
-0.3060496449,
-0.02921056,
-0.1911203116,
-0.55459553,
-0.0388240479,
-0.4604117274,
0.3082385361,
0.1663304865,
0.1043881476,
0.1976925433,
0.0353527926,
0.2383287102,
-0.4363074005,
0.4121214747,
-0.0672473386,
-0.2368494123,
0.4810280204,
0.0992482007,
-0.1561654657,
-0.150265038,
0.1455622762,
0.0061741322,
-0.0272426121,
0.3684129417,
-0.2227879465,
0.0070693828,
-0.5160888433,
-0.0086486526,
0.0363629907,
0.1473618597,
0.1086723506,
0.3957234919,
0.0416682661,
0.3720442057,
0.1662514508,
-0.1195265204,
-0.0711396337,
0.3225000799,
-0.3391716778,
-0.0316566154,
0.1639198065,
0.56511724,
-0.0971910805,
0.0204910673,
0.2087809294,
-0.0764321461,
0.0289025679,
-0.0874165148,
0.2978043556,
0.2908813953,
-0.141659826,
-0.0486810841,
0.0412728749,
0.2416124046,
-0.0130375922,
0.4392247796,
-0.0711847767,
-0.0471878871,
-0.3636681437,
-0.0374877825,
-0.0945897102,
-0.0264148843,
-0.1960165054,
0.1866909117,
0.4951613247,
-0.0282089785,
0.1075462103,
-0.5084318519,
0.0889308155,
-0.2072449774,
0.1400896907,
-0.3502913713,
-0.3905956149,
0.2010028213,
0.2407014221,
0.3463237882,
0.0975591838,
0.2834512591,
-0.3449482918,
0.0540577658,
0.0329004377,
0.2473340183,
0.3387681842,
-0.0420007147,
-0.0871172398,
-0.1622387916,
-0.0173251256,
-0.000717245,
0.111200586,
0.3168394268,
0.1397197396,
0.1958105117,
0.1861189455,
0.1972094476,
-0.0389667675,
0.3523802757,
-0.0916299522,
-0.2154469043,
0.4633563757,
0.2579579949,
0.3060803413,
-0.1548967659,
0.0176658183,
0.0563276447,
0.0940436274,
-0.5431796908,
0.1949047446,
0.3491543233,
-0.0187138245,
-0.0986343101,
0.05644124,
-0.4492573738,
-0.7101924419,
0.160866946,
0.0483018607,
0.1065320522,
-0.1837564558,
-0.0663251132,
-0.1079389453,
0.1118317693,
0.0720699057,
0.1178973615,
0.0417497642,
0.0352331474,
-0.0735231936,
-0.3971259296,
-0.2047449499,
0.0776519775,
0.3375153542,
-0.0829180479,
-0.3645124435,
0.592897296,
-0.1039528176,
-0.2862937748,
0.010134764,
0.4462894201,
0.0611799993,
-0.0496977866,
0.1977590024,
0.2274240553,
0.1230927557,
-0.383235842,
-0.4160237908,
0.472738564,
0.2562885582,
-0.2721800208,
0.2036812007,
0.0511425585,
0.0157316364,
-0.0084935799,
-0.3207271993,
0.568790853,
-0.0014344649,
-0.0261083841,
-0.2726283073,
0.1914389133,
0.0833542198,
0.0909296721,
-0.117159918,
-0.0677581877,
-0.230003491,
-0.2115734518,
0.0922159553,
-0.0045597386,
-0.38978374,
0.0558722951,
0.2677545249,
-0.1892516613,
0.2653502524,
-0.1347498298,
-0.0375848711,
0.0150867254,
0.1793587655,
-0.0371524394,
0.1663658321,
0.2058115304,
0.1150868833,
-0.1248202026,
-0.4518624842,
-0.139728561,
0.0517304689,
-0.1079203412,
0.1812420785,
0.0518615581,
0.2955334783,
-0.1676358134,
-0.0637026727,
0.0914284736,
0.3197636902,
0.2288445085,
-0.4060828686,
0.1624590904,
-0.3874128759,
-0.0664658323,
-0.230476588,
-0.2601809502,
0.0049726013,
0.0868770257,
-0.0880190879,
0.234203279,
0.0812049508,
0.1689578593,
0.0277668685,
-0.0450000316,
0.254880935,
-0.2477958947,
-0.0624882504,
-0.1313536167,
-0.0641595423,
-0.0014591292,
0.1030869633,
0.1419319212,
0.1337917745,
0.4435396194,
-0.0571618229,
-0.459299624,
-0.0347508639,
-0.1463268995,
-0.2035898268,
-0.1697764546,
0.090479821,
0.0106053427,
-0.1125861853,
-0.0403796583,
0.3096115589,
0.2927796245,
0.0355215594,
0.3789584637,
0.2087773085,
-0.1153360754,
-0.1274022162,
-0.1328264773,
-0.1498310715,
-0.2656078935,
0.0212589074,
-0.3921456933,
0.1053934321,
-0.2647842169,
0.37871176,
0.1925879121,
0.1587027013,
-0.2593995035,
0.0740581229,
0.3446685672,
0.6661355495,
-0.035194546,
-0.3907383084,
-0.3848364651,
-0.1644584537,
0.0585446879,
0.701117754,
-0.2124487162,
-0.2320628464,
-0.1337759942,
-0.0626930147,
-0.1328708231,
-0.0599337816,
0.6345388889,
0.0861990675,
0.0013021082,
-0.0903874934,
-0.1663162708,
0.0663033947,
0.1509485096,
0.0939805135,
-0.081398651,
0.3435147703,
0.2753553391,
0.3017739058,
0.0231567621,
-0.2025795281,
0.2516397238,
-0.1907727569,
0.1549072564,
-0.0294431522,
-0.257309407,
-0.0765907243,
-0.3783546984,
-0.1627089381,
-0.0877783969,
-0.2194222361,
-0.5588401556,
-0.0134954825,
0.3541663885,
-0.1128608584,
-0.0620548204,
0.4988287389,
-0.3866082728,
0.3288065493,
-0.0005443618,
0.0491643101,
-0.3488152921,
-0.1622707546,
-0.1883960515,
-0.3264349997,
-0.1317930669,
0.0207403451,
-0.5361715555,
-0.2696359754,
0.1808827966,
0.1261784583,
0.3767215312,
0.7153759003,
0.1138257533,
0.0400265083,
0.2162430733,
-0.0295361094,
0.5638820529,
-0.0700068697,
-0.3026609421,
0.3299585581,
0.0555712432,
-0.5217556953,
-0.2325491607,
-0.3563008606,
-0.1439815909,
-0.0971961915,
0.4788841009,
-0.3085344732,
-0.2306002229,
0.1910065413,
0.185374096,
-0.1017973647,
-0.0734612197,
-0.2473594546,
-0.2527899742,
-0.1889767647,
-0.1428681165,
0.4407945275,
0.3197946846,
0.211081624,
-0.2233936638,
-0.105580464,
-0.3295323849,
0.088683337,
-0.0368406624,
0.0896121413,
0.1358521879,
-0.1247345805,
0.172672376,
0.2221594006,
0.4825520813,
0.0961527452,
-0.1107677892,
-0.0135591328,
0.1709890962,
-0.1279082298,
0.3795844316,
0.1518592685,
-0.1087808311,
-0.2579712868,
-0.0883319378,
0.0015153177,
-0.1207929701,
-0.0297297835,
0.275611043,
-0.0356957763,
-0.2073620558,
-0.2779882252,
0.2343327999,
-0.0254753903,
0.1139987707,
0.1716229469,
0.2811612785,
-0.1681225002,
0.2883463204,
0.3334228396,
0.6774013042,
-0.5055261254,
0.392016232,
0.4707365334,
-0.1107948944,
0.2089316845,
-0.1366588771,
0.3178486228,
-0.2395370752,
0.0199291483,
-0.208960548,
-0.1850182116,
0.2092849314,
0.4186440706,
-0.0276030153,
0.0813102573,
0.0485320091,
0.2109476328,
0.1919578761,
-0.0871063396,
0.1290740073,
-0.2450112849,
-0.0733687431,
0.0722153038,
-0.1949902773,
-0.3241555393,
-0.0126736648,
-0.2041718513,
-0.3422338068,
-0.0203463212,
-0.3445939124,
-0.1296944618,
-0.3006145954,
0.4228592813,
0.1384603977,
-0.494845897,
0.0487049296,
0.5728102326,
0.0256154183,
-0.3815948963,
-0.1450157613,
-0.3738673031,
-0.2349481732,
-0.220829159,
-0.0488312729,
-0.2558013201,
0.3040535748,
0.0156505108,
-0.0739734843,
0.1643841863,
-0.0304168034,
-0.3962723017,
-0.0108934641,
0.2503050566,
0.0972079039,
-0.2461634278,
-0.0253745131,
-0.188480258,
0.1446113586,
-0.0500296839,
0.0604319759,
-0.0965673923,
-0.0386192985,
0.2899437249,
-0.0460207313,
0.0774861723,
0.1257363558,
0.2239424735,
0.1179814935,
-0.303109467,
0.1812617183,
0.1092495471,
-0.3035008311,
-0.1538248658,
0.200455606,
0.5446792841,
-0.0663516447,
0.0234455206,
-0.3518612683,
-0.3031124771,
-0.0683958977,
0.1484073848,
0.3131949604,
0.1276942194,
-0.193395853,
-0.2029369771,
-0.263492465,
0.4287039042,
0.3794880211,
0.2747299671,
-0.0351036638,
0.2906458974,
-0.1598078907,
0.0051986482,
-0.2314177752,
-0.0259407163,
-0.0979492664,
0.2771213055,
-0.0215534586,
-0.3222761452,
-0.1066990271,
-0.109724015,
0.0815520287,
-0.0875353441,
-0.1162492931,
-0.1111932769,
0.0781163573,
0.1195415258,
0.1183833554,
-0.0039290525,
0.0257315673,
-0.4714915156,
-0.3264597952,
-0.2363395393,
0.0080075637,
0.4533225298,
-0.0041554831,
0.1654729843,
0.2998782694,
0.1157936156,
-0.0761753321,
-0.1688292623,
-0.1501286328,
-0.1383612603,
0.0050393939,
0.2183292657,
0.2484650016,
0.0066203624,
-0.2967951298,
0.131821692,
0.0704102367,
-0.0740278214,
0.3137461543,
-0.3049805462,
-0.0527508706,
-0.1453632414,
0.479377389,
-0.0544442385,
-0.3318729401,
0.0426694006,
0.1517039239,
0.0878730565,
-0.2129775882,
-0.3487566113,
0.1269569993,
0.03489675,
0.141035974,
0.5094712973,
0.3671323359,
0.1969042867,
0.1261758506,
-0.124760516,
0.3551175296,
-0.1337390244,
-0.1359170675,
0.3305074275,
-0.0477364771,
-0.0159559622,
0.2496729046,
0.0032822508,
0.2069056034,
0.5683192015,
-0.0471286289,
0.2942132652,
0.400782764,
0.1045907885,
-0.1734314263,
0.1579917371,
-0.0968308821,
-0.0942737907,
0.2389736176,
-0.1445456892,
-0.1482392699,
0.2099246532,
-0.1258607507,
-0.0203973353,
-0.110693261,
0.0989397019,
-0.2336274385,
0.1443286538,
0.0261037871,
0.0543616861,
-0.0992341116,
-0.187189132,
-0.0987327471,
-0.0773622468,
0.3327879906,
-0.0060647689,
0.1644571275,
0.0103617981,
0.1795241982,
0.4635999203,
0.0343804508,
-0.1801713407,
0.285169661,
0.3174893856,
-0.1626902521,
-0.0669268072,
0.0285956319,
0.2932971418,
0.2905934751,
0.0055147968,
0.0178470239,
-0.1586219072,
-0.1852165461,
-0.0713799968,
0.0422840454,
0.039218761,
0.2712654471,
0.2794286907,
0.0286644101,
-0.0653818324,
0.1784532368,
-0.0235881582,
0.0513590351,
-0.1432745457,
0.2960941792,
-0.1465901285,
-0.5235887766,
0.1866848022,
-0.3249722123,
-0.3480750918,
0.0296940319,
0.3392663598,
-0.0802816004,
0.2214087397,
0.2769949138,
0.0203872509,
0.1460018009,
0.4759074748,
0.0976116061,
0.3561216593,
-0.0767007321,
-0.0689725131,
-0.5012390018,
0.1398174316,
-0.4139973521,
0.0408433229,
0.2894043922,
0.172470808,
0.3225070238,
0.2895633578,
0.0376225337,
0.1403893381,
-0.0968749747,
0.3843568861,
-0.227028951,
-0.0645687953,
0.1950529814,
0.2118767649,
0.1090168133,
-0.2388570756,
0.3231710196,
0.2930503488,
0.0205491707,
-0.2603199482,
0.399215132,
-0.1971798539,
0.3074827492,
-0.0728126913,
-0.1389237344,
0.5194198489,
0.2293465137,
0.2214032412,
-0.1439769417,
0.0300036781,
-0.0908125937,
0.3211361468,
0.1461285353,
0.4942117333,
-0.4318765402,
-0.2108423263,
-0.054269366,
0.1428689063,
0.0246399418,
-0.0425274819,
-0.1893385351,
0.2584881186,
-0.220361799,
-0.014823135,
0.0579341687,
0.0337438956,
0.0794117376,
0.2195663452,
-0.2821285725,
-0.4187390506,
0.4235398173,
-0.1683391035,
-0.5067198277,
0.1799822003,
-0.2447524369,
0.1559958458,
0.1381159276,
-0.5674661994,
-0.1494413316,
0.2118354142,
-0.1582861692,
-0.2038371563,
-0.037570741,
-0.0058428571,
-0.1672921628,
-0.1489333361,
0.3547780812,
-0.1051542535,
-0.1671756208,
-0.4202931821,
-0.3254511356
] |
https://github.com/huggingface/datasets/issues/2078 | MemoryError when computing WER metric | Hi ! Thanks for reporting.
We're indeed using `jiwer` to compute the WER.
Maybe instead of calling `jiwer.wer` once for all the preditions/references we can compute the WER iteratively to avoid memory issues ? I'm not too familial with `jiwer` but this must be possible.
Currently the code to compute the WER is defined here:
https://github.com/huggingface/nlp/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/metrics/wer/wer.py#L93-L94 | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 56 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
Hi ! Thanks for reporting.
We're indeed using `jiwer` to compute the WER.
Maybe instead of calling `jiwer.wer` once for all the preditions/references we can compute the WER iteratively to avoid memory issues ? I'm not too familial with `jiwer` but this must be possible.
Currently the code to compute the WER is defined here:
https://github.com/huggingface/nlp/blob/349ac4398a3bcae6356f14c5754483383a60e8a4/metrics/wer/wer.py#L93-L94 | [
0.1249790788,
-0.2007294297,
0.0587180927,
0.3256507218,
0.4333938956,
0.0737892687,
-0.2180433869,
0.2950878441,
0.0288311616,
0.4309865832,
0.0965305269,
-0.0946349725,
-0.3058879375,
-0.5752209425,
-0.1799838245,
-0.3347721696,
-0.1305913329,
-0.06031394,
-0.0939676613,
0.2673475444,
-0.2414010912,
0.2181446254,
-0.3488658369,
0.1229336485,
-0.071733132,
-0.0110547058,
-0.1759235114,
0.1331793219,
-0.2212717235,
-0.5667486191,
0.3025927544,
-0.3079388738,
0.1904903352,
0.3594332337,
-0.000114279,
0.0282555223,
0.1901024282,
-0.1784470975,
-0.0109600835,
0.1174559817,
-0.1258536577,
-0.1865428388,
-0.1319401562,
-0.0092579871,
-0.0329882279,
0.0375668891,
0.1080690324,
-0.2880085707,
0.0632085875,
0.2449463159,
0.1992428899,
-0.0609457381,
0.2961236835,
-0.2295079976,
-0.1241088808,
-0.1905779988,
0.1977028698,
0.3163279891,
-0.270313561,
-0.1776360869,
-0.2714264989,
0.2580880225,
-0.0427770391,
0.2143144161,
0.093611598,
0.1157600954,
0.0853937864,
0.0110050663,
0.084766686,
-0.2555569708,
0.2671687603,
-0.3263042271,
-0.0301646926,
0.2048875242,
-0.1614336371,
-0.4275713265,
0.1660300493,
0.1187260672,
-0.5047883391,
0.0975699872,
-0.2040273696,
-0.1204809695,
-0.3942310214,
0.1254812777,
-0.0058267862,
0.0910322666,
-0.1965166926,
0.1057426631,
0.3368056118,
0.1566443592,
0.0604361035,
0.206969291,
-0.1233543754,
0.0125258602,
-0.3743090034,
-0.0881423578,
-0.0584864914,
-0.2326194048,
0.1580234468,
-0.5695323348,
0.5826600194,
-0.0841272101,
0.3524421155,
0.4458709955,
-0.2218322605,
0.8173156381,
-0.0972190648,
0.0790161937,
0.0414084867,
0.0784386545,
-0.1152931824,
-0.2438928932,
-0.0898667052,
-0.383959651,
0.2813352942,
0.1884754598,
-0.1235138476,
-0.1992421597,
-0.4400853515,
0.0639663637,
-0.0409356356,
0.1174830049,
0.1261954755,
0.3188080192,
0.1651473343,
0.4893711805,
0.3132434189,
0.0720731094,
-0.1783274114,
0.0621530339,
-0.2334482968,
0.2319100648,
-0.2242505401,
0.0308980197,
0.1252743304,
0.2297960371,
0.3616981506,
-0.2322329581,
0.2106763422,
-0.2574239671,
0.2766292989,
-0.110661,
0.0838679671,
0.2026334256,
-0.0995927826,
-0.0087282136,
0.2297708541,
0.2736264169,
0.0345626026,
0.1165988147,
-0.2128029466,
-0.2432081997,
0.3005087674,
0.1580394804,
-0.0586496703,
0.0679567158,
-0.0645575076,
-0.0057819411,
0.2805487514,
-0.0548927374,
-0.3401752114,
0.0868659616,
-0.7389820814,
-0.2600603998,
0.1528927982,
0.0060367137,
-0.1756755114,
0.0054640025,
0.2558611631,
-0.0120834839,
0.2422097176,
0.0330553316,
0.0680651218,
0.120666936,
-0.2044019848,
-0.1056602076,
0.3498839736,
-0.8443558216,
-0.151117146,
-0.0499686748,
-0.1328817904,
-0.0256580226,
0.2559598982,
-0.214623943,
0.1497690678,
0.1131593585,
0.3785306513,
-0.2864329219,
-0.179553628,
0.0241762027,
-0.1898522973,
-0.1139877588,
0.1790435612,
-0.1413313746,
0.3943665624,
0.0892047286,
0.1655685455,
0.1407640576,
0.2155863196,
-0.0274721719,
0.1473462284,
0.2670478523,
0.2488005012,
-0.6484075785,
0.306063503,
-0.0628644899,
0.1538831592,
0.1872506142,
-0.2421231568,
0.0660024881,
0.4159044921,
0.4293131828,
-0.1300990283,
0.0161141753,
0.0612439364,
-0.1678278446,
0.2202239633,
-0.0615800098,
0.306425035,
-0.2538881302,
-0.0041135624,
0.0725798607,
-0.3613114953,
-0.0806768388,
-0.0067584589,
-0.2327685058,
-0.1088711172,
-0.2220417261,
0.2936438918,
0.1907928288,
0.2006860077,
0.1718479693,
-0.2917717695,
0.35057199,
0.1063390374,
-0.0170481578,
0.1874938309,
0.188412413,
-0.1544377506,
-0.4010764956,
0.2174317241,
-0.028292438,
0.2030494064,
-0.1185925081,
0.236373648,
-0.1250064075,
0.0056332787,
0.3543412983,
0.0527255684,
0.3139891028,
0.1135732755,
0.2762681544,
0.1866981089,
0.143176347,
0.314013958,
-0.4340700805,
-0.2543807328,
-0.3894143105,
0.3616286218,
-0.3148320019,
0.3210273981,
0.1509767473,
-0.1433539093,
0.4951441884,
-0.1373814642,
-0.1780488193,
-0.077505514,
-0.3291460872,
0.4842243195,
0.0247816965,
0.062791869,
0.117373459,
-0.0368324816,
0.1472530961,
0.1195158213,
0.2113157064,
-0.1094560772,
-0.0626855344,
0.211215049,
-0.4670902789,
0.1594256312,
0.1257492006,
0.1019961089,
0.3387945294,
-0.2200199962,
-0.1152894944,
0.2674161196,
0.2180283517,
-0.1320872307,
-0.0435182713,
-0.0258649588,
-0.295453757,
-0.2042063326,
0.3511810303,
0.1040424332,
0.1294223666,
-0.0459423028,
0.2327174544,
0.2416961789,
0.4276041687,
0.211425826,
-0.0255016647,
-0.1811805665,
0.0590604618,
0.021860227,
-0.049709402,
0.1463518441,
0.0862489417,
-0.0498691946,
-0.0435710102,
-0.1804246008,
-0.0071559791,
-0.0013992516,
0.4104414582,
0.2205945998,
0.0727372617,
-0.2366647422,
-0.0322216973,
0.1743237674,
-0.2374213934,
-0.0384945907,
0.5531134009,
-0.0587109402,
0.0892806873,
-0.0565567687,
-0.1715921313,
-0.0936347991,
-0.3964666426,
-0.0207020193,
0.0413864627,
0.1471429467,
-0.1181745231,
0.1409464478,
0.224673003,
0.1708790809,
0.0079455078,
-0.2062764466,
-0.3394730091,
-0.0268057957,
-0.2306410223,
-0.1545539498,
0.0618930832,
0.0176210478,
0.6852976084,
0.1380213946,
-0.1405829489,
-0.4560716152,
0.0017371681,
-0.2098914385,
-0.0303753279,
-0.016083993,
0.2644731104,
-0.0626577586,
-0.1569624245,
-0.2842124104,
-0.0542895198,
0.2124325037,
0.1187747568,
-0.0273833647,
0.0317651369,
0.0322170332,
0.2830832601,
0.5209570527,
0.3953300118,
0.1029955149,
0.2838952839,
0.192132175,
0.0036796909,
0.0900347605,
-0.1075098813,
0.1794604808,
-0.10672535,
-0.1737585217,
0.1160284951,
0.07035923,
-0.1351751387,
-0.1973451078,
-0.0087810457,
0.0846388638,
-0.1840721071,
-0.0214703679,
-0.018806234,
0.5045294762,
0.0923849195,
0.0470352173,
-0.1606874913,
-0.3939408958,
0.1025608778,
-0.0459621698,
0.0670704544,
0.0099263974,
-0.0599402413,
-0.0090088956,
-0.7305295467,
0.2685510516,
0.1123602688,
0.4320124388,
-0.1020111814,
0.052287966,
-0.1586079299,
0.1142673939,
0.4286970198,
-0.064456977,
-0.1765279174,
0.0596212745,
0.0524649024,
-0.1683599353,
0.1471430361,
-0.1711662114,
-0.0384164564,
-0.2613120079,
-0.1168818325,
-0.0820595473,
0.0472741239,
-0.0062200837,
0.3131178021,
-0.1601983905,
-0.250049293,
-0.3472499251,
-0.1220529154,
0.0043927059,
-0.2169686407,
-0.1226404309,
0.089552328,
-0.2176416218,
0.2523512244,
0.0227336604,
-0.2952416837,
0.3482632339,
-0.1124059409,
0.1965743005,
-0.4322447181,
0.1332803667,
0.4644440413,
-0.2072871178,
-0.0170489382,
0.1137063652,
0.0695508569,
-0.281778872,
0.2407567799,
0.2017532587,
0.359578371,
0.0675774068,
-0.2912521362,
0.2509192824,
-0.0361823216,
0.0853484124,
-0.5771863461,
0.1801710427,
0.0886632502,
0.0613385774,
0.1381755471,
-0.0624363795,
0.2326970398,
0.0552652627,
-0.1369006336,
0.2892401218,
-0.0195217617,
-0.26961869,
0.2825178206,
0.2487515211,
0.7941434383,
-0.1485886574,
-0.0610653572,
0.4458683729,
0.0083941296,
-0.0881054997,
-0.2118183374,
0.5530893803,
-0.1516978145,
-0.0146359671,
0.087136358,
-0.223828733,
-0.0913899541,
-0.2526905537,
-0.2605431974,
0.6565311551,
0.0389121771,
-0.1428078711,
0.0865542665,
-0.0474397019,
-0.1187874079,
-0.246584639,
0.2222441286,
0.1842269301,
-0.1877064407,
-0.1484002471,
-0.0387456939,
0.0764234662,
0.0927676708,
-0.3213991523,
-0.2134755999,
0.0094133392,
-0.2341893464,
0.1229038909,
-0.2876665592,
0.1384743303,
-0.0338195339,
0.4129703045,
0.3505010009,
0.134785369,
-0.0439516902,
0.0642215014,
-0.1409432888,
0.0673819631,
0.0816785693,
0.1936233789,
-0.0772471353,
-0.042367477,
-0.2362022102,
0.3239810765,
0.0318995751,
-0.3035769463,
0.0209789574,
0.004149856,
-0.0676419735,
-0.0927415341,
-0.0991552323,
-0.1226341575,
-0.4054274857,
-0.1016838625,
0.166597724,
0.3358543217,
-0.6273185015,
0.3717975616,
0.0599584505,
-0.0581071302,
0.2039711624,
0.3034739196,
0.2402006239,
-0.3711031377,
0.5228540897,
-0.0703088492,
-0.0664503425,
-0.0849606395,
-0.3364023566,
-0.105775252,
0.0251234025,
0.1875853837,
0.2309448868,
0.0863212049,
-0.2148945332,
0.1295985281,
0.0714635625,
0.2860015333,
0.1478192359,
-0.3211325407,
-0.570501864,
0.1984287351,
-0.1343360096,
0.069769606,
-0.4777341783,
-0.2928740978,
-0.5433305502,
0.0197099689,
-0.2649723589,
0.1309407353,
-0.4698499143,
0.1528989822,
-0.0560232103,
-0.1072279587,
0.2412146181,
0.1662406176,
0.1316620409,
0.4861496687,
-0.1609186679,
-0.1148330718,
0.0130821392,
0.0763764381,
-0.0238653049,
-0.1037726104,
0.2343621552,
0.0766252279,
-0.1278422773,
-0.1201297343,
-0.1803637743,
0.272380054,
-0.2416996509,
0.0868963301,
-0.3836641312,
0.0731596127,
0.6001415253,
0.2037328333,
-0.0219241641,
0.2448607683,
0.061567992,
0.2490883321,
-0.1119028777,
-0.058346346,
0.2134887576,
0.1071448103,
-0.1107831299,
-0.243285954,
0.1940628886,
-0.2006396949,
-0.2309132814,
-0.1189454794,
0.225061968,
-0.1795278192,
-0.2697105408,
0.0512615219,
0.1457483768,
0.2108915001,
0.0513855442,
0.178945154,
-0.1412662864,
0.0825062916,
0.058263123,
0.2282674462,
0.1724423021,
-0.2710608244,
-0.0541157797,
-0.0430440344,
0.227781862,
-0.3114748001,
-0.1649620235,
-0.2481333017,
-0.0783554018,
-0.1232031584,
-0.1370625198,
-0.0019345861,
0.3038543761,
0.5290904045,
-0.2573441267,
0.4064503908,
-0.4600451589,
0.07677944,
-0.0782730654,
-0.3895432353,
-0.325919956,
0.3104047775,
0.0393802933,
0.313431114,
-0.3366589844,
0.1221516356,
0.131345585,
0.1683416665,
-0.1511763632,
-0.2036626786,
-0.1160733402,
0.0636430904,
0.1578115225,
-0.3073449731,
0.0246312171,
-0.0502911285,
0.3668286204,
-0.034252543,
0.3742721081,
0.0016253404,
-0.2236440331,
0.2601142228,
-0.0180127416,
0.5469639301,
0.0100534037,
-0.2832669616,
0.1146140918,
0.4181112945,
0.142642498,
0.1386208236,
0.2846040428,
0.4829082489,
0.3588484228,
-0.2767454982,
0.2184022069,
-0.1127003133,
-0.1293807328,
-0.0103219226,
0.2846420407,
0.2454686761,
-0.0023278361,
0.1850485355,
0.0348168164,
-0.0351408347,
-0.1497599334,
0.0099585056,
0.0568037033,
-0.222673133,
0.0570200309,
-0.2153232247,
0.0255850852,
-0.2253831327,
-0.0923115164,
-0.3778286576,
0.2275391668,
0.0091680847,
-0.1401444525,
0.2049318403,
0.0773807466,
0.0560774654,
-0.2662170529,
0.3642236292,
-0.0509139113,
0.2151641846,
-0.6167621017,
-0.2342030406,
-0.1764985323,
0.1513809264,
-0.1593511999,
0.4129827917,
-0.1397840083,
0.0939855054,
-0.1402535588,
-0.0286626872,
-0.067769058,
0.1230891496,
-0.1035883427,
0.2747891247,
-0.3578972518,
-0.2949353755,
0.2261707187,
-0.1421803087,
0.2543469071,
-0.4365846813,
-0.1602471769,
-0.233558774,
0.0107783824,
-0.0389848687,
0.4080347717,
-0.0949807614,
0.5220332146,
0.0629382282,
0.3354322612,
0.5877149105,
-0.0117937997,
-0.2971836925,
-0.109594956,
-0.178906247,
-0.2137202919,
-0.4510124624,
-0.0793375224,
0.5294623971,
-0.1782436371,
-0.295573473,
-0.292270422,
0.3045112789,
-0.0391484611,
-0.0277270395,
-0.1796135902,
0.3239206672,
-0.2037034184,
0.2875929475,
0.2503638268,
0.0669569001,
0.1562663913,
0.4125559628,
-0.3301568031,
-0.0906284973,
0.5843916535,
-0.1609608829,
-0.3511348367,
0.0949685574,
0.2776319087,
0.1976287067,
-0.3637202382,
-0.8314563036,
-0.0270134136,
0.2877660096,
0.2366386354,
-0.1023109928,
0.0471828394,
0.0729522556,
-0.0134905428,
0.2048302889,
-0.0837525129,
-0.1040182263,
-0.1719590873,
0.1146994233,
-0.1332052201
] |
https://github.com/huggingface/datasets/issues/2078 | MemoryError when computing WER metric | Hi,
I've just pushed a pull request that is related to this issue https://github.com/huggingface/datasets/pull/2169. It's not iterative, but it should avoid memory errors. It's based on the editdistance python library. An iterative implementation should be as easy as storing scores and words stepwise and dividing at the end. | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 48 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
Hi,
I've just pushed a pull request that is related to this issue https://github.com/huggingface/datasets/pull/2169. It's not iterative, but it should avoid memory errors. It's based on the editdistance python library. An iterative implementation should be as easy as storing scores and words stepwise and dividing at the end. | [
0.1249790788,
-0.2007294297,
0.0587180927,
0.3256507218,
0.4333938956,
0.0737892687,
-0.2180433869,
0.2950878441,
0.0288311616,
0.4309865832,
0.0965305269,
-0.0946349725,
-0.3058879375,
-0.5752209425,
-0.1799838245,
-0.3347721696,
-0.1305913329,
-0.06031394,
-0.0939676613,
0.2673475444,
-0.2414010912,
0.2181446254,
-0.3488658369,
0.1229336485,
-0.071733132,
-0.0110547058,
-0.1759235114,
0.1331793219,
-0.2212717235,
-0.5667486191,
0.3025927544,
-0.3079388738,
0.1904903352,
0.3594332337,
-0.000114279,
0.0282555223,
0.1901024282,
-0.1784470975,
-0.0109600835,
0.1174559817,
-0.1258536577,
-0.1865428388,
-0.1319401562,
-0.0092579871,
-0.0329882279,
0.0375668891,
0.1080690324,
-0.2880085707,
0.0632085875,
0.2449463159,
0.1992428899,
-0.0609457381,
0.2961236835,
-0.2295079976,
-0.1241088808,
-0.1905779988,
0.1977028698,
0.3163279891,
-0.270313561,
-0.1776360869,
-0.2714264989,
0.2580880225,
-0.0427770391,
0.2143144161,
0.093611598,
0.1157600954,
0.0853937864,
0.0110050663,
0.084766686,
-0.2555569708,
0.2671687603,
-0.3263042271,
-0.0301646926,
0.2048875242,
-0.1614336371,
-0.4275713265,
0.1660300493,
0.1187260672,
-0.5047883391,
0.0975699872,
-0.2040273696,
-0.1204809695,
-0.3942310214,
0.1254812777,
-0.0058267862,
0.0910322666,
-0.1965166926,
0.1057426631,
0.3368056118,
0.1566443592,
0.0604361035,
0.206969291,
-0.1233543754,
0.0125258602,
-0.3743090034,
-0.0881423578,
-0.0584864914,
-0.2326194048,
0.1580234468,
-0.5695323348,
0.5826600194,
-0.0841272101,
0.3524421155,
0.4458709955,
-0.2218322605,
0.8173156381,
-0.0972190648,
0.0790161937,
0.0414084867,
0.0784386545,
-0.1152931824,
-0.2438928932,
-0.0898667052,
-0.383959651,
0.2813352942,
0.1884754598,
-0.1235138476,
-0.1992421597,
-0.4400853515,
0.0639663637,
-0.0409356356,
0.1174830049,
0.1261954755,
0.3188080192,
0.1651473343,
0.4893711805,
0.3132434189,
0.0720731094,
-0.1783274114,
0.0621530339,
-0.2334482968,
0.2319100648,
-0.2242505401,
0.0308980197,
0.1252743304,
0.2297960371,
0.3616981506,
-0.2322329581,
0.2106763422,
-0.2574239671,
0.2766292989,
-0.110661,
0.0838679671,
0.2026334256,
-0.0995927826,
-0.0087282136,
0.2297708541,
0.2736264169,
0.0345626026,
0.1165988147,
-0.2128029466,
-0.2432081997,
0.3005087674,
0.1580394804,
-0.0586496703,
0.0679567158,
-0.0645575076,
-0.0057819411,
0.2805487514,
-0.0548927374,
-0.3401752114,
0.0868659616,
-0.7389820814,
-0.2600603998,
0.1528927982,
0.0060367137,
-0.1756755114,
0.0054640025,
0.2558611631,
-0.0120834839,
0.2422097176,
0.0330553316,
0.0680651218,
0.120666936,
-0.2044019848,
-0.1056602076,
0.3498839736,
-0.8443558216,
-0.151117146,
-0.0499686748,
-0.1328817904,
-0.0256580226,
0.2559598982,
-0.214623943,
0.1497690678,
0.1131593585,
0.3785306513,
-0.2864329219,
-0.179553628,
0.0241762027,
-0.1898522973,
-0.1139877588,
0.1790435612,
-0.1413313746,
0.3943665624,
0.0892047286,
0.1655685455,
0.1407640576,
0.2155863196,
-0.0274721719,
0.1473462284,
0.2670478523,
0.2488005012,
-0.6484075785,
0.306063503,
-0.0628644899,
0.1538831592,
0.1872506142,
-0.2421231568,
0.0660024881,
0.4159044921,
0.4293131828,
-0.1300990283,
0.0161141753,
0.0612439364,
-0.1678278446,
0.2202239633,
-0.0615800098,
0.306425035,
-0.2538881302,
-0.0041135624,
0.0725798607,
-0.3613114953,
-0.0806768388,
-0.0067584589,
-0.2327685058,
-0.1088711172,
-0.2220417261,
0.2936438918,
0.1907928288,
0.2006860077,
0.1718479693,
-0.2917717695,
0.35057199,
0.1063390374,
-0.0170481578,
0.1874938309,
0.188412413,
-0.1544377506,
-0.4010764956,
0.2174317241,
-0.028292438,
0.2030494064,
-0.1185925081,
0.236373648,
-0.1250064075,
0.0056332787,
0.3543412983,
0.0527255684,
0.3139891028,
0.1135732755,
0.2762681544,
0.1866981089,
0.143176347,
0.314013958,
-0.4340700805,
-0.2543807328,
-0.3894143105,
0.3616286218,
-0.3148320019,
0.3210273981,
0.1509767473,
-0.1433539093,
0.4951441884,
-0.1373814642,
-0.1780488193,
-0.077505514,
-0.3291460872,
0.4842243195,
0.0247816965,
0.062791869,
0.117373459,
-0.0368324816,
0.1472530961,
0.1195158213,
0.2113157064,
-0.1094560772,
-0.0626855344,
0.211215049,
-0.4670902789,
0.1594256312,
0.1257492006,
0.1019961089,
0.3387945294,
-0.2200199962,
-0.1152894944,
0.2674161196,
0.2180283517,
-0.1320872307,
-0.0435182713,
-0.0258649588,
-0.295453757,
-0.2042063326,
0.3511810303,
0.1040424332,
0.1294223666,
-0.0459423028,
0.2327174544,
0.2416961789,
0.4276041687,
0.211425826,
-0.0255016647,
-0.1811805665,
0.0590604618,
0.021860227,
-0.049709402,
0.1463518441,
0.0862489417,
-0.0498691946,
-0.0435710102,
-0.1804246008,
-0.0071559791,
-0.0013992516,
0.4104414582,
0.2205945998,
0.0727372617,
-0.2366647422,
-0.0322216973,
0.1743237674,
-0.2374213934,
-0.0384945907,
0.5531134009,
-0.0587109402,
0.0892806873,
-0.0565567687,
-0.1715921313,
-0.0936347991,
-0.3964666426,
-0.0207020193,
0.0413864627,
0.1471429467,
-0.1181745231,
0.1409464478,
0.224673003,
0.1708790809,
0.0079455078,
-0.2062764466,
-0.3394730091,
-0.0268057957,
-0.2306410223,
-0.1545539498,
0.0618930832,
0.0176210478,
0.6852976084,
0.1380213946,
-0.1405829489,
-0.4560716152,
0.0017371681,
-0.2098914385,
-0.0303753279,
-0.016083993,
0.2644731104,
-0.0626577586,
-0.1569624245,
-0.2842124104,
-0.0542895198,
0.2124325037,
0.1187747568,
-0.0273833647,
0.0317651369,
0.0322170332,
0.2830832601,
0.5209570527,
0.3953300118,
0.1029955149,
0.2838952839,
0.192132175,
0.0036796909,
0.0900347605,
-0.1075098813,
0.1794604808,
-0.10672535,
-0.1737585217,
0.1160284951,
0.07035923,
-0.1351751387,
-0.1973451078,
-0.0087810457,
0.0846388638,
-0.1840721071,
-0.0214703679,
-0.018806234,
0.5045294762,
0.0923849195,
0.0470352173,
-0.1606874913,
-0.3939408958,
0.1025608778,
-0.0459621698,
0.0670704544,
0.0099263974,
-0.0599402413,
-0.0090088956,
-0.7305295467,
0.2685510516,
0.1123602688,
0.4320124388,
-0.1020111814,
0.052287966,
-0.1586079299,
0.1142673939,
0.4286970198,
-0.064456977,
-0.1765279174,
0.0596212745,
0.0524649024,
-0.1683599353,
0.1471430361,
-0.1711662114,
-0.0384164564,
-0.2613120079,
-0.1168818325,
-0.0820595473,
0.0472741239,
-0.0062200837,
0.3131178021,
-0.1601983905,
-0.250049293,
-0.3472499251,
-0.1220529154,
0.0043927059,
-0.2169686407,
-0.1226404309,
0.089552328,
-0.2176416218,
0.2523512244,
0.0227336604,
-0.2952416837,
0.3482632339,
-0.1124059409,
0.1965743005,
-0.4322447181,
0.1332803667,
0.4644440413,
-0.2072871178,
-0.0170489382,
0.1137063652,
0.0695508569,
-0.281778872,
0.2407567799,
0.2017532587,
0.359578371,
0.0675774068,
-0.2912521362,
0.2509192824,
-0.0361823216,
0.0853484124,
-0.5771863461,
0.1801710427,
0.0886632502,
0.0613385774,
0.1381755471,
-0.0624363795,
0.2326970398,
0.0552652627,
-0.1369006336,
0.2892401218,
-0.0195217617,
-0.26961869,
0.2825178206,
0.2487515211,
0.7941434383,
-0.1485886574,
-0.0610653572,
0.4458683729,
0.0083941296,
-0.0881054997,
-0.2118183374,
0.5530893803,
-0.1516978145,
-0.0146359671,
0.087136358,
-0.223828733,
-0.0913899541,
-0.2526905537,
-0.2605431974,
0.6565311551,
0.0389121771,
-0.1428078711,
0.0865542665,
-0.0474397019,
-0.1187874079,
-0.246584639,
0.2222441286,
0.1842269301,
-0.1877064407,
-0.1484002471,
-0.0387456939,
0.0764234662,
0.0927676708,
-0.3213991523,
-0.2134755999,
0.0094133392,
-0.2341893464,
0.1229038909,
-0.2876665592,
0.1384743303,
-0.0338195339,
0.4129703045,
0.3505010009,
0.134785369,
-0.0439516902,
0.0642215014,
-0.1409432888,
0.0673819631,
0.0816785693,
0.1936233789,
-0.0772471353,
-0.042367477,
-0.2362022102,
0.3239810765,
0.0318995751,
-0.3035769463,
0.0209789574,
0.004149856,
-0.0676419735,
-0.0927415341,
-0.0991552323,
-0.1226341575,
-0.4054274857,
-0.1016838625,
0.166597724,
0.3358543217,
-0.6273185015,
0.3717975616,
0.0599584505,
-0.0581071302,
0.2039711624,
0.3034739196,
0.2402006239,
-0.3711031377,
0.5228540897,
-0.0703088492,
-0.0664503425,
-0.0849606395,
-0.3364023566,
-0.105775252,
0.0251234025,
0.1875853837,
0.2309448868,
0.0863212049,
-0.2148945332,
0.1295985281,
0.0714635625,
0.2860015333,
0.1478192359,
-0.3211325407,
-0.570501864,
0.1984287351,
-0.1343360096,
0.069769606,
-0.4777341783,
-0.2928740978,
-0.5433305502,
0.0197099689,
-0.2649723589,
0.1309407353,
-0.4698499143,
0.1528989822,
-0.0560232103,
-0.1072279587,
0.2412146181,
0.1662406176,
0.1316620409,
0.4861496687,
-0.1609186679,
-0.1148330718,
0.0130821392,
0.0763764381,
-0.0238653049,
-0.1037726104,
0.2343621552,
0.0766252279,
-0.1278422773,
-0.1201297343,
-0.1803637743,
0.272380054,
-0.2416996509,
0.0868963301,
-0.3836641312,
0.0731596127,
0.6001415253,
0.2037328333,
-0.0219241641,
0.2448607683,
0.061567992,
0.2490883321,
-0.1119028777,
-0.058346346,
0.2134887576,
0.1071448103,
-0.1107831299,
-0.243285954,
0.1940628886,
-0.2006396949,
-0.2309132814,
-0.1189454794,
0.225061968,
-0.1795278192,
-0.2697105408,
0.0512615219,
0.1457483768,
0.2108915001,
0.0513855442,
0.178945154,
-0.1412662864,
0.0825062916,
0.058263123,
0.2282674462,
0.1724423021,
-0.2710608244,
-0.0541157797,
-0.0430440344,
0.227781862,
-0.3114748001,
-0.1649620235,
-0.2481333017,
-0.0783554018,
-0.1232031584,
-0.1370625198,
-0.0019345861,
0.3038543761,
0.5290904045,
-0.2573441267,
0.4064503908,
-0.4600451589,
0.07677944,
-0.0782730654,
-0.3895432353,
-0.325919956,
0.3104047775,
0.0393802933,
0.313431114,
-0.3366589844,
0.1221516356,
0.131345585,
0.1683416665,
-0.1511763632,
-0.2036626786,
-0.1160733402,
0.0636430904,
0.1578115225,
-0.3073449731,
0.0246312171,
-0.0502911285,
0.3668286204,
-0.034252543,
0.3742721081,
0.0016253404,
-0.2236440331,
0.2601142228,
-0.0180127416,
0.5469639301,
0.0100534037,
-0.2832669616,
0.1146140918,
0.4181112945,
0.142642498,
0.1386208236,
0.2846040428,
0.4829082489,
0.3588484228,
-0.2767454982,
0.2184022069,
-0.1127003133,
-0.1293807328,
-0.0103219226,
0.2846420407,
0.2454686761,
-0.0023278361,
0.1850485355,
0.0348168164,
-0.0351408347,
-0.1497599334,
0.0099585056,
0.0568037033,
-0.222673133,
0.0570200309,
-0.2153232247,
0.0255850852,
-0.2253831327,
-0.0923115164,
-0.3778286576,
0.2275391668,
0.0091680847,
-0.1401444525,
0.2049318403,
0.0773807466,
0.0560774654,
-0.2662170529,
0.3642236292,
-0.0509139113,
0.2151641846,
-0.6167621017,
-0.2342030406,
-0.1764985323,
0.1513809264,
-0.1593511999,
0.4129827917,
-0.1397840083,
0.0939855054,
-0.1402535588,
-0.0286626872,
-0.067769058,
0.1230891496,
-0.1035883427,
0.2747891247,
-0.3578972518,
-0.2949353755,
0.2261707187,
-0.1421803087,
0.2543469071,
-0.4365846813,
-0.1602471769,
-0.233558774,
0.0107783824,
-0.0389848687,
0.4080347717,
-0.0949807614,
0.5220332146,
0.0629382282,
0.3354322612,
0.5877149105,
-0.0117937997,
-0.2971836925,
-0.109594956,
-0.178906247,
-0.2137202919,
-0.4510124624,
-0.0793375224,
0.5294623971,
-0.1782436371,
-0.295573473,
-0.292270422,
0.3045112789,
-0.0391484611,
-0.0277270395,
-0.1796135902,
0.3239206672,
-0.2037034184,
0.2875929475,
0.2503638268,
0.0669569001,
0.1562663913,
0.4125559628,
-0.3301568031,
-0.0906284973,
0.5843916535,
-0.1609608829,
-0.3511348367,
0.0949685574,
0.2776319087,
0.1976287067,
-0.3637202382,
-0.8314563036,
-0.0270134136,
0.2877660096,
0.2366386354,
-0.1023109928,
0.0471828394,
0.0729522556,
-0.0134905428,
0.2048302889,
-0.0837525129,
-0.1040182263,
-0.1719590873,
0.1146994233,
-0.1332052201
] |
https://github.com/huggingface/datasets/issues/2078 | MemoryError when computing WER metric | I see, this was solved by other thread. Ok, let me know if you want to switch the implementation for any reason :) | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 23 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
I see, this was solved by other thread. Ok, let me know if you want to switch the implementation for any reason :) | [
0.1249790788,
-0.2007294297,
0.0587180927,
0.3256507218,
0.4333938956,
0.0737892687,
-0.2180433869,
0.2950878441,
0.0288311616,
0.4309865832,
0.0965305269,
-0.0946349725,
-0.3058879375,
-0.5752209425,
-0.1799838245,
-0.3347721696,
-0.1305913329,
-0.06031394,
-0.0939676613,
0.2673475444,
-0.2414010912,
0.2181446254,
-0.3488658369,
0.1229336485,
-0.071733132,
-0.0110547058,
-0.1759235114,
0.1331793219,
-0.2212717235,
-0.5667486191,
0.3025927544,
-0.3079388738,
0.1904903352,
0.3594332337,
-0.000114279,
0.0282555223,
0.1901024282,
-0.1784470975,
-0.0109600835,
0.1174559817,
-0.1258536577,
-0.1865428388,
-0.1319401562,
-0.0092579871,
-0.0329882279,
0.0375668891,
0.1080690324,
-0.2880085707,
0.0632085875,
0.2449463159,
0.1992428899,
-0.0609457381,
0.2961236835,
-0.2295079976,
-0.1241088808,
-0.1905779988,
0.1977028698,
0.3163279891,
-0.270313561,
-0.1776360869,
-0.2714264989,
0.2580880225,
-0.0427770391,
0.2143144161,
0.093611598,
0.1157600954,
0.0853937864,
0.0110050663,
0.084766686,
-0.2555569708,
0.2671687603,
-0.3263042271,
-0.0301646926,
0.2048875242,
-0.1614336371,
-0.4275713265,
0.1660300493,
0.1187260672,
-0.5047883391,
0.0975699872,
-0.2040273696,
-0.1204809695,
-0.3942310214,
0.1254812777,
-0.0058267862,
0.0910322666,
-0.1965166926,
0.1057426631,
0.3368056118,
0.1566443592,
0.0604361035,
0.206969291,
-0.1233543754,
0.0125258602,
-0.3743090034,
-0.0881423578,
-0.0584864914,
-0.2326194048,
0.1580234468,
-0.5695323348,
0.5826600194,
-0.0841272101,
0.3524421155,
0.4458709955,
-0.2218322605,
0.8173156381,
-0.0972190648,
0.0790161937,
0.0414084867,
0.0784386545,
-0.1152931824,
-0.2438928932,
-0.0898667052,
-0.383959651,
0.2813352942,
0.1884754598,
-0.1235138476,
-0.1992421597,
-0.4400853515,
0.0639663637,
-0.0409356356,
0.1174830049,
0.1261954755,
0.3188080192,
0.1651473343,
0.4893711805,
0.3132434189,
0.0720731094,
-0.1783274114,
0.0621530339,
-0.2334482968,
0.2319100648,
-0.2242505401,
0.0308980197,
0.1252743304,
0.2297960371,
0.3616981506,
-0.2322329581,
0.2106763422,
-0.2574239671,
0.2766292989,
-0.110661,
0.0838679671,
0.2026334256,
-0.0995927826,
-0.0087282136,
0.2297708541,
0.2736264169,
0.0345626026,
0.1165988147,
-0.2128029466,
-0.2432081997,
0.3005087674,
0.1580394804,
-0.0586496703,
0.0679567158,
-0.0645575076,
-0.0057819411,
0.2805487514,
-0.0548927374,
-0.3401752114,
0.0868659616,
-0.7389820814,
-0.2600603998,
0.1528927982,
0.0060367137,
-0.1756755114,
0.0054640025,
0.2558611631,
-0.0120834839,
0.2422097176,
0.0330553316,
0.0680651218,
0.120666936,
-0.2044019848,
-0.1056602076,
0.3498839736,
-0.8443558216,
-0.151117146,
-0.0499686748,
-0.1328817904,
-0.0256580226,
0.2559598982,
-0.214623943,
0.1497690678,
0.1131593585,
0.3785306513,
-0.2864329219,
-0.179553628,
0.0241762027,
-0.1898522973,
-0.1139877588,
0.1790435612,
-0.1413313746,
0.3943665624,
0.0892047286,
0.1655685455,
0.1407640576,
0.2155863196,
-0.0274721719,
0.1473462284,
0.2670478523,
0.2488005012,
-0.6484075785,
0.306063503,
-0.0628644899,
0.1538831592,
0.1872506142,
-0.2421231568,
0.0660024881,
0.4159044921,
0.4293131828,
-0.1300990283,
0.0161141753,
0.0612439364,
-0.1678278446,
0.2202239633,
-0.0615800098,
0.306425035,
-0.2538881302,
-0.0041135624,
0.0725798607,
-0.3613114953,
-0.0806768388,
-0.0067584589,
-0.2327685058,
-0.1088711172,
-0.2220417261,
0.2936438918,
0.1907928288,
0.2006860077,
0.1718479693,
-0.2917717695,
0.35057199,
0.1063390374,
-0.0170481578,
0.1874938309,
0.188412413,
-0.1544377506,
-0.4010764956,
0.2174317241,
-0.028292438,
0.2030494064,
-0.1185925081,
0.236373648,
-0.1250064075,
0.0056332787,
0.3543412983,
0.0527255684,
0.3139891028,
0.1135732755,
0.2762681544,
0.1866981089,
0.143176347,
0.314013958,
-0.4340700805,
-0.2543807328,
-0.3894143105,
0.3616286218,
-0.3148320019,
0.3210273981,
0.1509767473,
-0.1433539093,
0.4951441884,
-0.1373814642,
-0.1780488193,
-0.077505514,
-0.3291460872,
0.4842243195,
0.0247816965,
0.062791869,
0.117373459,
-0.0368324816,
0.1472530961,
0.1195158213,
0.2113157064,
-0.1094560772,
-0.0626855344,
0.211215049,
-0.4670902789,
0.1594256312,
0.1257492006,
0.1019961089,
0.3387945294,
-0.2200199962,
-0.1152894944,
0.2674161196,
0.2180283517,
-0.1320872307,
-0.0435182713,
-0.0258649588,
-0.295453757,
-0.2042063326,
0.3511810303,
0.1040424332,
0.1294223666,
-0.0459423028,
0.2327174544,
0.2416961789,
0.4276041687,
0.211425826,
-0.0255016647,
-0.1811805665,
0.0590604618,
0.021860227,
-0.049709402,
0.1463518441,
0.0862489417,
-0.0498691946,
-0.0435710102,
-0.1804246008,
-0.0071559791,
-0.0013992516,
0.4104414582,
0.2205945998,
0.0727372617,
-0.2366647422,
-0.0322216973,
0.1743237674,
-0.2374213934,
-0.0384945907,
0.5531134009,
-0.0587109402,
0.0892806873,
-0.0565567687,
-0.1715921313,
-0.0936347991,
-0.3964666426,
-0.0207020193,
0.0413864627,
0.1471429467,
-0.1181745231,
0.1409464478,
0.224673003,
0.1708790809,
0.0079455078,
-0.2062764466,
-0.3394730091,
-0.0268057957,
-0.2306410223,
-0.1545539498,
0.0618930832,
0.0176210478,
0.6852976084,
0.1380213946,
-0.1405829489,
-0.4560716152,
0.0017371681,
-0.2098914385,
-0.0303753279,
-0.016083993,
0.2644731104,
-0.0626577586,
-0.1569624245,
-0.2842124104,
-0.0542895198,
0.2124325037,
0.1187747568,
-0.0273833647,
0.0317651369,
0.0322170332,
0.2830832601,
0.5209570527,
0.3953300118,
0.1029955149,
0.2838952839,
0.192132175,
0.0036796909,
0.0900347605,
-0.1075098813,
0.1794604808,
-0.10672535,
-0.1737585217,
0.1160284951,
0.07035923,
-0.1351751387,
-0.1973451078,
-0.0087810457,
0.0846388638,
-0.1840721071,
-0.0214703679,
-0.018806234,
0.5045294762,
0.0923849195,
0.0470352173,
-0.1606874913,
-0.3939408958,
0.1025608778,
-0.0459621698,
0.0670704544,
0.0099263974,
-0.0599402413,
-0.0090088956,
-0.7305295467,
0.2685510516,
0.1123602688,
0.4320124388,
-0.1020111814,
0.052287966,
-0.1586079299,
0.1142673939,
0.4286970198,
-0.064456977,
-0.1765279174,
0.0596212745,
0.0524649024,
-0.1683599353,
0.1471430361,
-0.1711662114,
-0.0384164564,
-0.2613120079,
-0.1168818325,
-0.0820595473,
0.0472741239,
-0.0062200837,
0.3131178021,
-0.1601983905,
-0.250049293,
-0.3472499251,
-0.1220529154,
0.0043927059,
-0.2169686407,
-0.1226404309,
0.089552328,
-0.2176416218,
0.2523512244,
0.0227336604,
-0.2952416837,
0.3482632339,
-0.1124059409,
0.1965743005,
-0.4322447181,
0.1332803667,
0.4644440413,
-0.2072871178,
-0.0170489382,
0.1137063652,
0.0695508569,
-0.281778872,
0.2407567799,
0.2017532587,
0.359578371,
0.0675774068,
-0.2912521362,
0.2509192824,
-0.0361823216,
0.0853484124,
-0.5771863461,
0.1801710427,
0.0886632502,
0.0613385774,
0.1381755471,
-0.0624363795,
0.2326970398,
0.0552652627,
-0.1369006336,
0.2892401218,
-0.0195217617,
-0.26961869,
0.2825178206,
0.2487515211,
0.7941434383,
-0.1485886574,
-0.0610653572,
0.4458683729,
0.0083941296,
-0.0881054997,
-0.2118183374,
0.5530893803,
-0.1516978145,
-0.0146359671,
0.087136358,
-0.223828733,
-0.0913899541,
-0.2526905537,
-0.2605431974,
0.6565311551,
0.0389121771,
-0.1428078711,
0.0865542665,
-0.0474397019,
-0.1187874079,
-0.246584639,
0.2222441286,
0.1842269301,
-0.1877064407,
-0.1484002471,
-0.0387456939,
0.0764234662,
0.0927676708,
-0.3213991523,
-0.2134755999,
0.0094133392,
-0.2341893464,
0.1229038909,
-0.2876665592,
0.1384743303,
-0.0338195339,
0.4129703045,
0.3505010009,
0.134785369,
-0.0439516902,
0.0642215014,
-0.1409432888,
0.0673819631,
0.0816785693,
0.1936233789,
-0.0772471353,
-0.042367477,
-0.2362022102,
0.3239810765,
0.0318995751,
-0.3035769463,
0.0209789574,
0.004149856,
-0.0676419735,
-0.0927415341,
-0.0991552323,
-0.1226341575,
-0.4054274857,
-0.1016838625,
0.166597724,
0.3358543217,
-0.6273185015,
0.3717975616,
0.0599584505,
-0.0581071302,
0.2039711624,
0.3034739196,
0.2402006239,
-0.3711031377,
0.5228540897,
-0.0703088492,
-0.0664503425,
-0.0849606395,
-0.3364023566,
-0.105775252,
0.0251234025,
0.1875853837,
0.2309448868,
0.0863212049,
-0.2148945332,
0.1295985281,
0.0714635625,
0.2860015333,
0.1478192359,
-0.3211325407,
-0.570501864,
0.1984287351,
-0.1343360096,
0.069769606,
-0.4777341783,
-0.2928740978,
-0.5433305502,
0.0197099689,
-0.2649723589,
0.1309407353,
-0.4698499143,
0.1528989822,
-0.0560232103,
-0.1072279587,
0.2412146181,
0.1662406176,
0.1316620409,
0.4861496687,
-0.1609186679,
-0.1148330718,
0.0130821392,
0.0763764381,
-0.0238653049,
-0.1037726104,
0.2343621552,
0.0766252279,
-0.1278422773,
-0.1201297343,
-0.1803637743,
0.272380054,
-0.2416996509,
0.0868963301,
-0.3836641312,
0.0731596127,
0.6001415253,
0.2037328333,
-0.0219241641,
0.2448607683,
0.061567992,
0.2490883321,
-0.1119028777,
-0.058346346,
0.2134887576,
0.1071448103,
-0.1107831299,
-0.243285954,
0.1940628886,
-0.2006396949,
-0.2309132814,
-0.1189454794,
0.225061968,
-0.1795278192,
-0.2697105408,
0.0512615219,
0.1457483768,
0.2108915001,
0.0513855442,
0.178945154,
-0.1412662864,
0.0825062916,
0.058263123,
0.2282674462,
0.1724423021,
-0.2710608244,
-0.0541157797,
-0.0430440344,
0.227781862,
-0.3114748001,
-0.1649620235,
-0.2481333017,
-0.0783554018,
-0.1232031584,
-0.1370625198,
-0.0019345861,
0.3038543761,
0.5290904045,
-0.2573441267,
0.4064503908,
-0.4600451589,
0.07677944,
-0.0782730654,
-0.3895432353,
-0.325919956,
0.3104047775,
0.0393802933,
0.313431114,
-0.3366589844,
0.1221516356,
0.131345585,
0.1683416665,
-0.1511763632,
-0.2036626786,
-0.1160733402,
0.0636430904,
0.1578115225,
-0.3073449731,
0.0246312171,
-0.0502911285,
0.3668286204,
-0.034252543,
0.3742721081,
0.0016253404,
-0.2236440331,
0.2601142228,
-0.0180127416,
0.5469639301,
0.0100534037,
-0.2832669616,
0.1146140918,
0.4181112945,
0.142642498,
0.1386208236,
0.2846040428,
0.4829082489,
0.3588484228,
-0.2767454982,
0.2184022069,
-0.1127003133,
-0.1293807328,
-0.0103219226,
0.2846420407,
0.2454686761,
-0.0023278361,
0.1850485355,
0.0348168164,
-0.0351408347,
-0.1497599334,
0.0099585056,
0.0568037033,
-0.222673133,
0.0570200309,
-0.2153232247,
0.0255850852,
-0.2253831327,
-0.0923115164,
-0.3778286576,
0.2275391668,
0.0091680847,
-0.1401444525,
0.2049318403,
0.0773807466,
0.0560774654,
-0.2662170529,
0.3642236292,
-0.0509139113,
0.2151641846,
-0.6167621017,
-0.2342030406,
-0.1764985323,
0.1513809264,
-0.1593511999,
0.4129827917,
-0.1397840083,
0.0939855054,
-0.1402535588,
-0.0286626872,
-0.067769058,
0.1230891496,
-0.1035883427,
0.2747891247,
-0.3578972518,
-0.2949353755,
0.2261707187,
-0.1421803087,
0.2543469071,
-0.4365846813,
-0.1602471769,
-0.233558774,
0.0107783824,
-0.0389848687,
0.4080347717,
-0.0949807614,
0.5220332146,
0.0629382282,
0.3354322612,
0.5877149105,
-0.0117937997,
-0.2971836925,
-0.109594956,
-0.178906247,
-0.2137202919,
-0.4510124624,
-0.0793375224,
0.5294623971,
-0.1782436371,
-0.295573473,
-0.292270422,
0.3045112789,
-0.0391484611,
-0.0277270395,
-0.1796135902,
0.3239206672,
-0.2037034184,
0.2875929475,
0.2503638268,
0.0669569001,
0.1562663913,
0.4125559628,
-0.3301568031,
-0.0906284973,
0.5843916535,
-0.1609608829,
-0.3511348367,
0.0949685574,
0.2776319087,
0.1976287067,
-0.3637202382,
-0.8314563036,
-0.0270134136,
0.2877660096,
0.2366386354,
-0.1023109928,
0.0471828394,
0.0729522556,
-0.0134905428,
0.2048302889,
-0.0837525129,
-0.1040182263,
-0.1719590873,
0.1146994233,
-0.1332052201
] |
https://github.com/huggingface/datasets/issues/2078 | MemoryError when computing WER metric | Thanks for diving into this anyway ^^'
As you said this actually got solved a few days ago | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 18 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
Thanks for diving into this anyway ^^'
As you said this actually got solved a few days ago | [
0.1249790788,
-0.2007294297,
0.0587180927,
0.3256507218,
0.4333938956,
0.0737892687,
-0.2180433869,
0.2950878441,
0.0288311616,
0.4309865832,
0.0965305269,
-0.0946349725,
-0.3058879375,
-0.5752209425,
-0.1799838245,
-0.3347721696,
-0.1305913329,
-0.06031394,
-0.0939676613,
0.2673475444,
-0.2414010912,
0.2181446254,
-0.3488658369,
0.1229336485,
-0.071733132,
-0.0110547058,
-0.1759235114,
0.1331793219,
-0.2212717235,
-0.5667486191,
0.3025927544,
-0.3079388738,
0.1904903352,
0.3594332337,
-0.000114279,
0.0282555223,
0.1901024282,
-0.1784470975,
-0.0109600835,
0.1174559817,
-0.1258536577,
-0.1865428388,
-0.1319401562,
-0.0092579871,
-0.0329882279,
0.0375668891,
0.1080690324,
-0.2880085707,
0.0632085875,
0.2449463159,
0.1992428899,
-0.0609457381,
0.2961236835,
-0.2295079976,
-0.1241088808,
-0.1905779988,
0.1977028698,
0.3163279891,
-0.270313561,
-0.1776360869,
-0.2714264989,
0.2580880225,
-0.0427770391,
0.2143144161,
0.093611598,
0.1157600954,
0.0853937864,
0.0110050663,
0.084766686,
-0.2555569708,
0.2671687603,
-0.3263042271,
-0.0301646926,
0.2048875242,
-0.1614336371,
-0.4275713265,
0.1660300493,
0.1187260672,
-0.5047883391,
0.0975699872,
-0.2040273696,
-0.1204809695,
-0.3942310214,
0.1254812777,
-0.0058267862,
0.0910322666,
-0.1965166926,
0.1057426631,
0.3368056118,
0.1566443592,
0.0604361035,
0.206969291,
-0.1233543754,
0.0125258602,
-0.3743090034,
-0.0881423578,
-0.0584864914,
-0.2326194048,
0.1580234468,
-0.5695323348,
0.5826600194,
-0.0841272101,
0.3524421155,
0.4458709955,
-0.2218322605,
0.8173156381,
-0.0972190648,
0.0790161937,
0.0414084867,
0.0784386545,
-0.1152931824,
-0.2438928932,
-0.0898667052,
-0.383959651,
0.2813352942,
0.1884754598,
-0.1235138476,
-0.1992421597,
-0.4400853515,
0.0639663637,
-0.0409356356,
0.1174830049,
0.1261954755,
0.3188080192,
0.1651473343,
0.4893711805,
0.3132434189,
0.0720731094,
-0.1783274114,
0.0621530339,
-0.2334482968,
0.2319100648,
-0.2242505401,
0.0308980197,
0.1252743304,
0.2297960371,
0.3616981506,
-0.2322329581,
0.2106763422,
-0.2574239671,
0.2766292989,
-0.110661,
0.0838679671,
0.2026334256,
-0.0995927826,
-0.0087282136,
0.2297708541,
0.2736264169,
0.0345626026,
0.1165988147,
-0.2128029466,
-0.2432081997,
0.3005087674,
0.1580394804,
-0.0586496703,
0.0679567158,
-0.0645575076,
-0.0057819411,
0.2805487514,
-0.0548927374,
-0.3401752114,
0.0868659616,
-0.7389820814,
-0.2600603998,
0.1528927982,
0.0060367137,
-0.1756755114,
0.0054640025,
0.2558611631,
-0.0120834839,
0.2422097176,
0.0330553316,
0.0680651218,
0.120666936,
-0.2044019848,
-0.1056602076,
0.3498839736,
-0.8443558216,
-0.151117146,
-0.0499686748,
-0.1328817904,
-0.0256580226,
0.2559598982,
-0.214623943,
0.1497690678,
0.1131593585,
0.3785306513,
-0.2864329219,
-0.179553628,
0.0241762027,
-0.1898522973,
-0.1139877588,
0.1790435612,
-0.1413313746,
0.3943665624,
0.0892047286,
0.1655685455,
0.1407640576,
0.2155863196,
-0.0274721719,
0.1473462284,
0.2670478523,
0.2488005012,
-0.6484075785,
0.306063503,
-0.0628644899,
0.1538831592,
0.1872506142,
-0.2421231568,
0.0660024881,
0.4159044921,
0.4293131828,
-0.1300990283,
0.0161141753,
0.0612439364,
-0.1678278446,
0.2202239633,
-0.0615800098,
0.306425035,
-0.2538881302,
-0.0041135624,
0.0725798607,
-0.3613114953,
-0.0806768388,
-0.0067584589,
-0.2327685058,
-0.1088711172,
-0.2220417261,
0.2936438918,
0.1907928288,
0.2006860077,
0.1718479693,
-0.2917717695,
0.35057199,
0.1063390374,
-0.0170481578,
0.1874938309,
0.188412413,
-0.1544377506,
-0.4010764956,
0.2174317241,
-0.028292438,
0.2030494064,
-0.1185925081,
0.236373648,
-0.1250064075,
0.0056332787,
0.3543412983,
0.0527255684,
0.3139891028,
0.1135732755,
0.2762681544,
0.1866981089,
0.143176347,
0.314013958,
-0.4340700805,
-0.2543807328,
-0.3894143105,
0.3616286218,
-0.3148320019,
0.3210273981,
0.1509767473,
-0.1433539093,
0.4951441884,
-0.1373814642,
-0.1780488193,
-0.077505514,
-0.3291460872,
0.4842243195,
0.0247816965,
0.062791869,
0.117373459,
-0.0368324816,
0.1472530961,
0.1195158213,
0.2113157064,
-0.1094560772,
-0.0626855344,
0.211215049,
-0.4670902789,
0.1594256312,
0.1257492006,
0.1019961089,
0.3387945294,
-0.2200199962,
-0.1152894944,
0.2674161196,
0.2180283517,
-0.1320872307,
-0.0435182713,
-0.0258649588,
-0.295453757,
-0.2042063326,
0.3511810303,
0.1040424332,
0.1294223666,
-0.0459423028,
0.2327174544,
0.2416961789,
0.4276041687,
0.211425826,
-0.0255016647,
-0.1811805665,
0.0590604618,
0.021860227,
-0.049709402,
0.1463518441,
0.0862489417,
-0.0498691946,
-0.0435710102,
-0.1804246008,
-0.0071559791,
-0.0013992516,
0.4104414582,
0.2205945998,
0.0727372617,
-0.2366647422,
-0.0322216973,
0.1743237674,
-0.2374213934,
-0.0384945907,
0.5531134009,
-0.0587109402,
0.0892806873,
-0.0565567687,
-0.1715921313,
-0.0936347991,
-0.3964666426,
-0.0207020193,
0.0413864627,
0.1471429467,
-0.1181745231,
0.1409464478,
0.224673003,
0.1708790809,
0.0079455078,
-0.2062764466,
-0.3394730091,
-0.0268057957,
-0.2306410223,
-0.1545539498,
0.0618930832,
0.0176210478,
0.6852976084,
0.1380213946,
-0.1405829489,
-0.4560716152,
0.0017371681,
-0.2098914385,
-0.0303753279,
-0.016083993,
0.2644731104,
-0.0626577586,
-0.1569624245,
-0.2842124104,
-0.0542895198,
0.2124325037,
0.1187747568,
-0.0273833647,
0.0317651369,
0.0322170332,
0.2830832601,
0.5209570527,
0.3953300118,
0.1029955149,
0.2838952839,
0.192132175,
0.0036796909,
0.0900347605,
-0.1075098813,
0.1794604808,
-0.10672535,
-0.1737585217,
0.1160284951,
0.07035923,
-0.1351751387,
-0.1973451078,
-0.0087810457,
0.0846388638,
-0.1840721071,
-0.0214703679,
-0.018806234,
0.5045294762,
0.0923849195,
0.0470352173,
-0.1606874913,
-0.3939408958,
0.1025608778,
-0.0459621698,
0.0670704544,
0.0099263974,
-0.0599402413,
-0.0090088956,
-0.7305295467,
0.2685510516,
0.1123602688,
0.4320124388,
-0.1020111814,
0.052287966,
-0.1586079299,
0.1142673939,
0.4286970198,
-0.064456977,
-0.1765279174,
0.0596212745,
0.0524649024,
-0.1683599353,
0.1471430361,
-0.1711662114,
-0.0384164564,
-0.2613120079,
-0.1168818325,
-0.0820595473,
0.0472741239,
-0.0062200837,
0.3131178021,
-0.1601983905,
-0.250049293,
-0.3472499251,
-0.1220529154,
0.0043927059,
-0.2169686407,
-0.1226404309,
0.089552328,
-0.2176416218,
0.2523512244,
0.0227336604,
-0.2952416837,
0.3482632339,
-0.1124059409,
0.1965743005,
-0.4322447181,
0.1332803667,
0.4644440413,
-0.2072871178,
-0.0170489382,
0.1137063652,
0.0695508569,
-0.281778872,
0.2407567799,
0.2017532587,
0.359578371,
0.0675774068,
-0.2912521362,
0.2509192824,
-0.0361823216,
0.0853484124,
-0.5771863461,
0.1801710427,
0.0886632502,
0.0613385774,
0.1381755471,
-0.0624363795,
0.2326970398,
0.0552652627,
-0.1369006336,
0.2892401218,
-0.0195217617,
-0.26961869,
0.2825178206,
0.2487515211,
0.7941434383,
-0.1485886574,
-0.0610653572,
0.4458683729,
0.0083941296,
-0.0881054997,
-0.2118183374,
0.5530893803,
-0.1516978145,
-0.0146359671,
0.087136358,
-0.223828733,
-0.0913899541,
-0.2526905537,
-0.2605431974,
0.6565311551,
0.0389121771,
-0.1428078711,
0.0865542665,
-0.0474397019,
-0.1187874079,
-0.246584639,
0.2222441286,
0.1842269301,
-0.1877064407,
-0.1484002471,
-0.0387456939,
0.0764234662,
0.0927676708,
-0.3213991523,
-0.2134755999,
0.0094133392,
-0.2341893464,
0.1229038909,
-0.2876665592,
0.1384743303,
-0.0338195339,
0.4129703045,
0.3505010009,
0.134785369,
-0.0439516902,
0.0642215014,
-0.1409432888,
0.0673819631,
0.0816785693,
0.1936233789,
-0.0772471353,
-0.042367477,
-0.2362022102,
0.3239810765,
0.0318995751,
-0.3035769463,
0.0209789574,
0.004149856,
-0.0676419735,
-0.0927415341,
-0.0991552323,
-0.1226341575,
-0.4054274857,
-0.1016838625,
0.166597724,
0.3358543217,
-0.6273185015,
0.3717975616,
0.0599584505,
-0.0581071302,
0.2039711624,
0.3034739196,
0.2402006239,
-0.3711031377,
0.5228540897,
-0.0703088492,
-0.0664503425,
-0.0849606395,
-0.3364023566,
-0.105775252,
0.0251234025,
0.1875853837,
0.2309448868,
0.0863212049,
-0.2148945332,
0.1295985281,
0.0714635625,
0.2860015333,
0.1478192359,
-0.3211325407,
-0.570501864,
0.1984287351,
-0.1343360096,
0.069769606,
-0.4777341783,
-0.2928740978,
-0.5433305502,
0.0197099689,
-0.2649723589,
0.1309407353,
-0.4698499143,
0.1528989822,
-0.0560232103,
-0.1072279587,
0.2412146181,
0.1662406176,
0.1316620409,
0.4861496687,
-0.1609186679,
-0.1148330718,
0.0130821392,
0.0763764381,
-0.0238653049,
-0.1037726104,
0.2343621552,
0.0766252279,
-0.1278422773,
-0.1201297343,
-0.1803637743,
0.272380054,
-0.2416996509,
0.0868963301,
-0.3836641312,
0.0731596127,
0.6001415253,
0.2037328333,
-0.0219241641,
0.2448607683,
0.061567992,
0.2490883321,
-0.1119028777,
-0.058346346,
0.2134887576,
0.1071448103,
-0.1107831299,
-0.243285954,
0.1940628886,
-0.2006396949,
-0.2309132814,
-0.1189454794,
0.225061968,
-0.1795278192,
-0.2697105408,
0.0512615219,
0.1457483768,
0.2108915001,
0.0513855442,
0.178945154,
-0.1412662864,
0.0825062916,
0.058263123,
0.2282674462,
0.1724423021,
-0.2710608244,
-0.0541157797,
-0.0430440344,
0.227781862,
-0.3114748001,
-0.1649620235,
-0.2481333017,
-0.0783554018,
-0.1232031584,
-0.1370625198,
-0.0019345861,
0.3038543761,
0.5290904045,
-0.2573441267,
0.4064503908,
-0.4600451589,
0.07677944,
-0.0782730654,
-0.3895432353,
-0.325919956,
0.3104047775,
0.0393802933,
0.313431114,
-0.3366589844,
0.1221516356,
0.131345585,
0.1683416665,
-0.1511763632,
-0.2036626786,
-0.1160733402,
0.0636430904,
0.1578115225,
-0.3073449731,
0.0246312171,
-0.0502911285,
0.3668286204,
-0.034252543,
0.3742721081,
0.0016253404,
-0.2236440331,
0.2601142228,
-0.0180127416,
0.5469639301,
0.0100534037,
-0.2832669616,
0.1146140918,
0.4181112945,
0.142642498,
0.1386208236,
0.2846040428,
0.4829082489,
0.3588484228,
-0.2767454982,
0.2184022069,
-0.1127003133,
-0.1293807328,
-0.0103219226,
0.2846420407,
0.2454686761,
-0.0023278361,
0.1850485355,
0.0348168164,
-0.0351408347,
-0.1497599334,
0.0099585056,
0.0568037033,
-0.222673133,
0.0570200309,
-0.2153232247,
0.0255850852,
-0.2253831327,
-0.0923115164,
-0.3778286576,
0.2275391668,
0.0091680847,
-0.1401444525,
0.2049318403,
0.0773807466,
0.0560774654,
-0.2662170529,
0.3642236292,
-0.0509139113,
0.2151641846,
-0.6167621017,
-0.2342030406,
-0.1764985323,
0.1513809264,
-0.1593511999,
0.4129827917,
-0.1397840083,
0.0939855054,
-0.1402535588,
-0.0286626872,
-0.067769058,
0.1230891496,
-0.1035883427,
0.2747891247,
-0.3578972518,
-0.2949353755,
0.2261707187,
-0.1421803087,
0.2543469071,
-0.4365846813,
-0.1602471769,
-0.233558774,
0.0107783824,
-0.0389848687,
0.4080347717,
-0.0949807614,
0.5220332146,
0.0629382282,
0.3354322612,
0.5877149105,
-0.0117937997,
-0.2971836925,
-0.109594956,
-0.178906247,
-0.2137202919,
-0.4510124624,
-0.0793375224,
0.5294623971,
-0.1782436371,
-0.295573473,
-0.292270422,
0.3045112789,
-0.0391484611,
-0.0277270395,
-0.1796135902,
0.3239206672,
-0.2037034184,
0.2875929475,
0.2503638268,
0.0669569001,
0.1562663913,
0.4125559628,
-0.3301568031,
-0.0906284973,
0.5843916535,
-0.1609608829,
-0.3511348367,
0.0949685574,
0.2776319087,
0.1976287067,
-0.3637202382,
-0.8314563036,
-0.0270134136,
0.2877660096,
0.2366386354,
-0.1023109928,
0.0471828394,
0.0729522556,
-0.0134905428,
0.2048302889,
-0.0837525129,
-0.1040182263,
-0.1719590873,
0.1146994233,
-0.1332052201
] |
https://github.com/huggingface/datasets/issues/2078 | MemoryError when computing WER metric | Someone created an issue https://github.com/jitsi/jiwer/issues/40 at jiwer which shows that this is still a problem in the current version. Would be curious to figure out how this can be fixed by jiwer... :) I assume that it runs of out memory because it's trying to compute the WER over (too many) test samples? | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 53 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
Someone created an issue https://github.com/jitsi/jiwer/issues/40 at jiwer which shows that this is still a problem in the current version. Would be curious to figure out how this can be fixed by jiwer... :) I assume that it runs of out memory because it's trying to compute the WER over (too many) test samples? | [
0.1249790788,
-0.2007294297,
0.0587180927,
0.3256507218,
0.4333938956,
0.0737892687,
-0.2180433869,
0.2950878441,
0.0288311616,
0.4309865832,
0.0965305269,
-0.0946349725,
-0.3058879375,
-0.5752209425,
-0.1799838245,
-0.3347721696,
-0.1305913329,
-0.06031394,
-0.0939676613,
0.2673475444,
-0.2414010912,
0.2181446254,
-0.3488658369,
0.1229336485,
-0.071733132,
-0.0110547058,
-0.1759235114,
0.1331793219,
-0.2212717235,
-0.5667486191,
0.3025927544,
-0.3079388738,
0.1904903352,
0.3594332337,
-0.000114279,
0.0282555223,
0.1901024282,
-0.1784470975,
-0.0109600835,
0.1174559817,
-0.1258536577,
-0.1865428388,
-0.1319401562,
-0.0092579871,
-0.0329882279,
0.0375668891,
0.1080690324,
-0.2880085707,
0.0632085875,
0.2449463159,
0.1992428899,
-0.0609457381,
0.2961236835,
-0.2295079976,
-0.1241088808,
-0.1905779988,
0.1977028698,
0.3163279891,
-0.270313561,
-0.1776360869,
-0.2714264989,
0.2580880225,
-0.0427770391,
0.2143144161,
0.093611598,
0.1157600954,
0.0853937864,
0.0110050663,
0.084766686,
-0.2555569708,
0.2671687603,
-0.3263042271,
-0.0301646926,
0.2048875242,
-0.1614336371,
-0.4275713265,
0.1660300493,
0.1187260672,
-0.5047883391,
0.0975699872,
-0.2040273696,
-0.1204809695,
-0.3942310214,
0.1254812777,
-0.0058267862,
0.0910322666,
-0.1965166926,
0.1057426631,
0.3368056118,
0.1566443592,
0.0604361035,
0.206969291,
-0.1233543754,
0.0125258602,
-0.3743090034,
-0.0881423578,
-0.0584864914,
-0.2326194048,
0.1580234468,
-0.5695323348,
0.5826600194,
-0.0841272101,
0.3524421155,
0.4458709955,
-0.2218322605,
0.8173156381,
-0.0972190648,
0.0790161937,
0.0414084867,
0.0784386545,
-0.1152931824,
-0.2438928932,
-0.0898667052,
-0.383959651,
0.2813352942,
0.1884754598,
-0.1235138476,
-0.1992421597,
-0.4400853515,
0.0639663637,
-0.0409356356,
0.1174830049,
0.1261954755,
0.3188080192,
0.1651473343,
0.4893711805,
0.3132434189,
0.0720731094,
-0.1783274114,
0.0621530339,
-0.2334482968,
0.2319100648,
-0.2242505401,
0.0308980197,
0.1252743304,
0.2297960371,
0.3616981506,
-0.2322329581,
0.2106763422,
-0.2574239671,
0.2766292989,
-0.110661,
0.0838679671,
0.2026334256,
-0.0995927826,
-0.0087282136,
0.2297708541,
0.2736264169,
0.0345626026,
0.1165988147,
-0.2128029466,
-0.2432081997,
0.3005087674,
0.1580394804,
-0.0586496703,
0.0679567158,
-0.0645575076,
-0.0057819411,
0.2805487514,
-0.0548927374,
-0.3401752114,
0.0868659616,
-0.7389820814,
-0.2600603998,
0.1528927982,
0.0060367137,
-0.1756755114,
0.0054640025,
0.2558611631,
-0.0120834839,
0.2422097176,
0.0330553316,
0.0680651218,
0.120666936,
-0.2044019848,
-0.1056602076,
0.3498839736,
-0.8443558216,
-0.151117146,
-0.0499686748,
-0.1328817904,
-0.0256580226,
0.2559598982,
-0.214623943,
0.1497690678,
0.1131593585,
0.3785306513,
-0.2864329219,
-0.179553628,
0.0241762027,
-0.1898522973,
-0.1139877588,
0.1790435612,
-0.1413313746,
0.3943665624,
0.0892047286,
0.1655685455,
0.1407640576,
0.2155863196,
-0.0274721719,
0.1473462284,
0.2670478523,
0.2488005012,
-0.6484075785,
0.306063503,
-0.0628644899,
0.1538831592,
0.1872506142,
-0.2421231568,
0.0660024881,
0.4159044921,
0.4293131828,
-0.1300990283,
0.0161141753,
0.0612439364,
-0.1678278446,
0.2202239633,
-0.0615800098,
0.306425035,
-0.2538881302,
-0.0041135624,
0.0725798607,
-0.3613114953,
-0.0806768388,
-0.0067584589,
-0.2327685058,
-0.1088711172,
-0.2220417261,
0.2936438918,
0.1907928288,
0.2006860077,
0.1718479693,
-0.2917717695,
0.35057199,
0.1063390374,
-0.0170481578,
0.1874938309,
0.188412413,
-0.1544377506,
-0.4010764956,
0.2174317241,
-0.028292438,
0.2030494064,
-0.1185925081,
0.236373648,
-0.1250064075,
0.0056332787,
0.3543412983,
0.0527255684,
0.3139891028,
0.1135732755,
0.2762681544,
0.1866981089,
0.143176347,
0.314013958,
-0.4340700805,
-0.2543807328,
-0.3894143105,
0.3616286218,
-0.3148320019,
0.3210273981,
0.1509767473,
-0.1433539093,
0.4951441884,
-0.1373814642,
-0.1780488193,
-0.077505514,
-0.3291460872,
0.4842243195,
0.0247816965,
0.062791869,
0.117373459,
-0.0368324816,
0.1472530961,
0.1195158213,
0.2113157064,
-0.1094560772,
-0.0626855344,
0.211215049,
-0.4670902789,
0.1594256312,
0.1257492006,
0.1019961089,
0.3387945294,
-0.2200199962,
-0.1152894944,
0.2674161196,
0.2180283517,
-0.1320872307,
-0.0435182713,
-0.0258649588,
-0.295453757,
-0.2042063326,
0.3511810303,
0.1040424332,
0.1294223666,
-0.0459423028,
0.2327174544,
0.2416961789,
0.4276041687,
0.211425826,
-0.0255016647,
-0.1811805665,
0.0590604618,
0.021860227,
-0.049709402,
0.1463518441,
0.0862489417,
-0.0498691946,
-0.0435710102,
-0.1804246008,
-0.0071559791,
-0.0013992516,
0.4104414582,
0.2205945998,
0.0727372617,
-0.2366647422,
-0.0322216973,
0.1743237674,
-0.2374213934,
-0.0384945907,
0.5531134009,
-0.0587109402,
0.0892806873,
-0.0565567687,
-0.1715921313,
-0.0936347991,
-0.3964666426,
-0.0207020193,
0.0413864627,
0.1471429467,
-0.1181745231,
0.1409464478,
0.224673003,
0.1708790809,
0.0079455078,
-0.2062764466,
-0.3394730091,
-0.0268057957,
-0.2306410223,
-0.1545539498,
0.0618930832,
0.0176210478,
0.6852976084,
0.1380213946,
-0.1405829489,
-0.4560716152,
0.0017371681,
-0.2098914385,
-0.0303753279,
-0.016083993,
0.2644731104,
-0.0626577586,
-0.1569624245,
-0.2842124104,
-0.0542895198,
0.2124325037,
0.1187747568,
-0.0273833647,
0.0317651369,
0.0322170332,
0.2830832601,
0.5209570527,
0.3953300118,
0.1029955149,
0.2838952839,
0.192132175,
0.0036796909,
0.0900347605,
-0.1075098813,
0.1794604808,
-0.10672535,
-0.1737585217,
0.1160284951,
0.07035923,
-0.1351751387,
-0.1973451078,
-0.0087810457,
0.0846388638,
-0.1840721071,
-0.0214703679,
-0.018806234,
0.5045294762,
0.0923849195,
0.0470352173,
-0.1606874913,
-0.3939408958,
0.1025608778,
-0.0459621698,
0.0670704544,
0.0099263974,
-0.0599402413,
-0.0090088956,
-0.7305295467,
0.2685510516,
0.1123602688,
0.4320124388,
-0.1020111814,
0.052287966,
-0.1586079299,
0.1142673939,
0.4286970198,
-0.064456977,
-0.1765279174,
0.0596212745,
0.0524649024,
-0.1683599353,
0.1471430361,
-0.1711662114,
-0.0384164564,
-0.2613120079,
-0.1168818325,
-0.0820595473,
0.0472741239,
-0.0062200837,
0.3131178021,
-0.1601983905,
-0.250049293,
-0.3472499251,
-0.1220529154,
0.0043927059,
-0.2169686407,
-0.1226404309,
0.089552328,
-0.2176416218,
0.2523512244,
0.0227336604,
-0.2952416837,
0.3482632339,
-0.1124059409,
0.1965743005,
-0.4322447181,
0.1332803667,
0.4644440413,
-0.2072871178,
-0.0170489382,
0.1137063652,
0.0695508569,
-0.281778872,
0.2407567799,
0.2017532587,
0.359578371,
0.0675774068,
-0.2912521362,
0.2509192824,
-0.0361823216,
0.0853484124,
-0.5771863461,
0.1801710427,
0.0886632502,
0.0613385774,
0.1381755471,
-0.0624363795,
0.2326970398,
0.0552652627,
-0.1369006336,
0.2892401218,
-0.0195217617,
-0.26961869,
0.2825178206,
0.2487515211,
0.7941434383,
-0.1485886574,
-0.0610653572,
0.4458683729,
0.0083941296,
-0.0881054997,
-0.2118183374,
0.5530893803,
-0.1516978145,
-0.0146359671,
0.087136358,
-0.223828733,
-0.0913899541,
-0.2526905537,
-0.2605431974,
0.6565311551,
0.0389121771,
-0.1428078711,
0.0865542665,
-0.0474397019,
-0.1187874079,
-0.246584639,
0.2222441286,
0.1842269301,
-0.1877064407,
-0.1484002471,
-0.0387456939,
0.0764234662,
0.0927676708,
-0.3213991523,
-0.2134755999,
0.0094133392,
-0.2341893464,
0.1229038909,
-0.2876665592,
0.1384743303,
-0.0338195339,
0.4129703045,
0.3505010009,
0.134785369,
-0.0439516902,
0.0642215014,
-0.1409432888,
0.0673819631,
0.0816785693,
0.1936233789,
-0.0772471353,
-0.042367477,
-0.2362022102,
0.3239810765,
0.0318995751,
-0.3035769463,
0.0209789574,
0.004149856,
-0.0676419735,
-0.0927415341,
-0.0991552323,
-0.1226341575,
-0.4054274857,
-0.1016838625,
0.166597724,
0.3358543217,
-0.6273185015,
0.3717975616,
0.0599584505,
-0.0581071302,
0.2039711624,
0.3034739196,
0.2402006239,
-0.3711031377,
0.5228540897,
-0.0703088492,
-0.0664503425,
-0.0849606395,
-0.3364023566,
-0.105775252,
0.0251234025,
0.1875853837,
0.2309448868,
0.0863212049,
-0.2148945332,
0.1295985281,
0.0714635625,
0.2860015333,
0.1478192359,
-0.3211325407,
-0.570501864,
0.1984287351,
-0.1343360096,
0.069769606,
-0.4777341783,
-0.2928740978,
-0.5433305502,
0.0197099689,
-0.2649723589,
0.1309407353,
-0.4698499143,
0.1528989822,
-0.0560232103,
-0.1072279587,
0.2412146181,
0.1662406176,
0.1316620409,
0.4861496687,
-0.1609186679,
-0.1148330718,
0.0130821392,
0.0763764381,
-0.0238653049,
-0.1037726104,
0.2343621552,
0.0766252279,
-0.1278422773,
-0.1201297343,
-0.1803637743,
0.272380054,
-0.2416996509,
0.0868963301,
-0.3836641312,
0.0731596127,
0.6001415253,
0.2037328333,
-0.0219241641,
0.2448607683,
0.061567992,
0.2490883321,
-0.1119028777,
-0.058346346,
0.2134887576,
0.1071448103,
-0.1107831299,
-0.243285954,
0.1940628886,
-0.2006396949,
-0.2309132814,
-0.1189454794,
0.225061968,
-0.1795278192,
-0.2697105408,
0.0512615219,
0.1457483768,
0.2108915001,
0.0513855442,
0.178945154,
-0.1412662864,
0.0825062916,
0.058263123,
0.2282674462,
0.1724423021,
-0.2710608244,
-0.0541157797,
-0.0430440344,
0.227781862,
-0.3114748001,
-0.1649620235,
-0.2481333017,
-0.0783554018,
-0.1232031584,
-0.1370625198,
-0.0019345861,
0.3038543761,
0.5290904045,
-0.2573441267,
0.4064503908,
-0.4600451589,
0.07677944,
-0.0782730654,
-0.3895432353,
-0.325919956,
0.3104047775,
0.0393802933,
0.313431114,
-0.3366589844,
0.1221516356,
0.131345585,
0.1683416665,
-0.1511763632,
-0.2036626786,
-0.1160733402,
0.0636430904,
0.1578115225,
-0.3073449731,
0.0246312171,
-0.0502911285,
0.3668286204,
-0.034252543,
0.3742721081,
0.0016253404,
-0.2236440331,
0.2601142228,
-0.0180127416,
0.5469639301,
0.0100534037,
-0.2832669616,
0.1146140918,
0.4181112945,
0.142642498,
0.1386208236,
0.2846040428,
0.4829082489,
0.3588484228,
-0.2767454982,
0.2184022069,
-0.1127003133,
-0.1293807328,
-0.0103219226,
0.2846420407,
0.2454686761,
-0.0023278361,
0.1850485355,
0.0348168164,
-0.0351408347,
-0.1497599334,
0.0099585056,
0.0568037033,
-0.222673133,
0.0570200309,
-0.2153232247,
0.0255850852,
-0.2253831327,
-0.0923115164,
-0.3778286576,
0.2275391668,
0.0091680847,
-0.1401444525,
0.2049318403,
0.0773807466,
0.0560774654,
-0.2662170529,
0.3642236292,
-0.0509139113,
0.2151641846,
-0.6167621017,
-0.2342030406,
-0.1764985323,
0.1513809264,
-0.1593511999,
0.4129827917,
-0.1397840083,
0.0939855054,
-0.1402535588,
-0.0286626872,
-0.067769058,
0.1230891496,
-0.1035883427,
0.2747891247,
-0.3578972518,
-0.2949353755,
0.2261707187,
-0.1421803087,
0.2543469071,
-0.4365846813,
-0.1602471769,
-0.233558774,
0.0107783824,
-0.0389848687,
0.4080347717,
-0.0949807614,
0.5220332146,
0.0629382282,
0.3354322612,
0.5877149105,
-0.0117937997,
-0.2971836925,
-0.109594956,
-0.178906247,
-0.2137202919,
-0.4510124624,
-0.0793375224,
0.5294623971,
-0.1782436371,
-0.295573473,
-0.292270422,
0.3045112789,
-0.0391484611,
-0.0277270395,
-0.1796135902,
0.3239206672,
-0.2037034184,
0.2875929475,
0.2503638268,
0.0669569001,
0.1562663913,
0.4125559628,
-0.3301568031,
-0.0906284973,
0.5843916535,
-0.1609608829,
-0.3511348367,
0.0949685574,
0.2776319087,
0.1976287067,
-0.3637202382,
-0.8314563036,
-0.0270134136,
0.2877660096,
0.2366386354,
-0.1023109928,
0.0471828394,
0.0729522556,
-0.0134905428,
0.2048302889,
-0.0837525129,
-0.1040182263,
-0.1719590873,
0.1146994233,
-0.1332052201
] |
https://github.com/huggingface/datasets/issues/2078 | MemoryError when computing WER metric | Hi !
It's computed iteratively so not sure what could go wrong
https://github.com/huggingface/datasets/blob/8afd0ba8c27800a55ea69d9fcd702dc97d9c16d8/metrics/wer/wer.py#L100-L106
@NiklasHoltmeyer what version of `datasets` are you running ?
| Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 22 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
Hi !
It's computed iteratively so not sure what could go wrong
https://github.com/huggingface/datasets/blob/8afd0ba8c27800a55ea69d9fcd702dc97d9c16d8/metrics/wer/wer.py#L100-L106
@NiklasHoltmeyer what version of `datasets` are you running ?
| [
0.1249790788,
-0.2007294297,
0.0587180927,
0.3256507218,
0.4333938956,
0.0737892687,
-0.2180433869,
0.2950878441,
0.0288311616,
0.4309865832,
0.0965305269,
-0.0946349725,
-0.3058879375,
-0.5752209425,
-0.1799838245,
-0.3347721696,
-0.1305913329,
-0.06031394,
-0.0939676613,
0.2673475444,
-0.2414010912,
0.2181446254,
-0.3488658369,
0.1229336485,
-0.071733132,
-0.0110547058,
-0.1759235114,
0.1331793219,
-0.2212717235,
-0.5667486191,
0.3025927544,
-0.3079388738,
0.1904903352,
0.3594332337,
-0.000114279,
0.0282555223,
0.1901024282,
-0.1784470975,
-0.0109600835,
0.1174559817,
-0.1258536577,
-0.1865428388,
-0.1319401562,
-0.0092579871,
-0.0329882279,
0.0375668891,
0.1080690324,
-0.2880085707,
0.0632085875,
0.2449463159,
0.1992428899,
-0.0609457381,
0.2961236835,
-0.2295079976,
-0.1241088808,
-0.1905779988,
0.1977028698,
0.3163279891,
-0.270313561,
-0.1776360869,
-0.2714264989,
0.2580880225,
-0.0427770391,
0.2143144161,
0.093611598,
0.1157600954,
0.0853937864,
0.0110050663,
0.084766686,
-0.2555569708,
0.2671687603,
-0.3263042271,
-0.0301646926,
0.2048875242,
-0.1614336371,
-0.4275713265,
0.1660300493,
0.1187260672,
-0.5047883391,
0.0975699872,
-0.2040273696,
-0.1204809695,
-0.3942310214,
0.1254812777,
-0.0058267862,
0.0910322666,
-0.1965166926,
0.1057426631,
0.3368056118,
0.1566443592,
0.0604361035,
0.206969291,
-0.1233543754,
0.0125258602,
-0.3743090034,
-0.0881423578,
-0.0584864914,
-0.2326194048,
0.1580234468,
-0.5695323348,
0.5826600194,
-0.0841272101,
0.3524421155,
0.4458709955,
-0.2218322605,
0.8173156381,
-0.0972190648,
0.0790161937,
0.0414084867,
0.0784386545,
-0.1152931824,
-0.2438928932,
-0.0898667052,
-0.383959651,
0.2813352942,
0.1884754598,
-0.1235138476,
-0.1992421597,
-0.4400853515,
0.0639663637,
-0.0409356356,
0.1174830049,
0.1261954755,
0.3188080192,
0.1651473343,
0.4893711805,
0.3132434189,
0.0720731094,
-0.1783274114,
0.0621530339,
-0.2334482968,
0.2319100648,
-0.2242505401,
0.0308980197,
0.1252743304,
0.2297960371,
0.3616981506,
-0.2322329581,
0.2106763422,
-0.2574239671,
0.2766292989,
-0.110661,
0.0838679671,
0.2026334256,
-0.0995927826,
-0.0087282136,
0.2297708541,
0.2736264169,
0.0345626026,
0.1165988147,
-0.2128029466,
-0.2432081997,
0.3005087674,
0.1580394804,
-0.0586496703,
0.0679567158,
-0.0645575076,
-0.0057819411,
0.2805487514,
-0.0548927374,
-0.3401752114,
0.0868659616,
-0.7389820814,
-0.2600603998,
0.1528927982,
0.0060367137,
-0.1756755114,
0.0054640025,
0.2558611631,
-0.0120834839,
0.2422097176,
0.0330553316,
0.0680651218,
0.120666936,
-0.2044019848,
-0.1056602076,
0.3498839736,
-0.8443558216,
-0.151117146,
-0.0499686748,
-0.1328817904,
-0.0256580226,
0.2559598982,
-0.214623943,
0.1497690678,
0.1131593585,
0.3785306513,
-0.2864329219,
-0.179553628,
0.0241762027,
-0.1898522973,
-0.1139877588,
0.1790435612,
-0.1413313746,
0.3943665624,
0.0892047286,
0.1655685455,
0.1407640576,
0.2155863196,
-0.0274721719,
0.1473462284,
0.2670478523,
0.2488005012,
-0.6484075785,
0.306063503,
-0.0628644899,
0.1538831592,
0.1872506142,
-0.2421231568,
0.0660024881,
0.4159044921,
0.4293131828,
-0.1300990283,
0.0161141753,
0.0612439364,
-0.1678278446,
0.2202239633,
-0.0615800098,
0.306425035,
-0.2538881302,
-0.0041135624,
0.0725798607,
-0.3613114953,
-0.0806768388,
-0.0067584589,
-0.2327685058,
-0.1088711172,
-0.2220417261,
0.2936438918,
0.1907928288,
0.2006860077,
0.1718479693,
-0.2917717695,
0.35057199,
0.1063390374,
-0.0170481578,
0.1874938309,
0.188412413,
-0.1544377506,
-0.4010764956,
0.2174317241,
-0.028292438,
0.2030494064,
-0.1185925081,
0.236373648,
-0.1250064075,
0.0056332787,
0.3543412983,
0.0527255684,
0.3139891028,
0.1135732755,
0.2762681544,
0.1866981089,
0.143176347,
0.314013958,
-0.4340700805,
-0.2543807328,
-0.3894143105,
0.3616286218,
-0.3148320019,
0.3210273981,
0.1509767473,
-0.1433539093,
0.4951441884,
-0.1373814642,
-0.1780488193,
-0.077505514,
-0.3291460872,
0.4842243195,
0.0247816965,
0.062791869,
0.117373459,
-0.0368324816,
0.1472530961,
0.1195158213,
0.2113157064,
-0.1094560772,
-0.0626855344,
0.211215049,
-0.4670902789,
0.1594256312,
0.1257492006,
0.1019961089,
0.3387945294,
-0.2200199962,
-0.1152894944,
0.2674161196,
0.2180283517,
-0.1320872307,
-0.0435182713,
-0.0258649588,
-0.295453757,
-0.2042063326,
0.3511810303,
0.1040424332,
0.1294223666,
-0.0459423028,
0.2327174544,
0.2416961789,
0.4276041687,
0.211425826,
-0.0255016647,
-0.1811805665,
0.0590604618,
0.021860227,
-0.049709402,
0.1463518441,
0.0862489417,
-0.0498691946,
-0.0435710102,
-0.1804246008,
-0.0071559791,
-0.0013992516,
0.4104414582,
0.2205945998,
0.0727372617,
-0.2366647422,
-0.0322216973,
0.1743237674,
-0.2374213934,
-0.0384945907,
0.5531134009,
-0.0587109402,
0.0892806873,
-0.0565567687,
-0.1715921313,
-0.0936347991,
-0.3964666426,
-0.0207020193,
0.0413864627,
0.1471429467,
-0.1181745231,
0.1409464478,
0.224673003,
0.1708790809,
0.0079455078,
-0.2062764466,
-0.3394730091,
-0.0268057957,
-0.2306410223,
-0.1545539498,
0.0618930832,
0.0176210478,
0.6852976084,
0.1380213946,
-0.1405829489,
-0.4560716152,
0.0017371681,
-0.2098914385,
-0.0303753279,
-0.016083993,
0.2644731104,
-0.0626577586,
-0.1569624245,
-0.2842124104,
-0.0542895198,
0.2124325037,
0.1187747568,
-0.0273833647,
0.0317651369,
0.0322170332,
0.2830832601,
0.5209570527,
0.3953300118,
0.1029955149,
0.2838952839,
0.192132175,
0.0036796909,
0.0900347605,
-0.1075098813,
0.1794604808,
-0.10672535,
-0.1737585217,
0.1160284951,
0.07035923,
-0.1351751387,
-0.1973451078,
-0.0087810457,
0.0846388638,
-0.1840721071,
-0.0214703679,
-0.018806234,
0.5045294762,
0.0923849195,
0.0470352173,
-0.1606874913,
-0.3939408958,
0.1025608778,
-0.0459621698,
0.0670704544,
0.0099263974,
-0.0599402413,
-0.0090088956,
-0.7305295467,
0.2685510516,
0.1123602688,
0.4320124388,
-0.1020111814,
0.052287966,
-0.1586079299,
0.1142673939,
0.4286970198,
-0.064456977,
-0.1765279174,
0.0596212745,
0.0524649024,
-0.1683599353,
0.1471430361,
-0.1711662114,
-0.0384164564,
-0.2613120079,
-0.1168818325,
-0.0820595473,
0.0472741239,
-0.0062200837,
0.3131178021,
-0.1601983905,
-0.250049293,
-0.3472499251,
-0.1220529154,
0.0043927059,
-0.2169686407,
-0.1226404309,
0.089552328,
-0.2176416218,
0.2523512244,
0.0227336604,
-0.2952416837,
0.3482632339,
-0.1124059409,
0.1965743005,
-0.4322447181,
0.1332803667,
0.4644440413,
-0.2072871178,
-0.0170489382,
0.1137063652,
0.0695508569,
-0.281778872,
0.2407567799,
0.2017532587,
0.359578371,
0.0675774068,
-0.2912521362,
0.2509192824,
-0.0361823216,
0.0853484124,
-0.5771863461,
0.1801710427,
0.0886632502,
0.0613385774,
0.1381755471,
-0.0624363795,
0.2326970398,
0.0552652627,
-0.1369006336,
0.2892401218,
-0.0195217617,
-0.26961869,
0.2825178206,
0.2487515211,
0.7941434383,
-0.1485886574,
-0.0610653572,
0.4458683729,
0.0083941296,
-0.0881054997,
-0.2118183374,
0.5530893803,
-0.1516978145,
-0.0146359671,
0.087136358,
-0.223828733,
-0.0913899541,
-0.2526905537,
-0.2605431974,
0.6565311551,
0.0389121771,
-0.1428078711,
0.0865542665,
-0.0474397019,
-0.1187874079,
-0.246584639,
0.2222441286,
0.1842269301,
-0.1877064407,
-0.1484002471,
-0.0387456939,
0.0764234662,
0.0927676708,
-0.3213991523,
-0.2134755999,
0.0094133392,
-0.2341893464,
0.1229038909,
-0.2876665592,
0.1384743303,
-0.0338195339,
0.4129703045,
0.3505010009,
0.134785369,
-0.0439516902,
0.0642215014,
-0.1409432888,
0.0673819631,
0.0816785693,
0.1936233789,
-0.0772471353,
-0.042367477,
-0.2362022102,
0.3239810765,
0.0318995751,
-0.3035769463,
0.0209789574,
0.004149856,
-0.0676419735,
-0.0927415341,
-0.0991552323,
-0.1226341575,
-0.4054274857,
-0.1016838625,
0.166597724,
0.3358543217,
-0.6273185015,
0.3717975616,
0.0599584505,
-0.0581071302,
0.2039711624,
0.3034739196,
0.2402006239,
-0.3711031377,
0.5228540897,
-0.0703088492,
-0.0664503425,
-0.0849606395,
-0.3364023566,
-0.105775252,
0.0251234025,
0.1875853837,
0.2309448868,
0.0863212049,
-0.2148945332,
0.1295985281,
0.0714635625,
0.2860015333,
0.1478192359,
-0.3211325407,
-0.570501864,
0.1984287351,
-0.1343360096,
0.069769606,
-0.4777341783,
-0.2928740978,
-0.5433305502,
0.0197099689,
-0.2649723589,
0.1309407353,
-0.4698499143,
0.1528989822,
-0.0560232103,
-0.1072279587,
0.2412146181,
0.1662406176,
0.1316620409,
0.4861496687,
-0.1609186679,
-0.1148330718,
0.0130821392,
0.0763764381,
-0.0238653049,
-0.1037726104,
0.2343621552,
0.0766252279,
-0.1278422773,
-0.1201297343,
-0.1803637743,
0.272380054,
-0.2416996509,
0.0868963301,
-0.3836641312,
0.0731596127,
0.6001415253,
0.2037328333,
-0.0219241641,
0.2448607683,
0.061567992,
0.2490883321,
-0.1119028777,
-0.058346346,
0.2134887576,
0.1071448103,
-0.1107831299,
-0.243285954,
0.1940628886,
-0.2006396949,
-0.2309132814,
-0.1189454794,
0.225061968,
-0.1795278192,
-0.2697105408,
0.0512615219,
0.1457483768,
0.2108915001,
0.0513855442,
0.178945154,
-0.1412662864,
0.0825062916,
0.058263123,
0.2282674462,
0.1724423021,
-0.2710608244,
-0.0541157797,
-0.0430440344,
0.227781862,
-0.3114748001,
-0.1649620235,
-0.2481333017,
-0.0783554018,
-0.1232031584,
-0.1370625198,
-0.0019345861,
0.3038543761,
0.5290904045,
-0.2573441267,
0.4064503908,
-0.4600451589,
0.07677944,
-0.0782730654,
-0.3895432353,
-0.325919956,
0.3104047775,
0.0393802933,
0.313431114,
-0.3366589844,
0.1221516356,
0.131345585,
0.1683416665,
-0.1511763632,
-0.2036626786,
-0.1160733402,
0.0636430904,
0.1578115225,
-0.3073449731,
0.0246312171,
-0.0502911285,
0.3668286204,
-0.034252543,
0.3742721081,
0.0016253404,
-0.2236440331,
0.2601142228,
-0.0180127416,
0.5469639301,
0.0100534037,
-0.2832669616,
0.1146140918,
0.4181112945,
0.142642498,
0.1386208236,
0.2846040428,
0.4829082489,
0.3588484228,
-0.2767454982,
0.2184022069,
-0.1127003133,
-0.1293807328,
-0.0103219226,
0.2846420407,
0.2454686761,
-0.0023278361,
0.1850485355,
0.0348168164,
-0.0351408347,
-0.1497599334,
0.0099585056,
0.0568037033,
-0.222673133,
0.0570200309,
-0.2153232247,
0.0255850852,
-0.2253831327,
-0.0923115164,
-0.3778286576,
0.2275391668,
0.0091680847,
-0.1401444525,
0.2049318403,
0.0773807466,
0.0560774654,
-0.2662170529,
0.3642236292,
-0.0509139113,
0.2151641846,
-0.6167621017,
-0.2342030406,
-0.1764985323,
0.1513809264,
-0.1593511999,
0.4129827917,
-0.1397840083,
0.0939855054,
-0.1402535588,
-0.0286626872,
-0.067769058,
0.1230891496,
-0.1035883427,
0.2747891247,
-0.3578972518,
-0.2949353755,
0.2261707187,
-0.1421803087,
0.2543469071,
-0.4365846813,
-0.1602471769,
-0.233558774,
0.0107783824,
-0.0389848687,
0.4080347717,
-0.0949807614,
0.5220332146,
0.0629382282,
0.3354322612,
0.5877149105,
-0.0117937997,
-0.2971836925,
-0.109594956,
-0.178906247,
-0.2137202919,
-0.4510124624,
-0.0793375224,
0.5294623971,
-0.1782436371,
-0.295573473,
-0.292270422,
0.3045112789,
-0.0391484611,
-0.0277270395,
-0.1796135902,
0.3239206672,
-0.2037034184,
0.2875929475,
0.2503638268,
0.0669569001,
0.1562663913,
0.4125559628,
-0.3301568031,
-0.0906284973,
0.5843916535,
-0.1609608829,
-0.3511348367,
0.0949685574,
0.2776319087,
0.1976287067,
-0.3637202382,
-0.8314563036,
-0.0270134136,
0.2877660096,
0.2366386354,
-0.1023109928,
0.0471828394,
0.0729522556,
-0.0134905428,
0.2048302889,
-0.0837525129,
-0.1040182263,
-0.1719590873,
0.1146994233,
-0.1332052201
] |
https://github.com/huggingface/datasets/issues/2078 | MemoryError when computing WER metric | One possible explanation might be that it is the user who is passing all the sentences in a single element to `wer.compute`?
As current implementation iterates over the elements of `predictions` and `references`, this can be problematic if `predictions` and `references` contain a single huge element each.
This could be the case, for example, with a single string with all sentences:
```python
result["predicted"] = "One sentence. Other sentence."
```
or with a __double__ nested list of sentence lists
```python
result["predicted"] = [[ ["One sentence."], ["Other sentence"] ]]
```
The user should check the dimensions of the data structure passed to `predictions` and `references`. | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 103 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
One possible explanation might be that it is the user who is passing all the sentences in a single element to `wer.compute`?
As current implementation iterates over the elements of `predictions` and `references`, this can be problematic if `predictions` and `references` contain a single huge element each.
This could be the case, for example, with a single string with all sentences:
```python
result["predicted"] = "One sentence. Other sentence."
```
or with a __double__ nested list of sentence lists
```python
result["predicted"] = [[ ["One sentence."], ["Other sentence"] ]]
```
The user should check the dimensions of the data structure passed to `predictions` and `references`. | [
0.1249790788,
-0.2007294297,
0.0587180927,
0.3256507218,
0.4333938956,
0.0737892687,
-0.2180433869,
0.2950878441,
0.0288311616,
0.4309865832,
0.0965305269,
-0.0946349725,
-0.3058879375,
-0.5752209425,
-0.1799838245,
-0.3347721696,
-0.1305913329,
-0.06031394,
-0.0939676613,
0.2673475444,
-0.2414010912,
0.2181446254,
-0.3488658369,
0.1229336485,
-0.071733132,
-0.0110547058,
-0.1759235114,
0.1331793219,
-0.2212717235,
-0.5667486191,
0.3025927544,
-0.3079388738,
0.1904903352,
0.3594332337,
-0.000114279,
0.0282555223,
0.1901024282,
-0.1784470975,
-0.0109600835,
0.1174559817,
-0.1258536577,
-0.1865428388,
-0.1319401562,
-0.0092579871,
-0.0329882279,
0.0375668891,
0.1080690324,
-0.2880085707,
0.0632085875,
0.2449463159,
0.1992428899,
-0.0609457381,
0.2961236835,
-0.2295079976,
-0.1241088808,
-0.1905779988,
0.1977028698,
0.3163279891,
-0.270313561,
-0.1776360869,
-0.2714264989,
0.2580880225,
-0.0427770391,
0.2143144161,
0.093611598,
0.1157600954,
0.0853937864,
0.0110050663,
0.084766686,
-0.2555569708,
0.2671687603,
-0.3263042271,
-0.0301646926,
0.2048875242,
-0.1614336371,
-0.4275713265,
0.1660300493,
0.1187260672,
-0.5047883391,
0.0975699872,
-0.2040273696,
-0.1204809695,
-0.3942310214,
0.1254812777,
-0.0058267862,
0.0910322666,
-0.1965166926,
0.1057426631,
0.3368056118,
0.1566443592,
0.0604361035,
0.206969291,
-0.1233543754,
0.0125258602,
-0.3743090034,
-0.0881423578,
-0.0584864914,
-0.2326194048,
0.1580234468,
-0.5695323348,
0.5826600194,
-0.0841272101,
0.3524421155,
0.4458709955,
-0.2218322605,
0.8173156381,
-0.0972190648,
0.0790161937,
0.0414084867,
0.0784386545,
-0.1152931824,
-0.2438928932,
-0.0898667052,
-0.383959651,
0.2813352942,
0.1884754598,
-0.1235138476,
-0.1992421597,
-0.4400853515,
0.0639663637,
-0.0409356356,
0.1174830049,
0.1261954755,
0.3188080192,
0.1651473343,
0.4893711805,
0.3132434189,
0.0720731094,
-0.1783274114,
0.0621530339,
-0.2334482968,
0.2319100648,
-0.2242505401,
0.0308980197,
0.1252743304,
0.2297960371,
0.3616981506,
-0.2322329581,
0.2106763422,
-0.2574239671,
0.2766292989,
-0.110661,
0.0838679671,
0.2026334256,
-0.0995927826,
-0.0087282136,
0.2297708541,
0.2736264169,
0.0345626026,
0.1165988147,
-0.2128029466,
-0.2432081997,
0.3005087674,
0.1580394804,
-0.0586496703,
0.0679567158,
-0.0645575076,
-0.0057819411,
0.2805487514,
-0.0548927374,
-0.3401752114,
0.0868659616,
-0.7389820814,
-0.2600603998,
0.1528927982,
0.0060367137,
-0.1756755114,
0.0054640025,
0.2558611631,
-0.0120834839,
0.2422097176,
0.0330553316,
0.0680651218,
0.120666936,
-0.2044019848,
-0.1056602076,
0.3498839736,
-0.8443558216,
-0.151117146,
-0.0499686748,
-0.1328817904,
-0.0256580226,
0.2559598982,
-0.214623943,
0.1497690678,
0.1131593585,
0.3785306513,
-0.2864329219,
-0.179553628,
0.0241762027,
-0.1898522973,
-0.1139877588,
0.1790435612,
-0.1413313746,
0.3943665624,
0.0892047286,
0.1655685455,
0.1407640576,
0.2155863196,
-0.0274721719,
0.1473462284,
0.2670478523,
0.2488005012,
-0.6484075785,
0.306063503,
-0.0628644899,
0.1538831592,
0.1872506142,
-0.2421231568,
0.0660024881,
0.4159044921,
0.4293131828,
-0.1300990283,
0.0161141753,
0.0612439364,
-0.1678278446,
0.2202239633,
-0.0615800098,
0.306425035,
-0.2538881302,
-0.0041135624,
0.0725798607,
-0.3613114953,
-0.0806768388,
-0.0067584589,
-0.2327685058,
-0.1088711172,
-0.2220417261,
0.2936438918,
0.1907928288,
0.2006860077,
0.1718479693,
-0.2917717695,
0.35057199,
0.1063390374,
-0.0170481578,
0.1874938309,
0.188412413,
-0.1544377506,
-0.4010764956,
0.2174317241,
-0.028292438,
0.2030494064,
-0.1185925081,
0.236373648,
-0.1250064075,
0.0056332787,
0.3543412983,
0.0527255684,
0.3139891028,
0.1135732755,
0.2762681544,
0.1866981089,
0.143176347,
0.314013958,
-0.4340700805,
-0.2543807328,
-0.3894143105,
0.3616286218,
-0.3148320019,
0.3210273981,
0.1509767473,
-0.1433539093,
0.4951441884,
-0.1373814642,
-0.1780488193,
-0.077505514,
-0.3291460872,
0.4842243195,
0.0247816965,
0.062791869,
0.117373459,
-0.0368324816,
0.1472530961,
0.1195158213,
0.2113157064,
-0.1094560772,
-0.0626855344,
0.211215049,
-0.4670902789,
0.1594256312,
0.1257492006,
0.1019961089,
0.3387945294,
-0.2200199962,
-0.1152894944,
0.2674161196,
0.2180283517,
-0.1320872307,
-0.0435182713,
-0.0258649588,
-0.295453757,
-0.2042063326,
0.3511810303,
0.1040424332,
0.1294223666,
-0.0459423028,
0.2327174544,
0.2416961789,
0.4276041687,
0.211425826,
-0.0255016647,
-0.1811805665,
0.0590604618,
0.021860227,
-0.049709402,
0.1463518441,
0.0862489417,
-0.0498691946,
-0.0435710102,
-0.1804246008,
-0.0071559791,
-0.0013992516,
0.4104414582,
0.2205945998,
0.0727372617,
-0.2366647422,
-0.0322216973,
0.1743237674,
-0.2374213934,
-0.0384945907,
0.5531134009,
-0.0587109402,
0.0892806873,
-0.0565567687,
-0.1715921313,
-0.0936347991,
-0.3964666426,
-0.0207020193,
0.0413864627,
0.1471429467,
-0.1181745231,
0.1409464478,
0.224673003,
0.1708790809,
0.0079455078,
-0.2062764466,
-0.3394730091,
-0.0268057957,
-0.2306410223,
-0.1545539498,
0.0618930832,
0.0176210478,
0.6852976084,
0.1380213946,
-0.1405829489,
-0.4560716152,
0.0017371681,
-0.2098914385,
-0.0303753279,
-0.016083993,
0.2644731104,
-0.0626577586,
-0.1569624245,
-0.2842124104,
-0.0542895198,
0.2124325037,
0.1187747568,
-0.0273833647,
0.0317651369,
0.0322170332,
0.2830832601,
0.5209570527,
0.3953300118,
0.1029955149,
0.2838952839,
0.192132175,
0.0036796909,
0.0900347605,
-0.1075098813,
0.1794604808,
-0.10672535,
-0.1737585217,
0.1160284951,
0.07035923,
-0.1351751387,
-0.1973451078,
-0.0087810457,
0.0846388638,
-0.1840721071,
-0.0214703679,
-0.018806234,
0.5045294762,
0.0923849195,
0.0470352173,
-0.1606874913,
-0.3939408958,
0.1025608778,
-0.0459621698,
0.0670704544,
0.0099263974,
-0.0599402413,
-0.0090088956,
-0.7305295467,
0.2685510516,
0.1123602688,
0.4320124388,
-0.1020111814,
0.052287966,
-0.1586079299,
0.1142673939,
0.4286970198,
-0.064456977,
-0.1765279174,
0.0596212745,
0.0524649024,
-0.1683599353,
0.1471430361,
-0.1711662114,
-0.0384164564,
-0.2613120079,
-0.1168818325,
-0.0820595473,
0.0472741239,
-0.0062200837,
0.3131178021,
-0.1601983905,
-0.250049293,
-0.3472499251,
-0.1220529154,
0.0043927059,
-0.2169686407,
-0.1226404309,
0.089552328,
-0.2176416218,
0.2523512244,
0.0227336604,
-0.2952416837,
0.3482632339,
-0.1124059409,
0.1965743005,
-0.4322447181,
0.1332803667,
0.4644440413,
-0.2072871178,
-0.0170489382,
0.1137063652,
0.0695508569,
-0.281778872,
0.2407567799,
0.2017532587,
0.359578371,
0.0675774068,
-0.2912521362,
0.2509192824,
-0.0361823216,
0.0853484124,
-0.5771863461,
0.1801710427,
0.0886632502,
0.0613385774,
0.1381755471,
-0.0624363795,
0.2326970398,
0.0552652627,
-0.1369006336,
0.2892401218,
-0.0195217617,
-0.26961869,
0.2825178206,
0.2487515211,
0.7941434383,
-0.1485886574,
-0.0610653572,
0.4458683729,
0.0083941296,
-0.0881054997,
-0.2118183374,
0.5530893803,
-0.1516978145,
-0.0146359671,
0.087136358,
-0.223828733,
-0.0913899541,
-0.2526905537,
-0.2605431974,
0.6565311551,
0.0389121771,
-0.1428078711,
0.0865542665,
-0.0474397019,
-0.1187874079,
-0.246584639,
0.2222441286,
0.1842269301,
-0.1877064407,
-0.1484002471,
-0.0387456939,
0.0764234662,
0.0927676708,
-0.3213991523,
-0.2134755999,
0.0094133392,
-0.2341893464,
0.1229038909,
-0.2876665592,
0.1384743303,
-0.0338195339,
0.4129703045,
0.3505010009,
0.134785369,
-0.0439516902,
0.0642215014,
-0.1409432888,
0.0673819631,
0.0816785693,
0.1936233789,
-0.0772471353,
-0.042367477,
-0.2362022102,
0.3239810765,
0.0318995751,
-0.3035769463,
0.0209789574,
0.004149856,
-0.0676419735,
-0.0927415341,
-0.0991552323,
-0.1226341575,
-0.4054274857,
-0.1016838625,
0.166597724,
0.3358543217,
-0.6273185015,
0.3717975616,
0.0599584505,
-0.0581071302,
0.2039711624,
0.3034739196,
0.2402006239,
-0.3711031377,
0.5228540897,
-0.0703088492,
-0.0664503425,
-0.0849606395,
-0.3364023566,
-0.105775252,
0.0251234025,
0.1875853837,
0.2309448868,
0.0863212049,
-0.2148945332,
0.1295985281,
0.0714635625,
0.2860015333,
0.1478192359,
-0.3211325407,
-0.570501864,
0.1984287351,
-0.1343360096,
0.069769606,
-0.4777341783,
-0.2928740978,
-0.5433305502,
0.0197099689,
-0.2649723589,
0.1309407353,
-0.4698499143,
0.1528989822,
-0.0560232103,
-0.1072279587,
0.2412146181,
0.1662406176,
0.1316620409,
0.4861496687,
-0.1609186679,
-0.1148330718,
0.0130821392,
0.0763764381,
-0.0238653049,
-0.1037726104,
0.2343621552,
0.0766252279,
-0.1278422773,
-0.1201297343,
-0.1803637743,
0.272380054,
-0.2416996509,
0.0868963301,
-0.3836641312,
0.0731596127,
0.6001415253,
0.2037328333,
-0.0219241641,
0.2448607683,
0.061567992,
0.2490883321,
-0.1119028777,
-0.058346346,
0.2134887576,
0.1071448103,
-0.1107831299,
-0.243285954,
0.1940628886,
-0.2006396949,
-0.2309132814,
-0.1189454794,
0.225061968,
-0.1795278192,
-0.2697105408,
0.0512615219,
0.1457483768,
0.2108915001,
0.0513855442,
0.178945154,
-0.1412662864,
0.0825062916,
0.058263123,
0.2282674462,
0.1724423021,
-0.2710608244,
-0.0541157797,
-0.0430440344,
0.227781862,
-0.3114748001,
-0.1649620235,
-0.2481333017,
-0.0783554018,
-0.1232031584,
-0.1370625198,
-0.0019345861,
0.3038543761,
0.5290904045,
-0.2573441267,
0.4064503908,
-0.4600451589,
0.07677944,
-0.0782730654,
-0.3895432353,
-0.325919956,
0.3104047775,
0.0393802933,
0.313431114,
-0.3366589844,
0.1221516356,
0.131345585,
0.1683416665,
-0.1511763632,
-0.2036626786,
-0.1160733402,
0.0636430904,
0.1578115225,
-0.3073449731,
0.0246312171,
-0.0502911285,
0.3668286204,
-0.034252543,
0.3742721081,
0.0016253404,
-0.2236440331,
0.2601142228,
-0.0180127416,
0.5469639301,
0.0100534037,
-0.2832669616,
0.1146140918,
0.4181112945,
0.142642498,
0.1386208236,
0.2846040428,
0.4829082489,
0.3588484228,
-0.2767454982,
0.2184022069,
-0.1127003133,
-0.1293807328,
-0.0103219226,
0.2846420407,
0.2454686761,
-0.0023278361,
0.1850485355,
0.0348168164,
-0.0351408347,
-0.1497599334,
0.0099585056,
0.0568037033,
-0.222673133,
0.0570200309,
-0.2153232247,
0.0255850852,
-0.2253831327,
-0.0923115164,
-0.3778286576,
0.2275391668,
0.0091680847,
-0.1401444525,
0.2049318403,
0.0773807466,
0.0560774654,
-0.2662170529,
0.3642236292,
-0.0509139113,
0.2151641846,
-0.6167621017,
-0.2342030406,
-0.1764985323,
0.1513809264,
-0.1593511999,
0.4129827917,
-0.1397840083,
0.0939855054,
-0.1402535588,
-0.0286626872,
-0.067769058,
0.1230891496,
-0.1035883427,
0.2747891247,
-0.3578972518,
-0.2949353755,
0.2261707187,
-0.1421803087,
0.2543469071,
-0.4365846813,
-0.1602471769,
-0.233558774,
0.0107783824,
-0.0389848687,
0.4080347717,
-0.0949807614,
0.5220332146,
0.0629382282,
0.3354322612,
0.5877149105,
-0.0117937997,
-0.2971836925,
-0.109594956,
-0.178906247,
-0.2137202919,
-0.4510124624,
-0.0793375224,
0.5294623971,
-0.1782436371,
-0.295573473,
-0.292270422,
0.3045112789,
-0.0391484611,
-0.0277270395,
-0.1796135902,
0.3239206672,
-0.2037034184,
0.2875929475,
0.2503638268,
0.0669569001,
0.1562663913,
0.4125559628,
-0.3301568031,
-0.0906284973,
0.5843916535,
-0.1609608829,
-0.3511348367,
0.0949685574,
0.2776319087,
0.1976287067,
-0.3637202382,
-0.8314563036,
-0.0270134136,
0.2877660096,
0.2366386354,
-0.1023109928,
0.0471828394,
0.0729522556,
-0.0134905428,
0.2048302889,
-0.0837525129,
-0.1040182263,
-0.1719590873,
0.1146994233,
-0.1332052201
] |
https://github.com/huggingface/datasets/issues/2078 | MemoryError when computing WER metric | Hi all,
in my case I was using and older version of datasets and, as @albertvillanova points out, passing the full list of sentences for the metric calculation. The problem was in the way jiwer implements WER, as it tries to compute WER for the full list at once instead of doing it element-wise. I think that with the latest implementation of datasets, or by using the alternative WER function that I've contributed on this [pull request](https://github.com/huggingface/datasets/pull/2169) there shouldn't be memory errors. | Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 82 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
Hi all,
in my case I was using and older version of datasets and, as @albertvillanova points out, passing the full list of sentences for the metric calculation. The problem was in the way jiwer implements WER, as it tries to compute WER for the full list at once instead of doing it element-wise. I think that with the latest implementation of datasets, or by using the alternative WER function that I've contributed on this [pull request](https://github.com/huggingface/datasets/pull/2169) there shouldn't be memory errors. | [
0.1249790788,
-0.2007294297,
0.0587180927,
0.3256507218,
0.4333938956,
0.0737892687,
-0.2180433869,
0.2950878441,
0.0288311616,
0.4309865832,
0.0965305269,
-0.0946349725,
-0.3058879375,
-0.5752209425,
-0.1799838245,
-0.3347721696,
-0.1305913329,
-0.06031394,
-0.0939676613,
0.2673475444,
-0.2414010912,
0.2181446254,
-0.3488658369,
0.1229336485,
-0.071733132,
-0.0110547058,
-0.1759235114,
0.1331793219,
-0.2212717235,
-0.5667486191,
0.3025927544,
-0.3079388738,
0.1904903352,
0.3594332337,
-0.000114279,
0.0282555223,
0.1901024282,
-0.1784470975,
-0.0109600835,
0.1174559817,
-0.1258536577,
-0.1865428388,
-0.1319401562,
-0.0092579871,
-0.0329882279,
0.0375668891,
0.1080690324,
-0.2880085707,
0.0632085875,
0.2449463159,
0.1992428899,
-0.0609457381,
0.2961236835,
-0.2295079976,
-0.1241088808,
-0.1905779988,
0.1977028698,
0.3163279891,
-0.270313561,
-0.1776360869,
-0.2714264989,
0.2580880225,
-0.0427770391,
0.2143144161,
0.093611598,
0.1157600954,
0.0853937864,
0.0110050663,
0.084766686,
-0.2555569708,
0.2671687603,
-0.3263042271,
-0.0301646926,
0.2048875242,
-0.1614336371,
-0.4275713265,
0.1660300493,
0.1187260672,
-0.5047883391,
0.0975699872,
-0.2040273696,
-0.1204809695,
-0.3942310214,
0.1254812777,
-0.0058267862,
0.0910322666,
-0.1965166926,
0.1057426631,
0.3368056118,
0.1566443592,
0.0604361035,
0.206969291,
-0.1233543754,
0.0125258602,
-0.3743090034,
-0.0881423578,
-0.0584864914,
-0.2326194048,
0.1580234468,
-0.5695323348,
0.5826600194,
-0.0841272101,
0.3524421155,
0.4458709955,
-0.2218322605,
0.8173156381,
-0.0972190648,
0.0790161937,
0.0414084867,
0.0784386545,
-0.1152931824,
-0.2438928932,
-0.0898667052,
-0.383959651,
0.2813352942,
0.1884754598,
-0.1235138476,
-0.1992421597,
-0.4400853515,
0.0639663637,
-0.0409356356,
0.1174830049,
0.1261954755,
0.3188080192,
0.1651473343,
0.4893711805,
0.3132434189,
0.0720731094,
-0.1783274114,
0.0621530339,
-0.2334482968,
0.2319100648,
-0.2242505401,
0.0308980197,
0.1252743304,
0.2297960371,
0.3616981506,
-0.2322329581,
0.2106763422,
-0.2574239671,
0.2766292989,
-0.110661,
0.0838679671,
0.2026334256,
-0.0995927826,
-0.0087282136,
0.2297708541,
0.2736264169,
0.0345626026,
0.1165988147,
-0.2128029466,
-0.2432081997,
0.3005087674,
0.1580394804,
-0.0586496703,
0.0679567158,
-0.0645575076,
-0.0057819411,
0.2805487514,
-0.0548927374,
-0.3401752114,
0.0868659616,
-0.7389820814,
-0.2600603998,
0.1528927982,
0.0060367137,
-0.1756755114,
0.0054640025,
0.2558611631,
-0.0120834839,
0.2422097176,
0.0330553316,
0.0680651218,
0.120666936,
-0.2044019848,
-0.1056602076,
0.3498839736,
-0.8443558216,
-0.151117146,
-0.0499686748,
-0.1328817904,
-0.0256580226,
0.2559598982,
-0.214623943,
0.1497690678,
0.1131593585,
0.3785306513,
-0.2864329219,
-0.179553628,
0.0241762027,
-0.1898522973,
-0.1139877588,
0.1790435612,
-0.1413313746,
0.3943665624,
0.0892047286,
0.1655685455,
0.1407640576,
0.2155863196,
-0.0274721719,
0.1473462284,
0.2670478523,
0.2488005012,
-0.6484075785,
0.306063503,
-0.0628644899,
0.1538831592,
0.1872506142,
-0.2421231568,
0.0660024881,
0.4159044921,
0.4293131828,
-0.1300990283,
0.0161141753,
0.0612439364,
-0.1678278446,
0.2202239633,
-0.0615800098,
0.306425035,
-0.2538881302,
-0.0041135624,
0.0725798607,
-0.3613114953,
-0.0806768388,
-0.0067584589,
-0.2327685058,
-0.1088711172,
-0.2220417261,
0.2936438918,
0.1907928288,
0.2006860077,
0.1718479693,
-0.2917717695,
0.35057199,
0.1063390374,
-0.0170481578,
0.1874938309,
0.188412413,
-0.1544377506,
-0.4010764956,
0.2174317241,
-0.028292438,
0.2030494064,
-0.1185925081,
0.236373648,
-0.1250064075,
0.0056332787,
0.3543412983,
0.0527255684,
0.3139891028,
0.1135732755,
0.2762681544,
0.1866981089,
0.143176347,
0.314013958,
-0.4340700805,
-0.2543807328,
-0.3894143105,
0.3616286218,
-0.3148320019,
0.3210273981,
0.1509767473,
-0.1433539093,
0.4951441884,
-0.1373814642,
-0.1780488193,
-0.077505514,
-0.3291460872,
0.4842243195,
0.0247816965,
0.062791869,
0.117373459,
-0.0368324816,
0.1472530961,
0.1195158213,
0.2113157064,
-0.1094560772,
-0.0626855344,
0.211215049,
-0.4670902789,
0.1594256312,
0.1257492006,
0.1019961089,
0.3387945294,
-0.2200199962,
-0.1152894944,
0.2674161196,
0.2180283517,
-0.1320872307,
-0.0435182713,
-0.0258649588,
-0.295453757,
-0.2042063326,
0.3511810303,
0.1040424332,
0.1294223666,
-0.0459423028,
0.2327174544,
0.2416961789,
0.4276041687,
0.211425826,
-0.0255016647,
-0.1811805665,
0.0590604618,
0.021860227,
-0.049709402,
0.1463518441,
0.0862489417,
-0.0498691946,
-0.0435710102,
-0.1804246008,
-0.0071559791,
-0.0013992516,
0.4104414582,
0.2205945998,
0.0727372617,
-0.2366647422,
-0.0322216973,
0.1743237674,
-0.2374213934,
-0.0384945907,
0.5531134009,
-0.0587109402,
0.0892806873,
-0.0565567687,
-0.1715921313,
-0.0936347991,
-0.3964666426,
-0.0207020193,
0.0413864627,
0.1471429467,
-0.1181745231,
0.1409464478,
0.224673003,
0.1708790809,
0.0079455078,
-0.2062764466,
-0.3394730091,
-0.0268057957,
-0.2306410223,
-0.1545539498,
0.0618930832,
0.0176210478,
0.6852976084,
0.1380213946,
-0.1405829489,
-0.4560716152,
0.0017371681,
-0.2098914385,
-0.0303753279,
-0.016083993,
0.2644731104,
-0.0626577586,
-0.1569624245,
-0.2842124104,
-0.0542895198,
0.2124325037,
0.1187747568,
-0.0273833647,
0.0317651369,
0.0322170332,
0.2830832601,
0.5209570527,
0.3953300118,
0.1029955149,
0.2838952839,
0.192132175,
0.0036796909,
0.0900347605,
-0.1075098813,
0.1794604808,
-0.10672535,
-0.1737585217,
0.1160284951,
0.07035923,
-0.1351751387,
-0.1973451078,
-0.0087810457,
0.0846388638,
-0.1840721071,
-0.0214703679,
-0.018806234,
0.5045294762,
0.0923849195,
0.0470352173,
-0.1606874913,
-0.3939408958,
0.1025608778,
-0.0459621698,
0.0670704544,
0.0099263974,
-0.0599402413,
-0.0090088956,
-0.7305295467,
0.2685510516,
0.1123602688,
0.4320124388,
-0.1020111814,
0.052287966,
-0.1586079299,
0.1142673939,
0.4286970198,
-0.064456977,
-0.1765279174,
0.0596212745,
0.0524649024,
-0.1683599353,
0.1471430361,
-0.1711662114,
-0.0384164564,
-0.2613120079,
-0.1168818325,
-0.0820595473,
0.0472741239,
-0.0062200837,
0.3131178021,
-0.1601983905,
-0.250049293,
-0.3472499251,
-0.1220529154,
0.0043927059,
-0.2169686407,
-0.1226404309,
0.089552328,
-0.2176416218,
0.2523512244,
0.0227336604,
-0.2952416837,
0.3482632339,
-0.1124059409,
0.1965743005,
-0.4322447181,
0.1332803667,
0.4644440413,
-0.2072871178,
-0.0170489382,
0.1137063652,
0.0695508569,
-0.281778872,
0.2407567799,
0.2017532587,
0.359578371,
0.0675774068,
-0.2912521362,
0.2509192824,
-0.0361823216,
0.0853484124,
-0.5771863461,
0.1801710427,
0.0886632502,
0.0613385774,
0.1381755471,
-0.0624363795,
0.2326970398,
0.0552652627,
-0.1369006336,
0.2892401218,
-0.0195217617,
-0.26961869,
0.2825178206,
0.2487515211,
0.7941434383,
-0.1485886574,
-0.0610653572,
0.4458683729,
0.0083941296,
-0.0881054997,
-0.2118183374,
0.5530893803,
-0.1516978145,
-0.0146359671,
0.087136358,
-0.223828733,
-0.0913899541,
-0.2526905537,
-0.2605431974,
0.6565311551,
0.0389121771,
-0.1428078711,
0.0865542665,
-0.0474397019,
-0.1187874079,
-0.246584639,
0.2222441286,
0.1842269301,
-0.1877064407,
-0.1484002471,
-0.0387456939,
0.0764234662,
0.0927676708,
-0.3213991523,
-0.2134755999,
0.0094133392,
-0.2341893464,
0.1229038909,
-0.2876665592,
0.1384743303,
-0.0338195339,
0.4129703045,
0.3505010009,
0.134785369,
-0.0439516902,
0.0642215014,
-0.1409432888,
0.0673819631,
0.0816785693,
0.1936233789,
-0.0772471353,
-0.042367477,
-0.2362022102,
0.3239810765,
0.0318995751,
-0.3035769463,
0.0209789574,
0.004149856,
-0.0676419735,
-0.0927415341,
-0.0991552323,
-0.1226341575,
-0.4054274857,
-0.1016838625,
0.166597724,
0.3358543217,
-0.6273185015,
0.3717975616,
0.0599584505,
-0.0581071302,
0.2039711624,
0.3034739196,
0.2402006239,
-0.3711031377,
0.5228540897,
-0.0703088492,
-0.0664503425,
-0.0849606395,
-0.3364023566,
-0.105775252,
0.0251234025,
0.1875853837,
0.2309448868,
0.0863212049,
-0.2148945332,
0.1295985281,
0.0714635625,
0.2860015333,
0.1478192359,
-0.3211325407,
-0.570501864,
0.1984287351,
-0.1343360096,
0.069769606,
-0.4777341783,
-0.2928740978,
-0.5433305502,
0.0197099689,
-0.2649723589,
0.1309407353,
-0.4698499143,
0.1528989822,
-0.0560232103,
-0.1072279587,
0.2412146181,
0.1662406176,
0.1316620409,
0.4861496687,
-0.1609186679,
-0.1148330718,
0.0130821392,
0.0763764381,
-0.0238653049,
-0.1037726104,
0.2343621552,
0.0766252279,
-0.1278422773,
-0.1201297343,
-0.1803637743,
0.272380054,
-0.2416996509,
0.0868963301,
-0.3836641312,
0.0731596127,
0.6001415253,
0.2037328333,
-0.0219241641,
0.2448607683,
0.061567992,
0.2490883321,
-0.1119028777,
-0.058346346,
0.2134887576,
0.1071448103,
-0.1107831299,
-0.243285954,
0.1940628886,
-0.2006396949,
-0.2309132814,
-0.1189454794,
0.225061968,
-0.1795278192,
-0.2697105408,
0.0512615219,
0.1457483768,
0.2108915001,
0.0513855442,
0.178945154,
-0.1412662864,
0.0825062916,
0.058263123,
0.2282674462,
0.1724423021,
-0.2710608244,
-0.0541157797,
-0.0430440344,
0.227781862,
-0.3114748001,
-0.1649620235,
-0.2481333017,
-0.0783554018,
-0.1232031584,
-0.1370625198,
-0.0019345861,
0.3038543761,
0.5290904045,
-0.2573441267,
0.4064503908,
-0.4600451589,
0.07677944,
-0.0782730654,
-0.3895432353,
-0.325919956,
0.3104047775,
0.0393802933,
0.313431114,
-0.3366589844,
0.1221516356,
0.131345585,
0.1683416665,
-0.1511763632,
-0.2036626786,
-0.1160733402,
0.0636430904,
0.1578115225,
-0.3073449731,
0.0246312171,
-0.0502911285,
0.3668286204,
-0.034252543,
0.3742721081,
0.0016253404,
-0.2236440331,
0.2601142228,
-0.0180127416,
0.5469639301,
0.0100534037,
-0.2832669616,
0.1146140918,
0.4181112945,
0.142642498,
0.1386208236,
0.2846040428,
0.4829082489,
0.3588484228,
-0.2767454982,
0.2184022069,
-0.1127003133,
-0.1293807328,
-0.0103219226,
0.2846420407,
0.2454686761,
-0.0023278361,
0.1850485355,
0.0348168164,
-0.0351408347,
-0.1497599334,
0.0099585056,
0.0568037033,
-0.222673133,
0.0570200309,
-0.2153232247,
0.0255850852,
-0.2253831327,
-0.0923115164,
-0.3778286576,
0.2275391668,
0.0091680847,
-0.1401444525,
0.2049318403,
0.0773807466,
0.0560774654,
-0.2662170529,
0.3642236292,
-0.0509139113,
0.2151641846,
-0.6167621017,
-0.2342030406,
-0.1764985323,
0.1513809264,
-0.1593511999,
0.4129827917,
-0.1397840083,
0.0939855054,
-0.1402535588,
-0.0286626872,
-0.067769058,
0.1230891496,
-0.1035883427,
0.2747891247,
-0.3578972518,
-0.2949353755,
0.2261707187,
-0.1421803087,
0.2543469071,
-0.4365846813,
-0.1602471769,
-0.233558774,
0.0107783824,
-0.0389848687,
0.4080347717,
-0.0949807614,
0.5220332146,
0.0629382282,
0.3354322612,
0.5877149105,
-0.0117937997,
-0.2971836925,
-0.109594956,
-0.178906247,
-0.2137202919,
-0.4510124624,
-0.0793375224,
0.5294623971,
-0.1782436371,
-0.295573473,
-0.292270422,
0.3045112789,
-0.0391484611,
-0.0277270395,
-0.1796135902,
0.3239206672,
-0.2037034184,
0.2875929475,
0.2503638268,
0.0669569001,
0.1562663913,
0.4125559628,
-0.3301568031,
-0.0906284973,
0.5843916535,
-0.1609608829,
-0.3511348367,
0.0949685574,
0.2776319087,
0.1976287067,
-0.3637202382,
-0.8314563036,
-0.0270134136,
0.2877660096,
0.2366386354,
-0.1023109928,
0.0471828394,
0.0729522556,
-0.0134905428,
0.2048302889,
-0.0837525129,
-0.1040182263,
-0.1719590873,
0.1146994233,
-0.1332052201
] |
https://github.com/huggingface/datasets/issues/2078 | MemoryError when computing WER metric | @lhoestq i was using Datasets==1.5.0 with 1.6.1 it worked (atleast the first run) but 1.5.0 is not compatible with my preprocessing. i cant save my dataset to a parquet file while using the latest datasets version
->
```
File "../preprocess_dataset.py", line 132, in <module>
pq.write_table(train_dataset.data, f'{resampled_data_dir}/{data_args.dataset_config_name}.train.parquet')
File "/usr/local/lib/python3.8/dist-packages/pyarrow/parquet.py", line 1674, in write_table
writer.write_table(table, row_group_size=row_group_size)
File "/usr/local/lib/python3.8/dist-packages/pyarrow/parquet.py", line 588, in write_table
self.writer.write_table(table, row_group_size=row_group_size)
TypeError: Argument 'table' has incorrect type (expected pyarrow.lib.Table, got ConcatenationTable)
```
if i do
```
import pyarrow.parquet as pq
...
...
pq.write_table(train_dataset.data, 'train.parquet')
pq.write_table(eval_dataset.data, 'eval.parquet')
```
while using 1.6.1. and its working with 1.5.0
| Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
| 96 | MemoryError when computing WER metric
Hi, I'm trying to follow the ASR example to try Wav2Vec. This is the code that I use for WER calculation:
```
wer = load_metric("wer")
print(wer.compute(predictions=result["predicted"], references=result["target"]))
```
However, I receive the following exception:
`Traceback (most recent call last):
File "/home/diego/IpGlobal/wav2vec/test_wav2vec.py", line 51, in <module>
print(wer.compute(predictions=result["predicted"], references=result["target"]))
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/datasets/metric.py", line 403, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/diego/.cache/huggingface/modules/datasets_modules/metrics/wer/73b2d32b723b7fb8f204d785c00980ae4d937f12a65466f8fdf78706e2951281/wer.py", line 94, in _compute
return wer(references, predictions)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 81, in wer
truth, hypothesis, truth_transform, hypothesis_transform, **kwargs
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 192, in compute_measures
H, S, D, I = _get_operation_counts(truth, hypothesis)
File "/home/diego/miniconda3/envs/wav2vec3.6/lib/python3.6/site-packages/jiwer/measures.py", line 273, in _get_operation_counts
editops = Levenshtein.editops(source_string, destination_string)
MemoryError`
My system has more than 10GB of available RAM. Looking at the code, I think that it could be related to the way jiwer does the calculation, as it is pasting all the sentences in a single string before calling Levenshtein editops function.
@lhoestq i was using Datasets==1.5.0 with 1.6.1 it worked (atleast the first run) but 1.5.0 is not compatible with my preprocessing. i cant save my dataset to a parquet file while using the latest datasets version
->
```
File "../preprocess_dataset.py", line 132, in <module>
pq.write_table(train_dataset.data, f'{resampled_data_dir}/{data_args.dataset_config_name}.train.parquet')
File "/usr/local/lib/python3.8/dist-packages/pyarrow/parquet.py", line 1674, in write_table
writer.write_table(table, row_group_size=row_group_size)
File "/usr/local/lib/python3.8/dist-packages/pyarrow/parquet.py", line 588, in write_table
self.writer.write_table(table, row_group_size=row_group_size)
TypeError: Argument 'table' has incorrect type (expected pyarrow.lib.Table, got ConcatenationTable)
```
if i do
```
import pyarrow.parquet as pq
...
...
pq.write_table(train_dataset.data, 'train.parquet')
pq.write_table(eval_dataset.data, 'eval.parquet')
```
while using 1.6.1. and its working with 1.5.0
| [
0.1249790788,
-0.2007294297,
0.0587180927,
0.3256507218,
0.4333938956,
0.0737892687,
-0.2180433869,
0.2950878441,
0.0288311616,
0.4309865832,
0.0965305269,
-0.0946349725,
-0.3058879375,
-0.5752209425,
-0.1799838245,
-0.3347721696,
-0.1305913329,
-0.06031394,
-0.0939676613,
0.2673475444,
-0.2414010912,
0.2181446254,
-0.3488658369,
0.1229336485,
-0.071733132,
-0.0110547058,
-0.1759235114,
0.1331793219,
-0.2212717235,
-0.5667486191,
0.3025927544,
-0.3079388738,
0.1904903352,
0.3594332337,
-0.000114279,
0.0282555223,
0.1901024282,
-0.1784470975,
-0.0109600835,
0.1174559817,
-0.1258536577,
-0.1865428388,
-0.1319401562,
-0.0092579871,
-0.0329882279,
0.0375668891,
0.1080690324,
-0.2880085707,
0.0632085875,
0.2449463159,
0.1992428899,
-0.0609457381,
0.2961236835,
-0.2295079976,
-0.1241088808,
-0.1905779988,
0.1977028698,
0.3163279891,
-0.270313561,
-0.1776360869,
-0.2714264989,
0.2580880225,
-0.0427770391,
0.2143144161,
0.093611598,
0.1157600954,
0.0853937864,
0.0110050663,
0.084766686,
-0.2555569708,
0.2671687603,
-0.3263042271,
-0.0301646926,
0.2048875242,
-0.1614336371,
-0.4275713265,
0.1660300493,
0.1187260672,
-0.5047883391,
0.0975699872,
-0.2040273696,
-0.1204809695,
-0.3942310214,
0.1254812777,
-0.0058267862,
0.0910322666,
-0.1965166926,
0.1057426631,
0.3368056118,
0.1566443592,
0.0604361035,
0.206969291,
-0.1233543754,
0.0125258602,
-0.3743090034,
-0.0881423578,
-0.0584864914,
-0.2326194048,
0.1580234468,
-0.5695323348,
0.5826600194,
-0.0841272101,
0.3524421155,
0.4458709955,
-0.2218322605,
0.8173156381,
-0.0972190648,
0.0790161937,
0.0414084867,
0.0784386545,
-0.1152931824,
-0.2438928932,
-0.0898667052,
-0.383959651,
0.2813352942,
0.1884754598,
-0.1235138476,
-0.1992421597,
-0.4400853515,
0.0639663637,
-0.0409356356,
0.1174830049,
0.1261954755,
0.3188080192,
0.1651473343,
0.4893711805,
0.3132434189,
0.0720731094,
-0.1783274114,
0.0621530339,
-0.2334482968,
0.2319100648,
-0.2242505401,
0.0308980197,
0.1252743304,
0.2297960371,
0.3616981506,
-0.2322329581,
0.2106763422,
-0.2574239671,
0.2766292989,
-0.110661,
0.0838679671,
0.2026334256,
-0.0995927826,
-0.0087282136,
0.2297708541,
0.2736264169,
0.0345626026,
0.1165988147,
-0.2128029466,
-0.2432081997,
0.3005087674,
0.1580394804,
-0.0586496703,
0.0679567158,
-0.0645575076,
-0.0057819411,
0.2805487514,
-0.0548927374,
-0.3401752114,
0.0868659616,
-0.7389820814,
-0.2600603998,
0.1528927982,
0.0060367137,
-0.1756755114,
0.0054640025,
0.2558611631,
-0.0120834839,
0.2422097176,
0.0330553316,
0.0680651218,
0.120666936,
-0.2044019848,
-0.1056602076,
0.3498839736,
-0.8443558216,
-0.151117146,
-0.0499686748,
-0.1328817904,
-0.0256580226,
0.2559598982,
-0.214623943,
0.1497690678,
0.1131593585,
0.3785306513,
-0.2864329219,
-0.179553628,
0.0241762027,
-0.1898522973,
-0.1139877588,
0.1790435612,
-0.1413313746,
0.3943665624,
0.0892047286,
0.1655685455,
0.1407640576,
0.2155863196,
-0.0274721719,
0.1473462284,
0.2670478523,
0.2488005012,
-0.6484075785,
0.306063503,
-0.0628644899,
0.1538831592,
0.1872506142,
-0.2421231568,
0.0660024881,
0.4159044921,
0.4293131828,
-0.1300990283,
0.0161141753,
0.0612439364,
-0.1678278446,
0.2202239633,
-0.0615800098,
0.306425035,
-0.2538881302,
-0.0041135624,
0.0725798607,
-0.3613114953,
-0.0806768388,
-0.0067584589,
-0.2327685058,
-0.1088711172,
-0.2220417261,
0.2936438918,
0.1907928288,
0.2006860077,
0.1718479693,
-0.2917717695,
0.35057199,
0.1063390374,
-0.0170481578,
0.1874938309,
0.188412413,
-0.1544377506,
-0.4010764956,
0.2174317241,
-0.028292438,
0.2030494064,
-0.1185925081,
0.236373648,
-0.1250064075,
0.0056332787,
0.3543412983,
0.0527255684,
0.3139891028,
0.1135732755,
0.2762681544,
0.1866981089,
0.143176347,
0.314013958,
-0.4340700805,
-0.2543807328,
-0.3894143105,
0.3616286218,
-0.3148320019,
0.3210273981,
0.1509767473,
-0.1433539093,
0.4951441884,
-0.1373814642,
-0.1780488193,
-0.077505514,
-0.3291460872,
0.4842243195,
0.0247816965,
0.062791869,
0.117373459,
-0.0368324816,
0.1472530961,
0.1195158213,
0.2113157064,
-0.1094560772,
-0.0626855344,
0.211215049,
-0.4670902789,
0.1594256312,
0.1257492006,
0.1019961089,
0.3387945294,
-0.2200199962,
-0.1152894944,
0.2674161196,
0.2180283517,
-0.1320872307,
-0.0435182713,
-0.0258649588,
-0.295453757,
-0.2042063326,
0.3511810303,
0.1040424332,
0.1294223666,
-0.0459423028,
0.2327174544,
0.2416961789,
0.4276041687,
0.211425826,
-0.0255016647,
-0.1811805665,
0.0590604618,
0.021860227,
-0.049709402,
0.1463518441,
0.0862489417,
-0.0498691946,
-0.0435710102,
-0.1804246008,
-0.0071559791,
-0.0013992516,
0.4104414582,
0.2205945998,
0.0727372617,
-0.2366647422,
-0.0322216973,
0.1743237674,
-0.2374213934,
-0.0384945907,
0.5531134009,
-0.0587109402,
0.0892806873,
-0.0565567687,
-0.1715921313,
-0.0936347991,
-0.3964666426,
-0.0207020193,
0.0413864627,
0.1471429467,
-0.1181745231,
0.1409464478,
0.224673003,
0.1708790809,
0.0079455078,
-0.2062764466,
-0.3394730091,
-0.0268057957,
-0.2306410223,
-0.1545539498,
0.0618930832,
0.0176210478,
0.6852976084,
0.1380213946,
-0.1405829489,
-0.4560716152,
0.0017371681,
-0.2098914385,
-0.0303753279,
-0.016083993,
0.2644731104,
-0.0626577586,
-0.1569624245,
-0.2842124104,
-0.0542895198,
0.2124325037,
0.1187747568,
-0.0273833647,
0.0317651369,
0.0322170332,
0.2830832601,
0.5209570527,
0.3953300118,
0.1029955149,
0.2838952839,
0.192132175,
0.0036796909,
0.0900347605,
-0.1075098813,
0.1794604808,
-0.10672535,
-0.1737585217,
0.1160284951,
0.07035923,
-0.1351751387,
-0.1973451078,
-0.0087810457,
0.0846388638,
-0.1840721071,
-0.0214703679,
-0.018806234,
0.5045294762,
0.0923849195,
0.0470352173,
-0.1606874913,
-0.3939408958,
0.1025608778,
-0.0459621698,
0.0670704544,
0.0099263974,
-0.0599402413,
-0.0090088956,
-0.7305295467,
0.2685510516,
0.1123602688,
0.4320124388,
-0.1020111814,
0.052287966,
-0.1586079299,
0.1142673939,
0.4286970198,
-0.064456977,
-0.1765279174,
0.0596212745,
0.0524649024,
-0.1683599353,
0.1471430361,
-0.1711662114,
-0.0384164564,
-0.2613120079,
-0.1168818325,
-0.0820595473,
0.0472741239,
-0.0062200837,
0.3131178021,
-0.1601983905,
-0.250049293,
-0.3472499251,
-0.1220529154,
0.0043927059,
-0.2169686407,
-0.1226404309,
0.089552328,
-0.2176416218,
0.2523512244,
0.0227336604,
-0.2952416837,
0.3482632339,
-0.1124059409,
0.1965743005,
-0.4322447181,
0.1332803667,
0.4644440413,
-0.2072871178,
-0.0170489382,
0.1137063652,
0.0695508569,
-0.281778872,
0.2407567799,
0.2017532587,
0.359578371,
0.0675774068,
-0.2912521362,
0.2509192824,
-0.0361823216,
0.0853484124,
-0.5771863461,
0.1801710427,
0.0886632502,
0.0613385774,
0.1381755471,
-0.0624363795,
0.2326970398,
0.0552652627,
-0.1369006336,
0.2892401218,
-0.0195217617,
-0.26961869,
0.2825178206,
0.2487515211,
0.7941434383,
-0.1485886574,
-0.0610653572,
0.4458683729,
0.0083941296,
-0.0881054997,
-0.2118183374,
0.5530893803,
-0.1516978145,
-0.0146359671,
0.087136358,
-0.223828733,
-0.0913899541,
-0.2526905537,
-0.2605431974,
0.6565311551,
0.0389121771,
-0.1428078711,
0.0865542665,
-0.0474397019,
-0.1187874079,
-0.246584639,
0.2222441286,
0.1842269301,
-0.1877064407,
-0.1484002471,
-0.0387456939,
0.0764234662,
0.0927676708,
-0.3213991523,
-0.2134755999,
0.0094133392,
-0.2341893464,
0.1229038909,
-0.2876665592,
0.1384743303,
-0.0338195339,
0.4129703045,
0.3505010009,
0.134785369,
-0.0439516902,
0.0642215014,
-0.1409432888,
0.0673819631,
0.0816785693,
0.1936233789,
-0.0772471353,
-0.042367477,
-0.2362022102,
0.3239810765,
0.0318995751,
-0.3035769463,
0.0209789574,
0.004149856,
-0.0676419735,
-0.0927415341,
-0.0991552323,
-0.1226341575,
-0.4054274857,
-0.1016838625,
0.166597724,
0.3358543217,
-0.6273185015,
0.3717975616,
0.0599584505,
-0.0581071302,
0.2039711624,
0.3034739196,
0.2402006239,
-0.3711031377,
0.5228540897,
-0.0703088492,
-0.0664503425,
-0.0849606395,
-0.3364023566,
-0.105775252,
0.0251234025,
0.1875853837,
0.2309448868,
0.0863212049,
-0.2148945332,
0.1295985281,
0.0714635625,
0.2860015333,
0.1478192359,
-0.3211325407,
-0.570501864,
0.1984287351,
-0.1343360096,
0.069769606,
-0.4777341783,
-0.2928740978,
-0.5433305502,
0.0197099689,
-0.2649723589,
0.1309407353,
-0.4698499143,
0.1528989822,
-0.0560232103,
-0.1072279587,
0.2412146181,
0.1662406176,
0.1316620409,
0.4861496687,
-0.1609186679,
-0.1148330718,
0.0130821392,
0.0763764381,
-0.0238653049,
-0.1037726104,
0.2343621552,
0.0766252279,
-0.1278422773,
-0.1201297343,
-0.1803637743,
0.272380054,
-0.2416996509,
0.0868963301,
-0.3836641312,
0.0731596127,
0.6001415253,
0.2037328333,
-0.0219241641,
0.2448607683,
0.061567992,
0.2490883321,
-0.1119028777,
-0.058346346,
0.2134887576,
0.1071448103,
-0.1107831299,
-0.243285954,
0.1940628886,
-0.2006396949,
-0.2309132814,
-0.1189454794,
0.225061968,
-0.1795278192,
-0.2697105408,
0.0512615219,
0.1457483768,
0.2108915001,
0.0513855442,
0.178945154,
-0.1412662864,
0.0825062916,
0.058263123,
0.2282674462,
0.1724423021,
-0.2710608244,
-0.0541157797,
-0.0430440344,
0.227781862,
-0.3114748001,
-0.1649620235,
-0.2481333017,
-0.0783554018,
-0.1232031584,
-0.1370625198,
-0.0019345861,
0.3038543761,
0.5290904045,
-0.2573441267,
0.4064503908,
-0.4600451589,
0.07677944,
-0.0782730654,
-0.3895432353,
-0.325919956,
0.3104047775,
0.0393802933,
0.313431114,
-0.3366589844,
0.1221516356,
0.131345585,
0.1683416665,
-0.1511763632,
-0.2036626786,
-0.1160733402,
0.0636430904,
0.1578115225,
-0.3073449731,
0.0246312171,
-0.0502911285,
0.3668286204,
-0.034252543,
0.3742721081,
0.0016253404,
-0.2236440331,
0.2601142228,
-0.0180127416,
0.5469639301,
0.0100534037,
-0.2832669616,
0.1146140918,
0.4181112945,
0.142642498,
0.1386208236,
0.2846040428,
0.4829082489,
0.3588484228,
-0.2767454982,
0.2184022069,
-0.1127003133,
-0.1293807328,
-0.0103219226,
0.2846420407,
0.2454686761,
-0.0023278361,
0.1850485355,
0.0348168164,
-0.0351408347,
-0.1497599334,
0.0099585056,
0.0568037033,
-0.222673133,
0.0570200309,
-0.2153232247,
0.0255850852,
-0.2253831327,
-0.0923115164,
-0.3778286576,
0.2275391668,
0.0091680847,
-0.1401444525,
0.2049318403,
0.0773807466,
0.0560774654,
-0.2662170529,
0.3642236292,
-0.0509139113,
0.2151641846,
-0.6167621017,
-0.2342030406,
-0.1764985323,
0.1513809264,
-0.1593511999,
0.4129827917,
-0.1397840083,
0.0939855054,
-0.1402535588,
-0.0286626872,
-0.067769058,
0.1230891496,
-0.1035883427,
0.2747891247,
-0.3578972518,
-0.2949353755,
0.2261707187,
-0.1421803087,
0.2543469071,
-0.4365846813,
-0.1602471769,
-0.233558774,
0.0107783824,
-0.0389848687,
0.4080347717,
-0.0949807614,
0.5220332146,
0.0629382282,
0.3354322612,
0.5877149105,
-0.0117937997,
-0.2971836925,
-0.109594956,
-0.178906247,
-0.2137202919,
-0.4510124624,
-0.0793375224,
0.5294623971,
-0.1782436371,
-0.295573473,
-0.292270422,
0.3045112789,
-0.0391484611,
-0.0277270395,
-0.1796135902,
0.3239206672,
-0.2037034184,
0.2875929475,
0.2503638268,
0.0669569001,
0.1562663913,
0.4125559628,
-0.3301568031,
-0.0906284973,
0.5843916535,
-0.1609608829,
-0.3511348367,
0.0949685574,
0.2776319087,
0.1976287067,
-0.3637202382,
-0.8314563036,
-0.0270134136,
0.2877660096,
0.2366386354,
-0.1023109928,
0.0471828394,
0.0729522556,
-0.0134905428,
0.2048302889,
-0.0837525129,
-0.1040182263,
-0.1719590873,
0.1146994233,
-0.1332052201
] |
https://github.com/huggingface/datasets/issues/2076 | Issue: Dataset download error | Hi @XuhuiZhou, thanks for reporting this issue.
Indeed, the old links are no longer valid (404 Not Found error), and the script must be updated with the new links to Google Drive. | 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? | 32 | 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, thanks for reporting this issue.
Indeed, the old links are no longer valid (404 Not Found error), and the script must be updated with the new links to Google Drive. | [
-0.2337626666,
0.1458085179,
0.0028067864,
-0.0309508629,
-0.0274383631,
0.082448557,
0.3759455979,
0.2059571594,
0.1537596434,
0.0144034699,
0.1848477423,
-0.1723964065,
0.2339598387,
0.2969171703,
0.1645154059,
-0.0703356713,
0.1124435365,
0.0390216783,
-0.2078587562,
0.0084466413,
-0.3404219449,
0.2083997428,
-0.3360631168,
0.077654168,
-0.1339363754,
0.1082168445,
-0.23428756,
0.2046139836,
0.0053032003,
-0.5016641617,
0.1856248528,
0.2496990263,
0.255178988,
0.2303707004,
-0.0001261119,
-0.0265722424,
0.4359162152,
-0.1366342306,
-0.2173589915,
0.099079743,
-0.4538171887,
-0.2230210602,
-0.1618052721,
-0.3308691382,
0.2659608424,
-0.1933161914,
0.1802406907,
0.3238401413,
0.1627965868,
0.5249043107,
0.0954555571,
0.244039923,
0.3832682967,
-0.0178592484,
0.0295931362,
-0.1398883909,
0.0056166947,
0.2431162894,
0.167178899,
-0.1312989593,
0.193474561,
0.2265264243,
-0.0200184211,
0.0947974995,
0.2447731197,
0.0861288011,
0.2219016254,
-0.4831432402,
0.2752978802,
0.074056372,
0.9506680369,
-0.3367395997,
-0.3953086138,
0.0342551097,
0.1537053436,
-0.0347728021,
0.2187416255,
-0.0993443727,
-0.076619193,
0.1927042902,
-0.0719741881,
-0.4454042315,
-0.2641426921,
0.2948845923,
-0.0705401748,
0.6482884288,
0.2004719377,
0.1531992257,
0.194313705,
-0.0314073414,
0.3032344878,
0.1202324703,
-0.197254464,
-0.0020125918,
0.2240179926,
-0.225764811,
-0.1425871998,
0.1321186423,
-0.0379860662,
0.0900661945,
-0.0158377215,
-0.0804633722,
-0.1313906312,
0.0318032056,
0.2977489531,
-0.0259648636,
-0.0639488995,
-0.1357342601,
0.5959560871,
0.4367473423,
0.1359975338,
-0.0484646112,
0.2467376292,
-0.5086384416,
-0.0841766223,
0.1293987036,
0.3410678804,
-0.0649034902,
-0.2402127087,
-0.3356490433,
0.0078361109,
-0.1144976765,
-0.1429985911,
0.2463043779,
-0.0248054024,
0.0981619656,
0.049098447,
0.1763308346,
-0.0579825342,
-0.2141545117,
0.0657004565,
0.1828425676,
0.0734449849,
0.0571351349,
0.1977762133,
0.23205024,
-0.0572202019,
-0.0442004316,
-0.3850718737,
-0.2132742703,
-0.2779670656,
0.0655522048,
0.0705888495,
-0.0053244419,
-0.0922139809,
0.1173287481,
-0.0756690577,
-0.1958310604,
-0.1742604673,
0.3008242548,
-0.4043313563,
-0.1922466457,
-0.1143397316,
-0.0011619688,
-0.2243247777,
-0.3667366803,
0.1075002924,
0.0201695357,
-0.3128473759,
-0.3899010122,
-0.0386797041,
-0.087228328,
-0.3737511337,
-0.1814857423,
0.1254689544,
0.7528218627,
-0.547804594,
-0.2115308642,
-0.2793198526,
-0.2170638144,
0.0229440276,
0.2886828482,
-0.1325901002,
0.3553582132,
-0.4054449499,
0.129545331,
0.5153884888,
-0.417206049,
-0.7371989489,
0.1446789205,
-0.0059496686,
-0.1772408783,
0.1121799052,
0.1850418895,
0.1248528659,
-0.2103365064,
-0.4866013825,
0.1159007922,
-0.0161944367,
0.0633500144,
-0.1106216609,
-0.557513535,
0.3404839933,
0.0558742583,
0.263451159,
0.2367097586,
0.4612346888,
-0.0207832307,
0.4065785408,
-0.0609177426,
0.1000964642,
0.3868407011,
0.4776049554,
0.0447236598,
0.2310121059,
0.0881082565,
-0.4134585261,
0.1487099975,
0.1035042405,
0.0112763932,
-0.3565675616,
-0.0582168996,
-0.4483053386,
-0.1214277297,
-0.2669527531,
0.0149108451,
-0.0321031585,
0.0315880589,
0.0605463237,
0.0501003116,
-0.1429136246,
0.0495220423,
-0.1035648882,
-0.0192488395,
0.0885354951,
0.5486962199,
-0.1757846326,
-0.0942083076,
0.1593253464,
0.1271206588,
0.232812956,
-0.2303652912,
-0.1200083867,
0.4031570554,
-0.2489539236,
0.4772262871,
0.3295178115,
0.3072069883,
0.1701678336,
-0.408967644,
0.2946336269,
0.4525774717,
0.0123852119,
0.0576630086,
-0.1450584531,
-0.1638090312,
0.0704361796,
0.2487748414,
0.0597917512,
0.0034617856,
0.1770112365,
-0.2544128895,
0.0570457056,
-0.1840038747,
-0.3074971735,
-0.196154967,
-0.097558327,
-0.2141677886,
-0.0272732079,
0.194445461,
0.5489947796,
-0.0981292054,
0.2854130566,
0.3537485003,
-0.0131099112,
-0.1059929878,
-0.1862700731,
0.6357643604,
0.3474351764,
-0.0694109946,
-0.1281585991,
0.1623583734,
0.2249324322,
-0.1026632637,
0.2864804268,
0.110124357,
-0.2034561336,
0.1419661939,
-0.080732584,
-0.1086298525,
-0.0259585604,
0.0884378627,
0.1489773691,
0.3354447782,
-0.3748236895,
-0.0133951083,
-0.351146102,
-0.4899001122,
-0.355889976,
0.4411513209,
-0.2762396038,
-0.3060367405,
-0.0208473094,
0.3651286066,
-0.1554070413,
0.1203491911,
0.14822869,
0.3038351536,
0.0550498068,
-0.0216295086,
-0.3250442445,
-0.093260251,
-0.1645986438,
-0.062913999,
0.3674083054,
0.0479610637,
0.0950698033,
-0.5916243792,
-0.0839567408,
-1.030079484,
-0.0702772439,
0.0633478612,
0.1601596177,
0.1411258876,
0.2158607244,
0.3985546529,
0.1617074311,
-0.0413312986,
0.1102820337,
-0.2546849847,
0.1499238461,
-0.2434186041,
-0.148888275,
0.132991448,
0.0021189153,
-0.1931250989,
-0.5508329272,
-0.1271966994,
0.1204160973,
-0.0660436004,
0.0839748681,
-0.113225095,
0.2934364676,
-0.2033243626,
0.2035324275,
-0.3117201626,
0.1289834678,
0.3097100258,
0.4342478812,
-0.0575688519,
-0.3968016505,
0.2718304992,
0.1163848788,
-0.0004381407,
-0.0436472893,
-0.5142812729,
-0.1939066499,
0.0119602066,
0.2472348809,
-0.0632778555,
0.3359136581,
0.1272757947,
0.1365231574,
0.0328030586,
0.0075825974,
-0.223025918,
-0.1242372543,
0.3777464628,
0.5201425552,
0.5347800255,
0.4276019335,
-0.1535901129,
0.2914150655,
-0.1811152697,
0.0489289016,
0.3592681885,
-0.3136165142,
0.2962456644,
0.1020000428,
-0.2116550952,
0.1593255252,
-0.1649797559,
0.0663417503,
0.2345593125,
-0.0905942023,
-0.039040681,
-0.0410174951,
-0.261856854,
-0.3001762033,
-0.4504910409,
-0.2143328786,
0.5330834389,
0.2515186071,
0.2891176939,
0.0485671461,
-0.2502551675,
-0.1967386007,
0.4842903316,
0.3863710463,
0.0330066122,
0.1109357625,
0.2658002675,
-0.1529663652,
-0.4952214062,
0.2937278748,
0.1064505279,
0.3704384863,
-0.0387927741,
0.1575805545,
0.0535716675,
-0.1242310703,
0.5772591233,
-0.2539205849,
0.2622446418,
0.0684634,
0.4507424831,
0.2348898649,
-0.1190131158,
-0.1213348806,
0.2323836088,
0.2770282924,
0.0421763733,
-0.0232235491,
-0.2797361016,
0.4637603164,
0.3966561258,
-0.219831109,
-0.1668151468,
0.0358489305,
-0.4945954978,
-0.5470477939,
-0.1587891579,
-0.0464203134,
-0.1277839243,
-0.2064091563,
0.1471784562,
0.2195530236,
-0.4050368071,
-0.1216312796,
-0.0795788839,
0.3472929597,
0.3004160523,
-0.1756516397,
0.0963395685,
-0.1135499924,
0.0484543964,
0.2051050216,
0.0558822565,
-0.0908670723,
-0.040581964,
-0.2574219704,
-0.0985093936,
0.3127678037,
-0.0970451236,
0.0623669401,
0.0962249488,
0.090565607,
-0.0373132117,
-0.0823155418,
0.4640599191,
-0.1007035077,
-0.3637644947,
-0.3087794483,
0.3928524852,
-0.1518969238,
-0.1130240634,
0.3743215501,
0.2573765814,
-0.2176195532,
-0.1212863624,
-0.1908545047,
0.7290431857,
0.1189945638,
0.0608186871,
0.2324611098,
-0.1031744033,
0.392885834,
0.0442275703,
0.1866859645,
-0.3072915971,
0.0135657862,
-0.1269169301,
0.0699343458,
-0.2178972363,
0.3358355463,
-0.1396816522,
0.5958753228,
0.0264238566,
0.0196546391,
0.1223938465,
0.4716738462,
-0.160915941,
0.1347672641,
0.021793291,
0.0155310854,
0.0058715427,
0.3723072112,
-0.2040600181,
-0.1112761796,
0.1404047757,
-0.2147953212,
-0.5518468618,
0.0312193632,
-0.2196575105,
0.2581176162,
-0.1295251846,
-0.2145427912,
0.2832957506,
0.2206098139,
0.237662077,
0.0511692613,
-0.3972943723,
0.3764603734,
-0.1678474545,
-0.1342570931,
-0.0164701082,
0.4251861572,
-0.0932801515,
-0.1290360987,
-0.5057973862,
-0.066525802,
-0.0633845925,
-0.4335300624,
0.0353138447,
-0.143642962,
0.2073923349,
0.0223260783,
-0.2601281703,
-0.1609869897,
-0.2571824491,
-0.3202687502,
0.0321982652,
-0.1532749832,
0.2593231797,
0.2261021584,
-0.3166196644,
-0.099711597,
0.022773033,
0.3828009665,
-0.3625805378,
-0.1783669889,
0.7151677608,
0.2753103375,
0.0341884643,
-0.2545826435,
-0.1098652929,
-0.2667805552,
-0.5026062727,
0.2774844468,
0.0283323601,
0.2976669967,
-0.1477476805,
0.391497463,
-0.0281555299,
0.3012158275,
-0.3247282505,
-0.462377131,
-0.1138151065,
0.1630941033,
0.3029044271,
0.2098997533,
-0.1154576018,
-0.1208951324,
0.2744279504,
-0.7727937698,
-0.1710739434,
0.1700763106,
0.1075910553,
-0.149192214,
0.6299340725,
0.2635002434,
0.1223267466,
0.0482028984,
-0.0152931903,
-0.0889605433,
0.1578665078,
0.0107661374,
-0.1816474795,
0.1998369396,
-0.1018726081,
-0.3029547632,
-0.0435120538,
-0.3821091652,
-0.0914797038,
0.0892079324,
-0.0704930127,
0.1908292919,
-0.095410198,
0.1595569998,
0.2407399118,
-0.2178869098,
-0.1527135074,
0.1699922532,
0.1581744701,
0.6770740747,
0.0224985592,
0.5906766653,
0.0715456903,
0.2081636935,
0.1268260926,
-0.0272111893,
-0.0118101053,
-0.0902829915,
0.2888884544,
-0.1499812007,
0.0181564391,
0.1129631549,
0.049914293,
0.5606859922,
-0.324429661,
-0.1388920248,
0.1753301919,
0.0103012025,
-0.3160131276,
-0.2641209066,
0.0585894212,
-0.1067056805,
-0.0889440775,
0.0581991374,
0.200395152,
-0.1789781749,
0.2719348669,
0.1372806579,
0.5460575819,
-0.2183975875,
-0.0025362261,
0.1830999404,
0.083923623,
0.0638807863,
-0.1288947165,
-0.0195840094,
0.1315481067,
0.2045426071,
-0.2031111121,
-0.1803327203,
0.0513300411,
0.2913496196,
-0.1182783693,
-0.3024703562,
0.0350257196,
-0.1756964922,
-0.0054639615,
-0.0331739783,
0.1636321545,
-0.0354049653,
0.0091177113,
0.017628748,
-0.2669947743,
0.3506842554,
0.3031771481,
-0.1372587979,
-0.075266771,
-0.2641394138,
-0.1847485304,
0.152607128,
-0.1008404791,
-0.1865112185,
-0.1494011879,
0.1171887964,
-0.0281914733,
0.0020575728,
0.0397117287,
-0.1866709143,
0.3073958755,
-0.213927269,
0.0651062205,
0.1143326536,
0.0419492051,
0.2495667189,
0.3084134459,
0.397680372,
0.2047302723,
0.193273291,
0.0353637934,
-0.0516659878,
-0.1282116473,
0.1300672293,
-0.0342163518,
0.0622275583,
0.0144373979,
0.1851659417,
0.0652069971,
0.0129530989,
-0.2733805776,
0.0699009299,
0.0067422874,
-0.0596712753,
0.1353977025,
-0.1359249949,
-0.1752941012,
-0.391339004,
0.1247339621,
-0.2187498212,
-0.2254518867,
0.2953241765,
-0.0370715186,
0.0295268707,
0.0159365498,
-0.0137185268,
-0.0635181665,
0.3564922512,
0.3876613081,
0.266204536,
-0.275008142,
-0.3162676394,
-0.650807023,
0.0528050102,
-0.0115177017,
-0.0463801585,
-0.0717249811,
0.0346123129,
-0.4731674194,
-0.2058361769,
0.6622771025,
0.3213906288,
0.0657564849,
0.0941253453,
-0.0088428631,
-0.2726200223,
-0.0666334331,
0.4215424657,
-0.0503572822,
-0.3091488779,
0.1369161159,
-0.2878558934,
-0.1207705587,
0.0265604593,
-0.1604082286,
-0.0896117166,
-0.1639434844,
0.4298083782,
-0.0328954235,
0.3747121096,
-0.1414086223,
-0.2511020303,
-0.47560817,
-0.305354625,
-0.2396208644,
0.2357251793,
-0.0646790564,
0.0401483774,
0.0480128452,
0.3212933838,
-0.4206643105,
0.1166843474,
-0.1158881187,
0.2996490002,
-0.1811910868,
0.0739008188,
-0.0550208092,
0.1277780086,
0.3625872731,
-0.119777441,
-0.1424407512,
0.0054812878,
-0.3037089407,
-0.0694790557,
0.3491156101,
0.0033649839,
-0.1348214149,
-0.1744973809,
0.3634095192,
-0.0651313812,
-0.0328344256,
-0.2893851399,
0.0206732154,
0.1345504522,
0.2909770012,
0.0081330687,
-0.0106984489,
-0.0847699791,
0.0984795839,
0.1847166866,
-0.0131015033,
0.2195800841,
-0.3208526373,
-0.077685073,
-0.0505717397
] |
https://github.com/huggingface/datasets/issues/2076 | Issue: Dataset download error | It would be nice to update the urls indeed !
To do this, you just need to replace the urls in `iwslt2017.py` and then update the dataset_infos.json file with
```
datasets-cli test ./datasets/iwslt2017 --all_configs --save_infos --ignore_verifications
``` | 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? | 37 | 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?
It would be nice to update the urls indeed !
To do this, you just need to replace the urls in `iwslt2017.py` and then update the dataset_infos.json file with
```
datasets-cli test ./datasets/iwslt2017 --all_configs --save_infos --ignore_verifications
``` | [
-0.2658805549,
0.1200054288,
-0.0836952627,
-0.1060315892,
-0.0561512448,
0.013199158,
0.1135269925,
0.3138658404,
0.1883041859,
-0.0665743649,
0.0962728336,
0.0473742113,
0.2630380094,
0.2957364321,
0.0410313718,
0.0087642372,
0.0977707505,
-0.0120598227,
-0.2833592296,
0.0477567464,
-0.40100649,
0.1854476631,
-0.3126531839,
-0.0935631692,
-0.0601684749,
0.1259150803,
-0.3016756773,
0.1154679805,
-0.0281024631,
-0.626331985,
0.2720079124,
0.3913549185,
0.3162033558,
0.1880387813,
-0.0001158188,
-0.1218976453,
0.3769316971,
-0.1369827837,
-0.2984446287,
0.043584127,
-0.6287519932,
-0.3450362086,
-0.1360735595,
-0.2700529993,
0.2266826034,
-0.3958934546,
0.0692491904,
0.2054875791,
0.1902896315,
0.5130623579,
0.1835778058,
0.3192788959,
0.2641098797,
-0.0636400729,
-0.0598327853,
-0.0225948468,
0.0009521395,
0.0705708861,
0.2730742693,
-0.1185737103,
0.2492120117,
0.2715385854,
-0.0152355582,
0.0100924447,
0.2788783312,
-0.0789462179,
0.2402884662,
-0.4742940962,
0.1814896762,
-0.0224349797,
0.8869276047,
-0.302160114,
-0.4625475407,
0.1310069114,
0.0809329823,
-0.0163424015,
0.0607642271,
-0.0797374919,
-0.1218894869,
0.2370421588,
-0.1727013588,
-0.4722520709,
-0.2464633286,
0.333992362,
0.1414071918,
0.6231669188,
0.1615862548,
0.1888068169,
0.1574319005,
-0.1041221619,
0.2951928377,
0.0304812193,
-0.232018441,
0.0254932418,
-0.0074015018,
-0.2957543731,
-0.0889701098,
0.0468945503,
0.0084473565,
0.233086884,
-0.0686242729,
0.0362837017,
-0.1587980688,
-0.0047764685,
0.2110503018,
0.0406271331,
0.1961813569,
-0.008839,
0.4371443987,
0.6046850681,
0.1306503713,
-0.0418736041,
0.2024902701,
-0.3794599175,
-0.2645076513,
0.1908557862,
0.2263666689,
-0.1044934094,
-0.1037600785,
-0.2227147818,
0.0441982001,
-0.126834482,
-0.0476009846,
0.2771444619,
-0.1958621144,
0.2930208445,
0.1614926457,
0.1268990338,
-0.0220556036,
-0.2848352492,
-0.0018291548,
0.076997593,
0.043014884,
0.1160064861,
0.1961964369,
0.3151429892,
0.1433610916,
-0.0962004513,
-0.3094975948,
-0.129516542,
-0.1571160257,
0.2209687829,
0.1312755048,
0.0491552353,
-0.1215958595,
0.2386567742,
-0.0439964645,
-0.0227945894,
-0.1235122606,
0.2856397629,
-0.2518401742,
-0.205399245,
-0.1939590424,
0.0960124657,
-0.1884025335,
-0.3877755702,
0.0536033139,
-0.0562482849,
-0.2581742704,
-0.350361526,
0.0141829625,
-0.0462334417,
-0.3027748466,
-0.1621433496,
0.1841403991,
0.5909867883,
-0.4561740458,
-0.1229092255,
-0.1829645187,
-0.2061738819,
0.0710776597,
0.1980035752,
-0.1920289397,
0.1715584099,
-0.1458819062,
0.0955496132,
0.5259152055,
-0.4413203597,
-0.5953445435,
0.2981191576,
0.0802381188,
-0.1355932057,
0.0588277392,
0.2166189998,
0.0263026543,
-0.2233214378,
-0.5292844772,
0.1446313411,
-0.0034890845,
0.1147143915,
-0.2648130655,
-0.5547558665,
0.2628457248,
0.0557121038,
0.0934379771,
0.1474310309,
0.2381833047,
0.1280943453,
0.5918654203,
-0.088500157,
0.1206208616,
0.2447382063,
0.4602721632,
0.2188755125,
0.2180590481,
0.1307164431,
-0.3153165281,
0.1767422855,
0.101561971,
0.0456397571,
-0.3460797966,
-0.1567670703,
-0.4196775258,
-0.0620038286,
-0.2741812766,
-0.2161061317,
0.065920122,
0.158360213,
0.1244071126,
-0.121325165,
-0.2550234497,
0.1691551059,
-0.2095875442,
-0.0120717101,
-0.0166060887,
0.4373680353,
-0.1722994745,
0.0374261551,
0.0834374428,
0.0616311096,
0.1808363795,
-0.2504229248,
-0.2579284608,
0.6097428203,
-0.2146879435,
0.2997117341,
0.4298554957,
0.1492435783,
0.1207439676,
-0.3250735998,
0.2012683004,
0.4072022438,
-0.0089438483,
0.170787096,
-0.067206718,
-0.1860924363,
-0.0213032775,
0.4060422182,
0.0932734013,
-0.0004357696,
0.1702741683,
-0.224917531,
-0.0809179991,
-0.2327187955,
-0.2935732007,
-0.1963058859,
-0.2587291002,
-0.1721240729,
0.0489451587,
0.2477433532,
0.4090798795,
-0.0953666493,
0.0576704703,
0.3085028529,
0.0654462278,
-0.0970144197,
-0.1172314286,
0.6027160287,
0.3352912962,
-0.0526722223,
-0.2476410568,
0.1453817934,
0.2162249386,
-0.091025807,
0.2975564897,
0.1390433162,
-0.0856263638,
0.0401936732,
-0.0481899716,
-0.0874650553,
0.0182937533,
-0.0237716734,
0.1500091553,
0.377141118,
-0.2876277864,
-0.0323109254,
-0.3990882635,
-0.5441101789,
-0.2596680522,
0.2256847322,
-0.1787065864,
-0.338288337,
0.0340353176,
0.2766570747,
-0.1662930846,
0.2912936211,
0.0830884576,
0.2072328627,
-0.0298418552,
0.1257418394,
-0.2831585109,
-0.1041710004,
-0.1987838,
-0.005161196,
0.3439478576,
0.0879266113,
0.1258616149,
-0.5627509356,
-0.1183176935,
-0.8395567536,
-0.0598168597,
-0.1080492735,
0.1796330512,
0.1123824641,
0.2555808425,
0.4747666419,
0.2410742491,
-0.1111323684,
0.2254040092,
-0.1684917063,
0.2313164324,
-0.35954988,
-0.0888079852,
0.0528104343,
-0.0316063091,
-0.3374094665,
-0.4721328318,
-0.2592508793,
0.0998062193,
-0.0883099735,
0.1336276084,
-0.0836946964,
0.3151406944,
-0.256166935,
0.033276435,
-0.2438776195,
0.0764200091,
0.1267908663,
0.3804920018,
-0.1830555499,
-0.4039412439,
0.1734006107,
0.1466892362,
0.163040176,
-0.1210625768,
-0.4460037351,
-0.212723285,
0.0524975285,
0.1790833771,
-0.0879116654,
0.3145512044,
0.0866707265,
0.0773893744,
-0.060098961,
-0.0604951009,
-0.1283686012,
-0.1422707736,
0.2520175576,
0.6086517572,
0.3990358412,
0.365360558,
-0.0140843838,
0.2753289938,
-0.0019122288,
-0.0331551135,
0.288521111,
-0.2751230896,
0.263446033,
0.1812662482,
-0.3473008275,
0.0599864721,
-0.134778291,
0.1323148459,
0.1809362024,
-0.0634689406,
0.0471934825,
-0.0834675506,
-0.2222915143,
-0.2062917948,
-0.3979877532,
-0.1004896611,
0.4765739441,
0.2636371255,
0.3525410295,
0.0868990049,
-0.3535329401,
-0.1067999154,
0.4027785063,
0.3336623907,
-0.0035472736,
0.0683810413,
0.0228772089,
-0.1878338307,
-0.3891739547,
0.3738923073,
0.1154215112,
0.3910484314,
0.1219122037,
0.0870749801,
0.0079194494,
-0.1195586026,
0.6106877923,
-0.4253920913,
0.1043016165,
0.0488904864,
0.4268630743,
-0.1118371189,
-0.1418842077,
-0.0411710776,
0.2548782825,
0.2616055608,
0.0971639827,
0.0374436975,
-0.339962244,
0.3474557698,
0.3804402351,
-0.2724183798,
-0.1804115772,
0.1298930943,
-0.4039518833,
-0.6693723202,
-0.2616963089,
-0.1312411875,
-0.1188314036,
-0.1276835948,
0.1464577913,
0.3342534304,
-0.1344385743,
-0.1007191092,
0.1044344455,
0.1917996407,
0.5774641037,
-0.0842703059,
-0.0353934653,
-0.1307766587,
0.1626767665,
0.1719176471,
-0.0485263541,
-0.1981221735,
-0.2173079252,
-0.1212560683,
0.0316819102,
0.2801333666,
-0.033783976,
0.0714719892,
0.1753661931,
0.1817182451,
0.026415579,
0.1469887495,
0.5127030015,
-0.1981015503,
-0.2774859965,
-0.5861620903,
0.3841050863,
-0.1813441515,
-0.0958093852,
0.346431613,
0.0981627554,
-0.1492695361,
-0.0129499473,
0.0048460588,
0.6299363971,
0.2925106585,
0.0522352383,
0.2048248053,
-0.0285998881,
0.5659810305,
0.0059440807,
0.1267870516,
-0.3390859365,
-0.0320803449,
-0.0287113376,
0.1228829473,
-0.1193820089,
0.2378740311,
-0.1434058845,
0.5463701487,
-0.0078889355,
-0.0930930376,
0.1464377344,
0.4880790412,
-0.144512862,
-0.0232822075,
-0.1062283367,
0.1316644847,
-0.0481890254,
0.3345879912,
-0.0951205939,
-0.1221298724,
0.0724357963,
-0.1510443687,
-0.4289675951,
0.1074732244,
-0.3221226931,
0.2852959335,
-0.1269464791,
0.1787613332,
0.2097798437,
0.2306779623,
0.2053616643,
0.174648121,
-0.2870620787,
0.3699121773,
-0.0707247257,
-0.1091892123,
0.026630234,
0.3230380118,
-0.0475363098,
-0.2259251177,
-0.5937911272,
-0.0951294377,
0.0163211524,
-0.2901428342,
0.1625815928,
-0.2702557743,
0.370439142,
-0.1117242798,
-0.2816075385,
-0.0553288274,
-0.2641735971,
-0.290484488,
0.0957320407,
-0.2068893313,
0.0748640895,
0.3429565728,
-0.203748852,
-0.0831960887,
0.0226182174,
0.3929959834,
-0.3618122041,
-0.1502794027,
0.6512705684,
0.2463869005,
0.1058228239,
-0.3233752847,
-0.0739872679,
-0.2134784013,
-0.5588198304,
0.1342840493,
0.1284736246,
0.2565954328,
-0.1076335311,
0.581569016,
0.0690361261,
0.3135826588,
-0.2030030489,
-0.4405823052,
-0.1772631407,
0.160016939,
0.3316250443,
0.2019181848,
-0.2039649636,
-0.11003609,
0.1043667644,
-0.6226139665,
-0.2635371089,
0.0713728368,
0.0797326118,
-0.0830928236,
0.5312467217,
0.2811523378,
0.23593238,
0.0246131606,
0.030604545,
-0.1111806408,
0.0029794574,
-0.081833154,
-0.2952367365,
0.1433681697,
-0.0078054899,
-0.370046705,
-0.0679018274,
-0.3382748067,
-0.1110143661,
0.0122494921,
-0.235936895,
0.132366538,
-0.0991357714,
0.3274615705,
0.1289875507,
-0.2455886602,
-0.0798089355,
0.2245872915,
0.2456073314,
0.6195126772,
0.0893691331,
0.5125225186,
0.0343835056,
0.0344536752,
0.1903525144,
0.0126584191,
-0.1068078876,
0.0401706249,
0.2409954071,
-0.0635921583,
0.1247483492,
0.2878765166,
0.1464393437,
0.723521471,
-0.1657292396,
-0.1074038446,
0.1783137918,
0.1075236201,
-0.242215082,
-0.1480082422,
0.1144230217,
-0.0603428558,
-0.1510430574,
0.0507805683,
0.1459884793,
-0.2648044229,
0.3208700418,
0.1363302469,
0.4105604291,
-0.2091362774,
0.1390143633,
0.2326117307,
-0.0402195901,
0.0106300488,
-0.2607228458,
-0.0165249147,
0.1434255689,
0.0729607344,
-0.2590852976,
0.0021661334,
0.1359723359,
0.2214527577,
-0.1256229281,
-0.20924519,
0.1244173348,
-0.3079872131,
0.0531329475,
-0.0780406073,
0.1538694054,
0.0930999815,
0.0630081892,
-0.0837696046,
-0.1868069172,
0.4469353855,
0.3637334406,
-0.2284590751,
-0.3311855495,
-0.2089338899,
-0.2458160073,
-0.0108432472,
-0.1313484907,
-0.2673422992,
-0.042035874,
0.0208689794,
-0.0651237667,
-0.2304664403,
-0.0795351565,
-0.1641403586,
0.3442992866,
-0.1986874193,
-0.0340696797,
0.3539015949,
0.019296743,
0.2935783267,
0.1662087291,
0.389013201,
0.303167522,
0.2825598717,
0.1341410726,
-0.0747472793,
-0.076437898,
0.1327647418,
-0.05155975,
0.0485227555,
-0.016899405,
0.2257483453,
0.1243710369,
-0.063389048,
-0.2191683352,
-0.0188534148,
0.1339443624,
0.006630566,
0.2588455379,
0.0274210759,
-0.0982638896,
-0.3797434568,
0.1497978717,
-0.2567153275,
-0.2685227096,
0.2529697418,
-0.058197841,
0.0754308924,
-0.0542055853,
0.0456065908,
-0.2022538185,
0.5885549784,
0.2964638174,
-0.0175197981,
-0.2498061061,
-0.3237137496,
-0.669229269,
-0.0296267197,
0.1107431799,
-0.1353234649,
-0.1589660943,
0.0406373143,
-0.3685362339,
-0.1781422496,
0.4535006285,
0.0676382035,
0.0767982379,
0.2088019997,
-0.0742545798,
-0.1603698879,
-0.1425301433,
0.568574667,
0.1327404976,
-0.242303282,
0.0843380019,
-0.375014931,
-0.0309349,
0.0248884298,
-0.2898810506,
0.0856145844,
-0.2652176619,
0.3958438635,
0.0156827252,
0.3200859129,
-0.2106958628,
-0.2838004231,
-0.5346634388,
-0.324872613,
-0.2505565286,
0.2824270427,
-0.0468872152,
0.1986867934,
0.0551877916,
0.3310996294,
-0.4635559916,
-0.0262525808,
-0.1626528949,
0.0588620231,
-0.1297528595,
0.0431793109,
0.0607056916,
0.0616323762,
0.3075378537,
-0.0734092817,
-0.1837177277,
0.0640983284,
-0.2904724181,
-0.1000134498,
0.6150929928,
-0.0545783937,
-0.1901325434,
-0.1768680662,
0.284332782,
-0.1528604776,
-0.1110521406,
-0.2704388499,
0.0030382574,
0.1568036079,
0.3058636785,
-0.0243735462,
0.1428260207,
-0.1586358398,
0.1243696213,
0.0833775103,
-0.0151748732,
0.1502653211,
-0.3417598009,
-0.1232425421,
-0.0235447176
] |
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.3287447691,
0.2278451025,
0.0171681419,
-0.1485100687,
-0.0278215259,
0.1295355409,
0.2159449011,
0.402939707,
0.1252269596,
-0.0533372015,
0.1292181015,
-0.1483831704,
0.3661807775,
0.1626037657,
0.0930709541,
0.037134286,
0.088259019,
0.116459161,
-0.1444550604,
-0.1393209845,
-0.2735646367,
0.0519363731,
-0.1136713624,
0.0818875134,
-0.094253011,
0.0077920426,
-0.2059003115,
0.15307796,
-0.1278968155,
-0.4773186445,
0.3734850883,
0.3872336745,
0.258112669,
0.1217224747,
-0.0001211941,
0.0353706554,
0.4054265022,
-0.0881665424,
-0.3705862463,
0.076568149,
-0.5739338398,
-0.4313012362,
-0.0611456372,
-0.2580587864,
0.188796252,
-0.1298538595,
0.2098872364,
0.0811501294,
0.116273962,
0.4262781441,
0.1302454472,
0.2230625153,
0.3262277842,
-0.073756814,
0.1489093602,
0.168155551,
-0.0132279582,
0.3721020818,
0.4372789264,
-0.1092656404,
0.0860343575,
0.1534005702,
-0.0840909705,
0.2124538422,
0.3541406095,
0.0495410562,
0.4574351609,
-0.4048508704,
0.2234410495,
0.0324900001,
0.89675951,
-0.4227741063,
-0.342069,
0.0872577503,
0.0095371231,
-0.0898226798,
0.1586157531,
0.0859673694,
-0.2002847791,
0.2778532505,
-0.1804692596,
-0.3604151309,
-0.1591272652,
0.3106373549,
-0.0873083323,
0.5873483419,
0.1010472327,
0.2082228959,
0.1031950191,
-0.0571554601,
-0.127401948,
0.0459690168,
-0.2225725949,
0.0741772652,
0.1182245016,
-0.20777978,
-0.1212854981,
-0.1025084481,
0.1066639796,
0.1532487869,
-0.198460415,
-0.0369429402,
-0.1734640598,
0.0718767643,
0.4032159746,
-0.0381653346,
0.0457208902,
0.1548079997,
0.5666858554,
0.4230884612,
0.011266239,
-0.0179057345,
0.147071436,
-0.2979697287,
-0.0977275372,
0.1550771445,
0.4336485267,
-0.3121049702,
-0.2366572767,
-0.1028786302,
0.1271012425,
-0.1144593954,
-0.0768238381,
0.1278250813,
-0.161383912,
0.2357039154,
-0.1247182637,
0.0475261696,
-0.1026308388,
-0.300257206,
0.0427253135,
-0.0334792547,
0.1329358816,
0.1183085367,
0.0120959878,
0.0708039403,
0.051775381,
-0.0831962377,
-0.0121602528,
-0.1791646183,
-0.22841084,
0.1644672453,
-0.1286883801,
0.266612947,
-0.2245613784,
0.2676092088,
0.1448454559,
-0.3232684433,
-0.2828285694,
0.2915727496,
-0.2882509828,
-0.3567067981,
-0.3281010687,
0.0365200676,
-0.0712551922,
-0.1758401245,
-0.0324557424,
-0.210595578,
-0.1574169844,
-0.2907341719,
0.0741477385,
0.0098835453,
-0.1292327344,
-0.1871703565,
0.1953064501,
0.5042905211,
-0.6066141725,
-0.1614393294,
-0.2313723862,
-0.0816505924,
0.2087165862,
0.3378126621,
-0.2769353986,
0.1699394733,
-0.1460844576,
0.0277962685,
0.5927786231,
-0.5152542591,
-0.6871725321,
0.204189837,
-0.0130714178,
-0.2299173921,
-0.0214092769,
0.2520219684,
0.1231495142,
-0.3452993631,
-0.4743501246,
0.084630236,
-0.1290562898,
0.0995862409,
-0.2955792248,
-0.5416893363,
0.1625069678,
0.1816475391,
0.0469315983,
0.1821600497,
0.3992837965,
0.1766406,
0.3272171319,
0.0588197596,
0.201115936,
0.2115602791,
0.5126593709,
0.1314489245,
0.1533076167,
0.2232040465,
-0.294321239,
0.1469663084,
0.2489130348,
0.094962731,
-0.3220589757,
-0.2608611584,
-0.4123026133,
-0.1020811796,
-0.3485299647,
-0.0909805447,
-0.0179823563,
0.180757761,
0.1164784059,
-0.1103474647,
-0.3459631801,
0.3093788624,
-0.4763236344,
0.0745258555,
0.2337314487,
0.5755878091,
-0.1695273817,
-0.0196820665,
0.0520267785,
0.1301288456,
0.0639669895,
-0.2785018682,
-0.2143508643,
0.5593367219,
-0.3127241433,
0.2341465354,
0.4399035275,
0.3117651939,
0.1940220296,
-0.3202222586,
0.1119112,
0.2882171869,
-0.0226006228,
0.1490287483,
-0.174197942,
-0.1989568174,
0.0576517805,
0.1708123088,
-0.0655331537,
0.0031272992,
0.2749859691,
-0.0832781792,
-0.1410724074,
-0.1622516215,
-0.2921610177,
-0.0250307471,
-0.0415080823,
-0.0453639627,
-0.0604690723,
0.1785670966,
0.5440226793,
-0.1238421202,
0.1165739372,
0.300347358,
0.0952580422,
-0.0596888177,
-0.1099890694,
0.5564720035,
0.3104228973,
-0.1512849033,
-0.1697162539,
0.1790990978,
0.0578596108,
-0.037310496,
0.0465997756,
0.192528218,
-0.120071128,
0.0109614898,
-0.0468261689,
-0.0372150019,
0.1695201397,
0.1583192348,
0.1474123299,
0.4839597046,
-0.2462185025,
-0.013301868,
-0.3664866686,
-0.5353515744,
-0.3251516223,
0.3189963102,
-0.3790272474,
-0.1859085858,
-0.0421061255,
0.178743124,
-0.2107163519,
0.1901573986,
0.2043237686,
0.3172184229,
-0.0788311884,
0.0009445306,
-0.1719418466,
-0.2316940427,
-0.3306145966,
-0.0519319624,
0.444380492,
-0.0417090319,
0.1766371578,
-0.6509734988,
-0.1097553521,
-1.0360767841,
-0.0168309063,
-0.0461153388,
0.2316709459,
0.1153677031,
0.1593006402,
0.453745842,
-0.0163832009,
-0.1707425863,
0.260743171,
-0.040194504,
0.2149466276,
-0.3174861372,
-0.1729993224,
0.0167531855,
0.0456134677,
-0.1350581348,
-0.5641143918,
-0.3411815166,
0.1600966752,
0.0241010115,
0.1449771821,
-0.0509615801,
0.0435488336,
-0.1906140894,
0.1358195394,
-0.2904107571,
0.1560659409,
-0.0107053667,
0.2633074224,
-0.1443638355,
-0.4014081955,
0.1329773217,
0.3028895259,
0.0468483232,
0.0664785355,
-0.5709302425,
-0.2596462965,
0.0302448813,
0.4149633944,
0.1201114282,
0.2456100583,
0.1748130322,
-0.0011633486,
0.0383686759,
0.045427531,
-0.1914303303,
-0.0953514725,
0.5123046041,
0.3417054117,
0.4293993413,
0.3754681945,
-0.1085309237,
0.5380151868,
0.0628193319,
-0.1203669161,
0.2591623664,
-0.1626127064,
0.3061215281,
-0.0002961121,
-0.293181926,
0.1956026256,
-0.1550559253,
-0.0657011643,
0.4099550545,
0.0892604291,
-0.0365752503,
-0.0739251077,
-0.1810674667,
-0.2698781192,
-0.4921988547,
-0.1627942026,
0.4599235356,
0.2576901615,
0.2941858768,
-0.1377736777,
-0.2924904823,
-0.1697051078,
0.4024108052,
0.6239657402,
-0.1235484034,
0.2065497488,
0.1147286892,
-0.1757796705,
-0.1004417837,
0.2647212744,
0.1980747879,
0.2662748694,
0.0342546254,
0.0794398487,
0.1008394361,
-0.1124488786,
0.4005726576,
-0.2048436254,
0.1391566545,
0.1369846016,
0.423627913,
0.1360688806,
-0.2744188011,
0.020730406,
0.4552536309,
0.2049036771,
0.0759631544,
-0.022156246,
-0.3152547777,
0.3411843181,
0.3714483082,
-0.200250119,
0.0219796263,
0.1467151642,
-0.4022741914,
-0.4977633059,
-0.2266689539,
-0.119531244,
-0.2320988774,
-0.0722357035,
0.1765211225,
0.2332925946,
-0.1576326191,
-0.1536706835,
0.0030542426,
0.2076950222,
0.4947229624,
-0.0198300518,
-0.008982094,
0.0129317883,
0.0909973085,
0.3013307452,
0.0700535551,
-0.3510888219,
-0.1641140878,
-0.3205774724,
-0.0949708372,
0.2082450092,
0.117692396,
-0.082730934,
0.1448276788,
0.0616364591,
-0.0875912085,
0.1192069948,
0.3584298193,
-0.0849577263,
-0.5300599337,
-0.5256218314,
0.4085561037,
-0.1199644804,
-0.1654940248,
0.400359869,
0.1563634276,
-0.0323149115,
-0.273586601,
0.0830518603,
0.7465678453,
-0.0229263082,
0.0327061489,
-0.0075634494,
-0.0916317478,
0.6845273972,
-0.3556342721,
0.0803623796,
-0.2357022464,
0.0443732999,
-0.1400305033,
0.0937239826,
-0.0345782638,
0.1248344183,
-0.2527692914,
0.3953993022,
0.0111262202,
0.1281267703,
0.1678036451,
0.1267894208,
-0.0315404758,
0.0058414564,
-0.0743878707,
0.0830981135,
-0.1622388363,
0.4866451025,
-0.1698798537,
0.0068917908,
0.0124571249,
-0.1154112592,
-0.5681358576,
-0.0628743693,
-0.166463986,
0.2920021415,
-0.0299783479,
0.0210071355,
0.0415378734,
0.0992111936,
0.4292317927,
0.1321555674,
-0.2016574144,
0.3129692674,
-0.0059434325,
0.0601125956,
0.0004795566,
0.3337997198,
0.1579629183,
-0.2422534525,
-0.3779406548,
-0.1441569924,
-0.1342757046,
-0.3834286034,
0.0235966146,
-0.2298967391,
0.6278176308,
0.0004666485,
-0.0304869805,
-0.0596396998,
-0.1215834916,
-0.2231879532,
0.0184048731,
-0.1535343826,
0.1416379362,
0.0816714913,
-0.2914769948,
-0.2244679034,
0.0191665739,
0.1895217896,
-0.1399025619,
-0.2665093243,
0.4547465742,
0.1219026297,
0.0639430881,
-0.1995393336,
-0.0725488514,
-0.1438467205,
-0.6568565369,
0.1191090047,
-0.0967700556,
0.1828151047,
-0.1090995073,
0.5960338712,
0.2512535751,
0.1673283279,
-0.289671123,
-0.4213554561,
-0.2715558112,
-0.0532646403,
0.3364652991,
0.1554662436,
-0.0176151097,
-0.1649507433,
0.193653971,
-0.6747886539,
-0.1614929587,
0.0090754926,
-0.1692632735,
0.0296200216,
0.6704886556,
0.4356496036,
0.0869971216,
0.018851541,
-0.0612278506,
-0.1750659496,
-0.0812860802,
-0.0256924406,
-0.1322483569,
0.2006797493,
-0.0557944365,
-0.4399535954,
0.0500341617,
-0.3374832273,
0.0406052358,
0.0572871193,
-0.1088781655,
0.0315805599,
-0.0589900836,
0.2244446427,
0.3297690749,
-0.0960424915,
-0.1266281158,
0.2370405793,
0.2353161573,
0.6963260174,
0.0479424745,
0.5046021938,
0.1246771067,
0.1058538407,
0.0972957984,
0.0786669105,
-0.0898664445,
-0.0216328986,
0.1773711145,
-0.187671259,
0.2144837826,
0.2815781534,
0.214118436,
0.5254455209,
-0.1734646261,
-0.1531734765,
0.3730521202,
0.0736249462,
-0.1744775921,
-0.1968690753,
0.3419986069,
0.1091983095,
-0.0577136055,
0.0470557809,
0.300906986,
-0.1780047119,
0.3103750944,
0.089328289,
0.6003997326,
-0.2275827229,
0.1473659873,
0.4256238043,
0.1851407588,
0.0766023695,
-0.5151526332,
-0.0088375853,
0.0859321579,
0.0910278633,
-0.3155488074,
-0.0076458948,
0.3904766142,
0.188220948,
0.0195120499,
-0.284719348,
0.4502238333,
-0.086816825,
-0.0064134188,
-0.1602883637,
0.2936162651,
0.1938025057,
0.1545351446,
-0.2132194787,
-0.105591476,
0.3199581504,
0.2193834037,
-0.0499656498,
-0.2981782556,
-0.185359031,
-0.2174350023,
0.041320093,
-0.1967566013,
-0.0639089197,
0.1019666567,
-0.0000186302,
-0.020976387,
-0.0995973721,
0.0869243443,
-0.2254508436,
0.2697068751,
-0.1732001603,
0.03487432,
0.2699770331,
-0.0449170955,
0.3573747873,
0.3032530546,
0.3511098027,
0.3506344855,
0.2956427932,
0.2215098143,
0.0462824702,
-0.0275797993,
-0.0705280975,
-0.1413396597,
-0.2378987372,
0.0085936245,
0.0753651485,
0.1146334261,
0.0222328305,
-0.0880034044,
-0.241420418,
-0.0909087509,
-0.1766738594,
0.2309431583,
-0.1248025075,
-0.2502403557,
-0.1732283533,
0.1643975526,
-0.1407437325,
-0.230545342,
0.3772293329,
0.0556100644,
0.0493016243,
0.1084257066,
0.0184886046,
-0.1183817089,
0.4438581467,
0.405395776,
0.0393583514,
-0.0506964177,
-0.3549841642,
-0.6613132954,
0.2525287271,
0.0431114994,
-0.3434359133,
0.0202992558,
-0.0365523249,
-0.2431378961,
-0.0149773369,
0.321593225,
-0.1956987977,
-0.0718833655,
0.0016665733,
-0.0122566447,
-0.3665523231,
-0.1038546264,
0.283775419,
0.0206286311,
-0.3084765077,
0.1789595783,
-0.1688572466,
-0.0721253529,
0.0031013861,
-0.1626665145,
0.2184784412,
-0.4474808276,
0.2214149237,
0.0423129946,
0.3322557509,
0.0157247633,
-0.3238599002,
-0.4520313442,
-0.2165608853,
-0.2448046505,
0.2828504741,
-0.3794674873,
0.1671110094,
-0.1489570141,
0.2827147245,
-0.5202071667,
-0.0893789083,
-0.1439723223,
0.3547427356,
-0.1120030507,
-0.0566177033,
-0.0558046885,
-0.135589987,
0.3962641954,
-0.108371526,
-0.0078288931,
-0.0498401374,
-0.3642436862,
-0.0454763211,
0.4113410711,
-0.2912549376,
-0.1576841772,
-0.1980942488,
0.2725575566,
-0.0934824124,
-0.1871381253,
-0.2544820309,
-0.079442963,
0.2932998538,
0.2510578632,
-0.1649755538,
0.0285106972,
0.0157413818,
0.064650543,
0.0683124736,
-0.0831302106,
0.0284452736,
-0.3681693077,
0.0268785581,
-0.1657812297
] |
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.2335668355,
-0.1188602224,
0.0189636089,
-0.1395546496,
0.0161121581,
-0.0059837624,
0.1757640839,
0.3258334696,
0.2067855597,
-0.0491477251,
0.1204304919,
-0.0448963717,
0.2096989602,
0.4580937624,
0.1885544956,
-0.0856996626,
0.0732322261,
0.0046084747,
-0.3236837089,
-0.0383639336,
-0.2702770829,
0.3223570287,
-0.1850292385,
0.1354494542,
-0.2389192879,
0.1353991777,
-0.1885150373,
0.1983841658,
-0.1805907935,
-0.4625661969,
0.5045474172,
0.2400254011,
0.1559290588,
0.1923995316,
-0.0001092647,
-0.0245882645,
0.3951174617,
-0.1717745364,
-0.1087755114,
-0.0114077404,
-0.3153642416,
-0.3022523224,
0.0101291798,
-0.2516595125,
0.0398822427,
-0.1055718884,
0.162743032,
0.2556887567,
0.2135182023,
0.4070446491,
0.2583005428,
0.4219939709,
0.4020578265,
-0.1656324565,
-0.0969247222,
0.0451832712,
-0.1839629412,
0.0846095309,
0.1392519027,
-0.1658402383,
-0.0079472549,
0.2628327012,
0.0380653515,
0.17740722,
0.3683725893,
0.0332364962,
0.2770965993,
-0.4773373902,
0.1777480096,
0.2426346838,
0.782263875,
-0.3499062955,
-0.2700645924,
0.0836932138,
0.0555039421,
-0.085958533,
0.1442578733,
0.0836824849,
-0.1838017553,
0.2145688385,
-0.0270692185,
-0.1974047124,
-0.147405535,
0.1989339888,
-0.1147593781,
0.4739903212,
-0.0418310799,
0.1100744009,
0.2187186927,
-0.1721978188,
-0.0383895263,
0.2162342072,
-0.1291909516,
0.0995904356,
0.027193848,
-0.1612710059,
-0.0395025089,
0.1277528256,
0.2365035564,
0.1215083301,
-0.1918832809,
0.010319313,
-0.195493117,
-0.074907437,
0.3661406636,
-0.0246859305,
0.037758857,
-0.205448851,
0.6392716765,
0.4878346324,
0.1346804202,
0.0405796841,
0.1530730277,
-0.3119662404,
-0.2728494406,
-0.0209969431,
0.4147322178,
-0.2358139753,
-0.1946696043,
-0.2294028699,
0.2842105031,
0.0485096052,
-0.1242198795,
0.240817517,
-0.064331606,
0.2211933285,
-0.0133279189,
0.0414090455,
-0.1770209074,
-0.2442880869,
-0.1393059194,
0.0375979058,
0.1275273114,
0.026942879,
0.1333571523,
-0.0171654597,
0.2050202936,
-0.0505624786,
-0.0681753159,
-0.0954974443,
-0.3666021228,
0.2655592859,
-0.0367652699,
0.2211727649,
-0.1885924935,
0.2225806266,
0.132217437,
-0.1558461934,
-0.2449502647,
0.1167247668,
-0.2422587574,
-0.3335551322,
-0.3620156646,
0.1275480688,
-0.3240917325,
-0.2706541717,
0.0901477188,
0.0285843462,
-0.2450881153,
-0.1081000417,
0.0043524168,
-0.04306297,
-0.3726970255,
-0.1773121059,
0.2803133726,
0.5215450525,
-0.4167307913,
-0.2620278001,
-0.1202762946,
-0.2433593124,
0.0799774751,
0.3457717299,
-0.1807961911,
0.1630963683,
-0.2910605073,
0.2494161427,
0.2408744544,
-0.3563610911,
-0.6736319065,
-0.0241501629,
-0.0234205276,
-0.106447354,
-0.0478003919,
0.1957678199,
0.0992481187,
-0.2680749893,
-0.3319652081,
0.1364900172,
0.0773571283,
0.1863158196,
-0.2293028831,
-0.5873643756,
0.1502218097,
0.0775777027,
0.0790318102,
-0.0348255225,
0.2630716562,
0.2338412553,
0.3538370728,
-0.0224075802,
0.0953420699,
0.28158319,
0.4012522697,
0.1791228354,
0.2152358145,
0.0869183093,
-0.2827011347,
0.194686383,
0.1992514282,
0.2634849846,
-0.2397797257,
-0.2128990293,
-0.5051878095,
-0.0997636467,
-0.3482335806,
-0.2533225417,
0.1373304725,
0.0607016981,
0.03769584,
-0.0402493738,
-0.3664123714,
0.3527961075,
-0.2735735476,
-0.0182048064,
-0.1620048136,
0.4413311779,
-0.173780188,
-0.035893973,
0.2160105407,
0.2136524618,
0.1147466153,
-0.2147004008,
-0.1133191139,
0.3855252862,
-0.2043385506,
0.254318893,
0.2713077068,
0.2959890366,
0.1429631561,
-0.4405146241,
0.0782656819,
0.2604019344,
0.0026076064,
0.1207898706,
-0.1412734836,
-0.0389374718,
0.0335716344,
0.1048456877,
-0.0179277435,
0.1726453602,
0.4351984262,
-0.1481435597,
-0.1388984621,
-0.2231837064,
-0.2020281851,
-0.2790302634,
-0.1909110546,
-0.1220411956,
-0.0943430811,
0.1953200251,
0.6526297927,
-0.0811345577,
0.1934061348,
0.3059241772,
-0.0880405754,
-0.0834919289,
-0.0656972304,
0.2408767343,
0.2677809,
0.0272597149,
-0.1545905471,
0.1892938614,
0.0176763646,
-0.073094815,
0.1090163589,
0.0896606147,
-0.1755732149,
0.0301620979,
-0.0732035786,
-0.0809707791,
-0.2738900781,
0.291978687,
-0.0533328839,
0.3131771386,
-0.2786055803,
-0.1210928857,
-0.3761145473,
-0.473444432,
-0.2801189721,
0.1665585637,
-0.3854694068,
-0.3420083523,
0.0037457682,
0.2556135654,
-0.1119045168,
0.2181048691,
0.1516188979,
0.3672245741,
-0.1004234031,
0.1979853213,
-0.2305037975,
-0.2315601856,
-0.2434091121,
0.0562480167,
0.3037788272,
0.1399764419,
0.3024445176,
-0.6965797544,
-0.0006319135,
-0.9145673513,
-0.2800679803,
0.1137311459,
0.0784533247,
0.2336862385,
0.3152014911,
0.4718117118,
0.0362505689,
-0.092991069,
0.1916045398,
-0.3334912062,
0.0445958227,
-0.2865601182,
-0.2028496712,
0.0358547941,
-0.0149767771,
-0.1837147772,
-0.4896518588,
-0.3156400323,
0.2744003832,
-0.0282386988,
0.0308954529,
0.0294820741,
0.0008585788,
-0.0627068356,
0.0112188347,
-0.230422616,
-0.1335803568,
0.1109152213,
0.4065053463,
-0.1313937455,
-0.5269101262,
0.2307725251,
0.1508885324,
0.1147908717,
-0.2585175335,
-0.5553163886,
-0.310457021,
-0.0462880507,
0.4160473943,
0.1070753783,
0.3148148656,
0.2358893752,
-0.0479349494,
-0.0593312569,
-0.0556549355,
-0.3613809347,
-0.0467398688,
0.3273712397,
0.3528599143,
0.3838155866,
0.2802630067,
-0.0130925104,
0.4280109704,
0.1091012955,
-0.0421831049,
0.2324938029,
-0.3416448236,
0.3144187033,
-0.10110569,
-0.3127943575,
0.2138323486,
-0.2130123973,
0.2422890365,
0.3699727356,
0.1163370088,
0.1208553761,
-0.0625778288,
-0.228320837,
-0.1877695024,
-0.4996316433,
-0.1915961653,
0.5330440998,
0.0864417106,
0.2457362115,
0.0275906622,
-0.3073690832,
-0.2219125628,
0.5058277845,
0.5238965154,
-0.1514753401,
0.1856846809,
0.1707986593,
-0.0125573799,
-0.475559622,
0.1710112691,
0.0400468931,
0.1965429932,
0.0049424469,
0.0275596753,
0.1732418686,
-0.0784426108,
0.6037288904,
-0.0472831316,
0.1495149732,
0.0507927462,
0.1644226164,
-0.0753698125,
-0.1166737974,
0.0149490014,
0.2956688404,
0.0863800794,
0.1583255529,
-0.128306821,
-0.3624588847,
0.4438433051,
0.3782406449,
-0.2468402088,
-0.110898383,
-0.0170871317,
-0.6500024796,
-0.506205678,
-0.1907250583,
0.0373514295,
-0.1412652731,
-0.0617036708,
0.248845309,
0.1306787282,
-0.241184473,
-0.0958008766,
0.1394643188,
0.2625072598,
0.4379009008,
-0.0097437724,
0.2182338238,
-0.1364618242,
-0.1653880179,
0.4312857687,
0.0731009543,
-0.4082481861,
-0.1175406724,
-0.2884828746,
-0.1285908818,
0.283428669,
0.0284764767,
-0.0203419924,
0.082479313,
0.0702319443,
-0.1980328709,
0.1282810271,
0.4534524679,
-0.0799644887,
-0.3448010385,
-0.3542916179,
0.4003818929,
-0.1147877723,
-0.0775211677,
0.3779807389,
0.3538372517,
-0.049862422,
-0.0894848853,
-0.0248594694,
0.6526329517,
0.1146842986,
0.0795669854,
0.242053628,
-0.1019822955,
0.651820302,
-0.0410397425,
0.1222632676,
-0.3257211447,
0.000645835,
-0.0996314585,
0.1505215466,
-0.2412481308,
-0.0039452612,
-0.0847465172,
0.4775625169,
0.1514832973,
0.1945161223,
0.1278754324,
0.307749778,
-0.0544242561,
-0.1355789006,
-0.2700304091,
0.2111504823,
-0.0885104239,
0.603710711,
-0.0892819092,
-0.1621540487,
0.2068765014,
-0.1975572854,
-0.5399234295,
0.0476856753,
-0.1331094205,
0.3173463047,
0.0773143768,
0.1214798093,
0.0688770413,
0.1182060763,
0.4526981711,
0.0669935644,
-0.372862041,
0.2600720525,
-0.0131286681,
-0.1014174893,
-0.0101230405,
0.3554031253,
0.0644315928,
-0.3104498982,
-0.4030135572,
-0.1997881681,
-0.0247623418,
-0.2261963189,
0.0545976013,
-0.1979750097,
0.3774763346,
0.0033661649,
-0.0794588849,
-0.0526562668,
-0.0053543448,
-0.2600457668,
0.1364442259,
-0.1225387976,
0.0210395008,
0.1288246363,
-0.1615355313,
-0.1095584109,
-0.0184490196,
0.2816784382,
-0.2700921297,
-0.1404271871,
0.4918080866,
0.2861507535,
-0.0161389373,
-0.2439472228,
-0.0703867003,
-0.0397297367,
-0.7922112346,
0.1132478788,
0.0618329309,
0.0977654904,
-0.1027813107,
0.6565717459,
0.1902372986,
-0.0865867436,
-0.2809303999,
-0.4150908887,
-0.3234255314,
0.0980985761,
0.2170951664,
0.2083807439,
0.0841280222,
0.0156485215,
0.2016140223,
-0.5624890924,
-0.3321127594,
0.0650145635,
-0.0897624046,
-0.1126647666,
0.5341255665,
0.1613990664,
0.1736097932,
0.0590881743,
0.0796299726,
-0.0411025882,
-0.2069411278,
-0.16286847,
-0.3124524653,
0.1237831563,
-0.1371286064,
-0.3970653415,
0.0843209028,
-0.2241981924,
-0.1113071069,
0.0092435144,
0.113136977,
0.2931983173,
-0.0070245005,
0.2214221507,
0.3557650149,
-0.1219321638,
0.0378735587,
0.1440411806,
0.3490456939,
0.5711562634,
0.0751872659,
0.3948974013,
-0.0918712616,
0.1050567031,
0.3819205463,
0.1560139656,
-0.0424256362,
-0.0519231409,
0.191781655,
-0.1765860468,
0.0707426518,
0.1867444962,
0.1620067805,
0.5038250685,
-0.2613508701,
-0.110578008,
0.2460003793,
0.1506228894,
-0.3346233964,
-0.1828799248,
0.2637706101,
0.0990468636,
-0.0441014431,
0.0831302628,
0.3345206976,
-0.1747629791,
0.2895326614,
0.0971054435,
0.5810633302,
-0.2587454915,
0.0536672324,
0.2354914546,
-0.0437964834,
0.0007872926,
-0.2322139442,
0.0009578168,
0.2114001364,
0.1507849395,
-0.2013856471,
-0.0427666903,
-0.0092598265,
0.2668436468,
0.0916845798,
-0.2197219133,
0.2324922532,
-0.133214727,
0.0301504824,
-0.1136770323,
0.1947419494,
0.242343992,
-0.0328955874,
-0.1802570224,
-0.3411666155,
0.465782702,
0.1578105539,
-0.1460880786,
-0.114090912,
-0.144554317,
-0.1462963223,
0.1082797647,
-0.1709432602,
-0.1186121926,
0.093797341,
-0.0343467295,
-0.0788903758,
-0.1461080611,
-0.154390946,
-0.123294346,
0.3736058176,
-0.1328392178,
0.1162939146,
0.2969820499,
0.0382520072,
0.2212435007,
0.3534233868,
0.474532634,
0.1789366007,
0.1725444794,
0.1585722268,
0.0046515651,
-0.0992412716,
-0.0175818242,
-0.0124585861,
-0.0896220952,
0.1290497035,
0.2305074185,
0.1899620444,
-0.0855160356,
-0.2006912977,
-0.1554968059,
0.0044145733,
-0.1103282124,
0.0721079111,
-0.2311015874,
-0.0567191988,
-0.3328524828,
0.1490006,
-0.174002111,
-0.1544377357,
0.2945475578,
0.0350465141,
0.1269100904,
0.0174953192,
0.0980271399,
-0.1290971637,
0.5321992636,
0.3212455511,
0.037908785,
-0.0222434048,
-0.3133053184,
-0.750837326,
0.1343320906,
0.0117835086,
-0.2444419861,
0.0656242669,
-0.0677614436,
-0.1610689908,
0.0162588842,
0.2551141381,
-0.0839383751,
0.0151445083,
-0.0634627938,
-0.0591660477,
-0.282761097,
-0.0881806463,
0.2552610636,
0.1163081229,
-0.2039341629,
0.1172662079,
-0.123466529,
0.0184980407,
0.0706113577,
-0.0858753324,
-0.0224954635,
-0.3802748621,
0.0649752617,
0.1110794172,
0.2818400562,
-0.1864163876,
-0.2438086122,
-0.4563575387,
-0.2451846153,
-0.3523599803,
0.2957237959,
-0.231048882,
0.1400178373,
0.0714990497,
0.1189487427,
-0.4806298018,
0.0499632396,
0.0205127373,
0.2524638772,
-0.2548215389,
0.1510595679,
-0.1215063557,
-0.0219835769,
0.312618196,
0.0471854657,
-0.1636137068,
-0.0844617561,
-0.1241700947,
-0.1733531654,
0.6147267222,
-0.2698355317,
-0.1295502782,
-0.1446405202,
0.1861273646,
-0.0862270147,
-0.279392153,
-0.379219234,
0.1572496891,
0.0819159448,
0.2910229862,
-0.1266594678,
0.1368780136,
-0.1512438506,
0.0280846059,
0.0543357655,
0.0638352334,
0.2239316404,
-0.3455147445,
0.0839794651,
-0.1800156534
] |
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.1731774509,
-0.010390088,
0.0573095568,
-0.0393563882,
0.0538163781,
-0.0124165267,
0.2563000917,
0.3127627671,
0.1133866087,
0.0201739073,
0.0313481912,
0.0189824663,
0.3240013719,
0.2409655899,
0.1655393243,
0.0832949579,
0.0935481638,
0.0070208684,
-0.2977553606,
-0.0181836262,
-0.2464224994,
0.2069951147,
-0.187137723,
0.0984051824,
-0.0664139092,
0.0939152539,
-0.1437423825,
0.1323305517,
0.0711326152,
-0.5863395333,
0.2837124467,
0.1516173184,
0.2967729568,
0.2796620131,
-0.0001216275,
-0.029880181,
0.2723471224,
-0.1334086359,
-0.363532275,
-0.0276102573,
-0.4098818898,
-0.4128106236,
-0.2503136992,
-0.2697914839,
0.125262931,
-0.0470433906,
0.0526270494,
0.1782296598,
0.2551392913,
0.4470216632,
0.1154645979,
0.354239881,
0.4006440043,
-0.0996045321,
-0.0763275698,
0.0624183677,
-0.0808920935,
0.1945290118,
0.1765619069,
0.004309319,
0.3190734386,
0.124928236,
0.0774354115,
0.0930949375,
0.2438842803,
-0.0995647311,
0.403218627,
-0.3919491172,
0.2226322144,
0.0467112064,
0.757717669,
-0.2985824347,
-0.5799195766,
-0.0442384705,
0.1599038839,
0.0499052331,
0.185463205,
0.0469911024,
-0.2484175116,
0.3061731756,
-0.1514506191,
-0.4920480847,
-0.2695288658,
0.3524079919,
0.0779910162,
0.4447520077,
0.0607917495,
0.1950391829,
0.2497369796,
-0.1434857845,
0.0307611227,
0.110807389,
-0.2411748022,
0.1607259661,
0.0114447987,
-0.1012466624,
-0.1041228548,
0.1892343014,
0.135116756,
0.0979459733,
-0.229635179,
-0.0681869388,
-0.0995050296,
-0.010115223,
0.2546983063,
0.093881771,
-0.002286572,
0.0234884843,
0.4250124097,
0.4284125268,
0.20597139,
-0.0637579858,
0.0849419832,
-0.3227723837,
-0.3013036549,
0.0541344695,
0.2840808034,
-0.1511060297,
-0.2094754279,
-0.2937172949,
0.0399770886,
-0.010594964,
-0.0702966452,
0.2206256688,
-0.1020833403,
0.1546027213,
0.0166573972,
0.1494404525,
-0.0292688832,
-0.3486822546,
0.0202519633,
-0.0059213638,
-0.0080567449,
0.1573092043,
0.173733741,
-0.0985194296,
0.0062296949,
-0.0080843568,
-0.2337125838,
-0.1763405055,
-0.2984269857,
0.1085455269,
0.1047856659,
0.1262547225,
-0.1358734369,
0.2610067129,
0.0345587283,
-0.1750120819,
-0.0659154207,
0.1226125956,
-0.3552242815,
-0.241203621,
-0.2473453283,
0.0090102116,
-0.2274769098,
-0.1725841463,
-0.1514143646,
-0.0946407765,
-0.1264713407,
-0.3580669165,
-0.0076442547,
0.0192547031,
-0.2257638574,
-0.1544498205,
0.299046576,
0.5962203145,
-0.503998816,
-0.3450404406,
-0.2770172358,
-0.2029023767,
0.078927733,
0.3190475702,
-0.2443765551,
0.2259964794,
-0.2795183063,
0.1283809543,
0.3324238062,
-0.526011467,
-0.7665933371,
0.2068860531,
0.0146962255,
-0.0245410502,
0.0172464587,
0.0817186683,
0.090046376,
-0.2895280123,
-0.671538353,
0.0571654178,
0.0781764016,
0.1101769879,
-0.174841851,
-0.5463126302,
0.1403315514,
-0.0209617503,
0.0476419739,
0.2466131151,
0.4528527856,
0.1625948548,
0.484161973,
-0.1068320125,
0.248644352,
0.1819883287,
0.5103000402,
0.1815198809,
0.1283858716,
0.0267959908,
-0.3259159625,
0.2599062324,
0.2652189732,
0.1192675382,
-0.4695915878,
-0.071432054,
-0.3838051558,
-0.0778348148,
-0.3433720469,
-0.1025641188,
-0.0172439441,
0.2139870077,
0.0695285797,
-0.0191346817,
-0.1408529431,
0.2331995666,
-0.1202415079,
-0.0135399941,
-0.0989577919,
0.3463068306,
-0.162123248,
-0.0224540532,
-0.032578975,
0.1884358078,
0.2230117023,
-0.228176713,
-0.1415731162,
0.49470523,
-0.4156078398,
0.3229223192,
0.250026226,
0.1136656478,
0.1753349751,
-0.3674819767,
0.1324030012,
0.2234056741,
0.0230479836,
0.1755135059,
-0.1077927276,
-0.2079485655,
0.0823869854,
0.216946125,
0.0122457221,
-0.0019037277,
0.2869504392,
-0.1655269116,
-0.0504657254,
-0.1969952285,
-0.1162133142,
-0.1363358796,
-0.1499485075,
-0.1951584667,
-0.0224005654,
0.1898771077,
0.4447519183,
-0.0751989409,
0.1647149026,
0.3001331687,
0.0432806313,
0.0643932074,
-0.0550914481,
0.6107307673,
0.2716001272,
-0.1495793164,
-0.2571927607,
0.0710750297,
0.262373805,
-0.1553241611,
0.1913644075,
0.0627830997,
-0.0459874198,
0.087759316,
-0.0473504029,
-0.0395071767,
0.0910838321,
0.2150115222,
0.1679968536,
0.4387922287,
-0.4453455806,
-0.006193541,
-0.4293613732,
-0.6389663219,
-0.2003343403,
0.2501916587,
-0.2366265357,
-0.1858731508,
-0.1833365411,
0.210362792,
-0.0788789317,
0.2053452134,
0.0379038751,
0.3174072504,
-0.0843603611,
0.165902853,
-0.2603980005,
-0.0483416468,
-0.206170395,
-0.0613750555,
0.2968949378,
-0.070374541,
0.2665002048,
-0.519291997,
-0.1063687429,
-0.9385620356,
-0.0400092602,
0.044534985,
0.088535741,
0.2453931421,
0.1265657246,
0.4747097492,
0.149218604,
-0.0595935658,
0.2381044328,
-0.1594690382,
0.1200471669,
-0.1929833591,
-0.0851442516,
0.0652761832,
-0.1378380805,
-0.1064780802,
-0.5346983075,
-0.2964921594,
0.3588110209,
-0.0660286844,
0.1081244573,
0.0974273905,
0.2043613642,
-0.072719425,
-0.0373490267,
-0.1707763672,
0.0235799402,
0.0401086211,
0.2624901831,
-0.0981032103,
-0.4878206849,
0.1330922097,
0.3627155423,
0.2413801551,
-0.0405476913,
-0.4037992656,
-0.0293226205,
0.0282390881,
0.5150355101,
-0.0052887732,
0.2320141941,
0.0692333579,
-0.0297776852,
0.0736688673,
-0.0076379105,
-0.1586825848,
-0.0632471144,
0.2388668656,
0.4697849751,
0.5023776293,
0.5303525329,
-0.0160535276,
0.3157683909,
0.0231779888,
0.0330216773,
0.4492381811,
-0.3102988303,
0.3521690071,
0.1878150254,
-0.4714174867,
0.1839676052,
-0.0733266771,
0.2329026163,
0.2779690921,
-0.0017409623,
0.065965578,
-0.1709499359,
-0.2562527657,
-0.24032408,
-0.4881179929,
-0.2364590168,
0.4585445821,
0.2765531242,
0.2874037921,
0.068345502,
-0.4240667224,
-0.2522807419,
0.4481956065,
0.3350017071,
0.0827877522,
0.1686727405,
0.0481568724,
-0.2130634487,
-0.4461757541,
0.2900397778,
0.1415864527,
0.4409945607,
-0.1199091375,
0.1655838042,
0.1390202343,
-0.0851577967,
0.5852244496,
-0.171598658,
0.1993333995,
-0.1369416714,
0.3749861717,
-0.1045499742,
-0.1160969809,
0.0892066061,
0.2740936577,
0.402541846,
0.2918910384,
-0.165791899,
-0.3208503425,
0.2214214206,
0.3830727339,
-0.224147588,
-0.2301243544,
0.0008436367,
-0.3451744616,
-0.6933252811,
-0.3281151652,
-0.0069823265,
-0.0880715102,
0.051209107,
0.2241979241,
0.2142442763,
-0.0677864924,
-0.1070833057,
-0.0017375834,
0.2221696079,
0.4739635289,
-0.0393845402,
0.1846898347,
0.0023140931,
0.176182732,
0.3277203739,
-0.0107348105,
-0.2566161752,
-0.1608525813,
-0.2513644099,
-0.1139624715,
0.2904005051,
-0.0327517688,
0.1926622093,
0.1949864328,
0.0892303139,
-0.0346813202,
-0.0578939319,
0.4571623206,
-0.116432637,
-0.3752481341,
-0.455673933,
0.3361279368,
-0.2495935857,
-0.0428852662,
0.1845285743,
0.3937384784,
-0.1125240773,
-0.2946996689,
-0.1475629956,
0.7340788841,
0.2102338374,
0.0129899178,
0.2700053751,
0.0916854441,
0.6499993205,
0.0459563211,
0.0865684152,
-0.2105215788,
0.0752880573,
-0.058931943,
0.102903977,
-0.2461957037,
0.092806913,
-0.0610203892,
0.4542873502,
-0.0321816877,
0.027831573,
0.1643618047,
0.4223259985,
-0.1249922737,
0.0000642315,
-0.0898267031,
0.0960051119,
-0.0762344822,
0.3992206752,
-0.0595674291,
-0.1704473048,
-0.0311486945,
0.0264306068,
-0.581872046,
0.1942546964,
-0.2710112631,
0.2384100258,
-0.102419436,
-0.0012006015,
0.3617004156,
0.1504681855,
0.3591028452,
0.0494048148,
-0.3497041166,
0.2235167772,
-0.1748244464,
-0.1081771627,
-0.101828441,
0.3630264997,
0.0883832872,
-0.2549301088,
-0.5241518617,
-0.0086618736,
-0.0361237079,
-0.236412853,
0.1048420668,
-0.166755408,
0.4092418253,
-0.0989625752,
-0.2461806834,
-0.2079121321,
-0.12354891,
-0.2296191752,
0.0210538916,
-0.1208382323,
0.1367805898,
0.1103191376,
-0.2699894011,
-0.1645365208,
0.0462830774,
0.4265492558,
-0.459166348,
-0.1281840503,
0.796482563,
0.292190969,
-0.0672192872,
-0.1716515124,
-0.141362682,
-0.1442639679,
-0.9090531468,
0.0603619218,
0.1543775499,
0.2676521838,
-0.0645494461,
0.4446275234,
0.1225081235,
0.0626254082,
-0.2182366848,
-0.4203626513,
-0.1049925685,
0.00458185,
0.2443047613,
0.1058989316,
-0.0736544281,
-0.0744289756,
0.1432601213,
-0.5616602302,
-0.1851235926,
0.0277123153,
0.0049250796,
-0.0934066623,
0.6767570972,
0.2900309563,
0.2609379888,
-0.0907273144,
-0.0271651987,
-0.0377194509,
0.0028271191,
-0.0262706093,
-0.223516807,
0.1833405346,
0.0595037304,
-0.4573154747,
-0.0453929417,
-0.3796971142,
0.0052257609,
0.0252176598,
-0.0769215375,
0.1197480485,
0.0208433513,
0.2108329386,
0.260032028,
-0.1026631445,
-0.04796106,
0.3185768127,
0.2582702041,
0.4589103162,
-0.0411692932,
0.5171278715,
-0.021902943,
0.1272802055,
-0.1412896812,
0.0447316542,
0.0138177946,
-0.0031939894,
0.3017372489,
-0.2399455607,
0.1938873231,
0.2793972492,
0.0257164985,
0.3771681786,
-0.1780407727,
-0.176048696,
0.2011232823,
0.0425304696,
-0.2472285926,
-0.124937363,
0.123203367,
-0.1259379238,
-0.1002598479,
0.0616434142,
0.1325867772,
-0.3096866012,
0.222742036,
0.0760905743,
0.4969693422,
-0.1279915124,
0.0035037696,
0.4426583052,
0.1113890484,
0.0824372768,
-0.2332006246,
0.1057078317,
0.1084556878,
0.1235666424,
-0.4334863126,
-0.1788525134,
0.1383224726,
0.2426341623,
0.0103892479,
-0.3338913321,
0.1450663805,
-0.185584709,
-0.1139685735,
-0.1571415216,
0.1135379598,
0.2669581771,
0.0549763925,
-0.2165635377,
-0.1758531928,
0.5872368217,
0.2028708756,
-0.0473485216,
-0.2904469967,
-0.2332372665,
-0.1876097023,
0.0005466938,
-0.1972239763,
-0.2776620388,
-0.1044545472,
0.1796910316,
-0.1478835642,
-0.2340173423,
-0.1056609601,
-0.1362781227,
0.3717671037,
-0.1313418448,
0.0957516506,
0.1909454614,
-0.0500357039,
0.2088547945,
0.3342048228,
0.4915673137,
0.2866502404,
0.5088066459,
0.2947316468,
0.073018305,
-0.0274142176,
0.1301701665,
-0.0285188612,
0.0101052113,
0.1617385149,
0.1069726348,
0.0660341829,
-0.0057496093,
-0.3965215683,
-0.0887923092,
0.0907996595,
-0.1141292676,
0.2506962717,
-0.3444794416,
-0.2569881976,
-0.3263885677,
0.1786249578,
-0.1417436898,
0.0649625137,
0.3046622574,
-0.024597371,
0.1086312234,
-0.1176663935,
0.0214197971,
-0.1723726541,
0.4463751018,
0.4036262333,
0.0717266351,
-0.1999135315,
-0.2780934572,
-0.6719226837,
0.0896462202,
0.0252115894,
-0.1961073875,
-0.06072855,
-0.0723312795,
-0.2990930974,
-0.2401504666,
0.3871956468,
-0.0140770189,
0.1944932342,
0.150993973,
0.038424179,
-0.2599553764,
-0.0353367366,
0.3991889656,
0.0820799395,
-0.2298550159,
0.175003618,
-0.3563648462,
-0.0808259696,
0.0815265477,
-0.1314024329,
-0.0405390598,
-0.3032632172,
0.196962133,
0.028637806,
0.2868200243,
-0.1024681702,
-0.3316049576,
-0.4810992181,
-0.2985096872,
-0.2880401015,
0.3028402925,
-0.1538035274,
0.0884623826,
0.0518566072,
0.2830046415,
-0.5554575324,
0.0205864608,
-0.1121594682,
0.2002896965,
-0.0868083164,
0.0174596235,
-0.0110800937,
-0.0363522246,
0.49126333,
-0.1543745995,
-0.1163395792,
0.1405213177,
-0.3566209674,
-0.073570475,
0.5362970829,
-0.3583714366,
-0.0659788474,
-0.0804210454,
0.3946354389,
-0.0404711887,
-0.2846671045,
-0.3354429603,
0.0593702197,
0.2304166704,
0.2856464684,
-0.0827295259,
0.0828800946,
-0.2585714459,
0.196532473,
0.1469177902,
0.0961876884,
0.2246541977,
-0.3954996467,
0.192488119,
0.0614372939
] |
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.2560875416,
-0.0967696905,
0.0178536326,
-0.0659614056,
0.0944886208,
0.0495947152,
0.1920956671,
0.2611154616,
0.1636171043,
0.0419381112,
0.0050670616,
-0.0133632869,
0.2525418699,
0.3941250145,
0.302511543,
-0.1754235476,
0.1524585634,
0.0719700009,
-0.2172751427,
0.0543561727,
-0.205519408,
0.2804815769,
-0.2303613424,
0.0209610611,
-0.1193828881,
0.129328087,
-0.3126569688,
0.1732152402,
-0.1787015051,
-0.6029584408,
0.3105772734,
0.393497318,
0.2743174434,
0.2377399504,
-0.0001235105,
-0.0232407749,
0.3910419643,
-0.1918268502,
-0.259036988,
-0.0267317444,
-0.3742640615,
-0.4201498926,
-0.1484019309,
-0.1779618412,
0.0797268897,
-0.2863832414,
0.1079148054,
0.3710980415,
0.219139874,
0.3876254261,
0.1255219579,
0.43912974,
0.5360844731,
-0.1845330149,
-0.0708415061,
0.1065436304,
-0.1627679467,
0.2750478387,
0.1780856997,
-0.0807063654,
0.2044585794,
0.1735396534,
-0.0209432244,
0.0642213523,
0.366050303,
0.1444919258,
0.3109259009,
-0.4145335853,
0.1908099651,
0.2390265316,
0.7586013079,
-0.3389022052,
-0.4380358756,
-0.086811699,
0.1690301299,
-0.2703781724,
0.1488965005,
-0.0361513123,
-0.1700429916,
0.2979435325,
-0.1648450643,
-0.4038983285,
-0.2858359218,
0.3131335378,
0.0762058571,
0.4441385865,
0.0129929669,
0.1372983009,
0.4096089005,
-0.1014985591,
-0.0474602804,
0.1721399575,
-0.2839384079,
0.050690487,
0.1691612601,
-0.2852404714,
-0.1591254175,
0.0787693933,
0.3009271026,
0.1759154797,
-0.3208155036,
-0.1262311041,
-0.1952872574,
-0.0971672311,
0.2797227502,
0.0889271945,
0.0287297852,
-0.0519122742,
0.4055676162,
0.6368989944,
0.2258512676,
-0.0737118572,
0.1513205469,
-0.3014294207,
-0.2974280119,
-0.087425828,
0.2769131064,
-0.1878218949,
-0.0803299397,
-0.2514243126,
0.1449322104,
-0.1607226431,
-0.0861137807,
0.3290611207,
-0.1138230413,
0.1629011482,
0.0208367184,
0.1700351834,
-0.1408056319,
-0.2607523799,
-0.0238275155,
0.0364177078,
0.0059564784,
0.1546953321,
0.1064965278,
0.0981587842,
0.1805329323,
-0.096520856,
-0.0971256644,
-0.1832302809,
-0.3297603726,
0.1840197593,
0.0529415868,
0.0353844427,
-0.153047353,
0.1169520915,
0.0272816308,
-0.1550367177,
-0.2040180266,
0.2259788364,
-0.1315048784,
-0.345286727,
-0.1903002709,
0.0012860876,
-0.2778307498,
-0.4454152584,
-0.0313392505,
0.0521881282,
-0.24589926,
-0.2138427794,
0.0153322406,
0.0765469968,
-0.3249952197,
-0.1181465834,
0.2416534424,
0.7265809178,
-0.5139056444,
-0.278927058,
-0.0764443129,
-0.3277512193,
0.2245224416,
0.2515985966,
-0.161542803,
0.2488372624,
-0.3000684679,
0.0010981709,
0.3311363459,
-0.3804428875,
-0.6101981997,
0.1879914552,
-0.0540631488,
-0.0505581088,
0.1124407277,
0.1294061691,
0.1397248656,
-0.3284981251,
-0.5146920085,
-0.015763266,
-0.0232056472,
0.030654572,
-0.1765308976,
-0.6106561422,
0.2020426542,
-0.0040538982,
0.0648260564,
0.2028806806,
0.2194604576,
0.2528122067,
0.4670443535,
-0.067551434,
0.0977601036,
0.215645954,
0.4710687399,
0.2730851769,
0.067008473,
0.0601324216,
-0.17628932,
0.1627107561,
0.1490878761,
0.2279661149,
-0.2123595625,
-0.0618012398,
-0.5251749754,
-0.1285540462,
-0.3235303462,
-0.2717590034,
-0.028741518,
0.0901928097,
0.2446546704,
-0.1121617481,
-0.2586701512,
0.2478962988,
-0.2294486165,
0.109218277,
-0.1207645461,
0.4380148649,
-0.2130046785,
-0.0119134299,
-0.0282819271,
0.1945424676,
0.2381061018,
-0.3213098645,
-0.085992232,
0.4823783636,
-0.3050898314,
0.2762869,
0.3618414402,
0.2052757293,
0.2600655556,
-0.4229333997,
0.2289724052,
0.1232642904,
-0.0746656805,
0.1577852964,
-0.1887498945,
-0.092708081,
-0.0088554323,
0.2620520294,
-0.0418129377,
-0.0275798552,
0.3348996043,
-0.1963995099,
-0.0884000212,
-0.2597969174,
-0.2072836757,
-0.2496730983,
-0.2829403579,
-0.2605137825,
0.0171165019,
0.2126549184,
0.412340045,
-0.1385308355,
0.0295030586,
0.3590830266,
0.0673984587,
-0.0065642148,
-0.2185410708,
0.4872527719,
0.3576415479,
0.0202485695,
-0.1737889946,
0.1996553689,
0.1690054685,
-0.0750793219,
0.2454594225,
0.1035992652,
-0.1709527075,
0.0586017445,
-0.0797951818,
-0.0475221947,
-0.0519349724,
0.1176467687,
0.1086495668,
0.339751482,
-0.2460730672,
-0.0674609542,
-0.3342818022,
-0.6024013162,
-0.340809226,
0.1691473424,
-0.3219606876,
-0.1643617302,
-0.030135408,
0.2658125758,
-0.0377431102,
0.2160299122,
0.1099048555,
0.2593462765,
-0.0848582909,
0.1422858238,
-0.2388989627,
0.0188318789,
-0.1592911482,
-0.0287547931,
0.3545592427,
0.0627914816,
0.2899091244,
-0.5861013532,
-0.2462387085,
-1.0009704828,
-0.1878992021,
0.1199489683,
0.0032072635,
0.1540721059,
0.4157360792,
0.3913275599,
0.2890337706,
0.0603230111,
0.2781769931,
-0.2399689108,
0.1530868113,
-0.2830750346,
-0.152024284,
0.0930636227,
-0.0592893288,
-0.256968081,
-0.4589644074,
-0.2208828926,
0.296076864,
0.1360132694,
0.1107348055,
0.046827618,
0.2436874658,
-0.0483039692,
0.0023812167,
-0.2082563341,
0.0096364245,
0.0344330072,
0.295796752,
-0.1325060874,
-0.4118839502,
0.2555497587,
0.2001850009,
0.0281182341,
-0.204790175,
-0.510338068,
-0.3684628606,
-0.0034457967,
0.4062129259,
0.0548586622,
0.4638817906,
0.1891885698,
0.0625088885,
-0.0122243166,
-0.010843128,
-0.3678068519,
-0.0895686001,
0.1972309351,
0.5582020879,
0.4164219201,
0.443443954,
-0.145185858,
0.5577758551,
0.0876421481,
0.0095202615,
0.2989990711,
-0.363642931,
0.4048635364,
-0.0420440733,
-0.3322060704,
0.1826122552,
-0.194526881,
0.3318012357,
0.3361843526,
0.1469945908,
0.1040751562,
-0.0948179364,
-0.1702913791,
-0.1329939365,
-0.4028578699,
-0.1485629529,
0.5888514519,
0.1436895132,
0.2323761582,
0.0228491127,
-0.3772394657,
-0.1427164674,
0.4252014756,
0.3784025609,
0.0306974147,
0.0962835848,
0.1603624672,
0.0097388439,
-0.5299111605,
0.2029694617,
0.0565261133,
0.1712632328,
0.0220374614,
0.0857072473,
0.1511496305,
-0.0697495788,
0.7038938403,
-0.1408513635,
0.0877512991,
-0.0066864192,
0.1629090309,
0.1104422733,
-0.0515296981,
-0.038497366,
0.1824558675,
0.3331944346,
0.1445677727,
-0.2590572834,
-0.3296524882,
0.5500893593,
0.4340198934,
-0.1855707914,
-0.2135309279,
-0.0067789033,
-0.4758859873,
-0.6366706491,
-0.1136644185,
-0.0540184826,
-0.0740407333,
-0.1543670893,
0.1138619632,
0.2564127743,
-0.1707110405,
-0.1556660533,
-0.0892778412,
0.1769656241,
0.4189604819,
-0.0561014228,
0.1763493419,
-0.0518059917,
0.1137763038,
0.3967268467,
-0.077978,
-0.3872697949,
-0.1244265363,
-0.2225023359,
-0.1031110287,
0.3866277337,
0.0910371542,
0.1034687757,
0.2654751539,
0.177185446,
-0.0770071596,
0.0565066934,
0.4585668445,
-0.0764742568,
-0.3969675899,
-0.454128623,
0.33063218,
-0.1228719503,
0.0162305385,
0.2529271841,
0.4226774275,
-0.1093463749,
-0.219201535,
-0.1736411303,
0.9077029228,
0.0827928931,
0.0347737223,
0.2712679803,
-0.1025491953,
0.6737480164,
-0.1317311674,
0.1328423917,
-0.2610988617,
-0.0492306799,
-0.0813681036,
0.1012215465,
-0.155844152,
0.063567102,
-0.1261624545,
0.4567213655,
0.0598923266,
-0.0140636815,
0.1917675138,
0.4202849269,
-0.1178311557,
-0.1718257964,
-0.3096843362,
0.0760781467,
0.0758550018,
0.4237974286,
-0.1220674962,
-0.1469489187,
0.1439664513,
-0.2193655372,
-0.6025187969,
0.068776086,
-0.2006504238,
0.0874661133,
0.1361121237,
0.0731354654,
0.2486489117,
0.1761366129,
0.4182497561,
0.0958508849,
-0.3794708848,
0.2238374054,
-0.1555956602,
-0.1785181463,
-0.0702656806,
0.324934423,
-0.0614269301,
-0.2574085891,
-0.4357280135,
-0.2055079043,
-0.0111798383,
-0.2999997437,
0.1022257209,
-0.2520033121,
0.5220277905,
-0.1184470803,
-0.0968033522,
-0.0729905516,
-0.1612086594,
-0.3448170722,
0.018516466,
-0.0442698151,
-0.1120539159,
0.0390926339,
-0.1782470793,
-0.0570418313,
-0.0896249115,
0.2339622974,
-0.3715412915,
-0.1817032397,
0.5752359629,
0.3446540833,
-0.0155802444,
-0.2305595577,
-0.2190042883,
-0.2222652137,
-0.8353121281,
0.1835672557,
0.2915767133,
0.1671946794,
-0.0672518387,
0.5296760798,
0.1522458792,
0.0785767883,
-0.1942709684,
-0.3521618843,
-0.2618651092,
-0.0023981221,
0.2342174351,
0.194896251,
-0.0063251331,
-0.0003677569,
0.1384160817,
-0.4774488807,
-0.1938972473,
0.0092140958,
0.0637510568,
-0.091125384,
0.680383265,
0.1719935387,
0.2699709535,
0.0258040801,
0.0068253987,
0.0369969085,
-0.0101181269,
-0.0110708252,
-0.2875039876,
0.180717662,
-0.1370129883,
-0.413056016,
0.0267748088,
-0.1023887694,
-0.0760750324,
-0.0343736224,
0.0697006062,
0.1879004687,
-0.0636163056,
0.0708684027,
0.4111152887,
-0.1488432288,
-0.1303731799,
0.1419173181,
0.3417853713,
0.5433336496,
0.1460549682,
0.3977508843,
-0.0944910049,
0.0844843835,
0.1741003394,
0.1218338013,
0.2144072354,
0.0460661128,
0.3353438973,
-0.1372395754,
0.064651981,
0.3166050315,
0.2093927264,
0.4750925899,
-0.1000739262,
-0.0756380558,
0.3047188818,
0.0343142711,
-0.3281180859,
-0.159963429,
0.2656956911,
-0.0441319011,
-0.077505514,
0.2122289389,
0.1708347499,
-0.1568445563,
0.3383659124,
0.1190061867,
0.406367898,
-0.2076784372,
0.1074998379,
0.3448401988,
-0.0184343532,
0.0205211844,
-0.0840308592,
0.054331556,
0.1479151994,
-0.0069150319,
-0.3325804472,
0.0007734988,
-0.0441078842,
0.3287571371,
-0.0699128509,
-0.3360919356,
0.1808305532,
-0.1922996491,
0.123992838,
-0.1625448167,
0.0326794311,
0.3966884613,
0.0730532631,
-0.1237240434,
-0.3008499444,
0.4938408434,
0.2963208258,
-0.1725651026,
-0.1268199831,
-0.190603435,
-0.1363843083,
0.066862449,
-0.1083366871,
-0.3233781159,
0.0920704678,
0.0047574099,
-0.0773351118,
-0.4025580585,
-0.1364330202,
-0.2281283736,
0.3287059963,
-0.1347251981,
0.1191613153,
0.2238928974,
-0.0048153978,
0.2363282442,
0.285815835,
0.4661473036,
0.2152846754,
0.4449121058,
0.2052200139,
-0.0639495999,
-0.032475207,
0.1189122498,
0.0438320264,
-0.0515884049,
0.1417501867,
0.0561558269,
0.0292951912,
-0.0215988662,
-0.3440895975,
-0.0517353974,
-0.0665438846,
-0.1367294341,
0.3235186338,
-0.0757753253,
-0.1349944919,
-0.4974310398,
0.1811789274,
-0.2072875202,
-0.0507322997,
0.2020736486,
-0.0605686232,
0.0358547978,
0.0579457097,
0.0071438216,
-0.0892655253,
0.3542533219,
0.3961354494,
0.0571396351,
-0.2331692278,
-0.1373505294,
-0.608014822,
0.0722815767,
0.0295273662,
-0.2606553137,
-0.1607082635,
-0.0504685342,
-0.2422070354,
-0.006700865,
0.3835422099,
-0.1139459014,
0.2681027949,
0.1205851883,
-0.0389936306,
-0.1914322376,
-0.1258767247,
0.4343543649,
0.1069082618,
-0.1347618401,
0.0551381707,
-0.1180201173,
-0.1362475306,
0.1671074629,
-0.0345270261,
-0.128647998,
-0.3072929382,
0.1429601908,
0.0770580396,
0.3717908859,
-0.1529375762,
-0.3054277599,
-0.4834332168,
-0.2226255983,
-0.4171457291,
0.2702682018,
-0.0821721256,
0.0717910528,
-0.0331221521,
0.179409042,
-0.5594057441,
0.0533703603,
0.0479889214,
0.2227484435,
-0.2027697563,
0.1464827657,
-0.0488194227,
-0.0336140245,
0.4108430743,
-0.0875504762,
-0.1198266819,
-0.0490779653,
-0.2409549206,
-0.0097330101,
0.6197209954,
-0.2184150517,
-0.1049644947,
-0.0750177205,
0.219288975,
-0.0359684974,
-0.3054167926,
-0.4327186346,
0.1702483743,
0.112379089,
0.2900765538,
-0.0736739188,
0.2134286463,
-0.3135071099,
0.0939057618,
0.0636197925,
0.2041409314,
0.1747094691,
-0.3216529787,
0.0339301005,
-0.0607596487
] |
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.2110829651,
-0.2354270071,
0.0539522097,
-0.1203534678,
-0.0160380658,
0.0573175177,
0.0736915246,
0.3318696618,
0.2753104568,
0.0360611938,
-0.146358788,
-0.1400416791,
0.3278668821,
0.358464241,
0.2050698847,
-0.1643645316,
0.1016287357,
0.0192577913,
-0.3486399949,
-0.025908336,
-0.204631865,
0.1603536308,
-0.0323320255,
0.0914420858,
-0.0280472524,
0.0190893058,
-0.2939882278,
0.3911280036,
-0.0363711864,
-0.4728157818,
0.4034947753,
0.3701822758,
0.2042796165,
0.3489317298,
-0.0001184652,
0.0142525882,
0.2367949933,
-0.0410919897,
-0.2115546763,
-0.1077309847,
-0.2645905912,
-0.4390318394,
-0.1316622347,
-0.1381309927,
0.034405008,
-0.0912178457,
0.1589484215,
0.3369339108,
0.3802202642,
0.2255798578,
0.1258406937,
0.4230263531,
0.4710547924,
-0.2185387909,
0.0862676501,
0.0614388362,
-0.1282146871,
0.2936408222,
0.0898409784,
-0.0591584668,
0.0364880748,
0.2152910382,
0.0781654119,
0.249744609,
0.4219130278,
0.0737007186,
0.1608163863,
-0.3957276642,
0.1415680945,
0.238516748,
0.6311094165,
-0.3547591865,
-0.3796704113,
-0.0760814995,
0.0333199576,
-0.1144909561,
0.1499062032,
0.026480075,
-0.1659981012,
0.3294632435,
0.0786607862,
-0.5474170446,
-0.2395002246,
0.2311941236,
0.1810728759,
0.28534168,
0.0017943531,
0.0789149255,
0.3799144626,
-0.1323518008,
-0.1323440075,
0.1575140655,
-0.2554056048,
0.1031678617,
0.1107836217,
-0.2356531024,
-0.1103461236,
-0.0550626293,
0.4048177004,
0.061330907,
-0.3543199301,
-0.0444749109,
-0.2573794723,
0.0111757396,
0.1744704843,
-0.0149969086,
-0.1784739494,
-0.0599962175,
0.4562725127,
0.4776797891,
0.1987172216,
-0.1451391429,
0.2203815132,
-0.2268172503,
-0.3670241535,
-0.2010920942,
0.4068785012,
-0.2196872532,
-0.0714216977,
-0.3043862879,
0.1304110885,
-0.0501967408,
-0.1943062097,
0.4044190645,
-0.1218394935,
0.0369841866,
0.0639915019,
0.2810357809,
-0.1574193239,
-0.2196875215,
-0.1134863496,
-0.0748006552,
0.1971752495,
0.1814004779,
0.0033575967,
-0.0108481906,
0.0622830018,
0.1343209147,
-0.1932729185,
-0.1267472953,
-0.2192623317,
0.2691923678,
-0.030506935,
0.2095515281,
-0.0249659456,
0.2104756832,
0.1229591966,
-0.11837174,
-0.1643960476,
-0.0257813483,
-0.2253970206,
-0.2972944379,
-0.3480555713,
0.0438445769,
-0.0791404769,
-0.3015477061,
-0.0541517325,
0.0778255016,
-0.3137886524,
-0.1640637368,
0.0472618602,
0.1616929322,
-0.2903907299,
-0.1199442297,
0.3145062923,
0.6965308785,
-0.2458409369,
-0.3773680329,
-0.1598864943,
-0.1359549612,
0.0721238852,
0.3017197847,
-0.1499697864,
0.1195331812,
-0.271319598,
0.1623040885,
0.2666549683,
-0.4356097281,
-0.5098185539,
0.2222329825,
-0.0900066644,
-0.0561338738,
0.0360273011,
0.0909891948,
0.1352197379,
-0.2080692947,
-0.5479162931,
0.0284521319,
0.0575359166,
0.060386233,
-0.2171858996,
-0.5456911325,
0.0474581644,
0.0427252576,
0.1120493561,
0.3481539786,
0.4164608717,
0.1177422255,
0.3645392954,
-0.1829754114,
0.1338169426,
0.289729476,
0.5038339496,
0.4074415863,
0.0071043186,
0.0301906317,
-0.2982338071,
0.1431923956,
0.0423158035,
0.2540910244,
-0.1266072243,
-0.1244281679,
-0.4942822754,
-0.0951790884,
-0.2824360728,
-0.1889825314,
0.0047094114,
0.0679040104,
0.0674919188,
-0.0355721861,
-0.1386611313,
0.3957076073,
-0.2146774977,
0.1661384702,
-0.1394146681,
0.5787006021,
-0.1604613066,
0.0581319071,
0.1075863093,
0.1332898438,
0.2444791943,
-0.2259410322,
-0.1514310837,
0.4178690314,
-0.4214970767,
0.2410953343,
0.5301561356,
0.2047101706,
0.2471736073,
-0.5035048723,
0.3256248534,
0.1582867205,
-0.0524605215,
0.1165192723,
-0.0072106421,
-0.0388914496,
0.0617169626,
0.2240243852,
0.0515302569,
0.0638944581,
0.4288526177,
-0.2204477042,
-0.0248722732,
-0.112314783,
-0.2210938483,
-0.4116816223,
-0.0536613539,
-0.3122764826,
-0.110032402,
0.2835021615,
0.5371804237,
-0.1335302889,
0.1254914403,
0.4350461066,
-0.0412508734,
0.0413595214,
0.0192508828,
0.2674676776,
0.0542724021,
0.073749952,
-0.1289022863,
0.2507378459,
0.0435520336,
0.0266730078,
0.1505314708,
0.1345539689,
-0.0677169785,
-0.0425433181,
-0.0737456381,
-0.111969918,
-0.0348206721,
0.0337278321,
-0.0966111124,
0.2112505585,
-0.3681169152,
-0.0346298665,
-0.3610074818,
-0.6220445633,
-0.3655465245,
0.1438071132,
-0.4196515679,
-0.2589596212,
-0.0270660557,
0.3142707646,
-0.1000513583,
0.1556217074,
0.1236822158,
0.1750086397,
-0.1223043874,
0.2079284787,
-0.2587122321,
-0.0562153459,
-0.1604394615,
-0.0437363274,
0.2674289346,
0.2079907805,
0.3205575049,
-0.5224847198,
-0.1317169666,
-0.901617825,
-0.1144957542,
0.2193327993,
0.0459594391,
0.1146954596,
0.3226827085,
0.4915754497,
0.1684920788,
0.0363832824,
0.2897359729,
-0.1280543804,
0.0844137669,
-0.2710860372,
-0.1807757467,
0.1145585999,
0.01757963,
-0.0776852667,
-0.5018085241,
-0.3658222556,
0.338137418,
0.0024154559,
0.050871484,
0.2050856799,
0.1885678172,
0.0024426952,
0.1367032677,
-0.1255959719,
0.0093967132,
0.056289345,
0.3124881983,
-0.2125174999,
-0.3424599767,
0.3461084366,
0.2088089287,
-0.0622548237,
-0.2458333075,
-0.529768765,
-0.1404605508,
-0.0356181264,
0.5182733536,
0.0156710465,
0.4950368404,
0.1784032583,
-0.0216535497,
-0.0080257133,
-0.0368844755,
-0.223123759,
0.0537449792,
0.2179127634,
0.3834921122,
0.4108876884,
0.4933069646,
-0.1012101322,
0.6489818692,
0.1351568401,
0.0992667302,
0.3816054463,
-0.2987960279,
0.390478313,
-0.1469757557,
-0.2986433208,
-0.0016427673,
-0.1519542634,
0.2234376818,
0.3047828674,
0.1389472038,
0.1592386067,
-0.0936537385,
-0.3841910958,
-0.1008108333,
-0.4200044274,
-0.1524870247,
0.3653808534,
0.1339364946,
0.2260610908,
-0.0965342075,
-0.3875354826,
-0.1447793692,
0.4546307623,
0.4856205285,
0.078835763,
0.1901088506,
0.2211534083,
0.0364671797,
-0.4469140172,
0.2903984189,
0.132007584,
-0.0227107592,
-0.0453884304,
0.0428978801,
0.1085167974,
-0.1409754753,
0.5532928109,
0.0112178717,
0.2167458534,
-0.0985500664,
0.0229873732,
0.0994182453,
0.0107958317,
0.0437109321,
0.1837851256,
0.3269135058,
0.0586389378,
-0.4327540696,
-0.4608086944,
0.4464085698,
0.2359813452,
-0.1968592703,
-0.0085381866,
-0.0412103236,
-0.56887573,
-0.7046001554,
-0.1678560674,
-0.0078565776,
-0.1879736334,
-0.1209302321,
0.0776062384,
0.1903197616,
-0.156893298,
-0.1972069442,
0.0078231394,
0.1801781356,
0.2754971981,
-0.0363739245,
0.1566658616,
-0.0247714743,
0.1078739092,
0.4978246391,
0.0052086543,
-0.2094112635,
-0.1368772686,
-0.0539462902,
-0.1945203841,
0.3270235062,
0.2149186134,
0.27940467,
0.5513014793,
0.2594566345,
-0.2275276482,
0.0053488389,
0.3613307178,
-0.0919295102,
-0.3410682082,
-0.3720961213,
0.5128762126,
-0.2919175029,
0.0253155828,
0.3009579182,
0.6141802073,
-0.0424412191,
-0.1070445776,
-0.2116151452,
0.817170918,
0.1098040417,
0.0233183894,
0.3205433786,
-0.3169647157,
0.4993394017,
-0.1834738404,
-0.0700719208,
-0.2237209976,
-0.1022571176,
-0.1298689246,
0.1635371298,
-0.1475666314,
-0.0211657546,
-0.0248915926,
0.4875752628,
0.2194265276,
0.1664325595,
0.1990476847,
0.400198251,
-0.1482167244,
-0.1841367185,
-0.3412179649,
0.1323920488,
-0.1016488671,
0.520121336,
-0.0426829085,
-0.3606904447,
0.0399967656,
-0.1636307836,
-0.495930016,
0.0977746919,
-0.2116213441,
0.1316360533,
0.0644886196,
0.128590405,
0.1896416396,
-0.1768202782,
0.420373261,
0.0891017318,
-0.3705150783,
0.2290135771,
-0.0821930692,
-0.0882164389,
-0.0938074142,
0.3628080785,
0.1292985231,
-0.2935975194,
-0.4153259695,
-0.1198913231,
-0.0288054589,
-0.3968336582,
0.1516188681,
-0.3641493917,
0.067746371,
-0.0485800691,
-0.0987282172,
0.0722707137,
-0.0735659525,
-0.3161444366,
0.0389037356,
-0.1556696892,
-0.0997208878,
-0.1470520496,
-0.0951969773,
-0.0044177622,
-0.1197343618,
0.2152940482,
-0.4728777707,
0.0231328979,
0.4791007042,
0.4317130148,
-0.0830757245,
-0.1388288438,
-0.2956314385,
0.0571272671,
-0.8023338318,
0.2080300748,
-0.0347241871,
0.1268725544,
-0.2369492501,
0.5104191303,
0.18615143,
0.0303392,
-0.1408404112,
-0.3329782188,
-0.1892124563,
0.1432466507,
0.121350497,
0.138991788,
-0.0154815167,
0.1325036734,
0.1311821938,
-0.3261323571,
-0.2453274131,
-0.0592158847,
0.0088903308,
-0.1425934732,
0.5837340355,
0.0677374899,
0.3327389657,
0.0386000723,
-0.0028792247,
-0.0786759406,
-0.1512926966,
-0.0153799988,
-0.3094740212,
0.1270184964,
-0.19380036,
-0.3463671207,
-0.0661302581,
-0.2369440198,
-0.0994161293,
0.0245894827,
0.1164683998,
0.0673756748,
-0.0998676345,
0.1007111967,
0.3244675398,
-0.2328875065,
-0.1834410876,
0.1127822101,
0.4962287247,
0.5475099683,
-0.1123682261,
0.3527326584,
-0.2155142576,
0.0361015499,
0.0072238036,
0.1517482102,
0.2413234711,
-0.1230810136,
0.4092425704,
-0.0962150246,
0.0337087736,
0.1993790567,
0.272416532,
0.2172192931,
-0.0301286913,
0.0002519116,
0.1970582306,
0.0334303156,
-0.2407180518,
0.0043879226,
0.2773885131,
-0.3165878654,
0.000148654,
0.2445086837,
0.2434202731,
0.0326868147,
0.2097510248,
0.15460217,
0.3843666613,
-0.1354890466,
-0.0059503391,
0.2811086774,
-0.0566391014,
0.0723371506,
-0.1455575824,
0.1488769948,
0.2666096091,
0.0812096745,
-0.2176886946,
-0.0191492885,
-0.0000563143,
0.2646211982,
0.068858251,
-0.4345853031,
-0.0124287652,
-0.1814427376,
0.1980899125,
-0.1255667657,
0.023494821,
0.2571659982,
0.0722441673,
-0.3908341229,
-0.1862328351,
0.6674998999,
0.2729695439,
-0.0067737699,
-0.1617905349,
-0.1766161919,
-0.2412555218,
0.0472541451,
-0.1085464954,
-0.300973624,
0.1466254294,
0.0342850499,
0.1258673668,
-0.2188077569,
-0.0567172393,
-0.1533831954,
0.3554352224,
-0.1098853052,
0.1494351625,
0.3063850403,
-0.1160862148,
0.099415794,
0.2421588153,
0.4903851748,
0.0880441815,
0.1118218899,
0.1783020496,
0.1303444803,
-0.1638833135,
0.1486399472,
-0.1357660592,
-0.1518825889,
0.1162727848,
0.1003920287,
0.0547592975,
-0.0963517874,
-0.2757142782,
-0.2807416022,
0.03274142,
-0.1258037388,
0.4316259623,
-0.1865400076,
-0.1493148506,
-0.2894167602,
0.0295161139,
-0.1919054985,
0.0120492615,
0.191039741,
-0.2029002905,
0.0164055899,
0.0376007296,
0.0303535163,
-0.1848807335,
0.3830527365,
0.3688985109,
0.1084758192,
-0.0404463634,
-0.1493469477,
-0.5221027732,
-0.0911984146,
-0.0646285489,
-0.3110877872,
0.08188916,
0.0216678604,
-0.1355514079,
-0.0517253913,
0.4342080653,
-0.3080396652,
0.3608537614,
0.1353233457,
0.1233096868,
-0.2188129723,
-0.3192844391,
0.3344916105,
0.1019838229,
-0.1856912374,
0.10057576,
0.0284420364,
-0.1047627926,
0.2286313176,
0.0314074382,
0.068532601,
-0.7217946649,
0.05771029,
0.0108112451,
0.2015742064,
-0.2599644363,
-0.4110688865,
-0.2814146876,
-0.3405731916,
-0.3281995952,
0.1083413213,
-0.256090641,
0.3493720293,
0.0975083336,
0.0146312937,
-0.5679982901,
0.0393323302,
0.1083651856,
0.1224355996,
-0.1601151228,
0.2394272685,
-0.2191824615,
-0.0246325098,
0.5274119973,
0.014111761,
-0.0824993253,
0.0562006384,
-0.3022764921,
-0.1346306503,
0.5225578547,
-0.1165834516,
-0.0832861215,
-0.0401237682,
0.2780084312,
0.1697812676,
-0.3663475811,
-0.4627894759,
0.1363803893,
0.0041424744,
0.28462556,
-0.0590315536,
0.2200994492,
-0.144690752,
0.0008823648,
0.1061486453,
0.1828067005,
0.1683296114,
-0.3448530734,
0.0616686046,
-0.0189398192
] |
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.4876464605,
-0.0846992061,
-0.0791776478,
-0.0048033502,
0.3903563321,
0.0129869878,
0.2704301476,
0.3016327918,
-0.0631877184,
0.3089751303,
-0.2126756907,
-0.1347056031,
0.1226179153,
0.017010197,
-0.0094281733,
-0.093178302,
-0.0044789352,
0.0029829405,
0.1925332844,
0.0247697979,
-0.0387784615,
0.0858434811,
-0.1760055423,
0.3123495579,
-0.1892662942,
-0.0507801175,
0.0589112714,
0.077044934,
-0.2132199854,
-0.3560753763,
0.4676539302,
0.0277778134,
-0.0412643105,
0.81902951,
-0.0001130046,
0.1451919228,
0.4414004982,
-0.0683252439,
-0.3076120317,
-0.4945726991,
-0.0904798508,
-0.0165248998,
0.1303873956,
0.1618441343,
-0.1614779532,
0.0518422313,
0.0687631071,
-0.2308125794,
0.3592002988,
0.356059134,
0.2153367996,
0.2006517649,
0.3548301458,
-0.186859265,
-0.0521092303,
-0.1892620921,
-0.0218944252,
0.8155433536,
0.0865341946,
-0.2235878408,
0.2252187133,
0.1362261325,
0.1147136614,
-0.0424555689,
-0.0971718878,
-0.0446064584,
0.1151468307,
-0.3021113575,
0.0465989038,
0.2485736161,
0.4080202579,
-0.4108532667,
-0.3393289149,
-0.0096717775,
0.0688005164,
-0.1919009686,
0.1794369072,
0.0755960792,
-0.3747928143,
0.08968997,
-0.4395817816,
-0.3170167208,
-0.1687384397,
0.2219956517,
-0.0388030484,
0.0705613345,
-0.1115495637,
0.0763532296,
0.178045094,
0.0002036458,
-0.343488127,
0.1713796556,
0.002053492,
0.4054928422,
-0.5099362731,
-0.0270294771,
-0.24460271,
-0.3834081888,
0.3409882486,
-0.0012127059,
-0.066015631,
-0.0444584638,
-0.2184316516,
0.1957032979,
0.323867768,
0.2319250554,
-0.0145540312,
0.2270809263,
0.4110627472,
0.2189214677,
-0.0950864851,
-0.0442092419,
-0.3507364094,
-0.364831835,
0.1944306791,
-0.0137007115,
0.3809742928,
-0.3023437262,
-0.2657469511,
0.0950677246,
-0.2045121491,
-0.0274014752,
-0.048689194,
0.3798327744,
-0.1350039393,
0.0382545143,
-0.1236831471,
0.4221956432,
-0.118559286,
0.0815405101,
-0.2166411281,
-0.0903098583,
-0.1128265038,
0.0976698175,
0.0493131727,
-0.3984245658,
0.2074007988,
0.0379752591,
0.3572263122,
-0.3074057996,
-0.0891102254,
-0.0856578499,
-0.5720179677,
0.1642296314,
0.0533687994,
0.214651674,
0.2993556559,
-0.1587567627,
-0.117012538,
-0.1049672812,
-0.3046241105,
-0.4716558754,
0.0482196435,
0.2257326245,
-0.0102702901,
0.0569619127,
-0.4090846181,
-0.1771775633,
0.1486502588,
-0.2936160266,
-0.0880607218,
-0.301613301,
0.0597567186,
-0.1316049993,
0.4870408475,
0.0713867024,
0.0527720004,
-0.1694485545,
-0.0351199284,
-0.1018609256,
0.0548311919,
0.5269746184,
-0.2484564632,
0.0601397343,
-0.2221782058,
0.1560970247,
0.5217099786,
-0.652610898,
-0.4879726171,
0.4022217989,
-0.2358701527,
0.0671708956,
-0.093929112,
-0.2874568999,
0.039274659,
-0.0323440023,
0.5161756873,
0.1174636185,
-0.0979952589,
-0.1968777478,
0.0407912433,
-0.2047235966,
0.1706808358,
0.02111011,
-0.0097484188,
0.0787400901,
0.1623609364,
-0.0269787051,
0.416403234,
0.1037284881,
0.009009026,
0.224887833,
0.3108515441,
-0.2277764678,
-0.155593887,
-0.1596636474,
0.1518705487,
0.1177367568,
0.2797799706,
0.3692601025,
-0.1291470826,
-0.1252072603,
-0.4446755648,
-0.0257858783,
-0.2310211957,
0.0622793995,
0.0568086728,
0.03203113,
0.0646315068,
0.2193548977,
-0.1840769351,
0.1622597724,
-0.2816716433,
0.1097337231,
-0.1320053935,
0.4692248106,
-0.2606514394,
-0.0348061547,
0.2211776972,
0.2767659426,
0.0456459224,
-0.0788387358,
-0.2146996558,
0.3152987659,
-0.3178598583,
0.2351752967,
0.120597437,
0.2831674814,
0.1175952479,
-0.591106534,
0.0591867939,
0.1485543251,
-0.0232401881,
0.0424572378,
0.3778434992,
0.2386407852,
0.1728031635,
0.4496590197,
0.0726335347,
0.0858748779,
0.2909100354,
0.24765715,
-0.1342756152,
0.1453575641,
0.1616976559,
-0.1719190478,
0.3192303777,
-0.1830843836,
-0.3405322433,
-0.1651497781,
0.3829869628,
-0.0832234323,
0.1078934819,
0.1136159971,
-0.1390832961,
-0.1129104868,
-0.0132414689,
-0.0086587518,
0.2383929342,
0.091188997,
0.0106045716,
0.3226593435,
-0.2620113194,
0.0036355406,
0.0549352951,
0.0583236776,
0.1743072569,
0.2589446604,
0.0226727612,
-0.0217203386,
-0.0456667095,
-0.2580972612,
-0.2093355656,
0.1478903741,
-0.1808155328,
0.1480842531,
-0.086663492,
0.0132796466,
-0.0805372596,
-0.3049542904,
-0.5015801191,
-0.2510820031,
-0.1252114475,
0.1089012772,
0.3503380716,
0.2614882588,
-0.0398208834,
-0.1008039266,
0.1907770336,
-0.2764281929,
0.0604963005,
-0.2182853669,
-0.2243889421,
0.0706054568,
0.0844245031,
-0.3123203516,
0.0233449619,
-0.2295906544,
-0.1374638826,
-0.078205049,
-0.1175296232,
0.0083508734,
-0.2455488592,
0.3056177199,
0.181633994,
0.398681432,
0.2330409586,
-0.0065057203,
0.421759665,
-0.21888116,
-0.0219957903,
0.0442473441,
-0.0634040833,
0.0226565003,
0.1767363101,
-0.2832995951,
-0.4118849039,
-0.3967009187,
0.2375128567,
-0.1698881984,
0.0501049012,
0.2355162054,
0.1234255955,
-0.0473633632,
0.0705346465,
0.3045692742,
-0.1642433107,
-0.3654205501,
0.0484300554,
-0.0856718272,
-0.1601702869,
0.1718706489,
0.2391329408,
0.5762709379,
-0.0725360811,
-0.4448835254,
-0.0168508068,
-0.0534743741,
0.3242329061,
0.1021107808,
-0.0072238129,
-0.0170470737,
-0.0905973315,
-0.0576721989,
0.1403517127,
-0.2352852374,
-0.062981084,
0.204368189,
0.3051234484,
0.1238505095,
0.5398370624,
-0.1348449588,
0.6648232341,
0.2927263975,
0.1564441174,
0.187933147,
-0.2086396217,
0.3413592279,
-0.2027698159,
-0.4419165254,
0.1032794937,
-0.1708297729,
-0.0757673308,
0.082686685,
0.1749294102,
0.0357123464,
-0.3792595565,
-0.4515123367,
-0.1404633075,
-0.2120099664,
-0.2305963486,
-0.2494813651,
0.0973122045,
0.0886195153,
-0.0255279243,
-0.1131442338,
-0.085887678,
-0.0161931813,
0.4476884902,
-0.1347054541,
0.1376418173,
-0.2322182208,
-0.2518398166,
-0.3093478382,
0.1862035096,
0.0572025627,
0.412484318,
-0.3871543705,
0.1881734282,
-0.1086353511,
0.0231672451,
0.175786972,
-0.1260644048,
0.0896160156,
0.0296846256,
0.0075163171,
-0.181434378,
-0.0671500266,
0.1948506534,
0.3333881497,
0.3082721233,
0.2268796265,
-0.164906919,
0.0436125882,
0.1503460705,
0.4491622746,
0.0521084592,
0.0356228985,
-0.3161218762,
-0.2028126419,
-0.3019145429,
0.0451674275,
0.0064084977,
0.3169749975,
-0.178701818,
0.0400926918,
0.3380234838,
-0.2488070428,
0.2350930572,
0.0458867513,
-0.0795387626,
-0.3574632406,
0.184831202,
0.2858289778,
0.0418103188,
0.0671862215,
0.7470649481,
0.1048016027,
-0.524984479,
0.0151383653,
0.2105797231,
0.3927265108,
0.3051049113,
0.0145236664,
0.212978065,
0.2763597369,
0.0847403705,
-0.0271733887,
0.1968185008,
0.3358713388,
0.3391831517,
-0.6512297988,
-0.5451782346,
0.1240203232,
-0.1648373902,
-0.013387084,
0.3071777821,
0.1552506685,
-0.1331918538,
0.0506518558,
-0.5677533746,
1.0728429556,
0.1851097345,
0.0811419785,
0.0369697288,
-0.0408565849,
-0.0429542176,
-0.3154563308,
0.0794291496,
-0.1125623062,
-0.1045743376,
-0.0135760941,
-0.2059074491,
0.0688671917,
-0.1962570995,
-0.0762905478,
0.4810023606,
-0.0870860219,
0.0726331621,
0.1857946515,
0.2683595121,
0.0136690531,
0.2445685267,
-0.2734534442,
0.1776366085,
-0.0487892814,
0.5176773667,
0.0022684634,
-0.0941771343,
-0.2435058951,
-0.3722910881,
-0.3688100576,
0.2839077413,
-0.1193807349,
0.0671750754,
0.1856509745,
-0.2672017217,
0.2050147802,
0.1718739122,
0.3522244692,
0.2981652915,
-0.2847113609,
0.1762101203,
-0.0071890578,
-0.077832967,
0.1546155363,
0.1250273883,
0.0521416292,
-0.1679115444,
-0.5022815466,
0.3732265234,
-0.0156884491,
-0.3964529037,
-0.1300134957,
-0.2442806959,
0.0088549582,
-0.1638149321,
0.2053540945,
-0.3347202539,
0.1721633375,
-0.3236493468,
0.126395911,
0.1891031414,
-0.1880550683,
-0.159791097,
0.2088702619,
-0.1925046146,
-0.0563027523,
0.2488453984,
0.0497435145,
-0.1385814399,
0.4595993161,
0.1396303475,
-0.0454386324,
-0.2443520725,
-0.0585720502,
0.5368100405,
-0.4719843864,
-0.0285093263,
-0.11123202,
0.1944277883,
-0.1658239067,
0.4409451783,
0.2032217979,
-0.0784867704,
0.1024987251,
-0.4698054492,
-0.3129365742,
0.193655923,
-0.061577905,
0.2066179514,
-0.0816061124,
0.1082935482,
-0.0067191385,
-0.0445606634,
-0.2897929847,
-0.1077995747,
-0.343185842,
0.0209671631,
0.3339733183,
-0.1914006174,
0.3850358427,
0.0402168594,
0.2257784158,
-0.2455055416,
-0.1808195412,
-0.14693214,
0.021318987,
0.121276103,
0.0197615698,
-0.2533611059,
0.1456555128,
0.0564527214,
-0.1473717541,
-0.0086093694,
0.1858486533,
0.0480352342,
0.0552310795,
-0.1347243488,
-0.072306931,
-0.1145791709,
0.0543710738,
0.1188738793,
0.0379203185,
0.4012284279,
-0.0092395283,
0.1457678974,
0.0158030577,
-0.2288102508,
-0.4103935063,
0.0634874031,
0.1104704067,
0.0188777149,
0.3517829776,
-0.3496555984,
0.0694839656,
0.0487372763,
0.6509907842,
0.1022279561,
-0.3533658385,
0.2629568577,
0.2502111793,
0.1545458138,
-0.2229314148,
-0.0240434017,
0.1632436514,
-0.1636534631,
-0.0173642039,
0.1162432283,
0.1822681278,
0.0582863837,
-0.0675272197,
-0.0943043455,
0.4997423291,
-0.0856319815,
0.2728965878,
0.1634152085,
0.1191037446,
-0.0082132965,
0.1074970886,
0.1330455244,
0.0430905409,
0.3482432663,
-0.5331624746,
0.0900314674,
0.0672295392,
-0.0937191695,
0.1620713174,
-0.1775238216,
0.1025070846,
0.0001448467,
-0.3571615517,
-0.2571326792,
-0.1978610307,
0.4001491368,
-0.3733708262,
0.1429114938,
-0.2302740514,
0.1050121337,
-0.0553167574,
-0.1685613245,
0.0117502511,
-0.2862842083,
-0.202334106,
-0.1951298416,
0.0582066216,
-0.0672034025,
0.201539129,
-0.0534079038,
0.0870339647,
-0.3017740846,
-0.1426236778,
0.2201746255,
-0.0625627562,
-0.1032322645,
0.3250925839,
0.1004205942,
-0.0980514735,
0.2333039343,
0.2825150192,
0.7588902116,
0.1723309904,
-0.0794542804,
0.2104047984,
0.1219782382,
-0.1308841109,
0.2585337758,
0.0486163199,
0.2171359956,
0.1646729708,
0.2685933411,
0.2097799331,
-0.1216758788,
0.2220003903,
-0.1417059898,
0.0521774366,
-0.331489265,
0.4694357514,
-0.4028271437,
-0.1831299365,
-0.490337044,
0.1656340808,
-0.4790596664,
-0.0280084107,
0.4250090122,
0.113731131,
0.0196257941,
-0.408396095,
0.0869361311,
-0.0538708828,
0.390073508,
0.3639172018,
0.4856373966,
-0.1029976308,
-0.101911433,
-0.4100947678,
0.3474358618,
-0.1695383191,
-0.0634159446,
-0.1056858897,
-0.1028933227,
0.0326900445,
0.2012595236,
0.2235746086,
-0.1411514729,
-0.199671343,
0.0126378201,
-0.0142849013,
-0.2394860089,
-0.0034856796,
0.1372597665,
-0.018423032,
-0.2118449509,
0.1580018401,
-0.4327088594,
0.0251365304,
0.0708990172,
0.120217897,
0.0879016519,
-0.3852391839,
0.2949136496,
0.1643311977,
0.738805294,
0.027025111,
-0.1943350732,
-0.0884247869,
-0.3569729626,
-0.1504112184,
-0.0098317675,
-0.2185799778,
0.4324527085,
-0.1128252745,
0.0285938755,
-0.3783828914,
-0.1291136444,
-0.0339359082,
-0.1541233957,
0.0211206749,
-0.0682815686,
0.038254045,
0.0142833889,
0.2206726074,
-0.1315781027,
0.0165925808,
0.0929289535,
-0.1390492767,
-0.1497684717,
0.4321295619,
-0.1975665838,
-0.2928905189,
-0.3356832266,
0.2677129507,
0.0137564037,
-0.1037767455,
-0.4707446396,
0.2704678774,
0.4233443141,
0.3171429932,
-0.3321480155,
0.1437585652,
-0.0832421482,
0.1260184944,
0.1612604409,
0.2068046629,
-0.3250115216,
-0.2565755844,
0.0909334868,
-0.1341870576
] |
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.1950865686,
-0.5012051463,
0.0041140318,
0.273545891,
0.2830949128,
-0.0630854666,
0.2918871939,
0.1244554743,
-0.3849657476,
0.1932281852,
0.0684062466,
0.271297425,
0.1175051332,
-0.2701619267,
-0.070833385,
-0.194200635,
0.0438762754,
-0.0185053125,
0.1663552225,
-0.0736738518,
-0.1644647121,
0.2084967196,
-0.473028034,
0.3151916564,
-0.3681921363,
-0.2792745233,
-0.0652287751,
-0.1413509846,
-0.2085030079,
-0.7724214792,
0.1893931031,
-0.2526653409,
0.2286592424,
0.2269302607,
-0.0001293044,
-0.0708507076,
0.0546482876,
-0.1082274914,
-0.2221767306,
0.0503475033,
0.2006009221,
-0.1157538965,
0.0235010535,
-0.1506021172,
0.0862619132,
-0.2532844245,
-0.2258589566,
-0.2837266326,
0.5048590302,
0.2183131576,
0.0398420319,
0.3087806106,
0.1326161027,
-0.0180969089,
0.0254219975,
0.0207155664,
-0.1004000306,
-0.061189957,
0.2177814245,
-0.0166316852,
0.1106865928,
0.6158605218,
0.2363808304,
0.1203646585,
0.3287789226,
-0.08447209,
0.0512516424,
-0.2424855679,
0.1621572077,
0.1987716854,
0.1203212589,
-0.0806563646,
-0.2992402613,
-0.3082882762,
0.2235186696,
-0.0175586492,
0.1416766495,
-0.1600327194,
0.2267242521,
0.0799518526,
-0.0211588945,
0.2763741612,
-0.2309037745,
0.1246562302,
0.1555744708,
0.0581960976,
-0.1273335665,
0.3357897997,
0.0843685493,
-0.4302315712,
-0.3450859189,
0.1799299568,
-0.1760933548,
0.3848984838,
-0.4720779657,
-0.1346977055,
-0.1783997267,
-0.2347410619,
0.330149889,
-0.1297595054,
0.2012563348,
-0.0882845074,
0.3551931381,
0.0218713209,
0.0719590634,
0.3336798847,
0.3085628152,
0.4262861311,
-0.2180075943,
-0.3491994143,
0.1205490381,
-0.1206209362,
-0.2547725439,
-0.3665162921,
0.2209733427,
0.1167228818,
0.3846704364,
-0.0516375154,
-0.3939841688,
0.4682799578,
-0.7649688125,
0.0811980367,
-0.0058187228,
0.178189382,
0.2198239863,
-0.0031696605,
-0.1204943433,
0.2113589048,
-0.0259234346,
-0.2856941521,
-0.0205111317,
-0.0750800371,
-0.185808599,
0.0906656086,
0.0571441054,
0.1531471461,
0.3249376118,
-0.1028740481,
0.3799374998,
-0.3787389398,
0.1879870296,
-0.1844677627,
0.345533818,
-0.072741434,
-0.3098553419,
0.142462939,
0.0584283769,
-0.1654931307,
-0.0539138392,
-0.1027217135,
-0.18743366,
-0.1261961609,
-0.2425880134,
-0.0208728611,
0.0811210722,
0.1629776359,
0.1043381095,
0.1319508851,
0.2459517866,
-0.0968072265,
0.3539925516,
-0.3905327618,
0.1205779091,
-0.0145221781,
-0.0205832236,
0.1708710492,
-0.356544733,
-0.1542255878,
0.5501692295,
0.2950056195,
-0.2008677423,
0.3871439099,
-0.1549216509,
0.0752355456,
-0.1555734426,
0.5609896183,
0.2675243616,
-0.7531766891,
-0.3551871181,
-0.0503066704,
-0.2858442664,
-0.0522268452,
0.0802324116,
-0.1308102906,
0.3515361249,
0.0559619628,
0.0502046347,
-0.0221528634,
-0.0017571319,
0.067441456,
-0.1703104377,
-0.0660701841,
0.0601953492,
-0.0560516715,
-0.2504398823,
-0.2083388716,
-0.1153803766,
-0.1653351784,
0.0465349928,
-0.0787106156,
0.2557060122,
0.3074445724,
0.3064408004,
0.0371080041,
0.2982437611,
-0.0424508229,
-0.5195570588,
-0.0673796311,
-0.0861479491,
-0.0555269048,
-0.0934736729,
-0.3999192119,
-0.4834736884,
0.1228382289,
-0.2551137209,
-0.3626619577,
-0.0108574182,
0.0558660217,
0.1518117934,
-0.3138312697,
-0.0647793263,
0.087795727,
-0.06719134,
0.2688458562,
-0.1233372912,
-0.0160101801,
-0.0595267937,
-0.1805102825,
0.0452829227,
0.1954573542,
0.3556152582,
-0.0670105368,
-0.1062883735,
0.3517387509,
0.2318140119,
-0.1074746251,
0.1140643507,
-0.1387195289,
0.1696455181,
-0.251165688,
-0.0463710837,
0.1581391245,
0.0831791908,
0.0153892487,
-0.1450784802,
0.496651262,
0.0857701227,
0.3637132049,
-0.3584548235,
0.0083900318,
0.056875363,
0.1508818865,
-0.426977396,
-0.0256516561,
-0.125353843,
0.1449755281,
0.401704073,
-0.1017795801,
-0.0515559539,
0.0492351353,
0.3358846307,
0.0354062021,
-0.0763479173,
-0.0242796075,
-0.0925269425,
0.173187077,
0.2631245255,
-0.0448202789,
0.2035175413,
0.129377082,
-0.2184269279,
-0.0190942921,
-0.0147030372,
0.1119665653,
0.0555925556,
0.0647544116,
0.1183329672,
0.2495092899,
0.3302027583,
-0.0305676144,
-0.1890273392,
0.0396376997,
0.1306309104,
0.094090566,
-0.3066776097,
0.215472281,
-0.1222214848,
0.1913227886,
-0.0042547025,
-0.2016804069,
-0.0127333617,
-0.138736397,
-0.1106947884,
0.1354758143,
0.0507062823,
0.3411773443,
0.2539762855,
0.3478589058,
0.4629755318,
0.0251272861,
-0.0785276368,
-0.0609100945,
-0.1276549697,
-0.1625012457,
0.0096554756,
-0.1742604673,
0.0441799611,
0.2778021395,
-0.0506550521,
-0.4606688023,
-0.6184923053,
0.1887661219,
-0.1437839866,
0.1473677754,
0.2346591055,
0.1375778019,
-0.5523957014,
-0.1461127996,
0.2825927138,
0.1565438509,
-0.3298372924,
0.0078807473,
-0.107571736,
-0.2112471014,
0.0480221361,
-0.2935303748,
-0.1629589796,
-0.0616581254,
0.5795474052,
-0.3441351056,
-0.10955026,
0.2096661031,
0.2039571255,
0.0286257975,
-0.3302953839,
-0.1491160095,
-0.2724181414,
0.1424412727,
0.3052257299,
-0.3198954761,
-0.0532760285,
-0.0678491071,
-0.1944744289,
0.229443416,
0.0854576975,
-0.0846454576,
-0.3280028701,
0.0363932699,
0.3106922507,
-0.2562971711,
0.1329613328,
0.4908975959,
-0.1166251302,
0.2066224515,
-0.0954712927,
-0.2646962404,
0.3713116348,
0.1710569859,
0.211656943,
-0.1192347482,
0.5886771679,
0.0093838051,
0.8307523131,
0.396944344,
0.0631241649,
0.0407915711,
-0.1729644984,
0.0089272261,
-0.1118539125,
-0.1739916205,
0.2699998915,
-0.1890036762,
-0.0634997413,
-0.0095266961,
-0.0304051284,
-0.0942556113,
0.3692889214,
0.1485638171,
-0.3062992096,
-0.2004450262,
-0.0791707188,
0.222051546,
0.227236107,
0.237549603,
0.1232861578,
-0.4511263967,
0.1228212491,
-0.0182358623,
-0.2509378791,
0.1650425941,
0.0517887734,
-0.8704366684,
-0.1390444338,
-0.1494323313,
0.4401815534,
0.3663050532,
0.4408901632,
0.1457430422,
-0.3024486005,
0.0741488039,
0.0059388503,
0.5031289458,
0.141145125,
-0.2307066917,
0.0029419884,
-0.1196793467,
-0.387390852,
-0.219016552,
-0.0496903732,
0.3620969653,
0.4047525525,
0.3142857552,
-0.3531350493,
-0.2044760287,
0.402562201,
-0.1466721743,
0.0333179757,
0.0963161141,
-0.2732215524,
-0.1293736994,
-0.4035230279,
0.267901063,
0.2889299989,
0.1370846033,
0.3320337832,
-0.0933262408,
-0.102527082,
-0.1522098482,
-0.0332018435,
0.2846737206,
0.4153460562,
0.1601264775,
0.0348914638,
0.351146698,
0.0053565567,
0.2843349278,
0.1784130931,
-0.0418753438,
-0.6814488173,
0.2047102451,
-0.3417010307,
0.4301432967,
0.6046113968,
-0.0288574696,
0.229327634,
-0.1741836667,
0.2242830992,
-0.0551010445,
0.1478209198,
0.5106638074,
0.3219777048,
0.2062796354,
0.0965004563,
0.0533223078,
-0.1170242876,
-0.1083359867,
0.6720846295,
0.4695625901,
-0.1918013394,
0.0846822932,
0.1610689759,
0.9873972535,
0.4777243137,
0.084102422,
0.4931913316,
-0.1852520853,
-0.1218821555,
0.0448411405,
0.1339325309,
-0.4574372768,
-0.0083533246,
0.0889012963,
-0.2034326196,
0.0583738945,
0.1391415894,
-0.0358726829,
-0.133572489,
0.0207327902,
0.3618423343,
-0.3089625835,
0.1112883985,
-0.2478879094,
-0.1883859634,
-0.2098683715,
-0.0012324378,
-0.0458229482,
0.0695335492,
-0.1330585033,
-0.0758010522,
-0.4445634484,
-0.4326425493,
-0.1195749268,
-0.1556154788,
-0.6754679084,
0.1890511215,
0.6171087623,
-0.1232600957,
0.1216162294,
0.2080595642,
0.4921885133,
-0.0150119634,
-0.0753891245,
0.24311845,
0.1800325215,
-0.0202209167,
-0.0825481489,
-0.1039877683,
-0.0103827463,
-0.0853098109,
-0.3040125966,
0.1791858524,
0.0415867306,
-0.2450326979,
-0.204288289,
-0.0527838729,
0.2268561423,
-0.3041241169,
-0.0235774741,
-0.0600929819,
-0.0953567103,
-0.1726209074,
-0.0551083237,
-0.1253157854,
-0.2628074288,
-0.0821696073,
0.4602863193,
-0.2076921463,
0.2340304703,
0.2675139308,
-0.299467504,
-0.1334337294,
0.7376732826,
-0.0894119889,
-0.0782722831,
-0.1300969422,
0.4940000772,
0.3498532176,
-0.460563004,
-0.0229655821,
-0.0998605415,
-0.2655722499,
-0.1948384047,
0.5396844745,
0.4198507965,
0.1491120309,
0.0435410291,
-0.1314016283,
-0.4555131197,
0.2382653207,
-0.2345760763,
0.1953025013,
0.0412920043,
0.0127274431,
-0.2794877589,
0.2170442641,
-0.1651524305,
-0.0105237812,
-0.1417562068,
0.1864138842,
-0.1825531125,
-0.3321323693,
0.1994383037,
0.0276307017,
-0.1235885844,
0.4358772635,
-0.090711236,
-0.0450684316,
-0.2240804732,
0.1943068504,
0.0553533584,
0.1142207161,
-0.2491776794,
-0.1408615708,
-0.1086737663,
-0.1333141029,
0.0239939988,
-0.0468275137,
0.3059264421,
0.1365160942,
-0.0672820508,
-0.0881894827,
0.1248906925,
-0.1457304806,
0.3126371503,
-0.0867116302,
0.2010822296,
0.1968143433,
-0.110137783,
0.0904989094,
-0.1544691622,
0.3345203698,
0.1623485088,
0.0165604986,
0.0076677538,
-0.3720282316,
-0.2001099586,
0.0768800825,
-0.2525674105,
0.386022836,
-0.219120428,
-0.0479568467,
0.0093507767,
0.1044491529,
-0.122590892,
0.1598884612,
0.4138646126,
-0.1265067011,
-0.0090750307,
0.2409756333,
-0.0483127497,
0.1263564974,
0.2902405262,
0.1767108142,
0.3259355724,
-0.2194679081,
-0.0503147766,
0.1213121563,
-0.1504022926,
0.0291121118,
0.6292265654,
0.0923189223,
0.3154926896,
-0.0725590736,
-0.2231787145,
0.2273402959,
-0.0814770833,
0.3294861317,
0.1937240064,
0.1792415977,
-0.3260830343,
0.1299861073,
0.0999936163,
-0.2000180781,
0.14689973,
0.5979402065,
0.1495613307,
-0.6717574596,
-0.1625269949,
0.0986650139,
-0.1824254692,
-0.1483789682,
-0.7064805627,
0.0255718827,
-0.3008073866,
-0.1062486768,
-0.1684418619,
0.1586558223,
0.4834393859,
0.0503592677,
0.0037671365,
-0.3265327215,
-0.2531436086,
0.3497819901,
0.2839303017,
-0.273524493,
0.2680559456,
0.0657739043,
0.1180290133,
0.0959356353,
0.4089800417,
0.2865681052,
0.1455125362,
-0.1512246877,
-0.1514050514,
-0.1721796393,
0.0007871464,
0.2196323127,
0.1611723006,
0.2842544317,
-0.1051213443,
0.1125272438,
-0.0957729965,
-0.030373713,
-0.1010294706,
0.1379580051,
-0.032423649,
-0.1870807409,
-0.3491019607,
-0.4216123521,
-0.0241045207,
-0.266498059,
0.0799738616,
-0.2798421681,
0.2792110443,
0.1507419944,
0.0445605963,
0.0716165155,
-0.0171587281,
-0.0229841061,
-0.1626786888,
0.2408901304,
0.3803329468,
-0.1053197309,
-0.2994267941,
-0.2107978761,
-0.5407534242,
0.0478681624,
-0.089512296,
-0.0352905951,
0.2905209363,
0.2943845987,
0.2752118111,
0.1920378506,
0.3236575127,
-0.202186361,
-0.1859278083,
0.270516187,
-0.4119945168,
0.050498046,
0.3089603484,
0.1470328569,
0.2046712339,
-0.2144497633,
0.0886466205,
0.3067517877,
-0.220597446,
-0.0475089215,
-0.1636012197,
-0.3189330697,
-0.1844431609,
0.2947012782,
0.1161173582,
0.1754456013,
0.2240554988,
-0.257201314,
-0.1365258098,
-0.1764377058,
-0.1393819302,
0.1451852471,
0.1106583253,
0.6116536856,
-0.0473839939,
-0.1078155041,
-0.0267385133,
0.0444115438,
0.1038677692,
-0.3887695074,
-0.2920262814,
0.3862886429,
-0.2014173865,
0.2640108168,
-0.1644920707,
0.1330407411,
0.1761885434,
0.4649395049,
-0.247687757,
-0.3671607077,
0.7873600721,
-0.3886918724,
-0.3085353673,
0.2183828205,
0.1803082079,
0.6121315956,
-0.3203870058,
-0.5169118643,
-0.0446360931,
0.2340015173,
-0.0643145069,
-0.3073174953,
0.1178993806,
0.0049135499,
0.0817522183,
-0.1735568345,
0.3225362301,
0.129180342,
0.1259119213,
-0.1175743863,
-0.2294532508
] |
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.3578642607,
0.0624310821,
-0.0035594329,
0.0923954174,
0.2011193484,
0.0346485898,
0.5519384146,
0.3234072924,
0.3856209517,
0.0929587111,
0.0008825026,
0.3965823054,
-0.0354303308,
0.1952461898,
0.073684141,
-0.2641967237,
-0.0560291484,
0.2284694761,
-0.3105962873,
0.0267087072,
0.1719550043,
0.1197910756,
-0.2741037011,
0.1857317537,
-0.3524911404,
-0.0930101424,
0.2506568134,
-0.0640394613,
-0.1788958013,
-0.4069885015,
0.2793971896,
-0.0613612384,
0.2397314161,
0.4969633222,
-0.0001140436,
0.3032166362,
0.1815663725,
-0.0520815849,
-0.2339608371,
-0.4946043193,
0.2693471611,
-0.2135496736,
0.2534044087,
-0.3587454557,
-0.2566688955,
-0.6176711321,
-0.1617840976,
-0.106413424,
0.1897277534,
0.483007431,
0.1778384149,
0.2304899693,
0.3704246581,
-0.106884107,
-0.0213629417,
-0.1286901832,
-0.1998845041,
0.1933844984,
0.0606131107,
-0.0477187485,
-0.2215192169,
0.3306260109,
0.0532885194,
0.2221890539,
0.2746858001,
-0.0277603101,
0.3027732372,
-0.3284735978,
0.0128041413,
0.0186378416,
0.378384918,
-0.1673074365,
-0.2615455091,
-0.1401585042,
0.2406659722,
-0.1856718063,
0.2258494198,
0.2011611164,
-0.2385991216,
-0.2307836115,
-0.0924864635,
-0.2448176444,
-0.4942284524,
0.0012735333,
-0.1486776471,
0.6484242082,
-0.0097298287,
0.295863986,
-0.1088484079,
0.0316301212,
0.1087978035,
-0.0174539462,
0.1367831528,
-0.1035543531,
-0.4412147999,
0.0121146142,
-0.1848006099,
-0.3475170434,
-0.1545310616,
0.1763315797,
0.0244530663,
0.0385520011,
0.4613883197,
0.2319645137,
-0.0648741424,
0.2133834809,
-0.1676825732,
0.2672362328,
0.3156036437,
0.1783835143,
0.0582818687,
-0.0110225715,
-0.2719787657,
-0.2618049681,
0.0919806063,
-0.0409463532,
0.1839133799,
-0.2599915564,
-0.1896702349,
-0.0647260845,
-0.2254166752,
-0.0048057213,
0.3427655697,
0.3795004487,
-0.3616907001,
0.0215545185,
0.3905213475,
0.0970224142,
-0.1571543217,
0.1086177602,
-0.0689173788,
0.3692379296,
-0.3053955436,
-0.1699038893,
0.2570928633,
-0.2832777202,
0.3190398216,
0.0521266907,
0.4382135868,
0.0194358155,
0.1652492285,
-0.0362841897,
-0.0305200294,
0.3495335579,
0.168481946,
-0.0993225053,
0.0673144758,
-0.1310520768,
0.0435599536,
0.1640108526,
-0.3027126491,
-0.1731040627,
-0.2777282,
0.2180582881,
0.0239802897,
-0.0828472376,
-0.0956023484,
-0.2363595366,
0.1384334415,
-0.2462697029,
-0.1988411993,
-0.5774739385,
-0.1518826634,
0.1009745523,
0.3505587876,
-0.1060073525,
-0.2552388608,
-0.2429276705,
0.216963619,
-0.0445827991,
0.1921145916,
0.1672690213,
-0.3213562071,
0.3641373217,
-0.2241796851,
-0.1162743643,
0.4368958175,
-0.1582634747,
-0.4274959564,
-0.0526532084,
-0.1317559779,
-0.1814901084,
0.2424348593,
-0.0210300852,
0.1027198136,
0.0694856942,
0.1587241143,
0.2212407142,
0.0550632626,
-0.0641469508,
0.071162127,
-0.0301149823,
0.0693064779,
0.3470238447,
0.4696923792,
0.0405192189,
-0.220328331,
0.1052825153,
0.0011492372,
-0.3349930048,
-0.0729087442,
0.1936163902,
0.0726028755,
0.197317481,
0.2342053205,
-0.0241508186,
-0.2846354246,
0.4372529984,
-0.4078391194,
0.220197469,
-0.4012741148,
0.2799266577,
0.0739983395,
0.2309342325,
-0.4405452907,
-0.0290492363,
0.0740211159,
0.2747325599,
0.1433664262,
-0.0716505051,
-0.0431885794,
0.1642152816,
-0.2015469521,
0.2570536733,
-0.02972335,
0.1648437977,
-0.3522478342,
-0.2846185565,
-0.0267781839,
0.0832823589,
0.0867887959,
-0.1338348389,
-0.1851905137,
-0.0223053172,
0.0563513041,
-0.185631454,
-0.4077395499,
0.0107589439,
0.2134342641,
-0.0264878199,
0.1546376646,
0.2261993587,
0.0535076894,
0.0659498125,
-0.059612982,
0.2794190049,
0.0768530071,
0.3316196203,
0.1563591063,
0.1243274063,
0.3506569266,
0.1796323359,
-0.0370969549,
0.0312507898,
0.3116858006,
-0.1815502942,
0.3884935975,
-0.280341059,
-0.0670942068,
-0.2269870937,
0.0582209937,
0.0968178213,
0.209451437,
-0.058418598,
-0.2641685605,
-0.0197155513,
0.1655129045,
0.0201512426,
0.1763112843,
0.0855541676,
-0.205427736,
-0.0731580108,
-0.2630328834,
-0.2853460014,
0.0199487694,
0.2054543048,
0.1803493351,
0.4772664309,
-0.024977196,
-0.1353628337,
-0.2053968161,
-0.3153861761,
0.0442338139,
0.2464949191,
-0.0167009383,
0.1939777136,
0.0213791728,
-0.2587883174,
-0.157133773,
0.0688671768,
-0.0830654651,
-0.0705594644,
-0.0567115657,
0.4370976985,
0.1046392024,
0.3015836477,
0.1242610216,
0.0017420799,
0.0909287706,
-0.0915197581,
-0.1010046974,
-0.1997737586,
-0.1029308289,
0.0908148885,
0.0139180571,
-0.1522052884,
0.4530832171,
-0.0226923674,
0.2397299409,
-0.4752225876,
-0.4546359181,
0.2639152408,
0.0946709812,
0.0703557432,
0.08312805,
-0.1004692912,
0.2305427194,
-0.1151753366,
0.2874084711,
-0.3667428195,
-0.0099852085,
0.1711310893,
-0.3040319383,
-0.0911608785,
-0.0429219976,
-0.2373357564,
-0.2131169587,
-0.2420700043,
-0.1625313908,
0.1925631166,
0.0692954808,
0.0710769594,
-0.048211813,
0.2399501503,
0.0612407811,
0.4208260179,
-0.050523147,
-0.0142031237,
0.3403246999,
-0.1449126452,
-0.4585410058,
0.1990786642,
-0.0710254833,
0.4873737693,
0.1876756996,
-0.3572620749,
-0.1432138085,
-0.0876860842,
-0.0104061589,
-0.2309726179,
-0.3154938221,
0.434707582,
0.0858678818,
-0.0017585121,
-0.0180879459,
-0.2098882049,
-0.0058369488,
-0.1161853224,
0.110751085,
0.0180558935,
0.5218028426,
0.016135022,
0.5054340959,
-0.1492944658,
-0.1849228442,
0.078760922,
-0.0914804265,
0.1306824833,
-0.0777426958,
-0.3543589711,
0.0909202695,
-0.0784769133,
0.042308867,
-0.1143651158,
-0.2375508547,
-0.2545681894,
-0.2243154794,
0.1367325187,
0.2056725919,
-0.074922666,
0.1470564157,
-0.021852009,
0.2347735614,
-0.1005828753,
0.2911743522,
-0.0582702346,
-0.0206459314,
-0.0068818741,
0.4009917378,
0.2471125722,
0.040549431,
-0.3504701853,
-0.4177762866,
-0.3089730144,
0.1535238326,
0.1111556217,
0.4341418743,
-0.253531754,
0.1353395432,
0.251821965,
-0.0731295496,
0.1305500567,
0.2015883178,
-0.0769400522,
0.1304475665,
-0.5629467368,
-0.2140494585,
-0.4025835693,
-0.2041153014,
0.3084564805,
-0.1378368139,
0.2591086924,
-0.0521871895,
-0.2361829728,
0.3772246838,
-0.0014558956,
-0.3549470305,
-0.1654879749,
-0.3093602061,
-0.0071026385,
-0.3891409039,
0.1418213695,
-0.1630352736,
0.1648110151,
0.1033504084,
0.1802526712,
-0.0478272736,
-0.0673622862,
-0.2418477684,
0.1251700968,
0.1508536041,
-0.1796663254,
0.0206298381,
0.2583085895,
0.4035359025,
0.0246617924,
0.1251708716,
0.1658734977,
-0.6877143383,
0.227951318,
0.1437768191,
0.0337538943,
-0.0006092191,
-0.2813972235,
-0.0151332952,
0.0288642831,
0.261608541,
-0.278912425,
0.2849280238,
0.4318098426,
0.0435548797,
-0.3361483812,
-0.510233283,
-0.0285131671,
0.1190538406,
0.1307085454,
0.1072738022,
-0.3197687566,
-0.2387962341,
0.1009449214,
0.2339784205,
0.3998081982,
-0.1230272055,
0.1631872356,
0.3690176606,
-0.0562773235,
0.6690493226,
-0.0701485202,
0.5010372996,
-0.2964495718,
-0.0236954447,
-0.0219668597,
-0.3330352902,
0.1249236688,
-0.0894321054,
0.0196076632,
0.4615965486,
0.0227422416,
0.1879122555,
0.0824429244,
0.5432864428,
-0.0561933592,
-0.3151733279,
0.0893424302,
0.0824313015,
-0.4715275168,
0.4554196596,
-0.1119186506,
0.1296059191,
0.2646175623,
-0.0853899717,
-0.2024869323,
0.3169837892,
-0.1035187915,
0.5135720372,
-0.2603101432,
-0.7178821564,
0.2217282802,
0.1935003549,
0.0475799292,
-0.0163905788,
-0.0840440318,
0.2869561315,
-0.526050508,
-0.2648877501,
-0.1186811626,
0.1446562707,
0.412604928,
-0.1766413748,
-0.1750864685,
0.0456952117,
-0.0207093358,
-0.3480331004,
-0.147505939,
0.0229148716,
0.5239810944,
0.0506121144,
0.138259083,
-0.2436709404,
-0.1985275745,
-0.1187596247,
0.1392894089,
0.1864419281,
-0.1920205951,
0.0092547815,
0.1126703173,
-0.2367701828,
0.0267793015,
0.4035095274,
0.2485731989,
-0.075485222,
0.760489881,
0.2701000571,
-0.2153382599,
-0.1895247102,
-0.5757742524,
0.1880675256,
-0.4746959209,
0.0904081315,
0.0883789286,
-0.0010320246,
-0.025246622,
0.0832519531,
0.240492925,
-0.3185769916,
-0.206439063,
-0.4979458749,
-0.244603008,
-0.0121778585,
-0.097073555,
0.144690156,
0.4060983658,
0.0213103443,
-0.0374529362,
-0.1176227406,
-0.2486614585,
-0.0812458694,
-0.0857513323,
-0.0178910401,
0.0288438015,
-0.2464592159,
0.0180507526,
0.1339568496,
0.1165807694,
-0.016181346,
-0.0523238704,
-0.1377301216,
-0.0593805239,
0.0638025776,
0.1501114219,
-0.1841320992,
-0.1567177773,
-0.3472021222,
-0.1686958671,
0.0619376004,
0.351134479,
0.0731979981,
-0.0336027332,
0.1000555307,
-0.181509614,
0.0305701178,
-0.2393947244,
0.1999554634,
-0.1581183225,
-0.0344597585,
0.2619611919,
0.2125542611,
0.0491625257,
0.1751203388,
-0.296749711,
0.0122220237,
-0.2247533053,
0.079571411,
0.387874037,
-0.5469016433,
0.3201331496,
-0.1140458062,
0.3263937831,
0.2481027842,
-0.1112367511,
0.0069459304,
0.207762599,
0.1929994076,
-0.3124338984,
-0.1750273705,
-0.2047643512,
0.025553342,
0.1951710284,
-0.0336903408,
0.0335222781,
0.2034251094,
0.2418436706,
0.2176679224,
0.3072528243,
-0.2194327414,
0.1608723551,
0.2555876076,
-0.0315137282,
0.1866934597,
0.4408329129,
0.2895785272,
0.0344302952,
0.208742559,
-0.0501232632,
0.2683550715,
-0.0355191305,
0.0493076257,
0.2784290612,
-0.1406374425,
-0.1351006925,
0.159871608,
-0.0666535199,
-0.097573027,
-0.2356362492,
0.1379940808,
-0.5082181692,
-0.0016116016,
-0.3276998401,
-0.0616718419,
-0.3606294394,
0.13358064,
-0.2579287291,
-0.0233725384,
0.0797757655,
0.1772309542,
0.111788474,
0.1014342606,
-0.4469521344,
0.1259375513,
-0.4083172977,
0.0444614887,
-0.2394629121,
0.310146153,
-0.1211523265,
-0.0841582865,
0.1898358613,
0.2903625071,
-0.1219390035,
-0.11502482,
0.1751775891,
0.4762859344,
0.1457409561,
0.0434698798,
-0.0806154311,
-0.0292950235,
-0.0321248136,
-0.0190827809,
0.2248754352,
0.200440079,
-0.0397767425,
0.1562915891,
0.1541845202,
-0.1182023436,
0.1891735792,
0.1260015368,
0.0241075046,
0.1159704775,
0.2661478221,
0.0735390633,
-0.1547980607,
-0.1336261034,
-0.0261751115,
-0.3192780614,
-0.1522496939,
0.389421165,
0.212733224,
-0.235319972,
-0.1131784692,
0.0737562478,
0.0157801993,
0.4464922845,
0.1291052103,
0.0046015088,
-0.1204415336,
0.0396349132,
-0.207659781,
0.2196232826,
-0.0238990318,
0.0166286528,
0.1226764619,
0.0947788283,
-0.0264730714,
-0.0253281742,
0.3033053577,
-0.1253411174,
0.1207330674,
-0.1434569359,
-0.2756646872,
-0.0575894043,
0.308806777,
0.0814981833,
0.075505048,
-0.2945996523,
0.0161185116,
0.022224132,
0.1112490892,
-0.2723047137,
0.0581630096,
0.0998516753,
-0.3974207938,
0.26796332,
-0.0830508173,
0.7890288234,
0.0927614495,
-0.1029087752,
-0.0044995844,
-0.2056705654,
-0.3405402303,
0.270816952,
0.097232163,
0.5719091296,
0.1613238901,
-0.1286331564,
-0.4244959652,
0.3670106828,
-0.1697559059,
-0.6661804318,
-0.1641175449,
0.1922504604,
-0.1173407882,
0.2502705157,
0.224502489,
0.1029545143,
0.3065308034,
-0.2895621061,
-0.3585674763,
-0.120279856,
0.5804311037,
-0.2649386823,
-0.206529662,
-0.2863223851,
0.1459728032,
-0.1629393697,
0.1301870793,
-0.1651319712,
0.1129609197,
0.0261456631,
-0.0039772205,
-0.0153508782,
0.2036132812,
0.2484439611,
0.1664724648,
-0.1400391757,
0.4426273704,
-0.1489302367,
-0.2323545218,
-0.3859885931,
-0.2470760047
] |
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.3578642607,
0.0624310821,
-0.0035594329,
0.0923954174,
0.2011193484,
0.0346485898,
0.5519384146,
0.3234072924,
0.3856209517,
0.0929587111,
0.0008825026,
0.3965823054,
-0.0354303308,
0.1952461898,
0.073684141,
-0.2641967237,
-0.0560291484,
0.2284694761,
-0.3105962873,
0.0267087072,
0.1719550043,
0.1197910756,
-0.2741037011,
0.1857317537,
-0.3524911404,
-0.0930101424,
0.2506568134,
-0.0640394613,
-0.1788958013,
-0.4069885015,
0.2793971896,
-0.0613612384,
0.2397314161,
0.4969633222,
-0.0001140436,
0.3032166362,
0.1815663725,
-0.0520815849,
-0.2339608371,
-0.4946043193,
0.2693471611,
-0.2135496736,
0.2534044087,
-0.3587454557,
-0.2566688955,
-0.6176711321,
-0.1617840976,
-0.106413424,
0.1897277534,
0.483007431,
0.1778384149,
0.2304899693,
0.3704246581,
-0.106884107,
-0.0213629417,
-0.1286901832,
-0.1998845041,
0.1933844984,
0.0606131107,
-0.0477187485,
-0.2215192169,
0.3306260109,
0.0532885194,
0.2221890539,
0.2746858001,
-0.0277603101,
0.3027732372,
-0.3284735978,
0.0128041413,
0.0186378416,
0.378384918,
-0.1673074365,
-0.2615455091,
-0.1401585042,
0.2406659722,
-0.1856718063,
0.2258494198,
0.2011611164,
-0.2385991216,
-0.2307836115,
-0.0924864635,
-0.2448176444,
-0.4942284524,
0.0012735333,
-0.1486776471,
0.6484242082,
-0.0097298287,
0.295863986,
-0.1088484079,
0.0316301212,
0.1087978035,
-0.0174539462,
0.1367831528,
-0.1035543531,
-0.4412147999,
0.0121146142,
-0.1848006099,
-0.3475170434,
-0.1545310616,
0.1763315797,
0.0244530663,
0.0385520011,
0.4613883197,
0.2319645137,
-0.0648741424,
0.2133834809,
-0.1676825732,
0.2672362328,
0.3156036437,
0.1783835143,
0.0582818687,
-0.0110225715,
-0.2719787657,
-0.2618049681,
0.0919806063,
-0.0409463532,
0.1839133799,
-0.2599915564,
-0.1896702349,
-0.0647260845,
-0.2254166752,
-0.0048057213,
0.3427655697,
0.3795004487,
-0.3616907001,
0.0215545185,
0.3905213475,
0.0970224142,
-0.1571543217,
0.1086177602,
-0.0689173788,
0.3692379296,
-0.3053955436,
-0.1699038893,
0.2570928633,
-0.2832777202,
0.3190398216,
0.0521266907,
0.4382135868,
0.0194358155,
0.1652492285,
-0.0362841897,
-0.0305200294,
0.3495335579,
0.168481946,
-0.0993225053,
0.0673144758,
-0.1310520768,
0.0435599536,
0.1640108526,
-0.3027126491,
-0.1731040627,
-0.2777282,
0.2180582881,
0.0239802897,
-0.0828472376,
-0.0956023484,
-0.2363595366,
0.1384334415,
-0.2462697029,
-0.1988411993,
-0.5774739385,
-0.1518826634,
0.1009745523,
0.3505587876,
-0.1060073525,
-0.2552388608,
-0.2429276705,
0.216963619,
-0.0445827991,
0.1921145916,
0.1672690213,
-0.3213562071,
0.3641373217,
-0.2241796851,
-0.1162743643,
0.4368958175,
-0.1582634747,
-0.4274959564,
-0.0526532084,
-0.1317559779,
-0.1814901084,
0.2424348593,
-0.0210300852,
0.1027198136,
0.0694856942,
0.1587241143,
0.2212407142,
0.0550632626,
-0.0641469508,
0.071162127,
-0.0301149823,
0.0693064779,
0.3470238447,
0.4696923792,
0.0405192189,
-0.220328331,
0.1052825153,
0.0011492372,
-0.3349930048,
-0.0729087442,
0.1936163902,
0.0726028755,
0.197317481,
0.2342053205,
-0.0241508186,
-0.2846354246,
0.4372529984,
-0.4078391194,
0.220197469,
-0.4012741148,
0.2799266577,
0.0739983395,
0.2309342325,
-0.4405452907,
-0.0290492363,
0.0740211159,
0.2747325599,
0.1433664262,
-0.0716505051,
-0.0431885794,
0.1642152816,
-0.2015469521,
0.2570536733,
-0.02972335,
0.1648437977,
-0.3522478342,
-0.2846185565,
-0.0267781839,
0.0832823589,
0.0867887959,
-0.1338348389,
-0.1851905137,
-0.0223053172,
0.0563513041,
-0.185631454,
-0.4077395499,
0.0107589439,
0.2134342641,
-0.0264878199,
0.1546376646,
0.2261993587,
0.0535076894,
0.0659498125,
-0.059612982,
0.2794190049,
0.0768530071,
0.3316196203,
0.1563591063,
0.1243274063,
0.3506569266,
0.1796323359,
-0.0370969549,
0.0312507898,
0.3116858006,
-0.1815502942,
0.3884935975,
-0.280341059,
-0.0670942068,
-0.2269870937,
0.0582209937,
0.0968178213,
0.209451437,
-0.058418598,
-0.2641685605,
-0.0197155513,
0.1655129045,
0.0201512426,
0.1763112843,
0.0855541676,
-0.205427736,
-0.0731580108,
-0.2630328834,
-0.2853460014,
0.0199487694,
0.2054543048,
0.1803493351,
0.4772664309,
-0.024977196,
-0.1353628337,
-0.2053968161,
-0.3153861761,
0.0442338139,
0.2464949191,
-0.0167009383,
0.1939777136,
0.0213791728,
-0.2587883174,
-0.157133773,
0.0688671768,
-0.0830654651,
-0.0705594644,
-0.0567115657,
0.4370976985,
0.1046392024,
0.3015836477,
0.1242610216,
0.0017420799,
0.0909287706,
-0.0915197581,
-0.1010046974,
-0.1997737586,
-0.1029308289,
0.0908148885,
0.0139180571,
-0.1522052884,
0.4530832171,
-0.0226923674,
0.2397299409,
-0.4752225876,
-0.4546359181,
0.2639152408,
0.0946709812,
0.0703557432,
0.08312805,
-0.1004692912,
0.2305427194,
-0.1151753366,
0.2874084711,
-0.3667428195,
-0.0099852085,
0.1711310893,
-0.3040319383,
-0.0911608785,
-0.0429219976,
-0.2373357564,
-0.2131169587,
-0.2420700043,
-0.1625313908,
0.1925631166,
0.0692954808,
0.0710769594,
-0.048211813,
0.2399501503,
0.0612407811,
0.4208260179,
-0.050523147,
-0.0142031237,
0.3403246999,
-0.1449126452,
-0.4585410058,
0.1990786642,
-0.0710254833,
0.4873737693,
0.1876756996,
-0.3572620749,
-0.1432138085,
-0.0876860842,
-0.0104061589,
-0.2309726179,
-0.3154938221,
0.434707582,
0.0858678818,
-0.0017585121,
-0.0180879459,
-0.2098882049,
-0.0058369488,
-0.1161853224,
0.110751085,
0.0180558935,
0.5218028426,
0.016135022,
0.5054340959,
-0.1492944658,
-0.1849228442,
0.078760922,
-0.0914804265,
0.1306824833,
-0.0777426958,
-0.3543589711,
0.0909202695,
-0.0784769133,
0.042308867,
-0.1143651158,
-0.2375508547,
-0.2545681894,
-0.2243154794,
0.1367325187,
0.2056725919,
-0.074922666,
0.1470564157,
-0.021852009,
0.2347735614,
-0.1005828753,
0.2911743522,
-0.0582702346,
-0.0206459314,
-0.0068818741,
0.4009917378,
0.2471125722,
0.040549431,
-0.3504701853,
-0.4177762866,
-0.3089730144,
0.1535238326,
0.1111556217,
0.4341418743,
-0.253531754,
0.1353395432,
0.251821965,
-0.0731295496,
0.1305500567,
0.2015883178,
-0.0769400522,
0.1304475665,
-0.5629467368,
-0.2140494585,
-0.4025835693,
-0.2041153014,
0.3084564805,
-0.1378368139,
0.2591086924,
-0.0521871895,
-0.2361829728,
0.3772246838,
-0.0014558956,
-0.3549470305,
-0.1654879749,
-0.3093602061,
-0.0071026385,
-0.3891409039,
0.1418213695,
-0.1630352736,
0.1648110151,
0.1033504084,
0.1802526712,
-0.0478272736,
-0.0673622862,
-0.2418477684,
0.1251700968,
0.1508536041,
-0.1796663254,
0.0206298381,
0.2583085895,
0.4035359025,
0.0246617924,
0.1251708716,
0.1658734977,
-0.6877143383,
0.227951318,
0.1437768191,
0.0337538943,
-0.0006092191,
-0.2813972235,
-0.0151332952,
0.0288642831,
0.261608541,
-0.278912425,
0.2849280238,
0.4318098426,
0.0435548797,
-0.3361483812,
-0.510233283,
-0.0285131671,
0.1190538406,
0.1307085454,
0.1072738022,
-0.3197687566,
-0.2387962341,
0.1009449214,
0.2339784205,
0.3998081982,
-0.1230272055,
0.1631872356,
0.3690176606,
-0.0562773235,
0.6690493226,
-0.0701485202,
0.5010372996,
-0.2964495718,
-0.0236954447,
-0.0219668597,
-0.3330352902,
0.1249236688,
-0.0894321054,
0.0196076632,
0.4615965486,
0.0227422416,
0.1879122555,
0.0824429244,
0.5432864428,
-0.0561933592,
-0.3151733279,
0.0893424302,
0.0824313015,
-0.4715275168,
0.4554196596,
-0.1119186506,
0.1296059191,
0.2646175623,
-0.0853899717,
-0.2024869323,
0.3169837892,
-0.1035187915,
0.5135720372,
-0.2603101432,
-0.7178821564,
0.2217282802,
0.1935003549,
0.0475799292,
-0.0163905788,
-0.0840440318,
0.2869561315,
-0.526050508,
-0.2648877501,
-0.1186811626,
0.1446562707,
0.412604928,
-0.1766413748,
-0.1750864685,
0.0456952117,
-0.0207093358,
-0.3480331004,
-0.147505939,
0.0229148716,
0.5239810944,
0.0506121144,
0.138259083,
-0.2436709404,
-0.1985275745,
-0.1187596247,
0.1392894089,
0.1864419281,
-0.1920205951,
0.0092547815,
0.1126703173,
-0.2367701828,
0.0267793015,
0.4035095274,
0.2485731989,
-0.075485222,
0.760489881,
0.2701000571,
-0.2153382599,
-0.1895247102,
-0.5757742524,
0.1880675256,
-0.4746959209,
0.0904081315,
0.0883789286,
-0.0010320246,
-0.025246622,
0.0832519531,
0.240492925,
-0.3185769916,
-0.206439063,
-0.4979458749,
-0.244603008,
-0.0121778585,
-0.097073555,
0.144690156,
0.4060983658,
0.0213103443,
-0.0374529362,
-0.1176227406,
-0.2486614585,
-0.0812458694,
-0.0857513323,
-0.0178910401,
0.0288438015,
-0.2464592159,
0.0180507526,
0.1339568496,
0.1165807694,
-0.016181346,
-0.0523238704,
-0.1377301216,
-0.0593805239,
0.0638025776,
0.1501114219,
-0.1841320992,
-0.1567177773,
-0.3472021222,
-0.1686958671,
0.0619376004,
0.351134479,
0.0731979981,
-0.0336027332,
0.1000555307,
-0.181509614,
0.0305701178,
-0.2393947244,
0.1999554634,
-0.1581183225,
-0.0344597585,
0.2619611919,
0.2125542611,
0.0491625257,
0.1751203388,
-0.296749711,
0.0122220237,
-0.2247533053,
0.079571411,
0.387874037,
-0.5469016433,
0.3201331496,
-0.1140458062,
0.3263937831,
0.2481027842,
-0.1112367511,
0.0069459304,
0.207762599,
0.1929994076,
-0.3124338984,
-0.1750273705,
-0.2047643512,
0.025553342,
0.1951710284,
-0.0336903408,
0.0335222781,
0.2034251094,
0.2418436706,
0.2176679224,
0.3072528243,
-0.2194327414,
0.1608723551,
0.2555876076,
-0.0315137282,
0.1866934597,
0.4408329129,
0.2895785272,
0.0344302952,
0.208742559,
-0.0501232632,
0.2683550715,
-0.0355191305,
0.0493076257,
0.2784290612,
-0.1406374425,
-0.1351006925,
0.159871608,
-0.0666535199,
-0.097573027,
-0.2356362492,
0.1379940808,
-0.5082181692,
-0.0016116016,
-0.3276998401,
-0.0616718419,
-0.3606294394,
0.13358064,
-0.2579287291,
-0.0233725384,
0.0797757655,
0.1772309542,
0.111788474,
0.1014342606,
-0.4469521344,
0.1259375513,
-0.4083172977,
0.0444614887,
-0.2394629121,
0.310146153,
-0.1211523265,
-0.0841582865,
0.1898358613,
0.2903625071,
-0.1219390035,
-0.11502482,
0.1751775891,
0.4762859344,
0.1457409561,
0.0434698798,
-0.0806154311,
-0.0292950235,
-0.0321248136,
-0.0190827809,
0.2248754352,
0.200440079,
-0.0397767425,
0.1562915891,
0.1541845202,
-0.1182023436,
0.1891735792,
0.1260015368,
0.0241075046,
0.1159704775,
0.2661478221,
0.0735390633,
-0.1547980607,
-0.1336261034,
-0.0261751115,
-0.3192780614,
-0.1522496939,
0.389421165,
0.212733224,
-0.235319972,
-0.1131784692,
0.0737562478,
0.0157801993,
0.4464922845,
0.1291052103,
0.0046015088,
-0.1204415336,
0.0396349132,
-0.207659781,
0.2196232826,
-0.0238990318,
0.0166286528,
0.1226764619,
0.0947788283,
-0.0264730714,
-0.0253281742,
0.3033053577,
-0.1253411174,
0.1207330674,
-0.1434569359,
-0.2756646872,
-0.0575894043,
0.308806777,
0.0814981833,
0.075505048,
-0.2945996523,
0.0161185116,
0.022224132,
0.1112490892,
-0.2723047137,
0.0581630096,
0.0998516753,
-0.3974207938,
0.26796332,
-0.0830508173,
0.7890288234,
0.0927614495,
-0.1029087752,
-0.0044995844,
-0.2056705654,
-0.3405402303,
0.270816952,
0.097232163,
0.5719091296,
0.1613238901,
-0.1286331564,
-0.4244959652,
0.3670106828,
-0.1697559059,
-0.6661804318,
-0.1641175449,
0.1922504604,
-0.1173407882,
0.2502705157,
0.224502489,
0.1029545143,
0.3065308034,
-0.2895621061,
-0.3585674763,
-0.120279856,
0.5804311037,
-0.2649386823,
-0.206529662,
-0.2863223851,
0.1459728032,
-0.1629393697,
0.1301870793,
-0.1651319712,
0.1129609197,
0.0261456631,
-0.0039772205,
-0.0153508782,
0.2036132812,
0.2484439611,
0.1664724648,
-0.1400391757,
0.4426273704,
-0.1489302367,
-0.2323545218,
-0.3859885931,
-0.2470760047
] |
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.3578642607,
0.0624310821,
-0.0035594329,
0.0923954174,
0.2011193484,
0.0346485898,
0.5519384146,
0.3234072924,
0.3856209517,
0.0929587111,
0.0008825026,
0.3965823054,
-0.0354303308,
0.1952461898,
0.073684141,
-0.2641967237,
-0.0560291484,
0.2284694761,
-0.3105962873,
0.0267087072,
0.1719550043,
0.1197910756,
-0.2741037011,
0.1857317537,
-0.3524911404,
-0.0930101424,
0.2506568134,
-0.0640394613,
-0.1788958013,
-0.4069885015,
0.2793971896,
-0.0613612384,
0.2397314161,
0.4969633222,
-0.0001140436,
0.3032166362,
0.1815663725,
-0.0520815849,
-0.2339608371,
-0.4946043193,
0.2693471611,
-0.2135496736,
0.2534044087,
-0.3587454557,
-0.2566688955,
-0.6176711321,
-0.1617840976,
-0.106413424,
0.1897277534,
0.483007431,
0.1778384149,
0.2304899693,
0.3704246581,
-0.106884107,
-0.0213629417,
-0.1286901832,
-0.1998845041,
0.1933844984,
0.0606131107,
-0.0477187485,
-0.2215192169,
0.3306260109,
0.0532885194,
0.2221890539,
0.2746858001,
-0.0277603101,
0.3027732372,
-0.3284735978,
0.0128041413,
0.0186378416,
0.378384918,
-0.1673074365,
-0.2615455091,
-0.1401585042,
0.2406659722,
-0.1856718063,
0.2258494198,
0.2011611164,
-0.2385991216,
-0.2307836115,
-0.0924864635,
-0.2448176444,
-0.4942284524,
0.0012735333,
-0.1486776471,
0.6484242082,
-0.0097298287,
0.295863986,
-0.1088484079,
0.0316301212,
0.1087978035,
-0.0174539462,
0.1367831528,
-0.1035543531,
-0.4412147999,
0.0121146142,
-0.1848006099,
-0.3475170434,
-0.1545310616,
0.1763315797,
0.0244530663,
0.0385520011,
0.4613883197,
0.2319645137,
-0.0648741424,
0.2133834809,
-0.1676825732,
0.2672362328,
0.3156036437,
0.1783835143,
0.0582818687,
-0.0110225715,
-0.2719787657,
-0.2618049681,
0.0919806063,
-0.0409463532,
0.1839133799,
-0.2599915564,
-0.1896702349,
-0.0647260845,
-0.2254166752,
-0.0048057213,
0.3427655697,
0.3795004487,
-0.3616907001,
0.0215545185,
0.3905213475,
0.0970224142,
-0.1571543217,
0.1086177602,
-0.0689173788,
0.3692379296,
-0.3053955436,
-0.1699038893,
0.2570928633,
-0.2832777202,
0.3190398216,
0.0521266907,
0.4382135868,
0.0194358155,
0.1652492285,
-0.0362841897,
-0.0305200294,
0.3495335579,
0.168481946,
-0.0993225053,
0.0673144758,
-0.1310520768,
0.0435599536,
0.1640108526,
-0.3027126491,
-0.1731040627,
-0.2777282,
0.2180582881,
0.0239802897,
-0.0828472376,
-0.0956023484,
-0.2363595366,
0.1384334415,
-0.2462697029,
-0.1988411993,
-0.5774739385,
-0.1518826634,
0.1009745523,
0.3505587876,
-0.1060073525,
-0.2552388608,
-0.2429276705,
0.216963619,
-0.0445827991,
0.1921145916,
0.1672690213,
-0.3213562071,
0.3641373217,
-0.2241796851,
-0.1162743643,
0.4368958175,
-0.1582634747,
-0.4274959564,
-0.0526532084,
-0.1317559779,
-0.1814901084,
0.2424348593,
-0.0210300852,
0.1027198136,
0.0694856942,
0.1587241143,
0.2212407142,
0.0550632626,
-0.0641469508,
0.071162127,
-0.0301149823,
0.0693064779,
0.3470238447,
0.4696923792,
0.0405192189,
-0.220328331,
0.1052825153,
0.0011492372,
-0.3349930048,
-0.0729087442,
0.1936163902,
0.0726028755,
0.197317481,
0.2342053205,
-0.0241508186,
-0.2846354246,
0.4372529984,
-0.4078391194,
0.220197469,
-0.4012741148,
0.2799266577,
0.0739983395,
0.2309342325,
-0.4405452907,
-0.0290492363,
0.0740211159,
0.2747325599,
0.1433664262,
-0.0716505051,
-0.0431885794,
0.1642152816,
-0.2015469521,
0.2570536733,
-0.02972335,
0.1648437977,
-0.3522478342,
-0.2846185565,
-0.0267781839,
0.0832823589,
0.0867887959,
-0.1338348389,
-0.1851905137,
-0.0223053172,
0.0563513041,
-0.185631454,
-0.4077395499,
0.0107589439,
0.2134342641,
-0.0264878199,
0.1546376646,
0.2261993587,
0.0535076894,
0.0659498125,
-0.059612982,
0.2794190049,
0.0768530071,
0.3316196203,
0.1563591063,
0.1243274063,
0.3506569266,
0.1796323359,
-0.0370969549,
0.0312507898,
0.3116858006,
-0.1815502942,
0.3884935975,
-0.280341059,
-0.0670942068,
-0.2269870937,
0.0582209937,
0.0968178213,
0.209451437,
-0.058418598,
-0.2641685605,
-0.0197155513,
0.1655129045,
0.0201512426,
0.1763112843,
0.0855541676,
-0.205427736,
-0.0731580108,
-0.2630328834,
-0.2853460014,
0.0199487694,
0.2054543048,
0.1803493351,
0.4772664309,
-0.024977196,
-0.1353628337,
-0.2053968161,
-0.3153861761,
0.0442338139,
0.2464949191,
-0.0167009383,
0.1939777136,
0.0213791728,
-0.2587883174,
-0.157133773,
0.0688671768,
-0.0830654651,
-0.0705594644,
-0.0567115657,
0.4370976985,
0.1046392024,
0.3015836477,
0.1242610216,
0.0017420799,
0.0909287706,
-0.0915197581,
-0.1010046974,
-0.1997737586,
-0.1029308289,
0.0908148885,
0.0139180571,
-0.1522052884,
0.4530832171,
-0.0226923674,
0.2397299409,
-0.4752225876,
-0.4546359181,
0.2639152408,
0.0946709812,
0.0703557432,
0.08312805,
-0.1004692912,
0.2305427194,
-0.1151753366,
0.2874084711,
-0.3667428195,
-0.0099852085,
0.1711310893,
-0.3040319383,
-0.0911608785,
-0.0429219976,
-0.2373357564,
-0.2131169587,
-0.2420700043,
-0.1625313908,
0.1925631166,
0.0692954808,
0.0710769594,
-0.048211813,
0.2399501503,
0.0612407811,
0.4208260179,
-0.050523147,
-0.0142031237,
0.3403246999,
-0.1449126452,
-0.4585410058,
0.1990786642,
-0.0710254833,
0.4873737693,
0.1876756996,
-0.3572620749,
-0.1432138085,
-0.0876860842,
-0.0104061589,
-0.2309726179,
-0.3154938221,
0.434707582,
0.0858678818,
-0.0017585121,
-0.0180879459,
-0.2098882049,
-0.0058369488,
-0.1161853224,
0.110751085,
0.0180558935,
0.5218028426,
0.016135022,
0.5054340959,
-0.1492944658,
-0.1849228442,
0.078760922,
-0.0914804265,
0.1306824833,
-0.0777426958,
-0.3543589711,
0.0909202695,
-0.0784769133,
0.042308867,
-0.1143651158,
-0.2375508547,
-0.2545681894,
-0.2243154794,
0.1367325187,
0.2056725919,
-0.074922666,
0.1470564157,
-0.021852009,
0.2347735614,
-0.1005828753,
0.2911743522,
-0.0582702346,
-0.0206459314,
-0.0068818741,
0.4009917378,
0.2471125722,
0.040549431,
-0.3504701853,
-0.4177762866,
-0.3089730144,
0.1535238326,
0.1111556217,
0.4341418743,
-0.253531754,
0.1353395432,
0.251821965,
-0.0731295496,
0.1305500567,
0.2015883178,
-0.0769400522,
0.1304475665,
-0.5629467368,
-0.2140494585,
-0.4025835693,
-0.2041153014,
0.3084564805,
-0.1378368139,
0.2591086924,
-0.0521871895,
-0.2361829728,
0.3772246838,
-0.0014558956,
-0.3549470305,
-0.1654879749,
-0.3093602061,
-0.0071026385,
-0.3891409039,
0.1418213695,
-0.1630352736,
0.1648110151,
0.1033504084,
0.1802526712,
-0.0478272736,
-0.0673622862,
-0.2418477684,
0.1251700968,
0.1508536041,
-0.1796663254,
0.0206298381,
0.2583085895,
0.4035359025,
0.0246617924,
0.1251708716,
0.1658734977,
-0.6877143383,
0.227951318,
0.1437768191,
0.0337538943,
-0.0006092191,
-0.2813972235,
-0.0151332952,
0.0288642831,
0.261608541,
-0.278912425,
0.2849280238,
0.4318098426,
0.0435548797,
-0.3361483812,
-0.510233283,
-0.0285131671,
0.1190538406,
0.1307085454,
0.1072738022,
-0.3197687566,
-0.2387962341,
0.1009449214,
0.2339784205,
0.3998081982,
-0.1230272055,
0.1631872356,
0.3690176606,
-0.0562773235,
0.6690493226,
-0.0701485202,
0.5010372996,
-0.2964495718,
-0.0236954447,
-0.0219668597,
-0.3330352902,
0.1249236688,
-0.0894321054,
0.0196076632,
0.4615965486,
0.0227422416,
0.1879122555,
0.0824429244,
0.5432864428,
-0.0561933592,
-0.3151733279,
0.0893424302,
0.0824313015,
-0.4715275168,
0.4554196596,
-0.1119186506,
0.1296059191,
0.2646175623,
-0.0853899717,
-0.2024869323,
0.3169837892,
-0.1035187915,
0.5135720372,
-0.2603101432,
-0.7178821564,
0.2217282802,
0.1935003549,
0.0475799292,
-0.0163905788,
-0.0840440318,
0.2869561315,
-0.526050508,
-0.2648877501,
-0.1186811626,
0.1446562707,
0.412604928,
-0.1766413748,
-0.1750864685,
0.0456952117,
-0.0207093358,
-0.3480331004,
-0.147505939,
0.0229148716,
0.5239810944,
0.0506121144,
0.138259083,
-0.2436709404,
-0.1985275745,
-0.1187596247,
0.1392894089,
0.1864419281,
-0.1920205951,
0.0092547815,
0.1126703173,
-0.2367701828,
0.0267793015,
0.4035095274,
0.2485731989,
-0.075485222,
0.760489881,
0.2701000571,
-0.2153382599,
-0.1895247102,
-0.5757742524,
0.1880675256,
-0.4746959209,
0.0904081315,
0.0883789286,
-0.0010320246,
-0.025246622,
0.0832519531,
0.240492925,
-0.3185769916,
-0.206439063,
-0.4979458749,
-0.244603008,
-0.0121778585,
-0.097073555,
0.144690156,
0.4060983658,
0.0213103443,
-0.0374529362,
-0.1176227406,
-0.2486614585,
-0.0812458694,
-0.0857513323,
-0.0178910401,
0.0288438015,
-0.2464592159,
0.0180507526,
0.1339568496,
0.1165807694,
-0.016181346,
-0.0523238704,
-0.1377301216,
-0.0593805239,
0.0638025776,
0.1501114219,
-0.1841320992,
-0.1567177773,
-0.3472021222,
-0.1686958671,
0.0619376004,
0.351134479,
0.0731979981,
-0.0336027332,
0.1000555307,
-0.181509614,
0.0305701178,
-0.2393947244,
0.1999554634,
-0.1581183225,
-0.0344597585,
0.2619611919,
0.2125542611,
0.0491625257,
0.1751203388,
-0.296749711,
0.0122220237,
-0.2247533053,
0.079571411,
0.387874037,
-0.5469016433,
0.3201331496,
-0.1140458062,
0.3263937831,
0.2481027842,
-0.1112367511,
0.0069459304,
0.207762599,
0.1929994076,
-0.3124338984,
-0.1750273705,
-0.2047643512,
0.025553342,
0.1951710284,
-0.0336903408,
0.0335222781,
0.2034251094,
0.2418436706,
0.2176679224,
0.3072528243,
-0.2194327414,
0.1608723551,
0.2555876076,
-0.0315137282,
0.1866934597,
0.4408329129,
0.2895785272,
0.0344302952,
0.208742559,
-0.0501232632,
0.2683550715,
-0.0355191305,
0.0493076257,
0.2784290612,
-0.1406374425,
-0.1351006925,
0.159871608,
-0.0666535199,
-0.097573027,
-0.2356362492,
0.1379940808,
-0.5082181692,
-0.0016116016,
-0.3276998401,
-0.0616718419,
-0.3606294394,
0.13358064,
-0.2579287291,
-0.0233725384,
0.0797757655,
0.1772309542,
0.111788474,
0.1014342606,
-0.4469521344,
0.1259375513,
-0.4083172977,
0.0444614887,
-0.2394629121,
0.310146153,
-0.1211523265,
-0.0841582865,
0.1898358613,
0.2903625071,
-0.1219390035,
-0.11502482,
0.1751775891,
0.4762859344,
0.1457409561,
0.0434698798,
-0.0806154311,
-0.0292950235,
-0.0321248136,
-0.0190827809,
0.2248754352,
0.200440079,
-0.0397767425,
0.1562915891,
0.1541845202,
-0.1182023436,
0.1891735792,
0.1260015368,
0.0241075046,
0.1159704775,
0.2661478221,
0.0735390633,
-0.1547980607,
-0.1336261034,
-0.0261751115,
-0.3192780614,
-0.1522496939,
0.389421165,
0.212733224,
-0.235319972,
-0.1131784692,
0.0737562478,
0.0157801993,
0.4464922845,
0.1291052103,
0.0046015088,
-0.1204415336,
0.0396349132,
-0.207659781,
0.2196232826,
-0.0238990318,
0.0166286528,
0.1226764619,
0.0947788283,
-0.0264730714,
-0.0253281742,
0.3033053577,
-0.1253411174,
0.1207330674,
-0.1434569359,
-0.2756646872,
-0.0575894043,
0.308806777,
0.0814981833,
0.075505048,
-0.2945996523,
0.0161185116,
0.022224132,
0.1112490892,
-0.2723047137,
0.0581630096,
0.0998516753,
-0.3974207938,
0.26796332,
-0.0830508173,
0.7890288234,
0.0927614495,
-0.1029087752,
-0.0044995844,
-0.2056705654,
-0.3405402303,
0.270816952,
0.097232163,
0.5719091296,
0.1613238901,
-0.1286331564,
-0.4244959652,
0.3670106828,
-0.1697559059,
-0.6661804318,
-0.1641175449,
0.1922504604,
-0.1173407882,
0.2502705157,
0.224502489,
0.1029545143,
0.3065308034,
-0.2895621061,
-0.3585674763,
-0.120279856,
0.5804311037,
-0.2649386823,
-0.206529662,
-0.2863223851,
0.1459728032,
-0.1629393697,
0.1301870793,
-0.1651319712,
0.1129609197,
0.0261456631,
-0.0039772205,
-0.0153508782,
0.2036132812,
0.2484439611,
0.1664724648,
-0.1400391757,
0.4426273704,
-0.1489302367,
-0.2323545218,
-0.3859885931,
-0.2470760047
] |
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.0581422709,
-0.4536788464,
-0.0355621912,
0.2569919825,
0.0860946923,
-0.0037738308,
0.1155307144,
-0.0629601479,
0.0408040434,
0.3191871941,
0.2538124323,
0.0701289475,
-0.3072563708,
-0.0425454825,
-0.221994251,
-0.2463469803,
0.1892081052,
-0.1294747591,
0.3075397611,
0.335313201,
-0.425796926,
0.5416621566,
-0.4026217759,
0.1973486841,
-0.4143258333,
0.0059312694,
-0.2583841383,
0.4944562912,
0.389454186,
-0.3567265272,
0.0712473392,
-0.393178165,
0.1509012729,
0.1528386474,
-0.0001224974,
-0.1242067441,
0.0399245955,
-0.0401795581,
0.4106854796,
0.2325061858,
0.2327507883,
0.1160332337,
-0.0896717981,
-0.0001364946,
0.1803089678,
0.3176900446,
0.023024926,
-0.043663729,
0.3788876235,
0.2494237572,
0.1086352021,
0.2697454095,
0.0584816784,
-0.0172718149,
-0.337392211,
-0.4087223113,
-0.0356070921,
0.1879888177,
0.4800271988,
-0.3880702257,
0.2081042677,
0.2298605591,
-0.2476224303,
0.022245314,
-0.304394424,
0.0047378242,
0.3776168823,
-0.5156354308,
0.0704573095,
-0.0893276557,
-0.1066429019,
-0.1918102205,
0.3175111711,
0.0956241339,
0.1241040081,
-0.8489115834,
0.119422242,
0.2649231851,
-0.3856477141,
0.0965458155,
-0.0331685096,
0.069998309,
-0.0602778196,
-0.173540622,
0.1558313966,
-0.0503575392,
0.0599201545,
0.1652521342,
0.1297036111,
0.3123299479,
-0.2853073776,
0.299267143,
-0.0785922259,
0.0563822351,
-0.4582307041,
-0.0107893869,
0.0245606899,
0.2138339728,
-0.3155739903,
-0.219369024,
-0.0722814053,
0.057709489,
0.2103291899,
0.1877654791,
0.218583405,
-0.1882562786,
0.0442290828,
-0.5686362982,
0.1675221026,
-0.5050086379,
-0.1424949467,
-0.0811681226,
-0.0080241151,
-0.5607302785,
0.357349515,
0.3995007575,
0.2302152365,
-0.108073175,
-0.3386084437,
0.210121274,
-0.0408646353,
0.290106982,
0.2734650671,
0.2971854806,
0.3146835864,
0.7152172327,
-0.0177822411,
0.2513941526,
-0.5292389989,
0.068672806,
0.0788348913,
0.1238429844,
-0.2765551209,
0.1074583679,
0.2124366909,
0.0187722258,
0.1902922392,
0.1390352398,
0.2973752022,
-0.3688144684,
-0.0184524842,
-0.2097487897,
-0.1706733406,
0.2196743488,
0.2305229306,
0.1968376637,
-0.0093254354,
0.0610077381,
0.0238537043,
0.2254339755,
-0.382358253,
-0.3544294834,
-0.1269882172,
0.0252813585,
0.397954613,
0.4406100512,
0.345051825,
-0.1068723798,
0.3525727987,
-0.3299078941,
-0.124026008,
-0.4204719663,
-0.361697793,
-0.3426901698,
-0.0801265389,
0.2953490019,
0.0301533714,
0.3120935261,
0.3005547822,
-0.0583337173,
0.1898308098,
0.342027247,
0.2321759909,
-0.1541698426,
-0.142791003,
-0.0512981191,
-0.20754686,
-0.2447630763,
0.0287261903,
0.1045085341,
-0.0876485556,
-0.0770462826,
0.2426425219,
0.0912931859,
-0.1405436993,
-0.3693987131,
0.4593510032,
-0.2429707646,
-0.1423675269,
0.2521108985,
-0.1832212806,
0.082677193,
-0.0361783504,
0.0155516788,
0.0554708205,
-0.0393527746,
-0.0699975193,
-0.0750160515,
0.2342379689,
0.1212345138,
0.0071897507,
0.2943186164,
0.2643738687,
-0.025582768,
0.0472796373,
-0.3173381984,
0.0250034966,
0.0944311917,
-0.1837328821,
-0.0593163706,
0.4418402314,
0.148797363,
0.191448763,
0.2850689292,
-0.1577901095,
-0.2866768837,
0.0075830407,
-0.0888104439,
0.0314150304,
-0.2019583881,
0.0416025147,
0.5415996909,
0.0924487859,
-0.2050208896,
-0.0775554925,
-0.043245215,
-0.3279132843,
-0.3441632092,
-0.0958045498,
0.3061347604,
0.2324241102,
0.2131822854,
0.0931085795,
0.2249250114,
0.1783485711,
-0.1250435114,
-0.1788388044,
-0.0189845413,
0.1657312512,
-0.3093580306,
0.0945758373,
0.0233980343,
0.1686376929,
-0.2740839422,
0.479575634,
0.1112643778,
-0.0392506383,
0.2464526892,
-0.164788276,
0.1857771277,
0.12391451,
0.0868053138,
0.2500819862,
0.2957983613,
0.3540990949,
0.0737768561,
-0.0943069533,
-0.377371639,
-0.3285285234,
0.0634350628,
0.1519410461,
0.2393575907,
-0.0259909928,
0.0584112853,
-0.1990368068,
0.2017972022,
-0.0167575665,
-0.4524727166,
0.736938715,
0.0708684921,
-0.1586374044,
0.3013826609,
-0.3818293214,
-0.1029826105,
0.25647071,
0.055875849,
0.0142505392,
0.1514871269,
-0.0793214887,
-0.0701857954,
0.0156658739,
-0.0630175769,
-0.1121388525,
0.0245236624,
-0.3366855681,
0.1437119842,
-0.0703529641,
0.5119799376,
-0.3930768371,
-0.4185872078,
-0.0158641227,
-0.1448656023,
0.0737104267,
0.4412178993,
-0.1272925586,
-0.0961337835,
0.016549021,
0.0042988658,
0.1229742616,
0.2859160304,
0.3148188293,
-0.0421820357,
-0.1014563814,
-0.0997362658,
0.2983360887,
-0.1647489369,
0.2087992281,
0.3532306552,
-0.0372241065,
0.0849441588,
0.1645266712,
-0.0095090047,
0.0576120764,
0.2622985244,
0.044034943,
0.0375002064,
0.1767671406,
-0.4125063717,
0.0998598859,
-0.3187247515,
0.1915215552,
0.2610322237,
0.1713413596,
-0.397496134,
-0.2762925923,
-0.0283086672,
-0.4276903272,
-0.1810947657,
0.0551990531,
-0.1846830845,
0.2561762333,
-0.2547461987,
0.0900386572,
0.0847060084,
0.2642422616,
-0.2037707269,
-0.1433811039,
0.171679616,
-0.0844423473,
-0.2580583394,
-0.1759229302,
0.2507468164,
0.1663267463,
0.0340600312,
-0.2300750166,
-0.1844065487,
-0.3176004887,
0.0196091402,
0.0322729796,
-0.0572806783,
0.2107918561,
0.3846406639,
0.1109755486,
-0.0915512592,
0.0241962522,
-0.1118706763,
0.1226551682,
0.0250536092,
0.1420996785,
0.2201242447,
0.0712734163,
-0.1695978045,
0.541844964,
0.5851691365,
0.1231960803,
0.3024075627,
0.1154461652,
0.0167699456,
0.0343532786,
-0.1813273579,
0.0432582125,
-0.453823626,
-0.1846062839,
0.1852772981,
0.1367888302,
-0.3691624403,
-0.2682442665,
0.2060451955,
-0.3449834585,
-0.1176547557,
0.0889454409,
0.0945936292,
0.2125633657,
-0.2040403783,
-0.033610709,
0.0981819481,
0.067246452,
-0.1922679394,
0.1643063724,
-0.1859417558,
-0.2114784867,
-0.0058401078,
-0.5571396351,
-0.3848230243,
0.3280597627,
0.1219232827,
0.5821323991,
-0.0677649006,
-0.1720134616,
-0.0761447251,
-0.308447659,
0.8612222075,
-0.1240654066,
-0.1728720963,
0.2027510852,
0.2131693512,
0.0480331704,
-0.1954341531,
-0.2025588751,
0.3766906857,
0.0584950522,
-0.0827402994,
0.334722966,
0.014659781,
0.0577527545,
-0.0758637264,
-0.157624647,
-0.1139030159,
-0.3956269026,
-0.2647200227,
0.0798699185,
0.2954232097,
0.0608335584,
0.0183229893,
-0.4867063761,
0.0588875562,
0.1265336275,
-0.047632806,
0.279925853,
-0.1075733751,
0.1051887199,
-0.1954663694,
0.2081280053,
-0.3091810942,
0.3162392676,
-0.2209809124,
-0.0304387677,
-0.1167407632,
0.2173629999,
0.3433977365,
-0.1115771681,
0.4617955387,
0.4835232198,
0.1073468775,
0.0466568246,
-0.3023402989,
0.3954614699,
-0.2997341156,
-0.2929950953,
0.3063976169,
0.2252732515,
0.1064765677,
0.3608358204,
0.2658946514,
0.1251865625,
-0.0970827863,
0.5405079722,
-0.2946851254,
-0.068120487,
-0.0578512922,
0.0979823098,
0.9706503749,
0.1672178805,
0.1279157549,
0.0666870475,
-0.4959294796,
-0.2037561387,
-0.1253502965,
0.3211534917,
-0.2502979636,
-0.2016640604,
0.0483654514,
-0.1047213301,
0.1514295638,
-0.1148615852,
-0.3159127831,
0.4344839752,
0.0856267661,
-0.2407682091,
-0.1079417244,
-0.3393341005,
-0.0638840646,
-0.1676815152,
0.0529180951,
0.0333367065,
0.1299216449,
-0.0785952359,
-0.2901929617,
0.1603253037,
0.4377802014,
-0.3864813149,
-0.5973953605,
0.0585261583,
-0.221855551,
0.1296209395,
0.0247009136,
0.214195177,
0.1133393571,
0.3457568884,
0.1883312762,
-0.0639743358,
-0.2510092258,
0.0370400548,
0.4117551446,
-0.0252169408,
-0.1266994774,
0.0186138675,
-0.1215970367,
-0.1454344094,
-0.2624289095,
0.3467603028,
-0.1787401885,
-0.0581287183,
-0.3553861976,
0.3969111145,
0.0664775372,
0.2234817594,
-0.1788855046,
0.2591159642,
-0.0972147956,
-0.1863847077,
0.0709263012,
0.0898758844,
-0.5308451056,
0.4942595661,
-0.5991373658,
-0.0874862745,
0.0404233597,
0.0899467394,
-0.0044939928,
-0.142779246,
0.1440738738,
0.2740440965,
-0.0375337563,
-0.1893779933,
-0.0832268,
-0.5538096428,
-0.0639174581,
-0.0381029397,
0.384542197,
-0.1365792304,
0.1988968849,
-0.2631213665,
0.0343523733,
0.08596728,
0.0000765175,
-0.4166375995,
-0.1524059474,
-0.0818363875,
-0.1089170277,
0.0761636123,
-0.0680740997,
0.0493105464,
0.1297265738,
0.0307055544,
-0.2212042809,
0.0496319979,
-0.145128414,
0.1046877801,
0.0524083488,
-0.1959431618,
-0.1174312681,
0.1733906865,
-0.0139856525,
0.3372424245,
-0.2768661678,
-0.0766105279,
0.0311619639,
0.1252360046,
-0.1028768346,
-0.0120937414,
0.144331336,
0.1166206598,
0.0461651608,
0.0722221434,
0.137460351,
0.0705851689,
-0.2863956988,
0.1049667001,
-0.036860995,
0.2669782043,
0.1401185095,
0.299238801,
-0.1195685789,
0.420901835,
0.0716729611,
0.0121928342,
0.1021104455,
-0.0031002685,
-0.0210774466,
0.0072859935,
-0.158718884,
-0.1828369796,
-0.1783345789,
-0.1451350003,
-0.2222422212,
-0.1602768898,
0.1800920665,
0.2320830673,
-0.1891255677,
0.3596040606,
0.3616654277,
0.1855929643,
-0.1767398566,
0.1009491086,
-0.0847952068,
-0.1132143214,
-0.2028796822,
0.3118566573,
0.1951146126,
-0.4828324914,
0.3124465048,
0.0768456236,
0.2162151486,
-0.3997157216,
-0.3270637989,
0.0999629796,
0.2116511464,
0.1568402648,
-0.1175061762,
-0.1622984707,
0.0289105661,
0.5074875355,
-0.0102631375,
0.1445216984,
-0.1656730026,
0.0603523105,
-0.0937687606,
-0.2105656117,
-0.2816863656,
0.1144588143,
-0.3063829541,
0.4082044363,
-0.2697689831,
0.4192981422,
-0.590057373,
-0.3131831884,
-0.3440952003,
0.3409800529,
-0.2885808349,
-0.1261041015,
0.1379366815,
0.0138242841,
0.0292381644,
0.1049956754,
0.3350334764,
0.1035920084,
0.5011777878,
0.1839784831,
-0.1275367886,
-0.0247079786,
-0.2411275506,
0.2483796179,
0.0147428103,
-0.2052839547,
0.198924318,
0.4318724871,
-0.0715489164,
-0.1616412401,
-0.0173581392,
0.5543355346,
0.3776865602,
-0.7202737331,
-0.0549808145,
0.1337955594,
0.161990881,
0.0390958712,
0.1831469536,
0.1867975593,
0.2772271335,
-0.030189611,
-0.0359303951,
-0.057224825,
0.0335898288,
0.3075831831,
0.2061610073,
-0.0219192915,
0.2436192334,
-0.179590404,
-0.1927599311,
0.0978357121,
0.1497308612,
-0.5974990129,
0.0335833579,
0.2408355623,
-0.342286855,
0.0626598746,
0.1090902165,
0.023920089,
-0.0453768149,
0.3704229891,
-0.0711149573,
0.3302577734,
-0.2325229645,
-0.2024017572,
-0.359687686,
0.0660740212,
0.0306294486,
0.0832769051,
-0.1472662687,
-0.1648824364,
-0.093437776,
0.1557216048,
0.0648445338,
0.1428684443,
0.261177659,
0.7247499824,
-0.6224197745,
0.2886499763,
0.391800791,
-0.0296208728,
0.247147873,
-0.4001511931,
0.1693501621,
0.0103674158,
0.0022283867,
-0.1773338169,
0.1539892256,
-0.1694151163,
0.4468995333,
0.1549280584,
0.0643645003,
0.2695637047,
0.0336149856,
-0.1173482239,
0.0193400625,
0.2997876108,
0.3006200194,
-0.545270741,
0.2135139853,
0.0773072466,
-0.4484578669,
-0.019957006,
0.0097898021,
-0.001511611,
0.1182383895,
0.1396420151,
-0.1543738246,
0.0191281587,
-0.0932218134,
0.1422596127,
0.0317067727,
0.3753750324,
-0.0367311873,
0.1789433062,
-0.2378186285,
0.0514134765,
0.0894556195,
-0.1766905934,
-0.3162966371,
-0.3609882295,
0.5703045726,
-0.4823660254,
0.1083313376,
-0.0566998869,
-0.1274669319,
-0.0527693145,
0.0712154806,
-0.6215372682,
0.2518401742,
-0.360824734,
-0.6840991974,
0.1833938956,
-0.1227832437,
0.1138792634,
-0.0478708595,
0.2918035388,
-0.1887571514
] |
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.2164213359,
-0.269531697,
-0.0307762921,
0.1850229353,
0.1784022301,
0.1376416534,
0.0575688109,
-0.0025021089,
0.0087180361,
0.2766421437,
0.1489747167,
0.1610603631,
-0.2854521871,
-0.1023180559,
-0.123775512,
-0.1828476191,
0.1945979297,
-0.1632983238,
0.2638877928,
0.3403266072,
-0.4150704443,
0.4792796373,
-0.3459641933,
0.0734493583,
-0.5422173142,
-0.1041582227,
-0.2976151407,
0.4396466017,
0.1972891688,
-0.4517994225,
-0.0138778351,
-0.1838335246,
0.2181252241,
0.1776028126,
-0.0001206921,
-0.1065647453,
0.0575245544,
-0.0216341019,
0.3331863284,
0.2294840962,
0.0989155695,
0.0286369398,
-0.0890319571,
-0.0855967999,
0.1740061641,
0.2978886366,
0.0963278189,
-0.1282737851,
0.5274697542,
0.3825234771,
0.0758574083,
0.2272969186,
0.0876480713,
0.0078205913,
-0.1878414452,
-0.2888143063,
0.0203555226,
0.2024264336,
0.5406017303,
-0.3069016337,
0.0876101106,
0.260890007,
-0.3369733989,
0.0058559384,
-0.3788696826,
-0.0015096739,
0.3409762084,
-0.4972153604,
0.1355956793,
-0.0681020766,
-0.0130131692,
-0.3219805956,
0.1528368145,
-0.0216743499,
0.1863060445,
-0.8767050505,
-0.0115934722,
0.1989577562,
-0.31447649,
0.0741169602,
-0.1529563069,
-0.059454836,
-0.0408121645,
-0.119142957,
0.1830255091,
0.0230448171,
0.0427070595,
0.1673845202,
0.2412388921,
0.2289174944,
-0.1954461783,
0.2736679018,
-0.1021793708,
0.136542961,
-0.5750361681,
-0.0034187213,
-0.0358424596,
0.1198295653,
-0.2478046119,
-0.3653279543,
-0.0101337321,
0.0669427067,
0.2934778631,
0.1694191098,
0.2630365491,
-0.1541764289,
0.0505524054,
-0.5396239758,
0.2337463945,
-0.4970729053,
-0.1793613136,
-0.0397485346,
-0.039352186,
-0.5704106092,
0.3287133873,
0.4325677454,
0.2949965596,
-0.0771089047,
-0.3808992505,
0.1982300282,
-0.0343120173,
0.1575939208,
0.1864148974,
0.2853846848,
0.3009820282,
0.6022768021,
-0.1089117602,
0.2430970073,
-0.5615466833,
-0.0249190331,
0.0065899119,
0.0263322741,
-0.3680235147,
0.1488279998,
0.2685834169,
0.0536363572,
0.124918431,
0.1504220814,
0.1372538656,
-0.3701720834,
-0.1397933364,
-0.2361293435,
-0.2652799487,
0.2284747064,
0.2142867744,
0.238306269,
-0.0474643931,
-0.0238060206,
0.0262907445,
0.3022711277,
-0.3516969681,
-0.3986416459,
-0.1266380996,
0.0315953381,
0.3112641275,
0.2649723589,
0.0864215493,
0.1411974132,
0.4162354469,
-0.2684276998,
-0.1504577249,
-0.3968690038,
-0.2766780257,
-0.3078666925,
-0.0656394288,
0.4170385003,
-0.1365274489,
0.2900332808,
0.2960906327,
0.031443201,
0.1945924312,
0.3655434847,
0.1552814841,
-0.0813856125,
-0.0505694672,
0.0832353532,
-0.0205600336,
-0.2881669998,
-0.1992244422,
0.1760381609,
-0.0738314986,
-0.0978381932,
0.3155908585,
0.1629917324,
0.0818679482,
-0.2875577807,
0.4907431901,
-0.1638591886,
-0.114792861,
0.2194321007,
-0.1701683402,
0.1143036336,
0.0020512706,
0.059754163,
0.005504414,
-0.1001228839,
-0.0747045577,
-0.0821857974,
0.372597754,
0.0493525118,
0.0329320505,
0.4288322031,
0.1251132637,
0.0426791236,
-0.0380035639,
-0.4412006438,
-0.1410394907,
0.03642755,
-0.1454828531,
0.1202212945,
0.2154916376,
0.0123197883,
0.143655017,
0.2799670398,
-0.1707316339,
-0.3652130663,
0.0262438804,
-0.0855279416,
0.0470418409,
-0.2536362112,
-0.0740334764,
0.5049321055,
-0.0410295464,
-0.0658522844,
-0.118306905,
-0.0357055366,
-0.2768331468,
-0.4343214929,
-0.0377744623,
0.343878001,
0.2160583436,
0.1489762664,
0.0480394028,
0.3426546752,
0.1863050461,
0.008138448,
-0.1519272625,
-0.0605588108,
0.2119034976,
-0.3094336689,
0.0922354534,
0.0435260683,
0.1680229455,
-0.1974247992,
0.3308630288,
0.0512523949,
0.0455579311,
0.3031245172,
-0.130864501,
0.1274569035,
0.1350084096,
0.1218288988,
0.1568631232,
0.1545982659,
0.2793991864,
0.0749837309,
-0.0271780901,
-0.2646305561,
-0.3050140142,
0.0248109065,
0.278872788,
0.1574844122,
0.0075602196,
0.047680527,
-0.3225964904,
0.1222751662,
-0.0220540967,
-0.3254919648,
0.7709751725,
0.1396938115,
-0.0917923674,
0.2921946049,
-0.4372151494,
-0.1092859358,
0.2887382805,
0.0958153754,
0.0182918608,
0.1213153005,
-0.0725878179,
-0.0066961795,
-0.1947631687,
-0.0800314471,
0.0012710541,
0.1616834849,
-0.3943112493,
0.0567446649,
-0.1457266212,
0.3488923609,
-0.386623323,
-0.4130347371,
-0.0436935201,
-0.2089835852,
-0.0044995323,
0.3486009538,
-0.0087538138,
0.0981043428,
0.0509684533,
-0.150031969,
0.1428932995,
0.1455198526,
0.2662488222,
-0.0906185061,
-0.1254096925,
-0.1048676372,
0.3953679502,
-0.1487083137,
0.2262792289,
0.2536702156,
0.0533811003,
-0.0227704011,
0.1229566783,
-0.1032216549,
0.0013772948,
0.3677131534,
0.0344865695,
0.0714258328,
0.0728885531,
-0.3751195967,
0.1372562796,
-0.3081077933,
0.1805386245,
0.142027095,
0.1769646704,
-0.4281646907,
-0.1545358151,
-0.2390206754,
-0.4491522014,
-0.2015043348,
0.0472734943,
-0.2694444656,
0.2583689392,
-0.2600834668,
0.1403764337,
0.1228191108,
0.3062797487,
-0.1006054431,
-0.1949616373,
0.209383443,
-0.0533713624,
-0.2659559846,
-0.2152352929,
0.0953183472,
0.1492293924,
-0.0089389533,
-0.0756139532,
-0.2012025267,
-0.3000939488,
-0.1328929067,
-0.0041209683,
-0.0031261942,
0.3379201293,
0.5044852495,
0.1537655294,
-0.0895862654,
0.0280561298,
-0.1914946884,
0.0816868022,
0.144946605,
0.1434950233,
0.1560182422,
0.1827500314,
-0.1249651611,
0.4865585566,
0.6543415189,
-0.0066322144,
0.3675019145,
0.0008983444,
0.0191045608,
0.0103922356,
-0.2558255792,
0.070877865,
-0.4434517026,
-0.0943346471,
0.1967524737,
0.1401743889,
-0.3902773559,
-0.2533400059,
0.1971938312,
-0.368437618,
-0.1661484838,
0.1676750332,
0.0287354179,
0.2189525664,
-0.0908990949,
-0.0863768831,
0.0174851194,
0.0233450271,
-0.1418203712,
0.1424052566,
-0.1911935359,
-0.2000516951,
-0.1622463465,
-0.4725288451,
-0.5464192629,
0.4420813322,
0.1902507991,
0.5572493076,
-0.000418663,
-0.1033633724,
-0.0077233464,
-0.2483180314,
0.9616149068,
-0.2557927966,
-0.2321635485,
0.2623563409,
0.3185872436,
-0.1450105309,
-0.0631815046,
-0.3186502457,
0.3344962597,
0.1541579962,
0.072203517,
0.245080784,
-0.1232589483,
0.1116059944,
-0.0964407548,
-0.1693777442,
-0.1299031228,
-0.3090284765,
-0.2947704196,
-0.1030344218,
0.2547099292,
0.0725449622,
0.0647233129,
-0.2876007259,
-0.0304694399,
0.0557192639,
-0.089297086,
0.3242616355,
-0.0514050946,
0.1778752953,
-0.0087672621,
0.1290719211,
-0.324398905,
0.3358859718,
-0.1060937047,
0.0669691265,
-0.257453084,
0.1226831824,
0.2483442128,
-0.0843655095,
0.5241107941,
0.4933417141,
0.0557750873,
-0.0079197288,
-0.3167232275,
0.4300364554,
-0.3185165226,
-0.0990871191,
0.458760947,
0.4184074402,
-0.0552101173,
0.0967350528,
0.3463328481,
0.2058134973,
-0.1845187843,
0.3874592483,
-0.1901328713,
-0.1893789172,
0.0983557701,
0.1140465662,
1.0056922436,
0.0209040791,
0.1967633069,
-0.036347691,
-0.4171997905,
-0.0878035873,
-0.1630501598,
0.3706019521,
-0.1769149005,
-0.1923168153,
0.0185918435,
-0.0688553452,
0.2651750445,
0.0302695259,
-0.3834731579,
0.5674389601,
0.1610334665,
-0.2266096175,
-0.0926407278,
-0.1582127213,
-0.140606761,
-0.28201738,
-0.0994325876,
0.0154650658,
0.0581103005,
-0.1524650902,
-0.240770936,
0.1642870009,
0.3962038457,
-0.3548473716,
-0.5855565071,
-0.0224850476,
-0.3942809701,
0.1594374478,
-0.1440715939,
0.1530202329,
0.07048513,
0.5233255029,
0.1155362278,
-0.0268228762,
-0.1901289523,
0.0285176821,
0.4766500294,
-0.0435875468,
0.0016900413,
0.0364160612,
0.1092407927,
-0.1305310428,
-0.3378485739,
0.29884094,
-0.1508524716,
-0.0966785848,
-0.2932020426,
0.1758429408,
0.1369695365,
0.0506842956,
-0.222503826,
0.2744401395,
-0.0636808202,
-0.2475292981,
0.0486397222,
0.0369097665,
-0.4689870775,
0.6542811394,
-0.5486722589,
-0.1686793864,
0.0071557201,
0.1973305345,
0.003032608,
-0.1446201205,
0.24448286,
0.2999679446,
-0.0237351656,
-0.1971711516,
-0.1212171391,
-0.4443234205,
-0.0850220621,
-0.0212598741,
0.3350664377,
-0.1141956523,
0.2037624121,
-0.1973082721,
0.1267281473,
0.1122922301,
0.0136115998,
-0.4640009403,
-0.3002685606,
0.0259879343,
0.0194077753,
0.1499797106,
0.0022458136,
0.1353272796,
0.1626279056,
0.0826303363,
-0.2359639555,
0.0879274234,
-0.0734420419,
0.1371510476,
0.2372465432,
-0.2229143083,
-0.0619268902,
0.1409921497,
0.0177726299,
0.3506113291,
-0.3006500006,
-0.110343717,
0.0441641659,
0.0941389501,
-0.1622808725,
0.0090969093,
0.0983475298,
0.0576676875,
0.0028965715,
-0.0053531043,
0.1868872195,
0.1672661752,
-0.3175900578,
0.128964439,
0.0337086469,
0.224979043,
0.1565758437,
0.2435609698,
-0.1932960153,
0.2854996622,
0.1126378179,
0.0922875702,
0.1190696731,
-0.0250294358,
-0.0114188641,
-0.000455955,
0.0224740077,
-0.2408929169,
-0.1208979934,
-0.2099994868,
-0.2908894122,
-0.0929391533,
0.35334149,
0.3665495515,
-0.1636880636,
0.2602789998,
0.3331293464,
0.1632743627,
-0.2968600988,
0.0894980431,
0.0852285177,
-0.117700249,
-0.1173402071,
0.3039804399,
0.2468134165,
-0.3369476199,
0.1280228496,
0.0680534542,
0.2644028068,
-0.320400387,
-0.3003345132,
0.218190074,
0.2322853059,
0.1148710549,
-0.0566622019,
0.0166872852,
0.1003808379,
0.5405627489,
-0.1263543665,
0.2218711525,
-0.1442345381,
0.142439574,
-0.1031865776,
-0.1945933104,
-0.1662877053,
0.1563700736,
-0.2756224275,
0.4519441128,
-0.2314283997,
0.6587277651,
-0.3951895535,
-0.4038066268,
-0.2709192634,
0.4613656402,
-0.2893261015,
-0.3082680702,
0.080601044,
0.0337607861,
0.0050711781,
0.067561537,
0.1498345137,
0.0158942901,
0.5080651045,
0.1054994762,
-0.044604931,
-0.1712996662,
-0.2480780184,
0.1482361555,
0.0329274833,
-0.204110235,
0.3403041363,
0.3946772516,
-0.0350885503,
-0.1126638353,
0.0304205325,
0.6076421142,
0.3532493114,
-0.6928082108,
0.0780416578,
0.1227818429,
0.1445381492,
0.0442234948,
0.143796131,
0.2057188898,
0.3289968371,
0.0988517404,
-0.0218015127,
-0.0685777813,
0.0414156877,
0.1923010647,
0.2604730725,
0.0378933996,
0.1881129742,
-0.0340932496,
-0.2330763638,
0.0635788068,
0.0436089635,
-0.6348339915,
-0.0292899702,
0.4114497602,
-0.4903600216,
0.0888528377,
0.0827017054,
0.0420089439,
-0.0604561903,
0.3990845084,
0.0115335323,
0.3016090691,
-0.2673701048,
-0.1688443422,
-0.5573811531,
0.0129772387,
0.1003674641,
-0.0201992281,
-0.1829354316,
-0.1710312366,
-0.0433932096,
0.2719519436,
0.1712249368,
0.0828569382,
0.1784491241,
0.7048639059,
-0.6334089041,
0.3171173632,
0.2510336339,
0.1043808162,
0.2963537872,
-0.3799834847,
0.1781571656,
0.0762076229,
-0.0277444459,
-0.2803596854,
0.1965389997,
-0.1178414971,
0.3687140048,
0.2799827754,
0.06566903,
0.3750953674,
-0.0018228814,
-0.007642068,
-0.0902407244,
0.3053020239,
0.1900223345,
-0.4532952309,
0.2929501832,
0.1708451509,
-0.5065390468,
0.0706266388,
0.0487747937,
-0.0507214591,
0.1662177145,
-0.0040193498,
-0.2534013689,
0.0329204947,
0.0087966397,
0.0715351626,
0.0729669333,
0.4877997339,
-0.0563628003,
0.288382262,
-0.2061877549,
-0.1364277601,
0.1566648185,
-0.2487033606,
-0.3022479117,
-0.3512845635,
0.4295423031,
-0.3348477185,
0.1113518849,
-0.2448460311,
-0.0816370025,
0.0238033682,
0.0570963472,
-0.6880536079,
0.379935652,
-0.3070560098,
-0.6153404713,
0.1081436276,
-0.0409419499,
0.0843589976,
-0.1582705379,
0.1082265601,
-0.3347598016
] |
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.1881466806,
-0.3144047856,
-0.0391354561,
0.1985246837,
0.1111997664,
0.0044228211,
0.1473804861,
0.0522426367,
0.0072062835,
0.1542066038,
0.0380618125,
-0.0369985066,
-0.2301332355,
0.0049475431,
-0.1641260982,
-0.2017738074,
0.1229715496,
-0.1477961242,
0.1082703918,
0.3176007867,
-0.4681927562,
0.4709620178,
-0.2818865776,
0.1857169718,
-0.1982045472,
-0.0535665601,
-0.2812375426,
0.5518502593,
0.2289515436,
-0.5014718771,
0.103340216,
-0.3695965707,
0.2053667158,
0.1928680241,
-0.0001191628,
-0.0957159549,
0.1240097433,
0.0172287226,
0.2794225216,
0.2258308232,
0.259986192,
0.0434034467,
0.0091181584,
-0.0228877589,
0.2111758292,
0.2333109379,
0.0288529862,
-0.1462763995,
0.4757122695,
0.1996722817,
0.0683800653,
0.1587356627,
0.1223480478,
-0.0179200135,
-0.3447396159,
-0.2424110174,
-0.007487081,
0.2551131845,
0.4874382317,
-0.31832546,
0.2209863663,
0.1477996409,
-0.2789090574,
0.0836965516,
-0.4995912611,
0.0385394692,
0.640462935,
-0.5573274493,
0.01231369,
0.0039337631,
-0.1371412575,
-0.1722597033,
0.141251117,
-0.0714392215,
0.204869777,
-0.8496661186,
-0.0566578619,
0.2238095254,
-0.4533594847,
0.0700573623,
0.0376136377,
0.1382520497,
0.0211228207,
-0.1229695827,
0.1787130386,
0.048056744,
0.024106618,
0.2137415409,
0.2611126304,
0.2568985224,
-0.2901440859,
0.3060051799,
-0.1656569541,
0.1110763401,
-0.5593206882,
0.0435665101,
-0.087590754,
0.1395758986,
-0.2603891492,
-0.0911274403,
-0.1450669318,
-0.001092664,
0.2437378019,
0.1224618256,
0.164380163,
-0.224925369,
0.01627554,
-0.5754621625,
0.0762995332,
-0.3193160594,
-0.0192708075,
-0.0631262958,
-0.0396312177,
-0.5433817506,
0.1638689786,
0.4754502773,
0.3127376735,
-0.0908289701,
-0.4087654352,
0.0046493113,
0.0548972711,
0.1591066122,
0.3263027072,
0.3785497844,
0.2375262082,
0.6493282914,
0.1164664477,
0.3008678854,
-0.4983568788,
0.249887377,
0.105526343,
-0.0099149849,
-0.2646823525,
0.2840289176,
0.2015826106,
-0.1050171852,
0.191911906,
0.0913680494,
0.2648681402,
-0.1933919489,
-0.0548235849,
-0.1775241047,
-0.1875755787,
0.24834764,
0.1039773077,
0.2727550864,
0.0782231539,
0.0614006445,
-0.0588398799,
0.1217047274,
-0.233202219,
-0.3323016763,
-0.2908738554,
0.0487952828,
0.3455985785,
0.4107147455,
0.3590709865,
-0.1826983988,
0.3697881997,
-0.1141112298,
-0.1149109751,
-0.3369792998,
-0.3605934978,
-0.2536896765,
0.055989109,
0.3577571511,
-0.0117117763,
0.2625140846,
0.1336178333,
-0.0234017223,
0.1730083525,
0.2555246353,
0.1529279351,
-0.0441389121,
-0.1599847227,
-0.1845410168,
-0.2531804144,
-0.469242841,
0.2813505828,
-0.0531995296,
-0.0947239324,
0.0144146681,
0.263525188,
-0.09240596,
0.0841415823,
-0.3598732352,
0.4103767276,
-0.1397639364,
-0.0000291839,
0.1564006358,
-0.2134258598,
-0.0189387724,
-0.2104978263,
0.158079803,
-0.1415791959,
-0.1717148572,
-0.1469049901,
-0.0887725502,
0.2672273219,
0.1323040426,
0.0029337555,
0.2626313567,
0.3290075362,
-0.0504726954,
0.0705115944,
-0.2354251891,
-0.1410970837,
0.1449600905,
-0.0926912203,
0.0614889935,
0.3000001907,
0.2150602192,
0.1844714731,
0.2884704471,
-0.2682779133,
-0.3507544398,
0.0538340062,
-0.010150291,
0.1759853214,
-0.1773452014,
0.0131453723,
0.5986759067,
-0.1233622506,
0.0136166029,
-0.2358869016,
-0.1150440723,
-0.3619887531,
-0.2789749801,
-0.0103396773,
0.3257578313,
0.1760942936,
0.0544386469,
0.1365503967,
0.2462067306,
0.149050802,
-0.159698084,
-0.156538263,
-0.1665807515,
0.1694265604,
-0.2053366303,
0.1545627713,
0.0625818372,
0.0926793665,
-0.2570306659,
0.4300042987,
0.0516271144,
-0.0339033008,
0.3756661415,
-0.0890954062,
0.1873249561,
0.1525299847,
-0.0126633346,
0.218852371,
0.1479421556,
0.3459524512,
0.1692014188,
0.1437895149,
-0.4511527419,
-0.1519180685,
0.1961424947,
0.2103530318,
0.0790237337,
-0.1222666055,
0.114188537,
-0.1815056354,
0.1832987964,
-0.0153747825,
-0.1870619059,
0.7362310886,
0.0474283136,
-0.1104165912,
0.2805090547,
-0.4284942746,
-0.0939544216,
0.3900577724,
0.0612931624,
0.2331196368,
0.169328779,
-0.1249576658,
-0.0459339246,
-0.0291670412,
-0.2392558455,
-0.0362739563,
0.0800579488,
-0.340279758,
0.0612633228,
-0.0924088284,
0.4969220459,
-0.4114156663,
-0.4017825425,
0.0227536149,
-0.1363872588,
-0.0535736829,
0.4672951996,
-0.1314398944,
0.0236188062,
-0.0362696685,
-0.0113860816,
0.0388440788,
0.3347732127,
0.1567800194,
-0.0217871554,
-0.088147521,
-0.0752069727,
0.3987685442,
-0.0621620715,
0.2075347751,
0.2854365706,
-0.0574673228,
0.2356506288,
0.042125538,
-0.0356812961,
0.0262667984,
0.3805264533,
0.030133862,
0.1732634902,
0.1848590821,
-0.5782220364,
0.1626752019,
-0.163551867,
0.1181734353,
0.1189878881,
0.0275814272,
-0.4057867825,
-0.193890661,
-0.0397476926,
-0.488307178,
-0.2965641022,
0.0322539471,
-0.0325806141,
0.193485409,
-0.0064603873,
0.1003119051,
0.149527669,
0.0736576244,
-0.138151899,
-0.1220573485,
0.0768523365,
-0.0614769571,
-0.2239355743,
-0.048726283,
0.0344484746,
0.0997956395,
0.0538102575,
-0.2458158284,
-0.1084739864,
-0.2988760471,
-0.1147118583,
0.0434821993,
0.0423186906,
0.2140590549,
0.4646483064,
0.2451159954,
-0.1603368968,
0.1172706187,
0.0354305878,
0.1138503253,
0.0141476095,
0.1571186334,
0.1290081739,
0.0388408974,
-0.2746428847,
0.5560708642,
0.7195619345,
0.0079730097,
0.2117629051,
0.1725875288,
0.1281334609,
-0.0888724029,
-0.2836924791,
0.0189998783,
-0.3320358992,
-0.0475187637,
0.1152630895,
0.1190857217,
-0.1943736672,
-0.2258572578,
0.2984494567,
-0.3609918356,
-0.2144331783,
0.091312848,
-0.0031269328,
0.1068489999,
-0.2871646881,
-0.0014673397,
0.0885586441,
0.0902060717,
-0.1638024747,
0.2348209769,
-0.253165096,
-0.310220629,
-0.2806431353,
-0.4974414408,
-0.4011014402,
0.3255934119,
0.1121691987,
0.5273083448,
0.0384408385,
-0.1809522808,
-0.0801850408,
-0.2546064556,
0.9073624611,
-0.2285795659,
-0.2365726978,
0.2589762509,
0.3240387738,
-0.083982788,
-0.1596125662,
-0.1857511252,
0.2760505378,
0.1724245399,
0.0037937351,
0.1194251925,
-0.187232241,
0.1222391948,
0.023930978,
-0.1323914379,
-0.0503412336,
-0.3534942567,
-0.3537785411,
-0.1054332927,
0.1952889413,
-0.0393824019,
0.080937475,
-0.5451444983,
-0.0410293452,
0.1071586087,
-0.0651640594,
0.1058613658,
0.0425304174,
0.0935706794,
-0.0367010459,
0.418415904,
-0.2705118358,
0.2269549817,
-0.132538572,
0.102064088,
-0.2310527563,
-0.0111664832,
0.1763539314,
-0.0593632273,
0.3624847233,
0.4911208749,
0.1173729151,
-0.0381041244,
-0.3317423761,
0.4632002413,
-0.2424946576,
-0.2325076759,
0.3120749295,
0.2526546419,
0.0963158607,
0.303753674,
0.2620723844,
0.0120330527,
-0.1321222484,
0.6690812111,
-0.2865626216,
-0.1309687793,
0.0915625691,
0.2670035064,
0.9803851843,
0.0002800496,
0.1036658287,
0.1353644878,
-0.3450931609,
0.0168712325,
0.14852947,
0.2275098264,
-0.2147378922,
-0.0921181515,
0.1534196436,
-0.0692245513,
0.2798223794,
-0.1486619711,
-0.3306346834,
0.2778288126,
0.1979100406,
-0.2983660102,
-0.1088462323,
-0.1559791416,
-0.0305137988,
-0.3870220184,
0.1118133143,
0.0050123036,
0.0803059787,
-0.0226951074,
-0.2418229878,
0.1473935992,
0.416775912,
-0.3222227991,
-0.5853480101,
0.0799791738,
-0.250056833,
0.0987986773,
-0.1064630449,
0.0789996982,
-0.0206885077,
0.2738598585,
0.292427659,
-0.1586727798,
-0.1383259743,
0.0596915148,
0.3177005053,
-0.1067117378,
-0.0287851393,
-0.1838611066,
-0.0780218765,
-0.0452291928,
-0.3501316011,
0.2171634734,
-0.1274763793,
0.0402388275,
-0.2360645086,
0.3128055632,
-0.0060311528,
0.2374045402,
-0.1692707837,
0.397218734,
-0.1280944943,
-0.162591368,
0.0792383552,
-0.0392377265,
-0.4698779583,
0.5655831099,
-0.6352736354,
-0.1246336997,
0.0684990436,
0.0431926437,
0.051216159,
0.0985020995,
0.3221233487,
0.2966786921,
-0.0124750808,
-0.2109616399,
-0.1122628525,
-0.519885242,
-0.1286488622,
-0.1232339218,
0.4179423451,
-0.1153107509,
0.2454814017,
-0.3513735533,
-0.0550735481,
-0.0755424425,
-0.0676291585,
-0.4756988883,
-0.0865646377,
0.044637505,
-0.2182350606,
0.0746468008,
-0.1440294683,
0.2000204325,
0.0788339525,
0.1162853613,
-0.2453023195,
-0.0192253403,
-0.1059376821,
0.1291177869,
0.0657600313,
-0.2747897208,
0.0525420606,
0.1484897435,
0.0116023831,
0.2926315665,
-0.2524475455,
-0.1338889748,
0.0612613112,
0.0983060151,
-0.1529420018,
-0.1397014409,
0.2024433017,
0.037642546,
0.0320360027,
-0.0035299957,
0.0384982675,
-0.0282250047,
-0.1952828616,
0.0285114497,
-0.0443941839,
0.3265430629,
0.1590442061,
0.2606516182,
-0.1510518193,
0.373673588,
0.1364552677,
0.0730977654,
0.0131400004,
-0.0461715087,
-0.1199253723,
-0.0568597317,
-0.1078418642,
-0.0480941385,
-0.0949115902,
0.0458891205,
-0.3931424618,
-0.3150410056,
0.1322900057,
0.5207764506,
-0.0906364471,
0.2684802413,
0.3860578537,
0.1517118365,
-0.1998000145,
0.1071873084,
-0.0923584998,
-0.2328288853,
-0.1368254721,
0.3245012164,
0.0644398332,
-0.5508658886,
0.4770566523,
0.069595553,
0.3834379613,
-0.3326542675,
-0.158495903,
0.3198782802,
0.3208470345,
0.037848942,
-0.0150567982,
-0.0915637463,
0.2071587294,
0.4593248665,
-0.1311329007,
0.2014141679,
-0.3238774836,
0.1578861177,
-0.08962062,
-0.2398292571,
-0.110228762,
0.1657064855,
-0.1913153976,
0.2936512828,
-0.1899563074,
0.4689157605,
-0.5960273147,
-0.3746604323,
-0.3592118323,
0.3930901587,
-0.1336377859,
-0.1862938702,
-0.1075364575,
0.0886945277,
0.1282715201,
0.0879685283,
0.301933527,
-0.1085813642,
0.6149500608,
0.1113224477,
-0.219086051,
-0.1736542881,
-0.3851726651,
0.224502489,
-0.0093775988,
-0.1311012655,
0.3541276455,
0.6124846339,
-0.0654937774,
-0.2977388203,
0.1973144263,
0.5848488212,
0.4469044805,
-0.6962714791,
0.1449212879,
0.1227998063,
0.1126576662,
-0.0131668448,
0.1467437744,
0.102041468,
0.1914802045,
0.0405678824,
0.0253952183,
-0.0716055036,
-0.1015079468,
0.3518775702,
-0.0269625057,
0.1627120376,
0.1804659367,
-0.102385357,
-0.157770589,
0.1136829257,
0.1008244604,
-0.6489605904,
0.1941167712,
0.2340758145,
-0.5234291553,
0.0135805234,
0.1275424808,
0.0488934144,
-0.1051833928,
0.440992713,
-0.0385623351,
0.2765522599,
-0.2048593611,
-0.2142632604,
-0.3133779764,
-0.1079991683,
-0.125413999,
-0.0537105538,
-0.1895314306,
-0.0621599257,
0.0386299454,
0.2744995356,
0.0273525678,
0.1042200029,
0.2254253179,
0.6995900869,
-0.6562348604,
0.1832002252,
0.3876357377,
0.0067535434,
0.214962393,
-0.4983592033,
0.167381376,
0.1196632385,
-0.0029622167,
-0.0181072336,
0.2306743264,
-0.156835109,
0.1118385494,
0.20749484,
0.1057583094,
0.0867729783,
0.0140858218,
-0.2020222545,
-0.1171710342,
0.2525695562,
0.2592407167,
-0.3225484192,
0.3469714522,
0.0999833345,
-0.4285969734,
-0.1827360541,
-0.0377777219,
-0.0870678946,
0.1813717633,
0.1660642922,
-0.1305917799,
0.0330275372,
0.060788691,
0.1322128177,
0.0492529273,
0.3977869153,
-0.0349065512,
0.2151015401,
-0.2833603323,
-0.045622766,
0.1644545645,
-0.1422147751,
-0.2171933353,
-0.2530255914,
0.3797121942,
-0.4996712208,
0.2078315914,
-0.2136392295,
0.0040057302,
-0.0160128474,
-0.0012640432,
-0.5598612428,
0.3290333748,
-0.1534711123,
-0.7110197544,
0.0667742044,
-0.0996055156,
0.1139256805,
-0.1034514457,
0.2528046966,
-0.0494639054
] |
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.1506282389,
-0.4665437341,
-0.0850917548,
0.2313078642,
0.0865275785,
0.0101603121,
0.0336140171,
-0.0307327136,
0.0230881795,
0.2842902541,
0.1215860993,
0.0667373985,
-0.3062889576,
0.0160501972,
-0.1941300929,
-0.1727216989,
0.0984337479,
-0.1465356946,
0.2517448366,
0.3242735863,
-0.4602842629,
0.4865846336,
-0.310128808,
0.1724269986,
-0.410628587,
-0.0460811704,
-0.2003932595,
0.4842282236,
0.2549555898,
-0.3877046704,
-0.0000799224,
-0.3113580942,
0.1509667635,
0.1404423565,
-0.0001155468,
-0.1447124183,
0.0140571687,
-0.0155945756,
0.3914158642,
0.2356813401,
0.1747709811,
0.015411675,
-0.0930724293,
-0.0278625339,
0.1327622682,
0.2751019299,
0.0475342497,
0.0036518052,
0.4036989808,
0.3019191623,
0.1590740383,
0.2588338852,
0.1020685136,
0.0435886569,
-0.320417583,
-0.3896213472,
-0.0509020984,
0.2563922405,
0.5162353516,
-0.2866719961,
0.1748640835,
0.2624703646,
-0.2407961488,
0.0373891145,
-0.3169420063,
-0.0094362795,
0.4316337407,
-0.5044820905,
0.0530500412,
-0.0857312381,
-0.0860011876,
-0.1723190844,
0.3172115684,
0.1498870403,
0.1057221889,
-0.8734205365,
0.0373718478,
0.223695308,
-0.360847652,
0.0636080801,
-0.0768168122,
0.0004866794,
-0.0733842105,
-0.2057023346,
0.106474936,
-0.0420249328,
0.0588759594,
0.1621666998,
0.1567881703,
0.2581145763,
-0.2660811841,
0.3123066425,
-0.0895462334,
0.0824715644,
-0.5067334771,
-0.0130569041,
0.0244880691,
0.2107515931,
-0.281976372,
-0.2238514572,
-0.0398798659,
0.1608052552,
0.2515886128,
0.1812388897,
0.2087537348,
-0.1637960076,
0.0577953085,
-0.597333014,
0.2277553529,
-0.4697574079,
-0.1418824047,
-0.09084934,
0.0590580739,
-0.5761102438,
0.3017513156,
0.4158447087,
0.1878655255,
-0.1029668376,
-0.3051143885,
0.2279173732,
0.0387915075,
0.2444170117,
0.2676873803,
0.3037415743,
0.3295401335,
0.6703653336,
0.0046982542,
0.1355356276,
-0.5587133765,
0.1353850365,
0.0535592586,
0.0962218419,
-0.3082460463,
0.1239418611,
0.2694669366,
0.0077625848,
0.1641471088,
0.1423987001,
0.2745954394,
-0.3172971904,
-0.0431893915,
-0.2245996743,
-0.1705034226,
0.2402049303,
0.2170296013,
0.1954391897,
-0.0491463654,
0.0771684796,
0.0033315569,
0.2177007198,
-0.3714385927,
-0.3710873127,
-0.0780068487,
0.091040127,
0.4564346373,
0.4124153554,
0.2775186896,
-0.041483812,
0.2997341156,
-0.2898952067,
-0.1395448446,
-0.4417794049,
-0.2753016353,
-0.3028677404,
-0.0770638883,
0.2549561262,
-0.0138915479,
0.3129973412,
0.3275540173,
-0.0539210401,
0.1966925561,
0.3646480143,
0.2357977182,
-0.2295785546,
-0.0765284598,
-0.0154181942,
-0.1692055613,
-0.2164347321,
-0.0256466474,
0.1248809025,
-0.0502496809,
-0.1582024693,
0.2369341254,
0.1396849304,
-0.0421049036,
-0.3254142702,
0.473393172,
-0.1873982698,
-0.1380392164,
0.2417533994,
-0.2508320212,
0.1379858851,
-0.0901914388,
0.0746409297,
0.078596428,
-0.1308208108,
-0.075859718,
-0.0913824439,
0.2532750964,
0.1211821809,
-0.0288548917,
0.3372824788,
0.1698222011,
-0.0188708007,
0.0452159382,
-0.3747879267,
0.0022796094,
0.0269342065,
-0.2805187702,
0.0384883173,
0.3604879975,
0.12969248,
0.1333178878,
0.2604677677,
-0.1930640936,
-0.2732439339,
0.0716791898,
-0.0973808616,
0.0637125373,
-0.2018378228,
-0.0118376464,
0.4987519085,
0.0421445891,
-0.1541187912,
-0.1427768022,
-0.0749819204,
-0.3986950815,
-0.3253808022,
-0.0215558186,
0.3518842757,
0.2070235908,
0.1487414837,
0.1229823828,
0.2170087099,
0.0977163464,
-0.1447271854,
-0.1434537917,
-0.0267218202,
0.2210912853,
-0.2565096617,
0.0919930339,
0.0154684447,
0.155485943,
-0.2237292081,
0.4834908843,
0.078025803,
-0.0517862141,
0.2152554989,
-0.1356081963,
0.1757029891,
0.166111201,
0.0268721133,
0.2828972638,
0.2699866891,
0.3601724207,
0.1210278794,
-0.0984187871,
-0.3358143568,
-0.3411462307,
0.07872089,
0.2047635764,
0.1856314391,
-0.0494339615,
0.0344517119,
-0.1975597143,
0.1480882764,
-0.0296657495,
-0.4081711173,
0.6608489752,
0.1290355623,
-0.1238791347,
0.2897003591,
-0.416823864,
-0.1286763549,
0.2691905499,
0.018980328,
-0.0485232621,
0.1837819964,
-0.1021909267,
-0.1305871457,
-0.0627077594,
-0.0959939808,
-0.0835924819,
0.0905503631,
-0.3112032413,
0.0754140094,
-0.0683127269,
0.4818828702,
-0.3881743252,
-0.484945327,
-0.0363850854,
-0.201094985,
0.0933718085,
0.3769928217,
-0.066040054,
-0.036954809,
0.0639785826,
-0.0753777474,
0.1353932023,
0.341262579,
0.2241436243,
-0.0824956894,
-0.075701274,
-0.0427119844,
0.3543697,
-0.1073643416,
0.2451779693,
0.3000585139,
-0.0080391355,
0.1237862706,
0.1547085941,
-0.0708741173,
0.0497366562,
0.2546126842,
-0.0004116967,
0.1000180617,
0.189893499,
-0.4014510512,
0.0981205404,
-0.3271222413,
0.216394186,
0.2593770921,
0.1389705837,
-0.3894451857,
-0.2654177547,
-0.1531650722,
-0.4650591016,
-0.1933445036,
0.0158454292,
-0.1655584574,
0.2833057344,
-0.2524058819,
0.0624520779,
0.1090324819,
0.3357044756,
-0.1297427714,
-0.168518275,
0.2200900912,
-0.032310117,
-0.3071313202,
-0.2082277834,
0.2030306309,
0.2279911041,
0.0628895909,
-0.2470684648,
-0.1562497914,
-0.3293307126,
-0.0154414568,
-0.0187923387,
-0.038283769,
0.2496670932,
0.3877027631,
0.1706471741,
-0.1693152189,
0.1369194388,
-0.0877076909,
0.0343709365,
0.0354772285,
0.165646255,
0.2234892547,
0.0942004621,
-0.1743259132,
0.4798258543,
0.5712583065,
0.0682218894,
0.284014523,
0.116662927,
-0.0279758386,
0.019736845,
-0.1986926496,
0.1041683406,
-0.4029535949,
-0.1182698309,
0.1622438133,
0.1221753806,
-0.3131994009,
-0.2602487206,
0.2312440276,
-0.2988222241,
-0.1110460758,
0.0893052593,
0.0715150386,
0.1665276587,
-0.1911999881,
-0.108643271,
0.0748669207,
0.0724368989,
-0.1262530386,
0.1831802428,
-0.2587580979,
-0.2337903231,
-0.0494497269,
-0.5941672921,
-0.4766453505,
0.410119772,
0.10824956,
0.5226663947,
-0.0082316771,
-0.1149526983,
-0.0176297612,
-0.2964189649,
0.8071000576,
-0.1431356966,
-0.1830291599,
0.2115633488,
0.2090338767,
-0.0098498762,
-0.1221251935,
-0.2269455194,
0.2996337712,
0.1128152907,
-0.0601764843,
0.2513709068,
-0.0667589828,
0.0676045418,
-0.1073214561,
-0.1688719243,
-0.1165625751,
-0.3311616182,
-0.2884028852,
0.0485689342,
0.2625978887,
-0.0126279704,
0.0332485847,
-0.4210146368,
-0.0191498473,
0.1351578832,
-0.0685682297,
0.2947753072,
-0.0726626366,
0.1175688952,
-0.1421976686,
0.142836988,
-0.2732448578,
0.3675435185,
-0.1351261884,
-0.0144856432,
-0.1890775412,
0.1965272427,
0.2784041464,
-0.1102425978,
0.3729202151,
0.3814231157,
0.1360355616,
0.0135937538,
-0.3704008758,
0.4939799905,
-0.2452193201,
-0.2091418505,
0.3325048387,
0.2664669156,
0.0814803243,
0.2649815083,
0.3170454502,
0.1260366291,
-0.0922469497,
0.4775736928,
-0.3215058446,
-0.0968963504,
-0.0289774854,
0.1434211135,
0.9238151908,
0.0846897662,
0.1080944687,
0.0120654926,
-0.4905239344,
-0.232547909,
-0.17031537,
0.327572912,
-0.2693826854,
-0.1481328905,
0.0304516703,
-0.0382660851,
0.1322239041,
-0.1053475142,
-0.3409648836,
0.4729429781,
0.0977982879,
-0.2913331091,
-0.1794243604,
-0.2355453968,
-0.0740180612,
-0.1805984229,
0.0021829288,
0.0786176696,
0.0783559233,
-0.1448467374,
-0.2679343522,
0.1346340775,
0.4491716027,
-0.3302661479,
-0.4855589271,
-0.0171636865,
-0.1990100294,
0.1551015377,
-0.0552145392,
0.162310794,
0.0668271333,
0.3810669184,
0.1539162993,
-0.0829827338,
-0.2485065758,
0.0191289596,
0.392786324,
-0.0478605069,
-0.1105949134,
0.0463192575,
-0.0188985076,
-0.1503203809,
-0.2896611392,
0.3926055729,
-0.1228488237,
-0.0140361264,
-0.3258326352,
0.3156884611,
0.0910600275,
0.1713142842,
-0.127826035,
0.2440663278,
-0.1244298667,
-0.1677265465,
0.1221419424,
0.0498554409,
-0.5294655561,
0.652123332,
-0.561660409,
-0.0932947174,
0.0055158529,
0.0684647188,
0.0146983992,
-0.0557596684,
0.1593244076,
0.2714973092,
-0.1028345525,
-0.2303349525,
-0.105763644,
-0.4670142531,
-0.0551303849,
-0.0359916836,
0.4547638595,
-0.1424974501,
0.248906523,
-0.2128925025,
0.0583948269,
0.044527851,
-0.0247207135,
-0.3333131969,
-0.2252670974,
-0.0753394812,
-0.0825658515,
0.1531941891,
-0.056925606,
0.0920921639,
0.109938018,
0.0790007263,
-0.2915714979,
0.0473882407,
-0.2277824283,
0.1002138704,
0.0793208927,
-0.2663448751,
-0.0975296497,
0.2109729648,
0.0640606284,
0.3459066451,
-0.3506191373,
-0.1485282183,
0.0790708363,
0.0717255324,
-0.0964211076,
-0.0437677912,
0.0798892677,
0.0856896341,
0.0290154628,
0.0750723481,
0.1441149116,
0.09008912,
-0.2854035199,
0.1194538772,
-0.0502445474,
0.2043410689,
0.1899690777,
0.2846993208,
-0.1666852832,
0.3932851255,
0.1064693034,
0.006347876,
0.0523518696,
-0.032125257,
-0.0687172413,
0.0561643094,
-0.0845433772,
-0.2393330336,
-0.1015351787,
-0.1130248308,
-0.2827159166,
-0.1089400053,
0.2826986015,
0.2960799634,
-0.1647985876,
0.2869273722,
0.2995326221,
0.2278229445,
-0.2148741037,
0.0480528921,
-0.1478597224,
-0.1248630807,
-0.1360432357,
0.2684839964,
0.182374686,
-0.4664894938,
0.3124740422,
0.0706090406,
0.18491669,
-0.4060260653,
-0.3674873114,
0.0782567561,
0.2264859676,
0.1041754186,
0.0287758019,
-0.0863824338,
0.0567872003,
0.4952469766,
-0.0511142798,
0.1885721684,
-0.2259839624,
0.0775547922,
-0.1170280576,
-0.1709326059,
-0.253166616,
0.0921371952,
-0.3694231212,
0.4250569642,
-0.2324755788,
0.4461490512,
-0.5816576481,
-0.3129297495,
-0.313575536,
0.4110396206,
-0.2617025673,
-0.1249564141,
0.1012551412,
0.0115749687,
0.1034586728,
0.0849340782,
0.3099182248,
0.0889204592,
0.5263203382,
0.2262045741,
-0.0824889615,
-0.0340430476,
-0.268404603,
0.2271323204,
-0.0195575096,
-0.1974030584,
0.1882000566,
0.495908916,
-0.0470258556,
-0.1721445769,
-0.0020351037,
0.5398037434,
0.3772577941,
-0.7378941178,
0.0080808178,
0.1601222456,
0.1459166408,
0.043547973,
0.1561665386,
0.1998275518,
0.2554308772,
0.0483390279,
0.0203679502,
-0.1242483705,
-0.0045731398,
0.2641780674,
0.2241328359,
0.1128834933,
0.2446009219,
-0.0508267432,
-0.2304031551,
0.0460798405,
0.0731754526,
-0.6401624084,
-0.0241283104,
0.23481296,
-0.394169569,
0.0507939644,
0.0399317741,
0.0669417754,
-0.0753958523,
0.4105226398,
-0.0549462959,
0.2512812018,
-0.263757199,
-0.1587156206,
-0.3679075241,
0.013018705,
0.1524795592,
-0.0102241263,
-0.1938026696,
-0.1669087559,
-0.0689597875,
0.1117749512,
0.0863854215,
0.097639069,
0.3191108406,
0.6845183969,
-0.6055822968,
0.374679625,
0.3027551472,
-0.0253771991,
0.2710236311,
-0.3583438993,
0.2116039693,
0.0212007239,
0.0636303276,
-0.2255444974,
0.2101651132,
-0.1030668616,
0.4734421372,
0.1819060147,
0.0485293195,
0.2563312054,
0.0007866919,
-0.062546894,
0.1206357554,
0.3517192304,
0.2666041851,
-0.582300365,
0.2764892578,
0.0833058655,
-0.3627563715,
-0.0619934425,
-0.0267344601,
-0.0161339492,
0.0667217225,
0.102572225,
-0.1087252498,
0.0047640204,
-0.0050734058,
0.041203022,
0.0413462743,
0.4595138133,
0.0127108712,
0.2037227154,
-0.2745135427,
-0.0162323341,
0.0923329443,
-0.0616561659,
-0.3161554635,
-0.3100220561,
0.5059920549,
-0.5154702663,
0.1332810819,
-0.0898826718,
-0.0787975788,
-0.0806526169,
0.0168790445,
-0.6610689163,
0.2708573341,
-0.3067215681,
-0.6747816801,
0.1371154487,
-0.1630330086,
0.1835546196,
-0.0199976377,
0.2053032517,
-0.1706852615
] |
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.1108913347,
-0.439286828,
-0.0885383338,
0.2090212107,
0.0622629263,
0.0388559699,
0.0055696582,
0.0343124047,
0.1305550635,
0.3507121503,
0.1845918,
0.1130338907,
-0.2703492045,
-0.0625600591,
-0.1630703211,
-0.0991826504,
0.0958346128,
-0.0558623746,
0.2845202982,
0.3060235083,
-0.5200818777,
0.4720443487,
-0.3290191591,
0.1505486369,
-0.3321789503,
-0.0268693101,
-0.1273712963,
0.4326404333,
0.2777252495,
-0.4478849769,
-0.0330369547,
-0.3090704381,
0.1182404011,
0.1131975204,
-0.0001193809,
-0.1579202265,
-0.0142010301,
-0.0612703636,
0.4552110136,
0.162301749,
0.1796986461,
0.0962323695,
-0.1407282948,
-0.1364837587,
0.2132923156,
0.3244240582,
0.1180419251,
-0.0536645688,
0.402844429,
0.2655666173,
0.1118751764,
0.2055493146,
0.093919009,
0.0754235387,
-0.2695280015,
-0.3726023436,
-0.0564220846,
0.2890228033,
0.5033327341,
-0.3820000887,
0.1414161921,
0.3143701553,
-0.3030370474,
0.0375133231,
-0.2931308746,
-0.064066574,
0.5305412412,
-0.5780695677,
0.0976733938,
-0.110515967,
-0.1709504426,
-0.2201833725,
0.3771390915,
0.1610392034,
0.0507418551,
-0.8099095225,
0.0275959391,
0.1364707053,
-0.4156237245,
0.0305883326,
-0.1491325349,
0.0135825872,
-0.0268381089,
-0.1467837691,
0.097508356,
0.0018117502,
0.0674112961,
0.2221699208,
0.2512002885,
0.2676579058,
-0.3172388375,
0.3002197742,
-0.0685031265,
0.11611633,
-0.4423089027,
-0.0357517377,
0.0773455799,
0.1887773722,
-0.2333678156,
-0.2691737115,
0.0109953992,
0.1386380941,
0.249851346,
0.2138968557,
0.2139112055,
-0.1912618577,
0.1267626584,
-0.619125843,
0.2186710387,
-0.4347948432,
-0.1045144051,
-0.0480079502,
0.0685983449,
-0.5401850343,
0.3463861942,
0.4573226273,
0.2797251642,
-0.1079147607,
-0.2896052003,
0.2956330478,
0.0119030029,
0.2019832134,
0.2572346628,
0.3027794957,
0.3510760963,
0.687222302,
-0.0302588753,
0.0749518573,
-0.5382584333,
0.1709014326,
0.1013111249,
0.1404789388,
-0.3260932267,
0.1511101872,
0.2556610405,
0.0663333088,
0.1399948895,
0.0715278536,
0.2646608353,
-0.319434166,
-0.1016469076,
-0.2185526192,
-0.0239280872,
0.2193686366,
0.1559508741,
0.2279542387,
-0.0514831766,
0.0751155689,
-0.0280019119,
0.2288477719,
-0.3791947961,
-0.3146424294,
0.0056253802,
0.0608850196,
0.4742708206,
0.4800151289,
0.3062351048,
-0.097722441,
0.299528569,
-0.3837095201,
-0.0615883358,
-0.4407130778,
-0.3253918588,
-0.3349106312,
-0.1095618308,
0.334287107,
0.0165766776,
0.3336034715,
0.3500510156,
-0.0059901141,
0.1059103832,
0.2597666681,
0.2196132839,
-0.2469085753,
-0.1390854567,
-0.007935293,
-0.1682924628,
-0.1990413666,
-0.027467804,
0.1558072567,
-0.0895253867,
-0.1395351589,
0.2032583654,
0.0898369849,
0.0090123191,
-0.3770283163,
0.4743015766,
-0.2610338032,
-0.1601285785,
0.2233108878,
-0.1887080371,
0.1628858149,
-0.0973645449,
-0.0018645525,
0.0476798788,
-0.0739371926,
-0.0460989587,
-0.0943072364,
0.2538556755,
0.1462074071,
-0.0373492539,
0.2930854857,
0.1426820308,
-0.0440982617,
0.0412535854,
-0.380364567,
-0.0369584002,
0.0419529676,
-0.2586918771,
-0.0318132974,
0.273876369,
0.1100662872,
0.1533836573,
0.2823153138,
-0.1785801798,
-0.1833352745,
0.0399046019,
-0.0801849291,
0.0570306107,
-0.2264941335,
-0.041750636,
0.3700159788,
0.0136439279,
-0.1833051741,
-0.1689895093,
-0.1147309095,
-0.3820260167,
-0.3083170056,
-0.0627654791,
0.3502778709,
0.2317861617,
0.0970025659,
0.0890679657,
0.2348303199,
0.1195784509,
-0.1474680752,
-0.153167516,
0.0274253786,
0.190461576,
-0.2588330507,
0.0580980033,
0.0713123009,
0.1849045455,
-0.2433961481,
0.4806244671,
0.0638305396,
-0.0317927785,
0.2943504751,
-0.1405335218,
0.1632418931,
0.110121116,
-0.0063845068,
0.2178629935,
0.1491163373,
0.3250451088,
0.1516058743,
-0.0632991865,
-0.3150224388,
-0.2845450044,
0.0527500212,
0.2794163525,
0.1230377853,
-0.0862113982,
-0.0113485483,
-0.1456185877,
0.1935887337,
-0.0329522118,
-0.422408998,
0.6393151283,
0.0958268642,
-0.1360432804,
0.2696193457,
-0.4196717739,
-0.1150871366,
0.242000103,
0.0387352668,
0.016445186,
0.18877092,
-0.1815691888,
-0.1324128211,
-0.0871770084,
-0.1970658749,
-0.0816428363,
0.0346399024,
-0.2595416009,
0.0612708405,
-0.048979111,
0.4968198836,
-0.3601051271,
-0.4657550156,
-0.0427581519,
-0.191839993,
0.0447608232,
0.422537446,
-0.0910358801,
0.0003687106,
0.0483644307,
-0.0752308667,
0.1253621876,
0.2083096057,
0.1887218058,
-0.1300222278,
-0.0176640339,
-0.0903123543,
0.4238032103,
-0.2149709165,
0.2365711629,
0.2388013899,
-0.0360358804,
0.0988385528,
0.1630550921,
-0.0131028965,
0.0243310258,
0.1573207229,
0.0540887006,
0.1723267883,
0.164187178,
-0.3335528374,
0.0946284682,
-0.4251776636,
0.2039517015,
0.2498654425,
0.1348347217,
-0.479675293,
-0.3031042814,
-0.1587504745,
-0.3429666758,
-0.2128162384,
0.0812861472,
-0.1794172674,
0.307007581,
-0.304291904,
0.1231356263,
0.0839878917,
0.2612292767,
-0.1630328,
-0.2192545235,
0.2409315407,
0.002817478,
-0.247159034,
-0.1566562951,
0.2460524738,
0.1974769831,
0.0351046696,
-0.1808269918,
-0.1518912017,
-0.3317208886,
0.006831944,
0.0114256591,
-0.0081768855,
0.2596694827,
0.4391314387,
0.1996572316,
-0.1285468191,
0.1151487231,
-0.1072458923,
0.0388024598,
0.0945968181,
0.1217527986,
0.3355996609,
0.1242958903,
-0.1919822842,
0.3964085281,
0.5850521922,
0.0669831634,
0.2981477976,
0.0712783933,
0.0723014325,
-0.0084355436,
-0.1640691608,
0.0700913668,
-0.3994192481,
-0.1546179056,
0.1536277384,
0.0361060128,
-0.3688914776,
-0.282715261,
0.2706741989,
-0.3177093267,
-0.1678565741,
0.127099067,
0.0690939426,
0.1307026744,
-0.1740140617,
-0.0349134058,
0.059197478,
0.1001403034,
-0.1112741232,
0.1810824722,
-0.1693287492,
-0.2402607054,
-0.0678073317,
-0.5501946211,
-0.4681795835,
0.4201441705,
0.1505704671,
0.5695855618,
-0.002304174,
-0.1535206139,
-0.0597581193,
-0.2935431898,
0.8496729136,
-0.1981764287,
-0.193444699,
0.2181833088,
0.2658568621,
-0.0026509091,
-0.0798921064,
-0.1824525744,
0.3223559856,
0.1083096415,
-0.0536812767,
0.2510608137,
-0.0756940544,
0.1179920956,
-0.092748031,
-0.1728265285,
-0.0914245844,
-0.3367771804,
-0.2960076332,
-0.0545707382,
0.2718885243,
0.0257835761,
-0.0629814416,
-0.3283901811,
0.0095573738,
0.2025769651,
-0.1010723263,
0.3030552566,
-0.0109928511,
0.1442429423,
-0.1002151966,
0.0600254089,
-0.2607693076,
0.2963287532,
-0.1633317322,
-0.0030010366,
-0.1922783554,
0.2404854298,
0.3096618354,
-0.0918829143,
0.3929231167,
0.4457352757,
0.1424072981,
-0.1233947724,
-0.3963151574,
0.4940873981,
-0.2796328366,
-0.2191224843,
0.2729914784,
0.2718496025,
0.0476508997,
0.2530597448,
0.2464247197,
0.1082382053,
-0.107795842,
0.4929205179,
-0.3655337393,
-0.0749302059,
0.0356280245,
0.1304308772,
0.9967213869,
0.0433203541,
0.1189118177,
-0.0594442263,
-0.4330741167,
-0.2991345525,
-0.1547605097,
0.3376128376,
-0.2475492656,
-0.1441726536,
-0.0107803494,
-0.0327461511,
0.1365702003,
-0.0481977686,
-0.3108735979,
0.542375803,
0.2191963196,
-0.1552075446,
-0.1597220004,
-0.2449066192,
-0.0447622761,
-0.2088467032,
0.1253476143,
0.026019536,
0.0824689046,
-0.1033284515,
-0.2708800435,
0.1608607471,
0.4782742262,
-0.4204178751,
-0.4470708072,
0.0222201869,
-0.2924542427,
0.1517005265,
-0.1510335207,
0.2836555243,
0.0082215816,
0.3933491111,
0.0862138718,
-0.0339079425,
-0.2003097683,
-0.0512489229,
0.5149106383,
-0.0734034851,
-0.1548948884,
0.04695151,
-0.0645004585,
-0.0882800892,
-0.2245563716,
0.3278431892,
-0.1464336514,
-0.0167196915,
-0.460234046,
0.3510603309,
0.1427760422,
0.2157933712,
-0.1538731456,
0.2385241985,
-0.2042161822,
-0.1341706216,
0.0876109451,
-0.0520029739,
-0.455840826,
0.6648204923,
-0.5725058317,
-0.1652448922,
0.0157149136,
0.0385562405,
0.0256588981,
-0.0823849738,
0.0913123339,
0.1807393283,
-0.0798329189,
-0.2497157305,
-0.1001924053,
-0.4476293325,
-0.0590609722,
-0.0140964929,
0.4131955504,
-0.1556124538,
0.1912053525,
-0.2220638096,
0.029321488,
0.1280599385,
-0.0034405515,
-0.3608270288,
-0.2059658766,
0.0041356143,
-0.0384432711,
0.1840739846,
0.0003693104,
0.0903391466,
0.1145681813,
0.0433792397,
-0.2699515522,
0.0237755403,
-0.2048454881,
0.1520060301,
0.0822431296,
-0.2354889363,
-0.1031663492,
0.1423008144,
0.0385229737,
0.4069345593,
-0.4111886621,
-0.1057429239,
0.1133373454,
0.0924330279,
-0.0820118338,
0.0198561922,
0.0701739341,
0.0386817083,
0.0940270722,
-0.0306103732,
0.1176603585,
0.084843874,
-0.2991259992,
0.074633427,
-0.0288004689,
0.2066003233,
0.1639942229,
0.2659655511,
-0.1864540875,
0.4394558668,
0.0981493667,
0.0235138983,
0.0044681281,
-0.0100962892,
-0.0554413423,
0.0710715055,
-0.0920922309,
-0.2425909787,
-0.1049911827,
-0.0773673654,
-0.3147370517,
-0.1228149012,
0.2354396582,
0.3333851695,
-0.2171508968,
0.2746220827,
0.3043160737,
0.1782012284,
-0.2159332931,
0.0613207594,
-0.0242803451,
-0.1104075611,
-0.0702867508,
0.3360289335,
0.2171676159,
-0.515562892,
0.3308369815,
0.0507115945,
0.1811344922,
-0.4108891189,
-0.359918505,
0.1516513526,
0.2669434845,
0.1257069409,
0.0498973206,
-0.0319669433,
0.0922815502,
0.4622266889,
-0.0737483352,
0.2301371098,
-0.2403804213,
0.1471826285,
-0.0988570601,
-0.1708919704,
-0.1792936921,
0.1233834177,
-0.325298965,
0.4941765666,
-0.1151761711,
0.3551945984,
-0.5752062201,
-0.3193902671,
-0.3000154793,
0.3833560944,
-0.2761053741,
-0.0942610353,
0.0731210858,
-0.0046297163,
0.0848836601,
0.109599106,
0.33756423,
0.073057875,
0.647262156,
0.221940577,
-0.0965560824,
0.0616374463,
-0.3227700591,
0.1396818906,
0.0483465306,
-0.2488618791,
0.2272086442,
0.441345185,
-0.0150431618,
-0.2559156418,
-0.0786894709,
0.5184316039,
0.3973652124,
-0.7148280144,
0.0073225945,
0.1765234768,
0.1348552108,
0.0246886313,
0.1171336845,
0.1264948845,
0.2712624669,
0.0323042385,
0.0082613528,
-0.0902379826,
-0.0176293198,
0.3147457242,
0.2156031728,
0.2337629646,
0.1607877165,
-0.0054430533,
-0.2068791687,
0.0349384695,
0.1091857404,
-0.6795327067,
-0.0306226462,
0.1634545028,
-0.4358775616,
0.0823001713,
0.0346725248,
0.0564471334,
-0.0317574479,
0.3202777803,
-0.0608232506,
0.2135933042,
-0.2925102711,
-0.1811574399,
-0.3769398332,
0.013010513,
0.1031439304,
0.0137516037,
-0.1198761463,
-0.1581248939,
-0.0381517783,
0.1678034365,
0.1059700698,
0.090367265,
0.2510836422,
0.7179803252,
-0.540871501,
0.3911238015,
0.3814263344,
0.0051042009,
0.296939522,
-0.402802527,
0.2393358946,
-0.0329810604,
0.0491696447,
-0.2540531158,
0.2756892443,
-0.1599728465,
0.4374836385,
0.2795377374,
0.0273051132,
0.1966371685,
-0.0966164395,
-0.0949592739,
0.1099542007,
0.4139928818,
0.3005549908,
-0.5189859867,
0.309702903,
0.0198681727,
-0.405382514,
-0.0964165255,
-0.0510485508,
-0.0667768344,
0.0606232584,
0.1748022884,
-0.0961036384,
0.0391786173,
-0.0059004799,
0.1120401099,
-0.0357937962,
0.4521818757,
0.0073087285,
0.2061781585,
-0.2073807418,
-0.0599183664,
0.1864171475,
-0.0306248199,
-0.3157816529,
-0.237683326,
0.4764109552,
-0.5554820895,
0.0987056047,
-0.1281590909,
-0.0618511438,
-0.1075520068,
0.0303571075,
-0.7285943627,
0.2602618933,
-0.4314205945,
-0.6321411133,
0.10898453,
-0.0953819901,
0.1943977177,
-0.0924221873,
0.2282527089,
-0.1962153018
] |
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.1351819932,
-0.4226136208,
-0.1194845811,
-0.0176143572,
0.1080632806,
-0.0960125178,
0.1320637912,
0.0308473408,
-0.1013918668,
0.3602202535,
-0.0551883094,
0.0946904719,
-0.3736591339,
-0.1421172023,
-0.1579383463,
-0.0196447447,
0.0329826325,
-0.1128273755,
0.0478784591,
0.0904551968,
-0.3394444585,
0.4024184644,
-0.2713933587,
0.0268046819,
-0.401966244,
0.0796884447,
-0.0617424063,
0.5093016624,
0.0191326998,
-0.3639237285,
-0.1021171287,
-0.219555676,
0.2386395931,
0.1321729422,
-0.0001034106,
-0.1818680912,
0.0205884874,
0.0046903938,
0.1855372339,
0.0788151547,
0.362146914,
-0.2269077897,
0.0714552775,
-0.0414676964,
0.0445210412,
0.2184221148,
0.0055284761,
0.0762185678,
0.4799878895,
0.2293439656,
0.2636738718,
0.0895198137,
0.1886878908,
0.1408017427,
-0.1524419487,
-0.285335958,
-0.1197067946,
0.4174713492,
0.3994279206,
-0.1610616446,
0.0792940557,
0.232209444,
-0.1770657003,
0.0859544501,
-0.2321714014,
-0.0009666793,
0.4042548239,
-0.4059967995,
0.0156398639,
0.0012497809,
-0.0921160281,
-0.1074043587,
0.2277502865,
0.1052796692,
0.2289253473,
-0.8124306798,
0.0166804399,
0.0472577363,
-0.3250298798,
0.0808489472,
0.1410830617,
-0.1242964417,
-0.0220243484,
-0.2145819366,
-0.0428269506,
0.1005379558,
0.1382362843,
0.0571486056,
0.1464476883,
0.0078000948,
-0.2372010797,
0.3869684041,
-0.0115063693,
0.0850087106,
-0.4147730768,
0.0770574287,
0.1552437395,
0.0051675159,
-0.2343979478,
-0.2477192879,
-0.0266920999,
0.138092339,
0.2967425287,
0.1935620755,
0.1310122907,
-0.0973501205,
0.1096471325,
-0.5587246418,
0.3567600846,
-0.4095546007,
-0.0658392757,
0.116301626,
-0.0664670914,
-0.4812479615,
0.2111385763,
0.3640956879,
0.1387633234,
-0.1785722524,
-0.2412888408,
0.2611693442,
0.076105088,
0.161996603,
0.1748357415,
0.373155117,
0.2703036666,
0.6323962808,
0.1211332828,
0.0395692848,
-0.5594885349,
0.3015010059,
0.0585802682,
0.0765403807,
-0.1999406219,
-0.0367090739,
0.2190438956,
0.0480017476,
0.1093270928,
0.0806697756,
0.1975699812,
-0.1294087917,
-0.0299191698,
-0.1190907955,
-0.0193340108,
0.1967863142,
0.1208982915,
0.2237980068,
-0.0420532674,
0.0469092652,
-0.1270230263,
0.2816565037,
-0.1704926491,
-0.2169582546,
-0.0966703147,
0.2064183503,
0.3183294535,
0.3302814662,
0.4069040418,
0.0202216879,
0.0787570626,
-0.3521757722,
-0.2129659057,
-0.4262781739,
-0.1532216519,
-0.22043854,
0.197979182,
0.2015242875,
-0.2252460718,
0.2377127558,
0.1215575486,
-0.1078293622,
0.2043152452,
0.2541863322,
0.2908345759,
-0.2798777223,
0.0065352991,
-0.0297296494,
-0.0913804471,
-0.2077921927,
-0.0343782976,
0.0867682993,
-0.095519729,
-0.1293619573,
0.0654297993,
0.1055271477,
0.1556665897,
-0.1546863019,
0.3835846186,
0.0252293386,
0.0625474155,
0.1670587659,
-0.3813205361,
0.1540871263,
-0.1082108989,
0.1325484812,
-0.0153022557,
-0.3098198175,
-0.1858511567,
-0.0440188162,
0.3126032352,
0.1123027205,
-0.0583187342,
0.3177088201,
0.2139804661,
-0.0429484211,
0.0330176465,
-0.2787873149,
-0.0473931618,
-0.0326259509,
-0.2836300731,
0.110979937,
0.2854704857,
0.1276582778,
0.0835923553,
0.2665581107,
-0.157589823,
-0.2924697995,
0.2016201913,
0.0617830977,
0.0584757477,
-0.0908380821,
-0.1190519929,
0.2270745188,
0.100356102,
-0.1943214834,
-0.1213513315,
-0.113920331,
-0.486925751,
-0.2864391506,
0.061691843,
0.4043664336,
0.0870123357,
0.0715782717,
0.0119795576,
0.2805937529,
0.1202452108,
-0.1503618062,
-0.0562340543,
-0.1117322445,
0.1633472741,
-0.1665992737,
0.0865734816,
0.1966271251,
0.1060522497,
-0.1940514594,
0.3674075603,
0.0948767662,
0.1114333868,
0.2885197103,
-0.011570774,
0.1656481326,
0.1555185169,
0.0989128873,
0.1268948019,
0.0978223383,
0.4008512199,
0.1141288429,
0.1021065414,
-0.2333519161,
-0.286788255,
0.1027944088,
0.2684310079,
0.0992109105,
-0.0008459538,
0.1202718168,
-0.1331624389,
0.0946434662,
-0.0441561863,
-0.4050087929,
0.3301177025,
0.1766395718,
0.0809019208,
0.249303937,
-0.4532827437,
-0.1189093292,
0.2047944218,
-0.1069696993,
-0.1498229802,
0.2540158331,
-0.1136462539,
-0.1780840009,
-0.1086225808,
-0.1908424795,
-0.1463776678,
0.1059685796,
-0.1225524396,
-0.1124029458,
-0.2060621381,
0.5869613886,
-0.337952435,
-0.5343270302,
-0.2172741443,
-0.2400305569,
0.2002080381,
0.2956997752,
-0.1551194191,
0.1767856032,
0.1703991741,
-0.1477067173,
0.1539737582,
0.2446302474,
0.1054775119,
-0.1966190934,
-0.0911581889,
0.0645605326,
0.3895748258,
0.0536356345,
0.2719880044,
0.2185652852,
-0.0839994177,
0.1159342751,
0.0179362893,
-0.117638655,
0.0065876516,
0.2527402937,
0.0523972735,
0.0870605335,
0.2333317697,
-0.400757432,
0.169036299,
-0.4145244062,
0.1989922225,
0.215540424,
0.1596940756,
-0.2973794043,
-0.3184917569,
-0.3417876363,
-0.4226313829,
-0.4237926602,
-0.0046039205,
-0.1088420004,
0.1892410815,
-0.3053779304,
0.0938823447,
0.1626904011,
0.4764083326,
0.1099182367,
-0.1097915769,
0.3985272348,
0.1149215624,
-0.42328462,
-0.3036079705,
0.0739738941,
0.0862477869,
0.000540352,
-0.3487340212,
-0.0938107669,
-0.2605397403,
-0.0402698964,
-0.0411939472,
0.0168380477,
0.192274794,
0.3205170929,
0.2199814767,
-0.1974907219,
0.1253981888,
-0.1087221354,
0.0102563836,
0.0217468292,
0.0642497987,
0.1324175894,
-0.0082419636,
-0.325288713,
0.5187215209,
0.2988117039,
0.0430266783,
0.2415018529,
0.1495647877,
0.0738492981,
-0.1125649363,
-0.1149781197,
0.2159844041,
-0.1812379509,
-0.1233820915,
0.3385453224,
0.0637296438,
-0.3440634906,
-0.3852456212,
0.3334485888,
-0.2241059393,
-0.2168641537,
0.1037667915,
-0.0125347916,
-0.005407216,
-0.0672693625,
-0.0053001866,
0.0592479259,
0.1513285637,
-0.0157174282,
0.1620752513,
-0.1981829554,
-0.2261510938,
-0.0853510424,
-0.5560271144,
-0.5261831284,
0.36015293,
0.161260277,
0.4045405388,
-0.0279572457,
-0.3122996986,
0.1104666144,
-0.3153473735,
0.605042398,
-0.1040815786,
-0.2310167253,
0.2957619727,
0.197766006,
-0.1213180423,
-0.1223641038,
-0.2776656151,
0.0166128315,
0.2755771279,
-0.2339738309,
-0.0187751874,
-0.077326864,
0.0408605933,
-0.0962732136,
-0.1876425147,
-0.1230348349,
-0.3188302815,
-0.2852318585,
-0.1298853457,
0.1400089115,
-0.0876076072,
0.117167443,
-0.4547156096,
0.0090695173,
0.08787328,
-0.0814701468,
0.157692492,
0.1193171442,
0.1675173938,
-0.1490400583,
0.2297840416,
-0.1533108503,
0.5115940571,
-0.0425261855,
-0.0099610109,
-0.2837651372,
0.1625424773,
0.4291085899,
-0.1789734513,
0.2091450095,
0.3356903791,
0.1679199934,
0.0008673854,
-0.4147986472,
0.4918945134,
-0.221025601,
-0.0365476273,
0.3737955093,
0.3164681792,
0.1306275427,
0.0721180066,
0.2689923942,
0.0503378287,
-0.1190357283,
0.2975536287,
-0.3439261317,
0.02280166,
0.0979524627,
0.1122826189,
0.9095654488,
0.1273318529,
0.050346259,
0.1770866513,
-0.4576581717,
-0.2464919835,
-0.2452309579,
0.2150415778,
-0.3452489376,
-0.0076946635,
0.127899617,
-0.0161248296,
-0.0364169478,
-0.1383351684,
-0.3275019526,
0.3317159712,
0.0144619942,
-0.2145618498,
-0.2669149637,
-0.0233466923,
-0.06674207,
-0.1558229625,
-0.0046711769,
0.1918946505,
0.2317622602,
-0.0981312022,
-0.2949544787,
0.0883865356,
0.3090931475,
-0.3657178581,
-0.2679745555,
-0.0044263378,
-0.0495306291,
0.1375207454,
-0.1322578788,
-0.1263164282,
-0.1111646593,
0.408523798,
0.0641730577,
0.0352632292,
-0.2122754753,
0.0762812942,
0.2285334915,
0.0259710476,
-0.0888744295,
0.1009902209,
0.0062168222,
-0.1928397417,
-0.2835327983,
0.2746957541,
-0.0933469981,
0.0528202802,
-0.1957865059,
0.3317499459,
0.1135590971,
0.1840255111,
-0.0895461664,
0.3004463315,
-0.2343098968,
-0.1687009335,
0.2205447853,
-0.0026311092,
-0.5343676209,
0.6597442627,
-0.3583517671,
-0.0428012013,
-0.0323081762,
0.0488829501,
0.0207637288,
0.1505812854,
0.1778137982,
0.2599489093,
-0.2313393056,
-0.2610791326,
-0.1300227195,
-0.3829302192,
0.0228497386,
-0.0313402675,
0.5056536198,
-0.265322715,
0.174901098,
-0.2343424261,
-0.0262946878,
-0.0053458679,
-0.1759109497,
-0.1204579026,
-0.1555925608,
0.0213114619,
-0.0503843725,
0.232901603,
-0.1126276106,
0.1665222645,
0.0070866346,
0.1055923849,
-0.4100172222,
0.0122729875,
-0.2944074571,
0.0815692395,
-0.039819736,
-0.4213505983,
0.043163009,
0.2566625476,
0.2082245946,
0.3661237061,
-0.3060917258,
-0.2721682489,
-0.0066808835,
0.0311001539,
-0.166924879,
0.0260314867,
0.0875767097,
0.0500219613,
-0.0431526005,
-0.0394674689,
0.0717339814,
-0.0295923688,
-0.1960068643,
0.1399929225,
-0.071232304,
0.2636038959,
0.3090507984,
0.400954932,
-0.1266826093,
0.4257573485,
-0.0223600417,
0.0120972879,
0.0141733103,
-0.0842870772,
-0.0428486019,
0.0461578816,
-0.0682960302,
-0.1955295056,
0.0145970453,
0.1875316799,
-0.2391768694,
-0.145656839,
0.5542573929,
0.4825501442,
-0.0486810282,
0.1391606033,
0.4199679792,
0.309274137,
-0.2318923622,
0.0846435577,
-0.1809265912,
-0.1913692057,
0.0931862965,
0.159042418,
0.0616301596,
-0.378490895,
0.2029734552,
0.1472109854,
-0.0433649719,
-0.2426799536,
-0.5065711737,
0.1888125241,
0.167750895,
0.0570425466,
0.0523796827,
-0.1078908294,
0.1624526829,
0.4125848413,
-0.1772694886,
0.2198755592,
-0.3080129325,
0.1113029197,
-0.0615299717,
-0.2300928533,
-0.1026433706,
0.1007718891,
-0.201425463,
0.2718038559,
-0.1607922316,
0.4502235949,
-0.5096834898,
-0.3224599063,
-0.2438452989,
0.4145306647,
-0.200102061,
-0.0969573855,
0.0895557776,
0.0270816684,
0.0742647871,
0.0635611713,
0.2658012509,
0.1540313065,
0.4127889276,
0.3011641502,
0.0663846657,
-0.1835929751,
-0.2612594366,
-0.0124266781,
0.0451875776,
-0.1576484144,
0.1958625168,
0.5646457672,
0.0671806633,
-0.1934888959,
0.027794769,
0.4950585365,
0.4522046447,
-0.7212636471,
0.0556062199,
0.07716351,
0.0833077729,
-0.181729421,
0.1873534173,
0.0858507305,
0.1851808578,
0.2049118876,
0.1445726603,
-0.2454438061,
-0.0605238341,
0.1923827827,
0.150583595,
0.2461464405,
0.1484669447,
0.0249574222,
-0.1038145944,
-0.135448277,
-0.0955178738,
-0.6611911654,
-0.0493905284,
0.0582041144,
-0.2890040874,
0.088587068,
-0.1587869525,
0.1201857924,
-0.1778045297,
0.4030877352,
0.0889578834,
0.4124261439,
-0.1165221781,
-0.1426829845,
-0.5166683197,
0.0903141201,
0.0872478485,
-0.1255685687,
-0.3189955354,
-0.1061313972,
0.0490011349,
0.1152092814,
0.05792569,
0.0430917181,
0.2217222452,
0.649161458,
-0.6396930218,
0.3707630634,
0.1219190061,
-0.1066778973,
0.2320801318,
-0.3724495769,
0.1926013231,
-0.0187839419,
0.1491536647,
-0.1150117069,
0.1888085902,
-0.1274184436,
0.5095858574,
0.2310603708,
0.1437455565,
0.2511385083,
-0.150715977,
-0.1358627677,
0.1007360518,
0.3031362891,
0.1630817503,
-0.5176219344,
0.2995132506,
0.0890443921,
-0.2253535688,
-0.2122370899,
-0.0719150603,
0.2695270181,
0.0286269411,
0.1764404327,
-0.1058529243,
-0.024252288,
0.1053626984,
0.0221932307,
-0.0265656486,
0.4688783884,
0.0108471084,
0.2176400423,
-0.3726310134,
-0.1097332686,
0.249093473,
0.142898351,
-0.1955765486,
-0.3436611891,
0.3892374635,
-0.38142398,
0.0986454487,
-0.1977396011,
-0.0275968239,
-0.1511519551,
0.0076970607,
-0.5447809696,
0.2385074645,
-0.2283881158,
-0.5854175687,
-0.0143672973,
-0.1419527829,
0.2517258525,
0.0379586741,
0.132112205,
-0.2587894201
] |
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.0126366913,
-0.3874345124,
-0.0540230237,
0.2022800893,
0.1353476644,
0.0187554359,
0.0908478871,
0.0778494477,
0.0393031761,
0.2612574399,
0.011653766,
-0.0717006326,
-0.300147593,
-0.0775014684,
-0.1249796748,
-0.2181284875,
0.1993366331,
-0.1225005686,
0.2698472738,
0.3569087386,
-0.4530970156,
0.5776939988,
-0.3369621038,
0.2170221359,
-0.3738825619,
-0.0177011061,
-0.2501498759,
0.6321836114,
0.301695019,
-0.3766627312,
-0.0409928374,
-0.3141252995,
0.1125468984,
0.1129682809,
-0.0001192791,
-0.0899684876,
-0.0525467061,
-0.0609055758,
0.3652588725,
0.2903069854,
0.2686350644,
0.0707846358,
-0.1472685933,
0.0154839754,
0.2896394134,
0.2888125181,
-0.0069157518,
-0.115135707,
0.5103619695,
0.3108980656,
0.096427843,
0.2305843234,
0.2101575434,
0.0053213239,
-0.2566915751,
-0.3280825019,
-0.0426162183,
0.3265689611,
0.425809294,
-0.3297051191,
0.128529489,
0.2043697238,
-0.2732007504,
-0.0346863382,
-0.4689785838,
0.0665713698,
0.438737154,
-0.5151547194,
0.1164580062,
-0.0351320095,
-0.2860219479,
-0.1260886788,
0.1404027045,
-0.0298682824,
0.1666517705,
-0.7686853409,
0.0550993979,
0.158018887,
-0.3607049584,
0.0910517499,
-0.1080024689,
0.076794982,
-0.0104950964,
-0.18621324,
0.2111450285,
-0.0008122995,
-0.019245062,
0.1576218605,
0.2552624047,
0.2031302601,
-0.3922750354,
0.3448497057,
-0.0837165117,
0.0803353488,
-0.5561099648,
0.0755066574,
0.0039696954,
0.3153909445,
-0.2706429958,
-0.2075471729,
-0.071427457,
0.0356827825,
0.2324629128,
0.122275345,
0.0230682194,
-0.0048258044,
0.0517110042,
-0.6401052475,
0.1803152263,
-0.2331950366,
-0.0265005454,
-0.0146055808,
-0.070613116,
-0.6683467627,
0.1515745372,
0.4514999092,
0.2356953025,
-0.1143408865,
-0.3852737248,
0.0835880786,
-0.0305763856,
0.2230825126,
0.3593811989,
0.3545977175,
0.3032069206,
0.7514012456,
0.0042985752,
0.2004507184,
-0.4899941385,
0.116670087,
0.0720067769,
0.1323170364,
-0.2918376625,
0.3349352777,
0.2156768441,
-0.0239380412,
0.1369725466,
0.1643110216,
0.3601238728,
-0.3316321969,
-0.1411789358,
-0.13079153,
-0.166462779,
0.2033267468,
0.0766122937,
0.1889310628,
0.0378995948,
0.0553935468,
0.0216187537,
0.0089607481,
-0.2776425481,
-0.4142330885,
-0.1573719829,
0.0547509231,
0.3095567822,
0.4490515888,
0.3361923695,
-0.0404788852,
0.3349384665,
-0.2400991321,
-0.0812297687,
-0.327994734,
-0.380538404,
-0.301134795,
0.0936459154,
0.3241680861,
-0.0066859275,
0.2289615124,
0.3274359405,
-0.0684341639,
0.1032433733,
0.2970837057,
0.2495613098,
-0.1760048121,
-0.1911649853,
-0.0364771783,
-0.244679749,
-0.365083307,
0.1048912629,
0.0467591695,
-0.0803724527,
0.0639580414,
0.3371141851,
-0.1018786803,
-0.052425988,
-0.3592817783,
0.4140967131,
-0.2576805651,
-0.0918973759,
0.17716977,
-0.2155272067,
0.0601211488,
-0.2036854029,
0.0210246742,
-0.1643570065,
-0.098976098,
-0.0998636484,
-0.0078449473,
0.2219619155,
0.0970813781,
0.0769434124,
0.2889822721,
0.1434746981,
0.025914358,
0.0873317719,
-0.2388992906,
-0.2275290936,
0.1919909269,
-0.1981400549,
0.0689497963,
0.2805078626,
0.1310914606,
0.127356708,
0.2248361707,
-0.246789977,
-0.3968263566,
0.0477638394,
-0.014368128,
0.1868640035,
-0.1970891654,
0.0084715188,
0.5062978864,
0.0165165961,
-0.0949579701,
-0.2039610744,
-0.1696046293,
-0.3601671457,
-0.3072248697,
-0.1549812108,
0.3238281906,
0.1839457154,
0.0657488406,
0.1309625357,
0.3159966469,
0.0797457397,
-0.0409714952,
-0.1492735893,
0.0090150982,
0.0980661437,
-0.1574136764,
0.1081507728,
-0.0386532992,
0.1315319091,
-0.2199791968,
0.4834601879,
0.1523747444,
-0.0931470543,
0.4009237885,
-0.1808023453,
0.1260692179,
0.1215765253,
0.1076727435,
0.2794559002,
0.1402686387,
0.4186380506,
0.0721666887,
0.0782997161,
-0.4159423709,
-0.2257854044,
0.0954073966,
0.1177244857,
0.0903878734,
-0.0744835734,
0.046026282,
-0.1072587669,
0.1049702913,
-0.09480194,
-0.3587928116,
0.7520034313,
0.027898211,
-0.0459601842,
0.3025045693,
-0.3354749978,
-0.1355490386,
0.2962965071,
0.0279774982,
0.1241541356,
0.216737777,
-0.1388791353,
-0.0001352765,
-0.0964126363,
-0.1687214524,
-0.0449956357,
-0.0071346331,
-0.4066474736,
-0.0243215859,
-0.0248642229,
0.5111107826,
-0.3909211159,
-0.4135294557,
-0.1359331906,
-0.2026252151,
-0.008605117,
0.4150255024,
-0.0883476734,
0.0252901763,
0.0009802654,
-0.0015360862,
0.0286412984,
0.3189965785,
0.0660698637,
0.0243099816,
-0.1014129966,
-0.0852871686,
0.3036764562,
-0.1688357741,
0.1168228909,
0.2283475846,
0.0036365762,
0.0986429378,
0.021067068,
0.0300960355,
-0.0424239859,
0.3005995154,
0.1182652861,
0.1036485657,
0.1613980383,
-0.4868730307,
0.2238769382,
-0.3242425621,
0.1113815829,
0.1531891078,
0.0935933441,
-0.3151870072,
-0.2749290466,
-0.020556774,
-0.4393353164,
-0.2900477052,
0.1368467361,
-0.2023090422,
0.164398998,
-0.1601559818,
-0.0626421422,
0.1890593767,
0.1449104548,
0.0051390491,
-0.1338877976,
0.1356226057,
-0.0922915339,
-0.2108958811,
-0.040602047,
0.0750091374,
0.1215818375,
0.0531442612,
-0.2295715064,
-0.0980328768,
-0.4399693906,
-0.0351900421,
-0.025090076,
-0.0186105594,
0.1120938733,
0.4357011318,
0.2380367517,
-0.1481883228,
0.0748036727,
-0.1058745012,
0.1633777767,
0.0396494605,
0.119326517,
0.1462286711,
0.0730905235,
-0.1429157108,
0.4496083558,
0.6301866174,
0.1540600657,
0.3096245527,
0.0698947832,
0.0727033317,
0.0026801713,
-0.2179092169,
0.1445672512,
-0.3779732883,
-0.0718569458,
0.1821051538,
0.1512405723,
-0.0980776325,
-0.3083451092,
0.2642955184,
-0.3675009012,
-0.2195173949,
0.1537086219,
0.1010349989,
0.2180580497,
-0.3457667828,
-0.0379084647,
0.2031929493,
0.053093683,
-0.0701200888,
0.2888402343,
-0.2450555116,
-0.2483468354,
-0.144152835,
-0.4103238583,
-0.4801646173,
0.5223150253,
0.1933967471,
0.5758065581,
-0.0302146673,
-0.2190847099,
-0.1033484042,
-0.2501761317,
0.9639764428,
-0.0910481066,
-0.2613957226,
0.188038975,
0.2521201968,
0.0696621463,
-0.1496626884,
-0.2106930465,
0.2268145084,
0.1498948932,
-0.0120719746,
0.1820661724,
-0.101850912,
0.0908235908,
-0.0064842589,
-0.1629065275,
-0.065154098,
-0.3694272041,
-0.2309228778,
-0.0625088885,
0.1814618409,
-0.0226506926,
0.0920239091,
-0.4059783816,
0.1061684042,
0.2339821905,
-0.1739503443,
0.2042466998,
-0.0110728592,
0.1049397141,
0.019305639,
0.1522296518,
-0.1700285226,
0.3072304726,
-0.3097628057,
0.0476652272,
-0.2791034877,
-0.013028536,
0.2011615634,
0.0132356994,
0.3436423838,
0.569031179,
0.098513782,
-0.0479400642,
-0.2560607791,
0.4918911159,
-0.2900902629,
-0.115546912,
0.3786420226,
0.1669628918,
0.1230020076,
0.3054515123,
0.2370192856,
0.0681945533,
-0.185180366,
0.4037951827,
-0.0732695311,
-0.1730312109,
-0.0346210897,
0.1439494938,
1.0082626343,
0.0659667626,
0.1427405924,
0.0859490484,
-0.3662241399,
-0.0127626397,
0.0989538506,
0.2966795266,
-0.1821047068,
-0.1507107317,
0.0772669688,
-0.0164127424,
0.1528376043,
-0.08372657,
-0.3051029444,
0.5029763579,
0.237308681,
-0.2455089241,
-0.1825757027,
-0.2811402678,
-0.1020459384,
-0.3525353074,
-0.0153135508,
0.0149939246,
0.0167477429,
-0.0491513573,
-0.2428884059,
0.2179272175,
0.4579988718,
-0.3275728226,
-0.5520538688,
0.0970431268,
-0.3538521528,
0.1254425347,
-0.1017710268,
0.1560157984,
-0.0145724118,
0.3209180236,
0.2605886459,
-0.2092824429,
-0.1403920054,
0.0680803508,
0.421048671,
-0.027565483,
-0.0525230579,
-0.0186159834,
-0.0460115075,
-0.0714712441,
-0.2083972245,
0.2369464338,
-0.2361132354,
0.0567138493,
-0.4017179608,
0.2921645641,
0.1818338037,
0.1981835365,
-0.1307993084,
0.230230242,
-0.0991461203,
-0.1583116651,
0.0641836897,
0.0171104502,
-0.4364326298,
0.3884579241,
-0.6675553918,
-0.1721234322,
0.0229788125,
0.0933620706,
-0.1514454782,
-0.2183886468,
0.2554527223,
0.2942560613,
-0.0413813405,
-0.1620464921,
-0.0678591281,
-0.5027358532,
-0.2437489629,
-0.0238287318,
0.499699235,
-0.181375429,
0.2660710216,
-0.1820057929,
0.1536480486,
0.0684591532,
0.0482916683,
-0.4530946016,
-0.1692280024,
0.0413602069,
-0.1064418629,
0.1275699437,
-0.1153336838,
0.0133795887,
0.0907687247,
0.0294968914,
-0.2364460528,
-0.0503629856,
-0.1819695532,
0.068375349,
0.1364400983,
-0.2566855848,
0.0624016337,
0.2216247767,
0.0530172512,
0.3549651504,
-0.3132789433,
-0.0996380895,
0.0440465137,
0.0995218679,
-0.1542282701,
-0.0604918003,
0.1313077807,
0.1940497458,
0.067760095,
-0.0367913805,
0.1209665537,
0.0861431509,
-0.2097534239,
0.0010945164,
-0.1569162607,
0.323227793,
0.19265908,
0.2262536883,
-0.1520659775,
0.4106265903,
0.1805458665,
0.0026900363,
-0.0224737432,
-0.0589792654,
0.0302357115,
0.0238047093,
-0.0792035758,
-0.200401336,
-0.1716604829,
-0.0444901809,
-0.41749084,
-0.2303560078,
0.2337728292,
0.4121535718,
-0.1131724417,
0.2689483166,
0.3589968085,
0.1417594552,
-0.1508746594,
0.13509354,
-0.1022717506,
-0.2268356085,
-0.1545639634,
0.309867233,
0.087752074,
-0.4268262088,
0.4017518461,
0.1055691242,
0.2037147582,
-0.3465670049,
-0.3353354931,
0.1248309612,
0.2816449404,
0.1435782164,
0.0206876192,
-0.0954238027,
0.1340281516,
0.4247791469,
-0.2297486812,
0.1962562501,
-0.4218922555,
0.2481359392,
0.0672305226,
-0.2235989422,
-0.2706949413,
0.1842913628,
-0.3110416532,
0.4455821514,
-0.2803736329,
0.5137366056,
-0.7224971652,
-0.3778698444,
-0.2943164706,
0.3682084084,
-0.1851388663,
-0.1865613014,
0.1771261245,
0.0598126352,
-0.038794212,
0.1001304537,
0.2823713124,
-0.0009704251,
0.5339975357,
0.1389391273,
-0.115098387,
-0.1258367002,
-0.5283541679,
0.2112711519,
0.0618759952,
-0.1872818917,
0.3285216093,
0.693187356,
-0.0739366263,
-0.1532808393,
0.0762571022,
0.5918377638,
0.3502092361,
-0.6384211779,
0.0812911838,
0.1467325091,
0.1946180761,
0.0268228054,
0.1508609951,
0.1952529252,
0.2628800273,
-0.0085119903,
-0.0017495044,
-0.0843070894,
-0.1517458558,
0.2341472208,
0.2114392221,
0.211970076,
0.303663224,
-0.1803753227,
-0.1048837155,
0.0076728761,
0.1784788668,
-0.6597291231,
0.0943300426,
0.0467060655,
-0.4122411609,
0.0229120106,
0.1529779732,
0.0503074862,
0.0459028557,
0.4579337239,
-0.0373264551,
0.2521835566,
-0.226512745,
-0.2471061349,
-0.349470228,
0.001282651,
0.2340709418,
0.0321685895,
-0.2694214582,
-0.1398397088,
0.0067180209,
0.1722483933,
-0.0091758743,
0.0029842928,
0.3301612139,
0.5812104344,
-0.5686640739,
0.3625000417,
0.4213236272,
-0.0233119912,
0.3072620034,
-0.4077705741,
0.21793437,
0.0659814626,
-0.0184943713,
-0.1186797544,
0.261279285,
-0.2128613442,
0.3040603697,
0.1448915154,
0.1129050255,
0.1531754136,
-0.0402706526,
-0.1507807672,
-0.0687903836,
0.2566035688,
0.2663230002,
-0.365837574,
0.1859388351,
0.1033473089,
-0.3721546829,
-0.0625278056,
-0.0690454543,
0.028853558,
0.1528546214,
0.1354580373,
-0.2201827914,
0.1053894833,
0.077987045,
0.1102072448,
0.1067336947,
0.4693092108,
0.0313389637,
0.172449261,
-0.2965083718,
-0.101351954,
0.2214186341,
-0.202267766,
-0.2384633273,
-0.1893534958,
0.5010423064,
-0.4549628794,
0.0483118445,
-0.2451152653,
0.0065872371,
-0.0483566597,
0.1249530986,
-0.6412273645,
0.2450705767,
-0.3631626666,
-0.7568080425,
0.1177072972,
-0.1873654127,
0.1763351709,
-0.1220646799,
0.3575661778,
-0.1268753409
] |
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.3012989163,
-0.2888680696,
-0.0838767141,
0.1985544711,
0.0243258998,
-0.0525320843,
0.0652540997,
-0.0146975648,
0.0848997459,
0.2829812169,
0.170378983,
0.2638421953,
-0.3119594157,
-0.10786549,
-0.3288579285,
-0.1583809108,
0.006989412,
-0.0020372421,
0.1382290721,
0.2635193765,
-0.4521370232,
0.4412013888,
-0.2616143227,
0.2926623523,
-0.393266052,
-0.211552605,
-0.1386809349,
0.4438158274,
0.0661771819,
-0.478692472,
0.0005654544,
-0.4143381715,
0.174417451,
0.1870649308,
-0.0001159315,
-0.0684332699,
0.0426299535,
0.0408091396,
0.262876749,
0.208753258,
0.2227458656,
-0.0434500203,
0.0806638822,
-0.0629370287,
0.3600695729,
0.1284515262,
-0.0207273979,
-0.1225397885,
0.4598215818,
0.4392024875,
0.1687345207,
0.2901833951,
0.1781137437,
0.0979065448,
-0.157356292,
-0.3354211152,
-0.1023716927,
0.2453907728,
0.382247746,
-0.2205762714,
0.0241912138,
0.2357567549,
-0.1961410046,
0.1414802819,
-0.337469399,
-0.0767132044,
0.4196668863,
-0.4534089565,
0.1091996282,
-0.0303224362,
0.0826916844,
-0.1416195631,
0.20353508,
0.0713248998,
0.0753629655,
-0.8428001404,
0.0727440268,
0.2241641432,
-0.3516497612,
0.023475023,
0.0954191387,
-0.0722953826,
-0.121366851,
-0.0855890214,
0.0745181739,
0.0074090473,
0.0226394981,
0.2146470547,
0.2442720532,
0.2144133151,
-0.0997224301,
0.3688185215,
-0.1694298685,
0.0775766373,
-0.4725189507,
0.1255838871,
-0.1103656963,
0.1066870838,
-0.2916964591,
-0.0352250934,
0.1370092779,
0.1670448035,
0.1998493373,
0.2073925287,
0.2034582794,
-0.0674653351,
0.0927730799,
-0.5522867441,
0.113997519,
-0.426164031,
-0.1662343442,
-0.0775044411,
-0.0583071783,
-0.67348212,
0.3865687549,
0.3823789656,
0.2839420736,
-0.1032036692,
-0.3083178401,
0.198881954,
-0.0128985122,
0.1473649293,
0.2252819091,
0.2256570309,
0.3258138299,
0.7511109114,
0.0178364217,
0.1931523234,
-0.5615141392,
0.1034065187,
0.1231036484,
0.0790546685,
-0.3985130787,
0.1447613835,
0.182488814,
0.0066031739,
0.1923018843,
-0.0137633458,
0.2352597713,
-0.2788481116,
0.006942533,
-0.22928527,
-0.0583145209,
0.2340584695,
0.125764966,
0.2475099862,
0.049503129,
0.0967295766,
0.0479141474,
0.326302737,
-0.4066798091,
-0.4346699417,
-0.2120714933,
0.085583277,
0.3318750858,
0.3249843121,
0.1921974719,
-0.1262155622,
0.2943269908,
-0.2313538343,
0.0385075212,
-0.4561125338,
-0.2042523623,
-0.3638229072,
-0.0964917392,
0.2022483349,
-0.1977698356,
0.270809114,
0.1846264154,
-0.0608924143,
0.1517928094,
0.4130901396,
0.1046212316,
-0.2259475738,
-0.1728731543,
0.073423937,
0.021048449,
-0.1163441837,
-0.180310145,
0.0592479147,
-0.1359141171,
-0.1248627305,
0.1888769418,
0.0812424496,
-0.0329831466,
-0.1442914754,
0.2504727542,
-0.1793410033,
-0.0492130667,
0.1364927441,
-0.2602326274,
0.1588730067,
-0.2608007193,
0.0828099698,
0.0153114349,
-0.2696190178,
0.0008565411,
-0.3050088584,
0.3133665919,
0.0978258178,
-0.0198538546,
0.3342059255,
0.2149974406,
-0.0492857993,
0.1161436588,
-0.2854297161,
-0.0591483191,
0.0361086577,
-0.170270592,
-0.0094009517,
0.1469450444,
0.1502005458,
0.1828627735,
0.3816409111,
-0.2632249594,
-0.278336376,
0.061717689,
-0.0859488919,
0.0882491469,
-0.2227862924,
-0.0987015143,
0.4120550156,
0.0145450607,
-0.0910358578,
-0.0943503976,
-0.0471295491,
-0.3684728742,
-0.3964334428,
-0.1642618328,
0.2239805311,
0.0859251022,
0.1844967157,
-0.0255649369,
0.2649828792,
0.0745296776,
-0.1738922596,
-0.1268715113,
0.0038353056,
0.1243375391,
-0.4475927353,
0.1477015018,
0.1227591336,
0.07949581,
-0.1409548521,
0.4905478358,
0.170570761,
-0.0011537322,
0.2986792624,
-0.1256646514,
0.2619839907,
0.1233759671,
0.1530235261,
0.1067121923,
0.1765252501,
0.5011743307,
-0.011043258,
0.0172143355,
-0.3096614778,
-0.2230340838,
0.0612097681,
0.3033375144,
0.1709256619,
0.0834090412,
0.0470925346,
-0.3043575287,
0.2167907357,
-0.0248338506,
-0.2864581048,
0.6092159152,
0.0939817429,
-0.0480903275,
0.2317302078,
-0.3734012246,
-0.1023524553,
0.2643331587,
0.0958670825,
0.2297339439,
0.1650209725,
-0.1404714137,
-0.0639906153,
-0.1730156541,
-0.2523162961,
-0.1724817008,
0.0948155895,
-0.3047890663,
0.114561215,
-0.1076308116,
0.4711633325,
-0.4364018142,
-0.5715093017,
-0.0212583337,
-0.2287172377,
0.0943656862,
0.308236897,
-0.0678604543,
0.0081791282,
-0.1076449305,
-0.0429235697,
0.1949375719,
0.2007213831,
0.2071796656,
-0.1450235248,
-0.1535374373,
-0.052668903,
0.3419603407,
-0.1540525258,
0.2248847336,
0.2756935954,
0.1928738654,
-0.0250499602,
0.1833359897,
-0.0884313136,
0.1462684721,
0.0871227756,
0.0022804663,
0.1489717662,
0.0244929194,
-0.4572961926,
0.1740275472,
-0.4738196731,
0.0965530947,
0.186462611,
0.1273258626,
-0.2730246484,
-0.1548936516,
-0.1657608449,
-0.4591580331,
-0.3735134006,
0.1161696091,
-0.1351015568,
0.3259916008,
-0.1724884361,
0.1658076048,
0.1888147891,
0.2840819359,
-0.115997538,
-0.0464287773,
0.2811428308,
0.0274785776,
-0.2755475342,
-0.2080999315,
0.1801069081,
0.1271851361,
0.0716016591,
-0.0643044114,
-0.2595277429,
-0.2846135497,
-0.0832403451,
0.1008598059,
-0.1380191445,
0.2387011349,
0.4770817161,
0.2313631326,
-0.1933704019,
0.1174180508,
-0.0919037238,
0.0458457507,
-0.0704020038,
0.1200017631,
0.20528166,
0.2294617742,
-0.2155587971,
0.6325457096,
0.4582148194,
0.0307926945,
0.3680425584,
0.1240980625,
0.065602079,
0.0024619177,
-0.1606244147,
0.0912008733,
-0.4899179041,
-0.0612871125,
0.1534353197,
0.1272706985,
-0.3257684708,
-0.1979985982,
0.3006587029,
-0.3699686527,
-0.1769929826,
0.2430410981,
-0.1569903493,
0.0442194603,
-0.2551780045,
-0.0287154987,
0.0024019033,
0.1384352148,
0.0275949575,
0.1333395839,
-0.2377858758,
-0.2151899636,
-0.0915524438,
-0.4752039313,
-0.4621410072,
0.4245851636,
0.0595679954,
0.5636225939,
0.126408115,
-0.2305754721,
-0.0531193949,
-0.3705172241,
0.6991211176,
-0.0358038545,
-0.27617535,
0.2132504433,
0.2402895093,
-0.2465524673,
-0.1589065194,
-0.2612962127,
0.446899116,
0.0208235532,
-0.0612845011,
0.2832250595,
-0.0513988659,
-0.0335782804,
-0.0475336313,
-0.2228848338,
-0.0492008813,
-0.3412733078,
-0.3061123788,
-0.0809520707,
0.2572229505,
0.0125591978,
0.0378713608,
-0.3442617953,
0.0975359827,
-0.0685058385,
-0.1439994574,
0.0511863083,
-0.1444987655,
0.2184311152,
-0.248588115,
0.0626943931,
-0.2141588032,
0.5296191573,
0.0932079181,
0.2448405027,
-0.1684688628,
0.0171687976,
0.3049793839,
-0.1624380201,
0.3107880652,
0.3642146587,
0.1594861448,
0.0342334509,
-0.3147217333,
0.4139232337,
-0.0765743703,
-0.1969521642,
0.2822985351,
0.2887896001,
0.0902151316,
0.3220945001,
0.4193083048,
0.161242649,
-0.093873091,
0.632638216,
-0.1404516846,
-0.0156394187,
0.1491314918,
0.1572808623,
0.9113286734,
0.0426007137,
0.1545386463,
0.0579160862,
-0.5945177674,
-0.0950988904,
-0.0342398398,
0.2679254413,
-0.2766169608,
-0.1228443384,
0.0686837658,
-0.1280003786,
0.1048498154,
0.0111403707,
-0.254360795,
0.3314644992,
0.1219211668,
-0.3869193196,
-0.0959419534,
-0.205141753,
-0.0687396824,
-0.2071731538,
0.0456019863,
0.0580284372,
0.0726835132,
-0.0864242315,
-0.2233449966,
0.1329812855,
0.3250890374,
-0.3729429245,
-0.4827309251,
0.0232275724,
-0.4337725937,
0.174592346,
0.0225667357,
-0.0860002339,
0.0689152777,
0.346352756,
0.0982913375,
-0.2405622005,
-0.1729927808,
0.0099516027,
0.6274530888,
-0.1828507036,
-0.0542269833,
-0.0406609587,
0.0788382292,
-0.1367993653,
-0.2635419369,
0.4334999621,
-0.1802439541,
-0.2150204778,
-0.0945548564,
0.3497395515,
0.127855286,
0.2987190187,
-0.1252500415,
0.1256760061,
-0.1528375149,
-0.1978932321,
0.1009081081,
0.118236199,
-0.4216091931,
0.5439645648,
-0.3533352613,
-0.204412967,
0.0590513013,
0.0002260655,
-0.0594796054,
-0.0357394591,
0.3162463009,
0.2656041384,
-0.1535556018,
-0.255120486,
-0.0701273754,
-0.1949213147,
-0.2966147363,
-0.0774723738,
0.3323432505,
-0.1465401202,
0.32337749,
-0.2738436162,
0.1983209401,
0.1877674907,
-0.1436724514,
-0.3700412512,
-0.2890411913,
0.0241236463,
-0.1404716522,
0.1258219928,
-0.1296695471,
-0.2056682259,
0.1324052364,
0.128767103,
-0.2837157845,
0.1001468301,
-0.1440066099,
0.0519297123,
0.0202091113,
-0.2493667901,
-0.0326357782,
0.2872550488,
0.0353033021,
0.2821322083,
-0.3100241721,
-0.1693077385,
0.1292806566,
0.0683030114,
-0.1067488045,
-0.115165174,
0.1055471301,
0.0432192162,
0.0628170893,
0.0455763862,
0.0033491775,
0.0137550384,
-0.3649231493,
0.0464335047,
0.0591756217,
0.1697792709,
0.0444287285,
0.3481211066,
-0.2007613629,
0.5282025933,
0.0779308751,
0.0993911549,
0.0937103778,
-0.0285978466,
0.0663553923,
-0.016921334,
-0.1050376371,
-0.2167125642,
-0.2309649736,
-0.2578288615,
-0.342197001,
-0.2438059747,
0.3617065549,
0.3917315602,
-0.1403298378,
0.223755464,
0.3442855775,
0.1931289732,
-0.1998021901,
0.0341466852,
-0.0357932448,
-0.1509557962,
-0.0594532192,
0.300809145,
0.1946817487,
-0.4732252955,
0.3133519292,
0.0727043301,
-0.0099882036,
-0.3309750557,
-0.3665044606,
0.1488690674,
0.1779059917,
0.032046333,
0.0983876586,
-0.0502748601,
0.1627899706,
0.4160142243,
-0.1346456409,
0.2728451192,
0.0225480199,
0.0502526462,
-0.1894930303,
-0.2202544063,
-0.3502289653,
-0.0107184127,
-0.2131237686,
0.3182367384,
-0.0938132852,
0.5318555832,
-0.4747649431,
-0.3978478909,
-0.1704754233,
0.2244878411,
-0.2333686352,
-0.1233959198,
-0.093336761,
0.0160540044,
0.0445541739,
0.0683889985,
0.2233019024,
0.1202732772,
0.5587499142,
0.2086465359,
-0.0705679059,
-0.1067140698,
-0.2639999986,
0.2165121436,
-0.0373363458,
-0.1435953677,
0.2602058351,
0.4493555129,
-0.0269822143,
-0.2066362351,
0.0995428413,
0.5852428675,
0.3542614877,
-0.7494066954,
0.0325880051,
0.1679324061,
0.1283966899,
-0.0097524561,
0.0610599667,
0.2016129196,
0.0264627337,
0.1323002577,
0.0444097072,
-0.1327479929,
0.1357133687,
0.134871915,
0.2581338286,
0.2341422737,
-0.019654952,
-0.0610665008,
-0.240293473,
0.0529750101,
-0.0517327935,
-0.5167412758,
-0.0734207928,
0.3125279248,
-0.4496437609,
0.0072219782,
0.073325485,
0.0702342242,
-0.128508091,
0.4187526703,
0.2382332534,
0.5921288133,
-0.1890992522,
-0.1917971373,
-0.3901131451,
0.1620035768,
-0.0242510997,
-0.0806819648,
-0.1342091411,
-0.1172410324,
0.0287151225,
0.1857183576,
0.3021777272,
0.2262213826,
0.4093024433,
0.7774035335,
-0.7687120438,
0.3445775211,
0.5484131575,
0.0166107435,
0.2883965671,
-0.4576827884,
0.1055296585,
0.0982183814,
0.0701035857,
-0.1629561782,
0.1360920072,
-0.1112961173,
0.4854997098,
0.4085150957,
0.0094630178,
0.2190802395,
0.0452285558,
-0.09948349,
-0.0069262031,
0.2882495224,
0.1570021659,
-0.3998828828,
0.3899233341,
0.1509764791,
-0.3530232012,
-0.0133960005,
-0.0381182767,
-0.0698921159,
0.0284148306,
0.1696023345,
-0.0696124062,
0.1263610125,
0.0230908096,
-0.0503875911,
0.0390208215,
0.357744962,
0.0982690975,
0.1786691546,
-0.2670300603,
0.0021819249,
0.1803814769,
-0.0868261158,
-0.2147702277,
-0.21072644,
0.4449526072,
-0.2914391458,
0.1601667851,
-0.1885025054,
-0.1079748422,
-0.0824635476,
-0.037000753,
-0.7148554325,
0.0046231709,
-0.3284480274,
-0.5302842259,
0.0987180918,
0.2186241746,
0.0992476866,
-0.0171714537,
0.0548746288,
-0.2308284193
] |
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.17128025,
-0.6625725627,
-0.0156674013,
0.3150129914,
-0.0103680585,
-0.0258934349,
0.133739084,
-0.1321052164,
0.088127479,
0.2671471834,
0.2327952087,
0.0681707337,
-0.1253809929,
-0.0673756748,
-0.1413181871,
-0.0939046219,
0.0912754983,
-0.0172671154,
0.2123176157,
0.2924870849,
-0.4489224553,
0.4319567978,
-0.2962611914,
0.1619101763,
-0.42137146,
-0.030851122,
-0.243783623,
0.5600070357,
0.3595533967,
-0.4632329643,
-0.03081581,
-0.3616606891,
0.2421137542,
0.1394915283,
-0.0001222365,
-0.1207990795,
0.0044937897,
0.0334822088,
0.4292649627,
0.2617114782,
0.2565517128,
0.1222391054,
0.0499283299,
-0.0862632841,
0.2329551429,
0.3592971265,
0.1269486696,
-0.0144653842,
0.435467273,
0.2034129649,
0.0813900828,
0.3555282652,
-0.0857626051,
0.0056748055,
-0.3969978392,
-0.5251870155,
0.0046938881,
0.2967618406,
0.5274702311,
-0.3028687835,
0.0461270697,
0.1945871115,
-0.2724508941,
0.1417525113,
-0.2901104391,
-0.0503191277,
0.4512546957,
-0.4748882949,
0.1035403162,
-0.0433434322,
-0.0536870472,
-0.135244295,
0.3585698307,
0.0834637433,
0.0728167593,
-0.799048543,
0.0103995539,
0.1902163923,
-0.2553432584,
0.0968995839,
0.028348539,
0.0178155378,
0.0180600882,
-0.2019284815,
0.2141687274,
-0.0824940652,
0.0619109944,
0.2800356746,
0.1466715634,
0.5134992599,
-0.1706373394,
0.2777179182,
-0.0876685381,
0.0011060163,
-0.3932270706,
0.0370174795,
0.1774584353,
0.277543664,
-0.2528108358,
-0.0979535729,
-0.0176563896,
0.1252791882,
0.1939219832,
0.1167160571,
0.2955617309,
-0.205935061,
0.0939260572,
-0.7193552256,
0.2374640405,
-0.3886641562,
-0.3085562885,
-0.1262359619,
0.0120178312,
-0.4726980031,
0.5541785955,
0.4347580671,
0.3090136647,
0.0277839601,
-0.328140527,
0.2083693743,
-0.0347873271,
0.0783003718,
0.1989100426,
0.2392335534,
0.2733895779,
0.7265441418,
-0.0037455931,
0.0854376853,
-0.6531365514,
0.1251110435,
0.0120789781,
0.0753922015,
-0.2927779555,
0.2110490799,
0.186427325,
-0.0895857438,
0.2464871854,
0.2471141517,
0.2002478391,
-0.4891737401,
-0.0408616289,
-0.151859194,
-0.1792335063,
0.2111970931,
0.3016977012,
0.1857577413,
0.0291877985,
0.1141001582,
-0.0160735697,
0.281136483,
-0.4462317824,
-0.4116553366,
-0.103391923,
0.0195805728,
0.4211143851,
0.4560449123,
0.254627645,
-0.1894742996,
0.2538906336,
-0.2814014256,
-0.0544108711,
-0.4615584016,
-0.3425111175,
-0.3588590622,
-0.2177266479,
0.389500767,
0.0493824705,
0.2522599995,
0.3038571179,
-0.1281826794,
0.0314978175,
0.2952200174,
0.11017517,
-0.0572132543,
-0.2617500126,
-0.0374993309,
-0.3009824157,
-0.2548568547,
-0.0252920687,
0.1373520941,
-0.1725200117,
0.0516207665,
0.2739412189,
0.19592309,
-0.0675698519,
-0.289293021,
0.4228894711,
-0.3635501266,
-0.19169195,
0.1980203092,
-0.1281659007,
0.2224154174,
-0.1405160129,
-0.0704595223,
0.0285912305,
-0.0140975416,
0.0600578897,
-0.0747781247,
0.3166643381,
0.0692888647,
-0.1556331366,
0.2202438563,
0.1203230917,
0.0767458379,
0.1401014626,
-0.2823578119,
-0.152594611,
0.0815180838,
-0.146404773,
-0.0648123473,
0.4011062682,
0.0777115673,
0.1414186805,
0.2770754695,
-0.1633777916,
-0.2156057954,
-0.0240558442,
0.0627137572,
-0.1123355776,
-0.2868496478,
-0.0649840087,
0.5646052361,
-0.0967243537,
-0.1501530409,
-0.1792102009,
-0.084185265,
-0.3506611884,
-0.2286667228,
-0.0900258422,
0.3097998798,
0.3073637486,
0.0568664707,
0.1322546452,
0.2861676812,
0.1692416668,
-0.1924748123,
-0.1999480128,
-0.0042845085,
0.1124610901,
-0.2249929905,
0.1471298039,
-0.0961138904,
0.1865075976,
-0.3468336761,
0.5800674558,
0.0672758445,
0.0132128689,
0.1750356853,
-0.0966915637,
0.0544386059,
0.0918224454,
-0.0746487156,
0.1807293743,
0.1711857766,
0.3868526816,
0.2444772124,
-0.0928143486,
-0.2572661042,
-0.4158335626,
0.0337528773,
0.2161753625,
0.1949466318,
0.0153191723,
-0.020291334,
-0.1501761675,
0.1898728162,
-0.1834150702,
-0.4330268502,
0.7109690905,
0.0500395857,
-0.22007595,
0.3194895685,
-0.3909806311,
-0.1599503607,
0.1458367854,
0.0703844279,
0.2738215029,
0.1810694784,
-0.1337863952,
-0.0707347691,
-0.1608109921,
-0.1408389509,
-0.110271506,
0.0310027283,
-0.315879643,
0.154656738,
-0.0556712076,
0.5288814902,
-0.571741879,
-0.2965101898,
0.1039447933,
-0.1431490034,
-0.0262529105,
0.4722510576,
0.0434095263,
-0.1602646858,
0.1058791876,
-0.0084897429,
0.0533192605,
0.4678294659,
0.2351023853,
-0.1078583822,
-0.0809373781,
-0.1481266022,
0.2720518112,
-0.2653981745,
0.265696317,
0.2764614522,
0.0217559189,
0.0874206722,
0.1147223711,
-0.0754920319,
0.0789232403,
0.223022908,
0.0363003314,
0.1391548216,
0.2482609153,
-0.3195885122,
0.0739612654,
-0.3315236568,
0.1612982452,
0.1816620678,
0.0405379757,
-0.471093148,
-0.1950660944,
-0.1901163459,
-0.2966615558,
-0.0453176536,
0.032439854,
-0.162237078,
0.2462161332,
-0.2940747738,
0.0460798256,
0.0580276772,
0.3004620373,
-0.1297497451,
-0.1775104403,
0.1552206576,
-0.2279863507,
-0.1865616292,
-0.177090317,
0.2402937114,
0.0929943472,
0.0529625118,
-0.2480439246,
-0.3508510292,
-0.4391512275,
-0.031079242,
0.0163286105,
-0.0975263864,
0.275075227,
0.3872765005,
0.1705062985,
-0.1009671614,
0.0555063784,
-0.2020673454,
-0.0402286947,
-0.0234501287,
0.0423745364,
0.2111392915,
0.2805842161,
-0.1063539833,
0.3829607964,
0.4770341218,
0.0414052755,
0.2799214125,
0.0125134122,
0.0776946396,
-0.0477389358,
-0.2113064528,
0.0037533827,
-0.4706317186,
-0.2145150751,
0.1437375396,
0.0838951916,
-0.2886597812,
-0.2216685265,
0.1442610621,
-0.3500611186,
-0.0793584287,
0.0541352555,
0.0339800753,
0.0921733081,
-0.1049751192,
-0.0596942529,
0.1124160439,
0.1811379343,
-0.1717080027,
0.2231990397,
-0.0951153338,
-0.2706492245,
-0.1406401992,
-0.5947109461,
-0.3499529362,
0.3417299688,
0.1260495782,
0.5890112519,
0.0895909816,
-0.0641689375,
0.0816213563,
-0.3378754556,
0.8207417727,
-0.0655407906,
-0.129604876,
0.1744303852,
0.1124784648,
-0.0312462561,
-0.0949132591,
-0.1349959522,
0.3841555119,
0.1649088115,
-0.0557232425,
0.3446401656,
-0.0021254569,
0.1797371209,
-0.0345722474,
-0.2909968495,
-0.1793407947,
-0.3707650304,
-0.3636801839,
-0.1076544225,
0.209505111,
-0.1274853349,
-0.0236974657,
-0.4341151118,
0.0418976098,
0.1732733995,
-0.0798300132,
0.1404718757,
-0.0837759823,
0.0148605071,
-0.1035885215,
0.1190161034,
-0.3424034715,
0.3403808773,
-0.1229401901,
0.0551147722,
-0.1224787906,
0.2570059896,
0.2643357515,
-0.044844117,
0.3813430369,
0.3954420984,
0.1493107677,
-0.0161916241,
-0.2516630292,
0.4158468843,
-0.2576264143,
-0.294696331,
0.3450619578,
0.2340320647,
0.0213781781,
0.2116396427,
0.2932528257,
0.1255918294,
-0.0813348889,
0.5608871579,
-0.417308867,
0.0470747352,
-0.0599349961,
0.0335554518,
0.9265298843,
0.0358540639,
0.0867685378,
0.0082211569,
-0.5504248142,
-0.2822488248,
-0.0451648422,
0.328679204,
-0.3502973616,
-0.1361201108,
0.0089701116,
-0.1274156272,
0.1531510353,
-0.1018993258,
-0.1959346384,
0.4001800418,
0.1483276337,
-0.3079220057,
-0.1486427337,
-0.0966607481,
-0.1646386683,
-0.071188435,
0.2568958998,
-0.0241655428,
0.0893414021,
0.0283763483,
-0.3298294246,
0.2616401911,
0.5286321044,
-0.4312004149,
-0.5639264584,
-0.0004575104,
-0.2029906511,
0.156037271,
-0.0868648142,
0.1947953701,
-0.0262313001,
0.2657790482,
0.1419683993,
-0.1294584274,
-0.058921352,
0.0733950585,
0.4570514858,
-0.1165484041,
-0.0910663605,
-0.065459244,
0.0978859812,
-0.0743597895,
-0.3104974031,
0.2991294265,
-0.0740033537,
-0.1595826149,
-0.3790308833,
0.505136013,
0.1566806734,
0.132850647,
-0.2049627751,
0.3506373763,
-0.139028579,
-0.2063415349,
0.044459112,
0.0948348939,
-0.3500113785,
0.5624645948,
-0.6116794348,
-0.2383799553,
0.0060327593,
0.0321155563,
0.1679861993,
-0.1139456779,
0.1524107009,
0.3349116445,
-0.0759725645,
-0.1907878667,
-0.1088608876,
-0.3942106962,
-0.120007582,
0.0389370359,
0.437899977,
0.0002706051,
0.2621944845,
-0.2192182988,
-0.077787593,
0.1711065322,
-0.0149275288,
-0.4175884724,
-0.1179728061,
-0.1142515987,
-0.0714263618,
0.1889414191,
0.1612702906,
0.2009697855,
0.1111762375,
0.164079845,
-0.2195378393,
0.0823163986,
-0.0474082306,
0.1464528441,
0.162113741,
-0.1990697086,
-0.1465609074,
0.2585708201,
0.0245453119,
0.4314079583,
-0.28681615,
-0.0769870132,
0.0570710897,
0.1320338696,
-0.064474225,
-0.0365766659,
-0.0353918448,
0.0095986873,
0.2040283531,
0.0582756922,
0.2116215676,
0.144263193,
-0.2677046955,
0.1681723595,
0.1561327875,
0.2494698465,
0.1621614099,
0.2457759231,
-0.3181505203,
0.5134388804,
0.1124681309,
-0.0278225131,
-0.0005714372,
0.0400098339,
-0.1952532828,
-0.0510663278,
0.0564311109,
-0.0984675437,
-0.1498730928,
-0.0840788782,
-0.2677916884,
-0.225555554,
0.2083291709,
0.2334269285,
-0.2001185715,
0.242475301,
0.1890737712,
0.1392058432,
-0.193406567,
0.0525162332,
-0.0452374443,
-0.1418329626,
-0.1784318388,
0.3279673159,
0.1838319302,
-0.4275369942,
0.2650913894,
0.0149864554,
0.2709153295,
-0.4879368842,
-0.3058972359,
-0.0797514021,
0.2495057881,
0.009532908,
0.0767499283,
-0.0364944786,
0.1026058719,
0.4438357353,
0.0543628708,
0.0917529464,
-0.1511086226,
0.0878973529,
-0.0865114927,
-0.2448276132,
-0.221073404,
0.1313740015,
-0.3052618802,
0.3262873292,
-0.1548380256,
0.2347453237,
-0.4640169442,
-0.1389038414,
-0.3260338306,
0.3793183267,
-0.3193276823,
-0.1442808807,
0.0801300406,
0.0533327162,
0.2540436983,
0.1909761131,
0.3202545941,
0.0993746221,
0.4818065464,
0.1911097467,
-0.2494704425,
-0.0012372397,
-0.2800085545,
0.144880265,
-0.0572533682,
-0.2016796768,
0.1751733124,
0.4624048471,
0.090282172,
-0.214395389,
0.0289506782,
0.5371638536,
0.3760202229,
-0.6026486158,
0.0254004076,
0.1568649709,
0.150150761,
0.0114982054,
0.0823566318,
0.1165111065,
0.4138920009,
-0.0726361871,
-0.0104027074,
-0.0806680843,
0.0776941851,
0.364861697,
0.0987105966,
0.0797964633,
0.2144237161,
-0.0490420535,
-0.2185254246,
0.0099376813,
0.3268941641,
-0.5410404801,
-0.0742500648,
0.2720129788,
-0.4377062321,
-0.015520446,
-0.0675476119,
0.0392594784,
-0.1036551446,
0.2238064855,
0.1228398979,
0.2415562868,
-0.311424762,
-0.1531736553,
-0.3678254783,
0.1148425713,
0.0406417847,
0.0105965957,
-0.1038682312,
0.0180822834,
-0.2068794668,
0.0161514785,
0.1446882188,
0.0786630362,
0.3608979583,
0.6846512556,
-0.4715276062,
0.2879045606,
0.2935222387,
-0.0875191242,
0.1742290854,
-0.2717556953,
0.2150815576,
-0.1240827143,
0.0359040946,
-0.2507129312,
0.1639462709,
-0.0206910148,
0.4521365166,
0.3375710249,
0.0082046185,
0.2294488847,
-0.075741373,
-0.0140950195,
0.0696135685,
0.2363661975,
0.2477175891,
-0.4594481289,
0.2727324069,
-0.0016648471,
-0.3605322242,
0.047104571,
-0.0209839251,
-0.0597322956,
0.0105360374,
0.0909350365,
-0.0181482695,
0.0759609044,
-0.0991719663,
0.0992536843,
0.029601492,
0.5115152001,
0.1061001867,
0.2029325664,
-0.1598651111,
-0.0262174681,
0.1000171751,
-0.0006496869,
-0.2621960044,
-0.3264176548,
0.546715498,
-0.622810185,
0.1241492704,
-0.0523099527,
-0.0780271813,
0.0303109139,
0.053356614,
-0.7121002674,
0.298853606,
-0.3098046482,
-0.5994613171,
0.2013066411,
-0.103397429,
0.1641587764,
-0.1184367687,
0.223293677,
-0.1611695886
] |
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.1139016002,
0.2815686166,
-0.0789350718,
0.1177364588,
-0.0259675905,
0.090566434,
0.4060141444,
0.1146638617,
-0.0934795588,
-0.0789992064,
-0.1739808023,
0.1220882162,
-0.0590270162,
-0.2090670764,
-0.0211602971,
0.0670155734,
0.1375489533,
0.1199800447,
-0.0209170245,
-0.0775218308,
-0.0809949934,
-0.0633885041,
-0.0703820139,
-0.0224660151,
-0.1490498334,
-0.2274238765,
0.2636189461,
0.2165786773,
0.0505271852,
-0.2489474416,
0.3933258951,
0.560393095,
0.0788721219,
0.0368108451,
-0.000116711,
-0.1258151382,
0.0032834765,
-0.1000812277,
0.0103594363,
0.1562262475,
0.0038823858,
-0.1965800226,
0.0558967218,
-0.1056087762,
-0.0717568025,
-0.009751169,
0.0705219284,
-0.6625341773,
0.5320053101,
0.0911226124,
0.1612341404,
-0.0026606098,
-0.1905546486,
0.2374723256,
0.3361726701,
0.0495368615,
-0.2999813557,
0.1237211525,
0.2532835305,
-0.1594289541,
-0.0995532721,
0.1485673785,
-0.2521521151,
0.1400247514,
0.2718124688,
-0.0997621492,
-0.4176002145,
-0.4772852957,
0.0809206814,
0.2960630655,
0.747620821,
-0.2350280285,
-0.6028379798,
-0.3080023527,
0.0544239655,
0.0413432717,
0.4234345853,
0.3541356325,
0.0877573639,
0.2651182711,
-0.2606978118,
-0.043804422,
-0.2725633383,
0.0707761645,
0.3593450189,
-0.0616412684,
-0.0856515318,
0.149989754,
0.100201562,
-0.1112537831,
0.1271585375,
0.1506171525,
-0.3372894824,
0.4744042456,
-0.315332979,
0.1050165743,
-0.2302900404,
0.2877421379,
0.1954166293,
0.4209026098,
0.2329914272,
0.2070783526,
-0.0053033493,
0.1705389023,
0.1138962358,
0.2038519681,
0.3360155523,
0.3591211736,
0.53249228,
-0.2701565027,
-0.0247043967,
-0.0427588448,
0.0312551409,
-0.3672645986,
0.1035214886,
0.1941137165,
0.0301707834,
-0.2266285568,
0.2046465427,
0.0779341683,
-0.1002265438,
-0.1675161272,
0.0820593387,
0.2720395327,
0.0798463523,
0.0128090084,
0.0658995435,
0.1747446805,
0.009433575,
-0.2159385085,
0.0131436288,
-0.3183417916,
-0.3558566868,
0.4290778637,
0.4010542929,
-0.2912049294,
0.0979930311,
0.1806638986,
0.1176943481,
-0.1855771244,
0.4365364611,
-0.1271780431,
0.465657264,
0.4169451594,
0.1208032891,
0.3317727447,
0.0265739337,
0.0928414315,
-0.1925935745,
0.2829544544,
-0.2726331055,
-0.216696322,
0.1752182245,
-0.0269471034,
-0.1224511936,
0.2985429466,
-0.4154492617,
0.038429331,
0.5024693608,
-0.1370157003,
0.5040847659,
0.2393234074,
-0.087036401,
-0.4691597819,
-0.1199883968,
0.380728364,
-0.2105475664,
-0.0402140766,
-0.1333301961,
-0.0546317063,
-0.081917204,
0.4235099256,
-0.1099722981,
0.0455708317,
-0.1004370153,
0.2615796328,
0.5675196052,
-0.1785278916,
-0.5578049421,
0.0242956728,
0.2172668278,
-0.1352309883,
0.1179333106,
0.0860397071,
0.1229751557,
-0.1273266077,
-0.2840529978,
0.3851828277,
0.2767723203,
0.2349369973,
0.1342643946,
-0.0928196609,
0.0077566393,
-0.0463659838,
-0.0722500533,
0.0897891298,
0.3758877218,
-0.3563417792,
0.2464520633,
-0.2243757695,
0.2806274593,
0.4626379609,
0.149891302,
-0.0122647583,
-0.0047416463,
-0.0646033958,
-0.5048744082,
0.2847753763,
-0.1048582196,
-0.3897146881,
-0.0608884171,
-0.4528691769,
0.102899909,
-0.1895222366,
-0.263623178,
-0.1018765867,
0.0171875581,
-0.1585028768,
0.0539395362,
-0.3411315382,
0.077729933,
0.3728658557,
0.1256473958,
0.09265019,
-0.3170213699,
0.1152751818,
0.0476628467,
-0.1084341258,
-0.2096910924,
0.0605446845,
0.172661379,
-0.0020267814,
-0.2862121165,
0.3028355837,
0.1127105504,
0.1189716607,
-0.0751326308,
0.3147711158,
-0.0050379094,
-0.0476806872,
0.1310383379,
-0.2222430706,
-0.0586359054,
-0.0701221228,
-0.2442380339,
0.4377452135,
-0.1195919216,
0.0303491261,
-0.2249270529,
0.1831502765,
0.1323622763,
0.0465715975,
-0.2125598788,
-0.1815371513,
-0.034594316,
0.1969382167,
0.3852104545,
0.138646543,
0.013944976,
0.0297816191,
0.4034450054,
0.2228403389,
0.1470015943,
-0.0202916302,
-0.2516343594,
0.0367876813,
0.3316290677,
0.3446900845,
0.237387225,
0.0239811651,
0.2902219892,
-0.2486604303,
0.3055889606,
-0.1137608886,
0.0203509033,
-0.0909833983,
0.1459847391,
-0.1794548035,
-0.1096835658,
-0.0330921635,
-0.1341073811,
0.2339393646,
0.015325889,
0.0891915262,
-0.3397917151,
-0.1028057262,
-0.2307843268,
-0.1499903351,
0.2217226624,
-0.1383291632,
-0.50882864,
-0.0281065702,
-0.2192544639,
0.2135233581,
-0.0701657012,
0.136703372,
-0.3560688198,
0.0911140963,
-0.0506914258,
-0.2864062488,
-0.272837162,
0.1188555732,
0.0805143714,
-0.0211580247,
0.2400399297,
-0.517811656,
0.211221382,
0.1159661263,
0.2316280007,
-0.3298775256,
0.0041566417,
-0.1636853516,
0.0082727056,
0.0884401053,
-0.2788841724,
0.1476417929,
-0.1584486365,
-0.0314579234,
-0.1058922783,
-0.315256685,
-0.2138489932,
0.003410995,
-0.0378889553,
0.1163536459,
-0.2580216527,
-0.1951404214,
-0.1801885217,
-0.1853001714,
0.6918119192,
0.1287396252,
0.2276196927,
0.1614703536,
-0.1822322309,
-0.2958163917,
-0.2885789871,
0.1839357764,
-0.3551091552,
-0.461578995,
0.3765578866,
-0.4756704569,
-0.3748238683,
0.1581176519,
0.0823032111,
0.1495981514,
0.42214185,
-0.0201899633,
-0.0683130473,
-0.2880266309,
0.2520216703,
-0.2304072082,
0.1999938041,
0.0781802535,
0.098956801,
0.1633310616,
-0.0432466306,
-0.1822208464,
0.1520091891,
-0.0296812635,
-0.2216470093,
0.1875084937,
0.0989708081,
0.082966432,
0.8199107647,
0.4076654613,
0.2582356334,
0.3022812009,
0.3216722608,
0.689260304,
0.0174010117,
-0.0783380568,
0.1767947078,
-0.0483372509,
0.0242169797,
0.0791793391,
0.13210769,
-0.1352538019,
0.093708232,
0.0507768989,
-0.2705008984,
-0.4704995155,
-0.1525461376,
-0.2357138246,
0.1107390001,
0.0367627814,
0.0643659607,
-0.2348634601,
-0.2928420901,
0.0268227123,
0.3534121811,
0.1891912222,
0.2868797481,
-0.2567985654,
0.04825335,
-0.2922352552,
0.315898627,
-0.0602937788,
0.4820707738,
-0.0832086429,
0.1553482711,
0.2287255377,
0.3111588657,
0.3185234666,
-0.3472437561,
0.1643468738,
-0.1408590376,
0.2853547633,
0.1082839668,
-0.2087888569,
0.401072979,
0.3412344456,
-0.0338110998,
0.0638152808,
0.0110958815,
-0.2834741473,
-0.4190146625,
-0.1038154364,
-0.0551010557,
-0.1089517474,
0.0691469684,
0.1411435157,
-0.2338646054,
-0.0733923316,
0.2750279009,
-0.3893098235,
-0.0773520842,
-0.1078075096,
-0.1599098593,
0.0854543522,
-0.0013958737,
0.0076043308,
0.4725325704,
-0.0421461314,
0.0340127498,
0.4962306917,
-0.0198785774,
0.1219229102,
0.4359245598,
-0.2414421588,
0.2070127726,
-0.2778047919,
-0.198735252,
0.3310713172,
0.0602586865,
-0.4291297793,
0.1276285797,
0.0201113522,
-0.2026461065,
-0.18884179,
-0.0283502284,
-0.0712696016,
0.0543353371,
-0.1240549162,
-0.6317941546,
0.3504826128,
0.5621969104,
-0.3145397305,
0.4633364677,
-0.0760672987,
-0.3373920321,
0.1291897744,
0.1939053535,
0.7914403677,
-0.2412725836,
0.3664584756,
-0.3410949707,
-0.1755135357,
0.2110013962,
-0.2823667228,
0.0596074872,
-0.5691584945,
-0.1315511316,
-0.1090269014,
-0.1261413097,
0.0464411452,
0.3606372476,
0.1235215664,
0.1501412243,
-0.0942051709,
-0.1214985847,
-0.2578487098,
-0.1336311549,
-0.199087739,
-0.4416543841,
0.1040556133,
0.0868753716,
-0.2521271706,
0.033376459,
0.0072979219,
-0.0797547251,
-0.1753618419,
0.1946575493,
-0.35107252,
0.0094866008,
-0.7321102023,
0.0555466451,
-0.0802333429,
-0.0746985599,
0.283565104,
0.2419910431,
0.2655453086,
0.2817910314,
-0.0689844936,
-0.030594347,
0.3015556037,
0.077815488,
-0.2495241761,
0.090942204,
0.3329408467,
0.1567896754,
0.1441713125,
-0.2441051751,
-0.2336912155,
-0.30971542,
-0.1336857677,
0.1679016948,
0.0677965805,
-0.2180728018,
0.0714008659,
-0.1252465993,
-0.0280520171,
0.0517566055,
0.0343224145,
0.5124655366,
-0.0132184587,
0.4656541646,
-0.2672815323,
-0.2642106712,
0.0839682817,
0.4322426915,
-0.0469505116,
-0.1442738473,
0.3026227951,
-0.1680920124,
-0.2374900579,
-0.1343246251,
0.1846393496,
0.2124635875,
-0.401337564,
0.0148741379,
0.1795179993,
-0.1259721071,
0.1792056859,
-0.3275533617,
0.0213115122,
0.1581573188,
0.0497782379,
-0.3807337284,
-0.5134575367,
-0.198132813,
-0.4549813271,
0.3089854121,
0.1454049349,
-0.5356984138,
0.1161700487,
0.0330561697,
-0.1889785826,
-0.189719677,
0.07237342,
0.0774189979,
0.2964610159,
0.0987273455,
0.0496410392,
-0.1879552305,
-0.1491694003,
0.0007806383,
-0.1911096275,
-0.1184911728,
-0.1599258333,
0.1777962744,
0.1436586082,
-0.4071889818,
0.0635764748,
-0.4877984822,
-0.0730010718,
-0.4753142893,
0.0746756792,
0.2586324215,
0.2049433589,
0.2999977469,
0.1583277136,
0.0145296631,
-0.2263754457,
0.1782141626,
-0.1482937634,
-0.2318178117,
-0.2076491863,
0.2373399138,
-0.3053376377,
-0.0793287903,
0.1403390467,
-0.085880667,
0.1546075344,
0.0271943472,
0.072403498,
-0.0131032281,
-0.1753618419,
0.0859600753,
0.3437354863,
0.1427194327,
-0.0076095685,
0.0061482638,
0.2816979587,
0.0391888022,
0.0377503112,
-0.1642239094,
0.1490290761,
-0.1591276377,
0.06123963,
0.3540748656,
0.2451785356,
-0.2089479566,
0.0863945633,
-0.0996055752,
-0.063221246,
-0.3870138228,
0.3799758255,
0.0562502518,
0.0337001532,
0.032803148,
0.4585810006,
0.2209554315,
0.1694631577,
0.3566690683,
0.1039139405,
0.201950103,
0.3703960776,
-0.3335013986,
0.1243402362,
-0.6093451977,
-0.0281005222,
0.0048257485,
0.141086638,
0.3332567811,
0.1562321186,
0.3620608449,
0.0606899895,
-0.3311572671,
0.0909836739,
-0.065827772,
-0.0824803263,
-0.1936386079,
0.0794835538,
0.1319947541,
0.0149348229,
-0.2887557149,
-0.2105190605,
-0.2986364663,
0.243852511,
0.2141697258,
0.1617500037,
0.0301156752,
0.0433984436,
0.24816522,
0.111349225,
-0.146582216,
-0.0988868028,
-0.403557688,
-0.133545056,
0.0792053714,
0.0598202124,
0.0888795927,
-0.0212528892,
0.1280926615,
0.2367848903,
0.3385289609,
0.0524068922,
-0.1756228805,
0.3021790981,
-0.086428985,
-0.3494770229,
0.0830561221,
-0.0535136163,
-0.0362732112,
-0.0512057617,
-0.2340818942,
0.0499142259,
0.0819535106,
0.0820504129,
-0.1632024497,
-0.5107896328,
0.0352268964,
-0.0256900601,
0.2329097092,
0.0253455117,
0.6404661536,
0.0133881308,
0.1071327776,
-0.5667566061,
0.0048586279,
0.4031059146,
0.3281868696,
0.4097245336,
-0.0184145719,
-0.0437029563,
0.1009415686,
-0.479534328,
0.0523473471,
0.2027023137,
0.3064165711,
-0.0447409116,
-0.1551605463,
0.1562255323,
-0.0614794604,
0.5907253027,
-0.1586552709,
0.5455060601,
0.3326399922,
-0.1861787736,
-0.2207083404,
0.1499758661,
-0.0290154032,
0.1411054283,
-0.4260402918,
0.1080254465,
0.1458362341,
-0.0343257599,
-0.2017917782,
-0.1392671615,
0.1758233905,
0.409265697,
0.5364011526,
0.2565687597,
-0.0738741457,
0.0687805787,
0.2827916443,
-0.4558798671,
0.097240828,
-0.22182253,
-0.1009796262,
-0.217002362,
0.1411425918,
-0.487066716,
-0.0799450949,
-0.42249614,
-0.0424935408,
-0.1411925256,
0.2920136154,
0.0026109889,
0.1995503455,
-0.1077639386,
0.0774130523,
0.2919269502,
0.2175248563,
-0.1232665107,
0.2709344029,
-0.5050198436,
-0.2647048831,
0.3797585666,
-0.3792260885,
-0.137908861,
0.1169538349,
0.4003454745,
0.2882565856,
-0.192632705,
-0.2629814744,
0.2095753103,
0.2626621127,
-0.3446146548,
-0.1446555108,
-0.0922443867,
-0.3116267025,
0.1402196884,
-0.1682657599,
0.5989024639,
0.0917780325,
-0.1789320558,
0.0650006682,
-0.2615373731
] |
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.0629384518,
0.0359809399,
-0.1101711392,
0.2581418157,
0.060199406,
0.1329316348,
0.3463630378,
0.0934353322,
-0.2962673604,
-0.0303029865,
-0.280318439,
-0.0526037216,
0.0845718384,
-0.3134355247,
-0.0208835844,
0.0789137408,
0.0993252993,
0.0465863124,
0.0940523073,
-0.0247986764,
-0.1166853979,
-0.0544997565,
-0.0450046435,
0.0221961681,
-0.3177736104,
-0.1033815518,
0.1908845007,
0.2698513269,
0.1508682221,
-0.2002582997,
0.249722302,
0.4694800973,
0.0598707721,
0.349413991,
-0.000114599,
-0.1124707907,
0.0119851194,
-0.1353013515,
0.1181622297,
0.1928920746,
-0.0182464272,
-0.221333921,
-0.1113028154,
-0.1529674828,
-0.1610849351,
0.0837542415,
0.1846526265,
-0.5527172089,
0.538557291,
0.1245616674,
0.1720823646,
0.0057432279,
-0.1951497495,
0.2009531409,
0.2407550663,
0.0036829896,
-0.3262528777,
0.0302175209,
0.2792116106,
-0.0454503074,
0.0020828731,
0.1100868136,
-0.3180333078,
0.0531960391,
0.2149992287,
-0.0566224009,
-0.3709004223,
-0.5180931687,
0.0947925076,
0.1781882793,
0.6756839752,
-0.111385785,
-0.5353288054,
-0.2812236547,
-0.0895613432,
0.0903988555,
0.4896013439,
0.3181558549,
0.0230458267,
0.3016811907,
-0.3137831986,
0.0671201646,
-0.3229380846,
-0.0445800088,
0.282204181,
-0.087129131,
-0.173117578,
0.0809839517,
-0.0632285774,
-0.1068556905,
0.0429086871,
0.0462722555,
-0.2184239924,
0.3654840291,
-0.1981411129,
0.1555487961,
-0.1800211817,
0.2678593099,
0.1111989766,
0.194408223,
0.2835123837,
0.1963798702,
0.0309711061,
0.1938635409,
0.0246974826,
0.1463088542,
0.2879431546,
0.3549540639,
0.5183433294,
-0.3496187329,
-0.1995032877,
-0.0610194057,
-0.0284244511,
-0.3210825026,
0.0414982066,
0.1582018286,
-0.0354942866,
-0.2328116894,
0.2620950341,
0.0351256728,
-0.0712619722,
-0.1606621891,
0.0406595953,
0.1971990168,
0.0480624214,
-0.0866668224,
0.0407199562,
0.1288428307,
-0.0269404985,
-0.2982854843,
-0.0283728428,
-0.4603440166,
-0.3541781902,
0.4744061232,
0.3691007495,
-0.2717587352,
0.0936808288,
0.0842930526,
0.1707917154,
-0.2367323786,
0.3412822485,
-0.1333998442,
0.5103940964,
0.408018291,
0.2221876681,
0.3522747755,
0.066959545,
0.0441812128,
-0.1179876104,
0.2986826301,
-0.3013737798,
-0.2637012005,
0.3343164325,
0.0149557525,
-0.0801657587,
0.3795681298,
-0.2512299716,
0.0185797736,
0.6816847324,
-0.170981586,
0.351564765,
0.2320222259,
-0.2374744117,
-0.531483531,
-0.1516961604,
0.3780291677,
-0.169387579,
0.0742439479,
0.0357898772,
-0.0674912781,
-0.1018870324,
0.4217511117,
0.0083621517,
0.0582156852,
-0.1198583394,
0.2898957133,
0.4725690484,
-0.1939911544,
-0.5428642631,
0.1267782748,
0.1299711764,
-0.0664723814,
0.3089478612,
0.0464781038,
-0.0427408479,
-0.2918027043,
-0.1804216802,
0.1915933639,
0.2120325416,
0.1901738644,
-0.0247668028,
0.0432119593,
-0.0482288823,
-0.0622348897,
-0.130025804,
0.1985940784,
0.3295987844,
-0.3414551914,
0.2142970711,
-0.1713816524,
0.2108121216,
0.4186024666,
0.0736298487,
0.0669035912,
0.0291218683,
-0.016331099,
-0.461042434,
0.2555760145,
-0.0218509883,
-0.4010989964,
0.0054408982,
-0.4914406836,
0.1290145963,
-0.3363107443,
-0.340608567,
-0.0647975281,
0.0632672906,
0.018358551,
0.0761866271,
-0.3664519489,
0.2044515312,
0.5146681666,
0.1338813901,
0.0282467008,
-0.2692754865,
0.0394068584,
-0.1339567602,
-0.0865268409,
-0.25057742,
0.046406094,
0.2739404738,
-0.0465337299,
-0.2661624551,
0.2970260978,
0.0823472366,
0.1673614383,
-0.1172361523,
0.3938715756,
-0.0788084865,
0.0712932348,
0.0673543289,
-0.2324418724,
-0.0185892284,
-0.1873427629,
-0.2011204958,
0.3971304297,
-0.0731997862,
-0.0277612396,
-0.2225705534,
0.0198584795,
0.1111687422,
0.0375962481,
-0.2298997641,
-0.1336542219,
0.0004843399,
0.2611472011,
0.3052658737,
0.1462409049,
0.0192767158,
0.0581719019,
0.3956891,
0.1736742556,
0.0108148679,
-0.1291414648,
-0.1472674757,
0.0067959279,
0.2061495781,
0.1864346564,
0.2714274824,
0.0716434717,
0.325453788,
-0.1534225941,
0.3050521016,
-0.2041755915,
0.0301484875,
0.0434618294,
0.0867622048,
-0.1232263148,
-0.1194543093,
-0.0113526992,
0.0347758979,
0.3009336591,
0.1134384349,
0.0465250909,
-0.461021781,
-0.0870069116,
-0.0742906108,
-0.2454039156,
0.1902792752,
0.0319869071,
-0.5370314121,
-0.0665605664,
-0.2675867975,
0.279245019,
-0.0333694257,
0.0761399418,
-0.2946601808,
0.1234034598,
-0.0175061449,
-0.1909068823,
-0.3536760807,
0.1222705692,
0.00234228,
0.0004378371,
0.2619784772,
-0.6254094243,
0.2411458343,
-0.0882333443,
0.2667473257,
-0.0968481004,
0.0500754416,
-0.1185679659,
-0.1074601114,
0.1476895064,
-0.4817630053,
0.1109738201,
-0.1808287799,
0.0987092555,
0.0289321616,
-0.2333102524,
-0.2578203678,
-0.01694699,
0.0593119077,
-0.0710197464,
-0.2332137972,
-0.2273842841,
-0.1899104416,
-0.1511598378,
0.5195330381,
0.1057152003,
0.2691639066,
0.2244834304,
-0.3414487541,
-0.2507659793,
-0.2969977558,
0.2749940455,
-0.4282778502,
-0.5996935368,
0.3007458448,
-0.5475544333,
-0.4464104772,
0.1092199832,
0.2504782081,
0.1346745789,
0.3845813572,
-0.0407418013,
-0.1219737828,
-0.1917244643,
0.3223775029,
-0.207208842,
0.176151067,
0.0659395903,
0.0832154006,
0.1708463281,
-0.0917486697,
-0.1216967106,
0.0654677451,
-0.057764478,
-0.1907238066,
0.2162449658,
0.1568780541,
0.1997011006,
0.7097827792,
0.5631090999,
0.3239501119,
0.2527133226,
0.2194505036,
0.6763728857,
0.0318476856,
-0.1741034985,
0.2044821829,
-0.0473354757,
-0.0900379568,
0.2030480951,
0.1668995917,
-0.0401805416,
-0.0374592319,
0.078153789,
-0.4097563624,
-0.4254502654,
-0.2407595515,
-0.0359789133,
0.2223148942,
0.1499995142,
0.0431461483,
-0.3063415885,
-0.3333993852,
-0.0445888713,
0.4886271656,
0.1517360508,
0.2371125817,
-0.3397942185,
0.0346189402,
-0.240367651,
0.330544889,
0.0667029619,
0.4926591814,
-0.1493831724,
0.1500357687,
0.2766018808,
0.3018669486,
0.4911463261,
-0.3916006088,
0.2484450638,
-0.0350955054,
0.2665249407,
0.2847285569,
-0.1126120761,
0.2927296758,
0.4071049392,
0.1864742041,
0.2105049342,
0.0934799761,
-0.2875418067,
-0.4842905104,
-0.0976103544,
-0.0973012298,
-0.1868253648,
0.0223418921,
0.1513693929,
-0.0245443098,
-0.1255591065,
0.2902851403,
-0.3091268539,
-0.1232777685,
0.0230308175,
-0.0487147421,
0.1658031344,
0.012725383,
0.059176039,
0.3365138471,
0.0249092132,
0.0856764168,
0.4946666658,
0.0983292237,
0.0767078102,
0.4088823199,
-0.2843141854,
0.2972415984,
-0.2115448862,
-0.3195391297,
0.3478292823,
0.1500854939,
-0.3469801843,
-0.1114985496,
-0.0303951968,
-0.1906156987,
-0.2368233204,
-0.0868623108,
0.0240006186,
0.0111487471,
-0.2902595997,
-0.61179775,
0.3529454172,
0.5719923973,
-0.3593301177,
0.2093859017,
-0.2003006786,
-0.3264170587,
0.082904458,
0.0077393856,
0.9369339347,
-0.2257841825,
0.4095998704,
-0.2878205478,
-0.0582196042,
0.1193381995,
-0.3725889325,
0.1221296117,
-0.4467966855,
-0.2739091516,
-0.0754207671,
-0.0783339813,
0.0734851584,
0.4323981106,
0.1231992245,
0.1168434322,
0.0431220382,
0.0055230176,
-0.2057712674,
-0.1688491255,
-0.0632034391,
-0.2718178034,
0.0907372683,
0.0923662782,
-0.1487279534,
0.1255570501,
0.0606454685,
-0.0431812555,
-0.2532048225,
0.2730288506,
-0.2186718881,
-0.0000617132,
-0.6532600522,
0.0261096172,
-0.1872086823,
-0.1161909103,
0.1783675253,
0.2510746717,
0.3610557318,
0.32282269,
-0.0859161392,
-0.0651184618,
0.3787957132,
0.1497553438,
-0.252630502,
0.0836881399,
0.3546638489,
0.1261636764,
0.1357941031,
-0.2878210545,
-0.2010755688,
-0.2188828886,
-0.3760910034,
0.0657369345,
0.1240203232,
-0.3765003979,
0.0364597924,
-0.1304440647,
0.0076484978,
0.0330538824,
0.0685631931,
0.394257009,
-0.0736782253,
0.5132030845,
-0.3288639784,
-0.3334282637,
0.10960567,
0.5619510412,
0.0451903902,
-0.1790140867,
0.2213386297,
-0.1282030046,
-0.3107994497,
-0.1208420694,
0.2919031382,
0.0342543609,
-0.2328111827,
-0.083122775,
0.262786746,
-0.0739955008,
0.1987594813,
-0.3054350019,
0.1178627163,
0.0482763387,
0.1480929106,
-0.3466265798,
-0.4610136151,
-0.3081025481,
-0.2817832232,
0.1972183883,
0.2503426075,
-0.3422871828,
0.0772417858,
0.0399604663,
-0.2249229252,
-0.1654009074,
0.079647474,
0.1247303486,
0.3286466002,
0.0610685349,
0.0714309961,
-0.1853153706,
-0.1063134074,
0.0644669831,
-0.1622417122,
-0.1581317186,
-0.0506929308,
0.155796811,
0.2641825974,
-0.4123851061,
-0.0329170749,
-0.5092152357,
-0.1598360986,
-0.4260947704,
0.0991473794,
0.3299740255,
0.2834776044,
0.3346813321,
0.1255449355,
0.0900704712,
-0.1073524207,
0.3029887676,
-0.2726711333,
-0.1294935495,
-0.2207018137,
0.1996593773,
-0.3489998877,
-0.0241828188,
0.0474316031,
-0.1172884703,
0.1430595964,
0.0396333858,
0.1378738284,
-0.1458799988,
-0.0179385617,
0.118258968,
0.2574124038,
0.099288255,
-0.0456390306,
0.0075573027,
0.3028247058,
0.0558412969,
0.1122481376,
-0.1060924605,
0.2148328722,
-0.2088993639,
0.0590271279,
0.4215774238,
0.210996151,
-0.0708251968,
0.1339360029,
-0.1005329192,
0.1809753925,
-0.3331482112,
0.3611848056,
0.0204346627,
0.1567513198,
0.1077304631,
0.3992625177,
0.2707893252,
-0.0386830606,
0.3947352171,
0.2352135926,
0.1676775068,
0.2850371599,
-0.2464902252,
0.1294012368,
-0.6257696152,
0.0216265153,
0.0970739722,
-0.0534842908,
0.384593755,
0.042987667,
0.2083028555,
-0.1342098415,
-0.2344426513,
0.0805567354,
-0.0950393006,
-0.1613714099,
-0.2004219741,
0.0921138749,
0.0454332083,
0.0561630428,
-0.323943764,
-0.202354148,
-0.182946071,
0.1300955862,
0.268037945,
0.1000094637,
0.1839527786,
-0.0826305002,
0.2100668699,
0.1451141834,
-0.1546542495,
0.0301198605,
-0.4989073575,
-0.0750638694,
0.1768112332,
0.0350891426,
0.1287938207,
-0.0380701572,
0.1088881791,
0.1409474611,
0.2628335655,
-0.0033161044,
-0.2178950608,
0.381354928,
-0.1783105731,
-0.408547312,
0.1022911519,
-0.0263673421,
-0.0207624678,
-0.1616539508,
-0.1424876004,
-0.0684795678,
0.0198701136,
0.0745522529,
-0.3266833723,
-0.5774407983,
0.1014909446,
-0.1191550791,
0.0692138523,
0.0674355328,
0.5840873122,
-0.0103561878,
0.2093998194,
-0.5183773041,
0.0370028205,
0.3841402829,
0.2993953228,
0.4569979906,
-0.22007294,
0.0179124177,
0.053393513,
-0.4461085796,
0.2365627289,
0.2184098661,
0.2441495061,
-0.1144663617,
-0.1923266649,
0.0910562128,
-0.0761395395,
0.4097000659,
-0.2829536796,
0.4167270064,
0.3628414869,
-0.1739062667,
-0.2969465852,
0.1210795715,
-0.002082726,
0.1012646705,
-0.3733642101,
0.1825970262,
0.2304414511,
0.0242249891,
-0.258158356,
0.0150231123,
0.1672136188,
0.4510232806,
0.461930126,
0.2830509841,
0.0085502192,
0.0807433128,
0.1979320049,
-0.370793432,
0.1516503692,
-0.1683864295,
-0.0193811245,
-0.191281721,
0.0408167019,
-0.5298498273,
-0.17727305,
-0.3872591853,
-0.0881594345,
-0.190045923,
0.3071479201,
0.1042416096,
0.0773615241,
-0.0927124768,
0.0476358347,
0.38534078,
0.2807734013,
-0.1578336358,
0.357617259,
-0.5059366226,
-0.293394655,
0.3969258666,
-0.3856602609,
-0.1734502316,
0.0997332782,
0.4679123759,
0.1050330326,
-0.1698754132,
-0.1375110745,
0.1144522876,
0.3514276147,
-0.3437356055,
-0.1090913489,
-0.0052555799,
-0.337508589,
0.0378182754,
-0.1925391555,
0.5049102306,
0.0380172618,
-0.1961001456,
0.1303912699,
-0.1235498041
] |
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.1486678123,
0.1404386014,
-0.0772056133,
0.0294159986,
0.1295792758,
0.0463584214,
0.3478871882,
0.0346239395,
-0.1299448311,
0.0200760439,
-0.1389167756,
-0.0676592663,
0.0185787156,
-0.2712928355,
-0.0381216109,
0.1840072423,
0.1872668266,
-0.0505721644,
0.0260027163,
-0.1504371911,
-0.174475342,
-0.2032019198,
-0.1215939,
-0.0883421823,
-0.284740299,
-0.1473377645,
0.1421105713,
0.2907127738,
-0.0268036649,
-0.2053436637,
0.380623281,
0.6655229926,
0.129005909,
0.1411433518,
-0.0001143174,
-0.1695264578,
0.0144894216,
-0.0989306644,
-0.0480890609,
0.165607959,
0.0056180358,
-0.1768366098,
-0.1670404077,
-0.1249091923,
-0.1164283752,
0.0679444522,
0.1516610384,
-0.6368477941,
0.4671244025,
0.2360776067,
0.1751861125,
-0.0875460953,
-0.1900081635,
0.0938933343,
0.2960256636,
0.034090884,
-0.1558020413,
0.139566794,
0.3170782924,
-0.2480274737,
-0.0745831877,
0.0521346666,
-0.2701607943,
0.0413467921,
0.1690550745,
-0.1223846078,
-0.4245990515,
-0.5232913494,
0.1400273442,
0.1401768476,
0.5876784325,
-0.1320251673,
-0.6810224652,
-0.179259181,
0.0988086909,
0.1577602476,
0.3485297561,
0.3710071743,
0.1510733515,
0.3128531873,
-0.4745201468,
0.0269011185,
-0.1794063151,
0.0649560615,
0.2594904304,
0.0227285922,
-0.0561282896,
0.122733295,
0.0393804163,
-0.1470487863,
0.226629585,
0.1350258291,
-0.2991212606,
0.4194127917,
-0.2455164194,
0.1774928719,
-0.2231110632,
0.4376935661,
0.1799856424,
0.418191433,
0.0872391611,
0.203054592,
0.0778264552,
0.1625785977,
-0.0534401387,
0.2625303864,
0.3795921206,
0.4361658394,
0.5410407782,
-0.1719223559,
-0.1775006354,
-0.0319096744,
0.0393199138,
-0.3863135576,
0.0216777995,
0.3015042841,
0.048869662,
-0.1432594806,
0.1021597236,
0.0534761548,
-0.1453021318,
-0.1489375532,
0.0250710174,
0.300973475,
0.0430662483,
-0.0739544183,
0.1384395659,
0.2581044436,
-0.0287788473,
-0.2274989635,
-0.0411528498,
-0.3239299655,
-0.2817665935,
0.4088189602,
0.3677935302,
-0.1878888905,
0.1011872217,
0.2275787145,
0.125728026,
-0.1951037049,
0.4349646866,
-0.0672742352,
0.4382703006,
0.4045000672,
0.1662747562,
0.2871087193,
0.1179042161,
-0.0030374452,
-0.0721821338,
0.2393578589,
-0.2409158945,
-0.2144760936,
0.3211543858,
0.0223248787,
-0.1168765873,
0.2934512496,
-0.2296117842,
-0.000731111,
0.4634186625,
-0.0361243673,
0.4591253698,
0.2070066631,
-0.2314867377,
-0.3873572946,
-0.0402345583,
0.4332181513,
0.0299065635,
-0.0863909721,
-0.1236814559,
0.0183940604,
-0.0481880866,
0.399348557,
-0.0471748672,
0.0548309013,
-0.1530557275,
0.1871629208,
0.4613818526,
-0.2587341666,
-0.6373531222,
0.0726480782,
0.146554023,
-0.0786796436,
0.2618921399,
0.0866174251,
0.0377137549,
-0.1949883997,
0.0043646488,
0.342358768,
0.2405197173,
0.2537202239,
0.066349715,
-0.0077346861,
-0.0602348968,
0.0200083405,
0.0013895328,
0.2903934121,
0.3742436469,
-0.3105027676,
0.2526361942,
-0.1824451387,
0.2496405542,
0.5188257098,
0.1698430777,
-0.0004988499,
-0.0231627692,
0.0068136677,
-0.5052879453,
0.2801293135,
-0.0990816206,
-0.343228668,
-0.017061092,
-0.5464773178,
0.0339365005,
-0.2951267958,
-0.2967860699,
-0.1955871433,
0.0566842593,
-0.0701141357,
0.0690511465,
-0.2528027594,
0.1593254507,
0.384506464,
0.1605413854,
0.0566416904,
-0.1457921267,
0.1346702725,
-0.0816494077,
-0.1207491457,
-0.1807446778,
-0.0492203608,
0.3001849949,
-0.0570604131,
-0.2775065899,
0.3385224938,
0.1791166663,
0.0763242021,
0.0040689968,
0.2548027635,
0.0230380725,
0.2091919184,
0.0859541371,
-0.2223033905,
-0.1074586287,
-0.0814240649,
-0.2597406209,
0.4529505968,
-0.099596709,
-0.0642132014,
-0.1837928295,
0.2674840093,
0.1773669869,
-0.0096663907,
-0.16972965,
-0.1619029045,
0.0502426438,
0.2686875165,
0.3828032613,
0.1910719275,
0.056402877,
0.0289089195,
0.4421550035,
0.2289880216,
0.1401611269,
-0.0511925519,
-0.1317169368,
0.089453578,
0.2256497443,
0.3671811819,
0.2941920161,
0.0511357524,
0.2728001475,
-0.1256539822,
0.398150295,
-0.1889782101,
-0.0232523233,
-0.0589450151,
0.0303111225,
-0.1392398775,
-0.101113826,
-0.0179822482,
-0.1365194917,
0.3469209075,
0.0543533117,
0.1654341519,
-0.3396593928,
-0.1209826544,
-0.1977421343,
-0.1341227293,
0.2395084947,
-0.0243768692,
-0.5376529098,
-0.0739462823,
-0.1817752421,
0.2030469924,
-0.0811513141,
0.2060424984,
-0.1902078986,
0.0385564417,
-0.014493607,
-0.0730998442,
-0.2904837132,
0.0984552652,
0.1059223041,
-0.0069641136,
0.2305039763,
-0.6279547811,
0.1780647635,
0.0020358935,
0.2553760707,
-0.4001018703,
-0.0342337489,
-0.2547354996,
-0.0081988312,
0.0870359614,
-0.3297148943,
0.0861914754,
-0.1502721608,
0.0583186783,
0.0083360523,
-0.2916870117,
-0.2098380625,
0.031151332,
0.0012750328,
0.013298519,
-0.2869877219,
-0.1387987733,
-0.1922623515,
-0.2366525233,
0.6767060161,
0.1732079387,
0.1216550022,
-0.0473201238,
-0.1707835346,
-0.4097973108,
-0.2292844951,
0.1703746319,
-0.3344257176,
-0.5908133984,
0.3133071661,
-0.450306654,
-0.4157238901,
0.0389997363,
0.151015684,
0.0554656833,
0.4662570357,
-0.0203366354,
-0.2331549972,
-0.3058478236,
0.2212014645,
-0.2192830294,
0.1822486669,
0.0141010005,
0.0414109938,
0.1408323199,
0.0244254395,
-0.1305057108,
0.1217965111,
-0.0180330127,
-0.3016532958,
0.0822102278,
0.2010876536,
0.2049247324,
0.5803418756,
0.410399437,
0.298083812,
0.2216826826,
0.1889457852,
0.6551343203,
0.0210195296,
-0.2211456299,
0.2425191551,
-0.0396677479,
-0.0471641906,
0.0539855473,
0.0449873991,
0.0420303196,
0.037869513,
0.0130387098,
-0.2398957312,
-0.502990067,
-0.2120030075,
-0.1994945258,
0.0904497504,
0.0991905108,
0.1203198507,
-0.2287049741,
-0.2225493491,
0.0350746326,
0.2991099656,
0.1776905507,
0.3196592033,
-0.3608703315,
0.1082682461,
-0.1985735893,
0.4802362919,
-0.0123869404,
0.5126091242,
-0.1556503773,
0.1874572635,
0.2141175568,
0.3622049689,
0.4309050441,
-0.4064323604,
0.195746541,
-0.1144275963,
0.1360840499,
0.1278696358,
-0.2462311983,
0.3391301036,
0.4184545279,
0.1934325844,
0.2180481851,
0.1238586456,
-0.1820776016,
-0.3830624819,
-0.1949625015,
-0.0845632777,
-0.1223984361,
0.0194023252,
0.0919783115,
-0.2639187574,
-0.0384475105,
0.267463088,
-0.4127902687,
-0.2445772588,
0.0039881468,
-0.1975447685,
0.1205322593,
-0.0765871257,
-0.1716650873,
0.3838124871,
-0.0190142822,
0.0007579923,
0.4223493636,
-0.1119353697,
0.1820329875,
0.4454096258,
-0.2894161046,
0.1530642807,
-0.2905001342,
-0.2587005794,
0.3308098018,
0.0902595893,
-0.3466540277,
0.0119355693,
0.2044366598,
-0.064362973,
-0.286259234,
-0.0864964798,
0.0435520411,
0.0499523729,
-0.1365187615,
-0.6606181264,
0.2589042187,
0.5378467441,
-0.2804979384,
0.2354457527,
-0.1215877682,
-0.373942107,
0.0899358094,
0.1244118363,
0.7908816934,
-0.1947770268,
0.3848077059,
-0.4029830098,
-0.008862175,
0.1285378337,
-0.4445785582,
0.0815524012,
-0.5112549067,
-0.3367191553,
-0.0641428679,
-0.1337095201,
0.0330646709,
0.3707942963,
-0.0497059003,
0.1543720812,
-0.1544703841,
-0.0572898164,
-0.1636880934,
-0.1531649828,
-0.3730816841,
-0.2370786071,
0.145801127,
0.0937573314,
-0.1470613778,
0.1671067476,
0.0507022031,
-0.0046258084,
-0.2059452534,
0.2701792419,
-0.3042626977,
0.0200909078,
-0.7715395093,
0.2240671217,
-0.1763984412,
0.0445417911,
0.0803732127,
0.3250464499,
0.4931789935,
0.355221957,
-0.0389767885,
0.0892629623,
0.3555333018,
0.1177678108,
-0.168369472,
0.0776085258,
0.3183529675,
0.1712893397,
0.1053554416,
-0.3185613155,
-0.1608813107,
-0.2662644386,
-0.3522587717,
0.1789844483,
-0.0570512712,
-0.2564052939,
0.0495350771,
-0.1536656618,
-0.0481094345,
0.0013129041,
0.0505594909,
0.4336296022,
0.0060985424,
0.5138241649,
-0.3861307502,
-0.3219286799,
0.0463544019,
0.6867849827,
-0.1212705299,
-0.175300166,
0.257801652,
-0.2270272672,
-0.225556165,
-0.1534277797,
0.1218030006,
0.105564706,
-0.2715554833,
0.0894068033,
0.1167695075,
-0.0839119554,
0.2019045651,
-0.4685653448,
0.0525985472,
0.0447126105,
0.0801333636,
-0.3671696186,
-0.4777835608,
-0.2479074895,
-0.2256658673,
0.2167541981,
0.2146310806,
-0.4804129004,
0.1537024081,
-0.0174103715,
-0.2190005183,
-0.1148725823,
-0.0603422299,
0.1070167273,
0.2844259143,
0.0111008231,
0.0080087669,
-0.1990952343,
-0.1115411371,
-0.0861445963,
-0.1366700232,
-0.1592535377,
-0.1084477752,
0.1500968784,
0.1591558307,
-0.330941081,
0.0598674864,
-0.4954997599,
-0.0886535645,
-0.4539219737,
0.0292236954,
0.4149191678,
0.1881964207,
0.3245114684,
0.0923558176,
0.0560513735,
-0.0751170665,
0.1502660364,
-0.250634104,
-0.3060462773,
-0.2019357234,
0.2243497223,
-0.2615666091,
-0.0122105852,
0.2307126671,
-0.1434112638,
0.0836388618,
0.0702204108,
0.1397665441,
-0.0660384893,
-0.0364292972,
0.0121905841,
0.3226595521,
0.1396934539,
-0.0691097826,
-0.0106765814,
0.2828234732,
0.0745937377,
0.033401154,
-0.2358487695,
0.2527936101,
-0.1717259437,
0.0732234269,
0.2959074378,
0.1993529797,
-0.2549949586,
0.0898619145,
-0.0400500372,
0.0541517846,
-0.4245871305,
0.3397022486,
-0.0981681645,
0.1198814809,
0.0936715156,
0.268990159,
0.1947562695,
0.103412576,
0.3501396775,
0.1634386331,
0.232634604,
0.2107986212,
-0.369220674,
0.1971418411,
-0.6348792315,
0.0933413357,
0.056286741,
-0.086597994,
0.3066341579,
0.1521220207,
0.3038794994,
0.0043678954,
-0.2596385777,
0.0565108806,
-0.0770833343,
-0.1069414169,
-0.1304055452,
0.0652907416,
0.1195554882,
-0.0169082731,
-0.2276171297,
-0.1421545595,
-0.1524276137,
0.1254959106,
0.2167184055,
0.1407485604,
0.1779339015,
-0.0839354694,
0.1679563522,
0.1124966517,
-0.2065463662,
-0.1242296323,
-0.2350949794,
-0.158077538,
0.2427189648,
0.0840778351,
0.2005327195,
0.0134678893,
0.113619566,
0.2942557633,
0.3542512059,
0.0297830701,
-0.3016220331,
0.3524742424,
-0.1150172502,
-0.3615786135,
0.0731111392,
0.0123494528,
-0.0762356669,
-0.1062277555,
-0.2283653915,
-0.0178438928,
0.1196863949,
0.0388070159,
-0.1391336173,
-0.5474354029,
0.0329925753,
0.0130503625,
0.1663216352,
0.0737847686,
0.496342361,
0.0279472992,
0.2006753236,
-0.5633283257,
0.0345561206,
0.4846206307,
0.2992675006,
0.4735642672,
-0.1852979809,
-0.0190089643,
-0.0092067719,
-0.4812476337,
0.0753228515,
0.2396789193,
0.3669990897,
-0.0317307003,
-0.2118469179,
0.0898561329,
-0.1715326905,
0.4435791969,
-0.3060117066,
0.4268414974,
0.3170056939,
-0.234144479,
-0.2756789327,
0.1760117114,
-0.0147433998,
0.1640821248,
-0.4100314081,
0.2371114343,
0.0033719689,
0.040764533,
-0.1905739009,
-0.0198301151,
0.1666393876,
0.4183314741,
0.417088598,
0.2483994067,
-0.0417276807,
0.0629504547,
0.2919248641,
-0.4317117929,
0.1377903372,
-0.2335240394,
-0.1024449617,
-0.2049260139,
0.0911725163,
-0.5365711451,
-0.2565538883,
-0.4064126611,
0.0836401135,
-0.1279954165,
0.2629208267,
0.0529819429,
0.1703790724,
-0.0599979311,
0.0954395831,
0.3064510226,
0.2437162846,
-0.1101046428,
0.3391706944,
-0.4970088005,
-0.2819460332,
0.4078899026,
-0.3286451995,
-0.1821714789,
-0.0058229789,
0.3923447728,
0.1560881585,
-0.2363846749,
-0.0434810668,
0.1604718566,
0.3031432629,
-0.3153865933,
-0.1380481869,
0.0552665778,
-0.298589617,
0.0815637484,
-0.1572465748,
0.4083764851,
0.0865304619,
-0.2282265723,
0.1088334173,
-0.1353074461
] |
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.1471498758,
0.0920664966,
-0.0505225621,
-0.0505753644,
-0.102440767,
0.0650752559,
0.2770628035,
0.0333129913,
-0.120572716,
0.0754827708,
-0.0888410807,
-0.120178774,
0.0910976902,
-0.4219700992,
-0.1925660521,
0.2325336188,
0.1333575994,
-0.0176633038,
0.150747776,
-0.1546299905,
-0.2114973366,
-0.0136959432,
-0.0854257196,
-0.0791242868,
-0.3535500765,
-0.1721547246,
0.1681276858,
0.2706647813,
-0.0565835685,
-0.0785235912,
0.2250819206,
0.6471478939,
0.1497717202,
0.0538105741,
-0.000119894,
-0.2870419025,
0.0061742412,
-0.1516677886,
-0.0634039566,
0.1870577633,
0.0887466371,
0.067350395,
-0.1030787528,
-0.1247890741,
-0.0944088548,
0.2261203825,
0.1814223379,
-0.7467900515,
0.3664297163,
0.1748211384,
0.1095254347,
-0.1968877912,
-0.3863589764,
0.0277925022,
0.1778069735,
0.1226095855,
-0.1285099983,
0.0490992144,
0.4465583265,
-0.27614972,
-0.095816955,
-0.0698405951,
-0.2673170567,
0.0956600755,
0.1645159125,
-0.1303355694,
-0.2429819554,
-0.3994432092,
0.145090282,
0.1106673181,
0.6790688634,
-0.1166606992,
-0.562966466,
-0.1135149747,
0.1143146753,
0.3843244314,
0.3292590082,
0.2766024768,
-0.1632415354,
0.3412983716,
-0.4492841959,
0.189577207,
-0.1568830311,
0.1035120487,
0.1970232278,
0.1023676917,
0.002506882,
0.0677869171,
0.0115011074,
-0.02882443,
0.2265235484,
0.0581414066,
-0.2915634513,
0.4532555938,
-0.163440004,
0.0448158681,
-0.2036424577,
0.4242895246,
0.2230390012,
0.3683879375,
0.2776878774,
0.2417333722,
-0.0489801615,
0.3250258565,
0.0026229471,
0.2221507132,
0.4380916059,
0.3034617603,
0.5250222683,
-0.3199166059,
-0.110698387,
0.0534922741,
0.0281564295,
-0.3199743629,
0.0004487187,
0.2718319893,
-0.0256189555,
-0.2300991416,
0.1515465379,
0.0074196272,
-0.251616329,
-0.220145613,
-0.014600385,
0.3301809728,
0.1104645059,
0.0212617628,
0.174176693,
0.259062916,
-0.0470536426,
-0.2397486866,
0.0658555031,
-0.3669915795,
-0.3004588187,
0.4415121675,
0.4217764735,
0.093040809,
0.055661194,
0.1959332228,
0.1799553782,
-0.2045557946,
0.4045283496,
-0.0105593242,
0.4755049348,
0.2911121845,
0.412784785,
0.3071926534,
0.1526106,
-0.1512585878,
-0.1715558469,
0.3212670982,
-0.237326771,
-0.1387582421,
0.3256174922,
-0.0095792068,
-0.0672042966,
0.2984533906,
-0.2900680006,
0.0407060869,
0.4671238065,
-0.0343048051,
0.4679353535,
0.239526704,
-0.1093882695,
-0.3718369305,
-0.1533472091,
0.2511180043,
0.0128155276,
-0.1537054181,
-0.1496702731,
0.0274790786,
-0.1170954332,
0.5004414916,
-0.0107650943,
0.0690817237,
-0.1780734956,
0.2032707632,
0.4645265341,
-0.0521380976,
-0.5090230703,
0.0684352815,
0.2420681566,
-0.0042059794,
0.3027636707,
0.1540335715,
-0.1393563598,
-0.1594105363,
0.1348702759,
0.3490008116,
0.1440919787,
0.1884932518,
0.0646125153,
0.0059749931,
-0.1699060202,
-0.0277533941,
0.0373374261,
0.2557495832,
0.3359964192,
-0.3438190818,
0.3285372853,
-0.291095674,
0.2032375932,
0.394782424,
0.1977983117,
-0.0213808119,
-0.0369805545,
0.0734882355,
-0.3018437326,
0.2468529046,
-0.1158631817,
-0.2352428883,
0.168718785,
-0.5432312489,
0.1867947876,
-0.262699306,
-0.057314124,
-0.1396666318,
-0.0210174955,
0.1543939561,
-0.0425265431,
-0.3075683415,
0.0869346261,
0.3220134079,
0.1850208342,
-0.0079954751,
-0.1341929436,
0.0258665085,
-0.076084964,
-0.0981875956,
-0.176319778,
-0.0962001383,
0.2354639918,
0.1245037392,
-0.2654774785,
0.312187314,
0.1975407898,
-0.0506852455,
-0.1936577857,
0.2976666689,
-0.0672434643,
0.1881961226,
0.0936565176,
-0.1430311799,
-0.1292763352,
-0.1405000687,
-0.3475045562,
0.5174837112,
-0.0801340193,
-0.1200614423,
-0.1488005817,
0.290713042,
0.1823880672,
-0.0352166593,
-0.1165268868,
-0.1050934196,
0.1371051073,
0.189447239,
0.4115875661,
0.1300976872,
0.1390410066,
-0.0199220516,
0.3039117754,
0.152086094,
0.1558999717,
0.0640676767,
-0.059285026,
0.1174714714,
0.2574259341,
0.3071282804,
0.3168762326,
0.077137813,
0.2486502677,
-0.1861858368,
0.2994371951,
-0.1761773378,
-0.0149177015,
-0.0744066089,
-0.1940281093,
-0.1732613742,
-0.2122288942,
-0.0787469,
-0.0365785547,
0.1973815113,
-0.1033041626,
0.0594299287,
-0.3922625482,
-0.1274553537,
-0.1077190638,
-0.1807715297,
0.2595333159,
0.003695026,
-0.5104746819,
-0.1243763715,
-0.0558480434,
0.2698239982,
-0.0469065346,
0.2797727287,
-0.2046475112,
0.2511656284,
-0.147115916,
-0.0217518751,
-0.1354900748,
0.1627024859,
0.1362985969,
-0.0116043426,
0.2251498699,
-0.5673706532,
0.1150122359,
0.0097255781,
0.1968265921,
-0.2695708573,
0.0187318325,
-0.1757623553,
0.0869112313,
0.0748117045,
-0.3606030643,
-0.0461839736,
-0.2265402526,
-0.0910757631,
-0.0836878121,
-0.33457461,
-0.1162887141,
-0.0234262682,
0.1639756411,
-0.1311140507,
-0.2262912691,
0.0201826543,
-0.1411023438,
-0.1289471388,
0.5307947993,
0.1332273334,
0.2247097194,
-0.1756724715,
-0.1722616255,
-0.4226777554,
-0.1257359684,
0.1453986764,
-0.3245463371,
-0.6174484491,
0.326646179,
-0.4711762667,
-0.3162118196,
-0.0076340884,
0.1587119102,
0.0754438341,
0.5489595532,
0.0661254376,
-0.1826240122,
-0.2251121253,
0.1158013493,
-0.1905196309,
0.1072228923,
-0.0054887198,
0.0346586742,
0.1448749155,
-0.0102737173,
-0.1496464312,
0.1010858119,
-0.1054441705,
-0.284573108,
0.1795329452,
0.1075247675,
0.1962020397,
0.5320225954,
0.4016360044,
0.449649781,
0.2346987873,
0.3224683702,
0.6212495565,
0.1091476232,
0.00706999,
0.1099852026,
0.056445051,
-0.1976519823,
0.1928105056,
0.1378410459,
-0.1425186545,
0.0250617489,
-0.0751197711,
-0.1683902889,
-0.5382795334,
-0.0226072893,
-0.3873751462,
0.0868488103,
-0.0260560736,
0.195928961,
-0.2685117424,
-0.1800315678,
0.0307756923,
0.3571219742,
0.1517268866,
0.3505575955,
-0.6412392259,
0.0908230916,
-0.316781342,
0.4719899297,
-0.0425035134,
0.4521333575,
-0.2461149842,
0.2270344496,
0.164117381,
0.3275580406,
0.3271008134,
-0.4988220334,
0.3267792463,
0.0093526617,
0.0087397322,
0.1913571209,
-0.1192497164,
0.332149446,
0.3668299019,
0.0937416777,
0.1542964131,
0.1609756649,
-0.0915240049,
-0.5370303392,
-0.3308065534,
-0.1116434634,
-0.2367695272,
0.2170091271,
0.1054394394,
-0.1862611175,
-0.0164103359,
0.3671915531,
-0.4705691636,
-0.0994756296,
0.0274241194,
-0.3810954094,
0.2071995288,
0.1539330184,
-0.1085571349,
0.2331238389,
-0.0477574244,
-0.1471506953,
0.3043548465,
-0.028974466,
0.3442009091,
0.3182348013,
-0.2673042715,
0.2928967476,
-0.2188660949,
-0.3312992156,
0.4388863444,
0.084194541,
-0.2857549787,
-0.0908565223,
0.240592733,
-0.0895853639,
-0.2242973894,
-0.143464908,
-0.1365799308,
0.0676995367,
-0.1706238538,
-0.6507311463,
0.2193378806,
0.6206011176,
-0.3546891809,
0.2753140032,
-0.0687208772,
-0.4185906053,
0.3697207868,
0.1752433181,
0.85208565,
-0.1954309195,
0.4317813814,
-0.5393024683,
0.0561807901,
-0.0093267187,
-0.5421408415,
0.0954176486,
-0.4827094674,
-0.3196134865,
-0.1598662436,
-0.115269646,
0.0965271145,
0.5368814468,
-0.000745669,
0.0883788839,
-0.0565397069,
-0.1894960254,
-0.0472842641,
-0.1738565862,
-0.4432768822,
-0.2074541152,
0.2550068498,
0.0483894944,
-0.0810529292,
0.0184035338,
0.0728382245,
0.0873644426,
-0.2621510625,
0.1707562804,
-0.3432573974,
-0.0346227996,
-0.736109674,
0.0597391315,
-0.1482691616,
0.0414167345,
0.1948923618,
0.4365553558,
0.4190996885,
0.3678156137,
0.0034498684,
0.1286638826,
0.2911277711,
0.1932988316,
-0.1187673658,
0.0057052076,
0.2679215074,
0.1980933547,
0.0860196948,
-0.2034704983,
-0.1211960465,
-0.3485174775,
-0.393388927,
0.0539435595,
0.1085502654,
-0.2680009604,
-0.0999555141,
-0.3109748065,
-0.0555230305,
0.0946824998,
0.0208197739,
0.4337207377,
-0.0117688589,
0.5506772995,
-0.3282586336,
-0.2934182286,
0.0634472668,
0.6677955389,
-0.1944485307,
-0.2492072731,
0.1311029941,
-0.2961779237,
-0.2181853652,
-0.1223901883,
0.0897092968,
0.2830388248,
-0.2277577817,
-0.0652292222,
-0.0078201629,
-0.18304497,
0.2490392625,
-0.4417338669,
0.1238403842,
0.2165516615,
0.0822881609,
-0.3332439065,
-0.3015971184,
-0.2759298086,
-0.1818507314,
0.2280918956,
0.2955181003,
-0.6359660625,
0.1383026838,
0.1753507107,
-0.1639894098,
-0.237811625,
0.0106992498,
0.1082934365,
0.0529192984,
0.1460759938,
-0.1391403675,
-0.1709163934,
-0.1404720247,
-0.0573959388,
0.0452590361,
-0.0943420157,
-0.0715823248,
0.1896330863,
0.1689671874,
-0.4297362566,
0.2433745563,
-0.4658848643,
-0.0727550015,
-0.5211844444,
0.0372329652,
0.4400123656,
0.0962175503,
0.3277231157,
0.1776431799,
-0.0167682394,
-0.3144004345,
0.1412572265,
-0.1770417988,
-0.2571635842,
-0.2136660516,
0.1840848625,
-0.3134497702,
-0.0858428478,
0.3430913389,
-0.0227573514,
0.1673573256,
0.1269787997,
0.0357838869,
0.065040797,
-0.041578725,
0.0113667622,
0.2966191173,
-0.1352153569,
-0.0555583797,
0.0207546502,
0.3500751555,
0.0264137909,
0.1389428377,
-0.2497935891,
0.2174217403,
-0.1284101009,
0.0236473978,
0.4656298459,
0.1540800929,
-0.4179786444,
0.1808341444,
-0.1981612742,
0.143987596,
-0.3473326564,
0.2857909203,
0.0039981762,
0.0470266715,
0.1241559237,
0.1442524642,
0.0780033171,
0.2447063476,
0.2467190772,
0.2031863928,
0.2100972682,
0.2925576568,
-0.3740954995,
0.1525069326,
-0.6392160058,
0.0923314318,
0.0573693179,
0.0386301726,
0.3066131175,
0.1207774132,
0.0455153845,
0.1442190111,
-0.1720223725,
0.0889916196,
-0.1706671268,
-0.0845199153,
-0.1640584916,
-0.022718288,
0.0730385482,
-0.1671443433,
-0.2294377834,
-0.3076396585,
-0.1627296656,
0.1399232,
0.291546762,
0.1834630817,
0.2129059285,
-0.0129165752,
0.0776395649,
0.0492404737,
-0.2998975515,
-0.2014185935,
-0.3289662302,
-0.0747554898,
0.3622373641,
0.0453284159,
0.1428123564,
0.0910450518,
0.1489477009,
0.2524823248,
0.2123202384,
0.0896752775,
-0.304479003,
0.1689477712,
-0.0194552839,
-0.3877963424,
0.0323751941,
-0.0114398357,
-0.0327796005,
-0.0719321221,
-0.1853447407,
-0.1122683957,
0.020880051,
0.0375017375,
-0.1052377969,
-0.429022491,
0.1587053388,
-0.0338295177,
0.1928041279,
0.0421402231,
0.3670755923,
0.0262927786,
0.2101048231,
-0.3965535164,
-0.0058467966,
0.4231171012,
0.1866988838,
0.4627207816,
-0.18756558,
0.0394904278,
-0.1463001519,
-0.3878420591,
0.1253437847,
0.2441620231,
0.3161037266,
-0.0288063735,
-0.3511029184,
0.1966865659,
-0.076674208,
0.5007019043,
-0.1172145158,
0.2203659117,
0.4526962936,
-0.2806835771,
-0.2936930656,
0.2575284243,
-0.0114240609,
0.1373861283,
-0.425550431,
0.1505642533,
0.0613064207,
0.0176901519,
-0.1303210855,
-0.1569133103,
0.1689867973,
0.5910174251,
0.316193372,
0.2963949144,
-0.0551009439,
-0.0291191712,
0.4183223844,
-0.2877553403,
0.2419890165,
-0.2407808751,
-0.134970814,
-0.1651605964,
0.1666346937,
-0.6858274937,
-0.2540329993,
-0.3417350352,
0.0297315456,
-0.1683702767,
0.2199375033,
0.0462330878,
0.2281651497,
-0.1728632152,
0.1377336681,
0.3757640719,
0.3808791041,
-0.1494627893,
0.4492859244,
-0.4867343307,
-0.00734061,
0.250107646,
-0.2229315639,
-0.1709308028,
-0.0803652108,
0.3517573774,
0.1270889789,
-0.269892782,
0.122011289,
0.0270546079,
0.3331513405,
-0.2721730173,
-0.1010434628,
0.0069852695,
-0.2472962141,
-0.0489845611,
-0.1564024091,
0.3384998739,
0.1570709944,
-0.2179484367,
0.0338498205,
-0.307343781
] |
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.1194676608,
0.2594242692,
-0.0967042893,
0.0303850509,
0.0231786408,
0.1083495691,
0.3391304612,
0.2117254585,
-0.3362343609,
-0.0368234292,
-0.1443872303,
0.0220603161,
0.0109387562,
-0.2525073886,
-0.0301326811,
0.074388437,
0.2278103977,
0.1208138168,
-0.1184285283,
-0.0778083801,
-0.0753738284,
-0.1556301713,
-0.0645337552,
-0.068815425,
-0.2214252651,
-0.1528554857,
0.2344743013,
0.1463683993,
0.0678267702,
-0.0460345261,
0.2212154269,
0.5300709009,
0.139436245,
0.1297320724,
-0.0001113997,
-0.1518128812,
-0.0184241831,
-0.0894037634,
0.0535900742,
0.1944099069,
-0.1325051188,
-0.2093676031,
-0.2764068544,
-0.1594099849,
-0.1122243404,
0.1167047173,
0.1642093211,
-0.6036271453,
0.5433726907,
0.1404613554,
0.1918492317,
-0.1789262444,
-0.4104808271,
0.0826762617,
0.2436182499,
0.0785935968,
-0.1785174906,
0.0480150506,
0.2731806338,
-0.0799815059,
-0.0498960577,
0.1404465735,
-0.2539244592,
0.0236761682,
0.2357445806,
-0.1408500373,
-0.2738700807,
-0.5522378087,
0.1436687857,
0.0834260434,
0.6017303467,
-0.1232599393,
-0.511814177,
-0.2026664615,
0.1050678045,
0.2066525817,
0.2712251246,
0.369160533,
0.0936825871,
0.2965428829,
-0.5677488446,
-0.0496127196,
-0.1733712703,
-0.0445346311,
0.2027280331,
-0.1169198304,
-0.0359123386,
0.0578543544,
-0.02208611,
-0.0612771176,
0.2435194403,
0.1687998027,
-0.3648127615,
0.3007419705,
-0.1860241592,
0.081229873,
-0.2588996291,
0.4488408566,
0.1628776342,
0.3240203261,
0.0920309722,
0.1952226907,
0.070958361,
0.1408424675,
-0.0613669232,
0.2960299253,
0.2489764094,
0.4393756688,
0.4983151555,
-0.3928608298,
-0.2331749201,
0.0259576663,
-0.0031998344,
-0.388525188,
0.042304188,
0.3014148474,
0.0058661401,
-0.194105953,
0.2318094373,
0.023072809,
0.0277757794,
-0.2067476511,
0.0348299854,
0.2914707065,
0.1373829991,
-0.0485933498,
0.0312975347,
0.1531579942,
0.0877909735,
-0.407399416,
-0.0142288469,
-0.3188687265,
-0.4200420082,
0.4248702526,
0.4544428587,
-0.1531493068,
-0.0572804548,
0.2649716139,
0.2661163211,
-0.1907424629,
0.2379842103,
-0.0216700993,
0.457837522,
0.3296436965,
0.1938189715,
0.3119952381,
0.0720116645,
0.0607617423,
-0.1467864215,
0.292378515,
-0.2984639406,
-0.1055828705,
0.3784656227,
0.0557938963,
-0.0133027248,
0.3157944977,
-0.3977425098,
0.0588389039,
0.5510910749,
-0.1779382378,
0.3704769015,
0.2052336037,
-0.027376242,
-0.3665220141,
-0.1580841243,
0.3250620365,
0.008227475,
-0.0332452133,
0.0170764253,
0.0294690765,
-0.073076658,
0.2770828903,
-0.0774067193,
0.0894966871,
-0.1327399909,
0.1082338989,
0.5130736828,
0.0005702972,
-0.5620500445,
0.1342481375,
0.1925629079,
-0.17343238,
0.2454898208,
0.0096968822,
0.1185336858,
-0.2128263116,
-0.2583187819,
0.3564734161,
0.1773576736,
0.2536077797,
0.1109802723,
0.0733584836,
0.0410692729,
-0.1329738945,
0.1154407784,
0.4333033562,
0.2992609739,
-0.1824633628,
0.1617093384,
-0.376642853,
0.2751654983,
0.4555324018,
-0.0365321003,
-0.1015516222,
-0.0176627599,
-0.0073524415,
-0.3946576118,
0.2472980767,
-0.3183889389,
-0.3896823823,
0.0755654797,
-0.4126990736,
0.0492649972,
-0.3918959498,
-0.1642127931,
-0.0987656638,
0.1022051424,
0.028506564,
0.0124803409,
-0.3670447469,
0.1314269155,
0.4621592164,
0.2361071557,
-0.0110711046,
-0.1629883349,
0.1359280199,
-0.0919626877,
-0.0392835438,
-0.2335413992,
-0.0225046873,
0.3091943562,
-0.0741980821,
-0.2938147187,
0.2166340649,
0.0186285786,
0.1711796373,
-0.1068190038,
0.3129375577,
0.0382642224,
0.0255695283,
0.1322212815,
-0.2872106433,
-0.1348638684,
-0.1101088747,
-0.1841522455,
0.3122932613,
-0.1572696418,
-0.0030585863,
-0.1704035848,
0.2214103639,
0.171657294,
-0.0735706091,
-0.1987821311,
-0.1661067754,
-0.08806023,
0.1540700495,
0.400236249,
0.199490577,
0.158941552,
0.0683569908,
0.3487052917,
0.1581217349,
0.0729849413,
-0.0398593694,
-0.1238125116,
0.1162959337,
0.1139311269,
0.4215897918,
0.2496379167,
0.0624098517,
0.3382251859,
-0.1299833804,
0.3225906491,
-0.1342460513,
-0.0113770366,
-0.1550782919,
0.0726026297,
-0.1251963675,
-0.1960163414,
0.0252935812,
0.0131510943,
0.243251279,
0.1521942019,
0.0736541823,
-0.3208757043,
-0.0531049706,
-0.2478594482,
-0.1940211952,
0.2186930627,
-0.0531894751,
-0.4666420817,
0.0351023525,
-0.2137257904,
0.1207762957,
-0.0420894884,
0.2620489001,
-0.2179094404,
0.1883020699,
-0.0940762386,
-0.0955024809,
-0.2950897813,
0.2740034759,
-0.016244648,
0.0140992329,
0.2692717314,
-0.7202327251,
0.0822762474,
-0.10379152,
0.3351434469,
-0.3325996995,
-0.0013952926,
-0.1677366197,
-0.0583969541,
0.0399998352,
-0.5119994879,
0.0790729672,
-0.1321320832,
0.0055731684,
-0.1503350884,
-0.2388791442,
-0.1751632541,
0.0638333112,
-0.008443892,
-0.0630747825,
-0.2691434622,
-0.1105900928,
-0.0748646259,
-0.1529546678,
0.417217195,
0.0242530629,
0.2210448533,
0.0712546632,
-0.2961516082,
-0.4592240155,
-0.1708661616,
0.322480917,
-0.3507021964,
-0.4663729668,
0.3746478558,
-0.4652483463,
-0.3919493556,
0.0089763403,
0.1525059789,
0.0956474841,
0.5313205719,
0.008107841,
0.0065639466,
-0.2156218588,
0.1642854363,
-0.2448115796,
0.1427266598,
0.0633400008,
0.1203007475,
0.1232927144,
-0.0262693092,
-0.1419420242,
0.0039658174,
0.0027322527,
-0.1979464591,
0.0559001081,
-0.0234035794,
0.2471241206,
0.6841848493,
0.4743022919,
0.2400140464,
0.2036270201,
0.3389164805,
0.6224417686,
0.1208770573,
-0.1956527829,
0.1466686726,
-0.0395011529,
-0.1463401318,
0.0716285706,
0.0243731998,
-0.2579858899,
-0.00433027,
0.0113596022,
-0.3083685637,
-0.4203000367,
-0.1478905678,
-0.3541894257,
0.225549072,
0.1420300901,
0.0721619725,
-0.2001125962,
-0.1761270761,
0.0670639575,
0.3497655094,
0.2149767131,
0.2623522282,
-0.3020286858,
-0.0992609933,
-0.2113832086,
0.3652658463,
-0.0616908818,
0.4255645871,
-0.1767179966,
0.1111927629,
0.1521208584,
0.3573995233,
0.3918285966,
-0.3412024379,
0.2567471862,
-0.0187180899,
0.1470619887,
0.3458316922,
-0.2633594871,
0.4020397663,
0.3350729346,
0.0278940089,
0.1637221873,
0.1002291739,
-0.1153754294,
-0.428938508,
-0.1245509833,
-0.1558930725,
-0.1336196661,
0.1555101424,
0.2004036903,
-0.1273490489,
-0.0846384168,
0.2400331348,
-0.3544846177,
-0.2417872697,
0.0208141059,
-0.2139785886,
0.0873797536,
0.0765930489,
0.0004747882,
0.3266929388,
0.1123574674,
-0.0093020275,
0.3724154532,
0.0692508221,
0.0834321827,
0.2979271412,
-0.1996045858,
0.2997161448,
-0.248002097,
-0.1883945167,
0.2906960547,
0.0110803135,
-0.403155297,
-0.2441163212,
0.1184337363,
-0.1741026342,
-0.2703233361,
-0.0545634665,
-0.1482561529,
-0.0079205967,
-0.2335672081,
-0.650052309,
0.241021052,
0.5714665651,
-0.3636011481,
0.2110617459,
-0.2989891171,
-0.3920723796,
0.0997597501,
0.1246801913,
0.8228703737,
-0.2001390457,
0.3372625113,
-0.4360775948,
0.0914704949,
0.0338621214,
-0.5424809456,
0.133510828,
-0.3649223447,
-0.4845433831,
-0.1396874785,
-0.1753522903,
0.0329049453,
0.4268997014,
-0.0503401756,
0.1317617595,
-0.1110343561,
-0.1178775281,
-0.1576691568,
-0.2448335737,
-0.1609954536,
-0.316603303,
0.2871118784,
0.125929296,
-0.318880409,
0.0841595456,
-0.0372754037,
-0.0442239195,
-0.2089188099,
0.3265964985,
-0.2553032041,
0.1009222195,
-0.5163572431,
0.1025329232,
-0.2737674713,
-0.0447582081,
0.1723592132,
0.344840467,
0.3541643023,
0.3286729157,
0.0128139164,
0.0426598825,
0.2986122668,
0.2019620836,
-0.247573629,
0.0381962396,
0.3198314607,
0.1609370261,
0.1365381926,
-0.273745209,
-0.1316477954,
-0.2173556536,
-0.3580759168,
0.1973917782,
0.0142587572,
-0.2301239073,
0.0675700605,
0.1013537645,
0.0289697349,
0.082821697,
0.090487659,
0.4365306795,
-0.0731012002,
0.6100825071,
-0.3113512397,
-0.3697409034,
0.0722660869,
0.4648303688,
-0.0051393788,
-0.2798210084,
0.1684935093,
-0.3599313498,
-0.2381218076,
-0.1542013586,
0.203300491,
0.0547812171,
-0.2182944715,
-0.0316563733,
0.017932862,
-0.0494758934,
0.1912436634,
-0.4619823098,
0.1150384694,
0.1076061577,
0.1272988021,
-0.3227125108,
-0.4183326066,
-0.2269860655,
-0.3366437554,
0.2010488361,
0.1914326847,
-0.4584569633,
0.1338769197,
0.1464450359,
-0.2239753306,
-0.2006187439,
0.0743453056,
0.146378085,
0.2006074488,
-0.0028395681,
-0.2117864043,
-0.1991602182,
-0.0970470905,
-0.0309662391,
-0.0659005642,
-0.1720740199,
-0.0970460624,
0.1412350088,
0.2323506027,
-0.2512134016,
0.0001269691,
-0.4172831774,
-0.1024448425,
-0.4633616805,
-0.0001012161,
0.2615754604,
0.2268388271,
0.4361833036,
0.1285552531,
0.0102063864,
-0.1942541003,
0.1410357207,
-0.1306834966,
-0.2108346224,
-0.1780765653,
0.2598570287,
-0.1998674273,
-0.0892773867,
-0.1135669276,
-0.1093991399,
0.1918187886,
0.147910744,
0.1583018154,
0.0286547877,
0.0588723198,
0.1932994425,
0.221267432,
0.0425965264,
-0.1043288261,
0.041931279,
0.3557137847,
0.1250348985,
0.0776880234,
-0.2286343873,
0.264441669,
-0.0976683646,
-0.0076725185,
0.3514917195,
0.2559173703,
-0.2805992365,
0.1599697769,
-0.1296697408,
0.1093093082,
-0.3585633039,
0.4870342612,
0.0516449101,
0.142976433,
0.0976535082,
0.4060677886,
0.2815798223,
0.0187119879,
0.3793067038,
0.190965265,
0.2533025444,
0.3172955215,
-0.2873900831,
0.1972581744,
-0.5817477703,
0.0846223384,
-0.0108468905,
0.0909683406,
0.3315360546,
0.0149528142,
0.008035725,
0.0217726789,
-0.3373452127,
-0.0049475208,
-0.0247654393,
-0.1073018014,
-0.1121114939,
0.1384294778,
0.1098617762,
0.0609831065,
-0.2639665008,
-0.1171248555,
-0.2014970332,
0.226442039,
0.320513159,
0.0693648756,
0.3160947561,
0.0933217332,
0.1955538988,
0.0299048945,
-0.1829393208,
-0.0471277088,
-0.437474817,
-0.1214603782,
0.2490421534,
0.0556104556,
0.0474582426,
0.1516702473,
0.1287698597,
0.2249506116,
0.2636331618,
0.0983304307,
-0.2886026204,
0.3832429051,
-0.1038762927,
-0.3053619862,
-0.0132802986,
0.0140807442,
-0.0710706934,
-0.0440470465,
-0.2996084094,
0.0561026745,
0.0851871073,
0.0760863498,
-0.0615847372,
-0.4678882957,
0.1124260128,
-0.0467202961,
0.1267683059,
0.1459875107,
0.6005496979,
-0.0157530643,
0.1827455461,
-0.4610281885,
0.0580457188,
0.5085269809,
0.2666838467,
0.371548444,
-0.1436202824,
-0.0409335867,
0.0225768536,
-0.335152626,
0.1201804429,
0.3190219402,
0.4509508014,
-0.066657722,
-0.1784453541,
0.0820804536,
-0.151766032,
0.6258019805,
-0.3384516835,
0.3094956875,
0.3757591844,
-0.1707219481,
-0.2227339894,
0.1644441187,
0.0579207838,
0.1150241494,
-0.2996995449,
0.2737310529,
0.2559909821,
0.0674635172,
-0.1231967211,
-0.1630066782,
0.2323895842,
0.4792932868,
0.4996345639,
0.2923943102,
-0.0920647755,
0.0170528069,
0.3724157512,
-0.4259382486,
0.1166954637,
-0.1658416241,
-0.0941695347,
-0.1701468676,
-0.0797597468,
-0.6363078356,
-0.2001446038,
-0.4148024321,
-0.0923908055,
-0.072363168,
0.2521131039,
-0.038940616,
0.0350958407,
-0.1592818499,
0.037023887,
0.2998324037,
0.3170622885,
-0.1319774687,
0.3499929905,
-0.4378008246,
-0.2004663646,
0.2926464081,
-0.3081226349,
-0.3108551502,
0.0427867584,
0.356725812,
0.080817014,
-0.1775988042,
0.0596108139,
0.1286210418,
0.3334871829,
-0.3825701475,
-0.0494082533,
0.0462443344,
-0.3922493458,
0.0021779686,
-0.1448620856,
0.5197300911,
0.0282056369,
-0.2426553071,
0.0096500963,
-0.2224131823
] |
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.1428571194,
0.2471921742,
-0.1365760267,
0.0218379218,
-0.0611332953,
0.1519796252,
0.2972183824,
0.1749408841,
-0.2172031105,
-0.0215462968,
-0.0839366913,
-0.0586812869,
0.0317837857,
-0.2856923938,
-0.0319774151,
0.1332601309,
0.1821877956,
0.0443540923,
0.0965490565,
-0.0609317943,
-0.1018134132,
-0.1174132675,
-0.0272722617,
-0.0965081751,
-0.2872997522,
-0.1700499505,
0.2464343011,
0.1395109445,
-0.0033844616,
-0.1678147018,
0.3220139742,
0.5283102989,
0.1039888263,
0.1232829019,
-0.0001113227,
-0.1744422913,
0.0331922024,
-0.0960739031,
0.0774688125,
0.1945367157,
-0.1794522852,
-0.1781274527,
-0.1543628871,
-0.1446087211,
-0.0952899158,
0.1648486853,
0.1669421792,
-0.6869981289,
0.4415381551,
0.1891676337,
0.2091258168,
-0.2013518512,
-0.3777410984,
0.0495414734,
0.2510104179,
0.0257306639,
-0.1516216844,
0.1294457912,
0.2156840712,
-0.1824466586,
-0.0324098952,
0.0404493026,
-0.3017323017,
0.1421565562,
0.1594821811,
-0.1164246053,
-0.3029307425,
-0.5466198325,
0.1151205301,
0.1016686484,
0.742778182,
-0.1304637641,
-0.5221777558,
-0.2247484028,
0.0260394067,
0.1467636824,
0.3395377994,
0.3094369471,
0.0320564099,
0.2644795775,
-0.4822488427,
-0.0603269115,
-0.1234005839,
-0.0149048194,
0.2107096314,
-0.0578130111,
-0.0543182045,
0.0511021242,
0.0089814179,
-0.0314751714,
0.1698545516,
0.1223375499,
-0.3839344978,
0.3322782815,
-0.2173948437,
0.0476986542,
-0.204562664,
0.4771678448,
0.2469501644,
0.3256940246,
0.1847618818,
0.189576894,
0.0483526662,
0.2100982517,
-0.013755748,
0.2042706311,
0.3664560616,
0.3078051507,
0.5489121079,
-0.368614167,
-0.1509489268,
-0.0088528609,
0.0877646506,
-0.3914698064,
0.1254261136,
0.2992856801,
0.0144489929,
-0.1791375875,
0.1573957801,
0.1027249396,
-0.0705534667,
-0.2997869253,
0.0422844738,
0.2541508079,
0.0851154774,
-0.0763172284,
-0.0722943768,
0.1465344876,
0.0324664786,
-0.3402565718,
-0.0242127366,
-0.2963755727,
-0.3305017054,
0.4524025619,
0.4746804535,
-0.2168551087,
0.0492035151,
0.2484591305,
0.1645347774,
-0.1960690916,
0.349630177,
-0.0917861462,
0.3922556639,
0.3255968094,
0.2361749411,
0.3156214654,
0.0267678611,
0.027247861,
-0.1347599328,
0.267781049,
-0.3485302627,
-0.1394204199,
0.2724356651,
0.0698515996,
-0.0414479412,
0.2683045268,
-0.4000048637,
0.0963899568,
0.582057178,
-0.1821673214,
0.3664320111,
0.3113205731,
-0.1842412353,
-0.3967319131,
-0.1390605569,
0.3455355167,
-0.0855747163,
-0.0208135322,
-0.0343697816,
0.0243700817,
-0.0582218505,
0.2858802676,
-0.0335433595,
0.2149340063,
-0.1570044458,
0.1900598705,
0.4625103474,
-0.039486967,
-0.5458711982,
0.1002069041,
0.2019246072,
-0.1777586341,
0.1742074639,
0.0081289038,
0.0909034014,
-0.126757279,
-0.1123054177,
0.3109275103,
0.1437161714,
0.2210416496,
0.1205586568,
0.0834584981,
0.0209557638,
-0.1079559773,
0.0776223764,
0.349034667,
0.3411442041,
-0.2767299414,
0.13310422,
-0.254473567,
0.218505919,
0.4260053337,
0.0747248977,
-0.145693928,
-0.0268898532,
-0.0790522918,
-0.4902151823,
0.2971685231,
-0.162768662,
-0.4536585212,
0.1062267721,
-0.4373443127,
0.0376185551,
-0.3469261229,
-0.1941639483,
-0.0228368975,
0.1004707441,
0.0246154666,
0.0370800346,
-0.3169472218,
0.1327247024,
0.4763793349,
0.242437318,
-0.0093256943,
-0.0706983209,
0.1099775583,
-0.0890514627,
-0.0683470666,
-0.2553047538,
-0.0874613672,
0.2582810819,
-0.0127729233,
-0.2527156472,
0.2583006024,
0.1220440865,
0.0432484373,
-0.0386162922,
0.2850627303,
0.0263186712,
0.1067761332,
0.0334019214,
-0.2647299469,
-0.0848734677,
-0.135085687,
-0.2590285242,
0.3348572254,
-0.0561044067,
-0.0997395739,
-0.196934402,
0.1580217928,
0.1715053916,
-0.0287489817,
-0.0890952051,
-0.1804487407,
-0.0196944959,
0.1461563706,
0.4113467932,
0.1597364098,
0.0770032406,
-0.0062582381,
0.3378333747,
0.1522033215,
0.1228646636,
-0.0516031161,
-0.0356436558,
0.0973333567,
0.1813944876,
0.406062901,
0.2397597879,
0.0390438996,
0.371492058,
-0.2152391821,
0.288689822,
-0.1711804122,
-0.0337363705,
-0.1191085801,
-0.0279648975,
-0.0900121778,
-0.1263746023,
-0.0320602208,
-0.0565780737,
0.2918668091,
0.1202105507,
0.0907790139,
-0.3121082187,
-0.1080120951,
-0.2118525207,
-0.21459499,
0.2602292299,
-0.0251878016,
-0.5517680049,
-0.0475472175,
-0.1702076495,
0.1539954096,
0.0121374354,
0.18693313,
-0.3203653991,
0.1947367489,
-0.0745555982,
-0.1296609044,
-0.2249747515,
0.2378227711,
0.0894279927,
0.0461003333,
0.3092412353,
-0.6353922486,
0.1701678634,
-0.0190933943,
0.2957181931,
-0.3063871861,
0.0594555289,
-0.1494598389,
0.0051054694,
0.1052005813,
-0.507974267,
0.0896259472,
-0.1639074087,
0.0149561279,
-0.1765128523,
-0.1853561103,
-0.2112884074,
-0.0408044904,
-0.0131543763,
-0.0053920001,
-0.2753225565,
-0.0776920766,
-0.0943383276,
-0.1151463464,
0.405174166,
0.1105340123,
0.2217612267,
0.0120439678,
-0.3030834794,
-0.3747797906,
-0.2446155995,
0.2633527517,
-0.3676409423,
-0.6070089936,
0.3593268692,
-0.4767054915,
-0.3456923664,
0.0433667228,
0.1331196129,
0.0991717428,
0.429713577,
-0.0041099489,
-0.0211549439,
-0.2280495763,
0.2210162729,
-0.1964033246,
0.1139002889,
0.031886816,
0.0017945394,
0.1376155019,
-0.0344897658,
-0.1062226892,
0.0472999997,
0.0065851249,
-0.2572193146,
0.113149032,
0.036050342,
0.1607573628,
0.7411161661,
0.4388718605,
0.3008575737,
0.3324706256,
0.3114255369,
0.6650049686,
0.097194925,
-0.1134446114,
0.1356714368,
-0.0317310691,
-0.1031778008,
0.0624992549,
0.027242206,
-0.2228926867,
-0.0018457547,
0.0644988865,
-0.2801899314,
-0.3881298602,
-0.2747063339,
-0.3506073058,
0.1838005483,
0.1102323979,
0.0856439844,
-0.2223826051,
-0.2160011977,
0.0105684213,
0.3464002013,
0.2470166385,
0.2285489887,
-0.3671298027,
-0.0193495005,
-0.2943578362,
0.3742138147,
0.0227450356,
0.4750356376,
-0.2246239185,
0.2138926089,
0.1289343238,
0.3377272189,
0.3386285901,
-0.4378320277,
0.2274724096,
-0.056775637,
0.2345618308,
0.4198521376,
-0.2332417369,
0.4352371395,
0.4718271494,
0.0020426214,
0.1408074796,
0.1549379528,
-0.1456117481,
-0.4588283598,
-0.1967255622,
-0.1002525538,
-0.15991427,
0.1419167519,
0.2106590867,
-0.0396177247,
-0.0229202062,
0.2928188145,
-0.3281129599,
-0.1198691726,
-0.030272983,
-0.1894745678,
0.1852760613,
0.1096678898,
-0.0304381587,
0.3070518076,
0.087471351,
0.0322143734,
0.393232882,
0.0237633809,
0.1095492914,
0.3567067981,
-0.2256632149,
0.3106735349,
-0.1641492993,
-0.2135909647,
0.3364752233,
-0.042443417,
-0.3806390762,
-0.1152466387,
0.1090467423,
-0.1874640882,
-0.2366187871,
-0.0766053498,
-0.1206118092,
0.0288813151,
-0.2713643014,
-0.6071841121,
0.248606354,
0.6297312379,
-0.3228698969,
0.2944399714,
-0.3077935874,
-0.3462807536,
0.0473273061,
0.0954112709,
0.672028482,
-0.2086238116,
0.3101063371,
-0.44270432,
0.0898238569,
0.0308257863,
-0.4978625774,
0.1184832156,
-0.408359766,
-0.4058102369,
-0.1548295915,
-0.1048943177,
0.0994061753,
0.4395020008,
0.0288240239,
0.1583293527,
-0.0928933769,
-0.0273113046,
-0.1779788435,
-0.1655053794,
-0.1810852885,
-0.3043156266,
0.3318410814,
0.1356803179,
-0.2932880521,
0.0625388771,
-0.0369793251,
0.0240469389,
-0.1608584821,
0.2299255431,
-0.297842294,
0.02676633,
-0.5783840418,
0.0810303912,
-0.2023811489,
-0.0371696055,
0.1441639811,
0.3316228986,
0.3499905467,
0.3177767396,
-0.0064278571,
0.0279277563,
0.329620719,
0.1519305259,
-0.2706283331,
0.0494395681,
0.2387414128,
0.1717918962,
0.0923112482,
-0.2741936147,
-0.1687281877,
-0.2862178981,
-0.3404724002,
0.244116649,
-0.0152168479,
-0.185995549,
-0.002658125,
-0.0552790463,
0.0938525647,
0.0396863595,
0.0952867121,
0.4472773671,
-0.0191485286,
0.5354317427,
-0.3422574401,
-0.2824056745,
0.0496864021,
0.5333958268,
-0.0103199286,
-0.231368199,
0.1232595146,
-0.3668884039,
-0.2851037085,
-0.1642357409,
0.2133500427,
0.075798437,
-0.0806072354,
-0.070327729,
-0.001258865,
-0.0317810476,
0.2264772803,
-0.4863905907,
0.0676068962,
0.155857861,
0.1784557998,
-0.3788423538,
-0.4165930748,
-0.2663299143,
-0.4001974463,
0.2526355982,
0.2241731286,
-0.5527946949,
0.136206463,
0.1073158011,
-0.2161621898,
-0.2127675414,
0.0459291488,
0.1070933789,
0.2127884924,
0.0531720072,
-0.1336908042,
-0.2046234906,
-0.0729881674,
-0.0144848619,
-0.0733053088,
-0.202697143,
-0.0240583159,
0.1368884742,
0.2004260272,
-0.2765816152,
0.0928376764,
-0.4106260538,
-0.1257190704,
-0.4405407906,
0.0150692835,
0.2330185175,
0.2287783176,
0.3906268477,
0.1772550642,
-0.0344201252,
-0.1514307112,
0.1540427506,
-0.1049904525,
-0.2296192199,
-0.2043363303,
0.2428147197,
-0.2428245842,
-0.0497145429,
0.0680812448,
-0.0769993961,
0.1046031266,
0.0788830742,
0.030503666,
-0.0453555658,
0.019006975,
0.2534475029,
0.2714625001,
-0.0059419554,
-0.0974111408,
0.0727517158,
0.365506053,
0.1099864691,
0.0762418881,
-0.284545958,
0.4150997698,
-0.08765129,
0.0915351883,
0.3425654471,
0.2678271532,
-0.2353956103,
0.1493696272,
-0.0980188251,
0.0692608654,
-0.3902860284,
0.4481526911,
-0.0240281038,
0.1472291201,
0.0574547574,
0.4231707752,
0.2290755808,
0.0466120988,
0.4067042768,
0.2481558174,
0.2605164945,
0.3397052884,
-0.345859915,
0.1276783049,
-0.7042198181,
0.1275596768,
-0.0197525546,
0.0561292581,
0.275868386,
0.0758726895,
0.0423822962,
-0.0143592227,
-0.3197186589,
-0.0180121474,
-0.1287963241,
-0.1407434791,
-0.1164156944,
0.1153281927,
0.1106609255,
0.1054373235,
-0.2872698903,
-0.1392528266,
-0.2133515626,
0.1835159957,
0.1980625838,
0.0448957942,
0.3090523481,
0.0702030733,
0.1536202431,
0.0105627291,
-0.15876773,
-0.0505610555,
-0.4993771017,
-0.1593477279,
0.1492514759,
0.0837155357,
0.0245942026,
0.1081355512,
0.1414322257,
0.159199819,
0.2794610262,
0.0684916005,
-0.2762520909,
0.3350646198,
-0.1086452752,
-0.3857880235,
0.0774825439,
0.0289659724,
-0.0531089008,
0.0060767448,
-0.1814499348,
0.0473563895,
0.0459570214,
-0.0864457265,
-0.1857287586,
-0.4063056707,
0.1203803271,
0.0207742732,
0.1491142213,
0.0456718244,
0.5845215917,
0.0363470912,
0.1851715446,
-0.4893621206,
0.0414374433,
0.3916395307,
0.2577170432,
0.3724985421,
-0.0459260829,
-0.0485460982,
0.030619815,
-0.4142839015,
0.100122191,
0.1623342484,
0.4591629505,
-0.0531645715,
-0.1715996563,
0.0971520245,
-0.0935880244,
0.6016918421,
-0.246701017,
0.326189816,
0.3333631158,
-0.2155636847,
-0.3029919863,
0.1378915459,
-0.0659999102,
0.0854801014,
-0.3516237736,
0.264626503,
0.1475513726,
0.0646324307,
-0.1105996817,
-0.2044220567,
0.2234925032,
0.477950871,
0.465592593,
0.2324145734,
-0.0077999532,
-0.0009459704,
0.4317926764,
-0.374524951,
0.1243580431,
-0.165743053,
-0.093629621,
-0.2061487883,
0.0563704967,
-0.6334996223,
-0.1452103555,
-0.3863384724,
0.0196219869,
-0.1199482456,
0.2421509027,
0.0649131164,
0.0206035003,
-0.143366918,
0.0332584605,
0.2996157408,
0.2286001593,
-0.1448931843,
0.3779788613,
-0.4137224555,
-0.1017750576,
0.2888856232,
-0.2719570696,
-0.2022381127,
-0.0633935407,
0.3643736541,
0.1807680875,
-0.2005179971,
0.063939184,
0.0866654962,
0.3763287663,
-0.383457303,
-0.0845932811,
0.0343326591,
-0.3514177799,
0.0672136992,
-0.1358441561,
0.5006894469,
0.0298119709,
-0.2390043437,
0.0479478687,
-0.222948119
] |
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.1649944782,
0.2504472136,
-0.1311804354,
0.0018533347,
0.0164029989,
0.0696858764,
0.3859355748,
0.2012922615,
-0.2431754172,
-0.0268527567,
-0.0832431912,
0.0317558646,
0.0088323466,
-0.2032841742,
-0.0566227436,
0.1244934499,
0.2251380235,
0.1058565602,
-0.0469125919,
-0.0759037137,
-0.1004975885,
-0.1561996937,
0.0020291209,
-0.1382750869,
-0.2803069055,
-0.139366582,
0.2509009838,
0.1854488701,
0.0243440159,
-0.1551296115,
0.2401855886,
0.5586879849,
0.119588539,
0.127812624,
-0.000108509,
-0.1533880681,
-0.0551178083,
-0.0804115832,
0.0271401368,
0.1929073632,
-0.0747352391,
-0.1969081759,
-0.1917305589,
-0.1530254483,
-0.135758251,
0.1554868817,
0.1004972383,
-0.6505796313,
0.5274170637,
0.1168166846,
0.219397828,
-0.2099461704,
-0.3844197989,
0.0381095707,
0.2251028419,
0.0479847305,
-0.1684113443,
0.1200008988,
0.2247463167,
-0.1187592298,
-0.0439554118,
0.1332412213,
-0.3048713207,
0.1042666212,
0.2058609128,
-0.1382554471,
-0.2443339378,
-0.5563905835,
0.0469927378,
0.0875776559,
0.6264384389,
-0.0997859687,
-0.5162677169,
-0.2456745952,
0.1034486443,
0.1492296159,
0.298302412,
0.304720968,
0.0544698797,
0.2399948537,
-0.5317011476,
-0.0625440851,
-0.1593403965,
-0.0585577674,
0.2357820272,
-0.1048960462,
0.0082517564,
0.0236697942,
0.0207115263,
-0.0796310082,
0.1798670292,
0.1895847172,
-0.4009322524,
0.3293811679,
-0.2059286237,
0.0583290607,
-0.2278127074,
0.4405924976,
0.2491424978,
0.3186536431,
0.1585351825,
0.2033317238,
0.0782408416,
0.1383762956,
-0.1031731665,
0.2567602098,
0.3083619475,
0.3042285442,
0.5483263731,
-0.3730142713,
-0.221649766,
0.0326328129,
0.0325833745,
-0.3678637743,
0.090400219,
0.3038929701,
0.0947403759,
-0.1761717647,
0.2136980593,
0.1021987796,
-0.0048241317,
-0.2351534814,
-0.0421869382,
0.2320289612,
0.1545976698,
-0.0539757945,
0.0452961326,
0.1512022913,
-0.0480054021,
-0.364018321,
-0.0102022942,
-0.3659335673,
-0.3953465223,
0.4914129674,
0.4919767976,
-0.1580432802,
-0.0312159806,
0.2863591611,
0.189248383,
-0.1733046025,
0.2945374548,
0.009413328,
0.4202330709,
0.2606205642,
0.1965859085,
0.2976065874,
0.0516443513,
0.0267489254,
-0.0783435404,
0.3222171962,
-0.3108761609,
-0.1091553867,
0.2779991925,
0.0938144848,
-0.047620777,
0.2909787893,
-0.3671760857,
0.077553913,
0.547835052,
-0.1628120989,
0.368368268,
0.2572859228,
-0.0955012664,
-0.3553995192,
-0.1884086132,
0.3907553554,
-0.0281888545,
-0.0231803581,
0.0068798997,
-0.0012333356,
-0.1035847217,
0.2831073701,
-0.0647819862,
0.1235595196,
-0.1371364743,
0.1607356966,
0.4129781127,
0.0167183205,
-0.4896354377,
0.1158396527,
0.1546939909,
-0.1152522117,
0.2207861394,
0.0094188116,
0.1001005769,
-0.1719110012,
-0.1612105072,
0.3214650452,
0.2198983133,
0.2970990539,
0.0704509467,
0.0779508278,
0.0667020753,
-0.1811554879,
0.0924617797,
0.4182467461,
0.2940610647,
-0.2295072079,
0.1312016994,
-0.3995590806,
0.2576644123,
0.3549229503,
0.0561040267,
-0.1388368011,
-0.0227870978,
0.0151939169,
-0.4653154314,
0.2769154608,
-0.226301223,
-0.3846690655,
0.1097717136,
-0.463978529,
0.0545063913,
-0.3579558134,
-0.1813167334,
-0.0714330077,
0.1170313284,
-0.0007736608,
0.0085546151,
-0.3308465183,
0.1423319727,
0.4758353829,
0.2152567506,
0.0106027871,
-0.1697905511,
0.0889069736,
-0.0840098858,
-0.0551141538,
-0.2312557548,
-0.0318292566,
0.3413780928,
-0.0363168754,
-0.2875852287,
0.2420506179,
0.0710615665,
0.1021633893,
-0.0845882148,
0.2678924203,
0.0363491252,
0.1262851059,
0.1169076338,
-0.3277269006,
-0.1060256585,
-0.1014624387,
-0.1738276482,
0.3757101595,
-0.0945549756,
-0.0556384139,
-0.2235656977,
0.1533218771,
0.1444266886,
-0.0640034601,
-0.1271196902,
-0.1657226533,
-0.0189026855,
0.165790081,
0.327701807,
0.2167520374,
0.1122767776,
0.1225081906,
0.2859784961,
0.179683283,
0.0327647179,
-0.0168508366,
-0.0244934559,
0.1001108885,
0.1447472423,
0.4372528195,
0.2620207071,
0.0575688221,
0.2727524042,
-0.1311240643,
0.3154353797,
-0.1805613488,
-0.0081164166,
-0.1601171494,
0.0520054996,
-0.0672347993,
-0.1780882925,
-0.0127130747,
-0.0466872305,
0.2545967698,
0.1635738313,
0.0634756461,
-0.3407385051,
-0.0851245672,
-0.2208599299,
-0.168295905,
0.2248602957,
-0.0677293018,
-0.5411040783,
-0.0004617833,
-0.1686425805,
0.1575245857,
-0.0167006925,
0.2290779352,
-0.2502929568,
0.2309425473,
-0.0517677665,
-0.1068636104,
-0.2852395177,
0.1904077679,
0.0318781585,
0.0391566753,
0.264819324,
-0.6819693446,
0.1082169861,
-0.0498187467,
0.3214018047,
-0.3362498581,
-0.0065853596,
-0.1964793801,
-0.031205859,
0.0932101831,
-0.5233695507,
0.1106678769,
-0.0999884531,
-0.000687819,
-0.1943657398,
-0.2517961264,
-0.206612736,
-0.0055071414,
-0.034969341,
-0.0534206629,
-0.290581882,
-0.1511851549,
-0.0614064857,
-0.1431302428,
0.4335411191,
0.0851115808,
0.2298048288,
0.0896165445,
-0.2578107715,
-0.4810025394,
-0.1615279168,
0.3298189342,
-0.4195418358,
-0.5174458027,
0.3248217702,
-0.5282968879,
-0.3527769148,
0.0235857442,
0.1081354916,
0.0974143595,
0.5158908963,
0.0116875693,
-0.0420572981,
-0.1728510857,
0.2145498842,
-0.2988648713,
0.0996039063,
0.0261341874,
0.0606899746,
0.0976805463,
-0.0486992709,
-0.122271046,
0.0462077521,
-0.0357475579,
-0.2109106183,
0.0705678761,
0.0151969548,
0.157434836,
0.6721853614,
0.3958399594,
0.2718150318,
0.2819131613,
0.259806931,
0.6446481347,
0.0928582624,
-0.1120514199,
0.093776606,
-0.0434908569,
-0.1148508936,
-0.00765137,
-0.0134741431,
-0.2159670293,
0.0148530081,
0.0615098625,
-0.285951972,
-0.4133948088,
-0.1890838295,
-0.3930580318,
0.2043074667,
0.1477509737,
0.1117432043,
-0.2024671882,
-0.1891778111,
0.0177696049,
0.3212447166,
0.2524998784,
0.2085791528,
-0.3571208715,
-0.0325284973,
-0.2535929978,
0.3859594166,
-0.0413273796,
0.4713116884,
-0.192854926,
0.0616707653,
0.13504076,
0.3420901299,
0.433167696,
-0.3725552261,
0.1792229414,
-0.0567199029,
0.2247842699,
0.394297272,
-0.3113519251,
0.4675218463,
0.388084203,
-0.0016575381,
0.1709222049,
0.1048138291,
-0.1330659389,
-0.4171788096,
-0.2021067739,
-0.1294091046,
-0.1466633677,
0.1025311947,
0.236531347,
-0.1127221286,
-0.0477675609,
0.2065169513,
-0.3365299106,
-0.2709622979,
0.0050462633,
-0.2208548635,
0.1627902687,
0.1010998935,
0.0172347464,
0.3342776597,
0.1163223237,
0.0395714194,
0.3923642933,
0.0280248877,
0.0475222319,
0.3474340737,
-0.2491832972,
0.3688553572,
-0.2201861888,
-0.2018560618,
0.2742720544,
0.0419494919,
-0.3801098764,
-0.1346424222,
0.0952150822,
-0.1462845057,
-0.3152120113,
-0.0926018059,
-0.1412160248,
-0.050810311,
-0.2401286364,
-0.644543469,
0.2152566016,
0.5688727498,
-0.3429946303,
0.2212752998,
-0.335254848,
-0.3594669104,
0.1160677969,
0.1292534769,
0.7586535811,
-0.170062393,
0.3338816464,
-0.3670007586,
0.1270796955,
0.0235378668,
-0.4897478223,
0.0970181227,
-0.4280511141,
-0.3520041406,
-0.1349547803,
-0.1423649788,
0.0306566656,
0.4354763925,
-0.0121359229,
0.1066625714,
-0.1066159829,
-0.0949274302,
-0.2107929885,
-0.1699944884,
-0.2021684647,
-0.3152824342,
0.285990864,
0.1521003842,
-0.3186112046,
0.070033282,
-0.0612330921,
-0.0316590741,
-0.135367468,
0.2244104147,
-0.2181382179,
0.0759988874,
-0.5058139563,
0.0952409059,
-0.1806233674,
-0.0695652291,
0.1136437654,
0.2644082904,
0.2961455882,
0.2816790342,
0.0190244,
0.040675588,
0.3031317294,
0.2201735377,
-0.2503166795,
-0.0256926417,
0.3489370942,
0.1968005151,
0.0993243605,
-0.3126577139,
-0.1262640506,
-0.212495476,
-0.3996909261,
0.1870088875,
0.0007017339,
-0.2862555385,
0.0942017436,
0.051291354,
0.0647280812,
0.0765364245,
0.1084607244,
0.3929050267,
-0.0862959623,
0.5915563107,
-0.2861962318,
-0.3366982043,
0.0760434121,
0.5156174898,
-0.0015924638,
-0.2648313046,
0.1439148635,
-0.3756622672,
-0.2430400848,
-0.1684213877,
0.1851773411,
0.0896779001,
-0.1936168671,
-0.0058991723,
0.064420417,
-0.0277557224,
0.2419085801,
-0.4868354797,
0.0766689107,
0.1860869825,
0.2071250528,
-0.3204559684,
-0.3578532636,
-0.2923529148,
-0.3840435445,
0.2802537084,
0.2492889166,
-0.4645659029,
0.1048680395,
0.1395435631,
-0.244107306,
-0.1916090548,
0.1240935773,
0.1581031233,
0.1949628145,
-0.0215590559,
-0.1759288609,
-0.2068548054,
-0.068615973,
0.0287300237,
-0.0646959767,
-0.1990015805,
-0.1046938449,
0.1134178787,
0.1913426667,
-0.2448041737,
0.0340244025,
-0.374704808,
-0.0902367681,
-0.41593346,
0.0488303825,
0.2445973158,
0.1655191034,
0.3717598617,
0.1695112288,
0.0040585641,
-0.1480571628,
0.1289693117,
-0.1361816078,
-0.1748699844,
-0.1619591266,
0.2460044026,
-0.3091620207,
-0.0388601497,
-0.0312948525,
-0.0894544572,
0.1638973653,
0.118240878,
0.0839182287,
0.0065050707,
-0.0093805492,
0.1649018675,
0.2747568786,
0.0907518119,
-0.1394849122,
0.0161908418,
0.3732374907,
0.1346222758,
0.0957646817,
-0.2577316463,
0.3211340606,
-0.1577561647,
0.0095062628,
0.3666000664,
0.3107985556,
-0.2781638205,
0.1229008287,
-0.0818170905,
0.0787997618,
-0.3840859234,
0.4889892936,
-0.060676761,
0.0978188142,
0.0288360566,
0.456158638,
0.2342558205,
0.0128770955,
0.3948360384,
0.1913922727,
0.2803453207,
0.3155324161,
-0.2956948876,
0.0932701528,
-0.6603909731,
0.1270820498,
-0.0133500844,
0.0351371989,
0.3175449669,
0.0470762849,
0.0308497213,
0.0010084026,
-0.3721477985,
-0.0357874744,
-0.0288167559,
-0.1293786764,
-0.1112946421,
0.1116017029,
0.0949684978,
0.0634828657,
-0.2576336861,
-0.1162932813,
-0.1733274162,
0.2095678151,
0.3084498644,
0.0606204383,
0.2429187596,
0.0343626849,
0.1661367714,
0.0629640594,
-0.1984056085,
-0.0586953834,
-0.4229195118,
-0.139953196,
0.2167057544,
0.0652490929,
0.0771240965,
0.1780665666,
0.152635783,
0.2093236595,
0.299231112,
0.1038566455,
-0.2305789441,
0.3860933781,
-0.0636699349,
-0.2987653911,
-0.0091260448,
0.0410541259,
-0.0676224232,
-0.0138781229,
-0.207309112,
0.0249305926,
0.0993682295,
0.0009106062,
-0.0046149483,
-0.3906279802,
0.0279034749,
-0.0259143449,
0.125370875,
0.0821531415,
0.6104059219,
0.0306686908,
0.1854172349,
-0.5288830996,
0.0689343959,
0.5035282969,
0.3143569827,
0.3292219937,
-0.1399839222,
-0.0738602355,
0.0577139407,
-0.3813987672,
0.1041038707,
0.2445229292,
0.4890330434,
-0.0709792152,
-0.1197338104,
0.0386079289,
-0.1364949942,
0.5329036713,
-0.3225665689,
0.2944775224,
0.3345533609,
-0.2373430431,
-0.2263544947,
0.164819032,
-0.0411134176,
0.1047651917,
-0.2933595479,
0.2788989842,
0.2183082253,
0.0790701061,
-0.1036356241,
-0.1770002246,
0.2364230156,
0.4915590286,
0.5217713118,
0.2991136014,
-0.0643643737,
0.0274173915,
0.4217230678,
-0.4742166102,
0.0594782047,
-0.1954737753,
-0.1081850007,
-0.121760875,
-0.0582190454,
-0.5593052506,
-0.1412600875,
-0.438093394,
0.0096388012,
-0.0817699283,
0.2550707757,
-0.0117185786,
0.0233899504,
-0.0902687758,
0.0334536172,
0.2685425282,
0.337841928,
-0.1183919311,
0.4349153042,
-0.4485857487,
-0.18201226,
0.328610301,
-0.2922592163,
-0.2384982109,
-0.0066258051,
0.40368554,
0.1122544184,
-0.2181576937,
0.0144234151,
0.1285199821,
0.3536310196,
-0.382627219,
-0.0202649198,
0.1170401573,
-0.3663056195,
0.0302186906,
-0.1388584375,
0.4482250512,
0.006810816,
-0.2219236344,
0.0491895825,
-0.2370274663
] |
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.0982317924,
0.2663792074,
-0.1286434382,
0.0853283554,
-0.1320203841,
0.0446736291,
0.3324168622,
0.1185307577,
-0.2356886715,
-0.0621480942,
-0.098921068,
0.0370315276,
0.0195823722,
-0.2461388707,
-0.0805591047,
0.0872822925,
0.1227617264,
0.1072843745,
-0.0332505554,
-0.0952981189,
-0.0240278542,
-0.1715577841,
-0.0351817235,
-0.0332675017,
-0.1896341145,
-0.2290270776,
0.273909688,
0.2133920789,
0.0309158117,
-0.2010473609,
0.2349330038,
0.5016701818,
0.101355426,
0.2010830343,
-0.0001147357,
-0.2658908069,
0.0338741094,
-0.0575639047,
0.0078436099,
0.2669467032,
-0.1161730886,
-0.2100123763,
-0.0704278722,
-0.1335716993,
0.0365234986,
0.0545725599,
0.0910354555,
-0.7105931044,
0.5204787254,
0.0122758262,
0.1791727245,
-0.1938914955,
-0.4023867846,
0.0832860172,
0.2860993445,
0.0430658348,
-0.1606017947,
0.1730282605,
0.3103103042,
-0.1361086816,
-0.0524348654,
0.105695419,
-0.2200271189,
0.0986950397,
0.2257891893,
-0.1704332829,
-0.2636168003,
-0.4594819248,
0.0759380609,
0.1365866959,
0.8266538382,
-0.1198400408,
-0.4820731282,
-0.2638093233,
0.0733136684,
0.1983562112,
0.2936441898,
0.3246241212,
0.0016634241,
0.2001908123,
-0.3582293093,
-0.1222779602,
-0.1994503736,
-0.023381453,
0.2468712032,
-0.1406528354,
-0.0500773266,
0.0535526499,
0.0249772388,
-0.084935829,
0.2674470544,
0.0949537158,
-0.3414621353,
0.3800838292,
-0.1853989512,
0.0996081382,
-0.2771457136,
0.4416387081,
0.1848987937,
0.3671000898,
0.306227982,
0.261546731,
0.0208354741,
0.1910760105,
0.0140879266,
0.2300600111,
0.3232110739,
0.3352375627,
0.4978230596,
-0.413733393,
-0.1270276606,
0.0657263845,
-0.0633111447,
-0.419516623,
0.0475066453,
0.2454413325,
-0.0278084129,
-0.2097609937,
0.2229668945,
0.1323929727,
-0.0605983473,
-0.2762773931,
0.0271374471,
0.3039216697,
0.0922552943,
0.0124808494,
-0.0268436782,
0.1532891393,
0.033194229,
-0.3798215091,
0.0337652564,
-0.3871085942,
-0.4200715423,
0.4929870367,
0.4044267535,
-0.1765277088,
-0.0331049636,
0.2085525095,
0.2425050586,
-0.1636566818,
0.3366354704,
-0.0425914191,
0.3792299032,
0.286385715,
0.179895252,
0.3634327054,
0.0198319759,
0.0766783804,
-0.106989935,
0.3586047292,
-0.3342369795,
-0.1467377841,
0.2806136608,
0.0304294042,
-0.0477086157,
0.2889645994,
-0.4568916857,
0.0635594726,
0.4904050529,
-0.1834810674,
0.4105274677,
0.2586521506,
-0.0667112023,
-0.4665748477,
-0.2035540491,
0.4040685296,
-0.1568004936,
-0.0436561257,
-0.0511369444,
0.0621061362,
-0.1280885637,
0.3088609278,
-0.1244793683,
0.1140968949,
-0.1328295916,
0.1697128266,
0.6214048862,
-0.0554200374,
-0.5478647947,
0.1586872637,
0.1892969757,
-0.1027345359,
0.217423901,
-0.0242301654,
0.0259666592,
-0.1259123832,
-0.2156148851,
0.276006937,
0.2407998741,
0.1559188366,
0.1018861085,
0.0270280764,
-0.0300638638,
-0.0831494257,
0.0225228295,
0.2714835405,
0.4265299141,
-0.4358937144,
0.2547703385,
-0.2961647511,
0.2431107163,
0.4442701638,
0.0852159634,
-0.071531117,
-0.0012012124,
-0.0202657133,
-0.5487945676,
0.2893896401,
-0.1768637002,
-0.5273398757,
0.0809146091,
-0.4074391127,
0.0392737687,
-0.2897552252,
-0.1810066104,
0.0466868989,
0.0411263891,
0.0338836424,
-0.0887258127,
-0.4143952429,
0.116246745,
0.3877354264,
0.2359035313,
0.0315155461,
-0.0698554069,
0.0841892883,
-0.0712552369,
-0.0374091081,
-0.2687803805,
-0.0493057631,
0.1768609285,
0.0349992141,
-0.2530091703,
0.2679136992,
0.0601469278,
0.1441575438,
-0.0802507699,
0.2444086969,
0.0304319393,
-0.0141186491,
0.1684857011,
-0.2584223747,
-0.0873373225,
-0.1304802448,
-0.2503655255,
0.3609991074,
-0.1785719395,
-0.0334621146,
-0.1110742092,
0.1398727,
0.084308438,
0.0162241682,
-0.1475670934,
-0.1299830228,
0.0527601056,
0.2098972648,
0.4378204942,
0.2361801565,
0.0789467841,
0.1187854186,
0.2683707476,
0.1318302453,
0.1181724072,
-0.0736094415,
-0.1377052665,
0.1421779394,
0.2471882105,
0.3656269312,
0.2177814692,
0.0397989154,
0.3672136664,
-0.2019691318,
0.3553777337,
-0.161070019,
-0.0460283831,
-0.1480802745,
0.1355392337,
-0.0648088455,
-0.156085223,
-0.0596934184,
0.0181029737,
0.2383269221,
0.1332808733,
0.0081430059,
-0.3435695171,
-0.1004175916,
-0.1508620977,
-0.1511527449,
0.1755268276,
-0.1299468279,
-0.4723002911,
0.0583784282,
-0.2219811976,
0.1132969931,
-0.0233518146,
0.197337091,
-0.3970791698,
0.29177773,
-0.1287025809,
-0.1223499104,
-0.2481477559,
0.2301946133,
0.0850457698,
-0.0017606243,
0.3133162558,
-0.6097191572,
0.0888755992,
0.0885058641,
0.3788990676,
-0.2676569223,
0.042918101,
-0.1726458073,
0.0873142332,
-0.0265729558,
-0.5216038823,
0.0375708453,
-0.2170246691,
-0.0558558702,
-0.1870146394,
-0.2340089679,
-0.2217158079,
-0.0772934556,
-0.0286511164,
-0.011366237,
-0.2143591344,
-0.0855834484,
-0.1366393566,
-0.1832230836,
0.5226250887,
0.1414618343,
0.2560488582,
-0.0023054965,
-0.2259357572,
-0.4002257884,
-0.2243372053,
0.321557492,
-0.3546550274,
-0.4346238077,
0.3281569481,
-0.5130245686,
-0.3416807652,
0.0300766081,
0.1240737885,
0.1058698073,
0.5141779184,
-0.0260710418,
0.0856407508,
-0.218669787,
0.2014670968,
-0.3087973297,
0.1535311937,
-0.0030912161,
0.1196373403,
0.1466683,
-0.0533186384,
-0.0471319817,
0.0780138522,
-0.0812829286,
-0.2787158489,
0.1123441309,
-0.0189692359,
0.1544210613,
0.8165985942,
0.4180294573,
0.3073638082,
0.2578544915,
0.3554746509,
0.6551372409,
0.1428949237,
-0.0472472087,
0.115394339,
-0.0610894635,
-0.0731162205,
0.0584627874,
0.0761319548,
-0.2318720818,
0.019900322,
0.1093603447,
-0.240373075,
-0.3566121161,
-0.1428791136,
-0.4525380135,
0.1425888836,
0.1079089195,
0.0464172065,
-0.266725421,
-0.2012430429,
0.0368886478,
0.2855019569,
0.2145123184,
0.2000101358,
-0.4393434227,
0.0232192874,
-0.2913897038,
0.38255018,
0.0240377337,
0.3767933846,
-0.1595311165,
0.0878662094,
0.1422175914,
0.3085398674,
0.1991609633,
-0.36888659,
0.2175952345,
-0.0722921565,
0.3133906126,
0.1935791969,
-0.2300414741,
0.4239262938,
0.4167354107,
-0.0649998337,
0.0880105644,
0.1043233573,
-0.162448287,
-0.4611429572,
-0.1629200578,
-0.1400513202,
-0.1490295827,
0.1277851611,
0.3009725511,
-0.0591899529,
-0.0507066771,
0.2749482393,
-0.3887246847,
-0.1966955066,
-0.0569882356,
-0.2175356746,
0.1835901886,
0.0585521273,
0.0031905249,
0.355663538,
0.0618901663,
-0.0241898857,
0.4219599664,
0.105465956,
0.1905615181,
0.4501102865,
-0.2394205332,
0.2526355684,
-0.1963379085,
-0.2536071241,
0.344006598,
0.1280101538,
-0.3881406188,
-0.091341123,
0.094883509,
-0.2409779131,
-0.1785273999,
-0.1467934847,
-0.1393217146,
-0.0003509484,
-0.1793930978,
-0.5722703338,
0.2993483245,
0.5455889702,
-0.387396574,
0.40948686,
-0.1822430193,
-0.2915194333,
0.1244036853,
0.0855537057,
0.8844554424,
-0.1866295338,
0.3774628341,
-0.3722921014,
-0.0078609586,
0.0343178399,
-0.3573721349,
0.0480113328,
-0.4815057516,
-0.3130870461,
-0.1221836805,
-0.182007581,
-0.0026544295,
0.4709051251,
0.0955755711,
0.0888456404,
-0.1663906127,
-0.0967434198,
-0.1240567714,
-0.1856990904,
-0.1745547354,
-0.2546982467,
0.3172063231,
0.0995550305,
-0.2195299566,
0.0381079428,
-0.1016565561,
-0.0048113391,
-0.2958867252,
0.2237445712,
-0.2638000846,
0.0663347989,
-0.6536073685,
0.0883998945,
-0.1841792911,
-0.1916698217,
0.1924734712,
0.3233483732,
0.2500440776,
0.1908154637,
0.0107801761,
0.0848976821,
0.3455126584,
0.1513486058,
-0.2724237442,
0.042425923,
0.2580709755,
0.1514899433,
0.1023698151,
-0.1992265433,
-0.1965439469,
-0.3692899048,
-0.3049929738,
0.2606561482,
0.0203784779,
-0.196623832,
0.0167659707,
0.0096560735,
0.0193987265,
0.1338642836,
0.0641381443,
0.4409196973,
0.0114202276,
0.5084739923,
-0.1870287806,
-0.2663936019,
0.121254392,
0.4861814678,
-0.0517145917,
-0.224652037,
0.2001372725,
-0.3566202819,
-0.2840154171,
-0.1574019641,
0.2058399618,
0.2287735492,
-0.2739265263,
-0.0978603512,
-0.0500145145,
-0.120757468,
0.2087788433,
-0.4400063157,
0.1652749926,
0.2225192934,
0.1445558071,
-0.3259630799,
-0.3702551126,
-0.155709371,
-0.3802725673,
0.1694022417,
0.09819372,
-0.6323504448,
0.0848053023,
0.1589220166,
-0.1927313656,
-0.0859459788,
0.1824995875,
0.0555276796,
0.1917814463,
0.0183820911,
-0.1213937253,
-0.1498741955,
-0.1152233928,
-0.0271480829,
-0.0567796268,
-0.1641157866,
-0.0398015156,
0.1679483801,
0.1820961386,
-0.3579392135,
0.0340811722,
-0.4784618616,
-0.0929452926,
-0.3725865483,
-0.0069161579,
0.1440312564,
0.198407203,
0.2655467987,
0.1583366245,
0.0265444703,
-0.2508020401,
0.2939375639,
-0.0832644999,
-0.1457856596,
-0.1785609722,
0.2487280965,
-0.2560300827,
-0.0689096153,
0.1211494505,
-0.0534528494,
0.1599541903,
0.0876606107,
0.0329494886,
-0.0397183001,
0.0136436597,
0.0903764516,
0.3623434305,
0.1479849517,
-0.0748312995,
0.0384248197,
0.3330176175,
0.0894022211,
0.0964140818,
-0.2548564374,
0.255743742,
-0.1211253852,
-0.0138891935,
0.3589085937,
0.248576358,
-0.2838559151,
0.1082215756,
-0.1117146462,
-0.0246060826,
-0.3429882824,
0.4184748232,
0.0051706727,
0.0947766006,
0.0316186026,
0.4915168285,
0.2797820866,
0.1336305439,
0.3028977513,
0.124778986,
0.1589162052,
0.4848210514,
-0.3369290233,
0.1364089549,
-0.7019546628,
0.0402300879,
0.064320758,
0.1500833333,
0.2370771468,
0.0920817554,
0.1744422019,
0.0702625513,
-0.3857190609,
0.053754814,
-0.2150054574,
-0.1069024801,
-0.1735503078,
0.0525688827,
0.0101662576,
0.0235931575,
-0.2575086355,
-0.2358401865,
-0.2523639798,
0.238078028,
0.2800002694,
0.1252834052,
0.1473442912,
0.1435049623,
0.2382261008,
0.0518711098,
-0.13955459,
-0.0491848439,
-0.4437820315,
-0.123546049,
0.222360462,
0.0707161352,
0.0082142279,
0.1415566206,
0.0843227506,
0.1917478889,
0.3114382327,
0.1031472459,
-0.2605125308,
0.2802603245,
0.0313891284,
-0.4263985753,
0.0495661795,
-0.0118827168,
-0.0661643296,
0.0395998992,
-0.1653693914,
-0.0143566523,
0.0257081501,
-0.0964861363,
-0.2372015119,
-0.4859431684,
0.1218274161,
-0.0287645869,
0.1725474596,
0.0998135358,
0.6371155977,
-0.0350281298,
0.135784179,
-0.5039876103,
0.0236024186,
0.4224788547,
0.3049721122,
0.4329592884,
0.0861296356,
0.0417960547,
-0.004052639,
-0.4279851317,
0.178324312,
0.1930169612,
0.448007971,
-0.0499125645,
-0.0718686432,
0.097992003,
-0.0994580686,
0.6948084831,
-0.1792330444,
0.4205055535,
0.3750421107,
-0.2903120816,
-0.1950785965,
0.3442023993,
-0.003693277,
0.0794751421,
-0.3978526592,
0.2591146827,
0.2087325752,
0.0137086436,
-0.0616123155,
-0.2549703121,
0.1834770441,
0.5491981506,
0.5960677266,
0.1380426437,
-0.0373201482,
0.0778947622,
0.2939426601,
-0.4272303283,
0.0046466514,
-0.1335637569,
-0.0110720955,
-0.1224510968,
-0.0802230015,
-0.5871816874,
-0.0836934894,
-0.3447757661,
-0.0714139342,
-0.0832640082,
0.2952828705,
0.0031482056,
0.0124898627,
-0.1258895993,
0.0484199636,
0.2322921008,
0.2587404251,
-0.1776358783,
0.3560263813,
-0.4420718253,
-0.0428560674,
0.3386685848,
-0.2681604028,
-0.1325928122,
0.0472126082,
0.3721209168,
0.3301636577,
-0.1808748394,
0.0167280883,
0.0868160725,
0.3808148801,
-0.392034471,
-0.0991070792,
-0.0171487108,
-0.4355272353,
-0.0082127005,
-0.1383623183,
0.6257169843,
-0.0122774094,
-0.1993691027,
-0.0361488983,
-0.2800709605
] |
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.021506831,
0.3034679294,
-0.1613319218,
-0.0614502393,
-0.0943002701,
0.0116147399,
0.359359026,
0.2102664709,
-0.2881745398,
0.0673980638,
0.0218296498,
-0.1237792373,
0.0104279108,
-0.2228573561,
-0.1488351077,
0.1429990679,
0.1225392818,
0.1753846705,
0.0643008202,
-0.0852335095,
-0.0920056999,
-0.2570910752,
0.0005782843,
-0.0861270875,
-0.304249078,
-0.146085754,
0.1376360655,
0.1973127574,
-0.0369802415,
-0.1767528951,
0.1454709172,
0.583526969,
0.0604475513,
0.170023188,
-0.000113813,
-0.229920119,
0.0330870375,
-0.0436646864,
0.0165125616,
0.2122365832,
-0.0735486001,
-0.1644750684,
-0.194316715,
-0.2433006465,
-0.0462048687,
0.1997113824,
0.1979093999,
-0.6541273594,
0.5026413798,
-0.0363661796,
0.1695914119,
-0.2603196204,
-0.458101958,
0.1149785668,
0.2927054763,
0.1554133147,
-0.1459859014,
0.1088736877,
0.4278715849,
-0.2223563194,
-0.0490458906,
0.1052146405,
-0.3066332042,
0.1089935303,
0.1439864635,
-0.1189898998,
-0.2343183905,
-0.5785056949,
0.0060198419,
0.1186380684,
0.7419645786,
-0.0414394028,
-0.500002861,
-0.3280441165,
0.115706563,
0.2075066566,
0.2222392261,
0.3163421154,
-0.144690305,
0.2639745176,
-0.4496851265,
-0.0939295366,
-0.1393084228,
-0.0497117378,
0.2192325294,
-0.1179771274,
-0.0371814072,
0.0456823483,
-0.0350005552,
0.0176568162,
0.2272621095,
0.1144423187,
-0.3335207403,
0.3299402297,
-0.1112537682,
-0.0360917598,
-0.2102330029,
0.4718671143,
0.2461711615,
0.3557560444,
0.2872904539,
0.2251414061,
0.0457363799,
0.1456660628,
0.0792334378,
0.138464123,
0.3433906138,
0.1938129812,
0.5769109726,
-0.3486527503,
-0.0621916726,
0.0978370905,
0.0803736746,
-0.3098668456,
0.1034738123,
0.3815609813,
-0.0208682455,
-0.1177322641,
0.1676382273,
0.1382082105,
-0.1400251091,
-0.4070583582,
-0.0386472754,
0.2055512965,
0.0458730944,
-0.0781720504,
-0.0050331131,
0.1522562504,
0.036386326,
-0.3549088538,
0.0399275161,
-0.3292352855,
-0.3953116536,
0.4818219244,
0.5079626441,
-0.2105385363,
-0.0186100379,
0.2744808495,
0.1505055726,
-0.1056961566,
0.3306500018,
-0.0605825298,
0.3992087543,
0.2370220125,
0.1655953526,
0.3706306815,
-0.0237127636,
-0.0111304149,
-0.1217287183,
0.3696787357,
-0.332118243,
-0.1372837126,
0.3728598654,
0.054055918,
-0.0034280121,
0.3053075075,
-0.3055221438,
0.0975195244,
0.4749912322,
-0.1878503263,
0.2645234764,
0.326456815,
-0.1508255154,
-0.4486913681,
-0.130068019,
0.4278674424,
-0.0520542972,
0.0365226269,
-0.019655548,
0.0565933883,
-0.1223033965,
0.2681513727,
-0.0935708582,
0.3671371043,
-0.1649926305,
0.1947629452,
0.4293017089,
-0.0106863305,
-0.4389021397,
0.1946791857,
0.1696157157,
-0.0350288823,
0.2052498907,
0.02650759,
0.056823723,
-0.2115879506,
-0.1429787278,
0.2417723984,
0.0068366285,
0.2508009076,
0.0217118561,
-0.0139130093,
0.0808934495,
-0.121570684,
0.0580404773,
0.338609308,
0.4151688814,
-0.3177108169,
0.2092598081,
-0.371804595,
0.2121630907,
0.2398821861,
0.1287961602,
-0.1351445317,
-0.1405806988,
0.0094822496,
-0.4876557887,
0.3215154707,
-0.1577842832,
-0.3858752549,
0.1458158344,
-0.3815568686,
0.1196943372,
-0.3553345799,
-0.0348143466,
-0.0107424967,
0.0641673803,
0.0118090305,
-0.123807095,
-0.3839868009,
0.0663138703,
0.4213302732,
0.1884032786,
0.0108928457,
-0.0326093733,
0.0793719888,
-0.1622629762,
0.0366545543,
-0.3233984709,
-0.1027957946,
0.1893296838,
-0.0289435238,
-0.1541256756,
0.2733412981,
0.0848939121,
0.0598434508,
-0.076438874,
0.2839993536,
0.071255073,
0.1836896837,
0.0505549759,
-0.2241447866,
-0.0589558966,
-0.2423051,
-0.3031656146,
0.3828921318,
-0.0749816,
-0.099684149,
-0.1992580891,
0.0980181098,
-0.0098713636,
-0.1272235513,
-0.1304625571,
-0.0998732597,
-0.0674125254,
0.2601042688,
0.2791471183,
0.2810327709,
0.0791931748,
0.0599676222,
0.3185290694,
0.1296103001,
0.0791055113,
-0.0605268218,
0.0566112734,
0.0924591571,
0.1974955201,
0.3689728379,
0.2394680083,
0.0554051735,
0.2686430514,
-0.183365792,
0.3721327484,
-0.1642816216,
-0.0501155406,
-0.0609722584,
0.0270869322,
-0.0607795455,
-0.1656579077,
0.0488089807,
0.0602553189,
0.2263968587,
0.0412443355,
-0.0455981418,
-0.2876110673,
-0.167702958,
-0.119769074,
-0.2105099857,
0.2882499695,
-0.0389637388,
-0.4841929376,
0.0286956131,
-0.112768054,
0.129577443,
-0.0789717808,
0.1243954599,
-0.2907035649,
0.3436163366,
-0.1635689735,
-0.0660115406,
-0.1650731862,
0.2653512955,
0.0996402651,
0.0267298594,
0.3398623466,
-0.6474875212,
0.2354013324,
0.0241679847,
0.3293394446,
-0.2896650434,
-0.0847149491,
-0.1201485321,
-0.0619771108,
0.1082119271,
-0.4897513986,
0.0002003908,
-0.1599299014,
-0.024094861,
-0.2729266286,
-0.1890532374,
-0.1693424284,
-0.1547233611,
0.0760246515,
0.0209452249,
-0.315022409,
-0.1158096194,
-0.0677882805,
-0.1333335638,
0.4151949584,
0.1257447898,
0.287150532,
0.0431078412,
-0.2571905255,
-0.4677889347,
-0.2548935413,
0.4332952499,
-0.2978621125,
-0.5735898018,
0.2667669356,
-0.3667278588,
-0.2950364947,
-0.0547701679,
0.0534231961,
0.0496604182,
0.5260625482,
-0.0280424207,
-0.0710067376,
-0.1727810204,
0.2378222346,
-0.3201941252,
0.1760141701,
0.0507706106,
0.0443117581,
0.1043992788,
-0.0059944317,
-0.0630179793,
0.0995540246,
-0.0724107772,
-0.3326375484,
0.2105693221,
0.0544056147,
0.2172201872,
0.829928875,
0.3929794431,
0.3720264733,
0.2671795487,
0.3564845324,
0.6644089818,
0.1048225462,
-0.072502099,
0.1425318867,
-0.0364807919,
-0.0717445686,
0.0694952831,
0.081197381,
-0.2659113407,
-0.0207883865,
0.1108511463,
-0.3122136593,
-0.43893224,
-0.1026622131,
-0.3760761619,
0.1761971414,
0.1192988083,
0.1065732241,
-0.1995281875,
-0.1544142216,
-0.0210663341,
0.2632152736,
0.355782479,
0.1747681051,
-0.4637183547,
0.0369302891,
-0.3498630524,
0.2690502107,
0.0891753957,
0.4185878634,
-0.1488759816,
0.0581605732,
0.175257504,
0.2864212692,
0.3135206699,
-0.370208025,
0.0821558237,
-0.1242390573,
0.1768730432,
0.3828258812,
-0.194959864,
0.4328997731,
0.4933442473,
0.0772910565,
0.1491271853,
0.0295707136,
-0.1438004971,
-0.4299343228,
-0.1553685814,
-0.038789209,
-0.1753018647,
0.2569083571,
0.2764849067,
-0.070205763,
-0.0548048168,
0.3186104298,
-0.4268201292,
-0.1772152185,
0.0125556439,
-0.1444717348,
0.3334312439,
0.1070248336,
-0.0956253931,
0.1886480153,
0.0868553668,
0.0401330143,
0.3317953348,
0.0829374641,
0.010430051,
0.4379091859,
-0.2634049952,
0.464507848,
-0.1202839464,
-0.3070554137,
0.3799797595,
0.2001866251,
-0.2821282446,
-0.1460817903,
0.1002371162,
-0.1474111676,
-0.391748786,
-0.1683852673,
-0.0840122849,
-0.117289342,
-0.2973458469,
-0.6107850075,
0.2031311542,
0.5352298021,
-0.3493177891,
0.2802356184,
-0.1976732612,
-0.3199748695,
0.1157679483,
0.0899704918,
0.8514474034,
-0.1189202666,
0.4581424594,
-0.3852829635,
0.0906187594,
0.0300645865,
-0.4793524742,
0.0184783489,
-0.4417716861,
-0.3964939415,
-0.1573923528,
-0.1264578402,
0.0611548349,
0.5075005889,
0.0699484199,
0.1319336593,
-0.0312288031,
-0.0157006159,
-0.080576852,
-0.0955841169,
-0.2434277236,
-0.2530541718,
0.4673324227,
0.1035225093,
-0.2109703273,
0.0416738987,
-0.1058873534,
-0.0191944204,
-0.2302452028,
0.1174570918,
-0.1970203668,
-0.0147033446,
-0.5546616912,
0.0146595351,
-0.1509047449,
-0.0532319993,
0.1978964806,
0.2467455864,
0.2595121264,
0.3690887392,
0.0198924821,
-0.0037852903,
0.3759624958,
0.2865215242,
-0.1338463575,
0.0350459404,
0.2950539291,
0.1952956915,
0.1418517232,
-0.2592478991,
-0.1916339993,
-0.353418082,
-0.5514912605,
0.2923978269,
0.0362898707,
-0.2155066878,
-0.0296289586,
0.0761447102,
0.0758180171,
0.0935082883,
0.0711848512,
0.446531862,
0.0325404443,
0.5419018865,
-0.3480488062,
-0.2729809284,
0.0171712767,
0.4562425315,
-0.0087913107,
-0.2799371183,
0.1219349205,
-0.424700588,
-0.2871577442,
-0.183898896,
0.2165850252,
0.0992647782,
-0.1942406893,
-0.1453795284,
0.0039368458,
-0.0536710769,
0.2282117754,
-0.5018803477,
0.1364123821,
0.0631129146,
0.2404438406,
-0.2232870162,
-0.3366982937,
-0.2222482562,
-0.2816531658,
0.2878144383,
0.1748160273,
-0.5316989422,
0.034252055,
0.1116782054,
-0.220429033,
-0.1617449224,
0.2376938164,
0.1767828017,
0.2374243438,
0.0645028502,
-0.2117525637,
-0.1975312531,
-0.086883083,
-0.0958414674,
-0.0733448416,
-0.1839973032,
-0.0220435224,
0.1630771607,
0.1925928593,
-0.3057271242,
0.1155594736,
-0.4096887708,
-0.1216661781,
-0.4183573723,
0.0601984039,
0.2559384704,
0.2084678113,
0.2805691361,
0.2027067542,
-0.0340545364,
-0.1311458647,
0.2717734873,
-0.1490411758,
-0.161509946,
-0.2404674739,
0.2573896646,
-0.2780953646,
-0.0271797851,
0.0881204605,
-0.022539407,
0.0841831863,
0.1487890184,
0.0639415234,
0.0238669962,
0.0719449744,
0.1772978008,
0.3038205206,
-0.0395742655,
-0.1294693351,
0.0597625747,
0.4733663201,
0.132589072,
0.164273113,
-0.2211526185,
0.2963955998,
-0.1967692375,
0.0397145301,
0.4383151531,
0.2616908252,
-0.1876133978,
0.1947379261,
-0.143186748,
0.0286019221,
-0.421778053,
0.4083345234,
-0.0260617733,
0.083590284,
-0.0092685707,
0.4539859295,
0.1205736846,
0.005917944,
0.2759361267,
0.235969469,
0.2251794487,
0.3980241716,
-0.3255465329,
0.0371678919,
-0.6843451858,
0.1587273628,
0.0663737059,
0.1399271488,
0.2649145722,
0.0653445199,
0.0981896296,
-0.0088551547,
-0.3272550106,
0.0779373869,
-0.2223502994,
-0.1073074415,
-0.0925634429,
0.0925487056,
-0.0064454973,
0.0414033532,
-0.2435084283,
-0.2393177897,
-0.2039112896,
0.1722235978,
0.2994824052,
0.026801046,
0.2390521616,
-0.0057678604,
0.0227448512,
0.1052182317,
-0.2305181026,
-0.0886003524,
-0.5490131974,
-0.1587805748,
0.196380049,
0.1576893479,
-0.0024716817,
0.2507817745,
0.1155071706,
0.1143043637,
0.2105148733,
0.1410673559,
-0.3057369292,
0.316078335,
-0.0784321576,
-0.3726966977,
0.0205802396,
0.0133965723,
-0.0556953661,
0.0213039741,
-0.1417463571,
-0.0697398707,
-0.1042272747,
-0.0591589138,
-0.0012654802,
-0.3647178411,
0.192896679,
-0.024681896,
0.0996293277,
0.0929882675,
0.5304291844,
-0.0801027864,
0.2131899297,
-0.53503263,
0.0406225994,
0.4460455775,
0.0969037339,
0.4369761646,
-0.0602698401,
-0.1579892188,
0.0823483467,
-0.3973451257,
0.0672308728,
0.2058851123,
0.4810686707,
-0.0473963991,
-0.164784193,
0.1603338718,
-0.020102527,
0.5293858051,
-0.3117314279,
0.2309982479,
0.3042066991,
-0.2668893337,
-0.1646339446,
0.2002544105,
-0.0559964851,
0.0255703628,
-0.3361581564,
0.2876139879,
0.2087492496,
0.0566422492,
-0.1186759025,
-0.2009542286,
0.1894122362,
0.5180323124,
0.447152257,
0.2234645039,
-0.1281678975,
-0.014497295,
0.3214604259,
-0.452511698,
0.1204560101,
-0.1858817786,
-0.1433233917,
-0.1372978091,
0.0232629478,
-0.5915027261,
-0.1409792751,
-0.3900011778,
-0.0541633666,
-0.0959736034,
0.3669757247,
0.0574752837,
-0.0047725365,
-0.0992677286,
0.0349665731,
0.2579489946,
0.3559637368,
-0.1373481303,
0.436842382,
-0.4264821112,
-0.0077003166,
0.288462013,
-0.2015530169,
-0.1466740072,
-0.0174018517,
0.3491695821,
0.162131846,
-0.1071660966,
0.0584282279,
-0.064076148,
0.383752346,
-0.4046955705,
-0.0600083247,
0.1296225637,
-0.4057177603,
-0.1622668356,
-0.0585072115,
0.5083825588,
-0.0459664129,
-0.2583739161,
0.0135494843,
-0.2333886921
] |
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.1157243177,
0.1915661693,
-0.1204443499,
0.0102187926,
-0.004656828,
0.0738375932,
0.3548940122,
0.0830473304,
-0.0977408811,
0.0234236382,
-0.1051576436,
0.113706246,
0.0743691772,
-0.2714212537,
-0.0607257113,
0.1525209695,
0.213656038,
0.0242684726,
0.0314021446,
-0.1150256842,
-0.1682758033,
-0.0577768683,
-0.1090056002,
-0.0970224887,
-0.2315442115,
-0.1235306039,
0.2449164391,
0.295475632,
-0.0123772789,
-0.1583915651,
0.2343733609,
0.5587268472,
0.1839398593,
0.0664557517,
-0.0001146071,
-0.1373330057,
0.0245990865,
-0.1300730258,
0.0329918712,
0.212981686,
-0.0198340863,
-0.1353998929,
-0.1063278019,
-0.2107834965,
-0.1455822289,
0.1845484078,
0.0864102244,
-0.669739306,
0.4485444725,
0.2498932481,
0.1849119365,
-0.1789573133,
-0.3419660926,
0.1327783316,
0.2498424053,
0.1016637236,
-0.1213096604,
0.0644458681,
0.2906066775,
-0.1677014083,
-0.0334178358,
-0.006596569,
-0.2996162176,
0.0673060864,
0.2002079636,
-0.0560008362,
-0.2622168958,
-0.542601943,
0.0775001794,
0.0678998604,
0.7661519647,
-0.0833124071,
-0.5185662508,
-0.1043562815,
0.0909012854,
0.2254611701,
0.3825603724,
0.3455034494,
-0.0217856988,
0.315094322,
-0.5068026781,
0.0105497502,
-0.2292095125,
0.0499695912,
0.1538021863,
0.0141860638,
-0.0012821592,
0.1121538505,
0.0697183758,
-0.0866591185,
0.1956955791,
0.113793999,
-0.3244980872,
0.3942143321,
-0.2211422622,
0.0370484442,
-0.2199565172,
0.464030534,
0.2384046614,
0.2879547477,
0.2111441046,
0.1848995537,
0.0075352825,
0.2291598916,
-0.0334101506,
0.1429674327,
0.3944538236,
0.2765604258,
0.5267386436,
-0.3781734109,
-0.1103835553,
0.0315590128,
-0.0516871773,
-0.3931073546,
0.0737505555,
0.2395582795,
0.040358521,
-0.2036318183,
0.1282831132,
0.0821354091,
-0.1116090789,
-0.2773321271,
0.0313262716,
0.3696841896,
0.1135343313,
-0.1150822192,
0.0398908108,
0.2530943751,
-0.0455174185,
-0.3753745258,
0.0114076957,
-0.3871252537,
-0.2792084813,
0.4033253193,
0.475232482,
-0.126680553,
0.0374804586,
0.2577848434,
0.1295545995,
-0.247727111,
0.3621706367,
-0.0441977121,
0.3986062109,
0.3669504225,
0.2635759115,
0.251434058,
0.0983394161,
0.0283256173,
-0.1079149321,
0.4005109072,
-0.3557934165,
-0.1548415422,
0.2978982925,
0.0562413149,
-0.0700574443,
0.2229293883,
-0.3771529198,
0.1008089781,
0.5208299756,
-0.0400725007,
0.36023736,
0.2457832098,
-0.2040583789,
-0.4434044063,
-0.0713328421,
0.2709903121,
-0.1343946159,
-0.0585175194,
-0.0877236053,
-0.065247044,
0.0261635128,
0.3507984281,
-0.0272543132,
0.2278839499,
-0.0913010836,
0.1632231176,
0.4935805798,
-0.0270816237,
-0.5619918108,
0.1231569573,
0.224175483,
-0.1495330334,
0.1917967945,
0.0252748989,
0.0326284468,
-0.0548467301,
-0.0813223422,
0.380757302,
0.2587203383,
0.2704674602,
0.1384899616,
0.1101888269,
0.0516448654,
-0.0187089145,
0.040956974,
0.3495685458,
0.3849891424,
-0.3570515513,
0.2508896589,
-0.2888387442,
0.2376911044,
0.4559265971,
0.0941976532,
-0.1270498037,
0.0241285414,
0.0441783369,
-0.3931059241,
0.2504177094,
-0.0999292284,
-0.402592659,
0.0985724926,
-0.4768049121,
0.0507056862,
-0.2261072248,
-0.1504826099,
-0.0876729712,
0.0498791188,
0.0069950894,
-0.055114679,
-0.3226659298,
0.1372421682,
0.3789213896,
0.2070664018,
-0.0071923807,
-0.1255988032,
0.1369617134,
-0.0797370672,
-0.0754804462,
-0.2361453772,
-0.0997982174,
0.2494990975,
0.0149252415,
-0.2919358909,
0.3010897338,
0.2039220333,
0.003709171,
-0.1793104261,
0.1579241157,
-0.0316225104,
0.0792518854,
0.0922479108,
-0.1883665025,
-0.078067787,
-0.1718758345,
-0.2997312844,
0.379645139,
-0.1070986763,
-0.0961291492,
-0.2705841362,
0.187598139,
0.1234655306,
0.0009860098,
-0.1368595958,
-0.1022858098,
0.037552543,
0.1670028865,
0.3814093471,
0.2300318331,
0.0853395313,
-0.020879183,
0.3448319137,
0.1670389771,
0.0647969171,
0.0143180108,
-0.0658066049,
0.0711304322,
0.2488202155,
0.2583680153,
0.3715966344,
0.0479277,
0.279214859,
-0.1685109735,
0.3713318706,
-0.1328788698,
0.0269256756,
-0.0919242948,
-0.0579609498,
-0.2032174766,
-0.212809816,
-0.0640655309,
-0.0018407404,
0.2651612759,
0.1012496203,
0.0838899463,
-0.4108769,
-0.1133115515,
-0.1967406869,
-0.133763805,
0.3249431551,
0.0046004765,
-0.5532534719,
-0.0559348166,
-0.199449867,
0.2022297829,
-0.0330776908,
0.2091743946,
-0.2046141773,
0.2034398466,
-0.0310080275,
-0.154710412,
-0.1921053082,
0.2037312537,
0.0917624682,
0.012130063,
0.1726273,
-0.572696209,
0.116318889,
-0.0581242293,
0.2865843773,
-0.2865248322,
0.0354090631,
-0.1741321683,
-0.0007084263,
0.1235658601,
-0.4385623634,
0.0518095195,
-0.2357431948,
0.0070025437,
-0.1307344884,
-0.2610492706,
-0.2307139635,
-0.0324151479,
0.1210669726,
-0.0235937759,
-0.2637916803,
-0.0945185497,
-0.1961845011,
-0.1584452391,
0.4723942876,
0.1527375728,
0.2521524429,
-0.0147096254,
-0.2428225726,
-0.4192588031,
-0.1423548013,
0.2821731567,
-0.3960953057,
-0.5978457928,
0.3621939719,
-0.4948404133,
-0.4088156819,
0.064818643,
0.1902251244,
0.0873683542,
0.4965359867,
-0.0206680149,
-0.0327208787,
-0.1303582042,
0.2110584676,
-0.3021685779,
0.1490708441,
-0.0183227956,
-0.0033311918,
0.1987173259,
-0.0616131946,
-0.2049268931,
0.0157701373,
-0.001858511,
-0.2435674369,
0.1733833998,
0.1804012805,
0.0368581638,
0.6638668776,
0.4006108642,
0.3711779416,
0.3447342515,
0.2460650057,
0.6566486955,
0.1277870685,
-0.0983544588,
0.1328799725,
0.0307421833,
-0.1344200373,
0.1476201713,
0.0507360287,
-0.2245366275,
0.0086268485,
-0.0305148177,
-0.2527897656,
-0.4145503044,
-0.1356716454,
-0.2857638001,
0.0906810164,
0.0120841637,
0.2275618464,
-0.2544755936,
-0.199630022,
0.0157246143,
0.3498133421,
0.1901770979,
0.2888481021,
-0.501157701,
0.032206852,
-0.3375476301,
0.4071542621,
-0.1128840074,
0.4579396844,
-0.2347189635,
0.1226633191,
0.2193187475,
0.3533584177,
0.4206819534,
-0.4260229766,
0.2191751897,
0.0246851817,
0.1591667682,
0.2435564995,
-0.1874756515,
0.4024348855,
0.4582356811,
0.0386991985,
0.1010612026,
0.1391741037,
-0.1269145161,
-0.4196950793,
-0.2121938318,
-0.0887365937,
-0.3115249574,
0.0865534693,
0.1946703494,
-0.1184443086,
-0.0838517919,
0.2580327988,
-0.3196938634,
-0.1928004324,
0.0135652274,
-0.2359623313,
0.2144570053,
0.0882399082,
-0.0233599097,
0.3749977946,
0.0290782303,
-0.0138737783,
0.3818999231,
0.0074326051,
0.182466954,
0.4704225659,
-0.2757961154,
0.2875594795,
-0.1840999275,
-0.2768239379,
0.4023549557,
-0.0207731575,
-0.3571337759,
-0.1568696499,
0.1743987501,
-0.1930557787,
-0.2674133778,
-0.0111444779,
-0.1028449163,
0.0749541223,
-0.2801114321,
-0.6301466227,
0.202337727,
0.5458949208,
-0.3691298962,
0.2700288296,
-0.3061339855,
-0.3580111861,
0.2122462988,
0.1006000191,
0.7887317538,
-0.2464868128,
0.3536964655,
-0.4175286889,
0.1269743443,
0.0216059536,
-0.4390439391,
0.0716996491,
-0.4734858274,
-0.3681218028,
-0.1136457771,
-0.1103551462,
0.0601075292,
0.5340062976,
-0.0449444875,
0.097828716,
-0.0706804246,
-0.1043380946,
-0.1764693558,
-0.1874251962,
-0.1608290821,
-0.3270984292,
0.2392129451,
0.114098981,
-0.2312961966,
0.0558353439,
-0.0365254283,
0.0121987127,
-0.1867185384,
0.1956736594,
-0.1977065355,
0.0684631169,
-0.6160365343,
0.0682231039,
-0.1547409296,
-0.0878566951,
0.1309369653,
0.415876627,
0.2986320853,
0.3483610749,
-0.0136352312,
0.0292693861,
0.3476782143,
0.2069435269,
-0.203566432,
0.034227401,
0.2627516389,
0.1758733988,
0.0214596838,
-0.2505773306,
-0.1745353341,
-0.3691315651,
-0.2691720724,
0.2384557724,
0.054087583,
-0.2971131206,
-0.0545927472,
-0.1923463345,
0.096593827,
0.1019244716,
0.066256009,
0.5287201405,
-0.0330315344,
0.5756494999,
-0.3444022238,
-0.3904917836,
0.0317515172,
0.5647519231,
-0.0669799447,
-0.2368167341,
0.1545799673,
-0.3134380579,
-0.2485007942,
-0.157089144,
0.2500906587,
0.1942854375,
-0.1230062544,
-0.0877435729,
0.0684733838,
-0.0695993006,
0.194100976,
-0.4771358073,
0.0461779535,
0.1764193177,
0.1300100088,
-0.3780309558,
-0.49079898,
-0.306133002,
-0.3063035607,
0.2266628146,
0.319888413,
-0.6408580542,
0.1010529622,
-0.0160243288,
-0.1997380108,
-0.2347140312,
0.0767551064,
0.0967482924,
0.1776964515,
0.0467800461,
-0.0919494778,
-0.202886343,
-0.0703605935,
-0.1117066741,
-0.0533865206,
-0.1622435898,
-0.0469906107,
0.1502443999,
0.1753893495,
-0.3635749221,
0.1325896978,
-0.4973804057,
-0.1254300326,
-0.4760821164,
0.0602505803,
0.3147105873,
0.19373779,
0.3190414906,
0.1800254881,
0.0004232712,
-0.2174243927,
0.1761340201,
-0.1847561151,
-0.1335197389,
-0.2566710114,
0.249626711,
-0.2918271124,
-0.0442203283,
0.0959342122,
-0.0525660105,
0.1684157848,
0.0968466178,
0.1087142825,
0.0077954358,
0.0210092142,
0.0825726166,
0.2972580791,
0.0636646971,
-0.1853006482,
0.0696979687,
0.3839073479,
0.0971769169,
0.1314065605,
-0.2571955323,
0.3448216617,
-0.1068819314,
0.0000319257,
0.3978752792,
0.1617181301,
-0.2893998623,
0.1561606377,
-0.1030878872,
0.1565571278,
-0.2774786055,
0.324385345,
-0.0405133478,
0.0415858179,
0.1016233712,
0.3367091119,
0.2523679435,
0.0584524199,
0.3339833915,
0.1865358949,
0.199639529,
0.3867459595,
-0.3236476779,
0.105869174,
-0.7008693814,
0.0736420453,
-0.0000705793,
-0.0661128014,
0.3008566201,
0.108877793,
0.0256839711,
0.0033401959,
-0.2885983586,
-0.0088928714,
-0.1278474629,
-0.1557437778,
-0.1520420015,
0.0488087833,
0.1350799203,
0.0352475494,
-0.2344053686,
-0.1990815103,
-0.2742216587,
0.1608578563,
0.2585524321,
0.0971266329,
0.1773423851,
0.0228628814,
0.1148763299,
-0.0264975689,
-0.2395643741,
-0.0577448979,
-0.5136407018,
-0.099076584,
0.3457365632,
-0.0201043151,
0.0873503238,
0.1511549652,
0.1820171922,
0.1513980627,
0.305273056,
0.1070544273,
-0.2939303517,
0.2839918137,
-0.0807647109,
-0.2318915278,
0.1009292305,
-0.0029199868,
-0.0153889451,
-0.1272787005,
-0.1417846084,
-0.0105082355,
0.0553010218,
-0.0667927414,
-0.1364723295,
-0.439178288,
0.1145027205,
-0.0423416235,
0.1652354002,
0.0423085317,
0.4903940856,
0.0976868719,
0.2387547493,
-0.4316914976,
0.0201407187,
0.3464190364,
0.2648147345,
0.3824140131,
-0.0085258596,
-0.0242716055,
0.0564010888,
-0.4088502228,
0.13770248,
0.2087853849,
0.3114926517,
0.0199449398,
-0.2332527786,
0.1249176115,
-0.068198204,
0.573035121,
-0.2475410998,
0.257663995,
0.3815858066,
-0.2472922951,
-0.3133665323,
0.2009393871,
-0.0212378297,
0.0751517043,
-0.3698142767,
0.3097247183,
0.0614473857,
0.0272923931,
-0.1679835618,
-0.1955741644,
0.198815465,
0.5369482636,
0.4967285097,
0.1937576383,
-0.0033437274,
0.0288406014,
0.4734126329,
-0.3762741089,
0.1190757602,
-0.2065245509,
-0.0309422202,
-0.1803782284,
0.0247029439,
-0.5975059271,
-0.2022421956,
-0.3634684384,
0.0467548855,
-0.1567851305,
0.1914335936,
0.0811972022,
0.100982517,
-0.1009100005,
0.0274026692,
0.3133311272,
0.2561118603,
-0.1445181519,
0.3793406487,
-0.3996708393,
-0.1239275485,
0.2655777335,
-0.2716208994,
-0.1795496345,
-0.0824190527,
0.3575583696,
0.143521294,
-0.1771570146,
-0.0216590315,
0.0905537754,
0.3699930906,
-0.4360895157,
-0.1380513608,
0.0460880511,
-0.3514813781,
0.0730112493,
-0.1463424563,
0.4525749981,
-0.0052707363,
-0.2306555212,
0.0680168569,
-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.1360275149,
0.2357685268,
-0.1311271191,
0.061382018,
-0.0553658903,
0.0940651298,
0.3185191453,
0.1379302144,
-0.1731733382,
0.0212595761,
-0.0261567738,
0.0268603973,
0.06032544,
-0.2584316134,
-0.040404655,
0.0852193087,
0.1406024098,
0.0469482765,
0.0417576656,
-0.0636763871,
-0.1245546117,
-0.1261474192,
-0.0492925718,
-0.0956192464,
-0.2034233958,
-0.1365756094,
0.3221453428,
0.2506712079,
0.0373611301,
-0.1135135517,
0.2764496803,
0.5581902862,
0.1219627932,
0.087867409,
-0.0001150559,
-0.1816447973,
0.0381921232,
-0.1321012676,
0.0325188041,
0.1941936165,
-0.1203794628,
-0.1345285475,
-0.1216264442,
-0.1587388963,
-0.1057850048,
0.165048629,
0.1044900492,
-0.6469730139,
0.4460662007,
0.1828891933,
0.1859185994,
-0.2256554812,
-0.3946874738,
0.0816634819,
0.2488645613,
0.1016983241,
-0.1462099552,
0.1121083498,
0.2739814222,
-0.1514119953,
-0.0044229403,
0.0000064187,
-0.3130862415,
0.0512260534,
0.1830158383,
-0.1587809026,
-0.2716630101,
-0.5145754814,
0.1429125369,
0.0730125755,
0.7643359303,
-0.1047452688,
-0.4819134474,
-0.1847706139,
0.0223100781,
0.2133852541,
0.3478795886,
0.2973595858,
0.0136780664,
0.3095960915,
-0.4908582568,
-0.0657007843,
-0.1992781758,
-0.0027749315,
0.1880515516,
-0.051400248,
-0.038164109,
0.115375042,
-0.005299801,
-0.0531310327,
0.1405498236,
0.119520925,
-0.3659527004,
0.3780117929,
-0.1778175384,
0.0718214735,
-0.1930506229,
0.4293600619,
0.2333182395,
0.3262346983,
0.2667449713,
0.2092348039,
0.0826546773,
0.2248351127,
0.0094389059,
0.151930511,
0.4054577649,
0.2742934227,
0.541900754,
-0.3882971406,
-0.0662726164,
0.0290873684,
-0.0284642354,
-0.39237234,
0.1260005981,
0.2452684492,
0.0128247812,
-0.2103173733,
0.182102114,
0.0922430903,
-0.0493151061,
-0.2737067938,
0.030684378,
0.316608578,
0.0591567233,
-0.087247774,
0.0076860413,
0.1134033129,
0.0246477574,
-0.40424335,
-0.0034628846,
-0.375095278,
-0.3589879274,
0.4641407728,
0.4577976465,
-0.2448271811,
0.078225866,
0.219075352,
0.163728863,
-0.2404777408,
0.3377044201,
-0.0499822982,
0.3577244878,
0.4029447436,
0.2828167379,
0.3107588291,
0.0389943942,
0.0398123041,
-0.0994034857,
0.3312433064,
-0.3699696362,
-0.1543808728,
0.2854833007,
0.0420135967,
-0.0352840647,
0.2946745753,
-0.4751750529,
0.1014177427,
0.5583773255,
-0.1506780684,
0.31452474,
0.2650933266,
-0.2219119072,
-0.4502770305,
-0.0772986561,
0.3010314703,
-0.1203651279,
-0.0477248505,
-0.0348953754,
-0.0149974953,
-0.0078384355,
0.2800571918,
-0.0775765181,
0.2429604381,
-0.0706211701,
0.1884450614,
0.533737123,
-0.0477490984,
-0.5750146508,
0.1883643568,
0.1889149845,
-0.1798312664,
0.1891257018,
-0.0152316988,
0.1123892739,
-0.0776226595,
-0.0667916536,
0.3543637693,
0.2272960842,
0.2602188587,
0.1782483757,
0.1146011353,
0.0456518196,
-0.0540022254,
0.0377728827,
0.3933876753,
0.3831639886,
-0.3089505136,
0.178814739,
-0.2511123717,
0.262051791,
0.4649665654,
0.0307010058,
-0.1328856945,
-0.0077300295,
-0.0465985872,
-0.4959969521,
0.2730864882,
-0.1101474091,
-0.4933683276,
0.0916131437,
-0.428330183,
-0.018319726,
-0.2726962864,
-0.1448033005,
0.0064642541,
0.0430832915,
-0.009461619,
-0.0796331316,
-0.360562861,
0.1758660376,
0.4297906756,
0.2050472945,
-0.0376985446,
-0.1288126856,
0.0865143463,
-0.0465496182,
-0.1004959643,
-0.217424348,
-0.1228884757,
0.2693599164,
0.0302326232,
-0.2796185911,
0.2872935832,
0.1608498544,
0.0764015839,
-0.1081750542,
0.2295516282,
-0.0259979144,
0.0941331685,
0.0347967744,
-0.2608453035,
-0.0801379383,
-0.1637898982,
-0.2425542176,
0.3675414026,
-0.1197709143,
-0.0849229991,
-0.222030133,
0.1864244193,
0.1616752297,
0.0087418258,
-0.1625153124,
-0.0869645625,
-0.0125954133,
0.1924946904,
0.4017891288,
0.2435414642,
0.0101202279,
-0.0242000148,
0.3577235639,
0.15390715,
0.0820488185,
-0.0283464603,
-0.0804596245,
0.0578163713,
0.2434151918,
0.2833215594,
0.3093882501,
0.0471604243,
0.2991297245,
-0.2422785163,
0.3165651858,
-0.1635981351,
-0.0105387047,
-0.1063483506,
0.0025094301,
-0.1118768007,
-0.1996190846,
-0.0505080298,
-0.0126424357,
0.2895014286,
0.1080949381,
0.056498155,
-0.3899311423,
-0.0709536299,
-0.2065171599,
-0.1147949547,
0.2945744991,
-0.0922334641,
-0.5483310223,
-0.0536429584,
-0.2354535609,
0.2290986627,
-0.0110399425,
0.1633171588,
-0.258361876,
0.2286835611,
-0.0755812377,
-0.1648588926,
-0.250680238,
0.2484348416,
0.0460661724,
-0.002424527,
0.1846740097,
-0.575943768,
0.1644120514,
-0.0296031013,
0.3323054314,
-0.25135234,
0.0949379951,
-0.1534490585,
0.0210906938,
0.1508962512,
-0.4861027598,
0.1240451336,
-0.1586672515,
0.0218373388,
-0.1734284014,
-0.1874533594,
-0.1731722951,
-0.0213988982,
0.0278455354,
-0.0310985222,
-0.3103383183,
-0.1054450721,
-0.1327477396,
-0.1433522701,
0.3912356794,
0.115599215,
0.2324865907,
0.0079759322,
-0.2187782824,
-0.4117312431,
-0.2179624289,
0.308475852,
-0.3918886483,
-0.6182731986,
0.3513796031,
-0.5044492483,
-0.4009487927,
0.0475197732,
0.2151392698,
0.1240805835,
0.5143633485,
0.0238783956,
0.0336520448,
-0.1428752989,
0.1807021797,
-0.3144258261,
0.09165968,
0.015675433,
0.049006816,
0.1960963011,
-0.0667600483,
-0.1699826717,
0.054724507,
-0.0005289894,
-0.2220743895,
0.1749124229,
0.1327407658,
0.0634818301,
0.7849995494,
0.3883148432,
0.310600847,
0.3129929304,
0.2840477526,
0.6152815819,
0.1349217147,
-0.092772752,
0.1380269527,
0.0194206163,
-0.0925643817,
0.1346924603,
0.0232396536,
-0.2210253924,
-0.0166210383,
-0.0366623551,
-0.3092915416,
-0.3717313409,
-0.2026934326,
-0.3159177601,
0.157216996,
0.0642261058,
0.1235330105,
-0.2987571359,
-0.1908792257,
-0.0169984475,
0.351469487,
0.2301059663,
0.2705022991,
-0.3379975855,
-0.0295765083,
-0.3026224673,
0.3595714271,
-0.0352892242,
0.4659917951,
-0.2662653029,
0.2106818259,
0.1673325598,
0.374591291,
0.4072614908,
-0.4263466895,
0.2426743507,
-0.0541131534,
0.2029174864,
0.293722868,
-0.2115205079,
0.4624214768,
0.4730284512,
-0.0399512351,
0.0854397044,
0.1279443502,
-0.174867779,
-0.4338358939,
-0.221663937,
-0.1441204846,
-0.2356078327,
0.0851392895,
0.1846871972,
-0.0517425984,
-0.1039295793,
0.3252374232,
-0.3153506517,
-0.1791087091,
-0.0511318855,
-0.1827657521,
0.1800733209,
0.0917654783,
0.0356344059,
0.3379080892,
0.0901946574,
-0.0477942973,
0.4214050472,
0.0411989987,
0.1237610057,
0.3518937826,
-0.1940191984,
0.3321697414,
-0.1683042198,
-0.2559118867,
0.4673242569,
-0.0353716463,
-0.4321638644,
-0.1290148199,
0.1249463558,
-0.2334095538,
-0.2891230285,
-0.0210470334,
-0.0685050562,
0.0058547258,
-0.2907113135,
-0.6374561787,
0.2226541936,
0.5671570301,
-0.3972545862,
0.3289406896,
-0.3693502545,
-0.3797778189,
0.1075261086,
0.1092873141,
0.7499821186,
-0.2078108191,
0.3130450547,
-0.4576829374,
0.1495299339,
-0.0146855824,
-0.3989048302,
0.0419779345,
-0.414223969,
-0.3809762001,
-0.1449598968,
-0.1103521436,
0.0486162044,
0.4917734265,
0.0318699032,
0.142492339,
-0.1179919168,
-0.0948821902,
-0.1461010575,
-0.1570738554,
-0.0780511126,
-0.3369983733,
0.268645227,
0.1036931947,
-0.292465508,
0.038319461,
-0.0258428622,
0.0023594499,
-0.1695406139,
0.2391934395,
-0.2151150554,
0.0428008959,
-0.5830403566,
0.0276749805,
-0.1792509854,
0.0034087449,
0.1712264866,
0.3849399984,
0.2264016718,
0.339225173,
-0.0134632047,
0.0257637873,
0.2369797677,
0.1699474752,
-0.2879483402,
0.1346048713,
0.2897390127,
0.1768384576,
0.0375643373,
-0.1905827671,
-0.1705693603,
-0.2960841656,
-0.3060027361,
0.2048548162,
0.0204058662,
-0.2292102426,
-0.04110194,
-0.1447504461,
0.1306888759,
0.0893274918,
0.0652522147,
0.5086283088,
0.0084821135,
0.5539224148,
-0.2621820867,
-0.3646309972,
0.050299868,
0.5522655845,
-0.0477819741,
-0.2210431397,
0.1484202296,
-0.3808463514,
-0.2166651189,
-0.1491111517,
0.2213984728,
0.1041223332,
-0.1133876964,
-0.0702700466,
0.0528912321,
-0.0642354488,
0.1708775908,
-0.4494755864,
0.0465705767,
0.1083831191,
0.1382252574,
-0.3907185197,
-0.4287424684,
-0.2864271402,
-0.3578279018,
0.2063930631,
0.3053344786,
-0.5955713987,
0.1072510108,
0.0413540304,
-0.1910179257,
-0.2428409755,
0.0665802285,
0.0913416892,
0.246642679,
0.1041267812,
-0.1178678796,
-0.1624154896,
-0.1032344401,
-0.0816649869,
-0.0287346132,
-0.1598638743,
-0.0934288651,
0.1571209729,
0.187771216,
-0.2460124195,
0.0820713639,
-0.4838792086,
-0.1269893348,
-0.444370687,
0.0597610101,
0.2401218712,
0.269798249,
0.3521517515,
0.2059801668,
0.0279864389,
-0.1935160756,
0.2300649583,
-0.13042669,
-0.1675608158,
-0.2544035017,
0.2528737783,
-0.2788150907,
-0.1030368581,
0.0131669194,
-0.0807303265,
0.1769053638,
0.0376385562,
0.0823833868,
0.0170305185,
0.0768729821,
0.1447363198,
0.2402615845,
0.0273306817,
-0.1348664463,
0.06755279,
0.3256236017,
0.0825689211,
0.1661928445,
-0.237344265,
0.3468436897,
-0.1327023357,
0.0176863596,
0.357006073,
0.2100673616,
-0.2102587968,
0.1317542344,
-0.1489014328,
0.095433861,
-0.3153631985,
0.3432016373,
-0.0471956171,
0.1139841005,
0.1144416407,
0.4226002097,
0.2717164457,
0.0656480342,
0.3585306704,
0.2171220183,
0.2283771783,
0.3618632853,
-0.318179667,
0.0836168155,
-0.6983571053,
0.1138349473,
0.0265257508,
-0.040522702,
0.304977566,
0.082814306,
0.0733667761,
-0.001171615,
-0.2486259639,
-0.0329705961,
-0.1235061213,
-0.1306838989,
-0.2032735646,
0.010620974,
0.0806913823,
0.0313840657,
-0.27322945,
-0.1574331373,
-0.2429828346,
0.2137713879,
0.2132882774,
0.0428231731,
0.2503813207,
0.0251999982,
0.1501561105,
-0.0311447456,
-0.1700298786,
-0.0418192185,
-0.577183485,
-0.1135220602,
0.2809129655,
-0.0252453554,
0.0186536107,
0.1169373393,
0.1724522412,
0.1115640774,
0.357992053,
0.0717486516,
-0.2909567952,
0.3410481513,
-0.0630937964,
-0.262201339,
0.0715563148,
0.011965137,
-0.0319209211,
-0.1076719984,
-0.1233390421,
0.0585288741,
0.073239103,
-0.0332732499,
-0.1695601195,
-0.4606761932,
0.0883861408,
-0.0230553821,
0.1516733766,
0.0533859469,
0.5730990171,
0.0757676512,
0.2085248232,
-0.4813009202,
0.0242604576,
0.3927841187,
0.3333717585,
0.3398486972,
-0.0345550776,
0.0203793794,
0.0488825589,
-0.418889612,
0.1595373899,
0.2577320933,
0.4444581866,
0.0489871204,
-0.1877273172,
0.0786526129,
-0.0804447532,
0.5692909956,
-0.2544924021,
0.3134138584,
0.3377061486,
-0.199533388,
-0.3216018081,
0.1196493953,
0.0005234573,
0.0797116905,
-0.3342708349,
0.2815949917,
0.1148245782,
0.03739582,
-0.2328618914,
-0.230946213,
0.2043285817,
0.5594164133,
0.474211216,
0.1728247404,
-0.0184823275,
0.0043151826,
0.4483695626,
-0.3441615403,
0.1336248815,
-0.1462296546,
-0.1085247844,
-0.2192166001,
-0.0158671774,
-0.5714674592,
-0.1290587634,
-0.3829490542,
0.0065427385,
-0.1274739355,
0.2369354218,
0.0231301412,
0.005163677,
-0.1058145911,
-0.0039863698,
0.2990208864,
0.2356520593,
-0.1778027564,
0.3501926064,
-0.3655160069,
-0.0733126327,
0.2907478213,
-0.2873268127,
-0.206121847,
-0.0213181935,
0.3530812263,
0.1035552621,
-0.1624487191,
0.0034140348,
0.1304531395,
0.3935120106,
-0.4170918167,
-0.0632622242,
0.0756739974,
-0.4133786857,
0.1053449363,
-0.1192173213,
0.4856012464,
-0.0002683038,
-0.1820438504,
0.0550934821,
-0.2337193191
] |
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.1335194856,
0.2638705075,
-0.088779822,
-0.0136507396,
-0.048319798,
0.1047771722,
0.3552219868,
0.1191613078,
-0.1658602953,
0.0378847495,
-0.1065240204,
-0.0248675011,
-0.0191919208,
-0.3137139082,
-0.1179801375,
0.1778143197,
0.1263328195,
0.0858632624,
0.0602514595,
-0.1085703447,
-0.1009780541,
-0.1389110386,
0.0054337829,
-0.1248303056,
-0.2158824503,
-0.1946880072,
0.2352734804,
0.2853989303,
0.0203850083,
-0.0933632851,
0.328892827,
0.5935890675,
0.108140409,
0.1202230081,
-0.0001126702,
-0.1727905422,
-0.0196034908,
-0.1369558573,
-0.0687138289,
0.1222949624,
-0.0050358921,
-0.1052321196,
-0.0802063197,
-0.1873366684,
-0.0884161592,
0.1841936707,
0.1439652294,
-0.7255416512,
0.4894119799,
0.0956627429,
0.1734696478,
-0.1860498488,
-0.3902595639,
0.0528153554,
0.1976872385,
0.0250732359,
-0.1162098721,
0.1660546958,
0.3335851431,
-0.1733829081,
-0.0796372145,
-0.0047562271,
-0.3949329853,
0.0934960544,
0.1791541874,
-0.1684727371,
-0.2764593363,
-0.4620149136,
0.091607973,
0.1591086835,
0.6701866388,
-0.1889321357,
-0.4884359539,
-0.2769804597,
0.0945889428,
0.2630772889,
0.3322440982,
0.2956196964,
-0.0702469423,
0.2943010926,
-0.4962939024,
0.0249755606,
-0.1143070385,
0.0711591169,
0.2440436184,
-0.0776517391,
-0.0221334565,
0.0635322258,
0.0589099079,
-0.074298203,
0.1298761368,
0.0513515137,
-0.281457454,
0.338003546,
-0.1441880167,
0.068385452,
-0.1546312571,
0.3203952014,
0.25610286,
0.3386798501,
0.259495765,
0.2057445645,
0.0260847062,
0.2732973993,
0.0364697874,
0.1471396685,
0.3354701102,
0.2981513143,
0.5131571889,
-0.3563097119,
-0.0789600387,
0.0803648382,
0.0015172325,
-0.3296957314,
0.0532519072,
0.2754203081,
-0.0348212831,
-0.168456465,
0.1972961426,
0.0433876924,
-0.1375851631,
-0.2175006121,
0.000687927,
0.2218639106,
0.1435801983,
-0.0419349261,
0.0506972075,
0.1569001675,
-0.0298380367,
-0.347483784,
-0.0023438372,
-0.3836154342,
-0.343767345,
0.4538428783,
0.502584517,
-0.1503937542,
0.0259819925,
0.2286189497,
0.1914964318,
-0.176215142,
0.3555214405,
-0.0703040808,
0.3695276976,
0.2953026295,
0.3104314208,
0.379047662,
0.1347995549,
-0.0384790599,
-0.1857953817,
0.2925341427,
-0.3189616501,
-0.1988265216,
0.3306161165,
0.0252363533,
-0.1294056326,
0.3491233885,
-0.4353012443,
0.0539282374,
0.4892048538,
-0.1339072287,
0.394900471,
0.2284996063,
-0.1604253501,
-0.4301353395,
-0.0970620736,
0.318761915,
-0.0068244711,
-0.0861121416,
-0.097091645,
-0.0044261087,
-0.1046243459,
0.3345022202,
-0.0875781178,
0.1819879413,
-0.0739462376,
0.1962857097,
0.4308477342,
-0.1192558855,
-0.5625241995,
0.0856463611,
0.2081539333,
0.0200197771,
0.1798257232,
0.0332900211,
0.0928125903,
-0.1795363724,
-0.0130737871,
0.3748731315,
0.1747639179,
0.2336509526,
0.1346786469,
-0.0211194977,
-0.0107626719,
-0.0737501532,
0.0162234325,
0.2922058105,
0.3899534345,
-0.2811439931,
0.2332197428,
-0.3469516337,
0.2264992595,
0.3875043392,
0.0886681825,
-0.032127358,
-0.0775924027,
-0.0125406981,
-0.4649497271,
0.3139133751,
-0.0195179507,
-0.3743115664,
0.0781526864,
-0.4427525103,
0.1527734101,
-0.305896163,
-0.0785413831,
-0.0590092465,
0.0684400052,
-0.0169347078,
-0.0626724958,
-0.2871267796,
0.1386517882,
0.3976774812,
0.1569048166,
-0.000513766,
-0.1833366007,
0.1158877239,
-0.0207362976,
-0.0901091248,
-0.2096597403,
-0.0049835425,
0.2107446492,
0.0538746938,
-0.2475263774,
0.3181377947,
0.1360018253,
0.0878940225,
-0.2036233246,
0.3133209348,
-0.0595913976,
0.1439782828,
0.0800896361,
-0.2660571635,
-0.0818468332,
-0.1320272535,
-0.2821068466,
0.4214650393,
-0.1982384324,
-0.0984294564,
-0.2274122536,
0.1985203326,
0.1358628273,
-0.0531106852,
-0.1689098328,
-0.1018535942,
0.0592444129,
0.2333419919,
0.4352437556,
0.2416635156,
0.086366415,
-0.0734826997,
0.2969389558,
0.1667920053,
0.1391648054,
-0.0248613171,
-0.1173866689,
0.0713246167,
0.268075496,
0.3193119764,
0.2627221346,
0.0815074444,
0.302985996,
-0.1794043481,
0.361769855,
-0.1280274987,
-0.0533133373,
-0.0638289303,
-0.0096189305,
-0.1516233981,
-0.2004457712,
0.0383139662,
-0.0102993995,
0.2832244039,
0.0139393657,
0.031058209,
-0.353372097,
-0.0851113126,
-0.1569660902,
-0.1439566314,
0.3133100867,
-0.0409687832,
-0.5186009407,
-0.033724986,
-0.2119197994,
0.2901797295,
-0.0679180026,
0.2043987364,
-0.2976178825,
0.27228567,
-0.1464714557,
-0.2100936174,
-0.1833208203,
0.1580686122,
0.0497790985,
0.0190461874,
0.3156297803,
-0.5992067456,
0.1461790949,
-0.0014800727,
0.25872913,
-0.1778864861,
0.0717148632,
-0.1856784821,
0.0394683406,
0.0848229304,
-0.4404532909,
0.082705304,
-0.1666045189,
-0.0552185439,
-0.1495183706,
-0.2587297559,
-0.1490294039,
0.0165524036,
0.0491510108,
0.0126488693,
-0.2662487626,
-0.0743442997,
-0.1646042764,
-0.1609424055,
0.5063874722,
0.1258133203,
0.2180755287,
0.0177704506,
-0.2047576457,
-0.4433538318,
-0.2076893449,
0.3096781969,
-0.3285375834,
-0.5994927883,
0.3129225373,
-0.4392918646,
-0.296284467,
-0.0024913996,
0.1177171171,
0.0771656185,
0.5081127882,
0.0141369104,
-0.0999133512,
-0.1493715644,
0.2239398956,
-0.2263968885,
0.1315017939,
0.0092313215,
0.0806773603,
0.1833283603,
-0.0216767341,
-0.1074554697,
0.0599433817,
-0.0806834772,
-0.3560804725,
0.1849568933,
0.0448394753,
0.2210549265,
0.6883471012,
0.4353191555,
0.3087538779,
0.1947025359,
0.3311053514,
0.6988671422,
0.0714707226,
-0.0967982113,
0.1601402014,
-0.059936747,
-0.1391473711,
0.1530291736,
0.0268655866,
-0.1599032581,
0.0362284034,
0.0209257379,
-0.2974897027,
-0.5224306583,
-0.1170668602,
-0.3631199896,
0.0746194422,
0.0841094777,
0.0950963423,
-0.3080647588,
-0.2294778526,
0.0215060301,
0.3599595129,
0.1409595162,
0.353849709,
-0.4579847753,
0.0931678861,
-0.2501486242,
0.3669548333,
-0.0359290726,
0.4248612523,
-0.1644568145,
0.1730358005,
0.120890826,
0.3693689704,
0.2832069993,
-0.3664074838,
0.241229102,
-0.0656468719,
0.1311781406,
0.3079437912,
-0.2037862539,
0.4263640344,
0.3683969975,
0.0024620015,
0.0910816342,
0.0815368146,
-0.1299033761,
-0.4899199009,
-0.1961279809,
-0.0934181213,
-0.1836801618,
0.1793940067,
0.1602243632,
-0.1438170969,
-0.1086396277,
0.2946444452,
-0.3695820868,
-0.2043014914,
0.0676576719,
-0.2385043949,
0.2018127292,
0.1579189003,
-0.0005503707,
0.2536375523,
0.0071785338,
-0.0459021404,
0.5038201809,
-0.0325041562,
0.2236606777,
0.3921172321,
-0.326241374,
0.3009207845,
-0.2534970939,
-0.2326681465,
0.3481917083,
0.0109595992,
-0.3378421962,
-0.1636283994,
0.1595124155,
-0.2159740329,
-0.3587738276,
-0.0627601445,
-0.1337771416,
0.0246380717,
-0.2204284668,
-0.7126748562,
0.1923998892,
0.6057901978,
-0.3955473602,
0.2806619406,
-0.2725965977,
-0.3773385882,
0.1679946631,
0.1162307486,
0.7774207592,
-0.2349475622,
0.4384993315,
-0.4347288311,
0.1221261695,
0.0675325915,
-0.5041332841,
0.0852133185,
-0.4016420245,
-0.3306937218,
-0.1211035699,
-0.1156784073,
0.0600075871,
0.491994977,
0.0954434946,
0.1253553331,
-0.0263801515,
-0.0819217861,
-0.1130219325,
-0.209417522,
-0.1573780477,
-0.3598350286,
0.2407250404,
0.1178231984,
-0.2239520848,
0.0005098209,
0.0178836472,
0.0252511762,
-0.1955069304,
0.1852472872,
-0.2485398948,
0.0230551288,
-0.6235015392,
0.0564119369,
-0.146919474,
0.0111748427,
0.1415767074,
0.3558233082,
0.2799705565,
0.3346354067,
0.0078627821,
0.0068320706,
0.2641919851,
0.2242461145,
-0.2496596873,
0.0437002406,
0.359723419,
0.2290327102,
0.1369512081,
-0.1850256473,
-0.1416848302,
-0.328404367,
-0.3017077148,
0.1812121272,
0.0832704306,
-0.2500029504,
-0.0394958854,
-0.104453966,
0.1008087546,
0.1058466882,
0.0466522351,
0.460209161,
0.0222136267,
0.5224809051,
-0.3837369084,
-0.3255946636,
0.0544605143,
0.5755968094,
-0.0124595845,
-0.2675660551,
0.1389061362,
-0.3579819798,
-0.2112158537,
-0.1237872988,
0.207386896,
0.1584111452,
-0.1332008243,
-0.108258158,
0.0072027184,
-0.1046755686,
0.2162418514,
-0.4664977193,
0.1011897326,
0.1262036413,
0.2242448777,
-0.2977727056,
-0.3513055444,
-0.2399712056,
-0.2813029885,
0.2754711509,
0.3540192842,
-0.5409365296,
0.0350808948,
0.0511462167,
-0.2095494717,
-0.1660881042,
0.0907018557,
0.1038900986,
0.277842015,
0.1022332311,
-0.0826601386,
-0.2200216651,
-0.1028363258,
-0.0692287982,
-0.0679979324,
-0.1563989371,
-0.1039412469,
0.1390435398,
0.1900464594,
-0.3333749175,
0.1476511806,
-0.440285176,
-0.0977087468,
-0.52494663,
0.0726314634,
0.3600780964,
0.2148394585,
0.303368032,
0.1483830959,
0.1028189436,
-0.2563405037,
0.2047589719,
-0.1927189231,
-0.1573556513,
-0.223170355,
0.258831948,
-0.2905419469,
-0.0344234779,
0.0884251744,
-0.0316478685,
0.2469404191,
0.0783762112,
0.1219610423,
0.0382647663,
0.032822594,
0.1121720001,
0.2635775805,
-0.0373720713,
-0.1741435528,
0.0290922523,
0.3594096005,
0.0863359571,
0.1663935781,
-0.221291855,
0.3022619188,
-0.1214047,
0.0444685295,
0.424145788,
0.2005655468,
-0.2796057165,
0.0410670638,
-0.1848449111,
0.1399805844,
-0.2930705845,
0.4141856432,
-0.0449207202,
0.1124623716,
0.0260011554,
0.2568045557,
0.2728777826,
0.1806210876,
0.3987118006,
0.1678881347,
0.2269150317,
0.3246506453,
-0.3882222772,
0.109043166,
-0.7499383688,
0.1160008982,
0.064317137,
0.0552677363,
0.292470932,
0.0047917031,
0.0324183516,
0.0339513421,
-0.2421953231,
0.0731694847,
-0.1951651871,
-0.1071305424,
-0.1231283545,
0.0984258056,
0.0617455989,
-0.0580441803,
-0.2758309245,
-0.2101798356,
-0.2737852037,
0.2228965908,
0.2543888092,
0.1076312959,
0.1795516312,
-0.0354108736,
0.1680824459,
-0.0305831395,
-0.2526370883,
-0.1355954111,
-0.4439837337,
-0.1797694266,
0.2402365804,
0.0428737924,
0.1080206558,
0.0699904636,
0.2003018856,
0.1465201676,
0.3104409873,
0.1460893154,
-0.31919083,
0.2480014265,
-0.063952513,
-0.2943791151,
0.0317080319,
0.032566689,
-0.038811855,
-0.0634445995,
-0.1798167527,
-0.0688496828,
-0.0215029716,
-0.0553792417,
-0.087847814,
-0.391761899,
0.1457396895,
0.0017105788,
0.2160774469,
0.0725500286,
0.5099501014,
0.1127274483,
0.203433454,
-0.4516067505,
0.0393085256,
0.4775199294,
0.2224102914,
0.3928315043,
-0.1754792929,
0.0194798075,
0.0481337607,
-0.4098706245,
0.1693515182,
0.1614996791,
0.3672335446,
-0.0502836816,
-0.2409629226,
0.213797316,
-0.0342042558,
0.4339048564,
-0.2005826384,
0.2635149658,
0.3118848801,
-0.1893595159,
-0.3202570081,
0.1547317505,
-0.1253810078,
0.1053419486,
-0.3782764673,
0.1674530953,
0.0702299103,
0.0624998063,
-0.1400254369,
-0.2013214827,
0.2447038293,
0.5015900731,
0.4458538592,
0.2797786593,
-0.0513321981,
0.0455646813,
0.3394956291,
-0.3362246454,
0.1756868958,
-0.1920134872,
-0.0833619386,
-0.2430040538,
0.0093130097,
-0.6937603951,
-0.1220570505,
-0.3894575834,
-0.0246610306,
-0.1187719032,
0.1842211783,
-0.0180332959,
0.0751315206,
-0.144479081,
0.0782493353,
0.3316349685,
0.3493756354,
-0.1586184204,
0.4514402449,
-0.4411893785,
-0.0188557766,
0.255427897,
-0.3255093396,
-0.1499677896,
-0.0959339514,
0.3641744256,
0.1132621393,
-0.1313418746,
0.0271326154,
0.1304661036,
0.3607618213,
-0.3851848245,
-0.1099028364,
-0.0116724018,
-0.362973839,
-0.0249138251,
-0.1187262833,
0.3934585154,
0.0186431706,
-0.2428623885,
0.1357966065,
-0.2689590156
] |
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.1802948266,
0.1989276856,
-0.1055656224,
-0.0858238414,
0.0109793898,
0.09721376,
0.3096800148,
0.0719594508,
-0.1649405956,
0.0873356387,
-0.0806746036,
0.0011490993,
0.0652460903,
-0.2650191784,
-0.0587540343,
0.1390803158,
0.1544881463,
-0.0080777034,
-0.0103487149,
-0.0530850738,
-0.1247112006,
-0.0811095983,
-0.0939105749,
-0.0244817659,
-0.3202098608,
-0.2104619741,
0.2709258199,
0.2456602156,
-0.1097437814,
-0.1701464057,
0.2531245947,
0.5244038105,
0.0950801745,
0.136222437,
-0.000110292,
-0.2203177214,
0.0572098643,
-0.0983937532,
0.0717844144,
0.1836276799,
-0.0081605315,
-0.0578649901,
-0.1526502818,
-0.1333855838,
-0.1902176291,
0.2176805735,
0.1347751766,
-0.6735302806,
0.3757869303,
0.1801062226,
0.228476584,
-0.166888684,
-0.2878262997,
0.0412439145,
0.2450850606,
0.053614378,
-0.1640153974,
0.0123868622,
0.3500932753,
-0.216044113,
-0.0395845436,
0.033809606,
-0.2767974734,
0.0918722376,
0.1112409979,
-0.0900151581,
-0.2701262832,
-0.5084248185,
0.1664371043,
0.09999834,
0.7544163465,
-0.1295633614,
-0.4987754524,
-0.0465831682,
0.1072055921,
0.3296330273,
0.3315171003,
0.3367733359,
-0.0377410576,
0.30570364,
-0.5110288262,
0.0716740265,
-0.1549806297,
0.0514566936,
0.2104094028,
0.0108155906,
-0.0395896509,
0.069024533,
0.0063467785,
-0.1661574543,
0.1708119661,
0.1088742018,
-0.3357989788,
0.3499301672,
-0.1366454959,
0.023440145,
-0.1685889661,
0.3993991613,
0.2073737979,
0.3033180833,
0.2516773939,
0.2496393174,
0.1149907112,
0.228181392,
-0.0468488634,
0.198066026,
0.4191330373,
0.2782428861,
0.6045432687,
-0.2715250552,
-0.1065616161,
0.01411625,
0.0908901244,
-0.3845101595,
0.0430958346,
0.3155739903,
0.0347556099,
-0.2312794626,
0.2005327791,
0.0753684789,
-0.1098826453,
-0.1989783049,
0.0171885639,
0.3396973908,
0.1132365465,
-0.0913887396,
0.0945196748,
0.1875851303,
-0.0253980756,
-0.347327739,
-0.0281970296,
-0.3111819625,
-0.3306745887,
0.4159271121,
0.4743272066,
-0.1079855487,
0.0150207281,
0.2490671277,
0.1299452484,
-0.1909893304,
0.3414690793,
-0.0159483254,
0.4194333851,
0.307403326,
0.2932573855,
0.2807787657,
0.0849475861,
-0.0250009373,
-0.1067663133,
0.3163594306,
-0.2679613233,
-0.1825824082,
0.3279307187,
0.0949656665,
0.0148494914,
0.261182785,
-0.3177099824,
0.0577969626,
0.4880381823,
-0.0669546649,
0.4080175459,
0.3107379973,
-0.1341860592,
-0.4094078839,
-0.0629705638,
0.2717763782,
-0.0865588263,
-0.0086271986,
-0.109344624,
-0.0392959788,
-0.0511425398,
0.3505496383,
-0.036303848,
0.1679962575,
-0.1379121393,
0.2179731727,
0.4348883033,
-0.0785188153,
-0.5814694166,
0.0801317096,
0.1961142123,
-0.1239167452,
0.1525455862,
0.0180693157,
-0.0493483096,
-0.1270514429,
-0.011266239,
0.3844028711,
0.2174697071,
0.2480630279,
0.0529648364,
0.0200453848,
-0.0610314012,
-0.0057232305,
0.0757830665,
0.3318834305,
0.3329184055,
-0.3726900816,
0.1883389354,
-0.3001168668,
0.2619222403,
0.4566673934,
0.1620623618,
-0.0956025124,
-0.0418220237,
-0.04471948,
-0.37417382,
0.250623405,
-0.150073871,
-0.3351978064,
0.0283068828,
-0.5107879639,
0.0638446659,
-0.2787100077,
-0.1423334777,
-0.0906038508,
0.1143663228,
-0.0131131187,
-0.016682148,
-0.2777716517,
0.2108006328,
0.3133116364,
0.2674197853,
-0.019690834,
-0.1041233689,
0.1147963256,
-0.1456025392,
-0.1046618,
-0.188064009,
-0.0570568033,
0.268210113,
0.0339884944,
-0.3065498769,
0.3243801594,
0.1456219703,
0.0264426712,
-0.1777466238,
0.1663871855,
-0.0653919503,
0.1011270881,
0.0385002196,
-0.1685673296,
-0.0843003169,
-0.1399027109,
-0.2933357954,
0.4097214937,
-0.0711340457,
-0.1476328373,
-0.2306483239,
0.2377381325,
0.1563987732,
-0.0517024212,
-0.0797411352,
-0.184927851,
0.0297500677,
0.1552095264,
0.359089911,
0.152093932,
0.0944395587,
0.0355227739,
0.3280806541,
0.1983677894,
0.1446080655,
-0.0338482559,
-0.0787685812,
0.1132240444,
0.2217769921,
0.3202684522,
0.2825590074,
0.0687994286,
0.2878521681,
-0.1768565476,
0.3473736346,
-0.192675665,
-0.0030038953,
-0.0718391985,
-0.0644501001,
-0.1540561765,
-0.1414106935,
-0.0584210493,
-0.0871271864,
0.3273699284,
0.039938584,
0.114734605,
-0.3470173478,
-0.1586538404,
-0.1861210763,
-0.2396654785,
0.3650265336,
-0.0057391077,
-0.4932682216,
-0.0867698938,
-0.0944303796,
0.1654312611,
-0.112911582,
0.2546660304,
-0.1431787908,
0.1912022084,
-0.0893221498,
-0.0425658599,
-0.2824662328,
0.1512668133,
0.0966495425,
0.0732805133,
0.2500421107,
-0.5685631633,
0.1663989127,
0.0087674633,
0.3142614067,
-0.3341978788,
-0.0151752979,
-0.1984587908,
0.071762085,
0.0794693753,
-0.4089491069,
0.0436943099,
-0.1686535478,
-0.0708967,
-0.0594972894,
-0.3048058748,
-0.2399096042,
0.032829918,
0.0480146743,
-0.1145294607,
-0.2582411766,
-0.0789981335,
-0.1354628652,
-0.1996631324,
0.4575276971,
0.1265864074,
0.1798208356,
-0.1231061965,
-0.2027317286,
-0.4167492092,
-0.1443788856,
0.2437558025,
-0.3575891852,
-0.6189974546,
0.3860658705,
-0.5305786133,
-0.4261040688,
0.0611992031,
0.2009065002,
0.1119748503,
0.4502739608,
0.0272936746,
-0.0719336867,
-0.2201868892,
0.1699349582,
-0.1490105391,
0.1046856493,
0.0219526943,
0.0574291721,
0.0926087871,
0.0207040012,
-0.18796359,
0.0426697657,
-0.0683083534,
-0.2640702724,
0.1049339771,
0.1235697865,
0.2320937812,
0.6044669747,
0.4137209356,
0.3512720168,
0.2618798018,
0.323171705,
0.5492522717,
-0.0017728247,
-0.1161276251,
0.1286391467,
-0.0301053971,
-0.0633834675,
0.1106949151,
0.0715709925,
-0.2163660824,
0.0260059983,
-0.0334098563,
-0.2192905843,
-0.5093735456,
-0.1887930483,
-0.3285443187,
0.0789109766,
0.0744802356,
0.1274672598,
-0.2376732528,
-0.1932528466,
0.0826272517,
0.3176459074,
0.1346714199,
0.3178752363,
-0.5666815042,
0.1274270713,
-0.3356289268,
0.4427449107,
-0.0463517308,
0.4909642935,
-0.2584384382,
0.157198444,
0.2063757479,
0.3330773413,
0.3566016853,
-0.5286799073,
0.2724567056,
-0.0511133298,
0.1126455292,
0.2861062884,
-0.2046381831,
0.4098227918,
0.4641552866,
0.1529791653,
0.1525816619,
0.1273507178,
-0.1262141615,
-0.4393823147,
-0.3390442431,
-0.0751289949,
-0.2391103506,
0.1486614794,
0.185857743,
-0.1596785337,
-0.0376082398,
0.3153555691,
-0.3611545265,
-0.1233720407,
-0.0250226632,
-0.2818653584,
0.2162919492,
0.0639569908,
-0.0931848586,
0.2871542871,
-0.0401852056,
-0.009804368,
0.3608041406,
0.0214159563,
0.2246807218,
0.3886464536,
-0.2325317413,
0.3059430122,
-0.1744606793,
-0.3109086752,
0.3567635119,
0.0151990764,
-0.3405252099,
-0.1527342945,
0.1999453753,
-0.1115408465,
-0.2377290726,
-0.1410803795,
-0.1133166626,
0.0559860617,
-0.2763209045,
-0.5705084205,
0.1906405836,
0.5891581774,
-0.3231375515,
0.2600388527,
-0.2334688753,
-0.353117466,
0.2026069313,
0.1034099609,
0.8043718338,
-0.1996925771,
0.3696452677,
-0.4210778475,
0.029993549,
0.0329407938,
-0.4663685262,
0.0739387572,
-0.4748353362,
-0.3609428406,
-0.1139463037,
-0.136166662,
0.0748213083,
0.500800252,
-0.050908789,
0.0705023855,
-0.0446627885,
-0.1175931692,
-0.1240570024,
-0.1433368921,
-0.2436746359,
-0.2804815769,
0.2834149301,
0.1546862423,
-0.2207599282,
0.0418036729,
-0.0105152316,
-0.0082706958,
-0.1930466294,
0.2263318896,
-0.2536787987,
0.0976538807,
-0.6266341209,
0.1544732898,
-0.170022577,
-0.0480091274,
0.1589401215,
0.3637182117,
0.3779082596,
0.3805487752,
-0.0493059978,
0.1027273983,
0.3861985803,
0.1945715547,
-0.2120801061,
0.0180721842,
0.2800193131,
0.1179427207,
0.0594934672,
-0.2931741774,
-0.1358926445,
-0.3070361912,
-0.3386483192,
0.1563059986,
0.0740317702,
-0.2711719275,
-0.0631194487,
-0.1831537783,
0.0566380322,
0.0295950323,
0.1210526749,
0.4231934249,
0.0002314225,
0.5362322927,
-0.3272689879,
-0.3025857806,
0.0578073822,
0.6893191338,
-0.0827623159,
-0.1979084611,
0.1402797252,
-0.2300559133,
-0.3200797439,
-0.2083720118,
0.1428573728,
0.1729994714,
-0.1417030096,
-0.0427537784,
0.0286192559,
-0.1275182217,
0.29970029,
-0.4429403245,
0.0804361105,
0.1046560407,
0.1733713448,
-0.3032202125,
-0.4135518074,
-0.295355916,
-0.2933431566,
0.224607259,
0.2591469288,
-0.5468912125,
0.1559989452,
0.1168902442,
-0.2534262836,
-0.1681209803,
-0.0050446391,
0.1027849391,
0.1480890214,
0.0008397861,
-0.1242499053,
-0.1824803054,
-0.0637660846,
-0.0312928595,
-0.0848480016,
-0.2207485884,
-0.0021492168,
0.1094231755,
0.2109241486,
-0.4119977355,
0.1522824317,
-0.3853232861,
-0.132598877,
-0.4285099804,
0.047591418,
0.3590775132,
0.1528202593,
0.3160887361,
0.1928795576,
-0.0775801986,
-0.2047158778,
0.1588989496,
-0.1796808988,
-0.2339083701,
-0.2131632715,
0.1666119248,
-0.3221326768,
-0.0782365799,
0.1922110915,
-0.0624019317,
0.126866892,
0.109414123,
0.1152406037,
-0.0662823766,
-0.0342522711,
0.0675667822,
0.25665465,
-0.0771354809,
-0.1399175376,
0.0049638748,
0.3268656433,
0.1283868253,
0.1042005494,
-0.3107624352,
0.3365097642,
-0.1364426017,
0.0646826327,
0.2991359234,
0.1867591441,
-0.3084295988,
0.1326436996,
-0.0844069198,
0.1173597574,
-0.3579933345,
0.4131155312,
-0.1350712329,
0.0431739464,
0.0543685146,
0.303265959,
0.2324017733,
0.0289037954,
0.3037881255,
0.2282188982,
0.1596158743,
0.3071665168,
-0.3268910646,
0.1433588564,
-0.6421843767,
0.1418136507,
0.0488682762,
-0.0195023119,
0.2297235578,
0.1978283823,
0.0500347205,
0.0529763699,
-0.3077774942,
0.002078712,
-0.1514120698,
-0.1449219882,
-0.0856479853,
0.0482414514,
0.1191724688,
0.0386534929,
-0.2337673604,
-0.2303375304,
-0.1831653267,
0.1543702781,
0.2487836182,
0.1142755896,
0.1897889972,
0.0508774184,
0.0736700743,
0.0393192209,
-0.2107704282,
-0.076549381,
-0.4362018406,
-0.1638538837,
0.259552151,
0.0762883425,
0.0896851718,
0.1124021485,
0.1307534277,
0.2092394531,
0.2867302597,
0.0271609873,
-0.3119154572,
0.3066921234,
-0.0135364123,
-0.3385614157,
0.1068589389,
0.0755264983,
-0.0768267661,
-0.0926588699,
-0.1684386879,
0.028938733,
0.1210224777,
-0.0640373006,
-0.1738276929,
-0.474242866,
0.1610173285,
-0.0720794722,
0.1171805933,
0.0234369189,
0.4542990029,
0.0079748146,
0.216209203,
-0.5413376093,
0.050131835,
0.4407141805,
0.2609604299,
0.4043425918,
-0.1206956804,
-0.019532688,
-0.0704270825,
-0.3925547004,
0.1042104885,
0.217050463,
0.4251803458,
-0.0046345554,
-0.2288286239,
0.1126694009,
-0.0804097205,
0.5458397865,
-0.198847428,
0.2065758407,
0.4043275416,
-0.2793475389,
-0.2090272605,
0.2195937037,
-0.0404687263,
0.1201100647,
-0.3593004644,
0.2756618261,
0.1133940443,
0.1277198195,
-0.1560975015,
-0.1314349174,
0.1653331071,
0.5161162019,
0.4236020744,
0.2357951254,
-0.0478284135,
-0.0321175344,
0.4266486466,
-0.3159962893,
0.1327676922,
-0.1734095812,
-0.0589503832,
-0.1084842682,
0.097188592,
-0.5752665401,
-0.2216771543,
-0.3395993114,
0.0396902114,
-0.1851832867,
0.264490962,
0.046112977,
0.1106880456,
-0.1216791049,
0.0893345624,
0.273863703,
0.2784029841,
-0.1784673035,
0.366481334,
-0.4719303548,
-0.1327185333,
0.2813082337,
-0.1820608377,
-0.1882599592,
-0.0503821857,
0.372369945,
0.1919572204,
-0.199826628,
0.1045136601,
0.0814953446,
0.2974182367,
-0.3783482909,
-0.0964143947,
0.113846153,
-0.3751121759,
0.0435810983,
-0.2107974738,
0.443998009,
0.0698248968,
-0.2243979573,
0.0163832903,
-0.2619253397
] |
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.2242729068,
0.2261131853,
-0.0817530602,
0.0094760917,
0.0471358933,
0.0149760246,
0.2634161115,
0.0719241053,
-0.1914959848,
0.040730115,
-0.1341532171,
0.0863358751,
0.0493939035,
-0.3142187893,
-0.1167453006,
0.1358982921,
0.152926147,
-0.0015893206,
-0.0006153788,
-0.0963857099,
-0.2239347547,
-0.0862401426,
-0.1034870669,
-0.0336772278,
-0.3453719914,
-0.2179557979,
0.2119509578,
0.2314936966,
-0.088236481,
-0.1905018985,
0.2426155061,
0.6062230468,
0.1800535917,
0.1983392984,
-0.0001155413,
-0.2169193029,
0.0884054825,
-0.095858112,
0.05022908,
0.2252649665,
0.0133234784,
-0.0652762353,
-0.1900796592,
-0.1833729148,
-0.2362521887,
0.1567797959,
0.100357376,
-0.71826756,
0.3611293137,
0.200263083,
0.1723333299,
-0.2232728899,
-0.2373959571,
0.0888241827,
0.2409685701,
0.1156112701,
-0.0989540219,
0.012623135,
0.3320396841,
-0.1668726951,
-0.0690129697,
0.0343176574,
-0.2808451056,
0.0031792633,
0.1546427757,
-0.0779459104,
-0.2983674109,
-0.5014808178,
0.123865597,
0.1186875701,
0.7641480565,
-0.1171294004,
-0.5640263557,
-0.0496229306,
0.1295875013,
0.2901588082,
0.3258307874,
0.3054419756,
-0.0033057407,
0.3387885392,
-0.5569102168,
0.0916793123,
-0.2294591963,
0.101244688,
0.1967000961,
0.0366981737,
-0.0670408756,
0.1275733858,
0.0062288288,
-0.1861501038,
0.2320862412,
0.0242000297,
-0.3480368257,
0.37919572,
-0.0957939178,
-0.0125215203,
-0.1537094861,
0.5009946823,
0.23905617,
0.2913285792,
0.1713190526,
0.2743306458,
0.0506136715,
0.1730330586,
-0.0316944681,
0.181521982,
0.4626691043,
0.2795348167,
0.5615985394,
-0.2898007929,
-0.1274804622,
0.020111056,
0.0461160578,
-0.3072866499,
0.0547320694,
0.278627634,
0.0398364887,
-0.174011007,
0.2315384895,
0.0633213669,
-0.1945549101,
-0.1972172111,
0.0998361334,
0.3442130387,
0.0919309705,
-0.0721917152,
0.0562525019,
0.1736784428,
-0.0946670845,
-0.3568929434,
-0.0090118237,
-0.3280627429,
-0.2786853313,
0.3977697492,
0.4268733859,
-0.0590405948,
0.048290655,
0.222862184,
0.1398228258,
-0.1615174115,
0.4451646507,
-0.1049080119,
0.4017588496,
0.3126301765,
0.2725574374,
0.2442822158,
0.0619801395,
0.0393460169,
-0.1138393432,
0.3360450268,
-0.3299657702,
-0.1983571649,
0.3492940068,
0.0604474209,
-0.04218027,
0.2782867551,
-0.2858784497,
0.0682792068,
0.4992926121,
-0.0701061711,
0.3984584212,
0.1958021075,
-0.2189560235,
-0.4167910814,
-0.0710382164,
0.2780775726,
-0.0480383299,
-0.0400208756,
-0.1446886212,
-0.0054473039,
0.0121442005,
0.3304815292,
-0.0306328814,
0.2323588282,
-0.1623290777,
0.1956813037,
0.4786149561,
-0.1494104862,
-0.6601566076,
0.0933334976,
0.1913597882,
-0.1107337698,
0.1814982295,
0.0880111605,
-0.0511977002,
-0.1090390086,
0.0170317777,
0.2962627709,
0.1734891534,
0.2679624557,
0.078213349,
0.0145116448,
-0.1027065217,
0.0111192614,
0.0351287834,
0.2638351917,
0.3305090964,
-0.3714772463,
0.249385789,
-0.3268910348,
0.2354724407,
0.4526794553,
0.2369100899,
-0.1237698048,
0.008880429,
0.0077164024,
-0.3304776549,
0.2219386697,
-0.1120772809,
-0.3366325498,
0.0353858098,
-0.5332359672,
0.1161447912,
-0.2586068213,
-0.183501184,
-0.1028005034,
0.0589740425,
-0.0131906532,
0.0431490839,
-0.2665456533,
0.1984103471,
0.2996811867,
0.2209109664,
0.0467695855,
-0.1186486781,
0.0867328197,
-0.0954209864,
-0.130991295,
-0.2401003242,
-0.0371331349,
0.2725088596,
-0.0368211754,
-0.2458098084,
0.3138568103,
0.2480552197,
-0.0437140986,
-0.2244316489,
0.2249998748,
-0.0020514205,
0.0791355669,
0.0931485966,
-0.1511029601,
-0.083827123,
-0.1197992861,
-0.2827211022,
0.5314030647,
-0.0913301855,
-0.1963918954,
-0.2848784328,
0.219909206,
0.1736141443,
-0.0392815843,
-0.1375670433,
-0.1251329184,
0.0259198435,
0.232484743,
0.387634635,
0.1938304007,
0.1323325932,
0.0504519418,
0.3756451607,
0.1494711041,
0.1309056133,
-0.0374020711,
-0.0467795245,
0.0487799346,
0.2571571171,
0.2776411176,
0.3799566627,
0.0739181861,
0.276994586,
-0.1387663335,
0.3776810765,
-0.1041439921,
-0.0102293938,
-0.0151651129,
-0.0896696448,
-0.1636364758,
-0.2192456871,
-0.0727820322,
-0.0225233138,
0.2986071408,
0.0683602989,
0.1479005367,
-0.3589765429,
-0.1564720273,
-0.1277645528,
-0.26560238,
0.3322516084,
0.0047391206,
-0.4301032126,
-0.0467855819,
-0.1731005609,
0.2626761198,
-0.0556141809,
0.2959814966,
-0.1558343172,
0.215838626,
-0.0157288909,
-0.0303071681,
-0.1898554564,
0.1892219335,
0.0821964666,
0.0232588723,
0.2347505093,
-0.6215869188,
0.1095521003,
-0.0536569767,
0.2752891779,
-0.3888057172,
-0.0542005152,
-0.1635514945,
0.0965679213,
0.0827458948,
-0.3341888785,
-0.0747670233,
-0.2251955271,
-0.0046242587,
-0.0955509692,
-0.3325316012,
-0.2238927186,
0.0089834929,
0.0110310577,
-0.0332572833,
-0.202995196,
-0.0610420965,
-0.1555443257,
-0.12675336,
0.4859424233,
0.1549121141,
0.2311934531,
-0.2037693262,
-0.2212673724,
-0.32932055,
-0.1553501785,
0.1997087896,
-0.3468120098,
-0.6803939342,
0.3059538603,
-0.5067751408,
-0.3965725899,
0.0117283687,
0.1094519123,
0.1193607897,
0.507933557,
0.0697839558,
-0.211274296,
-0.1897012293,
0.2861463428,
-0.2172394991,
0.1488742083,
-0.0102193803,
0.0184297636,
0.1693855822,
-0.0138922557,
-0.1542498171,
0.045857586,
-0.039150741,
-0.2779387832,
0.1855638623,
0.1891299039,
0.1423270851,
0.5497563481,
0.4713602066,
0.3665598333,
0.2696022987,
0.2861096859,
0.6051007509,
0.0783637911,
-0.1019397452,
0.1641361266,
0.0785059333,
-0.0938904807,
0.1588464975,
0.0909419507,
-0.1556551158,
0.0585832447,
-0.1055933833,
-0.2563829124,
-0.4986242056,
-0.1460413039,
-0.2895288169,
0.0465916805,
0.0067776069,
0.2124722898,
-0.2476471215,
-0.2021622658,
0.0607077852,
0.2961671948,
0.1324814111,
0.285815835,
-0.6697198153,
0.112668328,
-0.3476343751,
0.4643511176,
-0.0250687432,
0.4630531371,
-0.1830043495,
0.1925446391,
0.2000425011,
0.3045373857,
0.4123747349,
-0.5408958793,
0.303276062,
-0.0348495618,
0.0447063446,
0.2485872507,
-0.1507054567,
0.3441007137,
0.5285430551,
0.1163994893,
0.1270213574,
0.1303965002,
-0.1236463934,
-0.4273569584,
-0.2987101078,
-0.0837025419,
-0.2671336532,
0.1920254827,
0.1025148779,
-0.0579173751,
-0.0449823588,
0.2800469398,
-0.3102293313,
-0.1342487931,
-0.0060632229,
-0.3104098141,
0.1651643813,
0.0825788006,
-0.1498120129,
0.3525903523,
-0.0445757397,
-0.0529520661,
0.3878892064,
-0.0095423684,
0.3630966246,
0.4198487401,
-0.2888559401,
0.2272986323,
-0.1554993093,
-0.344656527,
0.3685614169,
0.0035256818,
-0.2869548798,
-0.1578525007,
0.1833105683,
-0.0863536149,
-0.2582293153,
-0.1071281433,
-0.1099066734,
0.1533145458,
-0.2869217992,
-0.6173260212,
0.1457747817,
0.6142493486,
-0.3409032226,
0.251521796,
-0.145755291,
-0.40505445,
0.2226863801,
0.1497235596,
0.8280978203,
-0.1241629124,
0.4132513106,
-0.39656353,
0.0532722473,
0.1600636989,
-0.4766871929,
0.090437144,
-0.5270590782,
-0.3178491294,
-0.1073175669,
-0.1308601946,
0.1058211774,
0.4674874246,
-0.0953696296,
0.1056402028,
-0.0690560341,
-0.1904557049,
-0.1384858787,
-0.1392823607,
-0.2735176086,
-0.2676412463,
0.2913936973,
0.1141193509,
-0.1776749492,
0.0626797229,
-0.0040101893,
0.0608896464,
-0.218362093,
0.205176115,
-0.2044144869,
0.0277179033,
-0.6304149628,
0.1333509088,
-0.1440239102,
-0.0387885049,
0.1345829219,
0.4161990881,
0.384662807,
0.3360757828,
-0.0493357517,
0.0620470867,
0.3749551177,
0.2493372858,
-0.1366826296,
-0.0668107569,
0.3273585141,
0.1755493581,
0.0858670473,
-0.2430314869,
-0.1404038519,
-0.2752973437,
-0.2996566296,
0.0528531149,
0.0927358717,
-0.3621002138,
-0.0694536343,
-0.2669884562,
0.0355919674,
0.081780836,
0.0584820732,
0.4753652215,
-0.0615738705,
0.5999322534,
-0.3380893767,
-0.3707460761,
0.0232542418,
0.6508815885,
-0.0748979449,
-0.1919885427,
0.1610782743,
-0.2853006721,
-0.2563262582,
-0.1611594707,
0.2668004036,
0.306718111,
-0.1084320396,
-0.1093946546,
0.0621914193,
-0.0928494111,
0.2604231238,
-0.5158433318,
0.0780071169,
0.1946417391,
0.0990702808,
-0.2784626484,
-0.4766999483,
-0.2796083987,
-0.1793208271,
0.1743406504,
0.2712532282,
-0.5941865444,
0.1345149279,
0.0228960346,
-0.2046210617,
-0.1761201918,
0.0375185534,
0.0708984137,
0.1485583931,
0.0247304905,
-0.1150834039,
-0.1891159713,
-0.0816254765,
-0.1084239781,
-0.1095860749,
-0.151859656,
-0.0716800466,
0.1274791062,
0.1931975037,
-0.4675963223,
0.177401185,
-0.4139451385,
-0.1233777106,
-0.4254437387,
0.0573094413,
0.3909037411,
0.173175931,
0.3108252287,
0.2425537854,
-0.0621314086,
-0.2998076081,
0.193140924,
-0.2430419624,
-0.2243490815,
-0.2455174029,
0.2626127005,
-0.3039442599,
-0.0883889645,
0.2513174117,
-0.08788459,
0.1320443302,
0.0770523101,
0.0945400447,
-0.0262545832,
0.0228615925,
0.1102326214,
0.2923842072,
-0.055225756,
-0.1660211682,
-0.032302171,
0.3039819598,
0.0958503559,
0.1196826398,
-0.329782486,
0.2782696486,
-0.1658331007,
0.0262983963,
0.3702871501,
0.08672221,
-0.2481268197,
0.085660845,
-0.1553162932,
0.1704512984,
-0.2783287764,
0.390242368,
-0.1039143652,
0.0281763077,
0.0727220625,
0.3354697526,
0.2010548413,
0.0278961919,
0.2980983555,
0.1519477367,
0.2082487047,
0.3124467134,
-0.2757875919,
0.1694066823,
-0.6644004583,
0.0975839198,
0.0966767669,
-0.0346903503,
0.2268093079,
0.166210711,
0.0640402958,
-0.0367966704,
-0.2975321412,
0.0596018061,
-0.1610556245,
-0.1909190565,
-0.1152936965,
0.0046009198,
0.0813323855,
0.0455227941,
-0.2006154954,
-0.262235105,
-0.1746823192,
0.0928317457,
0.2766188085,
0.0742260218,
0.1658160239,
-0.0089807566,
0.0760787427,
0.0218041167,
-0.2504439354,
-0.041088976,
-0.4445384443,
-0.1119050905,
0.2693794966,
0.0846510679,
0.119827643,
0.1264668852,
0.1806230247,
0.1719167829,
0.3239748478,
0.0822093114,
-0.2945540547,
0.2347810119,
0.0127740465,
-0.3522436321,
0.0530847758,
0.0332131088,
-0.0139331706,
-0.1016919017,
-0.1442117393,
-0.0461672656,
0.0976244807,
-0.0147448219,
-0.1317892671,
-0.4960689247,
0.1650498211,
-0.009007208,
0.1675389707,
0.0311257504,
0.4447351396,
0.0160278119,
0.2173566371,
-0.4712946713,
0.0246177837,
0.3944930434,
0.2075600624,
0.3714950085,
-0.1532782912,
-0.0514093488,
-0.0501778722,
-0.3450665772,
0.1659595966,
0.2271415591,
0.2972994149,
-0.0110219773,
-0.2264148146,
0.0516585037,
-0.1125047952,
0.4493535459,
-0.1799068153,
0.261947304,
0.3611071408,
-0.3241617084,
-0.2158735693,
0.2193956524,
-0.0090488698,
0.100638032,
-0.4241229296,
0.3100613654,
0.0644675493,
0.0631120652,
-0.1299868226,
-0.1061271727,
0.151374042,
0.5122234821,
0.3870996535,
0.2622056007,
-0.0057734139,
0.0156654119,
0.460868299,
-0.2425299287,
0.1981349289,
-0.2716001272,
-0.0081658568,
-0.114951238,
0.1225867569,
-0.5734188557,
-0.2123507261,
-0.3278992176,
0.024995774,
-0.1814749837,
0.2328228951,
0.0309175402,
0.1897112727,
-0.1288588941,
0.0232265107,
0.2941921651,
0.3019982874,
-0.1238589659,
0.3862369657,
-0.4685360491,
-0.0766075477,
0.3101242781,
-0.2580964267,
-0.1188230887,
-0.1312925369,
0.354113698,
0.1892220825,
-0.2718225121,
0.13668634,
0.0733442754,
0.3832210302,
-0.3898985088,
-0.1043067425,
0.0537057333,
-0.3147776425,
0.050225541,
-0.1929300576,
0.4530379474,
0.0467531681,
-0.234621197,
0.0810263455,
-0.233127445
] |
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.1857260764,
0.1737923771,
-0.1075276956,
-0.1851040274,
-0.0081703244,
0.0839047283,
0.3565378189,
0.0757277459,
-0.1108319759,
0.105255045,
-0.2269389182,
0.1543242037,
0.1039312333,
-0.2934491932,
-0.0649804547,
0.2179356813,
0.0900316089,
-0.035147883,
-0.0519520938,
-0.0089747608,
-0.1390154809,
-0.1062898189,
-0.0973075107,
-0.0220767632,
-0.2167212665,
-0.1977167428,
0.1695959717,
0.3388965428,
-0.0508378558,
-0.2708570361,
0.1947233379,
0.5540147424,
0.0244191475,
0.1041316316,
-0.0001054582,
-0.1182966009,
0.0259446427,
-0.0766805261,
0.0837027207,
0.2544777989,
0.0616562441,
-0.0599539801,
-0.2419357002,
-0.1721670628,
-0.2474576682,
0.1950845569,
0.1271022111,
-0.5841304064,
0.3706355393,
0.2619088888,
0.2632212043,
0.0041864291,
-0.2159233689,
0.0827071592,
0.2322051674,
0.0394570343,
-0.1844674647,
0.0040547661,
0.370559454,
-0.081773214,
-0.0294608213,
0.0447108522,
-0.1966823936,
0.0799382627,
0.1410069764,
-0.0492860079,
-0.2201640904,
-0.4966883361,
0.1710478812,
0.0686404109,
0.7374111414,
-0.0505576618,
-0.5258097649,
0.0515311211,
0.163348794,
0.2687793672,
0.3548975885,
0.3101954758,
-0.0543667749,
0.3213355839,
-0.4402196705,
0.1428733021,
-0.2138577402,
0.0231555998,
0.2160204053,
0.1043667942,
-0.0138584934,
0.1185606793,
0.1312628239,
-0.1723820269,
0.1273884326,
0.2220982909,
-0.2841743529,
0.4184727669,
-0.0803541839,
0.021350503,
-0.1795770377,
0.427711904,
0.1930829734,
0.1829822212,
0.2210576534,
0.263105154,
0.039935641,
0.2481010407,
-0.1107326895,
0.0876155198,
0.3066402674,
0.3309399486,
0.600415051,
-0.2753514349,
-0.1773976386,
0.036139451,
-0.0040827319,
-0.4007754624,
-0.0075755343,
0.2617324591,
0.1033145934,
-0.2411531508,
0.2197200656,
-0.0143740252,
-0.0503944494,
-0.1352397799,
0.0554777384,
0.4130482674,
0.2159235328,
-0.2010888457,
0.132997945,
0.1610402465,
0.0002656356,
-0.2362117469,
-0.0096216258,
-0.2826405168,
-0.3536854982,
0.3084275723,
0.4239218831,
0.0281934477,
-0.0059310682,
0.2135393322,
0.1640730202,
-0.2162477821,
0.3558657765,
0.0013644211,
0.4887397587,
0.3780560493,
0.2298047692,
0.12427973,
0.0713278577,
0.0070001185,
-0.1356550306,
0.3754259348,
-0.1685843021,
-0.1559193134,
0.2985616028,
0.1440180838,
0.0517650247,
0.2353744209,
-0.1760043502,
0.0034032119,
0.4222275615,
0.0192789286,
0.4730713367,
0.2634384632,
-0.181155324,
-0.3831007481,
-0.0662589818,
0.1607259214,
-0.1245952249,
-0.0031764582,
-0.2033124864,
-0.122533679,
-0.0638835132,
0.3225446045,
-0.0349493697,
0.1460776627,
-0.153002888,
0.1799975485,
0.4943960905,
-0.1054200679,
-0.5366948843,
0.0179221332,
0.1420944035,
-0.157510072,
0.255360961,
0.069940865,
-0.0862175748,
-0.1205490828,
-0.0840221196,
0.3386438489,
0.2401406318,
0.1952783167,
0.0759224147,
0.0618523955,
-0.1156334803,
0.0749075711,
0.0716744214,
0.3632018566,
0.32135728,
-0.3289200366,
0.2820542157,
-0.3049744368,
0.2371453643,
0.4326985776,
0.2295792103,
-0.0457222909,
0.0391494669,
-0.000619635,
-0.2805826366,
0.2985618412,
-0.2028408051,
-0.2408688217,
0.0562753938,
-0.5901846886,
0.0555276014,
-0.2122091651,
-0.1397848278,
-0.1616671681,
0.1587006152,
0.0242922548,
0.1034166217,
-0.3360015452,
0.223439008,
0.2746564448,
0.2683154047,
-0.0121356975,
-0.0398345813,
0.0267173201,
-0.2164894044,
-0.1205909252,
-0.1934050322,
0.0145759806,
0.184365198,
-0.0178951789,
-0.2853235304,
0.3535106182,
0.185228914,
0.0203634482,
-0.2001339495,
0.1085041463,
-0.1056201532,
0.105009608,
0.0359734222,
-0.1866854131,
-0.1000034958,
-0.0848838165,
-0.2744742334,
0.3847480118,
-0.084466815,
-0.1805413216,
-0.2337636352,
0.2074716687,
0.1745807827,
-0.0609587245,
-0.0851848796,
-0.1573994905,
-0.026576329,
0.1765721589,
0.3182982206,
0.1446730793,
0.1370998472,
0.0576272197,
0.2981216013,
0.1863223016,
0.065452382,
-0.0301001556,
-0.0131266192,
0.1375167668,
0.2089310139,
0.2619200647,
0.34031865,
0.124061361,
0.3443063796,
-0.0757717863,
0.3184885383,
-0.0739093125,
0.0338747464,
-0.1110212952,
-0.1256038398,
-0.1951061934,
-0.183031857,
-0.0904527083,
-0.1362376511,
0.2723580003,
0.0790064335,
0.1283611357,
-0.3007153869,
-0.1703161299,
-0.1353114247,
-0.2051405609,
0.3513928652,
0.0678393245,
-0.5054529309,
-0.089657858,
-0.0516055152,
0.2065719664,
-0.1915787756,
0.3344318867,
-0.1828151792,
0.1299618185,
0.0263538063,
-0.0370129123,
-0.2518057227,
0.1204162687,
0.1502988935,
0.1103516519,
0.1937011182,
-0.5752269626,
0.1569733322,
-0.0448521972,
0.2256272137,
-0.3547332883,
0.0017738789,
-0.1311609894,
-0.071556516,
-0.0430170633,
-0.3177593052,
-0.0399483144,
-0.1978436708,
-0.0918909013,
-0.0097179078,
-0.3843922615,
-0.3132211268,
-0.0307985283,
0.1463948935,
-0.0677186102,
-0.3414185345,
-0.0593515858,
-0.1389717013,
-0.2776055932,
0.4889322519,
0.1193414778,
0.2346739173,
-0.073122263,
-0.3302903175,
-0.298604697,
-0.0375005454,
0.1694010347,
-0.4259341955,
-0.5024003386,
0.3395011425,
-0.5373858809,
-0.4263420999,
0.1487535536,
0.2579756677,
0.1109810919,
0.4555159211,
0.0572566912,
-0.1329281926,
-0.1570354998,
0.2110279202,
-0.2334003448,
0.1151973084,
0.0440223739,
0.039984148,
0.0330163538,
-0.0285791494,
-0.1677332222,
0.0434171334,
-0.0440918803,
-0.25628528,
0.0299935751,
0.1130886972,
0.1858663857,
0.5306419134,
0.2862325311,
0.3638167977,
0.2622098327,
0.2171131521,
0.6401688457,
0.0089031085,
-0.0704261065,
0.1620159298,
0.0473679192,
-0.0726462752,
0.2092021406,
0.0582452118,
-0.2456909716,
0.090099901,
-0.0096495822,
-0.1603547782,
-0.5348587036,
-0.1364097297,
-0.2738780975,
0.0883173347,
-0.0140957721,
0.1447200477,
-0.2262012661,
-0.1098508686,
0.1252887398,
0.2826580107,
0.0938108936,
0.2822676301,
-0.587738812,
0.1400512904,
-0.4001904428,
0.458743751,
-0.1089240834,
0.4167457521,
-0.2380623668,
0.0556817278,
0.2281846106,
0.2692906857,
0.371799469,
-0.5058968067,
0.3724427223,
0.0563729107,
0.1023865342,
0.2538189888,
-0.1848619133,
0.337785542,
0.4753629565,
0.1743140668,
0.2008109093,
0.1267890632,
-0.07152237,
-0.3775748909,
-0.3198559582,
-0.0379981399,
-0.2707745731,
0.0847480893,
0.1233546063,
-0.2259891927,
0.0749151334,
0.265307188,
-0.3210914433,
-0.1286651343,
0.0373396277,
-0.2165565193,
0.2111470997,
-0.0313397348,
-0.0530684516,
0.2663188875,
0.0370253883,
-0.0229362547,
0.2862891257,
0.027782917,
0.2220786512,
0.4201598763,
-0.236947,
0.3318755627,
-0.1702908427,
-0.3368821442,
0.2943886817,
0.0241815597,
-0.2756513357,
-0.2143303305,
0.2107576728,
-0.1110052094,
-0.1910562813,
-0.0304514263,
-0.1182826236,
0.0806013867,
-0.2883736193,
-0.4726791382,
0.0979198441,
0.5448188782,
-0.3314679265,
0.2728617191,
-0.1408361942,
-0.386978507,
0.2660950124,
0.1094387844,
0.7270158529,
-0.274971664,
0.3488993347,
-0.4370079041,
0.0407638103,
0.0323102735,
-0.4445151091,
0.0848010033,
-0.4014923573,
-0.4133335948,
-0.059545245,
-0.1893136501,
0.0402193442,
0.4990397692,
-0.1465302408,
-0.0222716313,
-0.017848596,
-0.0763650686,
-0.1630129665,
-0.1716433465,
-0.3598257899,
-0.2808664441,
0.2287330925,
0.2174026668,
-0.1889201701,
0.095136553,
-0.030471161,
0.0031737573,
-0.1627364457,
0.203864634,
-0.2175653279,
0.0892555416,
-0.5943811536,
0.137636438,
-0.2181157321,
0.0248078257,
0.0880712271,
0.3157131374,
0.4517294466,
0.4367557466,
0.0026659034,
0.1191590801,
0.441731751,
0.1977397799,
-0.1906712204,
-0.077394031,
0.2027618289,
0.1221277863,
0.079196915,
-0.283409059,
-0.1204708368,
-0.4084977508,
-0.2066504806,
0.1360191554,
0.042676501,
-0.2759868801,
-0.006843254,
-0.1643594652,
0.0046575591,
0.021864377,
0.1564434767,
0.3987327218,
-0.2099606097,
0.4780231714,
-0.4339786172,
-0.3344344497,
0.0862937868,
0.6166931391,
-0.0899293423,
-0.1760613024,
0.1232264042,
-0.2064268291,
-0.2042391151,
-0.2376882285,
0.1317475587,
0.2023619115,
-0.1186873242,
-0.002915211,
0.1298508495,
-0.2015671581,
0.2526234984,
-0.4055042565,
0.0515465289,
0.2109724283,
0.0356709063,
-0.2672993541,
-0.5579943061,
-0.2802607119,
-0.2669657767,
0.2188714445,
0.2362940609,
-0.4425868392,
0.1286579669,
0.0033921599,
-0.3072440028,
-0.1627129465,
-0.0362460688,
0.1224088371,
0.1837943345,
-0.0766963586,
-0.0325235538,
-0.1841504425,
-0.0003422014,
-0.0184252374,
-0.0941527635,
-0.256641686,
-0.0072456263,
0.0827957168,
0.1926662326,
-0.4056096673,
0.1834537834,
-0.4027768373,
-0.1051963717,
-0.370708406,
0.116996944,
0.3733254373,
0.1056438535,
0.2204139382,
0.1463718116,
-0.0642921329,
-0.0891338065,
0.136105746,
-0.2207280844,
-0.2519524097,
-0.2602117956,
0.2186692655,
-0.3524954617,
-0.0847534388,
0.2697779834,
-0.0807429105,
0.1106369942,
0.1064038128,
0.1349806488,
0.069293946,
-0.0848778337,
-0.0026870705,
0.3689288497,
-0.0710169226,
-0.0355719253,
-0.0149398893,
0.307022959,
0.1688725054,
0.0794649273,
-0.30349195,
0.281503737,
-0.2608578205,
0.1138421297,
0.3206258416,
0.1516405344,
-0.3100247979,
0.1678883135,
-0.055331964,
0.1427599192,
-0.2854297757,
0.3725973666,
-0.0370525718,
-0.0242446139,
0.1064663231,
0.3017581701,
0.2455577701,
0.0067353249,
0.1786153466,
0.1392192096,
0.2059951276,
0.316149205,
-0.3779200912,
0.2491223514,
-0.5594156981,
0.0484790578,
0.0082321092,
0.0325462818,
0.311419189,
0.1086303815,
-0.0149194561,
-0.0677375048,
-0.3752582371,
-0.0246970244,
-0.0611319318,
-0.2230535448,
-0.0955308378,
0.0446858332,
0.1791996956,
-0.0076643676,
-0.1667661965,
-0.1541599333,
-0.1814344227,
0.0794107541,
0.1991384327,
0.1623672843,
0.2552838326,
0.0390834697,
0.0343714356,
-0.0218187794,
-0.2530500293,
-0.0737134367,
-0.4660958946,
-0.1147787049,
0.3790413439,
0.0014309864,
0.13229011,
0.0263404138,
0.0815610141,
0.2408293039,
0.2220017314,
0.07824561,
-0.4063872695,
0.3051211834,
-0.0724512786,
-0.3299736083,
0.1291552484,
0.0806962848,
-0.1295103729,
-0.1849514544,
-0.2925867736,
-0.0761936009,
0.1665280461,
-0.0796485692,
-0.1766748726,
-0.5326675177,
0.1927375793,
-0.0364256427,
0.1345302761,
0.058358226,
0.3334975839,
0.0147844069,
0.1852364987,
-0.4901875854,
0.077378273,
0.3475423753,
0.2903096676,
0.4328681529,
-0.1794338226,
0.0067895837,
-0.058816649,
-0.3755056858,
0.0790170953,
0.2403366566,
0.2012204677,
-0.0435046405,
-0.236894384,
0.1139915735,
-0.1731887609,
0.6218095422,
-0.2811033726,
0.152700454,
0.363765806,
-0.2187969238,
-0.1694777906,
0.2325692475,
-0.0128169898,
0.1089788377,
-0.4467694163,
0.2351072133,
0.1090222299,
0.1445739269,
-0.0753419325,
-0.1449449658,
0.1799434572,
0.4712294042,
0.461651206,
0.2216765732,
-0.0527186245,
0.0086714327,
0.3859561682,
-0.3913453519,
0.0796375573,
-0.2222419381,
-0.0789974034,
-0.0957824588,
0.0782980472,
-0.5545232296,
-0.2305321693,
-0.2888010144,
0.0386645198,
-0.1613692343,
0.2081175297,
0.1303802431,
0.1568283439,
-0.1873614043,
0.1222098321,
0.3609290421,
0.2784614265,
-0.0892702714,
0.282922864,
-0.4997111261,
-0.2178987563,
0.2488849312,
-0.1825583428,
-0.2323472947,
-0.0642230809,
0.3706894517,
0.189425379,
-0.2345672697,
0.1013489068,
0.1262748539,
0.2508757412,
-0.3542096317,
-0.1510212272,
0.0408625044,
-0.3003998995,
0.0062545091,
-0.2502032518,
0.3976643682,
0.0391336977,
-0.2391091585,
-0.0354225524,
-0.2917317152
] |
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.120744206,
0.2110621333,
-0.0841049701,
0.0468185395,
-0.0028634807,
0.1459374279,
0.3854050934,
0.1391603351,
-0.2011682987,
-0.058567524,
-0.1354779601,
-0.0176229533,
0.1156199127,
-0.2905228734,
-0.039950747,
0.1175883561,
0.1337424815,
0.0035110153,
-0.0366870761,
-0.0839242116,
-0.0998411328,
-0.0752496868,
-0.0850521177,
-0.0726405829,
-0.3615029752,
-0.1329762042,
0.2650980055,
0.2255143523,
0.0090470947,
-0.124605149,
0.3047428429,
0.4333622158,
0.0784686208,
0.1299977303,
-0.0001106509,
-0.1399454623,
0.0487939641,
-0.0642537773,
0.0905672014,
0.271478802,
-0.1321596354,
-0.0761750042,
-0.1686171144,
-0.1069585234,
-0.1106691584,
0.2972261012,
0.1226568744,
-0.5791888833,
0.4974910319,
0.1974840164,
0.2274943441,
-0.0538508222,
-0.3413307071,
0.05404355,
0.2926835716,
0.0809757784,
-0.224364236,
0.0552522093,
0.2692472637,
-0.1958611012,
-0.0183215328,
0.0551862791,
-0.2950376868,
0.1153830662,
0.1548876911,
-0.1219129339,
-0.2390941679,
-0.5055350065,
0.1950545013,
0.0620005615,
0.740183413,
-0.0504379235,
-0.4978570044,
-0.1324620545,
0.0188214369,
0.253105551,
0.4132611156,
0.3396547735,
-0.0014014579,
0.2719788551,
-0.5397584438,
0.0072859824,
-0.1382891834,
-0.0447915308,
0.1522356868,
-0.000798095,
-0.0132666491,
0.0848155469,
-0.0201911032,
-0.0922667682,
0.0907264724,
0.0848191455,
-0.377209574,
0.3344871998,
-0.1749618351,
0.0818714201,
-0.1774611026,
0.4131331444,
0.1411213875,
0.2401568741,
0.2163678855,
0.2027888596,
0.0941767395,
0.2004716098,
-0.0032463484,
0.1715728641,
0.3708484769,
0.3696023822,
0.5744594336,
-0.3903862834,
-0.1783676445,
0.0079548089,
0.0443070568,
-0.326736182,
0.1036925241,
0.2564810514,
0.0188132375,
-0.2269120514,
0.1517629176,
0.1165380701,
-0.050862018,
-0.2100033462,
0.0428454243,
0.2555077374,
0.1683596224,
-0.1430663466,
0.0302895308,
0.1445009112,
0.0335977077,
-0.4030349255,
-0.029799398,
-0.3423153162,
-0.4116489887,
0.3594988585,
0.4779579341,
-0.1639431119,
-0.0407778472,
0.2220550179,
0.106182836,
-0.2478541881,
0.2698286474,
-0.0383962095,
0.4771812558,
0.3560425639,
0.1411653459,
0.343885988,
0.0771400481,
-0.0027548,
-0.0662941411,
0.3606115878,
-0.278952986,
-0.062312264,
0.3091769516,
0.0600037202,
-0.0259724967,
0.2341599762,
-0.3002971113,
0.0653685778,
0.6256068349,
-0.1201740503,
0.4150091708,
0.3077583909,
-0.1959587187,
-0.3834023476,
-0.1492618769,
0.3160620332,
-0.1199642941,
-0.0305184126,
-0.0605194271,
-0.0397675484,
-0.0460436903,
0.2801168859,
-0.0383948386,
0.1791476607,
-0.0919907987,
0.1846494079,
0.4149960876,
-0.0262843743,
-0.5820004344,
0.106918633,
0.1509170383,
-0.1628606319,
0.1318412572,
-0.0172967669,
0.0163430125,
-0.0730526,
-0.1057640761,
0.3387132287,
0.1975998729,
0.2817473114,
0.0935708731,
0.112493962,
0.0462467559,
-0.0897382498,
0.1349194646,
0.4027232528,
0.2795729041,
-0.2379642129,
0.1736053824,
-0.2297310829,
0.300124824,
0.4829810858,
0.0882579833,
-0.1560758352,
0.0094195269,
-0.0881858468,
-0.4463416338,
0.3059566021,
-0.1769649982,
-0.3649231493,
0.0936230272,
-0.3864361644,
0.0234629512,
-0.2765290737,
-0.210459426,
-0.082470037,
0.0991924182,
0.0023036115,
-0.0160413459,
-0.3887531459,
0.2274429798,
0.3831128478,
0.3045083284,
-0.0300991591,
-0.0952218175,
0.1234667972,
-0.1274683028,
-0.0749269277,
-0.2616178393,
-0.0406633392,
0.2922343612,
0.0081635639,
-0.3218151927,
0.2308073938,
0.1162157506,
0.0567142069,
-0.0873667896,
0.2493586242,
-0.0352322161,
0.080702275,
0.0428195968,
-0.1840928495,
-0.0539491773,
-0.132583946,
-0.2853812873,
0.2740258574,
-0.0370529145,
-0.065147534,
-0.2375504971,
0.2129856795,
0.1421752572,
-0.0171990842,
-0.0711247101,
-0.1782418042,
-0.0635960996,
0.1644784212,
0.3153994381,
0.2228889614,
0.1195312738,
0.0457765311,
0.4026433825,
0.2261162698,
0.1156605929,
-0.0225614086,
-0.1593441218,
0.0662745982,
0.1717033982,
0.3607624471,
0.2226927578,
0.0145555213,
0.3567923307,
-0.2121685892,
0.2847138643,
-0.1805048883,
0.0212032273,
-0.0329970904,
-0.0282048341,
-0.1503201723,
-0.0930586308,
0.0097617842,
-0.1050757915,
0.3722707629,
0.1679377705,
0.091438815,
-0.3406540453,
-0.10411264,
-0.207618162,
-0.161651209,
0.2695325613,
-0.0192017723,
-0.6123401523,
-0.0851012394,
-0.159694165,
0.1629977226,
-0.046583619,
0.1571590602,
-0.2691049576,
0.2040268332,
-0.0234535597,
-0.1180556715,
-0.3213475943,
0.161380738,
0.0332060419,
0.0537652522,
0.2560736835,
-0.6495659351,
0.0917300209,
0.0269915983,
0.318598479,
-0.2326245904,
0.0595847666,
-0.1462278217,
-0.0715486407,
0.0393101797,
-0.5172537565,
0.1141472757,
-0.1451076418,
0.0379496291,
-0.0977478772,
-0.2473942041,
-0.2224613726,
0.0385752097,
0.055155687,
-0.1070948541,
-0.3245080709,
-0.0422688723,
-0.0262890384,
-0.1569161117,
0.4347930551,
0.0526706129,
0.1734730899,
0.1191672236,
-0.3077766001,
-0.3521287441,
-0.2285964191,
0.2458476126,
-0.4041653275,
-0.5424070954,
0.3612723351,
-0.4819198549,
-0.4319616556,
0.0786879659,
0.2185780704,
0.07978829,
0.4152201712,
0.0438002199,
0.0829957575,
-0.2696129382,
0.1614712775,
-0.1929750293,
0.0766385794,
0.0515768602,
0.0490500852,
0.1112639308,
-0.0858582631,
-0.1944166422,
0.1011619568,
0.0200057812,
-0.2241318673,
0.03237262,
-0.0041682925,
0.1705231667,
0.6693533659,
0.3900607228,
0.2593131661,
0.2666668594,
0.3642525673,
0.5709923506,
0.0490257144,
-0.1328872442,
0.119095102,
-0.0469400808,
-0.0885547921,
0.0905674025,
0.0463614464,
-0.2562758625,
0.0302773714,
0.065087378,
-0.2295382917,
-0.4630314708,
-0.2507557869,
-0.3004627824,
0.1445184648,
0.1581034064,
0.1250151694,
-0.2361825854,
-0.1631699055,
0.0586481169,
0.2605682611,
0.201503247,
0.2332779467,
-0.3842125237,
-0.0104053579,
-0.2581267655,
0.3752669394,
-0.0234397985,
0.5265199542,
-0.2363999635,
0.110847868,
0.1992040873,
0.3797491193,
0.4119972885,
-0.4367415607,
0.3121190369,
-0.0290368199,
0.1729658693,
0.3494870365,
-0.2548167109,
0.4342043102,
0.4451816976,
0.0964424163,
0.1208937094,
0.1503414512,
-0.166015476,
-0.4023330808,
-0.2793962657,
-0.0991647914,
-0.1978134811,
0.105961822,
0.3193879724,
-0.0468384027,
-0.0331533141,
0.3301813602,
-0.3447498679,
-0.1954696029,
-0.0105115473,
-0.1184763908,
0.1609706581,
0.0516066998,
-0.058589749,
0.2994740009,
0.0600553937,
0.0566074401,
0.4806615114,
0.0394468382,
0.025030965,
0.3715109825,
-0.1879870594,
0.3247096241,
-0.1371188164,
-0.2970528901,
0.3379128277,
0.0407543108,
-0.3488021791,
-0.1530903131,
0.1046258211,
-0.2581835389,
-0.2618082762,
-0.1563233882,
-0.1067790613,
0.0492527299,
-0.2082597911,
-0.4934577942,
0.2734441459,
0.4977817833,
-0.3501681685,
0.2535853982,
-0.3135163784,
-0.3273329139,
0.1499072313,
0.0324313045,
0.7552210093,
-0.2470965087,
0.3169736862,
-0.4600428939,
0.0671674386,
0.0082000233,
-0.3994583488,
0.1234069467,
-0.4250825644,
-0.3580509126,
-0.1449173391,
-0.1411126107,
0.0188520476,
0.4696406722,
0.0408214033,
0.0398944467,
-0.1510103047,
0.0215854682,
-0.0914277136,
-0.2567692399,
-0.0955882296,
-0.3043407202,
0.312451452,
0.1515037715,
-0.2343553007,
0.0990852416,
-0.0298338179,
-0.0536012948,
-0.2279220521,
0.2225685716,
-0.3397305608,
0.129185617,
-0.5191613436,
0.1301490813,
-0.1092737764,
0.0138143748,
0.2091049403,
0.2999209762,
0.3164101243,
0.3617787957,
-0.0635986254,
0.1356318146,
0.3436042368,
0.2180137038,
-0.2584341466,
0.1038962007,
0.295452565,
0.1615243554,
0.0394163281,
-0.2853000462,
-0.193338722,
-0.2738268971,
-0.3235787749,
0.2683522999,
0.0029196562,
-0.1989192069,
0.0242784694,
-0.1108782068,
0.0610020757,
0.015559718,
0.1157344878,
0.4238665402,
-0.0209258758,
0.5243256092,
-0.3454038203,
-0.3492099643,
0.0638429672,
0.6376701593,
-0.070753254,
-0.1771101952,
0.1935825944,
-0.2559057772,
-0.2988439798,
-0.1964824498,
0.1373316646,
0.0616033971,
-0.1859365255,
-0.0401697308,
0.0337331779,
-0.1001525372,
0.2225742042,
-0.4149356782,
0.0018223557,
0.0836657435,
0.0938209072,
-0.3515955806,
-0.4222252071,
-0.3398018777,
-0.4331280589,
0.1447085589,
0.20510979,
-0.4737239778,
0.2301024199,
0.0923269838,
-0.2330987155,
-0.2326958776,
0.0179570317,
0.1307042241,
0.2646752,
-0.0388007499,
-0.0975530297,
-0.2362687737,
-0.0860922337,
0.0690362751,
-0.0464721546,
-0.2174895406,
-0.0203859881,
0.13343817,
0.2556907833,
-0.3523869812,
0.0947977901,
-0.3680505455,
-0.131171301,
-0.423109889,
0.0421785489,
0.307008028,
0.1483243406,
0.3742548227,
0.1887088418,
-0.0083831232,
-0.1244739443,
0.1481426209,
-0.1677150875,
-0.2091802061,
-0.2064442188,
0.1940436065,
-0.2729392648,
-0.0500818938,
-0.0063160025,
-0.0616183095,
0.0653188676,
0.0550925285,
0.1459689438,
-0.0709645748,
-0.0067334622,
0.1386047006,
0.2372832894,
-0.0020308495,
-0.05026979,
-0.0103899948,
0.2375590205,
0.1221281961,
0.1217859387,
-0.2690327466,
0.3627373874,
-0.1349639744,
0.0576026738,
0.287604332,
0.232062459,
-0.2794463038,
0.1833700091,
-0.0390092991,
0.1056974977,
-0.3609683812,
0.473005414,
-0.0594375655,
0.1213217154,
0.1009883285,
0.4183327854,
0.2128691077,
-0.0196252577,
0.3656490445,
0.3269254565,
0.1012690812,
0.2761338353,
-0.3488723934,
0.1409066021,
-0.6575964689,
0.0969428122,
-0.0386149809,
0.016813986,
0.3265793622,
0.0776371062,
0.0090592895,
-0.0321244672,
-0.2968238592,
-0.1123805046,
-0.0842022002,
-0.1260810643,
-0.1141326278,
0.1189673543,
0.1017138809,
0.0481322408,
-0.2513363957,
-0.1284193546,
-0.1908626407,
0.2366960496,
0.1894706786,
0.0225431491,
0.231084615,
0.0273271799,
0.070667766,
-0.0191343799,
-0.2209810019,
-0.0542263985,
-0.513969183,
-0.118132174,
0.2671554983,
0.0219152961,
0.0516739562,
0.111573875,
0.0948627591,
0.1615169048,
0.2507717311,
0.0109937415,
-0.3054790199,
0.459289521,
-0.1178686023,
-0.3537316918,
0.0937660784,
0.0210206844,
-0.0784111246,
-0.1089816689,
-0.2171055526,
0.1453210115,
0.1375288367,
-0.0040111504,
-0.2561236024,
-0.5012044311,
0.0770843327,
-0.0805310756,
0.1889168173,
0.0708744079,
0.5467098355,
0.0331713296,
0.2029752284,
-0.5516828895,
0.0514182299,
0.4038560987,
0.3221229613,
0.4221483171,
-0.1119193137,
-0.0375203416,
0.0698340535,
-0.3635553122,
0.1241147518,
0.2484863997,
0.5065734386,
0.0020052865,
-0.187355727,
0.1179126427,
-0.2155748308,
0.6327931881,
-0.2546353936,
0.2672395408,
0.3509069681,
-0.2299675047,
-0.2000049949,
0.1187215894,
-0.0796079561,
0.1035528854,
-0.3836973011,
0.3240480423,
0.2162730694,
0.0956885964,
-0.2002372891,
-0.2255230248,
0.1838059425,
0.4727129638,
0.4594869912,
0.2286715209,
0.0339511819,
0.0351209566,
0.3650694788,
-0.4535733461,
0.0547582731,
-0.1416040808,
-0.0921010971,
-0.2004779577,
0.0867915452,
-0.5620109439,
-0.1265318245,
-0.3722981811,
0.0174255408,
-0.199178949,
0.2697783411,
0.0173300207,
0.022968851,
-0.2298801243,
0.09924189,
0.3050501943,
0.2027695775,
-0.1115299612,
0.3502514362,
-0.4840327203,
-0.1511732936,
0.3006495833,
-0.260047406,
-0.328569591,
-0.0133437663,
0.3732891679,
0.1472628266,
-0.2172844559,
0.0106928647,
0.0626192093,
0.3245000839,
-0.3747301698,
-0.0860441476,
-0.0225114785,
-0.3646338284,
0.0916029438,
-0.1782129407,
0.5489762425,
-0.009465564,
-0.2097593099,
0.072080031,
-0.2157584429
] |
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.111795634,
-0.0612361021,
0.0407365933,
-0.0061200699,
0.1279415488,
0.3894425333,
0.0571594238,
-0.2127813995,
-0.041988574,
-0.1921854615,
-0.1231594011,
0.1095726043,
-0.3343216777,
-0.0680717602,
0.147234574,
0.1823890507,
-0.0031142049,
-0.0365217179,
-0.126374796,
-0.1284441352,
-0.0820219517,
-0.0372604132,
-0.0927574337,
-0.4490078688,
-0.1368953139,
0.2483736575,
0.1558466703,
-0.0073176734,
-0.0654336512,
0.2889896035,
0.5932966471,
0.2336147577,
0.1448649615,
-0.0001169936,
-0.1180790514,
0.0391271003,
-0.1211668104,
0.0457086414,
0.250094831,
0.0250781476,
0.0906370655,
-0.1391557157,
-0.0956830755,
-0.1904149055,
0.3318996429,
0.1194252744,
-0.5785187483,
0.5322912335,
0.1401566267,
0.1309339106,
-0.0141240545,
-0.3408097029,
0.1006267518,
0.209419474,
0.1773295254,
-0.140035972,
0.0186302401,
0.3194203973,
-0.2108979225,
-0.0711343735,
0.0976836085,
-0.2137304991,
0.0867350698,
0.1340917051,
-0.0724969655,
-0.1330475658,
-0.5008396506,
0.107686989,
0.0051325317,
0.7109180689,
-0.1423663944,
-0.6123548746,
-0.0560645089,
-0.0337140411,
0.3846221864,
0.3383272886,
0.2856698334,
-0.0450286418,
0.3755659163,
-0.5367850065,
0.0684915185,
-0.2287131846,
-0.0421610922,
0.1386981905,
0.2050119489,
-0.0096681416,
0.0889964551,
-0.0827851295,
-0.0961589813,
0.2455016971,
-0.0053519942,
-0.300726831,
0.3485352993,
-0.1820780635,
-0.0426301174,
-0.2202084959,
0.3356887102,
0.1667660773,
0.3436244428,
0.1889272928,
0.1737202704,
0.1336094737,
0.2200422138,
0.0078021735,
0.2346308231,
0.3791342378,
0.5106114745,
0.5242033601,
-0.3071646392,
-0.2008765936,
-0.035266377,
0.0575919189,
-0.2570673227,
0.0307379439,
0.3571112752,
-0.0152627565,
-0.1888881475,
0.2196756005,
-0.0349315181,
-0.0666397065,
-0.2599708438,
0.0711566657,
0.3590391278,
0.1452924907,
-0.0390979312,
0.0123909637,
0.1415419877,
-0.0037328526,
-0.3380563259,
-0.0130783748,
-0.3680549264,
-0.3254832327,
0.4648860097,
0.4442015886,
0.0891532078,
0.0396743789,
0.1346454769,
0.2065699399,
-0.2064385265,
0.3750050962,
0.0013635717,
0.4003737569,
0.4353658259,
0.2459950894,
0.3363814354,
0.0151282549,
-0.0809629261,
-0.1440074891,
0.3134815991,
-0.2428767085,
-0.193125695,
0.4719358981,
0.0360614546,
-0.0436912738,
0.2789412737,
-0.266882807,
0.0263299122,
0.665494144,
-0.0902682915,
0.4075945914,
0.3725253344,
-0.1105859578,
-0.405009985,
-0.0672458857,
0.3489079475,
-0.0102788657,
-0.1288800836,
-0.0141268037,
-0.0060507618,
-0.0985238999,
0.4630618691,
-0.0963639915,
0.1696590781,
-0.0943508297,
0.0977954865,
0.5256637335,
-0.1732741892,
-0.649061799,
0.1500489116,
0.2032511681,
-0.1029817834,
0.266962707,
0.0139922574,
-0.0650036559,
-0.1346268058,
-0.0769751072,
0.3790941834,
0.132238254,
0.2626498342,
0.034448497,
0.0248261988,
0.0166535676,
-0.0300009586,
0.1266815066,
0.3690106571,
0.2432256043,
-0.1930962801,
0.303946048,
-0.2294328213,
0.2638658583,
0.4840604961,
0.1777201444,
-0.1601693183,
0.0862398818,
-0.0189623013,
-0.4171615839,
0.2549884319,
-0.3125735521,
-0.3193020225,
-0.0076528788,
-0.5207282305,
0.0762455761,
-0.2444818616,
-0.2063019127,
-0.2149769068,
0.022807613,
-0.0447031781,
0.1049693525,
-0.4111617804,
0.1110279262,
0.3464648128,
0.3115404546,
0.0495175645,
-0.1932003796,
0.1817407459,
-0.1896054894,
-0.0689436719,
-0.337669611,
-0.1110592708,
0.2050257474,
-0.0192739498,
-0.28877303,
0.2957590222,
0.1430362761,
0.0078316331,
-0.1420383304,
0.3261235952,
0.0783731714,
0.0470815003,
0.0594100282,
-0.1094655544,
-0.1291289032,
-0.1017893031,
-0.3648784459,
0.3784074485,
-0.0848443061,
-0.0770210624,
-0.1734048575,
0.2051728219,
0.1564763784,
0.0075014755,
-0.1363320202,
-0.1656583995,
-0.061260622,
0.1625006199,
0.4034810662,
0.2103196234,
0.2471069098,
-0.0259756073,
0.3793472648,
0.1497158259,
0.0658815652,
-0.06585069,
-0.1965865195,
0.0703304783,
0.1888890564,
0.3214995861,
0.2710370719,
0.0138438754,
0.2941033244,
-0.211076051,
0.4143127799,
-0.1599642485,
0.0100284927,
0.0432763398,
-0.0896276236,
-0.1311381459,
-0.1703383029,
-0.0357451178,
-0.0115992352,
0.2849643826,
0.0954612494,
0.0764544904,
-0.3082890213,
-0.069117263,
-0.0060018972,
-0.1206071973,
0.211346522,
0.0088367984,
-0.5343108773,
0.0134320855,
-0.1519217044,
0.1806575358,
-0.0456640497,
0.269269675,
-0.0677066222,
0.1702590883,
-0.0167088434,
0.0004537217,
-0.3200583756,
0.1385489106,
0.1185334101,
0.0039669685,
0.204360351,
-0.6563032866,
-0.0275075566,
0.0460511371,
0.3301206827,
-0.2155572921,
-0.055622153,
-0.160806641,
0.0905815661,
0.0782436654,
-0.4964037538,
0.0002066717,
-0.1086161807,
-0.065435864,
-0.0726547465,
-0.2998085618,
-0.1591826975,
0.0295738131,
-0.0222710315,
-0.0988711417,
-0.2220184505,
-0.0480075777,
-0.1937408,
-0.1297093332,
0.4764781594,
0.1165346801,
0.1581726074,
-0.0076771006,
-0.24292849,
-0.4943926334,
-0.1973128021,
0.2132524252,
-0.2477842271,
-0.5221065283,
0.4046735168,
-0.5165213346,
-0.4042019546,
-0.0378915891,
0.120636344,
0.1027635932,
0.420920074,
0.1223701015,
0.0109208971,
-0.2580068707,
0.0667782724,
-0.1446607411,
0.0787591487,
-0.0300871581,
0.0193842612,
0.1990062892,
0.0284436941,
-0.0990145952,
0.0424445905,
-0.0189032555,
-0.1615502238,
-0.0023799799,
0.1194665357,
0.1578581929,
0.5748949647,
0.5152831078,
0.3354965746,
0.1676901132,
0.4023929834,
0.4540112317,
0.1008543223,
-0.0585558116,
0.0409804881,
0.0202495754,
-0.2165100425,
0.1230835766,
0.090207085,
-0.1655688882,
0.0152075514,
-0.0641172901,
-0.1857694983,
-0.5319420695,
-0.1408689469,
-0.2721812725,
0.1616268009,
0.1576241255,
0.1266053021,
-0.287958324,
-0.1087509096,
0.1160160974,
0.3581826687,
0.1002248898,
0.3036810458,
-0.5236625075,
-0.0116660856,
-0.2940412462,
0.3712224066,
-0.0526747108,
0.4781834781,
-0.1404576153,
0.1359272599,
0.1758011132,
0.2980237603,
0.4374077916,
-0.5280730128,
0.2366174161,
-0.0874201357,
0.0176159889,
0.2904188037,
-0.2159899771,
0.3345875144,
0.3485822976,
0.1534439921,
0.2327321768,
0.1184231639,
-0.1943303645,
-0.4178481102,
-0.3418984711,
-0.1998856664,
-0.2810036242,
0.0884602666,
0.2675308883,
-0.1563455313,
-0.1238454133,
0.3386438787,
-0.4243192077,
-0.1691786051,
-0.0309501663,
-0.2532271445,
0.1516339481,
0.1243384257,
0.0380250216,
0.3162676096,
-0.0869846195,
-0.0493335724,
0.4028518498,
-0.0670197979,
0.1903664321,
0.3316856027,
-0.216317147,
0.2620120049,
-0.1415675282,
-0.3252260685,
0.3678041101,
-0.0137582272,
-0.2971774638,
-0.1293166578,
0.2409000844,
-0.1591085941,
-0.210820049,
-0.1638902873,
-0.198097229,
0.115096435,
-0.2445397675,
-0.6280332804,
0.2098323554,
0.5318977833,
-0.3056163788,
0.0931614414,
-0.3135221601,
-0.3025105,
0.4424119294,
0.0626899377,
0.8635255098,
-0.2236692607,
0.3869577646,
-0.5408218503,
0.070035845,
0.0928003788,
-0.6927385926,
0.1662652045,
-0.4834659994,
-0.3403414488,
-0.1500468105,
-0.1280884147,
0.0517081358,
0.5709946156,
-0.02226042,
0.1149773151,
-0.0365740359,
-0.0271956082,
-0.1076061502,
-0.190433234,
-0.1143009961,
-0.2419594526,
0.3502939939,
0.0627256036,
-0.1259155124,
0.1566952467,
-0.0438905284,
-0.0800253451,
-0.2501610219,
0.1729676425,
-0.2542051375,
0.0647727028,
-0.6468899846,
0.2180822641,
-0.0837715566,
-0.0250672698,
0.1623345315,
0.4216913283,
0.4039416015,
0.3650013804,
-0.0314708278,
0.1082861796,
0.3321979344,
0.1446735859,
-0.3237609863,
0.0723175555,
0.2941045761,
0.1543792784,
0.0152103454,
-0.2700214982,
-0.1584864408,
-0.3013118505,
-0.3081585765,
0.0867514238,
0.1068045795,
-0.3021413982,
0.078516528,
-0.1490347236,
-0.0890510008,
0.0587595105,
0.0504109971,
0.3910546899,
-0.0951099992,
0.5340353847,
-0.3091876507,
-0.3310890794,
0.0359249189,
0.6514386535,
-0.0453701466,
-0.1939592063,
0.1575786769,
-0.2966132164,
-0.2723999918,
-0.1678063273,
0.068268612,
0.2438829094,
-0.3963706493,
-0.0685686469,
-0.0029539503,
-0.2336229682,
0.2451343387,
-0.3847490847,
0.1689643115,
0.1639358848,
0.0246438459,
-0.2654284835,
-0.5594639778,
-0.283498466,
-0.2164625078,
0.2027433366,
0.2369091809,
-0.4887751639,
0.1068661213,
0.1887074709,
-0.1841539741,
-0.3159104884,
-0.0630159453,
0.101462312,
0.0915857404,
-0.0882615149,
-0.0840088129,
-0.1378981471,
-0.1152758822,
0.049151253,
-0.0711610615,
-0.1431346834,
-0.0230298564,
0.1677422374,
0.2187342048,
-0.3538278043,
0.0371718369,
-0.2598271072,
-0.0885273069,
-0.4373984635,
0.1055153981,
0.2622198761,
0.2569025755,
0.3842913806,
0.2679117918,
-0.0695103407,
-0.3964472115,
0.1665250212,
-0.123699151,
-0.2651288807,
-0.1265076101,
0.2297107726,
-0.3186565638,
-0.0610188767,
0.0764740035,
-0.1375399083,
0.2135014832,
0.094673425,
0.1467306316,
-0.0578689054,
-0.0336727984,
0.0651391,
0.1982595921,
-0.025997445,
-0.0449463427,
0.0133001134,
0.1737019122,
0.0841285586,
0.1291263998,
-0.2564397454,
0.2524061203,
-0.1515733004,
0.0428199992,
0.4236339927,
0.2772772312,
-0.2070759535,
0.3170795441,
-0.0381495021,
0.1826368421,
-0.2552193403,
0.366248548,
-0.0064941589,
0.1493499279,
0.1899187416,
0.3061319292,
0.2371295691,
0.0702333674,
0.2771940231,
0.2158374488,
0.1419621557,
0.1707588434,
-0.3348014057,
0.1745645702,
-0.6335684061,
0.0674173534,
-0.0787571594,
0.0458234176,
0.2807559371,
0.1773888916,
-0.1100372523,
0.1152528673,
-0.1991172284,
-0.0117490813,
-0.1957804561,
-0.0985087454,
-0.2010091543,
0.1680099368,
0.12251921,
-0.0301285163,
-0.2715127468,
-0.1786383241,
-0.1218050197,
0.1585365832,
0.2640940249,
0.143071413,
0.3340464234,
0.055134017,
0.1570995897,
-0.0177936666,
-0.243978858,
-0.0739674941,
-0.3206777573,
-0.134329766,
0.2049994618,
0.0000669658,
0.0579924434,
0.0511213765,
0.1186681241,
0.3105686903,
0.3402491808,
0.0178909004,
-0.2919168472,
0.2963427305,
-0.0827789977,
-0.3041666448,
-0.0184301548,
0.0021151341,
-0.0544858873,
-0.1834932715,
-0.2412051857,
0.0429908335,
0.0939484537,
0.0925779194,
-0.1781881154,
-0.5503027439,
0.0945282653,
-0.0658450872,
0.070248723,
0.0940990448,
0.4745096266,
-0.0591113754,
0.1857350767,
-0.4849860966,
0.0060689822,
0.4230896533,
0.3215772212,
0.4120587111,
-0.099003464,
-0.0443122163,
-0.0291148946,
-0.3054762185,
0.1631391346,
0.2837887108,
0.5087828636,
-0.0238907114,
-0.1826170385,
0.060607627,
-0.1670144498,
0.5149812698,
-0.2089087814,
0.136816144,
0.4491739869,
-0.2177424431,
-0.2192539722,
0.1072026193,
0.0406977609,
0.1862446219,
-0.3907718062,
0.2738782763,
0.2794934809,
0.0458573401,
-0.228731811,
-0.1771534979,
0.2512520254,
0.5285197496,
0.4062508047,
0.2499741763,
0.0079819933,
-0.0523312055,
0.3134743869,
-0.3260477185,
0.1364384443,
-0.169262588,
-0.1373758465,
-0.1882678568,
0.1372044533,
-0.5929564238,
-0.2624830306,
-0.3854260147,
-0.0965443701,
-0.1314241886,
0.0482249074,
0.0445372462,
0.0756685734,
-0.200048089,
0.1109343618,
0.4055039883,
0.3100294471,
-0.1148726419,
0.3489429951,
-0.4045490324,
-0.0610265806,
0.3257162571,
-0.230621025,
-0.2178132087,
-0.0727310702,
0.33829391,
0.1306983531,
-0.2167468369,
-0.0988924205,
0.1064760387,
0.3080399036,
-0.364431113,
-0.1264481843,
0.0499948487,
-0.1413324028,
0.0234388709,
-0.2185950726,
0.516843617,
0.0258425996,
-0.2161867619,
0.0122437999,
-0.256996125
] |
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.0752861947,
0.0026139468,
0.4443908632,
0.371329695,
0.0691194013,
0.2405686826,
0.0394756012,
0.5101776123,
0.20612441,
-0.3589060009,
0.0527053289,
0.0860962346,
0.0808657259,
0.1144122556,
-0.3151045442,
-0.0602493882,
0.0173559524,
-0.2503676414,
-0.0655044019,
-0.4105168581,
-0.0623264834,
-0.3046577573,
0.1095429584,
-0.1711036265,
0.2064575106,
0.0141452998,
0.1647336483,
-0.3150221705,
-0.4950221181,
0.563359499,
0.0180330817,
0.5800749063,
0.2213219553,
-0.0001253432,
0.1060387641,
0.4861795306,
-0.0613057353,
-0.3452346623,
-0.4049580693,
-0.4189882874,
-0.1315974891,
-0.0690609887,
-0.09646523,
0.1045277268,
-0.0043990724,
-0.0823343471,
-0.2585627437,
0.3321031928,
0.3678756654,
0.0941704959,
0.3720286787,
0.0618579686,
-0.2211653441,
0.4757195711,
-0.042270951,
-0.1489076465,
0.1563739479,
0.427099824,
-0.3246811926,
0.1801449955,
0.1246251315,
-0.2091394067,
0.224916935,
-0.1637176275,
0.0560059808,
0.1821352243,
-0.2583510578,
0.2391242385,
0.1349652708,
0.8412336111,
-0.1512388289,
-0.4147816896,
0.0182388052,
-0.101406306,
-0.3554822206,
0.1830143631,
0.0008576438,
-0.0578873269,
0.0788418502,
-0.0767998099,
-0.0602420531,
0.0503759831,
0.2890724838,
-0.143458128,
0.2910362184,
0.0541208126,
0.1338609159,
0.3239516616,
-0.1089205295,
0.4901402593,
0.0979421288,
-0.0730716065,
0.2410606444,
-0.3231168687,
0.2865314484,
-0.0756048635,
-0.3037874401,
0.2389642745,
-0.1045977324,
-0.1012070477,
0.0039556287,
-0.1443650275,
0.3295549154,
0.4467024803,
0.2585928142,
0.3614313304,
0.2899976075,
0.1072540656,
0.1587685347,
-0.0565734729,
-0.0633866861,
-0.4474609494,
-0.2160624415,
0.0857920647,
-0.0271294024,
0.1571701616,
-0.4506188333,
-0.582798183,
0.0448342562,
-0.1629016101,
-0.21788387,
0.0583499521,
0.268889457,
0.1545640528,
0.429779321,
0.0458625481,
0.4458409846,
-0.4962793887,
-0.2659803629,
-0.0544239469,
0.1687626243,
-0.4189634919,
0.0585134104,
0.1439430118,
0.0052871779,
0.2148581445,
0.0167754889,
0.2656739652,
-0.2452535331,
0.128829211,
-0.2358857393,
-0.2444214374,
0.3540517986,
0.3105242848,
0.1218976304,
0.2711305618,
-0.3746763468,
-0.0785990804,
0.2891559601,
-0.222510919,
-0.2350119352,
0.0909443349,
0.0328550488,
-0.1796908975,
0.0550202988,
-1.0357825756,
-0.0764578208,
0.085103184,
0.1069330797,
-0.0155088007,
-0.2755294144,
-0.1712111235,
0.0025957413,
0.2848054767,
0.5355802178,
-0.2868714631,
-0.0464067161,
-0.1408399045,
-0.0400897153,
0.3355930448,
0.3613088727,
-0.3357943892,
0.073754698,
-0.1279850304,
0.1057110131,
0.1982141137,
-0.515075326,
-0.4803658128,
0.1640976965,
0.0509280562,
-0.0161873996,
-0.0857604519,
-0.3274518251,
0.2393177152,
0.0357202701,
0.1953127831,
0.2589241266,
0.058097288,
-0.0908878818,
-0.1751015931,
-0.0985950381,
0.136113584,
0.4271919429,
0.2911246717,
0.1453996599,
0.261487931,
0.4392362833,
0.0436218604,
0.0165756755,
0.0131824799,
0.3216630518,
0.0333596468,
0.090200901,
0.0362410769,
-0.0593444295,
-0.4222899079,
0.2021974623,
-0.093100369,
-0.0453704372,
0.0975538939,
0.181240201,
-0.3897109032,
0.1230221838,
-0.3247449994,
-0.3197045922,
-0.0942891836,
0.0866034031,
-0.09641359,
-0.0818084404,
-0.1697998792,
0.0806682408,
-0.0715484992,
0.1103204936,
-0.3754514754,
0.4191190898,
0.0495782048,
-0.0648902208,
0.0807240456,
0.2062997967,
0.2299799323,
-0.1260801256,
-0.1753812879,
0.1877420545,
0.6032563448,
-0.1791827977,
0.135735929,
-0.0441037118,
0.3042585552,
-0.388569206,
0.1962027848,
-0.0273813624,
0.1187215894,
0.1130646616,
0.059829969,
0.2541898489,
-0.0359747931,
0.184064135,
-0.1281906068,
0.1224726066,
0.3874264956,
0.0022267029,
0.0613592863,
-0.2924955487,
0.5102493763,
0.3250295818,
0.3184417188,
0.0524792969,
-0.1459857374,
-0.2242728025,
-0.1109306887,
-0.1516298354,
0.0816714317,
0.1515701562,
-0.2236988246,
0.0444756523,
0.2037227452,
0.2373352051,
0.32943362,
0.0214675181,
0.0758470446,
-0.0468035601,
0.0237628073,
0.0701770931,
-0.0097975135,
-0.0718167275,
-0.101575762,
0.0644406527,
0.0008367002,
-0.2057576329,
-0.2248118669,
0.0729393959,
0.2377970815,
0.4230691493,
-0.3003163338,
0.0473219156,
-0.4231782556,
-0.1595291793,
0.1389967352,
-0.0802795291,
-0.0387312472,
-0.1483371854,
-0.3189129233,
0.2778152823,
0.3382664919,
0.1288225949,
0.1079092473,
-0.239862591,
-0.024733007,
-0.2022274882,
0.1674776822,
-0.191683203,
-0.136324048,
-0.1142770201,
0.2343534976,
0.1731061786,
0.0974105224,
-0.3408339024,
-0.0454138108,
-0.2319969684,
-0.055594638,
0.2320308983,
-0.0026652711,
0.3095870018,
-0.0770002455,
0.1424633712,
-0.3586756587,
0.0364726186,
0.3661393821,
0.0212175995,
-0.1678795666,
0.2677279711,
-0.0123517886,
-0.1251048148,
0.0236816034,
-0.147312209,
-0.2998110056,
-0.2093852162,
0.0171215199,
0.048266083,
0.0239051543,
-0.0471151583,
0.0395986922,
0.0380499884,
0.1774881184,
-0.1749290079,
-0.3403437138,
-0.4319577515,
0.4691961706,
-0.2710249126,
-0.2475003302,
0.0816967711,
0.0473559648,
0.2014109194,
0.3418826759,
-0.4603405297,
-0.0737861693,
-0.1173928082,
0.1646260321,
0.0758612156,
0.1864942312,
0.0469673239,
-0.1311487257,
0.1585200876,
-0.077041246,
-0.3395667076,
-0.1058102325,
0.2425631136,
0.2578387856,
-0.1052168906,
0.4483572543,
-0.2508385181,
0.2393935919,
-0.0129458494,
0.2891104519,
0.54264009,
-0.0893334076,
0.1529129148,
-0.3217943311,
-0.3143523932,
-0.0997115672,
-0.1948752999,
-0.1389903873,
0.0483571365,
0.0269654915,
-0.1491460949,
-0.2706747353,
-0.052907981,
-0.0879611745,
-0.1746994555,
-0.055343315,
-0.0693782419,
0.3293852806,
-0.0504930168,
0.2791503072,
0.0136168301,
-0.0404189453,
-0.1539395303,
0.224642396,
0.1235999241,
0.2225518525,
-0.3244819641,
0.1071844622,
-0.2705765069,
0.3529711664,
-0.0407874957,
0.7153812647,
-0.1447269022,
0.3261328638,
0.1128171086,
0.0381268747,
0.1055564806,
-0.2915963531,
0.1107803509,
0.025910534,
-0.4394383132,
-0.0571815073,
-0.0327192843,
-0.0487926267,
-0.0640700758,
-0.0291914027,
0.2615403533,
-0.2473839819,
-0.1046056524,
-0.0212867931,
0.304867208,
-0.0421137698,
-0.2426182181,
-0.3949683309,
-0.5412185192,
-0.4392504394,
-0.1890486777,
0.1465300024,
0.1577130556,
-0.079872258,
0.2045393586,
-0.1588288546,
0.1053306162,
0.2242293805,
0.0840923563,
0.2725593448,
-0.0330146253,
0.1534873843,
0.2682338357,
-0.1665605307,
0.7140192389,
0.7792879343,
-0.1654730141,
-0.3519223332,
0.2531235218,
-0.0765697956,
0.0217687078,
-0.0563556999,
-0.0262793507,
0.0473594815,
-0.199334994,
-0.170183301,
-0.0464214794,
0.198321864,
0.1967192441,
0.1544237733,
-0.2928842604,
-0.7532662153,
0.5231235623,
0.0733508915,
0.1194912791,
0.2948044538,
-0.0994657204,
-0.1877110898,
0.269177407,
0.1097403467,
0.730918169,
-0.4024429619,
0.066400066,
0.1255253702,
0.0390536636,
0.0969473422,
-0.0389399044,
-0.2549374402,
-0.1899637878,
-0.2134167552,
-0.1464366615,
-0.1630650312,
0.2815147638,
0.1523415297,
-0.0743446499,
0.2819463313,
-0.1734500974,
-0.0285564102,
0.237747848,
0.1179538444,
-0.0852735266,
-0.3346667886,
-0.5701631904,
0.0695263222,
-0.17449224,
0.2196645141,
-0.0229283683,
0.0446262993,
-0.0770892203,
-0.0558209866,
-0.3917292953,
0.3648405373,
-0.274818033,
0.3384898901,
-0.1301484108,
-0.3494689465,
0.1892340779,
0.4507744312,
0.2284567952,
0.1401092708,
-0.152766645,
0.0742593706,
0.264270395,
-0.2523836792,
-0.0304524899,
-0.1002171487,
-0.0693551153,
-0.0230431631,
-0.2731990218,
0.1419650614,
-0.0702481121,
-0.22475411,
-0.0742939115,
0.1391911209,
0.0287420545,
-0.0994304642,
-0.3413543701,
-0.0718905702,
0.0351187512,
-0.1643307507,
-0.0067223441,
0.2091258913,
-0.0939809233,
0.0110957026,
0.0571488999,
-0.3362409174,
0.0208260734,
0.4598703682,
-0.0671366006,
-0.103542529,
0.5126206875,
0.2207635045,
-0.2053337693,
-0.1291893274,
0.2668745518,
0.3432770371,
-0.243523851,
0.0247940607,
-0.1015282348,
0.1226385981,
0.0169644617,
0.0190842655,
0.2321759164,
-0.3506090045,
0.3566074073,
-0.59125036,
-0.3739059269,
0.1904154718,
-0.1842520833,
0.0209104754,
-0.0230075642,
0.0114092864,
-0.153870821,
-0.0855405927,
-0.1131537631,
0.1104637086,
-0.3555288911,
0.0531754419,
0.2333114296,
-0.0038373396,
0.0266176127,
-0.1702212393,
0.0084074363,
0.1382465363,
0.0358457156,
-0.0385316797,
-0.182315439,
0.2142097503,
0.129101634,
-0.3466270864,
0.009542577,
-0.217315644,
-0.0406779721,
-0.1456345618,
0.1752342433,
0.4642311931,
-0.0508852899,
0.1162914336,
0.2020452321,
0.1192642897,
-0.3610048592,
0.377337724,
-0.0597466491,
0.2192402631,
0.1052804068,
0.1996854693,
0.2261882126,
0.1284536123,
-0.2986386418,
-0.0918604285,
0.2543622255,
-0.0207495615,
0.2784876227,
-0.4246551991,
0.3846978545,
0.0934025049,
0.1392692178,
0.4423637986,
-0.2708706558,
0.0668304488,
0.3226238489,
0.0277720075,
-0.2396786511,
-0.1068025231,
0.1143146008,
0.0567226633,
-0.1326248348,
0.3174366355,
0.3981636763,
0.0658835471,
-0.1405834556,
0.0366228446,
0.0629205406,
-0.1436377168,
0.0519925877,
0.6180886626,
0.0182581469,
0.2121532261,
0.0627514124,
0.2251055837,
-0.0261532478,
0.3331246078,
-0.1577177793,
0.4461427033,
0.2134561688,
0.190859437,
-0.3277816176,
-0.5346598625,
-0.1699692458,
0.320479393,
0.0944018215,
-0.0257122703,
-0.2086395621,
0.2422647178,
-0.1822716147,
0.1587971747,
-0.069755882,
0.1305375546,
-0.0340363681,
-0.1838854998,
-0.1329227686,
-0.1520825177,
-0.5502748489,
0.1870924085,
-0.2470207065,
-0.1265387386,
0.1939037442,
0.1568963528,
-0.1329804063,
-0.3558683395,
-0.0509608276,
0.3773245811,
-0.3437857628,
-0.3400720954,
0.3964487612,
0.0177267194,
0.0172702596,
0.2495319247,
0.1393801123,
0.3306981325,
0.4204996228,
-0.3608879745,
-0.1154858321,
0.0613385513,
0.0774012804,
0.0765655786,
0.1979316622,
0.0195523016,
0.2065385878,
0.3709864616,
-0.0114098229,
-0.0139409117,
-0.031657476,
0.1572707593,
-0.2297267467,
-0.0879768655,
0.2299747914,
-0.0481606498,
0.1998765469,
-0.1176379472,
0.0245097633,
-0.2423738241,
0.021785751,
0.575178504,
0.010339573,
0.1068287641,
0.0592918806,
-0.0527460612,
-0.1844878197,
0.3957374096,
0.6384897828,
0.3486223221,
-0.4021955431,
-0.1908640414,
-0.7238463163,
0.0598114394,
-0.4783251286,
-0.2568795085,
0.5058493614,
-0.0741572455,
0.1018313766,
0.3911997378,
-0.0939411968,
0.2525466383,
0.1857646108,
0.2951026559,
-0.2620004117,
-0.2589089274,
0.4163452089,
0.2090039849,
-0.1786014736,
-0.4936585128,
-0.0105338022,
0.0426238813,
-0.0922618136,
-0.1824913323,
0.0417560041,
0.1412573904,
0.3790919781,
0.1933657527,
0.0584117547,
0.7760936618,
-0.0257241242,
-0.0648016036,
-0.0789829791,
-0.6323977709,
-0.0542364381,
0.0605212152,
0.0649563596,
0.1296198666,
-0.1022137254,
-0.1126851737,
-0.3824727535,
0.3061404526,
-0.1255756021,
-0.1483522356,
-0.2318835855,
-0.0043639615,
-0.0508507639,
-0.0628494918,
-0.0281332806,
0.0610886849,
0.1224480346,
0.3552177846,
-0.1259650886,
-0.2262786776,
0.3989254534,
-0.0534627363,
-0.4505841136,
0.072582379,
-0.1192309931,
0.335065335,
-0.2118576914,
-0.4614244401,
0.1921402961,
0.2282827795,
-0.1450066268,
-0.3645920157,
0.0354046002,
0.1440641731,
0.1055092067,
-0.1191356108,
0.6080466509,
0.0068143178,
-0.158861503,
0.1072709858,
-0.1721353233
] |
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.0752861947,
0.0026139468,
0.4443908632,
0.371329695,
0.0691194013,
0.2405686826,
0.0394756012,
0.5101776123,
0.20612441,
-0.3589060009,
0.0527053289,
0.0860962346,
0.0808657259,
0.1144122556,
-0.3151045442,
-0.0602493882,
0.0173559524,
-0.2503676414,
-0.0655044019,
-0.4105168581,
-0.0623264834,
-0.3046577573,
0.1095429584,
-0.1711036265,
0.2064575106,
0.0141452998,
0.1647336483,
-0.3150221705,
-0.4950221181,
0.563359499,
0.0180330817,
0.5800749063,
0.2213219553,
-0.0001253432,
0.1060387641,
0.4861795306,
-0.0613057353,
-0.3452346623,
-0.4049580693,
-0.4189882874,
-0.1315974891,
-0.0690609887,
-0.09646523,
0.1045277268,
-0.0043990724,
-0.0823343471,
-0.2585627437,
0.3321031928,
0.3678756654,
0.0941704959,
0.3720286787,
0.0618579686,
-0.2211653441,
0.4757195711,
-0.042270951,
-0.1489076465,
0.1563739479,
0.427099824,
-0.3246811926,
0.1801449955,
0.1246251315,
-0.2091394067,
0.224916935,
-0.1637176275,
0.0560059808,
0.1821352243,
-0.2583510578,
0.2391242385,
0.1349652708,
0.8412336111,
-0.1512388289,
-0.4147816896,
0.0182388052,
-0.101406306,
-0.3554822206,
0.1830143631,
0.0008576438,
-0.0578873269,
0.0788418502,
-0.0767998099,
-0.0602420531,
0.0503759831,
0.2890724838,
-0.143458128,
0.2910362184,
0.0541208126,
0.1338609159,
0.3239516616,
-0.1089205295,
0.4901402593,
0.0979421288,
-0.0730716065,
0.2410606444,
-0.3231168687,
0.2865314484,
-0.0756048635,
-0.3037874401,
0.2389642745,
-0.1045977324,
-0.1012070477,
0.0039556287,
-0.1443650275,
0.3295549154,
0.4467024803,
0.2585928142,
0.3614313304,
0.2899976075,
0.1072540656,
0.1587685347,
-0.0565734729,
-0.0633866861,
-0.4474609494,
-0.2160624415,
0.0857920647,
-0.0271294024,
0.1571701616,
-0.4506188333,
-0.582798183,
0.0448342562,
-0.1629016101,
-0.21788387,
0.0583499521,
0.268889457,
0.1545640528,
0.429779321,
0.0458625481,
0.4458409846,
-0.4962793887,
-0.2659803629,
-0.0544239469,
0.1687626243,
-0.4189634919,
0.0585134104,
0.1439430118,
0.0052871779,
0.2148581445,
0.0167754889,
0.2656739652,
-0.2452535331,
0.128829211,
-0.2358857393,
-0.2444214374,
0.3540517986,
0.3105242848,
0.1218976304,
0.2711305618,
-0.3746763468,
-0.0785990804,
0.2891559601,
-0.222510919,
-0.2350119352,
0.0909443349,
0.0328550488,
-0.1796908975,
0.0550202988,
-1.0357825756,
-0.0764578208,
0.085103184,
0.1069330797,
-0.0155088007,
-0.2755294144,
-0.1712111235,
0.0025957413,
0.2848054767,
0.5355802178,
-0.2868714631,
-0.0464067161,
-0.1408399045,
-0.0400897153,
0.3355930448,
0.3613088727,
-0.3357943892,
0.073754698,
-0.1279850304,
0.1057110131,
0.1982141137,
-0.515075326,
-0.4803658128,
0.1640976965,
0.0509280562,
-0.0161873996,
-0.0857604519,
-0.3274518251,
0.2393177152,
0.0357202701,
0.1953127831,
0.2589241266,
0.058097288,
-0.0908878818,
-0.1751015931,
-0.0985950381,
0.136113584,
0.4271919429,
0.2911246717,
0.1453996599,
0.261487931,
0.4392362833,
0.0436218604,
0.0165756755,
0.0131824799,
0.3216630518,
0.0333596468,
0.090200901,
0.0362410769,
-0.0593444295,
-0.4222899079,
0.2021974623,
-0.093100369,
-0.0453704372,
0.0975538939,
0.181240201,
-0.3897109032,
0.1230221838,
-0.3247449994,
-0.3197045922,
-0.0942891836,
0.0866034031,
-0.09641359,
-0.0818084404,
-0.1697998792,
0.0806682408,
-0.0715484992,
0.1103204936,
-0.3754514754,
0.4191190898,
0.0495782048,
-0.0648902208,
0.0807240456,
0.2062997967,
0.2299799323,
-0.1260801256,
-0.1753812879,
0.1877420545,
0.6032563448,
-0.1791827977,
0.135735929,
-0.0441037118,
0.3042585552,
-0.388569206,
0.1962027848,
-0.0273813624,
0.1187215894,
0.1130646616,
0.059829969,
0.2541898489,
-0.0359747931,
0.184064135,
-0.1281906068,
0.1224726066,
0.3874264956,
0.0022267029,
0.0613592863,
-0.2924955487,
0.5102493763,
0.3250295818,
0.3184417188,
0.0524792969,
-0.1459857374,
-0.2242728025,
-0.1109306887,
-0.1516298354,
0.0816714317,
0.1515701562,
-0.2236988246,
0.0444756523,
0.2037227452,
0.2373352051,
0.32943362,
0.0214675181,
0.0758470446,
-0.0468035601,
0.0237628073,
0.0701770931,
-0.0097975135,
-0.0718167275,
-0.101575762,
0.0644406527,
0.0008367002,
-0.2057576329,
-0.2248118669,
0.0729393959,
0.2377970815,
0.4230691493,
-0.3003163338,
0.0473219156,
-0.4231782556,
-0.1595291793,
0.1389967352,
-0.0802795291,
-0.0387312472,
-0.1483371854,
-0.3189129233,
0.2778152823,
0.3382664919,
0.1288225949,
0.1079092473,
-0.239862591,
-0.024733007,
-0.2022274882,
0.1674776822,
-0.191683203,
-0.136324048,
-0.1142770201,
0.2343534976,
0.1731061786,
0.0974105224,
-0.3408339024,
-0.0454138108,
-0.2319969684,
-0.055594638,
0.2320308983,
-0.0026652711,
0.3095870018,
-0.0770002455,
0.1424633712,
-0.3586756587,
0.0364726186,
0.3661393821,
0.0212175995,
-0.1678795666,
0.2677279711,
-0.0123517886,
-0.1251048148,
0.0236816034,
-0.147312209,
-0.2998110056,
-0.2093852162,
0.0171215199,
0.048266083,
0.0239051543,
-0.0471151583,
0.0395986922,
0.0380499884,
0.1774881184,
-0.1749290079,
-0.3403437138,
-0.4319577515,
0.4691961706,
-0.2710249126,
-0.2475003302,
0.0816967711,
0.0473559648,
0.2014109194,
0.3418826759,
-0.4603405297,
-0.0737861693,
-0.1173928082,
0.1646260321,
0.0758612156,
0.1864942312,
0.0469673239,
-0.1311487257,
0.1585200876,
-0.077041246,
-0.3395667076,
-0.1058102325,
0.2425631136,
0.2578387856,
-0.1052168906,
0.4483572543,
-0.2508385181,
0.2393935919,
-0.0129458494,
0.2891104519,
0.54264009,
-0.0893334076,
0.1529129148,
-0.3217943311,
-0.3143523932,
-0.0997115672,
-0.1948752999,
-0.1389903873,
0.0483571365,
0.0269654915,
-0.1491460949,
-0.2706747353,
-0.052907981,
-0.0879611745,
-0.1746994555,
-0.055343315,
-0.0693782419,
0.3293852806,
-0.0504930168,
0.2791503072,
0.0136168301,
-0.0404189453,
-0.1539395303,
0.224642396,
0.1235999241,
0.2225518525,
-0.3244819641,
0.1071844622,
-0.2705765069,
0.3529711664,
-0.0407874957,
0.7153812647,
-0.1447269022,
0.3261328638,
0.1128171086,
0.0381268747,
0.1055564806,
-0.2915963531,
0.1107803509,
0.025910534,
-0.4394383132,
-0.0571815073,
-0.0327192843,
-0.0487926267,
-0.0640700758,
-0.0291914027,
0.2615403533,
-0.2473839819,
-0.1046056524,
-0.0212867931,
0.304867208,
-0.0421137698,
-0.2426182181,
-0.3949683309,
-0.5412185192,
-0.4392504394,
-0.1890486777,
0.1465300024,
0.1577130556,
-0.079872258,
0.2045393586,
-0.1588288546,
0.1053306162,
0.2242293805,
0.0840923563,
0.2725593448,
-0.0330146253,
0.1534873843,
0.2682338357,
-0.1665605307,
0.7140192389,
0.7792879343,
-0.1654730141,
-0.3519223332,
0.2531235218,
-0.0765697956,
0.0217687078,
-0.0563556999,
-0.0262793507,
0.0473594815,
-0.199334994,
-0.170183301,
-0.0464214794,
0.198321864,
0.1967192441,
0.1544237733,
-0.2928842604,
-0.7532662153,
0.5231235623,
0.0733508915,
0.1194912791,
0.2948044538,
-0.0994657204,
-0.1877110898,
0.269177407,
0.1097403467,
0.730918169,
-0.4024429619,
0.066400066,
0.1255253702,
0.0390536636,
0.0969473422,
-0.0389399044,
-0.2549374402,
-0.1899637878,
-0.2134167552,
-0.1464366615,
-0.1630650312,
0.2815147638,
0.1523415297,
-0.0743446499,
0.2819463313,
-0.1734500974,
-0.0285564102,
0.237747848,
0.1179538444,
-0.0852735266,
-0.3346667886,
-0.5701631904,
0.0695263222,
-0.17449224,
0.2196645141,
-0.0229283683,
0.0446262993,
-0.0770892203,
-0.0558209866,
-0.3917292953,
0.3648405373,
-0.274818033,
0.3384898901,
-0.1301484108,
-0.3494689465,
0.1892340779,
0.4507744312,
0.2284567952,
0.1401092708,
-0.152766645,
0.0742593706,
0.264270395,
-0.2523836792,
-0.0304524899,
-0.1002171487,
-0.0693551153,
-0.0230431631,
-0.2731990218,
0.1419650614,
-0.0702481121,
-0.22475411,
-0.0742939115,
0.1391911209,
0.0287420545,
-0.0994304642,
-0.3413543701,
-0.0718905702,
0.0351187512,
-0.1643307507,
-0.0067223441,
0.2091258913,
-0.0939809233,
0.0110957026,
0.0571488999,
-0.3362409174,
0.0208260734,
0.4598703682,
-0.0671366006,
-0.103542529,
0.5126206875,
0.2207635045,
-0.2053337693,
-0.1291893274,
0.2668745518,
0.3432770371,
-0.243523851,
0.0247940607,
-0.1015282348,
0.1226385981,
0.0169644617,
0.0190842655,
0.2321759164,
-0.3506090045,
0.3566074073,
-0.59125036,
-0.3739059269,
0.1904154718,
-0.1842520833,
0.0209104754,
-0.0230075642,
0.0114092864,
-0.153870821,
-0.0855405927,
-0.1131537631,
0.1104637086,
-0.3555288911,
0.0531754419,
0.2333114296,
-0.0038373396,
0.0266176127,
-0.1702212393,
0.0084074363,
0.1382465363,
0.0358457156,
-0.0385316797,
-0.182315439,
0.2142097503,
0.129101634,
-0.3466270864,
0.009542577,
-0.217315644,
-0.0406779721,
-0.1456345618,
0.1752342433,
0.4642311931,
-0.0508852899,
0.1162914336,
0.2020452321,
0.1192642897,
-0.3610048592,
0.377337724,
-0.0597466491,
0.2192402631,
0.1052804068,
0.1996854693,
0.2261882126,
0.1284536123,
-0.2986386418,
-0.0918604285,
0.2543622255,
-0.0207495615,
0.2784876227,
-0.4246551991,
0.3846978545,
0.0934025049,
0.1392692178,
0.4423637986,
-0.2708706558,
0.0668304488,
0.3226238489,
0.0277720075,
-0.2396786511,
-0.1068025231,
0.1143146008,
0.0567226633,
-0.1326248348,
0.3174366355,
0.3981636763,
0.0658835471,
-0.1405834556,
0.0366228446,
0.0629205406,
-0.1436377168,
0.0519925877,
0.6180886626,
0.0182581469,
0.2121532261,
0.0627514124,
0.2251055837,
-0.0261532478,
0.3331246078,
-0.1577177793,
0.4461427033,
0.2134561688,
0.190859437,
-0.3277816176,
-0.5346598625,
-0.1699692458,
0.320479393,
0.0944018215,
-0.0257122703,
-0.2086395621,
0.2422647178,
-0.1822716147,
0.1587971747,
-0.069755882,
0.1305375546,
-0.0340363681,
-0.1838854998,
-0.1329227686,
-0.1520825177,
-0.5502748489,
0.1870924085,
-0.2470207065,
-0.1265387386,
0.1939037442,
0.1568963528,
-0.1329804063,
-0.3558683395,
-0.0509608276,
0.3773245811,
-0.3437857628,
-0.3400720954,
0.3964487612,
0.0177267194,
0.0172702596,
0.2495319247,
0.1393801123,
0.3306981325,
0.4204996228,
-0.3608879745,
-0.1154858321,
0.0613385513,
0.0774012804,
0.0765655786,
0.1979316622,
0.0195523016,
0.2065385878,
0.3709864616,
-0.0114098229,
-0.0139409117,
-0.031657476,
0.1572707593,
-0.2297267467,
-0.0879768655,
0.2299747914,
-0.0481606498,
0.1998765469,
-0.1176379472,
0.0245097633,
-0.2423738241,
0.021785751,
0.575178504,
0.010339573,
0.1068287641,
0.0592918806,
-0.0527460612,
-0.1844878197,
0.3957374096,
0.6384897828,
0.3486223221,
-0.4021955431,
-0.1908640414,
-0.7238463163,
0.0598114394,
-0.4783251286,
-0.2568795085,
0.5058493614,
-0.0741572455,
0.1018313766,
0.3911997378,
-0.0939411968,
0.2525466383,
0.1857646108,
0.2951026559,
-0.2620004117,
-0.2589089274,
0.4163452089,
0.2090039849,
-0.1786014736,
-0.4936585128,
-0.0105338022,
0.0426238813,
-0.0922618136,
-0.1824913323,
0.0417560041,
0.1412573904,
0.3790919781,
0.1933657527,
0.0584117547,
0.7760936618,
-0.0257241242,
-0.0648016036,
-0.0789829791,
-0.6323977709,
-0.0542364381,
0.0605212152,
0.0649563596,
0.1296198666,
-0.1022137254,
-0.1126851737,
-0.3824727535,
0.3061404526,
-0.1255756021,
-0.1483522356,
-0.2318835855,
-0.0043639615,
-0.0508507639,
-0.0628494918,
-0.0281332806,
0.0610886849,
0.1224480346,
0.3552177846,
-0.1259650886,
-0.2262786776,
0.3989254534,
-0.0534627363,
-0.4505841136,
0.072582379,
-0.1192309931,
0.335065335,
-0.2118576914,
-0.4614244401,
0.1921402961,
0.2282827795,
-0.1450066268,
-0.3645920157,
0.0354046002,
0.1440641731,
0.1055092067,
-0.1191356108,
0.6080466509,
0.0068143178,
-0.158861503,
0.1072709858,
-0.1721353233
] |
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.0752861947,
0.0026139468,
0.4443908632,
0.371329695,
0.0691194013,
0.2405686826,
0.0394756012,
0.5101776123,
0.20612441,
-0.3589060009,
0.0527053289,
0.0860962346,
0.0808657259,
0.1144122556,
-0.3151045442,
-0.0602493882,
0.0173559524,
-0.2503676414,
-0.0655044019,
-0.4105168581,
-0.0623264834,
-0.3046577573,
0.1095429584,
-0.1711036265,
0.2064575106,
0.0141452998,
0.1647336483,
-0.3150221705,
-0.4950221181,
0.563359499,
0.0180330817,
0.5800749063,
0.2213219553,
-0.0001253432,
0.1060387641,
0.4861795306,
-0.0613057353,
-0.3452346623,
-0.4049580693,
-0.4189882874,
-0.1315974891,
-0.0690609887,
-0.09646523,
0.1045277268,
-0.0043990724,
-0.0823343471,
-0.2585627437,
0.3321031928,
0.3678756654,
0.0941704959,
0.3720286787,
0.0618579686,
-0.2211653441,
0.4757195711,
-0.042270951,
-0.1489076465,
0.1563739479,
0.427099824,
-0.3246811926,
0.1801449955,
0.1246251315,
-0.2091394067,
0.224916935,
-0.1637176275,
0.0560059808,
0.1821352243,
-0.2583510578,
0.2391242385,
0.1349652708,
0.8412336111,
-0.1512388289,
-0.4147816896,
0.0182388052,
-0.101406306,
-0.3554822206,
0.1830143631,
0.0008576438,
-0.0578873269,
0.0788418502,
-0.0767998099,
-0.0602420531,
0.0503759831,
0.2890724838,
-0.143458128,
0.2910362184,
0.0541208126,
0.1338609159,
0.3239516616,
-0.1089205295,
0.4901402593,
0.0979421288,
-0.0730716065,
0.2410606444,
-0.3231168687,
0.2865314484,
-0.0756048635,
-0.3037874401,
0.2389642745,
-0.1045977324,
-0.1012070477,
0.0039556287,
-0.1443650275,
0.3295549154,
0.4467024803,
0.2585928142,
0.3614313304,
0.2899976075,
0.1072540656,
0.1587685347,
-0.0565734729,
-0.0633866861,
-0.4474609494,
-0.2160624415,
0.0857920647,
-0.0271294024,
0.1571701616,
-0.4506188333,
-0.582798183,
0.0448342562,
-0.1629016101,
-0.21788387,
0.0583499521,
0.268889457,
0.1545640528,
0.429779321,
0.0458625481,
0.4458409846,
-0.4962793887,
-0.2659803629,
-0.0544239469,
0.1687626243,
-0.4189634919,
0.0585134104,
0.1439430118,
0.0052871779,
0.2148581445,
0.0167754889,
0.2656739652,
-0.2452535331,
0.128829211,
-0.2358857393,
-0.2444214374,
0.3540517986,
0.3105242848,
0.1218976304,
0.2711305618,
-0.3746763468,
-0.0785990804,
0.2891559601,
-0.222510919,
-0.2350119352,
0.0909443349,
0.0328550488,
-0.1796908975,
0.0550202988,
-1.0357825756,
-0.0764578208,
0.085103184,
0.1069330797,
-0.0155088007,
-0.2755294144,
-0.1712111235,
0.0025957413,
0.2848054767,
0.5355802178,
-0.2868714631,
-0.0464067161,
-0.1408399045,
-0.0400897153,
0.3355930448,
0.3613088727,
-0.3357943892,
0.073754698,
-0.1279850304,
0.1057110131,
0.1982141137,
-0.515075326,
-0.4803658128,
0.1640976965,
0.0509280562,
-0.0161873996,
-0.0857604519,
-0.3274518251,
0.2393177152,
0.0357202701,
0.1953127831,
0.2589241266,
0.058097288,
-0.0908878818,
-0.1751015931,
-0.0985950381,
0.136113584,
0.4271919429,
0.2911246717,
0.1453996599,
0.261487931,
0.4392362833,
0.0436218604,
0.0165756755,
0.0131824799,
0.3216630518,
0.0333596468,
0.090200901,
0.0362410769,
-0.0593444295,
-0.4222899079,
0.2021974623,
-0.093100369,
-0.0453704372,
0.0975538939,
0.181240201,
-0.3897109032,
0.1230221838,
-0.3247449994,
-0.3197045922,
-0.0942891836,
0.0866034031,
-0.09641359,
-0.0818084404,
-0.1697998792,
0.0806682408,
-0.0715484992,
0.1103204936,
-0.3754514754,
0.4191190898,
0.0495782048,
-0.0648902208,
0.0807240456,
0.2062997967,
0.2299799323,
-0.1260801256,
-0.1753812879,
0.1877420545,
0.6032563448,
-0.1791827977,
0.135735929,
-0.0441037118,
0.3042585552,
-0.388569206,
0.1962027848,
-0.0273813624,
0.1187215894,
0.1130646616,
0.059829969,
0.2541898489,
-0.0359747931,
0.184064135,
-0.1281906068,
0.1224726066,
0.3874264956,
0.0022267029,
0.0613592863,
-0.2924955487,
0.5102493763,
0.3250295818,
0.3184417188,
0.0524792969,
-0.1459857374,
-0.2242728025,
-0.1109306887,
-0.1516298354,
0.0816714317,
0.1515701562,
-0.2236988246,
0.0444756523,
0.2037227452,
0.2373352051,
0.32943362,
0.0214675181,
0.0758470446,
-0.0468035601,
0.0237628073,
0.0701770931,
-0.0097975135,
-0.0718167275,
-0.101575762,
0.0644406527,
0.0008367002,
-0.2057576329,
-0.2248118669,
0.0729393959,
0.2377970815,
0.4230691493,
-0.3003163338,
0.0473219156,
-0.4231782556,
-0.1595291793,
0.1389967352,
-0.0802795291,
-0.0387312472,
-0.1483371854,
-0.3189129233,
0.2778152823,
0.3382664919,
0.1288225949,
0.1079092473,
-0.239862591,
-0.024733007,
-0.2022274882,
0.1674776822,
-0.191683203,
-0.136324048,
-0.1142770201,
0.2343534976,
0.1731061786,
0.0974105224,
-0.3408339024,
-0.0454138108,
-0.2319969684,
-0.055594638,
0.2320308983,
-0.0026652711,
0.3095870018,
-0.0770002455,
0.1424633712,
-0.3586756587,
0.0364726186,
0.3661393821,
0.0212175995,
-0.1678795666,
0.2677279711,
-0.0123517886,
-0.1251048148,
0.0236816034,
-0.147312209,
-0.2998110056,
-0.2093852162,
0.0171215199,
0.048266083,
0.0239051543,
-0.0471151583,
0.0395986922,
0.0380499884,
0.1774881184,
-0.1749290079,
-0.3403437138,
-0.4319577515,
0.4691961706,
-0.2710249126,
-0.2475003302,
0.0816967711,
0.0473559648,
0.2014109194,
0.3418826759,
-0.4603405297,
-0.0737861693,
-0.1173928082,
0.1646260321,
0.0758612156,
0.1864942312,
0.0469673239,
-0.1311487257,
0.1585200876,
-0.077041246,
-0.3395667076,
-0.1058102325,
0.2425631136,
0.2578387856,
-0.1052168906,
0.4483572543,
-0.2508385181,
0.2393935919,
-0.0129458494,
0.2891104519,
0.54264009,
-0.0893334076,
0.1529129148,
-0.3217943311,
-0.3143523932,
-0.0997115672,
-0.1948752999,
-0.1389903873,
0.0483571365,
0.0269654915,
-0.1491460949,
-0.2706747353,
-0.052907981,
-0.0879611745,
-0.1746994555,
-0.055343315,
-0.0693782419,
0.3293852806,
-0.0504930168,
0.2791503072,
0.0136168301,
-0.0404189453,
-0.1539395303,
0.224642396,
0.1235999241,
0.2225518525,
-0.3244819641,
0.1071844622,
-0.2705765069,
0.3529711664,
-0.0407874957,
0.7153812647,
-0.1447269022,
0.3261328638,
0.1128171086,
0.0381268747,
0.1055564806,
-0.2915963531,
0.1107803509,
0.025910534,
-0.4394383132,
-0.0571815073,
-0.0327192843,
-0.0487926267,
-0.0640700758,
-0.0291914027,
0.2615403533,
-0.2473839819,
-0.1046056524,
-0.0212867931,
0.304867208,
-0.0421137698,
-0.2426182181,
-0.3949683309,
-0.5412185192,
-0.4392504394,
-0.1890486777,
0.1465300024,
0.1577130556,
-0.079872258,
0.2045393586,
-0.1588288546,
0.1053306162,
0.2242293805,
0.0840923563,
0.2725593448,
-0.0330146253,
0.1534873843,
0.2682338357,
-0.1665605307,
0.7140192389,
0.7792879343,
-0.1654730141,
-0.3519223332,
0.2531235218,
-0.0765697956,
0.0217687078,
-0.0563556999,
-0.0262793507,
0.0473594815,
-0.199334994,
-0.170183301,
-0.0464214794,
0.198321864,
0.1967192441,
0.1544237733,
-0.2928842604,
-0.7532662153,
0.5231235623,
0.0733508915,
0.1194912791,
0.2948044538,
-0.0994657204,
-0.1877110898,
0.269177407,
0.1097403467,
0.730918169,
-0.4024429619,
0.066400066,
0.1255253702,
0.0390536636,
0.0969473422,
-0.0389399044,
-0.2549374402,
-0.1899637878,
-0.2134167552,
-0.1464366615,
-0.1630650312,
0.2815147638,
0.1523415297,
-0.0743446499,
0.2819463313,
-0.1734500974,
-0.0285564102,
0.237747848,
0.1179538444,
-0.0852735266,
-0.3346667886,
-0.5701631904,
0.0695263222,
-0.17449224,
0.2196645141,
-0.0229283683,
0.0446262993,
-0.0770892203,
-0.0558209866,
-0.3917292953,
0.3648405373,
-0.274818033,
0.3384898901,
-0.1301484108,
-0.3494689465,
0.1892340779,
0.4507744312,
0.2284567952,
0.1401092708,
-0.152766645,
0.0742593706,
0.264270395,
-0.2523836792,
-0.0304524899,
-0.1002171487,
-0.0693551153,
-0.0230431631,
-0.2731990218,
0.1419650614,
-0.0702481121,
-0.22475411,
-0.0742939115,
0.1391911209,
0.0287420545,
-0.0994304642,
-0.3413543701,
-0.0718905702,
0.0351187512,
-0.1643307507,
-0.0067223441,
0.2091258913,
-0.0939809233,
0.0110957026,
0.0571488999,
-0.3362409174,
0.0208260734,
0.4598703682,
-0.0671366006,
-0.103542529,
0.5126206875,
0.2207635045,
-0.2053337693,
-0.1291893274,
0.2668745518,
0.3432770371,
-0.243523851,
0.0247940607,
-0.1015282348,
0.1226385981,
0.0169644617,
0.0190842655,
0.2321759164,
-0.3506090045,
0.3566074073,
-0.59125036,
-0.3739059269,
0.1904154718,
-0.1842520833,
0.0209104754,
-0.0230075642,
0.0114092864,
-0.153870821,
-0.0855405927,
-0.1131537631,
0.1104637086,
-0.3555288911,
0.0531754419,
0.2333114296,
-0.0038373396,
0.0266176127,
-0.1702212393,
0.0084074363,
0.1382465363,
0.0358457156,
-0.0385316797,
-0.182315439,
0.2142097503,
0.129101634,
-0.3466270864,
0.009542577,
-0.217315644,
-0.0406779721,
-0.1456345618,
0.1752342433,
0.4642311931,
-0.0508852899,
0.1162914336,
0.2020452321,
0.1192642897,
-0.3610048592,
0.377337724,
-0.0597466491,
0.2192402631,
0.1052804068,
0.1996854693,
0.2261882126,
0.1284536123,
-0.2986386418,
-0.0918604285,
0.2543622255,
-0.0207495615,
0.2784876227,
-0.4246551991,
0.3846978545,
0.0934025049,
0.1392692178,
0.4423637986,
-0.2708706558,
0.0668304488,
0.3226238489,
0.0277720075,
-0.2396786511,
-0.1068025231,
0.1143146008,
0.0567226633,
-0.1326248348,
0.3174366355,
0.3981636763,
0.0658835471,
-0.1405834556,
0.0366228446,
0.0629205406,
-0.1436377168,
0.0519925877,
0.6180886626,
0.0182581469,
0.2121532261,
0.0627514124,
0.2251055837,
-0.0261532478,
0.3331246078,
-0.1577177793,
0.4461427033,
0.2134561688,
0.190859437,
-0.3277816176,
-0.5346598625,
-0.1699692458,
0.320479393,
0.0944018215,
-0.0257122703,
-0.2086395621,
0.2422647178,
-0.1822716147,
0.1587971747,
-0.069755882,
0.1305375546,
-0.0340363681,
-0.1838854998,
-0.1329227686,
-0.1520825177,
-0.5502748489,
0.1870924085,
-0.2470207065,
-0.1265387386,
0.1939037442,
0.1568963528,
-0.1329804063,
-0.3558683395,
-0.0509608276,
0.3773245811,
-0.3437857628,
-0.3400720954,
0.3964487612,
0.0177267194,
0.0172702596,
0.2495319247,
0.1393801123,
0.3306981325,
0.4204996228,
-0.3608879745,
-0.1154858321,
0.0613385513,
0.0774012804,
0.0765655786,
0.1979316622,
0.0195523016,
0.2065385878,
0.3709864616,
-0.0114098229,
-0.0139409117,
-0.031657476,
0.1572707593,
-0.2297267467,
-0.0879768655,
0.2299747914,
-0.0481606498,
0.1998765469,
-0.1176379472,
0.0245097633,
-0.2423738241,
0.021785751,
0.575178504,
0.010339573,
0.1068287641,
0.0592918806,
-0.0527460612,
-0.1844878197,
0.3957374096,
0.6384897828,
0.3486223221,
-0.4021955431,
-0.1908640414,
-0.7238463163,
0.0598114394,
-0.4783251286,
-0.2568795085,
0.5058493614,
-0.0741572455,
0.1018313766,
0.3911997378,
-0.0939411968,
0.2525466383,
0.1857646108,
0.2951026559,
-0.2620004117,
-0.2589089274,
0.4163452089,
0.2090039849,
-0.1786014736,
-0.4936585128,
-0.0105338022,
0.0426238813,
-0.0922618136,
-0.1824913323,
0.0417560041,
0.1412573904,
0.3790919781,
0.1933657527,
0.0584117547,
0.7760936618,
-0.0257241242,
-0.0648016036,
-0.0789829791,
-0.6323977709,
-0.0542364381,
0.0605212152,
0.0649563596,
0.1296198666,
-0.1022137254,
-0.1126851737,
-0.3824727535,
0.3061404526,
-0.1255756021,
-0.1483522356,
-0.2318835855,
-0.0043639615,
-0.0508507639,
-0.0628494918,
-0.0281332806,
0.0610886849,
0.1224480346,
0.3552177846,
-0.1259650886,
-0.2262786776,
0.3989254534,
-0.0534627363,
-0.4505841136,
0.072582379,
-0.1192309931,
0.335065335,
-0.2118576914,
-0.4614244401,
0.1921402961,
0.2282827795,
-0.1450066268,
-0.3645920157,
0.0354046002,
0.1440641731,
0.1055092067,
-0.1191356108,
0.6080466509,
0.0068143178,
-0.158861503,
0.1072709858,
-0.1721353233
] |
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.0752861947,
0.0026139468,
0.4443908632,
0.371329695,
0.0691194013,
0.2405686826,
0.0394756012,
0.5101776123,
0.20612441,
-0.3589060009,
0.0527053289,
0.0860962346,
0.0808657259,
0.1144122556,
-0.3151045442,
-0.0602493882,
0.0173559524,
-0.2503676414,
-0.0655044019,
-0.4105168581,
-0.0623264834,
-0.3046577573,
0.1095429584,
-0.1711036265,
0.2064575106,
0.0141452998,
0.1647336483,
-0.3150221705,
-0.4950221181,
0.563359499,
0.0180330817,
0.5800749063,
0.2213219553,
-0.0001253432,
0.1060387641,
0.4861795306,
-0.0613057353,
-0.3452346623,
-0.4049580693,
-0.4189882874,
-0.1315974891,
-0.0690609887,
-0.09646523,
0.1045277268,
-0.0043990724,
-0.0823343471,
-0.2585627437,
0.3321031928,
0.3678756654,
0.0941704959,
0.3720286787,
0.0618579686,
-0.2211653441,
0.4757195711,
-0.042270951,
-0.1489076465,
0.1563739479,
0.427099824,
-0.3246811926,
0.1801449955,
0.1246251315,
-0.2091394067,
0.224916935,
-0.1637176275,
0.0560059808,
0.1821352243,
-0.2583510578,
0.2391242385,
0.1349652708,
0.8412336111,
-0.1512388289,
-0.4147816896,
0.0182388052,
-0.101406306,
-0.3554822206,
0.1830143631,
0.0008576438,
-0.0578873269,
0.0788418502,
-0.0767998099,
-0.0602420531,
0.0503759831,
0.2890724838,
-0.143458128,
0.2910362184,
0.0541208126,
0.1338609159,
0.3239516616,
-0.1089205295,
0.4901402593,
0.0979421288,
-0.0730716065,
0.2410606444,
-0.3231168687,
0.2865314484,
-0.0756048635,
-0.3037874401,
0.2389642745,
-0.1045977324,
-0.1012070477,
0.0039556287,
-0.1443650275,
0.3295549154,
0.4467024803,
0.2585928142,
0.3614313304,
0.2899976075,
0.1072540656,
0.1587685347,
-0.0565734729,
-0.0633866861,
-0.4474609494,
-0.2160624415,
0.0857920647,
-0.0271294024,
0.1571701616,
-0.4506188333,
-0.582798183,
0.0448342562,
-0.1629016101,
-0.21788387,
0.0583499521,
0.268889457,
0.1545640528,
0.429779321,
0.0458625481,
0.4458409846,
-0.4962793887,
-0.2659803629,
-0.0544239469,
0.1687626243,
-0.4189634919,
0.0585134104,
0.1439430118,
0.0052871779,
0.2148581445,
0.0167754889,
0.2656739652,
-0.2452535331,
0.128829211,
-0.2358857393,
-0.2444214374,
0.3540517986,
0.3105242848,
0.1218976304,
0.2711305618,
-0.3746763468,
-0.0785990804,
0.2891559601,
-0.222510919,
-0.2350119352,
0.0909443349,
0.0328550488,
-0.1796908975,
0.0550202988,
-1.0357825756,
-0.0764578208,
0.085103184,
0.1069330797,
-0.0155088007,
-0.2755294144,
-0.1712111235,
0.0025957413,
0.2848054767,
0.5355802178,
-0.2868714631,
-0.0464067161,
-0.1408399045,
-0.0400897153,
0.3355930448,
0.3613088727,
-0.3357943892,
0.073754698,
-0.1279850304,
0.1057110131,
0.1982141137,
-0.515075326,
-0.4803658128,
0.1640976965,
0.0509280562,
-0.0161873996,
-0.0857604519,
-0.3274518251,
0.2393177152,
0.0357202701,
0.1953127831,
0.2589241266,
0.058097288,
-0.0908878818,
-0.1751015931,
-0.0985950381,
0.136113584,
0.4271919429,
0.2911246717,
0.1453996599,
0.261487931,
0.4392362833,
0.0436218604,
0.0165756755,
0.0131824799,
0.3216630518,
0.0333596468,
0.090200901,
0.0362410769,
-0.0593444295,
-0.4222899079,
0.2021974623,
-0.093100369,
-0.0453704372,
0.0975538939,
0.181240201,
-0.3897109032,
0.1230221838,
-0.3247449994,
-0.3197045922,
-0.0942891836,
0.0866034031,
-0.09641359,
-0.0818084404,
-0.1697998792,
0.0806682408,
-0.0715484992,
0.1103204936,
-0.3754514754,
0.4191190898,
0.0495782048,
-0.0648902208,
0.0807240456,
0.2062997967,
0.2299799323,
-0.1260801256,
-0.1753812879,
0.1877420545,
0.6032563448,
-0.1791827977,
0.135735929,
-0.0441037118,
0.3042585552,
-0.388569206,
0.1962027848,
-0.0273813624,
0.1187215894,
0.1130646616,
0.059829969,
0.2541898489,
-0.0359747931,
0.184064135,
-0.1281906068,
0.1224726066,
0.3874264956,
0.0022267029,
0.0613592863,
-0.2924955487,
0.5102493763,
0.3250295818,
0.3184417188,
0.0524792969,
-0.1459857374,
-0.2242728025,
-0.1109306887,
-0.1516298354,
0.0816714317,
0.1515701562,
-0.2236988246,
0.0444756523,
0.2037227452,
0.2373352051,
0.32943362,
0.0214675181,
0.0758470446,
-0.0468035601,
0.0237628073,
0.0701770931,
-0.0097975135,
-0.0718167275,
-0.101575762,
0.0644406527,
0.0008367002,
-0.2057576329,
-0.2248118669,
0.0729393959,
0.2377970815,
0.4230691493,
-0.3003163338,
0.0473219156,
-0.4231782556,
-0.1595291793,
0.1389967352,
-0.0802795291,
-0.0387312472,
-0.1483371854,
-0.3189129233,
0.2778152823,
0.3382664919,
0.1288225949,
0.1079092473,
-0.239862591,
-0.024733007,
-0.2022274882,
0.1674776822,
-0.191683203,
-0.136324048,
-0.1142770201,
0.2343534976,
0.1731061786,
0.0974105224,
-0.3408339024,
-0.0454138108,
-0.2319969684,
-0.055594638,
0.2320308983,
-0.0026652711,
0.3095870018,
-0.0770002455,
0.1424633712,
-0.3586756587,
0.0364726186,
0.3661393821,
0.0212175995,
-0.1678795666,
0.2677279711,
-0.0123517886,
-0.1251048148,
0.0236816034,
-0.147312209,
-0.2998110056,
-0.2093852162,
0.0171215199,
0.048266083,
0.0239051543,
-0.0471151583,
0.0395986922,
0.0380499884,
0.1774881184,
-0.1749290079,
-0.3403437138,
-0.4319577515,
0.4691961706,
-0.2710249126,
-0.2475003302,
0.0816967711,
0.0473559648,
0.2014109194,
0.3418826759,
-0.4603405297,
-0.0737861693,
-0.1173928082,
0.1646260321,
0.0758612156,
0.1864942312,
0.0469673239,
-0.1311487257,
0.1585200876,
-0.077041246,
-0.3395667076,
-0.1058102325,
0.2425631136,
0.2578387856,
-0.1052168906,
0.4483572543,
-0.2508385181,
0.2393935919,
-0.0129458494,
0.2891104519,
0.54264009,
-0.0893334076,
0.1529129148,
-0.3217943311,
-0.3143523932,
-0.0997115672,
-0.1948752999,
-0.1389903873,
0.0483571365,
0.0269654915,
-0.1491460949,
-0.2706747353,
-0.052907981,
-0.0879611745,
-0.1746994555,
-0.055343315,
-0.0693782419,
0.3293852806,
-0.0504930168,
0.2791503072,
0.0136168301,
-0.0404189453,
-0.1539395303,
0.224642396,
0.1235999241,
0.2225518525,
-0.3244819641,
0.1071844622,
-0.2705765069,
0.3529711664,
-0.0407874957,
0.7153812647,
-0.1447269022,
0.3261328638,
0.1128171086,
0.0381268747,
0.1055564806,
-0.2915963531,
0.1107803509,
0.025910534,
-0.4394383132,
-0.0571815073,
-0.0327192843,
-0.0487926267,
-0.0640700758,
-0.0291914027,
0.2615403533,
-0.2473839819,
-0.1046056524,
-0.0212867931,
0.304867208,
-0.0421137698,
-0.2426182181,
-0.3949683309,
-0.5412185192,
-0.4392504394,
-0.1890486777,
0.1465300024,
0.1577130556,
-0.079872258,
0.2045393586,
-0.1588288546,
0.1053306162,
0.2242293805,
0.0840923563,
0.2725593448,
-0.0330146253,
0.1534873843,
0.2682338357,
-0.1665605307,
0.7140192389,
0.7792879343,
-0.1654730141,
-0.3519223332,
0.2531235218,
-0.0765697956,
0.0217687078,
-0.0563556999,
-0.0262793507,
0.0473594815,
-0.199334994,
-0.170183301,
-0.0464214794,
0.198321864,
0.1967192441,
0.1544237733,
-0.2928842604,
-0.7532662153,
0.5231235623,
0.0733508915,
0.1194912791,
0.2948044538,
-0.0994657204,
-0.1877110898,
0.269177407,
0.1097403467,
0.730918169,
-0.4024429619,
0.066400066,
0.1255253702,
0.0390536636,
0.0969473422,
-0.0389399044,
-0.2549374402,
-0.1899637878,
-0.2134167552,
-0.1464366615,
-0.1630650312,
0.2815147638,
0.1523415297,
-0.0743446499,
0.2819463313,
-0.1734500974,
-0.0285564102,
0.237747848,
0.1179538444,
-0.0852735266,
-0.3346667886,
-0.5701631904,
0.0695263222,
-0.17449224,
0.2196645141,
-0.0229283683,
0.0446262993,
-0.0770892203,
-0.0558209866,
-0.3917292953,
0.3648405373,
-0.274818033,
0.3384898901,
-0.1301484108,
-0.3494689465,
0.1892340779,
0.4507744312,
0.2284567952,
0.1401092708,
-0.152766645,
0.0742593706,
0.264270395,
-0.2523836792,
-0.0304524899,
-0.1002171487,
-0.0693551153,
-0.0230431631,
-0.2731990218,
0.1419650614,
-0.0702481121,
-0.22475411,
-0.0742939115,
0.1391911209,
0.0287420545,
-0.0994304642,
-0.3413543701,
-0.0718905702,
0.0351187512,
-0.1643307507,
-0.0067223441,
0.2091258913,
-0.0939809233,
0.0110957026,
0.0571488999,
-0.3362409174,
0.0208260734,
0.4598703682,
-0.0671366006,
-0.103542529,
0.5126206875,
0.2207635045,
-0.2053337693,
-0.1291893274,
0.2668745518,
0.3432770371,
-0.243523851,
0.0247940607,
-0.1015282348,
0.1226385981,
0.0169644617,
0.0190842655,
0.2321759164,
-0.3506090045,
0.3566074073,
-0.59125036,
-0.3739059269,
0.1904154718,
-0.1842520833,
0.0209104754,
-0.0230075642,
0.0114092864,
-0.153870821,
-0.0855405927,
-0.1131537631,
0.1104637086,
-0.3555288911,
0.0531754419,
0.2333114296,
-0.0038373396,
0.0266176127,
-0.1702212393,
0.0084074363,
0.1382465363,
0.0358457156,
-0.0385316797,
-0.182315439,
0.2142097503,
0.129101634,
-0.3466270864,
0.009542577,
-0.217315644,
-0.0406779721,
-0.1456345618,
0.1752342433,
0.4642311931,
-0.0508852899,
0.1162914336,
0.2020452321,
0.1192642897,
-0.3610048592,
0.377337724,
-0.0597466491,
0.2192402631,
0.1052804068,
0.1996854693,
0.2261882126,
0.1284536123,
-0.2986386418,
-0.0918604285,
0.2543622255,
-0.0207495615,
0.2784876227,
-0.4246551991,
0.3846978545,
0.0934025049,
0.1392692178,
0.4423637986,
-0.2708706558,
0.0668304488,
0.3226238489,
0.0277720075,
-0.2396786511,
-0.1068025231,
0.1143146008,
0.0567226633,
-0.1326248348,
0.3174366355,
0.3981636763,
0.0658835471,
-0.1405834556,
0.0366228446,
0.0629205406,
-0.1436377168,
0.0519925877,
0.6180886626,
0.0182581469,
0.2121532261,
0.0627514124,
0.2251055837,
-0.0261532478,
0.3331246078,
-0.1577177793,
0.4461427033,
0.2134561688,
0.190859437,
-0.3277816176,
-0.5346598625,
-0.1699692458,
0.320479393,
0.0944018215,
-0.0257122703,
-0.2086395621,
0.2422647178,
-0.1822716147,
0.1587971747,
-0.069755882,
0.1305375546,
-0.0340363681,
-0.1838854998,
-0.1329227686,
-0.1520825177,
-0.5502748489,
0.1870924085,
-0.2470207065,
-0.1265387386,
0.1939037442,
0.1568963528,
-0.1329804063,
-0.3558683395,
-0.0509608276,
0.3773245811,
-0.3437857628,
-0.3400720954,
0.3964487612,
0.0177267194,
0.0172702596,
0.2495319247,
0.1393801123,
0.3306981325,
0.4204996228,
-0.3608879745,
-0.1154858321,
0.0613385513,
0.0774012804,
0.0765655786,
0.1979316622,
0.0195523016,
0.2065385878,
0.3709864616,
-0.0114098229,
-0.0139409117,
-0.031657476,
0.1572707593,
-0.2297267467,
-0.0879768655,
0.2299747914,
-0.0481606498,
0.1998765469,
-0.1176379472,
0.0245097633,
-0.2423738241,
0.021785751,
0.575178504,
0.010339573,
0.1068287641,
0.0592918806,
-0.0527460612,
-0.1844878197,
0.3957374096,
0.6384897828,
0.3486223221,
-0.4021955431,
-0.1908640414,
-0.7238463163,
0.0598114394,
-0.4783251286,
-0.2568795085,
0.5058493614,
-0.0741572455,
0.1018313766,
0.3911997378,
-0.0939411968,
0.2525466383,
0.1857646108,
0.2951026559,
-0.2620004117,
-0.2589089274,
0.4163452089,
0.2090039849,
-0.1786014736,
-0.4936585128,
-0.0105338022,
0.0426238813,
-0.0922618136,
-0.1824913323,
0.0417560041,
0.1412573904,
0.3790919781,
0.1933657527,
0.0584117547,
0.7760936618,
-0.0257241242,
-0.0648016036,
-0.0789829791,
-0.6323977709,
-0.0542364381,
0.0605212152,
0.0649563596,
0.1296198666,
-0.1022137254,
-0.1126851737,
-0.3824727535,
0.3061404526,
-0.1255756021,
-0.1483522356,
-0.2318835855,
-0.0043639615,
-0.0508507639,
-0.0628494918,
-0.0281332806,
0.0610886849,
0.1224480346,
0.3552177846,
-0.1259650886,
-0.2262786776,
0.3989254534,
-0.0534627363,
-0.4505841136,
0.072582379,
-0.1192309931,
0.335065335,
-0.2118576914,
-0.4614244401,
0.1921402961,
0.2282827795,
-0.1450066268,
-0.3645920157,
0.0354046002,
0.1440641731,
0.1055092067,
-0.1191356108,
0.6080466509,
0.0068143178,
-0.158861503,
0.1072709858,
-0.1721353233
] |
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.0752861947,
0.0026139468,
0.4443908632,
0.371329695,
0.0691194013,
0.2405686826,
0.0394756012,
0.5101776123,
0.20612441,
-0.3589060009,
0.0527053289,
0.0860962346,
0.0808657259,
0.1144122556,
-0.3151045442,
-0.0602493882,
0.0173559524,
-0.2503676414,
-0.0655044019,
-0.4105168581,
-0.0623264834,
-0.3046577573,
0.1095429584,
-0.1711036265,
0.2064575106,
0.0141452998,
0.1647336483,
-0.3150221705,
-0.4950221181,
0.563359499,
0.0180330817,
0.5800749063,
0.2213219553,
-0.0001253432,
0.1060387641,
0.4861795306,
-0.0613057353,
-0.3452346623,
-0.4049580693,
-0.4189882874,
-0.1315974891,
-0.0690609887,
-0.09646523,
0.1045277268,
-0.0043990724,
-0.0823343471,
-0.2585627437,
0.3321031928,
0.3678756654,
0.0941704959,
0.3720286787,
0.0618579686,
-0.2211653441,
0.4757195711,
-0.042270951,
-0.1489076465,
0.1563739479,
0.427099824,
-0.3246811926,
0.1801449955,
0.1246251315,
-0.2091394067,
0.224916935,
-0.1637176275,
0.0560059808,
0.1821352243,
-0.2583510578,
0.2391242385,
0.1349652708,
0.8412336111,
-0.1512388289,
-0.4147816896,
0.0182388052,
-0.101406306,
-0.3554822206,
0.1830143631,
0.0008576438,
-0.0578873269,
0.0788418502,
-0.0767998099,
-0.0602420531,
0.0503759831,
0.2890724838,
-0.143458128,
0.2910362184,
0.0541208126,
0.1338609159,
0.3239516616,
-0.1089205295,
0.4901402593,
0.0979421288,
-0.0730716065,
0.2410606444,
-0.3231168687,
0.2865314484,
-0.0756048635,
-0.3037874401,
0.2389642745,
-0.1045977324,
-0.1012070477,
0.0039556287,
-0.1443650275,
0.3295549154,
0.4467024803,
0.2585928142,
0.3614313304,
0.2899976075,
0.1072540656,
0.1587685347,
-0.0565734729,
-0.0633866861,
-0.4474609494,
-0.2160624415,
0.0857920647,
-0.0271294024,
0.1571701616,
-0.4506188333,
-0.582798183,
0.0448342562,
-0.1629016101,
-0.21788387,
0.0583499521,
0.268889457,
0.1545640528,
0.429779321,
0.0458625481,
0.4458409846,
-0.4962793887,
-0.2659803629,
-0.0544239469,
0.1687626243,
-0.4189634919,
0.0585134104,
0.1439430118,
0.0052871779,
0.2148581445,
0.0167754889,
0.2656739652,
-0.2452535331,
0.128829211,
-0.2358857393,
-0.2444214374,
0.3540517986,
0.3105242848,
0.1218976304,
0.2711305618,
-0.3746763468,
-0.0785990804,
0.2891559601,
-0.222510919,
-0.2350119352,
0.0909443349,
0.0328550488,
-0.1796908975,
0.0550202988,
-1.0357825756,
-0.0764578208,
0.085103184,
0.1069330797,
-0.0155088007,
-0.2755294144,
-0.1712111235,
0.0025957413,
0.2848054767,
0.5355802178,
-0.2868714631,
-0.0464067161,
-0.1408399045,
-0.0400897153,
0.3355930448,
0.3613088727,
-0.3357943892,
0.073754698,
-0.1279850304,
0.1057110131,
0.1982141137,
-0.515075326,
-0.4803658128,
0.1640976965,
0.0509280562,
-0.0161873996,
-0.0857604519,
-0.3274518251,
0.2393177152,
0.0357202701,
0.1953127831,
0.2589241266,
0.058097288,
-0.0908878818,
-0.1751015931,
-0.0985950381,
0.136113584,
0.4271919429,
0.2911246717,
0.1453996599,
0.261487931,
0.4392362833,
0.0436218604,
0.0165756755,
0.0131824799,
0.3216630518,
0.0333596468,
0.090200901,
0.0362410769,
-0.0593444295,
-0.4222899079,
0.2021974623,
-0.093100369,
-0.0453704372,
0.0975538939,
0.181240201,
-0.3897109032,
0.1230221838,
-0.3247449994,
-0.3197045922,
-0.0942891836,
0.0866034031,
-0.09641359,
-0.0818084404,
-0.1697998792,
0.0806682408,
-0.0715484992,
0.1103204936,
-0.3754514754,
0.4191190898,
0.0495782048,
-0.0648902208,
0.0807240456,
0.2062997967,
0.2299799323,
-0.1260801256,
-0.1753812879,
0.1877420545,
0.6032563448,
-0.1791827977,
0.135735929,
-0.0441037118,
0.3042585552,
-0.388569206,
0.1962027848,
-0.0273813624,
0.1187215894,
0.1130646616,
0.059829969,
0.2541898489,
-0.0359747931,
0.184064135,
-0.1281906068,
0.1224726066,
0.3874264956,
0.0022267029,
0.0613592863,
-0.2924955487,
0.5102493763,
0.3250295818,
0.3184417188,
0.0524792969,
-0.1459857374,
-0.2242728025,
-0.1109306887,
-0.1516298354,
0.0816714317,
0.1515701562,
-0.2236988246,
0.0444756523,
0.2037227452,
0.2373352051,
0.32943362,
0.0214675181,
0.0758470446,
-0.0468035601,
0.0237628073,
0.0701770931,
-0.0097975135,
-0.0718167275,
-0.101575762,
0.0644406527,
0.0008367002,
-0.2057576329,
-0.2248118669,
0.0729393959,
0.2377970815,
0.4230691493,
-0.3003163338,
0.0473219156,
-0.4231782556,
-0.1595291793,
0.1389967352,
-0.0802795291,
-0.0387312472,
-0.1483371854,
-0.3189129233,
0.2778152823,
0.3382664919,
0.1288225949,
0.1079092473,
-0.239862591,
-0.024733007,
-0.2022274882,
0.1674776822,
-0.191683203,
-0.136324048,
-0.1142770201,
0.2343534976,
0.1731061786,
0.0974105224,
-0.3408339024,
-0.0454138108,
-0.2319969684,
-0.055594638,
0.2320308983,
-0.0026652711,
0.3095870018,
-0.0770002455,
0.1424633712,
-0.3586756587,
0.0364726186,
0.3661393821,
0.0212175995,
-0.1678795666,
0.2677279711,
-0.0123517886,
-0.1251048148,
0.0236816034,
-0.147312209,
-0.2998110056,
-0.2093852162,
0.0171215199,
0.048266083,
0.0239051543,
-0.0471151583,
0.0395986922,
0.0380499884,
0.1774881184,
-0.1749290079,
-0.3403437138,
-0.4319577515,
0.4691961706,
-0.2710249126,
-0.2475003302,
0.0816967711,
0.0473559648,
0.2014109194,
0.3418826759,
-0.4603405297,
-0.0737861693,
-0.1173928082,
0.1646260321,
0.0758612156,
0.1864942312,
0.0469673239,
-0.1311487257,
0.1585200876,
-0.077041246,
-0.3395667076,
-0.1058102325,
0.2425631136,
0.2578387856,
-0.1052168906,
0.4483572543,
-0.2508385181,
0.2393935919,
-0.0129458494,
0.2891104519,
0.54264009,
-0.0893334076,
0.1529129148,
-0.3217943311,
-0.3143523932,
-0.0997115672,
-0.1948752999,
-0.1389903873,
0.0483571365,
0.0269654915,
-0.1491460949,
-0.2706747353,
-0.052907981,
-0.0879611745,
-0.1746994555,
-0.055343315,
-0.0693782419,
0.3293852806,
-0.0504930168,
0.2791503072,
0.0136168301,
-0.0404189453,
-0.1539395303,
0.224642396,
0.1235999241,
0.2225518525,
-0.3244819641,
0.1071844622,
-0.2705765069,
0.3529711664,
-0.0407874957,
0.7153812647,
-0.1447269022,
0.3261328638,
0.1128171086,
0.0381268747,
0.1055564806,
-0.2915963531,
0.1107803509,
0.025910534,
-0.4394383132,
-0.0571815073,
-0.0327192843,
-0.0487926267,
-0.0640700758,
-0.0291914027,
0.2615403533,
-0.2473839819,
-0.1046056524,
-0.0212867931,
0.304867208,
-0.0421137698,
-0.2426182181,
-0.3949683309,
-0.5412185192,
-0.4392504394,
-0.1890486777,
0.1465300024,
0.1577130556,
-0.079872258,
0.2045393586,
-0.1588288546,
0.1053306162,
0.2242293805,
0.0840923563,
0.2725593448,
-0.0330146253,
0.1534873843,
0.2682338357,
-0.1665605307,
0.7140192389,
0.7792879343,
-0.1654730141,
-0.3519223332,
0.2531235218,
-0.0765697956,
0.0217687078,
-0.0563556999,
-0.0262793507,
0.0473594815,
-0.199334994,
-0.170183301,
-0.0464214794,
0.198321864,
0.1967192441,
0.1544237733,
-0.2928842604,
-0.7532662153,
0.5231235623,
0.0733508915,
0.1194912791,
0.2948044538,
-0.0994657204,
-0.1877110898,
0.269177407,
0.1097403467,
0.730918169,
-0.4024429619,
0.066400066,
0.1255253702,
0.0390536636,
0.0969473422,
-0.0389399044,
-0.2549374402,
-0.1899637878,
-0.2134167552,
-0.1464366615,
-0.1630650312,
0.2815147638,
0.1523415297,
-0.0743446499,
0.2819463313,
-0.1734500974,
-0.0285564102,
0.237747848,
0.1179538444,
-0.0852735266,
-0.3346667886,
-0.5701631904,
0.0695263222,
-0.17449224,
0.2196645141,
-0.0229283683,
0.0446262993,
-0.0770892203,
-0.0558209866,
-0.3917292953,
0.3648405373,
-0.274818033,
0.3384898901,
-0.1301484108,
-0.3494689465,
0.1892340779,
0.4507744312,
0.2284567952,
0.1401092708,
-0.152766645,
0.0742593706,
0.264270395,
-0.2523836792,
-0.0304524899,
-0.1002171487,
-0.0693551153,
-0.0230431631,
-0.2731990218,
0.1419650614,
-0.0702481121,
-0.22475411,
-0.0742939115,
0.1391911209,
0.0287420545,
-0.0994304642,
-0.3413543701,
-0.0718905702,
0.0351187512,
-0.1643307507,
-0.0067223441,
0.2091258913,
-0.0939809233,
0.0110957026,
0.0571488999,
-0.3362409174,
0.0208260734,
0.4598703682,
-0.0671366006,
-0.103542529,
0.5126206875,
0.2207635045,
-0.2053337693,
-0.1291893274,
0.2668745518,
0.3432770371,
-0.243523851,
0.0247940607,
-0.1015282348,
0.1226385981,
0.0169644617,
0.0190842655,
0.2321759164,
-0.3506090045,
0.3566074073,
-0.59125036,
-0.3739059269,
0.1904154718,
-0.1842520833,
0.0209104754,
-0.0230075642,
0.0114092864,
-0.153870821,
-0.0855405927,
-0.1131537631,
0.1104637086,
-0.3555288911,
0.0531754419,
0.2333114296,
-0.0038373396,
0.0266176127,
-0.1702212393,
0.0084074363,
0.1382465363,
0.0358457156,
-0.0385316797,
-0.182315439,
0.2142097503,
0.129101634,
-0.3466270864,
0.009542577,
-0.217315644,
-0.0406779721,
-0.1456345618,
0.1752342433,
0.4642311931,
-0.0508852899,
0.1162914336,
0.2020452321,
0.1192642897,
-0.3610048592,
0.377337724,
-0.0597466491,
0.2192402631,
0.1052804068,
0.1996854693,
0.2261882126,
0.1284536123,
-0.2986386418,
-0.0918604285,
0.2543622255,
-0.0207495615,
0.2784876227,
-0.4246551991,
0.3846978545,
0.0934025049,
0.1392692178,
0.4423637986,
-0.2708706558,
0.0668304488,
0.3226238489,
0.0277720075,
-0.2396786511,
-0.1068025231,
0.1143146008,
0.0567226633,
-0.1326248348,
0.3174366355,
0.3981636763,
0.0658835471,
-0.1405834556,
0.0366228446,
0.0629205406,
-0.1436377168,
0.0519925877,
0.6180886626,
0.0182581469,
0.2121532261,
0.0627514124,
0.2251055837,
-0.0261532478,
0.3331246078,
-0.1577177793,
0.4461427033,
0.2134561688,
0.190859437,
-0.3277816176,
-0.5346598625,
-0.1699692458,
0.320479393,
0.0944018215,
-0.0257122703,
-0.2086395621,
0.2422647178,
-0.1822716147,
0.1587971747,
-0.069755882,
0.1305375546,
-0.0340363681,
-0.1838854998,
-0.1329227686,
-0.1520825177,
-0.5502748489,
0.1870924085,
-0.2470207065,
-0.1265387386,
0.1939037442,
0.1568963528,
-0.1329804063,
-0.3558683395,
-0.0509608276,
0.3773245811,
-0.3437857628,
-0.3400720954,
0.3964487612,
0.0177267194,
0.0172702596,
0.2495319247,
0.1393801123,
0.3306981325,
0.4204996228,
-0.3608879745,
-0.1154858321,
0.0613385513,
0.0774012804,
0.0765655786,
0.1979316622,
0.0195523016,
0.2065385878,
0.3709864616,
-0.0114098229,
-0.0139409117,
-0.031657476,
0.1572707593,
-0.2297267467,
-0.0879768655,
0.2299747914,
-0.0481606498,
0.1998765469,
-0.1176379472,
0.0245097633,
-0.2423738241,
0.021785751,
0.575178504,
0.010339573,
0.1068287641,
0.0592918806,
-0.0527460612,
-0.1844878197,
0.3957374096,
0.6384897828,
0.3486223221,
-0.4021955431,
-0.1908640414,
-0.7238463163,
0.0598114394,
-0.4783251286,
-0.2568795085,
0.5058493614,
-0.0741572455,
0.1018313766,
0.3911997378,
-0.0939411968,
0.2525466383,
0.1857646108,
0.2951026559,
-0.2620004117,
-0.2589089274,
0.4163452089,
0.2090039849,
-0.1786014736,
-0.4936585128,
-0.0105338022,
0.0426238813,
-0.0922618136,
-0.1824913323,
0.0417560041,
0.1412573904,
0.3790919781,
0.1933657527,
0.0584117547,
0.7760936618,
-0.0257241242,
-0.0648016036,
-0.0789829791,
-0.6323977709,
-0.0542364381,
0.0605212152,
0.0649563596,
0.1296198666,
-0.1022137254,
-0.1126851737,
-0.3824727535,
0.3061404526,
-0.1255756021,
-0.1483522356,
-0.2318835855,
-0.0043639615,
-0.0508507639,
-0.0628494918,
-0.0281332806,
0.0610886849,
0.1224480346,
0.3552177846,
-0.1259650886,
-0.2262786776,
0.3989254534,
-0.0534627363,
-0.4505841136,
0.072582379,
-0.1192309931,
0.335065335,
-0.2118576914,
-0.4614244401,
0.1921402961,
0.2282827795,
-0.1450066268,
-0.3645920157,
0.0354046002,
0.1440641731,
0.1055092067,
-0.1191356108,
0.6080466509,
0.0068143178,
-0.158861503,
0.1072709858,
-0.1721353233
] |
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.2140096724,
0.1284444034,
0.0485114902,
0.2001316547,
0.0312910452,
0.0933725983,
0.6712161303,
0.1944084316,
0.1241024435,
-0.0619183108,
-0.049575679,
0.3381048739,
-0.2910545468,
0.4190411568,
0.0773888603,
-0.289087683,
0.0997466296,
0.0731820315,
-0.0559579507,
0.2060502619,
-0.3254210949,
0.2124046236,
-0.4152066708,
0.0127500203,
-0.2546615303,
-0.2034205347,
0.0468138605,
0.2763834298,
-0.2661164999,
-0.3130562305,
0.3886882067,
-0.019433789,
0.4227883816,
0.4655911028,
-0.0001143111,
0.1071713269,
0.5188995004,
-0.1366393268,
-0.5111314654,
-0.3482479453,
-0.4282774925,
0.0564359799,
0.1920469999,
-0.1413850188,
0.040611349,
0.1922591478,
0.155024007,
0.0707049817,
0.2410452962,
0.4013661146,
0.1814023256,
0.380412221,
0.231380567,
-0.2351679355,
0.154595226,
0.0248497687,
-0.0978886038,
0.5647634864,
-0.0470755026,
-0.1141026318,
0.1286963075,
0.3489501476,
-0.1531595886,
0.148301065,
0.2271819115,
0.0371532477,
-0.2069465369,
-0.2533875406,
0.1699535847,
0.1438006461,
0.6555979848,
-0.2468863279,
-0.2574800253,
-0.0335898921,
0.009955503,
-0.2570735514,
0.2009018064,
0.1602668017,
-0.0814760402,
0.0440073274,
-0.0826553404,
-0.0206363034,
-0.2317147553,
0.2486293465,
-0.1192694008,
0.3788588345,
-0.1296506971,
0.2292336524,
0.1909646094,
-0.161306411,
0.4198675156,
0.0673461631,
-0.0003740398,
0.1236647218,
-0.1720058024,
0.0920588225,
0.0743063837,
0.2679721713,
0.0050417706,
-0.1803121269,
-0.0461913198,
-0.1731354147,
0.0700946674,
0.3650496602,
0.4140592217,
0.171842128,
0.0364548266,
0.2923619449,
0.2413598895,
0.3500968814,
-0.0186874866,
0.0057674674,
-0.2672670484,
-0.1643571556,
0.130011037,
0.004981311,
0.4590965509,
-0.0423848107,
-0.4038479626,
-0.0003773347,
-0.3010187149,
0.082471475,
0.0890628844,
0.3704460263,
0.0278563015,
-0.0001118053,
0.2095951438,
0.1817009747,
-0.1293829679,
-0.0431670398,
-0.1425670981,
0.4191195369,
-0.1319152415,
0.1497375667,
0.2187041044,
0.0767596066,
0.1410081685,
-0.1379396468,
0.2220696956,
0.0446453467,
-0.0268262513,
-0.1082436144,
-0.1772273481,
0.2855982184,
0.1986789703,
0.1157575101,
0.2717031837,
-0.44622159,
-0.2021680325,
0.193881005,
-0.3336771727,
-0.4380979538,
-0.2477475405,
0.1399911791,
-0.1422355175,
-0.0807823539,
-0.6888025999,
0.0970537364,
0.3203807175,
-0.2366489023,
-0.1176825762,
-0.3462978601,
-0.464025557,
-0.1770427227,
0.1038891077,
0.6105266809,
-0.4028030634,
-0.1032447964,
-0.2107323855,
0.1306756437,
0.1703798473,
0.2542805076,
-0.3040804565,
0.4380041659,
-0.1264618933,
0.1686677188,
0.0272128396,
-0.2167757004,
-0.2442436516,
0.0688681155,
0.1441138089,
0.1390662193,
-0.1006632298,
-0.1111617833,
0.1963770688,
-0.1156176478,
0.4870842993,
0.2835545242,
-0.1532051265,
0.0493035316,
-0.1728231758,
-0.1591174901,
0.2652180195,
0.2218358815,
0.1602454782,
0.1063035429,
0.0204081852,
0.1632985473,
-0.076086916,
-0.1615732461,
-0.10272035,
0.1023150533,
0.3372314274,
0.0457199067,
-0.0576756969,
0.0702428073,
-0.6290017366,
0.1177144945,
-0.089986302,
0.487635076,
-0.2378151864,
-0.0781502575,
-0.3759537935,
0.2315169126,
-0.2586619854,
0.0211967453,
0.1027924716,
0.1375456452,
-0.3405932486,
0.1095855087,
0.0024862066,
0.3937732577,
-0.1800976098,
-0.0502063632,
-0.5546485186,
0.3506635129,
-0.2476859391,
-0.2609457076,
0.2360200137,
0.0128417183,
0.1512274146,
-0.0852369592,
-0.1042429358,
0.2208427191,
0.083862856,
0.1782540828,
-0.04154291,
0.0498287007,
0.0866228417,
-0.2470028996,
-0.0502536818,
0.2800140977,
0.3062438965,
-0.0222600922,
0.0072830105,
0.3388234377,
0.214528352,
0.0617962033,
-0.1064286977,
0.0869066119,
0.1529310942,
-0.0321945995,
-0.015445862,
-0.1098014712,
0.0940818563,
0.3077628911,
-0.217350632,
-0.0065367781,
-0.3673068285,
0.1065694094,
0.3472859859,
-0.0406759791,
0.1063071936,
0.2004858702,
-0.0458074696,
-0.2589946389,
0.1528943926,
-0.0988083854,
0.3416542411,
-0.0652152151,
-0.1908450723,
-0.0200922638,
0.0983543918,
0.0000414439,
0.111144878,
0.1305608749,
0.204536289,
-0.0218030177,
0.1338375807,
0.0469110049,
-0.1636052281,
-0.1726352572,
0.0007486306,
0.4891524017,
-0.4590346217,
0.3445876539,
-0.0838143677,
-0.3980568051,
-0.1177785695,
-0.0212567355,
-0.0937101096,
-0.3758862019,
-0.1497990042,
0.476955682,
-0.016330231,
0.0647053346,
0.3318712711,
0.3093938231,
0.3434869051,
-0.1801775396,
-0.0913706422,
-0.3669163585,
-0.2936857939,
0.032230176,
0.4665718973,
0.1150843203,
0.2103030086,
-0.2565609813,
-0.0744035691,
-0.1555270255,
-0.3767434061,
0.1977675259,
-0.2820946574,
0.557405293,
0.1927929819,
0.4036367536,
-0.4021498263,
-0.417080164,
0.2165425122,
-0.2159273028,
0.0228552222,
0.0600701794,
-0.25757581,
-0.1695455462,
-0.0780542195,
-0.2154356241,
-0.3880660534,
-0.3334845901,
0.0411791429,
0.0234913006,
0.1087778956,
0.4082963467,
0.103995502,
0.0826147497,
0.500186801,
-0.1201796606,
-0.2204822749,
-0.1896119118,
0.3713562787,
-0.2679736018,
-0.2996504903,
0.0574342981,
-0.1118454635,
-0.03453945,
-0.1276999563,
-0.3979897797,
-0.1679544747,
-0.0796003342,
0.0343476087,
0.0870101601,
0.0046828017,
0.0903066024,
0.0409923829,
0.0165092871,
-0.1444606483,
-0.3971966207,
-0.0447068177,
0.2862808108,
0.1896522194,
0.3199488223,
0.1527797133,
-0.2465850413,
0.4933202863,
0.1270400137,
-0.1835065782,
0.3492405713,
0.0250616465,
0.1754012406,
-0.3715402186,
-0.436845541,
0.2376169711,
-0.1879223883,
-0.2280794233,
0.2979319394,
-0.2045455277,
-0.3474062681,
-0.2248648703,
0.04381603,
-0.1779921055,
-0.4377468526,
0.2583794892,
0.3308213949,
0.1570835561,
0.0771661177,
-0.2223609686,
-0.2364101708,
-0.1451249868,
-0.009316735,
0.4067425132,
0.035208296,
0.0237527937,
0.268517077,
-0.0196397193,
-0.6131857038,
0.2619730234,
0.3598894179,
0.2567746639,
-0.1841001213,
-0.0063455179,
0.003963396,
0.0835694,
0.1082005948,
-0.1093385145,
-0.0108380057,
0.1519349813,
0.0391838923,
-0.0263426118,
-0.0790270269,
-0.3449524045,
0.3172372878,
0.1861913204,
0.2938253582,
-0.3232547045,
0.1021648645,
0.2999718785,
0.1534427404,
-0.1450289339,
-0.142193988,
-0.3056724668,
-0.575537324,
-0.4369575679,
-0.1568493098,
0.229185909,
0.3046583533,
-0.0445027202,
0.2770195007,
0.1160703674,
-0.024973996,
0.2497918308,
0.1906316578,
0.2642819285,
0.2793498933,
-0.0030473098,
-0.1023886353,
-0.0883052349,
0.3251292706,
0.5740009546,
0.0765842572,
-0.3027879,
0.15344432,
-0.0007592067,
-0.0351321995,
0.1420035958,
-0.2235963643,
-0.1190418303,
-0.0791735351,
0.1191910356,
0.0921078473,
0.3412058353,
0.1121096537,
0.0040063635,
-0.6925354004,
-0.4981177449,
0.4090974629,
-0.0072397925,
0.0192800313,
0.4975599349,
0.1867413372,
-0.2983268797,
0.3348348439,
0.1221373826,
0.8771525621,
-0.1109953821,
0.1701842248,
0.7048409581,
0.3051102161,
0.3482860923,
0.1293722242,
0.1986812502,
-0.2439749241,
-0.0101687573,
-0.1779772937,
-0.034731973,
-0.1059867814,
-0.1789798588,
-0.513309598,
0.1631121188,
-0.1395597607,
0.153298229,
0.1962641627,
0.2055082321,
-0.0852641165,
-0.2222537994,
-0.4470223486,
0.1357433498,
-0.1891503632,
0.1525287628,
-0.169850722,
-0.1999876797,
-0.0422524996,
-0.2237292528,
-0.4431300461,
-0.0101410411,
-0.3017948568,
0.2878566682,
0.1285063177,
-0.3540193439,
0.3821356595,
0.0873135701,
0.2093687356,
-0.0861253887,
-0.2630381286,
0.0796149001,
-0.0422882587,
-0.1822866201,
-0.2927994132,
-0.0839490667,
0.3890056908,
0.010422349,
-0.0555329993,
-0.1049362719,
-0.0217701681,
-0.3225517869,
-0.0210438073,
0.1069691628,
-0.1146422178,
-0.359072566,
-0.1863968968,
-0.0565642342,
-0.0802440718,
-0.1424155086,
0.1051645428,
-0.0230295248,
-0.0452693291,
-0.0582767762,
0.0906593204,
-0.2889912724,
-0.0133597422,
0.2108224928,
-0.0169836618,
0.2019537985,
0.505975008,
0.323105365,
-0.1487449557,
-0.1556159556,
0.0903207064,
0.0370925926,
-0.1766447425,
0.3680171967,
0.0764474571,
0.1777410656,
-0.1176417395,
0.7146795988,
0.0049759834,
0.1166737229,
0.2042619139,
-0.6232950091,
-0.1541107297,
0.2746366262,
-0.2994156182,
0.1232725531,
0.1035277545,
0.1669118851,
0.0297567919,
-0.2967008948,
-0.2817040682,
0.0297347158,
-0.3422639072,
0.1165574044,
0.5153740644,
-0.1448720098,
0.2689297497,
0.0518571362,
0.1047896594,
0.0106332507,
0.0130030029,
-0.2168715894,
-0.1562117189,
0.1366970092,
-0.0015315562,
-0.2776113749,
-0.1031046435,
-0.0232948549,
-0.204148069,
-0.1257897317,
0.2397996783,
0.2675268948,
-0.2015848011,
0.0886180848,
-0.0584743023,
0.0901303589,
0.0289788395,
0.2691268921,
0.057619378,
0.362467587,
0.0758863986,
0.2564902604,
0.1219141632,
0.0619147718,
0.1604729146,
0.3062050343,
0.1793515086,
0.0806683451,
0.1938151121,
-0.4666217566,
0.0848970413,
-0.3038906753,
0.1471397728,
0.3480233848,
-0.3421801031,
0.0292508528,
0.1527014971,
0.0747290105,
-0.1406995356,
0.0847328007,
0.2097508162,
-0.1218281314,
-0.0363925993,
0.3370084465,
0.0952701122,
0.1607524902,
-0.1302416921,
-0.0091694258,
0.2860712409,
0.2742426991,
0.1155957133,
-0.031512171,
-0.165458858,
0.1139841005,
0.0179618057,
0.1874174178,
0.183104068,
0.0614977106,
-0.1229429692,
0.1994289458,
-0.2232543677,
0.0014119791,
0.2800665498,
-0.5291490555,
0.0418863595,
0.0880158842,
0.1026346534,
0.071338132,
0.0034235753,
0.4099150896,
-0.2465036809,
-0.0876882672,
-0.2012916207,
0.1213341653,
-0.1715997308,
-0.0220153388,
-0.1088466942,
-0.0851300433,
-0.3159868121,
0.1382002831,
-0.0426839702,
-0.0950911045,
0.2009619772,
0.3130761087,
-0.0781464875,
-0.2880218327,
0.0612915345,
0.2677077353,
-0.1242278963,
-0.1469755173,
0.2357488126,
0.0108398125,
-0.1058396846,
-0.0509674214,
0.266068697,
0.7285702229,
0.3192519546,
-0.255106926,
0.0773127824,
-0.0690373778,
-0.1405920982,
0.0278507173,
0.003203189,
0.1834238619,
0.184414506,
0.3254412413,
0.1618837714,
-0.0949520916,
0.1528597474,
0.0883173645,
-0.076748684,
-0.0448463932,
-0.0696905851,
-0.3189101815,
0.1108427197,
-0.2443201244,
0.0555679053,
-0.360424757,
0.0488565527,
0.3898121715,
0.0613458157,
0.1407897323,
0.0984555408,
0.0432325788,
-0.089161016,
0.7480608821,
0.4245293438,
0.5701189041,
-0.4606823325,
-0.2080961466,
-0.4583547711,
0.1459203809,
-0.06892322,
-0.046838522,
-0.0326215811,
0.0107747167,
0.0743061304,
0.2133217156,
-0.1900986433,
-0.1546645463,
-0.1080699041,
-0.0489009134,
-0.1239414811,
-0.3723291159,
0.0555768274,
-0.1665823162,
-0.0945498645,
-0.3566226065,
-0.0013355855,
-0.3693268895,
0.0391542539,
-0.398943305,
-0.2728853524,
-0.0115518719,
-0.0481828377,
0.1678232998,
0.1803109795,
0.6532689333,
-0.1587122977,
-0.1381347775,
-0.0625670999,
-0.3694786429,
-0.1216885448,
0.1717716902,
0.0265652649,
0.4272353649,
-0.0047248192,
0.2010181099,
-0.4344119132,
0.333969444,
0.0141448379,
-0.1143101007,
-0.4061490595,
0.0375444442,
-0.2808107138,
0.0591574758,
-0.0056759827,
0.0953869969,
-0.1021749824,
0.1446496248,
-0.1778621376,
-0.3812476993,
0.7138030529,
-0.6547109485,
-0.5138835907,
-0.0173221417,
-0.1966510862,
-0.1308055371,
0.0336086527,
-0.739844799,
0.1849344075,
0.0491946302,
-0.0236795358,
-0.3672488332,
0.1721330285,
0.1016578376,
0.0948797911,
-0.1482051909,
0.2744230926,
0.0389564782,
-0.182254374,
-0.123279497,
-0.2610341907
] |
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.411736846,
-0.1673518866,
-0.015645165,
0.3972489238,
0.1182576418,
0.0823770016,
0.192252174,
0.2819980979,
-0.1431497484,
0.2579933107,
-0.2424354851,
-0.0248964094,
0.1322235465,
0.3834213018,
-0.2399136126,
-0.1725852191,
-0.0782720447,
0.1208089292,
-0.4165074825,
-0.1202891693,
-0.4559482932,
0.223883599,
-0.1563928723,
0.2297670394,
0.3186609149,
-0.0702560917,
0.1518448442,
0.0579338595,
-0.2905827761,
-0.3938678503,
-0.1512021422,
-0.2992528081,
0.3983564377,
0.2486603856,
-0.0001240568,
0.0139630437,
0.1579875052,
-0.0384622291,
0.0809597075,
-0.0592178255,
0.1000383422,
0.1473320723,
-0.0287122242,
-0.3051402569,
0.0371814743,
-0.2251010984,
-0.3708879054,
-0.2680354118,
0.2880218923,
0.3753131032,
0.0867759883,
0.5228813887,
0.337361306,
-0.1462077498,
0.1830139756,
-0.0422983803,
0.0586618781,
-0.0693612471,
0.3234796822,
-0.2280780375,
0.3684239984,
0.2993505299,
-0.1102043465,
-0.1365146935,
0.2203767598,
-0.2563659251,
0.6804651022,
-0.553548038,
0.0111162178,
0.3440342546,
0.073990196,
0.0230665486,
-0.0722477213,
0.0284324735,
-0.014741689,
-0.8122336864,
-0.0916821361,
0.1136499792,
-0.0426634587,
0.1667117774,
-0.3281252086,
0.0566356182,
0.0846512616,
0.1801352501,
0.0343024582,
0.3327200115,
0.0061036386,
0.2988552749,
0.2502730489,
-0.2295202613,
-0.4094230235,
0.2705804706,
-0.1085325256,
0.287165761,
-0.4670934081,
-0.0439887233,
0.0700742379,
-0.1362361014,
0.4946715832,
0.2132566273,
-0.5131158829,
-0.1626806855,
0.4100389779,
-0.0067462185,
0.2849930525,
0.2695946991,
-0.0111152455,
0.0230320916,
0.2029657811,
0.0215274841,
0.1223784089,
-0.0572649203,
-0.0405002758,
-0.2940119505,
-0.2561858296,
-0.0725328177,
0.1384640336,
-0.4892798364,
-0.2409021258,
0.3881002665,
-0.314669311,
-0.0595291778,
0.5197181702,
0.3339306712,
0.1966293454,
-0.1151286662,
-0.0928348601,
0.2790850103,
-0.3406357765,
0.0021831803,
-0.018069597,
-0.0317980833,
-0.0366428494,
0.0159904435,
-0.0337796845,
-0.6434463859,
0.2684477568,
0.1619416773,
0.5190973282,
-0.426946044,
0.1198230088,
-0.219924286,
-0.0168504268,
0.2775984406,
-0.0571952797,
0.1540124118,
0.3632330894,
0.0032502487,
-0.0590383336,
0.0531925708,
-0.4613534808,
-0.4059742689,
-0.3444899023,
0.0495100878,
-0.1387340128,
0.4477998614,
0.1756898761,
-0.0166503601,
0.4423441589,
-0.1872704625,
0.2043520361,
-0.1826287359,
-0.3020602465,
0.0518631116,
0.3899739981,
0.1399207711,
0.0265585557,
0.1484416127,
0.2194243371,
0.2127542347,
0.3668284416,
0.5186986923,
-0.2727025747,
-0.0015196744,
-0.4783478379,
0.2312490195,
0.0005184039,
-0.4624032378,
-0.2426679134,
-0.1247509122,
-0.2872539163,
-0.2944652736,
0.0553654134,
-0.178138718,
0.6758929491,
-0.0452673398,
0.2189909369,
0.0732167959,
0.0459527075,
-0.1863199472,
-0.2554854453,
0.0077219084,
0.3513785303,
-0.1988133192,
0.0082606701,
-0.023290772,
-0.0493817925,
-0.1482339799,
0.1101341397,
-0.0605437011,
0.1323246807,
0.2601274848,
0.2107943594,
0.0742597431,
0.2487875819,
-0.061124064,
0.1535781026,
-0.050814338,
-0.4693948925,
0.2518245578,
-0.0783603489,
0.0079229772,
-0.365586549,
0.0975490287,
-0.103097111,
-0.2655678689,
-0.0031700693,
-0.2116549909,
0.1113093644,
0.1097498089,
0.1644178033,
-0.1983310282,
-0.0019175112,
0.2206000984,
-0.3111985326,
0.3991577625,
-0.2442425936,
-0.0184908099,
0.029028967,
0.3571316898,
0.3908422589,
-0.2759012282,
-0.164444387,
0.2347950041,
0.0223703645,
-0.2906487882,
-0.2894757688,
0.3155038655,
0.1678450704,
-0.3867719769,
0.0024171397,
-0.282569766,
0.0304203741,
-0.0328208581,
0.1935183555,
0.5273355246,
-0.1704323143,
0.398483336,
-0.2610980868,
0.1100409254,
0.0254601091,
0.1451859325,
0.0004746467,
-0.1778208613,
0.3125909567,
0.3107433617,
0.1120007411,
0.0675269291,
-0.1241342872,
-0.0501557365,
0.2982765138,
0.0116718337,
0.1062056199,
0.0498671606,
-0.0823499262,
-0.0183439739,
0.1508110166,
-0.2998589575,
0.1713972688,
0.1358768493,
-0.0547968782,
0.0122384746,
-0.0049693622,
-0.0121080726,
0.2557177842,
0.0212528668,
0.3840562701,
0.1920320541,
0.0013481565,
-0.0890294015,
-0.1562480927,
-0.1054887995,
0.1233057901,
0.4478664994,
-0.2748397589,
0.0627050325,
-0.0854327902,
0.0197415128,
-0.1227130666,
-0.3330762982,
-0.6193662882,
-0.1888407469,
0.1114287823,
0.0365404487,
0.0309599191,
0.0561556742,
0.1487269104,
-0.0703548789,
0.2286868244,
0.1457815468,
0.1693618298,
-0.0629821718,
-0.182360962,
-0.1482487172,
0.1953946203,
-0.0163389891,
0.0471093133,
0.1365006566,
-0.096771732,
-0.0325954556,
-0.589405179,
0.310652554,
-0.0568138584,
0.3301674724,
0.0491235666,
0.1147354841,
-0.0633866936,
-0.1362302601,
0.1913005114,
0.0995126814,
-0.2120438218,
0.0822474733,
-0.0835588947,
0.2379556894,
-0.1326676458,
-0.0950535983,
-0.2327532768,
-0.4111003876,
0.2914528847,
-0.1913593262,
0.058713492,
0.2794521451,
-0.1564146131,
-0.0205894895,
0.079797931,
-0.1391311884,
-0.322467804,
0.1024729162,
0.3471238315,
-0.2841888964,
-0.2615581453,
-0.2328040302,
0.1744872928,
0.2109637558,
-0.1036836356,
-0.4139459729,
-0.0216100663,
-0.1247049123,
0.0797610581,
-0.2371437699,
0.1470893025,
0.3746409416,
-0.1469144821,
-0.0013900883,
-0.1065232977,
-0.1248332784,
0.1823374778,
-0.090052858,
0.0056256279,
-0.0408164933,
0.7449670434,
-0.1414621323,
0.5462417006,
0.1166381016,
0.0463527553,
0.3334824443,
-0.1853603423,
0.3638516366,
-0.0925794616,
-0.3035500646,
0.2539816499,
0.251596868,
-0.2397889793,
0.1635259539,
-0.1627690196,
0.0914800465,
-0.0657884628,
-0.1014059782,
0.0549393147,
-0.2810799778,
-0.1190145761,
0.443595767,
0.3401423693,
0.0735056624,
0.4127731323,
-0.0851287395,
-0.157809943,
0.1060773581,
-0.0302278399,
-0.0383118466,
0.1415880769,
-0.6263699532,
-0.4313118756,
-0.5289622545,
0.4155210853,
0.0741582215,
0.7487251163,
-0.1871675104,
0.1006234586,
0.0712510943,
0.063962318,
0.7198231816,
0.2071081996,
-0.0213010516,
-0.039916791,
-0.1477175802,
-0.242310822,
-0.1408004612,
-0.0278389901,
0.5661053061,
0.0240682214,
0.6595686078,
-0.2567322254,
-0.2979433835,
0.3916324377,
0.1320491135,
-0.1679753363,
-0.0606121942,
-0.1955357939,
-0.309843719,
-0.2639373839,
0.3379351497,
0.1940554082,
0.5438350439,
-0.1234489456,
-0.0158894882,
0.1631438881,
-0.1943353266,
0.1099148244,
0.1643000841,
0.4007407129,
0.079705134,
0.0898569524,
0.2112829238,
-0.0558949113,
0.5950168371,
0.10406892,
-0.0604193546,
-0.0915406644,
0.1939136535,
0.013168063,
0.3254156709,
0.139102906,
0.0967572331,
0.1080203801,
0.1463080049,
0.3830470145,
-0.2549989522,
-0.0272540618,
0.2192224562,
0.2564141452,
-0.3760877252,
0.0446607247,
0.0586691387,
0.0565801263,
-0.0172104836,
0.2615423203,
0.325627774,
-0.1692547947,
0.1965736747,
0.4372457266,
1.1253492832,
-0.2956344187,
-0.0780401081,
-0.1270178109,
-0.3361195922,
0.6042551994,
-0.2630313337,
-0.0462495387,
-0.3473006189,
-0.1285605133,
0.0290813297,
-0.1867011636,
-0.0097714812,
-0.2190949768,
-0.0997653157,
0.152713269,
-0.2251032889,
-0.1580949575,
-0.2182853967,
0.2269461751,
0.3224571347,
-0.2332212776,
-0.1530531943,
-0.0327683762,
-0.0646054447,
0.1714268029,
-0.2102532983,
-0.1722313911,
0.1970990002,
-0.2368189692,
-0.2299950421,
-0.1415083408,
-0.4525684714,
0.2946377993,
0.0208067186,
-0.322722733,
0.3300318122,
0.1336203963,
0.1228149533,
0.4325304925,
-0.2202584743,
-0.0268771369,
-0.0063686017,
-0.1093931347,
-0.086789377,
0.0674538612,
0.0446672663,
-0.1134757996,
-0.4193345904,
0.1008557826,
-0.0415859446,
-0.0372324362,
-0.1182167679,
0.1514539421,
0.1590320766,
-0.2331366092,
0.3106339276,
0.0292769596,
-0.1071385145,
-0.239130199,
-0.0605495088,
0.1102114618,
-0.4307789803,
0.0195445716,
0.0935490429,
-0.4853803515,
0.0089950673,
0.4414260983,
-0.0217241906,
-0.1256334633,
0.560474813,
0.3870259225,
-0.0833008736,
-0.0891313255,
0.0665603876,
0.3794843554,
-0.3428509831,
-0.0206779949,
-0.0268816166,
0.0366383791,
-0.0318853557,
0.0771937519,
0.1465908885,
-0.0055676401,
-0.1001250595,
-0.4927744269,
-0.4502185583,
0.105036512,
-0.1411197931,
0.0919766501,
0.1732309163,
0.0533691011,
-0.2124429941,
-0.0619374439,
-0.1585218161,
-0.0634853244,
-0.4207333326,
0.2324084789,
0.1008734852,
-0.4312163591,
0.0396447778,
-0.0233104154,
-0.0935194045,
0.1902831942,
-0.3172388971,
-0.0028025061,
-0.1553541124,
0.2393624038,
-0.095550172,
-0.5256471634,
0.0028378107,
-0.1402627826,
-0.1286248118,
-0.1450248212,
-0.0684644356,
0.1721588969,
0.066032365,
-0.284412086,
0.2785304189,
-0.2525463998,
-0.1802475005,
0.0735503063,
0.2667729259,
0.1805520058,
-0.0312233269,
0.4272297323,
0.0469696522,
-0.1794162989,
-0.4443586171,
0.0844649076,
0.2403592318,
-0.3084860146,
0.0818069801,
-0.2272556126,
-0.1002403274,
0.462474376,
0.4395343065,
0.3952622414,
0.0054787509,
-0.0640100166,
0.2593303919,
0.0696913004,
-0.1671453714,
-0.1368121505,
0.2515739501,
-0.004936602,
-0.0690292865,
0.4297883213,
0.2808300257,
0.0913787037,
0.063043654,
0.0423072353,
0.2633597255,
0.142508626,
0.0828461573,
0.1284723282,
-0.0913551301,
-0.0380901024,
0.2750041783,
-0.0623215213,
0.4039420784,
0.3254383206,
-0.1907830536,
0.128417775,
0.4210960865,
0.1274312139,
0.1366225779,
-0.2624635696,
-0.1123235002,
0.2244533598,
0.2346691638,
0.1128061116,
-0.1113445163,
0.7335342765,
-0.0874512643,
-0.3345427513,
-0.0257380717,
0.45917207,
-0.2747837007,
-0.0890217423,
-0.1561333835,
-0.1324679852,
-0.032247223,
-0.0687892586,
0.1778806299,
0.0589247532,
-0.0222296268,
0.0233923774,
-0.2222557515,
-0.3103192747,
-0.5450296402,
0.5357752442,
-0.0293433592,
-0.3221192956,
0.3328133523,
0.3862289488,
-0.1073273793,
0.1693545729,
0.3321026564,
0.5232442021,
0.232700035,
-0.1036633551,
-0.0796246827,
0.0639353693,
0.1587667167,
-0.0327847041,
-0.0839484781,
0.0879548192,
0.1356131285,
0.0877455622,
-0.0667450279,
-0.0521091931,
-0.0449392572,
0.203618139,
0.0595418699,
0.0997646004,
-0.5444075465,
-0.1548727006,
-0.1310878694,
-0.3298234046,
0.0288381539,
-0.1454810053,
0.2842455208,
0.3009549081,
-0.0438534617,
0.0339542702,
0.0367658958,
0.002388332,
-0.1856235266,
0.4092005193,
0.4066257179,
0.0112807089,
-0.2685204446,
-0.1344893277,
-0.4066000581,
0.2426138073,
-0.3182493448,
-0.1087303162,
0.416859448,
0.1510163248,
0.0382541455,
0.0451902039,
0.499810338,
-0.2465702295,
-0.1361932456,
0.2110147029,
-0.3237797022,
-0.0380776823,
-0.2183672935,
-0.0580941699,
0.1589758247,
0.0137185827,
0.3272309303,
-0.0570998751,
-0.0797361284,
-0.3092333376,
0.2265754342,
-0.3428744078,
-0.0971136838,
0.183123827,
0.4092596173,
0.2603730559,
0.146585077,
0.0863461196,
0.1715344936,
-0.2983761132,
-0.0559381284,
0.2614253759,
0.0259769857,
0.0188195929,
-0.1280236393,
-0.7292593122,
-0.489446938,
0.1618306339,
0.018607147,
-0.2161202431,
-0.2587124705,
0.3220773041,
-0.0869770497,
0.0181749053,
0.1464766562,
0.3136517406,
0.3915125728,
0.2425846756,
-0.2641707957,
-0.4147349894,
0.6981278658,
-0.5851545334,
-0.2028036118,
-0.2027393579,
0.2233406305,
0.5235947967,
-0.3709136844,
-0.3115881681,
-0.0513186678,
0.21268031,
0.2346114814,
-0.4300559163,
-0.0479075015,
-0.2759914696,
-0.0874552131,
0.0262603611,
-0.0255267769,
0.1617365628,
-0.2601891756,
0.2698345482,
-0.0476781763
] |
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.411736846,
-0.1673518866,
-0.015645165,
0.3972489238,
0.1182576418,
0.0823770016,
0.192252174,
0.2819980979,
-0.1431497484,
0.2579933107,
-0.2424354851,
-0.0248964094,
0.1322235465,
0.3834213018,
-0.2399136126,
-0.1725852191,
-0.0782720447,
0.1208089292,
-0.4165074825,
-0.1202891693,
-0.4559482932,
0.223883599,
-0.1563928723,
0.2297670394,
0.3186609149,
-0.0702560917,
0.1518448442,
0.0579338595,
-0.2905827761,
-0.3938678503,
-0.1512021422,
-0.2992528081,
0.3983564377,
0.2486603856,
-0.0001240568,
0.0139630437,
0.1579875052,
-0.0384622291,
0.0809597075,
-0.0592178255,
0.1000383422,
0.1473320723,
-0.0287122242,
-0.3051402569,
0.0371814743,
-0.2251010984,
-0.3708879054,
-0.2680354118,
0.2880218923,
0.3753131032,
0.0867759883,
0.5228813887,
0.337361306,
-0.1462077498,
0.1830139756,
-0.0422983803,
0.0586618781,
-0.0693612471,
0.3234796822,
-0.2280780375,
0.3684239984,
0.2993505299,
-0.1102043465,
-0.1365146935,
0.2203767598,
-0.2563659251,
0.6804651022,
-0.553548038,
0.0111162178,
0.3440342546,
0.073990196,
0.0230665486,
-0.0722477213,
0.0284324735,
-0.014741689,
-0.8122336864,
-0.0916821361,
0.1136499792,
-0.0426634587,
0.1667117774,
-0.3281252086,
0.0566356182,
0.0846512616,
0.1801352501,
0.0343024582,
0.3327200115,
0.0061036386,
0.2988552749,
0.2502730489,
-0.2295202613,
-0.4094230235,
0.2705804706,
-0.1085325256,
0.287165761,
-0.4670934081,
-0.0439887233,
0.0700742379,
-0.1362361014,
0.4946715832,
0.2132566273,
-0.5131158829,
-0.1626806855,
0.4100389779,
-0.0067462185,
0.2849930525,
0.2695946991,
-0.0111152455,
0.0230320916,
0.2029657811,
0.0215274841,
0.1223784089,
-0.0572649203,
-0.0405002758,
-0.2940119505,
-0.2561858296,
-0.0725328177,
0.1384640336,
-0.4892798364,
-0.2409021258,
0.3881002665,
-0.314669311,
-0.0595291778,
0.5197181702,
0.3339306712,
0.1966293454,
-0.1151286662,
-0.0928348601,
0.2790850103,
-0.3406357765,
0.0021831803,
-0.018069597,
-0.0317980833,
-0.0366428494,
0.0159904435,
-0.0337796845,
-0.6434463859,
0.2684477568,
0.1619416773,
0.5190973282,
-0.426946044,
0.1198230088,
-0.219924286,
-0.0168504268,
0.2775984406,
-0.0571952797,
0.1540124118,
0.3632330894,
0.0032502487,
-0.0590383336,
0.0531925708,
-0.4613534808,
-0.4059742689,
-0.3444899023,
0.0495100878,
-0.1387340128,
0.4477998614,
0.1756898761,
-0.0166503601,
0.4423441589,
-0.1872704625,
0.2043520361,
-0.1826287359,
-0.3020602465,
0.0518631116,
0.3899739981,
0.1399207711,
0.0265585557,
0.1484416127,
0.2194243371,
0.2127542347,
0.3668284416,
0.5186986923,
-0.2727025747,
-0.0015196744,
-0.4783478379,
0.2312490195,
0.0005184039,
-0.4624032378,
-0.2426679134,
-0.1247509122,
-0.2872539163,
-0.2944652736,
0.0553654134,
-0.178138718,
0.6758929491,
-0.0452673398,
0.2189909369,
0.0732167959,
0.0459527075,
-0.1863199472,
-0.2554854453,
0.0077219084,
0.3513785303,
-0.1988133192,
0.0082606701,
-0.023290772,
-0.0493817925,
-0.1482339799,
0.1101341397,
-0.0605437011,
0.1323246807,
0.2601274848,
0.2107943594,
0.0742597431,
0.2487875819,
-0.061124064,
0.1535781026,
-0.050814338,
-0.4693948925,
0.2518245578,
-0.0783603489,
0.0079229772,
-0.365586549,
0.0975490287,
-0.103097111,
-0.2655678689,
-0.0031700693,
-0.2116549909,
0.1113093644,
0.1097498089,
0.1644178033,
-0.1983310282,
-0.0019175112,
0.2206000984,
-0.3111985326,
0.3991577625,
-0.2442425936,
-0.0184908099,
0.029028967,
0.3571316898,
0.3908422589,
-0.2759012282,
-0.164444387,
0.2347950041,
0.0223703645,
-0.2906487882,
-0.2894757688,
0.3155038655,
0.1678450704,
-0.3867719769,
0.0024171397,
-0.282569766,
0.0304203741,
-0.0328208581,
0.1935183555,
0.5273355246,
-0.1704323143,
0.398483336,
-0.2610980868,
0.1100409254,
0.0254601091,
0.1451859325,
0.0004746467,
-0.1778208613,
0.3125909567,
0.3107433617,
0.1120007411,
0.0675269291,
-0.1241342872,
-0.0501557365,
0.2982765138,
0.0116718337,
0.1062056199,
0.0498671606,
-0.0823499262,
-0.0183439739,
0.1508110166,
-0.2998589575,
0.1713972688,
0.1358768493,
-0.0547968782,
0.0122384746,
-0.0049693622,
-0.0121080726,
0.2557177842,
0.0212528668,
0.3840562701,
0.1920320541,
0.0013481565,
-0.0890294015,
-0.1562480927,
-0.1054887995,
0.1233057901,
0.4478664994,
-0.2748397589,
0.0627050325,
-0.0854327902,
0.0197415128,
-0.1227130666,
-0.3330762982,
-0.6193662882,
-0.1888407469,
0.1114287823,
0.0365404487,
0.0309599191,
0.0561556742,
0.1487269104,
-0.0703548789,
0.2286868244,
0.1457815468,
0.1693618298,
-0.0629821718,
-0.182360962,
-0.1482487172,
0.1953946203,
-0.0163389891,
0.0471093133,
0.1365006566,
-0.096771732,
-0.0325954556,
-0.589405179,
0.310652554,
-0.0568138584,
0.3301674724,
0.0491235666,
0.1147354841,
-0.0633866936,
-0.1362302601,
0.1913005114,
0.0995126814,
-0.2120438218,
0.0822474733,
-0.0835588947,
0.2379556894,
-0.1326676458,
-0.0950535983,
-0.2327532768,
-0.4111003876,
0.2914528847,
-0.1913593262,
0.058713492,
0.2794521451,
-0.1564146131,
-0.0205894895,
0.079797931,
-0.1391311884,
-0.322467804,
0.1024729162,
0.3471238315,
-0.2841888964,
-0.2615581453,
-0.2328040302,
0.1744872928,
0.2109637558,
-0.1036836356,
-0.4139459729,
-0.0216100663,
-0.1247049123,
0.0797610581,
-0.2371437699,
0.1470893025,
0.3746409416,
-0.1469144821,
-0.0013900883,
-0.1065232977,
-0.1248332784,
0.1823374778,
-0.090052858,
0.0056256279,
-0.0408164933,
0.7449670434,
-0.1414621323,
0.5462417006,
0.1166381016,
0.0463527553,
0.3334824443,
-0.1853603423,
0.3638516366,
-0.0925794616,
-0.3035500646,
0.2539816499,
0.251596868,
-0.2397889793,
0.1635259539,
-0.1627690196,
0.0914800465,
-0.0657884628,
-0.1014059782,
0.0549393147,
-0.2810799778,
-0.1190145761,
0.443595767,
0.3401423693,
0.0735056624,
0.4127731323,
-0.0851287395,
-0.157809943,
0.1060773581,
-0.0302278399,
-0.0383118466,
0.1415880769,
-0.6263699532,
-0.4313118756,
-0.5289622545,
0.4155210853,
0.0741582215,
0.7487251163,
-0.1871675104,
0.1006234586,
0.0712510943,
0.063962318,
0.7198231816,
0.2071081996,
-0.0213010516,
-0.039916791,
-0.1477175802,
-0.242310822,
-0.1408004612,
-0.0278389901,
0.5661053061,
0.0240682214,
0.6595686078,
-0.2567322254,
-0.2979433835,
0.3916324377,
0.1320491135,
-0.1679753363,
-0.0606121942,
-0.1955357939,
-0.309843719,
-0.2639373839,
0.3379351497,
0.1940554082,
0.5438350439,
-0.1234489456,
-0.0158894882,
0.1631438881,
-0.1943353266,
0.1099148244,
0.1643000841,
0.4007407129,
0.079705134,
0.0898569524,
0.2112829238,
-0.0558949113,
0.5950168371,
0.10406892,
-0.0604193546,
-0.0915406644,
0.1939136535,
0.013168063,
0.3254156709,
0.139102906,
0.0967572331,
0.1080203801,
0.1463080049,
0.3830470145,
-0.2549989522,
-0.0272540618,
0.2192224562,
0.2564141452,
-0.3760877252,
0.0446607247,
0.0586691387,
0.0565801263,
-0.0172104836,
0.2615423203,
0.325627774,
-0.1692547947,
0.1965736747,
0.4372457266,
1.1253492832,
-0.2956344187,
-0.0780401081,
-0.1270178109,
-0.3361195922,
0.6042551994,
-0.2630313337,
-0.0462495387,
-0.3473006189,
-0.1285605133,
0.0290813297,
-0.1867011636,
-0.0097714812,
-0.2190949768,
-0.0997653157,
0.152713269,
-0.2251032889,
-0.1580949575,
-0.2182853967,
0.2269461751,
0.3224571347,
-0.2332212776,
-0.1530531943,
-0.0327683762,
-0.0646054447,
0.1714268029,
-0.2102532983,
-0.1722313911,
0.1970990002,
-0.2368189692,
-0.2299950421,
-0.1415083408,
-0.4525684714,
0.2946377993,
0.0208067186,
-0.322722733,
0.3300318122,
0.1336203963,
0.1228149533,
0.4325304925,
-0.2202584743,
-0.0268771369,
-0.0063686017,
-0.1093931347,
-0.086789377,
0.0674538612,
0.0446672663,
-0.1134757996,
-0.4193345904,
0.1008557826,
-0.0415859446,
-0.0372324362,
-0.1182167679,
0.1514539421,
0.1590320766,
-0.2331366092,
0.3106339276,
0.0292769596,
-0.1071385145,
-0.239130199,
-0.0605495088,
0.1102114618,
-0.4307789803,
0.0195445716,
0.0935490429,
-0.4853803515,
0.0089950673,
0.4414260983,
-0.0217241906,
-0.1256334633,
0.560474813,
0.3870259225,
-0.0833008736,
-0.0891313255,
0.0665603876,
0.3794843554,
-0.3428509831,
-0.0206779949,
-0.0268816166,
0.0366383791,
-0.0318853557,
0.0771937519,
0.1465908885,
-0.0055676401,
-0.1001250595,
-0.4927744269,
-0.4502185583,
0.105036512,
-0.1411197931,
0.0919766501,
0.1732309163,
0.0533691011,
-0.2124429941,
-0.0619374439,
-0.1585218161,
-0.0634853244,
-0.4207333326,
0.2324084789,
0.1008734852,
-0.4312163591,
0.0396447778,
-0.0233104154,
-0.0935194045,
0.1902831942,
-0.3172388971,
-0.0028025061,
-0.1553541124,
0.2393624038,
-0.095550172,
-0.5256471634,
0.0028378107,
-0.1402627826,
-0.1286248118,
-0.1450248212,
-0.0684644356,
0.1721588969,
0.066032365,
-0.284412086,
0.2785304189,
-0.2525463998,
-0.1802475005,
0.0735503063,
0.2667729259,
0.1805520058,
-0.0312233269,
0.4272297323,
0.0469696522,
-0.1794162989,
-0.4443586171,
0.0844649076,
0.2403592318,
-0.3084860146,
0.0818069801,
-0.2272556126,
-0.1002403274,
0.462474376,
0.4395343065,
0.3952622414,
0.0054787509,
-0.0640100166,
0.2593303919,
0.0696913004,
-0.1671453714,
-0.1368121505,
0.2515739501,
-0.004936602,
-0.0690292865,
0.4297883213,
0.2808300257,
0.0913787037,
0.063043654,
0.0423072353,
0.2633597255,
0.142508626,
0.0828461573,
0.1284723282,
-0.0913551301,
-0.0380901024,
0.2750041783,
-0.0623215213,
0.4039420784,
0.3254383206,
-0.1907830536,
0.128417775,
0.4210960865,
0.1274312139,
0.1366225779,
-0.2624635696,
-0.1123235002,
0.2244533598,
0.2346691638,
0.1128061116,
-0.1113445163,
0.7335342765,
-0.0874512643,
-0.3345427513,
-0.0257380717,
0.45917207,
-0.2747837007,
-0.0890217423,
-0.1561333835,
-0.1324679852,
-0.032247223,
-0.0687892586,
0.1778806299,
0.0589247532,
-0.0222296268,
0.0233923774,
-0.2222557515,
-0.3103192747,
-0.5450296402,
0.5357752442,
-0.0293433592,
-0.3221192956,
0.3328133523,
0.3862289488,
-0.1073273793,
0.1693545729,
0.3321026564,
0.5232442021,
0.232700035,
-0.1036633551,
-0.0796246827,
0.0639353693,
0.1587667167,
-0.0327847041,
-0.0839484781,
0.0879548192,
0.1356131285,
0.0877455622,
-0.0667450279,
-0.0521091931,
-0.0449392572,
0.203618139,
0.0595418699,
0.0997646004,
-0.5444075465,
-0.1548727006,
-0.1310878694,
-0.3298234046,
0.0288381539,
-0.1454810053,
0.2842455208,
0.3009549081,
-0.0438534617,
0.0339542702,
0.0367658958,
0.002388332,
-0.1856235266,
0.4092005193,
0.4066257179,
0.0112807089,
-0.2685204446,
-0.1344893277,
-0.4066000581,
0.2426138073,
-0.3182493448,
-0.1087303162,
0.416859448,
0.1510163248,
0.0382541455,
0.0451902039,
0.499810338,
-0.2465702295,
-0.1361932456,
0.2110147029,
-0.3237797022,
-0.0380776823,
-0.2183672935,
-0.0580941699,
0.1589758247,
0.0137185827,
0.3272309303,
-0.0570998751,
-0.0797361284,
-0.3092333376,
0.2265754342,
-0.3428744078,
-0.0971136838,
0.183123827,
0.4092596173,
0.2603730559,
0.146585077,
0.0863461196,
0.1715344936,
-0.2983761132,
-0.0559381284,
0.2614253759,
0.0259769857,
0.0188195929,
-0.1280236393,
-0.7292593122,
-0.489446938,
0.1618306339,
0.018607147,
-0.2161202431,
-0.2587124705,
0.3220773041,
-0.0869770497,
0.0181749053,
0.1464766562,
0.3136517406,
0.3915125728,
0.2425846756,
-0.2641707957,
-0.4147349894,
0.6981278658,
-0.5851545334,
-0.2028036118,
-0.2027393579,
0.2233406305,
0.5235947967,
-0.3709136844,
-0.3115881681,
-0.0513186678,
0.21268031,
0.2346114814,
-0.4300559163,
-0.0479075015,
-0.2759914696,
-0.0874552131,
0.0262603611,
-0.0255267769,
0.1617365628,
-0.2601891756,
0.2698345482,
-0.0476781763
] |
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.411736846,
-0.1673518866,
-0.015645165,
0.3972489238,
0.1182576418,
0.0823770016,
0.192252174,
0.2819980979,
-0.1431497484,
0.2579933107,
-0.2424354851,
-0.0248964094,
0.1322235465,
0.3834213018,
-0.2399136126,
-0.1725852191,
-0.0782720447,
0.1208089292,
-0.4165074825,
-0.1202891693,
-0.4559482932,
0.223883599,
-0.1563928723,
0.2297670394,
0.3186609149,
-0.0702560917,
0.1518448442,
0.0579338595,
-0.2905827761,
-0.3938678503,
-0.1512021422,
-0.2992528081,
0.3983564377,
0.2486603856,
-0.0001240568,
0.0139630437,
0.1579875052,
-0.0384622291,
0.0809597075,
-0.0592178255,
0.1000383422,
0.1473320723,
-0.0287122242,
-0.3051402569,
0.0371814743,
-0.2251010984,
-0.3708879054,
-0.2680354118,
0.2880218923,
0.3753131032,
0.0867759883,
0.5228813887,
0.337361306,
-0.1462077498,
0.1830139756,
-0.0422983803,
0.0586618781,
-0.0693612471,
0.3234796822,
-0.2280780375,
0.3684239984,
0.2993505299,
-0.1102043465,
-0.1365146935,
0.2203767598,
-0.2563659251,
0.6804651022,
-0.553548038,
0.0111162178,
0.3440342546,
0.073990196,
0.0230665486,
-0.0722477213,
0.0284324735,
-0.014741689,
-0.8122336864,
-0.0916821361,
0.1136499792,
-0.0426634587,
0.1667117774,
-0.3281252086,
0.0566356182,
0.0846512616,
0.1801352501,
0.0343024582,
0.3327200115,
0.0061036386,
0.2988552749,
0.2502730489,
-0.2295202613,
-0.4094230235,
0.2705804706,
-0.1085325256,
0.287165761,
-0.4670934081,
-0.0439887233,
0.0700742379,
-0.1362361014,
0.4946715832,
0.2132566273,
-0.5131158829,
-0.1626806855,
0.4100389779,
-0.0067462185,
0.2849930525,
0.2695946991,
-0.0111152455,
0.0230320916,
0.2029657811,
0.0215274841,
0.1223784089,
-0.0572649203,
-0.0405002758,
-0.2940119505,
-0.2561858296,
-0.0725328177,
0.1384640336,
-0.4892798364,
-0.2409021258,
0.3881002665,
-0.314669311,
-0.0595291778,
0.5197181702,
0.3339306712,
0.1966293454,
-0.1151286662,
-0.0928348601,
0.2790850103,
-0.3406357765,
0.0021831803,
-0.018069597,
-0.0317980833,
-0.0366428494,
0.0159904435,
-0.0337796845,
-0.6434463859,
0.2684477568,
0.1619416773,
0.5190973282,
-0.426946044,
0.1198230088,
-0.219924286,
-0.0168504268,
0.2775984406,
-0.0571952797,
0.1540124118,
0.3632330894,
0.0032502487,
-0.0590383336,
0.0531925708,
-0.4613534808,
-0.4059742689,
-0.3444899023,
0.0495100878,
-0.1387340128,
0.4477998614,
0.1756898761,
-0.0166503601,
0.4423441589,
-0.1872704625,
0.2043520361,
-0.1826287359,
-0.3020602465,
0.0518631116,
0.3899739981,
0.1399207711,
0.0265585557,
0.1484416127,
0.2194243371,
0.2127542347,
0.3668284416,
0.5186986923,
-0.2727025747,
-0.0015196744,
-0.4783478379,
0.2312490195,
0.0005184039,
-0.4624032378,
-0.2426679134,
-0.1247509122,
-0.2872539163,
-0.2944652736,
0.0553654134,
-0.178138718,
0.6758929491,
-0.0452673398,
0.2189909369,
0.0732167959,
0.0459527075,
-0.1863199472,
-0.2554854453,
0.0077219084,
0.3513785303,
-0.1988133192,
0.0082606701,
-0.023290772,
-0.0493817925,
-0.1482339799,
0.1101341397,
-0.0605437011,
0.1323246807,
0.2601274848,
0.2107943594,
0.0742597431,
0.2487875819,
-0.061124064,
0.1535781026,
-0.050814338,
-0.4693948925,
0.2518245578,
-0.0783603489,
0.0079229772,
-0.365586549,
0.0975490287,
-0.103097111,
-0.2655678689,
-0.0031700693,
-0.2116549909,
0.1113093644,
0.1097498089,
0.1644178033,
-0.1983310282,
-0.0019175112,
0.2206000984,
-0.3111985326,
0.3991577625,
-0.2442425936,
-0.0184908099,
0.029028967,
0.3571316898,
0.3908422589,
-0.2759012282,
-0.164444387,
0.2347950041,
0.0223703645,
-0.2906487882,
-0.2894757688,
0.3155038655,
0.1678450704,
-0.3867719769,
0.0024171397,
-0.282569766,
0.0304203741,
-0.0328208581,
0.1935183555,
0.5273355246,
-0.1704323143,
0.398483336,
-0.2610980868,
0.1100409254,
0.0254601091,
0.1451859325,
0.0004746467,
-0.1778208613,
0.3125909567,
0.3107433617,
0.1120007411,
0.0675269291,
-0.1241342872,
-0.0501557365,
0.2982765138,
0.0116718337,
0.1062056199,
0.0498671606,
-0.0823499262,
-0.0183439739,
0.1508110166,
-0.2998589575,
0.1713972688,
0.1358768493,
-0.0547968782,
0.0122384746,
-0.0049693622,
-0.0121080726,
0.2557177842,
0.0212528668,
0.3840562701,
0.1920320541,
0.0013481565,
-0.0890294015,
-0.1562480927,
-0.1054887995,
0.1233057901,
0.4478664994,
-0.2748397589,
0.0627050325,
-0.0854327902,
0.0197415128,
-0.1227130666,
-0.3330762982,
-0.6193662882,
-0.1888407469,
0.1114287823,
0.0365404487,
0.0309599191,
0.0561556742,
0.1487269104,
-0.0703548789,
0.2286868244,
0.1457815468,
0.1693618298,
-0.0629821718,
-0.182360962,
-0.1482487172,
0.1953946203,
-0.0163389891,
0.0471093133,
0.1365006566,
-0.096771732,
-0.0325954556,
-0.589405179,
0.310652554,
-0.0568138584,
0.3301674724,
0.0491235666,
0.1147354841,
-0.0633866936,
-0.1362302601,
0.1913005114,
0.0995126814,
-0.2120438218,
0.0822474733,
-0.0835588947,
0.2379556894,
-0.1326676458,
-0.0950535983,
-0.2327532768,
-0.4111003876,
0.2914528847,
-0.1913593262,
0.058713492,
0.2794521451,
-0.1564146131,
-0.0205894895,
0.079797931,
-0.1391311884,
-0.322467804,
0.1024729162,
0.3471238315,
-0.2841888964,
-0.2615581453,
-0.2328040302,
0.1744872928,
0.2109637558,
-0.1036836356,
-0.4139459729,
-0.0216100663,
-0.1247049123,
0.0797610581,
-0.2371437699,
0.1470893025,
0.3746409416,
-0.1469144821,
-0.0013900883,
-0.1065232977,
-0.1248332784,
0.1823374778,
-0.090052858,
0.0056256279,
-0.0408164933,
0.7449670434,
-0.1414621323,
0.5462417006,
0.1166381016,
0.0463527553,
0.3334824443,
-0.1853603423,
0.3638516366,
-0.0925794616,
-0.3035500646,
0.2539816499,
0.251596868,
-0.2397889793,
0.1635259539,
-0.1627690196,
0.0914800465,
-0.0657884628,
-0.1014059782,
0.0549393147,
-0.2810799778,
-0.1190145761,
0.443595767,
0.3401423693,
0.0735056624,
0.4127731323,
-0.0851287395,
-0.157809943,
0.1060773581,
-0.0302278399,
-0.0383118466,
0.1415880769,
-0.6263699532,
-0.4313118756,
-0.5289622545,
0.4155210853,
0.0741582215,
0.7487251163,
-0.1871675104,
0.1006234586,
0.0712510943,
0.063962318,
0.7198231816,
0.2071081996,
-0.0213010516,
-0.039916791,
-0.1477175802,
-0.242310822,
-0.1408004612,
-0.0278389901,
0.5661053061,
0.0240682214,
0.6595686078,
-0.2567322254,
-0.2979433835,
0.3916324377,
0.1320491135,
-0.1679753363,
-0.0606121942,
-0.1955357939,
-0.309843719,
-0.2639373839,
0.3379351497,
0.1940554082,
0.5438350439,
-0.1234489456,
-0.0158894882,
0.1631438881,
-0.1943353266,
0.1099148244,
0.1643000841,
0.4007407129,
0.079705134,
0.0898569524,
0.2112829238,
-0.0558949113,
0.5950168371,
0.10406892,
-0.0604193546,
-0.0915406644,
0.1939136535,
0.013168063,
0.3254156709,
0.139102906,
0.0967572331,
0.1080203801,
0.1463080049,
0.3830470145,
-0.2549989522,
-0.0272540618,
0.2192224562,
0.2564141452,
-0.3760877252,
0.0446607247,
0.0586691387,
0.0565801263,
-0.0172104836,
0.2615423203,
0.325627774,
-0.1692547947,
0.1965736747,
0.4372457266,
1.1253492832,
-0.2956344187,
-0.0780401081,
-0.1270178109,
-0.3361195922,
0.6042551994,
-0.2630313337,
-0.0462495387,
-0.3473006189,
-0.1285605133,
0.0290813297,
-0.1867011636,
-0.0097714812,
-0.2190949768,
-0.0997653157,
0.152713269,
-0.2251032889,
-0.1580949575,
-0.2182853967,
0.2269461751,
0.3224571347,
-0.2332212776,
-0.1530531943,
-0.0327683762,
-0.0646054447,
0.1714268029,
-0.2102532983,
-0.1722313911,
0.1970990002,
-0.2368189692,
-0.2299950421,
-0.1415083408,
-0.4525684714,
0.2946377993,
0.0208067186,
-0.322722733,
0.3300318122,
0.1336203963,
0.1228149533,
0.4325304925,
-0.2202584743,
-0.0268771369,
-0.0063686017,
-0.1093931347,
-0.086789377,
0.0674538612,
0.0446672663,
-0.1134757996,
-0.4193345904,
0.1008557826,
-0.0415859446,
-0.0372324362,
-0.1182167679,
0.1514539421,
0.1590320766,
-0.2331366092,
0.3106339276,
0.0292769596,
-0.1071385145,
-0.239130199,
-0.0605495088,
0.1102114618,
-0.4307789803,
0.0195445716,
0.0935490429,
-0.4853803515,
0.0089950673,
0.4414260983,
-0.0217241906,
-0.1256334633,
0.560474813,
0.3870259225,
-0.0833008736,
-0.0891313255,
0.0665603876,
0.3794843554,
-0.3428509831,
-0.0206779949,
-0.0268816166,
0.0366383791,
-0.0318853557,
0.0771937519,
0.1465908885,
-0.0055676401,
-0.1001250595,
-0.4927744269,
-0.4502185583,
0.105036512,
-0.1411197931,
0.0919766501,
0.1732309163,
0.0533691011,
-0.2124429941,
-0.0619374439,
-0.1585218161,
-0.0634853244,
-0.4207333326,
0.2324084789,
0.1008734852,
-0.4312163591,
0.0396447778,
-0.0233104154,
-0.0935194045,
0.1902831942,
-0.3172388971,
-0.0028025061,
-0.1553541124,
0.2393624038,
-0.095550172,
-0.5256471634,
0.0028378107,
-0.1402627826,
-0.1286248118,
-0.1450248212,
-0.0684644356,
0.1721588969,
0.066032365,
-0.284412086,
0.2785304189,
-0.2525463998,
-0.1802475005,
0.0735503063,
0.2667729259,
0.1805520058,
-0.0312233269,
0.4272297323,
0.0469696522,
-0.1794162989,
-0.4443586171,
0.0844649076,
0.2403592318,
-0.3084860146,
0.0818069801,
-0.2272556126,
-0.1002403274,
0.462474376,
0.4395343065,
0.3952622414,
0.0054787509,
-0.0640100166,
0.2593303919,
0.0696913004,
-0.1671453714,
-0.1368121505,
0.2515739501,
-0.004936602,
-0.0690292865,
0.4297883213,
0.2808300257,
0.0913787037,
0.063043654,
0.0423072353,
0.2633597255,
0.142508626,
0.0828461573,
0.1284723282,
-0.0913551301,
-0.0380901024,
0.2750041783,
-0.0623215213,
0.4039420784,
0.3254383206,
-0.1907830536,
0.128417775,
0.4210960865,
0.1274312139,
0.1366225779,
-0.2624635696,
-0.1123235002,
0.2244533598,
0.2346691638,
0.1128061116,
-0.1113445163,
0.7335342765,
-0.0874512643,
-0.3345427513,
-0.0257380717,
0.45917207,
-0.2747837007,
-0.0890217423,
-0.1561333835,
-0.1324679852,
-0.032247223,
-0.0687892586,
0.1778806299,
0.0589247532,
-0.0222296268,
0.0233923774,
-0.2222557515,
-0.3103192747,
-0.5450296402,
0.5357752442,
-0.0293433592,
-0.3221192956,
0.3328133523,
0.3862289488,
-0.1073273793,
0.1693545729,
0.3321026564,
0.5232442021,
0.232700035,
-0.1036633551,
-0.0796246827,
0.0639353693,
0.1587667167,
-0.0327847041,
-0.0839484781,
0.0879548192,
0.1356131285,
0.0877455622,
-0.0667450279,
-0.0521091931,
-0.0449392572,
0.203618139,
0.0595418699,
0.0997646004,
-0.5444075465,
-0.1548727006,
-0.1310878694,
-0.3298234046,
0.0288381539,
-0.1454810053,
0.2842455208,
0.3009549081,
-0.0438534617,
0.0339542702,
0.0367658958,
0.002388332,
-0.1856235266,
0.4092005193,
0.4066257179,
0.0112807089,
-0.2685204446,
-0.1344893277,
-0.4066000581,
0.2426138073,
-0.3182493448,
-0.1087303162,
0.416859448,
0.1510163248,
0.0382541455,
0.0451902039,
0.499810338,
-0.2465702295,
-0.1361932456,
0.2110147029,
-0.3237797022,
-0.0380776823,
-0.2183672935,
-0.0580941699,
0.1589758247,
0.0137185827,
0.3272309303,
-0.0570998751,
-0.0797361284,
-0.3092333376,
0.2265754342,
-0.3428744078,
-0.0971136838,
0.183123827,
0.4092596173,
0.2603730559,
0.146585077,
0.0863461196,
0.1715344936,
-0.2983761132,
-0.0559381284,
0.2614253759,
0.0259769857,
0.0188195929,
-0.1280236393,
-0.7292593122,
-0.489446938,
0.1618306339,
0.018607147,
-0.2161202431,
-0.2587124705,
0.3220773041,
-0.0869770497,
0.0181749053,
0.1464766562,
0.3136517406,
0.3915125728,
0.2425846756,
-0.2641707957,
-0.4147349894,
0.6981278658,
-0.5851545334,
-0.2028036118,
-0.2027393579,
0.2233406305,
0.5235947967,
-0.3709136844,
-0.3115881681,
-0.0513186678,
0.21268031,
0.2346114814,
-0.4300559163,
-0.0479075015,
-0.2759914696,
-0.0874552131,
0.0262603611,
-0.0255267769,
0.1617365628,
-0.2601891756,
0.2698345482,
-0.0476781763
] |
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.018776685,
-0.154889524,
-0.0146414936,
-0.0398531072,
0.244916901,
0.27030316,
0.1437665522,
0.1278602034,
0.1100357473,
0.1771552861,
0.3504516482,
0.4532106221,
-0.2038121819,
-0.0362371057,
0.2456676662,
0.1528115422,
0.4748812616,
-0.0202536844,
-0.0256070867,
0.2713931501,
-0.4494593441,
0.2261943668,
0.28899616,
-0.0424481332,
-0.1577513814,
-0.1020553708,
0.0510715842,
-0.1924010664,
0.1730671823,
-0.4009982944,
0.2872327566,
0.1724158823,
0.0001328364,
0.1486884803,
-0.0001201857,
-0.1788837016,
-0.030084379,
-0.1175806522,
-0.246746406,
0.1999175847,
-0.2080589533,
-0.307674855,
0.055778414,
-0.5268290639,
0.2334902287,
0.0689517558,
0.2301577181,
-0.381786406,
0.1915487349,
-0.1445045471,
0.1007296145,
-0.1398893595,
0.0179284737,
0.2429855764,
0.0684332401,
-0.0258234404,
-0.2400593162,
0.2939265072,
0.0257166401,
0.3028869927,
0.1099611968,
0.0542867333,
-0.1694210172,
0.048051361,
0.6855139732,
-0.0258398205,
-0.2212388813,
-0.0490677692,
0.2112246305,
0.0301929712,
0.6607095003,
-0.4477226138,
-0.1442880332,
-0.060102772,
-0.0591600575,
-0.4760397077,
0.2344957292,
-0.2521854639,
0.0912588835,
0.1244170889,
-0.1475168169,
-0.5672837496,
-0.1388988644,
0.0413069576,
0.2410662919,
-0.4322021306,
-0.147164017,
0.2276435792,
0.2035796046,
-0.0040801801,
0.430622071,
-0.393455565,
-0.3842324317,
-0.2030829191,
-0.2061024457,
-0.1462684721,
-0.3850918412,
0.2905323207,
0.0256242007,
0.1989116371,
0.4617834687,
0.2264641821,
-0.0000421666,
0.2483998239,
0.0427427143,
0.2869020402,
0.0507778376,
0.0147925578,
0.0957552791,
-0.2234203517,
-0.2146577984,
-0.1435919851,
0.2676704228,
-0.3017751873,
0.6434221268,
-0.1205690056,
0.0917805433,
-0.1733266711,
0.1807954013,
-0.046530623,
0.2298900783,
0.2185386121,
-0.1140379906,
-0.0172940232,
0.0165866092,
-0.0285296645,
-0.1195977181,
0.0099904053,
0.1471546888,
0.1509021819,
0.0224686787,
-0.1985743195,
0.1876460612,
0.4262019992,
0.1172286719,
0.0619218014,
0.0814459175,
-0.1745309234,
0.0754377842,
-0.1534605473,
0.2329119146,
0.0419621393,
0.4006014168,
-0.1149878725,
-0.1312371939,
0.272993505,
0.0239580628,
-0.2295751274,
-0.1466407925,
0.2271617502,
-0.3677089214,
-0.3400830626,
0.1010109559,
0.0235982314,
-0.3579708934,
-0.0778507218,
-0.5644938946,
0.0533479378,
0.0624165684,
-0.2227300256,
0.2458756864,
0.2875831723,
-0.1862505376,
-0.3175989091,
-0.089855358,
0.2636732459,
-0.3861021399,
-0.0023467988,
-0.0945790857,
0.0642216951,
-0.3352029324,
-0.0623731092,
-0.1391374767,
-0.2302372754,
-0.3009423018,
-0.0663430765,
0.3127157092,
-0.2570264935,
-0.6499445438,
-0.0419119336,
-0.0457674414,
-0.0369239971,
0.1332402825,
0.3977473974,
0.2084974349,
-0.017515067,
-0.3062954247,
0.0642198548,
0.0359243229,
-0.2491099238,
-0.15345411,
-0.1586134136,
-0.1160494536,
-0.2702703178,
-0.257909596,
0.3812934458,
-0.046005927,
-0.1806788296,
0.0544845015,
0.0745691061,
0.2152924985,
0.458814472,
0.3959978819,
-0.1752632558,
-0.0587203279,
-0.1027320772,
-0.4525178075,
0.0595373511,
0.4358716011,
-0.4237771332,
0.1029202342,
-0.2893722653,
0.0303791501,
0.0588048548,
-0.1857585311,
0.0930104107,
-0.0494705923,
0.3206633031,
0.0682430267,
-0.1817136854,
-0.225460574,
0.3056719005,
0.0819496512,
0.0807872862,
-0.1969591677,
-0.0839454383,
0.0476203486,
-0.0904090106,
-0.4644241333,
-0.2012928426,
0.198729068,
-0.1882760078,
-0.1613456607,
0.4910292327,
-0.1910769343,
0.2047096193,
0.1569012702,
0.4119254649,
-0.0411738306,
-0.3291233182,
0.2022399008,
0.098796159,
0.0716337413,
0.0659276173,
-0.1734008491,
0.2870251536,
0.0487031788,
0.0785164461,
-0.0599837899,
0.1326056421,
0.225709632,
-0.0373646431,
-0.1995092034,
-0.2379370332,
-0.3404454887,
0.1995520145,
0.3960499167,
-0.1004427597,
-0.1189198717,
0.177639842,
0.5097337365,
0.0374559909,
0.1199824139,
-0.0382121317,
-0.3550254107,
-0.1304752529,
-0.098004207,
0.6063185334,
0.3569962382,
0.117218852,
0.0578324646,
-0.2137330323,
0.1126819849,
0.0051051117,
0.2453828454,
0.1002428681,
0.2005972117,
-0.0218008161,
0.2279221267,
-0.17441158,
-0.2117965221,
0.170307979,
0.0876714364,
-0.0393561572,
0.0572534502,
0.1778851151,
-0.1406290829,
-0.0025294721,
-0.3594078422,
0.141799897,
-0.3370632231,
-0.2788513005,
-0.070039019,
0.5343757272,
0.0857302621,
0.1341635585,
-0.0817063525,
0.4854327142,
-0.1819155812,
-0.4802110493,
-0.0635460243,
0.0765657723,
-0.1230186298,
-0.0975039154,
0.019039128,
-0.4540122151,
0.2778127193,
0.1107964665,
0.2113087177,
-0.6378806829,
0.101123929,
-0.1067347899,
0.358507961,
0.2471570224,
-0.1479628384,
0.1134596318,
-0.2218856663,
-0.0172920376,
-0.0711411834,
-0.022931058,
0.0792186037,
-0.0204047076,
0.0352689326,
0.1745040119,
0.0540650636,
0.1256750077,
-0.2316399664,
-0.1592324972,
0.1551645547,
-0.1161963642,
-0.0059293509,
-0.1207597256,
0.0031597838,
-0.0589698106,
0.1094886065,
-0.4539577365,
-0.2308217436,
-0.6659764051,
0.5767191052,
-0.2546723187,
-0.0310065486,
0.1016661748,
-0.0943054706,
-0.0100532537,
0.2011736631,
-0.3397991657,
-0.1034176797,
-0.1008758172,
0.2234289646,
0.094850868,
-0.3411523104,
0.24154751,
0.5115863681,
-0.0540489107,
-0.0983427465,
-0.5508170128,
0.2543376684,
0.244088307,
0.4389621019,
0.3565295637,
0.1832324862,
0.0426170081,
0.4608435333,
-0.2074300051,
0.0254491325,
0.487778157,
0.1006798074,
0.3907101154,
0.05140163,
-0.0589575507,
-0.2013405412,
-0.312338382,
-0.1426023692,
-0.0268097855,
-0.0115303304,
-0.0156696402,
0.2334085405,
0.0504275858,
-0.0298053026,
-0.3346700668,
0.007739136,
-0.292694658,
0.1200676486,
0.043367289,
-0.1981489658,
-0.471418798,
-0.2149319351,
0.0872351229,
0.3912337124,
0.1272734106,
-0.0826747566,
-0.5049139261,
-0.0117387734,
-0.4805620611,
0.4296472073,
-0.2495911717,
0.1166209579,
0.0442130417,
0.0584539473,
-0.1080803424,
-0.0846033916,
0.8759826422,
-0.1353390962,
0.1624022722,
-0.0896900669,
0.1907722056,
-0.0841151327,
0.0878336802,
0.4205208123,
0.4367336631,
-0.2517588139,
0.2692506015,
0.257145524,
-0.0806378797,
-0.1169360727,
0.3535149097,
-0.5934963226,
-0.1206404716,
0.2151971012,
-0.0826921389,
-0.0579543114,
-0.3540092111,
0.1801164448,
0.023067303,
0.1058657095,
-0.0819564313,
-0.4227651656,
-0.0343434997,
0.0452645384,
-0.2890198529,
0.4680199027,
-0.1545281708,
0.0069532245,
-0.0850610062,
0.2909592688,
0.3853337467,
0.2827956378,
-0.3384394348,
-0.3447603285,
-0.0637485087,
-0.1411979795,
0.1837272495,
0.1123544723,
-0.0605237037,
0.2421135455,
0.1979686469,
-0.1880517006,
-0.0057780948,
0.1027545929,
-0.0924402401,
0.3334353864,
-0.1502131075,
-0.4014711082,
0.374170661,
0.2887123823,
-0.0066098869,
0.2434090376,
0.1107721031,
-0.4094183743,
0.4683394432,
0.0238108579,
0.685713768,
0.0328953192,
0.3769578636,
-0.2315592021,
-0.316706419,
0.1525563896,
-0.0891739503,
0.0909284502,
-0.1217389628,
-0.2212103009,
-0.0291228443,
0.09530662,
0.3272641301,
0.4822126627,
-0.05027375,
0.366199851,
-0.1519139558,
0.0964507163,
-0.2594846189,
0.0771626532,
-0.1766586751,
-0.1769030839,
0.1472628564,
0.0571524128,
0.0117420219,
-0.1370298117,
0.1000077352,
-0.0760277063,
0.0786840245,
-0.0002039894,
-0.1984481961,
-0.2250744402,
-0.1740597785,
-0.213184163,
-0.2469964325,
-0.4627687335,
0.0121717155,
0.277126193,
0.3272087872,
0.0756049454,
-0.0139246006,
0.1802672744,
0.2220173627,
0.0546762161,
-0.2464648336,
-0.0767866969,
0.1695950478,
0.0448294654,
0.043645665,
0.0350594819,
0.0726728141,
-0.4616363049,
0.3340903223,
-0.1473327875,
0.1642683297,
-0.0476404615,
-0.5405942202,
-0.1617494524,
-0.2307675481,
-0.3211683631,
0.0524357185,
-0.101085037,
-0.0542560294,
0.3596067131,
-0.2378884554,
-0.0876783133,
0.1408547759,
0.3142168224,
-0.1157862097,
-0.1948652714,
0.6367974281,
-0.4938901663,
0.0482371524,
-0.105016388,
0.2423696071,
0.1008898318,
-0.0780598372,
0.1757740974,
-0.1397128105,
0.1140778363,
-0.066597648,
-0.1368858963,
0.1169710234,
0.3202652037,
-0.2614651918,
-0.1922055483,
-0.4788093567,
-0.1056259125,
0.2239229083,
0.3366798162,
-0.0704576448,
-0.4245383143,
-0.1424572766,
-0.0476739518,
-0.144659102,
0.0385076553,
0.019961454,
-0.0327931792,
0.2165949941,
0.4628360569,
0.0585297756,
-0.0902768448,
-0.071754165,
-0.0228659883,
-0.0630902201,
-0.1342512071,
-0.226295203,
0.1888588369,
-0.1266931891,
-0.2323741764,
-0.1736098081,
-0.3062693179,
0.2362322211,
-0.0703762993,
-0.2308472693,
0.1891653538,
0.1071475595,
0.2860001922,
-0.0335354097,
0.1115001589,
0.0147683397,
-0.1662111878,
0.2184541076,
0.3839324117,
0.179077968,
0.2159480155,
-0.0518780313,
-0.0688613802,
-0.1427637041,
-0.1199696213,
-0.0518741123,
-0.0187682956,
-0.1914043427,
-0.1052304134,
-0.0720739812,
0.4625988007,
0.109342739,
0.010647377,
-0.2217102349,
-0.1483028531,
0.3819296658,
0.0556834489,
0.0622013733,
-0.355694443,
0.4837987721,
-0.3391481638,
0.0261013284,
0.1197483689,
0.1509520561,
0.0948637426,
-0.2867467403,
-0.1076822355,
0.3201237321,
-0.4162612259,
0.2764836252,
0.1164500862,
0.1428450346,
0.1220632643,
0.4623324275,
0.3871824145,
0.3841488361,
0.7751974463,
-0.0112572946,
0.0066851154,
0.4595455825,
-0.0849630088,
-0.0102799051,
-0.1649312377,
0.1495013237,
-0.1043559536,
-0.0656155199,
0.5459073186,
0.4420744777,
0.0076586902,
0.0097147003,
-0.3250498772,
0.0948144794,
-0.0091078123,
0.0600404069,
-0.3881410956,
0.2045375556,
0.0207888931,
0.1757207364,
0.2321556211,
-0.206229955,
-0.3199566305,
0.3652498424,
-0.1482038051,
0.0497946665,
0.2316641808,
0.2691747248,
-0.1120107472,
0.1832075864,
-0.0372559763,
-0.1261148155,
-0.3010336757,
-0.0776105374,
0.0920065939,
-0.0261494312,
-0.1929474771,
-0.1082372963,
0.0387247354,
0.1681862175,
-0.0358159505,
-0.0256359354,
-0.1180935651,
-0.3194732368,
0.0108244028,
-0.3204697967,
0.1494805068,
0.0559626818,
0.059862718,
0.1930321008,
0.2173729539,
0.4506446719,
-0.2284135669,
-0.1394961178,
0.2904865146,
-0.4147695303,
-0.0107199568,
0.1111339033,
-0.0737020448,
-0.3833245933,
0.7265045047,
0.0043067783,
0.0901438296,
0.0839708373,
0.0455224998,
-0.1325954944,
0.35786888,
-0.1725374162,
-0.0425365083,
-0.2654025555,
-0.0307880566,
-0.3812371492,
0.1356667876,
0.3085461557,
0.0837809965,
-0.1038388461,
-0.0707069188,
-0.0179448351,
-0.0395767018,
0.162376076,
-0.0570536777,
0.1817874312,
0.5798852444,
-0.2913219631,
-0.2843709886,
0.20690009,
0.3773008883,
0.2617411315,
-0.4093432128,
-0.1080825031,
0.3444976509,
-0.0864498019,
0.04784666,
-0.0441101119,
-0.026531931,
0.051597394,
0.546836257,
0.000936918,
0.0241117906,
-0.1304381192,
0.0329681933,
0.281388104,
0.1347508132,
-0.3842400908,
0.0073212599,
0.0967048705,
0.1371987462,
-0.4002994001,
0.3226000965,
-0.1326920241,
-0.0920270383,
-0.0128563121,
-0.1971434355,
-0.1830767989,
0.2361609042,
0.2111168951,
-0.1121965945,
0.3844280243,
0.4035889804,
-0.0070877355,
0.4863263667,
-0.3266410828,
0.4129479825,
0.4259537756,
-0.0659812987,
-0.0850184858,
0.2840053141,
0.1194756329,
0.2796074748,
-0.2027408034,
-0.2416628003,
-0.1621987373,
0.3066490293,
-0.2225729674,
-0.1236329526,
0.2972763181,
-0.439438045,
0.2138997465,
0.0830428302,
0.9734271169,
0.2376056015,
0.0048446506,
-0.261339426,
-0.183511436
] |
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.005880855,
-0.070929043,
-0.0453956462,
0.0091859819,
0.2773497105,
0.2527238727,
0.2612767518,
0.242606774,
-0.0535697788,
0.1069627255,
0.3020355701,
0.4447042942,
-0.1616926938,
-0.1279574633,
0.2059170157,
0.0063200444,
0.3146954179,
-0.1188130751,
-0.0984398276,
0.1764315963,
-0.3626470864,
0.2778182328,
0.2146422863,
0.062889114,
-0.3578144312,
-0.1051508188,
0.1591538787,
0.02357357,
0.0712339804,
-0.4981008172,
0.2488242686,
0.2438835204,
0.001854755,
0.0446088538,
-0.0001131769,
-0.1921939552,
0.1759776473,
-0.1021561325,
-0.3182256222,
0.1989144981,
-0.290445447,
-0.2070806324,
-0.0157762766,
-0.5379849672,
0.3022142947,
0.0479409695,
0.1390973777,
-0.3058047891,
0.1568409055,
-0.0851741806,
0.1883072853,
-0.1913200617,
0.0957809091,
0.1804768443,
0.0681003779,
0.0802315623,
-0.2438439131,
0.2512891889,
0.0216150414,
0.2512299716,
0.0488662682,
0.1368552297,
-0.0925931484,
-0.0484559983,
0.5817065835,
-0.0571097955,
-0.1138638034,
0.0380065367,
0.3123863041,
0.1523034722,
0.7274113894,
-0.4069981277,
-0.0880727917,
-0.093510963,
-0.1064906716,
-0.2785570621,
0.2970902324,
-0.2870463729,
0.0314112343,
0.1581905335,
-0.1443067342,
-0.5655369163,
-0.1578776538,
0.0454110056,
0.2925547361,
-0.331579566,
-0.1847197115,
0.2547593117,
0.2245905399,
0.0062035192,
0.4588214457,
-0.278788954,
-0.4055846334,
-0.2095422745,
-0.2231868058,
-0.0995253474,
-0.3349789977,
0.4045699835,
0.0675699934,
0.2259325832,
0.4345136285,
0.3098505139,
0.037499018,
0.1940717399,
0.1098939031,
0.2558328509,
0.0914489701,
-0.0145355538,
0.0753448829,
-0.2580296099,
-0.3399426341,
-0.1969909668,
0.2101661563,
-0.3805347681,
0.7020926476,
-0.1838434637,
0.194051519,
-0.3050472736,
0.1908456683,
-0.084287554,
0.2190550417,
0.0675938874,
0.0781936124,
0.0128201526,
0.0667796433,
0.0648911968,
-0.0888024867,
0.056132853,
0.0615242124,
0.0973784998,
-0.0642039627,
-0.2585119605,
0.1058636159,
0.3715209961,
0.0700619817,
0.1134169251,
0.0457307547,
-0.1482767612,
0.1364430189,
-0.0534759201,
0.3880755603,
-0.0520715788,
0.4737307727,
-0.0615545474,
-0.1686994135,
0.2550696731,
0.0081354938,
-0.1564419419,
-0.1375380605,
0.3093259633,
-0.3865032494,
-0.4239960015,
0.0999029428,
0.0781679675,
-0.3999313116,
-0.0620708205,
-0.5250158906,
-0.0384051315,
0.116514951,
-0.14374955,
0.2381726801,
0.2040821612,
-0.1525625885,
-0.3873448074,
-0.0526699647,
0.2291749418,
-0.417843461,
0.0511244237,
-0.2441606224,
-0.0211359411,
-0.2414743304,
-0.1609628201,
-0.2630755901,
-0.1054810956,
-0.3466659188,
0.0644726455,
0.3076818287,
-0.3473541141,
-0.6475951076,
-0.0593366697,
-0.0642973632,
0.0283020735,
0.0475254953,
0.3307827413,
0.0566513687,
-0.1022359505,
-0.4012672007,
0.1012966335,
-0.0200253054,
-0.3065453768,
-0.2780855298,
-0.0080477744,
-0.1057396978,
-0.1461750269,
-0.2202511877,
0.3657613099,
-0.038026236,
-0.0284255408,
0.0723902583,
0.2011933476,
0.2046840489,
0.4713914394,
0.484554708,
-0.1623986959,
0.0280856341,
-0.052279003,
-0.3321335912,
0.1471666098,
0.3700077832,
-0.3939208984,
0.0009513646,
-0.2499649823,
0.0163442269,
0.0734222159,
-0.1349821091,
0.1541030705,
0.0280382857,
0.3183518946,
0.0730621964,
-0.2711363137,
-0.1399840713,
0.4156736135,
-0.0353838354,
-0.0352537818,
-0.1052670181,
-0.0459293276,
0.0036338279,
-0.0581223443,
-0.4752198458,
-0.2656543851,
0.1838867664,
-0.1295545399,
-0.2298536003,
0.5186126232,
-0.0912201405,
0.0534741804,
0.268538028,
0.4209365249,
-0.1508520395,
-0.4421942234,
0.2504710257,
-0.0025530253,
0.0273715444,
-0.0055460259,
-0.1252533048,
0.1777491719,
-0.0786017254,
0.0580306761,
-0.196346879,
0.1380008161,
0.287415266,
-0.078056626,
-0.1735178083,
-0.2393268943,
-0.3135156929,
0.0750133395,
0.4613130391,
-0.082076326,
-0.2110941112,
0.3025095761,
0.5622272491,
0.0588732287,
0.1013872921,
0.0364007503,
-0.2644159794,
-0.1285413206,
-0.1024726629,
0.6723658442,
0.5421385765,
0.1920131743,
0.1405190378,
-0.2133499086,
0.0958542973,
-0.0383535773,
0.1324897408,
0.1543864906,
0.2147180438,
-0.1020127982,
0.1443186849,
-0.1821785867,
-0.1338698268,
0.1596543193,
0.1118857563,
0.0110334884,
-0.0063967332,
0.1888252199,
-0.1927694529,
-0.0278132446,
-0.2950428426,
-0.0319355242,
-0.4077274501,
-0.3630104661,
0.0669339299,
0.3269259334,
0.0898090303,
0.1490611136,
-0.1156608388,
0.5042233467,
-0.1734945029,
-0.4204640985,
-0.1750681698,
-0.03111054,
-0.2325831354,
-0.0223644841,
0.0742440149,
-0.2729973197,
0.2291761786,
-0.0166327804,
0.2555164099,
-0.5720793009,
0.0293580741,
-0.0567880459,
0.2725666165,
0.3326307535,
-0.0666646659,
0.1852226704,
-0.2287231088,
0.0670947582,
-0.0157870762,
-0.0791909546,
0.0158427805,
-0.0162482448,
0.1165606007,
0.0800134242,
0.0378383771,
0.2091626823,
-0.151997149,
-0.2444866002,
0.152008146,
-0.1092127413,
0.0612643734,
-0.0512664989,
0.0158820152,
-0.0117446445,
0.0459359065,
-0.3617247641,
-0.3731369376,
-0.806758523,
0.5466673374,
-0.3449462652,
-0.0970712155,
0.1465294212,
0.0542480871,
0.1421537399,
0.2120139599,
-0.3342684507,
-0.280063808,
-0.0528382137,
0.2175372988,
-0.0190755054,
-0.2813298106,
0.2258330584,
0.4095545709,
-0.0971841887,
-0.2483858764,
-0.5289542675,
0.3987855017,
0.1717531532,
0.5748048425,
0.2610899508,
0.0920389742,
0.0547515303,
0.5059796572,
-0.2828645706,
0.0113988006,
0.404392451,
0.1901490241,
0.3782544434,
0.0162273552,
-0.1309809238,
-0.1413494796,
-0.2167469412,
-0.0760766193,
-0.0497827791,
0.0878723115,
0.0190347563,
0.2673098743,
0.0565373451,
-0.1562476754,
-0.3716950715,
0.0874495506,
-0.2596990764,
0.1159632951,
0.0422528088,
-0.1429021955,
-0.5049207807,
-0.1448138356,
0.1870450824,
0.3815187216,
0.1140296161,
-0.0851543844,
-0.5466573238,
0.1567209959,
-0.3572342396,
0.436942786,
-0.2001790851,
0.1197872311,
-0.1039197966,
-0.049809102,
-0.0212269463,
-0.0503558442,
0.8804527521,
-0.1738557667,
0.1585696787,
0.0629767329,
0.1106298715,
-0.1314806938,
0.0982226655,
0.4506978691,
0.4493224025,
-0.1458303332,
0.1064602733,
0.0941272378,
-0.2235237062,
-0.1733312458,
0.3369662166,
-0.5265505314,
-0.2175538987,
0.1522840708,
-0.1450506598,
-0.0076511875,
-0.2675723433,
0.2054924965,
0.0131744854,
0.0813183412,
0.0208212957,
-0.4381809831,
-0.1331947893,
-0.003473755,
-0.1950690299,
0.5359507203,
-0.2286978513,
0.0376807898,
-0.0225111376,
0.2528630197,
0.389048934,
0.2947441638,
-0.3565094173,
-0.2021227181,
-0.0354507528,
-0.2481733263,
0.0178414099,
0.2599078715,
-0.0762657523,
0.1664109528,
0.203990832,
-0.1703591049,
-0.0140160024,
0.1486972868,
-0.1441234648,
0.2527443171,
-0.1916002631,
-0.3499112129,
0.3759485483,
0.2600650191,
-0.0648219585,
0.3666515648,
0.1746676415,
-0.378033042,
0.4197976589,
0.0901346803,
0.9501266479,
-0.0370364748,
0.2972920835,
-0.3037029505,
-0.3726536036,
0.0298510417,
-0.0703390986,
-0.0271231625,
-0.1310965717,
-0.201909706,
0.0092433542,
0.069982104,
0.2341231853,
0.5468808413,
-0.0399582498,
0.0949297547,
-0.2273946255,
-0.1861842126,
-0.2574065328,
0.2381444126,
-0.1397062838,
-0.1130987629,
0.0804451704,
0.1651394069,
-0.0612481683,
-0.1538342088,
0.0608012006,
-0.217750892,
0.0214239061,
-0.0302510299,
-0.1726943105,
-0.1897624731,
-0.1683492362,
-0.204688549,
-0.0704130754,
-0.4095531404,
0.0185398683,
0.2018803954,
0.442157805,
-0.0273572486,
-0.0565068051,
0.3041879535,
0.174554795,
0.0735195726,
-0.2249198407,
-0.1495261937,
0.258333981,
-0.0437393524,
-0.0192857683,
0.002218606,
0.0770838857,
-0.6202121973,
0.2067080736,
-0.0997249484,
0.1300417334,
-0.0917500705,
-0.4944214821,
-0.1646654904,
-0.2461180389,
-0.3005344272,
0.1419227123,
0.2287473083,
-0.1075785458,
0.4141414762,
-0.1770243794,
-0.0451601595,
0.1554750204,
0.2797192335,
-0.217618674,
-0.1377957016,
0.5094898343,
-0.3504287601,
0.0148181915,
-0.1385895014,
0.068933934,
0.048717007,
-0.1485425234,
0.1494805366,
-0.1786646247,
0.1388299167,
-0.0322536081,
-0.2361468077,
0.1513171345,
0.3105770051,
-0.2591749132,
-0.1748178154,
-0.5221583247,
-0.0817383379,
0.0659391284,
0.3063133359,
-0.0762279406,
-0.4527077377,
-0.063041538,
0.0887997076,
-0.25305897,
0.0121619143,
-0.0453256071,
0.0271613337,
0.1892683059,
0.2453792393,
0.1555827111,
-0.186480999,
-0.0187082738,
0.0017405301,
-0.1725643277,
-0.1992298812,
-0.2664843202,
0.1718345731,
-0.0936260074,
-0.2779684067,
-0.1310475767,
-0.3101244271,
0.2115919143,
-0.0475879945,
-0.1959190518,
0.1781336665,
0.0373368636,
0.2285756171,
0.072187148,
0.0019588731,
0.0486026257,
-0.1798075289,
0.1992195845,
0.3495189548,
0.1664068699,
0.1258150339,
-0.0140227005,
-0.0662032366,
-0.0015532486,
-0.1024209559,
-0.1055410132,
-0.0304204244,
-0.1901531965,
-0.0638881475,
-0.0378780663,
0.4332277477,
0.1673295349,
0.0405720919,
-0.2100212276,
-0.1713740528,
0.3683485985,
0.134148106,
0.1061886251,
-0.4036817253,
0.4270186126,
-0.2677614689,
-0.0381474793,
0.0870683715,
0.1465194821,
0.1951239705,
-0.1684448123,
-0.0055485331,
0.256714195,
-0.4714046717,
0.1689609289,
0.0527091883,
-0.0133025423,
0.0811084658,
0.537455976,
0.3864859641,
0.3091654181,
0.7966079116,
0.0149292443,
0.1586897522,
0.4057992101,
-0.0334068425,
-0.0127482042,
-0.1542297006,
0.0290584527,
-0.0464883149,
-0.0431822166,
0.4586324692,
0.2863246202,
0.1327947974,
0.1238335073,
-0.3554240167,
0.1732830703,
-0.0289876685,
0.0208514333,
-0.3102228642,
0.0797471032,
0.0205312073,
0.1260370612,
0.1096813232,
-0.1941621602,
-0.2527121902,
0.4634740055,
-0.1370218396,
0.0431456044,
0.168391943,
0.1710461676,
-0.0685692281,
0.1286368072,
-0.0395175144,
-0.099813886,
-0.2691245675,
-0.1345329881,
0.2595928311,
0.0021045525,
-0.1687575877,
-0.0542044081,
0.0429621562,
0.0815420821,
-0.041102685,
-0.0792400539,
-0.2262189388,
-0.2022946626,
0.0682453215,
-0.3262188435,
0.2005548328,
0.1387024522,
0.0121760927,
0.1334895045,
0.1436512917,
0.3790520728,
-0.1472221017,
-0.1271032989,
0.3025743961,
-0.3633195758,
-0.1216893047,
0.1171799153,
-0.0705772936,
-0.3746968806,
0.7522785068,
0.0425843634,
0.0491758101,
-0.0540879108,
0.0675968677,
-0.1759207249,
0.4489008188,
-0.0187774599,
-0.0136208758,
-0.2923689187,
-0.1183670983,
-0.3946761191,
0.1372789741,
0.1089548543,
0.0853912681,
0.0672107786,
-0.0531308614,
0.0318031833,
0.013865564,
0.2937546372,
0.0810597166,
0.1560967416,
0.5610343814,
-0.3906923234,
-0.1711733043,
0.3270383179,
0.2972213328,
0.2671146989,
-0.3106240034,
-0.1176318228,
0.4650088251,
0.0212076008,
0.0037844274,
-0.0993894711,
0.0067935735,
0.2326114178,
0.5678697228,
-0.0187314488,
0.0685635954,
-0.0676009357,
0.0152098164,
0.1250105798,
0.1004572809,
-0.3279694319,
-0.0648334026,
0.0788083971,
0.1504221857,
-0.3691145182,
0.3105677366,
-0.2134569883,
0.0019578375,
-0.1233853102,
-0.0738365799,
-0.2091624588,
0.2177233398,
0.1516335011,
-0.0270655639,
0.4272913337,
0.4429100752,
0.0462193228,
0.417452693,
-0.4453116655,
0.3533104658,
0.5391595364,
-0.0078868791,
-0.1656597257,
0.2888105214,
0.1509995162,
0.2713835239,
-0.263212651,
-0.3472706974,
-0.2103030086,
0.2743266225,
-0.1712186933,
-0.0767595619,
0.2778632045,
-0.3333675265,
0.3009939492,
0.1058184803,
0.8167823553,
0.1716211736,
0.088463679,
-0.3020497561,
-0.0966659337
] |
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.0457348377,
-0.0365208834,
-0.0065599382,
-0.0663142055,
0.2652109861,
0.14675574,
0.0534216724,
0.1336882412,
-0.1323259026,
0.3330438137,
0.3283965886,
0.4801912606,
-0.3888703585,
0.0933780521,
0.2319836915,
0.0744828135,
0.373470217,
-0.067018047,
-0.1254183054,
0.1810308993,
-0.417912811,
0.044150807,
0.2109160721,
0.0159829967,
-0.0820503235,
-0.0264369585,
0.0004688352,
-0.2508096099,
0.0576556623,
-0.4308081567,
0.2283994406,
0.2565984428,
0.1199136898,
0.1386188865,
-0.0001212558,
-0.0695581362,
0.0095336502,
-0.0692437366,
-0.4169016778,
0.0994596779,
-0.0609362014,
-0.4046193659,
-0.0431452245,
-0.4321475327,
0.3878169358,
-0.2496525645,
0.2778483331,
-0.1676828265,
0.1013101935,
-0.1304501593,
0.0757569298,
-0.0730953068,
0.1910558343,
0.2092889696,
0.1304672062,
0.2837991118,
-0.1073038653,
0.2409992367,
0.0536166243,
0.2485468686,
0.0044524036,
0.1047018915,
-0.0398975946,
-0.0903647542,
0.7107024789,
0.0397542678,
-0.083001852,
-0.068940863,
0.0632555112,
0.1232704148,
0.5087649226,
-0.5339450836,
-0.1315354258,
-0.1749764085,
0.1265872717,
-0.3090943098,
0.2692341506,
-0.2114599496,
-0.069501929,
0.0209070016,
-0.0852172524,
-0.6508273482,
-0.1985444129,
0.2556485236,
0.2591596544,
-0.5391647816,
-0.0664122179,
0.2288215607,
0.316231817,
0.0076817218,
0.3161954284,
-0.3927269578,
-0.2238267213,
-0.3384261131,
-0.1280720085,
-0.1810760796,
-0.3935977221,
0.2291761339,
0.0554536581,
0.3497772515,
0.4361371696,
0.1356812567,
-0.0677441806,
0.2203286141,
0.1018315703,
0.0233841687,
-0.0405254327,
0.1268223673,
0.0779917538,
-0.0195702165,
-0.1697917283,
-0.0301517025,
0.2458380908,
-0.3112147152,
0.39212358,
-0.2665880322,
0.2572686076,
0.0581264123,
0.0073826388,
-0.0774414539,
-0.0419785343,
0.1095786616,
-0.0056769438,
-0.1309605241,
0.2353038192,
-0.1221492887,
-0.1005399078,
0.1382053196,
0.1775676757,
0.1451976746,
0.0803286433,
-0.1761175096,
0.1048329547,
0.41127038,
0.0389889777,
0.1724298745,
-0.045225881,
-0.2201781422,
0.0412362404,
-0.0717492923,
0.1835629195,
0.0025438778,
0.4037234783,
-0.0983994752,
-0.1946253628,
0.1945436001,
-0.1654603332,
-0.186185807,
-0.2288790047,
0.2491866946,
-0.2398017347,
-0.2797171175,
-0.0215782095,
0.026274588,
-0.2249809206,
-0.1048921496,
-0.5177105665,
0.1623326838,
-0.1310676634,
-0.2600251138,
0.2126579732,
0.2772544622,
-0.2532304525,
-0.2626476288,
-0.0001722425,
0.1168229133,
-0.3383010924,
-0.0473856553,
-0.1328250468,
-0.0268516764,
-0.3620646,
-0.132585004,
-0.260915041,
-0.0106196515,
-0.2951563001,
-0.0211458057,
0.3409297168,
-0.1320461333,
-0.5908212662,
-0.2278286219,
-0.1508214474,
-0.0052919015,
-0.0067436546,
0.5044075847,
0.1441425979,
-0.0576040335,
-0.5045724511,
0.0534383245,
0.0619736239,
-0.3500506282,
-0.060692504,
-0.1441929191,
-0.1976327598,
-0.171752587,
-0.2981698215,
0.2197763175,
-0.0556046925,
0.0251111276,
0.216797471,
0.0732122511,
0.2401829362,
0.4485563934,
0.434187144,
-0.1154951602,
-0.168886885,
-0.1425730735,
-0.3905546069,
-0.0319552124,
0.5924944282,
-0.4588952065,
0.113258034,
-0.2073937654,
0.1747047305,
0.1230465472,
-0.1968376637,
0.2352232933,
-0.0548225679,
0.3122779131,
-0.0037066564,
-0.156685397,
-0.3619380891,
0.0674392805,
-0.172998473,
0.1804400086,
-0.1348823458,
0.146463871,
0.102318272,
-0.0458525084,
-0.3633916378,
-0.153386876,
-0.1064045429,
-0.0965089649,
-0.0751482695,
0.4044416547,
-0.2464149594,
0.1191929057,
0.172657907,
0.4314656556,
-0.0619407967,
-0.3676757812,
0.2172438949,
0.2357064933,
0.0893713385,
0.1228104532,
-0.3586919308,
0.1210447699,
-0.0270180497,
0.1744957864,
-0.0612402372,
0.1384726465,
0.0513605103,
-0.0509710722,
-0.3274543285,
-0.2260817587,
-0.3494559228,
0.1841980666,
0.4219744802,
-0.0683637187,
-0.1296263635,
0.1065359116,
0.6030346155,
-0.1011483371,
0.0626429617,
0.192116946,
-0.2957582474,
-0.0801924318,
-0.2568452656,
0.8007150888,
0.3792862594,
0.0745852739,
0.1722943634,
-0.2163554728,
0.0766075104,
-0.0620702393,
0.1834322214,
0.3528278768,
0.2313379198,
0.0689827055,
0.217148751,
-0.0842015594,
-0.2327296883,
0.0229161829,
0.0310178548,
-0.0045076385,
-0.0311259776,
0.0636650249,
-0.054258462,
0.0626261607,
-0.4437845647,
0.0974422768,
-0.2583096921,
-0.1972877085,
0.0239638537,
0.3298318684,
-0.0633209795,
0.1809441149,
0.2926633656,
0.4197936952,
-0.2644102871,
-0.3293958604,
0.0235055387,
0.2038993984,
-0.1538179517,
-0.1272313297,
0.1778419316,
-0.3315119147,
0.3227913678,
0.1344877779,
0.1641258895,
-0.7020505667,
0.0724506378,
-0.1511767805,
0.2363011837,
0.1226454377,
-0.0113484971,
0.0670085996,
-0.2285550237,
0.068781279,
-0.0212819893,
0.0207532197,
0.0384543166,
-0.0363368616,
0.0566618927,
0.2914116979,
0.1204239056,
0.2116764933,
-0.1690317392,
-0.1292984039,
0.1894248724,
-0.0924687311,
-0.0127830952,
-0.1523365527,
0.2509379089,
0.0716323704,
-0.0205150023,
-0.3927161992,
0.0094660446,
-0.6643106341,
0.359924078,
-0.0630416572,
0.0037835771,
-0.0244873762,
-0.0377799682,
-0.0436001644,
0.2727339268,
-0.39894557,
-0.2452391982,
-0.0398360267,
0.1406460851,
-0.0762991309,
-0.1881080568,
0.1733015478,
0.4887494147,
-0.0206889249,
0.027585879,
-0.4749940038,
0.2654612064,
0.180031091,
0.3496614993,
0.2071919888,
0.1719932854,
0.1153352335,
0.3271221817,
-0.0671862885,
-0.1364267915,
0.4031298757,
0.1584941894,
0.361585021,
0.0697802231,
-0.0579108447,
-0.1681997329,
-0.2103428096,
-0.1022322327,
-0.0086557083,
-0.0691739321,
0.2302606255,
0.3729235232,
-0.0315749422,
0.0750684142,
-0.3564732671,
0.1301704049,
-0.1990265846,
0.0818053186,
-0.0245358609,
-0.1395412385,
-0.2211088389,
-0.1581022143,
0.0965664983,
0.3935678601,
0.2068521082,
-0.0604203716,
-0.6695665717,
-0.1548300087,
-0.350404799,
0.2457050383,
-0.3112828434,
-0.0530460551,
0.148172617,
0.0319639519,
0.0137647912,
-0.0669054165,
0.6469923854,
0.000005044,
0.083507441,
-0.1904639304,
0.1843105853,
-0.189984262,
0.0944079012,
0.3197166026,
0.3267335892,
-0.3434047699,
0.4133313596,
0.1080604196,
-0.2338378429,
0.090972349,
0.4599339664,
-0.5098071098,
-0.0579448417,
0.2214579582,
-0.2996599674,
-0.1480363011,
-0.3749029636,
0.0997120664,
0.0366373509,
0.2042605579,
-0.2132802606,
-0.3660639524,
-0.1237860024,
0.1425290853,
-0.3959296942,
0.4069086313,
-0.0654292256,
-0.0009560287,
-0.0664050952,
0.3982369304,
0.6073399186,
0.241791442,
-0.4718925655,
-0.3955793977,
-0.1128656939,
-0.1703764051,
0.2326041162,
0.2393690646,
0.0122221895,
0.1966255754,
0.1238600761,
-0.133984834,
-0.26124385,
0.182087332,
0.1194560677,
0.3022390604,
-0.1734211445,
-0.3173743486,
0.4509800076,
0.2749406099,
0.0477713495,
0.1978363395,
0.3538496792,
-0.3776676059,
0.3673599064,
0.1181271747,
0.6669074893,
-0.0182064399,
0.4968538582,
-0.098592326,
-0.3663337529,
-0.0350097381,
0.0183195919,
0.0802295953,
-0.0711582154,
-0.1028731018,
-0.0167901404,
0.0819393545,
0.2323679477,
0.5184146762,
-0.047984682,
0.2158785015,
-0.1498367488,
0.0852451771,
-0.3729453981,
0.2046394646,
-0.1910218,
-0.1594382972,
0.0410629176,
0.0237623677,
0.0888336897,
-0.1331805289,
0.1496345401,
-0.0856837183,
0.0917763859,
-0.0596954972,
-0.165638417,
-0.407269001,
-0.1481122673,
-0.2073439658,
-0.1955053359,
-0.5290105939,
0.0385960713,
0.4284873605,
0.1972436011,
0.0606711432,
0.083525382,
0.2208251059,
0.0484204963,
0.1239427477,
-0.1668685526,
-0.1823076755,
0.187982589,
0.0752461851,
0.0273726285,
0.0250484236,
0.1128556579,
-0.4212213159,
0.0675828457,
-0.1193264499,
0.2632935643,
-0.0307079405,
-0.3365968168,
-0.1666623503,
-0.3178777099,
-0.4264826477,
0.0370022729,
-0.0681352243,
-0.0091887601,
0.415502876,
-0.1974994838,
-0.1237899214,
0.1959584504,
0.1716915667,
-0.1490485966,
0.048734203,
0.7534677386,
-0.4408060908,
0.1156603247,
-0.1474776864,
0.4632135332,
0.2551525235,
-0.1543338895,
0.3137851954,
-0.1544506997,
0.2359162271,
-0.0555397198,
-0.1251846552,
0.050030373,
0.1026495621,
-0.3332235813,
-0.0957833081,
-0.3727158904,
0.0459640734,
0.3631148934,
0.4548832476,
-0.1544362903,
-0.3133369684,
-0.1745498776,
-0.0623906255,
-0.1290360987,
0.1928515881,
0.1115651056,
-0.0337867998,
0.0892686695,
0.5190904737,
0.092749916,
-0.0439773239,
-0.087496981,
-0.0811778083,
0.0490688309,
-0.0677701831,
-0.2429116219,
0.2171800286,
-0.1623785198,
-0.0961466059,
-0.1264948696,
-0.257905364,
0.1673529893,
-0.1099622101,
-0.323751539,
0.1433321536,
0.1516303271,
0.1925880611,
0.0393255688,
0.1373103857,
0.2304433286,
-0.1271109581,
0.2648395598,
0.3415455222,
0.1894308925,
0.2597720027,
0.1179966182,
-0.1669148505,
-0.2726456523,
0.0306757651,
0.1163633987,
-0.1207789108,
-0.245149821,
0.0025416799,
-0.1187874675,
0.3289444745,
0.1872170568,
0.281493634,
-0.2939670682,
-0.2809573412,
0.3967546225,
0.0327845216,
0.0694619417,
-0.3122706711,
0.4320268333,
-0.2886401415,
-0.0244978368,
0.064906843,
-0.110481292,
0.1635615528,
-0.6306897998,
-0.1315700263,
-0.0050377361,
-0.1757175475,
0.1836414039,
0.3621573746,
0.0351955593,
-0.0113804992,
0.2998209,
0.332631886,
0.4769549668,
0.7569003105,
-0.1946559548,
0.3213781714,
0.3584153056,
-0.1121047288,
0.1665574759,
-0.133634463,
0.0062578269,
0.0190795287,
0.0839047283,
0.328099519,
0.4132534862,
0.0703577548,
0.1677757055,
-0.308319211,
0.0771649405,
-0.0210546963,
0.1172888726,
-0.4065390825,
0.052108258,
-0.0315602943,
0.1487145275,
0.2962123752,
-0.1861998588,
-0.4566998184,
0.3414574265,
-0.170936048,
0.0925915986,
0.2572570443,
0.288790673,
-0.1281084567,
-0.0105040483,
-0.0594283491,
-0.2913378179,
-0.1945297122,
0.0401327498,
0.1520557702,
-0.0660124943,
-0.2403426319,
-0.1592820436,
0.0114734694,
0.1467016488,
-0.1973903775,
0.0433327928,
-0.1993128955,
-0.3347668946,
0.0072897021,
-0.1861634552,
0.3576769531,
0.0067863576,
0.1036223322,
0.040026702,
0.281091094,
0.4203672409,
-0.4444258809,
0.0576522797,
0.1505890191,
-0.3244642615,
-0.0227692183,
0.0239829719,
-0.0229799002,
-0.4238345027,
0.7393192053,
0.047370486,
0.009485174,
0.1237339973,
0.0314198881,
-0.2672821581,
0.3729069829,
-0.0912545025,
-0.2442430556,
-0.2016925514,
-0.1476555765,
-0.4075843096,
0.0889033973,
0.1213934347,
-0.0014503375,
-0.0897430182,
-0.080851078,
0.0744394585,
-0.1016436219,
0.2257520258,
-0.1425706148,
0.0313424245,
0.5929243565,
-0.2693687081,
-0.23293221,
0.1044757292,
0.4249649644,
0.2707132399,
-0.3766430318,
-0.0587715656,
0.2983462811,
-0.0946873948,
0.0555640385,
0.1400134861,
-0.1116010696,
0.0986749306,
0.6502911448,
-0.1444054693,
-0.1245683804,
-0.1674838662,
-0.1460273266,
0.1860034913,
0.2573996484,
-0.4718903303,
0.2457919419,
-0.0450470746,
0.2827150226,
-0.4167083204,
0.5806434751,
-0.0772676766,
-0.346280247,
-0.1111063808,
-0.1564855278,
-0.1729534566,
0.2177679837,
0.3041040301,
-0.0099667236,
0.3712159395,
0.3615015149,
0.051732745,
0.3954375982,
-0.4144781828,
0.3705531359,
0.509077549,
0.0948972702,
-0.0532979369,
0.2723087966,
-0.0018012822,
0.2699892819,
-0.1241066828,
-0.4896570444,
-0.2182664573,
0.3479818106,
-0.1333281696,
-0.1373221278,
0.2824607491,
-0.2615498304,
0.124984704,
0.071455963,
0.8420633078,
0.182207793,
-0.1185951233,
-0.1620346606,
-0.2001541108
] |
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.5492252707,
-0.1562174708,
-0.0973051339,
0.3641074002,
0.3012054861,
0.093107596,
0.0318726972,
0.2230127752,
0.2383633852,
0.4310355783,
-0.2034215033,
-0.0097505711,
-0.1162821352,
0.1218972877,
-0.0843502507,
0.2447764575,
-0.2308544517,
0.4342672229,
0.4354301691,
0.0809465423,
-0.1463073194,
0.3227607906,
-0.0329573229,
0.0134567637,
-0.2296866775,
-0.0266705323,
0.0649696365,
0.2269904464,
-0.2469376475,
-0.4500755966,
0.5318313241,
-0.2040964663,
0.3821452856,
0.4862638116,
-0.0001192676,
0.0767830834,
0.2923072577,
-0.1723965108,
-0.2772042453,
-0.6352190375,
-0.5189527273,
-0.1069163457,
0.0227832198,
-0.1745987386,
-0.4987580478,
0.1419633925,
0.0905801654,
0.0844904333,
0.1318619847,
0.4710632563,
0.132347405,
-0.0255523883,
0.4266811609,
-0.2614112794,
0.6230579019,
0.0675975978,
-0.1357329041,
0.0985978916,
0.2885706723,
0.2700979114,
0.4061022401,
0.1312182695,
-0.0209039487,
0.1605392694,
0.1259364933,
0.0051018037,
0.2155120969,
-0.3926917315,
0.2901314795,
0.2027789056,
0.7724490762,
-0.2937850058,
-0.3040548265,
0.1115150303,
0.0811823234,
-0.4664173722,
0.2170495987,
0.1507622004,
-0.2802616358,
0.2095117569,
0.1901832521,
-0.0583267584,
-0.1123305857,
0.3451277614,
0.0879815519,
0.1269709766,
-0.1504746079,
0.0055523571,
-0.0237789638,
-0.1501268893,
0.2711736262,
-0.0389017873,
-0.0841390267,
0.1122515351,
-0.2754396796,
-0.1604266316,
0.0166551061,
0.2436981797,
-0.0223714039,
0.1306641698,
0.0592908859,
-0.2001150697,
0.1021634936,
0.1904087663,
0.0622775182,
0.1541707218,
-0.0759223104,
-0.3409622312,
0.2246869206,
0.1661466509,
-0.2793198228,
-0.2687012255,
-0.1667175293,
-0.2494898438,
-0.1447490156,
-0.0926703066,
0.1913477033,
-0.3504559398,
-0.4722192287,
-0.2292265594,
-0.541693747,
0.0871199518,
0.1921857148,
0.3942380548,
0.0877431035,
-0.2509022951,
-0.0993421823,
-0.0406720266,
-0.2872312367,
-0.0326356962,
-0.1425808966,
0.2985756397,
-0.1021683216,
0.0024052635,
0.2607377768,
0.0807710737,
0.5792790055,
-0.2843328714,
0.0084046107,
-0.0233261511,
0.297599256,
-0.2074872702,
0.0521376319,
0.4288755059,
0.3808623552,
0.016163744,
-0.0982527882,
-0.444539547,
-0.3056356907,
0.329652667,
-0.439458847,
-0.4657531381,
-0.1354964525,
0.074389182,
-0.43524459,
0.0035237335,
0.0006516874,
-0.2347806096,
0.1604171991,
-0.3929881752,
-0.02172352,
-0.3515497446,
-0.0434328914,
-0.2112886459,
0.2502273917,
0.3778167963,
-0.6014805436,
0.0128425732,
-0.3805828094,
0.1550823748,
0.1199299842,
0.1989079416,
-0.1685973108,
0.5266981721,
-0.2713928819,
-0.0915018544,
0.6319553852,
-0.636885643,
-0.8415309787,
-0.1662151515,
-0.0623473972,
-0.04912927,
0.2330863625,
0.2953895926,
0.1769865602,
-0.2069678605,
0.0053658336,
0.0280050002,
-0.1691210568,
-0.1135200262,
-0.161226213,
-0.1857513785,
-0.3377088308,
0.1451748312,
-0.0424750075,
-0.1901912689,
0.3948431611,
-0.0299163926,
-0.028318014,
0.0357069187,
0.0041887574,
0.1333070397,
0.5193718076,
0.1891498268,
-0.0042399541,
0.0231186301,
-0.308226943,
0.0448477045,
-0.1094078124,
0.0647502989,
-0.308549732,
-0.0404102616,
-0.2715913653,
-0.3036618531,
-0.4424657822,
-0.2636522651,
0.0211441517,
-0.0341805518,
0.3390519619,
0.0827221125,
-0.0409542397,
0.0463735014,
-0.0391622819,
0.0371343754,
-0.1816706657,
0.138123095,
-0.1515361369,
-0.3019531071,
-0.0527059659,
0.2655156255,
-0.079263851,
0.0051505752,
-0.1573839188,
0.1158519611,
0.1705407798,
-0.1826976985,
0.2029101551,
0.2453831732,
0.2108661234,
-0.270852387,
0.188986823,
-0.0082362499,
0.1406190395,
0.0224562287,
-0.0265136696,
0.181484431,
0.0642994344,
-0.0926174074,
0.0142033547,
-0.1576362252,
0.394975692,
-0.041395314,
0.0071037784,
-0.0691647753,
0.1023709625,
0.2601841092,
0.268691361,
0.0029978417,
-0.1557588875,
0.0182826631,
0.5315016508,
0.1142823175,
0.0069916267,
0.0530427434,
-0.1327366978,
0.096390292,
0.2903291881,
0.4729302526,
0.6047754288,
0.3320865035,
-0.2014877498,
-0.1512370408,
0.099753961,
-0.1310832053,
0.0955176279,
0.1010876149,
0.213585645,
0.2487531006,
0.0912273824,
0.0835675597,
-0.0502954274,
-0.5824817419,
-0.0593079403,
0.3502304852,
-0.1561136246,
-0.1299254298,
-0.1629852057,
-0.4231381416,
0.0121321529,
-0.293990314,
0.1531610191,
-0.0411804616,
-0.012483065,
0.2793304324,
0.3121994734,
0.1506228447,
-0.1241771281,
0.1046573371,
0.0333115682,
-0.50737679,
-0.1087353826,
-0.0898250416,
-0.1168641448,
0.0260918885,
0.4296648502,
0.0990309268,
0.2851291597,
-0.4056549072,
0.1447035521,
-0.2727586031,
-0.1465431154,
0.2022347748,
0.0495820232,
0.3368249536,
0.188413769,
0.1252973974,
-0.25521487,
-0.0274086464,
0.2641088367,
-0.0612298772,
-0.1408556551,
-0.0980732441,
-0.2689779997,
-0.0554558933,
0.0529277176,
-0.3438368142,
-0.56391114,
-0.2585717738,
-0.1811032593,
0.1891873926,
0.1829726249,
0.0982803702,
0.1670465171,
0.1794396043,
0.0341235623,
-0.06522578,
0.0789481699,
-0.5655248761,
0.4193032384,
-0.576672852,
-0.1247314513,
0.4705351293,
-0.1488475204,
0.5684300661,
0.0205995999,
-0.2560327947,
-0.089114368,
-0.1598951519,
0.4458845854,
-0.1885038912,
0.0396766588,
0.3315300643,
-0.0147490427,
0.0430481546,
0.0007885769,
-0.0024129227,
-0.0621488281,
0.0407071672,
0.6619494557,
0.1921004951,
0.4910692871,
-0.2392268032,
0.5676391125,
0.075641036,
-0.0442083776,
0.4262984991,
-0.1783231497,
0.2219620794,
-0.5061763525,
-0.1453299671,
0.1648274362,
0.1855125576,
-0.1260239482,
0.1272171587,
0.2610475421,
-0.0493679792,
-0.2332869172,
0.0922025219,
-0.3493931293,
-0.0400587842,
0.0150928255,
0.2960338593,
0.1670238525,
0.003479287,
0.0046506822,
-0.1122636721,
-0.4151189327,
0.0135925859,
0.4828689992,
-0.0788008124,
0.2738877237,
0.2161998451,
-0.4309867024,
-0.3567702472,
0.2008532584,
0.2648075819,
-0.1865747571,
-0.1755000949,
0.1863672137,
0.1618403792,
0.1547292918,
0.444773227,
-0.0323358737,
0.0782783777,
0.1802158505,
-0.0247227773,
-0.0252116472,
-0.029944133,
-0.1443332285,
0.2997744381,
0.2518143356,
0.1430121064,
-0.0863930136,
-0.1789862812,
0.1666560322,
0.1022853106,
-0.122808598,
0.0257533267,
-0.1004673466,
-0.5379289389,
-0.3752611876,
-0.157457009,
0.0406525284,
0.2452536225,
0.1521889567,
-0.0870182887,
0.056966193,
0.0963930935,
0.0727745444,
0.2335206568,
0.5060458183,
-0.0360475555,
0.0250242427,
-0.0150610432,
-0.3126761317,
0.6949636936,
0.4729441404,
0.0567892529,
-0.2865797877,
0.0340607502,
-0.1437414736,
0.1473525167,
-0.0102490336,
-0.0963007212,
-0.2435185015,
-0.493555665,
0.0672561228,
0.2556271255,
0.161480099,
0.1735777557,
0.0213428102,
-0.3130954206,
-0.2729232311,
0.1826114655,
0.0327075124,
0.2156351805,
0.3947992623,
0.2493328601,
-0.1905589104,
0.459102422,
-0.035818547,
0.8300564289,
0.0358710699,
0.1106397659,
0.1712230146,
0.1161658466,
0.4242927134,
-0.1524286121,
0.3545795977,
-0.1772012413,
-0.0623138435,
-0.1570386291,
-0.1664745212,
0.0843951404,
0.2573536634,
-0.2287185788,
0.3569447994,
0.3331587315,
0.1048728675,
-0.0323953331,
0.1906479448,
-0.2452903241,
0.0818854347,
-0.1570236981,
0.0791837424,
-0.1549092978,
0.6620941162,
-0.0841335654,
-0.1675601602,
-0.5331513882,
-0.0649937987,
-0.16655761,
-0.142195031,
-0.5519373417,
0.274459362,
-0.1833067536,
-0.8469389081,
0.0923218653,
0.2916697264,
-0.1129481792,
0.1048723981,
-0.3378616571,
0.2216864973,
0.3370817304,
-0.2387383878,
0.1834715605,
0.1530793607,
0.1034668684,
-0.2592189908,
-0.2260488123,
0.0414021462,
0.1249216348,
-0.3734334111,
0.1193470061,
-0.1821629703,
0.0780829042,
-0.1210058331,
-0.4089337289,
-0.168427974,
-0.1427183449,
-0.0541255735,
0.0881959945,
0.0645784959,
0.062432602,
0.2328214794,
-0.2019108832,
-0.2659591436,
-0.1875072867,
0.0992814153,
-0.2765617967,
0.4114076495,
0.5215313435,
0.0224760249,
-0.1664814055,
-0.1105083674,
0.2171853781,
-0.1608549058,
-0.3135446906,
0.0257997289,
0.1030321121,
0.2682359219,
0.0022014827,
0.3596259952,
0.3383306265,
-0.1976756305,
-0.0665350333,
-0.511164546,
-0.1794644892,
0.2216679752,
0.2026065886,
0.3132026792,
-0.1802572906,
0.209454447,
0.1714217067,
-0.4007723331,
-0.2214140296,
0.1799664497,
-0.0862284675,
0.0507298075,
-0.0341354683,
0.1443574429,
0.3577932417,
0.098071292,
-0.0068738796,
-0.1318576187,
-0.1616236717,
-0.2157354951,
0.1419703364,
0.1429493427,
-0.0185366087,
0.0105158947,
-0.068895258,
-0.0605123565,
-0.0823871717,
-0.0300128199,
0.1519720405,
0.229061082,
-0.0094980374,
0.1990977526,
0.0601868443,
-0.0760745108,
-0.1169419438,
0.3815582693,
0.1356507242,
0.1704592258,
0.169039771,
0.294432044,
0.0512569584,
-0.0311676338,
-0.0093208477,
-0.1481214762,
-0.3203986287,
0.0210116953,
0.1947280169,
-0.1855776757,
0.0162722766,
0.2852484882,
0.0702979565,
0.0583951995,
-0.0802155435,
0.1453118473,
0.2804787755,
0.0619567186,
-0.2122626305,
0.1061521173,
0.3297355473,
0.2141737044,
0.058062613,
0.2490779161,
-0.02424822,
0.0569595546,
0.0340289399,
0.195471704,
0.7585296035,
-0.2084519565,
-0.0951441526,
0.2974689901,
-0.0486344285,
0.296654284,
0.0151996296,
0.0320125893,
0.0889320672,
0.4520907998,
-0.1312085986,
0.3690886497,
-0.1816404015,
0.1036186516,
-0.0168701001,
-0.4776886106,
-0.3266049325,
-0.2345929295,
-0.1599961966,
-0.1680218875,
-0.0013954975,
0.5693007708,
0.0206118375,
0.1268593669,
-0.2767933607,
0.0355464853,
-0.3136081398,
0.2228031158,
-0.275328517,
-0.2170568109,
0.2489830256,
0.0473272502,
0.0287212152,
0.0838112831,
-0.1233950034,
0.2148334086,
-0.2976413369,
0.1965074539,
0.0569756739,
0.0758288503,
-0.0500150695,
-0.0799545422,
0.3521751463,
0.0548960194,
-0.0995640457,
-0.1438274682,
0.2892385721,
0.4752373993,
0.3081266582,
-0.0057240818,
-0.106362775,
-0.019874543,
-0.2170750201,
-0.111236155,
0.0235577337,
0.1022661477,
-0.0205630865,
-0.0117277429,
0.1469002515,
-0.0678026974,
0.042388428,
0.0682884604,
-0.0984203741,
-0.0591911823,
0.0013838001,
-0.0875105336,
-0.2262161374,
-0.1455894113,
0.0645142049,
-0.330579102,
0.0700750872,
-0.0351044908,
0.0266139358,
-0.0092232563,
-0.0550509691,
0.0207758211,
-0.2382714748,
0.0930661708,
0.2795323431,
0.3545045555,
-0.4359829426,
-0.1675847024,
-0.5266875625,
0.0868722871,
-0.1102217808,
-0.1636730433,
-0.1949091256,
0.1538095176,
-0.4237271547,
0.0820987001,
0.3141465783,
0.0027326345,
0.2736624479,
0.3161560893,
-0.1667105556,
-0.2694209218,
-0.0941861868,
-0.074953191,
-0.0045558959,
-0.2586072981,
0.0318248011,
-0.1493287981,
-0.0617902391,
-0.1887200177,
-0.2497363687,
0.1525995135,
-0.0256484002,
0.4946902096,
-0.1738684326,
0.5443024039,
-0.1426638514,
0.1813518554,
0.0970863774,
-0.0135700274,
-0.0842953622,
0.089326933,
0.1416112334,
0.3505218923,
-0.255051285,
-0.0157498308,
-0.2995868623,
0.1975639462,
-0.0592748113,
-0.0341166034,
-0.0428290218,
-0.1127491146,
-0.2846977115,
0.2559111714,
0.1605641693,
0.0230689365,
-0.1698346585,
0.120796591,
-0.3196052909,
-0.118087329,
0.5395078659,
-0.1812964529,
0.1485286802,
-0.1643859297,
0.0286931098,
-0.0790732503,
-0.2623632252,
0.0592342317,
0.0853298455,
0.2187628597,
0.1401187032,
-0.1786879301,
0.2941482365,
0.1196621135,
0.0351209193,
0.1572333574,
0.5685505867,
0.0433791652,
-0.0230197795,
-0.2887487411,
-0.1851945519
] |
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.0693235397,
-0.2360807508,
0.0143213458,
0.3875413835,
0.2564871609,
-0.0527750775,
0.3894460797,
0.1509237736,
-0.353094101,
0.2145141214,
0.0362560675,
0.3838865757,
-0.191411078,
0.3149206638,
0.1428200155,
0.0897245407,
-0.0645082295,
0.1746297926,
-0.5109459162,
-0.2078543901,
0.1559594423,
0.1073493436,
-0.0441998541,
-0.0219410993,
-0.192563802,
0.2516241968,
0.0345339105,
-0.2753403187,
0.0288735926,
-0.6021385193,
0.2152354419,
0.085940361,
0.1602355689,
0.5223378539,
-0.0001203386,
0.0850626379,
-0.1006254405,
-0.0585892834,
-0.4437145591,
-0.3315132856,
-0.1293736249,
-0.0098592415,
0.4994363487,
-0.1294307411,
-0.3538801074,
-0.2658421993,
0.022859836,
0.1678990126,
0.1387129575,
0.1977490634,
0.144300133,
0.207628876,
-0.4852287769,
-0.0598842092,
0.1789753586,
0.0927966908,
-0.0897973776,
0.1834604889,
-0.1145903319,
0.3434796333,
-0.0861931294,
0.296987325,
0.0472153053,
0.3001303673,
-0.0325889587,
0.0343296044,
0.0803430453,
-0.1385794282,
0.0530871972,
0.3074516356,
0.6112805009,
-0.1911727488,
-0.0061638951,
-0.2379679084,
0.2809104919,
-0.0089170113,
0.1315226704,
0.2282374203,
-0.157889396,
0.1716043055,
-0.4439935684,
0.1640818268,
-0.222061187,
0.1022911668,
-0.0723653734,
-0.4805191159,
-0.2431516647,
0.0890062824,
-0.1993249208,
-0.1923929751,
0.2014488876,
-0.2141874582,
0.1594438851,
0.0345590711,
-0.2622404695,
0.1092174873,
-0.0398220085,
0.2607021034,
0.0437216684,
0.2176585048,
0.7037343383,
0.1950192153,
-0.1651889533,
-0.1209522039,
0.1111265421,
0.2142630816,
0.1403143406,
-0.1036115885,
0.00067979,
0.1406616718,
-0.3247895837,
0.0161449183,
-0.0948203653,
0.3506812155,
0.2983544767,
-0.4594765007,
0.248512432,
-0.2413161993,
-0.4751442373,
0.1753276289,
-0.4329753518,
-0.1862199455,
-0.0301718097,
0.1282129586,
-0.0328179747,
0.2887890935,
-0.0671524704,
-0.1436187625,
0.0331266448,
-0.1429728568,
-0.17336981,
-0.2447232902,
-0.2997202873,
0.3173592985,
0.1830931008,
-0.5795410275,
0.1755430698,
0.5316571593,
-0.0979861543,
-0.0599516295,
0.1499045491,
0.0484335162,
0.0605394728,
0.0527878329,
-0.0916914642,
0.2154547572,
0.0453240126,
0.1959704459,
-0.004551053,
0.0992066264,
0.0060083373,
0.0848729014,
0.5086866021,
0.1952259988,
-0.3254634142,
-0.1416300535,
-0.1361301988,
0.1503887326,
-0.13097018,
-0.1011545807,
0.0790349171,
-0.2211143374,
-0.1790564209,
-0.177493155,
0.067505762,
0.3432031274,
-0.3481627107,
-0.1797854006,
0.3411164582,
0.0673230663,
0.1209604144,
0.0170690157,
-0.0397709198,
0.2547906339,
-0.1584241986,
-0.0625495911,
0.0198323317,
-0.1838140041,
-0.2675596178,
0.1368084103,
-0.0317498967,
0.4677159786,
0.0180714391,
-0.0457960702,
0.3251828551,
0.3720588982,
0.0871373415,
-0.0469075814,
0.4046124518,
-0.037094336,
-0.4191308618,
-0.0683910698,
0.1653865129,
0.1985430568,
-0.1735893935,
0.2753484547,
0.1103100032,
-0.0650222152,
0.3484919071,
-0.1165020764,
-0.1479744911,
-0.1333270669,
0.0910538584,
0.1553091109,
0.1657626927,
-0.3785127401,
-0.1361990124,
-0.0131420493,
0.2551567554,
0.191827029,
0.3550345004,
-0.0333184078,
-0.3664957285,
-0.2809582055,
-0.3950496018,
-0.0378558114,
0.1021250039,
0.5243573189,
-0.0206528082,
0.2404850423,
0.0254030228,
0.6545194387,
-0.4834009111,
0.1554481685,
-0.1168727428,
0.1829819083,
0.0746078491,
-0.00838135,
0.023886092,
0.0853042454,
0.1819915026,
-0.1432333738,
0.1197682992,
0.3222536445,
0.060844291,
-0.0229395628,
-0.222768411,
-0.1932331622,
0.2595639527,
-0.1983760595,
-0.1534412801,
0.1877189279,
0.1179832444,
0.0357430875,
-0.0955216289,
0.3096632957,
0.0103777945,
0.1483063549,
0.2213653028,
0.0738518834,
0.0211749002,
-0.0808996558,
-0.3685724735,
-0.4152882695,
0.4115940332,
-0.0445590168,
0.0660961717,
0.1735989749,
-0.4137442708,
0.179787904,
0.0957723185,
-0.1290574223,
-0.1319270432,
0.1978543252,
-0.158522293,
0.2480876893,
0.0489420369,
0.3009956479,
0.2230156362,
0.1953909993,
-0.0019304296,
0.0747672766,
-0.2692966461,
-0.1935741603,
0.1433220357,
0.0193450004,
-0.2603232563,
0.4037387371,
0.2191154361,
-0.0176815465,
-0.6143206954,
-0.0884900987,
0.2171189487,
0.2974386513,
-0.2661318779,
0.0853497759,
-0.4890752435,
-0.0450065657,
-0.3011743724,
-0.1606364846,
0.1040869504,
0.0812572092,
0.03938419,
0.2080575526,
0.1990808249,
0.2026449591,
-0.3972117305,
0.2981903553,
-0.0682340115,
0.439157337,
-0.097270675,
0.2479809821,
-0.3348941803,
0.0424618609,
-0.0852728263,
0.1215666234,
0.2688835859,
-0.4862585366,
0.0993542671,
-0.3178023398,
-0.3299518824,
0.3918772936,
-0.148920089,
0.4757381678,
0.2216868699,
0.0783467889,
-0.1970854104,
-0.2506313324,
0.0102320947,
-0.1400301158,
-0.2091222405,
0.1264415085,
-0.0564196482,
0.0704470277,
-0.1707558036,
-0.532075882,
0.1326204687,
-0.1759246886,
0.4266977906,
0.1929592341,
0.1590534598,
0.5182476044,
0.0276145637,
0.333420217,
0.1154288575,
0.2547900379,
-0.4598691761,
-0.255138278,
0.2225895822,
-0.0588355213,
-0.1310432106,
-0.1529303193,
0.0204575583,
0.0693662986,
0.2738566101,
-0.6682429314,
-0.0594675504,
-0.2347603142,
0.0669739693,
0.00989844,
0.0657852814,
0.1793261021,
-0.0859027505,
-0.0352975354,
-0.1392114162,
-0.013734933,
0.202699855,
-0.0850532055,
-0.0505668223,
0.0524010397,
0.1572904438,
0.0933312774,
0.1990322918,
0.460985899,
-0.1091708839,
0.2948641181,
-0.0948015973,
0.5107046962,
-0.0797248781,
-0.1776981056,
-0.211165145,
-0.1123107597,
0.0125114024,
0.2650342286,
-0.1442331672,
0.1855430007,
-0.0528019518,
-0.0077151284,
0.0556771532,
-0.2703032494,
-0.2283925712,
-0.4031398892,
0.3369251192,
0.1973821819,
0.1473371089,
0.0239823908,
-0.1598919332,
-0.2391502857,
0.2751938701,
0.105854854,
-0.0546758994,
-0.7649227381,
-0.2049746513,
-0.4185813665,
0.2463744432,
0.3461547196,
0.3524980545,
0.0982508361,
-0.2850195765,
0.4231260717,
0.0893972367,
0.5272779465,
-0.426174134,
-0.1225828379,
0.0781610385,
0.0708113238,
-0.5122362375,
-0.1821727008,
-0.3769620657,
-0.1074798778,
0.1066752523,
0.3323647082,
-0.1447002441,
-0.2569245994,
0.2897034585,
0.2483832985,
-0.137463063,
-0.2136357278,
-0.0776476637,
-0.0747207999,
0.0646534786,
-0.0018663779,
-0.2464235574,
-0.1212768108,
-0.3947782516,
0.0123450309,
-0.2985565364,
0.1659850776,
0.5115224123,
0.2698188424,
0.490092814,
0.0091709159,
0.3090980053,
0.3732326329,
-0.0511606596,
0.1870749742,
0.5713595152,
-0.3596920669,
-0.0047075041,
0.1924050748,
-0.2698390484,
0.1046852544,
0.4873093367,
-0.0608643554,
0.2108043134,
-0.2117763609,
-0.018489752,
-0.1353258193,
0.2354849428,
0.2572871149,
0.0083177872,
0.0897654593,
-0.6204380989,
0.2661385238,
0.0086179599,
-0.2467443049,
0.2705598772,
0.0744706094,
-0.0955314934,
0.1597130597,
-0.2795660496,
0.8087233305,
0.1241448522,
0.5083411932,
0.372887969,
0.0276530832,
0.0537169091,
-0.1236926168,
0.0781793147,
-0.2046163231,
-0.2007229924,
-0.1222520173,
-0.1652893871,
-0.0426908806,
0.1196208894,
-0.3727219701,
0.0550793,
-0.0400892645,
0.2199942321,
0.118948482,
0.0309289098,
-0.2442181855,
0.0977587774,
-0.0443654582,
0.0591699593,
0.0649879277,
0.1120802388,
0.1047764868,
0.1555496752,
0.3324549198,
-0.2676258087,
-0.2883506417,
0.0251531154,
-0.1185300052,
-0.1233941913,
0.0150878821,
-0.5537114143,
-0.0543639064,
0.02271723,
0.0376641452,
0.0825628638,
0.0196775701,
-0.1897841394,
0.1444818527,
0.2891586423,
-0.2672908902,
-0.0402196348,
0.5374184847,
0.231379509,
-0.3256859183,
0.1473494768,
0.2718445957,
-0.0018389747,
-0.3763469458,
0.1328824908,
-0.2728023231,
-0.6834984422,
0.0993262976,
0.018812418,
-0.0548777245,
-0.226385057,
0.0769663602,
-0.315237999,
-0.1691730022,
0.2465949357,
0.3125599921,
-0.4311825335,
-0.1518790871,
0.4057875276,
0.3899220228,
-0.0322271399,
0.4833841324,
-0.0553578809,
-0.0931494385,
-0.2447720319,
0.089677453,
0.1940063685,
-0.2671209574,
0.0831903145,
-0.2182866037,
0.2354190648,
0.2110477388,
0.247549355,
0.0582139492,
-0.0375556536,
-0.3182400465,
-0.2167703807,
0.0550095364,
0.1399970204,
0.2336659282,
0.3746976256,
-0.0493180044,
0.2886083424,
-0.0128014795,
-0.1217283383,
-0.2259509265,
0.3694860041,
0.0717833191,
0.2320925295,
0.0476723127,
-0.2835392356,
0.2777881026,
-0.0037466213,
0.0894871429,
0.281129837,
-0.1567189544,
-0.1079949141,
-0.3754073679,
0.1233826354,
0.0319672972,
0.0622642636,
-0.2143041939,
0.0490688235,
0.1448475868,
-0.0080118272,
0.2008194625,
0.2167952508,
0.0344920307,
0.1800308824,
-0.0633828864,
0.1611387581,
0.0755770952,
-0.1940605789,
-0.0879659057,
0.0265815407,
0.3356519043,
-0.1145701036,
-0.3686913848,
0.1255863905,
-0.2908984423,
0.1372587383,
0.2278486788,
-0.0607035533,
0.0060292711,
-0.2250225544,
-0.00573387,
0.0907275528,
0.2555989325,
0.5138314366,
-0.2099698484,
-0.3390115798,
0.0577027649,
0.1151940525,
-0.1063013226,
-0.1141080484,
-0.1480737031,
0.124951981,
0.1658431888,
0.3090192676,
0.0514545888,
-0.424574852,
0.4315133393,
-0.1258099377,
0.2499514967,
-0.2317195386,
0.2440087199,
0.4143303633,
-0.0603277534,
-0.147606343,
0.2601908147,
0.1235287338,
-0.2130863965,
0.5466448069,
-0.0603722818,
0.0290237982,
-0.3541243076,
-0.0248367824,
0.0898934454,
-0.1018577367,
-0.0802815259,
0.2303500623,
-0.2128084004,
0.3305294514,
0.1146318018,
0.4066488743,
-0.0408453532,
-0.0810561702,
-0.3341462612,
-0.2729623318,
-0.2580868304,
-0.1305441558,
-0.3098899126,
-0.4051510692,
-0.0625762045,
0.0575426519,
-0.1961641312,
0.0544603802,
0.4997911155,
0.146004349,
-0.0082598962,
-0.7142174244,
-0.2702356577,
0.1107902974,
0.2933400571,
0.0491915196,
0.4703096151,
0.1340152323,
0.0178158637,
0.0853120536,
0.1957300156,
0.2397436947,
0.1889179647,
0.12251243,
0.110205628,
-0.3764481843,
0.074575007,
0.0637034625,
0.3070594966,
0.0765789598,
-0.2732907534,
0.1072874814,
0.0333982408,
-0.0789425373,
0.2780895233,
0.0680698305,
-0.0264699385,
-0.803214252,
0.3519614041,
0.0192745589,
0.242041409,
0.0527274273,
-0.035288237,
-0.4574168622,
0.4931132197,
0.3092862368,
0.0321064033,
0.0530534759,
-0.254537493,
0.0737999976,
-0.2497570217,
0.2542215884,
0.1347322613,
-0.0190867595,
-0.1240039542,
-0.16254282,
-0.67356354,
0.0717223957,
-0.2230775654,
-0.0124964714,
0.1540582776,
0.0600399897,
-0.0518553033,
0.0883439407,
0.1788546592,
0.0864393115,
-0.4328101277,
0.0475378819,
-0.4010688961,
-0.132304877,
0.1205500215,
0.0634414479,
-0.0710199997,
-0.1109481975,
0.0470494516,
-0.1067718714,
-0.039010264,
-0.0458403453,
0.0019415468,
-0.0850797147,
0.1856613755,
-0.0113278963,
-0.0458149984,
0.3190467656,
0.1376357377,
-0.1362695396,
-0.3025197983,
-0.3942961097,
-0.1327103674,
0.4103942513,
0.1652319729,
0.1351457238,
-0.1027041897,
-0.5430186391,
0.0290539637,
0.0596093349,
0.3160617352,
0.1068300307,
0.0354211777,
0.0028791577,
-0.2154765129,
0.1601432413,
0.0273870677,
0.6485616565,
0.1067195684,
0.1607165933,
-0.1940806806,
-0.6553240418,
0.458348155,
-0.685157299,
-0.3094453216,
-0.1223158687,
0.1761119515,
0.1354706287,
-0.2074054778,
-0.7160695195,
-0.0106189847,
0.531948328,
-0.1739028841,
-0.076674141,
0.3915342689,
-0.0429106578,
0.0192744732,
-0.2680869102,
0.6225163341,
0.448464185,
-0.3485531211,
0.1075245962,
-0.3683798313
] |
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.086102806,
0.0252730548,
0.0131383985,
0.0565955788,
-0.0154163959,
-0.0016978011,
0.0401859172,
0.167280823,
0.111397475,
-0.0323933959,
-0.213955313,
0.4168868959,
-0.215839237,
0.1142555997,
-0.0266244151,
0.0259719044,
-0.1856243461,
0.2257937491,
0.1270139813,
-0.0297933295,
-0.2303094864,
0.1505400836,
-0.0891874135,
-0.0707919672,
-0.1212104037,
0.1165196598,
0.177677691,
0.4099344015,
-0.1358954012,
-0.339826256,
0.407466203,
0.3265333772,
0.1645618081,
0.3329022527,
-0.0000988554,
-0.1569033861,
-0.0146498401,
-0.2888988256,
0.0687237531,
0.1292686164,
-0.495205313,
-0.1590584666,
-0.1031418145,
-0.0598487779,
-0.2974746227,
-0.186062485,
-0.2987945974,
-0.266318202,
0.7216202021,
0.3141842186,
0.2168493718,
-0.3120062351,
0.0287784785,
-0.0162666067,
0.0748967975,
0.0478535853,
0.0662216544,
0.4144842923,
0.281468153,
0.0652264059,
0.2580658793,
0.0439043231,
-0.3099860251,
0.1127451211,
0.2655505836,
-0.0027988851,
-0.411169827,
-0.2162589133,
-0.0957744867,
0.577278614,
0.4842571616,
-0.5012127161,
-0.1985924393,
-0.1890506446,
0.1999865323,
-0.4806697369,
-0.0414560288,
0.0458250344,
-0.1702146828,
0.3052021563,
-0.0256953854,
-0.3619789779,
-0.2076644748,
-0.090606451,
0.0454348177,
0.0527967401,
-0.1664786339,
-0.0589326099,
0.0423610546,
-0.0513080806,
-0.1957067698,
0.0393169858,
-0.21923545,
0.3246356249,
-0.4265647829,
-0.3958184123,
-0.0953574777,
-0.4423436224,
0.050458692,
0.0338856913,
0.3694807589,
0.1431516409,
-0.1174623966,
0.1512012333,
0.021868635,
0.0106420331,
0.0032330342,
-0.1732017845,
0.0986958966,
-0.4326668382,
-0.0350538306,
0.026426293,
-0.2180436403,
-0.043256931,
-0.3427797854,
0.0566504337,
0.1485423446,
-0.3140285313,
-0.3048004806,
-0.0890865624,
-0.1365510523,
0.0110785477,
0.0665750131,
0.4089033604,
0.1010564715,
0.0541138574,
-0.0569668189,
0.3980822861,
0.1612130851,
0.0188258328,
0.043964155,
0.2589756548,
0.3334704638,
0.1825697124,
0.3748438656,
0.0000860058,
0.4036769271,
-0.1982593834,
0.2077444941,
-0.1387867779,
-0.0327321365,
0.1331548989,
-0.2826275229,
-0.0561922714,
-0.0048103258,
0.1839496642,
-0.1019114628,
0.031597957,
-0.3335481286,
-0.0936333835,
-0.3694887161,
-0.3046225309,
0.1110638678,
0.2222229093,
-0.224048689,
-0.1587860584,
-0.1389620751,
0.0635611415,
-0.1052220315,
-0.2892747521,
-0.2854255438,
-0.0336188674,
-0.2655041218,
-0.1619249433,
0.1819531918,
-0.0987349004,
-0.6757565737,
0.0897568837,
-0.1216197461,
0.1931487471,
0.0001066886,
0.2764824629,
-0.0473641865,
0.5055425167,
-0.09600164,
0.356343329,
0.2618566751,
-0.4331693649,
-0.234276697,
0.3278566301,
-0.1937009096,
0.1395901889,
0.1119502336,
-0.053850688,
0.4180212319,
-0.3144521117,
0.2169786692,
0.414783597,
0.1870000362,
0.0101188198,
0.1476112008,
-0.0495184883,
0.1854102314,
0.0495970547,
-0.3701095879,
-0.0695196539,
-0.1135781258,
-0.033527486,
0.2687250972,
-0.1552429795,
0.0629091412,
0.1805382073,
0.2452692986,
-0.2102155834,
0.0133580863,
0.109139502,
0.0447730199,
0.1026232392,
-0.1104328409,
0.0059728553,
0.3424818516,
0.0717755854,
-0.2754265666,
-0.2076173723,
-0.344887048,
-0.3608688116,
0.1859111637,
0.1474171281,
0.2212570906,
-0.4752926528,
-0.4122076631,
0.0807687864,
-0.0943105593,
-0.1427312344,
-0.2458337843,
-0.036768809,
0.3501381576,
0.0070162788,
0.394141674,
0.3947734833,
0.1325920522,
0.1408108473,
-0.0319033675,
0.4642840922,
0.2063315958,
0.3702322543,
0.1435027122,
0.2380605936,
-0.1249077991,
-0.4643807709,
0.3657502532,
0.353726089,
0.2512150705,
-0.0766511783,
-0.3008255363,
0.3731017709,
0.2522553504,
0.3634329438,
-0.0481409542,
-0.1168696135,
0.3635114431,
0.1261616349,
-0.2628051639,
0.1092670113,
-0.0914466232,
-0.0808731392,
0.4064537287,
-0.2065785527,
-0.0683863536,
0.084537752,
0.2053623796,
-0.0750658512,
0.0809962898,
0.1536124051,
-0.4257688224,
-0.118857488,
-0.1134340391,
0.1789560616,
0.4203049541,
0.3598633409,
-0.0708560944,
-0.0662557036,
-0.0526870452,
-0.126542449,
0.108032681,
-0.1157126874,
-0.0939977616,
0.308973521,
0.1058523804,
-0.1834133416,
-0.1501323283,
-0.0604769215,
-0.3132828474,
0.0747416914,
-0.394869864,
-0.4067826867,
-0.1029473841,
0.3815217614,
-0.1875574589,
-0.3545243144,
0.0532797426,
0.1806255579,
0.2497491837,
0.0836810172,
-0.0780069456,
0.0876738355,
0.0497493148,
0.4142827094,
0.0394404382,
-0.3689312637,
0.2387041897,
-0.0507124476,
0.0788015872,
0.2575671375,
0.1206863001,
0.2905209959,
0.1138085127,
0.2241351008,
0.0919779614,
0.0407802984,
0.1982497275,
0.0474721491,
-0.1298717558,
0.1506037712,
0.0200966354,
0.2760104835,
0.3697802424,
-0.1345032156,
-0.1777010262,
0.1584920287,
-0.0070835687,
-0.0365135521,
0.0327606052,
0.097188741,
0.1346778721,
-0.5730342865,
-0.2228904814,
-0.4019257128,
0.3425262272,
0.143217206,
0.0825380981,
-0.2697080076,
0.0670058876,
0.0595997795,
0.0927965492,
0.3165631294,
-0.2320635021,
-0.2677365541,
0.4775477946,
-0.2591694295,
-0.0345866978,
0.1361818016,
-0.1052937806,
0.369261533,
-0.1506730169,
-0.0477359593,
0.2083643824,
0.0922408253,
-0.159306556,
0.1981943399,
0.0033949707,
0.2996216118,
0.0201975144,
-0.0316830762,
-0.2138719857,
-0.184788242,
0.1399834454,
0.3487139344,
0.093447566,
0.2376145571,
0.0113628693,
-0.6527876258,
0.5451342463,
0.2003682703,
0.1047429368,
0.025591027,
-0.1037693769,
0.0688260496,
-0.114125967,
0.0598315299,
0.1120027155,
0.0639358908,
-0.1524634212,
0.4134088457,
0.3461428285,
-0.0516761877,
-0.165264219,
0.1413022429,
-0.4106562138,
-0.0305015966,
0.1508203596,
0.0608626455,
0.048441343,
-0.0202791207,
0.3535825312,
0.1242538244,
-0.1363378465,
0.1239680871,
-0.0720520392,
0.3260035515,
-0.2398376614,
-0.2358719409,
-0.1987169385,
-0.3337765932,
0.1443869174,
-0.1739084721,
0.2854417861,
0.0727060288,
-0.105820626,
-0.1804714352,
-0.1442706734,
0.2879535854,
-0.3175032437,
-0.0472839177,
0.0281096399,
0.1946289837,
-0.0486729294,
0.1891381741,
-0.2258089781,
-0.1626953483,
-0.3231973946,
-0.0086007304,
-0.1487405896,
-0.0403887853,
-0.0359371081,
0.3147675693,
-0.1958139837,
-0.2717558146,
0.1249786764,
-0.0154528469,
-0.2908770442,
-0.2386449277,
-0.2708971798,
0.0667561293,
-0.351346463,
0.0070521235,
-0.0032194592,
-0.0408308171,
0.4304589927,
0.1467401534,
0.4306106567,
0.1621551514,
0.2497422844,
0.1420550942,
-0.1393048465,
0.0920063183,
0.4196508825,
0.1345372647,
-0.2270630896,
0.0326278061,
-0.0507334545,
0.291241467,
0.0641627759,
-0.092099838,
0.1154694408,
-0.1916182041,
-0.1043752283,
-0.4369698465,
0.1850699931,
0.290920198,
-0.1390726268,
-0.0982921571,
-0.5546113253,
0.5026654601,
-0.0573655292,
-0.134086743,
-0.1058612466,
-0.1697184145,
-0.3697127402,
0.3407269418,
0.0301520526,
0.6115984321,
0.1831119508,
0.076537855,
0.447001785,
-0.2707523108,
0.1296684146,
-0.7494603992,
-0.0601621158,
-0.2570716739,
0.2156746238,
-0.156416446,
0.0875767767,
-0.1179156303,
0.3387051225,
-0.1610486209,
0.2530444562,
0.2300138772,
-0.2307199538,
-0.0164559335,
0.1258822232,
0.1463285834,
-0.4770154655,
-0.3329918385,
0.203763783,
-0.0281243399,
-0.0517738573,
0.1280700266,
-0.0601572469,
-0.1179041862,
-0.3157677948,
-0.2466216683,
0.0219751,
-0.0180834755,
-0.2330808342,
0.0067218654,
-0.2160553336,
0.1298190504,
0.152584359,
-0.2598615885,
0.341121614,
-0.4805776477,
0.1543213874,
0.087680757,
0.126407519,
-0.0937599689,
0.0119871497,
-0.0926353931,
0.0309846699,
-0.0102692842,
0.3972672224,
-0.0559798405,
-0.2209255397,
0.1096413434,
-0.1084763557,
0.0888471752,
-0.1113108322,
-0.4517170191,
0.2794420719,
0.0820836127,
-0.1447934657,
0.1789727211,
0.3935125172,
-0.4975096881,
0.2964439988,
-0.066314064,
-0.2111897171,
-0.0223857984,
0.0383561589,
0.1171051934,
-0.1720430851,
0.4663716555,
-0.012349762,
0.1118692607,
-0.4094528854,
0.2964835763,
0.2564252317,
-0.0312095508,
-0.111420989,
0.4296887517,
-0.1672213078,
-0.0986036807,
0.0839875638,
0.0439674258,
-0.0571219847,
-0.0933863074,
-0.5307201743,
-0.4021139443,
0.0915459171,
0.2293606251,
0.3262867928,
-0.2629685998,
-0.024399545,
-0.2712801397,
0.0742361024,
-0.4020580053,
-0.0253425296,
0.1834714711,
-0.1052995846,
0.2061377168,
0.5022346377,
0.0588142276,
0.1126754284,
0.2139058709,
-0.0593333058,
-0.3235196769,
-0.2381599247,
-0.1208350211,
0.1364919841,
0.0521105863,
0.0750078559,
0.0321720578,
0.0613973588,
-0.2957632244,
-0.2528945804,
0.0021814927,
-0.1184128001,
0.0280231871,
0.1504423022,
-0.0798131526,
-0.145812735,
-0.1736914217,
0.0743583292,
0.0843825638,
0.0748464912,
0.2703753114,
0.1307303309,
-0.1491898149,
-0.1101870388,
0.3103753626,
0.3500758111,
0.1600983143,
-0.0866958201,
0.2211906016,
-0.0560307838,
0.125095129,
0.1910204589,
0.3222618699,
0.4756328166,
-0.2523066103,
0.0999066383,
0.3864907026,
0.3116899729,
-0.1433415413,
0.1414841861,
0.0606212988,
-0.1722406447,
0.1818787903,
0.1739679277,
-0.1242598891,
-0.1034301296,
-0.3624981642,
-0.0380297899,
0.1487065107,
-0.1853964329,
-0.1252018809,
0.2422107011,
-0.1227989644,
-0.167262271,
-0.2144640535,
0.0211599246,
0.2113019079,
0.2708627582,
-0.2979031205,
0.1575956792,
0.0637575462,
-0.0509714894,
0.010927204,
-0.4018688202,
-0.0099684875,
0.2817002237,
-0.0491191819,
0.1850629896,
0.152887404,
0.2674700618,
-0.0995555073,
-0.0807872117,
-0.1803279519,
0.086612165,
0.2035045028,
-0.3923355937,
-0.1149980575,
-0.2227956653,
-0.0547105074,
-0.0287104882,
-0.0006916813,
-0.1335811466,
-0.2146772295,
-0.2621060908,
0.1103521585,
-0.1122845113,
0.2066514194,
-0.0289751198,
-0.2205845565,
-0.1823903322,
0.2438368648,
0.0532719456,
0.0331176147,
0.4368038177,
0.1147645265,
0.2617257833,
0.1566608995,
-0.32661134,
0.1419268548,
-0.0725840405,
-0.0590927564,
0.0747028887,
0.2985953391,
-0.1415739805,
0.108406961,
0.2894112766,
0.2608925402,
-0.1358896792,
0.0838240832,
0.1716748774,
-0.0309382249,
-0.1729510576,
0.0944247022,
0.1896498501,
-0.0510363765,
0.0038928669,
-0.0637782961,
-0.3798279464,
-0.2290681899,
0.2155448645,
0.2613806725,
0.1403051019,
0.22258389,
0.1633605361,
-0.2535494268,
0.406627357,
0.0116547532,
0.2219270617,
-0.1308039725,
-0.0523896664,
-0.410567373,
-0.0238276459,
-0.001574439,
-0.2007566392,
-0.3632599711,
0.0339234918,
0.5755022168,
0.4340139329,
-0.1519072354,
-0.0174757615,
-0.0307909325,
0.2664519548,
-0.1470307112,
-0.0322136655,
0.2022719532,
0.546646893,
0.1108958274,
-0.3682800829,
-0.3397105336,
0.1616303474,
0.0610877424,
0.1865166724,
0.1779484451,
-0.1060709953,
-0.3083716929,
0.3497229517,
-0.1479787529,
0.4285055399,
-0.3451283276,
0.0563310832,
-0.1584464461,
0.1195361316,
-0.1692725122,
-0.1563921571,
0.0275503062,
0.5028760433,
-0.1112714559,
0.1065120101,
-0.1819573343,
-0.1896498054,
0.0831213146,
-0.2165193558,
-0.4016497433,
0.205769673,
-0.2983717918,
0.0518885776,
-0.0800706968,
-0.1055035293,
-0.0849213451,
0.1245820001,
0.0509301722,
0.0649690405,
0.631929934,
0.0092691109,
-0.0461354852,
0.1577686667,
0.4638566971,
-0.1795600653,
0.140438661,
-0.3925164342,
0.3227731287,
0.2682934403,
0.0447462462,
0.0198242739,
0.0708591044,
-0.1254262328,
-0.1551366448,
-0.0289505832,
0.2028580457,
0.0856644884,
-0.0417919755,
-0.2312371284,
-0.4446927905
] |
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.49882406,
-0.2682778239,
-0.0245006736,
0.128228277,
0.0594398603,
0.2077842206,
0.1214628518,
0.4241297245,
0.291742146,
0.2924967408,
-0.1188250929,
0.1883152723,
0.1372129172,
0.0858210027,
-0.1362565756,
0.1750426739,
0.2370327115,
0.0853343457,
0.2607979178,
-0.1344141364,
-0.3274792731,
-0.3090644181,
-0.1589121073,
-0.2578624189,
-0.4006921649,
-0.0958188921,
-0.2436217368,
-0.0820505768,
0.1982477158,
-0.4729164839,
-0.1375326514,
0.1398428977,
0.3402582407,
0.2582925856,
-0.0001220497,
0.0556765273,
0.2280079424,
0.0654630885,
-0.2229974568,
0.6411960125,
0.3400722742,
-0.0694884509,
-0.1751100719,
-0.3107711375,
-0.1455551237,
-0.111042127,
0.0810792744,
-0.0469298586,
-0.1663650125,
0.1943014562,
0.0266240463,
-0.0582866669,
0.0522548854,
-0.0153998528,
0.4025117457,
-0.0755913556,
-0.0691774189,
0.317471087,
0.1635125726,
-0.072238043,
0.0997431278,
0.4481078684,
0.1206413805,
-0.226777032,
0.1089041457,
0.2051614374,
0.7838162184,
0.0224399716,
0.0652681589,
0.1526694596,
0.0153403673,
-0.0905529708,
-0.443008393,
-0.1029035673,
0.4257143438,
-0.6180592179,
-0.0674015656,
-0.0837423205,
-0.1014747322,
0.0538602658,
0.1745852381,
-0.0302297864,
0.0363180265,
0.0474507548,
0.174899742,
0.1653568596,
0.3874710798,
-0.059902437,
0.5584336519,
0.0424473844,
-0.116854243,
0.0448822752,
-0.0920772031,
0.0121964924,
-0.6050299406,
0.0880847722,
-0.0309159234,
-0.0993313715,
-0.0926872939,
0.0178017914,
-0.3694863915,
0.0061656032,
0.2365597636,
0.0033365716,
-0.1830647737,
-0.0902575329,
-0.5061046481,
0.0558814742,
0.0839016736,
0.1062869281,
-0.3780879378,
0.0992342234,
-0.0033382811,
-0.0043096952,
-0.3259800673,
-0.2981351912,
-0.2288902253,
0.2228070349,
-0.1811425388,
0.0771881342,
-0.4039684236,
-0.2522764802,
0.2050727606,
0.4162216485,
-0.1177444085,
-0.0761366487,
0.010839574,
-0.0346155465,
-0.2344280928,
0.1761686206,
-0.222017318,
0.2306603789,
-0.0319640413,
0.5045983195,
-0.0291064456,
-0.2213939279,
-0.0890686885,
-0.0217308737,
0.0839633644,
-0.0078425631,
-0.044163242,
-0.2998933792,
0.2466678619,
0.0749232024,
-0.2632142305,
-0.0676851645,
-0.0939519331,
0.1211104244,
-0.227823168,
0.2215077132,
-0.2173947543,
-0.3651024401,
0.0271582548,
0.0193312131,
0.3086773753,
-0.0630926192,
0.4208227694,
0.1143969446,
0.1730183959,
0.1613353044,
0.1591763794,
-0.1314438283,
-0.2680213749,
0.0831864774,
0.2267844081,
0.3627383709,
0.0937217921,
0.0347716659,
0.2980124354,
0.3901304901,
0.2124052346,
0.3999935985,
-0.1159488261,
0.6762602329,
-0.3200044036,
0.0842917711,
0.2451202422,
-0.2553783655,
-0.2924264371,
0.1869048178,
-0.1663641632,
-0.0773257613,
0.3296631873,
0.5182707906,
0.3120290041,
0.0870155022,
0.3410930037,
0.3062553406,
0.0090269931,
-0.0312470607,
-0.405068934,
-0.0582716987,
0.2639192045,
0.3804078102,
-0.3354528248,
0.101740703,
-0.0401815772,
-0.3298805356,
0.6009739637,
-0.476105541,
-0.1217621565,
0.0680583566,
0.361573875,
0.3393868208,
0.2328696698,
0.2761103511,
0.1495421231,
0.1626260579,
0.0960144401,
0.0987889394,
0.1701553166,
-0.4183503091,
0.2156295925,
-0.0257501453,
-0.2181930244,
0.1078815162,
-0.0609780252,
0.1500250548,
-0.0456763245,
-0.1998731494,
-0.1568868756,
0.5427840352,
-0.6157976389,
0.0279458687,
-0.248897016,
-0.1560834944,
0.0070150904,
-0.2134258449,
-0.0342435353,
0.1429588348,
0.0524965525,
-0.3868666887,
-0.0538335219,
0.102861084,
0.1266251504,
-0.1876762211,
0.5111069679,
-0.1136960983,
-0.0370366834,
0.2962220609,
0.0449534059,
-0.15126504,
0.1090167761,
-0.1937615573,
-0.0018786415,
0.4852040112,
0.3487839699,
0.2458341271,
-0.0214935839,
-0.2332082689,
0.0470291078,
-0.0406503305,
-0.079387024,
0.2275252491,
0.079944022,
0.130253002,
0.4091726542,
-0.0333355777,
-0.3332441747,
0.2324642241,
0.1857772619,
-0.2031296641,
-0.4314083755,
0.2710415721,
0.3516988158,
-0.0368977077,
-0.3497086763,
-0.522008419,
0.2360267788,
0.3185988069,
0.1883932352,
-0.0716536641,
-0.0276509151,
-0.2472812533,
0.1691095531,
0.0565534979,
-0.0483720265,
0.1000481844,
0.1766417921,
-0.214544788,
-0.2067900896,
-0.2552963495,
-0.1363972127,
0.428645879,
-0.0443387665,
0.309440732,
0.1777623594,
0.2771869302,
-0.1247248203,
-0.1249762028,
0.2887520194,
0.0088402331,
0.0416108891,
-0.1089352667,
-0.03623835,
0.1931091249,
-0.0469497964,
0.3649182916,
0.1957944334,
-0.325090766,
0.0198443085,
-0.0984711498,
-0.1214953735,
-0.078978613,
0.1210054755,
-0.150549829,
0.117400378,
0.0439469814,
-0.052580554,
-0.1851365566,
-0.0862714499,
-0.1575877219,
-0.0794771016,
-0.2974507809,
-0.1662346572,
-0.2460685521,
-0.1250372827,
-0.1196447536,
0.0043306984,
0.0005500466,
-0.0106873699,
-0.0404875614,
-0.2826740444,
-0.1588368416,
0.0607949346,
-0.2936335206,
-0.2167017609,
-0.1739189327,
0.2281412482,
-0.0243998468,
0.0930587798,
-0.1156691834,
0.0667520165,
0.1222409755,
-0.0957002044,
-0.1543300748,
-0.0534615964,
-0.2331427634,
0.2917098403,
0.1491723955,
0.0468313806,
-0.0794369131,
-0.4122961164,
-0.0143968826,
0.4969035089,
-0.5218710899,
-0.0407989882,
-0.3583914638,
0.2859595418,
-0.3150940537,
0.4582990706,
0.0567066781,
-0.2462485135,
-0.1380135864,
0.364482671,
0.174510017,
0.3875305951,
-0.0617132038,
0.0549773537,
-0.0879176408,
0.267544955,
-0.1149757057,
0.5162413716,
0.3272316158,
-0.2136982232,
-0.0478193611,
-0.262396425,
0.1159516424,
0.0527697653,
-0.1398819387,
0.2965241671,
0.08347781,
-0.3149954677,
0.1665280759,
-0.2887442112,
-0.4117944837,
0.0320427418,
-0.052759815,
0.1982455254,
-0.2443106472,
0.3169921339,
0.0489503853,
0.4910989106,
-0.1780501604,
0.2910963595,
-0.2383606136,
-0.1767041385,
0.1975147724,
0.2727530003,
0.244900763,
-0.1675577164,
0.0264964402,
-0.5409095287,
-0.421677649,
0.2834407687,
0.1674793661,
0.2352837026,
0.2791199088,
-0.1008349881,
0.5258054137,
-0.1562114209,
0.7999857664,
0.0206832271,
-0.3363375962,
0.3844911158,
-0.1618196666,
0.0528763086,
-0.2177933156,
-0.1827092618,
-0.0659896284,
0.233773917,
0.4407469928,
-0.0931774676,
-0.2479647696,
0.6446050406,
0.0670878738,
-0.1472482681,
-0.3441519141,
-0.1861819327,
-0.3543057442,
-0.0412188545,
0.767854929,
-0.1216908172,
0.1556898803,
0.1822192967,
-0.0512347631,
-0.3818883598,
0.1598659158,
0.2386750579,
-0.005119741,
0.0505827777,
0.4557840526,
0.4348104894,
0.0714177042,
0.000731538,
0.11927405,
-0.0369113646,
-0.3043969274,
0.0731522888,
-0.1888462156,
-0.2556852102,
0.3799423575,
0.700673759,
0.1868768781,
0.2484071106,
-0.2102308869,
0.3775886297,
-0.1914454848,
0.0245311707,
0.4383128285,
-0.0020623617,
-0.1787723899,
-0.5383265615,
0.3112787008,
0.2034227699,
0.0733026266,
0.0608615763,
-0.0757306963,
-0.0163801294,
0.3021711707,
0.1249999553,
0.983823359,
-0.0269194804,
0.1929831952,
0.5063084364,
0.0048407093,
-0.2439047992,
-0.6487342119,
0.3692771494,
-0.332921207,
-0.224152863,
0.1931167245,
-0.1011414081,
-0.0847682953,
0.0735342056,
-0.0393424518,
0.0991453677,
-0.0472757295,
-0.0862561613,
-0.2586017251,
0.3895539641,
0.3151937425,
-0.4278397262,
0.0248835608,
0.0013510659,
0.2714570165,
-0.0987159535,
0.1278158873,
-0.1633998603,
-0.1108864546,
0.0184412077,
0.1251736879,
-0.0791134462,
-0.1283783466,
0.0130585097,
-0.0487736166,
-0.0873112977,
-0.2329256237,
-0.3244179785,
0.4604190886,
-0.0299461968,
0.0995342061,
0.0815838799,
-0.0991101265,
0.0721637011,
-0.0867691487,
-0.4970834553,
0.2265412658,
0.0808125585,
-0.1736777276,
0.1493705809,
0.0787264109,
-0.3227707148,
-0.1460987329,
0.1744303405,
0.0205770656,
0.0075484142,
-0.0367378667,
0.3179991543,
-0.2626373172,
-0.2335653752,
0.020059783,
0.0920770317,
-0.4317518771,
0.5605172515,
-0.3023820519,
-0.3800684214,
-0.0546554178,
0.0166958384,
0.3058081269,
0.0560380369,
0.2623710632,
-0.0891196281,
-0.3048815131,
-0.1546770036,
-0.302428782,
0.0612832271,
0.0386250988,
0.0938880295,
0.3024204671,
-0.0061313659,
0.0253996179,
-0.2326646149,
-0.322717607,
-0.141769588,
-0.3823908567,
0.1145998687,
-0.3576403856,
-0.1850683689,
0.2572281957,
0.3836848736,
0.036017634,
0.2342237383,
-0.4448953271,
0.2590478957,
-0.2176698148,
-0.0653394014,
-0.0312395431,
0.2600190639,
-0.0327088535,
-0.2574275434,
0.1754403114,
0.216270119,
0.1199889854,
0.1412032098,
0.0373653807,
-0.1117986739,
0.1029489934,
0.1834249049,
-0.1107472628,
0.1684505045,
0.0811558217,
-0.1483062059,
-0.3009883165,
-0.2652986348,
0.1343660951,
-0.110703364,
-0.025855042,
-0.1303594559,
-0.1217091084,
-0.1124878824,
0.3323766887,
0.273825258,
0.204004705,
0.283308506,
-0.0734990016,
0.0767017305,
-0.2428331971,
-0.2653931975,
-0.0510372035,
0.1903245151,
0.0616438314,
0.0863676816,
-0.091865845,
-0.1731874794,
-0.3799477816,
-0.0381177552,
0.031768769,
0.4498935342,
0.0424941368,
-0.288366735,
0.1852962673,
0.0379372723,
-0.279720515,
-0.1952765882,
0.3624272048,
-0.4507014155,
0.2002285123,
0.4017176628,
0.264575094,
0.165723592,
-0.4832744896,
0.0937633291,
-0.2345170975,
0.0963053331,
-0.4337074161,
-0.0904509723,
0.3514744341,
-0.1948998272,
0.2041253299,
0.3052140176,
0.2311197519,
0.608917892,
0.0314239822,
0.2752898932,
0.1878772229,
0.2133275419,
-0.321703732,
-0.1798363924,
0.2906687558,
0.2322686911,
-0.031773366,
-0.207844764,
0.0090947673,
0.2347344905,
0.2440356463,
-0.5169644952,
-0.2611280978,
0.1630212218,
-0.1220196411,
-0.1281809658,
0.4117490649,
0.056770578,
-0.2780817747,
0.2270265967,
0.0776640698,
0.1923735887,
-0.12724787,
0.200874269,
0.2934534252,
0.2212006599,
-0.0231135469,
0.0910241455,
0.4337711036,
-0.3367398977,
-0.2079152465,
-0.0111510456,
-0.0027164277,
0.0235891603,
-0.1512227803,
0.2809454203,
0.2448254377,
-0.0555030257,
0.2687212825,
-0.0504412428,
-0.0088712834,
0.0438045114,
-0.0344004743,
-0.1084132344,
-0.1003934816,
0.1006172895,
-0.0908769071,
-0.12853387,
-0.1207235307,
-0.2426326871,
0.2026134133,
-0.1804250181,
0.023068646,
0.3459427953,
-0.097540006,
-0.3948053718,
0.0952415317,
-0.283303082,
0.0691806301,
0.1062702984,
-0.35660097,
-0.0891359076,
0.2603065968,
-0.0016339011,
-0.4257489145,
0.5468894243,
0.1724049449,
0.1286818981,
-0.3299409449,
-0.0014341325,
-0.3207880855,
-0.0345096029,
-0.5890922546,
0.112635538,
0.1176836789,
0.4403542876,
0.073925823,
-0.0703548416,
0.4031083882,
-0.4079710841,
0.0992394984,
0.3735488653,
-0.1734417975,
-0.0306228567,
-0.4397856295,
-0.0738478824,
0.0422837138,
-0.3743225038,
0.2847958505,
-0.1282065511,
-0.0147695504,
0.192371577,
-0.0202696919,
0.1226511821,
0.0626825988,
0.529878974,
-0.0979443267,
0.0000545271,
-0.0964538679,
0.008635208,
-0.2321902663,
0.1219587475,
-0.2070783675,
0.0085760355,
-0.0218881518,
0.1733753383,
-0.2073741853,
-0.3919602334,
-0.1815344989,
0.4176574349,
0.3126300573,
-0.4186963737,
0.1980271637,
0.1526591927,
-0.1558283567,
0.4795942008,
0.1503627598,
0.22828421,
0.1467330605,
-0.034051232,
-0.3561269641,
-0.1054199785,
0.6236685514,
-0.1882941574,
-0.0293614641,
-0.3494382203,
0.2549013793,
0.4437919259,
0.5510438085,
-0.2645766139,
0.086238116,
0.121943526,
0.0535738505,
-0.2103942186,
0.5777597427,
0.1868615597,
0.0147709623,
-0.0737834573,
-0.2648073733,
-0.0630889311,
-0.0029668435,
-0.3532100618,
-0.2814308703
] |
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.49882406,
-0.2682778239,
-0.0245006736,
0.128228277,
0.0594398603,
0.2077842206,
0.1214628518,
0.4241297245,
0.291742146,
0.2924967408,
-0.1188250929,
0.1883152723,
0.1372129172,
0.0858210027,
-0.1362565756,
0.1750426739,
0.2370327115,
0.0853343457,
0.2607979178,
-0.1344141364,
-0.3274792731,
-0.3090644181,
-0.1589121073,
-0.2578624189,
-0.4006921649,
-0.0958188921,
-0.2436217368,
-0.0820505768,
0.1982477158,
-0.4729164839,
-0.1375326514,
0.1398428977,
0.3402582407,
0.2582925856,
-0.0001220497,
0.0556765273,
0.2280079424,
0.0654630885,
-0.2229974568,
0.6411960125,
0.3400722742,
-0.0694884509,
-0.1751100719,
-0.3107711375,
-0.1455551237,
-0.111042127,
0.0810792744,
-0.0469298586,
-0.1663650125,
0.1943014562,
0.0266240463,
-0.0582866669,
0.0522548854,
-0.0153998528,
0.4025117457,
-0.0755913556,
-0.0691774189,
0.317471087,
0.1635125726,
-0.072238043,
0.0997431278,
0.4481078684,
0.1206413805,
-0.226777032,
0.1089041457,
0.2051614374,
0.7838162184,
0.0224399716,
0.0652681589,
0.1526694596,
0.0153403673,
-0.0905529708,
-0.443008393,
-0.1029035673,
0.4257143438,
-0.6180592179,
-0.0674015656,
-0.0837423205,
-0.1014747322,
0.0538602658,
0.1745852381,
-0.0302297864,
0.0363180265,
0.0474507548,
0.174899742,
0.1653568596,
0.3874710798,
-0.059902437,
0.5584336519,
0.0424473844,
-0.116854243,
0.0448822752,
-0.0920772031,
0.0121964924,
-0.6050299406,
0.0880847722,
-0.0309159234,
-0.0993313715,
-0.0926872939,
0.0178017914,
-0.3694863915,
0.0061656032,
0.2365597636,
0.0033365716,
-0.1830647737,
-0.0902575329,
-0.5061046481,
0.0558814742,
0.0839016736,
0.1062869281,
-0.3780879378,
0.0992342234,
-0.0033382811,
-0.0043096952,
-0.3259800673,
-0.2981351912,
-0.2288902253,
0.2228070349,
-0.1811425388,
0.0771881342,
-0.4039684236,
-0.2522764802,
0.2050727606,
0.4162216485,
-0.1177444085,
-0.0761366487,
0.010839574,
-0.0346155465,
-0.2344280928,
0.1761686206,
-0.222017318,
0.2306603789,
-0.0319640413,
0.5045983195,
-0.0291064456,
-0.2213939279,
-0.0890686885,
-0.0217308737,
0.0839633644,
-0.0078425631,
-0.044163242,
-0.2998933792,
0.2466678619,
0.0749232024,
-0.2632142305,
-0.0676851645,
-0.0939519331,
0.1211104244,
-0.227823168,
0.2215077132,
-0.2173947543,
-0.3651024401,
0.0271582548,
0.0193312131,
0.3086773753,
-0.0630926192,
0.4208227694,
0.1143969446,
0.1730183959,
0.1613353044,
0.1591763794,
-0.1314438283,
-0.2680213749,
0.0831864774,
0.2267844081,
0.3627383709,
0.0937217921,
0.0347716659,
0.2980124354,
0.3901304901,
0.2124052346,
0.3999935985,
-0.1159488261,
0.6762602329,
-0.3200044036,
0.0842917711,
0.2451202422,
-0.2553783655,
-0.2924264371,
0.1869048178,
-0.1663641632,
-0.0773257613,
0.3296631873,
0.5182707906,
0.3120290041,
0.0870155022,
0.3410930037,
0.3062553406,
0.0090269931,
-0.0312470607,
-0.405068934,
-0.0582716987,
0.2639192045,
0.3804078102,
-0.3354528248,
0.101740703,
-0.0401815772,
-0.3298805356,
0.6009739637,
-0.476105541,
-0.1217621565,
0.0680583566,
0.361573875,
0.3393868208,
0.2328696698,
0.2761103511,
0.1495421231,
0.1626260579,
0.0960144401,
0.0987889394,
0.1701553166,
-0.4183503091,
0.2156295925,
-0.0257501453,
-0.2181930244,
0.1078815162,
-0.0609780252,
0.1500250548,
-0.0456763245,
-0.1998731494,
-0.1568868756,
0.5427840352,
-0.6157976389,
0.0279458687,
-0.248897016,
-0.1560834944,
0.0070150904,
-0.2134258449,
-0.0342435353,
0.1429588348,
0.0524965525,
-0.3868666887,
-0.0538335219,
0.102861084,
0.1266251504,
-0.1876762211,
0.5111069679,
-0.1136960983,
-0.0370366834,
0.2962220609,
0.0449534059,
-0.15126504,
0.1090167761,
-0.1937615573,
-0.0018786415,
0.4852040112,
0.3487839699,
0.2458341271,
-0.0214935839,
-0.2332082689,
0.0470291078,
-0.0406503305,
-0.079387024,
0.2275252491,
0.079944022,
0.130253002,
0.4091726542,
-0.0333355777,
-0.3332441747,
0.2324642241,
0.1857772619,
-0.2031296641,
-0.4314083755,
0.2710415721,
0.3516988158,
-0.0368977077,
-0.3497086763,
-0.522008419,
0.2360267788,
0.3185988069,
0.1883932352,
-0.0716536641,
-0.0276509151,
-0.2472812533,
0.1691095531,
0.0565534979,
-0.0483720265,
0.1000481844,
0.1766417921,
-0.214544788,
-0.2067900896,
-0.2552963495,
-0.1363972127,
0.428645879,
-0.0443387665,
0.309440732,
0.1777623594,
0.2771869302,
-0.1247248203,
-0.1249762028,
0.2887520194,
0.0088402331,
0.0416108891,
-0.1089352667,
-0.03623835,
0.1931091249,
-0.0469497964,
0.3649182916,
0.1957944334,
-0.325090766,
0.0198443085,
-0.0984711498,
-0.1214953735,
-0.078978613,
0.1210054755,
-0.150549829,
0.117400378,
0.0439469814,
-0.052580554,
-0.1851365566,
-0.0862714499,
-0.1575877219,
-0.0794771016,
-0.2974507809,
-0.1662346572,
-0.2460685521,
-0.1250372827,
-0.1196447536,
0.0043306984,
0.0005500466,
-0.0106873699,
-0.0404875614,
-0.2826740444,
-0.1588368416,
0.0607949346,
-0.2936335206,
-0.2167017609,
-0.1739189327,
0.2281412482,
-0.0243998468,
0.0930587798,
-0.1156691834,
0.0667520165,
0.1222409755,
-0.0957002044,
-0.1543300748,
-0.0534615964,
-0.2331427634,
0.2917098403,
0.1491723955,
0.0468313806,
-0.0794369131,
-0.4122961164,
-0.0143968826,
0.4969035089,
-0.5218710899,
-0.0407989882,
-0.3583914638,
0.2859595418,
-0.3150940537,
0.4582990706,
0.0567066781,
-0.2462485135,
-0.1380135864,
0.364482671,
0.174510017,
0.3875305951,
-0.0617132038,
0.0549773537,
-0.0879176408,
0.267544955,
-0.1149757057,
0.5162413716,
0.3272316158,
-0.2136982232,
-0.0478193611,
-0.262396425,
0.1159516424,
0.0527697653,
-0.1398819387,
0.2965241671,
0.08347781,
-0.3149954677,
0.1665280759,
-0.2887442112,
-0.4117944837,
0.0320427418,
-0.052759815,
0.1982455254,
-0.2443106472,
0.3169921339,
0.0489503853,
0.4910989106,
-0.1780501604,
0.2910963595,
-0.2383606136,
-0.1767041385,
0.1975147724,
0.2727530003,
0.244900763,
-0.1675577164,
0.0264964402,
-0.5409095287,
-0.421677649,
0.2834407687,
0.1674793661,
0.2352837026,
0.2791199088,
-0.1008349881,
0.5258054137,
-0.1562114209,
0.7999857664,
0.0206832271,
-0.3363375962,
0.3844911158,
-0.1618196666,
0.0528763086,
-0.2177933156,
-0.1827092618,
-0.0659896284,
0.233773917,
0.4407469928,
-0.0931774676,
-0.2479647696,
0.6446050406,
0.0670878738,
-0.1472482681,
-0.3441519141,
-0.1861819327,
-0.3543057442,
-0.0412188545,
0.767854929,
-0.1216908172,
0.1556898803,
0.1822192967,
-0.0512347631,
-0.3818883598,
0.1598659158,
0.2386750579,
-0.005119741,
0.0505827777,
0.4557840526,
0.4348104894,
0.0714177042,
0.000731538,
0.11927405,
-0.0369113646,
-0.3043969274,
0.0731522888,
-0.1888462156,
-0.2556852102,
0.3799423575,
0.700673759,
0.1868768781,
0.2484071106,
-0.2102308869,
0.3775886297,
-0.1914454848,
0.0245311707,
0.4383128285,
-0.0020623617,
-0.1787723899,
-0.5383265615,
0.3112787008,
0.2034227699,
0.0733026266,
0.0608615763,
-0.0757306963,
-0.0163801294,
0.3021711707,
0.1249999553,
0.983823359,
-0.0269194804,
0.1929831952,
0.5063084364,
0.0048407093,
-0.2439047992,
-0.6487342119,
0.3692771494,
-0.332921207,
-0.224152863,
0.1931167245,
-0.1011414081,
-0.0847682953,
0.0735342056,
-0.0393424518,
0.0991453677,
-0.0472757295,
-0.0862561613,
-0.2586017251,
0.3895539641,
0.3151937425,
-0.4278397262,
0.0248835608,
0.0013510659,
0.2714570165,
-0.0987159535,
0.1278158873,
-0.1633998603,
-0.1108864546,
0.0184412077,
0.1251736879,
-0.0791134462,
-0.1283783466,
0.0130585097,
-0.0487736166,
-0.0873112977,
-0.2329256237,
-0.3244179785,
0.4604190886,
-0.0299461968,
0.0995342061,
0.0815838799,
-0.0991101265,
0.0721637011,
-0.0867691487,
-0.4970834553,
0.2265412658,
0.0808125585,
-0.1736777276,
0.1493705809,
0.0787264109,
-0.3227707148,
-0.1460987329,
0.1744303405,
0.0205770656,
0.0075484142,
-0.0367378667,
0.3179991543,
-0.2626373172,
-0.2335653752,
0.020059783,
0.0920770317,
-0.4317518771,
0.5605172515,
-0.3023820519,
-0.3800684214,
-0.0546554178,
0.0166958384,
0.3058081269,
0.0560380369,
0.2623710632,
-0.0891196281,
-0.3048815131,
-0.1546770036,
-0.302428782,
0.0612832271,
0.0386250988,
0.0938880295,
0.3024204671,
-0.0061313659,
0.0253996179,
-0.2326646149,
-0.322717607,
-0.141769588,
-0.3823908567,
0.1145998687,
-0.3576403856,
-0.1850683689,
0.2572281957,
0.3836848736,
0.036017634,
0.2342237383,
-0.4448953271,
0.2590478957,
-0.2176698148,
-0.0653394014,
-0.0312395431,
0.2600190639,
-0.0327088535,
-0.2574275434,
0.1754403114,
0.216270119,
0.1199889854,
0.1412032098,
0.0373653807,
-0.1117986739,
0.1029489934,
0.1834249049,
-0.1107472628,
0.1684505045,
0.0811558217,
-0.1483062059,
-0.3009883165,
-0.2652986348,
0.1343660951,
-0.110703364,
-0.025855042,
-0.1303594559,
-0.1217091084,
-0.1124878824,
0.3323766887,
0.273825258,
0.204004705,
0.283308506,
-0.0734990016,
0.0767017305,
-0.2428331971,
-0.2653931975,
-0.0510372035,
0.1903245151,
0.0616438314,
0.0863676816,
-0.091865845,
-0.1731874794,
-0.3799477816,
-0.0381177552,
0.031768769,
0.4498935342,
0.0424941368,
-0.288366735,
0.1852962673,
0.0379372723,
-0.279720515,
-0.1952765882,
0.3624272048,
-0.4507014155,
0.2002285123,
0.4017176628,
0.264575094,
0.165723592,
-0.4832744896,
0.0937633291,
-0.2345170975,
0.0963053331,
-0.4337074161,
-0.0904509723,
0.3514744341,
-0.1948998272,
0.2041253299,
0.3052140176,
0.2311197519,
0.608917892,
0.0314239822,
0.2752898932,
0.1878772229,
0.2133275419,
-0.321703732,
-0.1798363924,
0.2906687558,
0.2322686911,
-0.031773366,
-0.207844764,
0.0090947673,
0.2347344905,
0.2440356463,
-0.5169644952,
-0.2611280978,
0.1630212218,
-0.1220196411,
-0.1281809658,
0.4117490649,
0.056770578,
-0.2780817747,
0.2270265967,
0.0776640698,
0.1923735887,
-0.12724787,
0.200874269,
0.2934534252,
0.2212006599,
-0.0231135469,
0.0910241455,
0.4337711036,
-0.3367398977,
-0.2079152465,
-0.0111510456,
-0.0027164277,
0.0235891603,
-0.1512227803,
0.2809454203,
0.2448254377,
-0.0555030257,
0.2687212825,
-0.0504412428,
-0.0088712834,
0.0438045114,
-0.0344004743,
-0.1084132344,
-0.1003934816,
0.1006172895,
-0.0908769071,
-0.12853387,
-0.1207235307,
-0.2426326871,
0.2026134133,
-0.1804250181,
0.023068646,
0.3459427953,
-0.097540006,
-0.3948053718,
0.0952415317,
-0.283303082,
0.0691806301,
0.1062702984,
-0.35660097,
-0.0891359076,
0.2603065968,
-0.0016339011,
-0.4257489145,
0.5468894243,
0.1724049449,
0.1286818981,
-0.3299409449,
-0.0014341325,
-0.3207880855,
-0.0345096029,
-0.5890922546,
0.112635538,
0.1176836789,
0.4403542876,
0.073925823,
-0.0703548416,
0.4031083882,
-0.4079710841,
0.0992394984,
0.3735488653,
-0.1734417975,
-0.0306228567,
-0.4397856295,
-0.0738478824,
0.0422837138,
-0.3743225038,
0.2847958505,
-0.1282065511,
-0.0147695504,
0.192371577,
-0.0202696919,
0.1226511821,
0.0626825988,
0.529878974,
-0.0979443267,
0.0000545271,
-0.0964538679,
0.008635208,
-0.2321902663,
0.1219587475,
-0.2070783675,
0.0085760355,
-0.0218881518,
0.1733753383,
-0.2073741853,
-0.3919602334,
-0.1815344989,
0.4176574349,
0.3126300573,
-0.4186963737,
0.1980271637,
0.1526591927,
-0.1558283567,
0.4795942008,
0.1503627598,
0.22828421,
0.1467330605,
-0.034051232,
-0.3561269641,
-0.1054199785,
0.6236685514,
-0.1882941574,
-0.0293614641,
-0.3494382203,
0.2549013793,
0.4437919259,
0.5510438085,
-0.2645766139,
0.086238116,
0.121943526,
0.0535738505,
-0.2103942186,
0.5777597427,
0.1868615597,
0.0147709623,
-0.0737834573,
-0.2648073733,
-0.0630889311,
-0.0029668435,
-0.3532100618,
-0.2814308703
] |
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.49882406,
-0.2682778239,
-0.0245006736,
0.128228277,
0.0594398603,
0.2077842206,
0.1214628518,
0.4241297245,
0.291742146,
0.2924967408,
-0.1188250929,
0.1883152723,
0.1372129172,
0.0858210027,
-0.1362565756,
0.1750426739,
0.2370327115,
0.0853343457,
0.2607979178,
-0.1344141364,
-0.3274792731,
-0.3090644181,
-0.1589121073,
-0.2578624189,
-0.4006921649,
-0.0958188921,
-0.2436217368,
-0.0820505768,
0.1982477158,
-0.4729164839,
-0.1375326514,
0.1398428977,
0.3402582407,
0.2582925856,
-0.0001220497,
0.0556765273,
0.2280079424,
0.0654630885,
-0.2229974568,
0.6411960125,
0.3400722742,
-0.0694884509,
-0.1751100719,
-0.3107711375,
-0.1455551237,
-0.111042127,
0.0810792744,
-0.0469298586,
-0.1663650125,
0.1943014562,
0.0266240463,
-0.0582866669,
0.0522548854,
-0.0153998528,
0.4025117457,
-0.0755913556,
-0.0691774189,
0.317471087,
0.1635125726,
-0.072238043,
0.0997431278,
0.4481078684,
0.1206413805,
-0.226777032,
0.1089041457,
0.2051614374,
0.7838162184,
0.0224399716,
0.0652681589,
0.1526694596,
0.0153403673,
-0.0905529708,
-0.443008393,
-0.1029035673,
0.4257143438,
-0.6180592179,
-0.0674015656,
-0.0837423205,
-0.1014747322,
0.0538602658,
0.1745852381,
-0.0302297864,
0.0363180265,
0.0474507548,
0.174899742,
0.1653568596,
0.3874710798,
-0.059902437,
0.5584336519,
0.0424473844,
-0.116854243,
0.0448822752,
-0.0920772031,
0.0121964924,
-0.6050299406,
0.0880847722,
-0.0309159234,
-0.0993313715,
-0.0926872939,
0.0178017914,
-0.3694863915,
0.0061656032,
0.2365597636,
0.0033365716,
-0.1830647737,
-0.0902575329,
-0.5061046481,
0.0558814742,
0.0839016736,
0.1062869281,
-0.3780879378,
0.0992342234,
-0.0033382811,
-0.0043096952,
-0.3259800673,
-0.2981351912,
-0.2288902253,
0.2228070349,
-0.1811425388,
0.0771881342,
-0.4039684236,
-0.2522764802,
0.2050727606,
0.4162216485,
-0.1177444085,
-0.0761366487,
0.010839574,
-0.0346155465,
-0.2344280928,
0.1761686206,
-0.222017318,
0.2306603789,
-0.0319640413,
0.5045983195,
-0.0291064456,
-0.2213939279,
-0.0890686885,
-0.0217308737,
0.0839633644,
-0.0078425631,
-0.044163242,
-0.2998933792,
0.2466678619,
0.0749232024,
-0.2632142305,
-0.0676851645,
-0.0939519331,
0.1211104244,
-0.227823168,
0.2215077132,
-0.2173947543,
-0.3651024401,
0.0271582548,
0.0193312131,
0.3086773753,
-0.0630926192,
0.4208227694,
0.1143969446,
0.1730183959,
0.1613353044,
0.1591763794,
-0.1314438283,
-0.2680213749,
0.0831864774,
0.2267844081,
0.3627383709,
0.0937217921,
0.0347716659,
0.2980124354,
0.3901304901,
0.2124052346,
0.3999935985,
-0.1159488261,
0.6762602329,
-0.3200044036,
0.0842917711,
0.2451202422,
-0.2553783655,
-0.2924264371,
0.1869048178,
-0.1663641632,
-0.0773257613,
0.3296631873,
0.5182707906,
0.3120290041,
0.0870155022,
0.3410930037,
0.3062553406,
0.0090269931,
-0.0312470607,
-0.405068934,
-0.0582716987,
0.2639192045,
0.3804078102,
-0.3354528248,
0.101740703,
-0.0401815772,
-0.3298805356,
0.6009739637,
-0.476105541,
-0.1217621565,
0.0680583566,
0.361573875,
0.3393868208,
0.2328696698,
0.2761103511,
0.1495421231,
0.1626260579,
0.0960144401,
0.0987889394,
0.1701553166,
-0.4183503091,
0.2156295925,
-0.0257501453,
-0.2181930244,
0.1078815162,
-0.0609780252,
0.1500250548,
-0.0456763245,
-0.1998731494,
-0.1568868756,
0.5427840352,
-0.6157976389,
0.0279458687,
-0.248897016,
-0.1560834944,
0.0070150904,
-0.2134258449,
-0.0342435353,
0.1429588348,
0.0524965525,
-0.3868666887,
-0.0538335219,
0.102861084,
0.1266251504,
-0.1876762211,
0.5111069679,
-0.1136960983,
-0.0370366834,
0.2962220609,
0.0449534059,
-0.15126504,
0.1090167761,
-0.1937615573,
-0.0018786415,
0.4852040112,
0.3487839699,
0.2458341271,
-0.0214935839,
-0.2332082689,
0.0470291078,
-0.0406503305,
-0.079387024,
0.2275252491,
0.079944022,
0.130253002,
0.4091726542,
-0.0333355777,
-0.3332441747,
0.2324642241,
0.1857772619,
-0.2031296641,
-0.4314083755,
0.2710415721,
0.3516988158,
-0.0368977077,
-0.3497086763,
-0.522008419,
0.2360267788,
0.3185988069,
0.1883932352,
-0.0716536641,
-0.0276509151,
-0.2472812533,
0.1691095531,
0.0565534979,
-0.0483720265,
0.1000481844,
0.1766417921,
-0.214544788,
-0.2067900896,
-0.2552963495,
-0.1363972127,
0.428645879,
-0.0443387665,
0.309440732,
0.1777623594,
0.2771869302,
-0.1247248203,
-0.1249762028,
0.2887520194,
0.0088402331,
0.0416108891,
-0.1089352667,
-0.03623835,
0.1931091249,
-0.0469497964,
0.3649182916,
0.1957944334,
-0.325090766,
0.0198443085,
-0.0984711498,
-0.1214953735,
-0.078978613,
0.1210054755,
-0.150549829,
0.117400378,
0.0439469814,
-0.052580554,
-0.1851365566,
-0.0862714499,
-0.1575877219,
-0.0794771016,
-0.2974507809,
-0.1662346572,
-0.2460685521,
-0.1250372827,
-0.1196447536,
0.0043306984,
0.0005500466,
-0.0106873699,
-0.0404875614,
-0.2826740444,
-0.1588368416,
0.0607949346,
-0.2936335206,
-0.2167017609,
-0.1739189327,
0.2281412482,
-0.0243998468,
0.0930587798,
-0.1156691834,
0.0667520165,
0.1222409755,
-0.0957002044,
-0.1543300748,
-0.0534615964,
-0.2331427634,
0.2917098403,
0.1491723955,
0.0468313806,
-0.0794369131,
-0.4122961164,
-0.0143968826,
0.4969035089,
-0.5218710899,
-0.0407989882,
-0.3583914638,
0.2859595418,
-0.3150940537,
0.4582990706,
0.0567066781,
-0.2462485135,
-0.1380135864,
0.364482671,
0.174510017,
0.3875305951,
-0.0617132038,
0.0549773537,
-0.0879176408,
0.267544955,
-0.1149757057,
0.5162413716,
0.3272316158,
-0.2136982232,
-0.0478193611,
-0.262396425,
0.1159516424,
0.0527697653,
-0.1398819387,
0.2965241671,
0.08347781,
-0.3149954677,
0.1665280759,
-0.2887442112,
-0.4117944837,
0.0320427418,
-0.052759815,
0.1982455254,
-0.2443106472,
0.3169921339,
0.0489503853,
0.4910989106,
-0.1780501604,
0.2910963595,
-0.2383606136,
-0.1767041385,
0.1975147724,
0.2727530003,
0.244900763,
-0.1675577164,
0.0264964402,
-0.5409095287,
-0.421677649,
0.2834407687,
0.1674793661,
0.2352837026,
0.2791199088,
-0.1008349881,
0.5258054137,
-0.1562114209,
0.7999857664,
0.0206832271,
-0.3363375962,
0.3844911158,
-0.1618196666,
0.0528763086,
-0.2177933156,
-0.1827092618,
-0.0659896284,
0.233773917,
0.4407469928,
-0.0931774676,
-0.2479647696,
0.6446050406,
0.0670878738,
-0.1472482681,
-0.3441519141,
-0.1861819327,
-0.3543057442,
-0.0412188545,
0.767854929,
-0.1216908172,
0.1556898803,
0.1822192967,
-0.0512347631,
-0.3818883598,
0.1598659158,
0.2386750579,
-0.005119741,
0.0505827777,
0.4557840526,
0.4348104894,
0.0714177042,
0.000731538,
0.11927405,
-0.0369113646,
-0.3043969274,
0.0731522888,
-0.1888462156,
-0.2556852102,
0.3799423575,
0.700673759,
0.1868768781,
0.2484071106,
-0.2102308869,
0.3775886297,
-0.1914454848,
0.0245311707,
0.4383128285,
-0.0020623617,
-0.1787723899,
-0.5383265615,
0.3112787008,
0.2034227699,
0.0733026266,
0.0608615763,
-0.0757306963,
-0.0163801294,
0.3021711707,
0.1249999553,
0.983823359,
-0.0269194804,
0.1929831952,
0.5063084364,
0.0048407093,
-0.2439047992,
-0.6487342119,
0.3692771494,
-0.332921207,
-0.224152863,
0.1931167245,
-0.1011414081,
-0.0847682953,
0.0735342056,
-0.0393424518,
0.0991453677,
-0.0472757295,
-0.0862561613,
-0.2586017251,
0.3895539641,
0.3151937425,
-0.4278397262,
0.0248835608,
0.0013510659,
0.2714570165,
-0.0987159535,
0.1278158873,
-0.1633998603,
-0.1108864546,
0.0184412077,
0.1251736879,
-0.0791134462,
-0.1283783466,
0.0130585097,
-0.0487736166,
-0.0873112977,
-0.2329256237,
-0.3244179785,
0.4604190886,
-0.0299461968,
0.0995342061,
0.0815838799,
-0.0991101265,
0.0721637011,
-0.0867691487,
-0.4970834553,
0.2265412658,
0.0808125585,
-0.1736777276,
0.1493705809,
0.0787264109,
-0.3227707148,
-0.1460987329,
0.1744303405,
0.0205770656,
0.0075484142,
-0.0367378667,
0.3179991543,
-0.2626373172,
-0.2335653752,
0.020059783,
0.0920770317,
-0.4317518771,
0.5605172515,
-0.3023820519,
-0.3800684214,
-0.0546554178,
0.0166958384,
0.3058081269,
0.0560380369,
0.2623710632,
-0.0891196281,
-0.3048815131,
-0.1546770036,
-0.302428782,
0.0612832271,
0.0386250988,
0.0938880295,
0.3024204671,
-0.0061313659,
0.0253996179,
-0.2326646149,
-0.322717607,
-0.141769588,
-0.3823908567,
0.1145998687,
-0.3576403856,
-0.1850683689,
0.2572281957,
0.3836848736,
0.036017634,
0.2342237383,
-0.4448953271,
0.2590478957,
-0.2176698148,
-0.0653394014,
-0.0312395431,
0.2600190639,
-0.0327088535,
-0.2574275434,
0.1754403114,
0.216270119,
0.1199889854,
0.1412032098,
0.0373653807,
-0.1117986739,
0.1029489934,
0.1834249049,
-0.1107472628,
0.1684505045,
0.0811558217,
-0.1483062059,
-0.3009883165,
-0.2652986348,
0.1343660951,
-0.110703364,
-0.025855042,
-0.1303594559,
-0.1217091084,
-0.1124878824,
0.3323766887,
0.273825258,
0.204004705,
0.283308506,
-0.0734990016,
0.0767017305,
-0.2428331971,
-0.2653931975,
-0.0510372035,
0.1903245151,
0.0616438314,
0.0863676816,
-0.091865845,
-0.1731874794,
-0.3799477816,
-0.0381177552,
0.031768769,
0.4498935342,
0.0424941368,
-0.288366735,
0.1852962673,
0.0379372723,
-0.279720515,
-0.1952765882,
0.3624272048,
-0.4507014155,
0.2002285123,
0.4017176628,
0.264575094,
0.165723592,
-0.4832744896,
0.0937633291,
-0.2345170975,
0.0963053331,
-0.4337074161,
-0.0904509723,
0.3514744341,
-0.1948998272,
0.2041253299,
0.3052140176,
0.2311197519,
0.608917892,
0.0314239822,
0.2752898932,
0.1878772229,
0.2133275419,
-0.321703732,
-0.1798363924,
0.2906687558,
0.2322686911,
-0.031773366,
-0.207844764,
0.0090947673,
0.2347344905,
0.2440356463,
-0.5169644952,
-0.2611280978,
0.1630212218,
-0.1220196411,
-0.1281809658,
0.4117490649,
0.056770578,
-0.2780817747,
0.2270265967,
0.0776640698,
0.1923735887,
-0.12724787,
0.200874269,
0.2934534252,
0.2212006599,
-0.0231135469,
0.0910241455,
0.4337711036,
-0.3367398977,
-0.2079152465,
-0.0111510456,
-0.0027164277,
0.0235891603,
-0.1512227803,
0.2809454203,
0.2448254377,
-0.0555030257,
0.2687212825,
-0.0504412428,
-0.0088712834,
0.0438045114,
-0.0344004743,
-0.1084132344,
-0.1003934816,
0.1006172895,
-0.0908769071,
-0.12853387,
-0.1207235307,
-0.2426326871,
0.2026134133,
-0.1804250181,
0.023068646,
0.3459427953,
-0.097540006,
-0.3948053718,
0.0952415317,
-0.283303082,
0.0691806301,
0.1062702984,
-0.35660097,
-0.0891359076,
0.2603065968,
-0.0016339011,
-0.4257489145,
0.5468894243,
0.1724049449,
0.1286818981,
-0.3299409449,
-0.0014341325,
-0.3207880855,
-0.0345096029,
-0.5890922546,
0.112635538,
0.1176836789,
0.4403542876,
0.073925823,
-0.0703548416,
0.4031083882,
-0.4079710841,
0.0992394984,
0.3735488653,
-0.1734417975,
-0.0306228567,
-0.4397856295,
-0.0738478824,
0.0422837138,
-0.3743225038,
0.2847958505,
-0.1282065511,
-0.0147695504,
0.192371577,
-0.0202696919,
0.1226511821,
0.0626825988,
0.529878974,
-0.0979443267,
0.0000545271,
-0.0964538679,
0.008635208,
-0.2321902663,
0.1219587475,
-0.2070783675,
0.0085760355,
-0.0218881518,
0.1733753383,
-0.2073741853,
-0.3919602334,
-0.1815344989,
0.4176574349,
0.3126300573,
-0.4186963737,
0.1980271637,
0.1526591927,
-0.1558283567,
0.4795942008,
0.1503627598,
0.22828421,
0.1467330605,
-0.034051232,
-0.3561269641,
-0.1054199785,
0.6236685514,
-0.1882941574,
-0.0293614641,
-0.3494382203,
0.2549013793,
0.4437919259,
0.5510438085,
-0.2645766139,
0.086238116,
0.121943526,
0.0535738505,
-0.2103942186,
0.5777597427,
0.1868615597,
0.0147709623,
-0.0737834573,
-0.2648073733,
-0.0630889311,
-0.0029668435,
-0.3532100618,
-0.2814308703
] |