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/888 | Nested lists are zipped unexpectedly | Yes following the Tensorflow Datasets convention, objects with type `Sequence of a Dict` are actually stored as a `dictionary of lists`.
See the [documentation](https://huggingface.co/docs/datasets/features.html?highlight=features) for more details | I might misunderstand something, but I expect that if I define:
```python
"top": datasets.features.Sequence({
"middle": datasets.features.Sequence({
"bottom": datasets.Value("int32")
})
})
```
And I then create an example:
```python
yield 1, {
"top": [{
"middle": [
{"bottom": 1},
{"bottom": 2}
]
}]
}
```
I then load my dataset:
```python
train = load_dataset("my dataset")["train"]
```
and expect to be able to access `data[0]["top"][0]["middle"][0]`.
That is not the case. Here is `data[0]` as JSON:
```json
{"top": {"middle": [{"bottom": [1, 2]}]}}
```
Clearly different than the thing I inputted.
```json
{"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]}
``` | 27 | Nested lists are zipped unexpectedly
I might misunderstand something, but I expect that if I define:
```python
"top": datasets.features.Sequence({
"middle": datasets.features.Sequence({
"bottom": datasets.Value("int32")
})
})
```
And I then create an example:
```python
yield 1, {
"top": [{
"middle": [
{"bottom": 1},
{"bottom": 2}
]
}]
}
```
I then load my dataset:
```python
train = load_dataset("my dataset")["train"]
```
and expect to be able to access `data[0]["top"][0]["middle"][0]`.
That is not the case. Here is `data[0]` as JSON:
```json
{"top": {"middle": [{"bottom": [1, 2]}]}}
```
Clearly different than the thing I inputted.
```json
{"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]}
```
Yes following the Tensorflow Datasets convention, objects with type `Sequence of a Dict` are actually stored as a `dictionary of lists`.
See the [documentation](https://huggingface.co/docs/datasets/features.html?highlight=features) for more details | [
0.2298383713,
-0.4676937461,
-0.1091863513,
0.3930573463,
0.0112232752,
-0.0073928013,
0.2414545119,
0.0436258949,
0.1704820842,
0.1277206689,
-0.1480690539,
0.4359346926,
0.2361758053,
0.294567585,
-0.0669525713,
-0.0988027081,
0.2758643329,
-0.074767828,
-0.1930997074,
-0.114647314,
-0.3136227131,
0.2664882243,
-0.3605996966,
0.055194743,
0.0843060315,
-0.0568169057,
-0.1831726134,
0.1451125592,
0.1657560915,
-0.0842646733,
0.5213047862,
0.037981227,
-0.0886199623,
0.505612731,
-0.0001140757,
0.212383315,
0.1992183179,
-0.0585279018,
-0.2496747822,
-0.3481117487,
0.0021731853,
-0.4233005047,
0.191058442,
-0.2739615142,
-0.0578965172,
-0.2668312788,
-0.0272844136,
-0.4505224228,
0.5443416238,
0.0647111014,
0.2045088708,
0.2837793231,
0.0236121044,
0.0481436141,
0.2327336073,
0.0205130652,
-0.1190875471,
0.0153836124,
0.1555834115,
0.0709385127,
0.1159702167,
-0.0186713878,
0.042326346,
0.0694480464,
0.2614139616,
0.4643961191,
-0.2956537604,
-0.451495707,
-0.316323638,
0.2530362308,
0.0560798645,
-0.1317226142,
-0.3857866526,
-0.5079491735,
-0.3157913387,
-0.4794183075,
0.2364195585,
0.1448515654,
-0.097374022,
0.2124933898,
-0.1825151145,
0.1744583249,
-0.06920176,
0.3213103414,
-0.1747745872,
0.3411716819,
-0.2386368513,
0.1546943635,
-0.1007571816,
-0.1128663868,
0.1495953649,
-0.4561371803,
0.240881443,
0.1273019612,
-0.1851061583,
-0.0407877602,
0.0541587099,
-0.3483128846,
0.0675062686,
0.1040367186,
-0.0081318971,
0.1614088416,
-0.3872079253,
-0.0663326383,
0.2979254127,
0.2695173025,
-0.0865093842,
-0.0295970161,
-0.1483497471,
0.2968332171,
0.1175826043,
0.0159889646,
0.288222611,
0.0699860156,
-0.1379982233,
-0.0306999292,
0.3500598669,
0.14455387,
-0.3362068236,
0.1017608643,
-0.4738683999,
-0.0749658495,
-0.0336970463,
0.0638874993,
-0.3206652105,
0.1525015533,
-0.0071570575,
0.2471442968,
-0.1345579326,
0.3446598053,
-0.2371738553,
-0.1904276162,
-0.0652853101,
0.066349715,
-0.0420979485,
-0.0953788236,
0.1654870212,
0.212578997,
0.1812337786,
-0.2676425576,
0.0392449349,
0.0152298622,
0.3261409998,
0.1474465132,
-0.1008214206,
0.3499749005,
0.2230880409,
-0.1812281311,
-0.1014809981,
0.0566558763,
-0.5195720196,
-0.0518505499,
0.1581279039,
0.1338201612,
-0.4378282726,
0.0968856364,
-0.0804306269,
0.1471616924,
0.3309530914,
0.3669144511,
0.034374319,
0.0342498831,
-0.5084047914,
-0.2293905318,
0.0003262088,
-0.0738936663,
-0.2071797848,
-0.0262299255,
-0.1019278169,
0.0716582388,
0.2804753184,
0.3513951302,
-0.1295995861,
0.262966305,
-0.3151411712,
0.2650033534,
0.102532506,
0.0171968043,
-0.3716729879,
0.2160805315,
-0.1512707472,
0.5964809656,
0.0166998915,
0.0097156316,
0.0972162187,
-0.1860405356,
0.4022800922,
0.1987630725,
0.335321933,
-0.2042613029,
-0.1204483211,
-0.0845000967,
0.4401874244,
-0.2315002978,
-0.5066452026,
0.0658122227,
-0.2022053599,
-0.0535661019,
0.2737061381,
-0.0846181288,
-0.0229786728,
0.4262551069,
-0.0508770421,
0.178026855,
0.0066014715,
0.057343334,
-0.52115345,
0.172851488,
-0.1369981021,
-0.1579044759,
-0.3792925775,
-0.108261779,
-0.1152306497,
0.387760371,
-0.1813654006,
-0.0864767134,
0.1596706659,
0.1504890919,
-0.0718189403,
-0.1262715459,
-0.1037985161,
0.123352468,
0.0714032575,
0.0906173661,
-0.6953416467,
0.3920567632,
0.2789390683,
0.0548489764,
-0.2176354975,
0.2317308486,
-0.0456587784,
-0.2940309048,
0.0523778796,
0.2249439657,
0.2338957042,
-0.1588654667,
-0.4249762297,
0.0298046619,
0.3272547424,
-0.019934006,
-0.1682197452,
0.4148454368,
-0.0735298395,
-0.0860976577,
-0.4220728576,
0.4835675359,
-0.0940234661,
0.4029447436,
-0.159909308,
-0.0625056997,
0.0480614677,
0.1892824322,
-0.2036752701,
-0.2096891701,
-0.0529216379,
0.2995163798,
0.1877174675,
0.2752785981,
-0.2435815781,
0.4470903277,
0.7448370457,
0.0350884497,
-0.0720684081,
0.2781616151,
-0.019539576,
-0.2479200363,
-0.0599323735,
0.0952596664,
0.3652764857,
0.0646612868,
0.2216393352,
0.1158918366,
-0.1229742318,
-0.2536590695,
-0.0077806041,
0.2639900744,
0.1566017121,
-0.010072384,
0.2818863392,
-0.0750230327,
-0.2509473562,
0.1176290959,
-0.0121422596,
0.0026541725,
-0.1509614587,
0.3371887803,
-0.368679285,
0.0113472641,
0.0587115176,
-0.5471533537,
-0.0946599543,
-0.3144321144,
-0.1246986911,
0.2293173671,
-0.036303699,
-0.0210861713,
0.541687429,
0.0074514896,
0.2658095956,
0.0552180782,
-0.0712555796,
0.0766026005,
-0.2392053604,
0.0723666996,
-0.073796764,
-0.2191998959,
-0.0197298303,
0.2536250651,
-0.2125405818,
-0.2188145518,
-0.2020040751,
0.0020514638,
-0.4176460505,
0.2868640125,
0.1244976074,
0.3577858806,
0.0863532275,
-0.1363052875,
0.0286889561,
0.7422841191,
-0.2904422879,
0.0333608165,
0.1572042406,
-0.0130646378,
-0.2704991698,
-0.333817929,
-0.2083854675,
-0.0691347122,
0.6958270073,
0.2305346429,
0.1344956011,
0.198408097,
-0.060645964,
-0.201425001,
0.3159994185,
-0.1195730641,
-0.2812665701,
-0.3180611432,
0.2908924222,
-0.1502928734,
-0.432923466,
-0.1716616154,
-0.2320406735,
0.1632250696,
-0.0522459857,
-0.2677070498,
-0.0519595854,
-0.3353411555,
0.2634573579,
0.1147339493,
-0.0183234513,
0.3230091333,
0.0054675862,
0.0031281337,
-0.0969487429,
-0.0848343819,
0.2513018548,
0.0311406143,
0.1827377677,
0.1495404243,
0.2881782651,
0.0694668889,
0.3716078103,
0.4487587512,
-0.0575881526,
0.070874244,
-0.2050480098,
0.0590155981,
-0.357752502,
-0.0285772942,
-0.3248993754,
-0.0913259387,
-0.1134557649,
0.1470744014,
-0.0445478857,
-0.1424792707,
0.2277162522,
0.2406811416,
0.0588042736,
-0.1793930829,
0.0593519583,
-0.1386317313,
-0.0676759034,
0.1251192242,
0.1005207896,
-0.2591459751,
-0.2106324732,
-0.1890937835,
-0.2704479396,
0.3228022158,
-0.1335511208,
-0.4832395315,
-0.3275099099,
-0.2935385108,
0.0865743533,
0.0658589527,
0.3359496593,
0.121012494,
-0.3332599401,
0.1720487773,
0.0042106621,
0.6275286674,
0.1835334003,
-0.1038913354,
0.2392941713,
-0.3792847097,
-0.5593373775,
-0.2233467549,
-0.3037461042,
0.058242809,
-0.0733968765,
0.7011970282,
-0.4322917163,
-0.2735141814,
-0.1542563736,
0.0225941949,
-0.1823844165,
-0.110319525,
-0.1726927757,
-0.0383675024,
-0.0809843168,
-0.3157391548,
0.121102944,
0.0220621936,
-0.2013720274,
-0.5030107498,
-0.0302701537,
-0.1497213095,
0.0327284075,
-0.1705443561,
0.2045014799,
0.1852383316,
-0.0533427149,
0.1829633266,
0.3905869126,
-0.3235558867,
0.5041463375,
0.1633861065,
-0.4202215672,
-0.0567699336,
-0.0522581004,
-0.0387411155,
0.1707345396,
-0.2789491117,
0.3413132727,
-0.2047441006,
0.1857426465,
-0.4233265221,
0.0261896588,
0.5656718612,
0.164004311,
-0.1857057512,
-0.4488423169,
0.4633073807,
-0.0362381302,
-0.2361239195,
0.2130220085,
-0.47715047,
-0.2249503732,
0.0851175487,
-0.0977166444,
0.6535152197,
-0.0141149964,
0.3276810944,
0.7303431034,
0.2532291412,
0.6516916156,
-0.200902313,
0.1017263085,
-0.0378722027,
-0.2553580403,
-0.232152313,
-0.0990923196,
-0.2437688261,
0.0722096115,
-0.1671477705,
0.3249192536,
-0.2017383873,
-0.0980905145,
-0.1091665775,
-0.2246543914,
0.3676773012,
-0.1916200668,
-0.2470275313,
0.0923593268,
0.143954739,
0.2766928375,
-0.029046433,
-0.1788524985,
-0.3586545587,
-0.0818018168,
0.0169008225,
0.0519190431,
-0.0419867784,
0.293071866,
0.5869739056,
-0.0869005173,
-0.1537227333,
0.3690275252,
0.1423905492,
-0.1004727557,
-0.094621554,
-0.1521724612,
-0.2162117511,
0.1140701249,
0.1403344721,
-0.1992440373,
0.1869893521,
0.1408910006,
-0.0671956763,
-0.0583786257,
-0.1235269904,
-0.0281106308,
-0.1539420187,
0.3628602922,
-0.1732284874,
-0.3580101132,
-0.1335513592,
0.1337679923,
-0.0743307173,
0.0093411654,
0.1406383365,
-0.0720636472,
-0.1272352636,
0.1793532521,
-0.1711459309,
-0.3843339682,
-0.1006319076,
0.4531827867,
0.3465633988,
0.2332882285,
0.5220938325,
0.2117366493,
-0.0131213963,
-0.0413364582,
0.1071977317,
0.2450933903,
0.0429084972,
0.2102353275,
-0.2296634018,
0.0036053956,
-0.1185464934,
0.431383431,
0.1401431859,
-0.0068079624,
-0.3198304772,
-0.2256008387,
-0.119958505,
0.1146230772,
0.1380530745,
0.0869324654,
-0.3789415359,
0.1209981516,
0.0172735155,
-0.2959541976,
-0.2442492396,
0.0440339148,
-0.17469877,
0.0734405071,
0.1650624722,
-0.0672528073,
0.2527103126,
0.0798481554,
0.142286092,
0.1194661856,
-0.2147548497,
-0.2483881116,
-0.077938877,
0.0247309208,
-0.1127661169,
-0.1158623472,
0.0402208827,
0.0732931197,
0.0024651643,
-0.2223985493,
0.0620981529,
0.0523645505,
0.1028143018,
0.0934440866,
0.1187895089,
0.1133372337,
-0.0887407213,
0.0219955109,
-0.1139067486,
0.3333353698,
-0.088042438,
-0.0082742376,
-0.3272547722,
-0.0375976041,
-0.3286810219,
-0.0047409236,
-0.0873386413,
0.0518626086,
0.3860622048,
-0.1540906578,
-0.1757973135,
-0.1473934948,
0.3297917247,
0.418769896,
-0.1839770526,
-0.1148338169,
-0.3160578609,
0.1524475664,
-0.043001391,
-0.1944519281,
0.2041416466,
0.4142588973,
0.0478668213,
0.3599615991,
0.0795382857,
0.1255005896,
0.010744147,
-0.2078156471,
0.0908520594,
-0.0719293281,
0.3282037377,
0.2948705852,
-0.0125398487,
0.1877644807,
0.1393262297,
-0.1076220721,
0.1366217136,
0.5006204844,
0.4455505013,
0.1572835445,
0.4649834633,
0.2576404214,
0.1620319188,
-0.3960627317,
-0.0934351534,
0.2119640112,
-0.006873183,
0.1135139391,
0.2420564294,
0.1350420564,
0.0317592956,
-0.2465135008,
-0.0710508674,
0.137797758,
0.0352617912,
-0.3907743692,
0.0854902864,
-0.0234661102,
-0.0725789964,
-0.1907020211,
-0.0247700214,
-0.3372785151,
0.2577612996,
-0.1021222174,
0.1690775156,
-0.1788423657,
0.0724067241,
-0.039033521,
0.1608754098,
-0.0112519935,
0.3989440799,
0.3208030164,
-0.163192749,
0.0096526314,
0.0057607181,
0.1689157188,
0.0739874095,
-0.0025227312,
0.1851234138,
0.0849190801,
-0.169134438,
-0.0921687633,
0.1738836914,
-0.2618692517,
-0.1227688491,
0.3215523064,
0.1802616268,
-0.0950468928,
0.3788058758,
0.1822901517,
0.3223469257,
-0.4141272008,
0.3234876096,
-0.3690623045,
0.0690214187,
-0.1374790072,
-0.2140281647,
-0.4857174158,
-0.1849495918,
0.4549846053,
0.0622962713,
0.3871013522,
0.0771670938,
0.1050899476,
-0.1980639547,
0.5660415292,
0.1562877446,
0.0848101601,
0.2197219878,
-0.0166593939,
-0.128570348,
0.1937225163,
0.0282125175,
0.074691467,
0.0411248095,
0.2085573822,
-0.0126788206,
0.1919090748,
-0.2487944067,
-0.3145219088,
-0.2395996451,
0.1238396317,
-0.6030551195,
-0.2136263549,
0.0546100289,
0.1322102696,
0.022782363,
-0.130368948,
0.3184505105,
-0.0531227142,
-0.0405779742,
0.0055195931,
0.2425609976,
-0.3423743844,
0.1814100891,
0.0602164306,
0.3718805611,
-0.147821039,
-0.0252269246,
-0.1264713258,
-0.2578125894,
-0.1313624233,
0.0753138214,
0.530356884,
-0.1008529365,
0.3721912205,
-0.1619531512,
0.2664504051,
-0.0218828991,
-0.1117807552,
0.2469822466,
-0.440148294,
-0.3289559186,
0.2583468556,
-0.2655966282,
0.1213144511,
0.1467082947,
0.6770499945,
-0.0092599727,
0.1449604034,
0.2292734534,
-0.1296217144,
0.4818059802,
-0.2091840804,
-0.4057355821,
0.1518883854,
-0.1456567794,
0.1526299715,
-0.2212254256,
-0.0083837286,
-0.090432331,
0.4702816308,
-0.3118605316,
-0.3027620018,
0.0298777856,
-0.0429785512,
-0.0823717564,
-0.2434901744,
0.3457025886,
0.1218634471,
-0.2046686411,
0.3793984652,
-0.2259829938
] |
https://github.com/huggingface/datasets/issues/888 | Nested lists are zipped unexpectedly | Thanks.
This is a bit (very) confusing, but I guess if its intended, I'll just work with it as if its how my data was originally structured :)
| I might misunderstand something, but I expect that if I define:
```python
"top": datasets.features.Sequence({
"middle": datasets.features.Sequence({
"bottom": datasets.Value("int32")
})
})
```
And I then create an example:
```python
yield 1, {
"top": [{
"middle": [
{"bottom": 1},
{"bottom": 2}
]
}]
}
```
I then load my dataset:
```python
train = load_dataset("my dataset")["train"]
```
and expect to be able to access `data[0]["top"][0]["middle"][0]`.
That is not the case. Here is `data[0]` as JSON:
```json
{"top": {"middle": [{"bottom": [1, 2]}]}}
```
Clearly different than the thing I inputted.
```json
{"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]}
``` | 28 | Nested lists are zipped unexpectedly
I might misunderstand something, but I expect that if I define:
```python
"top": datasets.features.Sequence({
"middle": datasets.features.Sequence({
"bottom": datasets.Value("int32")
})
})
```
And I then create an example:
```python
yield 1, {
"top": [{
"middle": [
{"bottom": 1},
{"bottom": 2}
]
}]
}
```
I then load my dataset:
```python
train = load_dataset("my dataset")["train"]
```
and expect to be able to access `data[0]["top"][0]["middle"][0]`.
That is not the case. Here is `data[0]` as JSON:
```json
{"top": {"middle": [{"bottom": [1, 2]}]}}
```
Clearly different than the thing I inputted.
```json
{"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]}
```
Thanks.
This is a bit (very) confusing, but I guess if its intended, I'll just work with it as if its how my data was originally structured :)
| [
0.2184681892,
-0.3172186017,
-0.1545520872,
0.4096398056,
0.0198081732,
0.0022647828,
0.1813222766,
0.1284825951,
0.1204207987,
0.1107624024,
-0.0894268751,
0.5233139396,
0.3309744,
0.2051908374,
-0.1097115725,
-0.065321207,
0.3139224052,
-0.0546331704,
-0.0289822444,
-0.0713044032,
-0.3160273433,
0.2633285522,
-0.3739173412,
0.046486631,
0.1322631389,
-0.0521915704,
-0.2575969398,
0.3128818572,
0.1092588231,
-0.0722755343,
0.4127610326,
-0.0793375075,
-0.1082951128,
0.4087020159,
-0.0001130303,
0.1514427364,
0.2343341708,
-0.1096900403,
-0.2292561978,
-0.2896876931,
0.1124608591,
-0.4846199155,
0.1144391522,
-0.2547377944,
-0.0396967605,
-0.2845829129,
-0.1264148802,
-0.6383927464,
0.4745341539,
-0.1257840842,
0.2245387733,
0.2374028563,
0.0665088594,
0.0422532409,
0.2652530372,
-0.0834821835,
-0.0373356827,
0.1073116064,
0.2651550174,
-0.0105164759,
0.1435326934,
-0.0846478492,
-0.1027294844,
0.0434747525,
0.1424037963,
0.3884348869,
-0.3656549156,
-0.4055753946,
-0.3164652884,
0.1316065341,
0.1293771267,
-0.0803917348,
-0.3327471018,
-0.4394022226,
-0.3403947949,
-0.4365860224,
0.1443229914,
0.2944248617,
-0.0351612531,
0.2033885121,
-0.1429801583,
0.1454977095,
0.0265146047,
0.3943546712,
-0.0928068683,
0.5669491291,
-0.1781391799,
0.2075329572,
-0.1415403485,
-0.0978917927,
0.3217329085,
-0.5392982364,
0.119554095,
0.082753107,
-0.081145443,
0.028947711,
-0.025487151,
-0.2950785458,
0.0209243372,
0.2430080175,
0.0097582564,
0.09698084,
-0.246440202,
-0.0963637009,
0.3439168036,
0.2305069268,
-0.1567773223,
0.048011072,
-0.1993890703,
0.2459215224,
0.0642063916,
-0.0743026733,
0.3313898742,
-0.0181405097,
0.0041827857,
0.0940824971,
0.324708879,
-0.0066128597,
-0.3000767827,
-0.0172232501,
-0.6085448861,
-0.1270062625,
-0.0157090425,
-0.0212111212,
-0.2186053842,
0.2345950454,
-0.0660570487,
0.3846604228,
-0.1284175217,
0.2158969492,
-0.1964946985,
-0.1969258487,
-0.1403608322,
0.0498291478,
-0.0228432342,
-0.0731571317,
0.1988912821,
0.3086184859,
0.0985997766,
-0.3232743144,
0.0642549321,
0.0588632226,
0.299834013,
0.0770311803,
0.0418178141,
0.330121249,
0.2961991131,
-0.171380192,
-0.0828471929,
0.1917276233,
-0.6464284062,
-0.0623240657,
0.1348977685,
0.1534037888,
-0.4481501281,
0.0445794724,
0.0383603871,
-0.0374042615,
0.3544825912,
0.2428799421,
0.0145595856,
0.0994815826,
-0.3080233932,
-0.1964315176,
-0.1299651414,
-0.0610155314,
-0.284294337,
0.1140614599,
-0.2470972091,
0.1278836429,
0.4151360691,
0.1677794009,
-0.1544114798,
0.2156067342,
-0.3377678394,
0.2923147082,
0.1259206235,
0.1345865875,
-0.4144971967,
0.3028040528,
-0.1807537973,
0.5522429943,
0.0382718258,
-0.0058978498,
-0.119373709,
-0.131267637,
0.4894069731,
0.1428716034,
0.396998018,
-0.1976759434,
-0.2331184745,
-0.035386458,
0.4713864028,
-0.1843079627,
-0.5262539983,
0.1478789598,
-0.1520498991,
-0.1689664871,
0.3451800346,
-0.1272335649,
0.0350566357,
0.4289441705,
0.0043612369,
-0.0003774855,
-0.0241303742,
0.0816468298,
-0.3355892897,
0.0989227891,
-0.2258458436,
-0.2860853076,
-0.4463806152,
-0.0183768272,
-0.1477215141,
0.2564423084,
-0.1700655818,
-0.0308609977,
0.173615098,
0.209060356,
-0.1163882092,
-0.3199601769,
-0.0105878115,
0.0195042323,
0.3265602291,
0.097613357,
-0.6830198169,
0.4054055512,
0.2875938416,
-0.0113851875,
-0.1458495259,
0.069543913,
0.152482152,
-0.2553285658,
0.018017102,
0.3207509816,
0.1593110114,
-0.1835815758,
-0.3426268697,
-0.1545604318,
0.1520855874,
-0.0245113596,
0.0242283661,
0.5047951937,
-0.0688400716,
-0.0377201885,
-0.2710859776,
0.5477910638,
-0.2554776073,
0.4314799309,
-0.210395366,
-0.0547998287,
-0.0019476339,
0.1101336181,
-0.1451647282,
-0.1782763749,
-0.0519491397,
0.3697810173,
0.1320610046,
0.2217058986,
-0.1272535324,
0.5368804932,
0.62262398,
0.0149432868,
-0.1085233241,
0.2366561592,
-0.0172707811,
-0.2339496017,
-0.0827029049,
0.1318303645,
0.4769053161,
0.1663244963,
0.2383283675,
0.0633731633,
-0.0466573574,
-0.2988384366,
0.0415330902,
0.2948472202,
0.1417429149,
0.0189417489,
0.2471590042,
-0.1103718281,
-0.1890182644,
0.1310889721,
-0.0676205084,
-0.0555508174,
-0.1847277284,
0.4284856319,
-0.414880693,
0.1286706477,
0.0089598037,
-0.6086059213,
-0.1259288192,
-0.367431283,
-0.0962767452,
0.1630173475,
-0.033271946,
-0.079373464,
0.3183373213,
-0.0508815199,
0.2074662447,
0.0344280675,
-0.0979534909,
0.0549232513,
-0.3040456176,
0.1165448576,
-0.0992762148,
-0.1788051724,
-0.1328112334,
0.2860117555,
-0.0628293529,
-0.0983806998,
-0.1677876115,
-0.0613333657,
-0.3298405707,
0.4358929396,
-0.0053035282,
0.2740279436,
0.1420143098,
-0.1684323549,
-0.0573884137,
0.811455369,
-0.2242007852,
-0.0530011207,
0.1051105186,
-0.1221106946,
-0.2619016171,
-0.289716959,
-0.2417908907,
-0.0876349658,
0.5448140502,
0.2349027544,
0.0652129948,
0.0126597881,
-0.0915846452,
-0.4041171968,
0.466003418,
-0.2062161565,
-0.2937190533,
-0.3625423908,
0.3837714493,
-0.1704190969,
-0.3073124588,
-0.1411051452,
-0.2317972183,
0.2073755413,
-0.0551495478,
-0.2060278654,
0.0694104731,
-0.2908578813,
0.1778523624,
0.0170113891,
0.0154642332,
0.2527927458,
0.1166264564,
-0.0228670314,
-0.1234938502,
-0.0833323002,
0.1336052865,
-0.1175002381,
0.3187896907,
-0.0142858699,
0.1677422822,
0.0150167122,
0.2484377325,
0.3785087466,
0.1109357774,
0.1758629978,
-0.1604475826,
0.0411529094,
-0.2754457295,
-0.0336145498,
-0.4888678193,
-0.0638974234,
-0.1470774114,
0.1049499437,
-0.0306321383,
-0.2773483396,
0.2061710209,
0.0542602539,
-0.0645456165,
-0.1242479384,
0.0656340569,
-0.1353943646,
-0.029889781,
0.154827863,
0.0780923888,
-0.2866788805,
-0.2804620266,
-0.2260525823,
-0.3523415029,
0.358194977,
-0.1251735687,
-0.5212162733,
-0.3446735442,
-0.0681028068,
0.2324886024,
0.0155183561,
0.2490626276,
0.1768510789,
-0.377173543,
0.0962256864,
-0.044823356,
0.5204253793,
0.2217599899,
-0.0332038254,
0.3260822892,
-0.1375302225,
-0.4786706865,
-0.2850194573,
-0.3057846129,
0.2125427872,
-0.1146563441,
0.6859150529,
-0.4032102227,
-0.1047905236,
-0.0662887543,
0.1085293889,
-0.1328313053,
-0.2047205269,
-0.2061845064,
-0.0107844621,
-0.0190011226,
-0.2465898395,
0.0428602993,
0.1672841907,
-0.3029408455,
-0.4507918954,
0.020263819,
-0.1985380352,
0.0193104409,
-0.2084347755,
0.2844069004,
0.1069714725,
-0.0047231019,
0.1485111564,
0.4633723199,
-0.3736361861,
0.6574383378,
0.231450215,
-0.2134836763,
-0.0199561194,
-0.0827863291,
0.0931331217,
0.1565187871,
-0.2462542504,
0.342484355,
-0.1902338564,
0.0940131098,
-0.2823221385,
-0.1878392994,
0.4364050925,
0.0247590244,
-0.1664127707,
-0.4040624499,
0.4862018526,
-0.1526126862,
-0.2920731902,
0.1725663841,
-0.7546374798,
-0.1507408321,
0.0666644126,
-0.0745663494,
0.7946740985,
0.1333986372,
0.1628904939,
0.5988460183,
0.1569943875,
0.3440336883,
-0.2301673591,
0.1290620118,
-0.1200241745,
-0.1831690818,
-0.151825428,
-0.1016810611,
-0.2299716473,
0.2175676525,
-0.1713267267,
0.3684470057,
-0.3066546917,
-0.207959041,
-0.082080625,
-0.2884982228,
0.2763153911,
-0.1397383362,
-0.3677799702,
0.0831406191,
0.0889602602,
0.1820562333,
0.0162744075,
-0.2232856899,
-0.4019069672,
-0.1828644872,
0.1694709659,
0.1881860048,
0.0737717673,
0.2382066399,
0.5669978857,
-0.0908390731,
-0.2376577407,
0.2308869362,
0.037821807,
0.0083168419,
-0.0510926396,
-0.086895436,
-0.0498086475,
0.1095715016,
0.1393978298,
-0.0793702677,
0.0019786842,
0.1429877132,
-0.1889208555,
-0.0380923301,
-0.1322387457,
-0.0750016868,
-0.2670204043,
0.3036191761,
-0.0664987937,
-0.4930696487,
-0.0863869861,
0.1625569016,
0.0961071774,
-0.0442148931,
0.1409608126,
-0.0584473684,
-0.0600010864,
0.2154303789,
-0.2095663249,
-0.3898901343,
-0.1302579194,
0.4818533063,
0.354208827,
0.3314026892,
0.5364954472,
0.1173823625,
-0.005248189,
-0.0615888387,
0.1774377227,
0.1731758863,
0.0555572659,
0.2308416665,
-0.2614545226,
0.1389483809,
0.025560163,
0.2495397925,
0.1538052559,
0.0933203176,
-0.2747824788,
-0.2578546405,
-0.0123968646,
0.0752708167,
0.2469936162,
0.0264128316,
-0.3694919944,
0.0166560002,
-0.0655557215,
-0.2943480909,
-0.2588206828,
0.1187269092,
-0.0735040754,
0.0706630796,
0.0632951409,
-0.0498930551,
0.0983066112,
0.1755084246,
0.1788019538,
0.0973352492,
-0.0939832181,
-0.2423441261,
-0.0893192068,
0.0399383605,
-0.0994463414,
-0.0512977056,
0.0312256627,
0.0619441047,
0.1177681834,
-0.1408179104,
-0.0800768882,
-0.0501602888,
0.1151593029,
0.0494762845,
0.1752441376,
0.0092204865,
-0.1670498848,
0.0650655478,
-0.1628143489,
0.3521942496,
-0.0734159797,
0.0229963474,
-0.2047650069,
-0.0357835069,
-0.3333113194,
-0.1181888953,
-0.0601646006,
0.2736844718,
0.4423306286,
-0.1754455268,
-0.0991263986,
-0.1710653007,
0.3002392054,
0.4621217251,
-0.107105881,
-0.0582223274,
-0.4228378832,
0.1897700876,
-0.0301654078,
-0.2206500918,
0.0477973372,
0.406750083,
-0.0115042403,
0.3411346376,
0.0762361214,
0.0044593513,
0.1875847876,
-0.1609860957,
0.2129373103,
0.0691063553,
0.2861249149,
0.4457660317,
-0.0188226178,
0.1424773484,
0.1934843808,
-0.1898761541,
0.0758743137,
0.4038381875,
0.4355383515,
0.1002637371,
0.5404437184,
0.1917513013,
-0.0507731885,
-0.3868570626,
-0.1148920804,
0.1924687624,
0.1613172293,
0.144041732,
0.3425578475,
0.1328892708,
-0.0233404245,
-0.1878123283,
-0.1028040126,
0.1639950126,
0.1770242155,
-0.4165563583,
0.0156628191,
-0.158600986,
-0.1736988872,
-0.0960781127,
-0.0284379628,
-0.2167843878,
0.2008901536,
-0.197361514,
0.1110693365,
-0.2086458802,
0.1426243037,
0.0291807055,
0.113515228,
-0.1219934076,
0.3748126924,
0.4225358963,
-0.1691363007,
0.1362068206,
-0.0214618854,
0.198812142,
0.1122128814,
-0.0623030886,
0.0575763546,
0.1041241661,
-0.218020156,
-0.0522048548,
0.1724108458,
-0.2057877183,
-0.1832586825,
0.2945326567,
0.2070866972,
-0.1300415248,
0.5459816456,
0.2538106441,
0.3727188706,
-0.3281883299,
0.2841491401,
-0.2704299986,
-0.0307112187,
-0.1845008135,
-0.3561416268,
-0.456812501,
-0.2268987,
0.3489000797,
0.1265205741,
0.3013009727,
0.0669777542,
0.1108611226,
-0.1432698816,
0.5278853178,
0.127364248,
-0.0721036792,
0.1525624841,
-0.0574445352,
-0.0945012569,
0.3024393916,
-0.1291499436,
0.079285115,
-0.0166695043,
0.0780360326,
0.0833574384,
0.1977621913,
-0.2263824046,
-0.2716864049,
-0.318707943,
0.2024097443,
-0.6554205418,
-0.2455454767,
0.3589972258,
0.2067427933,
0.0032623559,
-0.1457838565,
0.2539188266,
-0.0299183987,
0.0071011037,
-0.0184246767,
0.044192709,
-0.2437455952,
0.1884057075,
0.1571173519,
0.4281649292,
-0.0677081943,
-0.0735553727,
-0.1380261332,
-0.2773785293,
-0.1953829825,
0.1449755132,
0.5468013287,
0.0324327759,
0.3450417221,
-0.1000136882,
0.360594213,
-0.1093714237,
-0.145946756,
0.1021509543,
-0.27453053,
-0.2356798351,
0.2147415429,
-0.2724905908,
0.090166226,
0.0718506277,
0.6004974842,
0.0255685374,
0.2015384436,
0.228508383,
-0.0928080976,
0.3809424639,
-0.1058680266,
-0.4406687617,
0.2755937874,
-0.1367700994,
0.1099881977,
-0.2000230998,
0.2015323937,
-0.0702715218,
0.5745109916,
-0.2451066822,
-0.1149065197,
0.028858535,
-0.056311056,
-0.1113776341,
-0.182813704,
0.2170539498,
0.1465841681,
-0.1766923666,
0.2814051509,
-0.1616725326
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Yes right now `ArrayXD` can only be used as a column feature type, not a subtype.
With the current Arrow limitations I don't think we'll be able to make it work as a subtype, however it should be possible to allow dimensions of dynamic sizes (`Array3D(shape=(None, 137, 2), dtype="float32")` for example since the [underlying arrow type](https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L236) allows dynamic sizes.
For now I'd suggest the use of nested `Sequence` types. Once we have the dynamic sizes you can update the dataset.
What do you think ? | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 85 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Yes right now `ArrayXD` can only be used as a column feature type, not a subtype.
With the current Arrow limitations I don't think we'll be able to make it work as a subtype, however it should be possible to allow dimensions of dynamic sizes (`Array3D(shape=(None, 137, 2), dtype="float32")` for example since the [underlying arrow type](https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L236) allows dynamic sizes.
For now I'd suggest the use of nested `Sequence` types. Once we have the dynamic sizes you can update the dataset.
What do you think ? | [
-0.1616061479,
0.0108417571,
-0.0666190833,
0.1772313565,
0.3133355081,
0.0057714432,
0.5568305254,
0.1153368205,
-0.1397415102,
0.0790206641,
0.1618121564,
0.0611893125,
-0.2482871711,
0.2882793546,
0.1433377117,
-0.4168103933,
0.165011242,
0.2572270036,
0.0553813949,
0.1130090654,
-0.1897821128,
-0.2030612528,
-0.2229627073,
0.1924259365,
-0.2032820284,
-0.1325578243,
-0.2312771529,
-0.1746640205,
-0.2154565156,
-0.4873973131,
0.3294047713,
0.1431978196,
0.2426178157,
0.1376821697,
-0.0001154924,
-0.0107512176,
0.3926020265,
0.0132958367,
-0.19533135,
0.027707845,
0.0773621351,
-0.4880390465,
0.1142669991,
-0.3838243186,
0.1063903868,
-0.9378992319,
-0.0416391753,
-0.0897191763,
0.1050871834,
0.050092835,
0.1922922134,
0.1715771705,
0.3899647892,
-0.0105451047,
0.4836091101,
0.3242554069,
-0.2707022429,
-0.0386976749,
0.3831060827,
0.1397041082,
0.0771356821,
-0.1748768687,
-0.0284891576,
0.0574250631,
0.4720863998,
0.1713973731,
0.2727363706,
-0.1684577465,
-0.1026952118,
0.4105273485,
0.4952412546,
-0.2319115996,
-0.307592988,
-0.3115695715,
0.0032652356,
-0.1753807068,
-0.107308656,
0.2137748897,
-0.1296341568,
-0.014075039,
-0.1534998119,
0.1548554748,
-0.4418314099,
0.3143470287,
0.1075721085,
0.1329264641,
0.0735218227,
0.2417717576,
-0.2476112098,
-0.5056384802,
0.4316936731,
-0.2360916734,
-0.0270425603,
0.1407021582,
0.0072510494,
-0.0080918446,
-0.1698648483,
-0.340079248,
0.4770568013,
-0.1000493392,
0.3479022086,
0.011199737,
0.1661999673,
0.09313526,
0.040968027,
0.3405998051,
-0.121256493,
-0.2747881114,
-0.1511278749,
0.1171398237,
0.1713350117,
0.0727716386,
-0.2241661847,
-0.1283682436,
0.2919897139,
-0.1056136861,
0.218283236,
0.3313548863,
0.062167041,
-0.0202996582,
-0.5062043667,
-0.130508855,
-0.0367951728,
0.1205358058,
0.0674206018,
0.1349914074,
-0.0809329376,
0.3865689337,
0.1314046383,
-0.0055817179,
-0.0967657417,
-0.1221149787,
-0.1639344096,
-0.0432268977,
-0.0311278477,
0.2660106421,
-0.0362325683,
-0.0843532234,
0.1206866056,
0.1519425213,
-0.0673129037,
0.1036843807,
0.1126583368,
0.0875581205,
-0.1935006082,
-0.2413787842,
-0.2568318844,
0.0092553049,
-0.233716771,
0.3463320136,
0.0196914207,
-0.2524257004,
-0.454567492,
0.1253437847,
-0.2485111654,
-0.0374919102,
-0.2303137779,
0.2204686403,
0.2725119293,
0.0192478001,
0.1092600673,
-0.0748156011,
0.040370889,
-0.4584238529,
-0.0161775239,
-0.0629343614,
-0.2794123888,
0.1130260229,
0.0052767284,
-0.0103955967,
-0.1350496709,
-0.0232584998,
-0.1822221428,
0.000978183,
-0.0583327115,
0.1994724125,
0.4691612422,
0.2001062334,
-0.0442870185,
0.0683371276,
0.099399358,
-0.1840388775,
0.3197767437,
0.0600172281,
-0.0458100736,
-0.172112897,
-0.2826548219,
0.3145982027,
-0.0964623839,
-0.1695905924,
-0.0800121129,
-0.5706948042,
0.3061468899,
0.1484425068,
0.0984553993,
-0.0734467059,
0.0419842936,
-0.4109465778,
0.2504270971,
-0.4095450342,
0.2487357855,
-0.0755423158,
0.2601504922,
-0.0907997936,
0.1170577407,
-0.2781338394,
-0.8328419924,
0.207608223,
-0.345492065,
-0.1067000851,
0.0295049455,
-0.1889725327,
-0.1704299897,
0.1456989646,
-0.1304068267,
0.1564954668,
0.0873013139,
0.0034690928,
0.0561500713,
-0.296877861,
-0.2516316175,
-0.3527008295,
-0.0608818829,
-0.020740781,
-0.4056304097,
0.4219982624,
0.1468447745,
-0.2653644383,
-0.2945565581,
0.2871394753,
-0.0391319394,
-0.0812378526,
-0.0405560881,
0.2517083883,
-0.0943237767,
0.0002016723,
-0.5369090438,
0.1763547212,
0.0346695706,
-0.1743863523,
0.3629362285,
0.0060332157,
0.0265158229,
-0.1310427338,
0.2302034348,
0.4568024576,
-0.0022053542,
0.4285459518,
-0.1744948328,
-0.040405497,
-0.0721172839,
0.1969556808,
-0.0736597627,
-0.1658542454,
-0.2773368359,
0.236184001,
0.1594389379,
-0.0260372367,
-0.202351898,
0.159548372,
0.2601909637,
-0.1021903232,
0.0460609794,
0.1400889307,
-0.2551284432,
0.0729362816,
0.166390866,
0.1524056494,
0.1684518158,
0.2051691413,
-0.1223243549,
-0.0231503416,
-0.1620202959,
-0.0988155454,
0.2174190432,
0.1760276407,
0.4924125075,
0.0949755162,
0.4513033628,
-0.1852276921,
-0.1904081702,
-0.0040292442,
0.0273078755,
0.0714369565,
-0.1541872621,
0.0563471317,
-0.0956585929,
-0.0615258366,
-0.084844023,
-0.6617178917,
-0.0479577035,
0.0101694614,
0.00340591,
0.0023365314,
-0.1764205843,
0.2182944715,
0.0707680061,
-0.1285051554,
0.2033282965,
-0.1506587416,
-0.1665371954,
0.0061285943,
-0.0245498493,
0.0636501685,
0.2478207648,
-0.0018958561,
0.0085576344,
0.2448377311,
0.0823836625,
-0.331317395,
-0.315135628,
-0.0082975328,
-0.152857393,
0.2326388806,
0.4319127798,
-0.049544163,
0.1705274135,
-0.312508136,
0.3104337156,
0.0129284486,
-0.2742744684,
0.1388646662,
-0.2198172063,
0.1748549938,
-0.1059626043,
0.007748846,
-0.1792990118,
-0.3620898426,
0.324840486,
0.4152487218,
0.1981842071,
0.2461232245,
0.3520287871,
0.1719938815,
-0.0005935617,
0.0170385502,
0.1446619332,
0.255849719,
0.3828648925,
-0.026648419,
-0.1819357127,
-0.1355110109,
-0.9175077081,
0.0974401832,
0.3725893795,
0.0600478128,
-0.1703150421,
-0.1563491672,
0.2751000226,
0.0853941068,
-0.0136379367,
0.4456551671,
0.1230399683,
0.0161778927,
-0.0962932408,
-0.0493285581,
0.3227922618,
0.2541522086,
-0.0290216096,
0.2366011888,
0.3795796633,
-0.1161511391,
0.6229425669,
0.0335688293,
-0.4343720675,
0.3152053356,
-0.2801406384,
-0.1684264243,
-0.1951775402,
-0.0541305095,
-0.1407592595,
-0.0307090729,
-0.0905176103,
-0.0600012578,
-0.1186709329,
-0.3501572609,
0.1830916107,
0.1964474916,
0.0443266332,
0.0143349022,
0.127108559,
0.0562776066,
0.3102786243,
-0.1323702931,
0.0103132278,
-0.3922722638,
-0.2343606055,
-0.2627178729,
-0.267270267,
0.1622466892,
-0.0061256588,
-0.2194531113,
0.0716567785,
-0.0161598139,
0.3092056513,
0.5854972005,
0.1012936085,
0.3075446486,
-0.2115696073,
0.0656297058,
-0.047895249,
0.369064182,
-0.1495690942,
-0.2604701519,
0.4619353414,
0.111568436,
-0.4515559673,
-0.1744279265,
-0.0168559328,
-0.1202258319,
-0.2905306816,
0.1574331671,
-0.3936347961,
-0.025870027,
0.3197915852,
0.2921332717,
-0.036438819,
-0.1393865645,
-0.136489585,
-0.0923475847,
-0.1867284179,
-0.2591009736,
0.0299788192,
0.326376915,
0.1582377553,
-0.382650733,
-0.462987572,
-0.1317445636,
-0.2740682065,
0.0501397811,
0.4171843529,
-0.106552586,
0.1590994447,
-0.3115158975,
0.0425374173,
0.272148639,
0.1653778851,
0.1622940451,
0.0412535705,
0.0049723089,
0.1017699838,
0.413272649,
0.1775953025,
-0.131842941,
0.1368513852,
0.0340915658,
0.0879229754,
-0.2265186012,
-0.2132218927,
0.4135328233,
-0.3542908132,
-0.0208449718,
-0.3419049978,
0.671628356,
-0.0275884941,
0.1143835336,
0.2011255473,
0.3124504387,
-0.1880145669,
0.2436710298,
0.6279748082,
0.8101684451,
0.0826609805,
0.0925122052,
0.658675611,
0.0395745561,
-0.0368232615,
0.4076533318,
0.0628155768,
-0.4858413339,
0.1058627218,
-0.1523807794,
-0.283810854,
0.2352135181,
0.0837632716,
-0.1277512461,
-0.004428234,
-0.0640952066,
0.4120748043,
0.1050515473,
0.013396956,
-0.3504092395,
-0.2208379507,
-0.1791243106,
0.0456856117,
0.0559172444,
-0.4603315592,
-0.0490152091,
-0.3513253033,
0.0252598226,
0.0259792358,
-0.1247501522,
-0.2373870015,
-0.3729754388,
-0.0640473813,
0.4174680114,
-0.5670102835,
0.1183720827,
0.2152519077,
-0.0177166574,
-0.2802426815,
-0.1261242628,
-0.0766263306,
0.1672941446,
-0.2428408861,
-0.2445147783,
-0.3188094497,
0.276432395,
0.0674631447,
-0.0918486267,
-0.1010529548,
0.0350772962,
-0.0383977406,
-0.1744729429,
-0.0141754784,
0.2645862103,
-0.3808232546,
-0.0809326842,
-0.2153043449,
-0.0524791926,
-0.1254982948,
0.066517204,
0.0475824922,
0.0788213164,
-0.0933829248,
0.1883075088,
0.1496841162,
-0.0993907005,
-0.0204070807,
0.5038688779,
0.3624756038,
0.3046236634,
0.2016716599,
0.0599654093,
-0.1735874116,
0.3485201299,
0.4494482279,
-0.5054565072,
0.1632680744,
0.1418388784,
-0.2478164136,
-0.1363990009,
0.5404828191,
0.0394270979,
0.2122329473,
-0.0787901431,
0.0117738098,
-0.4203206301,
0.4531824589,
0.0842345729,
0.3178559542,
-0.2962430716,
0.0066832863,
-0.0164404586,
-0.0033702701,
-0.2555531263,
0.0823913813,
0.139925018,
-0.1206922382,
-0.4355023503,
-0.0697564408,
0.0899369121,
0.130221799,
0.0567970723,
0.0431436785,
-0.4732173085,
-0.1366358995,
-0.0630607605,
0.1465229541,
0.1113866568,
-0.0750961378,
0.1088628173,
-0.0356663503,
-0.390319705,
-0.1736460924,
-0.0385059156,
-0.1806110442,
-0.1987410933,
-0.0751569122,
0.2943124175,
0.0307445973,
-0.3263242841,
0.0314628445,
-0.1110591143,
0.2427469343,
0.083868973,
0.1172858924,
-0.0286930036,
-0.0710218623,
-0.0777912587,
0.2803215086,
-0.0209848396,
-0.2457626015,
0.3363736868,
-0.2781674862,
-0.4002945423,
-0.1711621881,
0.5554986596,
0.2221169174,
-0.105567053,
0.0775415674,
0.098276481,
0.1608130634,
-0.3934293985,
0.0250374265,
0.143829599,
0.0519388095,
0.2361171097,
0.4788058996,
0.3344213665,
-0.0777622834,
-0.0287040547,
0.1193265021,
-0.1326758265,
-0.0002070274,
0.0437339209,
0.6355388165,
-0.1258769184,
0.0485186242,
0.4811273515,
0.1939935982,
0.405046165,
0.0457963198,
0.0016182512,
0.3823402524,
0.3568309844,
-0.1043541878,
0.2455846071,
-0.0511927232,
0.0729860887,
0.1793747693,
0.4925746918,
-0.044236064,
0.2195575237,
0.7067698836,
0.2334744781,
-0.0554627106,
-0.2771448195,
-0.1155781895,
0.006322124,
-0.0822097063,
-0.0751164779,
-0.1691104174,
-0.3798796535,
-0.3740451932,
-0.2321601659,
-0.458837539,
0.2906999588,
-0.2336003482,
0.2934202254,
-0.4083960652,
0.5953162909,
0.2168374062,
0.0516922511,
-0.1279549301,
0.5140502453,
0.431669265,
-0.0781322792,
-0.0360898264,
0.4701983035,
0.2200419307,
0.2157694101,
-0.3217058182,
0.0058282986,
-0.0964449346,
-0.220475167,
0.1055470556,
0.0603390671,
0.1476790458,
0.1796259433,
0.2984700799,
0.0671432912,
-0.0987445414,
0.2173952162,
0.1905702949,
-0.0963219479,
-0.2707989514,
0.388759166,
-0.2764680684,
-0.0880608857,
0.0133798514,
-0.0852078944,
-0.3422195315,
-0.0359237716,
0.2539329231,
-0.168633312,
0.0642235875,
0.0385521352,
0.051269576,
-0.2165200859,
0.5640590191,
0.0377693251,
0.3752740324,
-0.000887204,
0.0180554241,
-0.3669318557,
0.2662678063,
-0.2843761444,
0.0349873453,
0.3976564407,
0.1515060663,
-0.0319144838,
0.0935205221,
0.2348977178,
0.2483495623,
-0.0476072952,
0.3987118006,
-0.3823176622,
-0.0468160287,
0.3674174547,
0.0457464233,
-0.0166747086,
-0.3289566934,
0.2313165516,
-0.3987182081,
-0.0398684554,
0.1851513535,
0.0911638439,
0.0733314455,
0.0101798251,
0.4556729198,
-0.0521393307,
-0.0057959333,
0.1570114046,
-0.0347007029,
-0.3226482272,
-0.3023777008,
-0.2103191614,
0.2482536286,
0.1688107252,
0.496871531,
-0.2597640753,
0.1670038551,
-0.0114528481,
-0.1393118501,
-0.0138446391,
0.1429247707,
-0.2275404185,
0.5355843306,
-0.4553392231,
-0.0262940731,
-0.0327979624,
-0.0646309033,
0.0457301252,
0.0954745114,
-0.1081474721,
-0.51935637,
0.6752308607,
-0.0691898465,
-0.4102224112,
0.1890443265,
-0.1185932085,
0.5248757601,
-0.0722407699,
-0.2589219213,
0.0343657136,
0.3283544779,
0.0191487446,
0.0881617144,
0.0410497896,
0.0724669099,
-0.0939226747,
-0.2172301114,
0.1776492745,
-0.131829828,
-0.1210474521,
-0.3250680566,
-0.5128965974
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | > Yes right now ArrayXD can only be used as a column feature type, not a subtype.
Meaning it can't be nested under `Sequence`?
If so, for now I'll just make it a python list and make it with the nested `Sequence` type you suggested. | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 45 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
> Yes right now ArrayXD can only be used as a column feature type, not a subtype.
Meaning it can't be nested under `Sequence`?
If so, for now I'll just make it a python list and make it with the nested `Sequence` type you suggested. | [
-0.1496908367,
0.0466831326,
-0.0832266212,
0.1190681532,
0.2730078101,
0.1201472729,
0.6236194968,
0.1325293332,
0.0004309341,
0.1169991791,
0.272679776,
0.2137200087,
-0.1482153684,
0.0873371437,
0.1494977474,
-0.3523185253,
0.2304172814,
0.3752018809,
0.1984272301,
0.0808253586,
-0.1512222141,
-0.0965422615,
-0.2307991087,
0.3625942469,
-0.2430003881,
-0.1153227016,
-0.1199118048,
-0.0832740515,
-0.1397195756,
-0.514206171,
0.4007089138,
0.0255217664,
0.2322934866,
0.114621073,
-0.0001181501,
-0.0146639273,
0.4348631203,
0.0591646135,
-0.122983329,
-0.0048912987,
0.1011945158,
-0.4042518735,
0.2644628882,
-0.4277361631,
-0.0240511335,
-0.9039797187,
0.0427298844,
0.0066634417,
0.1252937168,
0.2079318613,
0.1442271471,
0.1297575086,
0.4764496088,
-0.1806752682,
0.4600850344,
0.1405647844,
-0.2944955826,
-0.0807839781,
0.5120022297,
0.143898502,
0.0992069244,
-0.3135209084,
-0.130956918,
0.0707384944,
0.4406233728,
0.341997236,
0.246075049,
-0.2585650682,
-0.2623867095,
0.3397234976,
0.4132309556,
-0.1750987172,
-0.1234788075,
-0.1843845844,
0.0357518755,
-0.2876293361,
0.0165759791,
0.1087387726,
-0.2263010144,
0.0154624786,
-0.0096947215,
0.1207380444,
-0.4009538293,
0.3173991442,
0.1675134003,
0.292838484,
0.0707612187,
0.2630764246,
-0.1044258773,
-0.3481960297,
0.5756610036,
-0.2738813162,
0.1003334224,
0.2177468836,
-0.0703514069,
0.0229677856,
-0.1750970334,
-0.3643652797,
0.4070280194,
-0.0397159234,
0.234095037,
-0.0654598027,
0.262444675,
0.1516706049,
-0.0850229412,
0.3085603714,
-0.013591826,
-0.289694041,
-0.0956175476,
0.1351409554,
0.0693398863,
0.042380441,
-0.2960191071,
-0.0798202828,
0.2877985835,
-0.0363066569,
0.2192564458,
0.2294502109,
0.057604067,
0.0001427047,
-0.4910028875,
-0.2163025886,
-0.0469093956,
0.2278486192,
0.1335303187,
-0.091233626,
-0.1209773123,
0.3931634426,
0.1145650968,
0.0539097153,
-0.1054861918,
-0.0203385726,
-0.1385605186,
0.0261311717,
-0.092568472,
0.1498644203,
0.1324964017,
-0.0177041553,
0.1824235171,
0.117680952,
0.1183419153,
0.1672093868,
0.1050798297,
0.121610716,
-0.0390887037,
0.0213913769,
0.0607711785,
-0.0322818607,
-0.2146696448,
0.3445394635,
-0.1502038091,
-0.2812198102,
-0.4611908495,
0.0951251388,
-0.2679341435,
0.0268111005,
-0.0855620205,
0.0531741194,
0.3206283748,
-0.0092906207,
0.070060648,
0.0084872451,
0.0941197798,
-0.3910102844,
0.0102526695,
-0.207011506,
-0.310710758,
0.1050076485,
-0.1832686812,
-0.0511370301,
-0.103340432,
-0.0341767296,
-0.183064431,
0.2111127824,
-0.2438432574,
0.3546350002,
0.4485311508,
0.1238437742,
0.0761406943,
0.0937403291,
0.045883432,
-0.1258331239,
0.2754471898,
0.1234983355,
-0.0420811176,
-0.2332236469,
-0.1978220344,
0.136955604,
-0.0650238693,
-0.3227218091,
0.0924910009,
-0.3614102602,
0.4532863796,
0.0346869752,
-0.055667907,
0.1533397734,
-0.1450342685,
-0.3850351274,
0.1831588596,
-0.450504452,
0.1036106423,
0.1198767945,
0.2142673433,
-0.0773844272,
0.0693560541,
-0.348002106,
-0.7058080435,
0.1983205676,
-0.3318611979,
-0.0510809161,
-0.0323285684,
-0.159072727,
-0.216126442,
0.186929062,
-0.2282214612,
0.1236316487,
0.0654983893,
-0.0101886876,
0.1269921362,
-0.2844242752,
-0.3284113407,
-0.3324742913,
-0.0274138823,
-0.0462291874,
-0.5676478744,
0.4337335229,
-0.0152602121,
-0.383444041,
-0.2677717209,
0.2581303716,
0.0449849591,
-0.0654634237,
0.073567763,
0.2084102631,
-0.0886832476,
-0.1237080395,
-0.5375243425,
0.092536442,
-0.0326055661,
-0.4755494297,
0.1485108584,
0.1747863889,
0.0008853078,
-0.2654137909,
0.1246097088,
0.3514431715,
0.2007002234,
0.5677338839,
-0.1623016894,
0.0468119457,
-0.0505779013,
0.1966943294,
-0.0660022274,
-0.0824710131,
-0.0508015193,
0.2496974468,
0.0501040146,
-0.0416225083,
-0.1632544696,
0.2374601066,
0.3121312261,
-0.0719146729,
0.0712541342,
0.0841200501,
-0.1205453426,
0.0141475499,
0.1988030076,
-0.2263310105,
0.1835257709,
0.1453006715,
-0.1091470569,
0.1152715832,
-0.345895201,
-0.0947080851,
0.1184051037,
0.0416250341,
0.4965806901,
0.0626617223,
0.2471483499,
-0.2160764486,
-0.1896664202,
-0.1980231702,
-0.0887104869,
0.1040932983,
-0.2519029975,
0.0450728163,
-0.21138978,
-0.0883214921,
0.0093190558,
-0.5655484796,
0.0671064556,
-0.088141948,
-0.1248616725,
0.13535586,
-0.0841239169,
0.251149714,
-0.0522038639,
-0.2421683371,
0.2563662529,
-0.0964113995,
-0.2533525825,
-0.0717590302,
0.0267721303,
0.0615805387,
0.155464679,
0.069075197,
-0.044958882,
0.2691811919,
-0.0338183008,
-0.3550160825,
-0.2752412558,
0.0499212816,
-0.2036171257,
0.2274008095,
0.4706682563,
0.1386539787,
0.0706336126,
-0.5315932035,
0.3367729485,
0.0535758063,
-0.3053089976,
0.2561751008,
-0.1780285239,
0.0555119365,
-0.0216428041,
-0.089276664,
-0.1382263005,
-0.3535016477,
0.1806749105,
0.5079567432,
0.2637710869,
0.0704961568,
0.2626504898,
0.2246545404,
0.0375613607,
-0.0808723345,
0.1813366711,
0.2828778028,
0.4597240984,
-0.1745244712,
-0.2502919436,
-0.0227670223,
-0.8539389968,
0.0376882851,
0.1683430076,
0.1771164387,
-0.1344533265,
-0.1827842742,
0.1993622482,
0.1049527824,
-0.0358282775,
0.3669691682,
0.105994992,
0.0051781163,
-0.1473032385,
-0.0526273102,
0.4297551811,
0.0648395419,
0.0059895739,
0.2077499926,
0.3540016711,
-0.2904819846,
0.4884474277,
0.2339154184,
-0.2760822177,
0.3280073702,
-0.2727936208,
-0.1918714345,
-0.3395036757,
-0.0488792881,
-0.2594248652,
0.0347660109,
-0.1329666674,
-0.056142211,
-0.1326051503,
-0.3195637763,
0.1813718379,
0.3871636391,
0.0519079268,
0.025386855,
-0.0014423355,
-0.0121575063,
0.2845229208,
-0.0957218036,
-0.0298589841,
-0.2548684776,
-0.1367803067,
-0.2171654701,
-0.2505756617,
0.1864922941,
-0.0306701232,
-0.4782133698,
-0.1128223613,
-0.060532596,
0.2148715258,
0.5360189676,
0.0449313819,
0.1140573323,
-0.0836288035,
0.1271995902,
-0.1206831187,
0.4702152312,
-0.2056219131,
-0.2539268732,
0.592477262,
0.1768162102,
-0.4166942835,
-0.1383582652,
-0.0237039477,
-0.0376473144,
-0.3803616166,
0.1894264519,
-0.4217669368,
0.0324781425,
0.3612158597,
0.2312784344,
-0.0839889646,
-0.179208383,
-0.1439408362,
-0.2551182508,
-0.1262043118,
-0.3026901782,
0.0754064769,
0.3523682952,
0.1189746037,
-0.4888962507,
-0.3445182741,
-0.0403812975,
-0.2198519111,
-0.0591378771,
0.4252812266,
-0.2475014031,
0.0428384021,
-0.3103659451,
-0.0387658514,
0.0678387359,
0.1222123206,
0.1696277112,
0.0364895463,
0.0777313858,
-0.1879543513,
0.4526890516,
0.0788120106,
-0.2287490964,
0.2178769708,
0.0710785836,
0.016012162,
-0.1328127086,
-0.2347790301,
0.4364159107,
-0.3234705627,
-0.067114085,
-0.3596939147,
0.5855858326,
0.1039953381,
0.1038191915,
0.2081758678,
0.1932806075,
-0.2010699511,
0.2021733522,
0.6190620065,
0.8599432707,
-0.0062214136,
0.1288317591,
0.7438940406,
0.1930785328,
0.2325138003,
0.4236090481,
0.0557890944,
-0.4851090312,
-0.117364876,
-0.2180397511,
-0.3682934344,
0.2132680118,
0.160059914,
-0.2500891984,
0.1049614847,
-0.2131562233,
0.4065159857,
0.2036922872,
-0.0523843914,
-0.1543259621,
-0.1582652479,
-0.2367914617,
0.0568632223,
0.1128934771,
-0.509196043,
-0.107366398,
-0.2736948729,
-0.0362203196,
-0.0406350195,
-0.1031137258,
-0.0497530252,
-0.2219360769,
0.0116090365,
0.3405348659,
-0.4945537746,
0.0969380364,
0.2401861697,
0.0545358658,
-0.3938040137,
-0.0949654281,
-0.1582009047,
0.157578364,
-0.2412554771,
-0.2249205709,
-0.3560346961,
0.3116677105,
-0.0391349308,
0.0634181798,
0.0238663964,
-0.0319005772,
-0.1545083076,
-0.096502021,
0.0643357784,
0.1521964967,
-0.2587006092,
-0.2742076218,
-0.0816378295,
-0.1232520342,
-0.1828738749,
0.0355990753,
0.1239330024,
-0.1015353203,
-0.0728856549,
0.0388309509,
0.1103442907,
0.0355494134,
-0.0067556873,
0.6729286909,
0.3418900967,
0.3343163133,
0.3273961544,
0.0259487182,
-0.158526361,
0.1565005481,
0.6011673808,
-0.4475331306,
0.2417574674,
0.1094399989,
-0.2066469938,
-0.2043609917,
0.5340678096,
-0.1007265747,
0.2458522916,
-0.2113165557,
-0.0559876896,
-0.3951446414,
0.4105909765,
0.1197802275,
0.2570126653,
-0.3223995566,
0.0689129084,
0.0030376986,
-0.2505087554,
-0.2125861943,
-0.0127694607,
-0.0930161774,
-0.067652449,
-0.3429585397,
0.0151145598,
0.1378585994,
0.1709834486,
0.0657345057,
0.0698624104,
-0.3820570409,
-0.1314589977,
-0.0381524414,
0.1883569211,
0.1633758694,
-0.1374686956,
0.2331009954,
0.0005477965,
-0.2975277603,
-0.1349497885,
-0.1046609879,
-0.1948809773,
-0.0096147805,
-0.1015764326,
0.2930636406,
0.0848871842,
-0.4199878871,
-0.0363452956,
-0.2228239477,
0.1653897166,
0.0611914396,
-0.0188490171,
-0.0809588507,
-0.0923187807,
-0.048618935,
0.2589800656,
0.0017538443,
-0.1703348458,
0.4338005483,
-0.229349792,
-0.399243474,
-0.2450798154,
0.5093855262,
0.2323615402,
-0.1932422668,
0.1219987273,
0.0153038763,
0.1013645679,
-0.3427644074,
0.0777715221,
0.2787522674,
0.0246663541,
0.1570968926,
0.3537638187,
0.202258572,
0.0182430744,
0.0486771017,
0.0217560753,
0.0099514946,
-0.090686895,
0.0676558018,
0.6141083241,
-0.0121819451,
0.1486713886,
0.4665023983,
0.0863928497,
0.3322012126,
0.1201977581,
0.0987814516,
0.295276165,
0.4559449553,
-0.1217543036,
0.314756453,
0.0493678078,
-0.0089232447,
0.2164129317,
0.6006949544,
-0.1371317059,
0.1976409256,
0.5118808746,
0.1762336493,
-0.0658929497,
-0.2277877182,
0.0167273059,
0.0745889544,
-0.0821539387,
-0.092572771,
-0.0477430299,
-0.2798785865,
-0.4828265905,
-0.11672768,
-0.3559358418,
0.1859840155,
-0.2634469867,
0.2670089602,
-0.4153428972,
0.721195519,
0.2131899893,
-0.037368264,
0.0074031428,
0.5196147561,
0.2977152169,
-0.0227335878,
-0.0710392371,
0.4569800198,
0.3191642463,
0.2489791811,
-0.2854171395,
0.0154571794,
-0.1617579311,
-0.2667805552,
0.0596194565,
0.1258032173,
0.117055729,
0.2419991791,
0.2920164764,
0.0533627495,
-0.0957196355,
0.2782729566,
0.1897237003,
0.0001531877,
-0.168175146,
0.4383735955,
-0.3106479049,
-0.2009636462,
0.172869429,
0.0415563025,
-0.4118336439,
0.0932749659,
0.276167661,
-0.1568498313,
0.0816447511,
0.0230173729,
0.0471566021,
-0.2880286276,
0.5047275424,
-0.0302453712,
0.5685747862,
-0.0571382567,
-0.0395858586,
-0.3826923966,
0.3545949459,
-0.3610603511,
-0.0181551725,
0.4315897524,
0.1460474432,
0.0048915595,
0.1987658143,
0.1994734704,
0.126661852,
-0.2016125917,
0.3863150179,
-0.3414881527,
-0.1408745199,
0.4099107981,
0.1535304487,
-0.2102471441,
-0.2267034352,
0.2206876427,
-0.2635427117,
-0.038719479,
0.2351828963,
-0.0236655921,
0.049142912,
-0.0218448397,
0.454592675,
0.1139243916,
0.1612928063,
0.148077786,
0.0239156187,
-0.2510901392,
-0.2117915601,
-0.2025729716,
0.2957010865,
0.1632517278,
0.4352875352,
-0.2515105903,
0.2785423994,
-0.1491458565,
0.0109391101,
0.0757079422,
0.0707301199,
-0.3185371459,
0.6374909282,
-0.536757648,
-0.0255099311,
0.0312043615,
-0.2014324516,
0.027492024,
0.1525222957,
-0.0613232851,
-0.5150299668,
0.6163954139,
0.0207465664,
-0.4586498141,
0.1995040476,
-0.0950660855,
0.4964281917,
-0.1267416775,
-0.1346387863,
-0.0836289898,
0.3756230474,
-0.0157663263,
-0.0287527218,
0.0455979742,
0.0340925492,
-0.0245658979,
-0.1855211258,
0.0254757609,
-0.0755706653,
-0.1420819014,
-0.3219660223,
-0.5487011075
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Yea unfortunately..
That's a current limitation with Arrow ExtensionTypes that can't be used in the default Arrow Array objects.
We already have an ExtensionArray that allows us to use them as column types but not for subtypes.
Maybe we can extend it, I haven't experimented with that yet | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 48 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Yea unfortunately..
That's a current limitation with Arrow ExtensionTypes that can't be used in the default Arrow Array objects.
We already have an ExtensionArray that allows us to use them as column types but not for subtypes.
Maybe we can extend it, I haven't experimented with that yet | [
-0.021220848,
0.1621371955,
0.019125592,
0.1933746487,
0.3534962833,
0.1465556771,
0.6769050956,
0.1001415402,
-0.1353633702,
0.1697503328,
0.1754418761,
0.2483870536,
-0.2187324613,
-0.0489066914,
0.1682209373,
-0.4851905107,
0.1346689314,
0.3015386462,
0.02285433,
0.0704351962,
-0.0469424464,
-0.1379911751,
-0.2132525742,
0.2988720536,
-0.3213107586,
0.0069465861,
-0.0415844321,
-0.2609832883,
-0.2811137736,
-0.5396838188,
0.4548948109,
-0.1367883533,
0.21576038,
0.0541253574,
-0.0001180573,
0.1391652375,
0.4717526734,
0.1158179939,
-0.2676102519,
-0.0728079379,
0.1165736467,
-0.3765861988,
0.2254808843,
-0.2949298322,
0.0746295676,
-0.8747570515,
-0.0137047321,
-0.0480417386,
-0.0390081964,
0.2231349945,
0.1390295029,
0.1530654877,
0.3917602897,
-0.1380423456,
0.5562931895,
0.202924341,
-0.3445001245,
-0.0331770703,
0.2575602531,
0.1419351101,
0.0736945421,
-0.2520451546,
0.0317473486,
0.1535789073,
0.3329482079,
0.3048070371,
0.3153312206,
-0.2141818702,
-0.093691878,
0.3583949506,
0.4189323187,
-0.1743404716,
-0.2196035832,
-0.1580251455,
0.0351174213,
-0.0825666487,
-0.0719240904,
0.1402471662,
-0.1435852796,
-0.0595128834,
-0.0816432387,
0.2340328544,
-0.4148136377,
0.2877810299,
0.1884301901,
0.0627019107,
0.1177318841,
0.2468918711,
-0.1241738349,
-0.268794477,
0.3728431761,
-0.2962969244,
-0.0879033804,
0.1672549695,
0.0104681589,
0.1018037945,
-0.1779809594,
-0.295091331,
0.3978044391,
-0.0078650853,
0.2624193728,
0.0521328785,
0.2533871531,
0.1738923937,
-0.0227849707,
0.2581658065,
-0.052481506,
-0.0677274689,
-0.1461711228,
-0.0010095984,
0.0735204667,
0.0296859778,
-0.2602938414,
-0.1566110551,
0.4041571617,
-0.1065996811,
0.1934997439,
0.3161321878,
0.0838791505,
-0.0544139743,
-0.5178285837,
-0.1269523799,
0.081973657,
0.05386075,
0.141096741,
-0.0200641118,
-0.0995900929,
0.400256753,
0.0466509983,
-0.0912166983,
-0.1167472824,
-0.0064970516,
-0.2495861948,
-0.1215882525,
0.051768817,
0.157897383,
-0.0178109854,
-0.0600430518,
0.122207731,
0.1848503351,
0.1443340778,
0.0823201686,
0.1457600445,
0.1453525871,
-0.1178046614,
-0.1048187017,
0.0018951586,
-0.0324768201,
-0.2453712821,
0.1876762956,
-0.0354352295,
-0.263818264,
-0.5372962952,
0.088283971,
-0.228808552,
0.0409304313,
-0.3024857938,
-0.0318417922,
0.1760604233,
0.0075881034,
0.0760319084,
-0.1696114093,
0.2447960973,
-0.3598733246,
0.127096951,
-0.1972585469,
-0.2495067865,
0.0388285443,
-0.2804268599,
-0.0530514941,
-0.023477152,
-0.0567800626,
-0.2708205879,
0.0650431812,
-0.185678184,
0.3091666996,
0.5356974006,
0.3405398726,
0.0292395204,
-0.1499931067,
0.1001173407,
-0.1054030061,
0.2279827744,
0.0375018455,
-0.0667348281,
-0.1072201878,
-0.2658880651,
0.2532446682,
-0.1829283983,
-0.2341535985,
0.0166669786,
-0.4594129324,
0.2168780863,
0.0980009139,
-0.0008801508,
0.0604748279,
0.0081521794,
-0.4529453218,
0.0485942438,
-0.4307850003,
0.2427631915,
-0.0923001468,
0.3001604676,
0.0703749657,
0.1670929641,
-0.3774493933,
-0.6568470001,
0.2559567094,
-0.3469603956,
0.0396645963,
0.0744251981,
-0.1671472937,
-0.112822935,
0.2092342526,
-0.0401515588,
0.212995097,
0.0444582216,
-0.0040366203,
0.1563402116,
-0.2169305235,
-0.2036585361,
-0.4877383113,
-0.0552401096,
0.0020826943,
-0.4064584672,
0.454143703,
-0.0363359191,
-0.2464057207,
-0.3527880907,
0.225924015,
-0.1012150571,
-0.0033876188,
0.02500505,
0.1707048416,
0.0352449082,
-0.1194290519,
-0.4558756351,
0.0306929052,
-0.0753997415,
-0.3779908121,
0.1492901742,
0.1526350826,
0.0179342553,
-0.1737756282,
0.1094514132,
0.3874129355,
0.2484332472,
0.5152693987,
-0.0953627601,
0.1582252085,
-0.0314227827,
0.2399683297,
-0.1496783048,
-0.1498090625,
-0.1329910159,
0.1323255897,
0.0241527408,
0.0498933494,
-0.0974258706,
0.0543425083,
0.2293839008,
-0.0608252063,
0.0662456378,
0.1479122043,
-0.2643359005,
0.1247424558,
0.2334784716,
-0.0696419626,
0.0761211962,
0.1735022664,
0.0079988902,
-0.0898218751,
-0.3006953001,
-0.1095322445,
0.1824298799,
0.1665163338,
0.5337376595,
0.0058295573,
0.3214502037,
-0.1366489083,
-0.1477592587,
0.0287920013,
-0.0188666582,
0.0288343262,
-0.2176435441,
0.0899148732,
-0.2739957273,
0.0458774716,
-0.0408510789,
-0.597373724,
0.1676318049,
-0.062509492,
-0.1086528003,
-0.0140207279,
-0.2081927061,
0.2753810287,
0.0204891115,
-0.1851254702,
0.1897023916,
-0.1098248586,
-0.1761683524,
-0.0481247306,
-0.1175923049,
0.0242521167,
0.2732262015,
-0.0044646859,
-0.0865118504,
0.2622175813,
-0.0713400692,
-0.3759308755,
-0.3747504354,
0.0583744608,
-0.1334778368,
0.2712837458,
0.6011122465,
-0.0881973803,
0.0569045991,
-0.4877179265,
0.3660815954,
-0.0498857126,
-0.2371717691,
0.4311590195,
-0.2244034559,
0.1103978753,
-0.1015358567,
-0.0475699157,
-0.0823080093,
-0.2928111255,
0.2672376633,
0.4423726797,
0.207885921,
0.1900188327,
0.3677292168,
0.2935210466,
-0.0595095977,
-0.0418139547,
0.2101394087,
0.3851242661,
0.5554254651,
-0.1326040924,
-0.2390659899,
0.0469728261,
-0.91827178,
0.0598656833,
0.2745571434,
0.0965733975,
-0.0531913824,
-0.1662642807,
0.2467554212,
0.1517785192,
0.0734155849,
0.2363355607,
0.0730140805,
0.0306824856,
-0.0971598402,
-0.0720549524,
0.358954221,
0.0592508093,
-0.0544414185,
0.0599306673,
0.2749341428,
-0.2500487268,
0.4926738441,
0.0323442295,
-0.3953185081,
0.2900137901,
-0.2813068032,
-0.1571723521,
-0.2730333507,
-0.0383773819,
-0.2033660412,
0.0202532783,
-0.0747555941,
-0.0579003245,
-0.0469465703,
-0.3705837429,
0.2049008459,
0.3417932391,
0.0460333973,
-0.0593377016,
0.0681158006,
-0.1048078537,
0.1422338784,
-0.0960888118,
0.01519344,
-0.3160893917,
-0.1001575738,
-0.2141136527,
-0.2398775518,
0.1352550685,
0.03665765,
-0.3534593582,
-0.089907825,
0.1876163334,
0.2133795172,
0.5379565358,
0.0069760904,
0.2843594253,
-0.124365896,
0.1448530406,
-0.0040666088,
0.3810842633,
-0.2507454753,
-0.2140431255,
0.5493077636,
0.2064732015,
-0.4260233045,
-0.1997699589,
0.0115086287,
0.0045286827,
-0.3076286316,
-0.0146604925,
-0.3175294697,
0.0350646898,
0.4345043302,
0.2985558212,
-0.0186326951,
-0.014090322,
-0.1972004771,
-0.1879320294,
-0.0682574064,
-0.3189409375,
-0.0060393959,
0.3794979453,
0.0550573394,
-0.3710643351,
-0.4575195014,
-0.0366515927,
-0.2041072696,
0.0219987296,
0.4698271155,
-0.1820259988,
0.1130627394,
-0.389331758,
0.0157563966,
0.3853191435,
0.1386948079,
0.1158118322,
-0.033930365,
0.1972128898,
-0.0521705672,
0.3916821778,
-0.0113988668,
-0.1500462145,
0.1345305294,
0.0340185873,
-0.0290016197,
-0.018412862,
-0.1875637919,
0.3766221404,
-0.3450864553,
-0.0627886504,
-0.3435285091,
0.6501119733,
0.0876189619,
0.131351769,
0.2399791181,
0.4366542995,
-0.1913465858,
0.3129682243,
0.7067785859,
0.7163439989,
0.0190929323,
0.1417756379,
0.5875766873,
0.0486639217,
0.2839805782,
0.3927364349,
0.1299735159,
-0.4477539957,
0.0877565667,
-0.1177495867,
-0.3426250219,
0.2784101963,
0.1346613467,
-0.1673140526,
-0.1764114499,
-0.2258793414,
0.5874400139,
0.1703425497,
0.0179732814,
-0.3542062938,
-0.1725925356,
-0.0608991757,
0.0736889988,
0.1389013678,
-0.5042873025,
-0.0324830078,
-0.2297135592,
-0.1975992918,
0.0037449673,
-0.2245842367,
-0.0636291802,
-0.2012911141,
-0.0964099467,
0.4480982423,
-0.4837571979,
0.2040239424,
0.2226606011,
0.1445985436,
-0.2737848163,
-0.1472530365,
-0.0684630349,
0.2030748576,
-0.320040375,
-0.1794198304,
-0.3234151006,
0.196707204,
0.0785889179,
0.0055462122,
0.0469658971,
0.0079797655,
-0.1857352257,
-0.0939309224,
0.0207627881,
0.2710926533,
-0.3104764819,
-0.0762962177,
-0.2866950929,
-0.1470491737,
-0.1473861337,
0.0409676842,
0.0230460148,
-0.1762242615,
-0.0833938867,
0.0549642406,
0.1699424982,
0.0378515944,
-0.0440755263,
0.6143609285,
0.4108809829,
0.34308061,
0.2616028786,
0.046691224,
-0.1633809656,
0.1584558785,
0.7001414299,
-0.5357527733,
0.1756702513,
0.0948993713,
-0.2978060842,
-0.1640963554,
0.5314982533,
-0.0296762791,
0.2333254069,
-0.2450131923,
-0.0202229917,
-0.3762755692,
0.4165403247,
0.0881203786,
0.3043985069,
-0.2610391676,
-0.0439728796,
-0.0204675756,
-0.084344238,
-0.2042538226,
0.0000114106,
0.0268678069,
-0.0468637459,
-0.4833244085,
-0.044960361,
0.1146535873,
-0.028198434,
0.0764421076,
0.0469549745,
-0.3073563278,
-0.0938725322,
-0.0695835575,
0.1445751786,
0.075007543,
-0.160996601,
0.1316703111,
-0.0184960961,
-0.2922176421,
-0.1102907509,
-0.1173487827,
-0.1716520786,
-0.1885484159,
-0.1003640294,
0.3707645833,
0.0218675695,
-0.4096212089,
-0.0622745045,
-0.2591798902,
0.2143732756,
0.1431516111,
0.0104113603,
0.0338707529,
-0.0140718594,
0.0108552314,
0.240366295,
-0.0489343777,
-0.2167770565,
0.3667784929,
-0.2843900919,
-0.3287571073,
-0.2931695282,
0.3823818862,
0.3120449185,
-0.1300274581,
0.1466230154,
0.1218251586,
0.0957395583,
-0.2635985613,
0.0599469431,
0.2136283815,
-0.1237898469,
0.1957716793,
0.3809492588,
0.173332572,
0.0293949246,
-0.0499516353,
0.074718006,
-0.0583286248,
0.0404806957,
0.1580372155,
0.7727531791,
-0.0889630839,
0.0468706489,
0.3463777602,
0.0572018735,
0.309258759,
-0.137606144,
-0.0499250032,
0.4082030654,
0.1194055229,
-0.1470284462,
0.2353641093,
0.0365151316,
0.1436933279,
0.2908634543,
0.5998584628,
-0.0655348524,
0.1546141952,
0.645866096,
0.1295801699,
-0.0608997494,
-0.3079250455,
-0.1705604196,
0.0009383895,
-0.0170825608,
-0.3197795451,
-0.0718169063,
-0.3400319815,
-0.3777695298,
-0.2001767457,
-0.3219615519,
0.1966746598,
-0.2414501905,
0.1399933398,
-0.2682495117,
0.60583359,
0.1733976007,
0.0186113175,
-0.011450775,
0.4665213227,
0.1931342632,
-0.1103846207,
-0.1041189656,
0.3926159441,
0.2352757603,
0.3206699789,
-0.2402933687,
-0.1084053963,
-0.0384168848,
-0.2632311583,
0.0478269309,
0.1419234276,
0.2050633878,
0.1260258853,
0.2356912047,
0.0549226776,
-0.0762817189,
0.1294130385,
0.1068350747,
-0.0240245201,
-0.1870777309,
0.4449996948,
-0.20764938,
-0.1497955024,
0.1466753036,
-0.0625944212,
-0.2974496484,
-0.1419371068,
0.1849877536,
-0.1132821292,
0.0068518594,
-0.0043783821,
0.0315436944,
-0.1552273333,
0.5530236363,
0.0463126823,
0.4742759168,
-0.0836474001,
-0.04956498,
-0.2923720181,
0.2667787671,
-0.4952574372,
-0.0020598918,
0.4960640073,
0.2562363148,
-0.0065291561,
0.1396312416,
0.1487073898,
0.3494870067,
-0.0630580634,
0.4208667874,
-0.2486193627,
-0.183461085,
0.4288113117,
0.0162887555,
-0.1165726483,
-0.3974457383,
0.2201229334,
-0.2266694307,
-0.0249235965,
0.2209423929,
0.025127776,
0.166477859,
0.1008817703,
0.5126072168,
0.0213209968,
0.0937749371,
0.2348667979,
0.0071406811,
-0.3104788959,
-0.2480720878,
-0.241710946,
0.1454451233,
0.042988427,
0.4380660355,
-0.2261762321,
0.1597022712,
-0.0859449729,
-0.0857117102,
0.07238511,
0.1899730265,
-0.2099247873,
0.5638707876,
-0.6787708402,
-0.0031190589,
-0.024871029,
-0.2467941642,
0.0584503338,
0.0574174821,
-0.1613290459,
-0.3593488932,
0.6176450253,
-0.1556901336,
-0.4157744646,
0.1446664184,
-0.0950239524,
0.4629308581,
-0.152149111,
-0.2348794043,
-0.1205971912,
0.3565762937,
0.0417904072,
0.0196834579,
0.0153244659,
0.0872723237,
-0.0093901381,
-0.2324378043,
0.1348856091,
-0.0955720693,
-0.0258567184,
-0.3619649112,
-0.523622632
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Cool
So please consider this issue as a feature request for:
```
Array3D(shape=(None, 137, 2), dtype="float32")
```
its a way to represent videos, poses, and other cool sequences | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 28 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Cool
So please consider this issue as a feature request for:
```
Array3D(shape=(None, 137, 2), dtype="float32")
```
its a way to represent videos, poses, and other cool sequences | [
-0.1195071042,
0.2424518168,
-0.0825230628,
0.0961938277,
0.3023023605,
-0.0807916597,
0.6678082347,
0.1274510771,
-0.4523450732,
0.2668217421,
0.3651506901,
0.1533160359,
-0.2551757395,
0.1488410234,
0.2744104862,
-0.4257725775,
0.1371484846,
0.5718724132,
0.189660579,
0.1134702638,
-0.0811235383,
-0.091071263,
-0.1586166769,
0.1871945113,
-0.3031569719,
-0.0180849116,
-0.1779542565,
-0.3297392428,
-0.1345255673,
-0.4514861405,
0.2623900175,
0.0389634147,
0.1677658558,
0.1494594067,
-0.0001254906,
-0.0167879835,
0.5140051246,
0.0055479482,
-0.1965208054,
0.0710478425,
0.0390498042,
-0.509462297,
0.2315447927,
-0.2614151537,
-0.0486274324,
-0.5891056657,
-0.0373309329,
-0.0661953986,
-0.0366019942,
0.137748614,
0.0999123603,
0.2449054122,
0.1895419955,
-0.0658867359,
0.5248129368,
0.6106520891,
-0.4015274942,
-0.0032519661,
0.4093413353,
0.0484810993,
0.0090827718,
-0.0446683504,
-0.1138377339,
0.1528002918,
0.3713421822,
0.1253391504,
0.4157229066,
-0.3516635299,
-0.119751066,
0.3804669976,
0.513259232,
-0.2269852906,
-0.1633283049,
-0.1825229824,
0.1375932693,
-0.1191868931,
-0.168157801,
0.2776906192,
-0.3058536053,
-0.1067288071,
-0.3200064003,
0.1812179536,
-0.451974988,
0.4415173531,
0.231964469,
-0.0324623697,
0.026533179,
0.1550101638,
-0.1543134004,
-0.2096683681,
0.6051818132,
-0.3144930899,
0.1713803113,
0.0266732015,
0.2315783054,
0.0007798821,
-0.1781045645,
-0.2584559321,
0.2240983546,
0.0240562782,
0.1896695793,
0.0009134989,
0.3361068368,
0.0549353436,
-0.2350885272,
0.1551096588,
0.0196652897,
-0.2865148187,
-0.1086952388,
0.1641210914,
0.0523839891,
0.0812802687,
-0.0928827301,
-0.1581503004,
0.2144553661,
0.1445920765,
0.2246970236,
0.3323439658,
0.0989633873,
-0.0212182775,
-0.6472468376,
-0.1190169305,
0.0493507795,
0.167611897,
0.1162118018,
0.0217955709,
-0.1420210302,
0.4201962352,
0.041330792,
-0.1068363115,
-0.1327310354,
0.0284796059,
-0.2020915151,
0.0345517173,
0.1474197805,
0.2719278038,
0.0682377815,
-0.1098783538,
0.2920950949,
0.1149881929,
0.2518875599,
0.1304157227,
0.2680570483,
0.184397012,
-0.1766605973,
-0.029183276,
-0.0108277053,
0.023978591,
-0.2019138932,
0.2528160214,
0.0359997973,
-0.291166544,
-0.4017086923,
0.0675731227,
-0.1332113445,
0.1147954613,
0.0110671706,
0.0392670631,
0.1291618645,
-0.0920961797,
0.0919330642,
-0.0653634965,
0.0920571089,
-0.4038434625,
0.1100912616,
0.058743231,
-0.3762680292,
-0.0060136616,
-0.1785340756,
0.0598908067,
-0.0581475198,
-0.0933829546,
-0.245500654,
0.1491196901,
-0.2815331817,
0.097854957,
0.5955638289,
0.0683712661,
-0.0665700436,
0.1286036819,
0.077809155,
-0.1911043376,
0.2700203657,
0.1773523539,
-0.0744974911,
-0.091733031,
-0.3189811707,
0.3159512877,
-0.1740138233,
-0.2062490284,
0.0853025764,
-0.4805606008,
0.5045500994,
0.1227779165,
0.0911303759,
-0.0121929608,
-0.0017256327,
-0.3954712451,
0.1035294831,
-0.5231148601,
0.2263594568,
0.0648658946,
0.3272498548,
-0.101729393,
0.0142546184,
-0.2904189825,
-0.7621379495,
0.1118580997,
-0.3817772865,
0.0323972702,
-0.0928594172,
-0.0941650793,
-0.0098007172,
0.1435676962,
-0.1588364989,
0.1365592182,
0.0186945125,
0.2234544158,
0.175522238,
-0.0927115977,
-0.1479677558,
-0.4886062741,
0.1605401933,
-0.0935594663,
-0.3995203972,
0.6104866862,
-0.0304092336,
-0.3412742615,
-0.2333664149,
0.3026457727,
0.1116786227,
-0.1268320531,
0.0759549141,
0.0232764818,
-0.0467141494,
-0.0072605237,
-0.5716787577,
0.1451815665,
0.1695387959,
-0.5125935078,
0.3018429875,
0.2380749881,
-0.0208656844,
-0.2693946362,
0.2650478184,
0.535446167,
0.0164003633,
0.559913218,
-0.1488922536,
0.1069110632,
-0.0834949389,
0.3042314649,
-0.1710582823,
-0.2814381421,
-0.0770818293,
0.3215997517,
0.2348316014,
-0.0816384405,
-0.1202614754,
0.1673326492,
0.3450401425,
-0.1063042879,
0.1170570105,
0.1044826284,
-0.1672398746,
0.0305952281,
0.2194488794,
-0.2486447394,
-0.0095982999,
0.1133676767,
-0.1509045511,
-0.016722599,
-0.1790007204,
-0.1775206923,
0.2399975508,
0.197898984,
0.5377185941,
0.1734980941,
0.2530478537,
-0.2342144102,
-0.2563252449,
-0.2838899791,
0.078215614,
-0.0029493403,
-0.1662905514,
0.0819261,
-0.0985968783,
-0.1753586233,
-0.0538215898,
-0.8407207727,
-0.0549626164,
-0.0161436275,
-0.1332003027,
-0.018302165,
-0.125045076,
0.290463537,
0.1349972337,
-0.1161114573,
0.1887720227,
-0.127941668,
-0.2394808084,
-0.0208783392,
0.0010634148,
-0.047881227,
0.1938604712,
0.1102152318,
-0.0285726637,
0.0893602893,
0.1956143826,
-0.4436905384,
-0.4140672684,
0.0761561692,
-0.0546477176,
0.3043237925,
0.6237304211,
-0.0288501196,
0.1416361928,
-0.4335571229,
0.372001797,
0.030733481,
-0.198016271,
0.2701031268,
-0.1912999451,
0.1311506033,
-0.0774391294,
0.1274388283,
-0.0436305478,
-0.2877107263,
0.1742714345,
0.4535891414,
0.2285219282,
0.0646871328,
0.3853498399,
0.3064380288,
0.0319392532,
0.0617696494,
0.2502895296,
0.3139865398,
0.3440009058,
-0.1534816772,
-0.1516786069,
-0.0795786381,
-0.8197320104,
-0.0414601117,
0.1995375007,
0.0056265965,
-0.3204468191,
-0.1587316245,
0.2815924287,
0.0212314334,
0.0466252863,
0.3734763861,
0.1232594848,
0.119304128,
-0.0999317989,
-0.2473724484,
0.3200202286,
0.1477466077,
-0.1601671129,
0.0104148351,
0.4238668382,
-0.2608792186,
0.6008729935,
-0.0103286877,
-0.3659656048,
0.3163512945,
-0.1680751592,
-0.0308005363,
-0.2145525366,
-0.0248500519,
-0.1443898529,
0.0874090567,
-0.0968138054,
-0.0515100397,
-0.1967115998,
-0.296780318,
0.1497735083,
0.2748078406,
-0.0645299405,
0.0163017288,
-0.048533015,
-0.1632586718,
0.1895653754,
-0.170474261,
0.0903793573,
-0.2627586126,
-0.1558353007,
-0.1304804087,
-0.2118924856,
0.2559705377,
-0.0261650421,
-0.3173456788,
-0.0732128322,
0.070220992,
0.1907730997,
0.641117394,
0.0179139413,
0.1241756082,
-0.0189886019,
0.0827424526,
-0.0936161503,
0.7690870166,
-0.2436898649,
-0.1289534569,
0.4463673532,
0.0362391323,
-0.4153815508,
-0.1920950115,
-0.1146054268,
-0.0710531622,
-0.3726540804,
0.1269795746,
-0.2047904432,
-0.0257862024,
0.3133608699,
0.3239361048,
-0.018565692,
-0.098193869,
-0.1191841513,
-0.153501302,
-0.1967300773,
-0.3282933235,
-0.0400127545,
0.3237630725,
0.2426332235,
-0.4854756594,
-0.3750821352,
-0.1122347713,
-0.0675324053,
-0.1278326213,
0.3981781006,
-0.0636543557,
0.0789542869,
-0.4502410889,
0.0193286017,
0.2227460891,
-0.1319339871,
0.2497081608,
0.0249831025,
0.1944117844,
-0.0653872713,
0.5268790722,
0.2793342471,
0.0070959218,
0.0411038436,
0.0846435577,
0.0907712355,
-0.1872560233,
-0.1035775691,
0.3837705553,
-0.4485937655,
-0.1014220417,
-0.2877463102,
0.5306908488,
-0.0551609732,
0.1810454577,
0.0935235918,
0.4269597828,
-0.2141288817,
0.2697051466,
0.6378161907,
0.9567363858,
0.0340463445,
0.3521621823,
0.6656086445,
-0.0162934512,
0.2430687249,
0.3726679385,
0.1453525871,
-0.4971995354,
-0.0267081782,
-0.1719362438,
-0.4330449104,
0.1819637865,
0.1326774955,
-0.2565490603,
-0.0561422557,
-0.1485047936,
0.2846316993,
0.070654884,
-0.0362540521,
-0.1029656753,
-0.144687444,
-0.09484604,
0.0010900684,
0.0123767983,
-0.3828655183,
-0.1385523379,
-0.3460882008,
-0.0228880793,
0.0327559933,
-0.1455656439,
0.0021426007,
-0.2827847004,
0.0419151857,
0.3617228866,
-0.6093156338,
0.0306672603,
0.0879781395,
0.0515799932,
-0.2078799158,
-0.1185669228,
-0.1019460261,
0.3350897431,
-0.2927415073,
-0.2024456263,
-0.3291127682,
0.3069599569,
-0.0366925709,
0.0343524665,
0.1367979646,
0.0006996095,
-0.0908614695,
-0.1594606042,
0.0150704058,
0.2453792691,
-0.1630984545,
-0.342320472,
-0.2061365843,
-0.1085420847,
-0.042359367,
-0.0009978842,
0.0876538455,
-0.2088276744,
-0.2218297422,
0.1476568282,
0.1027666181,
-0.0497642532,
-0.0066635348,
0.4624759853,
0.2039840221,
0.3091705441,
0.3508846164,
-0.0702254474,
-0.1864086986,
0.2011596262,
0.4627958238,
-0.5874420404,
0.1854406893,
0.1240334809,
-0.2766522169,
-0.0849190578,
0.4894618094,
-0.1367442608,
0.345524013,
-0.1024455279,
-0.0035814568,
-0.3030041754,
0.1414216459,
0.0851138383,
0.3611209095,
-0.2015338987,
-0.1205841973,
0.0020430982,
-0.1557763517,
-0.1603777111,
0.0274453983,
0.1507696956,
0.0718493238,
-0.648078084,
-0.160315603,
-0.1307606101,
0.1700796336,
0.0427884236,
0.069240123,
-0.472014904,
-0.0495758578,
-0.0446764193,
0.2160996795,
0.0868033767,
-0.0737599358,
0.1676156521,
0.0494852737,
-0.3284144998,
-0.1556384265,
-0.090865314,
-0.1441151798,
-0.1505562663,
-0.0630209297,
0.3078471422,
-0.099776715,
-0.3593603373,
-0.1216497049,
-0.1980054528,
0.3116020262,
0.1084491611,
0.0544849373,
-0.0120750964,
-0.0124391988,
-0.069784157,
0.2384720445,
-0.0767386779,
-0.1882882565,
0.3575380147,
-0.2864847481,
-0.3052307367,
-0.2400891632,
0.3885750771,
0.0224891379,
-0.2447905242,
0.0734744519,
0.1066965908,
0.0882800147,
-0.2088195086,
-0.0326342657,
0.1386855692,
-0.0958518013,
0.1512497365,
0.4127184749,
0.1199402958,
0.047712326,
-0.0144564956,
0.0668141991,
-0.2037325203,
0.021463111,
0.1346935183,
0.5152424574,
-0.0964200646,
0.0465311147,
0.3629016578,
0.1197190359,
0.3032964766,
-0.0718876272,
-0.0999754965,
0.241374895,
0.1897227317,
-0.1481651962,
0.280544579,
0.0797763318,
0.0472675823,
0.244150877,
0.5410908461,
0.0388211831,
0.0845872462,
0.2596605718,
0.119175598,
-0.0498791486,
-0.4547810555,
-0.0564663783,
0.0095200762,
0.0025753379,
-0.0519646034,
-0.034516193,
-0.2187308818,
-0.2139030993,
-0.1241589785,
-0.3498775661,
0.1636024415,
-0.0278086215,
0.2309526205,
-0.0594361052,
0.7911983728,
0.147461623,
0.0351061672,
-0.0823309124,
0.3654716313,
0.1892609,
-0.0842178836,
-0.2363669574,
0.3424327374,
0.3028409183,
0.3057925403,
-0.4137303531,
-0.0027468875,
-0.0482065938,
-0.2514016926,
0.0007550418,
0.1104698628,
0.1996534616,
0.3655868769,
0.243026644,
0.05292999,
-0.077584967,
0.1095646322,
0.2621610463,
-0.059065856,
-0.2608362734,
0.4748166502,
-0.3683909774,
-0.0772835463,
0.020059593,
-0.0214004964,
-0.4413031936,
-0.0922148153,
0.3433690667,
-0.2222930789,
-0.0314977169,
0.0078840069,
0.0003661886,
-0.4076479375,
0.4685805738,
0.0565808155,
0.5203982592,
-0.1426042765,
-0.057029359,
-0.1997388005,
0.2256310284,
-0.18276757,
0.0631258413,
0.3602494299,
0.2822048068,
-0.0702930167,
0.1351902783,
0.081796959,
0.3429287672,
-0.0095852241,
0.3274741769,
-0.3078687787,
0.072147347,
0.333243221,
0.0698348135,
-0.0840913355,
-0.3582054377,
0.15510647,
-0.3811788559,
-0.0411696918,
0.1865785718,
0.0476585105,
0.0602169335,
0.3429684043,
0.4439251423,
0.0021100231,
0.0794412196,
0.1255158037,
-0.1302111298,
-0.1910494566,
-0.1506795883,
0.017182976,
0.4100230634,
-0.0303913001,
0.5122290254,
-0.2526364923,
0.46741575,
-0.1593757719,
0.1406831145,
0.1890549213,
0.2505686283,
-0.1429095268,
0.4738930166,
-0.6883054376,
0.06143637,
0.1171915084,
-0.244753018,
0.1054182053,
0.144407481,
-0.0944654047,
-0.3961618245,
0.6354134083,
-0.236148417,
-0.5173556805,
0.1891825348,
-0.0922152847,
0.3242469728,
-0.04866492,
-0.3283877373,
-0.0839729011,
0.4084094167,
0.0294564515,
0.0013382211,
0.1020154953,
-0.0959285498,
-0.010799244,
-0.1552883387,
0.1843913347,
-0.015267238,
-0.1727776378,
-0.4269971848,
-0.5472986698
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | @lhoestq well, so sequence of sequences doesn't work either...
```
pyarrow.lib.ArrowCapacityError: List array cannot contain more than 2147483646 child elements, have 2147483648
```
| I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 23 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
@lhoestq well, so sequence of sequences doesn't work either...
```
pyarrow.lib.ArrowCapacityError: List array cannot contain more than 2147483646 child elements, have 2147483648
```
| [
-0.1600919068,
0.1551733613,
-0.1365799308,
0.2011847794,
0.2378049195,
0.0024270266,
0.5615334511,
0.0813987479,
-0.1561109722,
0.1868873388,
0.3679440022,
0.1477246881,
-0.1952097267,
-0.0751515478,
0.1982177943,
-0.374019295,
0.1051326245,
0.4515881538,
0.0958150774,
0.0815605074,
-0.1296785176,
-0.100008212,
-0.2531840205,
0.2315305769,
-0.2545686662,
-0.1155644804,
-0.1887784749,
-0.2444769144,
-0.0653286651,
-0.6357089281,
0.2661862075,
0.0415750109,
0.1111065075,
0.2200845182,
-0.0001201842,
-0.0430638865,
0.4993037581,
0.0553214252,
-0.186355114,
-0.0483909398,
-0.0165864378,
-0.5161792636,
0.2466997206,
-0.2830960751,
0.0256019011,
-0.6335043907,
-0.0507780239,
-0.1111694053,
0.0991794094,
0.2162888944,
0.1357580423,
0.101299569,
0.2948569655,
-0.1379255205,
0.4939410388,
0.1856489182,
-0.2645459175,
-0.006446274,
0.4243836105,
0.007798098,
0.0039840266,
-0.2260000706,
-0.0914992839,
0.194660455,
0.3239576519,
0.2544254363,
0.1728011221,
-0.2684164345,
-0.1167435348,
0.4633981884,
0.5487832427,
-0.1992025226,
-0.2062031776,
-0.162351653,
0.0251368172,
-0.2495517433,
-0.0168563314,
0.223023057,
-0.2625147402,
-0.0679105967,
-0.296022445,
0.2252053171,
-0.3634743392,
0.3561138511,
0.2739035189,
0.074184522,
0.0362600349,
0.1922658384,
-0.0426768214,
-0.1601042747,
0.4481903017,
-0.2737980187,
0.0411333479,
0.2004847527,
-0.0477831736,
0.0812528878,
-0.1787545383,
-0.2598589659,
0.386629343,
0.1006256491,
0.2853741944,
-0.0497441404,
0.240791589,
0.0112909954,
-0.1565420628,
0.2287866622,
-0.0354377665,
-0.1955488324,
-0.153438732,
0.1481016874,
0.1131823212,
0.1070682555,
-0.0841123164,
-0.2671605647,
0.3421691954,
-0.0100377668,
0.1621025801,
0.2628886104,
-0.0015818775,
0.1584803015,
-0.7266275883,
-0.2275590897,
-0.0102350079,
0.2344358116,
0.067370221,
-0.0787664503,
-0.1443528235,
0.3206436336,
0.0690721869,
0.0175566152,
-0.2220752984,
-0.0282844007,
-0.1574121416,
0.1480098963,
-0.0056367666,
0.1456130147,
0.1314304769,
-0.0021541044,
0.1279089451,
0.0469314232,
0.2403782457,
-0.0591414869,
0.1808517277,
0.1860532314,
-0.1897395253,
0.0794374496,
-0.0132834436,
-0.1411845982,
-0.2069685906,
0.3373621106,
-0.0748128891,
-0.2489272952,
-0.2396023124,
0.1195375472,
-0.2464337796,
0.1436355561,
-0.0567748733,
0.0221288614,
0.3504427075,
0.0329586044,
0.0972868651,
-0.0463142581,
0.1343157738,
-0.3639495075,
0.0316103399,
0.0291703418,
-0.4040645659,
0.1027747318,
-0.0170010254,
0.0420775712,
0.0010878108,
0.0002232268,
-0.2483725846,
0.3167396188,
-0.3398919404,
0.3151928782,
0.4771946073,
0.2314244658,
-0.1476492137,
0.0780264139,
0.0087049603,
-0.1805401444,
0.2836228907,
0.124706775,
-0.0706822723,
-0.1788302362,
-0.2814866304,
0.1967941374,
-0.0682694688,
-0.2683038414,
-0.0474519134,
-0.3563321233,
0.328225106,
0.0095101073,
-0.0300089195,
-0.0579114147,
-0.0611508675,
-0.3634930551,
0.0984666571,
-0.3985062242,
0.1682201922,
0.3102672398,
0.2540772557,
-0.1070062667,
0.0180024654,
-0.2215558141,
-0.6752678752,
0.1367511749,
-0.3360008597,
-0.071446687,
-0.1608764827,
-0.0421855301,
-0.1771293581,
0.2556403577,
-0.2550109625,
0.1528829932,
0.0767280683,
0.1722391248,
0.2379296124,
-0.2839889526,
-0.1291727424,
-0.2462116778,
0.0235674232,
-0.0346851386,
-0.4833646417,
0.6345502138,
-0.0643043891,
-0.3637026846,
-0.2196399271,
0.1341253817,
0.0457706712,
-0.1106668711,
0.0889575928,
0.2254214585,
0.0635241568,
-0.1646241695,
-0.4993399084,
0.0038291812,
0.1241195872,
-0.5690357089,
0.0915196165,
0.230225563,
0.0061182193,
-0.253962785,
0.1037807465,
0.3309838176,
0.0091492571,
0.5892528892,
-0.1080661565,
-0.0582962744,
-0.0223792307,
0.2074621916,
-0.1052799374,
-0.1419217885,
0.0479140468,
0.3649190664,
0.3332378864,
-0.0593751371,
-0.080915466,
0.0729770288,
0.2331446409,
-0.0524768457,
0.0030048192,
0.0871590525,
-0.1870847344,
-0.0404212289,
0.1665886194,
-0.2382638603,
0.1528130472,
0.1505666673,
-0.1506052911,
-0.0140663069,
-0.3169111013,
-0.2260746062,
0.1385509372,
0.155843243,
0.5817114711,
0.1286942959,
0.3334383965,
-0.131929338,
-0.1932004392,
-0.3791245818,
0.0576526076,
0.1512161046,
-0.1938260198,
0.1737959534,
-0.1454395056,
0.03654854,
0.0281194262,
-0.6938304901,
0.0446569882,
-0.0963609144,
-0.1944788843,
0.0538632497,
-0.1052142978,
0.2162926495,
0.1200707555,
-0.2124531865,
0.2809820771,
-0.0610847399,
-0.1656043231,
-0.0961055756,
-0.0122707114,
0.0360584781,
0.2140235156,
0.0470586047,
0.0029295962,
0.1734707654,
-0.0841617063,
-0.4023234844,
-0.33856076,
0.072232008,
-0.089183785,
0.2077837586,
0.5260068774,
0.0793339014,
-0.0433285981,
-0.5001626611,
0.3418539464,
0.171260044,
-0.2787891626,
0.358145386,
-0.2093978822,
0.1884742081,
0.0264003649,
-0.0835734159,
-0.0133488812,
-0.3030291498,
0.2011643648,
0.5015563965,
0.2515632212,
0.2823500633,
0.3574546278,
0.2633709908,
-0.0483493693,
-0.0047428682,
0.1647399217,
0.3353207409,
0.3585028946,
-0.1083961576,
-0.2562661171,
-0.1058745086,
-0.8942086101,
0.0657698959,
0.3306564689,
-0.0534471944,
-0.2664448917,
-0.2960110605,
0.2652876973,
-0.0444681197,
0.1249459535,
0.3958415985,
0.1515054703,
-0.0277539007,
-0.075114578,
-0.0660347939,
0.4360358119,
0.01464561,
0.033035256,
0.0122601353,
0.3850973845,
-0.1809915006,
0.6154463887,
0.2386416197,
-0.2948967814,
0.2468744218,
-0.268776685,
-0.0161000155,
-0.3804986775,
0.1405595839,
-0.2149464041,
0.1324998438,
-0.1396271735,
-0.0848143846,
-0.1557294577,
-0.1856854558,
0.2108890414,
0.3257877827,
-0.0560116582,
0.0270619541,
-0.0124886259,
-0.0062737726,
0.2157735527,
-0.0722609684,
0.0085481256,
-0.165700078,
-0.121909216,
-0.2832225561,
-0.3324131072,
0.2549268305,
-0.042073708,
-0.4164334238,
-0.0695747137,
0.0470711291,
0.1746811271,
0.5719996095,
0.0572093427,
0.2247126102,
-0.1525772214,
0.1133041903,
-0.1367259324,
0.502954483,
-0.1614838541,
-0.2173502147,
0.5037879944,
0.1487830132,
-0.3988546133,
-0.172826767,
-0.1450509429,
0.105017297,
-0.3108483851,
0.0374074169,
-0.3851981759,
0.0350426361,
0.2270036936,
0.4519896805,
0.0308631063,
-0.1545874178,
-0.1730751097,
-0.2341373861,
-0.1679702997,
-0.1769972444,
-0.0772143453,
0.3325336277,
0.1185414121,
-0.5217427015,
-0.2831085324,
-0.2218746543,
-0.2166456282,
-0.1168450266,
0.4292852581,
-0.0959720388,
0.1976206601,
-0.4244103134,
-0.0217127018,
0.2756633461,
0.075505726,
0.2074223608,
0.0471867658,
0.1186166406,
-0.1547592878,
0.381293416,
0.1365751624,
-0.0977917537,
0.1208828092,
0.0873418003,
0.1731406301,
-0.0309425164,
-0.1182435751,
0.2858742476,
-0.3870584369,
-0.2409188747,
-0.2526111603,
0.6065796614,
0.0345117152,
0.1306642592,
0.2011974156,
0.3789950311,
-0.1907280385,
0.154451251,
0.5385937095,
0.8276061416,
-0.1091829836,
0.1095599681,
0.6449869275,
0.1066075712,
0.3623753488,
0.4651367664,
0.1103198081,
-0.4643546641,
-0.1454162002,
-0.095039174,
-0.475338161,
0.18984209,
0.2201739848,
-0.2813167572,
0.1027400643,
-0.2025313973,
0.4250154495,
0.1137103587,
-0.1704334021,
-0.1086484492,
-0.1236270443,
-0.2000632584,
0.0582707375,
0.0476624891,
-0.352681458,
-0.1718631387,
-0.1864745021,
-0.095022738,
-0.1046453416,
-0.0701148883,
-0.0149999782,
-0.3250386417,
-0.045403,
0.4836613238,
-0.7281643152,
0.0198512077,
0.1408112347,
0.0578352362,
-0.1766627878,
-0.0700274706,
-0.1826734543,
0.0984091461,
-0.2828505337,
-0.1620807499,
-0.3218930662,
0.1863594949,
0.0097958818,
0.0841341317,
0.1313338727,
-0.1087408662,
-0.1377043128,
0.0513095111,
0.1794709861,
0.1363494545,
-0.2245841324,
-0.2015949786,
-0.0501843952,
-0.2770041227,
-0.1344669461,
0.0315409265,
0.144211188,
-0.1530607343,
-0.1088706329,
0.0898806304,
0.0480569601,
-0.0880135298,
0.0267976746,
0.6479641199,
0.2005577981,
0.4696875811,
0.2697418332,
-0.0549196824,
-0.1910223961,
0.0595995039,
0.5864044428,
-0.614002645,
0.1377328485,
0.0855307132,
-0.1088808179,
-0.0170557126,
0.5587211847,
-0.1463164687,
0.3311332762,
-0.0994504914,
-0.0858523026,
-0.3952623308,
0.2944935262,
0.0345838666,
0.2714485824,
-0.2411225736,
-0.0056882706,
-0.049024038,
-0.0177654196,
-0.2013215125,
-0.0274353251,
-0.1023833901,
0.0754279643,
-0.5516822934,
-0.0063281106,
0.0060599521,
0.1183264554,
0.0839468017,
0.1277221441,
-0.4031299353,
-0.1666738987,
0.0490457341,
0.1636103094,
0.1434488147,
-0.136478126,
0.1057922542,
0.016443029,
-0.2059161365,
-0.1904213727,
-0.0890773088,
-0.1587845385,
-0.1524308026,
-0.1798937172,
0.3732468188,
0.0133503089,
-0.4500877857,
-0.0993072763,
-0.3206630945,
0.3353332579,
0.0838316381,
0.0338703394,
0.0518513247,
-0.0675968677,
-0.1365986168,
0.2506709099,
0.0252410192,
-0.2826597393,
0.3494509459,
-0.4587413967,
-0.382181406,
-0.1372279227,
0.4560288787,
0.2827410996,
-0.1941176504,
0.0783234686,
0.0601531677,
0.138098076,
-0.2400970459,
-0.0345080234,
0.0729426518,
-0.0124860443,
0.1442500353,
0.338478595,
0.2148670852,
-0.1368961781,
0.0849255919,
0.1068421453,
-0.0443747379,
-0.0057369573,
0.0059636198,
0.6895574331,
0.0221741945,
0.0649674237,
0.4045622349,
0.0822869167,
0.3356210291,
-0.025246067,
-0.0928711295,
0.335350126,
0.2887385488,
-0.0284226537,
0.1966648698,
-0.0920880735,
-0.0686001554,
0.286398977,
0.574316442,
-0.2170491517,
0.1065243632,
0.3571173847,
0.2653897703,
0.063802667,
-0.2555144429,
-0.1167542636,
0.0768638775,
-0.0006837249,
-0.1098318622,
-0.0275495648,
-0.1941814125,
-0.3827089965,
-0.1505113542,
-0.3897605538,
0.2327123582,
-0.1659683883,
0.2177747637,
-0.3669435084,
0.6742687225,
0.2101667821,
-0.0369135253,
-0.1713702381,
0.5313133597,
0.3248060942,
-0.0792084113,
-0.1093715876,
0.3668124974,
0.3572770953,
0.301587671,
-0.2407058775,
0.0795763358,
-0.1918934584,
-0.256619513,
-0.0545775518,
0.1561477035,
0.1720078588,
0.0037679523,
0.2482560277,
0.0709494576,
-0.1256277263,
0.3689872622,
0.2804299593,
0.0370744243,
-0.1932658404,
0.3348277509,
-0.2718707919,
-0.1903454363,
0.1311917752,
0.0063213892,
-0.4402508438,
0.1030823737,
0.3191307783,
-0.1223131344,
0.0201655962,
0.0450456962,
0.0341216996,
-0.3694948852,
0.4734950364,
0.1577857882,
0.6076858044,
-0.0797693357,
-0.1412039399,
-0.2672113478,
0.2897812128,
-0.4417598248,
0.0740945786,
0.3080433011,
0.2579083443,
-0.0487485901,
0.2920191884,
0.0772698447,
0.2233105004,
-0.0479868762,
0.3701363802,
-0.3534585238,
-0.1368517131,
0.3459903002,
0.0485213846,
-0.2119521052,
-0.2849326134,
0.240811944,
-0.3483982384,
0.0187246948,
0.1598384827,
0.1610458195,
0.0116114318,
0.2485994697,
0.4437904358,
0.1199981868,
0.0778708756,
0.1355817467,
0.018293038,
-0.2765599489,
-0.2072043121,
-0.0377062075,
0.3501323462,
0.1534586847,
0.4672713876,
-0.2480130047,
0.341692239,
-0.0683881342,
0.0491897538,
0.0788117722,
0.3267086744,
-0.2487181425,
0.4114188254,
-0.5436218977,
0.0665596575,
0.0299389139,
-0.1942566633,
0.1354704052,
0.1080586612,
-0.1219417602,
-0.5837489367,
0.6118191481,
-0.1655679345,
-0.4106804132,
0.1020888239,
-0.0144821852,
0.3352402449,
-0.1222287938,
-0.1329848021,
0.0158910155,
0.4949214756,
-0.0330864564,
-0.2015381753,
0.0128789172,
0.0020361803,
0.0365062431,
-0.1622645855,
0.2119118869,
-0.0079956595,
-0.1454566866,
-0.3897954822,
-0.5064119101
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Working with Arrow can be quite fun sometimes.
You can fix this issue by trying to reduce the writer batch size (same trick than the one used to reduce the RAM usage in https://github.com/huggingface/datasets/issues/741).
Let me know if it works.
I haven't investigated yet on https://github.com/huggingface/datasets/issues/741 since I was preparing this week's sprint to add datasets but this is in my priority list for early next week. | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 67 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Working with Arrow can be quite fun sometimes.
You can fix this issue by trying to reduce the writer batch size (same trick than the one used to reduce the RAM usage in https://github.com/huggingface/datasets/issues/741).
Let me know if it works.
I haven't investigated yet on https://github.com/huggingface/datasets/issues/741 since I was preparing this week's sprint to add datasets but this is in my priority list for early next week. | [
-0.2213132381,
0.1979757547,
-0.0157013945,
0.3644231558,
0.3536312282,
0.0121851116,
0.5489981771,
0.1765438616,
-0.226450637,
0.2063266486,
0.2152808607,
0.2304818779,
-0.1810273975,
0.0037143305,
0.2849799097,
-0.3763322234,
0.152505368,
0.3805984855,
0.0335733071,
0.1360763162,
-0.0397742949,
-0.0720354319,
-0.1213941872,
0.1114183515,
-0.4059669971,
-0.0048566321,
-0.1747133732,
-0.1200740486,
-0.2310263216,
-0.5286947489,
0.181047231,
0.0685257167,
0.0716022551,
0.2211986631,
-0.0001212513,
0.087012969,
0.5184175968,
0.0738942921,
-0.3144265115,
-0.0253513455,
0.147390902,
-0.4104194641,
0.2535745203,
-0.2232874036,
0.0524133146,
-0.6484953165,
0.0717868432,
-0.0252838507,
0.1690184921,
0.2796275616,
0.1555814743,
0.2720472813,
0.3203710318,
-0.129394874,
0.4958252609,
0.4110743701,
-0.2912887335,
-0.0375179052,
0.2439016402,
0.0963075384,
-0.2048289776,
-0.0812972933,
-0.0461045876,
0.1272632778,
0.4374939203,
0.2534179688,
0.1801091135,
-0.271324724,
0.1292904466,
0.3118754029,
0.5142441392,
-0.298447758,
-0.1686795056,
-0.2406480759,
0.0696061254,
-0.1214195937,
0.0500405654,
0.2096702456,
-0.3758709133,
-0.1750662625,
-0.255900234,
0.0531944185,
-0.382543534,
0.1938743889,
0.3322298527,
-0.072931096,
-0.0771719962,
0.1957785934,
0.0948958695,
-0.0844443291,
0.4489101768,
-0.3274935484,
-0.0603616685,
0.1682135016,
-0.0260265917,
0.1914516687,
-0.0618921258,
-0.248912096,
0.3557295203,
-0.0146374255,
0.0907956064,
-0.0260437597,
0.4090176821,
-0.0300466232,
-0.1666972488,
0.2424429059,
0.0268456098,
-0.0564476475,
-0.0126623381,
0.1458720565,
0.1368907988,
0.0023788791,
-0.3036977947,
-0.3543183804,
0.438937664,
-0.1597708017,
0.2262703776,
0.2719851136,
0.0580548644,
0.0527415015,
-0.3872818947,
-0.1634096801,
-0.0512052141,
0.2605140805,
0.0079414994,
-0.1695234478,
-0.0749829561,
0.347595036,
-0.1134956777,
-0.0771845579,
-0.2006068379,
0.0141291283,
-0.1872188449,
-0.0355556086,
0.1856772453,
-0.0006736461,
0.1712855697,
-0.1005149186,
0.1102587283,
0.0364879519,
0.229409337,
-0.0032717399,
0.0745187849,
0.2431533188,
-0.1059864387,
0.0759956539,
-0.1007448211,
-0.103540048,
-0.1938960254,
0.3595400751,
-0.0072724409,
-0.3163640201,
-0.3604943454,
0.0677369311,
-0.188480109,
0.1095318422,
-0.3334246278,
0.0241515301,
0.2464962453,
0.1929249167,
0.0468098298,
-0.0788816363,
0.1197324693,
-0.4186954498,
0.2552201748,
0.1506832242,
-0.3296797276,
-0.076419428,
-0.1774585843,
-0.145316124,
0.0146853589,
0.1407638043,
-0.2277485728,
0.3168019354,
-0.1969993263,
0.1646831483,
0.5898751616,
0.1421810389,
-0.1942752898,
0.0489286296,
-0.0359421894,
-0.1330454946,
0.273894906,
0.133705005,
-0.0858039409,
0.0003620088,
-0.2265034318,
0.2427283674,
-0.2060784996,
-0.1284233183,
-0.102871716,
-0.4257863164,
0.2570196092,
0.1826579571,
0.1883197427,
-0.2002339363,
-0.0763457194,
-0.4452913702,
0.1509932876,
-0.4555950761,
0.3199744523,
0.2012657821,
0.2738682926,
-0.068662487,
0.0919817537,
-0.1971552819,
-0.686598897,
0.2245500833,
-0.3239828646,
0.1136919782,
-0.117311582,
-0.0389343947,
-0.0470358506,
0.2342349887,
-0.1890115291,
0.0169434398,
0.0304377377,
0.0079182107,
0.2468833774,
-0.1551263332,
-0.1208431125,
-0.3237168491,
-0.0724270716,
0.0879732966,
-0.4804649055,
0.3551840782,
-0.0268483087,
-0.3255327046,
-0.241775766,
0.1261120737,
-0.0964429528,
-0.0699633658,
-0.0347923674,
0.1379459053,
-0.1718251854,
0.0094864815,
-0.4415670931,
0.0668799728,
0.0340704694,
-0.3649430275,
0.331894666,
0.0976705253,
0.0095572136,
-0.2681989372,
0.0232205391,
0.3331257701,
0.1053552851,
0.5135989785,
-0.0469885319,
-0.012193352,
-0.0900007188,
0.2590041459,
-0.0001809001,
-0.0954836383,
0.0781406462,
0.1912846565,
0.3023990989,
0.1007432044,
-0.0900859758,
0.0181864053,
0.3622381687,
-0.075044468,
-0.0154782794,
0.2164577842,
-0.3582886159,
-0.0443060324,
0.114661552,
-0.2236911803,
0.0958224833,
0.1896507144,
-0.0962159708,
-0.0030713966,
-0.1216241643,
-0.2456033826,
0.2308207005,
0.1090446115,
0.4995392263,
0.0859797224,
0.2474469692,
-0.2025017589,
-0.295427382,
-0.1155418754,
0.1100828201,
0.2118793726,
-0.3103193641,
-0.0364508443,
0.0036003143,
-0.0263735279,
-0.047257591,
-0.4187698066,
-0.0772805661,
-0.0021741614,
-0.1159003749,
0.0387826599,
-0.1391521692,
0.2060874104,
0.0957114249,
-0.1754146814,
0.1691358685,
-0.0827374905,
-0.1555672884,
-0.0700944513,
-0.0628750473,
0.0273879655,
0.4325108528,
-0.0062162094,
0.1022782177,
0.0694010481,
0.0075333416,
-0.3865617812,
-0.3180572391,
0.0014940812,
-0.1885013282,
0.3855708838,
0.5089987516,
0.0129550472,
0.0704965144,
-0.2351245135,
0.4283283651,
-0.0620499961,
-0.2789505124,
0.2951144576,
-0.2495296001,
0.0132229477,
-0.0754205883,
-0.0625773668,
0.0871265233,
-0.3013952971,
0.4161199033,
0.3892331719,
0.2587938607,
0.2775219679,
0.4537553787,
0.3612790704,
-0.1578192711,
0.0766766816,
0.2665534616,
0.0884505734,
0.4034973383,
-0.0317743868,
-0.259150207,
-0.060695909,
-0.6752927303,
0.0791360065,
0.1878126115,
-0.1335004866,
-0.0855476484,
-0.3491368592,
0.3653412759,
-0.0175715853,
0.2512722313,
0.320278734,
0.1309191585,
0.0220842808,
-0.030239895,
-0.1539266109,
0.4097855091,
-0.0565458052,
-0.1166488379,
-0.0444961637,
0.3685620427,
-0.2781521678,
0.7187982202,
0.1594273001,
-0.1908806264,
0.1735193282,
-0.1888529658,
0.0868747234,
-0.2385749519,
-0.0506615527,
0.0356892794,
0.0839142799,
-0.033026807,
-0.0050414316,
-0.0146538308,
-0.154836148,
0.2445187569,
0.0944900215,
0.017952472,
-0.0938048065,
0.2726669312,
0.0028937254,
0.1238576621,
-0.1495913863,
0.0174952745,
-0.3889083266,
-0.1801964343,
-0.1647980809,
-0.3463931382,
0.2637692392,
-0.011086978,
-0.2853620648,
0.0391529351,
-0.385050416,
0.1164442301,
0.424225539,
-0.1564016789,
0.2217939794,
-0.0206323676,
0.1937053949,
-0.1511172056,
0.6794900894,
-0.1187511235,
-0.3409122825,
0.4274687469,
0.1553487927,
-0.5605749488,
-0.0846425742,
-0.16528669,
0.2461467832,
-0.3158966005,
0.1086690575,
-0.4143288732,
-0.1433326751,
0.4140110314,
0.3913717866,
-0.0545660332,
-0.1851378232,
-0.2121137083,
-0.3040745258,
-0.185867697,
-0.1297896206,
0.0128499866,
0.3727319241,
0.1485009789,
-0.3051452339,
-0.2967606783,
0.016409263,
-0.1248364449,
-0.0524399765,
0.4077996612,
-0.2468924969,
0.178591013,
-0.2198581994,
-0.0665869713,
0.3268236816,
0.2026311755,
0.0536718704,
-0.1761280745,
0.1134073138,
-0.0393439159,
0.4988563657,
0.2018642128,
-0.1145924032,
0.1512622088,
0.1214174628,
0.2522670627,
-0.1870197356,
-0.0860504359,
0.4117690027,
-0.2626807094,
-0.2254762053,
-0.3236449659,
0.5513411164,
0.0427403823,
0.2184250355,
0.3525520265,
0.4389820993,
-0.2235931903,
0.2400864661,
0.4835230708,
0.8892112374,
-0.1507896334,
0.2404504269,
0.6072922349,
0.0055066273,
0.2729427814,
0.2393167913,
0.2225948423,
-0.5379675031,
-0.0511484072,
0.0709350333,
-0.3519347906,
0.2847337127,
0.1038032621,
-0.1133715287,
-0.0417591631,
-0.1383733004,
0.4122712314,
0.0663563013,
0.1267138124,
-0.2973130941,
-0.304510504,
-0.0827561915,
0.0312229693,
0.045403704,
-0.3888436258,
-0.059233591,
-0.1134186983,
-0.0788850859,
-0.0733950883,
-0.2180926204,
-0.0616672859,
-0.5097696781,
-0.0959414542,
0.4721809626,
-0.4421561956,
0.2003867179,
0.1333442479,
0.125382483,
-0.080461815,
-0.1025498882,
-0.0346536934,
0.1324415207,
-0.1809816062,
-0.0668334216,
-0.3247702718,
0.1169554666,
0.050052762,
-0.0929776579,
0.007003529,
-0.1274044365,
-0.0782847553,
-0.0345482528,
-0.0546573736,
0.1990979612,
-0.2799151242,
-0.2094132006,
-0.2535101771,
-0.1570219696,
-0.1931709349,
0.0391987525,
0.1604582965,
-0.1208101809,
-0.0720697194,
-0.0012572843,
0.0288351029,
-0.0694502443,
-0.0455080494,
0.5458692312,
0.2170068026,
0.5177696943,
0.3589176238,
-0.0498757064,
-0.1814763844,
-0.0332918242,
0.6822752953,
-0.773172617,
0.2939394414,
0.1818483919,
-0.2421348393,
-0.1677030772,
0.510695219,
-0.124762997,
0.1342894137,
-0.1064628959,
0.1037913859,
-0.4808645844,
0.2990935147,
0.2030528635,
0.3578309417,
-0.1786767244,
-0.0927869081,
0.071878247,
0.1234466136,
-0.1977479458,
-0.0050353371,
0.095898591,
0.0161492191,
-0.4035747647,
-0.0425035879,
0.2448580116,
0.0397892743,
0.0327778161,
0.0198099762,
-0.3607735038,
-0.1390212327,
-0.0378616005,
0.145541206,
-0.0371492095,
-0.1967011541,
0.2865371406,
-0.0224828124,
-0.2330082506,
-0.2979305983,
0.1548820436,
-0.0779569596,
-0.1853629053,
-0.2841276824,
0.3411081731,
-0.0969536304,
-0.3457167745,
0.0179393366,
-0.2194333673,
0.2988491356,
0.0271401294,
0.1437523365,
0.1295876056,
-0.0372080281,
-0.009505298,
0.2139303386,
0.1074956506,
-0.2173412442,
0.2024219781,
-0.436617732,
-0.4164587259,
-0.1429626346,
0.3953703046,
0.3089136183,
-0.0614442751,
0.1281324923,
0.1037923545,
0.1279307604,
-0.2023243904,
0.0143389441,
0.1377164125,
-0.1896729022,
0.1461174488,
0.3554198742,
0.0605178326,
-0.0066232085,
-0.1027259082,
0.1862229705,
-0.0740236789,
0.0466205813,
0.1086216047,
0.449513793,
0.0012584925,
-0.02755576,
0.4771545231,
0.0175012313,
0.2943623066,
-0.0710615665,
-0.0856119394,
0.3696003556,
0.1361246705,
0.0128992507,
0.0857536942,
-0.1288853586,
0.1021617949,
0.232735306,
0.3544177413,
-0.0558939241,
-0.018650502,
0.746391654,
0.2487953603,
-0.0134413689,
-0.3547647297,
-0.0538715273,
-0.1985652149,
-0.1277569085,
-0.0794328973,
-0.0791810155,
-0.2595429718,
-0.0793811232,
-0.2000030726,
-0.4033379555,
0.2291910052,
-0.1226268709,
0.0847565979,
-0.3299498856,
0.6227366328,
0.2193328291,
0.0030638464,
-0.1611846387,
0.474471271,
0.2397116423,
-0.2144980729,
-0.3211133778,
0.600644052,
0.4467815757,
0.3391543031,
-0.2090890408,
0.0397167169,
0.0275915004,
-0.1698440015,
-0.0682929233,
0.0773961619,
0.2278273106,
0.1914871782,
0.1424110085,
0.0518177226,
-0.137539655,
0.034177389,
0.2019421607,
-0.0764240026,
-0.1230500937,
0.2156753838,
-0.3101528883,
-0.2395063192,
-0.0163395368,
-0.1258931607,
-0.397588104,
-0.062582843,
0.4661126137,
-0.1991132498,
-0.0436266847,
-0.2300647795,
0.0351972803,
-0.1980308294,
0.586974144,
0.162102744,
0.4991672337,
-0.3921732605,
-0.0479746014,
-0.3389751911,
0.2338692248,
-0.4670830369,
0.1145956293,
0.2771801949,
0.3103749454,
-0.122502327,
0.0611137003,
0.2008216381,
0.2744985223,
0.0680849627,
0.3729527295,
-0.2622805238,
0.0341852307,
0.3085055947,
-0.0292828083,
-0.0148932002,
-0.434517473,
0.2661921382,
-0.3839818537,
-0.0235683285,
0.0823848769,
0.2193196714,
0.2361359894,
0.0669241101,
0.4159300923,
-0.0065462608,
0.0268067513,
0.1588431001,
-0.2340559363,
-0.3672116697,
-0.1426378787,
-0.2464654297,
0.2377554327,
0.1127893105,
0.4968147278,
-0.3303931952,
0.1746425033,
-0.2260747105,
0.0220770426,
0.0435160771,
0.2901395559,
-0.1415720731,
0.4183498025,
-0.6275559068,
0.1206125617,
0.1010944396,
-0.1684277356,
0.0512662157,
0.0253987908,
-0.297852397,
-0.4806821048,
0.5629155636,
-0.3771933019,
-0.4562426805,
0.0751594231,
0.0318002813,
0.4164328873,
-0.2171498388,
-0.4832146466,
0.0156033933,
0.3150597811,
0.0608464293,
-0.0468182378,
0.1661626995,
-0.0293318816,
0.1080475152,
-0.1505971551,
0.3135238588,
-0.1069218442,
-0.1743166,
-0.2626369596,
-0.5996114612
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | The batch size fix doesn't work... not for #741 and not for this dataset I'm trying (DGS corpus)
Loading the DGS corpus takes 400GB of RAM, which is fine with me as my machine is large enough
| I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 37 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
The batch size fix doesn't work... not for #741 and not for this dataset I'm trying (DGS corpus)
Loading the DGS corpus takes 400GB of RAM, which is fine with me as my machine is large enough
| [
-0.3745765388,
0.1280584633,
-0.0476197451,
0.2082385719,
0.2405512184,
-0.0033118054,
0.4983980656,
0.1474631429,
-0.293284148,
0.1866016388,
0.2814416289,
-0.0539644286,
-0.1909174174,
-0.1175015494,
0.222936362,
-0.2851467729,
0.1425436437,
0.3723787069,
0.004917115,
0.0282002687,
-0.0874817818,
-0.174016878,
-0.2596130669,
-0.1141796857,
-0.2867548764,
-0.1924324036,
-0.2385250628,
-0.141658023,
-0.1820701957,
-0.5740128756,
0.1513034552,
0.0021335995,
0.2676511407,
0.4198836386,
-0.0001258403,
0.0140420273,
0.5327544212,
-0.0296702422,
-0.3078176677,
0.1804805398,
0.1160390526,
-0.5670772195,
0.0755024478,
-0.2768150568,
0.0667398274,
-0.6155688763,
0.0792863965,
-0.093567878,
0.0811323002,
0.2686924636,
0.0758144855,
0.1147662252,
0.2332261056,
-0.2019832283,
0.4513535202,
0.2915461361,
-0.1934951991,
0.0987178534,
0.4797887504,
0.2244310379,
-0.1344653219,
-0.0934094489,
-0.2257815599,
0.2786090672,
0.224996224,
0.1619926095,
0.5029174089,
-0.2946101129,
0.1333657056,
0.3447368443,
0.5489020348,
-0.1115243509,
-0.2093061805,
-0.2974885106,
-0.0686772317,
-0.1175811887,
-0.2431560904,
0.241932109,
-0.285261929,
-0.1375111639,
-0.2829050422,
0.1252440512,
-0.3688936234,
0.3038167059,
0.2715136111,
0.0086962804,
0.0880791694,
0.242821157,
-0.0325249843,
-0.1472886503,
0.3926501274,
-0.1554118693,
-0.1184121072,
0.1431394815,
0.0588824078,
0.1550058722,
-0.0380721688,
-0.2888388336,
0.4321167767,
-0.1063441187,
0.0138712153,
-0.0473385155,
0.5867903829,
-0.0926304609,
-0.1287660897,
0.390490979,
-0.197296232,
-0.041649837,
0.1045781821,
0.1069969162,
-0.0620181486,
0.2088289708,
-0.2877634466,
-0.4063175917,
0.409329772,
-0.1046168208,
0.0710790604,
0.1694401503,
0.0670004189,
0.1073107347,
-0.3212198913,
-0.0598259531,
-0.1791733652,
0.3538225591,
-0.0039106198,
-0.0253151096,
-0.0678937584,
0.2610295415,
-0.0380549356,
-0.0714623928,
-0.1640250087,
-0.0808366835,
-0.2309174836,
-0.0260763392,
0.2522601485,
0.1547978669,
0.208724454,
-0.2251217961,
0.2305279821,
0.0526597053,
0.1099236384,
-0.1192197874,
0.2041053176,
0.3068583012,
-0.0317756347,
0.0919988155,
-0.0652690828,
0.0603399649,
-0.2398638725,
0.4755080938,
-0.1224323213,
-0.2511695921,
-0.2756823599,
0.0325488187,
-0.2342315465,
0.0859293491,
-0.332146138,
0.0839202702,
0.4152876139,
0.0884542093,
0.1165005267,
-0.1233675182,
0.0668461397,
-0.4432201385,
0.0363994837,
0.1962481737,
-0.394777894,
0.0962429494,
-0.0176298916,
0.1693834066,
0.2834204733,
0.1204253957,
-0.0769042373,
0.2557765245,
-0.1914674342,
0.2448734939,
0.5503517389,
0.0374395177,
-0.3248769641,
0.2341147661,
-0.023539111,
-0.2791965604,
0.3945926428,
0.1149654686,
0.0964223668,
-0.051859431,
-0.1384653002,
0.36126858,
-0.2345643044,
0.0739979818,
-0.1379669607,
-0.5268688202,
0.0947984755,
0.1622678787,
0.3325762153,
-0.1004159898,
0.035372667,
-0.3560436964,
0.1648020148,
-0.4008252323,
0.3126737177,
0.1492698044,
0.2288142294,
-0.1841289401,
0.2083991319,
-0.1813567132,
-0.6962058544,
0.2876124978,
-0.5014747977,
0.0739165246,
0.0391728133,
-0.0429700762,
-0.1620541513,
0.0703146905,
-0.0692483634,
0.0174355023,
-0.0559540018,
0.0669509917,
0.3730541468,
-0.1842376888,
-0.0645479411,
-0.3771054149,
0.0573681369,
-0.0027465895,
-0.3606953621,
0.2045648396,
0.0023690509,
-0.4256263971,
-0.1967066824,
0.0787271708,
-0.0671879053,
-0.1091159731,
-0.0298987217,
0.1906700581,
-0.1057278365,
-0.1265949011,
-0.5945062041,
0.1133436784,
-0.007530326,
-0.1709639728,
0.306686312,
0.1203051209,
-0.0383868292,
-0.2761615515,
0.1548981667,
0.2250408679,
0.0956047028,
0.4443618953,
-0.0483178049,
-0.1787980497,
0.0536846146,
0.109134458,
0.0232803971,
-0.1872335225,
0.0573428459,
0.131162867,
0.2436995357,
0.0179073419,
-0.1004728004,
-0.067411989,
0.2330171019,
-0.0413285531,
0.1955351233,
0.1248203143,
-0.3651074171,
-0.0716263279,
0.1410184354,
-0.2624344826,
0.1857792735,
0.2264382541,
0.0025508357,
0.0076844338,
-0.0249633677,
-0.2826313674,
0.169932425,
0.0370541103,
0.536016643,
0.271042794,
0.2685307562,
-0.1529058963,
-0.2596245408,
-0.0702254549,
0.1242117435,
0.1814392358,
-0.2733659148,
0.0103878155,
0.0000496432,
-0.1357449889,
-0.0412942134,
-0.3904168904,
0.0741705298,
0.0874914825,
-0.0372947417,
0.0703357756,
-0.1533453763,
0.1652031839,
-0.0397776067,
-0.041831255,
0.2344288379,
-0.2710822225,
-0.0937426761,
-0.0093459487,
-0.2818735838,
-0.0323996767,
0.3056125939,
-0.0038356334,
0.1419287771,
0.0992969647,
0.0966010094,
-0.2507048845,
-0.2788383365,
-0.0341018252,
0.0217123553,
0.3230951726,
0.457457155,
0.1499734223,
0.1179576144,
-0.1752307266,
0.3148290813,
-0.1135182753,
-0.2176909596,
0.1710076481,
-0.3160586953,
0.0326281562,
-0.1210352331,
-0.0494647175,
0.0112173539,
-0.372951746,
0.0696584433,
0.4055190086,
0.2205289006,
0.3084491193,
0.482837081,
0.2367552221,
0.1243311912,
0.1658314764,
0.1984267831,
0.2151189446,
0.4572961032,
-0.0293487776,
-0.2974742353,
-0.1902782917,
-0.6981366873,
0.0184095558,
0.3738336563,
-0.2694821358,
-0.0245694146,
-0.3942731023,
0.1062366962,
0.0583173558,
0.2845520675,
0.3782830238,
-0.0474192947,
-0.0254098065,
-0.0703167319,
-0.0584220216,
0.2494766116,
0.1239885539,
0.1173083708,
-0.0308749322,
0.4462173879,
-0.194586575,
0.7147116661,
0.094771862,
-0.3038935661,
0.2707909644,
-0.1401405036,
0.0170621313,
-0.2703029513,
0.0372010693,
0.0961653292,
0.127751857,
-0.2376384437,
0.1475769579,
-0.059104044,
-0.386161536,
0.1775977165,
0.0471049547,
-0.0790254995,
-0.0444590636,
0.2812479734,
-0.2039060146,
0.1338867992,
-0.0792910457,
0.0368069857,
-0.3127508461,
-0.2526505291,
-0.1902708113,
-0.4711133242,
0.1410618424,
0.0433601514,
-0.1022917777,
0.1238359883,
-0.3025418818,
0.2792184353,
0.4346428216,
0.0007246286,
0.2395619303,
-0.0787824914,
0.2065567523,
-0.0970239863,
0.6973790526,
-0.1804161817,
-0.08164303,
0.3259966075,
0.1955780387,
-0.5518754125,
-0.24223122,
-0.0672411546,
0.095443666,
-0.13721928,
0.1183136925,
-0.4352435172,
0.1217413396,
0.3166220188,
0.4247947335,
-0.053609699,
-0.2296970487,
-0.2966369092,
-0.3348882198,
-0.2174385935,
-0.0390175842,
0.1008377522,
0.3269642293,
0.1987347901,
-0.3782703578,
-0.4008757174,
-0.0408060364,
-0.0739447176,
0.0705564618,
0.374289006,
0.026396513,
0.0172824785,
-0.2732777894,
0.1370514035,
0.3507039547,
0.1135039032,
-0.0043428931,
0.0875766724,
0.170902878,
0.0145837031,
0.4518880248,
0.3074620962,
-0.0481159985,
-0.0361699723,
0.1742117256,
0.3180811405,
-0.1563245356,
-0.0163767338,
0.2593966126,
-0.3316498101,
-0.4587728977,
-0.2922753394,
0.5466746092,
0.1049683094,
0.1723927855,
0.2966726422,
0.2643336058,
-0.3065364361,
0.4464045465,
0.5022364855,
0.8925896883,
-0.116714552,
0.2179515064,
0.3722965121,
0.2857911587,
0.2620507777,
0.3009259999,
0.1885153651,
-0.4703857899,
0.0611444004,
0.1075817794,
-0.4274888337,
0.1937937587,
0.3318334818,
-0.2136283815,
0.0555973761,
-0.2017823458,
0.358378619,
-0.0195150878,
0.0569366738,
-0.0770809948,
-0.2509152591,
-0.0300209001,
-0.0220964253,
0.1072165743,
-0.309563905,
-0.1783050001,
-0.1149401814,
-0.1804325879,
-0.1578805149,
-0.3014234304,
-0.1294434071,
-0.3661156595,
-0.0263832379,
0.3523427844,
-0.5593371391,
0.0127389878,
0.0975903273,
0.0904759988,
0.0514148399,
-0.0709396377,
-0.0683588535,
0.239895761,
-0.2562881112,
0.1004848629,
-0.3581421971,
0.161669299,
-0.0170576647,
-0.0635134429,
0.010568819,
-0.1707506925,
-0.1043334752,
-0.1473844647,
0.00102387,
0.0947541296,
-0.2414893508,
-0.3821017146,
-0.1939324588,
-0.087156266,
-0.0878812745,
-0.0287432652,
0.0897853971,
-0.0756542236,
0.2411967516,
0.0799373537,
-0.1455175281,
-0.0500127636,
0.0268447958,
0.6528416872,
-0.0308868699,
0.4302845299,
0.3163841665,
-0.0479410961,
-0.1371316016,
-0.00580246,
0.4690585732,
-0.6159567833,
0.3625896275,
0.1511606276,
-0.2743067443,
-0.0059912764,
0.4451166689,
-0.0727245808,
0.2775433362,
-0.160594523,
-0.0049941763,
-0.4703552723,
0.2354561687,
0.1205836385,
0.3705754578,
-0.1522597671,
-0.2207000256,
0.097617723,
0.1611381769,
-0.1268958449,
-0.0327623039,
0.0083876401,
0.0161705576,
-0.6082542539,
0.1483257413,
0.0897217542,
0.1500920355,
-0.0480171405,
0.0465205424,
-0.2260241956,
-0.0851692781,
0.0268543288,
0.205485791,
-0.0310736448,
-0.0522645377,
0.3520442247,
-0.1590042412,
-0.3431048095,
-0.1962460726,
0.1736914963,
-0.0258748755,
-0.2029255927,
-0.2717238665,
0.3582441211,
0.0095415208,
-0.1717251241,
0.1633915007,
-0.2824489474,
0.2918495834,
0.0643567443,
0.2059908956,
0.1921404302,
-0.0676647127,
-0.034550406,
0.1483299285,
0.211498186,
-0.2168195844,
0.1892521381,
-0.4090179503,
-0.4071271122,
-0.0274291076,
0.3321344852,
0.315083921,
-0.0426493511,
0.0057695061,
0.072525546,
0.1130339205,
-0.280831337,
0.044814419,
0.1133652776,
-0.0556093864,
0.1534712613,
0.4482029676,
0.0966027826,
-0.0977459401,
-0.1922980249,
0.2072163522,
0.0731000006,
0.053151194,
-0.0388383456,
0.4976272583,
0.0606215373,
-0.1085688174,
0.3637854159,
-0.0256394856,
0.4311865568,
-0.0151960086,
0.0178497471,
0.4252930582,
0.2894129753,
-0.0267554447,
0.0356657021,
-0.1030524224,
-0.0276341625,
0.4369133711,
0.4502415657,
-0.0880773067,
0.0422735251,
0.4286780953,
0.3360231519,
0.0045398176,
-0.3861784935,
-0.1956741363,
-0.1396337599,
-0.1259268224,
-0.2316327393,
-0.0897773951,
-0.0855602622,
-0.1662967503,
-0.2277533412,
-0.4116143882,
0.061538104,
-0.124663204,
0.0069560893,
-0.2559816539,
0.5384843349,
0.0866561681,
-0.0274609476,
-0.2318944931,
0.4704698324,
0.2490822375,
-0.1112724543,
-0.1051200852,
0.589838624,
0.5599629283,
0.4387233257,
-0.2553029954,
-0.0112183727,
-0.0201238301,
-0.1263955235,
-0.3179319799,
0.1776319444,
0.2475595474,
0.0826783404,
0.1629336178,
-0.0125130098,
-0.1205989569,
0.2289252579,
0.16149804,
-0.2385056317,
0.0332436636,
0.3079957962,
-0.2352719307,
-0.1989790648,
0.0437846854,
-0.063635096,
-0.4537604749,
-0.0903048813,
0.5740747452,
-0.3744278848,
0.0108037554,
-0.0825751275,
-0.0180426724,
-0.3596268892,
0.6653105617,
0.2563323379,
0.6802739501,
-0.2463728637,
0.0150948763,
-0.3281951249,
0.3073236048,
-0.5743768811,
0.1913202852,
0.18576473,
0.4029061496,
-0.0787028372,
0.076038897,
0.1396751404,
0.2906522751,
-0.0944433957,
0.5938667655,
-0.2642398775,
0.0183152519,
0.0135862594,
0.0321016684,
-0.0200351514,
-0.4920799732,
0.2735617459,
-0.4048538804,
-0.0611604303,
0.0724634528,
0.0960549712,
0.3531217873,
0.3399718106,
0.5330664515,
-0.0138520617,
0.1522526592,
0.0977394581,
-0.0338158868,
-0.4907116294,
-0.0232551247,
-0.2535430789,
0.1672683954,
0.1176787913,
0.3558968306,
-0.3410948515,
0.3061566055,
-0.0457973331,
-0.1281306446,
-0.0186484829,
0.286083281,
-0.0882524773,
0.2683671713,
-0.5508415699,
0.0947746187,
0.038220264,
-0.1866860092,
0.0787469447,
0.0134665146,
-0.2153005153,
-0.5623306036,
0.6698253751,
-0.3410617709,
-0.5061420798,
-0.1133758724,
0.0440774001,
0.2292522192,
-0.1240596473,
-0.2394167185,
0.0347788483,
0.3517041504,
0.1622709036,
-0.2105357945,
0.1108051613,
-0.1335241348,
-0.0080628544,
-0.1948654503,
0.266716063,
-0.0892979056,
-0.2301193029,
-0.6121368408,
-0.6397608519
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Not yet, I've been pretty busy with the dataset sprint lately but this is something that's been asked several times already. So I'll definitely work on this as soon as I'm done with the sprint and with the RAM issue you reported. | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 42 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Not yet, I've been pretty busy with the dataset sprint lately but this is something that's been asked several times already. So I'll definitely work on this as soon as I'm done with the sprint and with the RAM issue you reported. | [
-0.1500291526,
0.2067142576,
-0.0467010103,
0.2796334624,
0.4458691776,
-0.0149021819,
0.6093953252,
0.1298003644,
-0.3220186532,
0.1937064528,
0.2713234425,
0.3150212765,
-0.1662630737,
-0.1340914667,
0.2840394378,
-0.3528666496,
0.1987506598,
0.413744539,
-0.02612786,
0.0539421067,
-0.076971896,
-0.1808709949,
-0.2342816442,
0.1500302553,
-0.4875091314,
0.0162200164,
-0.2609250247,
-0.0898397416,
-0.2083281577,
-0.6032205224,
0.254519403,
0.039249666,
0.0257067904,
0.2163900733,
-0.0001187129,
0.0717893988,
0.5233744979,
0.1001180857,
-0.3757017553,
-0.0207120404,
0.129897356,
-0.431342423,
0.2927475274,
-0.3118647933,
-0.0444274507,
-0.6730905771,
-0.005233055,
-0.0925316513,
0.0851976722,
0.2867688835,
0.1531414837,
0.1496410072,
0.2610462606,
-0.2167926133,
0.5045078993,
0.3086958528,
-0.2349266559,
-0.0965390652,
0.2660938799,
0.0270715207,
-0.0867841542,
-0.141119808,
-0.0499655455,
0.2337395549,
0.3484752178,
0.3037253618,
0.2073804438,
-0.2104097903,
0.0256280936,
0.3553411663,
0.5374172926,
-0.2118537277,
-0.1425716579,
-0.1533838958,
0.0074660406,
-0.1359969079,
-0.0367607884,
0.2109221816,
-0.3065980077,
-0.0860810131,
-0.2723342776,
0.1510217488,
-0.3894477189,
0.2965711057,
0.1956052631,
0.0183363948,
0.0433381908,
0.2343142331,
-0.0197658334,
-0.1694680452,
0.5208330154,
-0.2911007106,
-0.0225760601,
0.127423659,
0.0479966104,
0.1595193595,
-0.0755236,
-0.3094819784,
0.3864969015,
-0.0554512814,
0.132650286,
0.0440818444,
0.3791760206,
0.0212110989,
-0.1555461138,
0.2336509228,
-0.1281944662,
-0.0899409503,
0.0055328766,
0.0701001436,
0.0022220165,
0.047044158,
-0.2628852129,
-0.2715008259,
0.4232475758,
-0.0934409648,
0.2694969773,
0.1873333305,
0.0271521956,
0.0392052718,
-0.5091848969,
-0.1334913969,
-0.0782192349,
0.2353957295,
0.0806330368,
-0.0823208541,
-0.0616272539,
0.3054971695,
-0.1172133088,
-0.1475099772,
-0.2355752885,
0.0166071653,
-0.2514529824,
-0.0253879577,
0.1708399206,
0.2288853377,
0.144900471,
-0.0470355451,
0.0650943518,
0.1135162264,
0.2895405293,
-0.0105911754,
0.1357878298,
0.1952755451,
-0.2065048516,
0.0302206576,
-0.0129402652,
-0.1132822335,
-0.1792579889,
0.38300246,
0.0182228498,
-0.366384387,
-0.2873323262,
0.0946431234,
-0.2151789218,
0.0613821298,
-0.0709390417,
0.1718259007,
0.2112200856,
0.151082322,
0.0608307011,
-0.0333511159,
0.0417917222,
-0.4401713014,
0.2193189859,
0.1395139098,
-0.405880332,
0.0554626584,
-0.1631776094,
-0.0664398,
-0.0156458467,
-0.0245636459,
-0.2742758393,
0.2772707343,
-0.1955375373,
0.2298749834,
0.587228775,
0.1661986113,
-0.2438396811,
-0.036898233,
0.0033268929,
-0.1664945036,
0.2262387723,
0.1600518227,
-0.1171490103,
0.0681515634,
-0.1770193279,
0.302949369,
-0.1542999297,
-0.1596275866,
-0.1055886596,
-0.3996219933,
0.3469384313,
0.2101230323,
0.1483471841,
-0.1116843075,
-0.1029533371,
-0.3682800531,
0.117483668,
-0.452626735,
0.2587613761,
0.1318948269,
0.3844097555,
-0.1594668031,
0.0933058113,
-0.2613683939,
-0.6854190826,
0.2985849977,
-0.2492965907,
0.1730050743,
-0.0901352167,
0.0227010399,
-0.0997131914,
0.1692351699,
-0.2032765299,
-0.0019784933,
0.0679666251,
0.0506006405,
0.2336382568,
-0.1973649859,
-0.1905954778,
-0.3107890785,
-0.0612240136,
0.0008916259,
-0.3421289921,
0.5485234261,
-0.0172517356,
-0.3967369795,
-0.359818846,
0.0743662566,
-0.0085197967,
-0.0459281355,
-0.0238598473,
0.1929887831,
-0.0130881816,
-0.1298054457,
-0.4362170994,
0.1046655551,
0.0309576448,
-0.3927150369,
0.2777433395,
0.2070195824,
-0.0343702547,
-0.2954363823,
0.0406115279,
0.3032565713,
0.0700187385,
0.5143809915,
-0.0675567612,
0.017066583,
0.0247861817,
0.213263914,
-0.0073071122,
-0.1172531545,
-0.0014550444,
0.232285291,
0.2657840252,
0.0138676818,
-0.0900229216,
0.0586160682,
0.3243606091,
-0.0800145492,
0.0507924259,
0.083685264,
-0.2945885658,
-0.0193244517,
0.2128094137,
-0.2105060518,
0.1979472339,
0.2074629068,
-0.0482011959,
0.110269852,
-0.2756569386,
-0.1483096927,
0.2355583906,
0.1429790556,
0.5560609102,
0.0222479105,
0.230923444,
-0.2626537979,
-0.2959458828,
-0.166859135,
0.1668503284,
0.2569401264,
-0.3018984795,
-0.0585597493,
-0.1459396482,
-0.0343173742,
-0.0355404355,
-0.4733988643,
0.0393412337,
0.0014643297,
-0.1478915215,
0.0221960153,
-0.1176975071,
0.2584043145,
0.0480038598,
-0.0906376243,
0.2260758132,
-0.0672283322,
-0.137067467,
-0.1112422273,
-0.1663930118,
0.0230183154,
0.3056999743,
0.0607743859,
-0.0255739838,
0.1304393411,
0.0086153448,
-0.3728963137,
-0.3643664122,
0.070016861,
-0.0963853672,
0.3734643161,
0.4846830964,
0.0340088047,
0.0707843155,
-0.2421429008,
0.4771781266,
-0.0035101473,
-0.2795154452,
0.3224966824,
-0.2145096064,
0.0431247726,
-0.0884383246,
-0.2002506256,
0.0433545038,
-0.3384428322,
0.2144089639,
0.3770570159,
0.2181911469,
0.2402547598,
0.4826952219,
0.3846852779,
-0.0262592994,
0.072512731,
0.1978986114,
0.2519872189,
0.3446090817,
-0.0619261041,
-0.208356604,
-0.0889664516,
-0.7822164297,
0.0658639073,
0.3343042731,
-0.1328397393,
-0.1330103874,
-0.3091555536,
0.3684869409,
-0.0566360764,
0.1405153275,
0.3780650198,
0.170871377,
-0.021763362,
-0.0804596543,
-0.1139995158,
0.3861760199,
0.0908229649,
-0.077886723,
-0.0079125511,
0.422504425,
-0.144005999,
0.6777371764,
0.098717466,
-0.2711268663,
0.2037226558,
-0.215724051,
0.0048973877,
-0.2505939007,
0.0265116617,
-0.1217841357,
0.0888626277,
-0.1523334682,
-0.0191508606,
-0.0363731347,
-0.3188760579,
0.1218135059,
0.1965560913,
-0.0624397099,
-0.0397175662,
0.1316144466,
-0.030844165,
0.1022255346,
-0.0918357968,
0.1050001606,
-0.2875978351,
-0.075679265,
-0.1908876449,
-0.4204814434,
0.1240355521,
-0.057526879,
-0.3283362389,
0.1398125291,
-0.0885655433,
0.1524427086,
0.3744049072,
-0.1042876095,
0.1758554429,
-0.1414589882,
0.1569477022,
-0.154794246,
0.6634986997,
-0.17584005,
-0.2710128725,
0.5152446032,
0.1407134533,
-0.5415208936,
-0.2129684389,
-0.2095395029,
0.245808959,
-0.2725163698,
0.1520114541,
-0.4102874994,
-0.0327007025,
0.3773125708,
0.3596918285,
-0.0327305868,
-0.0944849849,
-0.2216615677,
-0.34115237,
-0.0681905225,
-0.1154122502,
-0.072787948,
0.3152897954,
0.1236102432,
-0.3971576989,
-0.3735954762,
-0.0400243774,
-0.1721287817,
-0.0104517266,
0.4588955045,
-0.2380856574,
0.1649463922,
-0.2397784144,
0.0009238701,
0.2648706734,
0.1921320558,
0.1175788194,
-0.0643795431,
0.1052883118,
-0.0572620928,
0.4494800866,
0.2592756152,
-0.0540851019,
0.0574304685,
0.1639573425,
0.1375254393,
-0.1249856055,
-0.0268663242,
0.4133700132,
-0.3308498263,
-0.1898859739,
-0.3715832233,
0.6200919151,
0.0414907187,
0.1514873207,
0.3555673957,
0.3764848709,
-0.2424074113,
0.3165284991,
0.5446489453,
0.9667249918,
-0.1289044023,
0.2134447992,
0.6495655179,
0.0029645413,
0.2828014791,
0.2540846467,
0.2277834564,
-0.5002316236,
-0.0339996517,
-0.006580133,
-0.3927593231,
0.206949845,
0.2149785161,
-0.1865025461,
-0.0012373216,
-0.218262136,
0.4358298182,
0.1036752313,
0.0344065055,
-0.2134679407,
-0.1178778559,
-0.0730038956,
0.0895677507,
0.005828022,
-0.4381957054,
-0.1154488921,
-0.1017156839,
-0.1978418827,
-0.0135277212,
-0.1254942119,
-0.023903545,
-0.3495712876,
0.069678314,
0.3701094687,
-0.5165641308,
0.0208655819,
0.1090420187,
0.057287544,
-0.1402057856,
-0.0969697163,
0.0260197558,
0.2428462803,
-0.1842740476,
-0.0130588822,
-0.3214936256,
0.2630611658,
0.032830365,
-0.2051186711,
0.0229541007,
-0.1353127658,
-0.1692554355,
-0.1750239879,
-0.0551152788,
0.2479513884,
-0.2530694008,
-0.178058207,
-0.0815894306,
-0.146317184,
-0.1738773584,
0.0666026324,
0.1170257628,
-0.1410746425,
0.0025065355,
0.1300413758,
0.0235495567,
-0.0709226206,
0.0205196273,
0.5894393921,
0.2913069725,
0.4302314818,
0.3094701171,
-0.0467935503,
-0.1781942546,
0.0038346946,
0.6479738951,
-0.5415280461,
0.2230453789,
0.1170603633,
-0.2020022124,
-0.121876657,
0.470872581,
-0.1145158559,
0.2816264927,
-0.1862777919,
0.1173033044,
-0.4731613398,
0.2905727327,
0.2220408618,
0.4258407652,
-0.2673299909,
-0.1688768417,
-0.0050423741,
-0.0191147141,
-0.2316870689,
0.0789485499,
0.0279307216,
0.0678839236,
-0.5748076439,
-0.105927065,
0.1317713559,
0.0811181068,
0.1017662212,
0.0013397615,
-0.3881569505,
-0.1580252349,
-0.0020906851,
0.1558316946,
0.0587418601,
-0.1748423576,
0.2019318044,
-0.1383806169,
-0.2560032904,
-0.2296719998,
0.0389317051,
-0.0213916823,
-0.2181999236,
-0.1809265018,
0.3834410906,
-0.0254355669,
-0.311788708,
0.0269565247,
-0.2520408928,
0.2981005907,
0.1187535822,
0.0703945607,
0.1229050457,
-0.0584068,
-0.0751529112,
0.1965298504,
0.0404652059,
-0.2731573284,
0.2590333223,
-0.4374714792,
-0.3664397895,
-0.2270934731,
0.458123982,
0.323495537,
-0.1110693514,
0.0736072809,
0.1590508968,
0.1698398739,
-0.2220701873,
0.0490021668,
0.2103669792,
-0.1193473488,
0.1806746125,
0.3013376296,
0.0832025707,
-0.0033884943,
-0.1054541245,
0.1171282008,
-0.0229333472,
0.0252826214,
0.0834054425,
0.4652060568,
-0.1098441631,
-0.0518161245,
0.3878832161,
-0.0196092222,
0.2227761894,
0.0079958951,
-0.0850419775,
0.4147610068,
0.0869290456,
-0.05177515,
0.1325201392,
-0.0293115303,
0.1116984785,
0.2715784311,
0.3833859563,
-0.1204077601,
-0.0267839171,
0.6152065992,
0.2223725617,
-0.0460370891,
-0.4197397828,
-0.186447531,
-0.1455492973,
-0.0340117104,
-0.0827055797,
-0.1281299591,
-0.2359884679,
-0.1540850699,
-0.163944006,
-0.4509736896,
0.2512567639,
-0.0805563927,
0.0692255944,
-0.2903131247,
0.7235399485,
0.1826483309,
0.0155354124,
-0.1364159584,
0.4172537923,
0.3453889787,
-0.129658252,
-0.1810424179,
0.4945088029,
0.3849450946,
0.4238955975,
-0.4110920727,
-0.0324106254,
0.0056648478,
-0.2146725953,
-0.055928234,
0.0593391582,
0.2370566577,
0.1880390346,
0.1770805418,
0.0776374787,
-0.1500835419,
0.100981757,
0.2514287233,
-0.0357963778,
-0.2235604376,
0.2157314122,
-0.2251521945,
-0.2205971479,
0.0589820743,
-0.076652877,
-0.4713692367,
-0.1439743489,
0.4179427922,
-0.1683094501,
-0.0066461861,
-0.070994705,
0.0423573814,
-0.2739177346,
0.4860868454,
0.0101108747,
0.583724916,
-0.2782610357,
-0.1044879258,
-0.3904716372,
0.3186708093,
-0.5196863413,
0.1071941182,
0.268042028,
0.3691578209,
-0.0757015795,
0.1105261296,
0.1447155774,
0.1774958074,
0.0062254593,
0.4266393185,
-0.3925252855,
-0.0103617916,
0.2564422488,
0.0076438468,
-0.0866415575,
-0.3860507309,
0.1612876058,
-0.3479375243,
-0.018234726,
0.176424697,
0.1481556147,
0.2485921532,
0.2258595228,
0.5414075851,
-0.0579419658,
0.1531692147,
0.2425013483,
-0.1587214172,
-0.3644288778,
-0.1778420508,
-0.158981055,
0.2417852879,
0.0755463392,
0.4335435629,
-0.2603599727,
0.2352062613,
-0.1638040841,
-0.0019349605,
0.0276694074,
0.2400593311,
-0.1374568045,
0.4033575058,
-0.6006199121,
0.0910598636,
-0.0216425173,
-0.1658451408,
0.0927805826,
0.0565392077,
-0.2232377529,
-0.4527820647,
0.6323026419,
-0.3164665699,
-0.4803242683,
0.0255677551,
-0.0108197108,
0.3791213036,
-0.1154551432,
-0.344650954,
-0.0904823318,
0.3934348226,
0.0028523151,
-0.1030600816,
0.1104018614,
0.0531175956,
0.0731427819,
-0.1679362357,
0.2442338318,
-0.1923167259,
-0.1297087371,
-0.3842493594,
-0.5637403727
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Hi @lhoestq,
Any chance you have some updates on the supporting `ArrayXD` as a subtype or support of dynamic sized arrays?
e.g.:
`datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))`
`Array3D(shape=(None, 137, 2), dtype="float32")` | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 29 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Hi @lhoestq,
Any chance you have some updates on the supporting `ArrayXD` as a subtype or support of dynamic sized arrays?
e.g.:
`datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))`
`Array3D(shape=(None, 137, 2), dtype="float32")` | [
-0.2084443569,
0.0039850175,
-0.0901310146,
0.04117845,
0.352728337,
-0.0363008529,
0.6182534099,
0.0921267048,
-0.1956911832,
0.1928667277,
0.2420265228,
0.0475222953,
-0.2796562016,
0.0491821468,
0.2426549792,
-0.3445932269,
0.2176740468,
0.4056482613,
0.1302120686,
0.0160455555,
-0.1540566087,
-0.1357145309,
-0.3179492056,
0.2507110536,
-0.1650812328,
-0.0063747484,
-0.2581344247,
-0.1190825999,
-0.0953021869,
-0.479681015,
0.4352330565,
0.1003659517,
0.217232883,
0.1735831946,
-0.0001256443,
-0.0151912346,
0.4540737271,
0.0053068101,
-0.2272012979,
0.1061742976,
0.051652208,
-0.4238548577,
0.168306157,
-0.3253709674,
0.0930255726,
-1.0158855915,
0.0374175385,
-0.1650809199,
-0.0047549456,
-0.0251167007,
0.0971732065,
0.1175354719,
0.5744314194,
-0.054457359,
0.4038917124,
0.3394393921,
-0.2964442074,
0.001757469,
0.6183673143,
0.1803755015,
0.1633251905,
-0.3020038009,
-0.1555912793,
0.1084761769,
0.3668762147,
0.0900712535,
0.2777219713,
-0.1963361204,
-0.1039327309,
0.352525562,
0.4946058095,
-0.2098656148,
-0.2475664318,
-0.2931709588,
0.0062061511,
-0.0968706086,
-0.1634801775,
0.1315527856,
-0.2634228468,
-0.0381588638,
-0.2493411601,
0.0278518833,
-0.4791483879,
0.3923699856,
0.1832089573,
0.3168767393,
0.0780541375,
0.210221678,
-0.1305958629,
-0.4713119268,
0.5399208665,
-0.1946737915,
-0.0393476412,
0.1770695448,
-0.0109680928,
0.0382324755,
-0.1436088979,
-0.391402334,
0.3296520114,
-0.1347398311,
0.2233510017,
0.0036933087,
0.293533504,
0.1309705973,
-0.1120029092,
0.4439815581,
-0.005044166,
-0.2573385537,
-0.1000137255,
0.0176748708,
0.1494627446,
0.118555218,
-0.3885907531,
-0.0665610433,
0.2135723382,
-0.0072959512,
0.112563476,
0.3052560389,
0.0839370862,
-0.0825337917,
-0.5444910526,
-0.1952549219,
-0.0342568941,
0.1130030677,
0.1320816875,
0.064462617,
-0.0958100036,
0.3358771503,
0.0190795586,
-0.0274255276,
-0.0492889807,
-0.074357897,
-0.1696977764,
-0.2090102732,
-0.0742267072,
0.242567718,
0.023055993,
-0.2454910874,
0.2963338494,
0.258959651,
-0.1009148359,
0.1745903045,
0.1355243623,
0.0865423083,
-0.1246088669,
-0.1421932131,
-0.1530184746,
0.0659832582,
-0.2035205066,
0.4575894773,
0.0349645838,
-0.263219595,
-0.5190050006,
0.0634812042,
-0.2189638019,
-0.0599215105,
-0.0134630054,
0.1540388018,
0.2465147823,
-0.0262610987,
0.0705749542,
-0.1021022052,
0.103818655,
-0.3753695786,
0.055007115,
-0.1984351426,
-0.4159477055,
0.0520621836,
0.0362304673,
0.0176687203,
-0.2496101856,
-0.1657963246,
-0.1368051171,
0.1306782812,
-0.1476327181,
0.1554264426,
0.4196244776,
0.0659340769,
0.0262132287,
0.1470689774,
0.107405737,
-0.2000732124,
0.2734327316,
0.0588101968,
0.0231608488,
-0.0664215535,
-0.3663852513,
0.2728357613,
-0.1010290384,
-0.2770082951,
0.0349045843,
-0.5597996116,
0.3022978604,
0.2005217373,
0.1087437123,
0.0053183585,
0.0642160028,
-0.3475565314,
0.3698146343,
-0.4612919092,
0.2046327889,
-0.045162417,
0.33030653,
-0.1753953248,
0.1733090281,
-0.317658782,
-0.767121315,
0.2427632213,
-0.3001484275,
-0.0834676921,
0.1464911699,
0.0340715721,
-0.1214430183,
0.1729817539,
-0.2208022326,
0.0893115848,
-0.0316909514,
-0.0686633289,
0.1665672064,
-0.2547788024,
-0.2116605043,
-0.4258862436,
0.0152584165,
-0.041757144,
-0.5153881907,
0.3571023941,
0.1193011776,
-0.3739498258,
-0.3116868138,
0.2690061331,
-0.1038859338,
-0.2080877721,
-0.1168523878,
0.2687582672,
-0.1084579751,
0.0143570118,
-0.5090367794,
0.1212972701,
-0.0007315911,
-0.3114988804,
0.4452406168,
0.1880422086,
0.0074211098,
-0.3056252003,
0.2982735038,
0.4102920294,
0.1303008497,
0.4531942904,
-0.1391330957,
-0.0143082179,
-0.0755284131,
0.2140804827,
0.0493242443,
-0.1115581021,
-0.1117411107,
0.2841149867,
0.1176203042,
-0.0952012688,
-0.1254861802,
0.1526381522,
0.1783768684,
-0.0880276933,
0.061759863,
0.1566080004,
-0.1742017716,
0.1263119727,
0.1600431353,
0.0594891086,
0.1768952012,
0.1391761005,
-0.2293736935,
0.0531166717,
-0.1666698754,
-0.158081919,
0.2809894681,
0.0568835959,
0.4773668051,
0.1018740386,
0.2846911252,
-0.2070890814,
-0.17742908,
-0.1415570527,
-0.0324728936,
0.0808201879,
-0.1407949179,
0.0441582054,
-0.1467217505,
-0.1975242794,
0.0022288002,
-0.6770452261,
0.0133735724,
-0.0239389762,
-0.1055032313,
0.023071032,
-0.0805764645,
0.2785802484,
-0.0787079856,
-0.128610462,
0.2623372674,
-0.1532336473,
-0.147690177,
0.0146169104,
-0.0939419717,
-0.0071483478,
0.184980467,
-0.0640513226,
-0.1356012821,
0.2387932539,
0.1510274112,
-0.1945216954,
-0.3252474666,
-0.0284231417,
-0.0677537993,
0.2654833794,
0.4885598719,
-0.1751175523,
0.1404501796,
-0.3283757269,
0.322798878,
-0.1191449314,
-0.2491331249,
0.1754207313,
-0.1840378493,
0.0105266608,
-0.1025371403,
0.0885619894,
-0.1960030645,
-0.2494000047,
0.2090708613,
0.4657219052,
0.216571331,
0.2988513708,
0.4565907121,
0.210746944,
-0.0091057681,
-0.1195415482,
0.3286368549,
0.2301233113,
0.4304124415,
-0.0030972175,
-0.1493748128,
-0.1261470914,
-0.843159914,
0.1197354048,
0.377520591,
0.1666360497,
-0.1006569937,
-0.1861112714,
0.1386384219,
0.0683849007,
0.034507297,
0.3450481296,
0.0837462246,
0.0808113366,
-0.2081270814,
-0.0666601956,
0.387049377,
0.2004282475,
-0.0055893846,
0.2823002636,
0.3034777343,
-0.1905015111,
0.6329154968,
-0.0674087703,
-0.3457586169,
0.2688481212,
-0.1577973068,
-0.1502289623,
-0.1161776632,
-0.2045218945,
-0.0719865859,
0.0357279032,
-0.2111999542,
-0.0722619072,
-0.0487269759,
-0.3421905339,
0.1218047291,
0.3561460376,
0.0475995541,
0.1159226969,
-0.0661759153,
-0.0563894957,
0.2670343816,
-0.1015589163,
0.1103117466,
-0.3185113668,
-0.2099429965,
-0.301807791,
-0.3100991845,
0.2342045009,
-0.0515381023,
-0.2744891047,
-0.034687683,
0.0665808469,
0.278024435,
0.5870445967,
0.1450058818,
0.1673186421,
-0.0304366164,
0.136895299,
-0.0556076318,
0.3812724948,
-0.0937616825,
-0.2223680168,
0.5127316117,
0.0989440978,
-0.4337404072,
-0.2174160182,
-0.0203592703,
-0.0968287289,
-0.2593230009,
0.081382215,
-0.2699008882,
-0.0149406604,
0.3794330657,
0.1416917592,
-0.077613242,
-0.2296660244,
-0.1584010422,
-0.0875888839,
-0.1614017636,
-0.2980894744,
-0.0982203558,
0.3584460616,
0.1197393611,
-0.4149911404,
-0.3605045974,
-0.1243129298,
-0.1632246375,
-0.0213894956,
0.3761023283,
-0.2070842385,
0.047063373,
-0.2696407437,
-0.0585361868,
0.2221455872,
-0.0487719029,
0.156363681,
0.1389496475,
0.0472323857,
-0.0450555906,
0.5575082898,
0.1805845797,
-0.1562364846,
0.1604667008,
0.0501111709,
0.1121300086,
-0.1579120159,
-0.3009761572,
0.5219438672,
-0.4097989202,
0.0791214257,
-0.334186852,
0.5171595216,
-0.0643040985,
0.2047122419,
0.3343689442,
0.291230917,
-0.1984201074,
0.164022103,
0.633012116,
0.827763319,
0.1401900053,
0.1410464197,
0.7423071861,
-0.0447889306,
-0.0904029533,
0.5768278241,
0.1131710857,
-0.4875541329,
0.1066651568,
-0.2029249072,
-0.3054342866,
0.2331065685,
0.1518639624,
-0.1239454225,
-0.0216848943,
-0.0988503471,
0.4097414315,
0.2667945027,
-0.0106266364,
-0.2763107121,
-0.1656613946,
-0.1189562976,
-0.0065220818,
0.0528803393,
-0.52512151,
-0.1581436694,
-0.3651212156,
0.0084713474,
-0.0222082287,
-0.1836153418,
-0.0284259692,
-0.2258720994,
0.0450625196,
0.4800757766,
-0.5878508091,
0.1917487383,
0.1592957228,
-0.0156093836,
-0.3468285799,
-0.1109328791,
-0.0694320649,
0.1753305793,
-0.1501406282,
-0.2098661065,
-0.3819768429,
0.3388651907,
0.0652790815,
-0.1567866504,
-0.0076097604,
-0.0468295105,
-0.1408230364,
-0.2539270818,
-0.0392382778,
0.2380219549,
-0.2631185353,
-0.1170003563,
-0.2332711369,
-0.0605956987,
-0.1205426753,
-0.0294408519,
0.1776786149,
0.0005444661,
0.0130402278,
0.1819696575,
0.1543808132,
-0.0411548726,
-0.0601761304,
0.5626728535,
0.1886492521,
0.3105589151,
0.266761601,
0.0261357278,
-0.0932111144,
0.264654696,
0.4370452464,
-0.5262253881,
0.1717758477,
0.1161474958,
-0.1427191794,
-0.0936784148,
0.3504410088,
-0.0658151582,
0.327106595,
-0.1283335537,
-0.0530619398,
-0.2728985548,
0.3411974013,
-0.0420775563,
0.3002477884,
-0.2621005177,
-0.0368265472,
0.056318447,
-0.0335123427,
-0.1439364552,
0.0840522945,
0.2423205674,
-0.1925822347,
-0.4776725769,
-0.0777852237,
0.0831142217,
0.1527281702,
-0.0344701298,
0.0057047345,
-0.5085960627,
-0.0119311064,
-0.0374540873,
0.2035380602,
0.1438117623,
-0.1473113298,
0.1234723553,
-0.0211334191,
-0.3804353178,
-0.1049259156,
-0.1208062023,
-0.1715062261,
-0.1165287793,
-0.093228966,
0.3691175282,
0.1329871416,
-0.2661266923,
0.086914137,
-0.1710868031,
0.2644999921,
0.1452869922,
0.0637354404,
0.0402694233,
-0.1136697009,
-0.1227023974,
0.2589555979,
0.012604462,
-0.260525316,
0.5132203698,
-0.360714376,
-0.3177290559,
-0.2466160059,
0.6039428115,
0.2200219929,
-0.1087347865,
0.0422895029,
0.0518620871,
0.054295633,
-0.2933724523,
0.0083420388,
0.3620055914,
0.168365106,
0.0796840936,
0.3961847425,
0.3050345182,
-0.0819178075,
0.0781152621,
0.1511455625,
-0.0342173204,
0.0229409672,
0.0221412741,
0.61439538,
-0.0979320258,
0.0784122944,
0.4165048897,
0.0984418541,
0.4063201845,
0.2499709874,
0.0153696556,
0.4456935227,
0.4248220623,
-0.078811042,
0.2008182406,
-0.0426150151,
0.0157024339,
0.1423567235,
0.4935709536,
-0.0558745228,
0.1126003265,
0.7638301253,
0.1266032755,
0.0897482336,
-0.2980300784,
-0.1383942813,
0.0386779904,
-0.0417293869,
-0.0584021434,
-0.0854913741,
-0.3334432244,
-0.3653235435,
-0.1893308312,
-0.346208334,
0.12358284,
-0.2630023658,
0.1551782787,
-0.447792083,
0.6662035584,
0.2066173255,
0.0486718491,
-0.0889628083,
0.4410880804,
0.3619863093,
0.0626948774,
-0.1430431008,
0.5823984146,
0.3293176293,
0.3508198559,
-0.3735732138,
-0.1025462002,
-0.1375533938,
-0.1838687509,
0.124676615,
0.1995574087,
0.0957780257,
0.2726637125,
0.2463156879,
-0.0009985566,
-0.0173519924,
0.178215161,
0.3353330493,
-0.1091605723,
-0.2478856593,
0.2219823003,
-0.3379707038,
-0.0672513098,
0.0929326862,
-0.0029858835,
-0.4135435224,
-0.0170296617,
0.2774393559,
-0.2001984268,
-0.0512871593,
0.0032045729,
-0.0143804811,
-0.2667315006,
0.5101755857,
0.059890192,
0.4724584222,
0.0209750719,
-0.130322814,
-0.3563615084,
0.3754884005,
-0.2177900076,
0.0949424133,
0.3324355185,
0.1496607661,
0.0329757929,
-0.0291195381,
0.2620599866,
0.2070946395,
-0.0250281915,
0.4323692918,
-0.3074162006,
0.0020206142,
0.3492791653,
0.0656787679,
-0.1466334015,
-0.2338239998,
0.1958293319,
-0.4173711836,
-0.1105687842,
0.1605213583,
0.0218839198,
0.1033969596,
0.0660817325,
0.4318195283,
-0.0104291784,
0.130034551,
0.2182444781,
-0.0676104352,
-0.2745563388,
-0.2089973688,
-0.1232424304,
0.2718925178,
0.1555335522,
0.4557083845,
-0.2516749203,
0.2150693238,
-0.0657659322,
-0.0497676879,
0.0068622082,
0.1790619344,
-0.242369622,
0.5438680053,
-0.5492841005,
-0.0779450312,
0.1637867987,
-0.2548533082,
0.0568842627,
0.2144900262,
-0.1388093233,
-0.4605127573,
0.5378773212,
0.0551775955,
-0.4742548168,
0.0790164471,
-0.1847561896,
0.3659100831,
-0.0947690606,
-0.2403982431,
-0.0366392061,
0.3571834862,
0.0730747581,
0.1886266172,
0.0995166749,
0.1005747169,
-0.101912044,
-0.216826126,
-0.0144386292,
-0.0712291971,
-0.0771795958,
-0.3374572694,
-0.4207010865
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Hi ! We haven't worked in this lately and it's not in our very short-term roadmap since it requires a bit a work to make it work with arrow. Though this will definitely be added at one point. | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 38 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Hi ! We haven't worked in this lately and it's not in our very short-term roadmap since it requires a bit a work to make it work with arrow. Though this will definitely be added at one point. | [
-0.0987303481,
0.2157684863,
-0.0361896306,
0.198080942,
0.3335241973,
-0.0148139,
0.6729158759,
0.0941129178,
-0.2653334141,
0.192052573,
0.3300936818,
0.2847849727,
-0.1851578206,
-0.0952649713,
0.2423304617,
-0.3900921345,
0.1759409308,
0.4636600912,
0.0826876909,
0.0519563109,
-0.0520088933,
-0.1384515315,
-0.2443873286,
0.2918312848,
-0.397759676,
-0.0074213594,
-0.2625417113,
-0.2283945978,
-0.1936279982,
-0.5090432167,
0.3147084713,
-0.000643861,
0.1157894433,
0.220484674,
-0.0001211161,
0.0560126901,
0.4980729222,
0.0563405901,
-0.2676819563,
-0.1266444921,
0.0979182273,
-0.3960362673,
0.2492387593,
-0.3438537419,
-0.0336585231,
-0.8026288152,
0.0193171892,
0.0221977234,
0.0784245059,
0.2514156401,
0.1347983479,
0.1327702999,
0.2914689779,
-0.199277252,
0.4904190302,
0.3490459919,
-0.2730591297,
-0.084379226,
0.3083592355,
0.0497194231,
-0.0195993632,
-0.2024358213,
-0.0691876262,
0.152765125,
0.3510463238,
0.3043108582,
0.3325366378,
-0.2280718982,
-0.0403410532,
0.4299195409,
0.5088967085,
-0.1575272977,
-0.1708115041,
-0.1280062348,
0.0862526521,
-0.0945467576,
-0.0624221563,
0.2352119982,
-0.2872252464,
-0.0706204623,
-0.1919656694,
0.162507087,
-0.4509159625,
0.3606541157,
0.2118663788,
0.0809224546,
-0.0114205647,
0.2249782681,
-0.0935350582,
-0.2292496264,
0.537107408,
-0.35070467,
0.0374392867,
0.2259348035,
0.1172811985,
0.1355791688,
-0.106852442,
-0.2385309041,
0.4191493988,
-0.0049823336,
0.1828817129,
-0.0639444143,
0.3001129031,
0.108402051,
-0.1901923418,
0.2092389911,
-0.0208751298,
-0.1174461991,
-0.0792733356,
0.1655405909,
0.0466905981,
0.0618222356,
-0.2769744694,
-0.2844104469,
0.4106659889,
-0.0709564835,
0.2312157154,
0.267347157,
0.0908107013,
0.0294299535,
-0.5808671713,
-0.1497227699,
-0.0254864395,
0.2121634483,
0.0922297239,
-0.1061179191,
-0.1419930458,
0.4051832855,
0.0228593051,
-0.0956135318,
-0.199820444,
0.0070379116,
-0.2048151791,
-0.0589820333,
0.1027756929,
0.1123302504,
0.1261415184,
-0.0109213702,
0.0562066734,
0.1010502726,
0.2348325402,
0.0499262512,
0.1728390455,
0.1402009577,
-0.1890894175,
-0.0646461248,
-0.0335473195,
-0.1814264953,
-0.2189385742,
0.3710364699,
-0.0744904652,
-0.2519071102,
-0.4225302935,
0.0955077931,
-0.2765150964,
0.065134868,
-0.0594706275,
0.0752611905,
0.2303730249,
0.0628444403,
0.0401094109,
-0.031094484,
0.2473569214,
-0.3945892155,
0.1873606443,
-0.001576826,
-0.3177871704,
-0.0184288695,
-0.1473840773,
-0.0497861356,
-0.0766061544,
-0.0850058347,
-0.2564002275,
0.2750616968,
-0.2200448811,
0.2653539181,
0.6616531014,
0.2300471365,
-0.0275228135,
0.0093545914,
0.0203854442,
-0.1692546308,
0.2073653787,
0.0774760246,
-0.1663614959,
-0.0375830717,
-0.3147426248,
0.2284340262,
-0.1725176275,
-0.2374634445,
-0.0014490262,
-0.3701044023,
0.4319515824,
0.1311578751,
0.0757123977,
-0.0256975517,
-0.059315145,
-0.4242019653,
0.0617764294,
-0.4753856063,
0.23887299,
0.0956534594,
0.3680792451,
-0.1174955815,
0.1033728868,
-0.198798418,
-0.663316071,
0.1479941308,
-0.3269465566,
0.0684966594,
-0.1035159305,
-0.0127290413,
-0.1167168468,
0.1993878186,
-0.1957891732,
0.0680559054,
0.0465569161,
0.0832819194,
0.1992707551,
-0.1604416966,
-0.2258425057,
-0.4588739276,
0.0166465417,
-0.022931315,
-0.3702345192,
0.5743253231,
-0.0487582237,
-0.3515617847,
-0.3371124864,
0.1342280805,
0.059916541,
-0.0795550048,
0.0301117525,
0.1492352486,
-0.0830536634,
-0.0787755474,
-0.4900356829,
0.0864024758,
0.0316078365,
-0.4731903672,
0.2193963677,
0.181365788,
-0.0090984181,
-0.2457866967,
0.0635040849,
0.374784112,
0.0879562497,
0.5813252926,
-0.1269721538,
0.0660559461,
-0.0166173279,
0.1873176396,
-0.0637855008,
-0.0988993049,
-0.0413625017,
0.1875486076,
0.21956186,
-0.0412392169,
-0.0814981759,
0.0124035925,
0.2831689417,
-0.0763909817,
0.0485756919,
0.0943502039,
-0.2622020245,
0.0241299272,
0.2071482688,
-0.2704467773,
0.0933377221,
0.1391815394,
-0.0742500573,
0.0506265014,
-0.2858201265,
-0.1754849106,
0.1957794428,
0.084619768,
0.5732077956,
0.1150953919,
0.2738002539,
-0.209238112,
-0.2014389932,
-0.17613177,
0.085168846,
0.1505380273,
-0.2391187847,
0.0694113597,
-0.0960015357,
0.0080925152,
-0.0627083629,
-0.5734018683,
0.0562898219,
-0.0410984308,
-0.1251584142,
-0.007178837,
-0.1493553519,
0.26931867,
0.0940233022,
-0.1845421344,
0.2232490182,
-0.13778162,
-0.2320768833,
-0.0810123533,
-0.1397721171,
0.0229131393,
0.1893304735,
0.0311694816,
-0.094059594,
0.0999365672,
0.0354995504,
-0.4118801951,
-0.4540099204,
0.0996512845,
-0.114249371,
0.3344698846,
0.5833548307,
-0.0149074569,
0.070024088,
-0.3229906559,
0.4294368625,
-0.0011497736,
-0.2277643383,
0.3517602682,
-0.2792388499,
0.0788521618,
-0.1059110612,
-0.0940302983,
0.0376971737,
-0.2489798516,
0.1979442984,
0.4887152612,
0.2029843032,
0.2031733245,
0.4810775518,
0.3484107256,
-0.080846101,
0.0429803878,
0.2867519557,
0.2725436389,
0.4623091221,
-0.1302217394,
-0.2261165082,
-0.0421510935,
-0.9024543762,
0.0799670666,
0.2271861434,
0.0157990754,
-0.1956703514,
-0.1324648708,
0.3634043336,
-0.0211039279,
0.1189386994,
0.2944113016,
0.1568293571,
0.041589424,
-0.1517077684,
-0.0737199485,
0.4391619861,
0.1008505821,
-0.0229891092,
-0.0276295654,
0.265887022,
-0.1881069541,
0.6245258451,
0.1190609261,
-0.3782255352,
0.1852203608,
-0.2673844695,
-0.0269856676,
-0.2219007611,
0.0707334653,
-0.182499066,
0.1632911861,
-0.0858730525,
-0.0685773343,
-0.0720269978,
-0.2815800011,
0.1158354133,
0.2448932528,
-0.0577878095,
-0.0230548531,
0.0227085892,
-0.0264495127,
0.161194399,
-0.1319910884,
0.0804315358,
-0.2733569145,
-0.107901521,
-0.1891678572,
-0.2828922272,
0.2439751327,
0.0177740976,
-0.2827565074,
0.0709543526,
0.067684792,
0.1395317912,
0.4566802084,
-0.1347289085,
0.238364011,
-0.1145223752,
0.0929658562,
-0.176099658,
0.5438804626,
-0.1566632688,
-0.2314193398,
0.516502738,
0.2314658314,
-0.5232297182,
-0.1886627674,
-0.1555231214,
0.1535915583,
-0.3465434909,
0.1494380534,
-0.3906954527,
-0.0117444396,
0.3368810117,
0.3738777637,
0.0040630475,
-0.1206000149,
-0.1647746861,
-0.2754907906,
-0.0847475454,
-0.2419992834,
-0.0858824998,
0.3476137519,
0.0977023169,
-0.4191308022,
-0.3573646843,
0.0367638171,
-0.1770738661,
-0.000714954,
0.4346480966,
-0.287487179,
0.0712677762,
-0.3394145966,
-0.0203108825,
0.2301020771,
0.1398206502,
0.1775075346,
-0.0662312359,
0.1435071528,
-0.092641741,
0.4353049397,
0.0863316283,
-0.0882265791,
0.0783947706,
0.1191975921,
0.1082922593,
-0.0133695751,
-0.079889372,
0.4191328585,
-0.3305974603,
-0.1619995385,
-0.3191151917,
0.6340943575,
-0.0104078054,
0.1801793128,
0.2604025602,
0.4216444194,
-0.1894235015,
0.2551966906,
0.5969880819,
0.8620147705,
0.0378391743,
0.1722197235,
0.691613853,
0.0355376452,
0.2889746428,
0.3305394053,
0.1108351052,
-0.517072022,
0.0400556289,
-0.0893092155,
-0.4294853508,
0.2397998124,
0.2657111883,
-0.247680679,
-0.0125881881,
-0.2438178658,
0.4807458222,
0.1565130949,
-0.0536971241,
-0.2015185803,
-0.1308675408,
-0.0795705616,
0.0604369268,
0.0184549913,
-0.3900188804,
-0.1430815458,
-0.2199501395,
-0.1441864222,
-0.0366116539,
-0.0495153517,
0.0460664034,
-0.3448441327,
-0.0502128825,
0.5167241096,
-0.551548779,
0.0668502301,
0.1653506756,
0.0559454896,
-0.2133406252,
-0.117941767,
-0.0366182774,
0.2471697032,
-0.2361063361,
-0.1293750256,
-0.3045615852,
0.2676636875,
0.0444944426,
-0.0840875283,
0.0538345985,
-0.1256598532,
-0.0603562742,
-0.0545579046,
-0.0292105936,
0.1936978698,
-0.2170751095,
-0.1509853899,
-0.114518404,
-0.1592564881,
-0.1218207479,
0.0389195457,
0.1215790138,
-0.1410831809,
-0.1378937662,
0.117748633,
0.070464924,
-0.0119491462,
-0.0516500473,
0.5510164499,
0.3104275167,
0.3901573122,
0.256870985,
-0.0192210637,
-0.1990413964,
0.0780667067,
0.5724362135,
-0.6061905026,
0.1683154106,
0.1329139769,
-0.1789970398,
-0.1007018983,
0.5450149775,
-0.1170512736,
0.2916313708,
-0.127350539,
0.0724844486,
-0.3985956609,
0.251529932,
0.183390975,
0.3132038713,
-0.2412901074,
-0.0718393549,
0.0583635345,
-0.1033634692,
-0.2108916938,
0.0564167202,
0.054343015,
0.0073620472,
-0.5352550149,
-0.0172982272,
0.0381668843,
0.072281003,
0.0940533131,
0.0146773346,
-0.3673618734,
-0.1302562356,
-0.0836913809,
0.1734054387,
0.1289808899,
-0.1058810204,
0.201043874,
-0.0167972259,
-0.2995279729,
-0.2105612308,
-0.0431370214,
-0.1308128387,
-0.1920120418,
-0.0990228578,
0.3399966061,
0.0207303632,
-0.4380847216,
-0.1024570167,
-0.2397681326,
0.2741349041,
0.0725256801,
0.0206981245,
0.0892330855,
-0.0455879197,
-0.0507859848,
0.2219915837,
0.0105402991,
-0.240154326,
0.3798940182,
-0.4209007025,
-0.2788289189,
-0.3206581771,
0.386651963,
0.2373379022,
-0.2053191513,
0.1342793107,
0.1600239873,
0.1335509121,
-0.293145895,
0.1127546132,
0.1565288305,
-0.0677808449,
0.1565395147,
0.3240004778,
0.1053993404,
-0.0171620399,
-0.08242888,
0.0963171422,
-0.1141308695,
0.0136928298,
0.1066904813,
0.641990006,
-0.1201374009,
0.1007381231,
0.4103650153,
-0.00685135,
0.2283300757,
-0.1362495273,
-0.1021315306,
0.3618029356,
0.1366478205,
-0.1150347888,
0.2637452185,
0.0144053474,
0.0423782803,
0.1945027411,
0.5667418242,
-0.1246591955,
0.0776449144,
0.6018325686,
0.2360680103,
0.001224529,
-0.3576304018,
-0.1152866036,
-0.0390123762,
-0.0028818399,
-0.1766205281,
-0.1126501709,
-0.2524792552,
-0.344504565,
-0.1269438267,
-0.3985769749,
0.1758279204,
-0.0852210969,
0.1613775343,
-0.308270812,
0.7386055589,
0.1928739995,
0.0191339441,
-0.0908378735,
0.4798517525,
0.3387976587,
-0.1544822007,
-0.19703421,
0.4266254604,
0.3237749934,
0.3594302535,
-0.336614728,
-0.0549652278,
-0.0887421966,
-0.2488777339,
0.0408422798,
0.1050988138,
0.2121211737,
0.0920438021,
0.2440500557,
0.0547367781,
-0.1042801216,
0.2355066687,
0.2357190102,
0.0055957697,
-0.1912838668,
0.3488591313,
-0.2889258564,
-0.1870107353,
0.0504452176,
-0.0754320025,
-0.3536975086,
-0.1060263291,
0.3406725824,
-0.10863024,
-0.0013784096,
-0.0808873028,
0.0409444794,
-0.2456537187,
0.4476253688,
0.0733394027,
0.5915705562,
-0.1646007746,
-0.0669566169,
-0.3540525436,
0.3694661856,
-0.4273030162,
0.0692667067,
0.288357228,
0.2724446654,
-0.06474787,
0.1407485455,
0.0931726769,
0.2419684827,
0.0484819561,
0.3780899346,
-0.3498035073,
-0.1115470827,
0.2903208137,
0.0275093224,
-0.1034036949,
-0.3440868258,
0.1482645124,
-0.3978515565,
-0.0133105963,
0.2130670398,
0.1051584035,
0.199124977,
0.210468173,
0.5235131383,
-0.0204213262,
0.0953863561,
0.1667880118,
-0.0646304041,
-0.2480613589,
-0.1721424609,
-0.1831059754,
0.2971853912,
0.0449292473,
0.4057393074,
-0.1876797676,
0.2667943835,
-0.1443159282,
-0.135772869,
0.1033098325,
0.2441292703,
-0.2240693569,
0.4508425891,
-0.6143887043,
0.0196529888,
0.0096425191,
-0.2210222185,
0.0637928694,
0.0643514469,
-0.1437484026,
-0.4331989288,
0.6617773771,
-0.2992736995,
-0.4578567147,
0.0730497688,
-0.0448702797,
0.4074348211,
-0.1394217312,
-0.281971395,
-0.0614761114,
0.4609856308,
0.0146076456,
-0.0193116292,
0.01725417,
0.0047946349,
0.0918333456,
-0.1730271876,
0.1973409057,
-0.0937362909,
-0.1125747561,
-0.4181851745,
-0.5695376992
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | @lhoestq, thanks for the update.
I actually tried to modify some piece of code to make it work. Can you please tell if I missing anything here?
I think that for vast majority of cases it's enough to make first dimension of the array dynamic i.e. `shape=(None, 100, 100)`. For that, it's enough to modify class [ArrayExtensionArray](https://github.com/huggingface/datasets/blob/9ca24250ea44e7611c4dabd01ecf9415a7f0be6c/src/datasets/features.py#L397) to output list of arrays of different sizes instead of list of arrays of same sizes (current version)
Below are my modifications of this class.
```
class ArrayExtensionArray(pa.ExtensionArray):
def __array__(self):
zero_copy_only = _is_zero_copy_only(self.storage.type)
return self.to_numpy(zero_copy_only=zero_copy_only)
def __getitem__(self, i):
return self.storage[i]
def to_numpy(self, zero_copy_only=True):
storage: pa.ListArray = self.storage
size = 1
for i in range(self.type.ndims):
size *= self.type.shape[i]
storage = storage.flatten()
numpy_arr = storage.to_numpy(zero_copy_only=zero_copy_only)
numpy_arr = numpy_arr.reshape(len(self), *self.type.shape)
return numpy_arr
def to_list_of_numpy(self, zero_copy_only=True):
storage: pa.ListArray = self.storage
shape = self.type.shape
arrays = []
for dim in range(1, self.type.ndims):
assert shape[dim] is not None, f"Support only dynamic size on first dimension. Got: {shape}"
first_dim_offsets = np.array([off.as_py() for off in storage.offsets])
for i in range(len(storage)):
storage_el = storage[i:i+1]
first_dim = first_dim_offsets[i+1] - first_dim_offsets[i]
# flatten storage
for dim in range(self.type.ndims):
storage_el = storage_el.flatten()
numpy_arr = storage_el.to_numpy(zero_copy_only=zero_copy_only)
arrays.append(numpy_arr.reshape(first_dim, *shape[1:]))
return arrays
def to_pylist(self):
zero_copy_only = _is_zero_copy_only(self.storage.type)
if self.type.shape[0] is None:
return self.to_list_of_numpy(zero_copy_only=zero_copy_only)
else:
return self.to_numpy(zero_copy_only=zero_copy_only).tolist()
```
I ran few tests and it works as expected. Let me know what you think. | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 224 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
@lhoestq, thanks for the update.
I actually tried to modify some piece of code to make it work. Can you please tell if I missing anything here?
I think that for vast majority of cases it's enough to make first dimension of the array dynamic i.e. `shape=(None, 100, 100)`. For that, it's enough to modify class [ArrayExtensionArray](https://github.com/huggingface/datasets/blob/9ca24250ea44e7611c4dabd01ecf9415a7f0be6c/src/datasets/features.py#L397) to output list of arrays of different sizes instead of list of arrays of same sizes (current version)
Below are my modifications of this class.
```
class ArrayExtensionArray(pa.ExtensionArray):
def __array__(self):
zero_copy_only = _is_zero_copy_only(self.storage.type)
return self.to_numpy(zero_copy_only=zero_copy_only)
def __getitem__(self, i):
return self.storage[i]
def to_numpy(self, zero_copy_only=True):
storage: pa.ListArray = self.storage
size = 1
for i in range(self.type.ndims):
size *= self.type.shape[i]
storage = storage.flatten()
numpy_arr = storage.to_numpy(zero_copy_only=zero_copy_only)
numpy_arr = numpy_arr.reshape(len(self), *self.type.shape)
return numpy_arr
def to_list_of_numpy(self, zero_copy_only=True):
storage: pa.ListArray = self.storage
shape = self.type.shape
arrays = []
for dim in range(1, self.type.ndims):
assert shape[dim] is not None, f"Support only dynamic size on first dimension. Got: {shape}"
first_dim_offsets = np.array([off.as_py() for off in storage.offsets])
for i in range(len(storage)):
storage_el = storage[i:i+1]
first_dim = first_dim_offsets[i+1] - first_dim_offsets[i]
# flatten storage
for dim in range(self.type.ndims):
storage_el = storage_el.flatten()
numpy_arr = storage_el.to_numpy(zero_copy_only=zero_copy_only)
arrays.append(numpy_arr.reshape(first_dim, *shape[1:]))
return arrays
def to_pylist(self):
zero_copy_only = _is_zero_copy_only(self.storage.type)
if self.type.shape[0] is None:
return self.to_list_of_numpy(zero_copy_only=zero_copy_only)
else:
return self.to_numpy(zero_copy_only=zero_copy_only).tolist()
```
I ran few tests and it works as expected. Let me know what you think. | [
0.0081768483,
0.1172868609,
-0.1061084121,
0.2801858187,
0.4025137126,
-0.0643157959,
0.5933443904,
0.1092593223,
-0.2332410514,
0.2207364291,
0.1275906265,
0.3022353649,
-0.2472839952,
-0.0211960077,
0.2019219846,
-0.3135285676,
0.0890401304,
0.5067413449,
0.0488857664,
-0.0273192003,
-0.0532910414,
-0.0695482865,
-0.1607425958,
0.146854952,
-0.2513417602,
0.0687444955,
-0.2443506122,
-0.2243442535,
-0.1773380786,
-0.4697857201,
0.2879074812,
0.188869983,
0.0287835002,
0.0859836563,
-0.0001230811,
0.0541414171,
0.3321120739,
-0.0007846504,
-0.2714825869,
-0.0819976032,
0.201564163,
-0.4400663972,
0.2384083867,
-0.3255054951,
-0.0139814466,
-0.8362491727,
-0.0494648069,
-0.111090757,
0.0708756819,
0.2057908773,
0.1044425815,
0.0736097991,
0.2843001187,
-0.0789363235,
0.4699326754,
0.3682914674,
-0.2882513404,
-0.1275916696,
0.3975458145,
0.1431575418,
-0.0400083102,
-0.2101088315,
-0.1313414425,
0.1417172551,
0.3835516274,
0.226485312,
0.2187134624,
-0.2353862822,
0.0733533949,
0.3944593668,
0.5115255713,
-0.2453646064,
-0.1943129599,
-0.2347998321,
0.0897708386,
-0.0467549376,
-0.0856359005,
0.3283030689,
-0.2202516198,
-0.0487606898,
-0.3536952734,
0.228640914,
-0.51237005,
0.3541974127,
0.1902454197,
0.077399902,
-0.0146470442,
0.2034287006,
-0.1073709875,
-0.2308214754,
0.5585185289,
-0.3572503924,
0.0319316797,
0.2399896383,
0.0688932613,
0.102844581,
-0.0690789372,
-0.4354411066,
0.3606015444,
-0.0460960828,
0.1935752779,
-0.0213644411,
0.2743872106,
0.0304054711,
-0.1026974767,
0.298535347,
-0.0004927963,
-0.0596962981,
-0.2731168866,
0.1101119667,
0.1455022991,
0.0948338807,
-0.1704499424,
-0.1599852294,
0.4061373472,
-0.0382159688,
0.2606360316,
0.2152995914,
0.0485560596,
0.0190864392,
-0.7071175575,
-0.1580281556,
-0.0421598703,
0.127848506,
0.1143366247,
0.0015047826,
-0.0514346622,
0.3788039982,
0.0120273679,
-0.1303398907,
-0.1523467898,
-0.0806084126,
-0.1551575065,
0.0050094835,
0.0776839554,
0.2427166998,
0.0285713971,
0.0373321325,
0.1099320203,
0.0145728365,
0.097811833,
0.0748506859,
0.2582396567,
0.1224495992,
-0.1893650889,
-0.0665745884,
-0.0766479746,
-0.0325966477,
-0.2722555399,
0.4397108257,
-0.0544197261,
-0.242206499,
-0.3447396159,
0.064946115,
-0.2117097676,
0.1184358522,
-0.1155638769,
0.0989571512,
0.2430279404,
0.0399204046,
0.0517662056,
-0.0657432973,
0.1976663768,
-0.445769608,
0.139611721,
0.00011044,
-0.4662373662,
0.0617592558,
-0.0835715607,
-0.0497665629,
-0.0255614184,
-0.1201091707,
-0.200763762,
0.1728929281,
-0.2748222649,
0.3207061589,
0.5103971958,
0.3285773695,
-0.1169237345,
0.0830683857,
0.03261289,
-0.0853299946,
0.2711329162,
0.0790559649,
-0.1332362741,
0.0536821485,
-0.3695649207,
0.1610991508,
-0.0928769708,
-0.1600338221,
-0.0935421139,
-0.4882471263,
0.3123807311,
0.1447314918,
0.1749598086,
0.0073291771,
-0.0438048281,
-0.4492780268,
0.2552005649,
-0.5342483521,
0.2359114587,
0.1078923419,
0.3874284327,
-0.0732292756,
0.0397917181,
-0.1910842955,
-0.6725093126,
0.190442875,
-0.4558858275,
0.0481470674,
-0.0301428623,
-0.0505478382,
-0.1543768942,
0.1480971873,
-0.1734683514,
0.1258006394,
0.050397791,
0.1491034329,
0.2341408581,
-0.2919440866,
-0.0407902189,
-0.3832756877,
-0.1340227723,
-0.1048873812,
-0.5120505691,
0.6572319269,
0.0724063739,
-0.2904246151,
-0.2972913682,
0.1471009254,
0.0280328561,
-0.0370863341,
-0.1188069284,
0.122928381,
-0.0658307225,
-0.1131174415,
-0.4702680409,
0.1696008891,
-0.0339042284,
-0.2905174196,
0.2976222038,
0.1144753397,
-0.0782997236,
-0.1841138899,
0.1907575577,
0.5881358385,
0.0851958022,
0.5646954179,
-0.1479355991,
-0.0133567043,
-0.1236784756,
0.1781947315,
-0.0113225169,
-0.1554100811,
-0.1618800014,
0.2307120264,
0.2857266068,
-0.0325835869,
-0.1471520513,
0.1662854999,
0.2829981446,
-0.0573413968,
-0.0830608234,
0.0654533356,
-0.1417270154,
0.0683530942,
0.1191517413,
-0.1040918902,
0.2394603491,
0.1961165667,
-0.1819208264,
-0.0090215271,
-0.1736880988,
-0.1677853465,
0.2829220891,
0.1613491029,
0.5691127777,
0.1403346956,
0.3767084181,
-0.326477468,
-0.2785775363,
-0.1017968655,
0.0143976733,
0.1471292973,
-0.2031046152,
0.0580048785,
-0.1077750772,
-0.0069001168,
-0.1237571388,
-0.5938739777,
-0.0299381875,
0.0092833266,
-0.0754427761,
-0.0092027159,
-0.1901371181,
0.1717360467,
0.1932961345,
-0.1336841285,
0.2393601984,
-0.0947372392,
-0.1887860596,
0.0840676278,
-0.1397700161,
-0.0063822828,
0.2208730131,
0.0207982212,
-0.0917655602,
0.1303753555,
-0.0254863054,
-0.4571221471,
-0.3635930717,
0.1056087762,
-0.0876272991,
0.282962501,
0.5301011801,
-0.0609325022,
0.0696675628,
-0.2881967127,
0.3887398541,
0.0011954606,
-0.2087063193,
0.2950401902,
-0.2056491673,
0.1029594094,
-0.0882219225,
-0.0808871537,
-0.0251199193,
-0.2163187563,
0.2204162478,
0.3758435547,
0.2948093414,
0.230273813,
0.4909334481,
0.2809515595,
-0.0408369787,
0.0959875733,
0.1638636291,
0.2621396482,
0.3690191209,
-0.0638758242,
-0.1603314281,
-0.1058414057,
-0.8136044145,
0.0877403319,
0.3370885551,
-0.0335909948,
-0.3418257236,
-0.0918518007,
0.1671684682,
-0.0780731812,
0.0688277856,
0.3388420343,
0.0913428217,
0.0552683957,
-0.0304664299,
-0.0443068594,
0.4142757952,
0.1505998671,
-0.0082933493,
0.0106469393,
0.2831355333,
-0.1988794506,
0.5975488424,
0.0907364935,
-0.2871261835,
0.1008345634,
-0.2542865872,
-0.0541664623,
-0.2191137224,
-0.0126044899,
-0.1798831224,
0.1291855276,
-0.2310939431,
0.0599536076,
-0.1282231808,
-0.3053777218,
0.2517750263,
0.3372270465,
-0.0572946332,
-0.0584363565,
0.1691236496,
0.1370232552,
0.2135798782,
-0.1607348025,
0.1221000999,
-0.356007427,
-0.1773285121,
-0.3337773979,
-0.303722769,
0.1418000013,
-0.0402959585,
-0.2624797225,
0.0064573586,
0.0919447467,
0.2578710914,
0.5154527426,
-0.0265336931,
0.24619326,
-0.1622950137,
0.1618169695,
-0.0537191704,
0.5656303763,
-0.0027280245,
-0.2775238752,
0.5173030496,
0.1740545481,
-0.3937616944,
-0.3545575738,
-0.1032179669,
0.0811743438,
-0.2107178271,
0.0577996299,
-0.3799522221,
-0.1724499911,
0.2668896019,
0.3965164125,
-0.0091542751,
-0.1572375,
-0.1660690457,
-0.1168891788,
-0.1453478187,
-0.1957625747,
-0.185887754,
0.4336941838,
-0.007019911,
-0.4450421333,
-0.3357053995,
-0.1189308539,
-0.1390494853,
-0.000258889,
0.5432817936,
-0.2023104876,
-0.0015576854,
-0.3428705931,
-0.0080446526,
0.2560171783,
0.1139483154,
0.1824459583,
0.097942166,
0.2349181622,
-0.0910522938,
0.3822707832,
0.2372813821,
-0.2198993713,
0.044897303,
0.1027149111,
0.1267094016,
-0.0041623227,
-0.1936795115,
0.3796471357,
-0.4180856645,
-0.0466980562,
-0.3388866782,
0.6189414263,
0.0008020177,
0.1976179481,
0.2969823778,
0.4021168649,
-0.2434061468,
0.1732527912,
0.5898043513,
0.8234217763,
0.0210464187,
0.0911853462,
0.7183237672,
0.0649310499,
0.0476043709,
0.3822614551,
0.2309392095,
-0.4490117133,
0.0541267022,
-0.094968915,
-0.3679796755,
0.2082755268,
0.3048761189,
-0.1094016656,
-0.0617871545,
-0.0698590502,
0.4589514136,
0.0870967656,
-0.0568041578,
-0.2477201968,
-0.1235440969,
-0.1430545449,
-0.0164343193,
-0.1008475721,
-0.4252539277,
-0.02559679,
-0.3447966576,
-0.1840123832,
0.0054284334,
-0.0751824081,
-0.0757149905,
-0.4166589975,
0.0070469193,
0.5495271087,
-0.5068939924,
0.0692054555,
0.0717686862,
-0.1224001572,
-0.2166785896,
-0.1111353412,
-0.2361380756,
0.2741560042,
-0.1455592215,
-0.2216793001,
-0.3660669029,
0.2566594779,
0.1354085505,
0.0125840306,
-0.0158621334,
-0.1012879908,
-0.01871939,
-0.145192951,
-0.0238187686,
0.4159696698,
-0.393889457,
-0.1620077193,
-0.1356797218,
-0.1929825395,
-0.0884038135,
-0.0010423856,
0.1095190942,
-0.1016231626,
-0.0975385457,
0.1391426474,
0.080020681,
-0.0463302583,
-0.0389972739,
0.646451056,
0.2786626816,
0.3994380236,
0.1047927663,
0.0850068927,
-0.1724821031,
0.1371431649,
0.4868006706,
-0.5715531111,
0.2576580346,
0.0907600671,
-0.1696772873,
-0.0290161371,
0.5399843454,
-0.0442116931,
0.4526690841,
-0.1568929553,
0.1109003872,
-0.3084825277,
0.1464322656,
0.2114506066,
0.4577488899,
-0.2875780463,
0.0632195473,
0.0201824903,
-0.0414061248,
-0.1726884246,
-0.0439864509,
0.0355867669,
-0.0942758471,
-0.5580289364,
-0.0280820876,
0.0223018266,
0.0794297084,
0.0192789659,
-0.0443859547,
-0.5251635909,
-0.0822562575,
0.0110792667,
0.1850549728,
0.1398025304,
0.0243030638,
0.0904349238,
-0.0721931458,
-0.2565633357,
-0.2234506458,
-0.0548699871,
-0.1382231563,
-0.1830091774,
-0.1036146879,
0.3470050395,
-0.0156553946,
-0.403934449,
-0.0975516587,
-0.2694085538,
0.2371112704,
0.1720993966,
0.0714598,
0.0395609774,
-0.0362386778,
-0.188185215,
0.244089663,
-0.0303861536,
-0.2020332962,
0.2280721813,
-0.4099783897,
-0.4220004976,
-0.2187939584,
0.4399959743,
0.235927403,
-0.1673679203,
0.0056282878,
-0.0047206506,
0.1214901581,
-0.2195074558,
0.0944190398,
0.2432644963,
0.0230188034,
0.1590058059,
0.4403982759,
0.2849531174,
-0.1559408605,
-0.0112904496,
0.1214800626,
-0.0477194302,
0.0541856363,
0.1368539333,
0.6701661944,
-0.0493994132,
0.0855332762,
0.456831187,
-0.0183637831,
0.2231655121,
-0.0750396401,
-0.1158408821,
0.4804653525,
0.005745722,
-0.1140035167,
0.1891222,
-0.0114357322,
0.055955559,
0.2198230475,
0.4599027038,
-0.030586578,
0.0386231951,
0.6613846421,
0.0790275261,
-0.0843448862,
-0.3169944584,
-0.1286356151,
-0.0705110133,
0.0905377492,
-0.0533489995,
-0.1738109589,
-0.2111713737,
-0.3472500145,
-0.107962057,
-0.4550625384,
0.2416434884,
-0.1753717065,
0.2323980927,
-0.3419379592,
0.5808364749,
0.2017825842,
0.0361172222,
-0.1317175925,
0.4449380636,
0.3095207214,
-0.0174006857,
-0.180003047,
0.3680498898,
0.2668586969,
0.408431828,
-0.1282459795,
-0.1556949466,
0.0157010891,
-0.254337132,
0.0782620609,
0.0555278137,
0.185209021,
0.0283582881,
0.1995552331,
0.0424828678,
-0.0792539269,
0.268920958,
0.2696079016,
0.0073098913,
-0.1913243085,
0.3418934047,
-0.1809464693,
-0.1939795017,
-0.0263809599,
-0.2045589238,
-0.4663590491,
-0.0944079682,
0.2306014001,
-0.0828593224,
-0.016725488,
0.0332153141,
0.0149345659,
-0.19093436,
0.3069327176,
0.0963124111,
0.4915100336,
-0.2389020473,
-0.0760153532,
-0.2282327414,
0.3368023038,
-0.3284419775,
0.0892069116,
0.3115133941,
0.391877681,
-0.0411178768,
-0.0048774299,
0.0992715359,
0.1293205768,
0.0404653251,
0.4305917025,
-0.3858343363,
-0.022685986,
0.3656062484,
-0.0340371355,
-0.0408562049,
-0.2874156833,
0.1530669332,
-0.3587372005,
-0.0401053168,
0.1956938207,
0.2613579929,
0.1265029758,
0.2545160651,
0.3684667647,
-0.0861302242,
-0.0251062661,
0.1655200422,
-0.1269244254,
-0.294483453,
-0.1134404019,
-0.1281649619,
0.3101491034,
0.200876832,
0.5762239099,
-0.1929153204,
0.2245912552,
-0.1427206248,
-0.1243849397,
0.1041139439,
0.2011829466,
-0.2228569686,
0.4451681376,
-0.5870547891,
0.1153986603,
-0.0236123912,
-0.1626643836,
0.2037957013,
0.1254850626,
-0.1950474977,
-0.4592521191,
0.6747374535,
-0.3088300824,
-0.4959321618,
0.1302369684,
-0.0085577667,
0.2961159945,
-0.1074868366,
-0.3079208136,
-0.065178901,
0.4423901439,
-0.0427196585,
0.233191371,
0.0388669074,
0.0046463311,
0.0975324512,
-0.1714746952,
0.1417766362,
0.0340841487,
-0.1422709972,
-0.4382564723,
-0.5738325715
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Thanks for diving into this !
Indeed focusing on making the first dimensions dynamic make total sense (and users could still re-order their dimensions to match this constraint).
Your code looks great :) I think it can even be extended to support several dynamic dimensions if we want to.
Feel free to open a PR to include these changes, then we can update our test suite to make sure it works in all use cases.
In particular I think we might need a few tweaks to allow it to be converted to pandas (though I haven't tested yet):
```python
from datasets import Dataset, Features, Array3D
# this works
matrix = [[1, 0], [0, 1]]
features = Features({"a": Array3D(dtype="int32", shape=(1, 2, 2))})
d = Dataset.from_dict({"a": [[matrix], [matrix]]})
print(d.to_pandas())
# this should work as well
matrix = [[1, 0], [0, 1]]
features = Features({"a": Array3D(dtype="int32", shape=(None, 2, 2))})
d = Dataset.from_dict({"a": [[matrix], [matrix] * 2]})
print(d.to_pandas())
```
I'll be happy to help you on this :) | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 164 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Thanks for diving into this !
Indeed focusing on making the first dimensions dynamic make total sense (and users could still re-order their dimensions to match this constraint).
Your code looks great :) I think it can even be extended to support several dynamic dimensions if we want to.
Feel free to open a PR to include these changes, then we can update our test suite to make sure it works in all use cases.
In particular I think we might need a few tweaks to allow it to be converted to pandas (though I haven't tested yet):
```python
from datasets import Dataset, Features, Array3D
# this works
matrix = [[1, 0], [0, 1]]
features = Features({"a": Array3D(dtype="int32", shape=(1, 2, 2))})
d = Dataset.from_dict({"a": [[matrix], [matrix]]})
print(d.to_pandas())
# this should work as well
matrix = [[1, 0], [0, 1]]
features = Features({"a": Array3D(dtype="int32", shape=(None, 2, 2))})
d = Dataset.from_dict({"a": [[matrix], [matrix] * 2]})
print(d.to_pandas())
```
I'll be happy to help you on this :) | [
0.0811186135,
0.0660869628,
-0.074965924,
0.1997889578,
0.5059945583,
-0.0620559156,
0.6662254333,
0.2228147984,
-0.2351682782,
0.2103942782,
0.2033907175,
0.3141408265,
-0.1679162681,
0.1519098282,
0.1614727229,
-0.5264511704,
0.1352112293,
0.4473282099,
-0.037045937,
0.0868213996,
-0.0864019394,
-0.1268902421,
-0.234730348,
0.1998277754,
-0.356061101,
0.0435408503,
-0.417932719,
-0.1319016516,
-0.1962918639,
-0.33971259,
0.2675037384,
0.1394727528,
0.1546589583,
0.1940467954,
-0.0001162566,
-0.0201859847,
0.275431484,
0.0027225539,
-0.1653280109,
-0.1504534483,
0.175636664,
-0.4560695589,
0.1426979005,
-0.376765132,
-0.0597966909,
-0.7914656401,
-0.1558022201,
-0.0565771013,
0.0584394634,
0.1819480658,
0.1860898435,
0.1970723867,
0.344555378,
0.0070055649,
0.3372133374,
0.2662030458,
-0.3337917328,
-0.0743540674,
0.2205044776,
-0.1364302933,
-0.0197564885,
-0.0812019408,
-0.0935630351,
0.1253887415,
0.3703870773,
0.2559624314,
0.4412607551,
-0.3059552908,
-0.0385078639,
0.4866020381,
0.5266444683,
-0.226383552,
-0.1486890912,
-0.2105610222,
0.0326051526,
-0.0720225722,
-0.1134072542,
0.3932391405,
-0.2839550078,
-0.0259064492,
-0.1617709994,
0.2671578825,
-0.4738790095,
0.3436039388,
0.0153584927,
0.1768894196,
0.0600755364,
0.1067782491,
-0.0788151026,
-0.3343679905,
0.6473379135,
-0.2683769166,
0.1695426404,
0.1576764584,
0.1260790527,
0.054799132,
0.0399515368,
-0.3056688011,
0.2611989975,
-0.0662689656,
0.2565307319,
-0.054055877,
0.3141370118,
0.0777816623,
-0.0961983725,
0.2931361198,
-0.1910165995,
-0.0353443921,
-0.1915336549,
0.2000769377,
0.1407669634,
0.1348169148,
-0.0958223939,
-0.3377191424,
0.38947469,
-0.0704436526,
0.3181084991,
0.2844151258,
0.050337933,
0.0295105353,
-0.7314226627,
-0.1056449115,
-0.0794328004,
0.1333228499,
0.063277185,
0.0234068744,
-0.0665664077,
0.391638577,
0.0048372298,
0.034488216,
-0.1772148013,
0.1383277178,
-0.2407190353,
-0.1582005322,
0.0580459088,
0.3111126721,
0.0323914289,
0.065685451,
0.1681862175,
-0.0492572524,
0.0473773256,
0.0943848118,
0.1924479008,
0.190795362,
-0.2183336467,
-0.2042364031,
-0.0482180752,
-0.2408761978,
-0.2660057545,
0.3408501148,
0.1237654835,
-0.1147487015,
-0.2962649465,
0.1257818937,
-0.25769642,
0.0332823619,
0.0189876519,
0.1656409502,
0.1230325475,
0.1861087382,
0.0670748502,
-0.0163179338,
0.2285515517,
-0.4390907884,
0.1310138106,
0.143419683,
-0.3788301647,
0.1839786768,
0.0902061239,
0.0472827069,
-0.020489566,
-0.1859840602,
-0.1958564222,
0.2340253294,
-0.1092266515,
0.2045655698,
0.4382776022,
0.1031701267,
-0.0508330874,
0.0396899246,
-0.1008547992,
-0.0574911013,
0.1844580173,
0.0679800957,
-0.2325887084,
0.0086381882,
-0.3313019276,
0.3617540598,
-0.0468131676,
-0.1340917796,
-0.1193844453,
-0.4566429853,
0.5288200378,
0.160470441,
0.2312585711,
-0.0293575339,
-0.0378944576,
-0.4135747552,
0.213132605,
-0.5370693803,
0.2064066231,
-0.0110486438,
0.318236649,
-0.2316177189,
0.1017261893,
-0.1497080624,
-0.6831349134,
0.2095572352,
-0.261554718,
0.1348549724,
-0.1627293676,
0.0161481574,
-0.2137754858,
0.0864842236,
-0.1614551544,
0.0513470285,
0.1555676162,
-0.0517699383,
0.1015730947,
-0.2328867465,
-0.1256844401,
-0.2842234373,
0.0373974144,
-0.071830377,
-0.2994229496,
0.6068701148,
-0.024052117,
-0.2256798148,
-0.2027260661,
0.190772593,
0.159681052,
-0.0174942221,
-0.0039475672,
0.1641905904,
-0.1085746735,
-0.0108286627,
-0.5107393861,
0.220136553,
-0.0088730855,
-0.2927832305,
0.3259553313,
0.1484401226,
0.0312678888,
-0.2186183333,
0.1461087167,
0.5942306519,
-0.2054374963,
0.5001149178,
-0.1696749628,
0.1078426912,
-0.0440095514,
0.1070578545,
-0.1206412315,
-0.1674753577,
-0.1490994096,
0.2324401438,
0.1000094488,
-0.0500649363,
-0.201997757,
0.1650612503,
0.2209521234,
-0.0789219961,
-0.0382379033,
0.0389133915,
-0.1205160469,
0.0863598138,
0.2220530659,
-0.0977576599,
0.1082823426,
0.2069818377,
-0.1347232014,
0.0805681869,
-0.3435124159,
-0.1386654973,
0.2859653831,
0.1962881833,
0.5069095492,
0.0309312548,
0.3337844908,
-0.2485223114,
-0.2182990462,
-0.0744912475,
0.0497503951,
0.1341307312,
-0.3379504681,
0.1335220039,
-0.1574704349,
-0.002397716,
0.0058327913,
-0.7622506618,
-0.0921695307,
-0.0124772713,
-0.0817487612,
-0.0018158744,
-0.2064687163,
0.1749796271,
0.1516539752,
-0.1810882986,
0.0989143029,
-0.1823497862,
-0.2228327692,
-0.0240920857,
-0.1154089719,
0.0595058799,
0.1391380876,
0.1685662866,
-0.0194700342,
0.1155473888,
0.1271315068,
-0.2960383892,
-0.3022588193,
0.0435511544,
-0.2427383214,
0.3763854802,
0.4350396693,
0.0141048431,
0.0395607799,
-0.1887971759,
0.3545378149,
0.2314636707,
-0.1280811578,
0.3346895576,
-0.1032502651,
0.0845848769,
-0.1186964586,
0.0151429363,
0.028119253,
-0.296392262,
0.1846939325,
0.3997455835,
0.2637635171,
0.2296737283,
0.5827413201,
0.3116674423,
0.0521664582,
0.1223438159,
0.1999589056,
0.207253173,
0.4295158386,
0.0321401432,
-0.2279698104,
-0.1815954,
-0.8064339161,
0.1123276204,
0.265163064,
-0.0003437102,
-0.4003823102,
-0.1192323789,
0.4195521772,
-0.0658380613,
0.1292749792,
0.476624012,
0.1627042443,
-0.0051321238,
-0.1331647038,
-0.0762426928,
0.3462710679,
0.2557981014,
-0.0854399502,
-0.0197134782,
0.2788515091,
-0.0859718919,
0.5770153403,
-0.0545136705,
-0.3353950083,
0.2743911445,
-0.2290359139,
-0.0486155488,
-0.1206577346,
-0.0830185264,
-0.2085779607,
-0.0000327975,
-0.0883705243,
-0.1022758782,
-0.1255787164,
-0.3067603111,
0.006785512,
0.2312725484,
-0.2400392592,
-0.0507022701,
0.0194869135,
0.0140845738,
0.1986009479,
-0.1047887653,
0.1462586671,
-0.3106018901,
-0.0770357549,
-0.1376648992,
-0.2555593848,
0.1049936265,
-0.0008804873,
-0.014187254,
0.0247310437,
0.0688322335,
0.0896678418,
0.3966968656,
-0.1401861608,
0.3456251621,
-0.1802482754,
0.1216168255,
-0.1736610532,
0.6282705069,
-0.0847249851,
-0.1932675987,
0.5385678411,
0.1090374589,
-0.4343969524,
-0.2760932446,
-0.2283087522,
0.0245920047,
-0.2875925004,
0.1180348769,
-0.3685520589,
-0.1481018662,
0.2178631425,
0.3199228942,
0.0165560916,
-0.1950827837,
-0.2308903039,
-0.2040197849,
-0.0511282124,
-0.1320186406,
-0.0458168238,
0.3967012167,
0.0591017157,
-0.3044267595,
-0.3976415992,
-0.1071241051,
-0.1380681992,
0.1546688825,
0.3969093859,
-0.1583366543,
0.0423837677,
-0.3037187755,
-0.0078438725,
0.0820224807,
0.0775683373,
0.1756750643,
0.0458684713,
0.0215854533,
0.0275890082,
0.3561807871,
0.239168644,
-0.1144339517,
-0.0643041581,
-0.0221672803,
0.1271672696,
-0.1965865493,
-0.0822140872,
0.4506601691,
-0.3617122769,
0.0082823895,
-0.2644385993,
0.6715800166,
-0.0901381224,
0.1170948595,
0.2661957145,
0.5690848231,
-0.1716603339,
0.2838434875,
0.6202145815,
1.0007255077,
-0.0295080803,
0.1052312851,
0.77534163,
-0.1138480082,
0.0644460171,
0.3265837133,
0.2164049149,
-0.4182451963,
0.1595386863,
-0.111461252,
-0.3246537745,
0.1179885641,
0.1220968664,
-0.2034107745,
-0.0714606792,
-0.2789860964,
0.2990582287,
0.1234780028,
-0.0442034788,
-0.1172317564,
-0.2051874399,
-0.2319263816,
0.0663265958,
-0.048218444,
-0.3505479693,
-0.1049226448,
-0.3317462802,
-0.2237377167,
-0.0289107598,
0.0008953959,
0.0034471899,
-0.3338733315,
0.0088114217,
0.3812503219,
-0.5121397972,
0.001597546,
0.1844581813,
-0.092074737,
-0.1640257537,
-0.2030438781,
-0.1268923581,
0.4598899782,
-0.2843436003,
-0.0914333016,
-0.3732321262,
0.3492225111,
0.0423914641,
-0.1033634245,
-0.0897814557,
-0.0245448221,
0.0914480835,
-0.1866291165,
-0.0215144753,
0.2234337181,
-0.2182546854,
-0.0323794112,
-0.0599065423,
0.0157265067,
-0.1066974327,
0.0959213823,
0.0441117361,
-0.0428541936,
-0.0544344224,
0.1728215218,
0.0448392183,
-0.0678499639,
-0.004352238,
0.4437870383,
0.3373042345,
0.2604786158,
0.2011249512,
-0.0618998893,
-0.2048474997,
0.1133851111,
0.3587193489,
-0.4849697948,
0.1792155504,
0.1019558907,
-0.2370808572,
-0.1328748465,
0.4973856211,
0.0548733622,
0.2220710069,
-0.0465805978,
0.145917356,
-0.4149118066,
0.1146582961,
0.166449219,
0.2982106805,
-0.3258860707,
0.0879807025,
0.0275405496,
-0.0100679481,
-0.2889707685,
0.0506105497,
0.1050651222,
-0.009065358,
-0.5112301111,
-0.1208125874,
0.0193715803,
0.0840835422,
0.1421370208,
-0.0621778667,
-0.4542088509,
-0.1741423905,
-0.1730614603,
0.1461534053,
0.1153010875,
-0.1177983657,
0.1603148729,
-0.1115377843,
-0.343185842,
-0.2813437581,
-0.072649844,
0.0215306655,
-0.1531999856,
-0.1249311864,
0.3240787089,
-0.0119870417,
-0.2783163488,
-0.2467873991,
-0.2576204538,
0.1958534122,
0.1499990523,
0.0449920893,
0.0442356989,
-0.0411366895,
-0.1221287698,
0.2578856945,
-0.0548803322,
-0.2784714103,
0.2966707349,
-0.3331166804,
-0.3128944039,
-0.3269754946,
0.4821078181,
0.2051308155,
-0.1748418659,
0.010280855,
0.1069050431,
0.2002279013,
-0.3558771312,
0.0239389837,
0.0264553055,
0.019504372,
0.228059262,
0.4076539874,
0.1806117594,
-0.0915514976,
-0.1612572074,
0.0598356798,
-0.1176613867,
0.0223848075,
0.0006825626,
0.5625870228,
-0.2342287451,
0.1041015387,
0.4643878937,
0.0835715085,
0.1918971241,
-0.1058517098,
-0.1186734289,
0.2647425234,
0.0816801488,
-0.0826891214,
0.0555424653,
0.0383590162,
0.0832171887,
0.0390608571,
0.3929710984,
-0.0885393322,
0.0344260186,
0.5620693564,
0.1830458045,
0.1093764231,
-0.29623878,
-0.1132536232,
-0.0964517742,
-0.0015238486,
0.0734216049,
-0.2210584283,
-0.3147690296,
-0.361338675,
-0.0806774944,
-0.4869597852,
0.185348779,
-0.0947150886,
0.199581787,
-0.2643706203,
0.6058088541,
0.1335452348,
0.1624044329,
-0.2395661026,
0.276404202,
0.3889528215,
-0.1408866644,
-0.3185475469,
0.3108559549,
0.3091473281,
0.3820615411,
-0.4403645098,
-0.1288665533,
-0.0075542182,
-0.2716630101,
0.1383074969,
0.0380802639,
0.178656891,
0.2999196053,
0.3266957998,
0.1114863008,
-0.1785047203,
0.2261471748,
0.2892930806,
0.0628216416,
-0.2804661393,
0.3225161433,
-0.2205840349,
-0.0536753163,
-0.0161142889,
-0.2147412747,
-0.377215147,
-0.1283207536,
0.2484836876,
-0.0796289444,
0.0010221079,
-0.0482823811,
0.0747316629,
-0.0962636173,
0.3985402286,
0.0026095724,
0.5584190488,
-0.2954241335,
0.0728155971,
-0.401529789,
0.2960194945,
-0.3695740402,
-0.0063604191,
0.2887956202,
0.3542708755,
-0.0163449049,
0.1101770103,
0.001008004,
0.2976791859,
0.008311078,
0.4255388975,
-0.3503300846,
0.087559998,
0.1951817721,
0.0048941653,
-0.0131516121,
-0.2848476768,
0.1286348701,
-0.422362864,
0.060182713,
0.1569884717,
0.1705656648,
0.1910826564,
0.3271728158,
0.4762111306,
-0.0726426244,
-0.0076852851,
0.1358403563,
-0.0648118407,
-0.3627674282,
0.006071493,
-0.1850655228,
0.2274802029,
0.1393570751,
0.423705399,
-0.1974121332,
0.1169332415,
-0.147959277,
-0.0916846544,
0.0730620772,
0.1957900673,
-0.1012750268,
0.3477629125,
-0.407972455,
0.1093745828,
-0.1123021096,
-0.1291368008,
0.0720414817,
0.1794421822,
-0.1668447256,
-0.5900036693,
0.7276582122,
-0.2650008202,
-0.5538643599,
0.1625083089,
-0.0311578512,
0.3296858668,
-0.0272085611,
-0.3190823793,
-0.0786863714,
0.3554780185,
-0.0164468177,
0.0774408579,
0.1284800917,
-0.0175588001,
0.0584817529,
-0.1163028702,
0.0996355116,
-0.0530603416,
-0.0559009053,
-0.4643079638,
-0.5050972104
] |
https://github.com/huggingface/datasets/issues/883 | Downloading/caching only a part of a datasets' dataset. | I think it would be a very helpful feature, because sometimes one only wants to evaluate models on the dev set, and the whole training data may be many times bigger.
This makes the task impossible with limited memory resources. | Hi,
I want to use the validation data *only* (of natural question).
I don't want to have the whole dataset cached in my machine, just the dev set.
Is this possible? I can't find a way to do it in the docs.
Thank you,
Sapir | 40 | Downloading/caching only a part of a datasets' dataset.
Hi,
I want to use the validation data *only* (of natural question).
I don't want to have the whole dataset cached in my machine, just the dev set.
Is this possible? I can't find a way to do it in the docs.
Thank you,
Sapir
I think it would be a very helpful feature, because sometimes one only wants to evaluate models on the dev set, and the whole training data may be many times bigger.
This makes the task impossible with limited memory resources. | [
-0.259647131,
0.0176620483,
-0.1444136798,
0.0560276397,
0.0052094627,
0.1932339817,
0.0714363307,
0.4244527221,
-0.2096628845,
0.1225838438,
-0.1673965007,
-0.3112491965,
0.0382806584,
0.3431015611,
0.2733542323,
0.315715313,
-0.0449595675,
0.4445394576,
-0.0135879219,
0.1797878444,
0.1321714818,
-0.3596691191,
0.0900436789,
0.1798122525,
-0.0343142003,
-0.0130381817,
0.3524550498,
-0.1729032397,
-0.3025223613,
-0.2646118701,
0.5076566339,
0.156850785,
0.0987679064,
-0.3624978364,
-0.0001216029,
0.0493052304,
0.0157330893,
-0.2593043149,
-0.1948635578,
0.1747971326,
-0.3646432161,
0.2211199701,
-0.1016266346,
-0.1109532118,
-0.2629933655,
0.149616152,
0.0997372791,
-0.1148647964,
0.3868539333,
0.3819859028,
0.0726678073,
0.2527620792,
-0.258272171,
0.0818847045,
-0.4386492372,
-0.1205966026,
-0.1113694608,
0.2293512672,
0.3401834071,
0.1742605716,
0.1508787274,
0.3609137535,
0.2037588656,
0.3365457356,
0.5206013322,
-0.1059016436,
0.2213974744,
-0.5290889144,
0.3528997302,
0.3634749651,
0.8179838657,
-0.2111044973,
-0.1709374189,
0.0381575078,
-0.1108290106,
-0.3244962096,
-0.0276462473,
0.3498646617,
-0.3038277626,
0.5578001738,
-0.6025677919,
-0.5060827136,
-0.4514366388,
0.0211161971,
-0.0719961524,
-0.1111352593,
0.0267907456,
-0.0793381631,
0.2038469315,
0.3404905796,
0.4757581651,
-0.1010637507,
-0.3275684416,
0.2050734013,
-0.1556139588,
-0.4630132616,
-0.4531758428,
0.1124542058,
0.2769367695,
0.2156205773,
-0.0281276219,
0.1360065639,
0.0196454003,
0.032684911,
0.3324064016,
0.2571540177,
0.2097782493,
0.3000055552,
0.1262420416,
-0.2836255431,
0.0435491651,
-0.0383792743,
0.0166262835,
0.1793974787,
-0.0352484994,
0.200589031,
-0.1922216713,
-0.573428154,
0.028257288,
-0.1624222249,
-0.0268574879,
-0.1042123735,
0.0117448606,
0.3720724285,
-0.2337696105,
-0.0338171721,
-0.4144829214,
0.1290367842,
-0.0244038403,
-0.7614015341,
-0.1353475153,
0.2001848072,
-0.151881814,
0.1537028551,
0.3087081611,
-0.2576303482,
0.2571441531,
-0.232706368,
-0.053633865,
-0.0144966021,
0.3822106421,
-0.2405203283,
0.359793365,
0.3008713722,
-0.1003430635,
0.1436012238,
-0.0037027728,
0.0677642599,
-0.2702772617,
0.2140786946,
-0.0240434594,
-0.7160575986,
0.13297759,
0.0306057632,
-0.2915477455,
0.0498249829,
-0.0186127126,
0.2691913247,
0.1003065556,
-0.0424361899,
-0.0280776434,
0.1042829901,
-0.0931080729,
0.0569566749,
0.3539177775,
0.0054562911,
-0.3496730328,
-0.0455452204,
0.0757637322,
-0.2223424613,
-0.078236863,
0.1796892434,
-0.3526023924,
0.2832117081,
-0.0349934772,
-0.0515904054,
0.6107290387,
-0.0330084264,
-0.3416729867,
0.0503780507,
0.037496984,
-0.3896380663,
-0.107169047,
0.1974388659,
0.1391673982,
0.078224808,
-0.5371802449,
0.4953879714,
-0.0045665745,
-0.2572207153,
-0.0902146921,
-0.133596763,
0.0509740598,
-0.0344618969,
0.3187845647,
0.5672200322,
0.0934516266,
0.2109843493,
-0.0654316694,
-0.1826468706,
0.1779056042,
0.1441978514,
0.1808378696,
-0.2567464411,
-0.1036056876,
-0.2643272281,
-0.3934873343,
0.2896127999,
0.0190091208,
-0.6332796216,
0.5450124741,
-0.1466406882,
-0.2126220763,
-0.2811496556,
0.198519513,
-0.3874561787,
-0.068360582,
-0.0787715316,
0.5183345079,
-0.2221153229,
-0.4332066476,
0.2459868193,
-0.0388424061,
-0.0085980743,
-0.03470999,
-0.0773479566,
-0.0136263939,
0.2332278192,
-0.0780254602,
-0.2326039076,
-0.1438825727,
-0.0770931691,
0.0010287799,
0.2435717583,
-0.1894329637,
-0.0382379964,
-0.0579954274,
0.4480162859,
0.113344036,
-0.1220170557,
0.0389687046,
-0.1264077574,
0.0378795862,
0.0592170432,
-0.2691623569,
0.4455896616,
-0.0425806791,
0.130466789,
0.0402547419,
-0.0788118169,
0.2034356892,
-0.3745238185,
0.0144104585,
-0.2602581978,
0.0538864695,
-0.1644445956,
0.3352132142,
-0.0382390991,
-0.2119159549,
-0.1100293696,
0.1415118575,
0.0741897225,
0.018071048,
-0.1057828367,
-0.1695177555,
-0.0013914704,
0.1838151515,
0.1874064505,
0.3733810782,
0.0554432347,
0.3742058277,
0.1727605313,
0.083578229,
-0.0322368294,
0.0589873418,
-0.2422542125,
-0.1820135713,
-0.0336367488,
-0.3563264012,
-0.1824301928,
-0.1795849055,
0.4001227915,
0.1201165393,
-0.0454228371,
-0.1748719811,
0.0162678212,
-0.4271831214,
-0.0491983481,
-0.0482639,
0.1393754333,
-0.104688853,
0.2175351977,
0.0636420473,
0.1797723621,
-0.0330217853,
0.0858021677,
-0.2827935517,
0.4851483107,
-0.3380614221,
0.0753310472,
-0.0537018925,
-0.1475925297,
-0.0696034357,
0.1015185341,
0.121386081,
0.1434980333,
0.3591324389,
-0.0873146653,
-0.1552483588,
-0.324233681,
0.1137349084,
-0.0201883279,
0.4564113617,
-0.0426916517,
-0.1663058996,
0.513420403,
0.1645120233,
0.118428424,
-0.1802627146,
-0.2282164395,
-0.3151453733,
-0.1713221967,
0.2047237009,
0.2288088948,
-0.1834839284,
-0.2206597179,
-0.3584464788,
-0.1597439945,
0.1136495024,
-0.1076959521,
0.1931926906,
0.2225604504,
-0.0169397481,
-0.2397378385,
-0.3206495941,
0.0403386578,
-0.2267977893,
-0.3674767613,
0.2391416132,
-0.041413825,
-0.2598350942,
0.1799650788,
-0.0711045191,
0.0322007462,
0.3513368368,
-0.372410953,
-0.1565232724,
0.0650558323,
-0.0956740901,
-0.1702403128,
-0.069704622,
0.2953811586,
-0.5932691693,
0.105432637,
0.0074930117,
-0.0587729439,
-0.0502604619,
0.0245569833,
0.2246672213,
0.0605238229,
0.129889518,
0.3504847586,
0.8538562655,
-0.1514459252,
-0.1626927257,
0.0154218711,
0.0880191028,
0.4468536377,
-0.0379181914,
-0.0748698115,
0.2885403037,
-0.0493913591,
-0.2889503837,
0.0268128552,
-0.1392237246,
-0.1048682705,
-0.3318146467,
0.0505774915,
-0.0113211349,
-0.0139271095,
0.0929988027,
-0.118270129,
0.0811956823,
0.5327095985,
0.0187405199,
0.0137387514,
-0.1102429926,
0.2959981561,
0.0583858415,
0.1100258082,
0.1178511158,
-0.523583591,
-0.1630557477,
-0.0981969461,
0.0888541266,
-0.227130726,
-0.07141193,
0.0345405042,
0.03168495,
0.2360614389,
0.101438731,
0.5184102058,
-0.201104477,
0.2330281138,
-0.1885455251,
-0.318035543,
0.0645315796,
-0.1906532645,
0.0945239663,
-0.0763202682,
0.0763737857,
0.0073566623,
-0.1936405003,
-0.0187626332,
-0.0699419826,
0.2333288789,
-0.366506815,
0.0682160258,
0.0472653285,
-0.0111429393,
0.029032588,
0.4540618062,
0.113413468,
-0.0058893338,
0.3645141423,
0.0731299222,
-0.3548809886,
0.0975846797,
0.0919065997,
0.3425657749,
0.0917206854,
0.0567644835,
0.143036738,
0.1277786642,
0.1461904645,
0.0764802098,
0.2214027494,
0.0117152929,
-0.1909357011,
-0.0623567328,
0.0023009703,
0.1911739707,
0.1707262993,
-0.0837877393,
-0.2795106173,
0.3804675639,
-0.0915222168,
-0.226064086,
0.4861376584,
-0.3498322368,
-0.2019869387,
-0.2566851079,
-0.3647642434,
0.1765504032,
0.0798220485,
-0.0859941542,
0.3306181133,
-0.2526833117,
-0.1009432003,
-0.2397096455,
0.4438513815,
0.8610086441,
-0.1227935031,
0.206295535,
-0.3994806707,
-0.202997908,
0.3680360913,
-0.5688806772,
0.0569619313,
-0.2196460366,
-0.7584601641,
-0.2906112373,
-0.2542026043,
0.1865487546,
0.3905200958,
0.2456166744,
0.2405979186,
0.1417124271,
0.4928078949,
0.1205118597,
0.1755267829,
0.1043291241,
-0.0288762376,
0.0713442564,
0.0225886479,
-0.1270378977,
0.2708649039,
-0.1556710899,
0.0918057412,
0.0571949631,
-0.0372974128,
-0.3012592494,
0.0489369929,
-0.460675329,
-0.2496441752,
-0.1814266741,
-0.0514718071,
-0.0131320022,
0.4394466877,
0.5612175465,
0.2254854441,
-0.2542154193,
0.2422560751,
0.065129444,
0.0886115357,
-0.2462748289,
0.0181907602,
0.0016430914,
-0.3460486531,
0.1401321441,
0.425739944,
-0.0995907485,
-0.2508587539,
0.0373263508,
0.1967260092,
-0.0806846321,
-0.1119174808,
-0.1610898376,
0.1151351333,
0.3356598616,
-0.0060502589,
0.0489645414,
0.3836347759,
-0.3482622802,
0.2078298032,
-0.1432597041,
-0.3118984103,
-0.0696333945,
0.4085512161,
0.2608778775,
-0.2065867186,
0.2444151491,
-0.613347888,
-0.0704692602,
-0.2092335224,
-0.0219701231,
0.191212818,
-0.164927125,
0.0004838817,
-0.2133577913,
-0.4010836482,
-0.3402512074,
0.0490703769,
0.3917352557,
0.191124469,
-0.1881877482,
-0.2655115724,
-0.2319703102,
0.0511179194,
-0.1082252711,
0.374230653,
-0.0621482357,
-0.0169218592,
-0.125229612,
0.4188047647,
-0.1844319254,
-0.1776660383,
-0.0053343028,
0.2531559467,
-0.1674050689,
0.1499564648,
-0.0022157095,
-0.1374549866,
-0.1754707396,
0.0281301625,
-0.3456312418,
-0.1469107568,
-0.0746239349,
0.1991708577,
-0.008558373,
0.0384333283,
0.1171024442,
0.040287599,
-0.0568368323,
0.0520028211,
0.2014923245,
-0.0122297034,
0.2575398982,
0.2684284151,
0.4537934363,
-0.0181099027,
-0.5937925577,
-0.0095002335,
0.0744518265,
0.2208898962,
0.0398880653,
0.4148599803,
0.0169252716,
-0.0538879782,
-0.3319830298,
-0.1668200195,
0.0532799065,
-0.1499510109,
-0.0398053825,
0.1185955107,
0.1468974352,
-0.0237999447,
0.1988656521,
0.8052166104,
-0.0924880058,
0.2291514128,
0.5309455395,
0.1136759296,
0.0040296391,
-0.1860904098,
0.3704555929,
-0.3041722476,
-0.1823699921,
0.1436482072,
0.1134742051,
0.1958084702,
0.4399097562,
-0.0908523127,
0.1677699089,
-0.2348219752,
0.0168016143,
0.4365867674,
-0.0261415541,
-0.1989732534,
0.1153115705,
0.2590422332,
0.206909582,
0.0351787433,
-0.1256256998,
0.1561604589,
0.1670108587,
0.2003986388,
-0.193461746,
-0.2356668413,
-0.0692510754,
0.1692312509,
-0.0888709202,
0.1284377873,
-0.1844214946,
-0.3254108727,
0.2570571899,
-0.4299588203,
-0.2986113429,
0.0170882344,
0.1921697706,
-0.072486721,
-0.2084237784,
0.0067039877,
0.2563120425,
0.3134524822,
0.1623131633,
-0.4159727395,
0.247038126,
0.1064635962,
-0.0972429663,
0.2171066403,
0.2817169428,
0.1689369529,
-0.0912873894,
-0.1346130669,
0.1551798731,
-0.2595526576,
-0.0017358288,
0.3158125281,
0.239275977,
-0.2397791445,
-0.0678154454,
0.2292585671,
0.0141970553,
0.0887071341,
-0.0198531635,
-0.2765794396,
0.2951283753,
0.1854898781,
0.0411084741,
0.2854756415,
0.0172523968,
0.0140391737,
0.4403682649,
-0.3901268244,
0.2003463507,
-0.5645319819,
0.0401735641,
0.6362969279,
-0.1602786183,
0.1644345224,
0.0662634522,
0.0568207055,
-0.0289102178,
-0.0993833393,
-0.2132298499,
0.1308528185,
0.1542666256,
-0.0039088596,
-0.2629953921,
0.5772280693,
0.0670659617,
0.0950346589,
-0.1848513335,
0.0580332875,
-0.3419104815,
0.164765209,
-0.0758657083,
0.0435417667,
0.0781060606,
0.1236532032,
0.1260079741,
0.543223083,
-0.0659056902,
-0.0162432306,
-0.0320682302,
0.5045502782,
-0.1067459509,
0.145710066,
0.0873923004,
0.528642416,
0.1306843162,
-0.2284796089,
0.4167976379,
0.1157836318,
-0.1563516855,
0.3952566981,
-0.1051853523,
0.4380291104,
0.3276382089,
0.5421128273,
-0.0563154593,
0.2171079218,
0.097188592,
0.1875049323,
-0.0357791223,
0.191665858,
-0.4345733523,
-0.0435862467,
0.1906256378,
-0.1363948584,
-0.5238883495,
0.0310884677,
-0.1524831653,
0.2835087776,
-0.0245354325,
-0.1028688401,
0.2182343155,
-0.312763989,
0.0478140712,
0.1807873249,
0.4246954918,
0.1729245335,
-0.2599117458,
-0.2585410178,
-0.37705338,
0.1391892135,
0.4295767844,
-0.0886318386,
-0.2041848004,
-0.1264174581,
0.3098581135,
0.2169167846,
-0.2114594281,
-0.4354215264,
0.09232153,
0.2990783453,
-0.3669801652,
-0.1788089871,
0.2019107044,
0.0915809572,
0.0200916529,
-0.1414800584,
0.4481547475,
0.0611793175,
-0.3696348667,
-0.4982995987,
-0.3521562219
] |
https://github.com/huggingface/datasets/issues/880 | Add SQA | I’ll take this one to test the workflow for the sprint next week cc @yjernite @lhoestq | ## Adding a Dataset
- **Name:** SQA (Sequential Question Answering) by Microsoft.
- **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total.
- **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/
- **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253
- **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71).
Note 1: this dataset actually consists of 2 types of files:
1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test)
2) a folder of csv files, which contain the actual tabular data
Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub.
Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 16 | Add SQA
## Adding a Dataset
- **Name:** SQA (Sequential Question Answering) by Microsoft.
- **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total.
- **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/
- **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253
- **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71).
Note 1: this dataset actually consists of 2 types of files:
1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test)
2) a folder of csv files, which contain the actual tabular data
Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub.
Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
I’ll take this one to test the workflow for the sprint next week cc @yjernite @lhoestq | [
-0.0640090704,
-0.2312075943,
-0.209918052,
-0.1210693568,
0.0999142677,
-0.1975829303,
0.0337971561,
0.3069658577,
0.1483599991,
0.0562699474,
-0.1675562859,
-0.0026326478,
-0.0712607801,
0.5443825126,
0.1500165015,
-0.1045531034,
0.027217757,
0.1428325772,
-0.2944613099,
0.071185872,
-0.1962937117,
0.0914864019,
0.021571219,
0.0312299561,
-0.236890316,
-0.0844546631,
-0.1073181778,
-0.1923379302,
-0.1904110759,
-0.1972693205,
0.0054090247,
0.0722474605,
0.1686420739,
0.273041904,
-0.0001059325,
-0.1343120486,
-0.0751998574,
-0.097532928,
-0.0939193517,
0.0506610908,
-0.1607968509,
0.0926126763,
-0.1110514402,
-0.0771295354,
-0.5252554417,
0.2041903138,
-0.0748100579,
-0.3007472157,
0.5820878148,
0.2628433406,
0.2186130583,
0.0928577185,
0.0751173347,
-0.2174712569,
0.3752233088,
0.004958069,
-0.3586767912,
-0.0065897256,
0.4021382332,
-0.348051697,
0.0548400134,
0.4530358315,
0.265696764,
-0.2276322842,
0.1525067538,
0.1255035102,
0.2736344337,
0.0334793106,
0.0674657598,
0.2694990635,
0.3335775733,
-0.0927542821,
-0.1821045727,
-0.1886139512,
0.0144181661,
0.1235253885,
-0.2833784521,
0.118624799,
-0.3490378261,
0.0167793538,
-0.1807739735,
-0.2453861833,
-0.3496709466,
0.101798445,
0.0179149881,
0.5167183876,
-0.0192331616,
-0.1948671043,
-0.0831075013,
-0.1331274211,
-0.042768918,
-0.0472526997,
0.2443596274,
0.2530233264,
-0.5382785201,
-0.2720508575,
0.213611722,
0.1150447577,
0.2435957491,
0.1921218932,
0.4720069766,
-0.0723899901,
0.0314645581,
-0.2965058684,
0.1672354192,
0.4781261683,
-0.0035136938,
0.042687159,
-0.1635620296,
0.1145737246,
0.0696562976,
0.0185354538,
0.0113641508,
0.4373463988,
-0.2889091969,
0.0332335643,
0.1217356846,
0.0777648538,
-0.3187231719,
0.2000281513,
-0.2216606289,
-0.0858715028,
-0.0461773723,
0.3067345321,
-0.2722216547,
0.0963956863,
0.1617859006,
0.1525750011,
0.0376237184,
-0.1205833331,
-0.099291414,
-0.1381373852,
-0.1389064193,
0.3276246786,
0.2592453361,
0.0756572783,
-0.1182409376,
-0.1105898023,
0.1236677766,
0.0671121776,
-0.1190187931,
-0.1257779896,
0.2719292641,
0.0063784258,
-0.1196178347,
-0.2474650145,
0.0069884183,
-0.1855602264,
-0.0826090127,
0.2046098709,
0.0866254866,
0.082259655,
-0.0458442345,
0.2935350835,
-0.0351123959,
-0.337895453,
0.0560649708,
0.3847601712,
0.0544066429,
-0.0786111504,
0.1612041146,
0.0770687908,
-0.1640682667,
-0.0699192286,
0.268004179,
0.1623664647,
0.0437385812,
0.0179176256,
-0.0602710024,
0.2952126265,
-0.4049226642,
0.1558105797,
0.1623995453,
0.4924611151,
0.1605458707,
0.4469801784,
-0.3020622432,
0.0422099829,
-0.0510841087,
-0.1068252027,
-0.0611654073,
0.2619524002,
-0.0233063623,
0.222698763,
0.1795920283,
-0.0981693566,
0.124762252,
0.2569139898,
-0.2434512675,
-0.0364896283,
-0.2605638504,
-0.3209440112,
-0.1499195099,
0.5569953918,
-0.00815723,
-0.09472581,
-0.1503630877,
-0.2269735038,
0.0897198468,
-0.2418155223,
-0.105345726,
-0.2026320696,
0.4181381464,
-0.1816862673,
0.0669908002,
-0.5491580367,
-0.5756065249,
-0.1482613683,
-0.1463882327,
0.2786491513,
0.0339061953,
-0.4509786963,
-0.3733328581,
0.1327017546,
0.0075062881,
-0.0343045704,
0.2479702234,
0.186921224,
0.2428164482,
-0.0500188544,
-0.0937463418,
0.1550150961,
-0.0424524359,
-0.1147119403,
-0.1329627484,
0.1986897737,
-0.1225984991,
0.0456118956,
-0.0185675994,
0.3147914112,
-0.1338374764,
0.1751380861,
0.3347406089,
0.1550747305,
-0.13191697,
-0.262565732,
0.0805612355,
0.4734994769,
0.0326889306,
-0.0527555905,
-0.192376107,
0.4993883073,
0.1238286942,
-0.0980778784,
-0.28532812,
0.4043617249,
-0.1816479564,
0.2681888342,
0.1508678496,
0.0346499607,
-0.0117136165,
-0.0824666619,
-0.1310697794,
0.1497389376,
0.4146443307,
0.1367220581,
-0.2725355923,
-0.06833978,
-0.3361951113,
0.3972063661,
0.2918210924,
-0.2563176751,
0.3381397724,
0.0930464864,
-0.044811327,
-0.0996243432,
0.0174711365,
0.1898332089,
0.1904858202,
0.2655976713,
-0.1340574324,
0.1325649321,
-0.0351310968,
-0.1304929256,
0.0047886074,
0.072985962,
-0.1076815724,
0.3593822122,
0.3060601354,
0.1129135415,
-0.0875145942,
-0.0811662897,
-0.2993247807,
-0.0468395092,
-0.0217849985,
0.1793803871,
0.2182227075,
-0.2264640033,
0.0334010608,
-0.3110874593,
0.0157677308,
0.0116476342,
0.6521468759,
-0.136213094,
-0.1908010393,
0.2219662964,
0.0742609948,
0.910795331,
-0.169758454,
-0.0477677137,
-0.2234661877,
-0.2786905766,
0.1275863945,
0.3061981797,
0.0774174184,
-0.0461223647,
0.5052064061,
-0.1818103492,
0.388017416,
-0.0880890265,
-0.3654262424,
0.0920002013,
-0.0208265819,
0.0868982226,
-0.0135209002,
0.0519563481,
-0.2462123632,
-0.3117575943,
0.096244663,
-0.2440951765,
-0.106366992,
-0.0403899774,
0.2175629139,
-0.0907751396,
-0.1126222312,
-0.496379137,
-0.0617723241,
-0.3034151495,
0.476082176,
0.2297995389,
-0.0288607292,
-0.0194287747,
-0.0775106177,
0.0343690254,
-0.1526602358,
0.1068074331,
-0.2156094909,
0.1638546586,
0.2227651328,
-0.1240257025,
-0.2118235826,
-0.4943146706,
-0.3110441267,
-0.0237981714,
0.0763133466,
-0.1710080653,
-0.0684284493,
-0.2200554758,
0.0027597845,
-0.1519951969,
0.1327388436,
0.451595813,
-0.0766793936,
-0.2075060159,
-0.0513128825,
0.2085877806,
0.5510803461,
0.0616787449,
-0.1596297324,
0.1330932081,
0.2265030146,
0.0326378867,
0.6488927007,
0.0589802861,
0.0846871957,
0.2585294247,
0.0645583346,
-0.1176875234,
-0.2783655822,
0.0752342865,
-0.1934874356,
-0.1577433646,
0.0985051394,
0.4758581221,
0.2683968842,
0.04499273,
-0.1529213786,
0.12534374,
-0.2520803809,
-0.1979157329,
0.4055432081,
0.0370064788,
0.4625870585,
-0.0875200033,
-0.1534027308,
0.0079677626,
-0.3550323844,
0.0913979113,
-0.092289798,
0.0258749481,
-0.4211963117,
-0.5453451872,
-0.2182358503,
-0.2534332573,
0.3696660995,
0.4543712735,
-0.0103510451,
-0.0700469315,
-0.4352990389,
-0.0819311589,
-0.075626716,
0.1700691283,
0.0622295439,
-0.351492852,
0.0121100619,
-0.2442812175,
0.0773435459,
0.1962989271,
-0.3358924389,
-0.3367529511,
-0.0537999943,
0.3874261975,
-0.3562617898,
0.0581249185,
0.2264216691,
-0.0486679301,
-0.0562434047,
0.0086919256,
-0.0854227021,
-0.1264293492,
0.005118154,
0.2333194464,
0.368715167,
0.0364035293,
0.2235225588,
-0.0396037214,
-0.0924397483,
-0.0361282974,
0.0263203289,
0.136878863,
0.0830827206,
0.0011646748,
0.1247431934,
-0.1430706978,
-0.1977377534,
-0.0488723181,
0.4001811743,
-0.2085924,
-0.0698707253,
-0.1505301595,
-0.1544054598,
-0.0211567134,
0.2488562763,
0.1011992544,
0.303930223,
0.0348634496,
0.1376395077,
-0.2829016447,
-0.1738836467,
-0.150807634,
-0.0058538653,
0.1136683971,
-0.1343209445,
0.468616873,
-0.2742675543,
-0.2376134843,
-0.0322409719,
0.4682996571,
-0.1962358057,
0.1028006151,
0.0156813171,
1.0317847729,
-0.1658944339,
0.3711087406,
0.1415891051,
-0.0974738598,
0.2048791647,
-0.3503006101,
0.1448189318,
-0.1310676634,
-0.3593126237,
-0.0561570451,
0.0399525613,
-0.080562368,
-0.0045617428,
-0.3912656903,
0.1389493048,
0.1756031811,
0.3666844368,
0.294652462,
0.2584328949,
0.0696524903,
-0.015262573,
-0.5002797842,
0.2108229101,
0.1116849482,
-0.2397036701,
-0.0502779521,
0.0481447354,
-0.1371402591,
-0.1277019233,
-0.1942481697,
0.0707470626,
-0.4300708473,
-0.0462025665,
0.286147356,
-0.1057449132,
0.1106240451,
0.212416023,
-0.0267281942,
-0.0604789443,
-0.3943506479,
0.0101639871,
-0.2656233907,
0.2279192209,
0.072819382,
-0.0291023124,
0.2924782932,
-0.2039586157,
-0.1170173734,
0.2273562551,
0.3363112509,
-0.4757343233,
-0.4612278342,
0.0721807629,
0.3284935951,
-0.125604108,
0.0085264519,
0.1294413805,
-0.1191572249,
-0.1417364031,
0.2308953851,
0.0601023622,
0.0594073012,
0.1053040326,
0.4885712564,
-0.1789279729,
-0.0357296765,
0.1176625043,
0.4107622206,
-0.0385523215,
0.2471320033,
0.3028383255,
-0.2766371369,
-0.4391760528,
-0.104377009,
0.2383773625,
-0.4756162763,
-0.0299517121,
-0.1643127203,
-0.3447366059,
-0.0333015919,
0.5254299641,
0.4061190784,
-0.0993949026,
-0.0607091337,
-0.052086249,
0.1030386686,
0.6272663474,
0.3372282088,
0.1448048055,
0.0963592306,
-0.182113111,
-0.0878588483,
0.2447616905,
-0.4542949796,
-0.0925646648,
-0.3687013388,
0.243497625,
-0.0720839798,
-0.2631467879,
0.2722585201,
0.0614764988,
0.1426138282,
-0.1043646634,
-0.3949477077,
-0.4038263559,
0.0597073138,
0.097154893,
0.1380203962,
-0.0552520603,
-0.1508056521,
-0.1437975764,
-0.0928229541,
-0.1315388083,
0.0542683825,
-0.3340457082,
0.0110976696,
-0.1788978726,
0.0363317877,
-0.1240278557,
-0.181476891,
0.0099526737,
-0.2088931501,
-0.1822604239,
0.1346780062,
-0.0392421484,
0.0597427748,
-0.0656928346,
0.0799401253,
0.5429308414,
0.4998338521,
-0.1578969657,
0.0591221489,
0.0836746693,
-0.315489471,
-0.0443157107,
0.2773604989,
-0.0831804574,
-0.1181730777,
0.0842383355,
0.1406011283,
0.338583529,
-0.4173093438,
-0.0755336732,
-0.0798859522,
-0.2025337219,
0.3330046237,
0.2637986541,
-0.0864125788,
-0.0999054462,
0.368237257,
0.2149714679,
-0.0356019959,
-0.0385458879,
0.1731215417,
0.1937651038,
0.2517060935,
0.0641475841,
-0.0184772126,
-0.0144703351,
-0.141294837,
-0.0334268585,
-0.2027124166,
0.1448788494,
-0.0525625534,
0.0754862651,
0.2267362475,
0.3809484839,
-0.0089713214,
0.195905745,
-0.1053643599,
0.1468937993,
0.2529246509,
0.0774807632,
0.1793922186,
-0.0227170717,
-0.4215110242,
-0.1569176316,
0.1076809317,
-0.1497694403,
0.0696465373,
-0.2426840812,
-0.3709778786,
-0.1268851906,
-0.0896279439,
-0.0408991985,
0.5435213447,
-0.1635987759,
0.1739099622,
-0.0686829761,
0.0479199179,
0.0670224056,
0.3332656622,
-0.0928832814,
0.2201658338,
0.2191976458,
0.3239120245,
0.0336720571,
0.4749948084,
-0.0025975928,
0.2313487083,
-0.4086584747,
0.370020926,
-0.2205613554,
-0.1524353027,
-0.0604494065,
0.2455565929,
0.2833980322,
-0.046156317,
0.2276703119,
0.2533398271,
-0.2943522334,
0.2517374456,
-0.0129226372,
0.032224413,
-0.2853601277,
0.1191602945,
-0.0543498918,
-0.0460738949,
-0.0495117716,
-0.0612842552,
-0.511742115,
0.1801473498,
-0.2863978148,
-0.2968678176,
-0.0125350468,
-0.073648341,
0.1288130134,
-0.1876113415,
0.2755149901,
0.2395884842,
0.4237527251,
-0.0510507226,
-0.3606440127,
-0.0462604463,
-0.1418852955,
0.1449586451,
-0.1167037934,
0.1562410742,
-0.0363340266,
0.2164874226,
0.3477031589,
-0.1118955016,
-0.3725240231,
-0.3810080588,
0.2364702225,
-0.4007807076,
0.3359993994,
0.174229309,
0.097754471,
0.1720019579,
-0.3217592835,
-0.0427542739,
0.0127449036,
0.1785073727,
0.0582192838,
0.1562898159,
0.0390237197,
-0.210721761,
-0.1147497445,
0.0297924411,
0.3679975569,
-0.175237149,
-0.1896428317,
0.2272825241,
-0.2485177368,
-0.1982803196,
0.0425052978,
0.3440338969,
0.3117295206,
-0.0415381864,
-0.3080853224,
0.3648127615,
0.0051479079,
0.1454780549,
0.4213917553,
-0.1411509514,
0.0980363935,
0.0003456101,
-0.0700885952,
-0.0728384033,
0.121962063,
-0.0429595262,
0.0887332782,
0.0602392107,
-0.2010682076,
0.3448044062,
-0.0921594203,
-0.2158394754,
0.026481159,
0.043216832,
0.0877087414,
-0.1586979479,
-0.5564056635,
-0.0904890895,
0.1962942332,
-0.012718915,
-0.073256053,
0.697296083,
0.0856291354,
-0.1479183137,
-0.1298854351,
0.1628671885,
0.0622371621,
-0.1279259622,
-0.3026589751,
-0.5541501045
] |
https://github.com/huggingface/datasets/issues/880 | Add SQA | @thomwolf here's a slightly adapted version of the code from the [official Tapas repository](https://github.com/google-research/tapas/blob/master/tapas/utils/interaction_utils.py) that is used to turn the `answer_coordinates` and `answer_texts` columns into true Python lists of tuples/strings:
```
import pandas as pd
import ast
data = pd.read_csv("/content/sqa_data/random-split-1-dev.tsv", sep='\t')
def _parse_answer_coordinates(answer_coordinate_str):
"""Parses the answer_coordinates of a question.
Args:
answer_coordinate_str: A string representation of a Python list of tuple
strings.
For example: "['(1, 4)','(1, 3)', ...]"
"""
try:
answer_coordinates = []
# make a list of strings
coords = ast.literal_eval(answer_coordinate_str)
# parse each string as a tuple
for row_index, column_index in sorted(
ast.literal_eval(coord) for coord in coords):
answer_coordinates.append((row_index, column_index))
except SyntaxError:
raise ValueError('Unable to evaluate %s' % answer_coordinate_str)
return answer_coordinates
def _parse_answer_text(answer_text):
"""Populates the answer_texts field of `answer` by parsing `answer_text`.
Args:
answer_text: A string representation of a Python list of strings.
For example: "[u'test', u'hello', ...]"
"""
try:
answer = []
for value in ast.literal_eval(answer_text):
answer.append(value)
except SyntaxError:
raise ValueError('Unable to evaluate %s' % answer_text)
return answer
data['answer_coordinates'] = data['answer_coordinates'].apply(lambda coords_str: _parse_answer_coordinates(coords_str))
data['answer_text'] = data['answer_text'].apply(lambda txt: _parse_answer_text(txt))
```
Here I'm using Pandas to read in one of the TSV files (the dev set).
| ## Adding a Dataset
- **Name:** SQA (Sequential Question Answering) by Microsoft.
- **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total.
- **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/
- **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253
- **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71).
Note 1: this dataset actually consists of 2 types of files:
1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test)
2) a folder of csv files, which contain the actual tabular data
Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub.
Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 185 | Add SQA
## Adding a Dataset
- **Name:** SQA (Sequential Question Answering) by Microsoft.
- **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total.
- **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/
- **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253
- **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71).
Note 1: this dataset actually consists of 2 types of files:
1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test)
2) a folder of csv files, which contain the actual tabular data
Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub.
Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
@thomwolf here's a slightly adapted version of the code from the [official Tapas repository](https://github.com/google-research/tapas/blob/master/tapas/utils/interaction_utils.py) that is used to turn the `answer_coordinates` and `answer_texts` columns into true Python lists of tuples/strings:
```
import pandas as pd
import ast
data = pd.read_csv("/content/sqa_data/random-split-1-dev.tsv", sep='\t')
def _parse_answer_coordinates(answer_coordinate_str):
"""Parses the answer_coordinates of a question.
Args:
answer_coordinate_str: A string representation of a Python list of tuple
strings.
For example: "['(1, 4)','(1, 3)', ...]"
"""
try:
answer_coordinates = []
# make a list of strings
coords = ast.literal_eval(answer_coordinate_str)
# parse each string as a tuple
for row_index, column_index in sorted(
ast.literal_eval(coord) for coord in coords):
answer_coordinates.append((row_index, column_index))
except SyntaxError:
raise ValueError('Unable to evaluate %s' % answer_coordinate_str)
return answer_coordinates
def _parse_answer_text(answer_text):
"""Populates the answer_texts field of `answer` by parsing `answer_text`.
Args:
answer_text: A string representation of a Python list of strings.
For example: "[u'test', u'hello', ...]"
"""
try:
answer = []
for value in ast.literal_eval(answer_text):
answer.append(value)
except SyntaxError:
raise ValueError('Unable to evaluate %s' % answer_text)
return answer
data['answer_coordinates'] = data['answer_coordinates'].apply(lambda coords_str: _parse_answer_coordinates(coords_str))
data['answer_text'] = data['answer_text'].apply(lambda txt: _parse_answer_text(txt))
```
Here I'm using Pandas to read in one of the TSV files (the dev set).
| [
-0.0640090704,
-0.2312075943,
-0.209918052,
-0.1210693568,
0.0999142677,
-0.1975829303,
0.0337971561,
0.3069658577,
0.1483599991,
0.0562699474,
-0.1675562859,
-0.0026326478,
-0.0712607801,
0.5443825126,
0.1500165015,
-0.1045531034,
0.027217757,
0.1428325772,
-0.2944613099,
0.071185872,
-0.1962937117,
0.0914864019,
0.021571219,
0.0312299561,
-0.236890316,
-0.0844546631,
-0.1073181778,
-0.1923379302,
-0.1904110759,
-0.1972693205,
0.0054090247,
0.0722474605,
0.1686420739,
0.273041904,
-0.0001059325,
-0.1343120486,
-0.0751998574,
-0.097532928,
-0.0939193517,
0.0506610908,
-0.1607968509,
0.0926126763,
-0.1110514402,
-0.0771295354,
-0.5252554417,
0.2041903138,
-0.0748100579,
-0.3007472157,
0.5820878148,
0.2628433406,
0.2186130583,
0.0928577185,
0.0751173347,
-0.2174712569,
0.3752233088,
0.004958069,
-0.3586767912,
-0.0065897256,
0.4021382332,
-0.348051697,
0.0548400134,
0.4530358315,
0.265696764,
-0.2276322842,
0.1525067538,
0.1255035102,
0.2736344337,
0.0334793106,
0.0674657598,
0.2694990635,
0.3335775733,
-0.0927542821,
-0.1821045727,
-0.1886139512,
0.0144181661,
0.1235253885,
-0.2833784521,
0.118624799,
-0.3490378261,
0.0167793538,
-0.1807739735,
-0.2453861833,
-0.3496709466,
0.101798445,
0.0179149881,
0.5167183876,
-0.0192331616,
-0.1948671043,
-0.0831075013,
-0.1331274211,
-0.042768918,
-0.0472526997,
0.2443596274,
0.2530233264,
-0.5382785201,
-0.2720508575,
0.213611722,
0.1150447577,
0.2435957491,
0.1921218932,
0.4720069766,
-0.0723899901,
0.0314645581,
-0.2965058684,
0.1672354192,
0.4781261683,
-0.0035136938,
0.042687159,
-0.1635620296,
0.1145737246,
0.0696562976,
0.0185354538,
0.0113641508,
0.4373463988,
-0.2889091969,
0.0332335643,
0.1217356846,
0.0777648538,
-0.3187231719,
0.2000281513,
-0.2216606289,
-0.0858715028,
-0.0461773723,
0.3067345321,
-0.2722216547,
0.0963956863,
0.1617859006,
0.1525750011,
0.0376237184,
-0.1205833331,
-0.099291414,
-0.1381373852,
-0.1389064193,
0.3276246786,
0.2592453361,
0.0756572783,
-0.1182409376,
-0.1105898023,
0.1236677766,
0.0671121776,
-0.1190187931,
-0.1257779896,
0.2719292641,
0.0063784258,
-0.1196178347,
-0.2474650145,
0.0069884183,
-0.1855602264,
-0.0826090127,
0.2046098709,
0.0866254866,
0.082259655,
-0.0458442345,
0.2935350835,
-0.0351123959,
-0.337895453,
0.0560649708,
0.3847601712,
0.0544066429,
-0.0786111504,
0.1612041146,
0.0770687908,
-0.1640682667,
-0.0699192286,
0.268004179,
0.1623664647,
0.0437385812,
0.0179176256,
-0.0602710024,
0.2952126265,
-0.4049226642,
0.1558105797,
0.1623995453,
0.4924611151,
0.1605458707,
0.4469801784,
-0.3020622432,
0.0422099829,
-0.0510841087,
-0.1068252027,
-0.0611654073,
0.2619524002,
-0.0233063623,
0.222698763,
0.1795920283,
-0.0981693566,
0.124762252,
0.2569139898,
-0.2434512675,
-0.0364896283,
-0.2605638504,
-0.3209440112,
-0.1499195099,
0.5569953918,
-0.00815723,
-0.09472581,
-0.1503630877,
-0.2269735038,
0.0897198468,
-0.2418155223,
-0.105345726,
-0.2026320696,
0.4181381464,
-0.1816862673,
0.0669908002,
-0.5491580367,
-0.5756065249,
-0.1482613683,
-0.1463882327,
0.2786491513,
0.0339061953,
-0.4509786963,
-0.3733328581,
0.1327017546,
0.0075062881,
-0.0343045704,
0.2479702234,
0.186921224,
0.2428164482,
-0.0500188544,
-0.0937463418,
0.1550150961,
-0.0424524359,
-0.1147119403,
-0.1329627484,
0.1986897737,
-0.1225984991,
0.0456118956,
-0.0185675994,
0.3147914112,
-0.1338374764,
0.1751380861,
0.3347406089,
0.1550747305,
-0.13191697,
-0.262565732,
0.0805612355,
0.4734994769,
0.0326889306,
-0.0527555905,
-0.192376107,
0.4993883073,
0.1238286942,
-0.0980778784,
-0.28532812,
0.4043617249,
-0.1816479564,
0.2681888342,
0.1508678496,
0.0346499607,
-0.0117136165,
-0.0824666619,
-0.1310697794,
0.1497389376,
0.4146443307,
0.1367220581,
-0.2725355923,
-0.06833978,
-0.3361951113,
0.3972063661,
0.2918210924,
-0.2563176751,
0.3381397724,
0.0930464864,
-0.044811327,
-0.0996243432,
0.0174711365,
0.1898332089,
0.1904858202,
0.2655976713,
-0.1340574324,
0.1325649321,
-0.0351310968,
-0.1304929256,
0.0047886074,
0.072985962,
-0.1076815724,
0.3593822122,
0.3060601354,
0.1129135415,
-0.0875145942,
-0.0811662897,
-0.2993247807,
-0.0468395092,
-0.0217849985,
0.1793803871,
0.2182227075,
-0.2264640033,
0.0334010608,
-0.3110874593,
0.0157677308,
0.0116476342,
0.6521468759,
-0.136213094,
-0.1908010393,
0.2219662964,
0.0742609948,
0.910795331,
-0.169758454,
-0.0477677137,
-0.2234661877,
-0.2786905766,
0.1275863945,
0.3061981797,
0.0774174184,
-0.0461223647,
0.5052064061,
-0.1818103492,
0.388017416,
-0.0880890265,
-0.3654262424,
0.0920002013,
-0.0208265819,
0.0868982226,
-0.0135209002,
0.0519563481,
-0.2462123632,
-0.3117575943,
0.096244663,
-0.2440951765,
-0.106366992,
-0.0403899774,
0.2175629139,
-0.0907751396,
-0.1126222312,
-0.496379137,
-0.0617723241,
-0.3034151495,
0.476082176,
0.2297995389,
-0.0288607292,
-0.0194287747,
-0.0775106177,
0.0343690254,
-0.1526602358,
0.1068074331,
-0.2156094909,
0.1638546586,
0.2227651328,
-0.1240257025,
-0.2118235826,
-0.4943146706,
-0.3110441267,
-0.0237981714,
0.0763133466,
-0.1710080653,
-0.0684284493,
-0.2200554758,
0.0027597845,
-0.1519951969,
0.1327388436,
0.451595813,
-0.0766793936,
-0.2075060159,
-0.0513128825,
0.2085877806,
0.5510803461,
0.0616787449,
-0.1596297324,
0.1330932081,
0.2265030146,
0.0326378867,
0.6488927007,
0.0589802861,
0.0846871957,
0.2585294247,
0.0645583346,
-0.1176875234,
-0.2783655822,
0.0752342865,
-0.1934874356,
-0.1577433646,
0.0985051394,
0.4758581221,
0.2683968842,
0.04499273,
-0.1529213786,
0.12534374,
-0.2520803809,
-0.1979157329,
0.4055432081,
0.0370064788,
0.4625870585,
-0.0875200033,
-0.1534027308,
0.0079677626,
-0.3550323844,
0.0913979113,
-0.092289798,
0.0258749481,
-0.4211963117,
-0.5453451872,
-0.2182358503,
-0.2534332573,
0.3696660995,
0.4543712735,
-0.0103510451,
-0.0700469315,
-0.4352990389,
-0.0819311589,
-0.075626716,
0.1700691283,
0.0622295439,
-0.351492852,
0.0121100619,
-0.2442812175,
0.0773435459,
0.1962989271,
-0.3358924389,
-0.3367529511,
-0.0537999943,
0.3874261975,
-0.3562617898,
0.0581249185,
0.2264216691,
-0.0486679301,
-0.0562434047,
0.0086919256,
-0.0854227021,
-0.1264293492,
0.005118154,
0.2333194464,
0.368715167,
0.0364035293,
0.2235225588,
-0.0396037214,
-0.0924397483,
-0.0361282974,
0.0263203289,
0.136878863,
0.0830827206,
0.0011646748,
0.1247431934,
-0.1430706978,
-0.1977377534,
-0.0488723181,
0.4001811743,
-0.2085924,
-0.0698707253,
-0.1505301595,
-0.1544054598,
-0.0211567134,
0.2488562763,
0.1011992544,
0.303930223,
0.0348634496,
0.1376395077,
-0.2829016447,
-0.1738836467,
-0.150807634,
-0.0058538653,
0.1136683971,
-0.1343209445,
0.468616873,
-0.2742675543,
-0.2376134843,
-0.0322409719,
0.4682996571,
-0.1962358057,
0.1028006151,
0.0156813171,
1.0317847729,
-0.1658944339,
0.3711087406,
0.1415891051,
-0.0974738598,
0.2048791647,
-0.3503006101,
0.1448189318,
-0.1310676634,
-0.3593126237,
-0.0561570451,
0.0399525613,
-0.080562368,
-0.0045617428,
-0.3912656903,
0.1389493048,
0.1756031811,
0.3666844368,
0.294652462,
0.2584328949,
0.0696524903,
-0.015262573,
-0.5002797842,
0.2108229101,
0.1116849482,
-0.2397036701,
-0.0502779521,
0.0481447354,
-0.1371402591,
-0.1277019233,
-0.1942481697,
0.0707470626,
-0.4300708473,
-0.0462025665,
0.286147356,
-0.1057449132,
0.1106240451,
0.212416023,
-0.0267281942,
-0.0604789443,
-0.3943506479,
0.0101639871,
-0.2656233907,
0.2279192209,
0.072819382,
-0.0291023124,
0.2924782932,
-0.2039586157,
-0.1170173734,
0.2273562551,
0.3363112509,
-0.4757343233,
-0.4612278342,
0.0721807629,
0.3284935951,
-0.125604108,
0.0085264519,
0.1294413805,
-0.1191572249,
-0.1417364031,
0.2308953851,
0.0601023622,
0.0594073012,
0.1053040326,
0.4885712564,
-0.1789279729,
-0.0357296765,
0.1176625043,
0.4107622206,
-0.0385523215,
0.2471320033,
0.3028383255,
-0.2766371369,
-0.4391760528,
-0.104377009,
0.2383773625,
-0.4756162763,
-0.0299517121,
-0.1643127203,
-0.3447366059,
-0.0333015919,
0.5254299641,
0.4061190784,
-0.0993949026,
-0.0607091337,
-0.052086249,
0.1030386686,
0.6272663474,
0.3372282088,
0.1448048055,
0.0963592306,
-0.182113111,
-0.0878588483,
0.2447616905,
-0.4542949796,
-0.0925646648,
-0.3687013388,
0.243497625,
-0.0720839798,
-0.2631467879,
0.2722585201,
0.0614764988,
0.1426138282,
-0.1043646634,
-0.3949477077,
-0.4038263559,
0.0597073138,
0.097154893,
0.1380203962,
-0.0552520603,
-0.1508056521,
-0.1437975764,
-0.0928229541,
-0.1315388083,
0.0542683825,
-0.3340457082,
0.0110976696,
-0.1788978726,
0.0363317877,
-0.1240278557,
-0.181476891,
0.0099526737,
-0.2088931501,
-0.1822604239,
0.1346780062,
-0.0392421484,
0.0597427748,
-0.0656928346,
0.0799401253,
0.5429308414,
0.4998338521,
-0.1578969657,
0.0591221489,
0.0836746693,
-0.315489471,
-0.0443157107,
0.2773604989,
-0.0831804574,
-0.1181730777,
0.0842383355,
0.1406011283,
0.338583529,
-0.4173093438,
-0.0755336732,
-0.0798859522,
-0.2025337219,
0.3330046237,
0.2637986541,
-0.0864125788,
-0.0999054462,
0.368237257,
0.2149714679,
-0.0356019959,
-0.0385458879,
0.1731215417,
0.1937651038,
0.2517060935,
0.0641475841,
-0.0184772126,
-0.0144703351,
-0.141294837,
-0.0334268585,
-0.2027124166,
0.1448788494,
-0.0525625534,
0.0754862651,
0.2267362475,
0.3809484839,
-0.0089713214,
0.195905745,
-0.1053643599,
0.1468937993,
0.2529246509,
0.0774807632,
0.1793922186,
-0.0227170717,
-0.4215110242,
-0.1569176316,
0.1076809317,
-0.1497694403,
0.0696465373,
-0.2426840812,
-0.3709778786,
-0.1268851906,
-0.0896279439,
-0.0408991985,
0.5435213447,
-0.1635987759,
0.1739099622,
-0.0686829761,
0.0479199179,
0.0670224056,
0.3332656622,
-0.0928832814,
0.2201658338,
0.2191976458,
0.3239120245,
0.0336720571,
0.4749948084,
-0.0025975928,
0.2313487083,
-0.4086584747,
0.370020926,
-0.2205613554,
-0.1524353027,
-0.0604494065,
0.2455565929,
0.2833980322,
-0.046156317,
0.2276703119,
0.2533398271,
-0.2943522334,
0.2517374456,
-0.0129226372,
0.032224413,
-0.2853601277,
0.1191602945,
-0.0543498918,
-0.0460738949,
-0.0495117716,
-0.0612842552,
-0.511742115,
0.1801473498,
-0.2863978148,
-0.2968678176,
-0.0125350468,
-0.073648341,
0.1288130134,
-0.1876113415,
0.2755149901,
0.2395884842,
0.4237527251,
-0.0510507226,
-0.3606440127,
-0.0462604463,
-0.1418852955,
0.1449586451,
-0.1167037934,
0.1562410742,
-0.0363340266,
0.2164874226,
0.3477031589,
-0.1118955016,
-0.3725240231,
-0.3810080588,
0.2364702225,
-0.4007807076,
0.3359993994,
0.174229309,
0.097754471,
0.1720019579,
-0.3217592835,
-0.0427542739,
0.0127449036,
0.1785073727,
0.0582192838,
0.1562898159,
0.0390237197,
-0.210721761,
-0.1147497445,
0.0297924411,
0.3679975569,
-0.175237149,
-0.1896428317,
0.2272825241,
-0.2485177368,
-0.1982803196,
0.0425052978,
0.3440338969,
0.3117295206,
-0.0415381864,
-0.3080853224,
0.3648127615,
0.0051479079,
0.1454780549,
0.4213917553,
-0.1411509514,
0.0980363935,
0.0003456101,
-0.0700885952,
-0.0728384033,
0.121962063,
-0.0429595262,
0.0887332782,
0.0602392107,
-0.2010682076,
0.3448044062,
-0.0921594203,
-0.2158394754,
0.026481159,
0.043216832,
0.0877087414,
-0.1586979479,
-0.5564056635,
-0.0904890895,
0.1962942332,
-0.012718915,
-0.073256053,
0.697296083,
0.0856291354,
-0.1479183137,
-0.1298854351,
0.1628671885,
0.0622371621,
-0.1279259622,
-0.3026589751,
-0.5541501045
] |
https://github.com/huggingface/datasets/issues/879 | boolq does not load | Hi ! It runs on my side without issues. I tried
```python
from datasets import load_dataset
load_dataset("boolq")
```
What version of datasets and tensorflow are your runnning ?
Also if you manage to get a minimal reproducible script (on google colab for example) that would be useful. | Hi
I am getting these errors trying to load boolq thanks
Traceback (most recent call last):
File "test.py", line 5, in <module>
data = AutoTask().get("boolq").get_dataset("train", n_obs=10)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom
get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache
f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been"
FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
| 47 | boolq does not load
Hi
I am getting these errors trying to load boolq thanks
Traceback (most recent call last):
File "test.py", line 5, in <module>
data = AutoTask().get("boolq").get_dataset("train", n_obs=10)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom
get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache
f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been"
FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
Hi ! It runs on my side without issues. I tried
```python
from datasets import load_dataset
load_dataset("boolq")
```
What version of datasets and tensorflow are your runnning ?
Also if you manage to get a minimal reproducible script (on google colab for example) that would be useful. | [
-0.314242512,
-0.1296663582,
-0.1398147047,
0.2243658602,
0.0898043066,
0.0106669962,
0.4253872633,
0.3031972647,
0.4457686841,
-0.1245957315,
-0.0860085189,
0.3309850097,
-0.1855683029,
0.4824477434,
0.0417107157,
-0.0254133083,
-0.1236410812,
0.0837754235,
-0.0132115781,
-0.0677918941,
-0.4335166216,
0.3662596047,
-0.4190511107,
0.1728811562,
-0.1200264692,
-0.2764456868,
-0.0112305433,
0.2354568541,
-0.3227624595,
-0.3402303755,
0.1291929334,
0.0399898738,
0.2798752785,
0.1975853443,
-0.0001004217,
0.0474274755,
0.413601011,
0.0912818536,
-0.2201256901,
-0.2904618979,
-0.1725928485,
-0.3197638988,
0.177007094,
-0.1704837233,
-0.0781291053,
-0.0545156933,
-0.0554293841,
0.07697317,
0.4125254154,
0.4600992799,
0.3143283427,
0.075797759,
0.117056556,
-0.1951512396,
0.1931925118,
-0.1626979411,
0.1515525281,
0.2015700638,
0.0419377759,
-0.2938956916,
0.1587522626,
0.2637580633,
-0.1833401024,
-0.2460288107,
0.012176862,
-0.2074028701,
-0.1017386392,
-0.3344746232,
0.2351709157,
0.0141456984,
0.5186160803,
-0.1224107072,
-0.2733828127,
-0.056684982,
0.1429379135,
-0.1925467551,
0.1893988252,
0.0914990008,
0.0534335189,
-0.0635305941,
0.185098663,
-0.489608109,
-0.0376426131,
-0.0354204625,
-0.1383911818,
0.2759751081,
-0.121539712,
0.0518844537,
0.1912807226,
-0.1711803675,
0.1133472025,
0.2080257833,
-0.1522892267,
0.1584960073,
-0.5179921985,
0.0358059257,
0.1561286747,
-0.0271783099,
-0.0363989957,
0.1296272725,
-0.1894535422,
0.018724896,
-0.0917204767,
0.206809327,
0.0046222713,
0.5135239363,
0.3842207491,
0.2736546695,
0.158357203,
0.1075287461,
-0.2233474404,
0.0342291184,
-0.5201336145,
-0.3621047139,
-0.1302121729,
0.2492165715,
0.2366273254,
-0.084847942,
-0.353836298,
-0.1739949584,
-0.3224678636,
-0.1347560287,
0.3432623446,
0.6987862587,
0.0430133268,
-0.1265626699,
0.052511625,
0.2696884871,
-0.348346889,
-0.0706119388,
-0.2877411842,
0.3017652035,
-0.0307153091,
-0.1554739326,
0.2976014018,
-0.168921873,
0.3525424898,
0.0606401786,
-0.2498080134,
-0.099092856,
0.2741261423,
-0.2546375096,
-0.3732598126,
0.2511184514,
0.0047491565,
0.0151635408,
0.2008349597,
0.2303846478,
-0.0411105603,
0.2055431455,
-0.214366734,
-0.289174974,
0.0416450053,
0.337269187,
-0.0229818001,
-0.2775760591,
-0.1418444216,
0.1758444905,
0.1150738001,
-0.1472826898,
-0.263981849,
-0.3271435797,
-0.1046777293,
-0.2185692191,
0.3993268013,
0.4546141922,
-0.3941680789,
-0.2644503117,
-0.3861939907,
-0.2117391527,
0.005800128,
0.2955780029,
-0.137087971,
0.5168123245,
-0.20740363,
0.0861333162,
0.264696449,
-0.211193651,
-0.1844504774,
0.1970263273,
-0.0149664506,
-0.0348744392,
-0.2750918865,
-0.0445283093,
0.1203416139,
0.1673645824,
0.1317066848,
0.1415140182,
0.2968444228,
-0.2430086434,
-0.1465199292,
-0.1223877072,
0.0710640848,
0.3457802534,
0.230130285,
-0.0535532683,
-0.0584517904,
-0.4113748372,
0.0685674995,
0.1532151997,
-0.299167335,
0.195156917,
0.3404015303,
-0.1151795238,
0.1968041509,
0.0254540667,
-0.3794723451,
0.1544528455,
-0.2339846641,
-0.0378332697,
-0.0620959252,
0.1533769369,
-0.3266774714,
0.0734996349,
-0.1862191558,
-0.052405946,
0.1931236088,
-0.1655140072,
-0.05697871,
0.0857945681,
-0.3088483214,
0.2691082358,
-0.0235379338,
0.1346355975,
-0.2137400359,
0.1054313034,
-0.1465703398,
-0.0927518085,
0.2968970239,
0.2993910015,
0.198073864,
0.0299892984,
-0.021199882,
0.2432889193,
0.1288768947,
0.1043745801,
-0.0412734263,
-0.5058259368,
0.1112553924,
-0.0384226665,
0.3070515394,
0.1330129951,
0.0742574483,
0.0808732659,
0.0900948346,
0.2717497051,
-0.0859904736,
0.193726778,
0.1444681883,
0.1817197502,
0.2400853038,
0.0292751715,
-0.0068938844,
-0.1292019188,
0.4810890555,
-0.0400445759,
-0.0255698375,
0.0285191108,
-0.1477417648,
0.0691429228,
0.4380691051,
0.1077945456,
0.1224574149,
0.0266053211,
-0.1225931346,
0.1235342026,
0.1176417917,
0.1531544328,
0.2710775435,
0.2076154053,
-0.4852929711,
-0.1021021232,
-0.042119693,
-0.269349128,
0.1733108163,
-0.1938357949,
0.0288221762,
0.2061607242,
-0.0693071634,
-0.1248024106,
-0.1851713061,
-0.2250054032,
0.0909519196,
0.2774634063,
-0.1973671019,
-0.0649488196,
-0.0835353509,
-0.3896842301,
0.1917294115,
-0.1083575338,
-0.0304460377,
-0.351207912,
0.128721565,
-0.0296348687,
-0.0343714729,
0.2476256192,
0.0612639785,
0.3148311973,
0.1070148349,
-0.085082382,
-0.1364322007,
-0.2685342431,
-0.2266001999,
0.1310847104,
0.1870206892,
0.0818480402,
0.2532459497,
-0.0990140289,
0.0883720592,
-0.0534890369,
-0.2225488722,
-0.0878057405,
-0.0944326073,
0.3347642124,
0.1184831336,
0.0666120052,
-0.0564614832,
-0.2238014042,
0.3523494601,
-0.1633935273,
-0.0211877003,
0.1725942045,
0.1716834903,
-0.057861492,
-0.2205016315,
-0.5058780909,
-0.5898675919,
-0.4911762476,
0.0963695198,
0.0636327788,
0.196669668,
0.3625309467,
-0.0294898637,
0.1960618198,
0.0712998509,
-0.0495072007,
0.005586084,
-0.1599078476,
0.2620785832,
-0.0651981533,
-0.2783258855,
0.0434392691,
-0.0880051777,
0.4329285622,
-0.2539991438,
-0.308147341,
0.0036393888,
-0.0644263476,
-0.0977025181,
-0.0620605834,
-0.1536531597,
-0.1169786602,
0.0611616224,
0.0138720796,
0.0663509816,
-0.3257703781,
0.2271664441,
0.0191833433,
0.196875006,
-0.065577507,
0.3469645977,
-0.3650502563,
0.6071884036,
0.1826374978,
0.198472023,
0.2066986859,
0.2602954209,
0.0882440805,
0.0225900169,
-0.7111614943,
0.0119960047,
0.1972316504,
-0.1737875044,
0.0223202594,
-0.0742925406,
0.0048976708,
-0.2321589291,
-0.1811946034,
-0.1740100235,
-0.2393466234,
-0.0555002913,
-0.3643974066,
0.0228944048,
-0.0218464062,
0.3673846126,
-0.2108635008,
0.0025232956,
0.0858275592,
0.1972027421,
0.1464116871,
-0.0942062438,
-0.5303609371,
-0.5024213195,
-0.3433575928,
0.2414337099,
-0.2680500746,
0.2392212451,
-0.1371825039,
0.020919472,
0.103165023,
-0.1103470474,
0.4958155751,
-0.1310848296,
-0.1198504195,
0.3111151755,
-0.0852035955,
-0.2169433236,
-0.1560444534,
-0.2145742327,
0.2487734556,
0.0919608176,
0.4482043684,
-0.2502595186,
0.018346373,
0.0149935205,
-0.1805453002,
-0.2933081388,
-0.4980681539,
-0.4371122122,
-0.1474026293,
-0.3785984814,
-0.068428643,
-0.2436526716,
0.2505199909,
-0.2380883396,
-0.017340228,
-0.0446071401,
-0.2353482693,
0.1815396547,
0.1636778116,
0.5122844577,
-0.1921360493,
0.0965684801,
0.0463172533,
0.0618035756,
0.1100912392,
0.3877334893,
-0.1745919287,
-0.2596476972,
-0.0316259563,
-0.0194506459,
0.297083199,
-0.1034843773,
-0.2948684394,
0.3071786165,
-0.0516144708,
0.1102492064,
0.025938347,
0.0147440508,
0.2532853186,
0.1661933362,
-0.0491433404,
-0.4161558151,
0.1546282172,
-0.0264264345,
0.0593895018,
0.2063328922,
-0.2129352242,
-0.0297327526,
0.2763861716,
-0.0648011863,
0.5007889271,
-0.1812511683,
-0.1933794618,
0.3407914639,
0.2175006866,
0.4038964808,
-0.1669145823,
0.2915230393,
-0.5527963638,
-0.0196559131,
0.22657305,
-0.1374721527,
-0.0402739607,
-0.2586252093,
-0.5010083914,
0.2584686279,
-0.1938874424,
0.3548457921,
0.0251686759,
0.2396081537,
-0.1991098225,
0.0686026663,
-0.2652855814,
0.197400704,
-0.1181020588,
0.315929383,
-0.1748006791,
-0.0673147142,
0.3389052451,
-0.1213413924,
-0.0972986743,
0.3927969933,
-0.1331142783,
0.2491983473,
0.186920628,
-0.0859443992,
0.1371114254,
0.4802420735,
0.0360940099,
0.227345407,
-0.1351357251,
0.0657629445,
-0.0193209946,
-0.0943332613,
-0.1121785641,
0.1603535861,
0.2917369008,
-0.1176791564,
-0.3513068557,
0.4982581139,
-0.0539629422,
0.0808964446,
-0.2077493817,
0.0966771394,
-0.0197358727,
-0.2792851031,
-0.058265049,
-0.0777063817,
0.083534345,
-0.1127735674,
0.1955123246,
0.1503967345,
-0.0459563173,
0.2849722207,
-0.1004796252,
-0.2767519355,
-0.036832504,
0.1631649584,
-0.0202608723,
0.2678745091,
0.7444609404,
0.3148197234,
-0.0434075482,
-0.4068886936,
-0.1119848043,
0.1022956073,
-0.0354896188,
0.2343205959,
0.2025268227,
-0.0975751355,
0.2175706625,
0.070192948,
0.0332487375,
-0.0487875082,
-0.0780251548,
-0.4976788759,
-0.2899363637,
0.5084173679,
-0.2384427935,
-0.0717611611,
-0.0226837657,
-0.0233010389,
0.0253997967,
0.1786231846,
-0.4123268723,
-0.0047472604,
-0.5003216267,
-0.1386019289,
-0.1944638044,
-0.2909424305,
0.1350517273,
0.1839276105,
0.2573775351,
-0.0973944813,
-0.1259431392,
-0.2820374072,
0.0279132798,
0.0186120272,
-0.0506162606,
0.1341326833,
-0.0356099755,
-0.2192933559,
0.0269433782,
0.1245466024,
-0.0190820694,
-0.1418261826,
0.042855151,
0.2309853137,
0.0664209127,
0.1498233378,
-0.1048581153,
0.3925116956,
-0.1542078108,
-0.1091765016,
0.0892826766,
0.0404633954,
0.1454323381,
0.0041162297,
-0.0036401078,
-0.05702224,
0.0763987079,
0.0788750872,
0.1567759216,
-0.2010098398,
0.2653388977,
-0.173650071,
0.0509921834,
0.6181198955,
-0.2227318585,
0.1117155999,
0.0968503505,
0.3101872802,
-0.2278641164,
0.1903333664,
-0.2262138128,
-0.0269353725,
0.0044275299,
0.1368971467,
-0.2643565834,
-0.185804069,
0.194419235,
0.186837852,
0.2378836721,
0.1207544804,
0.0021419488,
0.2828047872,
-0.2137756199,
-0.1657214016,
0.1804836243,
0.1804221123,
0.0042536706,
0.3604367077,
-0.2713555098,
-0.0449319407,
0.0594244376,
0.25073722,
0.1973167956,
-0.3961365819,
-0.1421321481,
0.3903947473,
-0.0077802651,
-0.2976877093,
-0.2608274221,
0.4449034333,
-0.104410693,
-0.0567573383,
-0.1178351715,
0.1353801489,
-0.3331621885,
-0.0949438661,
-0.5158821344,
-0.0901946127,
-0.0454393327,
-0.1312888116,
0.0252013132,
0.0420151949,
-0.1148142144,
0.073080793,
-0.1637790054,
-0.3743666708,
0.2009000927,
0.2530693114,
-0.2437724173,
-0.1150778383,
0.3914286196,
0.1533192098,
0.319429487,
0.1970060468,
0.0829286128,
0.3079622686,
0.5380837917,
-0.3283628821,
-0.0000048317,
0.019908458,
-0.131357491,
0.0346754976,
0.3137904406,
0.2148798108,
0.3973933756,
0.2980228662,
0.242942825,
-0.1719401479,
0.1943986863,
0.0471306108,
0.165093109,
0.0040557198,
0.6533155441,
-0.0515633449,
0.0107025653,
-0.2028619647,
-0.0492493883,
-0.5103918314,
-0.087973848,
0.2999313772,
0.2265714705,
0.0560060367,
-0.2306601405,
0.1365999132,
-0.3244097829,
0.420471549,
0.4334091544,
0.4649442434,
-0.4140830636,
0.1457709968,
-0.4007864892,
0.0466140509,
0.0658599362,
-0.0020463616,
-0.1097383723,
0.0314682946,
-0.042500753,
-0.0867096633,
0.131940037,
0.0399009138,
0.2227891386,
-0.1774656475,
-0.4814171493,
0.132863611,
0.0461929515,
0.1684637219,
0.0244555846,
-0.1332154572,
0.1925161928,
-0.4258804321,
0.0993288755,
-0.0376957245,
-0.2557373047,
0.1841212213,
-0.2434110194,
0.2420450151,
0.0028272457,
0.2686460316,
0.0102751106,
-0.0241372213,
-0.193857789,
-0.3289035857,
-0.1430857927,
0.0125013394,
0.3162788153,
0.2012415379,
-0.0406676494,
0.2181181908,
-0.1372949183,
0.167104423,
-0.0101539269,
-0.1750993878,
-0.1615088135,
-0.0480246767,
0.2521773577,
-0.1583050638,
0.0523844659,
0.1459886432,
0.0466806106,
0.1564804614,
-0.4045480788,
-0.0697860047,
0.4909426868,
-0.0189436115,
-0.0651999339,
-0.0544006675,
0.2422240376,
0.1531122178,
0.0249589812,
-0.3776178956,
0.0245509297,
0.3022922575,
-0.0252071582,
0.0776168108,
0.3028817475,
0.401139468,
0.0964679569,
-0.0990419313,
-0.283208847,
0.1615864038,
0.0936068818,
0.0778962001,
0.0205555633
] |
https://github.com/huggingface/datasets/issues/879 | boolq does not load | hey
i do the exact same commands. for me it fails i guess might be issues with
caching maybe?
thanks
best
rabeeh
On Tue, Nov 24, 2020, 10:24 AM Quentin Lhoest <[email protected]>
wrote:
> Hi ! It runs on my side without issues. I tried
>
> from datasets import load_datasetload_dataset("boolq")
>
> What version of datasets and tensorflow are your runnning ?
> Also if you manage to get a minimal reproducible script (on google colab
> for example) that would be useful.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/879#issuecomment-732769114>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABP4ZCGGDR2FUMRKZTIY5CTSRN3VXANCNFSM4T7R3U6A>
> .
>
| Hi
I am getting these errors trying to load boolq thanks
Traceback (most recent call last):
File "test.py", line 5, in <module>
data = AutoTask().get("boolq").get_dataset("train", n_obs=10)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom
get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache
f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been"
FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
| 117 | boolq does not load
Hi
I am getting these errors trying to load boolq thanks
Traceback (most recent call last):
File "test.py", line 5, in <module>
data = AutoTask().get("boolq").get_dataset("train", n_obs=10)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom
get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache
f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been"
FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
hey
i do the exact same commands. for me it fails i guess might be issues with
caching maybe?
thanks
best
rabeeh
On Tue, Nov 24, 2020, 10:24 AM Quentin Lhoest <[email protected]>
wrote:
> Hi ! It runs on my side without issues. I tried
>
> from datasets import load_datasetload_dataset("boolq")
>
> What version of datasets and tensorflow are your runnning ?
> Also if you manage to get a minimal reproducible script (on google colab
> for example) that would be useful.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/879#issuecomment-732769114>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABP4ZCGGDR2FUMRKZTIY5CTSRN3VXANCNFSM4T7R3U6A>
> .
>
| [
-0.314242512,
-0.1296663582,
-0.1398147047,
0.2243658602,
0.0898043066,
0.0106669962,
0.4253872633,
0.3031972647,
0.4457686841,
-0.1245957315,
-0.0860085189,
0.3309850097,
-0.1855683029,
0.4824477434,
0.0417107157,
-0.0254133083,
-0.1236410812,
0.0837754235,
-0.0132115781,
-0.0677918941,
-0.4335166216,
0.3662596047,
-0.4190511107,
0.1728811562,
-0.1200264692,
-0.2764456868,
-0.0112305433,
0.2354568541,
-0.3227624595,
-0.3402303755,
0.1291929334,
0.0399898738,
0.2798752785,
0.1975853443,
-0.0001004217,
0.0474274755,
0.413601011,
0.0912818536,
-0.2201256901,
-0.2904618979,
-0.1725928485,
-0.3197638988,
0.177007094,
-0.1704837233,
-0.0781291053,
-0.0545156933,
-0.0554293841,
0.07697317,
0.4125254154,
0.4600992799,
0.3143283427,
0.075797759,
0.117056556,
-0.1951512396,
0.1931925118,
-0.1626979411,
0.1515525281,
0.2015700638,
0.0419377759,
-0.2938956916,
0.1587522626,
0.2637580633,
-0.1833401024,
-0.2460288107,
0.012176862,
-0.2074028701,
-0.1017386392,
-0.3344746232,
0.2351709157,
0.0141456984,
0.5186160803,
-0.1224107072,
-0.2733828127,
-0.056684982,
0.1429379135,
-0.1925467551,
0.1893988252,
0.0914990008,
0.0534335189,
-0.0635305941,
0.185098663,
-0.489608109,
-0.0376426131,
-0.0354204625,
-0.1383911818,
0.2759751081,
-0.121539712,
0.0518844537,
0.1912807226,
-0.1711803675,
0.1133472025,
0.2080257833,
-0.1522892267,
0.1584960073,
-0.5179921985,
0.0358059257,
0.1561286747,
-0.0271783099,
-0.0363989957,
0.1296272725,
-0.1894535422,
0.018724896,
-0.0917204767,
0.206809327,
0.0046222713,
0.5135239363,
0.3842207491,
0.2736546695,
0.158357203,
0.1075287461,
-0.2233474404,
0.0342291184,
-0.5201336145,
-0.3621047139,
-0.1302121729,
0.2492165715,
0.2366273254,
-0.084847942,
-0.353836298,
-0.1739949584,
-0.3224678636,
-0.1347560287,
0.3432623446,
0.6987862587,
0.0430133268,
-0.1265626699,
0.052511625,
0.2696884871,
-0.348346889,
-0.0706119388,
-0.2877411842,
0.3017652035,
-0.0307153091,
-0.1554739326,
0.2976014018,
-0.168921873,
0.3525424898,
0.0606401786,
-0.2498080134,
-0.099092856,
0.2741261423,
-0.2546375096,
-0.3732598126,
0.2511184514,
0.0047491565,
0.0151635408,
0.2008349597,
0.2303846478,
-0.0411105603,
0.2055431455,
-0.214366734,
-0.289174974,
0.0416450053,
0.337269187,
-0.0229818001,
-0.2775760591,
-0.1418444216,
0.1758444905,
0.1150738001,
-0.1472826898,
-0.263981849,
-0.3271435797,
-0.1046777293,
-0.2185692191,
0.3993268013,
0.4546141922,
-0.3941680789,
-0.2644503117,
-0.3861939907,
-0.2117391527,
0.005800128,
0.2955780029,
-0.137087971,
0.5168123245,
-0.20740363,
0.0861333162,
0.264696449,
-0.211193651,
-0.1844504774,
0.1970263273,
-0.0149664506,
-0.0348744392,
-0.2750918865,
-0.0445283093,
0.1203416139,
0.1673645824,
0.1317066848,
0.1415140182,
0.2968444228,
-0.2430086434,
-0.1465199292,
-0.1223877072,
0.0710640848,
0.3457802534,
0.230130285,
-0.0535532683,
-0.0584517904,
-0.4113748372,
0.0685674995,
0.1532151997,
-0.299167335,
0.195156917,
0.3404015303,
-0.1151795238,
0.1968041509,
0.0254540667,
-0.3794723451,
0.1544528455,
-0.2339846641,
-0.0378332697,
-0.0620959252,
0.1533769369,
-0.3266774714,
0.0734996349,
-0.1862191558,
-0.052405946,
0.1931236088,
-0.1655140072,
-0.05697871,
0.0857945681,
-0.3088483214,
0.2691082358,
-0.0235379338,
0.1346355975,
-0.2137400359,
0.1054313034,
-0.1465703398,
-0.0927518085,
0.2968970239,
0.2993910015,
0.198073864,
0.0299892984,
-0.021199882,
0.2432889193,
0.1288768947,
0.1043745801,
-0.0412734263,
-0.5058259368,
0.1112553924,
-0.0384226665,
0.3070515394,
0.1330129951,
0.0742574483,
0.0808732659,
0.0900948346,
0.2717497051,
-0.0859904736,
0.193726778,
0.1444681883,
0.1817197502,
0.2400853038,
0.0292751715,
-0.0068938844,
-0.1292019188,
0.4810890555,
-0.0400445759,
-0.0255698375,
0.0285191108,
-0.1477417648,
0.0691429228,
0.4380691051,
0.1077945456,
0.1224574149,
0.0266053211,
-0.1225931346,
0.1235342026,
0.1176417917,
0.1531544328,
0.2710775435,
0.2076154053,
-0.4852929711,
-0.1021021232,
-0.042119693,
-0.269349128,
0.1733108163,
-0.1938357949,
0.0288221762,
0.2061607242,
-0.0693071634,
-0.1248024106,
-0.1851713061,
-0.2250054032,
0.0909519196,
0.2774634063,
-0.1973671019,
-0.0649488196,
-0.0835353509,
-0.3896842301,
0.1917294115,
-0.1083575338,
-0.0304460377,
-0.351207912,
0.128721565,
-0.0296348687,
-0.0343714729,
0.2476256192,
0.0612639785,
0.3148311973,
0.1070148349,
-0.085082382,
-0.1364322007,
-0.2685342431,
-0.2266001999,
0.1310847104,
0.1870206892,
0.0818480402,
0.2532459497,
-0.0990140289,
0.0883720592,
-0.0534890369,
-0.2225488722,
-0.0878057405,
-0.0944326073,
0.3347642124,
0.1184831336,
0.0666120052,
-0.0564614832,
-0.2238014042,
0.3523494601,
-0.1633935273,
-0.0211877003,
0.1725942045,
0.1716834903,
-0.057861492,
-0.2205016315,
-0.5058780909,
-0.5898675919,
-0.4911762476,
0.0963695198,
0.0636327788,
0.196669668,
0.3625309467,
-0.0294898637,
0.1960618198,
0.0712998509,
-0.0495072007,
0.005586084,
-0.1599078476,
0.2620785832,
-0.0651981533,
-0.2783258855,
0.0434392691,
-0.0880051777,
0.4329285622,
-0.2539991438,
-0.308147341,
0.0036393888,
-0.0644263476,
-0.0977025181,
-0.0620605834,
-0.1536531597,
-0.1169786602,
0.0611616224,
0.0138720796,
0.0663509816,
-0.3257703781,
0.2271664441,
0.0191833433,
0.196875006,
-0.065577507,
0.3469645977,
-0.3650502563,
0.6071884036,
0.1826374978,
0.198472023,
0.2066986859,
0.2602954209,
0.0882440805,
0.0225900169,
-0.7111614943,
0.0119960047,
0.1972316504,
-0.1737875044,
0.0223202594,
-0.0742925406,
0.0048976708,
-0.2321589291,
-0.1811946034,
-0.1740100235,
-0.2393466234,
-0.0555002913,
-0.3643974066,
0.0228944048,
-0.0218464062,
0.3673846126,
-0.2108635008,
0.0025232956,
0.0858275592,
0.1972027421,
0.1464116871,
-0.0942062438,
-0.5303609371,
-0.5024213195,
-0.3433575928,
0.2414337099,
-0.2680500746,
0.2392212451,
-0.1371825039,
0.020919472,
0.103165023,
-0.1103470474,
0.4958155751,
-0.1310848296,
-0.1198504195,
0.3111151755,
-0.0852035955,
-0.2169433236,
-0.1560444534,
-0.2145742327,
0.2487734556,
0.0919608176,
0.4482043684,
-0.2502595186,
0.018346373,
0.0149935205,
-0.1805453002,
-0.2933081388,
-0.4980681539,
-0.4371122122,
-0.1474026293,
-0.3785984814,
-0.068428643,
-0.2436526716,
0.2505199909,
-0.2380883396,
-0.017340228,
-0.0446071401,
-0.2353482693,
0.1815396547,
0.1636778116,
0.5122844577,
-0.1921360493,
0.0965684801,
0.0463172533,
0.0618035756,
0.1100912392,
0.3877334893,
-0.1745919287,
-0.2596476972,
-0.0316259563,
-0.0194506459,
0.297083199,
-0.1034843773,
-0.2948684394,
0.3071786165,
-0.0516144708,
0.1102492064,
0.025938347,
0.0147440508,
0.2532853186,
0.1661933362,
-0.0491433404,
-0.4161558151,
0.1546282172,
-0.0264264345,
0.0593895018,
0.2063328922,
-0.2129352242,
-0.0297327526,
0.2763861716,
-0.0648011863,
0.5007889271,
-0.1812511683,
-0.1933794618,
0.3407914639,
0.2175006866,
0.4038964808,
-0.1669145823,
0.2915230393,
-0.5527963638,
-0.0196559131,
0.22657305,
-0.1374721527,
-0.0402739607,
-0.2586252093,
-0.5010083914,
0.2584686279,
-0.1938874424,
0.3548457921,
0.0251686759,
0.2396081537,
-0.1991098225,
0.0686026663,
-0.2652855814,
0.197400704,
-0.1181020588,
0.315929383,
-0.1748006791,
-0.0673147142,
0.3389052451,
-0.1213413924,
-0.0972986743,
0.3927969933,
-0.1331142783,
0.2491983473,
0.186920628,
-0.0859443992,
0.1371114254,
0.4802420735,
0.0360940099,
0.227345407,
-0.1351357251,
0.0657629445,
-0.0193209946,
-0.0943332613,
-0.1121785641,
0.1603535861,
0.2917369008,
-0.1176791564,
-0.3513068557,
0.4982581139,
-0.0539629422,
0.0808964446,
-0.2077493817,
0.0966771394,
-0.0197358727,
-0.2792851031,
-0.058265049,
-0.0777063817,
0.083534345,
-0.1127735674,
0.1955123246,
0.1503967345,
-0.0459563173,
0.2849722207,
-0.1004796252,
-0.2767519355,
-0.036832504,
0.1631649584,
-0.0202608723,
0.2678745091,
0.7444609404,
0.3148197234,
-0.0434075482,
-0.4068886936,
-0.1119848043,
0.1022956073,
-0.0354896188,
0.2343205959,
0.2025268227,
-0.0975751355,
0.2175706625,
0.070192948,
0.0332487375,
-0.0487875082,
-0.0780251548,
-0.4976788759,
-0.2899363637,
0.5084173679,
-0.2384427935,
-0.0717611611,
-0.0226837657,
-0.0233010389,
0.0253997967,
0.1786231846,
-0.4123268723,
-0.0047472604,
-0.5003216267,
-0.1386019289,
-0.1944638044,
-0.2909424305,
0.1350517273,
0.1839276105,
0.2573775351,
-0.0973944813,
-0.1259431392,
-0.2820374072,
0.0279132798,
0.0186120272,
-0.0506162606,
0.1341326833,
-0.0356099755,
-0.2192933559,
0.0269433782,
0.1245466024,
-0.0190820694,
-0.1418261826,
0.042855151,
0.2309853137,
0.0664209127,
0.1498233378,
-0.1048581153,
0.3925116956,
-0.1542078108,
-0.1091765016,
0.0892826766,
0.0404633954,
0.1454323381,
0.0041162297,
-0.0036401078,
-0.05702224,
0.0763987079,
0.0788750872,
0.1567759216,
-0.2010098398,
0.2653388977,
-0.173650071,
0.0509921834,
0.6181198955,
-0.2227318585,
0.1117155999,
0.0968503505,
0.3101872802,
-0.2278641164,
0.1903333664,
-0.2262138128,
-0.0269353725,
0.0044275299,
0.1368971467,
-0.2643565834,
-0.185804069,
0.194419235,
0.186837852,
0.2378836721,
0.1207544804,
0.0021419488,
0.2828047872,
-0.2137756199,
-0.1657214016,
0.1804836243,
0.1804221123,
0.0042536706,
0.3604367077,
-0.2713555098,
-0.0449319407,
0.0594244376,
0.25073722,
0.1973167956,
-0.3961365819,
-0.1421321481,
0.3903947473,
-0.0077802651,
-0.2976877093,
-0.2608274221,
0.4449034333,
-0.104410693,
-0.0567573383,
-0.1178351715,
0.1353801489,
-0.3331621885,
-0.0949438661,
-0.5158821344,
-0.0901946127,
-0.0454393327,
-0.1312888116,
0.0252013132,
0.0420151949,
-0.1148142144,
0.073080793,
-0.1637790054,
-0.3743666708,
0.2009000927,
0.2530693114,
-0.2437724173,
-0.1150778383,
0.3914286196,
0.1533192098,
0.319429487,
0.1970060468,
0.0829286128,
0.3079622686,
0.5380837917,
-0.3283628821,
-0.0000048317,
0.019908458,
-0.131357491,
0.0346754976,
0.3137904406,
0.2148798108,
0.3973933756,
0.2980228662,
0.242942825,
-0.1719401479,
0.1943986863,
0.0471306108,
0.165093109,
0.0040557198,
0.6533155441,
-0.0515633449,
0.0107025653,
-0.2028619647,
-0.0492493883,
-0.5103918314,
-0.087973848,
0.2999313772,
0.2265714705,
0.0560060367,
-0.2306601405,
0.1365999132,
-0.3244097829,
0.420471549,
0.4334091544,
0.4649442434,
-0.4140830636,
0.1457709968,
-0.4007864892,
0.0466140509,
0.0658599362,
-0.0020463616,
-0.1097383723,
0.0314682946,
-0.042500753,
-0.0867096633,
0.131940037,
0.0399009138,
0.2227891386,
-0.1774656475,
-0.4814171493,
0.132863611,
0.0461929515,
0.1684637219,
0.0244555846,
-0.1332154572,
0.1925161928,
-0.4258804321,
0.0993288755,
-0.0376957245,
-0.2557373047,
0.1841212213,
-0.2434110194,
0.2420450151,
0.0028272457,
0.2686460316,
0.0102751106,
-0.0241372213,
-0.193857789,
-0.3289035857,
-0.1430857927,
0.0125013394,
0.3162788153,
0.2012415379,
-0.0406676494,
0.2181181908,
-0.1372949183,
0.167104423,
-0.0101539269,
-0.1750993878,
-0.1615088135,
-0.0480246767,
0.2521773577,
-0.1583050638,
0.0523844659,
0.1459886432,
0.0466806106,
0.1564804614,
-0.4045480788,
-0.0697860047,
0.4909426868,
-0.0189436115,
-0.0651999339,
-0.0544006675,
0.2422240376,
0.1531122178,
0.0249589812,
-0.3776178956,
0.0245509297,
0.3022922575,
-0.0252071582,
0.0776168108,
0.3028817475,
0.401139468,
0.0964679569,
-0.0990419313,
-0.283208847,
0.1615864038,
0.0936068818,
0.0778962001,
0.0205555633
] |
https://github.com/huggingface/datasets/issues/879 | boolq does not load | Could you check if it works on the master branch ?
You can use `load_dataset("boolq", script_version="master")` to do so.
We did some changes recently in boolq to remove the TF dependency and we changed the way the data files are downloaded in https://github.com/huggingface/datasets/pull/881 | Hi
I am getting these errors trying to load boolq thanks
Traceback (most recent call last):
File "test.py", line 5, in <module>
data = AutoTask().get("boolq").get_dataset("train", n_obs=10)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom
get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache
f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been"
FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
| 43 | boolq does not load
Hi
I am getting these errors trying to load boolq thanks
Traceback (most recent call last):
File "test.py", line 5, in <module>
data = AutoTask().get("boolq").get_dataset("train", n_obs=10)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom
get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache
f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been"
FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
Could you check if it works on the master branch ?
You can use `load_dataset("boolq", script_version="master")` to do so.
We did some changes recently in boolq to remove the TF dependency and we changed the way the data files are downloaded in https://github.com/huggingface/datasets/pull/881 | [
-0.314242512,
-0.1296663582,
-0.1398147047,
0.2243658602,
0.0898043066,
0.0106669962,
0.4253872633,
0.3031972647,
0.4457686841,
-0.1245957315,
-0.0860085189,
0.3309850097,
-0.1855683029,
0.4824477434,
0.0417107157,
-0.0254133083,
-0.1236410812,
0.0837754235,
-0.0132115781,
-0.0677918941,
-0.4335166216,
0.3662596047,
-0.4190511107,
0.1728811562,
-0.1200264692,
-0.2764456868,
-0.0112305433,
0.2354568541,
-0.3227624595,
-0.3402303755,
0.1291929334,
0.0399898738,
0.2798752785,
0.1975853443,
-0.0001004217,
0.0474274755,
0.413601011,
0.0912818536,
-0.2201256901,
-0.2904618979,
-0.1725928485,
-0.3197638988,
0.177007094,
-0.1704837233,
-0.0781291053,
-0.0545156933,
-0.0554293841,
0.07697317,
0.4125254154,
0.4600992799,
0.3143283427,
0.075797759,
0.117056556,
-0.1951512396,
0.1931925118,
-0.1626979411,
0.1515525281,
0.2015700638,
0.0419377759,
-0.2938956916,
0.1587522626,
0.2637580633,
-0.1833401024,
-0.2460288107,
0.012176862,
-0.2074028701,
-0.1017386392,
-0.3344746232,
0.2351709157,
0.0141456984,
0.5186160803,
-0.1224107072,
-0.2733828127,
-0.056684982,
0.1429379135,
-0.1925467551,
0.1893988252,
0.0914990008,
0.0534335189,
-0.0635305941,
0.185098663,
-0.489608109,
-0.0376426131,
-0.0354204625,
-0.1383911818,
0.2759751081,
-0.121539712,
0.0518844537,
0.1912807226,
-0.1711803675,
0.1133472025,
0.2080257833,
-0.1522892267,
0.1584960073,
-0.5179921985,
0.0358059257,
0.1561286747,
-0.0271783099,
-0.0363989957,
0.1296272725,
-0.1894535422,
0.018724896,
-0.0917204767,
0.206809327,
0.0046222713,
0.5135239363,
0.3842207491,
0.2736546695,
0.158357203,
0.1075287461,
-0.2233474404,
0.0342291184,
-0.5201336145,
-0.3621047139,
-0.1302121729,
0.2492165715,
0.2366273254,
-0.084847942,
-0.353836298,
-0.1739949584,
-0.3224678636,
-0.1347560287,
0.3432623446,
0.6987862587,
0.0430133268,
-0.1265626699,
0.052511625,
0.2696884871,
-0.348346889,
-0.0706119388,
-0.2877411842,
0.3017652035,
-0.0307153091,
-0.1554739326,
0.2976014018,
-0.168921873,
0.3525424898,
0.0606401786,
-0.2498080134,
-0.099092856,
0.2741261423,
-0.2546375096,
-0.3732598126,
0.2511184514,
0.0047491565,
0.0151635408,
0.2008349597,
0.2303846478,
-0.0411105603,
0.2055431455,
-0.214366734,
-0.289174974,
0.0416450053,
0.337269187,
-0.0229818001,
-0.2775760591,
-0.1418444216,
0.1758444905,
0.1150738001,
-0.1472826898,
-0.263981849,
-0.3271435797,
-0.1046777293,
-0.2185692191,
0.3993268013,
0.4546141922,
-0.3941680789,
-0.2644503117,
-0.3861939907,
-0.2117391527,
0.005800128,
0.2955780029,
-0.137087971,
0.5168123245,
-0.20740363,
0.0861333162,
0.264696449,
-0.211193651,
-0.1844504774,
0.1970263273,
-0.0149664506,
-0.0348744392,
-0.2750918865,
-0.0445283093,
0.1203416139,
0.1673645824,
0.1317066848,
0.1415140182,
0.2968444228,
-0.2430086434,
-0.1465199292,
-0.1223877072,
0.0710640848,
0.3457802534,
0.230130285,
-0.0535532683,
-0.0584517904,
-0.4113748372,
0.0685674995,
0.1532151997,
-0.299167335,
0.195156917,
0.3404015303,
-0.1151795238,
0.1968041509,
0.0254540667,
-0.3794723451,
0.1544528455,
-0.2339846641,
-0.0378332697,
-0.0620959252,
0.1533769369,
-0.3266774714,
0.0734996349,
-0.1862191558,
-0.052405946,
0.1931236088,
-0.1655140072,
-0.05697871,
0.0857945681,
-0.3088483214,
0.2691082358,
-0.0235379338,
0.1346355975,
-0.2137400359,
0.1054313034,
-0.1465703398,
-0.0927518085,
0.2968970239,
0.2993910015,
0.198073864,
0.0299892984,
-0.021199882,
0.2432889193,
0.1288768947,
0.1043745801,
-0.0412734263,
-0.5058259368,
0.1112553924,
-0.0384226665,
0.3070515394,
0.1330129951,
0.0742574483,
0.0808732659,
0.0900948346,
0.2717497051,
-0.0859904736,
0.193726778,
0.1444681883,
0.1817197502,
0.2400853038,
0.0292751715,
-0.0068938844,
-0.1292019188,
0.4810890555,
-0.0400445759,
-0.0255698375,
0.0285191108,
-0.1477417648,
0.0691429228,
0.4380691051,
0.1077945456,
0.1224574149,
0.0266053211,
-0.1225931346,
0.1235342026,
0.1176417917,
0.1531544328,
0.2710775435,
0.2076154053,
-0.4852929711,
-0.1021021232,
-0.042119693,
-0.269349128,
0.1733108163,
-0.1938357949,
0.0288221762,
0.2061607242,
-0.0693071634,
-0.1248024106,
-0.1851713061,
-0.2250054032,
0.0909519196,
0.2774634063,
-0.1973671019,
-0.0649488196,
-0.0835353509,
-0.3896842301,
0.1917294115,
-0.1083575338,
-0.0304460377,
-0.351207912,
0.128721565,
-0.0296348687,
-0.0343714729,
0.2476256192,
0.0612639785,
0.3148311973,
0.1070148349,
-0.085082382,
-0.1364322007,
-0.2685342431,
-0.2266001999,
0.1310847104,
0.1870206892,
0.0818480402,
0.2532459497,
-0.0990140289,
0.0883720592,
-0.0534890369,
-0.2225488722,
-0.0878057405,
-0.0944326073,
0.3347642124,
0.1184831336,
0.0666120052,
-0.0564614832,
-0.2238014042,
0.3523494601,
-0.1633935273,
-0.0211877003,
0.1725942045,
0.1716834903,
-0.057861492,
-0.2205016315,
-0.5058780909,
-0.5898675919,
-0.4911762476,
0.0963695198,
0.0636327788,
0.196669668,
0.3625309467,
-0.0294898637,
0.1960618198,
0.0712998509,
-0.0495072007,
0.005586084,
-0.1599078476,
0.2620785832,
-0.0651981533,
-0.2783258855,
0.0434392691,
-0.0880051777,
0.4329285622,
-0.2539991438,
-0.308147341,
0.0036393888,
-0.0644263476,
-0.0977025181,
-0.0620605834,
-0.1536531597,
-0.1169786602,
0.0611616224,
0.0138720796,
0.0663509816,
-0.3257703781,
0.2271664441,
0.0191833433,
0.196875006,
-0.065577507,
0.3469645977,
-0.3650502563,
0.6071884036,
0.1826374978,
0.198472023,
0.2066986859,
0.2602954209,
0.0882440805,
0.0225900169,
-0.7111614943,
0.0119960047,
0.1972316504,
-0.1737875044,
0.0223202594,
-0.0742925406,
0.0048976708,
-0.2321589291,
-0.1811946034,
-0.1740100235,
-0.2393466234,
-0.0555002913,
-0.3643974066,
0.0228944048,
-0.0218464062,
0.3673846126,
-0.2108635008,
0.0025232956,
0.0858275592,
0.1972027421,
0.1464116871,
-0.0942062438,
-0.5303609371,
-0.5024213195,
-0.3433575928,
0.2414337099,
-0.2680500746,
0.2392212451,
-0.1371825039,
0.020919472,
0.103165023,
-0.1103470474,
0.4958155751,
-0.1310848296,
-0.1198504195,
0.3111151755,
-0.0852035955,
-0.2169433236,
-0.1560444534,
-0.2145742327,
0.2487734556,
0.0919608176,
0.4482043684,
-0.2502595186,
0.018346373,
0.0149935205,
-0.1805453002,
-0.2933081388,
-0.4980681539,
-0.4371122122,
-0.1474026293,
-0.3785984814,
-0.068428643,
-0.2436526716,
0.2505199909,
-0.2380883396,
-0.017340228,
-0.0446071401,
-0.2353482693,
0.1815396547,
0.1636778116,
0.5122844577,
-0.1921360493,
0.0965684801,
0.0463172533,
0.0618035756,
0.1100912392,
0.3877334893,
-0.1745919287,
-0.2596476972,
-0.0316259563,
-0.0194506459,
0.297083199,
-0.1034843773,
-0.2948684394,
0.3071786165,
-0.0516144708,
0.1102492064,
0.025938347,
0.0147440508,
0.2532853186,
0.1661933362,
-0.0491433404,
-0.4161558151,
0.1546282172,
-0.0264264345,
0.0593895018,
0.2063328922,
-0.2129352242,
-0.0297327526,
0.2763861716,
-0.0648011863,
0.5007889271,
-0.1812511683,
-0.1933794618,
0.3407914639,
0.2175006866,
0.4038964808,
-0.1669145823,
0.2915230393,
-0.5527963638,
-0.0196559131,
0.22657305,
-0.1374721527,
-0.0402739607,
-0.2586252093,
-0.5010083914,
0.2584686279,
-0.1938874424,
0.3548457921,
0.0251686759,
0.2396081537,
-0.1991098225,
0.0686026663,
-0.2652855814,
0.197400704,
-0.1181020588,
0.315929383,
-0.1748006791,
-0.0673147142,
0.3389052451,
-0.1213413924,
-0.0972986743,
0.3927969933,
-0.1331142783,
0.2491983473,
0.186920628,
-0.0859443992,
0.1371114254,
0.4802420735,
0.0360940099,
0.227345407,
-0.1351357251,
0.0657629445,
-0.0193209946,
-0.0943332613,
-0.1121785641,
0.1603535861,
0.2917369008,
-0.1176791564,
-0.3513068557,
0.4982581139,
-0.0539629422,
0.0808964446,
-0.2077493817,
0.0966771394,
-0.0197358727,
-0.2792851031,
-0.058265049,
-0.0777063817,
0.083534345,
-0.1127735674,
0.1955123246,
0.1503967345,
-0.0459563173,
0.2849722207,
-0.1004796252,
-0.2767519355,
-0.036832504,
0.1631649584,
-0.0202608723,
0.2678745091,
0.7444609404,
0.3148197234,
-0.0434075482,
-0.4068886936,
-0.1119848043,
0.1022956073,
-0.0354896188,
0.2343205959,
0.2025268227,
-0.0975751355,
0.2175706625,
0.070192948,
0.0332487375,
-0.0487875082,
-0.0780251548,
-0.4976788759,
-0.2899363637,
0.5084173679,
-0.2384427935,
-0.0717611611,
-0.0226837657,
-0.0233010389,
0.0253997967,
0.1786231846,
-0.4123268723,
-0.0047472604,
-0.5003216267,
-0.1386019289,
-0.1944638044,
-0.2909424305,
0.1350517273,
0.1839276105,
0.2573775351,
-0.0973944813,
-0.1259431392,
-0.2820374072,
0.0279132798,
0.0186120272,
-0.0506162606,
0.1341326833,
-0.0356099755,
-0.2192933559,
0.0269433782,
0.1245466024,
-0.0190820694,
-0.1418261826,
0.042855151,
0.2309853137,
0.0664209127,
0.1498233378,
-0.1048581153,
0.3925116956,
-0.1542078108,
-0.1091765016,
0.0892826766,
0.0404633954,
0.1454323381,
0.0041162297,
-0.0036401078,
-0.05702224,
0.0763987079,
0.0788750872,
0.1567759216,
-0.2010098398,
0.2653388977,
-0.173650071,
0.0509921834,
0.6181198955,
-0.2227318585,
0.1117155999,
0.0968503505,
0.3101872802,
-0.2278641164,
0.1903333664,
-0.2262138128,
-0.0269353725,
0.0044275299,
0.1368971467,
-0.2643565834,
-0.185804069,
0.194419235,
0.186837852,
0.2378836721,
0.1207544804,
0.0021419488,
0.2828047872,
-0.2137756199,
-0.1657214016,
0.1804836243,
0.1804221123,
0.0042536706,
0.3604367077,
-0.2713555098,
-0.0449319407,
0.0594244376,
0.25073722,
0.1973167956,
-0.3961365819,
-0.1421321481,
0.3903947473,
-0.0077802651,
-0.2976877093,
-0.2608274221,
0.4449034333,
-0.104410693,
-0.0567573383,
-0.1178351715,
0.1353801489,
-0.3331621885,
-0.0949438661,
-0.5158821344,
-0.0901946127,
-0.0454393327,
-0.1312888116,
0.0252013132,
0.0420151949,
-0.1148142144,
0.073080793,
-0.1637790054,
-0.3743666708,
0.2009000927,
0.2530693114,
-0.2437724173,
-0.1150778383,
0.3914286196,
0.1533192098,
0.319429487,
0.1970060468,
0.0829286128,
0.3079622686,
0.5380837917,
-0.3283628821,
-0.0000048317,
0.019908458,
-0.131357491,
0.0346754976,
0.3137904406,
0.2148798108,
0.3973933756,
0.2980228662,
0.242942825,
-0.1719401479,
0.1943986863,
0.0471306108,
0.165093109,
0.0040557198,
0.6533155441,
-0.0515633449,
0.0107025653,
-0.2028619647,
-0.0492493883,
-0.5103918314,
-0.087973848,
0.2999313772,
0.2265714705,
0.0560060367,
-0.2306601405,
0.1365999132,
-0.3244097829,
0.420471549,
0.4334091544,
0.4649442434,
-0.4140830636,
0.1457709968,
-0.4007864892,
0.0466140509,
0.0658599362,
-0.0020463616,
-0.1097383723,
0.0314682946,
-0.042500753,
-0.0867096633,
0.131940037,
0.0399009138,
0.2227891386,
-0.1774656475,
-0.4814171493,
0.132863611,
0.0461929515,
0.1684637219,
0.0244555846,
-0.1332154572,
0.1925161928,
-0.4258804321,
0.0993288755,
-0.0376957245,
-0.2557373047,
0.1841212213,
-0.2434110194,
0.2420450151,
0.0028272457,
0.2686460316,
0.0102751106,
-0.0241372213,
-0.193857789,
-0.3289035857,
-0.1430857927,
0.0125013394,
0.3162788153,
0.2012415379,
-0.0406676494,
0.2181181908,
-0.1372949183,
0.167104423,
-0.0101539269,
-0.1750993878,
-0.1615088135,
-0.0480246767,
0.2521773577,
-0.1583050638,
0.0523844659,
0.1459886432,
0.0466806106,
0.1564804614,
-0.4045480788,
-0.0697860047,
0.4909426868,
-0.0189436115,
-0.0651999339,
-0.0544006675,
0.2422240376,
0.1531122178,
0.0249589812,
-0.3776178956,
0.0245509297,
0.3022922575,
-0.0252071582,
0.0776168108,
0.3028817475,
0.401139468,
0.0964679569,
-0.0990419313,
-0.283208847,
0.1615864038,
0.0936068818,
0.0778962001,
0.0205555633
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | > neat feature
I dint get these clearly, can you please elaborate like how to work on these | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 18 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
> neat feature
I dint get these clearly, can you please elaborate like how to work on these | [
-0.2508122921,
-0.2407750189,
-0.053151913,
0.5038032532,
0.242677778,
0.0379797071,
0.4234100878,
0.230223,
0.0534567088,
0.0122714564,
-0.0213178508,
0.3855960071,
-0.2364186645,
0.408721447,
-0.0733913407,
0.151946947,
0.0036895536,
0.1174417138,
0.2415751517,
0.1663118005,
-0.0428828485,
0.2773866653,
-0.0571361855,
0.1090653166,
-0.1840190589,
0.0136173368,
0.0146281347,
0.3506193161,
-0.0750774443,
-0.508487165,
0.0108170286,
-0.0190766435,
0.4783014059,
0.3833350241,
-0.0001139213,
-0.0286530107,
0.3157632053,
0.0450193211,
-0.4229222834,
-0.3848213553,
-0.5591979623,
0.1110934243,
0.152659148,
-0.037460804,
-0.3507243097,
-0.0653409362,
-0.3116800785,
-0.2656853199,
0.4028449953,
0.6623778343,
0.1782038957,
0.1914704144,
-0.0731052235,
-0.3078445196,
0.2821200788,
0.0203727316,
0.001827538,
0.222032994,
-0.2715067565,
0.1779976189,
0.2951637208,
0.27099967,
-0.4019233882,
0.1139449477,
0.5365957618,
0.0304872356,
0.3513380885,
0.0784729347,
0.1274640411,
0.170570448,
0.5801001191,
-0.1361254007,
-0.4543988705,
-0.184920162,
-0.2141833156,
-0.2824923396,
0.1915269047,
0.0894623101,
0.0374887846,
0.0282421689,
-0.0464705117,
-0.0466802269,
-0.0988202244,
0.2466036081,
0.0339194536,
0.4405600131,
-0.278003931,
0.0633560568,
0.2615092993,
0.0703381896,
0.3421873152,
-0.1132725403,
0.0181237571,
0.0466641746,
-0.2519853115,
0.1674022675,
-0.0153581053,
0.2122866809,
-0.0699798092,
0.1938643456,
0.3034310937,
-0.0739921033,
0.3996635973,
0.2401906699,
0.3883316517,
-0.1680291742,
0.0913823843,
0.0003883317,
-0.0994114131,
0.4869208634,
0.0785984099,
-0.1934861839,
-0.3133123219,
-0.5367276073,
0.1240957007,
0.2688180804,
0.3971945643,
-0.3510358632,
-0.2658776045,
-0.0860201716,
-0.1192130968,
-0.1965766251,
0.2694830298,
0.4972227514,
-0.3471298814,
-0.1139851063,
-0.1179712266,
0.2110883296,
-0.2143540382,
0.0854031444,
-0.1983183771,
0.2434529662,
-0.3190574646,
0.0227506161,
0.1486800909,
-0.5799322724,
0.5168523788,
-0.0738640726,
0.0051260088,
-0.3440083265,
0.1492897719,
-0.2164644897,
0.1777613908,
0.1814398468,
0.1935319304,
0.2570757866,
-0.053781189,
-0.0760165229,
-0.1820333004,
0.0855756328,
-0.1849055886,
-0.4797710776,
0.0412797332,
0.2240626812,
-0.2657830119,
-0.1602723002,
-0.059421394,
-0.1859487593,
0.278168112,
-0.0984314531,
-0.388699472,
0.0453322865,
-0.1181020439,
-0.2207809091,
0.4690742195,
0.3192172647,
-0.3537423313,
0.108596459,
-0.471652627,
0.1138470098,
0.0835108086,
0.2105171233,
-0.3659236729,
0.4489597976,
-0.3048422337,
0.1328934878,
0.5610038638,
-0.2565932572,
0.0060540549,
0.0853614658,
-0.0421510339,
-0.1606777906,
0.1342203468,
-0.0630413368,
-0.1340710372,
-0.1085646451,
0.0167826004,
0.3441393971,
0.0382877886,
0.0388527587,
-0.1566991508,
-0.0247691497,
0.1257414222,
0.2443984449,
0.1100834981,
-0.0220541693,
-0.0373708569,
-0.1964022815,
-0.0556684695,
-0.1184007078,
-0.0434883498,
0.4679802656,
0.273306489,
0.3011099696,
-0.0028270967,
0.1516499519,
-0.2742569745,
0.1333040446,
0.0448957309,
-0.2772717178,
-0.0668593645,
0.0106650814,
-0.2895230353,
0.0034125,
-0.4520743191,
0.0989075229,
0.105307959,
0.3138039112,
0.232626766,
-0.0971176401,
-0.11902266,
-0.3059861958,
0.3305369318,
-0.0151230786,
-0.3088083565,
0.1135312244,
-0.4051385522,
-0.0548963249,
0.0869038552,
0.0439935513,
0.1716849804,
0.1176357418,
0.0150819719,
0.1787699163,
0.1243598983,
0.2274497151,
-0.214469105,
0.1562111378,
-0.1199651733,
0.030692704,
0.179736495,
-0.1334500909,
0.1356185228,
0.0835731328,
-0.0444401987,
0.4771923423,
-0.0267101657,
0.1894393861,
0.1397071481,
0.0150927156,
0.2696094513,
-0.1694878042,
-0.0204149708,
-0.1353711635,
0.0476757213,
-0.1200013906,
0.1146691442,
0.0762752369,
-0.0729279369,
-0.1295491308,
0.3834595084,
0.0959832221,
-0.0108043421,
-0.2696368098,
-0.2296588868,
-0.1449699402,
0.0653624907,
0.4955296814,
0.3665237427,
0.2210590243,
0.0965467915,
-0.0355796516,
-0.0539808124,
-0.1855219305,
0.2379354537,
0.423758775,
0.4380970001,
0.3556295931,
-0.378128022,
-0.0747241378,
-0.2402070761,
-0.1607339978,
0.1642104089,
0.28225106,
-0.4002408981,
0.189003706,
-0.0598932132,
-0.1696400344,
-0.2982713282,
-0.3548650742,
-0.1032038555,
-0.2554684579,
-0.1192266494,
0.2769101858,
-0.2668561637,
-0.0272915661,
0.0960365906,
0.0128377974,
-0.0740058869,
-0.0552990325,
-0.3418390155,
-0.2471808493,
-0.1704051346,
0.0550118834,
0.2183097601,
0.0958849043,
0.2658968568,
-0.1865485013,
0.108301267,
-0.4633398354,
-0.0825943574,
-0.0176456831,
-0.0080974074,
0.3024949431,
0.2742296755,
0.080207631,
0.2997993529,
-0.2465779185,
0.4653754234,
-0.012098249,
0.0204352662,
0.2364754975,
-0.0213384535,
-0.1121436357,
-0.0333962142,
-0.3809584379,
0.0699733645,
-0.4534810185,
-0.3755662143,
0.0112921372,
0.1440525353,
0.2753454447,
0.3328950107,
0.2299250364,
-0.2099562287,
0.3361963928,
-0.2096320242,
-0.203705281,
0.1267782003,
-0.2523743212,
-0.2639801502,
0.3304710388,
-0.0450134575,
0.8056793213,
-0.1035314575,
-0.2581115961,
-0.0281819738,
0.0541549176,
-0.3135479093,
-0.1422805637,
-0.2467390746,
0.3080141544,
0.208803907,
-0.085646823,
-0.0078175962,
-0.3258492649,
0.0911113024,
-0.2148192823,
0.2122523636,
-0.2017769814,
0.8904489279,
-0.0051942468,
0.4429087341,
0.1470211297,
-0.2118462622,
0.4529936016,
-0.1063800827,
0.1824466437,
-0.104823783,
-0.2602480948,
-0.1180831641,
0.1664526463,
-0.2900655866,
0.1482968926,
-0.2593996823,
-0.0632350594,
-0.2945415974,
0.0631958544,
-0.3335373998,
-0.2166403979,
0.0108935554,
-0.264600426,
0.1334774345,
-0.1084318832,
0.0371412784,
-0.0522481799,
0.1782279313,
0.1964561641,
0.2740252018,
0.1798411012,
-0.036095757,
-0.2892716527,
-0.022856541,
-0.3024624586,
0.3309326172,
-0.044929225,
0.1445601285,
-0.1725997031,
-0.2284809798,
0.1085915416,
-0.212063536,
0.5687651038,
-0.2886081338,
0.0759902745,
0.2566809654,
-0.1874072552,
-0.4711463153,
-0.2658159137,
-0.0675031841,
0.2460011393,
0.0289373696,
0.4087799489,
-0.1191494465,
-0.4835369885,
0.1473178864,
-0.0567419156,
-0.0862189904,
-0.2047347277,
-0.3479644656,
-0.1231659055,
-0.3823905885,
-0.0772969946,
-0.0697867051,
0.3470997512,
0.0993612781,
-0.2050056756,
0.0540420189,
0.0844750702,
0.0261744801,
-0.0463369042,
0.4726719856,
0.0330606848,
0.2310327441,
0.272346437,
0.3769772053,
0.1094537973,
0.3990900815,
0.2031018883,
-0.4686411619,
-0.1039527655,
0.030714158,
0.4628862143,
-0.0234799162,
-0.1841687411,
0.1056568325,
0.1430653632,
0.1544756889,
-0.169170633,
0.1093407869,
0.4040110111,
0.0435303673,
-0.305380553,
-0.5429389477,
-0.0136749037,
0.0826763213,
0.0919230133,
-0.0626311153,
-0.3203948736,
-0.2080415785,
0.2609344125,
0.4015893042,
0.6901732087,
-0.0723920837,
0.2966909707,
0.558742404,
0.0910604224,
0.0016885139,
0.2774417996,
-0.1042707711,
-0.5139324665,
0.1954909265,
0.0833371282,
-0.1815756261,
-0.009393001,
0.2339335978,
-0.1757295728,
0.205243364,
-0.2196787298,
0.0933760405,
-0.1733640134,
0.1602139473,
-0.1688348353,
-0.0502106026,
-0.121875897,
0.0497321114,
-0.0692730993,
0.0820501745,
-0.1036419719,
-0.2097411454,
0.0337740332,
-0.2309397161,
0.0748142004,
0.2753436863,
0.0081000589,
0.0343263149,
-0.2805513144,
-0.1951712072,
0.1213373244,
0.244719848,
0.3164096773,
0.0351310931,
-0.0893454179,
0.1010993719,
-0.3682292998,
-0.2763565481,
-0.2608577609,
-0.095642671,
0.1849868894,
-0.2108018547,
-0.0499801412,
0.1240622327,
-0.0613716692,
-0.3762868047,
-0.033586055,
-0.0350454859,
0.2754877508,
-0.4317028224,
-0.2545204461,
-0.1319123209,
-0.1161125153,
-0.1919200122,
0.1608150899,
0.2287706137,
-0.1201414615,
0.0152175957,
-0.1504315138,
-0.2745189667,
0.0584030375,
0.5248115063,
-0.1016797125,
0.1521700919,
0.6307948232,
0.0710353553,
-0.1138499007,
-0.2894230485,
-0.2996490002,
0.018357195,
-0.290943563,
0.1833910346,
0.2434941977,
-0.0689215958,
0.2441025376,
0.3077546656,
0.1714058518,
-0.098984167,
-0.050826747,
-0.5483647585,
-0.0284052566,
0.0474093743,
-0.1534880698,
0.3620047569,
0.1767349243,
-0.322078526,
-0.0817600042,
-0.1770448536,
-0.2993301749,
0.0011036731,
-0.1198002398,
0.2405625135,
-0.2157942653,
-0.2780372202,
0.2113569677,
0.0620968342,
0.1622254252,
-0.355820477,
-0.0777114034,
-0.2533760071,
-0.0681319758,
0.1221703291,
0.1441826373,
0.0095418356,
0.1336417347,
-0.1444760263,
-0.3320432901,
-0.1306843013,
0.0670904666,
0.1010916457,
-0.0039908439,
0.2840555906,
0.0924805701,
0.0219093859,
-0.1482170075,
-0.1065013334,
-0.1994542181,
-0.1743007004,
0.008559417,
0.2015720308,
-0.1814139783,
-0.2146721184,
0.0438420214,
0.003067499,
0.0793970078,
0.0792408958,
0.3128162026,
-0.46475631,
0.0515680611,
0.1602489352,
0.505522728,
0.3906168044,
-0.0799039155,
0.2140351236,
0.3118723333,
0.2381580919,
-0.1135244071,
-0.2740478814,
-0.1960723102,
-0.2340989113,
-0.0069743991,
-0.0698655546,
-0.0677563623,
0.0582613349,
0.2001814693,
-0.0457282811,
0.1784252375,
0.1480002105,
0.1270188987,
0.2794733942,
-0.3211748004,
0.0406143479,
0.2804031074,
0.1732442975,
0.144983083,
0.3777579665,
-0.1555615216,
0.1443802267,
-0.2752650082,
0.1954726279,
-0.1280414164,
-0.6779034734,
0.1011460871,
0.0413989089,
-0.0967222825,
-0.0895920694,
-0.1370326877,
0.3286107779,
0.0310609899,
0.0625444204,
-0.3678518534,
0.0839883313,
-0.1466528475,
-0.0880455524,
-0.3406412899,
0.00762631,
-0.0325514972,
0.1551524103,
0.1516607702,
-0.0349878781,
-0.0857885182,
0.0875554681,
-0.0400346965,
-0.0436643213,
0.0709552467,
0.3961871564,
-0.2319026291,
-0.4020036459,
0.1886531562,
-0.1219381839,
-0.0789999664,
0.0003446508,
0.071505405,
0.5281404853,
0.3324438035,
0.1592496783,
0.0043607727,
-0.0478786826,
-0.1837078929,
-0.0530144721,
0.0596841909,
0.1682321429,
0.3104562461,
0.4630708098,
0.1703825891,
-0.1467409432,
0.1241715401,
-0.1453260481,
0.3208074272,
-0.0304009542,
0.1715202928,
0.1750355512,
-0.240303576,
-0.2071766704,
0.2140193433,
-0.5623787642,
-0.2455458343,
0.3704133034,
0.0733890757,
0.0577127822,
-0.1164957434,
0.0590369813,
0.169428125,
0.5225660205,
0.1972421855,
0.3079324067,
-0.4567182064,
-0.0008987635,
-0.5817424059,
-0.0127126426,
0.1645321995,
0.2716321349,
0.1598728448,
0.1856325269,
-0.2448571622,
-0.0757827312,
0.2462039292,
0.2971829176,
0.1082026809,
0.233815819,
-0.1574125886,
-0.1347533613,
0.151497677,
-0.1274894178,
0.0899901018,
-0.1791542917,
0.0747644156,
-0.047214061,
0.0362292752,
-0.2751493454,
0.0237010866,
0.0012945235,
-0.1667187065,
0.5104472041,
-0.2578533292,
0.4464900196,
-0.0321036242,
0.1099808142,
-0.4661691487,
0.0489511788,
-0.1495847702,
0.1149455011,
0.0738409609,
0.2687285542,
-0.0252670087,
0.3849052489,
-0.4096691608,
0.2747508287,
-0.1608559936,
-0.3426372409,
-0.0414936393,
0.1178344116,
0.0767929479,
0.3193479478,
0.0821505487,
-0.0379421599,
0.0348788053,
0.0631608665,
-0.5235251188,
-0.2149444073,
0.6017241478,
-0.43991974,
-0.0485644899,
-0.0070457458,
0.2270690054,
0.1117746383,
-0.1416444331,
-0.4197170138,
0.1078704894,
0.2636762857,
0.1084359884,
-0.0447179303,
0.3393391669,
0.2886269987,
0.1458835602,
-0.0916724205,
0.1939835548,
0.1492436081,
-0.1321776211,
-0.130217284,
-0.3663118184
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | It could maybe work almost out of the box just by using `cached_path` in the text/csv/json scripts, no? | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 18 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
It could maybe work almost out of the box just by using `cached_path` in the text/csv/json scripts, no? | [
-0.2508122921,
-0.2407750189,
-0.053151913,
0.5038032532,
0.242677778,
0.0379797071,
0.4234100878,
0.230223,
0.0534567088,
0.0122714564,
-0.0213178508,
0.3855960071,
-0.2364186645,
0.408721447,
-0.0733913407,
0.151946947,
0.0036895536,
0.1174417138,
0.2415751517,
0.1663118005,
-0.0428828485,
0.2773866653,
-0.0571361855,
0.1090653166,
-0.1840190589,
0.0136173368,
0.0146281347,
0.3506193161,
-0.0750774443,
-0.508487165,
0.0108170286,
-0.0190766435,
0.4783014059,
0.3833350241,
-0.0001139213,
-0.0286530107,
0.3157632053,
0.0450193211,
-0.4229222834,
-0.3848213553,
-0.5591979623,
0.1110934243,
0.152659148,
-0.037460804,
-0.3507243097,
-0.0653409362,
-0.3116800785,
-0.2656853199,
0.4028449953,
0.6623778343,
0.1782038957,
0.1914704144,
-0.0731052235,
-0.3078445196,
0.2821200788,
0.0203727316,
0.001827538,
0.222032994,
-0.2715067565,
0.1779976189,
0.2951637208,
0.27099967,
-0.4019233882,
0.1139449477,
0.5365957618,
0.0304872356,
0.3513380885,
0.0784729347,
0.1274640411,
0.170570448,
0.5801001191,
-0.1361254007,
-0.4543988705,
-0.184920162,
-0.2141833156,
-0.2824923396,
0.1915269047,
0.0894623101,
0.0374887846,
0.0282421689,
-0.0464705117,
-0.0466802269,
-0.0988202244,
0.2466036081,
0.0339194536,
0.4405600131,
-0.278003931,
0.0633560568,
0.2615092993,
0.0703381896,
0.3421873152,
-0.1132725403,
0.0181237571,
0.0466641746,
-0.2519853115,
0.1674022675,
-0.0153581053,
0.2122866809,
-0.0699798092,
0.1938643456,
0.3034310937,
-0.0739921033,
0.3996635973,
0.2401906699,
0.3883316517,
-0.1680291742,
0.0913823843,
0.0003883317,
-0.0994114131,
0.4869208634,
0.0785984099,
-0.1934861839,
-0.3133123219,
-0.5367276073,
0.1240957007,
0.2688180804,
0.3971945643,
-0.3510358632,
-0.2658776045,
-0.0860201716,
-0.1192130968,
-0.1965766251,
0.2694830298,
0.4972227514,
-0.3471298814,
-0.1139851063,
-0.1179712266,
0.2110883296,
-0.2143540382,
0.0854031444,
-0.1983183771,
0.2434529662,
-0.3190574646,
0.0227506161,
0.1486800909,
-0.5799322724,
0.5168523788,
-0.0738640726,
0.0051260088,
-0.3440083265,
0.1492897719,
-0.2164644897,
0.1777613908,
0.1814398468,
0.1935319304,
0.2570757866,
-0.053781189,
-0.0760165229,
-0.1820333004,
0.0855756328,
-0.1849055886,
-0.4797710776,
0.0412797332,
0.2240626812,
-0.2657830119,
-0.1602723002,
-0.059421394,
-0.1859487593,
0.278168112,
-0.0984314531,
-0.388699472,
0.0453322865,
-0.1181020439,
-0.2207809091,
0.4690742195,
0.3192172647,
-0.3537423313,
0.108596459,
-0.471652627,
0.1138470098,
0.0835108086,
0.2105171233,
-0.3659236729,
0.4489597976,
-0.3048422337,
0.1328934878,
0.5610038638,
-0.2565932572,
0.0060540549,
0.0853614658,
-0.0421510339,
-0.1606777906,
0.1342203468,
-0.0630413368,
-0.1340710372,
-0.1085646451,
0.0167826004,
0.3441393971,
0.0382877886,
0.0388527587,
-0.1566991508,
-0.0247691497,
0.1257414222,
0.2443984449,
0.1100834981,
-0.0220541693,
-0.0373708569,
-0.1964022815,
-0.0556684695,
-0.1184007078,
-0.0434883498,
0.4679802656,
0.273306489,
0.3011099696,
-0.0028270967,
0.1516499519,
-0.2742569745,
0.1333040446,
0.0448957309,
-0.2772717178,
-0.0668593645,
0.0106650814,
-0.2895230353,
0.0034125,
-0.4520743191,
0.0989075229,
0.105307959,
0.3138039112,
0.232626766,
-0.0971176401,
-0.11902266,
-0.3059861958,
0.3305369318,
-0.0151230786,
-0.3088083565,
0.1135312244,
-0.4051385522,
-0.0548963249,
0.0869038552,
0.0439935513,
0.1716849804,
0.1176357418,
0.0150819719,
0.1787699163,
0.1243598983,
0.2274497151,
-0.214469105,
0.1562111378,
-0.1199651733,
0.030692704,
0.179736495,
-0.1334500909,
0.1356185228,
0.0835731328,
-0.0444401987,
0.4771923423,
-0.0267101657,
0.1894393861,
0.1397071481,
0.0150927156,
0.2696094513,
-0.1694878042,
-0.0204149708,
-0.1353711635,
0.0476757213,
-0.1200013906,
0.1146691442,
0.0762752369,
-0.0729279369,
-0.1295491308,
0.3834595084,
0.0959832221,
-0.0108043421,
-0.2696368098,
-0.2296588868,
-0.1449699402,
0.0653624907,
0.4955296814,
0.3665237427,
0.2210590243,
0.0965467915,
-0.0355796516,
-0.0539808124,
-0.1855219305,
0.2379354537,
0.423758775,
0.4380970001,
0.3556295931,
-0.378128022,
-0.0747241378,
-0.2402070761,
-0.1607339978,
0.1642104089,
0.28225106,
-0.4002408981,
0.189003706,
-0.0598932132,
-0.1696400344,
-0.2982713282,
-0.3548650742,
-0.1032038555,
-0.2554684579,
-0.1192266494,
0.2769101858,
-0.2668561637,
-0.0272915661,
0.0960365906,
0.0128377974,
-0.0740058869,
-0.0552990325,
-0.3418390155,
-0.2471808493,
-0.1704051346,
0.0550118834,
0.2183097601,
0.0958849043,
0.2658968568,
-0.1865485013,
0.108301267,
-0.4633398354,
-0.0825943574,
-0.0176456831,
-0.0080974074,
0.3024949431,
0.2742296755,
0.080207631,
0.2997993529,
-0.2465779185,
0.4653754234,
-0.012098249,
0.0204352662,
0.2364754975,
-0.0213384535,
-0.1121436357,
-0.0333962142,
-0.3809584379,
0.0699733645,
-0.4534810185,
-0.3755662143,
0.0112921372,
0.1440525353,
0.2753454447,
0.3328950107,
0.2299250364,
-0.2099562287,
0.3361963928,
-0.2096320242,
-0.203705281,
0.1267782003,
-0.2523743212,
-0.2639801502,
0.3304710388,
-0.0450134575,
0.8056793213,
-0.1035314575,
-0.2581115961,
-0.0281819738,
0.0541549176,
-0.3135479093,
-0.1422805637,
-0.2467390746,
0.3080141544,
0.208803907,
-0.085646823,
-0.0078175962,
-0.3258492649,
0.0911113024,
-0.2148192823,
0.2122523636,
-0.2017769814,
0.8904489279,
-0.0051942468,
0.4429087341,
0.1470211297,
-0.2118462622,
0.4529936016,
-0.1063800827,
0.1824466437,
-0.104823783,
-0.2602480948,
-0.1180831641,
0.1664526463,
-0.2900655866,
0.1482968926,
-0.2593996823,
-0.0632350594,
-0.2945415974,
0.0631958544,
-0.3335373998,
-0.2166403979,
0.0108935554,
-0.264600426,
0.1334774345,
-0.1084318832,
0.0371412784,
-0.0522481799,
0.1782279313,
0.1964561641,
0.2740252018,
0.1798411012,
-0.036095757,
-0.2892716527,
-0.022856541,
-0.3024624586,
0.3309326172,
-0.044929225,
0.1445601285,
-0.1725997031,
-0.2284809798,
0.1085915416,
-0.212063536,
0.5687651038,
-0.2886081338,
0.0759902745,
0.2566809654,
-0.1874072552,
-0.4711463153,
-0.2658159137,
-0.0675031841,
0.2460011393,
0.0289373696,
0.4087799489,
-0.1191494465,
-0.4835369885,
0.1473178864,
-0.0567419156,
-0.0862189904,
-0.2047347277,
-0.3479644656,
-0.1231659055,
-0.3823905885,
-0.0772969946,
-0.0697867051,
0.3470997512,
0.0993612781,
-0.2050056756,
0.0540420189,
0.0844750702,
0.0261744801,
-0.0463369042,
0.4726719856,
0.0330606848,
0.2310327441,
0.272346437,
0.3769772053,
0.1094537973,
0.3990900815,
0.2031018883,
-0.4686411619,
-0.1039527655,
0.030714158,
0.4628862143,
-0.0234799162,
-0.1841687411,
0.1056568325,
0.1430653632,
0.1544756889,
-0.169170633,
0.1093407869,
0.4040110111,
0.0435303673,
-0.305380553,
-0.5429389477,
-0.0136749037,
0.0826763213,
0.0919230133,
-0.0626311153,
-0.3203948736,
-0.2080415785,
0.2609344125,
0.4015893042,
0.6901732087,
-0.0723920837,
0.2966909707,
0.558742404,
0.0910604224,
0.0016885139,
0.2774417996,
-0.1042707711,
-0.5139324665,
0.1954909265,
0.0833371282,
-0.1815756261,
-0.009393001,
0.2339335978,
-0.1757295728,
0.205243364,
-0.2196787298,
0.0933760405,
-0.1733640134,
0.1602139473,
-0.1688348353,
-0.0502106026,
-0.121875897,
0.0497321114,
-0.0692730993,
0.0820501745,
-0.1036419719,
-0.2097411454,
0.0337740332,
-0.2309397161,
0.0748142004,
0.2753436863,
0.0081000589,
0.0343263149,
-0.2805513144,
-0.1951712072,
0.1213373244,
0.244719848,
0.3164096773,
0.0351310931,
-0.0893454179,
0.1010993719,
-0.3682292998,
-0.2763565481,
-0.2608577609,
-0.095642671,
0.1849868894,
-0.2108018547,
-0.0499801412,
0.1240622327,
-0.0613716692,
-0.3762868047,
-0.033586055,
-0.0350454859,
0.2754877508,
-0.4317028224,
-0.2545204461,
-0.1319123209,
-0.1161125153,
-0.1919200122,
0.1608150899,
0.2287706137,
-0.1201414615,
0.0152175957,
-0.1504315138,
-0.2745189667,
0.0584030375,
0.5248115063,
-0.1016797125,
0.1521700919,
0.6307948232,
0.0710353553,
-0.1138499007,
-0.2894230485,
-0.2996490002,
0.018357195,
-0.290943563,
0.1833910346,
0.2434941977,
-0.0689215958,
0.2441025376,
0.3077546656,
0.1714058518,
-0.098984167,
-0.050826747,
-0.5483647585,
-0.0284052566,
0.0474093743,
-0.1534880698,
0.3620047569,
0.1767349243,
-0.322078526,
-0.0817600042,
-0.1770448536,
-0.2993301749,
0.0011036731,
-0.1198002398,
0.2405625135,
-0.2157942653,
-0.2780372202,
0.2113569677,
0.0620968342,
0.1622254252,
-0.355820477,
-0.0777114034,
-0.2533760071,
-0.0681319758,
0.1221703291,
0.1441826373,
0.0095418356,
0.1336417347,
-0.1444760263,
-0.3320432901,
-0.1306843013,
0.0670904666,
0.1010916457,
-0.0039908439,
0.2840555906,
0.0924805701,
0.0219093859,
-0.1482170075,
-0.1065013334,
-0.1994542181,
-0.1743007004,
0.008559417,
0.2015720308,
-0.1814139783,
-0.2146721184,
0.0438420214,
0.003067499,
0.0793970078,
0.0792408958,
0.3128162026,
-0.46475631,
0.0515680611,
0.1602489352,
0.505522728,
0.3906168044,
-0.0799039155,
0.2140351236,
0.3118723333,
0.2381580919,
-0.1135244071,
-0.2740478814,
-0.1960723102,
-0.2340989113,
-0.0069743991,
-0.0698655546,
-0.0677563623,
0.0582613349,
0.2001814693,
-0.0457282811,
0.1784252375,
0.1480002105,
0.1270188987,
0.2794733942,
-0.3211748004,
0.0406143479,
0.2804031074,
0.1732442975,
0.144983083,
0.3777579665,
-0.1555615216,
0.1443802267,
-0.2752650082,
0.1954726279,
-0.1280414164,
-0.6779034734,
0.1011460871,
0.0413989089,
-0.0967222825,
-0.0895920694,
-0.1370326877,
0.3286107779,
0.0310609899,
0.0625444204,
-0.3678518534,
0.0839883313,
-0.1466528475,
-0.0880455524,
-0.3406412899,
0.00762631,
-0.0325514972,
0.1551524103,
0.1516607702,
-0.0349878781,
-0.0857885182,
0.0875554681,
-0.0400346965,
-0.0436643213,
0.0709552467,
0.3961871564,
-0.2319026291,
-0.4020036459,
0.1886531562,
-0.1219381839,
-0.0789999664,
0.0003446508,
0.071505405,
0.5281404853,
0.3324438035,
0.1592496783,
0.0043607727,
-0.0478786826,
-0.1837078929,
-0.0530144721,
0.0596841909,
0.1682321429,
0.3104562461,
0.4630708098,
0.1703825891,
-0.1467409432,
0.1241715401,
-0.1453260481,
0.3208074272,
-0.0304009542,
0.1715202928,
0.1750355512,
-0.240303576,
-0.2071766704,
0.2140193433,
-0.5623787642,
-0.2455458343,
0.3704133034,
0.0733890757,
0.0577127822,
-0.1164957434,
0.0590369813,
0.169428125,
0.5225660205,
0.1972421855,
0.3079324067,
-0.4567182064,
-0.0008987635,
-0.5817424059,
-0.0127126426,
0.1645321995,
0.2716321349,
0.1598728448,
0.1856325269,
-0.2448571622,
-0.0757827312,
0.2462039292,
0.2971829176,
0.1082026809,
0.233815819,
-0.1574125886,
-0.1347533613,
0.151497677,
-0.1274894178,
0.0899901018,
-0.1791542917,
0.0747644156,
-0.047214061,
0.0362292752,
-0.2751493454,
0.0237010866,
0.0012945235,
-0.1667187065,
0.5104472041,
-0.2578533292,
0.4464900196,
-0.0321036242,
0.1099808142,
-0.4661691487,
0.0489511788,
-0.1495847702,
0.1149455011,
0.0738409609,
0.2687285542,
-0.0252670087,
0.3849052489,
-0.4096691608,
0.2747508287,
-0.1608559936,
-0.3426372409,
-0.0414936393,
0.1178344116,
0.0767929479,
0.3193479478,
0.0821505487,
-0.0379421599,
0.0348788053,
0.0631608665,
-0.5235251188,
-0.2149444073,
0.6017241478,
-0.43991974,
-0.0485644899,
-0.0070457458,
0.2270690054,
0.1117746383,
-0.1416444331,
-0.4197170138,
0.1078704894,
0.2636762857,
0.1084359884,
-0.0447179303,
0.3393391669,
0.2886269987,
0.1458835602,
-0.0916724205,
0.1939835548,
0.1492436081,
-0.1321776211,
-0.130217284,
-0.3663118184
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | Thanks thomwolf and julien-c
I'm still confusion on what you guys said,
I have solved the problem as follows:
1. read the csv file using pandas from s3
2. Convert to dictionary key as column name and values as list column data
3. convert it to Dataset using
`from datasets import Dataset`
`train_dataset = Dataset.from_dict(train_dict)` | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 55 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
Thanks thomwolf and julien-c
I'm still confusion on what you guys said,
I have solved the problem as follows:
1. read the csv file using pandas from s3
2. Convert to dictionary key as column name and values as list column data
3. convert it to Dataset using
`from datasets import Dataset`
`train_dataset = Dataset.from_dict(train_dict)` | [
-0.2508122921,
-0.2407750189,
-0.053151913,
0.5038032532,
0.242677778,
0.0379797071,
0.4234100878,
0.230223,
0.0534567088,
0.0122714564,
-0.0213178508,
0.3855960071,
-0.2364186645,
0.408721447,
-0.0733913407,
0.151946947,
0.0036895536,
0.1174417138,
0.2415751517,
0.1663118005,
-0.0428828485,
0.2773866653,
-0.0571361855,
0.1090653166,
-0.1840190589,
0.0136173368,
0.0146281347,
0.3506193161,
-0.0750774443,
-0.508487165,
0.0108170286,
-0.0190766435,
0.4783014059,
0.3833350241,
-0.0001139213,
-0.0286530107,
0.3157632053,
0.0450193211,
-0.4229222834,
-0.3848213553,
-0.5591979623,
0.1110934243,
0.152659148,
-0.037460804,
-0.3507243097,
-0.0653409362,
-0.3116800785,
-0.2656853199,
0.4028449953,
0.6623778343,
0.1782038957,
0.1914704144,
-0.0731052235,
-0.3078445196,
0.2821200788,
0.0203727316,
0.001827538,
0.222032994,
-0.2715067565,
0.1779976189,
0.2951637208,
0.27099967,
-0.4019233882,
0.1139449477,
0.5365957618,
0.0304872356,
0.3513380885,
0.0784729347,
0.1274640411,
0.170570448,
0.5801001191,
-0.1361254007,
-0.4543988705,
-0.184920162,
-0.2141833156,
-0.2824923396,
0.1915269047,
0.0894623101,
0.0374887846,
0.0282421689,
-0.0464705117,
-0.0466802269,
-0.0988202244,
0.2466036081,
0.0339194536,
0.4405600131,
-0.278003931,
0.0633560568,
0.2615092993,
0.0703381896,
0.3421873152,
-0.1132725403,
0.0181237571,
0.0466641746,
-0.2519853115,
0.1674022675,
-0.0153581053,
0.2122866809,
-0.0699798092,
0.1938643456,
0.3034310937,
-0.0739921033,
0.3996635973,
0.2401906699,
0.3883316517,
-0.1680291742,
0.0913823843,
0.0003883317,
-0.0994114131,
0.4869208634,
0.0785984099,
-0.1934861839,
-0.3133123219,
-0.5367276073,
0.1240957007,
0.2688180804,
0.3971945643,
-0.3510358632,
-0.2658776045,
-0.0860201716,
-0.1192130968,
-0.1965766251,
0.2694830298,
0.4972227514,
-0.3471298814,
-0.1139851063,
-0.1179712266,
0.2110883296,
-0.2143540382,
0.0854031444,
-0.1983183771,
0.2434529662,
-0.3190574646,
0.0227506161,
0.1486800909,
-0.5799322724,
0.5168523788,
-0.0738640726,
0.0051260088,
-0.3440083265,
0.1492897719,
-0.2164644897,
0.1777613908,
0.1814398468,
0.1935319304,
0.2570757866,
-0.053781189,
-0.0760165229,
-0.1820333004,
0.0855756328,
-0.1849055886,
-0.4797710776,
0.0412797332,
0.2240626812,
-0.2657830119,
-0.1602723002,
-0.059421394,
-0.1859487593,
0.278168112,
-0.0984314531,
-0.388699472,
0.0453322865,
-0.1181020439,
-0.2207809091,
0.4690742195,
0.3192172647,
-0.3537423313,
0.108596459,
-0.471652627,
0.1138470098,
0.0835108086,
0.2105171233,
-0.3659236729,
0.4489597976,
-0.3048422337,
0.1328934878,
0.5610038638,
-0.2565932572,
0.0060540549,
0.0853614658,
-0.0421510339,
-0.1606777906,
0.1342203468,
-0.0630413368,
-0.1340710372,
-0.1085646451,
0.0167826004,
0.3441393971,
0.0382877886,
0.0388527587,
-0.1566991508,
-0.0247691497,
0.1257414222,
0.2443984449,
0.1100834981,
-0.0220541693,
-0.0373708569,
-0.1964022815,
-0.0556684695,
-0.1184007078,
-0.0434883498,
0.4679802656,
0.273306489,
0.3011099696,
-0.0028270967,
0.1516499519,
-0.2742569745,
0.1333040446,
0.0448957309,
-0.2772717178,
-0.0668593645,
0.0106650814,
-0.2895230353,
0.0034125,
-0.4520743191,
0.0989075229,
0.105307959,
0.3138039112,
0.232626766,
-0.0971176401,
-0.11902266,
-0.3059861958,
0.3305369318,
-0.0151230786,
-0.3088083565,
0.1135312244,
-0.4051385522,
-0.0548963249,
0.0869038552,
0.0439935513,
0.1716849804,
0.1176357418,
0.0150819719,
0.1787699163,
0.1243598983,
0.2274497151,
-0.214469105,
0.1562111378,
-0.1199651733,
0.030692704,
0.179736495,
-0.1334500909,
0.1356185228,
0.0835731328,
-0.0444401987,
0.4771923423,
-0.0267101657,
0.1894393861,
0.1397071481,
0.0150927156,
0.2696094513,
-0.1694878042,
-0.0204149708,
-0.1353711635,
0.0476757213,
-0.1200013906,
0.1146691442,
0.0762752369,
-0.0729279369,
-0.1295491308,
0.3834595084,
0.0959832221,
-0.0108043421,
-0.2696368098,
-0.2296588868,
-0.1449699402,
0.0653624907,
0.4955296814,
0.3665237427,
0.2210590243,
0.0965467915,
-0.0355796516,
-0.0539808124,
-0.1855219305,
0.2379354537,
0.423758775,
0.4380970001,
0.3556295931,
-0.378128022,
-0.0747241378,
-0.2402070761,
-0.1607339978,
0.1642104089,
0.28225106,
-0.4002408981,
0.189003706,
-0.0598932132,
-0.1696400344,
-0.2982713282,
-0.3548650742,
-0.1032038555,
-0.2554684579,
-0.1192266494,
0.2769101858,
-0.2668561637,
-0.0272915661,
0.0960365906,
0.0128377974,
-0.0740058869,
-0.0552990325,
-0.3418390155,
-0.2471808493,
-0.1704051346,
0.0550118834,
0.2183097601,
0.0958849043,
0.2658968568,
-0.1865485013,
0.108301267,
-0.4633398354,
-0.0825943574,
-0.0176456831,
-0.0080974074,
0.3024949431,
0.2742296755,
0.080207631,
0.2997993529,
-0.2465779185,
0.4653754234,
-0.012098249,
0.0204352662,
0.2364754975,
-0.0213384535,
-0.1121436357,
-0.0333962142,
-0.3809584379,
0.0699733645,
-0.4534810185,
-0.3755662143,
0.0112921372,
0.1440525353,
0.2753454447,
0.3328950107,
0.2299250364,
-0.2099562287,
0.3361963928,
-0.2096320242,
-0.203705281,
0.1267782003,
-0.2523743212,
-0.2639801502,
0.3304710388,
-0.0450134575,
0.8056793213,
-0.1035314575,
-0.2581115961,
-0.0281819738,
0.0541549176,
-0.3135479093,
-0.1422805637,
-0.2467390746,
0.3080141544,
0.208803907,
-0.085646823,
-0.0078175962,
-0.3258492649,
0.0911113024,
-0.2148192823,
0.2122523636,
-0.2017769814,
0.8904489279,
-0.0051942468,
0.4429087341,
0.1470211297,
-0.2118462622,
0.4529936016,
-0.1063800827,
0.1824466437,
-0.104823783,
-0.2602480948,
-0.1180831641,
0.1664526463,
-0.2900655866,
0.1482968926,
-0.2593996823,
-0.0632350594,
-0.2945415974,
0.0631958544,
-0.3335373998,
-0.2166403979,
0.0108935554,
-0.264600426,
0.1334774345,
-0.1084318832,
0.0371412784,
-0.0522481799,
0.1782279313,
0.1964561641,
0.2740252018,
0.1798411012,
-0.036095757,
-0.2892716527,
-0.022856541,
-0.3024624586,
0.3309326172,
-0.044929225,
0.1445601285,
-0.1725997031,
-0.2284809798,
0.1085915416,
-0.212063536,
0.5687651038,
-0.2886081338,
0.0759902745,
0.2566809654,
-0.1874072552,
-0.4711463153,
-0.2658159137,
-0.0675031841,
0.2460011393,
0.0289373696,
0.4087799489,
-0.1191494465,
-0.4835369885,
0.1473178864,
-0.0567419156,
-0.0862189904,
-0.2047347277,
-0.3479644656,
-0.1231659055,
-0.3823905885,
-0.0772969946,
-0.0697867051,
0.3470997512,
0.0993612781,
-0.2050056756,
0.0540420189,
0.0844750702,
0.0261744801,
-0.0463369042,
0.4726719856,
0.0330606848,
0.2310327441,
0.272346437,
0.3769772053,
0.1094537973,
0.3990900815,
0.2031018883,
-0.4686411619,
-0.1039527655,
0.030714158,
0.4628862143,
-0.0234799162,
-0.1841687411,
0.1056568325,
0.1430653632,
0.1544756889,
-0.169170633,
0.1093407869,
0.4040110111,
0.0435303673,
-0.305380553,
-0.5429389477,
-0.0136749037,
0.0826763213,
0.0919230133,
-0.0626311153,
-0.3203948736,
-0.2080415785,
0.2609344125,
0.4015893042,
0.6901732087,
-0.0723920837,
0.2966909707,
0.558742404,
0.0910604224,
0.0016885139,
0.2774417996,
-0.1042707711,
-0.5139324665,
0.1954909265,
0.0833371282,
-0.1815756261,
-0.009393001,
0.2339335978,
-0.1757295728,
0.205243364,
-0.2196787298,
0.0933760405,
-0.1733640134,
0.1602139473,
-0.1688348353,
-0.0502106026,
-0.121875897,
0.0497321114,
-0.0692730993,
0.0820501745,
-0.1036419719,
-0.2097411454,
0.0337740332,
-0.2309397161,
0.0748142004,
0.2753436863,
0.0081000589,
0.0343263149,
-0.2805513144,
-0.1951712072,
0.1213373244,
0.244719848,
0.3164096773,
0.0351310931,
-0.0893454179,
0.1010993719,
-0.3682292998,
-0.2763565481,
-0.2608577609,
-0.095642671,
0.1849868894,
-0.2108018547,
-0.0499801412,
0.1240622327,
-0.0613716692,
-0.3762868047,
-0.033586055,
-0.0350454859,
0.2754877508,
-0.4317028224,
-0.2545204461,
-0.1319123209,
-0.1161125153,
-0.1919200122,
0.1608150899,
0.2287706137,
-0.1201414615,
0.0152175957,
-0.1504315138,
-0.2745189667,
0.0584030375,
0.5248115063,
-0.1016797125,
0.1521700919,
0.6307948232,
0.0710353553,
-0.1138499007,
-0.2894230485,
-0.2996490002,
0.018357195,
-0.290943563,
0.1833910346,
0.2434941977,
-0.0689215958,
0.2441025376,
0.3077546656,
0.1714058518,
-0.098984167,
-0.050826747,
-0.5483647585,
-0.0284052566,
0.0474093743,
-0.1534880698,
0.3620047569,
0.1767349243,
-0.322078526,
-0.0817600042,
-0.1770448536,
-0.2993301749,
0.0011036731,
-0.1198002398,
0.2405625135,
-0.2157942653,
-0.2780372202,
0.2113569677,
0.0620968342,
0.1622254252,
-0.355820477,
-0.0777114034,
-0.2533760071,
-0.0681319758,
0.1221703291,
0.1441826373,
0.0095418356,
0.1336417347,
-0.1444760263,
-0.3320432901,
-0.1306843013,
0.0670904666,
0.1010916457,
-0.0039908439,
0.2840555906,
0.0924805701,
0.0219093859,
-0.1482170075,
-0.1065013334,
-0.1994542181,
-0.1743007004,
0.008559417,
0.2015720308,
-0.1814139783,
-0.2146721184,
0.0438420214,
0.003067499,
0.0793970078,
0.0792408958,
0.3128162026,
-0.46475631,
0.0515680611,
0.1602489352,
0.505522728,
0.3906168044,
-0.0799039155,
0.2140351236,
0.3118723333,
0.2381580919,
-0.1135244071,
-0.2740478814,
-0.1960723102,
-0.2340989113,
-0.0069743991,
-0.0698655546,
-0.0677563623,
0.0582613349,
0.2001814693,
-0.0457282811,
0.1784252375,
0.1480002105,
0.1270188987,
0.2794733942,
-0.3211748004,
0.0406143479,
0.2804031074,
0.1732442975,
0.144983083,
0.3777579665,
-0.1555615216,
0.1443802267,
-0.2752650082,
0.1954726279,
-0.1280414164,
-0.6779034734,
0.1011460871,
0.0413989089,
-0.0967222825,
-0.0895920694,
-0.1370326877,
0.3286107779,
0.0310609899,
0.0625444204,
-0.3678518534,
0.0839883313,
-0.1466528475,
-0.0880455524,
-0.3406412899,
0.00762631,
-0.0325514972,
0.1551524103,
0.1516607702,
-0.0349878781,
-0.0857885182,
0.0875554681,
-0.0400346965,
-0.0436643213,
0.0709552467,
0.3961871564,
-0.2319026291,
-0.4020036459,
0.1886531562,
-0.1219381839,
-0.0789999664,
0.0003446508,
0.071505405,
0.5281404853,
0.3324438035,
0.1592496783,
0.0043607727,
-0.0478786826,
-0.1837078929,
-0.0530144721,
0.0596841909,
0.1682321429,
0.3104562461,
0.4630708098,
0.1703825891,
-0.1467409432,
0.1241715401,
-0.1453260481,
0.3208074272,
-0.0304009542,
0.1715202928,
0.1750355512,
-0.240303576,
-0.2071766704,
0.2140193433,
-0.5623787642,
-0.2455458343,
0.3704133034,
0.0733890757,
0.0577127822,
-0.1164957434,
0.0590369813,
0.169428125,
0.5225660205,
0.1972421855,
0.3079324067,
-0.4567182064,
-0.0008987635,
-0.5817424059,
-0.0127126426,
0.1645321995,
0.2716321349,
0.1598728448,
0.1856325269,
-0.2448571622,
-0.0757827312,
0.2462039292,
0.2971829176,
0.1082026809,
0.233815819,
-0.1574125886,
-0.1347533613,
0.151497677,
-0.1274894178,
0.0899901018,
-0.1791542917,
0.0747644156,
-0.047214061,
0.0362292752,
-0.2751493454,
0.0237010866,
0.0012945235,
-0.1667187065,
0.5104472041,
-0.2578533292,
0.4464900196,
-0.0321036242,
0.1099808142,
-0.4661691487,
0.0489511788,
-0.1495847702,
0.1149455011,
0.0738409609,
0.2687285542,
-0.0252670087,
0.3849052489,
-0.4096691608,
0.2747508287,
-0.1608559936,
-0.3426372409,
-0.0414936393,
0.1178344116,
0.0767929479,
0.3193479478,
0.0821505487,
-0.0379421599,
0.0348788053,
0.0631608665,
-0.5235251188,
-0.2149444073,
0.6017241478,
-0.43991974,
-0.0485644899,
-0.0070457458,
0.2270690054,
0.1117746383,
-0.1416444331,
-0.4197170138,
0.1078704894,
0.2636762857,
0.1084359884,
-0.0447179303,
0.3393391669,
0.2886269987,
0.1458835602,
-0.0916724205,
0.1939835548,
0.1492436081,
-0.1321776211,
-0.130217284,
-0.3663118184
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | We were brainstorming around your use-case.
Let's keep the issue open for now, I think this is an interesting question to think about. | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 23 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
We were brainstorming around your use-case.
Let's keep the issue open for now, I think this is an interesting question to think about. | [
-0.2508122921,
-0.2407750189,
-0.053151913,
0.5038032532,
0.242677778,
0.0379797071,
0.4234100878,
0.230223,
0.0534567088,
0.0122714564,
-0.0213178508,
0.3855960071,
-0.2364186645,
0.408721447,
-0.0733913407,
0.151946947,
0.0036895536,
0.1174417138,
0.2415751517,
0.1663118005,
-0.0428828485,
0.2773866653,
-0.0571361855,
0.1090653166,
-0.1840190589,
0.0136173368,
0.0146281347,
0.3506193161,
-0.0750774443,
-0.508487165,
0.0108170286,
-0.0190766435,
0.4783014059,
0.3833350241,
-0.0001139213,
-0.0286530107,
0.3157632053,
0.0450193211,
-0.4229222834,
-0.3848213553,
-0.5591979623,
0.1110934243,
0.152659148,
-0.037460804,
-0.3507243097,
-0.0653409362,
-0.3116800785,
-0.2656853199,
0.4028449953,
0.6623778343,
0.1782038957,
0.1914704144,
-0.0731052235,
-0.3078445196,
0.2821200788,
0.0203727316,
0.001827538,
0.222032994,
-0.2715067565,
0.1779976189,
0.2951637208,
0.27099967,
-0.4019233882,
0.1139449477,
0.5365957618,
0.0304872356,
0.3513380885,
0.0784729347,
0.1274640411,
0.170570448,
0.5801001191,
-0.1361254007,
-0.4543988705,
-0.184920162,
-0.2141833156,
-0.2824923396,
0.1915269047,
0.0894623101,
0.0374887846,
0.0282421689,
-0.0464705117,
-0.0466802269,
-0.0988202244,
0.2466036081,
0.0339194536,
0.4405600131,
-0.278003931,
0.0633560568,
0.2615092993,
0.0703381896,
0.3421873152,
-0.1132725403,
0.0181237571,
0.0466641746,
-0.2519853115,
0.1674022675,
-0.0153581053,
0.2122866809,
-0.0699798092,
0.1938643456,
0.3034310937,
-0.0739921033,
0.3996635973,
0.2401906699,
0.3883316517,
-0.1680291742,
0.0913823843,
0.0003883317,
-0.0994114131,
0.4869208634,
0.0785984099,
-0.1934861839,
-0.3133123219,
-0.5367276073,
0.1240957007,
0.2688180804,
0.3971945643,
-0.3510358632,
-0.2658776045,
-0.0860201716,
-0.1192130968,
-0.1965766251,
0.2694830298,
0.4972227514,
-0.3471298814,
-0.1139851063,
-0.1179712266,
0.2110883296,
-0.2143540382,
0.0854031444,
-0.1983183771,
0.2434529662,
-0.3190574646,
0.0227506161,
0.1486800909,
-0.5799322724,
0.5168523788,
-0.0738640726,
0.0051260088,
-0.3440083265,
0.1492897719,
-0.2164644897,
0.1777613908,
0.1814398468,
0.1935319304,
0.2570757866,
-0.053781189,
-0.0760165229,
-0.1820333004,
0.0855756328,
-0.1849055886,
-0.4797710776,
0.0412797332,
0.2240626812,
-0.2657830119,
-0.1602723002,
-0.059421394,
-0.1859487593,
0.278168112,
-0.0984314531,
-0.388699472,
0.0453322865,
-0.1181020439,
-0.2207809091,
0.4690742195,
0.3192172647,
-0.3537423313,
0.108596459,
-0.471652627,
0.1138470098,
0.0835108086,
0.2105171233,
-0.3659236729,
0.4489597976,
-0.3048422337,
0.1328934878,
0.5610038638,
-0.2565932572,
0.0060540549,
0.0853614658,
-0.0421510339,
-0.1606777906,
0.1342203468,
-0.0630413368,
-0.1340710372,
-0.1085646451,
0.0167826004,
0.3441393971,
0.0382877886,
0.0388527587,
-0.1566991508,
-0.0247691497,
0.1257414222,
0.2443984449,
0.1100834981,
-0.0220541693,
-0.0373708569,
-0.1964022815,
-0.0556684695,
-0.1184007078,
-0.0434883498,
0.4679802656,
0.273306489,
0.3011099696,
-0.0028270967,
0.1516499519,
-0.2742569745,
0.1333040446,
0.0448957309,
-0.2772717178,
-0.0668593645,
0.0106650814,
-0.2895230353,
0.0034125,
-0.4520743191,
0.0989075229,
0.105307959,
0.3138039112,
0.232626766,
-0.0971176401,
-0.11902266,
-0.3059861958,
0.3305369318,
-0.0151230786,
-0.3088083565,
0.1135312244,
-0.4051385522,
-0.0548963249,
0.0869038552,
0.0439935513,
0.1716849804,
0.1176357418,
0.0150819719,
0.1787699163,
0.1243598983,
0.2274497151,
-0.214469105,
0.1562111378,
-0.1199651733,
0.030692704,
0.179736495,
-0.1334500909,
0.1356185228,
0.0835731328,
-0.0444401987,
0.4771923423,
-0.0267101657,
0.1894393861,
0.1397071481,
0.0150927156,
0.2696094513,
-0.1694878042,
-0.0204149708,
-0.1353711635,
0.0476757213,
-0.1200013906,
0.1146691442,
0.0762752369,
-0.0729279369,
-0.1295491308,
0.3834595084,
0.0959832221,
-0.0108043421,
-0.2696368098,
-0.2296588868,
-0.1449699402,
0.0653624907,
0.4955296814,
0.3665237427,
0.2210590243,
0.0965467915,
-0.0355796516,
-0.0539808124,
-0.1855219305,
0.2379354537,
0.423758775,
0.4380970001,
0.3556295931,
-0.378128022,
-0.0747241378,
-0.2402070761,
-0.1607339978,
0.1642104089,
0.28225106,
-0.4002408981,
0.189003706,
-0.0598932132,
-0.1696400344,
-0.2982713282,
-0.3548650742,
-0.1032038555,
-0.2554684579,
-0.1192266494,
0.2769101858,
-0.2668561637,
-0.0272915661,
0.0960365906,
0.0128377974,
-0.0740058869,
-0.0552990325,
-0.3418390155,
-0.2471808493,
-0.1704051346,
0.0550118834,
0.2183097601,
0.0958849043,
0.2658968568,
-0.1865485013,
0.108301267,
-0.4633398354,
-0.0825943574,
-0.0176456831,
-0.0080974074,
0.3024949431,
0.2742296755,
0.080207631,
0.2997993529,
-0.2465779185,
0.4653754234,
-0.012098249,
0.0204352662,
0.2364754975,
-0.0213384535,
-0.1121436357,
-0.0333962142,
-0.3809584379,
0.0699733645,
-0.4534810185,
-0.3755662143,
0.0112921372,
0.1440525353,
0.2753454447,
0.3328950107,
0.2299250364,
-0.2099562287,
0.3361963928,
-0.2096320242,
-0.203705281,
0.1267782003,
-0.2523743212,
-0.2639801502,
0.3304710388,
-0.0450134575,
0.8056793213,
-0.1035314575,
-0.2581115961,
-0.0281819738,
0.0541549176,
-0.3135479093,
-0.1422805637,
-0.2467390746,
0.3080141544,
0.208803907,
-0.085646823,
-0.0078175962,
-0.3258492649,
0.0911113024,
-0.2148192823,
0.2122523636,
-0.2017769814,
0.8904489279,
-0.0051942468,
0.4429087341,
0.1470211297,
-0.2118462622,
0.4529936016,
-0.1063800827,
0.1824466437,
-0.104823783,
-0.2602480948,
-0.1180831641,
0.1664526463,
-0.2900655866,
0.1482968926,
-0.2593996823,
-0.0632350594,
-0.2945415974,
0.0631958544,
-0.3335373998,
-0.2166403979,
0.0108935554,
-0.264600426,
0.1334774345,
-0.1084318832,
0.0371412784,
-0.0522481799,
0.1782279313,
0.1964561641,
0.2740252018,
0.1798411012,
-0.036095757,
-0.2892716527,
-0.022856541,
-0.3024624586,
0.3309326172,
-0.044929225,
0.1445601285,
-0.1725997031,
-0.2284809798,
0.1085915416,
-0.212063536,
0.5687651038,
-0.2886081338,
0.0759902745,
0.2566809654,
-0.1874072552,
-0.4711463153,
-0.2658159137,
-0.0675031841,
0.2460011393,
0.0289373696,
0.4087799489,
-0.1191494465,
-0.4835369885,
0.1473178864,
-0.0567419156,
-0.0862189904,
-0.2047347277,
-0.3479644656,
-0.1231659055,
-0.3823905885,
-0.0772969946,
-0.0697867051,
0.3470997512,
0.0993612781,
-0.2050056756,
0.0540420189,
0.0844750702,
0.0261744801,
-0.0463369042,
0.4726719856,
0.0330606848,
0.2310327441,
0.272346437,
0.3769772053,
0.1094537973,
0.3990900815,
0.2031018883,
-0.4686411619,
-0.1039527655,
0.030714158,
0.4628862143,
-0.0234799162,
-0.1841687411,
0.1056568325,
0.1430653632,
0.1544756889,
-0.169170633,
0.1093407869,
0.4040110111,
0.0435303673,
-0.305380553,
-0.5429389477,
-0.0136749037,
0.0826763213,
0.0919230133,
-0.0626311153,
-0.3203948736,
-0.2080415785,
0.2609344125,
0.4015893042,
0.6901732087,
-0.0723920837,
0.2966909707,
0.558742404,
0.0910604224,
0.0016885139,
0.2774417996,
-0.1042707711,
-0.5139324665,
0.1954909265,
0.0833371282,
-0.1815756261,
-0.009393001,
0.2339335978,
-0.1757295728,
0.205243364,
-0.2196787298,
0.0933760405,
-0.1733640134,
0.1602139473,
-0.1688348353,
-0.0502106026,
-0.121875897,
0.0497321114,
-0.0692730993,
0.0820501745,
-0.1036419719,
-0.2097411454,
0.0337740332,
-0.2309397161,
0.0748142004,
0.2753436863,
0.0081000589,
0.0343263149,
-0.2805513144,
-0.1951712072,
0.1213373244,
0.244719848,
0.3164096773,
0.0351310931,
-0.0893454179,
0.1010993719,
-0.3682292998,
-0.2763565481,
-0.2608577609,
-0.095642671,
0.1849868894,
-0.2108018547,
-0.0499801412,
0.1240622327,
-0.0613716692,
-0.3762868047,
-0.033586055,
-0.0350454859,
0.2754877508,
-0.4317028224,
-0.2545204461,
-0.1319123209,
-0.1161125153,
-0.1919200122,
0.1608150899,
0.2287706137,
-0.1201414615,
0.0152175957,
-0.1504315138,
-0.2745189667,
0.0584030375,
0.5248115063,
-0.1016797125,
0.1521700919,
0.6307948232,
0.0710353553,
-0.1138499007,
-0.2894230485,
-0.2996490002,
0.018357195,
-0.290943563,
0.1833910346,
0.2434941977,
-0.0689215958,
0.2441025376,
0.3077546656,
0.1714058518,
-0.098984167,
-0.050826747,
-0.5483647585,
-0.0284052566,
0.0474093743,
-0.1534880698,
0.3620047569,
0.1767349243,
-0.322078526,
-0.0817600042,
-0.1770448536,
-0.2993301749,
0.0011036731,
-0.1198002398,
0.2405625135,
-0.2157942653,
-0.2780372202,
0.2113569677,
0.0620968342,
0.1622254252,
-0.355820477,
-0.0777114034,
-0.2533760071,
-0.0681319758,
0.1221703291,
0.1441826373,
0.0095418356,
0.1336417347,
-0.1444760263,
-0.3320432901,
-0.1306843013,
0.0670904666,
0.1010916457,
-0.0039908439,
0.2840555906,
0.0924805701,
0.0219093859,
-0.1482170075,
-0.1065013334,
-0.1994542181,
-0.1743007004,
0.008559417,
0.2015720308,
-0.1814139783,
-0.2146721184,
0.0438420214,
0.003067499,
0.0793970078,
0.0792408958,
0.3128162026,
-0.46475631,
0.0515680611,
0.1602489352,
0.505522728,
0.3906168044,
-0.0799039155,
0.2140351236,
0.3118723333,
0.2381580919,
-0.1135244071,
-0.2740478814,
-0.1960723102,
-0.2340989113,
-0.0069743991,
-0.0698655546,
-0.0677563623,
0.0582613349,
0.2001814693,
-0.0457282811,
0.1784252375,
0.1480002105,
0.1270188987,
0.2794733942,
-0.3211748004,
0.0406143479,
0.2804031074,
0.1732442975,
0.144983083,
0.3777579665,
-0.1555615216,
0.1443802267,
-0.2752650082,
0.1954726279,
-0.1280414164,
-0.6779034734,
0.1011460871,
0.0413989089,
-0.0967222825,
-0.0895920694,
-0.1370326877,
0.3286107779,
0.0310609899,
0.0625444204,
-0.3678518534,
0.0839883313,
-0.1466528475,
-0.0880455524,
-0.3406412899,
0.00762631,
-0.0325514972,
0.1551524103,
0.1516607702,
-0.0349878781,
-0.0857885182,
0.0875554681,
-0.0400346965,
-0.0436643213,
0.0709552467,
0.3961871564,
-0.2319026291,
-0.4020036459,
0.1886531562,
-0.1219381839,
-0.0789999664,
0.0003446508,
0.071505405,
0.5281404853,
0.3324438035,
0.1592496783,
0.0043607727,
-0.0478786826,
-0.1837078929,
-0.0530144721,
0.0596841909,
0.1682321429,
0.3104562461,
0.4630708098,
0.1703825891,
-0.1467409432,
0.1241715401,
-0.1453260481,
0.3208074272,
-0.0304009542,
0.1715202928,
0.1750355512,
-0.240303576,
-0.2071766704,
0.2140193433,
-0.5623787642,
-0.2455458343,
0.3704133034,
0.0733890757,
0.0577127822,
-0.1164957434,
0.0590369813,
0.169428125,
0.5225660205,
0.1972421855,
0.3079324067,
-0.4567182064,
-0.0008987635,
-0.5817424059,
-0.0127126426,
0.1645321995,
0.2716321349,
0.1598728448,
0.1856325269,
-0.2448571622,
-0.0757827312,
0.2462039292,
0.2971829176,
0.1082026809,
0.233815819,
-0.1574125886,
-0.1347533613,
0.151497677,
-0.1274894178,
0.0899901018,
-0.1791542917,
0.0747644156,
-0.047214061,
0.0362292752,
-0.2751493454,
0.0237010866,
0.0012945235,
-0.1667187065,
0.5104472041,
-0.2578533292,
0.4464900196,
-0.0321036242,
0.1099808142,
-0.4661691487,
0.0489511788,
-0.1495847702,
0.1149455011,
0.0738409609,
0.2687285542,
-0.0252670087,
0.3849052489,
-0.4096691608,
0.2747508287,
-0.1608559936,
-0.3426372409,
-0.0414936393,
0.1178344116,
0.0767929479,
0.3193479478,
0.0821505487,
-0.0379421599,
0.0348788053,
0.0631608665,
-0.5235251188,
-0.2149444073,
0.6017241478,
-0.43991974,
-0.0485644899,
-0.0070457458,
0.2270690054,
0.1117746383,
-0.1416444331,
-0.4197170138,
0.1078704894,
0.2636762857,
0.1084359884,
-0.0447179303,
0.3393391669,
0.2886269987,
0.1458835602,
-0.0916724205,
0.1939835548,
0.1492436081,
-0.1321776211,
-0.130217284,
-0.3663118184
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | > We were brainstorming around your use-case.
>
> Let's keep the issue open for now, I think this is an interesting question to think about.
Sure thomwolf, Thanks for your concern | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 32 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
> We were brainstorming around your use-case.
>
> Let's keep the issue open for now, I think this is an interesting question to think about.
Sure thomwolf, Thanks for your concern | [
-0.2508122921,
-0.2407750189,
-0.053151913,
0.5038032532,
0.242677778,
0.0379797071,
0.4234100878,
0.230223,
0.0534567088,
0.0122714564,
-0.0213178508,
0.3855960071,
-0.2364186645,
0.408721447,
-0.0733913407,
0.151946947,
0.0036895536,
0.1174417138,
0.2415751517,
0.1663118005,
-0.0428828485,
0.2773866653,
-0.0571361855,
0.1090653166,
-0.1840190589,
0.0136173368,
0.0146281347,
0.3506193161,
-0.0750774443,
-0.508487165,
0.0108170286,
-0.0190766435,
0.4783014059,
0.3833350241,
-0.0001139213,
-0.0286530107,
0.3157632053,
0.0450193211,
-0.4229222834,
-0.3848213553,
-0.5591979623,
0.1110934243,
0.152659148,
-0.037460804,
-0.3507243097,
-0.0653409362,
-0.3116800785,
-0.2656853199,
0.4028449953,
0.6623778343,
0.1782038957,
0.1914704144,
-0.0731052235,
-0.3078445196,
0.2821200788,
0.0203727316,
0.001827538,
0.222032994,
-0.2715067565,
0.1779976189,
0.2951637208,
0.27099967,
-0.4019233882,
0.1139449477,
0.5365957618,
0.0304872356,
0.3513380885,
0.0784729347,
0.1274640411,
0.170570448,
0.5801001191,
-0.1361254007,
-0.4543988705,
-0.184920162,
-0.2141833156,
-0.2824923396,
0.1915269047,
0.0894623101,
0.0374887846,
0.0282421689,
-0.0464705117,
-0.0466802269,
-0.0988202244,
0.2466036081,
0.0339194536,
0.4405600131,
-0.278003931,
0.0633560568,
0.2615092993,
0.0703381896,
0.3421873152,
-0.1132725403,
0.0181237571,
0.0466641746,
-0.2519853115,
0.1674022675,
-0.0153581053,
0.2122866809,
-0.0699798092,
0.1938643456,
0.3034310937,
-0.0739921033,
0.3996635973,
0.2401906699,
0.3883316517,
-0.1680291742,
0.0913823843,
0.0003883317,
-0.0994114131,
0.4869208634,
0.0785984099,
-0.1934861839,
-0.3133123219,
-0.5367276073,
0.1240957007,
0.2688180804,
0.3971945643,
-0.3510358632,
-0.2658776045,
-0.0860201716,
-0.1192130968,
-0.1965766251,
0.2694830298,
0.4972227514,
-0.3471298814,
-0.1139851063,
-0.1179712266,
0.2110883296,
-0.2143540382,
0.0854031444,
-0.1983183771,
0.2434529662,
-0.3190574646,
0.0227506161,
0.1486800909,
-0.5799322724,
0.5168523788,
-0.0738640726,
0.0051260088,
-0.3440083265,
0.1492897719,
-0.2164644897,
0.1777613908,
0.1814398468,
0.1935319304,
0.2570757866,
-0.053781189,
-0.0760165229,
-0.1820333004,
0.0855756328,
-0.1849055886,
-0.4797710776,
0.0412797332,
0.2240626812,
-0.2657830119,
-0.1602723002,
-0.059421394,
-0.1859487593,
0.278168112,
-0.0984314531,
-0.388699472,
0.0453322865,
-0.1181020439,
-0.2207809091,
0.4690742195,
0.3192172647,
-0.3537423313,
0.108596459,
-0.471652627,
0.1138470098,
0.0835108086,
0.2105171233,
-0.3659236729,
0.4489597976,
-0.3048422337,
0.1328934878,
0.5610038638,
-0.2565932572,
0.0060540549,
0.0853614658,
-0.0421510339,
-0.1606777906,
0.1342203468,
-0.0630413368,
-0.1340710372,
-0.1085646451,
0.0167826004,
0.3441393971,
0.0382877886,
0.0388527587,
-0.1566991508,
-0.0247691497,
0.1257414222,
0.2443984449,
0.1100834981,
-0.0220541693,
-0.0373708569,
-0.1964022815,
-0.0556684695,
-0.1184007078,
-0.0434883498,
0.4679802656,
0.273306489,
0.3011099696,
-0.0028270967,
0.1516499519,
-0.2742569745,
0.1333040446,
0.0448957309,
-0.2772717178,
-0.0668593645,
0.0106650814,
-0.2895230353,
0.0034125,
-0.4520743191,
0.0989075229,
0.105307959,
0.3138039112,
0.232626766,
-0.0971176401,
-0.11902266,
-0.3059861958,
0.3305369318,
-0.0151230786,
-0.3088083565,
0.1135312244,
-0.4051385522,
-0.0548963249,
0.0869038552,
0.0439935513,
0.1716849804,
0.1176357418,
0.0150819719,
0.1787699163,
0.1243598983,
0.2274497151,
-0.214469105,
0.1562111378,
-0.1199651733,
0.030692704,
0.179736495,
-0.1334500909,
0.1356185228,
0.0835731328,
-0.0444401987,
0.4771923423,
-0.0267101657,
0.1894393861,
0.1397071481,
0.0150927156,
0.2696094513,
-0.1694878042,
-0.0204149708,
-0.1353711635,
0.0476757213,
-0.1200013906,
0.1146691442,
0.0762752369,
-0.0729279369,
-0.1295491308,
0.3834595084,
0.0959832221,
-0.0108043421,
-0.2696368098,
-0.2296588868,
-0.1449699402,
0.0653624907,
0.4955296814,
0.3665237427,
0.2210590243,
0.0965467915,
-0.0355796516,
-0.0539808124,
-0.1855219305,
0.2379354537,
0.423758775,
0.4380970001,
0.3556295931,
-0.378128022,
-0.0747241378,
-0.2402070761,
-0.1607339978,
0.1642104089,
0.28225106,
-0.4002408981,
0.189003706,
-0.0598932132,
-0.1696400344,
-0.2982713282,
-0.3548650742,
-0.1032038555,
-0.2554684579,
-0.1192266494,
0.2769101858,
-0.2668561637,
-0.0272915661,
0.0960365906,
0.0128377974,
-0.0740058869,
-0.0552990325,
-0.3418390155,
-0.2471808493,
-0.1704051346,
0.0550118834,
0.2183097601,
0.0958849043,
0.2658968568,
-0.1865485013,
0.108301267,
-0.4633398354,
-0.0825943574,
-0.0176456831,
-0.0080974074,
0.3024949431,
0.2742296755,
0.080207631,
0.2997993529,
-0.2465779185,
0.4653754234,
-0.012098249,
0.0204352662,
0.2364754975,
-0.0213384535,
-0.1121436357,
-0.0333962142,
-0.3809584379,
0.0699733645,
-0.4534810185,
-0.3755662143,
0.0112921372,
0.1440525353,
0.2753454447,
0.3328950107,
0.2299250364,
-0.2099562287,
0.3361963928,
-0.2096320242,
-0.203705281,
0.1267782003,
-0.2523743212,
-0.2639801502,
0.3304710388,
-0.0450134575,
0.8056793213,
-0.1035314575,
-0.2581115961,
-0.0281819738,
0.0541549176,
-0.3135479093,
-0.1422805637,
-0.2467390746,
0.3080141544,
0.208803907,
-0.085646823,
-0.0078175962,
-0.3258492649,
0.0911113024,
-0.2148192823,
0.2122523636,
-0.2017769814,
0.8904489279,
-0.0051942468,
0.4429087341,
0.1470211297,
-0.2118462622,
0.4529936016,
-0.1063800827,
0.1824466437,
-0.104823783,
-0.2602480948,
-0.1180831641,
0.1664526463,
-0.2900655866,
0.1482968926,
-0.2593996823,
-0.0632350594,
-0.2945415974,
0.0631958544,
-0.3335373998,
-0.2166403979,
0.0108935554,
-0.264600426,
0.1334774345,
-0.1084318832,
0.0371412784,
-0.0522481799,
0.1782279313,
0.1964561641,
0.2740252018,
0.1798411012,
-0.036095757,
-0.2892716527,
-0.022856541,
-0.3024624586,
0.3309326172,
-0.044929225,
0.1445601285,
-0.1725997031,
-0.2284809798,
0.1085915416,
-0.212063536,
0.5687651038,
-0.2886081338,
0.0759902745,
0.2566809654,
-0.1874072552,
-0.4711463153,
-0.2658159137,
-0.0675031841,
0.2460011393,
0.0289373696,
0.4087799489,
-0.1191494465,
-0.4835369885,
0.1473178864,
-0.0567419156,
-0.0862189904,
-0.2047347277,
-0.3479644656,
-0.1231659055,
-0.3823905885,
-0.0772969946,
-0.0697867051,
0.3470997512,
0.0993612781,
-0.2050056756,
0.0540420189,
0.0844750702,
0.0261744801,
-0.0463369042,
0.4726719856,
0.0330606848,
0.2310327441,
0.272346437,
0.3769772053,
0.1094537973,
0.3990900815,
0.2031018883,
-0.4686411619,
-0.1039527655,
0.030714158,
0.4628862143,
-0.0234799162,
-0.1841687411,
0.1056568325,
0.1430653632,
0.1544756889,
-0.169170633,
0.1093407869,
0.4040110111,
0.0435303673,
-0.305380553,
-0.5429389477,
-0.0136749037,
0.0826763213,
0.0919230133,
-0.0626311153,
-0.3203948736,
-0.2080415785,
0.2609344125,
0.4015893042,
0.6901732087,
-0.0723920837,
0.2966909707,
0.558742404,
0.0910604224,
0.0016885139,
0.2774417996,
-0.1042707711,
-0.5139324665,
0.1954909265,
0.0833371282,
-0.1815756261,
-0.009393001,
0.2339335978,
-0.1757295728,
0.205243364,
-0.2196787298,
0.0933760405,
-0.1733640134,
0.1602139473,
-0.1688348353,
-0.0502106026,
-0.121875897,
0.0497321114,
-0.0692730993,
0.0820501745,
-0.1036419719,
-0.2097411454,
0.0337740332,
-0.2309397161,
0.0748142004,
0.2753436863,
0.0081000589,
0.0343263149,
-0.2805513144,
-0.1951712072,
0.1213373244,
0.244719848,
0.3164096773,
0.0351310931,
-0.0893454179,
0.1010993719,
-0.3682292998,
-0.2763565481,
-0.2608577609,
-0.095642671,
0.1849868894,
-0.2108018547,
-0.0499801412,
0.1240622327,
-0.0613716692,
-0.3762868047,
-0.033586055,
-0.0350454859,
0.2754877508,
-0.4317028224,
-0.2545204461,
-0.1319123209,
-0.1161125153,
-0.1919200122,
0.1608150899,
0.2287706137,
-0.1201414615,
0.0152175957,
-0.1504315138,
-0.2745189667,
0.0584030375,
0.5248115063,
-0.1016797125,
0.1521700919,
0.6307948232,
0.0710353553,
-0.1138499007,
-0.2894230485,
-0.2996490002,
0.018357195,
-0.290943563,
0.1833910346,
0.2434941977,
-0.0689215958,
0.2441025376,
0.3077546656,
0.1714058518,
-0.098984167,
-0.050826747,
-0.5483647585,
-0.0284052566,
0.0474093743,
-0.1534880698,
0.3620047569,
0.1767349243,
-0.322078526,
-0.0817600042,
-0.1770448536,
-0.2993301749,
0.0011036731,
-0.1198002398,
0.2405625135,
-0.2157942653,
-0.2780372202,
0.2113569677,
0.0620968342,
0.1622254252,
-0.355820477,
-0.0777114034,
-0.2533760071,
-0.0681319758,
0.1221703291,
0.1441826373,
0.0095418356,
0.1336417347,
-0.1444760263,
-0.3320432901,
-0.1306843013,
0.0670904666,
0.1010916457,
-0.0039908439,
0.2840555906,
0.0924805701,
0.0219093859,
-0.1482170075,
-0.1065013334,
-0.1994542181,
-0.1743007004,
0.008559417,
0.2015720308,
-0.1814139783,
-0.2146721184,
0.0438420214,
0.003067499,
0.0793970078,
0.0792408958,
0.3128162026,
-0.46475631,
0.0515680611,
0.1602489352,
0.505522728,
0.3906168044,
-0.0799039155,
0.2140351236,
0.3118723333,
0.2381580919,
-0.1135244071,
-0.2740478814,
-0.1960723102,
-0.2340989113,
-0.0069743991,
-0.0698655546,
-0.0677563623,
0.0582613349,
0.2001814693,
-0.0457282811,
0.1784252375,
0.1480002105,
0.1270188987,
0.2794733942,
-0.3211748004,
0.0406143479,
0.2804031074,
0.1732442975,
0.144983083,
0.3777579665,
-0.1555615216,
0.1443802267,
-0.2752650082,
0.1954726279,
-0.1280414164,
-0.6779034734,
0.1011460871,
0.0413989089,
-0.0967222825,
-0.0895920694,
-0.1370326877,
0.3286107779,
0.0310609899,
0.0625444204,
-0.3678518534,
0.0839883313,
-0.1466528475,
-0.0880455524,
-0.3406412899,
0.00762631,
-0.0325514972,
0.1551524103,
0.1516607702,
-0.0349878781,
-0.0857885182,
0.0875554681,
-0.0400346965,
-0.0436643213,
0.0709552467,
0.3961871564,
-0.2319026291,
-0.4020036459,
0.1886531562,
-0.1219381839,
-0.0789999664,
0.0003446508,
0.071505405,
0.5281404853,
0.3324438035,
0.1592496783,
0.0043607727,
-0.0478786826,
-0.1837078929,
-0.0530144721,
0.0596841909,
0.1682321429,
0.3104562461,
0.4630708098,
0.1703825891,
-0.1467409432,
0.1241715401,
-0.1453260481,
0.3208074272,
-0.0304009542,
0.1715202928,
0.1750355512,
-0.240303576,
-0.2071766704,
0.2140193433,
-0.5623787642,
-0.2455458343,
0.3704133034,
0.0733890757,
0.0577127822,
-0.1164957434,
0.0590369813,
0.169428125,
0.5225660205,
0.1972421855,
0.3079324067,
-0.4567182064,
-0.0008987635,
-0.5817424059,
-0.0127126426,
0.1645321995,
0.2716321349,
0.1598728448,
0.1856325269,
-0.2448571622,
-0.0757827312,
0.2462039292,
0.2971829176,
0.1082026809,
0.233815819,
-0.1574125886,
-0.1347533613,
0.151497677,
-0.1274894178,
0.0899901018,
-0.1791542917,
0.0747644156,
-0.047214061,
0.0362292752,
-0.2751493454,
0.0237010866,
0.0012945235,
-0.1667187065,
0.5104472041,
-0.2578533292,
0.4464900196,
-0.0321036242,
0.1099808142,
-0.4661691487,
0.0489511788,
-0.1495847702,
0.1149455011,
0.0738409609,
0.2687285542,
-0.0252670087,
0.3849052489,
-0.4096691608,
0.2747508287,
-0.1608559936,
-0.3426372409,
-0.0414936393,
0.1178344116,
0.0767929479,
0.3193479478,
0.0821505487,
-0.0379421599,
0.0348788053,
0.0631608665,
-0.5235251188,
-0.2149444073,
0.6017241478,
-0.43991974,
-0.0485644899,
-0.0070457458,
0.2270690054,
0.1117746383,
-0.1416444331,
-0.4197170138,
0.1078704894,
0.2636762857,
0.1084359884,
-0.0447179303,
0.3393391669,
0.2886269987,
0.1458835602,
-0.0916724205,
0.1939835548,
0.1492436081,
-0.1321776211,
-0.130217284,
-0.3663118184
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | I agree it would be cool to have that feature. Also that's good to know that pandas supports this.
For the moment I'd suggest to first download the files locally as thom suggested and then load the dataset by providing paths to the local files | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 45 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
I agree it would be cool to have that feature. Also that's good to know that pandas supports this.
For the moment I'd suggest to first download the files locally as thom suggested and then load the dataset by providing paths to the local files | [
-0.2508122921,
-0.2407750189,
-0.053151913,
0.5038032532,
0.242677778,
0.0379797071,
0.4234100878,
0.230223,
0.0534567088,
0.0122714564,
-0.0213178508,
0.3855960071,
-0.2364186645,
0.408721447,
-0.0733913407,
0.151946947,
0.0036895536,
0.1174417138,
0.2415751517,
0.1663118005,
-0.0428828485,
0.2773866653,
-0.0571361855,
0.1090653166,
-0.1840190589,
0.0136173368,
0.0146281347,
0.3506193161,
-0.0750774443,
-0.508487165,
0.0108170286,
-0.0190766435,
0.4783014059,
0.3833350241,
-0.0001139213,
-0.0286530107,
0.3157632053,
0.0450193211,
-0.4229222834,
-0.3848213553,
-0.5591979623,
0.1110934243,
0.152659148,
-0.037460804,
-0.3507243097,
-0.0653409362,
-0.3116800785,
-0.2656853199,
0.4028449953,
0.6623778343,
0.1782038957,
0.1914704144,
-0.0731052235,
-0.3078445196,
0.2821200788,
0.0203727316,
0.001827538,
0.222032994,
-0.2715067565,
0.1779976189,
0.2951637208,
0.27099967,
-0.4019233882,
0.1139449477,
0.5365957618,
0.0304872356,
0.3513380885,
0.0784729347,
0.1274640411,
0.170570448,
0.5801001191,
-0.1361254007,
-0.4543988705,
-0.184920162,
-0.2141833156,
-0.2824923396,
0.1915269047,
0.0894623101,
0.0374887846,
0.0282421689,
-0.0464705117,
-0.0466802269,
-0.0988202244,
0.2466036081,
0.0339194536,
0.4405600131,
-0.278003931,
0.0633560568,
0.2615092993,
0.0703381896,
0.3421873152,
-0.1132725403,
0.0181237571,
0.0466641746,
-0.2519853115,
0.1674022675,
-0.0153581053,
0.2122866809,
-0.0699798092,
0.1938643456,
0.3034310937,
-0.0739921033,
0.3996635973,
0.2401906699,
0.3883316517,
-0.1680291742,
0.0913823843,
0.0003883317,
-0.0994114131,
0.4869208634,
0.0785984099,
-0.1934861839,
-0.3133123219,
-0.5367276073,
0.1240957007,
0.2688180804,
0.3971945643,
-0.3510358632,
-0.2658776045,
-0.0860201716,
-0.1192130968,
-0.1965766251,
0.2694830298,
0.4972227514,
-0.3471298814,
-0.1139851063,
-0.1179712266,
0.2110883296,
-0.2143540382,
0.0854031444,
-0.1983183771,
0.2434529662,
-0.3190574646,
0.0227506161,
0.1486800909,
-0.5799322724,
0.5168523788,
-0.0738640726,
0.0051260088,
-0.3440083265,
0.1492897719,
-0.2164644897,
0.1777613908,
0.1814398468,
0.1935319304,
0.2570757866,
-0.053781189,
-0.0760165229,
-0.1820333004,
0.0855756328,
-0.1849055886,
-0.4797710776,
0.0412797332,
0.2240626812,
-0.2657830119,
-0.1602723002,
-0.059421394,
-0.1859487593,
0.278168112,
-0.0984314531,
-0.388699472,
0.0453322865,
-0.1181020439,
-0.2207809091,
0.4690742195,
0.3192172647,
-0.3537423313,
0.108596459,
-0.471652627,
0.1138470098,
0.0835108086,
0.2105171233,
-0.3659236729,
0.4489597976,
-0.3048422337,
0.1328934878,
0.5610038638,
-0.2565932572,
0.0060540549,
0.0853614658,
-0.0421510339,
-0.1606777906,
0.1342203468,
-0.0630413368,
-0.1340710372,
-0.1085646451,
0.0167826004,
0.3441393971,
0.0382877886,
0.0388527587,
-0.1566991508,
-0.0247691497,
0.1257414222,
0.2443984449,
0.1100834981,
-0.0220541693,
-0.0373708569,
-0.1964022815,
-0.0556684695,
-0.1184007078,
-0.0434883498,
0.4679802656,
0.273306489,
0.3011099696,
-0.0028270967,
0.1516499519,
-0.2742569745,
0.1333040446,
0.0448957309,
-0.2772717178,
-0.0668593645,
0.0106650814,
-0.2895230353,
0.0034125,
-0.4520743191,
0.0989075229,
0.105307959,
0.3138039112,
0.232626766,
-0.0971176401,
-0.11902266,
-0.3059861958,
0.3305369318,
-0.0151230786,
-0.3088083565,
0.1135312244,
-0.4051385522,
-0.0548963249,
0.0869038552,
0.0439935513,
0.1716849804,
0.1176357418,
0.0150819719,
0.1787699163,
0.1243598983,
0.2274497151,
-0.214469105,
0.1562111378,
-0.1199651733,
0.030692704,
0.179736495,
-0.1334500909,
0.1356185228,
0.0835731328,
-0.0444401987,
0.4771923423,
-0.0267101657,
0.1894393861,
0.1397071481,
0.0150927156,
0.2696094513,
-0.1694878042,
-0.0204149708,
-0.1353711635,
0.0476757213,
-0.1200013906,
0.1146691442,
0.0762752369,
-0.0729279369,
-0.1295491308,
0.3834595084,
0.0959832221,
-0.0108043421,
-0.2696368098,
-0.2296588868,
-0.1449699402,
0.0653624907,
0.4955296814,
0.3665237427,
0.2210590243,
0.0965467915,
-0.0355796516,
-0.0539808124,
-0.1855219305,
0.2379354537,
0.423758775,
0.4380970001,
0.3556295931,
-0.378128022,
-0.0747241378,
-0.2402070761,
-0.1607339978,
0.1642104089,
0.28225106,
-0.4002408981,
0.189003706,
-0.0598932132,
-0.1696400344,
-0.2982713282,
-0.3548650742,
-0.1032038555,
-0.2554684579,
-0.1192266494,
0.2769101858,
-0.2668561637,
-0.0272915661,
0.0960365906,
0.0128377974,
-0.0740058869,
-0.0552990325,
-0.3418390155,
-0.2471808493,
-0.1704051346,
0.0550118834,
0.2183097601,
0.0958849043,
0.2658968568,
-0.1865485013,
0.108301267,
-0.4633398354,
-0.0825943574,
-0.0176456831,
-0.0080974074,
0.3024949431,
0.2742296755,
0.080207631,
0.2997993529,
-0.2465779185,
0.4653754234,
-0.012098249,
0.0204352662,
0.2364754975,
-0.0213384535,
-0.1121436357,
-0.0333962142,
-0.3809584379,
0.0699733645,
-0.4534810185,
-0.3755662143,
0.0112921372,
0.1440525353,
0.2753454447,
0.3328950107,
0.2299250364,
-0.2099562287,
0.3361963928,
-0.2096320242,
-0.203705281,
0.1267782003,
-0.2523743212,
-0.2639801502,
0.3304710388,
-0.0450134575,
0.8056793213,
-0.1035314575,
-0.2581115961,
-0.0281819738,
0.0541549176,
-0.3135479093,
-0.1422805637,
-0.2467390746,
0.3080141544,
0.208803907,
-0.085646823,
-0.0078175962,
-0.3258492649,
0.0911113024,
-0.2148192823,
0.2122523636,
-0.2017769814,
0.8904489279,
-0.0051942468,
0.4429087341,
0.1470211297,
-0.2118462622,
0.4529936016,
-0.1063800827,
0.1824466437,
-0.104823783,
-0.2602480948,
-0.1180831641,
0.1664526463,
-0.2900655866,
0.1482968926,
-0.2593996823,
-0.0632350594,
-0.2945415974,
0.0631958544,
-0.3335373998,
-0.2166403979,
0.0108935554,
-0.264600426,
0.1334774345,
-0.1084318832,
0.0371412784,
-0.0522481799,
0.1782279313,
0.1964561641,
0.2740252018,
0.1798411012,
-0.036095757,
-0.2892716527,
-0.022856541,
-0.3024624586,
0.3309326172,
-0.044929225,
0.1445601285,
-0.1725997031,
-0.2284809798,
0.1085915416,
-0.212063536,
0.5687651038,
-0.2886081338,
0.0759902745,
0.2566809654,
-0.1874072552,
-0.4711463153,
-0.2658159137,
-0.0675031841,
0.2460011393,
0.0289373696,
0.4087799489,
-0.1191494465,
-0.4835369885,
0.1473178864,
-0.0567419156,
-0.0862189904,
-0.2047347277,
-0.3479644656,
-0.1231659055,
-0.3823905885,
-0.0772969946,
-0.0697867051,
0.3470997512,
0.0993612781,
-0.2050056756,
0.0540420189,
0.0844750702,
0.0261744801,
-0.0463369042,
0.4726719856,
0.0330606848,
0.2310327441,
0.272346437,
0.3769772053,
0.1094537973,
0.3990900815,
0.2031018883,
-0.4686411619,
-0.1039527655,
0.030714158,
0.4628862143,
-0.0234799162,
-0.1841687411,
0.1056568325,
0.1430653632,
0.1544756889,
-0.169170633,
0.1093407869,
0.4040110111,
0.0435303673,
-0.305380553,
-0.5429389477,
-0.0136749037,
0.0826763213,
0.0919230133,
-0.0626311153,
-0.3203948736,
-0.2080415785,
0.2609344125,
0.4015893042,
0.6901732087,
-0.0723920837,
0.2966909707,
0.558742404,
0.0910604224,
0.0016885139,
0.2774417996,
-0.1042707711,
-0.5139324665,
0.1954909265,
0.0833371282,
-0.1815756261,
-0.009393001,
0.2339335978,
-0.1757295728,
0.205243364,
-0.2196787298,
0.0933760405,
-0.1733640134,
0.1602139473,
-0.1688348353,
-0.0502106026,
-0.121875897,
0.0497321114,
-0.0692730993,
0.0820501745,
-0.1036419719,
-0.2097411454,
0.0337740332,
-0.2309397161,
0.0748142004,
0.2753436863,
0.0081000589,
0.0343263149,
-0.2805513144,
-0.1951712072,
0.1213373244,
0.244719848,
0.3164096773,
0.0351310931,
-0.0893454179,
0.1010993719,
-0.3682292998,
-0.2763565481,
-0.2608577609,
-0.095642671,
0.1849868894,
-0.2108018547,
-0.0499801412,
0.1240622327,
-0.0613716692,
-0.3762868047,
-0.033586055,
-0.0350454859,
0.2754877508,
-0.4317028224,
-0.2545204461,
-0.1319123209,
-0.1161125153,
-0.1919200122,
0.1608150899,
0.2287706137,
-0.1201414615,
0.0152175957,
-0.1504315138,
-0.2745189667,
0.0584030375,
0.5248115063,
-0.1016797125,
0.1521700919,
0.6307948232,
0.0710353553,
-0.1138499007,
-0.2894230485,
-0.2996490002,
0.018357195,
-0.290943563,
0.1833910346,
0.2434941977,
-0.0689215958,
0.2441025376,
0.3077546656,
0.1714058518,
-0.098984167,
-0.050826747,
-0.5483647585,
-0.0284052566,
0.0474093743,
-0.1534880698,
0.3620047569,
0.1767349243,
-0.322078526,
-0.0817600042,
-0.1770448536,
-0.2993301749,
0.0011036731,
-0.1198002398,
0.2405625135,
-0.2157942653,
-0.2780372202,
0.2113569677,
0.0620968342,
0.1622254252,
-0.355820477,
-0.0777114034,
-0.2533760071,
-0.0681319758,
0.1221703291,
0.1441826373,
0.0095418356,
0.1336417347,
-0.1444760263,
-0.3320432901,
-0.1306843013,
0.0670904666,
0.1010916457,
-0.0039908439,
0.2840555906,
0.0924805701,
0.0219093859,
-0.1482170075,
-0.1065013334,
-0.1994542181,
-0.1743007004,
0.008559417,
0.2015720308,
-0.1814139783,
-0.2146721184,
0.0438420214,
0.003067499,
0.0793970078,
0.0792408958,
0.3128162026,
-0.46475631,
0.0515680611,
0.1602489352,
0.505522728,
0.3906168044,
-0.0799039155,
0.2140351236,
0.3118723333,
0.2381580919,
-0.1135244071,
-0.2740478814,
-0.1960723102,
-0.2340989113,
-0.0069743991,
-0.0698655546,
-0.0677563623,
0.0582613349,
0.2001814693,
-0.0457282811,
0.1784252375,
0.1480002105,
0.1270188987,
0.2794733942,
-0.3211748004,
0.0406143479,
0.2804031074,
0.1732442975,
0.144983083,
0.3777579665,
-0.1555615216,
0.1443802267,
-0.2752650082,
0.1954726279,
-0.1280414164,
-0.6779034734,
0.1011460871,
0.0413989089,
-0.0967222825,
-0.0895920694,
-0.1370326877,
0.3286107779,
0.0310609899,
0.0625444204,
-0.3678518534,
0.0839883313,
-0.1466528475,
-0.0880455524,
-0.3406412899,
0.00762631,
-0.0325514972,
0.1551524103,
0.1516607702,
-0.0349878781,
-0.0857885182,
0.0875554681,
-0.0400346965,
-0.0436643213,
0.0709552467,
0.3961871564,
-0.2319026291,
-0.4020036459,
0.1886531562,
-0.1219381839,
-0.0789999664,
0.0003446508,
0.071505405,
0.5281404853,
0.3324438035,
0.1592496783,
0.0043607727,
-0.0478786826,
-0.1837078929,
-0.0530144721,
0.0596841909,
0.1682321429,
0.3104562461,
0.4630708098,
0.1703825891,
-0.1467409432,
0.1241715401,
-0.1453260481,
0.3208074272,
-0.0304009542,
0.1715202928,
0.1750355512,
-0.240303576,
-0.2071766704,
0.2140193433,
-0.5623787642,
-0.2455458343,
0.3704133034,
0.0733890757,
0.0577127822,
-0.1164957434,
0.0590369813,
0.169428125,
0.5225660205,
0.1972421855,
0.3079324067,
-0.4567182064,
-0.0008987635,
-0.5817424059,
-0.0127126426,
0.1645321995,
0.2716321349,
0.1598728448,
0.1856325269,
-0.2448571622,
-0.0757827312,
0.2462039292,
0.2971829176,
0.1082026809,
0.233815819,
-0.1574125886,
-0.1347533613,
0.151497677,
-0.1274894178,
0.0899901018,
-0.1791542917,
0.0747644156,
-0.047214061,
0.0362292752,
-0.2751493454,
0.0237010866,
0.0012945235,
-0.1667187065,
0.5104472041,
-0.2578533292,
0.4464900196,
-0.0321036242,
0.1099808142,
-0.4661691487,
0.0489511788,
-0.1495847702,
0.1149455011,
0.0738409609,
0.2687285542,
-0.0252670087,
0.3849052489,
-0.4096691608,
0.2747508287,
-0.1608559936,
-0.3426372409,
-0.0414936393,
0.1178344116,
0.0767929479,
0.3193479478,
0.0821505487,
-0.0379421599,
0.0348788053,
0.0631608665,
-0.5235251188,
-0.2149444073,
0.6017241478,
-0.43991974,
-0.0485644899,
-0.0070457458,
0.2270690054,
0.1117746383,
-0.1416444331,
-0.4197170138,
0.1078704894,
0.2636762857,
0.1084359884,
-0.0447179303,
0.3393391669,
0.2886269987,
0.1458835602,
-0.0916724205,
0.1939835548,
0.1492436081,
-0.1321776211,
-0.130217284,
-0.3663118184
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | Any updates on this issue?
I face a similar issue. I have many parquet files in S3 and I would like to train on them.
To be honest I even face issues with only getting the last layer embedding out of them. | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 42 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
Any updates on this issue?
I face a similar issue. I have many parquet files in S3 and I would like to train on them.
To be honest I even face issues with only getting the last layer embedding out of them. | [
-0.2508122921,
-0.2407750189,
-0.053151913,
0.5038032532,
0.242677778,
0.0379797071,
0.4234100878,
0.230223,
0.0534567088,
0.0122714564,
-0.0213178508,
0.3855960071,
-0.2364186645,
0.408721447,
-0.0733913407,
0.151946947,
0.0036895536,
0.1174417138,
0.2415751517,
0.1663118005,
-0.0428828485,
0.2773866653,
-0.0571361855,
0.1090653166,
-0.1840190589,
0.0136173368,
0.0146281347,
0.3506193161,
-0.0750774443,
-0.508487165,
0.0108170286,
-0.0190766435,
0.4783014059,
0.3833350241,
-0.0001139213,
-0.0286530107,
0.3157632053,
0.0450193211,
-0.4229222834,
-0.3848213553,
-0.5591979623,
0.1110934243,
0.152659148,
-0.037460804,
-0.3507243097,
-0.0653409362,
-0.3116800785,
-0.2656853199,
0.4028449953,
0.6623778343,
0.1782038957,
0.1914704144,
-0.0731052235,
-0.3078445196,
0.2821200788,
0.0203727316,
0.001827538,
0.222032994,
-0.2715067565,
0.1779976189,
0.2951637208,
0.27099967,
-0.4019233882,
0.1139449477,
0.5365957618,
0.0304872356,
0.3513380885,
0.0784729347,
0.1274640411,
0.170570448,
0.5801001191,
-0.1361254007,
-0.4543988705,
-0.184920162,
-0.2141833156,
-0.2824923396,
0.1915269047,
0.0894623101,
0.0374887846,
0.0282421689,
-0.0464705117,
-0.0466802269,
-0.0988202244,
0.2466036081,
0.0339194536,
0.4405600131,
-0.278003931,
0.0633560568,
0.2615092993,
0.0703381896,
0.3421873152,
-0.1132725403,
0.0181237571,
0.0466641746,
-0.2519853115,
0.1674022675,
-0.0153581053,
0.2122866809,
-0.0699798092,
0.1938643456,
0.3034310937,
-0.0739921033,
0.3996635973,
0.2401906699,
0.3883316517,
-0.1680291742,
0.0913823843,
0.0003883317,
-0.0994114131,
0.4869208634,
0.0785984099,
-0.1934861839,
-0.3133123219,
-0.5367276073,
0.1240957007,
0.2688180804,
0.3971945643,
-0.3510358632,
-0.2658776045,
-0.0860201716,
-0.1192130968,
-0.1965766251,
0.2694830298,
0.4972227514,
-0.3471298814,
-0.1139851063,
-0.1179712266,
0.2110883296,
-0.2143540382,
0.0854031444,
-0.1983183771,
0.2434529662,
-0.3190574646,
0.0227506161,
0.1486800909,
-0.5799322724,
0.5168523788,
-0.0738640726,
0.0051260088,
-0.3440083265,
0.1492897719,
-0.2164644897,
0.1777613908,
0.1814398468,
0.1935319304,
0.2570757866,
-0.053781189,
-0.0760165229,
-0.1820333004,
0.0855756328,
-0.1849055886,
-0.4797710776,
0.0412797332,
0.2240626812,
-0.2657830119,
-0.1602723002,
-0.059421394,
-0.1859487593,
0.278168112,
-0.0984314531,
-0.388699472,
0.0453322865,
-0.1181020439,
-0.2207809091,
0.4690742195,
0.3192172647,
-0.3537423313,
0.108596459,
-0.471652627,
0.1138470098,
0.0835108086,
0.2105171233,
-0.3659236729,
0.4489597976,
-0.3048422337,
0.1328934878,
0.5610038638,
-0.2565932572,
0.0060540549,
0.0853614658,
-0.0421510339,
-0.1606777906,
0.1342203468,
-0.0630413368,
-0.1340710372,
-0.1085646451,
0.0167826004,
0.3441393971,
0.0382877886,
0.0388527587,
-0.1566991508,
-0.0247691497,
0.1257414222,
0.2443984449,
0.1100834981,
-0.0220541693,
-0.0373708569,
-0.1964022815,
-0.0556684695,
-0.1184007078,
-0.0434883498,
0.4679802656,
0.273306489,
0.3011099696,
-0.0028270967,
0.1516499519,
-0.2742569745,
0.1333040446,
0.0448957309,
-0.2772717178,
-0.0668593645,
0.0106650814,
-0.2895230353,
0.0034125,
-0.4520743191,
0.0989075229,
0.105307959,
0.3138039112,
0.232626766,
-0.0971176401,
-0.11902266,
-0.3059861958,
0.3305369318,
-0.0151230786,
-0.3088083565,
0.1135312244,
-0.4051385522,
-0.0548963249,
0.0869038552,
0.0439935513,
0.1716849804,
0.1176357418,
0.0150819719,
0.1787699163,
0.1243598983,
0.2274497151,
-0.214469105,
0.1562111378,
-0.1199651733,
0.030692704,
0.179736495,
-0.1334500909,
0.1356185228,
0.0835731328,
-0.0444401987,
0.4771923423,
-0.0267101657,
0.1894393861,
0.1397071481,
0.0150927156,
0.2696094513,
-0.1694878042,
-0.0204149708,
-0.1353711635,
0.0476757213,
-0.1200013906,
0.1146691442,
0.0762752369,
-0.0729279369,
-0.1295491308,
0.3834595084,
0.0959832221,
-0.0108043421,
-0.2696368098,
-0.2296588868,
-0.1449699402,
0.0653624907,
0.4955296814,
0.3665237427,
0.2210590243,
0.0965467915,
-0.0355796516,
-0.0539808124,
-0.1855219305,
0.2379354537,
0.423758775,
0.4380970001,
0.3556295931,
-0.378128022,
-0.0747241378,
-0.2402070761,
-0.1607339978,
0.1642104089,
0.28225106,
-0.4002408981,
0.189003706,
-0.0598932132,
-0.1696400344,
-0.2982713282,
-0.3548650742,
-0.1032038555,
-0.2554684579,
-0.1192266494,
0.2769101858,
-0.2668561637,
-0.0272915661,
0.0960365906,
0.0128377974,
-0.0740058869,
-0.0552990325,
-0.3418390155,
-0.2471808493,
-0.1704051346,
0.0550118834,
0.2183097601,
0.0958849043,
0.2658968568,
-0.1865485013,
0.108301267,
-0.4633398354,
-0.0825943574,
-0.0176456831,
-0.0080974074,
0.3024949431,
0.2742296755,
0.080207631,
0.2997993529,
-0.2465779185,
0.4653754234,
-0.012098249,
0.0204352662,
0.2364754975,
-0.0213384535,
-0.1121436357,
-0.0333962142,
-0.3809584379,
0.0699733645,
-0.4534810185,
-0.3755662143,
0.0112921372,
0.1440525353,
0.2753454447,
0.3328950107,
0.2299250364,
-0.2099562287,
0.3361963928,
-0.2096320242,
-0.203705281,
0.1267782003,
-0.2523743212,
-0.2639801502,
0.3304710388,
-0.0450134575,
0.8056793213,
-0.1035314575,
-0.2581115961,
-0.0281819738,
0.0541549176,
-0.3135479093,
-0.1422805637,
-0.2467390746,
0.3080141544,
0.208803907,
-0.085646823,
-0.0078175962,
-0.3258492649,
0.0911113024,
-0.2148192823,
0.2122523636,
-0.2017769814,
0.8904489279,
-0.0051942468,
0.4429087341,
0.1470211297,
-0.2118462622,
0.4529936016,
-0.1063800827,
0.1824466437,
-0.104823783,
-0.2602480948,
-0.1180831641,
0.1664526463,
-0.2900655866,
0.1482968926,
-0.2593996823,
-0.0632350594,
-0.2945415974,
0.0631958544,
-0.3335373998,
-0.2166403979,
0.0108935554,
-0.264600426,
0.1334774345,
-0.1084318832,
0.0371412784,
-0.0522481799,
0.1782279313,
0.1964561641,
0.2740252018,
0.1798411012,
-0.036095757,
-0.2892716527,
-0.022856541,
-0.3024624586,
0.3309326172,
-0.044929225,
0.1445601285,
-0.1725997031,
-0.2284809798,
0.1085915416,
-0.212063536,
0.5687651038,
-0.2886081338,
0.0759902745,
0.2566809654,
-0.1874072552,
-0.4711463153,
-0.2658159137,
-0.0675031841,
0.2460011393,
0.0289373696,
0.4087799489,
-0.1191494465,
-0.4835369885,
0.1473178864,
-0.0567419156,
-0.0862189904,
-0.2047347277,
-0.3479644656,
-0.1231659055,
-0.3823905885,
-0.0772969946,
-0.0697867051,
0.3470997512,
0.0993612781,
-0.2050056756,
0.0540420189,
0.0844750702,
0.0261744801,
-0.0463369042,
0.4726719856,
0.0330606848,
0.2310327441,
0.272346437,
0.3769772053,
0.1094537973,
0.3990900815,
0.2031018883,
-0.4686411619,
-0.1039527655,
0.030714158,
0.4628862143,
-0.0234799162,
-0.1841687411,
0.1056568325,
0.1430653632,
0.1544756889,
-0.169170633,
0.1093407869,
0.4040110111,
0.0435303673,
-0.305380553,
-0.5429389477,
-0.0136749037,
0.0826763213,
0.0919230133,
-0.0626311153,
-0.3203948736,
-0.2080415785,
0.2609344125,
0.4015893042,
0.6901732087,
-0.0723920837,
0.2966909707,
0.558742404,
0.0910604224,
0.0016885139,
0.2774417996,
-0.1042707711,
-0.5139324665,
0.1954909265,
0.0833371282,
-0.1815756261,
-0.009393001,
0.2339335978,
-0.1757295728,
0.205243364,
-0.2196787298,
0.0933760405,
-0.1733640134,
0.1602139473,
-0.1688348353,
-0.0502106026,
-0.121875897,
0.0497321114,
-0.0692730993,
0.0820501745,
-0.1036419719,
-0.2097411454,
0.0337740332,
-0.2309397161,
0.0748142004,
0.2753436863,
0.0081000589,
0.0343263149,
-0.2805513144,
-0.1951712072,
0.1213373244,
0.244719848,
0.3164096773,
0.0351310931,
-0.0893454179,
0.1010993719,
-0.3682292998,
-0.2763565481,
-0.2608577609,
-0.095642671,
0.1849868894,
-0.2108018547,
-0.0499801412,
0.1240622327,
-0.0613716692,
-0.3762868047,
-0.033586055,
-0.0350454859,
0.2754877508,
-0.4317028224,
-0.2545204461,
-0.1319123209,
-0.1161125153,
-0.1919200122,
0.1608150899,
0.2287706137,
-0.1201414615,
0.0152175957,
-0.1504315138,
-0.2745189667,
0.0584030375,
0.5248115063,
-0.1016797125,
0.1521700919,
0.6307948232,
0.0710353553,
-0.1138499007,
-0.2894230485,
-0.2996490002,
0.018357195,
-0.290943563,
0.1833910346,
0.2434941977,
-0.0689215958,
0.2441025376,
0.3077546656,
0.1714058518,
-0.098984167,
-0.050826747,
-0.5483647585,
-0.0284052566,
0.0474093743,
-0.1534880698,
0.3620047569,
0.1767349243,
-0.322078526,
-0.0817600042,
-0.1770448536,
-0.2993301749,
0.0011036731,
-0.1198002398,
0.2405625135,
-0.2157942653,
-0.2780372202,
0.2113569677,
0.0620968342,
0.1622254252,
-0.355820477,
-0.0777114034,
-0.2533760071,
-0.0681319758,
0.1221703291,
0.1441826373,
0.0095418356,
0.1336417347,
-0.1444760263,
-0.3320432901,
-0.1306843013,
0.0670904666,
0.1010916457,
-0.0039908439,
0.2840555906,
0.0924805701,
0.0219093859,
-0.1482170075,
-0.1065013334,
-0.1994542181,
-0.1743007004,
0.008559417,
0.2015720308,
-0.1814139783,
-0.2146721184,
0.0438420214,
0.003067499,
0.0793970078,
0.0792408958,
0.3128162026,
-0.46475631,
0.0515680611,
0.1602489352,
0.505522728,
0.3906168044,
-0.0799039155,
0.2140351236,
0.3118723333,
0.2381580919,
-0.1135244071,
-0.2740478814,
-0.1960723102,
-0.2340989113,
-0.0069743991,
-0.0698655546,
-0.0677563623,
0.0582613349,
0.2001814693,
-0.0457282811,
0.1784252375,
0.1480002105,
0.1270188987,
0.2794733942,
-0.3211748004,
0.0406143479,
0.2804031074,
0.1732442975,
0.144983083,
0.3777579665,
-0.1555615216,
0.1443802267,
-0.2752650082,
0.1954726279,
-0.1280414164,
-0.6779034734,
0.1011460871,
0.0413989089,
-0.0967222825,
-0.0895920694,
-0.1370326877,
0.3286107779,
0.0310609899,
0.0625444204,
-0.3678518534,
0.0839883313,
-0.1466528475,
-0.0880455524,
-0.3406412899,
0.00762631,
-0.0325514972,
0.1551524103,
0.1516607702,
-0.0349878781,
-0.0857885182,
0.0875554681,
-0.0400346965,
-0.0436643213,
0.0709552467,
0.3961871564,
-0.2319026291,
-0.4020036459,
0.1886531562,
-0.1219381839,
-0.0789999664,
0.0003446508,
0.071505405,
0.5281404853,
0.3324438035,
0.1592496783,
0.0043607727,
-0.0478786826,
-0.1837078929,
-0.0530144721,
0.0596841909,
0.1682321429,
0.3104562461,
0.4630708098,
0.1703825891,
-0.1467409432,
0.1241715401,
-0.1453260481,
0.3208074272,
-0.0304009542,
0.1715202928,
0.1750355512,
-0.240303576,
-0.2071766704,
0.2140193433,
-0.5623787642,
-0.2455458343,
0.3704133034,
0.0733890757,
0.0577127822,
-0.1164957434,
0.0590369813,
0.169428125,
0.5225660205,
0.1972421855,
0.3079324067,
-0.4567182064,
-0.0008987635,
-0.5817424059,
-0.0127126426,
0.1645321995,
0.2716321349,
0.1598728448,
0.1856325269,
-0.2448571622,
-0.0757827312,
0.2462039292,
0.2971829176,
0.1082026809,
0.233815819,
-0.1574125886,
-0.1347533613,
0.151497677,
-0.1274894178,
0.0899901018,
-0.1791542917,
0.0747644156,
-0.047214061,
0.0362292752,
-0.2751493454,
0.0237010866,
0.0012945235,
-0.1667187065,
0.5104472041,
-0.2578533292,
0.4464900196,
-0.0321036242,
0.1099808142,
-0.4661691487,
0.0489511788,
-0.1495847702,
0.1149455011,
0.0738409609,
0.2687285542,
-0.0252670087,
0.3849052489,
-0.4096691608,
0.2747508287,
-0.1608559936,
-0.3426372409,
-0.0414936393,
0.1178344116,
0.0767929479,
0.3193479478,
0.0821505487,
-0.0379421599,
0.0348788053,
0.0631608665,
-0.5235251188,
-0.2149444073,
0.6017241478,
-0.43991974,
-0.0485644899,
-0.0070457458,
0.2270690054,
0.1117746383,
-0.1416444331,
-0.4197170138,
0.1078704894,
0.2636762857,
0.1084359884,
-0.0447179303,
0.3393391669,
0.2886269987,
0.1458835602,
-0.0916724205,
0.1939835548,
0.1492436081,
-0.1321776211,
-0.130217284,
-0.3663118184
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | Hi dorlavie,
You can find one solution that i have mentioned above, that can help you.
And there is one more solution also which is downloading files locally
| In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 28 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
Hi dorlavie,
You can find one solution that i have mentioned above, that can help you.
And there is one more solution also which is downloading files locally
| [
-0.2508122921,
-0.2407750189,
-0.053151913,
0.5038032532,
0.242677778,
0.0379797071,
0.4234100878,
0.230223,
0.0534567088,
0.0122714564,
-0.0213178508,
0.3855960071,
-0.2364186645,
0.408721447,
-0.0733913407,
0.151946947,
0.0036895536,
0.1174417138,
0.2415751517,
0.1663118005,
-0.0428828485,
0.2773866653,
-0.0571361855,
0.1090653166,
-0.1840190589,
0.0136173368,
0.0146281347,
0.3506193161,
-0.0750774443,
-0.508487165,
0.0108170286,
-0.0190766435,
0.4783014059,
0.3833350241,
-0.0001139213,
-0.0286530107,
0.3157632053,
0.0450193211,
-0.4229222834,
-0.3848213553,
-0.5591979623,
0.1110934243,
0.152659148,
-0.037460804,
-0.3507243097,
-0.0653409362,
-0.3116800785,
-0.2656853199,
0.4028449953,
0.6623778343,
0.1782038957,
0.1914704144,
-0.0731052235,
-0.3078445196,
0.2821200788,
0.0203727316,
0.001827538,
0.222032994,
-0.2715067565,
0.1779976189,
0.2951637208,
0.27099967,
-0.4019233882,
0.1139449477,
0.5365957618,
0.0304872356,
0.3513380885,
0.0784729347,
0.1274640411,
0.170570448,
0.5801001191,
-0.1361254007,
-0.4543988705,
-0.184920162,
-0.2141833156,
-0.2824923396,
0.1915269047,
0.0894623101,
0.0374887846,
0.0282421689,
-0.0464705117,
-0.0466802269,
-0.0988202244,
0.2466036081,
0.0339194536,
0.4405600131,
-0.278003931,
0.0633560568,
0.2615092993,
0.0703381896,
0.3421873152,
-0.1132725403,
0.0181237571,
0.0466641746,
-0.2519853115,
0.1674022675,
-0.0153581053,
0.2122866809,
-0.0699798092,
0.1938643456,
0.3034310937,
-0.0739921033,
0.3996635973,
0.2401906699,
0.3883316517,
-0.1680291742,
0.0913823843,
0.0003883317,
-0.0994114131,
0.4869208634,
0.0785984099,
-0.1934861839,
-0.3133123219,
-0.5367276073,
0.1240957007,
0.2688180804,
0.3971945643,
-0.3510358632,
-0.2658776045,
-0.0860201716,
-0.1192130968,
-0.1965766251,
0.2694830298,
0.4972227514,
-0.3471298814,
-0.1139851063,
-0.1179712266,
0.2110883296,
-0.2143540382,
0.0854031444,
-0.1983183771,
0.2434529662,
-0.3190574646,
0.0227506161,
0.1486800909,
-0.5799322724,
0.5168523788,
-0.0738640726,
0.0051260088,
-0.3440083265,
0.1492897719,
-0.2164644897,
0.1777613908,
0.1814398468,
0.1935319304,
0.2570757866,
-0.053781189,
-0.0760165229,
-0.1820333004,
0.0855756328,
-0.1849055886,
-0.4797710776,
0.0412797332,
0.2240626812,
-0.2657830119,
-0.1602723002,
-0.059421394,
-0.1859487593,
0.278168112,
-0.0984314531,
-0.388699472,
0.0453322865,
-0.1181020439,
-0.2207809091,
0.4690742195,
0.3192172647,
-0.3537423313,
0.108596459,
-0.471652627,
0.1138470098,
0.0835108086,
0.2105171233,
-0.3659236729,
0.4489597976,
-0.3048422337,
0.1328934878,
0.5610038638,
-0.2565932572,
0.0060540549,
0.0853614658,
-0.0421510339,
-0.1606777906,
0.1342203468,
-0.0630413368,
-0.1340710372,
-0.1085646451,
0.0167826004,
0.3441393971,
0.0382877886,
0.0388527587,
-0.1566991508,
-0.0247691497,
0.1257414222,
0.2443984449,
0.1100834981,
-0.0220541693,
-0.0373708569,
-0.1964022815,
-0.0556684695,
-0.1184007078,
-0.0434883498,
0.4679802656,
0.273306489,
0.3011099696,
-0.0028270967,
0.1516499519,
-0.2742569745,
0.1333040446,
0.0448957309,
-0.2772717178,
-0.0668593645,
0.0106650814,
-0.2895230353,
0.0034125,
-0.4520743191,
0.0989075229,
0.105307959,
0.3138039112,
0.232626766,
-0.0971176401,
-0.11902266,
-0.3059861958,
0.3305369318,
-0.0151230786,
-0.3088083565,
0.1135312244,
-0.4051385522,
-0.0548963249,
0.0869038552,
0.0439935513,
0.1716849804,
0.1176357418,
0.0150819719,
0.1787699163,
0.1243598983,
0.2274497151,
-0.214469105,
0.1562111378,
-0.1199651733,
0.030692704,
0.179736495,
-0.1334500909,
0.1356185228,
0.0835731328,
-0.0444401987,
0.4771923423,
-0.0267101657,
0.1894393861,
0.1397071481,
0.0150927156,
0.2696094513,
-0.1694878042,
-0.0204149708,
-0.1353711635,
0.0476757213,
-0.1200013906,
0.1146691442,
0.0762752369,
-0.0729279369,
-0.1295491308,
0.3834595084,
0.0959832221,
-0.0108043421,
-0.2696368098,
-0.2296588868,
-0.1449699402,
0.0653624907,
0.4955296814,
0.3665237427,
0.2210590243,
0.0965467915,
-0.0355796516,
-0.0539808124,
-0.1855219305,
0.2379354537,
0.423758775,
0.4380970001,
0.3556295931,
-0.378128022,
-0.0747241378,
-0.2402070761,
-0.1607339978,
0.1642104089,
0.28225106,
-0.4002408981,
0.189003706,
-0.0598932132,
-0.1696400344,
-0.2982713282,
-0.3548650742,
-0.1032038555,
-0.2554684579,
-0.1192266494,
0.2769101858,
-0.2668561637,
-0.0272915661,
0.0960365906,
0.0128377974,
-0.0740058869,
-0.0552990325,
-0.3418390155,
-0.2471808493,
-0.1704051346,
0.0550118834,
0.2183097601,
0.0958849043,
0.2658968568,
-0.1865485013,
0.108301267,
-0.4633398354,
-0.0825943574,
-0.0176456831,
-0.0080974074,
0.3024949431,
0.2742296755,
0.080207631,
0.2997993529,
-0.2465779185,
0.4653754234,
-0.012098249,
0.0204352662,
0.2364754975,
-0.0213384535,
-0.1121436357,
-0.0333962142,
-0.3809584379,
0.0699733645,
-0.4534810185,
-0.3755662143,
0.0112921372,
0.1440525353,
0.2753454447,
0.3328950107,
0.2299250364,
-0.2099562287,
0.3361963928,
-0.2096320242,
-0.203705281,
0.1267782003,
-0.2523743212,
-0.2639801502,
0.3304710388,
-0.0450134575,
0.8056793213,
-0.1035314575,
-0.2581115961,
-0.0281819738,
0.0541549176,
-0.3135479093,
-0.1422805637,
-0.2467390746,
0.3080141544,
0.208803907,
-0.085646823,
-0.0078175962,
-0.3258492649,
0.0911113024,
-0.2148192823,
0.2122523636,
-0.2017769814,
0.8904489279,
-0.0051942468,
0.4429087341,
0.1470211297,
-0.2118462622,
0.4529936016,
-0.1063800827,
0.1824466437,
-0.104823783,
-0.2602480948,
-0.1180831641,
0.1664526463,
-0.2900655866,
0.1482968926,
-0.2593996823,
-0.0632350594,
-0.2945415974,
0.0631958544,
-0.3335373998,
-0.2166403979,
0.0108935554,
-0.264600426,
0.1334774345,
-0.1084318832,
0.0371412784,
-0.0522481799,
0.1782279313,
0.1964561641,
0.2740252018,
0.1798411012,
-0.036095757,
-0.2892716527,
-0.022856541,
-0.3024624586,
0.3309326172,
-0.044929225,
0.1445601285,
-0.1725997031,
-0.2284809798,
0.1085915416,
-0.212063536,
0.5687651038,
-0.2886081338,
0.0759902745,
0.2566809654,
-0.1874072552,
-0.4711463153,
-0.2658159137,
-0.0675031841,
0.2460011393,
0.0289373696,
0.4087799489,
-0.1191494465,
-0.4835369885,
0.1473178864,
-0.0567419156,
-0.0862189904,
-0.2047347277,
-0.3479644656,
-0.1231659055,
-0.3823905885,
-0.0772969946,
-0.0697867051,
0.3470997512,
0.0993612781,
-0.2050056756,
0.0540420189,
0.0844750702,
0.0261744801,
-0.0463369042,
0.4726719856,
0.0330606848,
0.2310327441,
0.272346437,
0.3769772053,
0.1094537973,
0.3990900815,
0.2031018883,
-0.4686411619,
-0.1039527655,
0.030714158,
0.4628862143,
-0.0234799162,
-0.1841687411,
0.1056568325,
0.1430653632,
0.1544756889,
-0.169170633,
0.1093407869,
0.4040110111,
0.0435303673,
-0.305380553,
-0.5429389477,
-0.0136749037,
0.0826763213,
0.0919230133,
-0.0626311153,
-0.3203948736,
-0.2080415785,
0.2609344125,
0.4015893042,
0.6901732087,
-0.0723920837,
0.2966909707,
0.558742404,
0.0910604224,
0.0016885139,
0.2774417996,
-0.1042707711,
-0.5139324665,
0.1954909265,
0.0833371282,
-0.1815756261,
-0.009393001,
0.2339335978,
-0.1757295728,
0.205243364,
-0.2196787298,
0.0933760405,
-0.1733640134,
0.1602139473,
-0.1688348353,
-0.0502106026,
-0.121875897,
0.0497321114,
-0.0692730993,
0.0820501745,
-0.1036419719,
-0.2097411454,
0.0337740332,
-0.2309397161,
0.0748142004,
0.2753436863,
0.0081000589,
0.0343263149,
-0.2805513144,
-0.1951712072,
0.1213373244,
0.244719848,
0.3164096773,
0.0351310931,
-0.0893454179,
0.1010993719,
-0.3682292998,
-0.2763565481,
-0.2608577609,
-0.095642671,
0.1849868894,
-0.2108018547,
-0.0499801412,
0.1240622327,
-0.0613716692,
-0.3762868047,
-0.033586055,
-0.0350454859,
0.2754877508,
-0.4317028224,
-0.2545204461,
-0.1319123209,
-0.1161125153,
-0.1919200122,
0.1608150899,
0.2287706137,
-0.1201414615,
0.0152175957,
-0.1504315138,
-0.2745189667,
0.0584030375,
0.5248115063,
-0.1016797125,
0.1521700919,
0.6307948232,
0.0710353553,
-0.1138499007,
-0.2894230485,
-0.2996490002,
0.018357195,
-0.290943563,
0.1833910346,
0.2434941977,
-0.0689215958,
0.2441025376,
0.3077546656,
0.1714058518,
-0.098984167,
-0.050826747,
-0.5483647585,
-0.0284052566,
0.0474093743,
-0.1534880698,
0.3620047569,
0.1767349243,
-0.322078526,
-0.0817600042,
-0.1770448536,
-0.2993301749,
0.0011036731,
-0.1198002398,
0.2405625135,
-0.2157942653,
-0.2780372202,
0.2113569677,
0.0620968342,
0.1622254252,
-0.355820477,
-0.0777114034,
-0.2533760071,
-0.0681319758,
0.1221703291,
0.1441826373,
0.0095418356,
0.1336417347,
-0.1444760263,
-0.3320432901,
-0.1306843013,
0.0670904666,
0.1010916457,
-0.0039908439,
0.2840555906,
0.0924805701,
0.0219093859,
-0.1482170075,
-0.1065013334,
-0.1994542181,
-0.1743007004,
0.008559417,
0.2015720308,
-0.1814139783,
-0.2146721184,
0.0438420214,
0.003067499,
0.0793970078,
0.0792408958,
0.3128162026,
-0.46475631,
0.0515680611,
0.1602489352,
0.505522728,
0.3906168044,
-0.0799039155,
0.2140351236,
0.3118723333,
0.2381580919,
-0.1135244071,
-0.2740478814,
-0.1960723102,
-0.2340989113,
-0.0069743991,
-0.0698655546,
-0.0677563623,
0.0582613349,
0.2001814693,
-0.0457282811,
0.1784252375,
0.1480002105,
0.1270188987,
0.2794733942,
-0.3211748004,
0.0406143479,
0.2804031074,
0.1732442975,
0.144983083,
0.3777579665,
-0.1555615216,
0.1443802267,
-0.2752650082,
0.1954726279,
-0.1280414164,
-0.6779034734,
0.1011460871,
0.0413989089,
-0.0967222825,
-0.0895920694,
-0.1370326877,
0.3286107779,
0.0310609899,
0.0625444204,
-0.3678518534,
0.0839883313,
-0.1466528475,
-0.0880455524,
-0.3406412899,
0.00762631,
-0.0325514972,
0.1551524103,
0.1516607702,
-0.0349878781,
-0.0857885182,
0.0875554681,
-0.0400346965,
-0.0436643213,
0.0709552467,
0.3961871564,
-0.2319026291,
-0.4020036459,
0.1886531562,
-0.1219381839,
-0.0789999664,
0.0003446508,
0.071505405,
0.5281404853,
0.3324438035,
0.1592496783,
0.0043607727,
-0.0478786826,
-0.1837078929,
-0.0530144721,
0.0596841909,
0.1682321429,
0.3104562461,
0.4630708098,
0.1703825891,
-0.1467409432,
0.1241715401,
-0.1453260481,
0.3208074272,
-0.0304009542,
0.1715202928,
0.1750355512,
-0.240303576,
-0.2071766704,
0.2140193433,
-0.5623787642,
-0.2455458343,
0.3704133034,
0.0733890757,
0.0577127822,
-0.1164957434,
0.0590369813,
0.169428125,
0.5225660205,
0.1972421855,
0.3079324067,
-0.4567182064,
-0.0008987635,
-0.5817424059,
-0.0127126426,
0.1645321995,
0.2716321349,
0.1598728448,
0.1856325269,
-0.2448571622,
-0.0757827312,
0.2462039292,
0.2971829176,
0.1082026809,
0.233815819,
-0.1574125886,
-0.1347533613,
0.151497677,
-0.1274894178,
0.0899901018,
-0.1791542917,
0.0747644156,
-0.047214061,
0.0362292752,
-0.2751493454,
0.0237010866,
0.0012945235,
-0.1667187065,
0.5104472041,
-0.2578533292,
0.4464900196,
-0.0321036242,
0.1099808142,
-0.4661691487,
0.0489511788,
-0.1495847702,
0.1149455011,
0.0738409609,
0.2687285542,
-0.0252670087,
0.3849052489,
-0.4096691608,
0.2747508287,
-0.1608559936,
-0.3426372409,
-0.0414936393,
0.1178344116,
0.0767929479,
0.3193479478,
0.0821505487,
-0.0379421599,
0.0348788053,
0.0631608665,
-0.5235251188,
-0.2149444073,
0.6017241478,
-0.43991974,
-0.0485644899,
-0.0070457458,
0.2270690054,
0.1117746383,
-0.1416444331,
-0.4197170138,
0.1078704894,
0.2636762857,
0.1084359884,
-0.0447179303,
0.3393391669,
0.2886269987,
0.1458835602,
-0.0916724205,
0.1939835548,
0.1492436081,
-0.1321776211,
-0.130217284,
-0.3663118184
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | > Hi dorlavie,
> You can find one solution that i have mentioned above, that can help you.
> And there is one more solution also which is downloading files locally
mahesh1amour, thanks for the fast reply
Unfortunately, in my case I can not read with pandas. The dataset is too big (50GB).
In addition, due to security concerns I am not allowed to save the data locally | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 68 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
> Hi dorlavie,
> You can find one solution that i have mentioned above, that can help you.
> And there is one more solution also which is downloading files locally
mahesh1amour, thanks for the fast reply
Unfortunately, in my case I can not read with pandas. The dataset is too big (50GB).
In addition, due to security concerns I am not allowed to save the data locally | [
-0.2508122921,
-0.2407750189,
-0.053151913,
0.5038032532,
0.242677778,
0.0379797071,
0.4234100878,
0.230223,
0.0534567088,
0.0122714564,
-0.0213178508,
0.3855960071,
-0.2364186645,
0.408721447,
-0.0733913407,
0.151946947,
0.0036895536,
0.1174417138,
0.2415751517,
0.1663118005,
-0.0428828485,
0.2773866653,
-0.0571361855,
0.1090653166,
-0.1840190589,
0.0136173368,
0.0146281347,
0.3506193161,
-0.0750774443,
-0.508487165,
0.0108170286,
-0.0190766435,
0.4783014059,
0.3833350241,
-0.0001139213,
-0.0286530107,
0.3157632053,
0.0450193211,
-0.4229222834,
-0.3848213553,
-0.5591979623,
0.1110934243,
0.152659148,
-0.037460804,
-0.3507243097,
-0.0653409362,
-0.3116800785,
-0.2656853199,
0.4028449953,
0.6623778343,
0.1782038957,
0.1914704144,
-0.0731052235,
-0.3078445196,
0.2821200788,
0.0203727316,
0.001827538,
0.222032994,
-0.2715067565,
0.1779976189,
0.2951637208,
0.27099967,
-0.4019233882,
0.1139449477,
0.5365957618,
0.0304872356,
0.3513380885,
0.0784729347,
0.1274640411,
0.170570448,
0.5801001191,
-0.1361254007,
-0.4543988705,
-0.184920162,
-0.2141833156,
-0.2824923396,
0.1915269047,
0.0894623101,
0.0374887846,
0.0282421689,
-0.0464705117,
-0.0466802269,
-0.0988202244,
0.2466036081,
0.0339194536,
0.4405600131,
-0.278003931,
0.0633560568,
0.2615092993,
0.0703381896,
0.3421873152,
-0.1132725403,
0.0181237571,
0.0466641746,
-0.2519853115,
0.1674022675,
-0.0153581053,
0.2122866809,
-0.0699798092,
0.1938643456,
0.3034310937,
-0.0739921033,
0.3996635973,
0.2401906699,
0.3883316517,
-0.1680291742,
0.0913823843,
0.0003883317,
-0.0994114131,
0.4869208634,
0.0785984099,
-0.1934861839,
-0.3133123219,
-0.5367276073,
0.1240957007,
0.2688180804,
0.3971945643,
-0.3510358632,
-0.2658776045,
-0.0860201716,
-0.1192130968,
-0.1965766251,
0.2694830298,
0.4972227514,
-0.3471298814,
-0.1139851063,
-0.1179712266,
0.2110883296,
-0.2143540382,
0.0854031444,
-0.1983183771,
0.2434529662,
-0.3190574646,
0.0227506161,
0.1486800909,
-0.5799322724,
0.5168523788,
-0.0738640726,
0.0051260088,
-0.3440083265,
0.1492897719,
-0.2164644897,
0.1777613908,
0.1814398468,
0.1935319304,
0.2570757866,
-0.053781189,
-0.0760165229,
-0.1820333004,
0.0855756328,
-0.1849055886,
-0.4797710776,
0.0412797332,
0.2240626812,
-0.2657830119,
-0.1602723002,
-0.059421394,
-0.1859487593,
0.278168112,
-0.0984314531,
-0.388699472,
0.0453322865,
-0.1181020439,
-0.2207809091,
0.4690742195,
0.3192172647,
-0.3537423313,
0.108596459,
-0.471652627,
0.1138470098,
0.0835108086,
0.2105171233,
-0.3659236729,
0.4489597976,
-0.3048422337,
0.1328934878,
0.5610038638,
-0.2565932572,
0.0060540549,
0.0853614658,
-0.0421510339,
-0.1606777906,
0.1342203468,
-0.0630413368,
-0.1340710372,
-0.1085646451,
0.0167826004,
0.3441393971,
0.0382877886,
0.0388527587,
-0.1566991508,
-0.0247691497,
0.1257414222,
0.2443984449,
0.1100834981,
-0.0220541693,
-0.0373708569,
-0.1964022815,
-0.0556684695,
-0.1184007078,
-0.0434883498,
0.4679802656,
0.273306489,
0.3011099696,
-0.0028270967,
0.1516499519,
-0.2742569745,
0.1333040446,
0.0448957309,
-0.2772717178,
-0.0668593645,
0.0106650814,
-0.2895230353,
0.0034125,
-0.4520743191,
0.0989075229,
0.105307959,
0.3138039112,
0.232626766,
-0.0971176401,
-0.11902266,
-0.3059861958,
0.3305369318,
-0.0151230786,
-0.3088083565,
0.1135312244,
-0.4051385522,
-0.0548963249,
0.0869038552,
0.0439935513,
0.1716849804,
0.1176357418,
0.0150819719,
0.1787699163,
0.1243598983,
0.2274497151,
-0.214469105,
0.1562111378,
-0.1199651733,
0.030692704,
0.179736495,
-0.1334500909,
0.1356185228,
0.0835731328,
-0.0444401987,
0.4771923423,
-0.0267101657,
0.1894393861,
0.1397071481,
0.0150927156,
0.2696094513,
-0.1694878042,
-0.0204149708,
-0.1353711635,
0.0476757213,
-0.1200013906,
0.1146691442,
0.0762752369,
-0.0729279369,
-0.1295491308,
0.3834595084,
0.0959832221,
-0.0108043421,
-0.2696368098,
-0.2296588868,
-0.1449699402,
0.0653624907,
0.4955296814,
0.3665237427,
0.2210590243,
0.0965467915,
-0.0355796516,
-0.0539808124,
-0.1855219305,
0.2379354537,
0.423758775,
0.4380970001,
0.3556295931,
-0.378128022,
-0.0747241378,
-0.2402070761,
-0.1607339978,
0.1642104089,
0.28225106,
-0.4002408981,
0.189003706,
-0.0598932132,
-0.1696400344,
-0.2982713282,
-0.3548650742,
-0.1032038555,
-0.2554684579,
-0.1192266494,
0.2769101858,
-0.2668561637,
-0.0272915661,
0.0960365906,
0.0128377974,
-0.0740058869,
-0.0552990325,
-0.3418390155,
-0.2471808493,
-0.1704051346,
0.0550118834,
0.2183097601,
0.0958849043,
0.2658968568,
-0.1865485013,
0.108301267,
-0.4633398354,
-0.0825943574,
-0.0176456831,
-0.0080974074,
0.3024949431,
0.2742296755,
0.080207631,
0.2997993529,
-0.2465779185,
0.4653754234,
-0.012098249,
0.0204352662,
0.2364754975,
-0.0213384535,
-0.1121436357,
-0.0333962142,
-0.3809584379,
0.0699733645,
-0.4534810185,
-0.3755662143,
0.0112921372,
0.1440525353,
0.2753454447,
0.3328950107,
0.2299250364,
-0.2099562287,
0.3361963928,
-0.2096320242,
-0.203705281,
0.1267782003,
-0.2523743212,
-0.2639801502,
0.3304710388,
-0.0450134575,
0.8056793213,
-0.1035314575,
-0.2581115961,
-0.0281819738,
0.0541549176,
-0.3135479093,
-0.1422805637,
-0.2467390746,
0.3080141544,
0.208803907,
-0.085646823,
-0.0078175962,
-0.3258492649,
0.0911113024,
-0.2148192823,
0.2122523636,
-0.2017769814,
0.8904489279,
-0.0051942468,
0.4429087341,
0.1470211297,
-0.2118462622,
0.4529936016,
-0.1063800827,
0.1824466437,
-0.104823783,
-0.2602480948,
-0.1180831641,
0.1664526463,
-0.2900655866,
0.1482968926,
-0.2593996823,
-0.0632350594,
-0.2945415974,
0.0631958544,
-0.3335373998,
-0.2166403979,
0.0108935554,
-0.264600426,
0.1334774345,
-0.1084318832,
0.0371412784,
-0.0522481799,
0.1782279313,
0.1964561641,
0.2740252018,
0.1798411012,
-0.036095757,
-0.2892716527,
-0.022856541,
-0.3024624586,
0.3309326172,
-0.044929225,
0.1445601285,
-0.1725997031,
-0.2284809798,
0.1085915416,
-0.212063536,
0.5687651038,
-0.2886081338,
0.0759902745,
0.2566809654,
-0.1874072552,
-0.4711463153,
-0.2658159137,
-0.0675031841,
0.2460011393,
0.0289373696,
0.4087799489,
-0.1191494465,
-0.4835369885,
0.1473178864,
-0.0567419156,
-0.0862189904,
-0.2047347277,
-0.3479644656,
-0.1231659055,
-0.3823905885,
-0.0772969946,
-0.0697867051,
0.3470997512,
0.0993612781,
-0.2050056756,
0.0540420189,
0.0844750702,
0.0261744801,
-0.0463369042,
0.4726719856,
0.0330606848,
0.2310327441,
0.272346437,
0.3769772053,
0.1094537973,
0.3990900815,
0.2031018883,
-0.4686411619,
-0.1039527655,
0.030714158,
0.4628862143,
-0.0234799162,
-0.1841687411,
0.1056568325,
0.1430653632,
0.1544756889,
-0.169170633,
0.1093407869,
0.4040110111,
0.0435303673,
-0.305380553,
-0.5429389477,
-0.0136749037,
0.0826763213,
0.0919230133,
-0.0626311153,
-0.3203948736,
-0.2080415785,
0.2609344125,
0.4015893042,
0.6901732087,
-0.0723920837,
0.2966909707,
0.558742404,
0.0910604224,
0.0016885139,
0.2774417996,
-0.1042707711,
-0.5139324665,
0.1954909265,
0.0833371282,
-0.1815756261,
-0.009393001,
0.2339335978,
-0.1757295728,
0.205243364,
-0.2196787298,
0.0933760405,
-0.1733640134,
0.1602139473,
-0.1688348353,
-0.0502106026,
-0.121875897,
0.0497321114,
-0.0692730993,
0.0820501745,
-0.1036419719,
-0.2097411454,
0.0337740332,
-0.2309397161,
0.0748142004,
0.2753436863,
0.0081000589,
0.0343263149,
-0.2805513144,
-0.1951712072,
0.1213373244,
0.244719848,
0.3164096773,
0.0351310931,
-0.0893454179,
0.1010993719,
-0.3682292998,
-0.2763565481,
-0.2608577609,
-0.095642671,
0.1849868894,
-0.2108018547,
-0.0499801412,
0.1240622327,
-0.0613716692,
-0.3762868047,
-0.033586055,
-0.0350454859,
0.2754877508,
-0.4317028224,
-0.2545204461,
-0.1319123209,
-0.1161125153,
-0.1919200122,
0.1608150899,
0.2287706137,
-0.1201414615,
0.0152175957,
-0.1504315138,
-0.2745189667,
0.0584030375,
0.5248115063,
-0.1016797125,
0.1521700919,
0.6307948232,
0.0710353553,
-0.1138499007,
-0.2894230485,
-0.2996490002,
0.018357195,
-0.290943563,
0.1833910346,
0.2434941977,
-0.0689215958,
0.2441025376,
0.3077546656,
0.1714058518,
-0.098984167,
-0.050826747,
-0.5483647585,
-0.0284052566,
0.0474093743,
-0.1534880698,
0.3620047569,
0.1767349243,
-0.322078526,
-0.0817600042,
-0.1770448536,
-0.2993301749,
0.0011036731,
-0.1198002398,
0.2405625135,
-0.2157942653,
-0.2780372202,
0.2113569677,
0.0620968342,
0.1622254252,
-0.355820477,
-0.0777114034,
-0.2533760071,
-0.0681319758,
0.1221703291,
0.1441826373,
0.0095418356,
0.1336417347,
-0.1444760263,
-0.3320432901,
-0.1306843013,
0.0670904666,
0.1010916457,
-0.0039908439,
0.2840555906,
0.0924805701,
0.0219093859,
-0.1482170075,
-0.1065013334,
-0.1994542181,
-0.1743007004,
0.008559417,
0.2015720308,
-0.1814139783,
-0.2146721184,
0.0438420214,
0.003067499,
0.0793970078,
0.0792408958,
0.3128162026,
-0.46475631,
0.0515680611,
0.1602489352,
0.505522728,
0.3906168044,
-0.0799039155,
0.2140351236,
0.3118723333,
0.2381580919,
-0.1135244071,
-0.2740478814,
-0.1960723102,
-0.2340989113,
-0.0069743991,
-0.0698655546,
-0.0677563623,
0.0582613349,
0.2001814693,
-0.0457282811,
0.1784252375,
0.1480002105,
0.1270188987,
0.2794733942,
-0.3211748004,
0.0406143479,
0.2804031074,
0.1732442975,
0.144983083,
0.3777579665,
-0.1555615216,
0.1443802267,
-0.2752650082,
0.1954726279,
-0.1280414164,
-0.6779034734,
0.1011460871,
0.0413989089,
-0.0967222825,
-0.0895920694,
-0.1370326877,
0.3286107779,
0.0310609899,
0.0625444204,
-0.3678518534,
0.0839883313,
-0.1466528475,
-0.0880455524,
-0.3406412899,
0.00762631,
-0.0325514972,
0.1551524103,
0.1516607702,
-0.0349878781,
-0.0857885182,
0.0875554681,
-0.0400346965,
-0.0436643213,
0.0709552467,
0.3961871564,
-0.2319026291,
-0.4020036459,
0.1886531562,
-0.1219381839,
-0.0789999664,
0.0003446508,
0.071505405,
0.5281404853,
0.3324438035,
0.1592496783,
0.0043607727,
-0.0478786826,
-0.1837078929,
-0.0530144721,
0.0596841909,
0.1682321429,
0.3104562461,
0.4630708098,
0.1703825891,
-0.1467409432,
0.1241715401,
-0.1453260481,
0.3208074272,
-0.0304009542,
0.1715202928,
0.1750355512,
-0.240303576,
-0.2071766704,
0.2140193433,
-0.5623787642,
-0.2455458343,
0.3704133034,
0.0733890757,
0.0577127822,
-0.1164957434,
0.0590369813,
0.169428125,
0.5225660205,
0.1972421855,
0.3079324067,
-0.4567182064,
-0.0008987635,
-0.5817424059,
-0.0127126426,
0.1645321995,
0.2716321349,
0.1598728448,
0.1856325269,
-0.2448571622,
-0.0757827312,
0.2462039292,
0.2971829176,
0.1082026809,
0.233815819,
-0.1574125886,
-0.1347533613,
0.151497677,
-0.1274894178,
0.0899901018,
-0.1791542917,
0.0747644156,
-0.047214061,
0.0362292752,
-0.2751493454,
0.0237010866,
0.0012945235,
-0.1667187065,
0.5104472041,
-0.2578533292,
0.4464900196,
-0.0321036242,
0.1099808142,
-0.4661691487,
0.0489511788,
-0.1495847702,
0.1149455011,
0.0738409609,
0.2687285542,
-0.0252670087,
0.3849052489,
-0.4096691608,
0.2747508287,
-0.1608559936,
-0.3426372409,
-0.0414936393,
0.1178344116,
0.0767929479,
0.3193479478,
0.0821505487,
-0.0379421599,
0.0348788053,
0.0631608665,
-0.5235251188,
-0.2149444073,
0.6017241478,
-0.43991974,
-0.0485644899,
-0.0070457458,
0.2270690054,
0.1117746383,
-0.1416444331,
-0.4197170138,
0.1078704894,
0.2636762857,
0.1084359884,
-0.0447179303,
0.3393391669,
0.2886269987,
0.1458835602,
-0.0916724205,
0.1939835548,
0.1492436081,
-0.1321776211,
-0.130217284,
-0.3663118184
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | @dorlavie could use `boto3` to download the data to your local machine and then load it with `dataset`
boto3 example [documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-example-download-file.html)
```python
import boto3
s3 = boto3.client('s3')
s3.download_file('BUCKET_NAME', 'OBJECT_NAME', 'FILE_NAME')
```
datasets example [documentation](https://huggingface.co/docs/datasets/loading_datasets.html)
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files=['my_file_1.csv', 'my_file_2.csv', 'my_file_3.csv'])
```
| In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 46 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
@dorlavie could use `boto3` to download the data to your local machine and then load it with `dataset`
boto3 example [documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-example-download-file.html)
```python
import boto3
s3 = boto3.client('s3')
s3.download_file('BUCKET_NAME', 'OBJECT_NAME', 'FILE_NAME')
```
datasets example [documentation](https://huggingface.co/docs/datasets/loading_datasets.html)
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files=['my_file_1.csv', 'my_file_2.csv', 'my_file_3.csv'])
```
| [
-0.2508122921,
-0.2407750189,
-0.053151913,
0.5038032532,
0.242677778,
0.0379797071,
0.4234100878,
0.230223,
0.0534567088,
0.0122714564,
-0.0213178508,
0.3855960071,
-0.2364186645,
0.408721447,
-0.0733913407,
0.151946947,
0.0036895536,
0.1174417138,
0.2415751517,
0.1663118005,
-0.0428828485,
0.2773866653,
-0.0571361855,
0.1090653166,
-0.1840190589,
0.0136173368,
0.0146281347,
0.3506193161,
-0.0750774443,
-0.508487165,
0.0108170286,
-0.0190766435,
0.4783014059,
0.3833350241,
-0.0001139213,
-0.0286530107,
0.3157632053,
0.0450193211,
-0.4229222834,
-0.3848213553,
-0.5591979623,
0.1110934243,
0.152659148,
-0.037460804,
-0.3507243097,
-0.0653409362,
-0.3116800785,
-0.2656853199,
0.4028449953,
0.6623778343,
0.1782038957,
0.1914704144,
-0.0731052235,
-0.3078445196,
0.2821200788,
0.0203727316,
0.001827538,
0.222032994,
-0.2715067565,
0.1779976189,
0.2951637208,
0.27099967,
-0.4019233882,
0.1139449477,
0.5365957618,
0.0304872356,
0.3513380885,
0.0784729347,
0.1274640411,
0.170570448,
0.5801001191,
-0.1361254007,
-0.4543988705,
-0.184920162,
-0.2141833156,
-0.2824923396,
0.1915269047,
0.0894623101,
0.0374887846,
0.0282421689,
-0.0464705117,
-0.0466802269,
-0.0988202244,
0.2466036081,
0.0339194536,
0.4405600131,
-0.278003931,
0.0633560568,
0.2615092993,
0.0703381896,
0.3421873152,
-0.1132725403,
0.0181237571,
0.0466641746,
-0.2519853115,
0.1674022675,
-0.0153581053,
0.2122866809,
-0.0699798092,
0.1938643456,
0.3034310937,
-0.0739921033,
0.3996635973,
0.2401906699,
0.3883316517,
-0.1680291742,
0.0913823843,
0.0003883317,
-0.0994114131,
0.4869208634,
0.0785984099,
-0.1934861839,
-0.3133123219,
-0.5367276073,
0.1240957007,
0.2688180804,
0.3971945643,
-0.3510358632,
-0.2658776045,
-0.0860201716,
-0.1192130968,
-0.1965766251,
0.2694830298,
0.4972227514,
-0.3471298814,
-0.1139851063,
-0.1179712266,
0.2110883296,
-0.2143540382,
0.0854031444,
-0.1983183771,
0.2434529662,
-0.3190574646,
0.0227506161,
0.1486800909,
-0.5799322724,
0.5168523788,
-0.0738640726,
0.0051260088,
-0.3440083265,
0.1492897719,
-0.2164644897,
0.1777613908,
0.1814398468,
0.1935319304,
0.2570757866,
-0.053781189,
-0.0760165229,
-0.1820333004,
0.0855756328,
-0.1849055886,
-0.4797710776,
0.0412797332,
0.2240626812,
-0.2657830119,
-0.1602723002,
-0.059421394,
-0.1859487593,
0.278168112,
-0.0984314531,
-0.388699472,
0.0453322865,
-0.1181020439,
-0.2207809091,
0.4690742195,
0.3192172647,
-0.3537423313,
0.108596459,
-0.471652627,
0.1138470098,
0.0835108086,
0.2105171233,
-0.3659236729,
0.4489597976,
-0.3048422337,
0.1328934878,
0.5610038638,
-0.2565932572,
0.0060540549,
0.0853614658,
-0.0421510339,
-0.1606777906,
0.1342203468,
-0.0630413368,
-0.1340710372,
-0.1085646451,
0.0167826004,
0.3441393971,
0.0382877886,
0.0388527587,
-0.1566991508,
-0.0247691497,
0.1257414222,
0.2443984449,
0.1100834981,
-0.0220541693,
-0.0373708569,
-0.1964022815,
-0.0556684695,
-0.1184007078,
-0.0434883498,
0.4679802656,
0.273306489,
0.3011099696,
-0.0028270967,
0.1516499519,
-0.2742569745,
0.1333040446,
0.0448957309,
-0.2772717178,
-0.0668593645,
0.0106650814,
-0.2895230353,
0.0034125,
-0.4520743191,
0.0989075229,
0.105307959,
0.3138039112,
0.232626766,
-0.0971176401,
-0.11902266,
-0.3059861958,
0.3305369318,
-0.0151230786,
-0.3088083565,
0.1135312244,
-0.4051385522,
-0.0548963249,
0.0869038552,
0.0439935513,
0.1716849804,
0.1176357418,
0.0150819719,
0.1787699163,
0.1243598983,
0.2274497151,
-0.214469105,
0.1562111378,
-0.1199651733,
0.030692704,
0.179736495,
-0.1334500909,
0.1356185228,
0.0835731328,
-0.0444401987,
0.4771923423,
-0.0267101657,
0.1894393861,
0.1397071481,
0.0150927156,
0.2696094513,
-0.1694878042,
-0.0204149708,
-0.1353711635,
0.0476757213,
-0.1200013906,
0.1146691442,
0.0762752369,
-0.0729279369,
-0.1295491308,
0.3834595084,
0.0959832221,
-0.0108043421,
-0.2696368098,
-0.2296588868,
-0.1449699402,
0.0653624907,
0.4955296814,
0.3665237427,
0.2210590243,
0.0965467915,
-0.0355796516,
-0.0539808124,
-0.1855219305,
0.2379354537,
0.423758775,
0.4380970001,
0.3556295931,
-0.378128022,
-0.0747241378,
-0.2402070761,
-0.1607339978,
0.1642104089,
0.28225106,
-0.4002408981,
0.189003706,
-0.0598932132,
-0.1696400344,
-0.2982713282,
-0.3548650742,
-0.1032038555,
-0.2554684579,
-0.1192266494,
0.2769101858,
-0.2668561637,
-0.0272915661,
0.0960365906,
0.0128377974,
-0.0740058869,
-0.0552990325,
-0.3418390155,
-0.2471808493,
-0.1704051346,
0.0550118834,
0.2183097601,
0.0958849043,
0.2658968568,
-0.1865485013,
0.108301267,
-0.4633398354,
-0.0825943574,
-0.0176456831,
-0.0080974074,
0.3024949431,
0.2742296755,
0.080207631,
0.2997993529,
-0.2465779185,
0.4653754234,
-0.012098249,
0.0204352662,
0.2364754975,
-0.0213384535,
-0.1121436357,
-0.0333962142,
-0.3809584379,
0.0699733645,
-0.4534810185,
-0.3755662143,
0.0112921372,
0.1440525353,
0.2753454447,
0.3328950107,
0.2299250364,
-0.2099562287,
0.3361963928,
-0.2096320242,
-0.203705281,
0.1267782003,
-0.2523743212,
-0.2639801502,
0.3304710388,
-0.0450134575,
0.8056793213,
-0.1035314575,
-0.2581115961,
-0.0281819738,
0.0541549176,
-0.3135479093,
-0.1422805637,
-0.2467390746,
0.3080141544,
0.208803907,
-0.085646823,
-0.0078175962,
-0.3258492649,
0.0911113024,
-0.2148192823,
0.2122523636,
-0.2017769814,
0.8904489279,
-0.0051942468,
0.4429087341,
0.1470211297,
-0.2118462622,
0.4529936016,
-0.1063800827,
0.1824466437,
-0.104823783,
-0.2602480948,
-0.1180831641,
0.1664526463,
-0.2900655866,
0.1482968926,
-0.2593996823,
-0.0632350594,
-0.2945415974,
0.0631958544,
-0.3335373998,
-0.2166403979,
0.0108935554,
-0.264600426,
0.1334774345,
-0.1084318832,
0.0371412784,
-0.0522481799,
0.1782279313,
0.1964561641,
0.2740252018,
0.1798411012,
-0.036095757,
-0.2892716527,
-0.022856541,
-0.3024624586,
0.3309326172,
-0.044929225,
0.1445601285,
-0.1725997031,
-0.2284809798,
0.1085915416,
-0.212063536,
0.5687651038,
-0.2886081338,
0.0759902745,
0.2566809654,
-0.1874072552,
-0.4711463153,
-0.2658159137,
-0.0675031841,
0.2460011393,
0.0289373696,
0.4087799489,
-0.1191494465,
-0.4835369885,
0.1473178864,
-0.0567419156,
-0.0862189904,
-0.2047347277,
-0.3479644656,
-0.1231659055,
-0.3823905885,
-0.0772969946,
-0.0697867051,
0.3470997512,
0.0993612781,
-0.2050056756,
0.0540420189,
0.0844750702,
0.0261744801,
-0.0463369042,
0.4726719856,
0.0330606848,
0.2310327441,
0.272346437,
0.3769772053,
0.1094537973,
0.3990900815,
0.2031018883,
-0.4686411619,
-0.1039527655,
0.030714158,
0.4628862143,
-0.0234799162,
-0.1841687411,
0.1056568325,
0.1430653632,
0.1544756889,
-0.169170633,
0.1093407869,
0.4040110111,
0.0435303673,
-0.305380553,
-0.5429389477,
-0.0136749037,
0.0826763213,
0.0919230133,
-0.0626311153,
-0.3203948736,
-0.2080415785,
0.2609344125,
0.4015893042,
0.6901732087,
-0.0723920837,
0.2966909707,
0.558742404,
0.0910604224,
0.0016885139,
0.2774417996,
-0.1042707711,
-0.5139324665,
0.1954909265,
0.0833371282,
-0.1815756261,
-0.009393001,
0.2339335978,
-0.1757295728,
0.205243364,
-0.2196787298,
0.0933760405,
-0.1733640134,
0.1602139473,
-0.1688348353,
-0.0502106026,
-0.121875897,
0.0497321114,
-0.0692730993,
0.0820501745,
-0.1036419719,
-0.2097411454,
0.0337740332,
-0.2309397161,
0.0748142004,
0.2753436863,
0.0081000589,
0.0343263149,
-0.2805513144,
-0.1951712072,
0.1213373244,
0.244719848,
0.3164096773,
0.0351310931,
-0.0893454179,
0.1010993719,
-0.3682292998,
-0.2763565481,
-0.2608577609,
-0.095642671,
0.1849868894,
-0.2108018547,
-0.0499801412,
0.1240622327,
-0.0613716692,
-0.3762868047,
-0.033586055,
-0.0350454859,
0.2754877508,
-0.4317028224,
-0.2545204461,
-0.1319123209,
-0.1161125153,
-0.1919200122,
0.1608150899,
0.2287706137,
-0.1201414615,
0.0152175957,
-0.1504315138,
-0.2745189667,
0.0584030375,
0.5248115063,
-0.1016797125,
0.1521700919,
0.6307948232,
0.0710353553,
-0.1138499007,
-0.2894230485,
-0.2996490002,
0.018357195,
-0.290943563,
0.1833910346,
0.2434941977,
-0.0689215958,
0.2441025376,
0.3077546656,
0.1714058518,
-0.098984167,
-0.050826747,
-0.5483647585,
-0.0284052566,
0.0474093743,
-0.1534880698,
0.3620047569,
0.1767349243,
-0.322078526,
-0.0817600042,
-0.1770448536,
-0.2993301749,
0.0011036731,
-0.1198002398,
0.2405625135,
-0.2157942653,
-0.2780372202,
0.2113569677,
0.0620968342,
0.1622254252,
-0.355820477,
-0.0777114034,
-0.2533760071,
-0.0681319758,
0.1221703291,
0.1441826373,
0.0095418356,
0.1336417347,
-0.1444760263,
-0.3320432901,
-0.1306843013,
0.0670904666,
0.1010916457,
-0.0039908439,
0.2840555906,
0.0924805701,
0.0219093859,
-0.1482170075,
-0.1065013334,
-0.1994542181,
-0.1743007004,
0.008559417,
0.2015720308,
-0.1814139783,
-0.2146721184,
0.0438420214,
0.003067499,
0.0793970078,
0.0792408958,
0.3128162026,
-0.46475631,
0.0515680611,
0.1602489352,
0.505522728,
0.3906168044,
-0.0799039155,
0.2140351236,
0.3118723333,
0.2381580919,
-0.1135244071,
-0.2740478814,
-0.1960723102,
-0.2340989113,
-0.0069743991,
-0.0698655546,
-0.0677563623,
0.0582613349,
0.2001814693,
-0.0457282811,
0.1784252375,
0.1480002105,
0.1270188987,
0.2794733942,
-0.3211748004,
0.0406143479,
0.2804031074,
0.1732442975,
0.144983083,
0.3777579665,
-0.1555615216,
0.1443802267,
-0.2752650082,
0.1954726279,
-0.1280414164,
-0.6779034734,
0.1011460871,
0.0413989089,
-0.0967222825,
-0.0895920694,
-0.1370326877,
0.3286107779,
0.0310609899,
0.0625444204,
-0.3678518534,
0.0839883313,
-0.1466528475,
-0.0880455524,
-0.3406412899,
0.00762631,
-0.0325514972,
0.1551524103,
0.1516607702,
-0.0349878781,
-0.0857885182,
0.0875554681,
-0.0400346965,
-0.0436643213,
0.0709552467,
0.3961871564,
-0.2319026291,
-0.4020036459,
0.1886531562,
-0.1219381839,
-0.0789999664,
0.0003446508,
0.071505405,
0.5281404853,
0.3324438035,
0.1592496783,
0.0043607727,
-0.0478786826,
-0.1837078929,
-0.0530144721,
0.0596841909,
0.1682321429,
0.3104562461,
0.4630708098,
0.1703825891,
-0.1467409432,
0.1241715401,
-0.1453260481,
0.3208074272,
-0.0304009542,
0.1715202928,
0.1750355512,
-0.240303576,
-0.2071766704,
0.2140193433,
-0.5623787642,
-0.2455458343,
0.3704133034,
0.0733890757,
0.0577127822,
-0.1164957434,
0.0590369813,
0.169428125,
0.5225660205,
0.1972421855,
0.3079324067,
-0.4567182064,
-0.0008987635,
-0.5817424059,
-0.0127126426,
0.1645321995,
0.2716321349,
0.1598728448,
0.1856325269,
-0.2448571622,
-0.0757827312,
0.2462039292,
0.2971829176,
0.1082026809,
0.233815819,
-0.1574125886,
-0.1347533613,
0.151497677,
-0.1274894178,
0.0899901018,
-0.1791542917,
0.0747644156,
-0.047214061,
0.0362292752,
-0.2751493454,
0.0237010866,
0.0012945235,
-0.1667187065,
0.5104472041,
-0.2578533292,
0.4464900196,
-0.0321036242,
0.1099808142,
-0.4661691487,
0.0489511788,
-0.1495847702,
0.1149455011,
0.0738409609,
0.2687285542,
-0.0252670087,
0.3849052489,
-0.4096691608,
0.2747508287,
-0.1608559936,
-0.3426372409,
-0.0414936393,
0.1178344116,
0.0767929479,
0.3193479478,
0.0821505487,
-0.0379421599,
0.0348788053,
0.0631608665,
-0.5235251188,
-0.2149444073,
0.6017241478,
-0.43991974,
-0.0485644899,
-0.0070457458,
0.2270690054,
0.1117746383,
-0.1416444331,
-0.4197170138,
0.1078704894,
0.2636762857,
0.1084359884,
-0.0447179303,
0.3393391669,
0.2886269987,
0.1458835602,
-0.0916724205,
0.1939835548,
0.1492436081,
-0.1321776211,
-0.130217284,
-0.3663118184
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | Thanks @philschmid for the suggestion.
As I mentioned in the previous comment, due to security issues I can not save the data locally.
I need to read it from S3 and process it directly.
I guess that many other people try to train / fit those models on huge datasets (e.g entire Wiki), what is the best practice in those cases? | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 61 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
Thanks @philschmid for the suggestion.
As I mentioned in the previous comment, due to security issues I can not save the data locally.
I need to read it from S3 and process it directly.
I guess that many other people try to train / fit those models on huge datasets (e.g entire Wiki), what is the best practice in those cases? | [
-0.2508122921,
-0.2407750189,
-0.053151913,
0.5038032532,
0.242677778,
0.0379797071,
0.4234100878,
0.230223,
0.0534567088,
0.0122714564,
-0.0213178508,
0.3855960071,
-0.2364186645,
0.408721447,
-0.0733913407,
0.151946947,
0.0036895536,
0.1174417138,
0.2415751517,
0.1663118005,
-0.0428828485,
0.2773866653,
-0.0571361855,
0.1090653166,
-0.1840190589,
0.0136173368,
0.0146281347,
0.3506193161,
-0.0750774443,
-0.508487165,
0.0108170286,
-0.0190766435,
0.4783014059,
0.3833350241,
-0.0001139213,
-0.0286530107,
0.3157632053,
0.0450193211,
-0.4229222834,
-0.3848213553,
-0.5591979623,
0.1110934243,
0.152659148,
-0.037460804,
-0.3507243097,
-0.0653409362,
-0.3116800785,
-0.2656853199,
0.4028449953,
0.6623778343,
0.1782038957,
0.1914704144,
-0.0731052235,
-0.3078445196,
0.2821200788,
0.0203727316,
0.001827538,
0.222032994,
-0.2715067565,
0.1779976189,
0.2951637208,
0.27099967,
-0.4019233882,
0.1139449477,
0.5365957618,
0.0304872356,
0.3513380885,
0.0784729347,
0.1274640411,
0.170570448,
0.5801001191,
-0.1361254007,
-0.4543988705,
-0.184920162,
-0.2141833156,
-0.2824923396,
0.1915269047,
0.0894623101,
0.0374887846,
0.0282421689,
-0.0464705117,
-0.0466802269,
-0.0988202244,
0.2466036081,
0.0339194536,
0.4405600131,
-0.278003931,
0.0633560568,
0.2615092993,
0.0703381896,
0.3421873152,
-0.1132725403,
0.0181237571,
0.0466641746,
-0.2519853115,
0.1674022675,
-0.0153581053,
0.2122866809,
-0.0699798092,
0.1938643456,
0.3034310937,
-0.0739921033,
0.3996635973,
0.2401906699,
0.3883316517,
-0.1680291742,
0.0913823843,
0.0003883317,
-0.0994114131,
0.4869208634,
0.0785984099,
-0.1934861839,
-0.3133123219,
-0.5367276073,
0.1240957007,
0.2688180804,
0.3971945643,
-0.3510358632,
-0.2658776045,
-0.0860201716,
-0.1192130968,
-0.1965766251,
0.2694830298,
0.4972227514,
-0.3471298814,
-0.1139851063,
-0.1179712266,
0.2110883296,
-0.2143540382,
0.0854031444,
-0.1983183771,
0.2434529662,
-0.3190574646,
0.0227506161,
0.1486800909,
-0.5799322724,
0.5168523788,
-0.0738640726,
0.0051260088,
-0.3440083265,
0.1492897719,
-0.2164644897,
0.1777613908,
0.1814398468,
0.1935319304,
0.2570757866,
-0.053781189,
-0.0760165229,
-0.1820333004,
0.0855756328,
-0.1849055886,
-0.4797710776,
0.0412797332,
0.2240626812,
-0.2657830119,
-0.1602723002,
-0.059421394,
-0.1859487593,
0.278168112,
-0.0984314531,
-0.388699472,
0.0453322865,
-0.1181020439,
-0.2207809091,
0.4690742195,
0.3192172647,
-0.3537423313,
0.108596459,
-0.471652627,
0.1138470098,
0.0835108086,
0.2105171233,
-0.3659236729,
0.4489597976,
-0.3048422337,
0.1328934878,
0.5610038638,
-0.2565932572,
0.0060540549,
0.0853614658,
-0.0421510339,
-0.1606777906,
0.1342203468,
-0.0630413368,
-0.1340710372,
-0.1085646451,
0.0167826004,
0.3441393971,
0.0382877886,
0.0388527587,
-0.1566991508,
-0.0247691497,
0.1257414222,
0.2443984449,
0.1100834981,
-0.0220541693,
-0.0373708569,
-0.1964022815,
-0.0556684695,
-0.1184007078,
-0.0434883498,
0.4679802656,
0.273306489,
0.3011099696,
-0.0028270967,
0.1516499519,
-0.2742569745,
0.1333040446,
0.0448957309,
-0.2772717178,
-0.0668593645,
0.0106650814,
-0.2895230353,
0.0034125,
-0.4520743191,
0.0989075229,
0.105307959,
0.3138039112,
0.232626766,
-0.0971176401,
-0.11902266,
-0.3059861958,
0.3305369318,
-0.0151230786,
-0.3088083565,
0.1135312244,
-0.4051385522,
-0.0548963249,
0.0869038552,
0.0439935513,
0.1716849804,
0.1176357418,
0.0150819719,
0.1787699163,
0.1243598983,
0.2274497151,
-0.214469105,
0.1562111378,
-0.1199651733,
0.030692704,
0.179736495,
-0.1334500909,
0.1356185228,
0.0835731328,
-0.0444401987,
0.4771923423,
-0.0267101657,
0.1894393861,
0.1397071481,
0.0150927156,
0.2696094513,
-0.1694878042,
-0.0204149708,
-0.1353711635,
0.0476757213,
-0.1200013906,
0.1146691442,
0.0762752369,
-0.0729279369,
-0.1295491308,
0.3834595084,
0.0959832221,
-0.0108043421,
-0.2696368098,
-0.2296588868,
-0.1449699402,
0.0653624907,
0.4955296814,
0.3665237427,
0.2210590243,
0.0965467915,
-0.0355796516,
-0.0539808124,
-0.1855219305,
0.2379354537,
0.423758775,
0.4380970001,
0.3556295931,
-0.378128022,
-0.0747241378,
-0.2402070761,
-0.1607339978,
0.1642104089,
0.28225106,
-0.4002408981,
0.189003706,
-0.0598932132,
-0.1696400344,
-0.2982713282,
-0.3548650742,
-0.1032038555,
-0.2554684579,
-0.1192266494,
0.2769101858,
-0.2668561637,
-0.0272915661,
0.0960365906,
0.0128377974,
-0.0740058869,
-0.0552990325,
-0.3418390155,
-0.2471808493,
-0.1704051346,
0.0550118834,
0.2183097601,
0.0958849043,
0.2658968568,
-0.1865485013,
0.108301267,
-0.4633398354,
-0.0825943574,
-0.0176456831,
-0.0080974074,
0.3024949431,
0.2742296755,
0.080207631,
0.2997993529,
-0.2465779185,
0.4653754234,
-0.012098249,
0.0204352662,
0.2364754975,
-0.0213384535,
-0.1121436357,
-0.0333962142,
-0.3809584379,
0.0699733645,
-0.4534810185,
-0.3755662143,
0.0112921372,
0.1440525353,
0.2753454447,
0.3328950107,
0.2299250364,
-0.2099562287,
0.3361963928,
-0.2096320242,
-0.203705281,
0.1267782003,
-0.2523743212,
-0.2639801502,
0.3304710388,
-0.0450134575,
0.8056793213,
-0.1035314575,
-0.2581115961,
-0.0281819738,
0.0541549176,
-0.3135479093,
-0.1422805637,
-0.2467390746,
0.3080141544,
0.208803907,
-0.085646823,
-0.0078175962,
-0.3258492649,
0.0911113024,
-0.2148192823,
0.2122523636,
-0.2017769814,
0.8904489279,
-0.0051942468,
0.4429087341,
0.1470211297,
-0.2118462622,
0.4529936016,
-0.1063800827,
0.1824466437,
-0.104823783,
-0.2602480948,
-0.1180831641,
0.1664526463,
-0.2900655866,
0.1482968926,
-0.2593996823,
-0.0632350594,
-0.2945415974,
0.0631958544,
-0.3335373998,
-0.2166403979,
0.0108935554,
-0.264600426,
0.1334774345,
-0.1084318832,
0.0371412784,
-0.0522481799,
0.1782279313,
0.1964561641,
0.2740252018,
0.1798411012,
-0.036095757,
-0.2892716527,
-0.022856541,
-0.3024624586,
0.3309326172,
-0.044929225,
0.1445601285,
-0.1725997031,
-0.2284809798,
0.1085915416,
-0.212063536,
0.5687651038,
-0.2886081338,
0.0759902745,
0.2566809654,
-0.1874072552,
-0.4711463153,
-0.2658159137,
-0.0675031841,
0.2460011393,
0.0289373696,
0.4087799489,
-0.1191494465,
-0.4835369885,
0.1473178864,
-0.0567419156,
-0.0862189904,
-0.2047347277,
-0.3479644656,
-0.1231659055,
-0.3823905885,
-0.0772969946,
-0.0697867051,
0.3470997512,
0.0993612781,
-0.2050056756,
0.0540420189,
0.0844750702,
0.0261744801,
-0.0463369042,
0.4726719856,
0.0330606848,
0.2310327441,
0.272346437,
0.3769772053,
0.1094537973,
0.3990900815,
0.2031018883,
-0.4686411619,
-0.1039527655,
0.030714158,
0.4628862143,
-0.0234799162,
-0.1841687411,
0.1056568325,
0.1430653632,
0.1544756889,
-0.169170633,
0.1093407869,
0.4040110111,
0.0435303673,
-0.305380553,
-0.5429389477,
-0.0136749037,
0.0826763213,
0.0919230133,
-0.0626311153,
-0.3203948736,
-0.2080415785,
0.2609344125,
0.4015893042,
0.6901732087,
-0.0723920837,
0.2966909707,
0.558742404,
0.0910604224,
0.0016885139,
0.2774417996,
-0.1042707711,
-0.5139324665,
0.1954909265,
0.0833371282,
-0.1815756261,
-0.009393001,
0.2339335978,
-0.1757295728,
0.205243364,
-0.2196787298,
0.0933760405,
-0.1733640134,
0.1602139473,
-0.1688348353,
-0.0502106026,
-0.121875897,
0.0497321114,
-0.0692730993,
0.0820501745,
-0.1036419719,
-0.2097411454,
0.0337740332,
-0.2309397161,
0.0748142004,
0.2753436863,
0.0081000589,
0.0343263149,
-0.2805513144,
-0.1951712072,
0.1213373244,
0.244719848,
0.3164096773,
0.0351310931,
-0.0893454179,
0.1010993719,
-0.3682292998,
-0.2763565481,
-0.2608577609,
-0.095642671,
0.1849868894,
-0.2108018547,
-0.0499801412,
0.1240622327,
-0.0613716692,
-0.3762868047,
-0.033586055,
-0.0350454859,
0.2754877508,
-0.4317028224,
-0.2545204461,
-0.1319123209,
-0.1161125153,
-0.1919200122,
0.1608150899,
0.2287706137,
-0.1201414615,
0.0152175957,
-0.1504315138,
-0.2745189667,
0.0584030375,
0.5248115063,
-0.1016797125,
0.1521700919,
0.6307948232,
0.0710353553,
-0.1138499007,
-0.2894230485,
-0.2996490002,
0.018357195,
-0.290943563,
0.1833910346,
0.2434941977,
-0.0689215958,
0.2441025376,
0.3077546656,
0.1714058518,
-0.098984167,
-0.050826747,
-0.5483647585,
-0.0284052566,
0.0474093743,
-0.1534880698,
0.3620047569,
0.1767349243,
-0.322078526,
-0.0817600042,
-0.1770448536,
-0.2993301749,
0.0011036731,
-0.1198002398,
0.2405625135,
-0.2157942653,
-0.2780372202,
0.2113569677,
0.0620968342,
0.1622254252,
-0.355820477,
-0.0777114034,
-0.2533760071,
-0.0681319758,
0.1221703291,
0.1441826373,
0.0095418356,
0.1336417347,
-0.1444760263,
-0.3320432901,
-0.1306843013,
0.0670904666,
0.1010916457,
-0.0039908439,
0.2840555906,
0.0924805701,
0.0219093859,
-0.1482170075,
-0.1065013334,
-0.1994542181,
-0.1743007004,
0.008559417,
0.2015720308,
-0.1814139783,
-0.2146721184,
0.0438420214,
0.003067499,
0.0793970078,
0.0792408958,
0.3128162026,
-0.46475631,
0.0515680611,
0.1602489352,
0.505522728,
0.3906168044,
-0.0799039155,
0.2140351236,
0.3118723333,
0.2381580919,
-0.1135244071,
-0.2740478814,
-0.1960723102,
-0.2340989113,
-0.0069743991,
-0.0698655546,
-0.0677563623,
0.0582613349,
0.2001814693,
-0.0457282811,
0.1784252375,
0.1480002105,
0.1270188987,
0.2794733942,
-0.3211748004,
0.0406143479,
0.2804031074,
0.1732442975,
0.144983083,
0.3777579665,
-0.1555615216,
0.1443802267,
-0.2752650082,
0.1954726279,
-0.1280414164,
-0.6779034734,
0.1011460871,
0.0413989089,
-0.0967222825,
-0.0895920694,
-0.1370326877,
0.3286107779,
0.0310609899,
0.0625444204,
-0.3678518534,
0.0839883313,
-0.1466528475,
-0.0880455524,
-0.3406412899,
0.00762631,
-0.0325514972,
0.1551524103,
0.1516607702,
-0.0349878781,
-0.0857885182,
0.0875554681,
-0.0400346965,
-0.0436643213,
0.0709552467,
0.3961871564,
-0.2319026291,
-0.4020036459,
0.1886531562,
-0.1219381839,
-0.0789999664,
0.0003446508,
0.071505405,
0.5281404853,
0.3324438035,
0.1592496783,
0.0043607727,
-0.0478786826,
-0.1837078929,
-0.0530144721,
0.0596841909,
0.1682321429,
0.3104562461,
0.4630708098,
0.1703825891,
-0.1467409432,
0.1241715401,
-0.1453260481,
0.3208074272,
-0.0304009542,
0.1715202928,
0.1750355512,
-0.240303576,
-0.2071766704,
0.2140193433,
-0.5623787642,
-0.2455458343,
0.3704133034,
0.0733890757,
0.0577127822,
-0.1164957434,
0.0590369813,
0.169428125,
0.5225660205,
0.1972421855,
0.3079324067,
-0.4567182064,
-0.0008987635,
-0.5817424059,
-0.0127126426,
0.1645321995,
0.2716321349,
0.1598728448,
0.1856325269,
-0.2448571622,
-0.0757827312,
0.2462039292,
0.2971829176,
0.1082026809,
0.233815819,
-0.1574125886,
-0.1347533613,
0.151497677,
-0.1274894178,
0.0899901018,
-0.1791542917,
0.0747644156,
-0.047214061,
0.0362292752,
-0.2751493454,
0.0237010866,
0.0012945235,
-0.1667187065,
0.5104472041,
-0.2578533292,
0.4464900196,
-0.0321036242,
0.1099808142,
-0.4661691487,
0.0489511788,
-0.1495847702,
0.1149455011,
0.0738409609,
0.2687285542,
-0.0252670087,
0.3849052489,
-0.4096691608,
0.2747508287,
-0.1608559936,
-0.3426372409,
-0.0414936393,
0.1178344116,
0.0767929479,
0.3193479478,
0.0821505487,
-0.0379421599,
0.0348788053,
0.0631608665,
-0.5235251188,
-0.2149444073,
0.6017241478,
-0.43991974,
-0.0485644899,
-0.0070457458,
0.2270690054,
0.1117746383,
-0.1416444331,
-0.4197170138,
0.1078704894,
0.2636762857,
0.1084359884,
-0.0447179303,
0.3393391669,
0.2886269987,
0.1458835602,
-0.0916724205,
0.1939835548,
0.1492436081,
-0.1321776211,
-0.130217284,
-0.3663118184
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | If I understand correctly you're not allowed to write data on disk that you downloaded from S3 for example ?
Or is it the use of the `boto3` library that is not allowed in your case ? | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 37 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
If I understand correctly you're not allowed to write data on disk that you downloaded from S3 for example ?
Or is it the use of the `boto3` library that is not allowed in your case ? | [
-0.2508122921,
-0.2407750189,
-0.053151913,
0.5038032532,
0.242677778,
0.0379797071,
0.4234100878,
0.230223,
0.0534567088,
0.0122714564,
-0.0213178508,
0.3855960071,
-0.2364186645,
0.408721447,
-0.0733913407,
0.151946947,
0.0036895536,
0.1174417138,
0.2415751517,
0.1663118005,
-0.0428828485,
0.2773866653,
-0.0571361855,
0.1090653166,
-0.1840190589,
0.0136173368,
0.0146281347,
0.3506193161,
-0.0750774443,
-0.508487165,
0.0108170286,
-0.0190766435,
0.4783014059,
0.3833350241,
-0.0001139213,
-0.0286530107,
0.3157632053,
0.0450193211,
-0.4229222834,
-0.3848213553,
-0.5591979623,
0.1110934243,
0.152659148,
-0.037460804,
-0.3507243097,
-0.0653409362,
-0.3116800785,
-0.2656853199,
0.4028449953,
0.6623778343,
0.1782038957,
0.1914704144,
-0.0731052235,
-0.3078445196,
0.2821200788,
0.0203727316,
0.001827538,
0.222032994,
-0.2715067565,
0.1779976189,
0.2951637208,
0.27099967,
-0.4019233882,
0.1139449477,
0.5365957618,
0.0304872356,
0.3513380885,
0.0784729347,
0.1274640411,
0.170570448,
0.5801001191,
-0.1361254007,
-0.4543988705,
-0.184920162,
-0.2141833156,
-0.2824923396,
0.1915269047,
0.0894623101,
0.0374887846,
0.0282421689,
-0.0464705117,
-0.0466802269,
-0.0988202244,
0.2466036081,
0.0339194536,
0.4405600131,
-0.278003931,
0.0633560568,
0.2615092993,
0.0703381896,
0.3421873152,
-0.1132725403,
0.0181237571,
0.0466641746,
-0.2519853115,
0.1674022675,
-0.0153581053,
0.2122866809,
-0.0699798092,
0.1938643456,
0.3034310937,
-0.0739921033,
0.3996635973,
0.2401906699,
0.3883316517,
-0.1680291742,
0.0913823843,
0.0003883317,
-0.0994114131,
0.4869208634,
0.0785984099,
-0.1934861839,
-0.3133123219,
-0.5367276073,
0.1240957007,
0.2688180804,
0.3971945643,
-0.3510358632,
-0.2658776045,
-0.0860201716,
-0.1192130968,
-0.1965766251,
0.2694830298,
0.4972227514,
-0.3471298814,
-0.1139851063,
-0.1179712266,
0.2110883296,
-0.2143540382,
0.0854031444,
-0.1983183771,
0.2434529662,
-0.3190574646,
0.0227506161,
0.1486800909,
-0.5799322724,
0.5168523788,
-0.0738640726,
0.0051260088,
-0.3440083265,
0.1492897719,
-0.2164644897,
0.1777613908,
0.1814398468,
0.1935319304,
0.2570757866,
-0.053781189,
-0.0760165229,
-0.1820333004,
0.0855756328,
-0.1849055886,
-0.4797710776,
0.0412797332,
0.2240626812,
-0.2657830119,
-0.1602723002,
-0.059421394,
-0.1859487593,
0.278168112,
-0.0984314531,
-0.388699472,
0.0453322865,
-0.1181020439,
-0.2207809091,
0.4690742195,
0.3192172647,
-0.3537423313,
0.108596459,
-0.471652627,
0.1138470098,
0.0835108086,
0.2105171233,
-0.3659236729,
0.4489597976,
-0.3048422337,
0.1328934878,
0.5610038638,
-0.2565932572,
0.0060540549,
0.0853614658,
-0.0421510339,
-0.1606777906,
0.1342203468,
-0.0630413368,
-0.1340710372,
-0.1085646451,
0.0167826004,
0.3441393971,
0.0382877886,
0.0388527587,
-0.1566991508,
-0.0247691497,
0.1257414222,
0.2443984449,
0.1100834981,
-0.0220541693,
-0.0373708569,
-0.1964022815,
-0.0556684695,
-0.1184007078,
-0.0434883498,
0.4679802656,
0.273306489,
0.3011099696,
-0.0028270967,
0.1516499519,
-0.2742569745,
0.1333040446,
0.0448957309,
-0.2772717178,
-0.0668593645,
0.0106650814,
-0.2895230353,
0.0034125,
-0.4520743191,
0.0989075229,
0.105307959,
0.3138039112,
0.232626766,
-0.0971176401,
-0.11902266,
-0.3059861958,
0.3305369318,
-0.0151230786,
-0.3088083565,
0.1135312244,
-0.4051385522,
-0.0548963249,
0.0869038552,
0.0439935513,
0.1716849804,
0.1176357418,
0.0150819719,
0.1787699163,
0.1243598983,
0.2274497151,
-0.214469105,
0.1562111378,
-0.1199651733,
0.030692704,
0.179736495,
-0.1334500909,
0.1356185228,
0.0835731328,
-0.0444401987,
0.4771923423,
-0.0267101657,
0.1894393861,
0.1397071481,
0.0150927156,
0.2696094513,
-0.1694878042,
-0.0204149708,
-0.1353711635,
0.0476757213,
-0.1200013906,
0.1146691442,
0.0762752369,
-0.0729279369,
-0.1295491308,
0.3834595084,
0.0959832221,
-0.0108043421,
-0.2696368098,
-0.2296588868,
-0.1449699402,
0.0653624907,
0.4955296814,
0.3665237427,
0.2210590243,
0.0965467915,
-0.0355796516,
-0.0539808124,
-0.1855219305,
0.2379354537,
0.423758775,
0.4380970001,
0.3556295931,
-0.378128022,
-0.0747241378,
-0.2402070761,
-0.1607339978,
0.1642104089,
0.28225106,
-0.4002408981,
0.189003706,
-0.0598932132,
-0.1696400344,
-0.2982713282,
-0.3548650742,
-0.1032038555,
-0.2554684579,
-0.1192266494,
0.2769101858,
-0.2668561637,
-0.0272915661,
0.0960365906,
0.0128377974,
-0.0740058869,
-0.0552990325,
-0.3418390155,
-0.2471808493,
-0.1704051346,
0.0550118834,
0.2183097601,
0.0958849043,
0.2658968568,
-0.1865485013,
0.108301267,
-0.4633398354,
-0.0825943574,
-0.0176456831,
-0.0080974074,
0.3024949431,
0.2742296755,
0.080207631,
0.2997993529,
-0.2465779185,
0.4653754234,
-0.012098249,
0.0204352662,
0.2364754975,
-0.0213384535,
-0.1121436357,
-0.0333962142,
-0.3809584379,
0.0699733645,
-0.4534810185,
-0.3755662143,
0.0112921372,
0.1440525353,
0.2753454447,
0.3328950107,
0.2299250364,
-0.2099562287,
0.3361963928,
-0.2096320242,
-0.203705281,
0.1267782003,
-0.2523743212,
-0.2639801502,
0.3304710388,
-0.0450134575,
0.8056793213,
-0.1035314575,
-0.2581115961,
-0.0281819738,
0.0541549176,
-0.3135479093,
-0.1422805637,
-0.2467390746,
0.3080141544,
0.208803907,
-0.085646823,
-0.0078175962,
-0.3258492649,
0.0911113024,
-0.2148192823,
0.2122523636,
-0.2017769814,
0.8904489279,
-0.0051942468,
0.4429087341,
0.1470211297,
-0.2118462622,
0.4529936016,
-0.1063800827,
0.1824466437,
-0.104823783,
-0.2602480948,
-0.1180831641,
0.1664526463,
-0.2900655866,
0.1482968926,
-0.2593996823,
-0.0632350594,
-0.2945415974,
0.0631958544,
-0.3335373998,
-0.2166403979,
0.0108935554,
-0.264600426,
0.1334774345,
-0.1084318832,
0.0371412784,
-0.0522481799,
0.1782279313,
0.1964561641,
0.2740252018,
0.1798411012,
-0.036095757,
-0.2892716527,
-0.022856541,
-0.3024624586,
0.3309326172,
-0.044929225,
0.1445601285,
-0.1725997031,
-0.2284809798,
0.1085915416,
-0.212063536,
0.5687651038,
-0.2886081338,
0.0759902745,
0.2566809654,
-0.1874072552,
-0.4711463153,
-0.2658159137,
-0.0675031841,
0.2460011393,
0.0289373696,
0.4087799489,
-0.1191494465,
-0.4835369885,
0.1473178864,
-0.0567419156,
-0.0862189904,
-0.2047347277,
-0.3479644656,
-0.1231659055,
-0.3823905885,
-0.0772969946,
-0.0697867051,
0.3470997512,
0.0993612781,
-0.2050056756,
0.0540420189,
0.0844750702,
0.0261744801,
-0.0463369042,
0.4726719856,
0.0330606848,
0.2310327441,
0.272346437,
0.3769772053,
0.1094537973,
0.3990900815,
0.2031018883,
-0.4686411619,
-0.1039527655,
0.030714158,
0.4628862143,
-0.0234799162,
-0.1841687411,
0.1056568325,
0.1430653632,
0.1544756889,
-0.169170633,
0.1093407869,
0.4040110111,
0.0435303673,
-0.305380553,
-0.5429389477,
-0.0136749037,
0.0826763213,
0.0919230133,
-0.0626311153,
-0.3203948736,
-0.2080415785,
0.2609344125,
0.4015893042,
0.6901732087,
-0.0723920837,
0.2966909707,
0.558742404,
0.0910604224,
0.0016885139,
0.2774417996,
-0.1042707711,
-0.5139324665,
0.1954909265,
0.0833371282,
-0.1815756261,
-0.009393001,
0.2339335978,
-0.1757295728,
0.205243364,
-0.2196787298,
0.0933760405,
-0.1733640134,
0.1602139473,
-0.1688348353,
-0.0502106026,
-0.121875897,
0.0497321114,
-0.0692730993,
0.0820501745,
-0.1036419719,
-0.2097411454,
0.0337740332,
-0.2309397161,
0.0748142004,
0.2753436863,
0.0081000589,
0.0343263149,
-0.2805513144,
-0.1951712072,
0.1213373244,
0.244719848,
0.3164096773,
0.0351310931,
-0.0893454179,
0.1010993719,
-0.3682292998,
-0.2763565481,
-0.2608577609,
-0.095642671,
0.1849868894,
-0.2108018547,
-0.0499801412,
0.1240622327,
-0.0613716692,
-0.3762868047,
-0.033586055,
-0.0350454859,
0.2754877508,
-0.4317028224,
-0.2545204461,
-0.1319123209,
-0.1161125153,
-0.1919200122,
0.1608150899,
0.2287706137,
-0.1201414615,
0.0152175957,
-0.1504315138,
-0.2745189667,
0.0584030375,
0.5248115063,
-0.1016797125,
0.1521700919,
0.6307948232,
0.0710353553,
-0.1138499007,
-0.2894230485,
-0.2996490002,
0.018357195,
-0.290943563,
0.1833910346,
0.2434941977,
-0.0689215958,
0.2441025376,
0.3077546656,
0.1714058518,
-0.098984167,
-0.050826747,
-0.5483647585,
-0.0284052566,
0.0474093743,
-0.1534880698,
0.3620047569,
0.1767349243,
-0.322078526,
-0.0817600042,
-0.1770448536,
-0.2993301749,
0.0011036731,
-0.1198002398,
0.2405625135,
-0.2157942653,
-0.2780372202,
0.2113569677,
0.0620968342,
0.1622254252,
-0.355820477,
-0.0777114034,
-0.2533760071,
-0.0681319758,
0.1221703291,
0.1441826373,
0.0095418356,
0.1336417347,
-0.1444760263,
-0.3320432901,
-0.1306843013,
0.0670904666,
0.1010916457,
-0.0039908439,
0.2840555906,
0.0924805701,
0.0219093859,
-0.1482170075,
-0.1065013334,
-0.1994542181,
-0.1743007004,
0.008559417,
0.2015720308,
-0.1814139783,
-0.2146721184,
0.0438420214,
0.003067499,
0.0793970078,
0.0792408958,
0.3128162026,
-0.46475631,
0.0515680611,
0.1602489352,
0.505522728,
0.3906168044,
-0.0799039155,
0.2140351236,
0.3118723333,
0.2381580919,
-0.1135244071,
-0.2740478814,
-0.1960723102,
-0.2340989113,
-0.0069743991,
-0.0698655546,
-0.0677563623,
0.0582613349,
0.2001814693,
-0.0457282811,
0.1784252375,
0.1480002105,
0.1270188987,
0.2794733942,
-0.3211748004,
0.0406143479,
0.2804031074,
0.1732442975,
0.144983083,
0.3777579665,
-0.1555615216,
0.1443802267,
-0.2752650082,
0.1954726279,
-0.1280414164,
-0.6779034734,
0.1011460871,
0.0413989089,
-0.0967222825,
-0.0895920694,
-0.1370326877,
0.3286107779,
0.0310609899,
0.0625444204,
-0.3678518534,
0.0839883313,
-0.1466528475,
-0.0880455524,
-0.3406412899,
0.00762631,
-0.0325514972,
0.1551524103,
0.1516607702,
-0.0349878781,
-0.0857885182,
0.0875554681,
-0.0400346965,
-0.0436643213,
0.0709552467,
0.3961871564,
-0.2319026291,
-0.4020036459,
0.1886531562,
-0.1219381839,
-0.0789999664,
0.0003446508,
0.071505405,
0.5281404853,
0.3324438035,
0.1592496783,
0.0043607727,
-0.0478786826,
-0.1837078929,
-0.0530144721,
0.0596841909,
0.1682321429,
0.3104562461,
0.4630708098,
0.1703825891,
-0.1467409432,
0.1241715401,
-0.1453260481,
0.3208074272,
-0.0304009542,
0.1715202928,
0.1750355512,
-0.240303576,
-0.2071766704,
0.2140193433,
-0.5623787642,
-0.2455458343,
0.3704133034,
0.0733890757,
0.0577127822,
-0.1164957434,
0.0590369813,
0.169428125,
0.5225660205,
0.1972421855,
0.3079324067,
-0.4567182064,
-0.0008987635,
-0.5817424059,
-0.0127126426,
0.1645321995,
0.2716321349,
0.1598728448,
0.1856325269,
-0.2448571622,
-0.0757827312,
0.2462039292,
0.2971829176,
0.1082026809,
0.233815819,
-0.1574125886,
-0.1347533613,
0.151497677,
-0.1274894178,
0.0899901018,
-0.1791542917,
0.0747644156,
-0.047214061,
0.0362292752,
-0.2751493454,
0.0237010866,
0.0012945235,
-0.1667187065,
0.5104472041,
-0.2578533292,
0.4464900196,
-0.0321036242,
0.1099808142,
-0.4661691487,
0.0489511788,
-0.1495847702,
0.1149455011,
0.0738409609,
0.2687285542,
-0.0252670087,
0.3849052489,
-0.4096691608,
0.2747508287,
-0.1608559936,
-0.3426372409,
-0.0414936393,
0.1178344116,
0.0767929479,
0.3193479478,
0.0821505487,
-0.0379421599,
0.0348788053,
0.0631608665,
-0.5235251188,
-0.2149444073,
0.6017241478,
-0.43991974,
-0.0485644899,
-0.0070457458,
0.2270690054,
0.1117746383,
-0.1416444331,
-0.4197170138,
0.1078704894,
0.2636762857,
0.1084359884,
-0.0447179303,
0.3393391669,
0.2886269987,
0.1458835602,
-0.0916724205,
0.1939835548,
0.1492436081,
-0.1321776211,
-0.130217284,
-0.3663118184
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | @lhoestq yes you are correct.
I am not allowed to save the "raw text" locally - The "raw text" must be saved only on S3.
I am allowed to save the output of any model locally.
It doesn't matter how I do it boto3/pandas/pyarrow, it is forbidden | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 47 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
@lhoestq yes you are correct.
I am not allowed to save the "raw text" locally - The "raw text" must be saved only on S3.
I am allowed to save the output of any model locally.
It doesn't matter how I do it boto3/pandas/pyarrow, it is forbidden | [
-0.2508122921,
-0.2407750189,
-0.053151913,
0.5038032532,
0.242677778,
0.0379797071,
0.4234100878,
0.230223,
0.0534567088,
0.0122714564,
-0.0213178508,
0.3855960071,
-0.2364186645,
0.408721447,
-0.0733913407,
0.151946947,
0.0036895536,
0.1174417138,
0.2415751517,
0.1663118005,
-0.0428828485,
0.2773866653,
-0.0571361855,
0.1090653166,
-0.1840190589,
0.0136173368,
0.0146281347,
0.3506193161,
-0.0750774443,
-0.508487165,
0.0108170286,
-0.0190766435,
0.4783014059,
0.3833350241,
-0.0001139213,
-0.0286530107,
0.3157632053,
0.0450193211,
-0.4229222834,
-0.3848213553,
-0.5591979623,
0.1110934243,
0.152659148,
-0.037460804,
-0.3507243097,
-0.0653409362,
-0.3116800785,
-0.2656853199,
0.4028449953,
0.6623778343,
0.1782038957,
0.1914704144,
-0.0731052235,
-0.3078445196,
0.2821200788,
0.0203727316,
0.001827538,
0.222032994,
-0.2715067565,
0.1779976189,
0.2951637208,
0.27099967,
-0.4019233882,
0.1139449477,
0.5365957618,
0.0304872356,
0.3513380885,
0.0784729347,
0.1274640411,
0.170570448,
0.5801001191,
-0.1361254007,
-0.4543988705,
-0.184920162,
-0.2141833156,
-0.2824923396,
0.1915269047,
0.0894623101,
0.0374887846,
0.0282421689,
-0.0464705117,
-0.0466802269,
-0.0988202244,
0.2466036081,
0.0339194536,
0.4405600131,
-0.278003931,
0.0633560568,
0.2615092993,
0.0703381896,
0.3421873152,
-0.1132725403,
0.0181237571,
0.0466641746,
-0.2519853115,
0.1674022675,
-0.0153581053,
0.2122866809,
-0.0699798092,
0.1938643456,
0.3034310937,
-0.0739921033,
0.3996635973,
0.2401906699,
0.3883316517,
-0.1680291742,
0.0913823843,
0.0003883317,
-0.0994114131,
0.4869208634,
0.0785984099,
-0.1934861839,
-0.3133123219,
-0.5367276073,
0.1240957007,
0.2688180804,
0.3971945643,
-0.3510358632,
-0.2658776045,
-0.0860201716,
-0.1192130968,
-0.1965766251,
0.2694830298,
0.4972227514,
-0.3471298814,
-0.1139851063,
-0.1179712266,
0.2110883296,
-0.2143540382,
0.0854031444,
-0.1983183771,
0.2434529662,
-0.3190574646,
0.0227506161,
0.1486800909,
-0.5799322724,
0.5168523788,
-0.0738640726,
0.0051260088,
-0.3440083265,
0.1492897719,
-0.2164644897,
0.1777613908,
0.1814398468,
0.1935319304,
0.2570757866,
-0.053781189,
-0.0760165229,
-0.1820333004,
0.0855756328,
-0.1849055886,
-0.4797710776,
0.0412797332,
0.2240626812,
-0.2657830119,
-0.1602723002,
-0.059421394,
-0.1859487593,
0.278168112,
-0.0984314531,
-0.388699472,
0.0453322865,
-0.1181020439,
-0.2207809091,
0.4690742195,
0.3192172647,
-0.3537423313,
0.108596459,
-0.471652627,
0.1138470098,
0.0835108086,
0.2105171233,
-0.3659236729,
0.4489597976,
-0.3048422337,
0.1328934878,
0.5610038638,
-0.2565932572,
0.0060540549,
0.0853614658,
-0.0421510339,
-0.1606777906,
0.1342203468,
-0.0630413368,
-0.1340710372,
-0.1085646451,
0.0167826004,
0.3441393971,
0.0382877886,
0.0388527587,
-0.1566991508,
-0.0247691497,
0.1257414222,
0.2443984449,
0.1100834981,
-0.0220541693,
-0.0373708569,
-0.1964022815,
-0.0556684695,
-0.1184007078,
-0.0434883498,
0.4679802656,
0.273306489,
0.3011099696,
-0.0028270967,
0.1516499519,
-0.2742569745,
0.1333040446,
0.0448957309,
-0.2772717178,
-0.0668593645,
0.0106650814,
-0.2895230353,
0.0034125,
-0.4520743191,
0.0989075229,
0.105307959,
0.3138039112,
0.232626766,
-0.0971176401,
-0.11902266,
-0.3059861958,
0.3305369318,
-0.0151230786,
-0.3088083565,
0.1135312244,
-0.4051385522,
-0.0548963249,
0.0869038552,
0.0439935513,
0.1716849804,
0.1176357418,
0.0150819719,
0.1787699163,
0.1243598983,
0.2274497151,
-0.214469105,
0.1562111378,
-0.1199651733,
0.030692704,
0.179736495,
-0.1334500909,
0.1356185228,
0.0835731328,
-0.0444401987,
0.4771923423,
-0.0267101657,
0.1894393861,
0.1397071481,
0.0150927156,
0.2696094513,
-0.1694878042,
-0.0204149708,
-0.1353711635,
0.0476757213,
-0.1200013906,
0.1146691442,
0.0762752369,
-0.0729279369,
-0.1295491308,
0.3834595084,
0.0959832221,
-0.0108043421,
-0.2696368098,
-0.2296588868,
-0.1449699402,
0.0653624907,
0.4955296814,
0.3665237427,
0.2210590243,
0.0965467915,
-0.0355796516,
-0.0539808124,
-0.1855219305,
0.2379354537,
0.423758775,
0.4380970001,
0.3556295931,
-0.378128022,
-0.0747241378,
-0.2402070761,
-0.1607339978,
0.1642104089,
0.28225106,
-0.4002408981,
0.189003706,
-0.0598932132,
-0.1696400344,
-0.2982713282,
-0.3548650742,
-0.1032038555,
-0.2554684579,
-0.1192266494,
0.2769101858,
-0.2668561637,
-0.0272915661,
0.0960365906,
0.0128377974,
-0.0740058869,
-0.0552990325,
-0.3418390155,
-0.2471808493,
-0.1704051346,
0.0550118834,
0.2183097601,
0.0958849043,
0.2658968568,
-0.1865485013,
0.108301267,
-0.4633398354,
-0.0825943574,
-0.0176456831,
-0.0080974074,
0.3024949431,
0.2742296755,
0.080207631,
0.2997993529,
-0.2465779185,
0.4653754234,
-0.012098249,
0.0204352662,
0.2364754975,
-0.0213384535,
-0.1121436357,
-0.0333962142,
-0.3809584379,
0.0699733645,
-0.4534810185,
-0.3755662143,
0.0112921372,
0.1440525353,
0.2753454447,
0.3328950107,
0.2299250364,
-0.2099562287,
0.3361963928,
-0.2096320242,
-0.203705281,
0.1267782003,
-0.2523743212,
-0.2639801502,
0.3304710388,
-0.0450134575,
0.8056793213,
-0.1035314575,
-0.2581115961,
-0.0281819738,
0.0541549176,
-0.3135479093,
-0.1422805637,
-0.2467390746,
0.3080141544,
0.208803907,
-0.085646823,
-0.0078175962,
-0.3258492649,
0.0911113024,
-0.2148192823,
0.2122523636,
-0.2017769814,
0.8904489279,
-0.0051942468,
0.4429087341,
0.1470211297,
-0.2118462622,
0.4529936016,
-0.1063800827,
0.1824466437,
-0.104823783,
-0.2602480948,
-0.1180831641,
0.1664526463,
-0.2900655866,
0.1482968926,
-0.2593996823,
-0.0632350594,
-0.2945415974,
0.0631958544,
-0.3335373998,
-0.2166403979,
0.0108935554,
-0.264600426,
0.1334774345,
-0.1084318832,
0.0371412784,
-0.0522481799,
0.1782279313,
0.1964561641,
0.2740252018,
0.1798411012,
-0.036095757,
-0.2892716527,
-0.022856541,
-0.3024624586,
0.3309326172,
-0.044929225,
0.1445601285,
-0.1725997031,
-0.2284809798,
0.1085915416,
-0.212063536,
0.5687651038,
-0.2886081338,
0.0759902745,
0.2566809654,
-0.1874072552,
-0.4711463153,
-0.2658159137,
-0.0675031841,
0.2460011393,
0.0289373696,
0.4087799489,
-0.1191494465,
-0.4835369885,
0.1473178864,
-0.0567419156,
-0.0862189904,
-0.2047347277,
-0.3479644656,
-0.1231659055,
-0.3823905885,
-0.0772969946,
-0.0697867051,
0.3470997512,
0.0993612781,
-0.2050056756,
0.0540420189,
0.0844750702,
0.0261744801,
-0.0463369042,
0.4726719856,
0.0330606848,
0.2310327441,
0.272346437,
0.3769772053,
0.1094537973,
0.3990900815,
0.2031018883,
-0.4686411619,
-0.1039527655,
0.030714158,
0.4628862143,
-0.0234799162,
-0.1841687411,
0.1056568325,
0.1430653632,
0.1544756889,
-0.169170633,
0.1093407869,
0.4040110111,
0.0435303673,
-0.305380553,
-0.5429389477,
-0.0136749037,
0.0826763213,
0.0919230133,
-0.0626311153,
-0.3203948736,
-0.2080415785,
0.2609344125,
0.4015893042,
0.6901732087,
-0.0723920837,
0.2966909707,
0.558742404,
0.0910604224,
0.0016885139,
0.2774417996,
-0.1042707711,
-0.5139324665,
0.1954909265,
0.0833371282,
-0.1815756261,
-0.009393001,
0.2339335978,
-0.1757295728,
0.205243364,
-0.2196787298,
0.0933760405,
-0.1733640134,
0.1602139473,
-0.1688348353,
-0.0502106026,
-0.121875897,
0.0497321114,
-0.0692730993,
0.0820501745,
-0.1036419719,
-0.2097411454,
0.0337740332,
-0.2309397161,
0.0748142004,
0.2753436863,
0.0081000589,
0.0343263149,
-0.2805513144,
-0.1951712072,
0.1213373244,
0.244719848,
0.3164096773,
0.0351310931,
-0.0893454179,
0.1010993719,
-0.3682292998,
-0.2763565481,
-0.2608577609,
-0.095642671,
0.1849868894,
-0.2108018547,
-0.0499801412,
0.1240622327,
-0.0613716692,
-0.3762868047,
-0.033586055,
-0.0350454859,
0.2754877508,
-0.4317028224,
-0.2545204461,
-0.1319123209,
-0.1161125153,
-0.1919200122,
0.1608150899,
0.2287706137,
-0.1201414615,
0.0152175957,
-0.1504315138,
-0.2745189667,
0.0584030375,
0.5248115063,
-0.1016797125,
0.1521700919,
0.6307948232,
0.0710353553,
-0.1138499007,
-0.2894230485,
-0.2996490002,
0.018357195,
-0.290943563,
0.1833910346,
0.2434941977,
-0.0689215958,
0.2441025376,
0.3077546656,
0.1714058518,
-0.098984167,
-0.050826747,
-0.5483647585,
-0.0284052566,
0.0474093743,
-0.1534880698,
0.3620047569,
0.1767349243,
-0.322078526,
-0.0817600042,
-0.1770448536,
-0.2993301749,
0.0011036731,
-0.1198002398,
0.2405625135,
-0.2157942653,
-0.2780372202,
0.2113569677,
0.0620968342,
0.1622254252,
-0.355820477,
-0.0777114034,
-0.2533760071,
-0.0681319758,
0.1221703291,
0.1441826373,
0.0095418356,
0.1336417347,
-0.1444760263,
-0.3320432901,
-0.1306843013,
0.0670904666,
0.1010916457,
-0.0039908439,
0.2840555906,
0.0924805701,
0.0219093859,
-0.1482170075,
-0.1065013334,
-0.1994542181,
-0.1743007004,
0.008559417,
0.2015720308,
-0.1814139783,
-0.2146721184,
0.0438420214,
0.003067499,
0.0793970078,
0.0792408958,
0.3128162026,
-0.46475631,
0.0515680611,
0.1602489352,
0.505522728,
0.3906168044,
-0.0799039155,
0.2140351236,
0.3118723333,
0.2381580919,
-0.1135244071,
-0.2740478814,
-0.1960723102,
-0.2340989113,
-0.0069743991,
-0.0698655546,
-0.0677563623,
0.0582613349,
0.2001814693,
-0.0457282811,
0.1784252375,
0.1480002105,
0.1270188987,
0.2794733942,
-0.3211748004,
0.0406143479,
0.2804031074,
0.1732442975,
0.144983083,
0.3777579665,
-0.1555615216,
0.1443802267,
-0.2752650082,
0.1954726279,
-0.1280414164,
-0.6779034734,
0.1011460871,
0.0413989089,
-0.0967222825,
-0.0895920694,
-0.1370326877,
0.3286107779,
0.0310609899,
0.0625444204,
-0.3678518534,
0.0839883313,
-0.1466528475,
-0.0880455524,
-0.3406412899,
0.00762631,
-0.0325514972,
0.1551524103,
0.1516607702,
-0.0349878781,
-0.0857885182,
0.0875554681,
-0.0400346965,
-0.0436643213,
0.0709552467,
0.3961871564,
-0.2319026291,
-0.4020036459,
0.1886531562,
-0.1219381839,
-0.0789999664,
0.0003446508,
0.071505405,
0.5281404853,
0.3324438035,
0.1592496783,
0.0043607727,
-0.0478786826,
-0.1837078929,
-0.0530144721,
0.0596841909,
0.1682321429,
0.3104562461,
0.4630708098,
0.1703825891,
-0.1467409432,
0.1241715401,
-0.1453260481,
0.3208074272,
-0.0304009542,
0.1715202928,
0.1750355512,
-0.240303576,
-0.2071766704,
0.2140193433,
-0.5623787642,
-0.2455458343,
0.3704133034,
0.0733890757,
0.0577127822,
-0.1164957434,
0.0590369813,
0.169428125,
0.5225660205,
0.1972421855,
0.3079324067,
-0.4567182064,
-0.0008987635,
-0.5817424059,
-0.0127126426,
0.1645321995,
0.2716321349,
0.1598728448,
0.1856325269,
-0.2448571622,
-0.0757827312,
0.2462039292,
0.2971829176,
0.1082026809,
0.233815819,
-0.1574125886,
-0.1347533613,
0.151497677,
-0.1274894178,
0.0899901018,
-0.1791542917,
0.0747644156,
-0.047214061,
0.0362292752,
-0.2751493454,
0.0237010866,
0.0012945235,
-0.1667187065,
0.5104472041,
-0.2578533292,
0.4464900196,
-0.0321036242,
0.1099808142,
-0.4661691487,
0.0489511788,
-0.1495847702,
0.1149455011,
0.0738409609,
0.2687285542,
-0.0252670087,
0.3849052489,
-0.4096691608,
0.2747508287,
-0.1608559936,
-0.3426372409,
-0.0414936393,
0.1178344116,
0.0767929479,
0.3193479478,
0.0821505487,
-0.0379421599,
0.0348788053,
0.0631608665,
-0.5235251188,
-0.2149444073,
0.6017241478,
-0.43991974,
-0.0485644899,
-0.0070457458,
0.2270690054,
0.1117746383,
-0.1416444331,
-0.4197170138,
0.1078704894,
0.2636762857,
0.1084359884,
-0.0447179303,
0.3393391669,
0.2886269987,
0.1458835602,
-0.0916724205,
0.1939835548,
0.1492436081,
-0.1321776211,
-0.130217284,
-0.3663118184
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | @dorlavie are you using sagemaker for training too? Then you could use S3 URI, for example `s3://my-bucket/my-training-data` and pass it within the `.fit()` function when you start the sagemaker training job. Sagemaker would then download the data from s3 into the training runtime and you could load it from disk
**sagemaker start training job**
```python
pytorch_estimator.fit({'train':'s3://my-bucket/my-training-data','eval':'s3://my-bucket/my-evaluation-data'})
```
**in the train.py script**
```python
from datasets import load_from_disk
train_dataset = load_from_disk(os.environ['SM_CHANNEL_TRAIN'])
```
I have created an example of how to use transformers and datasets with sagemaker.
https://github.com/philschmid/huggingface-sagemaker-example/tree/main/03_huggingface_sagemaker_trainer_with_data_from_s3
The example contains a jupyter notebook `sagemaker-example.ipynb` and an `src/` folder. The sagemaker-example is a jupyter notebook that is used to create the training job on AWS Sagemaker. The `src/` folder contains the `train.py`, our training script, and `requirements.txt` for additional dependencies.
| In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 127 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
@dorlavie are you using sagemaker for training too? Then you could use S3 URI, for example `s3://my-bucket/my-training-data` and pass it within the `.fit()` function when you start the sagemaker training job. Sagemaker would then download the data from s3 into the training runtime and you could load it from disk
**sagemaker start training job**
```python
pytorch_estimator.fit({'train':'s3://my-bucket/my-training-data','eval':'s3://my-bucket/my-evaluation-data'})
```
**in the train.py script**
```python
from datasets import load_from_disk
train_dataset = load_from_disk(os.environ['SM_CHANNEL_TRAIN'])
```
I have created an example of how to use transformers and datasets with sagemaker.
https://github.com/philschmid/huggingface-sagemaker-example/tree/main/03_huggingface_sagemaker_trainer_with_data_from_s3
The example contains a jupyter notebook `sagemaker-example.ipynb` and an `src/` folder. The sagemaker-example is a jupyter notebook that is used to create the training job on AWS Sagemaker. The `src/` folder contains the `train.py`, our training script, and `requirements.txt` for additional dependencies.
| [
-0.2508122921,
-0.2407750189,
-0.053151913,
0.5038032532,
0.242677778,
0.0379797071,
0.4234100878,
0.230223,
0.0534567088,
0.0122714564,
-0.0213178508,
0.3855960071,
-0.2364186645,
0.408721447,
-0.0733913407,
0.151946947,
0.0036895536,
0.1174417138,
0.2415751517,
0.1663118005,
-0.0428828485,
0.2773866653,
-0.0571361855,
0.1090653166,
-0.1840190589,
0.0136173368,
0.0146281347,
0.3506193161,
-0.0750774443,
-0.508487165,
0.0108170286,
-0.0190766435,
0.4783014059,
0.3833350241,
-0.0001139213,
-0.0286530107,
0.3157632053,
0.0450193211,
-0.4229222834,
-0.3848213553,
-0.5591979623,
0.1110934243,
0.152659148,
-0.037460804,
-0.3507243097,
-0.0653409362,
-0.3116800785,
-0.2656853199,
0.4028449953,
0.6623778343,
0.1782038957,
0.1914704144,
-0.0731052235,
-0.3078445196,
0.2821200788,
0.0203727316,
0.001827538,
0.222032994,
-0.2715067565,
0.1779976189,
0.2951637208,
0.27099967,
-0.4019233882,
0.1139449477,
0.5365957618,
0.0304872356,
0.3513380885,
0.0784729347,
0.1274640411,
0.170570448,
0.5801001191,
-0.1361254007,
-0.4543988705,
-0.184920162,
-0.2141833156,
-0.2824923396,
0.1915269047,
0.0894623101,
0.0374887846,
0.0282421689,
-0.0464705117,
-0.0466802269,
-0.0988202244,
0.2466036081,
0.0339194536,
0.4405600131,
-0.278003931,
0.0633560568,
0.2615092993,
0.0703381896,
0.3421873152,
-0.1132725403,
0.0181237571,
0.0466641746,
-0.2519853115,
0.1674022675,
-0.0153581053,
0.2122866809,
-0.0699798092,
0.1938643456,
0.3034310937,
-0.0739921033,
0.3996635973,
0.2401906699,
0.3883316517,
-0.1680291742,
0.0913823843,
0.0003883317,
-0.0994114131,
0.4869208634,
0.0785984099,
-0.1934861839,
-0.3133123219,
-0.5367276073,
0.1240957007,
0.2688180804,
0.3971945643,
-0.3510358632,
-0.2658776045,
-0.0860201716,
-0.1192130968,
-0.1965766251,
0.2694830298,
0.4972227514,
-0.3471298814,
-0.1139851063,
-0.1179712266,
0.2110883296,
-0.2143540382,
0.0854031444,
-0.1983183771,
0.2434529662,
-0.3190574646,
0.0227506161,
0.1486800909,
-0.5799322724,
0.5168523788,
-0.0738640726,
0.0051260088,
-0.3440083265,
0.1492897719,
-0.2164644897,
0.1777613908,
0.1814398468,
0.1935319304,
0.2570757866,
-0.053781189,
-0.0760165229,
-0.1820333004,
0.0855756328,
-0.1849055886,
-0.4797710776,
0.0412797332,
0.2240626812,
-0.2657830119,
-0.1602723002,
-0.059421394,
-0.1859487593,
0.278168112,
-0.0984314531,
-0.388699472,
0.0453322865,
-0.1181020439,
-0.2207809091,
0.4690742195,
0.3192172647,
-0.3537423313,
0.108596459,
-0.471652627,
0.1138470098,
0.0835108086,
0.2105171233,
-0.3659236729,
0.4489597976,
-0.3048422337,
0.1328934878,
0.5610038638,
-0.2565932572,
0.0060540549,
0.0853614658,
-0.0421510339,
-0.1606777906,
0.1342203468,
-0.0630413368,
-0.1340710372,
-0.1085646451,
0.0167826004,
0.3441393971,
0.0382877886,
0.0388527587,
-0.1566991508,
-0.0247691497,
0.1257414222,
0.2443984449,
0.1100834981,
-0.0220541693,
-0.0373708569,
-0.1964022815,
-0.0556684695,
-0.1184007078,
-0.0434883498,
0.4679802656,
0.273306489,
0.3011099696,
-0.0028270967,
0.1516499519,
-0.2742569745,
0.1333040446,
0.0448957309,
-0.2772717178,
-0.0668593645,
0.0106650814,
-0.2895230353,
0.0034125,
-0.4520743191,
0.0989075229,
0.105307959,
0.3138039112,
0.232626766,
-0.0971176401,
-0.11902266,
-0.3059861958,
0.3305369318,
-0.0151230786,
-0.3088083565,
0.1135312244,
-0.4051385522,
-0.0548963249,
0.0869038552,
0.0439935513,
0.1716849804,
0.1176357418,
0.0150819719,
0.1787699163,
0.1243598983,
0.2274497151,
-0.214469105,
0.1562111378,
-0.1199651733,
0.030692704,
0.179736495,
-0.1334500909,
0.1356185228,
0.0835731328,
-0.0444401987,
0.4771923423,
-0.0267101657,
0.1894393861,
0.1397071481,
0.0150927156,
0.2696094513,
-0.1694878042,
-0.0204149708,
-0.1353711635,
0.0476757213,
-0.1200013906,
0.1146691442,
0.0762752369,
-0.0729279369,
-0.1295491308,
0.3834595084,
0.0959832221,
-0.0108043421,
-0.2696368098,
-0.2296588868,
-0.1449699402,
0.0653624907,
0.4955296814,
0.3665237427,
0.2210590243,
0.0965467915,
-0.0355796516,
-0.0539808124,
-0.1855219305,
0.2379354537,
0.423758775,
0.4380970001,
0.3556295931,
-0.378128022,
-0.0747241378,
-0.2402070761,
-0.1607339978,
0.1642104089,
0.28225106,
-0.4002408981,
0.189003706,
-0.0598932132,
-0.1696400344,
-0.2982713282,
-0.3548650742,
-0.1032038555,
-0.2554684579,
-0.1192266494,
0.2769101858,
-0.2668561637,
-0.0272915661,
0.0960365906,
0.0128377974,
-0.0740058869,
-0.0552990325,
-0.3418390155,
-0.2471808493,
-0.1704051346,
0.0550118834,
0.2183097601,
0.0958849043,
0.2658968568,
-0.1865485013,
0.108301267,
-0.4633398354,
-0.0825943574,
-0.0176456831,
-0.0080974074,
0.3024949431,
0.2742296755,
0.080207631,
0.2997993529,
-0.2465779185,
0.4653754234,
-0.012098249,
0.0204352662,
0.2364754975,
-0.0213384535,
-0.1121436357,
-0.0333962142,
-0.3809584379,
0.0699733645,
-0.4534810185,
-0.3755662143,
0.0112921372,
0.1440525353,
0.2753454447,
0.3328950107,
0.2299250364,
-0.2099562287,
0.3361963928,
-0.2096320242,
-0.203705281,
0.1267782003,
-0.2523743212,
-0.2639801502,
0.3304710388,
-0.0450134575,
0.8056793213,
-0.1035314575,
-0.2581115961,
-0.0281819738,
0.0541549176,
-0.3135479093,
-0.1422805637,
-0.2467390746,
0.3080141544,
0.208803907,
-0.085646823,
-0.0078175962,
-0.3258492649,
0.0911113024,
-0.2148192823,
0.2122523636,
-0.2017769814,
0.8904489279,
-0.0051942468,
0.4429087341,
0.1470211297,
-0.2118462622,
0.4529936016,
-0.1063800827,
0.1824466437,
-0.104823783,
-0.2602480948,
-0.1180831641,
0.1664526463,
-0.2900655866,
0.1482968926,
-0.2593996823,
-0.0632350594,
-0.2945415974,
0.0631958544,
-0.3335373998,
-0.2166403979,
0.0108935554,
-0.264600426,
0.1334774345,
-0.1084318832,
0.0371412784,
-0.0522481799,
0.1782279313,
0.1964561641,
0.2740252018,
0.1798411012,
-0.036095757,
-0.2892716527,
-0.022856541,
-0.3024624586,
0.3309326172,
-0.044929225,
0.1445601285,
-0.1725997031,
-0.2284809798,
0.1085915416,
-0.212063536,
0.5687651038,
-0.2886081338,
0.0759902745,
0.2566809654,
-0.1874072552,
-0.4711463153,
-0.2658159137,
-0.0675031841,
0.2460011393,
0.0289373696,
0.4087799489,
-0.1191494465,
-0.4835369885,
0.1473178864,
-0.0567419156,
-0.0862189904,
-0.2047347277,
-0.3479644656,
-0.1231659055,
-0.3823905885,
-0.0772969946,
-0.0697867051,
0.3470997512,
0.0993612781,
-0.2050056756,
0.0540420189,
0.0844750702,
0.0261744801,
-0.0463369042,
0.4726719856,
0.0330606848,
0.2310327441,
0.272346437,
0.3769772053,
0.1094537973,
0.3990900815,
0.2031018883,
-0.4686411619,
-0.1039527655,
0.030714158,
0.4628862143,
-0.0234799162,
-0.1841687411,
0.1056568325,
0.1430653632,
0.1544756889,
-0.169170633,
0.1093407869,
0.4040110111,
0.0435303673,
-0.305380553,
-0.5429389477,
-0.0136749037,
0.0826763213,
0.0919230133,
-0.0626311153,
-0.3203948736,
-0.2080415785,
0.2609344125,
0.4015893042,
0.6901732087,
-0.0723920837,
0.2966909707,
0.558742404,
0.0910604224,
0.0016885139,
0.2774417996,
-0.1042707711,
-0.5139324665,
0.1954909265,
0.0833371282,
-0.1815756261,
-0.009393001,
0.2339335978,
-0.1757295728,
0.205243364,
-0.2196787298,
0.0933760405,
-0.1733640134,
0.1602139473,
-0.1688348353,
-0.0502106026,
-0.121875897,
0.0497321114,
-0.0692730993,
0.0820501745,
-0.1036419719,
-0.2097411454,
0.0337740332,
-0.2309397161,
0.0748142004,
0.2753436863,
0.0081000589,
0.0343263149,
-0.2805513144,
-0.1951712072,
0.1213373244,
0.244719848,
0.3164096773,
0.0351310931,
-0.0893454179,
0.1010993719,
-0.3682292998,
-0.2763565481,
-0.2608577609,
-0.095642671,
0.1849868894,
-0.2108018547,
-0.0499801412,
0.1240622327,
-0.0613716692,
-0.3762868047,
-0.033586055,
-0.0350454859,
0.2754877508,
-0.4317028224,
-0.2545204461,
-0.1319123209,
-0.1161125153,
-0.1919200122,
0.1608150899,
0.2287706137,
-0.1201414615,
0.0152175957,
-0.1504315138,
-0.2745189667,
0.0584030375,
0.5248115063,
-0.1016797125,
0.1521700919,
0.6307948232,
0.0710353553,
-0.1138499007,
-0.2894230485,
-0.2996490002,
0.018357195,
-0.290943563,
0.1833910346,
0.2434941977,
-0.0689215958,
0.2441025376,
0.3077546656,
0.1714058518,
-0.098984167,
-0.050826747,
-0.5483647585,
-0.0284052566,
0.0474093743,
-0.1534880698,
0.3620047569,
0.1767349243,
-0.322078526,
-0.0817600042,
-0.1770448536,
-0.2993301749,
0.0011036731,
-0.1198002398,
0.2405625135,
-0.2157942653,
-0.2780372202,
0.2113569677,
0.0620968342,
0.1622254252,
-0.355820477,
-0.0777114034,
-0.2533760071,
-0.0681319758,
0.1221703291,
0.1441826373,
0.0095418356,
0.1336417347,
-0.1444760263,
-0.3320432901,
-0.1306843013,
0.0670904666,
0.1010916457,
-0.0039908439,
0.2840555906,
0.0924805701,
0.0219093859,
-0.1482170075,
-0.1065013334,
-0.1994542181,
-0.1743007004,
0.008559417,
0.2015720308,
-0.1814139783,
-0.2146721184,
0.0438420214,
0.003067499,
0.0793970078,
0.0792408958,
0.3128162026,
-0.46475631,
0.0515680611,
0.1602489352,
0.505522728,
0.3906168044,
-0.0799039155,
0.2140351236,
0.3118723333,
0.2381580919,
-0.1135244071,
-0.2740478814,
-0.1960723102,
-0.2340989113,
-0.0069743991,
-0.0698655546,
-0.0677563623,
0.0582613349,
0.2001814693,
-0.0457282811,
0.1784252375,
0.1480002105,
0.1270188987,
0.2794733942,
-0.3211748004,
0.0406143479,
0.2804031074,
0.1732442975,
0.144983083,
0.3777579665,
-0.1555615216,
0.1443802267,
-0.2752650082,
0.1954726279,
-0.1280414164,
-0.6779034734,
0.1011460871,
0.0413989089,
-0.0967222825,
-0.0895920694,
-0.1370326877,
0.3286107779,
0.0310609899,
0.0625444204,
-0.3678518534,
0.0839883313,
-0.1466528475,
-0.0880455524,
-0.3406412899,
0.00762631,
-0.0325514972,
0.1551524103,
0.1516607702,
-0.0349878781,
-0.0857885182,
0.0875554681,
-0.0400346965,
-0.0436643213,
0.0709552467,
0.3961871564,
-0.2319026291,
-0.4020036459,
0.1886531562,
-0.1219381839,
-0.0789999664,
0.0003446508,
0.071505405,
0.5281404853,
0.3324438035,
0.1592496783,
0.0043607727,
-0.0478786826,
-0.1837078929,
-0.0530144721,
0.0596841909,
0.1682321429,
0.3104562461,
0.4630708098,
0.1703825891,
-0.1467409432,
0.1241715401,
-0.1453260481,
0.3208074272,
-0.0304009542,
0.1715202928,
0.1750355512,
-0.240303576,
-0.2071766704,
0.2140193433,
-0.5623787642,
-0.2455458343,
0.3704133034,
0.0733890757,
0.0577127822,
-0.1164957434,
0.0590369813,
0.169428125,
0.5225660205,
0.1972421855,
0.3079324067,
-0.4567182064,
-0.0008987635,
-0.5817424059,
-0.0127126426,
0.1645321995,
0.2716321349,
0.1598728448,
0.1856325269,
-0.2448571622,
-0.0757827312,
0.2462039292,
0.2971829176,
0.1082026809,
0.233815819,
-0.1574125886,
-0.1347533613,
0.151497677,
-0.1274894178,
0.0899901018,
-0.1791542917,
0.0747644156,
-0.047214061,
0.0362292752,
-0.2751493454,
0.0237010866,
0.0012945235,
-0.1667187065,
0.5104472041,
-0.2578533292,
0.4464900196,
-0.0321036242,
0.1099808142,
-0.4661691487,
0.0489511788,
-0.1495847702,
0.1149455011,
0.0738409609,
0.2687285542,
-0.0252670087,
0.3849052489,
-0.4096691608,
0.2747508287,
-0.1608559936,
-0.3426372409,
-0.0414936393,
0.1178344116,
0.0767929479,
0.3193479478,
0.0821505487,
-0.0379421599,
0.0348788053,
0.0631608665,
-0.5235251188,
-0.2149444073,
0.6017241478,
-0.43991974,
-0.0485644899,
-0.0070457458,
0.2270690054,
0.1117746383,
-0.1416444331,
-0.4197170138,
0.1078704894,
0.2636762857,
0.1084359884,
-0.0447179303,
0.3393391669,
0.2886269987,
0.1458835602,
-0.0916724205,
0.1939835548,
0.1492436081,
-0.1321776211,
-0.130217284,
-0.3663118184
] |
https://github.com/huggingface/datasets/issues/877 | DataLoader(datasets) become more and more slowly within iterations | Hi ! Thanks for reporting.
Do you have the same slowdown when you iterate through the raw dataset object as well ? (no dataloader)
It would be nice to know whether it comes from the dataloader or not | Hello, when I for loop my dataloader, the loading speed is becoming more and more slowly!
```
dataset = load_from_disk(dataset_path) # around 21,000,000 lines
lineloader = tqdm(DataLoader(dataset, batch_size=1))
for idx, line in enumerate(lineloader):
# do some thing for each line
```
In the begining, the loading speed is around 2000it/s, but after 1 minutes later, the speed is much slower, just around 800it/s.
And when I set `num_workers=4` in DataLoader, the loading speed is much lower, just 130it/s.
Could you please help me with this problem?
Thanks a lot! | 38 | DataLoader(datasets) become more and more slowly within iterations
Hello, when I for loop my dataloader, the loading speed is becoming more and more slowly!
```
dataset = load_from_disk(dataset_path) # around 21,000,000 lines
lineloader = tqdm(DataLoader(dataset, batch_size=1))
for idx, line in enumerate(lineloader):
# do some thing for each line
```
In the begining, the loading speed is around 2000it/s, but after 1 minutes later, the speed is much slower, just around 800it/s.
And when I set `num_workers=4` in DataLoader, the loading speed is much lower, just 130it/s.
Could you please help me with this problem?
Thanks a lot!
Hi ! Thanks for reporting.
Do you have the same slowdown when you iterate through the raw dataset object as well ? (no dataloader)
It would be nice to know whether it comes from the dataloader or not | [
-0.3241671324,
-0.0680926815,
-0.1207573265,
0.237542823,
-0.0479868092,
-0.0551255792,
0.46341151,
-0.0104471054,
0.2775007188,
0.13589257,
-0.0574941896,
0.4406970739,
-0.0379496217,
-0.0338122547,
-0.2684331834,
0.0123530068,
-0.0058119036,
0.1865818202,
-0.4923048913,
-0.1244891062,
0.0327858105,
0.0130967814,
-0.2001440525,
-0.2224332541,
-0.107291624,
-0.1239838526,
0.1369381249,
0.1350971758,
-0.1098115295,
-0.4247674644,
0.0017357469,
0.1950882077,
0.371311903,
0.6450659037,
-0.0001175915,
0.0595056489,
0.0318348818,
0.2282908857,
-0.2663006783,
0.4214523733,
0.0467982143,
-0.4410393536,
0.1777761877,
-0.1502206326,
0.3183627129,
-0.1672294736,
-0.3622268736,
-0.1270675212,
0.0363594517,
-0.0522843935,
0.1114332676,
0.5388419628,
-0.5062481165,
0.0144918039,
-0.0427800454,
-0.225058049,
-0.1712978184,
0.3582553864,
0.7214531302,
0.0632594377,
-0.486690104,
0.2670524716,
0.0660413131,
0.3211707175,
0.1695449352,
0.1509487629,
0.4048444033,
-0.2836864591,
-0.0620005652,
0.3078355789,
0.7381129265,
-0.0354178026,
-0.2990176082,
-0.0910646319,
0.0105070211,
-0.1903961003,
0.0654631555,
-0.3881123662,
-0.3574896455,
-0.1338218004,
-0.3717271984,
-0.0269219931,
0.067910105,
-0.0472424924,
-0.1119694784,
-0.065740943,
0.0455358215,
-0.1303459704,
0.1895779967,
-0.234932676,
0.2986092567,
-0.1954663843,
0.1711440235,
0.1489229649,
-0.6994066834,
-0.0902781859,
-0.2848400772,
0.0521828756,
-0.0891152024,
-0.0181696452,
0.3548937738,
0.110272415,
-0.0667488351,
0.0600800216,
0.1825924516,
0.117816925,
0.0049759801,
-0.2424709648,
0.1138003916,
0.0938198566,
-0.1968666166,
0.0588540994,
-0.2202975452,
-0.3105729818,
0.6017609239,
-0.1301608831,
-0.1296999753,
0.1186172664,
-0.2490783036,
-0.1723692417,
0.1275794059,
-0.2305167913,
0.3537157178,
0.2471129,
-0.1536794007,
0.4567603469,
-0.2397268414,
-0.0503766388,
-0.2576822042,
-0.4324012995,
-0.1131179482,
-0.2418788671,
-0.1623128057,
0.3175445795,
-0.0372212455,
-0.2119460851,
0.0773526803,
0.4499233663,
0.2396337837,
0.0114689022,
0.0637500584,
-0.2298668176,
-0.1895278096,
-0.0006903931,
-0.0946098715,
0.307533294,
0.0369765833,
0.1128362119,
-0.0689982772,
0.201565966,
-0.6437547803,
0.0785504431,
-0.0394437835,
0.1380127519,
0.2078987062,
-0.1920044422,
-0.2747974992,
-0.0646830201,
-0.1752682924,
0.0843998939,
0.0575299002,
-0.3610057235,
-0.0583949424,
-0.089168638,
-0.0122570433,
0.3467797935,
-0.2351539731,
0.0202757791,
-0.1796612442,
0.0347962156,
0.4447410703,
0.4324100912,
-0.3443002105,
0.6609272361,
-0.400930196,
-0.2704449892,
0.481754601,
-0.2173741162,
-0.4320210814,
0.7465630174,
-0.1581311077,
0.261814177,
0.312427938,
0.4026637077,
0.4636734128,
-0.2787518799,
0.2423094809,
0.1920708716,
0.1954512149,
0.2177642435,
-0.1472033709,
0.1382671744,
0.2342141867,
0.2169911712,
-0.0854831934,
0.3467284739,
-0.0216153339,
-0.2039885223,
0.4737631381,
-0.2093395591,
-0.0713678822,
0.3619626462,
-0.1518406272,
-0.1550888419,
0.1403791457,
0.1130171865,
-0.5651846528,
0.218880415,
0.0174570829,
-0.2443374991,
0.3122857809,
0.1191147268,
-0.1705144346,
0.0810035318,
-0.2775758505,
0.063391313,
0.0383197293,
0.1155601814,
-0.1098967344,
-0.337531805,
0.00548397,
0.3593553603,
-0.0542124212,
0.0724649355,
0.1110634357,
0.2941324711,
0.4734766483,
-0.135728091,
0.2266169786,
-0.3497343659,
-0.002291562,
-0.1050757617,
-0.136322692,
0.2549380064,
0.2548447251,
0.4663392603,
0.4570465386,
0.0839060843,
0.1968623549,
0.09204337,
0.151091665,
-0.1182599664,
0.2299345732,
-0.1504816115,
0.3272106349,
0.339900583,
-0.4314759076,
0.3046648502,
-0.1557521075,
-0.2725872099,
0.0748401135,
0.0128785297,
-0.0994905084,
0.3636082411,
0.4137883186,
0.1891224086,
0.5586003661,
0.2135506868,
-0.1636325866,
0.1299818158,
0.0829001591,
0.086792618,
-0.2338927239,
0.1753518581,
-0.269945085,
-0.0051415563,
-0.1918000728,
-0.0197303221,
0.4462364912,
0.0328504071,
0.1807245165,
-0.1930125952,
0.2182888985,
-0.1475967914,
-0.0196374953,
0.2065650225,
0.2737128437,
0.4008260667,
-0.0294163227,
-0.0897581875,
-0.3164697886,
-0.2832612097,
0.0854958743,
0.3603067398,
-0.0995679125,
0.209776938,
-0.2502037585,
0.195395723,
-0.1894829273,
-0.3557637334,
-0.1991960108,
-0.2604182065,
-0.1925881654,
0.0787442476,
0.2964642048,
-0.0097862817,
0.1002821252,
-0.0192542374,
0.23097983,
0.0735186115,
-0.169291079,
0.0327544175,
-0.095683977,
-0.0191796068,
0.2025862038,
-0.1779782623,
0.0635966957,
-0.0934722424,
0.184091866,
-0.383420229,
0.1968764067,
-0.1433964372,
0.0445302464,
0.1653607488,
-0.0252617858,
0.3253191113,
-0.0218573064,
-0.1016792655,
0.1156650782,
-0.138293162,
-0.0316268951,
-0.0245852098,
-0.1935524791,
0.1150001436,
0.3658194244,
0.071040161,
-0.2702752948,
-0.1006650329,
-0.2287165523,
0.038751699,
0.1328377426,
-0.152525872,
-0.1126022935,
0.0776154026,
0.2564550042,
0.026456777,
-0.0234878398,
-0.7568569183,
0.4094848633,
0.0923794657,
0.0480866767,
-0.259030968,
-0.1115681827,
0.2096380889,
0.2576953769,
-0.4277701378,
0.0233918726,
-0.131411925,
0.223676905,
-0.1926168948,
0.1394824833,
-0.1026301235,
-0.1637043357,
-0.0642290041,
0.0713583156,
-0.0732140169,
-0.1602993459,
-0.2642507851,
0.0712501034,
-0.1342391372,
0.2918333709,
-0.2233044803,
0.4822227061,
0.2165639699,
-0.1205235496,
0.0885194242,
-0.0922470242,
0.0981974825,
0.1598914415,
-0.3891575038,
-0.2941408753,
-0.1147340685,
-0.3326261342,
0.3235486746,
-0.3457532525,
0.0190699603,
0.0377804562,
-0.0053881109,
-0.1034279317,
-0.0096179917,
0.1407833844,
-0.1608004272,
0.285082221,
-0.1276009679,
0.0551185012,
-0.3122487366,
-0.1316482723,
0.075610891,
0.1663701087,
0.0100024641,
-0.3491049707,
-0.4216743708,
0.1617169231,
-0.4815862477,
0.057887163,
-0.0331894606,
0.5251985788,
0.3719906807,
0.0860172957,
0.3544753194,
0.0799854696,
0.5257921815,
0.2051189691,
-0.2232925743,
0.0023484975,
-0.475828588,
0.0141722634,
-0.1697368175,
-0.2489892989,
0.2695688307,
0.3460754752,
0.4094492495,
-0.0674002543,
-0.1872820258,
-0.0953920484,
0.1143278927,
-0.210262537,
-0.5684306622,
-0.1520518363,
0.1021385044,
0.1626297832,
0.1056237817,
-0.5356792808,
0.2143599689,
0.0322542712,
-0.01889994,
-0.0836559758,
-0.2037842125,
0.3269470632,
0.0747584105,
0.1129342839,
0.1472716033,
0.3608945012,
0.0147417914,
-0.0684389994,
0.1255163699,
0.1568819582,
-0.0220571458,
-0.1695780456,
0.1808068305,
0.0972109735,
0.3712495267,
0.2193919569,
-0.051893685,
0.1839528531,
-0.1259786338,
0.1605491191,
-0.1819384992,
-0.2642449737,
0.5638894439,
0.0309707932,
-0.4069398344,
-0.1719617248,
0.4834609926,
0.0989407301,
-0.0105494782,
0.3498975635,
-0.5904157162,
0.0142255612,
-0.1594041884,
0.1420184225,
0.7446186543,
-0.1264876425,
-0.0125972554,
0.0659488514,
0.3584730029,
0.0503182039,
-0.1736755073,
-0.0291848425,
-0.2662465572,
-0.4274469316,
0.0013964772,
-0.3462823033,
0.4885745943,
0.1571313739,
-0.0712066516,
0.1693331599,
-0.1653469801,
-0.0267523415,
-0.1823566854,
0.1607089788,
-0.0941555277,
-0.4092693329,
-0.3305324316,
0.0502946004,
-0.1155601144,
0.1641433984,
-0.1359094828,
-0.1962172389,
0.0800795481,
0.2977905273,
-0.0549249277,
-0.1854809821,
-0.3081092834,
-0.0060289409,
0.5209761858,
-0.2394129038,
-0.1247559786,
0.029318979,
0.0641799048,
-0.1590399444,
0.0430511683,
0.2172896564,
-0.0277933031,
0.3600897193,
0.1343169659,
-0.2849562168,
0.1039281785,
-0.0048289448,
0.2251031697,
0.3471113145,
0.0937858671,
-0.2201294601,
0.0377966613,
0.1709918827,
0.2526411712,
-0.201620236,
-0.1696674973,
0.2142752707,
0.1497724652,
-0.1001046896,
0.0529837348,
0.4944342673,
-0.2453265488,
0.3979700506,
0.0484554693,
-0.3939450383,
-0.1342615187,
0.2439268231,
0.396648407,
-0.0035279095,
0.5114947557,
0.0457232371,
-0.2285663486,
-0.1265178472,
0.2642815411,
0.0848131776,
-0.2579107285,
0.237084657,
0.0847060382,
0.3823508918,
0.1951826215,
0.0365414619,
-0.046355959,
-0.0795823261,
-0.4196228385,
-0.3935621381,
-0.1383419633,
-0.1341868788,
-0.0344085619,
0.0254788082,
-0.2641669512,
-0.1282235384,
-0.0912754685,
0.2852680385,
-0.1915305406,
-0.1164886355,
-0.0878029764,
-0.0669836998,
0.1230993718,
-0.2324828655,
0.0989252925,
0.315607816,
0.0332670808,
0.1362621039,
-0.0383092873,
-0.1720201969,
0.0935097784,
0.1423202306,
-0.0538634472,
-0.156554684,
0.0857354552,
-0.0315396674,
0.1166314632,
-0.1002721041,
-0.0595491193,
-0.0775007755,
0.0313652828,
0.0510888696,
0.3887103796,
-0.1345025301,
-0.1091191024,
0.2731111646,
0.0256585218,
0.2094881386,
0.2166258991,
-0.0087042097,
0.1175243407,
-0.2616752386,
-0.2864657044,
0.1258472353,
0.0932436064,
-0.1184822991,
0.3263694346,
-0.5417138338,
0.2881820202,
0.0469428822,
0.1405951828,
0.4909068644,
-0.1122056618,
-0.3595328927,
-0.0469780862,
0.1188167334,
-0.0551326498,
-0.3106615841,
-0.0435385481,
0.1552538276,
-0.0671742409,
0.1591502428,
-0.0264547914,
0.0291601568,
0.1033741012,
-0.1961596012,
-0.0410273001,
-0.2628023922,
-0.1473150551,
0.1206524521,
0.263514936,
0.1223750114,
0.3378015459,
0.425894022,
-0.2413258851,
0.1406068206,
0.0870903134,
0.2866997421,
0.333116293,
0.1572490185,
-0.1672668606,
-0.428508997,
-0.1022031084,
0.5111820102,
-0.243172437,
-0.1594281793,
0.0612278581,
-0.0594526567,
0.1479032934,
-0.106204018,
-0.2463629544,
0.2721639276,
-0.1473352611,
-0.2630120516,
0.0548407882,
0.0015625805,
-0.1366146505,
0.0878089517,
-0.2911334336,
0.0286306702,
-0.2513044178,
0.2572121322,
0.1657459885,
-0.4683099687,
-0.4442839026,
0.1463362575,
-0.0904177427,
-0.2134363949,
0.061211884,
-0.1709279716,
0.2752651572,
0.1769128442,
0.2811595201,
0.21753335,
0.3926662505,
0.0840736032,
-0.1159080267,
-0.3157947063,
-0.1060001552,
0.1331923902,
0.1759582162,
-0.2666062713,
0.0788064897,
0.2236632854,
0.0109629892,
-0.2197426111,
-0.2131663263,
-0.1389035285,
-0.1174117178,
-0.4200175107,
0.2254898846,
0.1522701532,
0.20541659,
-0.2552957237,
0.0101228803,
-0.3215104342,
-0.2694217861,
0.3446247578,
-0.4715991318,
-0.0606434196,
-0.0044036992,
0.0155245848,
-0.4134435356,
0.7372549772,
0.4419794083,
0.3989587128,
-0.3557169139,
-0.1895863861,
-0.485527277,
-0.1053841561,
-0.2492281497,
-0.1253549755,
0.31492275,
0.4505527318,
0.0909566432,
0.3465804458,
0.4759302735,
0.0007374845,
-0.2330506444,
0.1060461104,
-0.3805704713,
0.0859564692,
-0.2519364059,
0.1973508,
-0.2169898897,
-0.2561094463,
0.5060575008,
0.0261230096,
0.0850096196,
0.132745713,
0.0064479187,
0.2202893794,
0.5054418445,
0.1820294857,
-0.0491192713,
0.0127558,
0.1249500811,
-0.0120066889,
-0.0260489285,
-0.2467250973,
0.0929740816,
0.0209723711,
0.0895192176,
-0.048032552,
-0.0645179823,
0.1016280055,
-0.1225494891,
0.3272275925,
-0.1230131537,
-0.083908394,
-0.1053657383,
-0.0240379497,
0.0994607061,
0.2704181373,
0.0243563205,
0.3296838701,
0.3303028345,
0.2231871933,
-0.3987431824,
-0.0195251554,
0.1854532659,
-0.4523903728,
-0.2727067173,
-0.2303163111,
0.2011427581,
0.1696780324,
0.2593233883,
-0.1572711021,
0.1248512268,
0.5009219646,
-0.0768935978,
0.1301141977,
0.3328208625,
-0.0222500376,
0.3303352892,
-0.0723399967,
0.1694296598,
-0.0651864111,
-0.1960438192,
-0.2223624587,
-0.0946174338
] |
https://github.com/huggingface/datasets/issues/877 | DataLoader(datasets) become more and more slowly within iterations | > Hi ! Thanks for reporting.
> Do you have the same slowdown when you iterate through the raw dataset object as well ? (no dataloader)
> It would be nice to know whether it comes from the dataloader or not
I did not iter data from raw dataset, maybe I will test later. Now I iter all files directly from `open(file)`, around 20000it/s. | Hello, when I for loop my dataloader, the loading speed is becoming more and more slowly!
```
dataset = load_from_disk(dataset_path) # around 21,000,000 lines
lineloader = tqdm(DataLoader(dataset, batch_size=1))
for idx, line in enumerate(lineloader):
# do some thing for each line
```
In the begining, the loading speed is around 2000it/s, but after 1 minutes later, the speed is much slower, just around 800it/s.
And when I set `num_workers=4` in DataLoader, the loading speed is much lower, just 130it/s.
Could you please help me with this problem?
Thanks a lot! | 64 | DataLoader(datasets) become more and more slowly within iterations
Hello, when I for loop my dataloader, the loading speed is becoming more and more slowly!
```
dataset = load_from_disk(dataset_path) # around 21,000,000 lines
lineloader = tqdm(DataLoader(dataset, batch_size=1))
for idx, line in enumerate(lineloader):
# do some thing for each line
```
In the begining, the loading speed is around 2000it/s, but after 1 minutes later, the speed is much slower, just around 800it/s.
And when I set `num_workers=4` in DataLoader, the loading speed is much lower, just 130it/s.
Could you please help me with this problem?
Thanks a lot!
> Hi ! Thanks for reporting.
> Do you have the same slowdown when you iterate through the raw dataset object as well ? (no dataloader)
> It would be nice to know whether it comes from the dataloader or not
I did not iter data from raw dataset, maybe I will test later. Now I iter all files directly from `open(file)`, around 20000it/s. | [
-0.3166599274,
-0.1029364988,
-0.0979053229,
0.2440701723,
-0.0499429666,
-0.0601618588,
0.4438635707,
0.0588657856,
0.2712093592,
0.1299746335,
-0.1063354462,
0.4185291529,
-0.0331582725,
-0.027514223,
-0.2983726263,
-0.0049314313,
0.0067097694,
0.1882976294,
-0.4768674374,
-0.1194709986,
0.0179645643,
0.0545864925,
-0.201402843,
-0.1911983192,
-0.1009983271,
-0.1206041798,
0.1409039795,
0.1710789204,
-0.1337468028,
-0.4246097803,
-0.0138661154,
0.1935271919,
0.3952453136,
0.6482264996,
-0.0001178202,
0.0566183478,
0.0264995135,
0.2120860666,
-0.2565657496,
0.4005941153,
0.0597717836,
-0.4337364435,
0.1683364809,
-0.1513475329,
0.2930935621,
-0.1966494769,
-0.3613283932,
-0.1367076486,
0.0631071478,
-0.0252261311,
0.0939410478,
0.5212463737,
-0.4703534245,
0.0297144987,
-0.0337097943,
-0.1853244901,
-0.1692754626,
0.3814849854,
0.7359796762,
0.0564529598,
-0.5058467388,
0.2526674569,
0.0517945811,
0.3203216195,
0.1774703264,
0.1548086852,
0.393853128,
-0.2973327041,
-0.0632716045,
0.3236047626,
0.7466251254,
-0.0210778993,
-0.2943344712,
-0.0697090402,
-0.0124596972,
-0.2196052969,
0.0809598118,
-0.3400806785,
-0.3324062228,
-0.1357453316,
-0.323838979,
-0.0309909079,
0.0235061049,
-0.0490885675,
-0.0860466883,
-0.0660925582,
0.0649645776,
-0.1187764183,
0.2368848026,
-0.2670116425,
0.3284735084,
-0.196285367,
0.1320452392,
0.1515494734,
-0.6910887361,
-0.1019917205,
-0.3191572428,
0.0319951922,
-0.0595747083,
0.0018935502,
0.3282823861,
0.1334092468,
-0.0833958164,
0.0504405946,
0.1658604741,
0.1284783632,
-0.0052221306,
-0.2074885666,
0.1097570062,
0.1336804628,
-0.2376727462,
0.0282058381,
-0.2098189592,
-0.3414179683,
0.5878216028,
-0.1503875852,
-0.1432617903,
0.1301598698,
-0.2243595123,
-0.2226839513,
0.1200111359,
-0.2705470622,
0.3614212871,
0.2429320067,
-0.1394591928,
0.4287489355,
-0.2386576384,
-0.0481596999,
-0.281855315,
-0.430223465,
-0.0740945041,
-0.2263042182,
-0.1469931155,
0.3179361522,
-0.0038823709,
-0.2084018737,
0.0603288114,
0.4574334621,
0.2425088435,
-0.0128220096,
0.1101610735,
-0.268615365,
-0.1184235066,
-0.0063190721,
-0.1206200421,
0.3061604202,
0.0516660772,
0.0760857761,
-0.09695182,
0.1832524836,
-0.6864607334,
0.0834370106,
-0.0672796071,
0.1188881099,
0.208592698,
-0.188648656,
-0.2580998838,
-0.0979591236,
-0.2360370606,
-0.0075425208,
0.0347407162,
-0.3694821,
-0.053345453,
-0.0692518502,
0.0106373504,
0.3819205761,
-0.1973312795,
0.0350576043,
-0.1582670063,
0.0454134122,
0.4544563591,
0.4650475383,
-0.3375990689,
0.6549207568,
-0.4523156583,
-0.2464648485,
0.4832219481,
-0.2251609117,
-0.4284913242,
0.8008059859,
-0.1540123522,
0.283891499,
0.319306314,
0.4010229409,
0.4309623241,
-0.2910651565,
0.1836390644,
0.1751568764,
0.2073602378,
0.2159061134,
-0.1610918045,
0.1502372921,
0.2100468725,
0.2198767364,
-0.0866751969,
0.3731679916,
0.0138053335,
-0.2445849776,
0.530035615,
-0.2338071167,
-0.0645176023,
0.3581280112,
-0.1276016235,
-0.1772903502,
0.1632806212,
0.1161285639,
-0.5292481184,
0.2247517854,
-0.0182534419,
-0.2675391436,
0.3040399253,
0.1315128505,
-0.1732220054,
0.0576085225,
-0.289350301,
0.0605173893,
0.0344242118,
0.1301121712,
-0.1397275627,
-0.3061438799,
-0.0136177242,
0.341511488,
-0.0361141339,
0.0500602461,
0.0910877883,
0.2567867637,
0.4768994153,
-0.1074486449,
0.2059675157,
-0.3815587461,
0.0034208409,
-0.1245021075,
-0.1431286633,
0.2594465911,
0.2545198798,
0.4919042587,
0.4801599681,
0.1059653461,
0.2099206746,
0.0794371516,
0.1212286875,
-0.1313032508,
0.2305026948,
-0.1494424492,
0.3068240881,
0.3459586203,
-0.4667883813,
0.331751287,
-0.1355158687,
-0.2834474742,
0.096317783,
-0.0036895052,
-0.0947325975,
0.425070852,
0.4221171439,
0.2127610594,
0.5241930485,
0.2097857147,
-0.1657803655,
0.1091378853,
0.1247466207,
0.0873473883,
-0.2630183995,
0.1912242919,
-0.2478466779,
0.0131325945,
-0.1887075901,
-0.0204517469,
0.4574693143,
0.0307618342,
0.1961122304,
-0.1940345913,
0.2421049774,
-0.1629879475,
-0.0085569248,
0.2014559954,
0.2979937494,
0.4072521925,
-0.0514674447,
-0.0824853927,
-0.2856565714,
-0.3075769842,
0.0966849774,
0.3380292058,
-0.1108183563,
0.2201797366,
-0.2431993037,
0.1831481457,
-0.1834973246,
-0.3231661618,
-0.2017692775,
-0.2333126962,
-0.2080875486,
0.1413585246,
0.3014652729,
-0.0248407051,
0.1472411752,
-0.0204528123,
0.2273664922,
0.0493649393,
-0.185148865,
0.0364045091,
-0.093450129,
-0.0383995175,
0.2595826089,
-0.1724713296,
0.0450632423,
-0.1190328896,
0.1774958521,
-0.3923739493,
0.2000945956,
-0.1399606466,
0.0718207806,
0.172439754,
-0.0584422275,
0.3595054448,
-0.0697537959,
-0.0975476801,
0.1009121835,
-0.115133673,
-0.0050507113,
0.0129503608,
-0.2145969421,
0.1132046208,
0.3765965104,
0.0537095852,
-0.2767657936,
-0.1288032532,
-0.1705851555,
0.0340351537,
0.1489659548,
-0.1220614761,
-0.1305593401,
0.0655793473,
0.2450956255,
0.0501669124,
0.0157432184,
-0.762106061,
0.3951427341,
0.0677167773,
0.015577253,
-0.2487182319,
-0.0788238794,
0.1925944984,
0.2424007058,
-0.4438734055,
0.0044749267,
-0.1068582758,
0.2340219021,
-0.2126052976,
0.1059336439,
-0.1001091599,
-0.1356114596,
-0.0600722171,
0.0671861619,
-0.0468252823,
-0.1423876733,
-0.2593166828,
0.0523369946,
-0.0820426494,
0.2709994316,
-0.2003935575,
0.4641515017,
0.2466202676,
-0.0860848576,
0.1353132129,
-0.1073708609,
0.0927098244,
0.1337200254,
-0.3944267929,
-0.2607375085,
-0.1174354404,
-0.3128915131,
0.3140816987,
-0.3539558649,
0.0119829867,
0.0010053217,
0.0014416501,
-0.0945532024,
-0.0288457759,
0.1546301991,
-0.1546780318,
0.2852310538,
-0.1361414939,
0.0237187147,
-0.3096567094,
-0.1658520103,
0.1099761426,
0.2008669972,
0.0345289037,
-0.3326032758,
-0.4072928429,
0.1362866312,
-0.453999877,
0.0484833606,
-0.0090090297,
0.5288021564,
0.3669136763,
0.0660330281,
0.3438122869,
0.0605068915,
0.554829061,
0.2545395792,
-0.2080110013,
0.0195859745,
-0.4589506984,
0.0202270448,
-0.1629424542,
-0.2597130239,
0.2689759731,
0.355183959,
0.4644606113,
-0.0557686836,
-0.2231532782,
-0.12569727,
0.1310105622,
-0.1777800918,
-0.5715377331,
-0.1179522425,
0.10327968,
0.1491023153,
0.102757901,
-0.5400915146,
0.2180648744,
0.0086469278,
-0.0137987584,
-0.0727659613,
-0.2045614719,
0.311406374,
0.0704571307,
0.1319790035,
0.1789389253,
0.3548607826,
0.0108652394,
-0.0264910944,
0.138088569,
0.155693084,
-0.0258879494,
-0.1709599793,
0.1659113616,
0.076654464,
0.3214378953,
0.206989035,
-0.0495262668,
0.1642781496,
-0.1335688382,
0.1671286225,
-0.1898437738,
-0.2364572436,
0.569737196,
0.0143370293,
-0.4116794467,
-0.1541270912,
0.4692336619,
0.0824369341,
-0.0329310447,
0.3657381535,
-0.5970935225,
0.0303880498,
-0.159268707,
0.1182074696,
0.7345674634,
-0.1399643719,
-0.0110858325,
0.0630712062,
0.3613536656,
0.0445492081,
-0.1997790784,
-0.0245234687,
-0.2633059025,
-0.4968052804,
-0.0064576864,
-0.3365731537,
0.4635763466,
0.1743905544,
-0.0789044201,
0.1565502584,
-0.1058640033,
-0.0809653401,
-0.1944640428,
0.2345708907,
-0.0844629258,
-0.4102792442,
-0.2810536921,
0.0388458818,
-0.1339750886,
0.1421442628,
-0.1132422537,
-0.2350193113,
0.085100159,
0.3290154338,
-0.0351836532,
-0.1962544322,
-0.312446624,
-0.012079522,
0.4914210439,
-0.2618902326,
-0.1324983537,
0.0706863105,
0.0515628681,
-0.1660015583,
0.0156614017,
0.2186151445,
-0.0118652135,
0.3512451351,
0.1358559132,
-0.2737430036,
0.1267367601,
-0.0248623677,
0.2071806639,
0.2973386943,
0.0734464899,
-0.217952922,
0.0671451092,
0.1551454216,
0.2528365552,
-0.1812252551,
-0.1727756113,
0.1670878083,
0.0898411721,
-0.0780789405,
0.0423072949,
0.485802412,
-0.2343535721,
0.4053569138,
0.0650556386,
-0.4244103432,
-0.1394927204,
0.2559438646,
0.3345212042,
-0.0433803871,
0.5527670383,
0.0542341322,
-0.2101470828,
-0.1225173324,
0.3144050837,
0.0625271797,
-0.267716378,
0.2483634055,
0.1136024892,
0.4252678454,
0.222735703,
0.0260570645,
-0.0250556264,
-0.0971147865,
-0.3878437877,
-0.3976690769,
-0.1520531476,
-0.1582999974,
-0.0333081372,
0.0078743165,
-0.2520020008,
-0.1751624048,
-0.0461986586,
0.2650782466,
-0.1847982258,
-0.0912907496,
-0.0756388903,
-0.0717388988,
0.1688822359,
-0.1944395602,
0.1162432656,
0.3230675161,
0.0221841931,
0.0959102362,
-0.0278773103,
-0.1538805366,
0.0664541349,
0.149530679,
-0.0937713906,
-0.1992664784,
0.0827974677,
-0.0799874812,
0.0872306302,
-0.124339506,
-0.1106039509,
-0.1067117974,
-0.0078493766,
0.0647786111,
0.3694910705,
-0.1574410349,
-0.1222181246,
0.2708651721,
0.0151600651,
0.174654454,
0.1952186972,
-0.0044964906,
0.1171731204,
-0.2872149348,
-0.2666615546,
0.1080248654,
0.1165789962,
-0.1188655496,
0.3841859996,
-0.5312280655,
0.2938058972,
0.0472392961,
0.1531579792,
0.4938798547,
-0.1071816757,
-0.3221666813,
-0.0204023048,
0.1087444797,
-0.0412735455,
-0.3164402246,
-0.043235369,
0.1390950829,
-0.0700436682,
0.1413058639,
-0.0209871382,
0.0084884912,
0.1209071055,
-0.1787741333,
-0.031803906,
-0.2754977942,
-0.1832913756,
0.1137365624,
0.2706338763,
0.0924992636,
0.3110259771,
0.4216330945,
-0.2320678681,
0.1466446966,
0.0508887544,
0.2746367455,
0.3467848897,
0.1904749274,
-0.1923954785,
-0.4684845805,
-0.1191157699,
0.4923173189,
-0.2387516946,
-0.1527890861,
0.0457614884,
-0.0554564483,
0.1530506909,
-0.1237032786,
-0.2178714573,
0.2652504444,
-0.1303158104,
-0.2375985086,
0.0564870387,
-0.006806232,
-0.1462869346,
0.0895876959,
-0.2862943709,
0.0816507265,
-0.2494117171,
0.3162234724,
0.1634911001,
-0.4218573868,
-0.4552077651,
0.1364048421,
-0.0514429808,
-0.2444346845,
0.0437281057,
-0.1586109251,
0.2364048064,
0.1942925006,
0.2766428888,
0.230755493,
0.4069310427,
0.0945902243,
-0.0864990726,
-0.3239962757,
-0.0940494537,
0.1422659159,
0.1759307534,
-0.2421975583,
0.0937009007,
0.2388683856,
-0.0122271627,
-0.2029806077,
-0.2131849229,
-0.1822449565,
-0.1011534929,
-0.4517958462,
0.1729623377,
0.1904036701,
0.1621839702,
-0.273857981,
-0.0217472166,
-0.3191105127,
-0.2476680726,
0.3361479938,
-0.4791126847,
-0.033463195,
-0.0005315803,
0.0150804259,
-0.3787364364,
0.7244365215,
0.426589489,
0.3731871545,
-0.3712475896,
-0.2031196207,
-0.4963700175,
-0.1356546432,
-0.1927958876,
-0.0929634199,
0.3313577473,
0.4202614725,
0.0891367719,
0.2848302126,
0.4489073455,
-0.0367924348,
-0.2154840827,
0.1458651721,
-0.3762748241,
0.0610196479,
-0.2251272798,
0.2461048514,
-0.23042202,
-0.2388390601,
0.5200163126,
-0.0023022555,
0.0758838654,
0.1667216122,
-0.0106623918,
0.2384667397,
0.5113661289,
0.181831941,
-0.0143392198,
0.0355590768,
0.0796925873,
0.0058668032,
-0.0101932772,
-0.2185799927,
0.0669596121,
0.0282925125,
0.0977739692,
-0.0449022353,
-0.051878117,
0.0738145709,
-0.1508273631,
0.3138604164,
-0.1692913175,
-0.0898569524,
-0.1428133994,
-0.0491728634,
0.1282467991,
0.2565408051,
0.038250763,
0.3413081467,
0.3397577107,
0.2115657032,
-0.421507597,
-0.0126904994,
0.1704149544,
-0.438891232,
-0.2576791942,
-0.1882519126,
0.213484481,
0.1332676858,
0.2981820107,
-0.1307426393,
0.1505236924,
0.5181913376,
-0.059445262,
0.1413767934,
0.3339853883,
-0.021269273,
0.3372211456,
-0.053097412,
0.1800503135,
-0.0183498971,
-0.2241742462,
-0.224096626,
-0.0788605064
] |
https://github.com/huggingface/datasets/issues/876 | imdb dataset cannot be loaded | It looks like there was an issue while building the imdb dataset.
Could you provide more information about your OS and the version of python and `datasets` ?
Also could you try again with
```python
dataset = datasets.load_dataset("imdb", split="train", download_mode="force_redownload")
```
to make sure it's not a corrupted file issue ? | Hi
I am trying to load the imdb train dataset
`dataset = datasets.load_dataset("imdb", split="train")`
getting following errors, thanks for your help
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 558, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 73, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=32660064, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='test', num_bytes=26476338, num_examples=20316, dataset_name='imdb')}, {'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=0, num_examples=0, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}]
>>> dataset = datasets.load_dataset("imdb", split="train")
```
| 51 | imdb dataset cannot be loaded
Hi
I am trying to load the imdb train dataset
`dataset = datasets.load_dataset("imdb", split="train")`
getting following errors, thanks for your help
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 558, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 73, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=32660064, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='test', num_bytes=26476338, num_examples=20316, dataset_name='imdb')}, {'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=0, num_examples=0, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}]
>>> dataset = datasets.load_dataset("imdb", split="train")
```
It looks like there was an issue while building the imdb dataset.
Could you provide more information about your OS and the version of python and `datasets` ?
Also could you try again with
```python
dataset = datasets.load_dataset("imdb", split="train", download_mode="force_redownload")
```
to make sure it's not a corrupted file issue ? | [
-0.5215909481,
-0.0397975296,
-0.1209276691,
0.4138287306,
0.3087592721,
0.3442182541,
0.4162844419,
0.4116173089,
0.1893083602,
-0.1259103119,
-0.2459377646,
-0.036380291,
-0.2387997806,
0.1189187989,
-0.1006124914,
-0.1933897138,
-0.1093896031,
-0.0083491094,
0.0082317777,
0.0248097777,
-0.1954827905,
0.2631107271,
-0.407417804,
-0.0073810667,
-0.553347528,
-0.2076047659,
0.066441752,
0.2464726269,
-0.1878924966,
-0.3777329326,
0.4374705851,
0.0338278674,
0.2985225022,
0.4265396893,
-0.0001084289,
0.0661217719,
0.556009531,
-0.1408039033,
-0.3377950788,
-0.2855278254,
-0.2910866737,
-0.0734332725,
0.2554956079,
-0.2121905982,
-0.0610391796,
-0.273561269,
-0.087679252,
-0.4681124687,
0.3000149727,
0.4594839811,
0.2551242709,
-0.0305229947,
0.0760368779,
-0.1456568241,
0.0994297639,
0.182569772,
0.0096923113,
0.3030391037,
0.0760115087,
0.0173887983,
0.214522779,
0.0415255874,
-0.2540515661,
-0.0379884169,
0.2962741554,
0.0274887234,
0.0673012733,
-0.467769742,
0.0347381122,
0.2485592663,
0.6612051129,
-0.0836045295,
-0.3514131308,
-0.0572898872,
0.1594480276,
-0.2821143866,
0.1125694811,
0.2813577056,
-0.1202666163,
0.1045410335,
-0.4093436897,
-0.06622006,
-0.085824877,
0.1770363897,
0.0300608203,
-0.0702762902,
0.0590690449,
0.0750906095,
0.2223216593,
-0.1004086211,
0.3060331345,
0.0287061371,
0.0114889778,
0.1601475775,
-0.2722391188,
0.0616548657,
-0.3099355102,
0.0013535544,
-0.0696113259,
0.2496414632,
-0.206976518,
-0.0210835021,
-0.0292113349,
0.2595463097,
0.2834866047,
0.1375843287,
0.0388359576,
0.406424135,
0.1448389292,
0.2383130789,
-0.2738070488,
-0.1059614345,
-0.2260228544,
-0.1501698494,
0.0980357826,
0.1302990019,
0.0258589089,
-0.1813315153,
-0.5039570332,
-0.0179436821,
-0.1861052513,
0.0018604025,
0.3757009208,
0.3940536678,
-0.1082344875,
0.171102643,
0.1874574572,
0.3105211258,
-0.1181695461,
-0.0630418882,
-0.1855240017,
0.273118645,
-0.1848760396,
0.078520447,
0.4066706896,
-0.1432264596,
0.4070622921,
0.0138799921,
0.0988443494,
-0.2059768438,
0.1962584853,
-0.3265185058,
0.0474710092,
0.3069470525,
0.2882389426,
0.1749828011,
0.1750800163,
-0.0222156867,
-0.1219262555,
0.0434902534,
-0.2463376224,
-0.4131354094,
-0.1829316169,
0.2787931263,
-0.0036366731,
-0.055039566,
-0.4261497557,
-0.0292972457,
0.0431887358,
-0.1881001294,
-0.1758462638,
-0.3051408529,
-0.175562948,
-0.1236033365,
0.428362757,
0.4742213488,
-0.281942606,
-0.0677015632,
-0.3545878828,
-0.1019602716,
0.2071658075,
0.2522234619,
-0.3016598225,
0.2245973796,
-0.3644296229,
0.1026928127,
0.3114511371,
-0.4896248281,
-0.1315890849,
0.307009995,
0.1519508958,
0.1178986952,
0.0510698445,
0.117821455,
0.3234885633,
0.0152817555,
0.2373962998,
0.427221328,
-0.0333050862,
-0.1566789746,
-0.0633250549,
-0.2016087174,
0.1954356432,
0.3601024151,
0.3082619607,
0.0021149479,
0.0012144595,
0.2097962201,
0.2742594481,
0.1175744012,
-0.0408719964,
0.2063192725,
-0.0526261553,
0.3531843424,
-0.0541509464,
-0.199060306,
-0.4411433041,
0.1967229247,
0.2666049004,
-0.0465097278,
-0.1574426293,
-0.1011872217,
-0.2758455575,
-0.1793882847,
-0.2391407192,
0.003442429,
0.1849971712,
-0.0831258669,
-0.0139209144,
0.0582017601,
-0.4372185171,
0.3967023492,
-0.1066199839,
0.1430695951,
-0.3454017639,
0.3588090837,
-0.1727034152,
-0.2236959338,
0.1571169496,
0.1187445894,
0.1863100231,
-0.2496664226,
-0.046586208,
0.4384960234,
0.3271711469,
-0.0282258019,
-0.0712761432,
-0.2227295488,
0.1980133504,
-0.3737976849,
0.1602870375,
-0.1303506196,
0.0517521352,
-0.13544029,
-0.0591691695,
0.1639063507,
-0.2817701101,
0.2440555841,
0.2280350924,
0.1386643052,
0.2511509657,
-0.0994583443,
-0.0211279877,
-0.4406084716,
0.1827889383,
-0.019027764,
0.0183310732,
-0.0145890852,
-0.2629709542,
-0.212771371,
0.4115475416,
0.147650376,
-0.0533786938,
0.1388182938,
-0.1717074513,
0.1022976413,
-0.0761988461,
0.1512967795,
0.2494870573,
0.1761389077,
-0.0901043564,
-0.0738933757,
0.1371011287,
-0.1112426221,
0.2687688172,
0.0630817562,
0.1386986822,
0.3271506429,
-0.1574339122,
-0.0432166159,
-0.300572902,
-0.3626561165,
0.1164299995,
0.2661465108,
-0.3761330247,
-0.0721555203,
-0.313732326,
-0.1708399355,
-0.0889626965,
-0.3290142417,
-0.0407062508,
-0.326582849,
-0.087656498,
0.3447712958,
0.3259417415,
0.1502281725,
-0.2954137325,
-0.1498265713,
-0.0587890148,
-0.047468923,
-0.075770542,
-0.2140560746,
-0.1474246234,
0.1250644028,
0.451913029,
0.1995561123,
0.2789732516,
-0.3943608403,
-0.0972724631,
0.0210902411,
0.158314079,
-0.0527741797,
-0.1372922212,
0.1901930273,
0.1164055169,
0.248075664,
0.1137988716,
-0.511987865,
0.3313749433,
-0.1434603035,
0.0764831007,
0.1595183611,
0.0767461061,
-0.0790890157,
0.0146050453,
-0.4780645967,
-0.4822547138,
-0.3378784657,
-0.0881931931,
0.1694434285,
0.0430160463,
0.2023381144,
0.1366271377,
0.1154310405,
0.3183823526,
0.1276841313,
-0.029581381,
-0.3274244666,
0.3202656507,
-0.2303404808,
-0.160382688,
0.2412949353,
0.1050816849,
0.146146521,
0.0087440982,
-0.414042443,
0.0979014561,
-0.0617495552,
0.1573086232,
-0.0945537239,
-0.1469498426,
-0.0430613533,
0.0699407011,
-0.041944623,
0.0470372438,
-0.0949974209,
-0.0371986777,
-0.0491981804,
0.1601985693,
-0.1255298257,
0.5187343955,
-0.3258316517,
0.5013356805,
0.2936227322,
-0.2053152472,
0.3749495745,
-0.192738086,
0.1645798832,
-0.2501032352,
-0.619615674,
-0.1546028852,
-0.1297277957,
-0.1464298069,
-0.0048479363,
-0.1120474637,
-0.1894550622,
-0.2324507535,
0.1264523864,
-0.3695998788,
-0.1551603377,
0.0012164637,
-0.3850666583,
0.0758726001,
-0.2124608755,
0.1771606356,
-0.0284016505,
-0.2188701928,
0.0555677153,
0.3343017101,
0.1610340327,
-0.0290785432,
-0.1514211446,
-0.1663626581,
-0.0766228884,
0.2000467032,
0.0912992209,
0.3703828156,
-0.2813603282,
0.1310257614,
0.0968394727,
0.2025270164,
0.7217806578,
-0.3861365914,
0.0293865092,
0.2499890476,
-0.0360612124,
-0.2788176835,
-0.0903182328,
-0.1689855158,
0.2853348851,
0.3045783639,
0.4047123492,
-0.0590222254,
-0.135176897,
0.3005586565,
0.2268383354,
-0.1510551572,
-0.2041571885,
-0.2009697556,
-0.0961609855,
-0.3041918278,
-0.156325385,
0.0761828274,
0.1681105196,
-0.166272223,
-0.1548368633,
-0.1071050167,
-0.0860010833,
0.2872061133,
0.1429072618,
0.4447771907,
0.1364571899,
0.2428425252,
0.2942501009,
-0.0182976909,
0.6086502671,
0.5828626752,
-0.3432210982,
-0.1498760581,
-0.00544044,
-0.0642553195,
0.2022986263,
0.0719379708,
-0.1482063085,
-0.382892549,
-0.0234471783,
0.0470135957,
0.0367248766,
0.073989898,
0.4998266697,
-0.1790414453,
-0.3552516103,
-0.722640872,
0.2665427625,
0.2397557348,
0.1121798903,
0.2370273769,
0.0124271847,
-0.2850596309,
0.387568295,
0.0134151597,
0.6175729632,
-0.1111614555,
-0.1354357004,
-0.0062211072,
0.2396580577,
0.1921857446,
-0.2774075866,
0.1478307992,
-0.3572450578,
-0.2386854291,
-0.113082394,
-0.1766702384,
-0.0648921728,
0.1164606959,
-0.2836247087,
0.2537146807,
-0.4340720475,
-0.1987107694,
-0.3366388977,
0.519369185,
-0.1824017912,
-0.0792319477,
-0.0600762554,
0.2007256895,
-0.0260533914,
0.0932926089,
0.0542490259,
0.0664751083,
-0.1279195845,
0.0140652135,
-0.4498793781,
0.1206536293,
-0.0912439972,
0.4674476981,
-0.2363012582,
-0.1817729175,
0.1474530399,
0.2513225675,
0.1848682165,
-0.1039215773,
-0.0616100654,
0.1473176479,
0.1996780634,
-0.2431144267,
-0.0718798041,
0.065990828,
0.5382037163,
0.0189234242,
-0.2080613673,
0.1704939604,
-0.0192907862,
-0.090304926,
0.2119589597,
-0.1407054961,
0.2336814106,
-0.3958041668,
-0.3060355484,
-0.1800653785,
-0.0167642757,
-0.0842177197,
0.1587503254,
-0.0818682313,
-0.0336173698,
0.2271254659,
0.1778802723,
-0.2174730897,
0.0068270322,
0.3988777995,
0.0557020195,
0.2617915273,
0.6054589152,
0.3335592151,
-0.1888597459,
-0.2647026181,
0.1452555358,
0.1888811886,
-0.3561074138,
0.1968365312,
0.0737197176,
0.2766792178,
0.1766979247,
0.0865054503,
0.14204593,
0.0673732087,
-0.1388964355,
-0.5432533026,
-0.2428757399,
0.2320494652,
-0.1529147923,
0.1940090656,
-0.1489850134,
0.0385882296,
0.0362789184,
-0.0897377208,
-0.3076260388,
0.1704565883,
-0.3536535501,
0.023795981,
0.033267308,
-0.1266151518,
0.1435005069,
-0.1172340438,
0.2098434418,
-0.1444980651,
0.0421804674,
-0.2270583212,
0.0067787021,
0.0830586553,
-0.0757994279,
-0.200037539,
-0.2402272373,
-0.1800374389,
-0.2467719913,
-0.111523129,
-0.1279413551,
0.2296344042,
0.1045644134,
0.2553444505,
0.109218806,
-0.1440075934,
-0.1522473544,
0.1293585002,
-0.0784708038,
0.1014197469,
0.0305779688,
0.074283056,
0.1241863817,
-0.0104303733,
-0.2565321922,
0.0256589744,
-0.0393743329,
0.000374401,
0.319609642,
-0.2303963006,
0.2110102773,
0.2362060398,
0.2677217722,
0.6366460919,
-0.1434469819,
0.1193623096,
-0.1094077528,
0.2458397746,
-0.2158834785,
0.0160183869,
0.2568392456,
0.0181631111,
-0.1134099811,
0.1555424333,
0.062250331,
0.0334845185,
-0.1858022511,
0.0147246495,
0.4976822734,
-0.022680711,
0.3811486363,
0.2872028053,
-0.0353964865,
-0.1042966098,
0.0545421913,
0.1543369889,
0.2103147507,
0.5497241616,
-0.3222815692,
0.1640166044,
-0.1561699659,
0.0331001319,
-0.0107063651,
-0.3065339923,
0.0461901575,
0.0737170726,
0.0256277453,
-0.1397120059,
-0.1254888773,
0.3516053557,
-0.2902525365,
-0.1200766563,
-0.2268696129,
0.0749205649,
-0.142319873,
0.1095636189,
-0.1731154621,
-0.1698092222,
-0.3732799292,
-0.0568983108,
-0.0800222903,
-0.0284514241,
0.1086797565,
0.3877876997,
-0.165738821,
-0.3098507822,
0.0844729915,
0.09710107,
0.1705613732,
-0.3105942607,
0.1344517469,
0.2724176347,
0.1277645975,
0.3165693581,
0.1486421973,
0.5456299782,
0.3749962747,
-0.2448309064,
0.0116228461,
0.1487067044,
-0.1571663618,
0.075375244,
0.2999420762,
0.1794321835,
0.3049533665,
0.2285932004,
0.2683782279,
-0.1066692472,
0.0680552721,
-0.0231997967,
0.24831976,
-0.1545083821,
0.374786377,
-0.1099100783,
-0.0839412361,
-0.3794901669,
-0.0722262859,
-0.3162462115,
-0.1649582237,
0.386769712,
-0.1232079566,
0.0033523068,
0.0040560067,
0.0844310746,
-0.1905734688,
0.4992547333,
0.3944140375,
0.1096334606,
-0.4755223095,
-0.0928497985,
-0.5908113718,
-0.0558130071,
-0.0984437019,
-0.0759909227,
0.2061032057,
0.2298829257,
-0.1204378232,
0.0457117446,
0.0933319032,
0.1367590278,
-0.0401351377,
0.2172297984,
-0.2901269794,
-0.0901620984,
-0.2090151906,
0.0558772385,
-0.1663664728,
-0.167405203,
0.0828183591,
-0.5049977899,
0.0360492244,
0.0008962434,
-0.3720474541,
0.1805411875,
0.3742031157,
0.2840798497,
-0.0968507901,
0.799004674,
0.0698331296,
-0.0349647664,
-0.2617947757,
-0.3925071955,
-0.1967744231,
0.4153388143,
0.2645186782,
0.301175952,
-0.1691697538,
0.0210935082,
-0.3125957847,
0.3212582171,
-0.0824552253,
-0.167882219,
-0.3540566564,
-0.1923818886,
-0.020094119,
0.0330967046,
0.2503873408,
0.1431868374,
-0.0678640008,
0.1911813617,
-0.2078017741,
-0.3176261783,
0.5762025714,
-0.0904494822,
-0.1553603858,
-0.1684870869,
0.0965389684,
0.2750174105,
0.0661566034,
-0.5203388333,
0.0940826833,
0.3871852756,
-0.1895416379,
-0.1051006392,
0.1640697718,
0.2043436319,
0.1031652689,
-0.0863082409,
-0.0761998445,
0.0498591177,
-0.1477048993,
-0.0565749258,
0.0410752743
] |
https://github.com/huggingface/datasets/issues/873 | load_dataset('cnn_dalymail', '3.0.0') gives a 'Not a directory' error | I see the issue happening again today -
[nltk_data] Downloading package stopwords to /root/nltk_data...
[nltk_data] Package stopwords is already up-to-date!
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
Can someone please take a look ? | ```
from datasets import load_dataset
dataset = load_dataset('cnn_dailymail', '3.0.0')
```
Stack trace:
```
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-6-2e06a8332652> in <module>()
1 from datasets import load_dataset
----> 2 dataset = load_dataset('cnn_dailymail', '3.0.0')
5 frames
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
608 download_config=download_config,
609 download_mode=download_mode,
--> 610 ignore_verifications=ignore_verifications,
611 )
612
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
513 if not downloaded_from_gcs:
514 self._download_and_prepare(
--> 515 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
516 )
517 # Sync info
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
568 split_dict = SplitDict(dataset_name=self.name)
569 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 570 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
571
572 # Checksums verification
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager)
252 def _split_generators(self, dl_manager):
253 dl_paths = dl_manager.download_and_extract(_DL_URLS)
--> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN)
255 # Generate shared vocabulary
256
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split)
153 else:
154 logging.fatal("Unsupported split: %s", split)
--> 155 cnn = _find_files(dl_paths, "cnn", urls)
156 dm = _find_files(dl_paths, "dm", urls)
157 return cnn + dm
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
```
I have ran the code on Google Colab | 108 | load_dataset('cnn_dalymail', '3.0.0') gives a 'Not a directory' error
```
from datasets import load_dataset
dataset = load_dataset('cnn_dailymail', '3.0.0')
```
Stack trace:
```
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-6-2e06a8332652> in <module>()
1 from datasets import load_dataset
----> 2 dataset = load_dataset('cnn_dailymail', '3.0.0')
5 frames
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
608 download_config=download_config,
609 download_mode=download_mode,
--> 610 ignore_verifications=ignore_verifications,
611 )
612
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
513 if not downloaded_from_gcs:
514 self._download_and_prepare(
--> 515 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
516 )
517 # Sync info
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
568 split_dict = SplitDict(dataset_name=self.name)
569 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 570 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
571
572 # Checksums verification
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager)
252 def _split_generators(self, dl_manager):
253 dl_paths = dl_manager.download_and_extract(_DL_URLS)
--> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN)
255 # Generate shared vocabulary
256
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split)
153 else:
154 logging.fatal("Unsupported split: %s", split)
--> 155 cnn = _find_files(dl_paths, "cnn", urls)
156 dm = _find_files(dl_paths, "dm", urls)
157 return cnn + dm
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
```
I have ran the code on Google Colab
I see the issue happening again today -
[nltk_data] Downloading package stopwords to /root/nltk_data...
[nltk_data] Package stopwords is already up-to-date!
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
Can someone please take a look ? | [
-0.224293083,
0.141945675,
-0.0225759186,
0.2384322286,
0.3819948435,
0.1261651963,
0.6168978214,
0.2147600353,
-0.0231773257,
0.1334130764,
-0.1637565196,
0.058236748,
-0.3759565055,
-0.1230774373,
0.0085835494,
0.1149687544,
-0.0964016169,
0.158295691,
-0.2051096708,
-0.1422861367,
-0.3901508749,
0.1864794493,
-0.0768183619,
0.0159927625,
-0.254440397,
-0.2072732747,
-0.1191691831,
0.4782720804,
-0.2281920016,
-0.3415711224,
0.2912241817,
-0.1937129498,
0.2596128583,
0.6446199417,
-0.0001103697,
0.1348130256,
0.257455498,
-0.0459847264,
-0.5990344286,
-0.6107157469,
-0.1344918311,
-0.1810778528,
0.2224273682,
-0.2857471108,
-0.0545736253,
0.1120454371,
0.0625394881,
0.0195217654,
0.3589367867,
0.5676548481,
0.2382051647,
0.2500876188,
-0.0214653909,
-0.1423247308,
-0.1394213587,
0.3917787969,
-0.0832961574,
0.5298005342,
-0.3784788251,
-0.0074532069,
0.3009920418,
0.2560059726,
-0.3467572629,
0.2481286824,
0.3105841875,
0.0931707993,
0.2014932483,
-0.3185790777,
0.0102558956,
0.0520641729,
0.4628159702,
-0.3776452839,
-0.213932842,
-0.0260961205,
0.0874804556,
-0.4519512653,
0.3440141082,
0.3034412861,
-0.1303294599,
0.0531830378,
-0.1461746693,
-0.1438381523,
-0.1814101636,
0.4520485997,
-0.1718833447,
0.2167277038,
-0.0570033491,
0.0317017548,
0.0401938893,
0.0549002402,
0.523049593,
-0.2012924254,
0.110983856,
0.1689763814,
-0.0259168707,
0.0619169921,
0.2004219592,
-0.1987340748,
-0.1959022284,
0.1629697382,
-0.0814732313,
-0.2725150883,
-0.0308210291,
0.042036131,
0.0562605262,
0.1875983179,
-0.0870420337,
0.5960316658,
0.2050023824,
0.2587228119,
-0.0126043558,
-0.1288864911,
-0.3524648249,
-0.2497719228,
0.1027376577,
0.0556451306,
0.6368339062,
0.0808698833,
-0.2626224756,
-0.1706476808,
-0.2875086665,
0.0266696066,
0.1824929565,
0.3770372272,
0.0879199058,
-0.001578073,
0.1018523425,
0.2980027795,
-0.0611401126,
0.3207462132,
-0.222789377,
0.2121758759,
-0.1194054037,
-0.0389346331,
0.270580411,
-0.2202290893,
0.1217844337,
-0.1732521057,
-0.0137368329,
-0.0063962489,
0.1550607383,
-0.175900504,
0.0742249191,
0.5078184009,
-0.1087167859,
0.2788080573,
0.270821631,
0.0265566558,
-0.3172302246,
0.1326727122,
-0.1793323159,
-0.4073955417,
-0.0890353173,
0.1918196827,
0.0433196872,
-0.1540220678,
0.0512396283,
-0.2044743896,
-0.1510187984,
-0.164699465,
-0.0049303547,
-0.1914938688,
-0.0878129601,
-0.3597048521,
0.2943394482,
0.6152350307,
-0.3911424875,
0.0004786029,
-0.4250386655,
-0.1540968418,
0.1708231568,
0.2825911045,
-0.1810851544,
0.4182515144,
-0.2191812694,
-0.2109978944,
0.4664494097,
-0.403903842,
-0.4069179296,
0.1619244218,
-0.1690846086,
-0.0231491588,
0.01432506,
0.1950930357,
-0.1637682319,
0.0874654502,
0.0317933224,
0.3440903723,
-0.0140825547,
0.0791537687,
-0.0952031687,
-0.2891000509,
0.1494428068,
0.1394835413,
0.2537146211,
0.2065375,
0.0017706789,
0.057444524,
0.0345368199,
-0.1340152323,
-0.0199388172,
0.1930292249,
0.4896594882,
0.0706254393,
-0.3033565879,
-0.008035928,
-0.5152104497,
0.115464896,
0.0506805629,
0.2688596547,
-0.2443438619,
0.0475811511,
-0.2807430923,
-0.1213216707,
-0.2518716455,
-0.0720803738,
0.1413442045,
0.3626240194,
0.0602167174,
0.0658182651,
-0.2875799835,
0.2650077045,
0.0555365086,
0.1482609957,
-0.1362411231,
0.4147193432,
-0.1979316622,
-0.0624309704,
-0.0436078385,
0.1352328658,
0.234595865,
-0.1446532011,
-0.1301755309,
0.3645669818,
-0.1508780271,
-0.0773254558,
0.0398342945,
-0.1054765582,
0.0736476853,
-0.0363832116,
0.2342951596,
0.3620507717,
0.1599349529,
-0.0431436002,
-0.100238651,
0.290410161,
0.1619524509,
0.039007213,
0.1538694054,
-0.0371429846,
0.039589569,
-0.0555201247,
0.1082933322,
-0.0412755162,
0.2116337568,
0.0997429043,
0.4739992023,
0.0227577556,
-0.1307645291,
-0.3711320758,
0.2705958486,
-0.1347057819,
0.1444201767,
0.1506155431,
-0.2888510823,
0.0992453843,
-0.1900034249,
0.1472332776,
0.6052932739,
0.1164715737,
0.0325044841,
0.1258143932,
-0.087090075,
-0.0704525411,
0.2077793032,
0.0883648992,
0.2569260597,
0.2160899937,
0.069526583,
0.0620278753,
-0.3969856203,
-0.2876625061,
0.0426680744,
0.4161450565,
-0.3931625187,
0.0595920831,
-0.124483794,
-0.2166052759,
-0.0977730006,
-0.5352475047,
-0.0786895752,
-0.3155722022,
-0.1555616111,
0.1735686064,
0.1367599368,
0.1662628353,
-0.1210423708,
-0.1262293458,
0.1058904752,
-0.4859185219,
-0.2068847418,
-0.0484765321,
-0.0174890868,
0.0651340187,
0.280449599,
-0.1032851189,
0.2476295531,
-0.1312972009,
-0.1217797995,
-0.186398685,
-0.0907369405,
-0.0835307539,
-0.1042269021,
0.2084369808,
0.2644520998,
0.3542819619,
0.0467903689,
-0.1947212517,
0.3619306386,
-0.1828132272,
0.0223098472,
0.3297626376,
-0.126029253,
-0.0134162866,
-0.0603096783,
-0.5458137989,
-0.545802772,
-0.3574634194,
-0.1193350106,
0.1282771975,
0.1643211544,
0.4390526116,
0.1495425403,
0.1939641237,
-0.1065733954,
0.0041580722,
-0.0272342861,
-0.1540677994,
0.4063129425,
-0.2877520025,
-0.2439710051,
0.1713535041,
-0.0405312702,
0.1901890337,
-0.1609369516,
-0.4939943552,
-0.2556863129,
-0.0731519461,
0.0382289216,
-0.1987712979,
-0.0513623282,
0.2149721384,
0.096202299,
-0.1009548753,
0.1519618928,
-0.1301398426,
-0.0496765412,
0.1687466651,
0.0203158967,
-0.2199281901,
0.5267879963,
-0.2912864089,
0.5844217539,
0.1298209429,
-0.0976591855,
0.3287142217,
-0.2017037719,
0.4355210066,
-0.2107223868,
-0.5223429799,
-0.0787453055,
0.2892432213,
-0.1790049374,
0.1800336242,
0.0565600656,
-0.2591915131,
-0.264301002,
-0.0444029644,
-0.3779842257,
-0.0743462145,
0.1186380386,
-0.0179858226,
0.0781656057,
-0.0592777207,
0.0965216383,
-0.1504167318,
-0.1698940247,
-0.121642977,
0.3782083988,
0.0190806724,
0.1019873172,
-0.0288799107,
0.0270934552,
-0.3145630956,
0.2298071384,
-0.0520727523,
0.0715469196,
-0.2187213898,
0.0831158757,
-0.0285110101,
0.0293104276,
0.3612945676,
-0.0923878551,
0.0112154465,
0.4276466966,
0.0723452643,
-0.4850643873,
-0.0946592093,
-0.2762003839,
0.1676737368,
-0.0012721121,
0.2047503442,
-0.117045261,
-0.1677079499,
0.3938708603,
0.2733160853,
-0.0797542185,
-0.324805975,
-0.4682424068,
-0.3894969821,
-0.4203395844,
-0.0765347257,
-0.1250402778,
0.075656794,
0.1052623987,
-0.1257729381,
-0.0364613682,
0.0204611719,
0.1145616621,
-0.0140964985,
0.2421567738,
0.0633370578,
0.1261455566,
0.1231673211,
0.1575559378,
0.3707533181,
0.5872368217,
-0.1024379656,
-0.3017365634,
-0.0854127109,
0.1388858408,
0.0639617518,
0.2150994837,
-0.2014810443,
-0.342936784,
0.0943880379,
0.1914979666,
0.0416609496,
-0.0360612087,
0.5686714649,
-0.1586034745,
-0.3970258832,
-0.2941640317,
0.4028084278,
-0.1327411234,
0.1745823622,
0.2641443014,
-0.1621218324,
-0.1939863265,
0.1144842654,
-0.2864451408,
0.7768803835,
-0.1121847034,
0.2149888575,
0.6759075522,
0.1097220629,
0.4076382518,
-0.0114143267,
0.13721627,
-0.3117954135,
-0.1835331917,
-0.1531408429,
-0.2621159554,
0.0990274549,
0.2857246697,
-0.1570022404,
0.4138245881,
-0.2599774003,
0.102806747,
-0.1273013651,
0.1603612006,
-0.0852784589,
0.0861266702,
-0.3097006083,
0.1809030771,
0.0234545432,
0.3886290193,
-0.2298668176,
0.1079558283,
-0.1512611061,
-0.2345505357,
0.0025135726,
0.123348996,
-0.4199485481,
0.2769890726,
-0.0176261812,
-0.1646069288,
-0.18694067,
0.2471042871,
-0.0704438686,
-0.0975801349,
-0.1174650863,
0.0991973057,
-0.1049690992,
-0.0900424868,
-0.1319459528,
0.0436583981,
0.2979980111,
-0.0978423953,
-0.294185698,
0.0657168254,
-0.1450731754,
-0.2795202136,
0.2277364284,
0.0566373877,
0.2674979866,
-0.358312279,
-0.2808159888,
-0.0401816219,
-0.0521989018,
-0.0776874721,
0.1419314444,
0.0039223023,
0.0197130963,
0.0714479089,
-0.2435000092,
-0.3559808731,
-0.1612132192,
0.283513546,
-0.2098849714,
0.060740903,
0.57391119,
0.1368581057,
-0.2089032382,
-0.3013283014,
0.1953061521,
0.0391629487,
-0.1753417253,
0.2251406759,
0.2365751863,
0.2650000453,
-0.0125541985,
0.255510807,
0.2237351984,
-0.0629734248,
-0.1974654943,
-0.3072933555,
-0.1711297631,
0.0286056381,
0.097840324,
0.2520789206,
0.0883999318,
0.0631105453,
0.3833883107,
-0.2658514678,
-0.3185987473,
0.0119839683,
-0.0162870325,
-0.0612216033,
0.0742240623,
-0.0595225133,
0.5541497469,
0.0120946914,
0.2147975713,
-0.3351579905,
-0.0658872351,
-0.2823097408,
-0.0192316025,
0.1273973286,
0.1241840273,
-0.1153776199,
0.0820351839,
-0.257568717,
-0.2182908058,
-0.128865391,
-0.0556789711,
0.2382223606,
-0.0639591366,
0.149333775,
0.0589088947,
-0.0790563375,
-0.1343444288,
0.0602039546,
-0.2575852275,
0.0918632522,
0.037909843,
0.1405529082,
0.211355269,
-0.1355242729,
-0.4185720086,
-0.0494292192,
0.0334851444,
0.0262347162,
0.2199245542,
-0.1869716346,
-0.0101035759,
-0.0072817504,
0.3588443696,
0.1904235631,
-0.286500752,
0.0540699512,
0.2150327265,
0.2182924449,
-0.288695693,
0.0796891302,
-0.0444072746,
0.0619236566,
0.1027722806,
0.1913686544,
-0.3624690473,
0.0646899194,
-0.1960900724,
0.0315472856,
0.388828218,
-0.1976900697,
0.0516500436,
0.3998382688,
-0.1716947556,
0.0677289665,
0.2848178744,
0.0445197821,
0.1066730469,
0.540301919,
-0.1691647023,
0.0274337735,
-0.2749080956,
-0.1154989526,
0.009339394,
-0.3157517612,
0.0527973995,
0.1499108076,
-0.0275920145,
-0.0061319433,
-0.1501960456,
0.2725356519,
-0.4593989253,
0.1213818938,
-0.3764189184,
0.3777874112,
-0.1425218135,
0.162541151,
-0.1579574645,
0.0105232745,
-0.0120908618,
0.0446167514,
0.0195148289,
-0.2471569777,
0.2412219346,
0.4903678,
-0.1194789857,
-0.141352281,
0.3903644383,
0.2625900507,
-0.1352913529,
-0.2359023094,
0.302546382,
0.3034744859,
0.1200004667,
-0.0492574498,
0.4870745242,
0.4269421101,
0.4090617895,
0.0039020702,
0.2013225704,
-0.0100116394,
-0.1889313757,
-0.0214959718,
0.0882004574,
-0.0550459102,
0.5318029523,
0.1638851464,
0.2567686737,
-0.2468537539,
0.1854959577,
0.0133692957,
-0.0159495585,
-0.1292090267,
0.6912084222,
-0.2564793229,
-0.105689764,
-0.2331102937,
0.0544374771,
-0.5289074779,
0.2520843148,
0.3535762429,
0.0812640265,
0.1096363142,
0.0725059286,
0.0778281614,
0.0445871055,
0.2782053351,
0.342743665,
0.3053824604,
-0.5661406517,
0.0243914425,
-0.6365786791,
0.1711902916,
-0.2892042994,
-0.0434491634,
-0.1806510836,
-0.0156532452,
-0.1364321709,
0.1296590865,
0.1261664331,
0.0536837764,
-0.0534695871,
-0.1056467816,
-0.2898376286,
-0.0953034163,
-0.0626655221,
0.0257233474,
0.0159502998,
-0.4950197339,
0.0248203389,
-0.4131799042,
0.0006355867,
0.027058553,
-0.1335078478,
0.0396978781,
0.3611628711,
0.4533374608,
-0.0263892561,
0.5661263466,
-0.0605584681,
-0.1965636164,
-0.1913535595,
-0.2649545074,
-0.1598002315,
0.2294676304,
0.1461040825,
0.3851696849,
-0.3064142168,
-0.0087608546,
-0.4270077646,
0.290130198,
-0.0378127806,
-0.0673952848,
-0.2009867132,
0.0023701079,
-0.1316204965,
0.1983621866,
0.1464609206,
-0.0151977967,
-0.0840773806,
0.1883643866,
-0.2635797262,
-0.3884925544,
0.4612840414,
-0.2634091079,
-0.243661657,
0.0428765379,
0.1699991226,
-0.0931855291,
0.1788181514,
-0.4839813113,
0.3811460733,
0.4383374453,
0.1640302837,
-0.219038114,
0.1378460974,
0.0010957718,
0.1383845359,
0.0792408139,
0.4123996496,
0.007534394,
-0.3825776279,
-0.0340821221,
-0.1186552793
] |
https://github.com/huggingface/datasets/issues/871 | terminate called after throwing an instance of 'google::protobuf::FatalException' | Loading the iwslt2017-en-nl config of iwslt2017 works fine on my side.
Maybe you can open an issue on transformers as well ? And also add more details about your environment (OS, python version, version of transformers and datasets etc.) | Hi
I am using the dataset "iwslt2017-en-nl", and after downloading it I am getting this error when trying to evaluate it on T5-base with seq2seq_trainer.py in the huggingface repo could you assist me please? thanks
100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 63/63 [02:47<00:00, 2.18s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
run_t5_base_eval.sh: line 19: 5795 Aborted | 39 | terminate called after throwing an instance of 'google::protobuf::FatalException'
Hi
I am using the dataset "iwslt2017-en-nl", and after downloading it I am getting this error when trying to evaluate it on T5-base with seq2seq_trainer.py in the huggingface repo could you assist me please? thanks
100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 63/63 [02:47<00:00, 2.18s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
run_t5_base_eval.sh: line 19: 5795 Aborted
Loading the iwslt2017-en-nl config of iwslt2017 works fine on my side.
Maybe you can open an issue on transformers as well ? And also add more details about your environment (OS, python version, version of transformers and datasets etc.) | [
-0.2756949067,
-0.6896207929,
0.1162041649,
0.3686619103,
0.334420681,
-0.0612294413,
0.3348026872,
0.1536109895,
-0.208340019,
0.1179822534,
-0.0654008836,
-0.3324610889,
-0.0295323133,
0.4058204293,
-0.1832790375,
-0.2990668714,
0.0189544633,
0.154088676,
-0.4621333182,
-0.0021639243,
-0.2290543318,
0.3899804652,
-0.2134582996,
0.3483885527,
-0.1130774468,
0.1178061292,
0.0829802975,
0.01277206,
-0.0949841142,
-0.2316043228,
0.2211647183,
-0.0909964219,
0.1667657197,
0.3702024519,
-0.0001311232,
-0.036790587,
0.2655951083,
0.0570688099,
-0.144013837,
0.1104685962,
-0.0511534661,
0.1461771876,
0.0536197349,
0.036152035,
0.0598793924,
-0.2049440145,
0.2089883238,
0.2312645018,
0.4897399247,
0.0151624084,
0.0531786457,
0.3063320518,
0.3312014341,
0.0816986337,
-0.0270449743,
-0.1165642068,
-0.2888157666,
-0.062810488,
-0.111859709,
-0.0160789154,
0.3052894175,
0.010992337,
0.076532796,
-0.1810523272,
-0.1658042073,
-0.0464860126,
0.4919871986,
-0.3176005483,
0.2732106149,
0.302665472,
0.5659932494,
-0.2089450806,
-0.3208207786,
0.2825090289,
-0.1629637331,
-0.6633641124,
0.0295166019,
0.0157643221,
0.0368271917,
0.2872442305,
-0.1765947193,
-0.07471551,
-0.3560743332,
0.0618635602,
-0.2483201623,
0.3457750678,
-0.0724098831,
0.3870838284,
0.1909079701,
0.0661902875,
-0.3279821873,
0.2797855735,
-0.1643177867,
0.0391896479,
-0.3566977978,
-0.267706871,
-0.0797549263,
0.1459317952,
0.1702950895,
0.1213659793,
-0.0884902477,
0.0574841127,
0.2507762313,
0.1139541045,
0.4480936825,
0.0888856947,
-0.0909257978,
0.0955573022,
0.2637126744,
0.1925385296,
-0.0199966505,
0.0608907789,
0.1707050055,
-0.2056460977,
0.2166099697,
-0.0390902013,
0.5442737937,
-0.4371446073,
-0.3980946839,
0.3282666504,
-0.5851673484,
0.0734328181,
0.1095120609,
0.4647297263,
-0.0218742304,
0.1591079831,
0.2288994491,
0.0017636754,
-0.2170954943,
-0.3298827708,
-0.0325273611,
0.1248775721,
0.0135929585,
0.0792469829,
-0.0938061103,
-0.1105452627,
0.0189606845,
-0.1687662303,
0.0570339002,
-0.4175055921,
-0.0315142088,
-0.2017416358,
-0.2151172906,
0.0476763397,
0.0230270624,
0.0913014933,
0.0626815483,
0.2338240147,
-0.1088443473,
-0.0194759369,
0.2328735888,
-0.4418898225,
-0.1168158725,
0.0209348686,
-0.3718619347,
0.0700106844,
0.0511763953,
0.1008900255,
0.0117204748,
0.0647242442,
0.0112041235,
-0.117845118,
-0.6016001105,
0.0955600142,
0.2137629539,
0.5098162889,
-0.2983198166,
-0.2831720114,
0.0214244053,
-0.2185608,
0.1330842674,
0.3510254622,
-0.1074054092,
0.4740375876,
-0.1680228114,
0.0771274418,
0.4050397575,
-0.0754853263,
-0.4074357748,
0.2993320227,
-0.1043750942,
-0.0264378898,
-0.2313578874,
-0.3312267959,
-0.2108639777,
-0.0910302475,
-0.4682710767,
0.0834771618,
0.0042562876,
0.0229095668,
-0.3265224993,
-0.2786823213,
0.201701194,
0.1292589307,
0.0848950595,
-0.1155643985,
0.0439047366,
0.5326949358,
0.0079242466,
-0.1599255502,
-0.0717027932,
0.2296439707,
0.3724676371,
0.0957854614,
0.0016297475,
-0.000859417,
-0.3926903307,
0.1919942498,
-0.1509629637,
0.3499169052,
-0.0339806899,
0.1316324472,
-0.3984308243,
0.2384349704,
-0.3872939944,
-0.2096570879,
0.0423253402,
0.1670189649,
-0.1135268584,
-0.0217386261,
-0.0022783428,
0.22308743,
-0.323898524,
0.1648088098,
-0.1945523173,
0.2180779129,
-0.1290383488,
-0.1867524683,
-0.0920873731,
0.2005738467,
0.1242624968,
-0.2472159714,
-0.0812024921,
0.5033460259,
-0.449703604,
0.3622529209,
0.1256982982,
0.2714711428,
-0.1072643697,
-0.7133021355,
-0.1491652131,
0.0605795309,
0.0442922227,
0.0842487514,
0.2721654773,
0.0209640823,
0.36870116,
0.1002797857,
0.0422447473,
-0.137286067,
0.076941438,
-0.1270651817,
-0.3090759218,
-0.0567718148,
0.1960813701,
0.0975055546,
-0.0979714394,
0.092574954,
-0.3171667457,
-0.1859458536,
0.5001757145,
-0.3895016313,
0.1055525765,
0.1940921992,
0.2213135213,
0.0158278644,
-0.0167702585,
-0.3721934259,
0.4321252108,
-0.118845433,
-0.0447103679,
0.2925679088,
-0.2349237204,
0.3068992496,
0.2109822184,
0.226882413,
-0.0990798175,
0.2470543981,
0.1511298865,
0.127575919,
-0.2835472524,
0.1347996742,
-0.0292089097,
0.3193383515,
-0.3493125141,
0.3340670764,
-0.2501594424,
0.0029524788,
-0.084435612,
0.1695370525,
-0.2327773124,
-0.1175026298,
-0.0777458698,
0.3478620648,
0.2846852541,
0.2375228256,
0.1363137811,
0.2873689532,
0.3123161793,
0.0504830554,
0.0776464492,
0.0606763214,
-0.3715504408,
-0.1625666767,
0.278906256,
-0.0084202588,
0.1755381376,
-0.0387270004,
-0.2875963449,
-0.1948433965,
-0.2629094422,
0.4366431832,
-0.2573680878,
0.3862487078,
0.2549958229,
0.3238669932,
0.0508053005,
-0.2321358174,
0.3769734204,
-0.0804988444,
-0.1112754717,
0.1476733983,
0.0080180131,
0.0012477301,
-0.1322027892,
-0.1545512825,
-0.003123533,
-0.2535027266,
0.3643811345,
-0.1252320707,
-0.0454623811,
0.1597647071,
0.0816030055,
0.0978149474,
0.0324482173,
0.0944972932,
-0.2424068451,
0.0712934434,
0.1028507799,
0.1708684266,
-0.1095623672,
0.0842220038,
0.1628804654,
0.4006054699,
0.0270044319,
-0.5209591389,
-0.0805876404,
-0.0152732907,
-0.2542364895,
-0.0713414177,
0.1167049482,
0.336832732,
0.0828819349,
0.1637864262,
0.1131123975,
-0.0577151179,
0.3626652658,
0.1209020987,
0.4364435673,
0.1704383343,
0.6243664622,
0.0359676108,
0.4471473098,
0.2275729775,
-0.0947056711,
0.3119550049,
0.0936936811,
0.0500962362,
-0.0640041232,
-0.2120324373,
0.0056937262,
-0.1506775767,
-0.1362484843,
0.3213934898,
-0.1273612678,
-0.0524932146,
-0.2199127078,
0.380246371,
-0.266528368,
-0.383638829,
-0.1950195283,
0.4791094363,
0.4469766617,
-0.2117848098,
-0.1293497682,
0.0210553333,
0.1487210393,
0.2695375681,
0.0164809041,
0.0836109668,
-0.0299992561,
0.1247652471,
-0.1271418184,
-0.3214202225,
0.2202690542,
0.0824960619,
0.3695673645,
-0.228972435,
-0.0523841754,
0.2229157984,
-0.0894601196,
0.3142277002,
-0.1110013574,
0.0958872885,
-0.0223507509,
-0.3808890581,
-0.0712854564,
-0.1707491875,
-0.2458640933,
-0.0534697957,
0.1116185039,
0.1962751746,
-0.7227671146,
-0.1465537101,
0.6654105783,
0.0148798525,
-0.259711951,
-0.0307935104,
-0.4269810021,
-0.4244683981,
-0.3164513707,
0.0260616709,
0.1898843795,
-0.0228525028,
-0.1808918118,
0.1003893092,
0.1215853095,
-0.3787504733,
0.1677027494,
0.2431923747,
-0.077774778,
-0.29462865,
-0.1419636458,
0.1522614062,
-0.2428969145,
-0.2091577947,
0.3184258342,
0.2315769494,
-0.3591952026,
0.3091990948,
0.1930270046,
0.1260816455,
0.4352579713,
-0.2374525964,
0.0241905991,
-0.3933624625,
0.1062252373,
-0.0747985989,
0.18969661,
0.6916983724,
0.1641766131,
-0.3732659817,
0.1904465854,
0.4620967209,
-0.1921073049,
0.0380772054,
0.22014153,
0.3627294302,
-0.1466462761,
0.2382566482,
-0.1088860482,
1.2690075636,
0.0817548111,
-0.1839938909,
0.3657684922,
0.1786312163,
0.2574064732,
-0.2753505707,
0.2142230421,
-0.2846073508,
-0.2586661875,
-0.0980636328,
-0.0324810371,
-0.0331733301,
-0.1119142324,
-0.4678311348,
0.3271200359,
0.1595581174,
-0.1385069788,
0.2032447755,
0.2743904591,
0.0084878635,
-0.0066030361,
-0.2490341216,
-0.0122613013,
-0.0838416815,
0.547954917,
-0.4007767439,
-0.0408160873,
0.1884877235,
0.0691056699,
-0.5751296878,
0.19629848,
-0.230156675,
0.0088636503,
0.168893382,
-0.1305917501,
0.3103164434,
0.1113412827,
0.3887816072,
0.1505534649,
-0.3223507702,
0.09068726,
-0.2385720462,
-0.1092511863,
-0.1439513862,
0.2629019916,
0.0636340752,
-0.1279811114,
-0.4963575304,
0.1836188436,
-0.0275693089,
-0.1637553126,
0.0390905142,
-0.4867978096,
-0.1143438816,
-0.4812120199,
-0.0499082506,
0.0644624606,
-0.3322571516,
-0.1910353005,
-0.0241217203,
-0.0708206743,
-0.491930306,
-0.0446481891,
0.1353207529,
-0.3358820081,
-0.0327947177,
0.2914808095,
-0.4647301733,
0.4955451488,
0.5175924897,
0.4059623182,
0.0345021859,
-0.1226496696,
-0.4105330706,
-0.1057096124,
-0.7558624744,
0.1090187579,
-0.0462945588,
-0.1276708245,
0.0046849512,
0.6766906977,
0.1893720478,
0.0832458586,
0.0375347063,
-0.0291809216,
-0.1648817956,
0.2903734744,
0.0359390862,
0.3929035962,
0.026390709,
0.667897284,
-0.1816685796,
-0.2087005079,
-0.134835273,
-0.114043124,
-0.595238328,
0.0431544296,
0.6293120384,
-0.4968104661,
0.2551213205,
0.21875377,
0.0470924973,
0.3650163114,
-0.1530409306,
-0.0085512623,
0.0009554327,
0.215292424,
0.1432794631,
-0.2293224037,
-0.0499961749,
0.0648235232,
0.1181974635,
0.0223326758,
0.1977401674,
-0.0345479362,
0.1043085307,
0.1668600142,
0.4337741435,
0.0893758833,
-0.3285417557,
-0.0826575309,
0.1569120139,
0.3206038177,
0.4231344759,
0.1758081019,
-0.0221177042,
-0.134377107,
-0.0098300241,
0.2518424392,
0.5083554983,
-0.0776102096,
0.3535530567,
-0.234487623,
-0.1737596691,
-0.2526756823,
0.4068444669,
0.4358219802,
-0.3030585945,
-0.0776449144,
-0.0429381579,
-0.0174998697,
-0.1370070279,
0.0602759682,
0.2170642763,
-0.0761531666,
-0.1653427482,
0.5258345604,
0.0706918016,
0.0977591723,
0.3721159995,
0.2665566206,
0.2728872299,
-0.1531067491,
-0.0537601188,
0.2709616125,
-0.3218221664,
0.2332796305,
0.0879884809,
-0.0149973053,
0.3673681617,
-0.1052373722,
-0.1762792915,
-0.0077570891,
-0.6213702559,
0.552929163,
0.0994611382,
-0.4119483829,
-0.1608335972,
0.0955715328,
0.2579676211,
0.1640248597,
-0.1661913693,
0.3881981075,
0.0901010931,
-0.3478378057,
-0.4924358726,
0.562710166,
-0.1220694035,
-0.3420288861,
0.1224459261,
0.0005516708,
-0.4981300235,
0.2230651826,
-0.15280734,
-0.3076921999,
-0.1538952589,
0.1734645516,
-0.1786793768,
-0.2412708104,
-0.3105518818,
0.1349077523,
0.0829803571,
-0.1681079268,
0.3439388871,
0.2536004782,
-0.23037301,
-0.2507809997,
0.4816987813,
0.0894159079,
-0.0768770054,
-0.2228055298,
0.2002960294,
0.0184817947,
0.1735887527,
0.1793340594,
-0.0232878812,
-0.0084646642,
0.2301131189,
0.2180698216,
-0.097074233,
-0.0307917483,
-0.0214374606,
-0.0897680819,
0.1906955391,
-0.5353971124,
0.0491416343,
-0.1127961874,
0.0020703077,
-0.4266148806,
0.2310675979,
-0.4342005551,
0.2886887193,
0.2736750245,
0.0018200092,
0.0686447173,
0.1550023854,
-0.0375969,
-0.1003341675,
0.3217398524,
0.4034505486,
0.0491668396,
-0.3347400725,
-0.2030798495,
-0.2273228168,
0.3524525762,
0.0174702499,
0.3788681924,
0.3489827812,
0.0774131641,
-0.1255185306,
0.2282459885,
0.1392571926,
0.2732207775,
-0.1463274956,
0.2943371832,
-0.1593064517,
-0.2022355944,
-0.3895685971,
-0.0320487171,
-0.0684849024,
-0.1479367316,
0.1528609246,
-0.0483464822,
-0.0999763161,
0.0195358023,
-0.491577208,
-0.399232924,
-0.1382071674,
0.0471329093,
0.289393723,
-0.0539367348,
-0.1106615663,
-0.193511039,
-0.1630999744,
-0.3601308763,
-0.1371571124,
0.1329977661,
-0.204132095,
0.1272542924,
-0.0116049536,
0.3329961002,
-0.3921408653,
-0.0241247602,
0.213795051,
-0.1817459911,
-0.3372458518,
-0.0258331969,
-0.2492691725,
-0.0717047304,
0.1051631868,
0.2207346261,
0.1219841912,
0.0383800715,
-0.4720092416,
0.0056415945,
0.6514027119,
-0.0394011997,
-0.1021966934,
0.0251277909,
0.0307156257,
0.3078190684,
-0.1596795917,
-0.5445816517,
0.06367217,
-0.0219523646,
0.0791895688,
-0.2491621375,
0.1685011387,
0.1020446196,
-0.0360069498,
0.1172410026,
0.3234379888,
0.2480835766,
0.0809627399,
0.3928499222,
-0.0464747809
] |
https://github.com/huggingface/datasets/issues/871 | terminate called after throwing an instance of 'google::protobuf::FatalException' | closing now, figured out this is because the max length of decoder was set smaller than the input_dimensions. thanks | Hi
I am using the dataset "iwslt2017-en-nl", and after downloading it I am getting this error when trying to evaluate it on T5-base with seq2seq_trainer.py in the huggingface repo could you assist me please? thanks
100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 63/63 [02:47<00:00, 2.18s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
run_t5_base_eval.sh: line 19: 5795 Aborted | 19 | terminate called after throwing an instance of 'google::protobuf::FatalException'
Hi
I am using the dataset "iwslt2017-en-nl", and after downloading it I am getting this error when trying to evaluate it on T5-base with seq2seq_trainer.py in the huggingface repo could you assist me please? thanks
100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 63/63 [02:47<00:00, 2.18s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
run_t5_base_eval.sh: line 19: 5795 Aborted
closing now, figured out this is because the max length of decoder was set smaller than the input_dimensions. thanks | [
-0.1825480908,
-0.7557117343,
0.0836405754,
0.5567311049,
0.3312152624,
-0.0441039428,
0.2286121547,
0.2201021761,
-0.3796160221,
0.3128046393,
-0.0100410283,
-0.4250832796,
0.0028813928,
0.5060397983,
-0.2287915945,
-0.4332334995,
-0.071047619,
0.3094233871,
-0.3874347508,
0.1011397913,
-0.2264458239,
0.4186719656,
-0.2191983163,
0.1852834225,
0.0081758872,
0.1957096159,
-0.0577185042,
-0.0667137951,
-0.3531187475,
-0.3468533754,
0.0182194412,
-0.2039840519,
0.0581337288,
0.3136994839,
-0.0001306237,
-0.0284277946,
0.2318886817,
-0.0366354622,
-0.0024562143,
0.1110142469,
-0.0404466949,
0.0954325572,
-0.0432410352,
0.0571711361,
-0.0214734562,
-0.2490237951,
0.1340974718,
0.0824282467,
0.4000382721,
0.1778143942,
0.0598794743,
0.0708284825,
0.5268980861,
0.1011874303,
0.1303853989,
-0.1859423667,
-0.245124504,
-0.0544141307,
-0.0872223452,
0.2543930709,
0.2519197464,
0.0127647705,
0.234360978,
-0.1039733812,
-0.1582995206,
-0.1667219102,
0.4694923162,
-0.3594510555,
0.3739231229,
0.5036092997,
0.4249292612,
-0.1596077085,
-0.2389923632,
0.197880581,
-0.0463760905,
-0.7821179628,
0.0214622747,
0.1177390143,
-0.0314021632,
0.3177409768,
-0.1956368387,
0.0250428542,
-0.391338408,
-0.0535506345,
-0.3420304656,
0.1048158929,
-0.1563069373,
0.2693477273,
0.3107016087,
-0.0123632913,
-0.3689582944,
0.4468306303,
-0.2233466059,
0.0046295524,
-0.3167671561,
-0.2840055823,
-0.0876740813,
0.0885874629,
0.3425698876,
0.0983419791,
0.0299790688,
-0.0441862419,
0.3686290085,
-0.0731783956,
0.4484467506,
0.0698965862,
-0.1750065237,
-0.0474614836,
-0.0304173231,
0.2391156852,
-0.0833925605,
0.0399034843,
0.087818265,
-0.3864676356,
0.0334504023,
-0.0612447634,
0.5407347083,
-0.4030385613,
-0.3742880821,
0.5508586168,
-0.5646090508,
0.1382819861,
-0.0152640268,
0.3928345442,
0.0368886888,
0.3064097464,
0.1208620518,
-0.0254709739,
-0.1815389097,
-0.4603443146,
-0.0324587934,
0.057184726,
0.0687044263,
-0.0381939076,
-0.229001835,
-0.1918755025,
0.0274250582,
-0.1162856072,
0.2301357538,
-0.4824363887,
-0.0526086539,
-0.3860571384,
-0.1272216439,
0.0582952537,
0.1070082858,
-0.0941502228,
0.0039943513,
0.1228217632,
-0.1368773729,
0.102142565,
0.2030080408,
-0.3419500291,
-0.2019576132,
0.0443181917,
-0.2757992744,
0.2491315156,
0.0974389613,
0.2676700056,
0.0701395124,
0.1285984665,
0.0375479683,
-0.2970991731,
-0.5591110587,
0.0333802514,
0.210963726,
0.3538912535,
-0.4521013796,
-0.1101315916,
0.1289377511,
-0.1627076864,
0.2067390978,
0.3624175787,
0.0659419075,
0.2911638916,
-0.2080684006,
0.1842983812,
0.3846414089,
0.0041622221,
-0.4475169778,
0.4741537571,
-0.1718915254,
0.0268620178,
-0.0815850645,
-0.5575348735,
-0.0763310492,
0.0625408739,
-0.3875137568,
0.0609399416,
-0.050427746,
-0.1020274535,
-0.3786959052,
-0.3348831832,
0.2869663239,
0.0521849841,
0.0931097865,
-0.2644411922,
-0.028908886,
0.347097218,
0.105454497,
-0.1164804995,
-0.0546410047,
0.2943663597,
0.1599951237,
-0.0123675019,
0.0500191376,
-0.0715425164,
-0.0598856546,
0.1266559958,
-0.1815431863,
0.2302289307,
0.1811083555,
0.0477652624,
-0.4110557437,
0.2406523973,
-0.1958539486,
-0.1214053184,
0.0813281015,
0.0905065015,
0.0031743795,
0.0335055962,
0.0377165526,
0.0373366773,
-0.279001236,
0.1965823323,
-0.1421756744,
0.0688367039,
-0.2133824974,
-0.112226218,
0.0000703856,
0.2261545211,
0.0785465091,
-0.1326744407,
-0.1358353049,
0.4077897966,
-0.1459797621,
0.1788313836,
-0.0823338255,
0.0799962282,
-0.1061848775,
-0.6050515771,
0.0727642775,
0.0006515756,
-0.0793631226,
0.0802318752,
0.400898993,
0.0033715814,
0.4482322633,
0.1287204921,
0.0407875329,
-0.2953246236,
0.0407606736,
-0.0307976976,
-0.2658251822,
-0.1130767167,
0.2272973657,
0.0492021255,
0.0264594257,
0.0901865214,
-0.3722546399,
0.0433300138,
0.5868801475,
-0.3244767189,
-0.0204517506,
0.3520975709,
0.1912360936,
-0.0975404233,
-0.1523133367,
-0.2997419536,
0.2898995876,
-0.0278744865,
0.1170781404,
0.2232639343,
-0.173055768,
0.1739894599,
0.2037847936,
0.2063529491,
-0.0424579941,
0.3433316052,
0.1607789993,
0.0747348145,
-0.1942745447,
0.1378559321,
-0.0842169672,
0.2802476883,
-0.2942639589,
0.2067051083,
-0.3464760184,
-0.1027301773,
-0.0360146165,
0.2028565705,
-0.1097787321,
-0.0775024742,
-0.0121804196,
0.1491118371,
0.2092544883,
0.0943253264,
0.0159661621,
0.3456902504,
0.3015299439,
0.3043166995,
0.1930471957,
0.2721778154,
-0.3297424018,
-0.0792556629,
0.2436173856,
-0.0994975492,
0.1018208489,
-0.0045342371,
-0.2779576778,
0.0478783697,
-0.319045186,
0.3975231647,
-0.2260152102,
0.4261747897,
0.2910576463,
0.3495922089,
0.1624095142,
-0.1286506057,
0.2713697255,
0.1310100853,
-0.2149522603,
0.1189755946,
0.0433745533,
0.1060262769,
-0.1928848624,
0.0047683306,
0.0756091923,
-0.3440091014,
0.597823441,
0.0725697875,
0.0980790555,
0.1002425104,
0.2643184066,
0.1980097294,
0.1320690364,
0.2236943245,
-0.3274864256,
-0.0945414901,
0.0702340528,
0.0601464137,
-0.1019026116,
0.0203382149,
0.1251720488,
0.5520701408,
0.0094989203,
-0.6542899013,
-0.0641242117,
-0.0393797122,
-0.322517693,
-0.054802008,
0.0118518453,
0.2194895744,
-0.0144387335,
0.1663328707,
0.1242133006,
0.0081100911,
0.2320034653,
0.1027008891,
0.3276295662,
0.1301312745,
0.6841676235,
0.1434122622,
0.4717113972,
0.3242796361,
0.0999213755,
0.229210645,
-0.0142609449,
0.1526382118,
-0.1874092817,
0.0287800729,
0.2010572553,
-0.1487110704,
-0.2289176285,
0.3736220598,
-0.1404171437,
-0.0357160419,
-0.0309775546,
0.298175633,
-0.1749608219,
-0.3061986566,
-0.0185544882,
0.4317143559,
0.1991914362,
-0.363769412,
0.019916147,
0.0947431847,
0.1148883551,
0.1037391573,
-0.1432926953,
0.0509273633,
0.1069006026,
0.1287236959,
-0.2539619207,
-0.453119427,
0.2327687144,
0.1363760829,
0.2795755565,
-0.219057411,
-0.1029561162,
0.200333342,
-0.1413595974,
0.2534677982,
-0.0616670698,
0.0041801743,
0.0870193243,
-0.2812106013,
-0.0106086954,
-0.1489333808,
-0.1682469845,
-0.088743329,
0.0999068171,
0.0629589111,
-0.6216030121,
-0.0018595122,
0.6708571315,
0.0052204877,
-0.1165490299,
0.1024374962,
-0.382512331,
-0.4406276345,
-0.2710040212,
0.0987986028,
0.3051100373,
0.1490619779,
-0.1904390454,
-0.0208010897,
0.0858975947,
-0.3469177783,
0.2035473138,
0.2855482996,
-0.0550695136,
-0.2784847617,
-0.0909607634,
0.0618518591,
-0.2808571458,
-0.009250883,
0.3237589002,
0.1873804778,
-0.4014203548,
0.3799913228,
0.1589247584,
0.2553520203,
0.5518912077,
-0.1993995011,
0.1199703291,
-0.3612644374,
0.3271136582,
-0.2000967264,
0.3403958678,
0.6970124245,
-0.0088743642,
-0.2793239355,
0.1268749833,
0.3541106284,
-0.3083726764,
0.1861293018,
0.274905026,
0.4879735112,
-0.1317800879,
0.2013566196,
-0.0295755193,
1.3459963799,
0.1415598541,
-0.2212047279,
0.3623626828,
0.0220963061,
0.0692189634,
-0.3213463128,
0.2226084471,
-0.2752578557,
-0.2632493973,
-0.0801570415,
-0.0565181449,
-0.0217669792,
-0.1965673268,
-0.5029945374,
0.1471656263,
0.1461596042,
-0.2665556371,
0.0257625505,
0.2183862329,
-0.0723987967,
0.0217419565,
-0.0787744373,
0.0044370592,
-0.1270934641,
0.2550248802,
-0.2989114821,
0.0173459463,
0.0929536223,
-0.0203151777,
-0.7395153046,
0.1649557352,
-0.3972654939,
-0.2317929715,
0.0192545634,
-0.2671796679,
0.2511184216,
0.1190082207,
0.2909444273,
0.2553221881,
-0.3112871349,
0.0566032268,
-0.2090292871,
-0.2243221402,
0.0117058083,
0.1983578503,
0.0477389023,
-0.1979283243,
-0.3976750374,
0.182824403,
0.1018940061,
0.0594496876,
0.1003044695,
-0.5291590691,
-0.0906656384,
-0.5466358662,
-0.0517876744,
-0.1237382442,
-0.1631925851,
-0.1833693087,
-0.0224830732,
-0.0587469414,
-0.497446686,
-0.232077688,
0.1272788048,
-0.3527326584,
-0.0955881923,
0.1552883834,
-0.287928313,
0.5394785404,
0.4464950562,
0.3756779432,
0.0185432434,
-0.0896205679,
-0.2411791831,
-0.1186506897,
-0.5672414899,
0.1138519794,
-0.1296160072,
-0.180869624,
-0.1257196069,
0.4178598523,
0.2591119707,
0.0729355365,
0.0418936536,
-0.0680543184,
-0.2588285804,
0.2253000438,
-0.0678902417,
0.4425280094,
-0.0162387937,
0.6142123938,
-0.1967767477,
-0.0419656113,
-0.1338167191,
0.0241282135,
-0.4663615525,
-0.0486496873,
0.413529247,
-0.5600553751,
0.0643676817,
0.1984218359,
0.0650206432,
0.582010746,
-0.1316853166,
-0.0346596725,
-0.0889135301,
0.1771104038,
0.0784012154,
-0.2593672872,
0.030579336,
0.1024135873,
-0.0138135459,
0.0227821842,
0.1982653141,
-0.1138099656,
0.1905844212,
0.0753314048,
0.452208668,
0.0531573333,
-0.2297771871,
-0.0633600205,
0.2922238708,
0.5698913932,
0.4143064916,
0.2580898404,
-0.0473658107,
-0.1122658849,
0.0235167146,
0.3457764387,
0.4345479608,
-0.2133328021,
0.3456009626,
-0.2215125114,
-0.1793737561,
-0.1741838902,
0.3166130185,
0.4049062729,
-0.3494209051,
-0.0612711161,
-0.0223752018,
-0.0171980485,
-0.1205972135,
0.0780511573,
0.2076963037,
-0.1472241133,
-0.199044019,
0.4944214225,
0.0151157156,
0.095192939,
0.2049709409,
0.244007811,
0.0434973761,
-0.0081226872,
-0.1455041468,
0.3248817027,
-0.3696911335,
0.1776638925,
0.074554354,
0.0668805242,
0.5588193536,
0.0386203378,
-0.2440882176,
-0.0359908976,
-0.5670959353,
0.5346629024,
0.1142038107,
-0.384880811,
-0.2093842477,
0.2809020877,
0.073807992,
0.2291566581,
-0.0532872863,
0.3404667377,
0.201473102,
-0.4261126816,
-0.519035995,
0.4846900403,
-0.2030853927,
-0.3480960727,
0.1934645474,
0.030553773,
-0.5891633034,
0.3082303405,
-0.0769737959,
-0.2484856546,
-0.2079979628,
0.053077288,
-0.1518978179,
-0.0550661832,
-0.2682465911,
0.070760496,
0.1284528375,
-0.3370710611,
0.4778938591,
0.4300203919,
-0.1742851287,
-0.110256657,
0.466041863,
0.2497324049,
-0.0895265639,
-0.2848264873,
0.094038561,
0.1176967099,
0.0793225318,
0.0723172799,
-0.0033886526,
0.1967161596,
0.4727390707,
0.356105119,
-0.0767648071,
-0.0420948155,
-0.0304102451,
0.0197084732,
0.1798904836,
-0.6338068843,
-0.0884627253,
-0.1270015836,
0.066770792,
-0.3211509883,
0.0748251602,
-0.5564797521,
0.253053993,
0.163141191,
-0.0004770234,
0.054047171,
0.1432605684,
-0.0327447616,
-0.067755118,
0.2711187899,
0.4403897226,
0.0064043431,
-0.2855245471,
-0.2524414361,
-0.1322999299,
0.3613684177,
-0.2400722206,
0.1405515969,
0.3154824972,
0.1597657651,
-0.1240988895,
0.1682176888,
0.2631751597,
0.3169569969,
-0.0629004464,
0.3524355888,
-0.1335163862,
-0.2348481715,
-0.331181705,
-0.1356596798,
-0.0208174735,
-0.1364219785,
0.2971139848,
-0.0657787919,
-0.1463048458,
0.0958924815,
-0.255073905,
-0.3955488801,
-0.2489904761,
0.0886137933,
0.2972623408,
-0.0925046355,
-0.1601976305,
-0.2199969143,
-0.2032062113,
-0.2314461321,
-0.2321934402,
0.2132411003,
-0.1535038948,
0.130925864,
-0.080057919,
0.1188631654,
-0.2190869749,
0.0467714071,
0.2452974617,
-0.0743776187,
-0.3315642476,
-0.0217462704,
-0.2387635857,
-0.0298106037,
0.2515649199,
0.2170667648,
0.1479578465,
-0.0192641206,
-0.3196555972,
-0.0805417672,
0.5513907671,
0.0214872956,
-0.0822737142,
0.0524180122,
0.0193324238,
0.3917847872,
-0.1135360897,
-0.6487383842,
0.1016550362,
0.0261527821,
0.1344750524,
-0.2566713393,
0.2677622736,
-0.1109557301,
-0.0772485286,
0.0469754487,
0.3199742734,
0.2324953377,
0.0502790809,
0.3381662369,
-0.1106577218
] |
https://github.com/huggingface/datasets/issues/870 | [Feature Request] Add optional parameter in text loading script to preserve linebreaks | Hi ! Thanks for your message.
Indeed it's a free feature we can add and that can be useful.
If you want to contribute, feel free to open a PR to add it to the text dataset script :) | I'm working on a project about rhyming verse using phonetic poetry and song lyrics, and line breaks are a vital part of the data.
I recently switched over to use the datasets library when my various corpora grew larger than my computer's memory. And so far, it is SO great.
But the first time I processed all of my data into a dataset, I hadn't realized the text loader script was processing the source files line-by-line and stripping off the newlines.
Once I caught the issue, I made my own data loader by modifying one line in the default text loader (changing `batch = batch.splitlines()` to `batch = batch.splitlines(True)` inside `_generate_tables`). And so I'm all set as far as my project is concerned.
But if my use case is more general, it seems like it'd be pretty trivial to add a kwarg to the default text loader called keeplinebreaks or something, which would default to False and get passed to `splitlines()`. | 39 | [Feature Request] Add optional parameter in text loading script to preserve linebreaks
I'm working on a project about rhyming verse using phonetic poetry and song lyrics, and line breaks are a vital part of the data.
I recently switched over to use the datasets library when my various corpora grew larger than my computer's memory. And so far, it is SO great.
But the first time I processed all of my data into a dataset, I hadn't realized the text loader script was processing the source files line-by-line and stripping off the newlines.
Once I caught the issue, I made my own data loader by modifying one line in the default text loader (changing `batch = batch.splitlines()` to `batch = batch.splitlines(True)` inside `_generate_tables`). And so I'm all set as far as my project is concerned.
But if my use case is more general, it seems like it'd be pretty trivial to add a kwarg to the default text loader called keeplinebreaks or something, which would default to False and get passed to `splitlines()`.
Hi ! Thanks for your message.
Indeed it's a free feature we can add and that can be useful.
If you want to contribute, feel free to open a PR to add it to the text dataset script :) | [
-0.4354712367,
0.2950850725,
0.0567215234,
-0.2441309094,
-0.0972463563,
-0.2072377503,
0.3331262469,
0.175884515,
0.2980457246,
0.3277395964,
0.503433764,
0.2391882837,
-0.0176376216,
0.1306851208,
-0.0111615453,
-0.1541550308,
-0.1673549116,
0.3164180219,
0.0948439986,
0.0943593979,
-0.1742427945,
0.2289414406,
-0.2351752818,
-0.3131569326,
-0.0942861959,
0.1758478135,
0.0615476221,
-0.1762808114,
0.0486642644,
-0.2417839468,
0.0536902174,
0.4617237449,
-0.2017272413,
-0.0629813522,
-0.0001233125,
-0.1519171149,
0.1834263057,
-0.182231456,
-0.6022983789,
-0.1147575751,
-0.3729272783,
-0.2914460897,
-0.0992282033,
-0.2274686843,
0.0622689202,
0.3424105644,
-0.0458786674,
-0.4362995923,
0.280056566,
0.3078564107,
0.0495160818,
0.107406944,
-0.571354866,
-0.0663224831,
0.5268213153,
0.2910937667,
-0.0629604086,
0.0548024066,
0.0162090417,
0.0578810424,
-0.4066483974,
0.3086513281,
-0.3627740145,
-0.2398991734,
0.3153908551,
0.0333259329,
-0.104052715,
0.019155927,
0.1258226484,
0.6455951929,
0.6044312119,
-0.5228233933,
-0.1811377704,
-0.5374608636,
0.3158693612,
-0.2599705458,
0.077375263,
0.0897539183,
-0.480050534,
0.1028655022,
-0.3286260068,
-0.5799755454,
-0.2724969685,
0.0282561611,
0.0515558869,
0.007163994,
0.0852804929,
-0.1294994056,
0.2139757872,
0.2667274475,
-0.1155733913,
-0.3966219425,
-0.1672589332,
-0.012049634,
0.1866083145,
-0.138351053,
-0.1339077801,
0.0295248553,
0.246473521,
0.1903956532,
0.234311074,
-0.0728929341,
0.1659850776,
-0.0096089896,
-0.1466228068,
0.001083333,
0.6396605372,
-0.126329422,
0.3962597251,
-0.0598769374,
0.2541894615,
-0.0147516262,
0.3621478677,
-0.0553385131,
0.2506430745,
0.2168620378,
0.5353251696,
0.0507849008,
-0.101528801,
-0.0084517207,
0.1577021629,
-0.2738268673,
0.0231103115,
0.02317743,
0.2529734969,
0.2497904003,
0.0939322859,
0.3397790194,
-0.0245638713,
-0.4520844519,
-0.0115848146,
-0.0739066079,
0.0690935701,
0.4735100865,
0.4798800349,
-0.1322539151,
0.0188569948,
0.3098441958,
-0.3272876441,
0.2125813961,
-0.259917587,
0.0107394345,
-0.062403433,
0.0897315368,
0.0502961576,
-0.0514474735,
-0.2781386077,
0.1292169094,
-0.1442715228,
0.3982302845,
-0.2081496865,
-0.2423780262,
-0.0120956553,
0.1186778918,
-0.1746378839,
-0.1164850891,
-0.1190119162,
0.3408358097,
0.2329739481,
-0.2190414369,
0.3950001895,
-0.0677531511,
-0.4148363769,
-0.1905249953,
0.1208386943,
0.6844407916,
-0.5018537045,
-0.3941884041,
-0.2446784526,
-0.1617777348,
0.197219491,
-0.0845854729,
-0.2083408237,
0.3146696091,
-0.0943590552,
0.4131853282,
0.5370359421,
0.212603271,
-0.2113256454,
0.4115029573,
0.1002038345,
-0.0268504918,
0.3020575345,
0.116680786,
0.4532317817,
0.0867430717,
-0.3238542378,
0.5056154132,
0.108209908,
0.2016528845,
0.0791896135,
-0.1329989433,
0.3330933452,
0.169144094,
-0.1261500567,
-0.0380361378,
-0.0463944674,
-0.0436887518,
0.1735133827,
-0.1540232897,
0.0981509164,
-0.0570637062,
0.1134191528,
0.2344139367,
-0.0318809524,
-0.0984189734,
-0.5309474468,
-0.1450164318,
0.1449735314,
-0.1053958237,
-0.2306467593,
-0.357291311,
0.1532924473,
0.089995198,
0.084507376,
0.3819423318,
-0.0544855371,
0.0762405545,
-0.4913655818,
0.1855785102,
-0.2050103545,
0.1258593053,
-0.0596178621,
0.2973454595,
-0.0412372872,
0.1600449383,
0.4320732951,
-0.1415888965,
-0.0284114964,
0.2037592828,
0.0357374735,
0.0757631809,
-0.1862321943,
0.5891005397,
0.2256736755,
0.301325649,
-0.3549939096,
-0.3149199486,
-0.0073470864,
0.0785845667,
0.0901809782,
0.0804410577,
-0.1342437863,
-0.191571027,
-0.2021723986,
0.352666229,
-0.1503383517,
0.3353111446,
-0.1181823611,
-0.1217777058,
-0.2494114637,
-0.3147169352,
-0.2909689248,
-0.4226796627,
0.2018983513,
-0.1425286382,
0.3798126876,
0.256783098,
-0.0651080757,
-0.0855782181,
0.5796647668,
-0.1368783861,
0.3069625497,
0.3238116205,
0.0211425051,
-0.1402037591,
0.1488454342,
0.2698788643,
0.3828232288,
0.2634971738,
-0.1487599611,
0.066809915,
-0.0059782118,
-0.3844344318,
0.2802661657,
0.2170626521,
-0.0857429802,
0.3734265268,
0.0165432878,
-0.1488486379,
-0.3234377205,
-0.0239392407,
0.0210028589,
-0.0865443423,
-0.3517746329,
-0.1167266667,
-0.2842796147,
-0.2587320805,
-0.1788252443,
-0.2389433086,
-0.3589530885,
-0.2414559126,
0.1967180073,
-0.1388001442,
-0.3496544361,
0.1834881306,
-0.262919575,
0.7408051491,
-0.1833307743,
-0.5621783137,
0.0269694924,
-0.1943002045,
0.0812377334,
-0.0659784153,
-0.0138453916,
0.1965551078,
0.264056921,
-0.0036521554,
0.0909799933,
-0.0697480887,
0.1031587496,
0.0497969463,
0.0387119539,
-0.2021919936,
0.4928574562,
0.1726311743,
0.3285776973,
-0.259316951,
-0.1793033481,
-0.2124927789,
0.041899614,
0.1382413507,
0.1157143116,
-0.077010788,
-0.3744927049,
-0.1818038374,
0.0186164808,
-0.2738803625,
-0.027366668,
-0.4108986259,
0.0061277924,
0.2384627312,
0.0889584571,
0.0378397666,
-0.0128535405,
-0.0526320189,
0.0465871505,
0.1360525489,
0.3777827024,
0.0184194483,
0.1504374146,
-0.0623607263,
-0.0568680055,
0.001330174,
0.3807697594,
-0.4775211811,
0.2629411519,
-0.1200352386,
0.4952282906,
-0.1220984086,
-0.0351207852,
0.3664513826,
0.1364011616,
0.0815179944,
-0.2246570289,
-0.0147726387,
0.2787933946,
-0.3612313271,
0.0486782081,
0.2344343513,
0.5663762093,
-0.0025380403,
0.3888103962,
-0.0068311021,
0.1409279257,
0.2664131522,
-0.1572481245,
0.3855629861,
0.3046709895,
-0.2800631523,
-0.3151489198,
0.079511337,
0.0812319219,
0.2062059194,
0.0704422444,
0.0193444714,
-0.1236397848,
-0.4614208937,
0.2398140132,
-0.5338418484,
0.1624888033,
-0.0830806345,
0.2392723858,
-0.1354088187,
0.2915027142,
-0.240393728,
-0.3213283718,
-0.0137796141,
0.3209164441,
0.3365843892,
-0.0723716766,
-0.2709950805,
0.3177296817,
-0.2754433751,
0.1121076494,
0.1583701372,
-0.0539843477,
0.0672312826,
-0.1683017015,
-0.0166093521,
0.2334417999,
0.5474968553,
-0.1255037189,
-0.3826479614,
-0.1610992849,
0.2949235439,
-0.0890735164,
-0.0021828562,
0.1107508689,
0.2331683636,
0.2805104554,
-0.0554786734,
-0.26247105,
-0.0135299824,
0.283716768,
0.1578982025,
-0.0368033424,
-0.6033735275,
-0.0771298632,
0.0821998119,
-0.0916733071,
0.0179504696,
-0.0288758278,
0.0184793808,
-0.2994560003,
0.1300360858,
0.3077906668,
-0.3788070977,
0.3649574518,
-0.0937259793,
0.1118698716,
-0.0028547272,
-0.0436352715,
-0.2175231427,
-0.1295163929,
-0.0625528768,
0.2717803121,
-0.2432942688,
-0.3551976681,
-0.4424706101,
-0.4403399229,
0.6828674078,
0.2383650541,
-0.2397620082,
0.2966234982,
-0.0111269392,
0.0083184782,
-0.0566010699,
-0.0455776192,
-0.1543452889,
-0.5080244541,
-0.1981168538,
-0.4083794951,
0.3745976985,
-0.0850752145,
-0.1184439734,
0.0197539628,
-0.0309663713,
-0.4312164485,
0.150943771,
-0.1620285809,
0.7613743544,
0.4389467835,
0.233931303,
-0.0483153686,
-0.0530291609,
0.4091441333,
0.2154636979,
0.0468549989,
-0.1680985391,
0.1603152752,
-0.1227329075,
-0.0489165671,
0.2017662674,
0.0660158172,
-0.4209390581,
0.1925768852,
0.1253010929,
0.0905525908,
-0.1094525829,
0.3929073811,
-0.5889462233,
-0.4246122241,
0.1515378654,
-0.0910883695,
-0.1265283674,
0.0108973291,
0.2151648402,
-0.1984632164,
0.475871712,
-0.2690283656,
-0.3731588125,
0.1091195345,
-0.127701968,
-0.1077000797,
-0.0946271494,
-0.1670500338,
0.3970531821,
0.4145122766,
0.1724782437,
0.3433482349,
-0.1255663335,
0.0487632416,
-0.2599714398,
0.1427633464,
-0.0769660845,
0.1011255458,
0.2524687052,
-0.0155113265,
-0.3237216473,
0.0645441115,
0.2028000355,
-0.4637389779,
-0.2452297211,
-0.390830338,
0.2647170126,
-0.494048208,
-0.0714086965,
-0.0571234189,
0.3570416868,
-0.1817015111,
-0.0178062506,
0.057814125,
0.3217689097,
0.0182360858,
-0.2762844861,
-0.1267778724,
-0.1952647418,
0.3264215291,
-0.0292975232,
0.0016732737,
0.4528478682,
0.249142617,
-0.1543954611,
-0.2483580709,
0.0330742002,
-0.0227093119,
-0.679912746,
0.2017115653,
0.1961641312,
0.1710072309,
-0.0467551835,
0.2048945725,
-0.2973155677,
0.2577688992,
0.0099279881,
-0.2536353469,
0.0011221841,
-0.0372331291,
0.2559597492,
0.4014257789,
0.2199048698,
-0.1678385586,
0.0035412386,
0.0085901786,
-0.1561027169,
-0.0239539258,
0.4870349765,
-0.1765925884,
0.0112176873,
0.2093709409,
-0.0970264673,
-0.2056292295,
-0.1125248969,
0.0031672157,
0.0437213182,
-0.0393632799,
-0.3089463711,
0.2235018611,
-0.1048404276,
0.0451111794,
-0.1107987538,
-0.0085424036,
0.1096313298,
-0.1315189004,
0.3208105564,
0.1152767539,
-0.2157720625,
0.3483762145,
0.1890639961,
0.3747315705,
-0.2061552107,
0.0969381109,
-0.3119313419,
0.2090505958,
-0.0529514253,
0.2815997601,
-0.0782028735,
0.0784909427,
-0.1537641287,
0.1794765294,
0.5239459872,
0.128290087,
0.0408472046,
-0.084451884,
-0.2382970154,
0.0513685718,
-0.0489971489,
0.0801131129,
-0.4318626523,
0.0219558924,
0.104286693,
0.0863746554,
-0.2357273251,
-0.0589278638,
0.0660032555,
-0.0113793984,
0.1313072145,
0.2672939897,
0.0319645479,
-0.1237802058,
0.1912897229,
-0.1409000158,
0.4049846828,
0.2378605455,
0.1618030965,
0.5519502759,
-0.0044505522,
-0.0477994457,
-0.1967975944,
0.3016056418,
0.0184472911,
-0.0318384878,
-0.0680063516,
0.3881103992,
0.1991785318,
0.0285220444,
-0.1200753897,
-0.3986967802,
0.1948858798,
0.2730503082,
-0.2493603975,
0.2182580531,
0.1928058565,
0.2495424747,
0.0528856926,
0.0230408944,
-0.2613332272,
0.2050991058,
-0.0662040412,
-0.157968089,
-0.5553823709,
-0.0218590051,
-0.1779492497,
-0.0033022985,
0.0341412127,
-0.0601884462,
-0.0307574458,
0.1199646145,
0.0815440193,
-0.0037848875,
0.3470273316,
-0.3495808244,
0.2278905958,
-0.3045915365,
-0.1719601452,
-0.1140139103,
0.3842438757,
0.5464938879,
-0.0421135873,
0.1087835431,
0.1423357129,
0.2631817162,
-0.0332072265,
-0.1873616427,
-0.0052226968,
0.0934945643,
0.2236050963,
0.1216043979,
0.5366197228,
0.3224517107,
-0.000047978,
0.0238543041,
0.4961556196,
0.1896339059,
-0.0232985001,
-0.4056716263,
0.4001928568,
0.4818976223,
-0.1691310257,
-0.4080251455,
0.057671532,
0.1050150096,
-0.2676215768,
0.2647189498,
-0.0559794158,
-0.1701763272,
-0.2995608747,
0.0201151371,
0.0405173004,
0.1210689694,
0.3503686488,
0.0009222021,
-0.1106897965,
-0.0419924781,
-0.2783925831,
-0.2308303863,
-0.0526415445,
-0.0632623136,
0.2438693494,
-0.240164578,
0.0626298189,
0.1671015918,
-0.3163400888,
0.3353954256,
-0.3051981032,
-0.3688963652,
-0.1019048169,
-0.0181721561,
0.1649080068,
-0.0723792687,
-0.1675795019,
-0.0840371251,
0.0713457763,
-0.1059037,
-0.1353935599,
-0.1731182933,
0.2033347785,
0.3793604374,
0.3174945414,
-0.116692774,
-0.1601064354,
0.1857253313,
-0.1130659208,
0.1530613005,
0.0698580071,
0.2486237884,
-0.2387923449,
-0.018207036,
0.2196345329,
0.2118970305,
0.0287922621,
-0.0389986821,
0.0500127487,
0.5180222392,
-0.0331454054,
0.1850028783,
-0.1818419695,
0.030675821,
-0.1150219664,
0.0227189772,
-0.107134968,
-0.225922212,
-0.182999596,
0.1417904347,
0.0761201531,
-0.1698004007,
0.2956994176,
-0.2386933416,
0.0191463158,
-0.3457772732,
0.4418113232,
0.2836978734,
0.0435622633,
-0.7789455652,
-0.1735750586,
0.3784146011,
-0.050415203,
0.0143382698,
0.5416885018,
0.1780784428,
0.2196512222,
-0.0907410234,
0.2851370573,
-0.0125172865,
-0.3764244318,
-0.109491989,
-0.3844896555
] |
https://github.com/huggingface/datasets/issues/866 | OSCAR from Inria group | PR is already open here : #348
The only thing remaining is to compute the metadata of each subdataset (one per language + shuffled/unshuffled).
As soon as #863 is merged we can start computing them. This will take a bit of time though | ## Adding a Dataset
- **Name:** *OSCAR* (Open Super-large Crawled ALMAnaCH coRpus), multilingual parsing of Common Crawl (separate crawls for many different languages), [here](https://oscar-corpus.com/).
- **Description:** *OSCAR or Open Super-large Crawled ALMAnaCH coRpus is a huge multilingual corpus obtained by language classification and filtering of the Common Crawl corpus using the goclassy architecture.*
- **Paper:** *[here](https://hal.inria.fr/hal-02148693)*
- **Data:** *[here](https://oscar-corpus.com/)*
- **Motivation:** *useful for unsupervised tasks in separate languages. In an ideal world, your team would be able to obtain the unshuffled version, that could be used to train GPT-2-like models (the shuffled version, I suppose, could be used for translation).*
I am aware that you do offer the "colossal" Common Crawl dataset already, but this has the advantage to be available in many subcorpora for different languages.
| 43 | OSCAR from Inria group
## Adding a Dataset
- **Name:** *OSCAR* (Open Super-large Crawled ALMAnaCH coRpus), multilingual parsing of Common Crawl (separate crawls for many different languages), [here](https://oscar-corpus.com/).
- **Description:** *OSCAR or Open Super-large Crawled ALMAnaCH coRpus is a huge multilingual corpus obtained by language classification and filtering of the Common Crawl corpus using the goclassy architecture.*
- **Paper:** *[here](https://hal.inria.fr/hal-02148693)*
- **Data:** *[here](https://oscar-corpus.com/)*
- **Motivation:** *useful for unsupervised tasks in separate languages. In an ideal world, your team would be able to obtain the unshuffled version, that could be used to train GPT-2-like models (the shuffled version, I suppose, could be used for translation).*
I am aware that you do offer the "colossal" Common Crawl dataset already, but this has the advantage to be available in many subcorpora for different languages.
PR is already open here : #348
The only thing remaining is to compute the metadata of each subdataset (one per language + shuffled/unshuffled).
As soon as #863 is merged we can start computing them. This will take a bit of time though | [
-0.0789997131,
-0.0689796656,
-0.0829849765,
0.0613854304,
-0.0888231397,
0.0940620303,
-0.0122486334,
0.2985756695,
0.0025456473,
0.0863160938,
-0.5969401598,
-0.0512046888,
-0.2450727075,
0.0754726306,
0.1506559402,
-0.3321430981,
0.0520217903,
-0.189759776,
-0.2447090149,
-0.2940578759,
-0.199752897,
0.1900047809,
0.108444944,
-0.0705985576,
0.207949996,
-0.2153769881,
-0.434027344,
-0.1118402779,
-0.130355075,
-0.1936030984,
-0.0030158013,
0.2002113014,
0.2905133963,
0.6354877353,
-0.0000960656,
-0.105705902,
-0.0594700463,
-0.2390714735,
0.0947269946,
-0.1166665852,
0.2534606755,
-0.0826731771,
-0.198372215,
-0.3360136747,
-0.4045936763,
-0.3702587485,
-0.0277562216,
-0.4808141291,
0.16292575,
0.1797288954,
0.2806834579,
-0.2271096408,
-0.175110504,
-0.2170572579,
-0.024889674,
-0.2869289517,
-0.3192920387,
0.0610997416,
0.5420652628,
-0.0749463513,
0.0386708081,
0.3805999458,
0.1031531245,
-0.2377462685,
-0.1179088578,
-0.0452904589,
0.080514729,
-0.3604672849,
0.1537550241,
0.3372954726,
0.0197727215,
-0.3421412706,
-0.3169183731,
-0.1763935685,
-0.049127806,
-0.0205629878,
-0.2518905699,
0.3864117861,
0.0364638679,
0.254627049,
0.2060187459,
-0.2413936257,
-0.1193949655,
0.1010258198,
0.0317340121,
0.5971211791,
0.080175966,
-0.1237555444,
-0.0247246511,
0.0153799094,
-0.0398109034,
-0.0067008873,
0.0270718727,
0.1904662251,
-0.3079117239,
-0.3250466585,
0.2066058367,
-0.1593380868,
0.4159703851,
-0.1509891599,
0.248250246,
0.1740216017,
-0.1795056611,
0.1214326918,
0.2831608653,
-0.0899356753,
-0.1744025052,
-0.1156537235,
0.0723325834,
-0.4601121247,
0.0820822194,
0.1743636727,
-0.1357315779,
0.1313315332,
-0.2064628303,
0.0541560091,
-0.0775341094,
-0.0458716974,
0.0806469023,
-0.0537389591,
-0.2299367785,
0.0137934946,
-0.098644197,
0.07683824,
-0.025891887,
0.0120431893,
-0.0909745991,
0.0679469928,
-0.1071033925,
-0.2761719227,
-0.2034254968,
0.2176355571,
-0.3801768124,
0.1288457811,
0.1727495492,
0.0190114342,
0.011964336,
-0.2340982109,
0.2328412533,
0.2133852988,
0.3611574471,
-0.3202943802,
0.1609593928,
-0.1494006813,
0.2117091715,
-0.2598240376,
0.0502517037,
-0.2192109376,
-0.4714737236,
-0.0295628607,
0.0450573117,
-0.3023357987,
-0.158236295,
0.2464544326,
-0.2315227836,
-0.1368897855,
-0.2449248284,
0.7459754348,
0.007385157,
0.1247613654,
-0.0491995066,
-0.001120083,
-0.363463819,
-0.0202040747,
0.0891347453,
0.2649675012,
0.1860183477,
-0.0088047236,
0.0476069599,
0.1841085255,
0.120043993,
0.3375633955,
-0.1249205321,
-0.1493849605,
0.0020367391,
0.1753961742,
0.2010469139,
-0.2509195209,
0.0566659123,
0.0413590521,
0.0060927644,
-0.0718062669,
0.1887999624,
-0.106910497,
0.3648876846,
-0.3289223313,
0.1453192681,
0.6325169802,
-0.2468333542,
0.1829524636,
-0.2372280359,
-0.0358665884,
-0.0515489317,
0.2669641972,
0.3047326207,
-0.3177724481,
0.1110949814,
-0.3176097572,
0.1368644983,
-0.1907479763,
0.2715634108,
-0.0199100301,
0.1988721788,
0.0542279705,
0.2405929118,
-0.4054968357,
-0.005557429,
0.0321985781,
-0.0676579624,
0.5373085141,
-0.0850453526,
-0.3493945599,
-0.1995297968,
-0.2065916955,
-0.0381344855,
-0.021345621,
0.2677494884,
0.3026915193,
0.08854267,
0.0233811662,
-0.1373603195,
-0.0861664042,
-0.1342482418,
-0.3086867929,
-0.0033675507,
0.3649307489,
-0.0922913924,
-0.0811053962,
0.2129442692,
0.4055528641,
-0.1997702122,
-0.2372059077,
0.105278261,
0.1152988821,
-0.1646990925,
0.0917295665,
0.5061899424,
0.3447549939,
0.1893039346,
-0.5001249313,
0.1349045485,
0.1144302934,
0.1833436042,
-0.0649388954,
-0.1615119576,
0.2966722548,
0.1831854731,
-0.0219674557,
0.2072995305,
-0.0891565382,
0.3712120354,
-0.0440205894,
-0.0954975486,
-0.084725678,
0.0343355648,
-0.0143094501,
0.0468292683,
0.1122883558,
-0.5806647539,
0.1995317489,
0.549488306,
0.0785556138,
0.3099133968,
0.1553823352,
-0.0023568682,
-0.1778403521,
-0.0857951045,
0.0435629189,
0.1141143888,
0.3094470799,
0.3973640203,
0.0615206659,
0.1920935214,
-0.0087896734,
0.1732659787,
-0.120145008,
0.2182253748,
0.2752732635,
0.2165375352,
0.0397535227,
-0.2015641034,
-0.1670656353,
0.086631678,
0.1049870029,
0.3335331678,
0.1044116318,
0.1620946825,
-0.2809583545,
-0.2595304549,
-0.1624916494,
-0.1026664451,
-0.0025338195,
0.2718780637,
-0.2838676572,
-0.1953324229,
0.25302881,
-0.0899118185,
0.3012340665,
-0.1137074083,
-0.0297506675,
0.129342556,
-0.4761375785,
-0.0963708162,
0.2489107251,
0.2857629359,
0.0243880935,
0.406527549,
0.1019365937,
-0.0001937225,
-0.0554573536,
-0.4803338051,
0.1979085207,
-0.2193888724,
-0.1993475258,
-0.0839120895,
-0.3282854557,
-0.0089865774,
-0.2560658753,
0.1163567156,
-0.1906365156,
-0.1358748376,
-0.0239539072,
-0.1252659857,
-0.0306451172,
-0.1082518622,
-0.6249158382,
-0.5535079837,
-0.3931678534,
0.116236493,
-0.0869345739,
0.1905632317,
-0.2222535014,
-0.2236907333,
-0.0532183237,
0.2386680245,
0.1823450625,
-0.2849722207,
-0.0559278168,
0.2615028918,
-0.3868194818,
-0.2336463779,
-0.2682061493,
-0.3120082915,
0.2669038177,
0.1276142299,
-0.0902529359,
0.0230465718,
-0.0722816139,
-0.3246201575,
0.2294093966,
-0.0798895061,
0.2951596081,
0.266108036,
-0.2085752189,
-0.0683944896,
-0.0480040237,
0.0669268966,
0.1893721819,
-0.0352250412,
-0.0691742375,
0.2103768885,
0.241315946,
0.3895181417,
-0.0755580738,
0.1789122671,
0.3257671893,
0.315346688,
0.0676873624,
-0.0875457376,
-0.2006428242,
0.184497565,
0.1857753992,
0.0273676664,
0.5681687593,
0.2440772355,
-0.7737675905,
-0.2368361801,
-0.0665207058,
-0.2774049044,
-0.2823316455,
0.2267480046,
-0.0064300024,
0.1672699451,
-0.0694505498,
-0.3338107467,
-0.2970197499,
-0.0867694318,
0.1868289113,
0.0179584883,
-0.0448426567,
0.1390140951,
-0.1333761811,
0.1693527102,
-0.3628246486,
0.1929847449,
0.2051898539,
-0.0744500309,
-0.05479265,
-0.1376660764,
0.0149124041,
-0.0647609383,
-0.0724484921,
-0.3927131295,
-0.0003973966,
0.1283617169,
-0.3000938594,
0.0754091591,
0.015313454,
-0.2824621201,
0.0676113516,
0.3900348246,
-0.066196233,
-0.4734045863,
-0.2287933081,
0.1623785198,
-0.0098263957,
-0.0981700048,
-0.1904402375,
-0.0223835334,
-0.4972301722,
-0.0557000972,
0.1005582064,
0.1771859527,
0.1592844576,
0.026854299,
-0.0268479176,
-0.1146927178,
-0.0503914058,
0.3639603853,
0.1062973291,
-0.1620107591,
0.3548575938,
0.1845197231,
-0.1037704274,
0.2475247234,
0.2776954174,
0.3752761483,
-0.2040379047,
-0.2674695253,
0.2303119302,
-0.4009723067,
0.3091104031,
0.0440565124,
0.3894357681,
0.253785044,
-0.1759384573,
-0.0548437089,
-0.1668064892,
-0.0964001417,
-0.025258366,
0.2476736605,
-0.4372763932,
-0.618876636,
0.3124142885,
0.1915919483,
-0.2940199375,
0.3257551789,
0.1227362901,
-0.409298718,
0.6036090255,
-0.0085068382,
1.0068216324,
-0.2064818144,
0.0192678589,
-0.0757427812,
0.242594406,
0.1657002568,
-0.3214387,
-0.0249558091,
-0.0408602282,
-0.1627235115,
0.1012693644,
0.1793096066,
0.0055641998,
0.1615139395,
-0.26215294,
0.0929741934,
0.0894046128,
-0.0839616209,
0.0868635178,
0.3980653882,
0.0476868153,
-0.3139049411,
-0.2840448916,
0.2409486771,
-0.0037068147,
-0.01646314,
0.0375620797,
-0.174771443,
-0.0627154112,
0.3782947659,
-0.4576456845,
0.0030915812,
0.2986185551,
0.0420786738,
-0.1318149269,
-0.2317117304,
0.5097087622,
0.0554340594,
0.4480832815,
-0.1488117278,
-0.0856939629,
0.0614238232,
-0.1998297274,
-0.1961733103,
0.1059417278,
-0.1727458835,
0.4053298831,
-0.0920225084,
-0.3007203043,
0.2931488156,
0.3604836166,
-0.1609971225,
-0.2587645948,
-0.0515533797,
0.0858498663,
0.0663368851,
0.1887252331,
0.3918243945,
-0.3024209738,
-0.0377420969,
0.2599420547,
0.2304692268,
-0.2249952853,
0.1714370251,
-0.0128720123,
-0.1304262877,
-0.004618424,
-0.0113620497,
0.5888927579,
-0.1910808235,
0.0283403061,
0.2820194364,
-0.0597927496,
-0.2995471954,
-0.2678392231,
0.1736906916,
0.0272034109,
-0.0603510253,
-0.104418382,
-0.2405273616,
0.1992273629,
-0.000538541,
0.252238065,
0.1426199377,
-0.0704540834,
0.0334541053,
0.101553157,
0.1490963548,
-0.0322875679,
0.0185115524,
-0.1188641861,
0.0478742756,
0.0688782483,
0.342954874,
-0.5057382584,
0.0078537948,
-0.2016776651,
0.2185335308,
0.0528445542,
-0.0939099789,
-0.061863564,
0.1001630053,
0.1176126376,
-0.0188257918,
-0.1256084889,
-0.2954028249,
-0.1370365918,
0.0935642645,
-0.0899438113,
0.2373554707,
0.1993774623,
-0.0618280694,
-0.160385102,
-0.3016290963,
0.1719177067,
0.1017065793,
0.0034257248,
0.0895929784,
0.3138921261,
-0.1009610519,
-0.0453009605,
-0.0164862946,
0.0591560379,
0.1452391446,
-0.0343684554,
0.1639667749,
0.0371301547,
-0.2268973291,
0.1959366947,
0.2424286306,
0.0517468676,
0.1004218757,
0.2397505045,
0.2974243164,
0.1709431112,
0.3149264157,
0.1969353408,
-0.198232621,
0.0142866895,
-0.012567848,
0.056444373,
0.3172781765,
-0.3726849556,
0.0981693938,
0.1270091683,
0.0227463953,
0.3888134956,
0.3959037364,
0.2513135374,
0.1040050387,
0.0570986234,
-0.0961453766,
0.2420563549,
0.0094871279,
0.2537918985,
-0.1055884287,
0.136136651,
-0.0255207196,
0.1322355866,
-0.036281988,
0.4412900507,
0.1181592643,
-0.1980967671,
0.4327002466,
0.3672032952,
0.0002729753,
0.1847955287,
-0.0257604979,
0.1654513776,
0.2912639678,
0.2248008847,
0.1123099178,
0.0767002404,
0.4137375951,
0.1545705199,
0.0604720302,
-0.1232114732,
0.3448936641,
0.1426744461,
0.1009162962,
-0.2385982871,
-0.1853683591,
-0.3306389451,
-0.0049492344,
-0.1086821184,
-0.1603017449,
0.286216706,
0.0123141278,
0.1106623709,
-0.0545543581,
-0.030040402,
0.0132003315,
0.3707944751,
-0.1473266184,
0.2632617652,
0.3792473972,
-0.3474472761,
-0.1610163152,
0.4022837281,
-0.0734456331,
0.0082245544,
-0.3307330012,
0.377104938,
-0.0165935215,
-0.0604395978,
0.0015694946,
0.1722233891,
0.1657085717,
-0.1234001368,
0.1630357802,
0.1844746023,
-0.170063287,
-0.043815583,
0.1857714057,
-0.1476699859,
0.1212134063,
0.2190963179,
0.2101530582,
0.1303410679,
-0.1294062436,
0.0292536523,
-0.5958347321,
-0.2451609671,
0.2990210652,
-0.0082033202,
0.0123209059,
-0.1301583946,
0.1210964918,
0.2004070729,
0.4456832707,
0.1922939867,
0.2045443058,
-0.0138144828,
-0.3460648358,
-0.337874651,
0.2569004595,
-0.142087087,
0.0148797333,
-0.2077051401,
0.2883599997,
0.4104832411,
0.3200042546,
-0.3424780667,
0.3709458411,
0.0179373771,
0.0065468401,
-0.5773762465,
0.1793448329,
-0.0044489726,
0.1575573534,
0.0918133408,
-0.0819357261,
-0.1166492328,
-0.1669205874,
0.2160649598,
-0.2341344953,
-0.1001129448,
0.0029197037,
0.1120483205,
0.1357710958,
0.0802974999,
0.2219414562,
-0.0308192186,
-0.0328295119,
0.0714034513,
-0.3288224041,
-0.1540768147,
0.3053360581,
0.1469468325,
-0.1198244616,
-0.2654130459,
-0.3528783917,
0.2071142644,
0.2779450417,
-0.1227899268,
0.0493450835,
-0.211432904,
-0.0391652808,
0.0466239527,
-0.1417343765,
-0.1302026212,
0.391712755,
-0.0472889915,
-0.0689287707,
-0.0754261538,
-0.2966425419,
0.2450674176,
-0.1027344912,
-0.3108027577,
-0.3666955829,
0.072766237,
0.2543418407,
0.2759599388,
-0.2505301535,
0.2675190568,
0.2665629089,
0.2953965962,
-0.0816420615,
0.1215067357,
0.0683361739,
-0.2200338691,
-0.2534704208,
-0.1043635607,
-0.0112960124,
-0.2040101588,
-0.3458050489,
-0.2720398307
] |
https://github.com/huggingface/datasets/issues/865 | Have Trouble importing `datasets` | I'm sorry, this was a problem with my environment.
Now that I have identified the cause of environmental dependency, I would like to fix it and try it.
Excuse me for making a noise. | I'm failing to import transformers (v4.0.0-dev), and tracing the cause seems to be failing to import datasets.
I cloned the newest version of datasets (master branch), and do `pip install -e .`.
Then, `import datasets` causes the error below.
```
~/workspace/Clone/datasets/src/datasets/utils/file_utils.py in <module>
116 sys.path.append(str(HF_MODULES_CACHE))
117
--> 118 os.makedirs(HF_MODULES_CACHE, exist_ok=True)
119 if not os.path.exists(os.path.join(HF_MODULES_CACHE, "__init__.py")):
120 with open(os.path.join(HF_MODULES_CACHE, "__init__.py"), "w"):
~/.pyenv/versions/anaconda3-2020.07/lib/python3.8/os.py in makedirs(name, mode, exist_ok)
221 return
222 try:
--> 223 mkdir(name, mode)
224 except OSError:
225 # Cannot rely on checking for EEXIST, since the operating system
FileNotFoundError: [Errno 2] No such file or directory: '<MY_HOME_DIRECTORY>/.cache/huggingface/modules'
```
The error occurs in `os.makedirs` in `file_utils.py`, even though `exist_ok = True` option is set.
(I use Python 3.8, so `exist_ok` is expected to work.)
I've checked some environment variables, and they are set as below.
```
*** NameError: name 'HF_MODULES_CACHE' is not defined
*** NameError: name 'hf_cache_home' is not defined
*** NameError: name 'XDG_CACHE_HOME' is not defined
```
Should I set some environment variables before using this library?
And, do you have any idea why "No such file or directory" occurs even though the `exist_ok = True` option is set?
Thank you in advance. | 34 | Have Trouble importing `datasets`
I'm failing to import transformers (v4.0.0-dev), and tracing the cause seems to be failing to import datasets.
I cloned the newest version of datasets (master branch), and do `pip install -e .`.
Then, `import datasets` causes the error below.
```
~/workspace/Clone/datasets/src/datasets/utils/file_utils.py in <module>
116 sys.path.append(str(HF_MODULES_CACHE))
117
--> 118 os.makedirs(HF_MODULES_CACHE, exist_ok=True)
119 if not os.path.exists(os.path.join(HF_MODULES_CACHE, "__init__.py")):
120 with open(os.path.join(HF_MODULES_CACHE, "__init__.py"), "w"):
~/.pyenv/versions/anaconda3-2020.07/lib/python3.8/os.py in makedirs(name, mode, exist_ok)
221 return
222 try:
--> 223 mkdir(name, mode)
224 except OSError:
225 # Cannot rely on checking for EEXIST, since the operating system
FileNotFoundError: [Errno 2] No such file or directory: '<MY_HOME_DIRECTORY>/.cache/huggingface/modules'
```
The error occurs in `os.makedirs` in `file_utils.py`, even though `exist_ok = True` option is set.
(I use Python 3.8, so `exist_ok` is expected to work.)
I've checked some environment variables, and they are set as below.
```
*** NameError: name 'HF_MODULES_CACHE' is not defined
*** NameError: name 'hf_cache_home' is not defined
*** NameError: name 'XDG_CACHE_HOME' is not defined
```
Should I set some environment variables before using this library?
And, do you have any idea why "No such file or directory" occurs even though the `exist_ok = True` option is set?
Thank you in advance.
I'm sorry, this was a problem with my environment.
Now that I have identified the cause of environmental dependency, I would like to fix it and try it.
Excuse me for making a noise. | [
-0.2681191862,
0.1308591217,
0.0091981068,
0.172247842,
0.2753850818,
0.0738354921,
0.207200855,
0.1833839417,
0.1528996229,
-0.1035957187,
-0.2849371433,
-0.1424156278,
-0.1180941612,
-0.3181895316,
0.0306982882,
0.1511701494,
0.2635428607,
0.3381051421,
-0.3553365171,
-0.2657530904,
-0.2365350723,
0.1956796646,
0.0699342191,
0.0383726656,
-0.3075053096,
0.1586765945,
-0.1923208833,
0.3546025157,
-0.0874142498,
-0.3079351187,
0.31280303,
0.0767818838,
0.2757257223,
0.7110571861,
-0.0001215231,
0.1625318229,
0.1903072298,
-0.0628713667,
-0.4191227853,
-0.3236559629,
-0.0890152827,
-0.3284655809,
0.1100216955,
-0.1870281249,
0.1990176141,
-0.2734279335,
0.0801438838,
-0.290848434,
0.4990460873,
0.3661042452,
0.1287855655,
0.3562701344,
0.1586525142,
-0.0425904207,
0.1484109163,
0.4451642632,
-0.0781544819,
-0.066388391,
-0.0085933693,
-0.1054825187,
0.2778814435,
0.0019222796,
-0.1829762161,
0.014080625,
0.4155778289,
-0.0752486885,
0.0377336219,
-0.3184427619,
0.0598809645,
0.200016886,
0.7275674939,
-0.4121956229,
-0.7552508116,
-0.1253422052,
-0.1917922199,
-0.1638840735,
0.2845660448,
-0.0826180801,
0.0983772427,
0.2858669162,
0.0040536821,
-0.3440296054,
-0.1661034077,
0.30629614,
-0.0775495768,
0.1118349433,
0.0083070807,
0.0248557068,
0.2521099448,
-0.1896156371,
0.343518883,
-0.3411345184,
0.0948807523,
0.3831880093,
-0.320957303,
-0.0606261827,
0.0867931545,
0.1025326401,
-0.066327177,
0.0996713117,
-0.4005202055,
-0.0226230398,
-0.2901918888,
0.1602174342,
0.1484984457,
0.204393968,
-0.0641831085,
0.3525402248,
0.2106773555,
-0.1175974458,
0.1762672812,
-0.0752195939,
-0.2436424494,
-0.2041593045,
0.0367052257,
-0.0733520389,
0.1752853841,
-0.3583662808,
-0.076261878,
0.0499929488,
-0.0009143129,
0.0625434443,
-0.0196597949,
0.3692305982,
-0.086348772,
0.1779128462,
0.1272704303,
0.336877346,
-0.2937976718,
0.1131297052,
-0.1551246643,
0.312903583,
-0.2285297215,
0.0236863904,
0.2922726274,
-0.0684458688,
0.2617128789,
-0.1203669459,
0.3084438443,
0.246784091,
0.0894461945,
-0.2138562053,
0.0618056804,
0.6000423431,
-0.2023261487,
0.4967265725,
0.305287838,
-0.2590166032,
-0.1908972859,
-0.0503734723,
-0.1729453057,
-0.2369496673,
-0.1975756139,
0.0900825486,
-0.420404911,
0.0599870794,
-0.1369485855,
-0.4408088028,
0.2870687842,
-0.2488069236,
-0.0929097012,
-0.2748690248,
0.2901175022,
-0.1786625087,
0.1630426943,
0.7134698033,
-0.4537552297,
-0.0906334966,
-0.4043833017,
-0.0830353349,
-0.1028403044,
0.3096979856,
-0.1342532337,
0.1072892323,
-0.2472752333,
-0.1418412924,
0.2915894389,
-0.4425393939,
-0.3745619953,
-0.0354105383,
0.0048854947,
0.0591551214,
0.1987727433,
-0.0395494774,
0.1241697595,
-0.2175827026,
-0.1797390282,
0.2130538523,
0.0306543764,
-0.1623440087,
-0.1035050899,
-0.2806383371,
0.0464728139,
0.3110307753,
0.4101851285,
0.0462242663,
0.0579207763,
0.1423962712,
-0.0716324449,
-0.0558817722,
0.1470707357,
0.5463572145,
0.4187241793,
0.2150307596,
0.1226578951,
-0.0435192473,
-0.2793139219,
0.3250387311,
0.0944099426,
-0.031289652,
-0.320638597,
0.0869083256,
-0.1255268306,
0.0822431967,
-0.2658863366,
-0.0612877496,
0.0229208395,
0.0132841971,
0.0429528803,
0.0041293055,
-0.1376989186,
0.5887194276,
0.0841865093,
0.298593998,
-0.3340809345,
0.49762097,
-0.2197431624,
-0.0243328232,
-0.2272533178,
0.2132328898,
0.0356289595,
-0.095887281,
-0.1653891802,
0.227717191,
0.0509412773,
0.040398933,
-0.0894362926,
0.4067899883,
0.1685878187,
-0.3530107737,
0.3245934844,
0.2188600898,
0.0722008571,
0.0125810727,
-0.1360513419,
-0.1728670299,
-0.1118317097,
0.2684085667,
0.0629777461,
0.0753318891,
0.1597498953,
-0.0182623118,
-0.0926282555,
-0.2973413169,
0.2764790356,
0.1400915831,
0.5950939655,
0.0195131991,
0.283918798,
-0.0588101223,
0.0648780093,
-0.0461959019,
0.0504945777,
0.0296054371,
-0.2449676692,
0.0941411704,
0.2393052727,
0.3468311727,
0.556456387,
0.1072780639,
-0.1874958873,
0.1047867164,
-0.1752254665,
0.0151929259,
0.0236832947,
0.1832286417,
0.1447097361,
0.1225250885,
-0.1115247309,
0.0541962907,
-0.120040834,
-0.5026336908,
0.0624660999,
0.3078271449,
-0.5334969163,
0.2141973078,
-0.363202095,
-0.1724312603,
-0.1712998897,
-0.0200895332,
-0.2282008529,
-0.3269524276,
-0.1747834533,
0.195821017,
-0.0569684133,
0.1376820356,
-0.0231507197,
-0.1850918829,
-0.1616013348,
-0.501103282,
-0.1654449999,
-0.1189042553,
-0.0615778044,
-0.0852289721,
0.1452156305,
-0.0186590888,
0.1159547493,
-0.1061148047,
0.1091467738,
-0.317658335,
-0.3510707617,
0.0525582656,
0.0505925305,
0.3023041785,
0.1253058314,
0.2575557232,
0.1992650181,
-0.2578475475,
0.1370528042,
0.0607148781,
-0.0799539238,
0.0862373412,
0.0300321281,
-0.328006655,
-0.153260231,
-0.1224601418,
-0.4666888714,
-0.4357228875,
-0.2288569659,
0.039491646,
0.0701540336,
0.6503180861,
0.2038674504,
0.1293327063,
0.1087794304,
-0.0912210941,
-0.063496612,
-0.0144539773,
0.5791633725,
-0.2120683491,
-0.2635465562,
0.0121332482,
-0.1841266453,
0.2727895975,
0.185742259,
-0.2984971404,
-0.0178075582,
-0.1328408718,
0.1384150088,
0.0182922464,
0.3956165612,
0.4145408571,
0.1749928296,
0.0981786996,
-0.2287122607,
0.0139993876,
-0.1211025268,
0.1775334626,
0.3473452628,
-0.1626528054,
0.3198259771,
-0.293931067,
0.8454339504,
0.080680266,
0.0163486917,
0.4163771868,
0.1902275383,
0.7380414605,
-0.009634845,
-0.4733700752,
-0.0255541578,
-0.0094590932,
-0.2399980575,
-0.001080703,
-0.0055481363,
-0.1845032126,
-0.1395787001,
0.1722679436,
-0.152545169,
-0.1586580575,
-0.0561990216,
-0.0725019053,
0.104839772,
0.1237603277,
0.0919109881,
-0.2340690494,
-0.068383351,
0.1189663559,
0.5389800072,
-0.1123921722,
0.2590022087,
-0.4309729338,
-0.3115485907,
-0.1010297835,
0.1086868942,
-0.1497283876,
0.3363611996,
-0.1191825941,
0.1415851861,
-0.1787703931,
0.1255773455,
0.4687948227,
-0.223320812,
-0.3136991262,
0.2532339394,
-0.0265994854,
-0.5515055656,
-0.2780081034,
0.0786728412,
0.1461153775,
-0.0212887116,
0.1174369231,
-0.3697506487,
-0.2067415416,
-0.0211545248,
0.4966009259,
-0.1066759974,
-0.1665020585,
-0.1915778816,
-0.263602972,
-0.3931653798,
-0.3731763959,
-0.0536196455,
-0.0174948201,
0.0427429676,
0.2692253292,
-0.0728071928,
-0.0048160106,
0.3909718096,
0.0288444199,
0.3221442103,
-0.1840127409,
0.2099017501,
0.2420088202,
-0.1991631091,
0.3177756369,
0.5349609852,
-0.297273159,
-0.3691244721,
0.1290198863,
0.0433833376,
0.1929127276,
0.1176798642,
-0.0890939385,
-0.1491372436,
-0.0108164847,
-0.0472198762,
0.0685799867,
0.0497184247,
0.0365896076,
0.1812490225,
-0.1543532014,
-0.3426197767,
0.4528335929,
0.193742305,
0.0721444935,
0.3791001439,
0.3884425759,
-0.1684700251,
0.4540008903,
-0.0736418143,
0.880766511,
-0.0257004425,
0.1092430055,
0.1145275086,
-0.1691687405,
0.5640376806,
-0.3705220222,
-0.0792412311,
-0.3676965833,
-0.1644213498,
-0.1051589251,
-0.2876474559,
0.391151607,
0.2009357363,
-0.1806268096,
0.365446806,
-0.0542885885,
0.064448759,
0.0157217421,
0.2018321753,
0.0514676124,
-0.4242675006,
-0.0983047187,
0.1415807009,
-0.0429061055,
0.5573289394,
-0.1223060712,
0.1680152416,
-0.3432842493,
-0.1380121708,
-0.2611138225,
0.135982424,
-0.1427856982,
0.4621759057,
0.1932134926,
-0.2737784386,
0.261238277,
0.2018592805,
0.5882263184,
0.2044984102,
-0.2599532902,
0.0772635117,
-0.1663912833,
0.0165820494,
0.0612665601,
-0.0391547829,
0.4917531013,
0.0534949154,
-0.2163822651,
0.0601255298,
-0.2685373724,
-0.1303707957,
0.2257759273,
-0.2135467082,
0.0380450487,
-0.1937056184,
-0.2546370625,
0.167442441,
0.084644407,
0.0727841258,
0.0500447005,
0.1630940586,
0.0611613691,
0.367952615,
-0.1991781443,
-0.1089951023,
-0.2001006603,
0.3990021944,
-0.1630836129,
-0.0530775152,
0.5511955619,
0.048567526,
-0.2752057314,
-0.0091852322,
-0.0508705303,
0.0294107385,
-0.4710205197,
-0.2380775511,
-0.1888132691,
-0.3708631694,
0.0413847491,
-0.2812021077,
0.326487124,
-0.114005588,
-0.1113220826,
-0.3906498849,
-0.2503591478,
0.2954975963,
-0.1786898673,
0.1940517426,
-0.0487761497,
-0.0523173213,
0.1656805575,
-0.1656508148,
-0.2181093991,
-0.077485621,
-0.2516184449,
-0.0239508692,
0.2636091709,
-0.0844354928,
0.0436904877,
-0.3919887245,
0.0042981431,
-0.1659094095,
-0.3986681402,
-0.0611191839,
-0.1735189706,
0.1971190572,
0.121475473,
-0.1493662596,
0.2229339629,
-0.198972255,
0.0006002486,
-0.2565850616,
-0.00212235,
0.119771421,
-0.1184918359,
0.1176442504,
0.1455777287,
-0.143998608,
-0.3486429751,
0.2148784399,
0.1121494472,
0.1845345944,
0.0702418089,
0.2187032551,
0.039933078,
-0.0439698175,
-0.5120849609,
0.0981447473,
-0.2063383758,
-0.0965810567,
0.3869282305,
-0.3597469032,
0.2260466069,
0.2410664111,
0.2113784552,
0.3813199997,
-0.1031668633,
0.1548475921,
0.4258761704,
0.0828903019,
-0.256105125,
-0.2185855508,
0.1594651788,
0.0705730841,
0.0581142753,
0.3408959806,
0.1401667297,
-0.1198268235,
0.7606739402,
0.2311881185,
0.6941431761,
-0.1100951806,
0.2643289864,
0.3837808073,
-0.0834084749,
0.1918818951,
0.2336905599,
0.0849546492,
0.2238955498,
0.3608664274,
-0.2763062119,
0.1486974806,
-0.0203121789,
0.1499192864,
0.0451037139,
-0.53688097,
0.0119824642,
-0.2342731059,
0.2228982747,
-0.0501377247,
-0.0394917838,
0.040003024,
-0.3863477707,
0.0247562677,
-0.0632807836,
0.2031028718,
-0.0334807038,
0.1203931049,
0.4617052674,
0.0134359002,
-0.0666046888,
-0.1801102608,
0.020030709,
-0.4102992415,
0.1239866242,
0.0687172264,
-0.1802634597,
-0.2426964641,
0.2413450032,
0.1321540773,
-0.0655995011,
-0.2045086771,
0.1677086502,
0.1210537255,
-0.1471865475,
-0.175699085,
0.4764433503,
0.4472570121,
0.3650379181,
0.0347521268,
0.0656480193,
0.042931769,
-0.0583047941,
0.156766817,
0.006588269,
-0.3767540753,
0.2104237527,
0.2244567126,
0.0903665051,
-0.0939448625,
-0.3274737298,
-0.140204668,
-0.0610650256,
-0.2975256741,
0.315141052,
0.0074531343,
-0.1436065137,
-0.0054717846,
-0.0202254318,
-0.4903230667,
0.0424956903,
0.4755945802,
0.0237227231,
-0.0282771271,
-0.0399076082,
-0.005483184,
0.0109304637,
0.3377833962,
0.5781384706,
0.2742245495,
-0.4089938402,
0.097465083,
-0.8250721097,
-0.0210973993,
-0.2424008399,
-0.1300936043,
0.1927949935,
0.0657982454,
0.0001381412,
0.0886073709,
0.2619174421,
0.1530327648,
-0.0672083199,
-0.0717524141,
-0.3299862742,
-0.270599544,
0.0108857322,
-0.0221072882,
-0.0670914501,
-0.3362776041,
0.0149737196,
0.1458164454,
-0.0369930081,
-0.1294056773,
-0.0858350098,
0.2077592313,
-0.1571017206,
0.4208463132,
-0.1390826255,
0.3130936027,
0.1830289364,
-0.1593533605,
-0.242064476,
-0.2784919739,
-0.0913385451,
-0.0075333584,
0.0356718041,
0.5254504085,
-0.4202167094,
-0.3511503637,
-0.3888191879,
0.0676920563,
0.2071897984,
-0.0218449254,
-0.1191697046,
0.3861374557,
-0.2201077044,
0.315539062,
0.2222311497,
0.0527677126,
-0.0292810351,
0.3702807724,
-0.2489840239,
-0.3444299102,
0.4452055991,
-0.1271152794,
-0.1187380552,
-0.1291191876,
0.2647626996,
-0.0421516597,
-0.2734030783,
-0.4115772247,
0.0109540224,
0.1472511739,
-0.0865053385,
-0.3207420409,
0.039342694,
0.1452870518,
0.0905793011,
-0.0591901839,
0.4109854698,
-0.1266400516,
-0.0084433258,
0.1631888449,
0.1122633368
] |
https://github.com/huggingface/datasets/issues/864 | Unable to download cnn_dailymail dataset | Same here! My kaggle notebook stopped working like yesterday. It's strange because I have fixed version of datasets==1.1.2 | ### Script to reproduce the error
```
from datasets import load_dataset
train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
```
### Error
```
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-8-47c39c228935> in <module>()
1 from datasets import load_dataset
2
----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
5 frames
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
609 download_config=download_config,
610 download_mode=download_mode,
--> 611 ignore_verifications=ignore_verifications,
612 )
613
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
469 if not downloaded_from_gcs:
470 self._download_and_prepare(
--> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
472 )
473 # Sync info
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
524 split_dict = SplitDict(dataset_name=self.name)
525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
527
528 # Checksums verification
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager)
252 def _split_generators(self, dl_manager):
253 dl_paths = dl_manager.download_and_extract(_DL_URLS)
--> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN)
255 # Generate shared vocabulary
256
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split)
153 else:
154 logging.fatal("Unsupported split: %s", split)
--> 155 cnn = _find_files(dl_paths, "cnn", urls)
156 dm = _find_files(dl_paths, "dm", urls)
157 return cnn + dm
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
```
Thanks for any suggestions. | 18 | Unable to download cnn_dailymail dataset
### Script to reproduce the error
```
from datasets import load_dataset
train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
```
### Error
```
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-8-47c39c228935> in <module>()
1 from datasets import load_dataset
2
----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
5 frames
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
609 download_config=download_config,
610 download_mode=download_mode,
--> 611 ignore_verifications=ignore_verifications,
612 )
613
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
469 if not downloaded_from_gcs:
470 self._download_and_prepare(
--> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
472 )
473 # Sync info
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
524 split_dict = SplitDict(dataset_name=self.name)
525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
527
528 # Checksums verification
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager)
252 def _split_generators(self, dl_manager):
253 dl_paths = dl_manager.download_and_extract(_DL_URLS)
--> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN)
255 # Generate shared vocabulary
256
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split)
153 else:
154 logging.fatal("Unsupported split: %s", split)
--> 155 cnn = _find_files(dl_paths, "cnn", urls)
156 dm = _find_files(dl_paths, "dm", urls)
157 return cnn + dm
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
```
Thanks for any suggestions.
Same here! My kaggle notebook stopped working like yesterday. It's strange because I have fixed version of datasets==1.1.2 | [
-0.3053481579,
0.2343732417,
-0.0792270601,
0.1706799865,
0.3605654836,
0.1738088131,
0.5607903004,
0.2436558455,
-0.1719248593,
0.0751595497,
-0.1179391965,
0.0767754093,
-0.2897084355,
-0.0377529673,
-0.0130567905,
-0.0291593969,
-0.2127256393,
0.1067626178,
-0.1973430663,
0.0291639715,
-0.1067140549,
0.0961274952,
-0.1522006392,
-0.0697496831,
-0.2929645181,
-0.1320363581,
0.0363869518,
0.1792992353,
-0.3712781668,
-0.3521040976,
0.3593554497,
-0.0825211853,
0.187348336,
0.4354529679,
-0.0001112958,
0.2995791137,
0.3638945222,
-0.0500411168,
-0.4619032741,
-0.473637253,
-0.1796992421,
-0.135131672,
0.0417743251,
-0.2966792583,
-0.00175713,
0.0122684464,
-0.0355194584,
0.1481756568,
0.3508040905,
0.6557958722,
0.2708095312,
0.4034879208,
0.3544585109,
-0.1669904441,
-0.2214082628,
0.159442991,
-0.0742192194,
0.5186956525,
-0.4013257027,
0.10327667,
0.2056572735,
0.1207840592,
-0.1278408319,
0.1728734672,
0.0507546738,
0.0189498141,
0.1369117945,
-0.4564378858,
0.1248678416,
0.2598637342,
0.4185574949,
-0.2014637887,
-0.2431452274,
0.1196372658,
0.1434075087,
-0.2662437558,
0.1472919583,
0.3098777533,
-0.1643136889,
0.0582005642,
-0.2776975632,
0.0111332573,
-0.2915739119,
0.4140601754,
-0.2303674817,
0.1816992611,
0.0403024033,
0.0740702301,
0.2228644937,
-0.1520417184,
0.4015417099,
-0.2636483312,
0.2471813262,
0.0726071,
-0.0523366667,
-0.136785388,
0.0545635968,
-0.2483980507,
0.0137200579,
0.0134285856,
-0.1899163425,
-0.2480670959,
0.003448952,
0.072521776,
-0.0031767152,
0.0848952308,
-0.237814635,
0.6527374983,
0.1373990178,
0.4710144401,
-0.114767842,
0.0423020385,
-0.2318074256,
-0.1314212084,
0.1342490762,
0.1773546934,
0.5618005991,
-0.1913484633,
-0.4141945243,
0.2526678741,
-0.5342703462,
0.0010655858,
0.1967068017,
0.3225839138,
-0.1696946621,
0.0354947746,
0.000475727,
0.1084767282,
0.0281693041,
0.0804796517,
-0.2693051994,
0.2859299481,
-0.1196610928,
-0.0974229053,
0.3719028533,
-0.3562031388,
0.1796879768,
-0.0228086002,
0.1048487872,
-0.1313495934,
0.1455953121,
-0.2708336711,
-0.1464377642,
0.4110411406,
-0.1056435928,
0.1318190992,
0.0854268521,
0.0459014922,
-0.1711771786,
0.1168937087,
-0.0236166641,
-0.3991502821,
0.0757413805,
0.2404703498,
-0.0782734081,
-0.334649235,
0.1967339069,
-0.2113053352,
-0.0441894345,
0.0090285391,
-0.1316438019,
-0.2747363448,
-0.048886966,
-0.1960805207,
0.3570637703,
0.6024298668,
-0.4387532175,
0.0300038308,
-0.177068457,
-0.2216211706,
0.1865837127,
0.2859837413,
-0.3314291239,
0.286573112,
-0.0801034197,
-0.2004276663,
0.4411746264,
-0.4087320566,
-0.5403162241,
0.2019561082,
-0.0457450747,
0.0747407675,
-0.0577666163,
0.053031534,
0.0841368139,
0.0774073303,
0.0953816101,
0.4915383458,
-0.1939901561,
-0.0277161412,
-0.1510462165,
-0.329621613,
0.1893858463,
0.3296566606,
0.4307679832,
0.1475800127,
-0.0082083084,
0.1020928919,
0.1281471103,
0.0709251761,
-0.0517406985,
0.1613205522,
0.321952194,
-0.0353382751,
-0.1970411092,
-0.0764015019,
-0.3915077746,
0.1054193601,
0.1194402128,
0.1985473782,
-0.0941805542,
-0.0577524602,
-0.4808585346,
-0.1143847555,
-0.2268012166,
0.0408289582,
0.2129353285,
0.2092738897,
0.1277355552,
0.0437873974,
-0.2601551414,
0.3888754845,
-0.0502965972,
0.2067392319,
-0.1509431005,
0.4017491937,
-0.2926220894,
-0.0586010069,
0.0658872724,
0.0477816388,
0.2527953386,
-0.1254136711,
-0.106238395,
0.1132923067,
0.0106228627,
-0.1269105673,
-0.064255923,
-0.0739661157,
0.0886370242,
-0.1603419483,
0.0321265012,
0.3180969059,
0.07946679,
0.036275655,
-0.0129769668,
0.2884828448,
0.1633597463,
-0.042649664,
0.1151297316,
0.1497042775,
0.2333552688,
-0.205404222,
0.0016973391,
-0.074169144,
0.2501130402,
-0.0294038001,
0.3837202191,
-0.11675933,
-0.3227630556,
-0.2946906686,
0.20184955,
-0.2236116827,
-0.0194852501,
0.0601011477,
-0.1977684051,
0.1045863777,
-0.2133278102,
0.3237719536,
0.4441052079,
0.0796770006,
0.0288692117,
0.1061182469,
-0.2178814113,
-0.106099084,
0.1595466137,
0.228220284,
0.1528196186,
0.1916667372,
-0.0428629033,
0.2319726646,
-0.2976654768,
-0.4345206618,
0.2509982586,
0.4884729981,
-0.3115290999,
-0.0291258916,
-0.3028717339,
-0.1064915583,
-0.162215203,
-0.4730816185,
-0.0811020508,
-0.2360573113,
-0.1359014958,
0.2614665926,
0.0638849139,
0.0723204166,
-0.3064316809,
-0.1044545472,
0.1325639188,
-0.3229352832,
-0.0856677964,
0.0551764183,
-0.039636746,
0.1476237178,
0.399528116,
-0.0969785228,
0.3422372043,
-0.0154317208,
-0.1305360347,
-0.2630586624,
-0.1927981973,
-0.0004327577,
0.0221681893,
0.2420885712,
0.1672897637,
0.430962503,
0.0226662308,
-0.1936051548,
0.1404918581,
0.0584449768,
-0.0268688165,
0.2278823853,
-0.2574728131,
-0.1057041511,
-0.0101709291,
-0.486012131,
-0.5390892029,
-0.3269206583,
-0.1599414647,
-0.048290208,
0.1959891766,
0.4237081409,
0.1160523891,
0.1385358572,
-0.1566383094,
0.0500072092,
-0.1222570464,
-0.1248524413,
0.4896660149,
-0.3741425276,
-0.3817527294,
0.1049953476,
-0.1745425761,
0.2857011557,
-0.0893124789,
-0.4778814316,
-0.2060611248,
-0.1840451956,
-0.077938512,
-0.1294919997,
-0.2238218784,
0.1238591596,
-0.053183496,
-0.0448056869,
0.1214572489,
-0.1170100272,
-0.0215034112,
0.1581936181,
0.0776544139,
-0.1886181533,
0.5733030438,
0.0269380063,
0.6518711448,
0.2029564381,
-0.2608669698,
0.3176006079,
-0.0788139254,
0.2220961303,
-0.0406566858,
-0.4731611609,
-0.0460524783,
0.2134991735,
0.0348071828,
-0.0596524701,
-0.225663662,
-0.3095943928,
-0.2722096443,
-0.1301363409,
-0.3081516325,
-0.2545177341,
0.0712787658,
0.1031406596,
0.2053648233,
0.0995044857,
0.191416055,
0.0591030419,
-0.168102324,
-0.0150369406,
0.4313993156,
0.0771582797,
0.0633861274,
0.1295621991,
-0.0592791252,
-0.3305476606,
0.0920392051,
-0.092884779,
0.3071430624,
-0.0619966127,
0.1866851449,
-0.0089114942,
-0.0765375942,
0.2313295752,
0.0687431321,
0.1700017154,
0.2777776718,
-0.1218905523,
-0.3610596061,
-0.2361999154,
-0.3534474373,
0.033786796,
0.2101771981,
0.1839333773,
-0.3156817257,
-0.0661930516,
0.6153851748,
0.1403868943,
-0.0556862839,
-0.3950103819,
-0.2080631852,
-0.3233415782,
-0.4916277826,
0.0996388048,
-0.1292095184,
0.244627133,
0.0665888712,
-0.1874728501,
-0.0348469913,
0.0217929706,
0.1887641847,
0.000460282,
0.1229711175,
0.0819307119,
0.3935821652,
0.1386473477,
-0.0997417197,
0.4361156523,
0.4650557935,
0.0479853414,
-0.4144466519,
-0.088219665,
0.1417159736,
-0.1368326843,
0.1666585803,
-0.2181943953,
-0.273738116,
0.2523176074,
0.2460315377,
0.1622438431,
0.1378746927,
0.4610221386,
-0.2430562675,
-0.5729040504,
-0.3615539074,
0.1896253824,
-0.1797267497,
0.1413583755,
0.1366219819,
-0.2497363389,
0.0172260441,
0.010419149,
-0.0525607206,
0.7789853215,
0.1548535526,
0.0441101938,
0.4680347741,
-0.003756389,
0.3014906049,
-0.0559012964,
0.0838303566,
-0.3072823286,
-0.2321267873,
-0.1228300333,
-0.2282547355,
0.1536597908,
0.2682595849,
-0.214591831,
0.3666178584,
-0.0568441525,
0.1451286077,
0.0025311019,
0.3421611786,
-0.0584323406,
0.0655457824,
-0.0626574159,
0.2040623128,
-0.1444291472,
0.4097228348,
-0.135684818,
-0.149005115,
-0.0768996775,
-0.2596900463,
-0.2632802725,
0.1581945419,
-0.3894183934,
0.3009176552,
0.0940063819,
-0.0541631058,
-0.0775872022,
-0.0720011368,
0.0379507057,
0.0387827605,
-0.1752783805,
0.084496215,
-0.1288580298,
-0.2365465313,
-0.0595174618,
-0.1094144583,
0.4144063294,
-0.2647610009,
-0.2428982854,
0.0964699686,
0.0492815673,
-0.2107218951,
0.1066629142,
0.0112679098,
0.2041608393,
-0.3407523632,
-0.251809895,
-0.0327802002,
-0.1775389016,
-0.1255305409,
0.1862043142,
0.0360449143,
-0.0364981964,
0.2830500603,
-0.0620822608,
-0.1947599798,
-0.150698185,
0.3512087762,
-0.1067586318,
-0.1233871132,
0.4347912967,
0.0720543563,
-0.3199331462,
-0.292049706,
0.0793826878,
-0.0465264432,
-0.4147836268,
0.0896517932,
0.0486421175,
0.340302825,
0.0655380487,
0.1039592326,
0.1910347342,
0.0446519181,
-0.0263225734,
-0.5710039735,
-0.2213810682,
-0.0354620889,
0.0354413539,
0.2289004475,
-0.0949722752,
0.3262061775,
0.2034397125,
-0.0655393377,
-0.3433676362,
0.1364939511,
-0.0954210609,
-0.0452933125,
0.1359442323,
-0.1490375847,
0.4430608451,
0.1009040773,
0.1978887022,
0.0278640129,
-0.1176837608,
-0.2749329805,
-0.1282681525,
0.1190887243,
0.1679852009,
-0.1261830032,
0.0420026034,
-0.1996615231,
-0.3425240815,
0.1667081118,
0.0233253986,
0.1777889282,
-0.0187484547,
0.0477434061,
0.1527055204,
0.0576968975,
-0.152434051,
0.0197508335,
-0.0933410823,
0.3424441814,
0.220188126,
0.2526729405,
0.1092483625,
-0.0283041149,
-0.435336113,
-0.0889778882,
0.0215207562,
-0.1089894846,
0.3970858455,
-0.2267070115,
-0.0844076723,
0.1168389246,
0.2218981981,
0.3427521884,
-0.2445504814,
0.0473773852,
0.3164502084,
0.2502196729,
-0.2942926884,
-0.0744642168,
0.1661238968,
0.1107306927,
0.1122420803,
0.0778136253,
-0.2546728253,
0.0717096329,
0.0237515308,
0.1373423934,
0.3921364546,
-0.0400033072,
0.125055328,
0.3877007663,
-0.1304766238,
-0.0067148302,
0.1958844513,
-0.0121205542,
0.0708715841,
0.4315573573,
-0.2908121645,
-0.0119647477,
-0.1729233861,
-0.0734785497,
0.2268630564,
-0.2598983049,
-0.0039408244,
0.2269200981,
-0.1188607737,
0.0853064805,
-0.0197696425,
0.1014456898,
-0.0209629536,
0.1261385977,
-0.4866473079,
0.3916065991,
-0.0998361558,
0.3023132086,
-0.2309095711,
-0.1329820454,
-0.229221493,
0.1452823728,
0.104304485,
-0.1691763401,
0.2273528576,
0.3998039663,
-0.2776851058,
-0.1550410092,
0.0752836466,
0.3108181357,
-0.0813329369,
-0.2761152387,
0.182285428,
0.3667351007,
-0.0344139449,
-0.0020701746,
0.447514683,
0.3937962949,
0.2824236155,
0.0474144034,
0.2371769249,
0.1083742678,
-0.1588352621,
0.0991287082,
0.1113985404,
0.2268318683,
0.3477748036,
0.320022434,
0.2253325731,
-0.2515419424,
0.0480179116,
-0.0931240469,
-0.0826395154,
-0.2318331152,
0.5614549518,
0.0496754311,
0.0397597402,
-0.2407838851,
-0.053669814,
-0.4856573641,
-0.0348078534,
0.3326093853,
0.1133721247,
0.0982407555,
-0.1042845771,
0.0643890724,
-0.0975301713,
0.3120364547,
0.3321331739,
0.2571237683,
-0.620179534,
0.0042887479,
-0.6339923739,
0.1701639593,
-0.1985664964,
0.0743851364,
-0.0166367572,
0.0412025824,
-0.2311746031,
0.3115764856,
0.2193794847,
0.0395451263,
0.0116455778,
0.2519505024,
-0.1994520426,
-0.0294274203,
0.1661609411,
-0.1432823539,
0.0830326602,
-0.4240464568,
0.0994043872,
-0.4774453044,
0.0173683986,
-0.044377856,
-0.3066774607,
-0.0353299081,
0.2529804111,
0.4154711068,
0.0541492626,
0.7115378976,
-0.0803385973,
-0.217979759,
-0.2073080838,
-0.0156713165,
-0.2390040457,
0.155191958,
0.1466775239,
0.3737409115,
-0.0241128989,
-0.1898599565,
-0.417525053,
0.3508702219,
-0.1077161133,
-0.176521033,
-0.2167673558,
-0.0179203786,
-0.1924645007,
0.2424507439,
0.050991714,
0.0850013793,
-0.0730700493,
0.1792783439,
-0.3576472104,
-0.4977720678,
0.608987093,
-0.2351762503,
-0.210812062,
-0.2193453461,
0.1239550859,
-0.1172367558,
0.1133626252,
-0.497730732,
0.3211051524,
0.3238474429,
-0.0129206069,
-0.1095672846,
0.2009018809,
0.2233953774,
0.2048543394,
0.0640876293,
0.3913772106,
0.1503722668,
-0.3911637366,
-0.0575920455,
-0.2036331147
] |
https://github.com/huggingface/datasets/issues/864 | Unable to download cnn_dailymail dataset | I couldn't reproduce unfortunately. I tried
```python
from datasets import load_dataset
load_dataset("cnn_dailymail", "3.0.0", download_mode="force_redownload")
```
and it worked fine on both my env (python 3.7.2) and colab (python 3.6.9)
Maybe there was an issue with the google drive download link of the dataset ?
Are you still having the issue ? If so could your give me more info about your python and requests version ? | ### Script to reproduce the error
```
from datasets import load_dataset
train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
```
### Error
```
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-8-47c39c228935> in <module>()
1 from datasets import load_dataset
2
----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
5 frames
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
609 download_config=download_config,
610 download_mode=download_mode,
--> 611 ignore_verifications=ignore_verifications,
612 )
613
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
469 if not downloaded_from_gcs:
470 self._download_and_prepare(
--> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
472 )
473 # Sync info
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
524 split_dict = SplitDict(dataset_name=self.name)
525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
527
528 # Checksums verification
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager)
252 def _split_generators(self, dl_manager):
253 dl_paths = dl_manager.download_and_extract(_DL_URLS)
--> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN)
255 # Generate shared vocabulary
256
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split)
153 else:
154 logging.fatal("Unsupported split: %s", split)
--> 155 cnn = _find_files(dl_paths, "cnn", urls)
156 dm = _find_files(dl_paths, "dm", urls)
157 return cnn + dm
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
```
Thanks for any suggestions. | 66 | Unable to download cnn_dailymail dataset
### Script to reproduce the error
```
from datasets import load_dataset
train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
```
### Error
```
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-8-47c39c228935> in <module>()
1 from datasets import load_dataset
2
----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
5 frames
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
609 download_config=download_config,
610 download_mode=download_mode,
--> 611 ignore_verifications=ignore_verifications,
612 )
613
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
469 if not downloaded_from_gcs:
470 self._download_and_prepare(
--> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
472 )
473 # Sync info
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
524 split_dict = SplitDict(dataset_name=self.name)
525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
527
528 # Checksums verification
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager)
252 def _split_generators(self, dl_manager):
253 dl_paths = dl_manager.download_and_extract(_DL_URLS)
--> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN)
255 # Generate shared vocabulary
256
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split)
153 else:
154 logging.fatal("Unsupported split: %s", split)
--> 155 cnn = _find_files(dl_paths, "cnn", urls)
156 dm = _find_files(dl_paths, "dm", urls)
157 return cnn + dm
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
```
Thanks for any suggestions.
I couldn't reproduce unfortunately. I tried
```python
from datasets import load_dataset
load_dataset("cnn_dailymail", "3.0.0", download_mode="force_redownload")
```
and it worked fine on both my env (python 3.7.2) and colab (python 3.6.9)
Maybe there was an issue with the google drive download link of the dataset ?
Are you still having the issue ? If so could your give me more info about your python and requests version ? | [
-0.3053481579,
0.2343732417,
-0.0792270601,
0.1706799865,
0.3605654836,
0.1738088131,
0.5607903004,
0.2436558455,
-0.1719248593,
0.0751595497,
-0.1179391965,
0.0767754093,
-0.2897084355,
-0.0377529673,
-0.0130567905,
-0.0291593969,
-0.2127256393,
0.1067626178,
-0.1973430663,
0.0291639715,
-0.1067140549,
0.0961274952,
-0.1522006392,
-0.0697496831,
-0.2929645181,
-0.1320363581,
0.0363869518,
0.1792992353,
-0.3712781668,
-0.3521040976,
0.3593554497,
-0.0825211853,
0.187348336,
0.4354529679,
-0.0001112958,
0.2995791137,
0.3638945222,
-0.0500411168,
-0.4619032741,
-0.473637253,
-0.1796992421,
-0.135131672,
0.0417743251,
-0.2966792583,
-0.00175713,
0.0122684464,
-0.0355194584,
0.1481756568,
0.3508040905,
0.6557958722,
0.2708095312,
0.4034879208,
0.3544585109,
-0.1669904441,
-0.2214082628,
0.159442991,
-0.0742192194,
0.5186956525,
-0.4013257027,
0.10327667,
0.2056572735,
0.1207840592,
-0.1278408319,
0.1728734672,
0.0507546738,
0.0189498141,
0.1369117945,
-0.4564378858,
0.1248678416,
0.2598637342,
0.4185574949,
-0.2014637887,
-0.2431452274,
0.1196372658,
0.1434075087,
-0.2662437558,
0.1472919583,
0.3098777533,
-0.1643136889,
0.0582005642,
-0.2776975632,
0.0111332573,
-0.2915739119,
0.4140601754,
-0.2303674817,
0.1816992611,
0.0403024033,
0.0740702301,
0.2228644937,
-0.1520417184,
0.4015417099,
-0.2636483312,
0.2471813262,
0.0726071,
-0.0523366667,
-0.136785388,
0.0545635968,
-0.2483980507,
0.0137200579,
0.0134285856,
-0.1899163425,
-0.2480670959,
0.003448952,
0.072521776,
-0.0031767152,
0.0848952308,
-0.237814635,
0.6527374983,
0.1373990178,
0.4710144401,
-0.114767842,
0.0423020385,
-0.2318074256,
-0.1314212084,
0.1342490762,
0.1773546934,
0.5618005991,
-0.1913484633,
-0.4141945243,
0.2526678741,
-0.5342703462,
0.0010655858,
0.1967068017,
0.3225839138,
-0.1696946621,
0.0354947746,
0.000475727,
0.1084767282,
0.0281693041,
0.0804796517,
-0.2693051994,
0.2859299481,
-0.1196610928,
-0.0974229053,
0.3719028533,
-0.3562031388,
0.1796879768,
-0.0228086002,
0.1048487872,
-0.1313495934,
0.1455953121,
-0.2708336711,
-0.1464377642,
0.4110411406,
-0.1056435928,
0.1318190992,
0.0854268521,
0.0459014922,
-0.1711771786,
0.1168937087,
-0.0236166641,
-0.3991502821,
0.0757413805,
0.2404703498,
-0.0782734081,
-0.334649235,
0.1967339069,
-0.2113053352,
-0.0441894345,
0.0090285391,
-0.1316438019,
-0.2747363448,
-0.048886966,
-0.1960805207,
0.3570637703,
0.6024298668,
-0.4387532175,
0.0300038308,
-0.177068457,
-0.2216211706,
0.1865837127,
0.2859837413,
-0.3314291239,
0.286573112,
-0.0801034197,
-0.2004276663,
0.4411746264,
-0.4087320566,
-0.5403162241,
0.2019561082,
-0.0457450747,
0.0747407675,
-0.0577666163,
0.053031534,
0.0841368139,
0.0774073303,
0.0953816101,
0.4915383458,
-0.1939901561,
-0.0277161412,
-0.1510462165,
-0.329621613,
0.1893858463,
0.3296566606,
0.4307679832,
0.1475800127,
-0.0082083084,
0.1020928919,
0.1281471103,
0.0709251761,
-0.0517406985,
0.1613205522,
0.321952194,
-0.0353382751,
-0.1970411092,
-0.0764015019,
-0.3915077746,
0.1054193601,
0.1194402128,
0.1985473782,
-0.0941805542,
-0.0577524602,
-0.4808585346,
-0.1143847555,
-0.2268012166,
0.0408289582,
0.2129353285,
0.2092738897,
0.1277355552,
0.0437873974,
-0.2601551414,
0.3888754845,
-0.0502965972,
0.2067392319,
-0.1509431005,
0.4017491937,
-0.2926220894,
-0.0586010069,
0.0658872724,
0.0477816388,
0.2527953386,
-0.1254136711,
-0.106238395,
0.1132923067,
0.0106228627,
-0.1269105673,
-0.064255923,
-0.0739661157,
0.0886370242,
-0.1603419483,
0.0321265012,
0.3180969059,
0.07946679,
0.036275655,
-0.0129769668,
0.2884828448,
0.1633597463,
-0.042649664,
0.1151297316,
0.1497042775,
0.2333552688,
-0.205404222,
0.0016973391,
-0.074169144,
0.2501130402,
-0.0294038001,
0.3837202191,
-0.11675933,
-0.3227630556,
-0.2946906686,
0.20184955,
-0.2236116827,
-0.0194852501,
0.0601011477,
-0.1977684051,
0.1045863777,
-0.2133278102,
0.3237719536,
0.4441052079,
0.0796770006,
0.0288692117,
0.1061182469,
-0.2178814113,
-0.106099084,
0.1595466137,
0.228220284,
0.1528196186,
0.1916667372,
-0.0428629033,
0.2319726646,
-0.2976654768,
-0.4345206618,
0.2509982586,
0.4884729981,
-0.3115290999,
-0.0291258916,
-0.3028717339,
-0.1064915583,
-0.162215203,
-0.4730816185,
-0.0811020508,
-0.2360573113,
-0.1359014958,
0.2614665926,
0.0638849139,
0.0723204166,
-0.3064316809,
-0.1044545472,
0.1325639188,
-0.3229352832,
-0.0856677964,
0.0551764183,
-0.039636746,
0.1476237178,
0.399528116,
-0.0969785228,
0.3422372043,
-0.0154317208,
-0.1305360347,
-0.2630586624,
-0.1927981973,
-0.0004327577,
0.0221681893,
0.2420885712,
0.1672897637,
0.430962503,
0.0226662308,
-0.1936051548,
0.1404918581,
0.0584449768,
-0.0268688165,
0.2278823853,
-0.2574728131,
-0.1057041511,
-0.0101709291,
-0.486012131,
-0.5390892029,
-0.3269206583,
-0.1599414647,
-0.048290208,
0.1959891766,
0.4237081409,
0.1160523891,
0.1385358572,
-0.1566383094,
0.0500072092,
-0.1222570464,
-0.1248524413,
0.4896660149,
-0.3741425276,
-0.3817527294,
0.1049953476,
-0.1745425761,
0.2857011557,
-0.0893124789,
-0.4778814316,
-0.2060611248,
-0.1840451956,
-0.077938512,
-0.1294919997,
-0.2238218784,
0.1238591596,
-0.053183496,
-0.0448056869,
0.1214572489,
-0.1170100272,
-0.0215034112,
0.1581936181,
0.0776544139,
-0.1886181533,
0.5733030438,
0.0269380063,
0.6518711448,
0.2029564381,
-0.2608669698,
0.3176006079,
-0.0788139254,
0.2220961303,
-0.0406566858,
-0.4731611609,
-0.0460524783,
0.2134991735,
0.0348071828,
-0.0596524701,
-0.225663662,
-0.3095943928,
-0.2722096443,
-0.1301363409,
-0.3081516325,
-0.2545177341,
0.0712787658,
0.1031406596,
0.2053648233,
0.0995044857,
0.191416055,
0.0591030419,
-0.168102324,
-0.0150369406,
0.4313993156,
0.0771582797,
0.0633861274,
0.1295621991,
-0.0592791252,
-0.3305476606,
0.0920392051,
-0.092884779,
0.3071430624,
-0.0619966127,
0.1866851449,
-0.0089114942,
-0.0765375942,
0.2313295752,
0.0687431321,
0.1700017154,
0.2777776718,
-0.1218905523,
-0.3610596061,
-0.2361999154,
-0.3534474373,
0.033786796,
0.2101771981,
0.1839333773,
-0.3156817257,
-0.0661930516,
0.6153851748,
0.1403868943,
-0.0556862839,
-0.3950103819,
-0.2080631852,
-0.3233415782,
-0.4916277826,
0.0996388048,
-0.1292095184,
0.244627133,
0.0665888712,
-0.1874728501,
-0.0348469913,
0.0217929706,
0.1887641847,
0.000460282,
0.1229711175,
0.0819307119,
0.3935821652,
0.1386473477,
-0.0997417197,
0.4361156523,
0.4650557935,
0.0479853414,
-0.4144466519,
-0.088219665,
0.1417159736,
-0.1368326843,
0.1666585803,
-0.2181943953,
-0.273738116,
0.2523176074,
0.2460315377,
0.1622438431,
0.1378746927,
0.4610221386,
-0.2430562675,
-0.5729040504,
-0.3615539074,
0.1896253824,
-0.1797267497,
0.1413583755,
0.1366219819,
-0.2497363389,
0.0172260441,
0.010419149,
-0.0525607206,
0.7789853215,
0.1548535526,
0.0441101938,
0.4680347741,
-0.003756389,
0.3014906049,
-0.0559012964,
0.0838303566,
-0.3072823286,
-0.2321267873,
-0.1228300333,
-0.2282547355,
0.1536597908,
0.2682595849,
-0.214591831,
0.3666178584,
-0.0568441525,
0.1451286077,
0.0025311019,
0.3421611786,
-0.0584323406,
0.0655457824,
-0.0626574159,
0.2040623128,
-0.1444291472,
0.4097228348,
-0.135684818,
-0.149005115,
-0.0768996775,
-0.2596900463,
-0.2632802725,
0.1581945419,
-0.3894183934,
0.3009176552,
0.0940063819,
-0.0541631058,
-0.0775872022,
-0.0720011368,
0.0379507057,
0.0387827605,
-0.1752783805,
0.084496215,
-0.1288580298,
-0.2365465313,
-0.0595174618,
-0.1094144583,
0.4144063294,
-0.2647610009,
-0.2428982854,
0.0964699686,
0.0492815673,
-0.2107218951,
0.1066629142,
0.0112679098,
0.2041608393,
-0.3407523632,
-0.251809895,
-0.0327802002,
-0.1775389016,
-0.1255305409,
0.1862043142,
0.0360449143,
-0.0364981964,
0.2830500603,
-0.0620822608,
-0.1947599798,
-0.150698185,
0.3512087762,
-0.1067586318,
-0.1233871132,
0.4347912967,
0.0720543563,
-0.3199331462,
-0.292049706,
0.0793826878,
-0.0465264432,
-0.4147836268,
0.0896517932,
0.0486421175,
0.340302825,
0.0655380487,
0.1039592326,
0.1910347342,
0.0446519181,
-0.0263225734,
-0.5710039735,
-0.2213810682,
-0.0354620889,
0.0354413539,
0.2289004475,
-0.0949722752,
0.3262061775,
0.2034397125,
-0.0655393377,
-0.3433676362,
0.1364939511,
-0.0954210609,
-0.0452933125,
0.1359442323,
-0.1490375847,
0.4430608451,
0.1009040773,
0.1978887022,
0.0278640129,
-0.1176837608,
-0.2749329805,
-0.1282681525,
0.1190887243,
0.1679852009,
-0.1261830032,
0.0420026034,
-0.1996615231,
-0.3425240815,
0.1667081118,
0.0233253986,
0.1777889282,
-0.0187484547,
0.0477434061,
0.1527055204,
0.0576968975,
-0.152434051,
0.0197508335,
-0.0933410823,
0.3424441814,
0.220188126,
0.2526729405,
0.1092483625,
-0.0283041149,
-0.435336113,
-0.0889778882,
0.0215207562,
-0.1089894846,
0.3970858455,
-0.2267070115,
-0.0844076723,
0.1168389246,
0.2218981981,
0.3427521884,
-0.2445504814,
0.0473773852,
0.3164502084,
0.2502196729,
-0.2942926884,
-0.0744642168,
0.1661238968,
0.1107306927,
0.1122420803,
0.0778136253,
-0.2546728253,
0.0717096329,
0.0237515308,
0.1373423934,
0.3921364546,
-0.0400033072,
0.125055328,
0.3877007663,
-0.1304766238,
-0.0067148302,
0.1958844513,
-0.0121205542,
0.0708715841,
0.4315573573,
-0.2908121645,
-0.0119647477,
-0.1729233861,
-0.0734785497,
0.2268630564,
-0.2598983049,
-0.0039408244,
0.2269200981,
-0.1188607737,
0.0853064805,
-0.0197696425,
0.1014456898,
-0.0209629536,
0.1261385977,
-0.4866473079,
0.3916065991,
-0.0998361558,
0.3023132086,
-0.2309095711,
-0.1329820454,
-0.229221493,
0.1452823728,
0.104304485,
-0.1691763401,
0.2273528576,
0.3998039663,
-0.2776851058,
-0.1550410092,
0.0752836466,
0.3108181357,
-0.0813329369,
-0.2761152387,
0.182285428,
0.3667351007,
-0.0344139449,
-0.0020701746,
0.447514683,
0.3937962949,
0.2824236155,
0.0474144034,
0.2371769249,
0.1083742678,
-0.1588352621,
0.0991287082,
0.1113985404,
0.2268318683,
0.3477748036,
0.320022434,
0.2253325731,
-0.2515419424,
0.0480179116,
-0.0931240469,
-0.0826395154,
-0.2318331152,
0.5614549518,
0.0496754311,
0.0397597402,
-0.2407838851,
-0.053669814,
-0.4856573641,
-0.0348078534,
0.3326093853,
0.1133721247,
0.0982407555,
-0.1042845771,
0.0643890724,
-0.0975301713,
0.3120364547,
0.3321331739,
0.2571237683,
-0.620179534,
0.0042887479,
-0.6339923739,
0.1701639593,
-0.1985664964,
0.0743851364,
-0.0166367572,
0.0412025824,
-0.2311746031,
0.3115764856,
0.2193794847,
0.0395451263,
0.0116455778,
0.2519505024,
-0.1994520426,
-0.0294274203,
0.1661609411,
-0.1432823539,
0.0830326602,
-0.4240464568,
0.0994043872,
-0.4774453044,
0.0173683986,
-0.044377856,
-0.3066774607,
-0.0353299081,
0.2529804111,
0.4154711068,
0.0541492626,
0.7115378976,
-0.0803385973,
-0.217979759,
-0.2073080838,
-0.0156713165,
-0.2390040457,
0.155191958,
0.1466775239,
0.3737409115,
-0.0241128989,
-0.1898599565,
-0.417525053,
0.3508702219,
-0.1077161133,
-0.176521033,
-0.2167673558,
-0.0179203786,
-0.1924645007,
0.2424507439,
0.050991714,
0.0850013793,
-0.0730700493,
0.1792783439,
-0.3576472104,
-0.4977720678,
0.608987093,
-0.2351762503,
-0.210812062,
-0.2193453461,
0.1239550859,
-0.1172367558,
0.1133626252,
-0.497730732,
0.3211051524,
0.3238474429,
-0.0129206069,
-0.1095672846,
0.2009018809,
0.2233953774,
0.2048543394,
0.0640876293,
0.3913772106,
0.1503722668,
-0.3911637366,
-0.0575920455,
-0.2036331147
] |
https://github.com/huggingface/datasets/issues/864 | Unable to download cnn_dailymail dataset | No, It's working fine now. Very strange. Here are my python and request versions
requests 2.24.0
Python 3.8.2 | ### Script to reproduce the error
```
from datasets import load_dataset
train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
```
### Error
```
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-8-47c39c228935> in <module>()
1 from datasets import load_dataset
2
----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
5 frames
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
609 download_config=download_config,
610 download_mode=download_mode,
--> 611 ignore_verifications=ignore_verifications,
612 )
613
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
469 if not downloaded_from_gcs:
470 self._download_and_prepare(
--> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
472 )
473 # Sync info
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
524 split_dict = SplitDict(dataset_name=self.name)
525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
527
528 # Checksums verification
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager)
252 def _split_generators(self, dl_manager):
253 dl_paths = dl_manager.download_and_extract(_DL_URLS)
--> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN)
255 # Generate shared vocabulary
256
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split)
153 else:
154 logging.fatal("Unsupported split: %s", split)
--> 155 cnn = _find_files(dl_paths, "cnn", urls)
156 dm = _find_files(dl_paths, "dm", urls)
157 return cnn + dm
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
```
Thanks for any suggestions. | 18 | Unable to download cnn_dailymail dataset
### Script to reproduce the error
```
from datasets import load_dataset
train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
```
### Error
```
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-8-47c39c228935> in <module>()
1 from datasets import load_dataset
2
----> 3 train_dataset = load_dataset("cnn_dailymail", "3.0.0", split= 'train[:10%')
4 valid_dataset = load_dataset("cnn_dailymail","3.0.0", split="validation[:5%]")
5 frames
/usr/local/lib/python3.6/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
609 download_config=download_config,
610 download_mode=download_mode,
--> 611 ignore_verifications=ignore_verifications,
612 )
613
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
469 if not downloaded_from_gcs:
470 self._download_and_prepare(
--> 471 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
472 )
473 # Sync info
/usr/local/lib/python3.6/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
524 split_dict = SplitDict(dataset_name=self.name)
525 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 526 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
527
528 # Checksums verification
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _split_generators(self, dl_manager)
252 def _split_generators(self, dl_manager):
253 dl_paths = dl_manager.download_and_extract(_DL_URLS)
--> 254 train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN)
255 # Generate shared vocabulary
256
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _subset_filenames(dl_paths, split)
153 else:
154 logging.fatal("Unsupported split: %s", split)
--> 155 cnn = _find_files(dl_paths, "cnn", urls)
156 dm = _find_files(dl_paths, "dm", urls)
157 return cnn + dm
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
```
Thanks for any suggestions.
No, It's working fine now. Very strange. Here are my python and request versions
requests 2.24.0
Python 3.8.2 | [
-0.3053481579,
0.2343732417,
-0.0792270601,
0.1706799865,
0.3605654836,
0.1738088131,
0.5607903004,
0.2436558455,
-0.1719248593,
0.0751595497,
-0.1179391965,
0.0767754093,
-0.2897084355,
-0.0377529673,
-0.0130567905,
-0.0291593969,
-0.2127256393,
0.1067626178,
-0.1973430663,
0.0291639715,
-0.1067140549,
0.0961274952,
-0.1522006392,
-0.0697496831,
-0.2929645181,
-0.1320363581,
0.0363869518,
0.1792992353,
-0.3712781668,
-0.3521040976,
0.3593554497,
-0.0825211853,
0.187348336,
0.4354529679,
-0.0001112958,
0.2995791137,
0.3638945222,
-0.0500411168,
-0.4619032741,
-0.473637253,
-0.1796992421,
-0.135131672,
0.0417743251,
-0.2966792583,
-0.00175713,
0.0122684464,
-0.0355194584,
0.1481756568,
0.3508040905,
0.6557958722,
0.2708095312,
0.4034879208,
0.3544585109,
-0.1669904441,
-0.2214082628,
0.159442991,
-0.0742192194,
0.5186956525,
-0.4013257027,
0.10327667,
0.2056572735,
0.1207840592,
-0.1278408319,
0.1728734672,
0.0507546738,
0.0189498141,
0.1369117945,
-0.4564378858,
0.1248678416,
0.2598637342,
0.4185574949,
-0.2014637887,
-0.2431452274,
0.1196372658,
0.1434075087,
-0.2662437558,
0.1472919583,
0.3098777533,
-0.1643136889,
0.0582005642,
-0.2776975632,
0.0111332573,
-0.2915739119,
0.4140601754,
-0.2303674817,
0.1816992611,
0.0403024033,
0.0740702301,
0.2228644937,
-0.1520417184,
0.4015417099,
-0.2636483312,
0.2471813262,
0.0726071,
-0.0523366667,
-0.136785388,
0.0545635968,
-0.2483980507,
0.0137200579,
0.0134285856,
-0.1899163425,
-0.2480670959,
0.003448952,
0.072521776,
-0.0031767152,
0.0848952308,
-0.237814635,
0.6527374983,
0.1373990178,
0.4710144401,
-0.114767842,
0.0423020385,
-0.2318074256,
-0.1314212084,
0.1342490762,
0.1773546934,
0.5618005991,
-0.1913484633,
-0.4141945243,
0.2526678741,
-0.5342703462,
0.0010655858,
0.1967068017,
0.3225839138,
-0.1696946621,
0.0354947746,
0.000475727,
0.1084767282,
0.0281693041,
0.0804796517,
-0.2693051994,
0.2859299481,
-0.1196610928,
-0.0974229053,
0.3719028533,
-0.3562031388,
0.1796879768,
-0.0228086002,
0.1048487872,
-0.1313495934,
0.1455953121,
-0.2708336711,
-0.1464377642,
0.4110411406,
-0.1056435928,
0.1318190992,
0.0854268521,
0.0459014922,
-0.1711771786,
0.1168937087,
-0.0236166641,
-0.3991502821,
0.0757413805,
0.2404703498,
-0.0782734081,
-0.334649235,
0.1967339069,
-0.2113053352,
-0.0441894345,
0.0090285391,
-0.1316438019,
-0.2747363448,
-0.048886966,
-0.1960805207,
0.3570637703,
0.6024298668,
-0.4387532175,
0.0300038308,
-0.177068457,
-0.2216211706,
0.1865837127,
0.2859837413,
-0.3314291239,
0.286573112,
-0.0801034197,
-0.2004276663,
0.4411746264,
-0.4087320566,
-0.5403162241,
0.2019561082,
-0.0457450747,
0.0747407675,
-0.0577666163,
0.053031534,
0.0841368139,
0.0774073303,
0.0953816101,
0.4915383458,
-0.1939901561,
-0.0277161412,
-0.1510462165,
-0.329621613,
0.1893858463,
0.3296566606,
0.4307679832,
0.1475800127,
-0.0082083084,
0.1020928919,
0.1281471103,
0.0709251761,
-0.0517406985,
0.1613205522,
0.321952194,
-0.0353382751,
-0.1970411092,
-0.0764015019,
-0.3915077746,
0.1054193601,
0.1194402128,
0.1985473782,
-0.0941805542,
-0.0577524602,
-0.4808585346,
-0.1143847555,
-0.2268012166,
0.0408289582,
0.2129353285,
0.2092738897,
0.1277355552,
0.0437873974,
-0.2601551414,
0.3888754845,
-0.0502965972,
0.2067392319,
-0.1509431005,
0.4017491937,
-0.2926220894,
-0.0586010069,
0.0658872724,
0.0477816388,
0.2527953386,
-0.1254136711,
-0.106238395,
0.1132923067,
0.0106228627,
-0.1269105673,
-0.064255923,
-0.0739661157,
0.0886370242,
-0.1603419483,
0.0321265012,
0.3180969059,
0.07946679,
0.036275655,
-0.0129769668,
0.2884828448,
0.1633597463,
-0.042649664,
0.1151297316,
0.1497042775,
0.2333552688,
-0.205404222,
0.0016973391,
-0.074169144,
0.2501130402,
-0.0294038001,
0.3837202191,
-0.11675933,
-0.3227630556,
-0.2946906686,
0.20184955,
-0.2236116827,
-0.0194852501,
0.0601011477,
-0.1977684051,
0.1045863777,
-0.2133278102,
0.3237719536,
0.4441052079,
0.0796770006,
0.0288692117,
0.1061182469,
-0.2178814113,
-0.106099084,
0.1595466137,
0.228220284,
0.1528196186,
0.1916667372,
-0.0428629033,
0.2319726646,
-0.2976654768,
-0.4345206618,
0.2509982586,
0.4884729981,
-0.3115290999,
-0.0291258916,
-0.3028717339,
-0.1064915583,
-0.162215203,
-0.4730816185,
-0.0811020508,
-0.2360573113,
-0.1359014958,
0.2614665926,
0.0638849139,
0.0723204166,
-0.3064316809,
-0.1044545472,
0.1325639188,
-0.3229352832,
-0.0856677964,
0.0551764183,
-0.039636746,
0.1476237178,
0.399528116,
-0.0969785228,
0.3422372043,
-0.0154317208,
-0.1305360347,
-0.2630586624,
-0.1927981973,
-0.0004327577,
0.0221681893,
0.2420885712,
0.1672897637,
0.430962503,
0.0226662308,
-0.1936051548,
0.1404918581,
0.0584449768,
-0.0268688165,
0.2278823853,
-0.2574728131,
-0.1057041511,
-0.0101709291,
-0.486012131,
-0.5390892029,
-0.3269206583,
-0.1599414647,
-0.048290208,
0.1959891766,
0.4237081409,
0.1160523891,
0.1385358572,
-0.1566383094,
0.0500072092,
-0.1222570464,
-0.1248524413,
0.4896660149,
-0.3741425276,
-0.3817527294,
0.1049953476,
-0.1745425761,
0.2857011557,
-0.0893124789,
-0.4778814316,
-0.2060611248,
-0.1840451956,
-0.077938512,
-0.1294919997,
-0.2238218784,
0.1238591596,
-0.053183496,
-0.0448056869,
0.1214572489,
-0.1170100272,
-0.0215034112,
0.1581936181,
0.0776544139,
-0.1886181533,
0.5733030438,
0.0269380063,
0.6518711448,
0.2029564381,
-0.2608669698,
0.3176006079,
-0.0788139254,
0.2220961303,
-0.0406566858,
-0.4731611609,
-0.0460524783,
0.2134991735,
0.0348071828,
-0.0596524701,
-0.225663662,
-0.3095943928,
-0.2722096443,
-0.1301363409,
-0.3081516325,
-0.2545177341,
0.0712787658,
0.1031406596,
0.2053648233,
0.0995044857,
0.191416055,
0.0591030419,
-0.168102324,
-0.0150369406,
0.4313993156,
0.0771582797,
0.0633861274,
0.1295621991,
-0.0592791252,
-0.3305476606,
0.0920392051,
-0.092884779,
0.3071430624,
-0.0619966127,
0.1866851449,
-0.0089114942,
-0.0765375942,
0.2313295752,
0.0687431321,
0.1700017154,
0.2777776718,
-0.1218905523,
-0.3610596061,
-0.2361999154,
-0.3534474373,
0.033786796,
0.2101771981,
0.1839333773,
-0.3156817257,
-0.0661930516,
0.6153851748,
0.1403868943,
-0.0556862839,
-0.3950103819,
-0.2080631852,
-0.3233415782,
-0.4916277826,
0.0996388048,
-0.1292095184,
0.244627133,
0.0665888712,
-0.1874728501,
-0.0348469913,
0.0217929706,
0.1887641847,
0.000460282,
0.1229711175,
0.0819307119,
0.3935821652,
0.1386473477,
-0.0997417197,
0.4361156523,
0.4650557935,
0.0479853414,
-0.4144466519,
-0.088219665,
0.1417159736,
-0.1368326843,
0.1666585803,
-0.2181943953,
-0.273738116,
0.2523176074,
0.2460315377,
0.1622438431,
0.1378746927,
0.4610221386,
-0.2430562675,
-0.5729040504,
-0.3615539074,
0.1896253824,
-0.1797267497,
0.1413583755,
0.1366219819,
-0.2497363389,
0.0172260441,
0.010419149,
-0.0525607206,
0.7789853215,
0.1548535526,
0.0441101938,
0.4680347741,
-0.003756389,
0.3014906049,
-0.0559012964,
0.0838303566,
-0.3072823286,
-0.2321267873,
-0.1228300333,
-0.2282547355,
0.1536597908,
0.2682595849,
-0.214591831,
0.3666178584,
-0.0568441525,
0.1451286077,
0.0025311019,
0.3421611786,
-0.0584323406,
0.0655457824,
-0.0626574159,
0.2040623128,
-0.1444291472,
0.4097228348,
-0.135684818,
-0.149005115,
-0.0768996775,
-0.2596900463,
-0.2632802725,
0.1581945419,
-0.3894183934,
0.3009176552,
0.0940063819,
-0.0541631058,
-0.0775872022,
-0.0720011368,
0.0379507057,
0.0387827605,
-0.1752783805,
0.084496215,
-0.1288580298,
-0.2365465313,
-0.0595174618,
-0.1094144583,
0.4144063294,
-0.2647610009,
-0.2428982854,
0.0964699686,
0.0492815673,
-0.2107218951,
0.1066629142,
0.0112679098,
0.2041608393,
-0.3407523632,
-0.251809895,
-0.0327802002,
-0.1775389016,
-0.1255305409,
0.1862043142,
0.0360449143,
-0.0364981964,
0.2830500603,
-0.0620822608,
-0.1947599798,
-0.150698185,
0.3512087762,
-0.1067586318,
-0.1233871132,
0.4347912967,
0.0720543563,
-0.3199331462,
-0.292049706,
0.0793826878,
-0.0465264432,
-0.4147836268,
0.0896517932,
0.0486421175,
0.340302825,
0.0655380487,
0.1039592326,
0.1910347342,
0.0446519181,
-0.0263225734,
-0.5710039735,
-0.2213810682,
-0.0354620889,
0.0354413539,
0.2289004475,
-0.0949722752,
0.3262061775,
0.2034397125,
-0.0655393377,
-0.3433676362,
0.1364939511,
-0.0954210609,
-0.0452933125,
0.1359442323,
-0.1490375847,
0.4430608451,
0.1009040773,
0.1978887022,
0.0278640129,
-0.1176837608,
-0.2749329805,
-0.1282681525,
0.1190887243,
0.1679852009,
-0.1261830032,
0.0420026034,
-0.1996615231,
-0.3425240815,
0.1667081118,
0.0233253986,
0.1777889282,
-0.0187484547,
0.0477434061,
0.1527055204,
0.0576968975,
-0.152434051,
0.0197508335,
-0.0933410823,
0.3424441814,
0.220188126,
0.2526729405,
0.1092483625,
-0.0283041149,
-0.435336113,
-0.0889778882,
0.0215207562,
-0.1089894846,
0.3970858455,
-0.2267070115,
-0.0844076723,
0.1168389246,
0.2218981981,
0.3427521884,
-0.2445504814,
0.0473773852,
0.3164502084,
0.2502196729,
-0.2942926884,
-0.0744642168,
0.1661238968,
0.1107306927,
0.1122420803,
0.0778136253,
-0.2546728253,
0.0717096329,
0.0237515308,
0.1373423934,
0.3921364546,
-0.0400033072,
0.125055328,
0.3877007663,
-0.1304766238,
-0.0067148302,
0.1958844513,
-0.0121205542,
0.0708715841,
0.4315573573,
-0.2908121645,
-0.0119647477,
-0.1729233861,
-0.0734785497,
0.2268630564,
-0.2598983049,
-0.0039408244,
0.2269200981,
-0.1188607737,
0.0853064805,
-0.0197696425,
0.1014456898,
-0.0209629536,
0.1261385977,
-0.4866473079,
0.3916065991,
-0.0998361558,
0.3023132086,
-0.2309095711,
-0.1329820454,
-0.229221493,
0.1452823728,
0.104304485,
-0.1691763401,
0.2273528576,
0.3998039663,
-0.2776851058,
-0.1550410092,
0.0752836466,
0.3108181357,
-0.0813329369,
-0.2761152387,
0.182285428,
0.3667351007,
-0.0344139449,
-0.0020701746,
0.447514683,
0.3937962949,
0.2824236155,
0.0474144034,
0.2371769249,
0.1083742678,
-0.1588352621,
0.0991287082,
0.1113985404,
0.2268318683,
0.3477748036,
0.320022434,
0.2253325731,
-0.2515419424,
0.0480179116,
-0.0931240469,
-0.0826395154,
-0.2318331152,
0.5614549518,
0.0496754311,
0.0397597402,
-0.2407838851,
-0.053669814,
-0.4856573641,
-0.0348078534,
0.3326093853,
0.1133721247,
0.0982407555,
-0.1042845771,
0.0643890724,
-0.0975301713,
0.3120364547,
0.3321331739,
0.2571237683,
-0.620179534,
0.0042887479,
-0.6339923739,
0.1701639593,
-0.1985664964,
0.0743851364,
-0.0166367572,
0.0412025824,
-0.2311746031,
0.3115764856,
0.2193794847,
0.0395451263,
0.0116455778,
0.2519505024,
-0.1994520426,
-0.0294274203,
0.1661609411,
-0.1432823539,
0.0830326602,
-0.4240464568,
0.0994043872,
-0.4774453044,
0.0173683986,
-0.044377856,
-0.3066774607,
-0.0353299081,
0.2529804111,
0.4154711068,
0.0541492626,
0.7115378976,
-0.0803385973,
-0.217979759,
-0.2073080838,
-0.0156713165,
-0.2390040457,
0.155191958,
0.1466775239,
0.3737409115,
-0.0241128989,
-0.1898599565,
-0.417525053,
0.3508702219,
-0.1077161133,
-0.176521033,
-0.2167673558,
-0.0179203786,
-0.1924645007,
0.2424507439,
0.050991714,
0.0850013793,
-0.0730700493,
0.1792783439,
-0.3576472104,
-0.4977720678,
0.608987093,
-0.2351762503,
-0.210812062,
-0.2193453461,
0.1239550859,
-0.1172367558,
0.1133626252,
-0.497730732,
0.3211051524,
0.3238474429,
-0.0129206069,
-0.1095672846,
0.2009018809,
0.2233953774,
0.2048543394,
0.0640876293,
0.3913772106,
0.1503722668,
-0.3911637366,
-0.0575920455,
-0.2036331147
] |
https://github.com/huggingface/datasets/issues/861 | Possible Bug: Small training/dataset file creates gigantic output | The preprocessing tokenizes the input text. Tokenization outputs `input_ids`, `attention_mask`, `token_type_ids` and `special_tokens_mask`. All those are of length`max_seq_length` because of padding. Therefore for each sample it generate 4 *`max_seq_length` integers. Currently they're all saved as int64. This is why the tokenization takes so much space.
I'm sure we can optimize that though
What do you think @sgugger ? | Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
| 58 | Possible Bug: Small training/dataset file creates gigantic output
Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
The preprocessing tokenizes the input text. Tokenization outputs `input_ids`, `attention_mask`, `token_type_ids` and `special_tokens_mask`. All those are of length`max_seq_length` because of padding. Therefore for each sample it generate 4 *`max_seq_length` integers. Currently they're all saved as int64. This is why the tokenization takes so much space.
I'm sure we can optimize that though
What do you think @sgugger ? | [
-0.1432342231,
-0.3876413703,
0.1133136824,
0.3227743506,
0.592713058,
-0.1981908977,
0.2874233723,
0.3909298778,
-0.309171319,
0.1720581055,
-0.0339280218,
-0.1797882318,
-0.3273912966,
0.1897948235,
0.1685713232,
-0.065554291,
0.1466008574,
0.1161785796,
-0.0373180695,
-0.2512278557,
0.0122298598,
0.0331543535,
0.2052442729,
0.2363264561,
-0.5892035961,
0.1162324175,
-0.0976606533,
0.0225229617,
-0.4522167146,
-0.0920313597,
0.0688617229,
-0.3121908009,
0.1892008185,
0.5060112476,
-0.000128655,
-0.0801773667,
0.1424442381,
-0.069575347,
0.0205701143,
0.2090913653,
0.2144759595,
-0.0632575676,
-0.2133891582,
0.1053179801,
0.2152384222,
-0.1143106297,
-0.070982717,
-0.0340405181,
0.366850853,
0.1840247065,
0.0656993091,
0.1355393529,
0.0148975626,
0.1036685407,
0.2429667115,
0.3396817744,
-0.037180759,
-0.0100552719,
0.2122918963,
-0.1989566684,
0.0148398392,
0.1700537354,
0.0983983502,
-0.1982289702,
0.3284580112,
0.211391449,
-0.0749180913,
-0.4113595486,
0.212072596,
0.3883528709,
-0.0406987555,
-0.3539562821,
-0.3082945943,
-0.3972704411,
0.2411761284,
-0.5351741314,
0.0933327973,
0.1817521751,
-0.1299934387,
0.0571895577,
-0.2757266462,
-0.4147566259,
-0.2204075158,
-0.0975382477,
-0.2143558711,
0.0497391485,
-0.2284281552,
-0.0945078135,
-0.0247095134,
-0.151488632,
-0.3679110706,
-0.0261251181,
-0.0072876224,
0.1992161721,
-0.0928651616,
-0.3242726922,
-0.1126560345,
-0.3281558454,
0.2717484236,
-0.4419618547,
-0.2412326336,
-0.4030223191,
-0.1295828223,
-0.418931812,
0.3993146122,
0.45951581,
-0.3760154545,
0.1799371094,
0.1299840659,
0.0144975744,
-0.1388454735,
-0.0527609996,
-0.1634540111,
0.1329074949,
0.0710658804,
-0.4047499597,
0.0313026831,
-0.2290522754,
-0.1003043503,
0.4591178298,
-0.3784504533,
0.2226309776,
0.0510771908,
0.3274952173,
-0.0760805011,
0.1053189188,
0.0109070316,
0.0513463579,
-0.4180237055,
-0.0177941136,
-0.0611290634,
0.0742195845,
-0.2151129246,
0.1869875491,
-0.0288436078,
0.1044513732,
0.0213530809,
-0.0179804377,
0.3231277168,
-0.0993400887,
0.0395011827,
-0.2510475516,
0.1726967841,
0.1685135365,
-0.2115901411,
0.4402739704,
-0.0328698009,
0.0573065877,
-0.0573337525,
0.0731934011,
-0.2025128454,
-0.4613576233,
-0.0575416386,
0.0954976007,
-0.0324032605,
0.3140634,
-0.0619525053,
0.3278665543,
0.4565286338,
0.0198548287,
0.0250289142,
-0.2284949422,
-0.226513654,
0.0091150366,
0.399568826,
0.3902237415,
-0.4846359491,
-0.1758752167,
-0.2054725587,
0.3122827411,
0.3894991875,
0.5888674855,
0.0077834949,
0.5783094168,
-0.2811873555,
0.2357925624,
-0.2949522138,
0.2546408474,
-0.4308694005,
0.3521904647,
-0.057878945,
-0.0545476079,
0.087729916,
-0.058738932,
0.1824904382,
0.020896893,
0.3823957741,
0.033304587,
-0.1517232805,
0.0272626057,
-0.3604696393,
-0.4016642869,
-0.2655519843,
0.0143587887,
0.1724793911,
-0.1573001146,
-0.3328549266,
0.5829170942,
0.129785046,
-0.1000101864,
0.1598345339,
0.3174712658,
0.0870404541,
-0.0383150727,
0.0524264835,
-0.0793228447,
-0.1097157151,
-0.0088053644,
-0.3079409003,
0.2040726691,
0.1063895971,
-0.2711720169,
-0.04571319,
0.0320105553,
0.0785086825,
-0.2064710557,
-0.0180335902,
-0.1957939267,
-0.1108465046,
0.0106167048,
-0.0733261183,
-0.105249472,
-0.0842951834,
0.072016716,
-0.4379624426,
-0.0457764901,
-0.023143189,
-0.1467811018,
-0.094544217,
0.3605755866,
-0.1125403866,
0.0251171552,
-0.0708716884,
0.1594513953,
0.1305895448,
0.067029804,
-0.0969279185,
0.2376997322,
0.282076031,
0.0817726478,
0.1023701206,
0.1841623783,
0.0422057435,
-0.0524389632,
-0.1178934798,
0.2136941254,
0.2088424712,
0.1476618201,
0.2419486791,
-0.2180727124,
-0.1030556858,
0.1184767187,
-0.0443920828,
-0.2775182128,
0.3078266978,
0.0634441078,
0.289798975,
0.1936533153,
-0.1992559582,
-0.0915346742,
0.2885442078,
-0.1878991425,
0.0241272151,
0.4312770963,
-0.3436956704,
-0.1197064817,
-0.1063294336,
-0.2838625312,
0.2830731273,
0.0803631693,
0.1233099997,
0.1092917323,
0.1420127898,
-0.0746385455,
0.2112692595,
0.2753332257,
-0.1940712184,
0.1610939205,
0.1346514374,
0.0592169762,
-0.1989699006,
0.0861476511,
-0.1964782476,
0.3385742307,
-0.4070678949,
0.3386436105,
0.0577278733,
0.0137763172,
-0.3941377699,
-0.2747451067,
-0.1809254885,
0.0264376625,
0.1926741004,
-0.2345572561,
-0.1110425591,
-0.0526634455,
0.3810819983,
0.2989986837,
0.1577855647,
0.2653697431,
0.0186495259,
0.182188049,
-0.3386880159,
-0.0294871703,
0.1913500428,
-0.1869169027,
0.1518464088,
0.0983014926,
-0.229842931,
-0.0564887635,
-0.3236948848,
0.2155353129,
-0.179917112,
0.2794819474,
0.2024962455,
0.1363644451,
-0.4355506897,
0.0946044475,
0.019780349,
-0.0027537942,
-0.1579777002,
-0.014179755,
-0.1234323159,
0.1277322769,
-0.0837781802,
-0.2641695142,
-0.0601658672,
0.0195474476,
0.3254424036,
-0.0098447576,
0.0360103175,
0.211654678,
0.1585822105,
0.1004248112,
-0.0514142849,
-0.1972809732,
-0.0010388978,
-0.1854282916,
0.2126001716,
0.0062258579,
-0.1962723583,
-0.3562270999,
-0.0531251356,
0.0255858526,
-0.156902656,
-0.5457937717,
0.0518392399,
-0.405036658,
-0.3002314568,
-0.2334705293,
0.3785062432,
0.1156735495,
-0.1077698618,
0.0849827826,
0.0984224081,
0.1134190112,
-0.0752595514,
-0.2457756251,
0.2301740646,
-0.4163118601,
0.3523647189,
-0.0792583078,
0.8787887692,
0.3173367083,
-0.009972699,
-0.0350922346,
-0.0326418541,
0.3991867602,
-0.4704627097,
-0.1981313974,
0.2872302234,
-0.0592228025,
-0.3348689079,
0.3239844739,
0.1225904375,
0.4575763643,
0.2133402526,
0.0612852573,
0.280878216,
-0.3745424747,
0.4108828306,
0.1338768601,
0.1768822819,
0.0014608577,
0.1307321191,
0.0162940547,
-0.3149764538,
0.0631070659,
-0.0538525619,
0.2175051272,
0.0166281648,
0.0180322975,
-0.3413484991,
-0.6975656152,
-0.0455709994,
0.1327458918,
0.0729151517,
0.1507204175,
-0.1237145439,
0.1899589002,
0.0468433723,
0.75788939,
0.2813237309,
-0.1726807356,
0.0055502728,
-0.068167299,
-0.1512737423,
0.0470162854,
-0.3141691387,
-0.0336297229,
0.5655534267,
0.6516923904,
-0.345150888,
-0.0619590208,
0.1178140938,
0.3456679881,
-0.1228976846,
0.0067763515,
-0.4224221706,
0.0064463913,
-0.2393388748,
0.2443731129,
0.0683156401,
0.067918241,
-0.0780400336,
-0.0828616172,
0.0585734844,
-0.0831707045,
0.3588626981,
0.2406854928,
0.3210000396,
-0.2953753769,
0.3806357682,
-0.0379778072,
0.1155730858,
0.3630251586,
0.1936299205,
-0.1670265496,
-0.2968228161,
0.2599286437,
-0.101031214,
0.3370377123,
0.5717678666,
-0.0340761393,
0.1766495854,
0.1356079429,
0.4558725953,
-0.4732830822,
0.5112180114,
0.4902334809,
0.0128840618,
-0.5175440311,
-0.2263821065,
0.3698657453,
0.0831365883,
0.1231709123,
0.165178284,
0.3095340133,
-0.3091196418,
0.2911876738,
-0.0016348734,
1.1803638935,
-0.1970947385,
0.5995182991,
0.1163961664,
0.284221828,
0.5852834582,
-0.2833365798,
0.1925700158,
-0.37457937,
-0.0622718558,
0.1641654223,
0.0342525095,
-0.1442029923,
0.0297324881,
-0.1081286147,
0.1598678529,
-0.1128821671,
0.2599046826,
-0.2608391345,
0.3257430196,
0.0613673925,
-0.3731703162,
-0.2392238379,
-0.0527995527,
0.0120127527,
0.0464321598,
-0.1548967063,
0.0905367434,
-0.0296992436,
-0.304265976,
-0.259452343,
-0.1731947511,
-0.026034506,
-0.0389915183,
0.1994983405,
-0.3362628222,
0.3272383809,
-0.0302608982,
0.2560783029,
0.6596657038,
-0.2298508584,
0.0539068133,
-0.1808631718,
0.035584718,
-0.0185967479,
-0.0847664848,
0.0327784494,
0.0537505895,
0.0708807707,
-0.0461538881,
0.0136144385,
0.2896089554,
-0.3708905578,
-0.1865696162,
0.5945248604,
-0.4801495373,
0.0140864626,
-0.1068133712,
-0.0510033667,
-0.1402090937,
0.0055738012,
0.1723660827,
-0.2537511289,
0.0729224086,
0.0433615409,
-0.3664633632,
-0.2403922081,
0.1738373637,
0.2803499401,
-0.0036442429,
0.7379026413,
0.2823022604,
-0.0719557554,
-0.0889391452,
0.4287670255,
0.5030831099,
-0.4444898069,
0.2955848277,
0.1780548096,
-0.0375428051,
-0.0009511113,
0.1282508969,
0.23796691,
-0.3074362874,
-0.1623659134,
-0.0494095907,
-0.4165503383,
0.0472996607,
-0.0431371033,
0.1312137246,
0.1436967254,
0.3483472466,
-0.0929585844,
0.1567378938,
-0.1273817718,
0.0535808578,
-0.0168820545,
0.0394774601,
-0.2568357587,
-0.0548393987,
0.141384989,
-0.1418830752,
-0.0923595354,
0.2089785933,
-0.0193026327,
-0.0735148787,
-0.2762779295,
0.1742603928,
0.018074993,
-0.0971492156,
0.1658904701,
0.1317505091,
-0.1845957637,
-0.2557170987,
0.3654862046,
0.1042429358,
0.1710369289,
-0.2266408503,
0.120852612,
-0.0682142079,
-0.1481811702,
0.0164350737,
0.2539686561,
0.3333451748,
0.0642729104,
0.170420289,
0.2489988208,
-0.0927022994,
-0.0580303781,
0.2591570616,
0.2553392351,
0.0652257502,
0.1180907562,
-0.2224535793,
-0.0711685568,
0.0400917381,
0.1688085794,
0.4920583069,
-0.2982499003,
-0.2490653545,
0.4635605216,
0.0708702803,
-0.0373558812,
-0.0772770867,
-0.1433795244,
-0.2336224914,
-0.2046158016,
0.319795996,
-0.0375349671,
0.0652029961,
-0.1347514689,
0.1632535458,
-0.1233686358,
0.1600245684,
-0.0292365514,
0.5991113782,
0.0031001866,
0.119495362,
0.2187778354,
0.1010296345,
0.2389773428,
0.6983106732,
0.1785126925,
0.1925276816,
-0.3714150786,
0.1088145375,
-0.192782402,
-0.4904713333,
-0.4612635374,
0.1844991148,
-0.144787848,
0.2918328643,
-0.1545111835,
0.5883193612,
-0.0762195438,
-0.2493215203,
-0.1546919346,
-0.010358531,
-0.2898416221,
-0.119122088,
0.1923544258,
-0.1257761419,
0.1729237288,
0.2596205473,
-0.1238784343,
0.0102523472,
-0.0933722705,
0.0794772059,
-0.103614755,
0.0493972301,
-0.1821001321,
0.183922857,
0.1136896908,
-0.2876954377,
0.2269537896,
-0.0806933045,
0.0367098451,
-0.2104424834,
0.2947308421,
0.4753095508,
0.3873189986,
-0.2240899205,
0.1699609607,
0.1405056864,
0.0864486918,
-0.0693234578,
0.163872838,
0.3289232552,
0.1206532791,
0.0141668059,
-0.0846551359,
-0.1228400618,
-0.157910943,
0.244688049,
0.1013686359,
-0.1489234716,
0.2284968048,
-0.1582210362,
-0.131934166,
-0.2944995165,
0.0270948149,
-0.700948,
0.5352681875,
0.4764957428,
0.0252956748,
0.1234513521,
-0.0915327519,
-0.0095246229,
-0.1323714852,
0.5158678293,
0.4690684676,
-0.0139556583,
-0.3866825104,
0.030835405,
-0.297765106,
0.272636801,
-0.2909189761,
0.3140702844,
-0.1308754086,
-0.0755319297,
0.0208768845,
-0.1394038051,
-0.0827985555,
-0.2343418002,
-0.6251956224,
0.1800923496,
-0.1407461464,
-0.1719837636,
-0.2263513505,
0.0863987505,
-0.060569305,
-0.2572997212,
0.44576931,
-0.0461421087,
-0.1705080569,
0.0293915905,
0.2279556543,
-0.2168889046,
0.1738213003,
0.2571804523,
0.2815205753,
0.0494487584,
0.0635209233,
-0.228960216,
-0.2911762595,
0.1392114162,
-0.0718202889,
0.1263867021,
0.2461521626,
0.2943047881,
-0.3145043254,
-0.264855504,
-0.3899097145,
0.0929285586,
0.3281576037,
-0.2242101729,
-0.244357273,
0.101516448,
-0.114902027,
0.0344199166,
0.013565328,
0.4777694941,
-0.1209276542,
-0.0470703207,
-0.3605847359,
-0.2439100444,
0.4634321034,
-0.315598011,
-0.415899992,
-0.2619009912,
0.0782349855,
0.3039796054,
-0.2966354191,
-0.7923549414,
0.101565063,
0.1591155529,
0.0253928006,
-0.4467415512,
0.1350895017,
-0.115924865,
-0.1337085068,
-0.1870728135,
0.742852807,
0.0427238047,
-0.190756768,
0.4248632789,
-0.260286212
] |
https://github.com/huggingface/datasets/issues/861 | Possible Bug: Small training/dataset file creates gigantic output | First I think we should disable padding in the dataset processing and let the data collator do it.
Then I'm wondering if you need attention_mask and token_type_ids at this point ?
Finally we can also specify the output feature types at this line https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py#L280 to use more optimized integer precisions for the output. Maybe something like:
- input_ids: uint16 or uint32
- token_type_ids: uint8 or bool
- attention_mask: bool
- special_tokens_mask: bool
Also IMO these changes are all on the `transformers` side. Maybe we should discuss on the `transformers` repo | Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
| 90 | Possible Bug: Small training/dataset file creates gigantic output
Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
First I think we should disable padding in the dataset processing and let the data collator do it.
Then I'm wondering if you need attention_mask and token_type_ids at this point ?
Finally we can also specify the output feature types at this line https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py#L280 to use more optimized integer precisions for the output. Maybe something like:
- input_ids: uint16 or uint32
- token_type_ids: uint8 or bool
- attention_mask: bool
- special_tokens_mask: bool
Also IMO these changes are all on the `transformers` side. Maybe we should discuss on the `transformers` repo | [
-0.2299052179,
-0.3667339385,
0.1243235618,
0.2771853507,
0.6030976176,
-0.1695275754,
0.3121451139,
0.3734354079,
-0.259917438,
0.1522066146,
-0.0589236431,
-0.1322189569,
-0.2868514061,
0.2487871945,
0.1246000752,
-0.1173475236,
0.101376161,
0.1097859293,
-0.0822898149,
-0.2580442429,
-0.0382414125,
-0.0007752106,
0.2506643236,
0.2208164185,
-0.5668441653,
0.0628853291,
-0.0407152101,
0.0689602494,
-0.449085772,
-0.069365032,
0.0581911579,
-0.2989963591,
0.2023253143,
0.5197606087,
-0.0001248772,
-0.0508769378,
0.1890178323,
-0.0757153332,
-0.0064584054,
0.1778804511,
0.1570466757,
-0.0995638818,
-0.1501627564,
0.0919622928,
0.2281863391,
-0.0761858374,
-0.0426348895,
-0.0638568327,
0.3386058211,
0.2224297225,
0.0923962146,
0.1321177781,
0.0814069808,
0.0844402239,
0.2095721066,
0.3288493752,
-0.0522180647,
0.0145611167,
0.2090313733,
-0.1524137259,
-0.0214014724,
0.1811143756,
0.113910459,
-0.1699478626,
0.297873944,
0.2182703316,
-0.1149851531,
-0.4121504426,
0.1769649386,
0.4269199371,
-0.0584463738,
-0.3764878213,
-0.3386248946,
-0.4122276306,
0.2050079852,
-0.5156778097,
0.0491870753,
0.1984969079,
-0.1357267052,
0.0747211799,
-0.2738564014,
-0.4056915343,
-0.2355404049,
-0.0613147281,
-0.1954497993,
0.0406943671,
-0.2122221291,
-0.086562708,
0.0166966133,
-0.114767231,
-0.3613004982,
-0.0058364719,
-0.0146023519,
0.2444561273,
-0.0902945474,
-0.3005380929,
-0.0907190889,
-0.336712122,
0.2940711081,
-0.5009041429,
-0.1907381266,
-0.3996053934,
-0.1979433,
-0.364493072,
0.3797660172,
0.4768549204,
-0.3775408268,
0.2085640132,
0.1635926217,
0.061629504,
-0.102552034,
-0.0461832806,
-0.1070986614,
0.1027834788,
0.0321721137,
-0.3345995247,
0.0909972489,
-0.2671133876,
-0.1278444529,
0.4031013846,
-0.3146030009,
0.2281463444,
0.0411384515,
0.3260875642,
-0.0870727003,
0.1651622951,
0.068694286,
0.0581926256,
-0.444034338,
-0.0256731287,
-0.0942215994,
0.0886550397,
-0.185641706,
0.1809189022,
0.0117867067,
0.064338021,
0.0366567969,
0.0092927255,
0.2664729357,
-0.0247749761,
0.0805954933,
-0.2521764338,
0.1330577284,
0.169172287,
-0.1863245666,
0.4540971518,
0.0054918183,
0.0517547503,
-0.0362075642,
0.0453831032,
-0.2103348523,
-0.4931018353,
-0.0973958001,
0.1252600104,
-0.0389681011,
0.2960729301,
-0.079436779,
0.3503782749,
0.4486835301,
0.0162845552,
0.0150421299,
-0.1929219514,
-0.2002844214,
-0.0125838369,
0.3824049234,
0.4193104506,
-0.5442306995,
-0.1573409438,
-0.2385897636,
0.2531912923,
0.3889262974,
0.6155259013,
-0.0056072921,
0.5517367721,
-0.235339433,
0.164278537,
-0.2852047682,
0.2683778405,
-0.4222471118,
0.3572130203,
-0.0525043234,
-0.0388304368,
0.1061372459,
-0.0538563654,
0.1744455695,
0.0127831139,
0.3944091201,
0.0238882191,
-0.2038843781,
0.0473411307,
-0.3813450634,
-0.4033680558,
-0.2660671473,
0.080001682,
0.1581136286,
-0.1353046447,
-0.2735053301,
0.5514498353,
0.1155519933,
-0.1455299258,
0.1355006099,
0.3262096047,
0.1113236845,
-0.0687134862,
0.019379016,
-0.0532412753,
-0.2125867903,
0.034420602,
-0.2865604758,
0.2489634156,
0.0793813169,
-0.2721633613,
-0.0573521443,
-0.019542139,
0.0813334286,
-0.2065413743,
0.0124215111,
-0.2158963382,
-0.0915922746,
0.0311715305,
-0.0479384176,
-0.0457130447,
-0.1029792875,
0.0488435179,
-0.5028927326,
-0.0453930385,
-0.008149853,
-0.1882384419,
-0.0324201137,
0.3290525973,
-0.0995148569,
0.0423071273,
-0.1000378802,
0.1843879223,
0.1257511526,
0.0820541829,
-0.0610665232,
0.230010882,
0.2973824739,
0.1116478667,
0.0934736654,
0.2055559903,
0.0610835031,
-0.051709231,
-0.1138146371,
0.226805836,
0.1831569076,
0.1398509145,
0.2676387429,
-0.2479645312,
-0.0863997564,
0.1264741123,
-0.0272573233,
-0.2584271729,
0.3118121326,
0.0601298846,
0.3070542216,
0.1462774426,
-0.2055974305,
-0.0656069145,
0.3099729419,
-0.1693715453,
0.0509303622,
0.4050944746,
-0.3019106388,
-0.0469112247,
-0.0779376477,
-0.244638145,
0.3169589937,
0.1027566195,
0.0909687057,
0.1304183006,
0.0760694891,
-0.0873516724,
0.1489493102,
0.2738139629,
-0.1550519764,
0.1503682584,
0.146355629,
-0.0123092178,
-0.2240321636,
0.0660323203,
-0.2190814763,
0.3789515495,
-0.389223516,
0.3302791417,
0.0908709094,
0.0197699219,
-0.4125826955,
-0.28434816,
-0.2321340442,
0.0014973059,
0.1670887917,
-0.1848984063,
-0.1268645376,
-0.0684737861,
0.3420518041,
0.2327811867,
0.1725664735,
0.2960614562,
-0.0134932697,
0.1116624475,
-0.330593884,
0.0019324608,
0.1982806921,
-0.1490032971,
0.1594864279,
0.1008727327,
-0.2657163739,
-0.0178067423,
-0.3181885779,
0.1642903239,
-0.1982606351,
0.2966386676,
0.2247880846,
0.1824062467,
-0.3565529287,
0.0378918238,
0.055685658,
-0.0080805942,
-0.1318657398,
-0.0301739089,
-0.1717739254,
0.1718922406,
-0.0972636491,
-0.3041327894,
-0.1180305406,
-0.0744100958,
0.3672360182,
-0.010540694,
0.0147799607,
0.203979075,
0.1889284253,
0.117123723,
0.0248137861,
-0.1679048538,
-0.012931617,
-0.1366123855,
0.2170597166,
-0.002062615,
-0.2171528488,
-0.3731192648,
-0.0392455012,
0.0291199088,
-0.1878809333,
-0.5029157996,
0.0255235955,
-0.4563640654,
-0.2719500959,
-0.2287575603,
0.4256258309,
0.0850236416,
-0.1087955311,
0.0785249993,
0.0828618929,
0.135473609,
-0.0338127688,
-0.2376570106,
0.2106585801,
-0.4013061821,
0.4056988955,
-0.1035356447,
0.8882100582,
0.3483367562,
-0.0970777422,
-0.0007673539,
0.0034504328,
0.3610593379,
-0.4532390833,
-0.2227275074,
0.2996628284,
-0.0941921026,
-0.3264155686,
0.2661914825,
0.0962235779,
0.4384835958,
0.169513151,
0.0531373024,
0.2463847399,
-0.3661046922,
0.4002577066,
0.1699475348,
0.1683428288,
-0.0398625545,
0.0964054242,
-0.0057649538,
-0.3088211119,
0.081373468,
-0.0367565937,
0.1908277124,
0.0290933028,
0.1177979708,
-0.3415734172,
-0.7532610297,
-0.0089536309,
0.1532116532,
0.0726146698,
0.145636633,
-0.1499408484,
0.1320813596,
0.0780925602,
0.7480291724,
0.2280011326,
-0.1866870373,
-0.0243704244,
-0.0419674888,
-0.1549032927,
0.046705097,
-0.3488089144,
-0.0722113848,
0.6041032076,
0.6499781609,
-0.4103455245,
-0.0432790183,
0.1184372008,
0.3192980886,
-0.1154528558,
0.0178465173,
-0.4534130692,
-0.0270148665,
-0.2239370048,
0.2107044607,
0.068758525,
0.0523455627,
-0.1507503837,
-0.0843718648,
0.0828976557,
-0.092353113,
0.3055897951,
0.3103860617,
0.2941123247,
-0.3023829162,
0.3669601083,
-0.0416956395,
0.140723601,
0.3650068343,
0.3272890449,
-0.2009647489,
-0.3620556593,
0.2555139363,
-0.1160359904,
0.3236403167,
0.5161670446,
0.0053909756,
0.1600107551,
0.1557787657,
0.4575162232,
-0.465367496,
0.5355371833,
0.4863604903,
-0.0177368671,
-0.5349082947,
-0.2112374306,
0.412199229,
0.0721786544,
0.1378426254,
0.1906242967,
0.2771165371,
-0.333434999,
0.2811174989,
0.0121667776,
1.101287365,
-0.2145234048,
0.5295488834,
0.1170040816,
0.2662312686,
0.6018487215,
-0.2290402651,
0.1664572805,
-0.3895483017,
-0.1080553979,
0.1780194938,
0.063571997,
-0.1201993376,
0.0220748782,
-0.1803472638,
0.2107704878,
-0.0939509422,
0.1979258507,
-0.2349271774,
0.4142710865,
0.0643138587,
-0.3886009455,
-0.2565072775,
-0.0330814235,
-0.0308758467,
0.0132639147,
-0.1502638608,
0.045715522,
-0.0300234705,
-0.31758371,
-0.2670262456,
-0.1795189083,
-0.1207988784,
-0.0250808001,
0.1849131286,
-0.368548125,
0.3284729123,
-0.0686186776,
0.29671821,
0.5942733884,
-0.2410957515,
0.0316295698,
-0.1764059812,
0.0335872099,
-0.0160012636,
-0.0686837584,
0.0461454317,
0.0572197065,
0.0298613161,
-0.0124808792,
-0.0008998774,
0.3430388272,
-0.3757946491,
-0.2448645979,
0.4503360391,
-0.5107021332,
0.0249905214,
-0.1506491601,
-0.0612496324,
-0.1385044456,
0.0316619389,
0.1808361113,
-0.2773386538,
0.0250358339,
0.0220239256,
-0.3429322243,
-0.2632738948,
0.1784670949,
0.2554319799,
0.0376851559,
0.6541036963,
0.3423449099,
-0.0658521578,
-0.0643090308,
0.3937627971,
0.5364494324,
-0.5111447573,
0.2903211117,
0.1936578453,
-0.050479427,
0.0055525489,
0.1892940253,
0.2149128765,
-0.2882867157,
-0.1783061922,
-0.0321889147,
-0.4261371493,
0.0959347785,
-0.0664636418,
0.1580211818,
0.1405061334,
0.3553327024,
-0.0714855939,
0.2126518041,
-0.1578662097,
0.0235699117,
-0.010569863,
0.062528193,
-0.1994101554,
-0.0494635291,
0.1744730026,
-0.1104821861,
-0.057203047,
0.2021814585,
-0.0392470844,
-0.1036098003,
-0.2420641631,
0.1450629234,
0.0128968991,
-0.0629804879,
0.1344014257,
0.1039877236,
-0.1612370908,
-0.2328154892,
0.4076183438,
0.0781858042,
0.1133870631,
-0.1191849262,
0.0942142829,
-0.0924134031,
-0.0830874443,
0.0063903313,
0.1768653542,
0.3059257269,
0.0771717727,
0.1720288396,
0.251303345,
-0.0841098577,
0.0164575353,
0.2219174653,
0.1959109604,
0.1082606167,
0.1113376766,
-0.2297803909,
-0.0865423307,
0.0216389112,
0.2315419316,
0.4675866663,
-0.2486836463,
-0.2054345757,
0.433788836,
0.1126069203,
-0.041276861,
-0.075464569,
-0.1049241424,
-0.2165247202,
-0.0906258598,
0.3524934649,
-0.0557721183,
0.0519347489,
-0.1145400256,
0.1457201689,
-0.1238847598,
0.1627276242,
-0.0535480157,
0.6416902542,
-0.0037556887,
0.0996101275,
0.2106965333,
0.0525343418,
0.2626217306,
0.6772087216,
0.1848813891,
0.150855273,
-0.4215520322,
0.0804424882,
-0.1494595706,
-0.5071745515,
-0.4876213372,
0.1039026976,
-0.1718594581,
0.3066627085,
-0.1484479755,
0.5831761956,
-0.0919554904,
-0.2220141441,
-0.1316652298,
-0.0354405902,
-0.2864599228,
-0.0965772867,
0.1660564393,
-0.1335315257,
0.1358463913,
0.2186133116,
-0.1328592002,
0.0446248353,
-0.0361387841,
0.086094074,
-0.0728240758,
0.0552885756,
-0.2137136012,
0.1781377941,
0.1519747823,
-0.2392746806,
0.2329529524,
0.0016597509,
-0.01079854,
-0.2549522519,
0.3191345632,
0.4827317297,
0.3858774602,
-0.2447327077,
0.2269487977,
0.1933882385,
0.0481455326,
-0.0690275282,
0.1335733235,
0.3105465472,
0.1057750061,
0.0640174747,
-0.0337165631,
-0.139362216,
-0.1620503217,
0.1474626809,
0.0871486664,
-0.1255704314,
0.2617918551,
-0.1687383503,
-0.1373265982,
-0.2753398418,
0.0100973956,
-0.7297047377,
0.5182317495,
0.4826720357,
-0.0365396626,
0.1011704654,
-0.0945149958,
0.0048824027,
-0.1210668087,
0.5459296703,
0.4561136365,
0.0438307114,
-0.4208499789,
0.0229865164,
-0.273393929,
0.2850804031,
-0.3483311236,
0.2294560373,
-0.1512728184,
-0.0749796107,
0.0398243852,
-0.0809344202,
-0.0586803406,
-0.2328860015,
-0.6350174546,
0.2164504081,
-0.1353763193,
-0.2508301437,
-0.3114379048,
-0.0002752058,
-0.0719832554,
-0.2702167332,
0.4331167936,
0.0030057207,
-0.1167681962,
0.0144516341,
0.2491118908,
-0.1884378791,
0.1153699458,
0.2229572535,
0.3003045917,
0.0588104352,
0.0025344118,
-0.2231752276,
-0.2673764825,
0.1154298857,
-0.1128508896,
0.1092516929,
0.2529756129,
0.3821107447,
-0.2819194496,
-0.2846089005,
-0.4440235794,
0.1605671793,
0.3504860997,
-0.1855473518,
-0.2507894635,
0.1337049156,
-0.1008123234,
-0.0683622509,
0.0340647809,
0.4943031669,
-0.082492426,
-0.0416539162,
-0.3408873081,
-0.2351451367,
0.4602755308,
-0.3019512892,
-0.3991841674,
-0.2378967702,
0.066984728,
0.2551592886,
-0.2525522113,
-0.8035458326,
0.1077649891,
0.1308982968,
-0.0097483266,
-0.4651968479,
0.1387011856,
-0.0748908073,
-0.1406368017,
-0.1919126511,
0.6681402922,
0.0604236498,
-0.1583126783,
0.4259207249,
-0.2587259412
] |
https://github.com/huggingface/datasets/issues/861 | Possible Bug: Small training/dataset file creates gigantic output | > First I think we should disable padding in the dataset processing and let the data collator do it.
No, you can't do that on TPUs as dynamic shapes will result in a very slow training. The script can however be tweaked to use the `PaddingDataCollator` with a fixed max length instead of dynamic batching.
For the other optimizations, they can be done by changing the script directly for each user's use case. Not sure we can find something that is general enough to be in transformers or the examples script. | Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
| 91 | Possible Bug: Small training/dataset file creates gigantic output
Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
> First I think we should disable padding in the dataset processing and let the data collator do it.
No, you can't do that on TPUs as dynamic shapes will result in a very slow training. The script can however be tweaked to use the `PaddingDataCollator` with a fixed max length instead of dynamic batching.
For the other optimizations, they can be done by changing the script directly for each user's use case. Not sure we can find something that is general enough to be in transformers or the examples script. | [
-0.2449231893,
-0.4394872487,
0.1173569411,
0.3189443052,
0.5710242391,
-0.1765768379,
0.2565920353,
0.4291751981,
-0.3390788138,
0.1573359072,
-0.0675729811,
-0.2011725157,
-0.3087225258,
0.1915095001,
0.1266333759,
-0.147889331,
0.06981913,
0.173173815,
-0.1252351403,
-0.2214688957,
-0.000315614,
0.0349695534,
0.242226854,
0.1785002053,
-0.5778362751,
0.0762561634,
-0.0715809539,
0.0110261412,
-0.3461945355,
-0.0348516218,
0.0994135663,
-0.2865824699,
0.2010677159,
0.5267562866,
-0.0001265749,
-0.041131109,
0.1517598331,
-0.0826687291,
0.0461403541,
0.195169121,
0.1975023597,
-0.0856818855,
-0.163620621,
0.0772057921,
0.1840523332,
-0.0889650881,
-0.0251295455,
-0.003593646,
0.3703838587,
0.2273511142,
0.0814754069,
0.221255064,
-0.0237426534,
0.0711172447,
0.2784285545,
0.288770169,
-0.0818408504,
-0.0509204119,
0.2467283309,
-0.2162992656,
-0.0755181313,
0.1138724014,
0.09705773,
-0.1382568032,
0.2942583561,
0.2418760657,
-0.0901601687,
-0.4337413907,
0.2268630415,
0.4442631602,
-0.0038121194,
-0.3651982844,
-0.3235094547,
-0.4126266241,
0.2002184689,
-0.4695297778,
0.0931717083,
0.1572834104,
-0.1708560735,
0.0714481771,
-0.3042107224,
-0.3376941383,
-0.2605010867,
-0.0602706932,
-0.1891829371,
0.0072345324,
-0.2047071159,
-0.1297650635,
0.0258302335,
-0.0898102,
-0.2813793123,
0.0086461268,
-0.0054778582,
0.232930392,
-0.0875343978,
-0.2953801751,
-0.0820566416,
-0.3209122419,
0.2784360647,
-0.4808035493,
-0.1911474913,
-0.4234408438,
-0.1217630208,
-0.4122718573,
0.4198237658,
0.4721467197,
-0.4405252337,
0.1479228735,
0.1813028157,
0.0140898973,
-0.1194204316,
-0.0408412367,
-0.1277312636,
0.0868289769,
0.0928284004,
-0.4029774368,
0.0392998904,
-0.2354255319,
-0.0472670086,
0.3343816698,
-0.2421360314,
0.1646770537,
-0.0149443448,
0.3203733861,
-0.0953854993,
0.2072835863,
0.0915630981,
0.010971833,
-0.4334855974,
0.0280757248,
-0.0920761228,
0.0704810619,
-0.2314602733,
0.1855053306,
0.0562622994,
0.077564761,
-0.0132146627,
-0.0600129664,
0.336001277,
-0.0606565066,
0.0315353572,
-0.2449945211,
0.141784668,
0.2185819745,
-0.1720945537,
0.3873316646,
-0.0372595824,
0.1247833967,
-0.067625083,
0.1088970155,
-0.1717200279,
-0.5269572735,
-0.0558347553,
0.0992494673,
-0.0632851124,
0.2949820757,
-0.1047980338,
0.3964323997,
0.4608320594,
-0.0342462026,
-0.0337654166,
-0.2015199214,
-0.2432104349,
-0.0263377391,
0.4121342897,
0.4938151836,
-0.5112317204,
-0.1573761851,
-0.2400309891,
0.2583682835,
0.3261884749,
0.6362034082,
-0.0559868999,
0.6048204899,
-0.2477883846,
0.1249574125,
-0.307009846,
0.2827397287,
-0.4184560776,
0.3741444945,
-0.0461001247,
-0.0473690964,
0.1415735334,
-0.0500429273,
0.2129476815,
-0.0024276301,
0.3216819763,
0.0487088151,
-0.2102932781,
0.1044702828,
-0.3638078868,
-0.431764394,
-0.2797991931,
0.0906479731,
0.1936857104,
-0.1161681265,
-0.3184913397,
0.6250889897,
0.0562413335,
-0.1004453972,
0.1612392366,
0.3503361642,
0.0153473625,
-0.0499010459,
0.0480902828,
-0.0607254356,
-0.2662010789,
0.0175642222,
-0.3042601943,
0.2425425649,
0.1202829406,
-0.2763026357,
-0.0203581378,
-0.0617139712,
0.141986981,
-0.1604049504,
0.0006385669,
-0.1866594851,
-0.0840156451,
-0.0231115669,
-0.0585230626,
-0.0471780747,
0.0113555789,
0.0236852765,
-0.4993106723,
-0.0146627091,
0.0077616535,
-0.1825954169,
-0.0356429555,
0.3575810194,
-0.1342762411,
0.0389886536,
-0.123283267,
0.1663411707,
0.0892147347,
0.1377290189,
-0.0722375065,
0.3133118451,
0.2954526544,
0.0509734154,
0.0841753185,
0.2468763292,
0.0595437847,
-0.0747776181,
-0.1448893696,
0.159314692,
0.1643046737,
0.1164810508,
0.2938348353,
-0.2498122007,
-0.1497597098,
0.0634250566,
-0.0376485772,
-0.2155540735,
0.2923837006,
0.0413805358,
0.3077193797,
0.2018050253,
-0.1722928286,
-0.0777099505,
0.3362636864,
-0.2002775371,
0.0266963094,
0.4785175622,
-0.2761451304,
-0.0927359015,
-0.1404370964,
-0.2291948795,
0.3158208728,
0.0973856971,
0.0808688104,
0.1155242249,
0.131707862,
-0.0829706788,
0.1752372831,
0.3304271102,
-0.1765460223,
0.1896953881,
0.1255266964,
0.1003876254,
-0.1847054511,
0.0316193104,
-0.2409151942,
0.3497815132,
-0.3809463978,
0.2891240716,
0.0935085937,
0.0197602883,
-0.4174820483,
-0.2146108598,
-0.2094574869,
0.0536930114,
0.2030451298,
-0.1845065504,
-0.1346838921,
-0.0525902137,
0.4098623693,
0.2963763177,
0.1396315992,
0.2047352791,
-0.0346685499,
0.124203153,
-0.3263190985,
-0.0076295771,
0.1608235091,
-0.1400024593,
0.1128734201,
0.0829424039,
-0.2021441311,
0.0533419773,
-0.3232712746,
0.1798681021,
-0.195316568,
0.2358200401,
0.1865125895,
0.2158545554,
-0.3509797454,
0.0346097723,
-0.0180246774,
-0.0835413933,
-0.0908869654,
0.0012705848,
-0.1416144669,
0.1193024889,
-0.0918073729,
-0.3632545471,
-0.0806460232,
-0.0925011933,
0.3361850381,
-0.0578351915,
0.0124796946,
0.1788607389,
0.2201022804,
0.1198029891,
-0.0008884482,
-0.1502716541,
0.0651716143,
-0.0914852396,
0.2097016275,
0.0222971104,
-0.2280714363,
-0.3884094357,
-0.0495055616,
0.0034501525,
-0.1507953107,
-0.5319609046,
0.0428445116,
-0.4780926406,
-0.2615788877,
-0.258143425,
0.4361440241,
0.1785499454,
-0.0556230396,
0.0651727766,
0.0948267132,
0.0855285898,
-0.0653801039,
-0.2383455336,
0.1657001376,
-0.4090307057,
0.3104106486,
-0.1278922558,
0.8918738961,
0.2818320096,
-0.0301536396,
-0.0232939497,
-0.0228210613,
0.3791371286,
-0.4229276776,
-0.1471820176,
0.268161118,
-0.0813392848,
-0.3361058831,
0.3171370029,
0.1355082691,
0.4041449428,
0.123359859,
0.0580150634,
0.2295854092,
-0.3638525605,
0.4420797229,
0.1802272499,
0.1680265516,
-0.0428524949,
0.0800588727,
0.0187664479,
-0.322729975,
0.0402568057,
-0.0541118793,
0.208404243,
0.0055816136,
0.1433930844,
-0.311424911,
-0.7348182201,
-0.0694176108,
0.1514315605,
0.0041256323,
0.1298679709,
-0.1483120918,
0.13314417,
0.0591771565,
0.7799116373,
0.244235158,
-0.1808481514,
-0.0171399936,
-0.1189843863,
-0.1900432706,
0.0765748322,
-0.36295259,
-0.1096834242,
0.5771884918,
0.6488319635,
-0.3822696805,
-0.0597699955,
0.0983515531,
0.3369760215,
-0.1064749584,
-0.002854526,
-0.4241299033,
-0.0482369177,
-0.205133006,
0.2068947703,
0.1253680289,
0.0427049212,
-0.1501821429,
-0.0668409616,
0.1060286909,
-0.0546183661,
0.282944411,
0.3270211518,
0.291377306,
-0.3086836338,
0.3943774998,
-0.0321287587,
0.0407231748,
0.3370811641,
0.2501646578,
-0.22707057,
-0.3491238654,
0.2843480408,
-0.0604726486,
0.2991707027,
0.5100066662,
-0.0280361697,
0.1072086096,
0.1304297447,
0.4783914685,
-0.4216317534,
0.4475494921,
0.4779138565,
-0.0455983952,
-0.4816351533,
-0.2087478042,
0.405030638,
0.0920075923,
0.1492943168,
0.1679890901,
0.2624353766,
-0.308388561,
0.3386712074,
-0.0276186503,
1.1405237913,
-0.2570123672,
0.6073172092,
0.1081262529,
0.2599503994,
0.6181570292,
-0.2622882426,
0.1768553853,
-0.3545400798,
-0.1569011956,
0.1905535758,
0.0545933768,
-0.1465180665,
0.0966973007,
-0.2047162205,
0.2035125494,
-0.0937370136,
0.1888564825,
-0.2285881937,
0.3655285239,
0.1225676239,
-0.4232099354,
-0.2664296031,
-0.0459932834,
-0.0511843152,
0.0639959127,
-0.1379388571,
0.0754685849,
-0.0181393176,
-0.2961392701,
-0.293002069,
-0.1532238722,
-0.0735533535,
-0.0920342579,
0.2486363202,
-0.2898264825,
0.359375298,
0.0114062577,
0.2215630561,
0.6132357121,
-0.2659589052,
0.0643405467,
-0.1660612077,
0.0261281058,
-0.0231769383,
-0.0207893401,
0.048474595,
0.0487469286,
0.0214066952,
-0.0409287438,
-0.0156558752,
0.3132305145,
-0.3416115344,
-0.2126068771,
0.4788936675,
-0.4908946753,
0.0345231257,
-0.0967921317,
-0.1015710756,
-0.1302843243,
0.0321828611,
0.1376829147,
-0.2899416685,
0.0958397537,
0.0277610663,
-0.3693690002,
-0.2427585572,
0.2325760722,
0.2811689675,
0.0055730045,
0.6309416294,
0.3198367059,
-0.0506042764,
-0.0940011442,
0.3591882586,
0.4548472166,
-0.5871473551,
0.3231057227,
0.1827058792,
-0.0776096359,
0.0416633822,
0.1862034202,
0.247187987,
-0.2686732709,
-0.179281354,
0.0041798949,
-0.4433615804,
0.0834014416,
0.0541783795,
0.163323611,
0.1913102418,
0.3379990458,
0.0115275308,
0.202888459,
-0.1476167738,
0.0184983201,
-0.0158753768,
0.0565173812,
-0.1889320016,
-0.0843074322,
0.2142505795,
-0.1100473106,
-0.0787367821,
0.2463213801,
-0.0365485735,
-0.1003579944,
-0.258512795,
0.1644328982,
0.0116169788,
-0.0932759047,
0.0746605396,
0.1224262044,
-0.1858924925,
-0.2925649285,
0.4265333414,
0.1071488485,
0.1057099029,
-0.1591504812,
0.1500166655,
-0.1114601344,
-0.1453638077,
0.0255756341,
0.2013662755,
0.2704308033,
0.0875747502,
0.1692485511,
0.2338261604,
-0.1096139029,
-0.0159218945,
0.2244001031,
0.2848624289,
0.1556621492,
0.102076456,
-0.1707964689,
-0.1029988825,
-0.0018235259,
0.204233408,
0.4692017138,
-0.2532438338,
-0.2259340435,
0.4052748978,
0.0992898419,
-0.0526458547,
-0.0993523523,
-0.134495914,
-0.1887049526,
-0.109161973,
0.3316682279,
-0.0864335895,
0.0454819947,
-0.0495164767,
0.1529031992,
-0.0607311875,
0.1428848505,
-0.0211196896,
0.6312292218,
-0.005786024,
0.0852714106,
0.1575894505,
0.0630869865,
0.2630430162,
0.6118053198,
0.2405249625,
0.1666042656,
-0.4917710423,
0.0864617452,
-0.1838753521,
-0.5297774076,
-0.4431782067,
0.126794219,
-0.1018824875,
0.306904912,
-0.1597957909,
0.5299901366,
-0.08972615,
-0.2319506109,
-0.1653165817,
-0.0583477691,
-0.2386586219,
-0.1073423624,
0.3041736484,
-0.0996708721,
0.1822089851,
0.2335487753,
-0.1155673638,
0.0317357704,
-0.0119836442,
0.1258916855,
-0.0749742687,
0.1250471175,
-0.2241404802,
0.1538321674,
0.1388192326,
-0.2075570226,
0.2348943353,
-0.0260945931,
0.0195628963,
-0.2605033517,
0.3408121169,
0.4472005665,
0.3692028224,
-0.2102327943,
0.2285747826,
0.1935967207,
0.0688950196,
-0.0467612073,
0.1994187087,
0.2860609889,
0.1885344535,
0.0434782505,
-0.0506956056,
-0.1486737579,
-0.1182264537,
0.1432493478,
0.0785997137,
-0.1758378446,
0.2510384917,
-0.1143716872,
-0.2028600872,
-0.2750481367,
0.0261970274,
-0.6956095695,
0.5344955921,
0.4925585091,
-0.0480546094,
0.1011135504,
-0.0474882498,
-0.0031144675,
-0.0562913604,
0.5935717821,
0.485270679,
0.0755333453,
-0.38505885,
0.0492332727,
-0.296546042,
0.2927154005,
-0.3322425485,
0.3192038834,
-0.0713101476,
-0.1095996723,
-0.014767617,
-0.0869965851,
-0.0745081231,
-0.2496877462,
-0.637069881,
0.1584710479,
-0.1358511299,
-0.2381403446,
-0.251537472,
0.026977649,
-0.0475629978,
-0.3367347121,
0.3873044848,
0.0477775633,
-0.1069088429,
-0.0323373303,
0.2124531865,
-0.189213559,
0.1731820256,
0.1958438307,
0.2702770829,
0.0202767756,
0.0169233978,
-0.1743380278,
-0.3229992986,
0.1347472072,
-0.0919109136,
0.0575072169,
0.2862853706,
0.3036933243,
-0.3394982219,
-0.2640424371,
-0.4243774712,
0.0537350625,
0.3286547959,
-0.1640012264,
-0.1837849915,
0.0568171963,
-0.0863060951,
-0.0345544107,
0.0583431385,
0.5320751667,
-0.1458182931,
-0.080574438,
-0.3762453198,
-0.2100283802,
0.4452861249,
-0.3400377035,
-0.4382003844,
-0.2218043506,
0.0361180641,
0.1998684108,
-0.2338715047,
-0.7568826079,
0.121113047,
0.1266616583,
0.0193044171,
-0.4797686338,
0.1573762745,
-0.1383927166,
-0.1603680998,
-0.1602215469,
0.7219980955,
0.0823603272,
-0.1749939322,
0.4088814259,
-0.2712994814
] |
https://github.com/huggingface/datasets/issues/861 | Possible Bug: Small training/dataset file creates gigantic output | Oh yes right..
Do you think that a lazy map feature on the `datasets` side could help to avoid storing padded tokenized texts then ? | Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
| 25 | Possible Bug: Small training/dataset file creates gigantic output
Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
Oh yes right..
Do you think that a lazy map feature on the `datasets` side could help to avoid storing padded tokenized texts then ? | [
-0.1584594995,
-0.3227496147,
0.1142649651,
0.2783169746,
0.6050810814,
-0.0893943682,
0.3665047586,
0.3757140338,
-0.2504404187,
0.1644322723,
-0.0610659532,
-0.0809406191,
-0.3737187386,
0.1472703218,
0.1473816782,
0.0324401557,
0.1391412169,
0.1354865432,
-0.0773728937,
-0.2471377254,
0.0194770545,
-0.0309278034,
0.2424665391,
0.1948524415,
-0.5476976633,
0.0997931585,
-0.0319240987,
-0.0307263285,
-0.4810983837,
-0.1251824349,
0.1005672216,
-0.2483760118,
0.1287238598,
0.4240875542,
-0.0001295393,
-0.0181989968,
0.1412842274,
-0.0814446583,
0.0510072932,
0.1926463246,
0.0713471845,
-0.0778829902,
-0.1597841978,
0.0811405778,
0.2066455483,
-0.1023948118,
0.0354041159,
-0.0794180408,
0.3247147501,
0.1447516978,
0.0638193861,
0.1143501997,
-0.0348904952,
0.0747109801,
0.3187433779,
0.2770515084,
-0.0755638182,
0.0055219047,
0.187038824,
-0.2282138467,
-0.0746481866,
0.2356301099,
0.0775167197,
-0.2015111744,
0.3477510512,
0.2555219233,
-0.0118269362,
-0.3913118839,
0.2150573134,
0.3343567848,
-0.0059387609,
-0.3691894114,
-0.2815506458,
-0.4759231806,
0.1507346928,
-0.3983697891,
0.0676338971,
0.1264642179,
-0.0999671966,
0.116450727,
-0.3256667256,
-0.4626317024,
-0.215194881,
-0.0421482958,
-0.1925978214,
0.0499015637,
-0.2066259384,
-0.116270557,
-0.0609061494,
-0.1237848401,
-0.2689940631,
-0.0728557035,
0.018145116,
0.247030735,
0.0355407745,
-0.3357771039,
-0.0486237481,
-0.400313437,
0.3179065287,
-0.5198045969,
-0.1670587659,
-0.3840145171,
-0.2822938561,
-0.3092982471,
0.4190124869,
0.4008264244,
-0.3786326349,
0.2864235044,
0.1474355906,
0.0143902078,
-0.0981879234,
-0.087236017,
-0.1584560126,
0.1529671103,
0.0889033452,
-0.3663333058,
0.0794739425,
-0.2428527772,
-0.1194502264,
0.4220170081,
-0.3422695696,
0.2382759303,
0.0211724676,
0.3271230757,
-0.109550193,
0.0815230757,
-0.0186991245,
0.0428271852,
-0.3623221517,
0.0696166754,
-0.0575440973,
-0.0081363488,
-0.1674925089,
0.183043927,
-0.0043519884,
0.0869905353,
0.092354618,
-0.0637380406,
0.2453140616,
-0.0269415602,
0.0749880299,
-0.2383558601,
0.219985038,
0.1590301245,
-0.2199201286,
0.4460889697,
-0.0356888995,
0.0270398408,
-0.0663379803,
0.1065041274,
-0.2845109105,
-0.5047075748,
-0.0448395088,
0.0848667771,
0.0133941919,
0.2874854803,
-0.1068298221,
0.3798871934,
0.4936858118,
-0.064711526,
0.0465580374,
-0.164207533,
-0.3196149468,
-0.0120979026,
0.3641358614,
0.381183207,
-0.4837586284,
-0.1946117729,
-0.1694867909,
0.2451890409,
0.2841443121,
0.6231353879,
-0.0581992567,
0.5801356435,
-0.2897652984,
0.2861120105,
-0.260381937,
0.2289153337,
-0.4580264986,
0.3011760414,
-0.0231810287,
-0.0101983249,
0.0377302468,
-0.1035018265,
0.2780752182,
-0.0187088344,
0.4887705147,
-0.04056767,
-0.193726182,
0.0483900681,
-0.3471645117,
-0.3909624815,
-0.2233014256,
-0.0301920474,
0.1755295545,
-0.1729312241,
-0.2678875625,
0.5790896416,
0.173510924,
-0.0645667613,
0.2249486744,
0.3249580264,
0.1268682778,
-0.0376048423,
0.0377344005,
-0.1063977405,
-0.1840967834,
0.0007458478,
-0.2624851763,
0.1973664314,
0.0605289526,
-0.336633563,
-0.0279028751,
-0.0303604566,
0.0522277243,
-0.1490051597,
-0.0096158236,
-0.2432951182,
-0.1688455939,
0.1220776737,
-0.0486762188,
-0.1587259471,
-0.0792643949,
0.0563900881,
-0.3761588931,
-0.0059619769,
0.0287980419,
-0.1611765027,
-0.0967425779,
0.3295548558,
-0.1723220348,
-0.0049660914,
-0.0797172189,
0.1359841228,
0.1103423014,
0.1088264436,
-0.1641488075,
0.3137362599,
0.3106914461,
0.094173044,
0.0482254997,
0.2186591029,
0.0120981969,
-0.0983667523,
-0.1908932328,
0.1803030372,
0.208724305,
0.0652378798,
0.175069958,
-0.2777833045,
-0.0779209882,
0.1187644005,
-0.0812470466,
-0.3290863633,
0.258592695,
0.0474441871,
0.2946567833,
0.1983215064,
-0.1492179483,
-0.0754957646,
0.3165713847,
-0.1617225409,
0.0371675454,
0.3789632916,
-0.3250768483,
-0.0943504721,
-0.0045813248,
-0.3105896711,
0.290507555,
0.0462886468,
0.1345672309,
0.0940558985,
0.1150724143,
-0.0617256872,
0.1856595576,
0.2106605321,
-0.1262028962,
0.2095307112,
0.1920820475,
-0.000926774,
-0.258969903,
0.1365608573,
-0.1572660506,
0.2898987532,
-0.3594793677,
0.2282145917,
0.0755936578,
0.0265270546,
-0.3885179758,
-0.228408128,
-0.1528205425,
0.0331250429,
0.2542633712,
-0.1518007815,
-0.1518609524,
-0.0158998277,
0.3029639423,
0.3114877343,
0.2414972037,
0.2074394077,
0.0153079256,
0.1233330369,
-0.2894178629,
-0.031588614,
0.15724805,
-0.2357090712,
0.1222895831,
0.1127195135,
-0.2993735075,
-0.0817454159,
-0.2953287363,
0.2014802694,
-0.1648562551,
0.1961042285,
0.2442872077,
0.1252319515,
-0.3874123693,
0.1048201919,
0.0128359757,
0.0034777448,
-0.1348334849,
-0.1136596277,
-0.0770546198,
0.148909077,
-0.0806216374,
-0.2752303481,
-0.0724572688,
-0.0015945211,
0.3967810273,
-0.038224794,
0.005939655,
0.1984383166,
0.2022281736,
0.0955076292,
-0.0675064325,
-0.1960125268,
-0.0069532283,
-0.2221463621,
0.2693299055,
-0.0200774465,
-0.1803516001,
-0.3509810567,
-0.0367721654,
-0.0391582809,
-0.1439628005,
-0.549843967,
0.1042805463,
-0.3475675881,
-0.2124299109,
-0.1869566739,
0.3236689568,
0.1621255875,
-0.0278234407,
0.0954014063,
0.0770548135,
0.0741138607,
-0.0460777692,
-0.1530026346,
0.2259286642,
-0.3670664132,
0.3084628284,
-0.0015538335,
0.8413872719,
0.2584567666,
0.0591783077,
0.0175117292,
-0.0364136584,
0.4315398932,
-0.421605885,
-0.1953715086,
0.2533491552,
-0.1266725957,
-0.38544631,
0.3003962636,
0.1515319943,
0.3678120971,
0.2488994002,
0.0220232084,
0.3477155268,
-0.3686494827,
0.4326387346,
0.008607571,
0.1201053411,
0.0394561142,
0.1065801531,
-0.0276055597,
-0.3450226188,
0.1210095137,
-0.1188099235,
0.2471742779,
-0.0138743948,
0.0747000203,
-0.2114317119,
-0.8055397272,
-0.0793855414,
0.1710188389,
0.0181141756,
0.1024310142,
-0.070235379,
0.1438986659,
0.1094578728,
0.7522367835,
0.1485320628,
-0.1466355175,
-0.0731036887,
-0.0320917405,
-0.1479643732,
-0.0073320642,
-0.3175017238,
-0.0080262013,
0.5544766784,
0.8051598072,
-0.3837486207,
-0.0145989433,
0.0127893984,
0.2712609768,
-0.1630629152,
0.046595294,
-0.3782887757,
0.0334828943,
-0.1805643737,
0.1646659374,
0.1506462991,
0.0484342761,
-0.0364958085,
-0.1383146644,
0.0361426994,
-0.0462693982,
0.3272377253,
0.1801158488,
0.3079213202,
-0.2690182328,
0.3792641163,
0.0227280557,
0.1455385089,
0.36325109,
0.2782918513,
-0.26567927,
-0.3319883049,
0.2026925236,
-0.1705929935,
0.3661513329,
0.5202795863,
-0.0199190304,
0.1646699309,
0.1409872174,
0.3879474401,
-0.5066106319,
0.539773345,
0.5001418591,
-0.0155579858,
-0.5173016191,
-0.2605223656,
0.324210763,
0.089011237,
0.1086987406,
0.2183578908,
0.1754109263,
-0.4198827147,
0.3800751567,
0.0582390875,
1.0927495956,
-0.2820733488,
0.6457763314,
0.0856932551,
0.3474426866,
0.6195511818,
-0.3919833004,
0.1663231701,
-0.3371163309,
-0.1650782973,
0.123965174,
0.0879603773,
-0.1708422005,
0.0517655388,
-0.1440126449,
0.1905901879,
-0.0315778852,
0.3619605601,
-0.2650907338,
0.2576600313,
0.1245743111,
-0.3357918262,
-0.2187576592,
-0.0675895065,
0.0815508813,
0.0012556743,
-0.1550394893,
0.0662307441,
0.0139889047,
-0.3324241042,
-0.2732448578,
-0.1858696938,
-0.1023102701,
0.0334133729,
0.2606477737,
-0.2193474472,
0.2665236592,
0.0149168884,
0.1957243979,
0.6118083,
-0.2747983932,
-0.0073972037,
-0.1416102052,
0.0322248898,
-0.055413615,
-0.1050670743,
0.0278457906,
0.1215406209,
0.1015197933,
0.0101791117,
-0.0517774895,
0.2496398985,
-0.4359844923,
-0.1743820608,
0.5185425282,
-0.5724602938,
-0.0609523095,
-0.1661487222,
-0.0553823709,
-0.1067351252,
0.0033898964,
0.1229847223,
-0.2376910746,
0.0719602406,
0.048156552,
-0.3586067557,
-0.1936802566,
0.3084659576,
0.191922918,
0.0500709265,
0.6962025762,
0.1818850189,
-0.0695300922,
-0.0464628674,
0.4055944383,
0.589369297,
-0.3776432276,
0.2560918331,
0.1496009082,
-0.09497834,
-0.1004096717,
0.1920969337,
0.2429114282,
-0.2599299848,
-0.1791066527,
-0.0494263619,
-0.4665799439,
0.0721071064,
0.0032247542,
0.1664883494,
0.1396557242,
0.3237327039,
-0.0666356236,
0.153444618,
-0.1248239651,
0.0931611061,
-0.0238918997,
0.1016377509,
-0.2898568511,
0.0022017381,
0.1709148735,
-0.1663370132,
-0.098527953,
0.2696663141,
0.0147393309,
-0.0643741339,
-0.2574066222,
0.1716157198,
0.0513089746,
-0.0414521135,
0.1521836668,
0.0773046017,
-0.126170516,
-0.3096643686,
0.3914380372,
0.1916747242,
0.1403505206,
-0.227447927,
0.1455269456,
-0.0863009989,
-0.1304280311,
0.0412222221,
0.1899660379,
0.3233479261,
-0.030489672,
0.1629437208,
0.1836391538,
-0.0768368989,
0.0709081218,
0.2680518627,
0.286149174,
0.0453737378,
0.1284094453,
-0.2139103562,
-0.0652391016,
0.0621734746,
0.259359479,
0.4585360885,
-0.3202506304,
-0.2236281335,
0.469455719,
0.0802865773,
-0.0413803719,
-0.1314871013,
-0.0876239389,
-0.1502094865,
-0.1225981712,
0.2824842334,
-0.0133889467,
-0.0183292925,
-0.1305376589,
0.1619991958,
-0.1548791379,
0.1399540901,
-0.0480195843,
0.5657490492,
0.0044325367,
0.0701991245,
0.2165225148,
0.0875184536,
0.2833935618,
0.6908553839,
0.2469201088,
0.1544190049,
-0.3074207306,
0.0846027434,
-0.2320079952,
-0.4808970094,
-0.3943099082,
0.2658726573,
-0.1199413389,
0.3273167908,
-0.1321467459,
0.5771369934,
-0.0481405929,
-0.2353111655,
-0.1017268747,
0.039237693,
-0.3232100308,
-0.1748597324,
0.2453924119,
-0.1198594496,
0.1695699394,
0.2694953084,
-0.1514985561,
0.0249419734,
0.0607272945,
0.0578389838,
-0.0696147531,
0.0819529667,
-0.151566267,
0.1433772743,
0.1724612713,
-0.2777452767,
0.2601986825,
-0.1849164218,
0.0236285273,
-0.2479346395,
0.3573223352,
0.4614422321,
0.4569040537,
-0.2203868628,
0.1961307228,
0.139897123,
0.0503160805,
-0.0649370924,
0.2028533518,
0.3066425323,
0.0474392883,
0.0513346083,
-0.0806985795,
-0.1091972068,
-0.0626924336,
0.2326476276,
0.0353193916,
-0.0747037381,
0.1730512828,
-0.1069741547,
-0.1755284518,
-0.1765585989,
-0.0238730609,
-0.6561953425,
0.4798912108,
0.5330015421,
-0.0657743812,
0.2312940657,
-0.0600781217,
-0.0091699865,
-0.1038946733,
0.4950032234,
0.4832198322,
-0.0837986916,
-0.4275384247,
0.0257525593,
-0.2784153819,
0.3173956275,
-0.3863584399,
0.2983146608,
-0.1307022572,
-0.0844772682,
0.0218280032,
-0.1150519773,
-0.1574867815,
-0.2555808425,
-0.653504014,
0.1622954458,
-0.1024793163,
-0.2134436369,
-0.2421801388,
0.0815434307,
-0.0284336805,
-0.311255753,
0.4596818388,
-0.035195291,
-0.1514107436,
0.0133030079,
0.3289441466,
-0.2615919113,
0.1339922547,
0.2557196915,
0.250148654,
0.0000681691,
0.0081564486,
-0.1990965158,
-0.2667863369,
0.0887245536,
-0.0846684128,
0.1275193691,
0.2306877226,
0.2665815353,
-0.3857631087,
-0.2505605817,
-0.4074323773,
0.1125188172,
0.3654770553,
-0.1307972372,
-0.2475527823,
0.1453558207,
-0.1500489414,
-0.0236986354,
-0.0205414332,
0.4520378709,
-0.1429159045,
-0.0449982956,
-0.2473852634,
-0.2518765032,
0.4671112299,
-0.3677017093,
-0.4063573778,
-0.2025920749,
0.0299035534,
0.3852642179,
-0.2789248824,
-0.8607037067,
0.1042306125,
0.2206313312,
0.0156903937,
-0.515016675,
0.0325449742,
-0.0204757061,
-0.1085936949,
-0.2627114952,
0.8137917519,
0.0751592815,
-0.1930024624,
0.432377696,
-0.3210274577
] |
https://github.com/huggingface/datasets/issues/861 | Possible Bug: Small training/dataset file creates gigantic output | I think I can do the tweak mentioned above with the data collator as short fix (but fully focused on v4 right now so that will be for later this week, beginning of next week :-) ).
If it doesn't hurt performance to tokenize on the fly, that would clearly be the long-term solution however! | Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
| 55 | Possible Bug: Small training/dataset file creates gigantic output
Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
I think I can do the tweak mentioned above with the data collator as short fix (but fully focused on v4 right now so that will be for later this week, beginning of next week :-) ).
If it doesn't hurt performance to tokenize on the fly, that would clearly be the long-term solution however! | [
-0.2022950798,
-0.2920214236,
0.1189167276,
0.2300962359,
0.6037489772,
-0.1722530723,
0.315690279,
0.3898852766,
-0.2658643425,
0.1825168431,
-0.0329227224,
-0.1477788538,
-0.3427743018,
0.2524907589,
0.1107929051,
-0.0713133663,
0.106480509,
0.1568868756,
-0.0434265547,
-0.2282031178,
0.0541991442,
0.018276738,
0.2426914871,
0.2236169279,
-0.5773251057,
0.0931171104,
-0.0897391364,
0.0289628785,
-0.4984020293,
-0.1051624566,
0.0200684443,
-0.2774219811,
0.2171357125,
0.4887030125,
-0.0001255141,
-0.0723903403,
0.1390118301,
-0.0683197454,
0.0042036548,
0.1563265026,
0.2038095593,
-0.0963018835,
-0.1436722577,
0.1250667274,
0.2383717,
-0.1081834733,
-0.0434216149,
-0.0000365898,
0.3469856679,
0.1695789397,
0.0850070417,
0.1917713583,
0.0978405327,
0.0513315499,
0.2168007344,
0.2441503853,
-0.0491973907,
0.0492715798,
0.2134053707,
-0.2436898202,
-0.0475991182,
0.1766498089,
0.1195393577,
-0.1437062025,
0.3066147268,
0.1922547817,
-0.0794912726,
-0.411546886,
0.1700010151,
0.409119606,
-0.0398112684,
-0.381420821,
-0.2852915227,
-0.3907470107,
0.2280963063,
-0.5098491311,
0.0361432508,
0.1651209593,
-0.1153216437,
0.0947939456,
-0.2568561435,
-0.391515851,
-0.2216069996,
-0.0695685446,
-0.2767575979,
0.0675146207,
-0.2188898623,
-0.0988883823,
-0.0032569696,
-0.095505476,
-0.3700411916,
0.012171451,
-0.0498170368,
0.1920447648,
-0.1057279333,
-0.3005862236,
-0.0935101658,
-0.3335509002,
0.2913609743,
-0.4924600422,
-0.2083920538,
-0.4083325863,
-0.1743305326,
-0.3648548722,
0.4070279598,
0.4913436472,
-0.4073671103,
0.1588033438,
0.1524096876,
0.0369440205,
-0.1634153277,
-0.0812351555,
-0.1596001387,
0.1207199693,
0.0161431879,
-0.3720575571,
0.063948676,
-0.2456080914,
-0.1266846955,
0.3839036226,
-0.3510906696,
0.2377410531,
0.0550513305,
0.3134865761,
-0.06506446,
0.1613831073,
0.034757182,
0.041105926,
-0.4139357209,
-0.0494075939,
-0.0716321841,
0.0595841371,
-0.1605288386,
0.1914115846,
-0.0187103674,
0.1006069258,
0.0448965132,
-0.0284892172,
0.3421206176,
-0.0739847869,
0.0721719712,
-0.2557464838,
0.1020971611,
0.1747196317,
-0.1739891469,
0.4763529003,
0.0112040248,
0.0109735355,
-0.0122267008,
0.0318183601,
-0.161182791,
-0.5222709179,
-0.0953114852,
0.1208965108,
-0.013667766,
0.2884063423,
-0.048170656,
0.3760946095,
0.3958169818,
0.0022842959,
-0.0270234086,
-0.2176161259,
-0.1882954091,
-0.0019311905,
0.4034154117,
0.3783381581,
-0.5633429885,
-0.1548841745,
-0.2199614495,
0.2848355174,
0.3699564338,
0.6364402175,
-0.0472260378,
0.5527015328,
-0.2490289211,
0.210059315,
-0.3150478303,
0.2535911202,
-0.4138022661,
0.3480506539,
-0.1281872392,
-0.0720965639,
0.0379308313,
-0.092035532,
0.2472736537,
0.0253306888,
0.4554364979,
0.0424426198,
-0.1859477758,
0.0485507473,
-0.3573646843,
-0.375462234,
-0.24175632,
0.027666226,
0.1375680566,
-0.1434084922,
-0.2986961603,
0.5591662526,
0.1224407479,
-0.1235059351,
0.1712400019,
0.3022287488,
0.1504051834,
-0.0457572453,
0.0347056352,
-0.0240933634,
-0.1081379205,
-0.0064384043,
-0.2265461385,
0.2554839849,
0.0755128562,
-0.3105171025,
-0.0878994018,
-0.0096515305,
0.1022601053,
-0.1911880821,
0.0169623643,
-0.2215738147,
-0.131076768,
0.0813738704,
-0.0826465636,
-0.121753186,
-0.1119901985,
0.0957404375,
-0.4077609181,
-0.0668911114,
-0.0375664681,
-0.1556824297,
-0.0447244011,
0.331407994,
-0.1087691635,
0.0229354165,
-0.0908816755,
0.212202549,
0.0596886314,
0.0822513103,
-0.0839939564,
0.2329188287,
0.2856229544,
0.1345305294,
0.1035177261,
0.1799340546,
0.0648084134,
-0.0836118385,
-0.0658561066,
0.2375003695,
0.231472075,
0.1127710789,
0.2546750605,
-0.2077407837,
-0.0510379523,
0.1223885268,
-0.0303191151,
-0.264942795,
0.2836705148,
0.0495791584,
0.2589972317,
0.1513908803,
-0.1905858964,
-0.0424952023,
0.251527518,
-0.1678776145,
0.0247900262,
0.3735729158,
-0.369000107,
-0.0784586817,
-0.0579492077,
-0.2319739759,
0.2978202999,
0.0852164477,
0.136276871,
0.1201528311,
0.0970114917,
-0.0916478932,
0.155472368,
0.2827510238,
-0.1316684633,
0.1620896161,
0.2225503623,
0.0028686114,
-0.2590222657,
0.0297037512,
-0.2065398991,
0.3683234751,
-0.3679234982,
0.2950263619,
0.0566737577,
0.0482112691,
-0.3758400977,
-0.2766397893,
-0.2192474902,
0.0057147816,
0.2062773108,
-0.1668456346,
-0.1179323643,
-0.0931926966,
0.3834415674,
0.2632872462,
0.1543858647,
0.3253236711,
0.0347314477,
0.0900794268,
-0.3657518625,
-0.0053994842,
0.152513355,
-0.1867824793,
0.1173911989,
0.1443032622,
-0.2773663998,
-0.0515348613,
-0.3002147973,
0.1842241585,
-0.1805004925,
0.2566882372,
0.2256780714,
0.1575405896,
-0.4216119349,
0.0344794914,
0.0324529149,
-0.0248777382,
-0.1283333153,
-0.0536396354,
-0.1409128755,
0.1573618054,
-0.0745352805,
-0.2841413021,
-0.1479461938,
-0.0517504141,
0.3619458079,
-0.0264673047,
-0.0296909921,
0.1829232872,
0.1623687744,
0.0922785401,
0.0150937214,
-0.2145964503,
0.0251057632,
-0.1410415471,
0.1920467019,
0.0134450346,
-0.1889303327,
-0.3331332803,
-0.0168804228,
0.0008047102,
-0.1568014622,
-0.5277706385,
0.0539352149,
-0.4343661368,
-0.2976070642,
-0.2196919471,
0.34762308,
0.0865403116,
-0.086069122,
0.0464069098,
0.1269994378,
0.1192759424,
-0.0778975636,
-0.2258180529,
0.2165210843,
-0.4335952401,
0.4292579889,
-0.0345522538,
0.8483142853,
0.2267304361,
-0.0550652221,
0.0104469843,
-0.0209989659,
0.3937902749,
-0.4736231863,
-0.2124662399,
0.3288610876,
-0.1232093796,
-0.3801844716,
0.2800569534,
0.1227310076,
0.4507928491,
0.1759645194,
0.0481791943,
0.2780035138,
-0.3748355508,
0.3768455088,
0.1353829354,
0.1944561452,
0.0062739626,
0.0723596364,
0.0427691862,
-0.3326545656,
0.0735129118,
-0.0231749602,
0.1662966311,
-0.0096786655,
0.0337763876,
-0.2803361118,
-0.7721147537,
-0.012238428,
0.0897058547,
0.0998132303,
0.1731175184,
-0.1408754885,
0.1640348136,
0.0309018642,
0.8085674644,
0.3027647138,
-0.19471322,
-0.0275231078,
-0.0687406063,
-0.1778627187,
0.0168135315,
-0.3545095623,
-0.0358800739,
0.5801976919,
0.6342155933,
-0.3662617803,
-0.0494976863,
0.1119949594,
0.3816511035,
-0.1101435199,
0.0391920097,
-0.3996423483,
-0.0195074379,
-0.2422988415,
0.2102528214,
0.0761090592,
0.0797605515,
-0.1154863611,
-0.0831390619,
0.1009413451,
-0.1210440248,
0.3523440361,
0.2720102966,
0.304164052,
-0.2905330062,
0.3746732473,
-0.0426877812,
0.113856703,
0.3892745972,
0.1802376956,
-0.1690207422,
-0.3310915232,
0.2556262016,
-0.067746371,
0.3350261748,
0.5346252918,
-0.0161226541,
0.2118687928,
0.0786077827,
0.4518143833,
-0.413664937,
0.5587220192,
0.4952723086,
-0.0402747914,
-0.5326893926,
-0.1620938629,
0.3384355307,
0.0738518909,
0.1286015958,
0.1966752559,
0.2628085315,
-0.3021442592,
0.3217562437,
-0.0430058651,
1.1316552162,
-0.2781014144,
0.5939574242,
0.0634622872,
0.260340631,
0.6253468394,
-0.3204676807,
0.1985355616,
-0.3777289391,
-0.1113150269,
0.161072433,
0.0844928101,
-0.1474874616,
0.0647377074,
-0.1699174345,
0.1965813339,
-0.1071449816,
0.2627726793,
-0.2470770478,
0.3641862869,
0.0357586443,
-0.3776305914,
-0.2614324987,
-0.0329855978,
0.0006423322,
0.0289847814,
-0.1743231714,
0.0873856992,
0.0621005744,
-0.2995584607,
-0.2748019397,
-0.1961099505,
-0.0826536044,
-0.0117110033,
0.205290094,
-0.3377434015,
0.2742102146,
-0.0674553588,
0.262194097,
0.6511217356,
-0.2098904848,
0.0959376991,
-0.194878757,
0.0624821223,
-0.0203918181,
-0.0850726962,
0.0024809167,
0.0770364404,
0.0503250659,
0.0032793172,
-0.0120322332,
0.2906380892,
-0.399199158,
-0.1737020314,
0.5477029085,
-0.4731485248,
0.0558953285,
-0.0999970138,
-0.0465258248,
-0.1736383736,
0.026104331,
0.1446432918,
-0.2854094505,
0.0365471654,
0.0392333753,
-0.3762050271,
-0.2354310751,
0.2242612839,
0.21781376,
0.0336709172,
0.6945819259,
0.3077147603,
-0.0296189748,
-0.0777298808,
0.3860263228,
0.5473818779,
-0.4338843226,
0.3099581897,
0.1825860441,
-0.0441235751,
0.050226517,
0.2061124891,
0.2624819577,
-0.3000702262,
-0.1796600819,
-0.0724705905,
-0.4185903966,
0.0641858727,
-0.0437605567,
0.1417155862,
0.1978528798,
0.4324564934,
-0.105850637,
0.1831013709,
-0.1512870342,
0.098466374,
-0.0487738885,
0.0988992378,
-0.2720243037,
-0.0635885894,
0.1578979939,
-0.1114622951,
-0.0566093251,
0.2550335228,
0.0044627413,
-0.1042548865,
-0.2301460207,
0.1626789272,
0.03168758,
-0.0372917987,
0.1404595822,
0.1088926345,
-0.167082876,
-0.2456861734,
0.3883177936,
0.1442985982,
0.1313140988,
-0.22012043,
0.1369384676,
-0.0715000778,
-0.0951591805,
-0.0318621323,
0.2092141062,
0.2916567624,
0.1146193445,
0.1534419656,
0.2614183128,
-0.0702034235,
-0.0123665482,
0.2207601368,
0.2243565917,
0.0791242644,
0.0622730479,
-0.182143867,
-0.1318072528,
-0.0142752305,
0.2707623839,
0.4881924987,
-0.2587161362,
-0.2257803082,
0.5012187958,
0.1117137,
-0.0246020406,
-0.0911835358,
-0.1167162955,
-0.2040235996,
-0.1240224838,
0.3177525699,
-0.0207634941,
0.0352482349,
-0.1154172271,
0.1799304038,
-0.086919345,
0.1717034876,
-0.0511527546,
0.5434492826,
-0.0404457897,
0.085174568,
0.1827306747,
0.0224991404,
0.2841391265,
0.6910941601,
0.1807806939,
0.1545216143,
-0.3504061699,
0.1210543215,
-0.1919404566,
-0.5043104887,
-0.4453708231,
0.136631459,
-0.0886423364,
0.2801237702,
-0.1445304453,
0.5805774927,
-0.1093654558,
-0.270963341,
-0.118614465,
0.0088293478,
-0.2598237395,
-0.1174586266,
0.1925292015,
-0.157617107,
0.1352837235,
0.2644313574,
-0.0990419537,
0.0462276861,
-0.0953780562,
0.0562903732,
-0.0968344584,
-0.0287599619,
-0.2080892771,
0.17802459,
0.1250551641,
-0.2428967059,
0.2051357031,
-0.071096234,
0.052544836,
-0.2004521638,
0.3062070012,
0.4847799838,
0.4154979587,
-0.238496244,
0.1954756379,
0.127556473,
0.0669913441,
-0.0642055422,
0.1136271134,
0.3247195482,
0.105321005,
0.0340533368,
-0.043357525,
-0.1434878707,
-0.1536744535,
0.2062387615,
0.0756681859,
-0.1636309326,
0.1970096827,
-0.1018453538,
-0.1498576701,
-0.2699941993,
0.0260947142,
-0.7529443502,
0.534099102,
0.4614880979,
-0.0610111989,
0.1280626655,
-0.0869825184,
0.0034484975,
-0.1110580862,
0.4745289683,
0.4845038354,
-0.0024139863,
-0.4102851748,
-0.0407221094,
-0.303380698,
0.2930364311,
-0.3688573539,
0.2744470835,
-0.1734832525,
-0.0822599679,
0.0568437763,
-0.1173161343,
-0.0912352949,
-0.1900200099,
-0.703112781,
0.1316702068,
-0.1559225768,
-0.1953700483,
-0.2384413779,
0.0313236043,
-0.0565427616,
-0.2429548651,
0.4389216304,
0.0333599336,
-0.1227194816,
-0.005575411,
0.2359010875,
-0.2267872989,
0.1096855029,
0.2416950762,
0.281845063,
0.0293617826,
0.0556323826,
-0.1980585754,
-0.2926267385,
0.0976224765,
-0.1160406917,
0.1269226223,
0.2477736175,
0.2843005061,
-0.2559837997,
-0.280993551,
-0.4314662218,
0.164049834,
0.363173306,
-0.1304230541,
-0.2610969245,
0.1225456819,
-0.1037978604,
-0.0157272071,
0.0005374476,
0.5165204406,
-0.1023201346,
-0.0567013212,
-0.3643944263,
-0.2662371695,
0.4903407991,
-0.3295807838,
-0.4211166799,
-0.2379916459,
0.0514785498,
0.3020355999,
-0.2552238703,
-0.7636178732,
0.0847051591,
0.1540554613,
0.0148218907,
-0.5005559325,
0.1322121769,
-0.0590819493,
-0.1500608623,
-0.2053281069,
0.6773770452,
0.0786699653,
-0.2040113211,
0.3991594911,
-0.251907289
] |
https://github.com/huggingface/datasets/issues/861 | Possible Bug: Small training/dataset file creates gigantic output | > Hey guys,
>
> I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
>
> I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
>
> I've used the following CMD:
> `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
It's actually because of the parameter 'preprocessing_num_worker' when using TPU.
I am also planning to have my model trained on the google TPU with a 11gb text corpus. With x8 cores enabled, each TPU core has its own dataset. When not using distributed training, the preprocessed file is about 77gb. On the opposite, if enable xla, the file produced will easily consume all my free space(more than 220gb, I think it will be, in the end, around 600gb ).
So I think that's maybe where the problem came from.
Is there any possibility that all of the cores share the same preprocess dataset?
@sgugger @RammMaschine | Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
| 273 | Possible Bug: Small training/dataset file creates gigantic output
Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
> Hey guys,
>
> I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
>
> I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
>
> I've used the following CMD:
> `python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
It's actually because of the parameter 'preprocessing_num_worker' when using TPU.
I am also planning to have my model trained on the google TPU with a 11gb text corpus. With x8 cores enabled, each TPU core has its own dataset. When not using distributed training, the preprocessed file is about 77gb. On the opposite, if enable xla, the file produced will easily consume all my free space(more than 220gb, I think it will be, in the end, around 600gb ).
So I think that's maybe where the problem came from.
Is there any possibility that all of the cores share the same preprocess dataset?
@sgugger @RammMaschine | [
-0.1276515573,
-0.4218368232,
0.1068672985,
0.294357717,
0.642757833,
-0.1283717453,
0.3398814797,
0.4012148678,
-0.2470450997,
0.1549628973,
-0.0381344892,
-0.1218298376,
-0.2987715006,
0.2704772353,
0.1444563568,
-0.0848586708,
0.0800594389,
0.1567348391,
-0.0432321429,
-0.3624184132,
0.017801106,
0.0119267125,
0.2649851739,
0.2487947047,
-0.539937377,
0.1164364144,
-0.0890407488,
0.0878881216,
-0.4778921306,
-0.0461199805,
0.0388473943,
-0.3701861203,
0.1601387262,
0.5560235977,
-0.0001261977,
-0.0579311997,
0.1979992092,
-0.1043425351,
0.0430378616,
0.1906140447,
0.0401339456,
0.0164481476,
-0.1522932947,
0.1174179912,
0.1633697152,
-0.0749804378,
-0.0505144894,
-0.0368021801,
0.3213080168,
0.236845091,
0.088009201,
0.0191160291,
0.0510081053,
0.0527157634,
0.2443509549,
0.2661501765,
-0.0326641873,
0.0410115048,
0.1123432517,
-0.0585212968,
0.0381147638,
0.1659111828,
0.1789550781,
-0.0714265555,
0.348553896,
0.2815024555,
-0.062658906,
-0.4381535351,
0.1757104993,
0.4649780393,
-0.0341457203,
-0.3490567505,
-0.3314695358,
-0.3132907152,
0.2559036613,
-0.5074105263,
0.0019551851,
0.3379586935,
-0.0914496928,
0.0786471739,
-0.263210386,
-0.4374252558,
-0.2496211231,
-0.1110474393,
-0.2281241119,
-0.0159759931,
-0.233890295,
-0.0931956992,
-0.0396675728,
-0.0589145273,
-0.4165321887,
-0.0705713928,
-0.0816848651,
0.2201212347,
-0.0319720358,
-0.2654674053,
-0.1090489998,
-0.2294505686,
0.2409883142,
-0.5617982745,
-0.0786131173,
-0.4566049874,
-0.2560960054,
-0.3459120989,
0.3546559811,
0.4483875036,
-0.4579662085,
0.1858585775,
0.1445355713,
0.0826461315,
-0.2117664665,
-0.060540434,
-0.1389767826,
0.1224850863,
0.0102627426,
-0.4655172825,
0.0591996163,
-0.2968018055,
-0.1397835612,
0.3230865598,
-0.3538082242,
0.2023715973,
0.0499949716,
0.3438809514,
-0.1023268774,
0.041925896,
0.0515128523,
0.0887674987,
-0.4091442227,
-0.0151637867,
-0.1164165363,
0.1181163788,
-0.1676014662,
0.2057825774,
-0.0578263253,
-0.0049614459,
0.0498314425,
0.0084662735,
0.2533488572,
-0.0428124703,
0.0828230083,
-0.2464296371,
0.2176023126,
0.1504777223,
-0.168331936,
0.442506671,
-0.0380498134,
0.1225012615,
-0.0019265413,
0.1240713745,
-0.2061243355,
-0.4667069316,
-0.083188206,
0.1185635924,
-0.0553816929,
0.2808890343,
-0.0317330994,
0.315449506,
0.4504308105,
-0.0002374202,
0.0170975737,
-0.1776503772,
-0.2350563109,
-0.0263186619,
0.3950235546,
0.3266684413,
-0.5285286903,
-0.1483885795,
-0.2407325804,
0.2778951228,
0.4014594853,
0.615552783,
-0.0071394742,
0.593349278,
-0.2661555707,
0.1274457723,
-0.3081243038,
0.2741969228,
-0.3772042394,
0.3744081855,
-0.0902812108,
-0.0957927629,
0.0843488351,
-0.0470151789,
0.0716257691,
0.076535061,
0.3944902122,
0.0010769237,
-0.1426582038,
-0.00590197,
-0.3934570551,
-0.3725033104,
-0.3202272952,
-0.0293918513,
0.1224968433,
-0.058913134,
-0.2856304348,
0.565320015,
0.1582311541,
-0.1308510154,
0.1914215982,
0.2992983162,
0.1277526319,
-0.0898283571,
-0.0050908066,
0.029559359,
-0.0824710801,
0.0331872627,
-0.4174712896,
0.190573737,
0.1240226403,
-0.2531057596,
-0.0447309092,
-0.0687905252,
0.0282638911,
-0.2317641675,
-0.019276008,
-0.1546547711,
-0.0446012579,
0.0154298916,
-0.0248280242,
-0.1252897382,
-0.0736534446,
0.0106474832,
-0.5096871853,
-0.024176538,
0.0002804482,
-0.1650915295,
-0.0397443995,
0.367685616,
-0.1405474544,
0.0562489666,
-0.0805531815,
0.130650118,
0.1284163594,
0.0748591945,
-0.0634479374,
0.1455748081,
0.3039920926,
0.1224545315,
0.1135457456,
0.2218717337,
0.11840377,
-0.0786924064,
-0.1911052763,
0.2072176635,
0.2488704622,
0.0800248235,
0.28202492,
-0.2214492261,
-0.0894831941,
0.09871535,
-0.0532892495,
-0.2998577356,
0.2517930865,
0.1236835271,
0.2842866778,
0.1805294305,
-0.18565467,
-0.1370198429,
0.3239433169,
-0.1951676905,
-0.039615117,
0.4245701432,
-0.3088128567,
-0.0758595765,
-0.0875334814,
-0.2740561664,
0.3153855205,
0.1101152003,
0.1338968724,
0.118767783,
0.1388587207,
-0.0974703878,
0.1322099119,
0.2498321235,
-0.1262379438,
0.1747725457,
0.2392383218,
-0.0798344314,
-0.174339205,
0.1291180104,
-0.198376134,
0.33365798,
-0.4030173421,
0.3130138516,
0.1204990447,
0.1127066314,
-0.4343589842,
-0.2917582393,
-0.1530719995,
0.0325136483,
0.1591105461,
-0.2382528186,
-0.0750624165,
-0.1352493763,
0.3465170264,
0.1934904009,
0.1789177507,
0.2643797398,
0.0568553954,
0.1604306698,
-0.367519021,
0.0146151967,
0.1229769289,
-0.1204928011,
0.1066781878,
0.095257163,
-0.2957550585,
-0.0349998996,
-0.259064436,
0.1933891773,
-0.2113824785,
0.2909786701,
0.1516250074,
0.1146209911,
-0.368178308,
0.0680631101,
0.0882991552,
-0.0322856754,
-0.1498582065,
-0.0441934988,
-0.1486748308,
0.2281103581,
-0.087472558,
-0.3000986278,
-0.0941371024,
-0.0312905572,
0.4148482084,
0.0837843493,
-0.0100268759,
0.2177239358,
0.1786599755,
0.1272263229,
0.0197738223,
-0.1597070843,
-0.0354679711,
-0.1911403537,
0.1912485659,
-0.0144755915,
-0.2573112249,
-0.3347418308,
-0.1144604012,
0.1040077358,
-0.2010481358,
-0.5380889177,
0.0351849571,
-0.479323715,
-0.258947432,
-0.2166304439,
0.3814696372,
0.0344931707,
-0.1614193618,
0.0466760322,
0.0747112483,
0.140839234,
-0.005468864,
-0.2377618551,
0.2027299255,
-0.4108915031,
0.3287278414,
-0.1822105646,
0.833940208,
0.3465126157,
-0.0555107668,
-0.0644270033,
-0.0809496194,
0.4020640254,
-0.4588725567,
-0.1653170139,
0.3064307868,
-0.1217422634,
-0.3759497702,
0.2950258851,
0.1579593867,
0.4908564091,
0.1650063843,
0.110334143,
0.2498968542,
-0.3243836462,
0.3450456262,
0.1185865551,
0.1294511259,
-0.0090001374,
0.0719851404,
0.0478031561,
-0.3362256885,
0.0543730184,
-0.0476697907,
0.2388566136,
0.0033357777,
0.1545103192,
-0.3303192258,
-0.6893529892,
-0.0198044851,
0.1392312646,
-0.024852667,
0.1453487873,
-0.1320491433,
0.2101351619,
0.0516630225,
0.7545102835,
0.2475428283,
-0.0989420936,
0.0239298046,
-0.050544858,
-0.1498227119,
0.0122499913,
-0.3787528574,
-0.0279884841,
0.5659730434,
0.5356937647,
-0.3186966777,
-0.0022765771,
0.1669673026,
0.3624536395,
-0.111140728,
-0.0095174946,
-0.4973681271,
-0.0270321518,
-0.1853750944,
0.1172204316,
0.0561155751,
0.05750902,
-0.173196435,
-0.1451404691,
0.0887655467,
-0.0695766062,
0.3130297065,
0.2091909051,
0.3291222155,
-0.2285297662,
0.3800686002,
-0.0179798137,
0.1245592684,
0.3865331709,
0.3226423264,
-0.1884769797,
-0.2584013045,
0.195935145,
-0.2028000355,
0.3252987564,
0.4745918214,
-0.018388452,
0.1406524181,
0.1705865413,
0.4246020019,
-0.3947395682,
0.4877225161,
0.5528476238,
-0.0566166714,
-0.5213477015,
-0.2778937221,
0.4880218208,
0.1094364971,
0.1318002939,
0.2507800162,
0.2139127553,
-0.2760673761,
0.2151191682,
-0.063009508,
1.0572490692,
-0.1979908943,
0.5809547901,
0.1332602203,
0.2443156838,
0.5600247383,
-0.1634088755,
0.1860711873,
-0.371760726,
-0.0683660954,
0.1798363626,
0.0233996138,
-0.1514536291,
0.0723546147,
-0.2003831863,
0.170608595,
-0.1733770072,
0.245285511,
-0.2034249306,
0.3449354768,
0.1053253338,
-0.2919416428,
-0.2884558737,
-0.055659093,
0.0399784222,
0.073634699,
-0.1359114051,
0.0102360845,
-0.0451817065,
-0.2965844274,
-0.2285732776,
-0.1514570415,
-0.0616067946,
-0.0180224851,
0.1356379837,
-0.4155599773,
0.2852833569,
-0.0061044758,
0.2018769234,
0.6037316918,
-0.255243212,
0.0815707594,
-0.1647107303,
0.0555002615,
-0.0609477907,
-0.0629587173,
0.0183578189,
0.0395537019,
-0.0112470984,
0.0081245359,
-0.0311511159,
0.3303090632,
-0.3478428125,
-0.1418487728,
0.4647273123,
-0.4978820682,
-0.0072218403,
-0.0802577361,
-0.1155121475,
-0.1249568313,
0.0196051151,
0.154474318,
-0.3114490807,
0.0475621074,
0.1161860377,
-0.4666771591,
-0.2527612448,
0.2053713351,
0.3127789199,
0.1111268103,
0.7269278169,
0.2397602797,
-0.00118348,
-0.0601235852,
0.372779429,
0.5438687801,
-0.4371435642,
0.3184970617,
0.2621957362,
0.0488700271,
0.0291106552,
0.1672336161,
0.2023545951,
-0.2320089936,
-0.1916529834,
-0.0115761757,
-0.3460531831,
0.0280332621,
-0.0723966658,
0.1560410559,
0.1169246286,
0.4359508753,
0.0357437506,
0.1918994635,
-0.1414847821,
0.0700055584,
-0.004681699,
0.021400746,
-0.2310766429,
-0.0026918608,
0.1514333785,
-0.0814435855,
-0.0647878051,
0.1667027175,
0.002032131,
-0.098018758,
-0.2285381854,
0.1536141932,
0.039836999,
-0.0385809578,
0.1680368185,
0.1496417969,
-0.1911127567,
-0.2004626989,
0.3976660073,
0.1427761912,
0.1690920442,
-0.1483494788,
0.1470240951,
-0.116602473,
-0.0988806859,
-0.0595460571,
0.1867139637,
0.3183196485,
0.0611323342,
0.1301340163,
0.3052384853,
-0.0736710429,
-0.0272995066,
0.1290047765,
0.1368470788,
0.1128560305,
0.0538338535,
-0.2543919981,
-0.0048860386,
-0.0355649665,
0.2974042296,
0.4269485176,
-0.233029604,
-0.1478858739,
0.3677383661,
0.092794016,
-0.0772650689,
-0.0211795978,
-0.1828504354,
-0.218241632,
-0.1203054041,
0.3224660754,
-0.0430026278,
0.0732130855,
-0.1927621067,
0.1227885038,
-0.1977940202,
0.1827680618,
-0.0105103962,
0.6458746195,
-0.0254399478,
0.1201390922,
0.2480583191,
0.089862451,
0.2171669453,
0.6840239167,
0.2106301188,
0.1559526771,
-0.4127488136,
0.0459773839,
-0.1476394534,
-0.513703227,
-0.476675272,
0.1807595789,
-0.1385579407,
0.2510448992,
-0.1436316967,
0.5851089954,
-0.0925022811,
-0.2286137938,
-0.1587091088,
-0.0225020368,
-0.2247795314,
-0.1209859028,
0.1957602501,
-0.1729848236,
0.1710037887,
0.2518331409,
-0.0850017741,
0.1018374562,
-0.015003521,
0.0656472594,
-0.0919589326,
0.0620725006,
-0.12430121,
0.152681917,
0.0915938839,
-0.2555821538,
0.2083455324,
-0.0374238454,
0.0623652413,
-0.1423093081,
0.3047381639,
0.5044110417,
0.4020272791,
-0.196087867,
0.1983143389,
0.1214168072,
0.0320374221,
-0.0764963254,
0.1660139561,
0.3422464132,
0.0307877958,
0.0574715585,
-0.0357735902,
-0.137477845,
-0.0107412478,
0.2075414658,
0.1593537778,
-0.2030375004,
0.3092695773,
-0.1445060521,
-0.1366321445,
-0.3324800134,
0.0277769212,
-0.7808367014,
0.6018411517,
0.3939928412,
-0.0382940993,
0.0751705691,
-0.0575839356,
-0.0058174711,
-0.1773791313,
0.5535488725,
0.4052784443,
0.05279788,
-0.4022137225,
0.0409858078,
-0.2695579529,
0.2878916562,
-0.4112738967,
0.2815776765,
-0.2419730276,
-0.019810129,
-0.0062520541,
-0.1268975288,
-0.0319106355,
-0.2795477509,
-0.7357227802,
0.137521714,
-0.1183148995,
-0.2483351827,
-0.2567408085,
0.0827600732,
-0.0633307099,
-0.2646411955,
0.3999219835,
-0.038402129,
-0.1106513143,
0.031981267,
0.1788469851,
-0.2364384681,
0.1792994738,
0.2317092121,
0.3124321401,
0.132968843,
-0.0105365738,
-0.2296812832,
-0.2905627489,
0.0933327228,
-0.1113021746,
0.1991879046,
0.2345939726,
0.318993032,
-0.217269659,
-0.3325836957,
-0.4254433811,
0.2387920469,
0.3529764414,
-0.1453872919,
-0.217975989,
0.0919541493,
-0.0755621493,
-0.0770612508,
0.0453811698,
0.4668253064,
-0.1706968695,
-0.1004317179,
-0.3269614577,
-0.2557927966,
0.5335485935,
-0.3489524424,
-0.3766443729,
-0.2509151101,
0.0626159385,
0.2268564552,
-0.3144399226,
-0.7230042219,
0.1928253323,
0.2091496736,
-0.0305041112,
-0.4149521589,
0.0981286615,
-0.112178117,
-0.1236164346,
-0.1959388852,
0.6790006757,
0.0530064031,
-0.202335909,
0.3828846812,
-0.2743704319
] |
https://github.com/huggingface/datasets/issues/861 | Possible Bug: Small training/dataset file creates gigantic output | Hi @NebelAI, we have optimized Datasets' disk usage in the latest release v1.5.
Feel free to update your Datasets version
```shell
pip install -U datasets
```
and see if it better suits your needs. | Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
| 34 | Possible Bug: Small training/dataset file creates gigantic output
Hey guys,
I was trying to create a new bert model from scratch via _huggingface transformers + tokenizers + dataets_ (actually using this example script by your team: https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py). It was supposed to be a first test with a small 5 GB raw text file but I can't even end the preprocessing handled by datasets because this tiny 5 GB text file becomes more than 1 TB when processing. My system was running out of space and crashed prematurely.
I've done training from scratch via Google's bert repo in the past and I can remember that the resulting pretraining data can become quite big. But 5 GB becoming 1 TB was never the case. Is this considered normal or is it a bug?
I've used the following CMD:
`python xla_spawn.py --num_cores=8 run_mlm.py --model_type bert --config_name config.json --tokenizer_name tokenizer.json --train_file dataset_full.txt --do_train --output_dir out --max_steps 500000 --save_steps 2500 --save_total_limit 2 --prediction_loss_only --line_by_line --max_seq_length 128 --pad_to_max_length --preprocessing_num_workers 16 --per_device_train_batch_size 128 --overwrite_output_dir --debug`
Hi @NebelAI, we have optimized Datasets' disk usage in the latest release v1.5.
Feel free to update your Datasets version
```shell
pip install -U datasets
```
and see if it better suits your needs. | [
-0.2338342369,
-0.3642714024,
0.1098737568,
0.3271671236,
0.5802890658,
-0.1227116063,
0.2948490083,
0.405277282,
-0.1822132766,
0.1775166839,
-0.0482909754,
-0.1247079372,
-0.3384366333,
0.2299035639,
0.0976039544,
-0.0641690418,
0.1237757206,
0.1533719897,
-0.1044934392,
-0.2381584942,
0.019075796,
0.0444059297,
0.2407268882,
0.2485652119,
-0.5509334803,
0.0961136222,
-0.0530446693,
0.0657117218,
-0.4600452185,
-0.0649351403,
0.0930358395,
-0.3468025923,
0.2184777409,
0.5662021041,
-0.0001273608,
-0.0424780697,
0.1586661339,
-0.0371261537,
-0.0362691768,
0.1515889168,
0.1211321726,
-0.0592243746,
-0.1560093462,
0.1039410681,
0.2607799768,
-0.0881411061,
-0.0348141342,
-0.0693406835,
0.332870394,
0.2546793222,
0.0841451287,
0.1687073857,
0.0530856401,
0.0208145492,
0.223520726,
0.2778950334,
-0.0392046496,
0.0236580372,
0.1884799898,
-0.1935082972,
-0.0342082642,
0.2210817337,
0.1108083948,
-0.1128802523,
0.3315669,
0.1934318841,
-0.0573361553,
-0.3944152594,
0.241011098,
0.3753349781,
0.0406103991,
-0.4069215357,
-0.2597789764,
-0.4071704745,
0.2153961807,
-0.4601970911,
0.0786265433,
0.1565637887,
-0.1745780259,
0.0869324207,
-0.2822414339,
-0.433242768,
-0.2624083459,
-0.0644181073,
-0.1952353716,
-0.0204990841,
-0.253140986,
-0.0878003389,
0.0316852555,
-0.0513357893,
-0.301471442,
0.0018028356,
-0.0130999163,
0.1772993803,
-0.092956543,
-0.2810674608,
-0.084007889,
-0.3132236004,
0.2787922919,
-0.5234854817,
-0.1843094677,
-0.4352830052,
-0.2017563581,
-0.3546653092,
0.4170537591,
0.47202003,
-0.396017164,
0.1702490598,
0.1665723473,
0.054895319,
-0.1536714733,
-0.0758738369,
-0.1547505856,
0.0704372972,
0.0707221925,
-0.4381203651,
0.1299616098,
-0.2795092463,
-0.1710018963,
0.3896248639,
-0.2968326807,
0.2034121752,
0.0244194567,
0.3456144929,
-0.0571385175,
0.1504265666,
0.0753569901,
0.0295034461,
-0.4357019961,
-0.0140297636,
-0.0874338895,
0.069060877,
-0.1871559024,
0.1723109782,
-0.0044258907,
0.0444650613,
0.0975162983,
-0.0309927575,
0.2879888713,
-0.0614805631,
0.0658554286,
-0.2731783688,
0.1098374426,
0.1949202567,
-0.1669235528,
0.489710629,
-0.0056193229,
0.0467574,
0.0041758418,
0.0890712887,
-0.2138066143,
-0.5087089539,
-0.133437261,
0.1073392853,
-0.0225377046,
0.2703316808,
-0.1141862422,
0.3702563345,
0.4396833777,
-0.0440379456,
-0.0226352997,
-0.1944943666,
-0.2229558825,
-0.0126112904,
0.3754175305,
0.42369169,
-0.5573846698,
-0.1374474019,
-0.2831022143,
0.2760489285,
0.317040205,
0.6052901745,
-0.0366576649,
0.5938882232,
-0.2680996656,
0.1369597614,
-0.2820636034,
0.2830559313,
-0.4317551851,
0.3631531596,
-0.0558021441,
-0.0812834427,
0.0675941184,
-0.0509306937,
0.1601727307,
0.0494955704,
0.4206694365,
0.0105384402,
-0.1910234988,
0.0278294012,
-0.3491927385,
-0.3933970928,
-0.3029132485,
0.0391492248,
0.2074748576,
-0.1426805258,
-0.2428854406,
0.5842378139,
0.1493234336,
-0.1176010594,
0.1443619728,
0.4034584463,
0.106151402,
-0.0489936247,
0.0309899561,
-0.1546381265,
-0.1521957815,
0.0177601874,
-0.2466841191,
0.1808104962,
0.0917116776,
-0.2361069322,
-0.0985661298,
-0.0183469616,
0.0784692988,
-0.1859899163,
-0.0025019757,
-0.186859712,
-0.1341238618,
0.0562629253,
-0.0534958802,
-0.0828900486,
-0.1111691296,
0.0557699539,
-0.4824640453,
-0.021635633,
-0.0438356772,
-0.1878071129,
-0.0588855408,
0.304709971,
-0.1567815542,
0.0496465564,
-0.1076477095,
0.2003517449,
0.0655247644,
0.0901458412,
-0.0104254903,
0.184932068,
0.264739126,
0.0936753303,
0.1331101805,
0.1993815601,
0.0828019977,
-0.0678433999,
-0.1416805089,
0.1253064871,
0.1942509264,
0.1309910417,
0.2353684008,
-0.2387401462,
-0.0969014913,
0.1526821554,
-0.006746985,
-0.2505146265,
0.2871016264,
0.0482299961,
0.255038321,
0.1577131003,
-0.1824487597,
-0.0940705985,
0.3434638381,
-0.1666007042,
0.0557356551,
0.4261438847,
-0.3578205705,
-0.0915522054,
-0.0463072136,
-0.1888589114,
0.3729063272,
0.0803319365,
0.1341006905,
0.1067791283,
0.0644713119,
-0.0672613233,
0.1499305069,
0.2874514759,
-0.1175792366,
0.1728912294,
0.1884485781,
-0.0295735933,
-0.255150497,
0.0547022969,
-0.2172520757,
0.3717318475,
-0.3848312795,
0.3306091428,
0.094664827,
0.0327260196,
-0.4031643867,
-0.2052150667,
-0.1755549014,
0.0127513856,
0.1642494649,
-0.1578895003,
-0.08293093,
-0.0999552011,
0.3912379146,
0.2013756633,
0.196298942,
0.3108692765,
0.0330976918,
0.1383017302,
-0.3434258401,
-0.0045559481,
0.1663035154,
-0.1632995009,
0.1363900304,
0.1126275957,
-0.2667163014,
-0.0624261498,
-0.2402978241,
0.1260364354,
-0.1923041493,
0.2783960104,
0.2113269567,
0.2293054014,
-0.3828120232,
0.0926500261,
0.043523144,
-0.0196590312,
-0.1070589125,
-0.0421102233,
-0.1186991259,
0.1387940496,
-0.0932439342,
-0.3279581368,
-0.1222923324,
-0.0531821921,
0.3685315251,
-0.0001863688,
-0.0081701521,
0.2316598147,
0.2695367634,
0.1328949332,
0.0196142457,
-0.1554877758,
0.0083821602,
-0.1846469045,
0.1803588569,
0.0460971519,
-0.1881255507,
-0.2821446657,
0.0419536531,
-0.0011370056,
-0.1777225137,
-0.5618308187,
0.0184510797,
-0.4612650871,
-0.2686637342,
-0.2251043916,
0.4086783528,
0.1059864536,
-0.0596175008,
0.059523873,
0.0867206901,
0.0746404529,
-0.0934039056,
-0.2141727209,
0.2236481607,
-0.4218250513,
0.4128441513,
-0.0376648717,
0.8130557537,
0.3064291477,
-0.0688142329,
-0.0068478677,
-0.0082491729,
0.4584791958,
-0.4559737742,
-0.2210277915,
0.2777838111,
-0.1431833953,
-0.3980735838,
0.2701792419,
0.1300345361,
0.4550914764,
0.1515551507,
0.0478060097,
0.274558723,
-0.3100078702,
0.3527384996,
0.1191465259,
0.1723787934,
0.0011769086,
0.0965538919,
0.0363408923,
-0.2952892184,
0.0445202366,
-0.0182024203,
0.1653148979,
0.0148818232,
0.0854097158,
-0.307630837,
-0.7416746616,
-0.0337134227,
0.0653301477,
0.0161200613,
0.1323536634,
-0.0856467709,
0.1822295785,
0.0500862971,
0.7840265036,
0.2417459935,
-0.1469586343,
-0.0631198287,
-0.0090909302,
-0.2243032604,
0.050240919,
-0.3604033291,
-0.0077729262,
0.5267217755,
0.6359655261,
-0.3379248977,
-0.0449703634,
0.1372139156,
0.3818017244,
-0.1095812768,
0.0351184718,
-0.4170677662,
-0.0714576915,
-0.2245297134,
0.1731089652,
0.0825728104,
0.0398783758,
-0.1176659316,
-0.105845429,
0.1136170849,
-0.0607748106,
0.3254385591,
0.2567197978,
0.3178473413,
-0.3010819852,
0.341742456,
-0.0462817065,
0.126461491,
0.3970063329,
0.2715195715,
-0.2576496303,
-0.2769013345,
0.2349773049,
-0.1083863527,
0.3079815507,
0.5227626562,
-0.0646282658,
0.1311265528,
0.155381158,
0.4302622974,
-0.4125351906,
0.5151010752,
0.5527089238,
0.0177976042,
-0.4765744209,
-0.2469358742,
0.4360092878,
0.1092833653,
0.1275289804,
0.2105266899,
0.260610491,
-0.3030822575,
0.2701164484,
-0.0946194604,
1.0859618187,
-0.2421151847,
0.5881171227,
0.1212821305,
0.2371956557,
0.5970579982,
-0.2419916987,
0.1563254595,
-0.3379872143,
-0.1313244998,
0.1505070478,
0.055321157,
-0.1317777336,
0.0399058089,
-0.1674172878,
0.2230979204,
-0.0800758004,
0.194508329,
-0.2192204297,
0.3541290462,
0.0505174547,
-0.3207404613,
-0.275477618,
-0.0320471674,
-0.030304499,
0.0507148504,
-0.1687880456,
0.058794871,
0.0405656248,
-0.2991408706,
-0.317006886,
-0.1916312873,
-0.0658526793,
0.0150365345,
0.149394542,
-0.3508223295,
0.2959383428,
0.0511830412,
0.2471514642,
0.6219083071,
-0.2682355344,
0.0588834994,
-0.2696533501,
0.0439972617,
-0.0632773563,
-0.0463333726,
-0.0081133228,
0.0676457286,
0.0005964637,
0.0085473415,
-0.0352823511,
0.280308187,
-0.3483647108,
-0.1616435647,
0.443644762,
-0.467616111,
-0.0234428793,
-0.1549752951,
-0.1121087223,
-0.1517969072,
0.0233200211,
0.1797079742,
-0.2624875009,
0.0978790522,
0.0117117716,
-0.3891356587,
-0.2371118963,
0.2602459192,
0.239469707,
0.0908636749,
0.680362463,
0.3069347739,
-0.0432922356,
-0.0754631832,
0.3743822277,
0.4730664492,
-0.4497230947,
0.3170527816,
0.1860167384,
-0.034631148,
0.0334120654,
0.1253684163,
0.2458349913,
-0.3215656877,
-0.1962847412,
-0.0428496748,
-0.4025849402,
0.0923331082,
-0.0428919159,
0.1559313387,
0.1785846502,
0.2970409095,
-0.013736207,
0.1401784271,
-0.1373619884,
0.1233334094,
-0.0231048875,
0.0687609315,
-0.1933574677,
-0.0587357357,
0.2272246331,
-0.1636863053,
-0.068389304,
0.204265058,
0.0142690241,
-0.1004519463,
-0.1986790448,
0.1495774537,
0.0027417783,
-0.0232980289,
0.1306257844,
0.0538231432,
-0.1501658112,
-0.2443067133,
0.4213888645,
0.1724334061,
0.1414135545,
-0.1392629892,
0.1098974943,
-0.1006512791,
-0.0634014532,
-0.0140845664,
0.14695476,
0.2605261803,
0.0540865995,
0.1588279158,
0.3157697618,
-0.0877612233,
-0.1094088405,
0.1993463039,
0.197124511,
0.108584404,
0.0951880962,
-0.2654796541,
-0.0809265599,
0.0378720053,
0.28648597,
0.471386373,
-0.2842047811,
-0.1716522276,
0.3851938844,
0.1027003303,
-0.0477527753,
-0.1189641058,
-0.1335846037,
-0.2094618678,
-0.1395508945,
0.2914471626,
-0.0526712276,
0.0205775052,
-0.1172214895,
0.1852544844,
-0.1063658148,
0.1524031609,
-0.0206125919,
0.6539319754,
0.0152209625,
0.0670526177,
0.1786471903,
0.0688591599,
0.2759256661,
0.8238028884,
0.1972066462,
0.1680945903,
-0.3683776259,
0.0733837262,
-0.2112161219,
-0.4943947792,
-0.4449979067,
0.135596171,
-0.1487523913,
0.2809886634,
-0.1661429703,
0.5747611523,
-0.1352188438,
-0.254016608,
-0.1453141719,
-0.0783656687,
-0.2735461891,
-0.1423634887,
0.234537676,
-0.1449483186,
0.1949318796,
0.2462966442,
-0.121823594,
0.010503795,
-0.0223569572,
0.0733814165,
-0.1523847431,
0.0285170637,
-0.168895483,
0.1849359274,
0.0798940659,
-0.2207340896,
0.2122033685,
-0.0599282198,
0.0100178709,
-0.2495433986,
0.3357708156,
0.4979707897,
0.3848266006,
-0.2373088449,
0.2271022201,
0.1799068898,
0.0169184357,
-0.0835809633,
0.081261158,
0.2790589333,
0.1057371497,
0.0313189179,
-0.0387334377,
-0.1393175423,
-0.0649553239,
0.1780899763,
0.1297256351,
-0.2238084078,
0.2088003457,
-0.1784382313,
-0.1754205972,
-0.2495661825,
0.0288148634,
-0.7493738532,
0.5085181594,
0.5131710768,
-0.0313961878,
0.1146011204,
-0.0797067881,
-0.0068542548,
-0.1509415954,
0.5040620565,
0.464061141,
-0.0103107709,
-0.3956052065,
0.0211504996,
-0.316270262,
0.2524136603,
-0.3745405674,
0.3190290332,
-0.1406808496,
-0.0834930763,
-0.0082901455,
-0.1462577283,
-0.0114827231,
-0.2426192909,
-0.6652166843,
0.1791585982,
-0.1702089608,
-0.2547815442,
-0.2493761331,
0.0223897304,
-0.0184740946,
-0.2822553515,
0.4183260202,
-0.0032186061,
-0.1322529614,
-0.0118239652,
0.2694913149,
-0.2186584771,
0.1853102148,
0.2665775418,
0.2303337902,
0.0351793021,
0.0351751447,
-0.2640858293,
-0.3061708808,
0.1012732312,
-0.068126522,
0.1514073014,
0.2569338679,
0.3529636264,
-0.3432301581,
-0.2458405495,
-0.3924254775,
0.1620883942,
0.3589941263,
-0.1316672564,
-0.2357919812,
0.0762178525,
-0.1069596261,
-0.0141407438,
0.0605249554,
0.4861752689,
-0.1284476668,
-0.0805444568,
-0.3727776408,
-0.2169012725,
0.4692787528,
-0.2248284668,
-0.4343771935,
-0.2305406034,
0.041018717,
0.2724096179,
-0.2714159191,
-0.801881671,
0.1316690743,
0.1668115854,
-0.0057347016,
-0.5056573749,
0.1350082755,
-0.087055698,
-0.1299731284,
-0.169907555,
0.7421055436,
0.0822327286,
-0.2132931352,
0.4542506337,
-0.2582865357
] |
https://github.com/huggingface/datasets/issues/854 | wmt16 does not download | Hi,I also posted it to the forum, but this is a bug, perhaps it needs to be reported here? thanks | Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz | 20 | wmt16 does not download
Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
Hi,I also posted it to the forum, but this is a bug, perhaps it needs to be reported here? thanks | [
-0.4449557364,
-0.4224757254,
-0.0815042108,
0.4179416597,
0.504688859,
0.1244977266,
0.1281457543,
0.2139968425,
0.2786704302,
0.0013542771,
0.0727130547,
-0.110461466,
-0.2351615131,
0.0972072557,
0.2837481797,
-0.0405809805,
-0.1238626093,
-0.0028829686,
-0.485932827,
0.0390386283,
-0.2367145717,
0.1167634651,
-0.1118451729,
-0.0652594566,
-0.3488698602,
-0.0671077967,
-0.1394525915,
0.0584426895,
-0.3605147302,
-0.2884306908,
0.3591670692,
0.0484931469,
0.2195619643,
0.4216263294,
-0.0001045874,
-0.034425132,
0.2609169483,
-0.1103320569,
-0.164305985,
-0.3919683099,
-0.3435018659,
-0.1982589364,
-0.086341396,
-0.0891986564,
-0.0184495673,
-0.1176215261,
-0.1129946411,
-0.3425154984,
0.2524400353,
0.3540216386,
0.3467801511,
0.2697253227,
0.3545670509,
-0.191429764,
0.1382768154,
0.169979617,
0.0555041954,
0.1284029782,
-0.0070465356,
-0.140078485,
0.1166838706,
0.1394855827,
-0.0372344144,
0.2416532338,
0.1042876616,
-0.158645004,
0.0307698622,
-0.2549284995,
0.2687596977,
0.1392052323,
0.395015806,
-0.1157426909,
-0.1314077675,
0.1513413787,
0.0650622249,
-0.5738536119,
0.2200945914,
0.500962615,
-0.1863726974,
0.1921612918,
-0.271476537,
-0.0870951265,
0.0238121003,
0.1413064599,
-0.2197031677,
0.2921699584,
-0.2135500759,
0.0183898807,
0.1849007756,
-0.1017094702,
0.0880928785,
-0.0139021743,
0.1450837255,
0.2526480258,
-0.2700493932,
0.1261814684,
-0.1145766824,
0.1292569339,
0.0806540698,
0.0086125266,
-0.2520151734,
-0.150721997,
0.2881467342,
-0.0259476565,
0.026900623,
0.1888411343,
-0.21948798,
0.0834905058,
0.0834253579,
0.1954315603,
-0.0369618908,
-0.0546254143,
-0.3145236671,
-0.2925894856,
0.0326479822,
-0.0937112421,
0.1151881218,
0.0685743541,
-0.2826322317,
0.0161389336,
0.0049902871,
-0.1779201627,
0.0023905262,
0.3310003281,
-0.2150159627,
0.1485762149,
0.2978155613,
0.0600115359,
-0.0970927179,
-0.1061490178,
-0.2628636956,
-0.0803783238,
-0.1983224452,
-0.0564078055,
0.3051493466,
-0.0921541825,
0.3761103451,
0.0229629911,
-0.1797794551,
-0.1802680641,
0.0199734271,
-0.183058992,
0.1112454981,
0.4338180721,
0.0693688169,
0.2375740409,
0.0718804747,
0.2547794282,
-0.0013335496,
0.2246191502,
-0.0462483615,
-0.4587914348,
0.1238832399,
0.3703135252,
-0.1037134901,
-0.1154195666,
0.0248289108,
-0.1448107213,
0.0704498291,
0.2599557042,
-0.1440330744,
-0.2033017427,
-0.1653169096,
-0.2190621197,
0.5277343392,
0.3939630985,
0.0342415124,
-0.0421028659,
-0.4067510068,
-0.2453192919,
0.3608447313,
0.2823587358,
0.0014632419,
0.1401394904,
-0.3047559261,
0.0974317491,
0.2519401312,
-0.2148155272,
-0.256593436,
0.2118155211,
-0.2131185234,
-0.0246802829,
-0.0519019924,
0.0910041183,
0.0106456019,
0.0145028941,
0.2670853734,
0.1857901812,
-0.3312122226,
0.0249925405,
-0.197098285,
-0.3113335967,
0.446200788,
0.2143391371,
0.2483341843,
-0.070721902,
0.0157014001,
0.1144673154,
0.3708970845,
0.2580590248,
0.0792701617,
-0.0338330865,
0.2125308365,
0.0079512652,
-0.2015175372,
-0.1089140922,
-0.2836963534,
0.1032906324,
0.2451008558,
-0.077865243,
0.0508961752,
-0.0072362795,
-0.4273626804,
0.0413817018,
-0.1689579636,
-0.1493410617,
0.1657438576,
-0.0761243477,
0.1448942423,
-0.0492951944,
-0.0764249042,
-0.0518813767,
-0.2385363281,
0.0705093741,
0.1058797687,
-0.0204062909,
-0.3056631982,
-0.0091240723,
0.2450968623,
-0.0581195578,
0.1331098378,
-0.0372366011,
-0.1354189813,
0.2523603737,
0.1233305633,
0.2528030276,
-0.0802925155,
0.0251828954,
0.1523815095,
-0.4525059462,
0.0430600792,
0.0419444889,
0.1044073105,
-0.1576234996,
0.2183500826,
-0.0314421132,
-0.0910323188,
0.0418951176,
0.1744561493,
0.1563685238,
0.1477833688,
-0.0249364376,
0.090183422,
-0.1331831068,
0.3215934634,
-0.0938104242,
0.2526178956,
-0.0654186681,
-0.0649178848,
-0.1171568185,
0.4020734429,
0.1520849913,
0.0896186382,
0.0442312099,
-0.3025978208,
0.02850236,
-0.21578224,
0.3114799857,
0.4959134758,
0.1446498185,
0.1639538109,
0.1199487969,
0.1569378376,
-0.2816539109,
0.4310475886,
-0.040102642,
0.2351525128,
0.2522005439,
-0.1961639374,
-0.0563997924,
-0.2167146355,
0.277897805,
0.0175765976,
0.2078112811,
-0.1578261554,
-0.2426186353,
-0.2548193336,
-0.0673507378,
-0.4623289704,
-0.5436557531,
-0.2178744972,
-0.1321283579,
-0.2382996827,
0.0240337588,
-0.0367040336,
0.1426419616,
-0.0420636162,
-0.1025990844,
0.0817945451,
0.1268723905,
0.0026957989,
-0.0534276068,
-0.0635397732,
0.1841250956,
0.2524003983,
-0.3535849452,
0.5754957199,
-0.3072550595,
0.029987175,
-0.2428166121,
-0.1333233416,
-0.0243879966,
-0.0370057598,
0.0867501125,
0.3703728914,
0.3781490922,
0.2589347064,
-0.0355773233,
0.3693835139,
-0.282751441,
-0.062775746,
-0.1214672178,
0.1225733534,
0.0374439918,
-0.2173152566,
-0.5624724627,
-0.4598296583,
-0.4110192955,
-0.0917026401,
0.0304596424,
0.1562967002,
0.1512019336,
0.0725565255,
0.0382240079,
0.1439453661,
-0.0554898307,
-0.3277633786,
-0.3739012182,
0.3905155659,
-0.2670379579,
-0.4456061125,
0.2986953259,
0.0598830283,
0.4613801539,
0.2046917677,
-0.4112802744,
0.3908864856,
-0.1190450266,
-0.0669096708,
0.0473833308,
0.1677638143,
0.1566011012,
-0.0419888087,
-0.1558274627,
-0.1271514595,
-0.1122651696,
-0.1918481141,
-0.198319152,
0.5375468731,
-0.1967825443,
0.3370723128,
0.0668312013,
0.713924706,
0.1417640746,
-0.1678286493,
0.2005017996,
-0.1050599515,
0.1060317457,
0.1251527369,
-0.4757867754,
0.1009271443,
-0.1338582784,
0.171340391,
0.1957197338,
0.0078043714,
0.1225345805,
-0.2567453384,
0.0096977577,
-0.2643206418,
-0.246010527,
0.0622867048,
0.0964220688,
0.4988242388,
0.1776275039,
0.0379240364,
-0.0200699978,
-0.0173671432,
-0.013074901,
0.3110688925,
0.1599546671,
0.1306658536,
0.126028195,
-0.0890350714,
-0.3551559448,
0.0651446208,
-0.0090180784,
0.4483256936,
-0.0488909818,
-0.1861807108,
-0.0250149667,
-0.0229499415,
0.5050638914,
0.1352036595,
0.2418664247,
-0.0990695804,
-0.1132145226,
-0.3881943226,
-0.0088245869,
-0.0477997251,
-0.0792362019,
0.1792101264,
0.0337591171,
-0.2113886178,
-0.1805661619,
0.3363738656,
0.1965858936,
-0.2405359149,
-0.3452709317,
-0.2148283124,
-0.3769049346,
-0.3758884966,
-0.0632991567,
0.0156028494,
0.2370367348,
-0.271061331,
-0.0545756184,
0.01277625,
-0.0314766951,
0.0812898502,
-0.0627887025,
0.2074973434,
0.0170505494,
0.3276123405,
0.2472557873,
0.2483443916,
0.3023763597,
0.4499740005,
-0.0790659189,
0.0300895479,
-0.0450309739,
-0.0318386108,
0.1685842276,
0.0883090198,
-0.1288240552,
0.0313172042,
0.3365074992,
0.1797916144,
-0.56870538,
0.1187114939,
0.414295882,
-0.0442774817,
-0.2248915434,
-0.2964838743,
0.1844128072,
0.0234360695,
0.198057875,
0.2240129858,
0.0846083015,
-0.102600351,
-0.3729059398,
0.0741111115,
0.7303836346,
0.0040983316,
-0.006337367,
0.0541394874,
-0.2457990646,
0.0493162237,
0.1965427101,
0.0595951006,
-0.2025648952,
0.0823458731,
0.0715466216,
-0.1753579378,
0.0899461657,
0.163887769,
-0.2038238347,
0.1945638359,
-0.0903948173,
0.3699929118,
0.1237481087,
0.27324301,
-0.2995002866,
-0.0765024722,
-0.1843221188,
0.2496199906,
-0.1579501629,
0.5097187757,
-0.2337877601,
-0.0218785256,
0.2522150278,
-0.3380151391,
-0.3348367214,
-0.0194522664,
-0.6515513659,
0.1543288231,
-0.2069602907,
0.054442361,
0.2665854692,
0.0717393905,
0.0452234372,
0.3972820044,
-0.1099758968,
0.1481292248,
-0.2182460725,
-0.1837648898,
-0.1499445885,
0.1043709219,
0.0388211384,
-0.2055920064,
-0.2422317415,
-0.0304814428,
-0.0293194409,
0.1018593162,
0.1618235409,
-0.0849091113,
0.262901783,
-0.1588937491,
-0.1314068139,
-0.0529144034,
-0.0808756575,
-0.13139534,
0.2391679734,
0.0814329535,
-0.1059004068,
0.3598033786,
0.1204866618,
-0.035793297,
-0.1756921113,
0.418289572,
-0.1213935539,
0.0133035034,
0.4005339742,
0.281683445,
-0.1847718656,
-0.4077314138,
0.0011177883,
-0.2280676365,
-0.2547610402,
0.2138409615,
0.1572355628,
0.2700098753,
-0.0490146801,
0.1123867184,
0.2817121148,
-0.2257378697,
0.1532506645,
-0.437489301,
-0.361328423,
-0.0451180711,
-0.0801633969,
0.1647504717,
-0.0839296356,
0.3007490933,
0.1840869039,
0.3149894774,
-0.398221463,
0.1844786108,
-0.05545054,
0.0410330743,
0.4086412489,
-0.1523308158,
0.2701258063,
-0.0001027845,
0.2006691247,
0.0359568819,
-0.3535062373,
-0.2827749848,
-0.1789456308,
0.0797092915,
0.0645149052,
-0.3131314814,
0.2315576524,
-0.2747570276,
-0.1528652161,
0.1786976457,
0.047385864,
0.1009498537,
-0.0488116071,
0.1522328109,
0.0410716683,
0.0885960311,
-0.2128449976,
0.070073843,
-0.0519007966,
0.3334442377,
0.0832393616,
-0.0684862882,
0.3025781512,
-0.1539805084,
-0.099962756,
-0.2193927914,
0.1600320488,
-0.2081463337,
0.3932881951,
-0.1847999692,
-0.0114566162,
0.1140616089,
0.3009460568,
0.3354036808,
-0.0449947305,
0.1436927915,
0.1372203082,
0.351652652,
-0.408049494,
0.1773459017,
-0.14447999,
0.0148588233,
-0.0702790394,
0.0008021221,
0.0222214386,
0.0371157378,
-0.1540628821,
0.2090328038,
0.4429772198,
-0.2516426146,
0.1013134867,
0.2070246339,
-0.1443167627,
0.1512601674,
0.0537341535,
0.0145271141,
0.0511469916,
0.3569310009,
-0.3507201672,
0.3197164536,
-0.1200648844,
0.0391064025,
0.1024586409,
-0.2943322361,
-0.0493201353,
0.2626118064,
-0.2538185716,
-0.0398404375,
-0.1569646299,
0.2941782773,
-0.117847994,
0.0144358128,
-0.1574144065,
0.2634152174,
-0.0796027407,
-0.0266707875,
-0.2245196104,
-0.1667220891,
-0.2416518033,
-0.008191362,
0.1487243325,
-0.1794108301,
0.2924160361,
0.2659938037,
-0.0218945667,
-0.5418661833,
-0.1938092858,
0.1615170836,
-0.0660707429,
-0.3661064506,
0.0962020531,
0.4262839854,
-0.10736534,
0.1673748493,
0.4767377377,
0.3966048956,
0.3219353855,
-0.1423860192,
0.0870658159,
0.0576878488,
-0.1005894989,
-0.187933445,
0.2051904649,
0.0790676028,
-0.0485187769,
0.2097938657,
0.2723873556,
-0.2374074459,
-0.1949214935,
0.0235633682,
-0.1338630319,
-0.0635164231,
0.2793865204,
-0.1369123608,
0.0430591255,
-0.4318421483,
0.2305631638,
-0.2953835428,
0.3097436726,
0.5763677359,
-0.0516445078,
0.1679921746,
-0.2874498665,
0.1143855974,
-0.0044972561,
0.6133633852,
0.2889215648,
0.055917982,
-0.4034256935,
-0.4311850965,
-0.7414610982,
0.0106794238,
0.0747838989,
0.093622297,
-0.1725305021,
0.088113226,
-0.0538028777,
0.0651677102,
0.2490347624,
0.08209306,
0.1977203637,
0.0279186759,
-0.0566339865,
-0.0552849099,
-0.2002748251,
-0.0143966516,
0.1361457855,
-0.3531444073,
0.1582951993,
-0.3870316744,
0.1298182607,
-0.4399927557,
0.270637989,
-0.0487773269,
0.2809255421,
0.28762725,
0.1505337358,
0.3705019951,
-0.0907474607,
-0.0546103492,
-0.1950241178,
-0.0690791309,
-0.1504272819,
0.1500721872,
0.2182559371,
0.1705780178,
-0.0018084683,
-0.3095669746,
-0.4495082796,
0.0844903439,
0.0031599104,
-0.0372305959,
-0.1925240159,
0.0436133221,
-0.1081489399,
-0.1006139368,
0.335601151,
0.2299155891,
-0.1436967403,
0.0228843838,
-0.3451315165,
-0.3848656714,
0.4460464418,
-0.1559344232,
-0.2160534114,
-0.2820882797,
0.0934074894,
-0.0535833426,
-0.0098090852,
-0.4851158261,
0.3032737374,
0.253323108,
-0.0807628185,
-0.2000130564,
0.4165593088,
-0.1124196872,
-0.0350135192,
0.0745054185,
0.4259935617,
0.0531242713,
-0.2661994398,
-0.2081852257,
-0.1793359667
] |
https://github.com/huggingface/datasets/issues/854 | wmt16 does not download | It looks like the official OPUS server for WMT16 doesn't provide the data files anymore (503 error).
I searched a bit and couldn't find a mirror except maybe http://nlp.ffzg.hr/resources/corpora/setimes/ (the data are a cleaned version of the original ones though)
Should we consider replacing the old urls with these ones even though it's not the exact same data ? | Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz | 59 | wmt16 does not download
Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
It looks like the official OPUS server for WMT16 doesn't provide the data files anymore (503 error).
I searched a bit and couldn't find a mirror except maybe http://nlp.ffzg.hr/resources/corpora/setimes/ (the data are a cleaned version of the original ones though)
Should we consider replacing the old urls with these ones even though it's not the exact same data ? | [
-0.4449557364,
-0.4224757254,
-0.0815042108,
0.4179416597,
0.504688859,
0.1244977266,
0.1281457543,
0.2139968425,
0.2786704302,
0.0013542771,
0.0727130547,
-0.110461466,
-0.2351615131,
0.0972072557,
0.2837481797,
-0.0405809805,
-0.1238626093,
-0.0028829686,
-0.485932827,
0.0390386283,
-0.2367145717,
0.1167634651,
-0.1118451729,
-0.0652594566,
-0.3488698602,
-0.0671077967,
-0.1394525915,
0.0584426895,
-0.3605147302,
-0.2884306908,
0.3591670692,
0.0484931469,
0.2195619643,
0.4216263294,
-0.0001045874,
-0.034425132,
0.2609169483,
-0.1103320569,
-0.164305985,
-0.3919683099,
-0.3435018659,
-0.1982589364,
-0.086341396,
-0.0891986564,
-0.0184495673,
-0.1176215261,
-0.1129946411,
-0.3425154984,
0.2524400353,
0.3540216386,
0.3467801511,
0.2697253227,
0.3545670509,
-0.191429764,
0.1382768154,
0.169979617,
0.0555041954,
0.1284029782,
-0.0070465356,
-0.140078485,
0.1166838706,
0.1394855827,
-0.0372344144,
0.2416532338,
0.1042876616,
-0.158645004,
0.0307698622,
-0.2549284995,
0.2687596977,
0.1392052323,
0.395015806,
-0.1157426909,
-0.1314077675,
0.1513413787,
0.0650622249,
-0.5738536119,
0.2200945914,
0.500962615,
-0.1863726974,
0.1921612918,
-0.271476537,
-0.0870951265,
0.0238121003,
0.1413064599,
-0.2197031677,
0.2921699584,
-0.2135500759,
0.0183898807,
0.1849007756,
-0.1017094702,
0.0880928785,
-0.0139021743,
0.1450837255,
0.2526480258,
-0.2700493932,
0.1261814684,
-0.1145766824,
0.1292569339,
0.0806540698,
0.0086125266,
-0.2520151734,
-0.150721997,
0.2881467342,
-0.0259476565,
0.026900623,
0.1888411343,
-0.21948798,
0.0834905058,
0.0834253579,
0.1954315603,
-0.0369618908,
-0.0546254143,
-0.3145236671,
-0.2925894856,
0.0326479822,
-0.0937112421,
0.1151881218,
0.0685743541,
-0.2826322317,
0.0161389336,
0.0049902871,
-0.1779201627,
0.0023905262,
0.3310003281,
-0.2150159627,
0.1485762149,
0.2978155613,
0.0600115359,
-0.0970927179,
-0.1061490178,
-0.2628636956,
-0.0803783238,
-0.1983224452,
-0.0564078055,
0.3051493466,
-0.0921541825,
0.3761103451,
0.0229629911,
-0.1797794551,
-0.1802680641,
0.0199734271,
-0.183058992,
0.1112454981,
0.4338180721,
0.0693688169,
0.2375740409,
0.0718804747,
0.2547794282,
-0.0013335496,
0.2246191502,
-0.0462483615,
-0.4587914348,
0.1238832399,
0.3703135252,
-0.1037134901,
-0.1154195666,
0.0248289108,
-0.1448107213,
0.0704498291,
0.2599557042,
-0.1440330744,
-0.2033017427,
-0.1653169096,
-0.2190621197,
0.5277343392,
0.3939630985,
0.0342415124,
-0.0421028659,
-0.4067510068,
-0.2453192919,
0.3608447313,
0.2823587358,
0.0014632419,
0.1401394904,
-0.3047559261,
0.0974317491,
0.2519401312,
-0.2148155272,
-0.256593436,
0.2118155211,
-0.2131185234,
-0.0246802829,
-0.0519019924,
0.0910041183,
0.0106456019,
0.0145028941,
0.2670853734,
0.1857901812,
-0.3312122226,
0.0249925405,
-0.197098285,
-0.3113335967,
0.446200788,
0.2143391371,
0.2483341843,
-0.070721902,
0.0157014001,
0.1144673154,
0.3708970845,
0.2580590248,
0.0792701617,
-0.0338330865,
0.2125308365,
0.0079512652,
-0.2015175372,
-0.1089140922,
-0.2836963534,
0.1032906324,
0.2451008558,
-0.077865243,
0.0508961752,
-0.0072362795,
-0.4273626804,
0.0413817018,
-0.1689579636,
-0.1493410617,
0.1657438576,
-0.0761243477,
0.1448942423,
-0.0492951944,
-0.0764249042,
-0.0518813767,
-0.2385363281,
0.0705093741,
0.1058797687,
-0.0204062909,
-0.3056631982,
-0.0091240723,
0.2450968623,
-0.0581195578,
0.1331098378,
-0.0372366011,
-0.1354189813,
0.2523603737,
0.1233305633,
0.2528030276,
-0.0802925155,
0.0251828954,
0.1523815095,
-0.4525059462,
0.0430600792,
0.0419444889,
0.1044073105,
-0.1576234996,
0.2183500826,
-0.0314421132,
-0.0910323188,
0.0418951176,
0.1744561493,
0.1563685238,
0.1477833688,
-0.0249364376,
0.090183422,
-0.1331831068,
0.3215934634,
-0.0938104242,
0.2526178956,
-0.0654186681,
-0.0649178848,
-0.1171568185,
0.4020734429,
0.1520849913,
0.0896186382,
0.0442312099,
-0.3025978208,
0.02850236,
-0.21578224,
0.3114799857,
0.4959134758,
0.1446498185,
0.1639538109,
0.1199487969,
0.1569378376,
-0.2816539109,
0.4310475886,
-0.040102642,
0.2351525128,
0.2522005439,
-0.1961639374,
-0.0563997924,
-0.2167146355,
0.277897805,
0.0175765976,
0.2078112811,
-0.1578261554,
-0.2426186353,
-0.2548193336,
-0.0673507378,
-0.4623289704,
-0.5436557531,
-0.2178744972,
-0.1321283579,
-0.2382996827,
0.0240337588,
-0.0367040336,
0.1426419616,
-0.0420636162,
-0.1025990844,
0.0817945451,
0.1268723905,
0.0026957989,
-0.0534276068,
-0.0635397732,
0.1841250956,
0.2524003983,
-0.3535849452,
0.5754957199,
-0.3072550595,
0.029987175,
-0.2428166121,
-0.1333233416,
-0.0243879966,
-0.0370057598,
0.0867501125,
0.3703728914,
0.3781490922,
0.2589347064,
-0.0355773233,
0.3693835139,
-0.282751441,
-0.062775746,
-0.1214672178,
0.1225733534,
0.0374439918,
-0.2173152566,
-0.5624724627,
-0.4598296583,
-0.4110192955,
-0.0917026401,
0.0304596424,
0.1562967002,
0.1512019336,
0.0725565255,
0.0382240079,
0.1439453661,
-0.0554898307,
-0.3277633786,
-0.3739012182,
0.3905155659,
-0.2670379579,
-0.4456061125,
0.2986953259,
0.0598830283,
0.4613801539,
0.2046917677,
-0.4112802744,
0.3908864856,
-0.1190450266,
-0.0669096708,
0.0473833308,
0.1677638143,
0.1566011012,
-0.0419888087,
-0.1558274627,
-0.1271514595,
-0.1122651696,
-0.1918481141,
-0.198319152,
0.5375468731,
-0.1967825443,
0.3370723128,
0.0668312013,
0.713924706,
0.1417640746,
-0.1678286493,
0.2005017996,
-0.1050599515,
0.1060317457,
0.1251527369,
-0.4757867754,
0.1009271443,
-0.1338582784,
0.171340391,
0.1957197338,
0.0078043714,
0.1225345805,
-0.2567453384,
0.0096977577,
-0.2643206418,
-0.246010527,
0.0622867048,
0.0964220688,
0.4988242388,
0.1776275039,
0.0379240364,
-0.0200699978,
-0.0173671432,
-0.013074901,
0.3110688925,
0.1599546671,
0.1306658536,
0.126028195,
-0.0890350714,
-0.3551559448,
0.0651446208,
-0.0090180784,
0.4483256936,
-0.0488909818,
-0.1861807108,
-0.0250149667,
-0.0229499415,
0.5050638914,
0.1352036595,
0.2418664247,
-0.0990695804,
-0.1132145226,
-0.3881943226,
-0.0088245869,
-0.0477997251,
-0.0792362019,
0.1792101264,
0.0337591171,
-0.2113886178,
-0.1805661619,
0.3363738656,
0.1965858936,
-0.2405359149,
-0.3452709317,
-0.2148283124,
-0.3769049346,
-0.3758884966,
-0.0632991567,
0.0156028494,
0.2370367348,
-0.271061331,
-0.0545756184,
0.01277625,
-0.0314766951,
0.0812898502,
-0.0627887025,
0.2074973434,
0.0170505494,
0.3276123405,
0.2472557873,
0.2483443916,
0.3023763597,
0.4499740005,
-0.0790659189,
0.0300895479,
-0.0450309739,
-0.0318386108,
0.1685842276,
0.0883090198,
-0.1288240552,
0.0313172042,
0.3365074992,
0.1797916144,
-0.56870538,
0.1187114939,
0.414295882,
-0.0442774817,
-0.2248915434,
-0.2964838743,
0.1844128072,
0.0234360695,
0.198057875,
0.2240129858,
0.0846083015,
-0.102600351,
-0.3729059398,
0.0741111115,
0.7303836346,
0.0040983316,
-0.006337367,
0.0541394874,
-0.2457990646,
0.0493162237,
0.1965427101,
0.0595951006,
-0.2025648952,
0.0823458731,
0.0715466216,
-0.1753579378,
0.0899461657,
0.163887769,
-0.2038238347,
0.1945638359,
-0.0903948173,
0.3699929118,
0.1237481087,
0.27324301,
-0.2995002866,
-0.0765024722,
-0.1843221188,
0.2496199906,
-0.1579501629,
0.5097187757,
-0.2337877601,
-0.0218785256,
0.2522150278,
-0.3380151391,
-0.3348367214,
-0.0194522664,
-0.6515513659,
0.1543288231,
-0.2069602907,
0.054442361,
0.2665854692,
0.0717393905,
0.0452234372,
0.3972820044,
-0.1099758968,
0.1481292248,
-0.2182460725,
-0.1837648898,
-0.1499445885,
0.1043709219,
0.0388211384,
-0.2055920064,
-0.2422317415,
-0.0304814428,
-0.0293194409,
0.1018593162,
0.1618235409,
-0.0849091113,
0.262901783,
-0.1588937491,
-0.1314068139,
-0.0529144034,
-0.0808756575,
-0.13139534,
0.2391679734,
0.0814329535,
-0.1059004068,
0.3598033786,
0.1204866618,
-0.035793297,
-0.1756921113,
0.418289572,
-0.1213935539,
0.0133035034,
0.4005339742,
0.281683445,
-0.1847718656,
-0.4077314138,
0.0011177883,
-0.2280676365,
-0.2547610402,
0.2138409615,
0.1572355628,
0.2700098753,
-0.0490146801,
0.1123867184,
0.2817121148,
-0.2257378697,
0.1532506645,
-0.437489301,
-0.361328423,
-0.0451180711,
-0.0801633969,
0.1647504717,
-0.0839296356,
0.3007490933,
0.1840869039,
0.3149894774,
-0.398221463,
0.1844786108,
-0.05545054,
0.0410330743,
0.4086412489,
-0.1523308158,
0.2701258063,
-0.0001027845,
0.2006691247,
0.0359568819,
-0.3535062373,
-0.2827749848,
-0.1789456308,
0.0797092915,
0.0645149052,
-0.3131314814,
0.2315576524,
-0.2747570276,
-0.1528652161,
0.1786976457,
0.047385864,
0.1009498537,
-0.0488116071,
0.1522328109,
0.0410716683,
0.0885960311,
-0.2128449976,
0.070073843,
-0.0519007966,
0.3334442377,
0.0832393616,
-0.0684862882,
0.3025781512,
-0.1539805084,
-0.099962756,
-0.2193927914,
0.1600320488,
-0.2081463337,
0.3932881951,
-0.1847999692,
-0.0114566162,
0.1140616089,
0.3009460568,
0.3354036808,
-0.0449947305,
0.1436927915,
0.1372203082,
0.351652652,
-0.408049494,
0.1773459017,
-0.14447999,
0.0148588233,
-0.0702790394,
0.0008021221,
0.0222214386,
0.0371157378,
-0.1540628821,
0.2090328038,
0.4429772198,
-0.2516426146,
0.1013134867,
0.2070246339,
-0.1443167627,
0.1512601674,
0.0537341535,
0.0145271141,
0.0511469916,
0.3569310009,
-0.3507201672,
0.3197164536,
-0.1200648844,
0.0391064025,
0.1024586409,
-0.2943322361,
-0.0493201353,
0.2626118064,
-0.2538185716,
-0.0398404375,
-0.1569646299,
0.2941782773,
-0.117847994,
0.0144358128,
-0.1574144065,
0.2634152174,
-0.0796027407,
-0.0266707875,
-0.2245196104,
-0.1667220891,
-0.2416518033,
-0.008191362,
0.1487243325,
-0.1794108301,
0.2924160361,
0.2659938037,
-0.0218945667,
-0.5418661833,
-0.1938092858,
0.1615170836,
-0.0660707429,
-0.3661064506,
0.0962020531,
0.4262839854,
-0.10736534,
0.1673748493,
0.4767377377,
0.3966048956,
0.3219353855,
-0.1423860192,
0.0870658159,
0.0576878488,
-0.1005894989,
-0.187933445,
0.2051904649,
0.0790676028,
-0.0485187769,
0.2097938657,
0.2723873556,
-0.2374074459,
-0.1949214935,
0.0235633682,
-0.1338630319,
-0.0635164231,
0.2793865204,
-0.1369123608,
0.0430591255,
-0.4318421483,
0.2305631638,
-0.2953835428,
0.3097436726,
0.5763677359,
-0.0516445078,
0.1679921746,
-0.2874498665,
0.1143855974,
-0.0044972561,
0.6133633852,
0.2889215648,
0.055917982,
-0.4034256935,
-0.4311850965,
-0.7414610982,
0.0106794238,
0.0747838989,
0.093622297,
-0.1725305021,
0.088113226,
-0.0538028777,
0.0651677102,
0.2490347624,
0.08209306,
0.1977203637,
0.0279186759,
-0.0566339865,
-0.0552849099,
-0.2002748251,
-0.0143966516,
0.1361457855,
-0.3531444073,
0.1582951993,
-0.3870316744,
0.1298182607,
-0.4399927557,
0.270637989,
-0.0487773269,
0.2809255421,
0.28762725,
0.1505337358,
0.3705019951,
-0.0907474607,
-0.0546103492,
-0.1950241178,
-0.0690791309,
-0.1504272819,
0.1500721872,
0.2182559371,
0.1705780178,
-0.0018084683,
-0.3095669746,
-0.4495082796,
0.0844903439,
0.0031599104,
-0.0372305959,
-0.1925240159,
0.0436133221,
-0.1081489399,
-0.1006139368,
0.335601151,
0.2299155891,
-0.1436967403,
0.0228843838,
-0.3451315165,
-0.3848656714,
0.4460464418,
-0.1559344232,
-0.2160534114,
-0.2820882797,
0.0934074894,
-0.0535833426,
-0.0098090852,
-0.4851158261,
0.3032737374,
0.253323108,
-0.0807628185,
-0.2000130564,
0.4165593088,
-0.1124196872,
-0.0350135192,
0.0745054185,
0.4259935617,
0.0531242713,
-0.2661994398,
-0.2081852257,
-0.1793359667
] |
https://github.com/huggingface/datasets/issues/854 | wmt16 does not download | The data storage is down at the moment. Sorry. Hopefully, it will come back soon. Apologies for the inconvenience ... | Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz | 20 | wmt16 does not download
Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
The data storage is down at the moment. Sorry. Hopefully, it will come back soon. Apologies for the inconvenience ... | [
-0.4449557364,
-0.4224757254,
-0.0815042108,
0.4179416597,
0.504688859,
0.1244977266,
0.1281457543,
0.2139968425,
0.2786704302,
0.0013542771,
0.0727130547,
-0.110461466,
-0.2351615131,
0.0972072557,
0.2837481797,
-0.0405809805,
-0.1238626093,
-0.0028829686,
-0.485932827,
0.0390386283,
-0.2367145717,
0.1167634651,
-0.1118451729,
-0.0652594566,
-0.3488698602,
-0.0671077967,
-0.1394525915,
0.0584426895,
-0.3605147302,
-0.2884306908,
0.3591670692,
0.0484931469,
0.2195619643,
0.4216263294,
-0.0001045874,
-0.034425132,
0.2609169483,
-0.1103320569,
-0.164305985,
-0.3919683099,
-0.3435018659,
-0.1982589364,
-0.086341396,
-0.0891986564,
-0.0184495673,
-0.1176215261,
-0.1129946411,
-0.3425154984,
0.2524400353,
0.3540216386,
0.3467801511,
0.2697253227,
0.3545670509,
-0.191429764,
0.1382768154,
0.169979617,
0.0555041954,
0.1284029782,
-0.0070465356,
-0.140078485,
0.1166838706,
0.1394855827,
-0.0372344144,
0.2416532338,
0.1042876616,
-0.158645004,
0.0307698622,
-0.2549284995,
0.2687596977,
0.1392052323,
0.395015806,
-0.1157426909,
-0.1314077675,
0.1513413787,
0.0650622249,
-0.5738536119,
0.2200945914,
0.500962615,
-0.1863726974,
0.1921612918,
-0.271476537,
-0.0870951265,
0.0238121003,
0.1413064599,
-0.2197031677,
0.2921699584,
-0.2135500759,
0.0183898807,
0.1849007756,
-0.1017094702,
0.0880928785,
-0.0139021743,
0.1450837255,
0.2526480258,
-0.2700493932,
0.1261814684,
-0.1145766824,
0.1292569339,
0.0806540698,
0.0086125266,
-0.2520151734,
-0.150721997,
0.2881467342,
-0.0259476565,
0.026900623,
0.1888411343,
-0.21948798,
0.0834905058,
0.0834253579,
0.1954315603,
-0.0369618908,
-0.0546254143,
-0.3145236671,
-0.2925894856,
0.0326479822,
-0.0937112421,
0.1151881218,
0.0685743541,
-0.2826322317,
0.0161389336,
0.0049902871,
-0.1779201627,
0.0023905262,
0.3310003281,
-0.2150159627,
0.1485762149,
0.2978155613,
0.0600115359,
-0.0970927179,
-0.1061490178,
-0.2628636956,
-0.0803783238,
-0.1983224452,
-0.0564078055,
0.3051493466,
-0.0921541825,
0.3761103451,
0.0229629911,
-0.1797794551,
-0.1802680641,
0.0199734271,
-0.183058992,
0.1112454981,
0.4338180721,
0.0693688169,
0.2375740409,
0.0718804747,
0.2547794282,
-0.0013335496,
0.2246191502,
-0.0462483615,
-0.4587914348,
0.1238832399,
0.3703135252,
-0.1037134901,
-0.1154195666,
0.0248289108,
-0.1448107213,
0.0704498291,
0.2599557042,
-0.1440330744,
-0.2033017427,
-0.1653169096,
-0.2190621197,
0.5277343392,
0.3939630985,
0.0342415124,
-0.0421028659,
-0.4067510068,
-0.2453192919,
0.3608447313,
0.2823587358,
0.0014632419,
0.1401394904,
-0.3047559261,
0.0974317491,
0.2519401312,
-0.2148155272,
-0.256593436,
0.2118155211,
-0.2131185234,
-0.0246802829,
-0.0519019924,
0.0910041183,
0.0106456019,
0.0145028941,
0.2670853734,
0.1857901812,
-0.3312122226,
0.0249925405,
-0.197098285,
-0.3113335967,
0.446200788,
0.2143391371,
0.2483341843,
-0.070721902,
0.0157014001,
0.1144673154,
0.3708970845,
0.2580590248,
0.0792701617,
-0.0338330865,
0.2125308365,
0.0079512652,
-0.2015175372,
-0.1089140922,
-0.2836963534,
0.1032906324,
0.2451008558,
-0.077865243,
0.0508961752,
-0.0072362795,
-0.4273626804,
0.0413817018,
-0.1689579636,
-0.1493410617,
0.1657438576,
-0.0761243477,
0.1448942423,
-0.0492951944,
-0.0764249042,
-0.0518813767,
-0.2385363281,
0.0705093741,
0.1058797687,
-0.0204062909,
-0.3056631982,
-0.0091240723,
0.2450968623,
-0.0581195578,
0.1331098378,
-0.0372366011,
-0.1354189813,
0.2523603737,
0.1233305633,
0.2528030276,
-0.0802925155,
0.0251828954,
0.1523815095,
-0.4525059462,
0.0430600792,
0.0419444889,
0.1044073105,
-0.1576234996,
0.2183500826,
-0.0314421132,
-0.0910323188,
0.0418951176,
0.1744561493,
0.1563685238,
0.1477833688,
-0.0249364376,
0.090183422,
-0.1331831068,
0.3215934634,
-0.0938104242,
0.2526178956,
-0.0654186681,
-0.0649178848,
-0.1171568185,
0.4020734429,
0.1520849913,
0.0896186382,
0.0442312099,
-0.3025978208,
0.02850236,
-0.21578224,
0.3114799857,
0.4959134758,
0.1446498185,
0.1639538109,
0.1199487969,
0.1569378376,
-0.2816539109,
0.4310475886,
-0.040102642,
0.2351525128,
0.2522005439,
-0.1961639374,
-0.0563997924,
-0.2167146355,
0.277897805,
0.0175765976,
0.2078112811,
-0.1578261554,
-0.2426186353,
-0.2548193336,
-0.0673507378,
-0.4623289704,
-0.5436557531,
-0.2178744972,
-0.1321283579,
-0.2382996827,
0.0240337588,
-0.0367040336,
0.1426419616,
-0.0420636162,
-0.1025990844,
0.0817945451,
0.1268723905,
0.0026957989,
-0.0534276068,
-0.0635397732,
0.1841250956,
0.2524003983,
-0.3535849452,
0.5754957199,
-0.3072550595,
0.029987175,
-0.2428166121,
-0.1333233416,
-0.0243879966,
-0.0370057598,
0.0867501125,
0.3703728914,
0.3781490922,
0.2589347064,
-0.0355773233,
0.3693835139,
-0.282751441,
-0.062775746,
-0.1214672178,
0.1225733534,
0.0374439918,
-0.2173152566,
-0.5624724627,
-0.4598296583,
-0.4110192955,
-0.0917026401,
0.0304596424,
0.1562967002,
0.1512019336,
0.0725565255,
0.0382240079,
0.1439453661,
-0.0554898307,
-0.3277633786,
-0.3739012182,
0.3905155659,
-0.2670379579,
-0.4456061125,
0.2986953259,
0.0598830283,
0.4613801539,
0.2046917677,
-0.4112802744,
0.3908864856,
-0.1190450266,
-0.0669096708,
0.0473833308,
0.1677638143,
0.1566011012,
-0.0419888087,
-0.1558274627,
-0.1271514595,
-0.1122651696,
-0.1918481141,
-0.198319152,
0.5375468731,
-0.1967825443,
0.3370723128,
0.0668312013,
0.713924706,
0.1417640746,
-0.1678286493,
0.2005017996,
-0.1050599515,
0.1060317457,
0.1251527369,
-0.4757867754,
0.1009271443,
-0.1338582784,
0.171340391,
0.1957197338,
0.0078043714,
0.1225345805,
-0.2567453384,
0.0096977577,
-0.2643206418,
-0.246010527,
0.0622867048,
0.0964220688,
0.4988242388,
0.1776275039,
0.0379240364,
-0.0200699978,
-0.0173671432,
-0.013074901,
0.3110688925,
0.1599546671,
0.1306658536,
0.126028195,
-0.0890350714,
-0.3551559448,
0.0651446208,
-0.0090180784,
0.4483256936,
-0.0488909818,
-0.1861807108,
-0.0250149667,
-0.0229499415,
0.5050638914,
0.1352036595,
0.2418664247,
-0.0990695804,
-0.1132145226,
-0.3881943226,
-0.0088245869,
-0.0477997251,
-0.0792362019,
0.1792101264,
0.0337591171,
-0.2113886178,
-0.1805661619,
0.3363738656,
0.1965858936,
-0.2405359149,
-0.3452709317,
-0.2148283124,
-0.3769049346,
-0.3758884966,
-0.0632991567,
0.0156028494,
0.2370367348,
-0.271061331,
-0.0545756184,
0.01277625,
-0.0314766951,
0.0812898502,
-0.0627887025,
0.2074973434,
0.0170505494,
0.3276123405,
0.2472557873,
0.2483443916,
0.3023763597,
0.4499740005,
-0.0790659189,
0.0300895479,
-0.0450309739,
-0.0318386108,
0.1685842276,
0.0883090198,
-0.1288240552,
0.0313172042,
0.3365074992,
0.1797916144,
-0.56870538,
0.1187114939,
0.414295882,
-0.0442774817,
-0.2248915434,
-0.2964838743,
0.1844128072,
0.0234360695,
0.198057875,
0.2240129858,
0.0846083015,
-0.102600351,
-0.3729059398,
0.0741111115,
0.7303836346,
0.0040983316,
-0.006337367,
0.0541394874,
-0.2457990646,
0.0493162237,
0.1965427101,
0.0595951006,
-0.2025648952,
0.0823458731,
0.0715466216,
-0.1753579378,
0.0899461657,
0.163887769,
-0.2038238347,
0.1945638359,
-0.0903948173,
0.3699929118,
0.1237481087,
0.27324301,
-0.2995002866,
-0.0765024722,
-0.1843221188,
0.2496199906,
-0.1579501629,
0.5097187757,
-0.2337877601,
-0.0218785256,
0.2522150278,
-0.3380151391,
-0.3348367214,
-0.0194522664,
-0.6515513659,
0.1543288231,
-0.2069602907,
0.054442361,
0.2665854692,
0.0717393905,
0.0452234372,
0.3972820044,
-0.1099758968,
0.1481292248,
-0.2182460725,
-0.1837648898,
-0.1499445885,
0.1043709219,
0.0388211384,
-0.2055920064,
-0.2422317415,
-0.0304814428,
-0.0293194409,
0.1018593162,
0.1618235409,
-0.0849091113,
0.262901783,
-0.1588937491,
-0.1314068139,
-0.0529144034,
-0.0808756575,
-0.13139534,
0.2391679734,
0.0814329535,
-0.1059004068,
0.3598033786,
0.1204866618,
-0.035793297,
-0.1756921113,
0.418289572,
-0.1213935539,
0.0133035034,
0.4005339742,
0.281683445,
-0.1847718656,
-0.4077314138,
0.0011177883,
-0.2280676365,
-0.2547610402,
0.2138409615,
0.1572355628,
0.2700098753,
-0.0490146801,
0.1123867184,
0.2817121148,
-0.2257378697,
0.1532506645,
-0.437489301,
-0.361328423,
-0.0451180711,
-0.0801633969,
0.1647504717,
-0.0839296356,
0.3007490933,
0.1840869039,
0.3149894774,
-0.398221463,
0.1844786108,
-0.05545054,
0.0410330743,
0.4086412489,
-0.1523308158,
0.2701258063,
-0.0001027845,
0.2006691247,
0.0359568819,
-0.3535062373,
-0.2827749848,
-0.1789456308,
0.0797092915,
0.0645149052,
-0.3131314814,
0.2315576524,
-0.2747570276,
-0.1528652161,
0.1786976457,
0.047385864,
0.1009498537,
-0.0488116071,
0.1522328109,
0.0410716683,
0.0885960311,
-0.2128449976,
0.070073843,
-0.0519007966,
0.3334442377,
0.0832393616,
-0.0684862882,
0.3025781512,
-0.1539805084,
-0.099962756,
-0.2193927914,
0.1600320488,
-0.2081463337,
0.3932881951,
-0.1847999692,
-0.0114566162,
0.1140616089,
0.3009460568,
0.3354036808,
-0.0449947305,
0.1436927915,
0.1372203082,
0.351652652,
-0.408049494,
0.1773459017,
-0.14447999,
0.0148588233,
-0.0702790394,
0.0008021221,
0.0222214386,
0.0371157378,
-0.1540628821,
0.2090328038,
0.4429772198,
-0.2516426146,
0.1013134867,
0.2070246339,
-0.1443167627,
0.1512601674,
0.0537341535,
0.0145271141,
0.0511469916,
0.3569310009,
-0.3507201672,
0.3197164536,
-0.1200648844,
0.0391064025,
0.1024586409,
-0.2943322361,
-0.0493201353,
0.2626118064,
-0.2538185716,
-0.0398404375,
-0.1569646299,
0.2941782773,
-0.117847994,
0.0144358128,
-0.1574144065,
0.2634152174,
-0.0796027407,
-0.0266707875,
-0.2245196104,
-0.1667220891,
-0.2416518033,
-0.008191362,
0.1487243325,
-0.1794108301,
0.2924160361,
0.2659938037,
-0.0218945667,
-0.5418661833,
-0.1938092858,
0.1615170836,
-0.0660707429,
-0.3661064506,
0.0962020531,
0.4262839854,
-0.10736534,
0.1673748493,
0.4767377377,
0.3966048956,
0.3219353855,
-0.1423860192,
0.0870658159,
0.0576878488,
-0.1005894989,
-0.187933445,
0.2051904649,
0.0790676028,
-0.0485187769,
0.2097938657,
0.2723873556,
-0.2374074459,
-0.1949214935,
0.0235633682,
-0.1338630319,
-0.0635164231,
0.2793865204,
-0.1369123608,
0.0430591255,
-0.4318421483,
0.2305631638,
-0.2953835428,
0.3097436726,
0.5763677359,
-0.0516445078,
0.1679921746,
-0.2874498665,
0.1143855974,
-0.0044972561,
0.6133633852,
0.2889215648,
0.055917982,
-0.4034256935,
-0.4311850965,
-0.7414610982,
0.0106794238,
0.0747838989,
0.093622297,
-0.1725305021,
0.088113226,
-0.0538028777,
0.0651677102,
0.2490347624,
0.08209306,
0.1977203637,
0.0279186759,
-0.0566339865,
-0.0552849099,
-0.2002748251,
-0.0143966516,
0.1361457855,
-0.3531444073,
0.1582951993,
-0.3870316744,
0.1298182607,
-0.4399927557,
0.270637989,
-0.0487773269,
0.2809255421,
0.28762725,
0.1505337358,
0.3705019951,
-0.0907474607,
-0.0546103492,
-0.1950241178,
-0.0690791309,
-0.1504272819,
0.1500721872,
0.2182559371,
0.1705780178,
-0.0018084683,
-0.3095669746,
-0.4495082796,
0.0844903439,
0.0031599104,
-0.0372305959,
-0.1925240159,
0.0436133221,
-0.1081489399,
-0.1006139368,
0.335601151,
0.2299155891,
-0.1436967403,
0.0228843838,
-0.3451315165,
-0.3848656714,
0.4460464418,
-0.1559344232,
-0.2160534114,
-0.2820882797,
0.0934074894,
-0.0535833426,
-0.0098090852,
-0.4851158261,
0.3032737374,
0.253323108,
-0.0807628185,
-0.2000130564,
0.4165593088,
-0.1124196872,
-0.0350135192,
0.0745054185,
0.4259935617,
0.0531242713,
-0.2661994398,
-0.2081852257,
-0.1793359667
] |
https://github.com/huggingface/datasets/issues/854 | wmt16 does not download | Dear great huggingface team, this is not working yet, I really appreciate some temporary fix on this, I need this for my project and this is time sensitive and I will be grateful for your help on this. | Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz | 38 | wmt16 does not download
Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
Dear great huggingface team, this is not working yet, I really appreciate some temporary fix on this, I need this for my project and this is time sensitive and I will be grateful for your help on this. | [
-0.4449557364,
-0.4224757254,
-0.0815042108,
0.4179416597,
0.504688859,
0.1244977266,
0.1281457543,
0.2139968425,
0.2786704302,
0.0013542771,
0.0727130547,
-0.110461466,
-0.2351615131,
0.0972072557,
0.2837481797,
-0.0405809805,
-0.1238626093,
-0.0028829686,
-0.485932827,
0.0390386283,
-0.2367145717,
0.1167634651,
-0.1118451729,
-0.0652594566,
-0.3488698602,
-0.0671077967,
-0.1394525915,
0.0584426895,
-0.3605147302,
-0.2884306908,
0.3591670692,
0.0484931469,
0.2195619643,
0.4216263294,
-0.0001045874,
-0.034425132,
0.2609169483,
-0.1103320569,
-0.164305985,
-0.3919683099,
-0.3435018659,
-0.1982589364,
-0.086341396,
-0.0891986564,
-0.0184495673,
-0.1176215261,
-0.1129946411,
-0.3425154984,
0.2524400353,
0.3540216386,
0.3467801511,
0.2697253227,
0.3545670509,
-0.191429764,
0.1382768154,
0.169979617,
0.0555041954,
0.1284029782,
-0.0070465356,
-0.140078485,
0.1166838706,
0.1394855827,
-0.0372344144,
0.2416532338,
0.1042876616,
-0.158645004,
0.0307698622,
-0.2549284995,
0.2687596977,
0.1392052323,
0.395015806,
-0.1157426909,
-0.1314077675,
0.1513413787,
0.0650622249,
-0.5738536119,
0.2200945914,
0.500962615,
-0.1863726974,
0.1921612918,
-0.271476537,
-0.0870951265,
0.0238121003,
0.1413064599,
-0.2197031677,
0.2921699584,
-0.2135500759,
0.0183898807,
0.1849007756,
-0.1017094702,
0.0880928785,
-0.0139021743,
0.1450837255,
0.2526480258,
-0.2700493932,
0.1261814684,
-0.1145766824,
0.1292569339,
0.0806540698,
0.0086125266,
-0.2520151734,
-0.150721997,
0.2881467342,
-0.0259476565,
0.026900623,
0.1888411343,
-0.21948798,
0.0834905058,
0.0834253579,
0.1954315603,
-0.0369618908,
-0.0546254143,
-0.3145236671,
-0.2925894856,
0.0326479822,
-0.0937112421,
0.1151881218,
0.0685743541,
-0.2826322317,
0.0161389336,
0.0049902871,
-0.1779201627,
0.0023905262,
0.3310003281,
-0.2150159627,
0.1485762149,
0.2978155613,
0.0600115359,
-0.0970927179,
-0.1061490178,
-0.2628636956,
-0.0803783238,
-0.1983224452,
-0.0564078055,
0.3051493466,
-0.0921541825,
0.3761103451,
0.0229629911,
-0.1797794551,
-0.1802680641,
0.0199734271,
-0.183058992,
0.1112454981,
0.4338180721,
0.0693688169,
0.2375740409,
0.0718804747,
0.2547794282,
-0.0013335496,
0.2246191502,
-0.0462483615,
-0.4587914348,
0.1238832399,
0.3703135252,
-0.1037134901,
-0.1154195666,
0.0248289108,
-0.1448107213,
0.0704498291,
0.2599557042,
-0.1440330744,
-0.2033017427,
-0.1653169096,
-0.2190621197,
0.5277343392,
0.3939630985,
0.0342415124,
-0.0421028659,
-0.4067510068,
-0.2453192919,
0.3608447313,
0.2823587358,
0.0014632419,
0.1401394904,
-0.3047559261,
0.0974317491,
0.2519401312,
-0.2148155272,
-0.256593436,
0.2118155211,
-0.2131185234,
-0.0246802829,
-0.0519019924,
0.0910041183,
0.0106456019,
0.0145028941,
0.2670853734,
0.1857901812,
-0.3312122226,
0.0249925405,
-0.197098285,
-0.3113335967,
0.446200788,
0.2143391371,
0.2483341843,
-0.070721902,
0.0157014001,
0.1144673154,
0.3708970845,
0.2580590248,
0.0792701617,
-0.0338330865,
0.2125308365,
0.0079512652,
-0.2015175372,
-0.1089140922,
-0.2836963534,
0.1032906324,
0.2451008558,
-0.077865243,
0.0508961752,
-0.0072362795,
-0.4273626804,
0.0413817018,
-0.1689579636,
-0.1493410617,
0.1657438576,
-0.0761243477,
0.1448942423,
-0.0492951944,
-0.0764249042,
-0.0518813767,
-0.2385363281,
0.0705093741,
0.1058797687,
-0.0204062909,
-0.3056631982,
-0.0091240723,
0.2450968623,
-0.0581195578,
0.1331098378,
-0.0372366011,
-0.1354189813,
0.2523603737,
0.1233305633,
0.2528030276,
-0.0802925155,
0.0251828954,
0.1523815095,
-0.4525059462,
0.0430600792,
0.0419444889,
0.1044073105,
-0.1576234996,
0.2183500826,
-0.0314421132,
-0.0910323188,
0.0418951176,
0.1744561493,
0.1563685238,
0.1477833688,
-0.0249364376,
0.090183422,
-0.1331831068,
0.3215934634,
-0.0938104242,
0.2526178956,
-0.0654186681,
-0.0649178848,
-0.1171568185,
0.4020734429,
0.1520849913,
0.0896186382,
0.0442312099,
-0.3025978208,
0.02850236,
-0.21578224,
0.3114799857,
0.4959134758,
0.1446498185,
0.1639538109,
0.1199487969,
0.1569378376,
-0.2816539109,
0.4310475886,
-0.040102642,
0.2351525128,
0.2522005439,
-0.1961639374,
-0.0563997924,
-0.2167146355,
0.277897805,
0.0175765976,
0.2078112811,
-0.1578261554,
-0.2426186353,
-0.2548193336,
-0.0673507378,
-0.4623289704,
-0.5436557531,
-0.2178744972,
-0.1321283579,
-0.2382996827,
0.0240337588,
-0.0367040336,
0.1426419616,
-0.0420636162,
-0.1025990844,
0.0817945451,
0.1268723905,
0.0026957989,
-0.0534276068,
-0.0635397732,
0.1841250956,
0.2524003983,
-0.3535849452,
0.5754957199,
-0.3072550595,
0.029987175,
-0.2428166121,
-0.1333233416,
-0.0243879966,
-0.0370057598,
0.0867501125,
0.3703728914,
0.3781490922,
0.2589347064,
-0.0355773233,
0.3693835139,
-0.282751441,
-0.062775746,
-0.1214672178,
0.1225733534,
0.0374439918,
-0.2173152566,
-0.5624724627,
-0.4598296583,
-0.4110192955,
-0.0917026401,
0.0304596424,
0.1562967002,
0.1512019336,
0.0725565255,
0.0382240079,
0.1439453661,
-0.0554898307,
-0.3277633786,
-0.3739012182,
0.3905155659,
-0.2670379579,
-0.4456061125,
0.2986953259,
0.0598830283,
0.4613801539,
0.2046917677,
-0.4112802744,
0.3908864856,
-0.1190450266,
-0.0669096708,
0.0473833308,
0.1677638143,
0.1566011012,
-0.0419888087,
-0.1558274627,
-0.1271514595,
-0.1122651696,
-0.1918481141,
-0.198319152,
0.5375468731,
-0.1967825443,
0.3370723128,
0.0668312013,
0.713924706,
0.1417640746,
-0.1678286493,
0.2005017996,
-0.1050599515,
0.1060317457,
0.1251527369,
-0.4757867754,
0.1009271443,
-0.1338582784,
0.171340391,
0.1957197338,
0.0078043714,
0.1225345805,
-0.2567453384,
0.0096977577,
-0.2643206418,
-0.246010527,
0.0622867048,
0.0964220688,
0.4988242388,
0.1776275039,
0.0379240364,
-0.0200699978,
-0.0173671432,
-0.013074901,
0.3110688925,
0.1599546671,
0.1306658536,
0.126028195,
-0.0890350714,
-0.3551559448,
0.0651446208,
-0.0090180784,
0.4483256936,
-0.0488909818,
-0.1861807108,
-0.0250149667,
-0.0229499415,
0.5050638914,
0.1352036595,
0.2418664247,
-0.0990695804,
-0.1132145226,
-0.3881943226,
-0.0088245869,
-0.0477997251,
-0.0792362019,
0.1792101264,
0.0337591171,
-0.2113886178,
-0.1805661619,
0.3363738656,
0.1965858936,
-0.2405359149,
-0.3452709317,
-0.2148283124,
-0.3769049346,
-0.3758884966,
-0.0632991567,
0.0156028494,
0.2370367348,
-0.271061331,
-0.0545756184,
0.01277625,
-0.0314766951,
0.0812898502,
-0.0627887025,
0.2074973434,
0.0170505494,
0.3276123405,
0.2472557873,
0.2483443916,
0.3023763597,
0.4499740005,
-0.0790659189,
0.0300895479,
-0.0450309739,
-0.0318386108,
0.1685842276,
0.0883090198,
-0.1288240552,
0.0313172042,
0.3365074992,
0.1797916144,
-0.56870538,
0.1187114939,
0.414295882,
-0.0442774817,
-0.2248915434,
-0.2964838743,
0.1844128072,
0.0234360695,
0.198057875,
0.2240129858,
0.0846083015,
-0.102600351,
-0.3729059398,
0.0741111115,
0.7303836346,
0.0040983316,
-0.006337367,
0.0541394874,
-0.2457990646,
0.0493162237,
0.1965427101,
0.0595951006,
-0.2025648952,
0.0823458731,
0.0715466216,
-0.1753579378,
0.0899461657,
0.163887769,
-0.2038238347,
0.1945638359,
-0.0903948173,
0.3699929118,
0.1237481087,
0.27324301,
-0.2995002866,
-0.0765024722,
-0.1843221188,
0.2496199906,
-0.1579501629,
0.5097187757,
-0.2337877601,
-0.0218785256,
0.2522150278,
-0.3380151391,
-0.3348367214,
-0.0194522664,
-0.6515513659,
0.1543288231,
-0.2069602907,
0.054442361,
0.2665854692,
0.0717393905,
0.0452234372,
0.3972820044,
-0.1099758968,
0.1481292248,
-0.2182460725,
-0.1837648898,
-0.1499445885,
0.1043709219,
0.0388211384,
-0.2055920064,
-0.2422317415,
-0.0304814428,
-0.0293194409,
0.1018593162,
0.1618235409,
-0.0849091113,
0.262901783,
-0.1588937491,
-0.1314068139,
-0.0529144034,
-0.0808756575,
-0.13139534,
0.2391679734,
0.0814329535,
-0.1059004068,
0.3598033786,
0.1204866618,
-0.035793297,
-0.1756921113,
0.418289572,
-0.1213935539,
0.0133035034,
0.4005339742,
0.281683445,
-0.1847718656,
-0.4077314138,
0.0011177883,
-0.2280676365,
-0.2547610402,
0.2138409615,
0.1572355628,
0.2700098753,
-0.0490146801,
0.1123867184,
0.2817121148,
-0.2257378697,
0.1532506645,
-0.437489301,
-0.361328423,
-0.0451180711,
-0.0801633969,
0.1647504717,
-0.0839296356,
0.3007490933,
0.1840869039,
0.3149894774,
-0.398221463,
0.1844786108,
-0.05545054,
0.0410330743,
0.4086412489,
-0.1523308158,
0.2701258063,
-0.0001027845,
0.2006691247,
0.0359568819,
-0.3535062373,
-0.2827749848,
-0.1789456308,
0.0797092915,
0.0645149052,
-0.3131314814,
0.2315576524,
-0.2747570276,
-0.1528652161,
0.1786976457,
0.047385864,
0.1009498537,
-0.0488116071,
0.1522328109,
0.0410716683,
0.0885960311,
-0.2128449976,
0.070073843,
-0.0519007966,
0.3334442377,
0.0832393616,
-0.0684862882,
0.3025781512,
-0.1539805084,
-0.099962756,
-0.2193927914,
0.1600320488,
-0.2081463337,
0.3932881951,
-0.1847999692,
-0.0114566162,
0.1140616089,
0.3009460568,
0.3354036808,
-0.0449947305,
0.1436927915,
0.1372203082,
0.351652652,
-0.408049494,
0.1773459017,
-0.14447999,
0.0148588233,
-0.0702790394,
0.0008021221,
0.0222214386,
0.0371157378,
-0.1540628821,
0.2090328038,
0.4429772198,
-0.2516426146,
0.1013134867,
0.2070246339,
-0.1443167627,
0.1512601674,
0.0537341535,
0.0145271141,
0.0511469916,
0.3569310009,
-0.3507201672,
0.3197164536,
-0.1200648844,
0.0391064025,
0.1024586409,
-0.2943322361,
-0.0493201353,
0.2626118064,
-0.2538185716,
-0.0398404375,
-0.1569646299,
0.2941782773,
-0.117847994,
0.0144358128,
-0.1574144065,
0.2634152174,
-0.0796027407,
-0.0266707875,
-0.2245196104,
-0.1667220891,
-0.2416518033,
-0.008191362,
0.1487243325,
-0.1794108301,
0.2924160361,
0.2659938037,
-0.0218945667,
-0.5418661833,
-0.1938092858,
0.1615170836,
-0.0660707429,
-0.3661064506,
0.0962020531,
0.4262839854,
-0.10736534,
0.1673748493,
0.4767377377,
0.3966048956,
0.3219353855,
-0.1423860192,
0.0870658159,
0.0576878488,
-0.1005894989,
-0.187933445,
0.2051904649,
0.0790676028,
-0.0485187769,
0.2097938657,
0.2723873556,
-0.2374074459,
-0.1949214935,
0.0235633682,
-0.1338630319,
-0.0635164231,
0.2793865204,
-0.1369123608,
0.0430591255,
-0.4318421483,
0.2305631638,
-0.2953835428,
0.3097436726,
0.5763677359,
-0.0516445078,
0.1679921746,
-0.2874498665,
0.1143855974,
-0.0044972561,
0.6133633852,
0.2889215648,
0.055917982,
-0.4034256935,
-0.4311850965,
-0.7414610982,
0.0106794238,
0.0747838989,
0.093622297,
-0.1725305021,
0.088113226,
-0.0538028777,
0.0651677102,
0.2490347624,
0.08209306,
0.1977203637,
0.0279186759,
-0.0566339865,
-0.0552849099,
-0.2002748251,
-0.0143966516,
0.1361457855,
-0.3531444073,
0.1582951993,
-0.3870316744,
0.1298182607,
-0.4399927557,
0.270637989,
-0.0487773269,
0.2809255421,
0.28762725,
0.1505337358,
0.3705019951,
-0.0907474607,
-0.0546103492,
-0.1950241178,
-0.0690791309,
-0.1504272819,
0.1500721872,
0.2182559371,
0.1705780178,
-0.0018084683,
-0.3095669746,
-0.4495082796,
0.0844903439,
0.0031599104,
-0.0372305959,
-0.1925240159,
0.0436133221,
-0.1081489399,
-0.1006139368,
0.335601151,
0.2299155891,
-0.1436967403,
0.0228843838,
-0.3451315165,
-0.3848656714,
0.4460464418,
-0.1559344232,
-0.2160534114,
-0.2820882797,
0.0934074894,
-0.0535833426,
-0.0098090852,
-0.4851158261,
0.3032737374,
0.253323108,
-0.0807628185,
-0.2000130564,
0.4165593088,
-0.1124196872,
-0.0350135192,
0.0745054185,
0.4259935617,
0.0531242713,
-0.2661994398,
-0.2081852257,
-0.1793359667
] |
https://github.com/huggingface/datasets/issues/854 | wmt16 does not download | We have reached out to the OPUS team which is currently working on making the data available again. Cc @jorgtied | Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz | 20 | wmt16 does not download
Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
We have reached out to the OPUS team which is currently working on making the data available again. Cc @jorgtied | [
-0.4449557364,
-0.4224757254,
-0.0815042108,
0.4179416597,
0.504688859,
0.1244977266,
0.1281457543,
0.2139968425,
0.2786704302,
0.0013542771,
0.0727130547,
-0.110461466,
-0.2351615131,
0.0972072557,
0.2837481797,
-0.0405809805,
-0.1238626093,
-0.0028829686,
-0.485932827,
0.0390386283,
-0.2367145717,
0.1167634651,
-0.1118451729,
-0.0652594566,
-0.3488698602,
-0.0671077967,
-0.1394525915,
0.0584426895,
-0.3605147302,
-0.2884306908,
0.3591670692,
0.0484931469,
0.2195619643,
0.4216263294,
-0.0001045874,
-0.034425132,
0.2609169483,
-0.1103320569,
-0.164305985,
-0.3919683099,
-0.3435018659,
-0.1982589364,
-0.086341396,
-0.0891986564,
-0.0184495673,
-0.1176215261,
-0.1129946411,
-0.3425154984,
0.2524400353,
0.3540216386,
0.3467801511,
0.2697253227,
0.3545670509,
-0.191429764,
0.1382768154,
0.169979617,
0.0555041954,
0.1284029782,
-0.0070465356,
-0.140078485,
0.1166838706,
0.1394855827,
-0.0372344144,
0.2416532338,
0.1042876616,
-0.158645004,
0.0307698622,
-0.2549284995,
0.2687596977,
0.1392052323,
0.395015806,
-0.1157426909,
-0.1314077675,
0.1513413787,
0.0650622249,
-0.5738536119,
0.2200945914,
0.500962615,
-0.1863726974,
0.1921612918,
-0.271476537,
-0.0870951265,
0.0238121003,
0.1413064599,
-0.2197031677,
0.2921699584,
-0.2135500759,
0.0183898807,
0.1849007756,
-0.1017094702,
0.0880928785,
-0.0139021743,
0.1450837255,
0.2526480258,
-0.2700493932,
0.1261814684,
-0.1145766824,
0.1292569339,
0.0806540698,
0.0086125266,
-0.2520151734,
-0.150721997,
0.2881467342,
-0.0259476565,
0.026900623,
0.1888411343,
-0.21948798,
0.0834905058,
0.0834253579,
0.1954315603,
-0.0369618908,
-0.0546254143,
-0.3145236671,
-0.2925894856,
0.0326479822,
-0.0937112421,
0.1151881218,
0.0685743541,
-0.2826322317,
0.0161389336,
0.0049902871,
-0.1779201627,
0.0023905262,
0.3310003281,
-0.2150159627,
0.1485762149,
0.2978155613,
0.0600115359,
-0.0970927179,
-0.1061490178,
-0.2628636956,
-0.0803783238,
-0.1983224452,
-0.0564078055,
0.3051493466,
-0.0921541825,
0.3761103451,
0.0229629911,
-0.1797794551,
-0.1802680641,
0.0199734271,
-0.183058992,
0.1112454981,
0.4338180721,
0.0693688169,
0.2375740409,
0.0718804747,
0.2547794282,
-0.0013335496,
0.2246191502,
-0.0462483615,
-0.4587914348,
0.1238832399,
0.3703135252,
-0.1037134901,
-0.1154195666,
0.0248289108,
-0.1448107213,
0.0704498291,
0.2599557042,
-0.1440330744,
-0.2033017427,
-0.1653169096,
-0.2190621197,
0.5277343392,
0.3939630985,
0.0342415124,
-0.0421028659,
-0.4067510068,
-0.2453192919,
0.3608447313,
0.2823587358,
0.0014632419,
0.1401394904,
-0.3047559261,
0.0974317491,
0.2519401312,
-0.2148155272,
-0.256593436,
0.2118155211,
-0.2131185234,
-0.0246802829,
-0.0519019924,
0.0910041183,
0.0106456019,
0.0145028941,
0.2670853734,
0.1857901812,
-0.3312122226,
0.0249925405,
-0.197098285,
-0.3113335967,
0.446200788,
0.2143391371,
0.2483341843,
-0.070721902,
0.0157014001,
0.1144673154,
0.3708970845,
0.2580590248,
0.0792701617,
-0.0338330865,
0.2125308365,
0.0079512652,
-0.2015175372,
-0.1089140922,
-0.2836963534,
0.1032906324,
0.2451008558,
-0.077865243,
0.0508961752,
-0.0072362795,
-0.4273626804,
0.0413817018,
-0.1689579636,
-0.1493410617,
0.1657438576,
-0.0761243477,
0.1448942423,
-0.0492951944,
-0.0764249042,
-0.0518813767,
-0.2385363281,
0.0705093741,
0.1058797687,
-0.0204062909,
-0.3056631982,
-0.0091240723,
0.2450968623,
-0.0581195578,
0.1331098378,
-0.0372366011,
-0.1354189813,
0.2523603737,
0.1233305633,
0.2528030276,
-0.0802925155,
0.0251828954,
0.1523815095,
-0.4525059462,
0.0430600792,
0.0419444889,
0.1044073105,
-0.1576234996,
0.2183500826,
-0.0314421132,
-0.0910323188,
0.0418951176,
0.1744561493,
0.1563685238,
0.1477833688,
-0.0249364376,
0.090183422,
-0.1331831068,
0.3215934634,
-0.0938104242,
0.2526178956,
-0.0654186681,
-0.0649178848,
-0.1171568185,
0.4020734429,
0.1520849913,
0.0896186382,
0.0442312099,
-0.3025978208,
0.02850236,
-0.21578224,
0.3114799857,
0.4959134758,
0.1446498185,
0.1639538109,
0.1199487969,
0.1569378376,
-0.2816539109,
0.4310475886,
-0.040102642,
0.2351525128,
0.2522005439,
-0.1961639374,
-0.0563997924,
-0.2167146355,
0.277897805,
0.0175765976,
0.2078112811,
-0.1578261554,
-0.2426186353,
-0.2548193336,
-0.0673507378,
-0.4623289704,
-0.5436557531,
-0.2178744972,
-0.1321283579,
-0.2382996827,
0.0240337588,
-0.0367040336,
0.1426419616,
-0.0420636162,
-0.1025990844,
0.0817945451,
0.1268723905,
0.0026957989,
-0.0534276068,
-0.0635397732,
0.1841250956,
0.2524003983,
-0.3535849452,
0.5754957199,
-0.3072550595,
0.029987175,
-0.2428166121,
-0.1333233416,
-0.0243879966,
-0.0370057598,
0.0867501125,
0.3703728914,
0.3781490922,
0.2589347064,
-0.0355773233,
0.3693835139,
-0.282751441,
-0.062775746,
-0.1214672178,
0.1225733534,
0.0374439918,
-0.2173152566,
-0.5624724627,
-0.4598296583,
-0.4110192955,
-0.0917026401,
0.0304596424,
0.1562967002,
0.1512019336,
0.0725565255,
0.0382240079,
0.1439453661,
-0.0554898307,
-0.3277633786,
-0.3739012182,
0.3905155659,
-0.2670379579,
-0.4456061125,
0.2986953259,
0.0598830283,
0.4613801539,
0.2046917677,
-0.4112802744,
0.3908864856,
-0.1190450266,
-0.0669096708,
0.0473833308,
0.1677638143,
0.1566011012,
-0.0419888087,
-0.1558274627,
-0.1271514595,
-0.1122651696,
-0.1918481141,
-0.198319152,
0.5375468731,
-0.1967825443,
0.3370723128,
0.0668312013,
0.713924706,
0.1417640746,
-0.1678286493,
0.2005017996,
-0.1050599515,
0.1060317457,
0.1251527369,
-0.4757867754,
0.1009271443,
-0.1338582784,
0.171340391,
0.1957197338,
0.0078043714,
0.1225345805,
-0.2567453384,
0.0096977577,
-0.2643206418,
-0.246010527,
0.0622867048,
0.0964220688,
0.4988242388,
0.1776275039,
0.0379240364,
-0.0200699978,
-0.0173671432,
-0.013074901,
0.3110688925,
0.1599546671,
0.1306658536,
0.126028195,
-0.0890350714,
-0.3551559448,
0.0651446208,
-0.0090180784,
0.4483256936,
-0.0488909818,
-0.1861807108,
-0.0250149667,
-0.0229499415,
0.5050638914,
0.1352036595,
0.2418664247,
-0.0990695804,
-0.1132145226,
-0.3881943226,
-0.0088245869,
-0.0477997251,
-0.0792362019,
0.1792101264,
0.0337591171,
-0.2113886178,
-0.1805661619,
0.3363738656,
0.1965858936,
-0.2405359149,
-0.3452709317,
-0.2148283124,
-0.3769049346,
-0.3758884966,
-0.0632991567,
0.0156028494,
0.2370367348,
-0.271061331,
-0.0545756184,
0.01277625,
-0.0314766951,
0.0812898502,
-0.0627887025,
0.2074973434,
0.0170505494,
0.3276123405,
0.2472557873,
0.2483443916,
0.3023763597,
0.4499740005,
-0.0790659189,
0.0300895479,
-0.0450309739,
-0.0318386108,
0.1685842276,
0.0883090198,
-0.1288240552,
0.0313172042,
0.3365074992,
0.1797916144,
-0.56870538,
0.1187114939,
0.414295882,
-0.0442774817,
-0.2248915434,
-0.2964838743,
0.1844128072,
0.0234360695,
0.198057875,
0.2240129858,
0.0846083015,
-0.102600351,
-0.3729059398,
0.0741111115,
0.7303836346,
0.0040983316,
-0.006337367,
0.0541394874,
-0.2457990646,
0.0493162237,
0.1965427101,
0.0595951006,
-0.2025648952,
0.0823458731,
0.0715466216,
-0.1753579378,
0.0899461657,
0.163887769,
-0.2038238347,
0.1945638359,
-0.0903948173,
0.3699929118,
0.1237481087,
0.27324301,
-0.2995002866,
-0.0765024722,
-0.1843221188,
0.2496199906,
-0.1579501629,
0.5097187757,
-0.2337877601,
-0.0218785256,
0.2522150278,
-0.3380151391,
-0.3348367214,
-0.0194522664,
-0.6515513659,
0.1543288231,
-0.2069602907,
0.054442361,
0.2665854692,
0.0717393905,
0.0452234372,
0.3972820044,
-0.1099758968,
0.1481292248,
-0.2182460725,
-0.1837648898,
-0.1499445885,
0.1043709219,
0.0388211384,
-0.2055920064,
-0.2422317415,
-0.0304814428,
-0.0293194409,
0.1018593162,
0.1618235409,
-0.0849091113,
0.262901783,
-0.1588937491,
-0.1314068139,
-0.0529144034,
-0.0808756575,
-0.13139534,
0.2391679734,
0.0814329535,
-0.1059004068,
0.3598033786,
0.1204866618,
-0.035793297,
-0.1756921113,
0.418289572,
-0.1213935539,
0.0133035034,
0.4005339742,
0.281683445,
-0.1847718656,
-0.4077314138,
0.0011177883,
-0.2280676365,
-0.2547610402,
0.2138409615,
0.1572355628,
0.2700098753,
-0.0490146801,
0.1123867184,
0.2817121148,
-0.2257378697,
0.1532506645,
-0.437489301,
-0.361328423,
-0.0451180711,
-0.0801633969,
0.1647504717,
-0.0839296356,
0.3007490933,
0.1840869039,
0.3149894774,
-0.398221463,
0.1844786108,
-0.05545054,
0.0410330743,
0.4086412489,
-0.1523308158,
0.2701258063,
-0.0001027845,
0.2006691247,
0.0359568819,
-0.3535062373,
-0.2827749848,
-0.1789456308,
0.0797092915,
0.0645149052,
-0.3131314814,
0.2315576524,
-0.2747570276,
-0.1528652161,
0.1786976457,
0.047385864,
0.1009498537,
-0.0488116071,
0.1522328109,
0.0410716683,
0.0885960311,
-0.2128449976,
0.070073843,
-0.0519007966,
0.3334442377,
0.0832393616,
-0.0684862882,
0.3025781512,
-0.1539805084,
-0.099962756,
-0.2193927914,
0.1600320488,
-0.2081463337,
0.3932881951,
-0.1847999692,
-0.0114566162,
0.1140616089,
0.3009460568,
0.3354036808,
-0.0449947305,
0.1436927915,
0.1372203082,
0.351652652,
-0.408049494,
0.1773459017,
-0.14447999,
0.0148588233,
-0.0702790394,
0.0008021221,
0.0222214386,
0.0371157378,
-0.1540628821,
0.2090328038,
0.4429772198,
-0.2516426146,
0.1013134867,
0.2070246339,
-0.1443167627,
0.1512601674,
0.0537341535,
0.0145271141,
0.0511469916,
0.3569310009,
-0.3507201672,
0.3197164536,
-0.1200648844,
0.0391064025,
0.1024586409,
-0.2943322361,
-0.0493201353,
0.2626118064,
-0.2538185716,
-0.0398404375,
-0.1569646299,
0.2941782773,
-0.117847994,
0.0144358128,
-0.1574144065,
0.2634152174,
-0.0796027407,
-0.0266707875,
-0.2245196104,
-0.1667220891,
-0.2416518033,
-0.008191362,
0.1487243325,
-0.1794108301,
0.2924160361,
0.2659938037,
-0.0218945667,
-0.5418661833,
-0.1938092858,
0.1615170836,
-0.0660707429,
-0.3661064506,
0.0962020531,
0.4262839854,
-0.10736534,
0.1673748493,
0.4767377377,
0.3966048956,
0.3219353855,
-0.1423860192,
0.0870658159,
0.0576878488,
-0.1005894989,
-0.187933445,
0.2051904649,
0.0790676028,
-0.0485187769,
0.2097938657,
0.2723873556,
-0.2374074459,
-0.1949214935,
0.0235633682,
-0.1338630319,
-0.0635164231,
0.2793865204,
-0.1369123608,
0.0430591255,
-0.4318421483,
0.2305631638,
-0.2953835428,
0.3097436726,
0.5763677359,
-0.0516445078,
0.1679921746,
-0.2874498665,
0.1143855974,
-0.0044972561,
0.6133633852,
0.2889215648,
0.055917982,
-0.4034256935,
-0.4311850965,
-0.7414610982,
0.0106794238,
0.0747838989,
0.093622297,
-0.1725305021,
0.088113226,
-0.0538028777,
0.0651677102,
0.2490347624,
0.08209306,
0.1977203637,
0.0279186759,
-0.0566339865,
-0.0552849099,
-0.2002748251,
-0.0143966516,
0.1361457855,
-0.3531444073,
0.1582951993,
-0.3870316744,
0.1298182607,
-0.4399927557,
0.270637989,
-0.0487773269,
0.2809255421,
0.28762725,
0.1505337358,
0.3705019951,
-0.0907474607,
-0.0546103492,
-0.1950241178,
-0.0690791309,
-0.1504272819,
0.1500721872,
0.2182559371,
0.1705780178,
-0.0018084683,
-0.3095669746,
-0.4495082796,
0.0844903439,
0.0031599104,
-0.0372305959,
-0.1925240159,
0.0436133221,
-0.1081489399,
-0.1006139368,
0.335601151,
0.2299155891,
-0.1436967403,
0.0228843838,
-0.3451315165,
-0.3848656714,
0.4460464418,
-0.1559344232,
-0.2160534114,
-0.2820882797,
0.0934074894,
-0.0535833426,
-0.0098090852,
-0.4851158261,
0.3032737374,
0.253323108,
-0.0807628185,
-0.2000130564,
0.4165593088,
-0.1124196872,
-0.0350135192,
0.0745054185,
0.4259935617,
0.0531242713,
-0.2661994398,
-0.2081852257,
-0.1793359667
] |
https://github.com/huggingface/datasets/issues/854 | wmt16 does not download | Hi, this is still down, I would be really grateful if you could ping them one more time. thank you so much. | Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz | 22 | wmt16 does not download
Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
Hi, this is still down, I would be really grateful if you could ping them one more time. thank you so much. | [
-0.4449557364,
-0.4224757254,
-0.0815042108,
0.4179416597,
0.504688859,
0.1244977266,
0.1281457543,
0.2139968425,
0.2786704302,
0.0013542771,
0.0727130547,
-0.110461466,
-0.2351615131,
0.0972072557,
0.2837481797,
-0.0405809805,
-0.1238626093,
-0.0028829686,
-0.485932827,
0.0390386283,
-0.2367145717,
0.1167634651,
-0.1118451729,
-0.0652594566,
-0.3488698602,
-0.0671077967,
-0.1394525915,
0.0584426895,
-0.3605147302,
-0.2884306908,
0.3591670692,
0.0484931469,
0.2195619643,
0.4216263294,
-0.0001045874,
-0.034425132,
0.2609169483,
-0.1103320569,
-0.164305985,
-0.3919683099,
-0.3435018659,
-0.1982589364,
-0.086341396,
-0.0891986564,
-0.0184495673,
-0.1176215261,
-0.1129946411,
-0.3425154984,
0.2524400353,
0.3540216386,
0.3467801511,
0.2697253227,
0.3545670509,
-0.191429764,
0.1382768154,
0.169979617,
0.0555041954,
0.1284029782,
-0.0070465356,
-0.140078485,
0.1166838706,
0.1394855827,
-0.0372344144,
0.2416532338,
0.1042876616,
-0.158645004,
0.0307698622,
-0.2549284995,
0.2687596977,
0.1392052323,
0.395015806,
-0.1157426909,
-0.1314077675,
0.1513413787,
0.0650622249,
-0.5738536119,
0.2200945914,
0.500962615,
-0.1863726974,
0.1921612918,
-0.271476537,
-0.0870951265,
0.0238121003,
0.1413064599,
-0.2197031677,
0.2921699584,
-0.2135500759,
0.0183898807,
0.1849007756,
-0.1017094702,
0.0880928785,
-0.0139021743,
0.1450837255,
0.2526480258,
-0.2700493932,
0.1261814684,
-0.1145766824,
0.1292569339,
0.0806540698,
0.0086125266,
-0.2520151734,
-0.150721997,
0.2881467342,
-0.0259476565,
0.026900623,
0.1888411343,
-0.21948798,
0.0834905058,
0.0834253579,
0.1954315603,
-0.0369618908,
-0.0546254143,
-0.3145236671,
-0.2925894856,
0.0326479822,
-0.0937112421,
0.1151881218,
0.0685743541,
-0.2826322317,
0.0161389336,
0.0049902871,
-0.1779201627,
0.0023905262,
0.3310003281,
-0.2150159627,
0.1485762149,
0.2978155613,
0.0600115359,
-0.0970927179,
-0.1061490178,
-0.2628636956,
-0.0803783238,
-0.1983224452,
-0.0564078055,
0.3051493466,
-0.0921541825,
0.3761103451,
0.0229629911,
-0.1797794551,
-0.1802680641,
0.0199734271,
-0.183058992,
0.1112454981,
0.4338180721,
0.0693688169,
0.2375740409,
0.0718804747,
0.2547794282,
-0.0013335496,
0.2246191502,
-0.0462483615,
-0.4587914348,
0.1238832399,
0.3703135252,
-0.1037134901,
-0.1154195666,
0.0248289108,
-0.1448107213,
0.0704498291,
0.2599557042,
-0.1440330744,
-0.2033017427,
-0.1653169096,
-0.2190621197,
0.5277343392,
0.3939630985,
0.0342415124,
-0.0421028659,
-0.4067510068,
-0.2453192919,
0.3608447313,
0.2823587358,
0.0014632419,
0.1401394904,
-0.3047559261,
0.0974317491,
0.2519401312,
-0.2148155272,
-0.256593436,
0.2118155211,
-0.2131185234,
-0.0246802829,
-0.0519019924,
0.0910041183,
0.0106456019,
0.0145028941,
0.2670853734,
0.1857901812,
-0.3312122226,
0.0249925405,
-0.197098285,
-0.3113335967,
0.446200788,
0.2143391371,
0.2483341843,
-0.070721902,
0.0157014001,
0.1144673154,
0.3708970845,
0.2580590248,
0.0792701617,
-0.0338330865,
0.2125308365,
0.0079512652,
-0.2015175372,
-0.1089140922,
-0.2836963534,
0.1032906324,
0.2451008558,
-0.077865243,
0.0508961752,
-0.0072362795,
-0.4273626804,
0.0413817018,
-0.1689579636,
-0.1493410617,
0.1657438576,
-0.0761243477,
0.1448942423,
-0.0492951944,
-0.0764249042,
-0.0518813767,
-0.2385363281,
0.0705093741,
0.1058797687,
-0.0204062909,
-0.3056631982,
-0.0091240723,
0.2450968623,
-0.0581195578,
0.1331098378,
-0.0372366011,
-0.1354189813,
0.2523603737,
0.1233305633,
0.2528030276,
-0.0802925155,
0.0251828954,
0.1523815095,
-0.4525059462,
0.0430600792,
0.0419444889,
0.1044073105,
-0.1576234996,
0.2183500826,
-0.0314421132,
-0.0910323188,
0.0418951176,
0.1744561493,
0.1563685238,
0.1477833688,
-0.0249364376,
0.090183422,
-0.1331831068,
0.3215934634,
-0.0938104242,
0.2526178956,
-0.0654186681,
-0.0649178848,
-0.1171568185,
0.4020734429,
0.1520849913,
0.0896186382,
0.0442312099,
-0.3025978208,
0.02850236,
-0.21578224,
0.3114799857,
0.4959134758,
0.1446498185,
0.1639538109,
0.1199487969,
0.1569378376,
-0.2816539109,
0.4310475886,
-0.040102642,
0.2351525128,
0.2522005439,
-0.1961639374,
-0.0563997924,
-0.2167146355,
0.277897805,
0.0175765976,
0.2078112811,
-0.1578261554,
-0.2426186353,
-0.2548193336,
-0.0673507378,
-0.4623289704,
-0.5436557531,
-0.2178744972,
-0.1321283579,
-0.2382996827,
0.0240337588,
-0.0367040336,
0.1426419616,
-0.0420636162,
-0.1025990844,
0.0817945451,
0.1268723905,
0.0026957989,
-0.0534276068,
-0.0635397732,
0.1841250956,
0.2524003983,
-0.3535849452,
0.5754957199,
-0.3072550595,
0.029987175,
-0.2428166121,
-0.1333233416,
-0.0243879966,
-0.0370057598,
0.0867501125,
0.3703728914,
0.3781490922,
0.2589347064,
-0.0355773233,
0.3693835139,
-0.282751441,
-0.062775746,
-0.1214672178,
0.1225733534,
0.0374439918,
-0.2173152566,
-0.5624724627,
-0.4598296583,
-0.4110192955,
-0.0917026401,
0.0304596424,
0.1562967002,
0.1512019336,
0.0725565255,
0.0382240079,
0.1439453661,
-0.0554898307,
-0.3277633786,
-0.3739012182,
0.3905155659,
-0.2670379579,
-0.4456061125,
0.2986953259,
0.0598830283,
0.4613801539,
0.2046917677,
-0.4112802744,
0.3908864856,
-0.1190450266,
-0.0669096708,
0.0473833308,
0.1677638143,
0.1566011012,
-0.0419888087,
-0.1558274627,
-0.1271514595,
-0.1122651696,
-0.1918481141,
-0.198319152,
0.5375468731,
-0.1967825443,
0.3370723128,
0.0668312013,
0.713924706,
0.1417640746,
-0.1678286493,
0.2005017996,
-0.1050599515,
0.1060317457,
0.1251527369,
-0.4757867754,
0.1009271443,
-0.1338582784,
0.171340391,
0.1957197338,
0.0078043714,
0.1225345805,
-0.2567453384,
0.0096977577,
-0.2643206418,
-0.246010527,
0.0622867048,
0.0964220688,
0.4988242388,
0.1776275039,
0.0379240364,
-0.0200699978,
-0.0173671432,
-0.013074901,
0.3110688925,
0.1599546671,
0.1306658536,
0.126028195,
-0.0890350714,
-0.3551559448,
0.0651446208,
-0.0090180784,
0.4483256936,
-0.0488909818,
-0.1861807108,
-0.0250149667,
-0.0229499415,
0.5050638914,
0.1352036595,
0.2418664247,
-0.0990695804,
-0.1132145226,
-0.3881943226,
-0.0088245869,
-0.0477997251,
-0.0792362019,
0.1792101264,
0.0337591171,
-0.2113886178,
-0.1805661619,
0.3363738656,
0.1965858936,
-0.2405359149,
-0.3452709317,
-0.2148283124,
-0.3769049346,
-0.3758884966,
-0.0632991567,
0.0156028494,
0.2370367348,
-0.271061331,
-0.0545756184,
0.01277625,
-0.0314766951,
0.0812898502,
-0.0627887025,
0.2074973434,
0.0170505494,
0.3276123405,
0.2472557873,
0.2483443916,
0.3023763597,
0.4499740005,
-0.0790659189,
0.0300895479,
-0.0450309739,
-0.0318386108,
0.1685842276,
0.0883090198,
-0.1288240552,
0.0313172042,
0.3365074992,
0.1797916144,
-0.56870538,
0.1187114939,
0.414295882,
-0.0442774817,
-0.2248915434,
-0.2964838743,
0.1844128072,
0.0234360695,
0.198057875,
0.2240129858,
0.0846083015,
-0.102600351,
-0.3729059398,
0.0741111115,
0.7303836346,
0.0040983316,
-0.006337367,
0.0541394874,
-0.2457990646,
0.0493162237,
0.1965427101,
0.0595951006,
-0.2025648952,
0.0823458731,
0.0715466216,
-0.1753579378,
0.0899461657,
0.163887769,
-0.2038238347,
0.1945638359,
-0.0903948173,
0.3699929118,
0.1237481087,
0.27324301,
-0.2995002866,
-0.0765024722,
-0.1843221188,
0.2496199906,
-0.1579501629,
0.5097187757,
-0.2337877601,
-0.0218785256,
0.2522150278,
-0.3380151391,
-0.3348367214,
-0.0194522664,
-0.6515513659,
0.1543288231,
-0.2069602907,
0.054442361,
0.2665854692,
0.0717393905,
0.0452234372,
0.3972820044,
-0.1099758968,
0.1481292248,
-0.2182460725,
-0.1837648898,
-0.1499445885,
0.1043709219,
0.0388211384,
-0.2055920064,
-0.2422317415,
-0.0304814428,
-0.0293194409,
0.1018593162,
0.1618235409,
-0.0849091113,
0.262901783,
-0.1588937491,
-0.1314068139,
-0.0529144034,
-0.0808756575,
-0.13139534,
0.2391679734,
0.0814329535,
-0.1059004068,
0.3598033786,
0.1204866618,
-0.035793297,
-0.1756921113,
0.418289572,
-0.1213935539,
0.0133035034,
0.4005339742,
0.281683445,
-0.1847718656,
-0.4077314138,
0.0011177883,
-0.2280676365,
-0.2547610402,
0.2138409615,
0.1572355628,
0.2700098753,
-0.0490146801,
0.1123867184,
0.2817121148,
-0.2257378697,
0.1532506645,
-0.437489301,
-0.361328423,
-0.0451180711,
-0.0801633969,
0.1647504717,
-0.0839296356,
0.3007490933,
0.1840869039,
0.3149894774,
-0.398221463,
0.1844786108,
-0.05545054,
0.0410330743,
0.4086412489,
-0.1523308158,
0.2701258063,
-0.0001027845,
0.2006691247,
0.0359568819,
-0.3535062373,
-0.2827749848,
-0.1789456308,
0.0797092915,
0.0645149052,
-0.3131314814,
0.2315576524,
-0.2747570276,
-0.1528652161,
0.1786976457,
0.047385864,
0.1009498537,
-0.0488116071,
0.1522328109,
0.0410716683,
0.0885960311,
-0.2128449976,
0.070073843,
-0.0519007966,
0.3334442377,
0.0832393616,
-0.0684862882,
0.3025781512,
-0.1539805084,
-0.099962756,
-0.2193927914,
0.1600320488,
-0.2081463337,
0.3932881951,
-0.1847999692,
-0.0114566162,
0.1140616089,
0.3009460568,
0.3354036808,
-0.0449947305,
0.1436927915,
0.1372203082,
0.351652652,
-0.408049494,
0.1773459017,
-0.14447999,
0.0148588233,
-0.0702790394,
0.0008021221,
0.0222214386,
0.0371157378,
-0.1540628821,
0.2090328038,
0.4429772198,
-0.2516426146,
0.1013134867,
0.2070246339,
-0.1443167627,
0.1512601674,
0.0537341535,
0.0145271141,
0.0511469916,
0.3569310009,
-0.3507201672,
0.3197164536,
-0.1200648844,
0.0391064025,
0.1024586409,
-0.2943322361,
-0.0493201353,
0.2626118064,
-0.2538185716,
-0.0398404375,
-0.1569646299,
0.2941782773,
-0.117847994,
0.0144358128,
-0.1574144065,
0.2634152174,
-0.0796027407,
-0.0266707875,
-0.2245196104,
-0.1667220891,
-0.2416518033,
-0.008191362,
0.1487243325,
-0.1794108301,
0.2924160361,
0.2659938037,
-0.0218945667,
-0.5418661833,
-0.1938092858,
0.1615170836,
-0.0660707429,
-0.3661064506,
0.0962020531,
0.4262839854,
-0.10736534,
0.1673748493,
0.4767377377,
0.3966048956,
0.3219353855,
-0.1423860192,
0.0870658159,
0.0576878488,
-0.1005894989,
-0.187933445,
0.2051904649,
0.0790676028,
-0.0485187769,
0.2097938657,
0.2723873556,
-0.2374074459,
-0.1949214935,
0.0235633682,
-0.1338630319,
-0.0635164231,
0.2793865204,
-0.1369123608,
0.0430591255,
-0.4318421483,
0.2305631638,
-0.2953835428,
0.3097436726,
0.5763677359,
-0.0516445078,
0.1679921746,
-0.2874498665,
0.1143855974,
-0.0044972561,
0.6133633852,
0.2889215648,
0.055917982,
-0.4034256935,
-0.4311850965,
-0.7414610982,
0.0106794238,
0.0747838989,
0.093622297,
-0.1725305021,
0.088113226,
-0.0538028777,
0.0651677102,
0.2490347624,
0.08209306,
0.1977203637,
0.0279186759,
-0.0566339865,
-0.0552849099,
-0.2002748251,
-0.0143966516,
0.1361457855,
-0.3531444073,
0.1582951993,
-0.3870316744,
0.1298182607,
-0.4399927557,
0.270637989,
-0.0487773269,
0.2809255421,
0.28762725,
0.1505337358,
0.3705019951,
-0.0907474607,
-0.0546103492,
-0.1950241178,
-0.0690791309,
-0.1504272819,
0.1500721872,
0.2182559371,
0.1705780178,
-0.0018084683,
-0.3095669746,
-0.4495082796,
0.0844903439,
0.0031599104,
-0.0372305959,
-0.1925240159,
0.0436133221,
-0.1081489399,
-0.1006139368,
0.335601151,
0.2299155891,
-0.1436967403,
0.0228843838,
-0.3451315165,
-0.3848656714,
0.4460464418,
-0.1559344232,
-0.2160534114,
-0.2820882797,
0.0934074894,
-0.0535833426,
-0.0098090852,
-0.4851158261,
0.3032737374,
0.253323108,
-0.0807628185,
-0.2000130564,
0.4165593088,
-0.1124196872,
-0.0350135192,
0.0745054185,
0.4259935617,
0.0531242713,
-0.2661994398,
-0.2081852257,
-0.1793359667
] |
https://github.com/huggingface/datasets/issues/854 | wmt16 does not download | Hi
I am trying with multiple setting of wmt datasets and all failed so far, I need to have at least one dataset working for testing somecodes, and this is really time sensitive, I greatly appreciate letting me know of one translation datasets currently working. thanks | Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz | 46 | wmt16 does not download
Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
Hi
I am trying with multiple setting of wmt datasets and all failed so far, I need to have at least one dataset working for testing somecodes, and this is really time sensitive, I greatly appreciate letting me know of one translation datasets currently working. thanks | [
-0.4449557364,
-0.4224757254,
-0.0815042108,
0.4179416597,
0.504688859,
0.1244977266,
0.1281457543,
0.2139968425,
0.2786704302,
0.0013542771,
0.0727130547,
-0.110461466,
-0.2351615131,
0.0972072557,
0.2837481797,
-0.0405809805,
-0.1238626093,
-0.0028829686,
-0.485932827,
0.0390386283,
-0.2367145717,
0.1167634651,
-0.1118451729,
-0.0652594566,
-0.3488698602,
-0.0671077967,
-0.1394525915,
0.0584426895,
-0.3605147302,
-0.2884306908,
0.3591670692,
0.0484931469,
0.2195619643,
0.4216263294,
-0.0001045874,
-0.034425132,
0.2609169483,
-0.1103320569,
-0.164305985,
-0.3919683099,
-0.3435018659,
-0.1982589364,
-0.086341396,
-0.0891986564,
-0.0184495673,
-0.1176215261,
-0.1129946411,
-0.3425154984,
0.2524400353,
0.3540216386,
0.3467801511,
0.2697253227,
0.3545670509,
-0.191429764,
0.1382768154,
0.169979617,
0.0555041954,
0.1284029782,
-0.0070465356,
-0.140078485,
0.1166838706,
0.1394855827,
-0.0372344144,
0.2416532338,
0.1042876616,
-0.158645004,
0.0307698622,
-0.2549284995,
0.2687596977,
0.1392052323,
0.395015806,
-0.1157426909,
-0.1314077675,
0.1513413787,
0.0650622249,
-0.5738536119,
0.2200945914,
0.500962615,
-0.1863726974,
0.1921612918,
-0.271476537,
-0.0870951265,
0.0238121003,
0.1413064599,
-0.2197031677,
0.2921699584,
-0.2135500759,
0.0183898807,
0.1849007756,
-0.1017094702,
0.0880928785,
-0.0139021743,
0.1450837255,
0.2526480258,
-0.2700493932,
0.1261814684,
-0.1145766824,
0.1292569339,
0.0806540698,
0.0086125266,
-0.2520151734,
-0.150721997,
0.2881467342,
-0.0259476565,
0.026900623,
0.1888411343,
-0.21948798,
0.0834905058,
0.0834253579,
0.1954315603,
-0.0369618908,
-0.0546254143,
-0.3145236671,
-0.2925894856,
0.0326479822,
-0.0937112421,
0.1151881218,
0.0685743541,
-0.2826322317,
0.0161389336,
0.0049902871,
-0.1779201627,
0.0023905262,
0.3310003281,
-0.2150159627,
0.1485762149,
0.2978155613,
0.0600115359,
-0.0970927179,
-0.1061490178,
-0.2628636956,
-0.0803783238,
-0.1983224452,
-0.0564078055,
0.3051493466,
-0.0921541825,
0.3761103451,
0.0229629911,
-0.1797794551,
-0.1802680641,
0.0199734271,
-0.183058992,
0.1112454981,
0.4338180721,
0.0693688169,
0.2375740409,
0.0718804747,
0.2547794282,
-0.0013335496,
0.2246191502,
-0.0462483615,
-0.4587914348,
0.1238832399,
0.3703135252,
-0.1037134901,
-0.1154195666,
0.0248289108,
-0.1448107213,
0.0704498291,
0.2599557042,
-0.1440330744,
-0.2033017427,
-0.1653169096,
-0.2190621197,
0.5277343392,
0.3939630985,
0.0342415124,
-0.0421028659,
-0.4067510068,
-0.2453192919,
0.3608447313,
0.2823587358,
0.0014632419,
0.1401394904,
-0.3047559261,
0.0974317491,
0.2519401312,
-0.2148155272,
-0.256593436,
0.2118155211,
-0.2131185234,
-0.0246802829,
-0.0519019924,
0.0910041183,
0.0106456019,
0.0145028941,
0.2670853734,
0.1857901812,
-0.3312122226,
0.0249925405,
-0.197098285,
-0.3113335967,
0.446200788,
0.2143391371,
0.2483341843,
-0.070721902,
0.0157014001,
0.1144673154,
0.3708970845,
0.2580590248,
0.0792701617,
-0.0338330865,
0.2125308365,
0.0079512652,
-0.2015175372,
-0.1089140922,
-0.2836963534,
0.1032906324,
0.2451008558,
-0.077865243,
0.0508961752,
-0.0072362795,
-0.4273626804,
0.0413817018,
-0.1689579636,
-0.1493410617,
0.1657438576,
-0.0761243477,
0.1448942423,
-0.0492951944,
-0.0764249042,
-0.0518813767,
-0.2385363281,
0.0705093741,
0.1058797687,
-0.0204062909,
-0.3056631982,
-0.0091240723,
0.2450968623,
-0.0581195578,
0.1331098378,
-0.0372366011,
-0.1354189813,
0.2523603737,
0.1233305633,
0.2528030276,
-0.0802925155,
0.0251828954,
0.1523815095,
-0.4525059462,
0.0430600792,
0.0419444889,
0.1044073105,
-0.1576234996,
0.2183500826,
-0.0314421132,
-0.0910323188,
0.0418951176,
0.1744561493,
0.1563685238,
0.1477833688,
-0.0249364376,
0.090183422,
-0.1331831068,
0.3215934634,
-0.0938104242,
0.2526178956,
-0.0654186681,
-0.0649178848,
-0.1171568185,
0.4020734429,
0.1520849913,
0.0896186382,
0.0442312099,
-0.3025978208,
0.02850236,
-0.21578224,
0.3114799857,
0.4959134758,
0.1446498185,
0.1639538109,
0.1199487969,
0.1569378376,
-0.2816539109,
0.4310475886,
-0.040102642,
0.2351525128,
0.2522005439,
-0.1961639374,
-0.0563997924,
-0.2167146355,
0.277897805,
0.0175765976,
0.2078112811,
-0.1578261554,
-0.2426186353,
-0.2548193336,
-0.0673507378,
-0.4623289704,
-0.5436557531,
-0.2178744972,
-0.1321283579,
-0.2382996827,
0.0240337588,
-0.0367040336,
0.1426419616,
-0.0420636162,
-0.1025990844,
0.0817945451,
0.1268723905,
0.0026957989,
-0.0534276068,
-0.0635397732,
0.1841250956,
0.2524003983,
-0.3535849452,
0.5754957199,
-0.3072550595,
0.029987175,
-0.2428166121,
-0.1333233416,
-0.0243879966,
-0.0370057598,
0.0867501125,
0.3703728914,
0.3781490922,
0.2589347064,
-0.0355773233,
0.3693835139,
-0.282751441,
-0.062775746,
-0.1214672178,
0.1225733534,
0.0374439918,
-0.2173152566,
-0.5624724627,
-0.4598296583,
-0.4110192955,
-0.0917026401,
0.0304596424,
0.1562967002,
0.1512019336,
0.0725565255,
0.0382240079,
0.1439453661,
-0.0554898307,
-0.3277633786,
-0.3739012182,
0.3905155659,
-0.2670379579,
-0.4456061125,
0.2986953259,
0.0598830283,
0.4613801539,
0.2046917677,
-0.4112802744,
0.3908864856,
-0.1190450266,
-0.0669096708,
0.0473833308,
0.1677638143,
0.1566011012,
-0.0419888087,
-0.1558274627,
-0.1271514595,
-0.1122651696,
-0.1918481141,
-0.198319152,
0.5375468731,
-0.1967825443,
0.3370723128,
0.0668312013,
0.713924706,
0.1417640746,
-0.1678286493,
0.2005017996,
-0.1050599515,
0.1060317457,
0.1251527369,
-0.4757867754,
0.1009271443,
-0.1338582784,
0.171340391,
0.1957197338,
0.0078043714,
0.1225345805,
-0.2567453384,
0.0096977577,
-0.2643206418,
-0.246010527,
0.0622867048,
0.0964220688,
0.4988242388,
0.1776275039,
0.0379240364,
-0.0200699978,
-0.0173671432,
-0.013074901,
0.3110688925,
0.1599546671,
0.1306658536,
0.126028195,
-0.0890350714,
-0.3551559448,
0.0651446208,
-0.0090180784,
0.4483256936,
-0.0488909818,
-0.1861807108,
-0.0250149667,
-0.0229499415,
0.5050638914,
0.1352036595,
0.2418664247,
-0.0990695804,
-0.1132145226,
-0.3881943226,
-0.0088245869,
-0.0477997251,
-0.0792362019,
0.1792101264,
0.0337591171,
-0.2113886178,
-0.1805661619,
0.3363738656,
0.1965858936,
-0.2405359149,
-0.3452709317,
-0.2148283124,
-0.3769049346,
-0.3758884966,
-0.0632991567,
0.0156028494,
0.2370367348,
-0.271061331,
-0.0545756184,
0.01277625,
-0.0314766951,
0.0812898502,
-0.0627887025,
0.2074973434,
0.0170505494,
0.3276123405,
0.2472557873,
0.2483443916,
0.3023763597,
0.4499740005,
-0.0790659189,
0.0300895479,
-0.0450309739,
-0.0318386108,
0.1685842276,
0.0883090198,
-0.1288240552,
0.0313172042,
0.3365074992,
0.1797916144,
-0.56870538,
0.1187114939,
0.414295882,
-0.0442774817,
-0.2248915434,
-0.2964838743,
0.1844128072,
0.0234360695,
0.198057875,
0.2240129858,
0.0846083015,
-0.102600351,
-0.3729059398,
0.0741111115,
0.7303836346,
0.0040983316,
-0.006337367,
0.0541394874,
-0.2457990646,
0.0493162237,
0.1965427101,
0.0595951006,
-0.2025648952,
0.0823458731,
0.0715466216,
-0.1753579378,
0.0899461657,
0.163887769,
-0.2038238347,
0.1945638359,
-0.0903948173,
0.3699929118,
0.1237481087,
0.27324301,
-0.2995002866,
-0.0765024722,
-0.1843221188,
0.2496199906,
-0.1579501629,
0.5097187757,
-0.2337877601,
-0.0218785256,
0.2522150278,
-0.3380151391,
-0.3348367214,
-0.0194522664,
-0.6515513659,
0.1543288231,
-0.2069602907,
0.054442361,
0.2665854692,
0.0717393905,
0.0452234372,
0.3972820044,
-0.1099758968,
0.1481292248,
-0.2182460725,
-0.1837648898,
-0.1499445885,
0.1043709219,
0.0388211384,
-0.2055920064,
-0.2422317415,
-0.0304814428,
-0.0293194409,
0.1018593162,
0.1618235409,
-0.0849091113,
0.262901783,
-0.1588937491,
-0.1314068139,
-0.0529144034,
-0.0808756575,
-0.13139534,
0.2391679734,
0.0814329535,
-0.1059004068,
0.3598033786,
0.1204866618,
-0.035793297,
-0.1756921113,
0.418289572,
-0.1213935539,
0.0133035034,
0.4005339742,
0.281683445,
-0.1847718656,
-0.4077314138,
0.0011177883,
-0.2280676365,
-0.2547610402,
0.2138409615,
0.1572355628,
0.2700098753,
-0.0490146801,
0.1123867184,
0.2817121148,
-0.2257378697,
0.1532506645,
-0.437489301,
-0.361328423,
-0.0451180711,
-0.0801633969,
0.1647504717,
-0.0839296356,
0.3007490933,
0.1840869039,
0.3149894774,
-0.398221463,
0.1844786108,
-0.05545054,
0.0410330743,
0.4086412489,
-0.1523308158,
0.2701258063,
-0.0001027845,
0.2006691247,
0.0359568819,
-0.3535062373,
-0.2827749848,
-0.1789456308,
0.0797092915,
0.0645149052,
-0.3131314814,
0.2315576524,
-0.2747570276,
-0.1528652161,
0.1786976457,
0.047385864,
0.1009498537,
-0.0488116071,
0.1522328109,
0.0410716683,
0.0885960311,
-0.2128449976,
0.070073843,
-0.0519007966,
0.3334442377,
0.0832393616,
-0.0684862882,
0.3025781512,
-0.1539805084,
-0.099962756,
-0.2193927914,
0.1600320488,
-0.2081463337,
0.3932881951,
-0.1847999692,
-0.0114566162,
0.1140616089,
0.3009460568,
0.3354036808,
-0.0449947305,
0.1436927915,
0.1372203082,
0.351652652,
-0.408049494,
0.1773459017,
-0.14447999,
0.0148588233,
-0.0702790394,
0.0008021221,
0.0222214386,
0.0371157378,
-0.1540628821,
0.2090328038,
0.4429772198,
-0.2516426146,
0.1013134867,
0.2070246339,
-0.1443167627,
0.1512601674,
0.0537341535,
0.0145271141,
0.0511469916,
0.3569310009,
-0.3507201672,
0.3197164536,
-0.1200648844,
0.0391064025,
0.1024586409,
-0.2943322361,
-0.0493201353,
0.2626118064,
-0.2538185716,
-0.0398404375,
-0.1569646299,
0.2941782773,
-0.117847994,
0.0144358128,
-0.1574144065,
0.2634152174,
-0.0796027407,
-0.0266707875,
-0.2245196104,
-0.1667220891,
-0.2416518033,
-0.008191362,
0.1487243325,
-0.1794108301,
0.2924160361,
0.2659938037,
-0.0218945667,
-0.5418661833,
-0.1938092858,
0.1615170836,
-0.0660707429,
-0.3661064506,
0.0962020531,
0.4262839854,
-0.10736534,
0.1673748493,
0.4767377377,
0.3966048956,
0.3219353855,
-0.1423860192,
0.0870658159,
0.0576878488,
-0.1005894989,
-0.187933445,
0.2051904649,
0.0790676028,
-0.0485187769,
0.2097938657,
0.2723873556,
-0.2374074459,
-0.1949214935,
0.0235633682,
-0.1338630319,
-0.0635164231,
0.2793865204,
-0.1369123608,
0.0430591255,
-0.4318421483,
0.2305631638,
-0.2953835428,
0.3097436726,
0.5763677359,
-0.0516445078,
0.1679921746,
-0.2874498665,
0.1143855974,
-0.0044972561,
0.6133633852,
0.2889215648,
0.055917982,
-0.4034256935,
-0.4311850965,
-0.7414610982,
0.0106794238,
0.0747838989,
0.093622297,
-0.1725305021,
0.088113226,
-0.0538028777,
0.0651677102,
0.2490347624,
0.08209306,
0.1977203637,
0.0279186759,
-0.0566339865,
-0.0552849099,
-0.2002748251,
-0.0143966516,
0.1361457855,
-0.3531444073,
0.1582951993,
-0.3870316744,
0.1298182607,
-0.4399927557,
0.270637989,
-0.0487773269,
0.2809255421,
0.28762725,
0.1505337358,
0.3705019951,
-0.0907474607,
-0.0546103492,
-0.1950241178,
-0.0690791309,
-0.1504272819,
0.1500721872,
0.2182559371,
0.1705780178,
-0.0018084683,
-0.3095669746,
-0.4495082796,
0.0844903439,
0.0031599104,
-0.0372305959,
-0.1925240159,
0.0436133221,
-0.1081489399,
-0.1006139368,
0.335601151,
0.2299155891,
-0.1436967403,
0.0228843838,
-0.3451315165,
-0.3848656714,
0.4460464418,
-0.1559344232,
-0.2160534114,
-0.2820882797,
0.0934074894,
-0.0535833426,
-0.0098090852,
-0.4851158261,
0.3032737374,
0.253323108,
-0.0807628185,
-0.2000130564,
0.4165593088,
-0.1124196872,
-0.0350135192,
0.0745054185,
0.4259935617,
0.0531242713,
-0.2661994398,
-0.2081852257,
-0.1793359667
] |
https://github.com/huggingface/datasets/issues/854 | wmt16 does not download | It is still down, unfortunately. I'm sorry for that. It should come up again later today or tomorrow at the latest if no additional complications will happen. | Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz | 27 | wmt16 does not download
Hi, I appreciate your help with the following error, thanks
>>> from datasets import load_dataset
>>> dataset = load_dataset("wmt16", "ro-en", split="train")
Downloading and preparing dataset wmt16/ro-en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/root/.cache/huggingface/modules/datasets_modules/datasets/wmt16/7b2c4443a7d34c2e13df267eaa8cab4c62dd82f6b62b0d9ecc2e3a673ce17308/wmt_utils.py", line 755, in _split_generators
downloaded_files = dl_manager.download_and_extract(urls_to_download)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in _single_map_nested
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 181, in <listcomp>
mapped = [_single_map_nested((function, v, types, None, True)) for v in pbar]
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/root/anaconda3/envs/pytorch/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://opus.nlpl.eu/download.php?f=SETIMES/v2/tmx/en-ro.tmx.gz
It is still down, unfortunately. I'm sorry for that. It should come up again later today or tomorrow at the latest if no additional complications will happen. | [
-0.4449557364,
-0.4224757254,
-0.0815042108,
0.4179416597,
0.504688859,
0.1244977266,
0.1281457543,
0.2139968425,
0.2786704302,
0.0013542771,
0.0727130547,
-0.110461466,
-0.2351615131,
0.0972072557,
0.2837481797,
-0.0405809805,
-0.1238626093,
-0.0028829686,
-0.485932827,
0.0390386283,
-0.2367145717,
0.1167634651,
-0.1118451729,
-0.0652594566,
-0.3488698602,
-0.0671077967,
-0.1394525915,
0.0584426895,
-0.3605147302,
-0.2884306908,
0.3591670692,
0.0484931469,
0.2195619643,
0.4216263294,
-0.0001045874,
-0.034425132,
0.2609169483,
-0.1103320569,
-0.164305985,
-0.3919683099,
-0.3435018659,
-0.1982589364,
-0.086341396,
-0.0891986564,
-0.0184495673,
-0.1176215261,
-0.1129946411,
-0.3425154984,
0.2524400353,
0.3540216386,
0.3467801511,
0.2697253227,
0.3545670509,
-0.191429764,
0.1382768154,
0.169979617,
0.0555041954,
0.1284029782,
-0.0070465356,
-0.140078485,
0.1166838706,
0.1394855827,
-0.0372344144,
0.2416532338,
0.1042876616,
-0.158645004,
0.0307698622,
-0.2549284995,
0.2687596977,
0.1392052323,
0.395015806,
-0.1157426909,
-0.1314077675,
0.1513413787,
0.0650622249,
-0.5738536119,
0.2200945914,
0.500962615,
-0.1863726974,
0.1921612918,
-0.271476537,
-0.0870951265,
0.0238121003,
0.1413064599,
-0.2197031677,
0.2921699584,
-0.2135500759,
0.0183898807,
0.1849007756,
-0.1017094702,
0.0880928785,
-0.0139021743,
0.1450837255,
0.2526480258,
-0.2700493932,
0.1261814684,
-0.1145766824,
0.1292569339,
0.0806540698,
0.0086125266,
-0.2520151734,
-0.150721997,
0.2881467342,
-0.0259476565,
0.026900623,
0.1888411343,
-0.21948798,
0.0834905058,
0.0834253579,
0.1954315603,
-0.0369618908,
-0.0546254143,
-0.3145236671,
-0.2925894856,
0.0326479822,
-0.0937112421,
0.1151881218,
0.0685743541,
-0.2826322317,
0.0161389336,
0.0049902871,
-0.1779201627,
0.0023905262,
0.3310003281,
-0.2150159627,
0.1485762149,
0.2978155613,
0.0600115359,
-0.0970927179,
-0.1061490178,
-0.2628636956,
-0.0803783238,
-0.1983224452,
-0.0564078055,
0.3051493466,
-0.0921541825,
0.3761103451,
0.0229629911,
-0.1797794551,
-0.1802680641,
0.0199734271,
-0.183058992,
0.1112454981,
0.4338180721,
0.0693688169,
0.2375740409,
0.0718804747,
0.2547794282,
-0.0013335496,
0.2246191502,
-0.0462483615,
-0.4587914348,
0.1238832399,
0.3703135252,
-0.1037134901,
-0.1154195666,
0.0248289108,
-0.1448107213,
0.0704498291,
0.2599557042,
-0.1440330744,
-0.2033017427,
-0.1653169096,
-0.2190621197,
0.5277343392,
0.3939630985,
0.0342415124,
-0.0421028659,
-0.4067510068,
-0.2453192919,
0.3608447313,
0.2823587358,
0.0014632419,
0.1401394904,
-0.3047559261,
0.0974317491,
0.2519401312,
-0.2148155272,
-0.256593436,
0.2118155211,
-0.2131185234,
-0.0246802829,
-0.0519019924,
0.0910041183,
0.0106456019,
0.0145028941,
0.2670853734,
0.1857901812,
-0.3312122226,
0.0249925405,
-0.197098285,
-0.3113335967,
0.446200788,
0.2143391371,
0.2483341843,
-0.070721902,
0.0157014001,
0.1144673154,
0.3708970845,
0.2580590248,
0.0792701617,
-0.0338330865,
0.2125308365,
0.0079512652,
-0.2015175372,
-0.1089140922,
-0.2836963534,
0.1032906324,
0.2451008558,
-0.077865243,
0.0508961752,
-0.0072362795,
-0.4273626804,
0.0413817018,
-0.1689579636,
-0.1493410617,
0.1657438576,
-0.0761243477,
0.1448942423,
-0.0492951944,
-0.0764249042,
-0.0518813767,
-0.2385363281,
0.0705093741,
0.1058797687,
-0.0204062909,
-0.3056631982,
-0.0091240723,
0.2450968623,
-0.0581195578,
0.1331098378,
-0.0372366011,
-0.1354189813,
0.2523603737,
0.1233305633,
0.2528030276,
-0.0802925155,
0.0251828954,
0.1523815095,
-0.4525059462,
0.0430600792,
0.0419444889,
0.1044073105,
-0.1576234996,
0.2183500826,
-0.0314421132,
-0.0910323188,
0.0418951176,
0.1744561493,
0.1563685238,
0.1477833688,
-0.0249364376,
0.090183422,
-0.1331831068,
0.3215934634,
-0.0938104242,
0.2526178956,
-0.0654186681,
-0.0649178848,
-0.1171568185,
0.4020734429,
0.1520849913,
0.0896186382,
0.0442312099,
-0.3025978208,
0.02850236,
-0.21578224,
0.3114799857,
0.4959134758,
0.1446498185,
0.1639538109,
0.1199487969,
0.1569378376,
-0.2816539109,
0.4310475886,
-0.040102642,
0.2351525128,
0.2522005439,
-0.1961639374,
-0.0563997924,
-0.2167146355,
0.277897805,
0.0175765976,
0.2078112811,
-0.1578261554,
-0.2426186353,
-0.2548193336,
-0.0673507378,
-0.4623289704,
-0.5436557531,
-0.2178744972,
-0.1321283579,
-0.2382996827,
0.0240337588,
-0.0367040336,
0.1426419616,
-0.0420636162,
-0.1025990844,
0.0817945451,
0.1268723905,
0.0026957989,
-0.0534276068,
-0.0635397732,
0.1841250956,
0.2524003983,
-0.3535849452,
0.5754957199,
-0.3072550595,
0.029987175,
-0.2428166121,
-0.1333233416,
-0.0243879966,
-0.0370057598,
0.0867501125,
0.3703728914,
0.3781490922,
0.2589347064,
-0.0355773233,
0.3693835139,
-0.282751441,
-0.062775746,
-0.1214672178,
0.1225733534,
0.0374439918,
-0.2173152566,
-0.5624724627,
-0.4598296583,
-0.4110192955,
-0.0917026401,
0.0304596424,
0.1562967002,
0.1512019336,
0.0725565255,
0.0382240079,
0.1439453661,
-0.0554898307,
-0.3277633786,
-0.3739012182,
0.3905155659,
-0.2670379579,
-0.4456061125,
0.2986953259,
0.0598830283,
0.4613801539,
0.2046917677,
-0.4112802744,
0.3908864856,
-0.1190450266,
-0.0669096708,
0.0473833308,
0.1677638143,
0.1566011012,
-0.0419888087,
-0.1558274627,
-0.1271514595,
-0.1122651696,
-0.1918481141,
-0.198319152,
0.5375468731,
-0.1967825443,
0.3370723128,
0.0668312013,
0.713924706,
0.1417640746,
-0.1678286493,
0.2005017996,
-0.1050599515,
0.1060317457,
0.1251527369,
-0.4757867754,
0.1009271443,
-0.1338582784,
0.171340391,
0.1957197338,
0.0078043714,
0.1225345805,
-0.2567453384,
0.0096977577,
-0.2643206418,
-0.246010527,
0.0622867048,
0.0964220688,
0.4988242388,
0.1776275039,
0.0379240364,
-0.0200699978,
-0.0173671432,
-0.013074901,
0.3110688925,
0.1599546671,
0.1306658536,
0.126028195,
-0.0890350714,
-0.3551559448,
0.0651446208,
-0.0090180784,
0.4483256936,
-0.0488909818,
-0.1861807108,
-0.0250149667,
-0.0229499415,
0.5050638914,
0.1352036595,
0.2418664247,
-0.0990695804,
-0.1132145226,
-0.3881943226,
-0.0088245869,
-0.0477997251,
-0.0792362019,
0.1792101264,
0.0337591171,
-0.2113886178,
-0.1805661619,
0.3363738656,
0.1965858936,
-0.2405359149,
-0.3452709317,
-0.2148283124,
-0.3769049346,
-0.3758884966,
-0.0632991567,
0.0156028494,
0.2370367348,
-0.271061331,
-0.0545756184,
0.01277625,
-0.0314766951,
0.0812898502,
-0.0627887025,
0.2074973434,
0.0170505494,
0.3276123405,
0.2472557873,
0.2483443916,
0.3023763597,
0.4499740005,
-0.0790659189,
0.0300895479,
-0.0450309739,
-0.0318386108,
0.1685842276,
0.0883090198,
-0.1288240552,
0.0313172042,
0.3365074992,
0.1797916144,
-0.56870538,
0.1187114939,
0.414295882,
-0.0442774817,
-0.2248915434,
-0.2964838743,
0.1844128072,
0.0234360695,
0.198057875,
0.2240129858,
0.0846083015,
-0.102600351,
-0.3729059398,
0.0741111115,
0.7303836346,
0.0040983316,
-0.006337367,
0.0541394874,
-0.2457990646,
0.0493162237,
0.1965427101,
0.0595951006,
-0.2025648952,
0.0823458731,
0.0715466216,
-0.1753579378,
0.0899461657,
0.163887769,
-0.2038238347,
0.1945638359,
-0.0903948173,
0.3699929118,
0.1237481087,
0.27324301,
-0.2995002866,
-0.0765024722,
-0.1843221188,
0.2496199906,
-0.1579501629,
0.5097187757,
-0.2337877601,
-0.0218785256,
0.2522150278,
-0.3380151391,
-0.3348367214,
-0.0194522664,
-0.6515513659,
0.1543288231,
-0.2069602907,
0.054442361,
0.2665854692,
0.0717393905,
0.0452234372,
0.3972820044,
-0.1099758968,
0.1481292248,
-0.2182460725,
-0.1837648898,
-0.1499445885,
0.1043709219,
0.0388211384,
-0.2055920064,
-0.2422317415,
-0.0304814428,
-0.0293194409,
0.1018593162,
0.1618235409,
-0.0849091113,
0.262901783,
-0.1588937491,
-0.1314068139,
-0.0529144034,
-0.0808756575,
-0.13139534,
0.2391679734,
0.0814329535,
-0.1059004068,
0.3598033786,
0.1204866618,
-0.035793297,
-0.1756921113,
0.418289572,
-0.1213935539,
0.0133035034,
0.4005339742,
0.281683445,
-0.1847718656,
-0.4077314138,
0.0011177883,
-0.2280676365,
-0.2547610402,
0.2138409615,
0.1572355628,
0.2700098753,
-0.0490146801,
0.1123867184,
0.2817121148,
-0.2257378697,
0.1532506645,
-0.437489301,
-0.361328423,
-0.0451180711,
-0.0801633969,
0.1647504717,
-0.0839296356,
0.3007490933,
0.1840869039,
0.3149894774,
-0.398221463,
0.1844786108,
-0.05545054,
0.0410330743,
0.4086412489,
-0.1523308158,
0.2701258063,
-0.0001027845,
0.2006691247,
0.0359568819,
-0.3535062373,
-0.2827749848,
-0.1789456308,
0.0797092915,
0.0645149052,
-0.3131314814,
0.2315576524,
-0.2747570276,
-0.1528652161,
0.1786976457,
0.047385864,
0.1009498537,
-0.0488116071,
0.1522328109,
0.0410716683,
0.0885960311,
-0.2128449976,
0.070073843,
-0.0519007966,
0.3334442377,
0.0832393616,
-0.0684862882,
0.3025781512,
-0.1539805084,
-0.099962756,
-0.2193927914,
0.1600320488,
-0.2081463337,
0.3932881951,
-0.1847999692,
-0.0114566162,
0.1140616089,
0.3009460568,
0.3354036808,
-0.0449947305,
0.1436927915,
0.1372203082,
0.351652652,
-0.408049494,
0.1773459017,
-0.14447999,
0.0148588233,
-0.0702790394,
0.0008021221,
0.0222214386,
0.0371157378,
-0.1540628821,
0.2090328038,
0.4429772198,
-0.2516426146,
0.1013134867,
0.2070246339,
-0.1443167627,
0.1512601674,
0.0537341535,
0.0145271141,
0.0511469916,
0.3569310009,
-0.3507201672,
0.3197164536,
-0.1200648844,
0.0391064025,
0.1024586409,
-0.2943322361,
-0.0493201353,
0.2626118064,
-0.2538185716,
-0.0398404375,
-0.1569646299,
0.2941782773,
-0.117847994,
0.0144358128,
-0.1574144065,
0.2634152174,
-0.0796027407,
-0.0266707875,
-0.2245196104,
-0.1667220891,
-0.2416518033,
-0.008191362,
0.1487243325,
-0.1794108301,
0.2924160361,
0.2659938037,
-0.0218945667,
-0.5418661833,
-0.1938092858,
0.1615170836,
-0.0660707429,
-0.3661064506,
0.0962020531,
0.4262839854,
-0.10736534,
0.1673748493,
0.4767377377,
0.3966048956,
0.3219353855,
-0.1423860192,
0.0870658159,
0.0576878488,
-0.1005894989,
-0.187933445,
0.2051904649,
0.0790676028,
-0.0485187769,
0.2097938657,
0.2723873556,
-0.2374074459,
-0.1949214935,
0.0235633682,
-0.1338630319,
-0.0635164231,
0.2793865204,
-0.1369123608,
0.0430591255,
-0.4318421483,
0.2305631638,
-0.2953835428,
0.3097436726,
0.5763677359,
-0.0516445078,
0.1679921746,
-0.2874498665,
0.1143855974,
-0.0044972561,
0.6133633852,
0.2889215648,
0.055917982,
-0.4034256935,
-0.4311850965,
-0.7414610982,
0.0106794238,
0.0747838989,
0.093622297,
-0.1725305021,
0.088113226,
-0.0538028777,
0.0651677102,
0.2490347624,
0.08209306,
0.1977203637,
0.0279186759,
-0.0566339865,
-0.0552849099,
-0.2002748251,
-0.0143966516,
0.1361457855,
-0.3531444073,
0.1582951993,
-0.3870316744,
0.1298182607,
-0.4399927557,
0.270637989,
-0.0487773269,
0.2809255421,
0.28762725,
0.1505337358,
0.3705019951,
-0.0907474607,
-0.0546103492,
-0.1950241178,
-0.0690791309,
-0.1504272819,
0.1500721872,
0.2182559371,
0.1705780178,
-0.0018084683,
-0.3095669746,
-0.4495082796,
0.0844903439,
0.0031599104,
-0.0372305959,
-0.1925240159,
0.0436133221,
-0.1081489399,
-0.1006139368,
0.335601151,
0.2299155891,
-0.1436967403,
0.0228843838,
-0.3451315165,
-0.3848656714,
0.4460464418,
-0.1559344232,
-0.2160534114,
-0.2820882797,
0.0934074894,
-0.0535833426,
-0.0098090852,
-0.4851158261,
0.3032737374,
0.253323108,
-0.0807628185,
-0.2000130564,
0.4165593088,
-0.1124196872,
-0.0350135192,
0.0745054185,
0.4259935617,
0.0531242713,
-0.2661994398,
-0.2081852257,
-0.1793359667
] |
https://github.com/huggingface/datasets/issues/853 | concatenate_datasets support axis=0 or 1 ? | Unfortunately `concatenate_datasets` only supports concatenating the rows, while what you want to achieve is concatenate the columns.
Currently to add more columns to a dataset, one must use `map`.
What you can do is somehting like this:
```python
# suppose you have datasets d1, d2, d3
def add_columns(example, index):
example.update(d2[index])
example.update(d3[index])
return example
full_dataset = d1.map(add_columns, with_indices=True)
``` | I want to achieve the following result
![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
| 58 | concatenate_datasets support axis=0 or 1 ?
I want to achieve the following result
![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
Unfortunately `concatenate_datasets` only supports concatenating the rows, while what you want to achieve is concatenate the columns.
Currently to add more columns to a dataset, one must use `map`.
What you can do is somehting like this:
```python
# suppose you have datasets d1, d2, d3
def add_columns(example, index):
example.update(d2[index])
example.update(d3[index])
return example
full_dataset = d1.map(add_columns, with_indices=True)
``` | [
-0.4226086736,
-0.0862600505,
-0.1545989513,
0.078162089,
0.1073095948,
0.4110479653,
0.3115074933,
0.4648508728,
0.1183016896,
0.1705959141,
-0.1758229434,
0.346490413,
-0.0750733763,
0.5408210158,
-0.2195972651,
-0.2845953107,
0.1583359241,
0.523165822,
-0.5183836222,
0.0794192106,
-0.436337024,
-0.1140020415,
-0.3252283335,
-0.351952523,
-0.3305092156,
0.2272311449,
-0.3263258934,
0.0496898331,
-0.2420316041,
-0.2773001194,
0.184579134,
0.1565619409,
0.1737537235,
0.1870675683,
-0.0001018656,
-0.006545864,
-0.014074415,
-0.0987922549,
-0.2388117909,
-0.2386992872,
-0.4274657369,
-0.5326144695,
0.0191353932,
-0.1855814755,
0.0070860386,
-0.54960531,
-0.1515819877,
-0.1952263415,
-0.0363272689,
0.2691265941,
0.276532948,
-0.0024139471,
0.1438421458,
-0.2205385566,
-0.0327088386,
0.0477845371,
-0.148868233,
-0.2383367419,
-0.1028845906,
-0.0304821245,
0.2678529322,
0.0924813151,
-0.0786665231,
-0.0955473185,
0.0230151266,
0.2429490536,
0.3289214075,
-0.4637418091,
0.2783742249,
0.3595761955,
0.5390441418,
-0.1761268377,
-0.3088949919,
-0.0107762367,
0.2730105221,
-0.2251131535,
-0.115317896,
0.1722410321,
0.1841142625,
0.1055816635,
0.00516266,
-0.0969097763,
-0.2384501398,
0.3530941308,
-0.1239477694,
0.5723178387,
0.0937582999,
0.1246292591,
0.1647106409,
-0.232343331,
0.2123437524,
-0.2305594534,
-0.0263889674,
0.3826238811,
-0.5797166228,
-0.0849744156,
-0.1941433549,
-0.2402857542,
0.1860111505,
0.0934347808,
0.0127485059,
-0.023026919,
-0.1148879156,
0.2161028087,
0.1035973802,
0.1430447251,
0.1178157479,
0.3845240474,
-0.1129864603,
-0.2188612223,
0.3609625697,
-0.0352090225,
-0.3074699044,
-0.4276660681,
-0.092875585,
-0.012597641,
0.0828212947,
0.2491239756,
0.0911292583,
-0.101413995,
-0.1131043583,
-0.0271372776,
-0.0245385654,
0.0541522354,
0.1044033021,
0.7092761397,
-0.049640432,
0.2461359501,
0.2259807587,
0.0167849995,
-0.2002801895,
0.3086336255,
0.109391883,
-0.0477173626,
0.113346383,
-0.2024741024,
-0.0465145782,
0.351692766,
0.1328008771,
0.175406307,
0.0056138113,
-0.2470529079,
0.1815117896,
0.2198557258,
0.1323285699,
-0.0452625751,
0.1345878839,
-0.1955263317,
0.0179673582,
0.3099164665,
-0.1724100113,
-0.0889017805,
-0.5252357125,
0.2082277387,
-0.0423242562,
-0.0700518042,
-0.3134085536,
0.362336725,
-0.0771497414,
0.0539494902,
0.115534693,
-0.0474661849,
0.0621785671,
-0.1661248654,
0.2009575069,
0.1113441885,
-0.2669384778,
0.0080264509,
0.1536026448,
-0.1589449048,
0.1445996761,
-0.0600145347,
0.1177264675,
-0.2345391065,
-0.0067724027,
0.0059620291,
0.3625380993,
-0.3298890591,
-0.0926984623,
-0.0321074799,
-0.1197827905,
-0.0059564784,
0.2458176166,
0.0969636813,
0.183897227,
0.2839231193,
0.2015564293,
0.0482032448,
0.0350067243,
-0.0099597424,
0.015167892,
-0.1204554737,
0.4265733361,
0.2494771034,
-0.0432001352,
0.2766699791,
-0.015004836,
-0.458845824,
0.3301062882,
-0.399951607,
0.2924722433,
0.1318643093,
0.1267349273,
-0.2035217285,
0.0067229569,
-0.1177159846,
-0.5746807456,
0.0519519597,
0.2862965465,
0.2127361298,
0.0785785317,
-0.1286863238,
-0.1028120816,
-0.1928749382,
0.0099847158,
0.0941525847,
0.1835020781,
0.0413175896,
0.0519454479,
-0.249330759,
-0.3810610771,
0.3606597483,
0.0950972959,
-0.0432975255,
-0.1508483142,
0.2130991966,
0.1889886111,
0.0291417465,
-0.0165355206,
0.2718973458,
0.0943739861,
-0.1173462719,
0.1646355093,
0.3794597685,
-0.3452472389,
0.0082483403,
0.0471470989,
0.2545304894,
0.1226965338,
0.2721695304,
-0.179363519,
-0.3759018779,
0.1136746183,
0.0921132714,
-0.0816452205,
0.4765715003,
-0.2874645591,
0.2087195665,
-0.0956580937,
0.1742876321,
0.2577313781,
-0.0465931073,
-0.2239285409,
-0.3543518484,
-0.0163603611,
0.2291425467,
-0.1916590631,
-0.0236565825,
-0.0687828362,
0.1239469871,
0.2656053901,
0.0214643329,
-0.1022834331,
-0.0943583027,
-0.1167925298,
0.124398686,
0.2267948836,
0.1167607978,
0.2644930184,
0.3999998271,
-0.1086045802,
0.2540386021,
-0.275225848,
0.0746818334,
0.0916332975,
0.0373173207,
-0.0777115002,
0.4481417835,
0.2226284146,
-0.075435929,
-0.0185632333,
-0.229689464,
0.1100941524,
0.502394259,
-0.0948240831,
-0.1374462247,
-0.2418769896,
-0.0132371709,
0.0900164396,
-0.3467953503,
0.022829894,
-0.2478998005,
-0.179619059,
0.1272637546,
-0.1465992928,
0.3609493375,
-0.301222086,
0.1302000582,
-0.041441191,
-0.0230279639,
-0.0322709978,
0.0715341717,
0.1925761402,
0.1740306318,
-0.1611603796,
-0.0809799135,
-0.0969503894,
-0.1195515171,
0.2034374028,
-0.1111139879,
0.0296607092,
0.0209121928,
-0.1271330565,
-0.485431999,
0.0185911786,
0.0776495188,
-0.2564778328,
-0.1758205295,
0.1687879264,
0.3261308968,
0.0632399842,
0.1794683933,
0.0166821703,
0.0185162202,
-0.1775397658,
-0.2074855417,
-0.233316198,
-0.4139028192,
0.1558993906,
0.2039988488,
0.2865819931,
-0.0389002897,
0.4930994213,
-0.0612503849,
0.0392677709,
-0.0590722933,
-0.1255933493,
-0.3367056251,
0.4871848226,
-0.139425844,
-0.053191416,
0.1305376738,
-0.2593686581,
0.1299340725,
0.2810859084,
0.0949884802,
-0.2102484107,
-0.0393765196,
0.1496012658,
-0.397460103,
0.2691262066,
0.4252675474,
0.3284215331,
-0.1030907929,
0.0182086974,
-0.0089026764,
0.0823038369,
0.2164364159,
-0.2202183753,
-0.207092315,
0.1523666829,
-0.0258810744,
-0.1935561597,
0.4212955534,
0.0882197022,
0.1785870939,
-0.2154991478,
0.3437775671,
0.0687644631,
-0.2970072627,
-0.2422595173,
0.0927131101,
0.4133454263,
-0.1866028458,
0.0552479811,
0.0985621363,
-0.166385591,
0.0215992332,
-0.1545240581,
-0.0231145769,
0.2027696371,
-0.3458370864,
0.2905593812,
-0.3137406409,
-0.0285225511,
-0.4044006467,
0.0856052637,
-0.1631047428,
0.1187717021,
-0.0330525152,
-0.2274548709,
-0.2630124986,
-0.2444106787,
-0.4903452694,
0.3173393905,
0.1552322507,
0.2717685401,
0.2912923098,
-0.0228428878,
-0.2171894312,
-0.016447572,
0.6867682934,
-0.3689187765,
-0.60134238,
0.3722732663,
-0.0072729513,
-0.5260196328,
0.0412568077,
-0.1601489782,
0.1185232848,
-0.1868177205,
0.611479938,
-0.1121609211,
-0.1128568947,
0.5385573506,
0.1910727024,
-0.0030899122,
-0.0647645369,
-0.027524285,
0.1465081125,
-0.0947301835,
-0.321161598,
-0.1306189895,
0.5407403111,
-0.1205687523,
-0.149238199,
-0.239072457,
-0.3590196669,
0.1134652942,
0.1685438156,
0.1686151028,
0.3236899972,
-0.0559848994,
0.1164251193,
-0.277192533,
0.314098835,
0.2233121991,
-0.1735613346,
-0.4095318019,
-0.0674379468,
-0.124413684,
0.3769435883,
-0.1998221278,
0.071527347,
0.2274823487,
-0.2681815028,
0.0985782444,
-0.1385197639,
0.0678734779,
0.242231071,
0.0868618488,
-0.4898302257,
-0.4183370769,
0.2966908813,
0.1976842284,
0.0894350111,
0.4377856553,
0.1015225276,
-0.2574074268,
-0.000023827,
-0.1051819772,
0.6077109575,
0.1193210781,
0.0889272243,
0.0494116247,
-0.1816974282,
0.4047293365,
0.0215204582,
0.3728576303,
-0.1871739924,
-0.2410685271,
-0.1781830788,
-0.0154634789,
0.1891345382,
0.0828680247,
-0.4538230896,
0.0597166009,
-0.4398393333,
0.1877655685,
-0.0441066884,
0.0964494944,
-0.023520086,
-0.5262393951,
-0.3846261203,
0.1481363624,
0.0433425792,
-0.3731681705,
-0.0681558177,
0.0462671854,
-0.1016046479,
0.0921849608,
-0.1371254325,
-0.0093370751,
0.160857141,
0.025058236,
0.1002054513,
-0.3422581553,
-0.1159641221,
0.0210103355,
0.0521621183,
0.016562108,
-0.0197311416,
-0.1912319362,
-0.0184387229,
0.0611678399,
-0.0232268367,
-0.1652083099,
-0.0057611316,
0.2311613858,
-0.3075415492,
0.3474168181,
0.1665044129,
-0.3117280304,
0.0602800548,
0.1185575798,
-0.1237676367,
-0.1787308902,
-0.0517201312,
0.2353454977,
0.2143881172,
-0.2692739964,
0.1917434931,
0.0625466406,
-0.2333199978,
0.0978008285,
-0.1885358095,
-0.2763430476,
-0.1605477035,
0.5698916316,
0.0657671764,
0.1076142937,
0.2477425039,
0.116003342,
-0.0971589386,
-0.1662721932,
0.1173514575,
0.3057338893,
-0.110313043,
0.1017765105,
0.1677982509,
-0.1101815924,
-0.1801377535,
0.1938295513,
-0.0277387016,
0.479187429,
-0.1644943953,
-0.2471836656,
-0.4967111647,
0.1797678024,
0.3701284826,
0.1714561135,
-0.0239218548,
0.1592522264,
-0.151712954,
-0.0794299766,
-0.3608300388,
-0.1363077164,
-0.0717428625,
0.0462656654,
0.2836577296,
-0.0406298749,
-0.0685032234,
-0.0753760934,
0.3054108918,
-0.0074982466,
-0.0163172726,
-0.3289112449,
-0.1638774574,
0.0028935224,
0.1814592481,
-0.2591574788,
0.0272617936,
-0.0729447007,
-0.4046711326,
-0.2934727073,
0.0532369465,
0.4485888481,
-0.2827630043,
0.0978392437,
-0.0520511307,
-0.1574315429,
-0.0596138313,
-0.0769664198,
0.050206691,
-0.1973653138,
-0.0968634486,
0.2935680151,
0.0562768616,
0.0049736947,
-0.1948279887,
0.1838007569,
0.0269651767,
-0.0468936078,
0.0476153754,
-0.060211435,
0.0672950596,
0.2579361796,
0.3072111905,
0.1623544246,
0.0628558174,
0.2926853895,
0.2124695182,
0.320931226,
-0.2774731815,
-0.3693935871,
0.0605046004,
0.3878200948,
0.4583672285,
0.1108509302,
-0.3141111135,
-0.2479774505,
0.0807522088,
0.0079259463,
0.0242101103,
-0.0927614272,
0.3725390136,
0.5311439037,
0.0732622892,
0.0134723978,
0.0544654131,
0.1699899882,
0.1813458502,
0.1594895124,
-0.0579942912,
0.0507516265,
0.396590203,
-0.194671303,
-0.1240459606,
-0.2143040597,
0.0232699905,
0.1107358262,
-0.1414575577,
0.0860749632,
0.1904233396,
-0.1014310271,
-0.0167744122,
0.0004357658,
-0.0118411705,
0.0746931881,
-0.0561026409,
-0.1204989254,
-0.0210179202,
-0.2038308382,
-0.0772635192,
0.0052641183,
0.1286931187,
-0.2836009264,
0.4928391576,
-0.1913943738,
0.0704560205,
-0.1502913684,
0.4490300417,
0.3303476572,
0.0669884235,
0.0462756231,
-0.0922056437,
0.3998712599,
0.0101635894,
0.0721112341,
0.2076400667,
0.323028028,
0.1880318224,
0.2334591895,
0.0811586529,
-0.1455553323,
-0.1438239366,
0.0895119086,
0.0062914863,
0.0821913034,
-0.1205390096,
0.1235596985,
0.3070298135,
-0.2196791023,
0.1558575332,
-0.1300047636,
0.0915826485,
-0.5912758708,
0.0805233419,
0.1916842312,
-0.3469383121,
0.0281237885,
0.0422351062,
-0.0697695911,
-0.2851139903,
0.0619486198,
0.0495804362,
-0.0367395654,
0.0849198997,
0.1784984022,
0.082980454,
0.4064063132,
-0.1365166306,
-0.0137449279,
-0.2608763576,
-0.0508245304,
-0.1332626045,
-0.134814322,
0.0357730947,
-0.1865978837,
-0.1200976819,
0.132877171,
0.0875826627,
-0.0422043167,
0.3020151258,
0.201831758,
0.1086598486,
0.2069047689,
-0.147681728,
0.0071723107,
0.2105507106,
-0.0537948571,
0.0318596438,
-0.3354479671,
0.3440542519,
0.2687548995,
0.1323978752,
0.0037178099,
0.1429710388,
-0.1260973662,
-0.1846723109,
0.2557795942,
0.1176211163,
0.1147153676,
-0.2001406997,
0.3036077619,
-0.3600518405,
-0.1929205358,
-0.3687108755,
0.3780515492,
0.1165055633,
0.202949062,
-0.3130410314,
-0.1715019494,
0.1105526537,
-0.0124347657,
0.0706337541,
0.2122295201,
-0.1443943977,
0.4930890799,
0.2222587764,
-0.2137945741,
-0.1979371011,
-0.0625330508,
0.0300314352,
0.0159357786,
0.0925038606,
-0.2083310783,
0.0662315413,
0.0441698059,
-0.4783134758,
-0.2526844144,
-0.0952863991,
0.3018609583,
0.0910615101,
-0.0933061168,
-0.099399358,
0.2757211328,
-0.0609043874,
-0.3030003309,
0.3159582615,
-0.215151459,
0.0517356247,
-0.0920516998,
0.0167083926,
-0.0154433586,
-0.1852018982,
-0.0837772116,
-0.3880162835
] |
https://github.com/huggingface/datasets/issues/853 | concatenate_datasets support axis=0 or 1 ? | That's not really difficult to add, though, no?
I think it can be done without copy.
Maybe let's add it to the roadmap? | I want to achieve the following result
![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
| 23 | concatenate_datasets support axis=0 or 1 ?
I want to achieve the following result
![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
That's not really difficult to add, though, no?
I think it can be done without copy.
Maybe let's add it to the roadmap? | [
-0.5632328987,
0.1566242874,
-0.105277501,
-0.0830112472,
0.0874816179,
0.1624972075,
0.3028231859,
0.419434309,
-0.2249420583,
0.3868966699,
-0.1537489146,
0.2858176231,
-0.1336853653,
0.4265960455,
-0.3774039745,
-0.1137889773,
0.1690777391,
0.6831738949,
-0.4871603251,
-0.0461214073,
-0.2769600153,
0.0618331507,
-0.1913713068,
-0.3543598056,
-0.5695501566,
0.2912067473,
-0.1852046549,
0.147156626,
-0.3962177336,
-0.1970461607,
0.2927448452,
0.3368050158,
-0.043901138,
0.1087513566,
-0.0001123584,
0.0200279504,
0.0133766001,
-0.1588651389,
-0.2239810228,
-0.2859131098,
-0.4628486335,
-0.3097323179,
-0.0573888235,
-0.0591024905,
0.1034684032,
-0.129345268,
0.0893115476,
-0.2339220345,
0.0351496525,
0.1296930462,
0.1886484921,
-0.0460460633,
-0.1494618654,
-0.3029183745,
0.0352646708,
0.3872570693,
-0.1596914381,
-0.1119441763,
0.0368421972,
0.0510124862,
0.1473965496,
0.1967142969,
0.0847491175,
-0.1048689634,
-0.0312236808,
0.1278537065,
0.2851845026,
-0.5738021731,
0.1894938946,
0.4373264313,
0.3858180344,
-0.207023859,
-0.2310137898,
-0.106377542,
0.1256216764,
-0.0378945544,
-0.008512985,
0.2486876696,
0.0003847554,
0.299811244,
-0.1266190857,
-0.3214489818,
-0.3337570429,
0.2192534059,
0.0035818741,
0.5095901489,
0.1821102351,
0.1283190697,
0.2479761392,
-0.0896196067,
0.151465714,
-0.11211171,
-0.1872600913,
0.3319087327,
-0.3466575146,
-0.1094931737,
-0.4235306084,
-0.312700212,
0.3242363334,
0.3647495508,
0.204435885,
-0.0514718518,
-0.2810693979,
0.222472474,
0.1368425637,
-0.0281804651,
0.2627059519,
0.2246279866,
0.1004929543,
-0.4747575521,
0.4068493247,
0.1419350356,
-0.2541022599,
-0.635284245,
-0.3118083179,
-0.0495492853,
0.0398110002,
0.1275722086,
-0.0244062431,
-0.2763104737,
-0.0880286023,
0.054767862,
-0.1994536519,
-0.0870598704,
0.1845136285,
0.5468424559,
-0.0291942619,
0.1838521659,
0.161367476,
-0.2034958899,
-0.1228641123,
0.1137354821,
0.265735507,
0.1090386137,
0.0932537541,
-0.3103020191,
-0.0534344539,
0.1010302529,
0.4630505145,
0.2935289145,
0.089941062,
-0.112579301,
0.1572801471,
0.2680851817,
0.1508651376,
-0.1060426533,
0.0711883008,
-0.2159587443,
-0.1277607232,
0.3148568571,
-0.2388082743,
-0.0789517686,
-0.6027958989,
0.1250676364,
-0.1908839345,
-0.1287215352,
-0.2735527754,
0.4014890194,
-0.108865805,
0.0152945369,
0.1486207247,
0.1504067034,
0.1207894236,
-0.1274714172,
0.1286761016,
0.1386976093,
-0.2228638232,
-0.1253660321,
0.1494996399,
-0.376015842,
-0.0257569961,
-0.0534552708,
-0.0917766988,
-0.3919661939,
-0.1096223891,
0.2380186915,
0.5789762139,
-0.3724957705,
-0.0461448468,
-0.0229790621,
-0.3579953313,
-0.1780028343,
0.3134600818,
0.2745222449,
0.1828157157,
0.090567857,
0.0883901268,
0.2852329016,
-0.1022024304,
0.0373514593,
0.0420042574,
-0.2569620907,
0.291808933,
0.2295571864,
-0.023776155,
0.1568796784,
0.2578095198,
-0.5314160585,
0.2531365752,
-0.4744192362,
0.1922057271,
0.0655761734,
0.4364447296,
-0.4588056803,
-0.0279836841,
0.0510560423,
-0.4954914451,
0.0699071884,
0.1260803938,
0.2886122465,
0.1175458133,
-0.3634769917,
0.0863492563,
-0.1281975806,
-0.0332225338,
0.0490110815,
0.0638270378,
-0.0172976479,
-0.0022057295,
-0.0952395424,
-0.3850865066,
0.4718650877,
0.1025448665,
-0.0925959647,
-0.1465744972,
0.2257512361,
0.0452566892,
0.1224841028,
-0.0722058788,
0.2096064389,
-0.0679519251,
-0.2650654912,
0.2195996344,
0.5704521537,
-0.4314956069,
0.14670977,
0.2623588741,
0.1093141735,
0.2668367922,
-0.1554705203,
-0.1848706752,
-0.5273682475,
-0.0256932694,
-0.0429722145,
-0.0176553745,
0.5327885151,
-0.3147445917,
0.0307160579,
0.0439044684,
0.2274834067,
0.3138508797,
-0.0138029307,
-0.3958474994,
-0.3787465692,
-0.0729578659,
0.417109102,
0.0160730258,
0.1849321723,
-0.1893028766,
0.1207719296,
0.3447673321,
0.0078029633,
-0.0184840709,
-0.0078627281,
-0.1470703632,
0.1143818498,
0.2931673527,
0.0276505053,
0.3205231428,
0.3793958426,
-0.1209531575,
0.1799792349,
-0.2484185994,
-0.0468227901,
0.140938133,
-0.0139974542,
0.2253264189,
0.3300789297,
0.3414487243,
-0.0892066211,
-0.2700641155,
-0.3984595537,
0.0046031922,
0.2516724169,
-0.1310021877,
-0.2252396345,
-0.2523097396,
0.0098991618,
0.0092800781,
-0.2826517522,
-0.2417198718,
-0.243052721,
0.1282057911,
0.1327528805,
-0.0508083254,
0.5702411532,
-0.2493349761,
0.5388227701,
-0.2218420506,
-0.0355611555,
-0.1266866326,
0.1360904127,
0.2055343091,
0.0919157714,
-0.1181469038,
-0.3078883886,
0.0967739373,
-0.1567497849,
0.2157622725,
-0.2193118781,
-0.2720018625,
0.0924664438,
0.0982196182,
-0.54949224,
0.159566313,
0.0025914013,
-0.1303560287,
-0.0801040232,
0.0279199295,
0.359270364,
-0.2882343829,
-0.0033152103,
-0.2200145125,
0.0260147825,
-0.4219439626,
0.0597499162,
-0.2398124784,
-0.3552932143,
0.2629978061,
0.3009648025,
0.2693175972,
0.1727240235,
0.5507330298,
-0.199210763,
-0.0610374995,
-0.1994948089,
-0.0663795322,
-0.4897853136,
0.5394611955,
-0.0980455205,
0.0153270531,
0.0874516219,
-0.1252422482,
0.0777763128,
0.4468551874,
-0.0799493194,
-0.3376499712,
0.1285666674,
0.363960743,
-0.3346346021,
0.1178629547,
0.4186064601,
0.4637767076,
-0.0478552543,
-0.109958902,
0.1922907531,
0.269297719,
0.1375142187,
-0.2730713189,
-0.2173581719,
-0.1211926937,
0.3359746635,
0.0764830112,
0.2960461378,
-0.0274232905,
0.204649359,
-0.227086544,
0.584733665,
0.2745041251,
-0.0230416618,
-0.001480449,
0.3178343773,
0.399106741,
-0.2302639037,
0.1185981706,
0.0865186006,
-0.3438403606,
0.0654723793,
-0.0959148332,
-0.0179028586,
0.1758667827,
-0.2882618308,
0.1732366979,
-0.2750517726,
-0.1769231558,
-0.3953578174,
0.0536462404,
-0.0832123458,
0.1600787938,
0.0639591068,
-0.1055448055,
-0.2958191037,
-0.1693470776,
-0.3520298898,
0.2836636603,
0.2666341364,
0.0805594176,
0.307921946,
-0.0387131572,
-0.251889348,
-0.0421441607,
0.8338668346,
-0.3788588643,
-0.4378480315,
0.2242659926,
0.1127659231,
-0.1577361077,
0.097095713,
0.1057937071,
0.1632110327,
-0.0759415552,
0.5961191058,
-0.1054958999,
-0.1591188461,
0.5606842041,
-0.0316056013,
-0.0854044408,
0.0484696552,
0.0277895257,
0.0359926522,
-0.1967297196,
-0.4320864379,
-0.0555670932,
0.3386976719,
-0.1358344257,
-0.1920318753,
-0.307297796,
-0.3666206896,
0.0244278498,
0.2055242658,
0.1794956625,
0.0950461626,
-0.0820065364,
0.0414196737,
-0.2957614362,
0.5316926241,
0.3902166486,
-0.1822920889,
-0.583805263,
0.0246761478,
-0.1763225198,
0.4705661833,
0.1444324255,
0.0501423515,
0.067947492,
-0.1717255712,
-0.0821690261,
-0.048412241,
0.183149755,
0.0039008856,
-0.1674987376,
-0.5671281815,
-0.1095216721,
0.3092727959,
0.2783620656,
0.0711731464,
0.4819399416,
-0.0583444722,
-0.3044939339,
-0.1575211734,
0.0009392314,
0.8850594759,
0.1260217428,
0.3311335444,
-0.226218909,
0.0032259449,
0.5197996497,
0.0478336662,
0.2047698498,
-0.1481339484,
-0.124194026,
-0.2646896839,
-0.1712023467,
0.2445558757,
0.2108685076,
-0.3462069631,
-0.0158084594,
-0.157059595,
0.2430430949,
-0.0885987133,
0.105543524,
-0.1538320631,
-0.4903746843,
-0.0216172934,
0.0488249362,
-0.0245373212,
-0.3043815792,
-0.1461359262,
-0.1761862934,
-0.1279932559,
-0.0854800865,
-0.1804277003,
0.0423264578,
-0.105661355,
0.0711871237,
0.3174974918,
-0.3614895344,
-0.2543605566,
0.02930714,
0.1480716765,
-0.0064471145,
-0.0709304512,
0.0422565863,
0.0623027459,
0.1289054453,
0.0310267396,
-0.0537448116,
0.135531351,
0.1384454519,
-0.0861511827,
0.2090971619,
0.1216171533,
-0.4662897289,
-0.0472949296,
0.0197877064,
-0.1885578036,
0.3184705973,
0.0496436879,
0.265966773,
0.0081747249,
-0.2457349598,
0.0697664991,
0.1611011773,
-0.1090482175,
-0.0136904493,
-0.0945156962,
-0.2226866335,
-0.1102861017,
0.500825882,
-0.0163832456,
-0.0746424794,
0.0070936941,
-0.0292047039,
-0.0497540832,
-0.1372648776,
0.1912910044,
0.1772450805,
-0.4085435271,
0.0378796831,
0.0131659918,
-0.3252490163,
-0.2265713066,
0.4109408855,
0.1060939133,
0.4780809283,
-0.0085213184,
-0.2397452891,
-0.3905125856,
0.0692646503,
0.1329521835,
0.3109384179,
-0.0479522385,
0.3263032436,
-0.1558872908,
-0.2524104416,
-0.3186054826,
-0.185745433,
0.0501369759,
-0.0410271399,
-0.0346877053,
0.183931917,
-0.1158591956,
-0.1639677584,
0.204978615,
0.1577213854,
-0.0985305086,
-0.1968848407,
-0.1340305209,
0.1485395581,
0.1073062867,
-0.2840131521,
0.150067389,
-0.0432475992,
-0.4669203758,
-0.231642276,
0.0755479336,
0.3219162226,
-0.2924264967,
-0.0770318285,
-0.0338760428,
-0.1470321864,
0.2508568168,
-0.1052209139,
0.1271602809,
0.2297831476,
-0.1485433728,
0.3913184404,
-0.0452923067,
-0.0981235355,
0.0812678188,
0.1626683772,
0.1188085377,
0.1618901491,
-0.1216424257,
-0.1106600612,
-0.0631340444,
0.0554232225,
0.40068385,
0.020576112,
-0.1196004897,
0.2616105378,
0.2204762697,
0.209854126,
-0.1823879182,
-0.3811210692,
0.1406419724,
0.2541767955,
0.3422204852,
0.1612043679,
-0.0517611355,
-0.0710426122,
0.2106890082,
0.0698188469,
0.2964719534,
-0.2202172279,
0.3369921744,
0.2586953044,
0.0071608946,
0.1303488314,
-0.0890476927,
0.3342759311,
0.462405026,
-0.006999149,
-0.229144156,
0.1734942496,
0.4945875108,
-0.1835905761,
0.1120679229,
-0.173814863,
0.0264863539,
0.2452167869,
0.0525419153,
0.3209812939,
0.3081976175,
-0.1144998372,
-0.0815671682,
-0.0159734841,
0.0095269531,
0.1592116505,
0.0778549388,
-0.0503286235,
-0.2130489945,
-0.2653894424,
-0.2309086919,
0.089011699,
0.155023247,
-0.3399496377,
0.5834512115,
-0.0975019857,
0.1491427422,
-0.1184304506,
0.5540001392,
0.1860548556,
0.0896639377,
0.0470757931,
0.0783337578,
0.3469669521,
-0.2284467071,
0.2433460951,
0.4025321305,
0.2854544222,
0.2740367055,
0.2811916471,
0.0306159183,
-0.1462983936,
-0.2365972102,
-0.0283688344,
-0.1163263768,
0.1971510649,
-0.3016254902,
0.2150509655,
0.2173686773,
-0.0716042146,
0.2614805102,
-0.0788995177,
-0.0456439406,
-0.4272871017,
-0.019338496,
0.0338471606,
-0.2840411663,
0.1452045441,
-0.0406889766,
-0.00887312,
-0.3922973871,
0.116033271,
-0.0790722147,
-0.0983598083,
0.0247816145,
0.0787741244,
0.2413952351,
0.3060614765,
-0.1230448261,
0.1278813779,
-0.0186884236,
-0.1987858862,
-0.2602226138,
0.0422805101,
0.0991178304,
-0.1305372864,
-0.1737663895,
0.1883448958,
0.2380337715,
0.0759841576,
0.4585736096,
0.2235714495,
0.3961393237,
0.1671211869,
-0.1709624976,
0.0779598653,
0.4045490921,
-0.2439547926,
0.0588640049,
-0.2913275957,
0.3434555531,
0.2600006461,
0.0656879768,
-0.0603651255,
0.0335991532,
-0.1045139804,
-0.1272339076,
0.2658379972,
0.1440148354,
0.0529983565,
-0.3452484012,
0.1761557013,
-0.1152968705,
-0.2272213846,
-0.4654476643,
0.1702620983,
0.1033771932,
0.173402667,
-0.4425379634,
-0.2223481089,
0.0486698486,
-0.1315544546,
0.1597056091,
0.1992394328,
-0.3781604767,
0.5593159199,
-0.0075795129,
-0.1205114052,
-0.2674337626,
-0.2030243278,
0.1023358554,
-0.0259291194,
0.0333862603,
-0.2070148438,
0.1993540525,
0.0469620489,
-0.2782863975,
-0.1676052213,
-0.056025371,
0.4199953675,
0.2059343457,
-0.1958511919,
-0.0618321821,
0.3006955981,
0.1444233358,
-0.2298727483,
0.4396009445,
-0.1456954479,
-0.0754336268,
-0.123263061,
0.0433050171,
-0.0170350689,
-0.2158044875,
-0.0351696834,
-0.5163918138
] |
https://github.com/huggingface/datasets/issues/853 | concatenate_datasets support axis=0 or 1 ? | Actually it's doable but requires to update the `Dataset._data_files` schema to support this.
I'm re-opening this since we may want to add this in the future | I want to achieve the following result
![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
| 26 | concatenate_datasets support axis=0 or 1 ?
I want to achieve the following result
![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
Actually it's doable but requires to update the `Dataset._data_files` schema to support this.
I'm re-opening this since we may want to add this in the future | [
-0.6200825572,
0.1132398844,
-0.1497741789,
0.1142358333,
0.1257237047,
0.2032429427,
0.3956647515,
0.3959014714,
-0.0039550588,
0.2456058562,
-0.2038994879,
0.3826510608,
-0.0755913332,
0.5006219745,
-0.471724987,
-0.079757899,
0.1835415363,
0.7113135457,
-0.5424262881,
-0.0117650405,
-0.2366656959,
0.0113502424,
-0.3396610022,
-0.3187689483,
-0.5360067487,
0.2311906368,
-0.0610603094,
0.0987930894,
-0.3007910252,
-0.2530787885,
0.3102918267,
0.364446044,
0.0571100898,
0.1387691498,
-0.0001069398,
0.0727545917,
-0.0874109417,
-0.1837270707,
-0.2688952684,
-0.2693290412,
-0.5620740652,
-0.2944661677,
-0.0757339001,
-0.0576738715,
-0.0406844132,
-0.3894325495,
0.0240065586,
-0.3615785837,
-0.0405687429,
0.1573860645,
0.2330460399,
-0.0190538578,
-0.1294507533,
-0.2183727026,
-0.0201020278,
0.318312794,
-0.076804705,
-0.1730318815,
-0.1243907586,
-0.0206791162,
-0.0104136616,
0.1871277988,
0.1481386721,
-0.1268916279,
0.0444813408,
0.1418745071,
0.3391287923,
-0.4659828544,
0.1633161306,
0.4161895514,
0.465919584,
-0.1859803945,
-0.2017849088,
-0.0357137024,
0.0992439538,
-0.1593414247,
0.0639984235,
0.2853878736,
0.1368729621,
0.3058353662,
-0.0108415708,
-0.1034040749,
-0.3154928684,
0.2407758236,
-0.2459402978,
0.5976783037,
0.1353765428,
0.092906259,
0.0829344839,
-0.2302643359,
0.1642214358,
-0.1872152388,
-0.1841834784,
0.3217139244,
-0.5415159464,
-0.1199427173,
-0.3733863533,
-0.1350854486,
0.3298957646,
0.2463191003,
0.2044766694,
0.0405513346,
-0.1924942136,
0.2452625632,
0.2398509681,
0.0245793276,
0.4051345289,
0.1368650347,
0.043472752,
-0.2887255549,
0.2190433145,
0.0950887948,
-0.3077248931,
-0.6520453691,
-0.3247911632,
0.0252013691,
0.0389829874,
0.1931323111,
-0.1030318141,
-0.1435526609,
-0.0916434675,
0.1084330305,
0.0559916608,
-0.0860121697,
0.2221767455,
0.7616559267,
-0.0534540042,
0.1921385825,
0.1734064221,
-0.2751089633,
-0.1755377501,
0.1871215552,
0.116021432,
0.0174794383,
0.1904694587,
-0.1842015535,
-0.044971101,
0.3144836724,
0.3391455114,
0.1827121079,
0.1533744037,
-0.2209470868,
0.2149468213,
0.2782845497,
0.0714067593,
-0.0948676988,
0.0562415309,
-0.1682222784,
-0.0141854808,
0.3145473301,
-0.1227609366,
0.0353901237,
-0.4891708791,
0.2089894563,
-0.2008128911,
-0.0463645831,
-0.2499529719,
0.3336355984,
-0.104029119,
-0.050091017,
0.0291796662,
-0.0175052807,
0.0748194158,
-0.1127745807,
0.1682958454,
0.1064413935,
-0.2814206481,
-0.069135204,
0.1847223639,
-0.4150510728,
-0.0711695403,
-0.0134753091,
-0.0360349342,
-0.3152644932,
-0.1420894414,
0.2441544831,
0.4369240701,
-0.4175727665,
-0.0972491726,
-0.0296996497,
-0.223877579,
-0.1285271347,
0.240766421,
0.1232237369,
0.162657544,
0.1246634126,
0.1226345003,
0.1622516215,
0.0343251377,
0.0087946057,
-0.0435844064,
-0.2390633225,
0.38197276,
0.1639903635,
-0.0783883631,
0.12246795,
0.1311315447,
-0.4837781191,
0.4867559373,
-0.3978928626,
0.2967704535,
0.1409306377,
0.2017503381,
-0.4265711904,
-0.0140516609,
-0.0838255957,
-0.5214068294,
0.0832033828,
0.0862970278,
0.2248171419,
0.0663840994,
-0.2890560329,
0.0348980166,
-0.2273232192,
-0.0602604374,
0.0564960875,
0.205526948,
-0.0045355149,
-0.12166816,
-0.1537702829,
-0.3518802524,
0.3766272366,
0.1587487459,
-0.1154477298,
-0.1170993596,
0.2699808478,
0.1768983603,
0.1353304088,
-0.0552103743,
0.2202477455,
-0.008487666,
-0.1499312371,
0.2518576682,
0.5035154223,
-0.2917840481,
0.0623999536,
0.2550008893,
0.2071126997,
0.0982295573,
0.0081176609,
-0.1666460782,
-0.4425747097,
0.0584748983,
0.0448830426,
-0.1063395739,
0.6201357841,
-0.3699852228,
0.0314686745,
-0.0144057348,
0.1793005317,
0.383482635,
-0.0434766114,
-0.4043267667,
-0.3500223458,
-0.0427924991,
0.3511187434,
-0.1354762018,
0.2653813064,
-0.1887798905,
0.1107139289,
0.2804254293,
0.0704483986,
-0.087477982,
-0.2053280324,
-0.2089477926,
0.1277799904,
0.3520627022,
0.1063214242,
0.3652783632,
0.3536135256,
-0.1055593342,
0.1605368704,
-0.2328377664,
-0.0367887169,
0.1600503027,
-0.109519124,
0.1294081956,
0.5694360137,
0.3345155716,
-0.154761672,
-0.2027950883,
-0.3446967304,
0.0545792952,
0.3210367262,
-0.1644705534,
-0.1237166971,
-0.3376929462,
-0.0289666764,
-0.0205558147,
-0.2282092422,
-0.1973007917,
-0.1747505665,
0.0097842384,
0.1202023178,
-0.0833289921,
0.5366842151,
-0.2834307551,
0.3671421111,
-0.1475297511,
0.0455882847,
-0.0810190439,
0.1155287027,
0.1502860487,
0.1537219584,
-0.0949318558,
-0.0600870252,
-0.0542415008,
-0.1520798057,
0.1689740121,
-0.2086488307,
-0.0228293538,
0.0750808269,
0.0956627131,
-0.4917034209,
0.1373925805,
0.0581365936,
-0.1652502418,
-0.0315137133,
0.1185320169,
0.4089571834,
-0.1036079228,
-0.0026436225,
-0.1406345367,
0.1124784648,
-0.3971731663,
-0.0300061926,
-0.2158599347,
-0.3724111319,
0.2106263936,
0.1946964115,
0.2574148774,
0.1328769624,
0.478038758,
-0.1940964907,
-0.0909741968,
-0.1697713733,
-0.0309564192,
-0.4245988727,
0.4616803527,
-0.0298403073,
-0.0371075422,
0.1607221812,
-0.1619769186,
0.1664905399,
0.4515376985,
0.0763074011,
-0.2016091943,
0.110222213,
0.2375047803,
-0.3646522164,
0.0101896748,
0.3265554011,
0.391983211,
-0.0877716541,
-0.1209307238,
0.1506009996,
0.302724272,
0.0087926816,
-0.2549480796,
-0.2459114343,
-0.1872356981,
0.2631953359,
-0.1249643192,
0.3277339637,
-0.108265385,
0.1255527437,
-0.1994957775,
0.4069368243,
0.3109947741,
-0.0276982933,
-0.1179935932,
0.2570595443,
0.3770461679,
-0.0890037864,
0.1365221143,
0.1633622348,
-0.2239508778,
0.0821331739,
-0.1582339108,
-0.1031017974,
0.1620391011,
-0.3506247997,
0.2318835855,
-0.2672047019,
-0.1196488887,
-0.2770115733,
0.1028709412,
-0.1344165206,
0.2083799839,
0.0226844363,
-0.1044852212,
-0.2123043239,
-0.127028212,
-0.2655831277,
0.2473723441,
0.1132122278,
0.2012474239,
0.3306745887,
-0.0520227738,
-0.2196619809,
-0.0646099597,
0.8043143153,
-0.1964740604,
-0.2649797201,
0.2764644921,
0.1832419783,
-0.2816005647,
0.0588714927,
-0.0003236011,
0.1411298513,
-0.1500122696,
0.6463130116,
-0.1053611636,
-0.2349710912,
0.3337989151,
0.0356729664,
-0.0269499943,
0.0496500134,
0.0313545913,
0.0973668098,
-0.1070192009,
-0.3596580625,
0.0260892585,
0.4266490936,
-0.2164452374,
-0.1124901772,
-0.2984729409,
-0.3305149674,
0.0920701474,
0.2017967999,
0.263672322,
0.0238039643,
-0.1854523718,
0.0843249112,
-0.1085095853,
0.5909473896,
0.2734284103,
-0.0902699903,
-0.555542469,
0.0161081664,
-0.2124795318,
0.3017392159,
0.0445833951,
-0.0492894761,
0.0913477689,
-0.2318297327,
-0.0863751322,
-0.0627544075,
0.2212536037,
0.0731515437,
-0.0394287854,
-0.5384457111,
-0.191569984,
0.2679325044,
0.2278109193,
-0.0005599856,
0.3381007016,
-0.0664314181,
-0.3769415617,
-0.0578933842,
0.0016406961,
0.7042245865,
0.1960831583,
0.2802124023,
-0.045264326,
-0.0734536499,
0.4230076075,
-0.1159623265,
0.3017451465,
-0.3229172826,
-0.1712746322,
-0.2338221371,
-0.1116466448,
0.2787316442,
0.3182134926,
-0.3091920316,
-0.0227296799,
-0.3546568751,
0.2063691914,
-0.0992076248,
0.0684025288,
-0.1414734274,
-0.3997266293,
-0.2292438895,
0.0932907835,
-0.0462397076,
-0.3588963449,
-0.2243019342,
-0.1141458303,
-0.0944369435,
0.036302045,
-0.116458796,
-0.0166975968,
-0.0416437015,
0.0535579659,
0.1420465261,
-0.2721470594,
-0.1693539023,
0.1830166727,
-0.0191534199,
-0.0161071829,
-0.0831818953,
-0.0362563133,
0.0723043904,
0.1616737843,
-0.0199309941,
-0.0701222122,
0.0358037278,
0.1406971663,
-0.1232456267,
0.0843949169,
0.1165625453,
-0.2221605331,
0.0868033767,
0.1301592588,
-0.266566962,
0.0771867707,
0.0197351463,
0.0916165262,
0.12812832,
-0.1698982716,
0.1342814416,
0.1671477407,
-0.1286481023,
-0.016501572,
-0.1649946868,
-0.2615967095,
-0.11773175,
0.6089308858,
0.0195697732,
-0.0570769794,
0.0621193945,
0.0503903925,
-0.110985525,
-0.229891181,
0.2489143908,
0.2228283584,
-0.3753677309,
0.1541321576,
0.1678536385,
-0.2025000602,
-0.1807568967,
0.3313976526,
0.0607090667,
0.4667711258,
0.0213509724,
-0.3434013128,
-0.3806179166,
0.1042641252,
0.1155208051,
0.2782459855,
-0.0278321356,
0.2225749046,
-0.1813864857,
-0.3636707664,
-0.3565866649,
-0.0849394873,
-0.0004004166,
-0.0124316756,
0.0026947428,
0.1050577685,
-0.1492235661,
-0.0949683189,
0.2796120644,
0.0400896929,
-0.1153400391,
-0.2759157419,
-0.0686292499,
0.0815152302,
0.1414375305,
-0.2460021973,
0.1420936137,
0.0204805806,
-0.4042542577,
-0.3431595266,
0.0698396862,
0.4484345019,
-0.2318344712,
0.1061020643,
0.0223233774,
-0.0160906464,
0.0974609703,
-0.1148716658,
0.1849147081,
-0.1200098768,
-0.1341993213,
0.361633718,
-0.0978330374,
-0.0388589352,
-0.0022238605,
0.1870062649,
0.0968815833,
0.0798407495,
-0.0928238332,
-0.07402201,
-0.0172479004,
0.1759507656,
0.4340109229,
0.1533684433,
-0.0640266165,
0.2420129776,
0.1094629541,
0.3031439781,
-0.2127265334,
-0.3532360792,
0.2220483571,
0.3588953912,
0.3141608834,
0.055817835,
-0.0908035189,
-0.250669986,
0.0678107291,
0.0501984209,
0.2047772855,
-0.1698724627,
0.3834699094,
0.4358226657,
-0.0294313878,
0.1261446625,
-0.0136493286,
0.2723964751,
0.4389002323,
0.310313046,
-0.1143629178,
0.1330089718,
0.5196547508,
-0.2122604251,
-0.1784769595,
-0.2729002833,
-0.0640006661,
0.2034421861,
-0.0655435324,
0.0750013962,
0.246042341,
-0.1240101829,
-0.0699608475,
-0.0658299923,
0.0619357303,
0.0639647916,
-0.0822219849,
-0.1166550815,
-0.2260525525,
-0.2981688082,
-0.1549362242,
-0.0022586659,
0.0914164856,
-0.1644556373,
0.4076095223,
-0.1368977427,
0.0725944713,
-0.1749768555,
0.5676489472,
0.3037234247,
0.0145082809,
0.080850333,
-0.027164124,
0.4270549715,
-0.0663246363,
0.3073719144,
0.2212706506,
0.2742754221,
0.2930245399,
0.2621852458,
-0.1128536165,
-0.2860123813,
-0.1186679453,
-0.1190196276,
-0.127603516,
0.1903667599,
-0.2001358122,
0.2976949513,
0.2840932906,
-0.1369681507,
0.1918234378,
-0.1167657077,
0.0572093725,
-0.4939645827,
-0.0611630417,
0.0196013749,
-0.3098627925,
0.1819342971,
-0.0679012984,
0.0519441366,
-0.4709718227,
0.0641246885,
0.1147004142,
0.0574921742,
0.0310804024,
0.1373213679,
0.149732545,
0.2665432692,
-0.1925780028,
0.0749789625,
-0.1077986211,
-0.1571920216,
-0.3030636907,
-0.0121725574,
0.1811227798,
-0.1273794323,
-0.2198211253,
0.1420226246,
0.1640561819,
-0.018631598,
0.3866996169,
0.3028851748,
0.4080854356,
0.174900949,
-0.2060698867,
0.0816560984,
0.213749662,
-0.1575514525,
0.0261630192,
-0.3309254944,
0.2674061358,
0.3030885458,
0.158862561,
0.0156213939,
0.0574567467,
-0.0373785757,
-0.2359869778,
0.1922112703,
0.1937495619,
0.1685363203,
-0.2342080325,
0.2491448075,
-0.2890502512,
-0.1645460278,
-0.466768086,
0.220982939,
0.0836227387,
0.2395306677,
-0.3569455743,
-0.1498155445,
0.0817292854,
-0.1276065856,
0.0964067206,
0.3045402765,
-0.3017326593,
0.5580821037,
0.1114962846,
-0.1556441784,
-0.2687895298,
-0.1030101478,
0.0534995981,
-0.0644027293,
0.005962953,
-0.1904581189,
0.1649003923,
0.0615109764,
-0.3933855891,
-0.2425920069,
0.0094966106,
0.2682799995,
0.1611188948,
-0.0859816819,
-0.1158312783,
0.3000069857,
0.072887443,
-0.3006666601,
0.178754881,
-0.2094932497,
-0.0793691128,
-0.1268157363,
0.0100367442,
0.0115268659,
-0.251770705,
-0.1031508446,
-0.4564323425
] |
https://github.com/huggingface/datasets/issues/853 | concatenate_datasets support axis=0 or 1 ? | Hi @lhoestq, I would love to help and add this feature if still needed. My plan is to add an axis variable in the `concatenate_datasets` function in `arrow_dataset.py` and when that is set to 1 concatenate columns instead of rows. | I want to achieve the following result
![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
| 40 | concatenate_datasets support axis=0 or 1 ?
I want to achieve the following result
![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
Hi @lhoestq, I would love to help and add this feature if still needed. My plan is to add an axis variable in the `concatenate_datasets` function in `arrow_dataset.py` and when that is set to 1 concatenate columns instead of rows. | [
-0.3484047949,
-0.035173282,
-0.121993944,
0.0604965538,
0.1725976318,
0.0918549597,
0.3840520084,
0.360943079,
0.0169329271,
0.3619810939,
0.0030050948,
0.4973301888,
-0.1567097753,
0.517273128,
-0.3565699458,
-0.1661896557,
0.177599594,
0.7238048911,
-0.4239692688,
0.0119397119,
-0.2513481379,
0.0003019068,
-0.4031875134,
-0.1789036095,
-0.3692489266,
0.2398510426,
-0.0626369119,
-0.1479696035,
-0.1530628204,
-0.311228931,
0.3284271359,
0.0878712833,
0.1952235401,
0.012289077,
-0.0001191998,
-0.0108592063,
0.0415535308,
-0.1125790551,
-0.2453657687,
-0.3221568465,
-0.4053148031,
-0.4979774952,
0.2271567434,
-0.0378436074,
-0.0390659273,
-0.5209636688,
-0.1310442686,
-0.4387721121,
-0.0303991027,
0.251980871,
0.1772931069,
-0.0298094414,
-0.0708884075,
-0.0822863579,
0.0069352165,
0.2928185165,
-0.2658258677,
-0.2799832821,
-0.1053105071,
-0.1982270181,
0.1226945966,
0.2715040445,
0.1151821166,
-0.0590899736,
0.1243959069,
0.192700699,
0.4056862891,
-0.5003890395,
0.1288582236,
0.3248576522,
0.5749329329,
-0.2733677924,
-0.1551249027,
-0.0996264741,
0.465352118,
-0.0741733164,
-0.0730669349,
0.1629956663,
0.0500215702,
0.1906057894,
0.1351308674,
-0.1057224646,
-0.3829074502,
0.3393298388,
-0.0798394084,
0.5351187587,
0.0546735935,
0.1881547123,
0.2290104628,
-0.1005360037,
0.2734650075,
-0.0220018104,
-0.0882297903,
0.4876589477,
-0.7353639603,
-0.0565520264,
-0.1842576563,
-0.1495025009,
0.0795148462,
0.2421556264,
0.2245166302,
0.0926510245,
0.0213932544,
0.0912518501,
0.2350978106,
0.2246276289,
0.3509420156,
0.3787026703,
-0.0325111449,
-0.2437981516,
0.3597437143,
0.0425397977,
-0.364356041,
-0.5424798727,
0.017011717,
0.0181891955,
0.2261974514,
0.1226506531,
0.0239372104,
-0.2209315598,
-0.1189647764,
0.087071687,
0.0508955605,
0.0251881313,
0.1460365206,
0.9004561901,
0.0120820701,
0.3414285183,
0.2295052111,
0.0137566254,
-0.1139786839,
0.0569171868,
0.1438239813,
-0.0556244552,
0.204887554,
-0.0913903415,
-0.2196103632,
0.3884478509,
0.230276823,
0.0550053045,
0.1491926312,
-0.2047063112,
0.3219255209,
0.2805397213,
-0.0968062058,
-0.1261663437,
0.2055717707,
0.062370494,
-0.055790633,
0.4711823463,
-0.231435746,
-0.1000727117,
-0.4651690722,
0.0941777453,
-0.1046972275,
0.0153277796,
-0.1906224489,
0.2959979177,
-0.1859526485,
-0.0435081869,
0.1876228601,
-0.0357854292,
0.2972151637,
-0.1553346217,
0.1612837911,
0.0049320608,
-0.3409696817,
-0.1471392661,
0.0910136104,
-0.3876314163,
0.0534617417,
-0.2109612226,
-0.1383637041,
-0.3526225686,
0.0315905139,
0.0757285058,
0.5826775432,
-0.3446735144,
-0.0554098114,
-0.0860996693,
-0.2328721136,
-0.1188210919,
0.2510831952,
0.0848358721,
0.1563537866,
0.3511500955,
0.0567252859,
0.1157443374,
0.1549996436,
0.0601839796,
-0.0310867168,
-0.2949572206,
0.3611496091,
0.0845943242,
-0.1838748753,
0.1872298568,
0.1451579481,
-0.6566544175,
0.4483215809,
-0.2873113453,
0.2504685521,
0.0672571212,
0.2859600782,
-0.3821875155,
0.1760792434,
0.0115000084,
-0.5103507042,
0.0093306452,
0.0709225908,
0.093912743,
-0.1279552281,
-0.1896885931,
0.0881058127,
-0.0501626357,
-0.0020474652,
0.1332370639,
0.074665539,
-0.1537557691,
-0.013752304,
-0.0632730275,
-0.514172852,
0.2657354772,
0.0369736254,
-0.058543615,
0.0747815371,
0.1293305159,
0.3989729881,
0.0104730129,
-0.0507494025,
0.2513030469,
-0.0305065922,
0.0026416369,
0.1037911847,
0.4819203615,
-0.2660453618,
0.0595241673,
0.0792403594,
0.1076507494,
-0.0076673813,
0.158084929,
-0.0221202858,
-0.4409919381,
0.1242803708,
0.0762314498,
-0.0412996411,
0.6403238773,
-0.3575986624,
0.3346841335,
-0.1100428402,
0.1808686107,
0.1615356803,
0.0231888741,
-0.4258247316,
-0.408821255,
-0.0126215108,
0.0484393984,
-0.0436072014,
0.0558499768,
-0.1431510001,
0.1709883362,
0.1125742123,
0.1262001693,
0.0519081764,
0.0012860093,
-0.152281791,
0.1239793003,
0.3801653683,
0.1782371402,
0.3607854843,
0.298689872,
-0.2555091679,
0.079402864,
-0.2633960843,
0.0075087398,
0.1795023084,
-0.1009883881,
0.1762392372,
0.4263387918,
0.3166393042,
-0.2478158772,
-0.0401937962,
-0.2858068645,
-0.080619894,
0.3229049444,
-0.1934482753,
-0.0563694201,
-0.2910399437,
0.0493008047,
-0.0500066355,
-0.2946999073,
-0.0211714823,
-0.1120548546,
-0.1554307342,
-0.0364156291,
-0.0193310976,
0.3741750121,
-0.4930708408,
0.3559173942,
-0.2469771653,
-0.1339391321,
-0.1379535794,
0.0090173148,
0.1622433364,
0.0472507104,
-0.3723033667,
-0.01398094,
-0.1844156981,
0.146101445,
0.3058330715,
-0.0948379934,
0.1029901356,
0.0089049367,
0.0370649025,
-0.5876760483,
0.1067022532,
0.0269410796,
-0.2069615573,
-0.0409311205,
0.1177267805,
0.2338816077,
0.1125554144,
0.2097989321,
-0.010964442,
0.140488565,
-0.2592789829,
0.003588561,
-0.2987796366,
-0.2682061195,
0.2431946844,
0.1682782173,
0.257011503,
-0.0250565335,
0.5799673796,
-0.0892566964,
-0.1376326382,
-0.1850079298,
-0.0082033277,
-0.2557289004,
0.4852347076,
0.1104865447,
0.1025685817,
0.0995436609,
-0.0862703174,
0.0467191041,
0.413332969,
0.0534079373,
-0.1445577443,
0.0527912751,
0.2172712088,
-0.5132223964,
0.1616336405,
0.4702357054,
0.5106551647,
-0.0310234707,
-0.0433089733,
0.180946961,
0.2171825767,
0.0877052397,
-0.2157238722,
-0.1919553876,
-0.0750128329,
0.0424116552,
-0.1768641472,
0.3741515875,
0.0440556258,
0.1584655941,
-0.263222754,
0.4001316428,
0.2265396863,
-0.120754227,
-0.2325465977,
0.1497762352,
0.4359626472,
-0.254674077,
0.0710947961,
-0.0624019876,
-0.2544448674,
-0.038475953,
-0.0993877724,
-0.0369387865,
0.2689316273,
-0.4602844417,
0.3100157678,
-0.3693745434,
0.0572334379,
-0.3677939773,
0.0736622661,
-0.1651509255,
0.0835071802,
-0.000340309,
-0.1691707373,
-0.0650748387,
-0.3578389883,
-0.3593354225,
0.2574381232,
0.0695171207,
0.3801535964,
0.3835254312,
-0.1553503871,
-0.0204755887,
-0.0836835429,
0.5714024305,
-0.156204775,
-0.4705405831,
0.2725021541,
0.2294003367,
-0.3887180984,
0.0548174456,
-0.0953000039,
0.1669651717,
-0.5454443693,
0.5598383546,
-0.070308961,
-0.2177532911,
0.4023014605,
0.1158299893,
0.0991187394,
0.0258434452,
-0.0698378608,
0.3210975528,
-0.0830857381,
-0.2661030889,
-0.1717463732,
0.3820983469,
-0.1190677211,
-0.0910446793,
-0.3985782862,
-0.4091424048,
-0.0884824097,
0.2239568979,
0.3877208829,
-0.0640559644,
-0.2556828558,
0.2702802122,
-0.3332702816,
0.3518735766,
0.130445078,
0.0350072086,
-0.5236520171,
-0.0468706302,
-0.1196566522,
0.4337210953,
-0.022080414,
-0.2208118886,
0.2770231068,
-0.2694506645,
0.1267730296,
0.0521562137,
-0.1338437796,
0.1665183902,
-0.0097458512,
-0.4315808117,
-0.2191572785,
0.3486346006,
0.1353695691,
0.0084244013,
0.6973345876,
0.0833863989,
-0.2565926611,
-0.0252848063,
-0.0733766332,
0.7857354879,
0.315141201,
0.1289802641,
0.1136043146,
-0.177608192,
0.3352882564,
-0.0529924631,
0.3411027491,
-0.2741164565,
0.0570810661,
-0.242092818,
-0.0834378377,
0.4021306336,
0.1842034161,
-0.3846101761,
-0.0006990358,
-0.4704165459,
0.0434353314,
-0.0910093412,
-0.0349010266,
-0.0610845983,
-0.4337595999,
-0.3539847732,
0.0192394108,
-0.0836381763,
-0.2131684422,
-0.1475096047,
-0.0658614933,
-0.0981745273,
0.0158096179,
-0.1265791655,
0.0224883333,
-0.1242732555,
0.0267805904,
0.206404373,
-0.4968127012,
-0.1666465551,
0.0748852491,
-0.1950948238,
-0.0776573345,
-0.1020544022,
-0.1442985684,
0.2181645632,
0.1547255367,
0.0675879866,
-0.1068940312,
-0.0902711079,
0.1711312234,
-0.4106578529,
0.295350492,
0.0785986185,
-0.3563290238,
0.2157658935,
0.1351616234,
-0.2114050537,
0.0175464153,
-0.0476073883,
0.1775495261,
0.1961911768,
-0.1308626086,
0.1119001061,
0.2456718683,
-0.0513119549,
0.0592193156,
-0.0775820091,
-0.4195977449,
-0.1293431073,
0.5261602998,
0.043989785,
0.0712043792,
0.1582732499,
-0.0439692512,
-0.1154847443,
-0.1995779276,
0.2184594572,
0.3122900724,
-0.4885488153,
0.1014294624,
0.3493880928,
-0.171963498,
-0.1115617454,
0.2508735061,
-0.1002785861,
0.5149900913,
-0.3174566627,
-0.3425139189,
-0.2884971797,
0.1409842372,
0.261449337,
0.1416514814,
-0.1929024458,
0.0557608642,
-0.052850429,
-0.3349049687,
-0.2467562854,
-0.2235084027,
0.1084795818,
0.036737185,
-0.05511548,
0.1701837182,
-0.0315221101,
-0.1321483254,
0.2110212743,
-0.0566479675,
0.0468339175,
-0.2108980119,
-0.0269657932,
0.1197661161,
0.0379405692,
-0.1967042089,
-0.0256892908,
-0.2114132047,
-0.4215814769,
-0.3005752861,
-0.0577737093,
0.3900689185,
-0.2933142781,
0.1927300096,
0.0073896176,
-0.1262221336,
0.058437556,
-0.1333049238,
0.1063779742,
-0.2697787285,
-0.129073292,
0.3115579784,
-0.014695745,
-0.0239922181,
-0.1153496578,
0.1420280635,
-0.0804171339,
0.1508463621,
-0.1009417027,
-0.0178988166,
0.1060808674,
0.0043391027,
0.2145282626,
0.1985804439,
0.0695899129,
0.1378552914,
0.1196547449,
0.1944485903,
-0.2550900578,
-0.3299840093,
-0.1221530885,
0.4712209404,
0.2662366629,
0.0889461637,
-0.3071508408,
-0.1714679301,
0.2530723512,
-0.0350028947,
-0.0061066113,
-0.3235415518,
0.3857971728,
0.5572220087,
0.1179559827,
0.0595886894,
0.0396984294,
0.1406228989,
0.3361617923,
0.1338010281,
-0.1947599947,
0.0111886095,
0.6011148691,
-0.1956802607,
-0.3244704604,
-0.2275508791,
-0.1771328151,
0.0576399826,
-0.3520764112,
0.0259018391,
0.2534098923,
0.0475112088,
0.0037971213,
0.0382114723,
0.0047177151,
-0.0491009876,
-0.0333115831,
-0.153209269,
-0.1339404881,
-0.1807448566,
-0.0390095338,
-0.1634125412,
-0.0081547713,
-0.036450427,
0.5291034579,
-0.0122988038,
0.1284841001,
-0.2611067295,
0.6372092366,
0.4024969935,
0.296676755,
0.1472106576,
-0.0721087456,
0.2510968447,
0.1226370484,
0.1405629963,
0.1009420529,
0.2281180173,
0.3508401215,
0.1949284822,
-0.0105888657,
-0.1840802729,
-0.1523509473,
0.1153998002,
-0.0542162061,
0.2688621879,
-0.1554082334,
0.0373204686,
0.2149943411,
-0.1238102242,
0.1923080683,
-0.2610240877,
0.0407701768,
-0.5898835659,
0.2387276739,
0.054874301,
-0.3407075405,
0.0447937623,
0.1309804171,
0.1003149152,
-0.2478525192,
0.1044543087,
0.1209605411,
-0.2225826681,
-0.089520663,
0.0841976851,
0.1150964871,
0.300142318,
-0.3738714755,
0.1910105199,
-0.1773016751,
-0.0435479805,
-0.1761842072,
-0.1203368008,
0.0298216753,
-0.2808221281,
-0.0348398052,
0.1566494852,
0.1548453271,
-0.0142835248,
0.4911920726,
0.3564315438,
0.2708080113,
0.1197310016,
-0.172999382,
0.110413745,
0.1908469647,
0.0002529323,
0.0117308572,
-0.4289302826,
0.342001617,
0.2795122266,
0.0535213947,
0.0645613447,
0.077707693,
0.0041041151,
-0.1786305606,
0.416043669,
-0.0091126394,
0.0227229614,
-0.0563518927,
0.3888104856,
-0.3106724024,
-0.1244541556,
-0.2836524844,
0.3805929422,
0.1252902746,
0.0776667297,
-0.3122361898,
-0.1756629348,
0.0684748292,
-0.105655387,
0.0410507396,
0.3822814226,
-0.037719164,
0.5629078746,
0.2832453251,
-0.16166462,
-0.3342678845,
-0.2283570468,
0.1190134287,
-0.0508760586,
0.0048648566,
-0.1859401315,
0.0442824215,
0.0811173469,
-0.4008435905,
-0.0934760422,
0.1942816377,
0.294878751,
0.0456387773,
-0.3090927601,
-0.1178347245,
0.2098562568,
0.1142396033,
-0.2594254613,
0.1607899666,
-0.1314872205,
0.1261089146,
-0.0699985027,
0.1405731291,
-0.0546758845,
0.071230717,
-0.1971195191,
-0.4769251347
] |
https://github.com/huggingface/datasets/issues/853 | concatenate_datasets support axis=0 or 1 ? | Hi ! I would love to see this feature implemented as well :) Thank you for proposing your help !
Here is a few things about the current implementation:
- A dataset object is a wrapper of one `pyarrow.Table` that contains the data
- Pyarrow offers an API that allows to transform Table objects. For example there are functions like `concat_tables`, `Table.rename_columns`, `Table.add_column` etc.
Therefore adding columns from another dataset is possible thanks to the pyarrow API and in particular `Table.add_column` :)
However this breaks some features we have regarding pickle. A dataset object can be pickled and unpickled without loading all the data in memory. It is useful for multiprocessing for example. Pickling a dataset object is possible thanks to the `Dataset._data_files` which defines the list of arrow files that will be used to form the final Table (basically all the data from each files are concatenated on axis 0).
Therefore to be able to add columns to a Dataset and still be able to work with it in a multiprocessing setup, we need to extend this last aspect to be able to reconstruct a Table object from multiple arrow files that are combined in both axis 0 and 1. Currently this reconstruction mechanism only supports axis 0.
I'm sure we can figure something out that enables users to add columns from another dataset while keeping the multiprocessing support. | I want to achieve the following result
![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
| 230 | concatenate_datasets support axis=0 or 1 ?
I want to achieve the following result
![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
Hi ! I would love to see this feature implemented as well :) Thank you for proposing your help !
Here is a few things about the current implementation:
- A dataset object is a wrapper of one `pyarrow.Table` that contains the data
- Pyarrow offers an API that allows to transform Table objects. For example there are functions like `concat_tables`, `Table.rename_columns`, `Table.add_column` etc.
Therefore adding columns from another dataset is possible thanks to the pyarrow API and in particular `Table.add_column` :)
However this breaks some features we have regarding pickle. A dataset object can be pickled and unpickled without loading all the data in memory. It is useful for multiprocessing for example. Pickling a dataset object is possible thanks to the `Dataset._data_files` which defines the list of arrow files that will be used to form the final Table (basically all the data from each files are concatenated on axis 0).
Therefore to be able to add columns to a Dataset and still be able to work with it in a multiprocessing setup, we need to extend this last aspect to be able to reconstruct a Table object from multiple arrow files that are combined in both axis 0 and 1. Currently this reconstruction mechanism only supports axis 0.
I'm sure we can figure something out that enables users to add columns from another dataset while keeping the multiprocessing support. | [
-0.5330206156,
0.3033456206,
-0.0301637221,
0.0675023869,
-0.0625749081,
-0.058221668,
0.2094468772,
0.4255703092,
-0.0745846927,
0.1827807128,
-0.1869085133,
0.7275900245,
-0.1599383056,
0.5724495649,
-0.2195647657,
-0.2587185204,
0.1644584984,
0.6102408767,
-0.5832626224,
0.2564368844,
-0.2590902746,
-0.1035276204,
-0.390879035,
-0.2035316527,
-0.4795861244,
0.2016776204,
-0.2737202644,
-0.0490153469,
-0.2796464264,
-0.3253383338,
0.3125088215,
0.239716351,
0.1502656341,
0.2005508542,
-0.0001199671,
0.1369439065,
-0.1574161351,
-0.1425993145,
-0.2051129937,
-0.3425642252,
-0.2079404444,
-0.4237651527,
0.1109850109,
0.0214356482,
0.0509263575,
-0.3994387984,
0.0115842987,
-0.209481746,
-0.0847178847,
0.0106308609,
0.1065384299,
0.2030957192,
0.1404248327,
-0.0321109444,
0.180028066,
0.2532161176,
-0.2782605588,
-0.0167419724,
0.1530688107,
-0.2789542973,
-0.0680210888,
0.0427839123,
0.0780210122,
-0.1596898735,
-0.1154883206,
0.2264116406,
-0.0171626583,
-0.4759061038,
0.009978177,
0.3201737702,
0.5716284513,
-0.460849911,
-0.3677830696,
-0.2338826358,
0.2534554601,
-0.2218377888,
0.0001272988,
0.3750633597,
0.0167704076,
0.2371692359,
0.1775354147,
-0.057285849,
-0.3395476937,
0.2411716878,
-0.0190358907,
0.4345144928,
0.1910942942,
0.2638528347,
0.2380311191,
0.0664345697,
0.1477769166,
-0.0472186208,
0.0093137184,
0.384311825,
-0.5604682565,
-0.0574878938,
-0.0918804556,
-0.2331231534,
0.3174954653,
0.3900789022,
0.1542616487,
0.17873016,
-0.2172390223,
0.1800462902,
0.344322145,
0.0806483328,
0.1206251383,
0.1088646501,
0.0886458457,
-0.3576654792,
0.2269136012,
0.1656295061,
-0.2526625693,
-0.463550657,
-0.1971273869,
0.0083356053,
0.0876558125,
0.3238954544,
0.0359360501,
-0.184930563,
-0.1439830512,
-0.0253475253,
-0.0368293114,
-0.0154864006,
0.0473194681,
0.6687633395,
-0.0877523795,
0.354726702,
0.0581442788,
-0.226371035,
0.0241896771,
0.1549760699,
-0.1172147244,
0.0183615871,
0.2820977569,
-0.2173439562,
-0.176204741,
0.3253814578,
0.2179031074,
0.335654825,
0.1447252631,
-0.3521079123,
0.2080583274,
0.2606724203,
0.0259193406,
-0.2390606701,
0.174502641,
-0.2554287314,
-0.1124654263,
0.5075588822,
-0.0809983909,
-0.1647180617,
-0.5950241685,
-0.0452264547,
-0.2724875808,
0.0383550227,
-0.4368534982,
0.4114602804,
-0.1237174794,
-0.1192980856,
-0.0507045351,
-0.0770142376,
0.188991189,
-0.3673183024,
0.1948675215,
0.162083745,
-0.479849577,
0.0667728633,
0.2755303979,
-0.2665074468,
0.1613332182,
-0.0931987762,
-0.1369088888,
-0.178318575,
-0.0251091644,
0.4001128972,
0.316925168,
-0.14226228,
-0.128644377,
-0.2277927101,
-0.165332675,
0.0983729139,
0.2961517572,
0.1404904872,
0.0227770731,
0.2862352729,
0.0302665457,
0.199199453,
0.0826272964,
0.0302403718,
-0.0266127512,
-0.2715084553,
0.433552146,
0.2305364907,
-0.0026214276,
0.0165927596,
0.2031265497,
-0.8441979885,
0.4641340077,
-0.3334351182,
0.3690649271,
-0.1239212975,
0.2949065864,
-0.2296962738,
-0.0010062531,
-0.2239661962,
-0.5165884495,
0.2283264101,
0.0090547055,
0.3067691326,
-0.0804101601,
-0.2215372026,
0.2335239351,
-0.0019999892,
-0.0799394101,
0.0808482841,
-0.0164996535,
-0.054875195,
0.1699632704,
-0.1656709611,
-0.4816542268,
0.2382018864,
0.1083150655,
-0.07152877,
-0.0773395598,
0.3713355362,
0.1570253372,
-0.0870867968,
-0.1743690968,
0.3615192175,
-0.0181471296,
-0.0206052437,
0.3296247125,
0.4635332823,
-0.1377492696,
-0.1679189205,
0.1001986191,
0.1087244898,
-0.020942837,
0.0529411733,
-0.0277977437,
-0.6245051622,
0.1870198548,
0.0502292812,
0.094549045,
0.7123305798,
-0.3065618873,
0.0765162483,
0.0154874772,
0.0544218421,
0.205355227,
0.0487104729,
-0.2358561158,
-0.2040676773,
-0.064003855,
0.4038101435,
-0.1281863451,
0.1696961373,
-0.5598100424,
0.1875689179,
0.331805259,
0.0576812103,
0.0605530106,
-0.0258673411,
-0.0626169592,
-0.010134466,
0.217533797,
-0.0440561324,
0.4475494027,
0.2890945971,
-0.0274709016,
0.0343548656,
-0.3288682401,
0.0302779004,
0.1246184781,
-0.1124888957,
0.1410585046,
0.4801804125,
0.3467617035,
-0.0932762027,
-0.0006992519,
-0.2700639367,
0.132715553,
0.2761549652,
-0.2611798942,
-0.1646778882,
-0.5461021662,
0.101872012,
-0.1480002701,
-0.4510302544,
-0.0061001135,
-0.0652495474,
-0.0083423778,
0.1660647839,
-0.1294540465,
0.3992395401,
-0.3121035099,
0.3103452027,
-0.4550032616,
0.0091784019,
-0.1386480182,
-0.0753175318,
0.0793840066,
0.0230256207,
0.0066539384,
-0.1259334385,
-0.1095999628,
0.094133772,
0.1009101197,
-0.1167373434,
-0.0924803317,
0.0472545065,
-0.1176144332,
-0.2593385279,
0.1583617926,
-0.0850254297,
-0.1846011579,
-0.1618712246,
0.0596692003,
0.2899072766,
-0.1702336371,
0.1635432541,
-0.0480609462,
0.1415768117,
-0.26361233,
-0.1541389376,
-0.3244235218,
-0.2585850358,
0.4762246907,
0.081649892,
0.2547365725,
0.0297363363,
0.4941402078,
-0.0699383691,
0.0058190636,
-0.0565871522,
0.0685966238,
-0.2480995804,
0.440002799,
-0.079025209,
-0.133413896,
0.0509739742,
-0.2691567838,
0.0301828161,
0.3969058096,
0.0643415153,
-0.0442863628,
-0.0039542634,
0.5810074806,
-0.2796828449,
0.2266358286,
0.4895678759,
0.5526223779,
0.0019503906,
-0.0365977995,
-0.0019034073,
0.1531600952,
0.2148159146,
-0.3528676927,
-0.0444395989,
-0.2058763504,
0.2725040615,
0.2232832909,
0.074139446,
-0.0553187318,
0.4579607248,
-0.2235924155,
0.4109124243,
0.1331117302,
-0.1093591005,
-0.1176000535,
-0.1932193935,
0.4728285968,
-0.2240555286,
0.0294253454,
-0.0382620282,
-0.2882139683,
0.0738228261,
-0.3293468356,
0.0006598011,
0.3874143958,
-0.2322071195,
0.1698438227,
-0.240762189,
-0.149923563,
-0.3715639114,
0.1180475652,
-0.2668702602,
0.0060680918,
0.1096710339,
-0.2099916637,
-0.1868219078,
-0.4137239158,
-0.4379819036,
0.2904357314,
0.2337205112,
0.153747946,
0.4324122369,
-0.290636003,
-0.0364419892,
-0.163888514,
0.8776171207,
-0.0471251868,
-0.4652526379,
0.3030639589,
0.0765907466,
-0.3506370783,
0.047270149,
0.0481736064,
0.3198086917,
-0.3462216258,
0.3192034364,
-0.2881579399,
-0.2275655419,
0.3936281502,
0.199034065,
0.0815925598,
0.0893715769,
-0.1340239346,
0.0799695551,
-0.0584958754,
-0.268522948,
-0.087879546,
0.4243323803,
-0.3054555953,
-0.0423198231,
-0.3029098213,
-0.2251664102,
-0.0679941326,
0.2495986074,
0.3446758091,
0.0142233297,
0.0559497029,
-0.0384298898,
-0.0930850357,
0.5758817196,
0.3656629622,
-0.1264255643,
-0.3438642025,
-0.0423654355,
-0.0791723728,
0.4678758085,
-0.1007187888,
0.0841259807,
0.341039598,
-0.2884059846,
-0.0456500649,
-0.1305134892,
-0.0745452642,
0.0298493281,
-0.0139244758,
-0.4618706703,
-0.255764246,
0.3674499393,
0.1260503232,
-0.0256794244,
0.4639913142,
0.0829804987,
-0.1904275417,
0.0207838453,
0.009859493,
0.896676898,
0.0596234463,
0.2757001817,
0.2567478418,
-0.2981207669,
0.3558062911,
-0.1812601388,
0.3097748458,
-0.3066488504,
-0.0295560192,
-0.2604189515,
-0.1996921301,
0.3407331407,
0.2249898314,
-0.3719779849,
-0.0644297227,
-0.3056951761,
-0.2230793387,
0.0173064396,
0.0808954537,
-0.0234191101,
-0.4417956173,
-0.1849944741,
-0.063798435,
-0.1060139239,
-0.359242171,
-0.1693649292,
-0.0410865843,
-0.1509803832,
0.0985208452,
-0.2436622977,
0.0995115191,
-0.0247105435,
0.1652132571,
0.3316886723,
-0.3736483455,
0.033935532,
0.220798552,
-0.2576709986,
-0.2243200839,
-0.013242621,
-0.0969541073,
0.1727020741,
0.1069505513,
0.1969630718,
-0.1576113552,
0.2014958858,
0.1474810541,
-0.4610093832,
0.1778363138,
-0.0069198422,
-0.461376965,
0.1420338154,
0.2087973356,
-0.0012903418,
0.0477044173,
-0.0021938011,
0.3976415992,
0.2397096008,
-0.263053,
0.0156452134,
0.317511797,
-0.0865343511,
0.2900562882,
-0.3261569142,
-0.2962746024,
-0.1808795184,
0.4714468718,
0.0306737088,
0.3516024053,
0.2016852349,
0.2436854243,
-0.1698749661,
-0.1079996973,
0.0497928113,
0.3055422902,
-0.3950813711,
-0.0473997854,
0.2083680034,
-0.0649424642,
-0.1075998098,
0.2953144312,
-0.0114645129,
0.4027718604,
-0.2436486632,
-0.2460117638,
-0.3364078403,
0.2480018735,
0.3166214526,
0.1127135754,
0.2214524448,
0.2741638124,
0.123660937,
-0.0652217418,
-0.2084726989,
-0.0421412215,
0.0053932965,
0.0677639693,
0.0958335549,
0.1007969528,
-0.1477746665,
-0.1431110352,
0.137561202,
-0.0252184365,
0.0167364441,
-0.1208440363,
-0.1074451059,
0.1239082366,
0.0908657908,
-0.2139450312,
-0.0985746607,
-0.148761645,
-0.3023736775,
-0.3175998926,
0.0574125573,
0.4234734476,
-0.3227656484,
0.1867680103,
0.1893171817,
0.0101109734,
-0.051512707,
0.0707519054,
0.1303384006,
-0.1048760861,
-0.0562452003,
0.4097555578,
-0.060409449,
-0.0842278302,
-0.1349346489,
0.097662881,
0.0329353884,
-0.057348039,
0.0110331392,
-0.1591787487,
-0.1203737855,
-0.1842467189,
0.388412863,
0.1567455977,
0.2498009801,
0.1956637651,
0.3727383614,
0.1325202882,
-0.3204218149,
-0.2983633876,
0.0081938319,
0.2753521204,
0.2538129687,
0.0434176289,
-0.1207041591,
0.0566849262,
-0.0781915188,
-0.0479850695,
-0.0221239012,
0.035925746,
0.2558054626,
0.3084739447,
0.0704798698,
0.0720235333,
0.0009227786,
0.1066495851,
0.2689949274,
-0.0686478615,
-0.2647778392,
0.2673963904,
0.2540495098,
-0.225147441,
-0.144508034,
-0.3573759198,
-0.0025075409,
0.2004942894,
0.0413181335,
0.0645489991,
0.1455629766,
0.4730024636,
-0.0086355545,
-0.1192490608,
0.0373829827,
0.2118681669,
0.0130720977,
-0.1205484346,
-0.3114873469,
-0.3096059561,
0.0150652528,
0.0557750538,
-0.0459838361,
-0.1940571219,
0.6483000517,
-0.0610021949,
0.0668930635,
-0.2883140445,
0.5695884824,
0.313267529,
0.1505684704,
0.0833427906,
-0.0736340508,
0.3232870698,
-0.1268062443,
-0.0176822208,
0.1162419394,
0.4105460048,
0.234072417,
0.0717006028,
-0.1317365021,
-0.163308993,
-0.0918438435,
-0.1385731697,
-0.0635720789,
0.1402384043,
-0.0525458828,
0.32715258,
0.1570774466,
-0.0177535247,
-0.0164920799,
0.1322988272,
0.3111962378,
-0.5493849516,
-0.0683370531,
0.1063669175,
-0.431833446,
0.3776524067,
0.048014041,
0.063922286,
-0.1442485452,
0.1444070786,
0.0125833377,
-0.1712985784,
-0.0671478733,
0.0333337523,
0.3119395971,
0.3572598398,
-0.0917430148,
0.2588996291,
-0.2507964969,
-0.0364117548,
-0.2457787395,
-0.0583237782,
0.0326449387,
-0.3628959656,
-0.1146352142,
0.1966530681,
0.3155168891,
0.0640326738,
0.2317622751,
0.2420223802,
0.3450903296,
0.411000222,
-0.2325463295,
0.1246387661,
0.1620648652,
-0.0696845353,
-0.0361640677,
-0.3552900553,
0.3243922591,
0.4109691083,
-0.0147687085,
-0.1718632281,
0.1330027729,
0.1479053646,
0.0294808503,
0.5030779243,
0.0799616575,
0.2476210892,
-0.1521262527,
0.1969069541,
-0.3423464298,
-0.1439632475,
-0.3880273998,
0.2662152648,
0.0031730235,
0.1038076207,
-0.3213910758,
0.0565836579,
0.0116901249,
-0.0113979876,
0.0905902684,
0.5292713642,
0.0320646465,
0.2856721878,
0.2315204889,
-0.3014600873,
-0.2042691708,
-0.0537180379,
0.0942553729,
-0.0446445122,
-0.116725266,
-0.0606505945,
0.0480541885,
-0.0629005283,
-0.3654368222,
-0.2624561787,
-0.0996065959,
0.0968550295,
0.0432379693,
-0.2877284586,
-0.1671687961,
0.2455510795,
0.1739556342,
-0.2317969948,
0.217087388,
-0.1821330786,
-0.0675740987,
-0.2149737775,
0.2838038206,
-0.1606427729,
-0.2283730209,
-0.1463681906,
-0.5240387321
] |
https://github.com/huggingface/datasets/issues/853 | concatenate_datasets support axis=0 or 1 ? | @lhoestq, we have two Pull Requests to implement:
- Dataset.add_item: #1870
- Dataset.add_column: #2145
which add a single row or column, repectively.
The request here is to implement the concatenation of *multiple* rows/columns. Am I right?
We should agree on the API:
- `concatenate_datasets` with `axis`?
- other Dataset method name? | I want to achieve the following result
![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
| 51 | concatenate_datasets support axis=0 or 1 ?
I want to achieve the following result
![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
@lhoestq, we have two Pull Requests to implement:
- Dataset.add_item: #1870
- Dataset.add_column: #2145
which add a single row or column, repectively.
The request here is to implement the concatenation of *multiple* rows/columns. Am I right?
We should agree on the API:
- `concatenate_datasets` with `axis`?
- other Dataset method name? | [
-0.2659378052,
-0.095172435,
-0.0820605382,
0.0408310369,
-0.2382573634,
0.107518658,
0.2930027843,
0.2532633543,
0.0705211833,
0.1636553705,
-0.004881978,
0.349540323,
-0.0274942964,
0.5060865283,
-0.0220799148,
-0.0006614099,
0.2938616872,
0.5536049008,
-0.2584514022,
0.0008190498,
-0.5191212296,
0.0612343773,
-0.4006460309,
-0.2011354864,
-0.151159212,
0.1710903347,
-0.4236631691,
-0.0922792405,
-0.3538229465,
-0.0868462026,
0.3892124891,
0.187135458,
0.0247684643,
0.2834431827,
-0.0001184696,
-0.0120503604,
0.0087372223,
-0.1222003251,
0.0314646251,
-0.2648955584,
-0.488132447,
-0.5036523342,
0.0892500728,
-0.1769720912,
0.1351442039,
-0.4490813911,
0.1138923913,
-0.3092617989,
0.0400508232,
0.176184833,
0.1028396934,
-0.2188610733,
0.0002188757,
-0.1063741297,
0.0210725814,
0.3390491009,
-0.0424188748,
-0.2795721889,
0.1721026301,
0.1112676263,
0.080245018,
0.0127465911,
0.1822036803,
-0.0479210094,
0.125052616,
0.1816173494,
0.0806786716,
-0.4402334988,
0.1858929992,
0.2143525779,
0.7385680676,
-0.1596597284,
-0.1948232651,
0.1284782588,
0.358920753,
-0.0335202217,
-0.1378207356,
0.3503244221,
0.0804883093,
0.0162477959,
-0.1092106849,
-0.351439476,
-0.2742879987,
0.4549541473,
-0.2489990145,
0.4160048366,
0.0517961383,
0.2449573874,
-0.1435269266,
-0.2731948495,
0.1568621844,
-0.2587735653,
-0.0133940671,
0.3934817612,
-0.7762808204,
-0.0654552579,
-0.0358734988,
-0.172175616,
0.352060318,
0.2876512408,
0.2437448055,
0.0126423221,
-0.1284729987,
0.1759788841,
0.1850313246,
0.1046383381,
0.3357359171,
0.1796385646,
0.0372424647,
-0.0798578784,
0.340816319,
0.1116784588,
-0.3545681238,
-0.2287241668,
-0.2912502885,
-0.0033481289,
0.1097573936,
0.2196158767,
-0.0571819469,
-0.1750194579,
-0.4987611175,
-0.276173532,
-0.042203173,
-0.2724590898,
0.3980245888,
0.7039449215,
0.0774434209,
0.1547517031,
0.460747689,
-0.0260799602,
-0.1366767585,
0.3382977843,
0.0647643209,
0.1297105402,
0.1435088515,
-0.3264350295,
-0.1615810543,
0.3666673601,
0.2250949442,
-0.009887822,
0.2446799427,
-0.2090379149,
-0.023848664,
0.2617448568,
0.1008508503,
-0.2530782223,
0.0368568227,
-0.1425593793,
-0.1416337341,
0.5437420607,
-0.4550887942,
-0.0620340519,
-0.3632275462,
0.0947867408,
0.1142198518,
0.0765897334,
-0.3987358212,
0.5860469341,
0.0410756171,
-0.061405886,
0.2056023926,
0.0656830817,
0.2846110165,
-0.2194782346,
0.1627063304,
0.1127553433,
-0.3627959788,
-0.0764593706,
-0.0711545199,
-0.1191041246,
0.0906979814,
0.1103572398,
-0.3048974574,
-0.0153968558,
-0.1455277801,
0.3676788211,
0.7453743219,
-0.5776742697,
0.0677255169,
-0.0179836582,
-0.1502819061,
-0.237547636,
0.3531585932,
-0.0343220234,
0.2178148329,
0.2114299387,
0.4623909891,
-0.034802869,
-0.1017913744,
-0.1677042544,
0.156054914,
-0.402718395,
0.2917556763,
0.0737124905,
-0.0802061707,
0.0935096294,
0.1063217446,
-0.5713720322,
0.3373345137,
-0.2997710407,
0.1135534868,
-0.1664850414,
0.1833057404,
-0.4257709682,
-0.004594855,
-0.0861030295,
-0.7237887979,
-0.1307582259,
0.0530545413,
0.2005596906,
0.2188662887,
-0.2594643831,
0.0517686233,
-0.2207979709,
0.0086276606,
0.2065585256,
0.0500660613,
0.1679952443,
-0.09198194,
-0.291217804,
-0.5517225862,
0.2889828384,
0.0675505847,
0.0585341528,
-0.2895831764,
0.2176003456,
0.234044373,
0.1096149832,
-0.0363400728,
0.1233326718,
0.0766648874,
-0.2965345383,
0.377173543,
0.4547506273,
-0.2495806664,
-0.1006750613,
0.2262952179,
0.2702127397,
0.2350306809,
0.4021554291,
0.0361058265,
-0.6281514168,
0.2069535702,
-0.1773712039,
-0.0195843503,
0.2576207817,
-0.1827198863,
0.0336569771,
-0.112759918,
0.0090822205,
0.1381787062,
0.1589879096,
-0.4199895859,
-0.2442215681,
0.0635697469,
0.4059894383,
-0.031736996,
0.038763158,
-0.2467804551,
0.0434404314,
0.5327419043,
-0.1416110247,
-0.0219517909,
0.1453934312,
0.077485159,
-0.1550804377,
0.2595830858,
0.1713084579,
0.567329824,
0.1690228134,
-0.1723486334,
0.053590104,
0.0660694838,
-0.0508410819,
0.147714138,
0.0979551598,
0.1257689893,
0.2814127803,
0.4114003479,
-0.1037701517,
-0.0634787679,
-0.3552219272,
0.3785519004,
0.1729940772,
0.0084070712,
-0.1615498662,
-0.2478624582,
0.0271674544,
-0.1061721146,
-0.3447226286,
-0.0536141135,
-0.2709852159,
-0.1538496017,
-0.2257504761,
0.0189991593,
0.4302063882,
-0.3312757611,
0.5477534533,
-0.360326618,
-0.0678317323,
-0.0629122555,
0.2237070352,
0.1445547342,
0.0330754966,
-0.2828636169,
-0.2202086449,
0.1612606496,
-0.2060235143,
0.317912519,
-0.1629029214,
-0.1811389029,
0.1974108666,
-0.1518643349,
-0.500715971,
0.3635140359,
-0.0827937126,
-0.142802,
-0.1541320682,
0.0581265241,
0.3354328573,
-0.1542830765,
-0.0468127206,
-0.0196096897,
0.1223358512,
-0.3268173635,
-0.1804268211,
-0.2262932807,
-0.2809427679,
0.2300107479,
0.1175999492,
0.2725907564,
-0.1568999141,
-0.012717329,
-0.0007024705,
0.169147715,
-0.1735596955,
-0.177926749,
-0.4013751745,
0.2534334064,
0.0225356743,
-0.0000551352,
0.0847217441,
0.0013697967,
0.1821193695,
0.5443742275,
0.0448849946,
-0.5154659748,
0.0607244074,
0.4005959332,
-0.1820840538,
0.0526584834,
0.6426967382,
0.3233401179,
-0.0403671563,
-0.0673003346,
-0.2063940614,
0.2793901563,
0.4032500386,
-0.3642906249,
0.201304853,
0.2751308382,
0.0929682255,
0.0622557141,
0.5054628849,
0.0393626802,
0.2922312617,
-0.0776177943,
0.1992052794,
0.1672181189,
-0.1365300417,
-0.1519130021,
0.1184375584,
0.3083663583,
-0.0467519984,
-0.0385847911,
-0.0922696888,
-0.3269472122,
0.1583945751,
-0.2337284237,
0.0420070142,
0.1047858521,
-0.4960412979,
0.4481529891,
-0.2991626561,
-0.1178073958,
-0.3616155386,
0.1685627997,
-0.2411237806,
0.3434287608,
0.0083740838,
-0.1559027433,
-0.1463199556,
-0.2115321904,
-0.5169853568,
0.6049103141,
0.133194834,
0.4692657888,
0.2555137277,
0.0806022584,
-0.0036343932,
-0.2486978769,
0.682872653,
-0.137482509,
-0.7627075911,
0.1882390529,
0.1565140486,
0.07625366,
0.0738660917,
-0.0890095681,
0.2012543529,
0.0860765949,
0.5689386725,
-0.4552727342,
-0.1842135638,
0.3902846873,
-0.0937498957,
0.1354746222,
-0.024197001,
0.0389217436,
-0.2280539572,
-0.0203222744,
-0.5453965068,
-0.0347623415,
0.3650998473,
0.094946228,
-0.0065668076,
-0.0906301215,
-0.3901822567,
0.0862177461,
0.012913771,
0.0156079344,
0.1319617331,
-0.1676280051,
-0.0249618068,
-0.1880123913,
0.5056003332,
0.302464664,
-0.0728701353,
-0.5819803476,
0.06695804,
-0.3535183966,
0.3753160238,
-0.0340744704,
0.0915388241,
0.4277948141,
-0.2331534922,
-0.0033344366,
-0.0182282664,
-0.0767423585,
0.382694751,
-0.0469359159,
-0.5235783458,
-0.4147221446,
0.210131675,
0.2485021651,
-0.0165553018,
0.4987652004,
0.2634553313,
-0.3296019733,
-0.2017481625,
-0.0129101537,
0.9365922213,
0.193922624,
0.1809416413,
-0.0044176653,
-0.3974721432,
0.560654819,
-0.2324375361,
0.3922210038,
-0.1786492467,
0.0300492011,
-0.328152597,
-0.1885460019,
0.4826348126,
0.1770558953,
-0.4571586847,
0.1632849723,
-0.238896817,
0.1845560372,
-0.0881116688,
-0.0314203128,
-0.0060568117,
-0.4417265356,
-0.3329879045,
0.0666844472,
-0.2873603702,
-0.3360757828,
-0.3041717112,
-0.0794162899,
-0.0443298221,
-0.064253673,
-0.3397365808,
-0.1388219744,
0.1110102832,
0.1522616148,
0.1347540915,
-0.6152998209,
-0.0619007573,
-0.0827056915,
-0.1349835098,
-0.272752583,
0.1539123058,
-0.1507543176,
0.0338159055,
0.090977326,
-0.0046525449,
-0.2258450389,
0.2538470626,
0.0882656425,
-0.187905699,
0.3396716714,
0.1121063679,
-0.4694489837,
-0.1654672325,
0.3670758009,
-0.1243230328,
-0.0913397819,
-0.0802339315,
0.4779293537,
0.2731666565,
-0.1057236046,
0.0286957771,
0.3009190559,
-0.0024812147,
0.2158420086,
-0.3237309456,
-0.130543381,
-0.0994138271,
0.320895493,
0.1321805865,
-0.1705535054,
0.1659009159,
-0.0440683924,
-0.1169548631,
-0.0541421175,
0.3138011694,
0.2610625029,
-0.3240881264,
0.0037103891,
0.0574519709,
-0.0841065273,
0.0361733437,
0.3860148787,
-0.0811920315,
0.4857616127,
-0.045315031,
-0.2722172141,
-0.1927323192,
0.1752652228,
0.2161032408,
0.1199377924,
0.0992686301,
0.0257994644,
0.0873118341,
-0.0903912559,
-0.2035096586,
-0.1518661231,
-0.2255323827,
0.0990372002,
0.0344710909,
0.1019617468,
-0.1322097629,
0.0433804579,
0.1176018417,
-0.0309015233,
-0.0362747237,
-0.0832625329,
0.0134009123,
0.198913157,
0.271892488,
-0.0829385817,
0.1289588213,
-0.1453686059,
-0.4257693291,
-0.1130372882,
0.1239676178,
0.1796738207,
-0.2157677263,
0.1030604988,
0.1339569241,
-0.0609330945,
-0.1370377243,
0.0208136924,
0.3245597482,
0.0707513988,
-0.2378292084,
0.3518877327,
0.0294490121,
-0.0522337109,
-0.2871176302,
0.3617917001,
0.237780571,
0.1915773898,
-0.0393920317,
-0.1410296708,
0.1022868752,
-0.0410290956,
0.2688397765,
0.3218468726,
-0.156966269,
0.1806856692,
-0.036664255,
0.0841389298,
-0.1616768539,
-0.33020401,
0.111653544,
0.487365067,
0.1295971274,
0.1054629013,
-0.3884117007,
-0.0021562278,
0.091722779,
0.0052393153,
0.2883104086,
-0.2763764262,
0.3092476726,
0.1430705488,
-0.0911043212,
0.1455271989,
0.1306859255,
0.3028081954,
0.0655435622,
0.0291539039,
-0.0292409956,
0.0241990592,
0.6329190731,
-0.3214021921,
0.3307988644,
-0.1272875667,
-0.0666886717,
0.2555526197,
-0.0257831328,
0.1582734734,
0.3990776241,
-0.1910303235,
-0.0708009899,
0.0098813735,
-0.0617143176,
0.1584406495,
-0.0908683538,
0.0154388435,
-0.1980736256,
-0.1592763215,
-0.0526960492,
-0.0575690493,
0.0449731201,
0.0679867566,
0.4651589394,
-0.0106762461,
0.0533908494,
-0.1582464874,
0.418879956,
0.0925083905,
0.1602164507,
0.0117970333,
0.1006492302,
0.4103654921,
-0.1588494182,
0.2722026706,
0.1824039966,
0.0696903542,
0.1628681123,
0.4065341949,
0.0344984345,
-0.224382624,
-0.0364555828,
0.0498357713,
0.0103011578,
0.1431875378,
-0.2174362838,
0.075961858,
0.1773576438,
-0.0004709065,
0.4957236648,
-0.007762881,
-0.0601393059,
-0.7930124998,
0.4609389603,
-0.2092258632,
-0.4095271826,
0.2161487937,
0.1652542353,
-0.0257311836,
-0.1591012627,
-0.0952438414,
0.1630516499,
-0.0859138519,
-0.1366681606,
0.0605926439,
0.0856023282,
0.2372970134,
-0.1111217737,
0.1397967339,
-0.105789125,
-0.2706929445,
-0.1531236619,
-0.1015586257,
0.2189243734,
-0.3876805604,
-0.1370243728,
0.139479816,
0.3020132482,
-0.106106028,
0.2027362734,
0.1105291322,
0.0659364387,
0.1947053671,
-0.09488675,
0.0733056664,
0.3137879372,
-0.1603403389,
0.002822496,
-0.2452967465,
0.2166268378,
0.2222868949,
-0.0723543391,
-0.2109266222,
0.042626895,
0.2366086692,
-0.3100652993,
0.1615153253,
0.1329054534,
0.1775909364,
-0.2898870409,
0.2474559844,
-0.0665620342,
-0.0518044978,
-0.5047513247,
0.3855793476,
-0.2173953056,
0.0169954151,
-0.2887919843,
-0.1012291312,
0.1427820623,
-0.078741014,
-0.053963948,
0.2523756325,
-0.131742537,
0.35977,
0.0979172736,
-0.4467115402,
0.0543240756,
0.0797115862,
0.1406460702,
-0.0075269267,
-0.0072466731,
-0.059596505,
0.0752683505,
-0.0499710329,
-0.2651262283,
-0.2647544444,
0.060716372,
0.0697257519,
-0.0122637618,
-0.2821736932,
-0.3014074564,
0.4539090097,
0.0419740975,
-0.4050903618,
0.3852286339,
-0.0289434902,
-0.2723314762,
-0.2589526176,
0.145672366,
-0.0210317019,
-0.1197110862,
-0.1088757589,
-0.2165899426
] |
https://github.com/huggingface/datasets/issues/853 | concatenate_datasets support axis=0 or 1 ? | For the API, I like `concatenate_datasets` with `axis` personally :)
From a list of `Dataset` objects, it would concatenate them to a new `Dataset` object backed by a `ConcatenationTable`, that is the concatenation of the tables of each input dataset. The concatenation is either on axis=0 (append rows) or on axis=1 (append columns).
Regarding what we need to implement:
The axis=0 is already supported and is the current behavior of `concatenate_datasets`.
Also `add_item` is not needed to implement axis=1 (though it's an awesome addition to this library).
To implement axis=1, we either need `add_column` or a `ConcatenationTable` constructor to concatenate tables horizontally.
I have a preference for using a `ConcatenationTable` constructor because this way we can end up with a `ConcatenationTable` with only 1 additional block per table, while `add_column` would add 1 block per new column.
Maybe we can simply have an equivalent of `ConcatenationTable.from_tables` but for axis=1 ?
`axis` could also be an argument of `ConcatenationTable.from_tables` | I want to achieve the following result
![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
| 158 | concatenate_datasets support axis=0 or 1 ?
I want to achieve the following result
![image](https://user-images.githubusercontent.com/12437751/99207426-f0c8db80-27f8-11eb-820a-4d9f7287b742.png)
For the API, I like `concatenate_datasets` with `axis` personally :)
From a list of `Dataset` objects, it would concatenate them to a new `Dataset` object backed by a `ConcatenationTable`, that is the concatenation of the tables of each input dataset. The concatenation is either on axis=0 (append rows) or on axis=1 (append columns).
Regarding what we need to implement:
The axis=0 is already supported and is the current behavior of `concatenate_datasets`.
Also `add_item` is not needed to implement axis=1 (though it's an awesome addition to this library).
To implement axis=1, we either need `add_column` or a `ConcatenationTable` constructor to concatenate tables horizontally.
I have a preference for using a `ConcatenationTable` constructor because this way we can end up with a `ConcatenationTable` with only 1 additional block per table, while `add_column` would add 1 block per new column.
Maybe we can simply have an equivalent of `ConcatenationTable.from_tables` but for axis=1 ?
`axis` could also be an argument of `ConcatenationTable.from_tables` | [
-0.3482718468,
0.0645763874,
-0.0892974287,
0.1464075446,
-0.004705688,
0.0687125176,
0.1781947762,
0.4301659763,
-0.0550016388,
0.1688195765,
-0.0407032594,
0.5322628021,
-0.1796878427,
0.44571805,
-0.1766493917,
-0.129869163,
0.2669722438,
0.677267611,
-0.5987277031,
0.1521147788,
-0.2508707941,
0.099743247,
-0.395963341,
-0.3213893175,
-0.2488772124,
0.198146075,
-0.3766766489,
-0.1862782389,
-0.3892165124,
-0.2522886992,
0.4810886979,
0.4199799597,
0.1927005202,
0.2435199916,
-0.0001130875,
0.1142902523,
-0.1581038386,
-0.1443049014,
-0.1761361957,
-0.4564714134,
-0.3388728797,
-0.4732190967,
0.0550092012,
-0.0381945074,
-0.0079044104,
-0.4393772185,
-0.0983278453,
-0.4240878224,
-0.1667994261,
0.0678178966,
0.19138363,
-0.1983625293,
-0.0467878319,
-0.1468117535,
0.034169279,
0.2906011343,
-0.2897630334,
-0.3481404483,
0.0273523219,
-0.0086380132,
0.1154625937,
-0.0258336868,
-0.0689702258,
-0.1557124406,
0.2706197798,
0.0808820203,
0.177665174,
-0.4447629452,
0.0939608365,
0.3437197804,
0.6369027495,
-0.4048179388,
-0.222925514,
-0.0605255887,
0.2747722864,
-0.1232590079,
-0.0366239175,
0.2869486511,
0.2061856091,
0.1165094599,
0.0360164717,
-0.1216583699,
-0.4184627235,
0.4105968475,
-0.0651768669,
0.5333593488,
0.067995429,
0.1643003523,
0.2092803121,
-0.1621571481,
0.1780519187,
-0.3050981462,
-0.1483660638,
0.4382914007,
-0.5985085368,
-0.0461570062,
0.028652275,
-0.1468934566,
0.2212023735,
0.2496876419,
0.2240436971,
0.0773976743,
-0.2034948766,
0.1244928688,
0.3155556619,
0.2442362309,
0.3259382844,
0.1582867801,
0.0588028356,
-0.0576619059,
0.4282644093,
0.042671565,
-0.3903122246,
-0.2664995492,
-0.3373594284,
-0.075657174,
0.2000367045,
0.1580794305,
0.0427091196,
-0.0701215044,
-0.1635326445,
0.0718543828,
0.179908216,
-0.0388048552,
0.1471805573,
0.8159403205,
0.190259099,
0.1429033875,
0.2227548957,
-0.0496829189,
-0.0719225258,
0.201548785,
0.053433843,
-0.0156572815,
0.2549006343,
-0.211711511,
-0.2964209616,
0.3922959566,
0.3107231259,
0.2015921772,
0.152466163,
-0.2357832044,
0.2729083598,
0.2159261853,
-0.0233638063,
-0.171362102,
0.1085502207,
-0.1895640194,
-0.1724312007,
0.5275694132,
-0.1246684492,
-0.0434621051,
-0.4908124506,
0.0946803167,
-0.2702823281,
0.1111799181,
-0.3244778514,
0.5614658594,
-0.2449736595,
-0.1677213311,
0.0688398033,
0.033623945,
0.1603232324,
-0.1857770532,
0.2226325274,
0.1458015442,
-0.3933652043,
-0.0158847943,
0.2394764274,
-0.2605886161,
-0.0569063984,
-0.1669493914,
-0.1067137942,
-0.104421705,
-0.0215459317,
0.1586322784,
0.3899707198,
-0.273312211,
-0.1256057322,
-0.0999527797,
-0.164066121,
0.0103301778,
0.1373248845,
0.1862506866,
0.284520179,
0.1511420608,
0.2225958854,
0.1819189787,
0.0488866717,
0.088040784,
-0.0409178883,
-0.2720240355,
0.4463220537,
0.1754125655,
-0.2321839631,
0.1784434021,
0.0155664682,
-0.4601063132,
0.3236851096,
-0.3310923874,
0.2429712415,
-0.0784441978,
0.2711415589,
-0.3207567036,
0.0282503851,
-0.0709443688,
-0.5652899742,
0.0586759597,
0.0997293666,
0.3890400529,
0.1061437428,
-0.2458087951,
0.3670018911,
-0.0809097514,
-0.0522160605,
0.2115104198,
0.1009577885,
-0.1020017788,
0.0345256552,
-0.1555289626,
-0.4602506161,
0.3170197606,
0.0911792591,
0.0120878667,
-0.3484276235,
0.2383427918,
0.2912604511,
0.1222797036,
-0.0443319865,
0.3409976959,
-0.0028976183,
-0.1761048883,
0.2134355605,
0.4273330271,
-0.2389495671,
-0.1755456924,
0.081227608,
0.4070702791,
0.1399202496,
0.3254649937,
0.0133523587,
-0.6059427261,
0.1656655818,
-0.0052503496,
0.0453850366,
0.7022057176,
-0.3599380851,
0.1289958209,
0.0048015714,
0.1523848176,
0.2226153165,
0.1210523844,
-0.4440000653,
-0.3551974893,
0.024179237,
0.3818524182,
-0.3455274999,
0.0015527606,
-0.1329493225,
0.1672097296,
0.2806378901,
-0.0364352725,
0.0220143721,
-0.0107346997,
0.0183308795,
0.0007225499,
0.3417836428,
0.1739905477,
0.488317132,
0.2531154156,
-0.1698946357,
0.1381900012,
-0.2280163914,
0.0345704369,
0.245185867,
0.0025361907,
-0.032758005,
0.1938693225,
0.2984040082,
-0.0517042279,
0.0257179365,
-0.5200484395,
0.0546145588,
0.4540601373,
-0.1175141931,
-0.1232591569,
-0.4112275839,
-0.0146781281,
0.0131855421,
-0.5087950826,
-0.0605508611,
-0.1007203162,
-0.0289612692,
-0.0368106999,
-0.1229565889,
0.3387331367,
-0.2723273039,
0.4934962392,
-0.5590956211,
-0.0255254898,
-0.0199107751,
0.0346751064,
0.1099814475,
0.0477814972,
-0.0314338282,
0.0257085189,
0.0306161139,
-0.0037532002,
0.2519111037,
0.0522178635,
-0.1747587472,
0.114841722,
-0.0004915241,
-0.5256102681,
0.1732511967,
-0.0341617763,
-0.1092927232,
-0.0681299269,
0.0508962087,
0.197289601,
-0.024764549,
0.1738232672,
-0.2129164189,
-0.124422729,
-0.4129617512,
0.0100568812,
-0.1492164582,
-0.2941407561,
0.306292206,
0.2049192488,
0.2767917216,
-0.066055201,
0.3649314344,
0.0285793506,
0.1179983616,
0.0248039961,
0.0412426442,
-0.3984264433,
0.3619606793,
-0.0162212625,
0.0040751761,
0.1638402939,
-0.1292439401,
0.2317786962,
0.3739020228,
-0.0349322036,
-0.1287056208,
0.0903961062,
0.3210226297,
-0.2032410651,
0.1163639873,
0.5452891588,
0.4964993894,
0.0389781147,
-0.0805065706,
-0.1451350749,
0.219556272,
0.11373052,
-0.4097943902,
-0.0398150161,
0.0830528736,
0.2609755397,
-0.1843199581,
0.3280731142,
-0.0582594983,
0.3487600088,
-0.0385395959,
0.4031772912,
0.0968078375,
-0.0685745925,
-0.2857968807,
0.1226111874,
0.336240679,
-0.1062163413,
0.1177514195,
-0.1936088502,
-0.4214163423,
0.0606004745,
-0.1784746945,
-0.0546930917,
0.2122349739,
-0.4524727166,
0.1912066489,
-0.3075191975,
-0.0593355857,
-0.426751256,
0.0754698962,
-0.2327070087,
0.2720513046,
-0.0361563787,
-0.2596207857,
-0.2545237243,
-0.4336676598,
-0.3955094218,
0.3501539528,
0.1118816882,
0.4040615559,
0.4325252473,
-0.0526391789,
-0.1201397479,
-0.2049402148,
0.4980342984,
-0.0740164518,
-0.5626010895,
0.3075746894,
0.0144363791,
-0.2854400575,
0.0122465491,
0.0523531884,
0.2708070576,
-0.1133353859,
0.3593368232,
-0.2529779673,
-0.2239243686,
0.3291353583,
0.078200005,
0.1901570708,
-0.0362092704,
-0.1000167057,
0.0483830422,
-0.0891676843,
-0.4129237235,
-0.1794505417,
0.4076735675,
-0.1807342768,
-0.1760280132,
-0.1747322232,
-0.3464691043,
0.0735989213,
0.1782967895,
0.2868494689,
0.0454614386,
-0.0356044136,
0.0390243456,
-0.2527459264,
0.4640756249,
0.2757256031,
0.0017461777,
-0.4743178785,
0.160303086,
-0.1189004555,
0.1470322311,
0.0156083405,
0.0655274838,
0.36213395,
-0.2586047649,
-0.0546794645,
-0.0449766181,
-0.1711929888,
0.060506627,
-0.0700812861,
-0.6451610327,
-0.4660744965,
0.2414059341,
0.1642180234,
0.0081460923,
0.7264255881,
0.0391054377,
-0.3268625438,
-0.0575180724,
0.0129779112,
0.8818541169,
0.2684470117,
0.104668349,
0.1382033527,
-0.2416413128,
0.4139747918,
-0.2139510214,
0.3939242959,
-0.3427497447,
-0.1126438677,
-0.2992990613,
-0.1103009731,
0.403782934,
0.1506045759,
-0.4877848029,
-0.0114333928,
-0.2502495944,
0.1278433502,
-0.1170872003,
0.0348277986,
-0.0709370673,
-0.5233117938,
-0.4722071886,
0.0572583005,
-0.1092983037,
-0.4260678589,
-0.3047957718,
-0.035324797,
-0.0910702646,
0.0351724625,
-0.2306586802,
-0.0044142604,
0.0521647781,
0.0739054829,
0.2463571429,
-0.2035378516,
-0.0238772966,
0.0880611762,
-0.0804830417,
-0.1443762183,
-0.1169089302,
-0.1940745711,
-0.004643606,
0.147780627,
0.0605576448,
-0.207545191,
0.267337501,
0.1429786682,
-0.2555794418,
0.1882783473,
0.1570274979,
-0.3402671814,
0.1518255025,
0.1354849935,
-0.0706056058,
0.0696972162,
-0.0306595042,
0.461945504,
0.2831308246,
-0.0958657861,
0.1021938175,
0.4088975787,
-0.1689617485,
0.1002544761,
-0.1308337748,
-0.2835270166,
-0.1844326407,
0.4703078866,
0.1327181756,
-0.0097240284,
-0.0830391496,
0.1672367156,
-0.12612921,
-0.1417267472,
0.2227786779,
0.3376011252,
-0.3897212148,
-0.0286751743,
0.1679213047,
-0.1050636247,
-0.0428480133,
0.2743606269,
-0.1265005171,
0.4867374301,
-0.1858578026,
-0.2188506126,
-0.1902684271,
0.1972331852,
0.2149628252,
0.2364252657,
-0.0278677233,
0.1071330607,
-0.0475700349,
-0.2605209053,
-0.2654896975,
-0.2106080353,
0.0451844707,
-0.0754063427,
-0.0286607202,
0.1914939731,
-0.2067788392,
-0.2142191678,
0.1541946232,
-0.0128008807,
-0.139938727,
-0.1516812146,
-0.132560879,
0.1478934288,
0.1064864546,
-0.1686024964,
-0.1028905809,
-0.2250374556,
-0.5166933537,
-0.3138571084,
0.1047011018,
0.2757299244,
-0.3435199261,
0.1125445664,
0.1932654679,
0.0849785805,
0.0095059052,
-0.053258758,
0.2293923348,
-0.0755910203,
-0.0246028602,
0.2878012359,
-0.1329397112,
-0.0555083901,
-0.2768474221,
0.3551456928,
-0.0233924165,
0.1009763032,
0.0635810792,
-0.0852638185,
0.2157889307,
0.2338926047,
0.1922275424,
0.1868181229,
0.2035007775,
0.143707484,
0.118969284,
0.1874696612,
-0.0867771283,
-0.3905168176,
0.1752241552,
0.4561104178,
0.2235665172,
0.0587783679,
-0.2400045097,
-0.0298409462,
0.0576090068,
-0.0408131704,
0.1074294597,
-0.1897706389,
0.5861271024,
0.2604872584,
-0.0298041329,
0.1763005704,
-0.1901126802,
0.0819441453,
0.2492518425,
0.1269635558,
-0.2105136365,
0.2456096411,
0.5388047099,
-0.2231212556,
-0.0810675025,
-0.3095418215,
-0.1911902279,
0.1502432078,
-0.0186624788,
0.1290544569,
0.2990815639,
-0.0238248706,
-0.261898011,
-0.0179268606,
-0.09798567,
0.0311884023,
-0.029009046,
0.0915170759,
-0.2588434219,
-0.2457709908,
-0.0579131767,
-0.0626985803,
0.0663739592,
0.0114244232,
0.3781790733,
-0.091989629,
0.0840889812,
-0.3125249743,
0.6007609367,
0.2733029127,
0.1719357371,
0.1691139936,
0.004053304,
0.3385770023,
-0.0178985335,
0.0960209221,
0.0880059674,
0.1707542092,
0.4111483991,
0.2453003377,
-0.0034239255,
-0.2591452897,
-0.0920120701,
-0.0122416019,
0.089845486,
0.2527469397,
-0.0472325794,
0.1304782182,
0.2112452686,
-0.0388472266,
0.2479960918,
-0.0010522958,
0.1945605576,
-0.5377140641,
0.3259521127,
-0.01531923,
-0.2476265281,
0.1876194775,
-0.0025637746,
0.0135936365,
-0.3884644806,
0.0154287778,
-0.0024480559,
-0.205078423,
-0.1724728793,
0.0693037361,
0.2210497409,
0.1748832166,
-0.2789314985,
0.2301525772,
-0.1784121692,
-0.1908656061,
-0.1957602799,
-0.1120236665,
0.1847129613,
-0.1209949106,
-0.1233277768,
0.1535860151,
0.2016489804,
-0.0556821078,
0.2447179854,
0.1807338297,
0.2482656837,
0.1856905222,
-0.1890778244,
0.179385975,
0.1156918406,
-0.1145533472,
-0.0593515709,
-0.2988677621,
0.0319714062,
0.186241895,
-0.0040519238,
-0.0816057473,
0.1817111224,
-0.0542001687,
-0.2327194214,
0.3671845198,
0.1295993924,
0.1132441163,
-0.1426468194,
0.2120758891,
-0.2643705904,
-0.0600604415,
-0.4451533258,
0.3055155575,
-0.0275903717,
0.1804618686,
-0.219771117,
-0.1825064421,
0.162846446,
-0.1611245573,
0.1121726185,
0.5696963072,
-0.27908957,
0.4883999527,
0.1081145704,
-0.1315838099,
-0.24704355,
-0.0565738268,
0.2272878438,
0.0492837206,
-0.0148372352,
0.0623117462,
-0.0095033795,
-0.0775152296,
-0.2625732422,
-0.1371800303,
-0.0412406921,
0.1345884055,
-0.0638454258,
-0.2394394279,
-0.1974966526,
0.234685868,
0.0215343721,
-0.2805650234,
0.2788971066,
-0.1155552268,
-0.0043693408,
-0.2056776583,
0.10868451,
-0.0163392611,
-0.2483726293,
0.0064749271,
-0.414254725
] |
https://github.com/huggingface/datasets/issues/849 | Load amazon dataset | Thanks for reporting !
We plan to show information about the different configs of the datasets on the website, with the corresponding `load_dataset` calls.
Also I think the bullet points formatting has been fixed | Hi,
I was going through amazon_us_reviews dataset and found that example API usage given on website is different from the API usage while loading dataset.
Eg. what API usage is on the [website](https://huggingface.co/datasets/amazon_us_reviews)
```
from datasets import load_dataset
dataset = load_dataset("amazon_us_reviews")
```
How it is when I tried (the error generated does point me to the right direction though)
```
from datasets import load_dataset
dataset = load_dataset("amazon_us_reviews", 'Books_v1_00')
```
Also, there is some issue with formatting as it's not showing bullet list in description with new line. Can I work on it? | 34 | Load amazon dataset
Hi,
I was going through amazon_us_reviews dataset and found that example API usage given on website is different from the API usage while loading dataset.
Eg. what API usage is on the [website](https://huggingface.co/datasets/amazon_us_reviews)
```
from datasets import load_dataset
dataset = load_dataset("amazon_us_reviews")
```
How it is when I tried (the error generated does point me to the right direction though)
```
from datasets import load_dataset
dataset = load_dataset("amazon_us_reviews", 'Books_v1_00')
```
Also, there is some issue with formatting as it's not showing bullet list in description with new line. Can I work on it?
Thanks for reporting !
We plan to show information about the different configs of the datasets on the website, with the corresponding `load_dataset` calls.
Also I think the bullet points formatting has been fixed | [
-0.0789322034,
-0.1892745197,
-0.2111492753,
0.5182406902,
0.1775331646,
0.2812187672,
0.2807135582,
0.1095818281,
0.1075352356,
-0.2891574502,
-0.16567114,
0.1336097866,
0.3731782436,
0.3808055222,
0.1173837334,
-0.0786430538,
-0.0114683025,
0.0120944642,
-0.0104108229,
0.0372487456,
-0.0519342571,
0.3416518867,
-0.4777825177,
-0.1001214162,
0.0012972057,
-0.1514360011,
0.0161407366,
0.0154876858,
-0.0385075398,
-0.3352609575,
0.2822166383,
0.1228943765,
0.2670378685,
0.4127132893,
-0.000120029,
-0.1779258251,
0.4665375948,
-0.1020855904,
-0.2560848892,
-0.2737340927,
-0.2082235217,
-0.3046474755,
0.4594644904,
-0.3098632395,
-0.0713825375,
-0.5172992945,
-0.3546372354,
-0.2628709674,
0.3239259124,
0.2284371555,
0.192545265,
0.1057266667,
-0.045025222,
-0.1168596596,
0.0473393351,
0.2259966433,
0.1323075294,
0.102247715,
0.2680187821,
0.1517854631,
-0.0303041115,
0.2312603593,
0.0532072112,
0.2929936349,
0.3227801919,
-0.0937234014,
-0.1626703739,
-0.147443518,
0.4255652726,
0.2147621363,
1.3290971518,
-0.2534139752,
-0.280764997,
-0.186421603,
-0.2302005291,
-0.1689097285,
-0.0168692507,
0.3455489874,
-0.0077269152,
0.0436369926,
-0.2335567474,
-0.2231642902,
-0.1869317889,
0.3701874316,
0.059278354,
0.0630657077,
-0.3054239452,
0.1380738616,
-0.1763877869,
-0.1328854561,
0.1571981162,
-0.1911978424,
0.0317060165,
0.1797025502,
-0.5834523439,
0.0873510092,
0.0808449537,
0.15401797,
0.0633183271,
0.4426726699,
0.3057209849,
0.2691639066,
-0.0215795897,
0.139339447,
0.5947418213,
0.2712326944,
0.3216516376,
0.0154353529,
-0.0527834743,
0.3021756411,
-0.0381990671,
-0.1961117983,
-0.0054877065,
-0.1151608825,
0.0977821946,
-0.2972750068,
0.2379487455,
-0.5695006251,
-0.2049050331,
-0.0927841067,
-0.2847163975,
-0.3555091321,
0.0098460764,
0.4803134501,
-0.1018202454,
0.1047831476,
0.2056423724,
0.2912030518,
-0.1113747805,
-0.1213558242,
-0.1241603345,
-0.0199558642,
-0.2060886919,
0.0916361436,
-0.0304606892,
-0.0041038003,
0.3585407734,
0.0954125524,
-0.0014446229,
-0.3614827394,
0.3334643841,
-0.1039519161,
0.0891805664,
0.0643300489,
0.4270685911,
0.2381878495,
0.1438614726,
0.1221374944,
-0.203887701,
0.2703433037,
-0.343436718,
-0.2165075243,
-0.1839889586,
0.1285464913,
-0.3012285829,
-0.3005911112,
-0.5243895054,
0.1205805093,
0.150433138,
-0.1128389686,
-0.0485665016,
0.1281506717,
-0.1047203466,
-0.1302073896,
0.0923537761,
0.4687441289,
-0.4306245148,
-0.2646571994,
-0.3125129342,
-0.1004271656,
0.2145787925,
0.2239420116,
-0.3063054085,
0.3549631834,
-0.1731176972,
0.0351227671,
0.5592150688,
-0.3355655968,
-0.1034144312,
0.4995977283,
0.2164155543,
-0.035505712,
0.0961961001,
-0.2372703701,
-0.1126167476,
0.1777268648,
0.1222918779,
0.2151846588,
0.3439028263,
0.127610296,
-0.2076397091,
-0.2062741816,
0.2997558713,
0.1547668427,
-0.1266524196,
-0.0012365133,
-0.0236076266,
-0.1026687622,
0.3608759642,
-0.0464174636,
-0.134162277,
0.3027929366,
-0.0695770979,
0.2714537382,
0.1779065132,
0.1316059381,
-0.4466256499,
-0.0358648598,
0.0004680827,
0.1481630653,
0.1683016717,
-0.1922746003,
-0.527263999,
0.009098202,
-0.1990995705,
-0.1610389501,
0.0777426437,
0.0320810005,
0.0412664339,
-0.0335683078,
-0.0199564621,
-0.0856476426,
0.0163854361,
0.0283042043,
-0.4079387784,
0.1658408642,
0.0833527446,
0.0614561439,
0.2739595175,
0.0993568599,
0.2622643709,
-0.0117108077,
-0.1645416617,
0.2622703612,
0.0659876168,
0.6024628878,
0.1512691379,
0.302249521,
0.0752672404,
0.0555788204,
0.2502045333,
0.2778006196,
0.3070842326,
-0.1422146559,
-0.3737641275,
0.3783276975,
0.0334413648,
0.4875418246,
0.1482854187,
-0.1668079495,
0.2705940604,
0.0136276111,
-0.0556313284,
-0.2422356457,
0.2620968819,
0.0789042637,
0.611176908,
-0.1333584636,
-0.1279366761,
0.2783307433,
0.1441031396,
-0.055679787,
0.0739202201,
0.0867315978,
-0.2402979434,
-0.4528819919,
0.5009836555,
-0.0215049759,
0.2161624134,
0.2434825152,
0.0983896852,
0.1076889858,
0.2769547403,
-0.2266351879,
0.3021547496,
0.3179556429,
0.2120097578,
-0.1057117879,
0.1732843667,
-0.1669395864,
-0.1414024085,
-0.1537813842,
0.0471225232,
0.2280319035,
-0.5924049616,
0.0342509523,
-0.3620116115,
-0.4074658155,
-0.3450545967,
-0.1314960718,
0.081686087,
-0.3198183179,
-0.2920683622,
-0.048549965,
-0.0471300073,
0.0176136121,
-0.1387412548,
0.0507328585,
-0.1904653758,
0.0540739894,
-0.206843093,
-0.20306997,
-0.1652273536,
0.0597147122,
0.473749727,
0.2471572459,
0.3921632767,
-0.197073102,
0.0926622078,
0.0477436557,
-0.2660236955,
0.2005769312,
0.197117433,
0.1751425117,
-0.134990409,
0.0559978299,
0.1437904388,
0.1499381661,
0.1842002869,
0.1199696288,
0.1417251527,
-0.0464303866,
-0.1063116416,
-0.1500599086,
0.1808391958,
-0.5233337879,
-0.1948813051,
-0.3031462729,
-0.0537584908,
0.200727582,
0.2991802692,
-0.1856730282,
-0.0715602785,
0.155902341,
0.3398937285,
0.2962894738,
-0.3032112122,
-0.4763088226,
0.1613789201,
-0.2892208695,
-0.2750649452,
0.1589957774,
0.3177673221,
0.2421739101,
0.0612026788,
-0.2267962098,
-0.0413053334,
-0.0851612389,
-0.1112040579,
-0.0724879503,
0.1672208607,
0.2617268562,
0.036403276,
-0.1051957309,
0.0054173693,
-0.2416445315,
-0.0716847032,
-0.1896224469,
0.0281641148,
-0.0354817398,
0.1203639209,
-0.1563311815,
0.566208303,
0.2551559806,
-0.0545409545,
0.3984049261,
-0.1034934744,
0.1799929291,
-0.0499390364,
-0.0158127472,
-0.3308515847,
-0.1166110188,
0.0042708293,
0.4625919461,
0.1697818637,
-0.2965268493,
-0.2413649559,
-0.1513509154,
-0.8929017186,
-0.1086795628,
0.1384857893,
-0.1324647963,
0.2511932254,
0.1188585907,
0.0773568004,
-0.0727125704,
-0.1014693454,
-0.0233827457,
0.0885342211,
-0.0062201209,
-0.1664230824,
-0.453820169,
-0.1015990973,
-0.1419449002,
0.507407248,
-0.2162262499,
0.1196995005,
0.0532303751,
-0.0910086781,
0.1657984555,
-0.2087827921,
0.4329097569,
-0.350037843,
-0.1027418375,
0.1852794439,
0.0078394935,
-0.3345585465,
0.0840519816,
-0.2710380554,
0.4508849084,
0.1022000238,
0.0443187132,
-0.1706229895,
-0.2756688297,
-0.1051066443,
0.3202064335,
-0.2772406638,
-0.2040269375,
-0.0663651228,
-0.2064158618,
-0.3689188957,
-0.3099525571,
-0.2958851457,
0.1530739963,
-0.0443874151,
-0.0725072771,
-0.0855382606,
0.0618662983,
0.0961777344,
0.2213361859,
0.4586626589,
-0.1938782632,
-0.0772207603,
0.1081204191,
-0.1309430003,
0.4480087757,
0.7521954775,
-0.0088672154,
-0.4299919605,
-0.0108975731,
-0.1588894427,
0.1221934631,
0.1990411282,
0.0710836202,
0.1092333645,
0.008538384,
-0.0651768744,
-0.1920920312,
-0.2146842629,
0.1032841653,
0.182184577,
-0.1044163108,
-0.699397862,
0.6753964424,
0.0755905509,
-0.1975606829,
0.2609325647,
-0.0029877387,
-0.2140883803,
0.2761698067,
0.0100665744,
1.1095728874,
0.1581321061,
-0.0145886578,
0.1266875714,
-0.2598595619,
0.2006960809,
-0.1367529482,
-0.1212270483,
-0.4516963661,
0.3673311174,
-0.0736473873,
-0.1184357554,
0.1955991536,
0.2501860857,
-0.1443831623,
0.3782750964,
-0.2910306752,
-0.0442530252,
-0.0205136314,
0.46253708,
-0.0387591049,
-0.2825291753,
-0.6071405411,
0.0899347365,
-0.0510193296,
0.1447157711,
-0.2772302032,
0.0890922248,
-0.2481802553,
-0.0913659483,
-0.3456161916,
0.0245125815,
-0.0853705853,
0.0931590274,
-0.1741662025,
-0.4508793056,
0.1298786849,
0.3845649958,
-0.2622557878,
-0.0901252106,
-0.4244486392,
0.1190183163,
-0.0972176641,
0.0301195122,
0.0356654376,
0.0210345313,
0.37154755,
-0.1616902649,
-0.3018018603,
0.007999598,
0.0854749084,
0.0625396669,
-0.1689022183,
0.0588682778,
-0.0031786822,
-0.5724697113,
-0.5873051882,
0.1221199483,
0.0422564819,
-0.1212282032,
0.0923034549,
0.1828105152,
-0.1142603904,
0.2109420151,
0.2463109493,
0.0369305909,
-0.0788511187,
0.433299005,
0.3101986647,
-0.0244962648,
0.4668741524,
0.2951886952,
-0.1460084617,
-0.1963519454,
0.1923952848,
0.1957509667,
-0.2520182729,
0.050944332,
-0.0368926823,
0.3241744637,
-0.2070687115,
0.1904636919,
0.0188209414,
0.2794862688,
-0.0220126659,
-0.4668633938,
0.2508146763,
0.2537480891,
0.1930424124,
-0.0113746803,
-0.1099509224,
-0.3284420669,
0.1592365801,
0.0505199209,
-0.2618046701,
0.3210797906,
-0.0695695579,
0.0781367794,
0.1321981549,
0.1443040669,
0.1451753229,
-0.2790772021,
-0.0119591914,
-0.1267285049,
-0.1100213975,
-0.1981798559,
-0.135435462,
0.2127932906,
0.1015972942,
-0.2201015949,
-0.0115803555,
0.0086084604,
0.1161864251,
-0.1793662012,
0.0562731847,
-0.0937529951,
0.0999778435,
0.0836096704,
0.3907768428,
0.0669820532,
-0.6115541458,
0.0721725747,
-0.0410909802,
0.1988336891,
0.2410687655,
-0.0440357774,
0.3422809839,
-0.0221055374,
-0.0257917214,
-0.030673869,
0.2908678353,
0.2202179581,
0.1947541535,
-0.0818216503,
0.2536891401,
0.2407729328,
0.3208612502,
0.525814712,
-0.1758220643,
0.1646321267,
-0.0215729494,
0.1428043991,
-0.2438157499,
0.0389110595,
-0.1467023492,
-0.2376058996,
-0.183507815,
0.0038752332,
0.1829791665,
0.3325919211,
0.1130230278,
-0.1203249991,
0.4508990645,
-0.2245200574,
0.4222690165,
0.059037894,
-0.168996647,
0.1459181011,
0.1762700379,
0.1485865265,
-0.0028413907,
0.0183639508,
0.0689577609,
0.5400498509,
0.4455855489,
0.1596896648,
-0.2230797559,
-0.527053833,
0.3603378832,
0.1754489243,
0.3199089468,
0.2928750515,
0.0271708164,
0.443574667,
0.1476007253,
0.0913555622,
-0.0670747161,
0.0020864503,
-0.057334885,
-0.202750206,
-0.1516113579,
-0.2909405529,
-0.1086126193,
-0.1345991939,
-0.2056637704,
-0.4516633451,
0.0544154085,
-0.1240046695,
-0.1323197186,
-0.5200736523,
0.0575004518,
-0.0345602036,
0.1957112402,
-0.1927081048,
0.0774270371,
0.1688812524,
-0.0196261965,
0.0776731372,
0.2913625538,
0.5396183729,
0.1511483341,
-0.1022620499,
-0.0486477315,
0.0775668249,
-0.1285821199,
0.0892520547,
0.1390937716,
0.2173724771,
0.0814576894,
0.1464351863,
0.1171541587,
-0.1644434929,
0.366730988,
0.1373814642,
-0.0216105282,
-0.282769233,
0.2542520165,
-0.364418298,
-0.3706579804,
-0.2655565143,
-0.1761494726,
-0.4030532539,
-0.0331172608,
0.2407068163,
-0.1102060378,
-0.1653466374,
-0.1996424198,
0.0526958965,
0.0668969899,
0.6728175282,
0.0392682031,
0.3681768775,
-0.0654767752,
-0.0627874881,
-0.6017755866,
-0.0151451677,
-0.0510743298,
-0.1354792863,
0.1072409153,
0.1930964291,
0.1050082669,
0.2610850632,
0.1738900542,
-0.1343339384,
0.1025073826,
0.0447399169,
-0.4506539404,
0.0176677667,
0.0192420371,
0.0695834383,
-0.1925381571,
-0.2314057797,
0.0460734218,
-0.2032755315,
-0.1023606509,
-0.3747589886,
-0.2316419929,
0.0956797376,
0.0854069814,
0.6618382931,
-0.0471610725,
0.5717573762,
-0.2162524313,
-0.0034674928,
-0.0478657186,
-0.241879195,
-0.005113069,
0.6518111825,
0.0552235655,
0.0082456246,
-0.1022310257,
-0.2083968818,
-0.0936171561,
0.1019005403,
-0.2653572261,
-0.2419257909,
-0.0490181595,
-0.2247563303,
-0.006589517,
-0.2708667517,
0.0671399981,
0.2326693386,
-0.0741137415,
0.0605396926,
-0.1462935358,
-0.1081117615,
0.4086980522,
-0.048755765,
-0.0113415346,
0.0078062862,
0.1532590985,
0.0871679783,
-0.180296272,
-0.632332027,
0.1697622687,
0.5076563358,
-0.0154827824,
0.1548665762,
0.4629182518,
0.0157342777,
0.0307732448,
-0.1776600182,
0.3021739125,
0.0158299878,
-0.2255865932,
-0.3437720537,
-0.2972671092
] |
https://github.com/huggingface/datasets/issues/848 | Error when concatenate_datasets | As you can see in the error the test checks if `indices_mappings_in_memory` is True or not, which is different from the test you do in your script. In a dataset, both the data and the indices mapping can be either on disk or in memory.
The indices mapping correspond to a mapping on top of the data table that is used to re-order/select a sample of the original data table. For example if you do `dataset.train_test_split`, then the resulting train and test datasets will have both an indices mapping to tell which examples are in train and which ones in test.
Before saving your datasets on disk, you should call `dataset.flatten_indices()` to remove the indices mapping. It should fix your issue. Under the hood it will create a new data table using the indices mapping. The new data table is going to be a subset of the old one (for example taking only the test set examples), and since the indices mapping will be gone you'll be able to concatenate your datasets.
| Hello, when I concatenate two dataset loading from disk, I encountered a problem:
```
test_dataset = load_from_disk('data/test_dataset')
trn_dataset = load_from_disk('data/train_dataset')
train_dataset = concatenate_datasets([trn_dataset, test_dataset])
```
And it reported ValueError blow:
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-38-74fa525512ca> in <module>
----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset])
/opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split)
2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format(
2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]],
-> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]],
2550 )
2551 )
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error:
```
trn_dataset._data_files
# output
[{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}]
test_dataset._data_files
# output
[{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}]
print([not dset._data_files for dset in [trn_dataset, test_dataset]])
# [False, False]
# And I tested the code the same as arrow_dataset, but nothing happened
dsets = [trn_dataset, test_dataset]
dsets_in_memory = [not dset._data_files for dset in dsets]
if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory):
raise ValueError(
"Datasets should ALL come from memory, or should ALL come from disk.\n"
"However datasets {} come from memory and datasets {} come from disk.".format(
[i for i in range(len(dsets)) if dsets_in_memory[i]],
[i for i in range(len(dsets)) if not dsets_in_memory[i]],
)
)
```
Any suggestions would be greatly appreciated!
Thanks! | 172 | Error when concatenate_datasets
Hello, when I concatenate two dataset loading from disk, I encountered a problem:
```
test_dataset = load_from_disk('data/test_dataset')
trn_dataset = load_from_disk('data/train_dataset')
train_dataset = concatenate_datasets([trn_dataset, test_dataset])
```
And it reported ValueError blow:
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-38-74fa525512ca> in <module>
----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset])
/opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split)
2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format(
2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]],
-> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]],
2550 )
2551 )
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error:
```
trn_dataset._data_files
# output
[{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}]
test_dataset._data_files
# output
[{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}]
print([not dset._data_files for dset in [trn_dataset, test_dataset]])
# [False, False]
# And I tested the code the same as arrow_dataset, but nothing happened
dsets = [trn_dataset, test_dataset]
dsets_in_memory = [not dset._data_files for dset in dsets]
if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory):
raise ValueError(
"Datasets should ALL come from memory, or should ALL come from disk.\n"
"However datasets {} come from memory and datasets {} come from disk.".format(
[i for i in range(len(dsets)) if dsets_in_memory[i]],
[i for i in range(len(dsets)) if not dsets_in_memory[i]],
)
)
```
Any suggestions would be greatly appreciated!
Thanks!
As you can see in the error the test checks if `indices_mappings_in_memory` is True or not, which is different from the test you do in your script. In a dataset, both the data and the indices mapping can be either on disk or in memory.
The indices mapping correspond to a mapping on top of the data table that is used to re-order/select a sample of the original data table. For example if you do `dataset.train_test_split`, then the resulting train and test datasets will have both an indices mapping to tell which examples are in train and which ones in test.
Before saving your datasets on disk, you should call `dataset.flatten_indices()` to remove the indices mapping. It should fix your issue. Under the hood it will create a new data table using the indices mapping. The new data table is going to be a subset of the old one (for example taking only the test set examples), and since the indices mapping will be gone you'll be able to concatenate your datasets.
| [
-0.0911898538,
-0.1483132541,
-0.0447486266,
0.6809362173,
0.1068756059,
0.2218789756,
0.3129054606,
0.2291087508,
-0.1234835237,
0.1246046051,
-0.1083223075,
0.2736028433,
-0.081689544,
-0.1234089136,
-0.3013662696,
-0.0974016637,
0.1984927952,
0.1485705227,
-0.5059523582,
-0.0316760987,
-0.3506397009,
0.1602454484,
-0.3358778954,
0.0398671664,
-0.4097847641,
0.0492455438,
-0.131790638,
0.2761822343,
-0.0312032811,
-0.1838645041,
0.4585872591,
-0.3488875329,
0.1864264011,
0.5364496708,
-0.0001176379,
0.1700861007,
0.2740952969,
-0.1723824739,
-0.3783840239,
-0.2567189336,
-0.3621295094,
-0.1004150063,
-0.0029405616,
-0.1234582216,
0.2076508701,
-0.1481204927,
-0.2583856285,
-0.5043873787,
0.3307152987,
0.2264487147,
0.1104793847,
0.3941425979,
0.0912053585,
-0.0980599523,
0.0378852561,
0.1533982307,
0.0659456924,
0.4203861058,
-0.1898589432,
-0.0617094673,
0.210829556,
0.0670611858,
-0.1246670932,
0.1450286508,
0.0780368149,
0.3099110723,
0.1575998664,
-0.3968758285,
-0.1252778322,
0.1079115123,
0.5253133178,
-0.3321694732,
-0.3178471625,
-0.0861592367,
0.1388192475,
-0.3995233178,
0.2178882211,
0.2979132533,
-0.1470904797,
0.1174624413,
-0.0907387286,
0.0771460384,
-0.2191732973,
0.1846294403,
-0.1806513667,
0.1145204306,
-0.1610965133,
0.2407017648,
0.1381713748,
-0.0730408505,
0.5286439061,
-0.357185781,
-0.1269249916,
0.1591959298,
-0.3422971964,
0.0321873575,
-0.1896209717,
-0.7045968771,
0.0890097469,
0.0558207557,
0.1037014499,
-0.2204588205,
0.0773696452,
0.28189224,
0.4017779827,
0.1492886245,
-0.0373818018,
0.5497028232,
-0.0202758797,
-0.0616966039,
0.1993702352,
0.0090525299,
-0.2867644429,
-0.2114095986,
0.1154306382,
-0.1646886468,
0.0836555362,
-0.0013333112,
-0.4971267581,
-0.151892364,
-0.1278606206,
-0.1404940486,
0.1965601593,
0.0301938597,
0.1238996908,
0.5308153629,
0.1307381988,
0.4409761429,
0.2173487544,
0.0174211711,
-0.2265088558,
0.0222140439,
-0.0451167412,
0.2104354799,
0.1034142077,
0.0044441745,
0.0821225569,
0.1775871068,
0.108755894,
0.0064506903,
0.0768847689,
-0.4948598146,
0.0583266169,
0.3114699721,
0.0211647302,
0.0750034079,
0.2738741934,
-0.0503141992,
-0.1439026892,
0.3170153797,
-0.4437069595,
-0.2742709517,
-0.5135641098,
0.0968816802,
0.0989557505,
0.2329160869,
-0.3203628659,
-0.1113316789,
0.6928235888,
0.1045665592,
-0.0683575794,
-0.0662889332,
-0.1984152198,
-0.3195585907,
0.3204244077,
0.2007121742,
-0.2164678276,
-0.0330447853,
-0.0184934475,
-0.067797333,
0.3604030311,
0.5054666996,
-0.3153641522,
0.1992007196,
-0.385501951,
-0.0331819803,
0.3084051013,
-0.4366769791,
-0.1402202547,
0.21540232,
0.003216058,
-0.0735864043,
0.2376118153,
0.0082837343,
0.1314236522,
0.1472162306,
0.8280867934,
0.3132544756,
0.0639004335,
-0.1781873703,
-0.0976125747,
-0.138335973,
0.2659768164,
0.1000100225,
-0.2323940098,
0.0350794271,
-0.1362985075,
-0.4177927375,
0.3237215579,
-0.1016950458,
0.0396772549,
0.3689119816,
0.0351548344,
-0.343180716,
-0.1154859215,
0.0461800843,
-0.1954732686,
0.0483527258,
0.0379620418,
-0.0852143392,
-0.299800247,
0.091544047,
-0.1228935719,
0.0769214705,
-0.0723354965,
0.0498541184,
0.0176120773,
0.2352780253,
-0.1725986898,
-0.2480315864,
-0.1653314978,
0.4237135351,
-0.2777826786,
-0.0269184932,
-0.207360208,
0.5686872005,
-0.0645173863,
-0.0320977569,
-0.1763464957,
-0.0393742174,
0.0589342378,
0.1164019555,
-0.0541009828,
0.5149713159,
0.0520668998,
-0.1684776992,
0.0259418711,
-0.2057825327,
0.229021728,
-0.0772498846,
0.139911592,
-0.120184809,
0.1309277713,
-0.0969888568,
0.0723320246,
0.4227219522,
-0.13237001,
0.2828261554,
-0.0215709955,
0.0900898948,
0.1695278883,
0.1452978253,
-0.0583257042,
-0.4177125096,
-0.0745218545,
0.1675421298,
0.2188819498,
0.2504172623,
-0.4655808806,
-0.2347150445,
0.3388249874,
0.0246771052,
0.0422088429,
0.1224698126,
-0.3912706077,
-0.0406098887,
-0.0284235515,
0.349185288,
0.770719111,
0.1276441216,
0.0334591232,
-0.1203363836,
-0.0359242074,
0.0076953582,
0.3499153256,
0.0637104362,
0.3463791907,
0.3114226162,
-0.01736697,
0.0689949691,
-0.0166561082,
-0.0879929215,
0.0875868276,
0.062276341,
-0.4036811888,
0.0528635457,
-0.1899862587,
-0.0543130003,
-0.3040485382,
-0.2463192046,
-0.1040122956,
-0.2119139433,
-0.4094066322,
0.2274120897,
-0.0545445606,
0.1956343353,
-0.1933859289,
0.0545216054,
0.1509282142,
-0.0917486921,
0.0003246814,
0.009441521,
-0.2065684497,
-0.0326040909,
0.2210373133,
-0.1053394601,
0.0362826139,
-0.1857274175,
0.0301044062,
-0.1180916876,
0.1154469252,
0.0138302445,
-0.075828284,
0.1963148266,
0.0516775288,
0.2055029422,
-0.0473080166,
-0.6516988873,
0.1352369487,
0.5362840891,
-0.2745611668,
0.3799956143,
0.1490533352,
-0.0947602242,
-0.1053224057,
-0.2667205334,
-0.4566353858,
-0.3636387289,
-0.0651497021,
-0.1452124119,
0.2417425513,
0.2856628299,
0.236869365,
0.0091699138,
0.145945102,
0.1538189799,
-0.0961046666,
-0.2391645908,
0.4765642285,
0.0441289768,
-0.1764595062,
-0.1454285532,
-0.0685135797,
0.2939203382,
0.2050094754,
-0.3704078197,
0.118242085,
-0.0839299262,
0.0721747577,
-0.3724436164,
0.0816906542,
0.0955050737,
0.3071267009,
-0.0495687798,
-0.1056535318,
-0.1409311295,
0.1213521734,
0.0509182252,
0.3641840518,
-0.0269906819,
0.3982571363,
-0.08975292,
0.4547500312,
0.2624275684,
-0.1617569327,
0.213092804,
0.1749909073,
0.5188267827,
0.0098329727,
-0.4894424081,
-0.3085484803,
-0.1053092927,
-0.0222779214,
-0.145358026,
-0.1314474791,
-0.2135680765,
-0.1715726405,
0.1677533388,
-0.2021041363,
-0.0977447331,
0.0934711024,
-0.4890374541,
0.2789091468,
-0.2671628594,
-0.0172280222,
-0.2255419046,
0.2368052602,
-0.3388527036,
-0.0028137006,
0.1530742049,
-0.1081696525,
-0.0758418888,
-0.0532246903,
-0.1671225131,
0.2889294028,
0.0708026886,
0.6286581159,
0.0871340036,
-0.3619210124,
-0.1413576156,
0.1061916947,
0.6050751805,
0.3731423318,
-0.352981776,
0.3440539837,
0.1444439739,
-0.5278428793,
-0.1323235184,
-0.1430731118,
0.2472810447,
-0.0800601318,
0.6192361116,
-0.2810611725,
-0.2102863342,
0.0483549163,
0.3565577865,
-0.0551361851,
-0.0701749548,
-0.3375282884,
-0.0948552787,
-0.265756011,
-0.1750977337,
-0.0085995048,
0.3727572858,
-0.1177619547,
-0.0307825916,
-0.1024162024,
-0.2032845467,
0.0942053348,
-0.0615636744,
0.573679626,
-0.1058082432,
0.338201046,
-0.0404296145,
0.2728069425,
0.7298620939,
0.3896467984,
0.0485652052,
-0.2766025364,
0.2084404081,
0.0665282011,
0.3524954021,
0.0325583443,
-0.0774381161,
0.0276742596,
-0.1396048516,
0.1097320467,
-0.0665155947,
0.0800474137,
0.3577904105,
-0.0214201435,
-0.6502228975,
-0.2415112853,
0.349167943,
0.2181300968,
-0.0446066558,
0.4857552946,
-0.1855889857,
-0.4610421956,
0.1322818696,
0.0488303415,
0.9176336527,
0.0788556039,
0.3388041556,
0.1819434166,
-0.2325964272,
0.2211386561,
0.1656600535,
0.1669915318,
-0.2519563437,
-0.2050485015,
-0.1160064936,
-0.3928780556,
-0.0402876064,
0.1229911596,
-0.2947117984,
0.1419768333,
-0.4592788815,
0.1178656369,
-0.1265632361,
-0.0132101998,
-0.1652893424,
-0.2160496861,
-0.1619816124,
0.0130732805,
-0.0312648825,
-0.1588720679,
-0.0141593181,
-0.248431325,
-0.3144509196,
-0.0913046375,
-0.1530977488,
0.2241206318,
-0.2308594882,
0.7114478946,
-0.0641589612,
-0.2984417081,
-0.2077658474,
0.1909827292,
0.1160423383,
-0.2021058798,
0.0624317601,
-0.1067824364,
-0.0023861267,
0.0436082743,
-0.0302291512,
-0.1206145287,
0.1903316975,
0.1035236567,
-0.2395180464,
0.1121626794,
-0.0587249175,
-0.3359274864,
0.0498031378,
0.3367282152,
0.0734796524,
-0.1848009676,
-0.1993739009,
0.204734996,
0.0342357978,
-0.0893301591,
0.0972223505,
0.1633285135,
-0.137335822,
0.1153963208,
-0.2287457585,
-0.3422151804,
-0.0366115384,
0.5363504291,
0.3310492039,
0.1768991649,
0.5639303327,
-0.2512997687,
-0.0115106031,
-0.1210898831,
0.3575094342,
-0.0484558679,
-0.1171177924,
0.2420294136,
0.0464920476,
0.0316432416,
-0.1686175317,
0.0865350813,
0.4298748672,
0.2080882937,
-0.1115063578,
-0.3559653461,
-0.5394129157,
0.3848752379,
-0.1338526309,
0.2295484543,
-0.0943678841,
0.0188094527,
-0.2178016305,
-0.1428943574,
-0.231971547,
0.0040240921,
-0.2592306733,
0.0460580625,
0.1432737112,
-0.0542205609,
0.1375245154,
-0.001938805,
0.1171025559,
-0.0530866049,
-0.0559869334,
-0.1022241116,
0.1451756805,
0.1476069987,
0.1074891537,
-0.2296529114,
-0.1094965041,
-0.3554103673,
-0.096442163,
-0.1427858174,
-0.1945218444,
0.1473959088,
-0.0696068555,
0.0959887579,
0.0284261554,
0.1697632968,
-0.0842252076,
0.177367717,
-0.0078188218,
0.1223412156,
-0.1652567983,
0.3226853907,
-0.102018781,
-0.1035026982,
-0.5782650709,
0.0080415234,
-0.113838762,
-0.1187395006,
0.1946617812,
-0.2355367243,
-0.1824669838,
-0.0658956468,
0.1693888903,
0.4238761365,
-0.2421944737,
0.0538662374,
0.0671149343,
0.1156091318,
-0.1454010606,
-0.2378467172,
-0.4377293289,
-0.1679389626,
-0.2898410261,
0.0179743692,
0.0264652669,
0.0214353651,
-0.1476329863,
0.0471715704,
0.2570025921,
-0.0331266336,
0.3051678538,
0.4617438614,
0.1223695278,
0.0497952923,
0.1322663128,
0.2484995723,
0.3821695745,
0.3037100732,
-0.1484187543,
0.2287611067,
0.1643526703,
-0.2151868194,
0.0003149882,
-0.2952019572,
0.0082639391,
0.2186151892,
-0.1552516073,
-0.1198688373,
-0.0192836002,
0.1178451926,
-0.3018822968,
-0.2792960107,
-0.1589519531,
0.1722862571,
-0.0979040861,
-0.0384441763,
-0.0908663273,
-0.1682474762,
-0.0577136502,
-0.1306224465,
0.1583768129,
-0.1463907659,
0.3186442554,
0.1499690861,
-0.2276844233,
-0.1426095814,
0.227393657,
0.678018868,
-0.0640058666,
-0.3532021642,
0.1663100272,
0.4771778286,
0.0767004788,
0.1096611917,
0.2268030941,
0.6265040636,
0.6114817858,
0.0625265092,
-0.0997543558,
0.2163282931,
-0.187184751,
0.1355876625,
0.167971909,
0.0278325863,
-0.209084481,
0.2076056004,
0.1935127378,
-0.0455946997,
0.1615620404,
0.1468856037,
0.2199597657,
-0.3095569313,
0.1947542876,
-0.3178146482,
-0.2008014619,
0.0813218355,
0.0192718823,
-0.3569808304,
0.0497226529,
0.6105669141,
0.0852060094,
0.1231744885,
0.319707185,
0.0237060636,
0.0234230869,
0.3911934495,
0.4590098858,
0.1405977905,
-0.454292208,
-0.1931886226,
-0.3783896267,
-0.0533244312,
0.2400221229,
0.0984767005,
-0.1206515878,
0.2832746804,
0.256362915,
-0.0056384169,
0.153662622,
0.2694151402,
-0.0883775055,
-0.095883593,
-0.4344920814,
-0.1329515874,
0.1246937513,
-0.0194768887,
0.0221352652,
-0.5011000037,
0.1718221605,
0.1736252755,
0.0116490349,
-0.0122557813,
0.2122927308,
0.2748071253,
0.5003051758,
0.3791130185,
0.1555563062,
0.4756856263,
-0.0263232775,
-0.1617091596,
0.0252982341,
-0.6679952741,
-0.1731605381,
0.1567952782,
0.0030106651,
0.2358822972,
-0.3328931332,
-0.0505154207,
-0.1813412607,
0.2213236392,
-0.118419148,
-0.2370863855,
-0.1663624048,
-0.0157357417,
0.0436303169,
-0.2296958566,
0.1340020895,
0.119735375,
0.0235278569,
0.4017438889,
-0.0975409746,
-0.2917836607,
0.4567210674,
-0.0764687508,
-0.1883584261,
-0.0190355219,
0.0982667282,
0.0895541906,
0.2853968143,
-0.5559752584,
-0.0551313311,
0.4927316904,
-0.1836723834,
-0.4319853485,
0.0786194652,
0.0816732794,
0.0435456559,
-0.0173980333,
0.6414549351,
-0.2835344672,
-0.5346692801,
-0.0249201208,
-0.2045636177
] |
https://github.com/huggingface/datasets/issues/848 | Error when concatenate_datasets | > As you can see in the error the test checks if `indices_mappings_in_memory` is True or not, which is different from the test you do in your script. In a dataset, both the data and the indices mapping can be either on disk or in memory.
>
> The indices mapping correspond to a mapping on top of the data table that is used to re-order/select a sample of the original data table. For example if you do `dataset.train_test_split`, then the resulting train and test datasets will have both an indices mapping to tell which examples are in train and which ones in test.
>
> Before saving your datasets on disk, you should call `dataset.flatten_indices()` to remove the indices mapping. It should fix your issue. Under the hood it will create a new data table using the indices mapping. The new data table is going to be a subset of the old one (for example taking only the test set examples), and since the indices mapping will be gone you'll be able to concatenate your datasets.
`dataset.flatten_indices()` solved my problem, thanks so much! | Hello, when I concatenate two dataset loading from disk, I encountered a problem:
```
test_dataset = load_from_disk('data/test_dataset')
trn_dataset = load_from_disk('data/train_dataset')
train_dataset = concatenate_datasets([trn_dataset, test_dataset])
```
And it reported ValueError blow:
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-38-74fa525512ca> in <module>
----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset])
/opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split)
2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format(
2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]],
-> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]],
2550 )
2551 )
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error:
```
trn_dataset._data_files
# output
[{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}]
test_dataset._data_files
# output
[{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}]
print([not dset._data_files for dset in [trn_dataset, test_dataset]])
# [False, False]
# And I tested the code the same as arrow_dataset, but nothing happened
dsets = [trn_dataset, test_dataset]
dsets_in_memory = [not dset._data_files for dset in dsets]
if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory):
raise ValueError(
"Datasets should ALL come from memory, or should ALL come from disk.\n"
"However datasets {} come from memory and datasets {} come from disk.".format(
[i for i in range(len(dsets)) if dsets_in_memory[i]],
[i for i in range(len(dsets)) if not dsets_in_memory[i]],
)
)
```
Any suggestions would be greatly appreciated!
Thanks! | 184 | Error when concatenate_datasets
Hello, when I concatenate two dataset loading from disk, I encountered a problem:
```
test_dataset = load_from_disk('data/test_dataset')
trn_dataset = load_from_disk('data/train_dataset')
train_dataset = concatenate_datasets([trn_dataset, test_dataset])
```
And it reported ValueError blow:
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-38-74fa525512ca> in <module>
----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset])
/opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split)
2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format(
2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]],
-> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]],
2550 )
2551 )
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error:
```
trn_dataset._data_files
# output
[{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}]
test_dataset._data_files
# output
[{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}]
print([not dset._data_files for dset in [trn_dataset, test_dataset]])
# [False, False]
# And I tested the code the same as arrow_dataset, but nothing happened
dsets = [trn_dataset, test_dataset]
dsets_in_memory = [not dset._data_files for dset in dsets]
if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory):
raise ValueError(
"Datasets should ALL come from memory, or should ALL come from disk.\n"
"However datasets {} come from memory and datasets {} come from disk.".format(
[i for i in range(len(dsets)) if dsets_in_memory[i]],
[i for i in range(len(dsets)) if not dsets_in_memory[i]],
)
)
```
Any suggestions would be greatly appreciated!
Thanks!
> As you can see in the error the test checks if `indices_mappings_in_memory` is True or not, which is different from the test you do in your script. In a dataset, both the data and the indices mapping can be either on disk or in memory.
>
> The indices mapping correspond to a mapping on top of the data table that is used to re-order/select a sample of the original data table. For example if you do `dataset.train_test_split`, then the resulting train and test datasets will have both an indices mapping to tell which examples are in train and which ones in test.
>
> Before saving your datasets on disk, you should call `dataset.flatten_indices()` to remove the indices mapping. It should fix your issue. Under the hood it will create a new data table using the indices mapping. The new data table is going to be a subset of the old one (for example taking only the test set examples), and since the indices mapping will be gone you'll be able to concatenate your datasets.
`dataset.flatten_indices()` solved my problem, thanks so much! | [
-0.0911898538,
-0.1483132541,
-0.0447486266,
0.6809362173,
0.1068756059,
0.2218789756,
0.3129054606,
0.2291087508,
-0.1234835237,
0.1246046051,
-0.1083223075,
0.2736028433,
-0.081689544,
-0.1234089136,
-0.3013662696,
-0.0974016637,
0.1984927952,
0.1485705227,
-0.5059523582,
-0.0316760987,
-0.3506397009,
0.1602454484,
-0.3358778954,
0.0398671664,
-0.4097847641,
0.0492455438,
-0.131790638,
0.2761822343,
-0.0312032811,
-0.1838645041,
0.4585872591,
-0.3488875329,
0.1864264011,
0.5364496708,
-0.0001176379,
0.1700861007,
0.2740952969,
-0.1723824739,
-0.3783840239,
-0.2567189336,
-0.3621295094,
-0.1004150063,
-0.0029405616,
-0.1234582216,
0.2076508701,
-0.1481204927,
-0.2583856285,
-0.5043873787,
0.3307152987,
0.2264487147,
0.1104793847,
0.3941425979,
0.0912053585,
-0.0980599523,
0.0378852561,
0.1533982307,
0.0659456924,
0.4203861058,
-0.1898589432,
-0.0617094673,
0.210829556,
0.0670611858,
-0.1246670932,
0.1450286508,
0.0780368149,
0.3099110723,
0.1575998664,
-0.3968758285,
-0.1252778322,
0.1079115123,
0.5253133178,
-0.3321694732,
-0.3178471625,
-0.0861592367,
0.1388192475,
-0.3995233178,
0.2178882211,
0.2979132533,
-0.1470904797,
0.1174624413,
-0.0907387286,
0.0771460384,
-0.2191732973,
0.1846294403,
-0.1806513667,
0.1145204306,
-0.1610965133,
0.2407017648,
0.1381713748,
-0.0730408505,
0.5286439061,
-0.357185781,
-0.1269249916,
0.1591959298,
-0.3422971964,
0.0321873575,
-0.1896209717,
-0.7045968771,
0.0890097469,
0.0558207557,
0.1037014499,
-0.2204588205,
0.0773696452,
0.28189224,
0.4017779827,
0.1492886245,
-0.0373818018,
0.5497028232,
-0.0202758797,
-0.0616966039,
0.1993702352,
0.0090525299,
-0.2867644429,
-0.2114095986,
0.1154306382,
-0.1646886468,
0.0836555362,
-0.0013333112,
-0.4971267581,
-0.151892364,
-0.1278606206,
-0.1404940486,
0.1965601593,
0.0301938597,
0.1238996908,
0.5308153629,
0.1307381988,
0.4409761429,
0.2173487544,
0.0174211711,
-0.2265088558,
0.0222140439,
-0.0451167412,
0.2104354799,
0.1034142077,
0.0044441745,
0.0821225569,
0.1775871068,
0.108755894,
0.0064506903,
0.0768847689,
-0.4948598146,
0.0583266169,
0.3114699721,
0.0211647302,
0.0750034079,
0.2738741934,
-0.0503141992,
-0.1439026892,
0.3170153797,
-0.4437069595,
-0.2742709517,
-0.5135641098,
0.0968816802,
0.0989557505,
0.2329160869,
-0.3203628659,
-0.1113316789,
0.6928235888,
0.1045665592,
-0.0683575794,
-0.0662889332,
-0.1984152198,
-0.3195585907,
0.3204244077,
0.2007121742,
-0.2164678276,
-0.0330447853,
-0.0184934475,
-0.067797333,
0.3604030311,
0.5054666996,
-0.3153641522,
0.1992007196,
-0.385501951,
-0.0331819803,
0.3084051013,
-0.4366769791,
-0.1402202547,
0.21540232,
0.003216058,
-0.0735864043,
0.2376118153,
0.0082837343,
0.1314236522,
0.1472162306,
0.8280867934,
0.3132544756,
0.0639004335,
-0.1781873703,
-0.0976125747,
-0.138335973,
0.2659768164,
0.1000100225,
-0.2323940098,
0.0350794271,
-0.1362985075,
-0.4177927375,
0.3237215579,
-0.1016950458,
0.0396772549,
0.3689119816,
0.0351548344,
-0.343180716,
-0.1154859215,
0.0461800843,
-0.1954732686,
0.0483527258,
0.0379620418,
-0.0852143392,
-0.299800247,
0.091544047,
-0.1228935719,
0.0769214705,
-0.0723354965,
0.0498541184,
0.0176120773,
0.2352780253,
-0.1725986898,
-0.2480315864,
-0.1653314978,
0.4237135351,
-0.2777826786,
-0.0269184932,
-0.207360208,
0.5686872005,
-0.0645173863,
-0.0320977569,
-0.1763464957,
-0.0393742174,
0.0589342378,
0.1164019555,
-0.0541009828,
0.5149713159,
0.0520668998,
-0.1684776992,
0.0259418711,
-0.2057825327,
0.229021728,
-0.0772498846,
0.139911592,
-0.120184809,
0.1309277713,
-0.0969888568,
0.0723320246,
0.4227219522,
-0.13237001,
0.2828261554,
-0.0215709955,
0.0900898948,
0.1695278883,
0.1452978253,
-0.0583257042,
-0.4177125096,
-0.0745218545,
0.1675421298,
0.2188819498,
0.2504172623,
-0.4655808806,
-0.2347150445,
0.3388249874,
0.0246771052,
0.0422088429,
0.1224698126,
-0.3912706077,
-0.0406098887,
-0.0284235515,
0.349185288,
0.770719111,
0.1276441216,
0.0334591232,
-0.1203363836,
-0.0359242074,
0.0076953582,
0.3499153256,
0.0637104362,
0.3463791907,
0.3114226162,
-0.01736697,
0.0689949691,
-0.0166561082,
-0.0879929215,
0.0875868276,
0.062276341,
-0.4036811888,
0.0528635457,
-0.1899862587,
-0.0543130003,
-0.3040485382,
-0.2463192046,
-0.1040122956,
-0.2119139433,
-0.4094066322,
0.2274120897,
-0.0545445606,
0.1956343353,
-0.1933859289,
0.0545216054,
0.1509282142,
-0.0917486921,
0.0003246814,
0.009441521,
-0.2065684497,
-0.0326040909,
0.2210373133,
-0.1053394601,
0.0362826139,
-0.1857274175,
0.0301044062,
-0.1180916876,
0.1154469252,
0.0138302445,
-0.075828284,
0.1963148266,
0.0516775288,
0.2055029422,
-0.0473080166,
-0.6516988873,
0.1352369487,
0.5362840891,
-0.2745611668,
0.3799956143,
0.1490533352,
-0.0947602242,
-0.1053224057,
-0.2667205334,
-0.4566353858,
-0.3636387289,
-0.0651497021,
-0.1452124119,
0.2417425513,
0.2856628299,
0.236869365,
0.0091699138,
0.145945102,
0.1538189799,
-0.0961046666,
-0.2391645908,
0.4765642285,
0.0441289768,
-0.1764595062,
-0.1454285532,
-0.0685135797,
0.2939203382,
0.2050094754,
-0.3704078197,
0.118242085,
-0.0839299262,
0.0721747577,
-0.3724436164,
0.0816906542,
0.0955050737,
0.3071267009,
-0.0495687798,
-0.1056535318,
-0.1409311295,
0.1213521734,
0.0509182252,
0.3641840518,
-0.0269906819,
0.3982571363,
-0.08975292,
0.4547500312,
0.2624275684,
-0.1617569327,
0.213092804,
0.1749909073,
0.5188267827,
0.0098329727,
-0.4894424081,
-0.3085484803,
-0.1053092927,
-0.0222779214,
-0.145358026,
-0.1314474791,
-0.2135680765,
-0.1715726405,
0.1677533388,
-0.2021041363,
-0.0977447331,
0.0934711024,
-0.4890374541,
0.2789091468,
-0.2671628594,
-0.0172280222,
-0.2255419046,
0.2368052602,
-0.3388527036,
-0.0028137006,
0.1530742049,
-0.1081696525,
-0.0758418888,
-0.0532246903,
-0.1671225131,
0.2889294028,
0.0708026886,
0.6286581159,
0.0871340036,
-0.3619210124,
-0.1413576156,
0.1061916947,
0.6050751805,
0.3731423318,
-0.352981776,
0.3440539837,
0.1444439739,
-0.5278428793,
-0.1323235184,
-0.1430731118,
0.2472810447,
-0.0800601318,
0.6192361116,
-0.2810611725,
-0.2102863342,
0.0483549163,
0.3565577865,
-0.0551361851,
-0.0701749548,
-0.3375282884,
-0.0948552787,
-0.265756011,
-0.1750977337,
-0.0085995048,
0.3727572858,
-0.1177619547,
-0.0307825916,
-0.1024162024,
-0.2032845467,
0.0942053348,
-0.0615636744,
0.573679626,
-0.1058082432,
0.338201046,
-0.0404296145,
0.2728069425,
0.7298620939,
0.3896467984,
0.0485652052,
-0.2766025364,
0.2084404081,
0.0665282011,
0.3524954021,
0.0325583443,
-0.0774381161,
0.0276742596,
-0.1396048516,
0.1097320467,
-0.0665155947,
0.0800474137,
0.3577904105,
-0.0214201435,
-0.6502228975,
-0.2415112853,
0.349167943,
0.2181300968,
-0.0446066558,
0.4857552946,
-0.1855889857,
-0.4610421956,
0.1322818696,
0.0488303415,
0.9176336527,
0.0788556039,
0.3388041556,
0.1819434166,
-0.2325964272,
0.2211386561,
0.1656600535,
0.1669915318,
-0.2519563437,
-0.2050485015,
-0.1160064936,
-0.3928780556,
-0.0402876064,
0.1229911596,
-0.2947117984,
0.1419768333,
-0.4592788815,
0.1178656369,
-0.1265632361,
-0.0132101998,
-0.1652893424,
-0.2160496861,
-0.1619816124,
0.0130732805,
-0.0312648825,
-0.1588720679,
-0.0141593181,
-0.248431325,
-0.3144509196,
-0.0913046375,
-0.1530977488,
0.2241206318,
-0.2308594882,
0.7114478946,
-0.0641589612,
-0.2984417081,
-0.2077658474,
0.1909827292,
0.1160423383,
-0.2021058798,
0.0624317601,
-0.1067824364,
-0.0023861267,
0.0436082743,
-0.0302291512,
-0.1206145287,
0.1903316975,
0.1035236567,
-0.2395180464,
0.1121626794,
-0.0587249175,
-0.3359274864,
0.0498031378,
0.3367282152,
0.0734796524,
-0.1848009676,
-0.1993739009,
0.204734996,
0.0342357978,
-0.0893301591,
0.0972223505,
0.1633285135,
-0.137335822,
0.1153963208,
-0.2287457585,
-0.3422151804,
-0.0366115384,
0.5363504291,
0.3310492039,
0.1768991649,
0.5639303327,
-0.2512997687,
-0.0115106031,
-0.1210898831,
0.3575094342,
-0.0484558679,
-0.1171177924,
0.2420294136,
0.0464920476,
0.0316432416,
-0.1686175317,
0.0865350813,
0.4298748672,
0.2080882937,
-0.1115063578,
-0.3559653461,
-0.5394129157,
0.3848752379,
-0.1338526309,
0.2295484543,
-0.0943678841,
0.0188094527,
-0.2178016305,
-0.1428943574,
-0.231971547,
0.0040240921,
-0.2592306733,
0.0460580625,
0.1432737112,
-0.0542205609,
0.1375245154,
-0.001938805,
0.1171025559,
-0.0530866049,
-0.0559869334,
-0.1022241116,
0.1451756805,
0.1476069987,
0.1074891537,
-0.2296529114,
-0.1094965041,
-0.3554103673,
-0.096442163,
-0.1427858174,
-0.1945218444,
0.1473959088,
-0.0696068555,
0.0959887579,
0.0284261554,
0.1697632968,
-0.0842252076,
0.177367717,
-0.0078188218,
0.1223412156,
-0.1652567983,
0.3226853907,
-0.102018781,
-0.1035026982,
-0.5782650709,
0.0080415234,
-0.113838762,
-0.1187395006,
0.1946617812,
-0.2355367243,
-0.1824669838,
-0.0658956468,
0.1693888903,
0.4238761365,
-0.2421944737,
0.0538662374,
0.0671149343,
0.1156091318,
-0.1454010606,
-0.2378467172,
-0.4377293289,
-0.1679389626,
-0.2898410261,
0.0179743692,
0.0264652669,
0.0214353651,
-0.1476329863,
0.0471715704,
0.2570025921,
-0.0331266336,
0.3051678538,
0.4617438614,
0.1223695278,
0.0497952923,
0.1322663128,
0.2484995723,
0.3821695745,
0.3037100732,
-0.1484187543,
0.2287611067,
0.1643526703,
-0.2151868194,
0.0003149882,
-0.2952019572,
0.0082639391,
0.2186151892,
-0.1552516073,
-0.1198688373,
-0.0192836002,
0.1178451926,
-0.3018822968,
-0.2792960107,
-0.1589519531,
0.1722862571,
-0.0979040861,
-0.0384441763,
-0.0908663273,
-0.1682474762,
-0.0577136502,
-0.1306224465,
0.1583768129,
-0.1463907659,
0.3186442554,
0.1499690861,
-0.2276844233,
-0.1426095814,
0.227393657,
0.678018868,
-0.0640058666,
-0.3532021642,
0.1663100272,
0.4771778286,
0.0767004788,
0.1096611917,
0.2268030941,
0.6265040636,
0.6114817858,
0.0625265092,
-0.0997543558,
0.2163282931,
-0.187184751,
0.1355876625,
0.167971909,
0.0278325863,
-0.209084481,
0.2076056004,
0.1935127378,
-0.0455946997,
0.1615620404,
0.1468856037,
0.2199597657,
-0.3095569313,
0.1947542876,
-0.3178146482,
-0.2008014619,
0.0813218355,
0.0192718823,
-0.3569808304,
0.0497226529,
0.6105669141,
0.0852060094,
0.1231744885,
0.319707185,
0.0237060636,
0.0234230869,
0.3911934495,
0.4590098858,
0.1405977905,
-0.454292208,
-0.1931886226,
-0.3783896267,
-0.0533244312,
0.2400221229,
0.0984767005,
-0.1206515878,
0.2832746804,
0.256362915,
-0.0056384169,
0.153662622,
0.2694151402,
-0.0883775055,
-0.095883593,
-0.4344920814,
-0.1329515874,
0.1246937513,
-0.0194768887,
0.0221352652,
-0.5011000037,
0.1718221605,
0.1736252755,
0.0116490349,
-0.0122557813,
0.2122927308,
0.2748071253,
0.5003051758,
0.3791130185,
0.1555563062,
0.4756856263,
-0.0263232775,
-0.1617091596,
0.0252982341,
-0.6679952741,
-0.1731605381,
0.1567952782,
0.0030106651,
0.2358822972,
-0.3328931332,
-0.0505154207,
-0.1813412607,
0.2213236392,
-0.118419148,
-0.2370863855,
-0.1663624048,
-0.0157357417,
0.0436303169,
-0.2296958566,
0.1340020895,
0.119735375,
0.0235278569,
0.4017438889,
-0.0975409746,
-0.2917836607,
0.4567210674,
-0.0764687508,
-0.1883584261,
-0.0190355219,
0.0982667282,
0.0895541906,
0.2853968143,
-0.5559752584,
-0.0551313311,
0.4927316904,
-0.1836723834,
-0.4319853485,
0.0786194652,
0.0816732794,
0.0435456559,
-0.0173980333,
0.6414549351,
-0.2835344672,
-0.5346692801,
-0.0249201208,
-0.2045636177
] |
https://github.com/huggingface/datasets/issues/848 | Error when concatenate_datasets | @lhoestq we can add a mention of `dataset.flatten_indices()` in the error message (no rush, just put it on your TODO list or I can do it when I come at it) | Hello, when I concatenate two dataset loading from disk, I encountered a problem:
```
test_dataset = load_from_disk('data/test_dataset')
trn_dataset = load_from_disk('data/train_dataset')
train_dataset = concatenate_datasets([trn_dataset, test_dataset])
```
And it reported ValueError blow:
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-38-74fa525512ca> in <module>
----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset])
/opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split)
2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format(
2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]],
-> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]],
2550 )
2551 )
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error:
```
trn_dataset._data_files
# output
[{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}]
test_dataset._data_files
# output
[{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}]
print([not dset._data_files for dset in [trn_dataset, test_dataset]])
# [False, False]
# And I tested the code the same as arrow_dataset, but nothing happened
dsets = [trn_dataset, test_dataset]
dsets_in_memory = [not dset._data_files for dset in dsets]
if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory):
raise ValueError(
"Datasets should ALL come from memory, or should ALL come from disk.\n"
"However datasets {} come from memory and datasets {} come from disk.".format(
[i for i in range(len(dsets)) if dsets_in_memory[i]],
[i for i in range(len(dsets)) if not dsets_in_memory[i]],
)
)
```
Any suggestions would be greatly appreciated!
Thanks! | 31 | Error when concatenate_datasets
Hello, when I concatenate two dataset loading from disk, I encountered a problem:
```
test_dataset = load_from_disk('data/test_dataset')
trn_dataset = load_from_disk('data/train_dataset')
train_dataset = concatenate_datasets([trn_dataset, test_dataset])
```
And it reported ValueError blow:
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-38-74fa525512ca> in <module>
----> 1 train_dataset = concatenate_datasets([trn_dataset, test_dataset])
/opt/miniconda3/lib/python3.7/site-packages/datasets/arrow_dataset.py in concatenate_datasets(dsets, info, split)
2547 "However datasets' indices {} come from memory and datasets' indices {} come from disk.".format(
2548 [i for i in range(len(dsets)) if indices_mappings_in_memory[i]],
-> 2549 [i for i in range(len(dsets)) if not indices_mappings_in_memory[i]],
2550 )
2551 )
ValueError: Datasets' indices should ALL come from memory, or should ALL come from disk.
However datasets' indices [1] come from memory and datasets' indices [0] come from disk.
```
But it's curious both of my datasets loading from disk, so I check the source code in `arrow_dataset.py` about the Error:
```
trn_dataset._data_files
# output
[{'filename': 'data/train_dataset/csv-train.arrow', 'skip': 0, 'take': 593264}]
test_dataset._data_files
# output
[{'filename': 'data/test_dataset/csv-test.arrow', 'skip': 0, 'take': 424383}]
print([not dset._data_files for dset in [trn_dataset, test_dataset]])
# [False, False]
# And I tested the code the same as arrow_dataset, but nothing happened
dsets = [trn_dataset, test_dataset]
dsets_in_memory = [not dset._data_files for dset in dsets]
if any(dset_in_memory != dsets_in_memory[0] for dset_in_memory in dsets_in_memory):
raise ValueError(
"Datasets should ALL come from memory, or should ALL come from disk.\n"
"However datasets {} come from memory and datasets {} come from disk.".format(
[i for i in range(len(dsets)) if dsets_in_memory[i]],
[i for i in range(len(dsets)) if not dsets_in_memory[i]],
)
)
```
Any suggestions would be greatly appreciated!
Thanks!
@lhoestq we can add a mention of `dataset.flatten_indices()` in the error message (no rush, just put it on your TODO list or I can do it when I come at it) | [
-0.0911898538,
-0.1483132541,
-0.0447486266,
0.6809362173,
0.1068756059,
0.2218789756,
0.3129054606,
0.2291087508,
-0.1234835237,
0.1246046051,
-0.1083223075,
0.2736028433,
-0.081689544,
-0.1234089136,
-0.3013662696,
-0.0974016637,
0.1984927952,
0.1485705227,
-0.5059523582,
-0.0316760987,
-0.3506397009,
0.1602454484,
-0.3358778954,
0.0398671664,
-0.4097847641,
0.0492455438,
-0.131790638,
0.2761822343,
-0.0312032811,
-0.1838645041,
0.4585872591,
-0.3488875329,
0.1864264011,
0.5364496708,
-0.0001176379,
0.1700861007,
0.2740952969,
-0.1723824739,
-0.3783840239,
-0.2567189336,
-0.3621295094,
-0.1004150063,
-0.0029405616,
-0.1234582216,
0.2076508701,
-0.1481204927,
-0.2583856285,
-0.5043873787,
0.3307152987,
0.2264487147,
0.1104793847,
0.3941425979,
0.0912053585,
-0.0980599523,
0.0378852561,
0.1533982307,
0.0659456924,
0.4203861058,
-0.1898589432,
-0.0617094673,
0.210829556,
0.0670611858,
-0.1246670932,
0.1450286508,
0.0780368149,
0.3099110723,
0.1575998664,
-0.3968758285,
-0.1252778322,
0.1079115123,
0.5253133178,
-0.3321694732,
-0.3178471625,
-0.0861592367,
0.1388192475,
-0.3995233178,
0.2178882211,
0.2979132533,
-0.1470904797,
0.1174624413,
-0.0907387286,
0.0771460384,
-0.2191732973,
0.1846294403,
-0.1806513667,
0.1145204306,
-0.1610965133,
0.2407017648,
0.1381713748,
-0.0730408505,
0.5286439061,
-0.357185781,
-0.1269249916,
0.1591959298,
-0.3422971964,
0.0321873575,
-0.1896209717,
-0.7045968771,
0.0890097469,
0.0558207557,
0.1037014499,
-0.2204588205,
0.0773696452,
0.28189224,
0.4017779827,
0.1492886245,
-0.0373818018,
0.5497028232,
-0.0202758797,
-0.0616966039,
0.1993702352,
0.0090525299,
-0.2867644429,
-0.2114095986,
0.1154306382,
-0.1646886468,
0.0836555362,
-0.0013333112,
-0.4971267581,
-0.151892364,
-0.1278606206,
-0.1404940486,
0.1965601593,
0.0301938597,
0.1238996908,
0.5308153629,
0.1307381988,
0.4409761429,
0.2173487544,
0.0174211711,
-0.2265088558,
0.0222140439,
-0.0451167412,
0.2104354799,
0.1034142077,
0.0044441745,
0.0821225569,
0.1775871068,
0.108755894,
0.0064506903,
0.0768847689,
-0.4948598146,
0.0583266169,
0.3114699721,
0.0211647302,
0.0750034079,
0.2738741934,
-0.0503141992,
-0.1439026892,
0.3170153797,
-0.4437069595,
-0.2742709517,
-0.5135641098,
0.0968816802,
0.0989557505,
0.2329160869,
-0.3203628659,
-0.1113316789,
0.6928235888,
0.1045665592,
-0.0683575794,
-0.0662889332,
-0.1984152198,
-0.3195585907,
0.3204244077,
0.2007121742,
-0.2164678276,
-0.0330447853,
-0.0184934475,
-0.067797333,
0.3604030311,
0.5054666996,
-0.3153641522,
0.1992007196,
-0.385501951,
-0.0331819803,
0.3084051013,
-0.4366769791,
-0.1402202547,
0.21540232,
0.003216058,
-0.0735864043,
0.2376118153,
0.0082837343,
0.1314236522,
0.1472162306,
0.8280867934,
0.3132544756,
0.0639004335,
-0.1781873703,
-0.0976125747,
-0.138335973,
0.2659768164,
0.1000100225,
-0.2323940098,
0.0350794271,
-0.1362985075,
-0.4177927375,
0.3237215579,
-0.1016950458,
0.0396772549,
0.3689119816,
0.0351548344,
-0.343180716,
-0.1154859215,
0.0461800843,
-0.1954732686,
0.0483527258,
0.0379620418,
-0.0852143392,
-0.299800247,
0.091544047,
-0.1228935719,
0.0769214705,
-0.0723354965,
0.0498541184,
0.0176120773,
0.2352780253,
-0.1725986898,
-0.2480315864,
-0.1653314978,
0.4237135351,
-0.2777826786,
-0.0269184932,
-0.207360208,
0.5686872005,
-0.0645173863,
-0.0320977569,
-0.1763464957,
-0.0393742174,
0.0589342378,
0.1164019555,
-0.0541009828,
0.5149713159,
0.0520668998,
-0.1684776992,
0.0259418711,
-0.2057825327,
0.229021728,
-0.0772498846,
0.139911592,
-0.120184809,
0.1309277713,
-0.0969888568,
0.0723320246,
0.4227219522,
-0.13237001,
0.2828261554,
-0.0215709955,
0.0900898948,
0.1695278883,
0.1452978253,
-0.0583257042,
-0.4177125096,
-0.0745218545,
0.1675421298,
0.2188819498,
0.2504172623,
-0.4655808806,
-0.2347150445,
0.3388249874,
0.0246771052,
0.0422088429,
0.1224698126,
-0.3912706077,
-0.0406098887,
-0.0284235515,
0.349185288,
0.770719111,
0.1276441216,
0.0334591232,
-0.1203363836,
-0.0359242074,
0.0076953582,
0.3499153256,
0.0637104362,
0.3463791907,
0.3114226162,
-0.01736697,
0.0689949691,
-0.0166561082,
-0.0879929215,
0.0875868276,
0.062276341,
-0.4036811888,
0.0528635457,
-0.1899862587,
-0.0543130003,
-0.3040485382,
-0.2463192046,
-0.1040122956,
-0.2119139433,
-0.4094066322,
0.2274120897,
-0.0545445606,
0.1956343353,
-0.1933859289,
0.0545216054,
0.1509282142,
-0.0917486921,
0.0003246814,
0.009441521,
-0.2065684497,
-0.0326040909,
0.2210373133,
-0.1053394601,
0.0362826139,
-0.1857274175,
0.0301044062,
-0.1180916876,
0.1154469252,
0.0138302445,
-0.075828284,
0.1963148266,
0.0516775288,
0.2055029422,
-0.0473080166,
-0.6516988873,
0.1352369487,
0.5362840891,
-0.2745611668,
0.3799956143,
0.1490533352,
-0.0947602242,
-0.1053224057,
-0.2667205334,
-0.4566353858,
-0.3636387289,
-0.0651497021,
-0.1452124119,
0.2417425513,
0.2856628299,
0.236869365,
0.0091699138,
0.145945102,
0.1538189799,
-0.0961046666,
-0.2391645908,
0.4765642285,
0.0441289768,
-0.1764595062,
-0.1454285532,
-0.0685135797,
0.2939203382,
0.2050094754,
-0.3704078197,
0.118242085,
-0.0839299262,
0.0721747577,
-0.3724436164,
0.0816906542,
0.0955050737,
0.3071267009,
-0.0495687798,
-0.1056535318,
-0.1409311295,
0.1213521734,
0.0509182252,
0.3641840518,
-0.0269906819,
0.3982571363,
-0.08975292,
0.4547500312,
0.2624275684,
-0.1617569327,
0.213092804,
0.1749909073,
0.5188267827,
0.0098329727,
-0.4894424081,
-0.3085484803,
-0.1053092927,
-0.0222779214,
-0.145358026,
-0.1314474791,
-0.2135680765,
-0.1715726405,
0.1677533388,
-0.2021041363,
-0.0977447331,
0.0934711024,
-0.4890374541,
0.2789091468,
-0.2671628594,
-0.0172280222,
-0.2255419046,
0.2368052602,
-0.3388527036,
-0.0028137006,
0.1530742049,
-0.1081696525,
-0.0758418888,
-0.0532246903,
-0.1671225131,
0.2889294028,
0.0708026886,
0.6286581159,
0.0871340036,
-0.3619210124,
-0.1413576156,
0.1061916947,
0.6050751805,
0.3731423318,
-0.352981776,
0.3440539837,
0.1444439739,
-0.5278428793,
-0.1323235184,
-0.1430731118,
0.2472810447,
-0.0800601318,
0.6192361116,
-0.2810611725,
-0.2102863342,
0.0483549163,
0.3565577865,
-0.0551361851,
-0.0701749548,
-0.3375282884,
-0.0948552787,
-0.265756011,
-0.1750977337,
-0.0085995048,
0.3727572858,
-0.1177619547,
-0.0307825916,
-0.1024162024,
-0.2032845467,
0.0942053348,
-0.0615636744,
0.573679626,
-0.1058082432,
0.338201046,
-0.0404296145,
0.2728069425,
0.7298620939,
0.3896467984,
0.0485652052,
-0.2766025364,
0.2084404081,
0.0665282011,
0.3524954021,
0.0325583443,
-0.0774381161,
0.0276742596,
-0.1396048516,
0.1097320467,
-0.0665155947,
0.0800474137,
0.3577904105,
-0.0214201435,
-0.6502228975,
-0.2415112853,
0.349167943,
0.2181300968,
-0.0446066558,
0.4857552946,
-0.1855889857,
-0.4610421956,
0.1322818696,
0.0488303415,
0.9176336527,
0.0788556039,
0.3388041556,
0.1819434166,
-0.2325964272,
0.2211386561,
0.1656600535,
0.1669915318,
-0.2519563437,
-0.2050485015,
-0.1160064936,
-0.3928780556,
-0.0402876064,
0.1229911596,
-0.2947117984,
0.1419768333,
-0.4592788815,
0.1178656369,
-0.1265632361,
-0.0132101998,
-0.1652893424,
-0.2160496861,
-0.1619816124,
0.0130732805,
-0.0312648825,
-0.1588720679,
-0.0141593181,
-0.248431325,
-0.3144509196,
-0.0913046375,
-0.1530977488,
0.2241206318,
-0.2308594882,
0.7114478946,
-0.0641589612,
-0.2984417081,
-0.2077658474,
0.1909827292,
0.1160423383,
-0.2021058798,
0.0624317601,
-0.1067824364,
-0.0023861267,
0.0436082743,
-0.0302291512,
-0.1206145287,
0.1903316975,
0.1035236567,
-0.2395180464,
0.1121626794,
-0.0587249175,
-0.3359274864,
0.0498031378,
0.3367282152,
0.0734796524,
-0.1848009676,
-0.1993739009,
0.204734996,
0.0342357978,
-0.0893301591,
0.0972223505,
0.1633285135,
-0.137335822,
0.1153963208,
-0.2287457585,
-0.3422151804,
-0.0366115384,
0.5363504291,
0.3310492039,
0.1768991649,
0.5639303327,
-0.2512997687,
-0.0115106031,
-0.1210898831,
0.3575094342,
-0.0484558679,
-0.1171177924,
0.2420294136,
0.0464920476,
0.0316432416,
-0.1686175317,
0.0865350813,
0.4298748672,
0.2080882937,
-0.1115063578,
-0.3559653461,
-0.5394129157,
0.3848752379,
-0.1338526309,
0.2295484543,
-0.0943678841,
0.0188094527,
-0.2178016305,
-0.1428943574,
-0.231971547,
0.0040240921,
-0.2592306733,
0.0460580625,
0.1432737112,
-0.0542205609,
0.1375245154,
-0.001938805,
0.1171025559,
-0.0530866049,
-0.0559869334,
-0.1022241116,
0.1451756805,
0.1476069987,
0.1074891537,
-0.2296529114,
-0.1094965041,
-0.3554103673,
-0.096442163,
-0.1427858174,
-0.1945218444,
0.1473959088,
-0.0696068555,
0.0959887579,
0.0284261554,
0.1697632968,
-0.0842252076,
0.177367717,
-0.0078188218,
0.1223412156,
-0.1652567983,
0.3226853907,
-0.102018781,
-0.1035026982,
-0.5782650709,
0.0080415234,
-0.113838762,
-0.1187395006,
0.1946617812,
-0.2355367243,
-0.1824669838,
-0.0658956468,
0.1693888903,
0.4238761365,
-0.2421944737,
0.0538662374,
0.0671149343,
0.1156091318,
-0.1454010606,
-0.2378467172,
-0.4377293289,
-0.1679389626,
-0.2898410261,
0.0179743692,
0.0264652669,
0.0214353651,
-0.1476329863,
0.0471715704,
0.2570025921,
-0.0331266336,
0.3051678538,
0.4617438614,
0.1223695278,
0.0497952923,
0.1322663128,
0.2484995723,
0.3821695745,
0.3037100732,
-0.1484187543,
0.2287611067,
0.1643526703,
-0.2151868194,
0.0003149882,
-0.2952019572,
0.0082639391,
0.2186151892,
-0.1552516073,
-0.1198688373,
-0.0192836002,
0.1178451926,
-0.3018822968,
-0.2792960107,
-0.1589519531,
0.1722862571,
-0.0979040861,
-0.0384441763,
-0.0908663273,
-0.1682474762,
-0.0577136502,
-0.1306224465,
0.1583768129,
-0.1463907659,
0.3186442554,
0.1499690861,
-0.2276844233,
-0.1426095814,
0.227393657,
0.678018868,
-0.0640058666,
-0.3532021642,
0.1663100272,
0.4771778286,
0.0767004788,
0.1096611917,
0.2268030941,
0.6265040636,
0.6114817858,
0.0625265092,
-0.0997543558,
0.2163282931,
-0.187184751,
0.1355876625,
0.167971909,
0.0278325863,
-0.209084481,
0.2076056004,
0.1935127378,
-0.0455946997,
0.1615620404,
0.1468856037,
0.2199597657,
-0.3095569313,
0.1947542876,
-0.3178146482,
-0.2008014619,
0.0813218355,
0.0192718823,
-0.3569808304,
0.0497226529,
0.6105669141,
0.0852060094,
0.1231744885,
0.319707185,
0.0237060636,
0.0234230869,
0.3911934495,
0.4590098858,
0.1405977905,
-0.454292208,
-0.1931886226,
-0.3783896267,
-0.0533244312,
0.2400221229,
0.0984767005,
-0.1206515878,
0.2832746804,
0.256362915,
-0.0056384169,
0.153662622,
0.2694151402,
-0.0883775055,
-0.095883593,
-0.4344920814,
-0.1329515874,
0.1246937513,
-0.0194768887,
0.0221352652,
-0.5011000037,
0.1718221605,
0.1736252755,
0.0116490349,
-0.0122557813,
0.2122927308,
0.2748071253,
0.5003051758,
0.3791130185,
0.1555563062,
0.4756856263,
-0.0263232775,
-0.1617091596,
0.0252982341,
-0.6679952741,
-0.1731605381,
0.1567952782,
0.0030106651,
0.2358822972,
-0.3328931332,
-0.0505154207,
-0.1813412607,
0.2213236392,
-0.118419148,
-0.2370863855,
-0.1663624048,
-0.0157357417,
0.0436303169,
-0.2296958566,
0.1340020895,
0.119735375,
0.0235278569,
0.4017438889,
-0.0975409746,
-0.2917836607,
0.4567210674,
-0.0764687508,
-0.1883584261,
-0.0190355219,
0.0982667282,
0.0895541906,
0.2853968143,
-0.5559752584,
-0.0551313311,
0.4927316904,
-0.1836723834,
-0.4319853485,
0.0786194652,
0.0816732794,
0.0435456559,
-0.0173980333,
0.6414549351,
-0.2835344672,
-0.5346692801,
-0.0249201208,
-0.2045636177
] |
https://github.com/huggingface/datasets/issues/847 | multiprocessing in dataset map "can only test a child process" | It looks like an issue with wandb/tqdm here.
We're using the `multiprocess` library instead of the `multiprocessing` builtin python package to support various types of mapping functions. Maybe there's some sort of incompatibility.
Could you make a minimal script to reproduce or a google colab ? | Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
``` | 46 | multiprocessing in dataset map "can only test a child process"
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
```
It looks like an issue with wandb/tqdm here.
We're using the `multiprocess` library instead of the `multiprocessing` builtin python package to support various types of mapping functions. Maybe there's some sort of incompatibility.
Could you make a minimal script to reproduce or a google colab ? | [
-0.3956996202,
0.0156291872,
-0.1538685858,
-0.1850298345,
0.1417977363,
-0.057856515,
0.5068992376,
0.3400265574,
-0.0834039077,
0.168177247,
-0.018427331,
0.3370633125,
0.0475012921,
0.0918331221,
-0.2264435291,
0.102147162,
-0.0123606995,
0.0946921781,
0.1290112585,
0.0473635644,
-0.1753094494,
0.1040759757,
-0.230250746,
0.2859587073,
-0.4516965449,
-0.2857310474,
-0.0163214803,
-0.0623160712,
-0.264323622,
-0.4696432948,
-0.1491129398,
0.2851143777,
-0.1861116439,
0.6030861735,
-0.0001044559,
0.0936727226,
0.2627741098,
0.0446500182,
-0.0541399419,
-0.0300702751,
0.0951316953,
-0.0515859276,
-0.0309995934,
-0.4035979509,
-0.0044789612,
-0.2674303651,
0.1779135615,
-0.4431349039,
0.2878314257,
0.3189612925,
0.2665319145,
0.5655280352,
-0.209222883,
-0.0047211349,
-0.2012011111,
-0.0783625692,
-0.035720598,
-0.1625542045,
0.2167162448,
-0.2403010726,
-0.3567935824,
0.2491742224,
-0.0430282876,
0.1743142456,
-0.32908687,
0.0007868819,
0.2776492834,
-0.2374251038,
0.3172337413,
0.079236269,
0.1507844776,
-0.2674019635,
-0.3465929925,
-0.1820104122,
-0.2675668299,
-0.1380904913,
-0.089617148,
0.0866118297,
-0.309032023,
0.0237944331,
-0.2314291298,
0.0673613846,
-0.0069426522,
-0.097134456,
-0.2097462267,
0.6421573758,
0.0204102658,
0.2258118093,
-0.0584262647,
0.0421580486,
0.13218458,
-0.1236512288,
0.1550005972,
-0.0283192806,
-0.176759392,
-0.1339014769,
0.1732695103,
-0.3608182967,
0.1934939474,
-0.0518136472,
-0.2702676952,
0.1569521576,
0.121089831,
0.1657909006,
0.1612781733,
0.0505133383,
0.155910328,
0.2796486318,
0.2925398052,
-0.1969956309,
-0.3908066154,
-0.0121860132,
0.0276294909,
-0.2749154568,
0.1901084185,
0.1587806493,
0.1859904677,
0.0203871652,
-0.3168945909,
-0.067428723,
-0.1310212612,
-0.0011092462,
0.0109486915,
0.4655703306,
-0.0625769496,
0.2101196498,
-0.1869858801,
0.2766140401,
-0.1955184639,
-0.133565098,
-0.2674530745,
0.1599751711,
-0.1052410975,
-0.0912757292,
0.0864881724,
0.2284778059,
0.3958973885,
0.0574227497,
0.0732819214,
-0.0852146149,
0.4325416088,
-0.2196345478,
0.2467180341,
0.0557840653,
0.0686210915,
0.1359150112,
0.2674400806,
-0.3098888993,
-0.1797690094,
-0.074889496,
0.0085686827,
-0.188371107,
-0.0060650678,
0.2934331894,
0.0234701037,
0.0294384062,
-0.1553815156,
0.1325115412,
0.2363230288,
0.0417061746,
0.0084720403,
-0.1836156398,
-0.2125668228,
-0.1611632258,
0.1659644842,
0.2332041711,
-0.1246361285,
-0.0227328613,
0.0209111758,
-0.1451628804,
0.2747373581,
0.227386713,
-0.0913353562,
0.6480851173,
-0.1730044931,
0.5878827572,
0.1861094832,
-0.5310037732,
-0.1901536733,
0.2092230618,
-0.317712754,
-0.0111947209,
0.1317907274,
-0.1686788052,
0.38516137,
0.0802871659,
0.1898802817,
0.2464482933,
-0.1104767546,
0.2880239189,
-0.286067307,
-0.009603221,
0.0849479958,
-0.0719700456,
0.2393063903,
-0.2704797387,
-0.042410098,
-0.1621233821,
0.2372231334,
-0.1482032388,
0.2230834067,
-0.0443858989,
0.0625272617,
0.0818429738,
-0.0392008051,
-0.121557802,
0.0788093731,
0.2157845199,
0.0433690622,
0.0418130793,
-0.1905940622,
-0.1984118223,
-0.0963725299,
0.2760662138,
-0.2941966355,
-0.3430737257,
0.3505134583,
0.3571788669,
-0.0198512487,
-0.0224459991,
-0.0754136294,
0.1201188713,
0.1530828476,
0.006208539,
0.0715009719,
-0.0785522684,
-0.1991021782,
-0.1974657476,
-0.0115249828,
0.0726841539,
0.1600965858,
0.0034866929,
-0.0784361511,
0.4022409022,
0.2385912538,
0.1009371057,
0.2098902613,
-0.1776234508,
-0.09642867,
0.0071381032,
-0.0728403702,
0.111531198,
0.0388302319,
-0.0264951289,
0.1444303989,
0.4932914972,
0.2365597785,
0.1932386458,
0.2239502072,
-0.0101359077,
0.2388229221,
-0.1069114953,
-0.0609272607,
-0.1341269165,
0.0577990599,
0.0031342935,
0.1119554192,
-0.1359224468,
-0.2041954249,
0.1788983494,
0.3149354458,
-0.0856287032,
0.1352984309,
-0.1058830693,
-0.0881041437,
-0.1929530799,
0.0814030096,
0.1926788092,
0.3943269849,
0.2004813403,
0.1856657714,
-0.0386409014,
-0.0774592385,
-0.0734680891,
0.1406772733,
0.0299727861,
0.1926372498,
0.2764999568,
0.2475029379,
-0.2172688097,
-0.3548971713,
-0.2435459197,
0.1768792272,
0.1148346588,
-0.1390990317,
0.0299772024,
-0.3175422549,
0.0918787494,
-0.0323445834,
-0.0665199757,
0.2071173936,
-0.3488471508,
0.1094207168,
0.1852682978,
-0.1694181561,
0.32201913,
-0.1171385422,
0.0898976922,
-0.0134831592,
-0.0217510909,
-0.0988096446,
-0.1474419087,
-0.1254177094,
0.1327667534,
0.166216135,
0.144976601,
0.496317178,
0.0013362616,
-0.2189738005,
-0.5480386615,
-0.2451719642,
0.0971295387,
-0.1633995473,
0.1954909265,
0.2778951824,
0.0427567884,
-0.0250688829,
-0.3409389555,
0.3002494872,
-0.4462934434,
-0.373233825,
-0.2133507133,
0.0948981792,
-0.1722037941,
-0.033569172,
-0.3764521778,
-0.3236230016,
-0.181336537,
0.3523523211,
-0.0931496844,
0.1716112345,
-0.1554573923,
-0.1054516435,
0.1455908418,
-0.0203672033,
0.1121424809,
-0.2187278122,
-0.1448163539,
-0.0194473937,
-0.1510415077,
-0.2830695212,
-0.1560444087,
-0.1409060806,
0.4374366701,
-0.1034079343,
-0.1784182936,
-0.0407507867,
-0.1612141132,
0.4367102385,
0.0242293254,
-0.0490038916,
0.3442163467,
0.2696901858,
-0.3481392264,
-0.0873825029,
-0.1605874896,
0.0496433266,
-0.2982184291,
-0.1103076637,
-0.1856853515,
0.4214312136,
0.2078024149,
0.5972418785,
0.0285145044,
-0.0613886677,
0.1324321032,
-0.437717855,
-0.0172753632,
-0.0337197892,
-0.4259905219,
0.1626301408,
-0.2667849958,
-0.10148637,
0.1350757331,
-0.1677296013,
-0.1150870547,
0.1514069736,
0.0009904057,
-0.3835221529,
-0.2099661976,
0.0377300307,
-0.1925780624,
0.0860436112,
0.0603311434,
0.0141092315,
-0.4112585783,
0.2260722518,
-0.0721925423,
-0.0218362436,
-0.1237445399,
-0.3398276865,
-0.3464435339,
0.0175715089,
-0.6085757613,
0.3544567823,
0.1318601966,
0.4851481915,
0.1367794573,
0.005299814,
0.0414654948,
-0.282548964,
0.652498126,
-0.2151976228,
0.0749008507,
0.1836812794,
-0.327713728,
-0.2910265625,
-0.043659877,
-0.3557527661,
0.4460595548,
0.3172530532,
0.4865554273,
-0.1918326914,
-0.3518020809,
0.1224314719,
-0.0199517291,
0.0334757119,
0.0118680857,
-0.2885981202,
-0.3060875535,
-0.4088720679,
0.3470339179,
0.0887134671,
0.1813628078,
-0.0699507818,
-0.1245865524,
-0.1805431098,
-0.0352945961,
0.1069819033,
0.1873822361,
-0.0616823286,
-0.1572833359,
0.1408729851,
-0.0219114292,
0.2116452157,
0.2355049551,
0.0500609763,
-0.0951047838,
-0.1150432825,
0.0940205902,
0.0208327509,
0.4114660919,
0.2416528165,
-0.1685578972,
0.3699742556,
-0.1364515126,
0.288633734,
-0.1108366922,
0.4739769697,
0.5543157458,
0.1899579018,
-0.1046060398,
-0.1071349829,
0.0384811088,
0.141500175,
-0.1566074342,
0.3062252402,
-0.2532050014,
-0.2288144678,
0.1476331651,
0.1779161692,
0.5770252943,
-0.0932504684,
0.0875759423,
0.0692826509,
-0.0339657813,
0.0664254576,
-0.3225960135,
0.1247428432,
-0.2881053984,
-0.1223679781,
0.0637506843,
-0.0489773341,
0.161958456,
0.1876240075,
-0.3256684244,
0.1354865581,
0.2791849673,
0.1854794025,
0.0244831759,
0.431650579,
0.0075262245,
-0.2300827801,
-0.0233638268,
0.2279519439,
0.1796829104,
-0.056287311,
-0.0279300585,
0.1004806459,
-0.0691840351,
-0.3762968779,
-0.1939993501,
0.0208728164,
-0.43129614,
0.3942314684,
0.023780359,
0.0594653487,
0.028134048,
0.1458711773,
0.1447969675,
0.2050361931,
0.0107789095,
0.1170282289,
0.0932478458,
0.0910387859,
0.0838551968,
-0.2934491932,
0.2623494267,
-0.1249918491,
-0.4529618919,
0.0569269881,
-0.0704902485,
-0.250433743,
0.0244050622,
0.1059230715,
0.2930746675,
-0.2247793674,
0.0423180647,
-0.0464648195,
-0.2383499891,
-0.3965627849,
0.2039444447,
-0.1147939712,
-0.1983671188,
0.2978396118,
-0.1070741564,
-0.3055644929,
-0.0280589852,
0.2836198807,
0.0299849957,
0.1521657407,
0.599619031,
-0.0773308724,
-0.115640834,
-0.431645304,
0.097960107,
0.318934828,
0.1494750381,
0.2477400005,
-0.1895445883,
-0.2431791872,
0.0721189529,
0.1885509789,
0.0378919691,
0.1453278363,
-0.2402581275,
-0.2921874821,
-0.4588644505,
0.0046023764,
-0.1703903675,
0.2114722282,
0.194389239,
0.4413281679,
-0.1352238059,
0.2366549969,
-0.4279207587,
-0.0372961797,
-0.4685041606,
0.2483721823,
-0.0478404686,
-0.0903500989,
0.0450875238,
0.0513899811,
0.3058928251,
0.2208818495,
-0.0576612838,
-0.3870590925,
-0.0921496153,
0.0931528062,
0.1092807204,
0.0143305287,
0.1976388097,
0.2131325006,
-0.2241607159,
-0.263785094,
0.1043586656,
0.1285088658,
-0.0872338042,
0.0787764564,
0.1816826761,
0.0326142944,
-0.0256914496,
-0.3361306787,
-0.0561859123,
0.0320773944,
-0.0667608008,
0.3304430842,
0.0313251875,
-0.0545086935,
0.0997805223,
0.0593812428,
0.2828299403,
0.2285242528,
0.0306526832,
-0.1030483097,
-0.3491648138,
-0.0028984547,
0.3846749067,
0.2440449595,
-0.2425766736,
-0.0939169899,
0.2190348357,
0.3167302608,
-0.2319251448,
-0.0727750361,
0.2596986294,
-0.3800119162,
0.3790823817,
0.2261142731,
0.0072068274,
0.1852704287,
0.1105448082,
0.0050975569,
0.2265834212,
-0.3973685205,
-0.0119793992,
0.0900442153,
-0.141069755,
0.1985627115,
0.4492412508,
0.0734670162,
0.2462898195,
0.3410063386,
0.0147556122,
0.5114741325,
-0.124686107,
0.0724943951,
0.0589091405,
-0.041568201,
0.331186533,
-0.0005664825,
-0.0347977243,
0.0089654792,
-0.0880122334,
0.3054795265,
-0.3336261511,
-0.0528676994,
-0.2124442607,
0.3687885404,
-0.1914832145,
-0.385640353,
-0.2380470186,
-0.0818298161,
-0.1413497776,
-0.0785160661,
-0.0190695394,
0.1973137259,
0.0451900549,
-0.0820417553,
0.0131338648,
-0.2212532759,
-0.0192150101,
-0.0783583224,
0.1308196485,
-0.2626003921,
0.2001493573,
0.1314697862,
0.1404417604,
-0.1671112776,
0.609554708,
0.5709316134,
0.3046992123,
-0.1988588423,
-0.1260325611,
-0.3344714642,
-0.1386542022,
-0.2002348304,
0.2863617539,
0.0003164746,
-0.1747993976,
0.2625157237,
0.2772243321,
-0.2658776939,
-0.1564967632,
0.4190353155,
-0.1771444827,
0.1225863919,
0.1675086319,
0.1353607476,
-0.2269661129,
0.0732963979,
0.1038702503,
-0.3389835358,
-0.0345564969,
0.2996351421,
-0.2357951105,
0.3266510069,
-0.1310751885,
0.1637846678,
0.0463033505,
0.4507513642,
0.0503230542,
0.1739300042,
-0.3142849803,
-0.1331528872,
-0.5782250166,
0.2144248188,
-0.1688656807,
-0.364803791,
-0.1931367069,
0.1571837962,
0.1029491574,
0.1065547913,
0.2409303784,
0.0778948143,
-0.1090168506,
0.2187100947,
-0.3619212806,
0.0869542658,
0.175594911,
0.0519848093,
0.204318583,
-0.4335596561,
0.209523946,
-0.0014671721,
0.2383018732,
-0.0144972736,
0.0347772017,
0.1814201176,
-0.3401247561,
0.2746292055,
0.10931281,
0.525728941,
-0.4383835196,
0.0910443813,
-0.1269073486,
0.1606311649,
-0.4419291615,
0.0574722365,
0.24140957,
0.1892360747,
0.0872845799,
-0.0311473291,
-0.13156645,
0.1188576072,
0.236255005,
-0.0922231153,
-0.013923116,
0.3029530644,
0.1060065776,
0.0748863071,
-0.1064880639,
0.3399724066,
-0.0225499161,
0.2731778026,
-0.4903125763,
-0.4749885201,
0.3061771393,
-0.5121243596,
-0.4921658933,
-0.3859890699,
0.2887361646,
-0.0939686149,
0.0935925916,
-0.3449765444,
-0.0112365931,
0.2883768976,
0.1060351357,
-0.5911827683,
0.1808962822,
0.0886602253,
-0.0450422131,
-0.0889836028,
0.3249360919,
0.0077153165,
-0.1511940062,
-0.0211810246,
-0.1020610854
] |
https://github.com/huggingface/datasets/issues/847 | multiprocessing in dataset map "can only test a child process" | hi facing the same issue here -
`AssertionError: Caught AssertionError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
stream.write(msg)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write
cb(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback
self._backend.interface.publish_output(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output
self._publish_output(o)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output
self._publish(rec)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop
data = fetcher.fetch(index)
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp>
data = [self.dataset[idx] for idx in possibly_batched_index]
File "<ipython-input-8-a4d9a08d114e>", line 20, in __getitem__
return_token_type_ids=True
File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2405, in encode_plus
**kwargs,
File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2125, in _get_padding_truncation_strategies
"Truncation was not explicitly activated but `max_length` is provided a specific value, "
File "/usr/lib/python3.6/logging/__init__.py", line 1320, in warning
self._log(WARNING, msg, args, **kwargs)
File "/usr/lib/python3.6/logging/__init__.py", line 1444, in _log
self.handle(record)
File "/usr/lib/python3.6/logging/__init__.py", line 1454, in handle
self.callHandlers(record)
File "/usr/lib/python3.6/logging/__init__.py", line 1516, in callHandlers
hdlr.handle(record)
File "/usr/lib/python3.6/logging/__init__.py", line 865, in handle
self.emit(record)
File "/usr/lib/python3.6/logging/__init__.py", line 1000, in emit
self.handleError(record)
File "/usr/lib/python3.6/logging/__init__.py", line 917, in handleError
sys.stderr.write('--- Logging error ---\n')
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write
cb(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback
self._backend.interface.publish_output(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output
self._publish_output(o)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output
self._publish(rec)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process`
| Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
``` | 293 | multiprocessing in dataset map "can only test a child process"
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
```
hi facing the same issue here -
`AssertionError: Caught AssertionError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
stream.write(msg)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write
cb(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback
self._backend.interface.publish_output(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output
self._publish_output(o)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output
self._publish(rec)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop
data = fetcher.fetch(index)
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp>
data = [self.dataset[idx] for idx in possibly_batched_index]
File "<ipython-input-8-a4d9a08d114e>", line 20, in __getitem__
return_token_type_ids=True
File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2405, in encode_plus
**kwargs,
File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2125, in _get_padding_truncation_strategies
"Truncation was not explicitly activated but `max_length` is provided a specific value, "
File "/usr/lib/python3.6/logging/__init__.py", line 1320, in warning
self._log(WARNING, msg, args, **kwargs)
File "/usr/lib/python3.6/logging/__init__.py", line 1444, in _log
self.handle(record)
File "/usr/lib/python3.6/logging/__init__.py", line 1454, in handle
self.callHandlers(record)
File "/usr/lib/python3.6/logging/__init__.py", line 1516, in callHandlers
hdlr.handle(record)
File "/usr/lib/python3.6/logging/__init__.py", line 865, in handle
self.emit(record)
File "/usr/lib/python3.6/logging/__init__.py", line 1000, in emit
self.handleError(record)
File "/usr/lib/python3.6/logging/__init__.py", line 917, in handleError
sys.stderr.write('--- Logging error ---\n')
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write
cb(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback
self._backend.interface.publish_output(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output
self._publish_output(o)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output
self._publish(rec)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process`
| [
-0.3956996202,
0.0156291872,
-0.1538685858,
-0.1850298345,
0.1417977363,
-0.057856515,
0.5068992376,
0.3400265574,
-0.0834039077,
0.168177247,
-0.018427331,
0.3370633125,
0.0475012921,
0.0918331221,
-0.2264435291,
0.102147162,
-0.0123606995,
0.0946921781,
0.1290112585,
0.0473635644,
-0.1753094494,
0.1040759757,
-0.230250746,
0.2859587073,
-0.4516965449,
-0.2857310474,
-0.0163214803,
-0.0623160712,
-0.264323622,
-0.4696432948,
-0.1491129398,
0.2851143777,
-0.1861116439,
0.6030861735,
-0.0001044559,
0.0936727226,
0.2627741098,
0.0446500182,
-0.0541399419,
-0.0300702751,
0.0951316953,
-0.0515859276,
-0.0309995934,
-0.4035979509,
-0.0044789612,
-0.2674303651,
0.1779135615,
-0.4431349039,
0.2878314257,
0.3189612925,
0.2665319145,
0.5655280352,
-0.209222883,
-0.0047211349,
-0.2012011111,
-0.0783625692,
-0.035720598,
-0.1625542045,
0.2167162448,
-0.2403010726,
-0.3567935824,
0.2491742224,
-0.0430282876,
0.1743142456,
-0.32908687,
0.0007868819,
0.2776492834,
-0.2374251038,
0.3172337413,
0.079236269,
0.1507844776,
-0.2674019635,
-0.3465929925,
-0.1820104122,
-0.2675668299,
-0.1380904913,
-0.089617148,
0.0866118297,
-0.309032023,
0.0237944331,
-0.2314291298,
0.0673613846,
-0.0069426522,
-0.097134456,
-0.2097462267,
0.6421573758,
0.0204102658,
0.2258118093,
-0.0584262647,
0.0421580486,
0.13218458,
-0.1236512288,
0.1550005972,
-0.0283192806,
-0.176759392,
-0.1339014769,
0.1732695103,
-0.3608182967,
0.1934939474,
-0.0518136472,
-0.2702676952,
0.1569521576,
0.121089831,
0.1657909006,
0.1612781733,
0.0505133383,
0.155910328,
0.2796486318,
0.2925398052,
-0.1969956309,
-0.3908066154,
-0.0121860132,
0.0276294909,
-0.2749154568,
0.1901084185,
0.1587806493,
0.1859904677,
0.0203871652,
-0.3168945909,
-0.067428723,
-0.1310212612,
-0.0011092462,
0.0109486915,
0.4655703306,
-0.0625769496,
0.2101196498,
-0.1869858801,
0.2766140401,
-0.1955184639,
-0.133565098,
-0.2674530745,
0.1599751711,
-0.1052410975,
-0.0912757292,
0.0864881724,
0.2284778059,
0.3958973885,
0.0574227497,
0.0732819214,
-0.0852146149,
0.4325416088,
-0.2196345478,
0.2467180341,
0.0557840653,
0.0686210915,
0.1359150112,
0.2674400806,
-0.3098888993,
-0.1797690094,
-0.074889496,
0.0085686827,
-0.188371107,
-0.0060650678,
0.2934331894,
0.0234701037,
0.0294384062,
-0.1553815156,
0.1325115412,
0.2363230288,
0.0417061746,
0.0084720403,
-0.1836156398,
-0.2125668228,
-0.1611632258,
0.1659644842,
0.2332041711,
-0.1246361285,
-0.0227328613,
0.0209111758,
-0.1451628804,
0.2747373581,
0.227386713,
-0.0913353562,
0.6480851173,
-0.1730044931,
0.5878827572,
0.1861094832,
-0.5310037732,
-0.1901536733,
0.2092230618,
-0.317712754,
-0.0111947209,
0.1317907274,
-0.1686788052,
0.38516137,
0.0802871659,
0.1898802817,
0.2464482933,
-0.1104767546,
0.2880239189,
-0.286067307,
-0.009603221,
0.0849479958,
-0.0719700456,
0.2393063903,
-0.2704797387,
-0.042410098,
-0.1621233821,
0.2372231334,
-0.1482032388,
0.2230834067,
-0.0443858989,
0.0625272617,
0.0818429738,
-0.0392008051,
-0.121557802,
0.0788093731,
0.2157845199,
0.0433690622,
0.0418130793,
-0.1905940622,
-0.1984118223,
-0.0963725299,
0.2760662138,
-0.2941966355,
-0.3430737257,
0.3505134583,
0.3571788669,
-0.0198512487,
-0.0224459991,
-0.0754136294,
0.1201188713,
0.1530828476,
0.006208539,
0.0715009719,
-0.0785522684,
-0.1991021782,
-0.1974657476,
-0.0115249828,
0.0726841539,
0.1600965858,
0.0034866929,
-0.0784361511,
0.4022409022,
0.2385912538,
0.1009371057,
0.2098902613,
-0.1776234508,
-0.09642867,
0.0071381032,
-0.0728403702,
0.111531198,
0.0388302319,
-0.0264951289,
0.1444303989,
0.4932914972,
0.2365597785,
0.1932386458,
0.2239502072,
-0.0101359077,
0.2388229221,
-0.1069114953,
-0.0609272607,
-0.1341269165,
0.0577990599,
0.0031342935,
0.1119554192,
-0.1359224468,
-0.2041954249,
0.1788983494,
0.3149354458,
-0.0856287032,
0.1352984309,
-0.1058830693,
-0.0881041437,
-0.1929530799,
0.0814030096,
0.1926788092,
0.3943269849,
0.2004813403,
0.1856657714,
-0.0386409014,
-0.0774592385,
-0.0734680891,
0.1406772733,
0.0299727861,
0.1926372498,
0.2764999568,
0.2475029379,
-0.2172688097,
-0.3548971713,
-0.2435459197,
0.1768792272,
0.1148346588,
-0.1390990317,
0.0299772024,
-0.3175422549,
0.0918787494,
-0.0323445834,
-0.0665199757,
0.2071173936,
-0.3488471508,
0.1094207168,
0.1852682978,
-0.1694181561,
0.32201913,
-0.1171385422,
0.0898976922,
-0.0134831592,
-0.0217510909,
-0.0988096446,
-0.1474419087,
-0.1254177094,
0.1327667534,
0.166216135,
0.144976601,
0.496317178,
0.0013362616,
-0.2189738005,
-0.5480386615,
-0.2451719642,
0.0971295387,
-0.1633995473,
0.1954909265,
0.2778951824,
0.0427567884,
-0.0250688829,
-0.3409389555,
0.3002494872,
-0.4462934434,
-0.373233825,
-0.2133507133,
0.0948981792,
-0.1722037941,
-0.033569172,
-0.3764521778,
-0.3236230016,
-0.181336537,
0.3523523211,
-0.0931496844,
0.1716112345,
-0.1554573923,
-0.1054516435,
0.1455908418,
-0.0203672033,
0.1121424809,
-0.2187278122,
-0.1448163539,
-0.0194473937,
-0.1510415077,
-0.2830695212,
-0.1560444087,
-0.1409060806,
0.4374366701,
-0.1034079343,
-0.1784182936,
-0.0407507867,
-0.1612141132,
0.4367102385,
0.0242293254,
-0.0490038916,
0.3442163467,
0.2696901858,
-0.3481392264,
-0.0873825029,
-0.1605874896,
0.0496433266,
-0.2982184291,
-0.1103076637,
-0.1856853515,
0.4214312136,
0.2078024149,
0.5972418785,
0.0285145044,
-0.0613886677,
0.1324321032,
-0.437717855,
-0.0172753632,
-0.0337197892,
-0.4259905219,
0.1626301408,
-0.2667849958,
-0.10148637,
0.1350757331,
-0.1677296013,
-0.1150870547,
0.1514069736,
0.0009904057,
-0.3835221529,
-0.2099661976,
0.0377300307,
-0.1925780624,
0.0860436112,
0.0603311434,
0.0141092315,
-0.4112585783,
0.2260722518,
-0.0721925423,
-0.0218362436,
-0.1237445399,
-0.3398276865,
-0.3464435339,
0.0175715089,
-0.6085757613,
0.3544567823,
0.1318601966,
0.4851481915,
0.1367794573,
0.005299814,
0.0414654948,
-0.282548964,
0.652498126,
-0.2151976228,
0.0749008507,
0.1836812794,
-0.327713728,
-0.2910265625,
-0.043659877,
-0.3557527661,
0.4460595548,
0.3172530532,
0.4865554273,
-0.1918326914,
-0.3518020809,
0.1224314719,
-0.0199517291,
0.0334757119,
0.0118680857,
-0.2885981202,
-0.3060875535,
-0.4088720679,
0.3470339179,
0.0887134671,
0.1813628078,
-0.0699507818,
-0.1245865524,
-0.1805431098,
-0.0352945961,
0.1069819033,
0.1873822361,
-0.0616823286,
-0.1572833359,
0.1408729851,
-0.0219114292,
0.2116452157,
0.2355049551,
0.0500609763,
-0.0951047838,
-0.1150432825,
0.0940205902,
0.0208327509,
0.4114660919,
0.2416528165,
-0.1685578972,
0.3699742556,
-0.1364515126,
0.288633734,
-0.1108366922,
0.4739769697,
0.5543157458,
0.1899579018,
-0.1046060398,
-0.1071349829,
0.0384811088,
0.141500175,
-0.1566074342,
0.3062252402,
-0.2532050014,
-0.2288144678,
0.1476331651,
0.1779161692,
0.5770252943,
-0.0932504684,
0.0875759423,
0.0692826509,
-0.0339657813,
0.0664254576,
-0.3225960135,
0.1247428432,
-0.2881053984,
-0.1223679781,
0.0637506843,
-0.0489773341,
0.161958456,
0.1876240075,
-0.3256684244,
0.1354865581,
0.2791849673,
0.1854794025,
0.0244831759,
0.431650579,
0.0075262245,
-0.2300827801,
-0.0233638268,
0.2279519439,
0.1796829104,
-0.056287311,
-0.0279300585,
0.1004806459,
-0.0691840351,
-0.3762968779,
-0.1939993501,
0.0208728164,
-0.43129614,
0.3942314684,
0.023780359,
0.0594653487,
0.028134048,
0.1458711773,
0.1447969675,
0.2050361931,
0.0107789095,
0.1170282289,
0.0932478458,
0.0910387859,
0.0838551968,
-0.2934491932,
0.2623494267,
-0.1249918491,
-0.4529618919,
0.0569269881,
-0.0704902485,
-0.250433743,
0.0244050622,
0.1059230715,
0.2930746675,
-0.2247793674,
0.0423180647,
-0.0464648195,
-0.2383499891,
-0.3965627849,
0.2039444447,
-0.1147939712,
-0.1983671188,
0.2978396118,
-0.1070741564,
-0.3055644929,
-0.0280589852,
0.2836198807,
0.0299849957,
0.1521657407,
0.599619031,
-0.0773308724,
-0.115640834,
-0.431645304,
0.097960107,
0.318934828,
0.1494750381,
0.2477400005,
-0.1895445883,
-0.2431791872,
0.0721189529,
0.1885509789,
0.0378919691,
0.1453278363,
-0.2402581275,
-0.2921874821,
-0.4588644505,
0.0046023764,
-0.1703903675,
0.2114722282,
0.194389239,
0.4413281679,
-0.1352238059,
0.2366549969,
-0.4279207587,
-0.0372961797,
-0.4685041606,
0.2483721823,
-0.0478404686,
-0.0903500989,
0.0450875238,
0.0513899811,
0.3058928251,
0.2208818495,
-0.0576612838,
-0.3870590925,
-0.0921496153,
0.0931528062,
0.1092807204,
0.0143305287,
0.1976388097,
0.2131325006,
-0.2241607159,
-0.263785094,
0.1043586656,
0.1285088658,
-0.0872338042,
0.0787764564,
0.1816826761,
0.0326142944,
-0.0256914496,
-0.3361306787,
-0.0561859123,
0.0320773944,
-0.0667608008,
0.3304430842,
0.0313251875,
-0.0545086935,
0.0997805223,
0.0593812428,
0.2828299403,
0.2285242528,
0.0306526832,
-0.1030483097,
-0.3491648138,
-0.0028984547,
0.3846749067,
0.2440449595,
-0.2425766736,
-0.0939169899,
0.2190348357,
0.3167302608,
-0.2319251448,
-0.0727750361,
0.2596986294,
-0.3800119162,
0.3790823817,
0.2261142731,
0.0072068274,
0.1852704287,
0.1105448082,
0.0050975569,
0.2265834212,
-0.3973685205,
-0.0119793992,
0.0900442153,
-0.141069755,
0.1985627115,
0.4492412508,
0.0734670162,
0.2462898195,
0.3410063386,
0.0147556122,
0.5114741325,
-0.124686107,
0.0724943951,
0.0589091405,
-0.041568201,
0.331186533,
-0.0005664825,
-0.0347977243,
0.0089654792,
-0.0880122334,
0.3054795265,
-0.3336261511,
-0.0528676994,
-0.2124442607,
0.3687885404,
-0.1914832145,
-0.385640353,
-0.2380470186,
-0.0818298161,
-0.1413497776,
-0.0785160661,
-0.0190695394,
0.1973137259,
0.0451900549,
-0.0820417553,
0.0131338648,
-0.2212532759,
-0.0192150101,
-0.0783583224,
0.1308196485,
-0.2626003921,
0.2001493573,
0.1314697862,
0.1404417604,
-0.1671112776,
0.609554708,
0.5709316134,
0.3046992123,
-0.1988588423,
-0.1260325611,
-0.3344714642,
-0.1386542022,
-0.2002348304,
0.2863617539,
0.0003164746,
-0.1747993976,
0.2625157237,
0.2772243321,
-0.2658776939,
-0.1564967632,
0.4190353155,
-0.1771444827,
0.1225863919,
0.1675086319,
0.1353607476,
-0.2269661129,
0.0732963979,
0.1038702503,
-0.3389835358,
-0.0345564969,
0.2996351421,
-0.2357951105,
0.3266510069,
-0.1310751885,
0.1637846678,
0.0463033505,
0.4507513642,
0.0503230542,
0.1739300042,
-0.3142849803,
-0.1331528872,
-0.5782250166,
0.2144248188,
-0.1688656807,
-0.364803791,
-0.1931367069,
0.1571837962,
0.1029491574,
0.1065547913,
0.2409303784,
0.0778948143,
-0.1090168506,
0.2187100947,
-0.3619212806,
0.0869542658,
0.175594911,
0.0519848093,
0.204318583,
-0.4335596561,
0.209523946,
-0.0014671721,
0.2383018732,
-0.0144972736,
0.0347772017,
0.1814201176,
-0.3401247561,
0.2746292055,
0.10931281,
0.525728941,
-0.4383835196,
0.0910443813,
-0.1269073486,
0.1606311649,
-0.4419291615,
0.0574722365,
0.24140957,
0.1892360747,
0.0872845799,
-0.0311473291,
-0.13156645,
0.1188576072,
0.236255005,
-0.0922231153,
-0.013923116,
0.3029530644,
0.1060065776,
0.0748863071,
-0.1064880639,
0.3399724066,
-0.0225499161,
0.2731778026,
-0.4903125763,
-0.4749885201,
0.3061771393,
-0.5121243596,
-0.4921658933,
-0.3859890699,
0.2887361646,
-0.0939686149,
0.0935925916,
-0.3449765444,
-0.0112365931,
0.2883768976,
0.1060351357,
-0.5911827683,
0.1808962822,
0.0886602253,
-0.0450422131,
-0.0889836028,
0.3249360919,
0.0077153165,
-0.1511940062,
-0.0211810246,
-0.1020610854
] |
https://github.com/huggingface/datasets/issues/847 | multiprocessing in dataset map "can only test a child process" | It looks like this warning :
"Truncation was not explicitly activated but max_length is provided a specific value, "
is not handled well by wandb.
The error occurs when calling the tokenizer.
Maybe you can try to specify `truncation=True` when calling the tokenizer to remove the warning ?
Otherwise I don't know why wandb would fail on a warning. Maybe one of its logging handlers have some issues with the logging of tokenizers. Maybe @n1t0 knows more about this ? | Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
``` | 80 | multiprocessing in dataset map "can only test a child process"
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
```
It looks like this warning :
"Truncation was not explicitly activated but max_length is provided a specific value, "
is not handled well by wandb.
The error occurs when calling the tokenizer.
Maybe you can try to specify `truncation=True` when calling the tokenizer to remove the warning ?
Otherwise I don't know why wandb would fail on a warning. Maybe one of its logging handlers have some issues with the logging of tokenizers. Maybe @n1t0 knows more about this ? | [
-0.3956996202,
0.0156291872,
-0.1538685858,
-0.1850298345,
0.1417977363,
-0.057856515,
0.5068992376,
0.3400265574,
-0.0834039077,
0.168177247,
-0.018427331,
0.3370633125,
0.0475012921,
0.0918331221,
-0.2264435291,
0.102147162,
-0.0123606995,
0.0946921781,
0.1290112585,
0.0473635644,
-0.1753094494,
0.1040759757,
-0.230250746,
0.2859587073,
-0.4516965449,
-0.2857310474,
-0.0163214803,
-0.0623160712,
-0.264323622,
-0.4696432948,
-0.1491129398,
0.2851143777,
-0.1861116439,
0.6030861735,
-0.0001044559,
0.0936727226,
0.2627741098,
0.0446500182,
-0.0541399419,
-0.0300702751,
0.0951316953,
-0.0515859276,
-0.0309995934,
-0.4035979509,
-0.0044789612,
-0.2674303651,
0.1779135615,
-0.4431349039,
0.2878314257,
0.3189612925,
0.2665319145,
0.5655280352,
-0.209222883,
-0.0047211349,
-0.2012011111,
-0.0783625692,
-0.035720598,
-0.1625542045,
0.2167162448,
-0.2403010726,
-0.3567935824,
0.2491742224,
-0.0430282876,
0.1743142456,
-0.32908687,
0.0007868819,
0.2776492834,
-0.2374251038,
0.3172337413,
0.079236269,
0.1507844776,
-0.2674019635,
-0.3465929925,
-0.1820104122,
-0.2675668299,
-0.1380904913,
-0.089617148,
0.0866118297,
-0.309032023,
0.0237944331,
-0.2314291298,
0.0673613846,
-0.0069426522,
-0.097134456,
-0.2097462267,
0.6421573758,
0.0204102658,
0.2258118093,
-0.0584262647,
0.0421580486,
0.13218458,
-0.1236512288,
0.1550005972,
-0.0283192806,
-0.176759392,
-0.1339014769,
0.1732695103,
-0.3608182967,
0.1934939474,
-0.0518136472,
-0.2702676952,
0.1569521576,
0.121089831,
0.1657909006,
0.1612781733,
0.0505133383,
0.155910328,
0.2796486318,
0.2925398052,
-0.1969956309,
-0.3908066154,
-0.0121860132,
0.0276294909,
-0.2749154568,
0.1901084185,
0.1587806493,
0.1859904677,
0.0203871652,
-0.3168945909,
-0.067428723,
-0.1310212612,
-0.0011092462,
0.0109486915,
0.4655703306,
-0.0625769496,
0.2101196498,
-0.1869858801,
0.2766140401,
-0.1955184639,
-0.133565098,
-0.2674530745,
0.1599751711,
-0.1052410975,
-0.0912757292,
0.0864881724,
0.2284778059,
0.3958973885,
0.0574227497,
0.0732819214,
-0.0852146149,
0.4325416088,
-0.2196345478,
0.2467180341,
0.0557840653,
0.0686210915,
0.1359150112,
0.2674400806,
-0.3098888993,
-0.1797690094,
-0.074889496,
0.0085686827,
-0.188371107,
-0.0060650678,
0.2934331894,
0.0234701037,
0.0294384062,
-0.1553815156,
0.1325115412,
0.2363230288,
0.0417061746,
0.0084720403,
-0.1836156398,
-0.2125668228,
-0.1611632258,
0.1659644842,
0.2332041711,
-0.1246361285,
-0.0227328613,
0.0209111758,
-0.1451628804,
0.2747373581,
0.227386713,
-0.0913353562,
0.6480851173,
-0.1730044931,
0.5878827572,
0.1861094832,
-0.5310037732,
-0.1901536733,
0.2092230618,
-0.317712754,
-0.0111947209,
0.1317907274,
-0.1686788052,
0.38516137,
0.0802871659,
0.1898802817,
0.2464482933,
-0.1104767546,
0.2880239189,
-0.286067307,
-0.009603221,
0.0849479958,
-0.0719700456,
0.2393063903,
-0.2704797387,
-0.042410098,
-0.1621233821,
0.2372231334,
-0.1482032388,
0.2230834067,
-0.0443858989,
0.0625272617,
0.0818429738,
-0.0392008051,
-0.121557802,
0.0788093731,
0.2157845199,
0.0433690622,
0.0418130793,
-0.1905940622,
-0.1984118223,
-0.0963725299,
0.2760662138,
-0.2941966355,
-0.3430737257,
0.3505134583,
0.3571788669,
-0.0198512487,
-0.0224459991,
-0.0754136294,
0.1201188713,
0.1530828476,
0.006208539,
0.0715009719,
-0.0785522684,
-0.1991021782,
-0.1974657476,
-0.0115249828,
0.0726841539,
0.1600965858,
0.0034866929,
-0.0784361511,
0.4022409022,
0.2385912538,
0.1009371057,
0.2098902613,
-0.1776234508,
-0.09642867,
0.0071381032,
-0.0728403702,
0.111531198,
0.0388302319,
-0.0264951289,
0.1444303989,
0.4932914972,
0.2365597785,
0.1932386458,
0.2239502072,
-0.0101359077,
0.2388229221,
-0.1069114953,
-0.0609272607,
-0.1341269165,
0.0577990599,
0.0031342935,
0.1119554192,
-0.1359224468,
-0.2041954249,
0.1788983494,
0.3149354458,
-0.0856287032,
0.1352984309,
-0.1058830693,
-0.0881041437,
-0.1929530799,
0.0814030096,
0.1926788092,
0.3943269849,
0.2004813403,
0.1856657714,
-0.0386409014,
-0.0774592385,
-0.0734680891,
0.1406772733,
0.0299727861,
0.1926372498,
0.2764999568,
0.2475029379,
-0.2172688097,
-0.3548971713,
-0.2435459197,
0.1768792272,
0.1148346588,
-0.1390990317,
0.0299772024,
-0.3175422549,
0.0918787494,
-0.0323445834,
-0.0665199757,
0.2071173936,
-0.3488471508,
0.1094207168,
0.1852682978,
-0.1694181561,
0.32201913,
-0.1171385422,
0.0898976922,
-0.0134831592,
-0.0217510909,
-0.0988096446,
-0.1474419087,
-0.1254177094,
0.1327667534,
0.166216135,
0.144976601,
0.496317178,
0.0013362616,
-0.2189738005,
-0.5480386615,
-0.2451719642,
0.0971295387,
-0.1633995473,
0.1954909265,
0.2778951824,
0.0427567884,
-0.0250688829,
-0.3409389555,
0.3002494872,
-0.4462934434,
-0.373233825,
-0.2133507133,
0.0948981792,
-0.1722037941,
-0.033569172,
-0.3764521778,
-0.3236230016,
-0.181336537,
0.3523523211,
-0.0931496844,
0.1716112345,
-0.1554573923,
-0.1054516435,
0.1455908418,
-0.0203672033,
0.1121424809,
-0.2187278122,
-0.1448163539,
-0.0194473937,
-0.1510415077,
-0.2830695212,
-0.1560444087,
-0.1409060806,
0.4374366701,
-0.1034079343,
-0.1784182936,
-0.0407507867,
-0.1612141132,
0.4367102385,
0.0242293254,
-0.0490038916,
0.3442163467,
0.2696901858,
-0.3481392264,
-0.0873825029,
-0.1605874896,
0.0496433266,
-0.2982184291,
-0.1103076637,
-0.1856853515,
0.4214312136,
0.2078024149,
0.5972418785,
0.0285145044,
-0.0613886677,
0.1324321032,
-0.437717855,
-0.0172753632,
-0.0337197892,
-0.4259905219,
0.1626301408,
-0.2667849958,
-0.10148637,
0.1350757331,
-0.1677296013,
-0.1150870547,
0.1514069736,
0.0009904057,
-0.3835221529,
-0.2099661976,
0.0377300307,
-0.1925780624,
0.0860436112,
0.0603311434,
0.0141092315,
-0.4112585783,
0.2260722518,
-0.0721925423,
-0.0218362436,
-0.1237445399,
-0.3398276865,
-0.3464435339,
0.0175715089,
-0.6085757613,
0.3544567823,
0.1318601966,
0.4851481915,
0.1367794573,
0.005299814,
0.0414654948,
-0.282548964,
0.652498126,
-0.2151976228,
0.0749008507,
0.1836812794,
-0.327713728,
-0.2910265625,
-0.043659877,
-0.3557527661,
0.4460595548,
0.3172530532,
0.4865554273,
-0.1918326914,
-0.3518020809,
0.1224314719,
-0.0199517291,
0.0334757119,
0.0118680857,
-0.2885981202,
-0.3060875535,
-0.4088720679,
0.3470339179,
0.0887134671,
0.1813628078,
-0.0699507818,
-0.1245865524,
-0.1805431098,
-0.0352945961,
0.1069819033,
0.1873822361,
-0.0616823286,
-0.1572833359,
0.1408729851,
-0.0219114292,
0.2116452157,
0.2355049551,
0.0500609763,
-0.0951047838,
-0.1150432825,
0.0940205902,
0.0208327509,
0.4114660919,
0.2416528165,
-0.1685578972,
0.3699742556,
-0.1364515126,
0.288633734,
-0.1108366922,
0.4739769697,
0.5543157458,
0.1899579018,
-0.1046060398,
-0.1071349829,
0.0384811088,
0.141500175,
-0.1566074342,
0.3062252402,
-0.2532050014,
-0.2288144678,
0.1476331651,
0.1779161692,
0.5770252943,
-0.0932504684,
0.0875759423,
0.0692826509,
-0.0339657813,
0.0664254576,
-0.3225960135,
0.1247428432,
-0.2881053984,
-0.1223679781,
0.0637506843,
-0.0489773341,
0.161958456,
0.1876240075,
-0.3256684244,
0.1354865581,
0.2791849673,
0.1854794025,
0.0244831759,
0.431650579,
0.0075262245,
-0.2300827801,
-0.0233638268,
0.2279519439,
0.1796829104,
-0.056287311,
-0.0279300585,
0.1004806459,
-0.0691840351,
-0.3762968779,
-0.1939993501,
0.0208728164,
-0.43129614,
0.3942314684,
0.023780359,
0.0594653487,
0.028134048,
0.1458711773,
0.1447969675,
0.2050361931,
0.0107789095,
0.1170282289,
0.0932478458,
0.0910387859,
0.0838551968,
-0.2934491932,
0.2623494267,
-0.1249918491,
-0.4529618919,
0.0569269881,
-0.0704902485,
-0.250433743,
0.0244050622,
0.1059230715,
0.2930746675,
-0.2247793674,
0.0423180647,
-0.0464648195,
-0.2383499891,
-0.3965627849,
0.2039444447,
-0.1147939712,
-0.1983671188,
0.2978396118,
-0.1070741564,
-0.3055644929,
-0.0280589852,
0.2836198807,
0.0299849957,
0.1521657407,
0.599619031,
-0.0773308724,
-0.115640834,
-0.431645304,
0.097960107,
0.318934828,
0.1494750381,
0.2477400005,
-0.1895445883,
-0.2431791872,
0.0721189529,
0.1885509789,
0.0378919691,
0.1453278363,
-0.2402581275,
-0.2921874821,
-0.4588644505,
0.0046023764,
-0.1703903675,
0.2114722282,
0.194389239,
0.4413281679,
-0.1352238059,
0.2366549969,
-0.4279207587,
-0.0372961797,
-0.4685041606,
0.2483721823,
-0.0478404686,
-0.0903500989,
0.0450875238,
0.0513899811,
0.3058928251,
0.2208818495,
-0.0576612838,
-0.3870590925,
-0.0921496153,
0.0931528062,
0.1092807204,
0.0143305287,
0.1976388097,
0.2131325006,
-0.2241607159,
-0.263785094,
0.1043586656,
0.1285088658,
-0.0872338042,
0.0787764564,
0.1816826761,
0.0326142944,
-0.0256914496,
-0.3361306787,
-0.0561859123,
0.0320773944,
-0.0667608008,
0.3304430842,
0.0313251875,
-0.0545086935,
0.0997805223,
0.0593812428,
0.2828299403,
0.2285242528,
0.0306526832,
-0.1030483097,
-0.3491648138,
-0.0028984547,
0.3846749067,
0.2440449595,
-0.2425766736,
-0.0939169899,
0.2190348357,
0.3167302608,
-0.2319251448,
-0.0727750361,
0.2596986294,
-0.3800119162,
0.3790823817,
0.2261142731,
0.0072068274,
0.1852704287,
0.1105448082,
0.0050975569,
0.2265834212,
-0.3973685205,
-0.0119793992,
0.0900442153,
-0.141069755,
0.1985627115,
0.4492412508,
0.0734670162,
0.2462898195,
0.3410063386,
0.0147556122,
0.5114741325,
-0.124686107,
0.0724943951,
0.0589091405,
-0.041568201,
0.331186533,
-0.0005664825,
-0.0347977243,
0.0089654792,
-0.0880122334,
0.3054795265,
-0.3336261511,
-0.0528676994,
-0.2124442607,
0.3687885404,
-0.1914832145,
-0.385640353,
-0.2380470186,
-0.0818298161,
-0.1413497776,
-0.0785160661,
-0.0190695394,
0.1973137259,
0.0451900549,
-0.0820417553,
0.0131338648,
-0.2212532759,
-0.0192150101,
-0.0783583224,
0.1308196485,
-0.2626003921,
0.2001493573,
0.1314697862,
0.1404417604,
-0.1671112776,
0.609554708,
0.5709316134,
0.3046992123,
-0.1988588423,
-0.1260325611,
-0.3344714642,
-0.1386542022,
-0.2002348304,
0.2863617539,
0.0003164746,
-0.1747993976,
0.2625157237,
0.2772243321,
-0.2658776939,
-0.1564967632,
0.4190353155,
-0.1771444827,
0.1225863919,
0.1675086319,
0.1353607476,
-0.2269661129,
0.0732963979,
0.1038702503,
-0.3389835358,
-0.0345564969,
0.2996351421,
-0.2357951105,
0.3266510069,
-0.1310751885,
0.1637846678,
0.0463033505,
0.4507513642,
0.0503230542,
0.1739300042,
-0.3142849803,
-0.1331528872,
-0.5782250166,
0.2144248188,
-0.1688656807,
-0.364803791,
-0.1931367069,
0.1571837962,
0.1029491574,
0.1065547913,
0.2409303784,
0.0778948143,
-0.1090168506,
0.2187100947,
-0.3619212806,
0.0869542658,
0.175594911,
0.0519848093,
0.204318583,
-0.4335596561,
0.209523946,
-0.0014671721,
0.2383018732,
-0.0144972736,
0.0347772017,
0.1814201176,
-0.3401247561,
0.2746292055,
0.10931281,
0.525728941,
-0.4383835196,
0.0910443813,
-0.1269073486,
0.1606311649,
-0.4419291615,
0.0574722365,
0.24140957,
0.1892360747,
0.0872845799,
-0.0311473291,
-0.13156645,
0.1188576072,
0.236255005,
-0.0922231153,
-0.013923116,
0.3029530644,
0.1060065776,
0.0748863071,
-0.1064880639,
0.3399724066,
-0.0225499161,
0.2731778026,
-0.4903125763,
-0.4749885201,
0.3061771393,
-0.5121243596,
-0.4921658933,
-0.3859890699,
0.2887361646,
-0.0939686149,
0.0935925916,
-0.3449765444,
-0.0112365931,
0.2883768976,
0.1060351357,
-0.5911827683,
0.1808962822,
0.0886602253,
-0.0450422131,
-0.0889836028,
0.3249360919,
0.0077153165,
-0.1511940062,
-0.0211810246,
-0.1020610854
] |
https://github.com/huggingface/datasets/issues/847 | multiprocessing in dataset map "can only test a child process" | I'm having a similar issue but when I try to do multiprocessing with the `DataLoader`
Code to reproduce:
```
from datasets import load_dataset
book_corpus = load_dataset('bookcorpus', 'plain_text', cache_dir='/home/ad/Desktop/bookcorpus', split='train[:1%]')
book_corpus = book_corpus.map(encode, batched=True, num_proc=20, load_from_cache_file=True, batch_size=5000)
book_corpus.set_format(type='torch', columns=['text', "input_ids", "attention_mask", "token_type_ids"])
from transformers import DataCollatorForWholeWordMask
from transformers import Trainer, TrainingArguments
data_collator = DataCollatorForWholeWordMask(
tokenizer=tokenizer, mlm=True, mlm_probability=0.15)
training_args = TrainingArguments(
output_dir="./mobile_linear_att_8L_128_128_03layerdrop_shared",
overwrite_output_dir=True,
num_train_epochs=1,
per_device_train_batch_size=64,
save_steps=50,
save_total_limit=2,
logging_first_step=True,
warmup_steps=100,
logging_steps=50,
gradient_accumulation_steps=1,
fp16=True,
**dataloader_num_workers=10**,
)
trainer = Trainer(
model=model,
args=training_args,
data_collator=data_collator,
train_dataset=book_corpus,
tokenizer=tokenizer)
trainer.train()
```
```
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<timed eval> in <module>
~/anaconda3/envs/tfm/lib/python3.6/site-packages/transformers/trainer.py in train(self, model_path, trial)
869 self.control = self.callback_handler.on_epoch_begin(self.args, self.state, self.control)
870
--> 871 for step, inputs in enumerate(epoch_iterator):
872
873 # Skip past any already trained steps if resuming training
~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in __next__(self)
433 if self._sampler_iter is None:
434 self._reset()
--> 435 data = self._next_data()
436 self._num_yielded += 1
437 if self._dataset_kind == _DatasetKind.Iterable and \
~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in _next_data(self)
1083 else:
1084 del self._task_info[idx]
-> 1085 return self._process_data(data)
1086
1087 def _try_put_index(self):
~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in _process_data(self, data)
1109 self._try_put_index()
1110 if isinstance(data, ExceptionWrapper):
-> 1111 data.reraise()
1112 return data
1113
~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/_utils.py in reraise(self)
426 # have message field
427 raise self.exc_type(message=msg)
--> 428 raise self.exc_type(msg)
429
430
AssertionError: Caught AssertionError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop
data = fetcher.fetch(index)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp>
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1087, in __getitem__
format_kwargs=self._format_kwargs,
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1074, in _getitem
format_kwargs=format_kwargs,
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 890, in _convert_outputs
v = map_nested(command, v, **map_nested_kwargs)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
return function(data_struct)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 851, in command
return torch.tensor(x, **format_kwargs)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/warnings.py", line 101, in _showwarnmsg
_showwarnmsg_impl(msg)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/warnings.py", line 30, in _showwarnmsg_impl
file.write(text)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 100, in new_write
cb(name, data)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 153, in publish_output
self._publish_output(o)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output
self._publish(rec)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 456, in _publish
if self._process and not self._process.is_alive():
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
```
As a workaround I have commented line 456 and 457 in `/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py` | Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
``` | 383 | multiprocessing in dataset map "can only test a child process"
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
```
I'm having a similar issue but when I try to do multiprocessing with the `DataLoader`
Code to reproduce:
```
from datasets import load_dataset
book_corpus = load_dataset('bookcorpus', 'plain_text', cache_dir='/home/ad/Desktop/bookcorpus', split='train[:1%]')
book_corpus = book_corpus.map(encode, batched=True, num_proc=20, load_from_cache_file=True, batch_size=5000)
book_corpus.set_format(type='torch', columns=['text', "input_ids", "attention_mask", "token_type_ids"])
from transformers import DataCollatorForWholeWordMask
from transformers import Trainer, TrainingArguments
data_collator = DataCollatorForWholeWordMask(
tokenizer=tokenizer, mlm=True, mlm_probability=0.15)
training_args = TrainingArguments(
output_dir="./mobile_linear_att_8L_128_128_03layerdrop_shared",
overwrite_output_dir=True,
num_train_epochs=1,
per_device_train_batch_size=64,
save_steps=50,
save_total_limit=2,
logging_first_step=True,
warmup_steps=100,
logging_steps=50,
gradient_accumulation_steps=1,
fp16=True,
**dataloader_num_workers=10**,
)
trainer = Trainer(
model=model,
args=training_args,
data_collator=data_collator,
train_dataset=book_corpus,
tokenizer=tokenizer)
trainer.train()
```
```
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<timed eval> in <module>
~/anaconda3/envs/tfm/lib/python3.6/site-packages/transformers/trainer.py in train(self, model_path, trial)
869 self.control = self.callback_handler.on_epoch_begin(self.args, self.state, self.control)
870
--> 871 for step, inputs in enumerate(epoch_iterator):
872
873 # Skip past any already trained steps if resuming training
~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in __next__(self)
433 if self._sampler_iter is None:
434 self._reset()
--> 435 data = self._next_data()
436 self._num_yielded += 1
437 if self._dataset_kind == _DatasetKind.Iterable and \
~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in _next_data(self)
1083 else:
1084 del self._task_info[idx]
-> 1085 return self._process_data(data)
1086
1087 def _try_put_index(self):
~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in _process_data(self, data)
1109 self._try_put_index()
1110 if isinstance(data, ExceptionWrapper):
-> 1111 data.reraise()
1112 return data
1113
~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/_utils.py in reraise(self)
426 # have message field
427 raise self.exc_type(message=msg)
--> 428 raise self.exc_type(msg)
429
430
AssertionError: Caught AssertionError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop
data = fetcher.fetch(index)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp>
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1087, in __getitem__
format_kwargs=self._format_kwargs,
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1074, in _getitem
format_kwargs=format_kwargs,
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 890, in _convert_outputs
v = map_nested(command, v, **map_nested_kwargs)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
return function(data_struct)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 851, in command
return torch.tensor(x, **format_kwargs)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/warnings.py", line 101, in _showwarnmsg
_showwarnmsg_impl(msg)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/warnings.py", line 30, in _showwarnmsg_impl
file.write(text)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 100, in new_write
cb(name, data)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 153, in publish_output
self._publish_output(o)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output
self._publish(rec)
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 456, in _publish
if self._process and not self._process.is_alive():
File "/home/ad/anaconda3/envs/tfm/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
```
As a workaround I have commented line 456 and 457 in `/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py` | [
-0.3956996202,
0.0156291872,
-0.1538685858,
-0.1850298345,
0.1417977363,
-0.057856515,
0.5068992376,
0.3400265574,
-0.0834039077,
0.168177247,
-0.018427331,
0.3370633125,
0.0475012921,
0.0918331221,
-0.2264435291,
0.102147162,
-0.0123606995,
0.0946921781,
0.1290112585,
0.0473635644,
-0.1753094494,
0.1040759757,
-0.230250746,
0.2859587073,
-0.4516965449,
-0.2857310474,
-0.0163214803,
-0.0623160712,
-0.264323622,
-0.4696432948,
-0.1491129398,
0.2851143777,
-0.1861116439,
0.6030861735,
-0.0001044559,
0.0936727226,
0.2627741098,
0.0446500182,
-0.0541399419,
-0.0300702751,
0.0951316953,
-0.0515859276,
-0.0309995934,
-0.4035979509,
-0.0044789612,
-0.2674303651,
0.1779135615,
-0.4431349039,
0.2878314257,
0.3189612925,
0.2665319145,
0.5655280352,
-0.209222883,
-0.0047211349,
-0.2012011111,
-0.0783625692,
-0.035720598,
-0.1625542045,
0.2167162448,
-0.2403010726,
-0.3567935824,
0.2491742224,
-0.0430282876,
0.1743142456,
-0.32908687,
0.0007868819,
0.2776492834,
-0.2374251038,
0.3172337413,
0.079236269,
0.1507844776,
-0.2674019635,
-0.3465929925,
-0.1820104122,
-0.2675668299,
-0.1380904913,
-0.089617148,
0.0866118297,
-0.309032023,
0.0237944331,
-0.2314291298,
0.0673613846,
-0.0069426522,
-0.097134456,
-0.2097462267,
0.6421573758,
0.0204102658,
0.2258118093,
-0.0584262647,
0.0421580486,
0.13218458,
-0.1236512288,
0.1550005972,
-0.0283192806,
-0.176759392,
-0.1339014769,
0.1732695103,
-0.3608182967,
0.1934939474,
-0.0518136472,
-0.2702676952,
0.1569521576,
0.121089831,
0.1657909006,
0.1612781733,
0.0505133383,
0.155910328,
0.2796486318,
0.2925398052,
-0.1969956309,
-0.3908066154,
-0.0121860132,
0.0276294909,
-0.2749154568,
0.1901084185,
0.1587806493,
0.1859904677,
0.0203871652,
-0.3168945909,
-0.067428723,
-0.1310212612,
-0.0011092462,
0.0109486915,
0.4655703306,
-0.0625769496,
0.2101196498,
-0.1869858801,
0.2766140401,
-0.1955184639,
-0.133565098,
-0.2674530745,
0.1599751711,
-0.1052410975,
-0.0912757292,
0.0864881724,
0.2284778059,
0.3958973885,
0.0574227497,
0.0732819214,
-0.0852146149,
0.4325416088,
-0.2196345478,
0.2467180341,
0.0557840653,
0.0686210915,
0.1359150112,
0.2674400806,
-0.3098888993,
-0.1797690094,
-0.074889496,
0.0085686827,
-0.188371107,
-0.0060650678,
0.2934331894,
0.0234701037,
0.0294384062,
-0.1553815156,
0.1325115412,
0.2363230288,
0.0417061746,
0.0084720403,
-0.1836156398,
-0.2125668228,
-0.1611632258,
0.1659644842,
0.2332041711,
-0.1246361285,
-0.0227328613,
0.0209111758,
-0.1451628804,
0.2747373581,
0.227386713,
-0.0913353562,
0.6480851173,
-0.1730044931,
0.5878827572,
0.1861094832,
-0.5310037732,
-0.1901536733,
0.2092230618,
-0.317712754,
-0.0111947209,
0.1317907274,
-0.1686788052,
0.38516137,
0.0802871659,
0.1898802817,
0.2464482933,
-0.1104767546,
0.2880239189,
-0.286067307,
-0.009603221,
0.0849479958,
-0.0719700456,
0.2393063903,
-0.2704797387,
-0.042410098,
-0.1621233821,
0.2372231334,
-0.1482032388,
0.2230834067,
-0.0443858989,
0.0625272617,
0.0818429738,
-0.0392008051,
-0.121557802,
0.0788093731,
0.2157845199,
0.0433690622,
0.0418130793,
-0.1905940622,
-0.1984118223,
-0.0963725299,
0.2760662138,
-0.2941966355,
-0.3430737257,
0.3505134583,
0.3571788669,
-0.0198512487,
-0.0224459991,
-0.0754136294,
0.1201188713,
0.1530828476,
0.006208539,
0.0715009719,
-0.0785522684,
-0.1991021782,
-0.1974657476,
-0.0115249828,
0.0726841539,
0.1600965858,
0.0034866929,
-0.0784361511,
0.4022409022,
0.2385912538,
0.1009371057,
0.2098902613,
-0.1776234508,
-0.09642867,
0.0071381032,
-0.0728403702,
0.111531198,
0.0388302319,
-0.0264951289,
0.1444303989,
0.4932914972,
0.2365597785,
0.1932386458,
0.2239502072,
-0.0101359077,
0.2388229221,
-0.1069114953,
-0.0609272607,
-0.1341269165,
0.0577990599,
0.0031342935,
0.1119554192,
-0.1359224468,
-0.2041954249,
0.1788983494,
0.3149354458,
-0.0856287032,
0.1352984309,
-0.1058830693,
-0.0881041437,
-0.1929530799,
0.0814030096,
0.1926788092,
0.3943269849,
0.2004813403,
0.1856657714,
-0.0386409014,
-0.0774592385,
-0.0734680891,
0.1406772733,
0.0299727861,
0.1926372498,
0.2764999568,
0.2475029379,
-0.2172688097,
-0.3548971713,
-0.2435459197,
0.1768792272,
0.1148346588,
-0.1390990317,
0.0299772024,
-0.3175422549,
0.0918787494,
-0.0323445834,
-0.0665199757,
0.2071173936,
-0.3488471508,
0.1094207168,
0.1852682978,
-0.1694181561,
0.32201913,
-0.1171385422,
0.0898976922,
-0.0134831592,
-0.0217510909,
-0.0988096446,
-0.1474419087,
-0.1254177094,
0.1327667534,
0.166216135,
0.144976601,
0.496317178,
0.0013362616,
-0.2189738005,
-0.5480386615,
-0.2451719642,
0.0971295387,
-0.1633995473,
0.1954909265,
0.2778951824,
0.0427567884,
-0.0250688829,
-0.3409389555,
0.3002494872,
-0.4462934434,
-0.373233825,
-0.2133507133,
0.0948981792,
-0.1722037941,
-0.033569172,
-0.3764521778,
-0.3236230016,
-0.181336537,
0.3523523211,
-0.0931496844,
0.1716112345,
-0.1554573923,
-0.1054516435,
0.1455908418,
-0.0203672033,
0.1121424809,
-0.2187278122,
-0.1448163539,
-0.0194473937,
-0.1510415077,
-0.2830695212,
-0.1560444087,
-0.1409060806,
0.4374366701,
-0.1034079343,
-0.1784182936,
-0.0407507867,
-0.1612141132,
0.4367102385,
0.0242293254,
-0.0490038916,
0.3442163467,
0.2696901858,
-0.3481392264,
-0.0873825029,
-0.1605874896,
0.0496433266,
-0.2982184291,
-0.1103076637,
-0.1856853515,
0.4214312136,
0.2078024149,
0.5972418785,
0.0285145044,
-0.0613886677,
0.1324321032,
-0.437717855,
-0.0172753632,
-0.0337197892,
-0.4259905219,
0.1626301408,
-0.2667849958,
-0.10148637,
0.1350757331,
-0.1677296013,
-0.1150870547,
0.1514069736,
0.0009904057,
-0.3835221529,
-0.2099661976,
0.0377300307,
-0.1925780624,
0.0860436112,
0.0603311434,
0.0141092315,
-0.4112585783,
0.2260722518,
-0.0721925423,
-0.0218362436,
-0.1237445399,
-0.3398276865,
-0.3464435339,
0.0175715089,
-0.6085757613,
0.3544567823,
0.1318601966,
0.4851481915,
0.1367794573,
0.005299814,
0.0414654948,
-0.282548964,
0.652498126,
-0.2151976228,
0.0749008507,
0.1836812794,
-0.327713728,
-0.2910265625,
-0.043659877,
-0.3557527661,
0.4460595548,
0.3172530532,
0.4865554273,
-0.1918326914,
-0.3518020809,
0.1224314719,
-0.0199517291,
0.0334757119,
0.0118680857,
-0.2885981202,
-0.3060875535,
-0.4088720679,
0.3470339179,
0.0887134671,
0.1813628078,
-0.0699507818,
-0.1245865524,
-0.1805431098,
-0.0352945961,
0.1069819033,
0.1873822361,
-0.0616823286,
-0.1572833359,
0.1408729851,
-0.0219114292,
0.2116452157,
0.2355049551,
0.0500609763,
-0.0951047838,
-0.1150432825,
0.0940205902,
0.0208327509,
0.4114660919,
0.2416528165,
-0.1685578972,
0.3699742556,
-0.1364515126,
0.288633734,
-0.1108366922,
0.4739769697,
0.5543157458,
0.1899579018,
-0.1046060398,
-0.1071349829,
0.0384811088,
0.141500175,
-0.1566074342,
0.3062252402,
-0.2532050014,
-0.2288144678,
0.1476331651,
0.1779161692,
0.5770252943,
-0.0932504684,
0.0875759423,
0.0692826509,
-0.0339657813,
0.0664254576,
-0.3225960135,
0.1247428432,
-0.2881053984,
-0.1223679781,
0.0637506843,
-0.0489773341,
0.161958456,
0.1876240075,
-0.3256684244,
0.1354865581,
0.2791849673,
0.1854794025,
0.0244831759,
0.431650579,
0.0075262245,
-0.2300827801,
-0.0233638268,
0.2279519439,
0.1796829104,
-0.056287311,
-0.0279300585,
0.1004806459,
-0.0691840351,
-0.3762968779,
-0.1939993501,
0.0208728164,
-0.43129614,
0.3942314684,
0.023780359,
0.0594653487,
0.028134048,
0.1458711773,
0.1447969675,
0.2050361931,
0.0107789095,
0.1170282289,
0.0932478458,
0.0910387859,
0.0838551968,
-0.2934491932,
0.2623494267,
-0.1249918491,
-0.4529618919,
0.0569269881,
-0.0704902485,
-0.250433743,
0.0244050622,
0.1059230715,
0.2930746675,
-0.2247793674,
0.0423180647,
-0.0464648195,
-0.2383499891,
-0.3965627849,
0.2039444447,
-0.1147939712,
-0.1983671188,
0.2978396118,
-0.1070741564,
-0.3055644929,
-0.0280589852,
0.2836198807,
0.0299849957,
0.1521657407,
0.599619031,
-0.0773308724,
-0.115640834,
-0.431645304,
0.097960107,
0.318934828,
0.1494750381,
0.2477400005,
-0.1895445883,
-0.2431791872,
0.0721189529,
0.1885509789,
0.0378919691,
0.1453278363,
-0.2402581275,
-0.2921874821,
-0.4588644505,
0.0046023764,
-0.1703903675,
0.2114722282,
0.194389239,
0.4413281679,
-0.1352238059,
0.2366549969,
-0.4279207587,
-0.0372961797,
-0.4685041606,
0.2483721823,
-0.0478404686,
-0.0903500989,
0.0450875238,
0.0513899811,
0.3058928251,
0.2208818495,
-0.0576612838,
-0.3870590925,
-0.0921496153,
0.0931528062,
0.1092807204,
0.0143305287,
0.1976388097,
0.2131325006,
-0.2241607159,
-0.263785094,
0.1043586656,
0.1285088658,
-0.0872338042,
0.0787764564,
0.1816826761,
0.0326142944,
-0.0256914496,
-0.3361306787,
-0.0561859123,
0.0320773944,
-0.0667608008,
0.3304430842,
0.0313251875,
-0.0545086935,
0.0997805223,
0.0593812428,
0.2828299403,
0.2285242528,
0.0306526832,
-0.1030483097,
-0.3491648138,
-0.0028984547,
0.3846749067,
0.2440449595,
-0.2425766736,
-0.0939169899,
0.2190348357,
0.3167302608,
-0.2319251448,
-0.0727750361,
0.2596986294,
-0.3800119162,
0.3790823817,
0.2261142731,
0.0072068274,
0.1852704287,
0.1105448082,
0.0050975569,
0.2265834212,
-0.3973685205,
-0.0119793992,
0.0900442153,
-0.141069755,
0.1985627115,
0.4492412508,
0.0734670162,
0.2462898195,
0.3410063386,
0.0147556122,
0.5114741325,
-0.124686107,
0.0724943951,
0.0589091405,
-0.041568201,
0.331186533,
-0.0005664825,
-0.0347977243,
0.0089654792,
-0.0880122334,
0.3054795265,
-0.3336261511,
-0.0528676994,
-0.2124442607,
0.3687885404,
-0.1914832145,
-0.385640353,
-0.2380470186,
-0.0818298161,
-0.1413497776,
-0.0785160661,
-0.0190695394,
0.1973137259,
0.0451900549,
-0.0820417553,
0.0131338648,
-0.2212532759,
-0.0192150101,
-0.0783583224,
0.1308196485,
-0.2626003921,
0.2001493573,
0.1314697862,
0.1404417604,
-0.1671112776,
0.609554708,
0.5709316134,
0.3046992123,
-0.1988588423,
-0.1260325611,
-0.3344714642,
-0.1386542022,
-0.2002348304,
0.2863617539,
0.0003164746,
-0.1747993976,
0.2625157237,
0.2772243321,
-0.2658776939,
-0.1564967632,
0.4190353155,
-0.1771444827,
0.1225863919,
0.1675086319,
0.1353607476,
-0.2269661129,
0.0732963979,
0.1038702503,
-0.3389835358,
-0.0345564969,
0.2996351421,
-0.2357951105,
0.3266510069,
-0.1310751885,
0.1637846678,
0.0463033505,
0.4507513642,
0.0503230542,
0.1739300042,
-0.3142849803,
-0.1331528872,
-0.5782250166,
0.2144248188,
-0.1688656807,
-0.364803791,
-0.1931367069,
0.1571837962,
0.1029491574,
0.1065547913,
0.2409303784,
0.0778948143,
-0.1090168506,
0.2187100947,
-0.3619212806,
0.0869542658,
0.175594911,
0.0519848093,
0.204318583,
-0.4335596561,
0.209523946,
-0.0014671721,
0.2383018732,
-0.0144972736,
0.0347772017,
0.1814201176,
-0.3401247561,
0.2746292055,
0.10931281,
0.525728941,
-0.4383835196,
0.0910443813,
-0.1269073486,
0.1606311649,
-0.4419291615,
0.0574722365,
0.24140957,
0.1892360747,
0.0872845799,
-0.0311473291,
-0.13156645,
0.1188576072,
0.236255005,
-0.0922231153,
-0.013923116,
0.3029530644,
0.1060065776,
0.0748863071,
-0.1064880639,
0.3399724066,
-0.0225499161,
0.2731778026,
-0.4903125763,
-0.4749885201,
0.3061771393,
-0.5121243596,
-0.4921658933,
-0.3859890699,
0.2887361646,
-0.0939686149,
0.0935925916,
-0.3449765444,
-0.0112365931,
0.2883768976,
0.1060351357,
-0.5911827683,
0.1808962822,
0.0886602253,
-0.0450422131,
-0.0889836028,
0.3249360919,
0.0077153165,
-0.1511940062,
-0.0211810246,
-0.1020610854
] |
https://github.com/huggingface/datasets/issues/847 | multiprocessing in dataset map "can only test a child process" | Isn't it more the pytorch warning on the use of non-writable memory for tensor that trigger this here @lhoestq? (since it seems to be a warning triggered in `torch.tensor()` | Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
``` | 29 | multiprocessing in dataset map "can only test a child process"
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
```
Isn't it more the pytorch warning on the use of non-writable memory for tensor that trigger this here @lhoestq? (since it seems to be a warning triggered in `torch.tensor()` | [
-0.3956996202,
0.0156291872,
-0.1538685858,
-0.1850298345,
0.1417977363,
-0.057856515,
0.5068992376,
0.3400265574,
-0.0834039077,
0.168177247,
-0.018427331,
0.3370633125,
0.0475012921,
0.0918331221,
-0.2264435291,
0.102147162,
-0.0123606995,
0.0946921781,
0.1290112585,
0.0473635644,
-0.1753094494,
0.1040759757,
-0.230250746,
0.2859587073,
-0.4516965449,
-0.2857310474,
-0.0163214803,
-0.0623160712,
-0.264323622,
-0.4696432948,
-0.1491129398,
0.2851143777,
-0.1861116439,
0.6030861735,
-0.0001044559,
0.0936727226,
0.2627741098,
0.0446500182,
-0.0541399419,
-0.0300702751,
0.0951316953,
-0.0515859276,
-0.0309995934,
-0.4035979509,
-0.0044789612,
-0.2674303651,
0.1779135615,
-0.4431349039,
0.2878314257,
0.3189612925,
0.2665319145,
0.5655280352,
-0.209222883,
-0.0047211349,
-0.2012011111,
-0.0783625692,
-0.035720598,
-0.1625542045,
0.2167162448,
-0.2403010726,
-0.3567935824,
0.2491742224,
-0.0430282876,
0.1743142456,
-0.32908687,
0.0007868819,
0.2776492834,
-0.2374251038,
0.3172337413,
0.079236269,
0.1507844776,
-0.2674019635,
-0.3465929925,
-0.1820104122,
-0.2675668299,
-0.1380904913,
-0.089617148,
0.0866118297,
-0.309032023,
0.0237944331,
-0.2314291298,
0.0673613846,
-0.0069426522,
-0.097134456,
-0.2097462267,
0.6421573758,
0.0204102658,
0.2258118093,
-0.0584262647,
0.0421580486,
0.13218458,
-0.1236512288,
0.1550005972,
-0.0283192806,
-0.176759392,
-0.1339014769,
0.1732695103,
-0.3608182967,
0.1934939474,
-0.0518136472,
-0.2702676952,
0.1569521576,
0.121089831,
0.1657909006,
0.1612781733,
0.0505133383,
0.155910328,
0.2796486318,
0.2925398052,
-0.1969956309,
-0.3908066154,
-0.0121860132,
0.0276294909,
-0.2749154568,
0.1901084185,
0.1587806493,
0.1859904677,
0.0203871652,
-0.3168945909,
-0.067428723,
-0.1310212612,
-0.0011092462,
0.0109486915,
0.4655703306,
-0.0625769496,
0.2101196498,
-0.1869858801,
0.2766140401,
-0.1955184639,
-0.133565098,
-0.2674530745,
0.1599751711,
-0.1052410975,
-0.0912757292,
0.0864881724,
0.2284778059,
0.3958973885,
0.0574227497,
0.0732819214,
-0.0852146149,
0.4325416088,
-0.2196345478,
0.2467180341,
0.0557840653,
0.0686210915,
0.1359150112,
0.2674400806,
-0.3098888993,
-0.1797690094,
-0.074889496,
0.0085686827,
-0.188371107,
-0.0060650678,
0.2934331894,
0.0234701037,
0.0294384062,
-0.1553815156,
0.1325115412,
0.2363230288,
0.0417061746,
0.0084720403,
-0.1836156398,
-0.2125668228,
-0.1611632258,
0.1659644842,
0.2332041711,
-0.1246361285,
-0.0227328613,
0.0209111758,
-0.1451628804,
0.2747373581,
0.227386713,
-0.0913353562,
0.6480851173,
-0.1730044931,
0.5878827572,
0.1861094832,
-0.5310037732,
-0.1901536733,
0.2092230618,
-0.317712754,
-0.0111947209,
0.1317907274,
-0.1686788052,
0.38516137,
0.0802871659,
0.1898802817,
0.2464482933,
-0.1104767546,
0.2880239189,
-0.286067307,
-0.009603221,
0.0849479958,
-0.0719700456,
0.2393063903,
-0.2704797387,
-0.042410098,
-0.1621233821,
0.2372231334,
-0.1482032388,
0.2230834067,
-0.0443858989,
0.0625272617,
0.0818429738,
-0.0392008051,
-0.121557802,
0.0788093731,
0.2157845199,
0.0433690622,
0.0418130793,
-0.1905940622,
-0.1984118223,
-0.0963725299,
0.2760662138,
-0.2941966355,
-0.3430737257,
0.3505134583,
0.3571788669,
-0.0198512487,
-0.0224459991,
-0.0754136294,
0.1201188713,
0.1530828476,
0.006208539,
0.0715009719,
-0.0785522684,
-0.1991021782,
-0.1974657476,
-0.0115249828,
0.0726841539,
0.1600965858,
0.0034866929,
-0.0784361511,
0.4022409022,
0.2385912538,
0.1009371057,
0.2098902613,
-0.1776234508,
-0.09642867,
0.0071381032,
-0.0728403702,
0.111531198,
0.0388302319,
-0.0264951289,
0.1444303989,
0.4932914972,
0.2365597785,
0.1932386458,
0.2239502072,
-0.0101359077,
0.2388229221,
-0.1069114953,
-0.0609272607,
-0.1341269165,
0.0577990599,
0.0031342935,
0.1119554192,
-0.1359224468,
-0.2041954249,
0.1788983494,
0.3149354458,
-0.0856287032,
0.1352984309,
-0.1058830693,
-0.0881041437,
-0.1929530799,
0.0814030096,
0.1926788092,
0.3943269849,
0.2004813403,
0.1856657714,
-0.0386409014,
-0.0774592385,
-0.0734680891,
0.1406772733,
0.0299727861,
0.1926372498,
0.2764999568,
0.2475029379,
-0.2172688097,
-0.3548971713,
-0.2435459197,
0.1768792272,
0.1148346588,
-0.1390990317,
0.0299772024,
-0.3175422549,
0.0918787494,
-0.0323445834,
-0.0665199757,
0.2071173936,
-0.3488471508,
0.1094207168,
0.1852682978,
-0.1694181561,
0.32201913,
-0.1171385422,
0.0898976922,
-0.0134831592,
-0.0217510909,
-0.0988096446,
-0.1474419087,
-0.1254177094,
0.1327667534,
0.166216135,
0.144976601,
0.496317178,
0.0013362616,
-0.2189738005,
-0.5480386615,
-0.2451719642,
0.0971295387,
-0.1633995473,
0.1954909265,
0.2778951824,
0.0427567884,
-0.0250688829,
-0.3409389555,
0.3002494872,
-0.4462934434,
-0.373233825,
-0.2133507133,
0.0948981792,
-0.1722037941,
-0.033569172,
-0.3764521778,
-0.3236230016,
-0.181336537,
0.3523523211,
-0.0931496844,
0.1716112345,
-0.1554573923,
-0.1054516435,
0.1455908418,
-0.0203672033,
0.1121424809,
-0.2187278122,
-0.1448163539,
-0.0194473937,
-0.1510415077,
-0.2830695212,
-0.1560444087,
-0.1409060806,
0.4374366701,
-0.1034079343,
-0.1784182936,
-0.0407507867,
-0.1612141132,
0.4367102385,
0.0242293254,
-0.0490038916,
0.3442163467,
0.2696901858,
-0.3481392264,
-0.0873825029,
-0.1605874896,
0.0496433266,
-0.2982184291,
-0.1103076637,
-0.1856853515,
0.4214312136,
0.2078024149,
0.5972418785,
0.0285145044,
-0.0613886677,
0.1324321032,
-0.437717855,
-0.0172753632,
-0.0337197892,
-0.4259905219,
0.1626301408,
-0.2667849958,
-0.10148637,
0.1350757331,
-0.1677296013,
-0.1150870547,
0.1514069736,
0.0009904057,
-0.3835221529,
-0.2099661976,
0.0377300307,
-0.1925780624,
0.0860436112,
0.0603311434,
0.0141092315,
-0.4112585783,
0.2260722518,
-0.0721925423,
-0.0218362436,
-0.1237445399,
-0.3398276865,
-0.3464435339,
0.0175715089,
-0.6085757613,
0.3544567823,
0.1318601966,
0.4851481915,
0.1367794573,
0.005299814,
0.0414654948,
-0.282548964,
0.652498126,
-0.2151976228,
0.0749008507,
0.1836812794,
-0.327713728,
-0.2910265625,
-0.043659877,
-0.3557527661,
0.4460595548,
0.3172530532,
0.4865554273,
-0.1918326914,
-0.3518020809,
0.1224314719,
-0.0199517291,
0.0334757119,
0.0118680857,
-0.2885981202,
-0.3060875535,
-0.4088720679,
0.3470339179,
0.0887134671,
0.1813628078,
-0.0699507818,
-0.1245865524,
-0.1805431098,
-0.0352945961,
0.1069819033,
0.1873822361,
-0.0616823286,
-0.1572833359,
0.1408729851,
-0.0219114292,
0.2116452157,
0.2355049551,
0.0500609763,
-0.0951047838,
-0.1150432825,
0.0940205902,
0.0208327509,
0.4114660919,
0.2416528165,
-0.1685578972,
0.3699742556,
-0.1364515126,
0.288633734,
-0.1108366922,
0.4739769697,
0.5543157458,
0.1899579018,
-0.1046060398,
-0.1071349829,
0.0384811088,
0.141500175,
-0.1566074342,
0.3062252402,
-0.2532050014,
-0.2288144678,
0.1476331651,
0.1779161692,
0.5770252943,
-0.0932504684,
0.0875759423,
0.0692826509,
-0.0339657813,
0.0664254576,
-0.3225960135,
0.1247428432,
-0.2881053984,
-0.1223679781,
0.0637506843,
-0.0489773341,
0.161958456,
0.1876240075,
-0.3256684244,
0.1354865581,
0.2791849673,
0.1854794025,
0.0244831759,
0.431650579,
0.0075262245,
-0.2300827801,
-0.0233638268,
0.2279519439,
0.1796829104,
-0.056287311,
-0.0279300585,
0.1004806459,
-0.0691840351,
-0.3762968779,
-0.1939993501,
0.0208728164,
-0.43129614,
0.3942314684,
0.023780359,
0.0594653487,
0.028134048,
0.1458711773,
0.1447969675,
0.2050361931,
0.0107789095,
0.1170282289,
0.0932478458,
0.0910387859,
0.0838551968,
-0.2934491932,
0.2623494267,
-0.1249918491,
-0.4529618919,
0.0569269881,
-0.0704902485,
-0.250433743,
0.0244050622,
0.1059230715,
0.2930746675,
-0.2247793674,
0.0423180647,
-0.0464648195,
-0.2383499891,
-0.3965627849,
0.2039444447,
-0.1147939712,
-0.1983671188,
0.2978396118,
-0.1070741564,
-0.3055644929,
-0.0280589852,
0.2836198807,
0.0299849957,
0.1521657407,
0.599619031,
-0.0773308724,
-0.115640834,
-0.431645304,
0.097960107,
0.318934828,
0.1494750381,
0.2477400005,
-0.1895445883,
-0.2431791872,
0.0721189529,
0.1885509789,
0.0378919691,
0.1453278363,
-0.2402581275,
-0.2921874821,
-0.4588644505,
0.0046023764,
-0.1703903675,
0.2114722282,
0.194389239,
0.4413281679,
-0.1352238059,
0.2366549969,
-0.4279207587,
-0.0372961797,
-0.4685041606,
0.2483721823,
-0.0478404686,
-0.0903500989,
0.0450875238,
0.0513899811,
0.3058928251,
0.2208818495,
-0.0576612838,
-0.3870590925,
-0.0921496153,
0.0931528062,
0.1092807204,
0.0143305287,
0.1976388097,
0.2131325006,
-0.2241607159,
-0.263785094,
0.1043586656,
0.1285088658,
-0.0872338042,
0.0787764564,
0.1816826761,
0.0326142944,
-0.0256914496,
-0.3361306787,
-0.0561859123,
0.0320773944,
-0.0667608008,
0.3304430842,
0.0313251875,
-0.0545086935,
0.0997805223,
0.0593812428,
0.2828299403,
0.2285242528,
0.0306526832,
-0.1030483097,
-0.3491648138,
-0.0028984547,
0.3846749067,
0.2440449595,
-0.2425766736,
-0.0939169899,
0.2190348357,
0.3167302608,
-0.2319251448,
-0.0727750361,
0.2596986294,
-0.3800119162,
0.3790823817,
0.2261142731,
0.0072068274,
0.1852704287,
0.1105448082,
0.0050975569,
0.2265834212,
-0.3973685205,
-0.0119793992,
0.0900442153,
-0.141069755,
0.1985627115,
0.4492412508,
0.0734670162,
0.2462898195,
0.3410063386,
0.0147556122,
0.5114741325,
-0.124686107,
0.0724943951,
0.0589091405,
-0.041568201,
0.331186533,
-0.0005664825,
-0.0347977243,
0.0089654792,
-0.0880122334,
0.3054795265,
-0.3336261511,
-0.0528676994,
-0.2124442607,
0.3687885404,
-0.1914832145,
-0.385640353,
-0.2380470186,
-0.0818298161,
-0.1413497776,
-0.0785160661,
-0.0190695394,
0.1973137259,
0.0451900549,
-0.0820417553,
0.0131338648,
-0.2212532759,
-0.0192150101,
-0.0783583224,
0.1308196485,
-0.2626003921,
0.2001493573,
0.1314697862,
0.1404417604,
-0.1671112776,
0.609554708,
0.5709316134,
0.3046992123,
-0.1988588423,
-0.1260325611,
-0.3344714642,
-0.1386542022,
-0.2002348304,
0.2863617539,
0.0003164746,
-0.1747993976,
0.2625157237,
0.2772243321,
-0.2658776939,
-0.1564967632,
0.4190353155,
-0.1771444827,
0.1225863919,
0.1675086319,
0.1353607476,
-0.2269661129,
0.0732963979,
0.1038702503,
-0.3389835358,
-0.0345564969,
0.2996351421,
-0.2357951105,
0.3266510069,
-0.1310751885,
0.1637846678,
0.0463033505,
0.4507513642,
0.0503230542,
0.1739300042,
-0.3142849803,
-0.1331528872,
-0.5782250166,
0.2144248188,
-0.1688656807,
-0.364803791,
-0.1931367069,
0.1571837962,
0.1029491574,
0.1065547913,
0.2409303784,
0.0778948143,
-0.1090168506,
0.2187100947,
-0.3619212806,
0.0869542658,
0.175594911,
0.0519848093,
0.204318583,
-0.4335596561,
0.209523946,
-0.0014671721,
0.2383018732,
-0.0144972736,
0.0347772017,
0.1814201176,
-0.3401247561,
0.2746292055,
0.10931281,
0.525728941,
-0.4383835196,
0.0910443813,
-0.1269073486,
0.1606311649,
-0.4419291615,
0.0574722365,
0.24140957,
0.1892360747,
0.0872845799,
-0.0311473291,
-0.13156645,
0.1188576072,
0.236255005,
-0.0922231153,
-0.013923116,
0.3029530644,
0.1060065776,
0.0748863071,
-0.1064880639,
0.3399724066,
-0.0225499161,
0.2731778026,
-0.4903125763,
-0.4749885201,
0.3061771393,
-0.5121243596,
-0.4921658933,
-0.3859890699,
0.2887361646,
-0.0939686149,
0.0935925916,
-0.3449765444,
-0.0112365931,
0.2883768976,
0.1060351357,
-0.5911827683,
0.1808962822,
0.0886602253,
-0.0450422131,
-0.0889836028,
0.3249360919,
0.0077153165,
-0.1511940062,
-0.0211810246,
-0.1020610854
] |
https://github.com/huggingface/datasets/issues/847 | multiprocessing in dataset map "can only test a child process" | Yep this time this is a warning from pytorch that causes wandb to not work properly.
Could this by a wandb issue ? | Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
``` | 23 | multiprocessing in dataset map "can only test a child process"
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
```
Yep this time this is a warning from pytorch that causes wandb to not work properly.
Could this by a wandb issue ? | [
-0.3956996202,
0.0156291872,
-0.1538685858,
-0.1850298345,
0.1417977363,
-0.057856515,
0.5068992376,
0.3400265574,
-0.0834039077,
0.168177247,
-0.018427331,
0.3370633125,
0.0475012921,
0.0918331221,
-0.2264435291,
0.102147162,
-0.0123606995,
0.0946921781,
0.1290112585,
0.0473635644,
-0.1753094494,
0.1040759757,
-0.230250746,
0.2859587073,
-0.4516965449,
-0.2857310474,
-0.0163214803,
-0.0623160712,
-0.264323622,
-0.4696432948,
-0.1491129398,
0.2851143777,
-0.1861116439,
0.6030861735,
-0.0001044559,
0.0936727226,
0.2627741098,
0.0446500182,
-0.0541399419,
-0.0300702751,
0.0951316953,
-0.0515859276,
-0.0309995934,
-0.4035979509,
-0.0044789612,
-0.2674303651,
0.1779135615,
-0.4431349039,
0.2878314257,
0.3189612925,
0.2665319145,
0.5655280352,
-0.209222883,
-0.0047211349,
-0.2012011111,
-0.0783625692,
-0.035720598,
-0.1625542045,
0.2167162448,
-0.2403010726,
-0.3567935824,
0.2491742224,
-0.0430282876,
0.1743142456,
-0.32908687,
0.0007868819,
0.2776492834,
-0.2374251038,
0.3172337413,
0.079236269,
0.1507844776,
-0.2674019635,
-0.3465929925,
-0.1820104122,
-0.2675668299,
-0.1380904913,
-0.089617148,
0.0866118297,
-0.309032023,
0.0237944331,
-0.2314291298,
0.0673613846,
-0.0069426522,
-0.097134456,
-0.2097462267,
0.6421573758,
0.0204102658,
0.2258118093,
-0.0584262647,
0.0421580486,
0.13218458,
-0.1236512288,
0.1550005972,
-0.0283192806,
-0.176759392,
-0.1339014769,
0.1732695103,
-0.3608182967,
0.1934939474,
-0.0518136472,
-0.2702676952,
0.1569521576,
0.121089831,
0.1657909006,
0.1612781733,
0.0505133383,
0.155910328,
0.2796486318,
0.2925398052,
-0.1969956309,
-0.3908066154,
-0.0121860132,
0.0276294909,
-0.2749154568,
0.1901084185,
0.1587806493,
0.1859904677,
0.0203871652,
-0.3168945909,
-0.067428723,
-0.1310212612,
-0.0011092462,
0.0109486915,
0.4655703306,
-0.0625769496,
0.2101196498,
-0.1869858801,
0.2766140401,
-0.1955184639,
-0.133565098,
-0.2674530745,
0.1599751711,
-0.1052410975,
-0.0912757292,
0.0864881724,
0.2284778059,
0.3958973885,
0.0574227497,
0.0732819214,
-0.0852146149,
0.4325416088,
-0.2196345478,
0.2467180341,
0.0557840653,
0.0686210915,
0.1359150112,
0.2674400806,
-0.3098888993,
-0.1797690094,
-0.074889496,
0.0085686827,
-0.188371107,
-0.0060650678,
0.2934331894,
0.0234701037,
0.0294384062,
-0.1553815156,
0.1325115412,
0.2363230288,
0.0417061746,
0.0084720403,
-0.1836156398,
-0.2125668228,
-0.1611632258,
0.1659644842,
0.2332041711,
-0.1246361285,
-0.0227328613,
0.0209111758,
-0.1451628804,
0.2747373581,
0.227386713,
-0.0913353562,
0.6480851173,
-0.1730044931,
0.5878827572,
0.1861094832,
-0.5310037732,
-0.1901536733,
0.2092230618,
-0.317712754,
-0.0111947209,
0.1317907274,
-0.1686788052,
0.38516137,
0.0802871659,
0.1898802817,
0.2464482933,
-0.1104767546,
0.2880239189,
-0.286067307,
-0.009603221,
0.0849479958,
-0.0719700456,
0.2393063903,
-0.2704797387,
-0.042410098,
-0.1621233821,
0.2372231334,
-0.1482032388,
0.2230834067,
-0.0443858989,
0.0625272617,
0.0818429738,
-0.0392008051,
-0.121557802,
0.0788093731,
0.2157845199,
0.0433690622,
0.0418130793,
-0.1905940622,
-0.1984118223,
-0.0963725299,
0.2760662138,
-0.2941966355,
-0.3430737257,
0.3505134583,
0.3571788669,
-0.0198512487,
-0.0224459991,
-0.0754136294,
0.1201188713,
0.1530828476,
0.006208539,
0.0715009719,
-0.0785522684,
-0.1991021782,
-0.1974657476,
-0.0115249828,
0.0726841539,
0.1600965858,
0.0034866929,
-0.0784361511,
0.4022409022,
0.2385912538,
0.1009371057,
0.2098902613,
-0.1776234508,
-0.09642867,
0.0071381032,
-0.0728403702,
0.111531198,
0.0388302319,
-0.0264951289,
0.1444303989,
0.4932914972,
0.2365597785,
0.1932386458,
0.2239502072,
-0.0101359077,
0.2388229221,
-0.1069114953,
-0.0609272607,
-0.1341269165,
0.0577990599,
0.0031342935,
0.1119554192,
-0.1359224468,
-0.2041954249,
0.1788983494,
0.3149354458,
-0.0856287032,
0.1352984309,
-0.1058830693,
-0.0881041437,
-0.1929530799,
0.0814030096,
0.1926788092,
0.3943269849,
0.2004813403,
0.1856657714,
-0.0386409014,
-0.0774592385,
-0.0734680891,
0.1406772733,
0.0299727861,
0.1926372498,
0.2764999568,
0.2475029379,
-0.2172688097,
-0.3548971713,
-0.2435459197,
0.1768792272,
0.1148346588,
-0.1390990317,
0.0299772024,
-0.3175422549,
0.0918787494,
-0.0323445834,
-0.0665199757,
0.2071173936,
-0.3488471508,
0.1094207168,
0.1852682978,
-0.1694181561,
0.32201913,
-0.1171385422,
0.0898976922,
-0.0134831592,
-0.0217510909,
-0.0988096446,
-0.1474419087,
-0.1254177094,
0.1327667534,
0.166216135,
0.144976601,
0.496317178,
0.0013362616,
-0.2189738005,
-0.5480386615,
-0.2451719642,
0.0971295387,
-0.1633995473,
0.1954909265,
0.2778951824,
0.0427567884,
-0.0250688829,
-0.3409389555,
0.3002494872,
-0.4462934434,
-0.373233825,
-0.2133507133,
0.0948981792,
-0.1722037941,
-0.033569172,
-0.3764521778,
-0.3236230016,
-0.181336537,
0.3523523211,
-0.0931496844,
0.1716112345,
-0.1554573923,
-0.1054516435,
0.1455908418,
-0.0203672033,
0.1121424809,
-0.2187278122,
-0.1448163539,
-0.0194473937,
-0.1510415077,
-0.2830695212,
-0.1560444087,
-0.1409060806,
0.4374366701,
-0.1034079343,
-0.1784182936,
-0.0407507867,
-0.1612141132,
0.4367102385,
0.0242293254,
-0.0490038916,
0.3442163467,
0.2696901858,
-0.3481392264,
-0.0873825029,
-0.1605874896,
0.0496433266,
-0.2982184291,
-0.1103076637,
-0.1856853515,
0.4214312136,
0.2078024149,
0.5972418785,
0.0285145044,
-0.0613886677,
0.1324321032,
-0.437717855,
-0.0172753632,
-0.0337197892,
-0.4259905219,
0.1626301408,
-0.2667849958,
-0.10148637,
0.1350757331,
-0.1677296013,
-0.1150870547,
0.1514069736,
0.0009904057,
-0.3835221529,
-0.2099661976,
0.0377300307,
-0.1925780624,
0.0860436112,
0.0603311434,
0.0141092315,
-0.4112585783,
0.2260722518,
-0.0721925423,
-0.0218362436,
-0.1237445399,
-0.3398276865,
-0.3464435339,
0.0175715089,
-0.6085757613,
0.3544567823,
0.1318601966,
0.4851481915,
0.1367794573,
0.005299814,
0.0414654948,
-0.282548964,
0.652498126,
-0.2151976228,
0.0749008507,
0.1836812794,
-0.327713728,
-0.2910265625,
-0.043659877,
-0.3557527661,
0.4460595548,
0.3172530532,
0.4865554273,
-0.1918326914,
-0.3518020809,
0.1224314719,
-0.0199517291,
0.0334757119,
0.0118680857,
-0.2885981202,
-0.3060875535,
-0.4088720679,
0.3470339179,
0.0887134671,
0.1813628078,
-0.0699507818,
-0.1245865524,
-0.1805431098,
-0.0352945961,
0.1069819033,
0.1873822361,
-0.0616823286,
-0.1572833359,
0.1408729851,
-0.0219114292,
0.2116452157,
0.2355049551,
0.0500609763,
-0.0951047838,
-0.1150432825,
0.0940205902,
0.0208327509,
0.4114660919,
0.2416528165,
-0.1685578972,
0.3699742556,
-0.1364515126,
0.288633734,
-0.1108366922,
0.4739769697,
0.5543157458,
0.1899579018,
-0.1046060398,
-0.1071349829,
0.0384811088,
0.141500175,
-0.1566074342,
0.3062252402,
-0.2532050014,
-0.2288144678,
0.1476331651,
0.1779161692,
0.5770252943,
-0.0932504684,
0.0875759423,
0.0692826509,
-0.0339657813,
0.0664254576,
-0.3225960135,
0.1247428432,
-0.2881053984,
-0.1223679781,
0.0637506843,
-0.0489773341,
0.161958456,
0.1876240075,
-0.3256684244,
0.1354865581,
0.2791849673,
0.1854794025,
0.0244831759,
0.431650579,
0.0075262245,
-0.2300827801,
-0.0233638268,
0.2279519439,
0.1796829104,
-0.056287311,
-0.0279300585,
0.1004806459,
-0.0691840351,
-0.3762968779,
-0.1939993501,
0.0208728164,
-0.43129614,
0.3942314684,
0.023780359,
0.0594653487,
0.028134048,
0.1458711773,
0.1447969675,
0.2050361931,
0.0107789095,
0.1170282289,
0.0932478458,
0.0910387859,
0.0838551968,
-0.2934491932,
0.2623494267,
-0.1249918491,
-0.4529618919,
0.0569269881,
-0.0704902485,
-0.250433743,
0.0244050622,
0.1059230715,
0.2930746675,
-0.2247793674,
0.0423180647,
-0.0464648195,
-0.2383499891,
-0.3965627849,
0.2039444447,
-0.1147939712,
-0.1983671188,
0.2978396118,
-0.1070741564,
-0.3055644929,
-0.0280589852,
0.2836198807,
0.0299849957,
0.1521657407,
0.599619031,
-0.0773308724,
-0.115640834,
-0.431645304,
0.097960107,
0.318934828,
0.1494750381,
0.2477400005,
-0.1895445883,
-0.2431791872,
0.0721189529,
0.1885509789,
0.0378919691,
0.1453278363,
-0.2402581275,
-0.2921874821,
-0.4588644505,
0.0046023764,
-0.1703903675,
0.2114722282,
0.194389239,
0.4413281679,
-0.1352238059,
0.2366549969,
-0.4279207587,
-0.0372961797,
-0.4685041606,
0.2483721823,
-0.0478404686,
-0.0903500989,
0.0450875238,
0.0513899811,
0.3058928251,
0.2208818495,
-0.0576612838,
-0.3870590925,
-0.0921496153,
0.0931528062,
0.1092807204,
0.0143305287,
0.1976388097,
0.2131325006,
-0.2241607159,
-0.263785094,
0.1043586656,
0.1285088658,
-0.0872338042,
0.0787764564,
0.1816826761,
0.0326142944,
-0.0256914496,
-0.3361306787,
-0.0561859123,
0.0320773944,
-0.0667608008,
0.3304430842,
0.0313251875,
-0.0545086935,
0.0997805223,
0.0593812428,
0.2828299403,
0.2285242528,
0.0306526832,
-0.1030483097,
-0.3491648138,
-0.0028984547,
0.3846749067,
0.2440449595,
-0.2425766736,
-0.0939169899,
0.2190348357,
0.3167302608,
-0.2319251448,
-0.0727750361,
0.2596986294,
-0.3800119162,
0.3790823817,
0.2261142731,
0.0072068274,
0.1852704287,
0.1105448082,
0.0050975569,
0.2265834212,
-0.3973685205,
-0.0119793992,
0.0900442153,
-0.141069755,
0.1985627115,
0.4492412508,
0.0734670162,
0.2462898195,
0.3410063386,
0.0147556122,
0.5114741325,
-0.124686107,
0.0724943951,
0.0589091405,
-0.041568201,
0.331186533,
-0.0005664825,
-0.0347977243,
0.0089654792,
-0.0880122334,
0.3054795265,
-0.3336261511,
-0.0528676994,
-0.2124442607,
0.3687885404,
-0.1914832145,
-0.385640353,
-0.2380470186,
-0.0818298161,
-0.1413497776,
-0.0785160661,
-0.0190695394,
0.1973137259,
0.0451900549,
-0.0820417553,
0.0131338648,
-0.2212532759,
-0.0192150101,
-0.0783583224,
0.1308196485,
-0.2626003921,
0.2001493573,
0.1314697862,
0.1404417604,
-0.1671112776,
0.609554708,
0.5709316134,
0.3046992123,
-0.1988588423,
-0.1260325611,
-0.3344714642,
-0.1386542022,
-0.2002348304,
0.2863617539,
0.0003164746,
-0.1747993976,
0.2625157237,
0.2772243321,
-0.2658776939,
-0.1564967632,
0.4190353155,
-0.1771444827,
0.1225863919,
0.1675086319,
0.1353607476,
-0.2269661129,
0.0732963979,
0.1038702503,
-0.3389835358,
-0.0345564969,
0.2996351421,
-0.2357951105,
0.3266510069,
-0.1310751885,
0.1637846678,
0.0463033505,
0.4507513642,
0.0503230542,
0.1739300042,
-0.3142849803,
-0.1331528872,
-0.5782250166,
0.2144248188,
-0.1688656807,
-0.364803791,
-0.1931367069,
0.1571837962,
0.1029491574,
0.1065547913,
0.2409303784,
0.0778948143,
-0.1090168506,
0.2187100947,
-0.3619212806,
0.0869542658,
0.175594911,
0.0519848093,
0.204318583,
-0.4335596561,
0.209523946,
-0.0014671721,
0.2383018732,
-0.0144972736,
0.0347772017,
0.1814201176,
-0.3401247561,
0.2746292055,
0.10931281,
0.525728941,
-0.4383835196,
0.0910443813,
-0.1269073486,
0.1606311649,
-0.4419291615,
0.0574722365,
0.24140957,
0.1892360747,
0.0872845799,
-0.0311473291,
-0.13156645,
0.1188576072,
0.236255005,
-0.0922231153,
-0.013923116,
0.3029530644,
0.1060065776,
0.0748863071,
-0.1064880639,
0.3399724066,
-0.0225499161,
0.2731778026,
-0.4903125763,
-0.4749885201,
0.3061771393,
-0.5121243596,
-0.4921658933,
-0.3859890699,
0.2887361646,
-0.0939686149,
0.0935925916,
-0.3449765444,
-0.0112365931,
0.2883768976,
0.1060351357,
-0.5911827683,
0.1808962822,
0.0886602253,
-0.0450422131,
-0.0889836028,
0.3249360919,
0.0077153165,
-0.1511940062,
-0.0211810246,
-0.1020610854
] |
https://github.com/huggingface/datasets/issues/847 | multiprocessing in dataset map "can only test a child process" | Hi @timothyjlaurent @gaceladri
If you're running `transformers` from `master` you can try setting the env var `WAND_DISABLE=true` (from https://github.com/huggingface/transformers/pull/9896) and try again ?
This issue might be related to https://github.com/huggingface/transformers/issues/9623 | Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
``` | 30 | multiprocessing in dataset map "can only test a child process"
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
```
Hi @timothyjlaurent @gaceladri
If you're running `transformers` from `master` you can try setting the env var `WAND_DISABLE=true` (from https://github.com/huggingface/transformers/pull/9896) and try again ?
This issue might be related to https://github.com/huggingface/transformers/issues/9623 | [
-0.3956996202,
0.0156291872,
-0.1538685858,
-0.1850298345,
0.1417977363,
-0.057856515,
0.5068992376,
0.3400265574,
-0.0834039077,
0.168177247,
-0.018427331,
0.3370633125,
0.0475012921,
0.0918331221,
-0.2264435291,
0.102147162,
-0.0123606995,
0.0946921781,
0.1290112585,
0.0473635644,
-0.1753094494,
0.1040759757,
-0.230250746,
0.2859587073,
-0.4516965449,
-0.2857310474,
-0.0163214803,
-0.0623160712,
-0.264323622,
-0.4696432948,
-0.1491129398,
0.2851143777,
-0.1861116439,
0.6030861735,
-0.0001044559,
0.0936727226,
0.2627741098,
0.0446500182,
-0.0541399419,
-0.0300702751,
0.0951316953,
-0.0515859276,
-0.0309995934,
-0.4035979509,
-0.0044789612,
-0.2674303651,
0.1779135615,
-0.4431349039,
0.2878314257,
0.3189612925,
0.2665319145,
0.5655280352,
-0.209222883,
-0.0047211349,
-0.2012011111,
-0.0783625692,
-0.035720598,
-0.1625542045,
0.2167162448,
-0.2403010726,
-0.3567935824,
0.2491742224,
-0.0430282876,
0.1743142456,
-0.32908687,
0.0007868819,
0.2776492834,
-0.2374251038,
0.3172337413,
0.079236269,
0.1507844776,
-0.2674019635,
-0.3465929925,
-0.1820104122,
-0.2675668299,
-0.1380904913,
-0.089617148,
0.0866118297,
-0.309032023,
0.0237944331,
-0.2314291298,
0.0673613846,
-0.0069426522,
-0.097134456,
-0.2097462267,
0.6421573758,
0.0204102658,
0.2258118093,
-0.0584262647,
0.0421580486,
0.13218458,
-0.1236512288,
0.1550005972,
-0.0283192806,
-0.176759392,
-0.1339014769,
0.1732695103,
-0.3608182967,
0.1934939474,
-0.0518136472,
-0.2702676952,
0.1569521576,
0.121089831,
0.1657909006,
0.1612781733,
0.0505133383,
0.155910328,
0.2796486318,
0.2925398052,
-0.1969956309,
-0.3908066154,
-0.0121860132,
0.0276294909,
-0.2749154568,
0.1901084185,
0.1587806493,
0.1859904677,
0.0203871652,
-0.3168945909,
-0.067428723,
-0.1310212612,
-0.0011092462,
0.0109486915,
0.4655703306,
-0.0625769496,
0.2101196498,
-0.1869858801,
0.2766140401,
-0.1955184639,
-0.133565098,
-0.2674530745,
0.1599751711,
-0.1052410975,
-0.0912757292,
0.0864881724,
0.2284778059,
0.3958973885,
0.0574227497,
0.0732819214,
-0.0852146149,
0.4325416088,
-0.2196345478,
0.2467180341,
0.0557840653,
0.0686210915,
0.1359150112,
0.2674400806,
-0.3098888993,
-0.1797690094,
-0.074889496,
0.0085686827,
-0.188371107,
-0.0060650678,
0.2934331894,
0.0234701037,
0.0294384062,
-0.1553815156,
0.1325115412,
0.2363230288,
0.0417061746,
0.0084720403,
-0.1836156398,
-0.2125668228,
-0.1611632258,
0.1659644842,
0.2332041711,
-0.1246361285,
-0.0227328613,
0.0209111758,
-0.1451628804,
0.2747373581,
0.227386713,
-0.0913353562,
0.6480851173,
-0.1730044931,
0.5878827572,
0.1861094832,
-0.5310037732,
-0.1901536733,
0.2092230618,
-0.317712754,
-0.0111947209,
0.1317907274,
-0.1686788052,
0.38516137,
0.0802871659,
0.1898802817,
0.2464482933,
-0.1104767546,
0.2880239189,
-0.286067307,
-0.009603221,
0.0849479958,
-0.0719700456,
0.2393063903,
-0.2704797387,
-0.042410098,
-0.1621233821,
0.2372231334,
-0.1482032388,
0.2230834067,
-0.0443858989,
0.0625272617,
0.0818429738,
-0.0392008051,
-0.121557802,
0.0788093731,
0.2157845199,
0.0433690622,
0.0418130793,
-0.1905940622,
-0.1984118223,
-0.0963725299,
0.2760662138,
-0.2941966355,
-0.3430737257,
0.3505134583,
0.3571788669,
-0.0198512487,
-0.0224459991,
-0.0754136294,
0.1201188713,
0.1530828476,
0.006208539,
0.0715009719,
-0.0785522684,
-0.1991021782,
-0.1974657476,
-0.0115249828,
0.0726841539,
0.1600965858,
0.0034866929,
-0.0784361511,
0.4022409022,
0.2385912538,
0.1009371057,
0.2098902613,
-0.1776234508,
-0.09642867,
0.0071381032,
-0.0728403702,
0.111531198,
0.0388302319,
-0.0264951289,
0.1444303989,
0.4932914972,
0.2365597785,
0.1932386458,
0.2239502072,
-0.0101359077,
0.2388229221,
-0.1069114953,
-0.0609272607,
-0.1341269165,
0.0577990599,
0.0031342935,
0.1119554192,
-0.1359224468,
-0.2041954249,
0.1788983494,
0.3149354458,
-0.0856287032,
0.1352984309,
-0.1058830693,
-0.0881041437,
-0.1929530799,
0.0814030096,
0.1926788092,
0.3943269849,
0.2004813403,
0.1856657714,
-0.0386409014,
-0.0774592385,
-0.0734680891,
0.1406772733,
0.0299727861,
0.1926372498,
0.2764999568,
0.2475029379,
-0.2172688097,
-0.3548971713,
-0.2435459197,
0.1768792272,
0.1148346588,
-0.1390990317,
0.0299772024,
-0.3175422549,
0.0918787494,
-0.0323445834,
-0.0665199757,
0.2071173936,
-0.3488471508,
0.1094207168,
0.1852682978,
-0.1694181561,
0.32201913,
-0.1171385422,
0.0898976922,
-0.0134831592,
-0.0217510909,
-0.0988096446,
-0.1474419087,
-0.1254177094,
0.1327667534,
0.166216135,
0.144976601,
0.496317178,
0.0013362616,
-0.2189738005,
-0.5480386615,
-0.2451719642,
0.0971295387,
-0.1633995473,
0.1954909265,
0.2778951824,
0.0427567884,
-0.0250688829,
-0.3409389555,
0.3002494872,
-0.4462934434,
-0.373233825,
-0.2133507133,
0.0948981792,
-0.1722037941,
-0.033569172,
-0.3764521778,
-0.3236230016,
-0.181336537,
0.3523523211,
-0.0931496844,
0.1716112345,
-0.1554573923,
-0.1054516435,
0.1455908418,
-0.0203672033,
0.1121424809,
-0.2187278122,
-0.1448163539,
-0.0194473937,
-0.1510415077,
-0.2830695212,
-0.1560444087,
-0.1409060806,
0.4374366701,
-0.1034079343,
-0.1784182936,
-0.0407507867,
-0.1612141132,
0.4367102385,
0.0242293254,
-0.0490038916,
0.3442163467,
0.2696901858,
-0.3481392264,
-0.0873825029,
-0.1605874896,
0.0496433266,
-0.2982184291,
-0.1103076637,
-0.1856853515,
0.4214312136,
0.2078024149,
0.5972418785,
0.0285145044,
-0.0613886677,
0.1324321032,
-0.437717855,
-0.0172753632,
-0.0337197892,
-0.4259905219,
0.1626301408,
-0.2667849958,
-0.10148637,
0.1350757331,
-0.1677296013,
-0.1150870547,
0.1514069736,
0.0009904057,
-0.3835221529,
-0.2099661976,
0.0377300307,
-0.1925780624,
0.0860436112,
0.0603311434,
0.0141092315,
-0.4112585783,
0.2260722518,
-0.0721925423,
-0.0218362436,
-0.1237445399,
-0.3398276865,
-0.3464435339,
0.0175715089,
-0.6085757613,
0.3544567823,
0.1318601966,
0.4851481915,
0.1367794573,
0.005299814,
0.0414654948,
-0.282548964,
0.652498126,
-0.2151976228,
0.0749008507,
0.1836812794,
-0.327713728,
-0.2910265625,
-0.043659877,
-0.3557527661,
0.4460595548,
0.3172530532,
0.4865554273,
-0.1918326914,
-0.3518020809,
0.1224314719,
-0.0199517291,
0.0334757119,
0.0118680857,
-0.2885981202,
-0.3060875535,
-0.4088720679,
0.3470339179,
0.0887134671,
0.1813628078,
-0.0699507818,
-0.1245865524,
-0.1805431098,
-0.0352945961,
0.1069819033,
0.1873822361,
-0.0616823286,
-0.1572833359,
0.1408729851,
-0.0219114292,
0.2116452157,
0.2355049551,
0.0500609763,
-0.0951047838,
-0.1150432825,
0.0940205902,
0.0208327509,
0.4114660919,
0.2416528165,
-0.1685578972,
0.3699742556,
-0.1364515126,
0.288633734,
-0.1108366922,
0.4739769697,
0.5543157458,
0.1899579018,
-0.1046060398,
-0.1071349829,
0.0384811088,
0.141500175,
-0.1566074342,
0.3062252402,
-0.2532050014,
-0.2288144678,
0.1476331651,
0.1779161692,
0.5770252943,
-0.0932504684,
0.0875759423,
0.0692826509,
-0.0339657813,
0.0664254576,
-0.3225960135,
0.1247428432,
-0.2881053984,
-0.1223679781,
0.0637506843,
-0.0489773341,
0.161958456,
0.1876240075,
-0.3256684244,
0.1354865581,
0.2791849673,
0.1854794025,
0.0244831759,
0.431650579,
0.0075262245,
-0.2300827801,
-0.0233638268,
0.2279519439,
0.1796829104,
-0.056287311,
-0.0279300585,
0.1004806459,
-0.0691840351,
-0.3762968779,
-0.1939993501,
0.0208728164,
-0.43129614,
0.3942314684,
0.023780359,
0.0594653487,
0.028134048,
0.1458711773,
0.1447969675,
0.2050361931,
0.0107789095,
0.1170282289,
0.0932478458,
0.0910387859,
0.0838551968,
-0.2934491932,
0.2623494267,
-0.1249918491,
-0.4529618919,
0.0569269881,
-0.0704902485,
-0.250433743,
0.0244050622,
0.1059230715,
0.2930746675,
-0.2247793674,
0.0423180647,
-0.0464648195,
-0.2383499891,
-0.3965627849,
0.2039444447,
-0.1147939712,
-0.1983671188,
0.2978396118,
-0.1070741564,
-0.3055644929,
-0.0280589852,
0.2836198807,
0.0299849957,
0.1521657407,
0.599619031,
-0.0773308724,
-0.115640834,
-0.431645304,
0.097960107,
0.318934828,
0.1494750381,
0.2477400005,
-0.1895445883,
-0.2431791872,
0.0721189529,
0.1885509789,
0.0378919691,
0.1453278363,
-0.2402581275,
-0.2921874821,
-0.4588644505,
0.0046023764,
-0.1703903675,
0.2114722282,
0.194389239,
0.4413281679,
-0.1352238059,
0.2366549969,
-0.4279207587,
-0.0372961797,
-0.4685041606,
0.2483721823,
-0.0478404686,
-0.0903500989,
0.0450875238,
0.0513899811,
0.3058928251,
0.2208818495,
-0.0576612838,
-0.3870590925,
-0.0921496153,
0.0931528062,
0.1092807204,
0.0143305287,
0.1976388097,
0.2131325006,
-0.2241607159,
-0.263785094,
0.1043586656,
0.1285088658,
-0.0872338042,
0.0787764564,
0.1816826761,
0.0326142944,
-0.0256914496,
-0.3361306787,
-0.0561859123,
0.0320773944,
-0.0667608008,
0.3304430842,
0.0313251875,
-0.0545086935,
0.0997805223,
0.0593812428,
0.2828299403,
0.2285242528,
0.0306526832,
-0.1030483097,
-0.3491648138,
-0.0028984547,
0.3846749067,
0.2440449595,
-0.2425766736,
-0.0939169899,
0.2190348357,
0.3167302608,
-0.2319251448,
-0.0727750361,
0.2596986294,
-0.3800119162,
0.3790823817,
0.2261142731,
0.0072068274,
0.1852704287,
0.1105448082,
0.0050975569,
0.2265834212,
-0.3973685205,
-0.0119793992,
0.0900442153,
-0.141069755,
0.1985627115,
0.4492412508,
0.0734670162,
0.2462898195,
0.3410063386,
0.0147556122,
0.5114741325,
-0.124686107,
0.0724943951,
0.0589091405,
-0.041568201,
0.331186533,
-0.0005664825,
-0.0347977243,
0.0089654792,
-0.0880122334,
0.3054795265,
-0.3336261511,
-0.0528676994,
-0.2124442607,
0.3687885404,
-0.1914832145,
-0.385640353,
-0.2380470186,
-0.0818298161,
-0.1413497776,
-0.0785160661,
-0.0190695394,
0.1973137259,
0.0451900549,
-0.0820417553,
0.0131338648,
-0.2212532759,
-0.0192150101,
-0.0783583224,
0.1308196485,
-0.2626003921,
0.2001493573,
0.1314697862,
0.1404417604,
-0.1671112776,
0.609554708,
0.5709316134,
0.3046992123,
-0.1988588423,
-0.1260325611,
-0.3344714642,
-0.1386542022,
-0.2002348304,
0.2863617539,
0.0003164746,
-0.1747993976,
0.2625157237,
0.2772243321,
-0.2658776939,
-0.1564967632,
0.4190353155,
-0.1771444827,
0.1225863919,
0.1675086319,
0.1353607476,
-0.2269661129,
0.0732963979,
0.1038702503,
-0.3389835358,
-0.0345564969,
0.2996351421,
-0.2357951105,
0.3266510069,
-0.1310751885,
0.1637846678,
0.0463033505,
0.4507513642,
0.0503230542,
0.1739300042,
-0.3142849803,
-0.1331528872,
-0.5782250166,
0.2144248188,
-0.1688656807,
-0.364803791,
-0.1931367069,
0.1571837962,
0.1029491574,
0.1065547913,
0.2409303784,
0.0778948143,
-0.1090168506,
0.2187100947,
-0.3619212806,
0.0869542658,
0.175594911,
0.0519848093,
0.204318583,
-0.4335596561,
0.209523946,
-0.0014671721,
0.2383018732,
-0.0144972736,
0.0347772017,
0.1814201176,
-0.3401247561,
0.2746292055,
0.10931281,
0.525728941,
-0.4383835196,
0.0910443813,
-0.1269073486,
0.1606311649,
-0.4419291615,
0.0574722365,
0.24140957,
0.1892360747,
0.0872845799,
-0.0311473291,
-0.13156645,
0.1188576072,
0.236255005,
-0.0922231153,
-0.013923116,
0.3029530644,
0.1060065776,
0.0748863071,
-0.1064880639,
0.3399724066,
-0.0225499161,
0.2731778026,
-0.4903125763,
-0.4749885201,
0.3061771393,
-0.5121243596,
-0.4921658933,
-0.3859890699,
0.2887361646,
-0.0939686149,
0.0935925916,
-0.3449765444,
-0.0112365931,
0.2883768976,
0.1060351357,
-0.5911827683,
0.1808962822,
0.0886602253,
-0.0450422131,
-0.0889836028,
0.3249360919,
0.0077153165,
-0.1511940062,
-0.0211810246,
-0.1020610854
] |
https://github.com/huggingface/datasets/issues/847 | multiprocessing in dataset map "can only test a child process" | I have commented the lines that cause my code break. I'm now seeing my reports on Wandb and my code does not break. I am training now, so I will check probably in 6 hours. I suppose that setting wandb disable will work as well. | Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
``` | 45 | multiprocessing in dataset map "can only test a child process"
Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
```
def tokenizer_fn(example):
return tokenizer.batch_encode_plus(example['text'])
ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])
```
```
---------------------------------------------------------------------------
RemoteTraceback Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
for i in pbar:
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
self.close()
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
super(tqdm_notebook, self).close(*args, **kwargs)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
fp_write('')
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
self.fp.write(_unicode(s))
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
cb(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
self._backend.interface.publish_output(name, data)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
self._publish_output(o)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
self._publish(rec)
File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""
```
I have commented the lines that cause my code break. I'm now seeing my reports on Wandb and my code does not break. I am training now, so I will check probably in 6 hours. I suppose that setting wandb disable will work as well. | [
-0.3956996202,
0.0156291872,
-0.1538685858,
-0.1850298345,
0.1417977363,
-0.057856515,
0.5068992376,
0.3400265574,
-0.0834039077,
0.168177247,
-0.018427331,
0.3370633125,
0.0475012921,
0.0918331221,
-0.2264435291,
0.102147162,
-0.0123606995,
0.0946921781,
0.1290112585,
0.0473635644,
-0.1753094494,
0.1040759757,
-0.230250746,
0.2859587073,
-0.4516965449,
-0.2857310474,
-0.0163214803,
-0.0623160712,
-0.264323622,
-0.4696432948,
-0.1491129398,
0.2851143777,
-0.1861116439,
0.6030861735,
-0.0001044559,
0.0936727226,
0.2627741098,
0.0446500182,
-0.0541399419,
-0.0300702751,
0.0951316953,
-0.0515859276,
-0.0309995934,
-0.4035979509,
-0.0044789612,
-0.2674303651,
0.1779135615,
-0.4431349039,
0.2878314257,
0.3189612925,
0.2665319145,
0.5655280352,
-0.209222883,
-0.0047211349,
-0.2012011111,
-0.0783625692,
-0.035720598,
-0.1625542045,
0.2167162448,
-0.2403010726,
-0.3567935824,
0.2491742224,
-0.0430282876,
0.1743142456,
-0.32908687,
0.0007868819,
0.2776492834,
-0.2374251038,
0.3172337413,
0.079236269,
0.1507844776,
-0.2674019635,
-0.3465929925,
-0.1820104122,
-0.2675668299,
-0.1380904913,
-0.089617148,
0.0866118297,
-0.309032023,
0.0237944331,
-0.2314291298,
0.0673613846,
-0.0069426522,
-0.097134456,
-0.2097462267,
0.6421573758,
0.0204102658,
0.2258118093,
-0.0584262647,
0.0421580486,
0.13218458,
-0.1236512288,
0.1550005972,
-0.0283192806,
-0.176759392,
-0.1339014769,
0.1732695103,
-0.3608182967,
0.1934939474,
-0.0518136472,
-0.2702676952,
0.1569521576,
0.121089831,
0.1657909006,
0.1612781733,
0.0505133383,
0.155910328,
0.2796486318,
0.2925398052,
-0.1969956309,
-0.3908066154,
-0.0121860132,
0.0276294909,
-0.2749154568,
0.1901084185,
0.1587806493,
0.1859904677,
0.0203871652,
-0.3168945909,
-0.067428723,
-0.1310212612,
-0.0011092462,
0.0109486915,
0.4655703306,
-0.0625769496,
0.2101196498,
-0.1869858801,
0.2766140401,
-0.1955184639,
-0.133565098,
-0.2674530745,
0.1599751711,
-0.1052410975,
-0.0912757292,
0.0864881724,
0.2284778059,
0.3958973885,
0.0574227497,
0.0732819214,
-0.0852146149,
0.4325416088,
-0.2196345478,
0.2467180341,
0.0557840653,
0.0686210915,
0.1359150112,
0.2674400806,
-0.3098888993,
-0.1797690094,
-0.074889496,
0.0085686827,
-0.188371107,
-0.0060650678,
0.2934331894,
0.0234701037,
0.0294384062,
-0.1553815156,
0.1325115412,
0.2363230288,
0.0417061746,
0.0084720403,
-0.1836156398,
-0.2125668228,
-0.1611632258,
0.1659644842,
0.2332041711,
-0.1246361285,
-0.0227328613,
0.0209111758,
-0.1451628804,
0.2747373581,
0.227386713,
-0.0913353562,
0.6480851173,
-0.1730044931,
0.5878827572,
0.1861094832,
-0.5310037732,
-0.1901536733,
0.2092230618,
-0.317712754,
-0.0111947209,
0.1317907274,
-0.1686788052,
0.38516137,
0.0802871659,
0.1898802817,
0.2464482933,
-0.1104767546,
0.2880239189,
-0.286067307,
-0.009603221,
0.0849479958,
-0.0719700456,
0.2393063903,
-0.2704797387,
-0.042410098,
-0.1621233821,
0.2372231334,
-0.1482032388,
0.2230834067,
-0.0443858989,
0.0625272617,
0.0818429738,
-0.0392008051,
-0.121557802,
0.0788093731,
0.2157845199,
0.0433690622,
0.0418130793,
-0.1905940622,
-0.1984118223,
-0.0963725299,
0.2760662138,
-0.2941966355,
-0.3430737257,
0.3505134583,
0.3571788669,
-0.0198512487,
-0.0224459991,
-0.0754136294,
0.1201188713,
0.1530828476,
0.006208539,
0.0715009719,
-0.0785522684,
-0.1991021782,
-0.1974657476,
-0.0115249828,
0.0726841539,
0.1600965858,
0.0034866929,
-0.0784361511,
0.4022409022,
0.2385912538,
0.1009371057,
0.2098902613,
-0.1776234508,
-0.09642867,
0.0071381032,
-0.0728403702,
0.111531198,
0.0388302319,
-0.0264951289,
0.1444303989,
0.4932914972,
0.2365597785,
0.1932386458,
0.2239502072,
-0.0101359077,
0.2388229221,
-0.1069114953,
-0.0609272607,
-0.1341269165,
0.0577990599,
0.0031342935,
0.1119554192,
-0.1359224468,
-0.2041954249,
0.1788983494,
0.3149354458,
-0.0856287032,
0.1352984309,
-0.1058830693,
-0.0881041437,
-0.1929530799,
0.0814030096,
0.1926788092,
0.3943269849,
0.2004813403,
0.1856657714,
-0.0386409014,
-0.0774592385,
-0.0734680891,
0.1406772733,
0.0299727861,
0.1926372498,
0.2764999568,
0.2475029379,
-0.2172688097,
-0.3548971713,
-0.2435459197,
0.1768792272,
0.1148346588,
-0.1390990317,
0.0299772024,
-0.3175422549,
0.0918787494,
-0.0323445834,
-0.0665199757,
0.2071173936,
-0.3488471508,
0.1094207168,
0.1852682978,
-0.1694181561,
0.32201913,
-0.1171385422,
0.0898976922,
-0.0134831592,
-0.0217510909,
-0.0988096446,
-0.1474419087,
-0.1254177094,
0.1327667534,
0.166216135,
0.144976601,
0.496317178,
0.0013362616,
-0.2189738005,
-0.5480386615,
-0.2451719642,
0.0971295387,
-0.1633995473,
0.1954909265,
0.2778951824,
0.0427567884,
-0.0250688829,
-0.3409389555,
0.3002494872,
-0.4462934434,
-0.373233825,
-0.2133507133,
0.0948981792,
-0.1722037941,
-0.033569172,
-0.3764521778,
-0.3236230016,
-0.181336537,
0.3523523211,
-0.0931496844,
0.1716112345,
-0.1554573923,
-0.1054516435,
0.1455908418,
-0.0203672033,
0.1121424809,
-0.2187278122,
-0.1448163539,
-0.0194473937,
-0.1510415077,
-0.2830695212,
-0.1560444087,
-0.1409060806,
0.4374366701,
-0.1034079343,
-0.1784182936,
-0.0407507867,
-0.1612141132,
0.4367102385,
0.0242293254,
-0.0490038916,
0.3442163467,
0.2696901858,
-0.3481392264,
-0.0873825029,
-0.1605874896,
0.0496433266,
-0.2982184291,
-0.1103076637,
-0.1856853515,
0.4214312136,
0.2078024149,
0.5972418785,
0.0285145044,
-0.0613886677,
0.1324321032,
-0.437717855,
-0.0172753632,
-0.0337197892,
-0.4259905219,
0.1626301408,
-0.2667849958,
-0.10148637,
0.1350757331,
-0.1677296013,
-0.1150870547,
0.1514069736,
0.0009904057,
-0.3835221529,
-0.2099661976,
0.0377300307,
-0.1925780624,
0.0860436112,
0.0603311434,
0.0141092315,
-0.4112585783,
0.2260722518,
-0.0721925423,
-0.0218362436,
-0.1237445399,
-0.3398276865,
-0.3464435339,
0.0175715089,
-0.6085757613,
0.3544567823,
0.1318601966,
0.4851481915,
0.1367794573,
0.005299814,
0.0414654948,
-0.282548964,
0.652498126,
-0.2151976228,
0.0749008507,
0.1836812794,
-0.327713728,
-0.2910265625,
-0.043659877,
-0.3557527661,
0.4460595548,
0.3172530532,
0.4865554273,
-0.1918326914,
-0.3518020809,
0.1224314719,
-0.0199517291,
0.0334757119,
0.0118680857,
-0.2885981202,
-0.3060875535,
-0.4088720679,
0.3470339179,
0.0887134671,
0.1813628078,
-0.0699507818,
-0.1245865524,
-0.1805431098,
-0.0352945961,
0.1069819033,
0.1873822361,
-0.0616823286,
-0.1572833359,
0.1408729851,
-0.0219114292,
0.2116452157,
0.2355049551,
0.0500609763,
-0.0951047838,
-0.1150432825,
0.0940205902,
0.0208327509,
0.4114660919,
0.2416528165,
-0.1685578972,
0.3699742556,
-0.1364515126,
0.288633734,
-0.1108366922,
0.4739769697,
0.5543157458,
0.1899579018,
-0.1046060398,
-0.1071349829,
0.0384811088,
0.141500175,
-0.1566074342,
0.3062252402,
-0.2532050014,
-0.2288144678,
0.1476331651,
0.1779161692,
0.5770252943,
-0.0932504684,
0.0875759423,
0.0692826509,
-0.0339657813,
0.0664254576,
-0.3225960135,
0.1247428432,
-0.2881053984,
-0.1223679781,
0.0637506843,
-0.0489773341,
0.161958456,
0.1876240075,
-0.3256684244,
0.1354865581,
0.2791849673,
0.1854794025,
0.0244831759,
0.431650579,
0.0075262245,
-0.2300827801,
-0.0233638268,
0.2279519439,
0.1796829104,
-0.056287311,
-0.0279300585,
0.1004806459,
-0.0691840351,
-0.3762968779,
-0.1939993501,
0.0208728164,
-0.43129614,
0.3942314684,
0.023780359,
0.0594653487,
0.028134048,
0.1458711773,
0.1447969675,
0.2050361931,
0.0107789095,
0.1170282289,
0.0932478458,
0.0910387859,
0.0838551968,
-0.2934491932,
0.2623494267,
-0.1249918491,
-0.4529618919,
0.0569269881,
-0.0704902485,
-0.250433743,
0.0244050622,
0.1059230715,
0.2930746675,
-0.2247793674,
0.0423180647,
-0.0464648195,
-0.2383499891,
-0.3965627849,
0.2039444447,
-0.1147939712,
-0.1983671188,
0.2978396118,
-0.1070741564,
-0.3055644929,
-0.0280589852,
0.2836198807,
0.0299849957,
0.1521657407,
0.599619031,
-0.0773308724,
-0.115640834,
-0.431645304,
0.097960107,
0.318934828,
0.1494750381,
0.2477400005,
-0.1895445883,
-0.2431791872,
0.0721189529,
0.1885509789,
0.0378919691,
0.1453278363,
-0.2402581275,
-0.2921874821,
-0.4588644505,
0.0046023764,
-0.1703903675,
0.2114722282,
0.194389239,
0.4413281679,
-0.1352238059,
0.2366549969,
-0.4279207587,
-0.0372961797,
-0.4685041606,
0.2483721823,
-0.0478404686,
-0.0903500989,
0.0450875238,
0.0513899811,
0.3058928251,
0.2208818495,
-0.0576612838,
-0.3870590925,
-0.0921496153,
0.0931528062,
0.1092807204,
0.0143305287,
0.1976388097,
0.2131325006,
-0.2241607159,
-0.263785094,
0.1043586656,
0.1285088658,
-0.0872338042,
0.0787764564,
0.1816826761,
0.0326142944,
-0.0256914496,
-0.3361306787,
-0.0561859123,
0.0320773944,
-0.0667608008,
0.3304430842,
0.0313251875,
-0.0545086935,
0.0997805223,
0.0593812428,
0.2828299403,
0.2285242528,
0.0306526832,
-0.1030483097,
-0.3491648138,
-0.0028984547,
0.3846749067,
0.2440449595,
-0.2425766736,
-0.0939169899,
0.2190348357,
0.3167302608,
-0.2319251448,
-0.0727750361,
0.2596986294,
-0.3800119162,
0.3790823817,
0.2261142731,
0.0072068274,
0.1852704287,
0.1105448082,
0.0050975569,
0.2265834212,
-0.3973685205,
-0.0119793992,
0.0900442153,
-0.141069755,
0.1985627115,
0.4492412508,
0.0734670162,
0.2462898195,
0.3410063386,
0.0147556122,
0.5114741325,
-0.124686107,
0.0724943951,
0.0589091405,
-0.041568201,
0.331186533,
-0.0005664825,
-0.0347977243,
0.0089654792,
-0.0880122334,
0.3054795265,
-0.3336261511,
-0.0528676994,
-0.2124442607,
0.3687885404,
-0.1914832145,
-0.385640353,
-0.2380470186,
-0.0818298161,
-0.1413497776,
-0.0785160661,
-0.0190695394,
0.1973137259,
0.0451900549,
-0.0820417553,
0.0131338648,
-0.2212532759,
-0.0192150101,
-0.0783583224,
0.1308196485,
-0.2626003921,
0.2001493573,
0.1314697862,
0.1404417604,
-0.1671112776,
0.609554708,
0.5709316134,
0.3046992123,
-0.1988588423,
-0.1260325611,
-0.3344714642,
-0.1386542022,
-0.2002348304,
0.2863617539,
0.0003164746,
-0.1747993976,
0.2625157237,
0.2772243321,
-0.2658776939,
-0.1564967632,
0.4190353155,
-0.1771444827,
0.1225863919,
0.1675086319,
0.1353607476,
-0.2269661129,
0.0732963979,
0.1038702503,
-0.3389835358,
-0.0345564969,
0.2996351421,
-0.2357951105,
0.3266510069,
-0.1310751885,
0.1637846678,
0.0463033505,
0.4507513642,
0.0503230542,
0.1739300042,
-0.3142849803,
-0.1331528872,
-0.5782250166,
0.2144248188,
-0.1688656807,
-0.364803791,
-0.1931367069,
0.1571837962,
0.1029491574,
0.1065547913,
0.2409303784,
0.0778948143,
-0.1090168506,
0.2187100947,
-0.3619212806,
0.0869542658,
0.175594911,
0.0519848093,
0.204318583,
-0.4335596561,
0.209523946,
-0.0014671721,
0.2383018732,
-0.0144972736,
0.0347772017,
0.1814201176,
-0.3401247561,
0.2746292055,
0.10931281,
0.525728941,
-0.4383835196,
0.0910443813,
-0.1269073486,
0.1606311649,
-0.4419291615,
0.0574722365,
0.24140957,
0.1892360747,
0.0872845799,
-0.0311473291,
-0.13156645,
0.1188576072,
0.236255005,
-0.0922231153,
-0.013923116,
0.3029530644,
0.1060065776,
0.0748863071,
-0.1064880639,
0.3399724066,
-0.0225499161,
0.2731778026,
-0.4903125763,
-0.4749885201,
0.3061771393,
-0.5121243596,
-0.4921658933,
-0.3859890699,
0.2887361646,
-0.0939686149,
0.0935925916,
-0.3449765444,
-0.0112365931,
0.2883768976,
0.1060351357,
-0.5911827683,
0.1808962822,
0.0886602253,
-0.0450422131,
-0.0889836028,
0.3249360919,
0.0077153165,
-0.1511940062,
-0.0211810246,
-0.1020610854
] |
https://github.com/huggingface/datasets/issues/846 | Add HoVer multi-hop fact verification dataset | Hi @yjernite I'm new but wanted to contribute. Has anyone already taken this problem and do you think it is suitable for newbies? | ## Adding a Dataset
- **Name:** HoVer
- **Description:** https://twitter.com/YichenJiang9/status/1326954363806429186 contains 20K claim verification examples
- **Paper:** https://arxiv.org/abs/2011.03088
- **Data:** https://hover-nlp.github.io/
- **Motivation:** There are still few multi-hop information extraction benchmarks (HotpotQA, which dataset wase based off, notwithstanding)
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 23 | Add HoVer multi-hop fact verification dataset
## Adding a Dataset
- **Name:** HoVer
- **Description:** https://twitter.com/YichenJiang9/status/1326954363806429186 contains 20K claim verification examples
- **Paper:** https://arxiv.org/abs/2011.03088
- **Data:** https://hover-nlp.github.io/
- **Motivation:** There are still few multi-hop information extraction benchmarks (HotpotQA, which dataset wase based off, notwithstanding)
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
Hi @yjernite I'm new but wanted to contribute. Has anyone already taken this problem and do you think it is suitable for newbies? | [
-0.2272991687,
-0.082331948,
0.0003385134,
0.1499358267,
-0.4059508443,
-0.0346002951,
0.1919763833,
0.1057022065,
0.0961783603,
-0.1447626948,
-0.0471815765,
-0.1035465151,
-0.2635314465,
0.2344670892,
0.2132847011,
-0.0595732667,
-0.1592912823,
-0.1947902143,
0.1115607023,
0.0093253478,
-0.011955142,
0.0130749289,
-0.2015614957,
0.0045059361,
-0.5718672276,
0.0330752432,
-0.2534197569,
-0.1548031718,
0.0858292505,
-0.3601928651,
0.2060378194,
0.6282488704,
0.1120477617,
0.5196276903,
-0.0001165368,
-0.3225640655,
0.1629250497,
0.053223975,
-0.2220108807,
-0.0875664353,
-0.2345130146,
0.0085837469,
0.098131001,
-0.1646177471,
0.0027159154,
0.0003692135,
-0.345066756,
0.0169515833,
0.2611086965,
0.1450031102,
0.1791541576,
0.2080797255,
-0.1005197838,
0.002297733,
0.2288695127,
-0.0532466583,
0.0240706131,
0.533788383,
0.1278329045,
0.0082166791,
-0.3305616081,
0.2556029558,
-0.0482341349,
0.0952408239,
0.0296694431,
-0.2165824175,
0.2072821856,
-0.0248798374,
-0.1847687215,
0.6821912527,
0.1113199592,
-0.1358939111,
-0.3626840115,
-0.1780863851,
0.141511783,
0.1910556108,
0.0108547788,
0.0837784633,
-0.3718947172,
0.252323091,
-0.2055731416,
-0.4319065213,
-0.050922364,
0.0619588979,
0.3457694352,
0.1788575202,
-0.0137490314,
0.1511365473,
0.2833221853,
0.1685570478,
0.1721878946,
-0.393256098,
0.1634171605,
-0.0612804554,
-0.2462200522,
-0.3360614777,
0.3016602993,
0.4368489385,
0.3293212652,
0.4084156454,
0.1978219897,
0.1490225643,
-0.3179811239,
0.0085510965,
0.1067503542,
-0.1359964758,
-0.3658553362,
-0.4572269022,
0.3480315804,
0.0410780497,
0.1714972854,
0.0878179744,
0.0892944187,
0.2867177725,
-0.3137619495,
0.1096374989,
0.1290664375,
-0.2129603326,
-0.1475042999,
0.1170879751,
-0.4780733883,
-0.4129660726,
0.1277891994,
-0.1038536727,
-0.0501336642,
0.3127088845,
0.2355261892,
0.1694093794,
0.1646915972,
-0.3821561933,
-0.1032019854,
0.3580859601,
-0.0851725712,
0.1719326079,
0.2503607869,
0.1378547251,
-0.1598971486,
-0.0078857839,
0.2475171685,
0.1192437708,
0.1588480175,
-0.2928925753,
-0.0950285643,
-0.2073489875,
-0.2217977047,
-0.0861621574,
0.0405203141,
-0.1773964167,
-0.0580106229,
0.1205495894,
0.1289975941,
-0.2766109705,
-0.095595248,
0.1132707074,
-0.5047520399,
-0.0760267526,
-0.4323444664,
0.5820617676,
-0.0895043463,
0.234490931,
-0.0069964342,
0.1698770374,
0.0283587277,
-0.0424429625,
0.0730619654,
0.4558425248,
0.0693434775,
-0.0632667691,
-0.1861064881,
-0.020327393,
-0.1498076171,
-0.1419149637,
-0.0407368205,
0.3462031484,
-0.186229378,
0.0748934597,
0.1125299484,
-0.4129199386,
-0.0766677111,
0.2678284943,
-0.364582479,
0.0779019222,
0.3461768925,
0.1696011722,
0.0150967091,
-0.3515820205,
-0.243354857,
0.5789195299,
-0.0191443004,
0.0034198016,
-0.4578884244,
-0.0963019133,
0.0129377916,
0.226503998,
0.0787473097,
-0.3378920555,
-0.0535278469,
0.3043082356,
0.3111552,
-0.0393291973,
0.2238326669,
-0.0580616705,
0.2108476162,
-0.612257421,
-0.0277997721,
-0.1950296611,
-0.1623075157,
-0.083793819,
0.2959188521,
0.4300271869,
0.3091977835,
-0.1348817796,
-0.1295540035,
-0.0997592509,
-0.2761282027,
-0.4181808233,
0.1464836001,
0.3087128997,
0.1575441062,
0.0618325248,
-0.0519812107,
-0.0381782949,
0.0885732993,
0.0160052143,
0.1007433236,
0.4683502316,
-0.0116553288,
0.0949852765,
0.008957997,
0.3744885921,
-0.14418751,
-0.2735954225,
0.0491674542,
0.4318178594,
-0.259318471,
-0.0692739934,
0.712336421,
0.2589341998,
0.3165447712,
-0.4310327172,
0.2104398906,
-0.0167121105,
0.1257603914,
-0.1446496099,
-0.2468672991,
0.3453982174,
0.1053263992,
0.1579200774,
-0.0618477017,
0.1428498328,
0.0796139389,
-0.1416085511,
-0.2880893052,
-0.0173713118,
0.4400111437,
0.012646731,
0.2279018164,
-0.299939841,
-0.0706613809,
0.2726601958,
-0.08128649,
0.0399396122,
0.2333286256,
0.1611478031,
-0.0433435477,
-0.2864331603,
-0.0294450186,
0.1646225452,
0.3358063102,
0.174018696,
0.2849570513,
-0.0659761652,
0.0629301444,
-0.090571478,
0.2097531259,
-0.1903970689,
-0.216968596,
0.043634098,
0.0624601729,
0.025450971,
-0.1361393034,
-0.4984519184,
0.2366656065,
0.3610856831,
-0.1582576632,
-0.1105237827,
-0.1688102782,
-0.307507813,
-0.1922271997,
-0.3418147564,
-0.2188437879,
-0.4317831397,
0.0095067974,
0.0510066263,
0.2749844193,
0.3618484735,
0.2475444525,
0.4854175448,
-0.0482298657,
0.4010959566,
-0.1088409871,
-0.1563973278,
-0.0341120735,
0.1446639001,
0.2256758511,
0.1414290071,
0.4724612534,
0.0736724436,
0.1783836931,
-0.2351919562,
-0.358651489,
0.2105640471,
-0.015976293,
0.2286700457,
0.2341107875,
0.0499634147,
0.2000395358,
0.2142779529,
0.1577645838,
0.0015247315,
-0.1417130083,
0.1305214316,
-0.1321741343,
0.009781152,
-0.1054687575,
0.1849374622,
-0.2513542771,
-0.1153518409,
0.3771844208,
0.0288776383,
-0.0870287269,
0.021387767,
-0.1146048307,
0.3248682022,
-0.1924209297,
0.0294511914,
-0.2875555158,
-0.5863474011,
-0.0235056505,
-0.0817512721,
-0.0255941637,
-0.3916588426,
-0.3142076731,
0.1521116048,
-0.1375466883,
-0.5253846049,
-0.3399840593,
0.0022228211,
0.259557724,
0.1521727145,
0.043138884,
0.2412626445,
-0.1067446321,
-0.1025690734,
0.0414260328,
0.067228809,
0.0882849395,
-0.1683745831,
0.3496378362,
0.2270534188,
-0.1118774489,
0.5127784014,
0.4072455466,
0.1061692759,
0.063926667,
0.2201279998,
-0.0686428025,
0.0777286813,
0.1895667017,
-0.5597391129,
0.4821092486,
-0.0318903923,
-0.0508246049,
-0.0369951725,
-0.1315051466,
0.2448631525,
-0.2971073389,
0.0702995285,
-0.0670237914,
-0.2937932611,
0.1264007986,
-0.377800405,
0.1239683181,
0.1089380383,
-0.3209063411,
-0.1242934912,
-0.2189758122,
0.1418032646,
0.29422912,
0.2277386039,
-0.2954145372,
-0.0668758899,
-0.0950341448,
-0.3934738636,
0.3894402683,
0.0661580041,
-0.0900331885,
0.1126883402,
-0.0044277459,
-0.0039528571,
0.0922150314,
0.4180671573,
-0.5143918395,
0.1353333145,
0.1167922914,
0.033687897,
-0.5341311693,
0.0339395031,
-0.4302006662,
-0.062764965,
0.1773236692,
0.0435867906,
-0.4558317363,
-0.1331999451,
0.7585169673,
0.0448628664,
0.0005280674,
-0.3360908031,
0.1109619588,
0.0661185682,
-0.2460401356,
0.0561075658,
-0.0099073127,
0.0208703913,
-0.0661027879,
0.0346741751,
0.225353092,
0.1161693782,
0.3921642303,
0.0235509351,
-0.1376076639,
0.2696406245,
0.0850261524,
-0.2122832835,
-0.3036353886,
0.1736400425,
0.1538454145,
-0.0102866273,
-0.0846940354,
0.0796293616,
-0.0378933437,
0.2571400106,
0.3785802126,
0.0597670861,
0.3685819805,
0.07228975,
0.2682337165,
-0.2171768099,
0.1767383814,
-0.1100780144,
0.0010996386,
0.0037905686,
-0.1943553537,
0.4577751458,
0.0886091515,
-0.1785666347,
-0.1837357432,
-0.1082383394,
-0.0236828662,
-0.0018276758,
0.0532351211,
1.262714386,
0.2454866618,
-0.0133656114,
0.2612298429,
0.1888641566,
0.4842991233,
-0.4983180165,
-0.2737854123,
-0.1867615432,
-0.0294733141,
-0.1651689708,
-0.3271549344,
-0.0046537798,
0.1926649362,
-0.3592125177,
-0.1146058366,
0.1274691224,
0.0210134573,
0.0443571582,
0.5635523796,
-0.0875815302,
-0.2835756838,
0.245334506,
0.1694773138,
-0.2909676135,
0.0991521552,
-0.1385645717,
-0.1920528561,
-0.1444829553,
-0.2057258189,
-0.4938208163,
-0.1306060851,
-0.1088439152,
0.1145520359,
-0.2344891429,
-0.3886837959,
-0.0501266271,
-0.5567727089,
0.1295867264,
0.0299220793,
-0.2018658221,
-0.1130383313,
-0.1547299773,
-0.0867036134,
0.0413505621,
-0.2835636437,
0.2741186619,
0.01517196,
-0.4493738711,
0.1459131092,
0.0339936875,
-0.1373798847,
0.4455842376,
-0.0426312834,
0.3611059785,
0.0761189014,
0.2114384621,
0.4344059527,
-0.2108478248,
-0.1954822391,
0.1394940019,
0.3742077947,
-0.302074492,
0.14987351,
0.0783268958,
0.0474983454,
-0.1404800117,
0.3055309653,
0.2763252258,
-0.1267757118,
0.1218030751,
0.1743715703,
-0.1480493546,
-0.2686436772,
0.4009834528,
0.0840237364,
-0.4870321155,
0.0370541289,
-0.1743950546,
-0.1999872625,
-0.2373300791,
0.2377755344,
0.4147133231,
0.4652632177,
0.0448788702,
-0.5292451382,
0.0094290674,
0.2511824369,
-0.3439129889,
-0.0446374938,
-0.5093989968,
0.6212290525,
0.2525548935,
0.2308318019,
-0.3422259092,
0.2347230017,
-0.139238134,
-0.1107175946,
0.439537555,
-0.2561744153,
0.126896143,
0.0996726751,
0.0984072834,
0.1235123053,
-0.1038625538,
-0.1879127622,
-0.2445528954,
0.1251426339,
0.0526081435,
-0.067398116,
0.1634923816,
0.0472761393,
-0.0400857925,
-0.024209071,
-0.09849298,
-0.1040564179,
0.0353756174,
0.0872738138,
-0.0539795421,
-0.0468093194,
-0.2468536049,
-0.052610185,
0.1595723629,
0.1853938699,
0.0085849985,
0.0589542761,
-0.0294489078,
-0.0878486037,
-0.0607309043,
0.2267069817,
0.0259722658,
0.0632998794,
-0.0865544379,
-0.0082774386,
-0.0700100213,
0.4451747537,
0.484970212,
0.2325761318,
-0.1189175248,
0.104734078,
-0.1195661128,
0.1804617643,
-0.3028205335,
0.2973516285,
0.1752167046,
0.173158735,
0.1861557364,
0.4783844054,
-0.0383912027,
0.0364909619,
0.18090114,
-0.0525317304,
0.2358422279,
-0.2555924952,
-0.1147485226,
-0.1154724509,
-0.2953888774,
0.1107536703,
0.2694613636,
0.1786244512,
0.1760027111,
-0.1221667081,
0.0060346331,
0.0549354777,
0.0906937942,
0.0894466266,
0.2672555149,
-0.2129654735,
0.4202230275,
0.2588843107,
0.0499808863,
-0.0994192809,
0.0852741078,
0.61114645,
-0.2340549827,
-0.0339971408,
-0.3608177006,
0.2245636433,
0.0237090141,
0.1185408682,
0.0140391067,
-0.2033747733,
-0.3663740456,
-0.3091667593,
-0.0743285269,
-0.1315100044,
0.4406820238,
0.1155266389,
0.2183001041,
-0.2886619568,
-0.3951533139,
0.0844942629,
0.2169117928,
-0.352104038,
0.0441315696,
0.4230369031,
0.0523836501,
0.0111111142,
0.6570653915,
0.1866724491,
-0.1337445676,
-0.3192819059,
0.1201312989,
-0.3357858062,
0.0300090387,
-0.0276111513,
0.1726445258,
0.5718484521,
-0.0983296409,
0.19776164,
0.0498353988,
-0.2692711353,
0.4436637163,
0.2408140153,
0.0371602215,
-0.5864856243,
0.0541562848,
0.0381036922,
0.1615025699,
-0.1707800776,
-0.0078862719,
-0.3688822985,
-0.1426104307,
0.049899023,
-0.2634573579,
-0.0825020671,
-0.1683408916,
0.0525500327,
-0.1341016293,
0.2285886407,
0.4410324693,
-0.0096197799,
-0.3868287206,
-0.2921030521,
-0.6059035659,
0.0989550203,
0.0267808642,
-0.2023596764,
-0.4342104793,
0.2664534152,
0.1798342764,
0.7058992386,
0.1808883548,
-0.2668344975,
0.1424339712,
0.1624393761,
-0.3843020499,
0.168756634,
0.090604648,
-0.1243208796,
0.1892858744,
0.1048802286,
-0.0175445508,
0.3335629702,
0.0561727658,
-0.0172391552,
-0.5416666865,
0.3225413263,
0.2993496358,
0.3092264533,
-0.0227933377,
0.4958723485,
0.093457073,
-0.1722735614,
-0.0667195767,
0.0959021151,
0.1008072346,
0.574201107,
-0.0160355419,
0.1934218109,
-0.0118902922,
-0.0537692122,
-0.0987727642,
-0.2474554628,
-0.0965985656,
0.0109380856,
-0.4421477318,
0.0059924126,
-0.049870342,
0.3267242312,
0.0018913858,
0.1454038769,
-0.0550496504,
0.3461010456,
-0.0550596267,
-0.1985271275,
0.3473351598,
0.1576505303,
-0.0048531964,
-0.2775718868,
0.3810520172,
-0.8294070363,
-0.1915789843,
-0.5885868669,
-0.3144220412,
0.3645707965,
0.0971506685,
-0.0741957054,
0.1580605656,
-0.2104312629,
0.0272307098,
0.0301884934,
0.3414423466,
-0.1916600764,
-0.1499209702,
-0.0701010078,
-0.0429636203
] |
https://github.com/huggingface/datasets/issues/846 | Add HoVer multi-hop fact verification dataset | Hi @tenjjin! This dataset is still up for grabs! Here's the link with the guide to add it. You should play around with the library first (download and look at a few datasets), then follow the steps here:
https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md | ## Adding a Dataset
- **Name:** HoVer
- **Description:** https://twitter.com/YichenJiang9/status/1326954363806429186 contains 20K claim verification examples
- **Paper:** https://arxiv.org/abs/2011.03088
- **Data:** https://hover-nlp.github.io/
- **Motivation:** There are still few multi-hop information extraction benchmarks (HotpotQA, which dataset wase based off, notwithstanding)
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 39 | Add HoVer multi-hop fact verification dataset
## Adding a Dataset
- **Name:** HoVer
- **Description:** https://twitter.com/YichenJiang9/status/1326954363806429186 contains 20K claim verification examples
- **Paper:** https://arxiv.org/abs/2011.03088
- **Data:** https://hover-nlp.github.io/
- **Motivation:** There are still few multi-hop information extraction benchmarks (HotpotQA, which dataset wase based off, notwithstanding)
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
Hi @tenjjin! This dataset is still up for grabs! Here's the link with the guide to add it. You should play around with the library first (download and look at a few datasets), then follow the steps here:
https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md | [
-0.2867437005,
-0.2775806189,
-0.0820237398,
0.0229686219,
-0.2790860534,
-0.1241934374,
0.1645183712,
0.1147087663,
0.0981639102,
0.1487334073,
-0.0963041857,
0.0598273911,
-0.0950225145,
0.2981519699,
0.2122938931,
-0.1031535715,
-0.1313483864,
-0.0484596863,
-0.0788759738,
0.0388446301,
0.0336414576,
0.1323773563,
-0.1098015979,
-0.051485993,
-0.3951329589,
-0.011697622,
-0.1528688967,
-0.1421918273,
0.1767665148,
-0.347091645,
0.0790029466,
0.4557311237,
-0.038014818,
0.3522499204,
-0.0001060055,
-0.1624503434,
0.1336013228,
0.0436688736,
-0.2459267378,
0.0830908194,
-0.0809473991,
0.0728998706,
0.1475119293,
-0.0974187404,
-0.1465435326,
-0.041696582,
-0.2358893007,
0.1373574436,
0.3529120088,
0.1512062252,
0.2692034841,
0.374487251,
-0.0909701139,
-0.1768825501,
0.14661479,
-0.1151669174,
0.0339637771,
0.4747837782,
0.0599793717,
-0.0117556863,
-0.4476831555,
0.4065050483,
0.0009208471,
0.1696486771,
-0.1179281622,
-0.1064522713,
0.1529271007,
-0.0746432319,
-0.0437304974,
0.6290506721,
-0.1349583566,
-0.1467761993,
-0.3264870644,
-0.2491106391,
0.0428117663,
0.134346962,
0.0443004258,
0.1490808874,
-0.2735672891,
0.2022504807,
-0.2149325609,
-0.0940118432,
-0.0298705623,
0.0526228026,
0.2132790685,
0.1690589041,
-0.1091084033,
-0.0234359391,
0.3585718572,
0.1595170647,
-0.0357535817,
-0.2431962192,
0.1687717736,
-0.1860035509,
-0.0606009066,
-0.2975718379,
0.2898407578,
0.3649702668,
0.3671053648,
0.3012630641,
0.265204668,
0.1582507193,
-0.2483096272,
0.0941538885,
-0.0687469542,
-0.0953089818,
-0.2874858379,
-0.5833560228,
0.3475056589,
0.2314154506,
0.1296987087,
0.0780099705,
0.1783204526,
0.2515966892,
-0.3900644779,
0.0836937279,
-0.1611857414,
-0.1440847963,
-0.1861332953,
0.1061963812,
-0.3253612816,
-0.1250449866,
0.0548867024,
0.0711382031,
-0.1008188277,
0.3313429356,
0.1849269867,
0.0917671919,
0.0834687874,
-0.3077298105,
-0.2107058913,
0.3382158577,
-0.03270109,
0.1933870614,
0.2491165698,
0.0862502754,
0.180213958,
0.1143538654,
0.2216907293,
0.0304587856,
0.1632225811,
-0.2651651204,
0.0008841045,
-0.0709963441,
-0.0951056033,
-0.2264545262,
0.0763856843,
-0.1893616617,
-0.1272078007,
-0.1004318818,
0.1026921347,
-0.1465361565,
-0.1066595837,
0.2135047615,
-0.3886556923,
-0.1913705617,
-0.2606022358,
0.4759401679,
-0.1730585098,
0.2680045962,
0.0965695903,
0.2344010323,
0.1171853319,
0.008358974,
0.1605290771,
0.3687475324,
0.1212783307,
-0.2506897449,
0.0331294872,
-0.0858480483,
-0.1767145097,
-0.070786044,
-0.0486029163,
0.2160950601,
-0.2160633802,
0.1856981814,
-0.0379080772,
-0.3163789511,
-0.116709426,
0.0720606074,
-0.3015658855,
0.0878660753,
0.2680447996,
0.0802267343,
0.0543416068,
-0.105297178,
-0.1661248207,
0.5198564529,
0.0967681482,
0.1907666475,
-0.344191432,
-0.1677941382,
-0.2322193533,
0.1796372235,
-0.0135581046,
-0.3202840686,
0.0118762068,
0.2393239737,
0.3109694719,
-0.0990888178,
0.1330370009,
0.0712409616,
0.1044495255,
-0.4205799699,
-0.1068930477,
-0.2172252238,
-0.0872852355,
-0.1155741662,
0.052144371,
0.4067137837,
0.1621483713,
-0.2223688662,
-0.213891536,
-0.0603820905,
-0.1263385713,
-0.4186022878,
0.3150723875,
0.4057453573,
0.1784081459,
0.1347749829,
0.0722761974,
-0.0547272116,
0.0883352682,
0.1120367497,
0.1067316681,
0.2869187295,
-0.0464475304,
-0.0571554191,
0.2328541577,
0.2236226499,
-0.1332377493,
-0.2088884115,
0.1052235067,
0.4635672867,
-0.2398419976,
0.105554238,
0.5500938296,
0.3264046311,
0.172630623,
-0.3131435215,
0.1095872894,
0.0789437294,
0.0664954111,
0.0865846723,
-0.3467352092,
0.4270170927,
0.2828143239,
0.055646129,
0.0929597169,
0.1265733093,
0.2059930861,
-0.1193460077,
-0.2036150992,
-0.1794458181,
0.3633715808,
-0.0255366117,
0.238351211,
-0.2011653781,
-0.1728341877,
0.2690054774,
0.0963140428,
0.1139981449,
0.3939317465,
0.1579202265,
-0.3027704954,
-0.3743295372,
0.0889570192,
0.0322210193,
0.0094885379,
0.2932667434,
0.3736002147,
-0.1231615916,
-0.0632481948,
-0.234593451,
0.2791768014,
-0.2151176631,
-0.2966943681,
0.1072227508,
0.17573753,
-0.0794863775,
-0.4073746204,
-0.4114881158,
-0.037474826,
0.0819427967,
-0.062804006,
-0.0727673769,
-0.18208386,
-0.3367842436,
-0.1073106676,
-0.2050932199,
-0.2028733343,
-0.3738684356,
0.1655450314,
0.1847130954,
0.0796810687,
0.3150451183,
0.1682983935,
0.5256707668,
0.0483972356,
0.4300486445,
-0.1132221073,
-0.1184881628,
-0.0463092625,
0.2272658199,
-0.0351150334,
0.1383319795,
0.4301140308,
0.032305941,
0.1055170223,
-0.13463144,
-0.3381769061,
0.3274392784,
0.0189791974,
0.0784658194,
0.2499455661,
0.0561922863,
0.2356976569,
0.1594017595,
0.1428953707,
-0.1569974124,
-0.1630941927,
0.1478889436,
-0.1265545934,
0.0657549649,
-0.225895986,
0.1727432013,
-0.1313382834,
-0.1951172799,
0.427639097,
0.0411100164,
-0.0647483841,
0.1986629367,
-0.0287465118,
0.3513506055,
-0.3559432328,
0.2393330336,
-0.2662970424,
-0.5580604076,
0.046288304,
-0.2378892899,
-0.0749974623,
-0.4700531363,
-0.3998806775,
0.1343475729,
-0.12884745,
-0.4724078178,
-0.4922140837,
-0.2050069571,
0.2339608818,
0.1317835897,
0.0074969679,
0.3199824095,
-0.1177763641,
-0.2865697145,
-0.013559103,
0.0779699758,
0.176372245,
-0.2182679176,
0.1791596711,
0.0688347965,
-0.1795098484,
0.5941289663,
0.3341061175,
0.0510022715,
-0.062577948,
0.2247596234,
-0.1615024805,
0.0383759327,
0.1382564455,
-0.2809800804,
0.2556061149,
-0.0379052013,
0.1196627691,
0.1581822485,
-0.1470264792,
0.2490225136,
-0.272015512,
-0.0091463476,
-0.1886366606,
-0.3408610821,
0.0859108865,
-0.193869397,
0.1196763217,
-0.0584907494,
-0.2399744689,
-0.015159592,
-0.1219428629,
0.2562093437,
0.1171788722,
0.1671045721,
-0.2866930068,
-0.0003816262,
-0.0684204251,
-0.3204258084,
0.3787929416,
0.118095994,
-0.1601747125,
0.1036233753,
-0.1899849474,
-0.0698332712,
0.0220605507,
0.2806836367,
-0.3590141535,
0.168578431,
-0.0736783743,
-0.1262995601,
-0.4930113256,
0.1724651158,
-0.6214960814,
-0.2309934795,
0.2284556627,
0.0947991908,
-0.5830436945,
-0.1353439689,
0.6615107059,
-0.0321311951,
0.0462494045,
-0.1048673615,
0.0395184606,
0.0320982784,
-0.2198539674,
0.1494940072,
-0.0236577839,
-0.0890545994,
-0.0653772205,
-0.0596348308,
0.152975902,
-0.0461464226,
0.1430098712,
0.2116667479,
-0.0876234025,
0.2434213609,
-0.1006885022,
-0.210938856,
-0.1348456293,
0.0749134421,
0.0712186694,
0.0836842582,
-0.0305535719,
-0.1203537583,
0.0264120661,
0.0588537343,
0.3391483724,
0.0564362369,
0.4760082364,
0.0357455797,
0.3672849536,
-0.2276156098,
0.2897330225,
-0.0722119063,
-0.0454162322,
0.2744019926,
0.000425905,
0.512160778,
0.0745411664,
-0.109556891,
-0.2221310139,
-0.072992146,
-0.1039228216,
0.0380490571,
0.1324604899,
1.1257488728,
0.3289621472,
0.0377923734,
0.3225511014,
0.101145491,
0.4174517691,
-0.3723425865,
-0.0780911148,
-0.1175962687,
-0.1119005531,
-0.075486429,
-0.1083521172,
-0.0685058087,
0.0830525607,
-0.4119776487,
-0.090186432,
0.0935384929,
-0.03786318,
0.0057591796,
0.3582372069,
-0.2234951705,
-0.3446008265,
0.0054325722,
0.25272879,
-0.2597345412,
0.1220235676,
-0.0510406047,
-0.1156578138,
-0.0420906506,
-0.2122898102,
-0.355764389,
-0.0791422278,
-0.1158492267,
0.016398266,
-0.1187103838,
-0.2603161633,
-0.3931947351,
-0.4722169042,
0.1464755833,
0.1668833941,
-0.2364413291,
-0.0338362493,
-0.2105517685,
-0.147363767,
0.0603979044,
-0.1346815228,
0.1946253777,
-0.0242949016,
-0.3363332152,
0.0735559985,
0.0514823943,
-0.0899576098,
0.4749716818,
-0.1214457005,
0.1072713435,
0.134588778,
0.3538152277,
0.2668707371,
-0.3107761741,
-0.284730047,
0.2133522481,
0.254181236,
-0.2631846368,
0.0771746784,
0.0967083126,
-0.0011077076,
-0.2568238676,
0.4368757308,
-0.0553012304,
-0.0261058398,
0.0106997862,
0.221557036,
-0.1990108937,
-0.3756071925,
0.092297323,
0.0463560894,
-0.4406692684,
0.2439428419,
-0.236166507,
-0.3502998054,
-0.241902262,
0.3663055599,
0.3758278787,
0.4089525044,
-0.0247772038,
-0.4372682571,
-0.064976424,
0.3385907412,
-0.2752910256,
0.09091039,
-0.2320911139,
0.5329756737,
0.2194460332,
0.1724180132,
-0.4702297449,
0.0667386204,
-0.3435588777,
-0.0625154004,
0.2846617997,
-0.3762762249,
0.2563640773,
0.2098731101,
0.2285181284,
0.1995831728,
-0.0418578535,
-0.3190549612,
-0.219212085,
0.0413254797,
-0.0831859708,
0.0582529902,
0.1292322576,
0.2694725394,
-0.0234932993,
-0.1886212677,
0.1112307757,
-0.1488513201,
0.0650069416,
0.1702755541,
-0.165492624,
0.0777485818,
-0.0685700178,
-0.245952189,
0.0568089783,
0.0679347813,
-0.0006954893,
-0.0113130305,
-0.1898344606,
-0.1794884354,
0.0908633173,
0.3038335145,
0.1592200696,
0.0141775031,
-0.0317454487,
0.1759510934,
-0.2716870606,
0.3827173114,
0.4669646323,
0.1605249792,
-0.0365919881,
0.0663272813,
-0.1233653426,
0.3364462554,
-0.3178907633,
0.2393033355,
0.029142987,
0.0190667287,
0.4145537317,
0.4714477956,
-0.0747156665,
-0.1081273928,
0.236681357,
0.0667109787,
0.1551907659,
-0.2402076125,
-0.2382584512,
-0.087671347,
-0.0859271139,
0.0475503393,
0.1945166439,
0.1122503728,
0.4746483266,
-0.2354245782,
0.0376125798,
0.1002873629,
0.0405998528,
0.1428983659,
0.327991277,
-0.0409108251,
0.2567055225,
0.2584799528,
0.0455376506,
-0.0206384435,
0.0381924435,
0.5978515148,
-0.1981190294,
-0.0071807541,
-0.4543903768,
0.2818242013,
0.1027123183,
-0.0286311693,
-0.1455938667,
-0.1928229034,
-0.4093618393,
-0.2367831022,
0.1066768095,
0.0303993523,
0.4083539546,
0.0520019382,
0.2306716442,
-0.3958834708,
-0.398216933,
0.1973351836,
0.2946585119,
-0.3110480905,
0.0026078895,
0.5717424154,
0.0518723838,
-0.0503760874,
0.7172045708,
0.21388942,
-0.2227068841,
-0.2931576371,
0.0956835449,
-0.3083189428,
-0.0713373646,
-0.2046503574,
0.0046788473,
0.4872708917,
-0.0667358041,
0.2789954841,
0.2149055004,
-0.3893036246,
0.3618429005,
-0.0075208507,
0.0917414576,
-0.3114086688,
-0.0006605238,
0.162661314,
0.2265349776,
-0.2334200293,
-0.0882821083,
-0.4648963213,
-0.1227077246,
-0.1091863811,
-0.266431272,
-0.0280844066,
-0.1699661762,
0.1203376949,
-0.0369609408,
0.3108157218,
0.428361088,
0.0154276565,
-0.1131108254,
-0.3041282892,
-0.374543041,
0.0971513316,
0.0803197399,
-0.2185717821,
-0.4832021892,
0.3267866671,
0.0939993411,
0.5921644568,
0.0417667404,
-0.2411851883,
0.2161263376,
0.0370695442,
-0.3163022399,
0.204795897,
0.008810835,
-0.1555594653,
0.3016022146,
0.0475177318,
0.0113610663,
0.1880796403,
0.2030012012,
0.1140046865,
-0.3534926176,
0.1826293766,
0.0313194171,
0.3012469411,
0.0594015718,
0.2661763132,
-0.1705604941,
-0.2438609451,
-0.0775655955,
0.0824895427,
-0.0444261618,
0.3249349892,
0.0264937691,
0.269307375,
0.1018017605,
-0.0790501684,
0.0145312883,
-0.0539231934,
0.1040873379,
-0.0490862988,
-0.2996729612,
0.0251365602,
-0.041308552,
0.1729386151,
-0.0592395067,
0.2082296014,
-0.0681930929,
0.1640977859,
-0.0508986712,
-0.5344403982,
0.1976065636,
0.1305537224,
0.021102339,
-0.2160776854,
0.451818049,
-0.6408715844,
-0.1828155965,
-0.4566704929,
-0.1273539066,
0.2505472898,
0.194922477,
-0.1603249609,
0.183748886,
-0.188581869,
0.0023344681,
-0.0384718515,
0.3554103076,
0.1156807542,
-0.1133875325,
-0.1092248559,
-0.1269768178
] |
https://github.com/huggingface/datasets/issues/843 | use_custom_baseline still produces errors for bertscore | Thanks for reporting ! That's a bug indeed
If you want to contribute, feel free to fix this issue and open a PR :) | `metric = load_metric('bertscore')`
`a1 = "random sentences"`
`b1 = "random sentences"`
`metric.compute(predictions = [a1], references = [b1], lang = 'en')`
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'`
Adding 'use_custom_baseline = False' as an argument produces this error
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'`
This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2 | 24 | use_custom_baseline still produces errors for bertscore
`metric = load_metric('bertscore')`
`a1 = "random sentences"`
`b1 = "random sentences"`
`metric.compute(predictions = [a1], references = [b1], lang = 'en')`
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'`
Adding 'use_custom_baseline = False' as an argument produces this error
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'`
This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2
Thanks for reporting ! That's a bug indeed
If you want to contribute, feel free to fix this issue and open a PR :) | [
-0.0237092823,
0.1297198534,
0.1280901432,
0.0422287434,
0.1812677383,
-0.0610474683,
0.4962114394,
0.0543301664,
-0.0781163797,
0.1093736961,
0.0923890471,
0.217301771,
-0.2150026709,
-0.0573223084,
-0.3110678792,
-0.2098558545,
-0.1186006218,
0.254781574,
0.0980244651,
-0.0632236302,
-0.5826329589,
0.0948996916,
-0.5061205626,
-0.2154333591,
-0.3565767109,
0.0306722764,
-0.137858361,
0.0974579602,
-0.1915954947,
-0.434997201,
0.3886695504,
0.2518529892,
-0.050447315,
0.4357791543,
-0.0001216621,
0.0103917718,
0.1038186476,
-0.2130183131,
0.0852771401,
-0.2657136917,
-0.3200362921,
0.2057959437,
-0.1055374369,
-0.2700327039,
-0.0187033787,
-0.0896988362,
-0.30703336,
-0.2126885653,
0.2421083599,
0.4283303618,
0.1078687534,
0.1945307851,
-0.0735884085,
-0.3550615609,
0.0813602954,
-0.3017675579,
-0.1456318647,
0.4351503849,
-0.4142245054,
0.0377761275,
-0.1057628766,
0.0243913047,
0.0382911935,
0.2849421501,
0.4474449456,
0.1052065343,
0.1581571847,
0.0385508016,
0.1076105013,
0.3610637784,
-0.0474517383,
-0.2185913175,
-0.2287302613,
0.0338248909,
0.1287765652,
-0.70863235,
0.0648085922,
-0.2146535069,
-0.1373081654,
0.0183909312,
-0.1703180522,
-0.2219575644,
-0.3350681663,
0.1999560148,
0.0099013075,
-0.0556108765,
-0.1081213877,
-0.0112576559,
0.5676794648,
-0.0950886607,
0.1574657261,
-0.2250989676,
0.0535055287,
0.0574580058,
-0.2062040865,
-0.1097373664,
0.1205601916,
0.0120412074,
0.0549921691,
-0.4186511934,
0.2580143213,
0.0277161449,
-0.0427121259,
0.0072118463,
0.0113448873,
0.4146571159,
0.0075685643,
0.0421951003,
0.0975388512,
0.1913102418,
0.0582837611,
0.042094592,
0.1064490974,
-0.2987895906,
0.4436661005,
0.1426461041,
0.0499455929,
-0.065088585,
-0.0797338784,
-0.0866108909,
-0.3678116202,
-0.182178393,
0.123252213,
0.1614995599,
0.1791388094,
0.328214854,
-0.2257361412,
0.3017470837,
-0.0212725364,
-0.0919406265,
-0.1466501206,
0.1026795506,
-0.4289890528,
0.2630149126,
0.3088879585,
-0.2318418771,
0.3388222158,
0.3215656579,
0.3396806121,
0.066837728,
0.0925774872,
-0.2689785063,
0.1435693502,
-0.1173266172,
-0.0588497818,
-0.1988249421,
0.1535755992,
0.2831661701,
-0.1306264251,
0.1588046253,
-0.2481679916,
-0.2222672105,
0.2047490329,
0.0787290111,
-0.2645999193,
-0.0504630692,
-0.4324559271,
0.1234538406,
0.2307008952,
-0.0401563905,
-0.1669590473,
-0.2125145793,
-0.5594501495,
-0.1909612119,
0.2443026155,
0.1580369174,
-0.6430366039,
0.0087554231,
-0.3277498186,
0.3320311904,
-0.0049079955,
0.0230636448,
-0.1867529601,
0.5240613818,
-0.1446578503,
0.0781478584,
0.1206864715,
-0.3428072929,
-0.3460653424,
-0.3002777398,
0.2792724371,
-0.0698436424,
-0.0094364509,
-0.0923496261,
0.1101372615,
-0.0958161503,
0.2726926506,
-0.2665002346,
0.2159827352,
0.0485863313,
-0.1672810465,
-0.1360290796,
-0.0962840468,
-0.0488965884,
0.0996153653,
-0.0844487101,
-0.0817543715,
0.2319120318,
-0.235677287,
-0.279646039,
-0.0172302481,
0.1953894794,
0.185233742,
-0.3643392622,
0.2012472451,
-0.0331857353,
-0.0130389519,
0.2165409625,
-0.0341513343,
0.3013234735,
0.1570086181,
-0.058636561,
-0.4141344428,
-0.1540224552,
-0.1648740172,
-0.136759147,
0.0208741985,
0.0525806472,
0.0798622966,
0.0717614144,
-0.263243854,
-0.616768539,
-0.2063765228,
-0.0747960508,
-0.1205358654,
0.1412697434,
0.0095125362,
-0.1113907099,
0.2324663699,
0.4710416198,
0.181460917,
0.1329209805,
-0.1492078751,
0.3699566126,
0.0696665943,
-0.0689893514,
0.1675899774,
0.2383375764,
-0.0214522853,
-0.3603651524,
0.1581870914,
0.0130305327,
0.04146339,
-0.0580947362,
0.0373463109,
0.4591891766,
0.1649270356,
0.2114328295,
-0.1492759287,
-0.0983436108,
0.0560316667,
-0.0891299769,
-0.0203594752,
-0.4252584279,
0.0593474507,
0.0462405644,
0.1611883044,
-0.0780129135,
0.1707072556,
-0.1522730738,
0.6477606297,
0.2304107249,
0.3287088871,
0.2288497686,
0.02774808,
-0.1844194531,
-0.2881703377,
-0.2612561285,
0.6102734804,
0.1198473647,
-0.1168617383,
0.300278604,
-0.0058484226,
-0.1454413235,
0.1483455598,
0.2962327302,
-0.1519876719,
-0.0261058994,
0.2358244509,
0.0336825661,
-0.0323422402,
0.0176368877,
-0.0364518389,
0.221445933,
-0.4314707518,
0.1298579723,
-0.3040902019,
0.1482008845,
0.0089215152,
-0.4882219732,
-0.0718789399,
-0.2311622053,
0.0693007708,
-0.0674942881,
0.0923001021,
0.5150327682,
0.1193874106,
0.7285951376,
0.218092978,
-0.0683996603,
-0.0394958705,
-0.3551559746,
-0.0989581496,
0.0130848661,
-0.2014221251,
-0.1084743068,
0.2435634434,
-0.1952926219,
-0.1802336276,
0.1880686879,
-0.3187429309,
0.0281641092,
-0.0842723623,
0.3037754893,
0.5219172835,
-0.1194942743,
-0.1522705555,
0.1433848441,
0.264801383,
0.0178208873,
0.2042802572,
0.0669969171,
-0.2079892009,
0.029855486,
-0.0894270092,
-0.2768168747,
0.3283345103,
-0.1472152621,
-0.1486427486,
0.0162933916,
-0.0162276812,
-0.0395783447,
0.3637638092,
0.272785157,
0.1033836752,
-0.2550579309,
-0.14828071,
-0.6655888557,
0.4515167177,
-0.29107517,
-0.1359454989,
0.0890353769,
-0.2381778955,
0.547031641,
0.0908265561,
-0.2057353854,
-0.5882264376,
0.0714427307,
0.2592980564,
-0.0418430157,
0.0959583968,
0.1591808349,
0.0861904174,
0.0080003291,
-0.1678431034,
-0.1875739098,
0.1888468117,
-0.3293326795,
0.1942364573,
0.1593273878,
0.2722428441,
0.1339790076,
0.8989211321,
0.2725183964,
-0.2730579972,
0.4387996197,
-0.0669014975,
0.3824107647,
-0.3949599266,
-0.3603945076,
-0.1386910826,
0.185206756,
0.089733839,
0.2308573127,
-0.0889834613,
0.3890800774,
-0.0727468506,
-0.2514275014,
-0.0915349871,
-0.3395074308,
-0.0338158458,
-0.0550405383,
0.5190784931,
0.0533269495,
0.3071941733,
-0.3714309335,
-0.2084730119,
-0.1186090112,
-0.163348943,
0.0669530183,
-0.1605889201,
0.2298691124,
0.3610689938,
-0.4554147124,
0.4417238832,
0.0863186195,
0.1025705189,
0.0685720295,
0.4200749993,
-0.1246191338,
0.0207338184,
0.2103987038,
-0.4105679095,
0.0395161919,
0.0080108717,
0.1348180622,
-0.482422024,
0.1323268861,
-0.059830498,
0.0011062659,
0.2754397094,
0.607591331,
-0.1760203987,
0.0478164852,
0.3029841483,
-0.1043115109,
-0.0796753764,
-0.2913921475,
-0.337318927,
-0.189327985,
-0.0420686975,
-0.0433572903,
0.0202028602,
0.2483239472,
-0.0108468644,
0.2280025631,
0.1602769047,
-0.3473769724,
0.1340126097,
0.2677555978,
0.172661826,
-0.1401169002,
0.101267904,
0.1739388704,
-0.6338845491,
0.5574397445,
0.2815367579,
-0.3978596032,
-0.612365365,
-0.0742357299,
-0.0695871562,
0.382763803,
0.1446546316,
-0.2513595223,
0.0405859947,
-0.2011115402,
0.0878572613,
-0.1828406453,
0.3273380995,
0.4565603137,
-0.105944179,
-0.172616303,
-0.5024931431,
0.4625490308,
0.0861485451,
0.0143512338,
0.0512878858,
0.2718209922,
-0.3436960578,
0.2686667144,
0.0771055147,
0.5343257189,
0.3586904705,
0.0433404408,
0.2417574525,
0.2244489342,
0.2928487957,
0.2980551124,
0.0608594157,
-0.1527867615,
-0.018655777,
-0.0219233185,
-0.1315648258,
0.1438339502,
0.1072169244,
-0.275409162,
0.5928211212,
-0.2126577497,
-0.1861468256,
0.0355650783,
-0.1029085889,
0.1143589094,
-0.2550800145,
-0.0573829971,
0.0981800482,
0.0167525224,
-0.1190951988,
-0.0321326256,
0.0632061511,
0.1672268957,
-0.2652075887,
-0.2593877017,
0.0015920326,
0.0619138144,
-0.1357499808,
0.0750087947,
0.0207695067,
0.3008494675,
0.1344204545,
0.6360817552,
0.2668301761,
-0.1996306032,
0.1343502998,
-0.1055972874,
0.0545001775,
0.0288877375,
0.0366788805,
-0.1748998463,
-0.0665100217,
-0.2871818542,
0.1855506599,
0.1030965894,
-0.2627028823,
-0.3800089359,
-0.2893664539,
0.0602563731,
-0.1784207076,
0.1185600311,
-0.1847489774,
0.1300376356,
-0.2566102445,
0.0846287385,
-0.1447119713,
0.0288335755,
0.1587759107,
-0.3751532733,
-0.2457479388,
0.0785043165,
0.3984594345,
-0.1668803692,
0.1826785803,
0.5197715163,
-0.1384220272,
0.0691485554,
-0.0718601793,
0.1067755669,
0.0612332746,
-0.1613896191,
0.3675588071,
0.2718496621,
0.2357189953,
0.1165110096,
0.7036592364,
0.0834743232,
-0.2088409513,
0.1764168739,
-0.1835189164,
0.1219910234,
-0.1745781749,
0.0451838858,
0.0757615566,
0.0343471915,
0.1804422289,
-0.0717566907,
0.0012458581,
-0.1992888451,
0.2200904191,
-0.0626443774,
-0.1084520891,
-0.0790429711,
-0.1588969827,
0.2469672561,
0.0427798517,
-0.0239219759,
0.3228083253,
-0.233499974,
-0.1334549189,
-0.4277101457,
0.1314187795,
0.0555309318,
-0.10273882,
0.030967243,
-0.0170364082,
-0.2394922227,
-0.1901258826,
-0.0479829013,
0.4341008663,
0.0197228082,
0.4265174568,
0.0594020635,
0.2494655401,
0.1284289658,
-0.0400904343,
0.1799040437,
0.3275187016,
0.0259819403,
0.3166768551,
-0.0752787516,
-0.1005653664,
-0.0495298654,
0.0780813247,
0.3835344911,
-0.0928288549,
0.1734526753,
0.0398062505,
0.0129743442,
0.148858279,
0.3509460688,
0.0870778337,
-0.4218040109,
-0.3142793179,
-0.0661007389,
0.0702044517,
-0.4328537583,
0.0043685436,
0.0172025189,
0.4553102851,
0.0943943411,
0.2588647604,
0.1548329443,
-0.1870604753,
-0.0921340063,
-0.0252041705,
0.1609392911,
-0.2590942383,
0.292109251,
0.0573968329,
-0.1557390094,
0.1425217688,
0.5906168222,
0.1923962682,
0.2686834037,
0.6254936457,
-0.161074236,
0.5122526288,
-0.2839606106,
-0.1504519582,
-0.2018976957,
-0.2113232315,
0.1975490153,
0.2666288018,
0.1487216651,
0.1288259476,
-0.1132490784,
0.522883594,
-0.012800945,
-0.0169590432,
-0.42580688,
-0.0685615987,
0.0128792226,
-0.2093354017,
-0.3719134629,
-0.2758210897,
0.015103519,
-0.0126640499,
-0.0385220647,
0.0434074998,
0.1811032593,
-0.0445863716,
-0.0594087467,
-0.0848028511,
-0.1212274358,
0.1452347934,
0.1957995594,
-0.0145120546,
0.1591163725,
0.3156148195,
0.1271768808,
0.1770682335,
0.4339848757,
0.2479566336,
0.2180338204,
-0.0452142954,
-0.2701668441,
-0.0540884808,
0.0116945207,
0.158602953,
0.1665057242,
0.2535260022,
0.3010897338,
0.2748165131,
0.0601846948,
-0.1429127306,
0.5313390493,
-0.1550444216,
0.6881146431,
-0.5048005581,
0.5134904385,
0.0508232191,
0.1847129464,
0.2451090217,
0.0496636368,
-0.1778468937,
0.156032607,
0.2319925278,
0.1972458661,
-0.1477127969,
-0.3273926973,
0.0459556282,
-0.1239374503,
0.4184469283,
0.346573472,
-0.1592113227,
-0.6492036581,
-0.0326099619,
-0.6483088732,
0.0520331562,
-0.1140411645,
0.2721145153,
0.0522236824,
-0.0635034218,
-0.1088920161,
0.4449109435,
0.1597812176,
-0.2190129012,
-0.3276513219,
0.0375855193,
-0.4445096552,
-0.0934093595,
-0.2396304011,
-0.4727939069,
0.1905009151,
-0.2825450599,
-0.2204070091,
-0.1620347053,
0.0217777938,
-0.0148909586,
-0.1854908764,
0.3216651678,
0.3808985651,
0.4474571049,
0.1773631424,
0.3423070014,
0.0542102903,
0.0294937566,
-0.0818482414,
0.0103955567,
-0.1400310993,
-0.018312186,
-0.0683732331,
0.0940100253,
-0.3902924061,
-0.2314219475,
-0.3763727844,
0.1393856406,
0.1452990025,
-0.2436532974,
-0.4069203436,
0.1513779163,
0.080067575,
-0.1785117686,
-0.1112258732,
0.1306918263,
-0.1412380338,
0.4892013073,
-0.1556324512,
0.0389572382,
0.5096234679,
-0.3619692326,
-0.3078296185,
-0.0988691598,
0.2756548226,
-0.1014283523,
-0.3412374556,
-0.7951288223,
0.1672402918,
0.5032973289,
0.1859324276,
-0.1084079966,
0.134021163,
-0.2913139164,
0.1869576871,
0.093709372,
0.2266323566,
-0.0618695356,
-0.2960383892,
0.0938288495,
-0.1918131411
] |
https://github.com/huggingface/datasets/issues/843 | use_custom_baseline still produces errors for bertscore | This error is because of a mismatch between `datasets` and `bert_score`. With `datasets=1.1.2` and `bert_score>=0.3.6` it works ok. So `pip install -U bert_score` should fix the problem. | `metric = load_metric('bertscore')`
`a1 = "random sentences"`
`b1 = "random sentences"`
`metric.compute(predictions = [a1], references = [b1], lang = 'en')`
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'`
Adding 'use_custom_baseline = False' as an argument produces this error
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'`
This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2 | 27 | use_custom_baseline still produces errors for bertscore
`metric = load_metric('bertscore')`
`a1 = "random sentences"`
`b1 = "random sentences"`
`metric.compute(predictions = [a1], references = [b1], lang = 'en')`
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'`
Adding 'use_custom_baseline = False' as an argument produces this error
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'`
This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2
This error is because of a mismatch between `datasets` and `bert_score`. With `datasets=1.1.2` and `bert_score>=0.3.6` it works ok. So `pip install -U bert_score` should fix the problem. | [
-0.0475401878,
0.1264258176,
0.1010242701,
0.0786017329,
0.1025783494,
-0.1123292521,
0.3708125353,
0.0062380042,
-0.0859039351,
0.0964999273,
0.0731695145,
0.3271627426,
-0.1698614657,
-0.0304801017,
-0.314439863,
-0.2213502079,
-0.0507828407,
0.2818050086,
0.0639783144,
-0.0864624158,
-0.5255196691,
0.1529728025,
-0.4210200906,
-0.1924537718,
-0.2500149608,
0.0579411387,
-0.0525204316,
0.1060037166,
-0.286115855,
-0.516274929,
0.4373296797,
0.2641016245,
-0.0446658731,
0.51725775,
-0.0001244289,
-0.0098293498,
0.0957094431,
-0.1925255656,
0.0883705691,
-0.2875190377,
-0.3482612967,
0.1504691243,
-0.0692221448,
-0.2116603553,
-0.0044017062,
-0.0118121635,
-0.2781255245,
-0.1751513034,
0.3080378473,
0.3524614573,
0.0874600261,
0.20121786,
0.0653078929,
-0.3420537114,
0.1931595355,
-0.3299067616,
-0.1392864585,
0.3961022496,
-0.2709240615,
0.056483008,
-0.0680725276,
0.0319632776,
0.0056579709,
0.269556284,
0.4815786183,
0.0913679674,
0.1096119061,
-0.0055418536,
0.0920879617,
0.4091939628,
-0.0803008825,
-0.2674735188,
-0.3128250539,
0.0369421616,
0.0314072445,
-0.6414821148,
0.0790717304,
-0.30487445,
-0.1437419355,
-0.0087263472,
-0.1705685556,
-0.2099005282,
-0.3400881886,
0.2357411385,
0.0795747638,
0.0174180884,
-0.1047036126,
-0.0014911313,
0.547811389,
-0.1566693038,
0.2536183298,
-0.2071748972,
0.0818219483,
0.0793574229,
-0.1765013337,
-0.0984943658,
0.090350166,
0.0529366061,
0.0696579814,
-0.4432584643,
0.2492200881,
0.031259995,
-0.045945432,
0.0243306272,
-0.0558706447,
0.4640090168,
0.0278096385,
0.1170427501,
0.0476971157,
0.2404187024,
0.1034622192,
0.07060913,
0.10227561,
-0.2756899893,
0.3526832461,
0.1294339001,
-0.0083996207,
-0.095928438,
-0.1331214011,
-0.0568198487,
-0.3427047729,
-0.1830417812,
0.1160183772,
0.1568683386,
0.1579166353,
0.3257540166,
-0.2200782895,
0.3330321908,
-0.0409307592,
0.0152140707,
-0.0834591687,
0.1074832976,
-0.3994547427,
0.1989298165,
0.3128273487,
-0.2242765725,
0.3718509078,
0.2852111459,
0.325476855,
0.1721015126,
0.1374448836,
-0.2168228477,
0.1365478337,
-0.1047822535,
-0.0621742979,
-0.1410236657,
0.1644815058,
0.3025271297,
-0.1387708485,
0.1754386574,
-0.2223198563,
-0.1910640895,
0.1717914343,
0.0680138692,
-0.2613268793,
-0.1120785326,
-0.4240527749,
0.0528318584,
0.2243285775,
-0.1529643983,
-0.1727679074,
-0.2411656231,
-0.45763731,
-0.1593729854,
0.2582948804,
0.1398143768,
-0.6280486584,
0.014895156,
-0.3402606249,
0.3336732388,
0.0314758532,
0.0371164493,
-0.1415844113,
0.4862439632,
-0.0757541582,
0.0625222474,
0.1722272038,
-0.4790652096,
-0.4099448323,
-0.2716499865,
0.3522036076,
-0.081455715,
0.0634876341,
-0.1295197755,
0.1314167976,
-0.0889104456,
0.228276372,
-0.2969481349,
0.2183341384,
0.049338311,
-0.2032236755,
-0.2176338732,
-0.1949540973,
-0.0615558624,
0.1458949,
-0.1838213056,
-0.1019393206,
0.2684343159,
-0.2421145439,
-0.2514142692,
-0.0068492293,
0.1727920473,
0.2394326031,
-0.2319907695,
0.2060858905,
-0.0433926992,
-0.0264950022,
0.2278806865,
-0.1440647542,
0.2700976729,
0.0971951708,
-0.0890802518,
-0.477510035,
-0.1666536033,
-0.1690974087,
-0.186443314,
0.0201114863,
0.0931875259,
0.1828805655,
-0.0067808703,
-0.2632794976,
-0.6373130679,
-0.1353189498,
-0.0122357942,
-0.180957064,
0.0817296803,
-0.0653166398,
-0.1508962065,
0.2251846343,
0.4985393882,
0.1647063494,
0.0932754427,
-0.1004620194,
0.3833451867,
0.0325168781,
-0.0487698317,
0.190847531,
0.1934935153,
-0.0505409092,
-0.3579327464,
0.1553336531,
0.0782534331,
0.0530722886,
0.0505022109,
-0.0071352553,
0.3536443114,
0.1620364785,
0.2635677159,
-0.0527431704,
-0.1715869308,
0.0601252615,
-0.0859340131,
-0.0406902395,
-0.4568104446,
0.1455318928,
0.0303775296,
0.2230427712,
-0.1037004814,
0.2699279785,
-0.0982600451,
0.5954115391,
0.1917043477,
0.2943179309,
0.1994552761,
0.0498734042,
-0.1664096415,
-0.2326800972,
-0.1959201396,
0.5780510306,
0.1562898308,
-0.0870840847,
0.2507530451,
-0.0461642519,
-0.1074400544,
0.1028244942,
0.2760709822,
-0.2259878516,
0.0223333687,
0.2249091119,
0.0746871233,
0.0045518652,
0.0407137051,
-0.0784461498,
0.243047595,
-0.4302924275,
0.1707731932,
-0.2852003276,
0.1154575944,
-0.0365211256,
-0.5909371972,
-0.0689785331,
-0.2016039789,
0.0984474719,
-0.0695416778,
0.0940996557,
0.5627199411,
0.1588650048,
0.6345850825,
0.1455809176,
-0.1373710781,
-0.0077176541,
-0.3456173241,
-0.142493248,
-0.0156793706,
-0.1727606952,
-0.0790927932,
0.2614365816,
-0.2617179155,
-0.2088694423,
0.2103563994,
-0.4115683436,
0.043567501,
-0.09284091,
0.3466617167,
0.5264646411,
-0.1340174973,
-0.1735844314,
0.1042518243,
0.2667132616,
-0.0165024139,
0.191716671,
-0.0075534768,
-0.2139125317,
-0.0276622009,
-0.0042332262,
-0.3713999987,
0.3031690717,
-0.185630247,
-0.1432873309,
0.0525252223,
-0.0169996135,
-0.1507220417,
0.3766863346,
0.3246973157,
0.0195613988,
-0.179164052,
-0.0949537158,
-0.6065404415,
0.4005811214,
-0.2512530684,
-0.1187707186,
0.0993176848,
-0.2435000241,
0.5438975096,
0.0890606269,
-0.1721714288,
-0.6287647486,
0.01898445,
0.167138502,
0.0131577495,
0.1537049413,
0.1817463189,
0.1393280178,
0.0057117268,
-0.2012549937,
-0.168732509,
0.1920142472,
-0.4219171405,
0.191048637,
0.1683250517,
0.2982525527,
0.0829058811,
0.998436749,
0.2949471772,
-0.2306021452,
0.4176670909,
-0.0261317119,
0.382689923,
-0.4130401909,
-0.3121482432,
-0.1641317904,
0.2399422824,
0.1465795636,
0.2420160472,
-0.0612965599,
0.4389863312,
-0.0926675275,
-0.1720953882,
-0.16637519,
-0.3272830844,
-0.01045777,
0.0201054402,
0.5321358442,
0.0834748149,
0.2833071351,
-0.3268343508,
-0.2500029802,
-0.1058012098,
-0.1618320197,
-0.0333570726,
-0.0744608939,
0.2539099753,
0.2720234394,
-0.4521150291,
0.5129059553,
0.0967227668,
0.1286410391,
0.0144802704,
0.33947438,
-0.0900989324,
-0.0172882006,
0.1277980506,
-0.4057286978,
0.0249433052,
-0.0481578186,
0.160979569,
-0.4846993089,
0.121554032,
-0.0886701047,
-0.0307449251,
0.338625133,
0.5947797894,
-0.2976599932,
0.0695525259,
0.3657422364,
-0.0862274244,
-0.0149191767,
-0.2503313124,
-0.3436197937,
-0.1520918906,
-0.1540436,
-0.1198301464,
-0.0043401197,
0.222952798,
0.0521181151,
0.19286713,
0.1507240534,
-0.3360337019,
0.1529764235,
0.3328762054,
0.1639513373,
-0.1490715146,
0.083215937,
0.1456440538,
-0.644559145,
0.5847187638,
0.3334155381,
-0.5383554101,
-0.6002219319,
-0.1116994768,
-0.0357831419,
0.2527261972,
0.1808997989,
-0.2176816165,
0.0380878635,
-0.1042932346,
0.1029699296,
-0.0830947012,
0.3479173183,
0.4639831185,
-0.0874485075,
-0.1575490087,
-0.5294523239,
0.4799645543,
0.1455226988,
-0.0228852853,
-0.0147878714,
0.3656589389,
-0.3212710023,
0.3233954906,
0.0711870641,
0.5845336914,
0.3510914743,
0.0616559908,
0.2266029716,
0.180706799,
0.3489798009,
0.3082762361,
0.0471376441,
-0.1556599289,
0.0970693901,
-0.0514414832,
-0.0707823113,
0.1444445848,
0.0954974294,
-0.3130030036,
0.6615694165,
-0.0801576227,
-0.1753312349,
0.0459349751,
-0.1420896649,
0.069301337,
-0.2309723496,
-0.0923205316,
0.0870450586,
0.1109677851,
-0.0641196072,
-0.0626292154,
0.0776703507,
0.0323700085,
-0.3183480799,
-0.3015075028,
-0.0515703,
-0.045739796,
-0.1608881354,
0.100705266,
-0.1219307184,
0.2481878251,
0.0742620528,
0.6118417382,
0.2196631283,
-0.2011512369,
0.1219271272,
-0.0803492069,
-0.0363661051,
0.0418830998,
0.0539518967,
-0.1873030663,
-0.0847094879,
-0.1997786313,
0.1623313725,
0.0749463588,
-0.2091072947,
-0.2846114337,
-0.2393485159,
0.2234269232,
-0.1772480756,
0.0648165792,
-0.2225439996,
0.1136631221,
-0.2210837305,
0.0760359019,
-0.1922016442,
0.0370542258,
0.1392560601,
-0.3807073236,
-0.2317740619,
0.0547252744,
0.3735392392,
-0.1737288237,
0.1404584497,
0.5156523585,
-0.1712532043,
0.0694396272,
-0.0331017338,
0.0473870486,
0.0579796359,
-0.2230158001,
0.2284885198,
0.2958230078,
0.1286979616,
0.1665136516,
0.67712152,
0.1922250092,
-0.2087528408,
0.1540135741,
-0.2043348551,
0.1462815106,
-0.1206800491,
0.0932004079,
0.080723688,
0.0545604974,
0.0711248219,
-0.0874379277,
-0.001255393,
-0.1929500699,
0.1930587292,
-0.0121723264,
-0.0783281177,
-0.0290333498,
-0.1146665365,
0.2602446079,
0.0055249222,
-0.0417125784,
0.2775158286,
-0.2428810894,
-0.1258264929,
-0.38765499,
0.1283794194,
0.074554041,
-0.1210663542,
-0.0004354306,
0.0485574529,
-0.1436317414,
-0.1750052273,
-0.0119160153,
0.3709055781,
0.0360194594,
0.3890732229,
0.0001863809,
0.267827183,
0.1356674731,
-0.0006347261,
0.1431620866,
0.3406484127,
0.0472092517,
0.2938128114,
-0.0505766459,
-0.1108504906,
0.0956291109,
0.0604146346,
0.508589983,
-0.0917664766,
0.1378828287,
0.0066506816,
0.0412439406,
0.1618000418,
0.3347969055,
0.2061111033,
-0.3880253136,
-0.3362265825,
0.0433192514,
0.0623815954,
-0.414481163,
-0.0175597128,
-0.0311293695,
0.3678812385,
0.0829412192,
0.2416049242,
0.1816247851,
-0.2028314918,
-0.0254030153,
0.0475311652,
0.2192850113,
-0.2425727397,
0.3168147504,
0.1429434121,
-0.1601437479,
0.1709576994,
0.5377203226,
0.1467389166,
0.3065434098,
0.5560679436,
-0.1749817729,
0.5516892076,
-0.3667335808,
-0.0827367157,
-0.2097261697,
-0.2243663669,
0.1176198274,
0.1864120215,
0.2387375087,
0.1637249291,
-0.0089431666,
0.5908873081,
-0.0506695174,
0.01712358,
-0.427911222,
-0.0762762725,
0.0743650571,
-0.297432214,
-0.3414059579,
-0.2598403692,
0.0050446689,
-0.0187733397,
-0.0942322463,
0.0429615788,
0.1572689116,
-0.025623206,
-0.0984205455,
-0.1696415246,
-0.1914114952,
0.1319750994,
0.1011878103,
0.0063190535,
0.2313851565,
0.3034433722,
0.0641275123,
0.1433519423,
0.5091141462,
0.3321650326,
0.2770751119,
-0.0855099261,
-0.233901009,
-0.1135617122,
0.0540755391,
0.0989253446,
0.1439588666,
0.2108807862,
0.2965939939,
0.2634877264,
0.0378998369,
-0.1765950918,
0.4662086666,
-0.2152257264,
0.618324101,
-0.4149276316,
0.5195438266,
-0.0124511998,
0.2282213718,
0.2758102715,
0.1006526202,
-0.3554705977,
0.2301422954,
0.1334053874,
0.2126857787,
-0.120324932,
-0.3135839701,
0.0347559042,
-0.1234561056,
0.4652172625,
0.3406946063,
-0.0994318575,
-0.6055417657,
-0.0359831303,
-0.6710898876,
-0.0210810006,
-0.1803077757,
0.2058195174,
-0.0289070662,
-0.111968115,
-0.1211821809,
0.4766065478,
0.1699824929,
-0.2435960919,
-0.2885997295,
0.0912376791,
-0.4174422026,
-0.0837603882,
-0.1503177583,
-0.4924095273,
0.2141640931,
-0.2705979943,
-0.2216987163,
-0.1842904389,
-0.0247655623,
0.0141563118,
-0.2034021318,
0.3416086435,
0.2944445908,
0.4395038486,
0.2000733614,
0.4376272559,
0.0445015132,
0.0343794227,
-0.0662429333,
0.0148656629,
-0.1716548055,
0.031192895,
-0.041882921,
0.0817330629,
-0.4428392351,
-0.3534296155,
-0.3720622361,
0.1289664656,
0.1001344845,
-0.2365227789,
-0.3508350253,
0.141426757,
0.1127921045,
-0.1639039814,
-0.1411023438,
0.1018549502,
-0.0969402194,
0.4392127395,
-0.2368868589,
-0.0387350991,
0.5047758818,
-0.388880223,
-0.2466631383,
-0.1457577646,
0.2097212523,
-0.0687884465,
-0.3297351599,
-0.8442143202,
0.2420659363,
0.4301363826,
0.2046897262,
-0.1272208095,
0.1177575141,
-0.2999601662,
0.1608387679,
0.0565927774,
0.3699770868,
-0.0041962173,
-0.2681502104,
0.086706683,
-0.1939454079
] |
https://github.com/huggingface/datasets/issues/843 | use_custom_baseline still produces errors for bertscore | Hello everyone,
I think the problem is not solved:
```
from datasets import load_metric
metric=load_metric('bertscore')
metric.compute(
predictions=predictions,
references=references,
lang='fr',
rescale_with_baseline=True
)
TypeError: get_hash() missing 2 required positional arguments: 'use_custom_baseline' and 'use_fast_tokenizer'
```
This code is produced using `Python 3.6.9 datasets==1.1.2 and bert_score==0.3.10` | `metric = load_metric('bertscore')`
`a1 = "random sentences"`
`b1 = "random sentences"`
`metric.compute(predictions = [a1], references = [b1], lang = 'en')`
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'`
Adding 'use_custom_baseline = False' as an argument produces this error
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'`
This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2 | 42 | use_custom_baseline still produces errors for bertscore
`metric = load_metric('bertscore')`
`a1 = "random sentences"`
`b1 = "random sentences"`
`metric.compute(predictions = [a1], references = [b1], lang = 'en')`
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'`
Adding 'use_custom_baseline = False' as an argument produces this error
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'`
This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2
Hello everyone,
I think the problem is not solved:
```
from datasets import load_metric
metric=load_metric('bertscore')
metric.compute(
predictions=predictions,
references=references,
lang='fr',
rescale_with_baseline=True
)
TypeError: get_hash() missing 2 required positional arguments: 'use_custom_baseline' and 'use_fast_tokenizer'
```
This code is produced using `Python 3.6.9 datasets==1.1.2 and bert_score==0.3.10` | [
0.0139920935,
0.0406960845,
0.0927704573,
0.0760170668,
0.1578615606,
-0.0484314039,
0.4595750272,
0.0406528264,
-0.0702817813,
0.0988222361,
0.0572405308,
0.2482236475,
-0.2429825217,
-0.091259338,
-0.3137348294,
-0.2044169009,
-0.1234868169,
0.2484202832,
0.1250580847,
-0.0682215691,
-0.6134799719,
0.1149750426,
-0.5267378688,
-0.2245672494,
-0.3061109185,
-0.0073449546,
-0.1297494471,
0.094001621,
-0.1675105095,
-0.4430607855,
0.356636256,
0.2593749166,
-0.0273147933,
0.5043868423,
-0.0001236519,
0.0151399672,
0.0650544316,
-0.2212446183,
0.1006062999,
-0.2754283547,
-0.3003542125,
0.2056780607,
-0.1089259237,
-0.3084517717,
-0.0567070022,
-0.0974941775,
-0.3291550279,
-0.2222902477,
0.2909581065,
0.4247187376,
0.0997442752,
0.1678159237,
-0.0701239854,
-0.3143260181,
0.0707337186,
-0.3041085601,
-0.1328685284,
0.4761042595,
-0.3822273016,
0.0905162245,
-0.0475989096,
0.0151076019,
0.0084915608,
0.2755852342,
0.4619063437,
0.061038781,
0.1685642004,
0.0290290043,
0.1067179441,
0.3407549858,
-0.062636748,
-0.196444124,
-0.1896908432,
0.0891400874,
0.1015937999,
-0.7081445456,
0.0732920319,
-0.2468524873,
-0.1026244313,
0.0150160752,
-0.1463921368,
-0.2310784459,
-0.3840642869,
0.2057587206,
0.096483171,
-0.0224359892,
-0.0936609954,
-0.0103773884,
0.554122448,
-0.1331995279,
0.2133926153,
-0.2867098451,
0.0761624724,
0.0739564151,
-0.2188489437,
-0.0774902701,
0.111297667,
-0.0142225176,
0.0371262804,
-0.4702760279,
0.2807561755,
0.0519438162,
0.0180910677,
0.0164005943,
-0.0885798037,
0.415830642,
0.0310363695,
0.0649345666,
0.0825008154,
0.2168207765,
-0.0032392964,
0.0564350151,
0.0582805462,
-0.3148385584,
0.4590702057,
0.2077644616,
0.0701420903,
-0.0728393495,
-0.0429896824,
-0.1028404161,
-0.402731061,
-0.195809871,
0.1490712911,
0.1795995682,
0.1914666444,
0.3129927218,
-0.1987798661,
0.2753802538,
-0.0125332959,
-0.0601521507,
-0.1233487129,
0.1453827918,
-0.3849170804,
0.2618607879,
0.292667985,
-0.260150522,
0.3255075216,
0.3089479804,
0.3424105942,
-0.00414294,
0.0734395757,
-0.2821100354,
0.1013382152,
-0.1857385635,
-0.0533381701,
-0.2254092246,
0.1736963689,
0.2982821763,
-0.1498628408,
0.1796704978,
-0.2692434192,
-0.2601081729,
0.2153956443,
0.0630152971,
-0.249166593,
-0.0688860118,
-0.4689849317,
0.1305702031,
0.2372387499,
0.0045831427,
-0.1681928039,
-0.1690104306,
-0.5841547251,
-0.1867302805,
0.2247249186,
0.1487062126,
-0.6226084828,
0.0103869811,
-0.2680072486,
0.3499621749,
0.0292985551,
0.0206668898,
-0.1841615736,
0.5567418337,
-0.1364110857,
0.0483743101,
0.1785371602,
-0.407366544,
-0.3432234228,
-0.3021990061,
0.3096628785,
-0.1078898758,
0.0489364155,
-0.105782181,
0.1185814366,
-0.0633808821,
0.2802256644,
-0.2763055563,
0.2693375349,
0.0497650281,
-0.174113512,
-0.1504567713,
-0.1033496112,
-0.0555003285,
0.1072780266,
-0.0930513218,
-0.0682107359,
0.2482919544,
-0.2434185743,
-0.2698497176,
-0.0465708524,
0.2116320282,
0.1940633655,
-0.3016174734,
0.1966774315,
0.0066729262,
-0.0459151939,
0.2049425542,
-0.085631609,
0.3094470501,
0.1192714944,
-0.0633345768,
-0.4761707485,
-0.1659833938,
-0.1861744225,
-0.1153101325,
0.0121974312,
0.0760246813,
0.1235741079,
0.0723396689,
-0.2552816272,
-0.6563646793,
-0.2443366945,
-0.0664544702,
-0.1146558225,
0.1561335325,
-0.0055226767,
-0.1433353424,
0.2601359487,
0.4600881338,
0.2633833885,
0.0992787853,
-0.1747127324,
0.3526405394,
0.0372515954,
-0.0551033206,
0.1486089677,
0.248978585,
-0.025441682,
-0.4127580225,
0.1762646586,
0.0228237323,
0.0518607236,
-0.0410668477,
0.1139835566,
0.4497629106,
0.1684156209,
0.244527787,
-0.1405309141,
-0.1373333633,
0.0315353051,
-0.0921099111,
0.0284692943,
-0.4044121504,
0.1003221944,
0.0690219402,
0.1901564598,
-0.0592133328,
0.2248275876,
-0.1967791319,
0.7020141482,
0.2295794189,
0.3146529794,
0.20030123,
0.0612429567,
-0.1737088859,
-0.3064576387,
-0.2758399248,
0.5699102879,
0.1226789504,
-0.1319177449,
0.3084483743,
0.0509157702,
-0.104494907,
0.152882427,
0.2951427102,
-0.1105295867,
0.0119594652,
0.1853526086,
0.0484521054,
0.0022556484,
-0.0102940649,
-0.0005141273,
0.2762990892,
-0.4457087219,
0.1012325808,
-0.2893080711,
0.1160952449,
0.0153840221,
-0.4470411539,
-0.0500863492,
-0.2175885141,
0.0222832784,
-0.1053765267,
0.1690021157,
0.5220663548,
0.141478166,
0.7223023176,
0.2266035378,
-0.1214422211,
-0.0468004346,
-0.360855639,
-0.0696485341,
-0.0147931837,
-0.1647165418,
-0.0889836699,
0.209137693,
-0.2166951001,
-0.1947315037,
0.2374858856,
-0.326077193,
0.0331063718,
-0.0415858403,
0.2737576962,
0.4932179451,
-0.1144723445,
-0.143974334,
0.1149256378,
0.268317908,
-0.0197641142,
0.2143015563,
0.0747960061,
-0.251996249,
0.0253391638,
-0.0508960038,
-0.3107783794,
0.3045137823,
-0.1827807277,
-0.1988592148,
0.0107530877,
0.0226688851,
-0.0432985052,
0.358271867,
0.3304134607,
0.1229670122,
-0.209484309,
-0.1147246882,
-0.6629087329,
0.4382679164,
-0.2981933653,
-0.1130235046,
0.1229116991,
-0.2544558942,
0.5852691531,
0.0390287526,
-0.2036916763,
-0.6184420586,
0.0393268466,
0.2566469908,
-0.0809666589,
0.0743934736,
0.0919257998,
0.0779965967,
0.008605212,
-0.1452542841,
-0.2045078427,
0.2225305438,
-0.3108864427,
0.1650231332,
0.2436052263,
0.3170930147,
0.1539706886,
0.9103387594,
0.2706150413,
-0.2894460857,
0.4798104167,
-0.0593984351,
0.3143590987,
-0.355412662,
-0.3691222966,
-0.1672537476,
0.2391474545,
0.1340107024,
0.2440320849,
-0.1102438644,
0.433088243,
-0.072506249,
-0.323325336,
-0.1608933359,
-0.330683291,
-0.0512794182,
-0.0570975319,
0.5392922163,
-0.0012503266,
0.2285226136,
-0.3670794964,
-0.2014562786,
-0.0900198519,
-0.1214063764,
0.0307165384,
-0.1189364195,
0.2083637863,
0.4051838517,
-0.4139282107,
0.4988668561,
0.0669778138,
0.1079296917,
0.0215004832,
0.473703295,
-0.0893369988,
0.0336130895,
0.1686111838,
-0.3760926723,
0.0861465409,
0.0106595084,
0.108621411,
-0.438043952,
0.1527946293,
-0.0400889553,
0.0207399949,
0.3356538117,
0.6264055967,
-0.1839398593,
0.0323595405,
0.2444844842,
-0.1218853369,
-0.1041046456,
-0.3233885467,
-0.3281168342,
-0.2228062749,
-0.08939071,
-0.0504237004,
0.0312822461,
0.3153294027,
0.0235155225,
0.1831656843,
0.1488302648,
-0.4003756046,
0.1612761915,
0.2591053545,
0.1627117693,
-0.0894840658,
0.0577949509,
0.1674822271,
-0.6602145433,
0.5150835514,
0.3028129339,
-0.4229429066,
-0.660774827,
-0.1209426001,
-0.054575853,
0.405980885,
0.0957085639,
-0.259775728,
0.1247486249,
-0.1759486794,
0.0940785781,
-0.0982143804,
0.3145962358,
0.4231686294,
-0.100817889,
-0.1693932414,
-0.5441935062,
0.401471287,
0.0640228689,
0.0178908557,
0.034311153,
0.2680590451,
-0.3483161926,
0.2627153993,
0.0803080052,
0.5774644613,
0.316776365,
-0.0194890089,
0.235392496,
0.2079371363,
0.3009339869,
0.3254625797,
0.0168546103,
-0.1357761621,
0.0258885361,
-0.0252000056,
-0.1251006424,
0.176970154,
0.126072973,
-0.3157383502,
0.6133505702,
-0.225956887,
-0.232595697,
-0.0105409343,
-0.0436597914,
0.1495309323,
-0.2235096395,
-0.1270405501,
0.0796341896,
-0.0221545771,
-0.0884339809,
-0.0165914893,
0.0526657216,
0.1608525366,
-0.2936873138,
-0.237305373,
-0.0411993898,
0.0128375292,
-0.1123124063,
0.0519578196,
0.0126615465,
0.3148293197,
0.1824473739,
0.606973052,
0.2493252754,
-0.1622729748,
0.0922043845,
-0.1178654134,
-0.0127977058,
0.0018349737,
0.0610975176,
-0.2082540542,
-0.0953392833,
-0.3335288167,
0.2035051137,
0.1401430368,
-0.2949585319,
-0.3115866184,
-0.2978543341,
0.100194335,
-0.1511560827,
0.0581654496,
-0.1985631883,
0.0589673072,
-0.2253693044,
0.0792948976,
-0.1527477205,
-0.0013032258,
0.1458333135,
-0.3612086773,
-0.2589075565,
0.092863217,
0.3415713608,
-0.173596397,
0.2014154792,
0.56212008,
-0.1293611079,
0.0718695149,
-0.0616951734,
0.1020109281,
0.0135451518,
-0.150965035,
0.3395422101,
0.3096986711,
0.2640449405,
0.1182969213,
0.6846898794,
0.1009592339,
-0.1395332515,
0.1983098984,
-0.183997348,
0.091218248,
-0.2021652162,
0.0457407869,
0.0830530077,
0.0208785906,
0.1670600027,
-0.0462190062,
0.0603760555,
-0.1836853921,
0.2324298471,
-0.1228201091,
-0.1392485499,
-0.0423927605,
-0.1706884354,
0.2101249844,
0.0735417008,
-0.0369077623,
0.296525836,
-0.2218362093,
-0.1250484884,
-0.4624556899,
0.1367423236,
0.0681848526,
-0.0925628543,
0.005986467,
-0.03820768,
-0.2127823234,
-0.1412305832,
-0.0843902752,
0.4205979109,
0.0277717877,
0.4663684666,
0.0805817097,
0.2660742998,
0.0592217892,
-0.0173181091,
0.1376077086,
0.3475301862,
0.0743344277,
0.2801561058,
-0.0333190933,
-0.1043334678,
-0.1088937521,
0.0123446956,
0.455078423,
-0.1400421709,
0.1288694739,
0.0833876878,
0.0280178487,
0.1437486708,
0.2597429156,
0.0604500063,
-0.4357891381,
-0.2595280409,
-0.0562426746,
0.0386526957,
-0.4195454717,
-0.000119552,
-0.0074307825,
0.3897433877,
0.0865792632,
0.2663348913,
0.1477301419,
-0.1425554007,
-0.1165730059,
-0.0469068326,
0.1650987566,
-0.2278245986,
0.3007045984,
0.046049241,
-0.1321202517,
0.1493014395,
0.5626953244,
0.2178753614,
0.2259549946,
0.5427417755,
-0.2035479993,
0.5215117335,
-0.3308874667,
-0.1211792678,
-0.1570494771,
-0.2285766006,
0.1866049618,
0.2842148244,
0.1555815041,
0.1448969245,
-0.1207380667,
0.511541903,
0.0409260318,
0.0316463448,
-0.3718788326,
-0.02036741,
0.0784441978,
-0.2142840922,
-0.3626481891,
-0.2173563838,
-0.0206149369,
-0.0337142535,
-0.0153517108,
0.0180399902,
0.127529189,
0.0207716618,
-0.056384176,
-0.0406956971,
-0.1477532983,
0.1801729798,
0.2092844844,
-0.0137684345,
0.1770894229,
0.326333493,
0.1509557068,
0.1939723492,
0.4427268207,
0.2295702547,
0.2412534654,
-0.0601645783,
-0.2420247197,
-0.0385429971,
0.0249768794,
0.1657060683,
0.1447427124,
0.2192074358,
0.3229824901,
0.2372628897,
0.0401302651,
-0.1470800638,
0.5082961321,
-0.1372558475,
0.6505019665,
-0.4317146242,
0.5439696312,
0.0632282794,
0.190637365,
0.2060281932,
0.1321188062,
-0.2425417006,
0.1380616724,
0.2112993896,
0.2143059969,
-0.1341811717,
-0.3158294559,
0.0322321951,
-0.1516742706,
0.4194208384,
0.3295186162,
-0.0575854965,
-0.6801504493,
-0.0239643678,
-0.6489645839,
0.0207914747,
-0.0896084756,
0.1807385683,
0.0731622279,
-0.0933543965,
-0.1565409005,
0.4147491753,
0.1558231711,
-0.2584221959,
-0.2880345583,
0.0568972565,
-0.4772019386,
-0.0626388043,
-0.2028370649,
-0.4374269843,
0.1991522014,
-0.2851337194,
-0.2248173207,
-0.1306180954,
-0.0007865801,
-0.0512960702,
-0.1994533241,
0.3091574311,
0.4073773026,
0.4424702525,
0.1255679429,
0.3649843633,
0.0341827571,
0.0543565005,
-0.0113639254,
0.0168515965,
-0.1058608368,
-0.0111449473,
-0.0192590877,
0.0463860705,
-0.4178252816,
-0.2572530508,
-0.3420442045,
0.1045596227,
0.0824926645,
-0.3039465249,
-0.3829143047,
0.1456280798,
0.098988086,
-0.17602925,
-0.0864819139,
0.1349319369,
-0.1208004057,
0.4523112774,
-0.2053821385,
0.093054153,
0.5157271624,
-0.3611711562,
-0.3002432883,
-0.0522413924,
0.3067156672,
-0.1005391181,
-0.3011502624,
-0.7532254457,
0.1969090998,
0.5441913605,
0.17015028,
-0.0642262623,
0.1828493327,
-0.269427985,
0.2287347019,
0.0970770046,
0.1186895221,
-0.0839604437,
-0.2456706464,
0.0267213136,
-0.1984725893
] |
https://github.com/huggingface/datasets/issues/843 | use_custom_baseline still produces errors for bertscore | Hi ! This has been fixed by https://github.com/huggingface/datasets/pull/2770, we'll do a new release soon to make the fix available :)
In the meantime please use an older version of `bert_score` | `metric = load_metric('bertscore')`
`a1 = "random sentences"`
`b1 = "random sentences"`
`metric.compute(predictions = [a1], references = [b1], lang = 'en')`
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'`
Adding 'use_custom_baseline = False' as an argument produces this error
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'`
This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2 | 30 | use_custom_baseline still produces errors for bertscore
`metric = load_metric('bertscore')`
`a1 = "random sentences"`
`b1 = "random sentences"`
`metric.compute(predictions = [a1], references = [b1], lang = 'en')`
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
File "/home/stephen_chan/.cache/huggingface/modules/datasets_modules/metrics/bertscore/361e597a01a41d6cf95d94bbfb01dea16261687abc0c6c74cc9930f80488f363/bertscore.py", line 108, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() missing 1 required positional argument: 'use_custom_baseline'`
Adding 'use_custom_baseline = False' as an argument produces this error
`Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/stephen_chan/.local/lib/python3.6/site-packages/datasets/metric.py", line 393, in compute
output = self._compute(predictions=predictions, references=references, **kwargs)
TypeError: _compute() got an unexpected keyword argument 'use_custom_baseline'`
This is on Ubuntu 18.04, Python 3.6.9, datasets version 1.1.2
Hi ! This has been fixed by https://github.com/huggingface/datasets/pull/2770, we'll do a new release soon to make the fix available :)
In the meantime please use an older version of `bert_score` | [
-0.0653989613,
0.1055711508,
0.1252273023,
0.0791323707,
0.1758200675,
-0.1042809933,
0.4214696586,
0.0186610408,
-0.0667723194,
0.1184604019,
0.0306695923,
0.2369848788,
-0.1979216188,
0.0304787233,
-0.3029204011,
-0.2030736655,
-0.1065387577,
0.2290031314,
0.0602316633,
-0.0018444657,
-0.5456943512,
0.1240423247,
-0.4763628244,
-0.1773429364,
-0.3232956529,
0.0166040044,
-0.0931776389,
0.0963591933,
-0.1938428283,
-0.4644753337,
0.3707921803,
0.2937932014,
-0.0783431083,
0.427387625,
-0.0001202581,
-0.0173142478,
0.0906596184,
-0.191996783,
0.0823986828,
-0.3026836216,
-0.3079276383,
0.2507736981,
-0.0756758526,
-0.188136369,
-0.0568040386,
-0.0254873689,
-0.277130425,
-0.2293011844,
0.2610576153,
0.3748821616,
0.1189196259,
0.2487607747,
-0.0141951069,
-0.3966116011,
0.1391548365,
-0.2856472433,
-0.1170235574,
0.4653152823,
-0.4163213968,
0.0323893204,
-0.1525928378,
0.0655749589,
0.0691506714,
0.2131880224,
0.4943489134,
0.1090634614,
0.0412164927,
0.0574478917,
0.1284719557,
0.3740676045,
-0.0500687845,
-0.2580927908,
-0.2682221532,
-0.0349041671,
0.1512615234,
-0.6960838437,
0.0881267637,
-0.298895061,
-0.0544673316,
0.0102440258,
-0.2133378685,
-0.1494620442,
-0.3620055318,
0.1846595109,
0.0540701747,
-0.1190562397,
-0.1737606227,
-0.0061601624,
0.6393914819,
-0.1262257844,
0.0312472507,
-0.1602530628,
-0.0081801955,
0.0703398287,
-0.2226916105,
-0.1142826229,
0.110588178,
-0.0201597139,
0.0919514671,
-0.3600735366,
0.2725132406,
0.0309920125,
-0.0768300295,
0.0010993555,
0.0304140076,
0.4342124164,
0.0872666314,
-0.0564135835,
0.1268501878,
0.2700209022,
0.1153945327,
0.025865268,
0.0955618396,
-0.2423227429,
0.3633945584,
0.1154834628,
0.0006461591,
-0.1070114002,
-0.1145092696,
-0.0489159711,
-0.2870640457,
-0.1943377107,
0.171410799,
0.2480600178,
0.176598087,
0.2997084856,
-0.2521528602,
0.2725553215,
0.0030378848,
-0.0681253225,
-0.1418929696,
0.0871893615,
-0.3522244096,
0.2969469428,
0.3173726797,
-0.2396322787,
0.3552743196,
0.2791145444,
0.3951644301,
0.0837469995,
0.0532857999,
-0.2689548433,
0.15192689,
-0.1623132974,
-0.0842926577,
-0.2084585726,
0.1395537704,
0.276730299,
-0.1474154741,
0.1042363197,
-0.202721566,
-0.2549833059,
0.2148386836,
0.0910433307,
-0.2995554209,
-0.0900901407,
-0.4372724295,
0.1694346964,
0.1358771175,
-0.0942053348,
-0.129592821,
-0.1712070405,
-0.5282449126,
-0.1445285231,
0.3029251695,
0.2183141112,
-0.5863319635,
-0.0307364166,
-0.2681742907,
0.2509888411,
-0.0577306375,
0.0461668968,
-0.116925545,
0.4635560513,
-0.0958913416,
0.0920358449,
0.0361048654,
-0.328422606,
-0.3902490139,
-0.3276284635,
0.310356617,
-0.0577137098,
0.0274140909,
-0.0931733996,
0.0315852053,
-0.0997009724,
0.2024671137,
-0.2675180733,
0.1949836314,
0.0600166693,
-0.1490323246,
-0.1651211381,
-0.167513445,
-0.0138967782,
0.0807847977,
-0.1848624945,
-0.0777183771,
0.304007709,
-0.2377139926,
-0.2887170017,
-0.025066426,
0.1667810678,
0.1623032987,
-0.2954117954,
0.1781115979,
-0.0408694111,
-0.0651673079,
0.2309506983,
-0.0847039521,
0.2836992741,
0.1728591621,
-0.092501983,
-0.4605922401,
-0.114395164,
-0.1628157496,
-0.1544780582,
0.0337181874,
0.0203068238,
0.1430739462,
0.111338228,
-0.287396878,
-0.6143477559,
-0.2077047527,
-0.0551247634,
-0.1873977184,
0.0940351859,
0.0287738536,
-0.125412479,
0.268602252,
0.5271696448,
0.1975512207,
0.1344727725,
-0.1280670166,
0.4088067114,
0.0464215167,
-0.0431451686,
0.1315711141,
0.2197875381,
0.015162373,
-0.3446043432,
0.0824563131,
0.0367513597,
0.0169553161,
0.0046335012,
-0.0471120812,
0.4674699903,
0.0854474306,
0.2155937105,
-0.0656197071,
-0.1301856339,
0.014337644,
-0.0257113352,
-0.0032304376,
-0.446957469,
0.1062189117,
-0.0156326555,
0.1746184975,
-0.1073337197,
0.1675824374,
-0.1494363844,
0.5737681389,
0.1685095727,
0.3206821382,
0.2710584104,
0.0261099879,
-0.2036249042,
-0.2102164626,
-0.3017738461,
0.5065484643,
0.1265648454,
-0.1132989749,
0.298645854,
0.0085953251,
-0.1254894733,
0.1335161626,
0.2480135858,
-0.1131372601,
-0.0160017684,
0.2157014012,
0.0475164838,
-0.0509589985,
0.0090922117,
-0.1127003729,
0.2533234954,
-0.4297867417,
0.1104356945,
-0.3132548034,
0.0675637722,
-0.0020467229,
-0.4873190224,
-0.1534596384,
-0.226682514,
0.1109824702,
-0.021897167,
0.0506071895,
0.4909876883,
0.1721706688,
0.6954314709,
0.1758468002,
-0.0201320034,
-0.0392874479,
-0.4039443731,
-0.0806418359,
0.0235445723,
-0.1637842059,
-0.1326149851,
0.293667376,
-0.2023093849,
-0.2084415108,
0.1652981937,
-0.3238096833,
0.0610866807,
-0.0988682881,
0.3026757538,
0.5101534724,
-0.1756212562,
-0.2481601536,
0.1170615703,
0.2749008536,
-0.0380745307,
0.2095594257,
0.0698152483,
-0.2160651237,
0.0669877082,
-0.0378152691,
-0.2673088014,
0.3557491899,
-0.125671193,
0.0374209508,
0.0129872411,
0.0083141858,
0.0341927372,
0.3668733239,
0.372736007,
0.0499804057,
-0.1662341356,
-0.1761748046,
-0.6425845027,
0.3792100251,
-0.3096801043,
-0.1714021415,
0.0285000578,
-0.1941158623,
0.4604351819,
0.0138926059,
-0.1628637016,
-0.6429672837,
0.0338858441,
0.2201705873,
-0.0202885065,
0.1086329892,
0.1279484332,
0.070192039,
-0.0310325716,
-0.1363000423,
-0.170853734,
0.2175341547,
-0.4094269574,
0.1471416056,
0.1625188738,
0.2354808003,
0.1228955612,
0.8513765335,
0.2858024836,
-0.1723719239,
0.4137634039,
-0.069291532,
0.4069242477,
-0.4315744042,
-0.308442831,
-0.0779513419,
0.1519485861,
0.170107916,
0.256590873,
-0.0720674023,
0.4978998899,
-0.0773519054,
-0.2730073035,
-0.0725357234,
-0.3479660153,
-0.0067148898,
0.0119997794,
0.4621519446,
0.0531114414,
0.3101490736,
-0.3184791803,
-0.2585997283,
-0.080090642,
-0.1923868656,
0.059360195,
-0.1621018648,
0.2538945079,
0.3043077886,
-0.5376891494,
0.490796268,
0.1324539334,
0.0841787159,
0.0115161911,
0.3476765156,
-0.1114818603,
-0.0016955435,
0.1612249911,
-0.3205765486,
0.0519811921,
0.0078490004,
0.0893843397,
-0.4751477242,
0.195833534,
-0.091548048,
-0.045059979,
0.284635365,
0.6144077182,
-0.2590408921,
0.0209019519,
0.338450402,
-0.0882209837,
-0.0520392656,
-0.2890385687,
-0.3144127727,
-0.1584339589,
-0.0857419744,
-0.0695387125,
0.0334755331,
0.2594649196,
0.0098923035,
0.2843876481,
0.1427080333,
-0.3517610431,
0.1875328422,
0.3193559647,
0.1910391301,
-0.094984442,
0.0976455212,
0.2399773002,
-0.6102175713,
0.5049684644,
0.3000901341,
-0.4140460193,
-0.6082893014,
-0.0720816106,
-0.0237804428,
0.3444718421,
0.1610895991,
-0.2345910966,
0.096823439,
-0.1430869251,
0.1310018897,
-0.2406670451,
0.3252993226,
0.4248113632,
-0.1367211044,
-0.1481281668,
-0.4227299094,
0.5183258653,
0.1018856913,
0.0071886033,
-0.0038972804,
0.3827878237,
-0.3182103634,
0.2791960835,
0.0846850276,
0.4901046753,
0.2753660977,
0.0245342851,
0.2900431454,
0.1830845922,
0.3743002415,
0.3055677116,
0.0335660912,
-0.1801935732,
-0.0225127079,
0.0362516567,
-0.0294747353,
0.1254557967,
0.0717084631,
-0.2818481922,
0.6017314196,
-0.1307421923,
-0.1639170945,
-0.0053628944,
-0.0650169477,
0.0758874789,
-0.3066626489,
-0.1337849647,
0.1088935882,
0.0349918455,
-0.113053292,
-0.0032094941,
0.1066663116,
0.1519919932,
-0.2874344587,
-0.2890518308,
-0.0212418288,
0.0700578392,
-0.1893223822,
0.1021171212,
-0.0341682881,
0.3054361939,
0.1074921191,
0.637758255,
0.2460401207,
-0.2074767053,
0.1262593716,
-0.1689177752,
0.0338989422,
0.0147840492,
0.0716977417,
-0.1978401989,
-0.0963169709,
-0.2559717894,
0.1424472928,
0.1260790974,
-0.1926222146,
-0.3124897182,
-0.3262654841,
0.0765812099,
-0.1488461792,
0.1370488107,
-0.2489932328,
0.1425113827,
-0.246016413,
0.0948803574,
-0.1482519209,
0.0463663004,
0.055311054,
-0.3352035284,
-0.2087283731,
0.0580326952,
0.4250164628,
-0.2554198205,
0.1469246894,
0.4983084798,
-0.0873438641,
0.0471858606,
-0.0636234432,
0.1186027229,
0.1683364958,
-0.2462573498,
0.2997990847,
0.3104069829,
0.1527512223,
0.091571942,
0.7438474298,
0.1266749799,
-0.21943672,
0.2081773728,
-0.1710686982,
0.0963264108,
-0.1248527467,
0.1101640761,
0.0800840706,
0.0851047337,
0.1306932122,
-0.1125176996,
0.0472441986,
-0.2121937275,
0.2070273459,
-0.1134932786,
-0.1501968205,
-0.0465592965,
-0.1763800085,
0.2995874286,
0.0289712623,
-0.0031542629,
0.3445774317,
-0.2078132927,
-0.1346689612,
-0.4393573105,
0.106545195,
0.0074743442,
-0.0946999788,
-0.0095294192,
0.0501480997,
-0.2235762328,
-0.2341234982,
-0.0193771906,
0.413385272,
0.0612049811,
0.4334383607,
0.0264650099,
0.227765128,
0.1173274666,
-0.0473477915,
0.2234376222,
0.3463306129,
-0.0125480853,
0.2922860384,
-0.1184533983,
-0.1145232767,
0.0115729496,
0.115279153,
0.4361109734,
-0.1534216851,
0.1395267844,
0.0549850352,
-0.0531128943,
0.1615714431,
0.3761327863,
0.0671467707,
-0.3552522659,
-0.3730356991,
-0.0390149876,
0.0675004348,
-0.4121430814,
0.0141475834,
-0.0619882867,
0.3827050328,
0.0940745026,
0.2849512696,
0.1263647825,
-0.1524021775,
-0.0832106397,
-0.0063979477,
0.1320808828,
-0.1703867763,
0.2363167554,
0.0356842354,
-0.1092456356,
0.1019774973,
0.5675432682,
0.173668474,
0.3719372153,
0.4825724065,
-0.2171817571,
0.4797877073,
-0.4271301031,
-0.0366538502,
-0.1633063555,
-0.2361465096,
0.1992265284,
0.289411366,
0.1696044356,
0.0940024778,
-0.1354034245,
0.6976357698,
-0.0564677119,
-0.0413110629,
-0.3993127644,
-0.0470610969,
0.0599518269,
-0.2644567192,
-0.3217131197,
-0.276230216,
-0.0094794333,
-0.0000550076,
-0.0773513839,
0.0037152646,
0.1688000262,
-0.0301578231,
-0.0176367573,
-0.1436505765,
-0.1962628067,
0.1265273392,
0.2020414174,
0.0204993412,
0.1888608634,
0.3693974614,
0.1587788761,
0.2183809578,
0.4889180064,
0.2557505071,
0.1460047215,
-0.0246484932,
-0.1974701881,
-0.1207058728,
0.0464285836,
0.1615693122,
0.1537140459,
0.2954897881,
0.2286319435,
0.3217761815,
0.0555734076,
-0.1409089565,
0.4595601559,
-0.1289278716,
0.6855302453,
-0.492008239,
0.4960342646,
0.0206033885,
0.214335382,
0.2529294789,
0.0248401631,
-0.210689202,
0.2555236816,
0.1016037911,
0.2023913115,
-0.1319220066,
-0.2983576059,
0.0570167154,
-0.0494173616,
0.4805620313,
0.2433167547,
-0.1569368243,
-0.6128854156,
-0.0559757873,
-0.7017795444,
0.016539067,
-0.0322364345,
0.2955346406,
0.0617187321,
-0.1260979623,
-0.1343747377,
0.4902208149,
0.1386624724,
-0.2364030182,
-0.3039499521,
0.0087615103,
-0.3811795115,
-0.0606721714,
-0.1999620646,
-0.4957594573,
0.1941893399,
-0.2205467224,
-0.1901516318,
-0.1369558126,
-0.0039147884,
-0.0027137194,
-0.1556366235,
0.1915473789,
0.3085132539,
0.4104911685,
0.1946676224,
0.3023006618,
0.0211826488,
0.0073802099,
-0.0617017634,
-0.0012754463,
-0.1275006235,
-0.0074594524,
-0.0871496052,
0.0897252858,
-0.3511867225,
-0.2627790272,
-0.3653202653,
0.1832742095,
0.1086657271,
-0.2378021032,
-0.4509292245,
0.1449363083,
0.1193900108,
-0.202601701,
-0.1660807729,
0.1367264092,
-0.1208843738,
0.5144051909,
-0.1965546906,
0.0217105374,
0.5324782133,
-0.4166594446,
-0.2275542915,
-0.0542860813,
0.2549731433,
-0.0397068188,
-0.3813864291,
-0.8497496843,
0.2573447526,
0.4507563412,
0.2204397619,
-0.1265244633,
0.0851906836,
-0.3977726996,
0.1467455178,
0.0594751686,
0.323884517,
0.0100373253,
-0.2801130414,
0.1192413867,
-0.1822178364
] |
https://github.com/huggingface/datasets/issues/842 | How to enable `.map()` pre-processing pipelines to support multi-node parallelism? | Right now multiprocessing only runs on single node.
However it's probably possible to extend it to support multi nodes. Indeed we're using the `multiprocess` library from the `pathos` project to do multiprocessing in `datasets`, and `pathos` is made to support parallelism on several nodes. More info about pathos [on the pathos repo](https://github.com/uqfoundation/pathos).
If you're familiar with pathos or if you want to give it a try, it could be a nice addition to the library :) | Hi,
Currently, multiprocessing can be enabled for the `.map()` stages on a single node. However, in the case of multi-node training, (since more than one node would be available) I'm wondering if it's possible to extend the parallel processing among nodes, instead of only 1 node running the `.map()` while the other node is waiting for it to finish?
Thanks! | 76 | How to enable `.map()` pre-processing pipelines to support multi-node parallelism?
Hi,
Currently, multiprocessing can be enabled for the `.map()` stages on a single node. However, in the case of multi-node training, (since more than one node would be available) I'm wondering if it's possible to extend the parallel processing among nodes, instead of only 1 node running the `.map()` while the other node is waiting for it to finish?
Thanks!
Right now multiprocessing only runs on single node.
However it's probably possible to extend it to support multi nodes. Indeed we're using the `multiprocess` library from the `pathos` project to do multiprocessing in `datasets`, and `pathos` is made to support parallelism on several nodes. More info about pathos [on the pathos repo](https://github.com/uqfoundation/pathos).
If you're familiar with pathos or if you want to give it a try, it could be a nice addition to the library :) | [
-0.3369055092,
-0.3196837306,
-0.1686350405,
-0.0785497725,
-0.1322285384,
0.0334653109,
0.0507948399,
-0.0447822623,
0.2389206141,
0.2358291149,
0.2544298172,
0.5422919989,
-0.1578518152,
0.3227920532,
0.0088176206,
-0.4016123712,
0.0359969586,
-0.0369440727,
-0.0063832738,
0.2683170438,
-0.0824367329,
0.0330716297,
-0.374109447,
0.0420586206,
-0.0999500602,
-0.1551181227,
-0.1367376745,
-0.0298171937,
-0.0436846204,
-0.2958490252,
-0.2203300893,
0.3011390269,
0.0312905088,
0.3520685732,
-0.0001225286,
0.0020046383,
0.2021494061,
0.1364621073,
0.2638629079,
-0.2030467689,
-0.2922288179,
-0.1116601825,
0.2072142065,
-0.1412636042,
-0.0572502464,
0.1294001341,
0.2296904176,
-0.4878688157,
0.0606239066,
-0.1914959848,
0.06735719,
0.3336281478,
0.071179688,
0.2239811122,
-0.522539258,
0.1676173359,
-0.0575987846,
-0.1018254533,
0.65283674,
-0.3768670559,
-0.116237849,
-0.0478889346,
0.050526008,
0.1481446773,
0.0178735778,
-0.2197746485,
0.5481134057,
-0.6776028872,
-0.1363918334,
0.1981158257,
-0.0967677385,
0.0911059007,
-0.2966388166,
-0.085398525,
-0.3229725957,
-0.2332476377,
-0.1775847822,
-0.0001216754,
0.003138721,
-0.1174951941,
-0.5662784576,
-0.4102546275,
0.0705284998,
0.2957290113,
0.1834559739,
0.6211111546,
0.2272425741,
0.2678335309,
0.3702204227,
0.1326149255,
0.0390930884,
0.0203602463,
0.3610495925,
0.2500994802,
-0.3338700831,
0.0637048408,
0.0589842945,
-0.1692203134,
-0.2133904696,
-0.258184135,
0.2163923085,
0.2993528843,
-0.2664532363,
0.445784688,
0.157731697,
-0.1810771227,
0.0875635445,
0.3615336716,
0.1224436685,
-0.2412857115,
-0.0981192961,
0.0740632266,
-0.0364696607,
-0.4829165339,
-0.4006953239,
0.3822459877,
-0.3058329523,
0.3852476478,
0.3548586965,
-0.3782684505,
-0.1410484463,
-0.2402353585,
0.3023349941,
-0.2119239122,
0.442247659,
0.3982145786,
0.0631740987,
0.2084139585,
-0.1993977875,
-0.2483126372,
0.0638077706,
-0.0258910321,
-0.1408362985,
0.158697024,
-0.0259820595,
0.0150854141,
0.020952031,
-0.1133031398,
0.1074198931,
-0.0729565546,
0.4114919901,
0.0906189978,
0.0863064677,
0.3343431652,
0.0364172757,
-0.0127970129,
0.0399881005,
0.6484881639,
-0.1837859154,
0.2720243931,
-0.4591770768,
-0.3027990758,
0.2662402093,
-0.06130822,
0.2564394474,
0.0969899148,
-0.3469529152,
0.1863739192,
0.3003368676,
-0.2851771116,
0.2693240047,
-0.1820216328,
-0.624484539,
-0.1700149179,
0.3108028769,
0.0200384706,
0.1818707734,
-0.023772411,
-0.1502302587,
-0.0657918453,
0.2736564577,
0.0446196422,
-0.2955273986,
0.1507145166,
0.1166546494,
0.316773355,
0.0656707957,
-0.3526521325,
0.4236594439,
0.3865176141,
-0.3203390837,
0.0235285535,
-0.2047753483,
0.0141236521,
-0.1535022259,
0.1601706445,
-0.0434376337,
0.2964767516,
-0.0211057216,
0.0839056894,
-0.1153803244,
-0.2237192839,
0.1503992677,
0.0188089386,
0.2296516001,
0.1636521816,
-0.0292276181,
-0.4754523933,
0.3516525924,
-0.0050841691,
0.3887658417,
0.0353225395,
-0.202608183,
0.1578772962,
-0.1569878757,
-0.2968689203,
0.2742409706,
0.2267601043,
-0.38455531,
-0.2667267323,
0.1944016516,
-0.0281354263,
0.6583572626,
-0.020372238,
0.0132354479,
-0.0133069409,
0.0218380615,
-0.1558613628,
-0.1386221796,
-0.2770653367,
-0.1314103901,
0.1661049128,
0.1653208733,
-0.0123665817,
-0.1140140072,
0.2490855455,
0.007622648,
0.1042490676,
-0.377438128,
0.0114932517,
0.0409494415,
-0.0934705585,
0.0581271574,
0.2879987061,
0.139239639,
0.3358106315,
0.2157693505,
0.335901767,
0.3863935471,
-0.108279556,
-0.0061821993,
-0.1044881195,
-0.1360841841,
-0.2529003024,
0.466763258,
0.2141511142,
-0.0421638303,
0.2636611462,
0.0598159656,
0.1984926909,
-0.0791038871,
0.1946502775,
-0.1260085702,
0.1594269723,
0.1235278994,
0.0014308169,
-0.1964187324,
-0.1850949824,
-0.2523138523,
-0.0365094393,
-0.191624403,
0.0773271695,
-0.1236759424,
-0.179443866,
0.0905996487,
0.154921785,
0.2646669745,
-0.2878609598,
0.2626062036,
-0.1082956046,
0.3512687385,
0.0805042982,
0.0600421242,
-0.0556467511,
-0.0219646394,
0.1413631141,
0.4599149227,
-0.123783052,
0.0615025088,
-0.0394493528,
0.1551724672,
-0.1666533649,
0.3832471967,
-0.1452602744,
-0.0825025663,
0.3208310604,
-0.255407989,
0.0117314085,
0.0800674558,
-0.4001924992,
0.0283892415,
0.0566959903,
0.0959387273,
0.2010516673,
-0.1413587481,
0.2351786792,
0.2716400623,
0.1544080824,
-0.1668894887,
-0.2972884774,
0.1566223502,
-0.0717363879,
0.3108198941,
-0.020900147,
0.097418353,
0.0560164414,
-0.1543946862,
0.3162545562,
-0.1721548885,
-0.1625140309,
-0.1071024388,
-0.1085599065,
0.1113178879,
-0.1270816326,
-0.0457958952,
-0.1687176526,
0.0315192491,
-0.1978415549,
0.1965869963,
-0.2807556987,
-0.0775249973,
-0.1319007874,
0.0424578898,
-0.314879477,
-0.2894265354,
-0.0161797144,
-0.3274705708,
-0.2385782003,
0.5306856632,
-0.113502413,
0.2678408623,
-0.3076744378,
0.0607953742,
-0.2777212262,
-0.2799751461,
-0.2050078809,
0.3062929213,
-0.4266135991,
0.0779462904,
-0.2861334085,
0.0420377068,
0.0888574123,
0.1036922038,
0.3386368454,
0.4227600396,
0.1103587672,
0.2011970878,
0.1311055571,
0.1691944003,
0.0740513206,
0.0106884111,
0.4992431402,
0.0048930049,
0.1549523771,
0.0984934494,
0.1453433633,
0.2018732131,
0.314935416,
-0.0234792568,
0.3149955273,
-0.0544723421,
0.0026230663,
0.6437373161,
0.1863560975,
-0.0420931764,
0.1919638813,
0.0683294535,
-0.338412255,
0.1102453992,
-0.1958667785,
-0.0822985545,
-0.2924408913,
-0.2481646687,
0.0276504941,
-0.0030349568,
-0.4998778403,
-0.292127192,
0.0563714802,
-0.3272603452,
0.0083569065,
-0.138854444,
-0.2200656831,
0.7672846317,
-0.2289754599,
-0.3485978246,
-0.248813957,
0.3278870285,
-0.2051015496,
0.1145916879,
0.4850686491,
-0.121566914,
-0.2425574362,
-0.2685331404,
-0.1603891551,
0.1594320834,
0.2481434643,
0.2303038836,
-0.144482404,
0.0974029601,
0.2635605037,
-0.0855031013,
0.3454562724,
-0.457462281,
-0.2319710553,
-0.0245312788,
-0.5518500209,
0.1544320583,
-0.0578172654,
0.1378307194,
0.414722234,
0.4971224666,
0.0621996894,
0.1970851272,
-0.0779508501,
-0.2383117378,
-0.3341006637,
-0.0130305439,
-0.239477396,
-0.1139990389,
0.1875664592,
0.0187089145,
0.1372367591,
0.0922417641,
0.0444069132,
-0.0825208575,
-0.0536535271,
0.2551804781,
0.0913653523,
-0.1172084659,
0.0785813481,
-0.255515039,
-0.1166596636,
-0.038508404,
0.3323031366,
-0.2792897224,
0.2440062165,
-0.0023077107,
-0.2696370184,
0.1186040714,
0.0186825059,
0.0575737245,
0.547956109,
-0.0063472688,
0.0025868379,
0.2468771487,
0.3662627637,
-0.0753519014,
-0.427934736,
-0.1515331268,
0.2849559188,
0.1896311641,
-0.0807339847,
-0.1994791627,
0.233225584,
0.3173644245,
-0.1335045844,
0.5590897202,
-0.7157699466,
-0.1514615864,
-0.0580991618,
0.1186354458,
0.4146723151,
-0.3008107245,
-0.1821463704,
-0.5093063116,
-0.0542030893,
0.0405045897,
-0.6150126457,
0.4420184493,
-0.0092680901,
-0.1447690278,
-0.1018303037,
-0.0206129178,
0.504596293,
0.572945118,
-0.0295713693,
0.100184314,
0.3352404833,
-0.4507000744,
-0.123935692,
0.0944955423,
0.5542975068,
-0.1666267067,
0.5189484358,
-0.0140088201,
0.1069432199,
0.1352588236,
-0.0473030508,
-0.1290605068,
0.1321746707,
0.0707655847,
-0.2802155614,
-0.2274744809,
-0.2805257738,
0.0318158045,
0.0266724527,
0.2813256681,
0.4023771584,
0.4176656902,
-0.1105031297,
-0.0568222217,
-0.154367134,
-0.1712693721,
0.2499727905,
-0.1161380112,
-0.4350855649,
-0.1170087233,
-0.2085591406,
-0.0701493099,
-0.3550237715,
-0.0110200848,
-0.0848319605,
-0.5259230137,
-0.2172739655,
0.4013300538,
0.1704330742,
0.5439364314,
0.0414081588,
0.3589699864,
-0.027284231,
0.0484288782,
0.0243726671,
0.2353883535,
-0.3888370991,
0.4202179015,
-0.4228855669,
-0.1100678295,
0.1594162881,
0.2093491256,
0.0689661205,
0.0010660216,
-0.3470278382,
0.4052498937,
-0.1667878479,
-0.0888365656,
-0.3233778179,
-0.1296026111,
0.6013835669,
0.0267297998,
0.3127379417,
-0.0706744343,
0.1087550521,
-0.1204053164,
-0.1222477406,
0.3277975917,
-0.2691645026,
-0.2020101547,
-0.1639292538,
0.0102074239,
-0.4468430281,
0.0389557444,
0.2557688951,
0.1791651994,
0.3046798408,
0.5270442963,
-0.1095569581,
0.0972323194,
0.1379777789,
0.1390129179,
0.2224270999,
0.065205887,
-0.2121953964,
0.0151989609,
-0.0929198936,
0.0756128877,
-0.0860994756,
-0.0377708077,
0.2506556809,
0.1767221093,
0.1925658286,
-0.1069151759,
0.3903735876,
-0.1686287969,
-0.2094804645,
-0.1731236279,
-0.031253837,
0.0309491307,
-0.1018218994,
0.2018514127,
0.2333862782,
-0.0485738665,
-0.3915388584,
0.3528501689,
0.1057591438,
-0.1072907299,
-0.1105403453,
0.1556721926,
0.2883765697,
-0.1442365944,
-0.0850944668,
-0.2678102851,
0.2005625218,
-0.0508219711,
0.3649410903,
0.1507486105,
-0.0474670418,
-0.4286774397,
0.369869113,
0.118360959,
0.0610656925,
0.3107893467,
-0.0347313285,
0.0024827379,
-0.0003458336,
-0.0497608818,
0.3888872862,
0.2213275284,
0.2612662315,
0.2090933323,
0.4744571745,
0.141767174,
-0.1024059132,
0.1506481022,
-0.2302345634,
-0.3846204579,
0.1483996809,
-0.0840587988,
0.1118760929,
0.0653531253,
0.1206891909,
0.1489318907,
-0.1694586575,
-0.0262508988,
0.0463695563,
0.6140072346,
0.4706125259,
-0.0234554112,
0.234885782,
-0.2129797339,
-0.3037586808,
-0.0854921341,
0.0686823875,
0.207735613,
-0.1716061831,
0.238211289,
-0.2456057221,
-0.3759761751,
-0.0106185004,
0.4144327343,
-0.141971752,
-0.1881617159,
-0.321308136,
0.000907287,
-0.0316227004,
-0.1063456312,
0.189876169,
0.151759088,
1.0623282194,
0.0633839369,
0.0991476104,
-0.0641374961,
0.0515116602,
-0.0943849385,
0.220499754,
-0.0740342289,
0.2023745626,
-0.2133173794,
-0.3748239875,
-0.1249232367,
0.1434621066,
0.0070965365,
0.108401224,
-0.1320802569,
0.1315676421,
-0.2157431841,
0.1091265231,
0.0746298283,
0.2510554194,
0.1244945079,
-0.0163331553,
-0.0062668696,
-0.0468384959,
-0.0448911041,
0.2159847915,
0.0012290385,
0.5676509738,
-0.046030391,
0.282024622,
0.0842241943,
0.0618719459,
0.1470473409,
0.0061162226,
-0.2501156628,
0.1226874739,
0.2114709318,
-0.464917779,
-0.2161206305,
-0.020547878,
-0.0445126742,
-0.1639262587,
0.2474394739,
0.3628326356,
0.1625463516,
-0.2349161655,
-0.2758197486,
-0.1981354952,
0.0529950932,
-0.3341671824,
0.1772065908,
-0.1068425775,
0.0287185013,
0.0604207441,
0.1646991968,
0.2909303308,
-0.6244516373,
-0.0101234317,
0.6283126473,
-0.0689731091,
0.319591701,
-0.150196746,
0.0043785628,
0.229131788,
-0.0275655389,
0.2200339437,
0.1052827984,
-0.1801229715,
-0.0374858752,
-0.0583973564,
0.0808416754,
-0.0990722775,
0.1811190695,
0.0638207272,
0.2293649465,
-0.1535032392,
0.2600839734,
-0.1809125543,
0.0871978104,
-0.1413408816,
0.0614010692,
-0.1681457609,
0.2067479044,
-0.5416620374,
-0.2201777697,
-0.1180701554,
-0.2511603832,
-0.2717538178,
-0.2261430323,
-0.1266877204,
-0.1736238897,
-0.1696579605,
0.0124386512,
0.290386796,
0.3010910749,
0.1507919729,
-0.205558911,
-0.2148836851,
0.0619837046,
-0.1120368689,
-0.4172703028,
0.0203557462,
-0.5614668131,
-0.1228953451,
0.0636729449,
0.2879079282,
-0.236626476,
-0.4211461842,
0.2118505687,
0.0256061703,
-0.0919337422,
0.2861264348,
-0.3022793829,
-0.2326251566,
-0.214135468,
0.0205480792,
0.0349208973,
0.1182152554,
-0.1045983806,
-0.2701585591
] |
https://github.com/huggingface/datasets/issues/841 | Can not reuse datasets already downloaded | It seems the process needs '/datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py'
Where and how to assign this ```wikipedia.py``` after I manually download it ? | Hello,
I need to connect to a frontal node (with http proxy, no gpu) before connecting to a gpu node (but no http proxy, so can not use wget so on).
I successfully downloaded and reuse the wikipedia datasets in a frontal node.
When I connect to the gpu node, I supposed to use the downloaded datasets from cache, but failed and end with time out error.
On frontal node:
```
>>> from datasets import load_dataset
>>> dataset = load_dataset('wikipedia', '20200501.en')
Reusing dataset wikipedia (/linkhome/rech/genini01/uua34ms/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/f92599dfccab29832c442b82870fa8f6983e5b4ebbf5e6e2dcbe894e325339cd)
/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx (Triggered internally at /pytorch/c10/cuda/CUDAFunctions.cpp:100.)
return torch._C._cuda_getDeviceCount() > 0
```
On gpu node:
```
>>> from datasets import load_dataset
>>> dataset = load_dataset('wikipedia', '20200501.en')
Traceback (most recent call last):
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 677, in urlopen
chunked=chunked,
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
conn.connect()
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 309, in connect
conn = self._new_conn()
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 172, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 727, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/load.py", line 590, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/load.py", line 264, in prepare_module
head_hf_s3(path, filename=name, dataset=dataset)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 200, in head_hf_s3
return requests.head(hf_bucket_url(identifier=identifier, filename=filename, use_cdn=use_cdn, dataset=dataset))
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/api.py", line 104, in head
return request('head', url, **kwargs)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out',))
```
Any advice?Thanks!
| 19 | Can not reuse datasets already downloaded
Hello,
I need to connect to a frontal node (with http proxy, no gpu) before connecting to a gpu node (but no http proxy, so can not use wget so on).
I successfully downloaded and reuse the wikipedia datasets in a frontal node.
When I connect to the gpu node, I supposed to use the downloaded datasets from cache, but failed and end with time out error.
On frontal node:
```
>>> from datasets import load_dataset
>>> dataset = load_dataset('wikipedia', '20200501.en')
Reusing dataset wikipedia (/linkhome/rech/genini01/uua34ms/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/f92599dfccab29832c442b82870fa8f6983e5b4ebbf5e6e2dcbe894e325339cd)
/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx (Triggered internally at /pytorch/c10/cuda/CUDAFunctions.cpp:100.)
return torch._C._cuda_getDeviceCount() > 0
```
On gpu node:
```
>>> from datasets import load_dataset
>>> dataset = load_dataset('wikipedia', '20200501.en')
Traceback (most recent call last):
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 677, in urlopen
chunked=chunked,
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
conn.connect()
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 309, in connect
conn = self._new_conn()
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connection.py", line 172, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/connectionpool.py", line 727, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/load.py", line 590, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/load.py", line 264, in prepare_module
head_hf_s3(path, filename=name, dataset=dataset)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 200, in head_hf_s3
return requests.head(hf_bucket_url(identifier=identifier, filename=filename, use_cdn=use_cdn, dataset=dataset))
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/api.py", line 104, in head
return request('head', url, **kwargs)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/linkhome/rech/genini01/uua34ms/work/anaconda3/envs/pytorch_pip170_cuda102/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x14b7b73e4908>: Failed to establish a new connection: [Errno 110] Connection timed out',))
```
Any advice?Thanks!
It seems the process needs '/datasets.huggingface.co/datasets/datasets/wikipedia/wikipedia.py'
Where and how to assign this ```wikipedia.py``` after I manually download it ? | [
-0.1548726708,
-0.2376587987,
-0.0935401618,
0.2473085225,
0.3116979003,
0.093844898,
0.2028713375,
0.0549307577,
0.4361791611,
-0.1159727722,
0.0571257025,
-0.06967704,
0.4684703052,
-0.0135196373,
0.0379941501,
-0.0326446742,
-0.1300400198,
-0.1004903838,
0.0436400995,
-0.1173637882,
-0.0678430572,
0.0512394086,
0.0987340659,
-0.1973597407,
-0.5170297623,
-0.0366624184,
0.0695870444,
0.0257131476,
0.1279805452,
-0.3292092979,
0.4963111877,
0.1519474834,
0.3188912868,
0.3908818662,
-0.0001227586,
0.0331633538,
0.0301485527,
-0.0086720884,
-0.2577647865,
-0.217523098,
-0.0583401434,
-0.0221798085,
0.2983061075,
-0.3426148593,
-0.3325789869,
0.101670295,
0.1009473801,
-0.5310963988,
0.5326626301,
0.0265151411,
0.0990964249,
-0.2245468348,
0.1964667439,
-0.1530514657,
-0.1416291744,
0.164168179,
0.0021096542,
0.1725648493,
0.1944151819,
-0.0351390988,
0.2406748682,
0.0909056962,
-0.0575656369,
0.2920190692,
0.4881070256,
-0.0410385095,
0.1593193263,
-0.4436327815,
-0.0056620012,
0.1268530488,
0.7601925731,
-0.1796580553,
-0.0926000327,
-0.12819691,
-0.2547181249,
-0.214712128,
-0.0247815251,
0.0598493591,
-0.2936775088,
0.1041674316,
-0.0512806065,
-0.3261174858,
-0.1129010022,
0.3657034934,
0.0524881333,
0.0805808231,
0.2111364603,
0.2992270291,
0.1300239265,
0.0384743772,
0.1402246952,
-0.2005087137,
0.1321433187,
-0.0326064229,
-0.4005509615,
0.0403880998,
0.0198648758,
-0.0198083222,
0.0059409961,
0.4356165528,
-0.0049159247,
0.1558227241,
0.0689679235,
0.0348824635,
-0.1209749207,
0.0979314446,
0.0121460315,
0.0679261088,
0.2295108438,
0.098092556,
-0.3003792465,
-0.1996246874,
0.2148039788,
-0.0826328173,
-0.175948441,
0.04584172,
0.2712120712,
-0.1657317132,
-0.0148508623,
0.0250691473,
-0.1129279882,
-0.010300599,
-0.0408025198,
0.3777109385,
-0.1183996052,
0.2515930533,
0.3486974835,
0.0073922612,
-0.2008039355,
-0.1518079638,
-0.0998890623,
-0.0000951383,
-0.1795948297,
0.2472522706,
0.3716267943,
-0.0290510505,
0.178262651,
-0.0607332326,
0.1072966158,
-0.1576452404,
0.5114757419,
-0.2132517993,
0.1165531874,
-0.0030919043,
0.1830018014,
0.4008690119,
0.2319141477,
0.0943754613,
0.0228220224,
0.0235887133,
-0.2802011371,
-0.3750860393,
0.0085787158,
0.1051454023,
0.1237072647,
0.1330551505,
0.0396868698,
-0.1955211461,
0.3279150128,
-0.2095109522,
-0.000752721,
-0.0024339184,
-0.4169034064,
-0.2892305255,
0.2441186309,
0.5860951543,
-0.4188295305,
0.0107058585,
0.1581709087,
0.1157765687,
0.1240285188,
0.6433214545,
-0.3510300517,
0.1319206655,
-0.1617869139,
-0.173980996,
0.2686311007,
-0.5118985176,
-0.3102936745,
0.1303106248,
-0.0157405064,
0.1743178964,
0.0765927657,
0.2913172543,
0.078338787,
0.0681628063,
0.1149006411,
0.4836628437,
-0.017120149,
-0.2183825076,
-0.1767848581,
-0.2592072785,
0.3600460887,
-0.1000052243,
0.1763043255,
0.1300793588,
0.0545263514,
0.1995589882,
0.2683363259,
-0.1596237123,
0.2831757069,
0.2313870937,
0.1733908355,
0.2606773674,
0.0332905725,
0.0171749145,
-0.4030638635,
0.3302547038,
-0.2461275607,
0.0058931261,
-0.2333047539,
-0.3232369423,
-0.1935282648,
-0.2746442258,
-0.003013663,
-0.0217540115,
0.0367823541,
0.2466289699,
0.2087597549,
0.1449092329,
0.2628285885,
0.4253350496,
-0.2703686655,
0.0457908474,
-0.3987373412,
0.369184494,
-0.2255242616,
0.0189246833,
-0.2020833194,
-0.0271256752,
0.3046054542,
0.0082266666,
0.2096117586,
0.049167797,
-0.1407169849,
0.3016272485,
0.0209529456,
0.1291454136,
0.3272278011,
-0.3400679529,
0.0546226278,
0.3461524248,
0.3550490141,
-0.3573244214,
-0.1212393641,
0.0814286396,
0.2531201541,
0.1774756163,
-0.0738471523,
0.0116526783,
0.1081960872,
-0.0070217997,
0.1595493257,
-0.021557413,
0.189674899,
0.4042566717,
-0.2426962256,
-0.0646576136,
-0.2098246068,
0.270027101,
0.0560826883,
0.1939550489,
0.0376004577,
-0.1223335713,
0.059559375,
-0.2091469169,
0.3500083983,
-0.3235579133,
-0.0773915276,
0.095594503,
0.3279132247,
0.1028089672,
-0.1100909859,
-0.1628507525,
-0.0124462917,
-0.1816113591,
0.2727844715,
-0.0513620116,
0.0133196823,
-0.0920111313,
0.0433614999,
-0.0553807281,
0.3955429792,
0.1600078195,
-0.3600954711,
0.1393885016,
-0.3536384702,
-0.4845449328,
0.1353781521,
-0.1726809144,
-0.0969467387,
-0.3000204563,
-0.1184427291,
0.5529572368,
0.2341261804,
0.2936705947,
-0.0186401419,
0.2825278342,
0.2466645241,
-0.2299645245,
-0.2326807678,
-0.3672701716,
0.0690649599,
0.0263996869,
0.3404126465,
0.1996189207,
0.2153250426,
-0.1309524179,
-0.2550794482,
-0.491363585,
-0.0855568796,
-0.0909783244,
0.1733047813,
0.1972344518,
-0.3326895535,
0.3490031064,
-0.0626111627,
-0.2103334367,
0.1982860863,
-0.0772249922,
0.0963688418,
-0.2657537162,
-0.2588171959,
0.113206692,
-0.0567032099,
-0.3467369974,
-0.3991664946,
-0.3085106611,
-0.0470424891,
0.1668824255,
0.0726272911,
-0.0683816001,
0.1786625981,
0.0022525899,
0.1858487874,
0.2069583237,
-0.3619479835,
-0.3047582507,
0.2433560491,
-0.1396145523,
-0.3152445555,
0.1756568849,
0.117258504,
-0.0212445352,
0.4711762667,
-0.4773334563,
-0.3291171491,
-0.0574131608,
0.3427011073,
0.024376139,
-0.1468637288,
0.370531112,
-0.3419767618,
-0.0292729139,
0.0876089334,
0.0092930645,
0.0055176094,
-0.3076894283,
0.4178673923,
0.101443395,
0.3604358733,
0.069139719,
0.9451534152,
0.1241175979,
-0.2306537032,
0.3185613751,
-0.1047407612,
0.2298139781,
-0.1036172584,
-0.1561470628,
0.0744231194,
-0.3390270174,
0.2327619642,
-0.3644366264,
-0.12785092,
-0.2709168792,
-0.3345796764,
0.1986711919,
-0.321233809,
-0.475818634,
-0.1383144557,
-0.219726935,
0.3825995922,
0.368640244,
-0.0122797415,
-0.2355505675,
-0.1893038452,
0.0968701243,
0.1850917041,
0.1408935487,
0.1471266896,
-0.4159781337,
0.2112643123,
-0.3479144275,
0.4394703507,
0.0835311562,
0.1060065478,
-0.1756965518,
0.0594755113,
0.1006442606,
-0.1219908372,
0.728374064,
-0.3127952218,
0.1315129101,
0.2071667016,
-0.2820923626,
-0.4684228897,
0.2966369689,
0.0124671534,
0.1171653569,
0.3558495045,
-0.0800432116,
-0.2030178905,
-0.0769134313,
-0.3034852743,
0.2625687718,
-0.2390354872,
0.1314583719,
0.0752764344,
-0.2807822227,
-0.6343675852,
-0.061931733,
-0.0307714678,
0.2057970017,
-0.0782398134,
-0.0400360338,
-0.2925020456,
0.431560576,
0.075003475,
-0.0184844173,
0.2736262977,
0.0548877269,
0.2037199289,
0.0949677825,
0.1674259901,
0.1388572305,
0.2600419521,
0.2361794114,
-0.0487384573,
0.0585298054,
0.1607573628,
-0.4420763254,
0.4043962657,
0.1165127978,
0.3205904961,
0.1022853255,
-0.0798601732,
-0.2230347693,
0.1919567734,
-0.0529369414,
0.2260250151,
-0.3468129635,
-0.6021742225,
0.0737716332,
0.1368922293,
-0.1481117606,
0.4638572037,
0.1307071596,
-0.1034088358,
-0.0100935139,
0.1330153644,
1.1369926929,
-0.1097070724,
0.249417901,
0.0549147204,
0.0543849468,
0.7935964465,
-0.3770441115,
0.3242080212,
-0.2323519439,
0.1488589048,
-0.1180853695,
-0.1100877151,
0.1324558556,
-0.1406784803,
-0.0485839583,
0.1924432218,
0.1312216967,
0.0881237537,
-0.1138621047,
0.3052193522,
-0.0495612919,
-0.1473941207,
0.2064676583,
0.0588751808,
-0.0345372185,
0.3890478015,
-0.3410151601,
0.2255519331,
0.1073003113,
-0.1429107487,
-0.1898396909,
0.0651271939,
-0.3222645521,
0.5679990649,
-0.4035393894,
-0.5870119333,
0.0778372437,
0.2357516736,
0.2954043746,
0.0649519041,
-0.3694161177,
0.0318311863,
-0.3367700875,
-0.2194248289,
-0.2801858485,
-0.1022371501,
0.2282089293,
-0.0931408554,
-0.4943187237,
0.4344155192,
0.1626361012,
-0.3901790679,
-0.133501485,
0.0061758757,
-0.3375342488,
-0.0612425357,
-0.2839338779,
0.2013020962,
-0.170807749,
-0.1155111641,
0.0372127816,
-0.0539513119,
-0.1507025957,
0.0140876323,
0.1188191921,
-0.1676081717,
0.0437562764,
0.6288120747,
0.3283688724,
-0.12682724,
0.4865682125,
0.3852145672,
-0.3451160789,
-0.0897154063,
-0.543373704,
-0.2771346569,
-0.4499159157,
-0.1004410386,
-0.0599110201,
0.2556523085,
-0.0710734278,
-0.1618790925,
0.1116942167,
0.1838760674,
0.2296094894,
-0.4139637351,
-0.229673624,
0.1353535503,
-0.2252458334,
0.2251094133,
0.3666959107,
-0.0668028444,
0.1139816791,
0.144502759,
-0.2293465734,
0.3229382634,
-0.1981836259,
0.2599369586,
-0.041198723,
-0.2617836595,
-0.0257221051,
-0.1522386521,
-0.1032206118,
0.1068646535,
-0.2564247549,
-0.1204988658,
-0.0193758048,
0.1683195531,
0.086217925,
-0.3023172319,
0.0452375561,
-0.5413496494,
0.1897813827,
-0.0564399213,
0.3283280134,
0.2563537359,
-0.0059871748,
-0.0656555817,
0.1460815817,
0.0260093566,
-0.4261063337,
0.2824687064,
0.1789684743,
0.0737882107,
0.2832485437,
0.1818430424,
0.0182469189,
0.0927435309,
-0.3297597766,
0.0606945828,
0.3552811742,
-0.1543045938,
0.3506970108,
-0.1640054137,
-0.1087647304,
-0.0174386315,
0.1831090152,
0.0715588406,
-0.1704185605,
0.2969180048,
0.003957741,
0.0945934504,
-0.2185350955,
0.1525516063,
0.271368444,
-0.1579955667,
0.0503197461,
0.1134213358,
0.4863120019,
0.011419788,
0.2574239969,
0.1771299243,
0.3620302677,
-0.2516759932,
0.2153892219,
-0.1647559106,
0.0180756152,
-0.141015023,
0.142682597,
0.4029871225,
0.0652772188,
0.1033278704,
-0.1458617598,
0.3220050037,
-0.1225010306,
0.3613240123,
-0.1696133018,
-0.4061294198,
-0.088118732,
0.0352233388,
-0.2489656955,
-0.0163802281,
-0.2956751883,
-0.1304602623,
0.1737954319,
-0.2261282057,
-0.040127553,
0.4048241973,
-0.2687306404,
-0.282767117,
-0.3352328837,
-0.3463445604,
0.1784399599,
-0.0429822989,
0.2153523862,
-0.3309494257,
0.2442255169,
0.0466656648,
-0.4038800597,
-0.3088331819,
0.3640609086,
-0.0036340551,
0.1083942503,
-0.0482482575,
0.0521883518,
0.1386569142,
-0.2849009633,
-0.0889848694,
0.305285126,
0.435372442,
0.0898912251,
-0.1928081214,
0.5962465405,
0.1944003105,
0.0021677092,
-0.1304048002,
0.0647217408,
0.4124221206,
-0.0204026755,
0.2085272074,
0.1300187856,
-0.0924625248,
-0.0421473943,
0.1148764193,
0.486625582,
-0.3733817339,
0.2650317848,
-0.1798626184,
-0.0689878613,
-0.0901718289,
0.2335721254,
-0.2867180109,
0.2885178328,
0.6113154292,
-0.06391491,
0.1486181021,
-0.1438118815,
0.0186847225,
-0.2901235819,
0.4194190204,
0.1110550985,
0.3019729257,
-0.3612965941,
-0.1454015523,
-0.4733639359,
0.2039209455,
-0.4668928683,
0.0593985096,
-0.0580024123,
0.4289111197,
0.0649041459,
0.1286663115,
-0.1016301438,
-0.0497973338,
0.1085099876,
0.1072002575,
-0.2101535499,
-0.2865597606,
-0.3860231042,
-0.0287036821,
-0.0604817159,
-0.4726718068,
0.0891436338,
0.0631998405,
-0.047505036,
-0.0783383176,
-0.1557790339,
0.1945842803,
0.2042074651,
0.4846568704,
0.1691209227,
0.6330025792,
0.2342398465,
0.0923511758,
-0.2478435636,
-0.3968437314,
0.0741074383,
0.1058294773,
0.1868028939,
0.0478782281,
-0.5410247445,
-0.2097575366,
-0.2871946096,
0.3450893164,
-0.000435628,
-0.1266292334,
-0.0814174861,
-0.255620122,
-0.1839201748,
0.2147219032,
0.11970561,
0.3353787065,
0.0070095817,
0.2591791153,
-0.2700029016,
-0.1904766858,
0.7102396488,
-0.1347926855,
-0.1052471995,
-0.3297403455,
0.0763670206,
0.1047492027,
-0.0031943601,
-0.3488743603,
0.0254377574,
0.2682203352,
-0.1837804019,
-0.1111020297,
0.0281185843,
-0.2183414251,
0.1376704276,
-0.2694945931,
0.0691196471,
0.0182128064,
-0.2271561772,
-0.3523173332,
-0.2803575397
] |
https://github.com/huggingface/datasets/issues/836 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas | Which version of pyarrow do you have ? Could you try to update pyarrow and try again ? | Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
| 18 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
Which version of pyarrow do you have ? Could you try to update pyarrow and try again ? | [
-0.2411833555,
-0.319865346,
-0.0681557357,
0.4316073656,
0.3625251055,
0.0191547126,
0.5210208297,
0.4377132356,
0.2949129641,
0.0327753834,
0.0169626623,
-0.1187051386,
0.0905915797,
0.1802896559,
0.0350659937,
0.1130091101,
0.0730282366,
0.3988210261,
0.0317203514,
0.0699720979,
-0.2188605666,
0.1208697334,
0.0058675706,
0.0575149581,
-0.1244226694,
0.0723637342,
-0.008208625,
0.11691425,
-0.234351486,
-0.4013205767,
0.4197236001,
0.0784541667,
0.3328507543,
0.5207664967,
-0.0001169051,
0.1564733535,
0.2654488683,
-0.1856256276,
-0.0441996194,
-0.5195814371,
0.030130133,
-0.5329570174,
0.2776662707,
-0.1672023982,
-0.0144887194,
-0.1786803603,
-0.1109994575,
-0.0358057916,
0.3014125824,
0.3175451458,
0.180495888,
-0.2607494593,
0.0598924756,
-0.0100189745,
0.2052923739,
0.0371792242,
-0.0156857446,
0.4175470173,
0.1173955053,
-0.1267608404,
-0.0487308241,
-0.1936672777,
-0.2392428815,
0.3581994772,
0.3196350038,
0.1399400383,
0.0709676892,
-0.1089670807,
0.2680704892,
0.1055052727,
0.6067353487,
-0.3076422513,
-0.148547262,
-0.0154002979,
-0.0202969965,
-0.4886516631,
0.255815655,
0.4044945836,
-0.1521603614,
0.1173332781,
-0.2122124285,
0.2484470904,
-0.2663929164,
0.2028618604,
-0.0673475936,
-0.3531900048,
-0.2522073984,
0.2693183124,
0.252340585,
0.0737474933,
0.3336400092,
-0.0937501788,
0.0268539414,
0.1806968004,
-0.5556495786,
0.2796491981,
-0.1176609695,
-0.0904364884,
0.1637403071,
0.0962193012,
0.401422143,
0.1370626688,
0.0423449054,
0.1946977377,
0.3191301227,
0.1861323714,
-0.0428145118,
0.0691050887,
0.0273853503,
0.3462178409,
-0.2297835499,
-0.2338583022,
-0.3881368041,
-0.5049576163,
0.2381420881,
-0.1538382024,
0.2674437761,
-0.2704334855,
-0.2479329407,
-0.0960201621,
-0.0361325257,
-0.0094236135,
-0.0528344736,
0.5738202929,
0.2158340812,
0.3802044094,
-0.0542098209,
0.2572089136,
-0.2112756521,
-0.0986546353,
-0.0803525597,
0.0201156028,
-0.0576024354,
0.0522915125,
0.3777483702,
-0.2166883647,
0.1214606091,
0.1762956977,
-0.0435165763,
-0.2938743234,
-0.1455051899,
-0.4177225232,
0.0367246494,
0.2833083272,
0.2024737746,
0.0979532525,
0.2341531366,
-0.2812094092,
-0.0606880635,
0.3805412948,
-0.2301191688,
-0.168569088,
0.0972645059,
0.0963023454,
-0.0661173239,
0.1656781435,
-0.3956313729,
0.1563510448,
0.3519504964,
-0.4384937584,
0.0334676951,
-0.2134843022,
-0.2411230356,
-0.3524808884,
0.20189026,
0.2790591717,
-0.7854656577,
0.3429477811,
0.053906288,
-0.0317483805,
0.1149990261,
0.423715055,
-0.1483170539,
0.0611785054,
-0.270986706,
0.0921522081,
0.1406244487,
0.0075427517,
-0.6293672919,
0.3307561278,
-0.0460273772,
0.0895458683,
0.3120642304,
0.0645525455,
0.0512146875,
0.0891776234,
-0.1080221385,
0.018553935,
0.0231347587,
0.0440056399,
-0.2607474327,
-0.129192397,
0.3187511563,
0.1426241547,
-0.0647739023,
-0.0676733106,
0.238888815,
-0.4087392092,
0.2025449574,
-0.01808713,
0.1416161954,
0.1752465665,
0.1791315824,
-0.1968238652,
0.0349738337,
0.010433495,
-0.449349463,
0.1433820128,
0.2848804295,
-0.1687007546,
-0.2159444988,
-0.0797309205,
-0.3841179907,
-0.0297013782,
-0.2681601644,
-0.1242000237,
-0.024652645,
0.0725154132,
0.0595196486,
-0.1440529078,
-0.1857401133,
0.1161190271,
-0.2237766981,
-0.0112761222,
-0.0158438962,
0.1422188431,
0.058799386,
-0.1249888241,
0.1064722165,
-0.062900804,
0.2071679831,
-0.0483339503,
-0.2763521373,
0.2495909184,
0.1456867456,
0.0456151851,
-0.2857960761,
-0.1747876555,
0.0830199793,
-0.2415055186,
-0.0872012824,
0.0237382166,
0.3663713336,
-0.1825467944,
-0.3392808139,
0.2706236541,
-0.1567008793,
0.3015139699,
0.1879754663,
-0.358071357,
0.3065020442,
0.016720444,
0.1781935096,
0.070491828,
0.1380853951,
0.0736545473,
0.4947437346,
0.2995415032,
-0.0968414694,
-0.1562502086,
0.5009900928,
-0.047043547,
-0.2185632139,
0.3112601042,
-0.1181774437,
-0.194535315,
0.0684310123,
0.0887453407,
0.3798216581,
0.1293765903,
-0.1915305853,
0.0146640446,
0.1435025036,
-0.2500295043,
0.1204057932,
-0.2204345465,
0.1473614722,
0.3965647519,
0.1270100176,
-0.1272859275,
-0.1951442659,
0.0377439484,
0.0875854418,
0.3257237971,
-0.4119554758,
-0.06754563,
-0.0734540075,
-0.0052057952,
-0.1802845299,
0.0986027271,
-0.055579666,
0.0971231908,
-0.3996110559,
0.3328242302,
0.2897822261,
-0.0790662766,
-0.2431260198,
0.0886345729,
0.2158126831,
-0.3370556235,
-0.0034610629,
-0.0489908867,
-0.2919399142,
-0.0261762813,
0.3307097256,
0.1098190546,
-0.0008771354,
-0.0217662975,
0.0280251876,
-0.0548452288,
-0.0925328135,
-0.0439248495,
-0.0732297003,
0.0209216531,
-0.0511661172,
0.419331044,
0.007607609,
-0.144630909,
0.4017488062,
-0.2536605895,
-0.0489247739,
0.3501355648,
0.0636934191,
-0.0958794132,
-0.1087074503,
-0.3498897851,
-0.139887765,
-0.4293371439,
0.3910629451,
0.0847562104,
0.0419315137,
0.0926313996,
0.4331048727,
-0.0260848179,
0.3013548255,
-0.0312165953,
-0.0848051086,
-0.2977057695,
0.3645740747,
-0.0561166108,
-0.467656225,
0.0119414479,
0.0828355998,
0.3591907024,
0.163827002,
-0.4252474308,
0.3267477155,
-0.1509075463,
0.1628201157,
0.0011048787,
-0.0242279954,
0.0609546639,
-0.0872275531,
-0.0218236372,
0.0364305675,
-0.2417155504,
-0.0141798817,
-0.032044746,
0.1475837827,
0.0513686761,
0.4584290385,
-0.0371929444,
0.6513359547,
0.0874641836,
-0.0882316083,
0.4855556488,
-0.3082401156,
0.3818775415,
-0.2096709758,
-0.3737452924,
-0.08557491,
-0.351981461,
-0.192446515,
0.2677484453,
-0.0335841104,
-0.0334150866,
-0.1257758737,
0.0035177544,
-0.4046860635,
-0.0377032496,
0.1836319864,
0.0306969211,
-0.0148301832,
-0.1005957946,
-0.0133008659,
-0.0116459094,
-0.2373631299,
-0.1942583323,
0.2739639878,
-0.151342541,
0.0633874908,
-0.2242483497,
-0.0615806021,
-0.3029372394,
0.3292048872,
-0.0136235543,
0.3102863133,
0.0106145218,
-0.0176953897,
0.0972968042,
-0.1252225041,
0.7449789047,
0.1892857999,
-0.1550701559,
0.1278295219,
-0.0241140723,
-0.4415835142,
-0.1217613816,
0.1906313002,
0.3073360622,
0.0744615495,
0.354865998,
-0.0703260526,
-0.0096936524,
-0.1443435252,
0.3546774983,
0.0432528704,
-0.3951278925,
-0.5194917321,
-0.2349790037,
-0.3830531538,
-0.2121350318,
-0.0898665935,
0.2882786989,
-0.3244076967,
-0.1423869431,
0.1183613837,
-0.2990534008,
0.0601569675,
0.1533816308,
0.2973895073,
-0.1129143089,
0.1448960006,
0.0468353294,
0.0698048323,
0.3769119978,
0.7987185717,
-0.0785761923,
-0.622077167,
0.084843725,
-0.2050262094,
0.385348022,
0.0478198342,
-0.2032050788,
0.1289871186,
0.0907345414,
0.0620337576,
0.0379481614,
0.0144372284,
0.3036864698,
0.0496551059,
-0.3454541266,
-0.5439224243,
0.4874187708,
-0.1259081215,
0.2102589309,
0.3020801544,
-0.2119998932,
-0.1099811569,
0.1555228531,
-0.3346247077,
0.6592134237,
-0.4218297899,
0.1938306391,
0.3073367178,
0.0563358665,
0.2584291697,
-0.4451968074,
0.1323072612,
-0.3919681311,
-0.2109029293,
-0.1043123752,
-0.0712032542,
0.2393859625,
0.4321895838,
-0.1212456375,
0.3118638098,
-0.0741498172,
0.3325560093,
0.1131342277,
0.2438254654,
-0.1005163267,
-0.0864684433,
-0.3010210097,
0.0104237683,
-0.1430806667,
-0.0349517614,
0.0289587304,
0.0544643402,
-0.1805676222,
-0.2016452551,
-0.2461118698,
0.2200244963,
-0.2911676764,
0.1154050305,
-0.1109545603,
-0.4686652422,
0.1963636875,
0.2380670607,
-0.2087021321,
-0.0851789415,
-0.1240850836,
0.155054152,
0.1596343368,
-0.0401754938,
-0.2083744109,
-0.0536958091,
-0.0158854555,
0.0761259347,
-0.235123992,
0.1545512229,
-0.1222789288,
-0.0956742838,
0.2780731916,
0.2376574576,
-0.0848071501,
-0.5452090502,
-0.5326190591,
-0.4284160733,
0.0759812519,
-0.1957322657,
0.0651981607,
-0.0420788489,
0.098341912,
-0.161635071,
0.1859352887,
-0.4688693881,
-0.1020268872,
0.391812861,
-0.1116866097,
0.0939545184,
0.5907299519,
0.2193500549,
-0.0168927088,
-0.1411526054,
0.0642407537,
0.308105737,
-0.3531886339,
0.1170662493,
0.1141490638,
0.3159501553,
0.1392528117,
0.2917455733,
0.156580627,
-0.0776726678,
0.074454695,
-0.511590302,
-0.3249695301,
-0.0165288001,
-0.0015312911,
0.2479579896,
0.1672189236,
0.0818671137,
0.1726779342,
0.2032968551,
-0.1562303603,
0.1004623696,
0.105929248,
-0.0869572908,
0.2106324881,
0.1420163512,
-0.1338727772,
-0.1038192734,
0.0934977233,
0.1776404083,
-0.0534452051,
-0.1887511164,
-0.0798560381,
0.150100112,
0.0983606428,
0.0232857689,
-0.2034451216,
-0.2526885867,
-0.1497060061,
-0.1928056777,
0.0664088577,
0.0297824368,
-0.0981117785,
0.0717601702,
-0.2987651527,
-0.0846541226,
-0.5091864467,
0.0271218121,
-0.5075390935,
0.2231321633,
0.2992689908,
0.0485822111,
0.1217575073,
0.2004555911,
-0.17242603,
-0.0311586484,
0.1516268104,
-0.1366188824,
0.3009470701,
-0.4014757276,
0.2035065144,
-0.0510656536,
0.3403373361,
0.4848606288,
-0.2076413333,
0.2197107375,
0.0375864208,
0.1341150999,
-0.3825284243,
0.2754765451,
0.1172316,
-0.0616294667,
-0.0274844915,
0.1696752608,
0.1992113888,
-0.2083072662,
-0.0957769752,
0.006910339,
0.4759888351,
-0.0078225527,
-0.033951249,
0.4135629833,
0.0027141422,
0.1789695323,
0.2403353155,
0.1356375366,
0.019620385,
0.7002614737,
-0.2602289915,
-0.0039647669,
-0.2352683693,
0.3014817536,
-0.3278698921,
-0.7641032338,
0.1616644859,
0.2355505526,
-0.3533103466,
-0.1676512063,
0.125898242,
0.6017511487,
-0.0233748816,
0.0114933141,
-0.1145935506,
-0.0448354296,
0.0140550677,
0.0483893305,
-0.0662136972,
-0.2536708117,
-0.0708237141,
0.1856830418,
-0.0595554672,
0.0145597812,
0.2749817669,
0.1876640767,
-0.1494834423,
-0.445759207,
0.0657749772,
0.1728486121,
0.0665427819,
-0.2748389244,
0.3666119576,
0.2653489411,
-0.0859920457,
0.1805051565,
-0.0413446873,
0.6402472258,
0.5041920543,
0.0924115479,
-0.0617403835,
-0.1215717867,
-0.1139908433,
-0.1794187427,
0.1778170317,
0.3488179445,
0.4212691784,
0.1485440582,
0.1135987118,
-0.0401851684,
0.3160887957,
0.2067887634,
0.0996010751,
-0.5459768176,
-0.1189198419,
-0.2083118409,
-0.2577385306,
-0.2266329825,
0.0241516493,
-0.289059788,
0.0209433027,
0.4277471006,
0.0739152133,
0.2772268355,
-0.0268226024,
0.0345675237,
0.0743338913,
0.3142201304,
0.2397758812,
0.4022898674,
-0.4218083322,
-0.0354188234,
-0.7509754896,
0.1165280938,
-0.3764893115,
0.0095925331,
-0.0318589211,
0.1585382521,
0.1377416253,
0.0838608593,
0.1591721773,
0.2994236648,
0.1167231351,
0.2220783085,
-0.0561849065,
-0.1846197844,
-0.3380708694,
0.0264858287,
-0.1750925481,
-0.4655139744,
0.221360445,
-0.1279321909,
0.009210974,
-0.2251858115,
0.2239885032,
0.2559674978,
-0.0059871143,
0.4777291417,
-0.1120111048,
0.6255965829,
-0.0850183517,
0.3190014958,
-0.3009389341,
-0.0801897198,
-0.192805469,
0.5200992823,
0.2061501443,
0.271399796,
-0.1779928505,
-0.1079162806,
-0.2153045833,
0.1574105471,
-0.0065483749,
-0.0705473498,
0.0667273924,
-0.151060313,
-0.001824148,
-0.0584905371,
0.1522313952,
0.0920481086,
-0.222938627,
-0.0781729147,
-0.1745534539,
-0.1801850945,
0.1810826659,
-0.4043291509,
-0.3411034942,
0.1487175822,
0.1261260509,
0.1018667817,
0.1396919489,
-0.452421248,
0.1217895448,
0.424474597,
-0.1280171573,
-0.4174260795,
0.1340318918,
-0.2116190642,
0.1005702466,
-0.121852532,
0.4765021205,
0.1411092579,
-0.3705090284,
-0.1615718156,
-0.3583216071
] |
https://github.com/huggingface/datasets/issues/836 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas | Thanks for the fast response. I have the latest version '2.0.0' (I tried to update)
I am working with Python 3.8.5 | Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
| 21 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
Thanks for the fast response. I have the latest version '2.0.0' (I tried to update)
I am working with Python 3.8.5 | [
-0.2411833555,
-0.319865346,
-0.0681557357,
0.4316073656,
0.3625251055,
0.0191547126,
0.5210208297,
0.4377132356,
0.2949129641,
0.0327753834,
0.0169626623,
-0.1187051386,
0.0905915797,
0.1802896559,
0.0350659937,
0.1130091101,
0.0730282366,
0.3988210261,
0.0317203514,
0.0699720979,
-0.2188605666,
0.1208697334,
0.0058675706,
0.0575149581,
-0.1244226694,
0.0723637342,
-0.008208625,
0.11691425,
-0.234351486,
-0.4013205767,
0.4197236001,
0.0784541667,
0.3328507543,
0.5207664967,
-0.0001169051,
0.1564733535,
0.2654488683,
-0.1856256276,
-0.0441996194,
-0.5195814371,
0.030130133,
-0.5329570174,
0.2776662707,
-0.1672023982,
-0.0144887194,
-0.1786803603,
-0.1109994575,
-0.0358057916,
0.3014125824,
0.3175451458,
0.180495888,
-0.2607494593,
0.0598924756,
-0.0100189745,
0.2052923739,
0.0371792242,
-0.0156857446,
0.4175470173,
0.1173955053,
-0.1267608404,
-0.0487308241,
-0.1936672777,
-0.2392428815,
0.3581994772,
0.3196350038,
0.1399400383,
0.0709676892,
-0.1089670807,
0.2680704892,
0.1055052727,
0.6067353487,
-0.3076422513,
-0.148547262,
-0.0154002979,
-0.0202969965,
-0.4886516631,
0.255815655,
0.4044945836,
-0.1521603614,
0.1173332781,
-0.2122124285,
0.2484470904,
-0.2663929164,
0.2028618604,
-0.0673475936,
-0.3531900048,
-0.2522073984,
0.2693183124,
0.252340585,
0.0737474933,
0.3336400092,
-0.0937501788,
0.0268539414,
0.1806968004,
-0.5556495786,
0.2796491981,
-0.1176609695,
-0.0904364884,
0.1637403071,
0.0962193012,
0.401422143,
0.1370626688,
0.0423449054,
0.1946977377,
0.3191301227,
0.1861323714,
-0.0428145118,
0.0691050887,
0.0273853503,
0.3462178409,
-0.2297835499,
-0.2338583022,
-0.3881368041,
-0.5049576163,
0.2381420881,
-0.1538382024,
0.2674437761,
-0.2704334855,
-0.2479329407,
-0.0960201621,
-0.0361325257,
-0.0094236135,
-0.0528344736,
0.5738202929,
0.2158340812,
0.3802044094,
-0.0542098209,
0.2572089136,
-0.2112756521,
-0.0986546353,
-0.0803525597,
0.0201156028,
-0.0576024354,
0.0522915125,
0.3777483702,
-0.2166883647,
0.1214606091,
0.1762956977,
-0.0435165763,
-0.2938743234,
-0.1455051899,
-0.4177225232,
0.0367246494,
0.2833083272,
0.2024737746,
0.0979532525,
0.2341531366,
-0.2812094092,
-0.0606880635,
0.3805412948,
-0.2301191688,
-0.168569088,
0.0972645059,
0.0963023454,
-0.0661173239,
0.1656781435,
-0.3956313729,
0.1563510448,
0.3519504964,
-0.4384937584,
0.0334676951,
-0.2134843022,
-0.2411230356,
-0.3524808884,
0.20189026,
0.2790591717,
-0.7854656577,
0.3429477811,
0.053906288,
-0.0317483805,
0.1149990261,
0.423715055,
-0.1483170539,
0.0611785054,
-0.270986706,
0.0921522081,
0.1406244487,
0.0075427517,
-0.6293672919,
0.3307561278,
-0.0460273772,
0.0895458683,
0.3120642304,
0.0645525455,
0.0512146875,
0.0891776234,
-0.1080221385,
0.018553935,
0.0231347587,
0.0440056399,
-0.2607474327,
-0.129192397,
0.3187511563,
0.1426241547,
-0.0647739023,
-0.0676733106,
0.238888815,
-0.4087392092,
0.2025449574,
-0.01808713,
0.1416161954,
0.1752465665,
0.1791315824,
-0.1968238652,
0.0349738337,
0.010433495,
-0.449349463,
0.1433820128,
0.2848804295,
-0.1687007546,
-0.2159444988,
-0.0797309205,
-0.3841179907,
-0.0297013782,
-0.2681601644,
-0.1242000237,
-0.024652645,
0.0725154132,
0.0595196486,
-0.1440529078,
-0.1857401133,
0.1161190271,
-0.2237766981,
-0.0112761222,
-0.0158438962,
0.1422188431,
0.058799386,
-0.1249888241,
0.1064722165,
-0.062900804,
0.2071679831,
-0.0483339503,
-0.2763521373,
0.2495909184,
0.1456867456,
0.0456151851,
-0.2857960761,
-0.1747876555,
0.0830199793,
-0.2415055186,
-0.0872012824,
0.0237382166,
0.3663713336,
-0.1825467944,
-0.3392808139,
0.2706236541,
-0.1567008793,
0.3015139699,
0.1879754663,
-0.358071357,
0.3065020442,
0.016720444,
0.1781935096,
0.070491828,
0.1380853951,
0.0736545473,
0.4947437346,
0.2995415032,
-0.0968414694,
-0.1562502086,
0.5009900928,
-0.047043547,
-0.2185632139,
0.3112601042,
-0.1181774437,
-0.194535315,
0.0684310123,
0.0887453407,
0.3798216581,
0.1293765903,
-0.1915305853,
0.0146640446,
0.1435025036,
-0.2500295043,
0.1204057932,
-0.2204345465,
0.1473614722,
0.3965647519,
0.1270100176,
-0.1272859275,
-0.1951442659,
0.0377439484,
0.0875854418,
0.3257237971,
-0.4119554758,
-0.06754563,
-0.0734540075,
-0.0052057952,
-0.1802845299,
0.0986027271,
-0.055579666,
0.0971231908,
-0.3996110559,
0.3328242302,
0.2897822261,
-0.0790662766,
-0.2431260198,
0.0886345729,
0.2158126831,
-0.3370556235,
-0.0034610629,
-0.0489908867,
-0.2919399142,
-0.0261762813,
0.3307097256,
0.1098190546,
-0.0008771354,
-0.0217662975,
0.0280251876,
-0.0548452288,
-0.0925328135,
-0.0439248495,
-0.0732297003,
0.0209216531,
-0.0511661172,
0.419331044,
0.007607609,
-0.144630909,
0.4017488062,
-0.2536605895,
-0.0489247739,
0.3501355648,
0.0636934191,
-0.0958794132,
-0.1087074503,
-0.3498897851,
-0.139887765,
-0.4293371439,
0.3910629451,
0.0847562104,
0.0419315137,
0.0926313996,
0.4331048727,
-0.0260848179,
0.3013548255,
-0.0312165953,
-0.0848051086,
-0.2977057695,
0.3645740747,
-0.0561166108,
-0.467656225,
0.0119414479,
0.0828355998,
0.3591907024,
0.163827002,
-0.4252474308,
0.3267477155,
-0.1509075463,
0.1628201157,
0.0011048787,
-0.0242279954,
0.0609546639,
-0.0872275531,
-0.0218236372,
0.0364305675,
-0.2417155504,
-0.0141798817,
-0.032044746,
0.1475837827,
0.0513686761,
0.4584290385,
-0.0371929444,
0.6513359547,
0.0874641836,
-0.0882316083,
0.4855556488,
-0.3082401156,
0.3818775415,
-0.2096709758,
-0.3737452924,
-0.08557491,
-0.351981461,
-0.192446515,
0.2677484453,
-0.0335841104,
-0.0334150866,
-0.1257758737,
0.0035177544,
-0.4046860635,
-0.0377032496,
0.1836319864,
0.0306969211,
-0.0148301832,
-0.1005957946,
-0.0133008659,
-0.0116459094,
-0.2373631299,
-0.1942583323,
0.2739639878,
-0.151342541,
0.0633874908,
-0.2242483497,
-0.0615806021,
-0.3029372394,
0.3292048872,
-0.0136235543,
0.3102863133,
0.0106145218,
-0.0176953897,
0.0972968042,
-0.1252225041,
0.7449789047,
0.1892857999,
-0.1550701559,
0.1278295219,
-0.0241140723,
-0.4415835142,
-0.1217613816,
0.1906313002,
0.3073360622,
0.0744615495,
0.354865998,
-0.0703260526,
-0.0096936524,
-0.1443435252,
0.3546774983,
0.0432528704,
-0.3951278925,
-0.5194917321,
-0.2349790037,
-0.3830531538,
-0.2121350318,
-0.0898665935,
0.2882786989,
-0.3244076967,
-0.1423869431,
0.1183613837,
-0.2990534008,
0.0601569675,
0.1533816308,
0.2973895073,
-0.1129143089,
0.1448960006,
0.0468353294,
0.0698048323,
0.3769119978,
0.7987185717,
-0.0785761923,
-0.622077167,
0.084843725,
-0.2050262094,
0.385348022,
0.0478198342,
-0.2032050788,
0.1289871186,
0.0907345414,
0.0620337576,
0.0379481614,
0.0144372284,
0.3036864698,
0.0496551059,
-0.3454541266,
-0.5439224243,
0.4874187708,
-0.1259081215,
0.2102589309,
0.3020801544,
-0.2119998932,
-0.1099811569,
0.1555228531,
-0.3346247077,
0.6592134237,
-0.4218297899,
0.1938306391,
0.3073367178,
0.0563358665,
0.2584291697,
-0.4451968074,
0.1323072612,
-0.3919681311,
-0.2109029293,
-0.1043123752,
-0.0712032542,
0.2393859625,
0.4321895838,
-0.1212456375,
0.3118638098,
-0.0741498172,
0.3325560093,
0.1131342277,
0.2438254654,
-0.1005163267,
-0.0864684433,
-0.3010210097,
0.0104237683,
-0.1430806667,
-0.0349517614,
0.0289587304,
0.0544643402,
-0.1805676222,
-0.2016452551,
-0.2461118698,
0.2200244963,
-0.2911676764,
0.1154050305,
-0.1109545603,
-0.4686652422,
0.1963636875,
0.2380670607,
-0.2087021321,
-0.0851789415,
-0.1240850836,
0.155054152,
0.1596343368,
-0.0401754938,
-0.2083744109,
-0.0536958091,
-0.0158854555,
0.0761259347,
-0.235123992,
0.1545512229,
-0.1222789288,
-0.0956742838,
0.2780731916,
0.2376574576,
-0.0848071501,
-0.5452090502,
-0.5326190591,
-0.4284160733,
0.0759812519,
-0.1957322657,
0.0651981607,
-0.0420788489,
0.098341912,
-0.161635071,
0.1859352887,
-0.4688693881,
-0.1020268872,
0.391812861,
-0.1116866097,
0.0939545184,
0.5907299519,
0.2193500549,
-0.0168927088,
-0.1411526054,
0.0642407537,
0.308105737,
-0.3531886339,
0.1170662493,
0.1141490638,
0.3159501553,
0.1392528117,
0.2917455733,
0.156580627,
-0.0776726678,
0.074454695,
-0.511590302,
-0.3249695301,
-0.0165288001,
-0.0015312911,
0.2479579896,
0.1672189236,
0.0818671137,
0.1726779342,
0.2032968551,
-0.1562303603,
0.1004623696,
0.105929248,
-0.0869572908,
0.2106324881,
0.1420163512,
-0.1338727772,
-0.1038192734,
0.0934977233,
0.1776404083,
-0.0534452051,
-0.1887511164,
-0.0798560381,
0.150100112,
0.0983606428,
0.0232857689,
-0.2034451216,
-0.2526885867,
-0.1497060061,
-0.1928056777,
0.0664088577,
0.0297824368,
-0.0981117785,
0.0717601702,
-0.2987651527,
-0.0846541226,
-0.5091864467,
0.0271218121,
-0.5075390935,
0.2231321633,
0.2992689908,
0.0485822111,
0.1217575073,
0.2004555911,
-0.17242603,
-0.0311586484,
0.1516268104,
-0.1366188824,
0.3009470701,
-0.4014757276,
0.2035065144,
-0.0510656536,
0.3403373361,
0.4848606288,
-0.2076413333,
0.2197107375,
0.0375864208,
0.1341150999,
-0.3825284243,
0.2754765451,
0.1172316,
-0.0616294667,
-0.0274844915,
0.1696752608,
0.1992113888,
-0.2083072662,
-0.0957769752,
0.006910339,
0.4759888351,
-0.0078225527,
-0.033951249,
0.4135629833,
0.0027141422,
0.1789695323,
0.2403353155,
0.1356375366,
0.019620385,
0.7002614737,
-0.2602289915,
-0.0039647669,
-0.2352683693,
0.3014817536,
-0.3278698921,
-0.7641032338,
0.1616644859,
0.2355505526,
-0.3533103466,
-0.1676512063,
0.125898242,
0.6017511487,
-0.0233748816,
0.0114933141,
-0.1145935506,
-0.0448354296,
0.0140550677,
0.0483893305,
-0.0662136972,
-0.2536708117,
-0.0708237141,
0.1856830418,
-0.0595554672,
0.0145597812,
0.2749817669,
0.1876640767,
-0.1494834423,
-0.445759207,
0.0657749772,
0.1728486121,
0.0665427819,
-0.2748389244,
0.3666119576,
0.2653489411,
-0.0859920457,
0.1805051565,
-0.0413446873,
0.6402472258,
0.5041920543,
0.0924115479,
-0.0617403835,
-0.1215717867,
-0.1139908433,
-0.1794187427,
0.1778170317,
0.3488179445,
0.4212691784,
0.1485440582,
0.1135987118,
-0.0401851684,
0.3160887957,
0.2067887634,
0.0996010751,
-0.5459768176,
-0.1189198419,
-0.2083118409,
-0.2577385306,
-0.2266329825,
0.0241516493,
-0.289059788,
0.0209433027,
0.4277471006,
0.0739152133,
0.2772268355,
-0.0268226024,
0.0345675237,
0.0743338913,
0.3142201304,
0.2397758812,
0.4022898674,
-0.4218083322,
-0.0354188234,
-0.7509754896,
0.1165280938,
-0.3764893115,
0.0095925331,
-0.0318589211,
0.1585382521,
0.1377416253,
0.0838608593,
0.1591721773,
0.2994236648,
0.1167231351,
0.2220783085,
-0.0561849065,
-0.1846197844,
-0.3380708694,
0.0264858287,
-0.1750925481,
-0.4655139744,
0.221360445,
-0.1279321909,
0.009210974,
-0.2251858115,
0.2239885032,
0.2559674978,
-0.0059871143,
0.4777291417,
-0.1120111048,
0.6255965829,
-0.0850183517,
0.3190014958,
-0.3009389341,
-0.0801897198,
-0.192805469,
0.5200992823,
0.2061501443,
0.271399796,
-0.1779928505,
-0.1079162806,
-0.2153045833,
0.1574105471,
-0.0065483749,
-0.0705473498,
0.0667273924,
-0.151060313,
-0.001824148,
-0.0584905371,
0.1522313952,
0.0920481086,
-0.222938627,
-0.0781729147,
-0.1745534539,
-0.1801850945,
0.1810826659,
-0.4043291509,
-0.3411034942,
0.1487175822,
0.1261260509,
0.1018667817,
0.1396919489,
-0.452421248,
0.1217895448,
0.424474597,
-0.1280171573,
-0.4174260795,
0.1340318918,
-0.2116190642,
0.1005702466,
-0.121852532,
0.4765021205,
0.1411092579,
-0.3705090284,
-0.1615718156,
-0.3583216071
] |
https://github.com/huggingface/datasets/issues/836 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas | I think that the issue is similar to this one:https://issues.apache.org/jira/browse/ARROW-9612
The problem is in arrow when the column data contains long strings.
Any ideas on how to bypass this? | Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
| 29 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
I think that the issue is similar to this one:https://issues.apache.org/jira/browse/ARROW-9612
The problem is in arrow when the column data contains long strings.
Any ideas on how to bypass this? | [
-0.2411833555,
-0.319865346,
-0.0681557357,
0.4316073656,
0.3625251055,
0.0191547126,
0.5210208297,
0.4377132356,
0.2949129641,
0.0327753834,
0.0169626623,
-0.1187051386,
0.0905915797,
0.1802896559,
0.0350659937,
0.1130091101,
0.0730282366,
0.3988210261,
0.0317203514,
0.0699720979,
-0.2188605666,
0.1208697334,
0.0058675706,
0.0575149581,
-0.1244226694,
0.0723637342,
-0.008208625,
0.11691425,
-0.234351486,
-0.4013205767,
0.4197236001,
0.0784541667,
0.3328507543,
0.5207664967,
-0.0001169051,
0.1564733535,
0.2654488683,
-0.1856256276,
-0.0441996194,
-0.5195814371,
0.030130133,
-0.5329570174,
0.2776662707,
-0.1672023982,
-0.0144887194,
-0.1786803603,
-0.1109994575,
-0.0358057916,
0.3014125824,
0.3175451458,
0.180495888,
-0.2607494593,
0.0598924756,
-0.0100189745,
0.2052923739,
0.0371792242,
-0.0156857446,
0.4175470173,
0.1173955053,
-0.1267608404,
-0.0487308241,
-0.1936672777,
-0.2392428815,
0.3581994772,
0.3196350038,
0.1399400383,
0.0709676892,
-0.1089670807,
0.2680704892,
0.1055052727,
0.6067353487,
-0.3076422513,
-0.148547262,
-0.0154002979,
-0.0202969965,
-0.4886516631,
0.255815655,
0.4044945836,
-0.1521603614,
0.1173332781,
-0.2122124285,
0.2484470904,
-0.2663929164,
0.2028618604,
-0.0673475936,
-0.3531900048,
-0.2522073984,
0.2693183124,
0.252340585,
0.0737474933,
0.3336400092,
-0.0937501788,
0.0268539414,
0.1806968004,
-0.5556495786,
0.2796491981,
-0.1176609695,
-0.0904364884,
0.1637403071,
0.0962193012,
0.401422143,
0.1370626688,
0.0423449054,
0.1946977377,
0.3191301227,
0.1861323714,
-0.0428145118,
0.0691050887,
0.0273853503,
0.3462178409,
-0.2297835499,
-0.2338583022,
-0.3881368041,
-0.5049576163,
0.2381420881,
-0.1538382024,
0.2674437761,
-0.2704334855,
-0.2479329407,
-0.0960201621,
-0.0361325257,
-0.0094236135,
-0.0528344736,
0.5738202929,
0.2158340812,
0.3802044094,
-0.0542098209,
0.2572089136,
-0.2112756521,
-0.0986546353,
-0.0803525597,
0.0201156028,
-0.0576024354,
0.0522915125,
0.3777483702,
-0.2166883647,
0.1214606091,
0.1762956977,
-0.0435165763,
-0.2938743234,
-0.1455051899,
-0.4177225232,
0.0367246494,
0.2833083272,
0.2024737746,
0.0979532525,
0.2341531366,
-0.2812094092,
-0.0606880635,
0.3805412948,
-0.2301191688,
-0.168569088,
0.0972645059,
0.0963023454,
-0.0661173239,
0.1656781435,
-0.3956313729,
0.1563510448,
0.3519504964,
-0.4384937584,
0.0334676951,
-0.2134843022,
-0.2411230356,
-0.3524808884,
0.20189026,
0.2790591717,
-0.7854656577,
0.3429477811,
0.053906288,
-0.0317483805,
0.1149990261,
0.423715055,
-0.1483170539,
0.0611785054,
-0.270986706,
0.0921522081,
0.1406244487,
0.0075427517,
-0.6293672919,
0.3307561278,
-0.0460273772,
0.0895458683,
0.3120642304,
0.0645525455,
0.0512146875,
0.0891776234,
-0.1080221385,
0.018553935,
0.0231347587,
0.0440056399,
-0.2607474327,
-0.129192397,
0.3187511563,
0.1426241547,
-0.0647739023,
-0.0676733106,
0.238888815,
-0.4087392092,
0.2025449574,
-0.01808713,
0.1416161954,
0.1752465665,
0.1791315824,
-0.1968238652,
0.0349738337,
0.010433495,
-0.449349463,
0.1433820128,
0.2848804295,
-0.1687007546,
-0.2159444988,
-0.0797309205,
-0.3841179907,
-0.0297013782,
-0.2681601644,
-0.1242000237,
-0.024652645,
0.0725154132,
0.0595196486,
-0.1440529078,
-0.1857401133,
0.1161190271,
-0.2237766981,
-0.0112761222,
-0.0158438962,
0.1422188431,
0.058799386,
-0.1249888241,
0.1064722165,
-0.062900804,
0.2071679831,
-0.0483339503,
-0.2763521373,
0.2495909184,
0.1456867456,
0.0456151851,
-0.2857960761,
-0.1747876555,
0.0830199793,
-0.2415055186,
-0.0872012824,
0.0237382166,
0.3663713336,
-0.1825467944,
-0.3392808139,
0.2706236541,
-0.1567008793,
0.3015139699,
0.1879754663,
-0.358071357,
0.3065020442,
0.016720444,
0.1781935096,
0.070491828,
0.1380853951,
0.0736545473,
0.4947437346,
0.2995415032,
-0.0968414694,
-0.1562502086,
0.5009900928,
-0.047043547,
-0.2185632139,
0.3112601042,
-0.1181774437,
-0.194535315,
0.0684310123,
0.0887453407,
0.3798216581,
0.1293765903,
-0.1915305853,
0.0146640446,
0.1435025036,
-0.2500295043,
0.1204057932,
-0.2204345465,
0.1473614722,
0.3965647519,
0.1270100176,
-0.1272859275,
-0.1951442659,
0.0377439484,
0.0875854418,
0.3257237971,
-0.4119554758,
-0.06754563,
-0.0734540075,
-0.0052057952,
-0.1802845299,
0.0986027271,
-0.055579666,
0.0971231908,
-0.3996110559,
0.3328242302,
0.2897822261,
-0.0790662766,
-0.2431260198,
0.0886345729,
0.2158126831,
-0.3370556235,
-0.0034610629,
-0.0489908867,
-0.2919399142,
-0.0261762813,
0.3307097256,
0.1098190546,
-0.0008771354,
-0.0217662975,
0.0280251876,
-0.0548452288,
-0.0925328135,
-0.0439248495,
-0.0732297003,
0.0209216531,
-0.0511661172,
0.419331044,
0.007607609,
-0.144630909,
0.4017488062,
-0.2536605895,
-0.0489247739,
0.3501355648,
0.0636934191,
-0.0958794132,
-0.1087074503,
-0.3498897851,
-0.139887765,
-0.4293371439,
0.3910629451,
0.0847562104,
0.0419315137,
0.0926313996,
0.4331048727,
-0.0260848179,
0.3013548255,
-0.0312165953,
-0.0848051086,
-0.2977057695,
0.3645740747,
-0.0561166108,
-0.467656225,
0.0119414479,
0.0828355998,
0.3591907024,
0.163827002,
-0.4252474308,
0.3267477155,
-0.1509075463,
0.1628201157,
0.0011048787,
-0.0242279954,
0.0609546639,
-0.0872275531,
-0.0218236372,
0.0364305675,
-0.2417155504,
-0.0141798817,
-0.032044746,
0.1475837827,
0.0513686761,
0.4584290385,
-0.0371929444,
0.6513359547,
0.0874641836,
-0.0882316083,
0.4855556488,
-0.3082401156,
0.3818775415,
-0.2096709758,
-0.3737452924,
-0.08557491,
-0.351981461,
-0.192446515,
0.2677484453,
-0.0335841104,
-0.0334150866,
-0.1257758737,
0.0035177544,
-0.4046860635,
-0.0377032496,
0.1836319864,
0.0306969211,
-0.0148301832,
-0.1005957946,
-0.0133008659,
-0.0116459094,
-0.2373631299,
-0.1942583323,
0.2739639878,
-0.151342541,
0.0633874908,
-0.2242483497,
-0.0615806021,
-0.3029372394,
0.3292048872,
-0.0136235543,
0.3102863133,
0.0106145218,
-0.0176953897,
0.0972968042,
-0.1252225041,
0.7449789047,
0.1892857999,
-0.1550701559,
0.1278295219,
-0.0241140723,
-0.4415835142,
-0.1217613816,
0.1906313002,
0.3073360622,
0.0744615495,
0.354865998,
-0.0703260526,
-0.0096936524,
-0.1443435252,
0.3546774983,
0.0432528704,
-0.3951278925,
-0.5194917321,
-0.2349790037,
-0.3830531538,
-0.2121350318,
-0.0898665935,
0.2882786989,
-0.3244076967,
-0.1423869431,
0.1183613837,
-0.2990534008,
0.0601569675,
0.1533816308,
0.2973895073,
-0.1129143089,
0.1448960006,
0.0468353294,
0.0698048323,
0.3769119978,
0.7987185717,
-0.0785761923,
-0.622077167,
0.084843725,
-0.2050262094,
0.385348022,
0.0478198342,
-0.2032050788,
0.1289871186,
0.0907345414,
0.0620337576,
0.0379481614,
0.0144372284,
0.3036864698,
0.0496551059,
-0.3454541266,
-0.5439224243,
0.4874187708,
-0.1259081215,
0.2102589309,
0.3020801544,
-0.2119998932,
-0.1099811569,
0.1555228531,
-0.3346247077,
0.6592134237,
-0.4218297899,
0.1938306391,
0.3073367178,
0.0563358665,
0.2584291697,
-0.4451968074,
0.1323072612,
-0.3919681311,
-0.2109029293,
-0.1043123752,
-0.0712032542,
0.2393859625,
0.4321895838,
-0.1212456375,
0.3118638098,
-0.0741498172,
0.3325560093,
0.1131342277,
0.2438254654,
-0.1005163267,
-0.0864684433,
-0.3010210097,
0.0104237683,
-0.1430806667,
-0.0349517614,
0.0289587304,
0.0544643402,
-0.1805676222,
-0.2016452551,
-0.2461118698,
0.2200244963,
-0.2911676764,
0.1154050305,
-0.1109545603,
-0.4686652422,
0.1963636875,
0.2380670607,
-0.2087021321,
-0.0851789415,
-0.1240850836,
0.155054152,
0.1596343368,
-0.0401754938,
-0.2083744109,
-0.0536958091,
-0.0158854555,
0.0761259347,
-0.235123992,
0.1545512229,
-0.1222789288,
-0.0956742838,
0.2780731916,
0.2376574576,
-0.0848071501,
-0.5452090502,
-0.5326190591,
-0.4284160733,
0.0759812519,
-0.1957322657,
0.0651981607,
-0.0420788489,
0.098341912,
-0.161635071,
0.1859352887,
-0.4688693881,
-0.1020268872,
0.391812861,
-0.1116866097,
0.0939545184,
0.5907299519,
0.2193500549,
-0.0168927088,
-0.1411526054,
0.0642407537,
0.308105737,
-0.3531886339,
0.1170662493,
0.1141490638,
0.3159501553,
0.1392528117,
0.2917455733,
0.156580627,
-0.0776726678,
0.074454695,
-0.511590302,
-0.3249695301,
-0.0165288001,
-0.0015312911,
0.2479579896,
0.1672189236,
0.0818671137,
0.1726779342,
0.2032968551,
-0.1562303603,
0.1004623696,
0.105929248,
-0.0869572908,
0.2106324881,
0.1420163512,
-0.1338727772,
-0.1038192734,
0.0934977233,
0.1776404083,
-0.0534452051,
-0.1887511164,
-0.0798560381,
0.150100112,
0.0983606428,
0.0232857689,
-0.2034451216,
-0.2526885867,
-0.1497060061,
-0.1928056777,
0.0664088577,
0.0297824368,
-0.0981117785,
0.0717601702,
-0.2987651527,
-0.0846541226,
-0.5091864467,
0.0271218121,
-0.5075390935,
0.2231321633,
0.2992689908,
0.0485822111,
0.1217575073,
0.2004555911,
-0.17242603,
-0.0311586484,
0.1516268104,
-0.1366188824,
0.3009470701,
-0.4014757276,
0.2035065144,
-0.0510656536,
0.3403373361,
0.4848606288,
-0.2076413333,
0.2197107375,
0.0375864208,
0.1341150999,
-0.3825284243,
0.2754765451,
0.1172316,
-0.0616294667,
-0.0274844915,
0.1696752608,
0.1992113888,
-0.2083072662,
-0.0957769752,
0.006910339,
0.4759888351,
-0.0078225527,
-0.033951249,
0.4135629833,
0.0027141422,
0.1789695323,
0.2403353155,
0.1356375366,
0.019620385,
0.7002614737,
-0.2602289915,
-0.0039647669,
-0.2352683693,
0.3014817536,
-0.3278698921,
-0.7641032338,
0.1616644859,
0.2355505526,
-0.3533103466,
-0.1676512063,
0.125898242,
0.6017511487,
-0.0233748816,
0.0114933141,
-0.1145935506,
-0.0448354296,
0.0140550677,
0.0483893305,
-0.0662136972,
-0.2536708117,
-0.0708237141,
0.1856830418,
-0.0595554672,
0.0145597812,
0.2749817669,
0.1876640767,
-0.1494834423,
-0.445759207,
0.0657749772,
0.1728486121,
0.0665427819,
-0.2748389244,
0.3666119576,
0.2653489411,
-0.0859920457,
0.1805051565,
-0.0413446873,
0.6402472258,
0.5041920543,
0.0924115479,
-0.0617403835,
-0.1215717867,
-0.1139908433,
-0.1794187427,
0.1778170317,
0.3488179445,
0.4212691784,
0.1485440582,
0.1135987118,
-0.0401851684,
0.3160887957,
0.2067887634,
0.0996010751,
-0.5459768176,
-0.1189198419,
-0.2083118409,
-0.2577385306,
-0.2266329825,
0.0241516493,
-0.289059788,
0.0209433027,
0.4277471006,
0.0739152133,
0.2772268355,
-0.0268226024,
0.0345675237,
0.0743338913,
0.3142201304,
0.2397758812,
0.4022898674,
-0.4218083322,
-0.0354188234,
-0.7509754896,
0.1165280938,
-0.3764893115,
0.0095925331,
-0.0318589211,
0.1585382521,
0.1377416253,
0.0838608593,
0.1591721773,
0.2994236648,
0.1167231351,
0.2220783085,
-0.0561849065,
-0.1846197844,
-0.3380708694,
0.0264858287,
-0.1750925481,
-0.4655139744,
0.221360445,
-0.1279321909,
0.009210974,
-0.2251858115,
0.2239885032,
0.2559674978,
-0.0059871143,
0.4777291417,
-0.1120111048,
0.6255965829,
-0.0850183517,
0.3190014958,
-0.3009389341,
-0.0801897198,
-0.192805469,
0.5200992823,
0.2061501443,
0.271399796,
-0.1779928505,
-0.1079162806,
-0.2153045833,
0.1574105471,
-0.0065483749,
-0.0705473498,
0.0667273924,
-0.151060313,
-0.001824148,
-0.0584905371,
0.1522313952,
0.0920481086,
-0.222938627,
-0.0781729147,
-0.1745534539,
-0.1801850945,
0.1810826659,
-0.4043291509,
-0.3411034942,
0.1487175822,
0.1261260509,
0.1018667817,
0.1396919489,
-0.452421248,
0.1217895448,
0.424474597,
-0.1280171573,
-0.4174260795,
0.1340318918,
-0.2116190642,
0.1005702466,
-0.121852532,
0.4765021205,
0.1411092579,
-0.3705090284,
-0.1615718156,
-0.3583216071
] |
https://github.com/huggingface/datasets/issues/836 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas | We should expose the [`block_size` argument](https://arrow.apache.org/docs/python/generated/pyarrow.csv.ReadOptions.html#pyarrow.csv.ReadOptions) of Apache Arrow csv `ReadOptions` in the [script](https://github.com/huggingface/datasets/blob/master/datasets/csv/csv.py).
In the meantime you can specify yourself the `ReadOptions` config like this:
```python
import pyarrow.csv as pac # PyArrow is installed with `datasets`
read_options = pac.ReadOptions(block_size=1e9) # try to find the right value for your use-case
dataset = load_dataset('csv', data_files=files, read_options=read_options)
```
| Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
| 56 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
We should expose the [`block_size` argument](https://arrow.apache.org/docs/python/generated/pyarrow.csv.ReadOptions.html#pyarrow.csv.ReadOptions) of Apache Arrow csv `ReadOptions` in the [script](https://github.com/huggingface/datasets/blob/master/datasets/csv/csv.py).
In the meantime you can specify yourself the `ReadOptions` config like this:
```python
import pyarrow.csv as pac # PyArrow is installed with `datasets`
read_options = pac.ReadOptions(block_size=1e9) # try to find the right value for your use-case
dataset = load_dataset('csv', data_files=files, read_options=read_options)
```
| [
-0.2411833555,
-0.319865346,
-0.0681557357,
0.4316073656,
0.3625251055,
0.0191547126,
0.5210208297,
0.4377132356,
0.2949129641,
0.0327753834,
0.0169626623,
-0.1187051386,
0.0905915797,
0.1802896559,
0.0350659937,
0.1130091101,
0.0730282366,
0.3988210261,
0.0317203514,
0.0699720979,
-0.2188605666,
0.1208697334,
0.0058675706,
0.0575149581,
-0.1244226694,
0.0723637342,
-0.008208625,
0.11691425,
-0.234351486,
-0.4013205767,
0.4197236001,
0.0784541667,
0.3328507543,
0.5207664967,
-0.0001169051,
0.1564733535,
0.2654488683,
-0.1856256276,
-0.0441996194,
-0.5195814371,
0.030130133,
-0.5329570174,
0.2776662707,
-0.1672023982,
-0.0144887194,
-0.1786803603,
-0.1109994575,
-0.0358057916,
0.3014125824,
0.3175451458,
0.180495888,
-0.2607494593,
0.0598924756,
-0.0100189745,
0.2052923739,
0.0371792242,
-0.0156857446,
0.4175470173,
0.1173955053,
-0.1267608404,
-0.0487308241,
-0.1936672777,
-0.2392428815,
0.3581994772,
0.3196350038,
0.1399400383,
0.0709676892,
-0.1089670807,
0.2680704892,
0.1055052727,
0.6067353487,
-0.3076422513,
-0.148547262,
-0.0154002979,
-0.0202969965,
-0.4886516631,
0.255815655,
0.4044945836,
-0.1521603614,
0.1173332781,
-0.2122124285,
0.2484470904,
-0.2663929164,
0.2028618604,
-0.0673475936,
-0.3531900048,
-0.2522073984,
0.2693183124,
0.252340585,
0.0737474933,
0.3336400092,
-0.0937501788,
0.0268539414,
0.1806968004,
-0.5556495786,
0.2796491981,
-0.1176609695,
-0.0904364884,
0.1637403071,
0.0962193012,
0.401422143,
0.1370626688,
0.0423449054,
0.1946977377,
0.3191301227,
0.1861323714,
-0.0428145118,
0.0691050887,
0.0273853503,
0.3462178409,
-0.2297835499,
-0.2338583022,
-0.3881368041,
-0.5049576163,
0.2381420881,
-0.1538382024,
0.2674437761,
-0.2704334855,
-0.2479329407,
-0.0960201621,
-0.0361325257,
-0.0094236135,
-0.0528344736,
0.5738202929,
0.2158340812,
0.3802044094,
-0.0542098209,
0.2572089136,
-0.2112756521,
-0.0986546353,
-0.0803525597,
0.0201156028,
-0.0576024354,
0.0522915125,
0.3777483702,
-0.2166883647,
0.1214606091,
0.1762956977,
-0.0435165763,
-0.2938743234,
-0.1455051899,
-0.4177225232,
0.0367246494,
0.2833083272,
0.2024737746,
0.0979532525,
0.2341531366,
-0.2812094092,
-0.0606880635,
0.3805412948,
-0.2301191688,
-0.168569088,
0.0972645059,
0.0963023454,
-0.0661173239,
0.1656781435,
-0.3956313729,
0.1563510448,
0.3519504964,
-0.4384937584,
0.0334676951,
-0.2134843022,
-0.2411230356,
-0.3524808884,
0.20189026,
0.2790591717,
-0.7854656577,
0.3429477811,
0.053906288,
-0.0317483805,
0.1149990261,
0.423715055,
-0.1483170539,
0.0611785054,
-0.270986706,
0.0921522081,
0.1406244487,
0.0075427517,
-0.6293672919,
0.3307561278,
-0.0460273772,
0.0895458683,
0.3120642304,
0.0645525455,
0.0512146875,
0.0891776234,
-0.1080221385,
0.018553935,
0.0231347587,
0.0440056399,
-0.2607474327,
-0.129192397,
0.3187511563,
0.1426241547,
-0.0647739023,
-0.0676733106,
0.238888815,
-0.4087392092,
0.2025449574,
-0.01808713,
0.1416161954,
0.1752465665,
0.1791315824,
-0.1968238652,
0.0349738337,
0.010433495,
-0.449349463,
0.1433820128,
0.2848804295,
-0.1687007546,
-0.2159444988,
-0.0797309205,
-0.3841179907,
-0.0297013782,
-0.2681601644,
-0.1242000237,
-0.024652645,
0.0725154132,
0.0595196486,
-0.1440529078,
-0.1857401133,
0.1161190271,
-0.2237766981,
-0.0112761222,
-0.0158438962,
0.1422188431,
0.058799386,
-0.1249888241,
0.1064722165,
-0.062900804,
0.2071679831,
-0.0483339503,
-0.2763521373,
0.2495909184,
0.1456867456,
0.0456151851,
-0.2857960761,
-0.1747876555,
0.0830199793,
-0.2415055186,
-0.0872012824,
0.0237382166,
0.3663713336,
-0.1825467944,
-0.3392808139,
0.2706236541,
-0.1567008793,
0.3015139699,
0.1879754663,
-0.358071357,
0.3065020442,
0.016720444,
0.1781935096,
0.070491828,
0.1380853951,
0.0736545473,
0.4947437346,
0.2995415032,
-0.0968414694,
-0.1562502086,
0.5009900928,
-0.047043547,
-0.2185632139,
0.3112601042,
-0.1181774437,
-0.194535315,
0.0684310123,
0.0887453407,
0.3798216581,
0.1293765903,
-0.1915305853,
0.0146640446,
0.1435025036,
-0.2500295043,
0.1204057932,
-0.2204345465,
0.1473614722,
0.3965647519,
0.1270100176,
-0.1272859275,
-0.1951442659,
0.0377439484,
0.0875854418,
0.3257237971,
-0.4119554758,
-0.06754563,
-0.0734540075,
-0.0052057952,
-0.1802845299,
0.0986027271,
-0.055579666,
0.0971231908,
-0.3996110559,
0.3328242302,
0.2897822261,
-0.0790662766,
-0.2431260198,
0.0886345729,
0.2158126831,
-0.3370556235,
-0.0034610629,
-0.0489908867,
-0.2919399142,
-0.0261762813,
0.3307097256,
0.1098190546,
-0.0008771354,
-0.0217662975,
0.0280251876,
-0.0548452288,
-0.0925328135,
-0.0439248495,
-0.0732297003,
0.0209216531,
-0.0511661172,
0.419331044,
0.007607609,
-0.144630909,
0.4017488062,
-0.2536605895,
-0.0489247739,
0.3501355648,
0.0636934191,
-0.0958794132,
-0.1087074503,
-0.3498897851,
-0.139887765,
-0.4293371439,
0.3910629451,
0.0847562104,
0.0419315137,
0.0926313996,
0.4331048727,
-0.0260848179,
0.3013548255,
-0.0312165953,
-0.0848051086,
-0.2977057695,
0.3645740747,
-0.0561166108,
-0.467656225,
0.0119414479,
0.0828355998,
0.3591907024,
0.163827002,
-0.4252474308,
0.3267477155,
-0.1509075463,
0.1628201157,
0.0011048787,
-0.0242279954,
0.0609546639,
-0.0872275531,
-0.0218236372,
0.0364305675,
-0.2417155504,
-0.0141798817,
-0.032044746,
0.1475837827,
0.0513686761,
0.4584290385,
-0.0371929444,
0.6513359547,
0.0874641836,
-0.0882316083,
0.4855556488,
-0.3082401156,
0.3818775415,
-0.2096709758,
-0.3737452924,
-0.08557491,
-0.351981461,
-0.192446515,
0.2677484453,
-0.0335841104,
-0.0334150866,
-0.1257758737,
0.0035177544,
-0.4046860635,
-0.0377032496,
0.1836319864,
0.0306969211,
-0.0148301832,
-0.1005957946,
-0.0133008659,
-0.0116459094,
-0.2373631299,
-0.1942583323,
0.2739639878,
-0.151342541,
0.0633874908,
-0.2242483497,
-0.0615806021,
-0.3029372394,
0.3292048872,
-0.0136235543,
0.3102863133,
0.0106145218,
-0.0176953897,
0.0972968042,
-0.1252225041,
0.7449789047,
0.1892857999,
-0.1550701559,
0.1278295219,
-0.0241140723,
-0.4415835142,
-0.1217613816,
0.1906313002,
0.3073360622,
0.0744615495,
0.354865998,
-0.0703260526,
-0.0096936524,
-0.1443435252,
0.3546774983,
0.0432528704,
-0.3951278925,
-0.5194917321,
-0.2349790037,
-0.3830531538,
-0.2121350318,
-0.0898665935,
0.2882786989,
-0.3244076967,
-0.1423869431,
0.1183613837,
-0.2990534008,
0.0601569675,
0.1533816308,
0.2973895073,
-0.1129143089,
0.1448960006,
0.0468353294,
0.0698048323,
0.3769119978,
0.7987185717,
-0.0785761923,
-0.622077167,
0.084843725,
-0.2050262094,
0.385348022,
0.0478198342,
-0.2032050788,
0.1289871186,
0.0907345414,
0.0620337576,
0.0379481614,
0.0144372284,
0.3036864698,
0.0496551059,
-0.3454541266,
-0.5439224243,
0.4874187708,
-0.1259081215,
0.2102589309,
0.3020801544,
-0.2119998932,
-0.1099811569,
0.1555228531,
-0.3346247077,
0.6592134237,
-0.4218297899,
0.1938306391,
0.3073367178,
0.0563358665,
0.2584291697,
-0.4451968074,
0.1323072612,
-0.3919681311,
-0.2109029293,
-0.1043123752,
-0.0712032542,
0.2393859625,
0.4321895838,
-0.1212456375,
0.3118638098,
-0.0741498172,
0.3325560093,
0.1131342277,
0.2438254654,
-0.1005163267,
-0.0864684433,
-0.3010210097,
0.0104237683,
-0.1430806667,
-0.0349517614,
0.0289587304,
0.0544643402,
-0.1805676222,
-0.2016452551,
-0.2461118698,
0.2200244963,
-0.2911676764,
0.1154050305,
-0.1109545603,
-0.4686652422,
0.1963636875,
0.2380670607,
-0.2087021321,
-0.0851789415,
-0.1240850836,
0.155054152,
0.1596343368,
-0.0401754938,
-0.2083744109,
-0.0536958091,
-0.0158854555,
0.0761259347,
-0.235123992,
0.1545512229,
-0.1222789288,
-0.0956742838,
0.2780731916,
0.2376574576,
-0.0848071501,
-0.5452090502,
-0.5326190591,
-0.4284160733,
0.0759812519,
-0.1957322657,
0.0651981607,
-0.0420788489,
0.098341912,
-0.161635071,
0.1859352887,
-0.4688693881,
-0.1020268872,
0.391812861,
-0.1116866097,
0.0939545184,
0.5907299519,
0.2193500549,
-0.0168927088,
-0.1411526054,
0.0642407537,
0.308105737,
-0.3531886339,
0.1170662493,
0.1141490638,
0.3159501553,
0.1392528117,
0.2917455733,
0.156580627,
-0.0776726678,
0.074454695,
-0.511590302,
-0.3249695301,
-0.0165288001,
-0.0015312911,
0.2479579896,
0.1672189236,
0.0818671137,
0.1726779342,
0.2032968551,
-0.1562303603,
0.1004623696,
0.105929248,
-0.0869572908,
0.2106324881,
0.1420163512,
-0.1338727772,
-0.1038192734,
0.0934977233,
0.1776404083,
-0.0534452051,
-0.1887511164,
-0.0798560381,
0.150100112,
0.0983606428,
0.0232857689,
-0.2034451216,
-0.2526885867,
-0.1497060061,
-0.1928056777,
0.0664088577,
0.0297824368,
-0.0981117785,
0.0717601702,
-0.2987651527,
-0.0846541226,
-0.5091864467,
0.0271218121,
-0.5075390935,
0.2231321633,
0.2992689908,
0.0485822111,
0.1217575073,
0.2004555911,
-0.17242603,
-0.0311586484,
0.1516268104,
-0.1366188824,
0.3009470701,
-0.4014757276,
0.2035065144,
-0.0510656536,
0.3403373361,
0.4848606288,
-0.2076413333,
0.2197107375,
0.0375864208,
0.1341150999,
-0.3825284243,
0.2754765451,
0.1172316,
-0.0616294667,
-0.0274844915,
0.1696752608,
0.1992113888,
-0.2083072662,
-0.0957769752,
0.006910339,
0.4759888351,
-0.0078225527,
-0.033951249,
0.4135629833,
0.0027141422,
0.1789695323,
0.2403353155,
0.1356375366,
0.019620385,
0.7002614737,
-0.2602289915,
-0.0039647669,
-0.2352683693,
0.3014817536,
-0.3278698921,
-0.7641032338,
0.1616644859,
0.2355505526,
-0.3533103466,
-0.1676512063,
0.125898242,
0.6017511487,
-0.0233748816,
0.0114933141,
-0.1145935506,
-0.0448354296,
0.0140550677,
0.0483893305,
-0.0662136972,
-0.2536708117,
-0.0708237141,
0.1856830418,
-0.0595554672,
0.0145597812,
0.2749817669,
0.1876640767,
-0.1494834423,
-0.445759207,
0.0657749772,
0.1728486121,
0.0665427819,
-0.2748389244,
0.3666119576,
0.2653489411,
-0.0859920457,
0.1805051565,
-0.0413446873,
0.6402472258,
0.5041920543,
0.0924115479,
-0.0617403835,
-0.1215717867,
-0.1139908433,
-0.1794187427,
0.1778170317,
0.3488179445,
0.4212691784,
0.1485440582,
0.1135987118,
-0.0401851684,
0.3160887957,
0.2067887634,
0.0996010751,
-0.5459768176,
-0.1189198419,
-0.2083118409,
-0.2577385306,
-0.2266329825,
0.0241516493,
-0.289059788,
0.0209433027,
0.4277471006,
0.0739152133,
0.2772268355,
-0.0268226024,
0.0345675237,
0.0743338913,
0.3142201304,
0.2397758812,
0.4022898674,
-0.4218083322,
-0.0354188234,
-0.7509754896,
0.1165280938,
-0.3764893115,
0.0095925331,
-0.0318589211,
0.1585382521,
0.1377416253,
0.0838608593,
0.1591721773,
0.2994236648,
0.1167231351,
0.2220783085,
-0.0561849065,
-0.1846197844,
-0.3380708694,
0.0264858287,
-0.1750925481,
-0.4655139744,
0.221360445,
-0.1279321909,
0.009210974,
-0.2251858115,
0.2239885032,
0.2559674978,
-0.0059871143,
0.4777291417,
-0.1120111048,
0.6255965829,
-0.0850183517,
0.3190014958,
-0.3009389341,
-0.0801897198,
-0.192805469,
0.5200992823,
0.2061501443,
0.271399796,
-0.1779928505,
-0.1079162806,
-0.2153045833,
0.1574105471,
-0.0065483749,
-0.0705473498,
0.0667273924,
-0.151060313,
-0.001824148,
-0.0584905371,
0.1522313952,
0.0920481086,
-0.222938627,
-0.0781729147,
-0.1745534539,
-0.1801850945,
0.1810826659,
-0.4043291509,
-0.3411034942,
0.1487175822,
0.1261260509,
0.1018667817,
0.1396919489,
-0.452421248,
0.1217895448,
0.424474597,
-0.1280171573,
-0.4174260795,
0.1340318918,
-0.2116190642,
0.1005702466,
-0.121852532,
0.4765021205,
0.1411092579,
-0.3705090284,
-0.1615718156,
-0.3583216071
] |
https://github.com/huggingface/datasets/issues/836 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas | This did help to load the data. But the problem now is that I get:
ArrowInvalid: CSV parse error: Expected 5 columns, got 187
It seems that this change the parsing so I changed the table to tab-separated and tried to load it directly from pyarrow
But I got a similar error, again it loaded fine in pandas so I am not sure what to do.
| Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
| 66 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
This did help to load the data. But the problem now is that I get:
ArrowInvalid: CSV parse error: Expected 5 columns, got 187
It seems that this change the parsing so I changed the table to tab-separated and tried to load it directly from pyarrow
But I got a similar error, again it loaded fine in pandas so I am not sure what to do.
| [
-0.2411833555,
-0.319865346,
-0.0681557357,
0.4316073656,
0.3625251055,
0.0191547126,
0.5210208297,
0.4377132356,
0.2949129641,
0.0327753834,
0.0169626623,
-0.1187051386,
0.0905915797,
0.1802896559,
0.0350659937,
0.1130091101,
0.0730282366,
0.3988210261,
0.0317203514,
0.0699720979,
-0.2188605666,
0.1208697334,
0.0058675706,
0.0575149581,
-0.1244226694,
0.0723637342,
-0.008208625,
0.11691425,
-0.234351486,
-0.4013205767,
0.4197236001,
0.0784541667,
0.3328507543,
0.5207664967,
-0.0001169051,
0.1564733535,
0.2654488683,
-0.1856256276,
-0.0441996194,
-0.5195814371,
0.030130133,
-0.5329570174,
0.2776662707,
-0.1672023982,
-0.0144887194,
-0.1786803603,
-0.1109994575,
-0.0358057916,
0.3014125824,
0.3175451458,
0.180495888,
-0.2607494593,
0.0598924756,
-0.0100189745,
0.2052923739,
0.0371792242,
-0.0156857446,
0.4175470173,
0.1173955053,
-0.1267608404,
-0.0487308241,
-0.1936672777,
-0.2392428815,
0.3581994772,
0.3196350038,
0.1399400383,
0.0709676892,
-0.1089670807,
0.2680704892,
0.1055052727,
0.6067353487,
-0.3076422513,
-0.148547262,
-0.0154002979,
-0.0202969965,
-0.4886516631,
0.255815655,
0.4044945836,
-0.1521603614,
0.1173332781,
-0.2122124285,
0.2484470904,
-0.2663929164,
0.2028618604,
-0.0673475936,
-0.3531900048,
-0.2522073984,
0.2693183124,
0.252340585,
0.0737474933,
0.3336400092,
-0.0937501788,
0.0268539414,
0.1806968004,
-0.5556495786,
0.2796491981,
-0.1176609695,
-0.0904364884,
0.1637403071,
0.0962193012,
0.401422143,
0.1370626688,
0.0423449054,
0.1946977377,
0.3191301227,
0.1861323714,
-0.0428145118,
0.0691050887,
0.0273853503,
0.3462178409,
-0.2297835499,
-0.2338583022,
-0.3881368041,
-0.5049576163,
0.2381420881,
-0.1538382024,
0.2674437761,
-0.2704334855,
-0.2479329407,
-0.0960201621,
-0.0361325257,
-0.0094236135,
-0.0528344736,
0.5738202929,
0.2158340812,
0.3802044094,
-0.0542098209,
0.2572089136,
-0.2112756521,
-0.0986546353,
-0.0803525597,
0.0201156028,
-0.0576024354,
0.0522915125,
0.3777483702,
-0.2166883647,
0.1214606091,
0.1762956977,
-0.0435165763,
-0.2938743234,
-0.1455051899,
-0.4177225232,
0.0367246494,
0.2833083272,
0.2024737746,
0.0979532525,
0.2341531366,
-0.2812094092,
-0.0606880635,
0.3805412948,
-0.2301191688,
-0.168569088,
0.0972645059,
0.0963023454,
-0.0661173239,
0.1656781435,
-0.3956313729,
0.1563510448,
0.3519504964,
-0.4384937584,
0.0334676951,
-0.2134843022,
-0.2411230356,
-0.3524808884,
0.20189026,
0.2790591717,
-0.7854656577,
0.3429477811,
0.053906288,
-0.0317483805,
0.1149990261,
0.423715055,
-0.1483170539,
0.0611785054,
-0.270986706,
0.0921522081,
0.1406244487,
0.0075427517,
-0.6293672919,
0.3307561278,
-0.0460273772,
0.0895458683,
0.3120642304,
0.0645525455,
0.0512146875,
0.0891776234,
-0.1080221385,
0.018553935,
0.0231347587,
0.0440056399,
-0.2607474327,
-0.129192397,
0.3187511563,
0.1426241547,
-0.0647739023,
-0.0676733106,
0.238888815,
-0.4087392092,
0.2025449574,
-0.01808713,
0.1416161954,
0.1752465665,
0.1791315824,
-0.1968238652,
0.0349738337,
0.010433495,
-0.449349463,
0.1433820128,
0.2848804295,
-0.1687007546,
-0.2159444988,
-0.0797309205,
-0.3841179907,
-0.0297013782,
-0.2681601644,
-0.1242000237,
-0.024652645,
0.0725154132,
0.0595196486,
-0.1440529078,
-0.1857401133,
0.1161190271,
-0.2237766981,
-0.0112761222,
-0.0158438962,
0.1422188431,
0.058799386,
-0.1249888241,
0.1064722165,
-0.062900804,
0.2071679831,
-0.0483339503,
-0.2763521373,
0.2495909184,
0.1456867456,
0.0456151851,
-0.2857960761,
-0.1747876555,
0.0830199793,
-0.2415055186,
-0.0872012824,
0.0237382166,
0.3663713336,
-0.1825467944,
-0.3392808139,
0.2706236541,
-0.1567008793,
0.3015139699,
0.1879754663,
-0.358071357,
0.3065020442,
0.016720444,
0.1781935096,
0.070491828,
0.1380853951,
0.0736545473,
0.4947437346,
0.2995415032,
-0.0968414694,
-0.1562502086,
0.5009900928,
-0.047043547,
-0.2185632139,
0.3112601042,
-0.1181774437,
-0.194535315,
0.0684310123,
0.0887453407,
0.3798216581,
0.1293765903,
-0.1915305853,
0.0146640446,
0.1435025036,
-0.2500295043,
0.1204057932,
-0.2204345465,
0.1473614722,
0.3965647519,
0.1270100176,
-0.1272859275,
-0.1951442659,
0.0377439484,
0.0875854418,
0.3257237971,
-0.4119554758,
-0.06754563,
-0.0734540075,
-0.0052057952,
-0.1802845299,
0.0986027271,
-0.055579666,
0.0971231908,
-0.3996110559,
0.3328242302,
0.2897822261,
-0.0790662766,
-0.2431260198,
0.0886345729,
0.2158126831,
-0.3370556235,
-0.0034610629,
-0.0489908867,
-0.2919399142,
-0.0261762813,
0.3307097256,
0.1098190546,
-0.0008771354,
-0.0217662975,
0.0280251876,
-0.0548452288,
-0.0925328135,
-0.0439248495,
-0.0732297003,
0.0209216531,
-0.0511661172,
0.419331044,
0.007607609,
-0.144630909,
0.4017488062,
-0.2536605895,
-0.0489247739,
0.3501355648,
0.0636934191,
-0.0958794132,
-0.1087074503,
-0.3498897851,
-0.139887765,
-0.4293371439,
0.3910629451,
0.0847562104,
0.0419315137,
0.0926313996,
0.4331048727,
-0.0260848179,
0.3013548255,
-0.0312165953,
-0.0848051086,
-0.2977057695,
0.3645740747,
-0.0561166108,
-0.467656225,
0.0119414479,
0.0828355998,
0.3591907024,
0.163827002,
-0.4252474308,
0.3267477155,
-0.1509075463,
0.1628201157,
0.0011048787,
-0.0242279954,
0.0609546639,
-0.0872275531,
-0.0218236372,
0.0364305675,
-0.2417155504,
-0.0141798817,
-0.032044746,
0.1475837827,
0.0513686761,
0.4584290385,
-0.0371929444,
0.6513359547,
0.0874641836,
-0.0882316083,
0.4855556488,
-0.3082401156,
0.3818775415,
-0.2096709758,
-0.3737452924,
-0.08557491,
-0.351981461,
-0.192446515,
0.2677484453,
-0.0335841104,
-0.0334150866,
-0.1257758737,
0.0035177544,
-0.4046860635,
-0.0377032496,
0.1836319864,
0.0306969211,
-0.0148301832,
-0.1005957946,
-0.0133008659,
-0.0116459094,
-0.2373631299,
-0.1942583323,
0.2739639878,
-0.151342541,
0.0633874908,
-0.2242483497,
-0.0615806021,
-0.3029372394,
0.3292048872,
-0.0136235543,
0.3102863133,
0.0106145218,
-0.0176953897,
0.0972968042,
-0.1252225041,
0.7449789047,
0.1892857999,
-0.1550701559,
0.1278295219,
-0.0241140723,
-0.4415835142,
-0.1217613816,
0.1906313002,
0.3073360622,
0.0744615495,
0.354865998,
-0.0703260526,
-0.0096936524,
-0.1443435252,
0.3546774983,
0.0432528704,
-0.3951278925,
-0.5194917321,
-0.2349790037,
-0.3830531538,
-0.2121350318,
-0.0898665935,
0.2882786989,
-0.3244076967,
-0.1423869431,
0.1183613837,
-0.2990534008,
0.0601569675,
0.1533816308,
0.2973895073,
-0.1129143089,
0.1448960006,
0.0468353294,
0.0698048323,
0.3769119978,
0.7987185717,
-0.0785761923,
-0.622077167,
0.084843725,
-0.2050262094,
0.385348022,
0.0478198342,
-0.2032050788,
0.1289871186,
0.0907345414,
0.0620337576,
0.0379481614,
0.0144372284,
0.3036864698,
0.0496551059,
-0.3454541266,
-0.5439224243,
0.4874187708,
-0.1259081215,
0.2102589309,
0.3020801544,
-0.2119998932,
-0.1099811569,
0.1555228531,
-0.3346247077,
0.6592134237,
-0.4218297899,
0.1938306391,
0.3073367178,
0.0563358665,
0.2584291697,
-0.4451968074,
0.1323072612,
-0.3919681311,
-0.2109029293,
-0.1043123752,
-0.0712032542,
0.2393859625,
0.4321895838,
-0.1212456375,
0.3118638098,
-0.0741498172,
0.3325560093,
0.1131342277,
0.2438254654,
-0.1005163267,
-0.0864684433,
-0.3010210097,
0.0104237683,
-0.1430806667,
-0.0349517614,
0.0289587304,
0.0544643402,
-0.1805676222,
-0.2016452551,
-0.2461118698,
0.2200244963,
-0.2911676764,
0.1154050305,
-0.1109545603,
-0.4686652422,
0.1963636875,
0.2380670607,
-0.2087021321,
-0.0851789415,
-0.1240850836,
0.155054152,
0.1596343368,
-0.0401754938,
-0.2083744109,
-0.0536958091,
-0.0158854555,
0.0761259347,
-0.235123992,
0.1545512229,
-0.1222789288,
-0.0956742838,
0.2780731916,
0.2376574576,
-0.0848071501,
-0.5452090502,
-0.5326190591,
-0.4284160733,
0.0759812519,
-0.1957322657,
0.0651981607,
-0.0420788489,
0.098341912,
-0.161635071,
0.1859352887,
-0.4688693881,
-0.1020268872,
0.391812861,
-0.1116866097,
0.0939545184,
0.5907299519,
0.2193500549,
-0.0168927088,
-0.1411526054,
0.0642407537,
0.308105737,
-0.3531886339,
0.1170662493,
0.1141490638,
0.3159501553,
0.1392528117,
0.2917455733,
0.156580627,
-0.0776726678,
0.074454695,
-0.511590302,
-0.3249695301,
-0.0165288001,
-0.0015312911,
0.2479579896,
0.1672189236,
0.0818671137,
0.1726779342,
0.2032968551,
-0.1562303603,
0.1004623696,
0.105929248,
-0.0869572908,
0.2106324881,
0.1420163512,
-0.1338727772,
-0.1038192734,
0.0934977233,
0.1776404083,
-0.0534452051,
-0.1887511164,
-0.0798560381,
0.150100112,
0.0983606428,
0.0232857689,
-0.2034451216,
-0.2526885867,
-0.1497060061,
-0.1928056777,
0.0664088577,
0.0297824368,
-0.0981117785,
0.0717601702,
-0.2987651527,
-0.0846541226,
-0.5091864467,
0.0271218121,
-0.5075390935,
0.2231321633,
0.2992689908,
0.0485822111,
0.1217575073,
0.2004555911,
-0.17242603,
-0.0311586484,
0.1516268104,
-0.1366188824,
0.3009470701,
-0.4014757276,
0.2035065144,
-0.0510656536,
0.3403373361,
0.4848606288,
-0.2076413333,
0.2197107375,
0.0375864208,
0.1341150999,
-0.3825284243,
0.2754765451,
0.1172316,
-0.0616294667,
-0.0274844915,
0.1696752608,
0.1992113888,
-0.2083072662,
-0.0957769752,
0.006910339,
0.4759888351,
-0.0078225527,
-0.033951249,
0.4135629833,
0.0027141422,
0.1789695323,
0.2403353155,
0.1356375366,
0.019620385,
0.7002614737,
-0.2602289915,
-0.0039647669,
-0.2352683693,
0.3014817536,
-0.3278698921,
-0.7641032338,
0.1616644859,
0.2355505526,
-0.3533103466,
-0.1676512063,
0.125898242,
0.6017511487,
-0.0233748816,
0.0114933141,
-0.1145935506,
-0.0448354296,
0.0140550677,
0.0483893305,
-0.0662136972,
-0.2536708117,
-0.0708237141,
0.1856830418,
-0.0595554672,
0.0145597812,
0.2749817669,
0.1876640767,
-0.1494834423,
-0.445759207,
0.0657749772,
0.1728486121,
0.0665427819,
-0.2748389244,
0.3666119576,
0.2653489411,
-0.0859920457,
0.1805051565,
-0.0413446873,
0.6402472258,
0.5041920543,
0.0924115479,
-0.0617403835,
-0.1215717867,
-0.1139908433,
-0.1794187427,
0.1778170317,
0.3488179445,
0.4212691784,
0.1485440582,
0.1135987118,
-0.0401851684,
0.3160887957,
0.2067887634,
0.0996010751,
-0.5459768176,
-0.1189198419,
-0.2083118409,
-0.2577385306,
-0.2266329825,
0.0241516493,
-0.289059788,
0.0209433027,
0.4277471006,
0.0739152133,
0.2772268355,
-0.0268226024,
0.0345675237,
0.0743338913,
0.3142201304,
0.2397758812,
0.4022898674,
-0.4218083322,
-0.0354188234,
-0.7509754896,
0.1165280938,
-0.3764893115,
0.0095925331,
-0.0318589211,
0.1585382521,
0.1377416253,
0.0838608593,
0.1591721773,
0.2994236648,
0.1167231351,
0.2220783085,
-0.0561849065,
-0.1846197844,
-0.3380708694,
0.0264858287,
-0.1750925481,
-0.4655139744,
0.221360445,
-0.1279321909,
0.009210974,
-0.2251858115,
0.2239885032,
0.2559674978,
-0.0059871143,
0.4777291417,
-0.1120111048,
0.6255965829,
-0.0850183517,
0.3190014958,
-0.3009389341,
-0.0801897198,
-0.192805469,
0.5200992823,
0.2061501443,
0.271399796,
-0.1779928505,
-0.1079162806,
-0.2153045833,
0.1574105471,
-0.0065483749,
-0.0705473498,
0.0667273924,
-0.151060313,
-0.001824148,
-0.0584905371,
0.1522313952,
0.0920481086,
-0.222938627,
-0.0781729147,
-0.1745534539,
-0.1801850945,
0.1810826659,
-0.4043291509,
-0.3411034942,
0.1487175822,
0.1261260509,
0.1018667817,
0.1396919489,
-0.452421248,
0.1217895448,
0.424474597,
-0.1280171573,
-0.4174260795,
0.1340318918,
-0.2116190642,
0.1005702466,
-0.121852532,
0.4765021205,
0.1411092579,
-0.3705090284,
-0.1615718156,
-0.3583216071
] |
https://github.com/huggingface/datasets/issues/836 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas | Got almost the same error loading a ~5GB TSV file, first got the same error as OP, then tried giving it my own ReadOptions and also got the same CSV parse error. | Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
| 32 | load_dataset with 'csv' is not working. while the same file is loading with 'text' mode or with pandas
Hi All
I am trying to load a custom dataset and I am trying to load a single file to make sure the file is loading correctly:
dataset = load_dataset('csv', data_files=files)
When I run it I get:
Downloading and preparing dataset csv/default-35575a1051604c88 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) tocache/huggingface/datasets/csv/default-35575a1051604c88/0.0.0/49187751790fa4d820300fd4d0707896e5b941f1a9c644652645b866716a4ac4...
I am getting this error:
6a4ac4/csv.py in _generate_tables(self, files)
78 def _generate_tables(self, files):
79 for i, file in enumerate(files):
---> 80 pa_table = pac.read_csv(
81 file,
82 read_options=self.config.pa_read_options,
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/anaconda2/envs/nlp/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
**ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)**
The size of the file is 3.5 GB. When I try smaller files I do not have an issue. When I load it with 'text' parser I can see all data but it is not what I need.
There is no issue reading the file with pandas. any idea what could be the issue?
When I am running a different CSV I do not get this line:
(download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size)
Any ideas?
Got almost the same error loading a ~5GB TSV file, first got the same error as OP, then tried giving it my own ReadOptions and also got the same CSV parse error. | [
-0.2411833555,
-0.319865346,
-0.0681557357,
0.4316073656,
0.3625251055,
0.0191547126,
0.5210208297,
0.4377132356,
0.2949129641,
0.0327753834,
0.0169626623,
-0.1187051386,
0.0905915797,
0.1802896559,
0.0350659937,
0.1130091101,
0.0730282366,
0.3988210261,
0.0317203514,
0.0699720979,
-0.2188605666,
0.1208697334,
0.0058675706,
0.0575149581,
-0.1244226694,
0.0723637342,
-0.008208625,
0.11691425,
-0.234351486,
-0.4013205767,
0.4197236001,
0.0784541667,
0.3328507543,
0.5207664967,
-0.0001169051,
0.1564733535,
0.2654488683,
-0.1856256276,
-0.0441996194,
-0.5195814371,
0.030130133,
-0.5329570174,
0.2776662707,
-0.1672023982,
-0.0144887194,
-0.1786803603,
-0.1109994575,
-0.0358057916,
0.3014125824,
0.3175451458,
0.180495888,
-0.2607494593,
0.0598924756,
-0.0100189745,
0.2052923739,
0.0371792242,
-0.0156857446,
0.4175470173,
0.1173955053,
-0.1267608404,
-0.0487308241,
-0.1936672777,
-0.2392428815,
0.3581994772,
0.3196350038,
0.1399400383,
0.0709676892,
-0.1089670807,
0.2680704892,
0.1055052727,
0.6067353487,
-0.3076422513,
-0.148547262,
-0.0154002979,
-0.0202969965,
-0.4886516631,
0.255815655,
0.4044945836,
-0.1521603614,
0.1173332781,
-0.2122124285,
0.2484470904,
-0.2663929164,
0.2028618604,
-0.0673475936,
-0.3531900048,
-0.2522073984,
0.2693183124,
0.252340585,
0.0737474933,
0.3336400092,
-0.0937501788,
0.0268539414,
0.1806968004,
-0.5556495786,
0.2796491981,
-0.1176609695,
-0.0904364884,
0.1637403071,
0.0962193012,
0.401422143,
0.1370626688,
0.0423449054,
0.1946977377,
0.3191301227,
0.1861323714,
-0.0428145118,
0.0691050887,
0.0273853503,
0.3462178409,
-0.2297835499,
-0.2338583022,
-0.3881368041,
-0.5049576163,
0.2381420881,
-0.1538382024,
0.2674437761,
-0.2704334855,
-0.2479329407,
-0.0960201621,
-0.0361325257,
-0.0094236135,
-0.0528344736,
0.5738202929,
0.2158340812,
0.3802044094,
-0.0542098209,
0.2572089136,
-0.2112756521,
-0.0986546353,
-0.0803525597,
0.0201156028,
-0.0576024354,
0.0522915125,
0.3777483702,
-0.2166883647,
0.1214606091,
0.1762956977,
-0.0435165763,
-0.2938743234,
-0.1455051899,
-0.4177225232,
0.0367246494,
0.2833083272,
0.2024737746,
0.0979532525,
0.2341531366,
-0.2812094092,
-0.0606880635,
0.3805412948,
-0.2301191688,
-0.168569088,
0.0972645059,
0.0963023454,
-0.0661173239,
0.1656781435,
-0.3956313729,
0.1563510448,
0.3519504964,
-0.4384937584,
0.0334676951,
-0.2134843022,
-0.2411230356,
-0.3524808884,
0.20189026,
0.2790591717,
-0.7854656577,
0.3429477811,
0.053906288,
-0.0317483805,
0.1149990261,
0.423715055,
-0.1483170539,
0.0611785054,
-0.270986706,
0.0921522081,
0.1406244487,
0.0075427517,
-0.6293672919,
0.3307561278,
-0.0460273772,
0.0895458683,
0.3120642304,
0.0645525455,
0.0512146875,
0.0891776234,
-0.1080221385,
0.018553935,
0.0231347587,
0.0440056399,
-0.2607474327,
-0.129192397,
0.3187511563,
0.1426241547,
-0.0647739023,
-0.0676733106,
0.238888815,
-0.4087392092,
0.2025449574,
-0.01808713,
0.1416161954,
0.1752465665,
0.1791315824,
-0.1968238652,
0.0349738337,
0.010433495,
-0.449349463,
0.1433820128,
0.2848804295,
-0.1687007546,
-0.2159444988,
-0.0797309205,
-0.3841179907,
-0.0297013782,
-0.2681601644,
-0.1242000237,
-0.024652645,
0.0725154132,
0.0595196486,
-0.1440529078,
-0.1857401133,
0.1161190271,
-0.2237766981,
-0.0112761222,
-0.0158438962,
0.1422188431,
0.058799386,
-0.1249888241,
0.1064722165,
-0.062900804,
0.2071679831,
-0.0483339503,
-0.2763521373,
0.2495909184,
0.1456867456,
0.0456151851,
-0.2857960761,
-0.1747876555,
0.0830199793,
-0.2415055186,
-0.0872012824,
0.0237382166,
0.3663713336,
-0.1825467944,
-0.3392808139,
0.2706236541,
-0.1567008793,
0.3015139699,
0.1879754663,
-0.358071357,
0.3065020442,
0.016720444,
0.1781935096,
0.070491828,
0.1380853951,
0.0736545473,
0.4947437346,
0.2995415032,
-0.0968414694,
-0.1562502086,
0.5009900928,
-0.047043547,
-0.2185632139,
0.3112601042,
-0.1181774437,
-0.194535315,
0.0684310123,
0.0887453407,
0.3798216581,
0.1293765903,
-0.1915305853,
0.0146640446,
0.1435025036,
-0.2500295043,
0.1204057932,
-0.2204345465,
0.1473614722,
0.3965647519,
0.1270100176,
-0.1272859275,
-0.1951442659,
0.0377439484,
0.0875854418,
0.3257237971,
-0.4119554758,
-0.06754563,
-0.0734540075,
-0.0052057952,
-0.1802845299,
0.0986027271,
-0.055579666,
0.0971231908,
-0.3996110559,
0.3328242302,
0.2897822261,
-0.0790662766,
-0.2431260198,
0.0886345729,
0.2158126831,
-0.3370556235,
-0.0034610629,
-0.0489908867,
-0.2919399142,
-0.0261762813,
0.3307097256,
0.1098190546,
-0.0008771354,
-0.0217662975,
0.0280251876,
-0.0548452288,
-0.0925328135,
-0.0439248495,
-0.0732297003,
0.0209216531,
-0.0511661172,
0.419331044,
0.007607609,
-0.144630909,
0.4017488062,
-0.2536605895,
-0.0489247739,
0.3501355648,
0.0636934191,
-0.0958794132,
-0.1087074503,
-0.3498897851,
-0.139887765,
-0.4293371439,
0.3910629451,
0.0847562104,
0.0419315137,
0.0926313996,
0.4331048727,
-0.0260848179,
0.3013548255,
-0.0312165953,
-0.0848051086,
-0.2977057695,
0.3645740747,
-0.0561166108,
-0.467656225,
0.0119414479,
0.0828355998,
0.3591907024,
0.163827002,
-0.4252474308,
0.3267477155,
-0.1509075463,
0.1628201157,
0.0011048787,
-0.0242279954,
0.0609546639,
-0.0872275531,
-0.0218236372,
0.0364305675,
-0.2417155504,
-0.0141798817,
-0.032044746,
0.1475837827,
0.0513686761,
0.4584290385,
-0.0371929444,
0.6513359547,
0.0874641836,
-0.0882316083,
0.4855556488,
-0.3082401156,
0.3818775415,
-0.2096709758,
-0.3737452924,
-0.08557491,
-0.351981461,
-0.192446515,
0.2677484453,
-0.0335841104,
-0.0334150866,
-0.1257758737,
0.0035177544,
-0.4046860635,
-0.0377032496,
0.1836319864,
0.0306969211,
-0.0148301832,
-0.1005957946,
-0.0133008659,
-0.0116459094,
-0.2373631299,
-0.1942583323,
0.2739639878,
-0.151342541,
0.0633874908,
-0.2242483497,
-0.0615806021,
-0.3029372394,
0.3292048872,
-0.0136235543,
0.3102863133,
0.0106145218,
-0.0176953897,
0.0972968042,
-0.1252225041,
0.7449789047,
0.1892857999,
-0.1550701559,
0.1278295219,
-0.0241140723,
-0.4415835142,
-0.1217613816,
0.1906313002,
0.3073360622,
0.0744615495,
0.354865998,
-0.0703260526,
-0.0096936524,
-0.1443435252,
0.3546774983,
0.0432528704,
-0.3951278925,
-0.5194917321,
-0.2349790037,
-0.3830531538,
-0.2121350318,
-0.0898665935,
0.2882786989,
-0.3244076967,
-0.1423869431,
0.1183613837,
-0.2990534008,
0.0601569675,
0.1533816308,
0.2973895073,
-0.1129143089,
0.1448960006,
0.0468353294,
0.0698048323,
0.3769119978,
0.7987185717,
-0.0785761923,
-0.622077167,
0.084843725,
-0.2050262094,
0.385348022,
0.0478198342,
-0.2032050788,
0.1289871186,
0.0907345414,
0.0620337576,
0.0379481614,
0.0144372284,
0.3036864698,
0.0496551059,
-0.3454541266,
-0.5439224243,
0.4874187708,
-0.1259081215,
0.2102589309,
0.3020801544,
-0.2119998932,
-0.1099811569,
0.1555228531,
-0.3346247077,
0.6592134237,
-0.4218297899,
0.1938306391,
0.3073367178,
0.0563358665,
0.2584291697,
-0.4451968074,
0.1323072612,
-0.3919681311,
-0.2109029293,
-0.1043123752,
-0.0712032542,
0.2393859625,
0.4321895838,
-0.1212456375,
0.3118638098,
-0.0741498172,
0.3325560093,
0.1131342277,
0.2438254654,
-0.1005163267,
-0.0864684433,
-0.3010210097,
0.0104237683,
-0.1430806667,
-0.0349517614,
0.0289587304,
0.0544643402,
-0.1805676222,
-0.2016452551,
-0.2461118698,
0.2200244963,
-0.2911676764,
0.1154050305,
-0.1109545603,
-0.4686652422,
0.1963636875,
0.2380670607,
-0.2087021321,
-0.0851789415,
-0.1240850836,
0.155054152,
0.1596343368,
-0.0401754938,
-0.2083744109,
-0.0536958091,
-0.0158854555,
0.0761259347,
-0.235123992,
0.1545512229,
-0.1222789288,
-0.0956742838,
0.2780731916,
0.2376574576,
-0.0848071501,
-0.5452090502,
-0.5326190591,
-0.4284160733,
0.0759812519,
-0.1957322657,
0.0651981607,
-0.0420788489,
0.098341912,
-0.161635071,
0.1859352887,
-0.4688693881,
-0.1020268872,
0.391812861,
-0.1116866097,
0.0939545184,
0.5907299519,
0.2193500549,
-0.0168927088,
-0.1411526054,
0.0642407537,
0.308105737,
-0.3531886339,
0.1170662493,
0.1141490638,
0.3159501553,
0.1392528117,
0.2917455733,
0.156580627,
-0.0776726678,
0.074454695,
-0.511590302,
-0.3249695301,
-0.0165288001,
-0.0015312911,
0.2479579896,
0.1672189236,
0.0818671137,
0.1726779342,
0.2032968551,
-0.1562303603,
0.1004623696,
0.105929248,
-0.0869572908,
0.2106324881,
0.1420163512,
-0.1338727772,
-0.1038192734,
0.0934977233,
0.1776404083,
-0.0534452051,
-0.1887511164,
-0.0798560381,
0.150100112,
0.0983606428,
0.0232857689,
-0.2034451216,
-0.2526885867,
-0.1497060061,
-0.1928056777,
0.0664088577,
0.0297824368,
-0.0981117785,
0.0717601702,
-0.2987651527,
-0.0846541226,
-0.5091864467,
0.0271218121,
-0.5075390935,
0.2231321633,
0.2992689908,
0.0485822111,
0.1217575073,
0.2004555911,
-0.17242603,
-0.0311586484,
0.1516268104,
-0.1366188824,
0.3009470701,
-0.4014757276,
0.2035065144,
-0.0510656536,
0.3403373361,
0.4848606288,
-0.2076413333,
0.2197107375,
0.0375864208,
0.1341150999,
-0.3825284243,
0.2754765451,
0.1172316,
-0.0616294667,
-0.0274844915,
0.1696752608,
0.1992113888,
-0.2083072662,
-0.0957769752,
0.006910339,
0.4759888351,
-0.0078225527,
-0.033951249,
0.4135629833,
0.0027141422,
0.1789695323,
0.2403353155,
0.1356375366,
0.019620385,
0.7002614737,
-0.2602289915,
-0.0039647669,
-0.2352683693,
0.3014817536,
-0.3278698921,
-0.7641032338,
0.1616644859,
0.2355505526,
-0.3533103466,
-0.1676512063,
0.125898242,
0.6017511487,
-0.0233748816,
0.0114933141,
-0.1145935506,
-0.0448354296,
0.0140550677,
0.0483893305,
-0.0662136972,
-0.2536708117,
-0.0708237141,
0.1856830418,
-0.0595554672,
0.0145597812,
0.2749817669,
0.1876640767,
-0.1494834423,
-0.445759207,
0.0657749772,
0.1728486121,
0.0665427819,
-0.2748389244,
0.3666119576,
0.2653489411,
-0.0859920457,
0.1805051565,
-0.0413446873,
0.6402472258,
0.5041920543,
0.0924115479,
-0.0617403835,
-0.1215717867,
-0.1139908433,
-0.1794187427,
0.1778170317,
0.3488179445,
0.4212691784,
0.1485440582,
0.1135987118,
-0.0401851684,
0.3160887957,
0.2067887634,
0.0996010751,
-0.5459768176,
-0.1189198419,
-0.2083118409,
-0.2577385306,
-0.2266329825,
0.0241516493,
-0.289059788,
0.0209433027,
0.4277471006,
0.0739152133,
0.2772268355,
-0.0268226024,
0.0345675237,
0.0743338913,
0.3142201304,
0.2397758812,
0.4022898674,
-0.4218083322,
-0.0354188234,
-0.7509754896,
0.1165280938,
-0.3764893115,
0.0095925331,
-0.0318589211,
0.1585382521,
0.1377416253,
0.0838608593,
0.1591721773,
0.2994236648,
0.1167231351,
0.2220783085,
-0.0561849065,
-0.1846197844,
-0.3380708694,
0.0264858287,
-0.1750925481,
-0.4655139744,
0.221360445,
-0.1279321909,
0.009210974,
-0.2251858115,
0.2239885032,
0.2559674978,
-0.0059871143,
0.4777291417,
-0.1120111048,
0.6255965829,
-0.0850183517,
0.3190014958,
-0.3009389341,
-0.0801897198,
-0.192805469,
0.5200992823,
0.2061501443,
0.271399796,
-0.1779928505,
-0.1079162806,
-0.2153045833,
0.1574105471,
-0.0065483749,
-0.0705473498,
0.0667273924,
-0.151060313,
-0.001824148,
-0.0584905371,
0.1522313952,
0.0920481086,
-0.222938627,
-0.0781729147,
-0.1745534539,
-0.1801850945,
0.1810826659,
-0.4043291509,
-0.3411034942,
0.1487175822,
0.1261260509,
0.1018667817,
0.1396919489,
-0.452421248,
0.1217895448,
0.424474597,
-0.1280171573,
-0.4174260795,
0.1340318918,
-0.2116190642,
0.1005702466,
-0.121852532,
0.4765021205,
0.1411092579,
-0.3705090284,
-0.1615718156,
-0.3583216071
] |
https://github.com/huggingface/datasets/issues/835 | Wikipedia postprocessing | Hi @bminixhofer ! Parsing WikiMedia is notoriously difficult: this processing used [mwparserfromhell](https://github.com/earwig/mwparserfromhell) which is pretty good but not perfect.
As an alternative, you can also use the Wiki40b dataset which was pre-processed using an un-released Google internal tool | Hi, thanks for this library!
Running this code:
```py
import datasets
wikipedia = datasets.load_dataset("wikipedia", "20200501.de")
print(wikipedia['train']['text'][0])
```
I get:
```
mini|Ricardo Flores Magón
mini|Mexikanische Revolutionäre, Magón in der Mitte anführend, gegen die Diktatur von Porfirio Diaz, Ausschnitt des Gemälde „Tierra y Libertad“ von Idelfonso Carrara (?) von 1930.
Ricardo Flores Magón (* 16. September 1874 in San Antonio Eloxochitlán im mexikanischen Bundesstaat Oaxaca; † 22. November 1922 im Bundesgefängnis Leavenworth im US-amerikanischen Bundesstaat Kansas) war als Journalist, Gewerkschafter und Literat ein führender anarchistischer Theoretiker und Aktivist, der die revolutionäre mexikanische Bewegung radikal beeinflusste. Magón war Gründer der Partido Liberal Mexicano und Mitglied der Industrial Workers of the World.
Politische Biografie
Journalistisch und politisch kämpfte er und sein Bruder sehr kompromisslos gegen die Diktatur Porfirio Diaz. Philosophisch und politisch orientiert an radikal anarchistischen Idealen und den Erfahrungen seiner indigenen Vorfahren bei der gemeinschaftlichen Bewirtschaftung des Gemeindelandes, machte er die Forderung „Land und Freiheit“ (Tierra y Libertad) populär. Besonders Francisco Villa und Emiliano Zapata griffen die Forderung Land und Freiheit auf. Seine Philosophie hatte großen Einfluss auf die Landarbeiter. 1904 floh er in die USA und gründete 1906 die Partido Liberal Mexicano. Im Exil lernte er u. a. Emma Goldman kennen. Er verbrachte die meiste Zeit seines Lebens in Gefängnissen und im Exil und wurde 1918 in den USA wegen „Behinderung der Kriegsanstrengungen“ zu zwanzig Jahren Gefängnis verurteilt. Zu seinem Tod gibt es drei verschiedene Theorien. Offiziell starb er an Herzversagen. Librado Rivera, der die Leiche mit eigenen Augen gesehen hat, geht davon aus, dass Magón von einem Mitgefangenen erdrosselt wurde. Die staatstreue Gewerkschaftszeitung CROM veröffentlichte 1923 einen Beitrag, nachdem Magón von einem Gefängniswärter erschlagen wurde.
mini|Die Brüder Ricardo (links) und Enrique Flores Magón (rechts) vor dem Los Angeles County Jail, 1917
[...]
```
so some Markup like `mini|` is still left. Should I run another parser on this text before feeding it to an ML model or is this a known imperfection of parsing Wiki markup?
Apologies if this has been asked before. | 38 | Wikipedia postprocessing
Hi, thanks for this library!
Running this code:
```py
import datasets
wikipedia = datasets.load_dataset("wikipedia", "20200501.de")
print(wikipedia['train']['text'][0])
```
I get:
```
mini|Ricardo Flores Magón
mini|Mexikanische Revolutionäre, Magón in der Mitte anführend, gegen die Diktatur von Porfirio Diaz, Ausschnitt des Gemälde „Tierra y Libertad“ von Idelfonso Carrara (?) von 1930.
Ricardo Flores Magón (* 16. September 1874 in San Antonio Eloxochitlán im mexikanischen Bundesstaat Oaxaca; † 22. November 1922 im Bundesgefängnis Leavenworth im US-amerikanischen Bundesstaat Kansas) war als Journalist, Gewerkschafter und Literat ein führender anarchistischer Theoretiker und Aktivist, der die revolutionäre mexikanische Bewegung radikal beeinflusste. Magón war Gründer der Partido Liberal Mexicano und Mitglied der Industrial Workers of the World.
Politische Biografie
Journalistisch und politisch kämpfte er und sein Bruder sehr kompromisslos gegen die Diktatur Porfirio Diaz. Philosophisch und politisch orientiert an radikal anarchistischen Idealen und den Erfahrungen seiner indigenen Vorfahren bei der gemeinschaftlichen Bewirtschaftung des Gemeindelandes, machte er die Forderung „Land und Freiheit“ (Tierra y Libertad) populär. Besonders Francisco Villa und Emiliano Zapata griffen die Forderung Land und Freiheit auf. Seine Philosophie hatte großen Einfluss auf die Landarbeiter. 1904 floh er in die USA und gründete 1906 die Partido Liberal Mexicano. Im Exil lernte er u. a. Emma Goldman kennen. Er verbrachte die meiste Zeit seines Lebens in Gefängnissen und im Exil und wurde 1918 in den USA wegen „Behinderung der Kriegsanstrengungen“ zu zwanzig Jahren Gefängnis verurteilt. Zu seinem Tod gibt es drei verschiedene Theorien. Offiziell starb er an Herzversagen. Librado Rivera, der die Leiche mit eigenen Augen gesehen hat, geht davon aus, dass Magón von einem Mitgefangenen erdrosselt wurde. Die staatstreue Gewerkschaftszeitung CROM veröffentlichte 1923 einen Beitrag, nachdem Magón von einem Gefängniswärter erschlagen wurde.
mini|Die Brüder Ricardo (links) und Enrique Flores Magón (rechts) vor dem Los Angeles County Jail, 1917
[...]
```
so some Markup like `mini|` is still left. Should I run another parser on this text before feeding it to an ML model or is this a known imperfection of parsing Wiki markup?
Apologies if this has been asked before.
Hi @bminixhofer ! Parsing WikiMedia is notoriously difficult: this processing used [mwparserfromhell](https://github.com/earwig/mwparserfromhell) which is pretty good but not perfect.
As an alternative, you can also use the Wiki40b dataset which was pre-processed using an un-released Google internal tool | [
-0.0376303941,
0.1160010695,
-0.1909410954,
0.4500382245,
0.2954652011,
-0.219737649,
0.3712630272,
0.2625175118,
-0.0028848499,
0.0670769811,
0.1637321264,
0.3684881628,
0.0403136872,
-0.0634340644,
-0.0525210276,
-0.2800579667,
0.0010122098,
0.1088692248,
-0.2758775949,
-0.214152962,
-0.2710892856,
0.1724827141,
-0.270493269,
0.1990953088,
-0.3585414886,
0.0835001171,
0.0380279198,
-0.166429162,
-0.1340270936,
0.0589906648,
-0.1230925173,
-0.0113906739,
-0.2323268205,
0.5959072113,
-0.0001038564,
0.0938018411,
0.2659809589,
-0.1483357251,
0.1651002765,
-0.2740634978,
0.0381587222,
0.1320969462,
-0.0182745773,
-0.4883697331,
-0.1506609917,
-0.0973140001,
-0.10264685,
-0.008019492,
0.1642292142,
0.1089651287,
0.2779663503,
-0.26083076,
0.0990450531,
-0.0815534294,
0.4071276784,
-0.0391589962,
0.002122663,
-0.0567937419,
-0.1048758775,
0.0740148574,
0.0853269845,
0.4533438683,
-0.066912815,
-0.15270181,
-0.0390595049,
-0.0801411569,
0.1149631441,
-0.2299117148,
0.3598325253,
0.3970840275,
0.4823434353,
-0.2370188385,
-0.0033178478,
0.1349335313,
-0.0562791042,
-0.0627483055,
0.138221249,
0.2485168427,
-0.246399343,
0.1998828501,
0.1086129248,
-0.0425022133,
-0.1570643783,
0.3849433959,
-0.3486663103,
0.7615576982,
-0.1470629424,
0.0890359133,
-0.0713838413,
-0.0618577674,
-0.2655576468,
0.0647559687,
0.4067406058,
0.1151135862,
0.2293578237,
0.0623621047,
0.0952008367,
-0.1879193038,
-0.1581103802,
-0.2297955602,
-0.3073723018,
-0.0305523071,
-0.0009035282,
0.0312912166,
0.0951705649,
-0.067776151,
-0.1882225573,
0.1448562741,
0.1271022558,
0.1956166476,
-0.3205267787,
0.1341061294,
-0.0726409107,
-0.0588568635,
-0.0109665394,
0.0493915677,
0.188079685,
-0.1510052383,
-0.0501714051,
0.119785957,
-0.4061352015,
-0.1329092085,
-0.2625002265,
0.3644146621,
-0.35372594,
0.3217246532,
0.133944422,
-0.0410716422,
0.0427076593,
0.2019063234,
-0.346270293,
0.3184955716,
-0.257484436,
0.0214953125,
-0.0806170776,
-0.1143919975,
0.3268629014,
0.0183945075,
-0.0553092733,
-0.3175842762,
-0.0900206268,
-0.4657154977,
0.3773738146,
0.1164554581,
-0.1373099387,
0.0853679255,
0.1821400821,
-0.4203637242,
-0.0611057207,
0.0739956498,
-0.0117766,
-0.0430927202,
-0.1845540553,
0.2914004326,
0.1253383309,
0.1142194346,
0.2324085534,
0.3484160602,
0.3461152613,
0.1279001981,
0.2048685551,
0.0798777044,
-0.2936295867,
-0.1988722235,
0.3602198958,
0.1398384124,
-0.4822917581,
-0.1239367798,
0.1542089432,
0.1174041927,
0.401204586,
0.0902580172,
-0.0307216942,
0.5387797952,
-0.057556171,
0.2503634989,
0.0693084151,
-0.1390766948,
0.0177725516,
-0.0094973557,
-0.0056561902,
-0.0330239311,
0.2078618705,
-0.0513779409,
0.1935703009,
0.2120350748,
0.523993969,
0.0795121044,
0.242841199,
0.1865056753,
-0.1770028472,
-0.1695269793,
0.1912653744,
-0.013138894,
0.1784014404,
-0.0867690444,
-0.0657808781,
0.2785583436,
0.3917036057,
-0.0177073888,
0.0336797014,
0.2748849094,
-0.1571981013,
-0.0402406678,
0.1508068144,
-0.1868493855,
0.258631736,
-0.0947321951,
0.3009763658,
0.3739809692,
-0.2793430388,
-0.3215060234,
-0.442048341,
-0.030616764,
-0.0859377906,
-0.1259205788,
0.3621973097,
-0.0075941086,
-0.1433637142,
0.1667323112,
0.1475280225,
-0.048146382,
-0.4452186823,
-0.0623422787,
-0.3474644721,
0.2008002102,
-0.2842544019,
-0.07039579,
-0.1780650914,
0.3738854229,
0.0864045769,
0.0987277776,
0.0366894044,
0.0681397989,
0.1614259779,
0.1951444447,
0.0872015059,
0.1368026584,
-0.135445118,
-0.3788890541,
0.1041649804,
0.4465123713,
0.2120098025,
-0.0876884609,
-0.2107882351,
0.4056069255,
0.2071252018,
-0.0240105055,
0.1008192003,
-0.2186523378,
0.1274812371,
0.0669867545,
-0.16061759,
-0.340788722,
-0.0228194837,
0.3535308242,
-0.1206593215,
0.2333277315,
-0.319209069,
0.0747790486,
0.5386903882,
0.1343521029,
0.4133018851,
-0.0901702344,
-0.5303303599,
-0.1579624563,
-0.0161014274,
0.1799587458,
-0.1050406396,
0.1875386536,
0.171481967,
0.078653343,
-0.01890908,
-0.1408508718,
0.3554645479,
0.2964960635,
0.4085936844,
0.2711454928,
0.0359766595,
0.1682440639,
-0.2518556714,
-0.0341593958,
-0.209574759,
0.3795396984,
-0.2574421465,
0.1205542833,
-0.1207624897,
-0.0712017119,
-0.0884922147,
-0.2095503211,
-0.2182870358,
-0.1373002529,
-0.0413502082,
-0.1236970425,
0.0427565277,
0.2243428528,
-0.1203941554,
-0.0427132249,
0.2501510382,
-0.157900542,
-0.0263582766,
-0.277990371,
-0.022866087,
0.1925877035,
-0.192517221,
0.1851533353,
0.1140913218,
-0.1133457422,
-0.331679523,
0.024760427,
-0.4591084421,
0.3076532185,
-0.284123987,
0.0178084839,
0.1315818578,
0.2630500793,
-0.1862808466,
-0.2981846035,
0.1260711551,
-0.1022754014,
-0.0718509778,
-0.0729203671,
-0.212973237,
0.1151738763,
-0.054949861,
-0.6069830656,
-0.1843986809,
-0.2522271872,
0.1753423512,
0.4133393168,
0.1765685678,
0.4491935372,
0.2899248004,
0.1499413103,
0.2895770371,
0.1858323514,
-0.3690811694,
-0.0820943564,
0.3819561005,
0.183192879,
-0.1003109887,
-0.0403759852,
-0.1214304715,
-0.1555096656,
0.035031464,
-0.3284407258,
-0.0780136958,
0.1545451432,
0.0099561512,
0.0603397638,
0.0701195523,
0.338159591,
0.0599647649,
-0.2373808622,
-0.0741835386,
-0.0543029681,
-0.0672509074,
-0.180421263,
0.1228023022,
-0.2215512991,
0.1971711963,
0.0745374411,
0.5646956563,
-0.0219046921,
-0.0945549607,
-0.1301512718,
-0.1098457649,
0.0467871167,
0.0142612383,
-0.172540158,
0.1183865815,
-0.0657221228,
-0.1128840446,
0.2858283222,
0.0218982287,
-0.3113710582,
-0.0823389217,
0.243446067,
-0.5951212049,
-0.2337568849,
0.0738854259,
0.2072139978,
0.325017184,
-0.2242445648,
0.0181401372,
-0.1529431194,
-0.1985205114,
-0.0743085891,
0.2720818222,
-0.1294917613,
-0.1800875813,
-0.0039940253,
0.0455371849,
-0.3112495542,
0.0897595659,
0.1063020378,
-0.2374600619,
0.0194006115,
-0.3281235397,
0.18425937,
-0.1281688809,
0.2043621838,
-0.164046526,
-0.101644665,
0.2306399643,
0.0266483948,
-0.2165661454,
-0.0176098496,
-0.3630174994,
0.1319009662,
0.5669854283,
0.4043784142,
-0.4217733741,
-0.1530515552,
0.5155634284,
-0.0920586362,
-0.036869783,
-0.1138467491,
-0.213160485,
-0.1064261571,
-0.2825682163,
0.2626233995,
0.0399504676,
0.1282542795,
-0.0002701469,
-0.1441476941,
0.3049253225,
0.3409054577,
0.1048148274,
0.113911882,
0.1659891903,
0.1508628875,
-0.2560138702,
-0.2157396972,
0.0827043205,
-0.3168411255,
0.1227055788,
0.0964085311,
-0.0023286194,
-0.0933878273,
-0.4582929611,
0.1420148015,
0.2253707945,
-0.1954174936,
0.2062240988,
0.1236632615,
0.0487762466,
0.011188183,
0.1006366983,
0.3577773869,
-0.1785045266,
-0.0160647221,
-0.3824625909,
0.3698529005,
-0.044278875,
-0.11382173,
0.0079460191,
-0.3191575706,
-0.2880116403,
0.2350892425,
-0.0233708881,
1.0900635719,
0.1916283667,
0.0601801127,
0.0798480064,
0.3357892931,
0.4070525765,
0.0503848493,
-0.0357327089,
-0.4293994308,
0.1830918193,
-0.1092214212,
0.1870464683,
-0.0323119834,
-0.0063552065,
-0.3201173246,
-0.0288612526,
-0.2233067304,
0.0416371338,
-0.0022940878,
-0.2610447407,
0.2794052958,
-0.071447283,
-0.1940616965,
0.1843518317,
-0.008548202,
0.013244167,
0.0083972998,
0.1159454808,
-0.2418381274,
-0.1455357075,
-0.3945603371,
-0.0565446466,
-0.3439757228,
0.2061206251,
0.1736728996,
-0.4040263891,
-0.1235065907,
0.0324684083,
0.1290134639,
0.3851498663,
-0.0401920453,
0.1245264038,
-0.014995303,
-0.1153454632,
0.1051422432,
0.1275207102,
0.3020907044,
-0.0596370585,
-0.3325277567,
0.0474285968,
-0.0684782118,
-0.2840801477,
-0.11407765,
-0.1202762201,
0.1880208254,
-0.0775809214,
-0.0944023952,
0.2715242803,
-0.1659891307,
-0.3825519681,
0.2203660309,
-0.1223528385,
-0.2146437615,
0.1128941029,
0.2487441152,
-0.4793300629,
0.0701409131,
0.2678939998,
0.3993579149,
0.268299073,
0.3634387851,
0.4402480721,
-0.3178362548,
-0.4193706512,
-0.3453829885,
-0.3443886042,
-0.303439945,
-0.2273007184,
0.1275655925,
-0.0442080051,
0.0322747231,
0.2528119683,
0.1267941743,
-0.0456003025,
-0.1809593141,
-0.4442611039,
-0.1378885359,
0.176999405,
-0.0078209164,
0.1069378108,
0.2601689696,
-0.0003518853,
0.1314746439,
0.0718082115,
-0.4596362114,
0.0954608172,
-0.4010986388,
0.2911189795,
0.2498661578,
-0.2424764931,
-0.1911940277,
0.0079129227,
0.3404125273,
-0.084336102,
-0.1227238774,
-0.4186244309,
-0.1275818199,
0.0791985989,
0.0390140526,
-0.2021329403,
0.1440885514,
0.1327943951,
-0.2354941666,
-0.137709409,
-0.0916095674,
0.1327190846,
0.1528631449,
0.2610368431,
-0.0577557497,
0.3609783351,
-0.2998994589,
-0.225210011,
0.0453317724,
0.2198768109,
0.0875914693,
0.1392412335,
0.1141957045,
-0.065739885,
-0.3645977378,
0.0850181356,
-0.0203926042,
0.3905951083,
0.3512125909,
-0.0503473915,
-0.0427763313,
0.3029697537,
0.2377181053,
0.244276017,
-0.2000590116,
-0.0955429599,
-0.0412149057,
0.3443333209,
-0.338103056,
0.2190654725,
0.4438177645,
-0.2796858549,
0.1534244716,
0.3051404357,
0.1139927357,
0.0646671057,
0.1722957343,
0.123075977,
-0.0289409459,
-0.3710558414,
0.1493567377,
0.0802777335,
0.1446578801,
0.0820689797,
0.0083299745,
0.3275238276,
0.1921263188,
0.4157092571,
0.5534648299,
0.0458228514,
0.0485226698,
0.0934082121,
-0.212403208,
-0.1737226248,
0.3782322407,
0.2508524358,
-0.3872354031,
-0.0425765775,
0.0690189078,
-0.0957760438,
0.1958180368,
0.2206196487,
-0.1258998066,
0.2072699368,
-0.1061267853,
-0.2802641988,
-0.2669961452,
-0.2162387818,
-0.1254567653,
-0.2240761667,
0.1985270381,
0.0819862783,
0.0428586826,
0.0007927157,
-0.1652704626,
-0.3171616793,
0.196372211,
-0.3757815361,
0.3776465654,
-0.2475771904,
0.1026295573,
-0.180218637,
0.2640244067,
-0.3552979231,
0.4572234452,
0.1867236495,
-0.0397552624,
-0.3567961454,
-0.1345352232,
-0.1819649935,
-0.1360785365,
-0.1003686637,
-0.0508691967,
0.4067136645,
0.0049409978,
0.1646077186,
0.2986798286,
-0.3479201198,
0.0352787413,
0.3535929024,
0.033141043,
0.0874757767,
-0.0871275216,
0.1985788047,
-0.1533524394,
-0.18705827,
0.0449053496,
-0.3499829471,
0.2425701171,
0.3185040355,
0.1421522349,
0.2089874595,
-0.1796862036,
0.1499055922,
0.0874755532,
0.1393526495,
0.4506241679,
0.1468860656,
0.0160900429,
-0.1277963072,
-0.28832376,
0.3457966149,
0.0065063327,
0.0381307527,
0.009068422,
0.3338776529,
0.2970466316,
0.1066393107,
0.0200609714,
-0.2553941905,
0.0714394152,
0.0563792586,
-0.1783147752,
0.0841324031,
-0.0173059367,
-0.1360271871,
-0.0498388931,
-0.1777637005,
-0.1465194076,
-0.2832275331,
0.303167671,
-0.062472444,
-0.3920110464,
0.0241399407,
0.1590515524,
0.3841208518,
-0.131828323,
0.1754274964,
-0.3827265799,
0.082053192,
-0.002653854,
-0.0795921087,
0.010524109,
0.5436721444,
0.1163988411,
0.1178996414,
0.1743739694,
-0.0268044304,
-0.0146703757,
0.2737036347,
-0.0396734662,
-0.3405411839,
-0.1938304901,
-0.0594838336,
0.0699943155,
0.0680813044,
-0.2632057965,
0.1269260198,
-0.1516225338,
0.0331988335,
-0.2077035904,
-0.5855805278,
0.2162081301,
-0.0780521184,
-0.5391711593,
-0.3936991692,
0.1647263169,
0.0663963482,
0.4991381466,
-0.4331308007,
0.1830520034,
0.3660572469,
-0.1315495074,
-0.3380317688,
-0.0578144565,
-0.1394315511,
0.1607731283,
-0.1068724766,
0.0511505082,
-0.2077845186,
-0.1916946918,
-0.2590873837,
-0.3279490769
] |
https://github.com/huggingface/datasets/issues/834 | [GEM] add WikiLingua cross-lingual abstractive summarization dataset | Hey @yjernite. This is a very interesting dataset. Would love to work on adding it but I see that the link to the data is to a gdrive folder. Can I just confirm wether dlmanager can handle gdrive urls or would this have to be a manual dl? | ## Adding a Dataset
- **Name:** WikiLingua
- **Description:** The dataset includes ~770k article and summary pairs in 18 languages from WikiHow. The gold-standard article-summary alignments across languages were extracted by aligning the images that are used to describe each how-to step in an article.
- **Paper:** https://arxiv.org/pdf/2010.03093.pdf
- **Data:** https://github.com/esdurmus/Wikilingua
- **Motivation:** Included in the GEM shared task. Multilingual.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 48 | [GEM] add WikiLingua cross-lingual abstractive summarization dataset
## Adding a Dataset
- **Name:** WikiLingua
- **Description:** The dataset includes ~770k article and summary pairs in 18 languages from WikiHow. The gold-standard article-summary alignments across languages were extracted by aligning the images that are used to describe each how-to step in an article.
- **Paper:** https://arxiv.org/pdf/2010.03093.pdf
- **Data:** https://github.com/esdurmus/Wikilingua
- **Motivation:** Included in the GEM shared task. Multilingual.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
Hey @yjernite. This is a very interesting dataset. Would love to work on adding it but I see that the link to the data is to a gdrive folder. Can I just confirm wether dlmanager can handle gdrive urls or would this have to be a manual dl? | [
-0.205289185,
0.3199885786,
0.0722147673,
0.5395575166,
0.130037412,
0.2193806916,
0.1278002262,
-0.1864242703,
-0.028953582,
-0.0699258894,
0.2743756175,
0.0008882098,
-0.4298546314,
0.2057963312,
0.3081341982,
-0.2922175527,
0.0054487698,
-0.2033135593,
0.0205825698,
-0.1820492446,
-0.167391181,
0.4652562439,
0.1199145615,
0.0503367558,
-0.4685991108,
-0.026656324,
-0.2214189768,
0.4315163791,
-0.0926345438,
-0.195379436,
-0.0345569737,
0.0396444574,
0.1316578537,
0.4354020655,
-0.0001247795,
-0.1571822166,
0.2606932223,
-0.2081926018,
-0.0927850306,
-0.2235530466,
-0.3300043344,
-0.1996061057,
-0.1916081011,
-0.1280441284,
0.1759234369,
0.1283104122,
-0.0804147646,
0.1652433723,
-0.2902434468,
0.0426328965,
0.1184955463,
-0.054692287,
0.1770834327,
-0.0281244479,
0.3376816213,
-0.2312233597,
-0.0272018984,
0.5546998978,
-0.0733489394,
0.1199261621,
-0.1226688325,
0.4144375324,
-0.1018920764,
-0.1896880865,
0.0083971508,
0.2109395117,
0.0017846096,
-0.0774428099,
0.1375339627,
0.2818035781,
0.8164930344,
-0.231871739,
-0.0623931251,
-0.1128103808,
-0.1559916884,
-0.1765376925,
0.4124316871,
0.1612806171,
-0.0271766409,
0.053495124,
0.0535367504,
-0.5035982132,
-0.13520585,
0.2228762358,
-0.0204972848,
0.4011128843,
0.0653443187,
0.0235376935,
0.4362437427,
0.2480708361,
-0.1870645583,
-0.0965684056,
-0.3789022565,
0.1565636396,
0.01878497,
-0.2509076595,
0.0238387045,
0.2325569093,
0.1142075658,
-0.097950235,
0.0392099209,
0.048120629,
-0.0954176411,
0.0808629692,
0.3494338393,
0.2302665859,
-0.285343945,
-0.0323551223,
0.2578545213,
-0.1746076792,
0.1903268695,
-0.0247638747,
-0.1124450117,
-0.1519076228,
-0.3518642187,
-0.1581165493,
-0.3366403282,
0.1224362403,
0.075873591,
0.1092619151,
-0.2249853909,
-0.2128600329,
0.1006020084,
0.0871740431,
0.2883947492,
-0.2428626418,
-0.0612187535,
0.3998383284,
0.2928889692,
0.1777850091,
0.0584301427,
0.2694648504,
-0.0828700587,
0.209858954,
-0.1889799833,
0.084674865,
0.1240356863,
-0.0854083821,
-0.208411932,
-0.1505701989,
0.0108846128,
0.0665667206,
-0.1833898276,
0.1558982879,
0.3799424767,
0.3868770003,
0.0069781914,
-0.6324942112,
-0.3096872568,
0.1332534552,
-0.1716109365,
-0.3060247898,
-0.2727500498,
-0.0214118473,
-0.207599923,
-0.3338615,
-0.2829798162,
0.5032008886,
0.0978400931,
-0.3781307936,
0.0974012464,
0.4258762896,
0.0381935686,
-0.1741588712,
-0.2004807293,
0.3255684376,
-0.2859549522,
0.0491209179,
-0.2233884782,
-0.0063546915,
0.3607917726,
0.2327749431,
-0.0493530519,
0.0860491768,
-0.2695144713,
0.4979097247,
0.2523214221,
-0.1120953411,
-0.1419785321,
0.1514694393,
-0.457485497,
0.0134938061,
0.1928110421,
0.3532480001,
-0.0707792267,
-0.1276385039,
-0.1220437735,
0.25501436,
0.1740982533,
0.0441158265,
-0.3670468628,
-0.4360994101,
0.2276996374,
0.1296115816,
0.2096014917,
-0.1416705996,
0.3847235739,
0.3507201672,
0.2013376802,
-0.2545937896,
0.1432922333,
0.1356195062,
0.2010869384,
0.0470834896,
-0.0700952113,
0.0878504515,
-0.4258348048,
0.0398112088,
0.4841697812,
0.4287418127,
0.2425022721,
-0.0437107161,
0.1110674143,
-0.0640629604,
-0.2143351436,
-0.1703343391,
-0.003496211,
0.3995075226,
-0.0788107961,
0.2376497984,
-0.0732420459,
-0.2341190577,
-0.230623737,
-0.1214824021,
0.0381962135,
0.3170725107,
-0.1187932566,
0.079889968,
-0.1165799573,
0.2972483933,
-0.2057973444,
-0.0472995639,
-0.0345137529,
0.1623504311,
-0.1037029624,
0.361639291,
0.6724396348,
0.7141314149,
0.0822550431,
-0.2385077626,
0.3458838761,
-0.0627137646,
0.2449798882,
-0.1494480073,
-0.0729836076,
0.2659508884,
-0.0039398861,
0.0668012798,
0.0737567246,
0.2355249524,
0.2932624519,
-0.0199251398,
-0.0440585762,
-0.3305784166,
0.3704814613,
0.2180639207,
-0.2417216003,
0.1267596781,
-0.2977870107,
0.0076659173,
0.4142894745,
-0.0502849743,
0.4785456061,
0.2185738385,
-0.3042883575,
-0.3060279489,
-0.0249241777,
0.6103752255,
0.3237768412,
0.0808553174,
0.3784133196,
0.0617272854,
0.1076254249,
-0.1882869005,
0.3658085167,
0.0872484446,
-0.0782542378,
0.5172120333,
-0.1013427973,
-0.0657737851,
-0.2807050645,
0.1297219098,
0.0327550769,
0.2047456205,
-0.1499876082,
-0.0216755047,
-0.051213596,
-0.1157659888,
-0.1355132163,
-0.7797608376,
-0.68790555,
-0.3252259195,
0.1452035755,
-0.1766127795,
-0.1035040542,
0.0233518183,
0.1382457018,
0.1964078993,
-0.4809717536,
-0.3989128172,
-0.0877689943,
-0.4259754419,
-0.1295738518,
-0.0361106247,
0.419908762,
-0.0313051194,
0.2916494012,
0.0192215517,
0.1689295322,
-0.2439245284,
-0.4900282621,
0.328320235,
-0.1685169041,
0.2541860044,
0.0756703988,
-0.1180245206,
0.0898891762,
-0.4692748487,
0.1869602948,
0.2557253838,
0.1016538963,
-0.0497039035,
0.0046754405,
-0.0229754522,
0.0450010672,
0.0411931947,
-0.2943648994,
-0.2600292563,
-0.0858575031,
0.0822590142,
0.1040048152,
-0.2154654562,
-0.0400591269,
0.2880849838,
0.0635913908,
-0.158278957,
-0.3831864297,
-0.1378221363,
0.320792675,
-0.1182931215,
-0.2465812713,
0.2720309794,
-0.2453191578,
0.3434217572,
-0.0815168694,
-0.4744022787,
-0.2974785268,
0.1456635445,
-0.0116083771,
0.4878693521,
0.1211168692,
0.3266862631,
0.1165989637,
-0.01311744,
-0.0340049453,
-0.2883882523,
0.1065916866,
0.3647941351,
0.2817759812,
0.1308731437,
0.3322600424,
0.19528234,
0.653580904,
-0.0746080875,
0.2340204418,
0.2576476336,
-0.22711353,
0.3407440484,
-0.0939054638,
-0.1010734439,
-0.0377461091,
-0.123851344,
-0.4158323705,
0.3140842319,
0.2167858779,
-0.5161983967,
-0.089771919,
0.0016283318,
-0.2928319573,
-0.2946747541,
0.2758499384,
0.0945888832,
0.0241470803,
-0.1234209314,
-0.2413083017,
-0.0503903776,
-0.2646069825,
0.1166994199,
0.8497213125,
-0.2143952996,
0.0782410502,
-0.3703142405,
-0.251257658,
-0.1082787961,
0.1750407517,
0.2574886978,
-0.0486556701,
-0.3461049795,
-0.1142123118,
0.1585995555,
-0.3126901984,
0.1028868705,
-0.5930879116,
-0.1834146529,
0.058501415,
-0.1729308367,
0.4593807161,
0.2165707201,
0.034656778,
-0.2776299119,
0.5621843338,
-0.2314657271,
-0.231191203,
0.0351759344,
0.2557699084,
0.0068300106,
-0.227730915,
0.1719496101,
-0.0879822224,
-0.4606233537,
-0.4878263175,
-0.2078494877,
-0.0419362448,
0.0494094044,
0.2344488651,
0.1014166623,
0.038170509,
-0.1455034614,
0.0297034793,
-0.1796231866,
0.0404420495,
0.1885640472,
-0.2332444042,
0.249419719,
0.1618939787,
-0.0151096852,
0.2166647911,
0.1174064726,
0.3896985352,
0.1741846204,
-0.5150283575,
0.6288020015,
0.3609157205,
0.0863170698,
-0.0762050003,
0.1040382385,
-0.2789348364,
-0.3891694844,
0.0016887225,
0.0844884738,
0.2216773927,
-0.2243634909,
-0.2750698328,
0.5395463109,
0.0345622972,
-0.2513056993,
0.1492886394,
0.2535794377,
-0.4851569533,
0.0559553504,
0.1228717044,
1.2584298849,
0.1731717587,
0.2715182006,
0.1733862907,
-0.1096207276,
0.0859107971,
0.056141898,
0.1998309642,
-0.355017066,
0.5552216768,
-0.2270052433,
0.0451041386,
-0.1872149706,
-0.0858417749,
-0.1615124196,
-0.0376487486,
-0.0489198491,
0.0934516639,
-0.1644873023,
0.3035357893,
-0.2491307706,
-0.2379187644,
0.0487555228,
-0.0177877415,
0.2321210057,
0.2364141196,
-0.1232840866,
-0.4004274607,
-0.0926728547,
-0.3229566813,
-0.7480210662,
-0.1462261975,
0.0164254978,
-0.0247238837,
-0.4567168653,
-0.5324659944,
-0.1003822982,
0.3304937482,
-0.2378311604,
-0.1338420361,
-0.1963005364,
0.0218866207,
-0.5718806982,
-0.0543905795,
0.2409209013,
-0.0025456659,
0.1420656294,
-0.1023658365,
0.1303025633,
0.019263424,
0.0046673194,
-0.4703742266,
-0.1594412029,
-0.1892671436,
0.0361341983,
0.2455295026,
-0.0258016884,
0.4970347285,
-0.1906964183,
-0.2556156516,
0.0335374251,
0.0721828267,
0.1186015457,
-0.0151520148,
-0.0999375135,
0.0129911751,
-0.1618510485,
0.2606791854,
-0.0799251124,
-0.267770201,
0.1365798414,
0.2739428878,
-0.2539979219,
-0.1561610103,
0.0496807396,
0.0289195254,
-0.2983621061,
-0.1093277633,
0.1146743372,
-0.1720047295,
-0.1853491962,
0.2532091141,
0.3053184748,
0.00927315,
-0.3213844895,
-0.4174221754,
-0.1386594325,
0.3139131367,
-0.1347517073,
0.3784937859,
-0.7157739997,
-0.3194901943,
0.2560018897,
0.073957406,
-0.1883508563,
0.0577647015,
-0.156115666,
-0.1509695649,
0.6616251469,
0.1179491878,
0.3081757426,
0.1688102484,
-0.0610069185,
-0.4879086316,
-0.1559157521,
0.064143531,
-0.1242696121,
0.2141110301,
0.419116199,
-0.0905526578,
0.0314500034,
-0.3898131251,
-0.1337207556,
0.1204040945,
0.2108100206,
-0.1571480632,
-0.2858670354,
0.0173232071,
-0.156910643,
0.2881871164,
-0.1998725533,
0.0762177333,
0.1188787296,
0.5915833116,
0.158392027,
-0.0314163789,
0.0030107573,
-0.0456665307,
0.4624193907,
0.4269461036,
0.1892706454,
0.0728675798,
0.1712718904,
0.0155880284,
0.1197739542,
0.3151103258,
0.1932166815,
0.0145006366,
-0.1390068978,
-0.0433960408,
0.1849901378,
0.0005184633,
0.0293463916,
-0.3166526854,
-0.2396707833,
-0.1344019473,
-0.0602650158,
0.2285089791,
0.484585464,
0.0489016324,
-0.1327946186,
-0.1768653989,
0.5035764575,
-0.2242106795,
-0.1081033349,
0.1132531017,
-0.4795015454,
0.5232341886,
0.1773423254,
0.3323851228,
0.2191062868,
0.1033018529,
-0.1309678108,
0.0549307987,
0.3881404698,
0.0142447278,
-0.0708746538,
-0.1977720857,
0.0558010675,
0.2556619942,
0.3525899351,
-0.0198866688,
0.094900988,
0.0365252607,
0.2033005208,
0.4621017873,
-0.2480404675,
0.2013396025,
-0.039263688,
-0.0765959546,
-0.227543965,
-0.2805991769,
-0.3251707852,
0.4158679545,
-0.2221696824,
-0.1813542396,
0.0556779467,
-0.0235714763,
0.2005221546,
-0.1309478134,
0.2222494781,
-0.0271433424,
-0.3678202629,
-0.2760509253,
0.095739983,
0.1604193747,
0.1875728667,
0.0119547732,
0.0505942851,
0.1883044243,
0.0912697613,
-0.0713562667,
-0.0708184838,
-0.2897810936,
0.1885423958,
-0.163931191,
0.5140026808,
0.1508894712,
0.0002559107,
0.1288576126,
-0.0240113959,
-0.0834448636,
0.1777038276,
0.3646960855,
-0.0815737396,
0.2900406122,
0.4989515543,
-0.0069337897,
0.0616487414,
-0.1075541824,
0.0119593516,
-0.2995433211,
-0.1839981228,
0.4080568552,
-0.0861740261,
0.103535533,
-0.0198868178,
-0.0276099984,
0.2268509269,
0.3466986418,
0.1651630402,
0.2325509936,
-0.1531082988,
-0.1460169107,
-0.530895412,
-0.0676826239,
0.3016183674,
0.0427079126,
-0.1904176176,
0.1468814462,
0.2609980702,
0.3723934889,
0.101096265,
0.2840651274,
-0.0358075611,
-0.0369495712,
0.006053105,
0.2983295918,
0.2434145212,
0.1828006953,
-0.275582552,
0.0127732083,
-0.065187037,
-0.1498205364,
-0.0901639238,
-0.2980969548,
0.1432216913,
-0.3748911023,
0.1640302837,
0.3807448447,
-0.104927808,
0.5162325501,
-0.2271386385,
0.060725607,
-0.3134494126,
-0.0631878823,
-0.1761239618,
-0.1492340267,
-0.0256732013,
0.0878189951,
-0.2892702818,
0.401224196,
-0.1729555428,
-0.1698648334,
-0.0885795355,
0.5634941459,
-0.1865973771,
0.0859005526,
0.0004587024,
0.0216974095,
0.4482542872,
0.239243716,
0.1635233164,
0.0456232354,
-0.2102025896,
0.0588910952,
0.0938398242,
0.0458029099,
-0.0469337143,
0.0148060769,
0.1403072476,
0.3675569296,
0.1528905779,
-0.3563582301,
-0.099364832,
0.2028649896,
0.2868800759,
-0.188631013,
0.1483279467,
0.2838779092,
-0.312030077,
0.0277510211,
-0.3410732746,
-0.0503133647,
-0.2796904743,
-0.1944030672,
-0.260997653
] |
https://github.com/huggingface/datasets/issues/834 | [GEM] add WikiLingua cross-lingual abstractive summarization dataset | Hi @KMFODA ! A version of WikiLingua is actually already accessible in the [GEM dataset](https://huggingface.co/datasets/gem)
You can use it for example to load the French to English translation with:
```python
from datasets import load_dataset
wikilingua = load_dataset("gem", "wiki_lingua_french_fr")
```
Closed by https://github.com/huggingface/datasets/pull/1807 | ## Adding a Dataset
- **Name:** WikiLingua
- **Description:** The dataset includes ~770k article and summary pairs in 18 languages from WikiHow. The gold-standard article-summary alignments across languages were extracted by aligning the images that are used to describe each how-to step in an article.
- **Paper:** https://arxiv.org/pdf/2010.03093.pdf
- **Data:** https://github.com/esdurmus/Wikilingua
- **Motivation:** Included in the GEM shared task. Multilingual.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 42 | [GEM] add WikiLingua cross-lingual abstractive summarization dataset
## Adding a Dataset
- **Name:** WikiLingua
- **Description:** The dataset includes ~770k article and summary pairs in 18 languages from WikiHow. The gold-standard article-summary alignments across languages were extracted by aligning the images that are used to describe each how-to step in an article.
- **Paper:** https://arxiv.org/pdf/2010.03093.pdf
- **Data:** https://github.com/esdurmus/Wikilingua
- **Motivation:** Included in the GEM shared task. Multilingual.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
Hi @KMFODA ! A version of WikiLingua is actually already accessible in the [GEM dataset](https://huggingface.co/datasets/gem)
You can use it for example to load the French to English translation with:
```python
from datasets import load_dataset
wikilingua = load_dataset("gem", "wiki_lingua_french_fr")
```
Closed by https://github.com/huggingface/datasets/pull/1807 | [
-0.2764138281,
0.0026881248,
-0.1001024097,
0.3107095361,
-0.1134150773,
0.1402344704,
0.0106718438,
0.2736696899,
-0.0497234501,
0.1425440609,
-0.0666123033,
0.2388450354,
0.033216916,
0.3290540874,
0.1007773131,
-0.5720512867,
0.0124261007,
0.0506398156,
-0.1894691139,
-0.0938585475,
0.0496563762,
0.2917685509,
-0.1541135013,
0.0344824679,
-0.0742902532,
0.167327866,
-0.2920969725,
-0.0621649511,
0.0580647588,
-0.1694518924,
-0.0494500399,
0.1079933494,
0.1147319973,
0.1120778695,
-0.0000970769,
-0.2357141972,
0.1173490584,
-0.093477264,
-0.0832296014,
-0.3354902267,
0.0568947494,
-0.4867472947,
-0.0898415148,
-0.1527291238,
-0.0286798179,
-0.0799351484,
-0.0225386433,
0.3618363142,
0.171187073,
-0.0163236856,
0.3015848696,
-0.2413650751,
0.1877076924,
-0.0982502997,
0.040979296,
-0.3352949619,
-0.1876967847,
0.1640686989,
-0.0243241973,
-0.0562595315,
-0.211186558,
0.5608844161,
-0.0509361327,
-0.2531588674,
-0.2900614738,
-0.0126950536,
-0.1052727401,
-0.0649604276,
0.1165638417,
0.4845499098,
0.5298591852,
-0.1681495458,
-0.2733716369,
-0.01197844,
-0.1028649956,
-0.1336417943,
-0.0689065903,
0.1995880902,
0.0682089031,
0.2821743488,
0.1197727323,
-0.2527922392,
-0.100548923,
0.2251770198,
0.1247843727,
0.476244092,
-0.0582082868,
-0.044196181,
0.2988862693,
-0.1675045341,
-0.5653132796,
0.1359979212,
-0.1074617356,
0.2373198569,
-0.0855724812,
-0.1235273182,
0.1528777182,
0.0799812302,
0.196622625,
-0.2533026934,
-0.1528314054,
0.485570401,
0.0506216921,
0.1805728376,
0.2176922411,
0.175059244,
0.0759462565,
-0.0547256619,
-0.0148445163,
0.1278163046,
-0.0411522053,
0.0292952247,
-0.0243418179,
0.0643680096,
-0.244560957,
-0.0819885582,
-0.4378209412,
0.0686352924,
0.206053853,
0.2339702398,
0.1268781573,
-0.129323557,
-0.1584435254,
0.3530856669,
0.0957632363,
0.2372764349,
-0.078110598,
0.2695081532,
-0.2140507698,
-0.1261199117,
-0.1236305162,
0.2545531392,
-0.1758841574,
0.1946149766,
-0.1769748926,
0.0841227323,
0.2207691967,
0.0119757205,
0.26743716,
-0.1919909716,
0.0756383538,
0.0522562414,
-0.0806917101,
-0.2325188518,
0.2944806814,
0.0688738525,
0.2538158,
-0.4139410853,
-0.2517580986,
-0.1296178997,
-0.2286813408,
-0.089984335,
-0.340310216,
0.2785219252,
0.0378571153,
-0.242541492,
-0.2779174149,
0.7183285952,
0.1214742661,
-0.3903106153,
0.0970280319,
0.2184337825,
-0.2372533381,
0.0262872465,
0.1079149023,
0.4262573123,
-0.08575055,
-0.1368868053,
-0.009469565,
-0.0878255069,
0.0817493796,
0.1771851927,
-0.0713143647,
-0.1179257482,
-0.1324968338,
0.4285250306,
0.1194242984,
-0.1509239525,
-0.1736151427,
0.0201858692,
-0.1053152233,
0.2885639369,
-0.0036446638,
0.0764423311,
0.0263944119,
-0.0283591114,
0.1301960647,
0.1024599895,
0.1560313553,
0.1353257447,
-0.2220539749,
-0.327781111,
0.0901901051,
0.1936069727,
0.0324620977,
-0.1908341199,
0.2195290029,
0.1991112381,
0.2937736511,
-0.2792624831,
0.1236491874,
0.2130651474,
-0.1529013664,
0.1465049088,
0.0546807572,
-0.2641772032,
0.0251859669,
0.111322999,
0.3206301332,
0.3576338589,
0.2289247215,
-0.2382938564,
-0.0464860462,
-0.1705209017,
-0.3059719205,
-0.2131436765,
0.3340742588,
0.1207555085,
0.0298729837,
0.3504917622,
0.0571475327,
-0.2722002864,
-0.3950469494,
-0.2795888484,
-0.0788680241,
0.0020738095,
-0.1584922373,
-0.0642238259,
-0.0997121558,
0.3893689215,
-0.2712369561,
0.0983206928,
0.0154337287,
0.1517489851,
-0.0550841913,
0.4982587099,
0.4569423795,
0.2020402402,
-0.0717084631,
-0.500513196,
0.1014632657,
-0.1269531697,
0.0405573174,
0.0141749531,
0.002655887,
0.4599094391,
0.2683026493,
0.1284928322,
0.1728935987,
0.0776899457,
0.438174367,
0.064910993,
-0.1373222023,
-0.3299254775,
0.3048834801,
0.078276366,
-0.4333217144,
-0.1221100092,
-0.1712436825,
0.1732614338,
0.5744444132,
0.1377802789,
0.5119507313,
0.2164383084,
-0.0974678546,
-0.2043815553,
-0.0144235995,
-0.0558191985,
-0.1734182686,
0.2701700032,
0.322553426,
0.1384957731,
0.1292923093,
0.0410369262,
0.2512617111,
-0.0856252685,
0.0452629812,
0.1973090619,
0.0913206115,
-0.118737109,
-0.3444883823,
0.0685831457,
-0.2377658486,
-0.0307473149,
0.1356808841,
0.1075924784,
-0.0717529133,
-0.0445477031,
-0.1838492453,
-0.3029923439,
-0.2344038188,
-0.1616502851,
0.2162356675,
-0.2200761139,
-0.2400592119,
0.1284528971,
0.1167833656,
-0.1129346788,
-0.2529804111,
-0.1024313942,
-0.0138430446,
-0.5788553953,
-0.2555542588,
0.1801486462,
0.0482322127,
-0.0450079665,
0.3994949758,
-0.4012573957,
-0.1552134752,
0.0356058776,
-0.6449291706,
0.2720446289,
-0.1622142494,
0.0200536344,
-0.0106310099,
-0.0697957426,
-0.3605292439,
-0.3130760491,
0.3076895475,
0.0325360149,
-0.0289600082,
0.1261407733,
0.0377022922,
0.0117120408,
-0.0352807939,
-0.5705171824,
-0.1980737597,
-0.4070942104,
0.3077454269,
0.0545628816,
0.1486676782,
-0.3104326427,
0.2955928743,
0.1908235401,
-0.1759010255,
0.3428909183,
-0.3420237005,
-0.0923002958,
0.112093471,
-0.1527301669,
-0.3790642619,
0.0731655657,
-0.2005585432,
0.3650988936,
-0.1057616919,
-0.2588933706,
-0.1058175415,
0.1791162342,
0.0326338932,
0.1819611192,
0.2368077487,
0.2737872601,
0.1304392815,
-0.2074814886,
0.0725156069,
0.0377645269,
-0.0318171531,
-0.1206882,
0.0855493546,
-0.210082069,
0.356577754,
0.2325438857,
0.6987833381,
0.1690096259,
0.3995890915,
0.3031803668,
-0.149319008,
0.1214130744,
-0.3727870286,
-0.1183327064,
-0.0667658597,
-0.1618159115,
-0.0017633885,
0.4374346137,
0.2114104778,
-0.6284601688,
-0.1920637935,
-0.2594235539,
-0.4223432541,
-0.2361971736,
0.3057610095,
0.0923370942,
0.3545750678,
-0.1009263992,
-0.2588641942,
0.015134111,
-0.1767124683,
0.1695003062,
0.3979317248,
-0.2794199586,
0.1074101701,
-0.4918289483,
-0.1902911663,
0.067384176,
0.1728887856,
0.4474497139,
-0.0807952732,
-0.2205438316,
-0.1300717741,
-0.130240649,
-0.2977639437,
-0.0314542763,
-0.2745257914,
-0.2566512227,
-0.0925142467,
-0.2993519604,
0.0558249876,
0.0835802779,
-0.1684220582,
-0.3951663673,
0.5567394495,
0.1419665217,
-0.3097410798,
0.0260452852,
0.1145018041,
0.3811560273,
-0.2633335292,
0.2227110416,
-0.2694181502,
-0.19328174,
-0.5281088352,
0.1691382229,
-0.0399691723,
0.0465842299,
0.169019267,
0.0321972594,
0.0884619951,
0.080429256,
-0.0594896786,
0.0616305023,
0.2686172724,
0.1230266094,
-0.1082791537,
-0.0406366065,
-0.2364168316,
-0.1076547205,
0.2783060968,
0.0775389969,
-0.1844500899,
-0.3306640983,
-0.2572510839,
0.3101326227,
0.0035279021,
0.2262664437,
0.0107808262,
0.1983653307,
-0.13056539,
-0.3597177267,
-0.0355611928,
-0.0116041861,
0.3058979213,
-0.1058426201,
-0.4316602945,
0.4495395124,
-0.1073317602,
0.0158916116,
-0.0263432376,
0.2421526462,
-0.2652860582,
0.2303115129,
0.077875033,
0.9278442264,
0.2354874313,
0.257874608,
0.1034151614,
0.1018175632,
0.1726309508,
0.0618221611,
0.0204327293,
-0.2502280474,
0.2777409852,
-0.0039721802,
0.3077614307,
-0.2442103922,
-0.0057331016,
-0.4587951899,
0.1628585458,
-0.2138063908,
-0.0694860369,
-0.0357298516,
0.0389160365,
-0.3852993548,
-0.2546162605,
-0.0749212503,
0.2158120424,
0.1608697474,
-0.1427345276,
-0.0968834758,
-0.1639654338,
0.0675172955,
-0.1155510917,
-0.575061202,
0.2037638426,
0.3043479621,
0.097655043,
-0.2666793168,
-0.1327326149,
0.0501239449,
0.3451717496,
-0.1938078552,
0.0252289511,
-0.0823956504,
-0.0341520458,
-0.4138201475,
-0.1523549408,
0.1776976287,
0.0573253259,
0.2658069432,
-0.1814178824,
-0.2510640621,
0.0641670078,
0.1339982897,
0.0557072014,
-0.2997834086,
-0.1333728582,
0.3854407668,
0.1851492971,
-0.0951643735,
0.4663961828,
-0.2612832487,
-0.3155133128,
0.2619303763,
0.0702879801,
-0.228621915,
-0.1106297895,
0.1430111229,
0.0036536306,
0.07399638,
0.2212083042,
0.2505516708,
-0.3267934322,
0.2621972561,
0.3297330141,
-0.2598977089,
-0.3272094727,
-0.2419421673,
-0.1252943873,
-0.3335347474,
-0.1387814432,
0.0748939365,
-0.1159901544,
-0.1452167928,
0.0949208587,
0.0313523933,
0.0480560958,
-0.2062579393,
-0.2742916942,
0.0370926708,
0.3391433358,
0.1259647906,
0.1663530916,
-0.0384923443,
-0.2375506014,
-0.0325009115,
0.2613564432,
-0.4619375169,
-0.1443137527,
-0.1348394156,
-0.0458176732,
0.4608713388,
0.1276096255,
-0.0003699735,
0.1995987594,
0.2001709342,
-0.0017002029,
-0.2089056373,
-0.3422904909,
-0.3116218448,
0.05226098,
0.0538800098,
0.208884418,
0.1513408124,
-0.1388465166,
0.1814890206,
-0.380302012,
0.1357373893,
-0.1391915828,
-0.1668487787,
0.3987880945,
-0.2156241834,
0.4115798175,
-0.0930071771,
-0.1541319191,
0.0210989323,
0.2426480651,
0.0362112075,
-0.076392293,
0.0233240314,
-0.0944035202,
0.150728941,
0.2031551152,
0.1740852296,
0.1767475456,
0.1257221699,
0.2538176775,
0.21547544,
0.1199660301,
0.2261166424,
-0.0065143835,
-0.1190208048,
-0.1153841168,
0.1623837948,
0.363961935,
-0.2695581913,
-0.1094486862,
-0.1899955124,
-0.308971107,
0.19340083,
0.2468036115,
0.1579924375,
-0.0653854311,
0.0884062946,
-0.1375383288,
-0.0879688114,
-0.3478445709,
0.1863393188,
0.1399736702,
-0.0900237262,
0.1239619851,
-0.1945775598,
-0.024020372,
0.2098170519,
0.1813306063,
-0.1363978684,
0.3350524008,
0.1722569168,
0.345472306,
-0.1401733458,
0.0112580881,
0.3753677309,
0.2206596881,
0.3333484232,
0.2926027775,
0.0376371779,
0.0302178487,
0.3496360183,
0.2469121516,
-0.1901767999,
0.3346483409,
-0.1067720279,
-0.2746524811,
-0.0019901991,
-0.2964924574,
-0.2400927991,
0.1327789426,
0.1189877316,
0.063173376,
0.0843148008,
0.1264617145,
0.188216269,
-0.2465554774,
0.0711197183,
0.0024900297,
0.1469146311,
-0.2575463653,
-0.0039941566,
0.3881647885,
-0.0150424577,
-0.2881396413,
0.1652018279,
0.2157084942,
0.0387002416,
-0.1121264398,
0.2215437293,
-0.0579876453,
0.0988766551,
-0.1475168169,
0.0860486627,
0.1966522336,
0.2050225139,
0.1241286919,
0.2433703542,
-0.3616889715,
0.0829410926,
0.2663656771,
-0.0936809629,
0.0070117936,
0.1793235242,
0.0499936044,
0.3326555192,
-0.2442809492,
0.1301926821,
-0.4037370682,
-0.0927731544,
0.3473377228,
0.1063144654,
-0.0324115083,
-0.1338115633,
0.163623333,
0.3008713126,
0.2863396108,
0.2391320765,
0.1717405021,
0.0551128834,
-0.146778807,
-0.3187091947,
0.0749260932,
0.1380317062,
0.0064694136,
0.0353376605,
0.3323948979,
0.2515552938,
0.4170932472,
-0.0292969793,
-0.1962981224,
-0.0174174532,
0.151373446,
-0.0338280275,
0.1229168624,
0.147712633,
0.151302442,
0.05092787,
-0.1168851331,
-0.2503301501,
-0.0786990747,
0.1806660593,
-0.2451576144,
-0.0248240083,
-0.1587812006,
-0.303313911,
0.2724942565,
-0.0848015696,
0.2059206516,
-0.3882678151,
-0.0711866915,
0.1093200371,
-0.2837792039,
-0.0184019953,
0.3539358377,
-0.0492292419,
0.21335949,
-0.0602181293,
0.0124979969,
0.0551263988,
-0.1149763465,
0.0985493064,
0.16418989,
-0.1521480083,
-0.0104290694,
0.4137108922,
-0.2293919921,
-0.035456568,
0.6886968017,
0.0779254213,
-0.059468545,
-0.0233437642,
-0.182703495,
-0.0837538391,
-0.1309294552,
-0.2704117894,
0.056504067,
0.0346854068,
0.1069269478,
-0.044101797,
-0.4928301275,
0.0725591332,
0.2490631789,
0.4061502814,
-0.0792972594,
0.2087537497,
0.1567540467,
-0.1536521316,
-0.0504050925,
-0.0800563693,
0.0436574817,
-0.1664243937,
-0.0209542885,
-0.3597684205
] |
https://github.com/huggingface/datasets/issues/827 | [GEM] MultiWOZ dialogue dataset | Hi @yjernite can I help in adding this dataset?
I am excited about this because this will be my first contribution to the datasets library as well as to hugginface. | ## Adding a Dataset
- **Name:** MultiWOZ (Multi-Domain Wizard-of-Oz)
- **Description:** 10k annotated human-human dialogues. Each dialogue consists of a goal, multiple user and system utterances as well as a belief state. Only system utterances are annotated with dialogue acts – there are no annotations from the user side.
- **Paper:** https://arxiv.org/pdf/2007.12720.pdf
- **Data:** https://github.com/budzianowski/multiwoz
- **Motivation:** Will likely be part of the GEM shared task
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 30 | [GEM] MultiWOZ dialogue dataset
## Adding a Dataset
- **Name:** MultiWOZ (Multi-Domain Wizard-of-Oz)
- **Description:** 10k annotated human-human dialogues. Each dialogue consists of a goal, multiple user and system utterances as well as a belief state. Only system utterances are annotated with dialogue acts – there are no annotations from the user side.
- **Paper:** https://arxiv.org/pdf/2007.12720.pdf
- **Data:** https://github.com/budzianowski/multiwoz
- **Motivation:** Will likely be part of the GEM shared task
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
Hi @yjernite can I help in adding this dataset?
I am excited about this because this will be my first contribution to the datasets library as well as to hugginface. | [
-0.0495595932,
-0.1261757016,
0.0484424755,
0.5216318965,
0.028047163,
0.2442047745,
0.2257898748,
-0.1295132041,
-0.0764305443,
-0.0352303684,
-0.3937834501,
0.0283760019,
-0.4157286584,
0.3712359667,
0.2753160894,
-0.4878649116,
-0.0401315503,
-0.1847279221,
-0.0573806241,
-0.0662161261,
0.0544464439,
0.2652641833,
-0.083749719,
-0.0141650103,
-0.7082767487,
-0.2576466203,
-0.2459635735,
0.5358040333,
-0.0593674928,
-0.2135653794,
-0.1025886089,
-0.0253921542,
-0.1053595543,
0.4787707329,
-0.0001166607,
-0.2765085697,
0.2415373921,
-0.0704952329,
-0.1584604681,
-0.1901420951,
-0.303959161,
-0.1010894179,
-0.1578004807,
0.0485259891,
-0.0672852322,
0.111040011,
-0.2357470244,
0.0720801651,
0.1161289811,
0.2136201262,
0.1436246634,
0.17138502,
0.2292737514,
-0.1413154155,
-0.0795617104,
0.1754793227,
-0.1360077411,
0.1217542142,
0.1660678387,
0.129853949,
0.1339408159,
0.2862460613,
-0.2868771851,
-0.3387580812,
0.0378699154,
-0.1565736085,
-0.1137380898,
-0.2021170408,
-0.1208337024,
0.637771666,
0.7825869322,
-0.0460336022,
-0.4587583542,
-0.1823887527,
0.166218251,
0.1890713722,
-0.015108984,
0.2074812055,
-0.1902401298,
0.0880811363,
-0.4997956157,
-0.3024020791,
-0.1117863655,
0.1520486623,
0.1694428921,
0.4894134104,
-0.0048376229,
0.149820447,
0.0406989306,
-0.0129359104,
-0.6592087746,
0.0461831912,
-0.1632291973,
-0.0782560483,
-0.5269982815,
-0.2313211858,
0.005497694,
0.2764652371,
0.2792701721,
0.2418644875,
0.1933356524,
0.0343861207,
-0.4858170748,
-0.0963608474,
0.3565451503,
-0.0357554778,
0.2355093509,
-0.4836916327,
-0.0768124014,
-0.3012523353,
0.2371325791,
0.1238581091,
-0.2489852905,
0.0568620451,
-0.0454357564,
-0.1912590265,
0.0778548643,
0.0098759159,
0.1015386507,
-0.0046854876,
-0.1881655753,
-0.190400362,
0.3987604678,
0.3084574938,
-0.2176787555,
0.0310236178,
-0.2466756552,
0.5173608661,
0.2140967846,
-0.2750445604,
-0.1006626189,
0.2084702402,
-0.0185942277,
0.2577990294,
0.0416525751,
-0.1372455657,
0.3089646995,
0.0768448487,
0.4037550092,
0.0251385495,
0.0357511491,
0.0723680928,
0.0309202503,
0.0611657389,
0.0265693665,
0.2006105483,
0.1279186755,
0.1385941207,
-0.0259206593,
0.055595424,
-0.0541706868,
-0.4240857363,
-0.8219960332,
0.0419632047,
-0.3433516622,
-0.4522157013,
-0.0966314673,
0.2801697552,
0.0758947879,
-0.1119187921,
0.0898481607,
0.1927167624,
-0.2006128877,
-0.2603941262,
0.1181052029,
0.4660355449,
-0.0739354044,
0.0199910104,
-0.0051791705,
0.0489328243,
0.1514675617,
0.2265949845,
-0.2079217732,
0.0020901188,
0.0370475203,
0.5209833384,
0.0974760205,
-0.1354450136,
-0.0091416221,
0.1261940002,
-0.1579440087,
0.4558427632,
0.2269838154,
0.4218324721,
0.0401258804,
-0.0735237002,
0.2379352897,
0.2138476819,
0.085797146,
0.0093413889,
-0.1274503469,
-0.2149728239,
0.3545288444,
0.1450642794,
-0.1484979093,
-0.2715404928,
0.021877341,
-0.0533043593,
0.3994187415,
-0.0728086308,
0.2140677869,
0.1887441427,
-0.0459013022,
0.3278733194,
0.006484475,
-0.3588353992,
-0.0401541255,
0.0463245064,
0.4060173631,
0.3642262816,
0.2133590132,
-0.0913453847,
-0.0593798235,
0.0209015012,
-0.1971766949,
-0.3014428616,
-0.0209977441,
0.304089427,
0.0192145109,
-0.211036101,
-0.3215515614,
0.6143246889,
0.2347308695,
-0.0238543879,
-0.3885959387,
0.1535156816,
0.0642831326,
-0.0954658389,
-0.049388133,
0.4657985866,
-0.1018569171,
-0.1015428305,
0.0256354511,
0.3633400798,
-0.381046772,
-0.0191668347,
0.2527380586,
0.2115601599,
0.1455544978,
-0.0376942754,
0.3808534741,
-0.3574171066,
0.0935362577,
-0.1666320711,
-0.0316771045,
0.0237862021,
0.068807736,
-0.1138604283,
-0.3425867558,
0.3334618509,
0.1323539019,
-0.060071338,
-0.2378441095,
-0.0501986817,
0.2843132019,
-0.3968086839,
-0.2087933719,
0.0861884207,
-0.5717890859,
0.2553270161,
0.2885808945,
-0.268114537,
0.3120870888,
-0.0075468882,
-0.2782264352,
-0.2280256152,
-0.0677192137,
-0.2392432541,
0.1310905367,
0.3073767424,
0.0268668402,
-0.2262409478,
0.0077417269,
0.0461380668,
0.1179579198,
0.1477184296,
0.1421056539,
0.2155928016,
0.1317401528,
0.1953986883,
-0.0600352064,
-0.1858829707,
0.0917343348,
0.0612705126,
-0.2202706933,
-0.377710104,
-0.2315761298,
0.0206588432,
-0.0031798482,
-0.859854877,
-0.3776171505,
0.0210869163,
0.1854079366,
-0.2086368799,
0.1864877343,
0.1409980953,
0.1710365862,
0.090553239,
-0.1613754928,
-0.0967270955,
-0.247304365,
-0.4741032422,
0.0599153787,
0.0706344694,
0.1254866719,
-0.0712726638,
0.336622864,
0.1479424238,
0.1586922407,
-0.1248506531,
-0.335508436,
-0.0475234948,
-0.3214034736,
0.3632977903,
0.186105147,
0.0045010634,
0.1736132652,
-0.5391615033,
0.0940192044,
0.0636406466,
-0.1032528132,
0.0796104223,
-0.0586551763,
-0.3287818432,
0.0343880877,
-0.1330082119,
-0.2042250633,
-0.4464139342,
0.2932301164,
-0.0822250247,
0.0681072176,
0.1388572454,
-0.2183087766,
0.3125791252,
-0.2282409519,
0.2930271029,
-0.237443015,
-0.4391103387,
0.386726439,
-0.1543557495,
-0.1579539478,
-0.0408224016,
-0.2597223818,
0.2749281824,
-0.2068919837,
-0.1263918281,
-0.2367941141,
-0.1196146905,
-0.1223815829,
0.1548679173,
0.0074257161,
0.337983489,
0.1504378617,
-0.1130660027,
-0.0759112984,
-0.4116909206,
0.100209862,
0.4797811508,
0.3220481575,
-0.0224161893,
0.0151807219,
0.0278299749,
0.4263085127,
0.2595108449,
0.1940470636,
0.1456068456,
-0.0416594148,
-0.0503384508,
-0.1276601106,
-0.6021879315,
0.3620355725,
-0.1072279885,
0.1803499907,
0.3086295724,
0.3506394327,
0.0297501907,
0.0051750615,
-0.3613118827,
-0.4042975008,
-0.2486949265,
0.0308376867,
-0.1375457048,
-0.1656922251,
-0.3035287559,
-0.3996586204,
-0.2994044125,
-0.2451196015,
0.2551679909,
0.4556032121,
-0.1871856004,
0.067421861,
-0.0554061346,
0.2080797553,
-0.1167580634,
0.2883273363,
0.2834437788,
-0.2426146269,
-0.3276434839,
-0.0068079457,
0.1010645628,
0.2707676291,
0.8676867485,
-0.3521383703,
-0.4406836927,
-0.018991977,
-0.0773838907,
-0.1104201376,
0.2062216699,
0.0678932369,
0.2154580355,
0.2241024524,
0.461643815,
-0.0805997401,
-0.0421268977,
0.4925211072,
0.2451317161,
0.0402822942,
-0.0942876041,
0.1154119894,
-0.2007342577,
-0.4446724951,
0.048264429,
-0.1206625253,
0.2248319685,
0.4122964442,
-0.258849144,
0.1395410001,
0.2476584613,
0.4659261405,
-0.285692215,
-0.0763512701,
0.4765970111,
0.1237194687,
0.1571489573,
-0.0069006803,
-0.0467529818,
0.267062813,
0.3491563499,
-0.007356599,
-0.2886115909,
-0.3671674728,
0.6399354935,
0.2458281368,
0.2599237859,
-0.0043925345,
-0.049690485,
0.2666392028,
-0.0702735782,
0.0905359536,
-0.0380107053,
0.2193396688,
-0.3569743633,
-0.2911625504,
0.2542300224,
-0.0566718131,
-0.1089182794,
0.348128438,
0.1393651217,
0.0917533785,
0.0575122014,
-0.0708088428,
1.220823288,
-0.1219747961,
0.2385090142,
0.1832048893,
0.118587032,
0.3062672317,
-0.3133830428,
0.0434006527,
-0.0887923613,
0.4918667078,
-0.1058601961,
0.0500413775,
0.0773827732,
0.068917051,
-0.2723093033,
-0.1200610995,
-0.1255697459,
-0.3180558681,
-0.172845915,
0.1763085276,
0.1679093242,
-0.439686209,
0.1948032826,
0.0914048776,
0.0268140603,
0.0991162658,
0.1932020634,
-0.4706452489,
-0.2478192598,
-0.0061868951,
-0.575650692,
-0.1030141413,
-0.1777902991,
-0.0751585141,
0.1510765404,
-0.412576139,
0.2650755346,
0.6566468477,
-0.0458364412,
-0.0364849269,
-0.1906548589,
-0.0270594601,
-0.3097651601,
-0.1800452471,
-0.0290713198,
0.0146046318,
0.5625347495,
-0.0856470242,
-0.4616306722,
0.1913688779,
-0.0405458212,
-0.1574317515,
-0.2143805772,
0.0939355046,
0.3513998687,
-0.1234130636,
0.084073402,
0.475881815,
0.163234666,
-0.1882020831,
0.0587330535,
0.3752678633,
-0.2726205587,
0.1003444344,
-0.0824425295,
-0.2002204657,
-0.1921371967,
0.106452316,
-0.0451690108,
0.0649112761,
0.3358595669,
0.2078388929,
0.004655771,
-0.1652280688,
-0.1171676666,
0.0126070566,
-0.0297696218,
-0.2118085772,
0.512329638,
-0.1869953126,
-0.0449881032,
0.0160916001,
0.1603282988,
0.1677423865,
-0.0814918354,
-0.3418287039,
-0.1718785614,
0.1577096134,
0.0150294527,
0.0357602276,
-0.2085573375,
0.1139454991,
0.2710702121,
0.469958663,
-0.2757551074,
0.0167701878,
-0.2806573808,
-0.0290530138,
0.5896812081,
-0.2300726473,
0.1488161236,
-0.0789916366,
0.0771975219,
-0.4200711548,
-0.110144034,
-0.088540867,
-0.3610193133,
0.1684497595,
0.0748722255,
-0.1540767848,
0.2706820667,
0.0158065185,
-0.0894805342,
-0.2250721008,
0.332005024,
0.2376987636,
-0.0703222156,
0.0462865755,
-0.248447001,
-0.0196932591,
-0.3048248291,
0.1348232478,
0.1987126172,
0.0725641698,
-0.0384821258,
-0.0703205019,
0.0490030013,
-0.2940417528,
0.2146624774,
0.2510719299,
0.1416674405,
-0.0568029881,
-0.0330819823,
0.1440103352,
-0.0253856108,
0.3045454919,
0.3379089832,
-0.2967097461,
0.1120468602,
0.2842154801,
0.0707961991,
0.0439119898,
-0.2023293078,
-0.1432789862,
0.1610296965,
-0.2441750467,
0.0529657751,
0.1319923997,
-0.0511858873,
0.1343570799,
0.0085509215,
-0.3371321261,
0.0945689827,
-0.1736170501,
-0.0558874309,
0.041295927,
-0.4468111992,
-0.1386162937,
0.3172746897,
0.2480264306,
0.289478749,
0.1697865278,
0.0131894425,
0.2350250185,
0.0140650198,
0.0810089856,
0.0222417675,
-0.1308626235,
0.2727148533,
-0.062114507,
0.1389017999,
-0.096465975,
-0.0127950832,
0.8489478827,
-0.0531655028,
0.093954429,
-0.1823532283,
0.4093396068,
-0.0385647826,
0.0198609754,
0.1863218397,
-0.1902026683,
-0.2819327712,
-0.1889739335,
0.0304583702,
-0.1939526796,
0.5753383636,
0.1022953317,
0.1599068791,
-0.5247257352,
-0.1194862872,
0.062297754,
-0.2186885476,
-0.332873702,
0.1273479313,
0.4176217616,
-0.2335392386,
0.2680818141,
0.2843911946,
0.5901279449,
0.0581661984,
0.0592190549,
0.3245362639,
-0.257935673,
-0.071435973,
0.0402379856,
0.3600094616,
0.1942009032,
0.1206989288,
0.137845844,
-0.0050477479,
-0.1075203419,
0.2780383825,
-0.0980774015,
-0.0631908402,
-0.3260622025,
0.2701675594,
-0.1711436212,
-0.3203282356,
-0.2823595405,
0.0094381049,
-0.4559195638,
-0.4043708444,
0.3326562345,
0.0235002153,
-0.2665005326,
-0.2315277904,
0.0525778458,
0.0410167836,
0.4059999585,
0.3472781479,
0.1792747229,
0.070464626,
0.2959883213,
-0.645432055,
-0.1585434824,
0.3647211194,
-0.0800440088,
-0.0159733538,
-0.1301048845,
0.5115669966,
0.1902521551,
0.0810143203,
-0.3565250039,
-0.0754356682,
0.0700321794,
-0.1761052907,
0.441886127,
0.4003625214,
0.179696396,
0.29142946,
0.232321918,
0.0274968054,
-0.0136618093,
-0.0643404052,
-0.0957336128,
-0.1059933677,
0.0085343719,
-0.3982713819,
0.2332936376,
-0.1317207217,
0.6390527487,
-0.1394641101,
0.1082859635,
-0.093581453,
-0.0011768714,
-0.1551576257,
0.1179214567,
0.0444159359,
0.6158027649,
-0.1510687023,
0.067023024,
0.0121989883,
-0.1279334575,
-0.26937446,
0.3373316824,
0.0121928826,
0.1458611786,
-0.0913504437,
-0.1188278049,
0.3091869652,
0.2624585629,
-0.0521305799,
0.1051345766,
0.0185582191,
-0.0795297623,
0.5583522916,
-0.0703386739,
-0.2576854527,
-0.4120698869,
0.1972278953,
0.0915483311,
-0.0519298539,
-0.5948377848,
0.0284346193,
0.1802102774,
0.3053227663,
-0.2246882021,
0.4031968713,
0.1277087927,
-0.1863016635,
-0.00248833,
0.0475101024,
-0.0397528782,
0.0446497425,
0.2181625366,
-0.0562603474
] |
https://github.com/huggingface/datasets/issues/824 | Discussion using datasets in offline mode | I think it would be very cool. I'm currently working on a cluster from Compute Canada, and I have internet access only when I'm not in the nodes where I run the scripts. So I was expecting to be able to use the wmt14 dataset until I realized I needed internet connection even if I downloaded the data already. I'm going to try option 2 you mention for now though! Thanks ;) | `datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
| 72 | Discussion using datasets in offline mode
`datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
I think it would be very cool. I'm currently working on a cluster from Compute Canada, and I have internet access only when I'm not in the nodes where I run the scripts. So I was expecting to be able to use the wmt14 dataset until I realized I needed internet connection even if I downloaded the data already. I'm going to try option 2 you mention for now though! Thanks ;) | [
-0.6300704479,
0.2058908343,
-0.010249678,
0.1388327181,
0.193446517,
-0.1737717837,
0.5314208269,
0.0831636861,
0.3500736058,
0.2367120534,
0.1306479573,
-0.0646164268,
-0.1149487495,
0.4892581701,
-0.0613241196,
-0.0358769149,
-0.1664478183,
-0.0370643251,
-0.2075221986,
0.1665762961,
-0.1922241896,
-0.1634630859,
-0.5264271498,
-0.1563566029,
-0.2378030568,
-0.2821217179,
-0.0507957712,
0.1434434503,
-0.0675495937,
-0.3244419396,
0.2889088988,
0.1382349432,
0.2235020697,
0.444934845,
-0.0001075604,
0.0459715873,
0.0817124099,
0.0424996689,
-0.2193597704,
-0.322070539,
-0.2740172744,
-0.5323527455,
0.1792144328,
-0.3614763618,
-0.2261400968,
-0.1060200408,
-0.0022874381,
-0.4843772054,
0.3558475971,
0.2895816267,
0.1922075897,
0.6198391914,
-0.2299234867,
-0.2431984246,
-0.1677200794,
-0.1656210572,
-0.1867387295,
0.3589765429,
0.164250344,
-0.0384120755,
-0.0706443489,
0.092120029,
-0.1044345349,
0.0972447395,
0.4349205792,
0.0993569344,
-0.1420591772,
-0.0717147887,
0.1741679013,
0.5084936023,
0.5811344385,
-0.2377757132,
-0.235224247,
-0.2079223841,
-0.1121011749,
-0.4787676036,
0.0884914473,
0.1763010621,
0.0440585837,
0.3034048378,
-0.4777000844,
-0.2545403838,
-0.3263364136,
0.1942961961,
-0.4016208351,
0.2013929188,
-0.1917235851,
0.1068929285,
-0.1827458888,
0.1533899903,
-0.0075838212,
-0.2337020189,
0.1550296098,
-0.1302918345,
-0.3167187274,
-0.0140245855,
0.0825165957,
0.2733769417,
0.0394196287,
0.1726538241,
0.1644294262,
0.0296574011,
0.0703101531,
0.0388145857,
0.3789533675,
0.2198378891,
-0.1209219992,
-0.3116754889,
0.6292065978,
0.0068750679,
0.0290253833,
-0.2422121465,
0.3572409153,
-0.3322307765,
0.1250270009,
-0.0004764535,
0.3401115537,
-0.0963581949,
-0.1281308532,
0.0624008812,
0.1831565499,
-0.1575585753,
0.0885405615,
0.2160646915,
-0.2617761493,
0.0305718444,
0.1420489997,
0.4152129292,
-0.2527972758,
-0.3033897579,
-0.0704958513,
-0.1785692871,
-0.0896876007,
0.1340271235,
0.3163669109,
0.2598671913,
0.0254874378,
-0.034385182,
0.1714945436,
-0.0133729354,
0.4245752096,
-0.0901880115,
0.1361575127,
0.3018317521,
0.1157080904,
-0.0600554869,
0.0591586567,
-0.1181264594,
0.0598677546,
0.0127165327,
-0.115659453,
-0.3404826522,
0.2708465755,
0.2129339725,
-0.5129671693,
-0.1099458933,
-0.3253321052,
0.0677997023,
-0.3322140574,
-0.1121458709,
-0.0031906664,
-0.1588516533,
-0.3020486832,
-0.2183877677,
0.2850367427,
0.6506160498,
-0.5364612341,
0.1531353295,
-0.033690501,
-0.1371341795,
-0.1496426463,
0.0943929404,
-0.3362307549,
0.6654830575,
-0.0118888952,
-0.3396771252,
0.4533730745,
-0.4085680246,
-0.2588603795,
0.2776843905,
-0.3286610544,
-0.0729338229,
-0.0654049516,
0.2060269415,
0.4211372137,
0.0657773241,
0.0929557085,
0.1874694377,
-0.0519748107,
-0.0244044177,
-0.1945667416,
-0.2632912993,
0.2911951244,
0.2045404464,
0.334641546,
0.0669415146,
0.3081210852,
-0.1736801118,
0.0435174443,
-0.1846485883,
0.2528410256,
0.0154076945,
0.1728464365,
-0.0217746831,
-0.1127805337,
-0.173656404,
-0.6063699722,
0.3064252734,
0.023169972,
0.0968806967,
-0.1869286299,
-0.1187961251,
0.0240960345,
-0.1919626594,
-0.0954886675,
0.0504776351,
0.1024772972,
-0.2254910618,
0.0808497816,
0.1283679307,
-0.2564831972,
0.2029670924,
-0.118956849,
-0.009911105,
0.0438441038,
0.2811492682,
-0.0489589125,
0.0290212333,
0.0381039381,
0.0005991552,
0.0214392226,
-0.2149714977,
-0.0171811488,
0.4893763363,
0.000606101,
0.139884904,
0.2435284555,
0.4766896665,
0.386460036,
-0.1545758098,
0.569855988,
-0.0209588315,
0.2697750628,
-0.2345478237,
-0.2590692937,
0.5913994908,
-0.1949972659,
0.2110204697,
0.0851289704,
-0.0037556924,
0.1491415799,
-0.016528219,
-0.464692831,
-0.0718336999,
-0.0075026797,
0.0016719718,
0.1255858243,
-0.1001410335,
-0.3027395606,
0.0762122199,
0.3309544027,
0.0889341012,
0.2562533021,
-0.1848621815,
-0.0806868523,
0.0944449157,
-0.0143340239,
0.0207728148,
0.5388501883,
0.1315513253,
0.0488948487,
0.2817274034,
-0.0158038139,
-0.3472722173,
0.1246084869,
0.2198945135,
-0.0228708275,
0.090892747,
0.0311370417,
-0.0293928441,
-0.1287688911,
0.0264613032,
0.0120825991,
-0.0286055822,
-0.2554801702,
0.2454204261,
-0.3986749947,
0.0395875797,
-0.0565145835,
0.0932426378,
-0.3712320328,
-0.2391113788,
0.0468525365,
0.1336498111,
-0.2514072657,
0.1489572227,
-0.1666214168,
0.5206559896,
-0.2418763041,
-0.1473502964,
0.1968584657,
-0.5571702719,
-0.1149322689,
0.0846705437,
0.360127151,
0.2178109139,
0.4645658135,
-0.0489887744,
-0.0849459916,
-0.3521948457,
-0.143662259,
0.0259494856,
-0.0372474827,
0.3027525544,
0.0437212512,
0.212958917,
-0.0309405774,
0.2163394839,
0.3268578053,
-0.3476832807,
0.26101017,
0.0145969242,
0.0120825842,
-0.1428593397,
-0.3249202669,
-0.5815708637,
-0.523201406,
-0.3354819417,
0.1599172056,
0.0059764311,
-0.0602073781,
0.0477926992,
0.0959362388,
0.0486623459,
0.0634142756,
0.0541640073,
-0.157221064,
-0.4133061767,
0.1801300496,
-0.1736979783,
-0.5983695984,
0.4090825915,
0.1445650756,
0.1866302341,
0.4446812272,
-0.4329778254,
-0.1786336005,
0.0999476835,
0.414942205,
0.2194607854,
0.3698683679,
0.4159152508,
-0.0263589099,
-0.004490342,
-0.1017857566,
0.16042611,
0.2131546289,
-0.0501593389,
-0.0727308393,
0.194650054,
0.1170218438,
-0.0909305811,
0.5493085384,
-0.0598430075,
0.0626046583,
0.228474319,
-0.1173965633,
0.6396970153,
-0.1641618311,
-0.0831005722,
0.1386887133,
-0.0655953884,
-0.230042398,
0.2599749863,
-0.065780364,
0.0406439006,
-0.6198849082,
0.0020186827,
-0.3696757853,
-0.4392200708,
0.0987967625,
0.2668214142,
0.4354862869,
0.2188313454,
0.2344516516,
-0.2026197314,
-0.140142858,
-0.0432290994,
0.2950328588,
0.11437767,
-0.0095119812,
-0.1662009358,
0.071822226,
-0.3588619232,
0.3179506361,
-0.1387809813,
0.3281268179,
-0.047476951,
-0.0183209628,
-0.0609108806,
-0.048375763,
0.3537317812,
-0.4296562076,
0.0080437344,
0.2310299575,
-0.089441739,
-0.2590503395,
0.0481310338,
-0.3023553491,
-0.1070721895,
0.1232943833,
0.2312657833,
-0.0090616792,
-0.2890510261,
-0.0935752392,
0.4394928515,
-0.3306920826,
-0.1491360217,
-0.1300390363,
-0.026464276,
-0.2965613604,
0.1153247207,
-0.1198115125,
-0.0172982849,
-0.2313776016,
0.096409522,
-0.1704925299,
0.1686472148,
-0.0581248291,
0.0691087544,
0.0691003427,
-0.2343952805,
0.2624781132,
0.2558908165,
0.1509256363,
0.5121372342,
0.2453927249,
-0.0556906648,
-0.0811070949,
0.1570569724,
-0.0704071894,
0.4112352729,
0.4923601449,
-0.1125676632,
-0.1765356958,
0.2434660494,
0.2588065267,
-0.5872604251,
-0.0939204991,
0.0892567709,
0.1319001615,
-0.1381253898,
-0.280734092,
0.214585796,
0.1436353922,
-0.0498344377,
-0.0280279852,
0.2752502263,
-0.2484538704,
0.0456356369,
-0.0597793125,
0.7471337914,
-0.0503544621,
0.2299505919,
0.1710413396,
0.1345076412,
0.3820538819,
-0.3570563495,
0.0242575593,
0.0083437487,
-0.2609065771,
-0.112166211,
-0.151797533,
0.3989056647,
0.119651854,
-0.158944726,
0.5752491951,
-0.0488135293,
0.3787566721,
-0.3056923747,
0.2353722453,
-0.0690017194,
-0.1509353667,
-0.2804448903,
0.1945443153,
0.0841050372,
0.1325062066,
-0.2965493798,
-0.1999385506,
0.0805010647,
0.1032051519,
0.0199745297,
-0.160579592,
-0.0908027887,
0.0750891939,
-0.2080806345,
0.0110153407,
0.1845136285,
0.0723547041,
0.4488832355,
0.2354968041,
-0.4055700004,
0.0239275564,
-0.4745929241,
0.1689144373,
-0.0147642177,
0.2257875502,
0.2119624764,
-0.2073980421,
-0.2758945227,
0.0584933646,
-0.0901274085,
0.0520822406,
0.4216805995,
-0.0912182778,
-0.1135954857,
-0.2078429013,
0.1400358677,
0.2337014377,
0.1270941943,
-0.1188962311,
0.1302801073,
0.1750442535,
0.1143169403,
0.4348140359,
-0.0489927158,
-0.1153582633,
-0.2252299786,
0.3077349067,
-0.1198247373,
-0.1528260112,
-0.0878993571,
0.2735415101,
-0.2031889558,
-0.3384054005,
0.1964482218,
0.0465170555,
0.0449063927,
0.2258601338,
0.4077033997,
0.4182564616,
-0.1193949878,
0.4594065547,
0.0348665453,
-0.173382014,
-0.1316823065,
-0.3336319923,
-0.3115439117,
0.2858286202,
0.4760400653,
0.13190642,
0.042958796,
0.0135141537,
0.0800837427,
-0.1690981239,
-0.3756701648,
-0.0080089122,
-0.0301890895,
0.0805657208,
0.1734395772,
-0.1646102518,
0.3184392452,
-0.1392022669,
-0.0031448044,
-0.1964245141,
-0.4073610604,
-0.2196914256,
-0.0056015141,
0.2171227038,
0.0729132444,
-0.4410379529,
0.0773469955,
-0.5827115774,
-0.2432705313,
-0.1612303406,
0.2887274623,
0.408855319,
-0.1986245215,
0.0132575519,
-0.0323875695,
0.38978374,
-0.1986431479,
0.1378961056,
0.0811308473,
0.2517086864,
-0.1156206578,
0.208947286,
0.1144659966,
0.045565024,
0.0876553059,
0.0893079787,
0.1664664894,
0.1618380398,
0.419457078,
-0.2242738754,
0.0255389437,
0.1512092799,
0.5265107751,
0.2531050146,
-0.0403762236,
0.1189203262,
0.1235130951,
0.1960497797,
-0.3990579844,
0.0341198631,
0.1256486475,
0.1630677879,
0.3431504071,
0.069858335,
0.4620230198,
-0.0408508852,
-0.2096600831,
0.0178092122,
0.2600049376,
-0.291955173,
0.2190141678,
0.0231898762,
0.0135691017,
0.1464997083,
0.0203751829,
0.3932596743,
-0.0602551848,
0.2468480319,
-0.3339199424,
0.2350604385,
0.0747697502,
0.1230949163,
-0.191260621,
-0.4348841608,
0.2412766069,
-0.0731846094,
-0.1855637133,
-0.2716339231,
-0.2943276465,
0.033247754,
-0.3944119215,
-0.0690756142,
-0.1865727901,
0.091666609,
-0.1238564551,
0.0107896775,
-0.3834719956,
-0.324623704,
0.0348959565,
0.1055618376,
0.0962769687,
-0.0437327996,
-0.0064710118,
0.0819924623,
0.0759537965,
-0.1092398539,
0.1654796898,
-0.0799265727,
0.0434891097,
-0.0302070901,
-0.0392674878,
0.2523205876,
0.0701688752,
0.1473390013,
0.3580791652,
0.2618345916,
0.0386817195,
-0.2227413803,
0.2019044459,
-0.0103041623,
-0.1117858887,
-0.1631404459,
0.1722760201,
0.006302651,
0.0302212313,
0.3716367483,
0.1245408356,
-0.1198316365,
0.3440978527,
-0.1338332444,
-0.1742622554,
-0.4563522637,
0.2229206413,
0.1796987951,
-0.1642238498,
-0.105979979,
-0.171105355,
-0.0731738806,
0.0550526865,
0.4335767329,
0.0114541501,
0.1584359854,
-0.2045156062,
0.091128245,
0.0008953251,
0.5557253957,
0.1665424258,
0.2724842429,
-0.2918748558,
0.0434722155,
-0.8117440939,
-0.168302834,
-0.2191195786,
0.415037632,
-0.0744278505,
0.0899985582,
0.0912724882,
0.4602129161,
0.0921958983,
0.1643072665,
0.0427024774,
-0.1950075924,
-0.3067813516,
-0.0896469578,
-0.1256373376,
-0.0447904319,
-0.0425438508,
-0.2563000321,
0.1380438507,
-0.3528141379,
-0.0254431218,
0.0278752558,
0.193094492,
-0.1598222554,
-0.0996006727,
0.460858494,
0.1199979335,
0.4414411783,
0.1976630241,
-0.0157538317,
-0.1962547004,
0.0738467276,
-0.0716665685,
0.1275078952,
-0.0289350785,
-0.0052910149,
-0.1757264733,
-0.1376697123,
-0.1885930747,
0.1871829331,
0.0293529183,
0.0823309049,
-0.0889897346,
-0.1222600341,
-0.073500067,
0.1361116618,
0.0541606322,
0.0281364396,
-0.141518116,
0.1670804918,
-0.1907014549,
-0.0634678826,
0.3272378445,
-0.0947413445,
0.0126259327,
-0.5545057654,
0.3333745003,
0.052784659,
0.0571756437,
-0.3271181583,
0.1505369246,
0.2696193159,
-0.214347899,
-0.1104708388,
0.2254100591,
-0.2465935051,
-0.2582941353,
-0.0356634818,
0.2865619957,
-0.2709175348,
-0.2224069834,
-0.1685856879,
-0.1292221844
] |
https://github.com/huggingface/datasets/issues/824 | Discussion using datasets in offline mode | Requiring online connection is a deal breaker in some cases unfortunately so it'd be great if offline mode is added similar to how `transformers` loads models offline fine.
@mandubian's second bullet point suggests that there's a workaround allowing you to use your offline (custom?) dataset with `datasets`. Could you please elaborate on how that should look like? | `datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
| 57 | Discussion using datasets in offline mode
`datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
Requiring online connection is a deal breaker in some cases unfortunately so it'd be great if offline mode is added similar to how `transformers` loads models offline fine.
@mandubian's second bullet point suggests that there's a workaround allowing you to use your offline (custom?) dataset with `datasets`. Could you please elaborate on how that should look like? | [
-0.4731805623,
0.2457839996,
-0.0126307718,
0.1412142217,
0.2833553553,
-0.1470209956,
0.6012278199,
0.0127761085,
0.2687811852,
0.131277591,
-0.0240367483,
-0.0239853486,
-0.0246624965,
0.4021070302,
-0.0912404805,
-0.1021381319,
-0.1722333133,
0.0388772003,
-0.1540049314,
0.1325947642,
-0.1408106387,
-0.1281194985,
-0.3727089167,
-0.0282361247,
-0.1628141254,
-0.1865874082,
0.0091418624,
0.1420211941,
-0.1572315842,
-0.2762964368,
0.2854104638,
0.1805246323,
0.2238958478,
0.4791246653,
-0.0001042308,
0.1437669098,
0.0545551479,
-0.0134886764,
-0.2069025934,
-0.3381867409,
-0.1917748153,
-0.3979362249,
0.2337578982,
-0.4007377028,
-0.2150847018,
0.0365373269,
-0.0734729245,
-0.3958376348,
0.3150741458,
0.3079380989,
0.2526885569,
0.6633722782,
-0.1480611116,
-0.3228701055,
-0.1723311692,
0.0102024078,
-0.2392342091,
0.3925465643,
0.06179104,
-0.07088653,
-0.1110983491,
0.1163179353,
-0.1192909628,
0.0119442679,
0.3592295349,
0.099015072,
-0.0436065271,
-0.0926577896,
0.12865448,
0.4549902678,
0.3857677281,
-0.2256468534,
-0.3233914971,
-0.4115028679,
-0.1213284805,
-0.3992848694,
0.0777638406,
0.0915820003,
-0.0518019386,
0.2859631479,
-0.4508606493,
-0.2770608068,
-0.3688122332,
0.0866335183,
-0.3436933756,
0.1290586293,
-0.2209809422,
0.0518596731,
-0.059452083,
0.1764985323,
-0.1783763021,
-0.2810509205,
0.1342649013,
-0.1318920851,
-0.2653566599,
-0.0710260347,
0.166024521,
0.048950173,
0.1325021088,
0.0835704282,
0.2456041574,
0.0134867188,
0.0630616769,
0.0728720278,
0.4931011796,
0.270118624,
-0.0664052516,
-0.1654519886,
0.5901672244,
0.1680277288,
0.0154070109,
-0.2984623015,
0.3438811302,
-0.2474087775,
0.0511435345,
-0.004453484,
0.3934409618,
-0.290476501,
-0.070558697,
-0.0289391708,
0.2609568834,
-0.0422499478,
0.2302475125,
0.2531339526,
-0.2007355988,
0.023909267,
0.0023881271,
0.370703131,
-0.2583319545,
-0.2877790332,
-0.0691778362,
-0.2514779568,
-0.1524572968,
0.0909147188,
0.1942049563,
0.0988481194,
0.0931648463,
-0.0352787375,
0.2799163759,
0.0193175301,
0.2784256637,
-0.0613343939,
-0.0014955103,
0.3023598194,
0.1102334335,
-0.0681087002,
0.121437639,
-0.1861230284,
0.0257517397,
0.0565422848,
-0.065333873,
-0.4622019529,
0.1761787683,
0.2197204977,
-0.6732062697,
-0.2223996818,
-0.2730341852,
0.1555660069,
-0.2369360477,
-0.2124959826,
0.023586791,
0.0184606835,
-0.2118945569,
-0.2117058784,
0.2878769338,
0.5173385143,
-0.4603884816,
0.0129501671,
0.0447109379,
-0.2136074603,
-0.207165122,
0.1019183844,
-0.4149194062,
0.6289389133,
0.0107536912,
-0.3816750348,
0.5595374703,
-0.3048188984,
-0.314029038,
0.2726417482,
-0.1605726629,
-0.0045868903,
-0.0534320958,
0.1087546498,
0.4603526592,
0.0848673657,
-0.0908237547,
0.2521171868,
-0.1281451285,
-0.0130096711,
-0.2615110874,
-0.3172562122,
0.1956139952,
0.3260179758,
0.3225422204,
0.1708083749,
0.2575957477,
-0.1861374527,
-0.0085247941,
-0.1622695029,
0.1202049777,
0.042387493,
0.2255621701,
0.0671962202,
-0.010231033,
-0.165340662,
-0.5502775311,
0.2796307802,
-0.0287090018,
0.2188273966,
-0.2158025801,
-0.2107780725,
-0.027634643,
-0.195242092,
-0.1810872257,
-0.0795596242,
0.1171106398,
-0.1978264451,
0.0859220996,
0.0982889533,
-0.2900712788,
0.1137302294,
-0.0119813308,
0.0217424482,
-0.1584365666,
0.3012230992,
-0.0498390868,
0.0836622268,
-0.15510948,
0.056289237,
-0.0545990914,
-0.1622436941,
-0.0954585299,
0.5110427141,
-0.0238859355,
0.0563261136,
0.2349392027,
0.5590960979,
0.3679668009,
0.0043758154,
0.4956291914,
-0.050212808,
0.3213088512,
-0.111469999,
-0.398420006,
0.7357347012,
-0.1440515965,
0.2574731708,
0.098993957,
-0.0164562091,
0.2910698056,
-0.0265045464,
-0.4488826692,
-0.0220368207,
0.0183655359,
0.0145758577,
0.2139870077,
-0.0351545215,
-0.3072080612,
0.0073909573,
0.3660684228,
0.0653330758,
0.150913924,
-0.0016658828,
-0.071400933,
0.06185624,
-0.0847105309,
0.0961387753,
0.5059412718,
0.222510621,
-0.0020849314,
0.22226879,
-0.0752180368,
-0.2918920815,
0.1622448713,
0.2784022987,
0.0117792934,
0.0948212817,
0.1106504649,
-0.0135442084,
-0.2606649399,
-0.085119687,
0.0104149058,
0.0521303341,
-0.3171436787,
0.3023551702,
-0.1921410114,
0.0446795821,
0.0116656087,
0.1038790271,
-0.5033851862,
-0.1916293502,
0.1738936454,
0.0866981596,
-0.2768391967,
0.1611505151,
-0.0816930085,
0.5301487446,
-0.1862416863,
-0.1722711772,
0.1785871536,
-0.5872234702,
-0.0618418008,
0.0992662609,
0.3291291296,
0.0315928124,
0.4697216749,
0.1105312482,
-0.1004889011,
-0.2267500311,
-0.2593653798,
0.0775291547,
-0.0444324501,
0.3455694914,
0.0793805718,
0.042769637,
0.075540036,
0.2921109796,
0.4025551081,
-0.2950231135,
0.251518935,
0.1761240065,
-0.1241437197,
-0.0401731431,
-0.3764846623,
-0.4320445061,
-0.3803493977,
-0.4162006974,
0.2004628778,
-0.0402471572,
-0.0421939455,
0.2894973457,
0.180434078,
0.0699561089,
-0.0712618828,
0.0905178487,
-0.1396661997,
-0.4403936863,
0.2246846855,
-0.1572482884,
-0.5371840596,
0.2084209621,
0.1666209102,
0.1439085901,
0.276114583,
-0.5148004293,
-0.3084288239,
0.0591681749,
0.3579508066,
0.1813366711,
0.2270394415,
0.3989449739,
-0.1022245735,
-0.0224113986,
-0.0809665248,
0.0694309846,
0.2551833093,
0.0415011533,
-0.0146293528,
0.0407629125,
0.3204085529,
0.0124635771,
0.4728304148,
-0.065537788,
0.0620022118,
0.2407373637,
-0.0948777422,
0.6474261284,
-0.2596338391,
-0.148542881,
-0.073228851,
-0.0469055921,
-0.3458385766,
0.2646625936,
0.0285728388,
-0.0157963037,
-0.5687810183,
-0.0163189098,
-0.2486627847,
-0.444013983,
0.1849077344,
0.2254669964,
0.3417713642,
0.1493410766,
0.2687121034,
-0.2899603248,
-0.0377979577,
-0.0554852001,
0.2830603421,
0.0635943785,
-0.1171806455,
-0.240294531,
0.088189736,
-0.3629256785,
0.2781028748,
-0.2016146481,
0.1761329472,
-0.039338775,
-0.0541603863,
0.0559927747,
-0.0758442879,
0.4782180488,
-0.3819188774,
-0.1164452732,
0.2526447177,
-0.1034652963,
-0.3154054582,
0.0472195223,
-0.2072027028,
-0.0110112354,
0.1880612075,
0.2789720893,
-0.0935253054,
-0.2863285542,
-0.0143179465,
0.2607755065,
-0.3398857117,
-0.2257449776,
-0.2240488231,
-0.0473368801,
-0.3530593514,
0.0501268283,
-0.1676057428,
-0.0237874947,
-0.098830089,
0.1071026176,
-0.1596324742,
0.1846584827,
-0.0727060288,
0.1555315405,
0.0937976241,
-0.3015152216,
0.2017154247,
0.2891569436,
0.0554312058,
0.2439211607,
0.3130554855,
-0.0757675171,
-0.2507783473,
0.2184927166,
-0.0449134856,
0.3743801415,
0.4474983811,
-0.0075464472,
-0.1503683627,
0.2359787673,
0.2909379005,
-0.4307911396,
-0.132485345,
0.1148858219,
0.0783314779,
-0.1366832852,
-0.4067746103,
0.2473442107,
-0.0049635544,
-0.0512086675,
-0.0943638608,
0.158539027,
-0.2393349111,
0.3174619079,
-0.1068651825,
0.7930576801,
-0.0637973994,
0.2442911565,
0.222353816,
-0.0119600967,
0.498822242,
-0.3252681494,
-0.0229490101,
-0.0340017751,
-0.1787109226,
-0.0313819721,
-0.0793322101,
0.4078506231,
0.0548718534,
-0.1353468746,
0.5168303847,
-0.0338942781,
0.3856003284,
-0.2857425809,
0.1290825158,
0.0501795858,
-0.2691272199,
-0.5489076376,
0.2034656107,
0.09185379,
0.0732091665,
-0.2224261165,
-0.2794911563,
0.0674426183,
0.0627632439,
-0.0266708955,
-0.1881912947,
-0.0325166881,
0.0757760257,
-0.1396140158,
0.0518590957,
0.0764459297,
0.12277174,
0.4003405273,
0.1215793043,
-0.4199985564,
0.0589222908,
-0.3985014856,
0.1547273546,
0.0225468874,
0.1779075861,
0.1813088655,
-0.1888165027,
-0.2497040778,
-0.0088855401,
-0.1091713458,
-0.1067306995,
0.440553546,
-0.1216347441,
0.0073919301,
-0.3226774931,
0.173730433,
0.1859424114,
0.2177405059,
-0.164534986,
0.1630951613,
0.2032280713,
0.0897037685,
0.3784294426,
-0.1469396353,
-0.1935924292,
-0.2416878939,
0.2845246494,
-0.1109836251,
-0.1488571316,
-0.075759694,
0.224546656,
-0.187636286,
-0.3061798513,
0.2268289924,
0.0737869814,
-0.2808648944,
0.2850722671,
0.3767935932,
0.2331890017,
-0.1165047139,
0.2991287112,
0.0643199012,
-0.2871189713,
-0.1611162126,
-0.3281606436,
-0.3837018907,
0.2428532392,
0.4140179157,
0.1610078514,
0.0781947672,
-0.0397633538,
-0.006337896,
-0.1876191795,
-0.4073795378,
0.0217935741,
-0.0592032261,
0.0651990846,
0.2616648376,
-0.2107883394,
0.3878107071,
-0.2093545198,
0.0535878874,
-0.1886050701,
-0.4114198983,
-0.2793823779,
-0.0371239819,
0.1872642338,
0.0342979766,
-0.3216845393,
-0.0484386347,
-0.4539429545,
-0.3911361098,
-0.1426024139,
0.2971315682,
0.4522986114,
-0.1400373578,
0.011962425,
-0.1794689149,
0.4436796904,
-0.1515533626,
0.0933163911,
0.0538427979,
0.2722328305,
0.0794813633,
0.2418548763,
-0.1242843717,
0.0662918165,
0.0052196383,
0.186212495,
0.2457853109,
0.1565161645,
0.4803646505,
-0.156378746,
0.1423412412,
0.3202059865,
0.5329152942,
0.1267690361,
-0.0554245003,
0.1896505356,
0.0750887394,
0.2618721128,
-0.4182623923,
0.0555134714,
0.0559118316,
0.069207795,
0.3451641202,
0.1656795144,
0.4651872516,
0.1580532193,
-0.0120313354,
0.0449570119,
0.3792148829,
-0.083696194,
0.2313957214,
0.1390158236,
0.0545482934,
0.146652177,
0.0978635252,
0.3678914607,
0.0279546604,
0.2849600315,
-0.3214752972,
0.1772391349,
0.0446811095,
0.101827547,
-0.1581350565,
-0.4124344289,
0.2898588181,
-0.0497148484,
-0.0546013191,
-0.1823637486,
-0.2525887489,
0.1863817275,
-0.4326297045,
0.0116935261,
-0.2156720161,
0.0646705031,
-0.0798991174,
0.0103115439,
-0.3722073436,
-0.3459408283,
-0.021677427,
0.113354519,
0.0338325649,
-0.0128651708,
0.0488108769,
-0.0818489045,
0.0918948054,
-0.2111901939,
0.1460547447,
0.0580454096,
0.0776613951,
-0.0307539254,
0.0314859077,
0.2307014167,
0.0295001194,
0.1551375389,
0.4924821854,
0.2937014997,
0.0306280144,
-0.2166263312,
0.1912287623,
-0.0251136962,
-0.09476237,
-0.1152833998,
0.1165185273,
0.0572028309,
0.1724913567,
0.3164794743,
0.1543085724,
-0.2009876966,
0.3622320592,
-0.2038224488,
-0.0695500076,
-0.49590832,
0.3163032532,
0.1731226444,
-0.1483540386,
-0.0404532552,
-0.2629606128,
-0.1618154645,
-0.2425557971,
0.3993489444,
-0.0187275447,
0.1477476209,
-0.1969570369,
0.1060573012,
0.027129218,
0.4453117847,
0.1525286436,
0.258076787,
-0.270478785,
0.2232397795,
-0.7864074111,
-0.1592861414,
-0.0789297372,
0.3429845572,
-0.0179706439,
0.1001320854,
0.1175372601,
0.4013323784,
0.0578602925,
0.0657562017,
0.1440414935,
-0.1705748439,
-0.2648235559,
-0.087210983,
-0.1376920044,
-0.059619531,
-0.0228804238,
-0.2512319982,
0.1176672578,
-0.2488216758,
-0.0115260519,
0.0107077323,
0.1454161257,
-0.1141223758,
-0.0654084161,
0.4388477206,
0.1017874181,
0.3600199819,
0.2547399104,
-0.0651027784,
-0.1099721193,
0.0138450637,
-0.0983545333,
0.0416438468,
-0.0822127312,
0.0232169405,
-0.1789957881,
-0.1889515072,
-0.1935429424,
0.1395343244,
0.0901737362,
-0.0838334262,
-0.2044850886,
0.0220945999,
0.003296718,
0.134168312,
0.0018574148,
0.0741956234,
-0.1065523624,
0.1723713577,
-0.157073006,
0.0643465072,
0.3616626561,
-0.0158102065,
-0.0513041317,
-0.361936897,
0.2845939696,
0.2454403043,
0.0160167124,
-0.6187483668,
0.0592011213,
0.2603121996,
-0.1704743207,
-0.1079795137,
0.2965720296,
-0.1877590418,
-0.233869195,
-0.0189628452,
0.2834102213,
-0.2633387744,
-0.2472618222,
0.0018667579,
-0.1285079867
] |